@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240714.0 → 0.0.0-nightly-20240716.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x20810f,PendingActions as _0x5bd93c,icons as _0x4fa5ed}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5e6563,ObservableMixin as _0x20de3a,uid as _0x4afc5b,insertToPriorityArray as _0x5986fa,priorities as _0x515e10,logWarning as _0x3db40f,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x557595,View as _0x570dda,ButtonView as _0x11f77f,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 _0x583b5,hashObject as _0x474bc1,surroundingMarkersDetector as _0x23f8bb,trimHtml as _0x1a99e5,UserView as _0x1962d2,getDateTimeFormatter as _0x7cc2e9,getAllMarkersDomElementsSorted as _0x27635a,sanitizeEditorConfig as _0x37f465}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1808a5,LiveRange as _0x3f67f3,LivePosition as _0x45a9d6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3175fe,toWidget as _0x2ad58f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x541a6e,set as _0xa658ea,isEqual as _0x4fa487,unset as _0x351737,omit as Bt}from'lodash-es';import{Delete as _0x515384,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xb307a7,ShiftEnter as _0x1b0bac}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x378e39,_0x26e2a5){super(_0x378e39),this['_enabledCommands']=_0x26e2a5,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0xa5221d of this['editor']['commands']['commands']())_0xa5221d['affectsData']&&!this['_enabledCommands']['has'](_0xa5221d)&&_0xa5221d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x45b1df of this['editor']['commands']['commands']())_0x45b1df['affectsData']&&!this['_enabledCommands']['has'](_0x45b1df)&&_0x45b1df['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x4c9603,_0x421e6b){super(_0x4c9603),this['_suggestions']=_0x421e6b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5d492c){const _0x36c8a6=this['_suggestions']['get'](_0x5d492c);if(!_0x36c8a6)throw new _0x5e6563('track-changes-accept-suggestion-not-found',this);const _0x402c53=_0x36c8a6['getRanges']();this['editor']['model']['canEditAt'](_0x402c53)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x36c8a6);}}class B extends ts{['_suggestions'];constructor(_0x34a4e8,_0x19b5b8){super(_0x34a4e8),this['_suggestions']=_0x19b5b8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x17887f){const _0x101034=this['_suggestions']['get'](_0x17887f);if(!_0x101034)throw new _0x5e6563('track-changes-discard-suggestion-not-found',this);const _0xa25492=_0x101034['getRanges']();this['editor']['model']['canEditAt'](_0xa25492)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x101034);}}function ss(_0x371d44){return _0x371d44['sort']((_0x4c3aca,_0x5eb8bc)=>'deletion'==_0x4c3aca['type']&&'deletion'!=_0x5eb8bc['type']?-0x1:'deletion'!=_0x4c3aca['type']&&'deletion'==_0x5eb8bc['type']?0x1:0x0);}function to(_0x3a02f9,_0x80eaa4){let _0x5bd142,_0x425fd1=0x0;const _0x274a3b=[],_0x486ca5=_0x80eaa4['schema'];for(;_0x425fd1<_0x3a02f9['length'];){const _0x20f63a=_0x3a02f9[_0x425fd1],_0x570872=_0x3a02f9[_0x425fd1+0x1];_0x5bd142||(_0x5bd142=_0x80eaa4['createPositionBefore'](_0x20f63a)),co(_0x80eaa4,_0x20f63a,_0x570872)||(_0x274a3b['push'](_0x80eaa4['createRange'](_0x5bd142,_0x486ca5['isObject'](_0x20f63a)?_0x80eaa4['createPositionAfter'](_0x20f63a):_0x80eaa4['createPositionAt'](_0x20f63a,'end'))),_0x5bd142=null),_0x425fd1++;}return _0x274a3b;}function co(_0x22b571,_0x3c49c5,_0x4449d9){if(!_0x4449d9)return!0x1;const _0x5bd200=_0x22b571['createPositionAfter'](_0x3c49c5),_0x51ef02=_0x22b571['createPositionBefore'](_0x4449d9);return _0x5bd200['isTouching'](_0x51ef02);}function rs(_0x526cbd,_0x262884,_0x28ebf4){for(;_0x28ebf4['length'];){const _0x166e13=_0x28ebf4['splice'](0x0,0x64);_0x526cbd['change'](()=>{for(const _0x21b7bc of _0x166e13)_0x21b7bc['isInContent']&&_0x262884['execute'](_0x21b7bc['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x328790,_0x3f33cd,_0x3fd890){super(_0x328790),this['_command']=_0x3f33cd,this['_suggestions']=_0x3fd890,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x17b960=Array['from'](this['_suggestions']['values']())['some'](_0x23df0b=>_0x23df0b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x17b960;}['execute'](){const _0x5e07dc=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1086a3 of _0x5e07dc){const _0x4175e7=_0x1086a3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4175e7))return;}rs(this['editor']['model'],this['_command'],_0x5e07dc);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x596ae4,_0x30beb5,_0x4360af){super(_0x596ae4),this['_command']=_0x30beb5,this['_suggestions']=_0x4360af,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x79be4a=this['editor']['model']['document']['selection'],_0x12e79b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2d3c92,_0x50fb7c){const _0x376886=Array['from'](_0x2d3c92['getRanges']()),_0x160020=new Set();for(const _0x3cd033 of _0x50fb7c)if(_0x3cd033['isInContent']){for(const _0x54f2a9 of _0x376886)for(const _0x4d4d91 of _0x3cd033['getRanges']())(_0x54f2a9['isIntersecting'](_0x4d4d91)||_0x2d3c92['isCollapsed']&&!_0x3cd033['isMultiRange']&&_0x3cd033['next']&&_0x4d4d91['end']['isTouching'](_0x54f2a9['start']))&&_0x160020['add'](_0x3cd033);}return _0x160020;}(_0x79be4a,_0x12e79b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x47e9e2=ss(Array['from'](this['_selectedSuggestions']));for(const _0x34e206 of _0x47e9e2){const _0x355342=_0x34e206['getRanges']();if(!this['editor']['model']['canEditAt'](_0x355342))return;}rs(this['editor']['model'],this['_command'],_0x47e9e2);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x20de3a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4b6fb5,_0x2de1f6){super(),this['id']=_0x2de1f6['id'],this['type']=_0x2de1f6['type'],this['subType']=_0x2de1f6['subType']||null,this['author']=_0x2de1f6['author'],this['creator']=_0x2de1f6['creator']||_0x2de1f6['author'],this['isExternal']=Boolean(_0x2de1f6['attributes']&&_0x2de1f6['attributes']['@external']),this['data']=null,this['_model']=_0x4b6fb5,this['_onAccept']=_0x2de1f6['onAccept'],this['_onDiscard']=_0x2de1f6['onDiscard'],this['_onAttributesChange']=_0x2de1f6['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2de1f6['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x1a2258=this;for(;_0x1a2258['previous'];)_0x1a2258=_0x1a2258['previous'];return _0x1a2258;}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'](_0x4ef710){this['_markerNames']['add'](_0x4ef710);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x73f30f=>this['_model']['markers']['get'](_0x73f30f))['filter'](_0x572d29=>_0x572d29);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x435331=>{for(const _0x57024a of this['getMarkers']())_0x435331['removeMarker'](_0x57024a);}),this['_markerNames']['clear']();}['removeMarker'](_0x44d5d3){this['_model']['change'](_0xd7b8ee=>{_0xd7b8ee['removeMarker'](_0x44d5d3);}),this['_markerNames']['delete'](_0x44d5d3);}['addRange'](_0x2332bd){const _0x3ca60f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3ca60f),this['_model']['change'](_0x146bdf=>{_0x146bdf['addMarker'](_0x3ca60f,{'range':_0x2332bd,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1a74d1){for(const _0x2907bc of this['getRanges']())if(_0x2907bc['isIntersecting'](_0x1a74d1))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x526707=>_0x526707['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4a23fc,_0x10a997)=>[..._0x4a23fc,..._0x10a997['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x465ade=this['getRanges']();if(0x1!=_0x465ade['length'])return null;const _0x422e50=_0x465ade[0x0],_0x42bb39=_0x422e50['start']['nodeAfter'],_0x4b3244=_0x422e50['end']['nodeBefore'];return _0x42bb39 instanceof _0x1808a5?_0x42bb39!=_0x4b3244?null:_0x42bb39: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 _0x5d4df2=[];let _0x9e6c4d=this['head'];for(;_0x9e6c4d;)_0x5d4df2['push'](_0x9e6c4d),_0x9e6c4d=_0x9e6c4d['next'];return _0x5d4df2;}['setAttribute'](_0x15a77b,_0x78ff7b){const _0x119353=_0x541a6e(this['attributes']);_0xa658ea(_0x119353,_0x15a77b,_0x78ff7b),_0x4fa487(_0x119353,this['attributes'])||(this['attributes']=_0x119353,this['_onAttributesChange'](_0x119353));}['removeAttribute'](_0x23f775){const _0x1fc7b2=_0x541a6e(this['attributes']);_0x351737(_0x1fc7b2,_0x23f775),_0x4fa487(_0x1fc7b2,this['attributes'])||(this['attributes']=_0x1fc7b2,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 _0x4afc5b()['substr'](0x1,0x5);}}function o(_0x1cfe26,_0x510b61,_0x5d2713){const t=_0x1cfe26['t'];switch(_0x510b61){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',_0x5d2713);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5d2713);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5d2713);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5d2713);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5d2713);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',_0x5d2713);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5d2713);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',_0x5d2713);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5d2713);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5d2713);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5d2713);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5d2713);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5d2713);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5d2713);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5d2713);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5d2713);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5d2713);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5d2713);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5d2713);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5d2713);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5d2713);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5d2713);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5d2713);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'},_0x5d2713);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5d2713);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5d2713);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5d2713);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5d2713);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5d2713);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'},_0x5d2713);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5d2713);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5d2713);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5d2713);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5d2713);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'},_0x5d2713);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5d2713);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'},_0x5d2713);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'},_0x5d2713);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5d2713);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'},_0x5d2713);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5d2713);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'},_0x5d2713);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5d2713);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5d2713);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'},_0x5d2713);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'},_0x5d2713);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 _0x510b61;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x427c96,_0x1579f6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x427c96,this['_locale']=_0x1579f6;}['getDescriptions'](_0x2daedd){const _0x4f09d5=[],_0x16fd95=new Set(),_0x854bee=new Set();for(let _0x4fb884=0x0;_0x4fb884<_0x2daedd['length'];_0x4fb884++){const _0xded531=_0x2daedd[_0x4fb884];if(!_0xded531['isInContent'])continue;const _0x4314f4=this['_handleCustomCallbackDescription'](_0xded531);if(_0x4314f4){if(null!=_0xded531['subType']){if(_0x16fd95['has'](_0xded531['subType']))continue;_0x16fd95['add'](_0xded531['subType']);}_0x4f09d5['push'](_0x4314f4);}else{if('attribute'!=_0xded531['type'])'insertion'!=_0xded531['type']&&'deletion'!=_0xded531['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4f09d5,_0xded531,_0x2daedd[_0x4fb884+0x1]);else{const _0x37d39f=_0xded531['data']['key'];if(_0x854bee['has'](_0x37d39f))continue;_0x854bee['add'](_0xded531['data']['key']),_0x37d39f==m?this['_handleRenameSuggestionDescription'](_0x4f09d5,_0xded531):this['_handleAttributeSuggestionDescription'](_0x4f09d5,_0xded531);}}}return this['_resolveDescriptionItems'](_0x4f09d5);}['registerDescriptionCallback'](_0x489ab7){this['_customCallbacks']['push'](_0x489ab7);}['registerElementLabel'](_0x5a0475,_0x96d6fc,_0x25c293=_0x515e10['normal']){'function'==typeof _0x5a0475?_0x5986fa(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5a0475,'label':_0x96d6fc,'priority':_0x25c293}):this['_itemLabels']['set'](_0x5a0475,_0x96d6fc);}['registerAttributeLabel'](_0x12f687,_0x51d4a6){this['_attributeLabels']['set'](_0x12f687,_0x51d4a6);}['getItemLabel'](_0x2dce63,_0x5ce1f9=0x1){let _0x5e5cdb;for(const _0x1a0de5 of this['_itemLabelsCallbacks'])if(_0x1a0de5['matchingCallback'](_0x2dce63)){_0x5e5cdb=_0x1a0de5['label'];break;}return _0x5e5cdb||(_0x5e5cdb=this['_itemLabels']['get'](_0x2dce63['name'])),_0x5e5cdb?_0x5e5cdb(_0x5ce1f9):0x1!==_0x5ce1f9?_0x5ce1f9+'\x20'+_0x2dce63['name']+'s':''+_0x2dce63['name'];}['_addDescriptionItems'](_0x3caa5f,_0x49b7bb){const _0x59a4fa=_0x49b7bb['getFirstRange']()['getWalker'](),_0x537297='insertion'==_0x49b7bb['type']?'add':'remove';for(const _0x11c2a9 of _0x59a4fa){const _0x4c104c=_0x11c2a9['item'],_0xfef8aa=_0x3caa5f[_0x3caa5f['length']-0x1];if(_0x4c104c['is']('$textProxy'))_0xfef8aa&&_0xfef8aa['type']['indexOf']('Container')>-0x1&&_0x3caa5f['pop'](),_0xfef8aa&&'text'==_0xfef8aa['type']?_0xfef8aa[_0x537297]+=_0x4c104c['data']:_0x3caa5f['push']({'type':'text','add':'add'==_0x537297?_0x4c104c['data']:'','remove':'remove'==_0x537297?_0x4c104c['data']:''});else{if(this['_schema']['isObject'](_0x4c104c)){const _0x43f220=_0x4c104c;if(_0xfef8aa&&_0xfef8aa['type']['indexOf']('Container')>-0x1&&_0x3caa5f['pop'](),'elementEnd'==_0x11c2a9['type'])continue;_0xfef8aa&&_0xfef8aa['type']==_0x537297+'Object'&&_0xfef8aa['element']['name']==_0x43f220['name']?_0xfef8aa['quantity']++:_0x3caa5f['push']({'type':_0x537297+'Object','element':_0x43f220,'quantity':0x1}),_0x59a4fa['skip'](_0x976398=>!('elementEnd'==_0x976398['type']&&_0x976398['item']==_0x4c104c));}else{if(this['_schema']['checkChild'](_0x4c104c,'$text')||_0x4c104c['is']('element','softBreak')){const _0x3b8678=_0x4c104c;if('add'==_0x537297&&'elementStart'==_0x11c2a9['type']||'remove'==_0x537297&&'elementEnd'==_0x11c2a9['type'])continue;if(_0xfef8aa&&-0x1==_0xfef8aa['type']['indexOf']('Container')){'text'==_0xfef8aa['type']&&(_0xfef8aa[_0x537297]+='\x0a');continue;}let _0x1c2d4a;if(_0x1c2d4a='add'==_0x537297?_0x3b8678['nextSibling']&&!this['_schema']['isObject'](_0x3b8678['nextSibling'])?_0x3b8678['nextSibling']:null:_0x3b8678['previousSibling']&&!this['_schema']['isObject'](_0x3b8678['previousSibling'])?_0x3b8678['previousSibling']:null,_0x3b8678['isEmpty']||_0x1c2d4a&&_0x1c2d4a['isEmpty']){const _0x3c8664=_0x1c2d4a&&_0x1c2d4a['isEmpty']?_0x1c2d4a:_0x3b8678;_0xfef8aa&&_0xfef8aa['type']==_0x537297+'EmptyContainer'&&_0xfef8aa['element']['name']==_0x3c8664['name']?_0xfef8aa['quantity']++:_0x3caa5f['push']({'type':_0x537297+'EmptyContainer','element':_0x3c8664,'quantity':0x1});}else _0x3caa5f['push']({'type':_0x537297+'Container','element':_0x3b8678});}}}}}['_resolveDescriptionItems'](_0x2274ac){const _0x1a4e16=this['_locale'],_0x8a96e4=[],_0x55eb7b=[],_0x176699=[];for(const _0x35611e of _0x2274ac)switch(_0x35611e['type']){case'text':if(_0x35611e['add']=_0x35611e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x35611e['remove']=_0x35611e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x35611e['add']&&''!=_0x35611e['remove']){_0x8a96e4['push']({'type':'replace','content':o(_0x1a4e16,'REPLACE_TEXT',['\x22'+_0x35611e['remove']+'\x22','\x22'+_0x35611e['add']+'\x22'])});continue;}if(null!=_0x35611e['add']['match'](/^ +$/)){_0x8a96e4['push']({'type':'insertion','content':o(_0x1a4e16,'*Insert:*\x20%0',o(_0x1a4e16,'ELEMENT_SPACE',_0x35611e['add']['length']))});continue;}if(null!=_0x35611e['remove']['match'](/^ +$/)){_0x8a96e4['push']({'type':'deletion','content':o(_0x1a4e16,'*Remove:*\x20%0',o(_0x1a4e16,'ELEMENT_SPACE',_0x35611e['remove']['length']))});continue;}if(''!=_0x35611e['add']){_0x8a96e4['push']({'type':'insertion','content':o(_0x1a4e16,'*Insert:*\x20%0','\x22'+_0x35611e['add']+'\x22')});continue;}_0x8a96e4['push']({'type':'deletion','content':o(_0x1a4e16,'*Remove:*\x20%0','\x22'+_0x35611e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x8a96e4['push']({'type':'insertion','content':o(_0x1a4e16,'*Insert:*\x20%0',this['getItemLabel'](_0x35611e['element'],_0x35611e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x8a96e4['push']({'type':'deletion','content':o(_0x1a4e16,'*Remove:*\x20%0',this['getItemLabel'](_0x35611e['element'],_0x35611e['quantity']))});continue;case'addContainer':_0x8a96e4['push']({'type':'insertion','content':o(_0x1a4e16,'*Split:*\x20%0',this['getItemLabel'](_0x35611e['element'],_0x35611e['quantity']))});continue;case'removeContainer':_0x8a96e4['push']({'type':'deletion','content':o(_0x1a4e16,'*Merge:*\x20%0',this['getItemLabel'](_0x35611e['element'],_0x35611e['quantity']))});continue;case'addFormat':_0x55eb7b['push'](_0x35611e['key']);continue;case'removeFormat':_0x176699['push'](_0x35611e['key']);continue;default:_0x8a96e4['push'](_0x35611e);}if(_0x55eb7b['length']){const _0x2c13a6=_0x55eb7b['map'](_0x52551e=>this['_attributeLabels']['has'](_0x52551e)?this['_attributeLabels']['get'](_0x52551e):_0x52551e)['join'](',\x20');_0x8a96e4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2c13a6)});}if(_0x176699['length']){const _0x289d71=_0x176699['map'](_0xfebbc4=>this['_attributeLabels']['has'](_0xfebbc4)?this['_attributeLabels']['get'](_0xfebbc4):_0xfebbc4)['join'](',\x20');_0x8a96e4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x289d71)});}return _0x8a96e4;}['_handleCustomCallbackDescription'](_0x2118fe){for(const _0x410f51 of this['_customCallbacks']){const _0x37b252=_0x410f51(_0x2118fe);if(_0x37b252&&'type'in _0x37b252)return _0x37b252;}}['_handleAttributeSuggestionDescription'](_0x57bed3,_0xb22479){const _0x2199a3=_0xb22479['data'],_0x469d60=void 0x0===_0x2199a3['newValue']?'removeFormat':'addFormat';_0x57bed3['push']({'type':_0x469d60,'key':_0x2199a3['key']});}['_handleRenameSuggestionDescription'](_0x3be8f3,_0x45e9c3){_0x3be8f3['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x45e9c3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xad5d7f,_0x176531,_0x45db58){if(this['_addDescriptionItems'](_0xad5d7f,_0x176531),_0x45db58&&_0x45db58['getFirstRange']()&&!_0x176531['getFirstRange']()['end']['isEqual'](_0x45db58['getFirstRange']()['start'])){const _0x4d4cf6=_0xad5d7f[_0xad5d7f['length']-0x1],_0x25b2c7='insertion'==_0x176531['type']?'add':'remove';_0x4d4cf6&&'text'==_0x4d4cf6['type']&&(_0x4d4cf6[_0x25b2c7]+='\x0a');}}}class E extends _0x20810f{['afterInit'](){const _0x31a2c4=this['editor'],_0x5cf92d=_0x31a2c4['plugins']['get']('TrackChangesEditing');_0x31a2c4['commands']['get']('showAIAssistant')&&_0x5cf92d['enableCommand']('showAIAssistant');}}class V extends _0x20810f{['afterInit'](){const _0x5cb215=this['editor'],_0x2c9baa=_0x5cb215['locale'];if(!_0x5cb215['plugins']['has']('AlignmentEditing'))return;const _0x1dbf97=_0x5cb215['plugins']['get']('TrackChangesEditing');_0x1dbf97['enableDefaultAttributesIntegration']('alignment'),_0x1dbf97['registerBlockAttribute']('alignment'),_0x1dbf97['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2c9baa,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17b169=this['editor'],_0x4866d1=_0x17b169['locale'];_0x17b169['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22ff79=>{if('formatBlock'!=_0x22ff79['type'])return;const {data:_0xd2fa4f}=_0x22ff79;if(_0xd2fa4f&&'alignment'==_0xd2fa4f['commandName']){const _0x168a31=_0xd2fa4f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4866d1,'*Format:*\x20%0',function(_0x42b544){switch(_0x42b544){case'left':return o(_0x4866d1,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4866d1,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4866d1,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4866d1,'FORMAT_JUSTIFY_TEXT');}}(_0x168a31))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x20810f{['afterInit'](){const _0x200377=this['editor'],_0x38f6c4=_0x200377['plugins']['get']('TrackChangesEditing'),_0x2fc9ac=_0x200377['locale'];for(const _0x3b43ca of ti){if(!_0x200377['plugins']['has'](_0x3b43ca))continue;const _0x91dd0c=_0x3b43ca['slice'](0x0,-0x7)['toLowerCase'](),_0x364744='FORMAT_'+_0x91dd0c['toUpperCase']();_0x38f6c4['enableDefaultAttributesIntegration'](_0x91dd0c),_0x38f6c4['registerInlineAttribute'](_0x91dd0c),_0x38f6c4['descriptionFactory']['registerAttributeLabel'](_0x91dd0c,o(_0x2fc9ac,_0x364744));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fb9f8=this['editor'],_0x2cfefe=_0x1fb9f8['locale'],_0x25e06e=_0x1fb9f8['plugins']['get']('TrackChangesEditing');function _0x3266e4(_0x58d350,_0x4ad927){_0x25e06e['descriptionFactory']['registerDescriptionCallback'](_0x50ded5=>{if('formatInline'!=_0x50ded5['type'])return;const {data:_0x1f840d}=_0x50ded5;return _0x1f840d&&_0x1f840d['commandName']===_0x58d350?_0x1f840d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2cfefe,'*Format:*\x20%0',_0x4ad927)}:{'type':'format','content':o(_0x2cfefe,'*Remove\x20format:*\x20%0',_0x4ad927)}:void 0x0;});}_0x3266e4('bold',o(_0x2cfefe,'FORMAT_BOLD')),_0x3266e4('italic',o(_0x2cfefe,'FORMAT_ITALIC')),_0x3266e4('underline',o(_0x2cfefe,'FORMAT_UNDERLINE')),_0x3266e4('code',o(_0x2cfefe,'FORMAT_CODE')),_0x3266e4('strikethrough',o(_0x2cfefe,'FORMAT_STRIKETHROUGH')),_0x3266e4('subscript',o(_0x2cfefe,'FORMAT_SUBSCRIPT')),_0x3266e4('superscript',o(_0x2cfefe,'FORMAT_SUPERSCRIPT'));}}class O extends _0x20810f{['afterInit'](){const _0x5c48f5=this['editor'],_0x3a6fc5=_0x5c48f5['locale'];if(!_0x5c48f5['plugins']['has']('BlockQuoteEditing'))return;const _0x2480f0=_0x5c48f5['plugins']['get']('TrackChangesEditing'),_0x371620=this['editor']['commands']['get']('blockQuote');_0x2480f0['enableCommand']('blockQuote',(_0x3fc389,_0x309aad={})=>{const _0x10a987=this['editor']['model']['document']['selection'],_0x4d7fa=_0x309aad&&void 0x0!==_0x309aad['forceValue']?_0x309aad['forceValue']:!_0x371620['value'];let _0x46dacd=[];if(_0x4d7fa){const _0x25aedc=Array['from'](_0x10a987['getSelectedBlocks']())['filter'](_0x10afee=>oo(_0x10afee)||function(_0x1d0c9b,_0x6fe07){const _0x165d1f=_0x6fe07['checkChild'](_0x1d0c9b['parent'],'blockQuote'),_0x4a432b=_0x6fe07['checkChild'](['$root','blockQuote'],_0x1d0c9b);return _0x165d1f&&_0x4a432b;}(_0x10afee,this['editor']['model']['schema']));_0x46dacd=to(_0x25aedc,_0x5c48f5['model']);}else{const _0x1d7c9a=Array['from'](_0x10a987['getSelectedBlocks']())['filter'](_0x4f55eb=>oo(_0x4f55eb));_0x46dacd=to(_0x1d7c9a,_0x5c48f5['model']);}_0x5c48f5['model']['change'](()=>{for(const _0x222d36 of _0x46dacd)_0x2480f0['markBlockFormat'](_0x222d36,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4d7fa}]});});}),_0x2480f0['descriptionFactory']['registerDescriptionCallback'](_0x2da872=>{const {data:_0x4b109d}=_0x2da872;if(_0x4b109d&&'blockQuote'==_0x4b109d['commandName']){const _0x4ae659=o(_0x3a6fc5,'ELEMENT_BLOCK_QUOTE');return _0x4b109d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a6fc5,'*Set\x20format:*\x20%0',_0x4ae659)}:{'type':'format','content':o(_0x3a6fc5,'*Remove\x20format:*\x20%0',_0x4ae659)};}});}}function oo(_0x9b19f7){return'blockQuote'==_0x9b19f7['parent']['name'];}class G extends _0x20810f{['afterInit'](){const _0x35a391=this['editor'];_0x35a391['plugins']['has']('CaseChange')&&(_0x35a391['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x35a391['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x35a391['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x20810f{['afterInit'](){const _0x4a06a6=this['editor'];_0x4a06a6['commands']['get']('ckbox')&&_0x4a06a6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x20810f{['afterInit'](){const _0x239385=this['editor'];if(!_0x239385['plugins']['has']('CodeBlock'))return;const _0x283933=_0x239385['plugins']['get']('TrackChangesEditing'),_0xd5229b=_0x239385['locale'],_0x4424f9=_0x239385['config']['get']('codeBlock')['languages'],_0x2b4900=_0x239385['commands']['get']('codeBlock');_0x283933['enableCommand']('indentCodeBlock'),_0x283933['enableCommand']('outdentCodeBlock'),_0x283933['enableCommand']('codeBlock',(_0x21f0ae,_0x52f605={})=>{const _0x42a089=_0x239385['model'],_0x3ac7a7=_0x239385['model']['document']['selection'],_0x2aa5e8=_0x52f605&&void 0x0!==_0x52f605['forceValue']?_0x52f605['forceValue']:!_0x2b4900['value'];let _0x47028a;_0x52f605['language']||(_0x52f605['language']=_0x4424f9[0x0]['language']),_0x47028a=_0x2aa5e8?Array['from'](_0x3ac7a7['getSelectedBlocks']())['filter'](_0x5d8057=>eo(_0x5d8057)||function(_0x11c7e2,_0x4c2177){if(_0x11c7e2['is']('rootElement')||_0x4c2177['isLimit'](_0x11c7e2))return!0x1;return _0x4c2177['checkChild'](_0x11c7e2['parent'],'codeBlock');}(_0x5d8057,_0x42a089['schema'])):Array['from'](_0x3ac7a7['getSelectedBlocks']())['filter'](_0x4e623d=>eo(_0x4e623d));const _0x30be05=to(_0x47028a,_0x42a089);_0x42a089['change'](()=>{for(const _0x3ed470 of _0x30be05)_0x283933['markBlockFormat'](_0x3ed470,{'commandName':'codeBlock','commandParams':[{..._0x52f605,'forceValue':_0x2aa5e8}],'formatGroupId':'blockName'});});}),(_0x283933['descriptionFactory']['registerElementLabel']('codeBlock',_0x19e1e6=>o(_0xd5229b,'ELEMENT_CODE_BLOCK',_0x19e1e6)),_0x283933['descriptionFactory']['registerDescriptionCallback'](_0xfe88d1=>{if('formatBlock'!=_0xfe88d1['type'])return;const _0x2163d8=_0xd5229b['t'],{data:_0x260b11}=_0xfe88d1;if(!_0x260b11||'codeBlock'!=_0x260b11['commandName'])return;const _0xf11ca9=_0x260b11['commandParams'][0x0]['language'],_0x5b1b52=_0x2163d8(_0x4424f9['find'](_0x3d41b5=>_0x3d41b5['language']===_0xf11ca9)['label'])['toLowerCase']();return _0x260b11['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd5229b,'*Set\x20format:*\x20%0',o(_0xd5229b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5b1b52+')')}:{'type':'format','content':o(_0xd5229b,'*Remove\x20format:*\x20%0',o(_0xd5229b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x31c8a8){return'codeBlock'==_0x31c8a8['name'];}class H extends _0x20810f{['afterInit'](){const _0x403a20=this['editor'];if(!_0x403a20['plugins']['has']('CommentsEditing'))return;_0x403a20['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x52ae09,_0x5ce507,_0x226d7b){const _0x1a1633=[];for(const _0x4bad1f of _0x5ce507['getItems']())_0x4bad1f['hasAttribute'](_0x52ae09)&&_0x1a1633['push'](_0x226d7b['createRangeOn'](_0x4bad1f));return _0x1a1633;}function _e(_0x521b3d,_0x584e93,{showActiveMarker:_0x371cf7=!0x0}={}){const _0x1ac405=_0x521b3d['plugins']['get']('TrackChangesEditing');return(_0x3e2890,_0x3cfd71,_0x511ab7)=>{if(!_0x511ab7['consumable']['test'](_0x3cfd71['markerRange'],_0x3e2890['name']))return;const _0x1a46d5=_0x3cfd71['markerRange']['getWalker'](),_0x3deada=_0x3cfd71['markerRange']['start'],_0xa3d8ea=_0x521b3d['model']['schema'];let _0x21313c=null,_0x453443=null,_0x38af74=!0x1,_0x24071e=!0x1;for(const _0x3559d0 of _0x1a46d5){const _0x2d6dd4=_0x3559d0['item'];_0x38af74=_0x38af74||_0xa3d8ea['isContent'](_0x2d6dd4);const _0x437674=_0x511ab7['mapper']['toViewElement'](_0x2d6dd4);if(_0x437674&&_0x437674['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3559d0['type']&&(_0xa3d8ea['isBlock'](_0x2d6dd4)&&!_0xa3d8ea['isLimit'](_0x2d6dd4)&&(_0x2d6dd4['nextSibling']||_0x3deada['isAtEnd']?_0x21313c&&_0x21313c['parent']==_0x2d6dd4||(_0x21313c=_0x2d6dd4,_0x40221c(_0x3559d0['previousPosition']),_0x24071e=!0x0):_0x453443=_0x453443||_0x3559d0['previousPosition']));}function _0x40221c(_0x402a97){const _0x186484=_0x511ab7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x584e93}),_0x13f334=_0x511ab7['mapper']['toViewPosition'](_0x402a97);_0x371cf7&&_0x1ac405['activeMarkers']['includes'](_0x3cfd71['markerName'])&&_0x511ab7['writer']['addClass']('ck-suggestion-marker--active',_0x186484),_0x511ab7['writer']['insert'](_0x13f334,_0x186484),_0x511ab7['mapper']['bindElementToMarker'](_0x186484,_0x3cfd71['markerName']);}_0x38af74||_0x24071e||!_0x453443||_0x40221c(_0x453443);};}class q extends _0x20810f{static get['requires'](){return[_0x515384];}['init'](){const _0x5852ed=this['editor'],_0x5f4871=_0x5852ed['plugins']['get']('TrackChangesEditing');_0x5f4871['enableCommand']('delete');const _0x6f5959=_0x5852ed['commands']['get']('deleteForward');_0x5f4871['enableCommand']('deleteForward',(_0x2753bb,_0x2504da={})=>{const _0x4c66e2=_0x5852ed['model']['createSelection'](_0x5852ed['model']['document']['selection']);_0x4c66e2['isCollapsed']&&_0x5852ed['model']['modifySelection'](_0x4c66e2,{'direction':'forward','unit':_0x2504da['unit']});const _0x1a357b=_0x4c66e2['getFirstRange'](),_0x3f7eb6=_0x3f67f3['fromRange'](_0x1a357b);let _0x535853;_0x2753bb(_0x2504da),_0x535853='$graveyard'==_0x3f7eb6['root']['rootName']?_0x5852ed['model']['createRange'](_0x1a357b['start']):_0x5852ed['model']['createRange'](_0x3f7eb6['start'],_0x3f7eb6['end']),_0x3f7eb6['detach'](),_0x5852ed['model']['enqueueChange'](_0x6f5959['buffer']['batch'],_0x5beea6=>{_0x6f5959['buffer']['lock'](),_0x5beea6['setSelection'](_0x5beea6['createRange'](_0x535853['end'])),_0x6f5959['buffer']['unlock']();});}),_0x5852ed['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5852ed,'merge'),{'priority':'high'}),_0x5852ed['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x411b08,_0xabe561,_0x35bea9)=>{_0x35bea9['options']['showSuggestionHighlights']&&_e(_0x5852ed,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x411b08,_0xabe561,_0x35bea9);},{'priority':'high'}),_0x5852ed['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x42649e,_0x1daf48,_0x673eb7)=>{const _0x26bf43=_0x673eb7['mapper']['markerNameToElements'](_0x1daf48['markerName']);if(_0x26bf43){for(const _0xb68701 of _0x26bf43)_0xb68701['is']('uiElement')&&(_0x673eb7['mapper']['unbindElementFromMarkerName'](_0xb68701,_0x1daf48['markerName']),_0x673eb7['writer']['remove'](_0xb68701));}},{'priority':'high'});}}class z extends _0x20810f{['afterInit'](){const _0x37c578=this['editor'];if(!_0x37c578['plugins']['has']('ListEditing'))return;const _0x4f154e=_0x37c578['locale'],_0x4b74e9=_0x37c578['plugins']['get']('TrackChangesEditing'),_0x493233=_0x37c578['plugins']['has']('TodoListEditing'),_0x56f0ed=!!_0x37c578['config']['get']('list.multiBlock');function _0x161494(_0x8c2eee){return{'type':'format','content':''+o(_0x4f154e,'*Set\x20format:*\x20%0',_0x8c2eee)};}function _0x2a50c2(_0x351102){return{'type':'format','content':''+o(_0x4f154e,'*Remove\x20format:*\x20%0',_0x351102)};}_0x4b74e9['enableDefaultAttributesIntegration']('numberedList'),_0x4b74e9['enableDefaultAttributesIntegration']('bulletedList'),_0x4b74e9['enableDefaultAttributesIntegration']('customNumberedList'),_0x4b74e9['enableDefaultAttributesIntegration']('customBulletedList'),_0x4b74e9['enableDefaultAttributesIntegration']('indentList'),_0x4b74e9['enableDefaultAttributesIntegration']('outdentList'),_0x4b74e9['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4b74e9['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4b74e9['registerBlockAttribute']('listItemId'),_0x4b74e9['registerBlockAttribute']('listType'),_0x4b74e9['registerBlockAttribute']('listIndent'),_0x56f0ed&&(_0x4b74e9['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4b74e9['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x493233&&(_0x4b74e9['enableDefaultAttributesIntegration']('todoList'),_0x4b74e9['enableDefaultAttributesIntegration']('checkTodoList'),_0x4b74e9['registerBlockAttribute']('todoListChecked'),_0x4b74e9['descriptionFactory']['registerDescriptionCallback'](_0xd39700=>{const {data:_0x17098e}=_0xd39700;if(_0x17098e&&'todoListChecked'==_0x17098e['key'])return{'type':'format','content':_0x17098e['newValue']?o(_0x4f154e,'*Check\x20item*'):o(_0x4f154e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1e4786=>{if(_0x1e4786['batch']['isUndo'])return!0x1;let _0x7b3fce=!0x1;const _0x409e5f=_0x4b74e9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47fcc2=>'todoListChecked'===_0x4b74e9['_getAttributeKey'](_0x47fcc2));for(const _0x53181a of _0x409e5f){'todo'!=_0x53181a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4b74e9['_findSuggestions'](_0x53181a['getFirstRange'](),'attribute')['find'](_0x3f9508=>'listType'===_0x4b74e9['_getAttributeKey'](_0x3f9508['suggestion']))||(_0x1e4786['removeMarker'](_0x53181a['getFirstMarker']()),_0x7b3fce=!0x0));}return _0x7b3fce;})),_0x4b74e9['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4f154e,'FORMAT_INDENT'));const _0x49897c={'type':'format','content':''};_0x4b74e9['descriptionFactory']['registerDescriptionCallback'](_0x5cafa3=>{const {data:_0x2e0416}=_0x5cafa3;if(!_0x2e0416||'listType'!=_0x2e0416['key'])return;let _0x5ec2c5=_0x5cafa3['head'];for(;_0x5ec2c5;){if(_0x5ec2c5['data']&&(('listStyle'==_0x5ec2c5['data']['key']||'listMarkerStyle'==_0x5ec2c5['data']['key'])&&(_0x5ec2c5['data']['newValue']&&'default'!=_0x5ec2c5['data']['newValue']||'default'!=_0x5ec2c5['data']['oldValue']&&!_0x2e0416['newValue'])||!_0x56f0ed&&_0x5ec2c5['data']['key']==m))return _0x49897c;_0x5ec2c5=_0x5ec2c5['next'];}if(null==_0x2e0416['newValue'])switch(_0x2e0416['oldValue']){case'bulleted':return _0x2a50c2(o(_0x4f154e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2a50c2(o(_0x4f154e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2a50c2(o(_0x4f154e,'ELEMENT_TODO_LIST'));}switch(_0x2e0416['newValue']){case'bulleted':return _0x161494(o(_0x4f154e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x161494(o(_0x4f154e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x161494(o(_0x4f154e,'ELEMENT_TODO_LIST'));}}),_0x4b74e9['descriptionFactory']['registerDescriptionCallback'](_0x4e1ff1=>{const {data:_0x18ab86}=_0x4e1ff1;if(_0x18ab86&&'listIndent'==_0x18ab86['key'])return null==_0x18ab86['newValue']||null==_0x18ab86['oldValue']&&0x0==_0x18ab86['newValue']?_0x49897c:void 0x0;}),_0x4b74e9['descriptionFactory']['registerDescriptionCallback'](_0x2694e4=>{if('attribute'!=_0x2694e4['type'])return;const {data:_0xf5f126}=_0x2694e4;if(!_0xf5f126||'listItemId'!=_0xf5f126['key'])return;const _0x4a2a94=le(_0x2694e4);return'newValue'==_0x4a2a94?{'type':'format','content':o(_0x4f154e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4a2a94?{'type':'format','content':o(_0x4f154e,'*Split:*\x20list\x20item')}:_0x49897c;}),_0x37c578['model']['document']['registerPostFixer'](_0x3d136d=>this['listItemIdFixer'](_0x3d136d)),_0x37c578['model']['document']['registerPostFixer'](_0x2d69bb=>this['noTrackChangesFixer'](_0x2d69bb)),_0x37c578['model']['document']['registerPostFixer'](_0x47ef7c=>this['assureChains'](_0x47ef7c)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1a4895){if(_0x1a4895['batch']['isUndo']||!_0x1a4895['batch']['isLocal'])return!0x1;let _0x17681c=!0x1;const _0x3cde88=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c64f2=>_0x5c64f2['data']&&'listItemId'==_0x5c64f2['data']['key'])['filter'](_0x2fbbd2=>_0x2fbbd2['data']['newValue']&&_0x2fbbd2['data']['oldValue']);for(const _0x3ad1cd of _0x3cde88)le(_0x3ad1cd)||(_0x1a4895['removeMarker'](_0x3ad1cd['getFirstMarker']()),_0x17681c=!0x0);return _0x17681c;}['noTrackChangesFixer'](_0x1b4213){if(_0x1b4213['batch']['isUndo']||!_0x1b4213['batch']['isLocal'])return!0x1;const _0x399eae=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x399eae['trackChangesCommand']['value'])return!0x1;let _0x2108c0=!0x1;const _0x4a69a1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x39c9bf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x294a80=>'attribute'==_0x294a80['type'])['filter'](_0x3dd35c=>_0x4a69a1['includes'](_0x3dd35c['attributeKey']));if(0x0==_0x39c9bf['length'])return _0x2108c0;for(const _0x130bdd of _0x39c9bf){const _0x64aff9=_0x399eae['_findSuggestions'](_0x130bdd['range'],'attribute')['filter'](_0x5aba35=>!_0x5aba35['meta']['isNextTo'])['map'](_0x2140df=>_0x2140df['suggestion'])['filter'](_0x4ab741=>{const _0x4f6ad3=_0x399eae['_getAttributeKey'](_0x4ab741);return _0x4a69a1['includes'](_0x4f6ad3);});if(_0x64aff9['length']){for(const _0x5bc826 of _0x64aff9)_0x1b4213['removeMarker'](_0x5bc826['getFirstMarker']());_0x2108c0=!0x0;}}return _0x2108c0;}['assureChains'](_0x13188f){if(_0x13188f['batch']['isUndo']||!_0x13188f['batch']['isLocal'])return!0x1;const _0x5991c2=this['editor']['plugins']['get']('TrackChangesEditing');let _0xe5c98f=!0x1;const _0x2b9b05=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x2b071e of _0x5991c2['getSuggestions']({'skipNotAttached':!0x0})){const _0x533964=_0x5991c2['_findSuggestions'](_0x2b071e['getFirstRange'](),'attribute')['map'](_0x446c65=>_0x446c65['suggestion'])['filter'](_0x2cb25d=>_0x2cb25d['data']&&_0x2b9b05['includes'](_0x2cb25d['data']['key']));if(!_0x533964['length'])continue;const _0x3eee29=_0x533964[0x0]['head']['attributes']['groupId'];if(!_0x533964['every'](_0x4f60eb=>_0x4f60eb['attributes']['groupId']===_0x3eee29)){for(const _0x16ce27 of _0x533964)_0x22d3bd(_0x16ce27,_0x3eee29)&&(_0xe5c98f=!0x0);}}return _0xe5c98f;function _0x1b99d5(_0x56449b,_0x56f3e0){for(const _0x27850d of _0x5991c2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x83ab6d=>'attribute'==_0x83ab6d['type']&&_0x83ab6d['attributes']['groupId']==_0x56449b))_0x27850d['setAttribute']('groupId',_0x56f3e0);}function _0x22d3bd(_0x4d0f50,_0x57bf79){let _0x3f566c=_0x4d0f50['head'],_0x2148ba=!0x1;for(;_0x3f566c;)_0x3f566c['attributes']['groupId']!=_0x57bf79&&(_0x1b99d5(_0x3f566c['attributes']['groupId'],_0x57bf79),_0x3f566c['setAttribute']('groupId',_0x57bf79),_0x2148ba=!0x0),_0x3f566c=_0x3f566c['next'];return _0x2148ba;}}['_supportLegacySuggestions'](){const _0x452eea=this['editor'],_0x725d7c=_0x452eea['locale'],_0x174d68=_0x452eea['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x174d68['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x331d3e,_0x5424e1){const _0x139429=[];for(let _0x12e17a of _0x331d3e)_0x12e17a['start']['nodeAfter']===_0x12e17a['end']['parent']&&(_0x12e17a=_0x452eea['model']['createRange'](_0x452eea['model']['createPositionAt'](_0x12e17a['start']['nodeAfter'],0x0))),_0x139429['push'](_0x12e17a);_0x452eea['model']['change'](_0x5d23e7=>{const _0x50de7c=_0x452eea['model']['document']['selection'],_0x304545=Array['from'](_0x50de7c['getRanges']())['map'](_0x30bbca=>_0x3f67f3['fromRange'](_0x30bbca));_0x5d23e7['setSelection'](_0x139429),_0x452eea['commands']['get'](_0x5424e1['commandName'])['refresh'](),_0x5424e1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x452eea['execute'](_0x5424e1['commandName'],..._0x5424e1['commandParams']),_0x5d23e7['setSelection'](_0x304545);for(const _0x497ec1 of _0x304545)_0x497ec1['detach']();});}),_0x174d68['descriptionFactory']['registerElementLabel'](function(_0x3c4fe9){const _0x437033=!_0x452eea['model']['schema']['isObject'](_0x3c4fe9),_0x1a0a43=_0x3c4fe9['previousSibling'],_0x540a2d=_0x3c4fe9['nextSibling'],_0x362e43=_0x3c4fe9['getAttribute']('listItemId'),_0x228231=!_0x1a0a43||_0x1a0a43['getAttribute']('listItemId')!==_0x362e43,_0x34f1cc=!_0x540a2d||_0x540a2d['getAttribute']('listItemId')!==_0x362e43;return _0x437033&&Boolean(_0x362e43)&&_0x228231&&_0x34f1cc;},_0xab77f4=>o(_0x725d7c,'ELEMENT_LIST_ITEM',_0xab77f4));}['_registerLegacyDescription'](){const _0x5a77f8=this['editor'],_0x1022cb=_0x5a77f8['locale'];function _0x706928(_0x1f2fb4){const _0x476c64=_0x5a77f8['commands']['get']('bulletedList')['value'],_0x2d2f80=_0x5a77f8['commands']['get']('numberedList')['value'];return'numberedList'===_0x1f2fb4?_0x476c64:_0x2d2f80;}_0x5a77f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x49e4ed){if('formatBlock'!=_0x49e4ed['type'])return;const {data:_0x315730}=_0x49e4ed;if(!_0x315730)return;let _0x101dc8,_0x181031,_0x259530,_0x3cb9ed;switch(_0x315730['commandName']){case'bulletedList':_0x259530=_0x315730['commandParams'][0x0]['forceValue'],_0x3cb9ed=_0x706928(_0x315730['commandName']),_0x101dc8=_0x259530?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3cb9ed&&_0x5a77f8['config']['get']('list.multiBlock')||(_0x101dc8='*Change\x20to:*\x20%0'),_0x181031={'type':'format','content':o(_0x1022cb,_0x101dc8,o(_0x1022cb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x259530=_0x315730['commandParams'][0x0]['forceValue'],_0x3cb9ed=_0x706928(_0x315730['commandName']),_0x101dc8=_0x259530?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3cb9ed&&_0x5a77f8['config']['get']('list.multiBlock')||(_0x101dc8='*Change\x20to:*\x20%0'),_0x181031={'type':'format','content':o(_0x1022cb,_0x101dc8,o(_0x1022cb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x101dc8='*Indent:*\x20%0',_0x181031={'type':'format','content':o(_0x1022cb,_0x101dc8,o(_0x1022cb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x101dc8=function(_0x151806){const _0x5383bd=_0x151806['getFirstRange']();let _0x108f93=_0x5383bd['start']['nodeAfter'];for(;_0x108f93&&_0x5383bd['containsItem'](_0x108f93);){if(_0x108f93['getAttribute']('listIndent')>0x0)return!0x1;_0x108f93=_0x108f93['nextSibling'];}return!0x0;}(_0x49e4ed)?o(_0x1022cb,'*Format:*\x20remove\x20from\x20%0',o(_0x1022cb,function(_0x53f245){return'ELEMENT_'+_0x53f245['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x49e4ed))):o(_0x1022cb,'*Outdent:*\x20%0',o(_0x1022cb,'ELEMENT_LIST_ITEM')),_0x181031={'type':'format','content':_0x101dc8};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x315730['multipleBlocks']&&(_0x101dc8='*Merge:*\x20%0',_0x181031={'type':'deletion','content':o(_0x1022cb,_0x101dc8,o(_0x1022cb,'ELEMENT_LIST_ITEM'))});}return _0x181031;});}}function le(_0x392be4){let _0x57661f=_0x392be4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x57661f;){const _0x20e0b8=_0x57661f['getAttribute']('listItemId');if(!_0x20e0b8)return!0x1;if(_0x20e0b8==_0x392be4['data']['newValue'])return'newValue';if(_0x20e0b8==_0x392be4['data']['oldValue'])return'oldValue';_0x57661f=_0x57661f['previousSibling'];}return!0x1;}class ue extends _0x20810f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2a8a73=this['editor']['config']['get']('list.properties'),_0x4d3d71=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a8a73['styles']&&(_0x4d3d71['enableDefaultAttributesIntegration']('listStyle'),_0x4d3d71['registerBlockAttribute']('listStyle')),_0x2a8a73['reversed']&&(_0x4d3d71['enableDefaultAttributesIntegration']('listReversed'),_0x4d3d71['registerBlockAttribute']('listReversed')),_0x2a8a73['startIndex']&&(_0x4d3d71['enableDefaultAttributesIntegration']('listStart'),_0x4d3d71['registerBlockAttribute']('listStart'));const _0x3b90d0={'type':'format','content':''};_0x4d3d71['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x174f20=this['editor']['locale'];_0x4d3d71['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x174f20,'FORMAT_LIST_REVERSED')),_0x4d3d71['descriptionFactory']['registerDescriptionCallback'](_0x19039c=>{const {data:_0xfd000e}=_0x19039c;if(_0xfd000e&&'listReversed'==_0xfd000e['key'])return null==_0xfd000e['newValue']||0x0==_0xfd000e['newValue']&&null==_0xfd000e['oldValue']?_0x3b90d0:void 0x0;}),_0x4d3d71['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x174f20,'FORMAT_LIST_START')),_0x4d3d71['descriptionFactory']['registerDescriptionCallback'](_0x179915=>{const {data:_0x196572}=_0x179915;if(_0x196572&&'listStart'==_0x196572['key'])return null==_0x196572['newValue']||0x1==_0x196572['newValue']&&null==_0x196572['oldValue']?_0x3b90d0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1a8904=>{if(_0x1a8904['batch']['isUndo'])return!0x1;let _0x420189=!0x1;const _0x2625a9=_0x4d3d71['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x552d1b=>{const _0x595dd2=_0x4d3d71['_getAttributeKey'](_0x552d1b);return'listStart'==_0x595dd2||'listReversed'==_0x595dd2;});for(const _0x1e68b2 of _0x2625a9){const _0x45dd48=_0x1e68b2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x45dd48||'customNumbered'==_0x45dd48)continue;_0x4d3d71['_findSuggestions'](_0x1e68b2['getFirstRange'](),'attribute')['find'](_0x37d44b=>'listType'==_0x4d3d71['_getAttributeKey'](_0x37d44b['suggestion']))||(_0x1a8904['removeMarker'](_0x1e68b2['getFirstMarker']()),_0x420189=!0x0);}return _0x420189;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5394f6){const _0x473f7b=this['editor']['locale'],{data:_0x59aad3}=_0x5394f6,_0x5104ea={'type':'format','content':''};if(!_0x59aad3||'listStyle'!=_0x59aad3['key'])return;if(!_0x59aad3['oldValue'])return'default'==_0x59aad3['newValue']?_0x5104ea:{'type':'format','content':''+o(_0x473f7b,'*Set\x20format:*\x20%0',o(_0x473f7b,this['_getTranslationKeyForListStyle'](_0x59aad3['newValue'])))};if(!_0x59aad3['newValue']){if('default'==_0x59aad3['oldValue'])return _0x5104ea;let _0x2294d7=_0x5394f6['head'];for(;_0x2294d7;){if(_0x2294d7['data']&&'listType'==_0x2294d7['data']['key']&&_0x2294d7['data']['newValue'])return _0x5104ea;_0x2294d7=_0x2294d7['next'];}return{'type':'format','content':''+o(_0x473f7b,'*Remove\x20format:*\x20%0',o(_0x473f7b,this['_getTranslationKeyForListStyle'](_0x59aad3['oldValue'])))};}if('default'!=_0x59aad3['newValue'])return{'type':'format','content':''+o(_0x473f7b,'*Set\x20format:*\x20%0',o(_0x473f7b,this['_getTranslationKeyForListStyle'](_0x59aad3['newValue'])))};let _0x418090=_0x5394f6['head'];for(;_0x418090;){if(_0x418090['data']&&'listType'==_0x418090['data']['key']&&_0x418090['data']['newValue']&&_0x418090['data']['oldValue'])return _0x5104ea;_0x418090=_0x418090['next'];}return{'type':'format','content':o(_0x473f7b,'*Set\x20format:*\x20%0',o(_0x473f7b,'ELEMENT_'+_0x5394f6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5d5f13=this['editor'],_0x518878=_0x5d5f13['locale'];_0x5d5f13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15565a=>{if('formatBlock'!=_0x15565a['type'])return;const {data:_0x59b268}=_0x15565a;if(!_0x59b268)return;let _0x159a34,_0x19ac1c;switch(_0x59b268['commandName']){case'listStyle':_0x159a34='*Change\x20to:*\x20%0',_0x19ac1c={'type':'format','content':o(_0x518878,_0x159a34,o(_0x518878,this['_getTranslationKeyForListStyle'](_0x59b268['commandParams'][0x0]['type'])))};break;case'listReversed':_0x159a34=_0x59b268['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x19ac1c={'type':'format','content':o(_0x518878,_0x159a34)};break;case'listStart':_0x159a34='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x19ac1c={'type':'format','content':o(_0x518878,_0x159a34,_0x59b268['commandParams'][0x0]['startIndex'])};}return _0x19ac1c;});}['_getTranslationKeyForListStyle'](_0x267845){return'ELEMENT_'+function(_0x45c5df){if(pe['includes'](_0x45c5df))return'bulleted';if(ye['includes'](_0x45c5df))return'numbered';return null;}(_0x267845)['toUpperCase']()+'_LIST_'+_0x267845['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x20810f{static get['requires'](){return[_0xb307a7];}['init'](){const _0x250d8b=this['editor'],_0x210cb4=_0x250d8b['plugins']['get']('TrackChangesEditing'),_0x44c21c=_0x250d8b['commands']['get']('enter');_0x210cb4['enableCommand']('enter',()=>{_0x250d8b['model']['change'](_0x171044=>{const _0x349f93=_0x250d8b['model']['document']['selection'],_0x547b5b=_0x349f93['getFirstPosition'](),_0x372be1=_0x3f67f3['fromRange'](_0x349f93['getFirstRange']());if(_0x44c21c['enterBlock'](_0x171044)){const _0x348eae=_0x250d8b['model']['createPositionAt'](_0x547b5b['parent']['nextSibling'],0x0),_0x433076=_0x171044['createRange'](_0x547b5b,_0x348eae);_0x210cb4['markInsertion'](_0x433076);}else _0x171044['setSelection'](_0x171044['createRange'](_0x372be1['end']));_0x372be1['detach'](),_0x44c21c['fire']('afterExecute',{'writer':_0x171044});});}),_0x250d8b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x250d8b,'split'),{'priority':'high'}),_0x250d8b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x15abd3,_0x3163f1,_0x30da1e)=>{const _0xbb010e=_0x30da1e['mapper']['markerNameToElements'](_0x3163f1['markerName']);if(_0xbb010e){for(const _0x10bd77 of _0xbb010e)_0x10bd77['hasClass']('ck-suggestion-marker-split')&&(_0x30da1e['mapper']['unbindElementFromMarkerName'](_0x10bd77,_0x3163f1['markerName']),_0x30da1e['writer']['remove'](_0x10bd77));}},{'priority':'high'}),_0x250d8b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x365e0c,_0x5ef2af,_0x1c4dfd)=>{_0x1c4dfd['options']['showSuggestionHighlights']&&_e(_0x250d8b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x365e0c,_0x5ef2af,_0x1c4dfd);},{'priority':'high'});}}class J extends _0x20810f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4c4fca=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c4fca['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4c4fca['enableCommand']('findNext'),_0x4c4fca['enableCommand']('findPrevious'),_0x4c4fca['enableCommand']('replace'),_0x4c4fca['enableCommand']('replaceAll');}['handleFindCommand'](_0x24369f,_0x5a20b3,_0x305935={}){const _0x223144=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x24369f(_0x1d4eeb=>{let _0x2dc1e8=('string'==typeof _0x5a20b3?_0x223144['findByTextCallback'](_0x5a20b3,_0x305935):_0x5a20b3)(_0x1d4eeb);Array['isArray'](_0x2dc1e8)&&(_0x2dc1e8={'results':_0x2dc1e8,'searchText':'string'==typeof _0x5a20b3?_0x5a20b3:''});const _0x5795c2=_0x2dc1e8['results']['filter'](_0x566d2c=>!0x1===this['_isInDeletionRange'](_0x566d2c,_0x1d4eeb['item']));return{..._0x2dc1e8,'results':_0x5795c2};},_0x305935);}['_isInDeletionRange'](_0xe8ede2,_0x27ba83){const _0x35e618=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27ba83,_0xe8ede2['start']),this['editor']['model']['createPositionAt'](_0x27ba83,_0xe8ede2['end']));for(const _0x4ce876 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x35e618['getIntersection'](_0x4ce876['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 _0x20810f{['afterInit'](){const _0x4637e6=this['editor']['locale'],_0x4136a4=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1b8c12,commandName:_0x111be0}of ro)this['editor']['plugins']['has'](_0x1b8c12)&&(_0x4136a4['enableDefaultAttributesIntegration'](_0x111be0),_0x4136a4['registerInlineAttribute'](_0x111be0));_0x4136a4['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4637e6,'FORMAT_FONT_SIZE')),_0x4136a4['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4637e6,'FORMAT_FONT_FAMILY')),_0x4136a4['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4637e6,'FORMAT_FONT_COLOR')),_0x4136a4['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4637e6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x483f76=this['editor'],_0x398d4c=_0x483f76['locale'];_0x483f76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc17534=>{const _0x17775e=_0x398d4c['t'];if('formatInline'!=_0xc17534['type'])return;const {data:_0x1b88af}=_0xc17534;if(null!=_0x1b88af){if('fontSize'==_0x1b88af['commandName']){const _0x1d12e0=_0x1b88af['commandParams'][0x0]['value'];if(_0x1d12e0){const _0x5b61e4=_0x17775e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2a278c=>_0x2a278c['model']==_0x1d12e0)['title'])['toLowerCase']();return{'type':'format','content':o(_0x398d4c,'*Set\x20font\x20size:*\x20%0',_0x5b61e4)};}return{'type':'format','content':o(_0x398d4c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1b88af['commandName']){const _0x3d2898=_0x1b88af['commandParams'][0x0]['value'];return _0x3d2898?{'type':'format','content':o(_0x398d4c,'*Set\x20font\x20family:*\x20%0',_0x3d2898)}:{'type':'format','content':o(_0x398d4c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1b88af['commandName']){const _0x389732=_0x1b88af['commandParams'][0x0]['value'];if(_0x389732){const _0x4911a2=_0x557595(this['editor']['config']['get']('fontColor.colors'))['find'](_0x544a10=>_0x544a10['model']==_0x389732);let _0x21859d=_0x389732,_0x4bf627='';return _0x4911a2&&(_0x21859d=_0x4911a2['label'],_0x4bf627=_0x17775e(_0x21859d)['toLowerCase']()),{'type':'format','content':o(_0x398d4c,'*Set\x20font\x20color:*\x20%0',_0x4bf627)['trim'](),'color':{'value':_0x389732,'title':_0x4bf627||_0x21859d}};}return{'type':'format','content':o(_0x398d4c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1b88af['commandName']){const _0x488aa7=_0x1b88af['commandParams'][0x0]['value'];if(_0x488aa7){const _0x2e755d=_0x557595(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x46cf29=>_0x46cf29['model']==_0x488aa7);let _0x2f3d4b=_0x488aa7,_0x542ee4='';return _0x2e755d&&(_0x2f3d4b=_0x2e755d['label'],_0x542ee4=_0x17775e(_0x2f3d4b)['toLowerCase']()),{'type':'format','content':o(_0x398d4c,'*Set\x20font\x20background\x20color:*\x20%0',_0x542ee4)['trim'](),'color':{'value':_0x488aa7,'title':_0x542ee4||_0x2f3d4b}};}return{'type':'format','content':o(_0x398d4c,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x20810f{['afterInit'](){const _0x16f1d5=this['editor'],_0x340b58=_0x16f1d5['plugins']['get']('TrackChangesEditing'),_0x45d30d=_0x16f1d5['commands']['get']('copyFormat'),_0x325a0f=_0x16f1d5['commands']['get']('pasteFormat');_0x45d30d&&_0x325a0f&&(_0x340b58['enableDefaultAttributesIntegration']('pasteFormat'),_0x340b58['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x89ab71=this['editor'],_0x228250=_0x89ab71['locale'];_0x89ab71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5949f1=>{if('formatBlock'!=_0x5949f1['type']&&'formatInline'!=_0x5949f1['type'])return;const {data:_0x7588d6}=_0x5949f1;if(_0x7588d6&&'pasteFormat'===_0x7588d6['commandName']){const _0x276fb7=[],_0x428651=_0x7588d6['commandParams'][0x0];for(const [_0x448a44,_0x212da4]of Object['entries'](_0x428651))_0x276fb7['push'](so(_0x89ab71,_0x448a44,_0x212da4));return _0x276fb7['length']?{'type':'format','content':o(_0x228250,'*Set\x20format\x20to:*\x20%0',_0x276fb7['join'](',\x20'))}:{'type':'format','content':o(_0x228250,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5a723e,_0x5f1551,_0xf88c2d){const _0x167fa7=_0x5a723e['locale']['t'],_0x15987e=_0x5f1551['split'](/(?=[A-Z])/)['join']('\x20'),_0x1b125b=_0x167fa7(_0x15987e['charAt'](0x0)['toUpperCase']()+_0x15987e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xf88c2d)return _0x1b125b;if('fontColor'===_0x5f1551||'fontBackgroundColor'===_0x5f1551){const _0x355dbe=_0x557595(_0x5a723e['config']['get']('fontColor.colors'))['find'](_0x40daf2=>_0x40daf2['model']==_0xf88c2d);return _0x1b125b+'\x20('+(_0x355dbe?_0x167fa7(_0x355dbe['label'])['toLowerCase']():_0xf88c2d)+')';}if('fontSize'===_0x5f1551&&isNaN(parseFloat(_0xf88c2d))){const _0x403363=_0x5a723e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5a723e['config']['get']('fontSize.options'))['find'](_0x44d39d=>_0x44d39d['model']==_0xf88c2d);return _0x1b125b+'\x20('+(_0x403363?_0x167fa7(_0x403363['title'])['toLowerCase']():_0xf88c2d)+')';}return _0x1b125b+'\x20('+_0xf88c2d+')';}class Y extends _0x20810f{['_headingOptions'];['afterInit'](){const _0x1dfa1a=this['editor'];if(!_0x1dfa1a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1dfa1a['config']['get']('heading.options');const _0x317154=_0x1dfa1a['locale'],_0xb4342d=_0x1dfa1a['plugins']['get']('TrackChangesEditing');_0xb4342d['enableDefaultAttributesIntegration']('heading');for(const _0x2d95a0 of this['_headingOptions'])'paragraph'!=_0x2d95a0['model']&&_0xb4342d['descriptionFactory']['registerElementLabel'](_0x2d95a0['model'],_0x38478d=>{const _0x31994f=this['_getHeadingLevel'](_0x2d95a0['model']);return null!==_0x31994f?_0xe3f129(_0x38478d,_0x31994f):_0x2a914b(_0x38478d,_0x2d95a0['title']);});function _0xe3f129(_0x3ac062,_0x25ec6b){return o(_0x317154,'ELEMENT_HEADING',[_0x3ac062,_0x25ec6b]);}function _0x2a914b(_0x143843,_0x5de116){return o(_0x317154,'ELEMENT_HEADING_CUSTOM',[_0x143843,_0x5de116]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x184f35=this['editor'],_0x1db87f=_0x184f35['locale'];function _0xc1fbb2(_0x2c78b8,_0x1fd30d){return o(_0x1db87f,'ELEMENT_HEADING_CUSTOM',[_0x2c78b8,_0x1fd30d]);}_0x184f35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3afa75=>{if('formatBlock'!=_0x3afa75['type'])return;const {data:_0x174e80}=_0x3afa75;if(_0x174e80&&'heading'==_0x174e80['commandName']){const _0x27ebc9=_0x174e80['commandParams'][0x0]['value'],_0x2ffe1f=this['_getHeadingLevel'](_0x27ebc9);if(null!==_0x2ffe1f)return{'type':'format','content':o(_0x1db87f,'*Change\x20to:*\x20%0',(_0x3835a1=0x1,_0x3d002b=_0x2ffe1f,o(_0x1db87f,'ELEMENT_HEADING',[_0x3835a1,_0x3d002b])))};const _0x56293f=this['_headingOptions']['find'](_0x389de8=>_0x389de8['model']===_0x27ebc9)['title'];return{'type':'format','content':o(_0x1db87f,'*Change\x20to:*\x20%0',_0xc1fbb2(0x1,_0x56293f))};}var _0x3835a1,_0x3d002b;});}['_getHeadingLevel'](_0x38fe5b){const _0x208365=_0x38fe5b['match'](/^heading(\d+)/);if(_0x208365)return _0x208365[0x1];const _0x1929cb=this['_headingOptions']?.['find'](_0x5ee7f2=>_0x5ee7f2['model']==_0x38fe5b);if(_0x1929cb&&_0x1929cb['view']){const _0x334524=_0x1929cb['view'],_0x4e1444=(_0x334524['name']??_0x334524)['match'](/^h(\d+)/);if(_0x4e1444)return _0x4e1444[0x1];}return null;}}class Z extends _0x20810f{['afterInit'](){const _0x350303=this['editor'];if(!_0x350303['plugins']['has']('HighlightEditing'))return;const _0x4e1a23=_0x350303['plugins']['get']('TrackChangesEditing'),_0x1625cc=_0x350303['locale'];_0x4e1a23['enableDefaultAttributesIntegration']('highlight'),_0x4e1a23['registerInlineAttribute']('highlight'),_0x4e1a23['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1625cc,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52fdaa=this['editor'],_0x45b331=_0x52fdaa['locale'];_0x52fdaa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc6fb50=>{if('formatInline'!=_0xc6fb50['type'])return;const {data:_0xfce4ba}=_0xc6fb50;if(_0xfce4ba&&'highlight'==_0xfce4ba['commandName']){const _0xb73b8b=_0x45b331['t'],_0x3d7884=_0xfce4ba['commandParams'][0x0]['value'];if(_0x3d7884){const _0xfbf16f=_0x52fdaa['config']['get']('highlight.options')['find'](_0x50078f=>_0x50078f['model']==_0x3d7884),_0x1075e2=_0xb73b8b(_0xfbf16f['title'])['toLowerCase']();return{'type':'format','content':o(_0x45b331,'*Set\x20highlight:*\x20%0',_0x1075e2),'color':{'value':_0xfbf16f['color'],'title':_0xfbf16f['title']}};}return{'type':'format','content':o(_0x45b331,'*Remove\x20highlight*',o(_0x45b331,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x20810f{['afterInit'](){const _0x3edeca=this['editor'];if(!_0x3edeca['plugins']['has']('HorizontalLineEditing'))return;_0x3edeca['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x246db8=_0x3edeca['plugins']['get']('TrackChangesEditing'),_0x4d7e05=_0x3edeca['locale'];_0x246db8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3ef512=>o(_0x4d7e05,'ELEMENT_HORIZONTAL_LINE',_0x3ef512)),_0x3edeca['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x527345,{writer:_0x7fdf8c,options:_0xe553b9})=>{if(!_0xe553b9['showSuggestionHighlights'])return null;const _0x3123cf=_0x7fdf8c['createContainerElement']('div'),_0x55c030=_0x7fdf8c['createEmptyElement']('hr');return _0x7fdf8c['addClass']('ck-horizontal-line',_0x3123cf),_0x7fdf8c['insert'](_0x7fdf8c['createPositionAt'](_0x3123cf,0x0),_0x55c030),_0x3123cf;},'converterPriority':'high'});}}class et extends _0x20810f{['afterInit'](){const _0x155242=this['editor'];if(!_0x155242['plugins']['has']('HtmlEmbed'))return;const _0x3de3d4=_0x155242['plugins']['get']('TrackChangesEditing'),_0x3f25d3=_0x155242['locale'];_0x3de3d4['descriptionFactory']['registerElementLabel']('rawHtml',_0x1e5c7b=>o(_0x3f25d3,'ELEMENT_HTML_EMBED',_0x1e5c7b)),_0x3de3d4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3de3d4['registerBlockAttribute']('value'),_0x3de3d4['descriptionFactory']['registerDescriptionCallback'](_0x1418af=>{if('attribute'!=_0x1418af['type'])return;const {data:_0x24e68a}=_0x1418af;if(_0x24e68a&&'value'==_0x24e68a['key']&&_0x1418af['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1a05a6=o(_0x3f25d3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3f25d3,'*Change\x20%0\x20content*',_0x1a05a6)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28bd78=this['editor'],_0x25d480=_0x28bd78['locale'];_0x28bd78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xca015a=>{if('formatBlock'!=_0xca015a['type'])return;const {data:_0x1f3da7}=_0xca015a;if(_0x1f3da7&&'htmlEmbed'==_0x1f3da7['commandName']){const _0x4c10e3=o(_0x25d480,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x25d480,'*Change\x20%0\x20content*',_0x4c10e3)};}});}}class it extends _0x20810f{['afterInit'](){const _0x4a7f1e=this['editor'];if(!_0x4a7f1e['plugins']['has']('ImageEditing'))return;const _0x51c4d2=_0x4a7f1e['plugins']['get']('TrackChangesEditing'),_0x1b7ba0=_0x4a7f1e['plugins']['get']('ImageUtils'),_0x529a18=_0x4a7f1e['locale'];_0x51c4d2['enableCommand']('insertImage'),_0x51c4d2['descriptionFactory']['registerElementLabel']('imageBlock',_0x4b8dcd=>o(_0x529a18,'ELEMENT_IMAGE',_0x4b8dcd)),_0x51c4d2['descriptionFactory']['registerElementLabel']('imageInline',_0x3ca2cf=>o(_0x529a18,'ELEMENT_INLINE_IMAGE',_0x3ca2cf)),_0x51c4d2['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x529a18,'ELEMENT_CAPTION')),_0x4a7f1e['plugins']['has']('ImageUploadEditing')&&_0x51c4d2['enableCommand']('uploadImage'),_0x4a7f1e['plugins']['has']('ImageBlockEditing')&&_0x4a7f1e['plugins']['has']('ImageInlineEditing')&&(_0x51c4d2['enableCommand']('imageTypeInline',(_0x347fa2,_0x4ed82e)=>{const _0x52e719=_0x1b7ba0['getClosestSelectedImageElement'](_0x4a7f1e['model']['document']['selection']);_0x4a7f1e['model']['change'](()=>{_0x51c4d2['markBlockFormat'](_0x52e719,{'commandName':'imageTypeInline','commandParams':[_0x4ed82e]},[],'convertBlockImageToInline');});}),_0x51c4d2['enableCommand']('imageTypeBlock',(_0x47ce24,_0x1fd290)=>{_0x4a7f1e['model']['change'](_0x2b5835=>{let _0x588a49=_0x1b7ba0['getClosestSelectedImageElement'](_0x4a7f1e['model']['document']['selection']),_0x4b2ab7=_0x2b5835['createRangeOn'](_0x588a49);const _0x48740e=_0x45a9d6['fromPosition'](_0x4b2ab7['start'],'toPrevious'),_0x1b0931=_0x45a9d6['fromPosition'](_0x4b2ab7['end'],'toNext');_0x51c4d2['forceDefaultExecution'](()=>_0x47ce24(_0x1fd290)),_0x588a49=_0x1b7ba0['getClosestSelectedImageElement'](_0x4a7f1e['model']['document']['selection']),_0x4b2ab7=_0x2b5835['createRangeOn'](_0x588a49);const _0x5068e8=_0x2b5835['createRange'](_0x48740e,_0x1b0931);_0x48740e['detach'](),_0x1b0931['detach'](),_0x51c4d2['markBlockFormat'](_0x588a49,{'commandName':'imageTypeInline','commandParams':[_0x1fd290]},[],'convertInlineImageToBlock'),_0x5068e8['start']['isBefore'](_0x4b2ab7['start'])&&_0x51c4d2['markInsertion'](_0x2b5835['createRange'](_0x5068e8['start'],_0x4b2ab7['start']),'convertInlineImageToBlock'),_0x4b2ab7['end']['isBefore'](_0x5068e8['end'])&&_0x51c4d2['markInsertion'](_0x2b5835['createRange'](_0x4b2ab7['end'],_0x5068e8['end']),'convertInlineImageToBlock');});}),_0x51c4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x51c4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x51c4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x51c4d2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x51c4d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x51c4d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1f72ec])=>{const _0x32cccc=_0x51c4d2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2524ea=_0x1f72ec['start'],_0x31cd30=_0x1f72ec['end'];const _0x16f0e6=_0x4a7f1e['model']['schema']['getNearestSelectionRange'](_0x2524ea,'backward'),_0x35a7b7=_0x4a7f1e['model']['schema']['getNearestSelectionRange'](_0x31cd30,'forward');_0x16f0e6['isCollapsed']&&(_0x2524ea=_0x16f0e6['start']),_0x35a7b7['isCollapsed']&&(_0x31cd30=_0x35a7b7['end']),_0x32cccc([_0x4a7f1e['model']['createRange'](_0x2524ea,_0x31cd30)]);}),_0x51c4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3dd494),_0x51c4d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3dd494)),_0x4a7f1e['plugins']['has']('ImageCaptionEditing')&&(_0x51c4d2['enableCommand']('toggleImageCaption',(_0x488213,_0x5e7f49)=>{const _0x1d058a=_0x4a7f1e['plugins']['get']('ImageCaptionUtils');let _0x26a132=_0x1b7ba0['getClosestSelectedImageElement'](_0x4a7f1e['model']['document']['selection']),_0x5afb7d=_0x1d058a['getCaptionFromImageModelElement'](_0x26a132);_0x4a7f1e['model']['change'](()=>{if(_0x5afb7d)return void _0x51c4d2['markDeletion'](_0x4a7f1e['model']['createRangeOn'](_0x5afb7d));const _0x562599=_0x1b7ba0['isBlockImage'](_0x26a132);_0x488213(_0x5e7f49),_0x26a132=_0x1b7ba0['getClosestSelectedImageElement'](_0x4a7f1e['model']['document']['selection']),_0x5afb7d=_0x1d058a['getCaptionFromImageModelElement'](_0x26a132),_0x51c4d2['markInsertion'](_0x4a7f1e['model']['createRangeOn'](_0x5afb7d),_0x562599?null:'imageCaption');});}),_0x51c4d2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3dd494));const _0x3e12e2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x46b475(_0x5cd73b,_0x3344f9){const _0x10aceb=_0x3e12e2['findIndex'](({type:_0xe2e0a1,subType:_0x4d2711})=>_0x5cd73b['type']==_0xe2e0a1&&_0x5cd73b['subType']==_0x4d2711),_0x23316b=_0x3e12e2['findIndex'](({type:_0x2f021a,subType:_0x5d30f4})=>_0x3344f9['type']==_0x2f021a&&_0x3344f9['subType']==_0x5d30f4);if(_0x10aceb<0x0||_0x23316b<0x0)return!0x1;const _0x3f498f=_0x5cd73b['getFirstRange'](),_0x35973a=_0x3344f9['getFirstRange']();if((0x0==_0x10aceb||0x1==_0x10aceb)&&0x2==_0x23316b&&_0x3f498f['isIntersecting'](_0x35973a))return!0x0;if(0x2==_0x10aceb&&0x3==_0x23316b){const _0x5eb655=_0x51c4d2['_findSuggestions'](_0x3f498f,'insertion')['filter'](({suggestion:_0x160346,meta:_0x525d42})=>_0x525d42['isOwn']&&'convertInlineImageToBlock'==_0x160346['subType']);if(_0x5eb655['length']>0x1&&_0x35973a['end']['isEqual'](_0x3f498f['start']))return!0x0;if(0x1==_0x5eb655['length']&&(_0x3f498f['start']['isEqual'](_0x35973a['end'])||_0x3f498f['end']['isEqual'](_0x35973a['start'])))return!0x0;}if(0x3==_0x10aceb&&0x3==_0x23316b&&_0x3f498f['start']['isBefore'](_0x35973a['start'])){const _0x577155=_0x3f498f['end']['nodeAfter'],_0x1a0339=_0x35973a['start']['nodeBefore'];return _0x1b7ba0['isBlockImage'](_0x577155)&&_0x577155===_0x1a0339;}return!0x1;}function _0x3dd494(_0x26c054,_0x5f2d1f){return _0x46b475(_0x26c054,_0x5f2d1f)?[_0x26c054,_0x5f2d1f]:_0x46b475(_0x5f2d1f,_0x26c054)?[_0x5f2d1f,_0x26c054]:null;}_0x4a7f1e['plugins']['has']('ImageResize')&&(_0x51c4d2['enableDefaultAttributesIntegration']('resizeImage'),_0x51c4d2['registerBlockAttribute']('resizedWidth'),_0x51c4d2['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x529a18,'FORMAT_IMAGE_SIZE'))),_0x4a7f1e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x51c4d2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x51c4d2['registerBlockAttribute']('alt')),_0x51c4d2['descriptionFactory']['registerDescriptionCallback'](_0x238926=>{if(!!_0x3e12e2['find'](({type:_0x55a25a,subType:_0x2e34c5})=>_0x238926['type']==_0x55a25a&&_0x238926['subType']==_0x2e34c5))return _0x238926['previous']?{}:void 0x0;}),_0x51c4d2['descriptionFactory']['registerDescriptionCallback'](_0x2bf147=>{if('insertion'==_0x2bf147['type']||'deletion'==_0x2bf147['type']){const _0x1b49c8=_0x2bf147['getContainedElement']();if(_0x1b49c8&&_0x1b49c8['is']('element','caption'))return{'type':'insertion'==_0x2bf147['type']?'addObject':'removeObject','element':_0x1b49c8,'quantity':0x1};}}),_0x51c4d2['descriptionFactory']['registerDescriptionCallback'](_0x4ace98=>'formatBlock'==_0x4ace98['type']&&'convertInlineImageToBlock'==_0x4ace98['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4ace98['type']&&'convertBlockImageToInline'==_0x4ace98['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x51c4d2['descriptionFactory']['registerDescriptionCallback'](_0xb9b6cb=>{if('attribute'!=_0xb9b6cb['type'])return;const {data:_0x1c5719}=_0xb9b6cb;if(!_0x1c5719||'alt'!=_0x1c5719['key'])return;const _0x52882f=_0x1c5719['newValue'];return _0x52882f?{'type':'format','content':o(_0x529a18,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x52882f+'\x22')}:{'type':'format','content':o(_0x529a18,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32f0c5=this['editor'],_0x55b8f0=_0x32f0c5['locale'];_0x32f0c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ae84d=>{if('formatBlock'!=_0x1ae84d['type']&&'formatInline'!=_0x1ae84d['type'])return;const {data:_0x122480}=_0x1ae84d;if(_0x122480){if('imageTextAlternative'==_0x122480['commandName']){const _0x2255e5=_0x122480['commandParams'][0x0]['newValue'];return _0x2255e5?{'type':'format','content':o(_0x55b8f0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2255e5+'\x22')}:{'type':'format','content':o(_0x55b8f0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x122480['commandName']){const _0x344693=_0x122480['commandParams'][0x0]['width'];return _0x344693?{'type':'format','content':o(_0x55b8f0,'*Set\x20image\x20width:*\x20%0',_0x344693)}:{'type':'format','content':o(_0x55b8f0,'*Reset\x20image\x20width*')};}}});}}class st extends _0x20810f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x446323=this['editor']['locale'],_0x31ac0e=this['editor']['plugins']['get']('TrackChangesEditing');_0x31ac0e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x31ac0e['registerBlockAttribute']('src'),_0x31ac0e['descriptionFactory']['registerDescriptionCallback'](_0x521643=>{if('attribute'!=_0x521643['type'])return;const {data:_0x578cc5}=_0x521643;return _0x578cc5&&'src'==_0x578cc5['key']?_0x578cc5['newValue']&&_0x578cc5['oldValue']?{'type':'format','content':o(_0x446323,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x243f03=this['editor']['plugins']['get']('TrackChangesEditing');_0x243f03['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x243f03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x243f03['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x243f03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38db59=this['editor'],_0x2d2ff7=_0x38db59['locale'];_0x38db59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dca08=>{if('formatBlock'!=_0x2dca08['type']&&'formatInline'!=_0x2dca08['type'])return;const {data:_0x4f2968}=_0x2dca08;if(!_0x4f2968||'replaceImageSource'!=_0x4f2968['commandName'])return;return{'type':'format','content':o(_0x2d2ff7,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x20810f{['afterInit'](){const _0x29181a=this['editor'];if(!_0x29181a['plugins']['has']('ImageStyleEditing'))return;const _0x2d6d64=_0x29181a['plugins']['get']('TrackChangesEditing'),_0x171a1e=_0x29181a['plugins']['get']('ImageUtils'),_0x84171c={};_0x2d6d64['enableCommand']('imageStyle',(_0x379763,_0x409b50)=>{const _0x4f7a7d=_0x29181a['plugins']['get']('Users')['me'],_0x4e4772=_0x29181a['commands']['get']('imageStyle');let _0x5413fe=_0x171a1e['getClosestSelectedImageElement'](_0x29181a['model']['document']['selection']),_0x23b5a4=_0x29181a['model']['createRangeOn'](_0x5413fe),_0x191694=_0x4e4772['value'];if(_0x191694==_0x409b50['value'])return;const _0x5c368d={'commandName':'imageStyle','commandParams':[_0x409b50],'formatGroupId':_0x4afc5b()};_0x29181a['model']['change'](()=>{if(_0x2d6d64['getSuggestions']()['filter'](_0xad50c0=>_0xad50c0['isInContent']&&_0x4f7a7d==_0xad50c0['author']&&('formatBlock'==_0xad50c0['type']||'formatInline'==_0xad50c0['type'])&&('imageStylePreApply'==_0xad50c0['subType']||'imageStylePostApply'==_0xad50c0['subType'])&&_0xad50c0['getFirstRange']()['isEqual'](_0x23b5a4))['forEach'](_0x3b3fcf=>_0x2d6d64['discardSuggestion'](_0x3b3fcf['head'])),_0x5413fe=_0x171a1e['getClosestSelectedImageElement'](_0x29181a['model']['document']['selection']),_0x23b5a4=_0x29181a['model']['createRangeOn'](_0x5413fe),_0x4e4772['refresh'](),_0x29181a['commands']['get']('imageTypeInline')['refresh'](),_0x29181a['commands']['get']('imageTypeBlock')['refresh'](),_0x191694=_0x4e4772['value'],_0x191694!=_0x409b50['value'])return _0x171a1e['isInlineImage'](_0x5413fe)&&_0x4e4772['shouldConvertImageType'](_0x409b50['value'],_0x5413fe)?(_0x379763({..._0x409b50,'setImageSizes':!0x1}),_0x5413fe=_0x171a1e['getClosestSelectedImageElement'](_0x29181a['model']['document']['selection']),void _0x2d6d64['markBlockFormat'](_0x5413fe,{..._0x5c368d,'commandReversedParams':[{'value':_0x191694||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x171a1e['isBlockImage'](_0x5413fe)?_0x2d6d64['markBlockFormat'](_0x5413fe,_0x5c368d,[],'imageStylePostApply'):_0x2d6d64['markInlineFormat'](_0x23b5a4,_0x5c368d,'imageStylePostApply'));});});for(const _0x188dcb of _0x29181a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x84171c[_0x188dcb['name']]=_0x188dcb['title']['toLowerCase']();_0x2d6d64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2d6d64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2d6d64['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2d6d64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2eae37])=>{_0x171a1e['setImageNaturalSizeAttributes'](_0x2eae37['getContainedElement']());}),_0x2d6d64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x358d0d,_0x103135)=>{_0x2d6d64['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x358d0d,{'commandName':_0x103135['commandName'],'commandParams':_0x103135['commandReversedParams']});}),_0x2d6d64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5f1b79,_0x273ebc){if(_0x395dfa(_0x5f1b79,_0x273ebc))return[_0x5f1b79,_0x273ebc];if(_0x395dfa(_0x273ebc,_0x5f1b79))return[_0x273ebc,_0x5f1b79];return null;});const _0x4967bf=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x395dfa(_0x53db4d,_0x9d5f6d){const _0x28d262=_0x4967bf['findIndex'](({type:_0x3a578d,subType:_0x224987})=>_0x53db4d['type']==_0x3a578d&&_0x53db4d['subType']==_0x224987),_0x412608=_0x4967bf['findIndex'](({type:_0xdbda71,subType:_0xbd6b85})=>_0x9d5f6d['type']==_0xdbda71&&_0x9d5f6d['subType']==_0xbd6b85);if(_0x28d262<0x0||_0x412608<0x0)return!0x1;const _0x340eda=_0x53db4d['getFirstRange'](),_0x1b4ad9=_0x9d5f6d['getFirstRange']();if((0x0==_0x28d262||0x1==_0x28d262)&&0x2==_0x412608&&_0x340eda['isIntersecting'](_0x1b4ad9))return!0x0;if(0x2==_0x28d262&&0x3==_0x412608){const _0x1b1333=_0x2d6d64['_findSuggestions'](_0x340eda,'insertion')['filter'](({suggestion:_0x1f5a71,meta:_0x2d4186})=>_0x2d4186['isOwn']&&'convertInlineImageToBlock'==_0x1f5a71['subType']);if(_0x1b1333['length']>0x1&&_0x1b4ad9['end']['isEqual'](_0x340eda['start']))return!0x0;if(0x1==_0x1b1333['length']&&(_0x340eda['start']['isEqual'](_0x1b4ad9['end'])||_0x340eda['end']['isEqual'](_0x1b4ad9['start'])))return!0x0;}if(0x3==_0x28d262&&0x3==_0x412608&&_0x340eda['start']['isBefore'](_0x1b4ad9['start'])){const _0x38c2ad=_0x340eda['end']['nodeAfter'],_0x2d91cb=_0x1b4ad9['start']['nodeBefore'];return _0x171a1e['isBlockImage'](_0x38c2ad)&&_0x38c2ad===_0x2d91cb;}return!0x1;}_0x29181a['model']['document']['registerPostFixer'](()=>{let _0x3c0f0d=!0x1;const _0x271ead=Array['from'](_0x29181a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b2e8c,data:_0x36c801}of _0x271ead){const {group:_0x19ed29,type:_0x4fe7b3,subType:_0x2791ac,id:_0x56ec38}=_0x2d6d64['_splitMarkerName'](_0x2b2e8c);if('suggestion'==_0x19ed29&&_0x2d6d64['hasSuggestion'](_0x56ec38)){if('formatBlock'==_0x4fe7b3&&('imageStylePreApply'==_0x2791ac||'imageStylePostApply'==_0x2791ac)){const _0x5d825f=_0x2d6d64['getSuggestion'](_0x56ec38);if(_0x36c801['newRange']){const _0x27919c=_0x5d825f['getFirstRange']()['getContainedElement']();if(_0x171a1e['isBlockImage'](_0x27919c))continue;_0x2d6d64['discardSuggestion'](_0x5d825f),_0x3c0f0d=!0x0;}}if('insertion'==_0x4fe7b3&&'imageCaption'==_0x2791ac&&!_0x36c801['newRange']){const _0x1a948=_0x2d6d64['getSuggestion'](_0x56ec38);_0x1a948['next']&&_0x1a948['next']['isInContent']&&(_0x2d6d64['discardSuggestion'](_0x1a948['next']),_0x3c0f0d=!0x0);}}}return _0x3c0f0d;}),this['_registerLegacyDescription'](_0x84171c);}['_registerLegacyDescription'](_0x30d7a9){const _0x172d46=this['editor'],_0x408ef5=_0x172d46['locale'];_0x172d46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f268e=>{if('formatBlock'!=_0x4f268e['type']&&'formatInline'!=_0x4f268e['type'])return;const {data:_0x40305e}=_0x4f268e;if(!_0x40305e||'imageStyle'!=_0x40305e['commandName'])return;const _0x51997e=_0x40305e['commandParams'][0x0]['value'];return _0x177156('side'===_0x51997e?o(_0x408ef5,'FORMAT_SIDE_IMAGE'):_0x30d7a9[_0x51997e]||_0x51997e);function _0x177156(_0x118124){return{'type':'format','content':o(_0x408ef5,'*Format:*\x20%0',_0x118124)};}});}}class ot extends _0x20810f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x13f740){super(_0x13f740),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xd03611=this['editor'],_0x285f90=_0xd03611['commands']['get']('importWord'),_0x48b2d4=_0xd03611['commands']['get']('trackChanges');_0x285f90&&(_0x285f90['on']('execute',(_0x34f930,[,_0x5bfc01])=>{this['_trackChangesValueDuringImport']=_0x48b2d4['value'],_0x5bfc01['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x285f90,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x285f90,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x48b2d4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xd03611['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x280b38,_0x58461a){const {suggestions:_0xaa29b5}=_0x58461a,_0xeb8649=this['editor']['commands']['get']('trackChanges'),_0xda53ca=_0xeb8649['value'];this['_trackChangesValueDuringImport']!==_0xda53ca&&(_0xeb8649['execute'](),this['_trackChangesExecuted']=!0x0),_0xaa29b5&&_0xaa29b5['forEach'](({id:_0x22ab85,type:_0x2320a7,author:_0x46886c,created_at:_0x76b47d})=>{const _0x554dc7={'id':_0x22ab85,'type':_0x2320a7,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x46886c,'createdAt':_0x76b47d?new Date(_0x76b47d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x554dc7);});}}class rt extends _0x20810f{['afterInit'](){const _0x4a4a4f=this['editor'],_0x26c852=_0x4a4a4f['plugins']['get']('TrackChangesEditing');if(_0x4a4a4f['plugins']['has']('IndentEditing')&&(_0x26c852['enableCommand']('indent'),_0x26c852['enableCommand']('outdent')),_0x4a4a4f['plugins']['has']('IndentBlock')){for(const _0x8584e4 of['indentBlock','outdentBlock'])_0x26c852['enableDefaultAttributesIntegration'](_0x8584e4);}const _0x220328=_0x4a4a4f['locale'];_0x26c852['registerBlockAttribute']('blockIndent'),_0x26c852['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x220328,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55072d=this['editor'],_0x8c66b6=_0x55072d['locale'],_0x2c8bea=_0x55072d['plugins']['get']('TrackChangesEditing');_0x2c8bea['descriptionFactory']['registerDescriptionCallback'](_0x6a348a=>{if('formatBlock'!=_0x6a348a['type'])return;const {data:_0x3590e}=_0x6a348a;if(!_0x3590e)return;if('indentBlock'!=_0x3590e['commandName']&&'outdentBlock'!=_0x3590e['commandName'])return;const _0x32db1f=_0x6a348a['getItems']()[0x0],_0x51f3f3=_0x2c8bea['descriptionFactory']['getItemLabel'](_0x32db1f);return'indentBlock'==_0x3590e['commandName']?{'type':'format','content':o(_0x8c66b6,'*Indent:*\x20%0',_0x51f3f3)}:'outdentBlock'==_0x3590e['commandName']?{'type':'format','content':o(_0x8c66b6,'*Outdent:*\x20%0',_0x51f3f3)}:void 0x0;});}}class at extends _0x20810f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x20810f{['afterInit'](){const _0x539ec1=this['editor'];if(!_0x539ec1['plugins']['has']('LinkEditing'))return;const _0x4d29b7=_0x539ec1['plugins']['get']('TrackChangesEditing'),_0xda80ad=_0x539ec1['commands']['get']('link');_0x4d29b7['enableDefaultAttributesIntegration']('link'),_0x4d29b7['enableDefaultAttributesIntegration']('unlink'),_0x4d29b7['registerInlineAttribute']('linkHref');for(const _0x24fdc4 of _0xda80ad['manualDecorators'])_0x4d29b7['registerInlineAttribute'](_0x24fdc4['id']),_0x4d29b7['descriptionFactory']['registerAttributeLabel'](_0x24fdc4['id'],'link\x20('+_0x24fdc4['label']['toLowerCase']()+')');_0x4d29b7['descriptionFactory']['registerDescriptionCallback'](_0x57a59e=>{if('attribute'!=_0x57a59e['type'])return;const {data:_0x60cda8}=_0x57a59e;if(!_0x60cda8||'linkHref'!=_0x60cda8['key'])return;const _0x1add4f=_0x60cda8['newValue'],_0x2ac47=_0x539ec1['locale'];return{'type':'format','content':null==_0x1add4f?o(_0x2ac47,'*Remove\x20link*'):o(_0x2ac47,'*Set\x20link:*\x20%0','\x22'+_0x1add4f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfdc172=this['editor'],_0x7c97f9=_0xfdc172['locale'];_0xfdc172['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4058e5=>{if('formatInline'!=_0x4058e5['type'])return;const {data:_0x5ac60c}=_0x4058e5;if(_0x5ac60c){if('link'==_0x5ac60c['commandName']){const _0x14c081=_0x5ac60c['commandParams'][0x0];return{'type':'format','content':o(_0x7c97f9,'*Set\x20link:*\x20%0','\x22'+_0x14c081+'\x22')};}return'unlink'==_0x5ac60c['commandName']?{'type':'format','content':o(_0x7c97f9,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x20810f{['afterInit'](){const _0x41472a=this['editor'],_0x3389c8=_0x41472a['locale'];if(!_0x41472a['plugins']['has']('LegacyListEditing'))return;const _0x353bd6=_0x41472a['plugins']['get']('TrackChangesEditing'),_0x4b7cb6=_0x41472a['plugins']['has']('LegacyTodoListEditing');function _0x50d645(_0x3b6099){return()=>{const _0x5d4b8f=_0x41472a['model']['document']['selection'],_0x55612b=_0x41472a['commands']['get'](_0x3b6099);if(_0x55612b['value'])return void _0x41472a['execute']('paragraph',{});const _0x1cd65b=_0x3b6099['slice'](0x0,-0x4),_0x2d569d=function(_0x37a152,_0x2bb07a,_0x507d22){let _0x2c1f71=Array['from'](_0x37a152)['filter'](_0x4b1a3a=>function(_0x442912,_0x5dadac){return _0x5dadac['checkChild'](_0x442912['parent'],'listItem')&&!_0x5dadac['isObject'](_0x442912);}(_0x4b1a3a,_0x507d22));_0x2c1f71=_0x2c1f71['filter'](_0x15271d=>!_0x15271d['is']('element','listItem')||_0x15271d['getAttribute']('listType')!=_0x2bb07a);const _0x450b67=new Set();for(const _0x403249 of _0x2c1f71)_0x403249['is']('element','listItem')?_0x450b67['add'](me(_0x403249)):_0x450b67['add'](_0x403249);return Array['from'](_0x450b67);}(_0x5d4b8f['getSelectedBlocks'](),_0x1cd65b,_0x41472a['model']['schema']);_0x41472a['model']['change'](()=>{for(const _0x1277b5 of _0x2d569d)_0x353bd6['markBlockFormat'](_0x1277b5,{'commandName':_0x3b6099,'commandParams':[{'forceValue':!_0x55612b['value']}],'formatGroupId':'blockName'},fe(_0x1277b5));});};}function _0x4a61f6(_0x563292){return()=>{const _0x29fffa=function(_0x314aef){let _0x1c2370=Array['from'](_0x314aef);const _0x1be707=_0x1c2370['findIndex'](_0xb4051f=>'listItem'!=_0xb4051f['name']);return _0x1be707>-0x1&&(_0x1c2370=_0x1c2370['slice'](0x0,_0x1be707)),_0x1c2370;}(_0x41472a['model']['document']['selection']['getSelectedBlocks']()),_0x242d5f=_0x41472a['model']['createRange'](_0x41472a['model']['createPositionAt'](_0x29fffa[0x0],'before'),_0x41472a['model']['createPositionAt'](_0x29fffa[_0x29fffa['length']-0x1],'end'));_0x41472a['model']['change'](()=>{_0x353bd6['markBlockFormat'](_0x242d5f,{'commandName':_0x563292,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1237a4){const _0x176385=new Set();for(const _0x13bc24 of _0x1237a4){let _0x277148=_0x13bc24['nextSibling'];for(;_0x277148&&_0x277148['getAttribute']('listIndent')>_0x13bc24['getAttribute']('listIndent');)_0x176385['add'](_0x277148),_0x277148=_0x277148['nextSibling'];}return Array['from'](_0x176385);}(_0x29fffa));});};}_0x353bd6['enableCommand']('numberedList',_0x50d645('numberedList')),_0x353bd6['enableCommand']('bulletedList',_0x50d645('bulletedList')),_0x4b7cb6&&_0x353bd6['enableCommand']('todoList',_0x50d645('todoList')),_0x353bd6['enableCommand']('indentList',_0x4a61f6('indentList')),_0x353bd6['enableCommand']('outdentList',_0x4a61f6('outdentList')),_0x4b7cb6&&_0x353bd6['enableCommand']('checkTodoList',()=>{const _0x4a9324=_0x41472a['commands']['get']('checkTodoList'),_0x3fb430=Array['from'](_0x4a9324['_selectedElements']);_0x3fb430['filter'](_0x824f74=>_0x824f74['getAttribute']('todoListChecked')!=_0x4a9324['value']),_0x41472a['model']['change'](()=>{for(const _0x4a2223 of _0x3fb430)_0x353bd6['markBlockFormat'](_0x4a2223,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4a9324['value']}]});});}),_0x353bd6['descriptionFactory']['registerElementLabel']('listItem',_0x18c5b0=>o(_0x3389c8,'ELEMENT_LIST_ITEM',_0x18c5b0)),_0x353bd6['descriptionFactory']['registerDescriptionCallback'](_0x2eddb4=>{if('formatBlock'!=_0x2eddb4['type']&&'formatInline'!=_0x2eddb4['type'])return;const {data:_0x4f52d2}=_0x2eddb4;if(_0x4f52d2){if('numberedList'==_0x4f52d2['commandName']||'bulletedList'==_0x4f52d2['commandName']||'todoList'==_0x4f52d2['commandName'])switch(_0x4f52d2['commandName']['replace']('List','')){case'bulleted':return _0x107103(o(_0x3389c8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x107103(o(_0x3389c8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x107103(o(_0x3389c8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4f52d2['commandName'])return{'type':'format','content':o(_0x3389c8,'*Indent:*\x20%0',o(_0x3389c8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4f52d2['commandName'])return{'type':'format','content':o(_0x3389c8,'*Outdent:*\x20%0',o(_0x3389c8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4f52d2['commandName'])return _0x4f52d2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3389c8,'*Check\x20item*')}:{'type':'format','content':o(_0x3389c8,'*Uncheck\x20item*')};}function _0x107103(_0x4bde2d){return{'type':'format','content':o(_0x3389c8,'*Change\x20to:*\x20%0',_0x4bde2d)};}});}}function me(_0x1da82c){const _0x4cf86b=_0x1da82c['getAttribute']('listIndent');if(0x0==_0x4cf86b)return _0x1da82c;let _0x42ee6f=_0x1da82c;for(;_0x1da82c['previousSibling']&&_0x1da82c['previousSibling']['is']('element','listItem');){const _0x16d0f3=_0x1da82c['previousSibling']['getAttribute']('listIndent');if(_0x16d0f3==_0x4cf86b)_0x42ee6f=_0x1da82c['previousSibling'];else{if(_0x16d0f3<_0x4cf86b)break;}_0x1da82c=_0x1da82c['previousSibling'];}return _0x42ee6f;}function fe(_0x3d6785){const _0x52d59a=[];if(_0x3d6785['is']('element','listItem')&&_0x3d6785['getAttribute']('listIndent')>0x0){let _0x28fd30=_0x3d6785['nextSibling'];for(;_0x28fd30&&'listItem'==_0x28fd30['name']&&_0x28fd30['getAttribute']('listIndent')==_0x3d6785['getAttribute']('listIndent');)_0x52d59a['push'](_0x28fd30),_0x28fd30=_0x28fd30['nextSibling'];}return _0x52d59a;}class K extends _0x20810f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5335f6=this['editor']['config']['get']('list.properties'),_0x2597d5=this['editor']['plugins']['get']('TrackChangesEditing');_0x5335f6['styles']&&_0x2597d5['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5335f6['reversed']&&_0x2597d5['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5335f6['startIndex']&&_0x2597d5['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2597d5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x198b4f,_0x55ede6={}){const _0x15dc92=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41fb0b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x15dc92['markMultiRangeBlockFormat'](_0x41fb0b,{'commandName':'listStyle','commandParams':[{'type':_0x55ede6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x51ac55,_0x2012a3={}){const _0x5c92eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2171a5=this['_getSuggestionBlocks'](_0x1b567e=>_0x1b567e['is']('element','listItem')&&'numbered'===_0x1b567e['getAttribute']('listType'));if(_0x2171a5['length']<0x1)return;const _0x16a424=_0x2171a5['map'](_0x3384cf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3384cf,'before'),this['editor']['model']['createPositionAt'](_0x3384cf,0x0)));this['editor']['model']['change'](()=>{_0x5c92eb['markMultiRangeBlockFormat'](_0x16a424,{'commandName':'listReversed','commandParams':[{'reversed':_0x2012a3['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x217e24,_0x5210b4={}){const _0x2f8ff4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f1beb=this['_getSuggestionBlocks'](_0x47ed29=>_0x47ed29['is']('element','listItem')&&'numbered'===_0x47ed29['getAttribute']('listType'));if(_0x1f1beb['length']<0x1)return;const _0xb3df94=_0x1f1beb['map'](_0x519ed8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x519ed8,'before'),this['editor']['model']['createPositionAt'](_0x519ed8,0x0)));this['editor']['model']['change'](()=>{_0x2f8ff4['markMultiRangeBlockFormat'](_0xb3df94,{'commandName':'listStart','commandParams':[{'startIndex':_0x5210b4['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x340c15){if('formatBlock'!=_0x340c15['type']&&'formatInline'!=_0x340c15['type'])return;const _0x5973b1=this['editor']['locale'],{data:_0x287e31}=_0x340c15;if(!_0x287e31)return;let _0x283965,_0x2ba179;switch(_0x287e31['commandName']){case'listStyle':_0x283965='*Change\x20to:*\x20%0',_0x2ba179={'type':'format','content':o(_0x5973b1,_0x283965,o(_0x5973b1,this['_getTranslationKeyForListStyle'](_0x287e31['commandParams'][0x0]['type'])))};break;case'listReversed':_0x283965=_0x287e31['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2ba179={'type':'format','content':o(_0x5973b1,_0x283965)};break;case'listStart':_0x283965='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2ba179={'type':'format','content':o(_0x5973b1,_0x283965,_0x287e31['commandParams'][0x0]['startIndex'])};}return _0x2ba179;}['_getSuggestionBlocksForListStyle'](){const _0x18b953=this['editor']['plugins']['get']('LegacyListUtils');let _0x143b09=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x143b09[0x0]?.['is']('element','listItem')&&_0x143b09['unshift'](..._0x18b953['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x143b09[_0x143b09['length']-0x1]?.['is']('element','listItem')&&_0x143b09['push'](..._0x18b953['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x143b09=[...new Set(_0x143b09)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x143b09=_0x143b09['filter'](_0x4f68a3=>_0x4f68a3['is']('element','listItem'))),_0x143b09;}['_getSuggestionBlocks'](_0x506f81){const _0x17b1d6=this['editor']['plugins']['get']('LegacyListUtils');let _0x2d9e18=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x506f81)['map'](_0x95632b=>{const _0x3aa361=this['editor']['model']['createPositionAt'](_0x95632b,0x0);return[..._0x17b1d6['getSiblingNodes'](_0x3aa361,'backward'),..._0x17b1d6['getSiblingNodes'](_0x3aa361,'forward')];})['flat']();return _0x2d9e18=[...new Set(_0x2d9e18)],_0x2d9e18;}['_getTranslationKeyForListStyle'](_0x270d76){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x270d76)||'default')['toUpperCase']()+'_LIST_'+_0x270d76['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x20810f{['afterInit'](){const _0x221359=this['editor'];if(!_0x221359['plugins']['has']('MediaEmbedEditing'))return;const _0x4ed0e2=_0x221359['plugins']['get']('TrackChangesEditing'),_0x292c09=_0x221359['locale'];_0x4ed0e2['enableCommand']('mediaEmbed'),_0x4ed0e2['descriptionFactory']['registerElementLabel']('media',_0x3296b7=>o(_0x292c09,'ELEMENT_MEDIA',_0x3296b7)),_0x221359['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x565280,{writer:_0x288d6a,options:_0x33006f})=>{if(_0x33006f['showSuggestionHighlights'])return _0x288d6a['createEmptyElement']('div');},'converterPriority':'high'}),_0x221359['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1b1622,_0x5a81e9,_0x589cfe)=>{_0x589cfe['options']['showSuggestionHighlights']&&_0x1b1622['stop']();},{'priority':'high'});}}class gt extends _0x20810f{['afterInit'](){const _0x8b4368=this['editor'];_0x8b4368['plugins']['has']('MentionEditing')&&_0x8b4368['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x20810f{['afterInit'](){const _0x4086d7=this['editor'],_0x299674=_0x4086d7['plugins']['get']('TrackChangesEditing');_0x4086d7['plugins']['has']('MultiLevelList')&&(_0x299674['enableDefaultAttributesIntegration']('multiLevelList'),_0x299674['registerBlockAttribute']('listMarkerStyle'),_0x299674['descriptionFactory']['registerDescriptionCallback'](_0x2968c2=>this['handleDescriptions'](_0x2968c2)));}['handleDescriptions'](_0x5d08b7){const _0x363a9d=this['editor']['locale'],{data:_0x5090c8}=_0x5d08b7,_0x2f5d6f={'type':'format','content':''};if(_0x5090c8&&'listMarkerStyle'==_0x5090c8['key']){if(!_0x5090c8['oldValue'])return{'type':'format','content':o(_0x363a9d,'*Set\x20format:*\x20%0',o(_0x363a9d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5090c8['newValue']+')'};if(!_0x5090c8['newValue']){let _0x1af819=_0x5d08b7['head'];for(;_0x1af819;){if(_0x1af819['data']&&'listType'==_0x1af819['data']['key']&&_0x1af819['data']['newValue'])return _0x2f5d6f;_0x1af819=_0x1af819['next'];}return{'type':'format','content':o(_0x363a9d,'*Remove\x20format:*\x20%0',o(_0x363a9d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5090c8['oldValue']+')'};}}}}class mt extends _0x20810f{['afterInit'](){const _0x13c687=this['editor'];if(!_0x13c687['plugins']['has']('PageBreakEditing'))return;_0x13c687['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x11b764=_0x13c687['plugins']['get']('TrackChangesEditing'),_0x34997e=_0x13c687['locale'];_0x11b764['descriptionFactory']['registerElementLabel']('pageBreak',_0x5869e4=>o(_0x34997e,'ELEMENT_PAGE_BREAK',_0x5869e4));}}class dt extends _0x20810f{['afterInit'](){const _0x41b421=this['editor'];if(!_0x41b421['plugins']['has']('Paragraph'))return;const _0xc4ab8e=_0x41b421['locale'],_0x239840=_0x41b421['plugins']['get']('TrackChangesEditing');_0x239840['descriptionFactory']['registerElementLabel']('paragraph',_0xcaf178=>o(_0xc4ab8e,'ELEMENT_PARAGRAPH',_0xcaf178)),_0x239840['enableDefaultAttributesIntegration']('paragraph'),_0x239840['enableCommand']('insertParagraph'),_0x41b421['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x41b421),{'priority':'highest'}),_0x41b421['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x39c517,_0x412dbc,_0xa5f7d3)=>{_0xa5f7d3['options']['showSuggestionHighlights']&&nr(_0x41b421,{'showActiveMarker':!0x1})(_0x39c517,_0x412dbc,_0xa5f7d3);},{'priority':'highest'});const _0x118116=_0x239840['descriptionFactory'];_0x118116['registerDescriptionCallback'](_0x307eea=>{if('insertion'!==_0x307eea['type'])return;const {start:_0x54b317,end:_0x365c31}=_0x307eea['getFirstRange']();if(!_0x54b317['isTouching'](_0x365c31)||!_0x54b317['nodeAfter'])return;const _0x3566af=_0x41b421['model']['schema'],_0x352fe2=_0x54b317['nodeAfter'];return _0x3566af['isBlock'](_0x352fe2)&&!_0x3566af['isLimit'](_0x352fe2)&&_0x3566af['checkChild'](_0x352fe2,'$text')?{'type':'insertion','content':o(_0xc4ab8e,'*Insert:*\x20%0',_0x118116['getItemLabel'](_0x352fe2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d373c=this['editor'],_0x488b8e=_0x3d373c['locale'];_0x3d373c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27ba8d=>{if('formatBlock'!=_0x27ba8d['type'])return;const {data:_0x41c7dd}=_0x27ba8d;return _0x41c7dd&&'paragraph'==_0x41c7dd['commandName']?{'type':'format','content':o(_0x488b8e,'*Change\x20to:*\x20%0',o(_0x488b8e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x44c308,{showActiveMarker:_0x4055e6=!0x0}={}){return(_0xb92bb1,_0xbd7c60,_0x57cc51)=>{const _0x113384=_0x44c308['plugins']['get']('TrackChangesEditing'),_0xeceaa7=_0xbd7c60['markerRange']['start'],_0x48df73=_0xbd7c60['markerRange']['end'],_0x3fa783=_0x44c308['model']['schema'];if(!_0xeceaa7['isTouching'](_0x48df73)||!_0xeceaa7['nodeAfter'])return;const _0x249a84=_0xeceaa7['nodeAfter'];if(_0x3fa783['isBlock'](_0x249a84)&&!_0x3fa783['isLimit'](_0x249a84)&&_0x3fa783['checkChild'](_0x249a84,'$text')){if(!_0x57cc51['consumable']['consume'](_0xbd7c60['markerRange'],_0xb92bb1['name']))return;const _0x3c5f22=_0x57cc51['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x46fe7f=_0x57cc51['mapper']['toViewPosition'](_0x48df73);_0x4055e6&&_0x113384['activeMarkers']['includes'](_0xbd7c60['markerName'])&&_0x57cc51['writer']['addClass']('ck-suggestion-marker--active',_0x3c5f22),_0x57cc51['writer']['insert'](_0x46fe7f,_0x3c5f22),_0x57cc51['mapper']['bindElementToMarker'](_0x3c5f22,_0xbd7c60['markerName']);}};}class pt extends _0x20810f{['afterInit'](){const _0x440397=this['editor'];if(!_0x440397['plugins']['has']('RemoveFormatEditing'))return;_0x440397['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33b49f=this['editor'];_0x33b49f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5566bf=>{if('formatBlock'!=_0x5566bf['type']&&'formatInline'!=_0x5566bf['type'])return;const {data:_0x18647c}=_0x5566bf;return _0x18647c&&'removeFormat'==_0x18647c['commandName']?{'type':'format','content':o(_0x33b49f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x20810f{['afterInit'](){const _0x16f2a6=this['editor'];if(!_0x16f2a6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x385850=_0x16f2a6['plugins']['get']('TrackChangesEditing');_0x385850['enableCommand']('goToPreviousRestrictedEditingException'),_0x385850['enableCommand']('goToNextRestrictedEditingException');const _0x39d0b5=_0x16f2a6['plugins']['get']('RestrictedEditingModeEditing');_0x39d0b5['enableCommand']('trackChanges'),_0x39d0b5['enableCommand']('acceptSuggestion'),_0x39d0b5['enableCommand']('discardSuggestion'),_0x39d0b5['enableCommand']('acceptAllSuggestions'),_0x39d0b5['enableCommand']('discardAllSuggestions'),_0x39d0b5['enableCommand']('acceptSelectedSuggestions'),_0x39d0b5['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x20810f{static get['requires'](){return[_0x1b0bac];}['init'](){const _0x38a17c=this['editor'],_0x1c8ab5=_0x38a17c['plugins']['get']('TrackChangesEditing');_0x1c8ab5['enableCommand']('shiftEnter'),_0x38a17c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x38a17c),{'priority':'high'}),_0x38a17c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x38a17c),{'priority':'high'}),_0x38a17c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2830f7,_0x5380eb,_0x3cfb63)=>{_0x3cfb63['options']['showSuggestionHighlights']&&de(_0x38a17c,{'showActiveMarker':!0x1})(_0x2830f7,_0x5380eb,_0x3cfb63);}),_0x1c8ab5['descriptionFactory']['registerElementLabel']('softBreak',_0x3370cf=>o(_0x38a17c['locale'],'ELEMENT_LINE_BREAK',_0x3370cf));}}function de(_0x15b09f,{showActiveMarker:_0x22b040=!0x0}={}){return(_0x21a344,_0x2da11f,_0x1b3a9e)=>{const _0x437065=_0x15b09f['plugins']['get']('TrackChangesEditing');if(!_0x1b3a9e['consumable']['test'](_0x2da11f['markerRange'],_0x21a344['name']))return;const _0x293043=_0x15b09f['model'];for(const _0x5ba418 of _0x2da11f['markerRange']['getItems']()){if(!_0x5ba418['is']('element','softBreak'))continue;const _0x54d9e4='deletion'==_0x2da11f['markerName']['split'](':')[0x1]?'merge':'split',_0x237e0b=_0x1b3a9e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54d9e4}),_0x2e189d=_0x1b3a9e['mapper']['toViewPosition'](_0x293043['createPositionBefore'](_0x5ba418));_0x22b040&&_0x437065['activeMarkers']['includes'](_0x2da11f['markerName'])&&_0x1b3a9e['writer']['addClass']('ck-suggestion-marker--active',_0x237e0b),_0x1b3a9e['writer']['insert'](_0x2e189d,_0x237e0b),_0x1b3a9e['mapper']['bindElementToMarker'](_0x237e0b,_0x2da11f['markerName']);}};}class wt extends _0x20810f{['afterInit'](){const _0x40f9a=this['editor'],_0x1ff794=_0x40f9a['model'],_0x4a1699=_0x40f9a['locale'];if(!_0x40f9a['plugins']['has']('StandardEditingModeEditing'))return;const _0x32885c=_0x40f9a['plugins']['get']('TrackChangesEditing'),_0x58f0f1='restrictedEditingException',_0x475ae5=_0x40f9a['commands']['get'](_0x58f0f1);_0x32885c['enableCommand'](_0x58f0f1,(_0x10a90f,_0x503196={})=>{const _0x315a36=_0x1ff794['document']['selection'];if(_0x315a36['isCollapsed'])return void _0x10a90f(_0x503196);const _0x1b2438=void 0x0!==_0x503196['forceValue']?_0x503196['forceValue']:!_0x475ae5['value'];_0x1ff794['change'](()=>{const _0x8c321c=Array['from'](_0x315a36['getRanges']());for(const _0x163b82 of _0x8c321c){const _0x3522cc=_0x1b2438?[_0x163b82]:io(_0x58f0f1,_0x163b82,_0x1ff794);for(const _0x1cfccf of _0x3522cc)_0x32885c['markInlineFormat'](_0x1cfccf,{'commandName':_0x58f0f1,'commandParams':[{'forceValue':_0x1b2438}]});}});}),_0x32885c['descriptionFactory']['registerDescriptionCallback'](_0x1b8192=>{if('formatBlock'!=_0x1b8192['type']&&'formatInline'!=_0x1b8192['type'])return;const {data:_0x4ae498}=_0x1b8192;return _0x4ae498&&_0x4ae498['commandName']==_0x58f0f1?_0x4ae498['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a1699,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4a1699,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x20810f{['afterInit'](){const _0x10fa23=this['editor'];if(!_0x10fa23['plugins']['has']('Style')||!_0x10fa23['plugins']['has']('DataSchema'))return;const _0x3bc82f=_0x10fa23['plugins']['get']('TrackChangesEditing'),_0x1f19ba=_0x10fa23['locale'],_0x2b8004=_0x10fa23['config']['get']('style')||{},_0xc5134a=_0x10fa23['plugins']['get']('GeneralHtmlSupport'),_0x18262d=_0x10fa23['plugins']['get']('StyleUtils')['normalizeConfig'](_0x10fa23['plugins']['get']('DataSchema'),_0x2b8004['definitions']);_0x3bc82f['enableDefaultAttributesIntegration']('style');const _0x147702=new Set();for(const _0x218a17 of _0x18262d['block']){const _0x639bdb=_0xc5134a['getGhsAttributeNameForElement'](_0x218a17['element']);_0x147702['add'](_0x639bdb);}const _0x21b26c=new Set();for(const _0x571923 of _0x18262d['inline']){const _0x126013=_0xc5134a['getGhsAttributeNameForElement'](_0x571923['element']);_0x21b26c['add'](_0x126013);for(const _0x3859f9 of _0x571923['ghsAttributes'])_0x21b26c['add'](_0x3859f9);}for(const _0x49ef30 of _0x147702)_0x3bc82f['registerBlockAttribute'](_0x49ef30),_0x3bc82f['descriptionFactory']['registerAttributeLabel'](_0x49ef30,o(_0x1f19ba,'FORMAT_STYLE'));for(const _0x140af3 of _0x21b26c)_0x3bc82f['registerInlineAttribute'](_0x140af3),_0x3bc82f['descriptionFactory']['registerAttributeLabel'](_0x140af3,o(_0x1f19ba,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d3a86=this['editor'],_0x5bb299=_0x1d3a86['locale'];_0x1d3a86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3db6ec=>{if('formatBlock'!=_0x3db6ec['type']&&'formatInline'!=_0x3db6ec['type'])return;const {data:_0x28eead}=_0x3db6ec;return _0x28eead&&'style'===_0x28eead['commandName']?_0x28eead['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5bb299,'*Set\x20format:*\x20%0',_0x28eead['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5bb299,'*Remove\x20format:*\x20%0',_0x28eead['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x20810f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x853887){super(_0x853887),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3c5f65=this['editor'],_0x2b2f51=_0x3c5f65['model']['document']['selection'];if(!_0x3c5f65['plugins']['has']('TableEditing'))return;const _0x50443a=_0x3c5f65['locale'],_0x6dc07c=_0x3c5f65['plugins']['get']('TrackChangesEditing'),_0x4878c3=_0x3c5f65['plugins']['get']('TableUtils');_0x6dc07c['descriptionFactory']['registerElementLabel']('table',_0x6a9ab2=>o(_0x50443a,'ELEMENT_TABLE',_0x6a9ab2)),this['_setupColumnsRowsFixing'](),_0x6dc07c['enableCommand']('insertTable'),_0x6dc07c['enableCommand']('selectTableRow'),_0x6dc07c['enableCommand']('selectTableColumn');for(const _0x513d3b of['insertTableRowAbove','insertTableRowBelow']){const _0x5b4698=_0x3c5f65['commands']['get'](_0x513d3b);_0x6dc07c['enableCommand'](_0x513d3b,_0x51a10d=>{_0x3c5f65['model']['change'](_0xa011e5=>{_0x51a10d();const _0x1f67ce='above'===_0x5b4698['order'],_0x22af8e=_0x4878c3['getSelectionAffectedTableCells'](_0x2b2f51),_0x2224e3=_0x4878c3['getRowIndexes'](_0x22af8e),_0x346c85=_0x1f67ce?_0x2224e3['first']-0x1:_0x2224e3['last']+0x1,_0x17dbab=_0x22af8e[0x0]['findAncestor']('table'),_0x3a6499=_0x4878c3['createTableWalker'](_0x17dbab,{'startRow':_0x346c85,'endRow':_0x346c85}),_0x2b608b=Array['from'](_0x3a6499)['map'](_0x49fe9a=>_0xa011e5['createRangeOn'](_0x49fe9a['cell']));_0x6dc07c['markMultiRangeInsertion'](_0x2b608b,'tableRow');});});}for(const _0x464752 of['insertTableColumnLeft','insertTableColumnRight']){const _0x8253f3=_0x3c5f65['commands']['get'](_0x464752);_0x6dc07c['enableCommand'](_0x464752,_0x36f928=>{_0x3c5f65['model']['change'](_0x15a855=>{_0x36f928();const _0x3df95f='left'===_0x8253f3['order'],_0x18d800=_0x4878c3['getSelectionAffectedTableCells'](_0x2b2f51),_0x9339a9=_0x4878c3['getColumnIndexes'](_0x18d800),_0x135571=_0x3df95f?_0x9339a9['first']-0x1:_0x9339a9['last']+0x1,_0x229571=_0x18d800[0x0]['findAncestor']('table'),_0x51d7f6=_0x4878c3['createTableWalker'](_0x229571,{'startRow':0x0,'column':_0x135571,'includeAllSlots':!0x1}),_0x14bdd7=Array['from'](_0x51d7f6)['map'](_0x42e765=>_0x15a855['createRangeOn'](_0x42e765['cell']));_0x6dc07c['markMultiRangeInsertion'](_0x14bdd7,'tableColumn');});});}for(const _0x541907 of['removeTableRow','removeTableColumn']){const _0x3abde8=_0x541907['substr'](0xb),_0x14fd2b=_0x3abde8['toLowerCase'](),_0x31296b=_0x14fd2b['substr'](0x0,0x3)+'span',_0x84b270='table'+_0x3abde8,_0x4b37d5='min'+_0x3abde8,_0x1e5e67='max'+_0x3abde8;_0x6dc07c['enableCommand'](_0x541907,()=>{_0x3c5f65['model']['change'](_0x585267=>{const _0x36e194=_0x4878c3['getSelectionAffectedTableCells'](_0x2b2f51),_0x1c7640=_0x36e194[0x0]['findAncestor']('table');let _0x9c2705;if('removeTableRow'==_0x541907){const _0x3291d8=_0x4878c3['getRowIndexes'](_0x36e194);_0x9c2705={'startRow':_0x3291d8['first'],'endRow':_0x3291d8['last'],'includeAllSlots':!0x0};}else{const _0x37c2b4=_0x4878c3['getColumnIndexes'](_0x36e194);_0x9c2705={'startColumn':_0x37c2b4['first'],'endColumn':_0x37c2b4['last'],'includeAllSlots':!0x0};}const _0x1628c1=_0x4878c3['createTableWalker'](_0x1c7640,_0x9c2705),_0x44ab56=Array['from'](_0x1628c1)['map'](({cell:_0x406519})=>_0x406519),_0x434d80=Ee(_0x44ab56['filter'](_0x10df4c=>_0x10df4c['hasAttribute'](_0x31296b))),_0xde0227=Ee(_0x44ab56['filter'](_0x68b5cc=>!_0x68b5cc['hasAttribute'](_0x31296b)))['map'](_0xfb5fbb=>_0x585267['createRangeOn'](_0xfb5fbb)),_0x4f5823=_0x6dc07c['markMultiRangeDeletion'](_0xde0227,_0x84b270);if(_0x4f5823&&('tableRow'==_0x4f5823['subType']||'tableColumn'==_0x4f5823['subType'])){const _0x1b0ca1=this['_getSuggestionCoords'](_0x4f5823);for(const _0xc5c39 of _0x434d80){const _0xe4e178=_0x585267['createRangeOn'](_0xc5c39),_0x201f9d=_0x4878c3['getCellLocation'](_0xc5c39),_0x5f2096=_0xc5c39['getAttribute'](_0x31296b)-0x1,_0x55ef92=_0x1b0ca1[_0x4b37d5],_0x5c1125=_0x1b0ca1[_0x1e5e67];_0x55ef92<=_0x201f9d[_0x14fd2b]&&_0x201f9d[_0x14fd2b]+_0x5f2096<=_0x5c1125&&_0x4f5823['addRange'](_0xe4e178);}}});});}function _0x5daee3(_0x543175){const _0x5c8e8d=Array['from'](_0x2b2f51['getRanges']())['map'](_0x3b6548=>_0x3f67f3['fromRange'](_0x3b6548));_0x3c5f65['model']['change'](_0x3fc88b=>{const _0x4444f0=_0x3fc88b['batch'];_0x543175=_0x543175['filter'](_0x19b5d2=>'$graveyard'!=_0x19b5d2['root']['rootName']),_0x3fc88b['setSelection'](_0x543175),_0x3c5f65['commands']['get']('removeTableRow')['refresh'](),_0x3c5f65['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3c5f65['model']['enqueueChange'](()=>{_0x3c5f65['model']['enqueueChange'](_0x4444f0,_0x2e80dc=>{const _0x361d89=_0x5c8e8d['filter'](_0x99565c=>'$graveyard'!=_0x99565c['root']['rootName']);_0x361d89['length']>0x0&&_0x2e80dc['setSelection'](_0x361d89);for(const _0x57a347 of _0x5c8e8d)_0x57a347['detach']();});});});}function _0x6b4476(_0x492319){_0x3c5f65['model']['change'](_0x3df9e4=>{const _0x1f8fd7=Array['from'](_0x2b2f51['getRanges']())['map'](_0x2a7660=>_0x3f67f3['fromRange'](_0x2a7660)),_0x3950b0=[];for(const _0x13f3c2 of _0x492319)for(const _0xf00193 of _0x13f3c2['getItems']({'shallow':!0x0}))_0x3950b0['push'](_0xf00193);for(const _0x392ae0 of _0x3950b0)'$graveyard'!=_0x392ae0['root']['rootName']&&(_0x3df9e4['setSelection'](_0x3df9e4['createPositionAt'](_0x392ae0,0x0)),_0x3c5f65['commands']['get']('removeTableColumn')['refresh'](),_0x3c5f65['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2647e7=_0x1f8fd7['filter'](_0x16096b=>'$graveyard'!=_0x16096b['root']['rootName']);_0x2647e7['length']>0x0&&_0x3df9e4['setSelection'](_0x2647e7);for(const _0x545415 of _0x1f8fd7)_0x545415['detach']();});}function _0x33f8b1(_0xbe62ee,_0x4a50ad){return _0x4a50ad['every'](_0x4cac06=>_0xbe62ee['some'](_0x38ced3=>_0x38ced3['end']['isEqual'](_0x4cac06['start'])||_0x4cac06['end']['isEqual'](_0x38ced3['start'])));}function _0x38a3ae(_0x528cea,_0x287bf8){return!_0x528cea['some'](_0xffe28b=>_0x287bf8['some'](_0x5eb6fe=>_0xffe28b['isIntersecting'](_0x5eb6fe)))&&_0x528cea['some'](_0x17f33f=>_0x287bf8['some'](_0x450dad=>_0x17f33f['end']['isTouching'](_0x450dad['start'])));}_0x3c5f65['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x15a1ed,_0x45d58e,_0x3d627f)=>{if(!_0x3d627f['options']['showSuggestionHighlights'])return;const _0x3676e7=_0x45d58e['item'];if(!_0x3676e7)return;const _0x5ed730=_0x3d627f['mapper']['toViewElement'](_0x3676e7);function _0x559023(_0x34c925){return Array['isArray'](_0x34c925)?_0x34c925:[_0x34c925];}_0x5ed730&&'tableCell'===_0x3676e7['name']&&_0x3175fe(_0x5ed730,_0x3d627f['writer'],(_0x2edf32,_0xf75f0,_0x300550)=>_0x300550['addClass'](_0x559023(_0xf75f0['classes']),_0x2edf32),(_0x36bb68,_0x33ab7d,_0x4d6551)=>_0x4d6551['removeClass'](_0x559023(_0x33ab7d['classes']),_0x36bb68));},{'priority':'highest'}),_0x6dc07c['descriptionFactory']['registerDescriptionCallback'](_0x3094d7=>{if('insertion'!=_0x3094d7['type']&&'deletion'!=_0x3094d7['type'])return;const _0x38b952=_0x3094d7['getContainedElement']();if(null!=_0x38b952&&_0x38b952['is']('element','table')){if('insertion'==_0x3094d7['type']){const _0x2d8dd0=_0x3094d7['getItems']()['filter'](_0x54d15b=>_0x54d15b['is']('$textProxy'))['map'](_0x5c445f=>_0x5c445f['data']);if(_0x2d8dd0['length'])return{'type':'insertion','content':o(_0x50443a,'*Insert:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d8dd0['join']('\x20')+'\x22'))};}if('deletion'==_0x3094d7['type']){const _0x2d25eb=_0x3094d7['getItems']()['filter'](_0x3f3772=>_0x3f3772['is']('$textProxy'))['map'](_0x404c75=>_0x404c75['data']);if(_0x2d25eb['length'])return{'type':'deletion','content':o(_0x50443a,'*Remove:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d25eb['join']('\x20')+'\x22'))};}}}),_0x6dc07c['descriptionFactory']['registerDescriptionCallback'](_0x3bf7c6=>{if('tableRow'==_0x3bf7c6['subType']){const _0x514056=_0x3bf7c6['getItems']()['filter'](_0x20fdfd=>_0x20fdfd['is']('$textProxy'))['map'](_0x48dd75=>_0x48dd75['data']),_0x2ecebb=this['_getSuggestionCoords'](_0x3bf7c6),_0x16f11a=_0x2ecebb['maxRow']-_0x2ecebb['minRow']+0x1;if('insertion'==_0x3bf7c6['type'])return _0x514056['length']?{'type':'insertion','content':o(_0x50443a,'*Insert:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x16f11a,'\x22'+_0x514056['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50443a,'*Insert:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_ROW',_0x16f11a))};if('deletion'==_0x3bf7c6['type'])return _0x514056['length']?{'type':'deletion','content':o(_0x50443a,'*Remove:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x16f11a,'\x22'+_0x514056['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50443a,'*Remove:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_ROW',_0x16f11a))};}if('tableColumn'==_0x3bf7c6['subType']){const _0x2b73a4=_0x3bf7c6['getItems']()['filter'](_0x55114f=>_0x55114f['is']('$textProxy'))['map'](_0x3dd071=>_0x3dd071['data']),_0x538b38=this['_getSuggestionCoords'](_0x3bf7c6),_0x3e88ef=_0x538b38['maxColumn']-_0x538b38['minColumn']+0x1;if('insertion'==_0x3bf7c6['type'])return _0x2b73a4['length']?{'type':'insertion','content':o(_0x50443a,'*Insert:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3e88ef,'\x22'+_0x2b73a4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50443a,'*Insert:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_COLUMN',_0x3e88ef))};if('deletion'==_0x3bf7c6['type'])return _0x2b73a4['length']?{'type':'deletion','content':o(_0x50443a,'*Remove:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3e88ef,'\x22'+_0x2b73a4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50443a,'*Remove:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_COLUMN',_0x3e88ef))};}}),_0x6dc07c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5daee3),_0x6dc07c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5daee3),_0x6dc07c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x6b4476),_0x6dc07c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x6b4476),_0x6dc07c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x33f8b1),_0x6dc07c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x33f8b1),_0x6dc07c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x38a3ae),_0x6dc07c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x38a3ae);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4439b1=this['editor'],_0x3bee69=_0x4439b1['model']['document']['selection'];return(_0xb32bf8,_0x126a0b)=>{_0x4439b1['model']['change'](_0x29a8d5=>{const {commandName:_0x457e9a,commandParams:_0x511216}=_0x126a0b;let _0x57b7ef=_0xb32bf8[0x0]['end']['nodeBefore'];_0x511216&&_0x511216[0x0]&&!0x1===_0x511216[0x0]['forceValue']&&(_0x57b7ef=_0xb32bf8[0x0]['start']['nodeAfter']);const _0x4b0824=_0x29a8d5['createRangeIn'](_0x57b7ef);if('$graveyard'==_0x4b0824['root']['rootName'])return;const _0x592ca5=Array['from'](_0x3bee69['getRanges']())['map'](_0x3d5e32=>_0x3f67f3['fromRange'](_0x3d5e32));_0x29a8d5['setSelection'](_0x4b0824),_0x4439b1['commands']['get'](_0x457e9a)['refresh'](),_0x511216['push']({'forceDefaultExecution':!0x0}),_0x4439b1['execute'](_0x457e9a,..._0x511216);const _0x38f43f=_0x592ca5['filter'](_0x547c8e=>'$graveyard'!=_0x547c8e['root']['rootName']);_0x38f43f['length']>0x0&&_0x29a8d5['setSelection'](_0x38f43f);for(const _0xf1855e of _0x592ca5)_0xf1855e['detach']();});};}['_getCoordsForCells'](_0x5b1097){const _0x13f65f=this['editor']['plugins']['get']('TableUtils');let _0x3d2959=Number['MAX_SAFE_INTEGER'],_0x4df8bb=Number['MIN_SAFE_INTEGER'],_0x22542c=Number['MAX_SAFE_INTEGER'],_0x14fb46=Number['MIN_SAFE_INTEGER'];for(const _0x21678a of _0x5b1097){if('$graveyard'==_0x21678a['root']['rootName'])continue;const {row:_0x44fbe9,column:_0x1cec40}=_0x13f65f['getCellLocation'](_0x21678a),_0xe52f84=_0x21678a['hasAttribute']('rowspan')?_0x21678a['getAttribute']('rowspan')-0x1:0x0,_0x237dbc=_0x21678a['hasAttribute']('colspan')?_0x21678a['getAttribute']('colspan')-0x1:0x0;_0x3d2959=_0x44fbe9<_0x3d2959?_0x44fbe9:_0x3d2959,_0x4df8bb=_0x44fbe9+_0xe52f84>_0x4df8bb?_0x44fbe9+_0xe52f84:_0x4df8bb,_0x22542c=_0x1cec40<_0x22542c?_0x1cec40:_0x22542c,_0x14fb46=_0x1cec40+_0x237dbc>_0x14fb46?_0x1cec40+_0x237dbc:_0x14fb46;}return{'minRow':_0x3d2959,'maxRow':_0x4df8bb,'minColumn':_0x22542c,'maxColumn':_0x14fb46};}['_setupColumnsRowsFixing'](){const _0x46d46f=this['editor'],_0x1a775d=_0x46d46f['plugins']['get']('TrackChangesEditing'),_0x31c194=_0x46d46f['plugins']['get']('TableUtils');_0x46d46f['model']['document']['on']('change:data',()=>{const _0x4cf519=Array['from'](_0x46d46f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25c0a9,data:_0x1408f7}of _0x4cf519){const {group:_0x52401b,id:_0x5bc1e8,subType:_0x40ff24}=_0x1a775d['_splitMarkerName'](_0x25c0a9);if('suggestion'!=_0x52401b)continue;if(null!=_0x1408f7['oldRange'])continue;const _0x2994ac=_0x1a775d['getSuggestion'](_0x5bc1e8);this['_tablePostFixingSubtypes']['includes'](_0x40ff24)&&this['_tableSuggestions']['add'](_0x2994ac);}},{'priority':'low'});const _0xfe4a53=(_0x3badb7,_0x25ec73)=>{let _0x3244b2=!0x1;const _0x2777e4=_0x25ec73['createRangeOn'](_0x3badb7),_0x354beb=_0x3badb7['findAncestor']('table'),_0x2c9941=_0x31c194['getCellLocation'](_0x3badb7);for(const _0x3e37ce of this['_tableSuggestions']){const _0x3f178a=_0x3e37ce['subType'],_0x3b87b5=_0x3f178a['startsWith']('tablePaste'),_0x256623=_0x3f178a['substr'](_0x3b87b5?0xa:0x5),_0x35675c=_0x256623['toLowerCase'](),_0x3efce5=_0x35675c['substr'](0x0,0x3)+'span',_0x575032='min'+_0x256623,_0x3f694c='max'+_0x256623;if(!_0x3e37ce['isInContent'])continue;if(_0x354beb!=_0x3e37ce['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3e37ce['isIntersectingWithRange'](_0x2777e4))continue;const _0x597e3c=_0x3badb7['hasAttribute'](_0x3efce5)?_0x3badb7['getAttribute'](_0x3efce5)-0x1:0x0,_0x4d6eb3=this['_getSuggestionCoords'](_0x3e37ce),_0x32710d=_0x4d6eb3[_0x575032],_0x4515f4=_0x4d6eb3[_0x3f694c];_0x32710d<=_0x2c9941[_0x35675c]&&_0x2c9941[_0x35675c]+_0x597e3c<=_0x4515f4&&(_0x3e37ce['addRange'](_0x2777e4),_0x3244b2=!0x0);}return _0x3244b2;};_0x46d46f['model']['document']['registerPostFixer'](_0x3369f4=>{let _0x1f76a5=!0x1;for(const _0x5ee5c4 of _0x46d46f['model']['document']['differ']['getChanges']())if('insert'==_0x5ee5c4['type']){if('tableRow'==_0x5ee5c4['name']){for(const _0x14c831 of _0x5ee5c4['position']['nodeAfter']['getChildren']())_0x1f76a5=_0x1f76a5||_0xfe4a53(_0x14c831,_0x3369f4);}else'tableCell'==_0x5ee5c4['name']&&(_0x1f76a5=_0x1f76a5||_0xfe4a53(_0x5ee5c4['position']['nodeAfter'],_0x3369f4));}return _0x1f76a5;});}['_getSuggestionCoords'](_0x1e45e6){return this['_getCoordsForCells'](_0x1e45e6['getRanges']()['map'](_0x37b6cb=>_0x37b6cb['start']['nodeAfter']));}}function Ee(_0x549578){return Array['from'](new Set(_0x549578)['values']());}class St extends _0x20810f{static get['requires'](){return[jt];}['afterInit'](){const _0x2aa003=this['editor'],_0x5bc5d0=_0x2aa003['model']['document']['selection'],_0x5093b5=_0x2aa003['locale'];if(!_0x2aa003['plugins']['has']('TableEditing'))return;const _0x3d7468=_0x2aa003['plugins']['get']('TrackChangesEditing'),_0x516fc1=_0x2aa003['plugins']['get']('TableUtils'),_0x33c1a6=_0x2aa003['plugins']['get'](jt);_0x33c1a6['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3d7468['enableCommand']('mergeTableCells',()=>{const _0x4ddfa3=_0x516fc1['getSelectionAffectedTableCells'](_0x2aa003['model']['document']['selection']);_0x2aa003['model']['change'](()=>{_0x3d7468['markMultiRangeBlockFormat'](_0x4ddfa3,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2aa003['commands']['get']('mergeTableCells')['on']('execute',(_0x1c5027,_0x42300f)=>{_0x2aa003['commands']['get']('trackChanges')['value']&&(_0x42300f['length']>0x0&&_0x42300f[_0x42300f['length']-0x1]&&_0x42300f[_0x42300f['length']-0x1]['forceDefaultExecution']||_0x3d7468['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1c5027['stop']());},{'priority':'highest'});for(const _0x5aabfa of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x40876e=_0x2aa003['commands']['get'](_0x5aabfa);_0x3d7468['enableCommand'](_0x5aabfa,()=>{const _0x491889=_0x2aa003['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x17324d=>_0x17324d['is']('element','tableCell')),_0xafa3d2=_0x40876e['value'];_0x2aa003['model']['change'](()=>{_0x3d7468['markMultiRangeBlockFormat']([_0x491889,_0xafa3d2],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x563029 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x135771=_0x2aa003['commands']['get'](_0x563029);_0x3d7468['enableCommand'](_0x563029,()=>{const _0x1a82de=_0x516fc1['getSelectionAffectedTableCells'](_0x2aa003['model']['document']['selection'])[0x0],_0x187aae=_0x1a82de['findAncestor']('table'),{column:_0x38baaf,row:_0x515843}=_0x516fc1['getCellLocation'](_0x1a82de);let _0x4e17b5=[];if('horizontally'==_0x135771['direction']){const _0x1b085a=_0x516fc1['createTableWalker'](_0x187aae,{'startRow':_0x515843,'endRow':_0x515843,'includeAllSlots':!0x0});_0x4e17b5=Array['from'](_0x1b085a)['map'](_0x27837e=>_0x27837e['cell']);}else{const _0x512d27=_0x516fc1['createTableWalker'](_0x187aae,{'column':_0x38baaf,'includeAllSlots':!0x0});_0x4e17b5=Array['from'](_0x512d27)['map'](_0x2d4657=>_0x2d4657['cell']);}_0x2aa003['model']['change'](_0x244300=>{_0x3d7468['markBlockFormat'](_0x244300['createRangeOn'](_0x1a82de),{'commandName':_0x563029,'commandParams':[]},_0x4e17b5,_0x563029);});});}_0x3d7468['descriptionFactory']['registerDescriptionCallback'](_0x15c3b9=>{if('formatBlock'!=_0x15c3b9['type']&&'formatInline'!=_0x15c3b9['type'])return;const {data:_0x53e39e}=_0x15c3b9;return _0x53e39e&&'mergeTableCells'==_0x53e39e['commandName']?{'type':'format','content':o(_0x5093b5,'*Merge\x20cells*')}:void 0x0;}),_0x3d7468['descriptionFactory']['registerDescriptionCallback'](_0x8a5a=>{if('formatBlock'!=_0x8a5a['type']&&'formatInline'!=_0x8a5a['type'])return;const {data:_0x2bf873}=_0x8a5a;return _0x2bf873?'splitTableCellVertically'==_0x2bf873['commandName']?{'type':'format','content':o(_0x5093b5,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2bf873['commandName']?{'type':'format','content':o(_0x5093b5,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x247191=_0x33c1a6['_acceptFormatSuggestionCallbackFactory']();for(const _0x12c594 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3d7468['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x12c594,'accept',_0x247191);for(const _0x3a51a3 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3d7468['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a51a3,'accept',_0x247191);_0x3d7468['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4ccda5=>{_0x2aa003['model']['change'](_0x22e871=>{const _0x32f37d=Array['from'](_0x5bc5d0['getRanges']())['map'](_0x2ac4c9=>_0x3f67f3['fromRange'](_0x2ac4c9));_0x22e871['setSelection'](_0x4ccda5),_0x2aa003['commands']['get']('mergeTableCells')['refresh'](),_0x2aa003['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3a34b5=_0x32f37d['filter'](_0x548b0b=>'$graveyard'!=_0x548b0b['root']['rootName']);_0x3a34b5['length']>0x0&&_0x22e871['setSelection'](_0x3a34b5);for(const _0x56de08 of _0x32f37d)_0x56de08['detach']();});});for(const _0xb18710 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3a9781=_0x2aa003['commands']['get'](_0xb18710);_0x3a9781['on']('set:isEnabled',(_0x5ae00e,_0x263154,_0x414e5a)=>{if(_0x414e5a){const _0x5a21cd=_0x2aa003['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x188513=>_0x188513['is']('element','tableCell'));this['_areMergableCells'](_0x3a9781['value'],_0x5a21cd)||(_0x5ae00e['return']=!0x1,_0x5ae00e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2ef7fc=this['editor']['commands']['get']('mergeTableCells'),_0x5246d8=this['editor']['plugins']['get']('TableUtils');if(!_0x2ef7fc['isEnabled'])return!0x1;const _0x2da362=_0x5246d8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x253efa of _0x2da362)for(const _0x1e66fc of _0x2da362)if(_0x253efa!=_0x1e66fc&&!this['_areMergableCells'](_0x253efa,_0x1e66fc))return!0x1;return!0x0;}['_areMergableCells'](_0x510508,_0x42a3ce){const _0x2187fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c33a3=this['editor']['model']['createRangeOn'](_0x510508),_0x389f1a=this['editor']['model']['createRangeOn'](_0x42a3ce),_0x21fba1=new Set(),_0x242752=new Set();for(const _0x451286 of _0x2187fc['getSuggestions']())if(('insertion'==_0x451286['type']||'deletion'==_0x451286['type']||'mergeTableCells'==_0x451286['subType'])&&_0x451286['isInContent']){for(const _0x4a7286 of _0x451286['getRanges']())_0x4a7286['containsRange'](_0x5c33a3,!0x0)&&_0x21fba1['add'](_0x451286['type']+':'+_0x451286['author']['id']),_0x4a7286['containsRange'](_0x389f1a,!0x0)&&_0x242752['add'](_0x451286['type']+':'+_0x451286['author']['id']);}if(_0x21fba1['size']!=_0x242752['size'])return!0x1;for(const _0x41515f of _0x21fba1)if(!_0x242752['has'](_0x41515f))return!0x1;return!0x0;}}class At extends _0x20810f{static get['requires'](){return[jt];}['afterInit'](){const _0x17f2d7=this['editor'];if(!_0x17f2d7['plugins']['has']('TableEditing'))return;const _0x26cff9=_0x17f2d7['locale'],_0x5e8a9=_0x17f2d7['plugins']['get']('TrackChangesEditing');_0x5e8a9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5e8a9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5e8a9['registerBlockAttribute']('headingRows'),_0x5e8a9['registerBlockAttribute']('headingColumns'),_0x5e8a9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x26cff9,'FORMAT_HEADER_ROW')),_0x5e8a9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x26cff9,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xed4088=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10c3b5=this['editor']['plugins']['get']('TableUtils'),_0x1929b6=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0xc5bc2({showActiveMarker:_0x4e1a54=!0x0,setDataAttribute:_0x27a43e=!0x0}={}){return(_0x133bfb,_0xe2d195,_0x58440d)=>{const {type:_0x42fd9e,id:_0x1ab642}=_0xed4088['_splitMarkerName'](_0xe2d195['markerName']),_0x32e720=_0xed4088['getSuggestion'](_0x1ab642),_0x5f5e06=_0x32e720['data'];if('formatBlock'!=_0x32e720['type']||!_0x5f5e06||'setTableColumnHeader'!=_0x5f5e06['commandName'])return;if(_0xe2d195['item'])return void _0x133bfb['stop']();if(!_0x58440d['consumable']['consume'](_0xe2d195['markerRange'],_0x133bfb['name']))return;const _0x7168a5=_0xe2d195['markerRange']['start']['nodeAfter'],_0x338e58=_0xe2d195['markerRange']['end']['nodeBefore'],_0x372277=_0x7168a5['parent']['parent'],{column:_0x35bbc1}=_0x10c3b5['getCellLocation'](_0x7168a5),{column:_0xacc879}=_0x10c3b5['getCellLocation'](_0x338e58);for(let _0x1748c6=_0x35bbc1;_0x1748c6<=_0xacc879;_0x1748c6++){const _0x2e265e=_0x10c3b5['createTableWalker'](_0x372277,{'column':_0x1748c6,'includeAllSlots':!0x1});for(const _0x4073c1 of _0x2e265e){const _0x57f5a2=_0x4073c1['cell'],_0x1a7fd4=_0x58440d['mapper']['toViewElement'](_0x57f5a2);_0x58440d['writer']['addClass']('ck-suggestion-marker-'+_0x42fd9e,_0x1a7fd4),_0x27a43e&&_0x58440d['writer']['setAttribute']('data-suggestion',_0x1ab642,_0x1a7fd4),_0x58440d['mapper']['bindElementToMarker'](_0x1a7fd4,_0xe2d195['markerName']),_0x4e1a54&&(_0xed4088['activeMarkers']['includes'](_0xe2d195['markerName'])?_0x58440d['writer']['addClass']('ck-suggestion-marker--active',_0x1a7fd4):_0x58440d['writer']['removeClass']('ck-suggestion-marker--active',_0x1a7fd4));}}};}_0xed4088['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1929b6),_0xed4088['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1929b6),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xc5bc2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x30f0ba,_0x1d8f8a,_0x2ffab5)=>{_0x2ffab5['options']['showSuggestionHighlights']&&_0xc5bc2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x30f0ba,_0x1d8f8a,_0x2ffab5);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x445dc6,_0xe4c1d4,_0x346e59)=>{const {type:_0x492dea,id:_0x594f4d}=_0xed4088['_splitMarkerName'](_0xe4c1d4['markerName']),_0x5aae66=_0xed4088['getSuggestion'](_0x594f4d),_0x21e656=_0x5aae66['data'];if('formatBlock'!=_0x5aae66['type']||!_0x21e656||'setTableColumnHeader'!=_0x21e656['commandName'])return;const _0x51a7c1=_0x346e59['mapper']['markerNameToElements'](_0xe4c1d4['markerName']);if(_0x51a7c1){for(const _0x86f53f of _0x51a7c1)_0x346e59['writer']['removeClass']('ck-suggestion-marker-'+_0x492dea,_0x86f53f),_0x346e59['writer']['removeClass']('ck-suggestion-marker--active',_0x86f53f),_0x346e59['writer']['removeAttribute']('data-suggestion',_0x86f53f),_0x346e59['mapper']['unbindElementFromMarkerName'](_0x86f53f,_0xe4c1d4['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dafe2=this['editor'],_0x4f71b2=_0x2dafe2['locale'];function _0x2b5a02(_0x1ac6ec){return{'type':'format','content':o(_0x4f71b2,'*Format:*\x20%0',_0x1ac6ec)};}_0x2dafe2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b474b=>{if('formatBlock'!=_0x4b474b['type'])return;const {data:_0x2e54f0}=_0x4b474b;if(_0x2e54f0){if('setTableRowHeader'==_0x2e54f0['commandName']){const _0x5f4a5d=_0x2e54f0['commandParams'][0x0]['forceValue'];return _0x2b5a02(o(_0x4f71b2,_0x5f4a5d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2e54f0['commandName']){const _0x2fb8f5=_0x2e54f0['commandParams'][0x0]['forceValue'];return _0x2b5a02(o(_0x4f71b2,_0x2fb8f5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x4ef158=>[_0x4ef158,null]));class It extends _0x20810f{static get['requires'](){return[jt];}['afterInit'](){const _0x114349=this['editor'];if(!_0x114349['plugins']['has']('TableClipboard'))return;const _0x5b6b96=_0x114349['plugins']['get']('TrackChangesEditing'),_0x44f02f=_0x114349['plugins']['get']('TableUtils'),_0x3d67e4=_0x114349['plugins']['get'](jt),_0x267c30=_0x114349['plugins']['get']('TableClipboard');_0x3d67e4['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x114349['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x114349['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x39eb11=null;_0x114349['model']['on']('insertContent',(_0x496ac5,_0x221974)=>{const [_0x2be1e0,_0x1f8e28]=_0x221974,_0x393892=_0x221974[_0x221974['length']-0x1];_0x393892&&_0x393892['forceDefaultExecution']||_0x5b6b96['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4135e5,_0x4bc1b9,_0xf98209,_0x1e3fa9,_0x54bb45){if(_0x4bc1b9&&!_0x4bc1b9['is']('documentSelection'))return!0x1;const _0xa54903=_0x54bb45['getTableIfOnlyTableInContent'](_0x4135e5,_0xf98209);if(!_0xa54903||!he(_0xa54903,void 0x0,_0x1e3fa9))return!0x1;const _0x391f3a=_0x1e3fa9['getSelectionAffectedTableCells'](_0xf98209['document']['selection']);if(!_0x391f3a['length'])return!0x1;const _0x1a5325=_0x391f3a[0x0]['findAncestor']('table'),_0xc7d19c=_0x1e3fa9['getRowIndexes'](_0x391f3a),_0x23888d=_0x1e3fa9['getColumnIndexes'](_0x391f3a),_0x326004={'startRow':_0xc7d19c['first'],'endRow':_0xc7d19c['last'],'startColumn':_0x23888d['first'],'endColumn':_0x23888d['last']};return 0x1==_0x391f3a['length']&&(_0x326004['endRow']+=_0x1e3fa9['getRows'](_0xa54903)-0x1,_0x326004['endColumn']+=_0x1e3fa9['getColumns'](_0xa54903)-0x1),he(_0x1a5325,_0x326004,_0x1e3fa9);}(_0x2be1e0,_0x1f8e28,_0x114349['model'],_0x44f02f,_0x267c30)&&(_0x496ac5['stop'](),_0x39eb11={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x114349['model']['change'](()=>{_0x114349['model']['insertContent'](_0x221974[0x0],_0x221974[0x1],_0x221974[0x2],{'forceDefaultExecution':!0x0});const _0x1f85d1=_0x4afc5b(),{rowInsertionRanges:_0x1df1d8,columnInsertionRanges:_0x1bfc6b,insertionRanges:_0x2bc6dd,deletionRanges:_0x225a2b,cells:_0x278158}=_0x39eb11;_0x1df1d8['length']&&_0x5b6b96['markMultiRangeInsertion'](_0x1df1d8,'tablePasteRow',{'tablePasteChainId':_0x1f85d1}),_0x1bfc6b['length']&&_0x5b6b96['markMultiRangeInsertion'](_0x1bfc6b,'tablePasteColumn',{'tablePasteChainId':_0x1f85d1}),_0x2bc6dd['length']&&(_0x5b6b96['markMultiRangeInsertion'](_0x2bc6dd,'tablePaste',{'tablePasteChainId':_0x1f85d1,'skipNestingCheck':!0x0}),_0x2bc6dd['forEach'](_0x4f9f4f=>_0x4f9f4f['detach']?.())),_0x225a2b['length']&&(_0x5b6b96['markMultiRangeDeletion'](_0x225a2b,'tablePaste',{'tablePasteChainId':_0x1f85d1,'skipNestingCheck':!0x0}),_0x225a2b['forEach'](_0x3cca85=>_0x3cca85['detach']?.()));const _0x28eeaa=_0x5b6b96['markMultiRangeBlockFormat'](_0x278158['map'](({element:_0x47ddac})=>_0x47ddac),{'formatGroupId':_0x4afc5b()},[],'tablePasteCell',{'tablePasteChainId':_0x1f85d1});if(_0x28eeaa){const _0x123ed5=_0x28eeaa['getMarkers'](),_0x1738ff=[];for(const {element:_0x1830ee,attributes:_0x21e46f}of _0x278158){if(!_0x21e46f)continue;const _0x3f7425=_0x114349['model']['createRangeOn'](_0x1830ee),_0x418aee=_0x123ed5['find'](_0x1b7066=>_0x1b7066['getRange']()['isEqual'](_0x3f7425));_0x418aee&&_0x1738ff['push']([_0x418aee['name'],_0x21e46f]);}_0x1738ff['length']&&_0x28eeaa['setAttribute']('markerAttributes',Object['fromEntries'](_0x1738ff));}_0x39eb11=null;}));},{'priority':_0x515e10['high']+0xa}),_0x114349['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3ce23f,_0x716dae)=>{const [_0x40f738,_0x4129b1,,_0x4659d4]=_0x716dae;if(!_0x39eb11)return;_0x3ce23f['stop']();const _0x52401a=_0x40f738['cell'],_0x48ae94=_0x4129b1,_0xc88609=Pe(_0x52401a),_0x39199d=Pe(_0x48ae94);_0x3ce23f['return']=_0x52401a;let _0x4633ca=null,_0x128e5e=null;if(_0x39199d||_0xc88609){if(_0xc88609&&!_0x39199d){_0x4659d4['remove'](_0x52401a['getChild'](0x0));for(const _0x25eede of Array['from'](_0x48ae94['getChildren']()))_0x4659d4['insert'](_0x25eede,_0x52401a,'end');const _0xd2acc5=_0x39eb11['rowInsertionIndexes']['includes'](_0x40f738['row']),_0x11e564=_0x39eb11['columnInsertionIndexes']['includes'](_0x40f738['column']);_0xd2acc5||_0x11e564||(_0x4633ca=_0x3f67f3['fromRange'](_0x4659d4['createRangeIn'](_0x52401a)));}else _0x39199d&&!_0xc88609&&(_0x128e5e=_0x4659d4['createRangeIn'](_0x52401a));}else{const _0x2e916e=_0x4659d4['createElement']('tableCellSuggestion'),_0x485318=_0x4659d4['createElement']('tableCellSuggestion');_0x4659d4['wrap'](_0x4659d4['createRangeIn'](_0x52401a),_0x485318),_0x4659d4['insert'](_0x2e916e,_0x52401a,0x0);for(const _0x63fe2e of Array['from'](_0x48ae94['getChildren']()))_0x4659d4['insert'](_0x63fe2e,_0x2e916e,'end');_0x4633ca=_0x3f67f3['fromRange'](_0x4659d4['createRangeOn'](_0x2e916e)),_0x128e5e=_0x3f67f3['fromRange'](_0x4659d4['createRangeOn'](_0x485318));}const _0x242d28=Array['from'](_0x48ae94['getAttributes']())['filter'](([_0x150d3b])=>ge['includes'](_0x150d3b));_0x39eb11['cells']['push']({'element':_0x52401a,'attributes':_0x242d28['length']?Object['fromEntries'](_0x242d28):null}),_0x4633ca&&_0x39eb11['insertionRanges']['push'](_0x4633ca),_0x128e5e&&_0x39eb11['deletionRanges']['push'](_0x128e5e);},{'priority':'high'}),_0x44f02f['on']('insertColumns',(_0x5b80bd,_0x4274d0)=>{const [_0x4a09d7,_0x48bae1={}]=_0x4274d0;if(!_0x39eb11)return;const _0x4119d3=_0x48bae1['at']||0x0,_0xbc6c39=_0x48bae1['columns']||0x1;_0x39eb11['columnInsertionIndexes']=new Array(_0xbc6c39)['fill'](_0x4119d3)['map']((_0x38f175,_0x360aa1)=>_0x38f175+_0x360aa1);for(const {cell:_0x2925f9}of _0x44f02f['createTableWalker'](_0x4a09d7,{'startColumn':_0x4119d3,'endColumn':_0x4119d3+_0xbc6c39-0x1}))_0x39eb11['columnInsertionRanges']['push'](_0x114349['model']['createRangeOn'](_0x2925f9));},{'priority':'low'}),_0x44f02f['on']('insertRows',(_0x5d2173,_0x56f08e)=>{const [_0x5dff47,_0x4713df={}]=_0x56f08e;if(!_0x39eb11)return;const _0x56534b=_0x4713df['at']||0x0,_0x2ce4b1=_0x4713df['rows']||0x1;_0x39eb11['rowInsertionIndexes']=new Array(_0x2ce4b1)['fill'](_0x56534b)['map']((_0x45b015,_0x39a5a7)=>_0x45b015+_0x39a5a7);for(const {cell:_0x2c22b3}of _0x44f02f['createTableWalker'](_0x5dff47,{'startRow':_0x56534b,'endRow':_0x56534b+_0x2ce4b1-0x1}))_0x39eb11['rowInsertionRanges']['push'](_0x114349['model']['createRangeOn'](_0x2c22b3));},{'priority':'low'}),_0x5b6b96['descriptionFactory']['registerDescriptionCallback'](_0x26550f=>{if(_0x26550f['subType']&&_0x26550f['subType']['startsWith']('tablePaste'))return _0x26550f['previous']?{}:{'type':'insertion','content':o(_0x114349['locale'],'*Replace\x20table\x20cells*')};});const _0x53f3e4=()=>!0x1;for(const _0x3e08d5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5b6b96['_suggestionFactory']['registerCustomCallback']('insertion',_0x3e08d5,'join',_0x53f3e4),_0x5b6b96['_suggestionFactory']['registerCustomCallback']('deletion',_0x3e08d5,'join',_0x53f3e4),_0x5b6b96['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e08d5,'join',_0x53f3e4);_0x5b6b96['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x53f3e4),_0x5b6b96['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4d77c5,_0x53b21d,_0x1779fb)=>{const _0x5ed02d=_0x4d77c5['map'](_0x3f1ebb=>_0x3f1ebb['getContainedElement']())['filter'](_0x4bd447=>_0x4bd447),_0x23ee78=new Map(_0x5ed02d['map'](_0x516be9=>[_0x516be9,null]));if(_0x39eb11){for(const {element:_0x243c63,attributes:_0x137668}of _0x39eb11['cells'])_0x137668&&_0x23ee78['set'](_0x243c63,_0x137668);}else{if(_0x1779fb&&_0x1779fb['markerAttributes'])for(const [_0x1a9380,_0x245ada]of Object['entries'](_0x1779fb['markerAttributes'])){const _0x38b383=_0x114349['model']['markers']['get'](_0x1a9380),_0x5b343c=_0x38b383?_0x38b383['getRange']()['getContainedElement']():null;_0x5b343c&&_0x23ee78['set'](_0x5b343c,_0x245ada);}}_0x114349['model']['change'](_0x1f5add=>{for(const [_0x6aa8fc,_0x1b5c7c]of _0x23ee78)_0x1f5add['setAttributes']({...Ce,..._0x1b5c7c},_0x6aa8fc);});});const _0x1fb5a7=(_0x3b1476,_0x4b1191)=>{_0x5b6b96['_suggestionFactory']['registerCustomCallback'](_0x3b1476,'tablePaste',_0x4b1191,(_0x2fa8ca,_0x5a0c22,_0x4e5342)=>{_0x114349['model']['change'](_0xa71598=>{const _0x10b7bd=[];for(const _0x51d353 of _0x2fa8ca){const _0x4d379e=_0x51d353['start']['nodeAfter'];_0x4d379e['is']('element','tableCellSuggestion')&&_0x10b7bd['push'](_0x4d379e);}_0x5b6b96['_suggestionFactory']['getSuggestionCallback'](_0x3b1476,null,_0x4b1191)(_0x2fa8ca,_0x5a0c22,_0x4e5342);for(const _0x30e715 of _0x10b7bd)'$graveyard'!=_0x30e715['root']['rootName']&&_0xa71598['unwrap'](_0x30e715);});});};_0x1fb5a7('insertion','accept'),_0x1fb5a7('insertion','discard'),_0x1fb5a7('deletion','accept'),_0x1fb5a7('deletion','discard'),_0x5b6b96['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2697ad=>{const _0x5e8544=_0x2697ad['map'](_0xde2130=>_0xde2130['getContainedElement']()),_0x56d070=_0x5e8544[0x0]['findAncestor']('table'),{minRow:_0x145017,maxRow:_0x367d08}=_0x3d67e4['_getCoordsForCells'](_0x5e8544);_0x44f02f['removeRows'](_0x56d070,{'at':_0x145017,'rows':_0x367d08-_0x145017+0x1});}),_0x5b6b96['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2f71f8=>{const _0x53ce45=_0x2f71f8['map'](_0xe0f476=>_0xe0f476['getContainedElement']()),_0x552f63=_0x53ce45[0x0]['findAncestor']('table'),{minColumn:_0x4d0d18,maxColumn:_0x28ca64}=_0x3d67e4['_getCoordsForCells'](_0x53ce45);_0x44f02f['removeColumns'](_0x552f63,{'at':_0x4d0d18,'columns':_0x28ca64-_0x4d0d18+0x1});});const _0x2f805a=(_0x44b88d,_0x28dbfc)=>{if(!_0x28dbfc['subType']||!_0x28dbfc['subType']['startsWith']('tablePaste'))return;const _0x5e4126=_0x28dbfc['attributes']['tablePasteChainId'],_0x3bfeca=_0x5b6b96['getSuggestions']()['filter'](_0x26250f=>_0x26250f['isInContent']&&_0x26250f['attributes']&&_0x26250f['attributes']['tablePasteChainId']==_0x5e4126);_0x3bfeca['length']&&_0x28dbfc['getAllAdjacentSuggestions']()['length']!=_0x3bfeca['length']&&_0x3bfeca['reduce']((_0x3ce31e,_0x53b8fa)=>(_0x3ce31e['next']=_0x53b8fa,_0x53b8fa['previous']=_0x3ce31e,_0x53b8fa));};function _0x4c73db(_0x19f6b9,_0x7af03a=!0x0){const {id:_0x1adea4}=_0x5b6b96['_splitMarkerName'](_0x19f6b9['markerName']),_0x12fea6=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1eda42=_0x5b6b96['activeMarkers']['includes'](_0x19f6b9['markerName']);return _0x1eda42&&_0x12fea6['push']('ck-suggestion-marker--active'),{'classes':_0x12fea6,'attributes':{'data-suggestion':_0x1adea4},'priority':_0x1eda42&&_0x7af03a?0xbc2:0xbb8};}_0x5b6b96['on']('suggestionLoaded',_0x2f805a,{'priority':'high'}),_0x5b6b96['on']('suggestionUnloaded',_0x2f805a,{'priority':'high'}),_0x114349['model']['document']['registerPostFixer'](()=>{let _0x47a897=!0x1;const _0x3a86aa=Array['from'](_0x114349['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x761b36,data:_0x261ce4}of _0x3a86aa){const {group:_0xbe29ed,type:_0x45bc12,id:_0x42edcc}=_0x5b6b96['_splitMarkerName'](_0x761b36);if('suggestion'!=_0xbe29ed||'deletion'!=_0x45bc12||_0x261ce4['oldRange'])continue;if(!_0x5b6b96['hasSuggestion'](_0x42edcc))continue;const _0x213787=_0x5b6b96['getSuggestion'](_0x42edcc)['getRanges'](),_0x170135=_0x114349['plugins']['get']('Users')['me'];for(const _0x528bd5 of _0x5b6b96['getSuggestions']()){if(!_0x528bd5['isInContent']||_0x528bd5['author']!=_0x170135)continue;if('formatBlock'!=_0x528bd5['type']||'tablePasteCell'!=_0x528bd5['subType'])continue;if(_0x528bd5['getRanges']()['every'](_0x168218=>_0x213787['some'](_0x5bb585=>_0x5bb585['containsRange'](_0x168218,!0x0)))){for(const _0x3295a4 of _0x528bd5['getAllAdjacentSuggestions']())_0x3295a4['isInContent']&&(_0x3295a4['discard'](),_0x47a897=!0x0);}}}return _0x47a897;}),_0x114349['model']['document']['registerPostFixer'](_0x139613=>{const _0x1eb074=_0x114349['commands']['get']('redo');if(!_0x1eb074||!_0x1eb074['_createdBatches']['has'](_0x139613['batch']))return!0x1;let _0x2feb57=!0x1;const _0x35c638=_0x114349['plugins']['get']('Users')['me'],_0x373c87=_0x114349['model']['document']['differ']['getChanges'](),_0xf99376=Array['from'](_0x114349['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1ca637,data:_0x5a94af})=>{const {group:_0x42712d,subType:_0x1f7525,authorId:_0x4108d9}=_0x5b6b96['_splitMarkerName'](_0x1ca637);return'suggestion'==_0x42712d&&'tablePaste'==_0x1f7525&&_0x4108d9==_0x35c638['id']&&!_0x5a94af['oldRange'];});for(const _0x4affd5 of _0x373c87){if('insert'!=_0x4affd5['type']||'tableCellSuggestion'!=_0x4affd5['name']||0x1!=_0x4affd5['length'])continue;const _0x109ac1=_0x139613['createRange'](_0x4affd5['position'],_0x4affd5['position']['getShiftedBy'](0x1));if(!_0xf99376['find'](({data:_0x6dbb04})=>_0x6dbb04['newRange']['isEqual'](_0x109ac1))){for(const {name:_0x1d49e1,data:_0xe36f09}of _0xf99376)if(_0x109ac1['containsRange'](_0xe36f09['newRange'])){_0x139613['updateMarker'](_0x1d49e1,{'range':_0x109ac1}),_0x2feb57=!0x0;break;}}}return _0x2feb57;}),_0x114349['model']['document']['registerPostFixer'](_0x5a7125=>{let _0x37fac8=!0x1;const _0x115f20=_0x114349['plugins']['get']('Users')['me'],_0x3b190f=_0x5b6b96['getSuggestions']()['filter'](_0x13ef4f=>_0x13ef4f['isInContent']&&_0x13ef4f['author']==_0x115f20),_0x15aa71=new Set(),_0x2586ae=new Set();for(const _0x200e3e of _0x3b190f)if('tablePaste'==_0x200e3e['subType'])for(const _0x5ffb18 of _0x200e3e['getMarkers']()){const _0x393903=_0x5ffb18['getRange']()['getContainedElement']();if(_0x393903){if(_0x393903['is']('element','tableCellSuggestion')&&Pe(_0x393903)){_0x200e3e['removeMarker'](_0x5ffb18['name']),_0x15aa71['add'](_0x393903),_0x37fac8=!0x0;const _0x254f41=_0x393903['nextSibling'],_0x401134=_0x393903['previousSibling'],_0x2bb1fa=_0x254f41&&_0x254f41['is']('element','tableCellSuggestion'),_0x26206f=_0x401134&&_0x401134['is']('element','tableCellSuggestion');_0x2bb1fa&&!_0x15aa71['has'](_0x254f41)&&_0x2586ae['add'](_0x254f41),_0x26206f&&!_0x15aa71['has'](_0x401134)&&_0x2586ae['add'](_0x401134);}else _0x393903['is']('element','paragraph')&&_0x393903['isEmpty']&&(_0x200e3e['removeMarker'](_0x5ffb18['name']),_0x37fac8=!0x0);}}else{if('tablePasteCell'==_0x200e3e['subType']){if(!_0x200e3e['attributes']||!_0x200e3e['attributes']['tablePasteChainId'])continue;const _0x453e6b=_0x200e3e['attributes']['markerAttributes'];if(_0x453e6b&&Object['keys'](_0x453e6b)['length'])continue;const _0x2fba7c=_0x200e3e['attributes']['tablePasteChainId'];let _0x318d08=!0x0,_0x448752=!0x0;for(const _0xf2f338 of _0x3b190f)if(_0xf2f338['subType']&&_0xf2f338['subType']['startsWith']('tablePaste')){if(!_0xf2f338['attributes']['tablePasteChainId']){_0x448752=!0x1;break;}if(_0xf2f338['id']!=_0x200e3e['id']&&_0xf2f338['attributes']['tablePasteChainId']==_0x2fba7c){_0x318d08=!0x1;break;}}_0x448752&&_0x318d08&&(_0x200e3e['removeMarkers'](),_0x37fac8=!0x0);}}for(const _0x9cbfda of _0x15aa71)_0x5a7125['remove'](_0x9cbfda);for(const _0x17375f of _0x2586ae)_0x5a7125['unwrap'](_0x17375f);return _0x37fac8;}),_0x114349['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3737b2,_0x218a91)=>_0x4c73db(_0x3737b2),'converterPriority':'high'}),_0x114349['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x12aef3,_0xdfcfa4)=>_0xdfcfa4['options']['showSuggestionHighlights']?_0x4c73db(_0x12aef3,!0x1):null,'converterPriority':'high'});const _0x5ba19d=_0x114349['editing']['view'];this['listenTo'](_0x5ba19d['document'],'clipboardOutput',(_0x456f01,_0x58f8fa)=>{const _0x238b7c=[];for(const _0x4b906c of _0x5ba19d['createRangeIn'](_0x58f8fa['content'])['getItems']())_0x4b906c['is']('element','suggestion-td')&&_0x238b7c['push'](_0x4b906c);_0x5ba19d['change'](_0x404060=>{for(const _0x1fa68c of _0x238b7c)_0x404060['move'](_0x404060['createRangeIn'](_0x1fa68c),_0x404060['createPositionBefore'](_0x1fa68c)),_0x404060['remove'](_0x1fa68c);});});}}function Pe(_0x1fd00e){if(_0x1fd00e['isEmpty'])return!0x0;const _0x5c2c63=_0x1fd00e['getChild'](0x0);return _0x5c2c63['is']('element','paragraph')&&_0x5c2c63['isEmpty'];}function he(_0xa3a48e,_0xcf7c6a={},_0x4f5669){for(const {isAnchor:_0x18c609,cellHeight:_0xc2dd6d,cellWidth:_0x46e289}of _0x4f5669['createTableWalker'](_0xa3a48e,{'includeAllSlots':!0x0,..._0xcf7c6a}))if(!_0x18c609||0x1!=_0xc2dd6d||0x1!=_0x46e289)return!0x1;return!0x0;}class vt extends _0x20810f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1096bd=this['editor']['plugins']['get']('TrackChangesEditing');_0x1096bd['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1096bd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1096bd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1096bd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1096bd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1096bd['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5e0fcd,_0x10c34c){const _0x412c43=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d5082=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4b6ed7=_0x10c34c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2b5c0e=_0x2d5082['getColumnGroupElement'](_0x4b6ed7);let _0x5b0424=_0x2b5c0e?_0x2d5082['getTableColumnsWidths'](_0x2b5c0e):null,_0xa981e4=_0x4b6ed7['getAttribute']('tableWidth')||null;const _0x17fbee=_0x10c34c['tableWidth']||_0xa981e4,_0x5d2473=_0x10c34c['columnWidths']||_0x5b0424,_0x14cf31=this['editor']['plugins']['get']('Users')['me'];for(const _0x5f3c1f of _0x412c43['getSuggestions']()){const _0xefbfcd=_0x5f3c1f['getContainedElement']();if('resizeTable'===_0x5f3c1f['subType']&&_0xefbfcd===_0x4b6ed7){_0x5f3c1f['author']!==_0x14cf31&&_0x5f3c1f['discard']();const _0x532df8=_0x5f3c1f['data']['commandParams'];_0xa981e4=_0x532df8[0x0]['tableWidth'],_0x5b0424=_0x532df8[0x0]['columnWidths'];break;}}_0x5e0fcd({'table':_0x4b6ed7,'tableWidth':_0x17fbee,'columnWidths':_0x5d2473}),_0x412c43['markBlockFormat'](_0x4b6ed7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xa981e4,'columnWidths':_0x5b0424}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1a97e6){if('formatBlock'!=_0x1a97e6['type']&&'formatInline'!=_0x1a97e6['type'])return;const {data:_0xbb6466}=_0x1a97e6;if(_0xbb6466&&'resizeTable'===_0xbb6466['formatGroupId']){const _0x3be5c8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3be5c8)};}}}class Ct extends _0x20810f{['afterInit'](){const _0x1e8043=this['editor'];_0x1e8043['plugins']['has']('Template')&&_0x1e8043['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x20810f{['afterInit'](){const _0x2a5a8b=this['editor'];if(!_0x2a5a8b['commands']['get']('insertTableOfContents'))return;_0x2a5a8b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xfe32ab=_0x2a5a8b['plugins']['get']('TrackChangesEditing'),_0x501baf=_0x2a5a8b['locale'];_0xfe32ab['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1982fa=>o(_0x501baf,'ELEMENT_TABLE_OF_CONTENTS',_0x1982fa));}}class Dt extends _0x20810f{['afterInit'](){const _0x18bfe3=this['editor'];if(!_0x18bfe3['plugins']['has']('Title'))return;const _0x1571a1=_0x18bfe3['plugins']['get']('TrackChangesEditing');_0x1571a1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x18bfe3['locale'],'ELEMENT_TITLE')),_0x18bfe3['model']['document']['registerPostFixer'](_0x142811=>{let _0x3dad1b=!0x1;const _0x13cf97=Array['from'](_0x18bfe3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x569b6a,data:_0x559f81}of _0x13cf97){const {group:_0x19a0fe}=_0x1571a1['_splitMarkerName'](_0x569b6a);if('suggestion'!==_0x19a0fe||!_0x559f81['newRange'])continue;const _0x5a257f=_0x559f81['newRange'],_0xb91ba=_0x5a257f['end']['nodeBefore'];if(!_0xb91ba||!_0xb91ba['is']('element','title-content'))continue;if(!_0x5a257f['start']['isTouching'](_0x5a257f['end']))continue;const _0x3ce93b=_0x18bfe3['model']['schema']['getNearestSelectionRange'](_0x5a257f['end'],'forward');if(_0x3ce93b&&_0x3ce93b['isCollapsed']){const _0x141cc1=_0x142811['createRange'](_0x5a257f['start'],_0x3ce93b['start']);_0x141cc1['isEqual'](_0x5a257f)||(_0x142811['updateMarker'](_0x569b6a,{'range':_0x141cc1}),_0x3dad1b=!0x0);}_0x3dad1b||(_0x142811['removeMarker'](_0x569b6a),_0x3dad1b=!0x0);}return _0x3dad1b;});}}class Nt extends _0x20810f{['afterInit'](){const _0x220881=this['editor'],_0x31f90f=_0x220881['plugins']['get']('TrackChangesEditing');_0x220881['plugins']['has']('UndoEditing')&&(_0x31f90f['enableCommand']('undo'),_0x31f90f['enableCommand']('redo'));}}class Mt extends _0x20810f{static get['requires'](){return[jt];}['afterInit'](){const _0x2fc6dc=this['editor'];if(!_0x2fc6dc['plugins']['has']('TableCaptionEditing'))return;_0x2fc6dc['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x20810f{['tableProperties'];['tableCellProperties'];constructor(_0x237537){super(_0x237537),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x1f74a7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x402780 of this['tableProperties'])_0x1f74a7['enableCommand'](_0x402780,(_0x3b06e2,_0x50acf8)=>{const _0x289437=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x402780,[_0x289437],this['tableProperties'],'tableProperties',_0x3b06e2,_0x50acf8);});_0x1f74a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1f74a7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f74a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x31b113,_0x1272bc)=>this['handleDiscardAction'](this['tableProperties'],_0x31b113,_0x1272bc)),_0x1f74a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xb54407 of this['tableCellProperties'])_0x1f74a7['enableCommand'](_0xb54407,(_0x250b1f,_0x151e3a)=>{const _0x100b1f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xb54407,_0x100b1f,this['tableCellProperties'],'tableCellProperties',_0x250b1f,_0x151e3a);});_0x1f74a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1f74a7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f74a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5923e6,_0xf2d92)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5923e6,_0xf2d92)),_0x1f74a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1f74a7['descriptionFactory']['registerDescriptionCallback'](_0x29f318=>this['handleSuggestionDescription'](_0x29f318));}['_handlePropertyChange'](_0x558ac5,_0x187327,_0x5b3c69,_0xef0e44,_0x2b38e6,_0x3c0abb){const _0x579919=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3c0abb['batch'],()=>{for(const _0x4dde93 of _0x187327){if(this['_getSuggestion'](_0x4dde93,_0xef0e44))_0x2b38e6(_0x3c0abb);else{const _0x25717d={};for(const _0x52b8f9 of _0x5b3c69){const _0x558586=_0x4dde93['getAttribute'](_0x52b8f9);void 0x0!==_0x558586&&(_0x25717d[_0x52b8f9]=_0x558586);}_0x2b38e6(_0x3c0abb),_0x579919['markBlockFormat'](_0x4dde93,{'commandParams':[_0x25717d]},[],_0xef0e44);}}});}['handleDiscardAction'](_0x214422,_0x213623,_0x4f8d96){const _0x2fefef=_0x213623[0x0]['start']['nodeAfter'],_0x39ad24=_0x4f8d96['commandParams'][0x0];this['editor']['model']['change'](_0x220d55=>{for(const _0x2d97ce of _0x214422)void 0x0!==_0x39ad24[_0x2d97ce]?_0x220d55['setAttribute'](_0x2d97ce,_0x39ad24[_0x2d97ce],_0x2fefef):_0x220d55['removeAttribute'](_0x2d97ce,_0x2fefef);});}['handleSuggestionDescription'](_0x1a9e5b){if(_0x1a9e5b['data'])switch(_0x1a9e5b['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'](_0x194a83,_0x380d68){const _0x1b5294=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2f5718 of _0x1b5294['getSuggestions']({'skipNotAttached':!0x0})){const _0x13c6f6=_0x2f5718['getContainedElement']();if(_0x2f5718['subType']===_0x380d68&&_0x13c6f6===_0x194a83)return _0x2f5718;}return null;}}const m='$elementName';class p extends _0x20810f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x583b5,_0x5bd93c,E,V,U,O,F,G,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,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x46c69e){function _0x1e8a1c(_0xf3e26b){return _0xf3e26b['map'](_0x336656=>String['fromCharCode'](_0x336656))['join']('');}super(_0x46c69e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xa16e1b,_0x8a73e6,_0x2f36e4,_0x225d00)=>{this['_model']['change'](()=>{for(const _0x524069 of[..._0x225d00,..._0x2f36e4])this['_model']['markers']['has'](_0x524069)&&_0x46c69e['editing']['reconvertMarker'](_0x524069);});}),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']=_0x46c69e['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(),_0x46c69e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x46c69e['config']['get']('trackChanges.trackFormatChanges'),_0x46c69e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x46c69e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x46c69e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1e8a1c([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1e8a1c([0x34,0x30,0x34,0x38,0x31,0x34,0x32,0x38]);}['init'](){const _0x2df5b3=this['editor'],_0xfeaaf5=(_0x10e9bc,_0xe7a743)=>{if('attribute'!=_0x10e9bc)return'ck-suggestion-marker-'+_0x10e9bc;const _0x590425=_0xe7a743['split']('|')[0x0];return this['_isBlockAttribute'](_0x590425)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2df5b3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2d47ae=>{const {id:_0x1d2cf7,type:_0x53a706,subType:_0x52a8ed}=this['_splitMarkerName'](_0x2d47ae['markerName']),_0x9dfc11=['ck-suggestion-marker',_0xfeaaf5(_0x53a706,_0x52a8ed)];let _0x1b8b70=0xbb8;return this['activeMarkers']['includes'](_0x2d47ae['markerName'])&&(_0x9dfc11['push']('ck-suggestion-marker--active'),_0x1b8b70=0xbc2),'deletion'==_0x53a706&&(_0x1b8b70+=0x5),{'classes':_0x9dfc11,'attributes':{'data-suggestion':_0x1d2cf7},'priority':_0x1b8b70};}}),_0x2df5b3['conversion']['for']('dataDowncast')['add'](_0x5b48fb=>{_0x5b48fb['on']('addMarker:suggestion',(_0x20db41,_0x200591,_0x134635)=>{if(!_0x134635['options']['showSuggestionHighlights'])return;const _0x231c2b=_0x200591['item'];if(!_0x231c2b)return;const _0x541fc2=_0x134635['mapper']['toViewElement'](_0x231c2b);_0x2df5b3['model']['schema']['isObject'](_0x231c2b)&&_0x541fc2&&!_0x541fc2['getCustomProperty']('widget')&&_0x541fc2['is']('containerElement')&&_0x2ad58f(_0x541fc2,_0x134635['writer']);},{'priority':'high'});}),_0x2df5b3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5b58bc,_0x35cc02)=>{if(!_0x35cc02['options']['showSuggestionHighlights'])return null;const {type:_0xd2887f,subType:_0x583aac}=this['_splitMarkerName'](_0x5b58bc['markerName']);return{'classes':['ck-suggestion-marker',_0xfeaaf5(_0xd2887f,_0x583aac)],'priority':0xbb8};}});const _0x1c3105=({showActiveMarkers:_0x5bf76e=!0x0,isAttributeSuggestion:_0xd79c1d=!0x1}={})=>(_0x274295,_0x2d90be,_0x23dffd)=>{if(!_0x2d90be['item'])return;const {id:_0x14ff87}=this['_splitMarkerName'](_0x2d90be['markerName']);if(_0xd79c1d){const _0x5f33a0=this['_suggestions']['get'](_0x14ff87),_0x420e85=this['_getAttributeKey'](_0x5f33a0);if(!this['_isBlockAttribute'](_0x420e85))return;}if(_0x2d90be['item']['is']('selection'))return void _0x23dffd['consumable']['consume'](_0x2d90be['item'],_0x274295['name']);const _0x12c14f=_0x23dffd['mapper']['toViewElement'](_0x2d90be['item']);if(_0x2d90be['item']['is']('element')&&_0x2df5b3['model']['schema']['isBlock'](_0x2d90be['item'])&&!_0x12c14f['getCustomProperty']('addHighlight')){_0x23dffd['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x12c14f),_0x23dffd['writer']['setAttribute']('data-suggestion',_0x14ff87,_0x12c14f),_0x23dffd['mapper']['bindElementToMarker'](_0x12c14f,_0x2d90be['markerName']),_0x5bf76e&&(this['activeMarkers']['includes'](_0x2d90be['markerName'])?_0x23dffd['writer']['addClass']('ck-suggestion-marker--active',_0x12c14f):_0x23dffd['writer']['removeClass']('ck-suggestion-marker--active',_0x12c14f));for(const _0x123303 of _0x2df5b3['model']['createRangeIn'](_0x2d90be['item'])['getItems']())_0x23dffd['consumable']['consume'](_0x123303,_0x274295['name']);_0x23dffd['consumable']['consume'](_0x2d90be['item'],_0x274295['name']);}};_0x2df5b3['conversion']['for']('dataDowncast')['add'](_0x526e88=>{_0x526e88['on']('addMarker:suggestion:formatBlock',(_0xcb7104,_0x4e3209,_0x1e7cbe)=>{_0x1e7cbe['options']['showSuggestionHighlights']&&_0x1c3105({'showActiveMarkers':!0x1})(_0xcb7104,_0x4e3209,_0x1e7cbe);},{'priority':'highest'});}),_0x2df5b3['conversion']['for']('dataDowncast')['add'](_0x5b700f=>{_0x5b700f['on']('addMarker:suggestion:attribute',(_0x4063e6,_0xf8e779,_0x491566)=>{_0x491566['options']['showSuggestionHighlights']&&_0x1c3105({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4063e6,_0xf8e779,_0x491566);},{'priority':'highest'});}),_0x2df5b3['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1f8e71,_0x263694)=>_0x263694['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1f8e71['substr'](0xb)}}),_0x2df5b3['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1514dc,{writer:_0x2d4419})=>{let _0x402d01='suggestion:'+_0x1514dc['getAttribute']('suggestion-type')+':'+_0x1514dc['getAttribute']('id');return _0x1514dc['getAttribute']('marker-count')&&(_0x402d01+=':'+_0x1514dc['getAttribute']('marker-count')),_0x2d4419['createElement']('$marker',{'data-name':_0x402d01});}}),_0x2df5b3['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2df5b3['conversion']['for']('editingDowncast')['add'](_0x594f1b=>{_0x594f1b['on']('addMarker:suggestion:formatBlock',_0x1c3105(),{'priority':'high'});}),_0x2df5b3['conversion']['for']('editingDowncast')['add'](_0x1f34bc=>{_0x1f34bc['on']('addMarker:suggestion:attribute',_0x1c3105({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2df5b3['conversion']['for']('editingDowncast')['add'](_0x592713=>{_0x592713['on']('removeMarker:suggestion:formatBlock',(_0x5e1c02,_0x506a21,_0x46fe35)=>{const _0xbc35a=_0x46fe35['mapper']['markerNameToElements'](_0x506a21['markerName']);if(_0xbc35a){for(const _0x312213 of _0xbc35a)_0x312213['getCustomProperty']('addHighlight')||(_0x46fe35['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x312213),_0x46fe35['writer']['removeAttribute']('data-suggestion',_0x312213),_0x46fe35['mapper']['unbindElementFromMarkerName'](_0x312213,_0x506a21['markerName']));}},{'priority':'high'});}),_0x2df5b3['conversion']['for']('editingDowncast')['add'](_0xd0cc56=>{_0xd0cc56['on']('removeMarker:suggestion:attribute',(_0x3b9653,_0x25c47a,_0x2762b8)=>{const _0x4101f8=_0x2762b8['mapper']['markerNameToElements'](_0x25c47a['markerName']);if(!_0x4101f8)return;const {id:_0x254d25}=this['_splitMarkerName'](_0x25c47a['markerName']),_0x53e00e=this['_suggestions']['get'](_0x254d25),_0x3d57ac=this['_getAttributeKey'](_0x53e00e);if(this['_isBlockAttribute'](_0x3d57ac)){for(const _0x39059a of _0x4101f8)_0x39059a['getCustomProperty']('addHighlight')||(_0x2762b8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x39059a),_0x2762b8['writer']['removeAttribute']('data-suggestion',_0x39059a),_0x2762b8['mapper']['unbindElementFromMarkerName'](_0x39059a,_0x25c47a['markerName']));}},{'priority':'high'});}),_0x2df5b3['model']['document']['registerPostFixer'](_0x14c796=>{let _0x1cec45=!0x1;const _0x836cd6=Array['from'](_0x2df5b3['model']['document']['differ']['getChangedMarkers']()),_0x1042cc=new Set();for(const {name:_0x33e3a6,data:_0x17623c}of _0x836cd6){const {group:_0x250860,type:_0x434b4b,subType:_0x293367,id:_0x15e53e}=this['_splitMarkerName'](_0x33e3a6);if('suggestion'!==_0x250860)continue;const _0x1e4631=this['_suggestions']['get'](_0x15e53e);if(null!=_0x17623c['newRange']){'formatInline'==_0x434b4b&&(_0x1cec45=_0x1cec45||Et(_0x17623c['newRange'],_0x33e3a6,_0x14c796,_0x2df5b3['model']['schema']));const _0x549c91='attribute'==_0x434b4b&&this['_isBlockAttribute'](_0x293367['split']('|')[0x0]);if(_0x17623c['newRange']['isCollapsed']||'$graveyard'==_0x17623c['newRange']['root']['rootName']||'formatBlock'==_0x434b4b&&!Ut(_0x17623c['newRange'])||_0x549c91&&!Ut(_0x17623c['newRange'])||'deletion'==_0x434b4b&&!(!Tt(_0x16fd8a=_0x17623c['newRange'])&&!function(_0x5fee7f){return _0x5fee7f['start']['parent']==_0x5fee7f['end']['nodeBefore']&&_0x5fee7f['start']['isAtEnd'];}(_0x16fd8a)))_0x14c796['removeMarker'](_0x33e3a6),_0x1cec45=!0x0;else{if(!_0x1e4631||!_0x1e4631['isInContent'])continue;_0x1042cc['add'](_0x1e4631);}}}var _0x16fd8a;return _0x1042cc['size']>0x0&&(_0x1cec45=!!this['_joinWithAdjacentSuggestions'](_0x1042cc)||_0x1cec45),_0x1cec45;}),_0x2df5b3['model']['document']['registerPostFixer'](_0x260453=>{let _0x2a2d09=!0x1;for(const _0x536423 of _0x2df5b3['model']['document']['differ']['getChanges']())if('insert'==_0x536423['type'])for(const _0x3df75d of this['_suggestions']['values']()){if(_0x3df75d['isMultiRange']||!_0x3df75d['isInContent'])continue;const _0x2b104b='formatBlock'==_0x3df75d['type'],_0x382a19=this['_getAttributeKey'](_0x3df75d),_0x16b51d=_0x382a19&&this['_isBlockAttribute'](_0x382a19);if(!_0x2b104b&&!_0x16b51d)continue;const _0x2007e9=_0x3df75d['getFirstRange']();if(_0x2007e9['start']['parent']!=_0x2007e9['end']['parent']&&!_0x2007e9['end']['isAtEnd']){const _0x1841be=_0x2df5b3['model']['createPositionAt'](_0x2007e9['start']['nodeAfter'],'end'),_0x326648=_0x2df5b3['model']['createRange'](_0x2007e9['start'],_0x1841be);_0x260453['updateMarker'](_0x3df75d['getFirstMarker'](),{'range':_0x326648}),_0x2a2d09=!0x0;}}return _0x2a2d09;}),_0x2df5b3['model']['document']['registerPostFixer'](_0x2c2edc=>this['_processAttributeChanges'](_0x2c2edc)),_0x2df5b3['model']['document']['registerPostFixer'](_0x6f10d6=>!_0x6f10d6['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x6f10d6)),_0x2df5b3['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2df5b3['model']['document']['on']('change:data',(_0xc3761d,_0x3e2ce4)=>{if(!_0x3e2ce4['isLocal']||_0x3e2ce4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x55a6bb=_0x2df5b3['model']['document']['differ']['getChanges']();if(0x0==_0x55a6bb['length'])return;const _0x52b4a3=[],_0x4e03d8=_0x55a6bb['filter'](_0x3c08c5=>'attribute'==_0x3c08c5['type']),_0x3edb9d=_0x55a6bb['filter'](_0x1d2df4=>'insert'==_0x1d2df4['type']&&'$text'!=_0x1d2df4['name']);for(const _0x2050fa of _0x4e03d8)this['_isRegisteredAttribute'](_0x2050fa['attributeKey'])&&_0x52b4a3['push']({'key':_0x2050fa['attributeKey'],'newValue':_0x2050fa['attributeNewValue'],'oldValue':_0x2050fa['attributeOldValue'],'range':Ot(_0x2050fa['range'],_0x2df5b3['model'])});for(const _0x4667eb of _0x3edb9d){if('rename'!=_0x4667eb['action']&&'refresh'!=_0x4667eb['action'])continue;const _0x1367d6=Gt(_0x4667eb['position']['nodeAfter'],_0x2df5b3['model']),_0x254b8f=_0x4667eb['before'];'rename'==_0x4667eb['action']&&_0x52b4a3['push']({'key':m,'newValue':_0x4667eb['name'],'oldValue':_0x254b8f['name'],'range':_0x1367d6});for(const [_0x470924,_0x1acbd0]of _0x254b8f['attributes']){if(!this['_isRegisteredAttribute'](_0x470924))continue;const _0x27c74a=_0x4667eb['attributes']['get'](_0x470924);_0x1acbd0!==_0x27c74a&&_0x52b4a3['push']({'key':_0x470924,'newValue':_0x27c74a,'oldValue':_0x1acbd0,'range':_0x1367d6});}for(const [_0x1c67b8,_0x1fb376]of _0x4667eb['attributes'])this['_isRegisteredAttribute'](_0x1c67b8)&&(_0x254b8f['attributes']['has'](_0x1c67b8)||_0x52b4a3['push']({'key':_0x1c67b8,'newValue':_0x1fb376,'oldValue':null,'range':_0x1367d6}));}0x0!=_0x52b4a3['length']&&_0x2df5b3['model']['enqueueChange'](_0x3e2ce4,_0x253e0e=>{const _0x4b635c=_0x4afc5b();for(const {range:_0x583982,key:_0x23cc37,oldValue:_0x21a7f6,newValue:_0x2cbaa3}of _0x52b4a3)this['markAttributeChange'](_0x583982,_0x23cc37,_0x21a7f6,_0x2cbaa3,{'groupId':_0x4b635c});this['_reduceExistingSuggestions'](_0x253e0e,_0x52b4a3);});},{'priority':'lowest'}),_0x2df5b3['model']['markers']['on']('update:suggestion',(_0x39d70a,_0x102cde,_0x343a77)=>{if(null==_0x343a77){const {id:_0x8fd17}=this['_splitMarkerName'](_0x102cde['name']),_0x59ef4d=this['_suggestions']['get'](_0x8fd17);_0x59ef4d&&_0x59ef4d['addMarkerName'](_0x102cde['name']);}}),_0x2df5b3['model']['document']['on']('change:data',()=>{const _0x55eb3a=Array['from'](_0x2df5b3['model']['document']['differ']['getChangedMarkers']())['filter'](_0x432ee1=>'suggestion'===this['_splitMarkerName'](_0x432ee1['name'])['group']);if(0x0===_0x55eb3a['length'])return;_0x55eb3a['sort']((_0x5aa64d,_0x43baee)=>{const _0x1fca2e=_0x5aa64d['data']['oldRange'],_0x455252=_0x43baee['data']['oldRange'];return null===_0x1fca2e&&null===_0x455252?0x0:null===_0x1fca2e&&null!==_0x455252?-0x1:null!==_0x1fca2e&&null===_0x455252?0x1:_0x1fca2e['start']['isBefore'](_0x455252['start'])?-0x1:0x1;});const _0x3ac10e=new Set(),_0x4f0164=new Set();for(const {name:_0x1f68d7,data:_0x54f756}of _0x55eb3a){const {id:_0x5cf3ec}=this['_splitMarkerName'](_0x1f68d7);if(null===_0x54f756['oldRange']){const _0x4a057d=this['_handleNewSuggestionMarker'](_0x1f68d7);_0x4f0164['add'](_0x4a057d);}else{const _0x26470a=this['_suggestions']['get'](_0x5cf3ec);null!==_0x54f756['newRange']||_0x26470a['isInContent']?(_0x3ac10e['add'](_0x26470a['head']),_0x4f0164['add'](_0x26470a)):this['_removeSuggestion'](_0x26470a);}}_0x4f0164['size']>0x0&&this['_refreshSuggestionsChain'](_0x4f0164);for(const _0x4bc70c of _0x3ac10e)this['fire']('suggestionChanged',_0x4bc70c);}),_0x2df5b3['model']['on']('applyOperation',(_0x36d90d,_0x4f49fa)=>{const _0x2b1ba9=_0x4f49fa[0x0];if(!this['_suggestions']['size'])return;if(!_0x2b1ba9['isDocumentOperation'])return;if(_0x2b1ba9['batch']['isUndo']||!_0x2b1ba9['batch']['isLocal'])return;let _0x2f3063,_0x2dfc90;switch(_0x2b1ba9['type']){case'insert':_0x2f3063=_0x2df5b3['model']['createPositionAt'](_0x2b1ba9['position']),_0x2dfc90=_0x2f3063['getShiftedBy'](_0x2b1ba9['howMany']);break;case'split':_0x2f3063=_0x2df5b3['model']['createPositionAt'](_0x2b1ba9['splitPosition']),_0x2dfc90=_0x2df5b3['model']['createPositionAt'](_0x2b1ba9['moveTargetPosition']);break;case'move':_0x2f3063=_0x2df5b3['model']['createPositionAt'](_0x2b1ba9['targetPosition']),_0x2dfc90=_0x2f3063['getShiftedBy'](_0x2b1ba9['howMany']);break;default:return;}const _0x2cd87c=_0x2df5b3['model']['createRange'](_0x2f3063,_0x2dfc90);_0x2df5b3['model']['change'](()=>{for(const {suggestion:_0x254c21,meta:_0x201df6}of this['_findSuggestions'](_0x2cd87c)){if(_0x254c21['isMultiRange'])continue;if('formatInline'==_0x254c21['type'])continue;const _0x58b35e=this['_getAttributeKey'](_0x254c21);if(_0x58b35e&&this['_isBlockAttribute'](_0x58b35e)&&'split'!=_0x2b1ba9['type'])continue;const _0x315d48=_0x254c21['data']&&_0x254c21['data']['multipleBlocks'];('formatBlock'!=_0x254c21['type']||'split'==_0x2b1ba9['type']&&!_0x315d48)&&(_0x201df6['containsRangeInObject']||'insertion'==_0x254c21['type']&&_0x201df6['isOwn']||_0x254c21['getFirstRange']()['containsRange'](_0x2cd87c)&&this['_breakSuggestionMarker'](_0x254c21,_0x2f3063,_0x2dfc90));}});},{'priority':'lowest'}),_0x2df5b3['model']['on']('deleteContent',(_0xa6494,_0x1ef5e8)=>{const _0x485467=_0x1ef5e8[0x0],_0x5e1103=_0x1ef5e8[0x1];if(_0x5e1103&&_0x5e1103['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x485467['isCollapsed'])return;const _0x2d79c1=_0x2df5b3['model']['schema'],{start:_0x453af3,end:_0x13fd54}=_0x485467['getFirstRange'](),_0x562ab6=_0x453af3['nodeAfter']&&_0x2d79c1['isLimit'](_0x453af3['nodeAfter'])?null:_0x2d79c1['getNearestSelectionRange'](_0x453af3,'forward'),_0x3ac6b5=_0x13fd54['nodeBefore']&&_0x2d79c1['isLimit'](_0x13fd54['nodeBefore'])?null:_0x2d79c1['getNearestSelectionRange'](_0x13fd54,'backward'),_0xd9f2c0=_0x2df5b3['model']['createRange'](_0x562ab6?_0x562ab6['start']:_0x453af3,_0x3ac6b5?_0x3ac6b5['end']:_0x13fd54);_0x2df5b3['model']['change'](_0x4dccf7=>{this['markDeletion'](_0xd9f2c0);const _0x35ad60=_0x2df5b3['model']['schema']['getNearestSelectionRange'](_0xd9f2c0['start']);_0x485467['is']('documentSelection')?_0x4dccf7['setSelection'](_0x35ad60):_0x485467['setTo'](_0x35ad60);}),_0xa6494['stop']();},{'priority':_0x515e10['normal']+0xa}),_0x2df5b3['model']['on']('insertContent',(_0x2804a2,_0x5b71eb)=>{const _0x4c71ec=_0x5b71eb[_0x5b71eb['length']-0x1];_0x4c71ec&&_0x4c71ec['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2df5b3['model']['change'](()=>{let _0x5b4fbb=_0x2df5b3['model']['insertContent'](_0x5b71eb[0x0],_0x5b71eb[0x1],_0x5b71eb[0x2],{'forceDefaultExecution':!0x0});if(!_0x5b4fbb)return;_0x2804a2['return']=_0x5b4fbb['clone']();const _0x4e86b6=_0x5b4fbb['end']['nodeBefore'],_0x4403f3=_0x2df5b3['model']['schema'];_0x4e86b6&&_0x4403f3['isBlock'](_0x4e86b6)&&!_0x4403f3['isObject'](_0x4e86b6)&&(_0x5b4fbb=_0x2df5b3['model']['createRange'](_0x5b4fbb['start'],_0x2df5b3['model']['createPositionAt'](_0x4e86b6,'end'))),this['markInsertion'](_0x5b4fbb);}),_0x2804a2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x33b4a2=new $(_0x2df5b3,this['_suggestions']);_0x2df5b3['commands']['add']('acceptSuggestion',_0x33b4a2),this['enableCommand']('acceptSuggestion');const _0xf64d99=new B(_0x2df5b3,this['_suggestions']);_0x2df5b3['commands']['add']('discardSuggestion',_0xf64d99),this['enableCommand']('discardSuggestion'),_0x2df5b3['commands']['add']('acceptAllSuggestions',new x(_0x2df5b3,_0x33b4a2,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2df5b3['commands']['add']('discardAllSuggestions',new x(_0x2df5b3,_0xf64d99,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2df5b3['commands']['add']('acceptSelectedSuggestions',new R(_0x2df5b3,_0x33b4a2,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2df5b3['commands']['add']('discardSelectedSuggestions',new R(_0x2df5b3,_0xf64d99,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5d415a=_0x2df5b3['plugins']['get']('CommentsRepository');this['listenTo'](_0x5d415a,'addComment',(_0x9e63ae,{threadId:_0x556694})=>{const _0x206842=this['_suggestions']['get'](_0x556694);_0x206842&&_0x206842['commentThread']&&0x1===_0x206842['commentThread']['length']&&this['_updateSuggestionData'](_0x556694,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5d415a,'removeComment',(_0x18c010,{threadId:_0x2b0a7c})=>{const _0x4f75e3=this['_suggestions']['get'](_0x2b0a7c);_0x4f75e3&&_0x4f75e3['commentThread']&&!_0x4f75e3['commentThread']['length']&&this['_updateSuggestionData'](_0x2b0a7c,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4c0034){if(this['_adapter'])throw new _0x5e6563('track-changes-adapter-already-set',this);this['_adapter']=_0x4c0034;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1e9d27=!0x1,toJSON:_0x3bdee2=!0x1}={}){const _0x4e6c9c=[];for(const _0x20551d of this['_suggestions']['values']())_0x1e9d27&&!_0x20551d['isInContent']||_0x4e6c9c['push'](_0x20551d);return _0x3bdee2?_0x4e6c9c['map'](_0xc8d769=>_0xc8d769['toJSON']()):_0x4e6c9c;}['getSuggestion'](_0x20e407){const _0x51827f=this['_suggestions']['get'](_0x20e407);if(!_0x51827f)throw new _0x5e6563('track-changes-suggestion-not-found',this);return _0x51827f;}['hasSuggestion'](_0xbe9379){return this['_suggestions']['has'](_0xbe9379);}['addSuggestionData'](_0x2a2142){const {authorId:_0x3819fc,id:_0x102534,attributes:_0x51a7f7}=_0x2a2142,[_0x2e2587,_0x4010ea]=_0x2a2142['type']['split'](':'),_0x3e9d43=this['_suggestions']['get'](_0x102534)||this['_createSuggestion'](_0x2e2587,_0x4010ea,_0x102534,_0x3819fc,_0x51a7f7);if(this['_addThreadToSuggestion'](_0x3e9d43),this['_checkSuggestionCorrectness'](_0x3e9d43,_0x2e2587,_0x4010ea||null,_0x3819fc),_0x3e9d43['createdAt']=_0x2a2142['createdAt'],_0x3e9d43['_isDataLoaded']=!0x0,_0x51a7f7&&_0x51a7f7['@external']){const _0x5ccfea=_0x51a7f7['@external'],_0x26d7ce=this['_getExternalAuthor'](_0x5ccfea['authorName']);_0x3e9d43['authoredAt']=_0x5ccfea['createdAt'],_0x3e9d43['author']=_0x26d7ce,_0x3e9d43['isExternal']=!0x0;}else _0x3e9d43['authoredAt']=_0x2a2142['createdAt'];switch(_0x2a2142['data']&&(_0x3e9d43['data']=_0x2a2142['data']),_0x2a2142['attributes']&&(_0x3e9d43['attributes']=_0x2a2142['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3e9d43['_saved']=!0x0),this['_suggestionState']['get'](_0x3e9d43)){case'notReady':this['_suggestionState']['set'](_0x3e9d43,'dataReady');break;case'markerReady':_0x3e9d43['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3e9d43])),this['_refreshSuggestionsChain'](new Set([_0x3e9d43])),this['_suggestionState']['set'](_0x3e9d43,'ready'),this['fire']('suggestionLoaded',_0x3e9d43)):this['_suggestionState']['set'](_0x3e9d43,'removed');}return _0x3e9d43;}['acceptSuggestion'](_0x40deac){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1703d8 of _0x40deac['getAllAdjacentSuggestions']())_0x1703d8['accept']();});});}['discardSuggestion'](_0xe8cc85){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3c99eb of _0xe8cc85['getAllAdjacentSuggestions']())_0x3c99eb['discard']();});});}['enableCommand'](_0x1c6d11,_0x36a42a){const _0x218883=this['editor']['commands']['get'](_0x1c6d11);if(!_0x218883)throw new _0x5e6563('track-changes-command-not-found',this,{'commandName':_0x1c6d11});if(this['_enabledCommands']['has'](_0x218883))throw new _0x5e6563('track-changes-enable-command-twice',this,{'commandName':_0x1c6d11});this['_enabledCommands']['add'](_0x218883),_0x36a42a&&_0x218883['on']('execute',(_0x46bc30,_0x114b10)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x114b10['length']>0x0&&_0x114b10[_0x114b10['length']-0x1]&&_0x114b10[_0x114b10['length']-0x1]['forceDefaultExecution']?_0x114b10['pop']():(_0x46bc30['return']=_0x36a42a((..._0x4c6f26)=>_0x218883['execute'](..._0x4c6f26,{'forceDefaultExecution':!0x0}),..._0x114b10),_0x46bc30['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x436bbb){let _0x37915e,_0x467da1;const _0x40a64a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x37915e=_0x436bbb();}catch(_0x354b2f){_0x467da1=_0x354b2f;}return _0x40a64a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x467da1&&_0x5e6563['rethrowUnexpectedError'](_0x467da1,this),_0x37915e;}['markInsertion'](_0xebdcb3,_0x5176da=null,_0x5767ba={}){if(_0xebdcb3['isCollapsed'])return null;const _0x23228d=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5c03ab,meta:_0x5ec298}of this['_findSuggestions'](_0xebdcb3,'insertion'))if(_0x5ec298['isOwn']){if(!_0x5ec298['isNextTo']){if(_0x5ec298['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x5c03ab,_0x5767ba))continue;return _0x5c03ab;}if(Lt(_0x5c03ab,_0x5767ba))return _0x5c03ab;this['_breakSuggestionMarker'](_0x5c03ab,_0xebdcb3['start'],_0xebdcb3['end']);break;}if(_0x5176da==_0x5c03ab['subType']&&Lt(_0x5c03ab,_0x5767ba)){const _0x590b48=_0x5c03ab['getFirstRange']();return _0x590b48['start']['isEqual'](_0xebdcb3['end'])?this['_setSuggestionRange'](_0x5c03ab,this['_model']['createRange'](_0xebdcb3['start'],_0x590b48['end'])):this['_setSuggestionRange'](_0x5c03ab,this['_model']['createRange'](_0x590b48['start'],_0xebdcb3['end'])),_0x5c03ab;}}const _0x5b2473=_0x4afc5b(),_0x5073c8=_0x23228d['id'],_0x356fb1=_0x5176da?'insertion:'+_0x5176da:'insertion',_0x71c113=this['_setSuggestionData']({'id':_0x5b2473,'type':_0x356fb1,'createdAt':new Date(),'authorId':_0x5073c8,'attributes':_0x5767ba});return this['_addSuggestionMarker'](_0x356fb1,_0x5b2473,_0x5073c8,_0xebdcb3),_0x71c113;}['markMultiRangeInsertion'](_0xce3a2c,_0x339873='multi',_0x795182={}){const _0x264306=this['editor']['plugins']['get']('Users')['me'],_0x23e742=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x339873,'join');for(const _0x1069f2 of this['getSuggestions']())if(_0x1069f2['author']['id']==_0x264306['id']&&'insertion'==_0x1069f2['type']&&_0x1069f2['subType']==_0x339873&&Lt(_0x1069f2,_0x795182)&&(_0x23e742(_0x1069f2['getRanges'](),_0xce3a2c)||_0x23e742(_0xce3a2c,_0x1069f2['getRanges']()))){for(const _0x753831 of _0xce3a2c)_0x1069f2['addRange'](_0x753831);return _0x1069f2;}for(const {suggestion:_0x2e7515,meta:_0x500551}of this['_findSuggestions'](_0xce3a2c,'insertion')){if(!_0x500551['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x500551['containsRangeInObject'])continue;if(!Lt(_0x2e7515,_0x795182))continue;let _0x5f4690=!0x0;for(const _0x47f066 of _0x2e7515['getRanges']())for(const _0x539f6f of _0xce3a2c)if(!_0x47f066['containsRange'](_0x539f6f)){_0x5f4690=!0x1;break;}if(_0x5f4690)return _0x2e7515;}const _0x340793=_0x4afc5b(),_0x15aa49=_0x264306['id'],_0x2384d3='insertion:'+_0x339873,_0x36d50d=this['_setSuggestionData']({'id':_0x340793,'type':_0x2384d3,'createdAt':new Date(),'authorId':_0x15aa49,'attributes':_0x795182});for(const _0x184bd8 of _0xce3a2c)this['_addSuggestionMarker'](_0x2384d3,_0x340793,_0x15aa49,_0x184bd8,u['getMultiRangeId']());return _0x36d50d;}['markInlineFormat'](_0x10d449,_0x58c0c5,_0x1eb782=null,_0x9ac051={}){if(_0x1eb782=_0x1eb782||Vt(_0x58c0c5),_0x10d449['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x51023a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1eb782,'accept');return this['forceDefaultExecution'](()=>_0x51023a([_0x10d449],_0x58c0c5,_0x9ac051)),null;}const _0x49064a=this['editor']['plugins']['get']('Users')['me'],_0x23b721=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x191816,meta:_0x5867ed}of this['_findSuggestions'](_0x10d449,'insertion'))_0x5867ed['isOwn']&&!_0x5867ed['isInsideObject']&&_0x23b721['push'](..._0x191816['getRanges']());}const _0x47569f=function(_0xc57059,_0x19c621){const _0x27e27e=[];for(const _0x5b1c20 of _0x19c621){const _0x138ee4=_0xc57059['getIntersection'](_0x5b1c20);_0x138ee4&&_0x27e27e['push'](_0x138ee4);}return _0x27e27e;}(_0x10d449,_0x23b721),_0x5dd359=function(_0x548f90,_0x35d112){const _0x4e21f1=[_0x548f90];for(const _0x2ab7dd of _0x35d112){let _0x245a8f=0x0;for(;_0x245a8f<_0x4e21f1['length'];){const _0x5eae8d=_0x4e21f1[_0x245a8f]['getDifference'](_0x2ab7dd);_0x4e21f1['splice'](_0x245a8f,0x1,..._0x5eae8d),_0x245a8f+=_0x5eae8d['length'];}}return _0x4e21f1;}(_0x10d449,_0x23b721);_0x47569f['length']&&this['_model']['change'](()=>{for(const _0x266184 of _0x47569f){const _0xd2ec7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1eb782,'accept');this['forceDefaultExecution'](()=>_0xd2ec7([_0x266184],_0x58c0c5,_0x9ac051));}});for(const _0x5b420b of _0x5dd359){let _0x1730d6=null,_0x5eeb6a=_0x5b420b['start'],_0x297ce6=_0x5b420b['end'];for(const {suggestion:_0x5f1088,meta:_0x38bca7}of this['_findSuggestions'](_0x5b420b,'formatInline')){if(!_0x38bca7['isOwn'])continue;if(_0x5f1088['subType']!=_0x1eb782)continue;if(!Lt(_0x5f1088,_0x9ac051))continue;const _0x22a803=_0x5f1088['getFirstRange']();if(_0x22a803['containsRange'](_0x5b420b,!0x0))return null;_0x5eeb6a=_0x5eeb6a['isBefore'](_0x22a803['start'])?_0x5eeb6a:_0x22a803['start'],_0x297ce6=_0x297ce6['isAfter'](_0x22a803['end'])?_0x297ce6:_0x22a803['end'],_0x1730d6?_0x22a803['start']['isBefore'](_0x1730d6['getFirstRange']()['start'])?(_0x1730d6['removeMarkers'](),_0x1730d6=_0x5f1088):_0x5f1088['removeMarkers']():_0x1730d6=_0x5f1088;}const _0x51fa2e=this['_model']['createRange'](_0x5eeb6a,_0x297ce6);if(_0x1730d6)this['_setSuggestionRange'](_0x1730d6,_0x51fa2e);else{const _0x3d6ba8=_0x4afc5b(),_0x5b1727=_0x49064a['id'];this['_setSuggestionData']({'id':_0x3d6ba8,'type':'formatInline:'+_0x1eb782,'data':_0x58c0c5,'createdAt':new Date(),'authorId':_0x5b1727,'attributes':_0x9ac051}),this['_addSuggestionMarker']('formatInline:'+_0x1eb782,_0x3d6ba8,_0x5b1727,_0x51fa2e);}}return null;}['markBlockFormat'](_0x5057ce,_0x9c9948,_0x3759e7=[],_0x224d3e=null,_0x262110={}){_0x9c9948['formatGroupId']||(_0x9c9948['formatGroupId']=_0x9c9948['commandName']),_0x9c9948['multipleBlocks']=_0x5057ce['is']('range'),_0x224d3e=_0x224d3e||Vt(_0x9c9948);const _0x3f0954=_0x3759e7['map'](_0x1c4661=>Gt(_0x1c4661,this['_model'])),_0x3c337e=_0x5057ce['is']('range')?_0x5057ce:Gt(_0x5057ce,this['_model']);if('never'===this['_trackFormatChanges']){const _0x233a81=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x224d3e,'accept');return this['forceDefaultExecution'](()=>_0x233a81([_0x3c337e],_0x9c9948,_0x262110)),null;}_0x3f0954['push'](_0x3c337e);let _0x279a9f=!0x0;for(const _0x26d250 of _0x3f0954)if(!this['_rangeIsInLocalUserInsertion'](_0x26d250)){_0x279a9f=!0x1;break;}if(_0x279a9f&&'always'!==this['_trackFormatChanges']){const _0x21c304=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x224d3e,'accept');return this['forceDefaultExecution'](()=>_0x21c304([_0x3c337e],_0x9c9948,_0x262110)),null;}let _0x56d390=null,_0x468b17=_0x3c337e['start'],_0x4fb0c4=_0x3c337e['end'];for(const {suggestion:_0x4349cb,meta:_0x267273}of this['_findSuggestions'](_0x3c337e,'formatBlock')){if(!_0x267273['isOwn'])continue;if(_0x267273['isNextTo']||_0x267273['containsRangeInObject']||_0x267273['isInsideObject'])continue;if(_0x4349cb['data']['formatGroupId']!=_0x9c9948['formatGroupId'])continue;if(!Lt(_0x4349cb,_0x262110))continue;const _0xb9a03e=_0x4349cb['getFirstRange']();if(_0x4349cb['subType']==_0x224d3e){if(_0xb9a03e['containsRange'](_0x3c337e,!0x0))return null;_0x468b17=_0x468b17['isBefore'](_0xb9a03e['start'])?_0x468b17:_0xb9a03e['start'],_0x4fb0c4=_0x4fb0c4['isAfter'](_0xb9a03e['end'])?_0x4fb0c4:_0xb9a03e['end'],_0x56d390?_0xb9a03e['start']['isBefore'](_0x56d390['getFirstRange']()['start'])?(_0x56d390['removeMarkers'](),_0x56d390=_0x4349cb):_0x4349cb['removeMarkers']():_0x56d390=_0x4349cb;}else{const _0x5063c5=_0x3c337e['getIntersection'](_0xb9a03e);this['_cutOutSuggestionMarker'](_0x4349cb,_0x5063c5);}}const _0x23b41a=this['editor']['plugins']['get']('Users')['me'],_0x327221=_0x4afc5b(),_0x2835f2=_0x23b41a['id'];if(_0x56d390)return this['_setSuggestionRange'](_0x56d390,this['_model']['createRange'](_0x468b17,_0x4fb0c4)),_0x56d390;{const _0x1ff626=this['_setSuggestionData']({'id':_0x327221,'type':'formatBlock:'+_0x224d3e,'data':_0x9c9948,'createdAt':new Date(),'authorId':_0x2835f2,'attributes':_0x262110});return this['_addSuggestionMarker']('formatBlock:'+_0x224d3e,_0x327221,_0x2835f2,this['_model']['createRange'](_0x468b17,_0x4fb0c4)),_0x1ff626;}}['markMultiRangeBlockFormat'](_0x19cee1,_0x13cb47,_0x47c863=[],_0x49ede9=null,_0x576b9c={}){_0x13cb47['formatGroupId']||(_0x13cb47['formatGroupId']=_0x13cb47['commandName']);const _0x178d7e=_0x19cee1[0x0];_0x13cb47['multipleBlocks']=_0x178d7e['is']('range'),_0x49ede9=_0x49ede9||Vt(_0x13cb47);const _0x27de3c=_0x47c863['map'](_0x11dd17=>Gt(_0x11dd17,this['_model'])),_0xe8c12f=_0x178d7e['is']('range')?_0x19cee1:_0x19cee1['map'](_0x57973f=>Gt(_0x57973f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x330402=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49ede9,'accept');return this['forceDefaultExecution'](()=>_0x330402(_0xe8c12f,_0x13cb47,_0x576b9c)),null;}_0x27de3c['push'](..._0xe8c12f);let _0x4d870a=!0x0;for(const _0x15aed1 of _0x27de3c)if(!this['_rangeIsInLocalUserInsertion'](_0x15aed1)){_0x4d870a=!0x1;break;}if(_0x4d870a&&'always'!==this['_trackFormatChanges']){const _0x3f206b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49ede9,'accept');return this['forceDefaultExecution'](()=>_0x3f206b(_0xe8c12f,_0x13cb47,_0x576b9c)),null;}const _0x843182=this['editor']['plugins']['get']('Users')['me'];for(const _0x35bb78 of this['getSuggestions']()){if(_0x35bb78['author']['id']!=_0x843182['id'])continue;if('formatBlock'!=_0x35bb78['type']||_0x35bb78['data']['formatGroupId']!=_0x13cb47['formatGroupId'])continue;if(!Lt(_0x35bb78,_0x576b9c))continue;const _0x32c3d7=_0x35bb78['subType']==_0x49ede9;for(let _0x37732f=0x0;_0x37732f<_0xe8c12f['length'];_0x37732f++){const _0xdef22c=_0xe8c12f[_0x37732f];for(const _0xa5f44a of _0x35bb78['getMarkers']()){const _0x4faa7e=_0xa5f44a['getRange']();if(_0xdef22c['isEqual'](_0x4faa7e)){_0x32c3d7?(_0xe8c12f['splice'](_0x37732f,0x1),_0x37732f--):_0x35bb78['removeMarker'](_0xa5f44a['name']);break;}}}}if(0x0==_0xe8c12f['length'])return null;const _0x5930f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49ede9,'join');for(const _0x2cc85e of this['getSuggestions']())if(_0x2cc85e['author']['id']==_0x843182['id']&&'formatBlock'==_0x2cc85e['type']&&_0x2cc85e['data']['formatGroupId']==_0x13cb47['formatGroupId']&&_0x2cc85e['subType']==_0x49ede9&&Lt(_0x2cc85e,_0x576b9c)&&(_0x5930f7(_0x2cc85e['getRanges'](),_0xe8c12f)||_0x5930f7(_0xe8c12f,_0x2cc85e['getRanges']()))){for(const _0x5e92e6 of _0xe8c12f)_0x2cc85e['addRange'](_0x5e92e6);return _0x2cc85e;}const _0x17730f=_0x4afc5b(),_0x3b5b7b=_0x843182['id'],_0x5e9f06='formatBlock:'+_0x49ede9,_0x188dab=this['_setSuggestionData']({'id':_0x17730f,'type':_0x5e9f06,'data':_0x13cb47,'createdAt':new Date(),'authorId':_0x3b5b7b,'attributes':_0x576b9c});for(const _0x3c3115 of _0xe8c12f)this['_addSuggestionMarker'](_0x5e9f06,_0x17730f,_0x3b5b7b,_0x3c3115,u['getMultiRangeId']());return _0x188dab;}['markDeletion'](_0x105c32,_0xeee692=null,_0x3046aa={}){if(_0x105c32['isCollapsed'])return null;const _0x1d265f=this['editor']['plugins']['get']('Users')['me'],_0x702316=new _0x3f67f3(_0x105c32['start'],_0x105c32['end']);for(const {suggestion:_0x5bb45f,meta:_0x1c10f3}of this['_findSuggestions'](_0x702316,'insertion'))if(_0x1c10f3['isOwn']&&!_0x1c10f3['isNextTo']){if(_0x5bb45f['isMultiRange']){const _0x30c39e=_0x5bb45f['getRanges']()['filter'](_0x5dc883=>'$graveyard'!=_0x5dc883['root']['rootName']);_0x30c39e['every'](_0x3b93e5=>_0x702316['containsRange'](_0x3b93e5,!0x0))&&_0x5bb45f['discard']();if(_0x30c39e['some'](_0x4db4fc=>_0x4db4fc['containsRange'](_0x702316,!0x0))){const _0x4a6504=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xeee692,'accept');return this['forceDefaultExecution'](()=>_0x4a6504([_0x702316],null,_0x3046aa)),null;}}else{const _0x49be99=_0x702316['getIntersection'](_0x5bb45f['getFirstRange']());null!==_0x49be99&&_0x5bb45f['_onDiscard']([_0x49be99],null,_0x3046aa);}}if(_0x702316['detach'](),_0x702316['isCollapsed']||'$graveyard'==_0x702316['root']['rootName'])return null;let _0x3f6f56=null,_0x52b749=_0x702316['start'],_0x2e6e87=_0x702316['end'];const _0xc58c8e=this['_findSuggestions'](_0x702316,'deletion');for(const {suggestion:_0x4c2ce0,meta:_0x3541dc}of _0xc58c8e){const _0x3e281f=this['_model']['createRange'](_0x52b749,_0x2e6e87);if(_0x3541dc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3541dc['containsRangeInObject']&&!_0x3541dc['isInsideObject'])){if(_0x4c2ce0['isMultiRange']){if(!Lt(_0x4c2ce0,_0x3046aa))continue;let _0x3479e1=!0x0;for(const _0x47ee40 of _0x4c2ce0['getRanges']()){if(_0x47ee40['containsRange'](_0x3e281f,!0x0))return _0x4c2ce0;_0x3e281f['containsRange'](_0x47ee40)||(_0x3479e1=!0x1);}_0x3479e1&&_0x4c2ce0['discard']();}else{const _0x5b7252=_0x4c2ce0['getFirstRange']();if(_0x5b7252['containsRange'](_0x3e281f,!0x0))return _0x4c2ce0;if(!Lt(_0x4c2ce0,_0x3046aa)){_0x3e281f['containsRange'](_0x5b7252)?_0x4c2ce0['removeMarkers']():_0x5b7252['containsPosition'](_0x52b749)?_0x52b749=_0x5b7252['end']:_0x5b7252['containsPosition'](_0x2e6e87)&&(_0x2e6e87=_0x5b7252['start']);continue;}_0x52b749=_0x52b749['isBefore'](_0x5b7252['start'])?_0x52b749:_0x5b7252['start'],_0x2e6e87=_0x2e6e87['isAfter'](_0x5b7252['end'])?_0x2e6e87:_0x5b7252['end'],_0x3046aa=Object['assign']({},_0x4c2ce0['attributes']),_0x3f6f56?_0x5b7252['start']['isBefore'](_0x3f6f56['getFirstRange']()['start'])?(_0x3f6f56['removeMarkers'](),_0x3f6f56=_0x4c2ce0):_0x4c2ce0['removeMarkers']():_0x3f6f56=_0x4c2ce0;}}}if(_0x3f6f56)return this['_setSuggestionRange'](_0x3f6f56,this['_model']['createRange'](_0x52b749,_0x2e6e87)),_0x3f6f56;{const _0x1288da=_0x4afc5b(),_0x2b7be8=this['_model']['createRange'](_0x52b749,_0x2e6e87),_0xbc8c5=_0x1d265f['id'],_0x1a1db9=_0xeee692?'deletion:'+_0xeee692:'deletion',_0x4d123d=this['_setSuggestionData']({'id':_0x1288da,'type':_0x1a1db9,'createdAt':new Date(),'authorId':_0xbc8c5,'attributes':_0x3046aa});return this['_addSuggestionMarker'](_0x1a1db9,_0x1288da,_0xbc8c5,_0x2b7be8),_0x4d123d;}}['markMultiRangeDeletion'](_0x4ae471,_0x107674='multi',_0x5692d1={}){const _0x39a257=this['editor']['plugins']['get']('Users')['me'],_0x550894=_0x4ae471['map'](_0x32b06d=>new _0x3f67f3(_0x32b06d['start'],_0x32b06d['end'])),_0x4482e5=new Set();for(const {suggestion:_0x3bf0df,meta:_0x10d355}of this['_findSuggestions'](_0x550894,'insertion'))_0x10d355['isOwn']&&!_0x10d355['isNextTo']&&_0x4482e5['add'](_0x3bf0df);for(const _0xf70a75 of _0x4482e5)if(_0xf70a75['isMultiRange']){const _0x70d4ad=_0xf70a75['getRanges']();(!_0xf70a75['attributes']||!_0xf70a75['attributes']['skipNestingCheck'])&&(_0x70d4ad['every'](_0x8c45c5=>_0x550894['some'](_0x45307c=>_0x45307c['containsRange'](_0x8c45c5,!0x0)))&&_0xf70a75['discard']());if(_0x550894['every'](_0x216be3=>_0x70d4ad['some'](_0x16d926=>_0x16d926['containsRange'](_0x216be3,!0x0)))){const _0xf42a5f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x107674,'accept');return this['forceDefaultExecution'](()=>_0xf42a5f(_0x4ae471,null,_0x5692d1)),null;}}else{const _0x4cb2c0=_0xf70a75['getFirstRange']();_0x550894['some'](_0x93761e=>_0x93761e['containsRange'](_0x4cb2c0,!0x0))&&_0xf70a75['discard']();if(_0x550894['every'](_0x4014d9=>_0x4cb2c0['containsRange'](_0x4014d9,!0x0))){const _0x5f2e94=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x107674,'accept');return this['forceDefaultExecution'](()=>_0x5f2e94(_0x550894,null,_0x5692d1)),null;}}const _0x257609=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x107674,'join');let _0x449fe3=null;for(const _0x50bd8c of this['getSuggestions']())if(_0x50bd8c['author']['id']==_0x39a257['id']&&_0x50bd8c['isInContent']&&'deletion'==_0x50bd8c['type']&&_0x50bd8c['subType']==_0x107674&&Lt(_0x50bd8c,_0x5692d1)&&(_0x257609(_0x50bd8c['getRanges'](),_0x550894)||_0x257609(_0x550894,_0x50bd8c['getRanges']()))){if(_0x449fe3){if(_0x50bd8c['commentThread']&&_0x50bd8c['commentThread']['length'])continue;for(const _0x5ba183 of _0x50bd8c['getRanges']())_0x449fe3['isIntersectingWithRange'](_0x5ba183)||_0x449fe3['addRange'](_0x5ba183);_0x50bd8c['removeMarkers']();}else{_0x449fe3=_0x50bd8c;for(const _0x3c51fb of _0x550894)_0x50bd8c['isIntersectingWithRange'](_0x3c51fb)||_0x50bd8c['addRange'](_0x3c51fb);}}if(_0x449fe3)return _0x449fe3;_0x4482e5['clear']();for(const {suggestion:_0x352651,meta:_0x44517d}of this['_findSuggestions'](_0x550894,'deletion'))_0x44517d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x44517d['containsRangeInObject']&&!_0x44517d['isInsideObject'])&&Lt(_0x352651,_0x5692d1)&&_0x4482e5['add'](_0x352651);for(const _0x570db7 of _0x4482e5){const _0x3cd4b2=_0x570db7['getRanges']();if(!_0x5692d1||!_0x5692d1['skipNestingCheck']){if(_0x550894['every'](_0x1e7a98=>_0x3cd4b2['some'](_0x1c7655=>_0x1c7655['containsRange'](_0x1e7a98,!0x0))))return _0x570db7;}(!_0x570db7['attributes']||!_0x570db7['attributes']['skipNestingCheck'])&&(_0x3cd4b2['every'](_0x5bf61e=>_0x550894['some'](_0x3adde7=>_0x3adde7['containsRange'](_0x5bf61e,!0x0)))&&_0x570db7['discard']());}const _0x6418bc=_0x4afc5b(),_0xe0e932=_0x39a257['id'],_0x36ae49='deletion:'+_0x107674,_0x2761e1=this['_setSuggestionData']({'id':_0x6418bc,'type':_0x36ae49,'createdAt':new Date(),'authorId':_0xe0e932,'attributes':_0x5692d1});for(const _0x421fdb of _0x550894)_0x421fdb['detach'](),_0x421fdb['isCollapsed']||'$graveyard'==_0x421fdb['root']['rootName']||this['_addSuggestionMarker'](_0x36ae49,_0x6418bc,_0xe0e932,_0x421fdb,u['getMultiRangeId']());return _0x2761e1;}['markAttributeChange'](_0x1a709e,_0x4f2ba0,_0xcfbf76,_0xfbfdb9,_0x54dd27){if(_0x1a709e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2aae65=this['editor']['plugins']['get']('Users')['me']['id'],_0x271f18=Array['from'](this['_suggestions']['values']())['filter'](_0x36c5ae=>'attribute'==_0x36c5ae['type']&&_0x36c5ae['data']['key']==_0x4f2ba0&&_0x36c5ae['isIntersectingWithRange'](_0x1a709e));if('default'===this['_trackFormatChanges']){const _0x46e694=this['_findSuggestions'](_0x1a709e,'insertion')['filter'](({meta:_0xc9047d})=>_0xc9047d['isOwn']&&!_0xc9047d['isInsideObject']&&!_0xc9047d['isNextTo'])['map'](({suggestion:_0xd2653})=>_0xd2653);_0x271f18['unshift'](..._0x46e694);}const _0x44aeec=new Map([[_0x1a709e,_0xcfbf76]]);for(const _0x4e9e7d of _0x271f18){const _0x1bccaf='attribute'==_0x4e9e7d['type']?_0x4e9e7d['data']['oldValue']:void 0x0,_0x17465a=_0x4e9e7d['getFirstRange'](),_0x5a46f8=Array['from'](_0x44aeec['keys']())['find'](_0x5ed6ce=>_0x5ed6ce['isIntersecting'](_0x17465a));if(!_0x5a46f8)continue;const _0x42fdc5=_0x5a46f8['getDifference'](_0x17465a);this['_isBlockAttribute'](_0x4f2ba0)&&'insertion'==_0x4e9e7d['type']&&0x0!=_0x42fdc5['length']||(_0x44aeec['delete'](_0x5a46f8),_0x42fdc5['forEach'](_0x269a54=>{_0x44aeec['set'](_0x269a54,_0xcfbf76);}),'insertion'!=_0x4e9e7d['type']&&_0x1bccaf!=_0xfbfdb9&&_0x44aeec['set'](_0x5a46f8['getIntersection'](_0x17465a),_0x1bccaf));}const _0x1090c6=[];for(const [_0x19f418,_0x17de82]of _0x44aeec){const _0x4c4575=_0x4afc5b(),_0x5b4557={'key':_0x4f2ba0,'oldValue':_0x17de82,'newValue':_0xfbfdb9};_0x4f2ba0['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':_0x4f2ba0});const _0x5c209d=('attribute:'+(_0x4f2ba0+'|'+Vt({'newValue':_0xfbfdb9})))['substring'](0x0,0x3c),_0xba1d75=this['_setSuggestionData']({'id':_0x4c4575,'type':_0x5c209d,'data':_0x5b4557,'createdAt':new Date(),'authorId':_0x2aae65,'attributes':_0x54dd27});_0x1090c6['push'](_0xba1d75),this['_addSuggestionMarker'](_0x5c209d,_0x4c4575,_0x2aae65,_0x19f418);}return _0x1090c6;}['enableDefaultAttributesIntegration'](_0x2c3286){this['enableCommand'](_0x2c3286,(_0x19820c,..._0x194507)=>{this['_recordAttributeChanges'](()=>{_0x19820c(..._0x194507);});});}['registerBlockAttribute'](_0x447dce){this['_blockAttributeKeys']['add'](_0x447dce);}['registerInlineAttribute'](_0x7cdd5a){this['_inlineAttributeKeys']['add'](_0x7cdd5a);}['_getAttributeKey'](_0x204d29){return'attribute'==_0x204d29['type']?_0x204d29['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4c14ae,_0x39988d){const _0x201a4b=_0x4c14ae['getFirstMarker']();this['_model']['change'](_0x3d971b=>{_0x3d971b['updateMarker'](_0x201a4b,{'range':_0x39988d});});}['_addThreadToSuggestion'](_0x18bc99){const _0x586bb7=_0x18bc99['id'],_0x291883=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x586bb7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x291883,'threadId':_0x586bb7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x32e56f=this['_commentsRepository']['getCommentThread'](_0x586bb7);_0x32e56f['unbind']('isRemovable'),_0x32e56f['isRemovable']=!0x1,_0x18bc99['commentThread']=_0x32e56f;}['_checkSuggestionCorrectness'](_0x37c79e,_0x17d561,_0xb0bcfc,_0x4043f5){if(_0x37c79e['type']!=_0x17d561||_0x37c79e['subType']!=_0xb0bcfc||_0x37c79e['creator']['id']!=_0x4043f5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5e6563('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4877cf,_0x32f3f2){const _0xece3fc=_0x4877cf['getFirstRange']();if(_0x32f3f2['isEqual'](_0xece3fc))_0x4877cf['removeMarkers']();else{if(_0xece3fc['containsRange'](_0x32f3f2)){const _0x28522c=this['_model']['createPositionAt'](_0x32f3f2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4877cf,this['_model']['createRange'](_0xece3fc['start'],_0x28522c));const _0x4ff00a=_0x4afc5b(),_0x3df6bb=_0x4877cf['creator']['id'],_0x16465c=_0x4877cf['type']+':'+_0x4877cf['subType'];this['_setSuggestionData']({'id':_0x4ff00a,'type':_0x16465c,'createdAt':new Date(),'authorId':_0x3df6bb,'data':_0x4877cf['data'],'attributes':_0x4877cf['attributes']});const _0x1cb6a4=this['_model']['createPositionAt'](_0x32f3f2['end']['parent'],'after'),_0x39dda5=this['_model']['createRange'](_0x1cb6a4,_0xece3fc['end']);this['_addSuggestionMarker'](_0x16465c,_0x4ff00a,_0x3df6bb,_0x39dda5);}else{if(_0xece3fc['containsPosition'](_0x32f3f2['start'])){const _0x1c8784=this['_model']['createPositionAt'](_0x32f3f2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4877cf,this['_model']['createRange'](_0xece3fc['start'],_0x1c8784));}else{const _0x519d0f=this['_model']['createPositionAt'](_0x32f3f2['end']['parent'],'after');this['_setSuggestionRange'](_0x4877cf,this['_model']['createRange'](_0x519d0f,_0xece3fc['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x20c2a2){for(const {suggestion:_0x33b519,meta:_0x1025b5}of this['_findSuggestions'](_0x20c2a2,'insertion')){if(!_0x1025b5['isOwn'])continue;const _0xcdf549=_0x33b519['getRanges']();for(const _0x2c5991 of _0xcdf549)if(!_0x20c2a2['getDifference'](_0x2c5991)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3c68bd){const _0xee5408=this['editor']['plugins']['get']('Users')['getUser'](_0x3c68bd);if(!_0xee5408)throw new _0x5e6563('track-changes-user-not-found',this);return _0xee5408;}['_getExternalAuthor'](_0xc240f7){const _0x4d8c5d=this['editor']['plugins']['get']('Users'),_0x53a585=_0x474bc1('external:'+_0xc240f7),_0x4003f0=_0x4d8c5d['getUser'](_0x53a585);return _0x4003f0||_0x4d8c5d['addUser']({'id':_0x53a585,'name':_0xc240f7});}['_createSuggestion'](_0x21bb64,_0x4b6d37,_0x2576bc,_0x40b561,_0x32e4b0){const _0x1e79ba=this['_getAuthorFromId'](_0x40b561),_0x336fe8=this['_suggestionFactory']['buildSuggestion'](_0x21bb64,_0x4b6d37,_0x2576bc,_0x1e79ba,_0x32e4b0,_0x4bd33c=>{this['_updateSuggestionData'](_0x2576bc,{'attributes':_0x4bd33c});const _0x1e7a63=this['getSuggestion'](_0x2576bc);this['_joinWithAdjacentSuggestions'](new Set([_0x1e7a63])),this['_refreshSuggestionsChain'](new Set([_0x1e7a63]));});return this['listenTo'](_0x336fe8,'accept',()=>{this['_updateSuggestionData'](_0x2576bc,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x336fe8,'discard',()=>{this['_updateSuggestionData'](_0x2576bc,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2576bc,_0x336fe8),this['_suggestionState']['set'](_0x336fe8,'notReady'),_0x336fe8;}['_splitMarkerName'](_0x139f2f){const _0x454871=_0x139f2f['split'](':');return{'group':_0x454871[0x0],'type':_0x454871[0x1],'subType':_0x454871['length']>=0x5?_0x454871[0x2]:null,'id':_0x454871['length']<0x5?_0x454871[0x2]:_0x454871[0x3],'authorId':_0x454871['length']<0x5?_0x454871[0x3]:_0x454871[0x4],'markerCount':0x6==_0x454871['length']?_0x454871[0x5]:null};}['_breakSuggestionMarker'](_0x494c55,_0x2e30e6,_0x3034fc){const _0x2cf32d=_0x494c55['getFirstRange'](),_0x26e38f=_0x2cf32d['start'],_0xb7023d=_0x2cf32d['end'];this['_setSuggestionRange'](_0x494c55,this['_model']['createRange'](_0x26e38f,_0x2e30e6));const _0x488137=_0x4afc5b(),_0x3f7768=_0x494c55['creator']['id'],_0x51f9c6=_0x494c55['type']+(_0x494c55['subType']?':'+_0x494c55['subType']:'');this['_setSuggestionData']({'id':_0x488137,'type':_0x51f9c6,'createdAt':new Date(),'authorId':_0x3f7768,'originalSuggestionId':_0x494c55['id'],'attributes':_0x494c55['attributes'],'data':_0x494c55['data']});const _0x33c498=this['_getAttributeKey'](_0x494c55);('formatBlock'==_0x494c55['type']||_0x33c498&&this['_isBlockAttribute'](_0x33c498))&&(_0x3034fc=this['_model']['createPositionBefore'](_0x3034fc['parent'])),this['_addSuggestionMarker'](_0x51f9c6,_0x488137,_0x3f7768,this['_model']['createRange'](_0x3034fc,_0xb7023d));}['_findSuggestions'](_0x167c88,_0x5b44a0=null){const _0x2f7eb1=[],_0x2171b4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x167c88)||(_0x167c88=[_0x167c88]);for(const _0x575f70 of this['getSuggestions']()){if(!_0x575f70['isInContent'])continue;if(_0x5b44a0&&_0x575f70['type']!=_0x5b44a0)continue;let _0x259ea5=!0x1;for(const _0x4fadd of _0x575f70['getRanges']()){for(const _0x17d46d of _0x167c88){const _0x49dc06=_0x17d46d['start']['isEqual'](_0x4fadd['end'])||_0x17d46d['end']['isEqual'](_0x4fadd['start']);if(_0x49dc06||_0x17d46d['getIntersection'](_0x4fadd)){const _0x51c50a=_0x17d46d['containsRange'](_0x4fadd)&&Rt(this['_model']['schema'],_0x4fadd['start'],_0x17d46d),_0x485cf7=_0x4fadd['containsRange'](_0x17d46d)&&Rt(this['_model']['schema'],_0x17d46d['start'],_0x4fadd);_0x2f7eb1['push']({'suggestion':_0x575f70,'meta':{'isOwn':_0x2171b4==_0x575f70['author'],'isNextTo':_0x49dc06,'isInsideObject':_0x51c50a,'containsRangeInObject':_0x485cf7}}),_0x259ea5=!0x0;break;}}if(_0x259ea5)break;}}return _0x2f7eb1;}['_addSuggestionMarker'](_0x51f286,_0x7aaabe,_0x36f52a,_0x1b0378,_0x5640f7){this['_model']['change'](_0x2b3046=>{let _0x550c0a='suggestion:'+_0x51f286+':'+_0x7aaabe+':'+_0x36f52a;_0x5640f7&&(_0x550c0a=_0x550c0a+':'+_0x5640f7),_0x2b3046['addMarker'](_0x550c0a,{'range':_0x1b0378,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5b5e7e){const _0x301c0e=_0x5b5e7e['previous'],_0x2336bf=_0x5b5e7e['next'];_0x5b5e7e['previous']=null,_0x5b5e7e['next']=null,null!=_0x301c0e&&_0x301c0e['next']==_0x5b5e7e&&(_0x301c0e['next']=_0x2336bf),null!=_0x2336bf&&_0x2336bf['previous']==_0x5b5e7e&&(_0x2336bf['previous']=_0x301c0e),'ready'==this['_suggestionState']['get'](_0x5b5e7e)&&(this['_suggestionState']['set'](_0x5b5e7e,'removed'),this['fire']('suggestionUnloaded',_0x5b5e7e,_0x301c0e,_0x2336bf));}['_setSuggestionData'](_0x1d002a){const _0x343ab2=_0x1d002a['id'],_0x3cbe3e=this['addSuggestionData'](_0x1d002a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3d57a5=this['editor']['plugins']['get']('PendingActions'),_0x5d2376=_0x3cbe3e['hasComments'],_0x2bb6a2=_0x3cbe3e['subType']?_0x3cbe3e['type']+':'+_0x3cbe3e['subType']:_0x3cbe3e['type'],_0x16a970=this['editor']['locale'],_0x51cf83=_0x3d57a5['add'](o(_0x16a970,'PENDING_ACTION_SUGGESTION')),_0x4cd6de={'id':_0x343ab2,'type':_0x2bb6a2,'hasComments':_0x5d2376,'data':_0x1d002a['data']||null,'originalSuggestionId':_0x1d002a['originalSuggestionId']||null,'attributes':_0x3cbe3e['attributes']};this['_adapter']['addSuggestion'](_0x4cd6de)['then'](_0x11b08f=>{_0x3cbe3e['_saved']=!0x0,_0x3d57a5['remove'](_0x51cf83),_0x11b08f&&_0x11b08f['createdAt']&&(this['_suggestions']['get'](_0x343ab2)['createdAt']=_0x11b08f['createdAt']);})['catch'](_0x2f34be=>{throw _0x3db40f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3cbe3e['discard']();}),_0x3cbe3e['stopListening'](),this['_suggestions']['delete'](_0x3cbe3e['id']),this['_suggestionState']['delete'](_0x3cbe3e),_0x2f34be;});}return _0x3cbe3e;}['_isBlockAttribute'](_0x543ae4){return this['_blockAttributeKeys']['has'](_0x543ae4);}['_updateSuggestionData'](_0x42bdf2,_0x4faf7c){const _0xa19103=this['editor']['plugins']['get']('PendingActions'),_0x4c801b=this['getSuggestion'](_0x42bdf2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4c801b['_saved']){const _0x4b5f63=_0xa19103['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x42bdf2,_0x4faf7c)['then'](()=>{_0xa19103['remove'](_0x4b5f63);});}else _0x4c801b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x42bdf2,_0x4faf7c);});}}['_getSuggestionData'](_0x53e0ff){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5e6563('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x53e0ff);}['_handleNewSuggestionMarker'](_0x36589e){const {id:_0xe116ac,type:_0x42f4a8,subType:_0x47ddd6,authorId:_0x7f8dd9}=this['_splitMarkerName'](_0x36589e),_0x4f944d=this['_suggestions']['get'](_0xe116ac)||this['_createSuggestion'](_0x42f4a8,_0x47ddd6,_0xe116ac,_0x7f8dd9,{});switch(this['_checkSuggestionCorrectness'](_0x4f944d,_0x42f4a8,_0x47ddd6,_0x7f8dd9),this['_suggestionState']['get'](_0x4f944d)){case'notReady':this['_getSuggestionData'](_0xe116ac)['then'](_0x55bfea=>{let _0x42ced8=Promise['resolve']();_0x55bfea['hasComments']&&(_0x42ced8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xe116ac})),_0x42ced8['then'](()=>{this['addSuggestionData'](_0x55bfea)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4f944d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xe116ac,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4f944d,'ready'),this['fire']('suggestionLoaded',_0x4f944d);break;case'ready':this['fire']('suggestionChanged',_0x4f944d);}return _0x4f944d['addMarkerName'](_0x36589e),_0x4f944d;}['_refreshSuggestionsChain'](_0x553af0){const _0x1e0d2e=Array['from'](_0x553af0),_0x281637=_0x1e0d2e['filter'](_0x21b35b=>'attribute'==_0x21b35b['type']);this['_refreshAttributeSuggestionsChain'](_0x281637);const _0x1436af=_0x1e0d2e['filter'](_0x366674=>!_0x366674['isMultiRange']&&'attribute'!=_0x366674['type']),_0x24b033=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d2fe8=>!_0x3d2fe8['isMultiRange']&&'attribute'!=_0x3d2fe8['type']),_0x26c28b=_0x24b033['filter'](_0x4b89be=>!_0x553af0['has'](_0x4b89be)),_0x6fe07c=new Map(_0x24b033['map'](_0x3bf459=>[_0x3bf459,this['_suggestionFactory']['getSuggestionCallback'](_0x3bf459['type'],_0x3bf459['subType'],'chain')])),_0x2249ba=new Map(_0x24b033['map'](_0x134622=>[_0x134622,_0x134622['getFirstRange']()])),_0x4a07dd=new Set(),_0x587732=new Set();for(let _0x4c70b6=0x0;_0x4c70b6<_0x1436af['length'];_0x4c70b6++)_0x43b045(_0x1436af[_0x4c70b6],_0x1436af,_0x4c70b6+0x1);for(let _0x224fb5=0x0;_0x224fb5<_0x1436af['length'];_0x224fb5++)_0x43b045(_0x1436af[_0x224fb5],_0x26c28b,0x0);const _0x13f410=new Set();for(let _0xbc4a94=0x0;_0xbc4a94<_0x1436af['length'];_0xbc4a94++){const _0x5b9188=_0x1436af[_0xbc4a94];!_0x587732['has'](_0x5b9188)&&_0x5b9188['previous']&&(_0x13f410['add'](_0x5b9188['previous']),_0x5b9188['previous']['next']===_0x5b9188&&(_0x5b9188['previous']['next']=null),_0x5b9188['previous']=null),!_0x4a07dd['has'](_0x5b9188)&&_0x5b9188['next']&&(_0x13f410['add'](_0x5b9188['next']),_0x5b9188['next']['previous']===_0x5b9188&&(_0x5b9188['next']['previous']=null),_0x5b9188['next']=null);}function _0x43b045(_0x585d82,_0x38db85,_0x2bfa52){for(let _0xf39ffe=_0x2bfa52;_0xf39ffe<_0x38db85['length'];_0xf39ffe++){const _0x5a0b77=_0x320cdd(_0x585d82,_0x38db85[_0xf39ffe]);_0x5a0b77&&(_0x5a0b77[0x0]['next']=_0x5a0b77[0x1],_0x5a0b77[0x1]['previous']=_0x5a0b77[0x0],_0x4a07dd['add'](_0x5a0b77[0x0]),_0x587732['add'](_0x5a0b77[0x1]));}}function _0x320cdd(_0x18c6ba,_0x3fb7ad){if(_0x18c6ba['author']['id']!==_0x3fb7ad['author']['id'])return null;const _0x564698=_0x6fe07c['get'](_0x18c6ba)(_0x18c6ba,_0x3fb7ad,_0x2249ba['get'](_0x18c6ba),_0x2249ba['get'](_0x3fb7ad));if(!_0x564698)return null;return _0x6fe07c['get'](_0x3fb7ad)(_0x18c6ba,_0x3fb7ad,_0x2249ba['get'](_0x18c6ba),_0x2249ba['get'](_0x3fb7ad))?_0x564698[0x1]['commentThread']&&_0x564698[0x1]['commentThread']['length']?null:_0x564698:null;}_0x13f410['size']&&this['_refreshSuggestionsChain'](_0x13f410);}['_refreshAttributeSuggestionsChain'](_0x14a9c4){if(0x0==_0x14a9c4['length'])return;const _0x4f91ff=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x212738=>'attribute'==_0x212738['type']&&_0x212738['_isDataLoaded']),_0x34eda4=[],_0x306afc=new Map();for(const _0x343be6 of _0x4f91ff){const _0x51c257=_0x474bc1(_0x343be6['attributes']);_0x306afc['has'](_0x51c257)||(_0x306afc['set'](_0x51c257,_0x34eda4['length']),_0x34eda4['push']([]));const _0x4c1863=_0x306afc['get'](_0x51c257);_0x34eda4[_0x4c1863]['push'](_0x343be6);}!(function(){_0x34eda4['sort']((_0x9f03dc,_0x45b5e3)=>{const _0x4f53cc=_0x9f03dc[0x0]['createdAt'],_0x5d6aec=_0x45b5e3[0x0]['createdAt'];return _0x4f53cc==_0x5d6aec?_0x9f03dc[0x0]['attributes']['groupId']<_0x45b5e3[0x0]['attributes']['groupId']?-0x1:0x1:_0x4f53cc<_0x5d6aec?-0x1:0x1;});for(const _0x25e716 of _0x34eda4)_0x25e716['sort']((_0x237607,_0x1a1808)=>_0x237607['id']<_0x1a1808['id']?-0x1:0x1);}());for(let _0x5f644b=0x0;_0x5f644b<_0x34eda4['length'];_0x5f644b++){if(0x0==_0x34eda4[_0x5f644b]['length'])continue;const _0x5d43dc=[];for(let _0x36d5fe=_0x5f644b+0x1;_0x36d5fe<_0x34eda4['length'];_0x36d5fe++)0x0!=_0x34eda4[_0x36d5fe]['length']&&_0x15aabc(_0x34eda4[_0x5f644b],_0x34eda4[_0x36d5fe])&&_0x5d43dc['push'](_0x36d5fe);for(const _0x287223 of _0x5d43dc)_0x34eda4[_0x5f644b]=_0x34eda4[_0x5f644b]['concat'](_0x34eda4[_0x287223]),_0x34eda4[_0x287223]=[];}for(const _0x4f77a1 of _0x34eda4)for(let _0x328070=0x0;_0x328070<_0x4f77a1['length'];_0x328070++)_0x4f77a1[_0x328070]['next']=_0x4f77a1[_0x328070+0x1]||null;for(const _0x22aeb3 of _0x34eda4)for(let _0x2fa9b1=0x0;_0x2fa9b1<_0x22aeb3['length'];_0x2fa9b1++)_0x22aeb3[_0x2fa9b1]['previous']=_0x22aeb3[_0x2fa9b1-0x1]||null;function _0x15aabc(_0x1c668b,_0x211e1a){if(_0x1c668b[0x0]['attributes']['groupId']!==_0x211e1a[0x0]['attributes']['groupId']&&_0x1c668b[0x0]['author']!==_0x211e1a[0x0]['author'])return!0x1;if(!function(_0x532bdb,_0x494aed){if(!_0x532bdb['hasComments']&&!_0x494aed['hasComments'])return!0x0;if(_0x532bdb['hasComments']&&_0x494aed['hasComments'])return!0x1;if(_0x532bdb['hasComments']&&_0x494aed['createdAt']<_0x532bdb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x494aed['hasComments']&&_0x532bdb['createdAt']<_0x494aed['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1c668b[0x0],_0x211e1a[0x0]))return!0x1;const _0x29b16f=Bt(_0x1c668b[0x0]['attributes'],'groupId'),_0x14a9e9=Bt(_0x211e1a[0x0]['attributes'],'groupId');if(!_0x4fa487(_0x29b16f,_0x14a9e9))return!0x1;return!!_0x1c668b['every'](_0x4440cd=>_0x211e1a['some'](_0x10fbf1=>_0x4440cd['getFirstRange']()['isEqual'](_0x10fbf1['getFirstRange']())))&&_0x211e1a['every'](_0x187559=>_0x1c668b['some'](_0x2a7cfe=>_0x187559['getFirstRange']()['isEqual'](_0x2a7cfe['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x46c29c){const _0x2d5b18=Array['from'](_0x46c29c),_0x21177e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x407eba=_0x21177e['filter'](_0x4ac59c=>!_0x46c29c['has'](_0x4ac59c)),_0x58956a=new Map(_0x2d5b18['map'](_0x178a36=>[_0x178a36,this['_suggestionFactory']['getSuggestionCallback'](_0x178a36['type'],_0x178a36['subType'],'join')])),_0x9b35ca=new Map(_0x21177e['map'](_0x431da4=>[_0x431da4,_0x431da4['getRanges']()]));for(let _0x44a77e=0x0;_0x44a77e<_0x2d5b18['length'];_0x44a77e++){if(_0x1c60a5(this,_0x2d5b18[_0x44a77e],_0x2d5b18,_0x44a77e+0x1))return!0x0;}for(let _0x1bd99d=0x0;_0x1bd99d<_0x2d5b18['length'];_0x1bd99d++){if(_0x1c60a5(this,_0x2d5b18[_0x1bd99d],_0x407eba,0x0))return!0x0;}return!0x1;function _0x1c60a5(_0x1fad7e,_0x57b758,_0x448d9d,_0x3beab4){for(let _0x8473d7=_0x3beab4;_0x8473d7<_0x448d9d['length'];_0x8473d7++){const _0x746e01=_0x448d9d[_0x8473d7];if(_0x746e01['type']!==_0x57b758['type']||_0x746e01['author']['id']!==_0x57b758['author']['id']||_0x746e01['subType']!==_0x57b758['subType'])continue;if(!Pt(_0x57b758,_0x746e01,['groupId']))continue;if('attribute'==_0x57b758['type']&&_0x57b758['data']['oldValue']!=_0x746e01['data']['oldValue'])continue;if('attribute'==_0x57b758['type']&&_0x1fad7e['_isBlockAttribute'](_0x57b758['data']['key']))continue;if('formatBlock'==_0x57b758['type']){const _0x5039c9=_0x1fad7e['editor']['model'],_0x53cbd6=_0x57b758['getContainedElement']();if(_0x53cbd6&&(_0x5039c9['schema']['isObject'](_0x53cbd6)||_0x5039c9['schema']['isLimit'](_0x53cbd6)))continue;}const _0x182932=_0x58956a['get'](_0x57b758),_0x42e382=_0x9b35ca['get'](_0x57b758),_0x5cdc87=_0x9b35ca['get'](_0x746e01),_0x95dce5=_0x57b758['commentThread']&&_0x57b758['commentThread']['length'],_0xc95f9a=_0x746e01['commentThread']&&_0x746e01['commentThread']['length'];if(!_0x95dce5&&_0x182932(_0x5cdc87,_0x42e382))return _0x1fad7e['_joinSuggestions'](_0x746e01,_0x57b758),_0x9b35ca['delete'](_0x57b758),!0x0;if(!_0xc95f9a&&_0x182932(_0x42e382,_0x5cdc87))return _0x1fad7e['_joinSuggestions'](_0x57b758,_0x746e01),_0x9b35ca['delete'](_0x746e01),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4235b0,_0xc6e7b6){if(_0x4235b0['isMultiRange']){for(const _0x541f84 of _0xc6e7b6['getRanges']())_0x4235b0['addRange'](_0x541f84);}else{const _0x446347=_0xc6e7b6['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4235b0,this['_model']['createRange'](_0x4235b0['getFirstRange']()['start'],_0x446347));}_0xc6e7b6['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5eb895,_0x4c269c){const _0xf87664=_0x5eb895['startsWith']('format')||_0x5eb895['startsWith']('attribute')?'FORMATTING':_0x5eb895['toUpperCase']();return o(this['editor']['locale'],_0x4c269c+'_'+_0xf87664+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5181a8=this['editor'];if(!_0x5181a8['ui'])return;const {ariaLiveAnnouncer:_0x214c41}=_0x5181a8['ui'];_0x23f8bb(this['_model'],({left:_0x430ed4,entered:_0x2c8165})=>{for(const _0x370056 of _0x430ed4){const {group:_0x15db74,type:_0xf60251}=this['_splitMarkerName'](_0x370056['name']);if('suggestion'===_0x15db74){_0x214c41['announce'](this['_getMarkerAnnouncementText'](_0xf60251,'LEAVE'));break;}}for(const _0x31ff5b of _0x2c8165){const {group:_0x13fceb,type:_0x5d173c}=this['_splitMarkerName'](_0x31ff5b['name']);if('suggestion'===_0x13fceb){_0x214c41['announce'](this['_getMarkerAnnouncementText'](_0x5d173c,'ENTER'));break;}}});}['_processAttributeChanges'](_0x43979f){if(this['_recordAttributeSuggestions'])return!0x1;const _0xf40d67=this['editor'],_0x4cc925=_0xf40d67['model']['document']['differ']['getChanges']();if(0x0==_0x4cc925['length'])return!0x1;const _0x3db53e=[],_0x289f43=_0x4cc925['filter'](_0x1430a8=>'attribute'==_0x1430a8['type']),_0x416d8d=_0x4cc925['filter'](_0x311853=>'insert'==_0x311853['type']&&'$text'!=_0x311853['name']),_0x336c6f=_0x4cc925['filter'](_0x1cfffb=>'remove'==_0x1cfffb['type']&&'$text'!=_0x1cfffb['name']);for(const _0x21cfa0 of _0x289f43)_0x3db53e['push']({'key':_0x21cfa0['attributeKey'],'newValue':_0x21cfa0['attributeNewValue'],'oldValue':_0x21cfa0['attributeOldValue'],'range':Ot(_0x21cfa0['range'],_0xf40d67['model'])});for(const _0x303af0 of _0x416d8d){const _0x3b4389=_0x336c6f['find'](_0x2fe980=>_0x2fe980['position']['isEqual'](_0x303af0['position']));_0x3b4389&&_0x3db53e['push']({'key':m,'newValue':_0x303af0['name'],'oldValue':_0x3b4389['name'],'range':_0xf40d67['model']['createRangeOn'](_0x303af0['position']['nodeAfter'])});}return 0x0!=_0x3db53e['length']&&this['_reduceExistingSuggestions'](_0x43979f,_0x3db53e);}['_processAttributeSuggestions'](_0x23c984){let _0x10a03c=!0x1;const _0x352180=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x56a203=>_0x56a203['data']['newRange']&&_0x56a203['name']['startsWith']('suggestion:attribute:'));for(const _0x51d329 of _0x352180){const {subType:_0x1be038,id:_0x51feb4}=this['_splitMarkerName'](_0x51d329['name']),_0x98420c=_0x1be038['split']('|')[0x0];for(const _0x18f073 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x18f073['id']!=_0x51feb4&&'attribute'==_0x18f073['type']&&_0x18f073['data']&&_0x18f073['data']['key']==_0x98420c&&_0x18f073['getFirstRange']()['isIntersecting'](_0x51d329['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x18f073,_0x51d329['data']['newRange'],_0x23c984),_0x10a03c=!0x0);}return _0x10a03c;}['_recordAttributeChanges'](_0x27f385){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x27f385();}['_isRegisteredAttribute'](_0x438d5d){const _0x354939=this['_isBlockAttribute'](_0x438d5d),_0x3ccf55=this['_inlineAttributeKeys']['has'](_0x438d5d);return _0x354939||_0x3ccf55;}['_reduceExistingSuggestions'](_0x3b2fe1,_0x63124a){if(0x0==_0x63124a['length'])return!0x1;let _0x3d6306=!0x1;for(const _0x462915 of _0x63124a){const _0x3c5064=this['_findSuggestions'](_0x462915['range'],'attribute')['filter'](_0x212904=>!_0x212904['meta']['isNextTo'])['map'](_0x5ea43c=>_0x5ea43c['suggestion']),_0x498b3f=_0x474bc1({'newValue':_0x462915['newValue']});_0x3c5064['filter'](_0x4e7214=>{const [_0x14c224,_0x19aa0a]=_0x4e7214['subType']['split']('|');return _0x14c224==_0x462915['key']&&_0x19aa0a!=_0x498b3f;})['forEach'](_0x3c16f7=>{this['_reduceSuggestionAttributeRange'](_0x3c16f7,_0x462915['range'],_0x3b2fe1),_0x3d6306=!0x0;});}return _0x3d6306;}['_reduceSuggestionAttributeRange'](_0x36d4fa,_0x3c4e97,_0x31b547){const _0x232f94=_0x36d4fa['getFirstRange']()['getDifference'](_0x3c4e97);0x0!==_0x232f94['length']?0x1!==_0x232f94['length']?this['_breakSuggestionMarker'](_0x36d4fa,_0x3c4e97['start'],_0x3c4e97['end']):this['_setSuggestionRange'](_0x36d4fa,_0x232f94[0x0]):_0x31b547['removeMarker'](_0x36d4fa['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x37ad5a){this['_editor']=_0x37ad5a,this['_model']=_0x37ad5a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x11eb2c,_0x5817d3,_0x167a92,_0x45e737,_0x1a7e53,_0x295321){return new u(this['_model'],{'type':_0x11eb2c,'subType':_0x5817d3,'id':_0x167a92,'author':_0x45e737,'creator':_0x45e737,'attributes':_0x1a7e53,'onAttributesChange':_0x295321,'onAccept':(..._0x43fc1f)=>this['getSuggestionCallback'](_0x11eb2c,_0x5817d3,'accept')(..._0x43fc1f),'onDiscard':(..._0xc46efd)=>this['getSuggestionCallback'](_0x11eb2c,_0x5817d3,'discard')(..._0xc46efd)});}['registerCustomCallback'](_0x9bdbb9,_0x2e57d5,_0x1f2172,_0x44daa5){const _0x1f5a06=_0x9bdbb9+':'+_0x2e57d5+':'+_0x1f2172;this['_customCallbacks']['set'](_0x1f5a06,_0x44daa5);}['getSuggestionCallback'](_0xc831d8,_0x2a0001,_0x314384){const _0x1f19ac=_0xc831d8+':'+_0x2a0001+':'+_0x314384;return this['_customCallbacks']['get'](_0x1f19ac)||this['_defaultCallbacks']['get'](_0xc831d8+':'+_0x314384);}['_registerDefaultCallbacks'](){const _0x26f5a1=()=>!0x1,_0x564001=_0x189033=>{_0x189033['sort']((_0x1c3d3b,_0x27b9e8)=>_0x1c3d3b['start']['isBefore'](_0x27b9e8['start'])?0x1:-0x1),this['_model']['change'](_0x55fb07=>{for(const _0x16aa73 of _0x189033){let _0xf8292;_0xf8292=_0x16aa73['end']['isAtEnd']&&_0x16aa73['end']['parent']==_0x16aa73['start']['nodeAfter']?_0x55fb07['createSelection'](_0x16aa73['start']['nodeAfter'],'on'):_0x55fb07['createSelection'](_0x16aa73),this['_model']['deleteContent'](_0xf8292,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2c5553=(_0x3e7b30,_0x160cd3)=>{_0x160cd3&&this['_model']['change'](_0x1a7a5b=>{const {commandName:_0x304e00,commandParams:_0x400c20=[]}=_0x160cd3,_0x4d4438=_0x3e7b30['map'](_0x26cb21=>(Tt(_0x26cb21)&&(_0x26cb21=this['_model']['createRange'](_0x26cb21['end'])),_0x26cb21))['filter'](_0x3beee1=>'$graveyard'!==_0x3beee1['root']['rootName']);if(_0x4d4438['length']<0x1)return;const _0x347f4b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3f5f7d=>_0x3f67f3['fromRange'](_0x3f5f7d));_0x1a7a5b['setSelection'](_0x4d4438);for(const _0x1972e9 of this['_editor']['commands']['commands']())_0x1972e9['refresh']();_0x400c20['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x304e00,..._0x400c20);const _0x23140a=_0x347f4b['filter'](_0x4800b6=>'$graveyard'!=_0x4800b6['root']['rootName']);_0x23140a['length']>0x0&&_0x1a7a5b['setSelection'](_0x23140a);for(const _0x42f40c of _0x347f4b)_0x42f40c['detach']();});},_0x4a4918=(_0x170759,_0x494b9b)=>0x1==_0x170759['length']&&0x1==_0x494b9b['length']&&_0x170759[0x0]['end']['isEqual'](_0x494b9b[0x0]['start']),_0x58d73e=(_0x4f6222,_0x3b800c,_0x2bea05,_0x454c5c)=>Ft(_0x4f6222,_0x3b800c,_0x2bea05,_0x454c5c,this['_model'])?[_0x4f6222,_0x3b800c]:Ft(_0x3b800c,_0x4f6222,_0x454c5c,_0x2bea05,this['_model'])?[_0x3b800c,_0x4f6222]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x26f5a1),this['_defaultCallbacks']['set']('insertion:discard',_0x564001),this['_defaultCallbacks']['set']('insertion:join',_0x4a4918),this['_defaultCallbacks']['set']('insertion:chain',_0x58d73e),this['_defaultCallbacks']['set']('deletion:accept',_0x564001),this['_defaultCallbacks']['set']('deletion:discard',_0x26f5a1),this['_defaultCallbacks']['set']('deletion:join',_0x4a4918),this['_defaultCallbacks']['set']('deletion:chain',_0x58d73e),this['_defaultCallbacks']['set']('formatInline:accept',_0x2c5553),this['_defaultCallbacks']['set']('formatInline:discard',_0x26f5a1),this['_defaultCallbacks']['set']('formatInline:join',_0x4a4918),this['_defaultCallbacks']['set']('formatInline:chain',_0x26f5a1),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2c5553),this['_defaultCallbacks']['set']('formatBlock:discard',_0x26f5a1),this['_defaultCallbacks']['set']('formatBlock:join',_0x4a4918),this['_defaultCallbacks']['set']('formatBlock:chain',_0x26f5a1),this['_defaultCallbacks']['set']('attribute:accept',_0x26f5a1),this['_defaultCallbacks']['set']('attribute:discard',(_0x3c1f7,_0x1852ff)=>{if(!_0x1852ff)return;const _0x454b81=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x25bb2d=>{if(_0x1852ff['key']==m)for(const _0x40468a of _0x3c1f7){const _0x43cd06=_0x40468a['start']['nodeAfter'],_0x4d4ff4=_0x1852ff['oldValue'];_0x25bb2d['rename'](_0x43cd06,_0x4d4ff4);}else{if(_0x454b81['_isBlockAttribute'](_0x1852ff['key'])){for(const _0x113bf2 of _0x3c1f7)void 0x0!==_0x1852ff['oldValue']?_0x25bb2d['setAttribute'](_0x1852ff['key'],_0x1852ff['oldValue'],_0x113bf2['start']['nodeAfter']):_0x25bb2d['removeAttribute'](_0x1852ff['key'],_0x113bf2['start']['nodeAfter']);}else{for(const _0x20e139 of _0x3c1f7)_0x1852ff['oldValue']?_0x25bb2d['setAttribute'](_0x1852ff['key'],_0x1852ff['oldValue'],_0x20e139):_0x25bb2d['removeAttribute'](_0x1852ff['key'],_0x20e139);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4a4918);}}function Rt(_0x160f54,_0xa6ed28,_0x294519){for(const _0x47cdde of _0xa6ed28['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x47cdde['root']==_0x47cdde)return!0x1;if(!_0x294519['containsItem'](_0x47cdde))return!0x1;if(_0x160f54['isObject'](_0x47cdde)||_0x160f54['isLimit'](_0x47cdde))return!0x0;}return!0x1;}function Tt(_0x2b4e7a){return _0x2b4e7a['end']['parent']==_0x2b4e7a['start']['nodeAfter']&&_0x2b4e7a['end']['isAtStart'];}function Et(_0x4c1d94,_0x54d245,_0x5de7de,_0x3b4a61){const _0x2bbf07=_0xa1ba7=>!_0xa1ba7['item']['is']('$textProxy')&&!_0x3b4a61['isObject'](_0xa1ba7['item']),_0x3c2308=_0x4c1d94['start']['getLastMatchingPosition'](_0x2bbf07),_0x3f3cf0=_0x4c1d94['end']['getLastMatchingPosition'](_0x2bbf07,{'direction':'backward'});return(!_0x4c1d94['start']['isEqual'](_0x3c2308)||!_0x4c1d94['end']['isEqual'](_0x3f3cf0))&&(_0x3c2308['isBefore'](_0x3f3cf0)?_0x5de7de['updateMarker'](_0x54d245,{'range':_0x5de7de['createRange'](_0x3c2308,_0x3f3cf0)}):_0x5de7de['removeMarker'](_0x54d245),!0x0);}function Vt(_0x3c340c){return _0x474bc1(_0x3c340c);}function Ut(_0x166bc2){const _0x20a816=_0x166bc2['start']['nodeAfter'];return _0x20a816&&_0x20a816['is']('element');}function Ot(_0x5237fc,_0x5cb7f5){return null==_0x5237fc['end']['nodeBefore']&&_0x5237fc['end']['parent']==_0x5237fc['start']['nodeAfter']?Gt(_0x5237fc['start']['nodeAfter'],_0x5cb7f5):_0x5237fc;}function Gt(_0x12ebdd,_0x3578f8){const _0x3aac7e=_0x3578f8['schema']['isObject'](_0x12ebdd)||_0x3578f8['schema']['isSelectable'](_0x12ebdd);return _0x3578f8['createRange'](_0x3578f8['createPositionAt'](_0x12ebdd,'before'),_0x3aac7e?_0x3578f8['createPositionAfter'](_0x12ebdd):_0x3578f8['createPositionAt'](_0x12ebdd,'end'));}function Ft(_0x16a461,_0x878fe5,_0x2542fe,_0x56e480,_0x1e0714){if(!Pt(_0x16a461,_0x878fe5))return!0x1;if(_0x2542fe['end']['isEqual'](_0x56e480['start']))return!0x0;if(_0x16a461['type']!=_0x878fe5['type'])return!0x1;if(!_0x2542fe['end']['isTouching'](_0x56e480['start']))return!0x1;const _0x55d482=_0x1e0714['createRange'](_0x2542fe['end'],_0x56e480['start'])['getWalker']();for(const _0x4be934 of _0x55d482)if(['elementStart','elementEnd']['includes'](_0x4be934['type'])&&_0x1e0714['schema']['isLimit'](_0x4be934['item']))return!0x1;return!0x0;}function Pt(_0x1ae41e,_0x2a9bea,_0x271728=[]){return!(!_0x1ae41e['_isDataLoaded']||!_0x2a9bea['_isDataLoaded'])&&_0x4fa487(Bt(_0x1ae41e['attributes'],_0x271728),Bt(_0x2a9bea['attributes'],_0x271728));}function Lt(_0x123f5d,_0x2ed005){const _0x32b951=Ht(_0x123f5d['attributes']),_0x3b7e64=Ht(_0x2ed005);if(!_0x123f5d['_isDataLoaded'])return!0x1;for(const _0x1d236c of Object['keys'](_0x3b7e64))if(!_0x4fa487(_0x32b951[_0x1d236c],_0x3b7e64[_0x1d236c]))return!0x1;return!0x0;}function Ht(_0x6e49bb){const _0x5e39db=Object['assign']({},_0x6e49bb);return delete _0x5e39db['skipNestingCheck'],delete _0x5e39db['tablePasteChainId'],_0x5e39db;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x20de3a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x58813d,_0x190f54,_0x5b992e,_0x1729b6){super(),this['model']=_0x190f54,this['view']=_0x5b992e,this['commentThreadController']=_0x1729b6,this['_editor']=_0x58813d,this['_acceptCommand']=_0x58813d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x58813d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1265c7,_0x292b9d)=>_0x1265c7||_0x292b9d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x45c899=>_0x45c899&&this['_editor']['model']['canEditAt'](_0x190f54['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xcce941=>_0xcce941&&this['_editor']['model']['canEditAt'](_0x190f54['getRanges']())),this['_pendingAction']=null,_0x5b992e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5b992e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5b992e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5b992e,'change:isDirty',()=>{_0x5b992e['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x1c0f70=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1c0f70);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x570dda{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x49ca5f,_0x5843e4,_0x26f44c,_0x5123a0){super(_0x49ca5f),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x5843e4['authoredAt']),this['bind']('authoredAt')['to'](_0x5843e4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x5843e4,this['_localUser']=_0x26f44c,this['_config']=_0x5123a0,_0x5123a0['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x145437}=this['_config'];this['commentsListView']=new _0x145437(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',_0x13ba38=>_0x13ba38+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x181812,_0x107c13)=>_0x181812||!!_0x107c13);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2fb159}=this['_config'],_0x3012f6=new _0x2fb159(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3e0dc5=_0x3012f6['commentInputView'];return _0x3012f6['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3e0dc5,'value',(_0x59734c,_0x2a0a5f,_0x21d061)=>!!_0x21d061||_0x59734c&&!_0x2a0a5f),_0x3e0dc5['on']('submit',(_0x207ab4,_0x46f44f)=>{this['fire']('addComment',_0x46f44f),_0x3e0dc5['editor']['setData']('');}),_0x3e0dc5['on']('cancel',()=>this['focus']()),_0x3e0dc5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3012f6;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x44cc1e,_0x4df09b,_0x5243d3,_0x201a9c){super(_0x44cc1e,_0x4df09b,_0x5243d3,_0x201a9c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x17c845=>_0x17c845&&_0x17c845[0x0]?_0x17c845[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x41d4eb,_0x3d1e01)=>{let _0x4d8dfb='';for(const _0x3cddce of _0x41d4eb)_0x4d8dfb+='<p>'+ds(_0x3cddce['content'],_0x3cddce['color'])+'</p>';return _0x3d1e01?_0x4d8dfb:_0x1a99e5(_0x4d8dfb,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x44cc1e,'Accept\x20suggestion'),_0x4fa5ed['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x44cc1e,'Discard\x20suggestion'),_0x4fa5ed['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x1962d2(_0x44cc1e,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5a8fb1=this['bindTemplate'],_0x47cdd2=[{'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':_0x5a8fb1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5a8fb1['to']('authoredAt',_0x116072=>this['_config']['formatDateTime'](_0x116072))}]}]},{'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']&&_0x47cdd2['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1acebe={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x5a8fb1['if']('isActive','ck-suggestion-wrapper--active'),_0x5a8fb1['to']('type',_0x4b163c=>'ck-suggestion-'+_0x4b163c),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':_0x47cdd2}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1acebe['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)),_0x1acebe;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x590c43,_0x43d72a,_0x1191cc)=>{this['_descriptionElement']['innerHTML']=_0x1191cc;});}['_createButton'](_0x4a92a3,_0xb77439,_0x396f6f,_0x2802b6,_0x5678c4){const _0xb792d1=new _0x11f77f(this['locale']);return _0xb792d1['set']({'label':_0x4a92a3,'icon':_0xb77439,'tooltip':!0x0,'tooltipPosition':_0x5678c4}),_0xb792d1['extendTemplate']({'attributes':{'class':_0x396f6f}}),_0xb792d1['on']('execute',()=>{this['fire'](_0x2802b6,this['_model']['id']);}),_0xb792d1;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x1bddde,_0x2752f1){let _0xdf6bcb='';return _0xdf6bcb+=_0x1bddde['split']('*')['map']((_0x5a6e9a,_0x1cba46)=>_0x1cba46%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5a6e9a)+'</span>':us(_0x5a6e9a))['join'](''),_0x2752f1&&(_0xdf6bcb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2752f1['value']+'\x22\x20title=\x22'+_0x2752f1['title']+'\x22></span>'),_0xdf6bcb;}function us(_0x29e7ab){const _0x5c40d4=document['createElement']('span');return _0x5c40d4['innerText']=_0x29e7ab,_0x5c40d4['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 _0x20810f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x583b5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x335d82){super(_0x335d82),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3b494e=this['editor']['config'];_0x3b494e['define']('trackChanges.SuggestionThreadView',ne),_0x3b494e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3b494e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x19ae13,_0x25e990){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5e1cda,_0x20209e]of this['_handleControllerBuffer']){const _0x1c34ce=this['_suggestionToController']['has'](_0x5e1cda);_0x1c34ce||_0x20209e?_0x1c34ce&&_0x20209e&&this['_destroyController'](_0x5e1cda):this['_initializeController'](_0x5e1cda);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x19ae13,_0x25e990);}['init'](){const _0x2255fe=this['editor'],_0x37c0bb=_0x2255fe['plugins']['get']('TrackChangesEditing'),_0x34aeed=_0x2255fe['plugins']['get']('Annotations'),_0x5aa9b=_0x2255fe['plugins']['get']('EditorAnnotations'),_0x520229=_0x2255fe['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5aa9b['addSourceCollector'](()=>{const _0x44d258=[];for(const [_0x4478f3,_0x1ab202]of Array['from'](this['_suggestionToController'])){const _0x18cc4c=_0x4478f3['getAllAdjacentSuggestions'](),_0x118376=[];for(const _0x1f0ddd of _0x18cc4c){if(!_0x1f0ddd['isInContent'])continue;if(_0x1f0ddd['isMultiRange']){_0x118376['push'](..._0x1f0ddd['getRanges']());continue;}const _0x183156=_0x1f0ddd['getFirstRange']();if(_0x118376['length']>0x0){const _0x600189=_0x118376[0x0]['getJoined'](_0x183156);if(_0x600189){_0x118376[0x0]=_0x600189;continue;}}_0x118376['push'](_0x183156);}_0x44d258['push']([_0x1ab202['view'],_0x118376]);}return _0x44d258;}),this['listenTo'](_0x37c0bb,'suggestionLoaded',(_0x2134f6,_0x24045d)=>{this['listenTo'](_0x24045d,'change:previous',(_0x494b79,_0x100c11,_0x1a7554,_0x4f1cf9)=>{_0x24045d['isInContent']&&(null==_0x1a7554?(this['_updateController'](_0x4f1cf9['head']),this['_handleSuggestionControllerDelayed'](_0x24045d,!0x1)):(this['_updateController'](_0x1a7554['head']),null==_0x4f1cf9&&this['_handleSuggestionControllerDelayed'](_0x24045d,!0x0)));}),null!==_0x24045d['previous']?this['_updateController'](_0x24045d['head']):this['_handleSuggestionControllerDelayed'](_0x24045d,!0x1);}),this['listenTo'](_0x37c0bb,'suggestionUnloaded',(_0x28a1a8,_0x3b234a,_0x40c3a3)=>{this['stopListening'](_0x3b234a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3b234a),this['_suggestionToController']['has'](_0x3b234a)&&this['_destroyController'](_0x3b234a),_0x40c3a3&&this['_updateController'](_0x40c3a3['head']);}),this['listenTo'](_0x37c0bb,'suggestionChanged',(_0x18f3a3,_0xb6b44)=>{this['_updateController'](_0xb6b44);}),this['listenTo'](_0x34aeed,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x520229,'addComment',(_0x3ad95b,{threadId:_0x72ee34,isFromAdapter:_0x2139bc})=>{if(_0x2139bc||!_0x37c0bb['hasSuggestion'](_0x72ee34))return;const _0x17880a=_0x37c0bb['getSuggestion'](_0x72ee34);this['_suggestionToController']['get'](_0x17880a)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5efe80=this['editor']['plugins']['get']('Annotations'),_0x22337b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d8080=Array['from'](_0x5efe80['activeAnnotations'],_0x5062b6=>_0x5062b6['innerView'])['filter'](_0x4dfe56=>this['_viewToController']['has'](_0x4dfe56)),_0x4c3c35=[];for(const _0x18dbfb of _0x2d8080){const _0x429d49=this['_viewToController']['get'](_0x18dbfb)['model']['getAllAdjacentSuggestions']();_0x4c3c35['push'](..._0x429d49['reduce']((_0x1e7e4b,_0x28a8fb)=>[..._0x1e7e4b,..._0x28a8fb['getMarkerNames']()],[]));}_0x22337b['activeMarkers']=_0x4c3c35;}['_addUIComponentsToFactory'](){const _0x1b38bc=this['editor'],_0x6997f6=_0x1b38bc['locale'],_0x5c6548=o(_0x6997f6,'Track\x20changes'),_0x124c66=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x5c6548,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x6997f6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x6997f6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x6997f6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x6997f6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x36e373 of _0x124c66)if(ae(_0x36e373)){const _0x21be9d=_0x1b38bc['commands']['get'](_0x36e373['model']['commandName']);_0x36e373['model']['bind']('isOn','isEnabled')['to'](_0x21be9d,'value','isEnabled');}_0x1b38bc['ui']['componentFactory']['add']('trackChanges',_0x3f8e8f=>this['_createToolbarButton'](_0x3f8e8f,_0x124c66,_0x5c6548)),_0x1b38bc['ui']['componentFactory']['add']('menuBar:trackChanges',_0x28bffc=>this['_createMenuBarMenu'](_0x28bffc,_0x124c66,_0x5c6548));}['_createToolbarButton'](_0x13fcd1,_0x510a9d,_0x56d77d){const _0x283c31=zt(_0x13fcd1,Zt),_0x380b06=this['editor']['commands']['get']('trackChanges');_0x283c31['buttonView']['set']({'tooltip':_0x56d77d,'label':_0x56d77d,'icon':ie}),_0x283c31['buttonView']['bind']('isOn')['to'](_0x380b06,'value'),_0x283c31['buttonView']['on']('execute',()=>{_0x380b06['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x283c31,_0x510a9d,{'role':'menu'});const _0x31cb72=[];for(const _0x559e4f of _0x510a9d)ae(_0x559e4f)&&_0x31cb72['push'](this['editor']['commands']['get'](_0x559e4f['model']['commandName']));const _0x5c44a8=_0x283c31['buttonView'];return _0x5c44a8['actionView']['unbind']('isEnabled'),_0x5c44a8['arrowView']['unbind']('isEnabled'),_0x5c44a8['actionView']['bind']('isEnabled')['to'](_0x380b06,'isEnabled'),_0x5c44a8['arrowView']['bind']('isEnabled')['toMany'](_0x31cb72,'isEnabled',(..._0x264e5b)=>_0x264e5b['some'](_0x447594=>_0x447594)),_0x283c31['on']('execute',_0x5612f3=>{this['editor']['execute'](_0x5612f3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x283c31;}['_createMenuBarMenu'](_0x5a4030,_0x41c5e1,_0x32f9e8){const _0x209788=new Kt(_0x5a4030),_0x2f5b6e=this['editor']['commands']['get']('trackChanges');_0x209788['buttonView']['set']({'label':_0x32f9e8,'icon':ie});const _0x39d6c6=new Qt(_0x5a4030);for(const _0x5b3730 of _0x41c5e1){if('separator'==_0x5b3730['type']){_0x39d6c6['items']['add'](new Jt(_0x5a4030));continue;}const _0x12e91d=new Xt(_0x5a4030,_0x209788),_0x215a32=new Yt(_0x5a4030),_0x3f2ba2=_0x5b3730['model'];_0x215a32['bind'](...Object['keys'](_0x3f2ba2))['to'](_0x3f2ba2),_0x215a32['delegate']('execute')['to'](_0x209788),_0x215a32['on']('execute',()=>{this['editor']['execute'](_0x3f2ba2['commandName']),this['editor']['editing']['view']['focus']();}),_0x12e91d['children']['add'](_0x215a32),_0x39d6c6['items']['add'](_0x12e91d);}return _0x209788['bind']('isEnabled')['to'](_0x2f5b6e,'isEnabled'),_0x209788['panelView']['children']['add'](_0x39d6c6),_0x209788;}['_initializeController'](_0x5e7294){const _0x2244a3=this['editor'],_0x33e634=_0x2244a3['config'],_0x218909=_0x2244a3['plugins']['get']('Annotations'),_0x4df82b=_0x2244a3['plugins']['get']('CommentsRepository'),_0x1886a4=_0x2244a3['plugins']['get']('EditorAnnotations'),_0x181b48=_0x2244a3['plugins']['get'](_0x583b5)['me'],_0xb468b1=_0x33e634['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x207755,CommentThreadInputView:_0x22584a}=_0x2244a3['plugins']['get']('CommentsUI');let _0x250f0a,_0x4f7a8b;this['_annotationViews']['has'](_0x5e7294['id'])?(_0x4f7a8b=this['_annotationViews']['get'](_0x5e7294['id']),_0x250f0a=_0x4f7a8b['mainView']):(_0x250f0a=new _0xb468b1(_0x2244a3['locale'],_0x5e7294,_0x181b48,{'disableComments':this['_disableComments'],'editorConfig':_0x33e634['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x33e634['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x33e634['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x33e634['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x7cc2e9(_0x33e634['get']('locale')),'CommentView':_0x33e634['get']('comments')['CommentView'],'CommentsListView':_0x207755,'CommentThreadInputView':_0x22584a}),_0x250f0a['acceptButton']['on']('execute',()=>{_0x2244a3['editing']['view']['focus']();}),_0x250f0a['discardButton']['on']('execute',()=>{_0x2244a3['editing']['view']['focus']();}),_0x4f7a8b=_0x218909['createAnnotationView'](this['editor']['locale'],_0x250f0a),_0x4f7a8b['bind']('isDirty')['to'](_0x250f0a,'isDirty'),_0x4f7a8b['bind']('length')['to'](_0x250f0a),_0x4f7a8b['bind']('type')['to'](_0x250f0a,'type',_0x3d4bb6=>'suggestion-'+_0x3d4bb6),this['_annotationViews']['set'](_0x5e7294['id'],_0x4f7a8b));const _0x4fdde0=_0x4df82b['createCommentThreadController'](_0x5e7294['commentThread'],_0x250f0a),_0x5357f0=new oe(_0x2244a3,_0x5e7294,_0x250f0a,_0x4fdde0),_0x54e767=_0x5e7294['getAllAdjacentSuggestions']()['filter'](_0x152e83=>_0x152e83['isInContent']);_0x250f0a['descriptionParts']=_0x2244a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x54e767),this['_suggestionToController']['set'](_0x5e7294,_0x5357f0),this['_viewToController']['set'](_0x250f0a,_0x5357f0);const _0x23c0d4=_0x218909['createAnnotation']({'view':_0x4f7a8b,'target':()=>{const _0xca5c61=[],_0x47a022=_0x5e7294['getAllAdjacentSuggestions']()['filter'](_0x22449c=>_0x22449c['isInContent']);for(const _0x23c9ba of _0x47a022)_0xca5c61['push'](..._0x23c9ba['getMarkers']());return _0x27635a(_0x2244a3['editing'],_0xca5c61);},'type':()=>'suggestion-'+_0x5357f0['view']['type']});_0x4df82b['_bindAnnotationToEditors'](_0x250f0a,_0x23c0d4),_0x218909['add'](_0x23c0d4),_0x1886a4['registerAnnotation'](_0x23c0d4);}['_destroyController'](_0x2690b8){const _0x2f86e2=this['editor']['plugins']['get']('CommentsRepository'),_0x276238=this['editor']['plugins']['get']('Annotations'),_0x3c077c=this['_suggestionToController']['get'](_0x2690b8),_0x558f05=_0x3c077c['view'],_0xbac244=_0x276238['getByInnerView'](_0x558f05);_0x2f86e2['_unbindEditors'](_0x558f05),_0xbac244&&_0x276238['remove'](_0xbac244),this['_suggestionToController']['delete'](_0x2690b8),this['_viewToController']['delete'](_0x558f05),_0x3c077c['destroy']();}['_updateController'](_0x1db9cc){if(!_0x1db9cc['isInContent']||!this['_suggestionToController']['has'](_0x1db9cc))return;const _0x5becd2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d3af1=this['_suggestionToController']['get'](_0x1db9cc),_0x2307ae=_0x1db9cc['getAllAdjacentSuggestions']();_0x5d3af1['view']['descriptionParts']=_0x5becd2['descriptionFactory']['getDescriptions'](_0x2307ae);}['destroy'](){for(const _0x48df9a of this['_suggestionToController']['keys']())this['_destroyController'](_0x48df9a);for(const _0x21e482 of this['_annotationViews']['values']())_0x21e482['mainView']['destroy']();super['destroy']();}}function ae(_0x37f944){return'model'in _0x37f944;}class k extends _0x20810f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3dba79){this['editor']['plugins']['get'](p)['adapter']=_0x3dba79;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x478006){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x478006);}['getSuggestions']({skipNotAttached:_0x1a5e30=!0x1,toJSON:_0x2f7102=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1a5e30,'toJSON':_0x2f7102});}['getSuggestion'](_0xdd8e1b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xdd8e1b);}}const T=['Pagination'];class P extends _0x20810f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3fdf9c=this['editor'];if(_0x3fdf9c['config']['define']('trackChangesData.editorCreator',_0x3b4580=>{const _0x13f853=_0x3fdf9c['model']['document']['getRootNames']()['reduce']((_0x1bdcf4,_0x172bc6)=>(_0x1bdcf4[_0x172bc6]='',_0x1bdcf4),{});return _0x3fdf9c['constructor']['create'](_0x13f853,_0x3b4580);}),'function'!=typeof _0x3fdf9c['config']['get']('trackChangesData')['editorCreator'])throw new _0x5e6563('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x54f89f){return N(this['editor'],!0x0,_0x54f89f);}['getDataWithDiscardedSuggestions'](_0x7435c5){return N(this['editor'],!0x1,_0x7435c5);}}class D extends _0x20810f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4425f4){super(_0x4425f4),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x4b2f28){return void 0x0!==_0x4b2f28['getRootsAttributes'];}async function N(_0xba40ce,_0x24de5b,_0x2269bd){const _0x4f76bb=_0x37f465(_0xba40ce,T);_0x4f76bb['plugins']['push'](p,D),_0x4f76bb['rootsAttributes']=v(_0xba40ce)?_0xba40ce['getRootsAttributes']():void 0x0;const _0x5a0efe=document['createDocumentFragment'](),_0x15edff=_0xba40ce['config']['get']('trackChangesData')['editorCreator'],_0x2e2c78=await _0x15edff(_0x4f76bb,()=>function(_0x4d9f8d){const _0x3de2e6=document['createElement']('div');return _0x4d9f8d['appendChild'](_0x3de2e6),_0x3de2e6;}(_0x5a0efe));!function(_0x253c05,_0x352369){const _0x1b1d9e=_0x253c05['model']['document']['getRootNames']()['reduce']((_0x577227,_0x445002)=>(_0x577227[_0x445002]=_0x253c05['data']['get']({'rootName':_0x445002}),_0x577227),{}),_0x1df01b=_0x253c05['plugins']['get']('Users')['users']['map'](_0x420bfe=>({'id':_0x420bfe['id'],'name':_0x420bfe['name']})),_0x7a584d=_0x253c05['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3649fd=_0x253c05['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x50e32d=_0x352369['plugins']['get']('Users'),_0xf568c1=_0x352369['plugins']['get']('TrackChangesEditing'),_0x2c3472=_0x352369['plugins']['get']('CommentsRepository');for(const _0x50b1dd of _0x1df01b)_0x50e32d['getUser'](_0x50b1dd['id'])||_0x50e32d['addUser'](_0x50b1dd);_0x50e32d['me']||_0x50e32d['useAnonymousUser']();for(const _0x371a3a of _0x3649fd)_0x2c3472['addCommentThread'](_0x371a3a);for(const _0x5d5c12 of _0x7a584d)_0xf568c1['addSuggestionData'](_0x5d5c12);_0x352369['data']['set'](_0x1b1d9e);}(_0xba40ce,_0x2e2c78),_0x2e2c78['execute'](_0x24de5b?'acceptAllSuggestions':'discardAllSuggestions');const _0x13b299=v(_0x2e2c78)?_0x2e2c78['getFullData'](_0x2269bd):_0x2e2c78['data']['get'](_0x2269bd);return await _0x2e2c78['destroy'](),_0x13b299;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x16371d,PendingActions as _0x225db4,icons as _0x210fdb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x40a0bd,ObservableMixin as _0x2d203a,uid as _0x4b80ff,insertToPriorityArray as _0x33419e,priorities as _0x1135d8,logWarning as _0x23467f,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1ca3e4,View as _0x4490c1,ButtonView as _0x199a7d,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 _0x2e67ee,hashObject as _0x2c77f1,surroundingMarkersDetector as _0x3e7c00,trimHtml as _0x48be8a,UserView as _0x5909ed,getDateTimeFormatter as _0x5ab875,getAllMarkersDomElementsSorted as _0x1af8ea,sanitizeEditorConfig as _0x5b10d0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2557c1,LiveRange as _0x218be5,LivePosition as _0x2570a3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2b8f92,toWidget as _0x44ddaf}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2912c1,set as _0x4812d9,isEqual as _0xf2bb64,unset as _0x2e1adc,omit as Bt}from'lodash-es';import{Delete as _0x11678d,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x187c42,ShiftEnter as _0x5406cc}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x27e285,_0x4a1cf6){super(_0x27e285),this['_enabledCommands']=_0x4a1cf6,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x6a043b of this['editor']['commands']['commands']())_0x6a043b['affectsData']&&!this['_enabledCommands']['has'](_0x6a043b)&&_0x6a043b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x35a116 of this['editor']['commands']['commands']())_0x35a116['affectsData']&&!this['_enabledCommands']['has'](_0x35a116)&&_0x35a116['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0xea7b15,_0x2edb55){super(_0xea7b15),this['_suggestions']=_0x2edb55,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x576b4a){const _0x4f2979=this['_suggestions']['get'](_0x576b4a);if(!_0x4f2979)throw new _0x40a0bd('track-changes-accept-suggestion-not-found',this);const _0x29f24b=_0x4f2979['getRanges']();this['editor']['model']['canEditAt'](_0x29f24b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4f2979);}}class B extends ts{['_suggestions'];constructor(_0x2b65e0,_0x2ac4a8){super(_0x2b65e0),this['_suggestions']=_0x2ac4a8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x165204){const _0x188455=this['_suggestions']['get'](_0x165204);if(!_0x188455)throw new _0x40a0bd('track-changes-discard-suggestion-not-found',this);const _0x2079a4=_0x188455['getRanges']();this['editor']['model']['canEditAt'](_0x2079a4)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x188455);}}function ss(_0x278f9c){return _0x278f9c['sort']((_0x50d2c4,_0x1821ec)=>'deletion'==_0x50d2c4['type']&&'deletion'!=_0x1821ec['type']?-0x1:'deletion'!=_0x50d2c4['type']&&'deletion'==_0x1821ec['type']?0x1:0x0);}function to(_0x4cb58f,_0x1be7e){let _0x18d5cf,_0x351b1e=0x0;const _0x231969=[],_0x1cca6c=_0x1be7e['schema'];for(;_0x351b1e<_0x4cb58f['length'];){const _0x4d5575=_0x4cb58f[_0x351b1e],_0x12ae1a=_0x4cb58f[_0x351b1e+0x1];_0x18d5cf||(_0x18d5cf=_0x1be7e['createPositionBefore'](_0x4d5575)),co(_0x1be7e,_0x4d5575,_0x12ae1a)||(_0x231969['push'](_0x1be7e['createRange'](_0x18d5cf,_0x1cca6c['isObject'](_0x4d5575)?_0x1be7e['createPositionAfter'](_0x4d5575):_0x1be7e['createPositionAt'](_0x4d5575,'end'))),_0x18d5cf=null),_0x351b1e++;}return _0x231969;}function co(_0x363e98,_0x7cb148,_0x1ee654){if(!_0x1ee654)return!0x1;const _0x56bfa9=_0x363e98['createPositionAfter'](_0x7cb148),_0x30a60f=_0x363e98['createPositionBefore'](_0x1ee654);return _0x56bfa9['isTouching'](_0x30a60f);}function rs(_0x43c791,_0x47ffac,_0x49fdfb){for(;_0x49fdfb['length'];){const _0x58b273=_0x49fdfb['splice'](0x0,0x64);_0x43c791['change'](()=>{for(const _0x41085c of _0x58b273)_0x41085c['isInContent']&&_0x47ffac['execute'](_0x41085c['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x4a1e78,_0x4cedca,_0x510c9d){super(_0x4a1e78),this['_command']=_0x4cedca,this['_suggestions']=_0x510c9d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3ff1c0=Array['from'](this['_suggestions']['values']())['some'](_0x56cdce=>_0x56cdce['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3ff1c0;}['execute'](){const _0x48cfb5=ss(Array['from'](this['_suggestions']['values']()));for(const _0x316177 of _0x48cfb5){const _0x5863e6=_0x316177['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5863e6))return;}rs(this['editor']['model'],this['_command'],_0x48cfb5);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x27300d,_0x13d8bc,_0xcf9a78){super(_0x27300d),this['_command']=_0x13d8bc,this['_suggestions']=_0xcf9a78,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3e560f=this['editor']['model']['document']['selection'],_0x85dc7=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4bcfe3,_0x188588){const _0x39ab12=Array['from'](_0x4bcfe3['getRanges']()),_0x35fec8=new Set();for(const _0x2d7115 of _0x188588)if(_0x2d7115['isInContent']){for(const _0x2bc3f1 of _0x39ab12)for(const _0x31c37a of _0x2d7115['getRanges']())(_0x2bc3f1['isIntersecting'](_0x31c37a)||_0x4bcfe3['isCollapsed']&&!_0x2d7115['isMultiRange']&&_0x2d7115['next']&&_0x31c37a['end']['isTouching'](_0x2bc3f1['start']))&&_0x35fec8['add'](_0x2d7115);}return _0x35fec8;}(_0x3e560f,_0x85dc7),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2bfdea=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5aa068 of _0x2bfdea){const _0x532774=_0x5aa068['getRanges']();if(!this['editor']['model']['canEditAt'](_0x532774))return;}rs(this['editor']['model'],this['_command'],_0x2bfdea);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x2d203a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xea9f2f,_0x311241){super(),this['id']=_0x311241['id'],this['type']=_0x311241['type'],this['subType']=_0x311241['subType']||null,this['author']=_0x311241['author'],this['creator']=_0x311241['creator']||_0x311241['author'],this['isExternal']=Boolean(_0x311241['attributes']&&_0x311241['attributes']['@external']),this['data']=null,this['_model']=_0xea9f2f,this['_onAccept']=_0x311241['onAccept'],this['_onDiscard']=_0x311241['onDiscard'],this['_onAttributesChange']=_0x311241['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x311241['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x288cde=this;for(;_0x288cde['previous'];)_0x288cde=_0x288cde['previous'];return _0x288cde;}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'](_0x4734b7){this['_markerNames']['add'](_0x4734b7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x199b63=>this['_model']['markers']['get'](_0x199b63))['filter'](_0x161aff=>_0x161aff);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x10f29f=>{for(const _0xf492fe of this['getMarkers']())_0x10f29f['removeMarker'](_0xf492fe);}),this['_markerNames']['clear']();}['removeMarker'](_0x1897be){this['_model']['change'](_0x209d42=>{_0x209d42['removeMarker'](_0x1897be);}),this['_markerNames']['delete'](_0x1897be);}['addRange'](_0x24d4f1){const _0x42eb28='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x42eb28),this['_model']['change'](_0xde7b=>{_0xde7b['addMarker'](_0x42eb28,{'range':_0x24d4f1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2c4a51){for(const _0xb68baa of this['getRanges']())if(_0xb68baa['isIntersecting'](_0x2c4a51))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x402937=>_0x402937['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5718b1,_0x5ba754)=>[..._0x5718b1,..._0x5ba754['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4cdab4=this['getRanges']();if(0x1!=_0x4cdab4['length'])return null;const _0x28c28c=_0x4cdab4[0x0],_0x2ac925=_0x28c28c['start']['nodeAfter'],_0x43ddb1=_0x28c28c['end']['nodeBefore'];return _0x2ac925 instanceof _0x2557c1?_0x2ac925!=_0x43ddb1?null:_0x2ac925: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 _0x9a0274=[];let _0x563d4b=this['head'];for(;_0x563d4b;)_0x9a0274['push'](_0x563d4b),_0x563d4b=_0x563d4b['next'];return _0x9a0274;}['setAttribute'](_0x369a8f,_0xbcf954){const _0x618c84=_0x2912c1(this['attributes']);_0x4812d9(_0x618c84,_0x369a8f,_0xbcf954),_0xf2bb64(_0x618c84,this['attributes'])||(this['attributes']=_0x618c84,this['_onAttributesChange'](_0x618c84));}['removeAttribute'](_0x225f3f){const _0x38e56b=_0x2912c1(this['attributes']);_0x2e1adc(_0x38e56b,_0x225f3f),_0xf2bb64(_0x38e56b,this['attributes'])||(this['attributes']=_0x38e56b,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 _0x4b80ff()['substr'](0x1,0x5);}}function o(_0x6b4115,_0x3201a7,_0x3ed847){const t=_0x6b4115['t'];switch(_0x3201a7){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',_0x3ed847);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3ed847);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3ed847);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3ed847);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3ed847);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',_0x3ed847);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3ed847);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',_0x3ed847);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3ed847);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3ed847);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3ed847);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3ed847);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3ed847);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3ed847);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3ed847);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3ed847);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3ed847);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3ed847);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3ed847);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3ed847);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3ed847);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3ed847);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3ed847);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'},_0x3ed847);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3ed847);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3ed847);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3ed847);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3ed847);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3ed847);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'},_0x3ed847);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3ed847);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3ed847);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3ed847);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3ed847);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'},_0x3ed847);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3ed847);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'},_0x3ed847);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'},_0x3ed847);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3ed847);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'},_0x3ed847);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3ed847);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'},_0x3ed847);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3ed847);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3ed847);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'},_0x3ed847);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'},_0x3ed847);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 _0x3201a7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3b1255,_0x39ce02){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3b1255,this['_locale']=_0x39ce02;}['getDescriptions'](_0x466357){const _0x49c17e=[],_0x10050c=new Set(),_0x1d0de7=new Set();for(let _0x462e2e=0x0;_0x462e2e<_0x466357['length'];_0x462e2e++){const _0x194970=_0x466357[_0x462e2e];if(!_0x194970['isInContent'])continue;const _0x1db8e7=this['_handleCustomCallbackDescription'](_0x194970);if(_0x1db8e7){if(null!=_0x194970['subType']){if(_0x10050c['has'](_0x194970['subType']))continue;_0x10050c['add'](_0x194970['subType']);}_0x49c17e['push'](_0x1db8e7);}else{if('attribute'!=_0x194970['type'])'insertion'!=_0x194970['type']&&'deletion'!=_0x194970['type']||this['_handleInsertRemoveSuggestionDescription'](_0x49c17e,_0x194970,_0x466357[_0x462e2e+0x1]);else{const _0x2e403c=_0x194970['data']['key'];if(_0x1d0de7['has'](_0x2e403c))continue;_0x1d0de7['add'](_0x194970['data']['key']),_0x2e403c==m?this['_handleRenameSuggestionDescription'](_0x49c17e,_0x194970):this['_handleAttributeSuggestionDescription'](_0x49c17e,_0x194970);}}}return this['_resolveDescriptionItems'](_0x49c17e);}['registerDescriptionCallback'](_0x331a71){this['_customCallbacks']['push'](_0x331a71);}['registerElementLabel'](_0x22a8ec,_0x3e2a00,_0x181083=_0x1135d8['normal']){'function'==typeof _0x22a8ec?_0x33419e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x22a8ec,'label':_0x3e2a00,'priority':_0x181083}):this['_itemLabels']['set'](_0x22a8ec,_0x3e2a00);}['registerAttributeLabel'](_0x5dfb8c,_0x4df25e){this['_attributeLabels']['set'](_0x5dfb8c,_0x4df25e);}['getItemLabel'](_0x40ec4f,_0x4ab04b=0x1){let _0x4043da;for(const _0x9768b8 of this['_itemLabelsCallbacks'])if(_0x9768b8['matchingCallback'](_0x40ec4f)){_0x4043da=_0x9768b8['label'];break;}return _0x4043da||(_0x4043da=this['_itemLabels']['get'](_0x40ec4f['name'])),_0x4043da?_0x4043da(_0x4ab04b):0x1!==_0x4ab04b?_0x4ab04b+'\x20'+_0x40ec4f['name']+'s':''+_0x40ec4f['name'];}['_addDescriptionItems'](_0x499854,_0xf551c8){const _0x1cfc76=_0xf551c8['getFirstRange']()['getWalker'](),_0x5836ba='insertion'==_0xf551c8['type']?'add':'remove';for(const _0x5701d2 of _0x1cfc76){const _0x60e961=_0x5701d2['item'],_0x3f1a15=_0x499854[_0x499854['length']-0x1];if(_0x60e961['is']('$textProxy'))_0x3f1a15&&_0x3f1a15['type']['indexOf']('Container')>-0x1&&_0x499854['pop'](),_0x3f1a15&&'text'==_0x3f1a15['type']?_0x3f1a15[_0x5836ba]+=_0x60e961['data']:_0x499854['push']({'type':'text','add':'add'==_0x5836ba?_0x60e961['data']:'','remove':'remove'==_0x5836ba?_0x60e961['data']:''});else{if(this['_schema']['isObject'](_0x60e961)){const _0x47c91f=_0x60e961;if(_0x3f1a15&&_0x3f1a15['type']['indexOf']('Container')>-0x1&&_0x499854['pop'](),'elementEnd'==_0x5701d2['type'])continue;_0x3f1a15&&_0x3f1a15['type']==_0x5836ba+'Object'&&_0x3f1a15['element']['name']==_0x47c91f['name']?_0x3f1a15['quantity']++:_0x499854['push']({'type':_0x5836ba+'Object','element':_0x47c91f,'quantity':0x1}),_0x1cfc76['skip'](_0x22a3aa=>!('elementEnd'==_0x22a3aa['type']&&_0x22a3aa['item']==_0x60e961));}else{if(this['_schema']['checkChild'](_0x60e961,'$text')||_0x60e961['is']('element','softBreak')){const _0x26b323=_0x60e961;if('add'==_0x5836ba&&'elementStart'==_0x5701d2['type']||'remove'==_0x5836ba&&'elementEnd'==_0x5701d2['type'])continue;if(_0x3f1a15&&-0x1==_0x3f1a15['type']['indexOf']('Container')){'text'==_0x3f1a15['type']&&(_0x3f1a15[_0x5836ba]+='\x0a');continue;}let _0x5321ad;if(_0x5321ad='add'==_0x5836ba?_0x26b323['nextSibling']&&!this['_schema']['isObject'](_0x26b323['nextSibling'])?_0x26b323['nextSibling']:null:_0x26b323['previousSibling']&&!this['_schema']['isObject'](_0x26b323['previousSibling'])?_0x26b323['previousSibling']:null,_0x26b323['isEmpty']||_0x5321ad&&_0x5321ad['isEmpty']){const _0x38a32=_0x5321ad&&_0x5321ad['isEmpty']?_0x5321ad:_0x26b323;_0x3f1a15&&_0x3f1a15['type']==_0x5836ba+'EmptyContainer'&&_0x3f1a15['element']['name']==_0x38a32['name']?_0x3f1a15['quantity']++:_0x499854['push']({'type':_0x5836ba+'EmptyContainer','element':_0x38a32,'quantity':0x1});}else _0x499854['push']({'type':_0x5836ba+'Container','element':_0x26b323});}}}}}['_resolveDescriptionItems'](_0x576457){const _0x305641=this['_locale'],_0x1c0db5=[],_0x935715=[],_0xfd3f27=[];for(const _0x29d76f of _0x576457)switch(_0x29d76f['type']){case'text':if(_0x29d76f['add']=_0x29d76f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x29d76f['remove']=_0x29d76f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x29d76f['add']&&''!=_0x29d76f['remove']){_0x1c0db5['push']({'type':'replace','content':o(_0x305641,'REPLACE_TEXT',['\x22'+_0x29d76f['remove']+'\x22','\x22'+_0x29d76f['add']+'\x22'])});continue;}if(null!=_0x29d76f['add']['match'](/^ +$/)){_0x1c0db5['push']({'type':'insertion','content':o(_0x305641,'*Insert:*\x20%0',o(_0x305641,'ELEMENT_SPACE',_0x29d76f['add']['length']))});continue;}if(null!=_0x29d76f['remove']['match'](/^ +$/)){_0x1c0db5['push']({'type':'deletion','content':o(_0x305641,'*Remove:*\x20%0',o(_0x305641,'ELEMENT_SPACE',_0x29d76f['remove']['length']))});continue;}if(''!=_0x29d76f['add']){_0x1c0db5['push']({'type':'insertion','content':o(_0x305641,'*Insert:*\x20%0','\x22'+_0x29d76f['add']+'\x22')});continue;}_0x1c0db5['push']({'type':'deletion','content':o(_0x305641,'*Remove:*\x20%0','\x22'+_0x29d76f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1c0db5['push']({'type':'insertion','content':o(_0x305641,'*Insert:*\x20%0',this['getItemLabel'](_0x29d76f['element'],_0x29d76f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1c0db5['push']({'type':'deletion','content':o(_0x305641,'*Remove:*\x20%0',this['getItemLabel'](_0x29d76f['element'],_0x29d76f['quantity']))});continue;case'addContainer':_0x1c0db5['push']({'type':'insertion','content':o(_0x305641,'*Split:*\x20%0',this['getItemLabel'](_0x29d76f['element'],_0x29d76f['quantity']))});continue;case'removeContainer':_0x1c0db5['push']({'type':'deletion','content':o(_0x305641,'*Merge:*\x20%0',this['getItemLabel'](_0x29d76f['element'],_0x29d76f['quantity']))});continue;case'addFormat':_0x935715['push'](_0x29d76f['key']);continue;case'removeFormat':_0xfd3f27['push'](_0x29d76f['key']);continue;default:_0x1c0db5['push'](_0x29d76f);}if(_0x935715['length']){const _0x1204fc=_0x935715['map'](_0x4d1bd3=>this['_attributeLabels']['has'](_0x4d1bd3)?this['_attributeLabels']['get'](_0x4d1bd3):_0x4d1bd3)['join'](',\x20');_0x1c0db5['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1204fc)});}if(_0xfd3f27['length']){const _0x36cc7f=_0xfd3f27['map'](_0x4f0a1d=>this['_attributeLabels']['has'](_0x4f0a1d)?this['_attributeLabels']['get'](_0x4f0a1d):_0x4f0a1d)['join'](',\x20');_0x1c0db5['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x36cc7f)});}return _0x1c0db5;}['_handleCustomCallbackDescription'](_0xe3c038){for(const _0x38e588 of this['_customCallbacks']){const _0x4319a7=_0x38e588(_0xe3c038);if(_0x4319a7&&'type'in _0x4319a7)return _0x4319a7;}}['_handleAttributeSuggestionDescription'](_0x5a900a,_0x5530b4){const _0x482008=_0x5530b4['data'],_0x5305a5=void 0x0===_0x482008['newValue']?'removeFormat':'addFormat';_0x5a900a['push']({'type':_0x5305a5,'key':_0x482008['key']});}['_handleRenameSuggestionDescription'](_0x5032eb,_0x465b12){_0x5032eb['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x465b12['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1d1dea,_0x42dbc0,_0x25d17d){if(this['_addDescriptionItems'](_0x1d1dea,_0x42dbc0),_0x25d17d&&_0x25d17d['getFirstRange']()&&!_0x42dbc0['getFirstRange']()['end']['isEqual'](_0x25d17d['getFirstRange']()['start'])){const _0x2b883c=_0x1d1dea[_0x1d1dea['length']-0x1],_0x53a1b3='insertion'==_0x42dbc0['type']?'add':'remove';_0x2b883c&&'text'==_0x2b883c['type']&&(_0x2b883c[_0x53a1b3]+='\x0a');}}}class E extends _0x16371d{['afterInit'](){const _0x16d20d=this['editor'],_0x1e90ca=_0x16d20d['plugins']['get']('TrackChangesEditing');_0x16d20d['commands']['get']('showAIAssistant')&&_0x1e90ca['enableCommand']('showAIAssistant');}}class V extends _0x16371d{['afterInit'](){const _0xf4a59a=this['editor'],_0x37c822=_0xf4a59a['locale'];if(!_0xf4a59a['plugins']['has']('AlignmentEditing'))return;const _0x28965f=_0xf4a59a['plugins']['get']('TrackChangesEditing');_0x28965f['enableDefaultAttributesIntegration']('alignment'),_0x28965f['registerBlockAttribute']('alignment'),_0x28965f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x37c822,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30c075=this['editor'],_0x5a39c1=_0x30c075['locale'];_0x30c075['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3082cb=>{if('formatBlock'!=_0x3082cb['type'])return;const {data:_0x3c1c30}=_0x3082cb;if(_0x3c1c30&&'alignment'==_0x3c1c30['commandName']){const _0x223712=_0x3c1c30['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5a39c1,'*Format:*\x20%0',function(_0x4c2ca3){switch(_0x4c2ca3){case'left':return o(_0x5a39c1,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5a39c1,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5a39c1,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5a39c1,'FORMAT_JUSTIFY_TEXT');}}(_0x223712))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x16371d{['afterInit'](){const _0x495973=this['editor'],_0x5b1118=_0x495973['plugins']['get']('TrackChangesEditing'),_0x17e532=_0x495973['locale'];for(const _0x4b9b60 of ti){if(!_0x495973['plugins']['has'](_0x4b9b60))continue;const _0x492d84=_0x4b9b60['slice'](0x0,-0x7)['toLowerCase'](),_0x33cfee='FORMAT_'+_0x492d84['toUpperCase']();_0x5b1118['enableDefaultAttributesIntegration'](_0x492d84),_0x5b1118['registerInlineAttribute'](_0x492d84),_0x5b1118['descriptionFactory']['registerAttributeLabel'](_0x492d84,o(_0x17e532,_0x33cfee));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x381a99=this['editor'],_0xaf3d70=_0x381a99['locale'],_0x366b36=_0x381a99['plugins']['get']('TrackChangesEditing');function _0x4b836b(_0x36fb2f,_0x2a29d3){_0x366b36['descriptionFactory']['registerDescriptionCallback'](_0x19f323=>{if('formatInline'!=_0x19f323['type'])return;const {data:_0x46766d}=_0x19f323;return _0x46766d&&_0x46766d['commandName']===_0x36fb2f?_0x46766d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xaf3d70,'*Format:*\x20%0',_0x2a29d3)}:{'type':'format','content':o(_0xaf3d70,'*Remove\x20format:*\x20%0',_0x2a29d3)}:void 0x0;});}_0x4b836b('bold',o(_0xaf3d70,'FORMAT_BOLD')),_0x4b836b('italic',o(_0xaf3d70,'FORMAT_ITALIC')),_0x4b836b('underline',o(_0xaf3d70,'FORMAT_UNDERLINE')),_0x4b836b('code',o(_0xaf3d70,'FORMAT_CODE')),_0x4b836b('strikethrough',o(_0xaf3d70,'FORMAT_STRIKETHROUGH')),_0x4b836b('subscript',o(_0xaf3d70,'FORMAT_SUBSCRIPT')),_0x4b836b('superscript',o(_0xaf3d70,'FORMAT_SUPERSCRIPT'));}}class O extends _0x16371d{['afterInit'](){const _0x1df737=this['editor'],_0x39d50d=_0x1df737['locale'];if(!_0x1df737['plugins']['has']('BlockQuoteEditing'))return;const _0x312c29=_0x1df737['plugins']['get']('TrackChangesEditing'),_0x1e3037=this['editor']['commands']['get']('blockQuote');_0x312c29['enableCommand']('blockQuote',(_0x5bed08,_0x3b2136={})=>{const _0x485252=this['editor']['model']['document']['selection'],_0x3089e1=_0x3b2136&&void 0x0!==_0x3b2136['forceValue']?_0x3b2136['forceValue']:!_0x1e3037['value'];let _0x2d3e14=[];if(_0x3089e1){const _0x174112=Array['from'](_0x485252['getSelectedBlocks']())['filter'](_0x491d83=>oo(_0x491d83)||function(_0x252958,_0x1344bb){const _0xa007b2=_0x1344bb['checkChild'](_0x252958['parent'],'blockQuote'),_0x5d531c=_0x1344bb['checkChild'](['$root','blockQuote'],_0x252958);return _0xa007b2&&_0x5d531c;}(_0x491d83,this['editor']['model']['schema']));_0x2d3e14=to(_0x174112,_0x1df737['model']);}else{const _0x393f40=Array['from'](_0x485252['getSelectedBlocks']())['filter'](_0x2633f5=>oo(_0x2633f5));_0x2d3e14=to(_0x393f40,_0x1df737['model']);}_0x1df737['model']['change'](()=>{for(const _0x26b454 of _0x2d3e14)_0x312c29['markBlockFormat'](_0x26b454,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3089e1}]});});}),_0x312c29['descriptionFactory']['registerDescriptionCallback'](_0x1a5d31=>{const {data:_0x3e39b0}=_0x1a5d31;if(_0x3e39b0&&'blockQuote'==_0x3e39b0['commandName']){const _0x341ce5=o(_0x39d50d,'ELEMENT_BLOCK_QUOTE');return _0x3e39b0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39d50d,'*Set\x20format:*\x20%0',_0x341ce5)}:{'type':'format','content':o(_0x39d50d,'*Remove\x20format:*\x20%0',_0x341ce5)};}});}}function oo(_0x2bb569){return'blockQuote'==_0x2bb569['parent']['name'];}class G extends _0x16371d{['afterInit'](){const _0x5c909a=this['editor'];_0x5c909a['plugins']['has']('CaseChange')&&(_0x5c909a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5c909a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5c909a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x16371d{['afterInit'](){const _0x554799=this['editor'];_0x554799['commands']['get']('ckbox')&&_0x554799['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x16371d{['afterInit'](){const _0x11f59e=this['editor'];if(!_0x11f59e['plugins']['has']('CodeBlock'))return;const _0x130b7c=_0x11f59e['plugins']['get']('TrackChangesEditing'),_0x2bf4d6=_0x11f59e['locale'],_0x13d066=_0x11f59e['config']['get']('codeBlock')['languages'],_0x3f0741=_0x11f59e['commands']['get']('codeBlock');_0x130b7c['enableCommand']('indentCodeBlock'),_0x130b7c['enableCommand']('outdentCodeBlock'),_0x130b7c['enableCommand']('codeBlock',(_0x3c7b99,_0x176773={})=>{const _0x46b1c8=_0x11f59e['model'],_0x4bf416=_0x11f59e['model']['document']['selection'],_0x1f276f=_0x176773&&void 0x0!==_0x176773['forceValue']?_0x176773['forceValue']:!_0x3f0741['value'];let _0x5c49a8;_0x176773['language']||(_0x176773['language']=_0x13d066[0x0]['language']),_0x5c49a8=_0x1f276f?Array['from'](_0x4bf416['getSelectedBlocks']())['filter'](_0x1c7313=>eo(_0x1c7313)||function(_0xa2bf05,_0x322743){if(_0xa2bf05['is']('rootElement')||_0x322743['isLimit'](_0xa2bf05))return!0x1;return _0x322743['checkChild'](_0xa2bf05['parent'],'codeBlock');}(_0x1c7313,_0x46b1c8['schema'])):Array['from'](_0x4bf416['getSelectedBlocks']())['filter'](_0xedf0e3=>eo(_0xedf0e3));const _0xefd74b=to(_0x5c49a8,_0x46b1c8);_0x46b1c8['change'](()=>{for(const _0x20e9c6 of _0xefd74b)_0x130b7c['markBlockFormat'](_0x20e9c6,{'commandName':'codeBlock','commandParams':[{..._0x176773,'forceValue':_0x1f276f}],'formatGroupId':'blockName'});});}),(_0x130b7c['descriptionFactory']['registerElementLabel']('codeBlock',_0x415513=>o(_0x2bf4d6,'ELEMENT_CODE_BLOCK',_0x415513)),_0x130b7c['descriptionFactory']['registerDescriptionCallback'](_0x43a2d4=>{if('formatBlock'!=_0x43a2d4['type'])return;const _0x231899=_0x2bf4d6['t'],{data:_0x709f2d}=_0x43a2d4;if(!_0x709f2d||'codeBlock'!=_0x709f2d['commandName'])return;const _0x5954b8=_0x709f2d['commandParams'][0x0]['language'],_0x52ba06=_0x231899(_0x13d066['find'](_0x439465=>_0x439465['language']===_0x5954b8)['label'])['toLowerCase']();return _0x709f2d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2bf4d6,'*Set\x20format:*\x20%0',o(_0x2bf4d6,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x52ba06+')')}:{'type':'format','content':o(_0x2bf4d6,'*Remove\x20format:*\x20%0',o(_0x2bf4d6,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3fc593){return'codeBlock'==_0x3fc593['name'];}class H extends _0x16371d{['afterInit'](){const _0x5a16cf=this['editor'];if(!_0x5a16cf['plugins']['has']('CommentsEditing'))return;_0x5a16cf['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x837a72,_0x193e66,_0x8b7011){const _0x37f2af=[];for(const _0x5062b0 of _0x193e66['getItems']())_0x5062b0['hasAttribute'](_0x837a72)&&_0x37f2af['push'](_0x8b7011['createRangeOn'](_0x5062b0));return _0x37f2af;}function _e(_0x4321c8,_0x131a59,{showActiveMarker:_0x5d97bb=!0x0}={}){const _0x3a9b77=_0x4321c8['plugins']['get']('TrackChangesEditing');return(_0xb31d48,_0x17c6b0,_0x5b19c2)=>{if(!_0x5b19c2['consumable']['test'](_0x17c6b0['markerRange'],_0xb31d48['name']))return;const _0x3dfaf8=_0x17c6b0['markerRange']['getWalker'](),_0x5289f6=_0x17c6b0['markerRange']['start'],_0x3a4c9f=_0x4321c8['model']['schema'];let _0x3caa17=null,_0x30be74=null,_0x5b5477=!0x1,_0x3c68a0=!0x1;for(const _0x57cad1 of _0x3dfaf8){const _0x404223=_0x57cad1['item'];_0x5b5477=_0x5b5477||_0x3a4c9f['isContent'](_0x404223);const _0x10eeae=_0x5b19c2['mapper']['toViewElement'](_0x404223);if(_0x10eeae&&_0x10eeae['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x57cad1['type']&&(_0x3a4c9f['isBlock'](_0x404223)&&!_0x3a4c9f['isLimit'](_0x404223)&&(_0x404223['nextSibling']||_0x5289f6['isAtEnd']?_0x3caa17&&_0x3caa17['parent']==_0x404223||(_0x3caa17=_0x404223,_0x1b16a5(_0x57cad1['previousPosition']),_0x3c68a0=!0x0):_0x30be74=_0x30be74||_0x57cad1['previousPosition']));}function _0x1b16a5(_0x18fcbb){const _0x2c0bd2=_0x5b19c2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x131a59}),_0x5c3d64=_0x5b19c2['mapper']['toViewPosition'](_0x18fcbb);_0x5d97bb&&_0x3a9b77['activeMarkers']['includes'](_0x17c6b0['markerName'])&&_0x5b19c2['writer']['addClass']('ck-suggestion-marker--active',_0x2c0bd2),_0x5b19c2['writer']['insert'](_0x5c3d64,_0x2c0bd2),_0x5b19c2['mapper']['bindElementToMarker'](_0x2c0bd2,_0x17c6b0['markerName']);}_0x5b5477||_0x3c68a0||!_0x30be74||_0x1b16a5(_0x30be74);};}class q extends _0x16371d{static get['requires'](){return[_0x11678d];}['init'](){const _0x196263=this['editor'],_0x19360b=_0x196263['plugins']['get']('TrackChangesEditing');_0x19360b['enableCommand']('delete');const _0x24edaa=_0x196263['commands']['get']('deleteForward');_0x19360b['enableCommand']('deleteForward',(_0x166f56,_0x22f68b={})=>{const _0x3d65dc=_0x196263['model']['createSelection'](_0x196263['model']['document']['selection']);_0x3d65dc['isCollapsed']&&_0x196263['model']['modifySelection'](_0x3d65dc,{'direction':'forward','unit':_0x22f68b['unit']});const _0x589dd6=_0x3d65dc['getFirstRange'](),_0x4068cd=_0x218be5['fromRange'](_0x589dd6);let _0x2aafb5;_0x166f56(_0x22f68b),_0x2aafb5='$graveyard'==_0x4068cd['root']['rootName']?_0x196263['model']['createRange'](_0x589dd6['start']):_0x196263['model']['createRange'](_0x4068cd['start'],_0x4068cd['end']),_0x4068cd['detach'](),_0x196263['model']['enqueueChange'](_0x24edaa['buffer']['batch'],_0x23f14e=>{_0x24edaa['buffer']['lock'](),_0x23f14e['setSelection'](_0x23f14e['createRange'](_0x2aafb5['end'])),_0x24edaa['buffer']['unlock']();});}),_0x196263['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x196263,'merge'),{'priority':'high'}),_0x196263['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x44c8ec,_0x3cddec,_0x20c579)=>{_0x20c579['options']['showSuggestionHighlights']&&_e(_0x196263,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x44c8ec,_0x3cddec,_0x20c579);},{'priority':'high'}),_0x196263['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x23cac1,_0x1b6094,_0x524445)=>{const _0x13d5aa=_0x524445['mapper']['markerNameToElements'](_0x1b6094['markerName']);if(_0x13d5aa){for(const _0x220eb8 of _0x13d5aa)_0x220eb8['is']('uiElement')&&(_0x524445['mapper']['unbindElementFromMarkerName'](_0x220eb8,_0x1b6094['markerName']),_0x524445['writer']['remove'](_0x220eb8));}},{'priority':'high'});}}class z extends _0x16371d{['afterInit'](){const _0x27ff58=this['editor'];if(!_0x27ff58['plugins']['has']('ListEditing'))return;const _0x280749=_0x27ff58['locale'],_0x25541b=_0x27ff58['plugins']['get']('TrackChangesEditing'),_0x4074e2=_0x27ff58['plugins']['has']('TodoListEditing'),_0x2db9f6=!!_0x27ff58['config']['get']('list.multiBlock');function _0xd57398(_0x1a3e84){return{'type':'format','content':''+o(_0x280749,'*Set\x20format:*\x20%0',_0x1a3e84)};}function _0x38cb23(_0x2ee05c){return{'type':'format','content':''+o(_0x280749,'*Remove\x20format:*\x20%0',_0x2ee05c)};}_0x25541b['enableDefaultAttributesIntegration']('numberedList'),_0x25541b['enableDefaultAttributesIntegration']('bulletedList'),_0x25541b['enableDefaultAttributesIntegration']('customNumberedList'),_0x25541b['enableDefaultAttributesIntegration']('customBulletedList'),_0x25541b['enableDefaultAttributesIntegration']('indentList'),_0x25541b['enableDefaultAttributesIntegration']('outdentList'),_0x25541b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x25541b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x25541b['registerBlockAttribute']('listItemId'),_0x25541b['registerBlockAttribute']('listType'),_0x25541b['registerBlockAttribute']('listIndent'),_0x2db9f6&&(_0x25541b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x25541b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4074e2&&(_0x25541b['enableDefaultAttributesIntegration']('todoList'),_0x25541b['enableDefaultAttributesIntegration']('checkTodoList'),_0x25541b['registerBlockAttribute']('todoListChecked'),_0x25541b['descriptionFactory']['registerDescriptionCallback'](_0x130d38=>{const {data:_0x16f6b9}=_0x130d38;if(_0x16f6b9&&'todoListChecked'==_0x16f6b9['key'])return{'type':'format','content':_0x16f6b9['newValue']?o(_0x280749,'*Check\x20item*'):o(_0x280749,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x39f0b6=>{if(_0x39f0b6['batch']['isUndo'])return!0x1;let _0x23fbf3=!0x1;const _0x37a1d5=_0x25541b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb5dcc1=>'todoListChecked'===_0x25541b['_getAttributeKey'](_0xb5dcc1));for(const _0x2cab31 of _0x37a1d5){'todo'!=_0x2cab31['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x25541b['_findSuggestions'](_0x2cab31['getFirstRange'](),'attribute')['find'](_0x5bcadb=>'listType'===_0x25541b['_getAttributeKey'](_0x5bcadb['suggestion']))||(_0x39f0b6['removeMarker'](_0x2cab31['getFirstMarker']()),_0x23fbf3=!0x0));}return _0x23fbf3;})),_0x25541b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x280749,'FORMAT_INDENT'));const _0x3ec888={'type':'format','content':''};_0x25541b['descriptionFactory']['registerDescriptionCallback'](_0xf78edd=>{const {data:_0xb82013}=_0xf78edd;if(!_0xb82013||'listType'!=_0xb82013['key'])return;let _0x1cddf2=_0xf78edd['head'];for(;_0x1cddf2;){if(_0x1cddf2['data']&&(('listStyle'==_0x1cddf2['data']['key']||'listMarkerStyle'==_0x1cddf2['data']['key'])&&(_0x1cddf2['data']['newValue']&&'default'!=_0x1cddf2['data']['newValue']||'default'!=_0x1cddf2['data']['oldValue']&&!_0xb82013['newValue'])||!_0x2db9f6&&_0x1cddf2['data']['key']==m))return _0x3ec888;_0x1cddf2=_0x1cddf2['next'];}if(null==_0xb82013['newValue'])switch(_0xb82013['oldValue']){case'bulleted':return _0x38cb23(o(_0x280749,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x38cb23(o(_0x280749,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x38cb23(o(_0x280749,'ELEMENT_TODO_LIST'));}switch(_0xb82013['newValue']){case'bulleted':return _0xd57398(o(_0x280749,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xd57398(o(_0x280749,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xd57398(o(_0x280749,'ELEMENT_TODO_LIST'));}}),_0x25541b['descriptionFactory']['registerDescriptionCallback'](_0x9e431b=>{const {data:_0x4e61ed}=_0x9e431b;if(_0x4e61ed&&'listIndent'==_0x4e61ed['key'])return null==_0x4e61ed['newValue']||null==_0x4e61ed['oldValue']&&0x0==_0x4e61ed['newValue']?_0x3ec888:void 0x0;}),_0x25541b['descriptionFactory']['registerDescriptionCallback'](_0x51c273=>{if('attribute'!=_0x51c273['type'])return;const {data:_0x5833fc}=_0x51c273;if(!_0x5833fc||'listItemId'!=_0x5833fc['key'])return;const _0x4ced42=le(_0x51c273);return'newValue'==_0x4ced42?{'type':'format','content':o(_0x280749,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4ced42?{'type':'format','content':o(_0x280749,'*Split:*\x20list\x20item')}:_0x3ec888;}),_0x27ff58['model']['document']['registerPostFixer'](_0x412543=>this['listItemIdFixer'](_0x412543)),_0x27ff58['model']['document']['registerPostFixer'](_0x294cb1=>this['noTrackChangesFixer'](_0x294cb1)),_0x27ff58['model']['document']['registerPostFixer'](_0x458c3c=>this['assureChains'](_0x458c3c)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x228d9d){if(_0x228d9d['batch']['isUndo']||!_0x228d9d['batch']['isLocal'])return!0x1;let _0x552d67=!0x1;const _0x2e4ac9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x209906=>_0x209906['data']&&'listItemId'==_0x209906['data']['key'])['filter'](_0x56f424=>_0x56f424['data']['newValue']&&_0x56f424['data']['oldValue']);for(const _0x5ac544 of _0x2e4ac9)le(_0x5ac544)||(_0x228d9d['removeMarker'](_0x5ac544['getFirstMarker']()),_0x552d67=!0x0);return _0x552d67;}['noTrackChangesFixer'](_0x39944e){if(_0x39944e['batch']['isUndo']||!_0x39944e['batch']['isLocal'])return!0x1;const _0x4b66c8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4b66c8['trackChangesCommand']['value'])return!0x1;let _0x2264cd=!0x1;const _0x47f1f9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x46fe27=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2219f0=>'attribute'==_0x2219f0['type'])['filter'](_0xdb8c80=>_0x47f1f9['includes'](_0xdb8c80['attributeKey']));if(0x0==_0x46fe27['length'])return _0x2264cd;for(const _0x32c91c of _0x46fe27){const _0x951a29=_0x4b66c8['_findSuggestions'](_0x32c91c['range'],'attribute')['filter'](_0x2553dc=>!_0x2553dc['meta']['isNextTo'])['map'](_0x33fca3=>_0x33fca3['suggestion'])['filter'](_0x2b4f93=>{const _0x5ddcef=_0x4b66c8['_getAttributeKey'](_0x2b4f93);return _0x47f1f9['includes'](_0x5ddcef);});if(_0x951a29['length']){for(const _0x300bf4 of _0x951a29)_0x39944e['removeMarker'](_0x300bf4['getFirstMarker']());_0x2264cd=!0x0;}}return _0x2264cd;}['assureChains'](_0x480545){if(_0x480545['batch']['isUndo']||!_0x480545['batch']['isLocal'])return!0x1;const _0xeb9b22=this['editor']['plugins']['get']('TrackChangesEditing');let _0x211251=!0x1;const _0x928937=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x3c0c84 of _0xeb9b22['getSuggestions']({'skipNotAttached':!0x0})){const _0x3847db=_0xeb9b22['_findSuggestions'](_0x3c0c84['getFirstRange'](),'attribute')['map'](_0x290ffb=>_0x290ffb['suggestion'])['filter'](_0x4df98d=>_0x4df98d['data']&&_0x928937['includes'](_0x4df98d['data']['key']));if(!_0x3847db['length'])continue;const _0x41a323=_0x3847db[0x0]['head']['attributes']['groupId'];if(!_0x3847db['every'](_0x171274=>_0x171274['attributes']['groupId']===_0x41a323)){for(const _0x579245 of _0x3847db)_0x2c9bd2(_0x579245,_0x41a323)&&(_0x211251=!0x0);}}return _0x211251;function _0x3099a1(_0x4714d2,_0x37a6f5){for(const _0x329362 of _0xeb9b22['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa6340d=>'attribute'==_0xa6340d['type']&&_0xa6340d['attributes']['groupId']==_0x4714d2))_0x329362['setAttribute']('groupId',_0x37a6f5);}function _0x2c9bd2(_0x58d30c,_0x504b01){let _0x3be0eb=_0x58d30c['head'],_0x181435=!0x1;for(;_0x3be0eb;)_0x3be0eb['attributes']['groupId']!=_0x504b01&&(_0x3099a1(_0x3be0eb['attributes']['groupId'],_0x504b01),_0x3be0eb['setAttribute']('groupId',_0x504b01),_0x181435=!0x0),_0x3be0eb=_0x3be0eb['next'];return _0x181435;}}['_supportLegacySuggestions'](){const _0x3e1819=this['editor'],_0x10db7=_0x3e1819['locale'],_0x1a7780=_0x3e1819['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1a7780['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x106297,_0x48ee62){const _0x1f1d23=[];for(let _0x77691 of _0x106297)_0x77691['start']['nodeAfter']===_0x77691['end']['parent']&&(_0x77691=_0x3e1819['model']['createRange'](_0x3e1819['model']['createPositionAt'](_0x77691['start']['nodeAfter'],0x0))),_0x1f1d23['push'](_0x77691);_0x3e1819['model']['change'](_0x233a22=>{const _0x302e67=_0x3e1819['model']['document']['selection'],_0x1cd705=Array['from'](_0x302e67['getRanges']())['map'](_0x557e30=>_0x218be5['fromRange'](_0x557e30));_0x233a22['setSelection'](_0x1f1d23),_0x3e1819['commands']['get'](_0x48ee62['commandName'])['refresh'](),_0x48ee62['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3e1819['execute'](_0x48ee62['commandName'],..._0x48ee62['commandParams']),_0x233a22['setSelection'](_0x1cd705);for(const _0x521c22 of _0x1cd705)_0x521c22['detach']();});}),_0x1a7780['descriptionFactory']['registerElementLabel'](function(_0x2ffcbf){const _0x2b3659=!_0x3e1819['model']['schema']['isObject'](_0x2ffcbf),_0xfb113c=_0x2ffcbf['previousSibling'],_0x36170a=_0x2ffcbf['nextSibling'],_0x3e6ed8=_0x2ffcbf['getAttribute']('listItemId'),_0x20f094=!_0xfb113c||_0xfb113c['getAttribute']('listItemId')!==_0x3e6ed8,_0x5999c9=!_0x36170a||_0x36170a['getAttribute']('listItemId')!==_0x3e6ed8;return _0x2b3659&&Boolean(_0x3e6ed8)&&_0x20f094&&_0x5999c9;},_0x14296d=>o(_0x10db7,'ELEMENT_LIST_ITEM',_0x14296d));}['_registerLegacyDescription'](){const _0x111402=this['editor'],_0x485e93=_0x111402['locale'];function _0x5973d6(_0x2b64fe){const _0x3bf8b0=_0x111402['commands']['get']('bulletedList')['value'],_0x6917ab=_0x111402['commands']['get']('numberedList')['value'];return'numberedList'===_0x2b64fe?_0x3bf8b0:_0x6917ab;}_0x111402['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x49af70){if('formatBlock'!=_0x49af70['type'])return;const {data:_0x439227}=_0x49af70;if(!_0x439227)return;let _0x4f7085,_0x3def6a,_0x1b7cf6,_0x59da29;switch(_0x439227['commandName']){case'bulletedList':_0x1b7cf6=_0x439227['commandParams'][0x0]['forceValue'],_0x59da29=_0x5973d6(_0x439227['commandName']),_0x4f7085=_0x1b7cf6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59da29&&_0x111402['config']['get']('list.multiBlock')||(_0x4f7085='*Change\x20to:*\x20%0'),_0x3def6a={'type':'format','content':o(_0x485e93,_0x4f7085,o(_0x485e93,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1b7cf6=_0x439227['commandParams'][0x0]['forceValue'],_0x59da29=_0x5973d6(_0x439227['commandName']),_0x4f7085=_0x1b7cf6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59da29&&_0x111402['config']['get']('list.multiBlock')||(_0x4f7085='*Change\x20to:*\x20%0'),_0x3def6a={'type':'format','content':o(_0x485e93,_0x4f7085,o(_0x485e93,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4f7085='*Indent:*\x20%0',_0x3def6a={'type':'format','content':o(_0x485e93,_0x4f7085,o(_0x485e93,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4f7085=function(_0x38e4dc){const _0x5c60c1=_0x38e4dc['getFirstRange']();let _0x82f623=_0x5c60c1['start']['nodeAfter'];for(;_0x82f623&&_0x5c60c1['containsItem'](_0x82f623);){if(_0x82f623['getAttribute']('listIndent')>0x0)return!0x1;_0x82f623=_0x82f623['nextSibling'];}return!0x0;}(_0x49af70)?o(_0x485e93,'*Format:*\x20remove\x20from\x20%0',o(_0x485e93,function(_0x43477b){return'ELEMENT_'+_0x43477b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x49af70))):o(_0x485e93,'*Outdent:*\x20%0',o(_0x485e93,'ELEMENT_LIST_ITEM')),_0x3def6a={'type':'format','content':_0x4f7085};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x439227['multipleBlocks']&&(_0x4f7085='*Merge:*\x20%0',_0x3def6a={'type':'deletion','content':o(_0x485e93,_0x4f7085,o(_0x485e93,'ELEMENT_LIST_ITEM'))});}return _0x3def6a;});}}function le(_0x244a1a){let _0x23bb1a=_0x244a1a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x23bb1a;){const _0x45998d=_0x23bb1a['getAttribute']('listItemId');if(!_0x45998d)return!0x1;if(_0x45998d==_0x244a1a['data']['newValue'])return'newValue';if(_0x45998d==_0x244a1a['data']['oldValue'])return'oldValue';_0x23bb1a=_0x23bb1a['previousSibling'];}return!0x1;}class ue extends _0x16371d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2bc9a1=this['editor']['config']['get']('list.properties'),_0x5f1b02=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bc9a1['styles']&&(_0x5f1b02['enableDefaultAttributesIntegration']('listStyle'),_0x5f1b02['registerBlockAttribute']('listStyle')),_0x2bc9a1['reversed']&&(_0x5f1b02['enableDefaultAttributesIntegration']('listReversed'),_0x5f1b02['registerBlockAttribute']('listReversed')),_0x2bc9a1['startIndex']&&(_0x5f1b02['enableDefaultAttributesIntegration']('listStart'),_0x5f1b02['registerBlockAttribute']('listStart'));const _0x399bdb={'type':'format','content':''};_0x5f1b02['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ffeb6=this['editor']['locale'];_0x5f1b02['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4ffeb6,'FORMAT_LIST_REVERSED')),_0x5f1b02['descriptionFactory']['registerDescriptionCallback'](_0x8a272f=>{const {data:_0x1b6d9a}=_0x8a272f;if(_0x1b6d9a&&'listReversed'==_0x1b6d9a['key'])return null==_0x1b6d9a['newValue']||0x0==_0x1b6d9a['newValue']&&null==_0x1b6d9a['oldValue']?_0x399bdb:void 0x0;}),_0x5f1b02['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4ffeb6,'FORMAT_LIST_START')),_0x5f1b02['descriptionFactory']['registerDescriptionCallback'](_0x49cca1=>{const {data:_0x254e54}=_0x49cca1;if(_0x254e54&&'listStart'==_0x254e54['key'])return null==_0x254e54['newValue']||0x1==_0x254e54['newValue']&&null==_0x254e54['oldValue']?_0x399bdb:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x12640b=>{if(_0x12640b['batch']['isUndo'])return!0x1;let _0x53dac4=!0x1;const _0x57607c=_0x5f1b02['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e05be=>{const _0x45f421=_0x5f1b02['_getAttributeKey'](_0x2e05be);return'listStart'==_0x45f421||'listReversed'==_0x45f421;});for(const _0xab650e of _0x57607c){const _0x535e07=_0xab650e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x535e07||'customNumbered'==_0x535e07)continue;_0x5f1b02['_findSuggestions'](_0xab650e['getFirstRange'](),'attribute')['find'](_0x24abe5=>'listType'==_0x5f1b02['_getAttributeKey'](_0x24abe5['suggestion']))||(_0x12640b['removeMarker'](_0xab650e['getFirstMarker']()),_0x53dac4=!0x0);}return _0x53dac4;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xaa2db3){const _0x3b3b00=this['editor']['locale'],{data:_0xdc25c0}=_0xaa2db3,_0x22959d={'type':'format','content':''};if(!_0xdc25c0||'listStyle'!=_0xdc25c0['key'])return;if(!_0xdc25c0['oldValue'])return'default'==_0xdc25c0['newValue']?_0x22959d:{'type':'format','content':''+o(_0x3b3b00,'*Set\x20format:*\x20%0',o(_0x3b3b00,this['_getTranslationKeyForListStyle'](_0xdc25c0['newValue'])))};if(!_0xdc25c0['newValue']){if('default'==_0xdc25c0['oldValue'])return _0x22959d;let _0x2b4ad7=_0xaa2db3['head'];for(;_0x2b4ad7;){if(_0x2b4ad7['data']&&'listType'==_0x2b4ad7['data']['key']&&_0x2b4ad7['data']['newValue'])return _0x22959d;_0x2b4ad7=_0x2b4ad7['next'];}return{'type':'format','content':''+o(_0x3b3b00,'*Remove\x20format:*\x20%0',o(_0x3b3b00,this['_getTranslationKeyForListStyle'](_0xdc25c0['oldValue'])))};}if('default'!=_0xdc25c0['newValue'])return{'type':'format','content':''+o(_0x3b3b00,'*Set\x20format:*\x20%0',o(_0x3b3b00,this['_getTranslationKeyForListStyle'](_0xdc25c0['newValue'])))};let _0x32d699=_0xaa2db3['head'];for(;_0x32d699;){if(_0x32d699['data']&&'listType'==_0x32d699['data']['key']&&_0x32d699['data']['newValue']&&_0x32d699['data']['oldValue'])return _0x22959d;_0x32d699=_0x32d699['next'];}return{'type':'format','content':o(_0x3b3b00,'*Set\x20format:*\x20%0',o(_0x3b3b00,'ELEMENT_'+_0xaa2db3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x403738=this['editor'],_0x3d9c73=_0x403738['locale'];_0x403738['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3df5d8=>{if('formatBlock'!=_0x3df5d8['type'])return;const {data:_0x561426}=_0x3df5d8;if(!_0x561426)return;let _0x40fc88,_0x2d33bc;switch(_0x561426['commandName']){case'listStyle':_0x40fc88='*Change\x20to:*\x20%0',_0x2d33bc={'type':'format','content':o(_0x3d9c73,_0x40fc88,o(_0x3d9c73,this['_getTranslationKeyForListStyle'](_0x561426['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40fc88=_0x561426['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2d33bc={'type':'format','content':o(_0x3d9c73,_0x40fc88)};break;case'listStart':_0x40fc88='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2d33bc={'type':'format','content':o(_0x3d9c73,_0x40fc88,_0x561426['commandParams'][0x0]['startIndex'])};}return _0x2d33bc;});}['_getTranslationKeyForListStyle'](_0x2fdfe2){return'ELEMENT_'+function(_0x1d933b){if(pe['includes'](_0x1d933b))return'bulleted';if(ye['includes'](_0x1d933b))return'numbered';return null;}(_0x2fdfe2)['toUpperCase']()+'_LIST_'+_0x2fdfe2['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x16371d{static get['requires'](){return[_0x187c42];}['init'](){const _0x2641f6=this['editor'],_0x4e7206=_0x2641f6['plugins']['get']('TrackChangesEditing'),_0x5df6e2=_0x2641f6['commands']['get']('enter');_0x4e7206['enableCommand']('enter',()=>{_0x2641f6['model']['change'](_0x25b31a=>{const _0x1a24ec=_0x2641f6['model']['document']['selection'],_0x477295=_0x1a24ec['getFirstPosition'](),_0x729f26=_0x218be5['fromRange'](_0x1a24ec['getFirstRange']());if(_0x5df6e2['enterBlock'](_0x25b31a)){const _0x39fce2=_0x2641f6['model']['createPositionAt'](_0x477295['parent']['nextSibling'],0x0),_0x21375f=_0x25b31a['createRange'](_0x477295,_0x39fce2);_0x4e7206['markInsertion'](_0x21375f);}else _0x25b31a['setSelection'](_0x25b31a['createRange'](_0x729f26['end']));_0x729f26['detach'](),_0x5df6e2['fire']('afterExecute',{'writer':_0x25b31a});});}),_0x2641f6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2641f6,'split'),{'priority':'high'}),_0x2641f6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x577929,_0x65e5bf,_0x50e3b2)=>{const _0x555505=_0x50e3b2['mapper']['markerNameToElements'](_0x65e5bf['markerName']);if(_0x555505){for(const _0x3ac2da of _0x555505)_0x3ac2da['hasClass']('ck-suggestion-marker-split')&&(_0x50e3b2['mapper']['unbindElementFromMarkerName'](_0x3ac2da,_0x65e5bf['markerName']),_0x50e3b2['writer']['remove'](_0x3ac2da));}},{'priority':'high'}),_0x2641f6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1f8283,_0x58808c,_0x22b596)=>{_0x22b596['options']['showSuggestionHighlights']&&_e(_0x2641f6,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1f8283,_0x58808c,_0x22b596);},{'priority':'high'});}}class J extends _0x16371d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xadfcac=this['editor']['plugins']['get']('TrackChangesEditing');_0xadfcac['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xadfcac['enableCommand']('findNext'),_0xadfcac['enableCommand']('findPrevious'),_0xadfcac['enableCommand']('replace'),_0xadfcac['enableCommand']('replaceAll');}['handleFindCommand'](_0x55b3b1,_0x6d15b9,_0x40ae74={}){const _0x38f635=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x55b3b1(_0x5f30e2=>{let _0x4e3c52=('string'==typeof _0x6d15b9?_0x38f635['findByTextCallback'](_0x6d15b9,_0x40ae74):_0x6d15b9)(_0x5f30e2);Array['isArray'](_0x4e3c52)&&(_0x4e3c52={'results':_0x4e3c52,'searchText':'string'==typeof _0x6d15b9?_0x6d15b9:''});const _0xacd92b=_0x4e3c52['results']['filter'](_0x307780=>!0x1===this['_isInDeletionRange'](_0x307780,_0x5f30e2['item']));return{..._0x4e3c52,'results':_0xacd92b};},_0x40ae74);}['_isInDeletionRange'](_0x4c28aa,_0x2599df){const _0x5965a2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2599df,_0x4c28aa['start']),this['editor']['model']['createPositionAt'](_0x2599df,_0x4c28aa['end']));for(const _0x4da7c8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5965a2['getIntersection'](_0x4da7c8['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 _0x16371d{['afterInit'](){const _0x323b9c=this['editor']['locale'],_0xd0b666=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x47c57a,commandName:_0x477ae5}of ro)this['editor']['plugins']['has'](_0x47c57a)&&(_0xd0b666['enableDefaultAttributesIntegration'](_0x477ae5),_0xd0b666['registerInlineAttribute'](_0x477ae5));_0xd0b666['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x323b9c,'FORMAT_FONT_SIZE')),_0xd0b666['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x323b9c,'FORMAT_FONT_FAMILY')),_0xd0b666['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x323b9c,'FORMAT_FONT_COLOR')),_0xd0b666['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x323b9c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6b3566=this['editor'],_0x289cf0=_0x6b3566['locale'];_0x6b3566['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ff68b=>{const _0x2873a7=_0x289cf0['t'];if('formatInline'!=_0x4ff68b['type'])return;const {data:_0x493e44}=_0x4ff68b;if(null!=_0x493e44){if('fontSize'==_0x493e44['commandName']){const _0x111215=_0x493e44['commandParams'][0x0]['value'];if(_0x111215){const _0x40b871=_0x2873a7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x15ee6c=>_0x15ee6c['model']==_0x111215)['title'])['toLowerCase']();return{'type':'format','content':o(_0x289cf0,'*Set\x20font\x20size:*\x20%0',_0x40b871)};}return{'type':'format','content':o(_0x289cf0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x493e44['commandName']){const _0x54d612=_0x493e44['commandParams'][0x0]['value'];return _0x54d612?{'type':'format','content':o(_0x289cf0,'*Set\x20font\x20family:*\x20%0',_0x54d612)}:{'type':'format','content':o(_0x289cf0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x493e44['commandName']){const _0x25843b=_0x493e44['commandParams'][0x0]['value'];if(_0x25843b){const _0x49c1bc=_0x1ca3e4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x12a7aa=>_0x12a7aa['model']==_0x25843b);let _0x5b98a1=_0x25843b,_0xc35b08='';return _0x49c1bc&&(_0x5b98a1=_0x49c1bc['label'],_0xc35b08=_0x2873a7(_0x5b98a1)['toLowerCase']()),{'type':'format','content':o(_0x289cf0,'*Set\x20font\x20color:*\x20%0',_0xc35b08)['trim'](),'color':{'value':_0x25843b,'title':_0xc35b08||_0x5b98a1}};}return{'type':'format','content':o(_0x289cf0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x493e44['commandName']){const _0xd3af5d=_0x493e44['commandParams'][0x0]['value'];if(_0xd3af5d){const _0x4ac531=_0x1ca3e4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xe690b1=>_0xe690b1['model']==_0xd3af5d);let _0x2f9689=_0xd3af5d,_0x5763b3='';return _0x4ac531&&(_0x2f9689=_0x4ac531['label'],_0x5763b3=_0x2873a7(_0x2f9689)['toLowerCase']()),{'type':'format','content':o(_0x289cf0,'*Set\x20font\x20background\x20color:*\x20%0',_0x5763b3)['trim'](),'color':{'value':_0xd3af5d,'title':_0x5763b3||_0x2f9689}};}return{'type':'format','content':o(_0x289cf0,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x16371d{['afterInit'](){const _0x520de3=this['editor'],_0x2be05b=_0x520de3['plugins']['get']('TrackChangesEditing'),_0x10045e=_0x520de3['commands']['get']('copyFormat'),_0x1a6beb=_0x520de3['commands']['get']('pasteFormat');_0x10045e&&_0x1a6beb&&(_0x2be05b['enableDefaultAttributesIntegration']('pasteFormat'),_0x2be05b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x146a3b=this['editor'],_0x212312=_0x146a3b['locale'];_0x146a3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27ba4e=>{if('formatBlock'!=_0x27ba4e['type']&&'formatInline'!=_0x27ba4e['type'])return;const {data:_0x4490ca}=_0x27ba4e;if(_0x4490ca&&'pasteFormat'===_0x4490ca['commandName']){const _0x37ad02=[],_0x2319d6=_0x4490ca['commandParams'][0x0];for(const [_0x4224e2,_0x486b60]of Object['entries'](_0x2319d6))_0x37ad02['push'](so(_0x146a3b,_0x4224e2,_0x486b60));return _0x37ad02['length']?{'type':'format','content':o(_0x212312,'*Set\x20format\x20to:*\x20%0',_0x37ad02['join'](',\x20'))}:{'type':'format','content':o(_0x212312,'*Remove\x20all\x20formatting*')};}});}}function so(_0x48f702,_0x57a5c5,_0x5d8c43){const _0x3937b9=_0x48f702['locale']['t'],_0x3a8b1e=_0x57a5c5['split'](/(?=[A-Z])/)['join']('\x20'),_0x12ee5e=_0x3937b9(_0x3a8b1e['charAt'](0x0)['toUpperCase']()+_0x3a8b1e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5d8c43)return _0x12ee5e;if('fontColor'===_0x57a5c5||'fontBackgroundColor'===_0x57a5c5){const _0x25c562=_0x1ca3e4(_0x48f702['config']['get']('fontColor.colors'))['find'](_0x548082=>_0x548082['model']==_0x5d8c43);return _0x12ee5e+'\x20('+(_0x25c562?_0x3937b9(_0x25c562['label'])['toLowerCase']():_0x5d8c43)+')';}if('fontSize'===_0x57a5c5&&isNaN(parseFloat(_0x5d8c43))){const _0x2eca75=_0x48f702['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x48f702['config']['get']('fontSize.options'))['find'](_0x40fa09=>_0x40fa09['model']==_0x5d8c43);return _0x12ee5e+'\x20('+(_0x2eca75?_0x3937b9(_0x2eca75['title'])['toLowerCase']():_0x5d8c43)+')';}return _0x12ee5e+'\x20('+_0x5d8c43+')';}class Y extends _0x16371d{['_headingOptions'];['afterInit'](){const _0x4346fe=this['editor'];if(!_0x4346fe['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4346fe['config']['get']('heading.options');const _0xabe875=_0x4346fe['locale'],_0x42d669=_0x4346fe['plugins']['get']('TrackChangesEditing');_0x42d669['enableDefaultAttributesIntegration']('heading');for(const _0x451c0d of this['_headingOptions'])'paragraph'!=_0x451c0d['model']&&_0x42d669['descriptionFactory']['registerElementLabel'](_0x451c0d['model'],_0x750ea6=>{const _0x5777cc=this['_getHeadingLevel'](_0x451c0d['model']);return null!==_0x5777cc?_0x44243a(_0x750ea6,_0x5777cc):_0x1f416f(_0x750ea6,_0x451c0d['title']);});function _0x44243a(_0x1643b6,_0x404e55){return o(_0xabe875,'ELEMENT_HEADING',[_0x1643b6,_0x404e55]);}function _0x1f416f(_0xd0d2c5,_0x381dc5){return o(_0xabe875,'ELEMENT_HEADING_CUSTOM',[_0xd0d2c5,_0x381dc5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d1666=this['editor'],_0x395250=_0x1d1666['locale'];function _0xc63de7(_0x11f23f,_0x421230){return o(_0x395250,'ELEMENT_HEADING_CUSTOM',[_0x11f23f,_0x421230]);}_0x1d1666['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x507244=>{if('formatBlock'!=_0x507244['type'])return;const {data:_0x2e3a90}=_0x507244;if(_0x2e3a90&&'heading'==_0x2e3a90['commandName']){const _0x3d3680=_0x2e3a90['commandParams'][0x0]['value'],_0x224e63=this['_getHeadingLevel'](_0x3d3680);if(null!==_0x224e63)return{'type':'format','content':o(_0x395250,'*Change\x20to:*\x20%0',(_0x5b6897=0x1,_0x3aa3f3=_0x224e63,o(_0x395250,'ELEMENT_HEADING',[_0x5b6897,_0x3aa3f3])))};const _0x471e1b=this['_headingOptions']['find'](_0x47af00=>_0x47af00['model']===_0x3d3680)['title'];return{'type':'format','content':o(_0x395250,'*Change\x20to:*\x20%0',_0xc63de7(0x1,_0x471e1b))};}var _0x5b6897,_0x3aa3f3;});}['_getHeadingLevel'](_0x48dc84){const _0x1d36cc=_0x48dc84['match'](/^heading(\d+)/);if(_0x1d36cc)return _0x1d36cc[0x1];const _0x545ca1=this['_headingOptions']?.['find'](_0x208278=>_0x208278['model']==_0x48dc84);if(_0x545ca1&&_0x545ca1['view']){const _0x280f96=_0x545ca1['view'],_0x2ce286=(_0x280f96['name']??_0x280f96)['match'](/^h(\d+)/);if(_0x2ce286)return _0x2ce286[0x1];}return null;}}class Z extends _0x16371d{['afterInit'](){const _0x1ec6f0=this['editor'];if(!_0x1ec6f0['plugins']['has']('HighlightEditing'))return;const _0x3db240=_0x1ec6f0['plugins']['get']('TrackChangesEditing'),_0x6f3997=_0x1ec6f0['locale'];_0x3db240['enableDefaultAttributesIntegration']('highlight'),_0x3db240['registerInlineAttribute']('highlight'),_0x3db240['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x6f3997,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc82a9c=this['editor'],_0x4d4dbb=_0xc82a9c['locale'];_0xc82a9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x519d3f=>{if('formatInline'!=_0x519d3f['type'])return;const {data:_0x375c1a}=_0x519d3f;if(_0x375c1a&&'highlight'==_0x375c1a['commandName']){const _0x32a0ff=_0x4d4dbb['t'],_0x2ba40c=_0x375c1a['commandParams'][0x0]['value'];if(_0x2ba40c){const _0x27186c=_0xc82a9c['config']['get']('highlight.options')['find'](_0x371b8a=>_0x371b8a['model']==_0x2ba40c),_0x1a25f7=_0x32a0ff(_0x27186c['title'])['toLowerCase']();return{'type':'format','content':o(_0x4d4dbb,'*Set\x20highlight:*\x20%0',_0x1a25f7),'color':{'value':_0x27186c['color'],'title':_0x27186c['title']}};}return{'type':'format','content':o(_0x4d4dbb,'*Remove\x20highlight*',o(_0x4d4dbb,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x16371d{['afterInit'](){const _0xd16f70=this['editor'];if(!_0xd16f70['plugins']['has']('HorizontalLineEditing'))return;_0xd16f70['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3a6787=_0xd16f70['plugins']['get']('TrackChangesEditing'),_0x24aa9c=_0xd16f70['locale'];_0x3a6787['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4713ca=>o(_0x24aa9c,'ELEMENT_HORIZONTAL_LINE',_0x4713ca)),_0xd16f70['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1cd2ee,{writer:_0x3f3473,options:_0xf7c24b})=>{if(!_0xf7c24b['showSuggestionHighlights'])return null;const _0x518d56=_0x3f3473['createContainerElement']('div'),_0x38361b=_0x3f3473['createEmptyElement']('hr');return _0x3f3473['addClass']('ck-horizontal-line',_0x518d56),_0x3f3473['insert'](_0x3f3473['createPositionAt'](_0x518d56,0x0),_0x38361b),_0x518d56;},'converterPriority':'high'});}}class et extends _0x16371d{['afterInit'](){const _0x2564b8=this['editor'];if(!_0x2564b8['plugins']['has']('HtmlEmbed'))return;const _0x50cae9=_0x2564b8['plugins']['get']('TrackChangesEditing'),_0x1cadc8=_0x2564b8['locale'];_0x50cae9['descriptionFactory']['registerElementLabel']('rawHtml',_0x18e3da=>o(_0x1cadc8,'ELEMENT_HTML_EMBED',_0x18e3da)),_0x50cae9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x50cae9['registerBlockAttribute']('value'),_0x50cae9['descriptionFactory']['registerDescriptionCallback'](_0x2f5444=>{if('attribute'!=_0x2f5444['type'])return;const {data:_0x223a41}=_0x2f5444;if(_0x223a41&&'value'==_0x223a41['key']&&_0x2f5444['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5f364f=o(_0x1cadc8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1cadc8,'*Change\x20%0\x20content*',_0x5f364f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49fb60=this['editor'],_0x37f64d=_0x49fb60['locale'];_0x49fb60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44f7dc=>{if('formatBlock'!=_0x44f7dc['type'])return;const {data:_0x318abb}=_0x44f7dc;if(_0x318abb&&'htmlEmbed'==_0x318abb['commandName']){const _0x2dd0d5=o(_0x37f64d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x37f64d,'*Change\x20%0\x20content*',_0x2dd0d5)};}});}}class it extends _0x16371d{['afterInit'](){const _0x347f2d=this['editor'];if(!_0x347f2d['plugins']['has']('ImageEditing'))return;const _0x1941c6=_0x347f2d['plugins']['get']('TrackChangesEditing'),_0x27c5f2=_0x347f2d['plugins']['get']('ImageUtils'),_0x47171e=_0x347f2d['locale'];_0x1941c6['enableCommand']('insertImage'),_0x1941c6['descriptionFactory']['registerElementLabel']('imageBlock',_0x2f5245=>o(_0x47171e,'ELEMENT_IMAGE',_0x2f5245)),_0x1941c6['descriptionFactory']['registerElementLabel']('imageInline',_0x4eadc8=>o(_0x47171e,'ELEMENT_INLINE_IMAGE',_0x4eadc8)),_0x1941c6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x47171e,'ELEMENT_CAPTION')),_0x347f2d['plugins']['has']('ImageUploadEditing')&&_0x1941c6['enableCommand']('uploadImage'),_0x347f2d['plugins']['has']('ImageBlockEditing')&&_0x347f2d['plugins']['has']('ImageInlineEditing')&&(_0x1941c6['enableCommand']('imageTypeInline',(_0x2932f5,_0x5c0caa)=>{const _0x558d7c=_0x27c5f2['getClosestSelectedImageElement'](_0x347f2d['model']['document']['selection']);_0x347f2d['model']['change'](()=>{_0x1941c6['markBlockFormat'](_0x558d7c,{'commandName':'imageTypeInline','commandParams':[_0x5c0caa]},[],'convertBlockImageToInline');});}),_0x1941c6['enableCommand']('imageTypeBlock',(_0x53c280,_0x354f33)=>{_0x347f2d['model']['change'](_0x62b090=>{let _0x25a343=_0x27c5f2['getClosestSelectedImageElement'](_0x347f2d['model']['document']['selection']),_0x3fe2e9=_0x62b090['createRangeOn'](_0x25a343);const _0xaede9f=_0x2570a3['fromPosition'](_0x3fe2e9['start'],'toPrevious'),_0x1b31ad=_0x2570a3['fromPosition'](_0x3fe2e9['end'],'toNext');_0x1941c6['forceDefaultExecution'](()=>_0x53c280(_0x354f33)),_0x25a343=_0x27c5f2['getClosestSelectedImageElement'](_0x347f2d['model']['document']['selection']),_0x3fe2e9=_0x62b090['createRangeOn'](_0x25a343);const _0x5e354a=_0x62b090['createRange'](_0xaede9f,_0x1b31ad);_0xaede9f['detach'](),_0x1b31ad['detach'](),_0x1941c6['markBlockFormat'](_0x25a343,{'commandName':'imageTypeInline','commandParams':[_0x354f33]},[],'convertInlineImageToBlock'),_0x5e354a['start']['isBefore'](_0x3fe2e9['start'])&&_0x1941c6['markInsertion'](_0x62b090['createRange'](_0x5e354a['start'],_0x3fe2e9['start']),'convertInlineImageToBlock'),_0x3fe2e9['end']['isBefore'](_0x5e354a['end'])&&_0x1941c6['markInsertion'](_0x62b090['createRange'](_0x3fe2e9['end'],_0x5e354a['end']),'convertInlineImageToBlock');});}),_0x1941c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1941c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1941c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1941c6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1941c6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1941c6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5e8f62])=>{const _0x39a00c=_0x1941c6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3595c3=_0x5e8f62['start'],_0x326992=_0x5e8f62['end'];const _0x364e8b=_0x347f2d['model']['schema']['getNearestSelectionRange'](_0x3595c3,'backward'),_0x59f907=_0x347f2d['model']['schema']['getNearestSelectionRange'](_0x326992,'forward');_0x364e8b['isCollapsed']&&(_0x3595c3=_0x364e8b['start']),_0x59f907['isCollapsed']&&(_0x326992=_0x59f907['end']),_0x39a00c([_0x347f2d['model']['createRange'](_0x3595c3,_0x326992)]);}),_0x1941c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x38d1b6),_0x1941c6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x38d1b6)),_0x347f2d['plugins']['has']('ImageCaptionEditing')&&(_0x1941c6['enableCommand']('toggleImageCaption',(_0x23b055,_0x502a2c)=>{const _0x59b121=_0x347f2d['plugins']['get']('ImageCaptionUtils');let _0x3c5f5d=_0x27c5f2['getClosestSelectedImageElement'](_0x347f2d['model']['document']['selection']),_0x3ab86b=_0x59b121['getCaptionFromImageModelElement'](_0x3c5f5d);_0x347f2d['model']['change'](()=>{if(_0x3ab86b)return void _0x1941c6['markDeletion'](_0x347f2d['model']['createRangeOn'](_0x3ab86b));const _0x102998=_0x27c5f2['isBlockImage'](_0x3c5f5d);_0x23b055(_0x502a2c),_0x3c5f5d=_0x27c5f2['getClosestSelectedImageElement'](_0x347f2d['model']['document']['selection']),_0x3ab86b=_0x59b121['getCaptionFromImageModelElement'](_0x3c5f5d),_0x1941c6['markInsertion'](_0x347f2d['model']['createRangeOn'](_0x3ab86b),_0x102998?null:'imageCaption');});}),_0x1941c6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x38d1b6));const _0x1e2a0b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5db414(_0x167fe7,_0x752986){const _0x321724=_0x1e2a0b['findIndex'](({type:_0x39914f,subType:_0x3ddc40})=>_0x167fe7['type']==_0x39914f&&_0x167fe7['subType']==_0x3ddc40),_0xd61820=_0x1e2a0b['findIndex'](({type:_0x3302ec,subType:_0x60708c})=>_0x752986['type']==_0x3302ec&&_0x752986['subType']==_0x60708c);if(_0x321724<0x0||_0xd61820<0x0)return!0x1;const _0x4e74f8=_0x167fe7['getFirstRange'](),_0x10060c=_0x752986['getFirstRange']();if((0x0==_0x321724||0x1==_0x321724)&&0x2==_0xd61820&&_0x4e74f8['isIntersecting'](_0x10060c))return!0x0;if(0x2==_0x321724&&0x3==_0xd61820){const _0x1d38bb=_0x1941c6['_findSuggestions'](_0x4e74f8,'insertion')['filter'](({suggestion:_0x1875ca,meta:_0x4aae9d})=>_0x4aae9d['isOwn']&&'convertInlineImageToBlock'==_0x1875ca['subType']);if(_0x1d38bb['length']>0x1&&_0x10060c['end']['isEqual'](_0x4e74f8['start']))return!0x0;if(0x1==_0x1d38bb['length']&&(_0x4e74f8['start']['isEqual'](_0x10060c['end'])||_0x4e74f8['end']['isEqual'](_0x10060c['start'])))return!0x0;}if(0x3==_0x321724&&0x3==_0xd61820&&_0x4e74f8['start']['isBefore'](_0x10060c['start'])){const _0x5df218=_0x4e74f8['end']['nodeAfter'],_0x5f11c5=_0x10060c['start']['nodeBefore'];return _0x27c5f2['isBlockImage'](_0x5df218)&&_0x5df218===_0x5f11c5;}return!0x1;}function _0x38d1b6(_0x3c6d06,_0x525ead){return _0x5db414(_0x3c6d06,_0x525ead)?[_0x3c6d06,_0x525ead]:_0x5db414(_0x525ead,_0x3c6d06)?[_0x525ead,_0x3c6d06]:null;}_0x347f2d['plugins']['has']('ImageResize')&&(_0x1941c6['enableDefaultAttributesIntegration']('resizeImage'),_0x1941c6['registerBlockAttribute']('resizedWidth'),_0x1941c6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x47171e,'FORMAT_IMAGE_SIZE'))),_0x347f2d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1941c6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1941c6['registerBlockAttribute']('alt')),_0x1941c6['descriptionFactory']['registerDescriptionCallback'](_0x33b6bd=>{if(!!_0x1e2a0b['find'](({type:_0x44dba4,subType:_0x43b115})=>_0x33b6bd['type']==_0x44dba4&&_0x33b6bd['subType']==_0x43b115))return _0x33b6bd['previous']?{}:void 0x0;}),_0x1941c6['descriptionFactory']['registerDescriptionCallback'](_0x2409d3=>{if('insertion'==_0x2409d3['type']||'deletion'==_0x2409d3['type']){const _0x1f3675=_0x2409d3['getContainedElement']();if(_0x1f3675&&_0x1f3675['is']('element','caption'))return{'type':'insertion'==_0x2409d3['type']?'addObject':'removeObject','element':_0x1f3675,'quantity':0x1};}}),_0x1941c6['descriptionFactory']['registerDescriptionCallback'](_0x23a6f8=>'formatBlock'==_0x23a6f8['type']&&'convertInlineImageToBlock'==_0x23a6f8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x23a6f8['type']&&'convertBlockImageToInline'==_0x23a6f8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1941c6['descriptionFactory']['registerDescriptionCallback'](_0x5232da=>{if('attribute'!=_0x5232da['type'])return;const {data:_0x17a227}=_0x5232da;if(!_0x17a227||'alt'!=_0x17a227['key'])return;const _0x4aa398=_0x17a227['newValue'];return _0x4aa398?{'type':'format','content':o(_0x47171e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4aa398+'\x22')}:{'type':'format','content':o(_0x47171e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28969e=this['editor'],_0x9b3a7f=_0x28969e['locale'];_0x28969e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2647c2=>{if('formatBlock'!=_0x2647c2['type']&&'formatInline'!=_0x2647c2['type'])return;const {data:_0x10e3cc}=_0x2647c2;if(_0x10e3cc){if('imageTextAlternative'==_0x10e3cc['commandName']){const _0x2971e7=_0x10e3cc['commandParams'][0x0]['newValue'];return _0x2971e7?{'type':'format','content':o(_0x9b3a7f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2971e7+'\x22')}:{'type':'format','content':o(_0x9b3a7f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x10e3cc['commandName']){const _0x5bc758=_0x10e3cc['commandParams'][0x0]['width'];return _0x5bc758?{'type':'format','content':o(_0x9b3a7f,'*Set\x20image\x20width:*\x20%0',_0x5bc758)}:{'type':'format','content':o(_0x9b3a7f,'*Reset\x20image\x20width*')};}}});}}class st extends _0x16371d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x8e6f70=this['editor']['locale'],_0x276e9f=this['editor']['plugins']['get']('TrackChangesEditing');_0x276e9f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x276e9f['registerBlockAttribute']('src'),_0x276e9f['descriptionFactory']['registerDescriptionCallback'](_0x59df0e=>{if('attribute'!=_0x59df0e['type'])return;const {data:_0x580faf}=_0x59df0e;return _0x580faf&&'src'==_0x580faf['key']?_0x580faf['newValue']&&_0x580faf['oldValue']?{'type':'format','content':o(_0x8e6f70,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3586e6=this['editor']['plugins']['get']('TrackChangesEditing');_0x3586e6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3586e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3586e6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3586e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13b76e=this['editor'],_0x3484a8=_0x13b76e['locale'];_0x13b76e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x373ce1=>{if('formatBlock'!=_0x373ce1['type']&&'formatInline'!=_0x373ce1['type'])return;const {data:_0x2633ad}=_0x373ce1;if(!_0x2633ad||'replaceImageSource'!=_0x2633ad['commandName'])return;return{'type':'format','content':o(_0x3484a8,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x16371d{['afterInit'](){const _0x115e01=this['editor'];if(!_0x115e01['plugins']['has']('ImageStyleEditing'))return;const _0x5c968e=_0x115e01['plugins']['get']('TrackChangesEditing'),_0x13cfa2=_0x115e01['plugins']['get']('ImageUtils'),_0x31e92c={};_0x5c968e['enableCommand']('imageStyle',(_0x22f6f5,_0x480291)=>{const _0x33dd26=_0x115e01['plugins']['get']('Users')['me'],_0x45b1d6=_0x115e01['commands']['get']('imageStyle');let _0x5a7660=_0x13cfa2['getClosestSelectedImageElement'](_0x115e01['model']['document']['selection']),_0xf87bac=_0x115e01['model']['createRangeOn'](_0x5a7660),_0x12d4bb=_0x45b1d6['value'];if(_0x12d4bb==_0x480291['value'])return;const _0x5dea6a={'commandName':'imageStyle','commandParams':[_0x480291],'formatGroupId':_0x4b80ff()};_0x115e01['model']['change'](()=>{if(_0x5c968e['getSuggestions']()['filter'](_0x22d73e=>_0x22d73e['isInContent']&&_0x33dd26==_0x22d73e['author']&&('formatBlock'==_0x22d73e['type']||'formatInline'==_0x22d73e['type'])&&('imageStylePreApply'==_0x22d73e['subType']||'imageStylePostApply'==_0x22d73e['subType'])&&_0x22d73e['getFirstRange']()['isEqual'](_0xf87bac))['forEach'](_0x46eeab=>_0x5c968e['discardSuggestion'](_0x46eeab['head'])),_0x5a7660=_0x13cfa2['getClosestSelectedImageElement'](_0x115e01['model']['document']['selection']),_0xf87bac=_0x115e01['model']['createRangeOn'](_0x5a7660),_0x45b1d6['refresh'](),_0x115e01['commands']['get']('imageTypeInline')['refresh'](),_0x115e01['commands']['get']('imageTypeBlock')['refresh'](),_0x12d4bb=_0x45b1d6['value'],_0x12d4bb!=_0x480291['value'])return _0x13cfa2['isInlineImage'](_0x5a7660)&&_0x45b1d6['shouldConvertImageType'](_0x480291['value'],_0x5a7660)?(_0x22f6f5({..._0x480291,'setImageSizes':!0x1}),_0x5a7660=_0x13cfa2['getClosestSelectedImageElement'](_0x115e01['model']['document']['selection']),void _0x5c968e['markBlockFormat'](_0x5a7660,{..._0x5dea6a,'commandReversedParams':[{'value':_0x12d4bb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x13cfa2['isBlockImage'](_0x5a7660)?_0x5c968e['markBlockFormat'](_0x5a7660,_0x5dea6a,[],'imageStylePostApply'):_0x5c968e['markInlineFormat'](_0xf87bac,_0x5dea6a,'imageStylePostApply'));});});for(const _0x1f4c48 of _0x115e01['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x31e92c[_0x1f4c48['name']]=_0x1f4c48['title']['toLowerCase']();_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5edcba])=>{_0x13cfa2['setImageNaturalSizeAttributes'](_0x5edcba['getContainedElement']());}),_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x44662b,_0x58bb13)=>{_0x5c968e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x44662b,{'commandName':_0x58bb13['commandName'],'commandParams':_0x58bb13['commandReversedParams']});}),_0x5c968e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x146876,_0x9ced56){if(_0x1ae430(_0x146876,_0x9ced56))return[_0x146876,_0x9ced56];if(_0x1ae430(_0x9ced56,_0x146876))return[_0x9ced56,_0x146876];return null;});const _0x358d5d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ae430(_0x279810,_0x1f3b9e){const _0x421bde=_0x358d5d['findIndex'](({type:_0x544f8e,subType:_0x14f5ed})=>_0x279810['type']==_0x544f8e&&_0x279810['subType']==_0x14f5ed),_0x2be0e5=_0x358d5d['findIndex'](({type:_0x524d4c,subType:_0x5398f2})=>_0x1f3b9e['type']==_0x524d4c&&_0x1f3b9e['subType']==_0x5398f2);if(_0x421bde<0x0||_0x2be0e5<0x0)return!0x1;const _0x3cc822=_0x279810['getFirstRange'](),_0x13d840=_0x1f3b9e['getFirstRange']();if((0x0==_0x421bde||0x1==_0x421bde)&&0x2==_0x2be0e5&&_0x3cc822['isIntersecting'](_0x13d840))return!0x0;if(0x2==_0x421bde&&0x3==_0x2be0e5){const _0x1530ee=_0x5c968e['_findSuggestions'](_0x3cc822,'insertion')['filter'](({suggestion:_0x171cce,meta:_0x29e200})=>_0x29e200['isOwn']&&'convertInlineImageToBlock'==_0x171cce['subType']);if(_0x1530ee['length']>0x1&&_0x13d840['end']['isEqual'](_0x3cc822['start']))return!0x0;if(0x1==_0x1530ee['length']&&(_0x3cc822['start']['isEqual'](_0x13d840['end'])||_0x3cc822['end']['isEqual'](_0x13d840['start'])))return!0x0;}if(0x3==_0x421bde&&0x3==_0x2be0e5&&_0x3cc822['start']['isBefore'](_0x13d840['start'])){const _0x4cd20a=_0x3cc822['end']['nodeAfter'],_0x4a079c=_0x13d840['start']['nodeBefore'];return _0x13cfa2['isBlockImage'](_0x4cd20a)&&_0x4cd20a===_0x4a079c;}return!0x1;}_0x115e01['model']['document']['registerPostFixer'](()=>{let _0x16fdf1=!0x1;const _0x5c2a46=Array['from'](_0x115e01['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c369a,data:_0x4794b8}of _0x5c2a46){const {group:_0x293e96,type:_0x391fae,subType:_0x31bba9,id:_0x1b7e73}=_0x5c968e['_splitMarkerName'](_0x1c369a);if('suggestion'==_0x293e96&&_0x5c968e['hasSuggestion'](_0x1b7e73)){if('formatBlock'==_0x391fae&&('imageStylePreApply'==_0x31bba9||'imageStylePostApply'==_0x31bba9)){const _0x888313=_0x5c968e['getSuggestion'](_0x1b7e73);if(_0x4794b8['newRange']){const _0x45f8af=_0x888313['getFirstRange']()['getContainedElement']();if(_0x13cfa2['isBlockImage'](_0x45f8af))continue;_0x5c968e['discardSuggestion'](_0x888313),_0x16fdf1=!0x0;}}if('insertion'==_0x391fae&&'imageCaption'==_0x31bba9&&!_0x4794b8['newRange']){const _0x2d4f65=_0x5c968e['getSuggestion'](_0x1b7e73);_0x2d4f65['next']&&_0x2d4f65['next']['isInContent']&&(_0x5c968e['discardSuggestion'](_0x2d4f65['next']),_0x16fdf1=!0x0);}}}return _0x16fdf1;}),this['_registerLegacyDescription'](_0x31e92c);}['_registerLegacyDescription'](_0x5dc75d){const _0x19fe00=this['editor'],_0x50166e=_0x19fe00['locale'];_0x19fe00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dae90=>{if('formatBlock'!=_0x5dae90['type']&&'formatInline'!=_0x5dae90['type'])return;const {data:_0x372632}=_0x5dae90;if(!_0x372632||'imageStyle'!=_0x372632['commandName'])return;const _0x196f70=_0x372632['commandParams'][0x0]['value'];return _0xd2bae2('side'===_0x196f70?o(_0x50166e,'FORMAT_SIDE_IMAGE'):_0x5dc75d[_0x196f70]||_0x196f70);function _0xd2bae2(_0x24e99e){return{'type':'format','content':o(_0x50166e,'*Format:*\x20%0',_0x24e99e)};}});}}class ot extends _0x16371d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x48db4c){super(_0x48db4c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5851ba=this['editor'],_0xd75ccd=_0x5851ba['commands']['get']('importWord'),_0x3b1fd4=_0x5851ba['commands']['get']('trackChanges');_0xd75ccd&&(_0xd75ccd['on']('execute',(_0x66ceb0,[,_0x24ce09])=>{this['_trackChangesValueDuringImport']=_0x3b1fd4['value'],_0x24ce09['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd75ccd,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd75ccd,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3b1fd4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5851ba['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1f95cc,_0x4ebd02){const {suggestions:_0x24c711}=_0x4ebd02,_0x50711b=this['editor']['commands']['get']('trackChanges'),_0x162c51=_0x50711b['value'];this['_trackChangesValueDuringImport']!==_0x162c51&&(_0x50711b['execute'](),this['_trackChangesExecuted']=!0x0),_0x24c711&&_0x24c711['forEach'](({id:_0x549a8c,type:_0x1367e8,author:_0x47a64a,created_at:_0x30faef})=>{const _0x494686={'id':_0x549a8c,'type':_0x1367e8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x47a64a,'createdAt':_0x30faef?new Date(_0x30faef):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x494686);});}}class rt extends _0x16371d{['afterInit'](){const _0x4f160b=this['editor'],_0x321fa3=_0x4f160b['plugins']['get']('TrackChangesEditing');if(_0x4f160b['plugins']['has']('IndentEditing')&&(_0x321fa3['enableCommand']('indent'),_0x321fa3['enableCommand']('outdent')),_0x4f160b['plugins']['has']('IndentBlock')){for(const _0x43d463 of['indentBlock','outdentBlock'])_0x321fa3['enableDefaultAttributesIntegration'](_0x43d463);}const _0x274d0c=_0x4f160b['locale'];_0x321fa3['registerBlockAttribute']('blockIndent'),_0x321fa3['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x274d0c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23e658=this['editor'],_0x539880=_0x23e658['locale'],_0x2eb7f5=_0x23e658['plugins']['get']('TrackChangesEditing');_0x2eb7f5['descriptionFactory']['registerDescriptionCallback'](_0x4efca5=>{if('formatBlock'!=_0x4efca5['type'])return;const {data:_0x6606a}=_0x4efca5;if(!_0x6606a)return;if('indentBlock'!=_0x6606a['commandName']&&'outdentBlock'!=_0x6606a['commandName'])return;const _0x8e4810=_0x4efca5['getItems']()[0x0],_0x2857cd=_0x2eb7f5['descriptionFactory']['getItemLabel'](_0x8e4810);return'indentBlock'==_0x6606a['commandName']?{'type':'format','content':o(_0x539880,'*Indent:*\x20%0',_0x2857cd)}:'outdentBlock'==_0x6606a['commandName']?{'type':'format','content':o(_0x539880,'*Outdent:*\x20%0',_0x2857cd)}:void 0x0;});}}class at extends _0x16371d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x16371d{['afterInit'](){const _0x44f609=this['editor'];if(!_0x44f609['plugins']['has']('LinkEditing'))return;const _0x5f2457=_0x44f609['plugins']['get']('TrackChangesEditing'),_0x56eb39=_0x44f609['commands']['get']('link');_0x5f2457['enableDefaultAttributesIntegration']('link'),_0x5f2457['enableDefaultAttributesIntegration']('unlink'),_0x5f2457['registerInlineAttribute']('linkHref');for(const _0x5f4be0 of _0x56eb39['manualDecorators'])_0x5f2457['registerInlineAttribute'](_0x5f4be0['id']),_0x5f2457['descriptionFactory']['registerAttributeLabel'](_0x5f4be0['id'],'link\x20('+_0x5f4be0['label']['toLowerCase']()+')');_0x5f2457['descriptionFactory']['registerDescriptionCallback'](_0x1894b7=>{if('attribute'!=_0x1894b7['type'])return;const {data:_0x4b3e40}=_0x1894b7;if(!_0x4b3e40||'linkHref'!=_0x4b3e40['key'])return;const _0xe31695=_0x4b3e40['newValue'],_0x482fc8=_0x44f609['locale'];return{'type':'format','content':null==_0xe31695?o(_0x482fc8,'*Remove\x20link*'):o(_0x482fc8,'*Set\x20link:*\x20%0','\x22'+_0xe31695+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e948d=this['editor'],_0x3f6f6e=_0x3e948d['locale'];_0x3e948d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bac7c=>{if('formatInline'!=_0x3bac7c['type'])return;const {data:_0x5e9e0b}=_0x3bac7c;if(_0x5e9e0b){if('link'==_0x5e9e0b['commandName']){const _0x3f6f59=_0x5e9e0b['commandParams'][0x0];return{'type':'format','content':o(_0x3f6f6e,'*Set\x20link:*\x20%0','\x22'+_0x3f6f59+'\x22')};}return'unlink'==_0x5e9e0b['commandName']?{'type':'format','content':o(_0x3f6f6e,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x16371d{['afterInit'](){const _0x5f1179=this['editor'],_0x5842bd=_0x5f1179['locale'];if(!_0x5f1179['plugins']['has']('LegacyListEditing'))return;const _0x7d5b86=_0x5f1179['plugins']['get']('TrackChangesEditing'),_0x17b70a=_0x5f1179['plugins']['has']('LegacyTodoListEditing');function _0x4e0d6c(_0x28e374){return()=>{const _0x24dc9f=_0x5f1179['model']['document']['selection'],_0x375599=_0x5f1179['commands']['get'](_0x28e374);if(_0x375599['value'])return void _0x5f1179['execute']('paragraph',{});const _0x199b1d=_0x28e374['slice'](0x0,-0x4),_0x5d5d50=function(_0x5a7b54,_0x40905f,_0x307ddf){let _0x185ada=Array['from'](_0x5a7b54)['filter'](_0x283d92=>function(_0xa665a7,_0x63e9e0){return _0x63e9e0['checkChild'](_0xa665a7['parent'],'listItem')&&!_0x63e9e0['isObject'](_0xa665a7);}(_0x283d92,_0x307ddf));_0x185ada=_0x185ada['filter'](_0x2af99d=>!_0x2af99d['is']('element','listItem')||_0x2af99d['getAttribute']('listType')!=_0x40905f);const _0x1b3b4d=new Set();for(const _0x5ccef6 of _0x185ada)_0x5ccef6['is']('element','listItem')?_0x1b3b4d['add'](me(_0x5ccef6)):_0x1b3b4d['add'](_0x5ccef6);return Array['from'](_0x1b3b4d);}(_0x24dc9f['getSelectedBlocks'](),_0x199b1d,_0x5f1179['model']['schema']);_0x5f1179['model']['change'](()=>{for(const _0x1b86b9 of _0x5d5d50)_0x7d5b86['markBlockFormat'](_0x1b86b9,{'commandName':_0x28e374,'commandParams':[{'forceValue':!_0x375599['value']}],'formatGroupId':'blockName'},fe(_0x1b86b9));});};}function _0x3eac64(_0x3eb57e){return()=>{const _0x181b25=function(_0x567900){let _0x3460f2=Array['from'](_0x567900);const _0x30cf8=_0x3460f2['findIndex'](_0x4aadc1=>'listItem'!=_0x4aadc1['name']);return _0x30cf8>-0x1&&(_0x3460f2=_0x3460f2['slice'](0x0,_0x30cf8)),_0x3460f2;}(_0x5f1179['model']['document']['selection']['getSelectedBlocks']()),_0x1d2b25=_0x5f1179['model']['createRange'](_0x5f1179['model']['createPositionAt'](_0x181b25[0x0],'before'),_0x5f1179['model']['createPositionAt'](_0x181b25[_0x181b25['length']-0x1],'end'));_0x5f1179['model']['change'](()=>{_0x7d5b86['markBlockFormat'](_0x1d2b25,{'commandName':_0x3eb57e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x22d7a6){const _0x136288=new Set();for(const _0x1813e7 of _0x22d7a6){let _0x2cceef=_0x1813e7['nextSibling'];for(;_0x2cceef&&_0x2cceef['getAttribute']('listIndent')>_0x1813e7['getAttribute']('listIndent');)_0x136288['add'](_0x2cceef),_0x2cceef=_0x2cceef['nextSibling'];}return Array['from'](_0x136288);}(_0x181b25));});};}_0x7d5b86['enableCommand']('numberedList',_0x4e0d6c('numberedList')),_0x7d5b86['enableCommand']('bulletedList',_0x4e0d6c('bulletedList')),_0x17b70a&&_0x7d5b86['enableCommand']('todoList',_0x4e0d6c('todoList')),_0x7d5b86['enableCommand']('indentList',_0x3eac64('indentList')),_0x7d5b86['enableCommand']('outdentList',_0x3eac64('outdentList')),_0x17b70a&&_0x7d5b86['enableCommand']('checkTodoList',()=>{const _0x5ea52c=_0x5f1179['commands']['get']('checkTodoList'),_0x135355=Array['from'](_0x5ea52c['_selectedElements']);_0x135355['filter'](_0x1402a0=>_0x1402a0['getAttribute']('todoListChecked')!=_0x5ea52c['value']),_0x5f1179['model']['change'](()=>{for(const _0x5dc3fd of _0x135355)_0x7d5b86['markBlockFormat'](_0x5dc3fd,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5ea52c['value']}]});});}),_0x7d5b86['descriptionFactory']['registerElementLabel']('listItem',_0x49b308=>o(_0x5842bd,'ELEMENT_LIST_ITEM',_0x49b308)),_0x7d5b86['descriptionFactory']['registerDescriptionCallback'](_0x328e15=>{if('formatBlock'!=_0x328e15['type']&&'formatInline'!=_0x328e15['type'])return;const {data:_0x873954}=_0x328e15;if(_0x873954){if('numberedList'==_0x873954['commandName']||'bulletedList'==_0x873954['commandName']||'todoList'==_0x873954['commandName'])switch(_0x873954['commandName']['replace']('List','')){case'bulleted':return _0x393956(o(_0x5842bd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x393956(o(_0x5842bd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x393956(o(_0x5842bd,'ELEMENT_TODO_LIST'));}if('indentList'==_0x873954['commandName'])return{'type':'format','content':o(_0x5842bd,'*Indent:*\x20%0',o(_0x5842bd,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x873954['commandName'])return{'type':'format','content':o(_0x5842bd,'*Outdent:*\x20%0',o(_0x5842bd,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x873954['commandName'])return _0x873954['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5842bd,'*Check\x20item*')}:{'type':'format','content':o(_0x5842bd,'*Uncheck\x20item*')};}function _0x393956(_0x3e46df){return{'type':'format','content':o(_0x5842bd,'*Change\x20to:*\x20%0',_0x3e46df)};}});}}function me(_0x32b7d5){const _0x1bfbb8=_0x32b7d5['getAttribute']('listIndent');if(0x0==_0x1bfbb8)return _0x32b7d5;let _0x4f4a1e=_0x32b7d5;for(;_0x32b7d5['previousSibling']&&_0x32b7d5['previousSibling']['is']('element','listItem');){const _0xfa449d=_0x32b7d5['previousSibling']['getAttribute']('listIndent');if(_0xfa449d==_0x1bfbb8)_0x4f4a1e=_0x32b7d5['previousSibling'];else{if(_0xfa449d<_0x1bfbb8)break;}_0x32b7d5=_0x32b7d5['previousSibling'];}return _0x4f4a1e;}function fe(_0x1e32a5){const _0xe215ab=[];if(_0x1e32a5['is']('element','listItem')&&_0x1e32a5['getAttribute']('listIndent')>0x0){let _0x2eb5eb=_0x1e32a5['nextSibling'];for(;_0x2eb5eb&&'listItem'==_0x2eb5eb['name']&&_0x2eb5eb['getAttribute']('listIndent')==_0x1e32a5['getAttribute']('listIndent');)_0xe215ab['push'](_0x2eb5eb),_0x2eb5eb=_0x2eb5eb['nextSibling'];}return _0xe215ab;}class K extends _0x16371d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x347844=this['editor']['config']['get']('list.properties'),_0xed5304=this['editor']['plugins']['get']('TrackChangesEditing');_0x347844['styles']&&_0xed5304['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x347844['reversed']&&_0xed5304['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x347844['startIndex']&&_0xed5304['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xed5304['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x172078,_0x38481a={}){const _0x2e415d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d54f6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2e415d['markMultiRangeBlockFormat'](_0x2d54f6,{'commandName':'listStyle','commandParams':[{'type':_0x38481a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x240fda,_0xb9464d={}){const _0x290dcd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3db082=this['_getSuggestionBlocks'](_0x565ae8=>_0x565ae8['is']('element','listItem')&&'numbered'===_0x565ae8['getAttribute']('listType'));if(_0x3db082['length']<0x1)return;const _0x54b1a5=_0x3db082['map'](_0x357eaa=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x357eaa,'before'),this['editor']['model']['createPositionAt'](_0x357eaa,0x0)));this['editor']['model']['change'](()=>{_0x290dcd['markMultiRangeBlockFormat'](_0x54b1a5,{'commandName':'listReversed','commandParams':[{'reversed':_0xb9464d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xd11fb9,_0x3cd73e={}){const _0x4bf776=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40fb7a=this['_getSuggestionBlocks'](_0x2f28a3=>_0x2f28a3['is']('element','listItem')&&'numbered'===_0x2f28a3['getAttribute']('listType'));if(_0x40fb7a['length']<0x1)return;const _0x2d62d7=_0x40fb7a['map'](_0x5b32f1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b32f1,'before'),this['editor']['model']['createPositionAt'](_0x5b32f1,0x0)));this['editor']['model']['change'](()=>{_0x4bf776['markMultiRangeBlockFormat'](_0x2d62d7,{'commandName':'listStart','commandParams':[{'startIndex':_0x3cd73e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1fd2a1){if('formatBlock'!=_0x1fd2a1['type']&&'formatInline'!=_0x1fd2a1['type'])return;const _0x5b4259=this['editor']['locale'],{data:_0x3d78f2}=_0x1fd2a1;if(!_0x3d78f2)return;let _0x3a4b8e,_0x412de8;switch(_0x3d78f2['commandName']){case'listStyle':_0x3a4b8e='*Change\x20to:*\x20%0',_0x412de8={'type':'format','content':o(_0x5b4259,_0x3a4b8e,o(_0x5b4259,this['_getTranslationKeyForListStyle'](_0x3d78f2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3a4b8e=_0x3d78f2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x412de8={'type':'format','content':o(_0x5b4259,_0x3a4b8e)};break;case'listStart':_0x3a4b8e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x412de8={'type':'format','content':o(_0x5b4259,_0x3a4b8e,_0x3d78f2['commandParams'][0x0]['startIndex'])};}return _0x412de8;}['_getSuggestionBlocksForListStyle'](){const _0x276a42=this['editor']['plugins']['get']('LegacyListUtils');let _0x5dea77=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5dea77[0x0]?.['is']('element','listItem')&&_0x5dea77['unshift'](..._0x276a42['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5dea77[_0x5dea77['length']-0x1]?.['is']('element','listItem')&&_0x5dea77['push'](..._0x276a42['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5dea77=[...new Set(_0x5dea77)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5dea77=_0x5dea77['filter'](_0x51fdb9=>_0x51fdb9['is']('element','listItem'))),_0x5dea77;}['_getSuggestionBlocks'](_0x32549b){const _0x4574dd=this['editor']['plugins']['get']('LegacyListUtils');let _0x15f27e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x32549b)['map'](_0x4e1ffb=>{const _0x58129b=this['editor']['model']['createPositionAt'](_0x4e1ffb,0x0);return[..._0x4574dd['getSiblingNodes'](_0x58129b,'backward'),..._0x4574dd['getSiblingNodes'](_0x58129b,'forward')];})['flat']();return _0x15f27e=[...new Set(_0x15f27e)],_0x15f27e;}['_getTranslationKeyForListStyle'](_0xa58715){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xa58715)||'default')['toUpperCase']()+'_LIST_'+_0xa58715['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x16371d{['afterInit'](){const _0x5b8825=this['editor'];if(!_0x5b8825['plugins']['has']('MediaEmbedEditing'))return;const _0x4c1c4b=_0x5b8825['plugins']['get']('TrackChangesEditing'),_0x10f640=_0x5b8825['locale'];_0x4c1c4b['enableCommand']('mediaEmbed'),_0x4c1c4b['descriptionFactory']['registerElementLabel']('media',_0x12f434=>o(_0x10f640,'ELEMENT_MEDIA',_0x12f434)),_0x5b8825['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xa33bf3,{writer:_0x471d20,options:_0x9b93cb})=>{if(_0x9b93cb['showSuggestionHighlights'])return _0x471d20['createEmptyElement']('div');},'converterPriority':'high'}),_0x5b8825['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3e5e88,_0x34bf0b,_0x1fdda4)=>{_0x1fdda4['options']['showSuggestionHighlights']&&_0x3e5e88['stop']();},{'priority':'high'});}}class gt extends _0x16371d{['afterInit'](){const _0x379098=this['editor'];_0x379098['plugins']['has']('MentionEditing')&&_0x379098['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x16371d{['afterInit'](){const _0x57da05=this['editor'],_0x1fd1e3=_0x57da05['plugins']['get']('TrackChangesEditing');_0x57da05['plugins']['has']('MultiLevelList')&&(_0x1fd1e3['enableDefaultAttributesIntegration']('multiLevelList'),_0x1fd1e3['registerBlockAttribute']('listMarkerStyle'),_0x1fd1e3['descriptionFactory']['registerDescriptionCallback'](_0xa6dc69=>this['handleDescriptions'](_0xa6dc69)));}['handleDescriptions'](_0x18308a){const _0x3ebb34=this['editor']['locale'],{data:_0x28c71c}=_0x18308a,_0x3683c0={'type':'format','content':''};if(_0x28c71c&&'listMarkerStyle'==_0x28c71c['key']){if(!_0x28c71c['oldValue'])return{'type':'format','content':o(_0x3ebb34,'*Set\x20format:*\x20%0',o(_0x3ebb34,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x28c71c['newValue']+')'};if(!_0x28c71c['newValue']){let _0x5663bb=_0x18308a['head'];for(;_0x5663bb;){if(_0x5663bb['data']&&'listType'==_0x5663bb['data']['key']&&_0x5663bb['data']['newValue'])return _0x3683c0;_0x5663bb=_0x5663bb['next'];}return{'type':'format','content':o(_0x3ebb34,'*Remove\x20format:*\x20%0',o(_0x3ebb34,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x28c71c['oldValue']+')'};}}}}class mt extends _0x16371d{['afterInit'](){const _0x2d7224=this['editor'];if(!_0x2d7224['plugins']['has']('PageBreakEditing'))return;_0x2d7224['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x24a1e7=_0x2d7224['plugins']['get']('TrackChangesEditing'),_0x141d90=_0x2d7224['locale'];_0x24a1e7['descriptionFactory']['registerElementLabel']('pageBreak',_0x52bdee=>o(_0x141d90,'ELEMENT_PAGE_BREAK',_0x52bdee));}}class dt extends _0x16371d{['afterInit'](){const _0x1f306b=this['editor'];if(!_0x1f306b['plugins']['has']('Paragraph'))return;const _0x5ddcee=_0x1f306b['locale'],_0x35313e=_0x1f306b['plugins']['get']('TrackChangesEditing');_0x35313e['descriptionFactory']['registerElementLabel']('paragraph',_0x2fd400=>o(_0x5ddcee,'ELEMENT_PARAGRAPH',_0x2fd400)),_0x35313e['enableDefaultAttributesIntegration']('paragraph'),_0x35313e['enableCommand']('insertParagraph'),_0x1f306b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1f306b),{'priority':'highest'}),_0x1f306b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x43ea15,_0x15be8d,_0x8c15e9)=>{_0x8c15e9['options']['showSuggestionHighlights']&&nr(_0x1f306b,{'showActiveMarker':!0x1})(_0x43ea15,_0x15be8d,_0x8c15e9);},{'priority':'highest'});const _0xcf3b41=_0x35313e['descriptionFactory'];_0xcf3b41['registerDescriptionCallback'](_0x270027=>{if('insertion'!==_0x270027['type'])return;const {start:_0x3e5538,end:_0x13788a}=_0x270027['getFirstRange']();if(!_0x3e5538['isTouching'](_0x13788a)||!_0x3e5538['nodeAfter'])return;const _0x508487=_0x1f306b['model']['schema'],_0x5eb498=_0x3e5538['nodeAfter'];return _0x508487['isBlock'](_0x5eb498)&&!_0x508487['isLimit'](_0x5eb498)&&_0x508487['checkChild'](_0x5eb498,'$text')?{'type':'insertion','content':o(_0x5ddcee,'*Insert:*\x20%0',_0xcf3b41['getItemLabel'](_0x5eb498,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35c5a0=this['editor'],_0x176abd=_0x35c5a0['locale'];_0x35c5a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3abfa4=>{if('formatBlock'!=_0x3abfa4['type'])return;const {data:_0x36df92}=_0x3abfa4;return _0x36df92&&'paragraph'==_0x36df92['commandName']?{'type':'format','content':o(_0x176abd,'*Change\x20to:*\x20%0',o(_0x176abd,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3ebd73,{showActiveMarker:_0x6f0002=!0x0}={}){return(_0x181b46,_0x20c956,_0x2fdb04)=>{const _0x55387a=_0x3ebd73['plugins']['get']('TrackChangesEditing'),_0x5a0c6f=_0x20c956['markerRange']['start'],_0x43bf88=_0x20c956['markerRange']['end'],_0x4ed886=_0x3ebd73['model']['schema'];if(!_0x5a0c6f['isTouching'](_0x43bf88)||!_0x5a0c6f['nodeAfter'])return;const _0x561655=_0x5a0c6f['nodeAfter'];if(_0x4ed886['isBlock'](_0x561655)&&!_0x4ed886['isLimit'](_0x561655)&&_0x4ed886['checkChild'](_0x561655,'$text')){if(!_0x2fdb04['consumable']['consume'](_0x20c956['markerRange'],_0x181b46['name']))return;const _0x37d766=_0x2fdb04['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x4ac1c4=_0x2fdb04['mapper']['toViewPosition'](_0x43bf88);_0x6f0002&&_0x55387a['activeMarkers']['includes'](_0x20c956['markerName'])&&_0x2fdb04['writer']['addClass']('ck-suggestion-marker--active',_0x37d766),_0x2fdb04['writer']['insert'](_0x4ac1c4,_0x37d766),_0x2fdb04['mapper']['bindElementToMarker'](_0x37d766,_0x20c956['markerName']);}};}class pt extends _0x16371d{['afterInit'](){const _0x32c024=this['editor'];if(!_0x32c024['plugins']['has']('RemoveFormatEditing'))return;_0x32c024['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49e245=this['editor'];_0x49e245['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53f284=>{if('formatBlock'!=_0x53f284['type']&&'formatInline'!=_0x53f284['type'])return;const {data:_0x1962df}=_0x53f284;return _0x1962df&&'removeFormat'==_0x1962df['commandName']?{'type':'format','content':o(_0x49e245['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x16371d{['afterInit'](){const _0x4c0a03=this['editor'];if(!_0x4c0a03['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5f316d=_0x4c0a03['plugins']['get']('TrackChangesEditing');_0x5f316d['enableCommand']('goToPreviousRestrictedEditingException'),_0x5f316d['enableCommand']('goToNextRestrictedEditingException');const _0x3af6b1=_0x4c0a03['plugins']['get']('RestrictedEditingModeEditing');_0x3af6b1['enableCommand']('trackChanges'),_0x3af6b1['enableCommand']('acceptSuggestion'),_0x3af6b1['enableCommand']('discardSuggestion'),_0x3af6b1['enableCommand']('acceptAllSuggestions'),_0x3af6b1['enableCommand']('discardAllSuggestions'),_0x3af6b1['enableCommand']('acceptSelectedSuggestions'),_0x3af6b1['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x16371d{static get['requires'](){return[_0x5406cc];}['init'](){const _0x4ae660=this['editor'],_0x2186d5=_0x4ae660['plugins']['get']('TrackChangesEditing');_0x2186d5['enableCommand']('shiftEnter'),_0x4ae660['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x4ae660),{'priority':'high'}),_0x4ae660['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x4ae660),{'priority':'high'}),_0x4ae660['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x27e639,_0x2c1026,_0x3e6070)=>{_0x3e6070['options']['showSuggestionHighlights']&&de(_0x4ae660,{'showActiveMarker':!0x1})(_0x27e639,_0x2c1026,_0x3e6070);}),_0x2186d5['descriptionFactory']['registerElementLabel']('softBreak',_0x36f7b7=>o(_0x4ae660['locale'],'ELEMENT_LINE_BREAK',_0x36f7b7));}}function de(_0x1fdfb7,{showActiveMarker:_0x28f27c=!0x0}={}){return(_0x5a1c97,_0x13fbed,_0x4c81ea)=>{const _0x5ab417=_0x1fdfb7['plugins']['get']('TrackChangesEditing');if(!_0x4c81ea['consumable']['test'](_0x13fbed['markerRange'],_0x5a1c97['name']))return;const _0x1e564e=_0x1fdfb7['model'];for(const _0xb0e10e of _0x13fbed['markerRange']['getItems']()){if(!_0xb0e10e['is']('element','softBreak'))continue;const _0x3fe903='deletion'==_0x13fbed['markerName']['split'](':')[0x1]?'merge':'split',_0x557c56=_0x4c81ea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3fe903}),_0x5890f2=_0x4c81ea['mapper']['toViewPosition'](_0x1e564e['createPositionBefore'](_0xb0e10e));_0x28f27c&&_0x5ab417['activeMarkers']['includes'](_0x13fbed['markerName'])&&_0x4c81ea['writer']['addClass']('ck-suggestion-marker--active',_0x557c56),_0x4c81ea['writer']['insert'](_0x5890f2,_0x557c56),_0x4c81ea['mapper']['bindElementToMarker'](_0x557c56,_0x13fbed['markerName']);}};}class wt extends _0x16371d{['afterInit'](){const _0x515665=this['editor'],_0x3c7795=_0x515665['model'],_0x3a5312=_0x515665['locale'];if(!_0x515665['plugins']['has']('StandardEditingModeEditing'))return;const _0x264703=_0x515665['plugins']['get']('TrackChangesEditing'),_0x15a885='restrictedEditingException',_0xe93248=_0x515665['commands']['get'](_0x15a885);_0x264703['enableCommand'](_0x15a885,(_0x27cabe,_0xbe9838={})=>{const _0x1b590a=_0x3c7795['document']['selection'];if(_0x1b590a['isCollapsed'])return void _0x27cabe(_0xbe9838);const _0x5871d1=void 0x0!==_0xbe9838['forceValue']?_0xbe9838['forceValue']:!_0xe93248['value'];_0x3c7795['change'](()=>{const _0x332570=Array['from'](_0x1b590a['getRanges']());for(const _0x3f83ff of _0x332570){const _0x41f8af=_0x5871d1?[_0x3f83ff]:io(_0x15a885,_0x3f83ff,_0x3c7795);for(const _0x1aa37b of _0x41f8af)_0x264703['markInlineFormat'](_0x1aa37b,{'commandName':_0x15a885,'commandParams':[{'forceValue':_0x5871d1}]});}});}),_0x264703['descriptionFactory']['registerDescriptionCallback'](_0x3150fe=>{if('formatBlock'!=_0x3150fe['type']&&'formatInline'!=_0x3150fe['type'])return;const {data:_0x55db98}=_0x3150fe;return _0x55db98&&_0x55db98['commandName']==_0x15a885?_0x55db98['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a5312,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3a5312,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x16371d{['afterInit'](){const _0x7539bb=this['editor'];if(!_0x7539bb['plugins']['has']('Style')||!_0x7539bb['plugins']['has']('DataSchema'))return;const _0xca823d=_0x7539bb['plugins']['get']('TrackChangesEditing'),_0x50b0a1=_0x7539bb['locale'],_0x1c1405=_0x7539bb['config']['get']('style')||{},_0x29daf8=_0x7539bb['plugins']['get']('GeneralHtmlSupport'),_0x2e0e81=_0x7539bb['plugins']['get']('StyleUtils')['normalizeConfig'](_0x7539bb['plugins']['get']('DataSchema'),_0x1c1405['definitions']);_0xca823d['enableDefaultAttributesIntegration']('style');const _0x55eec3=new Set();for(const _0x5319f2 of _0x2e0e81['block']){const _0x35aa00=_0x29daf8['getGhsAttributeNameForElement'](_0x5319f2['element']);_0x55eec3['add'](_0x35aa00);}const _0x216991=new Set();for(const _0x4feb46 of _0x2e0e81['inline']){const _0x273640=_0x29daf8['getGhsAttributeNameForElement'](_0x4feb46['element']);_0x216991['add'](_0x273640);for(const _0x20af0d of _0x4feb46['ghsAttributes'])_0x216991['add'](_0x20af0d);}for(const _0x139b24 of _0x55eec3)_0xca823d['registerBlockAttribute'](_0x139b24),_0xca823d['descriptionFactory']['registerAttributeLabel'](_0x139b24,o(_0x50b0a1,'FORMAT_STYLE'));for(const _0x5bc4a9 of _0x216991)_0xca823d['registerInlineAttribute'](_0x5bc4a9),_0xca823d['descriptionFactory']['registerAttributeLabel'](_0x5bc4a9,o(_0x50b0a1,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d9900=this['editor'],_0xc47628=_0x4d9900['locale'];_0x4d9900['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cd822=>{if('formatBlock'!=_0x3cd822['type']&&'formatInline'!=_0x3cd822['type'])return;const {data:_0x530250}=_0x3cd822;return _0x530250&&'style'===_0x530250['commandName']?_0x530250['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc47628,'*Set\x20format:*\x20%0',_0x530250['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xc47628,'*Remove\x20format:*\x20%0',_0x530250['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x16371d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1ade94){super(_0x1ade94),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x506265=this['editor'],_0x5bc3ee=_0x506265['model']['document']['selection'];if(!_0x506265['plugins']['has']('TableEditing'))return;const _0x50a85a=_0x506265['locale'],_0x149c88=_0x506265['plugins']['get']('TrackChangesEditing'),_0x472023=_0x506265['plugins']['get']('TableUtils');_0x149c88['descriptionFactory']['registerElementLabel']('table',_0x3b5f5c=>o(_0x50a85a,'ELEMENT_TABLE',_0x3b5f5c)),this['_setupColumnsRowsFixing'](),_0x149c88['enableCommand']('insertTable'),_0x149c88['enableCommand']('selectTableRow'),_0x149c88['enableCommand']('selectTableColumn');for(const _0x21b00e of['insertTableRowAbove','insertTableRowBelow']){const _0x2d22c7=_0x506265['commands']['get'](_0x21b00e);_0x149c88['enableCommand'](_0x21b00e,_0x62b386=>{_0x506265['model']['change'](_0x337646=>{_0x62b386();const _0x6ad049='above'===_0x2d22c7['order'],_0x375d41=_0x472023['getSelectionAffectedTableCells'](_0x5bc3ee),_0x503bff=_0x472023['getRowIndexes'](_0x375d41),_0x3a61ad=_0x6ad049?_0x503bff['first']-0x1:_0x503bff['last']+0x1,_0x2bb991=_0x375d41[0x0]['findAncestor']('table'),_0x3da915=_0x472023['createTableWalker'](_0x2bb991,{'startRow':_0x3a61ad,'endRow':_0x3a61ad}),_0x1eb0ea=Array['from'](_0x3da915)['map'](_0x26d4b4=>_0x337646['createRangeOn'](_0x26d4b4['cell']));_0x149c88['markMultiRangeInsertion'](_0x1eb0ea,'tableRow');});});}for(const _0x266131 of['insertTableColumnLeft','insertTableColumnRight']){const _0x12e1c0=_0x506265['commands']['get'](_0x266131);_0x149c88['enableCommand'](_0x266131,_0x33b01e=>{_0x506265['model']['change'](_0x5e990f=>{_0x33b01e();const _0x252e8d='left'===_0x12e1c0['order'],_0x23bfd3=_0x472023['getSelectionAffectedTableCells'](_0x5bc3ee),_0x4747f9=_0x472023['getColumnIndexes'](_0x23bfd3),_0x412bd2=_0x252e8d?_0x4747f9['first']-0x1:_0x4747f9['last']+0x1,_0x4ba3ed=_0x23bfd3[0x0]['findAncestor']('table'),_0x1c9590=_0x472023['createTableWalker'](_0x4ba3ed,{'startRow':0x0,'column':_0x412bd2,'includeAllSlots':!0x1}),_0x407b5e=Array['from'](_0x1c9590)['map'](_0x264738=>_0x5e990f['createRangeOn'](_0x264738['cell']));_0x149c88['markMultiRangeInsertion'](_0x407b5e,'tableColumn');});});}for(const _0x2889e4 of['removeTableRow','removeTableColumn']){const _0x42b013=_0x2889e4['substr'](0xb),_0xb84f3f=_0x42b013['toLowerCase'](),_0x265645=_0xb84f3f['substr'](0x0,0x3)+'span',_0x591983='table'+_0x42b013,_0x32a97e='min'+_0x42b013,_0x335d06='max'+_0x42b013;_0x149c88['enableCommand'](_0x2889e4,()=>{_0x506265['model']['change'](_0x4af68c=>{const _0x103246=_0x472023['getSelectionAffectedTableCells'](_0x5bc3ee),_0x233beb=_0x103246[0x0]['findAncestor']('table');let _0x1ff00f;if('removeTableRow'==_0x2889e4){const _0x1ab9b4=_0x472023['getRowIndexes'](_0x103246);_0x1ff00f={'startRow':_0x1ab9b4['first'],'endRow':_0x1ab9b4['last'],'includeAllSlots':!0x0};}else{const _0x314286=_0x472023['getColumnIndexes'](_0x103246);_0x1ff00f={'startColumn':_0x314286['first'],'endColumn':_0x314286['last'],'includeAllSlots':!0x0};}const _0x3d2a06=_0x472023['createTableWalker'](_0x233beb,_0x1ff00f),_0xd56e=Array['from'](_0x3d2a06)['map'](({cell:_0x160ea8})=>_0x160ea8),_0x5c9b2c=Ee(_0xd56e['filter'](_0xcd24e1=>_0xcd24e1['hasAttribute'](_0x265645))),_0x4dd095=Ee(_0xd56e['filter'](_0x18b2c7=>!_0x18b2c7['hasAttribute'](_0x265645)))['map'](_0x2963a1=>_0x4af68c['createRangeOn'](_0x2963a1)),_0x37f086=_0x149c88['markMultiRangeDeletion'](_0x4dd095,_0x591983);if(_0x37f086&&('tableRow'==_0x37f086['subType']||'tableColumn'==_0x37f086['subType'])){const _0x222f1b=this['_getSuggestionCoords'](_0x37f086);for(const _0x42012a of _0x5c9b2c){const _0x50da60=_0x4af68c['createRangeOn'](_0x42012a),_0x3eb712=_0x472023['getCellLocation'](_0x42012a),_0x4ebe63=_0x42012a['getAttribute'](_0x265645)-0x1,_0x290c7a=_0x222f1b[_0x32a97e],_0x126825=_0x222f1b[_0x335d06];_0x290c7a<=_0x3eb712[_0xb84f3f]&&_0x3eb712[_0xb84f3f]+_0x4ebe63<=_0x126825&&_0x37f086['addRange'](_0x50da60);}}});});}function _0x4270be(_0x148d6c){const _0x481304=Array['from'](_0x5bc3ee['getRanges']())['map'](_0x324903=>_0x218be5['fromRange'](_0x324903));_0x506265['model']['change'](_0x1bdb15=>{const _0x21f990=_0x1bdb15['batch'];_0x148d6c=_0x148d6c['filter'](_0x3ed51c=>'$graveyard'!=_0x3ed51c['root']['rootName']),_0x1bdb15['setSelection'](_0x148d6c),_0x506265['commands']['get']('removeTableRow')['refresh'](),_0x506265['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x506265['model']['enqueueChange'](()=>{_0x506265['model']['enqueueChange'](_0x21f990,_0x379a96=>{const _0x245647=_0x481304['filter'](_0xebba01=>'$graveyard'!=_0xebba01['root']['rootName']);_0x245647['length']>0x0&&_0x379a96['setSelection'](_0x245647);for(const _0xa481cc of _0x481304)_0xa481cc['detach']();});});});}function _0x481d8c(_0x5e990e){_0x506265['model']['change'](_0x2645da=>{const _0x44d3e8=Array['from'](_0x5bc3ee['getRanges']())['map'](_0x52caf0=>_0x218be5['fromRange'](_0x52caf0)),_0x2f38e7=[];for(const _0x5dcc77 of _0x5e990e)for(const _0x5ab8ca of _0x5dcc77['getItems']({'shallow':!0x0}))_0x2f38e7['push'](_0x5ab8ca);for(const _0x254c87 of _0x2f38e7)'$graveyard'!=_0x254c87['root']['rootName']&&(_0x2645da['setSelection'](_0x2645da['createPositionAt'](_0x254c87,0x0)),_0x506265['commands']['get']('removeTableColumn')['refresh'](),_0x506265['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2bd969=_0x44d3e8['filter'](_0x4ba638=>'$graveyard'!=_0x4ba638['root']['rootName']);_0x2bd969['length']>0x0&&_0x2645da['setSelection'](_0x2bd969);for(const _0x35bf51 of _0x44d3e8)_0x35bf51['detach']();});}function _0x5bb1e5(_0xa9a6c0,_0x257db){return _0x257db['every'](_0x5869de=>_0xa9a6c0['some'](_0x5539eb=>_0x5539eb['end']['isEqual'](_0x5869de['start'])||_0x5869de['end']['isEqual'](_0x5539eb['start'])));}function _0x5db349(_0x3c54c1,_0x32866a){return!_0x3c54c1['some'](_0x5acee1=>_0x32866a['some'](_0x5237e3=>_0x5acee1['isIntersecting'](_0x5237e3)))&&_0x3c54c1['some'](_0x46e077=>_0x32866a['some'](_0x59e283=>_0x46e077['end']['isTouching'](_0x59e283['start'])));}_0x506265['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x218ade,_0x13a9b9,_0x550f2d)=>{if(!_0x550f2d['options']['showSuggestionHighlights'])return;const _0x236a16=_0x13a9b9['item'];if(!_0x236a16)return;const _0x695d68=_0x550f2d['mapper']['toViewElement'](_0x236a16);function _0x5e90eb(_0x97665c){return Array['isArray'](_0x97665c)?_0x97665c:[_0x97665c];}_0x695d68&&'tableCell'===_0x236a16['name']&&_0x2b8f92(_0x695d68,_0x550f2d['writer'],(_0x321bbb,_0x4b85f2,_0x4b47d3)=>_0x4b47d3['addClass'](_0x5e90eb(_0x4b85f2['classes']),_0x321bbb),(_0x5e0f00,_0x19b7c0,_0x64c8ea)=>_0x64c8ea['removeClass'](_0x5e90eb(_0x19b7c0['classes']),_0x5e0f00));},{'priority':'highest'}),_0x149c88['descriptionFactory']['registerDescriptionCallback'](_0x10be0e=>{if('insertion'!=_0x10be0e['type']&&'deletion'!=_0x10be0e['type'])return;const _0xff48e2=_0x10be0e['getContainedElement']();if(null!=_0xff48e2&&_0xff48e2['is']('element','table')){if('insertion'==_0x10be0e['type']){const _0x1a62cd=_0x10be0e['getItems']()['filter'](_0x5a4248=>_0x5a4248['is']('$textProxy'))['map'](_0x555c35=>_0x555c35['data']);if(_0x1a62cd['length'])return{'type':'insertion','content':o(_0x50a85a,'*Insert:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1a62cd['join']('\x20')+'\x22'))};}if('deletion'==_0x10be0e['type']){const _0x416dcc=_0x10be0e['getItems']()['filter'](_0x2c907a=>_0x2c907a['is']('$textProxy'))['map'](_0x1930b0=>_0x1930b0['data']);if(_0x416dcc['length'])return{'type':'deletion','content':o(_0x50a85a,'*Remove:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x416dcc['join']('\x20')+'\x22'))};}}}),_0x149c88['descriptionFactory']['registerDescriptionCallback'](_0xa75a46=>{if('tableRow'==_0xa75a46['subType']){const _0x2713ab=_0xa75a46['getItems']()['filter'](_0x44514c=>_0x44514c['is']('$textProxy'))['map'](_0x44c484=>_0x44c484['data']),_0x5d54a2=this['_getSuggestionCoords'](_0xa75a46),_0x367cae=_0x5d54a2['maxRow']-_0x5d54a2['minRow']+0x1;if('insertion'==_0xa75a46['type'])return _0x2713ab['length']?{'type':'insertion','content':o(_0x50a85a,'*Insert:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x367cae,'\x22'+_0x2713ab['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50a85a,'*Insert:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_ROW',_0x367cae))};if('deletion'==_0xa75a46['type'])return _0x2713ab['length']?{'type':'deletion','content':o(_0x50a85a,'*Remove:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x367cae,'\x22'+_0x2713ab['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50a85a,'*Remove:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_ROW',_0x367cae))};}if('tableColumn'==_0xa75a46['subType']){const _0x2c8b59=_0xa75a46['getItems']()['filter'](_0x5fe706=>_0x5fe706['is']('$textProxy'))['map'](_0x4c66a1=>_0x4c66a1['data']),_0x1ec519=this['_getSuggestionCoords'](_0xa75a46),_0x40f4a2=_0x1ec519['maxColumn']-_0x1ec519['minColumn']+0x1;if('insertion'==_0xa75a46['type'])return _0x2c8b59['length']?{'type':'insertion','content':o(_0x50a85a,'*Insert:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x40f4a2,'\x22'+_0x2c8b59['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50a85a,'*Insert:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_COLUMN',_0x40f4a2))};if('deletion'==_0xa75a46['type'])return _0x2c8b59['length']?{'type':'deletion','content':o(_0x50a85a,'*Remove:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x40f4a2,'\x22'+_0x2c8b59['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50a85a,'*Remove:*\x20%0',o(_0x50a85a,'ELEMENT_TABLE_COLUMN',_0x40f4a2))};}}),_0x149c88['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4270be),_0x149c88['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4270be),_0x149c88['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x481d8c),_0x149c88['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x481d8c),_0x149c88['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5bb1e5),_0x149c88['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5bb1e5),_0x149c88['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5db349),_0x149c88['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5db349);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4a69de=this['editor'],_0x16ff09=_0x4a69de['model']['document']['selection'];return(_0x1bf9ab,_0x50cbbe)=>{_0x4a69de['model']['change'](_0x4ee3d7=>{const {commandName:_0x9a66a9,commandParams:_0x5858fa}=_0x50cbbe;let _0x7250d=_0x1bf9ab[0x0]['end']['nodeBefore'];_0x5858fa&&_0x5858fa[0x0]&&!0x1===_0x5858fa[0x0]['forceValue']&&(_0x7250d=_0x1bf9ab[0x0]['start']['nodeAfter']);const _0x165936=_0x4ee3d7['createRangeIn'](_0x7250d);if('$graveyard'==_0x165936['root']['rootName'])return;const _0x5e8379=Array['from'](_0x16ff09['getRanges']())['map'](_0x4689cb=>_0x218be5['fromRange'](_0x4689cb));_0x4ee3d7['setSelection'](_0x165936),_0x4a69de['commands']['get'](_0x9a66a9)['refresh'](),_0x5858fa['push']({'forceDefaultExecution':!0x0}),_0x4a69de['execute'](_0x9a66a9,..._0x5858fa);const _0x1ff0c2=_0x5e8379['filter'](_0x366eae=>'$graveyard'!=_0x366eae['root']['rootName']);_0x1ff0c2['length']>0x0&&_0x4ee3d7['setSelection'](_0x1ff0c2);for(const _0x57efa1 of _0x5e8379)_0x57efa1['detach']();});};}['_getCoordsForCells'](_0x5aaf6a){const _0x666a90=this['editor']['plugins']['get']('TableUtils');let _0x301649=Number['MAX_SAFE_INTEGER'],_0x107760=Number['MIN_SAFE_INTEGER'],_0x525fa6=Number['MAX_SAFE_INTEGER'],_0x4c2195=Number['MIN_SAFE_INTEGER'];for(const _0x48ab00 of _0x5aaf6a){if('$graveyard'==_0x48ab00['root']['rootName'])continue;const {row:_0x2943e1,column:_0x127d24}=_0x666a90['getCellLocation'](_0x48ab00),_0x50df5b=_0x48ab00['hasAttribute']('rowspan')?_0x48ab00['getAttribute']('rowspan')-0x1:0x0,_0x2cae4d=_0x48ab00['hasAttribute']('colspan')?_0x48ab00['getAttribute']('colspan')-0x1:0x0;_0x301649=_0x2943e1<_0x301649?_0x2943e1:_0x301649,_0x107760=_0x2943e1+_0x50df5b>_0x107760?_0x2943e1+_0x50df5b:_0x107760,_0x525fa6=_0x127d24<_0x525fa6?_0x127d24:_0x525fa6,_0x4c2195=_0x127d24+_0x2cae4d>_0x4c2195?_0x127d24+_0x2cae4d:_0x4c2195;}return{'minRow':_0x301649,'maxRow':_0x107760,'minColumn':_0x525fa6,'maxColumn':_0x4c2195};}['_setupColumnsRowsFixing'](){const _0x3e3124=this['editor'],_0x1e034c=_0x3e3124['plugins']['get']('TrackChangesEditing'),_0x145a8d=_0x3e3124['plugins']['get']('TableUtils');_0x3e3124['model']['document']['on']('change:data',()=>{const _0x3c2d4f=Array['from'](_0x3e3124['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5086a7,data:_0x2ade9}of _0x3c2d4f){const {group:_0x336556,id:_0x7c5184,subType:_0x16e54f}=_0x1e034c['_splitMarkerName'](_0x5086a7);if('suggestion'!=_0x336556)continue;if(null!=_0x2ade9['oldRange'])continue;const _0x28ce6a=_0x1e034c['getSuggestion'](_0x7c5184);this['_tablePostFixingSubtypes']['includes'](_0x16e54f)&&this['_tableSuggestions']['add'](_0x28ce6a);}},{'priority':'low'});const _0x48fc89=(_0x1bed2c,_0xdae753)=>{let _0x4500c8=!0x1;const _0x3ca589=_0xdae753['createRangeOn'](_0x1bed2c),_0x4b9afc=_0x1bed2c['findAncestor']('table'),_0x111e40=_0x145a8d['getCellLocation'](_0x1bed2c);for(const _0xd5ae38 of this['_tableSuggestions']){const _0x4f01e1=_0xd5ae38['subType'],_0x5104ad=_0x4f01e1['startsWith']('tablePaste'),_0x1ca175=_0x4f01e1['substr'](_0x5104ad?0xa:0x5),_0x44c2c5=_0x1ca175['toLowerCase'](),_0xd55074=_0x44c2c5['substr'](0x0,0x3)+'span',_0x5630b7='min'+_0x1ca175,_0x5ca9ea='max'+_0x1ca175;if(!_0xd5ae38['isInContent'])continue;if(_0x4b9afc!=_0xd5ae38['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xd5ae38['isIntersectingWithRange'](_0x3ca589))continue;const _0x5a189b=_0x1bed2c['hasAttribute'](_0xd55074)?_0x1bed2c['getAttribute'](_0xd55074)-0x1:0x0,_0x47f2fa=this['_getSuggestionCoords'](_0xd5ae38),_0x4c1072=_0x47f2fa[_0x5630b7],_0x537044=_0x47f2fa[_0x5ca9ea];_0x4c1072<=_0x111e40[_0x44c2c5]&&_0x111e40[_0x44c2c5]+_0x5a189b<=_0x537044&&(_0xd5ae38['addRange'](_0x3ca589),_0x4500c8=!0x0);}return _0x4500c8;};_0x3e3124['model']['document']['registerPostFixer'](_0x337dc4=>{let _0x349082=!0x1;for(const _0x5cff48 of _0x3e3124['model']['document']['differ']['getChanges']())if('insert'==_0x5cff48['type']){if('tableRow'==_0x5cff48['name']){for(const _0x192c77 of _0x5cff48['position']['nodeAfter']['getChildren']())_0x349082=_0x349082||_0x48fc89(_0x192c77,_0x337dc4);}else'tableCell'==_0x5cff48['name']&&(_0x349082=_0x349082||_0x48fc89(_0x5cff48['position']['nodeAfter'],_0x337dc4));}return _0x349082;});}['_getSuggestionCoords'](_0x36d294){return this['_getCoordsForCells'](_0x36d294['getRanges']()['map'](_0x431548=>_0x431548['start']['nodeAfter']));}}function Ee(_0x4ca235){return Array['from'](new Set(_0x4ca235)['values']());}class St extends _0x16371d{static get['requires'](){return[jt];}['afterInit'](){const _0x24ed42=this['editor'],_0x54eb03=_0x24ed42['model']['document']['selection'],_0x1fdcf6=_0x24ed42['locale'];if(!_0x24ed42['plugins']['has']('TableEditing'))return;const _0x2bb423=_0x24ed42['plugins']['get']('TrackChangesEditing'),_0x3c90a5=_0x24ed42['plugins']['get']('TableUtils'),_0x57f038=_0x24ed42['plugins']['get'](jt);_0x57f038['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2bb423['enableCommand']('mergeTableCells',()=>{const _0x5a7539=_0x3c90a5['getSelectionAffectedTableCells'](_0x24ed42['model']['document']['selection']);_0x24ed42['model']['change'](()=>{_0x2bb423['markMultiRangeBlockFormat'](_0x5a7539,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x24ed42['commands']['get']('mergeTableCells')['on']('execute',(_0x4789f7,_0x3adfd5)=>{_0x24ed42['commands']['get']('trackChanges')['value']&&(_0x3adfd5['length']>0x0&&_0x3adfd5[_0x3adfd5['length']-0x1]&&_0x3adfd5[_0x3adfd5['length']-0x1]['forceDefaultExecution']||_0x2bb423['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4789f7['stop']());},{'priority':'highest'});for(const _0x228f34 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x563a46=_0x24ed42['commands']['get'](_0x228f34);_0x2bb423['enableCommand'](_0x228f34,()=>{const _0x449e03=_0x24ed42['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4cb694=>_0x4cb694['is']('element','tableCell')),_0x16fa28=_0x563a46['value'];_0x24ed42['model']['change'](()=>{_0x2bb423['markMultiRangeBlockFormat']([_0x449e03,_0x16fa28],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2eef10 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3b0a02=_0x24ed42['commands']['get'](_0x2eef10);_0x2bb423['enableCommand'](_0x2eef10,()=>{const _0x577ce5=_0x3c90a5['getSelectionAffectedTableCells'](_0x24ed42['model']['document']['selection'])[0x0],_0x5ba047=_0x577ce5['findAncestor']('table'),{column:_0x4b1f85,row:_0x545b0c}=_0x3c90a5['getCellLocation'](_0x577ce5);let _0x3b4434=[];if('horizontally'==_0x3b0a02['direction']){const _0x2af99f=_0x3c90a5['createTableWalker'](_0x5ba047,{'startRow':_0x545b0c,'endRow':_0x545b0c,'includeAllSlots':!0x0});_0x3b4434=Array['from'](_0x2af99f)['map'](_0x5d8667=>_0x5d8667['cell']);}else{const _0x4a8395=_0x3c90a5['createTableWalker'](_0x5ba047,{'column':_0x4b1f85,'includeAllSlots':!0x0});_0x3b4434=Array['from'](_0x4a8395)['map'](_0x340d96=>_0x340d96['cell']);}_0x24ed42['model']['change'](_0x24146f=>{_0x2bb423['markBlockFormat'](_0x24146f['createRangeOn'](_0x577ce5),{'commandName':_0x2eef10,'commandParams':[]},_0x3b4434,_0x2eef10);});});}_0x2bb423['descriptionFactory']['registerDescriptionCallback'](_0x28b9c7=>{if('formatBlock'!=_0x28b9c7['type']&&'formatInline'!=_0x28b9c7['type'])return;const {data:_0x1da2cd}=_0x28b9c7;return _0x1da2cd&&'mergeTableCells'==_0x1da2cd['commandName']?{'type':'format','content':o(_0x1fdcf6,'*Merge\x20cells*')}:void 0x0;}),_0x2bb423['descriptionFactory']['registerDescriptionCallback'](_0x24ad66=>{if('formatBlock'!=_0x24ad66['type']&&'formatInline'!=_0x24ad66['type'])return;const {data:_0x34597a}=_0x24ad66;return _0x34597a?'splitTableCellVertically'==_0x34597a['commandName']?{'type':'format','content':o(_0x1fdcf6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x34597a['commandName']?{'type':'format','content':o(_0x1fdcf6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5ba62b=_0x57f038['_acceptFormatSuggestionCallbackFactory']();for(const _0x406a12 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2bb423['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x406a12,'accept',_0x5ba62b);for(const _0x8e2623 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2bb423['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x8e2623,'accept',_0x5ba62b);_0x2bb423['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x301b17=>{_0x24ed42['model']['change'](_0x2dc532=>{const _0x55f99f=Array['from'](_0x54eb03['getRanges']())['map'](_0x28df8c=>_0x218be5['fromRange'](_0x28df8c));_0x2dc532['setSelection'](_0x301b17),_0x24ed42['commands']['get']('mergeTableCells')['refresh'](),_0x24ed42['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x38367f=_0x55f99f['filter'](_0x3568ef=>'$graveyard'!=_0x3568ef['root']['rootName']);_0x38367f['length']>0x0&&_0x2dc532['setSelection'](_0x38367f);for(const _0x4a72f5 of _0x55f99f)_0x4a72f5['detach']();});});for(const _0x35c163 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1310d5=_0x24ed42['commands']['get'](_0x35c163);_0x1310d5['on']('set:isEnabled',(_0x4ec1cc,_0x31fde3,_0x45cbb3)=>{if(_0x45cbb3){const _0x1d9c64=_0x24ed42['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x158aa7=>_0x158aa7['is']('element','tableCell'));this['_areMergableCells'](_0x1310d5['value'],_0x1d9c64)||(_0x4ec1cc['return']=!0x1,_0x4ec1cc['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x56dd01=this['editor']['commands']['get']('mergeTableCells'),_0x2b9f38=this['editor']['plugins']['get']('TableUtils');if(!_0x56dd01['isEnabled'])return!0x1;const _0xed400=_0x2b9f38['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4f6d4a of _0xed400)for(const _0x349f36 of _0xed400)if(_0x4f6d4a!=_0x349f36&&!this['_areMergableCells'](_0x4f6d4a,_0x349f36))return!0x1;return!0x0;}['_areMergableCells'](_0x50b564,_0x40ebad){const _0x341d64=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fac39=this['editor']['model']['createRangeOn'](_0x50b564),_0x2b88e7=this['editor']['model']['createRangeOn'](_0x40ebad),_0x36cb52=new Set(),_0x59caae=new Set();for(const _0x25632f of _0x341d64['getSuggestions']())if(('insertion'==_0x25632f['type']||'deletion'==_0x25632f['type']||'mergeTableCells'==_0x25632f['subType'])&&_0x25632f['isInContent']){for(const _0x1d1df0 of _0x25632f['getRanges']())_0x1d1df0['containsRange'](_0x4fac39,!0x0)&&_0x36cb52['add'](_0x25632f['type']+':'+_0x25632f['author']['id']),_0x1d1df0['containsRange'](_0x2b88e7,!0x0)&&_0x59caae['add'](_0x25632f['type']+':'+_0x25632f['author']['id']);}if(_0x36cb52['size']!=_0x59caae['size'])return!0x1;for(const _0xd5accc of _0x36cb52)if(!_0x59caae['has'](_0xd5accc))return!0x1;return!0x0;}}class At extends _0x16371d{static get['requires'](){return[jt];}['afterInit'](){const _0x55649f=this['editor'];if(!_0x55649f['plugins']['has']('TableEditing'))return;const _0xcc3a4b=_0x55649f['locale'],_0x11ba6d=_0x55649f['plugins']['get']('TrackChangesEditing');_0x11ba6d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x11ba6d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x11ba6d['registerBlockAttribute']('headingRows'),_0x11ba6d['registerBlockAttribute']('headingColumns'),_0x11ba6d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xcc3a4b,'FORMAT_HEADER_ROW')),_0x11ba6d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xcc3a4b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5170ec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21d1d3=this['editor']['plugins']['get']('TableUtils'),_0x8d2aea=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x1cf834({showActiveMarker:_0x237758=!0x0,setDataAttribute:_0x387249=!0x0}={}){return(_0x13370a,_0xacb149,_0xb3ee8)=>{const {type:_0x139aaf,id:_0x51d7ed}=_0x5170ec['_splitMarkerName'](_0xacb149['markerName']),_0x3515ab=_0x5170ec['getSuggestion'](_0x51d7ed),_0x46477d=_0x3515ab['data'];if('formatBlock'!=_0x3515ab['type']||!_0x46477d||'setTableColumnHeader'!=_0x46477d['commandName'])return;if(_0xacb149['item'])return void _0x13370a['stop']();if(!_0xb3ee8['consumable']['consume'](_0xacb149['markerRange'],_0x13370a['name']))return;const _0x4e03bd=_0xacb149['markerRange']['start']['nodeAfter'],_0x2ce540=_0xacb149['markerRange']['end']['nodeBefore'],_0x346ff0=_0x4e03bd['parent']['parent'],{column:_0x2d2999}=_0x21d1d3['getCellLocation'](_0x4e03bd),{column:_0x52184e}=_0x21d1d3['getCellLocation'](_0x2ce540);for(let _0x2f9e4a=_0x2d2999;_0x2f9e4a<=_0x52184e;_0x2f9e4a++){const _0x99043c=_0x21d1d3['createTableWalker'](_0x346ff0,{'column':_0x2f9e4a,'includeAllSlots':!0x1});for(const _0x19434b of _0x99043c){const _0xb23d57=_0x19434b['cell'],_0x21ec98=_0xb3ee8['mapper']['toViewElement'](_0xb23d57);_0xb3ee8['writer']['addClass']('ck-suggestion-marker-'+_0x139aaf,_0x21ec98),_0x387249&&_0xb3ee8['writer']['setAttribute']('data-suggestion',_0x51d7ed,_0x21ec98),_0xb3ee8['mapper']['bindElementToMarker'](_0x21ec98,_0xacb149['markerName']),_0x237758&&(_0x5170ec['activeMarkers']['includes'](_0xacb149['markerName'])?_0xb3ee8['writer']['addClass']('ck-suggestion-marker--active',_0x21ec98):_0xb3ee8['writer']['removeClass']('ck-suggestion-marker--active',_0x21ec98));}}};}_0x5170ec['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x8d2aea),_0x5170ec['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x8d2aea),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1cf834(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x58bece,_0x1284cf,_0x2c3d1a)=>{_0x2c3d1a['options']['showSuggestionHighlights']&&_0x1cf834({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x58bece,_0x1284cf,_0x2c3d1a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x335eba,_0x4d6b83,_0x316555)=>{const {type:_0x4c1924,id:_0x33f3ca}=_0x5170ec['_splitMarkerName'](_0x4d6b83['markerName']),_0x4c8c7f=_0x5170ec['getSuggestion'](_0x33f3ca),_0xb4c064=_0x4c8c7f['data'];if('formatBlock'!=_0x4c8c7f['type']||!_0xb4c064||'setTableColumnHeader'!=_0xb4c064['commandName'])return;const _0x37a728=_0x316555['mapper']['markerNameToElements'](_0x4d6b83['markerName']);if(_0x37a728){for(const _0x2f10c0 of _0x37a728)_0x316555['writer']['removeClass']('ck-suggestion-marker-'+_0x4c1924,_0x2f10c0),_0x316555['writer']['removeClass']('ck-suggestion-marker--active',_0x2f10c0),_0x316555['writer']['removeAttribute']('data-suggestion',_0x2f10c0),_0x316555['mapper']['unbindElementFromMarkerName'](_0x2f10c0,_0x4d6b83['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe2695a=this['editor'],_0x3f9fa9=_0xe2695a['locale'];function _0x389cdd(_0xb2d2cf){return{'type':'format','content':o(_0x3f9fa9,'*Format:*\x20%0',_0xb2d2cf)};}_0xe2695a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e13cf=>{if('formatBlock'!=_0x1e13cf['type'])return;const {data:_0x1b3465}=_0x1e13cf;if(_0x1b3465){if('setTableRowHeader'==_0x1b3465['commandName']){const _0x41b4a8=_0x1b3465['commandParams'][0x0]['forceValue'];return _0x389cdd(o(_0x3f9fa9,_0x41b4a8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1b3465['commandName']){const _0x52511d=_0x1b3465['commandParams'][0x0]['forceValue'];return _0x389cdd(o(_0x3f9fa9,_0x52511d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x17c299=>[_0x17c299,null]));class It extends _0x16371d{static get['requires'](){return[jt];}['afterInit'](){const _0x55fe6e=this['editor'];if(!_0x55fe6e['plugins']['has']('TableClipboard'))return;const _0x1b360b=_0x55fe6e['plugins']['get']('TrackChangesEditing'),_0x1a5ff4=_0x55fe6e['plugins']['get']('TableUtils'),_0x1df479=_0x55fe6e['plugins']['get'](jt),_0x2ced00=_0x55fe6e['plugins']['get']('TableClipboard');_0x1df479['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x55fe6e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x55fe6e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2ad22b=null;_0x55fe6e['model']['on']('insertContent',(_0x22e608,_0x2c439a)=>{const [_0x455438,_0x7d7810]=_0x2c439a,_0x92032e=_0x2c439a[_0x2c439a['length']-0x1];_0x92032e&&_0x92032e['forceDefaultExecution']||_0x1b360b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x314559,_0x2197fc,_0x5b3861,_0x424e5d,_0x3c5f63){if(_0x2197fc&&!_0x2197fc['is']('documentSelection'))return!0x1;const _0x4190fb=_0x3c5f63['getTableIfOnlyTableInContent'](_0x314559,_0x5b3861);if(!_0x4190fb||!he(_0x4190fb,void 0x0,_0x424e5d))return!0x1;const _0x1949a2=_0x424e5d['getSelectionAffectedTableCells'](_0x5b3861['document']['selection']);if(!_0x1949a2['length'])return!0x1;const _0x3bb123=_0x1949a2[0x0]['findAncestor']('table'),_0x2e89b9=_0x424e5d['getRowIndexes'](_0x1949a2),_0x3c4665=_0x424e5d['getColumnIndexes'](_0x1949a2),_0x3bd8a9={'startRow':_0x2e89b9['first'],'endRow':_0x2e89b9['last'],'startColumn':_0x3c4665['first'],'endColumn':_0x3c4665['last']};return 0x1==_0x1949a2['length']&&(_0x3bd8a9['endRow']+=_0x424e5d['getRows'](_0x4190fb)-0x1,_0x3bd8a9['endColumn']+=_0x424e5d['getColumns'](_0x4190fb)-0x1),he(_0x3bb123,_0x3bd8a9,_0x424e5d);}(_0x455438,_0x7d7810,_0x55fe6e['model'],_0x1a5ff4,_0x2ced00)&&(_0x22e608['stop'](),_0x2ad22b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x55fe6e['model']['change'](()=>{_0x55fe6e['model']['insertContent'](_0x2c439a[0x0],_0x2c439a[0x1],_0x2c439a[0x2],{'forceDefaultExecution':!0x0});const _0x334238=_0x4b80ff(),{rowInsertionRanges:_0x1fd255,columnInsertionRanges:_0x12450d,insertionRanges:_0x29d8d4,deletionRanges:_0x259ff9,cells:_0x50812c}=_0x2ad22b;_0x1fd255['length']&&_0x1b360b['markMultiRangeInsertion'](_0x1fd255,'tablePasteRow',{'tablePasteChainId':_0x334238}),_0x12450d['length']&&_0x1b360b['markMultiRangeInsertion'](_0x12450d,'tablePasteColumn',{'tablePasteChainId':_0x334238}),_0x29d8d4['length']&&(_0x1b360b['markMultiRangeInsertion'](_0x29d8d4,'tablePaste',{'tablePasteChainId':_0x334238,'skipNestingCheck':!0x0}),_0x29d8d4['forEach'](_0x1fabad=>_0x1fabad['detach']?.())),_0x259ff9['length']&&(_0x1b360b['markMultiRangeDeletion'](_0x259ff9,'tablePaste',{'tablePasteChainId':_0x334238,'skipNestingCheck':!0x0}),_0x259ff9['forEach'](_0x3ad4bf=>_0x3ad4bf['detach']?.()));const _0x3aef69=_0x1b360b['markMultiRangeBlockFormat'](_0x50812c['map'](({element:_0x311243})=>_0x311243),{'formatGroupId':_0x4b80ff()},[],'tablePasteCell',{'tablePasteChainId':_0x334238});if(_0x3aef69){const _0x199c20=_0x3aef69['getMarkers'](),_0x1b712f=[];for(const {element:_0x7094a1,attributes:_0x221711}of _0x50812c){if(!_0x221711)continue;const _0x3cbc34=_0x55fe6e['model']['createRangeOn'](_0x7094a1),_0x160a92=_0x199c20['find'](_0x529908=>_0x529908['getRange']()['isEqual'](_0x3cbc34));_0x160a92&&_0x1b712f['push']([_0x160a92['name'],_0x221711]);}_0x1b712f['length']&&_0x3aef69['setAttribute']('markerAttributes',Object['fromEntries'](_0x1b712f));}_0x2ad22b=null;}));},{'priority':_0x1135d8['high']+0xa}),_0x55fe6e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x451eef,_0x56733e)=>{const [_0x447e88,_0x22e93a,,_0x4b3082]=_0x56733e;if(!_0x2ad22b)return;_0x451eef['stop']();const _0x4dad5c=_0x447e88['cell'],_0x3b1f56=_0x22e93a,_0x4ca8c9=Pe(_0x4dad5c),_0x3f400c=Pe(_0x3b1f56);_0x451eef['return']=_0x4dad5c;let _0x5561dc=null,_0xb4caf2=null;if(_0x3f400c||_0x4ca8c9){if(_0x4ca8c9&&!_0x3f400c){_0x4b3082['remove'](_0x4dad5c['getChild'](0x0));for(const _0x20b2a8 of Array['from'](_0x3b1f56['getChildren']()))_0x4b3082['insert'](_0x20b2a8,_0x4dad5c,'end');const _0x5554e4=_0x2ad22b['rowInsertionIndexes']['includes'](_0x447e88['row']),_0x16b0c8=_0x2ad22b['columnInsertionIndexes']['includes'](_0x447e88['column']);_0x5554e4||_0x16b0c8||(_0x5561dc=_0x218be5['fromRange'](_0x4b3082['createRangeIn'](_0x4dad5c)));}else _0x3f400c&&!_0x4ca8c9&&(_0xb4caf2=_0x4b3082['createRangeIn'](_0x4dad5c));}else{const _0x1d9a17=_0x4b3082['createElement']('tableCellSuggestion'),_0x2689e5=_0x4b3082['createElement']('tableCellSuggestion');_0x4b3082['wrap'](_0x4b3082['createRangeIn'](_0x4dad5c),_0x2689e5),_0x4b3082['insert'](_0x1d9a17,_0x4dad5c,0x0);for(const _0x3848f3 of Array['from'](_0x3b1f56['getChildren']()))_0x4b3082['insert'](_0x3848f3,_0x1d9a17,'end');_0x5561dc=_0x218be5['fromRange'](_0x4b3082['createRangeOn'](_0x1d9a17)),_0xb4caf2=_0x218be5['fromRange'](_0x4b3082['createRangeOn'](_0x2689e5));}const _0x281465=Array['from'](_0x3b1f56['getAttributes']())['filter'](([_0x1ae63a])=>ge['includes'](_0x1ae63a));_0x2ad22b['cells']['push']({'element':_0x4dad5c,'attributes':_0x281465['length']?Object['fromEntries'](_0x281465):null}),_0x5561dc&&_0x2ad22b['insertionRanges']['push'](_0x5561dc),_0xb4caf2&&_0x2ad22b['deletionRanges']['push'](_0xb4caf2);},{'priority':'high'}),_0x1a5ff4['on']('insertColumns',(_0x4d95a0,_0x52437d)=>{const [_0x549fe0,_0x5b1135={}]=_0x52437d;if(!_0x2ad22b)return;const _0x24954c=_0x5b1135['at']||0x0,_0x6f43ac=_0x5b1135['columns']||0x1;_0x2ad22b['columnInsertionIndexes']=new Array(_0x6f43ac)['fill'](_0x24954c)['map']((_0x166cc9,_0x57b8b4)=>_0x166cc9+_0x57b8b4);for(const {cell:_0x270d3e}of _0x1a5ff4['createTableWalker'](_0x549fe0,{'startColumn':_0x24954c,'endColumn':_0x24954c+_0x6f43ac-0x1}))_0x2ad22b['columnInsertionRanges']['push'](_0x55fe6e['model']['createRangeOn'](_0x270d3e));},{'priority':'low'}),_0x1a5ff4['on']('insertRows',(_0x520164,_0x5759d4)=>{const [_0x1312be,_0x2a8fcf={}]=_0x5759d4;if(!_0x2ad22b)return;const _0x3c0b54=_0x2a8fcf['at']||0x0,_0x56401b=_0x2a8fcf['rows']||0x1;_0x2ad22b['rowInsertionIndexes']=new Array(_0x56401b)['fill'](_0x3c0b54)['map']((_0x76622,_0x1949ec)=>_0x76622+_0x1949ec);for(const {cell:_0x129282}of _0x1a5ff4['createTableWalker'](_0x1312be,{'startRow':_0x3c0b54,'endRow':_0x3c0b54+_0x56401b-0x1}))_0x2ad22b['rowInsertionRanges']['push'](_0x55fe6e['model']['createRangeOn'](_0x129282));},{'priority':'low'}),_0x1b360b['descriptionFactory']['registerDescriptionCallback'](_0x3cf347=>{if(_0x3cf347['subType']&&_0x3cf347['subType']['startsWith']('tablePaste'))return _0x3cf347['previous']?{}:{'type':'insertion','content':o(_0x55fe6e['locale'],'*Replace\x20table\x20cells*')};});const _0x3938a2=()=>!0x1;for(const _0x57d223 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1b360b['_suggestionFactory']['registerCustomCallback']('insertion',_0x57d223,'join',_0x3938a2),_0x1b360b['_suggestionFactory']['registerCustomCallback']('deletion',_0x57d223,'join',_0x3938a2),_0x1b360b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x57d223,'join',_0x3938a2);_0x1b360b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3938a2),_0x1b360b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3bd10d,_0x59edf7,_0x325f9d)=>{const _0x13cc85=_0x3bd10d['map'](_0x12378e=>_0x12378e['getContainedElement']())['filter'](_0x4dbb83=>_0x4dbb83),_0x182c4a=new Map(_0x13cc85['map'](_0x3c9d27=>[_0x3c9d27,null]));if(_0x2ad22b){for(const {element:_0x15bd17,attributes:_0x29015c}of _0x2ad22b['cells'])_0x29015c&&_0x182c4a['set'](_0x15bd17,_0x29015c);}else{if(_0x325f9d&&_0x325f9d['markerAttributes'])for(const [_0x74351e,_0x5ea89f]of Object['entries'](_0x325f9d['markerAttributes'])){const _0x451ad6=_0x55fe6e['model']['markers']['get'](_0x74351e),_0x18ea5b=_0x451ad6?_0x451ad6['getRange']()['getContainedElement']():null;_0x18ea5b&&_0x182c4a['set'](_0x18ea5b,_0x5ea89f);}}_0x55fe6e['model']['change'](_0x56c186=>{for(const [_0x3ef6ef,_0x483b8f]of _0x182c4a)_0x56c186['setAttributes']({...Ce,..._0x483b8f},_0x3ef6ef);});});const _0x56b833=(_0x29dad9,_0x515b59)=>{_0x1b360b['_suggestionFactory']['registerCustomCallback'](_0x29dad9,'tablePaste',_0x515b59,(_0x19c33e,_0x40dd21,_0x4a636e)=>{_0x55fe6e['model']['change'](_0x3b0399=>{const _0xaaecf8=[];for(const _0x588aaa of _0x19c33e){const _0x3a16e2=_0x588aaa['start']['nodeAfter'];_0x3a16e2['is']('element','tableCellSuggestion')&&_0xaaecf8['push'](_0x3a16e2);}_0x1b360b['_suggestionFactory']['getSuggestionCallback'](_0x29dad9,null,_0x515b59)(_0x19c33e,_0x40dd21,_0x4a636e);for(const _0x2ecaff of _0xaaecf8)'$graveyard'!=_0x2ecaff['root']['rootName']&&_0x3b0399['unwrap'](_0x2ecaff);});});};_0x56b833('insertion','accept'),_0x56b833('insertion','discard'),_0x56b833('deletion','accept'),_0x56b833('deletion','discard'),_0x1b360b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1aa842=>{const _0x3f07ad=_0x1aa842['map'](_0x3cb3e7=>_0x3cb3e7['getContainedElement']()),_0x27b42d=_0x3f07ad[0x0]['findAncestor']('table'),{minRow:_0x373c7a,maxRow:_0x4c69cf}=_0x1df479['_getCoordsForCells'](_0x3f07ad);_0x1a5ff4['removeRows'](_0x27b42d,{'at':_0x373c7a,'rows':_0x4c69cf-_0x373c7a+0x1});}),_0x1b360b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1b901d=>{const _0xf6c54e=_0x1b901d['map'](_0x37bdcb=>_0x37bdcb['getContainedElement']()),_0x5e278a=_0xf6c54e[0x0]['findAncestor']('table'),{minColumn:_0x1dd5ff,maxColumn:_0x1d7a40}=_0x1df479['_getCoordsForCells'](_0xf6c54e);_0x1a5ff4['removeColumns'](_0x5e278a,{'at':_0x1dd5ff,'columns':_0x1d7a40-_0x1dd5ff+0x1});});const _0x1acad3=(_0xed7331,_0x261bfb)=>{if(!_0x261bfb['subType']||!_0x261bfb['subType']['startsWith']('tablePaste'))return;const _0x34d8c0=_0x261bfb['attributes']['tablePasteChainId'],_0x399349=_0x1b360b['getSuggestions']()['filter'](_0x1a9377=>_0x1a9377['isInContent']&&_0x1a9377['attributes']&&_0x1a9377['attributes']['tablePasteChainId']==_0x34d8c0);_0x399349['length']&&_0x261bfb['getAllAdjacentSuggestions']()['length']!=_0x399349['length']&&_0x399349['reduce']((_0x1e4f82,_0x2f175f)=>(_0x1e4f82['next']=_0x2f175f,_0x2f175f['previous']=_0x1e4f82,_0x2f175f));};function _0x49f6fc(_0x66724,_0x53e3e5=!0x0){const {id:_0xb7c6c0}=_0x1b360b['_splitMarkerName'](_0x66724['markerName']),_0x4642f4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3ba85a=_0x1b360b['activeMarkers']['includes'](_0x66724['markerName']);return _0x3ba85a&&_0x4642f4['push']('ck-suggestion-marker--active'),{'classes':_0x4642f4,'attributes':{'data-suggestion':_0xb7c6c0},'priority':_0x3ba85a&&_0x53e3e5?0xbc2:0xbb8};}_0x1b360b['on']('suggestionLoaded',_0x1acad3,{'priority':'high'}),_0x1b360b['on']('suggestionUnloaded',_0x1acad3,{'priority':'high'}),_0x55fe6e['model']['document']['registerPostFixer'](()=>{let _0x1b7131=!0x1;const _0x59fa20=Array['from'](_0x55fe6e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf604af,data:_0x2f8a31}of _0x59fa20){const {group:_0xd91674,type:_0x3eac17,id:_0x20c2b7}=_0x1b360b['_splitMarkerName'](_0xf604af);if('suggestion'!=_0xd91674||'deletion'!=_0x3eac17||_0x2f8a31['oldRange'])continue;if(!_0x1b360b['hasSuggestion'](_0x20c2b7))continue;const _0x428f85=_0x1b360b['getSuggestion'](_0x20c2b7)['getRanges'](),_0x64ee0f=_0x55fe6e['plugins']['get']('Users')['me'];for(const _0x550295 of _0x1b360b['getSuggestions']()){if(!_0x550295['isInContent']||_0x550295['author']!=_0x64ee0f)continue;if('formatBlock'!=_0x550295['type']||'tablePasteCell'!=_0x550295['subType'])continue;if(_0x550295['getRanges']()['every'](_0x2b181c=>_0x428f85['some'](_0xa9d1ed=>_0xa9d1ed['containsRange'](_0x2b181c,!0x0)))){for(const _0x3145f6 of _0x550295['getAllAdjacentSuggestions']())_0x3145f6['isInContent']&&(_0x3145f6['discard'](),_0x1b7131=!0x0);}}}return _0x1b7131;}),_0x55fe6e['model']['document']['registerPostFixer'](_0xfacaff=>{const _0x301f4d=_0x55fe6e['commands']['get']('redo');if(!_0x301f4d||!_0x301f4d['_createdBatches']['has'](_0xfacaff['batch']))return!0x1;let _0x33b601=!0x1;const _0x5d0f2f=_0x55fe6e['plugins']['get']('Users')['me'],_0x576209=_0x55fe6e['model']['document']['differ']['getChanges'](),_0x3788c8=Array['from'](_0x55fe6e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x256700,data:_0x4a10af})=>{const {group:_0x55ea6e,subType:_0x5d16b5,authorId:_0x382836}=_0x1b360b['_splitMarkerName'](_0x256700);return'suggestion'==_0x55ea6e&&'tablePaste'==_0x5d16b5&&_0x382836==_0x5d0f2f['id']&&!_0x4a10af['oldRange'];});for(const _0x3c21cb of _0x576209){if('insert'!=_0x3c21cb['type']||'tableCellSuggestion'!=_0x3c21cb['name']||0x1!=_0x3c21cb['length'])continue;const _0x325b5e=_0xfacaff['createRange'](_0x3c21cb['position'],_0x3c21cb['position']['getShiftedBy'](0x1));if(!_0x3788c8['find'](({data:_0x14e21d})=>_0x14e21d['newRange']['isEqual'](_0x325b5e))){for(const {name:_0x62065d,data:_0x2b3a90}of _0x3788c8)if(_0x325b5e['containsRange'](_0x2b3a90['newRange'])){_0xfacaff['updateMarker'](_0x62065d,{'range':_0x325b5e}),_0x33b601=!0x0;break;}}}return _0x33b601;}),_0x55fe6e['model']['document']['registerPostFixer'](_0x42adff=>{let _0x531fea=!0x1;const _0x37b109=_0x55fe6e['plugins']['get']('Users')['me'],_0x1cb2ca=_0x1b360b['getSuggestions']()['filter'](_0xbe8abb=>_0xbe8abb['isInContent']&&_0xbe8abb['author']==_0x37b109),_0x1415a0=new Set(),_0x11325c=new Set();for(const _0x4ae4b4 of _0x1cb2ca)if('tablePaste'==_0x4ae4b4['subType'])for(const _0x2ebdb9 of _0x4ae4b4['getMarkers']()){const _0x21fb36=_0x2ebdb9['getRange']()['getContainedElement']();if(_0x21fb36){if(_0x21fb36['is']('element','tableCellSuggestion')&&Pe(_0x21fb36)){_0x4ae4b4['removeMarker'](_0x2ebdb9['name']),_0x1415a0['add'](_0x21fb36),_0x531fea=!0x0;const _0x567aa7=_0x21fb36['nextSibling'],_0x518cb6=_0x21fb36['previousSibling'],_0x587f96=_0x567aa7&&_0x567aa7['is']('element','tableCellSuggestion'),_0x1cf17f=_0x518cb6&&_0x518cb6['is']('element','tableCellSuggestion');_0x587f96&&!_0x1415a0['has'](_0x567aa7)&&_0x11325c['add'](_0x567aa7),_0x1cf17f&&!_0x1415a0['has'](_0x518cb6)&&_0x11325c['add'](_0x518cb6);}else _0x21fb36['is']('element','paragraph')&&_0x21fb36['isEmpty']&&(_0x4ae4b4['removeMarker'](_0x2ebdb9['name']),_0x531fea=!0x0);}}else{if('tablePasteCell'==_0x4ae4b4['subType']){if(!_0x4ae4b4['attributes']||!_0x4ae4b4['attributes']['tablePasteChainId'])continue;const _0x3c9d32=_0x4ae4b4['attributes']['markerAttributes'];if(_0x3c9d32&&Object['keys'](_0x3c9d32)['length'])continue;const _0x3d96a4=_0x4ae4b4['attributes']['tablePasteChainId'];let _0x439962=!0x0,_0x22a1a6=!0x0;for(const _0x134a50 of _0x1cb2ca)if(_0x134a50['subType']&&_0x134a50['subType']['startsWith']('tablePaste')){if(!_0x134a50['attributes']['tablePasteChainId']){_0x22a1a6=!0x1;break;}if(_0x134a50['id']!=_0x4ae4b4['id']&&_0x134a50['attributes']['tablePasteChainId']==_0x3d96a4){_0x439962=!0x1;break;}}_0x22a1a6&&_0x439962&&(_0x4ae4b4['removeMarkers'](),_0x531fea=!0x0);}}for(const _0x31e287 of _0x1415a0)_0x42adff['remove'](_0x31e287);for(const _0x3fc94b of _0x11325c)_0x42adff['unwrap'](_0x3fc94b);return _0x531fea;}),_0x55fe6e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3bb0e5,_0x5420fe)=>_0x49f6fc(_0x3bb0e5),'converterPriority':'high'}),_0x55fe6e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x278e79,_0x17b543)=>_0x17b543['options']['showSuggestionHighlights']?_0x49f6fc(_0x278e79,!0x1):null,'converterPriority':'high'});const _0x513161=_0x55fe6e['editing']['view'];this['listenTo'](_0x513161['document'],'clipboardOutput',(_0x56e09a,_0x4bbf01)=>{const _0x959107=[];for(const _0x3492b9 of _0x513161['createRangeIn'](_0x4bbf01['content'])['getItems']())_0x3492b9['is']('element','suggestion-td')&&_0x959107['push'](_0x3492b9);_0x513161['change'](_0xbcf26c=>{for(const _0x3d7212 of _0x959107)_0xbcf26c['move'](_0xbcf26c['createRangeIn'](_0x3d7212),_0xbcf26c['createPositionBefore'](_0x3d7212)),_0xbcf26c['remove'](_0x3d7212);});});}}function Pe(_0x4c27b1){if(_0x4c27b1['isEmpty'])return!0x0;const _0x2c9165=_0x4c27b1['getChild'](0x0);return _0x2c9165['is']('element','paragraph')&&_0x2c9165['isEmpty'];}function he(_0x31db8b,_0x34cdc5={},_0x30359d){for(const {isAnchor:_0x4e5ff5,cellHeight:_0xe753ae,cellWidth:_0xfda276}of _0x30359d['createTableWalker'](_0x31db8b,{'includeAllSlots':!0x0,..._0x34cdc5}))if(!_0x4e5ff5||0x1!=_0xe753ae||0x1!=_0xfda276)return!0x1;return!0x0;}class vt extends _0x16371d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x526e17=this['editor']['plugins']['get']('TrackChangesEditing');_0x526e17['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x526e17['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x526e17['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x526e17['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x526e17['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x526e17['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xbd2989,_0x518172){const _0x1f307=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf00348=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1f3a55=_0x518172['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x168d47=_0xf00348['getColumnGroupElement'](_0x1f3a55);let _0x1315d0=_0x168d47?_0xf00348['getTableColumnsWidths'](_0x168d47):null,_0x5975d0=_0x1f3a55['getAttribute']('tableWidth')||null;const _0x5bf6b0=_0x518172['tableWidth']||_0x5975d0,_0x4976e0=_0x518172['columnWidths']||_0x1315d0,_0x15e7b4=this['editor']['plugins']['get']('Users')['me'];for(const _0x241ab9 of _0x1f307['getSuggestions']()){const _0x1a787c=_0x241ab9['getContainedElement']();if('resizeTable'===_0x241ab9['subType']&&_0x1a787c===_0x1f3a55){_0x241ab9['author']!==_0x15e7b4&&_0x241ab9['discard']();const _0x19464d=_0x241ab9['data']['commandParams'];_0x5975d0=_0x19464d[0x0]['tableWidth'],_0x1315d0=_0x19464d[0x0]['columnWidths'];break;}}_0xbd2989({'table':_0x1f3a55,'tableWidth':_0x5bf6b0,'columnWidths':_0x4976e0}),_0x1f307['markBlockFormat'](_0x1f3a55,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5975d0,'columnWidths':_0x1315d0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xf6af77){if('formatBlock'!=_0xf6af77['type']&&'formatInline'!=_0xf6af77['type'])return;const {data:_0x16acae}=_0xf6af77;if(_0x16acae&&'resizeTable'===_0x16acae['formatGroupId']){const _0x242ea8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x242ea8)};}}}class Ct extends _0x16371d{['afterInit'](){const _0x700c01=this['editor'];_0x700c01['plugins']['has']('Template')&&_0x700c01['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x16371d{['afterInit'](){const _0x488e54=this['editor'];if(!_0x488e54['commands']['get']('insertTableOfContents'))return;_0x488e54['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x36b0fd=_0x488e54['plugins']['get']('TrackChangesEditing'),_0x577c73=_0x488e54['locale'];_0x36b0fd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3bb36c=>o(_0x577c73,'ELEMENT_TABLE_OF_CONTENTS',_0x3bb36c));}}class Dt extends _0x16371d{['afterInit'](){const _0x2b5bc4=this['editor'];if(!_0x2b5bc4['plugins']['has']('Title'))return;const _0x150cd3=_0x2b5bc4['plugins']['get']('TrackChangesEditing');_0x150cd3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2b5bc4['locale'],'ELEMENT_TITLE')),_0x2b5bc4['model']['document']['registerPostFixer'](_0x59e8ef=>{let _0x58330d=!0x1;const _0x426205=Array['from'](_0x2b5bc4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c2748,data:_0x3e8ee5}of _0x426205){const {group:_0x23b90a}=_0x150cd3['_splitMarkerName'](_0x3c2748);if('suggestion'!==_0x23b90a||!_0x3e8ee5['newRange'])continue;const _0x55eb6e=_0x3e8ee5['newRange'],_0x319a2c=_0x55eb6e['end']['nodeBefore'];if(!_0x319a2c||!_0x319a2c['is']('element','title-content'))continue;if(!_0x55eb6e['start']['isTouching'](_0x55eb6e['end']))continue;const _0x558cf0=_0x2b5bc4['model']['schema']['getNearestSelectionRange'](_0x55eb6e['end'],'forward');if(_0x558cf0&&_0x558cf0['isCollapsed']){const _0x1a1196=_0x59e8ef['createRange'](_0x55eb6e['start'],_0x558cf0['start']);_0x1a1196['isEqual'](_0x55eb6e)||(_0x59e8ef['updateMarker'](_0x3c2748,{'range':_0x1a1196}),_0x58330d=!0x0);}_0x58330d||(_0x59e8ef['removeMarker'](_0x3c2748),_0x58330d=!0x0);}return _0x58330d;});}}class Nt extends _0x16371d{['afterInit'](){const _0x808530=this['editor'],_0x352faa=_0x808530['plugins']['get']('TrackChangesEditing');_0x808530['plugins']['has']('UndoEditing')&&(_0x352faa['enableCommand']('undo'),_0x352faa['enableCommand']('redo'));}}class Mt extends _0x16371d{static get['requires'](){return[jt];}['afterInit'](){const _0x506e0b=this['editor'];if(!_0x506e0b['plugins']['has']('TableCaptionEditing'))return;_0x506e0b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x16371d{['tableProperties'];['tableCellProperties'];constructor(_0xe03985){super(_0xe03985),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x1795ab=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5de489 of this['tableProperties'])_0x1795ab['enableCommand'](_0x5de489,(_0x13d877,_0x4fb674)=>{const _0x58f68e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5de489,[_0x58f68e],this['tableProperties'],'tableProperties',_0x13d877,_0x4fb674);});_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1795ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2c2d67,_0x27a5b5)=>this['handleDiscardAction'](this['tableProperties'],_0x2c2d67,_0x27a5b5)),_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x509b85 of this['tableCellProperties'])_0x1795ab['enableCommand'](_0x509b85,(_0x4dfbde,_0x584d5d)=>{const _0x4ef247=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x509b85,_0x4ef247,this['tableCellProperties'],'tableCellProperties',_0x4dfbde,_0x584d5d);});_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1795ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5f3a52,_0x2c3b72)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5f3a52,_0x2c3b72)),_0x1795ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1795ab['descriptionFactory']['registerDescriptionCallback'](_0x2be749=>this['handleSuggestionDescription'](_0x2be749));}['_handlePropertyChange'](_0x48840c,_0x1f84b2,_0x551693,_0x38bcdd,_0xafbaa0,_0x4e8fd2){const _0x1d6734=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4e8fd2['batch'],()=>{for(const _0x385ea5 of _0x1f84b2){if(this['_getSuggestion'](_0x385ea5,_0x38bcdd))_0xafbaa0(_0x4e8fd2);else{const _0x3f2db4={};for(const _0x549fc5 of _0x551693){const _0x52a0e2=_0x385ea5['getAttribute'](_0x549fc5);void 0x0!==_0x52a0e2&&(_0x3f2db4[_0x549fc5]=_0x52a0e2);}_0xafbaa0(_0x4e8fd2),_0x1d6734['markBlockFormat'](_0x385ea5,{'commandParams':[_0x3f2db4]},[],_0x38bcdd);}}});}['handleDiscardAction'](_0x5c9b4e,_0x4c952c,_0x28094a){const _0x55b952=_0x4c952c[0x0]['start']['nodeAfter'],_0x3613e1=_0x28094a['commandParams'][0x0];this['editor']['model']['change'](_0x31f977=>{for(const _0x3e862a of _0x5c9b4e)void 0x0!==_0x3613e1[_0x3e862a]?_0x31f977['setAttribute'](_0x3e862a,_0x3613e1[_0x3e862a],_0x55b952):_0x31f977['removeAttribute'](_0x3e862a,_0x55b952);});}['handleSuggestionDescription'](_0x27fae1){if(_0x27fae1['data'])switch(_0x27fae1['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'](_0x1d00ab,_0x5a8985){const _0x8b6e59=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x491428 of _0x8b6e59['getSuggestions']({'skipNotAttached':!0x0})){const _0x3e0871=_0x491428['getContainedElement']();if(_0x491428['subType']===_0x5a8985&&_0x3e0871===_0x1d00ab)return _0x491428;}return null;}}const m='$elementName';class p extends _0x16371d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2e67ee,_0x225db4,E,V,U,O,F,G,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,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x465534){function _0x4a4e49(_0xde9005){return _0xde9005['map'](_0x190ff2=>String['fromCharCode'](_0x190ff2))['join']('');}super(_0x465534),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2876c8,_0x257529,_0x633968,_0x50d96a)=>{this['_model']['change'](()=>{for(const _0x3a5d8b of[..._0x50d96a,..._0x633968])this['_model']['markers']['has'](_0x3a5d8b)&&_0x465534['editing']['reconvertMarker'](_0x3a5d8b);});}),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']=_0x465534['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(),_0x465534['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x465534['config']['get']('trackChanges.trackFormatChanges'),_0x465534['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x465534['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x465534,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4a4e49([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4a4e49([0x34,0x30,0x34,0x38,0x31,0x34,0x33,0x32]);}['init'](){const _0x187b31=this['editor'],_0x257f04=(_0x4daa2e,_0x147c8b)=>{if('attribute'!=_0x4daa2e)return'ck-suggestion-marker-'+_0x4daa2e;const _0x3c8b87=_0x147c8b['split']('|')[0x0];return this['_isBlockAttribute'](_0x3c8b87)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x187b31['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2282ab=>{const {id:_0x334b79,type:_0x30694c,subType:_0x3d3440}=this['_splitMarkerName'](_0x2282ab['markerName']),_0x385007=['ck-suggestion-marker',_0x257f04(_0x30694c,_0x3d3440)];let _0x293c7d=0xbb8;return this['activeMarkers']['includes'](_0x2282ab['markerName'])&&(_0x385007['push']('ck-suggestion-marker--active'),_0x293c7d=0xbc2),'deletion'==_0x30694c&&(_0x293c7d+=0x5),{'classes':_0x385007,'attributes':{'data-suggestion':_0x334b79},'priority':_0x293c7d};}}),_0x187b31['conversion']['for']('dataDowncast')['add'](_0x69d5ac=>{_0x69d5ac['on']('addMarker:suggestion',(_0x41551e,_0x5f470f,_0x2ef954)=>{if(!_0x2ef954['options']['showSuggestionHighlights'])return;const _0x4cc633=_0x5f470f['item'];if(!_0x4cc633)return;const _0x3fddb8=_0x2ef954['mapper']['toViewElement'](_0x4cc633);_0x187b31['model']['schema']['isObject'](_0x4cc633)&&_0x3fddb8&&!_0x3fddb8['getCustomProperty']('widget')&&_0x3fddb8['is']('containerElement')&&_0x44ddaf(_0x3fddb8,_0x2ef954['writer']);},{'priority':'high'});}),_0x187b31['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x31c35e,_0x37acdb)=>{if(!_0x37acdb['options']['showSuggestionHighlights'])return null;const {type:_0x3550eb,subType:_0x395690}=this['_splitMarkerName'](_0x31c35e['markerName']);return{'classes':['ck-suggestion-marker',_0x257f04(_0x3550eb,_0x395690)],'priority':0xbb8};}});const _0xcd8489=({showActiveMarkers:_0x2a84c0=!0x0,isAttributeSuggestion:_0x3c263c=!0x1}={})=>(_0x4d37d6,_0x326480,_0xc9a357)=>{if(!_0x326480['item'])return;const {id:_0x325ef4}=this['_splitMarkerName'](_0x326480['markerName']);if(_0x3c263c){const _0x221249=this['_suggestions']['get'](_0x325ef4),_0x181710=this['_getAttributeKey'](_0x221249);if(!this['_isBlockAttribute'](_0x181710))return;}if(_0x326480['item']['is']('selection'))return void _0xc9a357['consumable']['consume'](_0x326480['item'],_0x4d37d6['name']);const _0x17f134=_0xc9a357['mapper']['toViewElement'](_0x326480['item']);if(_0x326480['item']['is']('element')&&_0x187b31['model']['schema']['isBlock'](_0x326480['item'])&&!_0x17f134['getCustomProperty']('addHighlight')){_0xc9a357['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x17f134),_0xc9a357['writer']['setAttribute']('data-suggestion',_0x325ef4,_0x17f134),_0xc9a357['mapper']['bindElementToMarker'](_0x17f134,_0x326480['markerName']),_0x2a84c0&&(this['activeMarkers']['includes'](_0x326480['markerName'])?_0xc9a357['writer']['addClass']('ck-suggestion-marker--active',_0x17f134):_0xc9a357['writer']['removeClass']('ck-suggestion-marker--active',_0x17f134));for(const _0xdec98 of _0x187b31['model']['createRangeIn'](_0x326480['item'])['getItems']())_0xc9a357['consumable']['consume'](_0xdec98,_0x4d37d6['name']);_0xc9a357['consumable']['consume'](_0x326480['item'],_0x4d37d6['name']);}};_0x187b31['conversion']['for']('dataDowncast')['add'](_0x2cf017=>{_0x2cf017['on']('addMarker:suggestion:formatBlock',(_0x44a50c,_0x4e0552,_0x2e9cce)=>{_0x2e9cce['options']['showSuggestionHighlights']&&_0xcd8489({'showActiveMarkers':!0x1})(_0x44a50c,_0x4e0552,_0x2e9cce);},{'priority':'highest'});}),_0x187b31['conversion']['for']('dataDowncast')['add'](_0x5bf219=>{_0x5bf219['on']('addMarker:suggestion:attribute',(_0x564dac,_0x3835b1,_0x1669b5)=>{_0x1669b5['options']['showSuggestionHighlights']&&_0xcd8489({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x564dac,_0x3835b1,_0x1669b5);},{'priority':'highest'});}),_0x187b31['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x214794,_0x5c59f7)=>_0x5c59f7['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x214794['substr'](0xb)}}),_0x187b31['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x41392c,{writer:_0x7b4ea2})=>{let _0x151e98='suggestion:'+_0x41392c['getAttribute']('suggestion-type')+':'+_0x41392c['getAttribute']('id');return _0x41392c['getAttribute']('marker-count')&&(_0x151e98+=':'+_0x41392c['getAttribute']('marker-count')),_0x7b4ea2['createElement']('$marker',{'data-name':_0x151e98});}}),_0x187b31['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x187b31['conversion']['for']('editingDowncast')['add'](_0x5a4fb4=>{_0x5a4fb4['on']('addMarker:suggestion:formatBlock',_0xcd8489(),{'priority':'high'});}),_0x187b31['conversion']['for']('editingDowncast')['add'](_0x252ac0=>{_0x252ac0['on']('addMarker:suggestion:attribute',_0xcd8489({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x187b31['conversion']['for']('editingDowncast')['add'](_0x4e8e15=>{_0x4e8e15['on']('removeMarker:suggestion:formatBlock',(_0x428d8e,_0x18f72d,_0x3bf8ea)=>{const _0x2c6d59=_0x3bf8ea['mapper']['markerNameToElements'](_0x18f72d['markerName']);if(_0x2c6d59){for(const _0x47bd7d of _0x2c6d59)_0x47bd7d['getCustomProperty']('addHighlight')||(_0x3bf8ea['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x47bd7d),_0x3bf8ea['writer']['removeAttribute']('data-suggestion',_0x47bd7d),_0x3bf8ea['mapper']['unbindElementFromMarkerName'](_0x47bd7d,_0x18f72d['markerName']));}},{'priority':'high'});}),_0x187b31['conversion']['for']('editingDowncast')['add'](_0x143d4f=>{_0x143d4f['on']('removeMarker:suggestion:attribute',(_0x4cc067,_0x856cac,_0x5b382d)=>{const _0x5771fa=_0x5b382d['mapper']['markerNameToElements'](_0x856cac['markerName']);if(!_0x5771fa)return;const {id:_0x2e1ad5}=this['_splitMarkerName'](_0x856cac['markerName']),_0xcaa3c2=this['_suggestions']['get'](_0x2e1ad5),_0x47a3cb=this['_getAttributeKey'](_0xcaa3c2);if(this['_isBlockAttribute'](_0x47a3cb)){for(const _0x34dafa of _0x5771fa)_0x34dafa['getCustomProperty']('addHighlight')||(_0x5b382d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x34dafa),_0x5b382d['writer']['removeAttribute']('data-suggestion',_0x34dafa),_0x5b382d['mapper']['unbindElementFromMarkerName'](_0x34dafa,_0x856cac['markerName']));}},{'priority':'high'});}),_0x187b31['model']['document']['registerPostFixer'](_0x2e4971=>{let _0x27c58a=!0x1;const _0x233e6e=Array['from'](_0x187b31['model']['document']['differ']['getChangedMarkers']()),_0x1ffe25=new Set();for(const {name:_0x367ede,data:_0x5236a2}of _0x233e6e){const {group:_0xb11cea,type:_0x33eca2,subType:_0x1c6016,id:_0x10aab8}=this['_splitMarkerName'](_0x367ede);if('suggestion'!==_0xb11cea)continue;const _0x290e4a=this['_suggestions']['get'](_0x10aab8);if(null!=_0x5236a2['newRange']){'formatInline'==_0x33eca2&&(_0x27c58a=_0x27c58a||Et(_0x5236a2['newRange'],_0x367ede,_0x2e4971,_0x187b31['model']['schema']));const _0x10e6ff='attribute'==_0x33eca2&&this['_isBlockAttribute'](_0x1c6016['split']('|')[0x0]);if(_0x5236a2['newRange']['isCollapsed']||'$graveyard'==_0x5236a2['newRange']['root']['rootName']||'formatBlock'==_0x33eca2&&!Ut(_0x5236a2['newRange'])||_0x10e6ff&&!Ut(_0x5236a2['newRange'])||'deletion'==_0x33eca2&&!(!Tt(_0x59f5a8=_0x5236a2['newRange'])&&!function(_0x42e8fa){return _0x42e8fa['start']['parent']==_0x42e8fa['end']['nodeBefore']&&_0x42e8fa['start']['isAtEnd'];}(_0x59f5a8)))_0x2e4971['removeMarker'](_0x367ede),_0x27c58a=!0x0;else{if(!_0x290e4a||!_0x290e4a['isInContent'])continue;_0x1ffe25['add'](_0x290e4a);}}}var _0x59f5a8;return _0x1ffe25['size']>0x0&&(_0x27c58a=!!this['_joinWithAdjacentSuggestions'](_0x1ffe25)||_0x27c58a),_0x27c58a;}),_0x187b31['model']['document']['registerPostFixer'](_0x27a400=>{let _0x37308b=!0x1;for(const _0x20e0d9 of _0x187b31['model']['document']['differ']['getChanges']())if('insert'==_0x20e0d9['type'])for(const _0x133cf1 of this['_suggestions']['values']()){if(_0x133cf1['isMultiRange']||!_0x133cf1['isInContent'])continue;const _0xd44b2f='formatBlock'==_0x133cf1['type'],_0x1b4437=this['_getAttributeKey'](_0x133cf1),_0x8ee936=_0x1b4437&&this['_isBlockAttribute'](_0x1b4437);if(!_0xd44b2f&&!_0x8ee936)continue;const _0x18e04c=_0x133cf1['getFirstRange']();if(_0x18e04c['start']['parent']!=_0x18e04c['end']['parent']&&!_0x18e04c['end']['isAtEnd']){const _0xa22a92=_0x187b31['model']['createPositionAt'](_0x18e04c['start']['nodeAfter'],'end'),_0x3c1f0e=_0x187b31['model']['createRange'](_0x18e04c['start'],_0xa22a92);_0x27a400['updateMarker'](_0x133cf1['getFirstMarker'](),{'range':_0x3c1f0e}),_0x37308b=!0x0;}}return _0x37308b;}),_0x187b31['model']['document']['registerPostFixer'](_0x298e9b=>this['_processAttributeChanges'](_0x298e9b)),_0x187b31['model']['document']['registerPostFixer'](_0x5d7489=>!_0x5d7489['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5d7489)),_0x187b31['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x187b31['model']['document']['on']('change:data',(_0x4a8a34,_0x45f1ef)=>{if(!_0x45f1ef['isLocal']||_0x45f1ef['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x557971=_0x187b31['model']['document']['differ']['getChanges']();if(0x0==_0x557971['length'])return;const _0x258a92=[],_0x4bf0d4=_0x557971['filter'](_0x31cbde=>'attribute'==_0x31cbde['type']),_0x4eed8e=_0x557971['filter'](_0x118e89=>'insert'==_0x118e89['type']&&'$text'!=_0x118e89['name']);for(const _0x26f594 of _0x4bf0d4)this['_isRegisteredAttribute'](_0x26f594['attributeKey'])&&_0x258a92['push']({'key':_0x26f594['attributeKey'],'newValue':_0x26f594['attributeNewValue'],'oldValue':_0x26f594['attributeOldValue'],'range':Ot(_0x26f594['range'],_0x187b31['model'])});for(const _0x8c98fc of _0x4eed8e){if('rename'!=_0x8c98fc['action']&&'refresh'!=_0x8c98fc['action'])continue;const _0x208efa=Gt(_0x8c98fc['position']['nodeAfter'],_0x187b31['model']),_0x4250a0=_0x8c98fc['before'];'rename'==_0x8c98fc['action']&&_0x258a92['push']({'key':m,'newValue':_0x8c98fc['name'],'oldValue':_0x4250a0['name'],'range':_0x208efa});for(const [_0xe77176,_0x2987f0]of _0x4250a0['attributes']){if(!this['_isRegisteredAttribute'](_0xe77176))continue;const _0x55ff13=_0x8c98fc['attributes']['get'](_0xe77176);_0x2987f0!==_0x55ff13&&_0x258a92['push']({'key':_0xe77176,'newValue':_0x55ff13,'oldValue':_0x2987f0,'range':_0x208efa});}for(const [_0x404ad1,_0x2d02bc]of _0x8c98fc['attributes'])this['_isRegisteredAttribute'](_0x404ad1)&&(_0x4250a0['attributes']['has'](_0x404ad1)||_0x258a92['push']({'key':_0x404ad1,'newValue':_0x2d02bc,'oldValue':null,'range':_0x208efa}));}0x0!=_0x258a92['length']&&_0x187b31['model']['enqueueChange'](_0x45f1ef,_0x424cf9=>{const _0x38802f=_0x4b80ff();for(const {range:_0x4062b0,key:_0xba687c,oldValue:_0x564ae2,newValue:_0x49db2e}of _0x258a92)this['markAttributeChange'](_0x4062b0,_0xba687c,_0x564ae2,_0x49db2e,{'groupId':_0x38802f});this['_reduceExistingSuggestions'](_0x424cf9,_0x258a92);});},{'priority':'lowest'}),_0x187b31['model']['markers']['on']('update:suggestion',(_0x4b6d0f,_0xab26a0,_0x4c93df)=>{if(null==_0x4c93df){const {id:_0x3d70fc}=this['_splitMarkerName'](_0xab26a0['name']),_0x191755=this['_suggestions']['get'](_0x3d70fc);_0x191755&&_0x191755['addMarkerName'](_0xab26a0['name']);}}),_0x187b31['model']['document']['on']('change:data',()=>{const _0x39bebc=Array['from'](_0x187b31['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4c4ea3=>'suggestion'===this['_splitMarkerName'](_0x4c4ea3['name'])['group']);if(0x0===_0x39bebc['length'])return;_0x39bebc['sort']((_0x2ce13a,_0x5d3858)=>{const _0x4d51ce=_0x2ce13a['data']['oldRange'],_0x5edd21=_0x5d3858['data']['oldRange'];return null===_0x4d51ce&&null===_0x5edd21?0x0:null===_0x4d51ce&&null!==_0x5edd21?-0x1:null!==_0x4d51ce&&null===_0x5edd21?0x1:_0x4d51ce['start']['isBefore'](_0x5edd21['start'])?-0x1:0x1;});const _0x24397c=new Set(),_0x36b332=new Set();for(const {name:_0x24b356,data:_0x4b5cf0}of _0x39bebc){const {id:_0x2ef1bd}=this['_splitMarkerName'](_0x24b356);if(null===_0x4b5cf0['oldRange']){const _0xc763d6=this['_handleNewSuggestionMarker'](_0x24b356);_0x36b332['add'](_0xc763d6);}else{const _0x3e2142=this['_suggestions']['get'](_0x2ef1bd);null!==_0x4b5cf0['newRange']||_0x3e2142['isInContent']?(_0x24397c['add'](_0x3e2142['head']),_0x36b332['add'](_0x3e2142)):this['_removeSuggestion'](_0x3e2142);}}_0x36b332['size']>0x0&&this['_refreshSuggestionsChain'](_0x36b332);for(const _0x5b21f3 of _0x24397c)this['fire']('suggestionChanged',_0x5b21f3);}),_0x187b31['model']['on']('applyOperation',(_0x27339c,_0xb79ae3)=>{const _0x51ccce=_0xb79ae3[0x0];if(!this['_suggestions']['size'])return;if(!_0x51ccce['isDocumentOperation'])return;if(_0x51ccce['batch']['isUndo']||!_0x51ccce['batch']['isLocal'])return;let _0x4b0213,_0x4d1c7c;switch(_0x51ccce['type']){case'insert':_0x4b0213=_0x187b31['model']['createPositionAt'](_0x51ccce['position']),_0x4d1c7c=_0x4b0213['getShiftedBy'](_0x51ccce['howMany']);break;case'split':_0x4b0213=_0x187b31['model']['createPositionAt'](_0x51ccce['splitPosition']),_0x4d1c7c=_0x187b31['model']['createPositionAt'](_0x51ccce['moveTargetPosition']);break;case'move':_0x4b0213=_0x187b31['model']['createPositionAt'](_0x51ccce['targetPosition']),_0x4d1c7c=_0x4b0213['getShiftedBy'](_0x51ccce['howMany']);break;default:return;}const _0x366007=_0x187b31['model']['createRange'](_0x4b0213,_0x4d1c7c);_0x187b31['model']['change'](()=>{for(const {suggestion:_0x2a00a4,meta:_0x3df0a6}of this['_findSuggestions'](_0x366007)){if(_0x2a00a4['isMultiRange'])continue;if('formatInline'==_0x2a00a4['type'])continue;const _0x10d9c6=this['_getAttributeKey'](_0x2a00a4);if(_0x10d9c6&&this['_isBlockAttribute'](_0x10d9c6)&&'split'!=_0x51ccce['type'])continue;const _0x421615=_0x2a00a4['data']&&_0x2a00a4['data']['multipleBlocks'];('formatBlock'!=_0x2a00a4['type']||'split'==_0x51ccce['type']&&!_0x421615)&&(_0x3df0a6['containsRangeInObject']||'insertion'==_0x2a00a4['type']&&_0x3df0a6['isOwn']||_0x2a00a4['getFirstRange']()['containsRange'](_0x366007)&&this['_breakSuggestionMarker'](_0x2a00a4,_0x4b0213,_0x4d1c7c));}});},{'priority':'lowest'}),_0x187b31['model']['on']('deleteContent',(_0x3833ba,_0x45864e)=>{const _0x2bafea=_0x45864e[0x0],_0x45356e=_0x45864e[0x1];if(_0x45356e&&_0x45356e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2bafea['isCollapsed'])return;const _0x145298=_0x187b31['model']['schema'],{start:_0x324b58,end:_0x5e278f}=_0x2bafea['getFirstRange'](),_0x324f20=_0x324b58['nodeAfter']&&_0x145298['isLimit'](_0x324b58['nodeAfter'])?null:_0x145298['getNearestSelectionRange'](_0x324b58,'forward'),_0x391295=_0x5e278f['nodeBefore']&&_0x145298['isLimit'](_0x5e278f['nodeBefore'])?null:_0x145298['getNearestSelectionRange'](_0x5e278f,'backward'),_0x5a9aee=_0x187b31['model']['createRange'](_0x324f20?_0x324f20['start']:_0x324b58,_0x391295?_0x391295['end']:_0x5e278f);_0x187b31['model']['change'](_0x2b359a=>{this['markDeletion'](_0x5a9aee);const _0x484de8=_0x187b31['model']['schema']['getNearestSelectionRange'](_0x5a9aee['start']);_0x2bafea['is']('documentSelection')?_0x2b359a['setSelection'](_0x484de8):_0x2bafea['setTo'](_0x484de8);}),_0x3833ba['stop']();},{'priority':_0x1135d8['normal']+0xa}),_0x187b31['model']['on']('insertContent',(_0x29a5b4,_0x366de9)=>{const _0x63ec87=_0x366de9[_0x366de9['length']-0x1];_0x63ec87&&_0x63ec87['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x187b31['model']['change'](()=>{let _0x42f16c=_0x187b31['model']['insertContent'](_0x366de9[0x0],_0x366de9[0x1],_0x366de9[0x2],{'forceDefaultExecution':!0x0});if(!_0x42f16c)return;_0x29a5b4['return']=_0x42f16c['clone']();const _0x35b5b6=_0x42f16c['end']['nodeBefore'],_0x45e254=_0x187b31['model']['schema'];_0x35b5b6&&_0x45e254['isBlock'](_0x35b5b6)&&!_0x45e254['isObject'](_0x35b5b6)&&(_0x42f16c=_0x187b31['model']['createRange'](_0x42f16c['start'],_0x187b31['model']['createPositionAt'](_0x35b5b6,'end'))),this['markInsertion'](_0x42f16c);}),_0x29a5b4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1dc000=new $(_0x187b31,this['_suggestions']);_0x187b31['commands']['add']('acceptSuggestion',_0x1dc000),this['enableCommand']('acceptSuggestion');const _0x40d33e=new B(_0x187b31,this['_suggestions']);_0x187b31['commands']['add']('discardSuggestion',_0x40d33e),this['enableCommand']('discardSuggestion'),_0x187b31['commands']['add']('acceptAllSuggestions',new x(_0x187b31,_0x1dc000,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x187b31['commands']['add']('discardAllSuggestions',new x(_0x187b31,_0x40d33e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x187b31['commands']['add']('acceptSelectedSuggestions',new R(_0x187b31,_0x1dc000,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x187b31['commands']['add']('discardSelectedSuggestions',new R(_0x187b31,_0x40d33e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2d0a3b=_0x187b31['plugins']['get']('CommentsRepository');this['listenTo'](_0x2d0a3b,'addComment',(_0x252abd,{threadId:_0xbff65e})=>{const _0x2f5676=this['_suggestions']['get'](_0xbff65e);_0x2f5676&&_0x2f5676['commentThread']&&0x1===_0x2f5676['commentThread']['length']&&this['_updateSuggestionData'](_0xbff65e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2d0a3b,'removeComment',(_0xa8e2f2,{threadId:_0x203716})=>{const _0x29d8cc=this['_suggestions']['get'](_0x203716);_0x29d8cc&&_0x29d8cc['commentThread']&&!_0x29d8cc['commentThread']['length']&&this['_updateSuggestionData'](_0x203716,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5a0c3e){if(this['_adapter'])throw new _0x40a0bd('track-changes-adapter-already-set',this);this['_adapter']=_0x5a0c3e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4bd006=!0x1,toJSON:_0x2dc70c=!0x1}={}){const _0x1e9f42=[];for(const _0x5de1c0 of this['_suggestions']['values']())_0x4bd006&&!_0x5de1c0['isInContent']||_0x1e9f42['push'](_0x5de1c0);return _0x2dc70c?_0x1e9f42['map'](_0x54134b=>_0x54134b['toJSON']()):_0x1e9f42;}['getSuggestion'](_0xb1cf2a){const _0x68eba3=this['_suggestions']['get'](_0xb1cf2a);if(!_0x68eba3)throw new _0x40a0bd('track-changes-suggestion-not-found',this);return _0x68eba3;}['hasSuggestion'](_0x587445){return this['_suggestions']['has'](_0x587445);}['addSuggestionData'](_0x288f2c){const {authorId:_0x37f2ea,id:_0x472230,attributes:_0x2b4809}=_0x288f2c,[_0x228d20,_0x51451b]=_0x288f2c['type']['split'](':'),_0x4cce5d=this['_suggestions']['get'](_0x472230)||this['_createSuggestion'](_0x228d20,_0x51451b,_0x472230,_0x37f2ea,_0x2b4809);if(this['_addThreadToSuggestion'](_0x4cce5d),this['_checkSuggestionCorrectness'](_0x4cce5d,_0x228d20,_0x51451b||null,_0x37f2ea),_0x4cce5d['createdAt']=_0x288f2c['createdAt'],_0x4cce5d['_isDataLoaded']=!0x0,_0x2b4809&&_0x2b4809['@external']){const _0x4ead60=_0x2b4809['@external'],_0x4ee14f=this['_getExternalAuthor'](_0x4ead60['authorName']);_0x4cce5d['authoredAt']=_0x4ead60['createdAt'],_0x4cce5d['author']=_0x4ee14f,_0x4cce5d['isExternal']=!0x0;}else _0x4cce5d['authoredAt']=_0x288f2c['createdAt'];switch(_0x288f2c['data']&&(_0x4cce5d['data']=_0x288f2c['data']),_0x288f2c['attributes']&&(_0x4cce5d['attributes']=_0x288f2c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4cce5d['_saved']=!0x0),this['_suggestionState']['get'](_0x4cce5d)){case'notReady':this['_suggestionState']['set'](_0x4cce5d,'dataReady');break;case'markerReady':_0x4cce5d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4cce5d])),this['_refreshSuggestionsChain'](new Set([_0x4cce5d])),this['_suggestionState']['set'](_0x4cce5d,'ready'),this['fire']('suggestionLoaded',_0x4cce5d)):this['_suggestionState']['set'](_0x4cce5d,'removed');}return _0x4cce5d;}['acceptSuggestion'](_0x2cb4b1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x518c5c of _0x2cb4b1['getAllAdjacentSuggestions']())_0x518c5c['accept']();});});}['discardSuggestion'](_0x54ebb6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2e4c7b of _0x54ebb6['getAllAdjacentSuggestions']())_0x2e4c7b['discard']();});});}['enableCommand'](_0x17f93c,_0x5f1626){const _0x2b9979=this['editor']['commands']['get'](_0x17f93c);if(!_0x2b9979)throw new _0x40a0bd('track-changes-command-not-found',this,{'commandName':_0x17f93c});if(this['_enabledCommands']['has'](_0x2b9979))throw new _0x40a0bd('track-changes-enable-command-twice',this,{'commandName':_0x17f93c});this['_enabledCommands']['add'](_0x2b9979),_0x5f1626&&_0x2b9979['on']('execute',(_0x557326,_0x48b439)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x48b439['length']>0x0&&_0x48b439[_0x48b439['length']-0x1]&&_0x48b439[_0x48b439['length']-0x1]['forceDefaultExecution']?_0x48b439['pop']():(_0x557326['return']=_0x5f1626((..._0x57ee83)=>_0x2b9979['execute'](..._0x57ee83,{'forceDefaultExecution':!0x0}),..._0x48b439),_0x557326['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2656ea){let _0x3eba06,_0x39fe69;const _0x4bd299=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3eba06=_0x2656ea();}catch(_0x4ddb75){_0x39fe69=_0x4ddb75;}return _0x4bd299||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x39fe69&&_0x40a0bd['rethrowUnexpectedError'](_0x39fe69,this),_0x3eba06;}['markInsertion'](_0x3537e6,_0xc20a71=null,_0x5472c9={}){if(_0x3537e6['isCollapsed'])return null;const _0x2c0f77=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x25f060,meta:_0x14e226}of this['_findSuggestions'](_0x3537e6,'insertion'))if(_0x14e226['isOwn']){if(!_0x14e226['isNextTo']){if(_0x14e226['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x25f060,_0x5472c9))continue;return _0x25f060;}if(Lt(_0x25f060,_0x5472c9))return _0x25f060;this['_breakSuggestionMarker'](_0x25f060,_0x3537e6['start'],_0x3537e6['end']);break;}if(_0xc20a71==_0x25f060['subType']&&Lt(_0x25f060,_0x5472c9)){const _0x2bbe88=_0x25f060['getFirstRange']();return _0x2bbe88['start']['isEqual'](_0x3537e6['end'])?this['_setSuggestionRange'](_0x25f060,this['_model']['createRange'](_0x3537e6['start'],_0x2bbe88['end'])):this['_setSuggestionRange'](_0x25f060,this['_model']['createRange'](_0x2bbe88['start'],_0x3537e6['end'])),_0x25f060;}}const _0x5e3315=_0x4b80ff(),_0x36a1ad=_0x2c0f77['id'],_0x394ce3=_0xc20a71?'insertion:'+_0xc20a71:'insertion',_0x1ebaab=this['_setSuggestionData']({'id':_0x5e3315,'type':_0x394ce3,'createdAt':new Date(),'authorId':_0x36a1ad,'attributes':_0x5472c9});return this['_addSuggestionMarker'](_0x394ce3,_0x5e3315,_0x36a1ad,_0x3537e6),_0x1ebaab;}['markMultiRangeInsertion'](_0x4a1479,_0x457eca='multi',_0x52b5b7={}){const _0x5f256d=this['editor']['plugins']['get']('Users')['me'],_0x4d6e82=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x457eca,'join');for(const _0x51e28e of this['getSuggestions']())if(_0x51e28e['author']['id']==_0x5f256d['id']&&'insertion'==_0x51e28e['type']&&_0x51e28e['subType']==_0x457eca&&Lt(_0x51e28e,_0x52b5b7)&&(_0x4d6e82(_0x51e28e['getRanges'](),_0x4a1479)||_0x4d6e82(_0x4a1479,_0x51e28e['getRanges']()))){for(const _0x4196c7 of _0x4a1479)_0x51e28e['addRange'](_0x4196c7);return _0x51e28e;}for(const {suggestion:_0x43253d,meta:_0x48990a}of this['_findSuggestions'](_0x4a1479,'insertion')){if(!_0x48990a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x48990a['containsRangeInObject'])continue;if(!Lt(_0x43253d,_0x52b5b7))continue;let _0xfd4818=!0x0;for(const _0x574521 of _0x43253d['getRanges']())for(const _0x33cb0b of _0x4a1479)if(!_0x574521['containsRange'](_0x33cb0b)){_0xfd4818=!0x1;break;}if(_0xfd4818)return _0x43253d;}const _0x583592=_0x4b80ff(),_0x475f42=_0x5f256d['id'],_0x30cf8d='insertion:'+_0x457eca,_0x5025bc=this['_setSuggestionData']({'id':_0x583592,'type':_0x30cf8d,'createdAt':new Date(),'authorId':_0x475f42,'attributes':_0x52b5b7});for(const _0x176415 of _0x4a1479)this['_addSuggestionMarker'](_0x30cf8d,_0x583592,_0x475f42,_0x176415,u['getMultiRangeId']());return _0x5025bc;}['markInlineFormat'](_0x348e54,_0x4008d1,_0x52b6d8=null,_0x45e8ff={}){if(_0x52b6d8=_0x52b6d8||Vt(_0x4008d1),_0x348e54['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2d5dda=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x52b6d8,'accept');return this['forceDefaultExecution'](()=>_0x2d5dda([_0x348e54],_0x4008d1,_0x45e8ff)),null;}const _0x3f202d=this['editor']['plugins']['get']('Users')['me'],_0xedcc54=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x402cb2,meta:_0x30a772}of this['_findSuggestions'](_0x348e54,'insertion'))_0x30a772['isOwn']&&!_0x30a772['isInsideObject']&&_0xedcc54['push'](..._0x402cb2['getRanges']());}const _0x575e31=function(_0x367a18,_0x2b7832){const _0x54ebfa=[];for(const _0x558715 of _0x2b7832){const _0x3a8ad8=_0x367a18['getIntersection'](_0x558715);_0x3a8ad8&&_0x54ebfa['push'](_0x3a8ad8);}return _0x54ebfa;}(_0x348e54,_0xedcc54),_0x3af84c=function(_0x17d709,_0x139c04){const _0x5e3c9a=[_0x17d709];for(const _0x22b366 of _0x139c04){let _0x2c478b=0x0;for(;_0x2c478b<_0x5e3c9a['length'];){const _0x42fee4=_0x5e3c9a[_0x2c478b]['getDifference'](_0x22b366);_0x5e3c9a['splice'](_0x2c478b,0x1,..._0x42fee4),_0x2c478b+=_0x42fee4['length'];}}return _0x5e3c9a;}(_0x348e54,_0xedcc54);_0x575e31['length']&&this['_model']['change'](()=>{for(const _0x48a4f6 of _0x575e31){const _0x4a0661=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x52b6d8,'accept');this['forceDefaultExecution'](()=>_0x4a0661([_0x48a4f6],_0x4008d1,_0x45e8ff));}});for(const _0x3da246 of _0x3af84c){let _0x49d2cb=null,_0x1ed596=_0x3da246['start'],_0x32ab83=_0x3da246['end'];for(const {suggestion:_0x3f2679,meta:_0x4f406d}of this['_findSuggestions'](_0x3da246,'formatInline')){if(!_0x4f406d['isOwn'])continue;if(_0x3f2679['subType']!=_0x52b6d8)continue;if(!Lt(_0x3f2679,_0x45e8ff))continue;const _0x4b5ae2=_0x3f2679['getFirstRange']();if(_0x4b5ae2['containsRange'](_0x3da246,!0x0))return null;_0x1ed596=_0x1ed596['isBefore'](_0x4b5ae2['start'])?_0x1ed596:_0x4b5ae2['start'],_0x32ab83=_0x32ab83['isAfter'](_0x4b5ae2['end'])?_0x32ab83:_0x4b5ae2['end'],_0x49d2cb?_0x4b5ae2['start']['isBefore'](_0x49d2cb['getFirstRange']()['start'])?(_0x49d2cb['removeMarkers'](),_0x49d2cb=_0x3f2679):_0x3f2679['removeMarkers']():_0x49d2cb=_0x3f2679;}const _0x3fa238=this['_model']['createRange'](_0x1ed596,_0x32ab83);if(_0x49d2cb)this['_setSuggestionRange'](_0x49d2cb,_0x3fa238);else{const _0x38724e=_0x4b80ff(),_0xf55789=_0x3f202d['id'];this['_setSuggestionData']({'id':_0x38724e,'type':'formatInline:'+_0x52b6d8,'data':_0x4008d1,'createdAt':new Date(),'authorId':_0xf55789,'attributes':_0x45e8ff}),this['_addSuggestionMarker']('formatInline:'+_0x52b6d8,_0x38724e,_0xf55789,_0x3fa238);}}return null;}['markBlockFormat'](_0x3251ea,_0x4a6e0a,_0x3a9749=[],_0x24fd69=null,_0x22a6d4={}){_0x4a6e0a['formatGroupId']||(_0x4a6e0a['formatGroupId']=_0x4a6e0a['commandName']),_0x4a6e0a['multipleBlocks']=_0x3251ea['is']('range'),_0x24fd69=_0x24fd69||Vt(_0x4a6e0a);const _0x11ce27=_0x3a9749['map'](_0x2bd42f=>Gt(_0x2bd42f,this['_model'])),_0x315ac1=_0x3251ea['is']('range')?_0x3251ea:Gt(_0x3251ea,this['_model']);if('never'===this['_trackFormatChanges']){const _0xd7c0e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24fd69,'accept');return this['forceDefaultExecution'](()=>_0xd7c0e0([_0x315ac1],_0x4a6e0a,_0x22a6d4)),null;}_0x11ce27['push'](_0x315ac1);let _0x1fac0d=!0x0;for(const _0xf2f926 of _0x11ce27)if(!this['_rangeIsInLocalUserInsertion'](_0xf2f926)){_0x1fac0d=!0x1;break;}if(_0x1fac0d&&'always'!==this['_trackFormatChanges']){const _0x4a45a9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24fd69,'accept');return this['forceDefaultExecution'](()=>_0x4a45a9([_0x315ac1],_0x4a6e0a,_0x22a6d4)),null;}let _0x5ced6c=null,_0x4f588c=_0x315ac1['start'],_0x4dc3a4=_0x315ac1['end'];for(const {suggestion:_0x50a109,meta:_0x4a6875}of this['_findSuggestions'](_0x315ac1,'formatBlock')){if(!_0x4a6875['isOwn'])continue;if(_0x4a6875['isNextTo']||_0x4a6875['containsRangeInObject']||_0x4a6875['isInsideObject'])continue;if(_0x50a109['data']['formatGroupId']!=_0x4a6e0a['formatGroupId'])continue;if(!Lt(_0x50a109,_0x22a6d4))continue;const _0x32135e=_0x50a109['getFirstRange']();if(_0x50a109['subType']==_0x24fd69){if(_0x32135e['containsRange'](_0x315ac1,!0x0))return null;_0x4f588c=_0x4f588c['isBefore'](_0x32135e['start'])?_0x4f588c:_0x32135e['start'],_0x4dc3a4=_0x4dc3a4['isAfter'](_0x32135e['end'])?_0x4dc3a4:_0x32135e['end'],_0x5ced6c?_0x32135e['start']['isBefore'](_0x5ced6c['getFirstRange']()['start'])?(_0x5ced6c['removeMarkers'](),_0x5ced6c=_0x50a109):_0x50a109['removeMarkers']():_0x5ced6c=_0x50a109;}else{const _0x36ec3d=_0x315ac1['getIntersection'](_0x32135e);this['_cutOutSuggestionMarker'](_0x50a109,_0x36ec3d);}}const _0x5406a5=this['editor']['plugins']['get']('Users')['me'],_0x538118=_0x4b80ff(),_0x2a26bc=_0x5406a5['id'];if(_0x5ced6c)return this['_setSuggestionRange'](_0x5ced6c,this['_model']['createRange'](_0x4f588c,_0x4dc3a4)),_0x5ced6c;{const _0x1d9373=this['_setSuggestionData']({'id':_0x538118,'type':'formatBlock:'+_0x24fd69,'data':_0x4a6e0a,'createdAt':new Date(),'authorId':_0x2a26bc,'attributes':_0x22a6d4});return this['_addSuggestionMarker']('formatBlock:'+_0x24fd69,_0x538118,_0x2a26bc,this['_model']['createRange'](_0x4f588c,_0x4dc3a4)),_0x1d9373;}}['markMultiRangeBlockFormat'](_0x4f64d7,_0xdbb2e4,_0x3693cf=[],_0x3ef983=null,_0x2c343f={}){_0xdbb2e4['formatGroupId']||(_0xdbb2e4['formatGroupId']=_0xdbb2e4['commandName']);const _0x366ec6=_0x4f64d7[0x0];_0xdbb2e4['multipleBlocks']=_0x366ec6['is']('range'),_0x3ef983=_0x3ef983||Vt(_0xdbb2e4);const _0x39faf6=_0x3693cf['map'](_0x84ebe9=>Gt(_0x84ebe9,this['_model'])),_0x285488=_0x366ec6['is']('range')?_0x4f64d7:_0x4f64d7['map'](_0x63e3b3=>Gt(_0x63e3b3,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5b66af=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ef983,'accept');return this['forceDefaultExecution'](()=>_0x5b66af(_0x285488,_0xdbb2e4,_0x2c343f)),null;}_0x39faf6['push'](..._0x285488);let _0x1dd8ba=!0x0;for(const _0x1bac43 of _0x39faf6)if(!this['_rangeIsInLocalUserInsertion'](_0x1bac43)){_0x1dd8ba=!0x1;break;}if(_0x1dd8ba&&'always'!==this['_trackFormatChanges']){const _0x5c4ebd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ef983,'accept');return this['forceDefaultExecution'](()=>_0x5c4ebd(_0x285488,_0xdbb2e4,_0x2c343f)),null;}const _0x555588=this['editor']['plugins']['get']('Users')['me'];for(const _0x5dcb1a of this['getSuggestions']()){if(_0x5dcb1a['author']['id']!=_0x555588['id'])continue;if('formatBlock'!=_0x5dcb1a['type']||_0x5dcb1a['data']['formatGroupId']!=_0xdbb2e4['formatGroupId'])continue;if(!Lt(_0x5dcb1a,_0x2c343f))continue;const _0x557f66=_0x5dcb1a['subType']==_0x3ef983;for(let _0x5d3d5f=0x0;_0x5d3d5f<_0x285488['length'];_0x5d3d5f++){const _0x475aa7=_0x285488[_0x5d3d5f];for(const _0x3bd198 of _0x5dcb1a['getMarkers']()){const _0x5ec19d=_0x3bd198['getRange']();if(_0x475aa7['isEqual'](_0x5ec19d)){_0x557f66?(_0x285488['splice'](_0x5d3d5f,0x1),_0x5d3d5f--):_0x5dcb1a['removeMarker'](_0x3bd198['name']);break;}}}}if(0x0==_0x285488['length'])return null;const _0x169864=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ef983,'join');for(const _0x21da7e of this['getSuggestions']())if(_0x21da7e['author']['id']==_0x555588['id']&&'formatBlock'==_0x21da7e['type']&&_0x21da7e['data']['formatGroupId']==_0xdbb2e4['formatGroupId']&&_0x21da7e['subType']==_0x3ef983&&Lt(_0x21da7e,_0x2c343f)&&(_0x169864(_0x21da7e['getRanges'](),_0x285488)||_0x169864(_0x285488,_0x21da7e['getRanges']()))){for(const _0x2b8ece of _0x285488)_0x21da7e['addRange'](_0x2b8ece);return _0x21da7e;}const _0x48446c=_0x4b80ff(),_0x57e9d3=_0x555588['id'],_0x2e3c9b='formatBlock:'+_0x3ef983,_0x5b3f13=this['_setSuggestionData']({'id':_0x48446c,'type':_0x2e3c9b,'data':_0xdbb2e4,'createdAt':new Date(),'authorId':_0x57e9d3,'attributes':_0x2c343f});for(const _0x1f0541 of _0x285488)this['_addSuggestionMarker'](_0x2e3c9b,_0x48446c,_0x57e9d3,_0x1f0541,u['getMultiRangeId']());return _0x5b3f13;}['markDeletion'](_0x264f76,_0x323192=null,_0x57c82c={}){if(_0x264f76['isCollapsed'])return null;const _0x4f26af=this['editor']['plugins']['get']('Users')['me'],_0x2fa564=new _0x218be5(_0x264f76['start'],_0x264f76['end']);for(const {suggestion:_0x5e615f,meta:_0x1ff8e5}of this['_findSuggestions'](_0x2fa564,'insertion'))if(_0x1ff8e5['isOwn']&&!_0x1ff8e5['isNextTo']){if(_0x5e615f['isMultiRange']){const _0x2f1ffd=_0x5e615f['getRanges']()['filter'](_0xcf7662=>'$graveyard'!=_0xcf7662['root']['rootName']);_0x2f1ffd['every'](_0x39c4ad=>_0x2fa564['containsRange'](_0x39c4ad,!0x0))&&_0x5e615f['discard']();if(_0x2f1ffd['some'](_0x3f5504=>_0x3f5504['containsRange'](_0x2fa564,!0x0))){const _0x400db1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x323192,'accept');return this['forceDefaultExecution'](()=>_0x400db1([_0x2fa564],null,_0x57c82c)),null;}}else{const _0x4a7ac8=_0x2fa564['getIntersection'](_0x5e615f['getFirstRange']());null!==_0x4a7ac8&&_0x5e615f['_onDiscard']([_0x4a7ac8],null,_0x57c82c);}}if(_0x2fa564['detach'](),_0x2fa564['isCollapsed']||'$graveyard'==_0x2fa564['root']['rootName'])return null;let _0x541aa3=null,_0x12cff2=_0x2fa564['start'],_0x196069=_0x2fa564['end'];const _0x5730c7=this['_findSuggestions'](_0x2fa564,'deletion');for(const {suggestion:_0x5e45be,meta:_0x195145}of _0x5730c7){const _0x1e5d88=this['_model']['createRange'](_0x12cff2,_0x196069);if(_0x195145['isOwn']&&(this['_mergeNestedSuggestions']||!_0x195145['containsRangeInObject']&&!_0x195145['isInsideObject'])){if(_0x5e45be['isMultiRange']){if(!Lt(_0x5e45be,_0x57c82c))continue;let _0x460bbf=!0x0;for(const _0x32c4e1 of _0x5e45be['getRanges']()){if(_0x32c4e1['containsRange'](_0x1e5d88,!0x0))return _0x5e45be;_0x1e5d88['containsRange'](_0x32c4e1)||(_0x460bbf=!0x1);}_0x460bbf&&_0x5e45be['discard']();}else{const _0x461642=_0x5e45be['getFirstRange']();if(_0x461642['containsRange'](_0x1e5d88,!0x0))return _0x5e45be;if(!Lt(_0x5e45be,_0x57c82c)){_0x1e5d88['containsRange'](_0x461642)?_0x5e45be['removeMarkers']():_0x461642['containsPosition'](_0x12cff2)?_0x12cff2=_0x461642['end']:_0x461642['containsPosition'](_0x196069)&&(_0x196069=_0x461642['start']);continue;}_0x12cff2=_0x12cff2['isBefore'](_0x461642['start'])?_0x12cff2:_0x461642['start'],_0x196069=_0x196069['isAfter'](_0x461642['end'])?_0x196069:_0x461642['end'],_0x57c82c=Object['assign']({},_0x5e45be['attributes']),_0x541aa3?_0x461642['start']['isBefore'](_0x541aa3['getFirstRange']()['start'])?(_0x541aa3['removeMarkers'](),_0x541aa3=_0x5e45be):_0x5e45be['removeMarkers']():_0x541aa3=_0x5e45be;}}}if(_0x541aa3)return this['_setSuggestionRange'](_0x541aa3,this['_model']['createRange'](_0x12cff2,_0x196069)),_0x541aa3;{const _0x1316c1=_0x4b80ff(),_0xd60da7=this['_model']['createRange'](_0x12cff2,_0x196069),_0x44067b=_0x4f26af['id'],_0x155604=_0x323192?'deletion:'+_0x323192:'deletion',_0x62ece3=this['_setSuggestionData']({'id':_0x1316c1,'type':_0x155604,'createdAt':new Date(),'authorId':_0x44067b,'attributes':_0x57c82c});return this['_addSuggestionMarker'](_0x155604,_0x1316c1,_0x44067b,_0xd60da7),_0x62ece3;}}['markMultiRangeDeletion'](_0x108c79,_0x1e7017='multi',_0x4bbe8b={}){const _0xa54556=this['editor']['plugins']['get']('Users')['me'],_0x2961fc=_0x108c79['map'](_0x53dcf1=>new _0x218be5(_0x53dcf1['start'],_0x53dcf1['end'])),_0xba16f4=new Set();for(const {suggestion:_0x16cb03,meta:_0x2c8ed3}of this['_findSuggestions'](_0x2961fc,'insertion'))_0x2c8ed3['isOwn']&&!_0x2c8ed3['isNextTo']&&_0xba16f4['add'](_0x16cb03);for(const _0x153c6e of _0xba16f4)if(_0x153c6e['isMultiRange']){const _0x2eec4e=_0x153c6e['getRanges']();(!_0x153c6e['attributes']||!_0x153c6e['attributes']['skipNestingCheck'])&&(_0x2eec4e['every'](_0x4b5401=>_0x2961fc['some'](_0x195917=>_0x195917['containsRange'](_0x4b5401,!0x0)))&&_0x153c6e['discard']());if(_0x2961fc['every'](_0x2c58df=>_0x2eec4e['some'](_0x3f92f2=>_0x3f92f2['containsRange'](_0x2c58df,!0x0)))){const _0x57be2e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e7017,'accept');return this['forceDefaultExecution'](()=>_0x57be2e(_0x108c79,null,_0x4bbe8b)),null;}}else{const _0x21c6f5=_0x153c6e['getFirstRange']();_0x2961fc['some'](_0xe19323=>_0xe19323['containsRange'](_0x21c6f5,!0x0))&&_0x153c6e['discard']();if(_0x2961fc['every'](_0x5cb34a=>_0x21c6f5['containsRange'](_0x5cb34a,!0x0))){const _0x12a45a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e7017,'accept');return this['forceDefaultExecution'](()=>_0x12a45a(_0x2961fc,null,_0x4bbe8b)),null;}}const _0x2b28e9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e7017,'join');let _0x32d1f9=null;for(const _0xe34cb of this['getSuggestions']())if(_0xe34cb['author']['id']==_0xa54556['id']&&_0xe34cb['isInContent']&&'deletion'==_0xe34cb['type']&&_0xe34cb['subType']==_0x1e7017&&Lt(_0xe34cb,_0x4bbe8b)&&(_0x2b28e9(_0xe34cb['getRanges'](),_0x2961fc)||_0x2b28e9(_0x2961fc,_0xe34cb['getRanges']()))){if(_0x32d1f9){if(_0xe34cb['commentThread']&&_0xe34cb['commentThread']['length'])continue;for(const _0x310cd9 of _0xe34cb['getRanges']())_0x32d1f9['isIntersectingWithRange'](_0x310cd9)||_0x32d1f9['addRange'](_0x310cd9);_0xe34cb['removeMarkers']();}else{_0x32d1f9=_0xe34cb;for(const _0x549d8f of _0x2961fc)_0xe34cb['isIntersectingWithRange'](_0x549d8f)||_0xe34cb['addRange'](_0x549d8f);}}if(_0x32d1f9)return _0x32d1f9;_0xba16f4['clear']();for(const {suggestion:_0x2591aa,meta:_0x4d1e87}of this['_findSuggestions'](_0x2961fc,'deletion'))_0x4d1e87['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4d1e87['containsRangeInObject']&&!_0x4d1e87['isInsideObject'])&&Lt(_0x2591aa,_0x4bbe8b)&&_0xba16f4['add'](_0x2591aa);for(const _0x1a58f0 of _0xba16f4){const _0xb9cb78=_0x1a58f0['getRanges']();if(!_0x4bbe8b||!_0x4bbe8b['skipNestingCheck']){if(_0x2961fc['every'](_0x4084f5=>_0xb9cb78['some'](_0x2411fd=>_0x2411fd['containsRange'](_0x4084f5,!0x0))))return _0x1a58f0;}(!_0x1a58f0['attributes']||!_0x1a58f0['attributes']['skipNestingCheck'])&&(_0xb9cb78['every'](_0x545c98=>_0x2961fc['some'](_0x363c98=>_0x363c98['containsRange'](_0x545c98,!0x0)))&&_0x1a58f0['discard']());}const _0x31d781=_0x4b80ff(),_0x37d1f6=_0xa54556['id'],_0x2ed3a9='deletion:'+_0x1e7017,_0x1f7257=this['_setSuggestionData']({'id':_0x31d781,'type':_0x2ed3a9,'createdAt':new Date(),'authorId':_0x37d1f6,'attributes':_0x4bbe8b});for(const _0x2cb1fe of _0x2961fc)_0x2cb1fe['detach'](),_0x2cb1fe['isCollapsed']||'$graveyard'==_0x2cb1fe['root']['rootName']||this['_addSuggestionMarker'](_0x2ed3a9,_0x31d781,_0x37d1f6,_0x2cb1fe,u['getMultiRangeId']());return _0x1f7257;}['markAttributeChange'](_0x3986de,_0x4708fa,_0x4f42b2,_0x436c42,_0x5993d1){if(_0x3986de['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x143733=this['editor']['plugins']['get']('Users')['me']['id'],_0x39e3ff=Array['from'](this['_suggestions']['values']())['filter'](_0x5c19c0=>'attribute'==_0x5c19c0['type']&&_0x5c19c0['data']['key']==_0x4708fa&&_0x5c19c0['isIntersectingWithRange'](_0x3986de));if('default'===this['_trackFormatChanges']){const _0x485796=this['_findSuggestions'](_0x3986de,'insertion')['filter'](({meta:_0x1cf972})=>_0x1cf972['isOwn']&&!_0x1cf972['isInsideObject']&&!_0x1cf972['isNextTo'])['map'](({suggestion:_0x2dc456})=>_0x2dc456);_0x39e3ff['unshift'](..._0x485796);}const _0x4461e8=new Map([[_0x3986de,_0x4f42b2]]);for(const _0x258bf7 of _0x39e3ff){const _0x58ab57='attribute'==_0x258bf7['type']?_0x258bf7['data']['oldValue']:void 0x0,_0x2e2947=_0x258bf7['getFirstRange'](),_0xac799=Array['from'](_0x4461e8['keys']())['find'](_0x2f72ca=>_0x2f72ca['isIntersecting'](_0x2e2947));if(!_0xac799)continue;const _0x3ad2f3=_0xac799['getDifference'](_0x2e2947);this['_isBlockAttribute'](_0x4708fa)&&'insertion'==_0x258bf7['type']&&0x0!=_0x3ad2f3['length']||(_0x4461e8['delete'](_0xac799),_0x3ad2f3['forEach'](_0x296a15=>{_0x4461e8['set'](_0x296a15,_0x4f42b2);}),'insertion'!=_0x258bf7['type']&&_0x58ab57!=_0x436c42&&_0x4461e8['set'](_0xac799['getIntersection'](_0x2e2947),_0x58ab57));}const _0x3e1a7f=[];for(const [_0x575409,_0x483e75]of _0x4461e8){const _0x47c388=_0x4b80ff(),_0xb57c66={'key':_0x4708fa,'oldValue':_0x483e75,'newValue':_0x436c42};_0x4708fa['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':_0x4708fa});const _0x1842c0=('attribute:'+(_0x4708fa+'|'+Vt({'newValue':_0x436c42})))['substring'](0x0,0x3c),_0x2bda37=this['_setSuggestionData']({'id':_0x47c388,'type':_0x1842c0,'data':_0xb57c66,'createdAt':new Date(),'authorId':_0x143733,'attributes':_0x5993d1});_0x3e1a7f['push'](_0x2bda37),this['_addSuggestionMarker'](_0x1842c0,_0x47c388,_0x143733,_0x575409);}return _0x3e1a7f;}['enableDefaultAttributesIntegration'](_0x156e31){this['enableCommand'](_0x156e31,(_0x5cbb8e,..._0x46479c)=>{this['_recordAttributeChanges'](()=>{_0x5cbb8e(..._0x46479c);});});}['registerBlockAttribute'](_0x24d269){this['_blockAttributeKeys']['add'](_0x24d269);}['registerInlineAttribute'](_0x2c20d4){this['_inlineAttributeKeys']['add'](_0x2c20d4);}['_getAttributeKey'](_0x28893e){return'attribute'==_0x28893e['type']?_0x28893e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x38095e,_0x41331e){const _0x15c48f=_0x38095e['getFirstMarker']();this['_model']['change'](_0x31b087=>{_0x31b087['updateMarker'](_0x15c48f,{'range':_0x41331e});});}['_addThreadToSuggestion'](_0x3fb674){const _0x378dd4=_0x3fb674['id'],_0x24b234=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x378dd4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x24b234,'threadId':_0x378dd4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3915a1=this['_commentsRepository']['getCommentThread'](_0x378dd4);_0x3915a1['unbind']('isRemovable'),_0x3915a1['isRemovable']=!0x1,_0x3fb674['commentThread']=_0x3915a1;}['_checkSuggestionCorrectness'](_0x96bbfb,_0x5488ca,_0x5bed9a,_0x293e23){if(_0x96bbfb['type']!=_0x5488ca||_0x96bbfb['subType']!=_0x5bed9a||_0x96bbfb['creator']['id']!=_0x293e23)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x40a0bd('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x75d0e8,_0x5ee0db){const _0x468920=_0x75d0e8['getFirstRange']();if(_0x5ee0db['isEqual'](_0x468920))_0x75d0e8['removeMarkers']();else{if(_0x468920['containsRange'](_0x5ee0db)){const _0x51fade=this['_model']['createPositionAt'](_0x5ee0db['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x75d0e8,this['_model']['createRange'](_0x468920['start'],_0x51fade));const _0x2d9b96=_0x4b80ff(),_0x1ac7c4=_0x75d0e8['creator']['id'],_0x44fdec=_0x75d0e8['type']+':'+_0x75d0e8['subType'];this['_setSuggestionData']({'id':_0x2d9b96,'type':_0x44fdec,'createdAt':new Date(),'authorId':_0x1ac7c4,'data':_0x75d0e8['data'],'attributes':_0x75d0e8['attributes']});const _0x5dcc53=this['_model']['createPositionAt'](_0x5ee0db['end']['parent'],'after'),_0x4f53c5=this['_model']['createRange'](_0x5dcc53,_0x468920['end']);this['_addSuggestionMarker'](_0x44fdec,_0x2d9b96,_0x1ac7c4,_0x4f53c5);}else{if(_0x468920['containsPosition'](_0x5ee0db['start'])){const _0x46a2bb=this['_model']['createPositionAt'](_0x5ee0db['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x75d0e8,this['_model']['createRange'](_0x468920['start'],_0x46a2bb));}else{const _0x5a1372=this['_model']['createPositionAt'](_0x5ee0db['end']['parent'],'after');this['_setSuggestionRange'](_0x75d0e8,this['_model']['createRange'](_0x5a1372,_0x468920['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x425119){for(const {suggestion:_0x45bf5a,meta:_0x823ba8}of this['_findSuggestions'](_0x425119,'insertion')){if(!_0x823ba8['isOwn'])continue;const _0x1c7e03=_0x45bf5a['getRanges']();for(const _0x4ff874 of _0x1c7e03)if(!_0x425119['getDifference'](_0x4ff874)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2f95f1){const _0x4a3e7f=this['editor']['plugins']['get']('Users')['getUser'](_0x2f95f1);if(!_0x4a3e7f)throw new _0x40a0bd('track-changes-user-not-found',this);return _0x4a3e7f;}['_getExternalAuthor'](_0x56d8cc){const _0x536627=this['editor']['plugins']['get']('Users'),_0xb2b89f=_0x2c77f1('external:'+_0x56d8cc),_0x302b32=_0x536627['getUser'](_0xb2b89f);return _0x302b32||_0x536627['addUser']({'id':_0xb2b89f,'name':_0x56d8cc});}['_createSuggestion'](_0x277f9a,_0x2aa694,_0x481281,_0xb03255,_0x574d2e){const _0x2d1a5c=this['_getAuthorFromId'](_0xb03255),_0x2199a1=this['_suggestionFactory']['buildSuggestion'](_0x277f9a,_0x2aa694,_0x481281,_0x2d1a5c,_0x574d2e,_0x486e26=>{this['_updateSuggestionData'](_0x481281,{'attributes':_0x486e26});const _0xd0163b=this['getSuggestion'](_0x481281);this['_joinWithAdjacentSuggestions'](new Set([_0xd0163b])),this['_refreshSuggestionsChain'](new Set([_0xd0163b]));});return this['listenTo'](_0x2199a1,'accept',()=>{this['_updateSuggestionData'](_0x481281,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2199a1,'discard',()=>{this['_updateSuggestionData'](_0x481281,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x481281,_0x2199a1),this['_suggestionState']['set'](_0x2199a1,'notReady'),_0x2199a1;}['_splitMarkerName'](_0x1d05d3){const _0x49d89a=_0x1d05d3['split'](':');return{'group':_0x49d89a[0x0],'type':_0x49d89a[0x1],'subType':_0x49d89a['length']>=0x5?_0x49d89a[0x2]:null,'id':_0x49d89a['length']<0x5?_0x49d89a[0x2]:_0x49d89a[0x3],'authorId':_0x49d89a['length']<0x5?_0x49d89a[0x3]:_0x49d89a[0x4],'markerCount':0x6==_0x49d89a['length']?_0x49d89a[0x5]:null};}['_breakSuggestionMarker'](_0x3dff0f,_0x3ad6ce,_0x548f2a){const _0x22bd5c=_0x3dff0f['getFirstRange'](),_0x102c0d=_0x22bd5c['start'],_0x3c3f50=_0x22bd5c['end'];this['_setSuggestionRange'](_0x3dff0f,this['_model']['createRange'](_0x102c0d,_0x3ad6ce));const _0x59f71d=_0x4b80ff(),_0x18d4d7=_0x3dff0f['creator']['id'],_0x351629=_0x3dff0f['type']+(_0x3dff0f['subType']?':'+_0x3dff0f['subType']:'');this['_setSuggestionData']({'id':_0x59f71d,'type':_0x351629,'createdAt':new Date(),'authorId':_0x18d4d7,'originalSuggestionId':_0x3dff0f['id'],'attributes':_0x3dff0f['attributes'],'data':_0x3dff0f['data']});const _0x33cb98=this['_getAttributeKey'](_0x3dff0f);('formatBlock'==_0x3dff0f['type']||_0x33cb98&&this['_isBlockAttribute'](_0x33cb98))&&(_0x548f2a=this['_model']['createPositionBefore'](_0x548f2a['parent'])),this['_addSuggestionMarker'](_0x351629,_0x59f71d,_0x18d4d7,this['_model']['createRange'](_0x548f2a,_0x3c3f50));}['_findSuggestions'](_0xefe4f,_0x3813d4=null){const _0x556597=[],_0xf65783=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xefe4f)||(_0xefe4f=[_0xefe4f]);for(const _0x49f9c9 of this['getSuggestions']()){if(!_0x49f9c9['isInContent'])continue;if(_0x3813d4&&_0x49f9c9['type']!=_0x3813d4)continue;let _0x5b132e=!0x1;for(const _0x104eec of _0x49f9c9['getRanges']()){for(const _0x3535e6 of _0xefe4f){const _0x1009d0=_0x3535e6['start']['isEqual'](_0x104eec['end'])||_0x3535e6['end']['isEqual'](_0x104eec['start']);if(_0x1009d0||_0x3535e6['getIntersection'](_0x104eec)){const _0x80f5fc=_0x3535e6['containsRange'](_0x104eec)&&Rt(this['_model']['schema'],_0x104eec['start'],_0x3535e6),_0x25e81f=_0x104eec['containsRange'](_0x3535e6)&&Rt(this['_model']['schema'],_0x3535e6['start'],_0x104eec);_0x556597['push']({'suggestion':_0x49f9c9,'meta':{'isOwn':_0xf65783==_0x49f9c9['author'],'isNextTo':_0x1009d0,'isInsideObject':_0x80f5fc,'containsRangeInObject':_0x25e81f}}),_0x5b132e=!0x0;break;}}if(_0x5b132e)break;}}return _0x556597;}['_addSuggestionMarker'](_0x473ce3,_0x285327,_0x55b4f5,_0x3adfb9,_0x22a3e3){this['_model']['change'](_0x37e843=>{let _0x31d09c='suggestion:'+_0x473ce3+':'+_0x285327+':'+_0x55b4f5;_0x22a3e3&&(_0x31d09c=_0x31d09c+':'+_0x22a3e3),_0x37e843['addMarker'](_0x31d09c,{'range':_0x3adfb9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x20f43f){const _0x21365b=_0x20f43f['previous'],_0x9b58e9=_0x20f43f['next'];_0x20f43f['previous']=null,_0x20f43f['next']=null,null!=_0x21365b&&_0x21365b['next']==_0x20f43f&&(_0x21365b['next']=_0x9b58e9),null!=_0x9b58e9&&_0x9b58e9['previous']==_0x20f43f&&(_0x9b58e9['previous']=_0x21365b),'ready'==this['_suggestionState']['get'](_0x20f43f)&&(this['_suggestionState']['set'](_0x20f43f,'removed'),this['fire']('suggestionUnloaded',_0x20f43f,_0x21365b,_0x9b58e9));}['_setSuggestionData'](_0x11ca98){const _0x14aa43=_0x11ca98['id'],_0x1cedc6=this['addSuggestionData'](_0x11ca98);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x511592=this['editor']['plugins']['get']('PendingActions'),_0x138dd3=_0x1cedc6['hasComments'],_0x1f79d3=_0x1cedc6['subType']?_0x1cedc6['type']+':'+_0x1cedc6['subType']:_0x1cedc6['type'],_0x3dd7af=this['editor']['locale'],_0x1d1ac6=_0x511592['add'](o(_0x3dd7af,'PENDING_ACTION_SUGGESTION')),_0x105059={'id':_0x14aa43,'type':_0x1f79d3,'hasComments':_0x138dd3,'data':_0x11ca98['data']||null,'originalSuggestionId':_0x11ca98['originalSuggestionId']||null,'attributes':_0x1cedc6['attributes']};this['_adapter']['addSuggestion'](_0x105059)['then'](_0x2d3a82=>{_0x1cedc6['_saved']=!0x0,_0x511592['remove'](_0x1d1ac6),_0x2d3a82&&_0x2d3a82['createdAt']&&(this['_suggestions']['get'](_0x14aa43)['createdAt']=_0x2d3a82['createdAt']);})['catch'](_0x2e3025=>{throw _0x23467f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1cedc6['discard']();}),_0x1cedc6['stopListening'](),this['_suggestions']['delete'](_0x1cedc6['id']),this['_suggestionState']['delete'](_0x1cedc6),_0x2e3025;});}return _0x1cedc6;}['_isBlockAttribute'](_0x279a57){return this['_blockAttributeKeys']['has'](_0x279a57);}['_updateSuggestionData'](_0x2d5c8f,_0x4ae82b){const _0x39eff1=this['editor']['plugins']['get']('PendingActions'),_0x13f990=this['getSuggestion'](_0x2d5c8f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x13f990['_saved']){const _0x21d407=_0x39eff1['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2d5c8f,_0x4ae82b)['then'](()=>{_0x39eff1['remove'](_0x21d407);});}else _0x13f990['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2d5c8f,_0x4ae82b);});}}['_getSuggestionData'](_0x4f93b8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x40a0bd('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4f93b8);}['_handleNewSuggestionMarker'](_0x5cce81){const {id:_0x3fdd53,type:_0x4e540b,subType:_0x4e1e34,authorId:_0x18a406}=this['_splitMarkerName'](_0x5cce81),_0x3bc73b=this['_suggestions']['get'](_0x3fdd53)||this['_createSuggestion'](_0x4e540b,_0x4e1e34,_0x3fdd53,_0x18a406,{});switch(this['_checkSuggestionCorrectness'](_0x3bc73b,_0x4e540b,_0x4e1e34,_0x18a406),this['_suggestionState']['get'](_0x3bc73b)){case'notReady':this['_getSuggestionData'](_0x3fdd53)['then'](_0x5a6fc2=>{let _0x1ed006=Promise['resolve']();_0x5a6fc2['hasComments']&&(_0x1ed006=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3fdd53})),_0x1ed006['then'](()=>{this['addSuggestionData'](_0x5a6fc2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3bc73b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3fdd53,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3bc73b,'ready'),this['fire']('suggestionLoaded',_0x3bc73b);break;case'ready':this['fire']('suggestionChanged',_0x3bc73b);}return _0x3bc73b['addMarkerName'](_0x5cce81),_0x3bc73b;}['_refreshSuggestionsChain'](_0x55fd85){const _0x367bca=Array['from'](_0x55fd85),_0x5614b4=_0x367bca['filter'](_0x3f0ac2=>'attribute'==_0x3f0ac2['type']);this['_refreshAttributeSuggestionsChain'](_0x5614b4);const _0x194932=_0x367bca['filter'](_0x540b07=>!_0x540b07['isMultiRange']&&'attribute'!=_0x540b07['type']),_0x269b18=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ebfac=>!_0x3ebfac['isMultiRange']&&'attribute'!=_0x3ebfac['type']),_0xc45100=_0x269b18['filter'](_0x5a1832=>!_0x55fd85['has'](_0x5a1832)),_0x405c97=new Map(_0x269b18['map'](_0x552217=>[_0x552217,this['_suggestionFactory']['getSuggestionCallback'](_0x552217['type'],_0x552217['subType'],'chain')])),_0x35cfd9=new Map(_0x269b18['map'](_0xe158c8=>[_0xe158c8,_0xe158c8['getFirstRange']()])),_0x2f8a9e=new Set(),_0x322f30=new Set();for(let _0x3fa493=0x0;_0x3fa493<_0x194932['length'];_0x3fa493++)_0x23b693(_0x194932[_0x3fa493],_0x194932,_0x3fa493+0x1);for(let _0x1373b1=0x0;_0x1373b1<_0x194932['length'];_0x1373b1++)_0x23b693(_0x194932[_0x1373b1],_0xc45100,0x0);const _0x26ae97=new Set();for(let _0x11a911=0x0;_0x11a911<_0x194932['length'];_0x11a911++){const _0x1a5939=_0x194932[_0x11a911];!_0x322f30['has'](_0x1a5939)&&_0x1a5939['previous']&&(_0x26ae97['add'](_0x1a5939['previous']),_0x1a5939['previous']['next']===_0x1a5939&&(_0x1a5939['previous']['next']=null),_0x1a5939['previous']=null),!_0x2f8a9e['has'](_0x1a5939)&&_0x1a5939['next']&&(_0x26ae97['add'](_0x1a5939['next']),_0x1a5939['next']['previous']===_0x1a5939&&(_0x1a5939['next']['previous']=null),_0x1a5939['next']=null);}function _0x23b693(_0x719dd7,_0x1aa7df,_0x48c4eb){for(let _0x5116a9=_0x48c4eb;_0x5116a9<_0x1aa7df['length'];_0x5116a9++){const _0x5aa29a=_0x12db53(_0x719dd7,_0x1aa7df[_0x5116a9]);_0x5aa29a&&(_0x5aa29a[0x0]['next']=_0x5aa29a[0x1],_0x5aa29a[0x1]['previous']=_0x5aa29a[0x0],_0x2f8a9e['add'](_0x5aa29a[0x0]),_0x322f30['add'](_0x5aa29a[0x1]));}}function _0x12db53(_0x3be22b,_0x35cfd4){if(_0x3be22b['author']['id']!==_0x35cfd4['author']['id'])return null;const _0x2ef9dd=_0x405c97['get'](_0x3be22b)(_0x3be22b,_0x35cfd4,_0x35cfd9['get'](_0x3be22b),_0x35cfd9['get'](_0x35cfd4));if(!_0x2ef9dd)return null;return _0x405c97['get'](_0x35cfd4)(_0x3be22b,_0x35cfd4,_0x35cfd9['get'](_0x3be22b),_0x35cfd9['get'](_0x35cfd4))?_0x2ef9dd[0x1]['commentThread']&&_0x2ef9dd[0x1]['commentThread']['length']?null:_0x2ef9dd:null;}_0x26ae97['size']&&this['_refreshSuggestionsChain'](_0x26ae97);}['_refreshAttributeSuggestionsChain'](_0x3d5b4f){if(0x0==_0x3d5b4f['length'])return;const _0x1962fe=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x361551=>'attribute'==_0x361551['type']&&_0x361551['_isDataLoaded']),_0x1c8270=[],_0x1def64=new Map();for(const _0x187821 of _0x1962fe){const _0x448853=_0x2c77f1(_0x187821['attributes']);_0x1def64['has'](_0x448853)||(_0x1def64['set'](_0x448853,_0x1c8270['length']),_0x1c8270['push']([]));const _0x1a1d0d=_0x1def64['get'](_0x448853);_0x1c8270[_0x1a1d0d]['push'](_0x187821);}!(function(){_0x1c8270['sort']((_0x146531,_0x1bd39f)=>{const _0x183359=_0x146531[0x0]['createdAt'],_0x4598b4=_0x1bd39f[0x0]['createdAt'];return _0x183359==_0x4598b4?_0x146531[0x0]['attributes']['groupId']<_0x1bd39f[0x0]['attributes']['groupId']?-0x1:0x1:_0x183359<_0x4598b4?-0x1:0x1;});for(const _0x3629f5 of _0x1c8270)_0x3629f5['sort']((_0x4b068d,_0x30b8fc)=>_0x4b068d['id']<_0x30b8fc['id']?-0x1:0x1);}());for(let _0x17842e=0x0;_0x17842e<_0x1c8270['length'];_0x17842e++){if(0x0==_0x1c8270[_0x17842e]['length'])continue;const _0x47ef44=[];for(let _0x59d7c6=_0x17842e+0x1;_0x59d7c6<_0x1c8270['length'];_0x59d7c6++)0x0!=_0x1c8270[_0x59d7c6]['length']&&_0x1a8162(_0x1c8270[_0x17842e],_0x1c8270[_0x59d7c6])&&_0x47ef44['push'](_0x59d7c6);for(const _0x51c2c8 of _0x47ef44)_0x1c8270[_0x17842e]=_0x1c8270[_0x17842e]['concat'](_0x1c8270[_0x51c2c8]),_0x1c8270[_0x51c2c8]=[];}for(const _0x4d7b52 of _0x1c8270)for(let _0x19d494=0x0;_0x19d494<_0x4d7b52['length'];_0x19d494++)_0x4d7b52[_0x19d494]['next']=_0x4d7b52[_0x19d494+0x1]||null;for(const _0x200d43 of _0x1c8270)for(let _0x50a02e=0x0;_0x50a02e<_0x200d43['length'];_0x50a02e++)_0x200d43[_0x50a02e]['previous']=_0x200d43[_0x50a02e-0x1]||null;function _0x1a8162(_0x1d708c,_0x280833){if(_0x1d708c[0x0]['attributes']['groupId']!==_0x280833[0x0]['attributes']['groupId']&&_0x1d708c[0x0]['author']!==_0x280833[0x0]['author'])return!0x1;if(!function(_0x4fe12a,_0x7912f5){if(!_0x4fe12a['hasComments']&&!_0x7912f5['hasComments'])return!0x0;if(_0x4fe12a['hasComments']&&_0x7912f5['hasComments'])return!0x1;if(_0x4fe12a['hasComments']&&_0x7912f5['createdAt']<_0x4fe12a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x7912f5['hasComments']&&_0x4fe12a['createdAt']<_0x7912f5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1d708c[0x0],_0x280833[0x0]))return!0x1;const _0x2b2875=Bt(_0x1d708c[0x0]['attributes'],'groupId'),_0x2d20fd=Bt(_0x280833[0x0]['attributes'],'groupId');if(!_0xf2bb64(_0x2b2875,_0x2d20fd))return!0x1;return!!_0x1d708c['every'](_0x5cebd3=>_0x280833['some'](_0x2948c1=>_0x5cebd3['getFirstRange']()['isEqual'](_0x2948c1['getFirstRange']())))&&_0x280833['every'](_0x4d6222=>_0x1d708c['some'](_0x50373e=>_0x4d6222['getFirstRange']()['isEqual'](_0x50373e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1af1d1){const _0x538624=Array['from'](_0x1af1d1),_0x4bf689=this['getSuggestions']({'skipNotAttached':!0x0}),_0x15d6b7=_0x4bf689['filter'](_0x45994f=>!_0x1af1d1['has'](_0x45994f)),_0x1dfea2=new Map(_0x538624['map'](_0x42624a=>[_0x42624a,this['_suggestionFactory']['getSuggestionCallback'](_0x42624a['type'],_0x42624a['subType'],'join')])),_0x3cd32d=new Map(_0x4bf689['map'](_0xbaa0d3=>[_0xbaa0d3,_0xbaa0d3['getRanges']()]));for(let _0x189c48=0x0;_0x189c48<_0x538624['length'];_0x189c48++){if(_0x1a2160(this,_0x538624[_0x189c48],_0x538624,_0x189c48+0x1))return!0x0;}for(let _0x2c2cd8=0x0;_0x2c2cd8<_0x538624['length'];_0x2c2cd8++){if(_0x1a2160(this,_0x538624[_0x2c2cd8],_0x15d6b7,0x0))return!0x0;}return!0x1;function _0x1a2160(_0x123421,_0x4e680b,_0x794211,_0x49ac8c){for(let _0x1d39d2=_0x49ac8c;_0x1d39d2<_0x794211['length'];_0x1d39d2++){const _0x22b763=_0x794211[_0x1d39d2];if(_0x22b763['type']!==_0x4e680b['type']||_0x22b763['author']['id']!==_0x4e680b['author']['id']||_0x22b763['subType']!==_0x4e680b['subType'])continue;if(!Pt(_0x4e680b,_0x22b763,['groupId']))continue;if('attribute'==_0x4e680b['type']&&_0x4e680b['data']['oldValue']!=_0x22b763['data']['oldValue'])continue;if('attribute'==_0x4e680b['type']&&_0x123421['_isBlockAttribute'](_0x4e680b['data']['key']))continue;if('formatBlock'==_0x4e680b['type']){const _0x199c45=_0x123421['editor']['model'],_0x2ed50b=_0x4e680b['getContainedElement']();if(_0x2ed50b&&(_0x199c45['schema']['isObject'](_0x2ed50b)||_0x199c45['schema']['isLimit'](_0x2ed50b)))continue;}const _0x1dc9a6=_0x1dfea2['get'](_0x4e680b),_0x588f51=_0x3cd32d['get'](_0x4e680b),_0x3ae123=_0x3cd32d['get'](_0x22b763),_0x3be97c=_0x4e680b['commentThread']&&_0x4e680b['commentThread']['length'],_0x573f7b=_0x22b763['commentThread']&&_0x22b763['commentThread']['length'];if(!_0x3be97c&&_0x1dc9a6(_0x3ae123,_0x588f51))return _0x123421['_joinSuggestions'](_0x22b763,_0x4e680b),_0x3cd32d['delete'](_0x4e680b),!0x0;if(!_0x573f7b&&_0x1dc9a6(_0x588f51,_0x3ae123))return _0x123421['_joinSuggestions'](_0x4e680b,_0x22b763),_0x3cd32d['delete'](_0x22b763),!0x0;}return!0x1;}}['_joinSuggestions'](_0x236821,_0x401f33){if(_0x236821['isMultiRange']){for(const _0x160cb8 of _0x401f33['getRanges']())_0x236821['addRange'](_0x160cb8);}else{const _0x11d1fd=_0x401f33['getFirstRange']()['end'];this['_setSuggestionRange'](_0x236821,this['_model']['createRange'](_0x236821['getFirstRange']()['start'],_0x11d1fd));}_0x401f33['removeMarkers']();}['_getMarkerAnnouncementText'](_0x52e145,_0x35908d){const _0x465466=_0x52e145['startsWith']('format')||_0x52e145['startsWith']('attribute')?'FORMATTING':_0x52e145['toUpperCase']();return o(this['editor']['locale'],_0x35908d+'_'+_0x465466+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4f73f4=this['editor'];if(!_0x4f73f4['ui'])return;const {ariaLiveAnnouncer:_0x1e1c64}=_0x4f73f4['ui'];_0x3e7c00(this['_model'],({left:_0x341560,entered:_0x1b8f2d})=>{for(const _0x487758 of _0x341560){const {group:_0x1b1bbd,type:_0x25a360}=this['_splitMarkerName'](_0x487758['name']);if('suggestion'===_0x1b1bbd){_0x1e1c64['announce'](this['_getMarkerAnnouncementText'](_0x25a360,'LEAVE'));break;}}for(const _0x2992f2 of _0x1b8f2d){const {group:_0x553574,type:_0xce603}=this['_splitMarkerName'](_0x2992f2['name']);if('suggestion'===_0x553574){_0x1e1c64['announce'](this['_getMarkerAnnouncementText'](_0xce603,'ENTER'));break;}}});}['_processAttributeChanges'](_0x46778b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3ce92d=this['editor'],_0x60aa52=_0x3ce92d['model']['document']['differ']['getChanges']();if(0x0==_0x60aa52['length'])return!0x1;const _0x4ccb8e=[],_0x4d286b=_0x60aa52['filter'](_0xfc3b15=>'attribute'==_0xfc3b15['type']),_0x3240b1=_0x60aa52['filter'](_0x30be86=>'insert'==_0x30be86['type']&&'$text'!=_0x30be86['name']),_0x1ade1d=_0x60aa52['filter'](_0x1b01d3=>'remove'==_0x1b01d3['type']&&'$text'!=_0x1b01d3['name']);for(const _0x533b04 of _0x4d286b)_0x4ccb8e['push']({'key':_0x533b04['attributeKey'],'newValue':_0x533b04['attributeNewValue'],'oldValue':_0x533b04['attributeOldValue'],'range':Ot(_0x533b04['range'],_0x3ce92d['model'])});for(const _0x380ee5 of _0x3240b1){const _0x3ec349=_0x1ade1d['find'](_0xcc8582=>_0xcc8582['position']['isEqual'](_0x380ee5['position']));_0x3ec349&&_0x4ccb8e['push']({'key':m,'newValue':_0x380ee5['name'],'oldValue':_0x3ec349['name'],'range':_0x3ce92d['model']['createRangeOn'](_0x380ee5['position']['nodeAfter'])});}return 0x0!=_0x4ccb8e['length']&&this['_reduceExistingSuggestions'](_0x46778b,_0x4ccb8e);}['_processAttributeSuggestions'](_0x32076e){let _0x7379b2=!0x1;const _0x1d2ed8=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x503ec6=>_0x503ec6['data']['newRange']&&_0x503ec6['name']['startsWith']('suggestion:attribute:'));for(const _0x5c6399 of _0x1d2ed8){const {subType:_0xe94681,id:_0x372f33}=this['_splitMarkerName'](_0x5c6399['name']),_0x52b470=_0xe94681['split']('|')[0x0];for(const _0x1efca6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1efca6['id']!=_0x372f33&&'attribute'==_0x1efca6['type']&&_0x1efca6['data']&&_0x1efca6['data']['key']==_0x52b470&&_0x1efca6['getFirstRange']()['isIntersecting'](_0x5c6399['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1efca6,_0x5c6399['data']['newRange'],_0x32076e),_0x7379b2=!0x0);}return _0x7379b2;}['_recordAttributeChanges'](_0x1bfb97){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1bfb97();}['_isRegisteredAttribute'](_0x3d79fc){const _0x44d0b2=this['_isBlockAttribute'](_0x3d79fc),_0x4c2562=this['_inlineAttributeKeys']['has'](_0x3d79fc);return _0x44d0b2||_0x4c2562;}['_reduceExistingSuggestions'](_0x24c226,_0x33b916){if(0x0==_0x33b916['length'])return!0x1;let _0x42a815=!0x1;for(const _0x33a8cb of _0x33b916){const _0x483634=this['_findSuggestions'](_0x33a8cb['range'],'attribute')['filter'](_0x5f89bd=>!_0x5f89bd['meta']['isNextTo'])['map'](_0x1c54f8=>_0x1c54f8['suggestion']),_0xdaa1ad=_0x2c77f1({'newValue':_0x33a8cb['newValue']});_0x483634['filter'](_0x1d1255=>{const [_0x29cf1c,_0x32ae23]=_0x1d1255['subType']['split']('|');return _0x29cf1c==_0x33a8cb['key']&&_0x32ae23!=_0xdaa1ad;})['forEach'](_0x4c0036=>{this['_reduceSuggestionAttributeRange'](_0x4c0036,_0x33a8cb['range'],_0x24c226),_0x42a815=!0x0;});}return _0x42a815;}['_reduceSuggestionAttributeRange'](_0x1aa1b9,_0x1b7c6f,_0x50d871){const _0x3eda50=_0x1aa1b9['getFirstRange']()['getDifference'](_0x1b7c6f);0x0!==_0x3eda50['length']?0x1!==_0x3eda50['length']?this['_breakSuggestionMarker'](_0x1aa1b9,_0x1b7c6f['start'],_0x1b7c6f['end']):this['_setSuggestionRange'](_0x1aa1b9,_0x3eda50[0x0]):_0x50d871['removeMarker'](_0x1aa1b9['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x99471e){this['_editor']=_0x99471e,this['_model']=_0x99471e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xc8cb82,_0x4b1ac3,_0x3c5b8b,_0x2e709f,_0x4ea6bc,_0x55be8d){return new u(this['_model'],{'type':_0xc8cb82,'subType':_0x4b1ac3,'id':_0x3c5b8b,'author':_0x2e709f,'creator':_0x2e709f,'attributes':_0x4ea6bc,'onAttributesChange':_0x55be8d,'onAccept':(..._0x49c3d5)=>this['getSuggestionCallback'](_0xc8cb82,_0x4b1ac3,'accept')(..._0x49c3d5),'onDiscard':(..._0x37f029)=>this['getSuggestionCallback'](_0xc8cb82,_0x4b1ac3,'discard')(..._0x37f029)});}['registerCustomCallback'](_0x526fb8,_0x1aa27b,_0x297014,_0x2e0861){const _0x5b6990=_0x526fb8+':'+_0x1aa27b+':'+_0x297014;this['_customCallbacks']['set'](_0x5b6990,_0x2e0861);}['getSuggestionCallback'](_0x32155a,_0x41ede7,_0x421522){const _0x5440b8=_0x32155a+':'+_0x41ede7+':'+_0x421522;return this['_customCallbacks']['get'](_0x5440b8)||this['_defaultCallbacks']['get'](_0x32155a+':'+_0x421522);}['_registerDefaultCallbacks'](){const _0x5e4861=()=>!0x1,_0x45bd0c=_0x24da84=>{_0x24da84['sort']((_0xe3f3a1,_0x9d8ae7)=>_0xe3f3a1['start']['isBefore'](_0x9d8ae7['start'])?0x1:-0x1),this['_model']['change'](_0x1a563e=>{for(const _0x2a91a2 of _0x24da84){let _0x25b5e1;_0x25b5e1=_0x2a91a2['end']['isAtEnd']&&_0x2a91a2['end']['parent']==_0x2a91a2['start']['nodeAfter']?_0x1a563e['createSelection'](_0x2a91a2['start']['nodeAfter'],'on'):_0x1a563e['createSelection'](_0x2a91a2),this['_model']['deleteContent'](_0x25b5e1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x9f4ce0=(_0x34e058,_0x1ee781)=>{_0x1ee781&&this['_model']['change'](_0x425b2f=>{const {commandName:_0x38467b,commandParams:_0x42ecc6=[]}=_0x1ee781,_0x1781bc=_0x34e058['map'](_0x513710=>(Tt(_0x513710)&&(_0x513710=this['_model']['createRange'](_0x513710['end'])),_0x513710))['filter'](_0x129f27=>'$graveyard'!==_0x129f27['root']['rootName']);if(_0x1781bc['length']<0x1)return;const _0x378f24=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xc0ebc9=>_0x218be5['fromRange'](_0xc0ebc9));_0x425b2f['setSelection'](_0x1781bc);for(const _0x14d3a1 of this['_editor']['commands']['commands']())_0x14d3a1['refresh']();_0x42ecc6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x38467b,..._0x42ecc6);const _0x49ebf4=_0x378f24['filter'](_0x526c8e=>'$graveyard'!=_0x526c8e['root']['rootName']);_0x49ebf4['length']>0x0&&_0x425b2f['setSelection'](_0x49ebf4);for(const _0x52e5fa of _0x378f24)_0x52e5fa['detach']();});},_0x7bf024=(_0x49b9f7,_0x5f4ed0)=>0x1==_0x49b9f7['length']&&0x1==_0x5f4ed0['length']&&_0x49b9f7[0x0]['end']['isEqual'](_0x5f4ed0[0x0]['start']),_0x355230=(_0x556031,_0x153f30,_0x4e9c84,_0x5a0be0)=>Ft(_0x556031,_0x153f30,_0x4e9c84,_0x5a0be0,this['_model'])?[_0x556031,_0x153f30]:Ft(_0x153f30,_0x556031,_0x5a0be0,_0x4e9c84,this['_model'])?[_0x153f30,_0x556031]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e4861),this['_defaultCallbacks']['set']('insertion:discard',_0x45bd0c),this['_defaultCallbacks']['set']('insertion:join',_0x7bf024),this['_defaultCallbacks']['set']('insertion:chain',_0x355230),this['_defaultCallbacks']['set']('deletion:accept',_0x45bd0c),this['_defaultCallbacks']['set']('deletion:discard',_0x5e4861),this['_defaultCallbacks']['set']('deletion:join',_0x7bf024),this['_defaultCallbacks']['set']('deletion:chain',_0x355230),this['_defaultCallbacks']['set']('formatInline:accept',_0x9f4ce0),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e4861),this['_defaultCallbacks']['set']('formatInline:join',_0x7bf024),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e4861),this['_defaultCallbacks']['set']('formatBlock:accept',_0x9f4ce0),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e4861),this['_defaultCallbacks']['set']('formatBlock:join',_0x7bf024),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e4861),this['_defaultCallbacks']['set']('attribute:accept',_0x5e4861),this['_defaultCallbacks']['set']('attribute:discard',(_0x15d9b6,_0x569f2a)=>{if(!_0x569f2a)return;const _0x27ca7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x44b504=>{if(_0x569f2a['key']==m)for(const _0x9fd4e6 of _0x15d9b6){const _0x2ad2ea=_0x9fd4e6['start']['nodeAfter'],_0x53a142=_0x569f2a['oldValue'];_0x44b504['rename'](_0x2ad2ea,_0x53a142);}else{if(_0x27ca7['_isBlockAttribute'](_0x569f2a['key'])){for(const _0x4d4049 of _0x15d9b6)void 0x0!==_0x569f2a['oldValue']?_0x44b504['setAttribute'](_0x569f2a['key'],_0x569f2a['oldValue'],_0x4d4049['start']['nodeAfter']):_0x44b504['removeAttribute'](_0x569f2a['key'],_0x4d4049['start']['nodeAfter']);}else{for(const _0x4fa175 of _0x15d9b6)_0x569f2a['oldValue']?_0x44b504['setAttribute'](_0x569f2a['key'],_0x569f2a['oldValue'],_0x4fa175):_0x44b504['removeAttribute'](_0x569f2a['key'],_0x4fa175);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x7bf024);}}function Rt(_0x5e5973,_0x5386bd,_0x41a379){for(const _0x19c483 of _0x5386bd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x19c483['root']==_0x19c483)return!0x1;if(!_0x41a379['containsItem'](_0x19c483))return!0x1;if(_0x5e5973['isObject'](_0x19c483)||_0x5e5973['isLimit'](_0x19c483))return!0x0;}return!0x1;}function Tt(_0x5f3366){return _0x5f3366['end']['parent']==_0x5f3366['start']['nodeAfter']&&_0x5f3366['end']['isAtStart'];}function Et(_0x470119,_0x35115e,_0x3c38de,_0xbae7a1){const _0x596719=_0xcd68ce=>!_0xcd68ce['item']['is']('$textProxy')&&!_0xbae7a1['isObject'](_0xcd68ce['item']),_0xc4c38a=_0x470119['start']['getLastMatchingPosition'](_0x596719),_0xbbc240=_0x470119['end']['getLastMatchingPosition'](_0x596719,{'direction':'backward'});return(!_0x470119['start']['isEqual'](_0xc4c38a)||!_0x470119['end']['isEqual'](_0xbbc240))&&(_0xc4c38a['isBefore'](_0xbbc240)?_0x3c38de['updateMarker'](_0x35115e,{'range':_0x3c38de['createRange'](_0xc4c38a,_0xbbc240)}):_0x3c38de['removeMarker'](_0x35115e),!0x0);}function Vt(_0x134aed){return _0x2c77f1(_0x134aed);}function Ut(_0x24f9cf){const _0x21f659=_0x24f9cf['start']['nodeAfter'];return _0x21f659&&_0x21f659['is']('element');}function Ot(_0x1808b2,_0x467320){return null==_0x1808b2['end']['nodeBefore']&&_0x1808b2['end']['parent']==_0x1808b2['start']['nodeAfter']?Gt(_0x1808b2['start']['nodeAfter'],_0x467320):_0x1808b2;}function Gt(_0x3bd388,_0x2e7604){const _0x27c206=_0x2e7604['schema']['isObject'](_0x3bd388)||_0x2e7604['schema']['isSelectable'](_0x3bd388);return _0x2e7604['createRange'](_0x2e7604['createPositionAt'](_0x3bd388,'before'),_0x27c206?_0x2e7604['createPositionAfter'](_0x3bd388):_0x2e7604['createPositionAt'](_0x3bd388,'end'));}function Ft(_0x3ebc80,_0x37ca07,_0x2739f2,_0x118414,_0x2e0898){if(!Pt(_0x3ebc80,_0x37ca07))return!0x1;if(_0x2739f2['end']['isEqual'](_0x118414['start']))return!0x0;if(_0x3ebc80['type']!=_0x37ca07['type'])return!0x1;if(!_0x2739f2['end']['isTouching'](_0x118414['start']))return!0x1;const _0x3efd53=_0x2e0898['createRange'](_0x2739f2['end'],_0x118414['start'])['getWalker']();for(const _0x452d62 of _0x3efd53)if(['elementStart','elementEnd']['includes'](_0x452d62['type'])&&_0x2e0898['schema']['isLimit'](_0x452d62['item']))return!0x1;return!0x0;}function Pt(_0x1bb681,_0x1e0f49,_0x1ea56c=[]){return!(!_0x1bb681['_isDataLoaded']||!_0x1e0f49['_isDataLoaded'])&&_0xf2bb64(Bt(_0x1bb681['attributes'],_0x1ea56c),Bt(_0x1e0f49['attributes'],_0x1ea56c));}function Lt(_0x10d793,_0x45d3c0){const _0x1c8d33=Ht(_0x10d793['attributes']),_0x3f3e38=Ht(_0x45d3c0);if(!_0x10d793['_isDataLoaded'])return!0x1;for(const _0x43da7c of Object['keys'](_0x3f3e38))if(!_0xf2bb64(_0x1c8d33[_0x43da7c],_0x3f3e38[_0x43da7c]))return!0x1;return!0x0;}function Ht(_0x2b6de0){const _0x376866=Object['assign']({},_0x2b6de0);return delete _0x376866['skipNestingCheck'],delete _0x376866['tablePasteChainId'],_0x376866;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0x2d203a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2f5bef,_0x210cbc,_0xc8e80,_0x485aa0){super(),this['model']=_0x210cbc,this['view']=_0xc8e80,this['commentThreadController']=_0x485aa0,this['_editor']=_0x2f5bef,this['_acceptCommand']=_0x2f5bef['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2f5bef['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2284fd,_0x3393d9)=>_0x2284fd||_0x3393d9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5c7dc6=>_0x5c7dc6&&this['_editor']['model']['canEditAt'](_0x210cbc['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xa7918e=>_0xa7918e&&this['_editor']['model']['canEditAt'](_0x210cbc['getRanges']())),this['_pendingAction']=null,_0xc8e80['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xc8e80,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xc8e80,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xc8e80,'change:isDirty',()=>{_0xc8e80['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x2b0667=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2b0667);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x4490c1{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x21aae6,_0x98cd19,_0x330210,_0x15385e){super(_0x21aae6),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x98cd19['authoredAt']),this['bind']('authoredAt')['to'](_0x98cd19),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x98cd19,this['_localUser']=_0x330210,this['_config']=_0x15385e,_0x15385e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x134ffe}=this['_config'];this['commentsListView']=new _0x134ffe(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',_0x4fc0b9=>_0x4fc0b9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1bf969,_0x293a7f)=>_0x1bf969||!!_0x293a7f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1449bd}=this['_config'],_0x3e3f87=new _0x1449bd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2900e3=_0x3e3f87['commentInputView'];return _0x3e3f87['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2900e3,'value',(_0x3c0b08,_0x5e9b77,_0x51524a)=>!!_0x51524a||_0x3c0b08&&!_0x5e9b77),_0x2900e3['on']('submit',(_0x22fd9d,_0xa0379a)=>{this['fire']('addComment',_0xa0379a),_0x2900e3['editor']['setData']('');}),_0x2900e3['on']('cancel',()=>this['focus']()),_0x2900e3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3e3f87;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x56668e,_0x4bddb9,_0x306cb3,_0x396148){super(_0x56668e,_0x4bddb9,_0x306cb3,_0x396148),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x26639d=>_0x26639d&&_0x26639d[0x0]?_0x26639d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3ed720,_0x1179cf)=>{let _0x5a8b20='';for(const _0x2b1fa6 of _0x3ed720)_0x5a8b20+='<p>'+ds(_0x2b1fa6['content'],_0x2b1fa6['color'])+'</p>';return _0x1179cf?_0x5a8b20:_0x48be8a(_0x5a8b20,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x56668e,'Accept\x20suggestion'),_0x210fdb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x56668e,'Discard\x20suggestion'),_0x210fdb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x5909ed(_0x56668e,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x38fe92=this['bindTemplate'],_0x3133bf=[{'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':_0x38fe92['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x38fe92['to']('authoredAt',_0x219f05=>this['_config']['formatDateTime'](_0x219f05))}]}]},{'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']&&_0x3133bf['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x53740a={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x38fe92['if']('isActive','ck-suggestion-wrapper--active'),_0x38fe92['to']('type',_0x5b0ac0=>'ck-suggestion-'+_0x5b0ac0),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':_0x3133bf}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x53740a['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)),_0x53740a;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x5d8e94,_0xb1ea95,_0x516ba5)=>{this['_descriptionElement']['innerHTML']=_0x516ba5;});}['_createButton'](_0x91d67f,_0x5aa75b,_0xf0970c,_0x14badf,_0x50fb3e){const _0x3bb96f=new _0x199a7d(this['locale']);return _0x3bb96f['set']({'label':_0x91d67f,'icon':_0x5aa75b,'tooltip':!0x0,'tooltipPosition':_0x50fb3e}),_0x3bb96f['extendTemplate']({'attributes':{'class':_0xf0970c}}),_0x3bb96f['on']('execute',()=>{this['fire'](_0x14badf,this['_model']['id']);}),_0x3bb96f;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x4eb9de,_0x54e8f2){let _0x26a9a8='';return _0x26a9a8+=_0x4eb9de['split']('*')['map']((_0x107b81,_0x24d48a)=>_0x24d48a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x107b81)+'</span>':us(_0x107b81))['join'](''),_0x54e8f2&&(_0x26a9a8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x54e8f2['value']+'\x22\x20title=\x22'+_0x54e8f2['title']+'\x22></span>'),_0x26a9a8;}function us(_0x3b3e21){const _0x4e83fc=document['createElement']('span');return _0x4e83fc['innerText']=_0x3b3e21,_0x4e83fc['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 _0x16371d{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2e67ee,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4c1ca6){super(_0x4c1ca6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x32f2ac=this['editor']['config'];_0x32f2ac['define']('trackChanges.SuggestionThreadView',ne),_0x32f2ac['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x32f2ac['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xf4211d,_0x187f38){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x7c8a25,_0x3eb7fe]of this['_handleControllerBuffer']){const _0x124f78=this['_suggestionToController']['has'](_0x7c8a25);_0x124f78||_0x3eb7fe?_0x124f78&&_0x3eb7fe&&this['_destroyController'](_0x7c8a25):this['_initializeController'](_0x7c8a25);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xf4211d,_0x187f38);}['init'](){const _0x2268ce=this['editor'],_0x122a32=_0x2268ce['plugins']['get']('TrackChangesEditing'),_0x3a5820=_0x2268ce['plugins']['get']('Annotations'),_0x1f4525=_0x2268ce['plugins']['get']('EditorAnnotations'),_0x34b61b=_0x2268ce['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1f4525['addSourceCollector'](()=>{const _0x52b77e=[];for(const [_0x585aee,_0x32fe1f]of Array['from'](this['_suggestionToController'])){const _0x5a9c8a=_0x585aee['getAllAdjacentSuggestions'](),_0x4cf087=[];for(const _0x81796d of _0x5a9c8a){if(!_0x81796d['isInContent'])continue;if(_0x81796d['isMultiRange']){_0x4cf087['push'](..._0x81796d['getRanges']());continue;}const _0x18e823=_0x81796d['getFirstRange']();if(_0x4cf087['length']>0x0){const _0x470656=_0x4cf087[0x0]['getJoined'](_0x18e823);if(_0x470656){_0x4cf087[0x0]=_0x470656;continue;}}_0x4cf087['push'](_0x18e823);}_0x52b77e['push']([_0x32fe1f['view'],_0x4cf087]);}return _0x52b77e;}),this['listenTo'](_0x122a32,'suggestionLoaded',(_0x549444,_0xe56378)=>{this['listenTo'](_0xe56378,'change:previous',(_0xf2f94,_0x58708a,_0x35dc46,_0x530b96)=>{_0xe56378['isInContent']&&(null==_0x35dc46?(this['_updateController'](_0x530b96['head']),this['_handleSuggestionControllerDelayed'](_0xe56378,!0x1)):(this['_updateController'](_0x35dc46['head']),null==_0x530b96&&this['_handleSuggestionControllerDelayed'](_0xe56378,!0x0)));}),null!==_0xe56378['previous']?this['_updateController'](_0xe56378['head']):this['_handleSuggestionControllerDelayed'](_0xe56378,!0x1);}),this['listenTo'](_0x122a32,'suggestionUnloaded',(_0x3f233b,_0x39c4cd,_0x42f6ae)=>{this['stopListening'](_0x39c4cd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x39c4cd),this['_suggestionToController']['has'](_0x39c4cd)&&this['_destroyController'](_0x39c4cd),_0x42f6ae&&this['_updateController'](_0x42f6ae['head']);}),this['listenTo'](_0x122a32,'suggestionChanged',(_0x75c22c,_0x53d8b2)=>{this['_updateController'](_0x53d8b2);}),this['listenTo'](_0x3a5820,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x34b61b,'addComment',(_0x592878,{threadId:_0x22786b,isFromAdapter:_0x30c89e})=>{if(_0x30c89e||!_0x122a32['hasSuggestion'](_0x22786b))return;const _0x11e17c=_0x122a32['getSuggestion'](_0x22786b);this['_suggestionToController']['get'](_0x11e17c)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1983df=this['editor']['plugins']['get']('Annotations'),_0x261486=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c0053=Array['from'](_0x1983df['activeAnnotations'],_0x344c03=>_0x344c03['innerView'])['filter'](_0x47da4a=>this['_viewToController']['has'](_0x47da4a)),_0x3e4714=[];for(const _0x11c33b of _0x4c0053){const _0x24388d=this['_viewToController']['get'](_0x11c33b)['model']['getAllAdjacentSuggestions']();_0x3e4714['push'](..._0x24388d['reduce']((_0x65a503,_0x403b3e)=>[..._0x65a503,..._0x403b3e['getMarkerNames']()],[]));}_0x261486['activeMarkers']=_0x3e4714;}['_addUIComponentsToFactory'](){const _0x51298c=this['editor'],_0xef33d7=_0x51298c['locale'],_0x381f08=o(_0xef33d7,'Track\x20changes'),_0x2885cb=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x381f08,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xef33d7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xef33d7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xef33d7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xef33d7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x178d0d of _0x2885cb)if(ae(_0x178d0d)){const _0x371dd0=_0x51298c['commands']['get'](_0x178d0d['model']['commandName']);_0x178d0d['model']['bind']('isOn','isEnabled')['to'](_0x371dd0,'value','isEnabled');}_0x51298c['ui']['componentFactory']['add']('trackChanges',_0x632c20=>this['_createToolbarButton'](_0x632c20,_0x2885cb,_0x381f08)),_0x51298c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x599b82=>this['_createMenuBarMenu'](_0x599b82,_0x2885cb,_0x381f08));}['_createToolbarButton'](_0x5f47ec,_0x10f41d,_0x129620){const _0x488e59=zt(_0x5f47ec,Zt),_0x3e9bd6=this['editor']['commands']['get']('trackChanges');_0x488e59['buttonView']['set']({'tooltip':_0x129620,'label':_0x129620,'icon':ie}),_0x488e59['buttonView']['bind']('isOn')['to'](_0x3e9bd6,'value'),_0x488e59['buttonView']['on']('execute',()=>{_0x3e9bd6['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x488e59,_0x10f41d,{'role':'menu'});const _0x51fee5=[];for(const _0x14eee4 of _0x10f41d)ae(_0x14eee4)&&_0x51fee5['push'](this['editor']['commands']['get'](_0x14eee4['model']['commandName']));const _0x37a188=_0x488e59['buttonView'];return _0x37a188['actionView']['unbind']('isEnabled'),_0x37a188['arrowView']['unbind']('isEnabled'),_0x37a188['actionView']['bind']('isEnabled')['to'](_0x3e9bd6,'isEnabled'),_0x37a188['arrowView']['bind']('isEnabled')['toMany'](_0x51fee5,'isEnabled',(..._0x34e9d6)=>_0x34e9d6['some'](_0xbf0701=>_0xbf0701)),_0x488e59['on']('execute',_0x562bb4=>{this['editor']['execute'](_0x562bb4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x488e59;}['_createMenuBarMenu'](_0x50e756,_0x4fc98b,_0x10b32a){const _0x147c0f=new Kt(_0x50e756),_0x5a6f53=this['editor']['commands']['get']('trackChanges');_0x147c0f['buttonView']['set']({'label':_0x10b32a,'icon':ie});const _0xc23f19=new Qt(_0x50e756);for(const _0x3cc04c of _0x4fc98b){if('separator'==_0x3cc04c['type']){_0xc23f19['items']['add'](new Jt(_0x50e756));continue;}const _0x2132b4=new Xt(_0x50e756,_0x147c0f),_0x2fa2a2=new Yt(_0x50e756),_0x5d4e22=_0x3cc04c['model'];_0x2fa2a2['bind'](...Object['keys'](_0x5d4e22))['to'](_0x5d4e22),_0x2fa2a2['delegate']('execute')['to'](_0x147c0f),_0x2fa2a2['on']('execute',()=>{this['editor']['execute'](_0x5d4e22['commandName']),this['editor']['editing']['view']['focus']();}),_0x2132b4['children']['add'](_0x2fa2a2),_0xc23f19['items']['add'](_0x2132b4);}return _0x147c0f['bind']('isEnabled')['to'](_0x5a6f53,'isEnabled'),_0x147c0f['panelView']['children']['add'](_0xc23f19),_0x147c0f;}['_initializeController'](_0x22377a){const _0x73ffba=this['editor'],_0x360127=_0x73ffba['config'],_0x24e89e=_0x73ffba['plugins']['get']('Annotations'),_0x4b3581=_0x73ffba['plugins']['get']('CommentsRepository'),_0x4fedd9=_0x73ffba['plugins']['get']('EditorAnnotations'),_0x103c32=_0x73ffba['plugins']['get'](_0x2e67ee)['me'],_0x53ec47=_0x360127['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x4f04f0,CommentThreadInputView:_0x35b5b7}=_0x73ffba['plugins']['get']('CommentsUI');let _0xd05db9,_0x5144d4;this['_annotationViews']['has'](_0x22377a['id'])?(_0x5144d4=this['_annotationViews']['get'](_0x22377a['id']),_0xd05db9=_0x5144d4['mainView']):(_0xd05db9=new _0x53ec47(_0x73ffba['locale'],_0x22377a,_0x103c32,{'disableComments':this['_disableComments'],'editorConfig':_0x360127['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x360127['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x360127['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x360127['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5ab875(_0x360127['get']('locale')),'CommentView':_0x360127['get']('comments')['CommentView'],'CommentsListView':_0x4f04f0,'CommentThreadInputView':_0x35b5b7}),_0xd05db9['acceptButton']['on']('execute',()=>{_0x73ffba['editing']['view']['focus']();}),_0xd05db9['discardButton']['on']('execute',()=>{_0x73ffba['editing']['view']['focus']();}),_0x5144d4=_0x24e89e['createAnnotationView'](this['editor']['locale'],_0xd05db9),_0x5144d4['bind']('isDirty')['to'](_0xd05db9,'isDirty'),_0x5144d4['bind']('length')['to'](_0xd05db9),_0x5144d4['bind']('type')['to'](_0xd05db9,'type',_0x17a7ba=>'suggestion-'+_0x17a7ba),this['_annotationViews']['set'](_0x22377a['id'],_0x5144d4));const _0x530be6=_0x4b3581['createCommentThreadController'](_0x22377a['commentThread'],_0xd05db9),_0x524887=new oe(_0x73ffba,_0x22377a,_0xd05db9,_0x530be6),_0x405b97=_0x22377a['getAllAdjacentSuggestions']()['filter'](_0x46bd17=>_0x46bd17['isInContent']);_0xd05db9['descriptionParts']=_0x73ffba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x405b97),this['_suggestionToController']['set'](_0x22377a,_0x524887),this['_viewToController']['set'](_0xd05db9,_0x524887);const _0x2bb009=_0x24e89e['createAnnotation']({'view':_0x5144d4,'target':()=>{const _0x3a0b3a=[],_0x3e9a70=_0x22377a['getAllAdjacentSuggestions']()['filter'](_0x336cee=>_0x336cee['isInContent']);for(const _0x2f8a50 of _0x3e9a70)_0x3a0b3a['push'](..._0x2f8a50['getMarkers']());return _0x1af8ea(_0x73ffba['editing'],_0x3a0b3a);},'type':()=>'suggestion-'+_0x524887['view']['type']});_0x4b3581['_bindAnnotationToEditors'](_0xd05db9,_0x2bb009),_0x24e89e['add'](_0x2bb009),_0x4fedd9['registerAnnotation'](_0x2bb009);}['_destroyController'](_0xd24d09){const _0x140be8=this['editor']['plugins']['get']('CommentsRepository'),_0x2519a0=this['editor']['plugins']['get']('Annotations'),_0x16fe33=this['_suggestionToController']['get'](_0xd24d09),_0x268c0d=_0x16fe33['view'],_0xf04712=_0x2519a0['getByInnerView'](_0x268c0d);_0x140be8['_unbindEditors'](_0x268c0d),_0xf04712&&_0x2519a0['remove'](_0xf04712),this['_suggestionToController']['delete'](_0xd24d09),this['_viewToController']['delete'](_0x268c0d),_0x16fe33['destroy']();}['_updateController'](_0x21dc25){if(!_0x21dc25['isInContent']||!this['_suggestionToController']['has'](_0x21dc25))return;const _0x4f1f63=this['editor']['plugins']['get']('TrackChangesEditing'),_0x550824=this['_suggestionToController']['get'](_0x21dc25),_0x53b158=_0x21dc25['getAllAdjacentSuggestions']();_0x550824['view']['descriptionParts']=_0x4f1f63['descriptionFactory']['getDescriptions'](_0x53b158);}['destroy'](){for(const _0x2b70b8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2b70b8);for(const _0x5ebfa6 of this['_annotationViews']['values']())_0x5ebfa6['mainView']['destroy']();super['destroy']();}}function ae(_0x51097b){return'model'in _0x51097b;}class k extends _0x16371d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x48b8ac){this['editor']['plugins']['get'](p)['adapter']=_0x48b8ac;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5e8cc9){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5e8cc9);}['getSuggestions']({skipNotAttached:_0x5737c2=!0x1,toJSON:_0x15dcbe=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5737c2,'toJSON':_0x15dcbe});}['getSuggestion'](_0x414e9b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x414e9b);}}const T=['Pagination'];class P extends _0x16371d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4b8a57=this['editor'];if(_0x4b8a57['config']['define']('trackChangesData.editorCreator',_0x469539=>{const _0x18f5af=_0x4b8a57['model']['document']['getRootNames']()['reduce']((_0x20ce6f,_0x1f7c5d)=>(_0x20ce6f[_0x1f7c5d]='',_0x20ce6f),{});return _0x4b8a57['constructor']['create'](_0x18f5af,_0x469539);}),'function'!=typeof _0x4b8a57['config']['get']('trackChangesData')['editorCreator'])throw new _0x40a0bd('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4fcf24){return N(this['editor'],!0x0,_0x4fcf24);}['getDataWithDiscardedSuggestions'](_0x7b9f8a){return N(this['editor'],!0x1,_0x7b9f8a);}}class D extends _0x16371d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x30585e){super(_0x30585e),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x673f98){return void 0x0!==_0x673f98['getRootsAttributes'];}async function N(_0x28dfed,_0x4cda15,_0x195565){const _0x1f9e74=_0x5b10d0(_0x28dfed,T);_0x1f9e74['plugins']['push'](p,D),_0x1f9e74['rootsAttributes']=v(_0x28dfed)?_0x28dfed['getRootsAttributes']():void 0x0;const _0x51d11c=document['createDocumentFragment'](),_0x3c9dac=_0x28dfed['config']['get']('trackChangesData')['editorCreator'],_0x10cb68=await _0x3c9dac(_0x1f9e74,()=>function(_0x4ec4ca){const _0x572f9b=document['createElement']('div');return _0x4ec4ca['appendChild'](_0x572f9b),_0x572f9b;}(_0x51d11c));!function(_0xc971d,_0x48c6e6){const _0x43fe65=_0xc971d['model']['document']['getRootNames']()['reduce']((_0xe5205b,_0x57abc8)=>(_0xe5205b[_0x57abc8]=_0xc971d['data']['get']({'rootName':_0x57abc8}),_0xe5205b),{}),_0x51c883=_0xc971d['plugins']['get']('Users')['users']['map'](_0x422785=>({'id':_0x422785['id'],'name':_0x422785['name']})),_0x4783d9=_0xc971d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x392930=_0xc971d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x380cac=_0x48c6e6['plugins']['get']('Users'),_0x1effed=_0x48c6e6['plugins']['get']('TrackChangesEditing'),_0x4e3894=_0x48c6e6['plugins']['get']('CommentsRepository');for(const _0x20e4f1 of _0x51c883)_0x380cac['getUser'](_0x20e4f1['id'])||_0x380cac['addUser'](_0x20e4f1);_0x380cac['me']||_0x380cac['useAnonymousUser']();for(const _0x48e707 of _0x392930)_0x4e3894['addCommentThread'](_0x48e707);for(const _0x464b46 of _0x4783d9)_0x1effed['addSuggestionData'](_0x464b46);_0x48c6e6['data']['set'](_0x43fe65);}(_0x28dfed,_0x10cb68),_0x10cb68['execute'](_0x4cda15?'acceptAllSuggestions':'discardAllSuggestions');const _0x11749a=v(_0x10cb68)?_0x10cb68['getFullData'](_0x195565):_0x10cb68['data']['get'](_0x195565);return await _0x10cb68['destroy'](),_0x11749a;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};