@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240714.0 → 0.0.0-nightly-20240715.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 _0x2c20e0,PendingActions as _0x4cb717,icons as _0x2c0fde}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x194952,ObservableMixin as _0x44d863,uid as _0xe5f9d9,insertToPriorityArray as _0x3bcf70,priorities as _0x452690,logWarning as _0x442e8e,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2b913d,View as _0x36730d,ButtonView as _0x4f6b58,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 _0x18293d,hashObject as _0x223067,surroundingMarkersDetector as _0x16d88b,trimHtml as _0xd4604a,UserView as _0x2db2ee,getDateTimeFormatter as _0x3f1be2,getAllMarkersDomElementsSorted as _0x68ed15,sanitizeEditorConfig as _0x5297a0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x40e498,LiveRange as _0xef9d24,LivePosition as _0x439b21}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x63a0a0,toWidget as _0x375e50}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3c2cfe,set as _0x439b32,isEqual as _0x58c209,unset as _0x5eadcf,omit as Bt}from'lodash-es';import{Delete as _0x2cce2f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x58549e,ShiftEnter as _0x34add9}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x45a1ad,_0xbda993){super(_0x45a1ad),this['_enabledCommands']=_0xbda993,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 _0x41e4b0 of this['editor']['commands']['commands']())_0x41e4b0['affectsData']&&!this['_enabledCommands']['has'](_0x41e4b0)&&_0x41e4b0['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2d8413 of this['editor']['commands']['commands']())_0x2d8413['affectsData']&&!this['_enabledCommands']['has'](_0x2d8413)&&_0x2d8413['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x2c0dfb,_0x58f9aa){super(_0x2c0dfb),this['_suggestions']=_0x58f9aa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5613db){const _0x15ebb0=this['_suggestions']['get'](_0x5613db);if(!_0x15ebb0)throw new _0x194952('track-changes-accept-suggestion-not-found',this);const _0x38d5f5=_0x15ebb0['getRanges']();this['editor']['model']['canEditAt'](_0x38d5f5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x15ebb0);}}class B extends ts{['_suggestions'];constructor(_0x5eeb1a,_0x2b044f){super(_0x5eeb1a),this['_suggestions']=_0x2b044f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4296f5){const _0x18bc8f=this['_suggestions']['get'](_0x4296f5);if(!_0x18bc8f)throw new _0x194952('track-changes-discard-suggestion-not-found',this);const _0x10fce5=_0x18bc8f['getRanges']();this['editor']['model']['canEditAt'](_0x10fce5)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x18bc8f);}}function ss(_0xdcfc4){return _0xdcfc4['sort']((_0x39aae3,_0x1dc50f)=>'deletion'==_0x39aae3['type']&&'deletion'!=_0x1dc50f['type']?-0x1:'deletion'!=_0x39aae3['type']&&'deletion'==_0x1dc50f['type']?0x1:0x0);}function to(_0x76ffdc,_0x2ba4ff){let _0x3e248e,_0x3e3e1b=0x0;const _0x2cf4ee=[],_0x3be1b8=_0x2ba4ff['schema'];for(;_0x3e3e1b<_0x76ffdc['length'];){const _0x221bd2=_0x76ffdc[_0x3e3e1b],_0x1273e2=_0x76ffdc[_0x3e3e1b+0x1];_0x3e248e||(_0x3e248e=_0x2ba4ff['createPositionBefore'](_0x221bd2)),co(_0x2ba4ff,_0x221bd2,_0x1273e2)||(_0x2cf4ee['push'](_0x2ba4ff['createRange'](_0x3e248e,_0x3be1b8['isObject'](_0x221bd2)?_0x2ba4ff['createPositionAfter'](_0x221bd2):_0x2ba4ff['createPositionAt'](_0x221bd2,'end'))),_0x3e248e=null),_0x3e3e1b++;}return _0x2cf4ee;}function co(_0x7218f2,_0x160a20,_0x2a46d3){if(!_0x2a46d3)return!0x1;const _0x2f11c4=_0x7218f2['createPositionAfter'](_0x160a20),_0x11a53b=_0x7218f2['createPositionBefore'](_0x2a46d3);return _0x2f11c4['isTouching'](_0x11a53b);}function rs(_0x255d86,_0x420e71,_0x4b7acb){for(;_0x4b7acb['length'];){const _0x26a3db=_0x4b7acb['splice'](0x0,0x64);_0x255d86['change'](()=>{for(const _0xb4e9b of _0x26a3db)_0xb4e9b['isInContent']&&_0x420e71['execute'](_0xb4e9b['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0xb36808,_0x57f8e9,_0x49b2b1){super(_0xb36808),this['_command']=_0x57f8e9,this['_suggestions']=_0x49b2b1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xe582f4=Array['from'](this['_suggestions']['values']())['some'](_0x30d2a4=>_0x30d2a4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xe582f4;}['execute'](){const _0x196504=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5ae197 of _0x196504){const _0x25c856=_0x5ae197['getRanges']();if(!this['editor']['model']['canEditAt'](_0x25c856))return;}rs(this['editor']['model'],this['_command'],_0x196504);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3f3c29,_0x5ee4f6,_0x36dd8b){super(_0x3f3c29),this['_command']=_0x5ee4f6,this['_suggestions']=_0x36dd8b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xdd8a67=this['editor']['model']['document']['selection'],_0xb0cba5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x54f3a2,_0x3fbffc){const _0x5b28e3=Array['from'](_0x54f3a2['getRanges']()),_0x24534e=new Set();for(const _0x5240d5 of _0x3fbffc)if(_0x5240d5['isInContent']){for(const _0x4b04ba of _0x5b28e3)for(const _0x3b1866 of _0x5240d5['getRanges']())(_0x4b04ba['isIntersecting'](_0x3b1866)||_0x54f3a2['isCollapsed']&&!_0x5240d5['isMultiRange']&&_0x5240d5['next']&&_0x3b1866['end']['isTouching'](_0x4b04ba['start']))&&_0x24534e['add'](_0x5240d5);}return _0x24534e;}(_0xdd8a67,_0xb0cba5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x420bfc=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5d37f4 of _0x420bfc){const _0x4dde42=_0x5d37f4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4dde42))return;}rs(this['editor']['model'],this['_command'],_0x420bfc);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x44d863(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x578bca,_0x811399){super(),this['id']=_0x811399['id'],this['type']=_0x811399['type'],this['subType']=_0x811399['subType']||null,this['author']=_0x811399['author'],this['creator']=_0x811399['creator']||_0x811399['author'],this['isExternal']=Boolean(_0x811399['attributes']&&_0x811399['attributes']['@external']),this['data']=null,this['_model']=_0x578bca,this['_onAccept']=_0x811399['onAccept'],this['_onDiscard']=_0x811399['onDiscard'],this['_onAttributesChange']=_0x811399['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x811399['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 _0x221871=this;for(;_0x221871['previous'];)_0x221871=_0x221871['previous'];return _0x221871;}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'](_0x53ff24){this['_markerNames']['add'](_0x53ff24);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x112ae0=>this['_model']['markers']['get'](_0x112ae0))['filter'](_0x468145=>_0x468145);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2c0b4b=>{for(const _0x66200a of this['getMarkers']())_0x2c0b4b['removeMarker'](_0x66200a);}),this['_markerNames']['clear']();}['removeMarker'](_0x278be6){this['_model']['change'](_0x4959ce=>{_0x4959ce['removeMarker'](_0x278be6);}),this['_markerNames']['delete'](_0x278be6);}['addRange'](_0x3ddb32){const _0x3bd601='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3bd601),this['_model']['change'](_0x484a92=>{_0x484a92['addMarker'](_0x3bd601,{'range':_0x3ddb32,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3d5120){for(const _0x3f4124 of this['getRanges']())if(_0x3f4124['isIntersecting'](_0x3d5120))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2646d9=>_0x2646d9['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4a5c77,_0x20fae4)=>[..._0x4a5c77,..._0x20fae4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x31fbfb=this['getRanges']();if(0x1!=_0x31fbfb['length'])return null;const _0x2fe10a=_0x31fbfb[0x0],_0x1f043b=_0x2fe10a['start']['nodeAfter'],_0x583116=_0x2fe10a['end']['nodeBefore'];return _0x1f043b instanceof _0x40e498?_0x1f043b!=_0x583116?null:_0x1f043b: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 _0x3f6b49=[];let _0x4b3cda=this['head'];for(;_0x4b3cda;)_0x3f6b49['push'](_0x4b3cda),_0x4b3cda=_0x4b3cda['next'];return _0x3f6b49;}['setAttribute'](_0x1cd4df,_0x3ccb96){const _0x409063=_0x3c2cfe(this['attributes']);_0x439b32(_0x409063,_0x1cd4df,_0x3ccb96),_0x58c209(_0x409063,this['attributes'])||(this['attributes']=_0x409063,this['_onAttributesChange'](_0x409063));}['removeAttribute'](_0x1eb66b){const _0x1e57b3=_0x3c2cfe(this['attributes']);_0x5eadcf(_0x1e57b3,_0x1eb66b),_0x58c209(_0x1e57b3,this['attributes'])||(this['attributes']=_0x1e57b3,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 _0xe5f9d9()['substr'](0x1,0x5);}}function o(_0x3ed68e,_0x28fdb1,_0x442393){const t=_0x3ed68e['t'];switch(_0x28fdb1){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',_0x442393);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x442393);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x442393);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x442393);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x442393);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',_0x442393);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x442393);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',_0x442393);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x442393);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x442393);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x442393);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x442393);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x442393);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x442393);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x442393);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x442393);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x442393);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x442393);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x442393);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x442393);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x442393);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x442393);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x442393);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'},_0x442393);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x442393);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x442393);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x442393);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x442393);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x442393);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'},_0x442393);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x442393);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x442393);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x442393);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x442393);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'},_0x442393);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x442393);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'},_0x442393);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'},_0x442393);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x442393);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'},_0x442393);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x442393);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'},_0x442393);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x442393);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x442393);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'},_0x442393);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'},_0x442393);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 _0x28fdb1;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x146e75,_0x37023b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x146e75,this['_locale']=_0x37023b;}['getDescriptions'](_0x35c9d6){const _0x566dfd=[],_0x5d5bec=new Set(),_0x3e951d=new Set();for(let _0x2edb05=0x0;_0x2edb05<_0x35c9d6['length'];_0x2edb05++){const _0x2b8df3=_0x35c9d6[_0x2edb05];if(!_0x2b8df3['isInContent'])continue;const _0x554343=this['_handleCustomCallbackDescription'](_0x2b8df3);if(_0x554343){if(null!=_0x2b8df3['subType']){if(_0x5d5bec['has'](_0x2b8df3['subType']))continue;_0x5d5bec['add'](_0x2b8df3['subType']);}_0x566dfd['push'](_0x554343);}else{if('attribute'!=_0x2b8df3['type'])'insertion'!=_0x2b8df3['type']&&'deletion'!=_0x2b8df3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x566dfd,_0x2b8df3,_0x35c9d6[_0x2edb05+0x1]);else{const _0x5b40a7=_0x2b8df3['data']['key'];if(_0x3e951d['has'](_0x5b40a7))continue;_0x3e951d['add'](_0x2b8df3['data']['key']),_0x5b40a7==m?this['_handleRenameSuggestionDescription'](_0x566dfd,_0x2b8df3):this['_handleAttributeSuggestionDescription'](_0x566dfd,_0x2b8df3);}}}return this['_resolveDescriptionItems'](_0x566dfd);}['registerDescriptionCallback'](_0x14bf5c){this['_customCallbacks']['push'](_0x14bf5c);}['registerElementLabel'](_0x31743e,_0x3c3a70,_0x5295d7=_0x452690['normal']){'function'==typeof _0x31743e?_0x3bcf70(this['_itemLabelsCallbacks'],{'matchingCallback':_0x31743e,'label':_0x3c3a70,'priority':_0x5295d7}):this['_itemLabels']['set'](_0x31743e,_0x3c3a70);}['registerAttributeLabel'](_0x1d3e0c,_0x4fd2bf){this['_attributeLabels']['set'](_0x1d3e0c,_0x4fd2bf);}['getItemLabel'](_0x21c791,_0x4086c6=0x1){let _0x7bc7da;for(const _0xe8d50f of this['_itemLabelsCallbacks'])if(_0xe8d50f['matchingCallback'](_0x21c791)){_0x7bc7da=_0xe8d50f['label'];break;}return _0x7bc7da||(_0x7bc7da=this['_itemLabels']['get'](_0x21c791['name'])),_0x7bc7da?_0x7bc7da(_0x4086c6):0x1!==_0x4086c6?_0x4086c6+'\x20'+_0x21c791['name']+'s':''+_0x21c791['name'];}['_addDescriptionItems'](_0x5d8827,_0x3158a1){const _0x2f0595=_0x3158a1['getFirstRange']()['getWalker'](),_0x42a223='insertion'==_0x3158a1['type']?'add':'remove';for(const _0x92fb0d of _0x2f0595){const _0x2aa078=_0x92fb0d['item'],_0x16f386=_0x5d8827[_0x5d8827['length']-0x1];if(_0x2aa078['is']('$textProxy'))_0x16f386&&_0x16f386['type']['indexOf']('Container')>-0x1&&_0x5d8827['pop'](),_0x16f386&&'text'==_0x16f386['type']?_0x16f386[_0x42a223]+=_0x2aa078['data']:_0x5d8827['push']({'type':'text','add':'add'==_0x42a223?_0x2aa078['data']:'','remove':'remove'==_0x42a223?_0x2aa078['data']:''});else{if(this['_schema']['isObject'](_0x2aa078)){const _0x19a378=_0x2aa078;if(_0x16f386&&_0x16f386['type']['indexOf']('Container')>-0x1&&_0x5d8827['pop'](),'elementEnd'==_0x92fb0d['type'])continue;_0x16f386&&_0x16f386['type']==_0x42a223+'Object'&&_0x16f386['element']['name']==_0x19a378['name']?_0x16f386['quantity']++:_0x5d8827['push']({'type':_0x42a223+'Object','element':_0x19a378,'quantity':0x1}),_0x2f0595['skip'](_0x11bf8c=>!('elementEnd'==_0x11bf8c['type']&&_0x11bf8c['item']==_0x2aa078));}else{if(this['_schema']['checkChild'](_0x2aa078,'$text')||_0x2aa078['is']('element','softBreak')){const _0x324b80=_0x2aa078;if('add'==_0x42a223&&'elementStart'==_0x92fb0d['type']||'remove'==_0x42a223&&'elementEnd'==_0x92fb0d['type'])continue;if(_0x16f386&&-0x1==_0x16f386['type']['indexOf']('Container')){'text'==_0x16f386['type']&&(_0x16f386[_0x42a223]+='\x0a');continue;}let _0x2b70f9;if(_0x2b70f9='add'==_0x42a223?_0x324b80['nextSibling']&&!this['_schema']['isObject'](_0x324b80['nextSibling'])?_0x324b80['nextSibling']:null:_0x324b80['previousSibling']&&!this['_schema']['isObject'](_0x324b80['previousSibling'])?_0x324b80['previousSibling']:null,_0x324b80['isEmpty']||_0x2b70f9&&_0x2b70f9['isEmpty']){const _0x427a55=_0x2b70f9&&_0x2b70f9['isEmpty']?_0x2b70f9:_0x324b80;_0x16f386&&_0x16f386['type']==_0x42a223+'EmptyContainer'&&_0x16f386['element']['name']==_0x427a55['name']?_0x16f386['quantity']++:_0x5d8827['push']({'type':_0x42a223+'EmptyContainer','element':_0x427a55,'quantity':0x1});}else _0x5d8827['push']({'type':_0x42a223+'Container','element':_0x324b80});}}}}}['_resolveDescriptionItems'](_0x490b0c){const _0x3711bc=this['_locale'],_0x5ed0d0=[],_0x589518=[],_0x486b40=[];for(const _0x3e5c2f of _0x490b0c)switch(_0x3e5c2f['type']){case'text':if(_0x3e5c2f['add']=_0x3e5c2f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3e5c2f['remove']=_0x3e5c2f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3e5c2f['add']&&''!=_0x3e5c2f['remove']){_0x5ed0d0['push']({'type':'replace','content':o(_0x3711bc,'REPLACE_TEXT',['\x22'+_0x3e5c2f['remove']+'\x22','\x22'+_0x3e5c2f['add']+'\x22'])});continue;}if(null!=_0x3e5c2f['add']['match'](/^ +$/)){_0x5ed0d0['push']({'type':'insertion','content':o(_0x3711bc,'*Insert:*\x20%0',o(_0x3711bc,'ELEMENT_SPACE',_0x3e5c2f['add']['length']))});continue;}if(null!=_0x3e5c2f['remove']['match'](/^ +$/)){_0x5ed0d0['push']({'type':'deletion','content':o(_0x3711bc,'*Remove:*\x20%0',o(_0x3711bc,'ELEMENT_SPACE',_0x3e5c2f['remove']['length']))});continue;}if(''!=_0x3e5c2f['add']){_0x5ed0d0['push']({'type':'insertion','content':o(_0x3711bc,'*Insert:*\x20%0','\x22'+_0x3e5c2f['add']+'\x22')});continue;}_0x5ed0d0['push']({'type':'deletion','content':o(_0x3711bc,'*Remove:*\x20%0','\x22'+_0x3e5c2f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5ed0d0['push']({'type':'insertion','content':o(_0x3711bc,'*Insert:*\x20%0',this['getItemLabel'](_0x3e5c2f['element'],_0x3e5c2f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5ed0d0['push']({'type':'deletion','content':o(_0x3711bc,'*Remove:*\x20%0',this['getItemLabel'](_0x3e5c2f['element'],_0x3e5c2f['quantity']))});continue;case'addContainer':_0x5ed0d0['push']({'type':'insertion','content':o(_0x3711bc,'*Split:*\x20%0',this['getItemLabel'](_0x3e5c2f['element'],_0x3e5c2f['quantity']))});continue;case'removeContainer':_0x5ed0d0['push']({'type':'deletion','content':o(_0x3711bc,'*Merge:*\x20%0',this['getItemLabel'](_0x3e5c2f['element'],_0x3e5c2f['quantity']))});continue;case'addFormat':_0x589518['push'](_0x3e5c2f['key']);continue;case'removeFormat':_0x486b40['push'](_0x3e5c2f['key']);continue;default:_0x5ed0d0['push'](_0x3e5c2f);}if(_0x589518['length']){const _0x276e43=_0x589518['map'](_0x27cec9=>this['_attributeLabels']['has'](_0x27cec9)?this['_attributeLabels']['get'](_0x27cec9):_0x27cec9)['join'](',\x20');_0x5ed0d0['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x276e43)});}if(_0x486b40['length']){const _0x34e8e5=_0x486b40['map'](_0x2c77ee=>this['_attributeLabels']['has'](_0x2c77ee)?this['_attributeLabels']['get'](_0x2c77ee):_0x2c77ee)['join'](',\x20');_0x5ed0d0['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x34e8e5)});}return _0x5ed0d0;}['_handleCustomCallbackDescription'](_0x257b26){for(const _0x143e48 of this['_customCallbacks']){const _0x4a06c8=_0x143e48(_0x257b26);if(_0x4a06c8&&'type'in _0x4a06c8)return _0x4a06c8;}}['_handleAttributeSuggestionDescription'](_0xc17c93,_0x2a1822){const _0x224cf4=_0x2a1822['data'],_0xdf9a4f=void 0x0===_0x224cf4['newValue']?'removeFormat':'addFormat';_0xc17c93['push']({'type':_0xdf9a4f,'key':_0x224cf4['key']});}['_handleRenameSuggestionDescription'](_0x52a145,_0x2515ba){_0x52a145['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2515ba['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1c6fcf,_0x54a967,_0x4ef6bc){if(this['_addDescriptionItems'](_0x1c6fcf,_0x54a967),_0x4ef6bc&&_0x4ef6bc['getFirstRange']()&&!_0x54a967['getFirstRange']()['end']['isEqual'](_0x4ef6bc['getFirstRange']()['start'])){const _0x25896c=_0x1c6fcf[_0x1c6fcf['length']-0x1],_0x2852e9='insertion'==_0x54a967['type']?'add':'remove';_0x25896c&&'text'==_0x25896c['type']&&(_0x25896c[_0x2852e9]+='\x0a');}}}class E extends _0x2c20e0{['afterInit'](){const _0xa81d07=this['editor'],_0x4162a7=_0xa81d07['plugins']['get']('TrackChangesEditing');_0xa81d07['commands']['get']('showAIAssistant')&&_0x4162a7['enableCommand']('showAIAssistant');}}class V extends _0x2c20e0{['afterInit'](){const _0x33a006=this['editor'],_0x3b7030=_0x33a006['locale'];if(!_0x33a006['plugins']['has']('AlignmentEditing'))return;const _0x4e3f63=_0x33a006['plugins']['get']('TrackChangesEditing');_0x4e3f63['enableDefaultAttributesIntegration']('alignment'),_0x4e3f63['registerBlockAttribute']('alignment'),_0x4e3f63['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3b7030,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c8496=this['editor'],_0x1e686a=_0x2c8496['locale'];_0x2c8496['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b409e=>{if('formatBlock'!=_0x5b409e['type'])return;const {data:_0x3c85a2}=_0x5b409e;if(_0x3c85a2&&'alignment'==_0x3c85a2['commandName']){const _0xaa3aae=_0x3c85a2['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1e686a,'*Format:*\x20%0',function(_0x4f8a87){switch(_0x4f8a87){case'left':return o(_0x1e686a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1e686a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1e686a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1e686a,'FORMAT_JUSTIFY_TEXT');}}(_0xaa3aae))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x2c20e0{['afterInit'](){const _0x1ea7b2=this['editor'],_0x16b2df=_0x1ea7b2['plugins']['get']('TrackChangesEditing'),_0x97db10=_0x1ea7b2['locale'];for(const _0x4abebc of ti){if(!_0x1ea7b2['plugins']['has'](_0x4abebc))continue;const _0x58a8d8=_0x4abebc['slice'](0x0,-0x7)['toLowerCase'](),_0x8b26ac='FORMAT_'+_0x58a8d8['toUpperCase']();_0x16b2df['enableDefaultAttributesIntegration'](_0x58a8d8),_0x16b2df['registerInlineAttribute'](_0x58a8d8),_0x16b2df['descriptionFactory']['registerAttributeLabel'](_0x58a8d8,o(_0x97db10,_0x8b26ac));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16d300=this['editor'],_0x514987=_0x16d300['locale'],_0x3e5701=_0x16d300['plugins']['get']('TrackChangesEditing');function _0xfbe6b4(_0x53a139,_0x39c8e9){_0x3e5701['descriptionFactory']['registerDescriptionCallback'](_0x47e90d=>{if('formatInline'!=_0x47e90d['type'])return;const {data:_0x5e0df7}=_0x47e90d;return _0x5e0df7&&_0x5e0df7['commandName']===_0x53a139?_0x5e0df7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x514987,'*Format:*\x20%0',_0x39c8e9)}:{'type':'format','content':o(_0x514987,'*Remove\x20format:*\x20%0',_0x39c8e9)}:void 0x0;});}_0xfbe6b4('bold',o(_0x514987,'FORMAT_BOLD')),_0xfbe6b4('italic',o(_0x514987,'FORMAT_ITALIC')),_0xfbe6b4('underline',o(_0x514987,'FORMAT_UNDERLINE')),_0xfbe6b4('code',o(_0x514987,'FORMAT_CODE')),_0xfbe6b4('strikethrough',o(_0x514987,'FORMAT_STRIKETHROUGH')),_0xfbe6b4('subscript',o(_0x514987,'FORMAT_SUBSCRIPT')),_0xfbe6b4('superscript',o(_0x514987,'FORMAT_SUPERSCRIPT'));}}class O extends _0x2c20e0{['afterInit'](){const _0x4d88c8=this['editor'],_0x98a28b=_0x4d88c8['locale'];if(!_0x4d88c8['plugins']['has']('BlockQuoteEditing'))return;const _0x3a4ac4=_0x4d88c8['plugins']['get']('TrackChangesEditing'),_0x9b1732=this['editor']['commands']['get']('blockQuote');_0x3a4ac4['enableCommand']('blockQuote',(_0x3b31fc,_0x52bb93={})=>{const _0xb70e3e=this['editor']['model']['document']['selection'],_0x2cc1ed=_0x52bb93&&void 0x0!==_0x52bb93['forceValue']?_0x52bb93['forceValue']:!_0x9b1732['value'];let _0x49b4de=[];if(_0x2cc1ed){const _0x3ac320=Array['from'](_0xb70e3e['getSelectedBlocks']())['filter'](_0x26945e=>oo(_0x26945e)||function(_0x59fcb8,_0x4e0cc5){const _0x3cabdf=_0x4e0cc5['checkChild'](_0x59fcb8['parent'],'blockQuote'),_0x1cebd2=_0x4e0cc5['checkChild'](['$root','blockQuote'],_0x59fcb8);return _0x3cabdf&&_0x1cebd2;}(_0x26945e,this['editor']['model']['schema']));_0x49b4de=to(_0x3ac320,_0x4d88c8['model']);}else{const _0x186288=Array['from'](_0xb70e3e['getSelectedBlocks']())['filter'](_0xf65a7e=>oo(_0xf65a7e));_0x49b4de=to(_0x186288,_0x4d88c8['model']);}_0x4d88c8['model']['change'](()=>{for(const _0x3286f5 of _0x49b4de)_0x3a4ac4['markBlockFormat'](_0x3286f5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2cc1ed}]});});}),_0x3a4ac4['descriptionFactory']['registerDescriptionCallback'](_0x22146f=>{const {data:_0x1f54f4}=_0x22146f;if(_0x1f54f4&&'blockQuote'==_0x1f54f4['commandName']){const _0x22febd=o(_0x98a28b,'ELEMENT_BLOCK_QUOTE');return _0x1f54f4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x98a28b,'*Set\x20format:*\x20%0',_0x22febd)}:{'type':'format','content':o(_0x98a28b,'*Remove\x20format:*\x20%0',_0x22febd)};}});}}function oo(_0x2b9ec8){return'blockQuote'==_0x2b9ec8['parent']['name'];}class G extends _0x2c20e0{['afterInit'](){const _0x49a861=this['editor'];_0x49a861['plugins']['has']('CaseChange')&&(_0x49a861['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x49a861['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x49a861['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x2c20e0{['afterInit'](){const _0x459ddb=this['editor'];_0x459ddb['commands']['get']('ckbox')&&_0x459ddb['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x2c20e0{['afterInit'](){const _0x56c27c=this['editor'];if(!_0x56c27c['plugins']['has']('CodeBlock'))return;const _0x27b568=_0x56c27c['plugins']['get']('TrackChangesEditing'),_0x1755ba=_0x56c27c['locale'],_0x375747=_0x56c27c['config']['get']('codeBlock')['languages'],_0x369b12=_0x56c27c['commands']['get']('codeBlock');_0x27b568['enableCommand']('indentCodeBlock'),_0x27b568['enableCommand']('outdentCodeBlock'),_0x27b568['enableCommand']('codeBlock',(_0x6d92f4,_0x41b619={})=>{const _0x481f24=_0x56c27c['model'],_0x3f9028=_0x56c27c['model']['document']['selection'],_0x19375b=_0x41b619&&void 0x0!==_0x41b619['forceValue']?_0x41b619['forceValue']:!_0x369b12['value'];let _0x2c2c6f;_0x41b619['language']||(_0x41b619['language']=_0x375747[0x0]['language']),_0x2c2c6f=_0x19375b?Array['from'](_0x3f9028['getSelectedBlocks']())['filter'](_0x494e3f=>eo(_0x494e3f)||function(_0xb69326,_0x57ddd6){if(_0xb69326['is']('rootElement')||_0x57ddd6['isLimit'](_0xb69326))return!0x1;return _0x57ddd6['checkChild'](_0xb69326['parent'],'codeBlock');}(_0x494e3f,_0x481f24['schema'])):Array['from'](_0x3f9028['getSelectedBlocks']())['filter'](_0x88810=>eo(_0x88810));const _0xd4fc3b=to(_0x2c2c6f,_0x481f24);_0x481f24['change'](()=>{for(const _0x3b2868 of _0xd4fc3b)_0x27b568['markBlockFormat'](_0x3b2868,{'commandName':'codeBlock','commandParams':[{..._0x41b619,'forceValue':_0x19375b}],'formatGroupId':'blockName'});});}),(_0x27b568['descriptionFactory']['registerElementLabel']('codeBlock',_0x23a57f=>o(_0x1755ba,'ELEMENT_CODE_BLOCK',_0x23a57f)),_0x27b568['descriptionFactory']['registerDescriptionCallback'](_0x4d9e06=>{if('formatBlock'!=_0x4d9e06['type'])return;const _0x566368=_0x1755ba['t'],{data:_0x1161ab}=_0x4d9e06;if(!_0x1161ab||'codeBlock'!=_0x1161ab['commandName'])return;const _0x1d33b8=_0x1161ab['commandParams'][0x0]['language'],_0x323782=_0x566368(_0x375747['find'](_0x1128d2=>_0x1128d2['language']===_0x1d33b8)['label'])['toLowerCase']();return _0x1161ab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1755ba,'*Set\x20format:*\x20%0',o(_0x1755ba,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x323782+')')}:{'type':'format','content':o(_0x1755ba,'*Remove\x20format:*\x20%0',o(_0x1755ba,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x426bba){return'codeBlock'==_0x426bba['name'];}class H extends _0x2c20e0{['afterInit'](){const _0x59aaf4=this['editor'];if(!_0x59aaf4['plugins']['has']('CommentsEditing'))return;_0x59aaf4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5f223f,_0x3e9a7c,_0x28beba){const _0x45ec19=[];for(const _0x4929ec of _0x3e9a7c['getItems']())_0x4929ec['hasAttribute'](_0x5f223f)&&_0x45ec19['push'](_0x28beba['createRangeOn'](_0x4929ec));return _0x45ec19;}function _e(_0x510c80,_0x6d0165,{showActiveMarker:_0x1c2cbe=!0x0}={}){const _0x527868=_0x510c80['plugins']['get']('TrackChangesEditing');return(_0x1f4a9b,_0x6de4e3,_0x26d4a8)=>{if(!_0x26d4a8['consumable']['test'](_0x6de4e3['markerRange'],_0x1f4a9b['name']))return;const _0x28826c=_0x6de4e3['markerRange']['getWalker'](),_0x2727b0=_0x6de4e3['markerRange']['start'],_0x2f0f4b=_0x510c80['model']['schema'];let _0x4aabf9=null,_0x2d32bf=null,_0x195a7e=!0x1,_0x95283f=!0x1;for(const _0x188c3f of _0x28826c){const _0x3b2fff=_0x188c3f['item'];_0x195a7e=_0x195a7e||_0x2f0f4b['isContent'](_0x3b2fff);const _0x35e111=_0x26d4a8['mapper']['toViewElement'](_0x3b2fff);if(_0x35e111&&_0x35e111['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x188c3f['type']&&(_0x2f0f4b['isBlock'](_0x3b2fff)&&!_0x2f0f4b['isLimit'](_0x3b2fff)&&(_0x3b2fff['nextSibling']||_0x2727b0['isAtEnd']?_0x4aabf9&&_0x4aabf9['parent']==_0x3b2fff||(_0x4aabf9=_0x3b2fff,_0xa3eacb(_0x188c3f['previousPosition']),_0x95283f=!0x0):_0x2d32bf=_0x2d32bf||_0x188c3f['previousPosition']));}function _0xa3eacb(_0x5b8e75){const _0x5b7591=_0x26d4a8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6d0165}),_0x292477=_0x26d4a8['mapper']['toViewPosition'](_0x5b8e75);_0x1c2cbe&&_0x527868['activeMarkers']['includes'](_0x6de4e3['markerName'])&&_0x26d4a8['writer']['addClass']('ck-suggestion-marker--active',_0x5b7591),_0x26d4a8['writer']['insert'](_0x292477,_0x5b7591),_0x26d4a8['mapper']['bindElementToMarker'](_0x5b7591,_0x6de4e3['markerName']);}_0x195a7e||_0x95283f||!_0x2d32bf||_0xa3eacb(_0x2d32bf);};}class q extends _0x2c20e0{static get['requires'](){return[_0x2cce2f];}['init'](){const _0x3b2836=this['editor'],_0x24c928=_0x3b2836['plugins']['get']('TrackChangesEditing');_0x24c928['enableCommand']('delete');const _0xb0e5fa=_0x3b2836['commands']['get']('deleteForward');_0x24c928['enableCommand']('deleteForward',(_0x1655ad,_0x51e034={})=>{const _0x356af4=_0x3b2836['model']['createSelection'](_0x3b2836['model']['document']['selection']);_0x356af4['isCollapsed']&&_0x3b2836['model']['modifySelection'](_0x356af4,{'direction':'forward','unit':_0x51e034['unit']});const _0xe20ebb=_0x356af4['getFirstRange'](),_0x464548=_0xef9d24['fromRange'](_0xe20ebb);let _0x4edadb;_0x1655ad(_0x51e034),_0x4edadb='$graveyard'==_0x464548['root']['rootName']?_0x3b2836['model']['createRange'](_0xe20ebb['start']):_0x3b2836['model']['createRange'](_0x464548['start'],_0x464548['end']),_0x464548['detach'](),_0x3b2836['model']['enqueueChange'](_0xb0e5fa['buffer']['batch'],_0x306c1a=>{_0xb0e5fa['buffer']['lock'](),_0x306c1a['setSelection'](_0x306c1a['createRange'](_0x4edadb['end'])),_0xb0e5fa['buffer']['unlock']();});}),_0x3b2836['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3b2836,'merge'),{'priority':'high'}),_0x3b2836['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x35ff67,_0x31309e,_0x5a6eae)=>{_0x5a6eae['options']['showSuggestionHighlights']&&_e(_0x3b2836,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x35ff67,_0x31309e,_0x5a6eae);},{'priority':'high'}),_0x3b2836['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x585687,_0x3534bd,_0x277b18)=>{const _0x402f14=_0x277b18['mapper']['markerNameToElements'](_0x3534bd['markerName']);if(_0x402f14){for(const _0x4008f7 of _0x402f14)_0x4008f7['is']('uiElement')&&(_0x277b18['mapper']['unbindElementFromMarkerName'](_0x4008f7,_0x3534bd['markerName']),_0x277b18['writer']['remove'](_0x4008f7));}},{'priority':'high'});}}class z extends _0x2c20e0{['afterInit'](){const _0x1bd3ed=this['editor'];if(!_0x1bd3ed['plugins']['has']('ListEditing'))return;const _0x326ff2=_0x1bd3ed['locale'],_0xea2be2=_0x1bd3ed['plugins']['get']('TrackChangesEditing'),_0x41dce6=_0x1bd3ed['plugins']['has']('TodoListEditing'),_0x2a7191=!!_0x1bd3ed['config']['get']('list.multiBlock');function _0x40207b(_0xed9321){return{'type':'format','content':''+o(_0x326ff2,'*Set\x20format:*\x20%0',_0xed9321)};}function _0x3097bd(_0xe8e795){return{'type':'format','content':''+o(_0x326ff2,'*Remove\x20format:*\x20%0',_0xe8e795)};}_0xea2be2['enableDefaultAttributesIntegration']('numberedList'),_0xea2be2['enableDefaultAttributesIntegration']('bulletedList'),_0xea2be2['enableDefaultAttributesIntegration']('customNumberedList'),_0xea2be2['enableDefaultAttributesIntegration']('customBulletedList'),_0xea2be2['enableDefaultAttributesIntegration']('indentList'),_0xea2be2['enableDefaultAttributesIntegration']('outdentList'),_0xea2be2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xea2be2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xea2be2['registerBlockAttribute']('listItemId'),_0xea2be2['registerBlockAttribute']('listType'),_0xea2be2['registerBlockAttribute']('listIndent'),_0x2a7191&&(_0xea2be2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xea2be2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x41dce6&&(_0xea2be2['enableDefaultAttributesIntegration']('todoList'),_0xea2be2['enableDefaultAttributesIntegration']('checkTodoList'),_0xea2be2['registerBlockAttribute']('todoListChecked'),_0xea2be2['descriptionFactory']['registerDescriptionCallback'](_0x4d5821=>{const {data:_0x17de50}=_0x4d5821;if(_0x17de50&&'todoListChecked'==_0x17de50['key'])return{'type':'format','content':_0x17de50['newValue']?o(_0x326ff2,'*Check\x20item*'):o(_0x326ff2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xd8e0b0=>{if(_0xd8e0b0['batch']['isUndo'])return!0x1;let _0x402077=!0x1;const _0x4f9508=_0xea2be2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54ac4f=>'todoListChecked'===_0xea2be2['_getAttributeKey'](_0x54ac4f));for(const _0x2545ad of _0x4f9508){'todo'!=_0x2545ad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xea2be2['_findSuggestions'](_0x2545ad['getFirstRange'](),'attribute')['find'](_0xeb26ca=>'listType'===_0xea2be2['_getAttributeKey'](_0xeb26ca['suggestion']))||(_0xd8e0b0['removeMarker'](_0x2545ad['getFirstMarker']()),_0x402077=!0x0));}return _0x402077;})),_0xea2be2['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x326ff2,'FORMAT_INDENT'));const _0x586b43={'type':'format','content':''};_0xea2be2['descriptionFactory']['registerDescriptionCallback'](_0x5b8c2d=>{const {data:_0x47ffdd}=_0x5b8c2d;if(!_0x47ffdd||'listType'!=_0x47ffdd['key'])return;let _0x2f8651=_0x5b8c2d['head'];for(;_0x2f8651;){if(_0x2f8651['data']&&(('listStyle'==_0x2f8651['data']['key']||'listMarkerStyle'==_0x2f8651['data']['key'])&&(_0x2f8651['data']['newValue']&&'default'!=_0x2f8651['data']['newValue']||'default'!=_0x2f8651['data']['oldValue']&&!_0x47ffdd['newValue'])||!_0x2a7191&&_0x2f8651['data']['key']==m))return _0x586b43;_0x2f8651=_0x2f8651['next'];}if(null==_0x47ffdd['newValue'])switch(_0x47ffdd['oldValue']){case'bulleted':return _0x3097bd(o(_0x326ff2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3097bd(o(_0x326ff2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3097bd(o(_0x326ff2,'ELEMENT_TODO_LIST'));}switch(_0x47ffdd['newValue']){case'bulleted':return _0x40207b(o(_0x326ff2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x40207b(o(_0x326ff2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x40207b(o(_0x326ff2,'ELEMENT_TODO_LIST'));}}),_0xea2be2['descriptionFactory']['registerDescriptionCallback'](_0x1dbafd=>{const {data:_0x1269fa}=_0x1dbafd;if(_0x1269fa&&'listIndent'==_0x1269fa['key'])return null==_0x1269fa['newValue']||null==_0x1269fa['oldValue']&&0x0==_0x1269fa['newValue']?_0x586b43:void 0x0;}),_0xea2be2['descriptionFactory']['registerDescriptionCallback'](_0x5b91fb=>{if('attribute'!=_0x5b91fb['type'])return;const {data:_0x552a6e}=_0x5b91fb;if(!_0x552a6e||'listItemId'!=_0x552a6e['key'])return;const _0x4d9137=le(_0x5b91fb);return'newValue'==_0x4d9137?{'type':'format','content':o(_0x326ff2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4d9137?{'type':'format','content':o(_0x326ff2,'*Split:*\x20list\x20item')}:_0x586b43;}),_0x1bd3ed['model']['document']['registerPostFixer'](_0x4449aa=>this['listItemIdFixer'](_0x4449aa)),_0x1bd3ed['model']['document']['registerPostFixer'](_0x496bae=>this['noTrackChangesFixer'](_0x496bae)),_0x1bd3ed['model']['document']['registerPostFixer'](_0x5aeee3=>this['assureChains'](_0x5aeee3)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xb73197){if(_0xb73197['batch']['isUndo']||!_0xb73197['batch']['isLocal'])return!0x1;let _0x635ed3=!0x1;const _0x1acc93=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12c409=>_0x12c409['data']&&'listItemId'==_0x12c409['data']['key'])['filter'](_0x21c2c9=>_0x21c2c9['data']['newValue']&&_0x21c2c9['data']['oldValue']);for(const _0x40c67b of _0x1acc93)le(_0x40c67b)||(_0xb73197['removeMarker'](_0x40c67b['getFirstMarker']()),_0x635ed3=!0x0);return _0x635ed3;}['noTrackChangesFixer'](_0x140a97){if(_0x140a97['batch']['isUndo']||!_0x140a97['batch']['isLocal'])return!0x1;const _0x56f6b7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x56f6b7['trackChangesCommand']['value'])return!0x1;let _0x4e1a65=!0x1;const _0x56b339=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2ea60b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3555f2=>'attribute'==_0x3555f2['type'])['filter'](_0x525b48=>_0x56b339['includes'](_0x525b48['attributeKey']));if(0x0==_0x2ea60b['length'])return _0x4e1a65;for(const _0x4d1495 of _0x2ea60b){const _0x3217ca=_0x56f6b7['_findSuggestions'](_0x4d1495['range'],'attribute')['filter'](_0x36e5f0=>!_0x36e5f0['meta']['isNextTo'])['map'](_0x2816d4=>_0x2816d4['suggestion'])['filter'](_0x3e5c5d=>{const _0x364c0d=_0x56f6b7['_getAttributeKey'](_0x3e5c5d);return _0x56b339['includes'](_0x364c0d);});if(_0x3217ca['length']){for(const _0x5766c9 of _0x3217ca)_0x140a97['removeMarker'](_0x5766c9['getFirstMarker']());_0x4e1a65=!0x0;}}return _0x4e1a65;}['assureChains'](_0x2091e6){if(_0x2091e6['batch']['isUndo']||!_0x2091e6['batch']['isLocal'])return!0x1;const _0x54beaf=this['editor']['plugins']['get']('TrackChangesEditing');let _0x518ecb=!0x1;const _0x1824b9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x1c9049 of _0x54beaf['getSuggestions']({'skipNotAttached':!0x0})){const _0x13717c=_0x54beaf['_findSuggestions'](_0x1c9049['getFirstRange'](),'attribute')['map'](_0x582cc0=>_0x582cc0['suggestion'])['filter'](_0x48ed81=>_0x48ed81['data']&&_0x1824b9['includes'](_0x48ed81['data']['key']));if(!_0x13717c['length'])continue;const _0x3922f6=_0x13717c[0x0]['head']['attributes']['groupId'];if(!_0x13717c['every'](_0xc9dbea=>_0xc9dbea['attributes']['groupId']===_0x3922f6)){for(const _0x390eca of _0x13717c)_0xaa3ee1(_0x390eca,_0x3922f6)&&(_0x518ecb=!0x0);}}return _0x518ecb;function _0x311e20(_0x27ae7b,_0x2e193b){for(const _0x46ef0 of _0x54beaf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5078e1=>'attribute'==_0x5078e1['type']&&_0x5078e1['attributes']['groupId']==_0x27ae7b))_0x46ef0['setAttribute']('groupId',_0x2e193b);}function _0xaa3ee1(_0x3c5594,_0x3a4c67){let _0x4aed91=_0x3c5594['head'],_0x28b236=!0x1;for(;_0x4aed91;)_0x4aed91['attributes']['groupId']!=_0x3a4c67&&(_0x311e20(_0x4aed91['attributes']['groupId'],_0x3a4c67),_0x4aed91['setAttribute']('groupId',_0x3a4c67),_0x28b236=!0x0),_0x4aed91=_0x4aed91['next'];return _0x28b236;}}['_supportLegacySuggestions'](){const _0x39d371=this['editor'],_0x56d6b6=_0x39d371['locale'],_0x2d2f2a=_0x39d371['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2d2f2a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x257463,_0x1121a4){const _0x75960c=[];for(let _0x68c259 of _0x257463)_0x68c259['start']['nodeAfter']===_0x68c259['end']['parent']&&(_0x68c259=_0x39d371['model']['createRange'](_0x39d371['model']['createPositionAt'](_0x68c259['start']['nodeAfter'],0x0))),_0x75960c['push'](_0x68c259);_0x39d371['model']['change'](_0x5b4524=>{const _0x4bef75=_0x39d371['model']['document']['selection'],_0x927208=Array['from'](_0x4bef75['getRanges']())['map'](_0x521933=>_0xef9d24['fromRange'](_0x521933));_0x5b4524['setSelection'](_0x75960c),_0x39d371['commands']['get'](_0x1121a4['commandName'])['refresh'](),_0x1121a4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x39d371['execute'](_0x1121a4['commandName'],..._0x1121a4['commandParams']),_0x5b4524['setSelection'](_0x927208);for(const _0x51d244 of _0x927208)_0x51d244['detach']();});}),_0x2d2f2a['descriptionFactory']['registerElementLabel'](function(_0x834e99){const _0x4219c0=!_0x39d371['model']['schema']['isObject'](_0x834e99),_0x6493ea=_0x834e99['previousSibling'],_0x276e2a=_0x834e99['nextSibling'],_0x4eacbb=_0x834e99['getAttribute']('listItemId'),_0x1d5db3=!_0x6493ea||_0x6493ea['getAttribute']('listItemId')!==_0x4eacbb,_0x5835d2=!_0x276e2a||_0x276e2a['getAttribute']('listItemId')!==_0x4eacbb;return _0x4219c0&&Boolean(_0x4eacbb)&&_0x1d5db3&&_0x5835d2;},_0x517cd7=>o(_0x56d6b6,'ELEMENT_LIST_ITEM',_0x517cd7));}['_registerLegacyDescription'](){const _0x4edba4=this['editor'],_0x2eccfe=_0x4edba4['locale'];function _0x4b381f(_0x55a721){const _0x59b5c8=_0x4edba4['commands']['get']('bulletedList')['value'],_0x51e527=_0x4edba4['commands']['get']('numberedList')['value'];return'numberedList'===_0x55a721?_0x59b5c8:_0x51e527;}_0x4edba4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5ccfe9){if('formatBlock'!=_0x5ccfe9['type'])return;const {data:_0x5b8dbd}=_0x5ccfe9;if(!_0x5b8dbd)return;let _0x5c68fc,_0x381c0e,_0x3c08a6,_0x14b452;switch(_0x5b8dbd['commandName']){case'bulletedList':_0x3c08a6=_0x5b8dbd['commandParams'][0x0]['forceValue'],_0x14b452=_0x4b381f(_0x5b8dbd['commandName']),_0x5c68fc=_0x3c08a6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x14b452&&_0x4edba4['config']['get']('list.multiBlock')||(_0x5c68fc='*Change\x20to:*\x20%0'),_0x381c0e={'type':'format','content':o(_0x2eccfe,_0x5c68fc,o(_0x2eccfe,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3c08a6=_0x5b8dbd['commandParams'][0x0]['forceValue'],_0x14b452=_0x4b381f(_0x5b8dbd['commandName']),_0x5c68fc=_0x3c08a6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x14b452&&_0x4edba4['config']['get']('list.multiBlock')||(_0x5c68fc='*Change\x20to:*\x20%0'),_0x381c0e={'type':'format','content':o(_0x2eccfe,_0x5c68fc,o(_0x2eccfe,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5c68fc='*Indent:*\x20%0',_0x381c0e={'type':'format','content':o(_0x2eccfe,_0x5c68fc,o(_0x2eccfe,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5c68fc=function(_0x5874c2){const _0xe75245=_0x5874c2['getFirstRange']();let _0x42ac4b=_0xe75245['start']['nodeAfter'];for(;_0x42ac4b&&_0xe75245['containsItem'](_0x42ac4b);){if(_0x42ac4b['getAttribute']('listIndent')>0x0)return!0x1;_0x42ac4b=_0x42ac4b['nextSibling'];}return!0x0;}(_0x5ccfe9)?o(_0x2eccfe,'*Format:*\x20remove\x20from\x20%0',o(_0x2eccfe,function(_0x52b0b1){return'ELEMENT_'+_0x52b0b1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5ccfe9))):o(_0x2eccfe,'*Outdent:*\x20%0',o(_0x2eccfe,'ELEMENT_LIST_ITEM')),_0x381c0e={'type':'format','content':_0x5c68fc};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5b8dbd['multipleBlocks']&&(_0x5c68fc='*Merge:*\x20%0',_0x381c0e={'type':'deletion','content':o(_0x2eccfe,_0x5c68fc,o(_0x2eccfe,'ELEMENT_LIST_ITEM'))});}return _0x381c0e;});}}function le(_0x1fa07c){let _0x2c9c52=_0x1fa07c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2c9c52;){const _0x258576=_0x2c9c52['getAttribute']('listItemId');if(!_0x258576)return!0x1;if(_0x258576==_0x1fa07c['data']['newValue'])return'newValue';if(_0x258576==_0x1fa07c['data']['oldValue'])return'oldValue';_0x2c9c52=_0x2c9c52['previousSibling'];}return!0x1;}class ue extends _0x2c20e0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x513727=this['editor']['config']['get']('list.properties'),_0x4ec085=this['editor']['plugins']['get']('TrackChangesEditing');_0x513727['styles']&&(_0x4ec085['enableDefaultAttributesIntegration']('listStyle'),_0x4ec085['registerBlockAttribute']('listStyle')),_0x513727['reversed']&&(_0x4ec085['enableDefaultAttributesIntegration']('listReversed'),_0x4ec085['registerBlockAttribute']('listReversed')),_0x513727['startIndex']&&(_0x4ec085['enableDefaultAttributesIntegration']('listStart'),_0x4ec085['registerBlockAttribute']('listStart'));const _0x2fba82={'type':'format','content':''};_0x4ec085['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x936676=this['editor']['locale'];_0x4ec085['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x936676,'FORMAT_LIST_REVERSED')),_0x4ec085['descriptionFactory']['registerDescriptionCallback'](_0x2840eb=>{const {data:_0x49f311}=_0x2840eb;if(_0x49f311&&'listReversed'==_0x49f311['key'])return null==_0x49f311['newValue']||0x0==_0x49f311['newValue']&&null==_0x49f311['oldValue']?_0x2fba82:void 0x0;}),_0x4ec085['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x936676,'FORMAT_LIST_START')),_0x4ec085['descriptionFactory']['registerDescriptionCallback'](_0x10d3a9=>{const {data:_0x51fe19}=_0x10d3a9;if(_0x51fe19&&'listStart'==_0x51fe19['key'])return null==_0x51fe19['newValue']||0x1==_0x51fe19['newValue']&&null==_0x51fe19['oldValue']?_0x2fba82:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x209603=>{if(_0x209603['batch']['isUndo'])return!0x1;let _0x31a00b=!0x1;const _0xe79ceb=_0x4ec085['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f23de=>{const _0x4602fe=_0x4ec085['_getAttributeKey'](_0x3f23de);return'listStart'==_0x4602fe||'listReversed'==_0x4602fe;});for(const _0x12a7f9 of _0xe79ceb){const _0x56535b=_0x12a7f9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x56535b||'customNumbered'==_0x56535b)continue;_0x4ec085['_findSuggestions'](_0x12a7f9['getFirstRange'](),'attribute')['find'](_0x29088a=>'listType'==_0x4ec085['_getAttributeKey'](_0x29088a['suggestion']))||(_0x209603['removeMarker'](_0x12a7f9['getFirstMarker']()),_0x31a00b=!0x0);}return _0x31a00b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x17bb0a){const _0x38b661=this['editor']['locale'],{data:_0x29ad4}=_0x17bb0a,_0x9fc0e6={'type':'format','content':''};if(!_0x29ad4||'listStyle'!=_0x29ad4['key'])return;if(!_0x29ad4['oldValue'])return'default'==_0x29ad4['newValue']?_0x9fc0e6:{'type':'format','content':''+o(_0x38b661,'*Set\x20format:*\x20%0',o(_0x38b661,this['_getTranslationKeyForListStyle'](_0x29ad4['newValue'])))};if(!_0x29ad4['newValue']){if('default'==_0x29ad4['oldValue'])return _0x9fc0e6;let _0x1ba46d=_0x17bb0a['head'];for(;_0x1ba46d;){if(_0x1ba46d['data']&&'listType'==_0x1ba46d['data']['key']&&_0x1ba46d['data']['newValue'])return _0x9fc0e6;_0x1ba46d=_0x1ba46d['next'];}return{'type':'format','content':''+o(_0x38b661,'*Remove\x20format:*\x20%0',o(_0x38b661,this['_getTranslationKeyForListStyle'](_0x29ad4['oldValue'])))};}if('default'!=_0x29ad4['newValue'])return{'type':'format','content':''+o(_0x38b661,'*Set\x20format:*\x20%0',o(_0x38b661,this['_getTranslationKeyForListStyle'](_0x29ad4['newValue'])))};let _0x3dc212=_0x17bb0a['head'];for(;_0x3dc212;){if(_0x3dc212['data']&&'listType'==_0x3dc212['data']['key']&&_0x3dc212['data']['newValue']&&_0x3dc212['data']['oldValue'])return _0x9fc0e6;_0x3dc212=_0x3dc212['next'];}return{'type':'format','content':o(_0x38b661,'*Set\x20format:*\x20%0',o(_0x38b661,'ELEMENT_'+_0x17bb0a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x201e17=this['editor'],_0x36a6b1=_0x201e17['locale'];_0x201e17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbb05c0=>{if('formatBlock'!=_0xbb05c0['type'])return;const {data:_0x3563a4}=_0xbb05c0;if(!_0x3563a4)return;let _0x110c9f,_0x4dc72d;switch(_0x3563a4['commandName']){case'listStyle':_0x110c9f='*Change\x20to:*\x20%0',_0x4dc72d={'type':'format','content':o(_0x36a6b1,_0x110c9f,o(_0x36a6b1,this['_getTranslationKeyForListStyle'](_0x3563a4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x110c9f=_0x3563a4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4dc72d={'type':'format','content':o(_0x36a6b1,_0x110c9f)};break;case'listStart':_0x110c9f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4dc72d={'type':'format','content':o(_0x36a6b1,_0x110c9f,_0x3563a4['commandParams'][0x0]['startIndex'])};}return _0x4dc72d;});}['_getTranslationKeyForListStyle'](_0x232ae9){return'ELEMENT_'+function(_0x504501){if(pe['includes'](_0x504501))return'bulleted';if(ye['includes'](_0x504501))return'numbered';return null;}(_0x232ae9)['toUpperCase']()+'_LIST_'+_0x232ae9['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x2c20e0{static get['requires'](){return[_0x58549e];}['init'](){const _0x2af8b2=this['editor'],_0x3bfbef=_0x2af8b2['plugins']['get']('TrackChangesEditing'),_0x32b764=_0x2af8b2['commands']['get']('enter');_0x3bfbef['enableCommand']('enter',()=>{_0x2af8b2['model']['change'](_0x2aeafe=>{const _0x50390c=_0x2af8b2['model']['document']['selection'],_0x21022a=_0x50390c['getFirstPosition'](),_0x343098=_0xef9d24['fromRange'](_0x50390c['getFirstRange']());if(_0x32b764['enterBlock'](_0x2aeafe)){const _0x372a1e=_0x2af8b2['model']['createPositionAt'](_0x21022a['parent']['nextSibling'],0x0),_0xbb2f64=_0x2aeafe['createRange'](_0x21022a,_0x372a1e);_0x3bfbef['markInsertion'](_0xbb2f64);}else _0x2aeafe['setSelection'](_0x2aeafe['createRange'](_0x343098['end']));_0x343098['detach'](),_0x32b764['fire']('afterExecute',{'writer':_0x2aeafe});});}),_0x2af8b2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2af8b2,'split'),{'priority':'high'}),_0x2af8b2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5afe43,_0x12075c,_0x52812f)=>{const _0x2de4d7=_0x52812f['mapper']['markerNameToElements'](_0x12075c['markerName']);if(_0x2de4d7){for(const _0x19248a of _0x2de4d7)_0x19248a['hasClass']('ck-suggestion-marker-split')&&(_0x52812f['mapper']['unbindElementFromMarkerName'](_0x19248a,_0x12075c['markerName']),_0x52812f['writer']['remove'](_0x19248a));}},{'priority':'high'}),_0x2af8b2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5c22cb,_0x392196,_0x3ed520)=>{_0x3ed520['options']['showSuggestionHighlights']&&_e(_0x2af8b2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5c22cb,_0x392196,_0x3ed520);},{'priority':'high'});}}class J extends _0x2c20e0{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1eee84=this['editor']['plugins']['get']('TrackChangesEditing');_0x1eee84['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1eee84['enableCommand']('findNext'),_0x1eee84['enableCommand']('findPrevious'),_0x1eee84['enableCommand']('replace'),_0x1eee84['enableCommand']('replaceAll');}['handleFindCommand'](_0xa5537d,_0x73b41a,_0x250dca={}){const _0xf6e24e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xa5537d(_0x1c2d35=>{let _0x4b5ce2=('string'==typeof _0x73b41a?_0xf6e24e['findByTextCallback'](_0x73b41a,_0x250dca):_0x73b41a)(_0x1c2d35);Array['isArray'](_0x4b5ce2)&&(_0x4b5ce2={'results':_0x4b5ce2,'searchText':'string'==typeof _0x73b41a?_0x73b41a:''});const _0x135b2b=_0x4b5ce2['results']['filter'](_0x3da3eb=>!0x1===this['_isInDeletionRange'](_0x3da3eb,_0x1c2d35['item']));return{..._0x4b5ce2,'results':_0x135b2b};},_0x250dca);}['_isInDeletionRange'](_0x45a784,_0x52699e){const _0x1f0328=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52699e,_0x45a784['start']),this['editor']['model']['createPositionAt'](_0x52699e,_0x45a784['end']));for(const _0x20278a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1f0328['getIntersection'](_0x20278a['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 _0x2c20e0{['afterInit'](){const _0x3a9662=this['editor']['locale'],_0x42ef8f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2bf36,commandName:_0x65ffb5}of ro)this['editor']['plugins']['has'](_0x2bf36)&&(_0x42ef8f['enableDefaultAttributesIntegration'](_0x65ffb5),_0x42ef8f['registerInlineAttribute'](_0x65ffb5));_0x42ef8f['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3a9662,'FORMAT_FONT_SIZE')),_0x42ef8f['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3a9662,'FORMAT_FONT_FAMILY')),_0x42ef8f['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3a9662,'FORMAT_FONT_COLOR')),_0x42ef8f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3a9662,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15cd1f=this['editor'],_0x41a287=_0x15cd1f['locale'];_0x15cd1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x517083=>{const _0x1ad746=_0x41a287['t'];if('formatInline'!=_0x517083['type'])return;const {data:_0x8f38da}=_0x517083;if(null!=_0x8f38da){if('fontSize'==_0x8f38da['commandName']){const _0x173c7d=_0x8f38da['commandParams'][0x0]['value'];if(_0x173c7d){const _0x3a13eb=_0x1ad746(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1689ca=>_0x1689ca['model']==_0x173c7d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x41a287,'*Set\x20font\x20size:*\x20%0',_0x3a13eb)};}return{'type':'format','content':o(_0x41a287,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x8f38da['commandName']){const _0x4c14ef=_0x8f38da['commandParams'][0x0]['value'];return _0x4c14ef?{'type':'format','content':o(_0x41a287,'*Set\x20font\x20family:*\x20%0',_0x4c14ef)}:{'type':'format','content':o(_0x41a287,'*Reset\x20font\x20family*')};}if('fontColor'==_0x8f38da['commandName']){const _0x18bd1d=_0x8f38da['commandParams'][0x0]['value'];if(_0x18bd1d){const _0x240581=_0x2b913d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x459688=>_0x459688['model']==_0x18bd1d);let _0x5c5b9b=_0x18bd1d,_0x3c72f6='';return _0x240581&&(_0x5c5b9b=_0x240581['label'],_0x3c72f6=_0x1ad746(_0x5c5b9b)['toLowerCase']()),{'type':'format','content':o(_0x41a287,'*Set\x20font\x20color:*\x20%0',_0x3c72f6)['trim'](),'color':{'value':_0x18bd1d,'title':_0x3c72f6||_0x5c5b9b}};}return{'type':'format','content':o(_0x41a287,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x8f38da['commandName']){const _0x1066a1=_0x8f38da['commandParams'][0x0]['value'];if(_0x1066a1){const _0x35deec=_0x2b913d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x457a70=>_0x457a70['model']==_0x1066a1);let _0x210406=_0x1066a1,_0x3f26b0='';return _0x35deec&&(_0x210406=_0x35deec['label'],_0x3f26b0=_0x1ad746(_0x210406)['toLowerCase']()),{'type':'format','content':o(_0x41a287,'*Set\x20font\x20background\x20color:*\x20%0',_0x3f26b0)['trim'](),'color':{'value':_0x1066a1,'title':_0x3f26b0||_0x210406}};}return{'type':'format','content':o(_0x41a287,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x2c20e0{['afterInit'](){const _0x23b629=this['editor'],_0x429eb8=_0x23b629['plugins']['get']('TrackChangesEditing'),_0x2190a2=_0x23b629['commands']['get']('copyFormat'),_0x2618d7=_0x23b629['commands']['get']('pasteFormat');_0x2190a2&&_0x2618d7&&(_0x429eb8['enableDefaultAttributesIntegration']('pasteFormat'),_0x429eb8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x553369=this['editor'],_0x436472=_0x553369['locale'];_0x553369['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x378a72=>{if('formatBlock'!=_0x378a72['type']&&'formatInline'!=_0x378a72['type'])return;const {data:_0x437d5c}=_0x378a72;if(_0x437d5c&&'pasteFormat'===_0x437d5c['commandName']){const _0x4e5efc=[],_0x3ba83c=_0x437d5c['commandParams'][0x0];for(const [_0x5e636c,_0x514692]of Object['entries'](_0x3ba83c))_0x4e5efc['push'](so(_0x553369,_0x5e636c,_0x514692));return _0x4e5efc['length']?{'type':'format','content':o(_0x436472,'*Set\x20format\x20to:*\x20%0',_0x4e5efc['join'](',\x20'))}:{'type':'format','content':o(_0x436472,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2f4891,_0x2861e8,_0x435e36){const _0x156fd9=_0x2f4891['locale']['t'],_0x21511f=_0x2861e8['split'](/(?=[A-Z])/)['join']('\x20'),_0x121314=_0x156fd9(_0x21511f['charAt'](0x0)['toUpperCase']()+_0x21511f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x435e36)return _0x121314;if('fontColor'===_0x2861e8||'fontBackgroundColor'===_0x2861e8){const _0x43bfb3=_0x2b913d(_0x2f4891['config']['get']('fontColor.colors'))['find'](_0x14ff1c=>_0x14ff1c['model']==_0x435e36);return _0x121314+'\x20('+(_0x43bfb3?_0x156fd9(_0x43bfb3['label'])['toLowerCase']():_0x435e36)+')';}if('fontSize'===_0x2861e8&&isNaN(parseFloat(_0x435e36))){const _0x28a7ac=_0x2f4891['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2f4891['config']['get']('fontSize.options'))['find'](_0x5eb10d=>_0x5eb10d['model']==_0x435e36);return _0x121314+'\x20('+(_0x28a7ac?_0x156fd9(_0x28a7ac['title'])['toLowerCase']():_0x435e36)+')';}return _0x121314+'\x20('+_0x435e36+')';}class Y extends _0x2c20e0{['_headingOptions'];['afterInit'](){const _0x141f7f=this['editor'];if(!_0x141f7f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x141f7f['config']['get']('heading.options');const _0x6a42e2=_0x141f7f['locale'],_0x29b0d5=_0x141f7f['plugins']['get']('TrackChangesEditing');_0x29b0d5['enableDefaultAttributesIntegration']('heading');for(const _0x1c5bbe of this['_headingOptions'])'paragraph'!=_0x1c5bbe['model']&&_0x29b0d5['descriptionFactory']['registerElementLabel'](_0x1c5bbe['model'],_0x954377=>{const _0x2be66c=this['_getHeadingLevel'](_0x1c5bbe['model']);return null!==_0x2be66c?_0x24ef88(_0x954377,_0x2be66c):_0x3d54e1(_0x954377,_0x1c5bbe['title']);});function _0x24ef88(_0x1ae088,_0x1e0e2a){return o(_0x6a42e2,'ELEMENT_HEADING',[_0x1ae088,_0x1e0e2a]);}function _0x3d54e1(_0x11baf,_0x584d03){return o(_0x6a42e2,'ELEMENT_HEADING_CUSTOM',[_0x11baf,_0x584d03]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46d4c6=this['editor'],_0x1fbb44=_0x46d4c6['locale'];function _0x26ce84(_0x6c6aaf,_0x2272aa){return o(_0x1fbb44,'ELEMENT_HEADING_CUSTOM',[_0x6c6aaf,_0x2272aa]);}_0x46d4c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x380637=>{if('formatBlock'!=_0x380637['type'])return;const {data:_0x10e9d6}=_0x380637;if(_0x10e9d6&&'heading'==_0x10e9d6['commandName']){const _0x5f518f=_0x10e9d6['commandParams'][0x0]['value'],_0x39977d=this['_getHeadingLevel'](_0x5f518f);if(null!==_0x39977d)return{'type':'format','content':o(_0x1fbb44,'*Change\x20to:*\x20%0',(_0x447406=0x1,_0x50bb28=_0x39977d,o(_0x1fbb44,'ELEMENT_HEADING',[_0x447406,_0x50bb28])))};const _0x5ef609=this['_headingOptions']['find'](_0x1aa440=>_0x1aa440['model']===_0x5f518f)['title'];return{'type':'format','content':o(_0x1fbb44,'*Change\x20to:*\x20%0',_0x26ce84(0x1,_0x5ef609))};}var _0x447406,_0x50bb28;});}['_getHeadingLevel'](_0x491c96){const _0x5dd25e=_0x491c96['match'](/^heading(\d+)/);if(_0x5dd25e)return _0x5dd25e[0x1];const _0x49c92b=this['_headingOptions']?.['find'](_0x282d8c=>_0x282d8c['model']==_0x491c96);if(_0x49c92b&&_0x49c92b['view']){const _0x554418=_0x49c92b['view'],_0x5e6b9f=(_0x554418['name']??_0x554418)['match'](/^h(\d+)/);if(_0x5e6b9f)return _0x5e6b9f[0x1];}return null;}}class Z extends _0x2c20e0{['afterInit'](){const _0x3f1acc=this['editor'];if(!_0x3f1acc['plugins']['has']('HighlightEditing'))return;const _0x1d822c=_0x3f1acc['plugins']['get']('TrackChangesEditing'),_0x23ca3d=_0x3f1acc['locale'];_0x1d822c['enableDefaultAttributesIntegration']('highlight'),_0x1d822c['registerInlineAttribute']('highlight'),_0x1d822c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x23ca3d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x488182=this['editor'],_0x50a233=_0x488182['locale'];_0x488182['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa9a9c9=>{if('formatInline'!=_0xa9a9c9['type'])return;const {data:_0x5b10bf}=_0xa9a9c9;if(_0x5b10bf&&'highlight'==_0x5b10bf['commandName']){const _0x4dd12b=_0x50a233['t'],_0x158992=_0x5b10bf['commandParams'][0x0]['value'];if(_0x158992){const _0x3fcbaa=_0x488182['config']['get']('highlight.options')['find'](_0x307ad7=>_0x307ad7['model']==_0x158992),_0x4f1a20=_0x4dd12b(_0x3fcbaa['title'])['toLowerCase']();return{'type':'format','content':o(_0x50a233,'*Set\x20highlight:*\x20%0',_0x4f1a20),'color':{'value':_0x3fcbaa['color'],'title':_0x3fcbaa['title']}};}return{'type':'format','content':o(_0x50a233,'*Remove\x20highlight*',o(_0x50a233,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x2c20e0{['afterInit'](){const _0x5e0070=this['editor'];if(!_0x5e0070['plugins']['has']('HorizontalLineEditing'))return;_0x5e0070['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3e5a34=_0x5e0070['plugins']['get']('TrackChangesEditing'),_0x32a6e6=_0x5e0070['locale'];_0x3e5a34['descriptionFactory']['registerElementLabel']('horizontalLine',_0x45f13e=>o(_0x32a6e6,'ELEMENT_HORIZONTAL_LINE',_0x45f13e)),_0x5e0070['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x59ef1d,{writer:_0x2dbcbc,options:_0x3ea2de})=>{if(!_0x3ea2de['showSuggestionHighlights'])return null;const _0x189b6f=_0x2dbcbc['createContainerElement']('div'),_0x3f0ee2=_0x2dbcbc['createEmptyElement']('hr');return _0x2dbcbc['addClass']('ck-horizontal-line',_0x189b6f),_0x2dbcbc['insert'](_0x2dbcbc['createPositionAt'](_0x189b6f,0x0),_0x3f0ee2),_0x189b6f;},'converterPriority':'high'});}}class et extends _0x2c20e0{['afterInit'](){const _0x4e4aed=this['editor'];if(!_0x4e4aed['plugins']['has']('HtmlEmbed'))return;const _0x392fbf=_0x4e4aed['plugins']['get']('TrackChangesEditing'),_0x249e7f=_0x4e4aed['locale'];_0x392fbf['descriptionFactory']['registerElementLabel']('rawHtml',_0x2bacda=>o(_0x249e7f,'ELEMENT_HTML_EMBED',_0x2bacda)),_0x392fbf['enableDefaultAttributesIntegration']('htmlEmbed'),_0x392fbf['registerBlockAttribute']('value'),_0x392fbf['descriptionFactory']['registerDescriptionCallback'](_0x58d1dd=>{if('attribute'!=_0x58d1dd['type'])return;const {data:_0xbca8a6}=_0x58d1dd;if(_0xbca8a6&&'value'==_0xbca8a6['key']&&_0x58d1dd['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x284015=o(_0x249e7f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x249e7f,'*Change\x20%0\x20content*',_0x284015)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f66a1=this['editor'],_0x2fa080=_0x2f66a1['locale'];_0x2f66a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x130166=>{if('formatBlock'!=_0x130166['type'])return;const {data:_0x31ee56}=_0x130166;if(_0x31ee56&&'htmlEmbed'==_0x31ee56['commandName']){const _0x3ef92c=o(_0x2fa080,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2fa080,'*Change\x20%0\x20content*',_0x3ef92c)};}});}}class it extends _0x2c20e0{['afterInit'](){const _0x278488=this['editor'];if(!_0x278488['plugins']['has']('ImageEditing'))return;const _0x1ef810=_0x278488['plugins']['get']('TrackChangesEditing'),_0x213ab5=_0x278488['plugins']['get']('ImageUtils'),_0x23271a=_0x278488['locale'];_0x1ef810['enableCommand']('insertImage'),_0x1ef810['descriptionFactory']['registerElementLabel']('imageBlock',_0x4465b0=>o(_0x23271a,'ELEMENT_IMAGE',_0x4465b0)),_0x1ef810['descriptionFactory']['registerElementLabel']('imageInline',_0x359ffa=>o(_0x23271a,'ELEMENT_INLINE_IMAGE',_0x359ffa)),_0x1ef810['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x23271a,'ELEMENT_CAPTION')),_0x278488['plugins']['has']('ImageUploadEditing')&&_0x1ef810['enableCommand']('uploadImage'),_0x278488['plugins']['has']('ImageBlockEditing')&&_0x278488['plugins']['has']('ImageInlineEditing')&&(_0x1ef810['enableCommand']('imageTypeInline',(_0x592252,_0xab75d0)=>{const _0x16c6e0=_0x213ab5['getClosestSelectedImageElement'](_0x278488['model']['document']['selection']);_0x278488['model']['change'](()=>{_0x1ef810['markBlockFormat'](_0x16c6e0,{'commandName':'imageTypeInline','commandParams':[_0xab75d0]},[],'convertBlockImageToInline');});}),_0x1ef810['enableCommand']('imageTypeBlock',(_0xe0e39c,_0x2682cf)=>{_0x278488['model']['change'](_0x5684cc=>{let _0x5a9a97=_0x213ab5['getClosestSelectedImageElement'](_0x278488['model']['document']['selection']),_0x339fa5=_0x5684cc['createRangeOn'](_0x5a9a97);const _0x2df48c=_0x439b21['fromPosition'](_0x339fa5['start'],'toPrevious'),_0xa7735f=_0x439b21['fromPosition'](_0x339fa5['end'],'toNext');_0x1ef810['forceDefaultExecution'](()=>_0xe0e39c(_0x2682cf)),_0x5a9a97=_0x213ab5['getClosestSelectedImageElement'](_0x278488['model']['document']['selection']),_0x339fa5=_0x5684cc['createRangeOn'](_0x5a9a97);const _0x47d603=_0x5684cc['createRange'](_0x2df48c,_0xa7735f);_0x2df48c['detach'](),_0xa7735f['detach'](),_0x1ef810['markBlockFormat'](_0x5a9a97,{'commandName':'imageTypeInline','commandParams':[_0x2682cf]},[],'convertInlineImageToBlock'),_0x47d603['start']['isBefore'](_0x339fa5['start'])&&_0x1ef810['markInsertion'](_0x5684cc['createRange'](_0x47d603['start'],_0x339fa5['start']),'convertInlineImageToBlock'),_0x339fa5['end']['isBefore'](_0x47d603['end'])&&_0x1ef810['markInsertion'](_0x5684cc['createRange'](_0x339fa5['end'],_0x47d603['end']),'convertInlineImageToBlock');});}),_0x1ef810['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1ef810['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1ef810['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1ef810['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1ef810['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1ef810['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x501cd3])=>{const _0x464c5e=_0x1ef810['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4b652f=_0x501cd3['start'],_0xd7b130=_0x501cd3['end'];const _0xce329c=_0x278488['model']['schema']['getNearestSelectionRange'](_0x4b652f,'backward'),_0x232f3b=_0x278488['model']['schema']['getNearestSelectionRange'](_0xd7b130,'forward');_0xce329c['isCollapsed']&&(_0x4b652f=_0xce329c['start']),_0x232f3b['isCollapsed']&&(_0xd7b130=_0x232f3b['end']),_0x464c5e([_0x278488['model']['createRange'](_0x4b652f,_0xd7b130)]);}),_0x1ef810['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x54f985),_0x1ef810['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x54f985)),_0x278488['plugins']['has']('ImageCaptionEditing')&&(_0x1ef810['enableCommand']('toggleImageCaption',(_0x4b96df,_0x240fa9)=>{const _0x57c9cb=_0x278488['plugins']['get']('ImageCaptionUtils');let _0x425ccb=_0x213ab5['getClosestSelectedImageElement'](_0x278488['model']['document']['selection']),_0x53f902=_0x57c9cb['getCaptionFromImageModelElement'](_0x425ccb);_0x278488['model']['change'](()=>{if(_0x53f902)return void _0x1ef810['markDeletion'](_0x278488['model']['createRangeOn'](_0x53f902));const _0x552da7=_0x213ab5['isBlockImage'](_0x425ccb);_0x4b96df(_0x240fa9),_0x425ccb=_0x213ab5['getClosestSelectedImageElement'](_0x278488['model']['document']['selection']),_0x53f902=_0x57c9cb['getCaptionFromImageModelElement'](_0x425ccb),_0x1ef810['markInsertion'](_0x278488['model']['createRangeOn'](_0x53f902),_0x552da7?null:'imageCaption');});}),_0x1ef810['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x54f985));const _0x164172=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1f81a4(_0x444d08,_0x4ca094){const _0x1a5160=_0x164172['findIndex'](({type:_0x4e456e,subType:_0x292831})=>_0x444d08['type']==_0x4e456e&&_0x444d08['subType']==_0x292831),_0x4be327=_0x164172['findIndex'](({type:_0x274a31,subType:_0x32c15d})=>_0x4ca094['type']==_0x274a31&&_0x4ca094['subType']==_0x32c15d);if(_0x1a5160<0x0||_0x4be327<0x0)return!0x1;const _0x2a5565=_0x444d08['getFirstRange'](),_0x1d319c=_0x4ca094['getFirstRange']();if((0x0==_0x1a5160||0x1==_0x1a5160)&&0x2==_0x4be327&&_0x2a5565['isIntersecting'](_0x1d319c))return!0x0;if(0x2==_0x1a5160&&0x3==_0x4be327){const _0x3f6e62=_0x1ef810['_findSuggestions'](_0x2a5565,'insertion')['filter'](({suggestion:_0x2a1f28,meta:_0x404394})=>_0x404394['isOwn']&&'convertInlineImageToBlock'==_0x2a1f28['subType']);if(_0x3f6e62['length']>0x1&&_0x1d319c['end']['isEqual'](_0x2a5565['start']))return!0x0;if(0x1==_0x3f6e62['length']&&(_0x2a5565['start']['isEqual'](_0x1d319c['end'])||_0x2a5565['end']['isEqual'](_0x1d319c['start'])))return!0x0;}if(0x3==_0x1a5160&&0x3==_0x4be327&&_0x2a5565['start']['isBefore'](_0x1d319c['start'])){const _0x548efe=_0x2a5565['end']['nodeAfter'],_0x24a6ad=_0x1d319c['start']['nodeBefore'];return _0x213ab5['isBlockImage'](_0x548efe)&&_0x548efe===_0x24a6ad;}return!0x1;}function _0x54f985(_0x265a38,_0x353b8d){return _0x1f81a4(_0x265a38,_0x353b8d)?[_0x265a38,_0x353b8d]:_0x1f81a4(_0x353b8d,_0x265a38)?[_0x353b8d,_0x265a38]:null;}_0x278488['plugins']['has']('ImageResize')&&(_0x1ef810['enableDefaultAttributesIntegration']('resizeImage'),_0x1ef810['registerBlockAttribute']('resizedWidth'),_0x1ef810['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x23271a,'FORMAT_IMAGE_SIZE'))),_0x278488['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1ef810['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1ef810['registerBlockAttribute']('alt')),_0x1ef810['descriptionFactory']['registerDescriptionCallback'](_0x59eff9=>{if(!!_0x164172['find'](({type:_0x2acf3e,subType:_0x5c088e})=>_0x59eff9['type']==_0x2acf3e&&_0x59eff9['subType']==_0x5c088e))return _0x59eff9['previous']?{}:void 0x0;}),_0x1ef810['descriptionFactory']['registerDescriptionCallback'](_0x401dd3=>{if('insertion'==_0x401dd3['type']||'deletion'==_0x401dd3['type']){const _0x12c46d=_0x401dd3['getContainedElement']();if(_0x12c46d&&_0x12c46d['is']('element','caption'))return{'type':'insertion'==_0x401dd3['type']?'addObject':'removeObject','element':_0x12c46d,'quantity':0x1};}}),_0x1ef810['descriptionFactory']['registerDescriptionCallback'](_0x1aea94=>'formatBlock'==_0x1aea94['type']&&'convertInlineImageToBlock'==_0x1aea94['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1aea94['type']&&'convertBlockImageToInline'==_0x1aea94['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1ef810['descriptionFactory']['registerDescriptionCallback'](_0x43a384=>{if('attribute'!=_0x43a384['type'])return;const {data:_0x3aa752}=_0x43a384;if(!_0x3aa752||'alt'!=_0x3aa752['key'])return;const _0x20006d=_0x3aa752['newValue'];return _0x20006d?{'type':'format','content':o(_0x23271a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x20006d+'\x22')}:{'type':'format','content':o(_0x23271a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c114d=this['editor'],_0x57bd66=_0x2c114d['locale'];_0x2c114d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46529e=>{if('formatBlock'!=_0x46529e['type']&&'formatInline'!=_0x46529e['type'])return;const {data:_0x205830}=_0x46529e;if(_0x205830){if('imageTextAlternative'==_0x205830['commandName']){const _0xb01560=_0x205830['commandParams'][0x0]['newValue'];return _0xb01560?{'type':'format','content':o(_0x57bd66,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xb01560+'\x22')}:{'type':'format','content':o(_0x57bd66,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x205830['commandName']){const _0x9c2acb=_0x205830['commandParams'][0x0]['width'];return _0x9c2acb?{'type':'format','content':o(_0x57bd66,'*Set\x20image\x20width:*\x20%0',_0x9c2acb)}:{'type':'format','content':o(_0x57bd66,'*Reset\x20image\x20width*')};}}});}}class st extends _0x2c20e0{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2927ba=this['editor']['locale'],_0x41d55c=this['editor']['plugins']['get']('TrackChangesEditing');_0x41d55c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x41d55c['registerBlockAttribute']('src'),_0x41d55c['descriptionFactory']['registerDescriptionCallback'](_0x49441e=>{if('attribute'!=_0x49441e['type'])return;const {data:_0x8bdbfe}=_0x49441e;return _0x8bdbfe&&'src'==_0x8bdbfe['key']?_0x8bdbfe['newValue']&&_0x8bdbfe['oldValue']?{'type':'format','content':o(_0x2927ba,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1f475f=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f475f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1f475f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f475f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1f475f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4790d6=this['editor'],_0x30d9d7=_0x4790d6['locale'];_0x4790d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a201e=>{if('formatBlock'!=_0x4a201e['type']&&'formatInline'!=_0x4a201e['type'])return;const {data:_0x5311c8}=_0x4a201e;if(!_0x5311c8||'replaceImageSource'!=_0x5311c8['commandName'])return;return{'type':'format','content':o(_0x30d9d7,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x2c20e0{['afterInit'](){const _0x58ac9f=this['editor'];if(!_0x58ac9f['plugins']['has']('ImageStyleEditing'))return;const _0x516801=_0x58ac9f['plugins']['get']('TrackChangesEditing'),_0x3cb0a8=_0x58ac9f['plugins']['get']('ImageUtils'),_0x17180d={};_0x516801['enableCommand']('imageStyle',(_0xe1f5fc,_0x3dd4e2)=>{const _0x394856=_0x58ac9f['plugins']['get']('Users')['me'],_0x4dcd0e=_0x58ac9f['commands']['get']('imageStyle');let _0x30d7bc=_0x3cb0a8['getClosestSelectedImageElement'](_0x58ac9f['model']['document']['selection']),_0x1af106=_0x58ac9f['model']['createRangeOn'](_0x30d7bc),_0x53d11b=_0x4dcd0e['value'];if(_0x53d11b==_0x3dd4e2['value'])return;const _0x5d3568={'commandName':'imageStyle','commandParams':[_0x3dd4e2],'formatGroupId':_0xe5f9d9()};_0x58ac9f['model']['change'](()=>{if(_0x516801['getSuggestions']()['filter'](_0x30ff5f=>_0x30ff5f['isInContent']&&_0x394856==_0x30ff5f['author']&&('formatBlock'==_0x30ff5f['type']||'formatInline'==_0x30ff5f['type'])&&('imageStylePreApply'==_0x30ff5f['subType']||'imageStylePostApply'==_0x30ff5f['subType'])&&_0x30ff5f['getFirstRange']()['isEqual'](_0x1af106))['forEach'](_0x1239c2=>_0x516801['discardSuggestion'](_0x1239c2['head'])),_0x30d7bc=_0x3cb0a8['getClosestSelectedImageElement'](_0x58ac9f['model']['document']['selection']),_0x1af106=_0x58ac9f['model']['createRangeOn'](_0x30d7bc),_0x4dcd0e['refresh'](),_0x58ac9f['commands']['get']('imageTypeInline')['refresh'](),_0x58ac9f['commands']['get']('imageTypeBlock')['refresh'](),_0x53d11b=_0x4dcd0e['value'],_0x53d11b!=_0x3dd4e2['value'])return _0x3cb0a8['isInlineImage'](_0x30d7bc)&&_0x4dcd0e['shouldConvertImageType'](_0x3dd4e2['value'],_0x30d7bc)?(_0xe1f5fc({..._0x3dd4e2,'setImageSizes':!0x1}),_0x30d7bc=_0x3cb0a8['getClosestSelectedImageElement'](_0x58ac9f['model']['document']['selection']),void _0x516801['markBlockFormat'](_0x30d7bc,{..._0x5d3568,'commandReversedParams':[{'value':_0x53d11b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3cb0a8['isBlockImage'](_0x30d7bc)?_0x516801['markBlockFormat'](_0x30d7bc,_0x5d3568,[],'imageStylePostApply'):_0x516801['markInlineFormat'](_0x1af106,_0x5d3568,'imageStylePostApply'));});});for(const _0x4d5678 of _0x58ac9f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x17180d[_0x4d5678['name']]=_0x4d5678['title']['toLowerCase']();_0x516801['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x516801['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x516801['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x516801['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x56900b])=>{_0x3cb0a8['setImageNaturalSizeAttributes'](_0x56900b['getContainedElement']());}),_0x516801['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4968b0,_0x16c45c)=>{_0x516801['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4968b0,{'commandName':_0x16c45c['commandName'],'commandParams':_0x16c45c['commandReversedParams']});}),_0x516801['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xf2c67,_0x275f47){if(_0x5c9a65(_0xf2c67,_0x275f47))return[_0xf2c67,_0x275f47];if(_0x5c9a65(_0x275f47,_0xf2c67))return[_0x275f47,_0xf2c67];return null;});const _0x39fef1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5c9a65(_0x5a16c3,_0x1cdc1a){const _0x58b3bf=_0x39fef1['findIndex'](({type:_0x34ca4b,subType:_0x251a31})=>_0x5a16c3['type']==_0x34ca4b&&_0x5a16c3['subType']==_0x251a31),_0x1f120e=_0x39fef1['findIndex'](({type:_0x3e6a7b,subType:_0x6699d7})=>_0x1cdc1a['type']==_0x3e6a7b&&_0x1cdc1a['subType']==_0x6699d7);if(_0x58b3bf<0x0||_0x1f120e<0x0)return!0x1;const _0x55a0ed=_0x5a16c3['getFirstRange'](),_0x26a5c5=_0x1cdc1a['getFirstRange']();if((0x0==_0x58b3bf||0x1==_0x58b3bf)&&0x2==_0x1f120e&&_0x55a0ed['isIntersecting'](_0x26a5c5))return!0x0;if(0x2==_0x58b3bf&&0x3==_0x1f120e){const _0x10647f=_0x516801['_findSuggestions'](_0x55a0ed,'insertion')['filter'](({suggestion:_0x4dab5a,meta:_0x282e91})=>_0x282e91['isOwn']&&'convertInlineImageToBlock'==_0x4dab5a['subType']);if(_0x10647f['length']>0x1&&_0x26a5c5['end']['isEqual'](_0x55a0ed['start']))return!0x0;if(0x1==_0x10647f['length']&&(_0x55a0ed['start']['isEqual'](_0x26a5c5['end'])||_0x55a0ed['end']['isEqual'](_0x26a5c5['start'])))return!0x0;}if(0x3==_0x58b3bf&&0x3==_0x1f120e&&_0x55a0ed['start']['isBefore'](_0x26a5c5['start'])){const _0x5c556a=_0x55a0ed['end']['nodeAfter'],_0xf41280=_0x26a5c5['start']['nodeBefore'];return _0x3cb0a8['isBlockImage'](_0x5c556a)&&_0x5c556a===_0xf41280;}return!0x1;}_0x58ac9f['model']['document']['registerPostFixer'](()=>{let _0xd9b984=!0x1;const _0x22742c=Array['from'](_0x58ac9f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21b4f5,data:_0xccf3c3}of _0x22742c){const {group:_0x338d9d,type:_0x15c199,subType:_0x516866,id:_0x5b192c}=_0x516801['_splitMarkerName'](_0x21b4f5);if('suggestion'==_0x338d9d&&_0x516801['hasSuggestion'](_0x5b192c)){if('formatBlock'==_0x15c199&&('imageStylePreApply'==_0x516866||'imageStylePostApply'==_0x516866)){const _0x3d04f1=_0x516801['getSuggestion'](_0x5b192c);if(_0xccf3c3['newRange']){const _0x9189bc=_0x3d04f1['getFirstRange']()['getContainedElement']();if(_0x3cb0a8['isBlockImage'](_0x9189bc))continue;_0x516801['discardSuggestion'](_0x3d04f1),_0xd9b984=!0x0;}}if('insertion'==_0x15c199&&'imageCaption'==_0x516866&&!_0xccf3c3['newRange']){const _0x37b4bd=_0x516801['getSuggestion'](_0x5b192c);_0x37b4bd['next']&&_0x37b4bd['next']['isInContent']&&(_0x516801['discardSuggestion'](_0x37b4bd['next']),_0xd9b984=!0x0);}}}return _0xd9b984;}),this['_registerLegacyDescription'](_0x17180d);}['_registerLegacyDescription'](_0x383a9b){const _0x3a3146=this['editor'],_0x18c3d1=_0x3a3146['locale'];_0x3a3146['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x253779=>{if('formatBlock'!=_0x253779['type']&&'formatInline'!=_0x253779['type'])return;const {data:_0x4a2995}=_0x253779;if(!_0x4a2995||'imageStyle'!=_0x4a2995['commandName'])return;const _0x916f2e=_0x4a2995['commandParams'][0x0]['value'];return _0x1ff58c('side'===_0x916f2e?o(_0x18c3d1,'FORMAT_SIDE_IMAGE'):_0x383a9b[_0x916f2e]||_0x916f2e);function _0x1ff58c(_0x2a7460){return{'type':'format','content':o(_0x18c3d1,'*Format:*\x20%0',_0x2a7460)};}});}}class ot extends _0x2c20e0{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2dabd6){super(_0x2dabd6),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x215838=this['editor'],_0x29ff4b=_0x215838['commands']['get']('importWord'),_0xe5e802=_0x215838['commands']['get']('trackChanges');_0x29ff4b&&(_0x29ff4b['on']('execute',(_0x3d2d98,[,_0x336dbe])=>{this['_trackChangesValueDuringImport']=_0xe5e802['value'],_0x336dbe['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x29ff4b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x29ff4b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xe5e802['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x215838['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x25b99c,_0x8a829b){const {suggestions:_0x1f4013}=_0x8a829b,_0xc6d48b=this['editor']['commands']['get']('trackChanges'),_0x5186d8=_0xc6d48b['value'];this['_trackChangesValueDuringImport']!==_0x5186d8&&(_0xc6d48b['execute'](),this['_trackChangesExecuted']=!0x0),_0x1f4013&&_0x1f4013['forEach'](({id:_0x2c230e,type:_0x34b581,author:_0x5c0bc4,created_at:_0x103bd5})=>{const _0x5c66a6={'id':_0x2c230e,'type':_0x34b581,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5c0bc4,'createdAt':_0x103bd5?new Date(_0x103bd5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5c66a6);});}}class rt extends _0x2c20e0{['afterInit'](){const _0x38e5d0=this['editor'],_0xe511b=_0x38e5d0['plugins']['get']('TrackChangesEditing');if(_0x38e5d0['plugins']['has']('IndentEditing')&&(_0xe511b['enableCommand']('indent'),_0xe511b['enableCommand']('outdent')),_0x38e5d0['plugins']['has']('IndentBlock')){for(const _0xb1864 of['indentBlock','outdentBlock'])_0xe511b['enableDefaultAttributesIntegration'](_0xb1864);}const _0x1772a3=_0x38e5d0['locale'];_0xe511b['registerBlockAttribute']('blockIndent'),_0xe511b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1772a3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c6794=this['editor'],_0x19e04d=_0x5c6794['locale'],_0x4d503d=_0x5c6794['plugins']['get']('TrackChangesEditing');_0x4d503d['descriptionFactory']['registerDescriptionCallback'](_0x98671b=>{if('formatBlock'!=_0x98671b['type'])return;const {data:_0x365c99}=_0x98671b;if(!_0x365c99)return;if('indentBlock'!=_0x365c99['commandName']&&'outdentBlock'!=_0x365c99['commandName'])return;const _0x49fd63=_0x98671b['getItems']()[0x0],_0xa39165=_0x4d503d['descriptionFactory']['getItemLabel'](_0x49fd63);return'indentBlock'==_0x365c99['commandName']?{'type':'format','content':o(_0x19e04d,'*Indent:*\x20%0',_0xa39165)}:'outdentBlock'==_0x365c99['commandName']?{'type':'format','content':o(_0x19e04d,'*Outdent:*\x20%0',_0xa39165)}:void 0x0;});}}class at extends _0x2c20e0{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x2c20e0{['afterInit'](){const _0x4abef8=this['editor'];if(!_0x4abef8['plugins']['has']('LinkEditing'))return;const _0x22bca0=_0x4abef8['plugins']['get']('TrackChangesEditing'),_0x475606=_0x4abef8['commands']['get']('link');_0x22bca0['enableDefaultAttributesIntegration']('link'),_0x22bca0['enableDefaultAttributesIntegration']('unlink'),_0x22bca0['registerInlineAttribute']('linkHref');for(const _0x3c614f of _0x475606['manualDecorators'])_0x22bca0['registerInlineAttribute'](_0x3c614f['id']),_0x22bca0['descriptionFactory']['registerAttributeLabel'](_0x3c614f['id'],'link\x20('+_0x3c614f['label']['toLowerCase']()+')');_0x22bca0['descriptionFactory']['registerDescriptionCallback'](_0x1cd7f5=>{if('attribute'!=_0x1cd7f5['type'])return;const {data:_0x1896e3}=_0x1cd7f5;if(!_0x1896e3||'linkHref'!=_0x1896e3['key'])return;const _0x3c5054=_0x1896e3['newValue'],_0x248c0e=_0x4abef8['locale'];return{'type':'format','content':null==_0x3c5054?o(_0x248c0e,'*Remove\x20link*'):o(_0x248c0e,'*Set\x20link:*\x20%0','\x22'+_0x3c5054+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47c9bb=this['editor'],_0x4f2040=_0x47c9bb['locale'];_0x47c9bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x508fdb=>{if('formatInline'!=_0x508fdb['type'])return;const {data:_0x232d88}=_0x508fdb;if(_0x232d88){if('link'==_0x232d88['commandName']){const _0x38aa1b=_0x232d88['commandParams'][0x0];return{'type':'format','content':o(_0x4f2040,'*Set\x20link:*\x20%0','\x22'+_0x38aa1b+'\x22')};}return'unlink'==_0x232d88['commandName']?{'type':'format','content':o(_0x4f2040,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x2c20e0{['afterInit'](){const _0x3dc9fb=this['editor'],_0x13c2f2=_0x3dc9fb['locale'];if(!_0x3dc9fb['plugins']['has']('LegacyListEditing'))return;const _0x12c1a3=_0x3dc9fb['plugins']['get']('TrackChangesEditing'),_0x422ae7=_0x3dc9fb['plugins']['has']('LegacyTodoListEditing');function _0x531e63(_0x33cdf8){return()=>{const _0xf502bf=_0x3dc9fb['model']['document']['selection'],_0x512f69=_0x3dc9fb['commands']['get'](_0x33cdf8);if(_0x512f69['value'])return void _0x3dc9fb['execute']('paragraph',{});const _0x4e1991=_0x33cdf8['slice'](0x0,-0x4),_0x747aa7=function(_0x4dc1bf,_0x2fb84a,_0x2668a8){let _0x426079=Array['from'](_0x4dc1bf)['filter'](_0x5496ed=>function(_0x529a28,_0x1d22dc){return _0x1d22dc['checkChild'](_0x529a28['parent'],'listItem')&&!_0x1d22dc['isObject'](_0x529a28);}(_0x5496ed,_0x2668a8));_0x426079=_0x426079['filter'](_0x93b76f=>!_0x93b76f['is']('element','listItem')||_0x93b76f['getAttribute']('listType')!=_0x2fb84a);const _0x3b620f=new Set();for(const _0x57c834 of _0x426079)_0x57c834['is']('element','listItem')?_0x3b620f['add'](me(_0x57c834)):_0x3b620f['add'](_0x57c834);return Array['from'](_0x3b620f);}(_0xf502bf['getSelectedBlocks'](),_0x4e1991,_0x3dc9fb['model']['schema']);_0x3dc9fb['model']['change'](()=>{for(const _0x5bdd8a of _0x747aa7)_0x12c1a3['markBlockFormat'](_0x5bdd8a,{'commandName':_0x33cdf8,'commandParams':[{'forceValue':!_0x512f69['value']}],'formatGroupId':'blockName'},fe(_0x5bdd8a));});};}function _0x5a9eb9(_0x1fa88c){return()=>{const _0xc9abe3=function(_0xa61dc1){let _0x3ca4c7=Array['from'](_0xa61dc1);const _0x18c2ae=_0x3ca4c7['findIndex'](_0xa7fe9f=>'listItem'!=_0xa7fe9f['name']);return _0x18c2ae>-0x1&&(_0x3ca4c7=_0x3ca4c7['slice'](0x0,_0x18c2ae)),_0x3ca4c7;}(_0x3dc9fb['model']['document']['selection']['getSelectedBlocks']()),_0x5cbb5d=_0x3dc9fb['model']['createRange'](_0x3dc9fb['model']['createPositionAt'](_0xc9abe3[0x0],'before'),_0x3dc9fb['model']['createPositionAt'](_0xc9abe3[_0xc9abe3['length']-0x1],'end'));_0x3dc9fb['model']['change'](()=>{_0x12c1a3['markBlockFormat'](_0x5cbb5d,{'commandName':_0x1fa88c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1a87f4){const _0x8c9e79=new Set();for(const _0x7560b8 of _0x1a87f4){let _0x5f3f06=_0x7560b8['nextSibling'];for(;_0x5f3f06&&_0x5f3f06['getAttribute']('listIndent')>_0x7560b8['getAttribute']('listIndent');)_0x8c9e79['add'](_0x5f3f06),_0x5f3f06=_0x5f3f06['nextSibling'];}return Array['from'](_0x8c9e79);}(_0xc9abe3));});};}_0x12c1a3['enableCommand']('numberedList',_0x531e63('numberedList')),_0x12c1a3['enableCommand']('bulletedList',_0x531e63('bulletedList')),_0x422ae7&&_0x12c1a3['enableCommand']('todoList',_0x531e63('todoList')),_0x12c1a3['enableCommand']('indentList',_0x5a9eb9('indentList')),_0x12c1a3['enableCommand']('outdentList',_0x5a9eb9('outdentList')),_0x422ae7&&_0x12c1a3['enableCommand']('checkTodoList',()=>{const _0x546a28=_0x3dc9fb['commands']['get']('checkTodoList'),_0xaef938=Array['from'](_0x546a28['_selectedElements']);_0xaef938['filter'](_0x4f814a=>_0x4f814a['getAttribute']('todoListChecked')!=_0x546a28['value']),_0x3dc9fb['model']['change'](()=>{for(const _0x316c90 of _0xaef938)_0x12c1a3['markBlockFormat'](_0x316c90,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x546a28['value']}]});});}),_0x12c1a3['descriptionFactory']['registerElementLabel']('listItem',_0x2a8b90=>o(_0x13c2f2,'ELEMENT_LIST_ITEM',_0x2a8b90)),_0x12c1a3['descriptionFactory']['registerDescriptionCallback'](_0x398be4=>{if('formatBlock'!=_0x398be4['type']&&'formatInline'!=_0x398be4['type'])return;const {data:_0x1d98f1}=_0x398be4;if(_0x1d98f1){if('numberedList'==_0x1d98f1['commandName']||'bulletedList'==_0x1d98f1['commandName']||'todoList'==_0x1d98f1['commandName'])switch(_0x1d98f1['commandName']['replace']('List','')){case'bulleted':return _0x46ad09(o(_0x13c2f2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x46ad09(o(_0x13c2f2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x46ad09(o(_0x13c2f2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1d98f1['commandName'])return{'type':'format','content':o(_0x13c2f2,'*Indent:*\x20%0',o(_0x13c2f2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1d98f1['commandName'])return{'type':'format','content':o(_0x13c2f2,'*Outdent:*\x20%0',o(_0x13c2f2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1d98f1['commandName'])return _0x1d98f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x13c2f2,'*Check\x20item*')}:{'type':'format','content':o(_0x13c2f2,'*Uncheck\x20item*')};}function _0x46ad09(_0x141d51){return{'type':'format','content':o(_0x13c2f2,'*Change\x20to:*\x20%0',_0x141d51)};}});}}function me(_0x31d801){const _0x3b0857=_0x31d801['getAttribute']('listIndent');if(0x0==_0x3b0857)return _0x31d801;let _0x29bc3f=_0x31d801;for(;_0x31d801['previousSibling']&&_0x31d801['previousSibling']['is']('element','listItem');){const _0x3291f3=_0x31d801['previousSibling']['getAttribute']('listIndent');if(_0x3291f3==_0x3b0857)_0x29bc3f=_0x31d801['previousSibling'];else{if(_0x3291f3<_0x3b0857)break;}_0x31d801=_0x31d801['previousSibling'];}return _0x29bc3f;}function fe(_0x4d8c8a){const _0x460eca=[];if(_0x4d8c8a['is']('element','listItem')&&_0x4d8c8a['getAttribute']('listIndent')>0x0){let _0x2d2d9f=_0x4d8c8a['nextSibling'];for(;_0x2d2d9f&&'listItem'==_0x2d2d9f['name']&&_0x2d2d9f['getAttribute']('listIndent')==_0x4d8c8a['getAttribute']('listIndent');)_0x460eca['push'](_0x2d2d9f),_0x2d2d9f=_0x2d2d9f['nextSibling'];}return _0x460eca;}class K extends _0x2c20e0{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5c44cb=this['editor']['config']['get']('list.properties'),_0x4a9519=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c44cb['styles']&&_0x4a9519['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5c44cb['reversed']&&_0x4a9519['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5c44cb['startIndex']&&_0x4a9519['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4a9519['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2c44d8,_0x49841e={}){const _0x31ae85=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3605c4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x31ae85['markMultiRangeBlockFormat'](_0x3605c4,{'commandName':'listStyle','commandParams':[{'type':_0x49841e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x254ead,_0x460202={}){const _0x4e51f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d3bb8=this['_getSuggestionBlocks'](_0x2bab1b=>_0x2bab1b['is']('element','listItem')&&'numbered'===_0x2bab1b['getAttribute']('listType'));if(_0x2d3bb8['length']<0x1)return;const _0x480565=_0x2d3bb8['map'](_0x342d1d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x342d1d,'before'),this['editor']['model']['createPositionAt'](_0x342d1d,0x0)));this['editor']['model']['change'](()=>{_0x4e51f3['markMultiRangeBlockFormat'](_0x480565,{'commandName':'listReversed','commandParams':[{'reversed':_0x460202['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3665a8,_0x46e8c9={}){const _0x5de57f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10ed51=this['_getSuggestionBlocks'](_0x3fc086=>_0x3fc086['is']('element','listItem')&&'numbered'===_0x3fc086['getAttribute']('listType'));if(_0x10ed51['length']<0x1)return;const _0x569ac8=_0x10ed51['map'](_0x5c769b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c769b,'before'),this['editor']['model']['createPositionAt'](_0x5c769b,0x0)));this['editor']['model']['change'](()=>{_0x5de57f['markMultiRangeBlockFormat'](_0x569ac8,{'commandName':'listStart','commandParams':[{'startIndex':_0x46e8c9['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x656eda){if('formatBlock'!=_0x656eda['type']&&'formatInline'!=_0x656eda['type'])return;const _0x566ec0=this['editor']['locale'],{data:_0x27cbbf}=_0x656eda;if(!_0x27cbbf)return;let _0x524b65,_0xb2202;switch(_0x27cbbf['commandName']){case'listStyle':_0x524b65='*Change\x20to:*\x20%0',_0xb2202={'type':'format','content':o(_0x566ec0,_0x524b65,o(_0x566ec0,this['_getTranslationKeyForListStyle'](_0x27cbbf['commandParams'][0x0]['type'])))};break;case'listReversed':_0x524b65=_0x27cbbf['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xb2202={'type':'format','content':o(_0x566ec0,_0x524b65)};break;case'listStart':_0x524b65='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xb2202={'type':'format','content':o(_0x566ec0,_0x524b65,_0x27cbbf['commandParams'][0x0]['startIndex'])};}return _0xb2202;}['_getSuggestionBlocksForListStyle'](){const _0x13be29=this['editor']['plugins']['get']('LegacyListUtils');let _0x1f6090=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1f6090[0x0]?.['is']('element','listItem')&&_0x1f6090['unshift'](..._0x13be29['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1f6090[_0x1f6090['length']-0x1]?.['is']('element','listItem')&&_0x1f6090['push'](..._0x13be29['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1f6090=[...new Set(_0x1f6090)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1f6090=_0x1f6090['filter'](_0x553255=>_0x553255['is']('element','listItem'))),_0x1f6090;}['_getSuggestionBlocks'](_0x4bee0){const _0x4d3da1=this['editor']['plugins']['get']('LegacyListUtils');let _0x33f07a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4bee0)['map'](_0x1fac90=>{const _0x45b583=this['editor']['model']['createPositionAt'](_0x1fac90,0x0);return[..._0x4d3da1['getSiblingNodes'](_0x45b583,'backward'),..._0x4d3da1['getSiblingNodes'](_0x45b583,'forward')];})['flat']();return _0x33f07a=[...new Set(_0x33f07a)],_0x33f07a;}['_getTranslationKeyForListStyle'](_0x411228){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x411228)||'default')['toUpperCase']()+'_LIST_'+_0x411228['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x2c20e0{['afterInit'](){const _0x344ada=this['editor'];if(!_0x344ada['plugins']['has']('MediaEmbedEditing'))return;const _0x1cabd5=_0x344ada['plugins']['get']('TrackChangesEditing'),_0xced3b=_0x344ada['locale'];_0x1cabd5['enableCommand']('mediaEmbed'),_0x1cabd5['descriptionFactory']['registerElementLabel']('media',_0x380f27=>o(_0xced3b,'ELEMENT_MEDIA',_0x380f27)),_0x344ada['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2072ac,{writer:_0x4153ea,options:_0x38cd45})=>{if(_0x38cd45['showSuggestionHighlights'])return _0x4153ea['createEmptyElement']('div');},'converterPriority':'high'}),_0x344ada['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4547a7,_0x35b2b0,_0x303706)=>{_0x303706['options']['showSuggestionHighlights']&&_0x4547a7['stop']();},{'priority':'high'});}}class gt extends _0x2c20e0{['afterInit'](){const _0x3eaefb=this['editor'];_0x3eaefb['plugins']['has']('MentionEditing')&&_0x3eaefb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x2c20e0{['afterInit'](){const _0x395ecd=this['editor'],_0x32d33d=_0x395ecd['plugins']['get']('TrackChangesEditing');_0x395ecd['plugins']['has']('MultiLevelList')&&(_0x32d33d['enableDefaultAttributesIntegration']('multiLevelList'),_0x32d33d['registerBlockAttribute']('listMarkerStyle'),_0x32d33d['descriptionFactory']['registerDescriptionCallback'](_0x7e8e05=>this['handleDescriptions'](_0x7e8e05)));}['handleDescriptions'](_0x565d3f){const _0x5b67e5=this['editor']['locale'],{data:_0x2711aa}=_0x565d3f,_0x540b5e={'type':'format','content':''};if(_0x2711aa&&'listMarkerStyle'==_0x2711aa['key']){if(!_0x2711aa['oldValue'])return{'type':'format','content':o(_0x5b67e5,'*Set\x20format:*\x20%0',o(_0x5b67e5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2711aa['newValue']+')'};if(!_0x2711aa['newValue']){let _0x17e6b0=_0x565d3f['head'];for(;_0x17e6b0;){if(_0x17e6b0['data']&&'listType'==_0x17e6b0['data']['key']&&_0x17e6b0['data']['newValue'])return _0x540b5e;_0x17e6b0=_0x17e6b0['next'];}return{'type':'format','content':o(_0x5b67e5,'*Remove\x20format:*\x20%0',o(_0x5b67e5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2711aa['oldValue']+')'};}}}}class mt extends _0x2c20e0{['afterInit'](){const _0x400620=this['editor'];if(!_0x400620['plugins']['has']('PageBreakEditing'))return;_0x400620['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1e41e7=_0x400620['plugins']['get']('TrackChangesEditing'),_0x4086b3=_0x400620['locale'];_0x1e41e7['descriptionFactory']['registerElementLabel']('pageBreak',_0x163dc8=>o(_0x4086b3,'ELEMENT_PAGE_BREAK',_0x163dc8));}}class dt extends _0x2c20e0{['afterInit'](){const _0x4d669c=this['editor'];if(!_0x4d669c['plugins']['has']('Paragraph'))return;const _0x1b078c=_0x4d669c['locale'],_0x34a368=_0x4d669c['plugins']['get']('TrackChangesEditing');_0x34a368['descriptionFactory']['registerElementLabel']('paragraph',_0xa9dda5=>o(_0x1b078c,'ELEMENT_PARAGRAPH',_0xa9dda5)),_0x34a368['enableDefaultAttributesIntegration']('paragraph'),_0x34a368['enableCommand']('insertParagraph'),_0x4d669c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4d669c),{'priority':'highest'}),_0x4d669c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x18cd0d,_0xffc83a,_0x2ab580)=>{_0x2ab580['options']['showSuggestionHighlights']&&nr(_0x4d669c,{'showActiveMarker':!0x1})(_0x18cd0d,_0xffc83a,_0x2ab580);},{'priority':'highest'});const _0x2f057b=_0x34a368['descriptionFactory'];_0x2f057b['registerDescriptionCallback'](_0x397129=>{if('insertion'!==_0x397129['type'])return;const {start:_0x37962f,end:_0x1ce012}=_0x397129['getFirstRange']();if(!_0x37962f['isTouching'](_0x1ce012)||!_0x37962f['nodeAfter'])return;const _0x28dd36=_0x4d669c['model']['schema'],_0x31ef4a=_0x37962f['nodeAfter'];return _0x28dd36['isBlock'](_0x31ef4a)&&!_0x28dd36['isLimit'](_0x31ef4a)&&_0x28dd36['checkChild'](_0x31ef4a,'$text')?{'type':'insertion','content':o(_0x1b078c,'*Insert:*\x20%0',_0x2f057b['getItemLabel'](_0x31ef4a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30a6c3=this['editor'],_0x133345=_0x30a6c3['locale'];_0x30a6c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f33e0=>{if('formatBlock'!=_0x3f33e0['type'])return;const {data:_0x23ba35}=_0x3f33e0;return _0x23ba35&&'paragraph'==_0x23ba35['commandName']?{'type':'format','content':o(_0x133345,'*Change\x20to:*\x20%0',o(_0x133345,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x10783f,{showActiveMarker:_0x11df75=!0x0}={}){return(_0x34a2de,_0x1f3461,_0x3bad99)=>{const _0x2c93ce=_0x10783f['plugins']['get']('TrackChangesEditing'),_0x127f29=_0x1f3461['markerRange']['start'],_0x2fbf9b=_0x1f3461['markerRange']['end'],_0x7fcce2=_0x10783f['model']['schema'];if(!_0x127f29['isTouching'](_0x2fbf9b)||!_0x127f29['nodeAfter'])return;const _0x592b4b=_0x127f29['nodeAfter'];if(_0x7fcce2['isBlock'](_0x592b4b)&&!_0x7fcce2['isLimit'](_0x592b4b)&&_0x7fcce2['checkChild'](_0x592b4b,'$text')){if(!_0x3bad99['consumable']['consume'](_0x1f3461['markerRange'],_0x34a2de['name']))return;const _0x2190ae=_0x3bad99['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x1b8502=_0x3bad99['mapper']['toViewPosition'](_0x2fbf9b);_0x11df75&&_0x2c93ce['activeMarkers']['includes'](_0x1f3461['markerName'])&&_0x3bad99['writer']['addClass']('ck-suggestion-marker--active',_0x2190ae),_0x3bad99['writer']['insert'](_0x1b8502,_0x2190ae),_0x3bad99['mapper']['bindElementToMarker'](_0x2190ae,_0x1f3461['markerName']);}};}class pt extends _0x2c20e0{['afterInit'](){const _0x2c6b7d=this['editor'];if(!_0x2c6b7d['plugins']['has']('RemoveFormatEditing'))return;_0x2c6b7d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x380a30=this['editor'];_0x380a30['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5751d2=>{if('formatBlock'!=_0x5751d2['type']&&'formatInline'!=_0x5751d2['type'])return;const {data:_0xfec7c5}=_0x5751d2;return _0xfec7c5&&'removeFormat'==_0xfec7c5['commandName']?{'type':'format','content':o(_0x380a30['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x2c20e0{['afterInit'](){const _0x364b6f=this['editor'];if(!_0x364b6f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x424421=_0x364b6f['plugins']['get']('TrackChangesEditing');_0x424421['enableCommand']('goToPreviousRestrictedEditingException'),_0x424421['enableCommand']('goToNextRestrictedEditingException');const _0x112e9c=_0x364b6f['plugins']['get']('RestrictedEditingModeEditing');_0x112e9c['enableCommand']('trackChanges'),_0x112e9c['enableCommand']('acceptSuggestion'),_0x112e9c['enableCommand']('discardSuggestion'),_0x112e9c['enableCommand']('acceptAllSuggestions'),_0x112e9c['enableCommand']('discardAllSuggestions'),_0x112e9c['enableCommand']('acceptSelectedSuggestions'),_0x112e9c['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x2c20e0{static get['requires'](){return[_0x34add9];}['init'](){const _0x2b53f8=this['editor'],_0x361aff=_0x2b53f8['plugins']['get']('TrackChangesEditing');_0x361aff['enableCommand']('shiftEnter'),_0x2b53f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x2b53f8),{'priority':'high'}),_0x2b53f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x2b53f8),{'priority':'high'}),_0x2b53f8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x465801,_0x1fb112,_0x3087e)=>{_0x3087e['options']['showSuggestionHighlights']&&de(_0x2b53f8,{'showActiveMarker':!0x1})(_0x465801,_0x1fb112,_0x3087e);}),_0x361aff['descriptionFactory']['registerElementLabel']('softBreak',_0xb07ac2=>o(_0x2b53f8['locale'],'ELEMENT_LINE_BREAK',_0xb07ac2));}}function de(_0x141423,{showActiveMarker:_0x4595d5=!0x0}={}){return(_0x2b9ce4,_0x5e6e25,_0x47ead2)=>{const _0x990f35=_0x141423['plugins']['get']('TrackChangesEditing');if(!_0x47ead2['consumable']['test'](_0x5e6e25['markerRange'],_0x2b9ce4['name']))return;const _0x24128a=_0x141423['model'];for(const _0x231913 of _0x5e6e25['markerRange']['getItems']()){if(!_0x231913['is']('element','softBreak'))continue;const _0x4b70bb='deletion'==_0x5e6e25['markerName']['split'](':')[0x1]?'merge':'split',_0x3063f5=_0x47ead2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b70bb}),_0x3b2be2=_0x47ead2['mapper']['toViewPosition'](_0x24128a['createPositionBefore'](_0x231913));_0x4595d5&&_0x990f35['activeMarkers']['includes'](_0x5e6e25['markerName'])&&_0x47ead2['writer']['addClass']('ck-suggestion-marker--active',_0x3063f5),_0x47ead2['writer']['insert'](_0x3b2be2,_0x3063f5),_0x47ead2['mapper']['bindElementToMarker'](_0x3063f5,_0x5e6e25['markerName']);}};}class wt extends _0x2c20e0{['afterInit'](){const _0x41c225=this['editor'],_0x1c8154=_0x41c225['model'],_0x3332aa=_0x41c225['locale'];if(!_0x41c225['plugins']['has']('StandardEditingModeEditing'))return;const _0x5a284a=_0x41c225['plugins']['get']('TrackChangesEditing'),_0xf78f37='restrictedEditingException',_0x5d0fa6=_0x41c225['commands']['get'](_0xf78f37);_0x5a284a['enableCommand'](_0xf78f37,(_0x89cd4b,_0x4f40b6={})=>{const _0x56c49c=_0x1c8154['document']['selection'];if(_0x56c49c['isCollapsed'])return void _0x89cd4b(_0x4f40b6);const _0x56df6a=void 0x0!==_0x4f40b6['forceValue']?_0x4f40b6['forceValue']:!_0x5d0fa6['value'];_0x1c8154['change'](()=>{const _0xfe3dc0=Array['from'](_0x56c49c['getRanges']());for(const _0x30d896 of _0xfe3dc0){const _0x30d988=_0x56df6a?[_0x30d896]:io(_0xf78f37,_0x30d896,_0x1c8154);for(const _0x32872d of _0x30d988)_0x5a284a['markInlineFormat'](_0x32872d,{'commandName':_0xf78f37,'commandParams':[{'forceValue':_0x56df6a}]});}});}),_0x5a284a['descriptionFactory']['registerDescriptionCallback'](_0x14643b=>{if('formatBlock'!=_0x14643b['type']&&'formatInline'!=_0x14643b['type'])return;const {data:_0x58a22c}=_0x14643b;return _0x58a22c&&_0x58a22c['commandName']==_0xf78f37?_0x58a22c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3332aa,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3332aa,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x2c20e0{['afterInit'](){const _0x3cfa4c=this['editor'];if(!_0x3cfa4c['plugins']['has']('Style')||!_0x3cfa4c['plugins']['has']('DataSchema'))return;const _0x36aaca=_0x3cfa4c['plugins']['get']('TrackChangesEditing'),_0x48d3c0=_0x3cfa4c['locale'],_0x3971d8=_0x3cfa4c['config']['get']('style')||{},_0x193eb8=_0x3cfa4c['plugins']['get']('GeneralHtmlSupport'),_0x550dee=_0x3cfa4c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3cfa4c['plugins']['get']('DataSchema'),_0x3971d8['definitions']);_0x36aaca['enableDefaultAttributesIntegration']('style');const _0x3d08d7=new Set();for(const _0x2b7b5d of _0x550dee['block']){const _0x351658=_0x193eb8['getGhsAttributeNameForElement'](_0x2b7b5d['element']);_0x3d08d7['add'](_0x351658);}const _0x3a28eb=new Set();for(const _0x145f0c of _0x550dee['inline']){const _0x493a2d=_0x193eb8['getGhsAttributeNameForElement'](_0x145f0c['element']);_0x3a28eb['add'](_0x493a2d);for(const _0x1f2c8a of _0x145f0c['ghsAttributes'])_0x3a28eb['add'](_0x1f2c8a);}for(const _0x5a6e0f of _0x3d08d7)_0x36aaca['registerBlockAttribute'](_0x5a6e0f),_0x36aaca['descriptionFactory']['registerAttributeLabel'](_0x5a6e0f,o(_0x48d3c0,'FORMAT_STYLE'));for(const _0x17b6be of _0x3a28eb)_0x36aaca['registerInlineAttribute'](_0x17b6be),_0x36aaca['descriptionFactory']['registerAttributeLabel'](_0x17b6be,o(_0x48d3c0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x86775f=this['editor'],_0x5e3823=_0x86775f['locale'];_0x86775f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32afb2=>{if('formatBlock'!=_0x32afb2['type']&&'formatInline'!=_0x32afb2['type'])return;const {data:_0x4b344f}=_0x32afb2;return _0x4b344f&&'style'===_0x4b344f['commandName']?_0x4b344f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e3823,'*Set\x20format:*\x20%0',_0x4b344f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5e3823,'*Remove\x20format:*\x20%0',_0x4b344f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x2c20e0{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4cd794){super(_0x4cd794),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4531bc=this['editor'],_0x3773e3=_0x4531bc['model']['document']['selection'];if(!_0x4531bc['plugins']['has']('TableEditing'))return;const _0x54cf41=_0x4531bc['locale'],_0x177f83=_0x4531bc['plugins']['get']('TrackChangesEditing'),_0x2d6a55=_0x4531bc['plugins']['get']('TableUtils');_0x177f83['descriptionFactory']['registerElementLabel']('table',_0x2570e6=>o(_0x54cf41,'ELEMENT_TABLE',_0x2570e6)),this['_setupColumnsRowsFixing'](),_0x177f83['enableCommand']('insertTable'),_0x177f83['enableCommand']('selectTableRow'),_0x177f83['enableCommand']('selectTableColumn');for(const _0xa0a3e2 of['insertTableRowAbove','insertTableRowBelow']){const _0x1d5beb=_0x4531bc['commands']['get'](_0xa0a3e2);_0x177f83['enableCommand'](_0xa0a3e2,_0x3b70b5=>{_0x4531bc['model']['change'](_0x180f53=>{_0x3b70b5();const _0x50516e='above'===_0x1d5beb['order'],_0x12fdb5=_0x2d6a55['getSelectionAffectedTableCells'](_0x3773e3),_0x2abd0c=_0x2d6a55['getRowIndexes'](_0x12fdb5),_0xfc59a5=_0x50516e?_0x2abd0c['first']-0x1:_0x2abd0c['last']+0x1,_0x34853a=_0x12fdb5[0x0]['findAncestor']('table'),_0x4fa123=_0x2d6a55['createTableWalker'](_0x34853a,{'startRow':_0xfc59a5,'endRow':_0xfc59a5}),_0x3f7cae=Array['from'](_0x4fa123)['map'](_0x581dc2=>_0x180f53['createRangeOn'](_0x581dc2['cell']));_0x177f83['markMultiRangeInsertion'](_0x3f7cae,'tableRow');});});}for(const _0x3c5ee9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3e3f46=_0x4531bc['commands']['get'](_0x3c5ee9);_0x177f83['enableCommand'](_0x3c5ee9,_0x40ae11=>{_0x4531bc['model']['change'](_0x2e4813=>{_0x40ae11();const _0x109133='left'===_0x3e3f46['order'],_0x147937=_0x2d6a55['getSelectionAffectedTableCells'](_0x3773e3),_0x61bc75=_0x2d6a55['getColumnIndexes'](_0x147937),_0x36bad2=_0x109133?_0x61bc75['first']-0x1:_0x61bc75['last']+0x1,_0x100ca9=_0x147937[0x0]['findAncestor']('table'),_0x4e1b8f=_0x2d6a55['createTableWalker'](_0x100ca9,{'startRow':0x0,'column':_0x36bad2,'includeAllSlots':!0x1}),_0x3febd2=Array['from'](_0x4e1b8f)['map'](_0x58bf4b=>_0x2e4813['createRangeOn'](_0x58bf4b['cell']));_0x177f83['markMultiRangeInsertion'](_0x3febd2,'tableColumn');});});}for(const _0x1059cb of['removeTableRow','removeTableColumn']){const _0x8e776d=_0x1059cb['substr'](0xb),_0x2fdaeb=_0x8e776d['toLowerCase'](),_0x438150=_0x2fdaeb['substr'](0x0,0x3)+'span',_0x4a3fac='table'+_0x8e776d,_0x169bff='min'+_0x8e776d,_0x50f810='max'+_0x8e776d;_0x177f83['enableCommand'](_0x1059cb,()=>{_0x4531bc['model']['change'](_0x3e5f70=>{const _0x68a3af=_0x2d6a55['getSelectionAffectedTableCells'](_0x3773e3),_0x3466c6=_0x68a3af[0x0]['findAncestor']('table');let _0x53d800;if('removeTableRow'==_0x1059cb){const _0xcfcc0b=_0x2d6a55['getRowIndexes'](_0x68a3af);_0x53d800={'startRow':_0xcfcc0b['first'],'endRow':_0xcfcc0b['last'],'includeAllSlots':!0x0};}else{const _0x47c3d6=_0x2d6a55['getColumnIndexes'](_0x68a3af);_0x53d800={'startColumn':_0x47c3d6['first'],'endColumn':_0x47c3d6['last'],'includeAllSlots':!0x0};}const _0x357191=_0x2d6a55['createTableWalker'](_0x3466c6,_0x53d800),_0x4780d3=Array['from'](_0x357191)['map'](({cell:_0x14a7da})=>_0x14a7da),_0xd5b151=Ee(_0x4780d3['filter'](_0x1df038=>_0x1df038['hasAttribute'](_0x438150))),_0x20e98e=Ee(_0x4780d3['filter'](_0x5339a3=>!_0x5339a3['hasAttribute'](_0x438150)))['map'](_0x38da86=>_0x3e5f70['createRangeOn'](_0x38da86)),_0x773d76=_0x177f83['markMultiRangeDeletion'](_0x20e98e,_0x4a3fac);if(_0x773d76&&('tableRow'==_0x773d76['subType']||'tableColumn'==_0x773d76['subType'])){const _0x2c045c=this['_getSuggestionCoords'](_0x773d76);for(const _0x25232a of _0xd5b151){const _0x4e8cff=_0x3e5f70['createRangeOn'](_0x25232a),_0x4bbd2d=_0x2d6a55['getCellLocation'](_0x25232a),_0x185f77=_0x25232a['getAttribute'](_0x438150)-0x1,_0x127258=_0x2c045c[_0x169bff],_0x19cbdf=_0x2c045c[_0x50f810];_0x127258<=_0x4bbd2d[_0x2fdaeb]&&_0x4bbd2d[_0x2fdaeb]+_0x185f77<=_0x19cbdf&&_0x773d76['addRange'](_0x4e8cff);}}});});}function _0x48c7e0(_0x325583){const _0x143fee=Array['from'](_0x3773e3['getRanges']())['map'](_0x18ec46=>_0xef9d24['fromRange'](_0x18ec46));_0x4531bc['model']['change'](_0x4381e8=>{const _0x19e1ac=_0x4381e8['batch'];_0x325583=_0x325583['filter'](_0xc49061=>'$graveyard'!=_0xc49061['root']['rootName']),_0x4381e8['setSelection'](_0x325583),_0x4531bc['commands']['get']('removeTableRow')['refresh'](),_0x4531bc['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4531bc['model']['enqueueChange'](()=>{_0x4531bc['model']['enqueueChange'](_0x19e1ac,_0x21212a=>{const _0x270549=_0x143fee['filter'](_0x304845=>'$graveyard'!=_0x304845['root']['rootName']);_0x270549['length']>0x0&&_0x21212a['setSelection'](_0x270549);for(const _0x5081aa of _0x143fee)_0x5081aa['detach']();});});});}function _0x3d6982(_0x33bbc6){_0x4531bc['model']['change'](_0x50d52b=>{const _0x17b233=Array['from'](_0x3773e3['getRanges']())['map'](_0xfde352=>_0xef9d24['fromRange'](_0xfde352)),_0x5734d5=[];for(const _0x1103d0 of _0x33bbc6)for(const _0x13c28b of _0x1103d0['getItems']({'shallow':!0x0}))_0x5734d5['push'](_0x13c28b);for(const _0x22f293 of _0x5734d5)'$graveyard'!=_0x22f293['root']['rootName']&&(_0x50d52b['setSelection'](_0x50d52b['createPositionAt'](_0x22f293,0x0)),_0x4531bc['commands']['get']('removeTableColumn')['refresh'](),_0x4531bc['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x49b39a=_0x17b233['filter'](_0x3e38b7=>'$graveyard'!=_0x3e38b7['root']['rootName']);_0x49b39a['length']>0x0&&_0x50d52b['setSelection'](_0x49b39a);for(const _0x98f0a2 of _0x17b233)_0x98f0a2['detach']();});}function _0x76cee8(_0x42fb97,_0x3fdb62){return _0x3fdb62['every'](_0x4cfc2c=>_0x42fb97['some'](_0x4ff40f=>_0x4ff40f['end']['isEqual'](_0x4cfc2c['start'])||_0x4cfc2c['end']['isEqual'](_0x4ff40f['start'])));}function _0x19b9b9(_0x4ee42f,_0x48a46a){return!_0x4ee42f['some'](_0x1eb74a=>_0x48a46a['some'](_0x1b6506=>_0x1eb74a['isIntersecting'](_0x1b6506)))&&_0x4ee42f['some'](_0x35b36d=>_0x48a46a['some'](_0x340bc1=>_0x35b36d['end']['isTouching'](_0x340bc1['start'])));}_0x4531bc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x205789,_0xa73c1a,_0x4fea89)=>{if(!_0x4fea89['options']['showSuggestionHighlights'])return;const _0x4027db=_0xa73c1a['item'];if(!_0x4027db)return;const _0x26342b=_0x4fea89['mapper']['toViewElement'](_0x4027db);function _0x3e4ff5(_0x14abaf){return Array['isArray'](_0x14abaf)?_0x14abaf:[_0x14abaf];}_0x26342b&&'tableCell'===_0x4027db['name']&&_0x63a0a0(_0x26342b,_0x4fea89['writer'],(_0x44436e,_0x2a6969,_0x305bd1)=>_0x305bd1['addClass'](_0x3e4ff5(_0x2a6969['classes']),_0x44436e),(_0x24d3a9,_0x4f7292,_0x2ddbb7)=>_0x2ddbb7['removeClass'](_0x3e4ff5(_0x4f7292['classes']),_0x24d3a9));},{'priority':'highest'}),_0x177f83['descriptionFactory']['registerDescriptionCallback'](_0x2420b7=>{if('insertion'!=_0x2420b7['type']&&'deletion'!=_0x2420b7['type'])return;const _0x2f0c53=_0x2420b7['getContainedElement']();if(null!=_0x2f0c53&&_0x2f0c53['is']('element','table')){if('insertion'==_0x2420b7['type']){const _0x3dcba3=_0x2420b7['getItems']()['filter'](_0x57594d=>_0x57594d['is']('$textProxy'))['map'](_0x52204d=>_0x52204d['data']);if(_0x3dcba3['length'])return{'type':'insertion','content':o(_0x54cf41,'*Insert:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3dcba3['join']('\x20')+'\x22'))};}if('deletion'==_0x2420b7['type']){const _0x33d6bc=_0x2420b7['getItems']()['filter'](_0x4af400=>_0x4af400['is']('$textProxy'))['map'](_0x11667a=>_0x11667a['data']);if(_0x33d6bc['length'])return{'type':'deletion','content':o(_0x54cf41,'*Remove:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x33d6bc['join']('\x20')+'\x22'))};}}}),_0x177f83['descriptionFactory']['registerDescriptionCallback'](_0x1d3500=>{if('tableRow'==_0x1d3500['subType']){const _0x3e6b00=_0x1d3500['getItems']()['filter'](_0x4527f7=>_0x4527f7['is']('$textProxy'))['map'](_0x1758e2=>_0x1758e2['data']),_0x1afa20=this['_getSuggestionCoords'](_0x1d3500),_0x303e5a=_0x1afa20['maxRow']-_0x1afa20['minRow']+0x1;if('insertion'==_0x1d3500['type'])return _0x3e6b00['length']?{'type':'insertion','content':o(_0x54cf41,'*Insert:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x303e5a,'\x22'+_0x3e6b00['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54cf41,'*Insert:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_ROW',_0x303e5a))};if('deletion'==_0x1d3500['type'])return _0x3e6b00['length']?{'type':'deletion','content':o(_0x54cf41,'*Remove:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x303e5a,'\x22'+_0x3e6b00['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54cf41,'*Remove:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_ROW',_0x303e5a))};}if('tableColumn'==_0x1d3500['subType']){const _0x293c23=_0x1d3500['getItems']()['filter'](_0x3b6ea1=>_0x3b6ea1['is']('$textProxy'))['map'](_0x4bcbc5=>_0x4bcbc5['data']),_0x359706=this['_getSuggestionCoords'](_0x1d3500),_0x391ed8=_0x359706['maxColumn']-_0x359706['minColumn']+0x1;if('insertion'==_0x1d3500['type'])return _0x293c23['length']?{'type':'insertion','content':o(_0x54cf41,'*Insert:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x391ed8,'\x22'+_0x293c23['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54cf41,'*Insert:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_COLUMN',_0x391ed8))};if('deletion'==_0x1d3500['type'])return _0x293c23['length']?{'type':'deletion','content':o(_0x54cf41,'*Remove:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x391ed8,'\x22'+_0x293c23['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54cf41,'*Remove:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_COLUMN',_0x391ed8))};}}),_0x177f83['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x48c7e0),_0x177f83['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x48c7e0),_0x177f83['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3d6982),_0x177f83['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3d6982),_0x177f83['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x76cee8),_0x177f83['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x76cee8),_0x177f83['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x19b9b9),_0x177f83['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x19b9b9);}['_acceptFormatSuggestionCallbackFactory'](){const _0x578431=this['editor'],_0x322903=_0x578431['model']['document']['selection'];return(_0x51ff9d,_0x2aa194)=>{_0x578431['model']['change'](_0x272da2=>{const {commandName:_0x30e5ec,commandParams:_0x3592b3}=_0x2aa194;let _0x99db41=_0x51ff9d[0x0]['end']['nodeBefore'];_0x3592b3&&_0x3592b3[0x0]&&!0x1===_0x3592b3[0x0]['forceValue']&&(_0x99db41=_0x51ff9d[0x0]['start']['nodeAfter']);const _0x383ad1=_0x272da2['createRangeIn'](_0x99db41);if('$graveyard'==_0x383ad1['root']['rootName'])return;const _0x3a8bdb=Array['from'](_0x322903['getRanges']())['map'](_0x39adb4=>_0xef9d24['fromRange'](_0x39adb4));_0x272da2['setSelection'](_0x383ad1),_0x578431['commands']['get'](_0x30e5ec)['refresh'](),_0x3592b3['push']({'forceDefaultExecution':!0x0}),_0x578431['execute'](_0x30e5ec,..._0x3592b3);const _0x3274aa=_0x3a8bdb['filter'](_0x1461b3=>'$graveyard'!=_0x1461b3['root']['rootName']);_0x3274aa['length']>0x0&&_0x272da2['setSelection'](_0x3274aa);for(const _0x15d0ad of _0x3a8bdb)_0x15d0ad['detach']();});};}['_getCoordsForCells'](_0x695fc9){const _0x4abc47=this['editor']['plugins']['get']('TableUtils');let _0x3d8462=Number['MAX_SAFE_INTEGER'],_0x55273a=Number['MIN_SAFE_INTEGER'],_0x217761=Number['MAX_SAFE_INTEGER'],_0x158c1d=Number['MIN_SAFE_INTEGER'];for(const _0x2cefb1 of _0x695fc9){if('$graveyard'==_0x2cefb1['root']['rootName'])continue;const {row:_0x1f5ea7,column:_0x40e9c4}=_0x4abc47['getCellLocation'](_0x2cefb1),_0x440782=_0x2cefb1['hasAttribute']('rowspan')?_0x2cefb1['getAttribute']('rowspan')-0x1:0x0,_0x42a881=_0x2cefb1['hasAttribute']('colspan')?_0x2cefb1['getAttribute']('colspan')-0x1:0x0;_0x3d8462=_0x1f5ea7<_0x3d8462?_0x1f5ea7:_0x3d8462,_0x55273a=_0x1f5ea7+_0x440782>_0x55273a?_0x1f5ea7+_0x440782:_0x55273a,_0x217761=_0x40e9c4<_0x217761?_0x40e9c4:_0x217761,_0x158c1d=_0x40e9c4+_0x42a881>_0x158c1d?_0x40e9c4+_0x42a881:_0x158c1d;}return{'minRow':_0x3d8462,'maxRow':_0x55273a,'minColumn':_0x217761,'maxColumn':_0x158c1d};}['_setupColumnsRowsFixing'](){const _0x19985a=this['editor'],_0x15e873=_0x19985a['plugins']['get']('TrackChangesEditing'),_0x2806ef=_0x19985a['plugins']['get']('TableUtils');_0x19985a['model']['document']['on']('change:data',()=>{const _0x21f44c=Array['from'](_0x19985a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3284f7,data:_0x461f99}of _0x21f44c){const {group:_0x52041f,id:_0x30c742,subType:_0x5c2bfc}=_0x15e873['_splitMarkerName'](_0x3284f7);if('suggestion'!=_0x52041f)continue;if(null!=_0x461f99['oldRange'])continue;const _0x1f461b=_0x15e873['getSuggestion'](_0x30c742);this['_tablePostFixingSubtypes']['includes'](_0x5c2bfc)&&this['_tableSuggestions']['add'](_0x1f461b);}},{'priority':'low'});const _0x42a610=(_0x203354,_0x1395b4)=>{let _0x53b55d=!0x1;const _0x71d6ef=_0x1395b4['createRangeOn'](_0x203354),_0x19c246=_0x203354['findAncestor']('table'),_0x174ebf=_0x2806ef['getCellLocation'](_0x203354);for(const _0x184a4a of this['_tableSuggestions']){const _0x343a7a=_0x184a4a['subType'],_0x2e379e=_0x343a7a['startsWith']('tablePaste'),_0x2ba786=_0x343a7a['substr'](_0x2e379e?0xa:0x5),_0x1f0dbd=_0x2ba786['toLowerCase'](),_0x18f0e2=_0x1f0dbd['substr'](0x0,0x3)+'span',_0x176122='min'+_0x2ba786,_0x9f66fb='max'+_0x2ba786;if(!_0x184a4a['isInContent'])continue;if(_0x19c246!=_0x184a4a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x184a4a['isIntersectingWithRange'](_0x71d6ef))continue;const _0x158459=_0x203354['hasAttribute'](_0x18f0e2)?_0x203354['getAttribute'](_0x18f0e2)-0x1:0x0,_0x54ab64=this['_getSuggestionCoords'](_0x184a4a),_0x1b161a=_0x54ab64[_0x176122],_0x39ac4c=_0x54ab64[_0x9f66fb];_0x1b161a<=_0x174ebf[_0x1f0dbd]&&_0x174ebf[_0x1f0dbd]+_0x158459<=_0x39ac4c&&(_0x184a4a['addRange'](_0x71d6ef),_0x53b55d=!0x0);}return _0x53b55d;};_0x19985a['model']['document']['registerPostFixer'](_0x431f17=>{let _0xc24718=!0x1;for(const _0x1e31ea of _0x19985a['model']['document']['differ']['getChanges']())if('insert'==_0x1e31ea['type']){if('tableRow'==_0x1e31ea['name']){for(const _0x202eb8 of _0x1e31ea['position']['nodeAfter']['getChildren']())_0xc24718=_0xc24718||_0x42a610(_0x202eb8,_0x431f17);}else'tableCell'==_0x1e31ea['name']&&(_0xc24718=_0xc24718||_0x42a610(_0x1e31ea['position']['nodeAfter'],_0x431f17));}return _0xc24718;});}['_getSuggestionCoords'](_0x4774f8){return this['_getCoordsForCells'](_0x4774f8['getRanges']()['map'](_0x26d6f8=>_0x26d6f8['start']['nodeAfter']));}}function Ee(_0x517c95){return Array['from'](new Set(_0x517c95)['values']());}class St extends _0x2c20e0{static get['requires'](){return[jt];}['afterInit'](){const _0x11f6b4=this['editor'],_0x2079fd=_0x11f6b4['model']['document']['selection'],_0x510552=_0x11f6b4['locale'];if(!_0x11f6b4['plugins']['has']('TableEditing'))return;const _0x34f351=_0x11f6b4['plugins']['get']('TrackChangesEditing'),_0x549030=_0x11f6b4['plugins']['get']('TableUtils'),_0x457e08=_0x11f6b4['plugins']['get'](jt);_0x457e08['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x34f351['enableCommand']('mergeTableCells',()=>{const _0x4e0b98=_0x549030['getSelectionAffectedTableCells'](_0x11f6b4['model']['document']['selection']);_0x11f6b4['model']['change'](()=>{_0x34f351['markMultiRangeBlockFormat'](_0x4e0b98,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x11f6b4['commands']['get']('mergeTableCells')['on']('execute',(_0x5955ee,_0x1871a2)=>{_0x11f6b4['commands']['get']('trackChanges')['value']&&(_0x1871a2['length']>0x0&&_0x1871a2[_0x1871a2['length']-0x1]&&_0x1871a2[_0x1871a2['length']-0x1]['forceDefaultExecution']||_0x34f351['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5955ee['stop']());},{'priority':'highest'});for(const _0x325ae1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1288d5=_0x11f6b4['commands']['get'](_0x325ae1);_0x34f351['enableCommand'](_0x325ae1,()=>{const _0x168aa7=_0x11f6b4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x345b68=>_0x345b68['is']('element','tableCell')),_0x140a72=_0x1288d5['value'];_0x11f6b4['model']['change'](()=>{_0x34f351['markMultiRangeBlockFormat']([_0x168aa7,_0x140a72],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5402a1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x58666c=_0x11f6b4['commands']['get'](_0x5402a1);_0x34f351['enableCommand'](_0x5402a1,()=>{const _0x13eac5=_0x549030['getSelectionAffectedTableCells'](_0x11f6b4['model']['document']['selection'])[0x0],_0x48f734=_0x13eac5['findAncestor']('table'),{column:_0x1e646,row:_0x1521be}=_0x549030['getCellLocation'](_0x13eac5);let _0x24555f=[];if('horizontally'==_0x58666c['direction']){const _0x15f283=_0x549030['createTableWalker'](_0x48f734,{'startRow':_0x1521be,'endRow':_0x1521be,'includeAllSlots':!0x0});_0x24555f=Array['from'](_0x15f283)['map'](_0x41865b=>_0x41865b['cell']);}else{const _0x47c681=_0x549030['createTableWalker'](_0x48f734,{'column':_0x1e646,'includeAllSlots':!0x0});_0x24555f=Array['from'](_0x47c681)['map'](_0xa42228=>_0xa42228['cell']);}_0x11f6b4['model']['change'](_0x3f4f1e=>{_0x34f351['markBlockFormat'](_0x3f4f1e['createRangeOn'](_0x13eac5),{'commandName':_0x5402a1,'commandParams':[]},_0x24555f,_0x5402a1);});});}_0x34f351['descriptionFactory']['registerDescriptionCallback'](_0x52ee1f=>{if('formatBlock'!=_0x52ee1f['type']&&'formatInline'!=_0x52ee1f['type'])return;const {data:_0x4b1145}=_0x52ee1f;return _0x4b1145&&'mergeTableCells'==_0x4b1145['commandName']?{'type':'format','content':o(_0x510552,'*Merge\x20cells*')}:void 0x0;}),_0x34f351['descriptionFactory']['registerDescriptionCallback'](_0x383fd0=>{if('formatBlock'!=_0x383fd0['type']&&'formatInline'!=_0x383fd0['type'])return;const {data:_0x264840}=_0x383fd0;return _0x264840?'splitTableCellVertically'==_0x264840['commandName']?{'type':'format','content':o(_0x510552,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x264840['commandName']?{'type':'format','content':o(_0x510552,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x41a938=_0x457e08['_acceptFormatSuggestionCallbackFactory']();for(const _0x262939 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x34f351['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x262939,'accept',_0x41a938);for(const _0x5d06f2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x34f351['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d06f2,'accept',_0x41a938);_0x34f351['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1a52d1=>{_0x11f6b4['model']['change'](_0x427607=>{const _0xf8dcca=Array['from'](_0x2079fd['getRanges']())['map'](_0x25aa07=>_0xef9d24['fromRange'](_0x25aa07));_0x427607['setSelection'](_0x1a52d1),_0x11f6b4['commands']['get']('mergeTableCells')['refresh'](),_0x11f6b4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5c483d=_0xf8dcca['filter'](_0x410417=>'$graveyard'!=_0x410417['root']['rootName']);_0x5c483d['length']>0x0&&_0x427607['setSelection'](_0x5c483d);for(const _0x2ad51d of _0xf8dcca)_0x2ad51d['detach']();});});for(const _0x25783f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x58f42b=_0x11f6b4['commands']['get'](_0x25783f);_0x58f42b['on']('set:isEnabled',(_0x482567,_0x191e95,_0x5dd94e)=>{if(_0x5dd94e){const _0xcfe625=_0x11f6b4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2dd5f7=>_0x2dd5f7['is']('element','tableCell'));this['_areMergableCells'](_0x58f42b['value'],_0xcfe625)||(_0x482567['return']=!0x1,_0x482567['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2dafd9=this['editor']['commands']['get']('mergeTableCells'),_0x1e8087=this['editor']['plugins']['get']('TableUtils');if(!_0x2dafd9['isEnabled'])return!0x1;const _0x39a860=_0x1e8087['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4c41b5 of _0x39a860)for(const _0x38a711 of _0x39a860)if(_0x4c41b5!=_0x38a711&&!this['_areMergableCells'](_0x4c41b5,_0x38a711))return!0x1;return!0x0;}['_areMergableCells'](_0x4b9e23,_0xdffb2d){const _0x3aecda=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f5088=this['editor']['model']['createRangeOn'](_0x4b9e23),_0x538551=this['editor']['model']['createRangeOn'](_0xdffb2d),_0x26539b=new Set(),_0x4fc9a0=new Set();for(const _0x560b8a of _0x3aecda['getSuggestions']())if(('insertion'==_0x560b8a['type']||'deletion'==_0x560b8a['type']||'mergeTableCells'==_0x560b8a['subType'])&&_0x560b8a['isInContent']){for(const _0x4e4627 of _0x560b8a['getRanges']())_0x4e4627['containsRange'](_0x3f5088,!0x0)&&_0x26539b['add'](_0x560b8a['type']+':'+_0x560b8a['author']['id']),_0x4e4627['containsRange'](_0x538551,!0x0)&&_0x4fc9a0['add'](_0x560b8a['type']+':'+_0x560b8a['author']['id']);}if(_0x26539b['size']!=_0x4fc9a0['size'])return!0x1;for(const _0x5e50b2 of _0x26539b)if(!_0x4fc9a0['has'](_0x5e50b2))return!0x1;return!0x0;}}class At extends _0x2c20e0{static get['requires'](){return[jt];}['afterInit'](){const _0x347ffa=this['editor'];if(!_0x347ffa['plugins']['has']('TableEditing'))return;const _0x3546ea=_0x347ffa['locale'],_0x361737=_0x347ffa['plugins']['get']('TrackChangesEditing');_0x361737['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x361737['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x361737['registerBlockAttribute']('headingRows'),_0x361737['registerBlockAttribute']('headingColumns'),_0x361737['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3546ea,'FORMAT_HEADER_ROW')),_0x361737['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3546ea,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xef582d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x495dec=this['editor']['plugins']['get']('TableUtils'),_0x33990a=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x5a031a({showActiveMarker:_0x1b81b8=!0x0,setDataAttribute:_0x3c5f4a=!0x0}={}){return(_0x228060,_0x21e1da,_0x39068c)=>{const {type:_0x4088fa,id:_0x398d22}=_0xef582d['_splitMarkerName'](_0x21e1da['markerName']),_0x47f652=_0xef582d['getSuggestion'](_0x398d22),_0x239b2b=_0x47f652['data'];if('formatBlock'!=_0x47f652['type']||!_0x239b2b||'setTableColumnHeader'!=_0x239b2b['commandName'])return;if(_0x21e1da['item'])return void _0x228060['stop']();if(!_0x39068c['consumable']['consume'](_0x21e1da['markerRange'],_0x228060['name']))return;const _0x315e81=_0x21e1da['markerRange']['start']['nodeAfter'],_0x1ad424=_0x21e1da['markerRange']['end']['nodeBefore'],_0x102bff=_0x315e81['parent']['parent'],{column:_0x4ef91d}=_0x495dec['getCellLocation'](_0x315e81),{column:_0x25e07e}=_0x495dec['getCellLocation'](_0x1ad424);for(let _0x2a7f61=_0x4ef91d;_0x2a7f61<=_0x25e07e;_0x2a7f61++){const _0x9cddc5=_0x495dec['createTableWalker'](_0x102bff,{'column':_0x2a7f61,'includeAllSlots':!0x1});for(const _0x2c31f2 of _0x9cddc5){const _0x1e7334=_0x2c31f2['cell'],_0x6671e9=_0x39068c['mapper']['toViewElement'](_0x1e7334);_0x39068c['writer']['addClass']('ck-suggestion-marker-'+_0x4088fa,_0x6671e9),_0x3c5f4a&&_0x39068c['writer']['setAttribute']('data-suggestion',_0x398d22,_0x6671e9),_0x39068c['mapper']['bindElementToMarker'](_0x6671e9,_0x21e1da['markerName']),_0x1b81b8&&(_0xef582d['activeMarkers']['includes'](_0x21e1da['markerName'])?_0x39068c['writer']['addClass']('ck-suggestion-marker--active',_0x6671e9):_0x39068c['writer']['removeClass']('ck-suggestion-marker--active',_0x6671e9));}}};}_0xef582d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x33990a),_0xef582d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x33990a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5a031a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x265c3b,_0x3f7a8a,_0x1dc79e)=>{_0x1dc79e['options']['showSuggestionHighlights']&&_0x5a031a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x265c3b,_0x3f7a8a,_0x1dc79e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x34f10f,_0x104773,_0x25935b)=>{const {type:_0x38e926,id:_0x2c3606}=_0xef582d['_splitMarkerName'](_0x104773['markerName']),_0x31fa54=_0xef582d['getSuggestion'](_0x2c3606),_0x3d5f4d=_0x31fa54['data'];if('formatBlock'!=_0x31fa54['type']||!_0x3d5f4d||'setTableColumnHeader'!=_0x3d5f4d['commandName'])return;const _0xb8345e=_0x25935b['mapper']['markerNameToElements'](_0x104773['markerName']);if(_0xb8345e){for(const _0x329506 of _0xb8345e)_0x25935b['writer']['removeClass']('ck-suggestion-marker-'+_0x38e926,_0x329506),_0x25935b['writer']['removeClass']('ck-suggestion-marker--active',_0x329506),_0x25935b['writer']['removeAttribute']('data-suggestion',_0x329506),_0x25935b['mapper']['unbindElementFromMarkerName'](_0x329506,_0x104773['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42df13=this['editor'],_0x5a090a=_0x42df13['locale'];function _0x278aec(_0x482710){return{'type':'format','content':o(_0x5a090a,'*Format:*\x20%0',_0x482710)};}_0x42df13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x394d8f=>{if('formatBlock'!=_0x394d8f['type'])return;const {data:_0x1f733e}=_0x394d8f;if(_0x1f733e){if('setTableRowHeader'==_0x1f733e['commandName']){const _0x201d4e=_0x1f733e['commandParams'][0x0]['forceValue'];return _0x278aec(o(_0x5a090a,_0x201d4e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1f733e['commandName']){const _0x2720a3=_0x1f733e['commandParams'][0x0]['forceValue'];return _0x278aec(o(_0x5a090a,_0x2720a3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x3b815e=>[_0x3b815e,null]));class It extends _0x2c20e0{static get['requires'](){return[jt];}['afterInit'](){const _0x6042e7=this['editor'];if(!_0x6042e7['plugins']['has']('TableClipboard'))return;const _0x120bb3=_0x6042e7['plugins']['get']('TrackChangesEditing'),_0x6adb3e=_0x6042e7['plugins']['get']('TableUtils'),_0x1ebc0c=_0x6042e7['plugins']['get'](jt),_0x5485c5=_0x6042e7['plugins']['get']('TableClipboard');_0x1ebc0c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x6042e7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x6042e7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3ae971=null;_0x6042e7['model']['on']('insertContent',(_0x180d0a,_0x5b92cd)=>{const [_0x21f866,_0x41a8c0]=_0x5b92cd,_0x3b918a=_0x5b92cd[_0x5b92cd['length']-0x1];_0x3b918a&&_0x3b918a['forceDefaultExecution']||_0x120bb3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x19cf82,_0x353bd5,_0x1770ec,_0x486338,_0x58a42f){if(_0x353bd5&&!_0x353bd5['is']('documentSelection'))return!0x1;const _0x5d3dff=_0x58a42f['getTableIfOnlyTableInContent'](_0x19cf82,_0x1770ec);if(!_0x5d3dff||!he(_0x5d3dff,void 0x0,_0x486338))return!0x1;const _0x56f282=_0x486338['getSelectionAffectedTableCells'](_0x1770ec['document']['selection']);if(!_0x56f282['length'])return!0x1;const _0x1b68cb=_0x56f282[0x0]['findAncestor']('table'),_0x4c1a7b=_0x486338['getRowIndexes'](_0x56f282),_0x51ebef=_0x486338['getColumnIndexes'](_0x56f282),_0x53009c={'startRow':_0x4c1a7b['first'],'endRow':_0x4c1a7b['last'],'startColumn':_0x51ebef['first'],'endColumn':_0x51ebef['last']};return 0x1==_0x56f282['length']&&(_0x53009c['endRow']+=_0x486338['getRows'](_0x5d3dff)-0x1,_0x53009c['endColumn']+=_0x486338['getColumns'](_0x5d3dff)-0x1),he(_0x1b68cb,_0x53009c,_0x486338);}(_0x21f866,_0x41a8c0,_0x6042e7['model'],_0x6adb3e,_0x5485c5)&&(_0x180d0a['stop'](),_0x3ae971={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x6042e7['model']['change'](()=>{_0x6042e7['model']['insertContent'](_0x5b92cd[0x0],_0x5b92cd[0x1],_0x5b92cd[0x2],{'forceDefaultExecution':!0x0});const _0x38296f=_0xe5f9d9(),{rowInsertionRanges:_0x9ade6d,columnInsertionRanges:_0x31c1bb,insertionRanges:_0x27b642,deletionRanges:_0x50e4c3,cells:_0x37e69f}=_0x3ae971;_0x9ade6d['length']&&_0x120bb3['markMultiRangeInsertion'](_0x9ade6d,'tablePasteRow',{'tablePasteChainId':_0x38296f}),_0x31c1bb['length']&&_0x120bb3['markMultiRangeInsertion'](_0x31c1bb,'tablePasteColumn',{'tablePasteChainId':_0x38296f}),_0x27b642['length']&&(_0x120bb3['markMultiRangeInsertion'](_0x27b642,'tablePaste',{'tablePasteChainId':_0x38296f,'skipNestingCheck':!0x0}),_0x27b642['forEach'](_0x5444f2=>_0x5444f2['detach']?.())),_0x50e4c3['length']&&(_0x120bb3['markMultiRangeDeletion'](_0x50e4c3,'tablePaste',{'tablePasteChainId':_0x38296f,'skipNestingCheck':!0x0}),_0x50e4c3['forEach'](_0x591a11=>_0x591a11['detach']?.()));const _0x907353=_0x120bb3['markMultiRangeBlockFormat'](_0x37e69f['map'](({element:_0x2a2a40})=>_0x2a2a40),{'formatGroupId':_0xe5f9d9()},[],'tablePasteCell',{'tablePasteChainId':_0x38296f});if(_0x907353){const _0x577c75=_0x907353['getMarkers'](),_0xe5d559=[];for(const {element:_0x5e81aa,attributes:_0x5a2227}of _0x37e69f){if(!_0x5a2227)continue;const _0x83620=_0x6042e7['model']['createRangeOn'](_0x5e81aa),_0x162185=_0x577c75['find'](_0x109abc=>_0x109abc['getRange']()['isEqual'](_0x83620));_0x162185&&_0xe5d559['push']([_0x162185['name'],_0x5a2227]);}_0xe5d559['length']&&_0x907353['setAttribute']('markerAttributes',Object['fromEntries'](_0xe5d559));}_0x3ae971=null;}));},{'priority':_0x452690['high']+0xa}),_0x6042e7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x33f5a8,_0x32919a)=>{const [_0x2b3dfd,_0x55ebae,,_0x2b9f2a]=_0x32919a;if(!_0x3ae971)return;_0x33f5a8['stop']();const _0x3782d1=_0x2b3dfd['cell'],_0x2f0520=_0x55ebae,_0x12b3aa=Pe(_0x3782d1),_0x44293f=Pe(_0x2f0520);_0x33f5a8['return']=_0x3782d1;let _0xb64655=null,_0x50cdf5=null;if(_0x44293f||_0x12b3aa){if(_0x12b3aa&&!_0x44293f){_0x2b9f2a['remove'](_0x3782d1['getChild'](0x0));for(const _0x59c648 of Array['from'](_0x2f0520['getChildren']()))_0x2b9f2a['insert'](_0x59c648,_0x3782d1,'end');const _0x2d6fa5=_0x3ae971['rowInsertionIndexes']['includes'](_0x2b3dfd['row']),_0x49f3f1=_0x3ae971['columnInsertionIndexes']['includes'](_0x2b3dfd['column']);_0x2d6fa5||_0x49f3f1||(_0xb64655=_0xef9d24['fromRange'](_0x2b9f2a['createRangeIn'](_0x3782d1)));}else _0x44293f&&!_0x12b3aa&&(_0x50cdf5=_0x2b9f2a['createRangeIn'](_0x3782d1));}else{const _0x4a9dc5=_0x2b9f2a['createElement']('tableCellSuggestion'),_0x154a8e=_0x2b9f2a['createElement']('tableCellSuggestion');_0x2b9f2a['wrap'](_0x2b9f2a['createRangeIn'](_0x3782d1),_0x154a8e),_0x2b9f2a['insert'](_0x4a9dc5,_0x3782d1,0x0);for(const _0x2c5a14 of Array['from'](_0x2f0520['getChildren']()))_0x2b9f2a['insert'](_0x2c5a14,_0x4a9dc5,'end');_0xb64655=_0xef9d24['fromRange'](_0x2b9f2a['createRangeOn'](_0x4a9dc5)),_0x50cdf5=_0xef9d24['fromRange'](_0x2b9f2a['createRangeOn'](_0x154a8e));}const _0x2bfa36=Array['from'](_0x2f0520['getAttributes']())['filter'](([_0x39ccd7])=>ge['includes'](_0x39ccd7));_0x3ae971['cells']['push']({'element':_0x3782d1,'attributes':_0x2bfa36['length']?Object['fromEntries'](_0x2bfa36):null}),_0xb64655&&_0x3ae971['insertionRanges']['push'](_0xb64655),_0x50cdf5&&_0x3ae971['deletionRanges']['push'](_0x50cdf5);},{'priority':'high'}),_0x6adb3e['on']('insertColumns',(_0x3115e9,_0x16e1a1)=>{const [_0x597b19,_0x49edf2={}]=_0x16e1a1;if(!_0x3ae971)return;const _0x136cb1=_0x49edf2['at']||0x0,_0x4f490e=_0x49edf2['columns']||0x1;_0x3ae971['columnInsertionIndexes']=new Array(_0x4f490e)['fill'](_0x136cb1)['map']((_0xc7f330,_0x190fe8)=>_0xc7f330+_0x190fe8);for(const {cell:_0x41baae}of _0x6adb3e['createTableWalker'](_0x597b19,{'startColumn':_0x136cb1,'endColumn':_0x136cb1+_0x4f490e-0x1}))_0x3ae971['columnInsertionRanges']['push'](_0x6042e7['model']['createRangeOn'](_0x41baae));},{'priority':'low'}),_0x6adb3e['on']('insertRows',(_0x59aa1f,_0xa45321)=>{const [_0x55952c,_0x1afad8={}]=_0xa45321;if(!_0x3ae971)return;const _0x417dd8=_0x1afad8['at']||0x0,_0x8e3598=_0x1afad8['rows']||0x1;_0x3ae971['rowInsertionIndexes']=new Array(_0x8e3598)['fill'](_0x417dd8)['map']((_0x35463e,_0x96403e)=>_0x35463e+_0x96403e);for(const {cell:_0x45cff1}of _0x6adb3e['createTableWalker'](_0x55952c,{'startRow':_0x417dd8,'endRow':_0x417dd8+_0x8e3598-0x1}))_0x3ae971['rowInsertionRanges']['push'](_0x6042e7['model']['createRangeOn'](_0x45cff1));},{'priority':'low'}),_0x120bb3['descriptionFactory']['registerDescriptionCallback'](_0x2d8e1c=>{if(_0x2d8e1c['subType']&&_0x2d8e1c['subType']['startsWith']('tablePaste'))return _0x2d8e1c['previous']?{}:{'type':'insertion','content':o(_0x6042e7['locale'],'*Replace\x20table\x20cells*')};});const _0x535813=()=>!0x1;for(const _0x5ed150 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x120bb3['_suggestionFactory']['registerCustomCallback']('insertion',_0x5ed150,'join',_0x535813),_0x120bb3['_suggestionFactory']['registerCustomCallback']('deletion',_0x5ed150,'join',_0x535813),_0x120bb3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ed150,'join',_0x535813);_0x120bb3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x535813),_0x120bb3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5543ed,_0x4680bb,_0x53c94b)=>{const _0x135ce6=_0x5543ed['map'](_0x3105bb=>_0x3105bb['getContainedElement']())['filter'](_0x487a3f=>_0x487a3f),_0x562d3d=new Map(_0x135ce6['map'](_0x336a19=>[_0x336a19,null]));if(_0x3ae971){for(const {element:_0x581e6b,attributes:_0x5f53b6}of _0x3ae971['cells'])_0x5f53b6&&_0x562d3d['set'](_0x581e6b,_0x5f53b6);}else{if(_0x53c94b&&_0x53c94b['markerAttributes'])for(const [_0x21c7ff,_0x1a6f4c]of Object['entries'](_0x53c94b['markerAttributes'])){const _0x17bc69=_0x6042e7['model']['markers']['get'](_0x21c7ff),_0x4ad2de=_0x17bc69?_0x17bc69['getRange']()['getContainedElement']():null;_0x4ad2de&&_0x562d3d['set'](_0x4ad2de,_0x1a6f4c);}}_0x6042e7['model']['change'](_0x54d0af=>{for(const [_0x494e20,_0x426fc1]of _0x562d3d)_0x54d0af['setAttributes']({...Ce,..._0x426fc1},_0x494e20);});});const _0x21e5ab=(_0x160cbd,_0x5406e4)=>{_0x120bb3['_suggestionFactory']['registerCustomCallback'](_0x160cbd,'tablePaste',_0x5406e4,(_0x4a5e04,_0x46699d,_0x3f3d83)=>{_0x6042e7['model']['change'](_0x5a6251=>{const _0x42523b=[];for(const _0x193299 of _0x4a5e04){const _0x4ea879=_0x193299['start']['nodeAfter'];_0x4ea879['is']('element','tableCellSuggestion')&&_0x42523b['push'](_0x4ea879);}_0x120bb3['_suggestionFactory']['getSuggestionCallback'](_0x160cbd,null,_0x5406e4)(_0x4a5e04,_0x46699d,_0x3f3d83);for(const _0x5afb49 of _0x42523b)'$graveyard'!=_0x5afb49['root']['rootName']&&_0x5a6251['unwrap'](_0x5afb49);});});};_0x21e5ab('insertion','accept'),_0x21e5ab('insertion','discard'),_0x21e5ab('deletion','accept'),_0x21e5ab('deletion','discard'),_0x120bb3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xfd82a=>{const _0x26db7c=_0xfd82a['map'](_0x4330e9=>_0x4330e9['getContainedElement']()),_0x32e194=_0x26db7c[0x0]['findAncestor']('table'),{minRow:_0x1d6104,maxRow:_0x55671b}=_0x1ebc0c['_getCoordsForCells'](_0x26db7c);_0x6adb3e['removeRows'](_0x32e194,{'at':_0x1d6104,'rows':_0x55671b-_0x1d6104+0x1});}),_0x120bb3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x395e6a=>{const _0x2562e9=_0x395e6a['map'](_0x1ee6ec=>_0x1ee6ec['getContainedElement']()),_0x41f692=_0x2562e9[0x0]['findAncestor']('table'),{minColumn:_0x140e77,maxColumn:_0xc65fef}=_0x1ebc0c['_getCoordsForCells'](_0x2562e9);_0x6adb3e['removeColumns'](_0x41f692,{'at':_0x140e77,'columns':_0xc65fef-_0x140e77+0x1});});const _0x537cd9=(_0x51f63a,_0x1f6504)=>{if(!_0x1f6504['subType']||!_0x1f6504['subType']['startsWith']('tablePaste'))return;const _0x24f662=_0x1f6504['attributes']['tablePasteChainId'],_0x1252e3=_0x120bb3['getSuggestions']()['filter'](_0x13db51=>_0x13db51['isInContent']&&_0x13db51['attributes']&&_0x13db51['attributes']['tablePasteChainId']==_0x24f662);_0x1252e3['length']&&_0x1f6504['getAllAdjacentSuggestions']()['length']!=_0x1252e3['length']&&_0x1252e3['reduce']((_0x3ec1a0,_0xef7c7c)=>(_0x3ec1a0['next']=_0xef7c7c,_0xef7c7c['previous']=_0x3ec1a0,_0xef7c7c));};function _0xffafc1(_0x4f713f,_0x183a71=!0x0){const {id:_0x49817d}=_0x120bb3['_splitMarkerName'](_0x4f713f['markerName']),_0x15b27d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3a589d=_0x120bb3['activeMarkers']['includes'](_0x4f713f['markerName']);return _0x3a589d&&_0x15b27d['push']('ck-suggestion-marker--active'),{'classes':_0x15b27d,'attributes':{'data-suggestion':_0x49817d},'priority':_0x3a589d&&_0x183a71?0xbc2:0xbb8};}_0x120bb3['on']('suggestionLoaded',_0x537cd9,{'priority':'high'}),_0x120bb3['on']('suggestionUnloaded',_0x537cd9,{'priority':'high'}),_0x6042e7['model']['document']['registerPostFixer'](()=>{let _0x5bac93=!0x1;const _0x52d882=Array['from'](_0x6042e7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22d97a,data:_0x214c6f}of _0x52d882){const {group:_0x58e8b8,type:_0x271b78,id:_0x3b436f}=_0x120bb3['_splitMarkerName'](_0x22d97a);if('suggestion'!=_0x58e8b8||'deletion'!=_0x271b78||_0x214c6f['oldRange'])continue;if(!_0x120bb3['hasSuggestion'](_0x3b436f))continue;const _0x301713=_0x120bb3['getSuggestion'](_0x3b436f)['getRanges'](),_0x28454f=_0x6042e7['plugins']['get']('Users')['me'];for(const _0xcedb5c of _0x120bb3['getSuggestions']()){if(!_0xcedb5c['isInContent']||_0xcedb5c['author']!=_0x28454f)continue;if('formatBlock'!=_0xcedb5c['type']||'tablePasteCell'!=_0xcedb5c['subType'])continue;if(_0xcedb5c['getRanges']()['every'](_0x3ebff1=>_0x301713['some'](_0xaf4345=>_0xaf4345['containsRange'](_0x3ebff1,!0x0)))){for(const _0x554022 of _0xcedb5c['getAllAdjacentSuggestions']())_0x554022['isInContent']&&(_0x554022['discard'](),_0x5bac93=!0x0);}}}return _0x5bac93;}),_0x6042e7['model']['document']['registerPostFixer'](_0x597991=>{const _0x1cd35a=_0x6042e7['commands']['get']('redo');if(!_0x1cd35a||!_0x1cd35a['_createdBatches']['has'](_0x597991['batch']))return!0x1;let _0x16432f=!0x1;const _0x439947=_0x6042e7['plugins']['get']('Users')['me'],_0x52e7ba=_0x6042e7['model']['document']['differ']['getChanges'](),_0x4a2ede=Array['from'](_0x6042e7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x25f317,data:_0x39d4cb})=>{const {group:_0x128e6e,subType:_0x308695,authorId:_0x3a6693}=_0x120bb3['_splitMarkerName'](_0x25f317);return'suggestion'==_0x128e6e&&'tablePaste'==_0x308695&&_0x3a6693==_0x439947['id']&&!_0x39d4cb['oldRange'];});for(const _0x16ecec of _0x52e7ba){if('insert'!=_0x16ecec['type']||'tableCellSuggestion'!=_0x16ecec['name']||0x1!=_0x16ecec['length'])continue;const _0x14bdfc=_0x597991['createRange'](_0x16ecec['position'],_0x16ecec['position']['getShiftedBy'](0x1));if(!_0x4a2ede['find'](({data:_0x3b391b})=>_0x3b391b['newRange']['isEqual'](_0x14bdfc))){for(const {name:_0x52a587,data:_0x9a9abc}of _0x4a2ede)if(_0x14bdfc['containsRange'](_0x9a9abc['newRange'])){_0x597991['updateMarker'](_0x52a587,{'range':_0x14bdfc}),_0x16432f=!0x0;break;}}}return _0x16432f;}),_0x6042e7['model']['document']['registerPostFixer'](_0x3cd70d=>{let _0x2e218f=!0x1;const _0x3859ef=_0x6042e7['plugins']['get']('Users')['me'],_0x395250=_0x120bb3['getSuggestions']()['filter'](_0x195178=>_0x195178['isInContent']&&_0x195178['author']==_0x3859ef),_0x139cd1=new Set(),_0x1e571a=new Set();for(const _0xff76cd of _0x395250)if('tablePaste'==_0xff76cd['subType'])for(const _0x4599c2 of _0xff76cd['getMarkers']()){const _0x26a024=_0x4599c2['getRange']()['getContainedElement']();if(_0x26a024){if(_0x26a024['is']('element','tableCellSuggestion')&&Pe(_0x26a024)){_0xff76cd['removeMarker'](_0x4599c2['name']),_0x139cd1['add'](_0x26a024),_0x2e218f=!0x0;const _0x45d2f3=_0x26a024['nextSibling'],_0x56a893=_0x26a024['previousSibling'],_0x50e316=_0x45d2f3&&_0x45d2f3['is']('element','tableCellSuggestion'),_0x293adf=_0x56a893&&_0x56a893['is']('element','tableCellSuggestion');_0x50e316&&!_0x139cd1['has'](_0x45d2f3)&&_0x1e571a['add'](_0x45d2f3),_0x293adf&&!_0x139cd1['has'](_0x56a893)&&_0x1e571a['add'](_0x56a893);}else _0x26a024['is']('element','paragraph')&&_0x26a024['isEmpty']&&(_0xff76cd['removeMarker'](_0x4599c2['name']),_0x2e218f=!0x0);}}else{if('tablePasteCell'==_0xff76cd['subType']){if(!_0xff76cd['attributes']||!_0xff76cd['attributes']['tablePasteChainId'])continue;const _0x25fb9e=_0xff76cd['attributes']['markerAttributes'];if(_0x25fb9e&&Object['keys'](_0x25fb9e)['length'])continue;const _0x231cb2=_0xff76cd['attributes']['tablePasteChainId'];let _0x318e42=!0x0,_0x428eb9=!0x0;for(const _0x55b03e of _0x395250)if(_0x55b03e['subType']&&_0x55b03e['subType']['startsWith']('tablePaste')){if(!_0x55b03e['attributes']['tablePasteChainId']){_0x428eb9=!0x1;break;}if(_0x55b03e['id']!=_0xff76cd['id']&&_0x55b03e['attributes']['tablePasteChainId']==_0x231cb2){_0x318e42=!0x1;break;}}_0x428eb9&&_0x318e42&&(_0xff76cd['removeMarkers'](),_0x2e218f=!0x0);}}for(const _0x3ce73b of _0x139cd1)_0x3cd70d['remove'](_0x3ce73b);for(const _0x102305 of _0x1e571a)_0x3cd70d['unwrap'](_0x102305);return _0x2e218f;}),_0x6042e7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x15fb00,_0xcdf0bb)=>_0xffafc1(_0x15fb00),'converterPriority':'high'}),_0x6042e7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x46aa0d,_0x55852c)=>_0x55852c['options']['showSuggestionHighlights']?_0xffafc1(_0x46aa0d,!0x1):null,'converterPriority':'high'});const _0x4a1082=_0x6042e7['editing']['view'];this['listenTo'](_0x4a1082['document'],'clipboardOutput',(_0x44c79b,_0x260192)=>{const _0x30ce4b=[];for(const _0x244d3d of _0x4a1082['createRangeIn'](_0x260192['content'])['getItems']())_0x244d3d['is']('element','suggestion-td')&&_0x30ce4b['push'](_0x244d3d);_0x4a1082['change'](_0x5878ee=>{for(const _0x16a9b9 of _0x30ce4b)_0x5878ee['move'](_0x5878ee['createRangeIn'](_0x16a9b9),_0x5878ee['createPositionBefore'](_0x16a9b9)),_0x5878ee['remove'](_0x16a9b9);});});}}function Pe(_0x41cfcc){if(_0x41cfcc['isEmpty'])return!0x0;const _0x3b026b=_0x41cfcc['getChild'](0x0);return _0x3b026b['is']('element','paragraph')&&_0x3b026b['isEmpty'];}function he(_0x2e35e3,_0x3ceac9={},_0x114eb9){for(const {isAnchor:_0x4aa0d4,cellHeight:_0x40883d,cellWidth:_0x199f1b}of _0x114eb9['createTableWalker'](_0x2e35e3,{'includeAllSlots':!0x0,..._0x3ceac9}))if(!_0x4aa0d4||0x1!=_0x40883d||0x1!=_0x199f1b)return!0x1;return!0x0;}class vt extends _0x2c20e0{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2059aa=this['editor']['plugins']['get']('TrackChangesEditing');_0x2059aa['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2059aa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2059aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2059aa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2059aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2059aa['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1642f5,_0x1868b4){const _0x1fa795=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b0534=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3bd400=_0x1868b4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x420d54=_0x5b0534['getColumnGroupElement'](_0x3bd400);let _0x351b83=_0x420d54?_0x5b0534['getTableColumnsWidths'](_0x420d54):null,_0xd4fc37=_0x3bd400['getAttribute']('tableWidth')||null;const _0x2cb2b2=_0x1868b4['tableWidth']||_0xd4fc37,_0x59d219=_0x1868b4['columnWidths']||_0x351b83,_0x1a063c=this['editor']['plugins']['get']('Users')['me'];for(const _0x358a99 of _0x1fa795['getSuggestions']()){const _0x1db3b1=_0x358a99['getContainedElement']();if('resizeTable'===_0x358a99['subType']&&_0x1db3b1===_0x3bd400){_0x358a99['author']!==_0x1a063c&&_0x358a99['discard']();const _0x508562=_0x358a99['data']['commandParams'];_0xd4fc37=_0x508562[0x0]['tableWidth'],_0x351b83=_0x508562[0x0]['columnWidths'];break;}}_0x1642f5({'table':_0x3bd400,'tableWidth':_0x2cb2b2,'columnWidths':_0x59d219}),_0x1fa795['markBlockFormat'](_0x3bd400,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xd4fc37,'columnWidths':_0x351b83}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4443b4){if('formatBlock'!=_0x4443b4['type']&&'formatInline'!=_0x4443b4['type'])return;const {data:_0x4eacb9}=_0x4443b4;if(_0x4eacb9&&'resizeTable'===_0x4eacb9['formatGroupId']){const _0x200728='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x200728)};}}}class Ct extends _0x2c20e0{['afterInit'](){const _0x522607=this['editor'];_0x522607['plugins']['has']('Template')&&_0x522607['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x2c20e0{['afterInit'](){const _0x562ebe=this['editor'];if(!_0x562ebe['commands']['get']('insertTableOfContents'))return;_0x562ebe['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x36ab75=_0x562ebe['plugins']['get']('TrackChangesEditing'),_0x513cb6=_0x562ebe['locale'];_0x36ab75['descriptionFactory']['registerElementLabel']('tableOfContents',_0x30444f=>o(_0x513cb6,'ELEMENT_TABLE_OF_CONTENTS',_0x30444f));}}class Dt extends _0x2c20e0{['afterInit'](){const _0x11a5ab=this['editor'];if(!_0x11a5ab['plugins']['has']('Title'))return;const _0x6f228a=_0x11a5ab['plugins']['get']('TrackChangesEditing');_0x6f228a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x11a5ab['locale'],'ELEMENT_TITLE')),_0x11a5ab['model']['document']['registerPostFixer'](_0x3acf77=>{let _0x2d4ca2=!0x1;const _0x2a2fa1=Array['from'](_0x11a5ab['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ae8e7,data:_0x4bade0}of _0x2a2fa1){const {group:_0x147747}=_0x6f228a['_splitMarkerName'](_0x1ae8e7);if('suggestion'!==_0x147747||!_0x4bade0['newRange'])continue;const _0x3f16c6=_0x4bade0['newRange'],_0x1e60a5=_0x3f16c6['end']['nodeBefore'];if(!_0x1e60a5||!_0x1e60a5['is']('element','title-content'))continue;if(!_0x3f16c6['start']['isTouching'](_0x3f16c6['end']))continue;const _0x164a16=_0x11a5ab['model']['schema']['getNearestSelectionRange'](_0x3f16c6['end'],'forward');if(_0x164a16&&_0x164a16['isCollapsed']){const _0x440df9=_0x3acf77['createRange'](_0x3f16c6['start'],_0x164a16['start']);_0x440df9['isEqual'](_0x3f16c6)||(_0x3acf77['updateMarker'](_0x1ae8e7,{'range':_0x440df9}),_0x2d4ca2=!0x0);}_0x2d4ca2||(_0x3acf77['removeMarker'](_0x1ae8e7),_0x2d4ca2=!0x0);}return _0x2d4ca2;});}}class Nt extends _0x2c20e0{['afterInit'](){const _0x5ed58b=this['editor'],_0x189e43=_0x5ed58b['plugins']['get']('TrackChangesEditing');_0x5ed58b['plugins']['has']('UndoEditing')&&(_0x189e43['enableCommand']('undo'),_0x189e43['enableCommand']('redo'));}}class Mt extends _0x2c20e0{static get['requires'](){return[jt];}['afterInit'](){const _0x3ba15e=this['editor'];if(!_0x3ba15e['plugins']['has']('TableCaptionEditing'))return;_0x3ba15e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x2c20e0{['tableProperties'];['tableCellProperties'];constructor(_0x2f0b2c){super(_0x2f0b2c),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 _0x341e1d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3c079f of this['tableProperties'])_0x341e1d['enableCommand'](_0x3c079f,(_0x133cfc,_0x4a895b)=>{const _0x320ea3=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3c079f,[_0x320ea3],this['tableProperties'],'tableProperties',_0x133cfc,_0x4a895b);});_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x341e1d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x9d9f64,_0x1d14ef)=>this['handleDiscardAction'](this['tableProperties'],_0x9d9f64,_0x1d14ef)),_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x10e7d9 of this['tableCellProperties'])_0x341e1d['enableCommand'](_0x10e7d9,(_0xdf16ff,_0xa84401)=>{const _0x132881=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x10e7d9,_0x132881,this['tableCellProperties'],'tableCellProperties',_0xdf16ff,_0xa84401);});_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x341e1d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x34ac49,_0x189b94)=>this['handleDiscardAction'](this['tableCellProperties'],_0x34ac49,_0x189b94)),_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x341e1d['descriptionFactory']['registerDescriptionCallback'](_0x579666=>this['handleSuggestionDescription'](_0x579666));}['_handlePropertyChange'](_0x4d6b44,_0x2a79c1,_0x53abd4,_0x54cec5,_0x512aed,_0x5b5cb9){const _0x5042c0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5b5cb9['batch'],()=>{for(const _0x41959f of _0x2a79c1){if(this['_getSuggestion'](_0x41959f,_0x54cec5))_0x512aed(_0x5b5cb9);else{const _0x238dfb={};for(const _0x3fc8cf of _0x53abd4){const _0x43ebe8=_0x41959f['getAttribute'](_0x3fc8cf);void 0x0!==_0x43ebe8&&(_0x238dfb[_0x3fc8cf]=_0x43ebe8);}_0x512aed(_0x5b5cb9),_0x5042c0['markBlockFormat'](_0x41959f,{'commandParams':[_0x238dfb]},[],_0x54cec5);}}});}['handleDiscardAction'](_0x17f28d,_0x133685,_0x3c963a){const _0x25774f=_0x133685[0x0]['start']['nodeAfter'],_0x2efd33=_0x3c963a['commandParams'][0x0];this['editor']['model']['change'](_0xec9dc8=>{for(const _0x8e7caf of _0x17f28d)void 0x0!==_0x2efd33[_0x8e7caf]?_0xec9dc8['setAttribute'](_0x8e7caf,_0x2efd33[_0x8e7caf],_0x25774f):_0xec9dc8['removeAttribute'](_0x8e7caf,_0x25774f);});}['handleSuggestionDescription'](_0x1e4ec8){if(_0x1e4ec8['data'])switch(_0x1e4ec8['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'](_0x252b57,_0xbfd33f){const _0x56717b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x236173 of _0x56717b['getSuggestions']({'skipNotAttached':!0x0})){const _0x216369=_0x236173['getContainedElement']();if(_0x236173['subType']===_0xbfd33f&&_0x216369===_0x252b57)return _0x236173;}return null;}}const m='$elementName';class p extends _0x2c20e0{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x18293d,_0x4cb717,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(_0x56e55e){function _0x426320(_0x3d6ef6){return _0x3d6ef6['map'](_0x707719=>String['fromCharCode'](_0x707719))['join']('');}super(_0x56e55e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x30d0b2,_0x1589a1,_0x153ad2,_0x69fcaa)=>{this['_model']['change'](()=>{for(const _0x1a06c2 of[..._0x69fcaa,..._0x153ad2])this['_model']['markers']['has'](_0x1a06c2)&&_0x56e55e['editing']['reconvertMarker'](_0x1a06c2);});}),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']=_0x56e55e['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(),_0x56e55e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x56e55e['config']['get']('trackChanges.trackFormatChanges'),_0x56e55e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x56e55e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x56e55e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x426320([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x426320([0x34,0x30,0x34,0x38,0x31,0x34,0x33,0x30]);}['init'](){const _0x36a405=this['editor'],_0x416d7f=(_0x4bfb55,_0x11186d)=>{if('attribute'!=_0x4bfb55)return'ck-suggestion-marker-'+_0x4bfb55;const _0x5dd15f=_0x11186d['split']('|')[0x0];return this['_isBlockAttribute'](_0x5dd15f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x36a405['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5b0ab2=>{const {id:_0x473f2b,type:_0x1209cd,subType:_0x2292cf}=this['_splitMarkerName'](_0x5b0ab2['markerName']),_0x3ff570=['ck-suggestion-marker',_0x416d7f(_0x1209cd,_0x2292cf)];let _0x2041f1=0xbb8;return this['activeMarkers']['includes'](_0x5b0ab2['markerName'])&&(_0x3ff570['push']('ck-suggestion-marker--active'),_0x2041f1=0xbc2),'deletion'==_0x1209cd&&(_0x2041f1+=0x5),{'classes':_0x3ff570,'attributes':{'data-suggestion':_0x473f2b},'priority':_0x2041f1};}}),_0x36a405['conversion']['for']('dataDowncast')['add'](_0xfda3d6=>{_0xfda3d6['on']('addMarker:suggestion',(_0x3512c0,_0x24fb9e,_0x537a5e)=>{if(!_0x537a5e['options']['showSuggestionHighlights'])return;const _0x19f22a=_0x24fb9e['item'];if(!_0x19f22a)return;const _0x1dd0d3=_0x537a5e['mapper']['toViewElement'](_0x19f22a);_0x36a405['model']['schema']['isObject'](_0x19f22a)&&_0x1dd0d3&&!_0x1dd0d3['getCustomProperty']('widget')&&_0x1dd0d3['is']('containerElement')&&_0x375e50(_0x1dd0d3,_0x537a5e['writer']);},{'priority':'high'});}),_0x36a405['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x421083,_0x538ae0)=>{if(!_0x538ae0['options']['showSuggestionHighlights'])return null;const {type:_0xdb7bfc,subType:_0xe549ad}=this['_splitMarkerName'](_0x421083['markerName']);return{'classes':['ck-suggestion-marker',_0x416d7f(_0xdb7bfc,_0xe549ad)],'priority':0xbb8};}});const _0x3e7dab=({showActiveMarkers:_0x47dce4=!0x0,isAttributeSuggestion:_0x3780f5=!0x1}={})=>(_0x168273,_0x3a4004,_0x593682)=>{if(!_0x3a4004['item'])return;const {id:_0x41b696}=this['_splitMarkerName'](_0x3a4004['markerName']);if(_0x3780f5){const _0x38b25c=this['_suggestions']['get'](_0x41b696),_0x46029f=this['_getAttributeKey'](_0x38b25c);if(!this['_isBlockAttribute'](_0x46029f))return;}if(_0x3a4004['item']['is']('selection'))return void _0x593682['consumable']['consume'](_0x3a4004['item'],_0x168273['name']);const _0x657b8f=_0x593682['mapper']['toViewElement'](_0x3a4004['item']);if(_0x3a4004['item']['is']('element')&&_0x36a405['model']['schema']['isBlock'](_0x3a4004['item'])&&!_0x657b8f['getCustomProperty']('addHighlight')){_0x593682['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x657b8f),_0x593682['writer']['setAttribute']('data-suggestion',_0x41b696,_0x657b8f),_0x593682['mapper']['bindElementToMarker'](_0x657b8f,_0x3a4004['markerName']),_0x47dce4&&(this['activeMarkers']['includes'](_0x3a4004['markerName'])?_0x593682['writer']['addClass']('ck-suggestion-marker--active',_0x657b8f):_0x593682['writer']['removeClass']('ck-suggestion-marker--active',_0x657b8f));for(const _0x162aa2 of _0x36a405['model']['createRangeIn'](_0x3a4004['item'])['getItems']())_0x593682['consumable']['consume'](_0x162aa2,_0x168273['name']);_0x593682['consumable']['consume'](_0x3a4004['item'],_0x168273['name']);}};_0x36a405['conversion']['for']('dataDowncast')['add'](_0x4b7643=>{_0x4b7643['on']('addMarker:suggestion:formatBlock',(_0x525f7d,_0x1d0b4e,_0x43b575)=>{_0x43b575['options']['showSuggestionHighlights']&&_0x3e7dab({'showActiveMarkers':!0x1})(_0x525f7d,_0x1d0b4e,_0x43b575);},{'priority':'highest'});}),_0x36a405['conversion']['for']('dataDowncast')['add'](_0xc42964=>{_0xc42964['on']('addMarker:suggestion:attribute',(_0x5808b8,_0x5f5144,_0x491f96)=>{_0x491f96['options']['showSuggestionHighlights']&&_0x3e7dab({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5808b8,_0x5f5144,_0x491f96);},{'priority':'highest'});}),_0x36a405['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2f6960,_0x286e0c)=>_0x286e0c['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2f6960['substr'](0xb)}}),_0x36a405['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x588cdf,{writer:_0x3f040e})=>{let _0x73cbc2='suggestion:'+_0x588cdf['getAttribute']('suggestion-type')+':'+_0x588cdf['getAttribute']('id');return _0x588cdf['getAttribute']('marker-count')&&(_0x73cbc2+=':'+_0x588cdf['getAttribute']('marker-count')),_0x3f040e['createElement']('$marker',{'data-name':_0x73cbc2});}}),_0x36a405['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x36a405['conversion']['for']('editingDowncast')['add'](_0x1b5a2c=>{_0x1b5a2c['on']('addMarker:suggestion:formatBlock',_0x3e7dab(),{'priority':'high'});}),_0x36a405['conversion']['for']('editingDowncast')['add'](_0x4d4f03=>{_0x4d4f03['on']('addMarker:suggestion:attribute',_0x3e7dab({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x36a405['conversion']['for']('editingDowncast')['add'](_0x529aed=>{_0x529aed['on']('removeMarker:suggestion:formatBlock',(_0x384c15,_0x47be2d,_0x5b7ea7)=>{const _0x23d45f=_0x5b7ea7['mapper']['markerNameToElements'](_0x47be2d['markerName']);if(_0x23d45f){for(const _0x5c8095 of _0x23d45f)_0x5c8095['getCustomProperty']('addHighlight')||(_0x5b7ea7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5c8095),_0x5b7ea7['writer']['removeAttribute']('data-suggestion',_0x5c8095),_0x5b7ea7['mapper']['unbindElementFromMarkerName'](_0x5c8095,_0x47be2d['markerName']));}},{'priority':'high'});}),_0x36a405['conversion']['for']('editingDowncast')['add'](_0x44cd9e=>{_0x44cd9e['on']('removeMarker:suggestion:attribute',(_0x26d0b7,_0x475c5e,_0x117099)=>{const _0x1887d4=_0x117099['mapper']['markerNameToElements'](_0x475c5e['markerName']);if(!_0x1887d4)return;const {id:_0xaa5d58}=this['_splitMarkerName'](_0x475c5e['markerName']),_0x4e0b6d=this['_suggestions']['get'](_0xaa5d58),_0x823e9a=this['_getAttributeKey'](_0x4e0b6d);if(this['_isBlockAttribute'](_0x823e9a)){for(const _0x477f45 of _0x1887d4)_0x477f45['getCustomProperty']('addHighlight')||(_0x117099['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x477f45),_0x117099['writer']['removeAttribute']('data-suggestion',_0x477f45),_0x117099['mapper']['unbindElementFromMarkerName'](_0x477f45,_0x475c5e['markerName']));}},{'priority':'high'});}),_0x36a405['model']['document']['registerPostFixer'](_0x9e7b91=>{let _0x2fcbc3=!0x1;const _0x13b512=Array['from'](_0x36a405['model']['document']['differ']['getChangedMarkers']()),_0x23c79a=new Set();for(const {name:_0x241408,data:_0x52c43a}of _0x13b512){const {group:_0x8c492d,type:_0x33d614,subType:_0x13c038,id:_0x3de30d}=this['_splitMarkerName'](_0x241408);if('suggestion'!==_0x8c492d)continue;const _0x5d39fe=this['_suggestions']['get'](_0x3de30d);if(null!=_0x52c43a['newRange']){'formatInline'==_0x33d614&&(_0x2fcbc3=_0x2fcbc3||Et(_0x52c43a['newRange'],_0x241408,_0x9e7b91,_0x36a405['model']['schema']));const _0x3843f6='attribute'==_0x33d614&&this['_isBlockAttribute'](_0x13c038['split']('|')[0x0]);if(_0x52c43a['newRange']['isCollapsed']||'$graveyard'==_0x52c43a['newRange']['root']['rootName']||'formatBlock'==_0x33d614&&!Ut(_0x52c43a['newRange'])||_0x3843f6&&!Ut(_0x52c43a['newRange'])||'deletion'==_0x33d614&&!(!Tt(_0x2c8647=_0x52c43a['newRange'])&&!function(_0x5c7c1c){return _0x5c7c1c['start']['parent']==_0x5c7c1c['end']['nodeBefore']&&_0x5c7c1c['start']['isAtEnd'];}(_0x2c8647)))_0x9e7b91['removeMarker'](_0x241408),_0x2fcbc3=!0x0;else{if(!_0x5d39fe||!_0x5d39fe['isInContent'])continue;_0x23c79a['add'](_0x5d39fe);}}}var _0x2c8647;return _0x23c79a['size']>0x0&&(_0x2fcbc3=!!this['_joinWithAdjacentSuggestions'](_0x23c79a)||_0x2fcbc3),_0x2fcbc3;}),_0x36a405['model']['document']['registerPostFixer'](_0x5d60ef=>{let _0x3036a3=!0x1;for(const _0x1abe07 of _0x36a405['model']['document']['differ']['getChanges']())if('insert'==_0x1abe07['type'])for(const _0x492a9f of this['_suggestions']['values']()){if(_0x492a9f['isMultiRange']||!_0x492a9f['isInContent'])continue;const _0x165614='formatBlock'==_0x492a9f['type'],_0x1a9ad9=this['_getAttributeKey'](_0x492a9f),_0x336253=_0x1a9ad9&&this['_isBlockAttribute'](_0x1a9ad9);if(!_0x165614&&!_0x336253)continue;const _0xb4f157=_0x492a9f['getFirstRange']();if(_0xb4f157['start']['parent']!=_0xb4f157['end']['parent']&&!_0xb4f157['end']['isAtEnd']){const _0x49a8c0=_0x36a405['model']['createPositionAt'](_0xb4f157['start']['nodeAfter'],'end'),_0x8806ce=_0x36a405['model']['createRange'](_0xb4f157['start'],_0x49a8c0);_0x5d60ef['updateMarker'](_0x492a9f['getFirstMarker'](),{'range':_0x8806ce}),_0x3036a3=!0x0;}}return _0x3036a3;}),_0x36a405['model']['document']['registerPostFixer'](_0x4a1f68=>this['_processAttributeChanges'](_0x4a1f68)),_0x36a405['model']['document']['registerPostFixer'](_0x4f146e=>!_0x4f146e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4f146e)),_0x36a405['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x36a405['model']['document']['on']('change:data',(_0x32c5e1,_0xbca683)=>{if(!_0xbca683['isLocal']||_0xbca683['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4ac893=_0x36a405['model']['document']['differ']['getChanges']();if(0x0==_0x4ac893['length'])return;const _0x147891=[],_0x16b3b0=_0x4ac893['filter'](_0x1e9b54=>'attribute'==_0x1e9b54['type']),_0x11eb39=_0x4ac893['filter'](_0x325e29=>'insert'==_0x325e29['type']&&'$text'!=_0x325e29['name']);for(const _0x1d4a82 of _0x16b3b0)this['_isRegisteredAttribute'](_0x1d4a82['attributeKey'])&&_0x147891['push']({'key':_0x1d4a82['attributeKey'],'newValue':_0x1d4a82['attributeNewValue'],'oldValue':_0x1d4a82['attributeOldValue'],'range':Ot(_0x1d4a82['range'],_0x36a405['model'])});for(const _0x389dac of _0x11eb39){if('rename'!=_0x389dac['action']&&'refresh'!=_0x389dac['action'])continue;const _0x6823d4=Gt(_0x389dac['position']['nodeAfter'],_0x36a405['model']),_0x22b53f=_0x389dac['before'];'rename'==_0x389dac['action']&&_0x147891['push']({'key':m,'newValue':_0x389dac['name'],'oldValue':_0x22b53f['name'],'range':_0x6823d4});for(const [_0x5e3a1d,_0x238b8a]of _0x22b53f['attributes']){if(!this['_isRegisteredAttribute'](_0x5e3a1d))continue;const _0xbb911a=_0x389dac['attributes']['get'](_0x5e3a1d);_0x238b8a!==_0xbb911a&&_0x147891['push']({'key':_0x5e3a1d,'newValue':_0xbb911a,'oldValue':_0x238b8a,'range':_0x6823d4});}for(const [_0x189ed3,_0xae35c3]of _0x389dac['attributes'])this['_isRegisteredAttribute'](_0x189ed3)&&(_0x22b53f['attributes']['has'](_0x189ed3)||_0x147891['push']({'key':_0x189ed3,'newValue':_0xae35c3,'oldValue':null,'range':_0x6823d4}));}0x0!=_0x147891['length']&&_0x36a405['model']['enqueueChange'](_0xbca683,_0x5210ff=>{const _0x3a28ab=_0xe5f9d9();for(const {range:_0x25c8d9,key:_0x32a2cd,oldValue:_0xc43413,newValue:_0x26c642}of _0x147891)this['markAttributeChange'](_0x25c8d9,_0x32a2cd,_0xc43413,_0x26c642,{'groupId':_0x3a28ab});this['_reduceExistingSuggestions'](_0x5210ff,_0x147891);});},{'priority':'lowest'}),_0x36a405['model']['markers']['on']('update:suggestion',(_0x33d89d,_0x58ebfc,_0x3e0024)=>{if(null==_0x3e0024){const {id:_0x2392a5}=this['_splitMarkerName'](_0x58ebfc['name']),_0x2289c6=this['_suggestions']['get'](_0x2392a5);_0x2289c6&&_0x2289c6['addMarkerName'](_0x58ebfc['name']);}}),_0x36a405['model']['document']['on']('change:data',()=>{const _0xf89928=Array['from'](_0x36a405['model']['document']['differ']['getChangedMarkers']())['filter'](_0xd4c2dc=>'suggestion'===this['_splitMarkerName'](_0xd4c2dc['name'])['group']);if(0x0===_0xf89928['length'])return;_0xf89928['sort']((_0x9fc41e,_0x1aae6d)=>{const _0x2d5624=_0x9fc41e['data']['oldRange'],_0x103f43=_0x1aae6d['data']['oldRange'];return null===_0x2d5624&&null===_0x103f43?0x0:null===_0x2d5624&&null!==_0x103f43?-0x1:null!==_0x2d5624&&null===_0x103f43?0x1:_0x2d5624['start']['isBefore'](_0x103f43['start'])?-0x1:0x1;});const _0x3d08f7=new Set(),_0x313f7b=new Set();for(const {name:_0x11056f,data:_0xf63509}of _0xf89928){const {id:_0x4f9169}=this['_splitMarkerName'](_0x11056f);if(null===_0xf63509['oldRange']){const _0x23341d=this['_handleNewSuggestionMarker'](_0x11056f);_0x313f7b['add'](_0x23341d);}else{const _0x4a94ed=this['_suggestions']['get'](_0x4f9169);null!==_0xf63509['newRange']||_0x4a94ed['isInContent']?(_0x3d08f7['add'](_0x4a94ed['head']),_0x313f7b['add'](_0x4a94ed)):this['_removeSuggestion'](_0x4a94ed);}}_0x313f7b['size']>0x0&&this['_refreshSuggestionsChain'](_0x313f7b);for(const _0x1c1312 of _0x3d08f7)this['fire']('suggestionChanged',_0x1c1312);}),_0x36a405['model']['on']('applyOperation',(_0x56925a,_0x2377c8)=>{const _0xe3a7ce=_0x2377c8[0x0];if(!this['_suggestions']['size'])return;if(!_0xe3a7ce['isDocumentOperation'])return;if(_0xe3a7ce['batch']['isUndo']||!_0xe3a7ce['batch']['isLocal'])return;let _0x593982,_0x460dbb;switch(_0xe3a7ce['type']){case'insert':_0x593982=_0x36a405['model']['createPositionAt'](_0xe3a7ce['position']),_0x460dbb=_0x593982['getShiftedBy'](_0xe3a7ce['howMany']);break;case'split':_0x593982=_0x36a405['model']['createPositionAt'](_0xe3a7ce['splitPosition']),_0x460dbb=_0x36a405['model']['createPositionAt'](_0xe3a7ce['moveTargetPosition']);break;case'move':_0x593982=_0x36a405['model']['createPositionAt'](_0xe3a7ce['targetPosition']),_0x460dbb=_0x593982['getShiftedBy'](_0xe3a7ce['howMany']);break;default:return;}const _0x57a58f=_0x36a405['model']['createRange'](_0x593982,_0x460dbb);_0x36a405['model']['change'](()=>{for(const {suggestion:_0x2b5b4b,meta:_0x53b8fd}of this['_findSuggestions'](_0x57a58f)){if(_0x2b5b4b['isMultiRange'])continue;if('formatInline'==_0x2b5b4b['type'])continue;const _0x20d584=this['_getAttributeKey'](_0x2b5b4b);if(_0x20d584&&this['_isBlockAttribute'](_0x20d584)&&'split'!=_0xe3a7ce['type'])continue;const _0x3abcd4=_0x2b5b4b['data']&&_0x2b5b4b['data']['multipleBlocks'];('formatBlock'!=_0x2b5b4b['type']||'split'==_0xe3a7ce['type']&&!_0x3abcd4)&&(_0x53b8fd['containsRangeInObject']||'insertion'==_0x2b5b4b['type']&&_0x53b8fd['isOwn']||_0x2b5b4b['getFirstRange']()['containsRange'](_0x57a58f)&&this['_breakSuggestionMarker'](_0x2b5b4b,_0x593982,_0x460dbb));}});},{'priority':'lowest'}),_0x36a405['model']['on']('deleteContent',(_0x5ddc7f,_0x55a098)=>{const _0x46bb3f=_0x55a098[0x0],_0x3883c2=_0x55a098[0x1];if(_0x3883c2&&_0x3883c2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x46bb3f['isCollapsed'])return;const _0x5895e5=_0x36a405['model']['schema'],{start:_0x27c0b8,end:_0x525c09}=_0x46bb3f['getFirstRange'](),_0x5f03b2=_0x27c0b8['nodeAfter']&&_0x5895e5['isLimit'](_0x27c0b8['nodeAfter'])?null:_0x5895e5['getNearestSelectionRange'](_0x27c0b8,'forward'),_0x175742=_0x525c09['nodeBefore']&&_0x5895e5['isLimit'](_0x525c09['nodeBefore'])?null:_0x5895e5['getNearestSelectionRange'](_0x525c09,'backward'),_0x3d0519=_0x36a405['model']['createRange'](_0x5f03b2?_0x5f03b2['start']:_0x27c0b8,_0x175742?_0x175742['end']:_0x525c09);_0x36a405['model']['change'](_0x551465=>{this['markDeletion'](_0x3d0519);const _0x239a2d=_0x36a405['model']['schema']['getNearestSelectionRange'](_0x3d0519['start']);_0x46bb3f['is']('documentSelection')?_0x551465['setSelection'](_0x239a2d):_0x46bb3f['setTo'](_0x239a2d);}),_0x5ddc7f['stop']();},{'priority':_0x452690['normal']+0xa}),_0x36a405['model']['on']('insertContent',(_0x1a3c47,_0x16ced4)=>{const _0x3933a2=_0x16ced4[_0x16ced4['length']-0x1];_0x3933a2&&_0x3933a2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x36a405['model']['change'](()=>{let _0x2d35cc=_0x36a405['model']['insertContent'](_0x16ced4[0x0],_0x16ced4[0x1],_0x16ced4[0x2],{'forceDefaultExecution':!0x0});if(!_0x2d35cc)return;_0x1a3c47['return']=_0x2d35cc['clone']();const _0x3cbe33=_0x2d35cc['end']['nodeBefore'],_0x8cb556=_0x36a405['model']['schema'];_0x3cbe33&&_0x8cb556['isBlock'](_0x3cbe33)&&!_0x8cb556['isObject'](_0x3cbe33)&&(_0x2d35cc=_0x36a405['model']['createRange'](_0x2d35cc['start'],_0x36a405['model']['createPositionAt'](_0x3cbe33,'end'))),this['markInsertion'](_0x2d35cc);}),_0x1a3c47['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x43f28a=new $(_0x36a405,this['_suggestions']);_0x36a405['commands']['add']('acceptSuggestion',_0x43f28a),this['enableCommand']('acceptSuggestion');const _0x56779e=new B(_0x36a405,this['_suggestions']);_0x36a405['commands']['add']('discardSuggestion',_0x56779e),this['enableCommand']('discardSuggestion'),_0x36a405['commands']['add']('acceptAllSuggestions',new x(_0x36a405,_0x43f28a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x36a405['commands']['add']('discardAllSuggestions',new x(_0x36a405,_0x56779e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x36a405['commands']['add']('acceptSelectedSuggestions',new R(_0x36a405,_0x43f28a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x36a405['commands']['add']('discardSelectedSuggestions',new R(_0x36a405,_0x56779e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5b038d=_0x36a405['plugins']['get']('CommentsRepository');this['listenTo'](_0x5b038d,'addComment',(_0x17ba96,{threadId:_0x26467e})=>{const _0x3cc4b8=this['_suggestions']['get'](_0x26467e);_0x3cc4b8&&_0x3cc4b8['commentThread']&&0x1===_0x3cc4b8['commentThread']['length']&&this['_updateSuggestionData'](_0x26467e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5b038d,'removeComment',(_0x4bb99e,{threadId:_0x4adcae})=>{const _0x534be0=this['_suggestions']['get'](_0x4adcae);_0x534be0&&_0x534be0['commentThread']&&!_0x534be0['commentThread']['length']&&this['_updateSuggestionData'](_0x4adcae,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x332b14){if(this['_adapter'])throw new _0x194952('track-changes-adapter-already-set',this);this['_adapter']=_0x332b14;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5e07c0=!0x1,toJSON:_0x24fbc1=!0x1}={}){const _0xf68207=[];for(const _0x262f99 of this['_suggestions']['values']())_0x5e07c0&&!_0x262f99['isInContent']||_0xf68207['push'](_0x262f99);return _0x24fbc1?_0xf68207['map'](_0x60443c=>_0x60443c['toJSON']()):_0xf68207;}['getSuggestion'](_0x17bd1e){const _0x4cb615=this['_suggestions']['get'](_0x17bd1e);if(!_0x4cb615)throw new _0x194952('track-changes-suggestion-not-found',this);return _0x4cb615;}['hasSuggestion'](_0x1cd005){return this['_suggestions']['has'](_0x1cd005);}['addSuggestionData'](_0x310b1f){const {authorId:_0x4bd7c9,id:_0x51e83c,attributes:_0x6dc49d}=_0x310b1f,[_0x37e57d,_0x505142]=_0x310b1f['type']['split'](':'),_0x3d3d8d=this['_suggestions']['get'](_0x51e83c)||this['_createSuggestion'](_0x37e57d,_0x505142,_0x51e83c,_0x4bd7c9,_0x6dc49d);if(this['_addThreadToSuggestion'](_0x3d3d8d),this['_checkSuggestionCorrectness'](_0x3d3d8d,_0x37e57d,_0x505142||null,_0x4bd7c9),_0x3d3d8d['createdAt']=_0x310b1f['createdAt'],_0x3d3d8d['_isDataLoaded']=!0x0,_0x6dc49d&&_0x6dc49d['@external']){const _0x1ac97d=_0x6dc49d['@external'],_0x4bcba9=this['_getExternalAuthor'](_0x1ac97d['authorName']);_0x3d3d8d['authoredAt']=_0x1ac97d['createdAt'],_0x3d3d8d['author']=_0x4bcba9,_0x3d3d8d['isExternal']=!0x0;}else _0x3d3d8d['authoredAt']=_0x310b1f['createdAt'];switch(_0x310b1f['data']&&(_0x3d3d8d['data']=_0x310b1f['data']),_0x310b1f['attributes']&&(_0x3d3d8d['attributes']=_0x310b1f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3d3d8d['_saved']=!0x0),this['_suggestionState']['get'](_0x3d3d8d)){case'notReady':this['_suggestionState']['set'](_0x3d3d8d,'dataReady');break;case'markerReady':_0x3d3d8d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3d3d8d])),this['_refreshSuggestionsChain'](new Set([_0x3d3d8d])),this['_suggestionState']['set'](_0x3d3d8d,'ready'),this['fire']('suggestionLoaded',_0x3d3d8d)):this['_suggestionState']['set'](_0x3d3d8d,'removed');}return _0x3d3d8d;}['acceptSuggestion'](_0x5c3df3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x52eb36 of _0x5c3df3['getAllAdjacentSuggestions']())_0x52eb36['accept']();});});}['discardSuggestion'](_0x1b5c5e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x256201 of _0x1b5c5e['getAllAdjacentSuggestions']())_0x256201['discard']();});});}['enableCommand'](_0x153749,_0x550da0){const _0x11b9d5=this['editor']['commands']['get'](_0x153749);if(!_0x11b9d5)throw new _0x194952('track-changes-command-not-found',this,{'commandName':_0x153749});if(this['_enabledCommands']['has'](_0x11b9d5))throw new _0x194952('track-changes-enable-command-twice',this,{'commandName':_0x153749});this['_enabledCommands']['add'](_0x11b9d5),_0x550da0&&_0x11b9d5['on']('execute',(_0x41c80a,_0xc727cb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xc727cb['length']>0x0&&_0xc727cb[_0xc727cb['length']-0x1]&&_0xc727cb[_0xc727cb['length']-0x1]['forceDefaultExecution']?_0xc727cb['pop']():(_0x41c80a['return']=_0x550da0((..._0x1683b5)=>_0x11b9d5['execute'](..._0x1683b5,{'forceDefaultExecution':!0x0}),..._0xc727cb),_0x41c80a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x25ee34){let _0x4dd56e,_0x58c6d2;const _0x22cad3=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4dd56e=_0x25ee34();}catch(_0x282c7e){_0x58c6d2=_0x282c7e;}return _0x22cad3||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x58c6d2&&_0x194952['rethrowUnexpectedError'](_0x58c6d2,this),_0x4dd56e;}['markInsertion'](_0x1fd38a,_0x1346f4=null,_0x1086b0={}){if(_0x1fd38a['isCollapsed'])return null;const _0x4412cf=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x556204,meta:_0x12cf1e}of this['_findSuggestions'](_0x1fd38a,'insertion'))if(_0x12cf1e['isOwn']){if(!_0x12cf1e['isNextTo']){if(_0x12cf1e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x556204,_0x1086b0))continue;return _0x556204;}if(Lt(_0x556204,_0x1086b0))return _0x556204;this['_breakSuggestionMarker'](_0x556204,_0x1fd38a['start'],_0x1fd38a['end']);break;}if(_0x1346f4==_0x556204['subType']&&Lt(_0x556204,_0x1086b0)){const _0x56c1de=_0x556204['getFirstRange']();return _0x56c1de['start']['isEqual'](_0x1fd38a['end'])?this['_setSuggestionRange'](_0x556204,this['_model']['createRange'](_0x1fd38a['start'],_0x56c1de['end'])):this['_setSuggestionRange'](_0x556204,this['_model']['createRange'](_0x56c1de['start'],_0x1fd38a['end'])),_0x556204;}}const _0x57de84=_0xe5f9d9(),_0x50f2a6=_0x4412cf['id'],_0x3b2e8e=_0x1346f4?'insertion:'+_0x1346f4:'insertion',_0x41912a=this['_setSuggestionData']({'id':_0x57de84,'type':_0x3b2e8e,'createdAt':new Date(),'authorId':_0x50f2a6,'attributes':_0x1086b0});return this['_addSuggestionMarker'](_0x3b2e8e,_0x57de84,_0x50f2a6,_0x1fd38a),_0x41912a;}['markMultiRangeInsertion'](_0x2bc215,_0x1651cf='multi',_0x5332d4={}){const _0x5557ac=this['editor']['plugins']['get']('Users')['me'],_0x37b077=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1651cf,'join');for(const _0x3f3e7e of this['getSuggestions']())if(_0x3f3e7e['author']['id']==_0x5557ac['id']&&'insertion'==_0x3f3e7e['type']&&_0x3f3e7e['subType']==_0x1651cf&&Lt(_0x3f3e7e,_0x5332d4)&&(_0x37b077(_0x3f3e7e['getRanges'](),_0x2bc215)||_0x37b077(_0x2bc215,_0x3f3e7e['getRanges']()))){for(const _0x1f3f86 of _0x2bc215)_0x3f3e7e['addRange'](_0x1f3f86);return _0x3f3e7e;}for(const {suggestion:_0x6ed798,meta:_0x3d1b15}of this['_findSuggestions'](_0x2bc215,'insertion')){if(!_0x3d1b15['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3d1b15['containsRangeInObject'])continue;if(!Lt(_0x6ed798,_0x5332d4))continue;let _0x4c4289=!0x0;for(const _0x37fe6e of _0x6ed798['getRanges']())for(const _0x33da3d of _0x2bc215)if(!_0x37fe6e['containsRange'](_0x33da3d)){_0x4c4289=!0x1;break;}if(_0x4c4289)return _0x6ed798;}const _0x89f620=_0xe5f9d9(),_0x1952c3=_0x5557ac['id'],_0x268d7d='insertion:'+_0x1651cf,_0x410d39=this['_setSuggestionData']({'id':_0x89f620,'type':_0x268d7d,'createdAt':new Date(),'authorId':_0x1952c3,'attributes':_0x5332d4});for(const _0x1405bb of _0x2bc215)this['_addSuggestionMarker'](_0x268d7d,_0x89f620,_0x1952c3,_0x1405bb,u['getMultiRangeId']());return _0x410d39;}['markInlineFormat'](_0x5b96d6,_0x3b1e59,_0x3665cc=null,_0xf3cd3={}){if(_0x3665cc=_0x3665cc||Vt(_0x3b1e59),_0x5b96d6['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x901c2d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3665cc,'accept');return this['forceDefaultExecution'](()=>_0x901c2d([_0x5b96d6],_0x3b1e59,_0xf3cd3)),null;}const _0x243400=this['editor']['plugins']['get']('Users')['me'],_0x11c6ba=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x23b1af,meta:_0xaa78e7}of this['_findSuggestions'](_0x5b96d6,'insertion'))_0xaa78e7['isOwn']&&!_0xaa78e7['isInsideObject']&&_0x11c6ba['push'](..._0x23b1af['getRanges']());}const _0x4d6c7b=function(_0x3d8bf1,_0x734282){const _0x1a926d=[];for(const _0xd54c1 of _0x734282){const _0x5a188c=_0x3d8bf1['getIntersection'](_0xd54c1);_0x5a188c&&_0x1a926d['push'](_0x5a188c);}return _0x1a926d;}(_0x5b96d6,_0x11c6ba),_0x5adb90=function(_0x43b44d,_0x2ddd10){const _0x7a6df5=[_0x43b44d];for(const _0x5be9ab of _0x2ddd10){let _0x5221d0=0x0;for(;_0x5221d0<_0x7a6df5['length'];){const _0x363a39=_0x7a6df5[_0x5221d0]['getDifference'](_0x5be9ab);_0x7a6df5['splice'](_0x5221d0,0x1,..._0x363a39),_0x5221d0+=_0x363a39['length'];}}return _0x7a6df5;}(_0x5b96d6,_0x11c6ba);_0x4d6c7b['length']&&this['_model']['change'](()=>{for(const _0x5e8e8b of _0x4d6c7b){const _0x3ab3bc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3665cc,'accept');this['forceDefaultExecution'](()=>_0x3ab3bc([_0x5e8e8b],_0x3b1e59,_0xf3cd3));}});for(const _0x1aafc of _0x5adb90){let _0x361439=null,_0x4051f3=_0x1aafc['start'],_0x2a24f0=_0x1aafc['end'];for(const {suggestion:_0x153cc2,meta:_0x426edc}of this['_findSuggestions'](_0x1aafc,'formatInline')){if(!_0x426edc['isOwn'])continue;if(_0x153cc2['subType']!=_0x3665cc)continue;if(!Lt(_0x153cc2,_0xf3cd3))continue;const _0x140660=_0x153cc2['getFirstRange']();if(_0x140660['containsRange'](_0x1aafc,!0x0))return null;_0x4051f3=_0x4051f3['isBefore'](_0x140660['start'])?_0x4051f3:_0x140660['start'],_0x2a24f0=_0x2a24f0['isAfter'](_0x140660['end'])?_0x2a24f0:_0x140660['end'],_0x361439?_0x140660['start']['isBefore'](_0x361439['getFirstRange']()['start'])?(_0x361439['removeMarkers'](),_0x361439=_0x153cc2):_0x153cc2['removeMarkers']():_0x361439=_0x153cc2;}const _0x7eaf66=this['_model']['createRange'](_0x4051f3,_0x2a24f0);if(_0x361439)this['_setSuggestionRange'](_0x361439,_0x7eaf66);else{const _0xa7786f=_0xe5f9d9(),_0x11bb2d=_0x243400['id'];this['_setSuggestionData']({'id':_0xa7786f,'type':'formatInline:'+_0x3665cc,'data':_0x3b1e59,'createdAt':new Date(),'authorId':_0x11bb2d,'attributes':_0xf3cd3}),this['_addSuggestionMarker']('formatInline:'+_0x3665cc,_0xa7786f,_0x11bb2d,_0x7eaf66);}}return null;}['markBlockFormat'](_0x1fcb0c,_0x487cf1,_0x14950d=[],_0x425e59=null,_0x243ba5={}){_0x487cf1['formatGroupId']||(_0x487cf1['formatGroupId']=_0x487cf1['commandName']),_0x487cf1['multipleBlocks']=_0x1fcb0c['is']('range'),_0x425e59=_0x425e59||Vt(_0x487cf1);const _0x559d9c=_0x14950d['map'](_0x12a6b3=>Gt(_0x12a6b3,this['_model'])),_0x3c8456=_0x1fcb0c['is']('range')?_0x1fcb0c:Gt(_0x1fcb0c,this['_model']);if('never'===this['_trackFormatChanges']){const _0x364e29=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x425e59,'accept');return this['forceDefaultExecution'](()=>_0x364e29([_0x3c8456],_0x487cf1,_0x243ba5)),null;}_0x559d9c['push'](_0x3c8456);let _0x5cbbc7=!0x0;for(const _0x97a355 of _0x559d9c)if(!this['_rangeIsInLocalUserInsertion'](_0x97a355)){_0x5cbbc7=!0x1;break;}if(_0x5cbbc7&&'always'!==this['_trackFormatChanges']){const _0x2efaa1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x425e59,'accept');return this['forceDefaultExecution'](()=>_0x2efaa1([_0x3c8456],_0x487cf1,_0x243ba5)),null;}let _0x1b1477=null,_0x1c9357=_0x3c8456['start'],_0x167d6b=_0x3c8456['end'];for(const {suggestion:_0x17deac,meta:_0x568337}of this['_findSuggestions'](_0x3c8456,'formatBlock')){if(!_0x568337['isOwn'])continue;if(_0x568337['isNextTo']||_0x568337['containsRangeInObject']||_0x568337['isInsideObject'])continue;if(_0x17deac['data']['formatGroupId']!=_0x487cf1['formatGroupId'])continue;if(!Lt(_0x17deac,_0x243ba5))continue;const _0x3bc572=_0x17deac['getFirstRange']();if(_0x17deac['subType']==_0x425e59){if(_0x3bc572['containsRange'](_0x3c8456,!0x0))return null;_0x1c9357=_0x1c9357['isBefore'](_0x3bc572['start'])?_0x1c9357:_0x3bc572['start'],_0x167d6b=_0x167d6b['isAfter'](_0x3bc572['end'])?_0x167d6b:_0x3bc572['end'],_0x1b1477?_0x3bc572['start']['isBefore'](_0x1b1477['getFirstRange']()['start'])?(_0x1b1477['removeMarkers'](),_0x1b1477=_0x17deac):_0x17deac['removeMarkers']():_0x1b1477=_0x17deac;}else{const _0x25e0e6=_0x3c8456['getIntersection'](_0x3bc572);this['_cutOutSuggestionMarker'](_0x17deac,_0x25e0e6);}}const _0x286b1b=this['editor']['plugins']['get']('Users')['me'],_0x3256ca=_0xe5f9d9(),_0x531f06=_0x286b1b['id'];if(_0x1b1477)return this['_setSuggestionRange'](_0x1b1477,this['_model']['createRange'](_0x1c9357,_0x167d6b)),_0x1b1477;{const _0x555012=this['_setSuggestionData']({'id':_0x3256ca,'type':'formatBlock:'+_0x425e59,'data':_0x487cf1,'createdAt':new Date(),'authorId':_0x531f06,'attributes':_0x243ba5});return this['_addSuggestionMarker']('formatBlock:'+_0x425e59,_0x3256ca,_0x531f06,this['_model']['createRange'](_0x1c9357,_0x167d6b)),_0x555012;}}['markMultiRangeBlockFormat'](_0x29357a,_0x526abb,_0x3ecdeb=[],_0x4849f9=null,_0x1a9f74={}){_0x526abb['formatGroupId']||(_0x526abb['formatGroupId']=_0x526abb['commandName']);const _0x17ffb5=_0x29357a[0x0];_0x526abb['multipleBlocks']=_0x17ffb5['is']('range'),_0x4849f9=_0x4849f9||Vt(_0x526abb);const _0x4c159e=_0x3ecdeb['map'](_0x43399d=>Gt(_0x43399d,this['_model'])),_0x21a1c8=_0x17ffb5['is']('range')?_0x29357a:_0x29357a['map'](_0x4272f0=>Gt(_0x4272f0,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2c4f9c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4849f9,'accept');return this['forceDefaultExecution'](()=>_0x2c4f9c(_0x21a1c8,_0x526abb,_0x1a9f74)),null;}_0x4c159e['push'](..._0x21a1c8);let _0x33d051=!0x0;for(const _0x1cf394 of _0x4c159e)if(!this['_rangeIsInLocalUserInsertion'](_0x1cf394)){_0x33d051=!0x1;break;}if(_0x33d051&&'always'!==this['_trackFormatChanges']){const _0x235db2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4849f9,'accept');return this['forceDefaultExecution'](()=>_0x235db2(_0x21a1c8,_0x526abb,_0x1a9f74)),null;}const _0x395ed6=this['editor']['plugins']['get']('Users')['me'];for(const _0x42aaf3 of this['getSuggestions']()){if(_0x42aaf3['author']['id']!=_0x395ed6['id'])continue;if('formatBlock'!=_0x42aaf3['type']||_0x42aaf3['data']['formatGroupId']!=_0x526abb['formatGroupId'])continue;if(!Lt(_0x42aaf3,_0x1a9f74))continue;const _0x5c1050=_0x42aaf3['subType']==_0x4849f9;for(let _0x5f35b0=0x0;_0x5f35b0<_0x21a1c8['length'];_0x5f35b0++){const _0x29bf67=_0x21a1c8[_0x5f35b0];for(const _0x3e4a49 of _0x42aaf3['getMarkers']()){const _0x385f1f=_0x3e4a49['getRange']();if(_0x29bf67['isEqual'](_0x385f1f)){_0x5c1050?(_0x21a1c8['splice'](_0x5f35b0,0x1),_0x5f35b0--):_0x42aaf3['removeMarker'](_0x3e4a49['name']);break;}}}}if(0x0==_0x21a1c8['length'])return null;const _0x5cbd02=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4849f9,'join');for(const _0xeff256 of this['getSuggestions']())if(_0xeff256['author']['id']==_0x395ed6['id']&&'formatBlock'==_0xeff256['type']&&_0xeff256['data']['formatGroupId']==_0x526abb['formatGroupId']&&_0xeff256['subType']==_0x4849f9&&Lt(_0xeff256,_0x1a9f74)&&(_0x5cbd02(_0xeff256['getRanges'](),_0x21a1c8)||_0x5cbd02(_0x21a1c8,_0xeff256['getRanges']()))){for(const _0x2b1316 of _0x21a1c8)_0xeff256['addRange'](_0x2b1316);return _0xeff256;}const _0x3b1f08=_0xe5f9d9(),_0x4cf204=_0x395ed6['id'],_0x1b29e5='formatBlock:'+_0x4849f9,_0x4f0c5e=this['_setSuggestionData']({'id':_0x3b1f08,'type':_0x1b29e5,'data':_0x526abb,'createdAt':new Date(),'authorId':_0x4cf204,'attributes':_0x1a9f74});for(const _0x275bcd of _0x21a1c8)this['_addSuggestionMarker'](_0x1b29e5,_0x3b1f08,_0x4cf204,_0x275bcd,u['getMultiRangeId']());return _0x4f0c5e;}['markDeletion'](_0x1e3105,_0x25b477=null,_0x268065={}){if(_0x1e3105['isCollapsed'])return null;const _0x92f15b=this['editor']['plugins']['get']('Users')['me'],_0x82a5cf=new _0xef9d24(_0x1e3105['start'],_0x1e3105['end']);for(const {suggestion:_0x436a0a,meta:_0x28f226}of this['_findSuggestions'](_0x82a5cf,'insertion'))if(_0x28f226['isOwn']&&!_0x28f226['isNextTo']){if(_0x436a0a['isMultiRange']){const _0x38dd3a=_0x436a0a['getRanges']()['filter'](_0x8007f7=>'$graveyard'!=_0x8007f7['root']['rootName']);_0x38dd3a['every'](_0x327673=>_0x82a5cf['containsRange'](_0x327673,!0x0))&&_0x436a0a['discard']();if(_0x38dd3a['some'](_0x5bcc78=>_0x5bcc78['containsRange'](_0x82a5cf,!0x0))){const _0x3292ed=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25b477,'accept');return this['forceDefaultExecution'](()=>_0x3292ed([_0x82a5cf],null,_0x268065)),null;}}else{const _0x412a8e=_0x82a5cf['getIntersection'](_0x436a0a['getFirstRange']());null!==_0x412a8e&&_0x436a0a['_onDiscard']([_0x412a8e],null,_0x268065);}}if(_0x82a5cf['detach'](),_0x82a5cf['isCollapsed']||'$graveyard'==_0x82a5cf['root']['rootName'])return null;let _0x1f80b9=null,_0x41eb6d=_0x82a5cf['start'],_0x3fdcef=_0x82a5cf['end'];const _0x4a1861=this['_findSuggestions'](_0x82a5cf,'deletion');for(const {suggestion:_0x5a0797,meta:_0x165a6a}of _0x4a1861){const _0x4fd544=this['_model']['createRange'](_0x41eb6d,_0x3fdcef);if(_0x165a6a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x165a6a['containsRangeInObject']&&!_0x165a6a['isInsideObject'])){if(_0x5a0797['isMultiRange']){if(!Lt(_0x5a0797,_0x268065))continue;let _0x16df6b=!0x0;for(const _0x111914 of _0x5a0797['getRanges']()){if(_0x111914['containsRange'](_0x4fd544,!0x0))return _0x5a0797;_0x4fd544['containsRange'](_0x111914)||(_0x16df6b=!0x1);}_0x16df6b&&_0x5a0797['discard']();}else{const _0x3a267b=_0x5a0797['getFirstRange']();if(_0x3a267b['containsRange'](_0x4fd544,!0x0))return _0x5a0797;if(!Lt(_0x5a0797,_0x268065)){_0x4fd544['containsRange'](_0x3a267b)?_0x5a0797['removeMarkers']():_0x3a267b['containsPosition'](_0x41eb6d)?_0x41eb6d=_0x3a267b['end']:_0x3a267b['containsPosition'](_0x3fdcef)&&(_0x3fdcef=_0x3a267b['start']);continue;}_0x41eb6d=_0x41eb6d['isBefore'](_0x3a267b['start'])?_0x41eb6d:_0x3a267b['start'],_0x3fdcef=_0x3fdcef['isAfter'](_0x3a267b['end'])?_0x3fdcef:_0x3a267b['end'],_0x268065=Object['assign']({},_0x5a0797['attributes']),_0x1f80b9?_0x3a267b['start']['isBefore'](_0x1f80b9['getFirstRange']()['start'])?(_0x1f80b9['removeMarkers'](),_0x1f80b9=_0x5a0797):_0x5a0797['removeMarkers']():_0x1f80b9=_0x5a0797;}}}if(_0x1f80b9)return this['_setSuggestionRange'](_0x1f80b9,this['_model']['createRange'](_0x41eb6d,_0x3fdcef)),_0x1f80b9;{const _0x58ad50=_0xe5f9d9(),_0x46f11b=this['_model']['createRange'](_0x41eb6d,_0x3fdcef),_0x190a95=_0x92f15b['id'],_0x1a4132=_0x25b477?'deletion:'+_0x25b477:'deletion',_0x14a433=this['_setSuggestionData']({'id':_0x58ad50,'type':_0x1a4132,'createdAt':new Date(),'authorId':_0x190a95,'attributes':_0x268065});return this['_addSuggestionMarker'](_0x1a4132,_0x58ad50,_0x190a95,_0x46f11b),_0x14a433;}}['markMultiRangeDeletion'](_0x266d67,_0x596603='multi',_0x2751f3={}){const _0x36cc1c=this['editor']['plugins']['get']('Users')['me'],_0x1d3c9b=_0x266d67['map'](_0x1aff0a=>new _0xef9d24(_0x1aff0a['start'],_0x1aff0a['end'])),_0x2b7eef=new Set();for(const {suggestion:_0x2cd47b,meta:_0x10dd15}of this['_findSuggestions'](_0x1d3c9b,'insertion'))_0x10dd15['isOwn']&&!_0x10dd15['isNextTo']&&_0x2b7eef['add'](_0x2cd47b);for(const _0x3dd1eb of _0x2b7eef)if(_0x3dd1eb['isMultiRange']){const _0x16b47e=_0x3dd1eb['getRanges']();(!_0x3dd1eb['attributes']||!_0x3dd1eb['attributes']['skipNestingCheck'])&&(_0x16b47e['every'](_0xd5605f=>_0x1d3c9b['some'](_0x466fd3=>_0x466fd3['containsRange'](_0xd5605f,!0x0)))&&_0x3dd1eb['discard']());if(_0x1d3c9b['every'](_0x4ff09f=>_0x16b47e['some'](_0x49b164=>_0x49b164['containsRange'](_0x4ff09f,!0x0)))){const _0x3bd5e5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x596603,'accept');return this['forceDefaultExecution'](()=>_0x3bd5e5(_0x266d67,null,_0x2751f3)),null;}}else{const _0x450c57=_0x3dd1eb['getFirstRange']();_0x1d3c9b['some'](_0x4a893b=>_0x4a893b['containsRange'](_0x450c57,!0x0))&&_0x3dd1eb['discard']();if(_0x1d3c9b['every'](_0x2993c5=>_0x450c57['containsRange'](_0x2993c5,!0x0))){const _0x44e88f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x596603,'accept');return this['forceDefaultExecution'](()=>_0x44e88f(_0x1d3c9b,null,_0x2751f3)),null;}}const _0x3a995b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x596603,'join');let _0x4b771a=null;for(const _0x31e790 of this['getSuggestions']())if(_0x31e790['author']['id']==_0x36cc1c['id']&&_0x31e790['isInContent']&&'deletion'==_0x31e790['type']&&_0x31e790['subType']==_0x596603&&Lt(_0x31e790,_0x2751f3)&&(_0x3a995b(_0x31e790['getRanges'](),_0x1d3c9b)||_0x3a995b(_0x1d3c9b,_0x31e790['getRanges']()))){if(_0x4b771a){if(_0x31e790['commentThread']&&_0x31e790['commentThread']['length'])continue;for(const _0x45f05d of _0x31e790['getRanges']())_0x4b771a['isIntersectingWithRange'](_0x45f05d)||_0x4b771a['addRange'](_0x45f05d);_0x31e790['removeMarkers']();}else{_0x4b771a=_0x31e790;for(const _0x2ad8b7 of _0x1d3c9b)_0x31e790['isIntersectingWithRange'](_0x2ad8b7)||_0x31e790['addRange'](_0x2ad8b7);}}if(_0x4b771a)return _0x4b771a;_0x2b7eef['clear']();for(const {suggestion:_0x2640bc,meta:_0x1461fa}of this['_findSuggestions'](_0x1d3c9b,'deletion'))_0x1461fa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1461fa['containsRangeInObject']&&!_0x1461fa['isInsideObject'])&&Lt(_0x2640bc,_0x2751f3)&&_0x2b7eef['add'](_0x2640bc);for(const _0x4a6c75 of _0x2b7eef){const _0xc10b76=_0x4a6c75['getRanges']();if(!_0x2751f3||!_0x2751f3['skipNestingCheck']){if(_0x1d3c9b['every'](_0x43d45a=>_0xc10b76['some'](_0x391ed5=>_0x391ed5['containsRange'](_0x43d45a,!0x0))))return _0x4a6c75;}(!_0x4a6c75['attributes']||!_0x4a6c75['attributes']['skipNestingCheck'])&&(_0xc10b76['every'](_0x2fe0c2=>_0x1d3c9b['some'](_0x56d385=>_0x56d385['containsRange'](_0x2fe0c2,!0x0)))&&_0x4a6c75['discard']());}const _0x4595c6=_0xe5f9d9(),_0x3de345=_0x36cc1c['id'],_0x562f55='deletion:'+_0x596603,_0x2de5dc=this['_setSuggestionData']({'id':_0x4595c6,'type':_0x562f55,'createdAt':new Date(),'authorId':_0x3de345,'attributes':_0x2751f3});for(const _0x550efa of _0x1d3c9b)_0x550efa['detach'](),_0x550efa['isCollapsed']||'$graveyard'==_0x550efa['root']['rootName']||this['_addSuggestionMarker'](_0x562f55,_0x4595c6,_0x3de345,_0x550efa,u['getMultiRangeId']());return _0x2de5dc;}['markAttributeChange'](_0x4e638b,_0x4724aa,_0x22027b,_0x4e48e5,_0x583325){if(_0x4e638b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x108c75=this['editor']['plugins']['get']('Users')['me']['id'],_0x19a136=Array['from'](this['_suggestions']['values']())['filter'](_0x3c9b99=>'attribute'==_0x3c9b99['type']&&_0x3c9b99['data']['key']==_0x4724aa&&_0x3c9b99['isIntersectingWithRange'](_0x4e638b));if('default'===this['_trackFormatChanges']){const _0xe40e5d=this['_findSuggestions'](_0x4e638b,'insertion')['filter'](({meta:_0x51abe6})=>_0x51abe6['isOwn']&&!_0x51abe6['isInsideObject']&&!_0x51abe6['isNextTo'])['map'](({suggestion:_0x2274ec})=>_0x2274ec);_0x19a136['unshift'](..._0xe40e5d);}const _0x3017fb=new Map([[_0x4e638b,_0x22027b]]);for(const _0xaaeac9 of _0x19a136){const _0xc66c0f='attribute'==_0xaaeac9['type']?_0xaaeac9['data']['oldValue']:void 0x0,_0x382102=_0xaaeac9['getFirstRange'](),_0x1f4b69=Array['from'](_0x3017fb['keys']())['find'](_0x2c68d2=>_0x2c68d2['isIntersecting'](_0x382102));if(!_0x1f4b69)continue;const _0x572787=_0x1f4b69['getDifference'](_0x382102);this['_isBlockAttribute'](_0x4724aa)&&'insertion'==_0xaaeac9['type']&&0x0!=_0x572787['length']||(_0x3017fb['delete'](_0x1f4b69),_0x572787['forEach'](_0x594071=>{_0x3017fb['set'](_0x594071,_0x22027b);}),'insertion'!=_0xaaeac9['type']&&_0xc66c0f!=_0x4e48e5&&_0x3017fb['set'](_0x1f4b69['getIntersection'](_0x382102),_0xc66c0f));}const _0x138812=[];for(const [_0x509f46,_0x3f5754]of _0x3017fb){const _0x3980cd=_0xe5f9d9(),_0x2172d0={'key':_0x4724aa,'oldValue':_0x3f5754,'newValue':_0x4e48e5};_0x4724aa['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':_0x4724aa});const _0x4d14d6=('attribute:'+(_0x4724aa+'|'+Vt({'newValue':_0x4e48e5})))['substring'](0x0,0x3c),_0x14b7be=this['_setSuggestionData']({'id':_0x3980cd,'type':_0x4d14d6,'data':_0x2172d0,'createdAt':new Date(),'authorId':_0x108c75,'attributes':_0x583325});_0x138812['push'](_0x14b7be),this['_addSuggestionMarker'](_0x4d14d6,_0x3980cd,_0x108c75,_0x509f46);}return _0x138812;}['enableDefaultAttributesIntegration'](_0x3d61f1){this['enableCommand'](_0x3d61f1,(_0x28ecd7,..._0x3c0139)=>{this['_recordAttributeChanges'](()=>{_0x28ecd7(..._0x3c0139);});});}['registerBlockAttribute'](_0x493286){this['_blockAttributeKeys']['add'](_0x493286);}['registerInlineAttribute'](_0x2d2c8d){this['_inlineAttributeKeys']['add'](_0x2d2c8d);}['_getAttributeKey'](_0x5d2e1e){return'attribute'==_0x5d2e1e['type']?_0x5d2e1e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x6bdd75,_0x14f27c){const _0xe1e705=_0x6bdd75['getFirstMarker']();this['_model']['change'](_0x11f6cd=>{_0x11f6cd['updateMarker'](_0xe1e705,{'range':_0x14f27c});});}['_addThreadToSuggestion'](_0x6814d5){const _0x58c987=_0x6814d5['id'],_0x1e1e8b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x58c987)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1e1e8b,'threadId':_0x58c987,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x429f2a=this['_commentsRepository']['getCommentThread'](_0x58c987);_0x429f2a['unbind']('isRemovable'),_0x429f2a['isRemovable']=!0x1,_0x6814d5['commentThread']=_0x429f2a;}['_checkSuggestionCorrectness'](_0x1c408a,_0x4d5e99,_0x598715,_0x2b1aed){if(_0x1c408a['type']!=_0x4d5e99||_0x1c408a['subType']!=_0x598715||_0x1c408a['creator']['id']!=_0x2b1aed)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x194952('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x50be61,_0x2c010e){const _0x7e636c=_0x50be61['getFirstRange']();if(_0x2c010e['isEqual'](_0x7e636c))_0x50be61['removeMarkers']();else{if(_0x7e636c['containsRange'](_0x2c010e)){const _0x2f6338=this['_model']['createPositionAt'](_0x2c010e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x50be61,this['_model']['createRange'](_0x7e636c['start'],_0x2f6338));const _0x4ae8ca=_0xe5f9d9(),_0x17c981=_0x50be61['creator']['id'],_0x282654=_0x50be61['type']+':'+_0x50be61['subType'];this['_setSuggestionData']({'id':_0x4ae8ca,'type':_0x282654,'createdAt':new Date(),'authorId':_0x17c981,'data':_0x50be61['data'],'attributes':_0x50be61['attributes']});const _0x55fde3=this['_model']['createPositionAt'](_0x2c010e['end']['parent'],'after'),_0x392ace=this['_model']['createRange'](_0x55fde3,_0x7e636c['end']);this['_addSuggestionMarker'](_0x282654,_0x4ae8ca,_0x17c981,_0x392ace);}else{if(_0x7e636c['containsPosition'](_0x2c010e['start'])){const _0x3b58ed=this['_model']['createPositionAt'](_0x2c010e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x50be61,this['_model']['createRange'](_0x7e636c['start'],_0x3b58ed));}else{const _0x1580f8=this['_model']['createPositionAt'](_0x2c010e['end']['parent'],'after');this['_setSuggestionRange'](_0x50be61,this['_model']['createRange'](_0x1580f8,_0x7e636c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x53e39f){for(const {suggestion:_0x4231ed,meta:_0x145f43}of this['_findSuggestions'](_0x53e39f,'insertion')){if(!_0x145f43['isOwn'])continue;const _0x46849e=_0x4231ed['getRanges']();for(const _0x4022e2 of _0x46849e)if(!_0x53e39f['getDifference'](_0x4022e2)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x596ea4){const _0x846cbe=this['editor']['plugins']['get']('Users')['getUser'](_0x596ea4);if(!_0x846cbe)throw new _0x194952('track-changes-user-not-found',this);return _0x846cbe;}['_getExternalAuthor'](_0x26692e){const _0x71b4eb=this['editor']['plugins']['get']('Users'),_0x499de3=_0x223067('external:'+_0x26692e),_0x259624=_0x71b4eb['getUser'](_0x499de3);return _0x259624||_0x71b4eb['addUser']({'id':_0x499de3,'name':_0x26692e});}['_createSuggestion'](_0x440552,_0x8e250e,_0x564679,_0x52ea49,_0x1a7cb7){const _0x4b1b08=this['_getAuthorFromId'](_0x52ea49),_0x46a03a=this['_suggestionFactory']['buildSuggestion'](_0x440552,_0x8e250e,_0x564679,_0x4b1b08,_0x1a7cb7,_0x37c5a4=>{this['_updateSuggestionData'](_0x564679,{'attributes':_0x37c5a4});const _0xc2b177=this['getSuggestion'](_0x564679);this['_joinWithAdjacentSuggestions'](new Set([_0xc2b177])),this['_refreshSuggestionsChain'](new Set([_0xc2b177]));});return this['listenTo'](_0x46a03a,'accept',()=>{this['_updateSuggestionData'](_0x564679,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x46a03a,'discard',()=>{this['_updateSuggestionData'](_0x564679,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x564679,_0x46a03a),this['_suggestionState']['set'](_0x46a03a,'notReady'),_0x46a03a;}['_splitMarkerName'](_0xfc7757){const _0x41cd92=_0xfc7757['split'](':');return{'group':_0x41cd92[0x0],'type':_0x41cd92[0x1],'subType':_0x41cd92['length']>=0x5?_0x41cd92[0x2]:null,'id':_0x41cd92['length']<0x5?_0x41cd92[0x2]:_0x41cd92[0x3],'authorId':_0x41cd92['length']<0x5?_0x41cd92[0x3]:_0x41cd92[0x4],'markerCount':0x6==_0x41cd92['length']?_0x41cd92[0x5]:null};}['_breakSuggestionMarker'](_0xde87ea,_0x51351e,_0x1c1500){const _0x120fd5=_0xde87ea['getFirstRange'](),_0x7caa1e=_0x120fd5['start'],_0x207b5e=_0x120fd5['end'];this['_setSuggestionRange'](_0xde87ea,this['_model']['createRange'](_0x7caa1e,_0x51351e));const _0x2ee38f=_0xe5f9d9(),_0x5ee561=_0xde87ea['creator']['id'],_0x43fd4d=_0xde87ea['type']+(_0xde87ea['subType']?':'+_0xde87ea['subType']:'');this['_setSuggestionData']({'id':_0x2ee38f,'type':_0x43fd4d,'createdAt':new Date(),'authorId':_0x5ee561,'originalSuggestionId':_0xde87ea['id'],'attributes':_0xde87ea['attributes'],'data':_0xde87ea['data']});const _0x2de433=this['_getAttributeKey'](_0xde87ea);('formatBlock'==_0xde87ea['type']||_0x2de433&&this['_isBlockAttribute'](_0x2de433))&&(_0x1c1500=this['_model']['createPositionBefore'](_0x1c1500['parent'])),this['_addSuggestionMarker'](_0x43fd4d,_0x2ee38f,_0x5ee561,this['_model']['createRange'](_0x1c1500,_0x207b5e));}['_findSuggestions'](_0x2f6427,_0x4aaf86=null){const _0x519f5e=[],_0x1fd65c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2f6427)||(_0x2f6427=[_0x2f6427]);for(const _0x2b6cc6 of this['getSuggestions']()){if(!_0x2b6cc6['isInContent'])continue;if(_0x4aaf86&&_0x2b6cc6['type']!=_0x4aaf86)continue;let _0x22e164=!0x1;for(const _0x4d636f of _0x2b6cc6['getRanges']()){for(const _0x1a7303 of _0x2f6427){const _0x479277=_0x1a7303['start']['isEqual'](_0x4d636f['end'])||_0x1a7303['end']['isEqual'](_0x4d636f['start']);if(_0x479277||_0x1a7303['getIntersection'](_0x4d636f)){const _0x430956=_0x1a7303['containsRange'](_0x4d636f)&&Rt(this['_model']['schema'],_0x4d636f['start'],_0x1a7303),_0x37b713=_0x4d636f['containsRange'](_0x1a7303)&&Rt(this['_model']['schema'],_0x1a7303['start'],_0x4d636f);_0x519f5e['push']({'suggestion':_0x2b6cc6,'meta':{'isOwn':_0x1fd65c==_0x2b6cc6['author'],'isNextTo':_0x479277,'isInsideObject':_0x430956,'containsRangeInObject':_0x37b713}}),_0x22e164=!0x0;break;}}if(_0x22e164)break;}}return _0x519f5e;}['_addSuggestionMarker'](_0x112808,_0x58c849,_0x50c5a6,_0x52feea,_0x2a06e2){this['_model']['change'](_0x3c27fb=>{let _0x6e011e='suggestion:'+_0x112808+':'+_0x58c849+':'+_0x50c5a6;_0x2a06e2&&(_0x6e011e=_0x6e011e+':'+_0x2a06e2),_0x3c27fb['addMarker'](_0x6e011e,{'range':_0x52feea,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2131d0){const _0x1b4d6e=_0x2131d0['previous'],_0xf099b5=_0x2131d0['next'];_0x2131d0['previous']=null,_0x2131d0['next']=null,null!=_0x1b4d6e&&_0x1b4d6e['next']==_0x2131d0&&(_0x1b4d6e['next']=_0xf099b5),null!=_0xf099b5&&_0xf099b5['previous']==_0x2131d0&&(_0xf099b5['previous']=_0x1b4d6e),'ready'==this['_suggestionState']['get'](_0x2131d0)&&(this['_suggestionState']['set'](_0x2131d0,'removed'),this['fire']('suggestionUnloaded',_0x2131d0,_0x1b4d6e,_0xf099b5));}['_setSuggestionData'](_0x3fd4a6){const _0x2e931e=_0x3fd4a6['id'],_0x5a63f8=this['addSuggestionData'](_0x3fd4a6);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x307ac9=this['editor']['plugins']['get']('PendingActions'),_0x4403b1=_0x5a63f8['hasComments'],_0x418a95=_0x5a63f8['subType']?_0x5a63f8['type']+':'+_0x5a63f8['subType']:_0x5a63f8['type'],_0x38378d=this['editor']['locale'],_0x2cf9f7=_0x307ac9['add'](o(_0x38378d,'PENDING_ACTION_SUGGESTION')),_0x92e62={'id':_0x2e931e,'type':_0x418a95,'hasComments':_0x4403b1,'data':_0x3fd4a6['data']||null,'originalSuggestionId':_0x3fd4a6['originalSuggestionId']||null,'attributes':_0x5a63f8['attributes']};this['_adapter']['addSuggestion'](_0x92e62)['then'](_0x1405a1=>{_0x5a63f8['_saved']=!0x0,_0x307ac9['remove'](_0x2cf9f7),_0x1405a1&&_0x1405a1['createdAt']&&(this['_suggestions']['get'](_0x2e931e)['createdAt']=_0x1405a1['createdAt']);})['catch'](_0x369ab9=>{throw _0x442e8e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5a63f8['discard']();}),_0x5a63f8['stopListening'](),this['_suggestions']['delete'](_0x5a63f8['id']),this['_suggestionState']['delete'](_0x5a63f8),_0x369ab9;});}return _0x5a63f8;}['_isBlockAttribute'](_0x34a0b1){return this['_blockAttributeKeys']['has'](_0x34a0b1);}['_updateSuggestionData'](_0x325bc4,_0x2cedf0){const _0x102af3=this['editor']['plugins']['get']('PendingActions'),_0x346912=this['getSuggestion'](_0x325bc4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x346912['_saved']){const _0x43cc6c=_0x102af3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x325bc4,_0x2cedf0)['then'](()=>{_0x102af3['remove'](_0x43cc6c);});}else _0x346912['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x325bc4,_0x2cedf0);});}}['_getSuggestionData'](_0x2d78b5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x194952('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d78b5);}['_handleNewSuggestionMarker'](_0xe0c99d){const {id:_0x3e9e5d,type:_0x4a5c36,subType:_0x55589c,authorId:_0x3f9d2e}=this['_splitMarkerName'](_0xe0c99d),_0x32a21f=this['_suggestions']['get'](_0x3e9e5d)||this['_createSuggestion'](_0x4a5c36,_0x55589c,_0x3e9e5d,_0x3f9d2e,{});switch(this['_checkSuggestionCorrectness'](_0x32a21f,_0x4a5c36,_0x55589c,_0x3f9d2e),this['_suggestionState']['get'](_0x32a21f)){case'notReady':this['_getSuggestionData'](_0x3e9e5d)['then'](_0x2d3d1c=>{let _0x10ed04=Promise['resolve']();_0x2d3d1c['hasComments']&&(_0x10ed04=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3e9e5d})),_0x10ed04['then'](()=>{this['addSuggestionData'](_0x2d3d1c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x32a21f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3e9e5d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x32a21f,'ready'),this['fire']('suggestionLoaded',_0x32a21f);break;case'ready':this['fire']('suggestionChanged',_0x32a21f);}return _0x32a21f['addMarkerName'](_0xe0c99d),_0x32a21f;}['_refreshSuggestionsChain'](_0x35d926){const _0x3190e0=Array['from'](_0x35d926),_0x56587e=_0x3190e0['filter'](_0x2a5a67=>'attribute'==_0x2a5a67['type']);this['_refreshAttributeSuggestionsChain'](_0x56587e);const _0x25ac76=_0x3190e0['filter'](_0x1d93fc=>!_0x1d93fc['isMultiRange']&&'attribute'!=_0x1d93fc['type']),_0x13634c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x105b56=>!_0x105b56['isMultiRange']&&'attribute'!=_0x105b56['type']),_0x1ea6d4=_0x13634c['filter'](_0xa8eb62=>!_0x35d926['has'](_0xa8eb62)),_0x5f0827=new Map(_0x13634c['map'](_0x4f7556=>[_0x4f7556,this['_suggestionFactory']['getSuggestionCallback'](_0x4f7556['type'],_0x4f7556['subType'],'chain')])),_0x270d46=new Map(_0x13634c['map'](_0x556ba6=>[_0x556ba6,_0x556ba6['getFirstRange']()])),_0x214ef2=new Set(),_0x30bf95=new Set();for(let _0x362d33=0x0;_0x362d33<_0x25ac76['length'];_0x362d33++)_0x565910(_0x25ac76[_0x362d33],_0x25ac76,_0x362d33+0x1);for(let _0xf4de71=0x0;_0xf4de71<_0x25ac76['length'];_0xf4de71++)_0x565910(_0x25ac76[_0xf4de71],_0x1ea6d4,0x0);const _0x50f0d8=new Set();for(let _0x19e0f5=0x0;_0x19e0f5<_0x25ac76['length'];_0x19e0f5++){const _0x22d350=_0x25ac76[_0x19e0f5];!_0x30bf95['has'](_0x22d350)&&_0x22d350['previous']&&(_0x50f0d8['add'](_0x22d350['previous']),_0x22d350['previous']['next']===_0x22d350&&(_0x22d350['previous']['next']=null),_0x22d350['previous']=null),!_0x214ef2['has'](_0x22d350)&&_0x22d350['next']&&(_0x50f0d8['add'](_0x22d350['next']),_0x22d350['next']['previous']===_0x22d350&&(_0x22d350['next']['previous']=null),_0x22d350['next']=null);}function _0x565910(_0x4140c4,_0xe77cc8,_0x24d438){for(let _0x3dc4f0=_0x24d438;_0x3dc4f0<_0xe77cc8['length'];_0x3dc4f0++){const _0x51f417=_0x11e992(_0x4140c4,_0xe77cc8[_0x3dc4f0]);_0x51f417&&(_0x51f417[0x0]['next']=_0x51f417[0x1],_0x51f417[0x1]['previous']=_0x51f417[0x0],_0x214ef2['add'](_0x51f417[0x0]),_0x30bf95['add'](_0x51f417[0x1]));}}function _0x11e992(_0x437346,_0x440b30){if(_0x437346['author']['id']!==_0x440b30['author']['id'])return null;const _0x592b8c=_0x5f0827['get'](_0x437346)(_0x437346,_0x440b30,_0x270d46['get'](_0x437346),_0x270d46['get'](_0x440b30));if(!_0x592b8c)return null;return _0x5f0827['get'](_0x440b30)(_0x437346,_0x440b30,_0x270d46['get'](_0x437346),_0x270d46['get'](_0x440b30))?_0x592b8c[0x1]['commentThread']&&_0x592b8c[0x1]['commentThread']['length']?null:_0x592b8c:null;}_0x50f0d8['size']&&this['_refreshSuggestionsChain'](_0x50f0d8);}['_refreshAttributeSuggestionsChain'](_0x111d87){if(0x0==_0x111d87['length'])return;const _0x457f73=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x391007=>'attribute'==_0x391007['type']&&_0x391007['_isDataLoaded']),_0x25a29b=[],_0x27a5cf=new Map();for(const _0x4bebd0 of _0x457f73){const _0x4ebc4f=_0x223067(_0x4bebd0['attributes']);_0x27a5cf['has'](_0x4ebc4f)||(_0x27a5cf['set'](_0x4ebc4f,_0x25a29b['length']),_0x25a29b['push']([]));const _0x41aa6b=_0x27a5cf['get'](_0x4ebc4f);_0x25a29b[_0x41aa6b]['push'](_0x4bebd0);}!(function(){_0x25a29b['sort']((_0x369893,_0x384502)=>{const _0x23728c=_0x369893[0x0]['createdAt'],_0x59a217=_0x384502[0x0]['createdAt'];return _0x23728c==_0x59a217?_0x369893[0x0]['attributes']['groupId']<_0x384502[0x0]['attributes']['groupId']?-0x1:0x1:_0x23728c<_0x59a217?-0x1:0x1;});for(const _0x12e9c9 of _0x25a29b)_0x12e9c9['sort']((_0x1c434f,_0x4bfab0)=>_0x1c434f['id']<_0x4bfab0['id']?-0x1:0x1);}());for(let _0x20c26f=0x0;_0x20c26f<_0x25a29b['length'];_0x20c26f++){if(0x0==_0x25a29b[_0x20c26f]['length'])continue;const _0x37c917=[];for(let _0x3eab4e=_0x20c26f+0x1;_0x3eab4e<_0x25a29b['length'];_0x3eab4e++)0x0!=_0x25a29b[_0x3eab4e]['length']&&_0x5c6e9a(_0x25a29b[_0x20c26f],_0x25a29b[_0x3eab4e])&&_0x37c917['push'](_0x3eab4e);for(const _0x1e7f6c of _0x37c917)_0x25a29b[_0x20c26f]=_0x25a29b[_0x20c26f]['concat'](_0x25a29b[_0x1e7f6c]),_0x25a29b[_0x1e7f6c]=[];}for(const _0x3ce957 of _0x25a29b)for(let _0x44c121=0x0;_0x44c121<_0x3ce957['length'];_0x44c121++)_0x3ce957[_0x44c121]['next']=_0x3ce957[_0x44c121+0x1]||null;for(const _0x34981f of _0x25a29b)for(let _0x2960ce=0x0;_0x2960ce<_0x34981f['length'];_0x2960ce++)_0x34981f[_0x2960ce]['previous']=_0x34981f[_0x2960ce-0x1]||null;function _0x5c6e9a(_0x2248a3,_0x1769b6){if(_0x2248a3[0x0]['attributes']['groupId']!==_0x1769b6[0x0]['attributes']['groupId']&&_0x2248a3[0x0]['author']!==_0x1769b6[0x0]['author'])return!0x1;if(!function(_0x554e53,_0x5a1cde){if(!_0x554e53['hasComments']&&!_0x5a1cde['hasComments'])return!0x0;if(_0x554e53['hasComments']&&_0x5a1cde['hasComments'])return!0x1;if(_0x554e53['hasComments']&&_0x5a1cde['createdAt']<_0x554e53['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5a1cde['hasComments']&&_0x554e53['createdAt']<_0x5a1cde['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2248a3[0x0],_0x1769b6[0x0]))return!0x1;const _0x68d692=Bt(_0x2248a3[0x0]['attributes'],'groupId'),_0x4c5703=Bt(_0x1769b6[0x0]['attributes'],'groupId');if(!_0x58c209(_0x68d692,_0x4c5703))return!0x1;return!!_0x2248a3['every'](_0x237caf=>_0x1769b6['some'](_0x42d105=>_0x237caf['getFirstRange']()['isEqual'](_0x42d105['getFirstRange']())))&&_0x1769b6['every'](_0x22abfd=>_0x2248a3['some'](_0x48719a=>_0x22abfd['getFirstRange']()['isEqual'](_0x48719a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5db78d){const _0x460b41=Array['from'](_0x5db78d),_0x58656b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x321c11=_0x58656b['filter'](_0x2ef0f5=>!_0x5db78d['has'](_0x2ef0f5)),_0x4f3d8c=new Map(_0x460b41['map'](_0x42ca18=>[_0x42ca18,this['_suggestionFactory']['getSuggestionCallback'](_0x42ca18['type'],_0x42ca18['subType'],'join')])),_0x2b276e=new Map(_0x58656b['map'](_0x58ad11=>[_0x58ad11,_0x58ad11['getRanges']()]));for(let _0xa6f2a5=0x0;_0xa6f2a5<_0x460b41['length'];_0xa6f2a5++){if(_0x54c07a(this,_0x460b41[_0xa6f2a5],_0x460b41,_0xa6f2a5+0x1))return!0x0;}for(let _0x671687=0x0;_0x671687<_0x460b41['length'];_0x671687++){if(_0x54c07a(this,_0x460b41[_0x671687],_0x321c11,0x0))return!0x0;}return!0x1;function _0x54c07a(_0x4cac3e,_0x26201b,_0x22ac56,_0x2aa074){for(let _0xe938aa=_0x2aa074;_0xe938aa<_0x22ac56['length'];_0xe938aa++){const _0x18cd38=_0x22ac56[_0xe938aa];if(_0x18cd38['type']!==_0x26201b['type']||_0x18cd38['author']['id']!==_0x26201b['author']['id']||_0x18cd38['subType']!==_0x26201b['subType'])continue;if(!Pt(_0x26201b,_0x18cd38,['groupId']))continue;if('attribute'==_0x26201b['type']&&_0x26201b['data']['oldValue']!=_0x18cd38['data']['oldValue'])continue;if('attribute'==_0x26201b['type']&&_0x4cac3e['_isBlockAttribute'](_0x26201b['data']['key']))continue;if('formatBlock'==_0x26201b['type']){const _0x1f3004=_0x4cac3e['editor']['model'],_0x95886c=_0x26201b['getContainedElement']();if(_0x95886c&&(_0x1f3004['schema']['isObject'](_0x95886c)||_0x1f3004['schema']['isLimit'](_0x95886c)))continue;}const _0x8dc88b=_0x4f3d8c['get'](_0x26201b),_0x2ad53b=_0x2b276e['get'](_0x26201b),_0xd690c7=_0x2b276e['get'](_0x18cd38),_0x27c5f6=_0x26201b['commentThread']&&_0x26201b['commentThread']['length'],_0x368e7c=_0x18cd38['commentThread']&&_0x18cd38['commentThread']['length'];if(!_0x27c5f6&&_0x8dc88b(_0xd690c7,_0x2ad53b))return _0x4cac3e['_joinSuggestions'](_0x18cd38,_0x26201b),_0x2b276e['delete'](_0x26201b),!0x0;if(!_0x368e7c&&_0x8dc88b(_0x2ad53b,_0xd690c7))return _0x4cac3e['_joinSuggestions'](_0x26201b,_0x18cd38),_0x2b276e['delete'](_0x18cd38),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5c757d,_0x1ebdc3){if(_0x5c757d['isMultiRange']){for(const _0xd6c197 of _0x1ebdc3['getRanges']())_0x5c757d['addRange'](_0xd6c197);}else{const _0x2abd98=_0x1ebdc3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5c757d,this['_model']['createRange'](_0x5c757d['getFirstRange']()['start'],_0x2abd98));}_0x1ebdc3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x36a2e4,_0x735404){const _0x28c9fd=_0x36a2e4['startsWith']('format')||_0x36a2e4['startsWith']('attribute')?'FORMATTING':_0x36a2e4['toUpperCase']();return o(this['editor']['locale'],_0x735404+'_'+_0x28c9fd+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5440ca=this['editor'];if(!_0x5440ca['ui'])return;const {ariaLiveAnnouncer:_0x2bbd69}=_0x5440ca['ui'];_0x16d88b(this['_model'],({left:_0x312df4,entered:_0x35ddf8})=>{for(const _0x22d225 of _0x312df4){const {group:_0x4bcd0e,type:_0x2d8a91}=this['_splitMarkerName'](_0x22d225['name']);if('suggestion'===_0x4bcd0e){_0x2bbd69['announce'](this['_getMarkerAnnouncementText'](_0x2d8a91,'LEAVE'));break;}}for(const _0xff9a17 of _0x35ddf8){const {group:_0x243f36,type:_0x1a9d10}=this['_splitMarkerName'](_0xff9a17['name']);if('suggestion'===_0x243f36){_0x2bbd69['announce'](this['_getMarkerAnnouncementText'](_0x1a9d10,'ENTER'));break;}}});}['_processAttributeChanges'](_0x4805e4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4542f8=this['editor'],_0x25f67e=_0x4542f8['model']['document']['differ']['getChanges']();if(0x0==_0x25f67e['length'])return!0x1;const _0x42298d=[],_0xcb24d2=_0x25f67e['filter'](_0x59f2ae=>'attribute'==_0x59f2ae['type']),_0x3dca0d=_0x25f67e['filter'](_0xadc67b=>'insert'==_0xadc67b['type']&&'$text'!=_0xadc67b['name']),_0x59f95=_0x25f67e['filter'](_0x56700a=>'remove'==_0x56700a['type']&&'$text'!=_0x56700a['name']);for(const _0x4e4362 of _0xcb24d2)_0x42298d['push']({'key':_0x4e4362['attributeKey'],'newValue':_0x4e4362['attributeNewValue'],'oldValue':_0x4e4362['attributeOldValue'],'range':Ot(_0x4e4362['range'],_0x4542f8['model'])});for(const _0x42c15d of _0x3dca0d){const _0x21254d=_0x59f95['find'](_0x514552=>_0x514552['position']['isEqual'](_0x42c15d['position']));_0x21254d&&_0x42298d['push']({'key':m,'newValue':_0x42c15d['name'],'oldValue':_0x21254d['name'],'range':_0x4542f8['model']['createRangeOn'](_0x42c15d['position']['nodeAfter'])});}return 0x0!=_0x42298d['length']&&this['_reduceExistingSuggestions'](_0x4805e4,_0x42298d);}['_processAttributeSuggestions'](_0x312925){let _0x3593f2=!0x1;const _0x39e1fd=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x383b83=>_0x383b83['data']['newRange']&&_0x383b83['name']['startsWith']('suggestion:attribute:'));for(const _0x2f850c of _0x39e1fd){const {subType:_0x39e58c,id:_0x541b4e}=this['_splitMarkerName'](_0x2f850c['name']),_0x569847=_0x39e58c['split']('|')[0x0];for(const _0x3023c4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3023c4['id']!=_0x541b4e&&'attribute'==_0x3023c4['type']&&_0x3023c4['data']&&_0x3023c4['data']['key']==_0x569847&&_0x3023c4['getFirstRange']()['isIntersecting'](_0x2f850c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3023c4,_0x2f850c['data']['newRange'],_0x312925),_0x3593f2=!0x0);}return _0x3593f2;}['_recordAttributeChanges'](_0x247868){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x247868();}['_isRegisteredAttribute'](_0x388467){const _0x2e29c2=this['_isBlockAttribute'](_0x388467),_0x3bbcfc=this['_inlineAttributeKeys']['has'](_0x388467);return _0x2e29c2||_0x3bbcfc;}['_reduceExistingSuggestions'](_0x55bcde,_0x4d77d1){if(0x0==_0x4d77d1['length'])return!0x1;let _0xc57325=!0x1;for(const _0x3414f6 of _0x4d77d1){const _0x45fcc7=this['_findSuggestions'](_0x3414f6['range'],'attribute')['filter'](_0x36f4ed=>!_0x36f4ed['meta']['isNextTo'])['map'](_0x298874=>_0x298874['suggestion']),_0x4dea78=_0x223067({'newValue':_0x3414f6['newValue']});_0x45fcc7['filter'](_0x168375=>{const [_0x2a9c57,_0x10eba1]=_0x168375['subType']['split']('|');return _0x2a9c57==_0x3414f6['key']&&_0x10eba1!=_0x4dea78;})['forEach'](_0x5e343e=>{this['_reduceSuggestionAttributeRange'](_0x5e343e,_0x3414f6['range'],_0x55bcde),_0xc57325=!0x0;});}return _0xc57325;}['_reduceSuggestionAttributeRange'](_0x2357d1,_0x2b6b9a,_0x46584b){const _0x6c676=_0x2357d1['getFirstRange']()['getDifference'](_0x2b6b9a);0x0!==_0x6c676['length']?0x1!==_0x6c676['length']?this['_breakSuggestionMarker'](_0x2357d1,_0x2b6b9a['start'],_0x2b6b9a['end']):this['_setSuggestionRange'](_0x2357d1,_0x6c676[0x0]):_0x46584b['removeMarker'](_0x2357d1['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x546e96){this['_editor']=_0x546e96,this['_model']=_0x546e96['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x586966,_0x22f97d,_0x3871a8,_0x4ac961,_0x554b58,_0x3d82b1){return new u(this['_model'],{'type':_0x586966,'subType':_0x22f97d,'id':_0x3871a8,'author':_0x4ac961,'creator':_0x4ac961,'attributes':_0x554b58,'onAttributesChange':_0x3d82b1,'onAccept':(..._0x505c43)=>this['getSuggestionCallback'](_0x586966,_0x22f97d,'accept')(..._0x505c43),'onDiscard':(..._0x3b9235)=>this['getSuggestionCallback'](_0x586966,_0x22f97d,'discard')(..._0x3b9235)});}['registerCustomCallback'](_0x549fd3,_0x52018c,_0x48df65,_0x72930b){const _0x18abb3=_0x549fd3+':'+_0x52018c+':'+_0x48df65;this['_customCallbacks']['set'](_0x18abb3,_0x72930b);}['getSuggestionCallback'](_0x4b7388,_0x49552e,_0x37bd50){const _0x47a704=_0x4b7388+':'+_0x49552e+':'+_0x37bd50;return this['_customCallbacks']['get'](_0x47a704)||this['_defaultCallbacks']['get'](_0x4b7388+':'+_0x37bd50);}['_registerDefaultCallbacks'](){const _0x28815e=()=>!0x1,_0x1bbd30=_0x75bf47=>{_0x75bf47['sort']((_0x3800f1,_0x4dac83)=>_0x3800f1['start']['isBefore'](_0x4dac83['start'])?0x1:-0x1),this['_model']['change'](_0x394809=>{for(const _0x3f9383 of _0x75bf47){let _0x1dda92;_0x1dda92=_0x3f9383['end']['isAtEnd']&&_0x3f9383['end']['parent']==_0x3f9383['start']['nodeAfter']?_0x394809['createSelection'](_0x3f9383['start']['nodeAfter'],'on'):_0x394809['createSelection'](_0x3f9383),this['_model']['deleteContent'](_0x1dda92,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x647d07=(_0xa7d013,_0x1faec6)=>{_0x1faec6&&this['_model']['change'](_0x219892=>{const {commandName:_0x9c9349,commandParams:_0x3a5e11=[]}=_0x1faec6,_0x195cfa=_0xa7d013['map'](_0x2a4a97=>(Tt(_0x2a4a97)&&(_0x2a4a97=this['_model']['createRange'](_0x2a4a97['end'])),_0x2a4a97))['filter'](_0x1ef22a=>'$graveyard'!==_0x1ef22a['root']['rootName']);if(_0x195cfa['length']<0x1)return;const _0x24422d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5bceac=>_0xef9d24['fromRange'](_0x5bceac));_0x219892['setSelection'](_0x195cfa);for(const _0xe2c5ff of this['_editor']['commands']['commands']())_0xe2c5ff['refresh']();_0x3a5e11['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x9c9349,..._0x3a5e11);const _0x2bd565=_0x24422d['filter'](_0x39a611=>'$graveyard'!=_0x39a611['root']['rootName']);_0x2bd565['length']>0x0&&_0x219892['setSelection'](_0x2bd565);for(const _0x43c826 of _0x24422d)_0x43c826['detach']();});},_0x346748=(_0x426806,_0x5a151d)=>0x1==_0x426806['length']&&0x1==_0x5a151d['length']&&_0x426806[0x0]['end']['isEqual'](_0x5a151d[0x0]['start']),_0x246bfc=(_0x50e05a,_0x410476,_0x36e0fd,_0x54b76a)=>Ft(_0x50e05a,_0x410476,_0x36e0fd,_0x54b76a,this['_model'])?[_0x50e05a,_0x410476]:Ft(_0x410476,_0x50e05a,_0x54b76a,_0x36e0fd,this['_model'])?[_0x410476,_0x50e05a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x28815e),this['_defaultCallbacks']['set']('insertion:discard',_0x1bbd30),this['_defaultCallbacks']['set']('insertion:join',_0x346748),this['_defaultCallbacks']['set']('insertion:chain',_0x246bfc),this['_defaultCallbacks']['set']('deletion:accept',_0x1bbd30),this['_defaultCallbacks']['set']('deletion:discard',_0x28815e),this['_defaultCallbacks']['set']('deletion:join',_0x346748),this['_defaultCallbacks']['set']('deletion:chain',_0x246bfc),this['_defaultCallbacks']['set']('formatInline:accept',_0x647d07),this['_defaultCallbacks']['set']('formatInline:discard',_0x28815e),this['_defaultCallbacks']['set']('formatInline:join',_0x346748),this['_defaultCallbacks']['set']('formatInline:chain',_0x28815e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x647d07),this['_defaultCallbacks']['set']('formatBlock:discard',_0x28815e),this['_defaultCallbacks']['set']('formatBlock:join',_0x346748),this['_defaultCallbacks']['set']('formatBlock:chain',_0x28815e),this['_defaultCallbacks']['set']('attribute:accept',_0x28815e),this['_defaultCallbacks']['set']('attribute:discard',(_0x229b43,_0x56dcf2)=>{if(!_0x56dcf2)return;const _0x4a8b7d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4ff23d=>{if(_0x56dcf2['key']==m)for(const _0xaa22ea of _0x229b43){const _0x1908e8=_0xaa22ea['start']['nodeAfter'],_0x1a6446=_0x56dcf2['oldValue'];_0x4ff23d['rename'](_0x1908e8,_0x1a6446);}else{if(_0x4a8b7d['_isBlockAttribute'](_0x56dcf2['key'])){for(const _0x9cf2bb of _0x229b43)void 0x0!==_0x56dcf2['oldValue']?_0x4ff23d['setAttribute'](_0x56dcf2['key'],_0x56dcf2['oldValue'],_0x9cf2bb['start']['nodeAfter']):_0x4ff23d['removeAttribute'](_0x56dcf2['key'],_0x9cf2bb['start']['nodeAfter']);}else{for(const _0x110a22 of _0x229b43)_0x56dcf2['oldValue']?_0x4ff23d['setAttribute'](_0x56dcf2['key'],_0x56dcf2['oldValue'],_0x110a22):_0x4ff23d['removeAttribute'](_0x56dcf2['key'],_0x110a22);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x346748);}}function Rt(_0x3ec657,_0x416c62,_0x3b2a76){for(const _0x429b25 of _0x416c62['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x429b25['root']==_0x429b25)return!0x1;if(!_0x3b2a76['containsItem'](_0x429b25))return!0x1;if(_0x3ec657['isObject'](_0x429b25)||_0x3ec657['isLimit'](_0x429b25))return!0x0;}return!0x1;}function Tt(_0x2811f2){return _0x2811f2['end']['parent']==_0x2811f2['start']['nodeAfter']&&_0x2811f2['end']['isAtStart'];}function Et(_0x4827df,_0x2bb109,_0x2d0431,_0xffb369){const _0x57666a=_0x30d31c=>!_0x30d31c['item']['is']('$textProxy')&&!_0xffb369['isObject'](_0x30d31c['item']),_0x13342c=_0x4827df['start']['getLastMatchingPosition'](_0x57666a),_0x47845e=_0x4827df['end']['getLastMatchingPosition'](_0x57666a,{'direction':'backward'});return(!_0x4827df['start']['isEqual'](_0x13342c)||!_0x4827df['end']['isEqual'](_0x47845e))&&(_0x13342c['isBefore'](_0x47845e)?_0x2d0431['updateMarker'](_0x2bb109,{'range':_0x2d0431['createRange'](_0x13342c,_0x47845e)}):_0x2d0431['removeMarker'](_0x2bb109),!0x0);}function Vt(_0x38ce73){return _0x223067(_0x38ce73);}function Ut(_0x1b1492){const _0x3167f8=_0x1b1492['start']['nodeAfter'];return _0x3167f8&&_0x3167f8['is']('element');}function Ot(_0x48c3f9,_0x1963dd){return null==_0x48c3f9['end']['nodeBefore']&&_0x48c3f9['end']['parent']==_0x48c3f9['start']['nodeAfter']?Gt(_0x48c3f9['start']['nodeAfter'],_0x1963dd):_0x48c3f9;}function Gt(_0xf3405d,_0x2bcf28){const _0xee4052=_0x2bcf28['schema']['isObject'](_0xf3405d)||_0x2bcf28['schema']['isSelectable'](_0xf3405d);return _0x2bcf28['createRange'](_0x2bcf28['createPositionAt'](_0xf3405d,'before'),_0xee4052?_0x2bcf28['createPositionAfter'](_0xf3405d):_0x2bcf28['createPositionAt'](_0xf3405d,'end'));}function Ft(_0x11f9fe,_0x548b67,_0x534cc4,_0x3621b0,_0x30522d){if(!Pt(_0x11f9fe,_0x548b67))return!0x1;if(_0x534cc4['end']['isEqual'](_0x3621b0['start']))return!0x0;if(_0x11f9fe['type']!=_0x548b67['type'])return!0x1;if(!_0x534cc4['end']['isTouching'](_0x3621b0['start']))return!0x1;const _0x3b21c0=_0x30522d['createRange'](_0x534cc4['end'],_0x3621b0['start'])['getWalker']();for(const _0x51acdb of _0x3b21c0)if(['elementStart','elementEnd']['includes'](_0x51acdb['type'])&&_0x30522d['schema']['isLimit'](_0x51acdb['item']))return!0x1;return!0x0;}function Pt(_0x57b9e1,_0x5dc0e7,_0x356fef=[]){return!(!_0x57b9e1['_isDataLoaded']||!_0x5dc0e7['_isDataLoaded'])&&_0x58c209(Bt(_0x57b9e1['attributes'],_0x356fef),Bt(_0x5dc0e7['attributes'],_0x356fef));}function Lt(_0xcdd22b,_0xb47310){const _0x5b598f=Ht(_0xcdd22b['attributes']),_0x469f0b=Ht(_0xb47310);if(!_0xcdd22b['_isDataLoaded'])return!0x1;for(const _0x289774 of Object['keys'](_0x469f0b))if(!_0x58c209(_0x5b598f[_0x289774],_0x469f0b[_0x289774]))return!0x1;return!0x0;}function Ht(_0xca44d9){const _0x1e7f71=Object['assign']({},_0xca44d9);return delete _0x1e7f71['skipNestingCheck'],delete _0x1e7f71['tablePasteChainId'],_0x1e7f71;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0x44d863(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x39f1ac,_0x2e0c92,_0x123ec7,_0xc3a638){super(),this['model']=_0x2e0c92,this['view']=_0x123ec7,this['commentThreadController']=_0xc3a638,this['_editor']=_0x39f1ac,this['_acceptCommand']=_0x39f1ac['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x39f1ac['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x138cae,_0x5d8015)=>_0x138cae||_0x5d8015),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5ea709=>_0x5ea709&&this['_editor']['model']['canEditAt'](_0x2e0c92['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1cc1b5=>_0x1cc1b5&&this['_editor']['model']['canEditAt'](_0x2e0c92['getRanges']())),this['_pendingAction']=null,_0x123ec7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x123ec7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x123ec7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x123ec7,'change:isDirty',()=>{_0x123ec7['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 _0x8bd894=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x8bd894);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x36730d{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x3f5d16,_0x3551f7,_0x4f1e64,_0x4d0a6c){super(_0x3f5d16),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3551f7['authoredAt']),this['bind']('authoredAt')['to'](_0x3551f7),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3551f7,this['_localUser']=_0x4f1e64,this['_config']=_0x4d0a6c,_0x4d0a6c['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:_0x2c94cf}=this['_config'];this['commentsListView']=new _0x2c94cf(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',_0x19b06c=>_0x19b06c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5ec5b0,_0x479e68)=>_0x5ec5b0||!!_0x479e68);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x35477a}=this['_config'],_0x7b6cbe=new _0x35477a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x548f75=_0x7b6cbe['commentInputView'];return _0x7b6cbe['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x548f75,'value',(_0x2f6c84,_0x2cd6f0,_0xd2a1eb)=>!!_0xd2a1eb||_0x2f6c84&&!_0x2cd6f0),_0x548f75['on']('submit',(_0x3bfb96,_0x207137)=>{this['fire']('addComment',_0x207137),_0x548f75['editor']['setData']('');}),_0x548f75['on']('cancel',()=>this['focus']()),_0x548f75['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x7b6cbe;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x4b03e0,_0x5a8b52,_0x129a83,_0x33f6b8){super(_0x4b03e0,_0x5a8b52,_0x129a83,_0x33f6b8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x24a4ef=>_0x24a4ef&&_0x24a4ef[0x0]?_0x24a4ef[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x111f47,_0x26890b)=>{let _0x273dc8='';for(const _0x30ce3f of _0x111f47)_0x273dc8+='<p>'+ds(_0x30ce3f['content'],_0x30ce3f['color'])+'</p>';return _0x26890b?_0x273dc8:_0xd4604a(_0x273dc8,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x4b03e0,'Accept\x20suggestion'),_0x2c0fde['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x4b03e0,'Discard\x20suggestion'),_0x2c0fde['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x2db2ee(_0x4b03e0,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5e63b=this['bindTemplate'],_0x169e69=[{'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':_0x5e63b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5e63b['to']('authoredAt',_0x4b7bb8=>this['_config']['formatDateTime'](_0x4b7bb8))}]}]},{'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']&&_0x169e69['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0xc5c6c4={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x5e63b['if']('isActive','ck-suggestion-wrapper--active'),_0x5e63b['to']('type',_0x1e952f=>'ck-suggestion-'+_0x1e952f),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':_0x169e69}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0xc5c6c4['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)),_0xc5c6c4;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x5290ec,_0x3be22c,_0x19c337)=>{this['_descriptionElement']['innerHTML']=_0x19c337;});}['_createButton'](_0x4edea9,_0x54c117,_0x5d40c5,_0x470017,_0x2ea04f){const _0x2b704a=new _0x4f6b58(this['locale']);return _0x2b704a['set']({'label':_0x4edea9,'icon':_0x54c117,'tooltip':!0x0,'tooltipPosition':_0x2ea04f}),_0x2b704a['extendTemplate']({'attributes':{'class':_0x5d40c5}}),_0x2b704a['on']('execute',()=>{this['fire'](_0x470017,this['_model']['id']);}),_0x2b704a;}['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(_0x3d1fee,_0x2ce0ca){let _0x4b7145='';return _0x4b7145+=_0x3d1fee['split']('*')['map']((_0x52c8a8,_0xdcfa65)=>_0xdcfa65%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x52c8a8)+'</span>':us(_0x52c8a8))['join'](''),_0x2ce0ca&&(_0x4b7145+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2ce0ca['value']+'\x22\x20title=\x22'+_0x2ce0ca['title']+'\x22></span>'),_0x4b7145;}function us(_0xb082ab){const _0x162e2e=document['createElement']('span');return _0x162e2e['innerText']=_0xb082ab,_0x162e2e['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 _0x2c20e0{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x18293d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x25ec84){super(_0x25ec84),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x48a496=this['editor']['config'];_0x48a496['define']('trackChanges.SuggestionThreadView',ne),_0x48a496['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x48a496['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x14fa07,_0x865663){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x147664,_0x594b4e]of this['_handleControllerBuffer']){const _0x754251=this['_suggestionToController']['has'](_0x147664);_0x754251||_0x594b4e?_0x754251&&_0x594b4e&&this['_destroyController'](_0x147664):this['_initializeController'](_0x147664);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x14fa07,_0x865663);}['init'](){const _0x840731=this['editor'],_0x6c5da6=_0x840731['plugins']['get']('TrackChangesEditing'),_0xb09e8d=_0x840731['plugins']['get']('Annotations'),_0x2e4f99=_0x840731['plugins']['get']('EditorAnnotations'),_0x589acc=_0x840731['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2e4f99['addSourceCollector'](()=>{const _0x3b42fe=[];for(const [_0x147977,_0x126a58]of Array['from'](this['_suggestionToController'])){const _0x565736=_0x147977['getAllAdjacentSuggestions'](),_0x2d0791=[];for(const _0xf945ed of _0x565736){if(!_0xf945ed['isInContent'])continue;if(_0xf945ed['isMultiRange']){_0x2d0791['push'](..._0xf945ed['getRanges']());continue;}const _0x40028f=_0xf945ed['getFirstRange']();if(_0x2d0791['length']>0x0){const _0x291d57=_0x2d0791[0x0]['getJoined'](_0x40028f);if(_0x291d57){_0x2d0791[0x0]=_0x291d57;continue;}}_0x2d0791['push'](_0x40028f);}_0x3b42fe['push']([_0x126a58['view'],_0x2d0791]);}return _0x3b42fe;}),this['listenTo'](_0x6c5da6,'suggestionLoaded',(_0x335a97,_0x920b3c)=>{this['listenTo'](_0x920b3c,'change:previous',(_0x35ef55,_0xbc72f1,_0x23d520,_0x9ba48f)=>{_0x920b3c['isInContent']&&(null==_0x23d520?(this['_updateController'](_0x9ba48f['head']),this['_handleSuggestionControllerDelayed'](_0x920b3c,!0x1)):(this['_updateController'](_0x23d520['head']),null==_0x9ba48f&&this['_handleSuggestionControllerDelayed'](_0x920b3c,!0x0)));}),null!==_0x920b3c['previous']?this['_updateController'](_0x920b3c['head']):this['_handleSuggestionControllerDelayed'](_0x920b3c,!0x1);}),this['listenTo'](_0x6c5da6,'suggestionUnloaded',(_0x2b7ae9,_0x3b1996,_0x2e0689)=>{this['stopListening'](_0x3b1996,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3b1996),this['_suggestionToController']['has'](_0x3b1996)&&this['_destroyController'](_0x3b1996),_0x2e0689&&this['_updateController'](_0x2e0689['head']);}),this['listenTo'](_0x6c5da6,'suggestionChanged',(_0x38246c,_0x55bbb7)=>{this['_updateController'](_0x55bbb7);}),this['listenTo'](_0xb09e8d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x589acc,'addComment',(_0x3fa125,{threadId:_0x2caa02,isFromAdapter:_0x3d4a24})=>{if(_0x3d4a24||!_0x6c5da6['hasSuggestion'](_0x2caa02))return;const _0x1d8b47=_0x6c5da6['getSuggestion'](_0x2caa02);this['_suggestionToController']['get'](_0x1d8b47)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2c5d99=this['editor']['plugins']['get']('Annotations'),_0x469ee6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d1f39=Array['from'](_0x2c5d99['activeAnnotations'],_0x5b8b11=>_0x5b8b11['innerView'])['filter'](_0x3d6ec1=>this['_viewToController']['has'](_0x3d6ec1)),_0x5d4b75=[];for(const _0x4ac70c of _0x3d1f39){const _0x1df3fe=this['_viewToController']['get'](_0x4ac70c)['model']['getAllAdjacentSuggestions']();_0x5d4b75['push'](..._0x1df3fe['reduce']((_0x2541c2,_0x4d16ed)=>[..._0x2541c2,..._0x4d16ed['getMarkerNames']()],[]));}_0x469ee6['activeMarkers']=_0x5d4b75;}['_addUIComponentsToFactory'](){const _0x4d2a51=this['editor'],_0x569d52=_0x4d2a51['locale'],_0x4b04c1=o(_0x569d52,'Track\x20changes'),_0x5621d2=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x4b04c1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x569d52,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x569d52,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x569d52,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x569d52,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x36786b of _0x5621d2)if(ae(_0x36786b)){const _0x5b1139=_0x4d2a51['commands']['get'](_0x36786b['model']['commandName']);_0x36786b['model']['bind']('isOn','isEnabled')['to'](_0x5b1139,'value','isEnabled');}_0x4d2a51['ui']['componentFactory']['add']('trackChanges',_0x3a5690=>this['_createToolbarButton'](_0x3a5690,_0x5621d2,_0x4b04c1)),_0x4d2a51['ui']['componentFactory']['add']('menuBar:trackChanges',_0x29308d=>this['_createMenuBarMenu'](_0x29308d,_0x5621d2,_0x4b04c1));}['_createToolbarButton'](_0x2b99ad,_0x267a56,_0x5afea8){const _0x89188f=zt(_0x2b99ad,Zt),_0x58b362=this['editor']['commands']['get']('trackChanges');_0x89188f['buttonView']['set']({'tooltip':_0x5afea8,'label':_0x5afea8,'icon':ie}),_0x89188f['buttonView']['bind']('isOn')['to'](_0x58b362,'value'),_0x89188f['buttonView']['on']('execute',()=>{_0x58b362['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x89188f,_0x267a56,{'role':'menu'});const _0x428789=[];for(const _0x4f54b5 of _0x267a56)ae(_0x4f54b5)&&_0x428789['push'](this['editor']['commands']['get'](_0x4f54b5['model']['commandName']));const _0x36eb8b=_0x89188f['buttonView'];return _0x36eb8b['actionView']['unbind']('isEnabled'),_0x36eb8b['arrowView']['unbind']('isEnabled'),_0x36eb8b['actionView']['bind']('isEnabled')['to'](_0x58b362,'isEnabled'),_0x36eb8b['arrowView']['bind']('isEnabled')['toMany'](_0x428789,'isEnabled',(..._0x141319)=>_0x141319['some'](_0x2168f7=>_0x2168f7)),_0x89188f['on']('execute',_0x76023a=>{this['editor']['execute'](_0x76023a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x89188f;}['_createMenuBarMenu'](_0x429aeb,_0x12acb7,_0x2b1e92){const _0x558fc9=new Kt(_0x429aeb),_0x2650c7=this['editor']['commands']['get']('trackChanges');_0x558fc9['buttonView']['set']({'label':_0x2b1e92,'icon':ie});const _0x59a456=new Qt(_0x429aeb);for(const _0x33af54 of _0x12acb7){if('separator'==_0x33af54['type']){_0x59a456['items']['add'](new Jt(_0x429aeb));continue;}const _0x47f137=new Xt(_0x429aeb,_0x558fc9),_0x2e50f8=new Yt(_0x429aeb),_0x179eb7=_0x33af54['model'];_0x2e50f8['bind'](...Object['keys'](_0x179eb7))['to'](_0x179eb7),_0x2e50f8['delegate']('execute')['to'](_0x558fc9),_0x2e50f8['on']('execute',()=>{this['editor']['execute'](_0x179eb7['commandName']),this['editor']['editing']['view']['focus']();}),_0x47f137['children']['add'](_0x2e50f8),_0x59a456['items']['add'](_0x47f137);}return _0x558fc9['bind']('isEnabled')['to'](_0x2650c7,'isEnabled'),_0x558fc9['panelView']['children']['add'](_0x59a456),_0x558fc9;}['_initializeController'](_0x57c027){const _0xbb44fc=this['editor'],_0x43ddd9=_0xbb44fc['config'],_0x3b92c2=_0xbb44fc['plugins']['get']('Annotations'),_0x5fd99d=_0xbb44fc['plugins']['get']('CommentsRepository'),_0x498a85=_0xbb44fc['plugins']['get']('EditorAnnotations'),_0x18626a=_0xbb44fc['plugins']['get'](_0x18293d)['me'],_0x49f4a4=_0x43ddd9['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x38f328,CommentThreadInputView:_0x261deb}=_0xbb44fc['plugins']['get']('CommentsUI');let _0x4ac4fa,_0x326ced;this['_annotationViews']['has'](_0x57c027['id'])?(_0x326ced=this['_annotationViews']['get'](_0x57c027['id']),_0x4ac4fa=_0x326ced['mainView']):(_0x4ac4fa=new _0x49f4a4(_0xbb44fc['locale'],_0x57c027,_0x18626a,{'disableComments':this['_disableComments'],'editorConfig':_0x43ddd9['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x43ddd9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x43ddd9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x43ddd9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3f1be2(_0x43ddd9['get']('locale')),'CommentView':_0x43ddd9['get']('comments')['CommentView'],'CommentsListView':_0x38f328,'CommentThreadInputView':_0x261deb}),_0x4ac4fa['acceptButton']['on']('execute',()=>{_0xbb44fc['editing']['view']['focus']();}),_0x4ac4fa['discardButton']['on']('execute',()=>{_0xbb44fc['editing']['view']['focus']();}),_0x326ced=_0x3b92c2['createAnnotationView'](this['editor']['locale'],_0x4ac4fa),_0x326ced['bind']('isDirty')['to'](_0x4ac4fa,'isDirty'),_0x326ced['bind']('length')['to'](_0x4ac4fa),_0x326ced['bind']('type')['to'](_0x4ac4fa,'type',_0x5143d0=>'suggestion-'+_0x5143d0),this['_annotationViews']['set'](_0x57c027['id'],_0x326ced));const _0x30f11b=_0x5fd99d['createCommentThreadController'](_0x57c027['commentThread'],_0x4ac4fa),_0xdfdc49=new oe(_0xbb44fc,_0x57c027,_0x4ac4fa,_0x30f11b),_0x1db29d=_0x57c027['getAllAdjacentSuggestions']()['filter'](_0x19763=>_0x19763['isInContent']);_0x4ac4fa['descriptionParts']=_0xbb44fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1db29d),this['_suggestionToController']['set'](_0x57c027,_0xdfdc49),this['_viewToController']['set'](_0x4ac4fa,_0xdfdc49);const _0x441cc8=_0x3b92c2['createAnnotation']({'view':_0x326ced,'target':()=>{const _0x516b6c=[],_0xc6e870=_0x57c027['getAllAdjacentSuggestions']()['filter'](_0x305824=>_0x305824['isInContent']);for(const _0x1a41e2 of _0xc6e870)_0x516b6c['push'](..._0x1a41e2['getMarkers']());return _0x68ed15(_0xbb44fc['editing'],_0x516b6c);},'type':()=>'suggestion-'+_0xdfdc49['view']['type']});_0x5fd99d['_bindAnnotationToEditors'](_0x4ac4fa,_0x441cc8),_0x3b92c2['add'](_0x441cc8),_0x498a85['registerAnnotation'](_0x441cc8);}['_destroyController'](_0x7d1ddf){const _0x3f0c33=this['editor']['plugins']['get']('CommentsRepository'),_0x456e6b=this['editor']['plugins']['get']('Annotations'),_0x35a9e5=this['_suggestionToController']['get'](_0x7d1ddf),_0x273414=_0x35a9e5['view'],_0x2318dd=_0x456e6b['getByInnerView'](_0x273414);_0x3f0c33['_unbindEditors'](_0x273414),_0x2318dd&&_0x456e6b['remove'](_0x2318dd),this['_suggestionToController']['delete'](_0x7d1ddf),this['_viewToController']['delete'](_0x273414),_0x35a9e5['destroy']();}['_updateController'](_0xf61828){if(!_0xf61828['isInContent']||!this['_suggestionToController']['has'](_0xf61828))return;const _0xada4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22d7e3=this['_suggestionToController']['get'](_0xf61828),_0x17711a=_0xf61828['getAllAdjacentSuggestions']();_0x22d7e3['view']['descriptionParts']=_0xada4f['descriptionFactory']['getDescriptions'](_0x17711a);}['destroy'](){for(const _0x34aa33 of this['_suggestionToController']['keys']())this['_destroyController'](_0x34aa33);for(const _0xc99772 of this['_annotationViews']['values']())_0xc99772['mainView']['destroy']();super['destroy']();}}function ae(_0x26b9fd){return'model'in _0x26b9fd;}class k extends _0x2c20e0{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3c89b2){this['editor']['plugins']['get'](p)['adapter']=_0x3c89b2;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4cb876){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4cb876);}['getSuggestions']({skipNotAttached:_0x4ce8eb=!0x1,toJSON:_0x459071=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4ce8eb,'toJSON':_0x459071});}['getSuggestion'](_0x4b5a2d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4b5a2d);}}const T=['Pagination'];class P extends _0x2c20e0{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3e2f72=this['editor'];if(_0x3e2f72['config']['define']('trackChangesData.editorCreator',_0x464522=>{const _0x45e834=_0x3e2f72['model']['document']['getRootNames']()['reduce']((_0x33ebec,_0x375601)=>(_0x33ebec[_0x375601]='',_0x33ebec),{});return _0x3e2f72['constructor']['create'](_0x45e834,_0x464522);}),'function'!=typeof _0x3e2f72['config']['get']('trackChangesData')['editorCreator'])throw new _0x194952('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x167697){return N(this['editor'],!0x0,_0x167697);}['getDataWithDiscardedSuggestions'](_0x1a5abb){return N(this['editor'],!0x1,_0x1a5abb);}}class D extends _0x2c20e0{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x35da04){super(_0x35da04),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(_0x22c50b){return void 0x0!==_0x22c50b['getRootsAttributes'];}async function N(_0x2a3b59,_0x1e1bfa,_0x46cbed){const _0x472965=_0x5297a0(_0x2a3b59,T);_0x472965['plugins']['push'](p,D),_0x472965['rootsAttributes']=v(_0x2a3b59)?_0x2a3b59['getRootsAttributes']():void 0x0;const _0x3bf56b=document['createDocumentFragment'](),_0x62df19=_0x2a3b59['config']['get']('trackChangesData')['editorCreator'],_0x33a799=await _0x62df19(_0x472965,()=>function(_0x10e706){const _0x12f2e4=document['createElement']('div');return _0x10e706['appendChild'](_0x12f2e4),_0x12f2e4;}(_0x3bf56b));!function(_0xa623e0,_0x478f7d){const _0x900d0a=_0xa623e0['model']['document']['getRootNames']()['reduce']((_0x987e26,_0xd2f7e6)=>(_0x987e26[_0xd2f7e6]=_0xa623e0['data']['get']({'rootName':_0xd2f7e6}),_0x987e26),{}),_0x527cf2=_0xa623e0['plugins']['get']('Users')['users']['map'](_0x15f9c9=>({'id':_0x15f9c9['id'],'name':_0x15f9c9['name']})),_0x1abc3c=_0xa623e0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x16752e=_0xa623e0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x537a12=_0x478f7d['plugins']['get']('Users'),_0x214ca9=_0x478f7d['plugins']['get']('TrackChangesEditing'),_0x438af0=_0x478f7d['plugins']['get']('CommentsRepository');for(const _0x4513b4 of _0x527cf2)_0x537a12['getUser'](_0x4513b4['id'])||_0x537a12['addUser'](_0x4513b4);_0x537a12['me']||_0x537a12['useAnonymousUser']();for(const _0x4effb3 of _0x16752e)_0x438af0['addCommentThread'](_0x4effb3);for(const _0x5802a6 of _0x1abc3c)_0x214ca9['addSuggestionData'](_0x5802a6);_0x478f7d['data']['set'](_0x900d0a);}(_0x2a3b59,_0x33a799),_0x33a799['execute'](_0x1e1bfa?'acceptAllSuggestions':'discardAllSuggestions');const _0x1edd8b=v(_0x33a799)?_0x33a799['getFullData'](_0x46cbed):_0x33a799['data']['get'](_0x46cbed);return await _0x33a799['destroy'](),_0x1edd8b;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};