@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240501.0 → 0.0.0-nightly-20240502.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,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x1e79ec,PendingActions as _0xa7374,icons as _0x18221a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x46c804,ObservableMixin as _0x229435,uid as _0x109dee,insertToPriorityArray as _0x1e1e22,priorities as _0x3ba2dc,logWarning as _0x27ca85,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x387b0f,View as _0x4bb07a,ButtonView as _0x1c8755,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 _0x15e88b,hashObject as _0x37c233,surroundingMarkersDetector as _0x751978,trimHtml as _0x2519d9,UserView as _0x26a901,getDateTimeFormatter as _0x42f9a7,getAllMarkersDomElementsSorted as _0x3fdb71,sanitizeEditorConfig as _0x207bf7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x309129,LiveRange as _0x43239f,LivePosition as _0x27d4fa}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1d6a2b,toWidget as _0x31e57b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x202113,set as _0x1d3b7f,isEqual as _0xa08454,unset as _0x356563,omit as Bt}from'lodash-es';import{Delete as _0x432acf,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4385a8,ShiftEnter as _0x3b3aa8}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x317672 of this['editor']['commands']['commands']())_0x317672['affectsData']&&!this['_enabledCommands']['has'](_0x317672)&&_0x317672['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xe57471 of this['editor']['commands']['commands']())_0xe57471['affectsData']&&!this['_enabledCommands']['has'](_0xe57471)&&_0xe57471['clearForceDisabled']('TrackChangesCommand');}constructor(_0x8b83ca,_0x1df23f){super(_0x8b83ca),this['_enabledCommands']=_0x1df23f,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x299f72){const _0x15f48f=this['_suggestions']['get'](_0x299f72);if(!_0x15f48f)throw new _0x46c804('track-changes-accept-suggestion-not-found',this);const _0x1055d5=_0x15f48f['getRanges']();this['editor']['model']['canEditAt'](_0x1055d5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x15f48f);}constructor(_0x20d0db,_0x35860b){super(_0x20d0db),this['_suggestions']=_0x35860b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1fc6d4){const _0x214a0c=this['_suggestions']['get'](_0x1fc6d4);if(!_0x214a0c)throw new _0x46c804('track-changes-discard-suggestion-not-found',this);const _0x204dbf=_0x214a0c['getRanges']();this['editor']['model']['canEditAt'](_0x204dbf)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x214a0c);}constructor(_0x44f5ac,_0x1af027){super(_0x44f5ac),this['_suggestions']=_0x1af027,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x53ed45){return _0x53ed45['sort']((_0x3c05d9,_0x3699d3)=>'deletion'==_0x3c05d9['type']&&'deletion'!=_0x3699d3['type']?-0x1:'deletion'!=_0x3c05d9['type']&&'deletion'==_0x3699d3['type']?0x1:0x0);}function to(_0x432db2,_0x52277e){let _0x2e279a,_0x5670c8=0x0;const _0x25e6da=[],_0x3c62a4=_0x52277e['schema'];for(;_0x5670c8<_0x432db2['length'];){const _0x2b512b=_0x432db2[_0x5670c8],_0x15fc4b=_0x432db2[_0x5670c8+0x1];_0x2e279a||(_0x2e279a=_0x52277e['createPositionBefore'](_0x2b512b)),co(_0x52277e,_0x2b512b,_0x15fc4b)||(_0x25e6da['push'](_0x52277e['createRange'](_0x2e279a,_0x3c62a4['isObject'](_0x2b512b)?_0x52277e['createPositionAfter'](_0x2b512b):_0x52277e['createPositionAt'](_0x2b512b,'end'))),_0x2e279a=null),_0x5670c8++;}return _0x25e6da;}function co(_0x55ffc2,_0x899c87,_0x599a3c){if(!_0x599a3c)return!0x1;const _0x2449a6=_0x55ffc2['createPositionAfter'](_0x899c87),_0x4c7f8a=_0x55ffc2['createPositionBefore'](_0x599a3c);return _0x2449a6['isTouching'](_0x4c7f8a);}function rs(_0x137760,_0x15b04c,_0x9de1cd){for(;_0x9de1cd['length'];){const _0x29f93e=_0x9de1cd['splice'](0x0,0x64);_0x137760['change'](()=>{for(const _0xaa483f of _0x29f93e)_0xaa483f['isInContent']&&_0x15b04c['execute'](_0xaa483f['id']);});}}class x extends ts{['refresh'](){const _0x1ff1df=Array['from'](this['_suggestions']['values']())['some'](_0x384da4=>_0x384da4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1ff1df;}['execute'](){const _0x48dda1=ss(Array['from'](this['_suggestions']['values']()));for(const _0xb1ff51 of _0x48dda1){const _0xff5ce6=_0xb1ff51['getRanges']();if(!this['editor']['model']['canEditAt'](_0xff5ce6))return;}rs(this['editor']['model'],this['_command'],_0x48dda1);}constructor(_0x16ea8b,_0x7a0d0f,_0x51fb74){super(_0x16ea8b),this['_command']=_0x7a0d0f,this['_suggestions']=_0x51fb74,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x433780=this['editor']['model']['document']['selection'],_0x3db715=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4c19f7,_0x56c552){const _0x225ac8=Array['from'](_0x4c19f7['getRanges']()),_0x30bc45=new Set();for(const _0x1b394b of _0x56c552)if(_0x1b394b['isInContent']){for(const _0x1d7469 of _0x225ac8)for(const _0x10e5f1 of _0x1b394b['getRanges']())(_0x1d7469['isIntersecting'](_0x10e5f1)||_0x4c19f7['isCollapsed']&&!_0x1b394b['isMultiRange']&&_0x1b394b['next']&&_0x10e5f1['end']['isTouching'](_0x1d7469['start']))&&_0x30bc45['add'](_0x1b394b);}return _0x30bc45;}(_0x433780,_0x3db715),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xcc1434=ss(Array['from'](this['_selectedSuggestions']));for(const _0x505b1c of _0xcc1434){const _0x6f7c70=_0x505b1c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x6f7c70))return;}rs(this['editor']['model'],this['_command'],_0xcc1434);}constructor(_0xbe2171,_0xaee75d,_0xe3135b){super(_0xbe2171),this['_command']=_0xaee75d,this['_suggestions']=_0xe3135b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x229435(){get['head'](){let _0x59646b=this;for(;_0x59646b['previous'];)_0x59646b=_0x59646b['previous'];return _0x59646b;}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'](_0x493a6f){this['_markerNames']['add'](_0x493a6f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x21d103=>this['_model']['markers']['get'](_0x21d103))['filter'](_0x113c65=>_0x113c65);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3c1fc0=>{for(const _0x2ccb19 of this['getMarkers']())_0x3c1fc0['removeMarker'](_0x2ccb19);}),this['_markerNames']['clear']();}['removeMarker'](_0x2f21cc){this['_model']['change'](_0x207944=>{_0x207944['removeMarker'](_0x2f21cc);}),this['_markerNames']['delete'](_0x2f21cc);}['addRange'](_0x7a5741){const _0x2160c3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2160c3),this['_model']['change'](_0x4cb6e3=>{_0x4cb6e3['addMarker'](_0x2160c3,{'range':_0x7a5741,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x7e6dbe){for(const _0x4a8d8d of this['getRanges']())if(_0x4a8d8d['isIntersecting'](_0x7e6dbe))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x22e04a=>_0x22e04a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xb6a089,_0x50dcf2)=>[..._0xb6a089,..._0x50dcf2['getItems']()],[]);}['getFirstRange'](){var _0x487430;return(null===(_0x487430=this['getFirstMarker']())||void 0x0===_0x487430?void 0x0:_0x487430['getRange']())||null;}['getContainedElement'](){const _0x3346e0=this['getRanges']();if(0x1!=_0x3346e0['length'])return null;const _0x514f0e=_0x3346e0[0x0],_0x5d9f8b=_0x514f0e['start']['nodeAfter'],_0x276942=_0x514f0e['end']['nodeBefore'];return _0x5d9f8b instanceof _0x309129?_0x5d9f8b!=_0x276942?null:_0x5d9f8b: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 _0x34880d=[];let _0x3c0e6f=this['head'];for(;_0x3c0e6f;)_0x34880d['push'](_0x3c0e6f),_0x3c0e6f=_0x3c0e6f['next'];return _0x34880d;}['setAttribute'](_0x4e2479,_0x2b8896){const _0x509b29=_0x202113(this['attributes']);_0x1d3b7f(_0x509b29,_0x4e2479,_0x2b8896),_0xa08454(_0x509b29,this['attributes'])||(this['attributes']=_0x509b29,this['_onAttributesChange'](_0x509b29));}['removeAttribute'](_0x542995){const _0x5e15dc=_0x202113(this['attributes']);_0x356563(_0x5e15dc,_0x542995),_0xa08454(_0x5e15dc,this['attributes'])||(this['attributes']=_0x5e15dc,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 _0x109dee()['substr'](0x1,0x5);}constructor(_0x2a093e,_0x84f1df){super(),this['_isDataLoaded']=!0x1,this['id']=_0x84f1df['id'],this['type']=_0x84f1df['type'],this['subType']=_0x84f1df['subType']||null,this['author']=_0x84f1df['author'],this['creator']=_0x84f1df['creator']||_0x84f1df['author'],this['isExternal']=Boolean(_0x84f1df['attributes']&&_0x84f1df['attributes']['@external']),this['data']=null,this['_model']=_0x2a093e,this['_onAccept']=_0x84f1df['onAccept'],this['_onDiscard']=_0x84f1df['onDiscard'],this['_onAttributesChange']=_0x84f1df['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x84f1df['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0x23437e,_0x4a53ec,_0x9e36e4){const t=_0x23437e['t'];switch(_0x4a53ec){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',_0x9e36e4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x9e36e4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x9e36e4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x9e36e4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x9e36e4);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',_0x9e36e4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x9e36e4);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',_0x9e36e4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x9e36e4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x9e36e4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x9e36e4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x9e36e4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x9e36e4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x9e36e4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x9e36e4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x9e36e4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x9e36e4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x9e36e4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x9e36e4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x9e36e4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x9e36e4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x9e36e4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x9e36e4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x9e36e4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x9e36e4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x9e36e4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x9e36e4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x9e36e4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x9e36e4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x9e36e4);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'},_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x9e36e4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x9e36e4);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'},_0x9e36e4);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'},_0x9e36e4);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 _0x4a53ec;}}class f{['getDescriptions'](_0x22006c){const _0x1f53dd=[],_0x50ee5c=new Set(),_0x239f23=new Set();for(let _0x49d164=0x0;_0x49d164<_0x22006c['length'];_0x49d164++){const _0xe434a6=_0x22006c[_0x49d164];if(!_0xe434a6['isInContent'])continue;const _0x11fad3=this['_handleCustomCallbackDescription'](_0xe434a6);if(_0x11fad3){if(null!=_0xe434a6['subType']){if(_0x50ee5c['has'](_0xe434a6['subType']))continue;_0x50ee5c['add'](_0xe434a6['subType']);}_0x1f53dd['push'](_0x11fad3);}else{if('attribute'!=_0xe434a6['type'])'insertion'!=_0xe434a6['type']&&'deletion'!=_0xe434a6['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1f53dd,_0xe434a6,_0x22006c[_0x49d164+0x1]);else{const _0x201e50=_0xe434a6['data']['key'];if(_0x239f23['has'](_0x201e50))continue;_0x239f23['add'](_0xe434a6['data']['key']),_0x201e50==m?this['_handleRenameSuggestionDescription'](_0x1f53dd,_0xe434a6):this['_handleAttributeSuggestionDescription'](_0x1f53dd,_0xe434a6);}}}return this['_resolveDescriptionItems'](_0x1f53dd);}['registerDescriptionCallback'](_0x414611){this['_customCallbacks']['push'](_0x414611);}['registerElementLabel'](_0x59ff7f,_0x1229af,_0x49d4dd=_0x3ba2dc['normal']){'function'==typeof _0x59ff7f?_0x1e1e22(this['_itemLabelsCallbacks'],{'matchingCallback':_0x59ff7f,'label':_0x1229af,'priority':_0x49d4dd}):this['_itemLabels']['set'](_0x59ff7f,_0x1229af);}['registerAttributeLabel'](_0x396eb9,_0x57069c){this['_attributeLabels']['set'](_0x396eb9,_0x57069c);}['getItemLabel'](_0x4efa39,_0x26f59e=0x1){let _0x22a9fc;for(const _0x261afa of this['_itemLabelsCallbacks'])if(_0x261afa['matchingCallback'](_0x4efa39)){_0x22a9fc=_0x261afa['label'];break;}return _0x22a9fc||(_0x22a9fc=this['_itemLabels']['get'](_0x4efa39['name'])),_0x22a9fc?_0x22a9fc(_0x26f59e):0x1!==_0x26f59e?_0x26f59e+'\x20'+_0x4efa39['name']+'s':''+_0x4efa39['name'];}['_addDescriptionItems'](_0x234dd9,_0x38d495){const _0x1c60a3=_0x38d495['getFirstRange']()['getWalker'](),_0x2bd102='insertion'==_0x38d495['type']?'add':'remove';for(const _0x35f434 of _0x1c60a3){const _0x301ebc=_0x35f434['item'],_0x2f5be5=_0x234dd9[_0x234dd9['length']-0x1];if(_0x301ebc['is']('$textProxy'))_0x2f5be5&&_0x2f5be5['type']['indexOf']('Container')>-0x1&&_0x234dd9['pop'](),_0x2f5be5&&'text'==_0x2f5be5['type']?_0x2f5be5[_0x2bd102]+=_0x301ebc['data']:_0x234dd9['push']({'type':'text','add':'add'==_0x2bd102?_0x301ebc['data']:'','remove':'remove'==_0x2bd102?_0x301ebc['data']:''});else{if(this['_schema']['isObject'](_0x301ebc)){const _0x297ce8=_0x301ebc;if(_0x2f5be5&&_0x2f5be5['type']['indexOf']('Container')>-0x1&&_0x234dd9['pop'](),'elementEnd'==_0x35f434['type'])continue;_0x2f5be5&&_0x2f5be5['type']==_0x2bd102+'Object'&&_0x2f5be5['element']['name']==_0x297ce8['name']?_0x2f5be5['quantity']++:_0x234dd9['push']({'type':_0x2bd102+'Object','element':_0x297ce8,'quantity':0x1}),_0x1c60a3['skip'](_0x164919=>!('elementEnd'==_0x164919['type']&&_0x164919['item']==_0x301ebc));}else{if(this['_schema']['checkChild'](_0x301ebc,'$text')||_0x301ebc['is']('element','softBreak')){const _0x20b15c=_0x301ebc;if('add'==_0x2bd102&&'elementStart'==_0x35f434['type']||'remove'==_0x2bd102&&'elementEnd'==_0x35f434['type'])continue;if(_0x2f5be5&&-0x1==_0x2f5be5['type']['indexOf']('Container')){'text'==_0x2f5be5['type']&&(_0x2f5be5[_0x2bd102]+='\x0a');continue;}let _0x59bd9f;if(_0x59bd9f='add'==_0x2bd102?_0x20b15c['nextSibling']&&!this['_schema']['isObject'](_0x20b15c['nextSibling'])?_0x20b15c['nextSibling']:null:_0x20b15c['previousSibling']&&!this['_schema']['isObject'](_0x20b15c['previousSibling'])?_0x20b15c['previousSibling']:null,_0x20b15c['isEmpty']||_0x59bd9f&&_0x59bd9f['isEmpty']){const _0x3a4535=_0x59bd9f&&_0x59bd9f['isEmpty']?_0x59bd9f:_0x20b15c;_0x2f5be5&&_0x2f5be5['type']==_0x2bd102+'EmptyContainer'&&_0x2f5be5['element']['name']==_0x3a4535['name']?_0x2f5be5['quantity']++:_0x234dd9['push']({'type':_0x2bd102+'EmptyContainer','element':_0x3a4535,'quantity':0x1});}else _0x234dd9['push']({'type':_0x2bd102+'Container','element':_0x20b15c});}}}}}['_resolveDescriptionItems'](_0x22e92b){const _0x5bf65d=this['_locale'],_0x220755=[],_0x2702c4=[],_0x1fc0f2=[];for(const _0x389e27 of _0x22e92b)switch(_0x389e27['type']){case'text':if(_0x389e27['add']=_0x389e27['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x389e27['remove']=_0x389e27['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x389e27['add']&&''!=_0x389e27['remove']){_0x220755['push']({'type':'replace','content':o(_0x5bf65d,'REPLACE_TEXT',['\x22'+_0x389e27['remove']+'\x22','\x22'+_0x389e27['add']+'\x22'])});continue;}if(null!=_0x389e27['add']['match'](/^ +$/)){_0x220755['push']({'type':'insertion','content':o(_0x5bf65d,'*Insert:*\x20%0',o(_0x5bf65d,'ELEMENT_SPACE',_0x389e27['add']['length']))});continue;}if(null!=_0x389e27['remove']['match'](/^ +$/)){_0x220755['push']({'type':'deletion','content':o(_0x5bf65d,'*Remove:*\x20%0',o(_0x5bf65d,'ELEMENT_SPACE',_0x389e27['remove']['length']))});continue;}if(''!=_0x389e27['add']){_0x220755['push']({'type':'insertion','content':o(_0x5bf65d,'*Insert:*\x20%0','\x22'+_0x389e27['add']+'\x22')});continue;}_0x220755['push']({'type':'deletion','content':o(_0x5bf65d,'*Remove:*\x20%0','\x22'+_0x389e27['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x220755['push']({'type':'insertion','content':o(_0x5bf65d,'*Insert:*\x20%0',this['getItemLabel'](_0x389e27['element'],_0x389e27['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x220755['push']({'type':'deletion','content':o(_0x5bf65d,'*Remove:*\x20%0',this['getItemLabel'](_0x389e27['element'],_0x389e27['quantity']))});continue;case'addContainer':_0x220755['push']({'type':'insertion','content':o(_0x5bf65d,'*Split:*\x20%0',this['getItemLabel'](_0x389e27['element'],_0x389e27['quantity']))});continue;case'removeContainer':_0x220755['push']({'type':'deletion','content':o(_0x5bf65d,'*Merge:*\x20%0',this['getItemLabel'](_0x389e27['element'],_0x389e27['quantity']))});continue;case'addFormat':_0x2702c4['push'](_0x389e27['key']);continue;case'removeFormat':_0x1fc0f2['push'](_0x389e27['key']);continue;default:_0x220755['push'](_0x389e27);}if(_0x2702c4['length']){const _0x2f0b98=_0x2702c4['map'](_0x114891=>this['_attributeLabels']['has'](_0x114891)?this['_attributeLabels']['get'](_0x114891):_0x114891)['join'](',\x20');_0x220755['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2f0b98)});}if(_0x1fc0f2['length']){const _0x133750=_0x1fc0f2['map'](_0x228d3c=>this['_attributeLabels']['has'](_0x228d3c)?this['_attributeLabels']['get'](_0x228d3c):_0x228d3c)['join'](',\x20');_0x220755['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x133750)});}return _0x220755;}['_handleCustomCallbackDescription'](_0x4b9034){for(const _0x985036 of this['_customCallbacks']){const _0x590e0b=_0x985036(_0x4b9034);if(_0x590e0b&&'type'in _0x590e0b)return _0x590e0b;}}['_handleAttributeSuggestionDescription'](_0x4ff98c,_0x11caa1){const _0x5b0885=_0x11caa1['data'],_0xc5d283=void 0x0===_0x5b0885['newValue']?'removeFormat':'addFormat';_0x4ff98c['push']({'type':_0xc5d283,'key':_0x5b0885['key']});}['_handleRenameSuggestionDescription'](_0x2e0b1c,_0x3f5255){_0x2e0b1c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3f5255['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x22e7be,_0x227312,_0x57cde4){if(this['_addDescriptionItems'](_0x22e7be,_0x227312),_0x57cde4&&_0x57cde4['getFirstRange']()&&!_0x227312['getFirstRange']()['end']['isEqual'](_0x57cde4['getFirstRange']()['start'])){const _0x1e75e0=_0x22e7be[_0x22e7be['length']-0x1],_0x4443d9='insertion'==_0x227312['type']?'add':'remove';_0x1e75e0&&'text'==_0x1e75e0['type']&&(_0x1e75e0[_0x4443d9]+='\x0a');}}constructor(_0x72ee0,_0x465651){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x72ee0,this['_locale']=_0x465651;}}class E extends _0x1e79ec{['afterInit'](){const _0x21b1b7=this['editor'],_0xa91fb3=_0x21b1b7['plugins']['get']('TrackChangesEditing');_0x21b1b7['commands']['get']('showAIAssistant')&&_0xa91fb3['enableCommand']('showAIAssistant');}}class V extends _0x1e79ec{['afterInit'](){const _0x4db47e=this['editor'],_0x26c23d=_0x4db47e['locale'];if(!_0x4db47e['plugins']['has']('AlignmentEditing'))return;const _0x5d06ab=_0x4db47e['plugins']['get']('TrackChangesEditing');_0x5d06ab['enableDefaultAttributesIntegration']('alignment'),_0x5d06ab['registerBlockAttribute']('alignment'),_0x5d06ab['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x26c23d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f7ad6=this['editor'],_0x2e4e03=_0x4f7ad6['locale'];_0x4f7ad6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44708d=>{if('formatBlock'!=_0x44708d['type'])return;const {data:_0x31798a}=_0x44708d;if(_0x31798a&&'alignment'==_0x31798a['commandName']){const _0x2f71ab=_0x31798a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2e4e03,'*Format:*\x20%0',function(_0x33f5d7){switch(_0x33f5d7){case'left':return o(_0x2e4e03,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2e4e03,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2e4e03,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2e4e03,'FORMAT_JUSTIFY_TEXT');}}(_0x2f71ab))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1e79ec{['afterInit'](){const _0x49c142=this['editor'],_0x3859cf=_0x49c142['plugins']['get']('TrackChangesEditing'),_0x329aac=_0x49c142['locale'];for(const _0x109338 of ti){if(!_0x49c142['plugins']['has'](_0x109338))continue;const _0x23d856=_0x109338['slice'](0x0,-0x7)['toLowerCase'](),_0x5f14ff='FORMAT_'+_0x23d856['toUpperCase']();_0x3859cf['enableDefaultAttributesIntegration'](_0x23d856),_0x3859cf['registerInlineAttribute'](_0x23d856),_0x3859cf['descriptionFactory']['registerAttributeLabel'](_0x23d856,o(_0x329aac,_0x5f14ff));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9429b=this['editor'],_0x1dfb36=_0x9429b['locale'],_0x58ec8e=_0x9429b['plugins']['get']('TrackChangesEditing');function _0x28c2cc(_0x2ba428,_0x4599ef){_0x58ec8e['descriptionFactory']['registerDescriptionCallback'](_0x55e09b=>{if('formatInline'!=_0x55e09b['type'])return;const {data:_0x47bac9}=_0x55e09b;return _0x47bac9&&_0x47bac9['commandName']===_0x2ba428?_0x47bac9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1dfb36,'*Format:*\x20%0',_0x4599ef)}:{'type':'format','content':o(_0x1dfb36,'*Remove\x20format:*\x20%0',_0x4599ef)}:void 0x0;});}_0x28c2cc('bold',o(_0x1dfb36,'FORMAT_BOLD')),_0x28c2cc('italic',o(_0x1dfb36,'FORMAT_ITALIC')),_0x28c2cc('underline',o(_0x1dfb36,'FORMAT_UNDERLINE')),_0x28c2cc('code',o(_0x1dfb36,'FORMAT_CODE')),_0x28c2cc('strikethrough',o(_0x1dfb36,'FORMAT_STRIKETHROUGH')),_0x28c2cc('subscript',o(_0x1dfb36,'FORMAT_SUBSCRIPT')),_0x28c2cc('superscript',o(_0x1dfb36,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1e79ec{['afterInit'](){const _0x1908a3=this['editor'],_0x2a5dee=_0x1908a3['locale'];if(!_0x1908a3['plugins']['has']('BlockQuoteEditing'))return;const _0xae3982=_0x1908a3['plugins']['get']('TrackChangesEditing'),_0x2f1ccb=this['editor']['commands']['get']('blockQuote');_0xae3982['enableCommand']('blockQuote',(_0x62422d,_0x41161c={})=>{const _0x15e5a5=this['editor']['model']['document']['selection'],_0x120d7d=_0x41161c&&void 0x0!==_0x41161c['forceValue']?_0x41161c['forceValue']:!_0x2f1ccb['value'];let _0x304c38=[];if(_0x120d7d){const _0x5172a3=Array['from'](_0x15e5a5['getSelectedBlocks']())['filter'](_0x19a28d=>oo(_0x19a28d)||function(_0x3a6215,_0x54bfb7){const _0x5099fc=_0x54bfb7['checkChild'](_0x3a6215['parent'],'blockQuote'),_0x480816=_0x54bfb7['checkChild'](['$root','blockQuote'],_0x3a6215);return _0x5099fc&&_0x480816;}(_0x19a28d,this['editor']['model']['schema']));_0x304c38=to(_0x5172a3,_0x1908a3['model']);}else{const _0x56b638=Array['from'](_0x15e5a5['getSelectedBlocks']())['filter'](_0x4885ee=>oo(_0x4885ee));_0x304c38=to(_0x56b638,_0x1908a3['model']);}_0x1908a3['model']['change'](()=>{for(const _0x38bb47 of _0x304c38)_0xae3982['markBlockFormat'](_0x38bb47,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x120d7d}]});});}),_0xae3982['descriptionFactory']['registerDescriptionCallback'](_0x4912c1=>{const {data:_0x562605}=_0x4912c1;if(_0x562605&&'blockQuote'==_0x562605['commandName']){const _0x4e8b9f=o(_0x2a5dee,'ELEMENT_BLOCK_QUOTE');return _0x562605['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a5dee,'*Set\x20format:*\x20%0',_0x4e8b9f)}:{'type':'format','content':o(_0x2a5dee,'*Remove\x20format:*\x20%0',_0x4e8b9f)};}});}}function oo(_0x149d18){return'blockQuote'==_0x149d18['parent']['name'];}class F extends _0x1e79ec{['afterInit'](){const _0x1df1ee=this['editor'];_0x1df1ee['plugins']['has']('CaseChange')&&(_0x1df1ee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1df1ee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1df1ee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x1e79ec{['afterInit'](){const _0x4f9dd4=this['editor'];_0x4f9dd4['commands']['get']('ckbox')&&_0x4f9dd4['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1e79ec{['afterInit'](){const _0x5b2d59=this['editor'];if(!_0x5b2d59['plugins']['has']('CodeBlock'))return;const _0x225a95=_0x5b2d59['plugins']['get']('TrackChangesEditing'),_0x3e321f=_0x5b2d59['locale'],_0x1ba06c=_0x5b2d59['config']['get']('codeBlock')['languages'],_0x1e8925=_0x5b2d59['commands']['get']('codeBlock');_0x225a95['enableCommand']('indentCodeBlock'),_0x225a95['enableCommand']('outdentCodeBlock'),_0x225a95['enableCommand']('codeBlock',(_0x2dcb99,_0x5588bc={})=>{const _0x59d844=_0x5b2d59['model'],_0x390909=_0x5b2d59['model']['document']['selection'],_0x23f3d9=_0x5588bc&&void 0x0!==_0x5588bc['forceValue']?_0x5588bc['forceValue']:!_0x1e8925['value'];let _0x31bd05;_0x5588bc['language']||(_0x5588bc['language']=_0x1ba06c[0x0]['language']),_0x31bd05=_0x23f3d9?Array['from'](_0x390909['getSelectedBlocks']())['filter'](_0x344dec=>eo(_0x344dec)||function(_0xb3ce38,_0x4e13b3){if(_0xb3ce38['is']('rootElement')||_0x4e13b3['isLimit'](_0xb3ce38))return!0x1;return _0x4e13b3['checkChild'](_0xb3ce38['parent'],'codeBlock');}(_0x344dec,_0x59d844['schema'])):Array['from'](_0x390909['getSelectedBlocks']())['filter'](_0x4d7a6c=>eo(_0x4d7a6c));const _0x820429=to(_0x31bd05,_0x59d844);_0x59d844['change'](()=>{for(const _0x1235b4 of _0x820429)_0x225a95['markBlockFormat'](_0x1235b4,{'commandName':'codeBlock','commandParams':[{..._0x5588bc,'forceValue':_0x23f3d9}],'formatGroupId':'blockName'});});}),(_0x225a95['descriptionFactory']['registerElementLabel']('codeBlock',_0x1d8b75=>o(_0x3e321f,'ELEMENT_CODE_BLOCK',_0x1d8b75)),_0x225a95['descriptionFactory']['registerDescriptionCallback'](_0x5476c5=>{if('formatBlock'!=_0x5476c5['type'])return;const _0x1af923=_0x3e321f['t'],{data:_0x506404}=_0x5476c5;if(!_0x506404||'codeBlock'!=_0x506404['commandName'])return;const _0x30417e=_0x506404['commandParams'][0x0]['language'],_0x56e5eb=_0x1af923(_0x1ba06c['find'](_0x9bb326=>_0x9bb326['language']===_0x30417e)['label'])['toLowerCase']();return _0x506404['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e321f,'*Set\x20format:*\x20%0',o(_0x3e321f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x56e5eb+')')}:{'type':'format','content':o(_0x3e321f,'*Remove\x20format:*\x20%0',o(_0x3e321f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1d50c1){return'codeBlock'==_0x1d50c1['name'];}class H extends _0x1e79ec{['afterInit'](){const _0x584781=this['editor'];if(!_0x584781['plugins']['has']('CommentsEditing'))return;_0x584781['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x485a18,_0x33029f,_0x47ec63){const _0xd10e04=[];for(const _0x41c5c7 of _0x33029f['getItems']())_0x41c5c7['hasAttribute'](_0x485a18)&&_0xd10e04['push'](_0x47ec63['createRangeOn'](_0x41c5c7));return _0xd10e04;}function _e(_0x1eaa89,_0xdd973,{showActiveMarker:_0x55b7d2=!0x0}={}){const _0x16f4c0=_0x1eaa89['plugins']['get']('TrackChangesEditing');return(_0x50d46c,_0x4e4f61,_0x505399)=>{if(!_0x505399['consumable']['test'](_0x4e4f61['markerRange'],_0x50d46c['name']))return;const _0x5c55ed=_0x4e4f61['markerRange']['getWalker'](),_0x215be6=_0x4e4f61['markerRange']['start'],_0x16836a=_0x1eaa89['model']['schema'];let _0x561e36=null,_0x16402e=null,_0x4eeab0=!0x1,_0x5c39a0=!0x1;for(const _0x5509bb of _0x5c55ed){const _0x40f6f8=_0x5509bb['item'];_0x4eeab0=_0x4eeab0||_0x16836a['isContent'](_0x40f6f8);const _0x3fd28d=_0x505399['mapper']['toViewElement'](_0x40f6f8);if(_0x3fd28d&&_0x3fd28d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5509bb['type']&&(_0x16836a['isBlock'](_0x40f6f8)&&!_0x16836a['isLimit'](_0x40f6f8)&&(_0x40f6f8['nextSibling']||_0x215be6['isAtEnd']?_0x561e36&&_0x561e36['parent']==_0x40f6f8||(_0x561e36=_0x40f6f8,_0x58f44a(_0x5509bb['previousPosition']),_0x5c39a0=!0x0):_0x16402e=_0x16402e||_0x5509bb['previousPosition']));}function _0x58f44a(_0x488e8a){const _0x1f0848=_0x505399['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xdd973}),_0x15cac5=_0x505399['mapper']['toViewPosition'](_0x488e8a);_0x55b7d2&&_0x16f4c0['activeMarkers']['includes'](_0x4e4f61['markerName'])&&_0x505399['writer']['addClass']('ck-suggestion-marker--active',_0x1f0848),_0x505399['writer']['insert'](_0x15cac5,_0x1f0848),_0x505399['mapper']['bindElementToMarker'](_0x1f0848,_0x4e4f61['markerName']);}_0x4eeab0||_0x5c39a0||!_0x16402e||_0x58f44a(_0x16402e);};}class q extends _0x1e79ec{static get['requires'](){return[_0x432acf];}['init'](){const _0x1a99c3=this['editor'],_0x260362=_0x1a99c3['plugins']['get']('TrackChangesEditing');_0x260362['enableCommand']('delete');const _0x154c3f=_0x1a99c3['commands']['get']('deleteForward');_0x260362['enableCommand']('deleteForward',(_0x4680d7,_0x5d642a={})=>{const _0x62289d=_0x1a99c3['model']['createSelection'](_0x1a99c3['model']['document']['selection']);_0x62289d['isCollapsed']&&_0x1a99c3['model']['modifySelection'](_0x62289d,{'direction':'forward','unit':_0x5d642a['unit']});const _0x5b6235=_0x62289d['getFirstRange'](),_0x36e53b=_0x43239f['fromRange'](_0x5b6235);let _0x3d1448;_0x4680d7(_0x5d642a),_0x3d1448='$graveyard'==_0x36e53b['root']['rootName']?_0x1a99c3['model']['createRange'](_0x5b6235['start']):_0x1a99c3['model']['createRange'](_0x36e53b['start'],_0x36e53b['end']),_0x36e53b['detach'](),_0x1a99c3['model']['enqueueChange'](_0x154c3f['buffer']['batch'],_0x320eec=>{_0x154c3f['buffer']['lock'](),_0x320eec['setSelection'](_0x320eec['createRange'](_0x3d1448['end'])),_0x154c3f['buffer']['unlock']();});}),_0x1a99c3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1a99c3,'merge'),{'priority':'high'}),_0x1a99c3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x592936,_0x546e57,_0x284216)=>{_0x284216['options']['showSuggestionHighlights']&&_e(_0x1a99c3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x592936,_0x546e57,_0x284216);},{'priority':'high'}),_0x1a99c3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x11bc7c,_0x5db0ff,_0x1b950a)=>{const _0x42939c=_0x1b950a['mapper']['markerNameToElements'](_0x5db0ff['markerName']);if(_0x42939c){for(const _0x19ce2d of _0x42939c)_0x19ce2d['is']('uiElement')&&(_0x1b950a['mapper']['unbindElementFromMarkerName'](_0x19ce2d,_0x5db0ff['markerName']),_0x1b950a['writer']['remove'](_0x19ce2d));}},{'priority':'high'});}}class z extends _0x1e79ec{['afterInit'](){const _0x82e26c=this['editor'];if(!_0x82e26c['plugins']['has']('ListEditing'))return;const _0x114cd0=_0x82e26c['locale'],_0x3f68ca=_0x82e26c['plugins']['get']('TrackChangesEditing'),_0x375dec=_0x82e26c['plugins']['has']('TodoListEditing'),_0x3b0412=!!_0x82e26c['config']['get']('list.multiBlock');function _0x208cef(_0x381932){return{'type':'format','content':''+o(_0x114cd0,'*Set\x20format:*\x20%0',_0x381932)};}function _0x468d06(_0x5802eb){return{'type':'format','content':''+o(_0x114cd0,'*Remove\x20format:*\x20%0',_0x5802eb)};}_0x3f68ca['enableDefaultAttributesIntegration']('numberedList'),_0x3f68ca['enableDefaultAttributesIntegration']('bulletedList'),_0x3f68ca['enableDefaultAttributesIntegration']('customNumberedList'),_0x3f68ca['enableDefaultAttributesIntegration']('customBulletedList'),_0x3f68ca['enableDefaultAttributesIntegration']('indentList'),_0x3f68ca['enableDefaultAttributesIntegration']('outdentList'),_0x3f68ca['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3f68ca['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3f68ca['registerBlockAttribute']('listItemId'),_0x3f68ca['registerBlockAttribute']('listType'),_0x3f68ca['registerBlockAttribute']('listIndent'),_0x3b0412&&(_0x3f68ca['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3f68ca['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x375dec&&(_0x3f68ca['enableDefaultAttributesIntegration']('todoList'),_0x3f68ca['enableDefaultAttributesIntegration']('checkTodoList'),_0x3f68ca['registerBlockAttribute']('todoListChecked'),_0x3f68ca['descriptionFactory']['registerDescriptionCallback'](_0x21bcbc=>{const {data:_0x4e9c0f}=_0x21bcbc;if(_0x4e9c0f&&'todoListChecked'==_0x4e9c0f['key'])return{'type':'format','content':_0x4e9c0f['newValue']?o(_0x114cd0,'*Check\x20item*'):o(_0x114cd0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x55a749=>{if(_0x55a749['batch']['isUndo'])return!0x1;let _0x294625=!0x1;const _0x550d40=_0x3f68ca['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51a643=>'todoListChecked'===_0x3f68ca['_getAttributeKey'](_0x51a643));for(const _0x431493 of _0x550d40){'todo'!=_0x431493['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3f68ca['_findSuggestions'](_0x431493['getFirstRange'](),'attribute')['find'](_0x3244c1=>'listType'===_0x3f68ca['_getAttributeKey'](_0x3244c1['suggestion']))||(_0x55a749['removeMarker'](_0x431493['getFirstMarker']()),_0x294625=!0x0));}return _0x294625;})),_0x3f68ca['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x114cd0,'FORMAT_INDENT'));const _0x3a6acc={'type':'format','content':''};_0x3f68ca['descriptionFactory']['registerDescriptionCallback'](_0x47d20b=>{const {data:_0x563125}=_0x47d20b;if(!_0x563125||'listType'!=_0x563125['key'])return;let _0x26e22e=_0x47d20b['head'];for(;_0x26e22e;){if(_0x26e22e['data']&&(('listStyle'==_0x26e22e['data']['key']||'listMarkerStyle'==_0x26e22e['data']['key'])&&(_0x26e22e['data']['newValue']&&'default'!=_0x26e22e['data']['newValue']||'default'!=_0x26e22e['data']['oldValue']&&!_0x563125['newValue'])||!_0x3b0412&&_0x26e22e['data']['key']==m))return _0x3a6acc;_0x26e22e=_0x26e22e['next'];}if(null==_0x563125['newValue'])switch(_0x563125['oldValue']){case'bulleted':return _0x468d06(o(_0x114cd0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x468d06(o(_0x114cd0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x468d06(o(_0x114cd0,'ELEMENT_TODO_LIST'));}switch(_0x563125['newValue']){case'bulleted':return _0x208cef(o(_0x114cd0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x208cef(o(_0x114cd0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x208cef(o(_0x114cd0,'ELEMENT_TODO_LIST'));}}),_0x3f68ca['descriptionFactory']['registerDescriptionCallback'](_0x18b7c3=>{const {data:_0x3a39fa}=_0x18b7c3;if(_0x3a39fa&&'listIndent'==_0x3a39fa['key'])return null==_0x3a39fa['newValue']||null==_0x3a39fa['oldValue']&&0x0==_0x3a39fa['newValue']?_0x3a6acc:void 0x0;}),_0x3f68ca['descriptionFactory']['registerDescriptionCallback'](_0x5751a5=>{if('attribute'!=_0x5751a5['type'])return;const {data:_0x5762c4}=_0x5751a5;if(!_0x5762c4||'listItemId'!=_0x5762c4['key'])return;const _0x1820f9=le(_0x5751a5);return'newValue'==_0x1820f9?{'type':'format','content':o(_0x114cd0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1820f9?{'type':'format','content':o(_0x114cd0,'*Split:*\x20list\x20item')}:_0x3a6acc;}),_0x82e26c['model']['document']['registerPostFixer'](_0xdafe0b=>this['listItemIdFixer'](_0xdafe0b)),_0x82e26c['model']['document']['registerPostFixer'](_0x1ba3ec=>this['noTrackChangesFixer'](_0x1ba3ec)),_0x82e26c['model']['document']['registerPostFixer'](_0x4e05a3=>this['assureChains'](_0x4e05a3)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2903c8){if(_0x2903c8['batch']['isUndo']||!_0x2903c8['batch']['isLocal'])return!0x1;let _0x509452=!0x1;const _0x496a5c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44a03f=>_0x44a03f['data']&&'listItemId'==_0x44a03f['data']['key'])['filter'](_0x143d56=>_0x143d56['data']['newValue']&&_0x143d56['data']['oldValue']);for(const _0x18e882 of _0x496a5c)le(_0x18e882)||(_0x2903c8['removeMarker'](_0x18e882['getFirstMarker']()),_0x509452=!0x0);return _0x509452;}['noTrackChangesFixer'](_0x202f84){if(_0x202f84['batch']['isUndo']||!_0x202f84['batch']['isLocal'])return!0x1;const _0x2427c6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2427c6['trackChangesCommand']['value'])return!0x1;let _0x3f2001=!0x1;const _0x33344b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x143593=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x48a248=>'attribute'==_0x48a248['type'])['filter'](_0x2bcadd=>_0x33344b['includes'](_0x2bcadd['attributeKey']));if(0x0==_0x143593['length'])return _0x3f2001;for(const _0x26229f of _0x143593){const _0xdb5e0a=_0x2427c6['_findSuggestions'](_0x26229f['range'],'attribute')['filter'](_0xb969a4=>!_0xb969a4['meta']['isNextTo'])['map'](_0xd0b0dd=>_0xd0b0dd['suggestion'])['filter'](_0x3ec394=>{const _0x15c6f1=_0x2427c6['_getAttributeKey'](_0x3ec394);return _0x33344b['includes'](_0x15c6f1);});if(_0xdb5e0a['length']){for(const _0x6dbf98 of _0xdb5e0a)_0x202f84['removeMarker'](_0x6dbf98['getFirstMarker']());_0x3f2001=!0x0;}}return _0x3f2001;}['assureChains'](_0x39bd1a){if(_0x39bd1a['batch']['isUndo']||!_0x39bd1a['batch']['isLocal'])return!0x1;const _0x2da24f=this['editor']['plugins']['get']('TrackChangesEditing');let _0x182d7f=!0x1;const _0x5ebbfc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5b499d of _0x2da24f['getSuggestions']({'skipNotAttached':!0x0})){const _0x455519=_0x2da24f['_findSuggestions'](_0x5b499d['getFirstRange'](),'attribute')['map'](_0xff74e=>_0xff74e['suggestion'])['filter'](_0x4b04fa=>_0x4b04fa['data']&&_0x5ebbfc['includes'](_0x4b04fa['data']['key']));if(!_0x455519['length'])continue;const _0x1e2480=_0x455519[0x0]['head']['attributes']['groupId'];if(!_0x455519['every'](_0x688f4b=>_0x688f4b['attributes']['groupId']===_0x1e2480)){for(const _0x5e54c9 of _0x455519)_0x28cb69(_0x5e54c9,_0x1e2480)&&(_0x182d7f=!0x0);}}return _0x182d7f;function _0x3f7f8e(_0x277255,_0x19107f){for(const _0x4b0937 of _0x2da24f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x351161=>'attribute'==_0x351161['type']&&_0x351161['attributes']['groupId']==_0x277255))_0x4b0937['setAttribute']('groupId',_0x19107f);}function _0x28cb69(_0x54ca02,_0x4ca8c3){let _0x42e330=_0x54ca02['head'],_0x9a8790=!0x1;for(;_0x42e330;)_0x42e330['attributes']['groupId']!=_0x4ca8c3&&(_0x3f7f8e(_0x42e330['attributes']['groupId'],_0x4ca8c3),_0x42e330['setAttribute']('groupId',_0x4ca8c3),_0x9a8790=!0x0),_0x42e330=_0x42e330['next'];return _0x9a8790;}}['_supportLegacySuggestions'](){const _0xc70e3c=this['editor'],_0x188426=_0xc70e3c['locale'],_0x1366b3=_0xc70e3c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1366b3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x45b358,_0x165c29){const _0x1a21e8=[];for(let _0x3faebf of _0x45b358)_0x3faebf['start']['nodeAfter']===_0x3faebf['end']['parent']&&(_0x3faebf=_0xc70e3c['model']['createRange'](_0xc70e3c['model']['createPositionAt'](_0x3faebf['start']['nodeAfter'],0x0))),_0x1a21e8['push'](_0x3faebf);_0xc70e3c['model']['change'](_0x5ba1ba=>{const _0x39646f=_0xc70e3c['model']['document']['selection'],_0x15094e=Array['from'](_0x39646f['getRanges']())['map'](_0x505e98=>_0x43239f['fromRange'](_0x505e98));_0x5ba1ba['setSelection'](_0x1a21e8),_0xc70e3c['commands']['get'](_0x165c29['commandName'])['refresh'](),_0x165c29['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xc70e3c['execute'](_0x165c29['commandName'],..._0x165c29['commandParams']),_0x5ba1ba['setSelection'](_0x15094e);for(const _0xbc8bbe of _0x15094e)_0xbc8bbe['detach']();});}),_0x1366b3['descriptionFactory']['registerElementLabel'](function(_0x357e52){const _0x12cf04=!_0xc70e3c['model']['schema']['isObject'](_0x357e52),_0x35e80b=_0x357e52['previousSibling'],_0x2fb95e=_0x357e52['nextSibling'],_0x16a5d7=_0x357e52['getAttribute']('listItemId'),_0x3d0c6c=!_0x35e80b||_0x35e80b['getAttribute']('listItemId')!==_0x16a5d7,_0x369f99=!_0x2fb95e||_0x2fb95e['getAttribute']('listItemId')!==_0x16a5d7;return _0x12cf04&&Boolean(_0x16a5d7)&&_0x3d0c6c&&_0x369f99;},_0x9d205e=>o(_0x188426,'ELEMENT_LIST_ITEM',_0x9d205e));}['_registerLegacyDescription'](){const _0x4f5380=this['editor'],_0x2c2de6=_0x4f5380['locale'];function _0x177e7a(_0x421a38){const _0x55dfef=_0x4f5380['commands']['get']('bulletedList')['value'],_0x355753=_0x4f5380['commands']['get']('numberedList')['value'];return'numberedList'===_0x421a38?_0x55dfef:_0x355753;}_0x4f5380['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x51d465){if('formatBlock'!=_0x51d465['type'])return;const {data:_0x482946}=_0x51d465;if(!_0x482946)return;let _0x40b1ab,_0x2ac37d,_0x12c024,_0x2a25f5;switch(_0x482946['commandName']){case'bulletedList':_0x12c024=_0x482946['commandParams'][0x0]['forceValue'],_0x2a25f5=_0x177e7a(_0x482946['commandName']),_0x40b1ab=_0x12c024?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a25f5&&_0x4f5380['config']['get']('list.multiBlock')||(_0x40b1ab='*Change\x20to:*\x20%0'),_0x2ac37d={'type':'format','content':o(_0x2c2de6,_0x40b1ab,o(_0x2c2de6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x12c024=_0x482946['commandParams'][0x0]['forceValue'],_0x2a25f5=_0x177e7a(_0x482946['commandName']),_0x40b1ab=_0x12c024?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a25f5&&_0x4f5380['config']['get']('list.multiBlock')||(_0x40b1ab='*Change\x20to:*\x20%0'),_0x2ac37d={'type':'format','content':o(_0x2c2de6,_0x40b1ab,o(_0x2c2de6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x40b1ab='*Indent:*\x20%0',_0x2ac37d={'type':'format','content':o(_0x2c2de6,_0x40b1ab,o(_0x2c2de6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x40b1ab=function(_0x5cea0f){const _0x4760f8=_0x5cea0f['getFirstRange']();let _0x58335d=_0x4760f8['start']['nodeAfter'];for(;_0x58335d&&_0x4760f8['containsItem'](_0x58335d);){if(_0x58335d['getAttribute']('listIndent')>0x0)return!0x1;_0x58335d=_0x58335d['nextSibling'];}return!0x0;}(_0x51d465)?o(_0x2c2de6,'*Format:*\x20remove\x20from\x20%0',o(_0x2c2de6,function(_0x2816c8){return'ELEMENT_'+_0x2816c8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x51d465))):o(_0x2c2de6,'*Outdent:*\x20%0',o(_0x2c2de6,'ELEMENT_LIST_ITEM')),_0x2ac37d={'type':'format','content':_0x40b1ab};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x482946['multipleBlocks']&&(_0x40b1ab='*Merge:*\x20%0',_0x2ac37d={'type':'deletion','content':o(_0x2c2de6,_0x40b1ab,o(_0x2c2de6,'ELEMENT_LIST_ITEM'))});}return _0x2ac37d;});}}function le(_0x532c1e){let _0x3cea4c=_0x532c1e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3cea4c;){const _0x486648=_0x3cea4c['getAttribute']('listItemId');if(!_0x486648)return!0x1;if(_0x486648==_0x532c1e['data']['newValue'])return'newValue';if(_0x486648==_0x532c1e['data']['oldValue'])return'oldValue';_0x3cea4c=_0x3cea4c['previousSibling'];}return!0x1;}class ue extends _0x1e79ec{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2950bc=this['editor']['config']['get']('list.properties'),_0x391dec=this['editor']['plugins']['get']('TrackChangesEditing');_0x2950bc['styles']&&(_0x391dec['enableDefaultAttributesIntegration']('listStyle'),_0x391dec['registerBlockAttribute']('listStyle')),_0x2950bc['reversed']&&(_0x391dec['enableDefaultAttributesIntegration']('listReversed'),_0x391dec['registerBlockAttribute']('listReversed')),_0x2950bc['startIndex']&&(_0x391dec['enableDefaultAttributesIntegration']('listStart'),_0x391dec['registerBlockAttribute']('listStart'));const _0xe9f580={'type':'format','content':''};_0x391dec['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x6de0b4=this['editor']['locale'];_0x391dec['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x6de0b4,'FORMAT_LIST_REVERSED')),_0x391dec['descriptionFactory']['registerDescriptionCallback'](_0x320824=>{const {data:_0x1e5c03}=_0x320824;if(_0x1e5c03&&'listReversed'==_0x1e5c03['key'])return null==_0x1e5c03['newValue']||0x0==_0x1e5c03['newValue']&&null==_0x1e5c03['oldValue']?_0xe9f580:void 0x0;}),_0x391dec['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x6de0b4,'FORMAT_LIST_START')),_0x391dec['descriptionFactory']['registerDescriptionCallback'](_0x41806e=>{const {data:_0x285806}=_0x41806e;if(_0x285806&&'listStart'==_0x285806['key'])return null==_0x285806['newValue']||0x1==_0x285806['newValue']&&null==_0x285806['oldValue']?_0xe9f580:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1ccde8=>{if(_0x1ccde8['batch']['isUndo'])return!0x1;let _0x423027=!0x1;const _0x3e4729=_0x391dec['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55a872=>{const _0x355b67=_0x391dec['_getAttributeKey'](_0x55a872);return'listStart'==_0x355b67||'listReversed'==_0x355b67;});for(const _0x7199b3 of _0x3e4729){const _0x1eb680=_0x7199b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1eb680||'customNumbered'==_0x1eb680)continue;_0x391dec['_findSuggestions'](_0x7199b3['getFirstRange'](),'attribute')['find'](_0x5a6885=>'listType'==_0x391dec['_getAttributeKey'](_0x5a6885['suggestion']))||(_0x1ccde8['removeMarker'](_0x7199b3['getFirstMarker']()),_0x423027=!0x0);}return _0x423027;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4567b3){const _0x52b1c8=this['editor']['locale'],{data:_0x38b6ef}=_0x4567b3,_0x3810c9={'type':'format','content':''};if(!_0x38b6ef||'listStyle'!=_0x38b6ef['key'])return;if(!_0x38b6ef['oldValue'])return'default'==_0x38b6ef['newValue']?_0x3810c9:{'type':'format','content':''+o(_0x52b1c8,'*Set\x20format:*\x20%0',o(_0x52b1c8,this['_getTranslationKeyForListStyle'](_0x38b6ef['newValue'])))};if(!_0x38b6ef['newValue']){if('default'==_0x38b6ef['oldValue'])return _0x3810c9;let _0x104bf7=_0x4567b3['head'];for(;_0x104bf7;){if(_0x104bf7['data']&&'listType'==_0x104bf7['data']['key']&&_0x104bf7['data']['newValue'])return _0x3810c9;_0x104bf7=_0x104bf7['next'];}return{'type':'format','content':''+o(_0x52b1c8,'*Remove\x20format:*\x20%0',o(_0x52b1c8,this['_getTranslationKeyForListStyle'](_0x38b6ef['oldValue'])))};}if('default'!=_0x38b6ef['newValue'])return{'type':'format','content':''+o(_0x52b1c8,'*Set\x20format:*\x20%0',o(_0x52b1c8,this['_getTranslationKeyForListStyle'](_0x38b6ef['newValue'])))};let _0x2818f0=_0x4567b3['head'];for(;_0x2818f0;){if(_0x2818f0['data']&&'listType'==_0x2818f0['data']['key']&&_0x2818f0['data']['newValue']&&_0x2818f0['data']['oldValue'])return _0x3810c9;_0x2818f0=_0x2818f0['next'];}return{'type':'format','content':o(_0x52b1c8,'*Set\x20format:*\x20%0',o(_0x52b1c8,'ELEMENT_'+_0x4567b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x412ad8=this['editor'],_0x5daf8e=_0x412ad8['locale'];_0x412ad8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x145c61=>{if('formatBlock'!=_0x145c61['type'])return;const {data:_0x44940b}=_0x145c61;if(!_0x44940b)return;let _0x12e17e,_0x3e0fe7;switch(_0x44940b['commandName']){case'listStyle':_0x12e17e='*Change\x20to:*\x20%0',_0x3e0fe7={'type':'format','content':o(_0x5daf8e,_0x12e17e,o(_0x5daf8e,this['_getTranslationKeyForListStyle'](_0x44940b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x12e17e=_0x44940b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3e0fe7={'type':'format','content':o(_0x5daf8e,_0x12e17e)};break;case'listStart':_0x12e17e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3e0fe7={'type':'format','content':o(_0x5daf8e,_0x12e17e,_0x44940b['commandParams'][0x0]['startIndex'])};}return _0x3e0fe7;});}['_getTranslationKeyForListStyle'](_0x35708f){return'ELEMENT_'+function(_0x1e7081){if(pe['includes'](_0x1e7081))return'bulleted';if(ye['includes'](_0x1e7081))return'numbered';return null;}(_0x35708f)['toUpperCase']()+'_LIST_'+_0x35708f['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1e79ec{static get['requires'](){return[_0x4385a8];}['init'](){const _0x20f7bf=this['editor'],_0x4be535=_0x20f7bf['plugins']['get']('TrackChangesEditing'),_0x2056fc=_0x20f7bf['commands']['get']('enter');_0x4be535['enableCommand']('enter',()=>{_0x20f7bf['model']['change'](_0x112a78=>{const _0x27759a=_0x20f7bf['model']['document']['selection'],_0x3cf6a2=_0x27759a['getFirstPosition'](),_0x59f5bd=_0x43239f['fromRange'](_0x27759a['getFirstRange']());if(_0x2056fc['enterBlock'](_0x112a78)){const _0x1b6300=_0x20f7bf['model']['createPositionAt'](_0x3cf6a2['parent']['nextSibling'],0x0),_0x2f5986=_0x112a78['createRange'](_0x3cf6a2,_0x1b6300);_0x4be535['markInsertion'](_0x2f5986);}else _0x112a78['setSelection'](_0x112a78['createRange'](_0x59f5bd['end']));_0x59f5bd['detach'](),_0x2056fc['fire']('afterExecute',{'writer':_0x112a78});});}),_0x20f7bf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x20f7bf,'split'),{'priority':'high'}),_0x20f7bf['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1b3385,_0x5069ba,_0x59678c)=>{const _0x3bf023=_0x59678c['mapper']['markerNameToElements'](_0x5069ba['markerName']);if(_0x3bf023){for(const _0x30ab23 of _0x3bf023)_0x30ab23['hasClass']('ck-suggestion-marker-split')&&(_0x59678c['mapper']['unbindElementFromMarkerName'](_0x30ab23,_0x5069ba['markerName']),_0x59678c['writer']['remove'](_0x30ab23));}},{'priority':'high'}),_0x20f7bf['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x16ede3,_0x10e6b7,_0x3049ca)=>{_0x3049ca['options']['showSuggestionHighlights']&&_e(_0x20f7bf,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x16ede3,_0x10e6b7,_0x3049ca);},{'priority':'high'});}}class J extends _0x1e79ec{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x441892=this['editor']['plugins']['get']('TrackChangesEditing');_0x441892['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x441892['enableCommand']('findNext'),_0x441892['enableCommand']('findPrevious'),_0x441892['enableCommand']('replace'),_0x441892['enableCommand']('replaceAll');}['handleFindCommand'](_0x25daef,_0x2d1ac8,_0x3776ff={}){const _0x49c568=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x25daef(_0x5d51d1=>('string'==typeof _0x2d1ac8?_0x49c568['findByTextCallback'](_0x2d1ac8,_0x3776ff):_0x2d1ac8)(_0x5d51d1)['filter'](_0x3021d6=>!0x1===this['_isInDeletionRange'](_0x3021d6,_0x5d51d1['item'])),_0x3776ff);}['_isInDeletionRange'](_0x1174c5,_0x1ac39e){const _0x2840aa=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1ac39e,_0x1174c5['start']),this['editor']['model']['createPositionAt'](_0x1ac39e,_0x1174c5['end']));for(const _0x419153 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2840aa['getIntersection'](_0x419153['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 _0x1e79ec{['afterInit'](){const _0x5662e3=this['editor']['locale'],_0x450058=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x296a8b,commandName:_0x353310}of ro)this['editor']['plugins']['has'](_0x296a8b)&&(_0x450058['enableDefaultAttributesIntegration'](_0x353310),_0x450058['registerInlineAttribute'](_0x353310));_0x5662e3['t'],_0x450058['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5662e3,'FORMAT_FONT_SIZE')),_0x450058['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5662e3,'FORMAT_FONT_FAMILY')),_0x450058['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5662e3,'FORMAT_FONT_COLOR')),_0x450058['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5662e3,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59c395=this['editor'],_0xb7a6dd=_0x59c395['locale'];_0x59c395['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x697a58=>{const _0x847386=_0xb7a6dd['t'];if('formatInline'!=_0x697a58['type'])return;const {data:_0x5a6893}=_0x697a58;if(null!=_0x5a6893){if('fontSize'==_0x5a6893['commandName']){const _0x42b196=_0x5a6893['commandParams'][0x0]['value'];if(_0x42b196){const _0x5859dd=_0x847386(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3f1feb=>_0x3f1feb['model']==_0x42b196)['title'])['toLowerCase']();return{'type':'format','content':o(_0xb7a6dd,'*Set\x20font\x20size:*\x20%0',_0x5859dd)};}return{'type':'format','content':o(_0xb7a6dd,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5a6893['commandName']){const _0x163ea3=_0x5a6893['commandParams'][0x0]['value'];return _0x163ea3?{'type':'format','content':o(_0xb7a6dd,'*Set\x20font\x20family:*\x20%0',_0x163ea3)}:{'type':'format','content':o(_0xb7a6dd,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5a6893['commandName']){const _0x4abdb2=_0x5a6893['commandParams'][0x0]['value'];if(_0x4abdb2){const _0x4d7830=_0x387b0f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x99f131=>_0x99f131['model']==_0x4abdb2);let _0x162b9c=_0x4abdb2,_0x416a5b='';return _0x4d7830&&(_0x162b9c=_0x4d7830['label'],_0x416a5b=_0x847386(_0x162b9c)['toLowerCase']()),{'type':'format','content':o(_0xb7a6dd,'*Set\x20font\x20color:*\x20%0',_0x416a5b)['trim'](),'color':{'value':_0x4abdb2,'title':_0x416a5b||_0x162b9c}};}return{'type':'format','content':o(_0xb7a6dd,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5a6893['commandName']){const _0x39c0c4=_0x5a6893['commandParams'][0x0]['value'];if(_0x39c0c4){const _0x5d0ba9=_0x387b0f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1d82ca=>_0x1d82ca['model']==_0x39c0c4);let _0x4fa112=_0x39c0c4,_0x598ee9='';return _0x5d0ba9&&(_0x4fa112=_0x5d0ba9['label'],_0x598ee9=_0x847386(_0x4fa112)['toLowerCase']()),{'type':'format','content':o(_0xb7a6dd,'*Set\x20font\x20background\x20color:*\x20%0',_0x598ee9)['trim'](),'color':{'value':_0x39c0c4,'title':_0x598ee9||_0x4fa112}};}return{'type':'format','content':o(_0xb7a6dd,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1e79ec{['afterInit'](){const _0x605399=this['editor'],_0x5acbba=_0x605399['plugins']['get']('TrackChangesEditing'),_0x504d67=_0x605399['commands']['get']('copyFormat'),_0x1fbeb8=_0x605399['commands']['get']('pasteFormat');_0x504d67&&_0x1fbeb8&&(_0x5acbba['enableDefaultAttributesIntegration']('pasteFormat'),_0x5acbba['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1795cb=this['editor'],_0x530a66=_0x1795cb['locale'];_0x1795cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a47ae=>{if('formatBlock'!=_0x5a47ae['type']&&'formatInline'!=_0x5a47ae['type'])return;const {data:_0x4d699b}=_0x5a47ae;if(_0x4d699b&&'pasteFormat'===_0x4d699b['commandName']){const _0x5ef19d=[],_0xdb35ea=_0x4d699b['commandParams'][0x0];for(const [_0x57e338,_0x2549ee]of Object['entries'](_0xdb35ea))_0x5ef19d['push'](so(_0x1795cb,_0x57e338,_0x2549ee));return _0x5ef19d['length']?{'type':'format','content':o(_0x530a66,'*Set\x20format\x20to:*\x20%0',_0x5ef19d['join'](',\x20'))}:{'type':'format','content':o(_0x530a66,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1d6ef6,_0x322cc3,_0x5b770d){const _0xd0a8c4=_0x1d6ef6['locale']['t'],_0x47d4d1=_0x322cc3['split'](/(?=[A-Z])/)['join']('\x20'),_0x5401ec=_0xd0a8c4(_0x47d4d1['charAt'](0x0)['toUpperCase']()+_0x47d4d1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5b770d)return _0x5401ec;if('fontColor'===_0x322cc3||'fontBackgroundColor'===_0x322cc3){const _0x263b07=_0x387b0f(_0x1d6ef6['config']['get']('fontColor.colors'))['find'](_0x340aae=>_0x340aae['model']==_0x5b770d);return _0x5401ec+'\x20('+(_0x263b07?_0xd0a8c4(_0x263b07['label'])['toLowerCase']():_0x5b770d)+')';}if('fontSize'===_0x322cc3&&isNaN(parseFloat(_0x5b770d))){const _0x2fda42=_0x1d6ef6['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1d6ef6['config']['get']('fontSize.options'))['find'](_0x129102=>_0x129102['model']==_0x5b770d);return _0x5401ec+'\x20('+(_0x2fda42?_0xd0a8c4(_0x2fda42['title'])['toLowerCase']():_0x5b770d)+')';}return _0x5401ec+'\x20('+_0x5b770d+')';}class Y extends _0x1e79ec{['afterInit'](){const _0x5eb669=this['editor'];if(!_0x5eb669['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5eb669['config']['get']('heading.options');const _0xf97c91=_0x5eb669['locale'],_0x400c0d=_0x5eb669['plugins']['get']('TrackChangesEditing');_0x400c0d['enableDefaultAttributesIntegration']('heading');for(const _0x47c2f1 of this['_headingOptions'])'paragraph'!=_0x47c2f1['model']&&_0x400c0d['descriptionFactory']['registerElementLabel'](_0x47c2f1['model'],_0x3b81a7=>{const _0x1c06ac=this['_getHeadingLevel'](_0x47c2f1['model']);return null!==_0x1c06ac?_0x1f3042(_0x3b81a7,_0x1c06ac):_0x57bf4b(_0x3b81a7,_0x47c2f1['title']);});function _0x1f3042(_0x4e76cb,_0x15161c){return o(_0xf97c91,'ELEMENT_HEADING',[_0x4e76cb,_0x15161c]);}function _0x57bf4b(_0x242f1f,_0x2d1af0){return o(_0xf97c91,'ELEMENT_HEADING_CUSTOM',[_0x242f1f,_0x2d1af0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c1876=this['editor'],_0x43b3d3=_0x2c1876['locale'];function _0x454a19(_0xff1a2b,_0x307080){return o(_0x43b3d3,'ELEMENT_HEADING_CUSTOM',[_0xff1a2b,_0x307080]);}_0x2c1876['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22adbc=>{if('formatBlock'!=_0x22adbc['type'])return;const {data:_0x4c0677}=_0x22adbc;if(_0x4c0677&&'heading'==_0x4c0677['commandName']){const _0x46a299=_0x4c0677['commandParams'][0x0]['value'],_0x39256f=this['_getHeadingLevel'](_0x46a299);if(null!==_0x39256f)return{'type':'format','content':o(_0x43b3d3,'*Change\x20to:*\x20%0',(_0x3f0fa6=0x1,_0x1b9c7e=_0x39256f,o(_0x43b3d3,'ELEMENT_HEADING',[_0x3f0fa6,_0x1b9c7e])))};const _0x3e6e50=this['_headingOptions']['find'](_0x292542=>_0x292542['model']===_0x46a299)['title'];return{'type':'format','content':o(_0x43b3d3,'*Change\x20to:*\x20%0',_0x454a19(0x1,_0x3e6e50))};}var _0x3f0fa6,_0x1b9c7e;});}['_getHeadingLevel'](_0x5a4ba5){var _0x49723e,_0x26cec0;const _0x5ce38d=_0x5a4ba5['match'](/^heading(\d+)/);if(_0x5ce38d)return _0x5ce38d[0x1];const _0x4b3919=null===(_0x49723e=this['_headingOptions'])||void 0x0===_0x49723e?void 0x0:_0x49723e['find'](_0x302208=>_0x302208['model']==_0x5a4ba5);if(_0x4b3919&&_0x4b3919['view']){const _0x1379df=_0x4b3919['view'],_0x3441ec=(null!==(_0x26cec0=_0x1379df['name'])&&void 0x0!==_0x26cec0?_0x26cec0:_0x1379df)['match'](/^h(\d+)/);if(_0x3441ec)return _0x3441ec[0x1];}return null;}}class Z extends _0x1e79ec{['afterInit'](){const _0x48ef79=this['editor'];if(!_0x48ef79['plugins']['has']('HighlightEditing'))return;const _0x1461d5=_0x48ef79['plugins']['get']('TrackChangesEditing'),_0x37e506=_0x48ef79['locale'];_0x1461d5['enableDefaultAttributesIntegration']('highlight'),_0x1461d5['registerInlineAttribute']('highlight'),_0x1461d5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x37e506,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b0549=this['editor'],_0x1f6120=_0x4b0549['locale'];_0x4b0549['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56e879=>{if('formatInline'!=_0x56e879['type'])return;const {data:_0x120a22}=_0x56e879;if(_0x120a22&&'highlight'==_0x120a22['commandName']){const _0x33334d=_0x1f6120['t'],_0xa08fef=_0x120a22['commandParams'][0x0]['value'];if(_0xa08fef){const _0xd346ea=_0x4b0549['config']['get']('highlight.options')['find'](_0x1c2cc2=>_0x1c2cc2['model']==_0xa08fef),_0x3aebce=_0x33334d(_0xd346ea['title'])['toLowerCase']();return{'type':'format','content':o(_0x1f6120,'*Set\x20highlight:*\x20%0',_0x3aebce),'color':{'value':_0xd346ea['color'],'title':_0xd346ea['title']}};}return{'type':'format','content':o(_0x1f6120,'*Remove\x20highlight*',o(_0x1f6120,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1e79ec{['afterInit'](){const _0x395b48=this['editor'];if(!_0x395b48['plugins']['has']('HorizontalLineEditing'))return;_0x395b48['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x493a8f=_0x395b48['plugins']['get']('TrackChangesEditing'),_0x1ed551=_0x395b48['locale'];_0x493a8f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x432936=>o(_0x1ed551,'ELEMENT_HORIZONTAL_LINE',_0x432936)),_0x395b48['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x40e89b,{writer:_0x439c21,options:_0x3110ac})=>{if(!_0x3110ac['showSuggestionHighlights'])return null;const _0x2289bb=_0x439c21['createContainerElement']('div'),_0x119c61=_0x439c21['createEmptyElement']('hr');return _0x439c21['addClass']('ck-horizontal-line',_0x2289bb),_0x439c21['insert'](_0x439c21['createPositionAt'](_0x2289bb,0x0),_0x119c61),_0x2289bb;},'converterPriority':'high'});}}class et extends _0x1e79ec{['afterInit'](){const _0x554bc2=this['editor'];if(!_0x554bc2['plugins']['has']('HtmlEmbed'))return;const _0x255a66=_0x554bc2['plugins']['get']('TrackChangesEditing'),_0x6df868=_0x554bc2['locale'];_0x255a66['descriptionFactory']['registerElementLabel']('rawHtml',_0x135e34=>o(_0x6df868,'ELEMENT_HTML_EMBED',_0x135e34)),_0x255a66['enableDefaultAttributesIntegration']('htmlEmbed'),_0x255a66['registerBlockAttribute']('value'),_0x255a66['descriptionFactory']['registerDescriptionCallback'](_0x5d4eeb=>{if('attribute'!=_0x5d4eeb['type'])return;const {data:_0xe47093}=_0x5d4eeb;if(_0xe47093&&'value'==_0xe47093['key']&&_0x5d4eeb['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x171f86=o(_0x6df868,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x6df868,'*Change\x20%0\x20content*',_0x171f86)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f1129=this['editor'],_0x1ad763=_0x4f1129['locale'];_0x4f1129['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48191a=>{if('formatBlock'!=_0x48191a['type'])return;const {data:_0x800aa1}=_0x48191a;if(_0x800aa1&&'htmlEmbed'==_0x800aa1['commandName']){const _0x3e3547=o(_0x1ad763,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1ad763,'*Change\x20%0\x20content*',_0x3e3547)};}});}}class it extends _0x1e79ec{['afterInit'](){const _0x5a14f4=this['editor'];if(!_0x5a14f4['plugins']['has']('ImageEditing'))return;const _0x13726f=_0x5a14f4['plugins']['get']('TrackChangesEditing'),_0x108f9e=_0x5a14f4['plugins']['get']('ImageUtils'),_0x35cf26=_0x5a14f4['locale'];_0x13726f['enableCommand']('insertImage'),_0x13726f['descriptionFactory']['registerElementLabel']('imageBlock',_0xb6cadd=>o(_0x35cf26,'ELEMENT_IMAGE',_0xb6cadd)),_0x13726f['descriptionFactory']['registerElementLabel']('imageInline',_0x11c1c4=>o(_0x35cf26,'ELEMENT_INLINE_IMAGE',_0x11c1c4)),_0x13726f['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x35cf26,'ELEMENT_CAPTION')),_0x5a14f4['plugins']['has']('ImageUploadEditing')&&_0x13726f['enableCommand']('uploadImage'),_0x5a14f4['plugins']['has']('ImageBlockEditing')&&_0x5a14f4['plugins']['has']('ImageInlineEditing')&&(_0x13726f['enableCommand']('imageTypeInline',(_0x222b33,_0x2a614a)=>{const _0x4ba358=_0x108f9e['getClosestSelectedImageElement'](_0x5a14f4['model']['document']['selection']);_0x5a14f4['model']['change'](()=>{_0x13726f['markBlockFormat'](_0x4ba358,{'commandName':'imageTypeInline','commandParams':[_0x2a614a]},[],'convertBlockImageToInline');});}),_0x13726f['enableCommand']('imageTypeBlock',(_0x38920a,_0x1d380b)=>{_0x5a14f4['model']['change'](_0x1689e9=>{let _0x345eeb=_0x108f9e['getClosestSelectedImageElement'](_0x5a14f4['model']['document']['selection']),_0x26c2c6=_0x1689e9['createRangeOn'](_0x345eeb);const _0x5ef674=_0x27d4fa['fromPosition'](_0x26c2c6['start'],'toPrevious'),_0x39b44e=_0x27d4fa['fromPosition'](_0x26c2c6['end'],'toNext');_0x13726f['forceDefaultExecution'](()=>_0x38920a(_0x1d380b)),_0x345eeb=_0x108f9e['getClosestSelectedImageElement'](_0x5a14f4['model']['document']['selection']),_0x26c2c6=_0x1689e9['createRangeOn'](_0x345eeb);const _0x10048d=_0x1689e9['createRange'](_0x5ef674,_0x39b44e);_0x5ef674['detach'](),_0x39b44e['detach'](),_0x13726f['markBlockFormat'](_0x345eeb,{'commandName':'imageTypeInline','commandParams':[_0x1d380b]},[],'convertInlineImageToBlock'),_0x10048d['start']['isBefore'](_0x26c2c6['start'])&&_0x13726f['markInsertion'](_0x1689e9['createRange'](_0x10048d['start'],_0x26c2c6['start']),'convertInlineImageToBlock'),_0x26c2c6['end']['isBefore'](_0x10048d['end'])&&_0x13726f['markInsertion'](_0x1689e9['createRange'](_0x26c2c6['end'],_0x10048d['end']),'convertInlineImageToBlock');});}),_0x13726f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x13726f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x13726f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x13726f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x13726f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x13726f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4f4b06])=>{const _0x3d52da=_0x13726f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x441481=_0x4f4b06['start'],_0x3d08ff=_0x4f4b06['end'];const _0x3856a9=_0x5a14f4['model']['schema']['getNearestSelectionRange'](_0x441481,'backward'),_0x4e62ba=_0x5a14f4['model']['schema']['getNearestSelectionRange'](_0x3d08ff,'forward');_0x3856a9['isCollapsed']&&(_0x441481=_0x3856a9['start']),_0x4e62ba['isCollapsed']&&(_0x3d08ff=_0x4e62ba['end']),_0x3d52da([_0x5a14f4['model']['createRange'](_0x441481,_0x3d08ff)]);}),_0x13726f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4aebc6),_0x13726f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4aebc6)),_0x5a14f4['plugins']['has']('ImageCaptionEditing')&&(_0x13726f['enableCommand']('toggleImageCaption',(_0xfb8486,_0x183fe9)=>{const _0x33ac6c=_0x5a14f4['plugins']['get']('ImageCaptionUtils');let _0x4f330d=_0x108f9e['getClosestSelectedImageElement'](_0x5a14f4['model']['document']['selection']),_0x3a730d=_0x33ac6c['getCaptionFromImageModelElement'](_0x4f330d);_0x5a14f4['model']['change'](()=>{if(_0x3a730d)return void _0x13726f['markDeletion'](_0x5a14f4['model']['createRangeOn'](_0x3a730d));const _0x182f68=_0x108f9e['isBlockImage'](_0x4f330d);_0xfb8486(_0x183fe9),_0x4f330d=_0x108f9e['getClosestSelectedImageElement'](_0x5a14f4['model']['document']['selection']),_0x3a730d=_0x33ac6c['getCaptionFromImageModelElement'](_0x4f330d),_0x13726f['markInsertion'](_0x5a14f4['model']['createRangeOn'](_0x3a730d),_0x182f68?null:'imageCaption');});}),_0x13726f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4aebc6));const _0x5137b5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2fdc3f(_0x5359b1,_0x450d10){const _0x1eeb77=_0x5137b5['findIndex'](({type:_0x30e5ef,subType:_0x2c8ca0})=>_0x5359b1['type']==_0x30e5ef&&_0x5359b1['subType']==_0x2c8ca0),_0xf6eb75=_0x5137b5['findIndex'](({type:_0x187cc0,subType:_0x50586b})=>_0x450d10['type']==_0x187cc0&&_0x450d10['subType']==_0x50586b);if(_0x1eeb77<0x0||_0xf6eb75<0x0)return!0x1;const _0xd03d91=_0x5359b1['getFirstRange'](),_0x14b744=_0x450d10['getFirstRange']();if((0x0==_0x1eeb77||0x1==_0x1eeb77)&&0x2==_0xf6eb75&&_0xd03d91['isIntersecting'](_0x14b744))return!0x0;if(0x2==_0x1eeb77&&0x3==_0xf6eb75){const _0x54fb9b=_0x13726f['_findSuggestions'](_0xd03d91,'insertion')['filter'](({suggestion:_0x452328,meta:_0x1e37c5})=>_0x1e37c5['isOwn']&&'convertInlineImageToBlock'==_0x452328['subType']);if(_0x54fb9b['length']>0x1&&_0x14b744['end']['isEqual'](_0xd03d91['start']))return!0x0;if(0x1==_0x54fb9b['length']&&(_0xd03d91['start']['isEqual'](_0x14b744['end'])||_0xd03d91['end']['isEqual'](_0x14b744['start'])))return!0x0;}if(0x3==_0x1eeb77&&0x3==_0xf6eb75&&_0xd03d91['start']['isBefore'](_0x14b744['start'])){const _0x568bf1=_0xd03d91['end']['nodeAfter'],_0x2de405=_0x14b744['start']['nodeBefore'];return _0x108f9e['isBlockImage'](_0x568bf1)&&_0x568bf1===_0x2de405;}return!0x1;}function _0x4aebc6(_0x2981d0,_0x30619b){return _0x2fdc3f(_0x2981d0,_0x30619b)?[_0x2981d0,_0x30619b]:_0x2fdc3f(_0x30619b,_0x2981d0)?[_0x30619b,_0x2981d0]:null;}_0x5a14f4['plugins']['has']('ImageResize')&&(_0x13726f['enableDefaultAttributesIntegration']('resizeImage'),_0x13726f['registerBlockAttribute']('resizedWidth'),_0x13726f['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x35cf26,'FORMAT_IMAGE_SIZE'))),_0x5a14f4['plugins']['has']('ImageTextAlternativeEditing')&&(_0x13726f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x13726f['registerBlockAttribute']('alt')),_0x13726f['descriptionFactory']['registerDescriptionCallback'](_0x405aed=>{if(!!_0x5137b5['find'](({type:_0x4b175b,subType:_0x363c2e})=>_0x405aed['type']==_0x4b175b&&_0x405aed['subType']==_0x363c2e))return _0x405aed['previous']?{}:void 0x0;}),_0x13726f['descriptionFactory']['registerDescriptionCallback'](_0xd0e968=>{if('insertion'==_0xd0e968['type']||'deletion'==_0xd0e968['type']){const _0x1f06dc=_0xd0e968['getContainedElement']();if(_0x1f06dc&&_0x1f06dc['is']('element','caption'))return{'type':'insertion'==_0xd0e968['type']?'addObject':'removeObject','element':_0x1f06dc,'quantity':0x1};}}),_0x13726f['descriptionFactory']['registerDescriptionCallback'](_0x52fe1d=>'formatBlock'==_0x52fe1d['type']&&'convertInlineImageToBlock'==_0x52fe1d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x52fe1d['type']&&'convertBlockImageToInline'==_0x52fe1d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x13726f['descriptionFactory']['registerDescriptionCallback'](_0x592ee2=>{if('attribute'!=_0x592ee2['type'])return;const {data:_0x217517}=_0x592ee2;if(!_0x217517||'alt'!=_0x217517['key'])return;const _0x332401=_0x217517['newValue'];return _0x332401?{'type':'format','content':o(_0x35cf26,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x332401+'\x22')}:{'type':'format','content':o(_0x35cf26,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12b143=this['editor'],_0x443f90=_0x12b143['locale'];_0x12b143['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x244876=>{if('formatBlock'!=_0x244876['type']&&'formatInline'!=_0x244876['type'])return;const {data:_0x493a9d}=_0x244876;if(_0x493a9d){if('imageTextAlternative'==_0x493a9d['commandName']){const _0x100abf=_0x493a9d['commandParams'][0x0]['newValue'];return _0x100abf?{'type':'format','content':o(_0x443f90,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x100abf+'\x22')}:{'type':'format','content':o(_0x443f90,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x493a9d['commandName']){const _0x167657=_0x493a9d['commandParams'][0x0]['width'];return _0x167657?{'type':'format','content':o(_0x443f90,'*Set\x20image\x20width:*\x20%0',_0x167657)}:{'type':'format','content':o(_0x443f90,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1e79ec{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x49606a=this['editor']['locale'],_0x43b639=this['editor']['plugins']['get']('TrackChangesEditing');_0x43b639['enableDefaultAttributesIntegration']('replaceImageSource'),_0x43b639['registerBlockAttribute']('src'),_0x43b639['descriptionFactory']['registerDescriptionCallback'](_0x2d8f44=>{if('attribute'!=_0x2d8f44['type'])return;const {data:_0x30ecc4}=_0x2d8f44;return _0x30ecc4&&'src'==_0x30ecc4['key']?_0x30ecc4['newValue']&&_0x30ecc4['oldValue']?{'type':'format','content':o(_0x49606a,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4b9c1c=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b9c1c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4b9c1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b9c1c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4b9c1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18f24a=this['editor'],_0x38386f=_0x18f24a['locale'];_0x18f24a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36a557=>{if('formatBlock'!=_0x36a557['type']&&'formatInline'!=_0x36a557['type'])return;const {data:_0x31e1b2}=_0x36a557;if(!_0x31e1b2||'replaceImageSource'!=_0x31e1b2['commandName'])return;return{'type':'format','content':o(_0x38386f,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1e79ec{['afterInit'](){const _0x18dea8=this['editor'];if(!_0x18dea8['plugins']['has']('ImageStyleEditing'))return;const _0x5da930=_0x18dea8['plugins']['get']('TrackChangesEditing'),_0x358a0d=_0x18dea8['plugins']['get']('ImageUtils'),_0x2b6dd5={};_0x5da930['enableCommand']('imageStyle',(_0x5b73c3,_0x59ed3b)=>{const _0x2a9e42=_0x18dea8['plugins']['get']('Users')['me'],_0x33dc73=_0x18dea8['commands']['get']('imageStyle');let _0x198631=_0x358a0d['getClosestSelectedImageElement'](_0x18dea8['model']['document']['selection']),_0x15291f=_0x18dea8['model']['createRangeOn'](_0x198631),_0x45a4b2=_0x33dc73['value'];if(_0x45a4b2==_0x59ed3b['value'])return;const _0x58d73f={'commandName':'imageStyle','commandParams':[_0x59ed3b],'formatGroupId':_0x109dee()};_0x18dea8['model']['change'](()=>{if(_0x5da930['getSuggestions']()['filter'](_0x150e09=>_0x150e09['isInContent']&&_0x2a9e42==_0x150e09['author']&&('formatBlock'==_0x150e09['type']||'formatInline'==_0x150e09['type'])&&('imageStylePreApply'==_0x150e09['subType']||'imageStylePostApply'==_0x150e09['subType'])&&_0x150e09['getFirstRange']()['isEqual'](_0x15291f))['forEach'](_0x421e04=>_0x5da930['discardSuggestion'](_0x421e04['head'])),_0x198631=_0x358a0d['getClosestSelectedImageElement'](_0x18dea8['model']['document']['selection']),_0x15291f=_0x18dea8['model']['createRangeOn'](_0x198631),_0x33dc73['refresh'](),_0x18dea8['commands']['get']('imageTypeInline')['refresh'](),_0x18dea8['commands']['get']('imageTypeBlock')['refresh'](),_0x45a4b2=_0x33dc73['value'],_0x45a4b2!=_0x59ed3b['value'])return _0x358a0d['isInlineImage'](_0x198631)&&_0x33dc73['shouldConvertImageType'](_0x59ed3b['value'],_0x198631)?(_0x5b73c3({..._0x59ed3b,'setImageSizes':!0x1}),_0x198631=_0x358a0d['getClosestSelectedImageElement'](_0x18dea8['model']['document']['selection']),void _0x5da930['markBlockFormat'](_0x198631,{..._0x58d73f,'commandReversedParams':[{'value':_0x45a4b2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x358a0d['isBlockImage'](_0x198631)?_0x5da930['markBlockFormat'](_0x198631,_0x58d73f,[],'imageStylePostApply'):_0x5da930['markInlineFormat'](_0x15291f,_0x58d73f,'imageStylePostApply'));});});for(const _0x64501 of _0x18dea8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2b6dd5[_0x64501['name']]=_0x64501['title']['toLowerCase']();_0x5da930['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5da930['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5da930['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5da930['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1dde7b])=>{_0x358a0d['setImageNaturalSizeAttributes'](_0x1dde7b['getContainedElement']());}),_0x5da930['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3b80fc,_0x211140)=>{_0x5da930['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3b80fc,{'commandName':_0x211140['commandName'],'commandParams':_0x211140['commandReversedParams']});}),_0x5da930['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x18a56c,_0x5dae1e){if(_0x13ffa9(_0x18a56c,_0x5dae1e))return[_0x18a56c,_0x5dae1e];if(_0x13ffa9(_0x5dae1e,_0x18a56c))return[_0x5dae1e,_0x18a56c];return null;});const _0x5e8655=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x13ffa9(_0x33387f,_0xd3a77f){const _0x23204d=_0x5e8655['findIndex'](({type:_0x3bbe4d,subType:_0x2166b})=>_0x33387f['type']==_0x3bbe4d&&_0x33387f['subType']==_0x2166b),_0x18899e=_0x5e8655['findIndex'](({type:_0x47cfc5,subType:_0x28877b})=>_0xd3a77f['type']==_0x47cfc5&&_0xd3a77f['subType']==_0x28877b);if(_0x23204d<0x0||_0x18899e<0x0)return!0x1;const _0x5bbbe6=_0x33387f['getFirstRange'](),_0x322efc=_0xd3a77f['getFirstRange']();if((0x0==_0x23204d||0x1==_0x23204d)&&0x2==_0x18899e&&_0x5bbbe6['isIntersecting'](_0x322efc))return!0x0;if(0x2==_0x23204d&&0x3==_0x18899e){const _0x1d54c6=_0x5da930['_findSuggestions'](_0x5bbbe6,'insertion')['filter'](({suggestion:_0x1edeac,meta:_0xe82648})=>_0xe82648['isOwn']&&'convertInlineImageToBlock'==_0x1edeac['subType']);if(_0x1d54c6['length']>0x1&&_0x322efc['end']['isEqual'](_0x5bbbe6['start']))return!0x0;if(0x1==_0x1d54c6['length']&&(_0x5bbbe6['start']['isEqual'](_0x322efc['end'])||_0x5bbbe6['end']['isEqual'](_0x322efc['start'])))return!0x0;}if(0x3==_0x23204d&&0x3==_0x18899e&&_0x5bbbe6['start']['isBefore'](_0x322efc['start'])){const _0x20e897=_0x5bbbe6['end']['nodeAfter'],_0x33caaa=_0x322efc['start']['nodeBefore'];return _0x358a0d['isBlockImage'](_0x20e897)&&_0x20e897===_0x33caaa;}return!0x1;}_0x18dea8['model']['document']['registerPostFixer'](()=>{let _0x447392=!0x1;const _0x4170ba=Array['from'](_0x18dea8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22bf5,data:_0xe36a4c}of _0x4170ba){const {group:_0x3bb49a,type:_0x20d8ad,subType:_0x2cb909,id:_0x3ccd97}=_0x5da930['_splitMarkerName'](_0x22bf5);if('suggestion'==_0x3bb49a&&_0x5da930['hasSuggestion'](_0x3ccd97)){if('formatBlock'==_0x20d8ad&&('imageStylePreApply'==_0x2cb909||'imageStylePostApply'==_0x2cb909)){const _0x260685=_0x5da930['getSuggestion'](_0x3ccd97);if(_0xe36a4c['newRange']){const _0x2ae64b=_0x260685['getFirstRange']()['getContainedElement']();if(_0x358a0d['isBlockImage'](_0x2ae64b))continue;_0x5da930['discardSuggestion'](_0x260685),_0x447392=!0x0;}}if('insertion'==_0x20d8ad&&'imageCaption'==_0x2cb909&&!_0xe36a4c['newRange']){const _0x18abd1=_0x5da930['getSuggestion'](_0x3ccd97);_0x18abd1['next']&&_0x18abd1['next']['isInContent']&&(_0x5da930['discardSuggestion'](_0x18abd1['next']),_0x447392=!0x0);}}}return _0x447392;}),this['_registerLegacyDescription'](_0x2b6dd5);}['_registerLegacyDescription'](_0x5806c5){const _0x421924=this['editor'],_0x25f77a=_0x421924['locale'];_0x421924['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8bd285=>{if('formatBlock'!=_0x8bd285['type']&&'formatInline'!=_0x8bd285['type'])return;const {data:_0x482eeb}=_0x8bd285;if(!_0x482eeb||'imageStyle'!=_0x482eeb['commandName'])return;const _0x5dd768=_0x482eeb['commandParams'][0x0]['value'];return _0x5cb2c1('side'===_0x5dd768?o(_0x25f77a,'FORMAT_SIDE_IMAGE'):_0x5806c5[_0x5dd768]||_0x5dd768);function _0x5cb2c1(_0x259ed9){return{'type':'format','content':o(_0x25f77a,'*Format:*\x20%0',_0x259ed9)};}});}}class ot extends _0x1e79ec{['afterInit'](){const _0x427d5a=this['editor'],_0x3c2aa7=_0x427d5a['commands']['get']('importWord'),_0x21430c=_0x427d5a['commands']['get']('trackChanges');_0x3c2aa7&&(_0x3c2aa7['on']('execute',(_0x594372,[,_0x7b7543])=>{this['_trackChangesValueDuringImport']=_0x21430c['value'],_0x7b7543['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3c2aa7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3c2aa7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x21430c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x427d5a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3c20c2,_0x10f6e0){const {suggestions:_0xfd20c3}=_0x10f6e0,_0x13680b=this['editor']['commands']['get']('trackChanges'),_0x491e5a=_0x13680b['value'];this['_trackChangesValueDuringImport']!==_0x491e5a&&(_0x13680b['execute'](),this['_trackChangesExecuted']=!0x0),_0xfd20c3&&_0xfd20c3['forEach'](({id:_0x1c0f55,type:_0x436d1c,author:_0x32526d,created_at:_0x220acb})=>{const _0x1c4016={'id':_0x1c0f55,'type':_0x436d1c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x32526d,'createdAt':_0x220acb?new Date(_0x220acb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c4016);});}constructor(_0x524232){super(_0x524232),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x1e79ec{['afterInit'](){const _0x4cc5ef=this['editor'],_0x962ef4=_0x4cc5ef['plugins']['get']('TrackChangesEditing');if(_0x4cc5ef['plugins']['has']('IndentEditing')&&(_0x962ef4['enableCommand']('indent'),_0x962ef4['enableCommand']('outdent')),_0x4cc5ef['plugins']['has']('IndentBlock')){for(const _0x3fcd63 of['indentBlock','outdentBlock'])_0x962ef4['enableDefaultAttributesIntegration'](_0x3fcd63);}const _0x251e7b=_0x4cc5ef['locale'];_0x962ef4['registerBlockAttribute']('blockIndent'),_0x962ef4['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x251e7b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x540a24=this['editor'],_0x379eaa=_0x540a24['locale'],_0x26fa26=_0x540a24['plugins']['get']('TrackChangesEditing');_0x26fa26['descriptionFactory']['registerDescriptionCallback'](_0x2cdee4=>{if('formatBlock'!=_0x2cdee4['type'])return;const {data:_0x9f537c}=_0x2cdee4;if(!_0x9f537c)return;if('indentBlock'!=_0x9f537c['commandName']&&'outdentBlock'!=_0x9f537c['commandName'])return;const _0x2dac01=_0x2cdee4['getItems']()[0x0],_0x24dfb3=_0x26fa26['descriptionFactory']['getItemLabel'](_0x2dac01);return'indentBlock'==_0x9f537c['commandName']?{'type':'format','content':o(_0x379eaa,'*Indent:*\x20%0',_0x24dfb3)}:'outdentBlock'==_0x9f537c['commandName']?{'type':'format','content':o(_0x379eaa,'*Outdent:*\x20%0',_0x24dfb3)}:void 0x0;});}}class at extends _0x1e79ec{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1e79ec{['afterInit'](){const _0x114397=this['editor'];if(!_0x114397['plugins']['has']('LinkEditing'))return;const _0x171934=_0x114397['plugins']['get']('TrackChangesEditing'),_0x24e05b=_0x114397['commands']['get']('link');_0x171934['enableDefaultAttributesIntegration']('link'),_0x171934['enableDefaultAttributesIntegration']('unlink'),_0x171934['registerInlineAttribute']('linkHref');for(const _0x19cdc9 of _0x24e05b['manualDecorators'])_0x171934['registerInlineAttribute'](_0x19cdc9['id']),_0x171934['descriptionFactory']['registerAttributeLabel'](_0x19cdc9['id'],'link\x20('+_0x19cdc9['label']['toLowerCase']()+')');_0x171934['descriptionFactory']['registerDescriptionCallback'](_0x2c36ed=>{if('attribute'!=_0x2c36ed['type'])return;const {data:_0x5b0ad6}=_0x2c36ed;if(!_0x5b0ad6||'linkHref'!=_0x5b0ad6['key'])return;const _0x21741f=_0x5b0ad6['newValue'],_0x398324=_0x114397['locale'];return{'type':'format','content':null==_0x21741f?o(_0x398324,'*Remove\x20link*'):o(_0x398324,'*Set\x20link:*\x20%0','\x22'+_0x21741f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x317f80=this['editor'],_0x5f33cb=_0x317f80['locale'];_0x317f80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29be54=>{if('formatInline'!=_0x29be54['type'])return;const {data:_0x5833ab}=_0x29be54;if(_0x5833ab){if('link'==_0x5833ab['commandName']){const _0x47506c=_0x5833ab['commandParams'][0x0];return{'type':'format','content':o(_0x5f33cb,'*Set\x20link:*\x20%0','\x22'+_0x47506c+'\x22')};}return'unlink'==_0x5833ab['commandName']?{'type':'format','content':o(_0x5f33cb,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1e79ec{['afterInit'](){const _0x1f8d1c=this['editor'],_0x53f256=_0x1f8d1c['locale'];if(!_0x1f8d1c['plugins']['has']('LegacyListEditing'))return;const _0x19dc2e=_0x1f8d1c['plugins']['get']('TrackChangesEditing'),_0x34801b=_0x1f8d1c['plugins']['has']('LegacyTodoListEditing');function _0xac8e3a(_0x18aa62){return()=>{const _0x220bf4=_0x1f8d1c['model']['document']['selection'],_0x24d78a=_0x1f8d1c['commands']['get'](_0x18aa62);if(_0x24d78a['value'])return void _0x1f8d1c['execute']('paragraph',{});const _0x1186d4=_0x18aa62['slice'](0x0,-0x4),_0x599386=function(_0xf07fa8,_0xc13b9e,_0x37d4fe){let _0x1bde0c=Array['from'](_0xf07fa8)['filter'](_0x475266=>function(_0x50e0c5,_0x2a6762){return _0x2a6762['checkChild'](_0x50e0c5['parent'],'listItem')&&!_0x2a6762['isObject'](_0x50e0c5);}(_0x475266,_0x37d4fe));_0x1bde0c=_0x1bde0c['filter'](_0x4f8ccd=>!_0x4f8ccd['is']('element','listItem')||_0x4f8ccd['getAttribute']('listType')!=_0xc13b9e);const _0x192b98=new Set();for(const _0x5a04b8 of _0x1bde0c)_0x5a04b8['is']('element','listItem')?_0x192b98['add'](me(_0x5a04b8)):_0x192b98['add'](_0x5a04b8);return Array['from'](_0x192b98);}(_0x220bf4['getSelectedBlocks'](),_0x1186d4,_0x1f8d1c['model']['schema']);_0x1f8d1c['model']['change'](()=>{for(const _0x514ef3 of _0x599386)_0x19dc2e['markBlockFormat'](_0x514ef3,{'commandName':_0x18aa62,'commandParams':[{'forceValue':!_0x24d78a['value']}],'formatGroupId':'blockName'},fe(_0x514ef3));});};}function _0x8b3fb1(_0x2fa199){return()=>{const _0x1629b0=function(_0x23977b){let _0x11b2cc=Array['from'](_0x23977b);const _0x48026c=_0x11b2cc['findIndex'](_0x3f686f=>'listItem'!=_0x3f686f['name']);return _0x48026c>-0x1&&(_0x11b2cc=_0x11b2cc['slice'](0x0,_0x48026c)),_0x11b2cc;}(_0x1f8d1c['model']['document']['selection']['getSelectedBlocks']()),_0x3143b7=_0x1f8d1c['model']['createRange'](_0x1f8d1c['model']['createPositionAt'](_0x1629b0[0x0],'before'),_0x1f8d1c['model']['createPositionAt'](_0x1629b0[_0x1629b0['length']-0x1],'end'));_0x1f8d1c['model']['change'](()=>{_0x19dc2e['markBlockFormat'](_0x3143b7,{'commandName':_0x2fa199,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3e10bb){const _0x246dd8=new Set();for(const _0x4fd6ef of _0x3e10bb){let _0x5885ac=_0x4fd6ef['nextSibling'];for(;_0x5885ac&&_0x5885ac['getAttribute']('listIndent')>_0x4fd6ef['getAttribute']('listIndent');)_0x246dd8['add'](_0x5885ac),_0x5885ac=_0x5885ac['nextSibling'];}return Array['from'](_0x246dd8);}(_0x1629b0));});};}_0x19dc2e['enableCommand']('numberedList',_0xac8e3a('numberedList')),_0x19dc2e['enableCommand']('bulletedList',_0xac8e3a('bulletedList')),_0x34801b&&_0x19dc2e['enableCommand']('todoList',_0xac8e3a('todoList')),_0x19dc2e['enableCommand']('indentList',_0x8b3fb1('indentList')),_0x19dc2e['enableCommand']('outdentList',_0x8b3fb1('outdentList')),_0x34801b&&_0x19dc2e['enableCommand']('checkTodoList',()=>{const _0x5cb322=_0x1f8d1c['commands']['get']('checkTodoList'),_0x7f94c4=Array['from'](_0x5cb322['_selectedElements']);_0x7f94c4['filter'](_0x283634=>_0x283634['getAttribute']('todoListChecked')!=_0x5cb322['value']),_0x1f8d1c['model']['change'](()=>{for(const _0x26bcda of _0x7f94c4)_0x19dc2e['markBlockFormat'](_0x26bcda,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5cb322['value']}]});});}),_0x19dc2e['descriptionFactory']['registerElementLabel']('listItem',_0x2e4448=>o(_0x53f256,'ELEMENT_LIST_ITEM',_0x2e4448)),_0x19dc2e['descriptionFactory']['registerDescriptionCallback'](_0x4ded61=>{if('formatBlock'!=_0x4ded61['type']&&'formatInline'!=_0x4ded61['type'])return;const {data:_0x231204}=_0x4ded61;if(_0x231204){if('numberedList'==_0x231204['commandName']||'bulletedList'==_0x231204['commandName']||'todoList'==_0x231204['commandName'])switch(_0x231204['commandName']['replace']('List','')){case'bulleted':return _0x53fc48(o(_0x53f256,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x53fc48(o(_0x53f256,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x53fc48(o(_0x53f256,'ELEMENT_TODO_LIST'));}if('indentList'==_0x231204['commandName'])return{'type':'format','content':o(_0x53f256,'*Indent:*\x20%0',o(_0x53f256,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x231204['commandName'])return{'type':'format','content':o(_0x53f256,'*Outdent:*\x20%0',o(_0x53f256,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x231204['commandName'])return _0x231204['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53f256,'*Check\x20item*')}:{'type':'format','content':o(_0x53f256,'*Uncheck\x20item*')};}function _0x53fc48(_0x49e0e0){return{'type':'format','content':o(_0x53f256,'*Change\x20to:*\x20%0',_0x49e0e0)};}});}}function me(_0x2683ef){const _0x501695=_0x2683ef['getAttribute']('listIndent');if(0x0==_0x501695)return _0x2683ef;let _0x12bfcc=_0x2683ef;for(;_0x2683ef['previousSibling']&&_0x2683ef['previousSibling']['is']('element','listItem');){const _0x2d3a69=_0x2683ef['previousSibling']['getAttribute']('listIndent');if(_0x2d3a69==_0x501695)_0x12bfcc=_0x2683ef['previousSibling'];else{if(_0x2d3a69<_0x501695)break;}_0x2683ef=_0x2683ef['previousSibling'];}return _0x12bfcc;}function fe(_0x41df47){const _0x3816c7=[];if(_0x41df47['is']('element','listItem')&&_0x41df47['getAttribute']('listIndent')>0x0){let _0x125b9d=_0x41df47['nextSibling'];for(;_0x125b9d&&'listItem'==_0x125b9d['name']&&_0x125b9d['getAttribute']('listIndent')==_0x41df47['getAttribute']('listIndent');)_0x3816c7['push'](_0x125b9d),_0x125b9d=_0x125b9d['nextSibling'];}return _0x3816c7;}class K extends _0x1e79ec{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x53fb1a=this['editor']['config']['get']('list.properties'),_0x11b1a8=this['editor']['plugins']['get']('TrackChangesEditing');_0x53fb1a['styles']&&_0x11b1a8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x53fb1a['reversed']&&_0x11b1a8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x53fb1a['startIndex']&&_0x11b1a8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x11b1a8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xa349be,_0x37b0fb={}){const _0x5f476c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x501c75=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5f476c['markMultiRangeBlockFormat'](_0x501c75,{'commandName':'listStyle','commandParams':[{'type':_0x37b0fb['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1b75b6,_0x1f3989={}){const _0xdadb57=this['editor']['plugins']['get']('TrackChangesEditing'),_0x100f11=this['_getSuggestionBlocks'](_0x249b3e=>_0x249b3e['is']('element','listItem')&&'numbered'===_0x249b3e['getAttribute']('listType'));if(_0x100f11['length']<0x1)return;const _0x20e771=_0x100f11['map'](_0x4bb121=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4bb121,'before'),this['editor']['model']['createPositionAt'](_0x4bb121,0x0)));this['editor']['model']['change'](()=>{_0xdadb57['markMultiRangeBlockFormat'](_0x20e771,{'commandName':'listReversed','commandParams':[{'reversed':_0x1f3989['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xadfe06,_0x2f9bb7={}){const _0x4ee041=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ad7e6=this['_getSuggestionBlocks'](_0x4fe40c=>_0x4fe40c['is']('element','listItem')&&'numbered'===_0x4fe40c['getAttribute']('listType'));if(_0x2ad7e6['length']<0x1)return;const _0x4d50d7=_0x2ad7e6['map'](_0x1edfab=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1edfab,'before'),this['editor']['model']['createPositionAt'](_0x1edfab,0x0)));this['editor']['model']['change'](()=>{_0x4ee041['markMultiRangeBlockFormat'](_0x4d50d7,{'commandName':'listStart','commandParams':[{'startIndex':_0x2f9bb7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x39f8ae){if('formatBlock'!=_0x39f8ae['type']&&'formatInline'!=_0x39f8ae['type'])return;const _0x37e5aa=this['editor']['locale'],{data:_0x28ff6a}=_0x39f8ae;if(!_0x28ff6a)return;let _0x558ba4,_0x147f9a;switch(_0x28ff6a['commandName']){case'listStyle':_0x558ba4='*Change\x20to:*\x20%0',_0x147f9a={'type':'format','content':o(_0x37e5aa,_0x558ba4,o(_0x37e5aa,this['_getTranslationKeyForListStyle'](_0x28ff6a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x558ba4=_0x28ff6a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x147f9a={'type':'format','content':o(_0x37e5aa,_0x558ba4)};break;case'listStart':_0x558ba4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x147f9a={'type':'format','content':o(_0x37e5aa,_0x558ba4,_0x28ff6a['commandParams'][0x0]['startIndex'])};}return _0x147f9a;}['_getSuggestionBlocksForListStyle'](){var _0x13f3a0,_0x4a30d0,_0x18d97c,_0x1381a4;const _0x29cc91=this['editor']['plugins']['get']('LegacyListUtils');let _0x12f718=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x13f3a0=_0x12f718[0x0])||void 0x0===_0x13f3a0?void 0x0:_0x13f3a0['is']('element','listItem'))&&_0x12f718['unshift'](..._0x29cc91['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x4a30d0=_0x12f718[_0x12f718['length']-0x1])||void 0x0===_0x4a30d0?void 0x0:_0x4a30d0['is']('element','listItem'))&&_0x12f718['push'](..._0x29cc91['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x12f718=[...new Set(_0x12f718)],(null===(_0x1381a4=null===(_0x18d97c=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x18d97c?void 0x0:_0x18d97c['parent'])||void 0x0===_0x1381a4?void 0x0:_0x1381a4['is']('element','listItem'))&&(_0x12f718=_0x12f718['filter'](_0x56069d=>_0x56069d['is']('element','listItem'))),_0x12f718;}['_getSuggestionBlocks'](_0x1ef315){const _0x98a546=this['editor']['plugins']['get']('LegacyListUtils');let _0x4e888b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1ef315)['map'](_0x1b3e79=>{const _0x404572=this['editor']['model']['createPositionAt'](_0x1b3e79,0x0);return[..._0x98a546['getSiblingNodes'](_0x404572,'backward'),..._0x98a546['getSiblingNodes'](_0x404572,'forward')];})['flat']();return _0x4e888b=[...new Set(_0x4e888b)],_0x4e888b;}['_getTranslationKeyForListStyle'](_0x4f9a47){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4f9a47)||'default')['toUpperCase']()+'_LIST_'+_0x4f9a47['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1e79ec{['afterInit'](){const _0x38001c=this['editor'];if(!_0x38001c['plugins']['has']('MediaEmbedEditing'))return;const _0x215c5c=_0x38001c['plugins']['get']('TrackChangesEditing'),_0x4d7276=_0x38001c['locale'];_0x215c5c['enableCommand']('mediaEmbed'),_0x215c5c['descriptionFactory']['registerElementLabel']('media',_0xe8f328=>o(_0x4d7276,'ELEMENT_MEDIA',_0xe8f328)),_0x38001c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x31c703,{writer:_0x37c27c,options:_0xbd8fa3})=>{if(_0xbd8fa3['showSuggestionHighlights'])return _0x37c27c['createEmptyElement']('div');},'converterPriority':'high'}),_0x38001c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1f5a29,_0x51778e,_0x29d645)=>{_0x29d645['options']['showSuggestionHighlights']&&_0x1f5a29['stop']();},{'priority':'high'});}}class gt extends _0x1e79ec{['afterInit'](){const _0x18e74a=this['editor'];_0x18e74a['plugins']['has']('MentionEditing')&&_0x18e74a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1e79ec{['afterInit'](){const _0xdfe463=this['editor'],_0x10c194=_0xdfe463['plugins']['get']('TrackChangesEditing');_0xdfe463['plugins']['has']('MultiLevelList')&&(_0x10c194['enableDefaultAttributesIntegration']('multiLevelList'),_0x10c194['registerBlockAttribute']('listMarkerStyle'),_0x10c194['descriptionFactory']['registerDescriptionCallback'](_0x54a7b4=>this['handleDescriptions'](_0x54a7b4)));}['handleDescriptions'](_0x57840a){const _0x4bd0c4=this['editor']['locale'],{data:_0x4447e2}=_0x57840a,_0x32238b={'type':'format','content':''};if(_0x4447e2&&'listMarkerStyle'==_0x4447e2['key']){if(!_0x4447e2['oldValue'])return{'type':'format','content':o(_0x4bd0c4,'*Set\x20format:*\x20%0',o(_0x4bd0c4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4447e2['newValue']+')'};if(!_0x4447e2['newValue']){let _0x1ff01d=_0x57840a['head'];for(;_0x1ff01d;){if(_0x1ff01d['data']&&'listType'==_0x1ff01d['data']['key']&&_0x1ff01d['data']['newValue'])return _0x32238b;_0x1ff01d=_0x1ff01d['next'];}return{'type':'format','content':o(_0x4bd0c4,'*Remove\x20format:*\x20%0',o(_0x4bd0c4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4447e2['oldValue']+')'};}}}}class mt extends _0x1e79ec{['afterInit'](){const _0x5a3870=this['editor'];if(!_0x5a3870['plugins']['has']('PageBreakEditing'))return;_0x5a3870['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2b46cb=_0x5a3870['plugins']['get']('TrackChangesEditing'),_0x5c6fbf=_0x5a3870['locale'];_0x2b46cb['descriptionFactory']['registerElementLabel']('pageBreak',_0x44c30d=>o(_0x5c6fbf,'ELEMENT_PAGE_BREAK',_0x44c30d));}}class dt extends _0x1e79ec{['afterInit'](){const _0x59591b=this['editor'];if(!_0x59591b['plugins']['has']('Paragraph'))return;const _0x15565c=_0x59591b['locale'],_0x47aa85=_0x59591b['plugins']['get']('TrackChangesEditing');_0x47aa85['descriptionFactory']['registerElementLabel']('paragraph',_0x34b208=>o(_0x15565c,'ELEMENT_PARAGRAPH',_0x34b208)),_0x47aa85['enableDefaultAttributesIntegration']('paragraph'),_0x47aa85['enableCommand']('insertParagraph'),_0x59591b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x59591b),{'priority':'highest'}),_0x59591b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e8be3,_0x36c8be,_0x27c55d)=>{_0x27c55d['options']['showSuggestionHighlights']&&nr(_0x59591b,{'showActiveMarker':!0x1})(_0x1e8be3,_0x36c8be,_0x27c55d);},{'priority':'highest'});const _0x2eb784=_0x47aa85['descriptionFactory'];_0x2eb784['registerDescriptionCallback'](_0x417757=>{if('insertion'!==_0x417757['type'])return;const {start:_0x2b2c7a,end:_0x4a964a}=_0x417757['getFirstRange']();if(!_0x2b2c7a['isTouching'](_0x4a964a)||!_0x2b2c7a['nodeAfter'])return;const _0x54e24d=_0x59591b['model']['schema'],_0x4be4d4=_0x2b2c7a['nodeAfter'];return _0x54e24d['isBlock'](_0x4be4d4)&&!_0x54e24d['isLimit'](_0x4be4d4)&&_0x54e24d['checkChild'](_0x4be4d4,'$text')?{'type':'insertion','content':o(_0x15565c,'*Insert:*\x20%0',_0x2eb784['getItemLabel'](_0x4be4d4,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x323f40=this['editor'],_0x2be08d=_0x323f40['locale'];_0x323f40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10317c=>{if('formatBlock'!=_0x10317c['type'])return;const {data:_0x18f6eb}=_0x10317c;return _0x18f6eb&&'paragraph'==_0x18f6eb['commandName']?{'type':'format','content':o(_0x2be08d,'*Change\x20to:*\x20%0',o(_0x2be08d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x36a9c2,{showActiveMarker:_0x442d85=!0x0}={}){return(_0x5b5160,_0x3c0789,_0x77cf20)=>{const _0x64841f=_0x36a9c2['plugins']['get']('TrackChangesEditing'),_0x2a76de=_0x3c0789['markerRange']['start'],_0x4cfda8=_0x3c0789['markerRange']['end'],_0x4f0403=_0x36a9c2['model']['schema'];if(!_0x2a76de['isTouching'](_0x4cfda8)||!_0x2a76de['nodeAfter'])return;const _0x249277=_0x2a76de['nodeAfter'];if(_0x4f0403['isBlock'](_0x249277)&&!_0x4f0403['isLimit'](_0x249277)&&_0x4f0403['checkChild'](_0x249277,'$text')){if(!_0x77cf20['consumable']['consume'](_0x3c0789['markerRange'],_0x5b5160['name']))return;const _0x20387f=_0x77cf20['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x18c02a=_0x77cf20['mapper']['toViewPosition'](_0x4cfda8);_0x442d85&&_0x64841f['activeMarkers']['includes'](_0x3c0789['markerName'])&&_0x77cf20['writer']['addClass']('ck-suggestion-marker--active',_0x20387f),_0x77cf20['writer']['insert'](_0x18c02a,_0x20387f),_0x77cf20['mapper']['bindElementToMarker'](_0x20387f,_0x3c0789['markerName']);}};}class pt extends _0x1e79ec{['afterInit'](){const _0x29b2ee=this['editor'];if(!_0x29b2ee['plugins']['has']('RemoveFormatEditing'))return;_0x29b2ee['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x593ab4=this['editor'];_0x593ab4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c8425=>{if('formatBlock'!=_0x3c8425['type']&&'formatInline'!=_0x3c8425['type'])return;const {data:_0x1d65a2}=_0x3c8425;return _0x1d65a2&&'removeFormat'==_0x1d65a2['commandName']?{'type':'format','content':o(_0x593ab4['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1e79ec{['afterInit'](){const _0x58385a=this['editor'];if(!_0x58385a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2ebce5=_0x58385a['plugins']['get']('TrackChangesEditing');_0x2ebce5['enableCommand']('goToPreviousRestrictedEditingException'),_0x2ebce5['enableCommand']('goToNextRestrictedEditingException');const _0x4fcec0=_0x58385a['plugins']['get']('RestrictedEditingModeEditing');_0x4fcec0['enableCommand']('trackChanges'),_0x4fcec0['enableCommand']('acceptSuggestion'),_0x4fcec0['enableCommand']('discardSuggestion'),_0x4fcec0['enableCommand']('acceptAllSuggestions'),_0x4fcec0['enableCommand']('discardAllSuggestions'),_0x4fcec0['enableCommand']('acceptSelectedSuggestions'),_0x4fcec0['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1e79ec{static get['requires'](){return[_0x3b3aa8];}['init'](){const _0x5b72e6=this['editor'],_0x567e53=_0x5b72e6['plugins']['get']('TrackChangesEditing');_0x567e53['enableCommand']('shiftEnter'),_0x5b72e6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x5b72e6),{'priority':'high'}),_0x5b72e6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x5b72e6),{'priority':'high'}),_0x5b72e6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4bee93,_0x161fe1,_0x3d9b3d)=>{_0x3d9b3d['options']['showSuggestionHighlights']&&de(_0x5b72e6,{'showActiveMarker':!0x1})(_0x4bee93,_0x161fe1,_0x3d9b3d);}),_0x567e53['descriptionFactory']['registerElementLabel']('softBreak',_0x714617=>o(_0x5b72e6['locale'],'ELEMENT_LINE_BREAK',_0x714617));}}function de(_0x37e57b,{showActiveMarker:_0x2fc40b=!0x0}={}){return(_0x22390e,_0x427a57,_0x987252)=>{const _0x7f02ee=_0x37e57b['plugins']['get']('TrackChangesEditing');if(!_0x987252['consumable']['test'](_0x427a57['markerRange'],_0x22390e['name']))return;const _0x3a6630=_0x37e57b['model'];for(const _0x48cb50 of _0x427a57['markerRange']['getItems']()){if(!_0x48cb50['is']('element','softBreak'))continue;const _0x4e27cc='deletion'==_0x427a57['markerName']['split'](':')[0x1]?'merge':'split',_0x2964d8=_0x987252['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e27cc}),_0x42d6cd=_0x987252['mapper']['toViewPosition'](_0x3a6630['createPositionBefore'](_0x48cb50));_0x2fc40b&&_0x7f02ee['activeMarkers']['includes'](_0x427a57['markerName'])&&_0x987252['writer']['addClass']('ck-suggestion-marker--active',_0x2964d8),_0x987252['writer']['insert'](_0x42d6cd,_0x2964d8),_0x987252['mapper']['bindElementToMarker'](_0x2964d8,_0x427a57['markerName']);}};}class wt extends _0x1e79ec{['afterInit'](){const _0x232253=this['editor'],_0x435249=_0x232253['model'],_0x11eba5=_0x232253['locale'];if(!_0x232253['plugins']['has']('StandardEditingModeEditing'))return;const _0x15d214=_0x232253['plugins']['get']('TrackChangesEditing'),_0xc007bd='restrictedEditingException',_0x309b7b=_0x232253['commands']['get'](_0xc007bd);_0x15d214['enableCommand'](_0xc007bd,(_0x4eaba8,_0x216416={})=>{const _0x503fd5=_0x435249['document']['selection'];if(_0x503fd5['isCollapsed'])return void _0x4eaba8(_0x216416);const _0x2e4a59=void 0x0!==_0x216416['forceValue']?_0x216416['forceValue']:!_0x309b7b['value'];_0x435249['change'](()=>{const _0x37c90d=Array['from'](_0x503fd5['getRanges']());for(const _0x2961fd of _0x37c90d){const _0x14ddc7=_0x2e4a59?[_0x2961fd]:io(_0xc007bd,_0x2961fd,_0x435249);for(const _0x147a37 of _0x14ddc7)_0x15d214['markInlineFormat'](_0x147a37,{'commandName':_0xc007bd,'commandParams':[{'forceValue':_0x2e4a59}]});}});}),_0x15d214['descriptionFactory']['registerDescriptionCallback'](_0x5ac16c=>{if('formatBlock'!=_0x5ac16c['type']&&'formatInline'!=_0x5ac16c['type'])return;const {data:_0x47fcbd}=_0x5ac16c;return _0x47fcbd&&_0x47fcbd['commandName']==_0xc007bd?_0x47fcbd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11eba5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x11eba5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1e79ec{['afterInit'](){const _0x85d004=this['editor'];if(!_0x85d004['plugins']['has']('Style')||!_0x85d004['plugins']['has']('DataSchema'))return;const _0x31a7a0=_0x85d004['plugins']['get']('TrackChangesEditing'),_0x4ed98b=_0x85d004['locale'],_0x3945a5=_0x85d004['config']['get']('style')||{},_0x1452a0=_0x85d004['plugins']['get']('GeneralHtmlSupport'),_0x25a367=_0x85d004['plugins']['get']('StyleUtils')['normalizeConfig'](_0x85d004['plugins']['get']('DataSchema'),_0x3945a5['definitions']);_0x31a7a0['enableDefaultAttributesIntegration']('style');const _0x78f95e=new Set();for(const _0x399031 of _0x25a367['block']){const _0x2d4e7c=_0x1452a0['getGhsAttributeNameForElement'](_0x399031['element']);_0x78f95e['add'](_0x2d4e7c);}const _0x32f887=new Set();for(const _0x510a54 of _0x25a367['inline']){const _0x311004=_0x1452a0['getGhsAttributeNameForElement'](_0x510a54['element']);_0x32f887['add'](_0x311004);for(const _0xf24ad2 of _0x510a54['ghsAttributes'])_0x32f887['add'](_0xf24ad2);}for(const _0x1272d8 of _0x78f95e)_0x31a7a0['registerBlockAttribute'](_0x1272d8),_0x31a7a0['descriptionFactory']['registerAttributeLabel'](_0x1272d8,o(_0x4ed98b,'FORMAT_STYLE'));for(const _0x3dfd9b of _0x32f887)_0x31a7a0['registerInlineAttribute'](_0x3dfd9b),_0x31a7a0['descriptionFactory']['registerAttributeLabel'](_0x3dfd9b,o(_0x4ed98b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26d341=this['editor'],_0x584ad7=_0x26d341['locale'];_0x26d341['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d6134=>{if('formatBlock'!=_0x4d6134['type']&&'formatInline'!=_0x4d6134['type'])return;const {data:_0x18b174}=_0x4d6134;return _0x18b174&&'style'===_0x18b174['commandName']?_0x18b174['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x584ad7,'*Set\x20format:*\x20%0',_0x18b174['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x584ad7,'*Remove\x20format:*\x20%0',_0x18b174['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1e79ec{['afterInit'](){const _0x202b09=this['editor'],_0x43f192=_0x202b09['model']['document']['selection'];if(!_0x202b09['plugins']['has']('TableEditing'))return;const _0x8df656=_0x202b09['locale'],_0x4053ae=_0x202b09['plugins']['get']('TrackChangesEditing'),_0x16046c=_0x202b09['plugins']['get']('TableUtils');_0x4053ae['descriptionFactory']['registerElementLabel']('table',_0x666eb1=>o(_0x8df656,'ELEMENT_TABLE',_0x666eb1)),this['_setupColumnsRowsFixing'](),_0x4053ae['enableCommand']('insertTable'),_0x4053ae['enableCommand']('selectTableRow'),_0x4053ae['enableCommand']('selectTableColumn');for(const _0x5d857d of['insertTableRowAbove','insertTableRowBelow']){const _0x188ed9=_0x202b09['commands']['get'](_0x5d857d);_0x4053ae['enableCommand'](_0x5d857d,_0x9f73ed=>{_0x202b09['model']['change'](_0x3488d3=>{_0x9f73ed();const _0x5c0707='above'===_0x188ed9['order'],_0x2cec06=_0x16046c['getSelectionAffectedTableCells'](_0x43f192),_0x2a9f28=_0x16046c['getRowIndexes'](_0x2cec06),_0xc60ea=_0x5c0707?_0x2a9f28['first']-0x1:_0x2a9f28['last']+0x1,_0x707b8a=_0x2cec06[0x0]['findAncestor']('table'),_0x5d7c6c=_0x16046c['createTableWalker'](_0x707b8a,{'startRow':_0xc60ea,'endRow':_0xc60ea}),_0x3984ef=Array['from'](_0x5d7c6c)['map'](_0x478083=>_0x3488d3['createRangeOn'](_0x478083['cell']));_0x4053ae['markMultiRangeInsertion'](_0x3984ef,'tableRow');});});}for(const _0x9bed68 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2b1b26=_0x202b09['commands']['get'](_0x9bed68);_0x4053ae['enableCommand'](_0x9bed68,_0x3ba575=>{_0x202b09['model']['change'](_0x2d6b5a=>{_0x3ba575();const _0x5059d3='left'===_0x2b1b26['order'],_0x4e6535=_0x16046c['getSelectionAffectedTableCells'](_0x43f192),_0x56957b=_0x16046c['getColumnIndexes'](_0x4e6535),_0x14d55d=_0x5059d3?_0x56957b['first']-0x1:_0x56957b['last']+0x1,_0x123a83=_0x4e6535[0x0]['findAncestor']('table'),_0x42ad12=_0x16046c['createTableWalker'](_0x123a83,{'startRow':0x0,'column':_0x14d55d,'includeAllSlots':!0x1}),_0x571cef=Array['from'](_0x42ad12)['map'](_0x635d4c=>_0x2d6b5a['createRangeOn'](_0x635d4c['cell']));_0x4053ae['markMultiRangeInsertion'](_0x571cef,'tableColumn');});});}for(const _0x27a692 of['removeTableRow','removeTableColumn']){const _0x247c77=_0x27a692['substr'](0xb),_0x3c1767=_0x247c77['toLowerCase'](),_0x362443=_0x3c1767['substr'](0x0,0x3)+'span',_0x29193d='table'+_0x247c77,_0x1131aa='min'+_0x247c77,_0x2ae80d='max'+_0x247c77;_0x4053ae['enableCommand'](_0x27a692,()=>{_0x202b09['model']['change'](_0x1564b0=>{const _0x4c1832=_0x16046c['getSelectionAffectedTableCells'](_0x43f192),_0x35abc2=_0x4c1832[0x0]['findAncestor']('table');let _0x15f727;if('removeTableRow'==_0x27a692){const _0x477da4=_0x16046c['getRowIndexes'](_0x4c1832);_0x15f727={'startRow':_0x477da4['first'],'endRow':_0x477da4['last'],'includeAllSlots':!0x0};}else{const _0x554c1c=_0x16046c['getColumnIndexes'](_0x4c1832);_0x15f727={'startColumn':_0x554c1c['first'],'endColumn':_0x554c1c['last'],'includeAllSlots':!0x0};}const _0x4c39cf=_0x16046c['createTableWalker'](_0x35abc2,_0x15f727),_0xabe033=Array['from'](_0x4c39cf)['map'](({cell:_0x2298c2})=>_0x2298c2),_0x1e9b00=Ee(_0xabe033['filter'](_0x5b9942=>_0x5b9942['hasAttribute'](_0x362443))),_0x5cef65=Ee(_0xabe033['filter'](_0x2a11bd=>!_0x2a11bd['hasAttribute'](_0x362443)))['map'](_0x4c805a=>_0x1564b0['createRangeOn'](_0x4c805a)),_0x536eb7=_0x4053ae['markMultiRangeDeletion'](_0x5cef65,_0x29193d);if(_0x536eb7&&('tableRow'==_0x536eb7['subType']||'tableColumn'==_0x536eb7['subType'])){const _0x43e4ae=this['_getSuggestionCoords'](_0x536eb7);for(const _0x475ac0 of _0x1e9b00){const _0x4c3160=_0x1564b0['createRangeOn'](_0x475ac0),_0x2b64fd=_0x16046c['getCellLocation'](_0x475ac0),_0x344d6e=_0x475ac0['getAttribute'](_0x362443)-0x1,_0xf1fec3=_0x43e4ae[_0x1131aa],_0x507a52=_0x43e4ae[_0x2ae80d];_0xf1fec3<=_0x2b64fd[_0x3c1767]&&_0x2b64fd[_0x3c1767]+_0x344d6e<=_0x507a52&&_0x536eb7['addRange'](_0x4c3160);}}});});}function _0x20489a(_0x37e49c){const _0xe575f5=Array['from'](_0x43f192['getRanges']())['map'](_0x9df8f9=>_0x43239f['fromRange'](_0x9df8f9));_0x202b09['model']['change'](_0x27afe9=>{const _0x228192=_0x27afe9['batch'];_0x37e49c=_0x37e49c['filter'](_0xdc202e=>'$graveyard'!=_0xdc202e['root']['rootName']),_0x27afe9['setSelection'](_0x37e49c),_0x202b09['commands']['get']('removeTableRow')['refresh'](),_0x202b09['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x202b09['model']['enqueueChange'](()=>{_0x202b09['model']['enqueueChange'](_0x228192,_0x48f501=>{const _0xb57637=_0xe575f5['filter'](_0x419aca=>'$graveyard'!=_0x419aca['root']['rootName']);_0xb57637['length']>0x0&&_0x48f501['setSelection'](_0xb57637);for(const _0x2ff16f of _0xe575f5)_0x2ff16f['detach']();});});});}function _0x5ab930(_0x1a202d){_0x202b09['model']['change'](_0x226278=>{const _0x482be7=Array['from'](_0x43f192['getRanges']())['map'](_0x2ece0a=>_0x43239f['fromRange'](_0x2ece0a)),_0x2e7b4f=[];for(const _0x3d39a1 of _0x1a202d)for(const _0x418d4c of _0x3d39a1['getItems']({'shallow':!0x0}))_0x2e7b4f['push'](_0x418d4c);for(const _0x14bdfd of _0x2e7b4f)'$graveyard'!=_0x14bdfd['root']['rootName']&&(_0x226278['setSelection'](_0x226278['createPositionAt'](_0x14bdfd,0x0)),_0x202b09['commands']['get']('removeTableColumn')['refresh'](),_0x202b09['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5f51bf=_0x482be7['filter'](_0x35fbf8=>'$graveyard'!=_0x35fbf8['root']['rootName']);_0x5f51bf['length']>0x0&&_0x226278['setSelection'](_0x5f51bf);for(const _0x119a7e of _0x482be7)_0x119a7e['detach']();});}function _0x2772c7(_0x508d5e,_0x25429a){return _0x25429a['every'](_0x44a8f2=>_0x508d5e['some'](_0x2b806f=>_0x2b806f['end']['isEqual'](_0x44a8f2['start'])||_0x44a8f2['end']['isEqual'](_0x2b806f['start'])));}function _0x1dd9f2(_0x460844,_0xabe044){return _0x460844['some'](_0x5c7b83=>_0xabe044['some'](_0x3c79ab=>_0x5c7b83['end']['isTouching'](_0x3c79ab['start'])));}_0x202b09['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x530d36,_0x4b0b60,_0x4e3679)=>{if(!_0x4e3679['options']['showSuggestionHighlights'])return;const _0x1098b1=_0x4b0b60['item'];if(!_0x1098b1)return;const _0x4c5ccb=_0x4e3679['mapper']['toViewElement'](_0x1098b1);function _0xe8b5d(_0x26cd13){return Array['isArray'](_0x26cd13)?_0x26cd13:[_0x26cd13];}_0x4c5ccb&&'tableCell'===_0x1098b1['name']&&_0x1d6a2b(_0x4c5ccb,_0x4e3679['writer'],(_0x5077ba,_0x372b2c,_0x1a9b6a)=>_0x1a9b6a['addClass'](_0xe8b5d(_0x372b2c['classes']),_0x5077ba),(_0x22ea5c,_0x7b2eff,_0x12d0d8)=>_0x12d0d8['removeClass'](_0xe8b5d(_0x7b2eff['classes']),_0x22ea5c));},{'priority':'highest'}),_0x4053ae['descriptionFactory']['registerDescriptionCallback'](_0x547094=>{if('insertion'!=_0x547094['type']&&'deletion'!=_0x547094['type'])return;const _0x47e89b=_0x547094['getContainedElement']();if(null!=_0x47e89b&&_0x47e89b['is']('element','table')){if('insertion'==_0x547094['type']){const _0x257016=_0x547094['getItems']()['filter'](_0x597ffb=>_0x597ffb['is']('$textProxy'))['map'](_0x5dc2b1=>_0x5dc2b1['data']);if(_0x257016['length'])return{'type':'insertion','content':o(_0x8df656,'*Insert:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x257016['join']('\x20')+'\x22'))};}if('deletion'==_0x547094['type']){const _0x353d2d=_0x547094['getItems']()['filter'](_0x57d824=>_0x57d824['is']('$textProxy'))['map'](_0x507221=>_0x507221['data']);if(_0x353d2d['length'])return{'type':'deletion','content':o(_0x8df656,'*Remove:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x353d2d['join']('\x20')+'\x22'))};}}}),_0x4053ae['descriptionFactory']['registerDescriptionCallback'](_0x44682f=>{if('tableRow'==_0x44682f['subType']){const _0x2353a1=_0x44682f['getItems']()['filter'](_0x42466f=>_0x42466f['is']('$textProxy'))['map'](_0x213805=>_0x213805['data']),_0x5d7b48=this['_getSuggestionCoords'](_0x44682f),_0x3e28c5=_0x5d7b48['maxRow']-_0x5d7b48['minRow']+0x1;if('insertion'==_0x44682f['type'])return _0x2353a1['length']?{'type':'insertion','content':o(_0x8df656,'*Insert:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3e28c5,'\x22'+_0x2353a1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x8df656,'*Insert:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_ROW',_0x3e28c5))};if('deletion'==_0x44682f['type'])return _0x2353a1['length']?{'type':'deletion','content':o(_0x8df656,'*Remove:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3e28c5,'\x22'+_0x2353a1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x8df656,'*Remove:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_ROW',_0x3e28c5))};}if('tableColumn'==_0x44682f['subType']){const _0x4924e5=_0x44682f['getItems']()['filter'](_0x5df6cb=>_0x5df6cb['is']('$textProxy'))['map'](_0x2939fc=>_0x2939fc['data']),_0x2efd45=this['_getSuggestionCoords'](_0x44682f),_0x42d6af=_0x2efd45['maxColumn']-_0x2efd45['minColumn']+0x1;if('insertion'==_0x44682f['type'])return _0x4924e5['length']?{'type':'insertion','content':o(_0x8df656,'*Insert:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x42d6af,'\x22'+_0x4924e5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x8df656,'*Insert:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_COLUMN',_0x42d6af))};if('deletion'==_0x44682f['type'])return _0x4924e5['length']?{'type':'deletion','content':o(_0x8df656,'*Remove:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x42d6af,'\x22'+_0x4924e5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x8df656,'*Remove:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_COLUMN',_0x42d6af))};}}),_0x4053ae['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x20489a),_0x4053ae['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x20489a),_0x4053ae['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5ab930),_0x4053ae['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5ab930),_0x4053ae['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2772c7),_0x4053ae['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2772c7),_0x4053ae['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1dd9f2),_0x4053ae['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1dd9f2);}['_acceptFormatSuggestionCallbackFactory'](){const _0x8c5f6d=this['editor'],_0x25ddef=_0x8c5f6d['model']['document']['selection'];return(_0x297861,_0x166a60)=>{_0x8c5f6d['model']['change'](_0x4e068b=>{const {commandName:_0x316ff7,commandParams:_0x13558b}=_0x166a60;let _0x42726a=_0x297861[0x0]['end']['nodeBefore'];_0x13558b&&_0x13558b[0x0]&&!0x1===_0x13558b[0x0]['forceValue']&&(_0x42726a=_0x297861[0x0]['start']['nodeAfter']);const _0x20086f=_0x4e068b['createRangeIn'](_0x42726a);if('$graveyard'==_0x20086f['root']['rootName'])return;const _0x44c249=Array['from'](_0x25ddef['getRanges']())['map'](_0x38898a=>_0x43239f['fromRange'](_0x38898a));_0x4e068b['setSelection'](_0x20086f),_0x8c5f6d['commands']['get'](_0x316ff7)['refresh'](),_0x13558b['push']({'forceDefaultExecution':!0x0}),_0x8c5f6d['execute'](_0x316ff7,..._0x13558b);const _0x323787=_0x44c249['filter'](_0xdc9d42=>'$graveyard'!=_0xdc9d42['root']['rootName']);_0x323787['length']>0x0&&_0x4e068b['setSelection'](_0x323787);for(const _0x436c63 of _0x44c249)_0x436c63['detach']();});};}['_getCoordsForCells'](_0x364c0f){const _0x19a9a7=this['editor']['plugins']['get']('TableUtils');let _0x20d88e=Number['MAX_SAFE_INTEGER'],_0x391088=Number['MIN_SAFE_INTEGER'],_0x32e51=Number['MAX_SAFE_INTEGER'],_0x24179d=Number['MIN_SAFE_INTEGER'];for(const _0x2f5855 of _0x364c0f){if('$graveyard'==_0x2f5855['root']['rootName'])continue;const {row:_0x4eb984,column:_0x3aebfd}=_0x19a9a7['getCellLocation'](_0x2f5855),_0x1ef525=_0x2f5855['hasAttribute']('rowspan')?_0x2f5855['getAttribute']('rowspan')-0x1:0x0,_0x5d89b4=_0x2f5855['hasAttribute']('colspan')?_0x2f5855['getAttribute']('colspan')-0x1:0x0;_0x20d88e=_0x4eb984<_0x20d88e?_0x4eb984:_0x20d88e,_0x391088=_0x4eb984+_0x1ef525>_0x391088?_0x4eb984+_0x1ef525:_0x391088,_0x32e51=_0x3aebfd<_0x32e51?_0x3aebfd:_0x32e51,_0x24179d=_0x3aebfd+_0x5d89b4>_0x24179d?_0x3aebfd+_0x5d89b4:_0x24179d;}return{'minRow':_0x20d88e,'maxRow':_0x391088,'minColumn':_0x32e51,'maxColumn':_0x24179d};}['_setupColumnsRowsFixing'](){const _0x361814=this['editor'],_0x289f17=_0x361814['plugins']['get']('TrackChangesEditing'),_0x45c39f=_0x361814['plugins']['get']('TableUtils');_0x361814['model']['document']['on']('change:data',()=>{const _0x128ab7=Array['from'](_0x361814['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x469f46,data:_0x3c000a}of _0x128ab7){const {group:_0xb43000,id:_0xbb7de1,subType:_0x2ee07a}=_0x289f17['_splitMarkerName'](_0x469f46);if('suggestion'!=_0xb43000)continue;if(null!=_0x3c000a['oldRange'])continue;const _0x490c8d=_0x289f17['getSuggestion'](_0xbb7de1);this['_tablePostFixingSubtypes']['includes'](_0x2ee07a)&&this['_tableSuggestions']['add'](_0x490c8d);}},{'priority':'low'});const _0x34822d=(_0x488005,_0x5588c1)=>{let _0xe228d2=!0x1;const _0x3830d8=_0x5588c1['createRangeOn'](_0x488005),_0x43de88=_0x488005['findAncestor']('table'),_0xba981=_0x45c39f['getCellLocation'](_0x488005);for(const _0x8d3bf5 of this['_tableSuggestions']){const _0x35380c=_0x8d3bf5['subType'],_0x4047a8=_0x35380c['startsWith']('tablePaste'),_0x2c25e2=_0x35380c['substr'](_0x4047a8?0xa:0x5),_0x3e5174=_0x2c25e2['toLowerCase'](),_0x12e8f9=_0x3e5174['substr'](0x0,0x3)+'span',_0x43df22='min'+_0x2c25e2,_0x5d8d84='max'+_0x2c25e2;if(!_0x8d3bf5['isInContent'])continue;if(_0x43de88!=_0x8d3bf5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x8d3bf5['isIntersectingWithRange'](_0x3830d8))continue;const _0x5915af=_0x488005['hasAttribute'](_0x12e8f9)?_0x488005['getAttribute'](_0x12e8f9)-0x1:0x0,_0x237b3a=this['_getSuggestionCoords'](_0x8d3bf5),_0x36b0f7=_0x237b3a[_0x43df22],_0x54a5d2=_0x237b3a[_0x5d8d84];_0x36b0f7<=_0xba981[_0x3e5174]&&_0xba981[_0x3e5174]+_0x5915af<=_0x54a5d2&&(_0x8d3bf5['addRange'](_0x3830d8),_0xe228d2=!0x0);}return _0xe228d2;};_0x361814['model']['document']['registerPostFixer'](_0x272eab=>{let _0x4bc320=!0x1;for(const _0x28d105 of _0x361814['model']['document']['differ']['getChanges']())if('insert'==_0x28d105['type']){if('tableRow'==_0x28d105['name']){for(const _0x1668fa of _0x28d105['position']['nodeAfter']['getChildren']())_0x4bc320=_0x4bc320||_0x34822d(_0x1668fa,_0x272eab);}else'tableCell'==_0x28d105['name']&&(_0x4bc320=_0x4bc320||_0x34822d(_0x28d105['position']['nodeAfter'],_0x272eab));}return _0x4bc320;});}['_getSuggestionCoords'](_0x3e379b){return this['_getCoordsForCells'](_0x3e379b['getRanges']()['map'](_0x2b3a59=>_0x2b3a59['start']['nodeAfter']));}constructor(_0xad409e){super(_0xad409e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x850e47){return Array['from'](new Set(_0x850e47)['values']());}class St extends _0x1e79ec{static get['requires'](){return[jt];}['afterInit'](){const _0x397e26=this['editor'],_0xc2f46e=_0x397e26['model']['document']['selection'],_0x44e0bb=_0x397e26['locale'];if(!_0x397e26['plugins']['has']('TableEditing'))return;const _0x22637b=_0x397e26['plugins']['get']('TrackChangesEditing'),_0x410d23=_0x397e26['plugins']['get']('TableUtils'),_0x5b979c=_0x397e26['plugins']['get'](jt);_0x5b979c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x22637b['enableCommand']('mergeTableCells',()=>{const _0x1b994d=_0x410d23['getSelectionAffectedTableCells'](_0x397e26['model']['document']['selection']);_0x397e26['model']['change'](()=>{_0x22637b['markMultiRangeBlockFormat'](_0x1b994d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x397e26['commands']['get']('mergeTableCells')['on']('execute',(_0x209091,_0xd220ed)=>{_0x397e26['commands']['get']('trackChanges')['value']&&(_0xd220ed['length']>0x0&&_0xd220ed[_0xd220ed['length']-0x1]&&_0xd220ed[_0xd220ed['length']-0x1]['forceDefaultExecution']||_0x22637b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x209091['stop']());},{'priority':'highest'});for(const _0x53bf7f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x359f9f=_0x397e26['commands']['get'](_0x53bf7f);_0x22637b['enableCommand'](_0x53bf7f,()=>{const _0x36c7f4=_0x397e26['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x454f68=>_0x454f68['is']('element','tableCell')),_0x56b097=_0x359f9f['value'];_0x397e26['model']['change'](()=>{_0x22637b['markMultiRangeBlockFormat']([_0x36c7f4,_0x56b097],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3f2f4b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x23b5f7=_0x397e26['commands']['get'](_0x3f2f4b);_0x22637b['enableCommand'](_0x3f2f4b,()=>{const _0x1c6767=_0x410d23['getSelectionAffectedTableCells'](_0x397e26['model']['document']['selection'])[0x0],_0x57cfdd=_0x1c6767['findAncestor']('table'),{column:_0x19dd4e,row:_0x5c73f0}=_0x410d23['getCellLocation'](_0x1c6767);let _0x29092d=[];if('horizontally'==_0x23b5f7['direction']){const _0x5b9e1a=_0x410d23['createTableWalker'](_0x57cfdd,{'startRow':_0x5c73f0,'endRow':_0x5c73f0,'includeAllSlots':!0x0});_0x29092d=Array['from'](_0x5b9e1a)['map'](_0x26aefd=>_0x26aefd['cell']);}else{const _0x3f33ae=_0x410d23['createTableWalker'](_0x57cfdd,{'column':_0x19dd4e,'includeAllSlots':!0x0});_0x29092d=Array['from'](_0x3f33ae)['map'](_0x531f9a=>_0x531f9a['cell']);}_0x397e26['model']['change'](_0x3654c1=>{_0x22637b['markBlockFormat'](_0x3654c1['createRangeOn'](_0x1c6767),{'commandName':_0x3f2f4b,'commandParams':[]},_0x29092d,_0x3f2f4b);});});}_0x22637b['descriptionFactory']['registerDescriptionCallback'](_0x32d149=>{if('formatBlock'!=_0x32d149['type']&&'formatInline'!=_0x32d149['type'])return;const {data:_0x7bd8b3}=_0x32d149;return _0x7bd8b3&&'mergeTableCells'==_0x7bd8b3['commandName']?{'type':'format','content':o(_0x44e0bb,'*Merge\x20cells*')}:void 0x0;}),_0x22637b['descriptionFactory']['registerDescriptionCallback'](_0x2a1b4a=>{if('formatBlock'!=_0x2a1b4a['type']&&'formatInline'!=_0x2a1b4a['type'])return;const {data:_0x55bb74}=_0x2a1b4a;return _0x55bb74?'splitTableCellVertically'==_0x55bb74['commandName']?{'type':'format','content':o(_0x44e0bb,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x55bb74['commandName']?{'type':'format','content':o(_0x44e0bb,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x36b895=_0x5b979c['_acceptFormatSuggestionCallbackFactory']();for(const _0x1f27d0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x22637b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f27d0,'accept',_0x36b895);for(const _0x169800 of['splitTableCellVertically','splitTableCellHorizontally'])_0x22637b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x169800,'accept',_0x36b895);_0x22637b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x587e15=>{_0x397e26['model']['change'](_0x48fe24=>{const _0x47b061=Array['from'](_0xc2f46e['getRanges']())['map'](_0x5d37b2=>_0x43239f['fromRange'](_0x5d37b2));_0x48fe24['setSelection'](_0x587e15),_0x397e26['commands']['get']('mergeTableCells')['refresh'](),_0x397e26['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x389a67=_0x47b061['filter'](_0x162d9a=>'$graveyard'!=_0x162d9a['root']['rootName']);_0x389a67['length']>0x0&&_0x48fe24['setSelection'](_0x389a67);for(const _0x2090ef of _0x47b061)_0x2090ef['detach']();});});for(const _0x537c88 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5ba9e2=_0x397e26['commands']['get'](_0x537c88);_0x5ba9e2['on']('set:isEnabled',(_0x524a7f,_0x3ca202,_0x47a93d)=>{if(_0x47a93d){const _0x3d7a32=_0x397e26['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2fa0b4=>_0x2fa0b4['is']('element','tableCell'));this['_areMergableCells'](_0x5ba9e2['value'],_0x3d7a32)||(_0x524a7f['return']=!0x1,_0x524a7f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5c06b0=this['editor']['commands']['get']('mergeTableCells'),_0x2285a9=this['editor']['plugins']['get']('TableUtils');if(!_0x5c06b0['isEnabled'])return!0x1;const _0x4872da=_0x2285a9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x422ac8 of _0x4872da)for(const _0x1fbdda of _0x4872da)if(_0x422ac8!=_0x1fbdda&&!this['_areMergableCells'](_0x422ac8,_0x1fbdda))return!0x1;return!0x0;}['_areMergableCells'](_0x194938,_0x409abd){const _0x4a3b2a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20cfd6=this['editor']['model']['createRangeOn'](_0x194938),_0x46b85e=this['editor']['model']['createRangeOn'](_0x409abd),_0xfad74a=new Set(),_0x32ea9d=new Set();for(const _0x282685 of _0x4a3b2a['getSuggestions']())if(('insertion'==_0x282685['type']||'deletion'==_0x282685['type']||'mergeTableCells'==_0x282685['subType'])&&_0x282685['isInContent']){for(const _0x4d0af8 of _0x282685['getRanges']())_0x4d0af8['containsRange'](_0x20cfd6,!0x0)&&_0xfad74a['add'](_0x282685['type']+':'+_0x282685['author']['id']),_0x4d0af8['containsRange'](_0x46b85e,!0x0)&&_0x32ea9d['add'](_0x282685['type']+':'+_0x282685['author']['id']);}if(_0xfad74a['size']!=_0x32ea9d['size'])return!0x1;for(const _0x358135 of _0xfad74a)if(!_0x32ea9d['has'](_0x358135))return!0x1;return!0x0;}}class At extends _0x1e79ec{static get['requires'](){return[jt];}['afterInit'](){const _0x8deb3d=this['editor'];if(!_0x8deb3d['plugins']['has']('TableEditing'))return;const _0x25b4c9=_0x8deb3d['locale'],_0xc42196=_0x8deb3d['plugins']['get']('TrackChangesEditing');_0xc42196['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xc42196['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xc42196['registerBlockAttribute']('headingRows'),_0xc42196['registerBlockAttribute']('headingColumns'),_0xc42196['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x25b4c9,'FORMAT_HEADER_ROW')),_0xc42196['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x25b4c9,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3e613f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xca334=this['editor']['plugins']['get']('TableUtils'),_0x10b06c=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x175060({showActiveMarker:_0x2b14a9=!0x0,setDataAttribute:_0x286228=!0x0}={}){return(_0x419084,_0x2cd8c2,_0x24ba3e)=>{const {type:_0x40bc8e,id:_0x453d88}=_0x3e613f['_splitMarkerName'](_0x2cd8c2['markerName']),_0x4a60d9=_0x3e613f['getSuggestion'](_0x453d88),_0x495a61=_0x4a60d9['data'];if('formatBlock'!=_0x4a60d9['type']||!_0x495a61||'setTableColumnHeader'!=_0x495a61['commandName'])return;if(_0x2cd8c2['item'])return void _0x419084['stop']();if(!_0x24ba3e['consumable']['consume'](_0x2cd8c2['markerRange'],_0x419084['name']))return;const _0x55f875=_0x2cd8c2['markerRange']['start']['nodeAfter'],_0x160e5a=_0x2cd8c2['markerRange']['end']['nodeBefore'],_0x57fad7=_0x55f875['parent']['parent'],{column:_0x18b79f}=_0xca334['getCellLocation'](_0x55f875),{column:_0xc204eb}=_0xca334['getCellLocation'](_0x160e5a);for(let _0x534d82=_0x18b79f;_0x534d82<=_0xc204eb;_0x534d82++){const _0x3831dd=_0xca334['createTableWalker'](_0x57fad7,{'column':_0x534d82,'includeAllSlots':!0x1});for(const _0x54ac2c of _0x3831dd){const _0x1f42cc=_0x54ac2c['cell'],_0x4ddee5=_0x24ba3e['mapper']['toViewElement'](_0x1f42cc);_0x24ba3e['writer']['addClass']('ck-suggestion-marker-'+_0x40bc8e,_0x4ddee5),_0x286228&&_0x24ba3e['writer']['setAttribute']('data-suggestion',_0x453d88,_0x4ddee5),_0x24ba3e['mapper']['bindElementToMarker'](_0x4ddee5,_0x2cd8c2['markerName']),_0x2b14a9&&(_0x3e613f['activeMarkers']['includes'](_0x2cd8c2['markerName'])?_0x24ba3e['writer']['addClass']('ck-suggestion-marker--active',_0x4ddee5):_0x24ba3e['writer']['removeClass']('ck-suggestion-marker--active',_0x4ddee5));}}};}_0x3e613f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x10b06c),_0x3e613f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x10b06c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x175060(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f216d,_0x4e3917,_0x5d71f3)=>{_0x5d71f3['options']['showSuggestionHighlights']&&_0x175060({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4f216d,_0x4e3917,_0x5d71f3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x25500a,_0x5a46c2,_0x15b9c9)=>{const {type:_0x55d368,id:_0x476b86}=_0x3e613f['_splitMarkerName'](_0x5a46c2['markerName']),_0x8f9f56=_0x3e613f['getSuggestion'](_0x476b86),_0x5332bd=_0x8f9f56['data'];if('formatBlock'!=_0x8f9f56['type']||!_0x5332bd||'setTableColumnHeader'!=_0x5332bd['commandName'])return;const _0x26f208=_0x15b9c9['mapper']['markerNameToElements'](_0x5a46c2['markerName']);if(_0x26f208){for(const _0x329017 of _0x26f208)_0x15b9c9['writer']['removeClass']('ck-suggestion-marker-'+_0x55d368,_0x329017),_0x15b9c9['writer']['removeClass']('ck-suggestion-marker--active',_0x329017),_0x15b9c9['writer']['removeAttribute']('data-suggestion',_0x329017),_0x15b9c9['mapper']['unbindElementFromMarkerName'](_0x329017,_0x5a46c2['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x320791=this['editor'],_0x18dc31=_0x320791['locale'];function _0x3309c9(_0x209f1a){return{'type':'format','content':o(_0x18dc31,'*Format:*\x20%0',_0x209f1a)};}_0x320791['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ae5a7=>{if('formatBlock'!=_0x1ae5a7['type'])return;const {data:_0x157ad9}=_0x1ae5a7;if(_0x157ad9){if('setTableRowHeader'==_0x157ad9['commandName']){const _0x4cd864=_0x157ad9['commandParams'][0x0]['forceValue'];return _0x3309c9(o(_0x18dc31,_0x4cd864?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x157ad9['commandName']){const _0x28293b=_0x157ad9['commandParams'][0x0]['forceValue'];return _0x3309c9(o(_0x18dc31,_0x28293b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x2cb0d1=>[_0x2cb0d1,null]));class It extends _0x1e79ec{static get['requires'](){return[jt];}['afterInit'](){const _0x332bbf=this['editor'];if(!_0x332bbf['plugins']['has']('TableClipboard'))return;const _0x5a9396=_0x332bbf['plugins']['get']('TrackChangesEditing'),_0x1ec0cb=_0x332bbf['plugins']['get']('TableUtils'),_0x3b8247=_0x332bbf['plugins']['get'](jt),_0x3dd364=_0x332bbf['plugins']['get']('TableClipboard');_0x3b8247['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x332bbf['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x332bbf['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5c3f4e=null;_0x332bbf['model']['on']('insertContent',(_0x2b0ec9,_0x66403f)=>{const [_0xca4e6c,_0x26fee9]=_0x66403f,_0xc01319=_0x66403f[_0x66403f['length']-0x1];_0xc01319&&_0xc01319['forceDefaultExecution']||_0x5a9396['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x8283a5,_0x335cb7,_0x5353ae,_0x11fdbb,_0x1b999f){if(_0x335cb7&&!_0x335cb7['is']('documentSelection'))return!0x1;const _0x5a68a2=_0x1b999f['getTableIfOnlyTableInContent'](_0x8283a5,_0x5353ae);if(!_0x5a68a2||!he(_0x5a68a2,void 0x0,_0x11fdbb))return!0x1;const _0x2fdb6c=_0x11fdbb['getSelectionAffectedTableCells'](_0x5353ae['document']['selection']);if(!_0x2fdb6c['length'])return!0x1;const _0x37a850=_0x2fdb6c[0x0]['findAncestor']('table'),_0x5d8b4f=_0x11fdbb['getRowIndexes'](_0x2fdb6c),_0x4065df=_0x11fdbb['getColumnIndexes'](_0x2fdb6c),_0x392ae8={'startRow':_0x5d8b4f['first'],'endRow':_0x5d8b4f['last'],'startColumn':_0x4065df['first'],'endColumn':_0x4065df['last']};return 0x1==_0x2fdb6c['length']&&(_0x392ae8['endRow']+=_0x11fdbb['getRows'](_0x5a68a2)-0x1,_0x392ae8['endColumn']+=_0x11fdbb['getColumns'](_0x5a68a2)-0x1),he(_0x37a850,_0x392ae8,_0x11fdbb);}(_0xca4e6c,_0x26fee9,_0x332bbf['model'],_0x1ec0cb,_0x3dd364)&&(_0x2b0ec9['stop'](),_0x5c3f4e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x332bbf['model']['change'](()=>{_0x332bbf['model']['insertContent'](_0x66403f[0x0],_0x66403f[0x1],_0x66403f[0x2],{'forceDefaultExecution':!0x0});const _0x20fc2b=_0x109dee(),{rowInsertionRanges:_0x373748,columnInsertionRanges:_0x7a56c9,insertionRanges:_0x1fd7b6,deletionRanges:_0x1b45e6,cells:_0x13533d}=_0x5c3f4e;_0x373748['length']&&_0x5a9396['markMultiRangeInsertion'](_0x373748,'tablePasteRow',{'tablePasteChainId':_0x20fc2b}),_0x7a56c9['length']&&_0x5a9396['markMultiRangeInsertion'](_0x7a56c9,'tablePasteColumn',{'tablePasteChainId':_0x20fc2b}),_0x1fd7b6['length']&&(_0x5a9396['markMultiRangeInsertion'](_0x1fd7b6,'tablePaste',{'tablePasteChainId':_0x20fc2b,'skipNestingCheck':!0x0}),_0x1fd7b6['forEach'](_0x4d8bfd=>{var _0x667851;return null===(_0x667851=_0x4d8bfd['detach'])||void 0x0===_0x667851?void 0x0:_0x667851['call'](_0x4d8bfd);})),_0x1b45e6['length']&&(_0x5a9396['markMultiRangeDeletion'](_0x1b45e6,'tablePaste',{'tablePasteChainId':_0x20fc2b,'skipNestingCheck':!0x0}),_0x1b45e6['forEach'](_0x3a007b=>{var _0x6e5898;return null===(_0x6e5898=_0x3a007b['detach'])||void 0x0===_0x6e5898?void 0x0:_0x6e5898['call'](_0x3a007b);}));const _0x5eda22=_0x5a9396['markMultiRangeBlockFormat'](_0x13533d['map'](({element:_0x24dcd2})=>_0x24dcd2),{'formatGroupId':_0x109dee()},[],'tablePasteCell',{'tablePasteChainId':_0x20fc2b});if(_0x5eda22){const _0x1e7456=_0x5eda22['getMarkers'](),_0x18efe4=[];for(const {element:_0x1b59e9,attributes:_0x206e1b}of _0x13533d){if(!_0x206e1b)continue;const _0x574b68=_0x332bbf['model']['createRangeOn'](_0x1b59e9),_0x7347d4=_0x1e7456['find'](_0x504f42=>_0x504f42['getRange']()['isEqual'](_0x574b68));_0x7347d4&&_0x18efe4['push']([_0x7347d4['name'],_0x206e1b]);}_0x18efe4['length']&&_0x5eda22['setAttribute']('markerAttributes',Object['fromEntries'](_0x18efe4));}_0x5c3f4e=null;}));},{'priority':_0x3ba2dc['high']+0xa}),_0x332bbf['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x409ecb,_0x40b551)=>{const [_0x25aa86,_0xd138a3,,_0x7d2129]=_0x40b551;if(!_0x5c3f4e)return;_0x409ecb['stop']();const _0x552520=_0x25aa86['cell'],_0x395f7b=_0xd138a3,_0x42f875=Pe(_0x552520),_0x2610d0=Pe(_0x395f7b);_0x409ecb['return']=_0x552520;let _0x4aeda8=null,_0x2e34b0=null;if(_0x2610d0||_0x42f875){if(_0x42f875&&!_0x2610d0){_0x7d2129['remove'](_0x552520['getChild'](0x0));for(const _0x1b1a16 of Array['from'](_0x395f7b['getChildren']()))_0x7d2129['insert'](_0x1b1a16,_0x552520,'end');const _0x58a114=_0x5c3f4e['rowInsertionIndexes']['includes'](_0x25aa86['row']),_0x4b6a5f=_0x5c3f4e['columnInsertionIndexes']['includes'](_0x25aa86['column']);_0x58a114||_0x4b6a5f||(_0x4aeda8=_0x43239f['fromRange'](_0x7d2129['createRangeIn'](_0x552520)));}else _0x2610d0&&!_0x42f875&&(_0x2e34b0=_0x7d2129['createRangeIn'](_0x552520));}else{const _0x16572f=_0x7d2129['createElement']('tableCellSuggestion'),_0x510cc7=_0x7d2129['createElement']('tableCellSuggestion');_0x7d2129['wrap'](_0x7d2129['createRangeIn'](_0x552520),_0x510cc7),_0x7d2129['insert'](_0x16572f,_0x552520,0x0);for(const _0x4154c9 of Array['from'](_0x395f7b['getChildren']()))_0x7d2129['insert'](_0x4154c9,_0x16572f,'end');_0x4aeda8=_0x43239f['fromRange'](_0x7d2129['createRangeOn'](_0x16572f)),_0x2e34b0=_0x43239f['fromRange'](_0x7d2129['createRangeOn'](_0x510cc7));}const _0x534390=Array['from'](_0x395f7b['getAttributes']())['filter'](([_0x53b860])=>ge['includes'](_0x53b860));_0x5c3f4e['cells']['push']({'element':_0x552520,'attributes':_0x534390['length']?Object['fromEntries'](_0x534390):null}),_0x4aeda8&&_0x5c3f4e['insertionRanges']['push'](_0x4aeda8),_0x2e34b0&&_0x5c3f4e['deletionRanges']['push'](_0x2e34b0);},{'priority':'high'}),_0x1ec0cb['on']('insertColumns',(_0x583ae8,_0x532b81)=>{const [_0x103535,_0x390f5c={}]=_0x532b81;if(!_0x5c3f4e)return;const _0x52aa67=_0x390f5c['at']||0x0,_0x534f4e=_0x390f5c['columns']||0x1;_0x5c3f4e['columnInsertionIndexes']=new Array(_0x534f4e)['fill'](_0x52aa67)['map']((_0x3bddc1,_0x4afbcc)=>_0x3bddc1+_0x4afbcc);for(const {cell:_0x3bfd15}of _0x1ec0cb['createTableWalker'](_0x103535,{'startColumn':_0x52aa67,'endColumn':_0x52aa67+_0x534f4e-0x1}))_0x5c3f4e['columnInsertionRanges']['push'](_0x332bbf['model']['createRangeOn'](_0x3bfd15));},{'priority':'low'}),_0x1ec0cb['on']('insertRows',(_0x1ffc9f,_0x55f8c9)=>{const [_0x4491e0,_0x4a7a9a={}]=_0x55f8c9;if(!_0x5c3f4e)return;const _0x388b3b=_0x4a7a9a['at']||0x0,_0x1f6bbc=_0x4a7a9a['rows']||0x1;_0x5c3f4e['rowInsertionIndexes']=new Array(_0x1f6bbc)['fill'](_0x388b3b)['map']((_0x4d08a9,_0x57ac52)=>_0x4d08a9+_0x57ac52);for(const {cell:_0xb778a5}of _0x1ec0cb['createTableWalker'](_0x4491e0,{'startRow':_0x388b3b,'endRow':_0x388b3b+_0x1f6bbc-0x1}))_0x5c3f4e['rowInsertionRanges']['push'](_0x332bbf['model']['createRangeOn'](_0xb778a5));},{'priority':'low'}),_0x5a9396['descriptionFactory']['registerDescriptionCallback'](_0x2d254a=>{if(_0x2d254a['subType']&&_0x2d254a['subType']['startsWith']('tablePaste'))return _0x2d254a['previous']?{}:{'type':'insertion','content':o(_0x332bbf['locale'],'*Replace\x20table\x20cells*')};});const _0x2cd7ab=()=>!0x1;for(const _0x68be40 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5a9396['_suggestionFactory']['registerCustomCallback']('insertion',_0x68be40,'join',_0x2cd7ab),_0x5a9396['_suggestionFactory']['registerCustomCallback']('deletion',_0x68be40,'join',_0x2cd7ab),_0x5a9396['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x68be40,'join',_0x2cd7ab);_0x5a9396['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2cd7ab),_0x5a9396['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x26278b,_0x3cd174,_0x3ede1c)=>{const _0x3c7943=_0x26278b['map'](_0x18756a=>_0x18756a['getContainedElement']())['filter'](_0x46f7a4=>_0x46f7a4),_0xfaf8ea=new Map(_0x3c7943['map'](_0x87de18=>[_0x87de18,null]));if(_0x5c3f4e){for(const {element:_0x2c95cc,attributes:_0x3901b5}of _0x5c3f4e['cells'])_0x3901b5&&_0xfaf8ea['set'](_0x2c95cc,_0x3901b5);}else{if(_0x3ede1c&&_0x3ede1c['markerAttributes'])for(const [_0x5b8ac4,_0x438d82]of Object['entries'](_0x3ede1c['markerAttributes'])){const _0x4873d0=_0x332bbf['model']['markers']['get'](_0x5b8ac4),_0x43e69f=_0x4873d0?_0x4873d0['getRange']()['getContainedElement']():null;_0x43e69f&&_0xfaf8ea['set'](_0x43e69f,_0x438d82);}}_0x332bbf['model']['change'](_0x530f3b=>{for(const [_0x53cf3e,_0x2ace5d]of _0xfaf8ea)_0x530f3b['setAttributes']({...Ce,..._0x2ace5d},_0x53cf3e);});});const _0x1bc447=(_0x185d5a,_0x2efa44)=>{_0x5a9396['_suggestionFactory']['registerCustomCallback'](_0x185d5a,'tablePaste',_0x2efa44,(_0xa75a7e,_0x3643bf,_0x4b0adb)=>{_0x332bbf['model']['change'](_0x10481b=>{const _0x48ffd5=[];for(const _0x1b22d4 of _0xa75a7e){const _0x2de8c2=_0x1b22d4['start']['nodeAfter'];_0x2de8c2['is']('element','tableCellSuggestion')&&_0x48ffd5['push'](_0x2de8c2);}_0x5a9396['_suggestionFactory']['getSuggestionCallback'](_0x185d5a,null,_0x2efa44)(_0xa75a7e,_0x3643bf,_0x4b0adb);for(const _0x10368e of _0x48ffd5)'$graveyard'!=_0x10368e['root']['rootName']&&_0x10481b['unwrap'](_0x10368e);});});};_0x1bc447('insertion','accept'),_0x1bc447('insertion','discard'),_0x1bc447('deletion','accept'),_0x1bc447('deletion','discard'),_0x5a9396['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5911f9=>{const _0xb136e1=_0x5911f9['map'](_0x3fd28b=>_0x3fd28b['getContainedElement']()),_0xbfc7f=_0xb136e1[0x0]['findAncestor']('table'),{minRow:_0x17bc54,maxRow:_0x20b847}=_0x3b8247['_getCoordsForCells'](_0xb136e1);_0x1ec0cb['removeRows'](_0xbfc7f,{'at':_0x17bc54,'rows':_0x20b847-_0x17bc54+0x1});}),_0x5a9396['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x49f280=>{const _0xb6bfaf=_0x49f280['map'](_0x40aede=>_0x40aede['getContainedElement']()),_0x149155=_0xb6bfaf[0x0]['findAncestor']('table'),{minColumn:_0x23e8b0,maxColumn:_0x58abfa}=_0x3b8247['_getCoordsForCells'](_0xb6bfaf);_0x1ec0cb['removeColumns'](_0x149155,{'at':_0x23e8b0,'columns':_0x58abfa-_0x23e8b0+0x1});});const _0x7ed7d1=(_0x790b8a,_0x2a42df)=>{if(!_0x2a42df['subType']||!_0x2a42df['subType']['startsWith']('tablePaste'))return;const _0x46451f=_0x2a42df['attributes']['tablePasteChainId'],_0x531459=_0x5a9396['getSuggestions']()['filter'](_0x3f11be=>_0x3f11be['isInContent']&&_0x3f11be['attributes']&&_0x3f11be['attributes']['tablePasteChainId']==_0x46451f);_0x531459['length']&&_0x2a42df['getAllAdjacentSuggestions']()['length']!=_0x531459['length']&&_0x531459['reduce']((_0x5cf39d,_0x73bbcd)=>(_0x5cf39d['next']=_0x73bbcd,_0x73bbcd['previous']=_0x5cf39d,_0x73bbcd));};function _0x1439d3(_0x3e6a42,_0xc22dd8=!0x0){const {id:_0x3ff930}=_0x5a9396['_splitMarkerName'](_0x3e6a42['markerName']),_0x58dabd=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xba13ac=_0x5a9396['activeMarkers']['includes'](_0x3e6a42['markerName']);return _0xba13ac&&_0x58dabd['push']('ck-suggestion-marker--active'),{'classes':_0x58dabd,'attributes':{'data-suggestion':_0x3ff930},'priority':_0xba13ac&&_0xc22dd8?0xbc2:0xbb8};}_0x5a9396['on']('suggestionLoaded',_0x7ed7d1,{'priority':'high'}),_0x5a9396['on']('suggestionUnloaded',_0x7ed7d1,{'priority':'high'}),_0x332bbf['model']['document']['registerPostFixer'](()=>{let _0x34e1fb=!0x1;const _0x53a7f4=Array['from'](_0x332bbf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f191c,data:_0x59ee49}of _0x53a7f4){const {group:_0xb6d3ad,type:_0x519a8a,id:_0x1754ca}=_0x5a9396['_splitMarkerName'](_0x1f191c);if('suggestion'!=_0xb6d3ad||'deletion'!=_0x519a8a||_0x59ee49['oldRange'])continue;if(!_0x5a9396['hasSuggestion'](_0x1754ca))continue;const _0x147fa1=_0x5a9396['getSuggestion'](_0x1754ca)['getRanges'](),_0x135f23=_0x332bbf['plugins']['get']('Users')['me'];for(const _0x1e1b88 of _0x5a9396['getSuggestions']()){if(!_0x1e1b88['isInContent']||_0x1e1b88['author']!=_0x135f23)continue;if('formatBlock'!=_0x1e1b88['type']||'tablePasteCell'!=_0x1e1b88['subType'])continue;if(_0x1e1b88['getRanges']()['every'](_0x1fe309=>_0x147fa1['some'](_0xc0ef5f=>_0xc0ef5f['containsRange'](_0x1fe309,!0x0)))){for(const _0xab61e6 of _0x1e1b88['getAllAdjacentSuggestions']())_0xab61e6['isInContent']&&(_0xab61e6['discard'](),_0x34e1fb=!0x0);}}}return _0x34e1fb;}),_0x332bbf['model']['document']['registerPostFixer'](_0x3bf1df=>{const _0x1339e0=_0x332bbf['commands']['get']('redo');if(!_0x1339e0||!_0x1339e0['_createdBatches']['has'](_0x3bf1df['batch']))return!0x1;let _0x12952f=!0x1;const _0x5c6eb0=_0x332bbf['plugins']['get']('Users')['me'],_0x244d10=_0x332bbf['model']['document']['differ']['getChanges'](),_0x405aae=Array['from'](_0x332bbf['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1ed016,data:_0x56b46a})=>{const {group:_0xbcdcc8,subType:_0x3b391c,authorId:_0xa56b15}=_0x5a9396['_splitMarkerName'](_0x1ed016);return'suggestion'==_0xbcdcc8&&'tablePaste'==_0x3b391c&&_0xa56b15==_0x5c6eb0['id']&&!_0x56b46a['oldRange'];});for(const _0x996a3a of _0x244d10){if('insert'!=_0x996a3a['type']||'tableCellSuggestion'!=_0x996a3a['name']||0x1!=_0x996a3a['length'])continue;const _0x188f28=_0x3bf1df['createRange'](_0x996a3a['position'],_0x996a3a['position']['getShiftedBy'](0x1));if(!_0x405aae['find'](({data:_0x1430de})=>_0x1430de['newRange']['isEqual'](_0x188f28))){for(const {name:_0x84d62d,data:_0x5f4886}of _0x405aae)if(_0x188f28['containsRange'](_0x5f4886['newRange'])){_0x3bf1df['updateMarker'](_0x84d62d,{'range':_0x188f28}),_0x12952f=!0x0;break;}}}return _0x12952f;}),_0x332bbf['model']['document']['registerPostFixer'](_0x22f573=>{let _0x576bbe=!0x1;const _0x2ac341=_0x332bbf['plugins']['get']('Users')['me'],_0x1ad562=_0x5a9396['getSuggestions']()['filter'](_0x4305b3=>_0x4305b3['isInContent']&&_0x4305b3['author']==_0x2ac341),_0x39f9a9=new Set(),_0x5735f8=new Set();for(const _0x113ccd of _0x1ad562)if('tablePaste'==_0x113ccd['subType'])for(const _0x1d7461 of _0x113ccd['getMarkers']()){const _0x541a59=_0x1d7461['getRange']()['getContainedElement']();if(_0x541a59){if(_0x541a59['is']('element','tableCellSuggestion')&&Pe(_0x541a59)){_0x113ccd['removeMarker'](_0x1d7461['name']),_0x39f9a9['add'](_0x541a59),_0x576bbe=!0x0;const _0x141077=_0x541a59['nextSibling'],_0x39c09b=_0x541a59['previousSibling'],_0x4a17af=_0x141077&&_0x141077['is']('element','tableCellSuggestion'),_0x595ff3=_0x39c09b&&_0x39c09b['is']('element','tableCellSuggestion');_0x4a17af&&!_0x39f9a9['has'](_0x141077)&&_0x5735f8['add'](_0x141077),_0x595ff3&&!_0x39f9a9['has'](_0x39c09b)&&_0x5735f8['add'](_0x39c09b);}else _0x541a59['is']('element','paragraph')&&_0x541a59['isEmpty']&&(_0x113ccd['removeMarker'](_0x1d7461['name']),_0x576bbe=!0x0);}}else{if('tablePasteCell'==_0x113ccd['subType']){if(!_0x113ccd['attributes']||!_0x113ccd['attributes']['tablePasteChainId'])continue;const _0x48764c=_0x113ccd['attributes']['markerAttributes'];if(_0x48764c&&Object['keys'](_0x48764c)['length'])continue;const _0x2a45d6=_0x113ccd['attributes']['tablePasteChainId'];let _0x1e6884=!0x0,_0x384615=!0x0;for(const _0x211467 of _0x1ad562)if(_0x211467['subType']&&_0x211467['subType']['startsWith']('tablePaste')){if(!_0x211467['attributes']['tablePasteChainId']){_0x384615=!0x1;break;}if(_0x211467['id']!=_0x113ccd['id']&&_0x211467['attributes']['tablePasteChainId']==_0x2a45d6){_0x1e6884=!0x1;break;}}_0x384615&&_0x1e6884&&(_0x113ccd['removeMarkers'](),_0x576bbe=!0x0);}}for(const _0x17b336 of _0x39f9a9)_0x22f573['remove'](_0x17b336);for(const _0x277006 of _0x5735f8)_0x22f573['unwrap'](_0x277006);return _0x576bbe;}),_0x332bbf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x108c75,_0x593db3)=>_0x1439d3(_0x108c75),'converterPriority':'high'}),_0x332bbf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x555308,_0x23d197)=>_0x23d197['options']['showSuggestionHighlights']?_0x1439d3(_0x555308,!0x1):null,'converterPriority':'high'});const _0x14a854=_0x332bbf['editing']['view'];this['listenTo'](_0x14a854['document'],'clipboardOutput',(_0x1bb5d5,_0x132239)=>{const _0x1fa0d1=[];for(const _0x361b28 of _0x14a854['createRangeIn'](_0x132239['content'])['getItems']())_0x361b28['is']('element','suggestion-td')&&_0x1fa0d1['push'](_0x361b28);_0x14a854['change'](_0x5901d9=>{for(const _0x148e29 of _0x1fa0d1)_0x5901d9['move'](_0x5901d9['createRangeIn'](_0x148e29),_0x5901d9['createPositionBefore'](_0x148e29)),_0x5901d9['remove'](_0x148e29);});});}}function Pe(_0x10593a){if(_0x10593a['isEmpty'])return!0x0;const _0x512b50=_0x10593a['getChild'](0x0);return _0x512b50['is']('element','paragraph')&&_0x512b50['isEmpty'];}function he(_0x22ef6f,_0x57f456={},_0x473839){for(const {isAnchor:_0x2f0794,cellHeight:_0x113248,cellWidth:_0x15d3c9}of _0x473839['createTableWalker'](_0x22ef6f,{'includeAllSlots':!0x0,..._0x57f456}))if(!_0x2f0794||0x1!=_0x113248||0x1!=_0x15d3c9)return!0x1;return!0x0;}class vt extends _0x1e79ec{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3e9f90=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e9f90['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3e9f90['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3e9f90['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3e9f90['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3e9f90['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3e9f90['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4bbe4e,_0x18a2df){const _0x42e88f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45daa0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x54ce10=_0x18a2df['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x30b95a=_0x45daa0['getColumnGroupElement'](_0x54ce10);let _0x45ec7e=_0x30b95a?_0x45daa0['getTableColumnsWidths'](_0x30b95a):null,_0x586175=_0x54ce10['getAttribute']('tableWidth')||null;const _0x5932ad=_0x18a2df['tableWidth']||_0x586175,_0x5d2b6d=_0x18a2df['columnWidths']||_0x45ec7e,_0x15ca86=this['editor']['plugins']['get']('Users')['me'];for(const _0x4c78ec of _0x42e88f['getSuggestions']()){const _0x4a30b6=_0x4c78ec['getContainedElement']();if('resizeTable'===_0x4c78ec['subType']&&_0x4a30b6===_0x54ce10){_0x4c78ec['author']!==_0x15ca86&&_0x4c78ec['discard']();const _0x288cf9=_0x4c78ec['data']['commandParams'];_0x586175=_0x288cf9[0x0]['tableWidth'],_0x45ec7e=_0x288cf9[0x0]['columnWidths'];break;}}_0x4bbe4e({'table':_0x54ce10,'tableWidth':_0x5932ad,'columnWidths':_0x5d2b6d}),_0x42e88f['markBlockFormat'](_0x54ce10,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x586175,'columnWidths':_0x45ec7e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5e236f){if('formatBlock'!=_0x5e236f['type']&&'formatInline'!=_0x5e236f['type'])return;const {data:_0x2c43a6}=_0x5e236f;if(_0x2c43a6&&'resizeTable'===_0x2c43a6['formatGroupId']){const _0x4c8373='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4c8373)};}}}class _t extends _0x1e79ec{['afterInit'](){const _0x204ade=this['editor'];_0x204ade['plugins']['has']('Template')&&_0x204ade['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x1e79ec{['afterInit'](){const _0x37e179=this['editor'];if(!_0x37e179['commands']['get']('insertTableOfContents'))return;_0x37e179['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x573abd=_0x37e179['plugins']['get']('TrackChangesEditing'),_0x160d23=_0x37e179['locale'];_0x573abd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x464102=>o(_0x160d23,'ELEMENT_TABLE_OF_CONTENTS',_0x464102));}}class Dt extends _0x1e79ec{['afterInit'](){const _0x3a15a8=this['editor'];if(!_0x3a15a8['plugins']['has']('Title'))return;const _0x301614=_0x3a15a8['plugins']['get']('TrackChangesEditing');_0x301614['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3a15a8['locale'],'ELEMENT_TITLE')),_0x3a15a8['model']['document']['registerPostFixer'](_0x3c1c78=>{let _0x14c4b1=!0x1;const _0x119e84=Array['from'](_0x3a15a8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b2779,data:_0x52cbac}of _0x119e84){const {group:_0x6bf172}=_0x301614['_splitMarkerName'](_0x3b2779);if('suggestion'!==_0x6bf172||!_0x52cbac['newRange'])continue;const _0xf7bd69=_0x52cbac['newRange'],_0x433d94=_0xf7bd69['end']['nodeBefore'];if(!_0x433d94||!_0x433d94['is']('element','title-content'))continue;if(!_0xf7bd69['start']['isTouching'](_0xf7bd69['end']))continue;const _0x19b10d=_0x3a15a8['model']['schema']['getNearestSelectionRange'](_0xf7bd69['end'],'forward');if(_0x19b10d&&_0x19b10d['isCollapsed']){const _0x54c578=_0x3c1c78['createRange'](_0xf7bd69['start'],_0x19b10d['start']);_0x54c578['isEqual'](_0xf7bd69)||(_0x3c1c78['updateMarker'](_0x3b2779,{'range':_0x54c578}),_0x14c4b1=!0x0);}_0x14c4b1||(_0x3c1c78['removeMarker'](_0x3b2779),_0x14c4b1=!0x0);}return _0x14c4b1;});}}class Nt extends _0x1e79ec{['afterInit'](){const _0x980c8d=this['editor'],_0x3ac5b2=_0x980c8d['plugins']['get']('TrackChangesEditing');_0x980c8d['plugins']['has']('UndoEditing')&&(_0x3ac5b2['enableCommand']('undo'),_0x3ac5b2['enableCommand']('redo'));}}class Mt extends _0x1e79ec{static get['requires'](){return[jt];}['afterInit'](){const _0x5006da=this['editor'];if(!_0x5006da['plugins']['has']('TableCaptionEditing'))return;_0x5006da['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1e79ec{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x504fc6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1e7679 of this['tableProperties'])_0x504fc6['enableCommand'](_0x1e7679,(_0x1d6fa5,_0x531099)=>{const _0x410b16=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1e7679,[_0x410b16],this['tableProperties'],'tableProperties',_0x1d6fa5,_0x531099);});_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x504fc6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2ef851,_0x361f9b)=>this['handleDiscardAction'](this['tableProperties'],_0x2ef851,_0x361f9b)),_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x45fe54 of this['tableCellProperties'])_0x504fc6['enableCommand'](_0x45fe54,(_0x3dbab8,_0x1c0e65)=>{const _0xf913a4=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x45fe54,_0xf913a4,this['tableCellProperties'],'tableCellProperties',_0x3dbab8,_0x1c0e65);});_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x504fc6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2cdb24,_0x1b0daf)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2cdb24,_0x1b0daf)),_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x504fc6['descriptionFactory']['registerDescriptionCallback'](_0xc3d63=>this['handleSuggestionDescription'](_0xc3d63));}['_handlePropertyChange'](_0x44172a,_0x58b7e9,_0x7a6ad4,_0x574750,_0x37d8c0,_0x2704f6){const _0x591d4a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2704f6['batch'],()=>{for(const _0x38c5f2 of _0x58b7e9){if(this['_getSuggestion'](_0x38c5f2,_0x574750))_0x37d8c0(_0x2704f6);else{const _0x2edfb2={};for(const _0x4f7826 of _0x7a6ad4){const _0x4ba9e5=_0x38c5f2['getAttribute'](_0x4f7826);void 0x0!==_0x4ba9e5&&(_0x2edfb2[_0x4f7826]=_0x4ba9e5);}_0x37d8c0(_0x2704f6),_0x591d4a['markBlockFormat'](_0x38c5f2,{'commandParams':[_0x2edfb2]},[],_0x574750);}}});}['handleDiscardAction'](_0x3163d9,_0x5b66e3,_0x612272){const _0x55202e=_0x5b66e3[0x0]['start']['nodeAfter'],_0x4ba0de=_0x612272['commandParams'][0x0];this['editor']['model']['change'](_0x404f99=>{for(const _0x155c3c of _0x3163d9)void 0x0!==_0x4ba0de[_0x155c3c]?_0x404f99['setAttribute'](_0x155c3c,_0x4ba0de[_0x155c3c],_0x55202e):_0x404f99['removeAttribute'](_0x155c3c,_0x55202e);});}['handleSuggestionDescription'](_0x41192c){if(_0x41192c['data'])switch(_0x41192c['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'](_0x48c49e,_0x1289a9){const _0x42e043=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xf0b136 of _0x42e043['getSuggestions']({'skipNotAttached':!0x0})){const _0x1a0f62=_0xf0b136['getContainedElement']();if(_0xf0b136['subType']===_0x1289a9&&_0x1a0f62===_0x48c49e)return _0xf0b136;}return null;}constructor(_0x1dd626){super(_0x1dd626),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0x1e79ec{static get['requires'](){return['CommentsRepository',_0x15e88b,_0xa7374,E,V,U,O,G,F,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}['init'](){const _0x33e422=this['editor'],_0x191ea7=(_0x4dde85,_0x3689c6)=>{if('attribute'!=_0x4dde85)return'ck-suggestion-marker-'+_0x4dde85;const _0x1fd751=_0x3689c6['split']('|')[0x0];return this['_isBlockAttribute'](_0x1fd751)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x33e422['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x43599e=>{const {id:_0x483e6d,type:_0x39caf2,subType:_0x247c6f}=this['_splitMarkerName'](_0x43599e['markerName']),_0x546a76=['ck-suggestion-marker',_0x191ea7(_0x39caf2,_0x247c6f)];let _0x357a3c=0xbb8;return this['activeMarkers']['includes'](_0x43599e['markerName'])&&(_0x546a76['push']('ck-suggestion-marker--active'),_0x357a3c=0xbc2),'deletion'==_0x39caf2&&(_0x357a3c+=0x5),{'classes':_0x546a76,'attributes':{'data-suggestion':_0x483e6d},'priority':_0x357a3c};}}),_0x33e422['conversion']['for']('dataDowncast')['add'](_0x503cd9=>{_0x503cd9['on']('addMarker:suggestion',(_0xf4a5a2,_0x115f4c,_0x5054a6)=>{if(!_0x5054a6['options']['showSuggestionHighlights'])return;const _0x159b4b=_0x115f4c['item'];if(!_0x159b4b)return;const _0x5e4cad=_0x5054a6['mapper']['toViewElement'](_0x159b4b);_0x33e422['model']['schema']['isObject'](_0x159b4b)&&_0x5e4cad&&!_0x5e4cad['getCustomProperty']('widget')&&_0x5e4cad['is']('containerElement')&&_0x31e57b(_0x5e4cad,_0x5054a6['writer']);},{'priority':'high'});}),_0x33e422['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5ce561,_0x341bd8)=>{if(!_0x341bd8['options']['showSuggestionHighlights'])return null;const {type:_0x42e050,subType:_0x44ef17}=this['_splitMarkerName'](_0x5ce561['markerName']);return{'classes':['ck-suggestion-marker',_0x191ea7(_0x42e050,_0x44ef17)],'priority':0xbb8};}});const _0x4a38a3=({showActiveMarkers:_0xdbc83a=!0x0,isAttributeSuggestion:_0x5620ec=!0x1}={})=>(_0xdde3a3,_0x3248bc,_0x2ed0de)=>{if(!_0x3248bc['item'])return;const {id:_0x3558da}=this['_splitMarkerName'](_0x3248bc['markerName']);if(_0x5620ec){const _0x163e39=this['_suggestions']['get'](_0x3558da),_0x3a41d6=this['_getAttributeKey'](_0x163e39);if(!this['_isBlockAttribute'](_0x3a41d6))return;}if(_0x3248bc['item']['is']('selection'))return void _0x2ed0de['consumable']['consume'](_0x3248bc['item'],_0xdde3a3['name']);const _0x164414=_0x2ed0de['mapper']['toViewElement'](_0x3248bc['item']);if(_0x3248bc['item']['is']('element')&&_0x33e422['model']['schema']['isBlock'](_0x3248bc['item'])&&!_0x164414['getCustomProperty']('addHighlight')){_0x2ed0de['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x164414),_0x2ed0de['writer']['setAttribute']('data-suggestion',_0x3558da,_0x164414),_0x2ed0de['mapper']['bindElementToMarker'](_0x164414,_0x3248bc['markerName']),_0xdbc83a&&(this['activeMarkers']['includes'](_0x3248bc['markerName'])?_0x2ed0de['writer']['addClass']('ck-suggestion-marker--active',_0x164414):_0x2ed0de['writer']['removeClass']('ck-suggestion-marker--active',_0x164414));for(const _0x3d8057 of _0x33e422['model']['createRangeIn'](_0x3248bc['item'])['getItems']())_0x2ed0de['consumable']['consume'](_0x3d8057,_0xdde3a3['name']);_0x2ed0de['consumable']['consume'](_0x3248bc['item'],_0xdde3a3['name']);}};_0x33e422['conversion']['for']('dataDowncast')['add'](_0x48b940=>{_0x48b940['on']('addMarker:suggestion:formatBlock',(_0x370eff,_0x8d03e7,_0x1bcb2a)=>{_0x1bcb2a['options']['showSuggestionHighlights']&&_0x4a38a3({'showActiveMarkers':!0x1})(_0x370eff,_0x8d03e7,_0x1bcb2a);},{'priority':'highest'});}),_0x33e422['conversion']['for']('dataDowncast')['add'](_0x198a6a=>{_0x198a6a['on']('addMarker:suggestion:attribute',(_0x55f025,_0x1ec2cb,_0x3bc246)=>{_0x3bc246['options']['showSuggestionHighlights']&&_0x4a38a3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x55f025,_0x1ec2cb,_0x3bc246);},{'priority':'highest'});}),_0x33e422['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1e4672,_0x5cf7b5)=>_0x5cf7b5['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1e4672['substr'](0xb)}}),_0x33e422['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2eeaa4,{writer:_0x4f486f})=>{let _0x442001='suggestion:'+_0x2eeaa4['getAttribute']('suggestion-type')+':'+_0x2eeaa4['getAttribute']('id');return _0x2eeaa4['getAttribute']('marker-count')&&(_0x442001+=':'+_0x2eeaa4['getAttribute']('marker-count')),_0x4f486f['createElement']('$marker',{'data-name':_0x442001});}}),_0x33e422['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x33e422['conversion']['for']('editingDowncast')['add'](_0x384ace=>{_0x384ace['on']('addMarker:suggestion:formatBlock',_0x4a38a3(),{'priority':'high'});}),_0x33e422['conversion']['for']('editingDowncast')['add'](_0x443daa=>{_0x443daa['on']('addMarker:suggestion:attribute',_0x4a38a3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x33e422['conversion']['for']('editingDowncast')['add'](_0xb382a0=>{_0xb382a0['on']('removeMarker:suggestion:formatBlock',(_0x3c2369,_0x5a6940,_0x149bfc)=>{const _0x223025=_0x149bfc['mapper']['markerNameToElements'](_0x5a6940['markerName']);if(_0x223025){for(const _0x1f49d7 of _0x223025)_0x1f49d7['getCustomProperty']('addHighlight')||(_0x149bfc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1f49d7),_0x149bfc['writer']['removeAttribute']('data-suggestion',_0x1f49d7),_0x149bfc['mapper']['unbindElementFromMarkerName'](_0x1f49d7,_0x5a6940['markerName']));}},{'priority':'high'});}),_0x33e422['conversion']['for']('editingDowncast')['add'](_0x133c04=>{_0x133c04['on']('removeMarker:suggestion:attribute',(_0x1fe2a5,_0x20ea09,_0x5d1b99)=>{const _0x23880e=_0x5d1b99['mapper']['markerNameToElements'](_0x20ea09['markerName']);if(!_0x23880e)return;const {id:_0x1a364f}=this['_splitMarkerName'](_0x20ea09['markerName']),_0x33a09b=this['_suggestions']['get'](_0x1a364f),_0x59e50f=this['_getAttributeKey'](_0x33a09b);if(this['_isBlockAttribute'](_0x59e50f)){for(const _0x35e878 of _0x23880e)_0x35e878['getCustomProperty']('addHighlight')||(_0x5d1b99['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x35e878),_0x5d1b99['writer']['removeAttribute']('data-suggestion',_0x35e878),_0x5d1b99['mapper']['unbindElementFromMarkerName'](_0x35e878,_0x20ea09['markerName']));}},{'priority':'high'});}),_0x33e422['model']['document']['registerPostFixer'](_0x5d0e12=>{let _0x53ec2e=!0x1;const _0x257fe2=Array['from'](_0x33e422['model']['document']['differ']['getChangedMarkers']()),_0xb279dd=new Set();for(const {name:_0x3e131c,data:_0x5da6bd}of _0x257fe2){const {group:_0x358f16,type:_0x44b0d5,subType:_0x6dd292,id:_0x527505}=this['_splitMarkerName'](_0x3e131c);if('suggestion'!==_0x358f16)continue;const _0x5a0c6a=this['_suggestions']['get'](_0x527505);if(null!=_0x5da6bd['newRange']){'formatInline'==_0x44b0d5&&(_0x53ec2e=_0x53ec2e||Et(_0x5da6bd['newRange'],_0x3e131c,_0x5d0e12,_0x33e422['model']['schema']));const _0x21414f='attribute'==_0x44b0d5&&this['_isBlockAttribute'](_0x6dd292['split']('|')[0x0]);if(_0x5da6bd['newRange']['isCollapsed']||'$graveyard'==_0x5da6bd['newRange']['root']['rootName']||'formatBlock'==_0x44b0d5&&!Ut(_0x5da6bd['newRange'])||_0x21414f&&!Ut(_0x5da6bd['newRange'])||'deletion'==_0x44b0d5&&!(!Tt(_0x3b0304=_0x5da6bd['newRange'])&&!function(_0x572015){return _0x572015['start']['parent']==_0x572015['end']['nodeBefore']&&_0x572015['start']['isAtEnd'];}(_0x3b0304)))_0x5d0e12['removeMarker'](_0x3e131c),_0x53ec2e=!0x0;else{if(!_0x5a0c6a||!_0x5a0c6a['isInContent'])continue;_0xb279dd['add'](_0x5a0c6a);}}}var _0x3b0304;return _0xb279dd['size']>0x0&&(_0x53ec2e=!!this['_joinWithAdjacentSuggestions'](_0xb279dd)||_0x53ec2e),_0x53ec2e;}),_0x33e422['model']['document']['registerPostFixer'](_0x5dfd6f=>{let _0x44fac4=!0x1;for(const _0x27160f of _0x33e422['model']['document']['differ']['getChanges']())if('insert'==_0x27160f['type'])for(const _0x25805f of this['_suggestions']['values']()){if(_0x25805f['isMultiRange']||!_0x25805f['isInContent'])continue;const _0x55f977='formatBlock'==_0x25805f['type'],_0x59a054=this['_getAttributeKey'](_0x25805f),_0x566f4b=_0x59a054&&this['_isBlockAttribute'](_0x59a054);if(!_0x55f977&&!_0x566f4b)continue;const _0x47e5cd=_0x25805f['getFirstRange']();if(_0x47e5cd['start']['parent']!=_0x47e5cd['end']['parent']&&!_0x47e5cd['end']['isAtEnd']){const _0x136e4d=_0x33e422['model']['createPositionAt'](_0x47e5cd['start']['nodeAfter'],'end'),_0x1ae222=_0x33e422['model']['createRange'](_0x47e5cd['start'],_0x136e4d);_0x5dfd6f['updateMarker'](_0x25805f['getFirstMarker'](),{'range':_0x1ae222}),_0x44fac4=!0x0;}}return _0x44fac4;}),_0x33e422['model']['document']['registerPostFixer'](_0x4f7ad3=>this['_processAttributeChanges'](_0x4f7ad3)),_0x33e422['model']['document']['registerPostFixer'](_0x53fda3=>!_0x53fda3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x53fda3)),_0x33e422['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x33e422['model']['document']['on']('change:data',(_0x4617b,_0x5be513)=>{if(!_0x5be513['isLocal']||_0x5be513['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x15accc=_0x33e422['model']['document']['differ']['getChanges']();if(0x0==_0x15accc['length'])return;const _0xf3972=[],_0x1b0ba2=_0x15accc['filter'](_0x430dd3=>'attribute'==_0x430dd3['type']),_0x3f364e=_0x15accc['filter'](_0x3045d8=>'insert'==_0x3045d8['type']&&'$text'!=_0x3045d8['name']),_0x25ad0e=_0x15accc['filter'](_0x23627a=>'remove'==_0x23627a['type']&&'$text'!=_0x23627a['name']);for(const _0x51d2fb of _0x1b0ba2)this['_isRegisteredAttribute'](_0x51d2fb['attributeKey'])&&_0xf3972['push']({'key':_0x51d2fb['attributeKey'],'newValue':_0x51d2fb['attributeNewValue'],'oldValue':_0x51d2fb['attributeOldValue'],'range':Ot(_0x51d2fb['range'],_0x33e422['model'])});for(const _0x4d1b15 of _0x3f364e){const _0x2240c8=_0x25ad0e['find'](_0x14e3d0=>_0x14e3d0['_element']===_0x4d1b15['_element']);if(_0x2240c8){const _0xbb8da6=Ft(_0x4d1b15['position']['nodeAfter'],_0x33e422['model']);_0x2240c8['name']!==_0x4d1b15['name']&&_0xf3972['push']({'key':m,'newValue':_0x4d1b15['name'],'oldValue':_0x2240c8['name'],'range':_0xbb8da6});for(const [_0x185c54,_0x5c1bfe]of _0x2240c8['attributes']){if(!this['_isRegisteredAttribute'](_0x185c54))continue;const _0x49d32c=_0x4d1b15['attributes']['get'](_0x185c54);_0x5c1bfe!==_0x49d32c&&_0xf3972['push']({'key':_0x185c54,'newValue':_0x49d32c,'oldValue':_0x5c1bfe,'range':_0xbb8da6});}for(const [_0x4ea78a,_0x2c6da3]of _0x4d1b15['attributes'])this['_isRegisteredAttribute'](_0x4ea78a)&&(_0x2240c8['attributes']['has'](_0x4ea78a)||_0xf3972['push']({'key':_0x4ea78a,'newValue':_0x2c6da3,'oldValue':null,'range':_0xbb8da6}));}}0x0!=_0xf3972['length']&&_0x33e422['model']['enqueueChange'](_0x5be513,_0x28d85f=>{const _0x13da09=_0x109dee();for(const {range:_0x3cdc11,key:_0x3049a8,oldValue:_0x5da50c,newValue:_0x1c3898}of _0xf3972)this['markAttributeChange'](_0x3cdc11,_0x3049a8,_0x5da50c,_0x1c3898,{'groupId':_0x13da09});this['_reduceExistingSuggestions'](_0x28d85f,_0xf3972);});},{'priority':'lowest'}),_0x33e422['model']['markers']['on']('update:suggestion',(_0x52c743,_0x1e708b,_0x18b4ac)=>{if(null==_0x18b4ac){const {id:_0x4d77ba}=this['_splitMarkerName'](_0x1e708b['name']),_0x230d39=this['_suggestions']['get'](_0x4d77ba);_0x230d39&&_0x230d39['addMarkerName'](_0x1e708b['name']);}}),_0x33e422['model']['document']['on']('change:data',()=>{const _0x91a10f=Array['from'](_0x33e422['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1fa6dc=>'suggestion'===this['_splitMarkerName'](_0x1fa6dc['name'])['group']);if(0x0===_0x91a10f['length'])return;_0x91a10f['sort']((_0x3a2ee4,_0x18d470)=>{const _0x4437b5=_0x3a2ee4['data']['oldRange'],_0x442fe9=_0x18d470['data']['oldRange'];return null===_0x4437b5&&null===_0x442fe9?0x0:null===_0x4437b5&&null!==_0x442fe9?-0x1:null!==_0x4437b5&&null===_0x442fe9?0x1:_0x4437b5['start']['isBefore'](_0x442fe9['start'])?-0x1:0x1;});const _0x5ddf40=new Set(),_0x10f4c9=new Set();for(const {name:_0x4514f8,data:_0x312afd}of _0x91a10f){const {id:_0x2a9c7e}=this['_splitMarkerName'](_0x4514f8);if(null===_0x312afd['oldRange']){const _0x55eebb=this['_handleNewSuggestionMarker'](_0x4514f8);_0x10f4c9['add'](_0x55eebb);}else{const _0x5ef72a=this['_suggestions']['get'](_0x2a9c7e);null!==_0x312afd['newRange']||_0x5ef72a['isInContent']?(_0x5ddf40['add'](_0x5ef72a['head']),_0x10f4c9['add'](_0x5ef72a)):this['_removeSuggestion'](_0x5ef72a);}}_0x10f4c9['size']>0x0&&this['_refreshSuggestionsChain'](_0x10f4c9);for(const _0x2e9073 of _0x5ddf40)this['fire']('suggestionChanged',_0x2e9073);}),_0x33e422['model']['on']('applyOperation',(_0x16e2b2,_0x46ca25)=>{const _0x31b8d0=_0x46ca25[0x0];if(!this['_suggestions']['size'])return;if(!_0x31b8d0['isDocumentOperation'])return;if(_0x31b8d0['batch']['isUndo']||!_0x31b8d0['batch']['isLocal'])return;let _0x2eb3aa,_0x435ce5;switch(_0x31b8d0['type']){case'insert':_0x2eb3aa=_0x33e422['model']['createPositionAt'](_0x31b8d0['position']),_0x435ce5=_0x2eb3aa['getShiftedBy'](_0x31b8d0['howMany']);break;case'split':_0x2eb3aa=_0x33e422['model']['createPositionAt'](_0x31b8d0['splitPosition']),_0x435ce5=_0x33e422['model']['createPositionAt'](_0x31b8d0['moveTargetPosition']);break;case'move':_0x2eb3aa=_0x33e422['model']['createPositionAt'](_0x31b8d0['targetPosition']),_0x435ce5=_0x2eb3aa['getShiftedBy'](_0x31b8d0['howMany']);break;default:return;}const _0x1a145b=_0x33e422['model']['createRange'](_0x2eb3aa,_0x435ce5);_0x33e422['model']['change'](()=>{for(const {suggestion:_0x12d4b0,meta:_0x37e7cc}of this['_findSuggestions'](_0x1a145b)){if(_0x12d4b0['isMultiRange'])continue;if('formatInline'==_0x12d4b0['type'])continue;const _0x9f915e=this['_getAttributeKey'](_0x12d4b0);if(_0x9f915e&&this['_isBlockAttribute'](_0x9f915e)&&'split'!=_0x31b8d0['type'])continue;const _0x34d6cd=_0x12d4b0['data']&&_0x12d4b0['data']['multipleBlocks'];('formatBlock'!=_0x12d4b0['type']||'split'==_0x31b8d0['type']&&!_0x34d6cd)&&(_0x37e7cc['containsRangeInObject']||'insertion'==_0x12d4b0['type']&&_0x37e7cc['isOwn']||_0x12d4b0['getFirstRange']()['containsRange'](_0x1a145b)&&this['_breakSuggestionMarker'](_0x12d4b0,_0x2eb3aa,_0x435ce5));}});},{'priority':'lowest'}),_0x33e422['model']['on']('deleteContent',(_0x1745b4,_0xc4f3cc)=>{const _0xf3f22b=_0xc4f3cc[0x0],_0x5a3667=_0xc4f3cc[0x1];if(_0x5a3667&&_0x5a3667['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xf3f22b['isCollapsed'])return;const _0x3c0ee8=_0x33e422['model']['schema'],{start:_0x3645bf,end:_0x1f9ffe}=_0xf3f22b['getFirstRange'](),_0x50fe23=_0x3645bf['nodeAfter']&&_0x3c0ee8['isLimit'](_0x3645bf['nodeAfter'])?null:_0x3c0ee8['getNearestSelectionRange'](_0x3645bf,'forward'),_0x46edd9=_0x1f9ffe['nodeBefore']&&_0x3c0ee8['isLimit'](_0x1f9ffe['nodeBefore'])?null:_0x3c0ee8['getNearestSelectionRange'](_0x1f9ffe,'backward'),_0x5ef359=_0x33e422['model']['createRange'](_0x50fe23?_0x50fe23['start']:_0x3645bf,_0x46edd9?_0x46edd9['end']:_0x1f9ffe);_0x33e422['model']['change'](_0x524c26=>{this['markDeletion'](_0x5ef359);const _0x2242fc=_0x33e422['model']['schema']['getNearestSelectionRange'](_0x5ef359['start']);_0xf3f22b['is']('documentSelection')?_0x524c26['setSelection'](_0x2242fc):_0xf3f22b['setTo'](_0x2242fc);}),_0x1745b4['stop']();},{'priority':_0x3ba2dc['normal']+0xa}),_0x33e422['model']['on']('insertContent',(_0x2e379f,_0xa80835)=>{const _0x4d7c46=_0xa80835[_0xa80835['length']-0x1];_0x4d7c46&&_0x4d7c46['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x33e422['model']['change'](()=>{let _0xa59cab=_0x33e422['model']['insertContent'](_0xa80835[0x0],_0xa80835[0x1],_0xa80835[0x2],{'forceDefaultExecution':!0x0});if(!_0xa59cab)return;_0x2e379f['return']=_0xa59cab['clone']();const _0x129d40=_0xa59cab['end']['nodeBefore'],_0x305407=_0x33e422['model']['schema'];_0x129d40&&_0x305407['isBlock'](_0x129d40)&&!_0x305407['isObject'](_0x129d40)&&(_0xa59cab=_0x33e422['model']['createRange'](_0xa59cab['start'],_0x33e422['model']['createPositionAt'](_0x129d40,'end'))),this['markInsertion'](_0xa59cab);}),_0x2e379f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x121c2a=new $(_0x33e422,this['_suggestions']);_0x33e422['commands']['add']('acceptSuggestion',_0x121c2a),this['enableCommand']('acceptSuggestion');const _0x2841ff=new B(_0x33e422,this['_suggestions']);_0x33e422['commands']['add']('discardSuggestion',_0x2841ff),this['enableCommand']('discardSuggestion'),_0x33e422['commands']['add']('acceptAllSuggestions',new x(_0x33e422,_0x121c2a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x33e422['commands']['add']('discardAllSuggestions',new x(_0x33e422,_0x2841ff,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x33e422['commands']['add']('acceptSelectedSuggestions',new R(_0x33e422,_0x121c2a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x33e422['commands']['add']('discardSelectedSuggestions',new R(_0x33e422,_0x2841ff,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xff3fce=_0x33e422['plugins']['get']('CommentsRepository');this['listenTo'](_0xff3fce,'addComment',(_0x37faa1,{threadId:_0x43a4ee})=>{const _0x27d4c9=this['_suggestions']['get'](_0x43a4ee);_0x27d4c9&&_0x27d4c9['commentThread']&&0x1===_0x27d4c9['commentThread']['length']&&this['_updateSuggestionData'](_0x43a4ee,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xff3fce,'removeComment',(_0x78980d,{threadId:_0x4a6a87})=>{const _0xf0b37f=this['_suggestions']['get'](_0x4a6a87);_0xf0b37f&&_0xf0b37f['commentThread']&&!_0xf0b37f['commentThread']['length']&&this['_updateSuggestionData'](_0x4a6a87,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4a3119){if(this['_adapter'])throw new _0x46c804('track-changes-adapter-already-set',this);this['_adapter']=_0x4a3119;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x93de31=!0x1,toJSON:_0x152138=!0x1}={}){const _0x4d97c9=[];for(const _0x2b2523 of this['_suggestions']['values']())_0x93de31&&!_0x2b2523['isInContent']||_0x4d97c9['push'](_0x2b2523);return _0x152138?_0x4d97c9['map'](_0x3e5a77=>_0x3e5a77['toJSON']()):_0x4d97c9;}['getSuggestion'](_0x4dbfb0){const _0x3b32f3=this['_suggestions']['get'](_0x4dbfb0);if(!_0x3b32f3)throw new _0x46c804('track-changes-suggestion-not-found',this);return _0x3b32f3;}['hasSuggestion'](_0x5d832d){return this['_suggestions']['has'](_0x5d832d);}['addSuggestionData'](_0x4e72b5){const {authorId:_0x320bde,id:_0x23e7aa,attributes:_0x389114}=_0x4e72b5,[_0x475b8f,_0x30a847]=_0x4e72b5['type']['split'](':'),_0x4f5e13=this['_suggestions']['get'](_0x23e7aa)||this['_createSuggestion'](_0x475b8f,_0x30a847,_0x23e7aa,_0x320bde,_0x389114);if(this['_addThreadToSuggestion'](_0x4f5e13),this['_checkSuggestionCorrectness'](_0x4f5e13,_0x475b8f,_0x30a847||null,_0x320bde),_0x4f5e13['createdAt']=_0x4e72b5['createdAt'],_0x4f5e13['_isDataLoaded']=!0x0,_0x389114&&_0x389114['@external']){const _0x10fa9a=_0x389114['@external'],_0xdeade5=this['_getExternalAuthor'](_0x10fa9a['authorName']);_0x4f5e13['authoredAt']=_0x10fa9a['createdAt'],_0x4f5e13['author']=_0xdeade5,_0x4f5e13['isExternal']=!0x0;}else _0x4f5e13['authoredAt']=_0x4e72b5['createdAt'];switch(_0x4e72b5['data']&&(_0x4f5e13['data']=_0x4e72b5['data']),_0x4e72b5['attributes']&&(_0x4f5e13['attributes']=_0x4e72b5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4f5e13['_saved']=!0x0),this['_suggestionState']['get'](_0x4f5e13)){case'notReady':this['_suggestionState']['set'](_0x4f5e13,'dataReady');break;case'markerReady':_0x4f5e13['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4f5e13])),this['_refreshSuggestionsChain'](new Set([_0x4f5e13])),this['_suggestionState']['set'](_0x4f5e13,'ready'),this['fire']('suggestionLoaded',_0x4f5e13)):this['_suggestionState']['set'](_0x4f5e13,'removed');}return _0x4f5e13;}['acceptSuggestion'](_0x52fe1e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41f7f0 of _0x52fe1e['getAllAdjacentSuggestions']())_0x41f7f0['accept']();});});}['discardSuggestion'](_0x441010){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5aba93 of _0x441010['getAllAdjacentSuggestions']())_0x5aba93['discard']();});});}['enableCommand'](_0x4dbeec,_0x56c710){const _0x246fd2=this['editor']['commands']['get'](_0x4dbeec);if(!_0x246fd2)throw new _0x46c804('track-changes-command-not-found',this,{'commandName':_0x4dbeec});if(this['_enabledCommands']['has'](_0x246fd2))throw new _0x46c804('track-changes-enable-command-twice',this,{'commandName':_0x4dbeec});this['_enabledCommands']['add'](_0x246fd2),_0x56c710&&_0x246fd2['on']('execute',(_0xdddfa5,_0x713dcf)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x713dcf['length']>0x0&&_0x713dcf[_0x713dcf['length']-0x1]&&_0x713dcf[_0x713dcf['length']-0x1]['forceDefaultExecution']?_0x713dcf['pop']():(_0xdddfa5['return']=_0x56c710((..._0x58013d)=>_0x246fd2['execute'](..._0x58013d,{'forceDefaultExecution':!0x0}),..._0x713dcf),_0xdddfa5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x19d0c4){let _0x186177,_0x341569;const _0x3ed1c9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x186177=_0x19d0c4();}catch(_0x3bb15e){_0x341569=_0x3bb15e;}return _0x3ed1c9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x341569&&_0x46c804['rethrowUnexpectedError'](_0x341569,this),_0x186177;}['markInsertion'](_0x15e416,_0x260c44=null,_0x5270c4={}){if(_0x15e416['isCollapsed'])return null;const _0x22d636=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x678572,meta:_0xa09906}of this['_findSuggestions'](_0x15e416,'insertion'))if(_0xa09906['isOwn']){if(!_0xa09906['isNextTo']){if(_0xa09906['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x678572,_0x5270c4))continue;return _0x678572;}if(Lt(_0x678572,_0x5270c4))return _0x678572;this['_breakSuggestionMarker'](_0x678572,_0x15e416['start'],_0x15e416['end']);break;}if(_0x260c44==_0x678572['subType']&&Lt(_0x678572,_0x5270c4)){const _0x39bf2f=_0x678572['getFirstRange']();return _0x39bf2f['start']['isEqual'](_0x15e416['end'])?this['_setSuggestionRange'](_0x678572,this['_model']['createRange'](_0x15e416['start'],_0x39bf2f['end'])):this['_setSuggestionRange'](_0x678572,this['_model']['createRange'](_0x39bf2f['start'],_0x15e416['end'])),_0x678572;}}const _0x3464eb=_0x109dee(),_0x50ef3e=_0x22d636['id'],_0xd90f49=_0x260c44?'insertion:'+_0x260c44:'insertion',_0x209469=this['_setSuggestionData']({'id':_0x3464eb,'type':_0xd90f49,'createdAt':new Date(),'authorId':_0x50ef3e,'attributes':_0x5270c4});return this['_addSuggestionMarker'](_0xd90f49,_0x3464eb,_0x50ef3e,_0x15e416),_0x209469;}['markMultiRangeInsertion'](_0x7d20ed,_0x29ba7f='multi',_0x586461={}){const _0x41cbd8=this['editor']['plugins']['get']('Users')['me'],_0x463e9b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x29ba7f,'join');for(const _0x49c602 of this['getSuggestions']())if(_0x49c602['author']['id']==_0x41cbd8['id']&&'insertion'==_0x49c602['type']&&_0x49c602['subType']==_0x29ba7f&&Lt(_0x49c602,_0x586461)&&(_0x463e9b(_0x49c602['getRanges'](),_0x7d20ed)||_0x463e9b(_0x7d20ed,_0x49c602['getRanges']()))){for(const _0x4bdc93 of _0x7d20ed)_0x49c602['addRange'](_0x4bdc93);return _0x49c602;}for(const {suggestion:_0x4bd486,meta:_0x2b4088}of this['_findSuggestions'](_0x7d20ed,'insertion')){if(!_0x2b4088['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2b4088['containsRangeInObject'])continue;if(!Lt(_0x4bd486,_0x586461))continue;let _0x308737=!0x0;for(const _0x1da37d of _0x4bd486['getRanges']())for(const _0x30942c of _0x7d20ed)if(!_0x1da37d['containsRange'](_0x30942c)){_0x308737=!0x1;break;}if(_0x308737)return _0x4bd486;}const _0x4613a5=_0x109dee(),_0x53253c=_0x41cbd8['id'],_0x5054f7='insertion:'+_0x29ba7f,_0x418b56=this['_setSuggestionData']({'id':_0x4613a5,'type':_0x5054f7,'createdAt':new Date(),'authorId':_0x53253c,'attributes':_0x586461});for(const _0xc9889a of _0x7d20ed)this['_addSuggestionMarker'](_0x5054f7,_0x4613a5,_0x53253c,_0xc9889a,u['getMultiRangeId']());return _0x418b56;}['markInlineFormat'](_0x16eeb2,_0x2b6188,_0x23e7c5=null,_0x14af6b={}){if(_0x23e7c5=_0x23e7c5||Vt(_0x2b6188),_0x16eeb2['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x19973a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x23e7c5,'accept');return this['forceDefaultExecution'](()=>_0x19973a([_0x16eeb2],_0x2b6188,_0x14af6b)),null;}const _0x266f9c=this['editor']['plugins']['get']('Users')['me'],_0x6a531d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x28e678,meta:_0x12cb72}of this['_findSuggestions'](_0x16eeb2,'insertion'))_0x12cb72['isOwn']&&!_0x12cb72['isInsideObject']&&_0x6a531d['push'](..._0x28e678['getRanges']());}const _0x51f084=function(_0x1b2d2d,_0x109775){const _0x333cba=[];for(const _0x164990 of _0x109775){const _0x238d6a=_0x1b2d2d['getIntersection'](_0x164990);_0x238d6a&&_0x333cba['push'](_0x238d6a);}return _0x333cba;}(_0x16eeb2,_0x6a531d),_0x219885=function(_0x344014,_0x5f26b1){const _0x28e303=[_0x344014];for(const _0x5653c0 of _0x5f26b1){let _0x910ba3=0x0;for(;_0x910ba3<_0x28e303['length'];){const _0x514d59=_0x28e303[_0x910ba3]['getDifference'](_0x5653c0);_0x28e303['splice'](_0x910ba3,0x1,..._0x514d59),_0x910ba3+=_0x514d59['length'];}}return _0x28e303;}(_0x16eeb2,_0x6a531d);_0x51f084['length']&&this['_model']['change'](()=>{for(const _0x402d1b of _0x51f084){const _0x3c8e26=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x23e7c5,'accept');this['forceDefaultExecution'](()=>_0x3c8e26([_0x402d1b],_0x2b6188,_0x14af6b));}});for(const _0x3bb223 of _0x219885){let _0xa6ad7=null,_0x2eefd2=_0x3bb223['start'],_0x17fe1f=_0x3bb223['end'];for(const {suggestion:_0x4c72e5,meta:_0x2ca15b}of this['_findSuggestions'](_0x3bb223,'formatInline')){if(!_0x2ca15b['isOwn'])continue;if(_0x4c72e5['subType']!=_0x23e7c5)continue;if(!Lt(_0x4c72e5,_0x14af6b))continue;const _0x387c31=_0x4c72e5['getFirstRange']();if(_0x387c31['containsRange'](_0x3bb223,!0x0))return null;_0x2eefd2=_0x2eefd2['isBefore'](_0x387c31['start'])?_0x2eefd2:_0x387c31['start'],_0x17fe1f=_0x17fe1f['isAfter'](_0x387c31['end'])?_0x17fe1f:_0x387c31['end'],_0xa6ad7?_0x387c31['start']['isBefore'](_0xa6ad7['getFirstRange']()['start'])?(_0xa6ad7['removeMarkers'](),_0xa6ad7=_0x4c72e5):_0x4c72e5['removeMarkers']():_0xa6ad7=_0x4c72e5;}const _0xf28f52=this['_model']['createRange'](_0x2eefd2,_0x17fe1f);if(_0xa6ad7)this['_setSuggestionRange'](_0xa6ad7,_0xf28f52);else{const _0x85d760=_0x109dee(),_0x5cb9d3=_0x266f9c['id'];this['_setSuggestionData']({'id':_0x85d760,'type':'formatInline:'+_0x23e7c5,'data':_0x2b6188,'createdAt':new Date(),'authorId':_0x5cb9d3,'attributes':_0x14af6b}),this['_addSuggestionMarker']('formatInline:'+_0x23e7c5,_0x85d760,_0x5cb9d3,_0xf28f52);}}return null;}['markBlockFormat'](_0x1184a2,_0x5c654c,_0x397cb4=[],_0x98a395=null,_0x1ea0ab={}){_0x5c654c['formatGroupId']||(_0x5c654c['formatGroupId']=_0x5c654c['commandName']),_0x5c654c['multipleBlocks']=_0x1184a2['is']('range'),_0x98a395=_0x98a395||Vt(_0x5c654c);const _0x4c6026=_0x397cb4['map'](_0x44246c=>Ft(_0x44246c,this['_model'])),_0x99f88d=_0x1184a2['is']('range')?_0x1184a2:Ft(_0x1184a2,this['_model']);if('never'===this['_trackFormatChanges']){const _0x13e179=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x98a395,'accept');return this['forceDefaultExecution'](()=>_0x13e179([_0x99f88d],_0x5c654c,_0x1ea0ab)),null;}_0x4c6026['push'](_0x99f88d);let _0x546444=!0x0;for(const _0x417c04 of _0x4c6026)if(!this['_rangeIsInLocalUserInsertion'](_0x417c04)){_0x546444=!0x1;break;}if(_0x546444&&'always'!==this['_trackFormatChanges']){const _0xd32660=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x98a395,'accept');return this['forceDefaultExecution'](()=>_0xd32660([_0x99f88d],_0x5c654c,_0x1ea0ab)),null;}let _0x46a65a=null,_0x1e3123=_0x99f88d['start'],_0x59304e=_0x99f88d['end'];for(const {suggestion:_0x189a26,meta:_0x275d80}of this['_findSuggestions'](_0x99f88d,'formatBlock')){if(!_0x275d80['isOwn'])continue;if(_0x275d80['isNextTo']||_0x275d80['containsRangeInObject']||_0x275d80['isInsideObject'])continue;if(_0x189a26['data']['formatGroupId']!=_0x5c654c['formatGroupId'])continue;if(!Lt(_0x189a26,_0x1ea0ab))continue;const _0x91d61b=_0x189a26['getFirstRange']();if(_0x189a26['subType']==_0x98a395){if(_0x91d61b['containsRange'](_0x99f88d,!0x0))return null;_0x1e3123=_0x1e3123['isBefore'](_0x91d61b['start'])?_0x1e3123:_0x91d61b['start'],_0x59304e=_0x59304e['isAfter'](_0x91d61b['end'])?_0x59304e:_0x91d61b['end'],_0x46a65a?_0x91d61b['start']['isBefore'](_0x46a65a['getFirstRange']()['start'])?(_0x46a65a['removeMarkers'](),_0x46a65a=_0x189a26):_0x189a26['removeMarkers']():_0x46a65a=_0x189a26;}else{const _0x3ac70c=_0x99f88d['getIntersection'](_0x91d61b);this['_cutOutSuggestionMarker'](_0x189a26,_0x3ac70c);}}const _0x10af5d=this['editor']['plugins']['get']('Users')['me'],_0x177d5e=_0x109dee(),_0x4035b6=_0x10af5d['id'];if(_0x46a65a)return this['_setSuggestionRange'](_0x46a65a,this['_model']['createRange'](_0x1e3123,_0x59304e)),_0x46a65a;{const _0x81db1f=this['_setSuggestionData']({'id':_0x177d5e,'type':'formatBlock:'+_0x98a395,'data':_0x5c654c,'createdAt':new Date(),'authorId':_0x4035b6,'attributes':_0x1ea0ab});return this['_addSuggestionMarker']('formatBlock:'+_0x98a395,_0x177d5e,_0x4035b6,this['_model']['createRange'](_0x1e3123,_0x59304e)),_0x81db1f;}}['markMultiRangeBlockFormat'](_0xe3a10d,_0x3e4c3c,_0x2e1fef=[],_0x59a7d6=null,_0x555cb0={}){_0x3e4c3c['formatGroupId']||(_0x3e4c3c['formatGroupId']=_0x3e4c3c['commandName']);const _0x42c7aa=_0xe3a10d[0x0];_0x3e4c3c['multipleBlocks']=_0x42c7aa['is']('range'),_0x59a7d6=_0x59a7d6||Vt(_0x3e4c3c);const _0x273c93=_0x2e1fef['map'](_0x3b131b=>Ft(_0x3b131b,this['_model'])),_0x2cd7cb=_0x42c7aa['is']('range')?_0xe3a10d:_0xe3a10d['map'](_0x50a86f=>Ft(_0x50a86f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x22fdae=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59a7d6,'accept');return this['forceDefaultExecution'](()=>_0x22fdae(_0x2cd7cb,_0x3e4c3c,_0x555cb0)),null;}_0x273c93['push'](..._0x2cd7cb);let _0x4ed527=!0x0;for(const _0x46c47e of _0x273c93)if(!this['_rangeIsInLocalUserInsertion'](_0x46c47e)){_0x4ed527=!0x1;break;}if(_0x4ed527&&'always'!==this['_trackFormatChanges']){const _0x177347=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59a7d6,'accept');return this['forceDefaultExecution'](()=>_0x177347(_0x2cd7cb,_0x3e4c3c,_0x555cb0)),null;}const _0x1808c1=this['editor']['plugins']['get']('Users')['me'];for(const _0x101b36 of this['getSuggestions']()){if(_0x101b36['author']['id']!=_0x1808c1['id'])continue;if('formatBlock'!=_0x101b36['type']||_0x101b36['data']['formatGroupId']!=_0x3e4c3c['formatGroupId'])continue;if(!Lt(_0x101b36,_0x555cb0))continue;const _0x255cd0=_0x101b36['subType']==_0x59a7d6;for(let _0x5354dd=0x0;_0x5354dd<_0x2cd7cb['length'];_0x5354dd++){const _0x16c399=_0x2cd7cb[_0x5354dd];for(const _0x216eee of _0x101b36['getMarkers']()){const _0x5d11d0=_0x216eee['getRange']();if(_0x16c399['isEqual'](_0x5d11d0)){_0x255cd0?(_0x2cd7cb['splice'](_0x5354dd,0x1),_0x5354dd--):_0x101b36['removeMarker'](_0x216eee['name']);break;}}}}if(0x0==_0x2cd7cb['length'])return null;const _0x5dac46=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59a7d6,'join');for(const _0x3f2a77 of this['getSuggestions']())if(_0x3f2a77['author']['id']==_0x1808c1['id']&&'formatBlock'==_0x3f2a77['type']&&_0x3f2a77['data']['formatGroupId']==_0x3e4c3c['formatGroupId']&&_0x3f2a77['subType']==_0x59a7d6&&Lt(_0x3f2a77,_0x555cb0)&&(_0x5dac46(_0x3f2a77['getRanges'](),_0x2cd7cb)||_0x5dac46(_0x2cd7cb,_0x3f2a77['getRanges']()))){for(const _0xd4acaa of _0x2cd7cb)_0x3f2a77['addRange'](_0xd4acaa);return _0x3f2a77;}const _0x118f39=_0x109dee(),_0x11d0e1=_0x1808c1['id'],_0x20b828='formatBlock:'+_0x59a7d6,_0x3c0b77=this['_setSuggestionData']({'id':_0x118f39,'type':_0x20b828,'data':_0x3e4c3c,'createdAt':new Date(),'authorId':_0x11d0e1,'attributes':_0x555cb0});for(const _0x3ca5ba of _0x2cd7cb)this['_addSuggestionMarker'](_0x20b828,_0x118f39,_0x11d0e1,_0x3ca5ba,u['getMultiRangeId']());return _0x3c0b77;}['markDeletion'](_0x318f45,_0x28f7d8=null,_0x4d72f1={}){if(_0x318f45['isCollapsed'])return null;const _0x5a9378=this['editor']['plugins']['get']('Users')['me'],_0x485527=new _0x43239f(_0x318f45['start'],_0x318f45['end']);for(const {suggestion:_0x10758a,meta:_0x93903}of this['_findSuggestions'](_0x485527,'insertion'))if(_0x93903['isOwn']&&!_0x93903['isNextTo']){if(_0x10758a['isMultiRange']){const _0x2c5145=_0x10758a['getRanges']()['filter'](_0x98425e=>'$graveyard'!=_0x98425e['root']['rootName']);_0x2c5145['every'](_0x5d9d44=>_0x485527['containsRange'](_0x5d9d44,!0x0))&&_0x10758a['discard']();if(_0x2c5145['some'](_0x2515bf=>_0x2515bf['containsRange'](_0x485527,!0x0))){const _0x22431b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28f7d8,'accept');return this['forceDefaultExecution'](()=>_0x22431b([_0x485527],null,_0x4d72f1)),null;}}else{const _0x195beb=_0x485527['getIntersection'](_0x10758a['getFirstRange']());null!==_0x195beb&&_0x10758a['_onDiscard']([_0x195beb],null,_0x4d72f1);}}if(_0x485527['detach'](),_0x485527['isCollapsed']||'$graveyard'==_0x485527['root']['rootName'])return null;let _0x23657c=null,_0x238d34=_0x485527['start'],_0x3b97ef=_0x485527['end'];const _0x1d4ece=this['_findSuggestions'](_0x485527,'deletion');for(const {suggestion:_0x5b1b03,meta:_0x595b90}of _0x1d4ece){const _0x5d1a31=this['_model']['createRange'](_0x238d34,_0x3b97ef);if(_0x595b90['isOwn']&&(this['_mergeNestedSuggestions']||!_0x595b90['containsRangeInObject']&&!_0x595b90['isInsideObject'])){if(_0x5b1b03['isMultiRange']){if(!Lt(_0x5b1b03,_0x4d72f1))continue;let _0x2b95f0=!0x0;for(const _0xbcaaf5 of _0x5b1b03['getRanges']()){if(_0xbcaaf5['containsRange'](_0x5d1a31,!0x0))return _0x5b1b03;_0x5d1a31['containsRange'](_0xbcaaf5)||(_0x2b95f0=!0x1);}_0x2b95f0&&_0x5b1b03['discard']();}else{const _0x5ae928=_0x5b1b03['getFirstRange']();if(_0x5ae928['containsRange'](_0x5d1a31,!0x0))return _0x5b1b03;if(!Lt(_0x5b1b03,_0x4d72f1)){_0x5d1a31['containsRange'](_0x5ae928)?_0x5b1b03['removeMarkers']():_0x5ae928['containsPosition'](_0x238d34)?_0x238d34=_0x5ae928['end']:_0x5ae928['containsPosition'](_0x3b97ef)&&(_0x3b97ef=_0x5ae928['start']);continue;}_0x238d34=_0x238d34['isBefore'](_0x5ae928['start'])?_0x238d34:_0x5ae928['start'],_0x3b97ef=_0x3b97ef['isAfter'](_0x5ae928['end'])?_0x3b97ef:_0x5ae928['end'],_0x4d72f1=Object['assign']({},_0x5b1b03['attributes']),_0x23657c?_0x5ae928['start']['isBefore'](_0x23657c['getFirstRange']()['start'])?(_0x23657c['removeMarkers'](),_0x23657c=_0x5b1b03):_0x5b1b03['removeMarkers']():_0x23657c=_0x5b1b03;}}}if(_0x23657c)return this['_setSuggestionRange'](_0x23657c,this['_model']['createRange'](_0x238d34,_0x3b97ef)),_0x23657c;{const _0xbda848=_0x109dee(),_0x425b25=this['_model']['createRange'](_0x238d34,_0x3b97ef),_0x3fcd4d=_0x5a9378['id'],_0x491cfd=_0x28f7d8?'deletion:'+_0x28f7d8:'deletion',_0x5e8e3b=this['_setSuggestionData']({'id':_0xbda848,'type':_0x491cfd,'createdAt':new Date(),'authorId':_0x3fcd4d,'attributes':_0x4d72f1});return this['_addSuggestionMarker'](_0x491cfd,_0xbda848,_0x3fcd4d,_0x425b25),_0x5e8e3b;}}['markMultiRangeDeletion'](_0x5e0f50,_0x1dce41='multi',_0x243df2={}){const _0x42d831=this['editor']['plugins']['get']('Users')['me'],_0x37191d=_0x5e0f50['map'](_0x322abe=>new _0x43239f(_0x322abe['start'],_0x322abe['end'])),_0x119e88=new Set();for(const {suggestion:_0x1f10ba,meta:_0x470697}of this['_findSuggestions'](_0x37191d,'insertion'))_0x470697['isOwn']&&!_0x470697['isNextTo']&&_0x119e88['add'](_0x1f10ba);for(const _0x5ae1d6 of _0x119e88)if(_0x5ae1d6['isMultiRange']){const _0x3283a8=_0x5ae1d6['getRanges']();(!_0x5ae1d6['attributes']||!_0x5ae1d6['attributes']['skipNestingCheck'])&&(_0x3283a8['every'](_0x55e699=>_0x37191d['some'](_0x3379c3=>_0x3379c3['containsRange'](_0x55e699,!0x0)))&&_0x5ae1d6['discard']());if(_0x37191d['every'](_0xe4bdcb=>_0x3283a8['some'](_0x539304=>_0x539304['containsRange'](_0xe4bdcb,!0x0)))){const _0x223a5e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1dce41,'accept');return this['forceDefaultExecution'](()=>_0x223a5e(_0x5e0f50,null,_0x243df2)),null;}}else{const _0x5615cc=_0x5ae1d6['getFirstRange']();_0x37191d['some'](_0x59c56a=>_0x59c56a['containsRange'](_0x5615cc,!0x0))&&_0x5ae1d6['discard']();if(_0x37191d['every'](_0x24785a=>_0x5615cc['containsRange'](_0x24785a,!0x0))){const _0xe1c0c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1dce41,'accept');return this['forceDefaultExecution'](()=>_0xe1c0c(_0x37191d,null,_0x243df2)),null;}}const _0x5cac7a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1dce41,'join');let _0x21f7d3=null;for(const _0x41898e of this['getSuggestions']())if(_0x41898e['author']['id']==_0x42d831['id']&&_0x41898e['isInContent']&&'deletion'==_0x41898e['type']&&_0x41898e['subType']==_0x1dce41&&Lt(_0x41898e,_0x243df2)&&(_0x5cac7a(_0x41898e['getRanges'](),_0x37191d)||_0x5cac7a(_0x37191d,_0x41898e['getRanges']()))){if(_0x21f7d3){if(_0x41898e['commentThread']&&_0x41898e['commentThread']['length'])continue;for(const _0xc174bc of _0x41898e['getRanges']())_0x21f7d3['isIntersectingWithRange'](_0xc174bc)||_0x21f7d3['addRange'](_0xc174bc);_0x41898e['removeMarkers']();}else{_0x21f7d3=_0x41898e;for(const _0x20af81 of _0x37191d)_0x41898e['isIntersectingWithRange'](_0x20af81)||_0x41898e['addRange'](_0x20af81);}}if(_0x21f7d3)return _0x21f7d3;_0x119e88['clear']();for(const {suggestion:_0x4fbab1,meta:_0x3f3fd1}of this['_findSuggestions'](_0x37191d,'deletion'))_0x3f3fd1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f3fd1['containsRangeInObject']&&!_0x3f3fd1['isInsideObject'])&&Lt(_0x4fbab1,_0x243df2)&&_0x119e88['add'](_0x4fbab1);for(const _0x3d3f89 of _0x119e88){const _0x2a9be6=_0x3d3f89['getRanges']();if(!_0x243df2||!_0x243df2['skipNestingCheck']){if(_0x37191d['every'](_0x3ff8d3=>_0x2a9be6['some'](_0x176165=>_0x176165['containsRange'](_0x3ff8d3,!0x0))))return _0x3d3f89;}(!_0x3d3f89['attributes']||!_0x3d3f89['attributes']['skipNestingCheck'])&&(_0x2a9be6['every'](_0x4218d6=>_0x37191d['some'](_0x2a70ce=>_0x2a70ce['containsRange'](_0x4218d6,!0x0)))&&_0x3d3f89['discard']());}const _0x291553=_0x109dee(),_0x18db44=_0x42d831['id'],_0x39fbdb='deletion:'+_0x1dce41,_0xaf4c0d=this['_setSuggestionData']({'id':_0x291553,'type':_0x39fbdb,'createdAt':new Date(),'authorId':_0x18db44,'attributes':_0x243df2});for(const _0x523ff6 of _0x37191d)_0x523ff6['detach'](),_0x523ff6['isCollapsed']||'$graveyard'==_0x523ff6['root']['rootName']||this['_addSuggestionMarker'](_0x39fbdb,_0x291553,_0x18db44,_0x523ff6,u['getMultiRangeId']());return _0xaf4c0d;}['markAttributeChange'](_0x1ae96e,_0xd99046,_0x15ec7b,_0x53e8d6,_0x4f0556){if(_0x1ae96e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x586ff4=this['editor']['plugins']['get']('Users')['me']['id'],_0x415f10=Array['from'](this['_suggestions']['values']())['filter'](_0x422f58=>'attribute'==_0x422f58['type']&&_0x422f58['data']['key']==_0xd99046&&_0x422f58['isIntersectingWithRange'](_0x1ae96e));if('default'===this['_trackFormatChanges']){const _0x274d4c=this['_findSuggestions'](_0x1ae96e,'insertion')['filter'](({meta:_0x3051f2})=>_0x3051f2['isOwn']&&!_0x3051f2['isInsideObject']&&!_0x3051f2['isNextTo'])['map'](({suggestion:_0x127322})=>_0x127322);_0x415f10['unshift'](..._0x274d4c);}const _0x28ce27=new Map([[_0x1ae96e,_0x15ec7b]]);for(const _0x5e7bd8 of _0x415f10){const _0x3688f4='attribute'==_0x5e7bd8['type']?_0x5e7bd8['data']['oldValue']:void 0x0,_0x26ad0b=_0x5e7bd8['getFirstRange'](),_0xd20517=Array['from'](_0x28ce27['keys']())['find'](_0x4fbff5=>_0x4fbff5['isIntersecting'](_0x26ad0b));if(!_0xd20517)continue;const _0x7db6f2=_0xd20517['getDifference'](_0x26ad0b);this['_isBlockAttribute'](_0xd99046)&&'insertion'==_0x5e7bd8['type']&&0x0!=_0x7db6f2['length']||(_0x28ce27['delete'](_0xd20517),_0x7db6f2['forEach'](_0x3f53d6=>{_0x28ce27['set'](_0x3f53d6,_0x15ec7b);}),'insertion'!=_0x5e7bd8['type']&&_0x3688f4!=_0x53e8d6&&_0x28ce27['set'](_0xd20517['getIntersection'](_0x26ad0b),_0x3688f4));}const _0x47228b=[];for(const [_0x151b6e,_0x2ae158]of _0x28ce27){const _0x1c5ed0=_0x109dee(),_0x10b3fa={'key':_0xd99046,'oldValue':_0x2ae158,'newValue':_0x53e8d6};_0xd99046['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':_0xd99046});const _0x47c7b5=('attribute:'+(_0xd99046+'|'+Vt({'newValue':_0x53e8d6})))['substring'](0x0,0x3c),_0x53893f=this['_setSuggestionData']({'id':_0x1c5ed0,'type':_0x47c7b5,'data':_0x10b3fa,'createdAt':new Date(),'authorId':_0x586ff4,'attributes':_0x4f0556});_0x47228b['push'](_0x53893f),this['_addSuggestionMarker'](_0x47c7b5,_0x1c5ed0,_0x586ff4,_0x151b6e);}return _0x47228b;}['enableDefaultAttributesIntegration'](_0x11cf23){this['enableCommand'](_0x11cf23,(_0x52ef2c,..._0x2d0847)=>{this['_recordAttributeChanges'](()=>{_0x52ef2c(..._0x2d0847);});});}['registerBlockAttribute'](_0x49c61f){this['_blockAttributeKeys']['add'](_0x49c61f);}['registerInlineAttribute'](_0x49f135){this['_inlineAttributeKeys']['add'](_0x49f135);}['_getAttributeKey'](_0x1df3f9){return'attribute'==_0x1df3f9['type']?_0x1df3f9['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x195756,_0x5975a5){const _0x2f18d1=_0x195756['getFirstMarker']();this['_model']['change'](_0x104c18=>{_0x104c18['updateMarker'](_0x2f18d1,{'range':_0x5975a5});});}['_addThreadToSuggestion'](_0x196076){const _0x2d52ee=_0x196076['id'],_0x57812f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2d52ee)||this['_commentsRepository']['addCommentThread']({'channelId':_0x57812f,'threadId':_0x2d52ee,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x55a3b4=this['_commentsRepository']['getCommentThread'](_0x2d52ee);_0x55a3b4['unbind']('isRemovable'),_0x55a3b4['isRemovable']=!0x1,_0x196076['commentThread']=_0x55a3b4;}['_checkSuggestionCorrectness'](_0xc0f698,_0x109fe0,_0x2e87dc,_0x375fc1){if(_0xc0f698['type']!=_0x109fe0||_0xc0f698['subType']!=_0x2e87dc||_0xc0f698['creator']['id']!=_0x375fc1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x46c804('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x27f13e,_0x125f28){const _0x19524d=_0x27f13e['getFirstRange']();if(_0x125f28['isEqual'](_0x19524d))_0x27f13e['removeMarkers']();else{if(_0x19524d['containsRange'](_0x125f28)){const _0x493de5=this['_model']['createPositionAt'](_0x125f28['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x27f13e,this['_model']['createRange'](_0x19524d['start'],_0x493de5));const _0x578420=_0x109dee(),_0x50f70b=_0x27f13e['creator']['id'],_0x5ae473=_0x27f13e['type']+':'+_0x27f13e['subType'];this['_setSuggestionData']({'id':_0x578420,'type':_0x5ae473,'createdAt':new Date(),'authorId':_0x50f70b,'data':_0x27f13e['data'],'attributes':_0x27f13e['attributes']});const _0x39a574=this['_model']['createPositionAt'](_0x125f28['end']['parent'],'after'),_0x2a84ec=this['_model']['createRange'](_0x39a574,_0x19524d['end']);this['_addSuggestionMarker'](_0x5ae473,_0x578420,_0x50f70b,_0x2a84ec);}else{if(_0x19524d['containsPosition'](_0x125f28['start'])){const _0x5475df=this['_model']['createPositionAt'](_0x125f28['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x27f13e,this['_model']['createRange'](_0x19524d['start'],_0x5475df));}else{const _0x46e17c=this['_model']['createPositionAt'](_0x125f28['end']['parent'],'after');this['_setSuggestionRange'](_0x27f13e,this['_model']['createRange'](_0x46e17c,_0x19524d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4c2a1a){for(const {suggestion:_0x4a13f3,meta:_0x27da3f}of this['_findSuggestions'](_0x4c2a1a,'insertion')){if(!_0x27da3f['isOwn'])continue;const _0x1932f8=_0x4a13f3['getRanges']();for(const _0x8c5739 of _0x1932f8)if(!_0x4c2a1a['getDifference'](_0x8c5739)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4f322d){const _0x16d854=this['editor']['plugins']['get']('Users')['getUser'](_0x4f322d);if(!_0x16d854)throw new _0x46c804('track-changes-user-not-found',this);return _0x16d854;}['_getExternalAuthor'](_0xbe7868){const _0x24f077=this['editor']['plugins']['get']('Users'),_0x595751=_0x37c233('external:'+_0xbe7868),_0x3548d2=_0x24f077['getUser'](_0x595751);return _0x3548d2||_0x24f077['addUser']({'id':_0x595751,'name':_0xbe7868});}['_createSuggestion'](_0x54c6c2,_0x5a626e,_0x4dd649,_0x5639cf,_0x57bc17){const _0x54a900=this['_getAuthorFromId'](_0x5639cf),_0xed9c4e=this['_suggestionFactory']['buildSuggestion'](_0x54c6c2,_0x5a626e,_0x4dd649,_0x54a900,_0x57bc17,_0x46e1d8=>{this['_updateSuggestionData'](_0x4dd649,{'attributes':_0x46e1d8});const _0xbc8049=this['getSuggestion'](_0x4dd649);this['_joinWithAdjacentSuggestions'](new Set([_0xbc8049])),this['_refreshSuggestionsChain'](new Set([_0xbc8049]));});return this['listenTo'](_0xed9c4e,'accept',()=>{this['_updateSuggestionData'](_0x4dd649,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xed9c4e,'discard',()=>{this['_updateSuggestionData'](_0x4dd649,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4dd649,_0xed9c4e),this['_suggestionState']['set'](_0xed9c4e,'notReady'),_0xed9c4e;}['_splitMarkerName'](_0x4c29a8){const _0x212881=_0x4c29a8['split'](':');return{'group':_0x212881[0x0],'type':_0x212881[0x1],'subType':_0x212881['length']>=0x5?_0x212881[0x2]:null,'id':_0x212881['length']<0x5?_0x212881[0x2]:_0x212881[0x3],'authorId':_0x212881['length']<0x5?_0x212881[0x3]:_0x212881[0x4],'markerCount':0x6==_0x212881['length']?_0x212881[0x5]:null};}['_breakSuggestionMarker'](_0x79fc85,_0x24f167,_0x48bbc8){const _0x1d50b4=_0x79fc85['getFirstRange'](),_0x1df98c=_0x1d50b4['start'],_0x300bac=_0x1d50b4['end'];this['_setSuggestionRange'](_0x79fc85,this['_model']['createRange'](_0x1df98c,_0x24f167));const _0x3f5b80=_0x109dee(),_0x533c3c=_0x79fc85['creator']['id'],_0x4b8e16=_0x79fc85['type']+(_0x79fc85['subType']?':'+_0x79fc85['subType']:'');this['_setSuggestionData']({'id':_0x3f5b80,'type':_0x4b8e16,'createdAt':new Date(),'authorId':_0x533c3c,'originalSuggestionId':_0x79fc85['id'],'attributes':_0x79fc85['attributes'],'data':_0x79fc85['data']});const _0x2a8fa1=this['_getAttributeKey'](_0x79fc85);('formatBlock'==_0x79fc85['type']||_0x2a8fa1&&this['_isBlockAttribute'](_0x2a8fa1))&&(_0x48bbc8=this['_model']['createPositionBefore'](_0x48bbc8['parent'])),this['_addSuggestionMarker'](_0x4b8e16,_0x3f5b80,_0x533c3c,this['_model']['createRange'](_0x48bbc8,_0x300bac));}['_findSuggestions'](_0x408937,_0x71d9e9=null){const _0x337298=[],_0x4656b2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x408937)||(_0x408937=[_0x408937]);for(const _0x5dd594 of this['getSuggestions']()){if(!_0x5dd594['isInContent'])continue;if(_0x71d9e9&&_0x5dd594['type']!=_0x71d9e9)continue;let _0x760c3e=!0x1;for(const _0x2ae82f of _0x5dd594['getRanges']()){for(const _0x32ca18 of _0x408937){const _0x1de1a6=_0x32ca18['start']['isEqual'](_0x2ae82f['end'])||_0x32ca18['end']['isEqual'](_0x2ae82f['start']);if(_0x1de1a6||_0x32ca18['getIntersection'](_0x2ae82f)){const _0x17abde=_0x32ca18['containsRange'](_0x2ae82f)&&Rt(this['_model']['schema'],_0x2ae82f['start'],_0x32ca18),_0x502768=_0x2ae82f['containsRange'](_0x32ca18)&&Rt(this['_model']['schema'],_0x32ca18['start'],_0x2ae82f);_0x337298['push']({'suggestion':_0x5dd594,'meta':{'isOwn':_0x4656b2==_0x5dd594['author'],'isNextTo':_0x1de1a6,'isInsideObject':_0x17abde,'containsRangeInObject':_0x502768}}),_0x760c3e=!0x0;break;}}if(_0x760c3e)break;}}return _0x337298;}['_addSuggestionMarker'](_0x37178a,_0x35c2dd,_0x3e2c72,_0x33257a,_0xa4a35){this['_model']['change'](_0x3f23ee=>{let _0x43a344='suggestion:'+_0x37178a+':'+_0x35c2dd+':'+_0x3e2c72;_0xa4a35&&(_0x43a344=_0x43a344+':'+_0xa4a35),_0x3f23ee['addMarker'](_0x43a344,{'range':_0x33257a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5c0572){const _0x545e4c=_0x5c0572['previous'],_0x4a4c8b=_0x5c0572['next'];_0x5c0572['previous']=null,_0x5c0572['next']=null,null!=_0x545e4c&&_0x545e4c['next']==_0x5c0572&&(_0x545e4c['next']=_0x4a4c8b),null!=_0x4a4c8b&&_0x4a4c8b['previous']==_0x5c0572&&(_0x4a4c8b['previous']=_0x545e4c),'ready'==this['_suggestionState']['get'](_0x5c0572)&&(this['_suggestionState']['set'](_0x5c0572,'removed'),this['fire']('suggestionUnloaded',_0x5c0572,_0x545e4c,_0x4a4c8b));}['_setSuggestionData'](_0x59ed65){const _0x55bfb2=_0x59ed65['id'],_0x69f496=this['addSuggestionData'](_0x59ed65);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x259139=this['editor']['plugins']['get']('PendingActions'),_0x496a11=_0x69f496['hasComments'],_0x31fb10=_0x69f496['subType']?_0x69f496['type']+':'+_0x69f496['subType']:_0x69f496['type'],_0xa9f1a8=this['editor']['locale'],_0x5726f2=_0x259139['add'](o(_0xa9f1a8,'PENDING_ACTION_SUGGESTION')),_0x350124={'id':_0x55bfb2,'type':_0x31fb10,'hasComments':_0x496a11,'data':_0x59ed65['data']||null,'originalSuggestionId':_0x59ed65['originalSuggestionId']||null,'attributes':_0x69f496['attributes']};this['_adapter']['addSuggestion'](_0x350124)['then'](_0x186aa4=>{_0x69f496['_saved']=!0x0,_0x259139['remove'](_0x5726f2),_0x186aa4&&_0x186aa4['createdAt']&&(this['_suggestions']['get'](_0x55bfb2)['createdAt']=_0x186aa4['createdAt']);})['catch'](_0x194403=>{throw _0x27ca85('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x69f496['discard']();}),_0x69f496['stopListening'](),this['_suggestions']['delete'](_0x69f496['id']),this['_suggestionState']['delete'](_0x69f496),_0x194403;});}return _0x69f496;}['_isBlockAttribute'](_0x250707){return this['_blockAttributeKeys']['has'](_0x250707);}['_updateSuggestionData'](_0x2702e7,_0x3b8867){const _0x3b1031=this['editor']['plugins']['get']('PendingActions'),_0x48e90b=this['getSuggestion'](_0x2702e7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x48e90b['_saved']){const _0x17aeb6=_0x3b1031['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2702e7,_0x3b8867)['then'](()=>{_0x3b1031['remove'](_0x17aeb6);});}else _0x48e90b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2702e7,_0x3b8867);});}}['_getSuggestionData'](_0x5d5111){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x46c804('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5d5111);}['_handleNewSuggestionMarker'](_0x435a4d){const {id:_0x4fdbaa,type:_0x595f59,subType:_0xd95109,authorId:_0x509f41}=this['_splitMarkerName'](_0x435a4d),_0x563b75=this['_suggestions']['get'](_0x4fdbaa)||this['_createSuggestion'](_0x595f59,_0xd95109,_0x4fdbaa,_0x509f41,{});switch(this['_checkSuggestionCorrectness'](_0x563b75,_0x595f59,_0xd95109,_0x509f41),this['_suggestionState']['get'](_0x563b75)){case'notReady':this['_getSuggestionData'](_0x4fdbaa)['then'](_0xaae0ac=>{let _0x5210dc=Promise['resolve']();_0xaae0ac['hasComments']&&(_0x5210dc=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4fdbaa})),_0x5210dc['then'](()=>{this['addSuggestionData'](_0xaae0ac)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x563b75,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4fdbaa,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x563b75,'ready'),this['fire']('suggestionLoaded',_0x563b75);break;case'ready':this['fire']('suggestionChanged',_0x563b75);}return _0x563b75['addMarkerName'](_0x435a4d),_0x563b75;}['_refreshSuggestionsChain'](_0x9b6efe){const _0x4167f2=Array['from'](_0x9b6efe),_0x148df7=_0x4167f2['filter'](_0x5e50c8=>'attribute'==_0x5e50c8['type']);this['_refreshAttributeSuggestionsChain'](_0x148df7);const _0x62338b=_0x4167f2['filter'](_0x2f56bf=>!_0x2f56bf['isMultiRange']&&'attribute'!=_0x2f56bf['type']),_0x4ce596=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53b6a5=>!_0x53b6a5['isMultiRange']&&'attribute'!=_0x53b6a5['type']),_0x139f2f=_0x4ce596['filter'](_0x3a3b6a=>!_0x9b6efe['has'](_0x3a3b6a)),_0x588689=new Map(_0x4ce596['map'](_0x211d8f=>[_0x211d8f,this['_suggestionFactory']['getSuggestionCallback'](_0x211d8f['type'],_0x211d8f['subType'],'chain')])),_0xeb8367=new Map(_0x4ce596['map'](_0x87be14=>[_0x87be14,_0x87be14['getFirstRange']()])),_0x5adc66=new Set(),_0x4b2e71=new Set();for(let _0x39216c=0x0;_0x39216c<_0x62338b['length'];_0x39216c++)_0x27b92e(_0x62338b[_0x39216c],_0x62338b,_0x39216c+0x1);for(let _0x43f7c9=0x0;_0x43f7c9<_0x62338b['length'];_0x43f7c9++)_0x27b92e(_0x62338b[_0x43f7c9],_0x139f2f,0x0);const _0x19bce2=new Set();for(let _0x202aa6=0x0;_0x202aa6<_0x62338b['length'];_0x202aa6++){const _0x3ae37=_0x62338b[_0x202aa6];!_0x4b2e71['has'](_0x3ae37)&&_0x3ae37['previous']&&(_0x19bce2['add'](_0x3ae37['previous']),_0x3ae37['previous']['next']===_0x3ae37&&(_0x3ae37['previous']['next']=null),_0x3ae37['previous']=null),!_0x5adc66['has'](_0x3ae37)&&_0x3ae37['next']&&(_0x19bce2['add'](_0x3ae37['next']),_0x3ae37['next']['previous']===_0x3ae37&&(_0x3ae37['next']['previous']=null),_0x3ae37['next']=null);}function _0x27b92e(_0x4b21fc,_0x2b3812,_0x3eaea7){for(let _0x29103d=_0x3eaea7;_0x29103d<_0x2b3812['length'];_0x29103d++){const _0x3121c9=_0x221055(_0x4b21fc,_0x2b3812[_0x29103d]);_0x3121c9&&(_0x3121c9[0x0]['next']=_0x3121c9[0x1],_0x3121c9[0x1]['previous']=_0x3121c9[0x0],_0x5adc66['add'](_0x3121c9[0x0]),_0x4b2e71['add'](_0x3121c9[0x1]));}}function _0x221055(_0x5757d2,_0x275463){if(_0x5757d2['author']['id']!==_0x275463['author']['id'])return null;const _0x1c7625=_0x588689['get'](_0x5757d2)(_0x5757d2,_0x275463,_0xeb8367['get'](_0x5757d2),_0xeb8367['get'](_0x275463));if(!_0x1c7625)return null;return _0x588689['get'](_0x275463)(_0x5757d2,_0x275463,_0xeb8367['get'](_0x5757d2),_0xeb8367['get'](_0x275463))?_0x1c7625[0x1]['commentThread']&&_0x1c7625[0x1]['commentThread']['length']?null:_0x1c7625:null;}_0x19bce2['size']&&this['_refreshSuggestionsChain'](_0x19bce2);}['_refreshAttributeSuggestionsChain'](_0x4e77b7){if(0x0==_0x4e77b7['length'])return;const _0x11b79b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5db6e4=>'attribute'==_0x5db6e4['type']&&_0x5db6e4['_isDataLoaded']),_0x2262d9=[],_0x2f7191=new Map();for(const _0x351d9b of _0x11b79b){const _0x4e4dfb=_0x37c233(_0x351d9b['attributes']);_0x2f7191['has'](_0x4e4dfb)||(_0x2f7191['set'](_0x4e4dfb,_0x2262d9['length']),_0x2262d9['push']([]));const _0x1e7952=_0x2f7191['get'](_0x4e4dfb);_0x2262d9[_0x1e7952]['push'](_0x351d9b);}!(function(){_0x2262d9['sort']((_0xbd2661,_0x1c53cb)=>{const _0x351400=_0xbd2661[0x0]['createdAt'],_0x156cac=_0x1c53cb[0x0]['createdAt'];return _0x351400==_0x156cac?_0xbd2661[0x0]['attributes']['groupId']<_0x1c53cb[0x0]['attributes']['groupId']?-0x1:0x1:_0x351400<_0x156cac?-0x1:0x1;});for(const _0x2fb025 of _0x2262d9)_0x2fb025['sort']((_0x2b9174,_0x3bd75e)=>_0x2b9174['id']<_0x3bd75e['id']?-0x1:0x1);}());for(let _0x1caa2a=0x0;_0x1caa2a<_0x2262d9['length'];_0x1caa2a++){if(0x0==_0x2262d9[_0x1caa2a]['length'])continue;const _0x50523a=[];for(let _0x4eff91=_0x1caa2a+0x1;_0x4eff91<_0x2262d9['length'];_0x4eff91++)0x0!=_0x2262d9[_0x4eff91]['length']&&_0xc89c08(_0x2262d9[_0x1caa2a],_0x2262d9[_0x4eff91])&&_0x50523a['push'](_0x4eff91);for(const _0x5f17a3 of _0x50523a)_0x2262d9[_0x1caa2a]=_0x2262d9[_0x1caa2a]['concat'](_0x2262d9[_0x5f17a3]),_0x2262d9[_0x5f17a3]=[];}for(const _0x1e855c of _0x2262d9)for(let _0x3ad176=0x0;_0x3ad176<_0x1e855c['length'];_0x3ad176++)_0x1e855c[_0x3ad176]['next']=_0x1e855c[_0x3ad176+0x1]||null;for(const _0x2773c2 of _0x2262d9)for(let _0xedc940=0x0;_0xedc940<_0x2773c2['length'];_0xedc940++)_0x2773c2[_0xedc940]['previous']=_0x2773c2[_0xedc940-0x1]||null;function _0xc89c08(_0x4877c8,_0x2f9b73){if(_0x4877c8[0x0]['attributes']['groupId']!==_0x2f9b73[0x0]['attributes']['groupId']&&_0x4877c8[0x0]['author']!==_0x2f9b73[0x0]['author'])return!0x1;if(!function(_0x1fd831,_0x4c2ef9){if(!_0x1fd831['hasComments']&&!_0x4c2ef9['hasComments'])return!0x0;if(_0x1fd831['hasComments']&&_0x4c2ef9['hasComments'])return!0x1;if(_0x1fd831['hasComments']&&_0x4c2ef9['createdAt']<_0x1fd831['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4c2ef9['hasComments']&&_0x1fd831['createdAt']<_0x4c2ef9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4877c8[0x0],_0x2f9b73[0x0]))return!0x1;const _0x36dc59=Bt(_0x4877c8[0x0]['attributes'],'groupId'),_0x175918=Bt(_0x2f9b73[0x0]['attributes'],'groupId');if(!_0xa08454(_0x36dc59,_0x175918))return!0x1;return!!_0x4877c8['every'](_0x1977ea=>_0x2f9b73['some'](_0x45d404=>_0x1977ea['getFirstRange']()['isEqual'](_0x45d404['getFirstRange']())))&&_0x2f9b73['every'](_0x16db89=>_0x4877c8['some'](_0x5960dc=>_0x16db89['getFirstRange']()['isEqual'](_0x5960dc['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5c4cbc){const _0x3879ee=Array['from'](_0x5c4cbc),_0x3b4a3f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x203ceb=_0x3b4a3f['filter'](_0x16bca8=>!_0x5c4cbc['has'](_0x16bca8)),_0x222415=new Map(_0x3879ee['map'](_0x47036b=>[_0x47036b,this['_suggestionFactory']['getSuggestionCallback'](_0x47036b['type'],_0x47036b['subType'],'join')])),_0x50115d=new Map(_0x3b4a3f['map'](_0x1b269a=>[_0x1b269a,_0x1b269a['getRanges']()]));for(let _0x5afc9a=0x0;_0x5afc9a<_0x3879ee['length'];_0x5afc9a++){if(_0x32a834(this,_0x3879ee[_0x5afc9a],_0x3879ee,_0x5afc9a+0x1))return!0x0;}for(let _0x58383d=0x0;_0x58383d<_0x3879ee['length'];_0x58383d++){if(_0x32a834(this,_0x3879ee[_0x58383d],_0x203ceb,0x0))return!0x0;}return!0x1;function _0x32a834(_0x1b208d,_0x3434ca,_0x40cad0,_0x374700){for(let _0x3dc61b=_0x374700;_0x3dc61b<_0x40cad0['length'];_0x3dc61b++){const _0x59754f=_0x40cad0[_0x3dc61b];if(_0x59754f['type']!==_0x3434ca['type']||_0x59754f['author']['id']!==_0x3434ca['author']['id']||_0x59754f['subType']!==_0x3434ca['subType'])continue;if(!Pt(_0x3434ca,_0x59754f,['groupId']))continue;if('attribute'==_0x3434ca['type']&&_0x3434ca['data']['oldValue']!=_0x59754f['data']['oldValue'])continue;if('attribute'==_0x3434ca['type']&&_0x1b208d['_isBlockAttribute'](_0x3434ca['data']['key']))continue;if('formatBlock'==_0x3434ca['type']){const _0x1ad76d=_0x1b208d['editor']['model'],_0x186e1d=_0x3434ca['getContainedElement']();if(_0x186e1d&&(_0x1ad76d['schema']['isObject'](_0x186e1d)||_0x1ad76d['schema']['isLimit'](_0x186e1d)))continue;}const _0x2d46ae=_0x222415['get'](_0x3434ca),_0x13900a=_0x50115d['get'](_0x3434ca),_0xc61f4c=_0x50115d['get'](_0x59754f),_0xb128c7=_0x3434ca['commentThread']&&_0x3434ca['commentThread']['length'],_0x569f3d=_0x59754f['commentThread']&&_0x59754f['commentThread']['length'];if(!_0xb128c7&&_0x2d46ae(_0xc61f4c,_0x13900a))return _0x1b208d['_joinSuggestions'](_0x59754f,_0x3434ca),_0x50115d['delete'](_0x3434ca),!0x0;if(!_0x569f3d&&_0x2d46ae(_0x13900a,_0xc61f4c))return _0x1b208d['_joinSuggestions'](_0x3434ca,_0x59754f),_0x50115d['delete'](_0x59754f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3a7588,_0x1bfdbe){if(_0x3a7588['isMultiRange']){for(const _0x403805 of _0x1bfdbe['getRanges']())_0x3a7588['addRange'](_0x403805);}else{const _0x3800f7=_0x1bfdbe['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3a7588,this['_model']['createRange'](_0x3a7588['getFirstRange']()['start'],_0x3800f7));}_0x1bfdbe['removeMarkers']();}['_getMarkerAnnouncementText'](_0x18cf04,_0xa92baf){const _0x345449=_0x18cf04['startsWith']('format')||_0x18cf04['startsWith']('attribute')?'FORMATTING':_0x18cf04['toUpperCase']();return o(this['editor']['locale'],_0xa92baf+'_'+_0x345449+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5db762=this['editor'];if(!_0x5db762['ui'])return;const {ariaLiveAnnouncer:_0x172dbf}=_0x5db762['ui'];_0x751978(this['_model'],({left:_0x496691,entered:_0x1711e8})=>{for(const _0x18f442 of _0x496691){const {group:_0x24bfb3,type:_0xb5c064}=this['_splitMarkerName'](_0x18f442['name']);if('suggestion'===_0x24bfb3){_0x172dbf['announce'](this['_getMarkerAnnouncementText'](_0xb5c064,'LEAVE'));break;}}for(const _0x557649 of _0x1711e8){const {group:_0x50d7d3,type:_0x4dd07b}=this['_splitMarkerName'](_0x557649['name']);if('suggestion'===_0x50d7d3){_0x172dbf['announce'](this['_getMarkerAnnouncementText'](_0x4dd07b,'ENTER'));break;}}});}['_processAttributeChanges'](_0x51264c){if(this['_recordAttributeSuggestions'])return!0x1;const _0xad00ef=this['editor'],_0x13b49c=_0xad00ef['model']['document']['differ']['getChanges']();if(0x0==_0x13b49c['length'])return!0x1;const _0xee7be8=[],_0x21cb2a=_0x13b49c['filter'](_0x11ab4d=>'attribute'==_0x11ab4d['type']),_0x27d6c6=_0x13b49c['filter'](_0x955653=>'insert'==_0x955653['type']&&'$text'!=_0x955653['name']),_0x30eeae=_0x13b49c['filter'](_0x3a9567=>'remove'==_0x3a9567['type']&&'$text'!=_0x3a9567['name']);for(const _0x573466 of _0x21cb2a)_0xee7be8['push']({'key':_0x573466['attributeKey'],'newValue':_0x573466['attributeNewValue'],'oldValue':_0x573466['attributeOldValue'],'range':Ot(_0x573466['range'],_0xad00ef['model'])});for(const _0x511703 of _0x27d6c6){const _0x7ced9e=_0x30eeae['find'](_0x32c04a=>_0x32c04a['position']['isEqual'](_0x511703['position']));_0x7ced9e&&_0xee7be8['push']({'key':m,'newValue':_0x511703['name'],'oldValue':_0x7ced9e['name'],'range':_0xad00ef['model']['createRangeOn'](_0x511703['position']['nodeAfter'])});}return 0x0!=_0xee7be8['length']&&this['_reduceExistingSuggestions'](_0x51264c,_0xee7be8);}['_processAttributeSuggestions'](_0x5985cf){let _0x41b52f=!0x1;const _0x11f5e9=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x200a4b=>_0x200a4b['data']['newRange']&&_0x200a4b['name']['startsWith']('suggestion:attribute:'));for(const _0x388f5a of _0x11f5e9){const {subType:_0x129824,id:_0x492a04}=this['_splitMarkerName'](_0x388f5a['name']),_0x5106a3=_0x129824['split']('|')[0x0];for(const _0x5ee161 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5ee161['id']!=_0x492a04&&'attribute'==_0x5ee161['type']&&_0x5ee161['data']&&_0x5ee161['data']['key']==_0x5106a3&&_0x5ee161['getFirstRange']()['isIntersecting'](_0x388f5a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5ee161,_0x388f5a['data']['newRange'],_0x5985cf),_0x41b52f=!0x0);}return _0x41b52f;}['_recordAttributeChanges'](_0x331a85){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x331a85();}['_isRegisteredAttribute'](_0x6d92b2){const _0x5ab6e8=this['_isBlockAttribute'](_0x6d92b2),_0x2e2bbb=this['_inlineAttributeKeys']['has'](_0x6d92b2);return _0x5ab6e8||_0x2e2bbb;}['_reduceExistingSuggestions'](_0x31a683,_0x2ba4cf){if(0x0==_0x2ba4cf['length'])return!0x1;let _0x54cfdd=!0x1;for(const _0x4554a0 of _0x2ba4cf){const _0x392413=this['_findSuggestions'](_0x4554a0['range'],'attribute')['filter'](_0x55fa96=>!_0x55fa96['meta']['isNextTo'])['map'](_0x178af0=>_0x178af0['suggestion']),_0xda8b00=_0x37c233({'newValue':_0x4554a0['newValue']});_0x392413['filter'](_0x1c2fdf=>{const [_0x31cfd6,_0x5d3ec7]=_0x1c2fdf['subType']['split']('|');return _0x31cfd6==_0x4554a0['key']&&_0x5d3ec7!=_0xda8b00;})['forEach'](_0x5232a5=>{this['_reduceSuggestionAttributeRange'](_0x5232a5,_0x4554a0['range'],_0x31a683),_0x54cfdd=!0x0;});}return _0x54cfdd;}['_reduceSuggestionAttributeRange'](_0x4cce7e,_0x17ea5a,_0x58f017){const _0x18c7ea=_0x4cce7e['getFirstRange']()['getDifference'](_0x17ea5a);0x0!==_0x18c7ea['length']?0x1!==_0x18c7ea['length']?this['_breakSuggestionMarker'](_0x4cce7e,_0x17ea5a['start'],_0x17ea5a['end']):this['_setSuggestionRange'](_0x4cce7e,_0x18c7ea[0x0]):_0x58f017['removeMarker'](_0x4cce7e['getFirstMarker']());}constructor(_0xc8d2b2){function _0xadd9ef(_0x2c9402){return _0x2c9402['map'](_0x31f30c=>String['fromCharCode'](_0x31f30c))['join']('');}super(_0xc8d2b2),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x370e27,_0x171dee,_0x366070,_0x26a58b)=>{this['_model']['change'](()=>{for(const _0x5dbcb2 of[..._0x26a58b,..._0x366070])this['_model']['markers']['has'](_0x5dbcb2)&&_0xc8d2b2['editing']['reconvertMarker'](_0x5dbcb2);});}),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']=_0xc8d2b2['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(),_0xc8d2b2['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xc8d2b2['config']['get']('trackChanges.trackFormatChanges'),_0xc8d2b2['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xc8d2b2['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0xc8d2b2,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0xadd9ef([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xadd9ef([0x34,0x30,0x34,0x38,0x31,0x30,0x30,0x32]);}}class xt{['buildSuggestion'](_0x219d0c,_0x30905f,_0x259f59,_0x2136aa,_0x5c1c25,_0x37db26){return new u(this['_model'],{'type':_0x219d0c,'subType':_0x30905f,'id':_0x259f59,'author':_0x2136aa,'creator':_0x2136aa,'attributes':_0x5c1c25,'onAttributesChange':_0x37db26,'onAccept':(..._0x3de1ce)=>this['getSuggestionCallback'](_0x219d0c,_0x30905f,'accept')(..._0x3de1ce),'onDiscard':(..._0x2ea97c)=>this['getSuggestionCallback'](_0x219d0c,_0x30905f,'discard')(..._0x2ea97c)});}['registerCustomCallback'](_0x402e49,_0x2b0ab9,_0x2dfb68,_0x4141d0){const _0x5ad1ef=_0x402e49+':'+_0x2b0ab9+':'+_0x2dfb68;this['_customCallbacks']['set'](_0x5ad1ef,_0x4141d0);}['getSuggestionCallback'](_0x21c588,_0x41bb33,_0x2ad785){const _0x1a0742=_0x21c588+':'+_0x41bb33+':'+_0x2ad785;return this['_customCallbacks']['get'](_0x1a0742)||this['_defaultCallbacks']['get'](_0x21c588+':'+_0x2ad785);}['_registerDefaultCallbacks'](){const _0x5cf3bd=()=>!0x1,_0x1ca2eb=_0x505678=>{_0x505678['sort']((_0x2c3eac,_0x522d7d)=>_0x2c3eac['start']['isBefore'](_0x522d7d['start'])?0x1:-0x1),this['_model']['change'](_0x56f53b=>{for(const _0x39b230 of _0x505678){let _0x3ce097;_0x3ce097=_0x39b230['end']['isAtEnd']&&_0x39b230['end']['parent']==_0x39b230['start']['nodeAfter']?_0x56f53b['createSelection'](_0x39b230['start']['nodeAfter'],'on'):_0x56f53b['createSelection'](_0x39b230),this['_model']['deleteContent'](_0x3ce097,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4cda36=(_0x3a10ae,_0x538b9b)=>{_0x538b9b&&this['_model']['change'](_0x3a2c1b=>{const {commandName:_0x165fec,commandParams:_0x57468c=[]}=_0x538b9b,_0xa3491=_0x3a10ae['map'](_0xe12609=>(Tt(_0xe12609)&&(_0xe12609=this['_model']['createRange'](_0xe12609['end'])),_0xe12609))['filter'](_0x432db7=>'$graveyard'!==_0x432db7['root']['rootName']);if(_0xa3491['length']<0x1)return;const _0xe00177=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x500f8f=>_0x43239f['fromRange'](_0x500f8f));_0x3a2c1b['setSelection'](_0xa3491);for(const _0x1904c2 of this['_editor']['commands']['commands']())_0x1904c2['refresh']();_0x57468c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x165fec,..._0x57468c);const _0x2946f0=_0xe00177['filter'](_0x41c0aa=>'$graveyard'!=_0x41c0aa['root']['rootName']);_0x2946f0['length']>0x0&&_0x3a2c1b['setSelection'](_0x2946f0);for(const _0x1e84d4 of _0xe00177)_0x1e84d4['detach']();});},_0x1a5c0a=(_0x179812,_0x3d4546)=>0x1==_0x179812['length']&&0x1==_0x3d4546['length']&&_0x179812[0x0]['end']['isEqual'](_0x3d4546[0x0]['start']),_0x9031e7=(_0x34beef,_0x56e00d,_0x4e4793,_0x235b50)=>Gt(_0x34beef,_0x56e00d,_0x4e4793,_0x235b50,this['_model'])?[_0x34beef,_0x56e00d]:Gt(_0x56e00d,_0x34beef,_0x235b50,_0x4e4793,this['_model'])?[_0x56e00d,_0x34beef]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5cf3bd),this['_defaultCallbacks']['set']('insertion:discard',_0x1ca2eb),this['_defaultCallbacks']['set']('insertion:join',_0x1a5c0a),this['_defaultCallbacks']['set']('insertion:chain',_0x9031e7),this['_defaultCallbacks']['set']('deletion:accept',_0x1ca2eb),this['_defaultCallbacks']['set']('deletion:discard',_0x5cf3bd),this['_defaultCallbacks']['set']('deletion:join',_0x1a5c0a),this['_defaultCallbacks']['set']('deletion:chain',_0x9031e7),this['_defaultCallbacks']['set']('formatInline:accept',_0x4cda36),this['_defaultCallbacks']['set']('formatInline:discard',_0x5cf3bd),this['_defaultCallbacks']['set']('formatInline:join',_0x1a5c0a),this['_defaultCallbacks']['set']('formatInline:chain',_0x5cf3bd),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4cda36),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5cf3bd),this['_defaultCallbacks']['set']('formatBlock:join',_0x1a5c0a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5cf3bd),this['_defaultCallbacks']['set']('attribute:accept',_0x5cf3bd),this['_defaultCallbacks']['set']('attribute:discard',(_0x22b07f,_0xf03854)=>{if(!_0xf03854)return;const _0x4a7236=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xd4b3ed=>{if(_0xf03854['key']==m)for(const _0x5c8350 of _0x22b07f){const _0x45f849=_0x5c8350['start']['nodeAfter'],_0x377721=_0xf03854['oldValue'];_0xd4b3ed['rename'](_0x45f849,_0x377721);}else{if(_0x4a7236['_isBlockAttribute'](_0xf03854['key'])){for(const _0x500426 of _0x22b07f)void 0x0!==_0xf03854['oldValue']?_0xd4b3ed['setAttribute'](_0xf03854['key'],_0xf03854['oldValue'],_0x500426['start']['nodeAfter']):_0xd4b3ed['removeAttribute'](_0xf03854['key'],_0x500426['start']['nodeAfter']);}else{for(const _0xfd69d6 of _0x22b07f)_0xf03854['oldValue']?_0xd4b3ed['setAttribute'](_0xf03854['key'],_0xf03854['oldValue'],_0xfd69d6):_0xd4b3ed['removeAttribute'](_0xf03854['key'],_0xfd69d6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1a5c0a);}constructor(_0x328864){this['_editor']=_0x328864,this['_model']=_0x328864['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x1e1144,_0x185aa1,_0x191765){for(const _0x49f45d of _0x185aa1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x49f45d['root']==_0x49f45d)return!0x1;if(!_0x191765['containsItem'](_0x49f45d))return!0x1;if(_0x1e1144['isObject'](_0x49f45d)||_0x1e1144['isLimit'](_0x49f45d))return!0x0;}return!0x1;}function Tt(_0x5f3522){return _0x5f3522['end']['parent']==_0x5f3522['start']['nodeAfter']&&_0x5f3522['end']['isAtStart'];}function Et(_0x2eca79,_0x4e5a98,_0x1096b6,_0x31fa7a){const _0x3c11eb=_0x24eb0d=>!_0x24eb0d['item']['is']('$textProxy')&&!_0x31fa7a['isObject'](_0x24eb0d['item']),_0x1edd86=_0x2eca79['start']['getLastMatchingPosition'](_0x3c11eb),_0x3f8284=_0x2eca79['end']['getLastMatchingPosition'](_0x3c11eb,{'direction':'backward'});return(!_0x2eca79['start']['isEqual'](_0x1edd86)||!_0x2eca79['end']['isEqual'](_0x3f8284))&&(_0x1edd86['isBefore'](_0x3f8284)?_0x1096b6['updateMarker'](_0x4e5a98,{'range':_0x1096b6['createRange'](_0x1edd86,_0x3f8284)}):_0x1096b6['removeMarker'](_0x4e5a98),!0x0);}function Vt(_0x9f3c7e){return _0x37c233(_0x9f3c7e);}function Ut(_0x4ce002){const _0x4c63d4=_0x4ce002['start']['nodeAfter'];return _0x4c63d4&&_0x4c63d4['is']('element');}function Ot(_0x4cd3b4,_0xbfd573){return null==_0x4cd3b4['end']['nodeBefore']&&_0x4cd3b4['end']['parent']==_0x4cd3b4['start']['nodeAfter']?Ft(_0x4cd3b4['start']['nodeAfter'],_0xbfd573):_0x4cd3b4;}function Ft(_0x5cef1b,_0x54739a){const _0x51f8d3=_0x54739a['schema']['isObject'](_0x5cef1b)||_0x54739a['schema']['isSelectable'](_0x5cef1b);return _0x54739a['createRange'](_0x54739a['createPositionAt'](_0x5cef1b,'before'),_0x51f8d3?_0x54739a['createPositionAfter'](_0x5cef1b):_0x54739a['createPositionAt'](_0x5cef1b,'end'));}function Gt(_0x3bcf23,_0x541904,_0x3d6def,_0x5329da,_0x4f866a){if(!Pt(_0x3bcf23,_0x541904))return!0x1;if(_0x3d6def['end']['isEqual'](_0x5329da['start']))return!0x0;if(_0x3bcf23['type']!=_0x541904['type'])return!0x1;if(!_0x3d6def['end']['isTouching'](_0x5329da['start']))return!0x1;const _0x5c45a6=_0x4f866a['createRange'](_0x3d6def['end'],_0x5329da['start'])['getWalker']();for(const _0x42b515 of _0x5c45a6)if(['elementStart','elementEnd']['includes'](_0x42b515['type'])&&_0x4f866a['schema']['isLimit'](_0x42b515['item']))return!0x1;return!0x0;}function Pt(_0x1b9171,_0x3b985f,_0x2a92da=[]){return!(!_0x1b9171['_isDataLoaded']||!_0x3b985f['_isDataLoaded'])&&_0xa08454(Bt(_0x1b9171['attributes'],_0x2a92da),Bt(_0x3b985f['attributes'],_0x2a92da));}function Lt(_0x3a0a18,_0x489b0c){const _0x45fc6f=Ht(_0x3a0a18['attributes']),_0x44f586=Ht(_0x489b0c);if(!_0x3a0a18['_isDataLoaded'])return!0x1;for(const _0x3382f7 of Object['keys'](_0x44f586))if(!_0xa08454(_0x45fc6f[_0x3382f7],_0x44f586[_0x3382f7]))return!0x1;return!0x0;}function Ht(_0x4cdf2c){const _0x2b23e8=Object['assign']({},_0x4cdf2c);return delete _0x2b23e8['skipNestingCheck'],delete _0x2b23e8['tablePasteChainId'],_0x2b23e8;}class oe extends _0x229435(){['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 _0x1c724f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1c724f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x4c0843,_0x4903fd,_0x5d3fae,_0x2f6265){super(),this['model']=_0x4903fd,this['view']=_0x5d3fae,this['commentThreadController']=_0x2f6265,this['_editor']=_0x4c0843,this['_acceptCommand']=_0x4c0843['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4c0843['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3a6051,_0xbcfab9)=>_0x3a6051||_0xbcfab9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xcddff6=>_0xcddff6&&this['_editor']['model']['canEditAt'](_0x4903fd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3c887d=>_0x3c887d&&this['_editor']['model']['canEditAt'](_0x4903fd['getRanges']())),this['_pendingAction']=null,_0x5d3fae['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5d3fae,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5d3fae,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5d3fae,'change:isDirty',()=>{_0x5d3fae['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x4bb07a{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5069cb}=this['_config'];this['commentsListView']=new _0x5069cb(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',_0x20cdcb=>_0x20cdcb+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x29b9a1,_0x5cb996)=>_0x29b9a1||!!_0x5cb996);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2c8f76}=this['_config'],_0x801f0c=new _0x2c8f76(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3fc3c1=_0x801f0c['commentInputView'];return _0x801f0c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3fc3c1,'value',(_0x227ebd,_0x18eca1,_0x5ca685)=>!!_0x5ca685||_0x227ebd&&!_0x18eca1),_0x3fc3c1['on']('submit',(_0x5d8cc7,_0x10cdab)=>{this['fire']('addComment',_0x10cdab),_0x3fc3c1['editor']['setData']('');}),_0x3fc3c1['on']('cancel',()=>this['focus']()),_0x3fc3c1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x801f0c;}constructor(_0x4c847c,_0x1579e7,_0x20d4b6,_0x18e55a){super(_0x4c847c),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x1579e7['authoredAt']),this['bind']('authoredAt')['to'](_0x1579e7),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x1579e7,this['_localUser']=_0x20d4b6,this['_config']=_0x18e55a,_0x18e55a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x5cb772=this['bindTemplate'],_0x4ad4dc=[{'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':_0x5cb772['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5cb772['to']('authoredAt',_0x5473e6=>this['_config']['formatDateTime'](_0x5473e6))}]}]},{'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']&&_0x4ad4dc['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x16c56d={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x5cb772['if']('isActive','ck-suggestion-wrapper--active'),_0x5cb772['to']('type',_0x350f9e=>'ck-suggestion-'+_0x350f9e),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':_0x4ad4dc}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x16c56d['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)),_0x16c56d;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x1169b0,_0x571730,_0xf1b04d)=>{this['_descriptionElement']['innerHTML']=_0xf1b04d;});}['_createButton'](_0x5948dc,_0x25d26a,_0x449fac,_0x1f6071,_0x377aae){const _0x58c310=new _0x1c8755(this['locale']);return _0x58c310['set']({'label':_0x5948dc,'icon':_0x25d26a,'tooltip':!0x0,'tooltipPosition':_0x377aae}),_0x58c310['extendTemplate']({'attributes':{'class':_0x449fac}}),_0x58c310['on']('execute',()=>{this['fire'](_0x1f6071,this['_model']['id']);}),_0x58c310;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}constructor(_0x7f1be5,_0x24d66d,_0x302c6d,_0x48197a){super(_0x7f1be5,_0x24d66d,_0x302c6d,_0x48197a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4621f6=>_0x4621f6&&_0x4621f6[0x0]?_0x4621f6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xfa9f7,_0x54c806)=>{let _0x520cc8='';for(const _0x1ae310 of _0xfa9f7)_0x520cc8+='<p>'+ds(_0x1ae310['content'],_0x1ae310['color'])+'</p>';return _0x54c806?_0x520cc8:_0x2519d9(_0x520cc8,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x7f1be5,'Accept\x20suggestion'),_0x18221a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x7f1be5,'Discard\x20suggestion'),_0x18221a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x26a901(_0x7f1be5,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x1465a4,_0x1bf9a3){let _0x501da5='';return _0x501da5+=_0x1465a4['split']('*')['map']((_0xc77ae,_0x2bedf6)=>_0x2bedf6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xc77ae)+'</span>':us(_0xc77ae))['join'](''),_0x1bf9a3&&(_0x501da5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1bf9a3['value']+'\x22\x20title=\x22'+_0x1bf9a3['title']+'\x22></span>'),_0x501da5;}function us(_0x37d031){const _0x595900=document['createElement']('span');return _0x595900['innerText']=_0x37d031,_0x595900['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 _0x1e79ec{static get['requires'](){return[p,_0x15e88b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x4ab6bd,_0x21f918){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x36db88,_0xd24bcf]of this['_handleControllerBuffer']){const _0x216212=this['_suggestionToController']['has'](_0x36db88);_0x216212||_0xd24bcf?_0x216212&&_0xd24bcf&&this['_destroyController'](_0x36db88):this['_initializeController'](_0x36db88);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4ab6bd,_0x21f918);}['init'](){const _0x3d67af=this['editor'],_0x13b70f=_0x3d67af['plugins']['get']('TrackChangesEditing'),_0x5db6ca=_0x3d67af['plugins']['get']('Annotations'),_0x24cd5f=_0x3d67af['plugins']['get']('EditorAnnotations'),_0x27be98=_0x3d67af['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x24cd5f['addSourceCollector'](()=>{const _0x48f821=[];for(const [_0x3d6e3e,_0x1b7472]of Array['from'](this['_suggestionToController'])){const _0x56edc3=_0x3d6e3e['getAllAdjacentSuggestions'](),_0x1cbcf6=[];for(const _0x65d0db of _0x56edc3){if(!_0x65d0db['isInContent'])continue;if(_0x65d0db['isMultiRange']){_0x1cbcf6['push'](..._0x65d0db['getRanges']());continue;}const _0x4fe8b3=_0x65d0db['getFirstRange']();if(_0x1cbcf6['length']>0x0){const _0x5db09d=_0x1cbcf6[0x0]['getJoined'](_0x4fe8b3);if(_0x5db09d){_0x1cbcf6[0x0]=_0x5db09d;continue;}}_0x1cbcf6['push'](_0x4fe8b3);}_0x48f821['push']([_0x1b7472['view'],_0x1cbcf6]);}return _0x48f821;}),this['listenTo'](_0x13b70f,'suggestionLoaded',(_0x1d736b,_0x2d3f5a)=>{this['listenTo'](_0x2d3f5a,'change:previous',(_0x5e7f4a,_0x46450e,_0x5da201,_0x45c297)=>{_0x2d3f5a['isInContent']&&(null==_0x5da201?(this['_updateController'](_0x45c297['head']),this['_handleSuggestionControllerDelayed'](_0x2d3f5a,!0x1)):(this['_updateController'](_0x5da201['head']),null==_0x45c297&&this['_handleSuggestionControllerDelayed'](_0x2d3f5a,!0x0)));}),null!==_0x2d3f5a['previous']?this['_updateController'](_0x2d3f5a['head']):this['_handleSuggestionControllerDelayed'](_0x2d3f5a,!0x1);}),this['listenTo'](_0x13b70f,'suggestionUnloaded',(_0x2bd163,_0x22360a,_0x3b8e4f)=>{this['stopListening'](_0x22360a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x22360a),this['_suggestionToController']['has'](_0x22360a)&&this['_destroyController'](_0x22360a),_0x3b8e4f&&this['_updateController'](_0x3b8e4f['head']);}),this['listenTo'](_0x13b70f,'suggestionChanged',(_0x1b07ae,_0x12dd7f)=>{this['_updateController'](_0x12dd7f);}),this['listenTo'](_0x5db6ca,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x27be98,'addComment',(_0xf7e758,{threadId:_0x31d67d,isFromAdapter:_0x7923b6})=>{if(_0x7923b6||!_0x13b70f['hasSuggestion'](_0x31d67d))return;const _0x4f05d6=_0x13b70f['getSuggestion'](_0x31d67d);this['_suggestionToController']['get'](_0x4f05d6)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4ee06d=this['editor']['plugins']['get']('Annotations'),_0x506abf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x317b4b=Array['from'](_0x4ee06d['activeAnnotations'],_0xc42582=>_0xc42582['innerView'])['filter'](_0xd0669f=>this['_viewToController']['has'](_0xd0669f)),_0x58df3d=[];for(const _0x25dc37 of _0x317b4b){const _0xceffc0=this['_viewToController']['get'](_0x25dc37)['model']['getAllAdjacentSuggestions']();_0x58df3d['push'](..._0xceffc0['reduce']((_0x5a3f59,_0x3ca403)=>[..._0x5a3f59,..._0x3ca403['getMarkerNames']()],[]));}_0x506abf['activeMarkers']=_0x58df3d;}['_addUIComponentsToFactory'](){const _0x5973a3=this['editor'],_0x1bccbc=_0x5973a3['locale'],_0x28be1f=o(_0x1bccbc,'Track\x20changes'),_0x521e04=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x28be1f,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1bccbc,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1bccbc,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1bccbc,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1bccbc,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x4364c0 of _0x521e04)if(ae(_0x4364c0)){const _0x2c9025=_0x5973a3['commands']['get'](_0x4364c0['model']['commandName']);_0x4364c0['model']['bind']('isOn','isEnabled')['to'](_0x2c9025,'value','isEnabled');}_0x5973a3['ui']['componentFactory']['add']('trackChanges',_0x257ba0=>this['_createToolbarButton'](_0x257ba0,_0x521e04,_0x28be1f)),_0x5973a3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3afcfd=>this['_createMenuBarMenu'](_0x3afcfd,_0x521e04,_0x28be1f));}['_createToolbarButton'](_0x382577,_0x12a899,_0x463f23){const _0x2b52ea=zt(_0x382577,Zt),_0x145311=this['editor']['commands']['get']('trackChanges');_0x2b52ea['buttonView']['set']({'tooltip':_0x463f23,'label':_0x463f23,'icon':ie}),_0x2b52ea['buttonView']['bind']('isOn')['to'](_0x145311,'value'),_0x2b52ea['buttonView']['on']('execute',()=>{_0x145311['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x2b52ea,_0x12a899);const _0x1922c7=[];for(const _0x2e45be of _0x12a899)ae(_0x2e45be)&&_0x1922c7['push'](this['editor']['commands']['get'](_0x2e45be['model']['commandName']));const _0x17f735=_0x2b52ea['buttonView'];return _0x17f735['actionView']['unbind']('isEnabled'),_0x17f735['arrowView']['unbind']('isEnabled'),_0x17f735['actionView']['bind']('isEnabled')['to'](_0x145311,'isEnabled'),_0x17f735['arrowView']['bind']('isEnabled')['toMany'](_0x1922c7,'isEnabled',(..._0x2dfd8a)=>_0x2dfd8a['some'](_0x53b9d4=>_0x53b9d4)),_0x2b52ea['on']('execute',_0x443788=>{this['editor']['execute'](_0x443788['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2b52ea;}['_createMenuBarMenu'](_0x120433,_0x5e42a9,_0x72a533){const _0x342468=new Kt(_0x120433),_0x160e83=this['editor']['commands']['get']('trackChanges');_0x342468['buttonView']['set']({'label':_0x72a533,'icon':ie});const _0x52426f=new Qt(_0x120433);for(const _0x39015d of _0x5e42a9){if('separator'==_0x39015d['type']){_0x52426f['items']['add'](new Jt(_0x120433));continue;}const _0x3f12c6=new Xt(_0x120433,_0x342468),_0x1e9307=new Yt(_0x120433),_0x43ecef=_0x39015d['model'];_0x1e9307['bind'](...Object['keys'](_0x43ecef))['to'](_0x43ecef),_0x1e9307['delegate']('execute')['to'](_0x342468),_0x1e9307['on']('execute',()=>{this['editor']['execute'](_0x43ecef['commandName']),this['editor']['editing']['view']['focus']();}),_0x3f12c6['children']['add'](_0x1e9307),_0x52426f['items']['add'](_0x3f12c6);}return _0x342468['bind']('isEnabled')['to'](_0x160e83,'isEnabled'),_0x342468['panelView']['children']['add'](_0x52426f),_0x342468;}['_initializeController'](_0x3b5db8){const _0x19a30b=this['editor'],_0x32860c=_0x19a30b['config'],_0x5df97c=_0x19a30b['plugins']['get']('Annotations'),_0x387160=_0x19a30b['plugins']['get']('CommentsRepository'),_0xc0d632=_0x19a30b['plugins']['get']('EditorAnnotations'),_0x13a3d6=_0x19a30b['plugins']['get'](_0x15e88b)['me'],_0x15bebf=_0x32860c['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0xc9ca8b,CommentThreadInputView:_0x49bc17}=_0x19a30b['plugins']['get']('CommentsUI');let _0xad91d2,_0x3e28e1;this['_annotationViews']['has'](_0x3b5db8['id'])?(_0x3e28e1=this['_annotationViews']['get'](_0x3b5db8['id']),_0xad91d2=_0x3e28e1['mainView']):(_0xad91d2=new _0x15bebf(_0x19a30b['locale'],_0x3b5db8,_0x13a3d6,{'disableComments':this['_disableComments'],'editorConfig':_0x32860c['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x32860c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x32860c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x32860c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x42f9a7(_0x32860c['get']('locale')),'CommentView':_0x32860c['get']('comments')['CommentView'],'CommentsListView':_0xc9ca8b,'CommentThreadInputView':_0x49bc17}),_0xad91d2['acceptButton']['on']('execute',()=>{_0x19a30b['editing']['view']['focus']();}),_0xad91d2['discardButton']['on']('execute',()=>{_0x19a30b['editing']['view']['focus']();}),_0x3e28e1=_0x5df97c['createAnnotationView'](this['editor']['locale'],_0xad91d2),_0x3e28e1['bind']('isDirty')['to'](_0xad91d2,'isDirty'),_0x3e28e1['bind']('length')['to'](_0xad91d2),_0x3e28e1['bind']('type')['to'](_0xad91d2,'type',_0x4d925c=>'suggestion-'+_0x4d925c),this['_annotationViews']['set'](_0x3b5db8['id'],_0x3e28e1));const _0x5029d9=_0x387160['createCommentThreadController'](_0x3b5db8['commentThread'],_0xad91d2),_0x40dc5d=new oe(_0x19a30b,_0x3b5db8,_0xad91d2,_0x5029d9),_0x9ef1bf=_0x3b5db8['getAllAdjacentSuggestions']()['filter'](_0x30ed75=>_0x30ed75['isInContent']);_0xad91d2['descriptionParts']=_0x19a30b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x9ef1bf),this['_suggestionToController']['set'](_0x3b5db8,_0x40dc5d),this['_viewToController']['set'](_0xad91d2,_0x40dc5d);const _0xb261b3=_0x5df97c['createAnnotation']({'view':_0x3e28e1,'target':()=>{const _0x2fb8b0=[],_0xd5f2ac=_0x3b5db8['getAllAdjacentSuggestions']()['filter'](_0x2ba810=>_0x2ba810['isInContent']);for(const _0x41c796 of _0xd5f2ac)_0x2fb8b0['push'](..._0x41c796['getMarkers']());return _0x3fdb71(_0x19a30b['editing'],_0x2fb8b0);},'type':()=>'suggestion-'+_0x40dc5d['view']['type']});_0x387160['_bindAnnotationToEditors'](_0xad91d2,_0xb261b3),_0x5df97c['add'](_0xb261b3),_0xc0d632['registerAnnotation'](_0xb261b3);}['_destroyController'](_0x9ac16f){const _0x12e418=this['editor']['plugins']['get']('CommentsRepository'),_0xa0be68=this['editor']['plugins']['get']('Annotations'),_0x330e2b=this['_suggestionToController']['get'](_0x9ac16f),_0x50dd55=_0x330e2b['view'],_0x32458e=_0xa0be68['getByInnerView'](_0x50dd55);_0x12e418['_unbindEditors'](_0x50dd55),_0x32458e&&_0xa0be68['remove'](_0x32458e),this['_suggestionToController']['delete'](_0x9ac16f),this['_viewToController']['delete'](_0x50dd55),_0x330e2b['destroy']();}['_updateController'](_0x2e6bcd){if(!_0x2e6bcd['isInContent']||!this['_suggestionToController']['has'](_0x2e6bcd))return;const _0x1714e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e8783=this['_suggestionToController']['get'](_0x2e6bcd),_0x80f1f7=_0x2e6bcd['getAllAdjacentSuggestions']();_0x3e8783['view']['descriptionParts']=_0x1714e1['descriptionFactory']['getDescriptions'](_0x80f1f7);}['destroy'](){for(const _0x2d5ce5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2d5ce5);for(const _0x39fab9 of this['_annotationViews']['values']())_0x39fab9['mainView']['destroy']();super['destroy']();}constructor(_0x2615b5){super(_0x2615b5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x276d78=this['editor']['config'];_0x276d78['define']('trackChanges.SuggestionThreadView',ne),_0x276d78['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x276d78['get']('trackChanges.disableComments');}}function ae(_0x5708ed){return'model'in _0x5708ed;}class k extends _0x1e79ec{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4360e4){this['editor']['plugins']['get'](p)['adapter']=_0x4360e4;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1a0168){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1a0168);}['getSuggestions']({skipNotAttached:_0x2d87d7=!0x1,toJSON:_0x25da29=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2d87d7,'toJSON':_0x25da29});}['getSuggestion'](_0x1cb06e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1cb06e);}}const T=['Pagination'];class P extends _0x1e79ec{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3a22a1=this['editor'];if(_0x3a22a1['config']['define']('trackChangesData.editorCreator',_0x1b0063=>{const _0x1242e0=_0x3a22a1['model']['document']['getRootNames']()['reduce']((_0x2fdeac,_0x213155)=>(_0x2fdeac[_0x213155]='',_0x2fdeac),{});return _0x3a22a1['constructor']['create'](_0x1242e0,_0x1b0063);}),'function'!=typeof _0x3a22a1['config']['get']('trackChangesData')['editorCreator'])throw new _0x46c804('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x330e20){return N(this['editor'],!0x0,_0x330e20);}['getDataWithDiscardedSuggestions'](_0x5791f3){return N(this['editor'],!0x1,_0x5791f3);}}class D extends _0x1e79ec{static get['pluginName'](){return'TrackChangesDataGetter';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}constructor(_0x492e44){super(_0x492e44),this['result']='end';}}function v(_0xbfc681){return void 0x0!==_0xbfc681['getRootsAttributes'];}async function N(_0x5a2efc,_0x38bcaa,_0x689315){const _0x3d7f19=_0x207bf7(_0x5a2efc,T);_0x3d7f19['plugins']['push'](p,D),_0x3d7f19['rootsAttributes']=v(_0x5a2efc)?_0x5a2efc['getRootsAttributes']():void 0x0;const _0xc00cf5=document['createDocumentFragment'](),_0x305863=_0x5a2efc['config']['get']('trackChangesData')['editorCreator'],_0xbbe06f=await _0x305863(_0x3d7f19,()=>function(_0x1dad1e){const _0x554376=document['createElement']('div');return _0x1dad1e['appendChild'](_0x554376),_0x554376;}(_0xc00cf5));!function(_0x49e661,_0x570f87){const _0x32e5b2=_0x49e661['model']['document']['getRootNames']()['reduce']((_0x59f950,_0x405c7f)=>(_0x59f950[_0x405c7f]=_0x49e661['data']['get']({'rootName':_0x405c7f}),_0x59f950),{}),_0x271544=_0x49e661['plugins']['get']('Users')['users']['map'](_0x4b46ed=>({'id':_0x4b46ed['id'],'name':_0x4b46ed['name']})),_0x58e480=_0x49e661['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x174eb6=_0x49e661['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x141528=_0x570f87['plugins']['get']('Users'),_0x5e7050=_0x570f87['plugins']['get']('TrackChangesEditing'),_0x351afd=_0x570f87['plugins']['get']('CommentsRepository');for(const _0x576372 of _0x271544)_0x141528['getUser'](_0x576372['id'])||_0x141528['addUser'](_0x576372);_0x141528['me']||_0x141528['useAnonymousUser']();for(const _0x106e44 of _0x58e480)_0x5e7050['addSuggestionData'](_0x106e44);for(const _0x5656ca of _0x174eb6)_0x351afd['addCommentThread'](_0x5656ca);_0x570f87['data']['set'](_0x32e5b2);}(_0x5a2efc,_0xbbe06f),_0xbbe06f['execute'](_0x38bcaa?'acceptAllSuggestions':'discardAllSuggestions');const _0x26a165=v(_0xbbe06f)?_0xbbe06f['getFullData'](_0x689315):_0xbbe06f['data']['get'](_0x689315);return await _0xbbe06f['destroy'](),_0x26a165;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x2b5176,PendingActions as _0x1dfaf1,icons as _0x51c5d8}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x295e05,ObservableMixin as _0x206109,uid as _0x2218f2,insertToPriorityArray as _0x3b0726,priorities as _0x4604ea,logWarning as _0x264cd2,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x54d0ce,View as _0x4755dc,ButtonView as _0x3f99ee,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 _0x1cec01,hashObject as _0x42ae4e,surroundingMarkersDetector as _0x1f14f0,trimHtml as _0x3ccff8,UserView as _0x35fb78,getDateTimeFormatter as _0x26e90c,getAllMarkersDomElementsSorted as _0x409e87,sanitizeEditorConfig as _0x32acc9}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2be412,LiveRange as _0x1aac42,LivePosition as _0x5c0f7d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3ec565,toWidget as _0x531fee}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x47af11,set as _0x4c34a9,isEqual as _0x4d101c,unset as _0xd90a77,omit as Bt}from'lodash-es';import{Delete as _0x4f8527,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x257bd3,ShiftEnter as _0x10a8fc}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x4027db of this['editor']['commands']['commands']())_0x4027db['affectsData']&&!this['_enabledCommands']['has'](_0x4027db)&&_0x4027db['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1de994 of this['editor']['commands']['commands']())_0x1de994['affectsData']&&!this['_enabledCommands']['has'](_0x1de994)&&_0x1de994['clearForceDisabled']('TrackChangesCommand');}constructor(_0x12ffad,_0x14afe5){super(_0x12ffad),this['_enabledCommands']=_0x14afe5,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x498c80){const _0x26011f=this['_suggestions']['get'](_0x498c80);if(!_0x26011f)throw new _0x295e05('track-changes-accept-suggestion-not-found',this);const _0x477ad2=_0x26011f['getRanges']();this['editor']['model']['canEditAt'](_0x477ad2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x26011f);}constructor(_0x61d607,_0x4ec68f){super(_0x61d607),this['_suggestions']=_0x4ec68f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x383889){const _0x6c2266=this['_suggestions']['get'](_0x383889);if(!_0x6c2266)throw new _0x295e05('track-changes-discard-suggestion-not-found',this);const _0x48f9bc=_0x6c2266['getRanges']();this['editor']['model']['canEditAt'](_0x48f9bc)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x6c2266);}constructor(_0xb3bf57,_0x4206dc){super(_0xb3bf57),this['_suggestions']=_0x4206dc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0xbd6750){return _0xbd6750['sort']((_0x32ba3c,_0x40cdc0)=>'deletion'==_0x32ba3c['type']&&'deletion'!=_0x40cdc0['type']?-0x1:'deletion'!=_0x32ba3c['type']&&'deletion'==_0x40cdc0['type']?0x1:0x0);}function to(_0x36e7a3,_0x2a2d10){let _0x1e2c7b,_0x4f384b=0x0;const _0x49094e=[],_0x574133=_0x2a2d10['schema'];for(;_0x4f384b<_0x36e7a3['length'];){const _0x1a0ccb=_0x36e7a3[_0x4f384b],_0x1f3ce4=_0x36e7a3[_0x4f384b+0x1];_0x1e2c7b||(_0x1e2c7b=_0x2a2d10['createPositionBefore'](_0x1a0ccb)),co(_0x2a2d10,_0x1a0ccb,_0x1f3ce4)||(_0x49094e['push'](_0x2a2d10['createRange'](_0x1e2c7b,_0x574133['isObject'](_0x1a0ccb)?_0x2a2d10['createPositionAfter'](_0x1a0ccb):_0x2a2d10['createPositionAt'](_0x1a0ccb,'end'))),_0x1e2c7b=null),_0x4f384b++;}return _0x49094e;}function co(_0x1292d4,_0x5bad01,_0x79eb84){if(!_0x79eb84)return!0x1;const _0x3830dc=_0x1292d4['createPositionAfter'](_0x5bad01),_0x5c7d44=_0x1292d4['createPositionBefore'](_0x79eb84);return _0x3830dc['isTouching'](_0x5c7d44);}function rs(_0x29bf4c,_0x40bc08,_0x3d2a9c){for(;_0x3d2a9c['length'];){const _0x4259b3=_0x3d2a9c['splice'](0x0,0x64);_0x29bf4c['change'](()=>{for(const _0x10ea3d of _0x4259b3)_0x10ea3d['isInContent']&&_0x40bc08['execute'](_0x10ea3d['id']);});}}class x extends ts{['refresh'](){const _0x3c53aa=Array['from'](this['_suggestions']['values']())['some'](_0x456d85=>_0x456d85['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3c53aa;}['execute'](){const _0x11122b=ss(Array['from'](this['_suggestions']['values']()));for(const _0x46bfd9 of _0x11122b){const _0x13c902=_0x46bfd9['getRanges']();if(!this['editor']['model']['canEditAt'](_0x13c902))return;}rs(this['editor']['model'],this['_command'],_0x11122b);}constructor(_0x9f0cf4,_0x2c4f49,_0x3cec9c){super(_0x9f0cf4),this['_command']=_0x2c4f49,this['_suggestions']=_0x3cec9c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x2d0d00=this['editor']['model']['document']['selection'],_0x3cbdb0=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x17a1a7,_0x17bf7f){const _0x4efd57=Array['from'](_0x17a1a7['getRanges']()),_0x259745=new Set();for(const _0x26daac of _0x17bf7f)if(_0x26daac['isInContent']){for(const _0xedcc7f of _0x4efd57)for(const _0xc36af3 of _0x26daac['getRanges']())(_0xedcc7f['isIntersecting'](_0xc36af3)||_0x17a1a7['isCollapsed']&&!_0x26daac['isMultiRange']&&_0x26daac['next']&&_0xc36af3['end']['isTouching'](_0xedcc7f['start']))&&_0x259745['add'](_0x26daac);}return _0x259745;}(_0x2d0d00,_0x3cbdb0),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x52c51d=ss(Array['from'](this['_selectedSuggestions']));for(const _0x3740a7 of _0x52c51d){const _0x54d653=_0x3740a7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x54d653))return;}rs(this['editor']['model'],this['_command'],_0x52c51d);}constructor(_0x121128,_0x53a3f1,_0x3f696f){super(_0x121128),this['_command']=_0x53a3f1,this['_suggestions']=_0x3f696f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x206109(){get['head'](){let _0x34f319=this;for(;_0x34f319['previous'];)_0x34f319=_0x34f319['previous'];return _0x34f319;}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'](_0x87ab45){this['_markerNames']['add'](_0x87ab45);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4d7205=>this['_model']['markers']['get'](_0x4d7205))['filter'](_0x50b827=>_0x50b827);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x313439=>{for(const _0x3eb237 of this['getMarkers']())_0x313439['removeMarker'](_0x3eb237);}),this['_markerNames']['clear']();}['removeMarker'](_0x2238a3){this['_model']['change'](_0x2fbf44=>{_0x2fbf44['removeMarker'](_0x2238a3);}),this['_markerNames']['delete'](_0x2238a3);}['addRange'](_0x385134){const _0x81a2d5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x81a2d5),this['_model']['change'](_0x430bc7=>{_0x430bc7['addMarker'](_0x81a2d5,{'range':_0x385134,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x300bc8){for(const _0x2b62e1 of this['getRanges']())if(_0x2b62e1['isIntersecting'](_0x300bc8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x42e968=>_0x42e968['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2c619,_0x48cdbc)=>[..._0x2c619,..._0x48cdbc['getItems']()],[]);}['getFirstRange'](){var _0x562c74;return(null===(_0x562c74=this['getFirstMarker']())||void 0x0===_0x562c74?void 0x0:_0x562c74['getRange']())||null;}['getContainedElement'](){const _0x5bb2d9=this['getRanges']();if(0x1!=_0x5bb2d9['length'])return null;const _0x55e1e7=_0x5bb2d9[0x0],_0x4bb164=_0x55e1e7['start']['nodeAfter'],_0x37cce1=_0x55e1e7['end']['nodeBefore'];return _0x4bb164 instanceof _0x2be412?_0x4bb164!=_0x37cce1?null:_0x4bb164: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 _0x3c3b8f=[];let _0x5abad4=this['head'];for(;_0x5abad4;)_0x3c3b8f['push'](_0x5abad4),_0x5abad4=_0x5abad4['next'];return _0x3c3b8f;}['setAttribute'](_0x7fb3ff,_0xb2667c){const _0x423fed=_0x47af11(this['attributes']);_0x4c34a9(_0x423fed,_0x7fb3ff,_0xb2667c),_0x4d101c(_0x423fed,this['attributes'])||(this['attributes']=_0x423fed,this['_onAttributesChange'](_0x423fed));}['removeAttribute'](_0x6e1202){const _0xa5117=_0x47af11(this['attributes']);_0xd90a77(_0xa5117,_0x6e1202),_0x4d101c(_0xa5117,this['attributes'])||(this['attributes']=_0xa5117,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 _0x2218f2()['substr'](0x1,0x5);}constructor(_0x3a94ed,_0x2d8aab){super(),this['_isDataLoaded']=!0x1,this['id']=_0x2d8aab['id'],this['type']=_0x2d8aab['type'],this['subType']=_0x2d8aab['subType']||null,this['author']=_0x2d8aab['author'],this['creator']=_0x2d8aab['creator']||_0x2d8aab['author'],this['isExternal']=Boolean(_0x2d8aab['attributes']&&_0x2d8aab['attributes']['@external']),this['data']=null,this['_model']=_0x3a94ed,this['_onAccept']=_0x2d8aab['onAccept'],this['_onDiscard']=_0x2d8aab['onDiscard'],this['_onAttributesChange']=_0x2d8aab['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2d8aab['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0x219c9e,_0x22b4e3,_0x3bd136){const t=_0x219c9e['t'];switch(_0x22b4e3){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',_0x3bd136);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3bd136);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3bd136);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3bd136);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3bd136);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',_0x3bd136);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3bd136);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',_0x3bd136);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3bd136);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3bd136);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3bd136);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3bd136);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3bd136);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3bd136);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3bd136);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3bd136);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3bd136);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3bd136);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3bd136);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3bd136);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3bd136);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3bd136);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3bd136);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'},_0x3bd136);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3bd136);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3bd136);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3bd136);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3bd136);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3bd136);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'},_0x3bd136);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3bd136);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3bd136);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3bd136);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3bd136);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'},_0x3bd136);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3bd136);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'},_0x3bd136);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'},_0x3bd136);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3bd136);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'},_0x3bd136);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3bd136);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'},_0x3bd136);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3bd136);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3bd136);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'},_0x3bd136);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'},_0x3bd136);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 _0x22b4e3;}}class f{['getDescriptions'](_0x1c71ca){const _0x29fbdf=[],_0x1af15f=new Set(),_0x5163a1=new Set();for(let _0x153eea=0x0;_0x153eea<_0x1c71ca['length'];_0x153eea++){const _0x3c81c7=_0x1c71ca[_0x153eea];if(!_0x3c81c7['isInContent'])continue;const _0xb383bc=this['_handleCustomCallbackDescription'](_0x3c81c7);if(_0xb383bc){if(null!=_0x3c81c7['subType']){if(_0x1af15f['has'](_0x3c81c7['subType']))continue;_0x1af15f['add'](_0x3c81c7['subType']);}_0x29fbdf['push'](_0xb383bc);}else{if('attribute'!=_0x3c81c7['type'])'insertion'!=_0x3c81c7['type']&&'deletion'!=_0x3c81c7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x29fbdf,_0x3c81c7,_0x1c71ca[_0x153eea+0x1]);else{const _0x31011a=_0x3c81c7['data']['key'];if(_0x5163a1['has'](_0x31011a))continue;_0x5163a1['add'](_0x3c81c7['data']['key']),_0x31011a==m?this['_handleRenameSuggestionDescription'](_0x29fbdf,_0x3c81c7):this['_handleAttributeSuggestionDescription'](_0x29fbdf,_0x3c81c7);}}}return this['_resolveDescriptionItems'](_0x29fbdf);}['registerDescriptionCallback'](_0x54b432){this['_customCallbacks']['push'](_0x54b432);}['registerElementLabel'](_0x121eb1,_0x15e32f,_0x48f4b2=_0x4604ea['normal']){'function'==typeof _0x121eb1?_0x3b0726(this['_itemLabelsCallbacks'],{'matchingCallback':_0x121eb1,'label':_0x15e32f,'priority':_0x48f4b2}):this['_itemLabels']['set'](_0x121eb1,_0x15e32f);}['registerAttributeLabel'](_0x5382ee,_0x617807){this['_attributeLabels']['set'](_0x5382ee,_0x617807);}['getItemLabel'](_0x168278,_0x2be326=0x1){let _0x4693f7;for(const _0xe04323 of this['_itemLabelsCallbacks'])if(_0xe04323['matchingCallback'](_0x168278)){_0x4693f7=_0xe04323['label'];break;}return _0x4693f7||(_0x4693f7=this['_itemLabels']['get'](_0x168278['name'])),_0x4693f7?_0x4693f7(_0x2be326):0x1!==_0x2be326?_0x2be326+'\x20'+_0x168278['name']+'s':''+_0x168278['name'];}['_addDescriptionItems'](_0x1576e2,_0x18456e){const _0x57e30b=_0x18456e['getFirstRange']()['getWalker'](),_0x1c01d='insertion'==_0x18456e['type']?'add':'remove';for(const _0x3c2e6a of _0x57e30b){const _0x13d4c1=_0x3c2e6a['item'],_0x454804=_0x1576e2[_0x1576e2['length']-0x1];if(_0x13d4c1['is']('$textProxy'))_0x454804&&_0x454804['type']['indexOf']('Container')>-0x1&&_0x1576e2['pop'](),_0x454804&&'text'==_0x454804['type']?_0x454804[_0x1c01d]+=_0x13d4c1['data']:_0x1576e2['push']({'type':'text','add':'add'==_0x1c01d?_0x13d4c1['data']:'','remove':'remove'==_0x1c01d?_0x13d4c1['data']:''});else{if(this['_schema']['isObject'](_0x13d4c1)){const _0x1fb073=_0x13d4c1;if(_0x454804&&_0x454804['type']['indexOf']('Container')>-0x1&&_0x1576e2['pop'](),'elementEnd'==_0x3c2e6a['type'])continue;_0x454804&&_0x454804['type']==_0x1c01d+'Object'&&_0x454804['element']['name']==_0x1fb073['name']?_0x454804['quantity']++:_0x1576e2['push']({'type':_0x1c01d+'Object','element':_0x1fb073,'quantity':0x1}),_0x57e30b['skip'](_0x413c1e=>!('elementEnd'==_0x413c1e['type']&&_0x413c1e['item']==_0x13d4c1));}else{if(this['_schema']['checkChild'](_0x13d4c1,'$text')||_0x13d4c1['is']('element','softBreak')){const _0x5a9d19=_0x13d4c1;if('add'==_0x1c01d&&'elementStart'==_0x3c2e6a['type']||'remove'==_0x1c01d&&'elementEnd'==_0x3c2e6a['type'])continue;if(_0x454804&&-0x1==_0x454804['type']['indexOf']('Container')){'text'==_0x454804['type']&&(_0x454804[_0x1c01d]+='\x0a');continue;}let _0x4fd1fe;if(_0x4fd1fe='add'==_0x1c01d?_0x5a9d19['nextSibling']&&!this['_schema']['isObject'](_0x5a9d19['nextSibling'])?_0x5a9d19['nextSibling']:null:_0x5a9d19['previousSibling']&&!this['_schema']['isObject'](_0x5a9d19['previousSibling'])?_0x5a9d19['previousSibling']:null,_0x5a9d19['isEmpty']||_0x4fd1fe&&_0x4fd1fe['isEmpty']){const _0x4acbb5=_0x4fd1fe&&_0x4fd1fe['isEmpty']?_0x4fd1fe:_0x5a9d19;_0x454804&&_0x454804['type']==_0x1c01d+'EmptyContainer'&&_0x454804['element']['name']==_0x4acbb5['name']?_0x454804['quantity']++:_0x1576e2['push']({'type':_0x1c01d+'EmptyContainer','element':_0x4acbb5,'quantity':0x1});}else _0x1576e2['push']({'type':_0x1c01d+'Container','element':_0x5a9d19});}}}}}['_resolveDescriptionItems'](_0x2db46c){const _0x48512f=this['_locale'],_0x1109ab=[],_0x1cd2b2=[],_0x51f568=[];for(const _0x3ffacd of _0x2db46c)switch(_0x3ffacd['type']){case'text':if(_0x3ffacd['add']=_0x3ffacd['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3ffacd['remove']=_0x3ffacd['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3ffacd['add']&&''!=_0x3ffacd['remove']){_0x1109ab['push']({'type':'replace','content':o(_0x48512f,'REPLACE_TEXT',['\x22'+_0x3ffacd['remove']+'\x22','\x22'+_0x3ffacd['add']+'\x22'])});continue;}if(null!=_0x3ffacd['add']['match'](/^ +$/)){_0x1109ab['push']({'type':'insertion','content':o(_0x48512f,'*Insert:*\x20%0',o(_0x48512f,'ELEMENT_SPACE',_0x3ffacd['add']['length']))});continue;}if(null!=_0x3ffacd['remove']['match'](/^ +$/)){_0x1109ab['push']({'type':'deletion','content':o(_0x48512f,'*Remove:*\x20%0',o(_0x48512f,'ELEMENT_SPACE',_0x3ffacd['remove']['length']))});continue;}if(''!=_0x3ffacd['add']){_0x1109ab['push']({'type':'insertion','content':o(_0x48512f,'*Insert:*\x20%0','\x22'+_0x3ffacd['add']+'\x22')});continue;}_0x1109ab['push']({'type':'deletion','content':o(_0x48512f,'*Remove:*\x20%0','\x22'+_0x3ffacd['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1109ab['push']({'type':'insertion','content':o(_0x48512f,'*Insert:*\x20%0',this['getItemLabel'](_0x3ffacd['element'],_0x3ffacd['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1109ab['push']({'type':'deletion','content':o(_0x48512f,'*Remove:*\x20%0',this['getItemLabel'](_0x3ffacd['element'],_0x3ffacd['quantity']))});continue;case'addContainer':_0x1109ab['push']({'type':'insertion','content':o(_0x48512f,'*Split:*\x20%0',this['getItemLabel'](_0x3ffacd['element'],_0x3ffacd['quantity']))});continue;case'removeContainer':_0x1109ab['push']({'type':'deletion','content':o(_0x48512f,'*Merge:*\x20%0',this['getItemLabel'](_0x3ffacd['element'],_0x3ffacd['quantity']))});continue;case'addFormat':_0x1cd2b2['push'](_0x3ffacd['key']);continue;case'removeFormat':_0x51f568['push'](_0x3ffacd['key']);continue;default:_0x1109ab['push'](_0x3ffacd);}if(_0x1cd2b2['length']){const _0x50b6bc=_0x1cd2b2['map'](_0x4836a2=>this['_attributeLabels']['has'](_0x4836a2)?this['_attributeLabels']['get'](_0x4836a2):_0x4836a2)['join'](',\x20');_0x1109ab['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x50b6bc)});}if(_0x51f568['length']){const _0x4e7b25=_0x51f568['map'](_0x1f95b5=>this['_attributeLabels']['has'](_0x1f95b5)?this['_attributeLabels']['get'](_0x1f95b5):_0x1f95b5)['join'](',\x20');_0x1109ab['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4e7b25)});}return _0x1109ab;}['_handleCustomCallbackDescription'](_0x51a02d){for(const _0x55638e of this['_customCallbacks']){const _0x3705a2=_0x55638e(_0x51a02d);if(_0x3705a2&&'type'in _0x3705a2)return _0x3705a2;}}['_handleAttributeSuggestionDescription'](_0x4c9996,_0x2878cb){const _0x5d3aad=_0x2878cb['data'],_0x4987ed=void 0x0===_0x5d3aad['newValue']?'removeFormat':'addFormat';_0x4c9996['push']({'type':_0x4987ed,'key':_0x5d3aad['key']});}['_handleRenameSuggestionDescription'](_0x7a3b3c,_0x830cd3){_0x7a3b3c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x830cd3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x34d9a9,_0x1d8eb1,_0x5c7614){if(this['_addDescriptionItems'](_0x34d9a9,_0x1d8eb1),_0x5c7614&&_0x5c7614['getFirstRange']()&&!_0x1d8eb1['getFirstRange']()['end']['isEqual'](_0x5c7614['getFirstRange']()['start'])){const _0x56f026=_0x34d9a9[_0x34d9a9['length']-0x1],_0x523005='insertion'==_0x1d8eb1['type']?'add':'remove';_0x56f026&&'text'==_0x56f026['type']&&(_0x56f026[_0x523005]+='\x0a');}}constructor(_0x57450d,_0x579830){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x57450d,this['_locale']=_0x579830;}}class E extends _0x2b5176{['afterInit'](){const _0x4ce76f=this['editor'],_0x5049c6=_0x4ce76f['plugins']['get']('TrackChangesEditing');_0x4ce76f['commands']['get']('showAIAssistant')&&_0x5049c6['enableCommand']('showAIAssistant');}}class V extends _0x2b5176{['afterInit'](){const _0x598186=this['editor'],_0x351af9=_0x598186['locale'];if(!_0x598186['plugins']['has']('AlignmentEditing'))return;const _0x5701e6=_0x598186['plugins']['get']('TrackChangesEditing');_0x5701e6['enableDefaultAttributesIntegration']('alignment'),_0x5701e6['registerBlockAttribute']('alignment'),_0x5701e6['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x351af9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4baa1e=this['editor'],_0x3085c2=_0x4baa1e['locale'];_0x4baa1e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e6342=>{if('formatBlock'!=_0x1e6342['type'])return;const {data:_0x398916}=_0x1e6342;if(_0x398916&&'alignment'==_0x398916['commandName']){const _0x539ccb=_0x398916['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3085c2,'*Format:*\x20%0',function(_0x34b367){switch(_0x34b367){case'left':return o(_0x3085c2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3085c2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3085c2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3085c2,'FORMAT_JUSTIFY_TEXT');}}(_0x539ccb))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x2b5176{['afterInit'](){const _0xe5dffb=this['editor'],_0x3909f0=_0xe5dffb['plugins']['get']('TrackChangesEditing'),_0x10ca4b=_0xe5dffb['locale'];for(const _0x16057c of ti){if(!_0xe5dffb['plugins']['has'](_0x16057c))continue;const _0x3bc0ca=_0x16057c['slice'](0x0,-0x7)['toLowerCase'](),_0xd6c7cb='FORMAT_'+_0x3bc0ca['toUpperCase']();_0x3909f0['enableDefaultAttributesIntegration'](_0x3bc0ca),_0x3909f0['registerInlineAttribute'](_0x3bc0ca),_0x3909f0['descriptionFactory']['registerAttributeLabel'](_0x3bc0ca,o(_0x10ca4b,_0xd6c7cb));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4462a6=this['editor'],_0xe9d6e4=_0x4462a6['locale'],_0x232172=_0x4462a6['plugins']['get']('TrackChangesEditing');function _0x16acb3(_0x56cdea,_0x3e435b){_0x232172['descriptionFactory']['registerDescriptionCallback'](_0x570ab2=>{if('formatInline'!=_0x570ab2['type'])return;const {data:_0x344e5b}=_0x570ab2;return _0x344e5b&&_0x344e5b['commandName']===_0x56cdea?_0x344e5b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe9d6e4,'*Format:*\x20%0',_0x3e435b)}:{'type':'format','content':o(_0xe9d6e4,'*Remove\x20format:*\x20%0',_0x3e435b)}:void 0x0;});}_0x16acb3('bold',o(_0xe9d6e4,'FORMAT_BOLD')),_0x16acb3('italic',o(_0xe9d6e4,'FORMAT_ITALIC')),_0x16acb3('underline',o(_0xe9d6e4,'FORMAT_UNDERLINE')),_0x16acb3('code',o(_0xe9d6e4,'FORMAT_CODE')),_0x16acb3('strikethrough',o(_0xe9d6e4,'FORMAT_STRIKETHROUGH')),_0x16acb3('subscript',o(_0xe9d6e4,'FORMAT_SUBSCRIPT')),_0x16acb3('superscript',o(_0xe9d6e4,'FORMAT_SUPERSCRIPT'));}}class O extends _0x2b5176{['afterInit'](){const _0x52206f=this['editor'],_0x23f80f=_0x52206f['locale'];if(!_0x52206f['plugins']['has']('BlockQuoteEditing'))return;const _0x1ee8d3=_0x52206f['plugins']['get']('TrackChangesEditing'),_0x90fac5=this['editor']['commands']['get']('blockQuote');_0x1ee8d3['enableCommand']('blockQuote',(_0x4b10b1,_0x143993={})=>{const _0x5d7a65=this['editor']['model']['document']['selection'],_0x9237f4=_0x143993&&void 0x0!==_0x143993['forceValue']?_0x143993['forceValue']:!_0x90fac5['value'];let _0x1e1dd=[];if(_0x9237f4){const _0x17c29f=Array['from'](_0x5d7a65['getSelectedBlocks']())['filter'](_0x3151fb=>oo(_0x3151fb)||function(_0x180da3,_0x3d452c){const _0xf2506c=_0x3d452c['checkChild'](_0x180da3['parent'],'blockQuote'),_0x48c445=_0x3d452c['checkChild'](['$root','blockQuote'],_0x180da3);return _0xf2506c&&_0x48c445;}(_0x3151fb,this['editor']['model']['schema']));_0x1e1dd=to(_0x17c29f,_0x52206f['model']);}else{const _0x36d48c=Array['from'](_0x5d7a65['getSelectedBlocks']())['filter'](_0x20bafb=>oo(_0x20bafb));_0x1e1dd=to(_0x36d48c,_0x52206f['model']);}_0x52206f['model']['change'](()=>{for(const _0x58cca4 of _0x1e1dd)_0x1ee8d3['markBlockFormat'](_0x58cca4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x9237f4}]});});}),_0x1ee8d3['descriptionFactory']['registerDescriptionCallback'](_0x2ad329=>{const {data:_0x25c06f}=_0x2ad329;if(_0x25c06f&&'blockQuote'==_0x25c06f['commandName']){const _0x4fdc63=o(_0x23f80f,'ELEMENT_BLOCK_QUOTE');return _0x25c06f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23f80f,'*Set\x20format:*\x20%0',_0x4fdc63)}:{'type':'format','content':o(_0x23f80f,'*Remove\x20format:*\x20%0',_0x4fdc63)};}});}}function oo(_0x468cf3){return'blockQuote'==_0x468cf3['parent']['name'];}class F extends _0x2b5176{['afterInit'](){const _0x36be84=this['editor'];_0x36be84['plugins']['has']('CaseChange')&&(_0x36be84['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x36be84['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x36be84['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x2b5176{['afterInit'](){const _0x288675=this['editor'];_0x288675['commands']['get']('ckbox')&&_0x288675['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x2b5176{['afterInit'](){const _0x180d50=this['editor'];if(!_0x180d50['plugins']['has']('CodeBlock'))return;const _0x297092=_0x180d50['plugins']['get']('TrackChangesEditing'),_0x492a2c=_0x180d50['locale'],_0x3667fa=_0x180d50['config']['get']('codeBlock')['languages'],_0x367578=_0x180d50['commands']['get']('codeBlock');_0x297092['enableCommand']('indentCodeBlock'),_0x297092['enableCommand']('outdentCodeBlock'),_0x297092['enableCommand']('codeBlock',(_0xd87baf,_0x1e6895={})=>{const _0xc2e4c9=_0x180d50['model'],_0xa5722d=_0x180d50['model']['document']['selection'],_0x52582b=_0x1e6895&&void 0x0!==_0x1e6895['forceValue']?_0x1e6895['forceValue']:!_0x367578['value'];let _0x44e38e;_0x1e6895['language']||(_0x1e6895['language']=_0x3667fa[0x0]['language']),_0x44e38e=_0x52582b?Array['from'](_0xa5722d['getSelectedBlocks']())['filter'](_0x47663a=>eo(_0x47663a)||function(_0x475cf4,_0x1ab678){if(_0x475cf4['is']('rootElement')||_0x1ab678['isLimit'](_0x475cf4))return!0x1;return _0x1ab678['checkChild'](_0x475cf4['parent'],'codeBlock');}(_0x47663a,_0xc2e4c9['schema'])):Array['from'](_0xa5722d['getSelectedBlocks']())['filter'](_0x25936d=>eo(_0x25936d));const _0x313f37=to(_0x44e38e,_0xc2e4c9);_0xc2e4c9['change'](()=>{for(const _0x4695ef of _0x313f37)_0x297092['markBlockFormat'](_0x4695ef,{'commandName':'codeBlock','commandParams':[{..._0x1e6895,'forceValue':_0x52582b}],'formatGroupId':'blockName'});});}),(_0x297092['descriptionFactory']['registerElementLabel']('codeBlock',_0x5a94af=>o(_0x492a2c,'ELEMENT_CODE_BLOCK',_0x5a94af)),_0x297092['descriptionFactory']['registerDescriptionCallback'](_0x3c57f7=>{if('formatBlock'!=_0x3c57f7['type'])return;const _0x34aa58=_0x492a2c['t'],{data:_0x258f6}=_0x3c57f7;if(!_0x258f6||'codeBlock'!=_0x258f6['commandName'])return;const _0x4ae28c=_0x258f6['commandParams'][0x0]['language'],_0x2798da=_0x34aa58(_0x3667fa['find'](_0x30f7c4=>_0x30f7c4['language']===_0x4ae28c)['label'])['toLowerCase']();return _0x258f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x492a2c,'*Set\x20format:*\x20%0',o(_0x492a2c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2798da+')')}:{'type':'format','content':o(_0x492a2c,'*Remove\x20format:*\x20%0',o(_0x492a2c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x273b81){return'codeBlock'==_0x273b81['name'];}class H extends _0x2b5176{['afterInit'](){const _0x401759=this['editor'];if(!_0x401759['plugins']['has']('CommentsEditing'))return;_0x401759['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x705263,_0xb66118,_0x4bf04e){const _0x582301=[];for(const _0x8a5ed8 of _0xb66118['getItems']())_0x8a5ed8['hasAttribute'](_0x705263)&&_0x582301['push'](_0x4bf04e['createRangeOn'](_0x8a5ed8));return _0x582301;}function _e(_0x2c2b9c,_0x4b33a3,{showActiveMarker:_0x42a6c7=!0x0}={}){const _0x178198=_0x2c2b9c['plugins']['get']('TrackChangesEditing');return(_0x4acd78,_0x49c81a,_0x58e3f9)=>{if(!_0x58e3f9['consumable']['test'](_0x49c81a['markerRange'],_0x4acd78['name']))return;const _0x25f25d=_0x49c81a['markerRange']['getWalker'](),_0x15ea1c=_0x49c81a['markerRange']['start'],_0x2bb8e6=_0x2c2b9c['model']['schema'];let _0x3c5d22=null,_0x1fb778=null,_0x5c269a=!0x1,_0x10d159=!0x1;for(const _0x30fa73 of _0x25f25d){const _0x518d34=_0x30fa73['item'];_0x5c269a=_0x5c269a||_0x2bb8e6['isContent'](_0x518d34);const _0x377fef=_0x58e3f9['mapper']['toViewElement'](_0x518d34);if(_0x377fef&&_0x377fef['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x30fa73['type']&&(_0x2bb8e6['isBlock'](_0x518d34)&&!_0x2bb8e6['isLimit'](_0x518d34)&&(_0x518d34['nextSibling']||_0x15ea1c['isAtEnd']?_0x3c5d22&&_0x3c5d22['parent']==_0x518d34||(_0x3c5d22=_0x518d34,_0x53e9be(_0x30fa73['previousPosition']),_0x10d159=!0x0):_0x1fb778=_0x1fb778||_0x30fa73['previousPosition']));}function _0x53e9be(_0x43732d){const _0xd7e1b6=_0x58e3f9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b33a3}),_0x4154af=_0x58e3f9['mapper']['toViewPosition'](_0x43732d);_0x42a6c7&&_0x178198['activeMarkers']['includes'](_0x49c81a['markerName'])&&_0x58e3f9['writer']['addClass']('ck-suggestion-marker--active',_0xd7e1b6),_0x58e3f9['writer']['insert'](_0x4154af,_0xd7e1b6),_0x58e3f9['mapper']['bindElementToMarker'](_0xd7e1b6,_0x49c81a['markerName']);}_0x5c269a||_0x10d159||!_0x1fb778||_0x53e9be(_0x1fb778);};}class q extends _0x2b5176{static get['requires'](){return[_0x4f8527];}['init'](){const _0x494706=this['editor'],_0x50a272=_0x494706['plugins']['get']('TrackChangesEditing');_0x50a272['enableCommand']('delete');const _0x5e5afa=_0x494706['commands']['get']('deleteForward');_0x50a272['enableCommand']('deleteForward',(_0x18e3fb,_0x4c5f8d={})=>{const _0x5eb7c3=_0x494706['model']['createSelection'](_0x494706['model']['document']['selection']);_0x5eb7c3['isCollapsed']&&_0x494706['model']['modifySelection'](_0x5eb7c3,{'direction':'forward','unit':_0x4c5f8d['unit']});const _0x23af22=_0x5eb7c3['getFirstRange'](),_0x5817cd=_0x1aac42['fromRange'](_0x23af22);let _0xf417ea;_0x18e3fb(_0x4c5f8d),_0xf417ea='$graveyard'==_0x5817cd['root']['rootName']?_0x494706['model']['createRange'](_0x23af22['start']):_0x494706['model']['createRange'](_0x5817cd['start'],_0x5817cd['end']),_0x5817cd['detach'](),_0x494706['model']['enqueueChange'](_0x5e5afa['buffer']['batch'],_0x563a1c=>{_0x5e5afa['buffer']['lock'](),_0x563a1c['setSelection'](_0x563a1c['createRange'](_0xf417ea['end'])),_0x5e5afa['buffer']['unlock']();});}),_0x494706['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x494706,'merge'),{'priority':'high'}),_0x494706['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1fc332,_0x21243c,_0x2509c3)=>{_0x2509c3['options']['showSuggestionHighlights']&&_e(_0x494706,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1fc332,_0x21243c,_0x2509c3);},{'priority':'high'}),_0x494706['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1ed0a5,_0x47950a,_0xcb530d)=>{const _0x2c93f0=_0xcb530d['mapper']['markerNameToElements'](_0x47950a['markerName']);if(_0x2c93f0){for(const _0x4001ab of _0x2c93f0)_0x4001ab['is']('uiElement')&&(_0xcb530d['mapper']['unbindElementFromMarkerName'](_0x4001ab,_0x47950a['markerName']),_0xcb530d['writer']['remove'](_0x4001ab));}},{'priority':'high'});}}class z extends _0x2b5176{['afterInit'](){const _0xe03a3=this['editor'];if(!_0xe03a3['plugins']['has']('ListEditing'))return;const _0x4585b=_0xe03a3['locale'],_0x3c3571=_0xe03a3['plugins']['get']('TrackChangesEditing'),_0x20aa42=_0xe03a3['plugins']['has']('TodoListEditing'),_0x4c8150=!!_0xe03a3['config']['get']('list.multiBlock');function _0x533ed7(_0x123d78){return{'type':'format','content':''+o(_0x4585b,'*Set\x20format:*\x20%0',_0x123d78)};}function _0x4bb3cc(_0x3c4638){return{'type':'format','content':''+o(_0x4585b,'*Remove\x20format:*\x20%0',_0x3c4638)};}_0x3c3571['enableDefaultAttributesIntegration']('numberedList'),_0x3c3571['enableDefaultAttributesIntegration']('bulletedList'),_0x3c3571['enableDefaultAttributesIntegration']('customNumberedList'),_0x3c3571['enableDefaultAttributesIntegration']('customBulletedList'),_0x3c3571['enableDefaultAttributesIntegration']('indentList'),_0x3c3571['enableDefaultAttributesIntegration']('outdentList'),_0x3c3571['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3c3571['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3c3571['registerBlockAttribute']('listItemId'),_0x3c3571['registerBlockAttribute']('listType'),_0x3c3571['registerBlockAttribute']('listIndent'),_0x4c8150&&(_0x3c3571['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3c3571['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x20aa42&&(_0x3c3571['enableDefaultAttributesIntegration']('todoList'),_0x3c3571['enableDefaultAttributesIntegration']('checkTodoList'),_0x3c3571['registerBlockAttribute']('todoListChecked'),_0x3c3571['descriptionFactory']['registerDescriptionCallback'](_0x1363b5=>{const {data:_0x154e3b}=_0x1363b5;if(_0x154e3b&&'todoListChecked'==_0x154e3b['key'])return{'type':'format','content':_0x154e3b['newValue']?o(_0x4585b,'*Check\x20item*'):o(_0x4585b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x59b334=>{if(_0x59b334['batch']['isUndo'])return!0x1;let _0x424ef1=!0x1;const _0x594ac3=_0x3c3571['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x413f76=>'todoListChecked'===_0x3c3571['_getAttributeKey'](_0x413f76));for(const _0x23b284 of _0x594ac3){'todo'!=_0x23b284['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3c3571['_findSuggestions'](_0x23b284['getFirstRange'](),'attribute')['find'](_0x2d5bea=>'listType'===_0x3c3571['_getAttributeKey'](_0x2d5bea['suggestion']))||(_0x59b334['removeMarker'](_0x23b284['getFirstMarker']()),_0x424ef1=!0x0));}return _0x424ef1;})),_0x3c3571['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4585b,'FORMAT_INDENT'));const _0x14caf5={'type':'format','content':''};_0x3c3571['descriptionFactory']['registerDescriptionCallback'](_0x3b66ad=>{const {data:_0x9712e8}=_0x3b66ad;if(!_0x9712e8||'listType'!=_0x9712e8['key'])return;let _0x2e7a58=_0x3b66ad['head'];for(;_0x2e7a58;){if(_0x2e7a58['data']&&(('listStyle'==_0x2e7a58['data']['key']||'listMarkerStyle'==_0x2e7a58['data']['key'])&&(_0x2e7a58['data']['newValue']&&'default'!=_0x2e7a58['data']['newValue']||'default'!=_0x2e7a58['data']['oldValue']&&!_0x9712e8['newValue'])||!_0x4c8150&&_0x2e7a58['data']['key']==m))return _0x14caf5;_0x2e7a58=_0x2e7a58['next'];}if(null==_0x9712e8['newValue'])switch(_0x9712e8['oldValue']){case'bulleted':return _0x4bb3cc(o(_0x4585b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4bb3cc(o(_0x4585b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4bb3cc(o(_0x4585b,'ELEMENT_TODO_LIST'));}switch(_0x9712e8['newValue']){case'bulleted':return _0x533ed7(o(_0x4585b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x533ed7(o(_0x4585b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x533ed7(o(_0x4585b,'ELEMENT_TODO_LIST'));}}),_0x3c3571['descriptionFactory']['registerDescriptionCallback'](_0x356dfa=>{const {data:_0x3a394c}=_0x356dfa;if(_0x3a394c&&'listIndent'==_0x3a394c['key'])return null==_0x3a394c['newValue']||null==_0x3a394c['oldValue']&&0x0==_0x3a394c['newValue']?_0x14caf5:void 0x0;}),_0x3c3571['descriptionFactory']['registerDescriptionCallback'](_0x3f9800=>{if('attribute'!=_0x3f9800['type'])return;const {data:_0x1a6997}=_0x3f9800;if(!_0x1a6997||'listItemId'!=_0x1a6997['key'])return;const _0x26af63=le(_0x3f9800);return'newValue'==_0x26af63?{'type':'format','content':o(_0x4585b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x26af63?{'type':'format','content':o(_0x4585b,'*Split:*\x20list\x20item')}:_0x14caf5;}),_0xe03a3['model']['document']['registerPostFixer'](_0x21d680=>this['listItemIdFixer'](_0x21d680)),_0xe03a3['model']['document']['registerPostFixer'](_0x246e28=>this['noTrackChangesFixer'](_0x246e28)),_0xe03a3['model']['document']['registerPostFixer'](_0x573632=>this['assureChains'](_0x573632)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xc94976){if(_0xc94976['batch']['isUndo']||!_0xc94976['batch']['isLocal'])return!0x1;let _0xaaf8f=!0x1;const _0x3fe620=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c51a7=>_0x4c51a7['data']&&'listItemId'==_0x4c51a7['data']['key'])['filter'](_0xbb1f5=>_0xbb1f5['data']['newValue']&&_0xbb1f5['data']['oldValue']);for(const _0x12aa16 of _0x3fe620)le(_0x12aa16)||(_0xc94976['removeMarker'](_0x12aa16['getFirstMarker']()),_0xaaf8f=!0x0);return _0xaaf8f;}['noTrackChangesFixer'](_0x3a4ccd){if(_0x3a4ccd['batch']['isUndo']||!_0x3a4ccd['batch']['isLocal'])return!0x1;const _0x31ef29=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x31ef29['trackChangesCommand']['value'])return!0x1;let _0x60cd7e=!0x1;const _0x499ece=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xd39260=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x165845=>'attribute'==_0x165845['type'])['filter'](_0xb152e1=>_0x499ece['includes'](_0xb152e1['attributeKey']));if(0x0==_0xd39260['length'])return _0x60cd7e;for(const _0x1840fc of _0xd39260){const _0x45c771=_0x31ef29['_findSuggestions'](_0x1840fc['range'],'attribute')['filter'](_0x29accc=>!_0x29accc['meta']['isNextTo'])['map'](_0x4ab5ae=>_0x4ab5ae['suggestion'])['filter'](_0x1f678e=>{const _0x4209e6=_0x31ef29['_getAttributeKey'](_0x1f678e);return _0x499ece['includes'](_0x4209e6);});if(_0x45c771['length']){for(const _0x31ca45 of _0x45c771)_0x3a4ccd['removeMarker'](_0x31ca45['getFirstMarker']());_0x60cd7e=!0x0;}}return _0x60cd7e;}['assureChains'](_0x490c8f){if(_0x490c8f['batch']['isUndo']||!_0x490c8f['batch']['isLocal'])return!0x1;const _0x5da8c6=this['editor']['plugins']['get']('TrackChangesEditing');let _0x35d0cb=!0x1;const _0x553d7f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x4c5dae of _0x5da8c6['getSuggestions']({'skipNotAttached':!0x0})){const _0x5deed9=_0x5da8c6['_findSuggestions'](_0x4c5dae['getFirstRange'](),'attribute')['map'](_0x4dc243=>_0x4dc243['suggestion'])['filter'](_0x36db66=>_0x36db66['data']&&_0x553d7f['includes'](_0x36db66['data']['key']));if(!_0x5deed9['length'])continue;const _0xbe8966=_0x5deed9[0x0]['head']['attributes']['groupId'];if(!_0x5deed9['every'](_0x3e2ca5=>_0x3e2ca5['attributes']['groupId']===_0xbe8966)){for(const _0x4eb052 of _0x5deed9)_0x57f1d1(_0x4eb052,_0xbe8966)&&(_0x35d0cb=!0x0);}}return _0x35d0cb;function _0x462e21(_0x25bc1f,_0x4bfa79){for(const _0x14bc2a of _0x5da8c6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe58e4a=>'attribute'==_0xe58e4a['type']&&_0xe58e4a['attributes']['groupId']==_0x25bc1f))_0x14bc2a['setAttribute']('groupId',_0x4bfa79);}function _0x57f1d1(_0x37bfd4,_0x1d9ac0){let _0x20fd90=_0x37bfd4['head'],_0x1d6d9f=!0x1;for(;_0x20fd90;)_0x20fd90['attributes']['groupId']!=_0x1d9ac0&&(_0x462e21(_0x20fd90['attributes']['groupId'],_0x1d9ac0),_0x20fd90['setAttribute']('groupId',_0x1d9ac0),_0x1d6d9f=!0x0),_0x20fd90=_0x20fd90['next'];return _0x1d6d9f;}}['_supportLegacySuggestions'](){const _0xb1c715=this['editor'],_0x46f8d6=_0xb1c715['locale'],_0x8da34f=_0xb1c715['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x8da34f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5b5cdd,_0x2c7506){const _0x282a01=[];for(let _0x47b209 of _0x5b5cdd)_0x47b209['start']['nodeAfter']===_0x47b209['end']['parent']&&(_0x47b209=_0xb1c715['model']['createRange'](_0xb1c715['model']['createPositionAt'](_0x47b209['start']['nodeAfter'],0x0))),_0x282a01['push'](_0x47b209);_0xb1c715['model']['change'](_0x4075d3=>{const _0x464c68=_0xb1c715['model']['document']['selection'],_0xe6b9e7=Array['from'](_0x464c68['getRanges']())['map'](_0xc76cb5=>_0x1aac42['fromRange'](_0xc76cb5));_0x4075d3['setSelection'](_0x282a01),_0xb1c715['commands']['get'](_0x2c7506['commandName'])['refresh'](),_0x2c7506['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xb1c715['execute'](_0x2c7506['commandName'],..._0x2c7506['commandParams']),_0x4075d3['setSelection'](_0xe6b9e7);for(const _0x3a87c5 of _0xe6b9e7)_0x3a87c5['detach']();});}),_0x8da34f['descriptionFactory']['registerElementLabel'](function(_0x2d0444){const _0x226ea4=!_0xb1c715['model']['schema']['isObject'](_0x2d0444),_0x25f854=_0x2d0444['previousSibling'],_0x3eab21=_0x2d0444['nextSibling'],_0x275b44=_0x2d0444['getAttribute']('listItemId'),_0x688e25=!_0x25f854||_0x25f854['getAttribute']('listItemId')!==_0x275b44,_0x4405d6=!_0x3eab21||_0x3eab21['getAttribute']('listItemId')!==_0x275b44;return _0x226ea4&&Boolean(_0x275b44)&&_0x688e25&&_0x4405d6;},_0x41b2f3=>o(_0x46f8d6,'ELEMENT_LIST_ITEM',_0x41b2f3));}['_registerLegacyDescription'](){const _0x3cdec7=this['editor'],_0x2463a3=_0x3cdec7['locale'];function _0x568c0f(_0x3422fa){const _0x3258a1=_0x3cdec7['commands']['get']('bulletedList')['value'],_0x41e73b=_0x3cdec7['commands']['get']('numberedList')['value'];return'numberedList'===_0x3422fa?_0x3258a1:_0x41e73b;}_0x3cdec7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5deda1){if('formatBlock'!=_0x5deda1['type'])return;const {data:_0x279fa3}=_0x5deda1;if(!_0x279fa3)return;let _0x38b7f4,_0x5cac62,_0x5f1817,_0x4f61f7;switch(_0x279fa3['commandName']){case'bulletedList':_0x5f1817=_0x279fa3['commandParams'][0x0]['forceValue'],_0x4f61f7=_0x568c0f(_0x279fa3['commandName']),_0x38b7f4=_0x5f1817?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4f61f7&&_0x3cdec7['config']['get']('list.multiBlock')||(_0x38b7f4='*Change\x20to:*\x20%0'),_0x5cac62={'type':'format','content':o(_0x2463a3,_0x38b7f4,o(_0x2463a3,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5f1817=_0x279fa3['commandParams'][0x0]['forceValue'],_0x4f61f7=_0x568c0f(_0x279fa3['commandName']),_0x38b7f4=_0x5f1817?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4f61f7&&_0x3cdec7['config']['get']('list.multiBlock')||(_0x38b7f4='*Change\x20to:*\x20%0'),_0x5cac62={'type':'format','content':o(_0x2463a3,_0x38b7f4,o(_0x2463a3,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x38b7f4='*Indent:*\x20%0',_0x5cac62={'type':'format','content':o(_0x2463a3,_0x38b7f4,o(_0x2463a3,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x38b7f4=function(_0x506d17){const _0x5a0c85=_0x506d17['getFirstRange']();let _0x383d5b=_0x5a0c85['start']['nodeAfter'];for(;_0x383d5b&&_0x5a0c85['containsItem'](_0x383d5b);){if(_0x383d5b['getAttribute']('listIndent')>0x0)return!0x1;_0x383d5b=_0x383d5b['nextSibling'];}return!0x0;}(_0x5deda1)?o(_0x2463a3,'*Format:*\x20remove\x20from\x20%0',o(_0x2463a3,function(_0x573289){return'ELEMENT_'+_0x573289['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5deda1))):o(_0x2463a3,'*Outdent:*\x20%0',o(_0x2463a3,'ELEMENT_LIST_ITEM')),_0x5cac62={'type':'format','content':_0x38b7f4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x279fa3['multipleBlocks']&&(_0x38b7f4='*Merge:*\x20%0',_0x5cac62={'type':'deletion','content':o(_0x2463a3,_0x38b7f4,o(_0x2463a3,'ELEMENT_LIST_ITEM'))});}return _0x5cac62;});}}function le(_0x10e7df){let _0x13f1f2=_0x10e7df['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x13f1f2;){const _0x31da00=_0x13f1f2['getAttribute']('listItemId');if(!_0x31da00)return!0x1;if(_0x31da00==_0x10e7df['data']['newValue'])return'newValue';if(_0x31da00==_0x10e7df['data']['oldValue'])return'oldValue';_0x13f1f2=_0x13f1f2['previousSibling'];}return!0x1;}class ue extends _0x2b5176{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4636cd=this['editor']['config']['get']('list.properties'),_0x9a6c61=this['editor']['plugins']['get']('TrackChangesEditing');_0x4636cd['styles']&&(_0x9a6c61['enableDefaultAttributesIntegration']('listStyle'),_0x9a6c61['registerBlockAttribute']('listStyle')),_0x4636cd['reversed']&&(_0x9a6c61['enableDefaultAttributesIntegration']('listReversed'),_0x9a6c61['registerBlockAttribute']('listReversed')),_0x4636cd['startIndex']&&(_0x9a6c61['enableDefaultAttributesIntegration']('listStart'),_0x9a6c61['registerBlockAttribute']('listStart'));const _0x5a1058={'type':'format','content':''};_0x9a6c61['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x414746=this['editor']['locale'];_0x9a6c61['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x414746,'FORMAT_LIST_REVERSED')),_0x9a6c61['descriptionFactory']['registerDescriptionCallback'](_0x122963=>{const {data:_0x5bece9}=_0x122963;if(_0x5bece9&&'listReversed'==_0x5bece9['key'])return null==_0x5bece9['newValue']||0x0==_0x5bece9['newValue']&&null==_0x5bece9['oldValue']?_0x5a1058:void 0x0;}),_0x9a6c61['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x414746,'FORMAT_LIST_START')),_0x9a6c61['descriptionFactory']['registerDescriptionCallback'](_0x52589f=>{const {data:_0x5ab543}=_0x52589f;if(_0x5ab543&&'listStart'==_0x5ab543['key'])return null==_0x5ab543['newValue']||0x1==_0x5ab543['newValue']&&null==_0x5ab543['oldValue']?_0x5a1058:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x604a27=>{if(_0x604a27['batch']['isUndo'])return!0x1;let _0x5a5b8d=!0x1;const _0x2a9691=_0x9a6c61['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cd335=>{const _0x120b12=_0x9a6c61['_getAttributeKey'](_0x5cd335);return'listStart'==_0x120b12||'listReversed'==_0x120b12;});for(const _0x577e29 of _0x2a9691){const _0x30feee=_0x577e29['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x30feee||'customNumbered'==_0x30feee)continue;_0x9a6c61['_findSuggestions'](_0x577e29['getFirstRange'](),'attribute')['find'](_0x1456b7=>'listType'==_0x9a6c61['_getAttributeKey'](_0x1456b7['suggestion']))||(_0x604a27['removeMarker'](_0x577e29['getFirstMarker']()),_0x5a5b8d=!0x0);}return _0x5a5b8d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4653b1){const _0x5ce771=this['editor']['locale'],{data:_0x3555a1}=_0x4653b1,_0x3d3c3a={'type':'format','content':''};if(!_0x3555a1||'listStyle'!=_0x3555a1['key'])return;if(!_0x3555a1['oldValue'])return'default'==_0x3555a1['newValue']?_0x3d3c3a:{'type':'format','content':''+o(_0x5ce771,'*Set\x20format:*\x20%0',o(_0x5ce771,this['_getTranslationKeyForListStyle'](_0x3555a1['newValue'])))};if(!_0x3555a1['newValue']){if('default'==_0x3555a1['oldValue'])return _0x3d3c3a;let _0x9697fb=_0x4653b1['head'];for(;_0x9697fb;){if(_0x9697fb['data']&&'listType'==_0x9697fb['data']['key']&&_0x9697fb['data']['newValue'])return _0x3d3c3a;_0x9697fb=_0x9697fb['next'];}return{'type':'format','content':''+o(_0x5ce771,'*Remove\x20format:*\x20%0',o(_0x5ce771,this['_getTranslationKeyForListStyle'](_0x3555a1['oldValue'])))};}if('default'!=_0x3555a1['newValue'])return{'type':'format','content':''+o(_0x5ce771,'*Set\x20format:*\x20%0',o(_0x5ce771,this['_getTranslationKeyForListStyle'](_0x3555a1['newValue'])))};let _0x497fe0=_0x4653b1['head'];for(;_0x497fe0;){if(_0x497fe0['data']&&'listType'==_0x497fe0['data']['key']&&_0x497fe0['data']['newValue']&&_0x497fe0['data']['oldValue'])return _0x3d3c3a;_0x497fe0=_0x497fe0['next'];}return{'type':'format','content':o(_0x5ce771,'*Set\x20format:*\x20%0',o(_0x5ce771,'ELEMENT_'+_0x4653b1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x232018=this['editor'],_0x305e08=_0x232018['locale'];_0x232018['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e32a4=>{if('formatBlock'!=_0x1e32a4['type'])return;const {data:_0x5095da}=_0x1e32a4;if(!_0x5095da)return;let _0x1ed326,_0x4cb3c3;switch(_0x5095da['commandName']){case'listStyle':_0x1ed326='*Change\x20to:*\x20%0',_0x4cb3c3={'type':'format','content':o(_0x305e08,_0x1ed326,o(_0x305e08,this['_getTranslationKeyForListStyle'](_0x5095da['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1ed326=_0x5095da['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4cb3c3={'type':'format','content':o(_0x305e08,_0x1ed326)};break;case'listStart':_0x1ed326='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4cb3c3={'type':'format','content':o(_0x305e08,_0x1ed326,_0x5095da['commandParams'][0x0]['startIndex'])};}return _0x4cb3c3;});}['_getTranslationKeyForListStyle'](_0xb860c0){return'ELEMENT_'+function(_0x37eee7){if(pe['includes'](_0x37eee7))return'bulleted';if(ye['includes'](_0x37eee7))return'numbered';return null;}(_0xb860c0)['toUpperCase']()+'_LIST_'+_0xb860c0['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x2b5176{static get['requires'](){return[_0x257bd3];}['init'](){const _0x39a38b=this['editor'],_0x52d803=_0x39a38b['plugins']['get']('TrackChangesEditing'),_0x2a1cd3=_0x39a38b['commands']['get']('enter');_0x52d803['enableCommand']('enter',()=>{_0x39a38b['model']['change'](_0x13596f=>{const _0x2fd231=_0x39a38b['model']['document']['selection'],_0xbe2b96=_0x2fd231['getFirstPosition'](),_0x55eb50=_0x1aac42['fromRange'](_0x2fd231['getFirstRange']());if(_0x2a1cd3['enterBlock'](_0x13596f)){const _0x4037aa=_0x39a38b['model']['createPositionAt'](_0xbe2b96['parent']['nextSibling'],0x0),_0x53420a=_0x13596f['createRange'](_0xbe2b96,_0x4037aa);_0x52d803['markInsertion'](_0x53420a);}else _0x13596f['setSelection'](_0x13596f['createRange'](_0x55eb50['end']));_0x55eb50['detach'](),_0x2a1cd3['fire']('afterExecute',{'writer':_0x13596f});});}),_0x39a38b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x39a38b,'split'),{'priority':'high'}),_0x39a38b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4ebdac,_0x4fba3c,_0x863872)=>{const _0x3aece9=_0x863872['mapper']['markerNameToElements'](_0x4fba3c['markerName']);if(_0x3aece9){for(const _0xdfcc75 of _0x3aece9)_0xdfcc75['hasClass']('ck-suggestion-marker-split')&&(_0x863872['mapper']['unbindElementFromMarkerName'](_0xdfcc75,_0x4fba3c['markerName']),_0x863872['writer']['remove'](_0xdfcc75));}},{'priority':'high'}),_0x39a38b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x558487,_0x44ffe4,_0x257d6c)=>{_0x257d6c['options']['showSuggestionHighlights']&&_e(_0x39a38b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x558487,_0x44ffe4,_0x257d6c);},{'priority':'high'});}}class J extends _0x2b5176{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xdd1fe7=this['editor']['plugins']['get']('TrackChangesEditing');_0xdd1fe7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xdd1fe7['enableCommand']('findNext'),_0xdd1fe7['enableCommand']('findPrevious'),_0xdd1fe7['enableCommand']('replace'),_0xdd1fe7['enableCommand']('replaceAll');}['handleFindCommand'](_0x536d64,_0x29fe60,_0x3218eb={}){const _0x117b93=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x536d64(_0x571d07=>('string'==typeof _0x29fe60?_0x117b93['findByTextCallback'](_0x29fe60,_0x3218eb):_0x29fe60)(_0x571d07)['filter'](_0x12b1d3=>!0x1===this['_isInDeletionRange'](_0x12b1d3,_0x571d07['item'])),_0x3218eb);}['_isInDeletionRange'](_0x64e249,_0x236d85){const _0x29bd29=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x236d85,_0x64e249['start']),this['editor']['model']['createPositionAt'](_0x236d85,_0x64e249['end']));for(const _0x3a694b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x29bd29['getIntersection'](_0x3a694b['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 _0x2b5176{['afterInit'](){const _0x1ff74d=this['editor']['locale'],_0x4a4527=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3ee60c,commandName:_0x2b1ce}of ro)this['editor']['plugins']['has'](_0x3ee60c)&&(_0x4a4527['enableDefaultAttributesIntegration'](_0x2b1ce),_0x4a4527['registerInlineAttribute'](_0x2b1ce));_0x1ff74d['t'],_0x4a4527['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1ff74d,'FORMAT_FONT_SIZE')),_0x4a4527['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1ff74d,'FORMAT_FONT_FAMILY')),_0x4a4527['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1ff74d,'FORMAT_FONT_COLOR')),_0x4a4527['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1ff74d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32698e=this['editor'],_0x2ab8b4=_0x32698e['locale'];_0x32698e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d9d59=>{const _0x56e1e4=_0x2ab8b4['t'];if('formatInline'!=_0x1d9d59['type'])return;const {data:_0x55bec8}=_0x1d9d59;if(null!=_0x55bec8){if('fontSize'==_0x55bec8['commandName']){const _0x4c3082=_0x55bec8['commandParams'][0x0]['value'];if(_0x4c3082){const _0x599ba3=_0x56e1e4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4b251e=>_0x4b251e['model']==_0x4c3082)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2ab8b4,'*Set\x20font\x20size:*\x20%0',_0x599ba3)};}return{'type':'format','content':o(_0x2ab8b4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x55bec8['commandName']){const _0x14b5b1=_0x55bec8['commandParams'][0x0]['value'];return _0x14b5b1?{'type':'format','content':o(_0x2ab8b4,'*Set\x20font\x20family:*\x20%0',_0x14b5b1)}:{'type':'format','content':o(_0x2ab8b4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x55bec8['commandName']){const _0x4eaba5=_0x55bec8['commandParams'][0x0]['value'];if(_0x4eaba5){const _0x4f4a5b=_0x54d0ce(this['editor']['config']['get']('fontColor.colors'))['find'](_0x13ac91=>_0x13ac91['model']==_0x4eaba5);let _0x3cc19d=_0x4eaba5,_0x5643c1='';return _0x4f4a5b&&(_0x3cc19d=_0x4f4a5b['label'],_0x5643c1=_0x56e1e4(_0x3cc19d)['toLowerCase']()),{'type':'format','content':o(_0x2ab8b4,'*Set\x20font\x20color:*\x20%0',_0x5643c1)['trim'](),'color':{'value':_0x4eaba5,'title':_0x5643c1||_0x3cc19d}};}return{'type':'format','content':o(_0x2ab8b4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x55bec8['commandName']){const _0x493ab1=_0x55bec8['commandParams'][0x0]['value'];if(_0x493ab1){const _0xcd9c9d=_0x54d0ce(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x18dfb7=>_0x18dfb7['model']==_0x493ab1);let _0x5d5ac6=_0x493ab1,_0x53e6e4='';return _0xcd9c9d&&(_0x5d5ac6=_0xcd9c9d['label'],_0x53e6e4=_0x56e1e4(_0x5d5ac6)['toLowerCase']()),{'type':'format','content':o(_0x2ab8b4,'*Set\x20font\x20background\x20color:*\x20%0',_0x53e6e4)['trim'](),'color':{'value':_0x493ab1,'title':_0x53e6e4||_0x5d5ac6}};}return{'type':'format','content':o(_0x2ab8b4,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x2b5176{['afterInit'](){const _0x49d42c=this['editor'],_0x38abef=_0x49d42c['plugins']['get']('TrackChangesEditing'),_0x5513a6=_0x49d42c['commands']['get']('copyFormat'),_0x2d057b=_0x49d42c['commands']['get']('pasteFormat');_0x5513a6&&_0x2d057b&&(_0x38abef['enableDefaultAttributesIntegration']('pasteFormat'),_0x38abef['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xf82242=this['editor'],_0x1376cb=_0xf82242['locale'];_0xf82242['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x105633=>{if('formatBlock'!=_0x105633['type']&&'formatInline'!=_0x105633['type'])return;const {data:_0x22132d}=_0x105633;if(_0x22132d&&'pasteFormat'===_0x22132d['commandName']){const _0x275c27=[],_0xd412f3=_0x22132d['commandParams'][0x0];for(const [_0x1511f4,_0x4df517]of Object['entries'](_0xd412f3))_0x275c27['push'](so(_0xf82242,_0x1511f4,_0x4df517));return _0x275c27['length']?{'type':'format','content':o(_0x1376cb,'*Set\x20format\x20to:*\x20%0',_0x275c27['join'](',\x20'))}:{'type':'format','content':o(_0x1376cb,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1aea29,_0x494ef0,_0x120673){const _0x1d6363=_0x1aea29['locale']['t'],_0x4c4e5c=_0x494ef0['split'](/(?=[A-Z])/)['join']('\x20'),_0xd1e075=_0x1d6363(_0x4c4e5c['charAt'](0x0)['toUpperCase']()+_0x4c4e5c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x120673)return _0xd1e075;if('fontColor'===_0x494ef0||'fontBackgroundColor'===_0x494ef0){const _0x124703=_0x54d0ce(_0x1aea29['config']['get']('fontColor.colors'))['find'](_0x149d38=>_0x149d38['model']==_0x120673);return _0xd1e075+'\x20('+(_0x124703?_0x1d6363(_0x124703['label'])['toLowerCase']():_0x120673)+')';}if('fontSize'===_0x494ef0&&isNaN(parseFloat(_0x120673))){const _0x25a73e=_0x1aea29['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1aea29['config']['get']('fontSize.options'))['find'](_0x13cfb3=>_0x13cfb3['model']==_0x120673);return _0xd1e075+'\x20('+(_0x25a73e?_0x1d6363(_0x25a73e['title'])['toLowerCase']():_0x120673)+')';}return _0xd1e075+'\x20('+_0x120673+')';}class Y extends _0x2b5176{['afterInit'](){const _0x377555=this['editor'];if(!_0x377555['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x377555['config']['get']('heading.options');const _0x56ae82=_0x377555['locale'],_0x234a66=_0x377555['plugins']['get']('TrackChangesEditing');_0x234a66['enableDefaultAttributesIntegration']('heading');for(const _0x864a5d of this['_headingOptions'])'paragraph'!=_0x864a5d['model']&&_0x234a66['descriptionFactory']['registerElementLabel'](_0x864a5d['model'],_0x568b15=>{const _0x36e287=this['_getHeadingLevel'](_0x864a5d['model']);return null!==_0x36e287?_0x4b675e(_0x568b15,_0x36e287):_0x55f49d(_0x568b15,_0x864a5d['title']);});function _0x4b675e(_0x15a13b,_0x3e41d9){return o(_0x56ae82,'ELEMENT_HEADING',[_0x15a13b,_0x3e41d9]);}function _0x55f49d(_0xc5479c,_0x596e03){return o(_0x56ae82,'ELEMENT_HEADING_CUSTOM',[_0xc5479c,_0x596e03]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3371eb=this['editor'],_0x38a96b=_0x3371eb['locale'];function _0x28f37f(_0x28119a,_0x236f53){return o(_0x38a96b,'ELEMENT_HEADING_CUSTOM',[_0x28119a,_0x236f53]);}_0x3371eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c2e58=>{if('formatBlock'!=_0x1c2e58['type'])return;const {data:_0x2ff2a5}=_0x1c2e58;if(_0x2ff2a5&&'heading'==_0x2ff2a5['commandName']){const _0x412175=_0x2ff2a5['commandParams'][0x0]['value'],_0x503b51=this['_getHeadingLevel'](_0x412175);if(null!==_0x503b51)return{'type':'format','content':o(_0x38a96b,'*Change\x20to:*\x20%0',(_0x5f3bda=0x1,_0x4c74cd=_0x503b51,o(_0x38a96b,'ELEMENT_HEADING',[_0x5f3bda,_0x4c74cd])))};const _0x29b162=this['_headingOptions']['find'](_0x2f394a=>_0x2f394a['model']===_0x412175)['title'];return{'type':'format','content':o(_0x38a96b,'*Change\x20to:*\x20%0',_0x28f37f(0x1,_0x29b162))};}var _0x5f3bda,_0x4c74cd;});}['_getHeadingLevel'](_0x2a19af){var _0x43398a,_0x38d935;const _0x2b926a=_0x2a19af['match'](/^heading(\d+)/);if(_0x2b926a)return _0x2b926a[0x1];const _0x276d7c=null===(_0x43398a=this['_headingOptions'])||void 0x0===_0x43398a?void 0x0:_0x43398a['find'](_0x263d22=>_0x263d22['model']==_0x2a19af);if(_0x276d7c&&_0x276d7c['view']){const _0x4f81ff=_0x276d7c['view'],_0x5a5c14=(null!==(_0x38d935=_0x4f81ff['name'])&&void 0x0!==_0x38d935?_0x38d935:_0x4f81ff)['match'](/^h(\d+)/);if(_0x5a5c14)return _0x5a5c14[0x1];}return null;}}class Z extends _0x2b5176{['afterInit'](){const _0x1a949c=this['editor'];if(!_0x1a949c['plugins']['has']('HighlightEditing'))return;const _0x292e77=_0x1a949c['plugins']['get']('TrackChangesEditing'),_0x1466b1=_0x1a949c['locale'];_0x292e77['enableDefaultAttributesIntegration']('highlight'),_0x292e77['registerInlineAttribute']('highlight'),_0x292e77['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1466b1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f0452=this['editor'],_0x28554d=_0x3f0452['locale'];_0x3f0452['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x461aaf=>{if('formatInline'!=_0x461aaf['type'])return;const {data:_0x57e126}=_0x461aaf;if(_0x57e126&&'highlight'==_0x57e126['commandName']){const _0x182abe=_0x28554d['t'],_0x52e368=_0x57e126['commandParams'][0x0]['value'];if(_0x52e368){const _0x2ed301=_0x3f0452['config']['get']('highlight.options')['find'](_0x303214=>_0x303214['model']==_0x52e368),_0x39091b=_0x182abe(_0x2ed301['title'])['toLowerCase']();return{'type':'format','content':o(_0x28554d,'*Set\x20highlight:*\x20%0',_0x39091b),'color':{'value':_0x2ed301['color'],'title':_0x2ed301['title']}};}return{'type':'format','content':o(_0x28554d,'*Remove\x20highlight*',o(_0x28554d,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x2b5176{['afterInit'](){const _0x3e4eb1=this['editor'];if(!_0x3e4eb1['plugins']['has']('HorizontalLineEditing'))return;_0x3e4eb1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2df29c=_0x3e4eb1['plugins']['get']('TrackChangesEditing'),_0x325b34=_0x3e4eb1['locale'];_0x2df29c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3f6d67=>o(_0x325b34,'ELEMENT_HORIZONTAL_LINE',_0x3f6d67)),_0x3e4eb1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x288d36,{writer:_0x22fbf7,options:_0x37c24d})=>{if(!_0x37c24d['showSuggestionHighlights'])return null;const _0x123d38=_0x22fbf7['createContainerElement']('div'),_0x3996ee=_0x22fbf7['createEmptyElement']('hr');return _0x22fbf7['addClass']('ck-horizontal-line',_0x123d38),_0x22fbf7['insert'](_0x22fbf7['createPositionAt'](_0x123d38,0x0),_0x3996ee),_0x123d38;},'converterPriority':'high'});}}class et extends _0x2b5176{['afterInit'](){const _0x3f8c3e=this['editor'];if(!_0x3f8c3e['plugins']['has']('HtmlEmbed'))return;const _0x36bd68=_0x3f8c3e['plugins']['get']('TrackChangesEditing'),_0x2cefce=_0x3f8c3e['locale'];_0x36bd68['descriptionFactory']['registerElementLabel']('rawHtml',_0x432133=>o(_0x2cefce,'ELEMENT_HTML_EMBED',_0x432133)),_0x36bd68['enableDefaultAttributesIntegration']('htmlEmbed'),_0x36bd68['registerBlockAttribute']('value'),_0x36bd68['descriptionFactory']['registerDescriptionCallback'](_0x1a0152=>{if('attribute'!=_0x1a0152['type'])return;const {data:_0x15ab24}=_0x1a0152;if(_0x15ab24&&'value'==_0x15ab24['key']&&_0x1a0152['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5620b2=o(_0x2cefce,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2cefce,'*Change\x20%0\x20content*',_0x5620b2)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31b35b=this['editor'],_0x328468=_0x31b35b['locale'];_0x31b35b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27bb72=>{if('formatBlock'!=_0x27bb72['type'])return;const {data:_0x4bf276}=_0x27bb72;if(_0x4bf276&&'htmlEmbed'==_0x4bf276['commandName']){const _0x123d2d=o(_0x328468,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x328468,'*Change\x20%0\x20content*',_0x123d2d)};}});}}class it extends _0x2b5176{['afterInit'](){const _0x4cf4dc=this['editor'];if(!_0x4cf4dc['plugins']['has']('ImageEditing'))return;const _0x57653e=_0x4cf4dc['plugins']['get']('TrackChangesEditing'),_0x36eb63=_0x4cf4dc['plugins']['get']('ImageUtils'),_0x1d04c6=_0x4cf4dc['locale'];_0x57653e['enableCommand']('insertImage'),_0x57653e['descriptionFactory']['registerElementLabel']('imageBlock',_0x13c8f0=>o(_0x1d04c6,'ELEMENT_IMAGE',_0x13c8f0)),_0x57653e['descriptionFactory']['registerElementLabel']('imageInline',_0x8f5d03=>o(_0x1d04c6,'ELEMENT_INLINE_IMAGE',_0x8f5d03)),_0x57653e['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1d04c6,'ELEMENT_CAPTION')),_0x4cf4dc['plugins']['has']('ImageUploadEditing')&&_0x57653e['enableCommand']('uploadImage'),_0x4cf4dc['plugins']['has']('ImageBlockEditing')&&_0x4cf4dc['plugins']['has']('ImageInlineEditing')&&(_0x57653e['enableCommand']('imageTypeInline',(_0x2fda9f,_0x25cbd7)=>{const _0x3fef8e=_0x36eb63['getClosestSelectedImageElement'](_0x4cf4dc['model']['document']['selection']);_0x4cf4dc['model']['change'](()=>{_0x57653e['markBlockFormat'](_0x3fef8e,{'commandName':'imageTypeInline','commandParams':[_0x25cbd7]},[],'convertBlockImageToInline');});}),_0x57653e['enableCommand']('imageTypeBlock',(_0x347672,_0x5efb2b)=>{_0x4cf4dc['model']['change'](_0x783d0a=>{let _0x272ba9=_0x36eb63['getClosestSelectedImageElement'](_0x4cf4dc['model']['document']['selection']),_0xc5aaa4=_0x783d0a['createRangeOn'](_0x272ba9);const _0x43796e=_0x5c0f7d['fromPosition'](_0xc5aaa4['start'],'toPrevious'),_0xeb1539=_0x5c0f7d['fromPosition'](_0xc5aaa4['end'],'toNext');_0x57653e['forceDefaultExecution'](()=>_0x347672(_0x5efb2b)),_0x272ba9=_0x36eb63['getClosestSelectedImageElement'](_0x4cf4dc['model']['document']['selection']),_0xc5aaa4=_0x783d0a['createRangeOn'](_0x272ba9);const _0x17331e=_0x783d0a['createRange'](_0x43796e,_0xeb1539);_0x43796e['detach'](),_0xeb1539['detach'](),_0x57653e['markBlockFormat'](_0x272ba9,{'commandName':'imageTypeInline','commandParams':[_0x5efb2b]},[],'convertInlineImageToBlock'),_0x17331e['start']['isBefore'](_0xc5aaa4['start'])&&_0x57653e['markInsertion'](_0x783d0a['createRange'](_0x17331e['start'],_0xc5aaa4['start']),'convertInlineImageToBlock'),_0xc5aaa4['end']['isBefore'](_0x17331e['end'])&&_0x57653e['markInsertion'](_0x783d0a['createRange'](_0xc5aaa4['end'],_0x17331e['end']),'convertInlineImageToBlock');});}),_0x57653e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x57653e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x57653e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x57653e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x57653e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x57653e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x20e2b0])=>{const _0x335603=_0x57653e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x18774c=_0x20e2b0['start'],_0x2cb6ce=_0x20e2b0['end'];const _0x31c8b0=_0x4cf4dc['model']['schema']['getNearestSelectionRange'](_0x18774c,'backward'),_0x5d56a9=_0x4cf4dc['model']['schema']['getNearestSelectionRange'](_0x2cb6ce,'forward');_0x31c8b0['isCollapsed']&&(_0x18774c=_0x31c8b0['start']),_0x5d56a9['isCollapsed']&&(_0x2cb6ce=_0x5d56a9['end']),_0x335603([_0x4cf4dc['model']['createRange'](_0x18774c,_0x2cb6ce)]);}),_0x57653e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1c02fe),_0x57653e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1c02fe)),_0x4cf4dc['plugins']['has']('ImageCaptionEditing')&&(_0x57653e['enableCommand']('toggleImageCaption',(_0x271ecb,_0x5de2db)=>{const _0x39775c=_0x4cf4dc['plugins']['get']('ImageCaptionUtils');let _0x2bb34f=_0x36eb63['getClosestSelectedImageElement'](_0x4cf4dc['model']['document']['selection']),_0x35d9e1=_0x39775c['getCaptionFromImageModelElement'](_0x2bb34f);_0x4cf4dc['model']['change'](()=>{if(_0x35d9e1)return void _0x57653e['markDeletion'](_0x4cf4dc['model']['createRangeOn'](_0x35d9e1));const _0x2f47b4=_0x36eb63['isBlockImage'](_0x2bb34f);_0x271ecb(_0x5de2db),_0x2bb34f=_0x36eb63['getClosestSelectedImageElement'](_0x4cf4dc['model']['document']['selection']),_0x35d9e1=_0x39775c['getCaptionFromImageModelElement'](_0x2bb34f),_0x57653e['markInsertion'](_0x4cf4dc['model']['createRangeOn'](_0x35d9e1),_0x2f47b4?null:'imageCaption');});}),_0x57653e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1c02fe));const _0x5935ae=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x334e22(_0x1a8970,_0x352e3d){const _0x34cc89=_0x5935ae['findIndex'](({type:_0x1e8854,subType:_0x2b85b8})=>_0x1a8970['type']==_0x1e8854&&_0x1a8970['subType']==_0x2b85b8),_0x3733ce=_0x5935ae['findIndex'](({type:_0x1194a2,subType:_0x3ce11d})=>_0x352e3d['type']==_0x1194a2&&_0x352e3d['subType']==_0x3ce11d);if(_0x34cc89<0x0||_0x3733ce<0x0)return!0x1;const _0x31885d=_0x1a8970['getFirstRange'](),_0x214a33=_0x352e3d['getFirstRange']();if((0x0==_0x34cc89||0x1==_0x34cc89)&&0x2==_0x3733ce&&_0x31885d['isIntersecting'](_0x214a33))return!0x0;if(0x2==_0x34cc89&&0x3==_0x3733ce){const _0x3793d9=_0x57653e['_findSuggestions'](_0x31885d,'insertion')['filter'](({suggestion:_0x46e512,meta:_0x18d650})=>_0x18d650['isOwn']&&'convertInlineImageToBlock'==_0x46e512['subType']);if(_0x3793d9['length']>0x1&&_0x214a33['end']['isEqual'](_0x31885d['start']))return!0x0;if(0x1==_0x3793d9['length']&&(_0x31885d['start']['isEqual'](_0x214a33['end'])||_0x31885d['end']['isEqual'](_0x214a33['start'])))return!0x0;}if(0x3==_0x34cc89&&0x3==_0x3733ce&&_0x31885d['start']['isBefore'](_0x214a33['start'])){const _0x1426c=_0x31885d['end']['nodeAfter'],_0x3b8738=_0x214a33['start']['nodeBefore'];return _0x36eb63['isBlockImage'](_0x1426c)&&_0x1426c===_0x3b8738;}return!0x1;}function _0x1c02fe(_0x2f8a76,_0x25a189){return _0x334e22(_0x2f8a76,_0x25a189)?[_0x2f8a76,_0x25a189]:_0x334e22(_0x25a189,_0x2f8a76)?[_0x25a189,_0x2f8a76]:null;}_0x4cf4dc['plugins']['has']('ImageResize')&&(_0x57653e['enableDefaultAttributesIntegration']('resizeImage'),_0x57653e['registerBlockAttribute']('resizedWidth'),_0x57653e['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1d04c6,'FORMAT_IMAGE_SIZE'))),_0x4cf4dc['plugins']['has']('ImageTextAlternativeEditing')&&(_0x57653e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x57653e['registerBlockAttribute']('alt')),_0x57653e['descriptionFactory']['registerDescriptionCallback'](_0x58064f=>{if(!!_0x5935ae['find'](({type:_0x32762b,subType:_0x59ab55})=>_0x58064f['type']==_0x32762b&&_0x58064f['subType']==_0x59ab55))return _0x58064f['previous']?{}:void 0x0;}),_0x57653e['descriptionFactory']['registerDescriptionCallback'](_0x513f3a=>{if('insertion'==_0x513f3a['type']||'deletion'==_0x513f3a['type']){const _0x458a76=_0x513f3a['getContainedElement']();if(_0x458a76&&_0x458a76['is']('element','caption'))return{'type':'insertion'==_0x513f3a['type']?'addObject':'removeObject','element':_0x458a76,'quantity':0x1};}}),_0x57653e['descriptionFactory']['registerDescriptionCallback'](_0xcf7858=>'formatBlock'==_0xcf7858['type']&&'convertInlineImageToBlock'==_0xcf7858['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xcf7858['type']&&'convertBlockImageToInline'==_0xcf7858['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x57653e['descriptionFactory']['registerDescriptionCallback'](_0x529b9d=>{if('attribute'!=_0x529b9d['type'])return;const {data:_0xf4178b}=_0x529b9d;if(!_0xf4178b||'alt'!=_0xf4178b['key'])return;const _0x44969b=_0xf4178b['newValue'];return _0x44969b?{'type':'format','content':o(_0x1d04c6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x44969b+'\x22')}:{'type':'format','content':o(_0x1d04c6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x580927=this['editor'],_0x12168c=_0x580927['locale'];_0x580927['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c2492=>{if('formatBlock'!=_0x1c2492['type']&&'formatInline'!=_0x1c2492['type'])return;const {data:_0x258da5}=_0x1c2492;if(_0x258da5){if('imageTextAlternative'==_0x258da5['commandName']){const _0x57a484=_0x258da5['commandParams'][0x0]['newValue'];return _0x57a484?{'type':'format','content':o(_0x12168c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x57a484+'\x22')}:{'type':'format','content':o(_0x12168c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x258da5['commandName']){const _0x810e84=_0x258da5['commandParams'][0x0]['width'];return _0x810e84?{'type':'format','content':o(_0x12168c,'*Set\x20image\x20width:*\x20%0',_0x810e84)}:{'type':'format','content':o(_0x12168c,'*Reset\x20image\x20width*')};}}});}}class st extends _0x2b5176{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x30959b=this['editor']['locale'],_0x55a924=this['editor']['plugins']['get']('TrackChangesEditing');_0x55a924['enableDefaultAttributesIntegration']('replaceImageSource'),_0x55a924['registerBlockAttribute']('src'),_0x55a924['descriptionFactory']['registerDescriptionCallback'](_0x2fd8fa=>{if('attribute'!=_0x2fd8fa['type'])return;const {data:_0x12e121}=_0x2fd8fa;return _0x12e121&&'src'==_0x12e121['key']?_0x12e121['newValue']&&_0x12e121['oldValue']?{'type':'format','content':o(_0x30959b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x225a85=this['editor']['plugins']['get']('TrackChangesEditing');_0x225a85['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x225a85['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x225a85['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x225a85['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fdd3c=this['editor'],_0x5e6b93=_0x4fdd3c['locale'];_0x4fdd3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3685ad=>{if('formatBlock'!=_0x3685ad['type']&&'formatInline'!=_0x3685ad['type'])return;const {data:_0x25dd4c}=_0x3685ad;if(!_0x25dd4c||'replaceImageSource'!=_0x25dd4c['commandName'])return;return{'type':'format','content':o(_0x5e6b93,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x2b5176{['afterInit'](){const _0x153cce=this['editor'];if(!_0x153cce['plugins']['has']('ImageStyleEditing'))return;const _0xcbee0d=_0x153cce['plugins']['get']('TrackChangesEditing'),_0x3dc7b3=_0x153cce['plugins']['get']('ImageUtils'),_0x20c605={};_0xcbee0d['enableCommand']('imageStyle',(_0x3e5554,_0x44d759)=>{const _0x1310df=_0x153cce['plugins']['get']('Users')['me'],_0x5bb91a=_0x153cce['commands']['get']('imageStyle');let _0x19776c=_0x3dc7b3['getClosestSelectedImageElement'](_0x153cce['model']['document']['selection']),_0x536f7a=_0x153cce['model']['createRangeOn'](_0x19776c),_0x47b668=_0x5bb91a['value'];if(_0x47b668==_0x44d759['value'])return;const _0x37afca={'commandName':'imageStyle','commandParams':[_0x44d759],'formatGroupId':_0x2218f2()};_0x153cce['model']['change'](()=>{if(_0xcbee0d['getSuggestions']()['filter'](_0x1fa6e2=>_0x1fa6e2['isInContent']&&_0x1310df==_0x1fa6e2['author']&&('formatBlock'==_0x1fa6e2['type']||'formatInline'==_0x1fa6e2['type'])&&('imageStylePreApply'==_0x1fa6e2['subType']||'imageStylePostApply'==_0x1fa6e2['subType'])&&_0x1fa6e2['getFirstRange']()['isEqual'](_0x536f7a))['forEach'](_0x4bc40d=>_0xcbee0d['discardSuggestion'](_0x4bc40d['head'])),_0x19776c=_0x3dc7b3['getClosestSelectedImageElement'](_0x153cce['model']['document']['selection']),_0x536f7a=_0x153cce['model']['createRangeOn'](_0x19776c),_0x5bb91a['refresh'](),_0x153cce['commands']['get']('imageTypeInline')['refresh'](),_0x153cce['commands']['get']('imageTypeBlock')['refresh'](),_0x47b668=_0x5bb91a['value'],_0x47b668!=_0x44d759['value'])return _0x3dc7b3['isInlineImage'](_0x19776c)&&_0x5bb91a['shouldConvertImageType'](_0x44d759['value'],_0x19776c)?(_0x3e5554({..._0x44d759,'setImageSizes':!0x1}),_0x19776c=_0x3dc7b3['getClosestSelectedImageElement'](_0x153cce['model']['document']['selection']),void _0xcbee0d['markBlockFormat'](_0x19776c,{..._0x37afca,'commandReversedParams':[{'value':_0x47b668||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3dc7b3['isBlockImage'](_0x19776c)?_0xcbee0d['markBlockFormat'](_0x19776c,_0x37afca,[],'imageStylePostApply'):_0xcbee0d['markInlineFormat'](_0x536f7a,_0x37afca,'imageStylePostApply'));});});for(const _0x58e151 of _0x153cce['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x20c605[_0x58e151['name']]=_0x58e151['title']['toLowerCase']();_0xcbee0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xcbee0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xcbee0d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xcbee0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xd416a6])=>{_0x3dc7b3['setImageNaturalSizeAttributes'](_0xd416a6['getContainedElement']());}),_0xcbee0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4f54ec,_0x4a638f)=>{_0xcbee0d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4f54ec,{'commandName':_0x4a638f['commandName'],'commandParams':_0x4a638f['commandReversedParams']});}),_0xcbee0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x20591b,_0x24aa10){if(_0x36635b(_0x20591b,_0x24aa10))return[_0x20591b,_0x24aa10];if(_0x36635b(_0x24aa10,_0x20591b))return[_0x24aa10,_0x20591b];return null;});const _0x1c8c9c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x36635b(_0x49628d,_0x2bb6b0){const _0x5acc1d=_0x1c8c9c['findIndex'](({type:_0x1fb5d8,subType:_0x46a996})=>_0x49628d['type']==_0x1fb5d8&&_0x49628d['subType']==_0x46a996),_0x4ca42a=_0x1c8c9c['findIndex'](({type:_0x4cdb04,subType:_0x105921})=>_0x2bb6b0['type']==_0x4cdb04&&_0x2bb6b0['subType']==_0x105921);if(_0x5acc1d<0x0||_0x4ca42a<0x0)return!0x1;const _0x1cd48a=_0x49628d['getFirstRange'](),_0x1a5004=_0x2bb6b0['getFirstRange']();if((0x0==_0x5acc1d||0x1==_0x5acc1d)&&0x2==_0x4ca42a&&_0x1cd48a['isIntersecting'](_0x1a5004))return!0x0;if(0x2==_0x5acc1d&&0x3==_0x4ca42a){const _0x21b756=_0xcbee0d['_findSuggestions'](_0x1cd48a,'insertion')['filter'](({suggestion:_0x35fb60,meta:_0x56fad8})=>_0x56fad8['isOwn']&&'convertInlineImageToBlock'==_0x35fb60['subType']);if(_0x21b756['length']>0x1&&_0x1a5004['end']['isEqual'](_0x1cd48a['start']))return!0x0;if(0x1==_0x21b756['length']&&(_0x1cd48a['start']['isEqual'](_0x1a5004['end'])||_0x1cd48a['end']['isEqual'](_0x1a5004['start'])))return!0x0;}if(0x3==_0x5acc1d&&0x3==_0x4ca42a&&_0x1cd48a['start']['isBefore'](_0x1a5004['start'])){const _0x1a1078=_0x1cd48a['end']['nodeAfter'],_0x5e3ce1=_0x1a5004['start']['nodeBefore'];return _0x3dc7b3['isBlockImage'](_0x1a1078)&&_0x1a1078===_0x5e3ce1;}return!0x1;}_0x153cce['model']['document']['registerPostFixer'](()=>{let _0x39a819=!0x1;const _0x5d52a8=Array['from'](_0x153cce['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12a9b8,data:_0x33d62c}of _0x5d52a8){const {group:_0x472eff,type:_0x42f8a9,subType:_0x718999,id:_0x4704ad}=_0xcbee0d['_splitMarkerName'](_0x12a9b8);if('suggestion'==_0x472eff&&_0xcbee0d['hasSuggestion'](_0x4704ad)){if('formatBlock'==_0x42f8a9&&('imageStylePreApply'==_0x718999||'imageStylePostApply'==_0x718999)){const _0x4f23bc=_0xcbee0d['getSuggestion'](_0x4704ad);if(_0x33d62c['newRange']){const _0x6ce3d1=_0x4f23bc['getFirstRange']()['getContainedElement']();if(_0x3dc7b3['isBlockImage'](_0x6ce3d1))continue;_0xcbee0d['discardSuggestion'](_0x4f23bc),_0x39a819=!0x0;}}if('insertion'==_0x42f8a9&&'imageCaption'==_0x718999&&!_0x33d62c['newRange']){const _0x31b1a4=_0xcbee0d['getSuggestion'](_0x4704ad);_0x31b1a4['next']&&_0x31b1a4['next']['isInContent']&&(_0xcbee0d['discardSuggestion'](_0x31b1a4['next']),_0x39a819=!0x0);}}}return _0x39a819;}),this['_registerLegacyDescription'](_0x20c605);}['_registerLegacyDescription'](_0xd77079){const _0x3d295d=this['editor'],_0x147655=_0x3d295d['locale'];_0x3d295d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e9c9b=>{if('formatBlock'!=_0x5e9c9b['type']&&'formatInline'!=_0x5e9c9b['type'])return;const {data:_0x5e3b61}=_0x5e9c9b;if(!_0x5e3b61||'imageStyle'!=_0x5e3b61['commandName'])return;const _0x2e47cc=_0x5e3b61['commandParams'][0x0]['value'];return _0x120c5c('side'===_0x2e47cc?o(_0x147655,'FORMAT_SIDE_IMAGE'):_0xd77079[_0x2e47cc]||_0x2e47cc);function _0x120c5c(_0x1fe001){return{'type':'format','content':o(_0x147655,'*Format:*\x20%0',_0x1fe001)};}});}}class ot extends _0x2b5176{['afterInit'](){const _0x4f5c4b=this['editor'],_0x1d9da6=_0x4f5c4b['commands']['get']('importWord'),_0x56605f=_0x4f5c4b['commands']['get']('trackChanges');_0x1d9da6&&(_0x1d9da6['on']('execute',(_0x102cf1,[,_0x377d7e])=>{this['_trackChangesValueDuringImport']=_0x56605f['value'],_0x377d7e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1d9da6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1d9da6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x56605f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4f5c4b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xe0cec5,_0x55d891){const {suggestions:_0x537876}=_0x55d891,_0x2d3d7a=this['editor']['commands']['get']('trackChanges'),_0x540b1b=_0x2d3d7a['value'];this['_trackChangesValueDuringImport']!==_0x540b1b&&(_0x2d3d7a['execute'](),this['_trackChangesExecuted']=!0x0),_0x537876&&_0x537876['forEach'](({id:_0x8ae3d1,type:_0x697545,author:_0x22b1f8,created_at:_0x3b4c20})=>{const _0x5959d3={'id':_0x8ae3d1,'type':_0x697545,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x22b1f8,'createdAt':_0x3b4c20?new Date(_0x3b4c20):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5959d3);});}constructor(_0x3d2dbe){super(_0x3d2dbe),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x2b5176{['afterInit'](){const _0x561cd8=this['editor'],_0x3c31a1=_0x561cd8['plugins']['get']('TrackChangesEditing');if(_0x561cd8['plugins']['has']('IndentEditing')&&(_0x3c31a1['enableCommand']('indent'),_0x3c31a1['enableCommand']('outdent')),_0x561cd8['plugins']['has']('IndentBlock')){for(const _0x380c88 of['indentBlock','outdentBlock'])_0x3c31a1['enableDefaultAttributesIntegration'](_0x380c88);}const _0x355ee6=_0x561cd8['locale'];_0x3c31a1['registerBlockAttribute']('blockIndent'),_0x3c31a1['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x355ee6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38730a=this['editor'],_0x30fef8=_0x38730a['locale'],_0x555af0=_0x38730a['plugins']['get']('TrackChangesEditing');_0x555af0['descriptionFactory']['registerDescriptionCallback'](_0x2fc7eb=>{if('formatBlock'!=_0x2fc7eb['type'])return;const {data:_0x2b6b86}=_0x2fc7eb;if(!_0x2b6b86)return;if('indentBlock'!=_0x2b6b86['commandName']&&'outdentBlock'!=_0x2b6b86['commandName'])return;const _0x211a91=_0x2fc7eb['getItems']()[0x0],_0xa08ed2=_0x555af0['descriptionFactory']['getItemLabel'](_0x211a91);return'indentBlock'==_0x2b6b86['commandName']?{'type':'format','content':o(_0x30fef8,'*Indent:*\x20%0',_0xa08ed2)}:'outdentBlock'==_0x2b6b86['commandName']?{'type':'format','content':o(_0x30fef8,'*Outdent:*\x20%0',_0xa08ed2)}:void 0x0;});}}class at extends _0x2b5176{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x2b5176{['afterInit'](){const _0x1dccd1=this['editor'];if(!_0x1dccd1['plugins']['has']('LinkEditing'))return;const _0x1fcf9e=_0x1dccd1['plugins']['get']('TrackChangesEditing'),_0x2085a9=_0x1dccd1['commands']['get']('link');_0x1fcf9e['enableDefaultAttributesIntegration']('link'),_0x1fcf9e['enableDefaultAttributesIntegration']('unlink'),_0x1fcf9e['registerInlineAttribute']('linkHref');for(const _0x26f2c0 of _0x2085a9['manualDecorators'])_0x1fcf9e['registerInlineAttribute'](_0x26f2c0['id']),_0x1fcf9e['descriptionFactory']['registerAttributeLabel'](_0x26f2c0['id'],'link\x20('+_0x26f2c0['label']['toLowerCase']()+')');_0x1fcf9e['descriptionFactory']['registerDescriptionCallback'](_0x14a4eb=>{if('attribute'!=_0x14a4eb['type'])return;const {data:_0x38e9f7}=_0x14a4eb;if(!_0x38e9f7||'linkHref'!=_0x38e9f7['key'])return;const _0x2a76b6=_0x38e9f7['newValue'],_0x49c849=_0x1dccd1['locale'];return{'type':'format','content':null==_0x2a76b6?o(_0x49c849,'*Remove\x20link*'):o(_0x49c849,'*Set\x20link:*\x20%0','\x22'+_0x2a76b6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x208ca3=this['editor'],_0x276a8e=_0x208ca3['locale'];_0x208ca3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37b49e=>{if('formatInline'!=_0x37b49e['type'])return;const {data:_0xeb16e1}=_0x37b49e;if(_0xeb16e1){if('link'==_0xeb16e1['commandName']){const _0x49d092=_0xeb16e1['commandParams'][0x0];return{'type':'format','content':o(_0x276a8e,'*Set\x20link:*\x20%0','\x22'+_0x49d092+'\x22')};}return'unlink'==_0xeb16e1['commandName']?{'type':'format','content':o(_0x276a8e,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x2b5176{['afterInit'](){const _0x312a0f=this['editor'],_0x5a2186=_0x312a0f['locale'];if(!_0x312a0f['plugins']['has']('LegacyListEditing'))return;const _0x208c9f=_0x312a0f['plugins']['get']('TrackChangesEditing'),_0x3e7288=_0x312a0f['plugins']['has']('LegacyTodoListEditing');function _0x3b4158(_0x21b9dd){return()=>{const _0x572222=_0x312a0f['model']['document']['selection'],_0x210863=_0x312a0f['commands']['get'](_0x21b9dd);if(_0x210863['value'])return void _0x312a0f['execute']('paragraph',{});const _0x2140f1=_0x21b9dd['slice'](0x0,-0x4),_0x3e0942=function(_0x3575cc,_0x4d53d1,_0x452cef){let _0x2088bf=Array['from'](_0x3575cc)['filter'](_0x2774c7=>function(_0x3f6fe1,_0x528071){return _0x528071['checkChild'](_0x3f6fe1['parent'],'listItem')&&!_0x528071['isObject'](_0x3f6fe1);}(_0x2774c7,_0x452cef));_0x2088bf=_0x2088bf['filter'](_0x326454=>!_0x326454['is']('element','listItem')||_0x326454['getAttribute']('listType')!=_0x4d53d1);const _0x251b86=new Set();for(const _0x4dfb53 of _0x2088bf)_0x4dfb53['is']('element','listItem')?_0x251b86['add'](me(_0x4dfb53)):_0x251b86['add'](_0x4dfb53);return Array['from'](_0x251b86);}(_0x572222['getSelectedBlocks'](),_0x2140f1,_0x312a0f['model']['schema']);_0x312a0f['model']['change'](()=>{for(const _0x37f832 of _0x3e0942)_0x208c9f['markBlockFormat'](_0x37f832,{'commandName':_0x21b9dd,'commandParams':[{'forceValue':!_0x210863['value']}],'formatGroupId':'blockName'},fe(_0x37f832));});};}function _0x554bf3(_0x43c8a7){return()=>{const _0x6ecbb9=function(_0x298df9){let _0x4292d7=Array['from'](_0x298df9);const _0x4aea47=_0x4292d7['findIndex'](_0x4ccafd=>'listItem'!=_0x4ccafd['name']);return _0x4aea47>-0x1&&(_0x4292d7=_0x4292d7['slice'](0x0,_0x4aea47)),_0x4292d7;}(_0x312a0f['model']['document']['selection']['getSelectedBlocks']()),_0x32a373=_0x312a0f['model']['createRange'](_0x312a0f['model']['createPositionAt'](_0x6ecbb9[0x0],'before'),_0x312a0f['model']['createPositionAt'](_0x6ecbb9[_0x6ecbb9['length']-0x1],'end'));_0x312a0f['model']['change'](()=>{_0x208c9f['markBlockFormat'](_0x32a373,{'commandName':_0x43c8a7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x329fc6){const _0x4a2562=new Set();for(const _0x41388d of _0x329fc6){let _0x179a3b=_0x41388d['nextSibling'];for(;_0x179a3b&&_0x179a3b['getAttribute']('listIndent')>_0x41388d['getAttribute']('listIndent');)_0x4a2562['add'](_0x179a3b),_0x179a3b=_0x179a3b['nextSibling'];}return Array['from'](_0x4a2562);}(_0x6ecbb9));});};}_0x208c9f['enableCommand']('numberedList',_0x3b4158('numberedList')),_0x208c9f['enableCommand']('bulletedList',_0x3b4158('bulletedList')),_0x3e7288&&_0x208c9f['enableCommand']('todoList',_0x3b4158('todoList')),_0x208c9f['enableCommand']('indentList',_0x554bf3('indentList')),_0x208c9f['enableCommand']('outdentList',_0x554bf3('outdentList')),_0x3e7288&&_0x208c9f['enableCommand']('checkTodoList',()=>{const _0x123a0f=_0x312a0f['commands']['get']('checkTodoList'),_0x3a8cbe=Array['from'](_0x123a0f['_selectedElements']);_0x3a8cbe['filter'](_0x15c436=>_0x15c436['getAttribute']('todoListChecked')!=_0x123a0f['value']),_0x312a0f['model']['change'](()=>{for(const _0x2ffce0 of _0x3a8cbe)_0x208c9f['markBlockFormat'](_0x2ffce0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x123a0f['value']}]});});}),_0x208c9f['descriptionFactory']['registerElementLabel']('listItem',_0x23d759=>o(_0x5a2186,'ELEMENT_LIST_ITEM',_0x23d759)),_0x208c9f['descriptionFactory']['registerDescriptionCallback'](_0x540794=>{if('formatBlock'!=_0x540794['type']&&'formatInline'!=_0x540794['type'])return;const {data:_0x36656a}=_0x540794;if(_0x36656a){if('numberedList'==_0x36656a['commandName']||'bulletedList'==_0x36656a['commandName']||'todoList'==_0x36656a['commandName'])switch(_0x36656a['commandName']['replace']('List','')){case'bulleted':return _0x2f7316(o(_0x5a2186,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2f7316(o(_0x5a2186,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2f7316(o(_0x5a2186,'ELEMENT_TODO_LIST'));}if('indentList'==_0x36656a['commandName'])return{'type':'format','content':o(_0x5a2186,'*Indent:*\x20%0',o(_0x5a2186,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x36656a['commandName'])return{'type':'format','content':o(_0x5a2186,'*Outdent:*\x20%0',o(_0x5a2186,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x36656a['commandName'])return _0x36656a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a2186,'*Check\x20item*')}:{'type':'format','content':o(_0x5a2186,'*Uncheck\x20item*')};}function _0x2f7316(_0x1f5361){return{'type':'format','content':o(_0x5a2186,'*Change\x20to:*\x20%0',_0x1f5361)};}});}}function me(_0x1b31ec){const _0x250d79=_0x1b31ec['getAttribute']('listIndent');if(0x0==_0x250d79)return _0x1b31ec;let _0x1e54d7=_0x1b31ec;for(;_0x1b31ec['previousSibling']&&_0x1b31ec['previousSibling']['is']('element','listItem');){const _0x1dc733=_0x1b31ec['previousSibling']['getAttribute']('listIndent');if(_0x1dc733==_0x250d79)_0x1e54d7=_0x1b31ec['previousSibling'];else{if(_0x1dc733<_0x250d79)break;}_0x1b31ec=_0x1b31ec['previousSibling'];}return _0x1e54d7;}function fe(_0x5e46c8){const _0x470b0d=[];if(_0x5e46c8['is']('element','listItem')&&_0x5e46c8['getAttribute']('listIndent')>0x0){let _0x4b2649=_0x5e46c8['nextSibling'];for(;_0x4b2649&&'listItem'==_0x4b2649['name']&&_0x4b2649['getAttribute']('listIndent')==_0x5e46c8['getAttribute']('listIndent');)_0x470b0d['push'](_0x4b2649),_0x4b2649=_0x4b2649['nextSibling'];}return _0x470b0d;}class K extends _0x2b5176{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x27f3e0=this['editor']['config']['get']('list.properties'),_0x2237dc=this['editor']['plugins']['get']('TrackChangesEditing');_0x27f3e0['styles']&&_0x2237dc['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x27f3e0['reversed']&&_0x2237dc['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x27f3e0['startIndex']&&_0x2237dc['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2237dc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4218dc,_0x578053={}){const _0x556e30=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2334c4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x556e30['markMultiRangeBlockFormat'](_0x2334c4,{'commandName':'listStyle','commandParams':[{'type':_0x578053['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x171533,_0xfb7cb2={}){const _0x3dc185=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1807e6=this['_getSuggestionBlocks'](_0x34fbdc=>_0x34fbdc['is']('element','listItem')&&'numbered'===_0x34fbdc['getAttribute']('listType'));if(_0x1807e6['length']<0x1)return;const _0x11817f=_0x1807e6['map'](_0x57f156=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x57f156,'before'),this['editor']['model']['createPositionAt'](_0x57f156,0x0)));this['editor']['model']['change'](()=>{_0x3dc185['markMultiRangeBlockFormat'](_0x11817f,{'commandName':'listReversed','commandParams':[{'reversed':_0xfb7cb2['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2b79be,_0x1a1a95={}){const _0x4f94a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x521331=this['_getSuggestionBlocks'](_0x2c05fe=>_0x2c05fe['is']('element','listItem')&&'numbered'===_0x2c05fe['getAttribute']('listType'));if(_0x521331['length']<0x1)return;const _0x47d342=_0x521331['map'](_0x1b14df=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b14df,'before'),this['editor']['model']['createPositionAt'](_0x1b14df,0x0)));this['editor']['model']['change'](()=>{_0x4f94a6['markMultiRangeBlockFormat'](_0x47d342,{'commandName':'listStart','commandParams':[{'startIndex':_0x1a1a95['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1cec56){if('formatBlock'!=_0x1cec56['type']&&'formatInline'!=_0x1cec56['type'])return;const _0x3fdecb=this['editor']['locale'],{data:_0xb17bae}=_0x1cec56;if(!_0xb17bae)return;let _0x149f2d,_0x3c67cf;switch(_0xb17bae['commandName']){case'listStyle':_0x149f2d='*Change\x20to:*\x20%0',_0x3c67cf={'type':'format','content':o(_0x3fdecb,_0x149f2d,o(_0x3fdecb,this['_getTranslationKeyForListStyle'](_0xb17bae['commandParams'][0x0]['type'])))};break;case'listReversed':_0x149f2d=_0xb17bae['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3c67cf={'type':'format','content':o(_0x3fdecb,_0x149f2d)};break;case'listStart':_0x149f2d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3c67cf={'type':'format','content':o(_0x3fdecb,_0x149f2d,_0xb17bae['commandParams'][0x0]['startIndex'])};}return _0x3c67cf;}['_getSuggestionBlocksForListStyle'](){var _0x404270,_0x8d3a31,_0x387490,_0x3c3e9b;const _0x423ac2=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a54c7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x404270=_0x5a54c7[0x0])||void 0x0===_0x404270?void 0x0:_0x404270['is']('element','listItem'))&&_0x5a54c7['unshift'](..._0x423ac2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x8d3a31=_0x5a54c7[_0x5a54c7['length']-0x1])||void 0x0===_0x8d3a31?void 0x0:_0x8d3a31['is']('element','listItem'))&&_0x5a54c7['push'](..._0x423ac2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5a54c7=[...new Set(_0x5a54c7)],(null===(_0x3c3e9b=null===(_0x387490=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x387490?void 0x0:_0x387490['parent'])||void 0x0===_0x3c3e9b?void 0x0:_0x3c3e9b['is']('element','listItem'))&&(_0x5a54c7=_0x5a54c7['filter'](_0x3f7d05=>_0x3f7d05['is']('element','listItem'))),_0x5a54c7;}['_getSuggestionBlocks'](_0x2d3bea){const _0x1c8e28=this['editor']['plugins']['get']('LegacyListUtils');let _0x2782b1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2d3bea)['map'](_0x3a2137=>{const _0x229f6c=this['editor']['model']['createPositionAt'](_0x3a2137,0x0);return[..._0x1c8e28['getSiblingNodes'](_0x229f6c,'backward'),..._0x1c8e28['getSiblingNodes'](_0x229f6c,'forward')];})['flat']();return _0x2782b1=[...new Set(_0x2782b1)],_0x2782b1;}['_getTranslationKeyForListStyle'](_0x48e945){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x48e945)||'default')['toUpperCase']()+'_LIST_'+_0x48e945['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x2b5176{['afterInit'](){const _0x323470=this['editor'];if(!_0x323470['plugins']['has']('MediaEmbedEditing'))return;const _0x40b296=_0x323470['plugins']['get']('TrackChangesEditing'),_0x207fe3=_0x323470['locale'];_0x40b296['enableCommand']('mediaEmbed'),_0x40b296['descriptionFactory']['registerElementLabel']('media',_0x93276=>o(_0x207fe3,'ELEMENT_MEDIA',_0x93276)),_0x323470['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x564992,{writer:_0x23f992,options:_0x5494ac})=>{if(_0x5494ac['showSuggestionHighlights'])return _0x23f992['createEmptyElement']('div');},'converterPriority':'high'}),_0x323470['data']['downcastDispatcher']['on']('attribute:url:media',(_0x44c4c8,_0x314eb0,_0x213f54)=>{_0x213f54['options']['showSuggestionHighlights']&&_0x44c4c8['stop']();},{'priority':'high'});}}class gt extends _0x2b5176{['afterInit'](){const _0x35b6fb=this['editor'];_0x35b6fb['plugins']['has']('MentionEditing')&&_0x35b6fb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x2b5176{['afterInit'](){const _0x9b8d5b=this['editor'],_0x13da9a=_0x9b8d5b['plugins']['get']('TrackChangesEditing');_0x9b8d5b['plugins']['has']('MultiLevelList')&&(_0x13da9a['enableDefaultAttributesIntegration']('multiLevelList'),_0x13da9a['registerBlockAttribute']('listMarkerStyle'),_0x13da9a['descriptionFactory']['registerDescriptionCallback'](_0x5ce739=>this['handleDescriptions'](_0x5ce739)));}['handleDescriptions'](_0x48a5d1){const _0x4bef43=this['editor']['locale'],{data:_0x5630d9}=_0x48a5d1,_0x4069a9={'type':'format','content':''};if(_0x5630d9&&'listMarkerStyle'==_0x5630d9['key']){if(!_0x5630d9['oldValue'])return{'type':'format','content':o(_0x4bef43,'*Set\x20format:*\x20%0',o(_0x4bef43,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5630d9['newValue']+')'};if(!_0x5630d9['newValue']){let _0x47f595=_0x48a5d1['head'];for(;_0x47f595;){if(_0x47f595['data']&&'listType'==_0x47f595['data']['key']&&_0x47f595['data']['newValue'])return _0x4069a9;_0x47f595=_0x47f595['next'];}return{'type':'format','content':o(_0x4bef43,'*Remove\x20format:*\x20%0',o(_0x4bef43,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5630d9['oldValue']+')'};}}}}class mt extends _0x2b5176{['afterInit'](){const _0x2ec825=this['editor'];if(!_0x2ec825['plugins']['has']('PageBreakEditing'))return;_0x2ec825['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x23c420=_0x2ec825['plugins']['get']('TrackChangesEditing'),_0x3d6536=_0x2ec825['locale'];_0x23c420['descriptionFactory']['registerElementLabel']('pageBreak',_0x38baa8=>o(_0x3d6536,'ELEMENT_PAGE_BREAK',_0x38baa8));}}class dt extends _0x2b5176{['afterInit'](){const _0x1e4e7c=this['editor'];if(!_0x1e4e7c['plugins']['has']('Paragraph'))return;const _0x45a9ca=_0x1e4e7c['locale'],_0x1b2eee=_0x1e4e7c['plugins']['get']('TrackChangesEditing');_0x1b2eee['descriptionFactory']['registerElementLabel']('paragraph',_0x179c54=>o(_0x45a9ca,'ELEMENT_PARAGRAPH',_0x179c54)),_0x1b2eee['enableDefaultAttributesIntegration']('paragraph'),_0x1b2eee['enableCommand']('insertParagraph'),_0x1e4e7c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1e4e7c),{'priority':'highest'}),_0x1e4e7c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x30ab70,_0x7d45c2,_0x5ac897)=>{_0x5ac897['options']['showSuggestionHighlights']&&nr(_0x1e4e7c,{'showActiveMarker':!0x1})(_0x30ab70,_0x7d45c2,_0x5ac897);},{'priority':'highest'});const _0x29f7aa=_0x1b2eee['descriptionFactory'];_0x29f7aa['registerDescriptionCallback'](_0x3aa0bf=>{if('insertion'!==_0x3aa0bf['type'])return;const {start:_0x10fbf3,end:_0x2f8ff0}=_0x3aa0bf['getFirstRange']();if(!_0x10fbf3['isTouching'](_0x2f8ff0)||!_0x10fbf3['nodeAfter'])return;const _0x1c0b2c=_0x1e4e7c['model']['schema'],_0x4336e0=_0x10fbf3['nodeAfter'];return _0x1c0b2c['isBlock'](_0x4336e0)&&!_0x1c0b2c['isLimit'](_0x4336e0)&&_0x1c0b2c['checkChild'](_0x4336e0,'$text')?{'type':'insertion','content':o(_0x45a9ca,'*Insert:*\x20%0',_0x29f7aa['getItemLabel'](_0x4336e0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48bdf2=this['editor'],_0x3a9243=_0x48bdf2['locale'];_0x48bdf2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7327c4=>{if('formatBlock'!=_0x7327c4['type'])return;const {data:_0x52205b}=_0x7327c4;return _0x52205b&&'paragraph'==_0x52205b['commandName']?{'type':'format','content':o(_0x3a9243,'*Change\x20to:*\x20%0',o(_0x3a9243,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x332722,{showActiveMarker:_0x500a17=!0x0}={}){return(_0x10a517,_0x2694b3,_0x4ecf8e)=>{const _0x4d1a59=_0x332722['plugins']['get']('TrackChangesEditing'),_0x424dc2=_0x2694b3['markerRange']['start'],_0x750370=_0x2694b3['markerRange']['end'],_0x5967d1=_0x332722['model']['schema'];if(!_0x424dc2['isTouching'](_0x750370)||!_0x424dc2['nodeAfter'])return;const _0x54e4e1=_0x424dc2['nodeAfter'];if(_0x5967d1['isBlock'](_0x54e4e1)&&!_0x5967d1['isLimit'](_0x54e4e1)&&_0x5967d1['checkChild'](_0x54e4e1,'$text')){if(!_0x4ecf8e['consumable']['consume'](_0x2694b3['markerRange'],_0x10a517['name']))return;const _0x12712d=_0x4ecf8e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x3bacfb=_0x4ecf8e['mapper']['toViewPosition'](_0x750370);_0x500a17&&_0x4d1a59['activeMarkers']['includes'](_0x2694b3['markerName'])&&_0x4ecf8e['writer']['addClass']('ck-suggestion-marker--active',_0x12712d),_0x4ecf8e['writer']['insert'](_0x3bacfb,_0x12712d),_0x4ecf8e['mapper']['bindElementToMarker'](_0x12712d,_0x2694b3['markerName']);}};}class pt extends _0x2b5176{['afterInit'](){const _0x18f5f8=this['editor'];if(!_0x18f5f8['plugins']['has']('RemoveFormatEditing'))return;_0x18f5f8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xff3ef2=this['editor'];_0xff3ef2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50696a=>{if('formatBlock'!=_0x50696a['type']&&'formatInline'!=_0x50696a['type'])return;const {data:_0x552011}=_0x50696a;return _0x552011&&'removeFormat'==_0x552011['commandName']?{'type':'format','content':o(_0xff3ef2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x2b5176{['afterInit'](){const _0x5696b1=this['editor'];if(!_0x5696b1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xc9fb=_0x5696b1['plugins']['get']('TrackChangesEditing');_0xc9fb['enableCommand']('goToPreviousRestrictedEditingException'),_0xc9fb['enableCommand']('goToNextRestrictedEditingException');const _0x533d8d=_0x5696b1['plugins']['get']('RestrictedEditingModeEditing');_0x533d8d['enableCommand']('trackChanges'),_0x533d8d['enableCommand']('acceptSuggestion'),_0x533d8d['enableCommand']('discardSuggestion'),_0x533d8d['enableCommand']('acceptAllSuggestions'),_0x533d8d['enableCommand']('discardAllSuggestions'),_0x533d8d['enableCommand']('acceptSelectedSuggestions'),_0x533d8d['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x2b5176{static get['requires'](){return[_0x10a8fc];}['init'](){const _0x5a78a4=this['editor'],_0x5d5640=_0x5a78a4['plugins']['get']('TrackChangesEditing');_0x5d5640['enableCommand']('shiftEnter'),_0x5a78a4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x5a78a4),{'priority':'high'}),_0x5a78a4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x5a78a4),{'priority':'high'}),_0x5a78a4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59c49c,_0x39eefd,_0x547089)=>{_0x547089['options']['showSuggestionHighlights']&&de(_0x5a78a4,{'showActiveMarker':!0x1})(_0x59c49c,_0x39eefd,_0x547089);}),_0x5d5640['descriptionFactory']['registerElementLabel']('softBreak',_0x31b667=>o(_0x5a78a4['locale'],'ELEMENT_LINE_BREAK',_0x31b667));}}function de(_0x53dc85,{showActiveMarker:_0x44573a=!0x0}={}){return(_0x1f5b8c,_0x4c40c9,_0x972d89)=>{const _0x332c44=_0x53dc85['plugins']['get']('TrackChangesEditing');if(!_0x972d89['consumable']['test'](_0x4c40c9['markerRange'],_0x1f5b8c['name']))return;const _0x55831e=_0x53dc85['model'];for(const _0x2df321 of _0x4c40c9['markerRange']['getItems']()){if(!_0x2df321['is']('element','softBreak'))continue;const _0x57af0c='deletion'==_0x4c40c9['markerName']['split'](':')[0x1]?'merge':'split',_0x39dc11=_0x972d89['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x57af0c}),_0x2a08b2=_0x972d89['mapper']['toViewPosition'](_0x55831e['createPositionBefore'](_0x2df321));_0x44573a&&_0x332c44['activeMarkers']['includes'](_0x4c40c9['markerName'])&&_0x972d89['writer']['addClass']('ck-suggestion-marker--active',_0x39dc11),_0x972d89['writer']['insert'](_0x2a08b2,_0x39dc11),_0x972d89['mapper']['bindElementToMarker'](_0x39dc11,_0x4c40c9['markerName']);}};}class wt extends _0x2b5176{['afterInit'](){const _0x5b90d1=this['editor'],_0x5db401=_0x5b90d1['model'],_0x14db91=_0x5b90d1['locale'];if(!_0x5b90d1['plugins']['has']('StandardEditingModeEditing'))return;const _0x140ec4=_0x5b90d1['plugins']['get']('TrackChangesEditing'),_0x92a6e7='restrictedEditingException',_0x2b3720=_0x5b90d1['commands']['get'](_0x92a6e7);_0x140ec4['enableCommand'](_0x92a6e7,(_0x238b5c,_0x215440={})=>{const _0x2453bf=_0x5db401['document']['selection'];if(_0x2453bf['isCollapsed'])return void _0x238b5c(_0x215440);const _0x566e30=void 0x0!==_0x215440['forceValue']?_0x215440['forceValue']:!_0x2b3720['value'];_0x5db401['change'](()=>{const _0x526648=Array['from'](_0x2453bf['getRanges']());for(const _0x302834 of _0x526648){const _0x2e6505=_0x566e30?[_0x302834]:io(_0x92a6e7,_0x302834,_0x5db401);for(const _0x51627b of _0x2e6505)_0x140ec4['markInlineFormat'](_0x51627b,{'commandName':_0x92a6e7,'commandParams':[{'forceValue':_0x566e30}]});}});}),_0x140ec4['descriptionFactory']['registerDescriptionCallback'](_0xceaf3b=>{if('formatBlock'!=_0xceaf3b['type']&&'formatInline'!=_0xceaf3b['type'])return;const {data:_0x5947a8}=_0xceaf3b;return _0x5947a8&&_0x5947a8['commandName']==_0x92a6e7?_0x5947a8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x14db91,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x14db91,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x2b5176{['afterInit'](){const _0x358d36=this['editor'];if(!_0x358d36['plugins']['has']('Style')||!_0x358d36['plugins']['has']('DataSchema'))return;const _0x274c8e=_0x358d36['plugins']['get']('TrackChangesEditing'),_0x269f51=_0x358d36['locale'],_0x48e9ef=_0x358d36['config']['get']('style')||{},_0x525cf5=_0x358d36['plugins']['get']('GeneralHtmlSupport'),_0x541e77=_0x358d36['plugins']['get']('StyleUtils')['normalizeConfig'](_0x358d36['plugins']['get']('DataSchema'),_0x48e9ef['definitions']);_0x274c8e['enableDefaultAttributesIntegration']('style');const _0x326a19=new Set();for(const _0x477da6 of _0x541e77['block']){const _0x1edef9=_0x525cf5['getGhsAttributeNameForElement'](_0x477da6['element']);_0x326a19['add'](_0x1edef9);}const _0x26fe03=new Set();for(const _0x148585 of _0x541e77['inline']){const _0x3017a1=_0x525cf5['getGhsAttributeNameForElement'](_0x148585['element']);_0x26fe03['add'](_0x3017a1);for(const _0x243fa3 of _0x148585['ghsAttributes'])_0x26fe03['add'](_0x243fa3);}for(const _0x1bf607 of _0x326a19)_0x274c8e['registerBlockAttribute'](_0x1bf607),_0x274c8e['descriptionFactory']['registerAttributeLabel'](_0x1bf607,o(_0x269f51,'FORMAT_STYLE'));for(const _0x326e9f of _0x26fe03)_0x274c8e['registerInlineAttribute'](_0x326e9f),_0x274c8e['descriptionFactory']['registerAttributeLabel'](_0x326e9f,o(_0x269f51,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d2fad=this['editor'],_0xa9a98=_0x5d2fad['locale'];_0x5d2fad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x62ea7e=>{if('formatBlock'!=_0x62ea7e['type']&&'formatInline'!=_0x62ea7e['type'])return;const {data:_0x58e17b}=_0x62ea7e;return _0x58e17b&&'style'===_0x58e17b['commandName']?_0x58e17b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa9a98,'*Set\x20format:*\x20%0',_0x58e17b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xa9a98,'*Remove\x20format:*\x20%0',_0x58e17b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x2b5176{['afterInit'](){const _0x2df8b0=this['editor'],_0x948fa5=_0x2df8b0['model']['document']['selection'];if(!_0x2df8b0['plugins']['has']('TableEditing'))return;const _0x572647=_0x2df8b0['locale'],_0x33a49b=_0x2df8b0['plugins']['get']('TrackChangesEditing'),_0x131a02=_0x2df8b0['plugins']['get']('TableUtils');_0x33a49b['descriptionFactory']['registerElementLabel']('table',_0x401dc1=>o(_0x572647,'ELEMENT_TABLE',_0x401dc1)),this['_setupColumnsRowsFixing'](),_0x33a49b['enableCommand']('insertTable'),_0x33a49b['enableCommand']('selectTableRow'),_0x33a49b['enableCommand']('selectTableColumn');for(const _0x16b64c of['insertTableRowAbove','insertTableRowBelow']){const _0x3051e2=_0x2df8b0['commands']['get'](_0x16b64c);_0x33a49b['enableCommand'](_0x16b64c,_0x47c814=>{_0x2df8b0['model']['change'](_0x5b543a=>{_0x47c814();const _0x3df5e1='above'===_0x3051e2['order'],_0x3da277=_0x131a02['getSelectionAffectedTableCells'](_0x948fa5),_0x8e525d=_0x131a02['getRowIndexes'](_0x3da277),_0x2fb3ee=_0x3df5e1?_0x8e525d['first']-0x1:_0x8e525d['last']+0x1,_0x5791d3=_0x3da277[0x0]['findAncestor']('table'),_0x34c09e=_0x131a02['createTableWalker'](_0x5791d3,{'startRow':_0x2fb3ee,'endRow':_0x2fb3ee}),_0x422c3d=Array['from'](_0x34c09e)['map'](_0x22ae87=>_0x5b543a['createRangeOn'](_0x22ae87['cell']));_0x33a49b['markMultiRangeInsertion'](_0x422c3d,'tableRow');});});}for(const _0x143519 of['insertTableColumnLeft','insertTableColumnRight']){const _0x47ec66=_0x2df8b0['commands']['get'](_0x143519);_0x33a49b['enableCommand'](_0x143519,_0x9defd6=>{_0x2df8b0['model']['change'](_0x1407ac=>{_0x9defd6();const _0x4fe930='left'===_0x47ec66['order'],_0x4c66fc=_0x131a02['getSelectionAffectedTableCells'](_0x948fa5),_0x538e6c=_0x131a02['getColumnIndexes'](_0x4c66fc),_0x18e43e=_0x4fe930?_0x538e6c['first']-0x1:_0x538e6c['last']+0x1,_0x3de5d9=_0x4c66fc[0x0]['findAncestor']('table'),_0x437840=_0x131a02['createTableWalker'](_0x3de5d9,{'startRow':0x0,'column':_0x18e43e,'includeAllSlots':!0x1}),_0x1f9982=Array['from'](_0x437840)['map'](_0xfbef3a=>_0x1407ac['createRangeOn'](_0xfbef3a['cell']));_0x33a49b['markMultiRangeInsertion'](_0x1f9982,'tableColumn');});});}for(const _0x4dc528 of['removeTableRow','removeTableColumn']){const _0x2ba1f6=_0x4dc528['substr'](0xb),_0x310c52=_0x2ba1f6['toLowerCase'](),_0x16695b=_0x310c52['substr'](0x0,0x3)+'span',_0x135a53='table'+_0x2ba1f6,_0x5de780='min'+_0x2ba1f6,_0x44d6aa='max'+_0x2ba1f6;_0x33a49b['enableCommand'](_0x4dc528,()=>{_0x2df8b0['model']['change'](_0x38d044=>{const _0x5bd9a4=_0x131a02['getSelectionAffectedTableCells'](_0x948fa5),_0x560c91=_0x5bd9a4[0x0]['findAncestor']('table');let _0x390443;if('removeTableRow'==_0x4dc528){const _0x2661cf=_0x131a02['getRowIndexes'](_0x5bd9a4);_0x390443={'startRow':_0x2661cf['first'],'endRow':_0x2661cf['last'],'includeAllSlots':!0x0};}else{const _0x2adca0=_0x131a02['getColumnIndexes'](_0x5bd9a4);_0x390443={'startColumn':_0x2adca0['first'],'endColumn':_0x2adca0['last'],'includeAllSlots':!0x0};}const _0x4fc458=_0x131a02['createTableWalker'](_0x560c91,_0x390443),_0x12d881=Array['from'](_0x4fc458)['map'](({cell:_0x38e351})=>_0x38e351),_0x24636f=Ee(_0x12d881['filter'](_0x5055b1=>_0x5055b1['hasAttribute'](_0x16695b))),_0x2ccaec=Ee(_0x12d881['filter'](_0x43fb38=>!_0x43fb38['hasAttribute'](_0x16695b)))['map'](_0x2a1a41=>_0x38d044['createRangeOn'](_0x2a1a41)),_0x746529=_0x33a49b['markMultiRangeDeletion'](_0x2ccaec,_0x135a53);if(_0x746529&&('tableRow'==_0x746529['subType']||'tableColumn'==_0x746529['subType'])){const _0x381b3f=this['_getSuggestionCoords'](_0x746529);for(const _0x5ac0bc of _0x24636f){const _0x8af49e=_0x38d044['createRangeOn'](_0x5ac0bc),_0x247ec1=_0x131a02['getCellLocation'](_0x5ac0bc),_0x4ae16d=_0x5ac0bc['getAttribute'](_0x16695b)-0x1,_0xc3c558=_0x381b3f[_0x5de780],_0x4b6d96=_0x381b3f[_0x44d6aa];_0xc3c558<=_0x247ec1[_0x310c52]&&_0x247ec1[_0x310c52]+_0x4ae16d<=_0x4b6d96&&_0x746529['addRange'](_0x8af49e);}}});});}function _0x75bb4c(_0x24e6f3){const _0x3861dd=Array['from'](_0x948fa5['getRanges']())['map'](_0x54b47d=>_0x1aac42['fromRange'](_0x54b47d));_0x2df8b0['model']['change'](_0x1b4a88=>{const _0xb56448=_0x1b4a88['batch'];_0x24e6f3=_0x24e6f3['filter'](_0x357b7f=>'$graveyard'!=_0x357b7f['root']['rootName']),_0x1b4a88['setSelection'](_0x24e6f3),_0x2df8b0['commands']['get']('removeTableRow')['refresh'](),_0x2df8b0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2df8b0['model']['enqueueChange'](()=>{_0x2df8b0['model']['enqueueChange'](_0xb56448,_0x40040e=>{const _0x29f761=_0x3861dd['filter'](_0x5405aa=>'$graveyard'!=_0x5405aa['root']['rootName']);_0x29f761['length']>0x0&&_0x40040e['setSelection'](_0x29f761);for(const _0x51266a of _0x3861dd)_0x51266a['detach']();});});});}function _0x1736b7(_0x26333c){_0x2df8b0['model']['change'](_0x5a3b0d=>{const _0x35eaea=Array['from'](_0x948fa5['getRanges']())['map'](_0x5d2b7e=>_0x1aac42['fromRange'](_0x5d2b7e)),_0x3b7200=[];for(const _0x3c42be of _0x26333c)for(const _0x2abcfa of _0x3c42be['getItems']({'shallow':!0x0}))_0x3b7200['push'](_0x2abcfa);for(const _0xeab13e of _0x3b7200)'$graveyard'!=_0xeab13e['root']['rootName']&&(_0x5a3b0d['setSelection'](_0x5a3b0d['createPositionAt'](_0xeab13e,0x0)),_0x2df8b0['commands']['get']('removeTableColumn')['refresh'](),_0x2df8b0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x104c6f=_0x35eaea['filter'](_0x13dc9f=>'$graveyard'!=_0x13dc9f['root']['rootName']);_0x104c6f['length']>0x0&&_0x5a3b0d['setSelection'](_0x104c6f);for(const _0x1983a9 of _0x35eaea)_0x1983a9['detach']();});}function _0x1d697f(_0xb2d270,_0x16eb86){return _0x16eb86['every'](_0x225618=>_0xb2d270['some'](_0x15cd13=>_0x15cd13['end']['isEqual'](_0x225618['start'])||_0x225618['end']['isEqual'](_0x15cd13['start'])));}function _0x30d4d6(_0x4f5e28,_0xf88bd8){return _0x4f5e28['some'](_0x1c96a5=>_0xf88bd8['some'](_0x270839=>_0x1c96a5['end']['isTouching'](_0x270839['start'])));}_0x2df8b0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x222f6f,_0x239cbd,_0x716d26)=>{if(!_0x716d26['options']['showSuggestionHighlights'])return;const _0x3a9e75=_0x239cbd['item'];if(!_0x3a9e75)return;const _0x4dd16b=_0x716d26['mapper']['toViewElement'](_0x3a9e75);function _0x651f48(_0x4f8738){return Array['isArray'](_0x4f8738)?_0x4f8738:[_0x4f8738];}_0x4dd16b&&'tableCell'===_0x3a9e75['name']&&_0x3ec565(_0x4dd16b,_0x716d26['writer'],(_0x4da561,_0x539aa8,_0xca9208)=>_0xca9208['addClass'](_0x651f48(_0x539aa8['classes']),_0x4da561),(_0x1c5a7e,_0x21b4a9,_0x356882)=>_0x356882['removeClass'](_0x651f48(_0x21b4a9['classes']),_0x1c5a7e));},{'priority':'highest'}),_0x33a49b['descriptionFactory']['registerDescriptionCallback'](_0x568c2d=>{if('insertion'!=_0x568c2d['type']&&'deletion'!=_0x568c2d['type'])return;const _0x2bacb2=_0x568c2d['getContainedElement']();if(null!=_0x2bacb2&&_0x2bacb2['is']('element','table')){if('insertion'==_0x568c2d['type']){const _0x17db5a=_0x568c2d['getItems']()['filter'](_0xc0cbcf=>_0xc0cbcf['is']('$textProxy'))['map'](_0x11e3a2=>_0x11e3a2['data']);if(_0x17db5a['length'])return{'type':'insertion','content':o(_0x572647,'*Insert:*\x20%0',o(_0x572647,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x17db5a['join']('\x20')+'\x22'))};}if('deletion'==_0x568c2d['type']){const _0x5ea32e=_0x568c2d['getItems']()['filter'](_0x44810c=>_0x44810c['is']('$textProxy'))['map'](_0x3b045d=>_0x3b045d['data']);if(_0x5ea32e['length'])return{'type':'deletion','content':o(_0x572647,'*Remove:*\x20%0',o(_0x572647,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5ea32e['join']('\x20')+'\x22'))};}}}),_0x33a49b['descriptionFactory']['registerDescriptionCallback'](_0x2383f7=>{if('tableRow'==_0x2383f7['subType']){const _0x412854=_0x2383f7['getItems']()['filter'](_0x6c829f=>_0x6c829f['is']('$textProxy'))['map'](_0x55a5c7=>_0x55a5c7['data']),_0x82636f=this['_getSuggestionCoords'](_0x2383f7),_0x4de2b9=_0x82636f['maxRow']-_0x82636f['minRow']+0x1;if('insertion'==_0x2383f7['type'])return _0x412854['length']?{'type':'insertion','content':o(_0x572647,'*Insert:*\x20%0',o(_0x572647,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4de2b9,'\x22'+_0x412854['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x572647,'*Insert:*\x20%0',o(_0x572647,'ELEMENT_TABLE_ROW',_0x4de2b9))};if('deletion'==_0x2383f7['type'])return _0x412854['length']?{'type':'deletion','content':o(_0x572647,'*Remove:*\x20%0',o(_0x572647,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4de2b9,'\x22'+_0x412854['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x572647,'*Remove:*\x20%0',o(_0x572647,'ELEMENT_TABLE_ROW',_0x4de2b9))};}if('tableColumn'==_0x2383f7['subType']){const _0x350066=_0x2383f7['getItems']()['filter'](_0x1fe07c=>_0x1fe07c['is']('$textProxy'))['map'](_0x13be96=>_0x13be96['data']),_0x432558=this['_getSuggestionCoords'](_0x2383f7),_0x56e8cb=_0x432558['maxColumn']-_0x432558['minColumn']+0x1;if('insertion'==_0x2383f7['type'])return _0x350066['length']?{'type':'insertion','content':o(_0x572647,'*Insert:*\x20%0',o(_0x572647,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x56e8cb,'\x22'+_0x350066['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x572647,'*Insert:*\x20%0',o(_0x572647,'ELEMENT_TABLE_COLUMN',_0x56e8cb))};if('deletion'==_0x2383f7['type'])return _0x350066['length']?{'type':'deletion','content':o(_0x572647,'*Remove:*\x20%0',o(_0x572647,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x56e8cb,'\x22'+_0x350066['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x572647,'*Remove:*\x20%0',o(_0x572647,'ELEMENT_TABLE_COLUMN',_0x56e8cb))};}}),_0x33a49b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x75bb4c),_0x33a49b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x75bb4c),_0x33a49b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1736b7),_0x33a49b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1736b7),_0x33a49b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1d697f),_0x33a49b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1d697f),_0x33a49b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x30d4d6),_0x33a49b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x30d4d6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4fdf4f=this['editor'],_0xd490c9=_0x4fdf4f['model']['document']['selection'];return(_0x40c612,_0x5b35fe)=>{_0x4fdf4f['model']['change'](_0xc9bd96=>{const {commandName:_0x3a2ea3,commandParams:_0x14aeb9}=_0x5b35fe;let _0x5c1f86=_0x40c612[0x0]['end']['nodeBefore'];_0x14aeb9&&_0x14aeb9[0x0]&&!0x1===_0x14aeb9[0x0]['forceValue']&&(_0x5c1f86=_0x40c612[0x0]['start']['nodeAfter']);const _0x5a3675=_0xc9bd96['createRangeIn'](_0x5c1f86);if('$graveyard'==_0x5a3675['root']['rootName'])return;const _0x51e3bc=Array['from'](_0xd490c9['getRanges']())['map'](_0x28fb0b=>_0x1aac42['fromRange'](_0x28fb0b));_0xc9bd96['setSelection'](_0x5a3675),_0x4fdf4f['commands']['get'](_0x3a2ea3)['refresh'](),_0x14aeb9['push']({'forceDefaultExecution':!0x0}),_0x4fdf4f['execute'](_0x3a2ea3,..._0x14aeb9);const _0x4cac5a=_0x51e3bc['filter'](_0x45aa66=>'$graveyard'!=_0x45aa66['root']['rootName']);_0x4cac5a['length']>0x0&&_0xc9bd96['setSelection'](_0x4cac5a);for(const _0x41e808 of _0x51e3bc)_0x41e808['detach']();});};}['_getCoordsForCells'](_0x5f3eb9){const _0xefe324=this['editor']['plugins']['get']('TableUtils');let _0x5d2d89=Number['MAX_SAFE_INTEGER'],_0x443852=Number['MIN_SAFE_INTEGER'],_0x246ae8=Number['MAX_SAFE_INTEGER'],_0x38f487=Number['MIN_SAFE_INTEGER'];for(const _0x20b558 of _0x5f3eb9){if('$graveyard'==_0x20b558['root']['rootName'])continue;const {row:_0x690aef,column:_0x39def5}=_0xefe324['getCellLocation'](_0x20b558),_0xfd1031=_0x20b558['hasAttribute']('rowspan')?_0x20b558['getAttribute']('rowspan')-0x1:0x0,_0x1cfb71=_0x20b558['hasAttribute']('colspan')?_0x20b558['getAttribute']('colspan')-0x1:0x0;_0x5d2d89=_0x690aef<_0x5d2d89?_0x690aef:_0x5d2d89,_0x443852=_0x690aef+_0xfd1031>_0x443852?_0x690aef+_0xfd1031:_0x443852,_0x246ae8=_0x39def5<_0x246ae8?_0x39def5:_0x246ae8,_0x38f487=_0x39def5+_0x1cfb71>_0x38f487?_0x39def5+_0x1cfb71:_0x38f487;}return{'minRow':_0x5d2d89,'maxRow':_0x443852,'minColumn':_0x246ae8,'maxColumn':_0x38f487};}['_setupColumnsRowsFixing'](){const _0x282bd7=this['editor'],_0x4cf1c4=_0x282bd7['plugins']['get']('TrackChangesEditing'),_0x5ae99c=_0x282bd7['plugins']['get']('TableUtils');_0x282bd7['model']['document']['on']('change:data',()=>{const _0x3737fc=Array['from'](_0x282bd7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xaa8fb,data:_0x421cd4}of _0x3737fc){const {group:_0x3c8810,id:_0x576826,subType:_0xe63f27}=_0x4cf1c4['_splitMarkerName'](_0xaa8fb);if('suggestion'!=_0x3c8810)continue;if(null!=_0x421cd4['oldRange'])continue;const _0x58630b=_0x4cf1c4['getSuggestion'](_0x576826);this['_tablePostFixingSubtypes']['includes'](_0xe63f27)&&this['_tableSuggestions']['add'](_0x58630b);}},{'priority':'low'});const _0x45b217=(_0x431bde,_0x148e92)=>{let _0x2bc7ea=!0x1;const _0x2a202a=_0x148e92['createRangeOn'](_0x431bde),_0x2113de=_0x431bde['findAncestor']('table'),_0x4f84d5=_0x5ae99c['getCellLocation'](_0x431bde);for(const _0x363511 of this['_tableSuggestions']){const _0x55f2d3=_0x363511['subType'],_0x24546e=_0x55f2d3['startsWith']('tablePaste'),_0x34c197=_0x55f2d3['substr'](_0x24546e?0xa:0x5),_0x531473=_0x34c197['toLowerCase'](),_0x1da3d4=_0x531473['substr'](0x0,0x3)+'span',_0x302c57='min'+_0x34c197,_0x18d07e='max'+_0x34c197;if(!_0x363511['isInContent'])continue;if(_0x2113de!=_0x363511['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x363511['isIntersectingWithRange'](_0x2a202a))continue;const _0x5d5c23=_0x431bde['hasAttribute'](_0x1da3d4)?_0x431bde['getAttribute'](_0x1da3d4)-0x1:0x0,_0xeeaa8d=this['_getSuggestionCoords'](_0x363511),_0x219d03=_0xeeaa8d[_0x302c57],_0x7c0581=_0xeeaa8d[_0x18d07e];_0x219d03<=_0x4f84d5[_0x531473]&&_0x4f84d5[_0x531473]+_0x5d5c23<=_0x7c0581&&(_0x363511['addRange'](_0x2a202a),_0x2bc7ea=!0x0);}return _0x2bc7ea;};_0x282bd7['model']['document']['registerPostFixer'](_0x118765=>{let _0x35c80b=!0x1;for(const _0x573635 of _0x282bd7['model']['document']['differ']['getChanges']())if('insert'==_0x573635['type']){if('tableRow'==_0x573635['name']){for(const _0x585597 of _0x573635['position']['nodeAfter']['getChildren']())_0x35c80b=_0x35c80b||_0x45b217(_0x585597,_0x118765);}else'tableCell'==_0x573635['name']&&(_0x35c80b=_0x35c80b||_0x45b217(_0x573635['position']['nodeAfter'],_0x118765));}return _0x35c80b;});}['_getSuggestionCoords'](_0x3794af){return this['_getCoordsForCells'](_0x3794af['getRanges']()['map'](_0x558518=>_0x558518['start']['nodeAfter']));}constructor(_0xcfdd1b){super(_0xcfdd1b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x21c0ef){return Array['from'](new Set(_0x21c0ef)['values']());}class St extends _0x2b5176{static get['requires'](){return[jt];}['afterInit'](){const _0x13bba5=this['editor'],_0x186262=_0x13bba5['model']['document']['selection'],_0x382ffd=_0x13bba5['locale'];if(!_0x13bba5['plugins']['has']('TableEditing'))return;const _0x5e04ee=_0x13bba5['plugins']['get']('TrackChangesEditing'),_0x1d890e=_0x13bba5['plugins']['get']('TableUtils'),_0x3d887c=_0x13bba5['plugins']['get'](jt);_0x3d887c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5e04ee['enableCommand']('mergeTableCells',()=>{const _0x351374=_0x1d890e['getSelectionAffectedTableCells'](_0x13bba5['model']['document']['selection']);_0x13bba5['model']['change'](()=>{_0x5e04ee['markMultiRangeBlockFormat'](_0x351374,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x13bba5['commands']['get']('mergeTableCells')['on']('execute',(_0x29ca13,_0x5b245b)=>{_0x13bba5['commands']['get']('trackChanges')['value']&&(_0x5b245b['length']>0x0&&_0x5b245b[_0x5b245b['length']-0x1]&&_0x5b245b[_0x5b245b['length']-0x1]['forceDefaultExecution']||_0x5e04ee['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x29ca13['stop']());},{'priority':'highest'});for(const _0x35ead9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x39ae15=_0x13bba5['commands']['get'](_0x35ead9);_0x5e04ee['enableCommand'](_0x35ead9,()=>{const _0x462f74=_0x13bba5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2c190c=>_0x2c190c['is']('element','tableCell')),_0x3319ff=_0x39ae15['value'];_0x13bba5['model']['change'](()=>{_0x5e04ee['markMultiRangeBlockFormat']([_0x462f74,_0x3319ff],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x20fef5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x490e35=_0x13bba5['commands']['get'](_0x20fef5);_0x5e04ee['enableCommand'](_0x20fef5,()=>{const _0xe73c76=_0x1d890e['getSelectionAffectedTableCells'](_0x13bba5['model']['document']['selection'])[0x0],_0x24b1d3=_0xe73c76['findAncestor']('table'),{column:_0x2cd8fa,row:_0x326020}=_0x1d890e['getCellLocation'](_0xe73c76);let _0x53bea1=[];if('horizontally'==_0x490e35['direction']){const _0x4f79f5=_0x1d890e['createTableWalker'](_0x24b1d3,{'startRow':_0x326020,'endRow':_0x326020,'includeAllSlots':!0x0});_0x53bea1=Array['from'](_0x4f79f5)['map'](_0x524ae0=>_0x524ae0['cell']);}else{const _0x13855e=_0x1d890e['createTableWalker'](_0x24b1d3,{'column':_0x2cd8fa,'includeAllSlots':!0x0});_0x53bea1=Array['from'](_0x13855e)['map'](_0x31fc57=>_0x31fc57['cell']);}_0x13bba5['model']['change'](_0x150ac0=>{_0x5e04ee['markBlockFormat'](_0x150ac0['createRangeOn'](_0xe73c76),{'commandName':_0x20fef5,'commandParams':[]},_0x53bea1,_0x20fef5);});});}_0x5e04ee['descriptionFactory']['registerDescriptionCallback'](_0x276837=>{if('formatBlock'!=_0x276837['type']&&'formatInline'!=_0x276837['type'])return;const {data:_0x4da7e4}=_0x276837;return _0x4da7e4&&'mergeTableCells'==_0x4da7e4['commandName']?{'type':'format','content':o(_0x382ffd,'*Merge\x20cells*')}:void 0x0;}),_0x5e04ee['descriptionFactory']['registerDescriptionCallback'](_0x534efb=>{if('formatBlock'!=_0x534efb['type']&&'formatInline'!=_0x534efb['type'])return;const {data:_0x3eb7c6}=_0x534efb;return _0x3eb7c6?'splitTableCellVertically'==_0x3eb7c6['commandName']?{'type':'format','content':o(_0x382ffd,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3eb7c6['commandName']?{'type':'format','content':o(_0x382ffd,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x35f2cd=_0x3d887c['_acceptFormatSuggestionCallbackFactory']();for(const _0x195afd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5e04ee['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x195afd,'accept',_0x35f2cd);for(const _0x6b7f1d of['splitTableCellVertically','splitTableCellHorizontally'])_0x5e04ee['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6b7f1d,'accept',_0x35f2cd);_0x5e04ee['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3aacc9=>{_0x13bba5['model']['change'](_0x249f98=>{const _0x2aed52=Array['from'](_0x186262['getRanges']())['map'](_0x16220d=>_0x1aac42['fromRange'](_0x16220d));_0x249f98['setSelection'](_0x3aacc9),_0x13bba5['commands']['get']('mergeTableCells')['refresh'](),_0x13bba5['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5e6cf5=_0x2aed52['filter'](_0x470a95=>'$graveyard'!=_0x470a95['root']['rootName']);_0x5e6cf5['length']>0x0&&_0x249f98['setSelection'](_0x5e6cf5);for(const _0x55c27f of _0x2aed52)_0x55c27f['detach']();});});for(const _0x27338b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3d9f2d=_0x13bba5['commands']['get'](_0x27338b);_0x3d9f2d['on']('set:isEnabled',(_0x57027f,_0x32e6d8,_0x438309)=>{if(_0x438309){const _0x5e0425=_0x13bba5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x453644=>_0x453644['is']('element','tableCell'));this['_areMergableCells'](_0x3d9f2d['value'],_0x5e0425)||(_0x57027f['return']=!0x1,_0x57027f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2c7062=this['editor']['commands']['get']('mergeTableCells'),_0x1d4e9f=this['editor']['plugins']['get']('TableUtils');if(!_0x2c7062['isEnabled'])return!0x1;const _0x25c7ca=_0x1d4e9f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1fd22f of _0x25c7ca)for(const _0x1537b2 of _0x25c7ca)if(_0x1fd22f!=_0x1537b2&&!this['_areMergableCells'](_0x1fd22f,_0x1537b2))return!0x1;return!0x0;}['_areMergableCells'](_0x45aa8d,_0x60816b){const _0x232754=this['editor']['plugins']['get']('TrackChangesEditing'),_0x495c00=this['editor']['model']['createRangeOn'](_0x45aa8d),_0x4dff16=this['editor']['model']['createRangeOn'](_0x60816b),_0x26572=new Set(),_0x32982c=new Set();for(const _0x13a1d6 of _0x232754['getSuggestions']())if(('insertion'==_0x13a1d6['type']||'deletion'==_0x13a1d6['type']||'mergeTableCells'==_0x13a1d6['subType'])&&_0x13a1d6['isInContent']){for(const _0x2a0312 of _0x13a1d6['getRanges']())_0x2a0312['containsRange'](_0x495c00,!0x0)&&_0x26572['add'](_0x13a1d6['type']+':'+_0x13a1d6['author']['id']),_0x2a0312['containsRange'](_0x4dff16,!0x0)&&_0x32982c['add'](_0x13a1d6['type']+':'+_0x13a1d6['author']['id']);}if(_0x26572['size']!=_0x32982c['size'])return!0x1;for(const _0x5b8182 of _0x26572)if(!_0x32982c['has'](_0x5b8182))return!0x1;return!0x0;}}class At extends _0x2b5176{static get['requires'](){return[jt];}['afterInit'](){const _0x8dd8d5=this['editor'];if(!_0x8dd8d5['plugins']['has']('TableEditing'))return;const _0x2bc21f=_0x8dd8d5['locale'],_0x3d17ab=_0x8dd8d5['plugins']['get']('TrackChangesEditing');_0x3d17ab['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3d17ab['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3d17ab['registerBlockAttribute']('headingRows'),_0x3d17ab['registerBlockAttribute']('headingColumns'),_0x3d17ab['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2bc21f,'FORMAT_HEADER_ROW')),_0x3d17ab['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2bc21f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x492750=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c4437=this['editor']['plugins']['get']('TableUtils'),_0x9065d5=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x223ca5({showActiveMarker:_0x5a994d=!0x0,setDataAttribute:_0x906a2e=!0x0}={}){return(_0x2151f7,_0x460aad,_0xd3f886)=>{const {type:_0xf0f172,id:_0x35bd03}=_0x492750['_splitMarkerName'](_0x460aad['markerName']),_0x3a47c1=_0x492750['getSuggestion'](_0x35bd03),_0x404ad1=_0x3a47c1['data'];if('formatBlock'!=_0x3a47c1['type']||!_0x404ad1||'setTableColumnHeader'!=_0x404ad1['commandName'])return;if(_0x460aad['item'])return void _0x2151f7['stop']();if(!_0xd3f886['consumable']['consume'](_0x460aad['markerRange'],_0x2151f7['name']))return;const _0x609da8=_0x460aad['markerRange']['start']['nodeAfter'],_0x3bba24=_0x460aad['markerRange']['end']['nodeBefore'],_0x242439=_0x609da8['parent']['parent'],{column:_0x5eb7f7}=_0x4c4437['getCellLocation'](_0x609da8),{column:_0x3e9af0}=_0x4c4437['getCellLocation'](_0x3bba24);for(let _0x404ca2=_0x5eb7f7;_0x404ca2<=_0x3e9af0;_0x404ca2++){const _0x2d7b7c=_0x4c4437['createTableWalker'](_0x242439,{'column':_0x404ca2,'includeAllSlots':!0x1});for(const _0x213244 of _0x2d7b7c){const _0x1b9c77=_0x213244['cell'],_0x1b6d03=_0xd3f886['mapper']['toViewElement'](_0x1b9c77);_0xd3f886['writer']['addClass']('ck-suggestion-marker-'+_0xf0f172,_0x1b6d03),_0x906a2e&&_0xd3f886['writer']['setAttribute']('data-suggestion',_0x35bd03,_0x1b6d03),_0xd3f886['mapper']['bindElementToMarker'](_0x1b6d03,_0x460aad['markerName']),_0x5a994d&&(_0x492750['activeMarkers']['includes'](_0x460aad['markerName'])?_0xd3f886['writer']['addClass']('ck-suggestion-marker--active',_0x1b6d03):_0xd3f886['writer']['removeClass']('ck-suggestion-marker--active',_0x1b6d03));}}};}_0x492750['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x9065d5),_0x492750['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x9065d5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x223ca5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5ccc3d,_0x57a842,_0x52fc72)=>{_0x52fc72['options']['showSuggestionHighlights']&&_0x223ca5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5ccc3d,_0x57a842,_0x52fc72);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x27c39a,_0xe7f3c9,_0x5d9d0e)=>{const {type:_0x2a6b96,id:_0x2f1eae}=_0x492750['_splitMarkerName'](_0xe7f3c9['markerName']),_0x5caf3d=_0x492750['getSuggestion'](_0x2f1eae),_0x3257c6=_0x5caf3d['data'];if('formatBlock'!=_0x5caf3d['type']||!_0x3257c6||'setTableColumnHeader'!=_0x3257c6['commandName'])return;const _0x278f4d=_0x5d9d0e['mapper']['markerNameToElements'](_0xe7f3c9['markerName']);if(_0x278f4d){for(const _0x45e47e of _0x278f4d)_0x5d9d0e['writer']['removeClass']('ck-suggestion-marker-'+_0x2a6b96,_0x45e47e),_0x5d9d0e['writer']['removeClass']('ck-suggestion-marker--active',_0x45e47e),_0x5d9d0e['writer']['removeAttribute']('data-suggestion',_0x45e47e),_0x5d9d0e['mapper']['unbindElementFromMarkerName'](_0x45e47e,_0xe7f3c9['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cb25d=this['editor'],_0x44311d=_0x3cb25d['locale'];function _0x72a936(_0x18ab4a){return{'type':'format','content':o(_0x44311d,'*Format:*\x20%0',_0x18ab4a)};}_0x3cb25d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54893b=>{if('formatBlock'!=_0x54893b['type'])return;const {data:_0x1496e2}=_0x54893b;if(_0x1496e2){if('setTableRowHeader'==_0x1496e2['commandName']){const _0x3515c2=_0x1496e2['commandParams'][0x0]['forceValue'];return _0x72a936(o(_0x44311d,_0x3515c2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1496e2['commandName']){const _0x11b4e3=_0x1496e2['commandParams'][0x0]['forceValue'];return _0x72a936(o(_0x44311d,_0x11b4e3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x27e936=>[_0x27e936,null]));class It extends _0x2b5176{static get['requires'](){return[jt];}['afterInit'](){const _0x1c1214=this['editor'];if(!_0x1c1214['plugins']['has']('TableClipboard'))return;const _0x4bf65f=_0x1c1214['plugins']['get']('TrackChangesEditing'),_0x1f7457=_0x1c1214['plugins']['get']('TableUtils'),_0x477889=_0x1c1214['plugins']['get'](jt),_0x4cad4e=_0x1c1214['plugins']['get']('TableClipboard');_0x477889['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1c1214['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1c1214['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4868c3=null;_0x1c1214['model']['on']('insertContent',(_0xbd9246,_0x232459)=>{const [_0x49ce8b,_0x3ba74e]=_0x232459,_0x287cbc=_0x232459[_0x232459['length']-0x1];_0x287cbc&&_0x287cbc['forceDefaultExecution']||_0x4bf65f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x557e80,_0x33f3fc,_0x432f87,_0x672fb4,_0x5aa323){if(_0x33f3fc&&!_0x33f3fc['is']('documentSelection'))return!0x1;const _0x2cc2d0=_0x5aa323['getTableIfOnlyTableInContent'](_0x557e80,_0x432f87);if(!_0x2cc2d0||!he(_0x2cc2d0,void 0x0,_0x672fb4))return!0x1;const _0x389883=_0x672fb4['getSelectionAffectedTableCells'](_0x432f87['document']['selection']);if(!_0x389883['length'])return!0x1;const _0x56c91b=_0x389883[0x0]['findAncestor']('table'),_0x3eda26=_0x672fb4['getRowIndexes'](_0x389883),_0x2b60e0=_0x672fb4['getColumnIndexes'](_0x389883),_0x21330c={'startRow':_0x3eda26['first'],'endRow':_0x3eda26['last'],'startColumn':_0x2b60e0['first'],'endColumn':_0x2b60e0['last']};return 0x1==_0x389883['length']&&(_0x21330c['endRow']+=_0x672fb4['getRows'](_0x2cc2d0)-0x1,_0x21330c['endColumn']+=_0x672fb4['getColumns'](_0x2cc2d0)-0x1),he(_0x56c91b,_0x21330c,_0x672fb4);}(_0x49ce8b,_0x3ba74e,_0x1c1214['model'],_0x1f7457,_0x4cad4e)&&(_0xbd9246['stop'](),_0x4868c3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1c1214['model']['change'](()=>{_0x1c1214['model']['insertContent'](_0x232459[0x0],_0x232459[0x1],_0x232459[0x2],{'forceDefaultExecution':!0x0});const _0x1bf63b=_0x2218f2(),{rowInsertionRanges:_0xb27faa,columnInsertionRanges:_0xfda8d9,insertionRanges:_0x1ea100,deletionRanges:_0x25c3bb,cells:_0xbc3d70}=_0x4868c3;_0xb27faa['length']&&_0x4bf65f['markMultiRangeInsertion'](_0xb27faa,'tablePasteRow',{'tablePasteChainId':_0x1bf63b}),_0xfda8d9['length']&&_0x4bf65f['markMultiRangeInsertion'](_0xfda8d9,'tablePasteColumn',{'tablePasteChainId':_0x1bf63b}),_0x1ea100['length']&&(_0x4bf65f['markMultiRangeInsertion'](_0x1ea100,'tablePaste',{'tablePasteChainId':_0x1bf63b,'skipNestingCheck':!0x0}),_0x1ea100['forEach'](_0x355d74=>{var _0x5c0666;return null===(_0x5c0666=_0x355d74['detach'])||void 0x0===_0x5c0666?void 0x0:_0x5c0666['call'](_0x355d74);})),_0x25c3bb['length']&&(_0x4bf65f['markMultiRangeDeletion'](_0x25c3bb,'tablePaste',{'tablePasteChainId':_0x1bf63b,'skipNestingCheck':!0x0}),_0x25c3bb['forEach'](_0x54bc02=>{var _0x34cf57;return null===(_0x34cf57=_0x54bc02['detach'])||void 0x0===_0x34cf57?void 0x0:_0x34cf57['call'](_0x54bc02);}));const _0x1aa89e=_0x4bf65f['markMultiRangeBlockFormat'](_0xbc3d70['map'](({element:_0x133285})=>_0x133285),{'formatGroupId':_0x2218f2()},[],'tablePasteCell',{'tablePasteChainId':_0x1bf63b});if(_0x1aa89e){const _0xa43e33=_0x1aa89e['getMarkers'](),_0x91ec82=[];for(const {element:_0xa2c39b,attributes:_0x44b6a0}of _0xbc3d70){if(!_0x44b6a0)continue;const _0x1f711b=_0x1c1214['model']['createRangeOn'](_0xa2c39b),_0x1470a9=_0xa43e33['find'](_0xc8ba77=>_0xc8ba77['getRange']()['isEqual'](_0x1f711b));_0x1470a9&&_0x91ec82['push']([_0x1470a9['name'],_0x44b6a0]);}_0x91ec82['length']&&_0x1aa89e['setAttribute']('markerAttributes',Object['fromEntries'](_0x91ec82));}_0x4868c3=null;}));},{'priority':_0x4604ea['high']+0xa}),_0x1c1214['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1e8e03,_0xc9d3da)=>{const [_0x2b7cf1,_0x542b67,,_0x4eee0a]=_0xc9d3da;if(!_0x4868c3)return;_0x1e8e03['stop']();const _0x170dfe=_0x2b7cf1['cell'],_0x517704=_0x542b67,_0x3ed571=Pe(_0x170dfe),_0x43ffd4=Pe(_0x517704);_0x1e8e03['return']=_0x170dfe;let _0x429a09=null,_0x3afbcf=null;if(_0x43ffd4||_0x3ed571){if(_0x3ed571&&!_0x43ffd4){_0x4eee0a['remove'](_0x170dfe['getChild'](0x0));for(const _0x243709 of Array['from'](_0x517704['getChildren']()))_0x4eee0a['insert'](_0x243709,_0x170dfe,'end');const _0x3711c6=_0x4868c3['rowInsertionIndexes']['includes'](_0x2b7cf1['row']),_0x453aef=_0x4868c3['columnInsertionIndexes']['includes'](_0x2b7cf1['column']);_0x3711c6||_0x453aef||(_0x429a09=_0x1aac42['fromRange'](_0x4eee0a['createRangeIn'](_0x170dfe)));}else _0x43ffd4&&!_0x3ed571&&(_0x3afbcf=_0x4eee0a['createRangeIn'](_0x170dfe));}else{const _0xcb675f=_0x4eee0a['createElement']('tableCellSuggestion'),_0x4e12a4=_0x4eee0a['createElement']('tableCellSuggestion');_0x4eee0a['wrap'](_0x4eee0a['createRangeIn'](_0x170dfe),_0x4e12a4),_0x4eee0a['insert'](_0xcb675f,_0x170dfe,0x0);for(const _0x51b650 of Array['from'](_0x517704['getChildren']()))_0x4eee0a['insert'](_0x51b650,_0xcb675f,'end');_0x429a09=_0x1aac42['fromRange'](_0x4eee0a['createRangeOn'](_0xcb675f)),_0x3afbcf=_0x1aac42['fromRange'](_0x4eee0a['createRangeOn'](_0x4e12a4));}const _0x231843=Array['from'](_0x517704['getAttributes']())['filter'](([_0x28c30e])=>ge['includes'](_0x28c30e));_0x4868c3['cells']['push']({'element':_0x170dfe,'attributes':_0x231843['length']?Object['fromEntries'](_0x231843):null}),_0x429a09&&_0x4868c3['insertionRanges']['push'](_0x429a09),_0x3afbcf&&_0x4868c3['deletionRanges']['push'](_0x3afbcf);},{'priority':'high'}),_0x1f7457['on']('insertColumns',(_0x3696ef,_0x532424)=>{const [_0x203c1b,_0x133ff6={}]=_0x532424;if(!_0x4868c3)return;const _0x16ee73=_0x133ff6['at']||0x0,_0x4fc804=_0x133ff6['columns']||0x1;_0x4868c3['columnInsertionIndexes']=new Array(_0x4fc804)['fill'](_0x16ee73)['map']((_0x3b989c,_0x464678)=>_0x3b989c+_0x464678);for(const {cell:_0x8764c1}of _0x1f7457['createTableWalker'](_0x203c1b,{'startColumn':_0x16ee73,'endColumn':_0x16ee73+_0x4fc804-0x1}))_0x4868c3['columnInsertionRanges']['push'](_0x1c1214['model']['createRangeOn'](_0x8764c1));},{'priority':'low'}),_0x1f7457['on']('insertRows',(_0x984aaf,_0x33f9b2)=>{const [_0x22931c,_0x134105={}]=_0x33f9b2;if(!_0x4868c3)return;const _0x15fa69=_0x134105['at']||0x0,_0x3992a0=_0x134105['rows']||0x1;_0x4868c3['rowInsertionIndexes']=new Array(_0x3992a0)['fill'](_0x15fa69)['map']((_0x173a9b,_0x4416cb)=>_0x173a9b+_0x4416cb);for(const {cell:_0xa3cb67}of _0x1f7457['createTableWalker'](_0x22931c,{'startRow':_0x15fa69,'endRow':_0x15fa69+_0x3992a0-0x1}))_0x4868c3['rowInsertionRanges']['push'](_0x1c1214['model']['createRangeOn'](_0xa3cb67));},{'priority':'low'}),_0x4bf65f['descriptionFactory']['registerDescriptionCallback'](_0x2998d5=>{if(_0x2998d5['subType']&&_0x2998d5['subType']['startsWith']('tablePaste'))return _0x2998d5['previous']?{}:{'type':'insertion','content':o(_0x1c1214['locale'],'*Replace\x20table\x20cells*')};});const _0x227e8c=()=>!0x1;for(const _0x30a9a1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4bf65f['_suggestionFactory']['registerCustomCallback']('insertion',_0x30a9a1,'join',_0x227e8c),_0x4bf65f['_suggestionFactory']['registerCustomCallback']('deletion',_0x30a9a1,'join',_0x227e8c),_0x4bf65f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x30a9a1,'join',_0x227e8c);_0x4bf65f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x227e8c),_0x4bf65f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x52920d,_0x37be16,_0x181620)=>{const _0x5b3d2a=_0x52920d['map'](_0x3c66ba=>_0x3c66ba['getContainedElement']())['filter'](_0x36869b=>_0x36869b),_0x30583a=new Map(_0x5b3d2a['map'](_0x22dd38=>[_0x22dd38,null]));if(_0x4868c3){for(const {element:_0x1a0d8a,attributes:_0x1bb258}of _0x4868c3['cells'])_0x1bb258&&_0x30583a['set'](_0x1a0d8a,_0x1bb258);}else{if(_0x181620&&_0x181620['markerAttributes'])for(const [_0x576f55,_0x3495e1]of Object['entries'](_0x181620['markerAttributes'])){const _0x1135ee=_0x1c1214['model']['markers']['get'](_0x576f55),_0x30a818=_0x1135ee?_0x1135ee['getRange']()['getContainedElement']():null;_0x30a818&&_0x30583a['set'](_0x30a818,_0x3495e1);}}_0x1c1214['model']['change'](_0xb8e0cb=>{for(const [_0xa1dba9,_0x3a67c1]of _0x30583a)_0xb8e0cb['setAttributes']({...Ce,..._0x3a67c1},_0xa1dba9);});});const _0x223054=(_0x30a6cf,_0x380d22)=>{_0x4bf65f['_suggestionFactory']['registerCustomCallback'](_0x30a6cf,'tablePaste',_0x380d22,(_0x14969b,_0x52fe8b,_0x2522f0)=>{_0x1c1214['model']['change'](_0x53d1de=>{const _0x43aab9=[];for(const _0xf49d84 of _0x14969b){const _0x2809d8=_0xf49d84['start']['nodeAfter'];_0x2809d8['is']('element','tableCellSuggestion')&&_0x43aab9['push'](_0x2809d8);}_0x4bf65f['_suggestionFactory']['getSuggestionCallback'](_0x30a6cf,null,_0x380d22)(_0x14969b,_0x52fe8b,_0x2522f0);for(const _0xf9cf84 of _0x43aab9)'$graveyard'!=_0xf9cf84['root']['rootName']&&_0x53d1de['unwrap'](_0xf9cf84);});});};_0x223054('insertion','accept'),_0x223054('insertion','discard'),_0x223054('deletion','accept'),_0x223054('deletion','discard'),_0x4bf65f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x547e3a=>{const _0x1df94b=_0x547e3a['map'](_0xdb77b0=>_0xdb77b0['getContainedElement']()),_0x230103=_0x1df94b[0x0]['findAncestor']('table'),{minRow:_0x5b1d13,maxRow:_0x30875d}=_0x477889['_getCoordsForCells'](_0x1df94b);_0x1f7457['removeRows'](_0x230103,{'at':_0x5b1d13,'rows':_0x30875d-_0x5b1d13+0x1});}),_0x4bf65f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x420a1f=>{const _0xcd6625=_0x420a1f['map'](_0x2244e4=>_0x2244e4['getContainedElement']()),_0x15fffc=_0xcd6625[0x0]['findAncestor']('table'),{minColumn:_0x206d35,maxColumn:_0x2d0b0f}=_0x477889['_getCoordsForCells'](_0xcd6625);_0x1f7457['removeColumns'](_0x15fffc,{'at':_0x206d35,'columns':_0x2d0b0f-_0x206d35+0x1});});const _0x2406e5=(_0x33f8a7,_0x5a84dd)=>{if(!_0x5a84dd['subType']||!_0x5a84dd['subType']['startsWith']('tablePaste'))return;const _0x1c6cd9=_0x5a84dd['attributes']['tablePasteChainId'],_0x5f5e03=_0x4bf65f['getSuggestions']()['filter'](_0x1b8252=>_0x1b8252['isInContent']&&_0x1b8252['attributes']&&_0x1b8252['attributes']['tablePasteChainId']==_0x1c6cd9);_0x5f5e03['length']&&_0x5a84dd['getAllAdjacentSuggestions']()['length']!=_0x5f5e03['length']&&_0x5f5e03['reduce']((_0x1a1eef,_0x391f22)=>(_0x1a1eef['next']=_0x391f22,_0x391f22['previous']=_0x1a1eef,_0x391f22));};function _0xe240aa(_0x25063e,_0x50a1cf=!0x0){const {id:_0x358645}=_0x4bf65f['_splitMarkerName'](_0x25063e['markerName']),_0x3c6c5e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5da681=_0x4bf65f['activeMarkers']['includes'](_0x25063e['markerName']);return _0x5da681&&_0x3c6c5e['push']('ck-suggestion-marker--active'),{'classes':_0x3c6c5e,'attributes':{'data-suggestion':_0x358645},'priority':_0x5da681&&_0x50a1cf?0xbc2:0xbb8};}_0x4bf65f['on']('suggestionLoaded',_0x2406e5,{'priority':'high'}),_0x4bf65f['on']('suggestionUnloaded',_0x2406e5,{'priority':'high'}),_0x1c1214['model']['document']['registerPostFixer'](()=>{let _0x59802f=!0x1;const _0x20c0aa=Array['from'](_0x1c1214['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ea786,data:_0x5f5cf6}of _0x20c0aa){const {group:_0x45e7e0,type:_0x4656e7,id:_0x214ae8}=_0x4bf65f['_splitMarkerName'](_0x5ea786);if('suggestion'!=_0x45e7e0||'deletion'!=_0x4656e7||_0x5f5cf6['oldRange'])continue;if(!_0x4bf65f['hasSuggestion'](_0x214ae8))continue;const _0x4d31c3=_0x4bf65f['getSuggestion'](_0x214ae8)['getRanges'](),_0xc3a9c1=_0x1c1214['plugins']['get']('Users')['me'];for(const _0x4e1fc0 of _0x4bf65f['getSuggestions']()){if(!_0x4e1fc0['isInContent']||_0x4e1fc0['author']!=_0xc3a9c1)continue;if('formatBlock'!=_0x4e1fc0['type']||'tablePasteCell'!=_0x4e1fc0['subType'])continue;if(_0x4e1fc0['getRanges']()['every'](_0x1d26c2=>_0x4d31c3['some'](_0x52a5dd=>_0x52a5dd['containsRange'](_0x1d26c2,!0x0)))){for(const _0x1bc07a of _0x4e1fc0['getAllAdjacentSuggestions']())_0x1bc07a['isInContent']&&(_0x1bc07a['discard'](),_0x59802f=!0x0);}}}return _0x59802f;}),_0x1c1214['model']['document']['registerPostFixer'](_0x77a881=>{const _0x51ca89=_0x1c1214['commands']['get']('redo');if(!_0x51ca89||!_0x51ca89['_createdBatches']['has'](_0x77a881['batch']))return!0x1;let _0x35299f=!0x1;const _0x2131a1=_0x1c1214['plugins']['get']('Users')['me'],_0x450efc=_0x1c1214['model']['document']['differ']['getChanges'](),_0x2932af=Array['from'](_0x1c1214['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x245965,data:_0x24f247})=>{const {group:_0x4e7bc8,subType:_0x3a370d,authorId:_0x5052fb}=_0x4bf65f['_splitMarkerName'](_0x245965);return'suggestion'==_0x4e7bc8&&'tablePaste'==_0x3a370d&&_0x5052fb==_0x2131a1['id']&&!_0x24f247['oldRange'];});for(const _0x3750ed of _0x450efc){if('insert'!=_0x3750ed['type']||'tableCellSuggestion'!=_0x3750ed['name']||0x1!=_0x3750ed['length'])continue;const _0x10ef27=_0x77a881['createRange'](_0x3750ed['position'],_0x3750ed['position']['getShiftedBy'](0x1));if(!_0x2932af['find'](({data:_0x2d851f})=>_0x2d851f['newRange']['isEqual'](_0x10ef27))){for(const {name:_0x2ca856,data:_0x4e65cd}of _0x2932af)if(_0x10ef27['containsRange'](_0x4e65cd['newRange'])){_0x77a881['updateMarker'](_0x2ca856,{'range':_0x10ef27}),_0x35299f=!0x0;break;}}}return _0x35299f;}),_0x1c1214['model']['document']['registerPostFixer'](_0x8f3f8b=>{let _0x40ab21=!0x1;const _0x4d5cd3=_0x1c1214['plugins']['get']('Users')['me'],_0x103565=_0x4bf65f['getSuggestions']()['filter'](_0x15198d=>_0x15198d['isInContent']&&_0x15198d['author']==_0x4d5cd3),_0x8e7207=new Set(),_0xf418dd=new Set();for(const _0x9ac20 of _0x103565)if('tablePaste'==_0x9ac20['subType'])for(const _0x744b1f of _0x9ac20['getMarkers']()){const _0x2bdd4e=_0x744b1f['getRange']()['getContainedElement']();if(_0x2bdd4e){if(_0x2bdd4e['is']('element','tableCellSuggestion')&&Pe(_0x2bdd4e)){_0x9ac20['removeMarker'](_0x744b1f['name']),_0x8e7207['add'](_0x2bdd4e),_0x40ab21=!0x0;const _0x3dc093=_0x2bdd4e['nextSibling'],_0x240361=_0x2bdd4e['previousSibling'],_0x4cac74=_0x3dc093&&_0x3dc093['is']('element','tableCellSuggestion'),_0x11b31a=_0x240361&&_0x240361['is']('element','tableCellSuggestion');_0x4cac74&&!_0x8e7207['has'](_0x3dc093)&&_0xf418dd['add'](_0x3dc093),_0x11b31a&&!_0x8e7207['has'](_0x240361)&&_0xf418dd['add'](_0x240361);}else _0x2bdd4e['is']('element','paragraph')&&_0x2bdd4e['isEmpty']&&(_0x9ac20['removeMarker'](_0x744b1f['name']),_0x40ab21=!0x0);}}else{if('tablePasteCell'==_0x9ac20['subType']){if(!_0x9ac20['attributes']||!_0x9ac20['attributes']['tablePasteChainId'])continue;const _0x5d7ae9=_0x9ac20['attributes']['markerAttributes'];if(_0x5d7ae9&&Object['keys'](_0x5d7ae9)['length'])continue;const _0x4e3e6c=_0x9ac20['attributes']['tablePasteChainId'];let _0x289475=!0x0,_0x2bd9cf=!0x0;for(const _0x1b13bd of _0x103565)if(_0x1b13bd['subType']&&_0x1b13bd['subType']['startsWith']('tablePaste')){if(!_0x1b13bd['attributes']['tablePasteChainId']){_0x2bd9cf=!0x1;break;}if(_0x1b13bd['id']!=_0x9ac20['id']&&_0x1b13bd['attributes']['tablePasteChainId']==_0x4e3e6c){_0x289475=!0x1;break;}}_0x2bd9cf&&_0x289475&&(_0x9ac20['removeMarkers'](),_0x40ab21=!0x0);}}for(const _0x46a9ec of _0x8e7207)_0x8f3f8b['remove'](_0x46a9ec);for(const _0x290b48 of _0xf418dd)_0x8f3f8b['unwrap'](_0x290b48);return _0x40ab21;}),_0x1c1214['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x30995d,_0x54855b)=>_0xe240aa(_0x30995d),'converterPriority':'high'}),_0x1c1214['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x16956d,_0x291f4a)=>_0x291f4a['options']['showSuggestionHighlights']?_0xe240aa(_0x16956d,!0x1):null,'converterPriority':'high'});const _0x5743bc=_0x1c1214['editing']['view'];this['listenTo'](_0x5743bc['document'],'clipboardOutput',(_0x35e9e4,_0xb23fdb)=>{const _0x450c5e=[];for(const _0x4e30b9 of _0x5743bc['createRangeIn'](_0xb23fdb['content'])['getItems']())_0x4e30b9['is']('element','suggestion-td')&&_0x450c5e['push'](_0x4e30b9);_0x5743bc['change'](_0x7d0055=>{for(const _0x2de89d of _0x450c5e)_0x7d0055['move'](_0x7d0055['createRangeIn'](_0x2de89d),_0x7d0055['createPositionBefore'](_0x2de89d)),_0x7d0055['remove'](_0x2de89d);});});}}function Pe(_0x4c5a0e){if(_0x4c5a0e['isEmpty'])return!0x0;const _0x56f522=_0x4c5a0e['getChild'](0x0);return _0x56f522['is']('element','paragraph')&&_0x56f522['isEmpty'];}function he(_0x37c77a,_0x589e41={},_0x1c5546){for(const {isAnchor:_0x184499,cellHeight:_0xdc11bc,cellWidth:_0x5b23d9}of _0x1c5546['createTableWalker'](_0x37c77a,{'includeAllSlots':!0x0,..._0x589e41}))if(!_0x184499||0x1!=_0xdc11bc||0x1!=_0x5b23d9)return!0x1;return!0x0;}class vt extends _0x2b5176{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3ad777=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ad777['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3ad777['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3ad777['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ad777['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3ad777['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3ad777['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x169345,_0x4babd7){const _0xe02754=this['editor']['plugins']['get']('TrackChangesEditing'),_0x551f05=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1390b2=_0x4babd7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x28c204=_0x551f05['getColumnGroupElement'](_0x1390b2);let _0x2813e4=_0x28c204?_0x551f05['getTableColumnsWidths'](_0x28c204):null,_0x1ec36a=_0x1390b2['getAttribute']('tableWidth')||null;const _0xe775f5=_0x4babd7['tableWidth']||_0x1ec36a,_0x5a0603=_0x4babd7['columnWidths']||_0x2813e4,_0x306ac5=this['editor']['plugins']['get']('Users')['me'];for(const _0x3a5240 of _0xe02754['getSuggestions']()){const _0x99b44c=_0x3a5240['getContainedElement']();if('resizeTable'===_0x3a5240['subType']&&_0x99b44c===_0x1390b2){_0x3a5240['author']!==_0x306ac5&&_0x3a5240['discard']();const _0x5d8110=_0x3a5240['data']['commandParams'];_0x1ec36a=_0x5d8110[0x0]['tableWidth'],_0x2813e4=_0x5d8110[0x0]['columnWidths'];break;}}_0x169345({'table':_0x1390b2,'tableWidth':_0xe775f5,'columnWidths':_0x5a0603}),_0xe02754['markBlockFormat'](_0x1390b2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1ec36a,'columnWidths':_0x2813e4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x41c829){if('formatBlock'!=_0x41c829['type']&&'formatInline'!=_0x41c829['type'])return;const {data:_0x14b630}=_0x41c829;if(_0x14b630&&'resizeTable'===_0x14b630['formatGroupId']){const _0x424e32='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x424e32)};}}}class _t extends _0x2b5176{['afterInit'](){const _0x556849=this['editor'];_0x556849['plugins']['has']('Template')&&_0x556849['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x2b5176{['afterInit'](){const _0x30f91b=this['editor'];if(!_0x30f91b['commands']['get']('insertTableOfContents'))return;_0x30f91b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x26c8eb=_0x30f91b['plugins']['get']('TrackChangesEditing'),_0x3586ee=_0x30f91b['locale'];_0x26c8eb['descriptionFactory']['registerElementLabel']('tableOfContents',_0x33dbaf=>o(_0x3586ee,'ELEMENT_TABLE_OF_CONTENTS',_0x33dbaf));}}class Dt extends _0x2b5176{['afterInit'](){const _0x28acc1=this['editor'];if(!_0x28acc1['plugins']['has']('Title'))return;const _0x4875c2=_0x28acc1['plugins']['get']('TrackChangesEditing');_0x4875c2['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x28acc1['locale'],'ELEMENT_TITLE')),_0x28acc1['model']['document']['registerPostFixer'](_0x1fff2d=>{let _0x1d2ddf=!0x1;const _0x25ef64=Array['from'](_0x28acc1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f1c8d,data:_0x7eef3d}of _0x25ef64){const {group:_0x2182d4}=_0x4875c2['_splitMarkerName'](_0x2f1c8d);if('suggestion'!==_0x2182d4||!_0x7eef3d['newRange'])continue;const _0x11f5e0=_0x7eef3d['newRange'],_0x47feef=_0x11f5e0['end']['nodeBefore'];if(!_0x47feef||!_0x47feef['is']('element','title-content'))continue;if(!_0x11f5e0['start']['isTouching'](_0x11f5e0['end']))continue;const _0x1405fd=_0x28acc1['model']['schema']['getNearestSelectionRange'](_0x11f5e0['end'],'forward');if(_0x1405fd&&_0x1405fd['isCollapsed']){const _0x5d2b00=_0x1fff2d['createRange'](_0x11f5e0['start'],_0x1405fd['start']);_0x5d2b00['isEqual'](_0x11f5e0)||(_0x1fff2d['updateMarker'](_0x2f1c8d,{'range':_0x5d2b00}),_0x1d2ddf=!0x0);}_0x1d2ddf||(_0x1fff2d['removeMarker'](_0x2f1c8d),_0x1d2ddf=!0x0);}return _0x1d2ddf;});}}class Nt extends _0x2b5176{['afterInit'](){const _0x50ab27=this['editor'],_0x3ca0a3=_0x50ab27['plugins']['get']('TrackChangesEditing');_0x50ab27['plugins']['has']('UndoEditing')&&(_0x3ca0a3['enableCommand']('undo'),_0x3ca0a3['enableCommand']('redo'));}}class Mt extends _0x2b5176{static get['requires'](){return[jt];}['afterInit'](){const _0x18eae8=this['editor'];if(!_0x18eae8['plugins']['has']('TableCaptionEditing'))return;_0x18eae8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x2b5176{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x31978f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4597dc of this['tableProperties'])_0x31978f['enableCommand'](_0x4597dc,(_0x3d2b08,_0xb31ef1)=>{const _0x5c841f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4597dc,[_0x5c841f],this['tableProperties'],'tableProperties',_0x3d2b08,_0xb31ef1);});_0x31978f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x31978f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x31978f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3365a7,_0x23d476)=>this['handleDiscardAction'](this['tableProperties'],_0x3365a7,_0x23d476)),_0x31978f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x553f9a of this['tableCellProperties'])_0x31978f['enableCommand'](_0x553f9a,(_0x333df2,_0x496f50)=>{const _0x383d67=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x553f9a,_0x383d67,this['tableCellProperties'],'tableCellProperties',_0x333df2,_0x496f50);});_0x31978f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x31978f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x31978f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3f0dd8,_0x404821)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3f0dd8,_0x404821)),_0x31978f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x31978f['descriptionFactory']['registerDescriptionCallback'](_0x6d4381=>this['handleSuggestionDescription'](_0x6d4381));}['_handlePropertyChange'](_0x5e669c,_0x3d451a,_0x1948ed,_0x752bd0,_0x407ea6,_0x3ca001){const _0xd2ff8e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3ca001['batch'],()=>{for(const _0x5493ba of _0x3d451a){if(this['_getSuggestion'](_0x5493ba,_0x752bd0))_0x407ea6(_0x3ca001);else{const _0x1d8643={};for(const _0x24420b of _0x1948ed){const _0xcf623b=_0x5493ba['getAttribute'](_0x24420b);void 0x0!==_0xcf623b&&(_0x1d8643[_0x24420b]=_0xcf623b);}_0x407ea6(_0x3ca001),_0xd2ff8e['markBlockFormat'](_0x5493ba,{'commandParams':[_0x1d8643]},[],_0x752bd0);}}});}['handleDiscardAction'](_0x53edc6,_0x4cc85b,_0x426e){const _0x2a8f16=_0x4cc85b[0x0]['start']['nodeAfter'],_0x2d3a34=_0x426e['commandParams'][0x0];this['editor']['model']['change'](_0x46cedd=>{for(const _0x479f71 of _0x53edc6)void 0x0!==_0x2d3a34[_0x479f71]?_0x46cedd['setAttribute'](_0x479f71,_0x2d3a34[_0x479f71],_0x2a8f16):_0x46cedd['removeAttribute'](_0x479f71,_0x2a8f16);});}['handleSuggestionDescription'](_0x125ef1){if(_0x125ef1['data'])switch(_0x125ef1['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'](_0x123b8e,_0x57aaf6){const _0x5e73e7=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x53ac09 of _0x5e73e7['getSuggestions']({'skipNotAttached':!0x0})){const _0x97af3a=_0x53ac09['getContainedElement']();if(_0x53ac09['subType']===_0x57aaf6&&_0x97af3a===_0x123b8e)return _0x53ac09;}return null;}constructor(_0x382c52){super(_0x382c52),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0x2b5176{static get['requires'](){return['CommentsRepository',_0x1cec01,_0x1dfaf1,E,V,U,O,G,F,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}['init'](){const _0x3d9815=this['editor'],_0x39b82b=(_0x182196,_0x3e2072)=>{if('attribute'!=_0x182196)return'ck-suggestion-marker-'+_0x182196;const _0x788f06=_0x3e2072['split']('|')[0x0];return this['_isBlockAttribute'](_0x788f06)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3d9815['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1402c9=>{const {id:_0x2be46c,type:_0x2bb2c2,subType:_0x587386}=this['_splitMarkerName'](_0x1402c9['markerName']),_0x314ba5=['ck-suggestion-marker',_0x39b82b(_0x2bb2c2,_0x587386)];let _0x5573f4=0xbb8;return this['activeMarkers']['includes'](_0x1402c9['markerName'])&&(_0x314ba5['push']('ck-suggestion-marker--active'),_0x5573f4=0xbc2),'deletion'==_0x2bb2c2&&(_0x5573f4+=0x5),{'classes':_0x314ba5,'attributes':{'data-suggestion':_0x2be46c},'priority':_0x5573f4};}}),_0x3d9815['conversion']['for']('dataDowncast')['add'](_0xaf7867=>{_0xaf7867['on']('addMarker:suggestion',(_0x1c682a,_0x4bb2c1,_0x73c8b9)=>{if(!_0x73c8b9['options']['showSuggestionHighlights'])return;const _0x4299be=_0x4bb2c1['item'];if(!_0x4299be)return;const _0x325e7e=_0x73c8b9['mapper']['toViewElement'](_0x4299be);_0x3d9815['model']['schema']['isObject'](_0x4299be)&&_0x325e7e&&!_0x325e7e['getCustomProperty']('widget')&&_0x325e7e['is']('containerElement')&&_0x531fee(_0x325e7e,_0x73c8b9['writer']);},{'priority':'high'});}),_0x3d9815['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2a3ebb,_0x4c7482)=>{if(!_0x4c7482['options']['showSuggestionHighlights'])return null;const {type:_0x5031ab,subType:_0x4fb548}=this['_splitMarkerName'](_0x2a3ebb['markerName']);return{'classes':['ck-suggestion-marker',_0x39b82b(_0x5031ab,_0x4fb548)],'priority':0xbb8};}});const _0x1694f2=({showActiveMarkers:_0x30a8b1=!0x0,isAttributeSuggestion:_0xdd14f4=!0x1}={})=>(_0x487e92,_0x295091,_0x3de68a)=>{if(!_0x295091['item'])return;const {id:_0x4d7d20}=this['_splitMarkerName'](_0x295091['markerName']);if(_0xdd14f4){const _0x325e02=this['_suggestions']['get'](_0x4d7d20),_0x440baa=this['_getAttributeKey'](_0x325e02);if(!this['_isBlockAttribute'](_0x440baa))return;}if(_0x295091['item']['is']('selection'))return void _0x3de68a['consumable']['consume'](_0x295091['item'],_0x487e92['name']);const _0x26e55a=_0x3de68a['mapper']['toViewElement'](_0x295091['item']);if(_0x295091['item']['is']('element')&&_0x3d9815['model']['schema']['isBlock'](_0x295091['item'])&&!_0x26e55a['getCustomProperty']('addHighlight')){_0x3de68a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x26e55a),_0x3de68a['writer']['setAttribute']('data-suggestion',_0x4d7d20,_0x26e55a),_0x3de68a['mapper']['bindElementToMarker'](_0x26e55a,_0x295091['markerName']),_0x30a8b1&&(this['activeMarkers']['includes'](_0x295091['markerName'])?_0x3de68a['writer']['addClass']('ck-suggestion-marker--active',_0x26e55a):_0x3de68a['writer']['removeClass']('ck-suggestion-marker--active',_0x26e55a));for(const _0x776d6a of _0x3d9815['model']['createRangeIn'](_0x295091['item'])['getItems']())_0x3de68a['consumable']['consume'](_0x776d6a,_0x487e92['name']);_0x3de68a['consumable']['consume'](_0x295091['item'],_0x487e92['name']);}};_0x3d9815['conversion']['for']('dataDowncast')['add'](_0x2f1f7a=>{_0x2f1f7a['on']('addMarker:suggestion:formatBlock',(_0x1196ef,_0x412235,_0x318792)=>{_0x318792['options']['showSuggestionHighlights']&&_0x1694f2({'showActiveMarkers':!0x1})(_0x1196ef,_0x412235,_0x318792);},{'priority':'highest'});}),_0x3d9815['conversion']['for']('dataDowncast')['add'](_0x17e4a3=>{_0x17e4a3['on']('addMarker:suggestion:attribute',(_0xfc12da,_0x304c1c,_0x3e1f66)=>{_0x3e1f66['options']['showSuggestionHighlights']&&_0x1694f2({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xfc12da,_0x304c1c,_0x3e1f66);},{'priority':'highest'});}),_0x3d9815['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x64b5c7,_0xdaaa3a)=>_0xdaaa3a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x64b5c7['substr'](0xb)}}),_0x3d9815['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x131f11,{writer:_0x379db4})=>{let _0x446e5b='suggestion:'+_0x131f11['getAttribute']('suggestion-type')+':'+_0x131f11['getAttribute']('id');return _0x131f11['getAttribute']('marker-count')&&(_0x446e5b+=':'+_0x131f11['getAttribute']('marker-count')),_0x379db4['createElement']('$marker',{'data-name':_0x446e5b});}}),_0x3d9815['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3d9815['conversion']['for']('editingDowncast')['add'](_0x1e301c=>{_0x1e301c['on']('addMarker:suggestion:formatBlock',_0x1694f2(),{'priority':'high'});}),_0x3d9815['conversion']['for']('editingDowncast')['add'](_0x924350=>{_0x924350['on']('addMarker:suggestion:attribute',_0x1694f2({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3d9815['conversion']['for']('editingDowncast')['add'](_0x32e999=>{_0x32e999['on']('removeMarker:suggestion:formatBlock',(_0x328669,_0x184fcd,_0x5634dd)=>{const _0x177177=_0x5634dd['mapper']['markerNameToElements'](_0x184fcd['markerName']);if(_0x177177){for(const _0x3c972a of _0x177177)_0x3c972a['getCustomProperty']('addHighlight')||(_0x5634dd['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c972a),_0x5634dd['writer']['removeAttribute']('data-suggestion',_0x3c972a),_0x5634dd['mapper']['unbindElementFromMarkerName'](_0x3c972a,_0x184fcd['markerName']));}},{'priority':'high'});}),_0x3d9815['conversion']['for']('editingDowncast')['add'](_0x48777f=>{_0x48777f['on']('removeMarker:suggestion:attribute',(_0x8f1515,_0x4d03ec,_0x4d37cd)=>{const _0x104300=_0x4d37cd['mapper']['markerNameToElements'](_0x4d03ec['markerName']);if(!_0x104300)return;const {id:_0x58ad94}=this['_splitMarkerName'](_0x4d03ec['markerName']),_0x4c2b20=this['_suggestions']['get'](_0x58ad94),_0x3d1b3e=this['_getAttributeKey'](_0x4c2b20);if(this['_isBlockAttribute'](_0x3d1b3e)){for(const _0x410db2 of _0x104300)_0x410db2['getCustomProperty']('addHighlight')||(_0x4d37cd['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x410db2),_0x4d37cd['writer']['removeAttribute']('data-suggestion',_0x410db2),_0x4d37cd['mapper']['unbindElementFromMarkerName'](_0x410db2,_0x4d03ec['markerName']));}},{'priority':'high'});}),_0x3d9815['model']['document']['registerPostFixer'](_0x10d6f0=>{let _0x4fdadd=!0x1;const _0x460bd3=Array['from'](_0x3d9815['model']['document']['differ']['getChangedMarkers']()),_0x58b3a4=new Set();for(const {name:_0x4d6b1f,data:_0x50c481}of _0x460bd3){const {group:_0xdb0c97,type:_0x59df6f,subType:_0x58ab5b,id:_0x276b6e}=this['_splitMarkerName'](_0x4d6b1f);if('suggestion'!==_0xdb0c97)continue;const _0x4573c2=this['_suggestions']['get'](_0x276b6e);if(null!=_0x50c481['newRange']){'formatInline'==_0x59df6f&&(_0x4fdadd=_0x4fdadd||Et(_0x50c481['newRange'],_0x4d6b1f,_0x10d6f0,_0x3d9815['model']['schema']));const _0x42515d='attribute'==_0x59df6f&&this['_isBlockAttribute'](_0x58ab5b['split']('|')[0x0]);if(_0x50c481['newRange']['isCollapsed']||'$graveyard'==_0x50c481['newRange']['root']['rootName']||'formatBlock'==_0x59df6f&&!Ut(_0x50c481['newRange'])||_0x42515d&&!Ut(_0x50c481['newRange'])||'deletion'==_0x59df6f&&!(!Tt(_0x5894a3=_0x50c481['newRange'])&&!function(_0x36058d){return _0x36058d['start']['parent']==_0x36058d['end']['nodeBefore']&&_0x36058d['start']['isAtEnd'];}(_0x5894a3)))_0x10d6f0['removeMarker'](_0x4d6b1f),_0x4fdadd=!0x0;else{if(!_0x4573c2||!_0x4573c2['isInContent'])continue;_0x58b3a4['add'](_0x4573c2);}}}var _0x5894a3;return _0x58b3a4['size']>0x0&&(_0x4fdadd=!!this['_joinWithAdjacentSuggestions'](_0x58b3a4)||_0x4fdadd),_0x4fdadd;}),_0x3d9815['model']['document']['registerPostFixer'](_0x5ad14f=>{let _0x3e0be4=!0x1;for(const _0xc3f58d of _0x3d9815['model']['document']['differ']['getChanges']())if('insert'==_0xc3f58d['type'])for(const _0x25ad67 of this['_suggestions']['values']()){if(_0x25ad67['isMultiRange']||!_0x25ad67['isInContent'])continue;const _0x47792e='formatBlock'==_0x25ad67['type'],_0x4fcb82=this['_getAttributeKey'](_0x25ad67),_0x2a457d=_0x4fcb82&&this['_isBlockAttribute'](_0x4fcb82);if(!_0x47792e&&!_0x2a457d)continue;const _0x3ef9d4=_0x25ad67['getFirstRange']();if(_0x3ef9d4['start']['parent']!=_0x3ef9d4['end']['parent']&&!_0x3ef9d4['end']['isAtEnd']){const _0x4ab070=_0x3d9815['model']['createPositionAt'](_0x3ef9d4['start']['nodeAfter'],'end'),_0x47f344=_0x3d9815['model']['createRange'](_0x3ef9d4['start'],_0x4ab070);_0x5ad14f['updateMarker'](_0x25ad67['getFirstMarker'](),{'range':_0x47f344}),_0x3e0be4=!0x0;}}return _0x3e0be4;}),_0x3d9815['model']['document']['registerPostFixer'](_0x5d9c1d=>this['_processAttributeChanges'](_0x5d9c1d)),_0x3d9815['model']['document']['registerPostFixer'](_0x544826=>!_0x544826['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x544826)),_0x3d9815['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3d9815['model']['document']['on']('change:data',(_0x58e658,_0x472cd6)=>{if(!_0x472cd6['isLocal']||_0x472cd6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4be020=_0x3d9815['model']['document']['differ']['getChanges']();if(0x0==_0x4be020['length'])return;const _0x4ef09c=[],_0x2658a5=_0x4be020['filter'](_0x32b078=>'attribute'==_0x32b078['type']),_0xb936f6=_0x4be020['filter'](_0x1bc012=>'insert'==_0x1bc012['type']&&'$text'!=_0x1bc012['name']),_0x211b7e=_0x4be020['filter'](_0x5f3e54=>'remove'==_0x5f3e54['type']&&'$text'!=_0x5f3e54['name']);for(const _0x13ef34 of _0x2658a5)this['_isRegisteredAttribute'](_0x13ef34['attributeKey'])&&_0x4ef09c['push']({'key':_0x13ef34['attributeKey'],'newValue':_0x13ef34['attributeNewValue'],'oldValue':_0x13ef34['attributeOldValue'],'range':Ot(_0x13ef34['range'],_0x3d9815['model'])});for(const _0x4f9bc4 of _0xb936f6){const _0x257f38=_0x211b7e['find'](_0x31d470=>_0x31d470['_element']===_0x4f9bc4['_element']);if(_0x257f38){const _0x99a07d=Ft(_0x4f9bc4['position']['nodeAfter'],_0x3d9815['model']);_0x257f38['name']!==_0x4f9bc4['name']&&_0x4ef09c['push']({'key':m,'newValue':_0x4f9bc4['name'],'oldValue':_0x257f38['name'],'range':_0x99a07d});for(const [_0x397fe0,_0x5bcce5]of _0x257f38['attributes']){if(!this['_isRegisteredAttribute'](_0x397fe0))continue;const _0x39da28=_0x4f9bc4['attributes']['get'](_0x397fe0);_0x5bcce5!==_0x39da28&&_0x4ef09c['push']({'key':_0x397fe0,'newValue':_0x39da28,'oldValue':_0x5bcce5,'range':_0x99a07d});}for(const [_0x4c0e21,_0x97174b]of _0x4f9bc4['attributes'])this['_isRegisteredAttribute'](_0x4c0e21)&&(_0x257f38['attributes']['has'](_0x4c0e21)||_0x4ef09c['push']({'key':_0x4c0e21,'newValue':_0x97174b,'oldValue':null,'range':_0x99a07d}));}}0x0!=_0x4ef09c['length']&&_0x3d9815['model']['enqueueChange'](_0x472cd6,_0x24b991=>{const _0x40ee12=_0x2218f2();for(const {range:_0x3c1b2e,key:_0x4d2c7b,oldValue:_0x17b47e,newValue:_0x2b2216}of _0x4ef09c)this['markAttributeChange'](_0x3c1b2e,_0x4d2c7b,_0x17b47e,_0x2b2216,{'groupId':_0x40ee12});this['_reduceExistingSuggestions'](_0x24b991,_0x4ef09c);});},{'priority':'lowest'}),_0x3d9815['model']['markers']['on']('update:suggestion',(_0x2cf9f,_0x114e1c,_0x492dfa)=>{if(null==_0x492dfa){const {id:_0x30a3cc}=this['_splitMarkerName'](_0x114e1c['name']),_0x933343=this['_suggestions']['get'](_0x30a3cc);_0x933343&&_0x933343['addMarkerName'](_0x114e1c['name']);}}),_0x3d9815['model']['document']['on']('change:data',()=>{const _0x4a09b1=Array['from'](_0x3d9815['model']['document']['differ']['getChangedMarkers']())['filter'](_0x547f47=>'suggestion'===this['_splitMarkerName'](_0x547f47['name'])['group']);if(0x0===_0x4a09b1['length'])return;_0x4a09b1['sort']((_0x3b759d,_0x5cb9ec)=>{const _0x1f6ad1=_0x3b759d['data']['oldRange'],_0x132ba1=_0x5cb9ec['data']['oldRange'];return null===_0x1f6ad1&&null===_0x132ba1?0x0:null===_0x1f6ad1&&null!==_0x132ba1?-0x1:null!==_0x1f6ad1&&null===_0x132ba1?0x1:_0x1f6ad1['start']['isBefore'](_0x132ba1['start'])?-0x1:0x1;});const _0x324f95=new Set(),_0x259fba=new Set();for(const {name:_0x39e2fb,data:_0x4f2ff6}of _0x4a09b1){const {id:_0x20e024}=this['_splitMarkerName'](_0x39e2fb);if(null===_0x4f2ff6['oldRange']){const _0x1b7222=this['_handleNewSuggestionMarker'](_0x39e2fb);_0x259fba['add'](_0x1b7222);}else{const _0xd4e555=this['_suggestions']['get'](_0x20e024);null!==_0x4f2ff6['newRange']||_0xd4e555['isInContent']?(_0x324f95['add'](_0xd4e555['head']),_0x259fba['add'](_0xd4e555)):this['_removeSuggestion'](_0xd4e555);}}_0x259fba['size']>0x0&&this['_refreshSuggestionsChain'](_0x259fba);for(const _0x39a0d3 of _0x324f95)this['fire']('suggestionChanged',_0x39a0d3);}),_0x3d9815['model']['on']('applyOperation',(_0x471a09,_0x29b212)=>{const _0x2bfd1f=_0x29b212[0x0];if(!this['_suggestions']['size'])return;if(!_0x2bfd1f['isDocumentOperation'])return;if(_0x2bfd1f['batch']['isUndo']||!_0x2bfd1f['batch']['isLocal'])return;let _0x18461c,_0x5de555;switch(_0x2bfd1f['type']){case'insert':_0x18461c=_0x3d9815['model']['createPositionAt'](_0x2bfd1f['position']),_0x5de555=_0x18461c['getShiftedBy'](_0x2bfd1f['howMany']);break;case'split':_0x18461c=_0x3d9815['model']['createPositionAt'](_0x2bfd1f['splitPosition']),_0x5de555=_0x3d9815['model']['createPositionAt'](_0x2bfd1f['moveTargetPosition']);break;case'move':_0x18461c=_0x3d9815['model']['createPositionAt'](_0x2bfd1f['targetPosition']),_0x5de555=_0x18461c['getShiftedBy'](_0x2bfd1f['howMany']);break;default:return;}const _0x14cc4d=_0x3d9815['model']['createRange'](_0x18461c,_0x5de555);_0x3d9815['model']['change'](()=>{for(const {suggestion:_0x4f5d6e,meta:_0x25de77}of this['_findSuggestions'](_0x14cc4d)){if(_0x4f5d6e['isMultiRange'])continue;if('formatInline'==_0x4f5d6e['type'])continue;const _0x5dc2b5=this['_getAttributeKey'](_0x4f5d6e);if(_0x5dc2b5&&this['_isBlockAttribute'](_0x5dc2b5)&&'split'!=_0x2bfd1f['type'])continue;const _0x39b980=_0x4f5d6e['data']&&_0x4f5d6e['data']['multipleBlocks'];('formatBlock'!=_0x4f5d6e['type']||'split'==_0x2bfd1f['type']&&!_0x39b980)&&(_0x25de77['containsRangeInObject']||'insertion'==_0x4f5d6e['type']&&_0x25de77['isOwn']||_0x4f5d6e['getFirstRange']()['containsRange'](_0x14cc4d)&&this['_breakSuggestionMarker'](_0x4f5d6e,_0x18461c,_0x5de555));}});},{'priority':'lowest'}),_0x3d9815['model']['on']('deleteContent',(_0x84da27,_0x157e5f)=>{const _0x56cc27=_0x157e5f[0x0],_0x36d78a=_0x157e5f[0x1];if(_0x36d78a&&_0x36d78a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x56cc27['isCollapsed'])return;const _0x16f2fe=_0x3d9815['model']['schema'],{start:_0x239af2,end:_0x27f476}=_0x56cc27['getFirstRange'](),_0x23e265=_0x239af2['nodeAfter']&&_0x16f2fe['isLimit'](_0x239af2['nodeAfter'])?null:_0x16f2fe['getNearestSelectionRange'](_0x239af2,'forward'),_0x20ef60=_0x27f476['nodeBefore']&&_0x16f2fe['isLimit'](_0x27f476['nodeBefore'])?null:_0x16f2fe['getNearestSelectionRange'](_0x27f476,'backward'),_0x97dbcc=_0x3d9815['model']['createRange'](_0x23e265?_0x23e265['start']:_0x239af2,_0x20ef60?_0x20ef60['end']:_0x27f476);_0x3d9815['model']['change'](_0x67bdbe=>{this['markDeletion'](_0x97dbcc);const _0xaf885a=_0x3d9815['model']['schema']['getNearestSelectionRange'](_0x97dbcc['start']);_0x56cc27['is']('documentSelection')?_0x67bdbe['setSelection'](_0xaf885a):_0x56cc27['setTo'](_0xaf885a);}),_0x84da27['stop']();},{'priority':_0x4604ea['normal']+0xa}),_0x3d9815['model']['on']('insertContent',(_0xdc8042,_0x40e8ef)=>{const _0xf28f25=_0x40e8ef[_0x40e8ef['length']-0x1];_0xf28f25&&_0xf28f25['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3d9815['model']['change'](()=>{let _0x372593=_0x3d9815['model']['insertContent'](_0x40e8ef[0x0],_0x40e8ef[0x1],_0x40e8ef[0x2],{'forceDefaultExecution':!0x0});if(!_0x372593)return;_0xdc8042['return']=_0x372593['clone']();const _0x13d56c=_0x372593['end']['nodeBefore'],_0x5e75d5=_0x3d9815['model']['schema'];_0x13d56c&&_0x5e75d5['isBlock'](_0x13d56c)&&!_0x5e75d5['isObject'](_0x13d56c)&&(_0x372593=_0x3d9815['model']['createRange'](_0x372593['start'],_0x3d9815['model']['createPositionAt'](_0x13d56c,'end'))),this['markInsertion'](_0x372593);}),_0xdc8042['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4a9599=new $(_0x3d9815,this['_suggestions']);_0x3d9815['commands']['add']('acceptSuggestion',_0x4a9599),this['enableCommand']('acceptSuggestion');const _0x189b4b=new B(_0x3d9815,this['_suggestions']);_0x3d9815['commands']['add']('discardSuggestion',_0x189b4b),this['enableCommand']('discardSuggestion'),_0x3d9815['commands']['add']('acceptAllSuggestions',new x(_0x3d9815,_0x4a9599,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3d9815['commands']['add']('discardAllSuggestions',new x(_0x3d9815,_0x189b4b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3d9815['commands']['add']('acceptSelectedSuggestions',new R(_0x3d9815,_0x4a9599,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3d9815['commands']['add']('discardSelectedSuggestions',new R(_0x3d9815,_0x189b4b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2b0a9b=_0x3d9815['plugins']['get']('CommentsRepository');this['listenTo'](_0x2b0a9b,'addComment',(_0x5da228,{threadId:_0x3f2cce})=>{const _0x43dc9c=this['_suggestions']['get'](_0x3f2cce);_0x43dc9c&&_0x43dc9c['commentThread']&&0x1===_0x43dc9c['commentThread']['length']&&this['_updateSuggestionData'](_0x3f2cce,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2b0a9b,'removeComment',(_0x2bb0bb,{threadId:_0x3be433})=>{const _0x1fffb5=this['_suggestions']['get'](_0x3be433);_0x1fffb5&&_0x1fffb5['commentThread']&&!_0x1fffb5['commentThread']['length']&&this['_updateSuggestionData'](_0x3be433,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4fe6bc){if(this['_adapter'])throw new _0x295e05('track-changes-adapter-already-set',this);this['_adapter']=_0x4fe6bc;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1524b1=!0x1,toJSON:_0x2c60a7=!0x1}={}){const _0x1bed16=[];for(const _0x238aeb of this['_suggestions']['values']())_0x1524b1&&!_0x238aeb['isInContent']||_0x1bed16['push'](_0x238aeb);return _0x2c60a7?_0x1bed16['map'](_0x27f47c=>_0x27f47c['toJSON']()):_0x1bed16;}['getSuggestion'](_0x476993){const _0x4dd626=this['_suggestions']['get'](_0x476993);if(!_0x4dd626)throw new _0x295e05('track-changes-suggestion-not-found',this);return _0x4dd626;}['hasSuggestion'](_0x48e65a){return this['_suggestions']['has'](_0x48e65a);}['addSuggestionData'](_0x450574){const {authorId:_0x41778b,id:_0x46c9f2,attributes:_0x1ee65c}=_0x450574,[_0x10f96d,_0x395482]=_0x450574['type']['split'](':'),_0x57d608=this['_suggestions']['get'](_0x46c9f2)||this['_createSuggestion'](_0x10f96d,_0x395482,_0x46c9f2,_0x41778b,_0x1ee65c);if(this['_addThreadToSuggestion'](_0x57d608),this['_checkSuggestionCorrectness'](_0x57d608,_0x10f96d,_0x395482||null,_0x41778b),_0x57d608['createdAt']=_0x450574['createdAt'],_0x57d608['_isDataLoaded']=!0x0,_0x1ee65c&&_0x1ee65c['@external']){const _0x4a240a=_0x1ee65c['@external'],_0x76b37a=this['_getExternalAuthor'](_0x4a240a['authorName']);_0x57d608['authoredAt']=_0x4a240a['createdAt'],_0x57d608['author']=_0x76b37a,_0x57d608['isExternal']=!0x0;}else _0x57d608['authoredAt']=_0x450574['createdAt'];switch(_0x450574['data']&&(_0x57d608['data']=_0x450574['data']),_0x450574['attributes']&&(_0x57d608['attributes']=_0x450574['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x57d608['_saved']=!0x0),this['_suggestionState']['get'](_0x57d608)){case'notReady':this['_suggestionState']['set'](_0x57d608,'dataReady');break;case'markerReady':_0x57d608['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x57d608])),this['_refreshSuggestionsChain'](new Set([_0x57d608])),this['_suggestionState']['set'](_0x57d608,'ready'),this['fire']('suggestionLoaded',_0x57d608)):this['_suggestionState']['set'](_0x57d608,'removed');}return _0x57d608;}['acceptSuggestion'](_0x2ebad7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xd8f0ea of _0x2ebad7['getAllAdjacentSuggestions']())_0xd8f0ea['accept']();});});}['discardSuggestion'](_0x3b269a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3712ff of _0x3b269a['getAllAdjacentSuggestions']())_0x3712ff['discard']();});});}['enableCommand'](_0x61244d,_0x434164){const _0x44db3a=this['editor']['commands']['get'](_0x61244d);if(!_0x44db3a)throw new _0x295e05('track-changes-command-not-found',this,{'commandName':_0x61244d});if(this['_enabledCommands']['has'](_0x44db3a))throw new _0x295e05('track-changes-enable-command-twice',this,{'commandName':_0x61244d});this['_enabledCommands']['add'](_0x44db3a),_0x434164&&_0x44db3a['on']('execute',(_0x3a9086,_0x2ceb84)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2ceb84['length']>0x0&&_0x2ceb84[_0x2ceb84['length']-0x1]&&_0x2ceb84[_0x2ceb84['length']-0x1]['forceDefaultExecution']?_0x2ceb84['pop']():(_0x3a9086['return']=_0x434164((..._0x13d5c6)=>_0x44db3a['execute'](..._0x13d5c6,{'forceDefaultExecution':!0x0}),..._0x2ceb84),_0x3a9086['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3368ae){let _0x4ca789,_0x42e2e3;const _0x495518=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4ca789=_0x3368ae();}catch(_0xc398ac){_0x42e2e3=_0xc398ac;}return _0x495518||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x42e2e3&&_0x295e05['rethrowUnexpectedError'](_0x42e2e3,this),_0x4ca789;}['markInsertion'](_0x5045ad,_0x16aac5=null,_0x5ead52={}){if(_0x5045ad['isCollapsed'])return null;const _0x41be9a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2548af,meta:_0xc16a9a}of this['_findSuggestions'](_0x5045ad,'insertion'))if(_0xc16a9a['isOwn']){if(!_0xc16a9a['isNextTo']){if(_0xc16a9a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2548af,_0x5ead52))continue;return _0x2548af;}if(Lt(_0x2548af,_0x5ead52))return _0x2548af;this['_breakSuggestionMarker'](_0x2548af,_0x5045ad['start'],_0x5045ad['end']);break;}if(_0x16aac5==_0x2548af['subType']&&Lt(_0x2548af,_0x5ead52)){const _0x1d1ccb=_0x2548af['getFirstRange']();return _0x1d1ccb['start']['isEqual'](_0x5045ad['end'])?this['_setSuggestionRange'](_0x2548af,this['_model']['createRange'](_0x5045ad['start'],_0x1d1ccb['end'])):this['_setSuggestionRange'](_0x2548af,this['_model']['createRange'](_0x1d1ccb['start'],_0x5045ad['end'])),_0x2548af;}}const _0x284c83=_0x2218f2(),_0xee3fcc=_0x41be9a['id'],_0x39f5f0=_0x16aac5?'insertion:'+_0x16aac5:'insertion',_0x33b771=this['_setSuggestionData']({'id':_0x284c83,'type':_0x39f5f0,'createdAt':new Date(),'authorId':_0xee3fcc,'attributes':_0x5ead52});return this['_addSuggestionMarker'](_0x39f5f0,_0x284c83,_0xee3fcc,_0x5045ad),_0x33b771;}['markMultiRangeInsertion'](_0x161853,_0x30413b='multi',_0x166e80={}){const _0x2f43c6=this['editor']['plugins']['get']('Users')['me'],_0x3ce5fb=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x30413b,'join');for(const _0x3792d3 of this['getSuggestions']())if(_0x3792d3['author']['id']==_0x2f43c6['id']&&'insertion'==_0x3792d3['type']&&_0x3792d3['subType']==_0x30413b&&Lt(_0x3792d3,_0x166e80)&&(_0x3ce5fb(_0x3792d3['getRanges'](),_0x161853)||_0x3ce5fb(_0x161853,_0x3792d3['getRanges']()))){for(const _0x498610 of _0x161853)_0x3792d3['addRange'](_0x498610);return _0x3792d3;}for(const {suggestion:_0x4d4c95,meta:_0x3a47e6}of this['_findSuggestions'](_0x161853,'insertion')){if(!_0x3a47e6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3a47e6['containsRangeInObject'])continue;if(!Lt(_0x4d4c95,_0x166e80))continue;let _0x2d05cf=!0x0;for(const _0x4bcd3c of _0x4d4c95['getRanges']())for(const _0x1f54d8 of _0x161853)if(!_0x4bcd3c['containsRange'](_0x1f54d8)){_0x2d05cf=!0x1;break;}if(_0x2d05cf)return _0x4d4c95;}const _0x69e8d8=_0x2218f2(),_0x29d75c=_0x2f43c6['id'],_0x57c501='insertion:'+_0x30413b,_0x4a91bd=this['_setSuggestionData']({'id':_0x69e8d8,'type':_0x57c501,'createdAt':new Date(),'authorId':_0x29d75c,'attributes':_0x166e80});for(const _0x430f47 of _0x161853)this['_addSuggestionMarker'](_0x57c501,_0x69e8d8,_0x29d75c,_0x430f47,u['getMultiRangeId']());return _0x4a91bd;}['markInlineFormat'](_0x505004,_0x1ef5b6,_0x31a2c7=null,_0xefb4ac={}){if(_0x31a2c7=_0x31a2c7||Vt(_0x1ef5b6),_0x505004['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x41868a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x31a2c7,'accept');return this['forceDefaultExecution'](()=>_0x41868a([_0x505004],_0x1ef5b6,_0xefb4ac)),null;}const _0x5e0bde=this['editor']['plugins']['get']('Users')['me'],_0x5b27b2=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x23e8c2,meta:_0x126215}of this['_findSuggestions'](_0x505004,'insertion'))_0x126215['isOwn']&&!_0x126215['isInsideObject']&&_0x5b27b2['push'](..._0x23e8c2['getRanges']());}const _0x4b0acb=function(_0x1259cf,_0xc0040c){const _0x3ef3b9=[];for(const _0x4d269c of _0xc0040c){const _0x2b616a=_0x1259cf['getIntersection'](_0x4d269c);_0x2b616a&&_0x3ef3b9['push'](_0x2b616a);}return _0x3ef3b9;}(_0x505004,_0x5b27b2),_0x3948d9=function(_0x25b310,_0x3b8093){const _0x46027c=[_0x25b310];for(const _0xa9f6de of _0x3b8093){let _0x372bb2=0x0;for(;_0x372bb2<_0x46027c['length'];){const _0x3cbea3=_0x46027c[_0x372bb2]['getDifference'](_0xa9f6de);_0x46027c['splice'](_0x372bb2,0x1,..._0x3cbea3),_0x372bb2+=_0x3cbea3['length'];}}return _0x46027c;}(_0x505004,_0x5b27b2);_0x4b0acb['length']&&this['_model']['change'](()=>{for(const _0x167a58 of _0x4b0acb){const _0x5e54af=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x31a2c7,'accept');this['forceDefaultExecution'](()=>_0x5e54af([_0x167a58],_0x1ef5b6,_0xefb4ac));}});for(const _0x21055b of _0x3948d9){let _0x87f318=null,_0x853fdc=_0x21055b['start'],_0x52ca7a=_0x21055b['end'];for(const {suggestion:_0xb9d5e2,meta:_0xc7a7bf}of this['_findSuggestions'](_0x21055b,'formatInline')){if(!_0xc7a7bf['isOwn'])continue;if(_0xb9d5e2['subType']!=_0x31a2c7)continue;if(!Lt(_0xb9d5e2,_0xefb4ac))continue;const _0x5db3fd=_0xb9d5e2['getFirstRange']();if(_0x5db3fd['containsRange'](_0x21055b,!0x0))return null;_0x853fdc=_0x853fdc['isBefore'](_0x5db3fd['start'])?_0x853fdc:_0x5db3fd['start'],_0x52ca7a=_0x52ca7a['isAfter'](_0x5db3fd['end'])?_0x52ca7a:_0x5db3fd['end'],_0x87f318?_0x5db3fd['start']['isBefore'](_0x87f318['getFirstRange']()['start'])?(_0x87f318['removeMarkers'](),_0x87f318=_0xb9d5e2):_0xb9d5e2['removeMarkers']():_0x87f318=_0xb9d5e2;}const _0x3279fe=this['_model']['createRange'](_0x853fdc,_0x52ca7a);if(_0x87f318)this['_setSuggestionRange'](_0x87f318,_0x3279fe);else{const _0x24de08=_0x2218f2(),_0x11228d=_0x5e0bde['id'];this['_setSuggestionData']({'id':_0x24de08,'type':'formatInline:'+_0x31a2c7,'data':_0x1ef5b6,'createdAt':new Date(),'authorId':_0x11228d,'attributes':_0xefb4ac}),this['_addSuggestionMarker']('formatInline:'+_0x31a2c7,_0x24de08,_0x11228d,_0x3279fe);}}return null;}['markBlockFormat'](_0x551dfe,_0x586ee8,_0x43cc04=[],_0xd4d6bc=null,_0x41b814={}){_0x586ee8['formatGroupId']||(_0x586ee8['formatGroupId']=_0x586ee8['commandName']),_0x586ee8['multipleBlocks']=_0x551dfe['is']('range'),_0xd4d6bc=_0xd4d6bc||Vt(_0x586ee8);const _0x192491=_0x43cc04['map'](_0x535dc1=>Ft(_0x535dc1,this['_model'])),_0x2ca030=_0x551dfe['is']('range')?_0x551dfe:Ft(_0x551dfe,this['_model']);if('never'===this['_trackFormatChanges']){const _0x54e1be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd4d6bc,'accept');return this['forceDefaultExecution'](()=>_0x54e1be([_0x2ca030],_0x586ee8,_0x41b814)),null;}_0x192491['push'](_0x2ca030);let _0x154de8=!0x0;for(const _0x254299 of _0x192491)if(!this['_rangeIsInLocalUserInsertion'](_0x254299)){_0x154de8=!0x1;break;}if(_0x154de8&&'always'!==this['_trackFormatChanges']){const _0x54f27a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd4d6bc,'accept');return this['forceDefaultExecution'](()=>_0x54f27a([_0x2ca030],_0x586ee8,_0x41b814)),null;}let _0x4d79fe=null,_0x590683=_0x2ca030['start'],_0x397d7b=_0x2ca030['end'];for(const {suggestion:_0x55e6c9,meta:_0x50c2b5}of this['_findSuggestions'](_0x2ca030,'formatBlock')){if(!_0x50c2b5['isOwn'])continue;if(_0x50c2b5['isNextTo']||_0x50c2b5['containsRangeInObject']||_0x50c2b5['isInsideObject'])continue;if(_0x55e6c9['data']['formatGroupId']!=_0x586ee8['formatGroupId'])continue;if(!Lt(_0x55e6c9,_0x41b814))continue;const _0x5c9f02=_0x55e6c9['getFirstRange']();if(_0x55e6c9['subType']==_0xd4d6bc){if(_0x5c9f02['containsRange'](_0x2ca030,!0x0))return null;_0x590683=_0x590683['isBefore'](_0x5c9f02['start'])?_0x590683:_0x5c9f02['start'],_0x397d7b=_0x397d7b['isAfter'](_0x5c9f02['end'])?_0x397d7b:_0x5c9f02['end'],_0x4d79fe?_0x5c9f02['start']['isBefore'](_0x4d79fe['getFirstRange']()['start'])?(_0x4d79fe['removeMarkers'](),_0x4d79fe=_0x55e6c9):_0x55e6c9['removeMarkers']():_0x4d79fe=_0x55e6c9;}else{const _0x5a7347=_0x2ca030['getIntersection'](_0x5c9f02);this['_cutOutSuggestionMarker'](_0x55e6c9,_0x5a7347);}}const _0x4cd39c=this['editor']['plugins']['get']('Users')['me'],_0x89a5bc=_0x2218f2(),_0x2ca58a=_0x4cd39c['id'];if(_0x4d79fe)return this['_setSuggestionRange'](_0x4d79fe,this['_model']['createRange'](_0x590683,_0x397d7b)),_0x4d79fe;{const _0x19a32c=this['_setSuggestionData']({'id':_0x89a5bc,'type':'formatBlock:'+_0xd4d6bc,'data':_0x586ee8,'createdAt':new Date(),'authorId':_0x2ca58a,'attributes':_0x41b814});return this['_addSuggestionMarker']('formatBlock:'+_0xd4d6bc,_0x89a5bc,_0x2ca58a,this['_model']['createRange'](_0x590683,_0x397d7b)),_0x19a32c;}}['markMultiRangeBlockFormat'](_0x6273eb,_0x22aa53,_0x2928b7=[],_0x554dbb=null,_0x233b3f={}){_0x22aa53['formatGroupId']||(_0x22aa53['formatGroupId']=_0x22aa53['commandName']);const _0x212227=_0x6273eb[0x0];_0x22aa53['multipleBlocks']=_0x212227['is']('range'),_0x554dbb=_0x554dbb||Vt(_0x22aa53);const _0x421fb2=_0x2928b7['map'](_0x4629d9=>Ft(_0x4629d9,this['_model'])),_0x4d84f2=_0x212227['is']('range')?_0x6273eb:_0x6273eb['map'](_0x11c368=>Ft(_0x11c368,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1e61d4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x554dbb,'accept');return this['forceDefaultExecution'](()=>_0x1e61d4(_0x4d84f2,_0x22aa53,_0x233b3f)),null;}_0x421fb2['push'](..._0x4d84f2);let _0x363c71=!0x0;for(const _0x19d804 of _0x421fb2)if(!this['_rangeIsInLocalUserInsertion'](_0x19d804)){_0x363c71=!0x1;break;}if(_0x363c71&&'always'!==this['_trackFormatChanges']){const _0x9b7e86=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x554dbb,'accept');return this['forceDefaultExecution'](()=>_0x9b7e86(_0x4d84f2,_0x22aa53,_0x233b3f)),null;}const _0x3af6cc=this['editor']['plugins']['get']('Users')['me'];for(const _0x2f4643 of this['getSuggestions']()){if(_0x2f4643['author']['id']!=_0x3af6cc['id'])continue;if('formatBlock'!=_0x2f4643['type']||_0x2f4643['data']['formatGroupId']!=_0x22aa53['formatGroupId'])continue;if(!Lt(_0x2f4643,_0x233b3f))continue;const _0x5e92c3=_0x2f4643['subType']==_0x554dbb;for(let _0x14dcc6=0x0;_0x14dcc6<_0x4d84f2['length'];_0x14dcc6++){const _0x249cc1=_0x4d84f2[_0x14dcc6];for(const _0x568fb7 of _0x2f4643['getMarkers']()){const _0x47dd60=_0x568fb7['getRange']();if(_0x249cc1['isEqual'](_0x47dd60)){_0x5e92c3?(_0x4d84f2['splice'](_0x14dcc6,0x1),_0x14dcc6--):_0x2f4643['removeMarker'](_0x568fb7['name']);break;}}}}if(0x0==_0x4d84f2['length'])return null;const _0x38ae67=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x554dbb,'join');for(const _0x12391e of this['getSuggestions']())if(_0x12391e['author']['id']==_0x3af6cc['id']&&'formatBlock'==_0x12391e['type']&&_0x12391e['data']['formatGroupId']==_0x22aa53['formatGroupId']&&_0x12391e['subType']==_0x554dbb&&Lt(_0x12391e,_0x233b3f)&&(_0x38ae67(_0x12391e['getRanges'](),_0x4d84f2)||_0x38ae67(_0x4d84f2,_0x12391e['getRanges']()))){for(const _0x37a6a3 of _0x4d84f2)_0x12391e['addRange'](_0x37a6a3);return _0x12391e;}const _0x25f283=_0x2218f2(),_0x13e180=_0x3af6cc['id'],_0x2a2770='formatBlock:'+_0x554dbb,_0x2b7451=this['_setSuggestionData']({'id':_0x25f283,'type':_0x2a2770,'data':_0x22aa53,'createdAt':new Date(),'authorId':_0x13e180,'attributes':_0x233b3f});for(const _0x23a65a of _0x4d84f2)this['_addSuggestionMarker'](_0x2a2770,_0x25f283,_0x13e180,_0x23a65a,u['getMultiRangeId']());return _0x2b7451;}['markDeletion'](_0x4cb211,_0x454911=null,_0x3e4b8e={}){if(_0x4cb211['isCollapsed'])return null;const _0x5ceae3=this['editor']['plugins']['get']('Users')['me'],_0x2fe8dc=new _0x1aac42(_0x4cb211['start'],_0x4cb211['end']);for(const {suggestion:_0x448a08,meta:_0x26fa30}of this['_findSuggestions'](_0x2fe8dc,'insertion'))if(_0x26fa30['isOwn']&&!_0x26fa30['isNextTo']){if(_0x448a08['isMultiRange']){const _0x54f885=_0x448a08['getRanges']()['filter'](_0x3aa6f5=>'$graveyard'!=_0x3aa6f5['root']['rootName']);_0x54f885['every'](_0x40afc9=>_0x2fe8dc['containsRange'](_0x40afc9,!0x0))&&_0x448a08['discard']();if(_0x54f885['some'](_0x3008d9=>_0x3008d9['containsRange'](_0x2fe8dc,!0x0))){const _0x60a5c0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x454911,'accept');return this['forceDefaultExecution'](()=>_0x60a5c0([_0x2fe8dc],null,_0x3e4b8e)),null;}}else{const _0x145fa6=_0x2fe8dc['getIntersection'](_0x448a08['getFirstRange']());null!==_0x145fa6&&_0x448a08['_onDiscard']([_0x145fa6],null,_0x3e4b8e);}}if(_0x2fe8dc['detach'](),_0x2fe8dc['isCollapsed']||'$graveyard'==_0x2fe8dc['root']['rootName'])return null;let _0x27bbdb=null,_0x3362c7=_0x2fe8dc['start'],_0x487a7d=_0x2fe8dc['end'];const _0x5dd08f=this['_findSuggestions'](_0x2fe8dc,'deletion');for(const {suggestion:_0x3775a5,meta:_0x1d80f4}of _0x5dd08f){const _0x4b8acb=this['_model']['createRange'](_0x3362c7,_0x487a7d);if(_0x1d80f4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1d80f4['containsRangeInObject']&&!_0x1d80f4['isInsideObject'])){if(_0x3775a5['isMultiRange']){if(!Lt(_0x3775a5,_0x3e4b8e))continue;let _0x5571b9=!0x0;for(const _0x1d337a of _0x3775a5['getRanges']()){if(_0x1d337a['containsRange'](_0x4b8acb,!0x0))return _0x3775a5;_0x4b8acb['containsRange'](_0x1d337a)||(_0x5571b9=!0x1);}_0x5571b9&&_0x3775a5['discard']();}else{const _0x5c187c=_0x3775a5['getFirstRange']();if(_0x5c187c['containsRange'](_0x4b8acb,!0x0))return _0x3775a5;if(!Lt(_0x3775a5,_0x3e4b8e)){_0x4b8acb['containsRange'](_0x5c187c)?_0x3775a5['removeMarkers']():_0x5c187c['containsPosition'](_0x3362c7)?_0x3362c7=_0x5c187c['end']:_0x5c187c['containsPosition'](_0x487a7d)&&(_0x487a7d=_0x5c187c['start']);continue;}_0x3362c7=_0x3362c7['isBefore'](_0x5c187c['start'])?_0x3362c7:_0x5c187c['start'],_0x487a7d=_0x487a7d['isAfter'](_0x5c187c['end'])?_0x487a7d:_0x5c187c['end'],_0x3e4b8e=Object['assign']({},_0x3775a5['attributes']),_0x27bbdb?_0x5c187c['start']['isBefore'](_0x27bbdb['getFirstRange']()['start'])?(_0x27bbdb['removeMarkers'](),_0x27bbdb=_0x3775a5):_0x3775a5['removeMarkers']():_0x27bbdb=_0x3775a5;}}}if(_0x27bbdb)return this['_setSuggestionRange'](_0x27bbdb,this['_model']['createRange'](_0x3362c7,_0x487a7d)),_0x27bbdb;{const _0x431b51=_0x2218f2(),_0x457211=this['_model']['createRange'](_0x3362c7,_0x487a7d),_0x4856b0=_0x5ceae3['id'],_0x2ec49f=_0x454911?'deletion:'+_0x454911:'deletion',_0x507299=this['_setSuggestionData']({'id':_0x431b51,'type':_0x2ec49f,'createdAt':new Date(),'authorId':_0x4856b0,'attributes':_0x3e4b8e});return this['_addSuggestionMarker'](_0x2ec49f,_0x431b51,_0x4856b0,_0x457211),_0x507299;}}['markMultiRangeDeletion'](_0x49596b,_0x11c1c8='multi',_0x198c15={}){const _0x1f5c29=this['editor']['plugins']['get']('Users')['me'],_0x5b73a1=_0x49596b['map'](_0x30f027=>new _0x1aac42(_0x30f027['start'],_0x30f027['end'])),_0x30a76f=new Set();for(const {suggestion:_0x687c2c,meta:_0x23ba92}of this['_findSuggestions'](_0x5b73a1,'insertion'))_0x23ba92['isOwn']&&!_0x23ba92['isNextTo']&&_0x30a76f['add'](_0x687c2c);for(const _0x595cec of _0x30a76f)if(_0x595cec['isMultiRange']){const _0x3daef5=_0x595cec['getRanges']();(!_0x595cec['attributes']||!_0x595cec['attributes']['skipNestingCheck'])&&(_0x3daef5['every'](_0x345844=>_0x5b73a1['some'](_0x4f8112=>_0x4f8112['containsRange'](_0x345844,!0x0)))&&_0x595cec['discard']());if(_0x5b73a1['every'](_0x5d2755=>_0x3daef5['some'](_0x31fd50=>_0x31fd50['containsRange'](_0x5d2755,!0x0)))){const _0x4b2a43=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x11c1c8,'accept');return this['forceDefaultExecution'](()=>_0x4b2a43(_0x49596b,null,_0x198c15)),null;}}else{const _0x4fcd5e=_0x595cec['getFirstRange']();_0x5b73a1['some'](_0x34a625=>_0x34a625['containsRange'](_0x4fcd5e,!0x0))&&_0x595cec['discard']();if(_0x5b73a1['every'](_0x1f62a9=>_0x4fcd5e['containsRange'](_0x1f62a9,!0x0))){const _0x5439ca=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x11c1c8,'accept');return this['forceDefaultExecution'](()=>_0x5439ca(_0x5b73a1,null,_0x198c15)),null;}}const _0x536de6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x11c1c8,'join');let _0x760c5f=null;for(const _0x284b1b of this['getSuggestions']())if(_0x284b1b['author']['id']==_0x1f5c29['id']&&_0x284b1b['isInContent']&&'deletion'==_0x284b1b['type']&&_0x284b1b['subType']==_0x11c1c8&&Lt(_0x284b1b,_0x198c15)&&(_0x536de6(_0x284b1b['getRanges'](),_0x5b73a1)||_0x536de6(_0x5b73a1,_0x284b1b['getRanges']()))){if(_0x760c5f){if(_0x284b1b['commentThread']&&_0x284b1b['commentThread']['length'])continue;for(const _0x48f53c of _0x284b1b['getRanges']())_0x760c5f['isIntersectingWithRange'](_0x48f53c)||_0x760c5f['addRange'](_0x48f53c);_0x284b1b['removeMarkers']();}else{_0x760c5f=_0x284b1b;for(const _0x447042 of _0x5b73a1)_0x284b1b['isIntersectingWithRange'](_0x447042)||_0x284b1b['addRange'](_0x447042);}}if(_0x760c5f)return _0x760c5f;_0x30a76f['clear']();for(const {suggestion:_0x1ad498,meta:_0x45bb8d}of this['_findSuggestions'](_0x5b73a1,'deletion'))_0x45bb8d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x45bb8d['containsRangeInObject']&&!_0x45bb8d['isInsideObject'])&&Lt(_0x1ad498,_0x198c15)&&_0x30a76f['add'](_0x1ad498);for(const _0x41593b of _0x30a76f){const _0x1b1d60=_0x41593b['getRanges']();if(!_0x198c15||!_0x198c15['skipNestingCheck']){if(_0x5b73a1['every'](_0x160818=>_0x1b1d60['some'](_0x54c8ab=>_0x54c8ab['containsRange'](_0x160818,!0x0))))return _0x41593b;}(!_0x41593b['attributes']||!_0x41593b['attributes']['skipNestingCheck'])&&(_0x1b1d60['every'](_0x12f08c=>_0x5b73a1['some'](_0x792f9f=>_0x792f9f['containsRange'](_0x12f08c,!0x0)))&&_0x41593b['discard']());}const _0x430872=_0x2218f2(),_0x283e91=_0x1f5c29['id'],_0xe2e5a2='deletion:'+_0x11c1c8,_0x23c5a1=this['_setSuggestionData']({'id':_0x430872,'type':_0xe2e5a2,'createdAt':new Date(),'authorId':_0x283e91,'attributes':_0x198c15});for(const _0x20ec54 of _0x5b73a1)_0x20ec54['detach'](),_0x20ec54['isCollapsed']||'$graveyard'==_0x20ec54['root']['rootName']||this['_addSuggestionMarker'](_0xe2e5a2,_0x430872,_0x283e91,_0x20ec54,u['getMultiRangeId']());return _0x23c5a1;}['markAttributeChange'](_0xcce9c,_0x4cb7f0,_0x59d93d,_0x7f9f00,_0x16238e){if(_0xcce9c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x214fc6=this['editor']['plugins']['get']('Users')['me']['id'],_0x123e42=Array['from'](this['_suggestions']['values']())['filter'](_0x37c139=>'attribute'==_0x37c139['type']&&_0x37c139['data']['key']==_0x4cb7f0&&_0x37c139['isIntersectingWithRange'](_0xcce9c));if('default'===this['_trackFormatChanges']){const _0x262271=this['_findSuggestions'](_0xcce9c,'insertion')['filter'](({meta:_0x5ad1f7})=>_0x5ad1f7['isOwn']&&!_0x5ad1f7['isInsideObject']&&!_0x5ad1f7['isNextTo'])['map'](({suggestion:_0x2fc77a})=>_0x2fc77a);_0x123e42['unshift'](..._0x262271);}const _0x33dc1f=new Map([[_0xcce9c,_0x59d93d]]);for(const _0x54dee2 of _0x123e42){const _0x2e2b4a='attribute'==_0x54dee2['type']?_0x54dee2['data']['oldValue']:void 0x0,_0x1b4735=_0x54dee2['getFirstRange'](),_0x48f901=Array['from'](_0x33dc1f['keys']())['find'](_0x255868=>_0x255868['isIntersecting'](_0x1b4735));if(!_0x48f901)continue;const _0x6c64c4=_0x48f901['getDifference'](_0x1b4735);this['_isBlockAttribute'](_0x4cb7f0)&&'insertion'==_0x54dee2['type']&&0x0!=_0x6c64c4['length']||(_0x33dc1f['delete'](_0x48f901),_0x6c64c4['forEach'](_0x23cd42=>{_0x33dc1f['set'](_0x23cd42,_0x59d93d);}),'insertion'!=_0x54dee2['type']&&_0x2e2b4a!=_0x7f9f00&&_0x33dc1f['set'](_0x48f901['getIntersection'](_0x1b4735),_0x2e2b4a));}const _0x10fc8a=[];for(const [_0x429faa,_0x164555]of _0x33dc1f){const _0x10b77d=_0x2218f2(),_0x2a58e0={'key':_0x4cb7f0,'oldValue':_0x164555,'newValue':_0x7f9f00};_0x4cb7f0['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':_0x4cb7f0});const _0x3ebd2f=('attribute:'+(_0x4cb7f0+'|'+Vt({'newValue':_0x7f9f00})))['substring'](0x0,0x3c),_0x1c10e0=this['_setSuggestionData']({'id':_0x10b77d,'type':_0x3ebd2f,'data':_0x2a58e0,'createdAt':new Date(),'authorId':_0x214fc6,'attributes':_0x16238e});_0x10fc8a['push'](_0x1c10e0),this['_addSuggestionMarker'](_0x3ebd2f,_0x10b77d,_0x214fc6,_0x429faa);}return _0x10fc8a;}['enableDefaultAttributesIntegration'](_0x50ea1b){this['enableCommand'](_0x50ea1b,(_0x204097,..._0x4eb532)=>{this['_recordAttributeChanges'](()=>{_0x204097(..._0x4eb532);});});}['registerBlockAttribute'](_0xb10ee2){this['_blockAttributeKeys']['add'](_0xb10ee2);}['registerInlineAttribute'](_0x149c7d){this['_inlineAttributeKeys']['add'](_0x149c7d);}['_getAttributeKey'](_0x574d2e){return'attribute'==_0x574d2e['type']?_0x574d2e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xd060d9,_0x2e2268){const _0x378eb1=_0xd060d9['getFirstMarker']();this['_model']['change'](_0x3d70ff=>{_0x3d70ff['updateMarker'](_0x378eb1,{'range':_0x2e2268});});}['_addThreadToSuggestion'](_0x5d0d24){const _0x4a2881=_0x5d0d24['id'],_0xdf944e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4a2881)||this['_commentsRepository']['addCommentThread']({'channelId':_0xdf944e,'threadId':_0x4a2881,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4c5f84=this['_commentsRepository']['getCommentThread'](_0x4a2881);_0x4c5f84['unbind']('isRemovable'),_0x4c5f84['isRemovable']=!0x1,_0x5d0d24['commentThread']=_0x4c5f84;}['_checkSuggestionCorrectness'](_0x5e3f88,_0x4373e6,_0x2a4df0,_0x1ca272){if(_0x5e3f88['type']!=_0x4373e6||_0x5e3f88['subType']!=_0x2a4df0||_0x5e3f88['creator']['id']!=_0x1ca272)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x295e05('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x32184b,_0x504186){const _0x4a6e1b=_0x32184b['getFirstRange']();if(_0x504186['isEqual'](_0x4a6e1b))_0x32184b['removeMarkers']();else{if(_0x4a6e1b['containsRange'](_0x504186)){const _0x3d5d99=this['_model']['createPositionAt'](_0x504186['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x32184b,this['_model']['createRange'](_0x4a6e1b['start'],_0x3d5d99));const _0xfd3202=_0x2218f2(),_0x453139=_0x32184b['creator']['id'],_0x2b185d=_0x32184b['type']+':'+_0x32184b['subType'];this['_setSuggestionData']({'id':_0xfd3202,'type':_0x2b185d,'createdAt':new Date(),'authorId':_0x453139,'data':_0x32184b['data'],'attributes':_0x32184b['attributes']});const _0x386473=this['_model']['createPositionAt'](_0x504186['end']['parent'],'after'),_0x2b1a0f=this['_model']['createRange'](_0x386473,_0x4a6e1b['end']);this['_addSuggestionMarker'](_0x2b185d,_0xfd3202,_0x453139,_0x2b1a0f);}else{if(_0x4a6e1b['containsPosition'](_0x504186['start'])){const _0x1dba45=this['_model']['createPositionAt'](_0x504186['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x32184b,this['_model']['createRange'](_0x4a6e1b['start'],_0x1dba45));}else{const _0x105cba=this['_model']['createPositionAt'](_0x504186['end']['parent'],'after');this['_setSuggestionRange'](_0x32184b,this['_model']['createRange'](_0x105cba,_0x4a6e1b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3ebf0b){for(const {suggestion:_0x5d6c7a,meta:_0x5952a7}of this['_findSuggestions'](_0x3ebf0b,'insertion')){if(!_0x5952a7['isOwn'])continue;const _0x14cc3c=_0x5d6c7a['getRanges']();for(const _0x18ae1f of _0x14cc3c)if(!_0x3ebf0b['getDifference'](_0x18ae1f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x86bec6){const _0x182333=this['editor']['plugins']['get']('Users')['getUser'](_0x86bec6);if(!_0x182333)throw new _0x295e05('track-changes-user-not-found',this);return _0x182333;}['_getExternalAuthor'](_0x28ffda){const _0x2baece=this['editor']['plugins']['get']('Users'),_0x2039dc=_0x42ae4e('external:'+_0x28ffda),_0x1ed8ea=_0x2baece['getUser'](_0x2039dc);return _0x1ed8ea||_0x2baece['addUser']({'id':_0x2039dc,'name':_0x28ffda});}['_createSuggestion'](_0x3fcdc4,_0x2d7489,_0x3fc288,_0x336a6a,_0x24953d){const _0x4fcef0=this['_getAuthorFromId'](_0x336a6a),_0x3b0cef=this['_suggestionFactory']['buildSuggestion'](_0x3fcdc4,_0x2d7489,_0x3fc288,_0x4fcef0,_0x24953d,_0x210c1e=>{this['_updateSuggestionData'](_0x3fc288,{'attributes':_0x210c1e});const _0x16d334=this['getSuggestion'](_0x3fc288);this['_joinWithAdjacentSuggestions'](new Set([_0x16d334])),this['_refreshSuggestionsChain'](new Set([_0x16d334]));});return this['listenTo'](_0x3b0cef,'accept',()=>{this['_updateSuggestionData'](_0x3fc288,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3b0cef,'discard',()=>{this['_updateSuggestionData'](_0x3fc288,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3fc288,_0x3b0cef),this['_suggestionState']['set'](_0x3b0cef,'notReady'),_0x3b0cef;}['_splitMarkerName'](_0x481b2b){const _0x156055=_0x481b2b['split'](':');return{'group':_0x156055[0x0],'type':_0x156055[0x1],'subType':_0x156055['length']>=0x5?_0x156055[0x2]:null,'id':_0x156055['length']<0x5?_0x156055[0x2]:_0x156055[0x3],'authorId':_0x156055['length']<0x5?_0x156055[0x3]:_0x156055[0x4],'markerCount':0x6==_0x156055['length']?_0x156055[0x5]:null};}['_breakSuggestionMarker'](_0x4b37d6,_0x42012e,_0x357220){const _0x5793b2=_0x4b37d6['getFirstRange'](),_0x5183ad=_0x5793b2['start'],_0x579c42=_0x5793b2['end'];this['_setSuggestionRange'](_0x4b37d6,this['_model']['createRange'](_0x5183ad,_0x42012e));const _0x5a6c08=_0x2218f2(),_0x94dcdb=_0x4b37d6['creator']['id'],_0x34661c=_0x4b37d6['type']+(_0x4b37d6['subType']?':'+_0x4b37d6['subType']:'');this['_setSuggestionData']({'id':_0x5a6c08,'type':_0x34661c,'createdAt':new Date(),'authorId':_0x94dcdb,'originalSuggestionId':_0x4b37d6['id'],'attributes':_0x4b37d6['attributes'],'data':_0x4b37d6['data']});const _0x2fe67f=this['_getAttributeKey'](_0x4b37d6);('formatBlock'==_0x4b37d6['type']||_0x2fe67f&&this['_isBlockAttribute'](_0x2fe67f))&&(_0x357220=this['_model']['createPositionBefore'](_0x357220['parent'])),this['_addSuggestionMarker'](_0x34661c,_0x5a6c08,_0x94dcdb,this['_model']['createRange'](_0x357220,_0x579c42));}['_findSuggestions'](_0x26eeb5,_0x461f92=null){const _0x24f948=[],_0x333c6b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x26eeb5)||(_0x26eeb5=[_0x26eeb5]);for(const _0x4cdd58 of this['getSuggestions']()){if(!_0x4cdd58['isInContent'])continue;if(_0x461f92&&_0x4cdd58['type']!=_0x461f92)continue;let _0x4f6913=!0x1;for(const _0x1ac4f5 of _0x4cdd58['getRanges']()){for(const _0x7a14a5 of _0x26eeb5){const _0x5d7052=_0x7a14a5['start']['isEqual'](_0x1ac4f5['end'])||_0x7a14a5['end']['isEqual'](_0x1ac4f5['start']);if(_0x5d7052||_0x7a14a5['getIntersection'](_0x1ac4f5)){const _0x5630c7=_0x7a14a5['containsRange'](_0x1ac4f5)&&Rt(this['_model']['schema'],_0x1ac4f5['start'],_0x7a14a5),_0x23164d=_0x1ac4f5['containsRange'](_0x7a14a5)&&Rt(this['_model']['schema'],_0x7a14a5['start'],_0x1ac4f5);_0x24f948['push']({'suggestion':_0x4cdd58,'meta':{'isOwn':_0x333c6b==_0x4cdd58['author'],'isNextTo':_0x5d7052,'isInsideObject':_0x5630c7,'containsRangeInObject':_0x23164d}}),_0x4f6913=!0x0;break;}}if(_0x4f6913)break;}}return _0x24f948;}['_addSuggestionMarker'](_0x2ab248,_0x1fdc57,_0x4bd609,_0x5680a8,_0x223537){this['_model']['change'](_0xa11ad7=>{let _0x5caaca='suggestion:'+_0x2ab248+':'+_0x1fdc57+':'+_0x4bd609;_0x223537&&(_0x5caaca=_0x5caaca+':'+_0x223537),_0xa11ad7['addMarker'](_0x5caaca,{'range':_0x5680a8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1c9c89){const _0x458219=_0x1c9c89['previous'],_0x24939c=_0x1c9c89['next'];_0x1c9c89['previous']=null,_0x1c9c89['next']=null,null!=_0x458219&&_0x458219['next']==_0x1c9c89&&(_0x458219['next']=_0x24939c),null!=_0x24939c&&_0x24939c['previous']==_0x1c9c89&&(_0x24939c['previous']=_0x458219),'ready'==this['_suggestionState']['get'](_0x1c9c89)&&(this['_suggestionState']['set'](_0x1c9c89,'removed'),this['fire']('suggestionUnloaded',_0x1c9c89,_0x458219,_0x24939c));}['_setSuggestionData'](_0x14dc3b){const _0x3e7e25=_0x14dc3b['id'],_0x25aacb=this['addSuggestionData'](_0x14dc3b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4a6c44=this['editor']['plugins']['get']('PendingActions'),_0x564360=_0x25aacb['hasComments'],_0x2485e0=_0x25aacb['subType']?_0x25aacb['type']+':'+_0x25aacb['subType']:_0x25aacb['type'],_0x1db762=this['editor']['locale'],_0x4bcf69=_0x4a6c44['add'](o(_0x1db762,'PENDING_ACTION_SUGGESTION')),_0x555268={'id':_0x3e7e25,'type':_0x2485e0,'hasComments':_0x564360,'data':_0x14dc3b['data']||null,'originalSuggestionId':_0x14dc3b['originalSuggestionId']||null,'attributes':_0x25aacb['attributes']};this['_adapter']['addSuggestion'](_0x555268)['then'](_0x335158=>{_0x25aacb['_saved']=!0x0,_0x4a6c44['remove'](_0x4bcf69),_0x335158&&_0x335158['createdAt']&&(this['_suggestions']['get'](_0x3e7e25)['createdAt']=_0x335158['createdAt']);})['catch'](_0x2e5ddd=>{throw _0x264cd2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x25aacb['discard']();}),_0x25aacb['stopListening'](),this['_suggestions']['delete'](_0x25aacb['id']),this['_suggestionState']['delete'](_0x25aacb),_0x2e5ddd;});}return _0x25aacb;}['_isBlockAttribute'](_0x1b3958){return this['_blockAttributeKeys']['has'](_0x1b3958);}['_updateSuggestionData'](_0xb2ab3b,_0x13866c){const _0x1540e0=this['editor']['plugins']['get']('PendingActions'),_0x1a05da=this['getSuggestion'](_0xb2ab3b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1a05da['_saved']){const _0x3591fc=_0x1540e0['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xb2ab3b,_0x13866c)['then'](()=>{_0x1540e0['remove'](_0x3591fc);});}else _0x1a05da['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xb2ab3b,_0x13866c);});}}['_getSuggestionData'](_0x3593df){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x295e05('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3593df);}['_handleNewSuggestionMarker'](_0xf7c676){const {id:_0xd810b7,type:_0x16e292,subType:_0x126598,authorId:_0xabbaf8}=this['_splitMarkerName'](_0xf7c676),_0x3c9c29=this['_suggestions']['get'](_0xd810b7)||this['_createSuggestion'](_0x16e292,_0x126598,_0xd810b7,_0xabbaf8,{});switch(this['_checkSuggestionCorrectness'](_0x3c9c29,_0x16e292,_0x126598,_0xabbaf8),this['_suggestionState']['get'](_0x3c9c29)){case'notReady':this['_getSuggestionData'](_0xd810b7)['then'](_0x1ea3d3=>{let _0x38b7ca=Promise['resolve']();_0x1ea3d3['hasComments']&&(_0x38b7ca=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xd810b7})),_0x38b7ca['then'](()=>{this['addSuggestionData'](_0x1ea3d3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3c9c29,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xd810b7,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3c9c29,'ready'),this['fire']('suggestionLoaded',_0x3c9c29);break;case'ready':this['fire']('suggestionChanged',_0x3c9c29);}return _0x3c9c29['addMarkerName'](_0xf7c676),_0x3c9c29;}['_refreshSuggestionsChain'](_0x171c06){const _0x49b967=Array['from'](_0x171c06),_0x405f96=_0x49b967['filter'](_0x41c76e=>'attribute'==_0x41c76e['type']);this['_refreshAttributeSuggestionsChain'](_0x405f96);const _0x6457c7=_0x49b967['filter'](_0x5aba8f=>!_0x5aba8f['isMultiRange']&&'attribute'!=_0x5aba8f['type']),_0x116040=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x210ad3=>!_0x210ad3['isMultiRange']&&'attribute'!=_0x210ad3['type']),_0x32bfe4=_0x116040['filter'](_0x1b4d0e=>!_0x171c06['has'](_0x1b4d0e)),_0x32d02a=new Map(_0x116040['map'](_0x28cf98=>[_0x28cf98,this['_suggestionFactory']['getSuggestionCallback'](_0x28cf98['type'],_0x28cf98['subType'],'chain')])),_0x368c2c=new Map(_0x116040['map'](_0xaa3063=>[_0xaa3063,_0xaa3063['getFirstRange']()])),_0x1fe48f=new Set(),_0x84e0d0=new Set();for(let _0x3f8b37=0x0;_0x3f8b37<_0x6457c7['length'];_0x3f8b37++)_0x377ae1(_0x6457c7[_0x3f8b37],_0x6457c7,_0x3f8b37+0x1);for(let _0x2c3cb5=0x0;_0x2c3cb5<_0x6457c7['length'];_0x2c3cb5++)_0x377ae1(_0x6457c7[_0x2c3cb5],_0x32bfe4,0x0);const _0x39125c=new Set();for(let _0x26953b=0x0;_0x26953b<_0x6457c7['length'];_0x26953b++){const _0x4cc3e4=_0x6457c7[_0x26953b];!_0x84e0d0['has'](_0x4cc3e4)&&_0x4cc3e4['previous']&&(_0x39125c['add'](_0x4cc3e4['previous']),_0x4cc3e4['previous']['next']===_0x4cc3e4&&(_0x4cc3e4['previous']['next']=null),_0x4cc3e4['previous']=null),!_0x1fe48f['has'](_0x4cc3e4)&&_0x4cc3e4['next']&&(_0x39125c['add'](_0x4cc3e4['next']),_0x4cc3e4['next']['previous']===_0x4cc3e4&&(_0x4cc3e4['next']['previous']=null),_0x4cc3e4['next']=null);}function _0x377ae1(_0x39afda,_0x1f1909,_0x1ef3fb){for(let _0x3732de=_0x1ef3fb;_0x3732de<_0x1f1909['length'];_0x3732de++){const _0x310c98=_0x2aa450(_0x39afda,_0x1f1909[_0x3732de]);_0x310c98&&(_0x310c98[0x0]['next']=_0x310c98[0x1],_0x310c98[0x1]['previous']=_0x310c98[0x0],_0x1fe48f['add'](_0x310c98[0x0]),_0x84e0d0['add'](_0x310c98[0x1]));}}function _0x2aa450(_0x324e55,_0x402e16){if(_0x324e55['author']['id']!==_0x402e16['author']['id'])return null;const _0x1a1629=_0x32d02a['get'](_0x324e55)(_0x324e55,_0x402e16,_0x368c2c['get'](_0x324e55),_0x368c2c['get'](_0x402e16));if(!_0x1a1629)return null;return _0x32d02a['get'](_0x402e16)(_0x324e55,_0x402e16,_0x368c2c['get'](_0x324e55),_0x368c2c['get'](_0x402e16))?_0x1a1629[0x1]['commentThread']&&_0x1a1629[0x1]['commentThread']['length']?null:_0x1a1629:null;}_0x39125c['size']&&this['_refreshSuggestionsChain'](_0x39125c);}['_refreshAttributeSuggestionsChain'](_0xab0f98){if(0x0==_0xab0f98['length'])return;const _0x56c593=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x272180=>'attribute'==_0x272180['type']&&_0x272180['_isDataLoaded']),_0x351022=[],_0x25a48a=new Map();for(const _0x1c4c00 of _0x56c593){const _0x12f12b=_0x42ae4e(_0x1c4c00['attributes']);_0x25a48a['has'](_0x12f12b)||(_0x25a48a['set'](_0x12f12b,_0x351022['length']),_0x351022['push']([]));const _0x5e53d7=_0x25a48a['get'](_0x12f12b);_0x351022[_0x5e53d7]['push'](_0x1c4c00);}!(function(){_0x351022['sort']((_0x18b972,_0x6bdd5e)=>{const _0x144194=_0x18b972[0x0]['createdAt'],_0x568e4c=_0x6bdd5e[0x0]['createdAt'];return _0x144194==_0x568e4c?_0x18b972[0x0]['attributes']['groupId']<_0x6bdd5e[0x0]['attributes']['groupId']?-0x1:0x1:_0x144194<_0x568e4c?-0x1:0x1;});for(const _0x4fda6f of _0x351022)_0x4fda6f['sort']((_0x5af3aa,_0x49277)=>_0x5af3aa['id']<_0x49277['id']?-0x1:0x1);}());for(let _0x2c05d8=0x0;_0x2c05d8<_0x351022['length'];_0x2c05d8++){if(0x0==_0x351022[_0x2c05d8]['length'])continue;const _0x14824f=[];for(let _0x3a466d=_0x2c05d8+0x1;_0x3a466d<_0x351022['length'];_0x3a466d++)0x0!=_0x351022[_0x3a466d]['length']&&_0xca742d(_0x351022[_0x2c05d8],_0x351022[_0x3a466d])&&_0x14824f['push'](_0x3a466d);for(const _0x152815 of _0x14824f)_0x351022[_0x2c05d8]=_0x351022[_0x2c05d8]['concat'](_0x351022[_0x152815]),_0x351022[_0x152815]=[];}for(const _0x5f08db of _0x351022)for(let _0x1166bf=0x0;_0x1166bf<_0x5f08db['length'];_0x1166bf++)_0x5f08db[_0x1166bf]['next']=_0x5f08db[_0x1166bf+0x1]||null;for(const _0x3bf2b3 of _0x351022)for(let _0x745dd9=0x0;_0x745dd9<_0x3bf2b3['length'];_0x745dd9++)_0x3bf2b3[_0x745dd9]['previous']=_0x3bf2b3[_0x745dd9-0x1]||null;function _0xca742d(_0x464223,_0xb2b7b9){if(_0x464223[0x0]['attributes']['groupId']!==_0xb2b7b9[0x0]['attributes']['groupId']&&_0x464223[0x0]['author']!==_0xb2b7b9[0x0]['author'])return!0x1;if(!function(_0x5cbec8,_0x2e3c4f){if(!_0x5cbec8['hasComments']&&!_0x2e3c4f['hasComments'])return!0x0;if(_0x5cbec8['hasComments']&&_0x2e3c4f['hasComments'])return!0x1;if(_0x5cbec8['hasComments']&&_0x2e3c4f['createdAt']<_0x5cbec8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2e3c4f['hasComments']&&_0x5cbec8['createdAt']<_0x2e3c4f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x464223[0x0],_0xb2b7b9[0x0]))return!0x1;const _0x582ce9=Bt(_0x464223[0x0]['attributes'],'groupId'),_0x45ed0d=Bt(_0xb2b7b9[0x0]['attributes'],'groupId');if(!_0x4d101c(_0x582ce9,_0x45ed0d))return!0x1;return!!_0x464223['every'](_0x3cdc56=>_0xb2b7b9['some'](_0xd36ee3=>_0x3cdc56['getFirstRange']()['isEqual'](_0xd36ee3['getFirstRange']())))&&_0xb2b7b9['every'](_0x5e6810=>_0x464223['some'](_0x174ed5=>_0x5e6810['getFirstRange']()['isEqual'](_0x174ed5['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x552d75){const _0x5b4476=Array['from'](_0x552d75),_0x5e5954=this['getSuggestions']({'skipNotAttached':!0x0}),_0x29ddba=_0x5e5954['filter'](_0x4732a1=>!_0x552d75['has'](_0x4732a1)),_0x4a354c=new Map(_0x5b4476['map'](_0x594447=>[_0x594447,this['_suggestionFactory']['getSuggestionCallback'](_0x594447['type'],_0x594447['subType'],'join')])),_0x37ae43=new Map(_0x5e5954['map'](_0x51b5cf=>[_0x51b5cf,_0x51b5cf['getRanges']()]));for(let _0x5c1510=0x0;_0x5c1510<_0x5b4476['length'];_0x5c1510++){if(_0x2f092a(this,_0x5b4476[_0x5c1510],_0x5b4476,_0x5c1510+0x1))return!0x0;}for(let _0x2ef148=0x0;_0x2ef148<_0x5b4476['length'];_0x2ef148++){if(_0x2f092a(this,_0x5b4476[_0x2ef148],_0x29ddba,0x0))return!0x0;}return!0x1;function _0x2f092a(_0x5e7ac4,_0x58b173,_0x21ac43,_0x1fc2bc){for(let _0x47d135=_0x1fc2bc;_0x47d135<_0x21ac43['length'];_0x47d135++){const _0x449666=_0x21ac43[_0x47d135];if(_0x449666['type']!==_0x58b173['type']||_0x449666['author']['id']!==_0x58b173['author']['id']||_0x449666['subType']!==_0x58b173['subType'])continue;if(!Pt(_0x58b173,_0x449666,['groupId']))continue;if('attribute'==_0x58b173['type']&&_0x58b173['data']['oldValue']!=_0x449666['data']['oldValue'])continue;if('attribute'==_0x58b173['type']&&_0x5e7ac4['_isBlockAttribute'](_0x58b173['data']['key']))continue;if('formatBlock'==_0x58b173['type']){const _0x337d3d=_0x5e7ac4['editor']['model'],_0x542e94=_0x58b173['getContainedElement']();if(_0x542e94&&(_0x337d3d['schema']['isObject'](_0x542e94)||_0x337d3d['schema']['isLimit'](_0x542e94)))continue;}const _0x881b39=_0x4a354c['get'](_0x58b173),_0x45de16=_0x37ae43['get'](_0x58b173),_0x28ddd0=_0x37ae43['get'](_0x449666),_0x7e6b0b=_0x58b173['commentThread']&&_0x58b173['commentThread']['length'],_0xc98cb6=_0x449666['commentThread']&&_0x449666['commentThread']['length'];if(!_0x7e6b0b&&_0x881b39(_0x28ddd0,_0x45de16))return _0x5e7ac4['_joinSuggestions'](_0x449666,_0x58b173),_0x37ae43['delete'](_0x58b173),!0x0;if(!_0xc98cb6&&_0x881b39(_0x45de16,_0x28ddd0))return _0x5e7ac4['_joinSuggestions'](_0x58b173,_0x449666),_0x37ae43['delete'](_0x449666),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5a0f5c,_0x5f1b4a){if(_0x5a0f5c['isMultiRange']){for(const _0x5a6b31 of _0x5f1b4a['getRanges']())_0x5a0f5c['addRange'](_0x5a6b31);}else{const _0x130ad6=_0x5f1b4a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5a0f5c,this['_model']['createRange'](_0x5a0f5c['getFirstRange']()['start'],_0x130ad6));}_0x5f1b4a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x59e40f,_0x1cec64){const _0x638677=_0x59e40f['startsWith']('format')||_0x59e40f['startsWith']('attribute')?'FORMATTING':_0x59e40f['toUpperCase']();return o(this['editor']['locale'],_0x1cec64+'_'+_0x638677+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x589e68=this['editor'];if(!_0x589e68['ui'])return;const {ariaLiveAnnouncer:_0x5892f0}=_0x589e68['ui'];_0x1f14f0(this['_model'],({left:_0x43a344,entered:_0x162dcf})=>{for(const _0x3025d3 of _0x43a344){const {group:_0x5f0010,type:_0x48f249}=this['_splitMarkerName'](_0x3025d3['name']);if('suggestion'===_0x5f0010){_0x5892f0['announce'](this['_getMarkerAnnouncementText'](_0x48f249,'LEAVE'));break;}}for(const _0x3225fe of _0x162dcf){const {group:_0x178573,type:_0x2bed66}=this['_splitMarkerName'](_0x3225fe['name']);if('suggestion'===_0x178573){_0x5892f0['announce'](this['_getMarkerAnnouncementText'](_0x2bed66,'ENTER'));break;}}});}['_processAttributeChanges'](_0x2954f8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x544d8d=this['editor'],_0x5cb4d8=_0x544d8d['model']['document']['differ']['getChanges']();if(0x0==_0x5cb4d8['length'])return!0x1;const _0x5343f0=[],_0x171846=_0x5cb4d8['filter'](_0x50dce1=>'attribute'==_0x50dce1['type']),_0x14f9b6=_0x5cb4d8['filter'](_0x1a1efc=>'insert'==_0x1a1efc['type']&&'$text'!=_0x1a1efc['name']),_0x14836c=_0x5cb4d8['filter'](_0x5c1a61=>'remove'==_0x5c1a61['type']&&'$text'!=_0x5c1a61['name']);for(const _0x22f03d of _0x171846)_0x5343f0['push']({'key':_0x22f03d['attributeKey'],'newValue':_0x22f03d['attributeNewValue'],'oldValue':_0x22f03d['attributeOldValue'],'range':Ot(_0x22f03d['range'],_0x544d8d['model'])});for(const _0x5ae504 of _0x14f9b6){const _0x204960=_0x14836c['find'](_0x35fba7=>_0x35fba7['position']['isEqual'](_0x5ae504['position']));_0x204960&&_0x5343f0['push']({'key':m,'newValue':_0x5ae504['name'],'oldValue':_0x204960['name'],'range':_0x544d8d['model']['createRangeOn'](_0x5ae504['position']['nodeAfter'])});}return 0x0!=_0x5343f0['length']&&this['_reduceExistingSuggestions'](_0x2954f8,_0x5343f0);}['_processAttributeSuggestions'](_0xe87217){let _0x2f91b4=!0x1;const _0x5e6283=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x478d85=>_0x478d85['data']['newRange']&&_0x478d85['name']['startsWith']('suggestion:attribute:'));for(const _0x118d1d of _0x5e6283){const {subType:_0x32398c,id:_0x4d6793}=this['_splitMarkerName'](_0x118d1d['name']),_0x150c98=_0x32398c['split']('|')[0x0];for(const _0x4aaa87 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4aaa87['id']!=_0x4d6793&&'attribute'==_0x4aaa87['type']&&_0x4aaa87['data']&&_0x4aaa87['data']['key']==_0x150c98&&_0x4aaa87['getFirstRange']()['isIntersecting'](_0x118d1d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4aaa87,_0x118d1d['data']['newRange'],_0xe87217),_0x2f91b4=!0x0);}return _0x2f91b4;}['_recordAttributeChanges'](_0x5be056){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x5be056();}['_isRegisteredAttribute'](_0x34f3fc){const _0x22cc2d=this['_isBlockAttribute'](_0x34f3fc),_0x36b6da=this['_inlineAttributeKeys']['has'](_0x34f3fc);return _0x22cc2d||_0x36b6da;}['_reduceExistingSuggestions'](_0x572d62,_0x5b3bcf){if(0x0==_0x5b3bcf['length'])return!0x1;let _0x590565=!0x1;for(const _0x771f68 of _0x5b3bcf){const _0x475897=this['_findSuggestions'](_0x771f68['range'],'attribute')['filter'](_0xda5547=>!_0xda5547['meta']['isNextTo'])['map'](_0x2f89c1=>_0x2f89c1['suggestion']),_0x5a841f=_0x42ae4e({'newValue':_0x771f68['newValue']});_0x475897['filter'](_0x257173=>{const [_0x4221e2,_0x5af119]=_0x257173['subType']['split']('|');return _0x4221e2==_0x771f68['key']&&_0x5af119!=_0x5a841f;})['forEach'](_0x27bc45=>{this['_reduceSuggestionAttributeRange'](_0x27bc45,_0x771f68['range'],_0x572d62),_0x590565=!0x0;});}return _0x590565;}['_reduceSuggestionAttributeRange'](_0x52300d,_0x5256dd,_0xb83dc6){const _0x351050=_0x52300d['getFirstRange']()['getDifference'](_0x5256dd);0x0!==_0x351050['length']?0x1!==_0x351050['length']?this['_breakSuggestionMarker'](_0x52300d,_0x5256dd['start'],_0x5256dd['end']):this['_setSuggestionRange'](_0x52300d,_0x351050[0x0]):_0xb83dc6['removeMarker'](_0x52300d['getFirstMarker']());}constructor(_0x5b23d8){function _0x271360(_0x1441e5){return _0x1441e5['map'](_0x1bd4d5=>String['fromCharCode'](_0x1bd4d5))['join']('');}super(_0x5b23d8),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1ee454,_0x1184d7,_0x34dea5,_0x124c4d)=>{this['_model']['change'](()=>{for(const _0x158bb3 of[..._0x124c4d,..._0x34dea5])this['_model']['markers']['has'](_0x158bb3)&&_0x5b23d8['editing']['reconvertMarker'](_0x158bb3);});}),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']=_0x5b23d8['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(),_0x5b23d8['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5b23d8['config']['get']('trackChanges.trackFormatChanges'),_0x5b23d8['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5b23d8['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x5b23d8,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x271360([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x271360([0x34,0x30,0x34,0x38,0x31,0x30,0x30,0x34]);}}class xt{['buildSuggestion'](_0x503129,_0x27a40e,_0x481ffb,_0x54e5fe,_0xc73289,_0xb147c2){return new u(this['_model'],{'type':_0x503129,'subType':_0x27a40e,'id':_0x481ffb,'author':_0x54e5fe,'creator':_0x54e5fe,'attributes':_0xc73289,'onAttributesChange':_0xb147c2,'onAccept':(..._0xb36c08)=>this['getSuggestionCallback'](_0x503129,_0x27a40e,'accept')(..._0xb36c08),'onDiscard':(..._0x3013dd)=>this['getSuggestionCallback'](_0x503129,_0x27a40e,'discard')(..._0x3013dd)});}['registerCustomCallback'](_0xc374ac,_0xf5428b,_0x4a822a,_0x4afebf){const _0x36bd1c=_0xc374ac+':'+_0xf5428b+':'+_0x4a822a;this['_customCallbacks']['set'](_0x36bd1c,_0x4afebf);}['getSuggestionCallback'](_0x16c630,_0x268141,_0x55b28d){const _0x4bc6a4=_0x16c630+':'+_0x268141+':'+_0x55b28d;return this['_customCallbacks']['get'](_0x4bc6a4)||this['_defaultCallbacks']['get'](_0x16c630+':'+_0x55b28d);}['_registerDefaultCallbacks'](){const _0x30aad6=()=>!0x1,_0x156d76=_0x2f6690=>{_0x2f6690['sort']((_0xe84caf,_0x2e2a7b)=>_0xe84caf['start']['isBefore'](_0x2e2a7b['start'])?0x1:-0x1),this['_model']['change'](_0x4ae861=>{for(const _0x3ae657 of _0x2f6690){let _0x199607;_0x199607=_0x3ae657['end']['isAtEnd']&&_0x3ae657['end']['parent']==_0x3ae657['start']['nodeAfter']?_0x4ae861['createSelection'](_0x3ae657['start']['nodeAfter'],'on'):_0x4ae861['createSelection'](_0x3ae657),this['_model']['deleteContent'](_0x199607,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2b3e6c=(_0x2ae4cb,_0x112fb1)=>{_0x112fb1&&this['_model']['change'](_0x4f56d3=>{const {commandName:_0x430129,commandParams:_0x481184=[]}=_0x112fb1,_0x44147b=_0x2ae4cb['map'](_0x37c68e=>(Tt(_0x37c68e)&&(_0x37c68e=this['_model']['createRange'](_0x37c68e['end'])),_0x37c68e))['filter'](_0x2e281c=>'$graveyard'!==_0x2e281c['root']['rootName']);if(_0x44147b['length']<0x1)return;const _0x4e39fb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4207a1=>_0x1aac42['fromRange'](_0x4207a1));_0x4f56d3['setSelection'](_0x44147b);for(const _0x589ab4 of this['_editor']['commands']['commands']())_0x589ab4['refresh']();_0x481184['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x430129,..._0x481184);const _0x17296d=_0x4e39fb['filter'](_0x28b900=>'$graveyard'!=_0x28b900['root']['rootName']);_0x17296d['length']>0x0&&_0x4f56d3['setSelection'](_0x17296d);for(const _0x47db3e of _0x4e39fb)_0x47db3e['detach']();});},_0x342d51=(_0x789c59,_0x2e39a8)=>0x1==_0x789c59['length']&&0x1==_0x2e39a8['length']&&_0x789c59[0x0]['end']['isEqual'](_0x2e39a8[0x0]['start']),_0x2068a8=(_0x458235,_0x3bc1e7,_0x3b0df9,_0x529bac)=>Gt(_0x458235,_0x3bc1e7,_0x3b0df9,_0x529bac,this['_model'])?[_0x458235,_0x3bc1e7]:Gt(_0x3bc1e7,_0x458235,_0x529bac,_0x3b0df9,this['_model'])?[_0x3bc1e7,_0x458235]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x30aad6),this['_defaultCallbacks']['set']('insertion:discard',_0x156d76),this['_defaultCallbacks']['set']('insertion:join',_0x342d51),this['_defaultCallbacks']['set']('insertion:chain',_0x2068a8),this['_defaultCallbacks']['set']('deletion:accept',_0x156d76),this['_defaultCallbacks']['set']('deletion:discard',_0x30aad6),this['_defaultCallbacks']['set']('deletion:join',_0x342d51),this['_defaultCallbacks']['set']('deletion:chain',_0x2068a8),this['_defaultCallbacks']['set']('formatInline:accept',_0x2b3e6c),this['_defaultCallbacks']['set']('formatInline:discard',_0x30aad6),this['_defaultCallbacks']['set']('formatInline:join',_0x342d51),this['_defaultCallbacks']['set']('formatInline:chain',_0x30aad6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2b3e6c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x30aad6),this['_defaultCallbacks']['set']('formatBlock:join',_0x342d51),this['_defaultCallbacks']['set']('formatBlock:chain',_0x30aad6),this['_defaultCallbacks']['set']('attribute:accept',_0x30aad6),this['_defaultCallbacks']['set']('attribute:discard',(_0x2d0b9d,_0x5d6ef2)=>{if(!_0x5d6ef2)return;const _0x51eeda=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x418eb8=>{if(_0x5d6ef2['key']==m)for(const _0x47b380 of _0x2d0b9d){const _0xa7a9a0=_0x47b380['start']['nodeAfter'],_0x3ddd25=_0x5d6ef2['oldValue'];_0x418eb8['rename'](_0xa7a9a0,_0x3ddd25);}else{if(_0x51eeda['_isBlockAttribute'](_0x5d6ef2['key'])){for(const _0x516730 of _0x2d0b9d)void 0x0!==_0x5d6ef2['oldValue']?_0x418eb8['setAttribute'](_0x5d6ef2['key'],_0x5d6ef2['oldValue'],_0x516730['start']['nodeAfter']):_0x418eb8['removeAttribute'](_0x5d6ef2['key'],_0x516730['start']['nodeAfter']);}else{for(const _0xe67e1d of _0x2d0b9d)_0x5d6ef2['oldValue']?_0x418eb8['setAttribute'](_0x5d6ef2['key'],_0x5d6ef2['oldValue'],_0xe67e1d):_0x418eb8['removeAttribute'](_0x5d6ef2['key'],_0xe67e1d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x342d51);}constructor(_0x18f6f7){this['_editor']=_0x18f6f7,this['_model']=_0x18f6f7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x163fd5,_0x52ca3c,_0x5313ae){for(const _0x460233 of _0x52ca3c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x460233['root']==_0x460233)return!0x1;if(!_0x5313ae['containsItem'](_0x460233))return!0x1;if(_0x163fd5['isObject'](_0x460233)||_0x163fd5['isLimit'](_0x460233))return!0x0;}return!0x1;}function Tt(_0x307e0f){return _0x307e0f['end']['parent']==_0x307e0f['start']['nodeAfter']&&_0x307e0f['end']['isAtStart'];}function Et(_0x1353ee,_0x8ce657,_0x286589,_0x504ac5){const _0x19eecf=_0x26f6ae=>!_0x26f6ae['item']['is']('$textProxy')&&!_0x504ac5['isObject'](_0x26f6ae['item']),_0x1ee752=_0x1353ee['start']['getLastMatchingPosition'](_0x19eecf),_0x6b5914=_0x1353ee['end']['getLastMatchingPosition'](_0x19eecf,{'direction':'backward'});return(!_0x1353ee['start']['isEqual'](_0x1ee752)||!_0x1353ee['end']['isEqual'](_0x6b5914))&&(_0x1ee752['isBefore'](_0x6b5914)?_0x286589['updateMarker'](_0x8ce657,{'range':_0x286589['createRange'](_0x1ee752,_0x6b5914)}):_0x286589['removeMarker'](_0x8ce657),!0x0);}function Vt(_0x334d9e){return _0x42ae4e(_0x334d9e);}function Ut(_0x3897b3){const _0x11beff=_0x3897b3['start']['nodeAfter'];return _0x11beff&&_0x11beff['is']('element');}function Ot(_0xe7f820,_0x4c2da8){return null==_0xe7f820['end']['nodeBefore']&&_0xe7f820['end']['parent']==_0xe7f820['start']['nodeAfter']?Ft(_0xe7f820['start']['nodeAfter'],_0x4c2da8):_0xe7f820;}function Ft(_0x15b992,_0x4beba0){const _0x4011d8=_0x4beba0['schema']['isObject'](_0x15b992)||_0x4beba0['schema']['isSelectable'](_0x15b992);return _0x4beba0['createRange'](_0x4beba0['createPositionAt'](_0x15b992,'before'),_0x4011d8?_0x4beba0['createPositionAfter'](_0x15b992):_0x4beba0['createPositionAt'](_0x15b992,'end'));}function Gt(_0x351dc2,_0x3ebea1,_0x8f15ca,_0xecbc17,_0x83acd){if(!Pt(_0x351dc2,_0x3ebea1))return!0x1;if(_0x8f15ca['end']['isEqual'](_0xecbc17['start']))return!0x0;if(_0x351dc2['type']!=_0x3ebea1['type'])return!0x1;if(!_0x8f15ca['end']['isTouching'](_0xecbc17['start']))return!0x1;const _0xf4ab04=_0x83acd['createRange'](_0x8f15ca['end'],_0xecbc17['start'])['getWalker']();for(const _0x4a7303 of _0xf4ab04)if(['elementStart','elementEnd']['includes'](_0x4a7303['type'])&&_0x83acd['schema']['isLimit'](_0x4a7303['item']))return!0x1;return!0x0;}function Pt(_0x1db3bc,_0x486926,_0x117280=[]){return!(!_0x1db3bc['_isDataLoaded']||!_0x486926['_isDataLoaded'])&&_0x4d101c(Bt(_0x1db3bc['attributes'],_0x117280),Bt(_0x486926['attributes'],_0x117280));}function Lt(_0x4e782b,_0x3ab431){const _0x307e23=Ht(_0x4e782b['attributes']),_0x2c13a3=Ht(_0x3ab431);if(!_0x4e782b['_isDataLoaded'])return!0x1;for(const _0x2a7a0a of Object['keys'](_0x2c13a3))if(!_0x4d101c(_0x307e23[_0x2a7a0a],_0x2c13a3[_0x2a7a0a]))return!0x1;return!0x0;}function Ht(_0x281aa4){const _0x41dee7=Object['assign']({},_0x281aa4);return delete _0x41dee7['skipNestingCheck'],delete _0x41dee7['tablePasteChainId'],_0x41dee7;}class oe extends _0x206109(){['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 _0x54ad29=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x54ad29);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x3ffd59,_0xbeef5a,_0x21b486,_0x3a9a6c){super(),this['model']=_0xbeef5a,this['view']=_0x21b486,this['commentThreadController']=_0x3a9a6c,this['_editor']=_0x3ffd59,this['_acceptCommand']=_0x3ffd59['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3ffd59['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1d395f,_0x24c825)=>_0x1d395f||_0x24c825),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3d714e=>_0x3d714e&&this['_editor']['model']['canEditAt'](_0xbeef5a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5edd4a=>_0x5edd4a&&this['_editor']['model']['canEditAt'](_0xbeef5a['getRanges']())),this['_pendingAction']=null,_0x21b486['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x21b486,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x21b486,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x21b486,'change:isDirty',()=>{_0x21b486['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x4755dc{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x192d40}=this['_config'];this['commentsListView']=new _0x192d40(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',_0x10c76e=>_0x10c76e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x27f344,_0x134806)=>_0x27f344||!!_0x134806);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x52457c}=this['_config'],_0x548c15=new _0x52457c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2070d7=_0x548c15['commentInputView'];return _0x548c15['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2070d7,'value',(_0x302685,_0xde8bcd,_0x103d00)=>!!_0x103d00||_0x302685&&!_0xde8bcd),_0x2070d7['on']('submit',(_0x47b29d,_0x50cc78)=>{this['fire']('addComment',_0x50cc78),_0x2070d7['editor']['setData']('');}),_0x2070d7['on']('cancel',()=>this['focus']()),_0x2070d7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x548c15;}constructor(_0x33a64d,_0x5dbd5c,_0x3caf5e,_0x249d87){super(_0x33a64d),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x5dbd5c['authoredAt']),this['bind']('authoredAt')['to'](_0x5dbd5c),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x5dbd5c,this['_localUser']=_0x3caf5e,this['_config']=_0x249d87,_0x249d87['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x49bb53=this['bindTemplate'],_0x41d81e=[{'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':_0x49bb53['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x49bb53['to']('authoredAt',_0x5e2723=>this['_config']['formatDateTime'](_0x5e2723))}]}]},{'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']&&_0x41d81e['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x40252b={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x49bb53['if']('isActive','ck-suggestion-wrapper--active'),_0x49bb53['to']('type',_0x993547=>'ck-suggestion-'+_0x993547),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':_0x41d81e}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x40252b['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)),_0x40252b;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x98b93e,_0x323ad7,_0x4bd1b1)=>{this['_descriptionElement']['innerHTML']=_0x4bd1b1;});}['_createButton'](_0x27785f,_0x108202,_0x180566,_0x137d07,_0x38cbed){const _0x122a85=new _0x3f99ee(this['locale']);return _0x122a85['set']({'label':_0x27785f,'icon':_0x108202,'tooltip':!0x0,'tooltipPosition':_0x38cbed}),_0x122a85['extendTemplate']({'attributes':{'class':_0x180566}}),_0x122a85['on']('execute',()=>{this['fire'](_0x137d07,this['_model']['id']);}),_0x122a85;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}constructor(_0x256799,_0x2c423d,_0x2b1a90,_0x154260){super(_0x256799,_0x2c423d,_0x2b1a90,_0x154260),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x393fdf=>_0x393fdf&&_0x393fdf[0x0]?_0x393fdf[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3f2385,_0x274138)=>{let _0x17264b='';for(const _0x3dc159 of _0x3f2385)_0x17264b+='<p>'+ds(_0x3dc159['content'],_0x3dc159['color'])+'</p>';return _0x274138?_0x17264b:_0x3ccff8(_0x17264b,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x256799,'Accept\x20suggestion'),_0x51c5d8['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x256799,'Discard\x20suggestion'),_0x51c5d8['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x35fb78(_0x256799,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x3ff969,_0x32b5ea){let _0x4579b6='';return _0x4579b6+=_0x3ff969['split']('*')['map']((_0xb6b94c,_0x3fd755)=>_0x3fd755%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xb6b94c)+'</span>':us(_0xb6b94c))['join'](''),_0x32b5ea&&(_0x4579b6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x32b5ea['value']+'\x22\x20title=\x22'+_0x32b5ea['title']+'\x22></span>'),_0x4579b6;}function us(_0x3be549){const _0x2560f3=document['createElement']('span');return _0x2560f3['innerText']=_0x3be549,_0x2560f3['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 _0x2b5176{static get['requires'](){return[p,_0x1cec01,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x3df1cf,_0x37f082){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1e2f6b,_0x527741]of this['_handleControllerBuffer']){const _0x29b4a3=this['_suggestionToController']['has'](_0x1e2f6b);_0x29b4a3||_0x527741?_0x29b4a3&&_0x527741&&this['_destroyController'](_0x1e2f6b):this['_initializeController'](_0x1e2f6b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3df1cf,_0x37f082);}['init'](){const _0x3147cd=this['editor'],_0x4f2792=_0x3147cd['plugins']['get']('TrackChangesEditing'),_0x41c7f7=_0x3147cd['plugins']['get']('Annotations'),_0x1ed69c=_0x3147cd['plugins']['get']('EditorAnnotations'),_0x5f3e97=_0x3147cd['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1ed69c['addSourceCollector'](()=>{const _0x20dc88=[];for(const [_0x85623,_0x35cee1]of Array['from'](this['_suggestionToController'])){const _0x43ea90=_0x85623['getAllAdjacentSuggestions'](),_0x57bbd3=[];for(const _0x5eb815 of _0x43ea90){if(!_0x5eb815['isInContent'])continue;if(_0x5eb815['isMultiRange']){_0x57bbd3['push'](..._0x5eb815['getRanges']());continue;}const _0x495d09=_0x5eb815['getFirstRange']();if(_0x57bbd3['length']>0x0){const _0x1deed2=_0x57bbd3[0x0]['getJoined'](_0x495d09);if(_0x1deed2){_0x57bbd3[0x0]=_0x1deed2;continue;}}_0x57bbd3['push'](_0x495d09);}_0x20dc88['push']([_0x35cee1['view'],_0x57bbd3]);}return _0x20dc88;}),this['listenTo'](_0x4f2792,'suggestionLoaded',(_0x1b6ba7,_0x176883)=>{this['listenTo'](_0x176883,'change:previous',(_0x169249,_0x1a3a8a,_0x5eb2ad,_0x1bb7eb)=>{_0x176883['isInContent']&&(null==_0x5eb2ad?(this['_updateController'](_0x1bb7eb['head']),this['_handleSuggestionControllerDelayed'](_0x176883,!0x1)):(this['_updateController'](_0x5eb2ad['head']),null==_0x1bb7eb&&this['_handleSuggestionControllerDelayed'](_0x176883,!0x0)));}),null!==_0x176883['previous']?this['_updateController'](_0x176883['head']):this['_handleSuggestionControllerDelayed'](_0x176883,!0x1);}),this['listenTo'](_0x4f2792,'suggestionUnloaded',(_0x43026f,_0x45ab9d,_0x5e7507)=>{this['stopListening'](_0x45ab9d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x45ab9d),this['_suggestionToController']['has'](_0x45ab9d)&&this['_destroyController'](_0x45ab9d),_0x5e7507&&this['_updateController'](_0x5e7507['head']);}),this['listenTo'](_0x4f2792,'suggestionChanged',(_0x84343c,_0x14a465)=>{this['_updateController'](_0x14a465);}),this['listenTo'](_0x41c7f7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5f3e97,'addComment',(_0x2a9105,{threadId:_0x1de363,isFromAdapter:_0x7c1ab5})=>{if(_0x7c1ab5||!_0x4f2792['hasSuggestion'](_0x1de363))return;const _0x56d855=_0x4f2792['getSuggestion'](_0x1de363);this['_suggestionToController']['get'](_0x56d855)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2442c6=this['editor']['plugins']['get']('Annotations'),_0x5094b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47865b=Array['from'](_0x2442c6['activeAnnotations'],_0x1370a1=>_0x1370a1['innerView'])['filter'](_0x56d553=>this['_viewToController']['has'](_0x56d553)),_0x530be2=[];for(const _0x222944 of _0x47865b){const _0x280437=this['_viewToController']['get'](_0x222944)['model']['getAllAdjacentSuggestions']();_0x530be2['push'](..._0x280437['reduce']((_0x3e4511,_0x3a7878)=>[..._0x3e4511,..._0x3a7878['getMarkerNames']()],[]));}_0x5094b2['activeMarkers']=_0x530be2;}['_addUIComponentsToFactory'](){const _0x20f5f5=this['editor'],_0x231dd2=_0x20f5f5['locale'],_0x3826db=o(_0x231dd2,'Track\x20changes'),_0x3fe3e5=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x3826db,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x231dd2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x231dd2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x231dd2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x231dd2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x453fb1 of _0x3fe3e5)if(ae(_0x453fb1)){const _0x470530=_0x20f5f5['commands']['get'](_0x453fb1['model']['commandName']);_0x453fb1['model']['bind']('isOn','isEnabled')['to'](_0x470530,'value','isEnabled');}_0x20f5f5['ui']['componentFactory']['add']('trackChanges',_0x451822=>this['_createToolbarButton'](_0x451822,_0x3fe3e5,_0x3826db)),_0x20f5f5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4823c8=>this['_createMenuBarMenu'](_0x4823c8,_0x3fe3e5,_0x3826db));}['_createToolbarButton'](_0xa0432c,_0x9a6f39,_0x35e326){const _0x44b62d=zt(_0xa0432c,Zt),_0x1648fa=this['editor']['commands']['get']('trackChanges');_0x44b62d['buttonView']['set']({'tooltip':_0x35e326,'label':_0x35e326,'icon':ie}),_0x44b62d['buttonView']['bind']('isOn')['to'](_0x1648fa,'value'),_0x44b62d['buttonView']['on']('execute',()=>{_0x1648fa['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x44b62d,_0x9a6f39);const _0x14a369=[];for(const _0x3488ae of _0x9a6f39)ae(_0x3488ae)&&_0x14a369['push'](this['editor']['commands']['get'](_0x3488ae['model']['commandName']));const _0x5563d1=_0x44b62d['buttonView'];return _0x5563d1['actionView']['unbind']('isEnabled'),_0x5563d1['arrowView']['unbind']('isEnabled'),_0x5563d1['actionView']['bind']('isEnabled')['to'](_0x1648fa,'isEnabled'),_0x5563d1['arrowView']['bind']('isEnabled')['toMany'](_0x14a369,'isEnabled',(..._0x5e16f5)=>_0x5e16f5['some'](_0x41fa7a=>_0x41fa7a)),_0x44b62d['on']('execute',_0x382645=>{this['editor']['execute'](_0x382645['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x44b62d;}['_createMenuBarMenu'](_0x3f05ac,_0x10c0ee,_0x5ae650){const _0x42bdf3=new Kt(_0x3f05ac),_0x2ac24d=this['editor']['commands']['get']('trackChanges');_0x42bdf3['buttonView']['set']({'label':_0x5ae650,'icon':ie});const _0x2c5a63=new Qt(_0x3f05ac);for(const _0x2d39ea of _0x10c0ee){if('separator'==_0x2d39ea['type']){_0x2c5a63['items']['add'](new Jt(_0x3f05ac));continue;}const _0x583cd7=new Xt(_0x3f05ac,_0x42bdf3),_0x1f9674=new Yt(_0x3f05ac),_0x11cae3=_0x2d39ea['model'];_0x1f9674['bind'](...Object['keys'](_0x11cae3))['to'](_0x11cae3),_0x1f9674['delegate']('execute')['to'](_0x42bdf3),_0x1f9674['on']('execute',()=>{this['editor']['execute'](_0x11cae3['commandName']),this['editor']['editing']['view']['focus']();}),_0x583cd7['children']['add'](_0x1f9674),_0x2c5a63['items']['add'](_0x583cd7);}return _0x42bdf3['bind']('isEnabled')['to'](_0x2ac24d,'isEnabled'),_0x42bdf3['panelView']['children']['add'](_0x2c5a63),_0x42bdf3;}['_initializeController'](_0x21e577){const _0x959dad=this['editor'],_0x52bb93=_0x959dad['config'],_0x165597=_0x959dad['plugins']['get']('Annotations'),_0x60b015=_0x959dad['plugins']['get']('CommentsRepository'),_0x425f49=_0x959dad['plugins']['get']('EditorAnnotations'),_0x2cc16d=_0x959dad['plugins']['get'](_0x1cec01)['me'],_0x1b3394=_0x52bb93['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x4ab225,CommentThreadInputView:_0x499e36}=_0x959dad['plugins']['get']('CommentsUI');let _0x13415f,_0x510ffc;this['_annotationViews']['has'](_0x21e577['id'])?(_0x510ffc=this['_annotationViews']['get'](_0x21e577['id']),_0x13415f=_0x510ffc['mainView']):(_0x13415f=new _0x1b3394(_0x959dad['locale'],_0x21e577,_0x2cc16d,{'disableComments':this['_disableComments'],'editorConfig':_0x52bb93['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x52bb93['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x52bb93['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x52bb93['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x26e90c(_0x52bb93['get']('locale')),'CommentView':_0x52bb93['get']('comments')['CommentView'],'CommentsListView':_0x4ab225,'CommentThreadInputView':_0x499e36}),_0x13415f['acceptButton']['on']('execute',()=>{_0x959dad['editing']['view']['focus']();}),_0x13415f['discardButton']['on']('execute',()=>{_0x959dad['editing']['view']['focus']();}),_0x510ffc=_0x165597['createAnnotationView'](this['editor']['locale'],_0x13415f),_0x510ffc['bind']('isDirty')['to'](_0x13415f,'isDirty'),_0x510ffc['bind']('length')['to'](_0x13415f),_0x510ffc['bind']('type')['to'](_0x13415f,'type',_0x3debd6=>'suggestion-'+_0x3debd6),this['_annotationViews']['set'](_0x21e577['id'],_0x510ffc));const _0x487f05=_0x60b015['createCommentThreadController'](_0x21e577['commentThread'],_0x13415f),_0x2a92bf=new oe(_0x959dad,_0x21e577,_0x13415f,_0x487f05),_0x5cc256=_0x21e577['getAllAdjacentSuggestions']()['filter'](_0x479c1d=>_0x479c1d['isInContent']);_0x13415f['descriptionParts']=_0x959dad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5cc256),this['_suggestionToController']['set'](_0x21e577,_0x2a92bf),this['_viewToController']['set'](_0x13415f,_0x2a92bf);const _0xbdef22=_0x165597['createAnnotation']({'view':_0x510ffc,'target':()=>{const _0x5ce78a=[],_0x3dda72=_0x21e577['getAllAdjacentSuggestions']()['filter'](_0x4ba778=>_0x4ba778['isInContent']);for(const _0x441452 of _0x3dda72)_0x5ce78a['push'](..._0x441452['getMarkers']());return _0x409e87(_0x959dad['editing'],_0x5ce78a);},'type':()=>'suggestion-'+_0x2a92bf['view']['type']});_0x60b015['_bindAnnotationToEditors'](_0x13415f,_0xbdef22),_0x165597['add'](_0xbdef22),_0x425f49['registerAnnotation'](_0xbdef22);}['_destroyController'](_0x1a22d9){const _0x272e82=this['editor']['plugins']['get']('CommentsRepository'),_0x5bffa7=this['editor']['plugins']['get']('Annotations'),_0x5714d9=this['_suggestionToController']['get'](_0x1a22d9),_0x4276bd=_0x5714d9['view'],_0x44297e=_0x5bffa7['getByInnerView'](_0x4276bd);_0x272e82['_unbindEditors'](_0x4276bd),_0x44297e&&_0x5bffa7['remove'](_0x44297e),this['_suggestionToController']['delete'](_0x1a22d9),this['_viewToController']['delete'](_0x4276bd),_0x5714d9['destroy']();}['_updateController'](_0xd8448e){if(!_0xd8448e['isInContent']||!this['_suggestionToController']['has'](_0xd8448e))return;const _0x42fee7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x378528=this['_suggestionToController']['get'](_0xd8448e),_0x278fac=_0xd8448e['getAllAdjacentSuggestions']();_0x378528['view']['descriptionParts']=_0x42fee7['descriptionFactory']['getDescriptions'](_0x278fac);}['destroy'](){for(const _0x2c0285 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2c0285);for(const _0x628d1b of this['_annotationViews']['values']())_0x628d1b['mainView']['destroy']();super['destroy']();}constructor(_0xff20e0){super(_0xff20e0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x239ba1=this['editor']['config'];_0x239ba1['define']('trackChanges.SuggestionThreadView',ne),_0x239ba1['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x239ba1['get']('trackChanges.disableComments');}}function ae(_0x2abd67){return'model'in _0x2abd67;}class k extends _0x2b5176{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x29daa2){this['editor']['plugins']['get'](p)['adapter']=_0x29daa2;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x14622b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x14622b);}['getSuggestions']({skipNotAttached:_0x58dd29=!0x1,toJSON:_0x20c171=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x58dd29,'toJSON':_0x20c171});}['getSuggestion'](_0x60bbbd){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x60bbbd);}}const T=['Pagination'];class P extends _0x2b5176{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x5dcde4=this['editor'];if(_0x5dcde4['config']['define']('trackChangesData.editorCreator',_0x3cb5bf=>{const _0x10e133=_0x5dcde4['model']['document']['getRootNames']()['reduce']((_0x1a4111,_0x1e2a2c)=>(_0x1a4111[_0x1e2a2c]='',_0x1a4111),{});return _0x5dcde4['constructor']['create'](_0x10e133,_0x3cb5bf);}),'function'!=typeof _0x5dcde4['config']['get']('trackChangesData')['editorCreator'])throw new _0x295e05('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1a8ee3){return N(this['editor'],!0x0,_0x1a8ee3);}['getDataWithDiscardedSuggestions'](_0x30ed08){return N(this['editor'],!0x1,_0x30ed08);}}class D extends _0x2b5176{static get['pluginName'](){return'TrackChangesDataGetter';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}constructor(_0x602d3a){super(_0x602d3a),this['result']='end';}}function v(_0x3fc18d){return void 0x0!==_0x3fc18d['getRootsAttributes'];}async function N(_0x472667,_0x132184,_0x223933){const _0x1a11d8=_0x32acc9(_0x472667,T);_0x1a11d8['plugins']['push'](p,D),_0x1a11d8['rootsAttributes']=v(_0x472667)?_0x472667['getRootsAttributes']():void 0x0;const _0x387a1c=document['createDocumentFragment'](),_0x4e5ab2=_0x472667['config']['get']('trackChangesData')['editorCreator'],_0x3291af=await _0x4e5ab2(_0x1a11d8,()=>function(_0x39a3ea){const _0x192028=document['createElement']('div');return _0x39a3ea['appendChild'](_0x192028),_0x192028;}(_0x387a1c));!function(_0x133c2c,_0x3a5ab3){const _0x15ca73=_0x133c2c['model']['document']['getRootNames']()['reduce']((_0x13f732,_0x483fa2)=>(_0x13f732[_0x483fa2]=_0x133c2c['data']['get']({'rootName':_0x483fa2}),_0x13f732),{}),_0x867744=_0x133c2c['plugins']['get']('Users')['users']['map'](_0x54af56=>({'id':_0x54af56['id'],'name':_0x54af56['name']})),_0x36d96f=_0x133c2c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x184d5d=_0x133c2c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1b963a=_0x3a5ab3['plugins']['get']('Users'),_0x4fc9f3=_0x3a5ab3['plugins']['get']('TrackChangesEditing'),_0x3bc89d=_0x3a5ab3['plugins']['get']('CommentsRepository');for(const _0x5cb6e4 of _0x867744)_0x1b963a['getUser'](_0x5cb6e4['id'])||_0x1b963a['addUser'](_0x5cb6e4);_0x1b963a['me']||_0x1b963a['useAnonymousUser']();for(const _0x1d838b of _0x36d96f)_0x4fc9f3['addSuggestionData'](_0x1d838b);for(const _0x424cc0 of _0x184d5d)_0x3bc89d['addCommentThread'](_0x424cc0);_0x3a5ab3['data']['set'](_0x15ca73);}(_0x472667,_0x3291af),_0x3291af['execute'](_0x132184?'acceptAllSuggestions':'discardAllSuggestions');const _0x43f2fc=v(_0x3291af)?_0x3291af['getFullData'](_0x223933):_0x3291af['data']['get'](_0x223933);return await _0x3291af['destroy'](),_0x43f2fc;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};