@ckeditor/ckeditor5-track-changes 42.0.2-alpha.0 → 42.0.2-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x3cf114,PendingActions as _0x9b188d,icons as _0x161f69}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x9391a,ObservableMixin as _0x5c2606,uid as _0x2dd115,insertToPriorityArray as _0xf4ef19,priorities as _0x2b5f0a,logWarning as _0x4266f5,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x107a8d,View as _0x773267,ButtonView as _0x16fa56,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 _0x188410,hashObject as _0x58ab75,surroundingMarkersDetector as _0x17149d,trimHtml as _0x5521ea,UserView as _0x307376,getDateTimeFormatter as _0x1b6479,getAllMarkersDomElementsSorted as _0xd9568a,sanitizeEditorConfig as _0x24751a}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x19677a,LiveRange as _0x150295,LivePosition as _0x23a885}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x233cfd,toWidget as _0x125844}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x579904,set as _0x1524a0,isEqual as _0x10efed,unset as _0x53e984,omit as Bt}from'lodash-es';import{Delete as _0x42bf9b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5476d9,ShiftEnter as _0x4ea829}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x14800c,_0x13e1eb){super(_0x14800c),this['_enabledCommands']=_0x13e1eb,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x4990a7 of this['editor']['commands']['commands']())_0x4990a7['affectsData']&&!this['_enabledCommands']['has'](_0x4990a7)&&_0x4990a7['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5e381d of this['editor']['commands']['commands']())_0x5e381d['affectsData']&&!this['_enabledCommands']['has'](_0x5e381d)&&_0x5e381d['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0xfe36f0,_0x4aad46){super(_0xfe36f0),this['_suggestions']=_0x4aad46,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1b940b){const _0x1b9059=this['_suggestions']['get'](_0x1b940b);if(!_0x1b9059)throw new _0x9391a('track-changes-accept-suggestion-not-found',this);const _0x257737=_0x1b9059['getRanges']();this['editor']['model']['canEditAt'](_0x257737)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1b9059);}}class B extends ts{['_suggestions'];constructor(_0x152273,_0x1d0f69){super(_0x152273),this['_suggestions']=_0x1d0f69,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2b0643){const _0x1fcfb2=this['_suggestions']['get'](_0x2b0643);if(!_0x1fcfb2)throw new _0x9391a('track-changes-discard-suggestion-not-found',this);const _0x1b6031=_0x1fcfb2['getRanges']();this['editor']['model']['canEditAt'](_0x1b6031)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1fcfb2);}}function ss(_0xa53f5a){return _0xa53f5a['sort']((_0x1962f9,_0x52a596)=>'deletion'==_0x1962f9['type']&&'deletion'!=_0x52a596['type']?-0x1:'deletion'!=_0x1962f9['type']&&'deletion'==_0x52a596['type']?0x1:0x0);}function to(_0x1b705c,_0x590d55){let _0x41bde5,_0x3a81f9=0x0;const _0x3a0bcd=[],_0x58f572=_0x590d55['schema'];for(;_0x3a81f9<_0x1b705c['length'];){const _0x22951e=_0x1b705c[_0x3a81f9],_0x425c60=_0x1b705c[_0x3a81f9+0x1];_0x41bde5||(_0x41bde5=_0x590d55['createPositionBefore'](_0x22951e)),co(_0x590d55,_0x22951e,_0x425c60)||(_0x3a0bcd['push'](_0x590d55['createRange'](_0x41bde5,_0x58f572['isObject'](_0x22951e)?_0x590d55['createPositionAfter'](_0x22951e):_0x590d55['createPositionAt'](_0x22951e,'end'))),_0x41bde5=null),_0x3a81f9++;}return _0x3a0bcd;}function co(_0xc72f61,_0x20f6e4,_0x34c2c4){if(!_0x34c2c4)return!0x1;const _0x39d599=_0xc72f61['createPositionAfter'](_0x20f6e4),_0x3656e2=_0xc72f61['createPositionBefore'](_0x34c2c4);return _0x39d599['isTouching'](_0x3656e2);}function rs(_0x403c8b,_0x56b7f8,_0x3d7f29){for(;_0x3d7f29['length'];){const _0x3efa0b=_0x3d7f29['splice'](0x0,0x64);_0x403c8b['change'](()=>{for(const _0x40a5da of _0x3efa0b)_0x40a5da['isInContent']&&_0x56b7f8['execute'](_0x40a5da['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x3ba9a3,_0x2cc9fa,_0x3ed187){super(_0x3ba9a3),this['_command']=_0x2cc9fa,this['_suggestions']=_0x3ed187,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x22e5de=Array['from'](this['_suggestions']['values']())['some'](_0x1c3fb0=>_0x1c3fb0['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x22e5de;}['execute'](){const _0x687c0a=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5ea424 of _0x687c0a){const _0x310614=_0x5ea424['getRanges']();if(!this['editor']['model']['canEditAt'](_0x310614))return;}rs(this['editor']['model'],this['_command'],_0x687c0a);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3b676c,_0x1d5fa5,_0x331a48){super(_0x3b676c),this['_command']=_0x1d5fa5,this['_suggestions']=_0x331a48,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4ae41c=this['editor']['model']['document']['selection'],_0x46d74e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1c17f6,_0x1afdea){const _0x56bb16=Array['from'](_0x1c17f6['getRanges']()),_0x371208=new Set();for(const _0xe1f1f4 of _0x1afdea)if(_0xe1f1f4['isInContent']){for(const _0x494c24 of _0x56bb16)for(const _0x36c24a of _0xe1f1f4['getRanges']())(_0x494c24['isIntersecting'](_0x36c24a)||_0x1c17f6['isCollapsed']&&!_0xe1f1f4['isMultiRange']&&_0xe1f1f4['next']&&_0x36c24a['end']['isTouching'](_0x494c24['start']))&&_0x371208['add'](_0xe1f1f4);}return _0x371208;}(_0x4ae41c,_0x46d74e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x516d4e=ss(Array['from'](this['_selectedSuggestions']));for(const _0x3fc0cd of _0x516d4e){const _0x2eae07=_0x3fc0cd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2eae07))return;}rs(this['editor']['model'],this['_command'],_0x516d4e);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x5c2606(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1e019e,_0x244b12){super(),this['id']=_0x244b12['id'],this['type']=_0x244b12['type'],this['subType']=_0x244b12['subType']||null,this['author']=_0x244b12['author'],this['creator']=_0x244b12['creator']||_0x244b12['author'],this['isExternal']=Boolean(_0x244b12['attributes']&&_0x244b12['attributes']['@external']),this['data']=null,this['_model']=_0x1e019e,this['_onAccept']=_0x244b12['onAccept'],this['_onDiscard']=_0x244b12['onDiscard'],this['_onAttributesChange']=_0x244b12['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x244b12['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x2400cf=this;for(;_0x2400cf['previous'];)_0x2400cf=_0x2400cf['previous'];return _0x2400cf;}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'](_0x30ad55){this['_markerNames']['add'](_0x30ad55);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x30882c=>this['_model']['markers']['get'](_0x30882c))['filter'](_0x310701=>_0x310701);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1c8da8=>{for(const _0x3dba1a of this['getMarkers']())_0x1c8da8['removeMarker'](_0x3dba1a);}),this['_markerNames']['clear']();}['removeMarker'](_0x29883a){this['_model']['change'](_0x31f997=>{_0x31f997['removeMarker'](_0x29883a);}),this['_markerNames']['delete'](_0x29883a);}['addRange'](_0x34bfc3){const _0x4b01a2='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4b01a2),this['_model']['change'](_0x1b020b=>{_0x1b020b['addMarker'](_0x4b01a2,{'range':_0x34bfc3,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x259140){for(const _0x221596 of this['getRanges']())if(_0x221596['isIntersecting'](_0x259140))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x276e16=>_0x276e16['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xb9912e,_0x2aec3a)=>[..._0xb9912e,..._0x2aec3a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x337cb9=this['getRanges']();if(0x1!=_0x337cb9['length'])return null;const _0x338d1f=_0x337cb9[0x0],_0x405d24=_0x338d1f['start']['nodeAfter'],_0x3cdf54=_0x338d1f['end']['nodeBefore'];return _0x405d24 instanceof _0x19677a?_0x405d24!=_0x3cdf54?null:_0x405d24: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 _0xcadfd9=[];let _0x3e4756=this['head'];for(;_0x3e4756;)_0xcadfd9['push'](_0x3e4756),_0x3e4756=_0x3e4756['next'];return _0xcadfd9;}['setAttribute'](_0x84c4d1,_0x348bc7){const _0x3bc1c7=_0x579904(this['attributes']);_0x1524a0(_0x3bc1c7,_0x84c4d1,_0x348bc7),_0x10efed(_0x3bc1c7,this['attributes'])||(this['attributes']=_0x3bc1c7,this['_onAttributesChange'](_0x3bc1c7));}['removeAttribute'](_0x193b5c){const _0x568640=_0x579904(this['attributes']);_0x53e984(_0x568640,_0x193b5c),_0x10efed(_0x568640,this['attributes'])||(this['attributes']=_0x568640,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 _0x2dd115()['substr'](0x1,0x5);}}function o(_0x434da8,_0x34d3fb,_0x339f3f){const t=_0x434da8['t'];switch(_0x34d3fb){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',_0x339f3f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x339f3f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x339f3f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x339f3f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x339f3f);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',_0x339f3f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x339f3f);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',_0x339f3f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x339f3f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x339f3f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x339f3f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x339f3f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x339f3f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x339f3f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x339f3f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x339f3f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x339f3f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x339f3f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x339f3f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x339f3f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x339f3f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x339f3f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x339f3f);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'},_0x339f3f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x339f3f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x339f3f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x339f3f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x339f3f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x339f3f);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'},_0x339f3f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x339f3f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x339f3f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x339f3f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x339f3f);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'},_0x339f3f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x339f3f);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'},_0x339f3f);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'},_0x339f3f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x339f3f);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'},_0x339f3f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x339f3f);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'},_0x339f3f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x339f3f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x339f3f);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'},_0x339f3f);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'},_0x339f3f);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 _0x34d3fb;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x43bbae,_0x4acd23){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x43bbae,this['_locale']=_0x4acd23;}['getDescriptions'](_0x3b3e62){const _0x14dd49=[],_0x31ba6d=new Set(),_0xc54eb5=new Set();for(let _0x5a110c=0x0;_0x5a110c<_0x3b3e62['length'];_0x5a110c++){const _0x4be402=_0x3b3e62[_0x5a110c];if(!_0x4be402['isInContent'])continue;const _0x38791a=this['_handleCustomCallbackDescription'](_0x4be402);if(_0x38791a){if(null!=_0x4be402['subType']){if(_0x31ba6d['has'](_0x4be402['subType']))continue;_0x31ba6d['add'](_0x4be402['subType']);}_0x14dd49['push'](_0x38791a);}else{if('attribute'!=_0x4be402['type'])'insertion'!=_0x4be402['type']&&'deletion'!=_0x4be402['type']||this['_handleInsertRemoveSuggestionDescription'](_0x14dd49,_0x4be402,_0x3b3e62[_0x5a110c+0x1]);else{const _0x4083a9=_0x4be402['data']['key'];if(_0xc54eb5['has'](_0x4083a9))continue;_0xc54eb5['add'](_0x4be402['data']['key']),_0x4083a9==m?this['_handleRenameSuggestionDescription'](_0x14dd49,_0x4be402):this['_handleAttributeSuggestionDescription'](_0x14dd49,_0x4be402);}}}return this['_resolveDescriptionItems'](_0x14dd49);}['registerDescriptionCallback'](_0x5d1770){this['_customCallbacks']['push'](_0x5d1770);}['registerElementLabel'](_0xc2af92,_0x1d5ee9,_0x153b98=_0x2b5f0a['normal']){'function'==typeof _0xc2af92?_0xf4ef19(this['_itemLabelsCallbacks'],{'matchingCallback':_0xc2af92,'label':_0x1d5ee9,'priority':_0x153b98}):this['_itemLabels']['set'](_0xc2af92,_0x1d5ee9);}['registerAttributeLabel'](_0x34f80b,_0x3cb746){this['_attributeLabels']['set'](_0x34f80b,_0x3cb746);}['getItemLabel'](_0x341fc8,_0x23c7bc=0x1){let _0x4e906a;for(const _0x3d4007 of this['_itemLabelsCallbacks'])if(_0x3d4007['matchingCallback'](_0x341fc8)){_0x4e906a=_0x3d4007['label'];break;}return _0x4e906a||(_0x4e906a=this['_itemLabels']['get'](_0x341fc8['name'])),_0x4e906a?_0x4e906a(_0x23c7bc):0x1!==_0x23c7bc?_0x23c7bc+'\x20'+_0x341fc8['name']+'s':''+_0x341fc8['name'];}['_addDescriptionItems'](_0x4caae6,_0x2f7613){const _0xc9ed6e=_0x2f7613['getFirstRange']()['getWalker'](),_0x1635af='insertion'==_0x2f7613['type']?'add':'remove';for(const _0x1e23d9 of _0xc9ed6e){const _0x102249=_0x1e23d9['item'],_0x55a61f=_0x4caae6[_0x4caae6['length']-0x1];if(_0x102249['is']('$textProxy'))_0x55a61f&&_0x55a61f['type']['indexOf']('Container')>-0x1&&_0x4caae6['pop'](),_0x55a61f&&'text'==_0x55a61f['type']?_0x55a61f[_0x1635af]+=_0x102249['data']:_0x4caae6['push']({'type':'text','add':'add'==_0x1635af?_0x102249['data']:'','remove':'remove'==_0x1635af?_0x102249['data']:''});else{if(this['_schema']['isObject'](_0x102249)){const _0x53864f=_0x102249;if(_0x55a61f&&_0x55a61f['type']['indexOf']('Container')>-0x1&&_0x4caae6['pop'](),'elementEnd'==_0x1e23d9['type'])continue;_0x55a61f&&_0x55a61f['type']==_0x1635af+'Object'&&_0x55a61f['element']['name']==_0x53864f['name']?_0x55a61f['quantity']++:_0x4caae6['push']({'type':_0x1635af+'Object','element':_0x53864f,'quantity':0x1}),_0xc9ed6e['skip'](_0x125910=>!('elementEnd'==_0x125910['type']&&_0x125910['item']==_0x102249));}else{if(this['_schema']['checkChild'](_0x102249,'$text')||_0x102249['is']('element','softBreak')){const _0xe44153=_0x102249;if('add'==_0x1635af&&'elementStart'==_0x1e23d9['type']||'remove'==_0x1635af&&'elementEnd'==_0x1e23d9['type'])continue;if(_0x55a61f&&-0x1==_0x55a61f['type']['indexOf']('Container')){'text'==_0x55a61f['type']&&(_0x55a61f[_0x1635af]+='\x0a');continue;}let _0x457783;if(_0x457783='add'==_0x1635af?_0xe44153['nextSibling']&&!this['_schema']['isObject'](_0xe44153['nextSibling'])?_0xe44153['nextSibling']:null:_0xe44153['previousSibling']&&!this['_schema']['isObject'](_0xe44153['previousSibling'])?_0xe44153['previousSibling']:null,_0xe44153['isEmpty']||_0x457783&&_0x457783['isEmpty']){const _0x38d845=_0x457783&&_0x457783['isEmpty']?_0x457783:_0xe44153;_0x55a61f&&_0x55a61f['type']==_0x1635af+'EmptyContainer'&&_0x55a61f['element']['name']==_0x38d845['name']?_0x55a61f['quantity']++:_0x4caae6['push']({'type':_0x1635af+'EmptyContainer','element':_0x38d845,'quantity':0x1});}else _0x4caae6['push']({'type':_0x1635af+'Container','element':_0xe44153});}}}}}['_resolveDescriptionItems'](_0x40811e){const _0x47b84d=this['_locale'],_0x2dc43b=[],_0x1729cf=[],_0xada58b=[];for(const _0x1fc238 of _0x40811e)switch(_0x1fc238['type']){case'text':if(_0x1fc238['add']=_0x1fc238['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1fc238['remove']=_0x1fc238['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1fc238['add']&&''!=_0x1fc238['remove']){_0x2dc43b['push']({'type':'replace','content':o(_0x47b84d,'REPLACE_TEXT',['\x22'+_0x1fc238['remove']+'\x22','\x22'+_0x1fc238['add']+'\x22'])});continue;}if(null!=_0x1fc238['add']['match'](/^ +$/)){_0x2dc43b['push']({'type':'insertion','content':o(_0x47b84d,'*Insert:*\x20%0',o(_0x47b84d,'ELEMENT_SPACE',_0x1fc238['add']['length']))});continue;}if(null!=_0x1fc238['remove']['match'](/^ +$/)){_0x2dc43b['push']({'type':'deletion','content':o(_0x47b84d,'*Remove:*\x20%0',o(_0x47b84d,'ELEMENT_SPACE',_0x1fc238['remove']['length']))});continue;}if(''!=_0x1fc238['add']){_0x2dc43b['push']({'type':'insertion','content':o(_0x47b84d,'*Insert:*\x20%0','\x22'+_0x1fc238['add']+'\x22')});continue;}_0x2dc43b['push']({'type':'deletion','content':o(_0x47b84d,'*Remove:*\x20%0','\x22'+_0x1fc238['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2dc43b['push']({'type':'insertion','content':o(_0x47b84d,'*Insert:*\x20%0',this['getItemLabel'](_0x1fc238['element'],_0x1fc238['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2dc43b['push']({'type':'deletion','content':o(_0x47b84d,'*Remove:*\x20%0',this['getItemLabel'](_0x1fc238['element'],_0x1fc238['quantity']))});continue;case'addContainer':_0x2dc43b['push']({'type':'insertion','content':o(_0x47b84d,'*Split:*\x20%0',this['getItemLabel'](_0x1fc238['element'],_0x1fc238['quantity']))});continue;case'removeContainer':_0x2dc43b['push']({'type':'deletion','content':o(_0x47b84d,'*Merge:*\x20%0',this['getItemLabel'](_0x1fc238['element'],_0x1fc238['quantity']))});continue;case'addFormat':_0x1729cf['push'](_0x1fc238['key']);continue;case'removeFormat':_0xada58b['push'](_0x1fc238['key']);continue;default:_0x2dc43b['push'](_0x1fc238);}if(_0x1729cf['length']){const _0x599744=_0x1729cf['map'](_0x5ec7d5=>this['_attributeLabels']['has'](_0x5ec7d5)?this['_attributeLabels']['get'](_0x5ec7d5):_0x5ec7d5)['join'](',\x20');_0x2dc43b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x599744)});}if(_0xada58b['length']){const _0x3591aa=_0xada58b['map'](_0x3a703a=>this['_attributeLabels']['has'](_0x3a703a)?this['_attributeLabels']['get'](_0x3a703a):_0x3a703a)['join'](',\x20');_0x2dc43b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3591aa)});}return _0x2dc43b;}['_handleCustomCallbackDescription'](_0x2cea8c){for(const _0x304775 of this['_customCallbacks']){const _0x1444ca=_0x304775(_0x2cea8c);if(_0x1444ca&&'type'in _0x1444ca)return _0x1444ca;}}['_handleAttributeSuggestionDescription'](_0x5f19f9,_0x2e8679){const _0x44af48=_0x2e8679['data'],_0x263da0=void 0x0===_0x44af48['newValue']?'removeFormat':'addFormat';_0x5f19f9['push']({'type':_0x263da0,'key':_0x44af48['key']});}['_handleRenameSuggestionDescription'](_0x5d18d2,_0x19cefc){_0x5d18d2['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x19cefc['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x57abe2,_0xd40803,_0x27d807){if(this['_addDescriptionItems'](_0x57abe2,_0xd40803),_0x27d807&&_0x27d807['getFirstRange']()&&!_0xd40803['getFirstRange']()['end']['isEqual'](_0x27d807['getFirstRange']()['start'])){const _0x5f47f7=_0x57abe2[_0x57abe2['length']-0x1],_0x261415='insertion'==_0xd40803['type']?'add':'remove';_0x5f47f7&&'text'==_0x5f47f7['type']&&(_0x5f47f7[_0x261415]+='\x0a');}}}class E extends _0x3cf114{['afterInit'](){const _0x297b11=this['editor'],_0x4a0f1e=_0x297b11['plugins']['get']('TrackChangesEditing');_0x297b11['commands']['get']('showAIAssistant')&&_0x4a0f1e['enableCommand']('showAIAssistant');}}class O extends _0x3cf114{['afterInit'](){const _0x20633d=this['editor'],_0x210c1f=_0x20633d['locale'];if(!_0x20633d['plugins']['has']('AlignmentEditing'))return;const _0x200271=_0x20633d['plugins']['get']('TrackChangesEditing');_0x200271['enableDefaultAttributesIntegration']('alignment'),_0x200271['registerBlockAttribute']('alignment'),_0x200271['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x210c1f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x394ede=this['editor'],_0x30c105=_0x394ede['locale'];_0x394ede['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e552=>{if('formatBlock'!=_0x2e552['type'])return;const {data:_0x24e91f}=_0x2e552;if(_0x24e91f&&'alignment'==_0x24e91f['commandName']){const _0x15591b=_0x24e91f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x30c105,'*Format:*\x20%0',function(_0x4fad26){switch(_0x4fad26){case'left':return o(_0x30c105,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x30c105,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x30c105,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x30c105,'FORMAT_JUSTIFY_TEXT');}}(_0x15591b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x3cf114{['afterInit'](){const _0x3cce3b=this['editor'],_0x4994a1=_0x3cce3b['plugins']['get']('TrackChangesEditing'),_0x5e7ed2=_0x3cce3b['locale'];for(const _0x13db34 of ti){if(!_0x3cce3b['plugins']['has'](_0x13db34))continue;const _0x560e96=_0x13db34['slice'](0x0,-0x7)['toLowerCase'](),_0x357828='FORMAT_'+_0x560e96['toUpperCase']();_0x4994a1['enableDefaultAttributesIntegration'](_0x560e96),_0x4994a1['registerInlineAttribute'](_0x560e96),_0x4994a1['descriptionFactory']['registerAttributeLabel'](_0x560e96,o(_0x5e7ed2,_0x357828));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x63c4f7=this['editor'],_0x5db41a=_0x63c4f7['locale'],_0x3f5d0b=_0x63c4f7['plugins']['get']('TrackChangesEditing');function _0x463ed6(_0x453e14,_0x6eef50){_0x3f5d0b['descriptionFactory']['registerDescriptionCallback'](_0x215369=>{if('formatInline'!=_0x215369['type'])return;const {data:_0x27a55f}=_0x215369;return _0x27a55f&&_0x27a55f['commandName']===_0x453e14?_0x27a55f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5db41a,'*Format:*\x20%0',_0x6eef50)}:{'type':'format','content':o(_0x5db41a,'*Remove\x20format:*\x20%0',_0x6eef50)}:void 0x0;});}_0x463ed6('bold',o(_0x5db41a,'FORMAT_BOLD')),_0x463ed6('italic',o(_0x5db41a,'FORMAT_ITALIC')),_0x463ed6('underline',o(_0x5db41a,'FORMAT_UNDERLINE')),_0x463ed6('code',o(_0x5db41a,'FORMAT_CODE')),_0x463ed6('strikethrough',o(_0x5db41a,'FORMAT_STRIKETHROUGH')),_0x463ed6('subscript',o(_0x5db41a,'FORMAT_SUBSCRIPT')),_0x463ed6('superscript',o(_0x5db41a,'FORMAT_SUPERSCRIPT'));}}class U extends _0x3cf114{['afterInit'](){const _0x3e66ed=this['editor'],_0x1cd774=_0x3e66ed['locale'];if(!_0x3e66ed['plugins']['has']('BlockQuoteEditing'))return;const _0x2480e3=_0x3e66ed['plugins']['get']('TrackChangesEditing'),_0x16fe29=this['editor']['commands']['get']('blockQuote');_0x2480e3['enableCommand']('blockQuote',(_0x5834b2,_0x5b2e13={})=>{const _0x507f09=this['editor']['model']['document']['selection'],_0x115b03=_0x5b2e13&&void 0x0!==_0x5b2e13['forceValue']?_0x5b2e13['forceValue']:!_0x16fe29['value'];let _0x2ac443=[];if(_0x115b03){const _0x1eaa16=Array['from'](_0x507f09['getSelectedBlocks']())['filter'](_0x27c746=>oo(_0x27c746)||function(_0x352e14,_0x2dc2b5){const _0x23151b=_0x2dc2b5['checkChild'](_0x352e14['parent'],'blockQuote'),_0x9f830=_0x2dc2b5['checkChild'](['$root','blockQuote'],_0x352e14);return _0x23151b&&_0x9f830;}(_0x27c746,this['editor']['model']['schema']));_0x2ac443=to(_0x1eaa16,_0x3e66ed['model']);}else{const _0x1960ec=Array['from'](_0x507f09['getSelectedBlocks']())['filter'](_0x8da99d=>oo(_0x8da99d));_0x2ac443=to(_0x1960ec,_0x3e66ed['model']);}_0x3e66ed['model']['change'](()=>{for(const _0x242a80 of _0x2ac443)_0x2480e3['markBlockFormat'](_0x242a80,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x115b03}]});});}),_0x2480e3['descriptionFactory']['registerDescriptionCallback'](_0x41496c=>{const {data:_0x1fe829}=_0x41496c;if(_0x1fe829&&'blockQuote'==_0x1fe829['commandName']){const _0x14e4cb=o(_0x1cd774,'ELEMENT_BLOCK_QUOTE');return _0x1fe829['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1cd774,'*Set\x20format:*\x20%0',_0x14e4cb)}:{'type':'format','content':o(_0x1cd774,'*Remove\x20format:*\x20%0',_0x14e4cb)};}});}}function oo(_0x3b8c34){return'blockQuote'==_0x3b8c34['parent']['name'];}class G extends _0x3cf114{['afterInit'](){const _0x3bf6cb=this['editor'];_0x3bf6cb['plugins']['has']('CaseChange')&&(_0x3bf6cb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3bf6cb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3bf6cb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x3cf114{['afterInit'](){const _0x578053=this['editor'];_0x578053['commands']['get']('ckbox')&&_0x578053['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x3cf114{['afterInit'](){const _0x4a659e=this['editor'];if(!_0x4a659e['plugins']['has']('CodeBlock'))return;const _0x5e5c6d=_0x4a659e['plugins']['get']('TrackChangesEditing'),_0x144729=_0x4a659e['locale'],_0x5290bd=_0x4a659e['config']['get']('codeBlock')['languages'],_0x1492a8=_0x4a659e['commands']['get']('codeBlock');_0x5e5c6d['enableCommand']('indentCodeBlock'),_0x5e5c6d['enableCommand']('outdentCodeBlock'),_0x5e5c6d['enableCommand']('codeBlock',(_0x215cc6,_0x2338c6={})=>{const _0x4a4244=_0x4a659e['model'],_0xb521f1=_0x4a659e['model']['document']['selection'],_0x3ec2fc=_0x2338c6&&void 0x0!==_0x2338c6['forceValue']?_0x2338c6['forceValue']:!_0x1492a8['value'];let _0x592b12;_0x2338c6['language']||(_0x2338c6['language']=_0x5290bd[0x0]['language']),_0x592b12=_0x3ec2fc?Array['from'](_0xb521f1['getSelectedBlocks']())['filter'](_0x164e78=>eo(_0x164e78)||function(_0x1988ef,_0x51cb44){if(_0x1988ef['is']('rootElement')||_0x51cb44['isLimit'](_0x1988ef))return!0x1;return _0x51cb44['checkChild'](_0x1988ef['parent'],'codeBlock');}(_0x164e78,_0x4a4244['schema'])):Array['from'](_0xb521f1['getSelectedBlocks']())['filter'](_0x3cdac5=>eo(_0x3cdac5));const _0x4493db=to(_0x592b12,_0x4a4244);_0x4a4244['change'](()=>{for(const _0x17e23c of _0x4493db)_0x5e5c6d['markBlockFormat'](_0x17e23c,{'commandName':'codeBlock','commandParams':[{..._0x2338c6,'forceValue':_0x3ec2fc}],'formatGroupId':'blockName'});});}),(_0x5e5c6d['descriptionFactory']['registerElementLabel']('codeBlock',_0x15b2e3=>o(_0x144729,'ELEMENT_CODE_BLOCK',_0x15b2e3)),_0x5e5c6d['descriptionFactory']['registerDescriptionCallback'](_0x53e41b=>{if('formatBlock'!=_0x53e41b['type'])return;const _0x5906a8=_0x144729['t'],{data:_0x33da6d}=_0x53e41b;if(!_0x33da6d||'codeBlock'!=_0x33da6d['commandName'])return;const _0x1de904=_0x33da6d['commandParams'][0x0]['language'],_0x4e78e7=_0x5906a8(_0x5290bd['find'](_0x1e1774=>_0x1e1774['language']===_0x1de904)['label'])['toLowerCase']();return _0x33da6d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x144729,'*Set\x20format:*\x20%0',o(_0x144729,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4e78e7+')')}:{'type':'format','content':o(_0x144729,'*Remove\x20format:*\x20%0',o(_0x144729,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xe4192d){return'codeBlock'==_0xe4192d['name'];}class H extends _0x3cf114{['afterInit'](){const _0x3f29ab=this['editor'];if(!_0x3f29ab['plugins']['has']('CommentsEditing'))return;_0x3f29ab['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x783165,_0x40d78b,_0xbc70bb){const _0x5b1fd5=[];for(const _0x50a984 of _0x40d78b['getItems']())_0x50a984['hasAttribute'](_0x783165)&&_0x5b1fd5['push'](_0xbc70bb['createRangeOn'](_0x50a984));return _0x5b1fd5;}function _e(_0x2693ce,_0x2700ec,{showActiveMarker:_0x1db980=!0x0}={}){const _0xb04805=_0x2693ce['plugins']['get']('TrackChangesEditing');return(_0x31f9f4,_0xe0299a,_0x2c7046)=>{if(!_0x2c7046['consumable']['test'](_0xe0299a['markerRange'],_0x31f9f4['name']))return;const _0x224cd6=_0xe0299a['markerRange']['getWalker'](),_0x2eb4ad=_0xe0299a['markerRange']['start'],_0x36649b=_0x2693ce['model']['schema'];let _0x27db19=null,_0x544331=null,_0x409f91=!0x1,_0xefe4ef=!0x1;for(const _0x253fda of _0x224cd6){const _0x49a670=_0x253fda['item'];_0x409f91=_0x409f91||_0x36649b['isContent'](_0x49a670);const _0x4a6717=_0x2c7046['mapper']['toViewElement'](_0x49a670);if(_0x4a6717&&_0x4a6717['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x253fda['type']&&(_0x36649b['isBlock'](_0x49a670)&&!_0x36649b['isLimit'](_0x49a670)&&(_0x49a670['nextSibling']||_0x2eb4ad['isAtEnd']?_0x27db19&&_0x27db19['parent']==_0x49a670||(_0x27db19=_0x49a670,_0xdd6830(_0x253fda['previousPosition']),_0xefe4ef=!0x0):_0x544331=_0x544331||_0x253fda['previousPosition']));}function _0xdd6830(_0xab0924){const _0x900f09=_0x2c7046['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2700ec}),_0x5780a9=_0x2c7046['mapper']['toViewPosition'](_0xab0924);_0x1db980&&_0xb04805['activeMarkers']['includes'](_0xe0299a['markerName'])&&_0x2c7046['writer']['addClass']('ck-suggestion-marker--active',_0x900f09),_0x2c7046['writer']['insert'](_0x5780a9,_0x900f09),_0x2c7046['mapper']['bindElementToMarker'](_0x900f09,_0xe0299a['markerName']);}_0x409f91||_0xefe4ef||!_0x544331||_0xdd6830(_0x544331);};}class J extends _0x3cf114{static get['requires'](){return[_0x42bf9b];}['init'](){const _0x83c915=this['editor'],_0x721c3a=_0x83c915['plugins']['get']('TrackChangesEditing');_0x721c3a['enableCommand']('delete');const _0x2f3537=_0x83c915['commands']['get']('deleteForward');_0x721c3a['enableCommand']('deleteForward',(_0x52ee18,_0x58438b={})=>{const _0x14960e=_0x83c915['model']['createSelection'](_0x83c915['model']['document']['selection']);_0x14960e['isCollapsed']&&_0x83c915['model']['modifySelection'](_0x14960e,{'direction':'forward','unit':_0x58438b['unit']});const _0x5a8397=_0x14960e['getFirstRange'](),_0x37e543=_0x150295['fromRange'](_0x5a8397);let _0xca4565;_0x52ee18(_0x58438b),_0xca4565='$graveyard'==_0x37e543['root']['rootName']?_0x83c915['model']['createRange'](_0x5a8397['start']):_0x83c915['model']['createRange'](_0x37e543['start'],_0x37e543['end']),_0x37e543['detach'](),_0x83c915['model']['enqueueChange'](_0x2f3537['buffer']['batch'],_0x4c0cd4=>{_0x2f3537['buffer']['lock'](),_0x4c0cd4['setSelection'](_0x4c0cd4['createRange'](_0xca4565['end'])),_0x2f3537['buffer']['unlock']();});}),_0x83c915['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x83c915,'merge'),{'priority':'high'}),_0x83c915['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x40e201,_0x353092,_0x19fe37)=>{_0x19fe37['options']['showSuggestionHighlights']&&_e(_0x83c915,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x40e201,_0x353092,_0x19fe37);},{'priority':'high'}),_0x83c915['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x536168,_0x4d03d5,_0x2553bd)=>{const _0x55601f=_0x2553bd['mapper']['markerNameToElements'](_0x4d03d5['markerName']);if(_0x55601f){for(const _0x21bfe8 of _0x55601f)_0x21bfe8['is']('uiElement')&&(_0x2553bd['mapper']['unbindElementFromMarkerName'](_0x21bfe8,_0x4d03d5['markerName']),_0x2553bd['writer']['remove'](_0x21bfe8));}},{'priority':'high'});}}class q extends _0x3cf114{['afterInit'](){const _0x2da4f7=this['editor'];if(!_0x2da4f7['plugins']['has']('ListEditing'))return;const _0x524804=_0x2da4f7['locale'],_0x24abf6=_0x2da4f7['plugins']['get']('TrackChangesEditing'),_0x15e829=_0x2da4f7['plugins']['has']('TodoListEditing'),_0x45931a=!!_0x2da4f7['config']['get']('list.multiBlock');function _0x446f62(_0xc269f6){return{'type':'format','content':''+o(_0x524804,'*Set\x20format:*\x20%0',_0xc269f6)};}function _0x351927(_0x2a2d0e){return{'type':'format','content':''+o(_0x524804,'*Remove\x20format:*\x20%0',_0x2a2d0e)};}_0x24abf6['enableDefaultAttributesIntegration']('numberedList'),_0x24abf6['enableDefaultAttributesIntegration']('bulletedList'),_0x24abf6['enableDefaultAttributesIntegration']('customNumberedList'),_0x24abf6['enableDefaultAttributesIntegration']('customBulletedList'),_0x24abf6['enableDefaultAttributesIntegration']('indentList'),_0x24abf6['enableDefaultAttributesIntegration']('outdentList'),_0x24abf6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x24abf6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x24abf6['registerBlockAttribute']('listItemId'),_0x24abf6['registerBlockAttribute']('listType'),_0x24abf6['registerBlockAttribute']('listIndent'),_0x45931a&&(_0x24abf6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x24abf6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x15e829&&(_0x24abf6['enableDefaultAttributesIntegration']('todoList'),_0x24abf6['enableDefaultAttributesIntegration']('checkTodoList'),_0x24abf6['registerBlockAttribute']('todoListChecked'),_0x24abf6['descriptionFactory']['registerDescriptionCallback'](_0x3fd2ae=>{const {data:_0x39140a}=_0x3fd2ae;if(_0x39140a&&'todoListChecked'==_0x39140a['key'])return{'type':'format','content':_0x39140a['newValue']?o(_0x524804,'*Check\x20item*'):o(_0x524804,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x475582=>{if(_0x475582['batch']['isUndo'])return!0x1;let _0x5c3ed6=!0x1;const _0x4bc5a8=_0x24abf6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e4cb7=>'todoListChecked'===_0x24abf6['_getAttributeKey'](_0x4e4cb7));for(const _0x287500 of _0x4bc5a8){'todo'!=_0x287500['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x24abf6['_findSuggestions'](_0x287500['getFirstRange'](),'attribute')['find'](_0x2467df=>'listType'===_0x24abf6['_getAttributeKey'](_0x2467df['suggestion']))||(_0x475582['removeMarker'](_0x287500['getFirstMarker']()),_0x5c3ed6=!0x0));}return _0x5c3ed6;})),_0x24abf6['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x524804,'FORMAT_INDENT'));const _0x567617={'type':'format','content':''};_0x24abf6['descriptionFactory']['registerDescriptionCallback'](_0x58a163=>{const {data:_0x3c8e0d}=_0x58a163;if(!_0x3c8e0d||'listType'!=_0x3c8e0d['key'])return;let _0x3d17cc=_0x58a163['head'];for(;_0x3d17cc;){if(_0x3d17cc['data']&&(('listStyle'==_0x3d17cc['data']['key']||'listMarkerStyle'==_0x3d17cc['data']['key'])&&(_0x3d17cc['data']['newValue']&&'default'!=_0x3d17cc['data']['newValue']||'default'!=_0x3d17cc['data']['oldValue']&&!_0x3c8e0d['newValue'])||!_0x45931a&&_0x3d17cc['data']['key']==m))return _0x567617;_0x3d17cc=_0x3d17cc['next'];}if(null==_0x3c8e0d['newValue'])switch(_0x3c8e0d['oldValue']){case'bulleted':return _0x351927(o(_0x524804,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x351927(o(_0x524804,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x351927(o(_0x524804,'ELEMENT_TODO_LIST'));}switch(_0x3c8e0d['newValue']){case'bulleted':return _0x446f62(o(_0x524804,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x446f62(o(_0x524804,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x446f62(o(_0x524804,'ELEMENT_TODO_LIST'));}}),_0x24abf6['descriptionFactory']['registerDescriptionCallback'](_0x349d1d=>{const {data:_0x1b4d45}=_0x349d1d;if(_0x1b4d45&&'listIndent'==_0x1b4d45['key'])return null==_0x1b4d45['newValue']||null==_0x1b4d45['oldValue']&&0x0==_0x1b4d45['newValue']?_0x567617:void 0x0;}),_0x24abf6['descriptionFactory']['registerDescriptionCallback'](_0x34ca53=>{if('attribute'!=_0x34ca53['type'])return;const {data:_0x3b135e}=_0x34ca53;if(!_0x3b135e||'listItemId'!=_0x3b135e['key'])return;const _0x46f2c3=le(_0x34ca53);return'newValue'==_0x46f2c3?{'type':'format','content':o(_0x524804,'*Merge:*\x20list\x20item')}:'oldValue'==_0x46f2c3?{'type':'format','content':o(_0x524804,'*Split:*\x20list\x20item')}:_0x567617;}),_0x2da4f7['model']['document']['registerPostFixer'](_0x4858c7=>this['listItemIdFixer'](_0x4858c7)),_0x2da4f7['model']['document']['registerPostFixer'](_0x269495=>this['noTrackChangesFixer'](_0x269495)),_0x2da4f7['model']['document']['on']('change:data',(_0x396be6,_0x2dd439)=>{if(_0x2dd439['isUndo']||!_0x2dd439['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2cfa01){if(_0x2cfa01['batch']['isUndo']||!_0x2cfa01['batch']['isLocal'])return!0x1;let _0xeb3990=!0x1;const _0x57c8f6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e07be=>_0x4e07be['data']&&'listItemId'==_0x4e07be['data']['key'])['filter'](_0x5f063c=>_0x5f063c['data']['newValue']&&_0x5f063c['data']['oldValue']);for(const _0x1da93d of _0x57c8f6)le(_0x1da93d)||(_0x2cfa01['removeMarker'](_0x1da93d['getFirstMarker']()),_0xeb3990=!0x0);return _0xeb3990;}['noTrackChangesFixer'](_0x4494ef){if(_0x4494ef['batch']['isUndo']||!_0x4494ef['batch']['isLocal'])return!0x1;const _0x51ff1a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x51ff1a['trackChangesCommand']['value'])return!0x1;let _0x223fa=!0x1;const _0xd81496=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x37d115=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3f32d6=>'attribute'==_0x3f32d6['type'])['filter'](_0x5b0a48=>_0xd81496['includes'](_0x5b0a48['attributeKey']));if(0x0==_0x37d115['length'])return _0x223fa;for(const _0xdb3cc3 of _0x37d115){const _0x1c0209=_0x51ff1a['_findSuggestions'](_0xdb3cc3['range'],'attribute')['filter'](_0x3ad7c9=>!_0x3ad7c9['meta']['isNextTo'])['map'](_0x30c029=>_0x30c029['suggestion'])['filter'](_0x4536af=>{const _0x22ab34=_0x51ff1a['_getAttributeKey'](_0x4536af);return _0xd81496['includes'](_0x22ab34);});if(_0x1c0209['length']){for(const _0x3bbfa8 of _0x1c0209)_0x4494ef['removeMarker'](_0x3bbfa8['getFirstMarker']());_0x223fa=!0x0;}}return _0x223fa;}['assureChains'](){const _0x509893=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e3427=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x339360;const _0x39111d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5dd83b=>{if(_0x5dd83b['data']['oldRange']||!_0x5dd83b['data']['newRange'])return null;if(!_0x5dd83b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4ecb61}=_0x509893['_splitMarkerName'](_0x5dd83b['name']);if(!_0x509893['hasSuggestion'](_0x4ecb61))return null;const _0x302c50=_0x509893['getSuggestion'](_0x4ecb61);return _0x3e3427['includes'](_0x302c50['data']['key']);})['map'](_0x476d1c=>{const {id:_0x4f5182}=_0x509893['_splitMarkerName'](_0x476d1c['name']),_0x2a3f34=_0x509893['getSuggestion'](_0x4f5182);return _0x339360=_0x2a3f34['attributes']['groupId'],_0x2a3f34['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x39111d['size'])return;const _0x3d8996=_0x509893['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54459e=>'attribute'==_0x54459e['type']&&_0x54459e['data']&&_0x3e3427['includes'](_0x54459e['data']['key'])&&_0x54459e['attributes']['groupId']!=_0x339360)['map'](_0x148ebb=>({'listItem':_0x148ebb['getFirstRange']()['start']['nodeAfter'],'groupId':_0x148ebb['attributes']['groupId']})),_0x1555ad=new Set();for(const {groupId:_0x59ee5e,listItem:_0x37ceb0}of _0x3d8996)_0x39111d['has'](_0x37ceb0)&&_0x1555ad['add'](_0x59ee5e);for(const _0x55cd84 of _0x509893['getSuggestions']())_0x1555ad['has'](_0x55cd84['attributes']['groupId'])&&_0x55cd84['setAttribute']('groupId',_0x339360);}['_supportLegacySuggestions'](){const _0x13fe1b=this['editor'],_0x1f268b=_0x13fe1b['locale'],_0xbfe562=_0x13fe1b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xbfe562['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x51821f,_0x15a516){const _0x438a97=[];for(let _0x2d7a8f of _0x51821f)_0x2d7a8f['start']['nodeAfter']===_0x2d7a8f['end']['parent']&&(_0x2d7a8f=_0x13fe1b['model']['createRange'](_0x13fe1b['model']['createPositionAt'](_0x2d7a8f['start']['nodeAfter'],0x0))),_0x438a97['push'](_0x2d7a8f);_0x13fe1b['model']['change'](_0x164c45=>{const _0x15233a=_0x13fe1b['model']['document']['selection'],_0x30d881=Array['from'](_0x15233a['getRanges']())['map'](_0x2c1223=>_0x150295['fromRange'](_0x2c1223));_0x164c45['setSelection'](_0x438a97),_0x13fe1b['commands']['get'](_0x15a516['commandName'])['refresh'](),_0x15a516['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x13fe1b['execute'](_0x15a516['commandName'],..._0x15a516['commandParams']),_0x164c45['setSelection'](_0x30d881);for(const _0x9a75e5 of _0x30d881)_0x9a75e5['detach']();});}),_0xbfe562['descriptionFactory']['registerElementLabel'](function(_0x4ffdaa){const _0x10d51c=!_0x13fe1b['model']['schema']['isObject'](_0x4ffdaa),_0x25d2fa=_0x4ffdaa['previousSibling'],_0x328b63=_0x4ffdaa['nextSibling'],_0x162c97=_0x4ffdaa['getAttribute']('listItemId'),_0x44e3f9=!_0x25d2fa||_0x25d2fa['getAttribute']('listItemId')!==_0x162c97,_0x32c3de=!_0x328b63||_0x328b63['getAttribute']('listItemId')!==_0x162c97;return _0x10d51c&&Boolean(_0x162c97)&&_0x44e3f9&&_0x32c3de;},_0x501d72=>o(_0x1f268b,'ELEMENT_LIST_ITEM',_0x501d72));}['_registerLegacyDescription'](){const _0x5499ac=this['editor'],_0x265006=_0x5499ac['locale'];function _0x134886(_0x39bcb2){const _0x38cdc5=_0x5499ac['commands']['get']('bulletedList')['value'],_0x224766=_0x5499ac['commands']['get']('numberedList')['value'];return'numberedList'===_0x39bcb2?_0x38cdc5:_0x224766;}_0x5499ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x145a09){if('formatBlock'!=_0x145a09['type'])return;const {data:_0x5394c4}=_0x145a09;if(!_0x5394c4)return;let _0x3ccb1a,_0x47ec2c,_0x35d423,_0xe09b7c;switch(_0x5394c4['commandName']){case'bulletedList':_0x35d423=_0x5394c4['commandParams'][0x0]['forceValue'],_0xe09b7c=_0x134886(_0x5394c4['commandName']),_0x3ccb1a=_0x35d423?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xe09b7c&&_0x5499ac['config']['get']('list.multiBlock')||(_0x3ccb1a='*Change\x20to:*\x20%0'),_0x47ec2c={'type':'format','content':o(_0x265006,_0x3ccb1a,o(_0x265006,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x35d423=_0x5394c4['commandParams'][0x0]['forceValue'],_0xe09b7c=_0x134886(_0x5394c4['commandName']),_0x3ccb1a=_0x35d423?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xe09b7c&&_0x5499ac['config']['get']('list.multiBlock')||(_0x3ccb1a='*Change\x20to:*\x20%0'),_0x47ec2c={'type':'format','content':o(_0x265006,_0x3ccb1a,o(_0x265006,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3ccb1a='*Indent:*\x20%0',_0x47ec2c={'type':'format','content':o(_0x265006,_0x3ccb1a,o(_0x265006,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3ccb1a=function(_0x5c7fe7){const _0x4dc4b9=_0x5c7fe7['getFirstRange']();let _0x4641b0=_0x4dc4b9['start']['nodeAfter'];for(;_0x4641b0&&_0x4dc4b9['containsItem'](_0x4641b0);){if(_0x4641b0['getAttribute']('listIndent')>0x0)return!0x1;_0x4641b0=_0x4641b0['nextSibling'];}return!0x0;}(_0x145a09)?o(_0x265006,'*Format:*\x20remove\x20from\x20%0',o(_0x265006,function(_0xc418e1){return'ELEMENT_'+_0xc418e1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x145a09))):o(_0x265006,'*Outdent:*\x20%0',o(_0x265006,'ELEMENT_LIST_ITEM')),_0x47ec2c={'type':'format','content':_0x3ccb1a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5394c4['multipleBlocks']&&(_0x3ccb1a='*Merge:*\x20%0',_0x47ec2c={'type':'deletion','content':o(_0x265006,_0x3ccb1a,o(_0x265006,'ELEMENT_LIST_ITEM'))});}return _0x47ec2c;});}}function le(_0x48c4d3){let _0x28a496=_0x48c4d3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x28a496;){const _0x14df2e=_0x28a496['getAttribute']('listItemId');if(!_0x14df2e)return!0x1;if(_0x14df2e==_0x48c4d3['data']['newValue'])return'newValue';if(_0x14df2e==_0x48c4d3['data']['oldValue'])return'oldValue';_0x28a496=_0x28a496['previousSibling'];}return!0x1;}class ue extends _0x3cf114{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x548edf=this['editor']['config']['get']('list.properties'),_0x19a8b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x548edf['styles']&&(_0x19a8b5['enableDefaultAttributesIntegration']('listStyle'),_0x19a8b5['registerBlockAttribute']('listStyle')),_0x548edf['reversed']&&(_0x19a8b5['enableDefaultAttributesIntegration']('listReversed'),_0x19a8b5['registerBlockAttribute']('listReversed')),_0x548edf['startIndex']&&(_0x19a8b5['enableDefaultAttributesIntegration']('listStart'),_0x19a8b5['registerBlockAttribute']('listStart'));const _0xc15b01={'type':'format','content':''};_0x19a8b5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x15cf2c=this['editor']['locale'];_0x19a8b5['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x15cf2c,'FORMAT_LIST_REVERSED')),_0x19a8b5['descriptionFactory']['registerDescriptionCallback'](_0x22ceb9=>{const {data:_0xf0dab4}=_0x22ceb9;if(_0xf0dab4&&'listReversed'==_0xf0dab4['key'])return null==_0xf0dab4['newValue']||0x0==_0xf0dab4['newValue']&&null==_0xf0dab4['oldValue']?_0xc15b01:void 0x0;}),_0x19a8b5['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x15cf2c,'FORMAT_LIST_START')),_0x19a8b5['descriptionFactory']['registerDescriptionCallback'](_0x4a8270=>{const {data:_0x3bfb24}=_0x4a8270;if(_0x3bfb24&&'listStart'==_0x3bfb24['key'])return null==_0x3bfb24['newValue']||0x1==_0x3bfb24['newValue']&&null==_0x3bfb24['oldValue']?_0xc15b01:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5530f0=>{if(_0x5530f0['batch']['isUndo'])return!0x1;let _0x5d789b=!0x1;const _0x50a296=_0x19a8b5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58f7e1=>{const _0x5d68df=_0x19a8b5['_getAttributeKey'](_0x58f7e1);return'listStart'==_0x5d68df||'listReversed'==_0x5d68df;});for(const _0x2cf317 of _0x50a296){const _0x1e433b=_0x2cf317['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1e433b||'customNumbered'==_0x1e433b)continue;_0x19a8b5['_findSuggestions'](_0x2cf317['getFirstRange'](),'attribute')['find'](_0x25b271=>'listType'==_0x19a8b5['_getAttributeKey'](_0x25b271['suggestion']))||(_0x5530f0['removeMarker'](_0x2cf317['getFirstMarker']()),_0x5d789b=!0x0);}return _0x5d789b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2bb90f){const _0x3ba914=this['editor']['locale'],{data:_0x357b92}=_0x2bb90f,_0x22d7d={'type':'format','content':''};if(!_0x357b92||'listStyle'!=_0x357b92['key'])return;if(!_0x357b92['oldValue'])return'default'==_0x357b92['newValue']?_0x22d7d:{'type':'format','content':''+o(_0x3ba914,'*Set\x20format:*\x20%0',o(_0x3ba914,this['_getTranslationKeyForListStyle'](_0x357b92['newValue'])))};if(!_0x357b92['newValue']){if('default'==_0x357b92['oldValue'])return _0x22d7d;let _0xa56be1=_0x2bb90f['head'];for(;_0xa56be1;){if(_0xa56be1['data']&&'listType'==_0xa56be1['data']['key']&&_0xa56be1['data']['newValue'])return _0x22d7d;_0xa56be1=_0xa56be1['next'];}return{'type':'format','content':''+o(_0x3ba914,'*Remove\x20format:*\x20%0',o(_0x3ba914,this['_getTranslationKeyForListStyle'](_0x357b92['oldValue'])))};}if('default'!=_0x357b92['newValue'])return{'type':'format','content':''+o(_0x3ba914,'*Set\x20format:*\x20%0',o(_0x3ba914,this['_getTranslationKeyForListStyle'](_0x357b92['newValue'])))};let _0x1fdaba=_0x2bb90f['head'];for(;_0x1fdaba;){if(_0x1fdaba['data']&&'listType'==_0x1fdaba['data']['key']&&_0x1fdaba['data']['newValue']&&_0x1fdaba['data']['oldValue'])return _0x22d7d;_0x1fdaba=_0x1fdaba['next'];}return{'type':'format','content':o(_0x3ba914,'*Set\x20format:*\x20%0',o(_0x3ba914,'ELEMENT_'+_0x2bb90f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x116389=this['editor'],_0x27f9dd=_0x116389['locale'];_0x116389['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ff56b=>{if('formatBlock'!=_0x1ff56b['type'])return;const {data:_0x4159dc}=_0x1ff56b;if(!_0x4159dc)return;let _0x10bbff,_0x215f23;switch(_0x4159dc['commandName']){case'listStyle':_0x10bbff='*Change\x20to:*\x20%0',_0x215f23={'type':'format','content':o(_0x27f9dd,_0x10bbff,o(_0x27f9dd,this['_getTranslationKeyForListStyle'](_0x4159dc['commandParams'][0x0]['type'])))};break;case'listReversed':_0x10bbff=_0x4159dc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x215f23={'type':'format','content':o(_0x27f9dd,_0x10bbff)};break;case'listStart':_0x10bbff='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x215f23={'type':'format','content':o(_0x27f9dd,_0x10bbff,_0x4159dc['commandParams'][0x0]['startIndex'])};}return _0x215f23;});}['_getTranslationKeyForListStyle'](_0x2c3d60){return'ELEMENT_'+function(_0x40c480){if(pe['includes'](_0x40c480))return'bulleted';if(ye['includes'](_0x40c480))return'numbered';return null;}(_0x2c3d60)['toUpperCase']()+'_LIST_'+_0x2c3d60['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class K extends _0x3cf114{static get['requires'](){return[_0x5476d9];}['init'](){const _0x1733c7=this['editor'],_0x3f4449=_0x1733c7['plugins']['get']('TrackChangesEditing'),_0x314700=_0x1733c7['commands']['get']('enter');_0x3f4449['enableCommand']('enter',()=>{_0x1733c7['model']['change'](_0x2cdae9=>{const _0x2f7572=_0x1733c7['model']['document']['selection'],_0x5000b4=_0x2f7572['getFirstPosition'](),_0x535df2=_0x150295['fromRange'](_0x2f7572['getFirstRange']());if(_0x314700['enterBlock'](_0x2cdae9)){const _0x4696b9=_0x1733c7['model']['createPositionAt'](_0x5000b4['parent']['nextSibling'],0x0),_0x28efff=_0x2cdae9['createRange'](_0x5000b4,_0x4696b9);_0x3f4449['markInsertion'](_0x28efff);}else _0x2cdae9['setSelection'](_0x2cdae9['createRange'](_0x535df2['end']));_0x535df2['detach'](),_0x314700['fire']('afterExecute',{'writer':_0x2cdae9});});}),_0x1733c7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1733c7,'split'),{'priority':'high'}),_0x1733c7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5b11b9,_0x1eeade,_0x403d65)=>{const _0x91e54d=_0x403d65['mapper']['markerNameToElements'](_0x1eeade['markerName']);if(_0x91e54d){for(const _0x4bcc43 of _0x91e54d)_0x4bcc43['hasClass']('ck-suggestion-marker-split')&&(_0x403d65['mapper']['unbindElementFromMarkerName'](_0x4bcc43,_0x1eeade['markerName']),_0x403d65['writer']['remove'](_0x4bcc43));}},{'priority':'high'}),_0x1733c7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xe06bf1,_0x910629,_0x3842fd)=>{_0x3842fd['options']['showSuggestionHighlights']&&_e(_0x1733c7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xe06bf1,_0x910629,_0x3842fd);},{'priority':'high'});}}class W extends _0x3cf114{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4158e6=this['editor']['plugins']['get']('TrackChangesEditing');_0x4158e6['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4158e6['enableCommand']('findNext'),_0x4158e6['enableCommand']('findPrevious'),_0x4158e6['enableCommand']('replace'),_0x4158e6['enableCommand']('replaceAll');}['handleFindCommand'](_0x4a8a33,_0x511f7b,_0x59e5fd={}){const _0x383d9a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4a8a33(_0x26b02c=>('string'==typeof _0x511f7b?_0x383d9a['findByTextCallback'](_0x511f7b,_0x59e5fd):_0x511f7b)(_0x26b02c)['filter'](_0x3f96f8=>!0x1===this['_isInDeletionRange'](_0x3f96f8,_0x26b02c['item'])),_0x59e5fd);}['_isInDeletionRange'](_0x68a2fe,_0x179ba8){const _0xd0ca8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x179ba8,_0x68a2fe['start']),this['editor']['model']['createPositionAt'](_0x179ba8,_0x68a2fe['end']));for(const _0x2156ad of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xd0ca8['getIntersection'](_0x2156ad['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 _0x3cf114{['afterInit'](){const _0x1b2e9f=this['editor']['locale'],_0x51e3c3=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2139fd,commandName:_0x5ed351}of ro)this['editor']['plugins']['has'](_0x2139fd)&&(_0x51e3c3['enableDefaultAttributesIntegration'](_0x5ed351),_0x51e3c3['registerInlineAttribute'](_0x5ed351));_0x1b2e9f['t'],_0x51e3c3['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1b2e9f,'FORMAT_FONT_SIZE')),_0x51e3c3['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1b2e9f,'FORMAT_FONT_FAMILY')),_0x51e3c3['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1b2e9f,'FORMAT_FONT_COLOR')),_0x51e3c3['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1b2e9f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf133d8=this['editor'],_0x4454f2=_0xf133d8['locale'];_0xf133d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x193b4f=>{const _0x38d5c8=_0x4454f2['t'];if('formatInline'!=_0x193b4f['type'])return;const {data:_0x1d0a8d}=_0x193b4f;if(null!=_0x1d0a8d){if('fontSize'==_0x1d0a8d['commandName']){const _0xb67b6b=_0x1d0a8d['commandParams'][0x0]['value'];if(_0xb67b6b){const _0x17da8e=_0x38d5c8(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2196c5=>_0x2196c5['model']==_0xb67b6b)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4454f2,'*Set\x20font\x20size:*\x20%0',_0x17da8e)};}return{'type':'format','content':o(_0x4454f2,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1d0a8d['commandName']){const _0x486d44=_0x1d0a8d['commandParams'][0x0]['value'];return _0x486d44?{'type':'format','content':o(_0x4454f2,'*Set\x20font\x20family:*\x20%0',_0x486d44)}:{'type':'format','content':o(_0x4454f2,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1d0a8d['commandName']){const _0x334c6c=_0x1d0a8d['commandParams'][0x0]['value'];if(_0x334c6c){const _0x35bfd8=_0x107a8d(this['editor']['config']['get']('fontColor.colors'))['find'](_0xa93eb9=>_0xa93eb9['model']==_0x334c6c);let _0x15d21a=_0x334c6c,_0x1947c3='';return _0x35bfd8&&(_0x15d21a=_0x35bfd8['label'],_0x1947c3=_0x38d5c8(_0x15d21a)['toLowerCase']()),{'type':'format','content':o(_0x4454f2,'*Set\x20font\x20color:*\x20%0',_0x1947c3)['trim'](),'color':{'value':_0x334c6c,'title':_0x1947c3||_0x15d21a}};}return{'type':'format','content':o(_0x4454f2,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1d0a8d['commandName']){const _0x51173f=_0x1d0a8d['commandParams'][0x0]['value'];if(_0x51173f){const _0x9498de=_0x107a8d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x537962=>_0x537962['model']==_0x51173f);let _0x1f1a33=_0x51173f,_0x11cae8='';return _0x9498de&&(_0x1f1a33=_0x9498de['label'],_0x11cae8=_0x38d5c8(_0x1f1a33)['toLowerCase']()),{'type':'format','content':o(_0x4454f2,'*Set\x20font\x20background\x20color:*\x20%0',_0x11cae8)['trim'](),'color':{'value':_0x51173f,'title':_0x11cae8||_0x1f1a33}};}return{'type':'format','content':o(_0x4454f2,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x3cf114{['afterInit'](){const _0x586362=this['editor'],_0x97ddf8=_0x586362['plugins']['get']('TrackChangesEditing'),_0x4d6006=_0x586362['commands']['get']('copyFormat'),_0x40f48f=_0x586362['commands']['get']('pasteFormat');_0x4d6006&&_0x40f48f&&(_0x97ddf8['enableDefaultAttributesIntegration']('pasteFormat'),_0x97ddf8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5088e=this['editor'],_0x3a7a16=_0x5088e['locale'];_0x5088e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a1a8c=>{if('formatBlock'!=_0x2a1a8c['type']&&'formatInline'!=_0x2a1a8c['type'])return;const {data:_0x1bc16e}=_0x2a1a8c;if(_0x1bc16e&&'pasteFormat'===_0x1bc16e['commandName']){const _0x48399d=[],_0x36ef06=_0x1bc16e['commandParams'][0x0];for(const [_0x383a1d,_0x111258]of Object['entries'](_0x36ef06))_0x48399d['push'](so(_0x5088e,_0x383a1d,_0x111258));return _0x48399d['length']?{'type':'format','content':o(_0x3a7a16,'*Set\x20format\x20to:*\x20%0',_0x48399d['join'](',\x20'))}:{'type':'format','content':o(_0x3a7a16,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1cea80,_0x4e8178,_0x3aebda){const _0x2294ec=_0x1cea80['locale']['t'],_0x2f54f2=_0x4e8178['split'](/(?=[A-Z])/)['join']('\x20'),_0x36bb8c=_0x2294ec(_0x2f54f2['charAt'](0x0)['toUpperCase']()+_0x2f54f2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3aebda)return _0x36bb8c;if('fontColor'===_0x4e8178||'fontBackgroundColor'===_0x4e8178){const _0x5da958=_0x107a8d(_0x1cea80['config']['get']('fontColor.colors'))['find'](_0x35c991=>_0x35c991['model']==_0x3aebda);return _0x36bb8c+'\x20('+(_0x5da958?_0x2294ec(_0x5da958['label'])['toLowerCase']():_0x3aebda)+')';}if('fontSize'===_0x4e8178&&isNaN(parseFloat(_0x3aebda))){const _0x19046d=_0x1cea80['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1cea80['config']['get']('fontSize.options'))['find'](_0x3ac51e=>_0x3ac51e['model']==_0x3aebda);return _0x36bb8c+'\x20('+(_0x19046d?_0x2294ec(_0x19046d['title'])['toLowerCase']():_0x3aebda)+')';}return _0x36bb8c+'\x20('+_0x3aebda+')';}class Y extends _0x3cf114{['_headingOptions'];['afterInit'](){const _0x215d76=this['editor'];if(!_0x215d76['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x215d76['config']['get']('heading.options');const _0x439bd9=_0x215d76['locale'],_0x450c21=_0x215d76['plugins']['get']('TrackChangesEditing');_0x450c21['enableDefaultAttributesIntegration']('heading');for(const _0x4f6945 of this['_headingOptions'])'paragraph'!=_0x4f6945['model']&&_0x450c21['descriptionFactory']['registerElementLabel'](_0x4f6945['model'],_0x9e543=>{const _0x273843=this['_getHeadingLevel'](_0x4f6945['model']);return null!==_0x273843?_0x4d9969(_0x9e543,_0x273843):_0x38198f(_0x9e543,_0x4f6945['title']);});function _0x4d9969(_0x3ba2dd,_0xd7a818){return o(_0x439bd9,'ELEMENT_HEADING',[_0x3ba2dd,_0xd7a818]);}function _0x38198f(_0x292973,_0x3afe2a){return o(_0x439bd9,'ELEMENT_HEADING_CUSTOM',[_0x292973,_0x3afe2a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b7f68=this['editor'],_0x5c3a3c=_0x2b7f68['locale'];function _0x176b44(_0x227043,_0x26f652){return o(_0x5c3a3c,'ELEMENT_HEADING_CUSTOM',[_0x227043,_0x26f652]);}_0x2b7f68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23ff0b=>{if('formatBlock'!=_0x23ff0b['type'])return;const {data:_0x37c74b}=_0x23ff0b;if(_0x37c74b&&'heading'==_0x37c74b['commandName']){const _0x1276a5=_0x37c74b['commandParams'][0x0]['value'],_0xad423=this['_getHeadingLevel'](_0x1276a5);if(null!==_0xad423)return{'type':'format','content':o(_0x5c3a3c,'*Change\x20to:*\x20%0',(_0x8ec63f=0x1,_0x50fcf5=_0xad423,o(_0x5c3a3c,'ELEMENT_HEADING',[_0x8ec63f,_0x50fcf5])))};const _0x8300f1=this['_headingOptions']['find'](_0x3d7fb3=>_0x3d7fb3['model']===_0x1276a5)['title'];return{'type':'format','content':o(_0x5c3a3c,'*Change\x20to:*\x20%0',_0x176b44(0x1,_0x8300f1))};}var _0x8ec63f,_0x50fcf5;});}['_getHeadingLevel'](_0x244e60){const _0x21efd6=_0x244e60['match'](/^heading(\d+)/);if(_0x21efd6)return _0x21efd6[0x1];const _0x10432e=this['_headingOptions']?.['find'](_0x3a34f0=>_0x3a34f0['model']==_0x244e60);if(_0x10432e&&_0x10432e['view']){const _0xdeb55=_0x10432e['view'],_0x347ca2=(_0xdeb55['name']??_0xdeb55)['match'](/^h(\d+)/);if(_0x347ca2)return _0x347ca2[0x1];}return null;}}class Z extends _0x3cf114{['afterInit'](){const _0x34cdf7=this['editor'];if(!_0x34cdf7['plugins']['has']('HighlightEditing'))return;const _0x4c0be5=_0x34cdf7['plugins']['get']('TrackChangesEditing'),_0x5e9a63=_0x34cdf7['locale'];_0x4c0be5['enableDefaultAttributesIntegration']('highlight'),_0x4c0be5['registerInlineAttribute']('highlight'),_0x4c0be5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5e9a63,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51c956=this['editor'],_0x4c7a77=_0x51c956['locale'];_0x51c956['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x129cc3=>{if('formatInline'!=_0x129cc3['type'])return;const {data:_0x4fb741}=_0x129cc3;if(_0x4fb741&&'highlight'==_0x4fb741['commandName']){const _0x3a0039=_0x4c7a77['t'],_0x536c76=_0x4fb741['commandParams'][0x0]['value'];if(_0x536c76){const _0x91f30c=_0x51c956['config']['get']('highlight.options')['find'](_0x391379=>_0x391379['model']==_0x536c76),_0x213cef=_0x3a0039(_0x91f30c['title'])['toLowerCase']();return{'type':'format','content':o(_0x4c7a77,'*Set\x20highlight:*\x20%0',_0x213cef),'color':{'value':_0x91f30c['color'],'title':_0x91f30c['title']}};}return{'type':'format','content':o(_0x4c7a77,'*Remove\x20highlight*',o(_0x4c7a77,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x3cf114{['afterInit'](){const _0x4b7c1e=this['editor'];if(!_0x4b7c1e['plugins']['has']('HorizontalLineEditing'))return;_0x4b7c1e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5853f9=_0x4b7c1e['plugins']['get']('TrackChangesEditing'),_0x2eb4fe=_0x4b7c1e['locale'];_0x5853f9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1794c1=>o(_0x2eb4fe,'ELEMENT_HORIZONTAL_LINE',_0x1794c1)),_0x4b7c1e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3d899e,{writer:_0x91347e,options:_0x4fa654})=>{if(!_0x4fa654['showSuggestionHighlights'])return null;const _0x15956e=_0x91347e['createContainerElement']('div'),_0x4f8b24=_0x91347e['createEmptyElement']('hr');return _0x91347e['addClass']('ck-horizontal-line',_0x15956e),_0x91347e['insert'](_0x91347e['createPositionAt'](_0x15956e,0x0),_0x4f8b24),_0x15956e;},'converterPriority':'high'});}}class et extends _0x3cf114{['afterInit'](){const _0x1fdbf9=this['editor'];if(!_0x1fdbf9['plugins']['has']('HtmlEmbed'))return;const _0xa66142=_0x1fdbf9['plugins']['get']('TrackChangesEditing'),_0x53cdc6=_0x1fdbf9['locale'];_0xa66142['descriptionFactory']['registerElementLabel']('rawHtml',_0x570f42=>o(_0x53cdc6,'ELEMENT_HTML_EMBED',_0x570f42)),_0xa66142['enableDefaultAttributesIntegration']('htmlEmbed'),_0xa66142['registerBlockAttribute']('value'),_0xa66142['descriptionFactory']['registerDescriptionCallback'](_0x53c198=>{if('attribute'!=_0x53c198['type'])return;const {data:_0x46f245}=_0x53c198;if(_0x46f245&&'value'==_0x46f245['key']&&_0x53c198['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1d4c45=o(_0x53cdc6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x53cdc6,'*Change\x20%0\x20content*',_0x1d4c45)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5610ef=this['editor'],_0x7b7647=_0x5610ef['locale'];_0x5610ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20f636=>{if('formatBlock'!=_0x20f636['type'])return;const {data:_0x6e5afa}=_0x20f636;if(_0x6e5afa&&'htmlEmbed'==_0x6e5afa['commandName']){const _0x12ea0d=o(_0x7b7647,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x7b7647,'*Change\x20%0\x20content*',_0x12ea0d)};}});}}class it extends _0x3cf114{['afterInit'](){const _0xf44ffb=this['editor'];if(!_0xf44ffb['plugins']['has']('ImageEditing'))return;const _0x43c768=_0xf44ffb['plugins']['get']('TrackChangesEditing'),_0xbd787e=_0xf44ffb['plugins']['get']('ImageUtils'),_0x2471b7=_0xf44ffb['locale'];_0x43c768['enableCommand']('insertImage'),_0x43c768['descriptionFactory']['registerElementLabel']('imageBlock',_0xa295b6=>o(_0x2471b7,'ELEMENT_IMAGE',_0xa295b6)),_0x43c768['descriptionFactory']['registerElementLabel']('imageInline',_0x1e784e=>o(_0x2471b7,'ELEMENT_INLINE_IMAGE',_0x1e784e)),_0x43c768['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2471b7,'ELEMENT_CAPTION')),_0xf44ffb['plugins']['has']('ImageUploadEditing')&&_0x43c768['enableCommand']('uploadImage'),_0xf44ffb['plugins']['has']('ImageBlockEditing')&&_0xf44ffb['plugins']['has']('ImageInlineEditing')&&(_0x43c768['enableCommand']('imageTypeInline',(_0x9641,_0x4b23af)=>{const _0x56ef0c=_0xbd787e['getClosestSelectedImageElement'](_0xf44ffb['model']['document']['selection']);_0xf44ffb['model']['change'](()=>{_0x43c768['markBlockFormat'](_0x56ef0c,{'commandName':'imageTypeInline','commandParams':[_0x4b23af]},[],'convertBlockImageToInline');});}),_0x43c768['enableCommand']('imageTypeBlock',(_0xdfdb2a,_0x188c49)=>{_0xf44ffb['model']['change'](_0x21648c=>{let _0x985715=_0xbd787e['getClosestSelectedImageElement'](_0xf44ffb['model']['document']['selection']),_0xe44fc3=_0x21648c['createRangeOn'](_0x985715);const _0x1e2893=_0x23a885['fromPosition'](_0xe44fc3['start'],'toPrevious'),_0x345a5b=_0x23a885['fromPosition'](_0xe44fc3['end'],'toNext');_0x43c768['forceDefaultExecution'](()=>_0xdfdb2a(_0x188c49)),_0x985715=_0xbd787e['getClosestSelectedImageElement'](_0xf44ffb['model']['document']['selection']),_0xe44fc3=_0x21648c['createRangeOn'](_0x985715);const _0x40f069=_0x21648c['createRange'](_0x1e2893,_0x345a5b);_0x1e2893['detach'](),_0x345a5b['detach'](),_0x43c768['markBlockFormat'](_0x985715,{'commandName':'imageTypeInline','commandParams':[_0x188c49]},[],'convertInlineImageToBlock'),_0x40f069['start']['isBefore'](_0xe44fc3['start'])&&_0x43c768['markInsertion'](_0x21648c['createRange'](_0x40f069['start'],_0xe44fc3['start']),'convertInlineImageToBlock'),_0xe44fc3['end']['isBefore'](_0x40f069['end'])&&_0x43c768['markInsertion'](_0x21648c['createRange'](_0xe44fc3['end'],_0x40f069['end']),'convertInlineImageToBlock');});}),_0x43c768['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x43c768['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x43c768['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x43c768['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x43c768['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x43c768['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x50f6dd])=>{const _0x14c9bc=_0x43c768['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3abdac=_0x50f6dd['start'],_0x4c6fa3=_0x50f6dd['end'];const _0x4305e6=_0xf44ffb['model']['schema']['getNearestSelectionRange'](_0x3abdac,'backward'),_0x294859=_0xf44ffb['model']['schema']['getNearestSelectionRange'](_0x4c6fa3,'forward');_0x4305e6['isCollapsed']&&(_0x3abdac=_0x4305e6['start']),_0x294859['isCollapsed']&&(_0x4c6fa3=_0x294859['end']),_0x14c9bc([_0xf44ffb['model']['createRange'](_0x3abdac,_0x4c6fa3)]);}),_0x43c768['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x262e54),_0x43c768['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x262e54)),_0xf44ffb['plugins']['has']('ImageCaptionEditing')&&(_0x43c768['enableCommand']('toggleImageCaption',(_0x166a58,_0x4cee65)=>{const _0xb472ab=_0xf44ffb['plugins']['get']('ImageCaptionUtils');let _0x57a41d=_0xbd787e['getClosestSelectedImageElement'](_0xf44ffb['model']['document']['selection']),_0x16118d=_0xb472ab['getCaptionFromImageModelElement'](_0x57a41d);_0xf44ffb['model']['change'](()=>{if(_0x16118d)return void _0x43c768['markDeletion'](_0xf44ffb['model']['createRangeOn'](_0x16118d));const _0x214ca1=_0xbd787e['isBlockImage'](_0x57a41d);_0x166a58(_0x4cee65),_0x57a41d=_0xbd787e['getClosestSelectedImageElement'](_0xf44ffb['model']['document']['selection']),_0x16118d=_0xb472ab['getCaptionFromImageModelElement'](_0x57a41d),_0x43c768['markInsertion'](_0xf44ffb['model']['createRangeOn'](_0x16118d),_0x214ca1?null:'imageCaption');});}),_0x43c768['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x262e54));const _0x218899=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xb60bc7(_0x1bf687,_0x3bb727){const _0x26de7e=_0x218899['findIndex'](({type:_0x472a2e,subType:_0x4e7573})=>_0x1bf687['type']==_0x472a2e&&_0x1bf687['subType']==_0x4e7573),_0x4e4486=_0x218899['findIndex'](({type:_0x69a979,subType:_0x12d713})=>_0x3bb727['type']==_0x69a979&&_0x3bb727['subType']==_0x12d713);if(_0x26de7e<0x0||_0x4e4486<0x0)return!0x1;const _0xc2e1b4=_0x1bf687['getFirstRange'](),_0x2264d8=_0x3bb727['getFirstRange']();if((0x0==_0x26de7e||0x1==_0x26de7e)&&0x2==_0x4e4486&&_0xc2e1b4['isIntersecting'](_0x2264d8))return!0x0;if(0x2==_0x26de7e&&0x3==_0x4e4486){const _0x361f6d=_0x43c768['_findSuggestions'](_0xc2e1b4,'insertion')['filter'](({suggestion:_0x1a60ff,meta:_0x594290})=>_0x594290['isOwn']&&'convertInlineImageToBlock'==_0x1a60ff['subType']);if(_0x361f6d['length']>0x1&&_0x2264d8['end']['isEqual'](_0xc2e1b4['start']))return!0x0;if(0x1==_0x361f6d['length']&&(_0xc2e1b4['start']['isEqual'](_0x2264d8['end'])||_0xc2e1b4['end']['isEqual'](_0x2264d8['start'])))return!0x0;}if(0x3==_0x26de7e&&0x3==_0x4e4486&&_0xc2e1b4['start']['isBefore'](_0x2264d8['start'])){const _0xa1ab30=_0xc2e1b4['end']['nodeAfter'],_0x1c8611=_0x2264d8['start']['nodeBefore'];return _0xbd787e['isBlockImage'](_0xa1ab30)&&_0xa1ab30===_0x1c8611;}return!0x1;}function _0x262e54(_0x5c7f9d,_0x530f7e){return _0xb60bc7(_0x5c7f9d,_0x530f7e)?[_0x5c7f9d,_0x530f7e]:_0xb60bc7(_0x530f7e,_0x5c7f9d)?[_0x530f7e,_0x5c7f9d]:null;}_0xf44ffb['plugins']['has']('ImageResize')&&(_0x43c768['enableDefaultAttributesIntegration']('resizeImage'),_0x43c768['registerBlockAttribute']('resizedWidth'),_0x43c768['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2471b7,'FORMAT_IMAGE_SIZE'))),_0xf44ffb['plugins']['has']('ImageTextAlternativeEditing')&&(_0x43c768['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x43c768['registerBlockAttribute']('alt')),_0x43c768['descriptionFactory']['registerDescriptionCallback'](_0x3a7a17=>{if(!!_0x218899['find'](({type:_0x2c846c,subType:_0x43f69f})=>_0x3a7a17['type']==_0x2c846c&&_0x3a7a17['subType']==_0x43f69f))return _0x3a7a17['previous']?{}:void 0x0;}),_0x43c768['descriptionFactory']['registerDescriptionCallback'](_0x20f035=>{if('insertion'==_0x20f035['type']||'deletion'==_0x20f035['type']){const _0x3ba895=_0x20f035['getContainedElement']();if(_0x3ba895&&_0x3ba895['is']('element','caption'))return{'type':'insertion'==_0x20f035['type']?'addObject':'removeObject','element':_0x3ba895,'quantity':0x1};}}),_0x43c768['descriptionFactory']['registerDescriptionCallback'](_0x309e2b=>'formatBlock'==_0x309e2b['type']&&'convertInlineImageToBlock'==_0x309e2b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x309e2b['type']&&'convertBlockImageToInline'==_0x309e2b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x43c768['descriptionFactory']['registerDescriptionCallback'](_0x1d0eb6=>{if('attribute'!=_0x1d0eb6['type'])return;const {data:_0x96b155}=_0x1d0eb6;if(!_0x96b155||'alt'!=_0x96b155['key'])return;const _0x5a004e=_0x96b155['newValue'];return _0x5a004e?{'type':'format','content':o(_0x2471b7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a004e+'\x22')}:{'type':'format','content':o(_0x2471b7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x417e95=this['editor'],_0x35fdab=_0x417e95['locale'];_0x417e95['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7c043c=>{if('formatBlock'!=_0x7c043c['type']&&'formatInline'!=_0x7c043c['type'])return;const {data:_0x19989f}=_0x7c043c;if(_0x19989f){if('imageTextAlternative'==_0x19989f['commandName']){const _0x233ee5=_0x19989f['commandParams'][0x0]['newValue'];return _0x233ee5?{'type':'format','content':o(_0x35fdab,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x233ee5+'\x22')}:{'type':'format','content':o(_0x35fdab,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x19989f['commandName']){const _0x471ce0=_0x19989f['commandParams'][0x0]['width'];return _0x471ce0?{'type':'format','content':o(_0x35fdab,'*Set\x20image\x20width:*\x20%0',_0x471ce0)}:{'type':'format','content':o(_0x35fdab,'*Reset\x20image\x20width*')};}}});}}class st extends _0x3cf114{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2bc137=this['editor']['locale'],_0x2a10f1=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a10f1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2a10f1['registerBlockAttribute']('src'),_0x2a10f1['descriptionFactory']['registerDescriptionCallback'](_0x2a00b8=>{if('attribute'!=_0x2a00b8['type'])return;const {data:_0x290b3a}=_0x2a00b8;return _0x290b3a&&'src'==_0x290b3a['key']?_0x290b3a['newValue']&&_0x290b3a['oldValue']?{'type':'format','content':o(_0x2bc137,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x141650=this['editor']['plugins']['get']('TrackChangesEditing');_0x141650['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x141650['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x141650['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x141650['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe1d627=this['editor'],_0xeec66d=_0xe1d627['locale'];_0xe1d627['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x375b27=>{if('formatBlock'!=_0x375b27['type']&&'formatInline'!=_0x375b27['type'])return;const {data:_0x5cbc08}=_0x375b27;if(!_0x5cbc08||'replaceImageSource'!=_0x5cbc08['commandName'])return;return{'type':'format','content':o(_0xeec66d,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x3cf114{['afterInit'](){const _0x55bda1=this['editor'];if(!_0x55bda1['plugins']['has']('ImageStyleEditing'))return;const _0x461139=_0x55bda1['plugins']['get']('TrackChangesEditing'),_0x59545c=_0x55bda1['plugins']['get']('ImageUtils'),_0x2e4bba={};_0x461139['enableCommand']('imageStyle',(_0x48c821,_0xe22bfd)=>{const _0x2174cc=_0x55bda1['plugins']['get']('Users')['me'],_0xa71b45=_0x55bda1['commands']['get']('imageStyle');let _0x4b6546=_0x59545c['getClosestSelectedImageElement'](_0x55bda1['model']['document']['selection']),_0x44961d=_0x55bda1['model']['createRangeOn'](_0x4b6546),_0x4a66f9=_0xa71b45['value'];if(_0x4a66f9==_0xe22bfd['value'])return;const _0x5e86d1={'commandName':'imageStyle','commandParams':[_0xe22bfd],'formatGroupId':_0x2dd115()};_0x55bda1['model']['change'](()=>{if(_0x461139['getSuggestions']()['filter'](_0x59300e=>_0x59300e['isInContent']&&_0x2174cc==_0x59300e['author']&&('formatBlock'==_0x59300e['type']||'formatInline'==_0x59300e['type'])&&('imageStylePreApply'==_0x59300e['subType']||'imageStylePostApply'==_0x59300e['subType'])&&_0x59300e['getFirstRange']()['isEqual'](_0x44961d))['forEach'](_0x28f66b=>_0x461139['discardSuggestion'](_0x28f66b['head'])),_0x4b6546=_0x59545c['getClosestSelectedImageElement'](_0x55bda1['model']['document']['selection']),_0x44961d=_0x55bda1['model']['createRangeOn'](_0x4b6546),_0xa71b45['refresh'](),_0x55bda1['commands']['get']('imageTypeInline')['refresh'](),_0x55bda1['commands']['get']('imageTypeBlock')['refresh'](),_0x4a66f9=_0xa71b45['value'],_0x4a66f9!=_0xe22bfd['value'])return _0x59545c['isInlineImage'](_0x4b6546)&&_0xa71b45['shouldConvertImageType'](_0xe22bfd['value'],_0x4b6546)?(_0x48c821({..._0xe22bfd,'setImageSizes':!0x1}),_0x4b6546=_0x59545c['getClosestSelectedImageElement'](_0x55bda1['model']['document']['selection']),void _0x461139['markBlockFormat'](_0x4b6546,{..._0x5e86d1,'commandReversedParams':[{'value':_0x4a66f9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x59545c['isBlockImage'](_0x4b6546)?_0x461139['markBlockFormat'](_0x4b6546,_0x5e86d1,[],'imageStylePostApply'):_0x461139['markInlineFormat'](_0x44961d,_0x5e86d1,'imageStylePostApply'));});});for(const _0xc83125 of _0x55bda1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2e4bba[_0xc83125['name']]=_0xc83125['title']['toLowerCase']();_0x461139['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x461139['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x461139['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x461139['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xb46a21])=>{_0x59545c['setImageNaturalSizeAttributes'](_0xb46a21['getContainedElement']());}),_0x461139['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x30f555,_0x4cfc38)=>{_0x461139['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x30f555,{'commandName':_0x4cfc38['commandName'],'commandParams':_0x4cfc38['commandReversedParams']});}),_0x461139['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x47f672,_0x17a933){if(_0x451ce4(_0x47f672,_0x17a933))return[_0x47f672,_0x17a933];if(_0x451ce4(_0x17a933,_0x47f672))return[_0x17a933,_0x47f672];return null;});const _0x17bf84=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x451ce4(_0x317211,_0x124a92){const _0x449c1e=_0x17bf84['findIndex'](({type:_0x2ba857,subType:_0x5b8221})=>_0x317211['type']==_0x2ba857&&_0x317211['subType']==_0x5b8221),_0x55765d=_0x17bf84['findIndex'](({type:_0x323d04,subType:_0xa26688})=>_0x124a92['type']==_0x323d04&&_0x124a92['subType']==_0xa26688);if(_0x449c1e<0x0||_0x55765d<0x0)return!0x1;const _0x27dbb6=_0x317211['getFirstRange'](),_0x5aa625=_0x124a92['getFirstRange']();if((0x0==_0x449c1e||0x1==_0x449c1e)&&0x2==_0x55765d&&_0x27dbb6['isIntersecting'](_0x5aa625))return!0x0;if(0x2==_0x449c1e&&0x3==_0x55765d){const _0x1b51c7=_0x461139['_findSuggestions'](_0x27dbb6,'insertion')['filter'](({suggestion:_0x1b4e87,meta:_0x3af28d})=>_0x3af28d['isOwn']&&'convertInlineImageToBlock'==_0x1b4e87['subType']);if(_0x1b51c7['length']>0x1&&_0x5aa625['end']['isEqual'](_0x27dbb6['start']))return!0x0;if(0x1==_0x1b51c7['length']&&(_0x27dbb6['start']['isEqual'](_0x5aa625['end'])||_0x27dbb6['end']['isEqual'](_0x5aa625['start'])))return!0x0;}if(0x3==_0x449c1e&&0x3==_0x55765d&&_0x27dbb6['start']['isBefore'](_0x5aa625['start'])){const _0x1778a5=_0x27dbb6['end']['nodeAfter'],_0x1f6021=_0x5aa625['start']['nodeBefore'];return _0x59545c['isBlockImage'](_0x1778a5)&&_0x1778a5===_0x1f6021;}return!0x1;}_0x55bda1['model']['document']['registerPostFixer'](()=>{let _0x4faa65=!0x1;const _0x29ff95=Array['from'](_0x55bda1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34d786,data:_0x141033}of _0x29ff95){const {group:_0xfbf600,type:_0xfce662,subType:_0x43bcfb,id:_0x54a0fe}=_0x461139['_splitMarkerName'](_0x34d786);if('suggestion'==_0xfbf600&&_0x461139['hasSuggestion'](_0x54a0fe)){if('formatBlock'==_0xfce662&&('imageStylePreApply'==_0x43bcfb||'imageStylePostApply'==_0x43bcfb)){const _0x2aa0e6=_0x461139['getSuggestion'](_0x54a0fe);if(_0x141033['newRange']){const _0x1259be=_0x2aa0e6['getFirstRange']()['getContainedElement']();if(_0x59545c['isBlockImage'](_0x1259be))continue;_0x461139['discardSuggestion'](_0x2aa0e6),_0x4faa65=!0x0;}}if('insertion'==_0xfce662&&'imageCaption'==_0x43bcfb&&!_0x141033['newRange']){const _0x256cb3=_0x461139['getSuggestion'](_0x54a0fe);_0x256cb3['next']&&_0x256cb3['next']['isInContent']&&(_0x461139['discardSuggestion'](_0x256cb3['next']),_0x4faa65=!0x0);}}}return _0x4faa65;}),this['_registerLegacyDescription'](_0x2e4bba);}['_registerLegacyDescription'](_0x2d5f55){const _0x13494e=this['editor'],_0x2b95bb=_0x13494e['locale'];_0x13494e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x73d423=>{if('formatBlock'!=_0x73d423['type']&&'formatInline'!=_0x73d423['type'])return;const {data:_0x55f672}=_0x73d423;if(!_0x55f672||'imageStyle'!=_0x55f672['commandName'])return;const _0x4c9f27=_0x55f672['commandParams'][0x0]['value'];return _0x2610c9('side'===_0x4c9f27?o(_0x2b95bb,'FORMAT_SIDE_IMAGE'):_0x2d5f55[_0x4c9f27]||_0x4c9f27);function _0x2610c9(_0x4204c6){return{'type':'format','content':o(_0x2b95bb,'*Format:*\x20%0',_0x4204c6)};}});}}class ot extends _0x3cf114{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x299c3c){super(_0x299c3c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x357bdb=this['editor'],_0x5a9036=_0x357bdb['commands']['get']('importWord'),_0x2089b0=_0x357bdb['commands']['get']('trackChanges');_0x5a9036&&(_0x5a9036['on']('execute',(_0x4f4fb3,[,_0x5dc375])=>{this['_trackChangesValueDuringImport']=_0x2089b0['value'],_0x5dc375['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5a9036,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5a9036,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2089b0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x357bdb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x54a14f,_0x419289){const {suggestions:_0xf48d02}=_0x419289,_0x467865=this['editor']['commands']['get']('trackChanges'),_0x27b1bd=_0x467865['value'];this['_trackChangesValueDuringImport']!==_0x27b1bd&&(_0x467865['execute'](),this['_trackChangesExecuted']=!0x0),_0xf48d02&&_0xf48d02['forEach'](({id:_0x2e979f,type:_0x11a910,author:_0x27c3fb,created_at:_0x206e0e})=>{const _0x2a28a1={'id':_0x2e979f,'type':_0x11a910,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x27c3fb,'createdAt':_0x206e0e?new Date(_0x206e0e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2a28a1);});}}class rt extends _0x3cf114{['afterInit'](){const _0x4b885d=this['editor'],_0xdeeb5f=_0x4b885d['plugins']['get']('TrackChangesEditing');if(_0x4b885d['plugins']['has']('IndentEditing')&&(_0xdeeb5f['enableCommand']('indent'),_0xdeeb5f['enableCommand']('outdent')),_0x4b885d['plugins']['has']('IndentBlock')){for(const _0x29dc81 of['indentBlock','outdentBlock'])_0xdeeb5f['enableDefaultAttributesIntegration'](_0x29dc81);}const _0x57afad=_0x4b885d['locale'];_0xdeeb5f['registerBlockAttribute']('blockIndent'),_0xdeeb5f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x57afad,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b926b=this['editor'],_0x2650fe=_0x3b926b['locale'],_0x349d0d=_0x3b926b['plugins']['get']('TrackChangesEditing');_0x349d0d['descriptionFactory']['registerDescriptionCallback'](_0x57ecbe=>{if('formatBlock'!=_0x57ecbe['type'])return;const {data:_0x447ecd}=_0x57ecbe;if(!_0x447ecd)return;if('indentBlock'!=_0x447ecd['commandName']&&'outdentBlock'!=_0x447ecd['commandName'])return;const _0x2cbfcf=_0x57ecbe['getItems']()[0x0],_0x1d3ffb=_0x349d0d['descriptionFactory']['getItemLabel'](_0x2cbfcf);return'indentBlock'==_0x447ecd['commandName']?{'type':'format','content':o(_0x2650fe,'*Indent:*\x20%0',_0x1d3ffb)}:'outdentBlock'==_0x447ecd['commandName']?{'type':'format','content':o(_0x2650fe,'*Outdent:*\x20%0',_0x1d3ffb)}:void 0x0;});}}class at extends _0x3cf114{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x3cf114{['afterInit'](){const _0x93b706=this['editor'];if(!_0x93b706['plugins']['has']('LinkEditing'))return;const _0x14928e=_0x93b706['plugins']['get']('TrackChangesEditing'),_0x510b2e=_0x93b706['commands']['get']('link');_0x14928e['enableDefaultAttributesIntegration']('link'),_0x14928e['enableDefaultAttributesIntegration']('unlink'),_0x14928e['registerInlineAttribute']('linkHref');for(const _0x588ec8 of _0x510b2e['manualDecorators'])_0x14928e['registerInlineAttribute'](_0x588ec8['id']),_0x14928e['descriptionFactory']['registerAttributeLabel'](_0x588ec8['id'],'link\x20('+_0x588ec8['label']['toLowerCase']()+')');_0x14928e['descriptionFactory']['registerDescriptionCallback'](_0x535394=>{if('attribute'!=_0x535394['type'])return;const {data:_0x167c3c}=_0x535394;if(!_0x167c3c||'linkHref'!=_0x167c3c['key'])return;const _0x4217cf=_0x167c3c['newValue'],_0x295a81=_0x93b706['locale'];return{'type':'format','content':null==_0x4217cf?o(_0x295a81,'*Remove\x20link*'):o(_0x295a81,'*Set\x20link:*\x20%0','\x22'+_0x4217cf+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x362ec0=this['editor'],_0x143815=_0x362ec0['locale'];_0x362ec0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x175f71=>{if('formatInline'!=_0x175f71['type'])return;const {data:_0x367ac2}=_0x175f71;if(_0x367ac2){if('link'==_0x367ac2['commandName']){const _0x55b7e5=_0x367ac2['commandParams'][0x0];return{'type':'format','content':o(_0x143815,'*Set\x20link:*\x20%0','\x22'+_0x55b7e5+'\x22')};}return'unlink'==_0x367ac2['commandName']?{'type':'format','content':o(_0x143815,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x3cf114{['afterInit'](){const _0x494e81=this['editor'],_0x576661=_0x494e81['locale'];if(!_0x494e81['plugins']['has']('LegacyListEditing'))return;const _0x82bdfc=_0x494e81['plugins']['get']('TrackChangesEditing'),_0x4e91ab=_0x494e81['plugins']['has']('LegacyTodoListEditing');function _0x46816c(_0x3ada4b){return()=>{const _0x41c04c=_0x494e81['model']['document']['selection'],_0x3a1046=_0x494e81['commands']['get'](_0x3ada4b);if(_0x3a1046['value'])return void _0x494e81['execute']('paragraph',{});const _0xf8dbb1=_0x3ada4b['slice'](0x0,-0x4),_0x1bacc7=function(_0x525148,_0x3e2eb6,_0x20990b){let _0x819f29=Array['from'](_0x525148)['filter'](_0x1e8a58=>function(_0x56990d,_0x51e30d){return _0x51e30d['checkChild'](_0x56990d['parent'],'listItem')&&!_0x51e30d['isObject'](_0x56990d);}(_0x1e8a58,_0x20990b));_0x819f29=_0x819f29['filter'](_0x15a420=>!_0x15a420['is']('element','listItem')||_0x15a420['getAttribute']('listType')!=_0x3e2eb6);const _0x19f22e=new Set();for(const _0x26c4e8 of _0x819f29)_0x26c4e8['is']('element','listItem')?_0x19f22e['add'](me(_0x26c4e8)):_0x19f22e['add'](_0x26c4e8);return Array['from'](_0x19f22e);}(_0x41c04c['getSelectedBlocks'](),_0xf8dbb1,_0x494e81['model']['schema']);_0x494e81['model']['change'](()=>{for(const _0x35a2fb of _0x1bacc7)_0x82bdfc['markBlockFormat'](_0x35a2fb,{'commandName':_0x3ada4b,'commandParams':[{'forceValue':!_0x3a1046['value']}],'formatGroupId':'blockName'},fe(_0x35a2fb));});};}function _0x517f39(_0x388d16){return()=>{const _0x514744=function(_0x44ca4c){let _0x55d20b=Array['from'](_0x44ca4c);const _0x4e9a91=_0x55d20b['findIndex'](_0x48718a=>'listItem'!=_0x48718a['name']);return _0x4e9a91>-0x1&&(_0x55d20b=_0x55d20b['slice'](0x0,_0x4e9a91)),_0x55d20b;}(_0x494e81['model']['document']['selection']['getSelectedBlocks']()),_0xa3aab9=_0x494e81['model']['createRange'](_0x494e81['model']['createPositionAt'](_0x514744[0x0],'before'),_0x494e81['model']['createPositionAt'](_0x514744[_0x514744['length']-0x1],'end'));_0x494e81['model']['change'](()=>{_0x82bdfc['markBlockFormat'](_0xa3aab9,{'commandName':_0x388d16,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1eefa9){const _0x20a59d=new Set();for(const _0x3d0597 of _0x1eefa9){let _0x1509f0=_0x3d0597['nextSibling'];for(;_0x1509f0&&_0x1509f0['getAttribute']('listIndent')>_0x3d0597['getAttribute']('listIndent');)_0x20a59d['add'](_0x1509f0),_0x1509f0=_0x1509f0['nextSibling'];}return Array['from'](_0x20a59d);}(_0x514744));});};}_0x82bdfc['enableCommand']('numberedList',_0x46816c('numberedList')),_0x82bdfc['enableCommand']('bulletedList',_0x46816c('bulletedList')),_0x4e91ab&&_0x82bdfc['enableCommand']('todoList',_0x46816c('todoList')),_0x82bdfc['enableCommand']('indentList',_0x517f39('indentList')),_0x82bdfc['enableCommand']('outdentList',_0x517f39('outdentList')),_0x4e91ab&&_0x82bdfc['enableCommand']('checkTodoList',()=>{const _0x8e3339=_0x494e81['commands']['get']('checkTodoList'),_0xe64bd5=Array['from'](_0x8e3339['_selectedElements']);_0xe64bd5['filter'](_0x6963e7=>_0x6963e7['getAttribute']('todoListChecked')!=_0x8e3339['value']),_0x494e81['model']['change'](()=>{for(const _0x5b9f87 of _0xe64bd5)_0x82bdfc['markBlockFormat'](_0x5b9f87,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x8e3339['value']}]});});}),_0x82bdfc['descriptionFactory']['registerElementLabel']('listItem',_0x5d8935=>o(_0x576661,'ELEMENT_LIST_ITEM',_0x5d8935)),_0x82bdfc['descriptionFactory']['registerDescriptionCallback'](_0x2041d6=>{if('formatBlock'!=_0x2041d6['type']&&'formatInline'!=_0x2041d6['type'])return;const {data:_0x1109d8}=_0x2041d6;if(_0x1109d8){if('numberedList'==_0x1109d8['commandName']||'bulletedList'==_0x1109d8['commandName']||'todoList'==_0x1109d8['commandName'])switch(_0x1109d8['commandName']['replace']('List','')){case'bulleted':return _0x20515a(o(_0x576661,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x20515a(o(_0x576661,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x20515a(o(_0x576661,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1109d8['commandName'])return{'type':'format','content':o(_0x576661,'*Indent:*\x20%0',o(_0x576661,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1109d8['commandName'])return{'type':'format','content':o(_0x576661,'*Outdent:*\x20%0',o(_0x576661,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1109d8['commandName'])return _0x1109d8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x576661,'*Check\x20item*')}:{'type':'format','content':o(_0x576661,'*Uncheck\x20item*')};}function _0x20515a(_0x1e8eed){return{'type':'format','content':o(_0x576661,'*Change\x20to:*\x20%0',_0x1e8eed)};}});}}function me(_0x1426d0){const _0x1a7d8c=_0x1426d0['getAttribute']('listIndent');if(0x0==_0x1a7d8c)return _0x1426d0;let _0x537c5f=_0x1426d0;for(;_0x1426d0['previousSibling']&&_0x1426d0['previousSibling']['is']('element','listItem');){const _0x40da20=_0x1426d0['previousSibling']['getAttribute']('listIndent');if(_0x40da20==_0x1a7d8c)_0x537c5f=_0x1426d0['previousSibling'];else{if(_0x40da20<_0x1a7d8c)break;}_0x1426d0=_0x1426d0['previousSibling'];}return _0x537c5f;}function fe(_0x55c2d7){const _0x3f2665=[];if(_0x55c2d7['is']('element','listItem')&&_0x55c2d7['getAttribute']('listIndent')>0x0){let _0x39424a=_0x55c2d7['nextSibling'];for(;_0x39424a&&'listItem'==_0x39424a['name']&&_0x39424a['getAttribute']('listIndent')==_0x55c2d7['getAttribute']('listIndent');)_0x3f2665['push'](_0x39424a),_0x39424a=_0x39424a['nextSibling'];}return _0x3f2665;}class z extends _0x3cf114{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2941e6=this['editor']['config']['get']('list.properties'),_0x326b91=this['editor']['plugins']['get']('TrackChangesEditing');_0x2941e6['styles']&&_0x326b91['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2941e6['reversed']&&_0x326b91['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2941e6['startIndex']&&_0x326b91['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x326b91['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x56b063,_0x148d4e={}){const _0x552042=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a84c9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x552042['markMultiRangeBlockFormat'](_0x4a84c9,{'commandName':'listStyle','commandParams':[{'type':_0x148d4e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xe51152,_0x154670={}){const _0xe31946=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58f55a=this['_getSuggestionBlocks'](_0xce8adc=>_0xce8adc['is']('element','listItem')&&'numbered'===_0xce8adc['getAttribute']('listType'));if(_0x58f55a['length']<0x1)return;const _0x5639f2=_0x58f55a['map'](_0x3172ea=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3172ea,'before'),this['editor']['model']['createPositionAt'](_0x3172ea,0x0)));this['editor']['model']['change'](()=>{_0xe31946['markMultiRangeBlockFormat'](_0x5639f2,{'commandName':'listReversed','commandParams':[{'reversed':_0x154670['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xc10e38,_0x253e82={}){const _0x2de8a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ed54b=this['_getSuggestionBlocks'](_0x9ef9bc=>_0x9ef9bc['is']('element','listItem')&&'numbered'===_0x9ef9bc['getAttribute']('listType'));if(_0x5ed54b['length']<0x1)return;const _0x168dcc=_0x5ed54b['map'](_0x413db4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x413db4,'before'),this['editor']['model']['createPositionAt'](_0x413db4,0x0)));this['editor']['model']['change'](()=>{_0x2de8a0['markMultiRangeBlockFormat'](_0x168dcc,{'commandName':'listStart','commandParams':[{'startIndex':_0x253e82['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x34f8f9){if('formatBlock'!=_0x34f8f9['type']&&'formatInline'!=_0x34f8f9['type'])return;const _0x57ebd9=this['editor']['locale'],{data:_0x52d0b8}=_0x34f8f9;if(!_0x52d0b8)return;let _0x3f441b,_0x3c0c00;switch(_0x52d0b8['commandName']){case'listStyle':_0x3f441b='*Change\x20to:*\x20%0',_0x3c0c00={'type':'format','content':o(_0x57ebd9,_0x3f441b,o(_0x57ebd9,this['_getTranslationKeyForListStyle'](_0x52d0b8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3f441b=_0x52d0b8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3c0c00={'type':'format','content':o(_0x57ebd9,_0x3f441b)};break;case'listStart':_0x3f441b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3c0c00={'type':'format','content':o(_0x57ebd9,_0x3f441b,_0x52d0b8['commandParams'][0x0]['startIndex'])};}return _0x3c0c00;}['_getSuggestionBlocksForListStyle'](){const _0x44d529=this['editor']['plugins']['get']('LegacyListUtils');let _0x781e2b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x781e2b[0x0]?.['is']('element','listItem')&&_0x781e2b['unshift'](..._0x44d529['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x781e2b[_0x781e2b['length']-0x1]?.['is']('element','listItem')&&_0x781e2b['push'](..._0x44d529['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x781e2b=[...new Set(_0x781e2b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x781e2b=_0x781e2b['filter'](_0x140095=>_0x140095['is']('element','listItem'))),_0x781e2b;}['_getSuggestionBlocks'](_0x3c1bcd){const _0x24d4f9=this['editor']['plugins']['get']('LegacyListUtils');let _0x30292f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3c1bcd)['map'](_0x289482=>{const _0x25c361=this['editor']['model']['createPositionAt'](_0x289482,0x0);return[..._0x24d4f9['getSiblingNodes'](_0x25c361,'backward'),..._0x24d4f9['getSiblingNodes'](_0x25c361,'forward')];})['flat']();return _0x30292f=[...new Set(_0x30292f)],_0x30292f;}['_getTranslationKeyForListStyle'](_0x122b3f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x122b3f)||'default')['toUpperCase']()+'_LIST_'+_0x122b3f['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x3cf114{['afterInit'](){const _0x268a1b=this['editor'];if(!_0x268a1b['plugins']['has']('MediaEmbedEditing'))return;const _0x56a28b=_0x268a1b['plugins']['get']('TrackChangesEditing'),_0x25d155=_0x268a1b['locale'];_0x56a28b['enableCommand']('mediaEmbed'),_0x56a28b['descriptionFactory']['registerElementLabel']('media',_0x14f7a5=>o(_0x25d155,'ELEMENT_MEDIA',_0x14f7a5)),_0x268a1b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x271d6b,{writer:_0x19d89f,options:_0x2db713})=>{if(_0x2db713['showSuggestionHighlights'])return _0x19d89f['createEmptyElement']('div');},'converterPriority':'high'}),_0x268a1b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x27dcba,_0x13d620,_0x41b04a)=>{_0x41b04a['options']['showSuggestionHighlights']&&_0x27dcba['stop']();},{'priority':'high'});}}class gt extends _0x3cf114{['afterInit'](){const _0x57fcd5=this['editor'];_0x57fcd5['plugins']['has']('MentionEditing')&&_0x57fcd5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x3cf114{['afterInit'](){const _0x5e309b=this['editor'],_0x537ddc=_0x5e309b['plugins']['get']('TrackChangesEditing');_0x5e309b['plugins']['has']('MultiLevelList')&&(_0x537ddc['enableDefaultAttributesIntegration']('multiLevelList'),_0x537ddc['registerBlockAttribute']('listMarkerStyle'),_0x537ddc['descriptionFactory']['registerDescriptionCallback'](_0x59740=>this['handleDescriptions'](_0x59740)));}['handleDescriptions'](_0x4749c3){const _0x2ad310=this['editor']['locale'],{data:_0x30415a}=_0x4749c3,_0x2e4f2f={'type':'format','content':''};if(_0x30415a&&'listMarkerStyle'==_0x30415a['key']){if(!_0x30415a['oldValue'])return{'type':'format','content':o(_0x2ad310,'*Set\x20format:*\x20%0',o(_0x2ad310,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x30415a['newValue']+')'};if(!_0x30415a['newValue']){let _0x57f78d=_0x4749c3['head'];for(;_0x57f78d;){if(_0x57f78d['data']&&'listType'==_0x57f78d['data']['key']&&_0x57f78d['data']['newValue'])return _0x2e4f2f;_0x57f78d=_0x57f78d['next'];}return{'type':'format','content':o(_0x2ad310,'*Remove\x20format:*\x20%0',o(_0x2ad310,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x30415a['oldValue']+')'};}}}}class mt extends _0x3cf114{['afterInit'](){const _0x5ce95d=this['editor'];if(!_0x5ce95d['plugins']['has']('PageBreakEditing'))return;_0x5ce95d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x497b3a=_0x5ce95d['plugins']['get']('TrackChangesEditing'),_0x1a7e82=_0x5ce95d['locale'];_0x497b3a['descriptionFactory']['registerElementLabel']('pageBreak',_0x1937ae=>o(_0x1a7e82,'ELEMENT_PAGE_BREAK',_0x1937ae));}}class dt extends _0x3cf114{['afterInit'](){const _0xe35022=this['editor'];if(!_0xe35022['plugins']['has']('Paragraph'))return;const _0x37b3b8=_0xe35022['locale'],_0x4b615b=_0xe35022['plugins']['get']('TrackChangesEditing');_0x4b615b['descriptionFactory']['registerElementLabel']('paragraph',_0x454b69=>o(_0x37b3b8,'ELEMENT_PARAGRAPH',_0x454b69)),_0x4b615b['enableDefaultAttributesIntegration']('paragraph'),_0x4b615b['enableCommand']('insertParagraph'),_0xe35022['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xe35022),{'priority':'highest'}),_0xe35022['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15ab7d,_0x318829,_0x5b7372)=>{_0x5b7372['options']['showSuggestionHighlights']&&nr(_0xe35022,{'showActiveMarker':!0x1})(_0x15ab7d,_0x318829,_0x5b7372);},{'priority':'highest'});const _0x20492a=_0x4b615b['descriptionFactory'];_0x20492a['registerDescriptionCallback'](_0x3347b1=>{if('insertion'!==_0x3347b1['type'])return;const {start:_0x55f4ab,end:_0x464e14}=_0x3347b1['getFirstRange']();if(!_0x55f4ab['isTouching'](_0x464e14)||!_0x55f4ab['nodeAfter'])return;const _0x1c1455=_0xe35022['model']['schema'],_0x2aa5bd=_0x55f4ab['nodeAfter'];return _0x1c1455['isBlock'](_0x2aa5bd)&&!_0x1c1455['isLimit'](_0x2aa5bd)&&_0x1c1455['checkChild'](_0x2aa5bd,'$text')?{'type':'insertion','content':o(_0x37b3b8,'*Insert:*\x20%0',_0x20492a['getItemLabel'](_0x2aa5bd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x208889=this['editor'],_0x3362b1=_0x208889['locale'];_0x208889['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38e431=>{if('formatBlock'!=_0x38e431['type'])return;const {data:_0x241484}=_0x38e431;return _0x241484&&'paragraph'==_0x241484['commandName']?{'type':'format','content':o(_0x3362b1,'*Change\x20to:*\x20%0',o(_0x3362b1,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3000b6,{showActiveMarker:_0x508aea=!0x0}={}){return(_0x4bb8a6,_0x4220ae,_0x39544a)=>{const _0x4c6974=_0x3000b6['plugins']['get']('TrackChangesEditing'),_0x38e50d=_0x4220ae['markerRange']['start'],_0x42a1e7=_0x4220ae['markerRange']['end'],_0x1b3307=_0x3000b6['model']['schema'];if(!_0x38e50d['isTouching'](_0x42a1e7)||!_0x38e50d['nodeAfter'])return;const _0x1acd1e=_0x38e50d['nodeAfter'];if(_0x1b3307['isBlock'](_0x1acd1e)&&!_0x1b3307['isLimit'](_0x1acd1e)&&_0x1b3307['checkChild'](_0x1acd1e,'$text')){if(!_0x39544a['consumable']['consume'](_0x4220ae['markerRange'],_0x4bb8a6['name']))return;const _0x4aa87b=_0x39544a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x1d4606=_0x39544a['mapper']['toViewPosition'](_0x42a1e7);_0x508aea&&_0x4c6974['activeMarkers']['includes'](_0x4220ae['markerName'])&&_0x39544a['writer']['addClass']('ck-suggestion-marker--active',_0x4aa87b),_0x39544a['writer']['insert'](_0x1d4606,_0x4aa87b),_0x39544a['mapper']['bindElementToMarker'](_0x4aa87b,_0x4220ae['markerName']);}};}class pt extends _0x3cf114{['afterInit'](){const _0x259834=this['editor'];if(!_0x259834['plugins']['has']('RemoveFormatEditing'))return;_0x259834['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ebcb0=this['editor'];_0x1ebcb0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a74c8=>{if('formatBlock'!=_0x1a74c8['type']&&'formatInline'!=_0x1a74c8['type'])return;const {data:_0x49f405}=_0x1a74c8;return _0x49f405&&'removeFormat'==_0x49f405['commandName']?{'type':'format','content':o(_0x1ebcb0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x3cf114{['afterInit'](){const _0xb808c=this['editor'];if(!_0xb808c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4d7b8e=_0xb808c['plugins']['get']('TrackChangesEditing');_0x4d7b8e['enableCommand']('goToPreviousRestrictedEditingException'),_0x4d7b8e['enableCommand']('goToNextRestrictedEditingException');const _0x270883=_0xb808c['plugins']['get']('RestrictedEditingModeEditing');_0x270883['enableCommand']('trackChanges'),_0x270883['enableCommand']('acceptSuggestion'),_0x270883['enableCommand']('discardSuggestion'),_0x270883['enableCommand']('acceptAllSuggestions'),_0x270883['enableCommand']('discardAllSuggestions'),_0x270883['enableCommand']('acceptSelectedSuggestions'),_0x270883['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x3cf114{static get['requires'](){return[_0x4ea829];}['init'](){const _0x521358=this['editor'],_0x4639e0=_0x521358['plugins']['get']('TrackChangesEditing');_0x4639e0['enableCommand']('shiftEnter'),_0x521358['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x521358),{'priority':'high'}),_0x521358['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x521358),{'priority':'high'}),_0x521358['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x341b3e,_0xd48088,_0x16586a)=>{_0x16586a['options']['showSuggestionHighlights']&&de(_0x521358,{'showActiveMarker':!0x1})(_0x341b3e,_0xd48088,_0x16586a);}),_0x4639e0['descriptionFactory']['registerElementLabel']('softBreak',_0x15f408=>o(_0x521358['locale'],'ELEMENT_LINE_BREAK',_0x15f408));}}function de(_0x33c7ff,{showActiveMarker:_0x2103eb=!0x0}={}){return(_0x4ec7a4,_0x340e41,_0x32ad2c)=>{const _0x13cf17=_0x33c7ff['plugins']['get']('TrackChangesEditing');if(!_0x32ad2c['consumable']['test'](_0x340e41['markerRange'],_0x4ec7a4['name']))return;const _0x53b84f=_0x33c7ff['model'];for(const _0x42cccc of _0x340e41['markerRange']['getItems']()){if(!_0x42cccc['is']('element','softBreak'))continue;const _0x33ae6e='deletion'==_0x340e41['markerName']['split'](':')[0x1]?'merge':'split',_0x125de0=_0x32ad2c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33ae6e}),_0x1e1841=_0x32ad2c['mapper']['toViewPosition'](_0x53b84f['createPositionBefore'](_0x42cccc));_0x2103eb&&_0x13cf17['activeMarkers']['includes'](_0x340e41['markerName'])&&_0x32ad2c['writer']['addClass']('ck-suggestion-marker--active',_0x125de0),_0x32ad2c['writer']['insert'](_0x1e1841,_0x125de0),_0x32ad2c['mapper']['bindElementToMarker'](_0x125de0,_0x340e41['markerName']);}};}class wt extends _0x3cf114{['afterInit'](){const _0x3b9c57=this['editor'],_0x5aad15=_0x3b9c57['model'],_0x13e0dd=_0x3b9c57['locale'];if(!_0x3b9c57['plugins']['has']('StandardEditingModeEditing'))return;const _0x53a180=_0x3b9c57['plugins']['get']('TrackChangesEditing'),_0x363f5e='restrictedEditingException',_0x23c67e=_0x3b9c57['commands']['get'](_0x363f5e);_0x53a180['enableCommand'](_0x363f5e,(_0x9862fc,_0x1a6f79={})=>{const _0x17cc82=_0x5aad15['document']['selection'];if(_0x17cc82['isCollapsed'])return void _0x9862fc(_0x1a6f79);const _0x504d3e=void 0x0!==_0x1a6f79['forceValue']?_0x1a6f79['forceValue']:!_0x23c67e['value'];_0x5aad15['change'](()=>{const _0x40d09b=Array['from'](_0x17cc82['getRanges']());for(const _0x2db0c5 of _0x40d09b){const _0x338e3f=_0x504d3e?[_0x2db0c5]:io(_0x363f5e,_0x2db0c5,_0x5aad15);for(const _0x59c5e4 of _0x338e3f)_0x53a180['markInlineFormat'](_0x59c5e4,{'commandName':_0x363f5e,'commandParams':[{'forceValue':_0x504d3e}]});}});}),_0x53a180['descriptionFactory']['registerDescriptionCallback'](_0x304674=>{if('formatBlock'!=_0x304674['type']&&'formatInline'!=_0x304674['type'])return;const {data:_0x2ce9a9}=_0x304674;return _0x2ce9a9&&_0x2ce9a9['commandName']==_0x363f5e?_0x2ce9a9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x13e0dd,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x13e0dd,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x3cf114{['afterInit'](){const _0x416ee8=this['editor'];if(!_0x416ee8['plugins']['has']('Style')||!_0x416ee8['plugins']['has']('DataSchema'))return;const _0x57679b=_0x416ee8['plugins']['get']('TrackChangesEditing'),_0x17d8b4=_0x416ee8['locale'],_0x5751a9=_0x416ee8['config']['get']('style')||{},_0x871754=_0x416ee8['plugins']['get']('GeneralHtmlSupport'),_0x16833a=_0x416ee8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x416ee8['plugins']['get']('DataSchema'),_0x5751a9['definitions']);_0x57679b['enableDefaultAttributesIntegration']('style');const _0x662407=new Set();for(const _0xc102be of _0x16833a['block']){const _0x26242c=_0x871754['getGhsAttributeNameForElement'](_0xc102be['element']);_0x662407['add'](_0x26242c);}const _0x16e6d0=new Set();for(const _0xc3c2a3 of _0x16833a['inline']){const _0x399983=_0x871754['getGhsAttributeNameForElement'](_0xc3c2a3['element']);_0x16e6d0['add'](_0x399983);for(const _0x55cf57 of _0xc3c2a3['ghsAttributes'])_0x16e6d0['add'](_0x55cf57);}for(const _0x5d6473 of _0x662407)_0x57679b['registerBlockAttribute'](_0x5d6473),_0x57679b['descriptionFactory']['registerAttributeLabel'](_0x5d6473,o(_0x17d8b4,'FORMAT_STYLE'));for(const _0x1dd60f of _0x16e6d0)_0x57679b['registerInlineAttribute'](_0x1dd60f),_0x57679b['descriptionFactory']['registerAttributeLabel'](_0x1dd60f,o(_0x17d8b4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f266b=this['editor'],_0x2d60a4=_0x1f266b['locale'];_0x1f266b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33d69c=>{if('formatBlock'!=_0x33d69c['type']&&'formatInline'!=_0x33d69c['type'])return;const {data:_0x1ed38b}=_0x33d69c;return _0x1ed38b&&'style'===_0x1ed38b['commandName']?_0x1ed38b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2d60a4,'*Set\x20format:*\x20%0',_0x1ed38b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2d60a4,'*Remove\x20format:*\x20%0',_0x1ed38b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x3cf114{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x9184be){super(_0x9184be),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x197264=this['editor'],_0x2a0b79=_0x197264['model']['document']['selection'];if(!_0x197264['plugins']['has']('TableEditing'))return;const _0x506f08=_0x197264['locale'],_0x2707a5=_0x197264['plugins']['get']('TrackChangesEditing'),_0x3e3123=_0x197264['plugins']['get']('TableUtils');_0x2707a5['descriptionFactory']['registerElementLabel']('table',_0x286698=>o(_0x506f08,'ELEMENT_TABLE',_0x286698)),this['_setupColumnsRowsFixing'](),_0x2707a5['enableCommand']('insertTable'),_0x2707a5['enableCommand']('selectTableRow'),_0x2707a5['enableCommand']('selectTableColumn');for(const _0x1a6b31 of['insertTableRowAbove','insertTableRowBelow']){const _0x5db402=_0x197264['commands']['get'](_0x1a6b31);_0x2707a5['enableCommand'](_0x1a6b31,_0x3a9933=>{_0x197264['model']['change'](_0x3177d0=>{_0x3a9933();const _0x314d2c='above'===_0x5db402['order'],_0x19a042=_0x3e3123['getSelectionAffectedTableCells'](_0x2a0b79),_0x4b15c6=_0x3e3123['getRowIndexes'](_0x19a042),_0x3af9b8=_0x314d2c?_0x4b15c6['first']-0x1:_0x4b15c6['last']+0x1,_0x49ab67=_0x19a042[0x0]['findAncestor']('table'),_0x1ca902=_0x3e3123['createTableWalker'](_0x49ab67,{'startRow':_0x3af9b8,'endRow':_0x3af9b8}),_0x2ccf28=Array['from'](_0x1ca902)['map'](_0x12d89e=>_0x3177d0['createRangeOn'](_0x12d89e['cell']));_0x2707a5['markMultiRangeInsertion'](_0x2ccf28,'tableRow');});});}for(const _0x42206f of['insertTableColumnLeft','insertTableColumnRight']){const _0x118618=_0x197264['commands']['get'](_0x42206f);_0x2707a5['enableCommand'](_0x42206f,_0x1d1f0f=>{_0x197264['model']['change'](_0x373345=>{_0x1d1f0f();const _0x58eb88='left'===_0x118618['order'],_0x1141c7=_0x3e3123['getSelectionAffectedTableCells'](_0x2a0b79),_0x1a38d4=_0x3e3123['getColumnIndexes'](_0x1141c7),_0x8ff5d6=_0x58eb88?_0x1a38d4['first']-0x1:_0x1a38d4['last']+0x1,_0xe89e34=_0x1141c7[0x0]['findAncestor']('table'),_0x59b58c=_0x3e3123['createTableWalker'](_0xe89e34,{'startRow':0x0,'column':_0x8ff5d6,'includeAllSlots':!0x1}),_0x381102=Array['from'](_0x59b58c)['map'](_0x5b7b13=>_0x373345['createRangeOn'](_0x5b7b13['cell']));_0x2707a5['markMultiRangeInsertion'](_0x381102,'tableColumn');});});}for(const _0x997ad6 of['removeTableRow','removeTableColumn']){const _0x341c06=_0x997ad6['substr'](0xb),_0x2880fe=_0x341c06['toLowerCase'](),_0x3c9bc6=_0x2880fe['substr'](0x0,0x3)+'span',_0x4acf9b='table'+_0x341c06,_0x38136c='min'+_0x341c06,_0x46cf6b='max'+_0x341c06;_0x2707a5['enableCommand'](_0x997ad6,()=>{_0x197264['model']['change'](_0x27a997=>{const _0x203f2e=_0x3e3123['getSelectionAffectedTableCells'](_0x2a0b79),_0x2b630d=_0x203f2e[0x0]['findAncestor']('table');let _0x229292;if('removeTableRow'==_0x997ad6){const _0x3b9ed3=_0x3e3123['getRowIndexes'](_0x203f2e);_0x229292={'startRow':_0x3b9ed3['first'],'endRow':_0x3b9ed3['last'],'includeAllSlots':!0x0};}else{const _0x50aeb2=_0x3e3123['getColumnIndexes'](_0x203f2e);_0x229292={'startColumn':_0x50aeb2['first'],'endColumn':_0x50aeb2['last'],'includeAllSlots':!0x0};}const _0x42f4ae=_0x3e3123['createTableWalker'](_0x2b630d,_0x229292),_0x27541a=Array['from'](_0x42f4ae)['map'](({cell:_0x559af3})=>_0x559af3),_0xcd418e=Ee(_0x27541a['filter'](_0x4a26d1=>_0x4a26d1['hasAttribute'](_0x3c9bc6))),_0x177404=Ee(_0x27541a['filter'](_0x2eae84=>!_0x2eae84['hasAttribute'](_0x3c9bc6)))['map'](_0x4ab437=>_0x27a997['createRangeOn'](_0x4ab437)),_0x12dd7a=_0x2707a5['markMultiRangeDeletion'](_0x177404,_0x4acf9b);if(_0x12dd7a&&('tableRow'==_0x12dd7a['subType']||'tableColumn'==_0x12dd7a['subType'])){const _0x53bd04=this['_getSuggestionCoords'](_0x12dd7a);for(const _0xf129dc of _0xcd418e){const _0x5a003a=_0x27a997['createRangeOn'](_0xf129dc),_0x45bf3c=_0x3e3123['getCellLocation'](_0xf129dc),_0x3316ec=_0xf129dc['getAttribute'](_0x3c9bc6)-0x1,_0x685233=_0x53bd04[_0x38136c],_0x2da7b9=_0x53bd04[_0x46cf6b];_0x685233<=_0x45bf3c[_0x2880fe]&&_0x45bf3c[_0x2880fe]+_0x3316ec<=_0x2da7b9&&_0x12dd7a['addRange'](_0x5a003a);}}});});}function _0x54a168(_0x5900d1){const _0x13471e=Array['from'](_0x2a0b79['getRanges']())['map'](_0x454923=>_0x150295['fromRange'](_0x454923));_0x197264['model']['change'](_0x1e7b47=>{const _0x2264a7=_0x1e7b47['batch'];_0x5900d1=_0x5900d1['filter'](_0x45cbdd=>'$graveyard'!=_0x45cbdd['root']['rootName']),_0x1e7b47['setSelection'](_0x5900d1),_0x197264['commands']['get']('removeTableRow')['refresh'](),_0x197264['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x197264['model']['enqueueChange'](()=>{_0x197264['model']['enqueueChange'](_0x2264a7,_0x442587=>{const _0x289b76=_0x13471e['filter'](_0x33c8d3=>'$graveyard'!=_0x33c8d3['root']['rootName']);_0x289b76['length']>0x0&&_0x442587['setSelection'](_0x289b76);for(const _0x4483b5 of _0x13471e)_0x4483b5['detach']();});});});}function _0x3c3d6a(_0x1ee6c8){_0x197264['model']['change'](_0x5aa7c9=>{const _0x12de87=Array['from'](_0x2a0b79['getRanges']())['map'](_0x25529a=>_0x150295['fromRange'](_0x25529a)),_0xdfed1d=[];for(const _0x29177f of _0x1ee6c8)for(const _0x5c46fd of _0x29177f['getItems']({'shallow':!0x0}))_0xdfed1d['push'](_0x5c46fd);for(const _0x417eb8 of _0xdfed1d)'$graveyard'!=_0x417eb8['root']['rootName']&&(_0x5aa7c9['setSelection'](_0x5aa7c9['createPositionAt'](_0x417eb8,0x0)),_0x197264['commands']['get']('removeTableColumn')['refresh'](),_0x197264['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4382f6=_0x12de87['filter'](_0x4ebd46=>'$graveyard'!=_0x4ebd46['root']['rootName']);_0x4382f6['length']>0x0&&_0x5aa7c9['setSelection'](_0x4382f6);for(const _0x56359 of _0x12de87)_0x56359['detach']();});}function _0x3ea10b(_0x5df6d8,_0x59366b){return _0x59366b['every'](_0x31c930=>_0x5df6d8['some'](_0x30340b=>_0x30340b['end']['isEqual'](_0x31c930['start'])||_0x31c930['end']['isEqual'](_0x30340b['start'])));}function _0x19f89d(_0x2be4d4,_0x4801d0){return!_0x2be4d4['some'](_0x594648=>_0x4801d0['some'](_0x5d7645=>_0x594648['isIntersecting'](_0x5d7645)))&&_0x2be4d4['some'](_0x1dcfab=>_0x4801d0['some'](_0x5bae67=>_0x1dcfab['end']['isTouching'](_0x5bae67['start'])));}_0x197264['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x7680fe,_0x50b8ce,_0x1eaa13)=>{if(!_0x1eaa13['options']['showSuggestionHighlights'])return;const _0x2fa34e=_0x50b8ce['item'];if(!_0x2fa34e)return;const _0x265ef4=_0x1eaa13['mapper']['toViewElement'](_0x2fa34e);function _0x55a704(_0x5a1208){return Array['isArray'](_0x5a1208)?_0x5a1208:[_0x5a1208];}_0x265ef4&&'tableCell'===_0x2fa34e['name']&&_0x233cfd(_0x265ef4,_0x1eaa13['writer'],(_0x34a486,_0x3cc1b3,_0x324eb6)=>_0x324eb6['addClass'](_0x55a704(_0x3cc1b3['classes']),_0x34a486),(_0x45ffa1,_0x302339,_0x125de6)=>_0x125de6['removeClass'](_0x55a704(_0x302339['classes']),_0x45ffa1));},{'priority':'highest'}),_0x2707a5['descriptionFactory']['registerDescriptionCallback'](_0x14120d=>{if('insertion'!=_0x14120d['type']&&'deletion'!=_0x14120d['type'])return;const _0xcd679=_0x14120d['getContainedElement']();if(null!=_0xcd679&&_0xcd679['is']('element','table')){if('insertion'==_0x14120d['type']){const _0x576aec=_0x14120d['getItems']()['filter'](_0x510b47=>_0x510b47['is']('$textProxy'))['map'](_0x465105=>_0x465105['data']);if(_0x576aec['length'])return{'type':'insertion','content':o(_0x506f08,'*Insert:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x576aec['join']('\x20')+'\x22'))};}if('deletion'==_0x14120d['type']){const _0x7025a9=_0x14120d['getItems']()['filter'](_0x38039c=>_0x38039c['is']('$textProxy'))['map'](_0x2d4a4b=>_0x2d4a4b['data']);if(_0x7025a9['length'])return{'type':'deletion','content':o(_0x506f08,'*Remove:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x7025a9['join']('\x20')+'\x22'))};}}}),_0x2707a5['descriptionFactory']['registerDescriptionCallback'](_0x5c579b=>{if('tableRow'==_0x5c579b['subType']){const _0x48fc23=_0x5c579b['getItems']()['filter'](_0x9b0655=>_0x9b0655['is']('$textProxy'))['map'](_0x38670f=>_0x38670f['data']),_0x2bd097=this['_getSuggestionCoords'](_0x5c579b),_0x1e8a0f=_0x2bd097['maxRow']-_0x2bd097['minRow']+0x1;if('insertion'==_0x5c579b['type'])return _0x48fc23['length']?{'type':'insertion','content':o(_0x506f08,'*Insert:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1e8a0f,'\x22'+_0x48fc23['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x506f08,'*Insert:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_ROW',_0x1e8a0f))};if('deletion'==_0x5c579b['type'])return _0x48fc23['length']?{'type':'deletion','content':o(_0x506f08,'*Remove:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1e8a0f,'\x22'+_0x48fc23['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x506f08,'*Remove:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_ROW',_0x1e8a0f))};}if('tableColumn'==_0x5c579b['subType']){const _0x5e79f2=_0x5c579b['getItems']()['filter'](_0x4115e1=>_0x4115e1['is']('$textProxy'))['map'](_0x295de8=>_0x295de8['data']),_0x3dba96=this['_getSuggestionCoords'](_0x5c579b),_0x257c2e=_0x3dba96['maxColumn']-_0x3dba96['minColumn']+0x1;if('insertion'==_0x5c579b['type'])return _0x5e79f2['length']?{'type':'insertion','content':o(_0x506f08,'*Insert:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x257c2e,'\x22'+_0x5e79f2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x506f08,'*Insert:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_COLUMN',_0x257c2e))};if('deletion'==_0x5c579b['type'])return _0x5e79f2['length']?{'type':'deletion','content':o(_0x506f08,'*Remove:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x257c2e,'\x22'+_0x5e79f2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x506f08,'*Remove:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_COLUMN',_0x257c2e))};}}),_0x2707a5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x54a168),_0x2707a5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x54a168),_0x2707a5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3c3d6a),_0x2707a5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3c3d6a),_0x2707a5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3ea10b),_0x2707a5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3ea10b),_0x2707a5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x19f89d),_0x2707a5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x19f89d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3a5b93=this['editor'],_0x185250=_0x3a5b93['model']['document']['selection'];return(_0x981216,_0x4d12cf)=>{_0x3a5b93['model']['change'](_0x4efab9=>{const {commandName:_0x11ed9f,commandParams:_0x3628de}=_0x4d12cf;let _0x449846=_0x981216[0x0]['end']['nodeBefore'];_0x3628de&&_0x3628de[0x0]&&!0x1===_0x3628de[0x0]['forceValue']&&(_0x449846=_0x981216[0x0]['start']['nodeAfter']);const _0x5a2953=_0x4efab9['createRangeIn'](_0x449846);if('$graveyard'==_0x5a2953['root']['rootName'])return;const _0x1fa23f=Array['from'](_0x185250['getRanges']())['map'](_0x2b9533=>_0x150295['fromRange'](_0x2b9533));_0x4efab9['setSelection'](_0x5a2953),_0x3a5b93['commands']['get'](_0x11ed9f)['refresh'](),_0x3628de['push']({'forceDefaultExecution':!0x0}),_0x3a5b93['execute'](_0x11ed9f,..._0x3628de);const _0x4bfec6=_0x1fa23f['filter'](_0x1c1414=>'$graveyard'!=_0x1c1414['root']['rootName']);_0x4bfec6['length']>0x0&&_0x4efab9['setSelection'](_0x4bfec6);for(const _0x214daa of _0x1fa23f)_0x214daa['detach']();});};}['_getCoordsForCells'](_0x443eb3){const _0x57aa03=this['editor']['plugins']['get']('TableUtils');let _0x6e0757=Number['MAX_SAFE_INTEGER'],_0x188f19=Number['MIN_SAFE_INTEGER'],_0x248c7d=Number['MAX_SAFE_INTEGER'],_0x351ec7=Number['MIN_SAFE_INTEGER'];for(const _0x282e35 of _0x443eb3){if('$graveyard'==_0x282e35['root']['rootName'])continue;const {row:_0x44bd9f,column:_0x86cb9b}=_0x57aa03['getCellLocation'](_0x282e35),_0x3f4c62=_0x282e35['hasAttribute']('rowspan')?_0x282e35['getAttribute']('rowspan')-0x1:0x0,_0x4ca2e9=_0x282e35['hasAttribute']('colspan')?_0x282e35['getAttribute']('colspan')-0x1:0x0;_0x6e0757=_0x44bd9f<_0x6e0757?_0x44bd9f:_0x6e0757,_0x188f19=_0x44bd9f+_0x3f4c62>_0x188f19?_0x44bd9f+_0x3f4c62:_0x188f19,_0x248c7d=_0x86cb9b<_0x248c7d?_0x86cb9b:_0x248c7d,_0x351ec7=_0x86cb9b+_0x4ca2e9>_0x351ec7?_0x86cb9b+_0x4ca2e9:_0x351ec7;}return{'minRow':_0x6e0757,'maxRow':_0x188f19,'minColumn':_0x248c7d,'maxColumn':_0x351ec7};}['_setupColumnsRowsFixing'](){const _0x453b71=this['editor'],_0x41971c=_0x453b71['plugins']['get']('TrackChangesEditing'),_0x5e4690=_0x453b71['plugins']['get']('TableUtils');_0x453b71['model']['document']['on']('change:data',()=>{const _0xdada53=Array['from'](_0x453b71['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8349d9,data:_0x1a1707}of _0xdada53){const {group:_0x2c97f1,id:_0x19d98a,subType:_0x4375ff}=_0x41971c['_splitMarkerName'](_0x8349d9);if('suggestion'!=_0x2c97f1)continue;if(null!=_0x1a1707['oldRange'])continue;const _0x328f9c=_0x41971c['getSuggestion'](_0x19d98a);this['_tablePostFixingSubtypes']['includes'](_0x4375ff)&&this['_tableSuggestions']['add'](_0x328f9c);}},{'priority':'low'});const _0x2188cc=(_0x408a01,_0x20c5d7)=>{let _0x3ff874=!0x1;const _0x40cbba=_0x20c5d7['createRangeOn'](_0x408a01),_0x3b9e39=_0x408a01['findAncestor']('table'),_0x3fa687=_0x5e4690['getCellLocation'](_0x408a01);for(const _0x83b4e9 of this['_tableSuggestions']){const _0x22c2f9=_0x83b4e9['subType'],_0x3c7a33=_0x22c2f9['startsWith']('tablePaste'),_0x57c903=_0x22c2f9['substr'](_0x3c7a33?0xa:0x5),_0x4adae4=_0x57c903['toLowerCase'](),_0x294b4b=_0x4adae4['substr'](0x0,0x3)+'span',_0xdccc37='min'+_0x57c903,_0x3bf201='max'+_0x57c903;if(!_0x83b4e9['isInContent'])continue;if(_0x3b9e39!=_0x83b4e9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x83b4e9['isIntersectingWithRange'](_0x40cbba))continue;const _0x27be6e=_0x408a01['hasAttribute'](_0x294b4b)?_0x408a01['getAttribute'](_0x294b4b)-0x1:0x0,_0x1ca786=this['_getSuggestionCoords'](_0x83b4e9),_0x29a7c0=_0x1ca786[_0xdccc37],_0x3117d1=_0x1ca786[_0x3bf201];_0x29a7c0<=_0x3fa687[_0x4adae4]&&_0x3fa687[_0x4adae4]+_0x27be6e<=_0x3117d1&&(_0x83b4e9['addRange'](_0x40cbba),_0x3ff874=!0x0);}return _0x3ff874;};_0x453b71['model']['document']['registerPostFixer'](_0x217493=>{let _0x45287a=!0x1;for(const _0x35b82e of _0x453b71['model']['document']['differ']['getChanges']())if('insert'==_0x35b82e['type']){if('tableRow'==_0x35b82e['name']){for(const _0x4e8fe1 of _0x35b82e['position']['nodeAfter']['getChildren']())_0x45287a=_0x45287a||_0x2188cc(_0x4e8fe1,_0x217493);}else'tableCell'==_0x35b82e['name']&&(_0x45287a=_0x45287a||_0x2188cc(_0x35b82e['position']['nodeAfter'],_0x217493));}return _0x45287a;});}['_getSuggestionCoords'](_0x4c7466){return this['_getCoordsForCells'](_0x4c7466['getRanges']()['map'](_0x52a6d3=>_0x52a6d3['start']['nodeAfter']));}}function Ee(_0x27b6c9){return Array['from'](new Set(_0x27b6c9)['values']());}class St extends _0x3cf114{static get['requires'](){return[jt];}['afterInit'](){const _0x4b3bd1=this['editor'],_0x9cd46a=_0x4b3bd1['model']['document']['selection'],_0xc1b928=_0x4b3bd1['locale'];if(!_0x4b3bd1['plugins']['has']('TableEditing'))return;const _0x5db7e0=_0x4b3bd1['plugins']['get']('TrackChangesEditing'),_0xd0d6ef=_0x4b3bd1['plugins']['get']('TableUtils'),_0x4da732=_0x4b3bd1['plugins']['get'](jt);_0x4da732['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5db7e0['enableCommand']('mergeTableCells',()=>{const _0x36ae5d=_0xd0d6ef['getSelectionAffectedTableCells'](_0x4b3bd1['model']['document']['selection']);_0x4b3bd1['model']['change'](()=>{_0x5db7e0['markMultiRangeBlockFormat'](_0x36ae5d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4b3bd1['commands']['get']('mergeTableCells')['on']('execute',(_0x46fdea,_0x323673)=>{_0x4b3bd1['commands']['get']('trackChanges')['value']&&(_0x323673['length']>0x0&&_0x323673[_0x323673['length']-0x1]&&_0x323673[_0x323673['length']-0x1]['forceDefaultExecution']||_0x5db7e0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x46fdea['stop']());},{'priority':'highest'});for(const _0x25ccbc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2580b4=_0x4b3bd1['commands']['get'](_0x25ccbc);_0x5db7e0['enableCommand'](_0x25ccbc,()=>{const _0x44d235=_0x4b3bd1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x42c96a=>_0x42c96a['is']('element','tableCell')),_0x2d57a7=_0x2580b4['value'];_0x4b3bd1['model']['change'](()=>{_0x5db7e0['markMultiRangeBlockFormat']([_0x44d235,_0x2d57a7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3af77e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4c0c90=_0x4b3bd1['commands']['get'](_0x3af77e);_0x5db7e0['enableCommand'](_0x3af77e,()=>{const _0x49e423=_0xd0d6ef['getSelectionAffectedTableCells'](_0x4b3bd1['model']['document']['selection'])[0x0],_0x5ef72b=_0x49e423['findAncestor']('table'),{column:_0xb22f70,row:_0x1121d8}=_0xd0d6ef['getCellLocation'](_0x49e423);let _0x999802=[];if('horizontally'==_0x4c0c90['direction']){const _0x262450=_0xd0d6ef['createTableWalker'](_0x5ef72b,{'startRow':_0x1121d8,'endRow':_0x1121d8,'includeAllSlots':!0x0});_0x999802=Array['from'](_0x262450)['map'](_0x30afb6=>_0x30afb6['cell']);}else{const _0x329e99=_0xd0d6ef['createTableWalker'](_0x5ef72b,{'column':_0xb22f70,'includeAllSlots':!0x0});_0x999802=Array['from'](_0x329e99)['map'](_0x297114=>_0x297114['cell']);}_0x4b3bd1['model']['change'](_0x30bbd6=>{_0x5db7e0['markBlockFormat'](_0x30bbd6['createRangeOn'](_0x49e423),{'commandName':_0x3af77e,'commandParams':[]},_0x999802,_0x3af77e);});});}_0x5db7e0['descriptionFactory']['registerDescriptionCallback'](_0xc51461=>{if('formatBlock'!=_0xc51461['type']&&'formatInline'!=_0xc51461['type'])return;const {data:_0x56c4a1}=_0xc51461;return _0x56c4a1&&'mergeTableCells'==_0x56c4a1['commandName']?{'type':'format','content':o(_0xc1b928,'*Merge\x20cells*')}:void 0x0;}),_0x5db7e0['descriptionFactory']['registerDescriptionCallback'](_0x4b526e=>{if('formatBlock'!=_0x4b526e['type']&&'formatInline'!=_0x4b526e['type'])return;const {data:_0x4d48cf}=_0x4b526e;return _0x4d48cf?'splitTableCellVertically'==_0x4d48cf['commandName']?{'type':'format','content':o(_0xc1b928,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4d48cf['commandName']?{'type':'format','content':o(_0xc1b928,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2e89bc=_0x4da732['_acceptFormatSuggestionCallbackFactory']();for(const _0x21d3eb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5db7e0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x21d3eb,'accept',_0x2e89bc);for(const _0x5c05be of['splitTableCellVertically','splitTableCellHorizontally'])_0x5db7e0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5c05be,'accept',_0x2e89bc);_0x5db7e0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x19bf28=>{_0x4b3bd1['model']['change'](_0x3c02ba=>{const _0x48c136=Array['from'](_0x9cd46a['getRanges']())['map'](_0x38cd74=>_0x150295['fromRange'](_0x38cd74));_0x3c02ba['setSelection'](_0x19bf28),_0x4b3bd1['commands']['get']('mergeTableCells')['refresh'](),_0x4b3bd1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3db99b=_0x48c136['filter'](_0x56cb4d=>'$graveyard'!=_0x56cb4d['root']['rootName']);_0x3db99b['length']>0x0&&_0x3c02ba['setSelection'](_0x3db99b);for(const _0x56e018 of _0x48c136)_0x56e018['detach']();});});for(const _0x371404 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x427301=_0x4b3bd1['commands']['get'](_0x371404);_0x427301['on']('set:isEnabled',(_0x5dfa64,_0x149a22,_0xc6f7d9)=>{if(_0xc6f7d9){const _0x1e4003=_0x4b3bd1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x421220=>_0x421220['is']('element','tableCell'));this['_areMergableCells'](_0x427301['value'],_0x1e4003)||(_0x5dfa64['return']=!0x1,_0x5dfa64['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3092dc=this['editor']['commands']['get']('mergeTableCells'),_0x542e8a=this['editor']['plugins']['get']('TableUtils');if(!_0x3092dc['isEnabled'])return!0x1;const _0x18cc5d=_0x542e8a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x30ea3c of _0x18cc5d)for(const _0x2c128d of _0x18cc5d)if(_0x30ea3c!=_0x2c128d&&!this['_areMergableCells'](_0x30ea3c,_0x2c128d))return!0x1;return!0x0;}['_areMergableCells'](_0x5e5190,_0x15acd7){const _0x251ac8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x548225=this['editor']['model']['createRangeOn'](_0x5e5190),_0x4243d9=this['editor']['model']['createRangeOn'](_0x15acd7),_0x54b2ee=new Set(),_0x1ceb3c=new Set();for(const _0x2f9844 of _0x251ac8['getSuggestions']())if(('insertion'==_0x2f9844['type']||'deletion'==_0x2f9844['type']||'mergeTableCells'==_0x2f9844['subType'])&&_0x2f9844['isInContent']){for(const _0x2c279e of _0x2f9844['getRanges']())_0x2c279e['containsRange'](_0x548225,!0x0)&&_0x54b2ee['add'](_0x2f9844['type']+':'+_0x2f9844['author']['id']),_0x2c279e['containsRange'](_0x4243d9,!0x0)&&_0x1ceb3c['add'](_0x2f9844['type']+':'+_0x2f9844['author']['id']);}if(_0x54b2ee['size']!=_0x1ceb3c['size'])return!0x1;for(const _0x424421 of _0x54b2ee)if(!_0x1ceb3c['has'](_0x424421))return!0x1;return!0x0;}}class At extends _0x3cf114{static get['requires'](){return[jt];}['afterInit'](){const _0x48fc85=this['editor'];if(!_0x48fc85['plugins']['has']('TableEditing'))return;const _0x3c126b=_0x48fc85['locale'],_0x2a00c6=_0x48fc85['plugins']['get']('TrackChangesEditing');_0x2a00c6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2a00c6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2a00c6['registerBlockAttribute']('headingRows'),_0x2a00c6['registerBlockAttribute']('headingColumns'),_0x2a00c6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3c126b,'FORMAT_HEADER_ROW')),_0x2a00c6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3c126b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2083f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19360d=this['editor']['plugins']['get']('TableUtils'),_0x3a63f4=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x1466cd({showActiveMarker:_0x243110=!0x0,setDataAttribute:_0x55440a=!0x0}={}){return(_0x124cec,_0x701ae8,_0x3a0ce0)=>{const {type:_0x3d6a90,id:_0x23ee8f}=_0x2083f['_splitMarkerName'](_0x701ae8['markerName']),_0x2fb233=_0x2083f['getSuggestion'](_0x23ee8f),_0x2f0a3e=_0x2fb233['data'];if('formatBlock'!=_0x2fb233['type']||!_0x2f0a3e||'setTableColumnHeader'!=_0x2f0a3e['commandName'])return;if(_0x701ae8['item'])return void _0x124cec['stop']();if(!_0x3a0ce0['consumable']['consume'](_0x701ae8['markerRange'],_0x124cec['name']))return;const _0x41b5a6=_0x701ae8['markerRange']['start']['nodeAfter'],_0x72fc5c=_0x701ae8['markerRange']['end']['nodeBefore'],_0x2acee6=_0x41b5a6['parent']['parent'],{column:_0x4ef435}=_0x19360d['getCellLocation'](_0x41b5a6),{column:_0x526cf9}=_0x19360d['getCellLocation'](_0x72fc5c);for(let _0x254d86=_0x4ef435;_0x254d86<=_0x526cf9;_0x254d86++){const _0x519fea=_0x19360d['createTableWalker'](_0x2acee6,{'column':_0x254d86,'includeAllSlots':!0x1});for(const _0x34bfdc of _0x519fea){const _0x3c55da=_0x34bfdc['cell'],_0x4e3a1b=_0x3a0ce0['mapper']['toViewElement'](_0x3c55da);_0x3a0ce0['writer']['addClass']('ck-suggestion-marker-'+_0x3d6a90,_0x4e3a1b),_0x55440a&&_0x3a0ce0['writer']['setAttribute']('data-suggestion',_0x23ee8f,_0x4e3a1b),_0x3a0ce0['mapper']['bindElementToMarker'](_0x4e3a1b,_0x701ae8['markerName']),_0x243110&&(_0x2083f['activeMarkers']['includes'](_0x701ae8['markerName'])?_0x3a0ce0['writer']['addClass']('ck-suggestion-marker--active',_0x4e3a1b):_0x3a0ce0['writer']['removeClass']('ck-suggestion-marker--active',_0x4e3a1b));}}};}_0x2083f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3a63f4),_0x2083f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3a63f4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1466cd(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x297553,_0x4e7b6e,_0x426e5e)=>{_0x426e5e['options']['showSuggestionHighlights']&&_0x1466cd({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x297553,_0x4e7b6e,_0x426e5e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xfee740,_0x122b46,_0x4ec567)=>{const {type:_0x27defd,id:_0x4e2492}=_0x2083f['_splitMarkerName'](_0x122b46['markerName']),_0x2225a6=_0x2083f['getSuggestion'](_0x4e2492),_0x156de9=_0x2225a6['data'];if('formatBlock'!=_0x2225a6['type']||!_0x156de9||'setTableColumnHeader'!=_0x156de9['commandName'])return;const _0x5c451a=_0x4ec567['mapper']['markerNameToElements'](_0x122b46['markerName']);if(_0x5c451a){for(const _0x3e4a87 of _0x5c451a)_0x4ec567['writer']['removeClass']('ck-suggestion-marker-'+_0x27defd,_0x3e4a87),_0x4ec567['writer']['removeClass']('ck-suggestion-marker--active',_0x3e4a87),_0x4ec567['writer']['removeAttribute']('data-suggestion',_0x3e4a87),_0x4ec567['mapper']['unbindElementFromMarkerName'](_0x3e4a87,_0x122b46['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f555d=this['editor'],_0x5b522e=_0x3f555d['locale'];function _0x52ce41(_0x210247){return{'type':'format','content':o(_0x5b522e,'*Format:*\x20%0',_0x210247)};}_0x3f555d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40d31d=>{if('formatBlock'!=_0x40d31d['type'])return;const {data:_0x11eded}=_0x40d31d;if(_0x11eded){if('setTableRowHeader'==_0x11eded['commandName']){const _0xb663c8=_0x11eded['commandParams'][0x0]['forceValue'];return _0x52ce41(o(_0x5b522e,_0xb663c8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x11eded['commandName']){const _0x593399=_0x11eded['commandParams'][0x0]['forceValue'];return _0x52ce41(o(_0x5b522e,_0x593399?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0xef6774=>[_0xef6774,null]));class It extends _0x3cf114{static get['requires'](){return[jt];}['afterInit'](){const _0x3971c6=this['editor'];if(!_0x3971c6['plugins']['has']('TableClipboard'))return;const _0x16cfbd=_0x3971c6['plugins']['get']('TrackChangesEditing'),_0x17a8d2=_0x3971c6['plugins']['get']('TableUtils'),_0x2d9b8c=_0x3971c6['plugins']['get'](jt),_0x21a710=_0x3971c6['plugins']['get']('TableClipboard');_0x2d9b8c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3971c6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3971c6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4834e4=null;_0x3971c6['model']['on']('insertContent',(_0x81b908,_0x20a2fb)=>{const [_0x56c817,_0x2b26d7]=_0x20a2fb,_0x11ac2e=_0x20a2fb[_0x20a2fb['length']-0x1];_0x11ac2e&&_0x11ac2e['forceDefaultExecution']||_0x16cfbd['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x156791,_0x23b8c7,_0x6459d0,_0x4d0b07,_0x28b29d){if(_0x23b8c7&&!_0x23b8c7['is']('documentSelection'))return!0x1;const _0x4c9702=_0x28b29d['getTableIfOnlyTableInContent'](_0x156791,_0x6459d0);if(!_0x4c9702||!he(_0x4c9702,void 0x0,_0x4d0b07))return!0x1;const _0x30f2a8=_0x4d0b07['getSelectionAffectedTableCells'](_0x6459d0['document']['selection']);if(!_0x30f2a8['length'])return!0x1;const _0x28b912=_0x30f2a8[0x0]['findAncestor']('table'),_0x2f8829=_0x4d0b07['getRowIndexes'](_0x30f2a8),_0x518c28=_0x4d0b07['getColumnIndexes'](_0x30f2a8),_0x8dcd04={'startRow':_0x2f8829['first'],'endRow':_0x2f8829['last'],'startColumn':_0x518c28['first'],'endColumn':_0x518c28['last']};return 0x1==_0x30f2a8['length']&&(_0x8dcd04['endRow']+=_0x4d0b07['getRows'](_0x4c9702)-0x1,_0x8dcd04['endColumn']+=_0x4d0b07['getColumns'](_0x4c9702)-0x1),he(_0x28b912,_0x8dcd04,_0x4d0b07);}(_0x56c817,_0x2b26d7,_0x3971c6['model'],_0x17a8d2,_0x21a710)&&(_0x81b908['stop'](),_0x4834e4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3971c6['model']['change'](()=>{_0x3971c6['model']['insertContent'](_0x20a2fb[0x0],_0x20a2fb[0x1],_0x20a2fb[0x2],{'forceDefaultExecution':!0x0});const _0x1f8c25=_0x2dd115(),{rowInsertionRanges:_0x15cec8,columnInsertionRanges:_0x1a8f9d,insertionRanges:_0x5c9120,deletionRanges:_0x4129d8,cells:_0x42c1f9}=_0x4834e4;_0x15cec8['length']&&_0x16cfbd['markMultiRangeInsertion'](_0x15cec8,'tablePasteRow',{'tablePasteChainId':_0x1f8c25}),_0x1a8f9d['length']&&_0x16cfbd['markMultiRangeInsertion'](_0x1a8f9d,'tablePasteColumn',{'tablePasteChainId':_0x1f8c25}),_0x5c9120['length']&&(_0x16cfbd['markMultiRangeInsertion'](_0x5c9120,'tablePaste',{'tablePasteChainId':_0x1f8c25,'skipNestingCheck':!0x0}),_0x5c9120['forEach'](_0x385b40=>_0x385b40['detach']?.())),_0x4129d8['length']&&(_0x16cfbd['markMultiRangeDeletion'](_0x4129d8,'tablePaste',{'tablePasteChainId':_0x1f8c25,'skipNestingCheck':!0x0}),_0x4129d8['forEach'](_0x42c876=>_0x42c876['detach']?.()));const _0x125c83=_0x16cfbd['markMultiRangeBlockFormat'](_0x42c1f9['map'](({element:_0x3104b9})=>_0x3104b9),{'formatGroupId':_0x2dd115()},[],'tablePasteCell',{'tablePasteChainId':_0x1f8c25});if(_0x125c83){const _0x5a9b5d=_0x125c83['getMarkers'](),_0x3b75bc=[];for(const {element:_0x14df3f,attributes:_0x38d69f}of _0x42c1f9){if(!_0x38d69f)continue;const _0xa6412b=_0x3971c6['model']['createRangeOn'](_0x14df3f),_0x1c5fb3=_0x5a9b5d['find'](_0x1c8cf0=>_0x1c8cf0['getRange']()['isEqual'](_0xa6412b));_0x1c5fb3&&_0x3b75bc['push']([_0x1c5fb3['name'],_0x38d69f]);}_0x3b75bc['length']&&_0x125c83['setAttribute']('markerAttributes',Object['fromEntries'](_0x3b75bc));}_0x4834e4=null;}));},{'priority':_0x2b5f0a['high']+0xa}),_0x3971c6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3ed2f7,_0x2c827f)=>{const [_0xc48dc4,_0x1fe986,,_0x384932]=_0x2c827f;if(!_0x4834e4)return;_0x3ed2f7['stop']();const _0x4ed0d4=_0xc48dc4['cell'],_0x4d2c91=_0x1fe986,_0x4bcbf7=Pe(_0x4ed0d4),_0x598425=Pe(_0x4d2c91);_0x3ed2f7['return']=_0x4ed0d4;let _0x4bedec=null,_0x224792=null;if(_0x598425||_0x4bcbf7){if(_0x4bcbf7&&!_0x598425){_0x384932['remove'](_0x4ed0d4['getChild'](0x0));for(const _0x46da9a of Array['from'](_0x4d2c91['getChildren']()))_0x384932['insert'](_0x46da9a,_0x4ed0d4,'end');const _0x3facc9=_0x4834e4['rowInsertionIndexes']['includes'](_0xc48dc4['row']),_0x13f0b1=_0x4834e4['columnInsertionIndexes']['includes'](_0xc48dc4['column']);_0x3facc9||_0x13f0b1||(_0x4bedec=_0x150295['fromRange'](_0x384932['createRangeIn'](_0x4ed0d4)));}else _0x598425&&!_0x4bcbf7&&(_0x224792=_0x384932['createRangeIn'](_0x4ed0d4));}else{const _0x14e6df=_0x384932['createElement']('tableCellSuggestion'),_0x2adcdd=_0x384932['createElement']('tableCellSuggestion');_0x384932['wrap'](_0x384932['createRangeIn'](_0x4ed0d4),_0x2adcdd),_0x384932['insert'](_0x14e6df,_0x4ed0d4,0x0);for(const _0x5ccf85 of Array['from'](_0x4d2c91['getChildren']()))_0x384932['insert'](_0x5ccf85,_0x14e6df,'end');_0x4bedec=_0x150295['fromRange'](_0x384932['createRangeOn'](_0x14e6df)),_0x224792=_0x150295['fromRange'](_0x384932['createRangeOn'](_0x2adcdd));}const _0x46519b=Array['from'](_0x4d2c91['getAttributes']())['filter'](([_0x36b0f3])=>ge['includes'](_0x36b0f3));_0x4834e4['cells']['push']({'element':_0x4ed0d4,'attributes':_0x46519b['length']?Object['fromEntries'](_0x46519b):null}),_0x4bedec&&_0x4834e4['insertionRanges']['push'](_0x4bedec),_0x224792&&_0x4834e4['deletionRanges']['push'](_0x224792);},{'priority':'high'}),_0x17a8d2['on']('insertColumns',(_0x4297a5,_0x2ab876)=>{const [_0x338c64,_0x3aad22={}]=_0x2ab876;if(!_0x4834e4)return;const _0x44475e=_0x3aad22['at']||0x0,_0x1bfb80=_0x3aad22['columns']||0x1;_0x4834e4['columnInsertionIndexes']=new Array(_0x1bfb80)['fill'](_0x44475e)['map']((_0x32b612,_0x3dfacb)=>_0x32b612+_0x3dfacb);for(const {cell:_0x512b78}of _0x17a8d2['createTableWalker'](_0x338c64,{'startColumn':_0x44475e,'endColumn':_0x44475e+_0x1bfb80-0x1}))_0x4834e4['columnInsertionRanges']['push'](_0x3971c6['model']['createRangeOn'](_0x512b78));},{'priority':'low'}),_0x17a8d2['on']('insertRows',(_0x34b067,_0x29e4c0)=>{const [_0x266926,_0x59899c={}]=_0x29e4c0;if(!_0x4834e4)return;const _0x59db0f=_0x59899c['at']||0x0,_0x184961=_0x59899c['rows']||0x1;_0x4834e4['rowInsertionIndexes']=new Array(_0x184961)['fill'](_0x59db0f)['map']((_0x516558,_0x490a4b)=>_0x516558+_0x490a4b);for(const {cell:_0x21a460}of _0x17a8d2['createTableWalker'](_0x266926,{'startRow':_0x59db0f,'endRow':_0x59db0f+_0x184961-0x1}))_0x4834e4['rowInsertionRanges']['push'](_0x3971c6['model']['createRangeOn'](_0x21a460));},{'priority':'low'}),_0x16cfbd['descriptionFactory']['registerDescriptionCallback'](_0x50f881=>{if(_0x50f881['subType']&&_0x50f881['subType']['startsWith']('tablePaste'))return _0x50f881['previous']?{}:{'type':'insertion','content':o(_0x3971c6['locale'],'*Replace\x20table\x20cells*')};});const _0x3ccd8f=()=>!0x1;for(const _0x8076c0 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x16cfbd['_suggestionFactory']['registerCustomCallback']('insertion',_0x8076c0,'join',_0x3ccd8f),_0x16cfbd['_suggestionFactory']['registerCustomCallback']('deletion',_0x8076c0,'join',_0x3ccd8f),_0x16cfbd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x8076c0,'join',_0x3ccd8f);_0x16cfbd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3ccd8f),_0x16cfbd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x57d90a,_0x40a3b2,_0x4842aa)=>{const _0x7ac7db=_0x57d90a['map'](_0x32ee4c=>_0x32ee4c['getContainedElement']())['filter'](_0x50e1c4=>_0x50e1c4),_0x2e3144=new Map(_0x7ac7db['map'](_0x1a4085=>[_0x1a4085,null]));if(_0x4834e4){for(const {element:_0x13ee72,attributes:_0x550bec}of _0x4834e4['cells'])_0x550bec&&_0x2e3144['set'](_0x13ee72,_0x550bec);}else{if(_0x4842aa&&_0x4842aa['markerAttributes'])for(const [_0x26ae87,_0x479958]of Object['entries'](_0x4842aa['markerAttributes'])){const _0x2b52db=_0x3971c6['model']['markers']['get'](_0x26ae87),_0x4a9350=_0x2b52db?_0x2b52db['getRange']()['getContainedElement']():null;_0x4a9350&&_0x2e3144['set'](_0x4a9350,_0x479958);}}_0x3971c6['model']['change'](_0x3d8b1b=>{for(const [_0x1693b0,_0x25b0f5]of _0x2e3144)_0x3d8b1b['setAttributes']({...Ce,..._0x25b0f5},_0x1693b0);});});const _0x292131=(_0x65f337,_0x4f2d90)=>{_0x16cfbd['_suggestionFactory']['registerCustomCallback'](_0x65f337,'tablePaste',_0x4f2d90,(_0x4f5b55,_0x40693b,_0x4f8df5)=>{_0x3971c6['model']['change'](_0x5b2ef8=>{const _0x4ba84f=[];for(const _0x2350a2 of _0x4f5b55){const _0x58bcb4=_0x2350a2['start']['nodeAfter'];_0x58bcb4['is']('element','tableCellSuggestion')&&_0x4ba84f['push'](_0x58bcb4);}_0x16cfbd['_suggestionFactory']['getSuggestionCallback'](_0x65f337,null,_0x4f2d90)(_0x4f5b55,_0x40693b,_0x4f8df5);for(const _0x183c4f of _0x4ba84f)'$graveyard'!=_0x183c4f['root']['rootName']&&_0x5b2ef8['unwrap'](_0x183c4f);});});};_0x292131('insertion','accept'),_0x292131('insertion','discard'),_0x292131('deletion','accept'),_0x292131('deletion','discard'),_0x16cfbd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2b28d0=>{const _0x38cd19=_0x2b28d0['map'](_0x294fa9=>_0x294fa9['getContainedElement']()),_0x1a8c62=_0x38cd19[0x0]['findAncestor']('table'),{minRow:_0x420078,maxRow:_0x207a3e}=_0x2d9b8c['_getCoordsForCells'](_0x38cd19);_0x17a8d2['removeRows'](_0x1a8c62,{'at':_0x420078,'rows':_0x207a3e-_0x420078+0x1});}),_0x16cfbd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x50e103=>{const _0x1b03f3=_0x50e103['map'](_0x1c9539=>_0x1c9539['getContainedElement']()),_0x363c2d=_0x1b03f3[0x0]['findAncestor']('table'),{minColumn:_0x1b59a9,maxColumn:_0x3a73dd}=_0x2d9b8c['_getCoordsForCells'](_0x1b03f3);_0x17a8d2['removeColumns'](_0x363c2d,{'at':_0x1b59a9,'columns':_0x3a73dd-_0x1b59a9+0x1});});const _0x1d1dff=(_0x4f1bdf,_0x374c18)=>{if(!_0x374c18['subType']||!_0x374c18['subType']['startsWith']('tablePaste'))return;const _0x2b7c57=_0x374c18['attributes']['tablePasteChainId'],_0x5bcc4b=_0x16cfbd['getSuggestions']()['filter'](_0x23e1c7=>_0x23e1c7['isInContent']&&_0x23e1c7['attributes']&&_0x23e1c7['attributes']['tablePasteChainId']==_0x2b7c57);_0x5bcc4b['length']&&_0x374c18['getAllAdjacentSuggestions']()['length']!=_0x5bcc4b['length']&&_0x5bcc4b['reduce']((_0xce3733,_0xc219d0)=>(_0xce3733['next']=_0xc219d0,_0xc219d0['previous']=_0xce3733,_0xc219d0));};function _0x30cbbd(_0x3bba0d,_0x5d5022=!0x0){const {id:_0x2afa23}=_0x16cfbd['_splitMarkerName'](_0x3bba0d['markerName']),_0x1c9062=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x8e1265=_0x16cfbd['activeMarkers']['includes'](_0x3bba0d['markerName']);return _0x8e1265&&_0x1c9062['push']('ck-suggestion-marker--active'),{'classes':_0x1c9062,'attributes':{'data-suggestion':_0x2afa23},'priority':_0x8e1265&&_0x5d5022?0xbc2:0xbb8};}_0x16cfbd['on']('suggestionLoaded',_0x1d1dff,{'priority':'high'}),_0x16cfbd['on']('suggestionUnloaded',_0x1d1dff,{'priority':'high'}),_0x3971c6['model']['document']['registerPostFixer'](()=>{let _0x1371bd=!0x1;const _0x443470=Array['from'](_0x3971c6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c0ba4,data:_0x533fe7}of _0x443470){const {group:_0x1669d1,type:_0x219e23,id:_0x3da987}=_0x16cfbd['_splitMarkerName'](_0x2c0ba4);if('suggestion'!=_0x1669d1||'deletion'!=_0x219e23||_0x533fe7['oldRange'])continue;if(!_0x16cfbd['hasSuggestion'](_0x3da987))continue;const _0x12ad46=_0x16cfbd['getSuggestion'](_0x3da987)['getRanges'](),_0x4cc30f=_0x3971c6['plugins']['get']('Users')['me'];for(const _0xf2f655 of _0x16cfbd['getSuggestions']()){if(!_0xf2f655['isInContent']||_0xf2f655['author']!=_0x4cc30f)continue;if('formatBlock'!=_0xf2f655['type']||'tablePasteCell'!=_0xf2f655['subType'])continue;if(_0xf2f655['getRanges']()['every'](_0x1d51d9=>_0x12ad46['some'](_0x52df25=>_0x52df25['containsRange'](_0x1d51d9,!0x0)))){for(const _0xff90c4 of _0xf2f655['getAllAdjacentSuggestions']())_0xff90c4['isInContent']&&(_0xff90c4['discard'](),_0x1371bd=!0x0);}}}return _0x1371bd;}),_0x3971c6['model']['document']['registerPostFixer'](_0x4ade1e=>{const _0x432c6e=_0x3971c6['commands']['get']('redo');if(!_0x432c6e||!_0x432c6e['_createdBatches']['has'](_0x4ade1e['batch']))return!0x1;let _0x3fa46f=!0x1;const _0x2b5d2d=_0x3971c6['plugins']['get']('Users')['me'],_0x3645e9=_0x3971c6['model']['document']['differ']['getChanges'](),_0x36967f=Array['from'](_0x3971c6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x553745,data:_0x401db2})=>{const {group:_0xe34367,subType:_0x14ea2c,authorId:_0x164808}=_0x16cfbd['_splitMarkerName'](_0x553745);return'suggestion'==_0xe34367&&'tablePaste'==_0x14ea2c&&_0x164808==_0x2b5d2d['id']&&!_0x401db2['oldRange'];});for(const _0x27af45 of _0x3645e9){if('insert'!=_0x27af45['type']||'tableCellSuggestion'!=_0x27af45['name']||0x1!=_0x27af45['length'])continue;const _0x31ee0c=_0x4ade1e['createRange'](_0x27af45['position'],_0x27af45['position']['getShiftedBy'](0x1));if(!_0x36967f['find'](({data:_0x430d1b})=>_0x430d1b['newRange']['isEqual'](_0x31ee0c))){for(const {name:_0xec090d,data:_0x857b17}of _0x36967f)if(_0x31ee0c['containsRange'](_0x857b17['newRange'])){_0x4ade1e['updateMarker'](_0xec090d,{'range':_0x31ee0c}),_0x3fa46f=!0x0;break;}}}return _0x3fa46f;}),_0x3971c6['model']['document']['registerPostFixer'](_0x2b887e=>{let _0x2749eb=!0x1;const _0x4a741f=_0x3971c6['plugins']['get']('Users')['me'],_0x3cb102=_0x16cfbd['getSuggestions']()['filter'](_0x454e7a=>_0x454e7a['isInContent']&&_0x454e7a['author']==_0x4a741f),_0x55252a=new Set(),_0x3328fc=new Set();for(const _0x9e6bdb of _0x3cb102)if('tablePaste'==_0x9e6bdb['subType'])for(const _0x2ce742 of _0x9e6bdb['getMarkers']()){const _0x4cdcf9=_0x2ce742['getRange']()['getContainedElement']();if(_0x4cdcf9){if(_0x4cdcf9['is']('element','tableCellSuggestion')&&Pe(_0x4cdcf9)){_0x9e6bdb['removeMarker'](_0x2ce742['name']),_0x55252a['add'](_0x4cdcf9),_0x2749eb=!0x0;const _0x1ff6a7=_0x4cdcf9['nextSibling'],_0x5d54ff=_0x4cdcf9['previousSibling'],_0x2361b0=_0x1ff6a7&&_0x1ff6a7['is']('element','tableCellSuggestion'),_0x3820f8=_0x5d54ff&&_0x5d54ff['is']('element','tableCellSuggestion');_0x2361b0&&!_0x55252a['has'](_0x1ff6a7)&&_0x3328fc['add'](_0x1ff6a7),_0x3820f8&&!_0x55252a['has'](_0x5d54ff)&&_0x3328fc['add'](_0x5d54ff);}else _0x4cdcf9['is']('element','paragraph')&&_0x4cdcf9['isEmpty']&&(_0x9e6bdb['removeMarker'](_0x2ce742['name']),_0x2749eb=!0x0);}}else{if('tablePasteCell'==_0x9e6bdb['subType']){if(!_0x9e6bdb['attributes']||!_0x9e6bdb['attributes']['tablePasteChainId'])continue;const _0x2b3e63=_0x9e6bdb['attributes']['markerAttributes'];if(_0x2b3e63&&Object['keys'](_0x2b3e63)['length'])continue;const _0x36e3ac=_0x9e6bdb['attributes']['tablePasteChainId'];let _0x6babb9=!0x0,_0x244291=!0x0;for(const _0x3d5778 of _0x3cb102)if(_0x3d5778['subType']&&_0x3d5778['subType']['startsWith']('tablePaste')){if(!_0x3d5778['attributes']['tablePasteChainId']){_0x244291=!0x1;break;}if(_0x3d5778['id']!=_0x9e6bdb['id']&&_0x3d5778['attributes']['tablePasteChainId']==_0x36e3ac){_0x6babb9=!0x1;break;}}_0x244291&&_0x6babb9&&(_0x9e6bdb['removeMarkers'](),_0x2749eb=!0x0);}}for(const _0x1ceb70 of _0x55252a)_0x2b887e['remove'](_0x1ceb70);for(const _0x329d09 of _0x3328fc)_0x2b887e['unwrap'](_0x329d09);return _0x2749eb;}),_0x3971c6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x14bcfa,_0xb11bf5)=>_0x30cbbd(_0x14bcfa),'converterPriority':'high'}),_0x3971c6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4ab0fb,_0x5af90f)=>_0x5af90f['options']['showSuggestionHighlights']?_0x30cbbd(_0x4ab0fb,!0x1):null,'converterPriority':'high'});const _0x3e3bbf=_0x3971c6['editing']['view'];this['listenTo'](_0x3e3bbf['document'],'clipboardOutput',(_0x18ab0b,_0x19d445)=>{const _0x25c6f7=[];for(const _0x57b823 of _0x3e3bbf['createRangeIn'](_0x19d445['content'])['getItems']())_0x57b823['is']('element','suggestion-td')&&_0x25c6f7['push'](_0x57b823);_0x3e3bbf['change'](_0x58d041=>{for(const _0x280df2 of _0x25c6f7)_0x58d041['move'](_0x58d041['createRangeIn'](_0x280df2),_0x58d041['createPositionBefore'](_0x280df2)),_0x58d041['remove'](_0x280df2);});});}}function Pe(_0x1ba826){if(_0x1ba826['isEmpty'])return!0x0;const _0x1568b0=_0x1ba826['getChild'](0x0);return _0x1568b0['is']('element','paragraph')&&_0x1568b0['isEmpty'];}function he(_0x49e345,_0x2f4743={},_0x4177c9){for(const {isAnchor:_0x945bb0,cellHeight:_0x54f09a,cellWidth:_0x5dafe3}of _0x4177c9['createTableWalker'](_0x49e345,{'includeAllSlots':!0x0,..._0x2f4743}))if(!_0x945bb0||0x1!=_0x54f09a||0x1!=_0x5dafe3)return!0x1;return!0x0;}class vt extends _0x3cf114{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3818e8=this['editor']['plugins']['get']('TrackChangesEditing');_0x3818e8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3818e8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3818e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3818e8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3818e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3818e8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x11adbd,_0x516789){const _0x1688b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x353622=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xb72aa9=_0x516789['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x30176b=_0x353622['getColumnGroupElement'](_0xb72aa9);let _0x1f058f=_0x30176b?_0x353622['getTableColumnsWidths'](_0x30176b):null,_0xa6e6d7=_0xb72aa9['getAttribute']('tableWidth')||null;const _0x41d482=_0x516789['tableWidth']||_0xa6e6d7,_0x2c3625=_0x516789['columnWidths']||_0x1f058f,_0x156cb1=this['editor']['plugins']['get']('Users')['me'];for(const _0x32f2c3 of _0x1688b0['getSuggestions']()){const _0x6ea80c=_0x32f2c3['getContainedElement']();if('resizeTable'===_0x32f2c3['subType']&&_0x6ea80c===_0xb72aa9){_0x32f2c3['author']!==_0x156cb1&&_0x32f2c3['discard']();const _0x267fc3=_0x32f2c3['data']['commandParams'];_0xa6e6d7=_0x267fc3[0x0]['tableWidth'],_0x1f058f=_0x267fc3[0x0]['columnWidths'];break;}}_0x11adbd({'table':_0xb72aa9,'tableWidth':_0x41d482,'columnWidths':_0x2c3625}),_0x1688b0['markBlockFormat'](_0xb72aa9,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xa6e6d7,'columnWidths':_0x1f058f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xcd83a9){if('formatBlock'!=_0xcd83a9['type']&&'formatInline'!=_0xcd83a9['type'])return;const {data:_0x337c85}=_0xcd83a9;if(_0x337c85&&'resizeTable'===_0x337c85['formatGroupId']){const _0x435400='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x435400)};}}}class Ct extends _0x3cf114{['afterInit'](){const _0x292acc=this['editor'];_0x292acc['plugins']['has']('Template')&&_0x292acc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x3cf114{['afterInit'](){const _0x38f1d4=this['editor'];if(!_0x38f1d4['commands']['get']('insertTableOfContents'))return;_0x38f1d4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x413a95=_0x38f1d4['plugins']['get']('TrackChangesEditing'),_0xe403e7=_0x38f1d4['locale'];_0x413a95['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2b73ce=>o(_0xe403e7,'ELEMENT_TABLE_OF_CONTENTS',_0x2b73ce));}}class Nt extends _0x3cf114{['afterInit'](){const _0x16a1a1=this['editor'];if(!_0x16a1a1['plugins']['has']('Title'))return;const _0xffe33a=_0x16a1a1['plugins']['get']('TrackChangesEditing');_0xffe33a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x16a1a1['locale'],'ELEMENT_TITLE')),_0x16a1a1['model']['document']['registerPostFixer'](_0x3b88e7=>{let _0x28ace5=!0x1;const _0x2a0ef1=Array['from'](_0x16a1a1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7ba71a,data:_0xc159f5}of _0x2a0ef1){const {group:_0x3c3d84}=_0xffe33a['_splitMarkerName'](_0x7ba71a);if('suggestion'!==_0x3c3d84||!_0xc159f5['newRange'])continue;const _0x1acc9f=_0xc159f5['newRange'],_0x82d068=_0x1acc9f['end']['nodeBefore'];if(!_0x82d068||!_0x82d068['is']('element','title-content'))continue;if(!_0x1acc9f['start']['isTouching'](_0x1acc9f['end']))continue;const _0x520cec=_0x16a1a1['model']['schema']['getNearestSelectionRange'](_0x1acc9f['end'],'forward');if(_0x520cec&&_0x520cec['isCollapsed']){const _0x8a977e=_0x3b88e7['createRange'](_0x1acc9f['start'],_0x520cec['start']);_0x8a977e['isEqual'](_0x1acc9f)||(_0x3b88e7['updateMarker'](_0x7ba71a,{'range':_0x8a977e}),_0x28ace5=!0x0);}_0x28ace5||(_0x3b88e7['removeMarker'](_0x7ba71a),_0x28ace5=!0x0);}return _0x28ace5;});}}class Dt extends _0x3cf114{['afterInit'](){const _0x496d32=this['editor'],_0x4d5516=_0x496d32['plugins']['get']('TrackChangesEditing');_0x496d32['plugins']['has']('UndoEditing')&&(_0x4d5516['enableCommand']('undo'),_0x4d5516['enableCommand']('redo'));}}class Mt extends _0x3cf114{static get['requires'](){return[jt];}['afterInit'](){const _0x189d40=this['editor'];if(!_0x189d40['plugins']['has']('TableCaptionEditing'))return;_0x189d40['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x3cf114{['tableProperties'];['tableCellProperties'];constructor(_0x4461ee){super(_0x4461ee),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x2e5c45=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5772f8 of this['tableProperties'])_0x2e5c45['enableCommand'](_0x5772f8,(_0x4f0519,_0x9b44ec)=>{const _0x478277=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5772f8,[_0x478277],this['tableProperties'],'tableProperties',_0x4f0519,_0x9b44ec);});_0x2e5c45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2e5c45['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2e5c45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3f3045,_0xdce498)=>this['handleDiscardAction'](this['tableProperties'],_0x3f3045,_0xdce498)),_0x2e5c45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x148529 of this['tableCellProperties'])_0x2e5c45['enableCommand'](_0x148529,(_0x74e12a,_0x227451)=>{const _0x4d75c7=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x148529,_0x4d75c7,this['tableCellProperties'],'tableCellProperties',_0x74e12a,_0x227451);});_0x2e5c45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2e5c45['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2e5c45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x44dfa0,_0x53d6ce)=>this['handleDiscardAction'](this['tableCellProperties'],_0x44dfa0,_0x53d6ce)),_0x2e5c45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2e5c45['descriptionFactory']['registerDescriptionCallback'](_0x252f09=>this['handleSuggestionDescription'](_0x252f09));}['_handlePropertyChange'](_0x5327b2,_0x410a18,_0xb3002b,_0x4ad47c,_0x334f04,_0x45c944){const _0x10473c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x45c944['batch'],()=>{for(const _0x49a0f1 of _0x410a18){if(this['_getSuggestion'](_0x49a0f1,_0x4ad47c))_0x334f04(_0x45c944);else{const _0x50f011={};for(const _0x200377 of _0xb3002b){const _0x46175d=_0x49a0f1['getAttribute'](_0x200377);void 0x0!==_0x46175d&&(_0x50f011[_0x200377]=_0x46175d);}_0x334f04(_0x45c944),_0x10473c['markBlockFormat'](_0x49a0f1,{'commandParams':[_0x50f011]},[],_0x4ad47c);}}});}['handleDiscardAction'](_0x4648f6,_0x87f29d,_0x623a3b){const _0x528cd0=_0x87f29d[0x0]['start']['nodeAfter'],_0x520a70=_0x623a3b['commandParams'][0x0];this['editor']['model']['change'](_0x14bfec=>{for(const _0x4d121d of _0x4648f6)void 0x0!==_0x520a70[_0x4d121d]?_0x14bfec['setAttribute'](_0x4d121d,_0x520a70[_0x4d121d],_0x528cd0):_0x14bfec['removeAttribute'](_0x4d121d,_0x528cd0);});}['handleSuggestionDescription'](_0x2534d5){if(_0x2534d5['data'])switch(_0x2534d5['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'](_0x23fee4,_0x4471c5){const _0x1bf40c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4c1d12 of _0x1bf40c['getSuggestions']({'skipNotAttached':!0x0})){const _0x208caa=_0x4c1d12['getContainedElement']();if(_0x4c1d12['subType']===_0x4471c5&&_0x208caa===_0x23fee4)return _0x4c1d12;}return null;}}const m='$elementName';class p extends _0x3cf114{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x188410,_0x9b188d,E,O,V,U,F,G,L,H,J,K,W,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,z,lt,ct,q,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Nt,Dt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x461b42){function _0x481c5a(_0x44d1ae){return _0x44d1ae['map'](_0x3ffa72=>String['fromCharCode'](_0x3ffa72))['join']('');}super(_0x461b42),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2f413d,_0x3c455b,_0x36b385,_0x57c0a0)=>{this['_model']['change'](()=>{for(const _0x124846 of[..._0x57c0a0,..._0x36b385])this['_model']['markers']['has'](_0x124846)&&_0x461b42['editing']['reconvertMarker'](_0x124846);});}),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']=_0x461b42['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(),_0x461b42['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x461b42['config']['get']('trackChanges.trackFormatChanges'),_0x461b42['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x461b42['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x461b42,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x481c5a([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x481c5a([0x34,0x30,0x34,0x38,0x31,0x34,0x34,0x36]);}['init'](){const _0x3e112d=this['editor'],_0x2d5cca=(_0x388dbf,_0x55919d)=>{if('attribute'!=_0x388dbf)return'ck-suggestion-marker-'+_0x388dbf;const _0x48088f=_0x55919d['split']('|')[0x0];return this['_isBlockAttribute'](_0x48088f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3e112d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x56c375=>{const {id:_0x508a7d,type:_0x555a14,subType:_0x1c5d9b}=this['_splitMarkerName'](_0x56c375['markerName']),_0xe06d4a=['ck-suggestion-marker',_0x2d5cca(_0x555a14,_0x1c5d9b)];let _0x337ca6=0xbb8;return this['activeMarkers']['includes'](_0x56c375['markerName'])&&(_0xe06d4a['push']('ck-suggestion-marker--active'),_0x337ca6=0xbc2),'deletion'==_0x555a14&&(_0x337ca6+=0x5),{'classes':_0xe06d4a,'attributes':{'data-suggestion':_0x508a7d},'priority':_0x337ca6};}}),_0x3e112d['conversion']['for']('dataDowncast')['add'](_0x2c1b94=>{_0x2c1b94['on']('addMarker:suggestion',(_0x29d6c5,_0xa5c4f8,_0x33aa84)=>{if(!_0x33aa84['options']['showSuggestionHighlights'])return;const _0x198dac=_0xa5c4f8['item'];if(!_0x198dac)return;const _0x643191=_0x33aa84['mapper']['toViewElement'](_0x198dac);_0x3e112d['model']['schema']['isObject'](_0x198dac)&&_0x643191&&!_0x643191['getCustomProperty']('widget')&&_0x643191['is']('containerElement')&&_0x125844(_0x643191,_0x33aa84['writer']);},{'priority':'high'});}),_0x3e112d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x300ef4,_0x129ea2)=>{if(!_0x129ea2['options']['showSuggestionHighlights'])return null;const {type:_0x4b55aa,subType:_0x3ef283}=this['_splitMarkerName'](_0x300ef4['markerName']);return{'classes':['ck-suggestion-marker',_0x2d5cca(_0x4b55aa,_0x3ef283)],'priority':0xbb8};}});const _0x3b2a0b=({showActiveMarkers:_0x149dc9=!0x0,isAttributeSuggestion:_0x43d951=!0x1}={})=>(_0x31b834,_0x112194,_0x50be09)=>{if(!_0x112194['item'])return;const {id:_0x5a9d72}=this['_splitMarkerName'](_0x112194['markerName']);if(_0x43d951){const _0x11c4fb=this['_suggestions']['get'](_0x5a9d72),_0x36f773=this['_getAttributeKey'](_0x11c4fb);if(!this['_isBlockAttribute'](_0x36f773))return;}if(_0x112194['item']['is']('selection'))return void _0x50be09['consumable']['consume'](_0x112194['item'],_0x31b834['name']);const _0x30f805=_0x50be09['mapper']['toViewElement'](_0x112194['item']);if(_0x112194['item']['is']('element')&&_0x3e112d['model']['schema']['isBlock'](_0x112194['item'])&&!_0x30f805['getCustomProperty']('addHighlight')){_0x50be09['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x30f805),_0x50be09['writer']['setAttribute']('data-suggestion',_0x5a9d72,_0x30f805),_0x50be09['mapper']['bindElementToMarker'](_0x30f805,_0x112194['markerName']),_0x149dc9&&(this['activeMarkers']['includes'](_0x112194['markerName'])?_0x50be09['writer']['addClass']('ck-suggestion-marker--active',_0x30f805):_0x50be09['writer']['removeClass']('ck-suggestion-marker--active',_0x30f805));for(const _0x1a114d of _0x3e112d['model']['createRangeIn'](_0x112194['item'])['getItems']())_0x50be09['consumable']['consume'](_0x1a114d,_0x31b834['name']);_0x50be09['consumable']['consume'](_0x112194['item'],_0x31b834['name']);}};_0x3e112d['conversion']['for']('dataDowncast')['add'](_0x17ac9d=>{_0x17ac9d['on']('addMarker:suggestion:formatBlock',(_0x340a9d,_0x300af4,_0xca0490)=>{_0xca0490['options']['showSuggestionHighlights']&&_0x3b2a0b({'showActiveMarkers':!0x1})(_0x340a9d,_0x300af4,_0xca0490);},{'priority':'highest'});}),_0x3e112d['conversion']['for']('dataDowncast')['add'](_0xfe64d8=>{_0xfe64d8['on']('addMarker:suggestion:attribute',(_0x1cd107,_0x23ac57,_0x595b5c)=>{_0x595b5c['options']['showSuggestionHighlights']&&_0x3b2a0b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1cd107,_0x23ac57,_0x595b5c);},{'priority':'highest'});}),_0x3e112d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4f3e2f,_0x5430a0)=>_0x5430a0['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4f3e2f['substr'](0xb)}}),_0x3e112d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5f064e,{writer:_0x4778b8})=>{let _0x1bf253='suggestion:'+_0x5f064e['getAttribute']('suggestion-type')+':'+_0x5f064e['getAttribute']('id');return _0x5f064e['getAttribute']('marker-count')&&(_0x1bf253+=':'+_0x5f064e['getAttribute']('marker-count')),_0x4778b8['createElement']('$marker',{'data-name':_0x1bf253});}}),_0x3e112d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3e112d['conversion']['for']('editingDowncast')['add'](_0x15be94=>{_0x15be94['on']('addMarker:suggestion:formatBlock',_0x3b2a0b(),{'priority':'high'});}),_0x3e112d['conversion']['for']('editingDowncast')['add'](_0x1ed362=>{_0x1ed362['on']('addMarker:suggestion:attribute',_0x3b2a0b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3e112d['conversion']['for']('editingDowncast')['add'](_0x472985=>{_0x472985['on']('removeMarker:suggestion:formatBlock',(_0x1615a1,_0x55de11,_0x33f987)=>{const _0x5776ad=_0x33f987['mapper']['markerNameToElements'](_0x55de11['markerName']);if(_0x5776ad){for(const _0x1112f2 of _0x5776ad)_0x1112f2['getCustomProperty']('addHighlight')||(_0x33f987['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1112f2),_0x33f987['writer']['removeAttribute']('data-suggestion',_0x1112f2),_0x33f987['mapper']['unbindElementFromMarkerName'](_0x1112f2,_0x55de11['markerName']));}},{'priority':'high'});}),_0x3e112d['conversion']['for']('editingDowncast')['add'](_0x1f48f9=>{_0x1f48f9['on']('removeMarker:suggestion:attribute',(_0x10c4c3,_0x5af274,_0x47bef1)=>{const _0x5c3b44=_0x47bef1['mapper']['markerNameToElements'](_0x5af274['markerName']);if(!_0x5c3b44)return;const {id:_0x21eadf}=this['_splitMarkerName'](_0x5af274['markerName']),_0x300ae5=this['_suggestions']['get'](_0x21eadf),_0x1a49ea=this['_getAttributeKey'](_0x300ae5);if(this['_isBlockAttribute'](_0x1a49ea)){for(const _0x118da9 of _0x5c3b44)_0x118da9['getCustomProperty']('addHighlight')||(_0x47bef1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x118da9),_0x47bef1['writer']['removeAttribute']('data-suggestion',_0x118da9),_0x47bef1['mapper']['unbindElementFromMarkerName'](_0x118da9,_0x5af274['markerName']));}},{'priority':'high'});}),_0x3e112d['model']['document']['registerPostFixer'](_0x3920dc=>{let _0xedaf40=!0x1;const _0x3b5284=Array['from'](_0x3e112d['model']['document']['differ']['getChangedMarkers']()),_0x16cfbf=new Set();for(const {name:_0x348ea5,data:_0x1a2411}of _0x3b5284){const {group:_0x3997f6,type:_0x24e12a,subType:_0x1fc313,id:_0xda1ccc}=this['_splitMarkerName'](_0x348ea5);if('suggestion'!==_0x3997f6)continue;const _0x79238c=this['_suggestions']['get'](_0xda1ccc);if(null!=_0x1a2411['newRange']){'formatInline'==_0x24e12a&&(_0xedaf40=_0xedaf40||Et(_0x1a2411['newRange'],_0x348ea5,_0x3920dc,_0x3e112d['model']['schema']));const _0x4645c5='attribute'==_0x24e12a&&this['_isBlockAttribute'](_0x1fc313['split']('|')[0x0]);if(_0x1a2411['newRange']['isCollapsed']||'$graveyard'==_0x1a2411['newRange']['root']['rootName']||'formatBlock'==_0x24e12a&&!Vt(_0x1a2411['newRange'])||_0x4645c5&&!Vt(_0x1a2411['newRange'])||'deletion'==_0x24e12a&&!(!Tt(_0x5b9bca=_0x1a2411['newRange'])&&!function(_0x43b3ab){return _0x43b3ab['start']['parent']==_0x43b3ab['end']['nodeBefore']&&_0x43b3ab['start']['isAtEnd'];}(_0x5b9bca)))_0x3920dc['removeMarker'](_0x348ea5),_0xedaf40=!0x0;else{if(!_0x79238c||!_0x79238c['isInContent'])continue;if(_0x1a2411['newRange']&&_0x1a2411['oldRange']&&_0x1a2411['newRange']['isEqual'](_0x1a2411['oldRange']))continue;_0x16cfbf['add'](_0x79238c);}}}var _0x5b9bca;return _0x16cfbf['size']>0x0&&(_0xedaf40=!!this['_joinWithAdjacentSuggestions'](_0x16cfbf)||_0xedaf40),_0xedaf40;}),_0x3e112d['model']['document']['registerPostFixer'](_0x17f3fe=>{let _0x5caf0b=!0x1;for(const _0x50ac87 of _0x3e112d['model']['document']['differ']['getChanges']())if('insert'==_0x50ac87['type'])for(const _0x5be0bb of this['_suggestions']['values']()){if(_0x5be0bb['isMultiRange']||!_0x5be0bb['isInContent'])continue;const _0x48f3bc='formatBlock'==_0x5be0bb['type'],_0x4724b6=this['_getAttributeKey'](_0x5be0bb),_0x506d33=_0x4724b6&&this['_isBlockAttribute'](_0x4724b6);if(!_0x48f3bc&&!_0x506d33)continue;const _0x1f7547=_0x5be0bb['getFirstRange']();if(_0x1f7547['start']['parent']!=_0x1f7547['end']['parent']&&!_0x1f7547['end']['isAtEnd']){const _0x1867c8=_0x3e112d['model']['createPositionAt'](_0x1f7547['start']['nodeAfter'],'end'),_0x1b0f6e=_0x3e112d['model']['createRange'](_0x1f7547['start'],_0x1867c8);_0x17f3fe['updateMarker'](_0x5be0bb['getFirstMarker'](),{'range':_0x1b0f6e}),_0x5caf0b=!0x0;}}return _0x5caf0b;}),_0x3e112d['model']['document']['registerPostFixer'](_0x316d14=>this['_processAttributeChanges'](_0x316d14)),_0x3e112d['model']['document']['registerPostFixer'](_0x20dcc8=>!_0x20dcc8['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x20dcc8)),_0x3e112d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3e112d['model']['document']['on']('change:data',(_0x39dcc5,_0x42e3f4)=>{if(!_0x42e3f4['isLocal']||_0x42e3f4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x42e8fb=_0x3e112d['model']['document']['differ']['getChanges']();if(0x0==_0x42e8fb['length'])return;const _0x327fec=[],_0x4aa921=_0x42e8fb['filter'](_0x422193=>'attribute'==_0x422193['type']),_0x232f2c=_0x42e8fb['filter'](_0x43a08a=>'insert'==_0x43a08a['type']&&'$text'!=_0x43a08a['name']);for(const _0x24a803 of _0x4aa921)this['_isRegisteredAttribute'](_0x24a803['attributeKey'])&&_0x327fec['push']({'key':_0x24a803['attributeKey'],'newValue':_0x24a803['attributeNewValue'],'oldValue':_0x24a803['attributeOldValue'],'range':Ut(_0x24a803['range'],_0x3e112d['model'])});for(const _0x4a62e7 of _0x232f2c){if('rename'!=_0x4a62e7['action']&&'refresh'!=_0x4a62e7['action'])continue;const _0x5986f=Gt(_0x4a62e7['position']['nodeAfter'],_0x3e112d['model']),_0xa499e0=_0x4a62e7['before'];'rename'==_0x4a62e7['action']&&_0x327fec['push']({'key':m,'newValue':_0x4a62e7['name'],'oldValue':_0xa499e0['name'],'range':_0x5986f});for(const [_0x34933c,_0x2b486a]of _0xa499e0['attributes']){if(!this['_isRegisteredAttribute'](_0x34933c))continue;const _0x2f1521=_0x4a62e7['attributes']['get'](_0x34933c);_0x2b486a!==_0x2f1521&&_0x327fec['push']({'key':_0x34933c,'newValue':_0x2f1521,'oldValue':_0x2b486a,'range':_0x5986f});}for(const [_0x28cada,_0x4ec5a2]of _0x4a62e7['attributes'])this['_isRegisteredAttribute'](_0x28cada)&&(_0xa499e0['attributes']['has'](_0x28cada)||_0x327fec['push']({'key':_0x28cada,'newValue':_0x4ec5a2,'oldValue':null,'range':_0x5986f}));}0x0!=_0x327fec['length']&&_0x3e112d['model']['enqueueChange'](_0x42e3f4,_0x502091=>{const _0x8867d7=_0x2dd115();for(const {range:_0x90c030,key:_0x4fd9df,oldValue:_0x2572b0,newValue:_0x19e32a}of _0x327fec)this['markAttributeChange'](_0x90c030,_0x4fd9df,_0x2572b0,_0x19e32a,{'groupId':_0x8867d7});this['_reduceExistingSuggestions'](_0x502091,_0x327fec);});},{'priority':'lowest'}),_0x3e112d['model']['markers']['on']('update:suggestion',(_0x4e38b3,_0x23dfdc,_0x436f36)=>{if(null==_0x436f36){const {id:_0x42f33c}=this['_splitMarkerName'](_0x23dfdc['name']),_0x20a049=this['_suggestions']['get'](_0x42f33c);_0x20a049&&_0x20a049['addMarkerName'](_0x23dfdc['name']);}}),_0x3e112d['model']['document']['on']('change:data',()=>{const _0x46864f=Array['from'](_0x3e112d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x55d433=>'suggestion'===this['_splitMarkerName'](_0x55d433['name'])['group']);if(0x0===_0x46864f['length'])return;_0x46864f['sort']((_0x3cd7ad,_0x1ecee9)=>{const _0x1a45cc=_0x3cd7ad['data']['oldRange'],_0x6b5e74=_0x1ecee9['data']['oldRange'];return null===_0x1a45cc&&null===_0x6b5e74?0x0:null===_0x1a45cc&&null!==_0x6b5e74?-0x1:null!==_0x1a45cc&&null===_0x6b5e74?0x1:_0x1a45cc['start']['isBefore'](_0x6b5e74['start'])?-0x1:0x1;});const _0x4cdb06=new Set(),_0x476fcd=new Set();for(const {name:_0x19fef7,data:_0x18780a}of _0x46864f){const {id:_0x34c3e6}=this['_splitMarkerName'](_0x19fef7);if(null===_0x18780a['oldRange']){const _0x24696c=this['_handleNewSuggestionMarker'](_0x19fef7);_0x476fcd['add'](_0x24696c);}else{const _0x36b63d=this['_suggestions']['get'](_0x34c3e6);null!==_0x18780a['newRange']||_0x36b63d['isInContent']?(_0x4cdb06['add'](_0x36b63d['head']),_0x476fcd['add'](_0x36b63d)):this['_removeSuggestion'](_0x36b63d);}}_0x476fcd['size']>0x0&&this['_refreshSuggestionsChain'](_0x476fcd);for(const _0x215742 of _0x4cdb06)this['fire']('suggestionChanged',_0x215742);}),_0x3e112d['model']['on']('applyOperation',(_0x2bcd47,_0x6cd853)=>{const _0x5871b6=_0x6cd853[0x0];if(!this['_suggestions']['size'])return;if(!_0x5871b6['isDocumentOperation'])return;if(_0x5871b6['batch']['isUndo']||!_0x5871b6['batch']['isLocal'])return;let _0x57379b,_0x30c924;switch(_0x5871b6['type']){case'insert':_0x57379b=_0x3e112d['model']['createPositionAt'](_0x5871b6['position']),_0x30c924=_0x57379b['getShiftedBy'](_0x5871b6['howMany']);break;case'split':_0x57379b=_0x3e112d['model']['createPositionAt'](_0x5871b6['splitPosition']),_0x30c924=_0x3e112d['model']['createPositionAt'](_0x5871b6['moveTargetPosition']);break;case'move':_0x57379b=_0x3e112d['model']['createPositionAt'](_0x5871b6['targetPosition']),_0x30c924=_0x57379b['getShiftedBy'](_0x5871b6['howMany']);break;default:return;}const _0x3e68a6=_0x3e112d['model']['createRange'](_0x57379b,_0x30c924);_0x3e112d['model']['change'](()=>{for(const {suggestion:_0x1950c3,meta:_0x18e6b2}of this['_findSuggestions'](_0x3e68a6)){if(_0x1950c3['isMultiRange'])continue;if('formatInline'==_0x1950c3['type'])continue;const _0x1f0d6d=this['_getAttributeKey'](_0x1950c3);if(_0x1f0d6d&&this['_isBlockAttribute'](_0x1f0d6d)&&'split'!=_0x5871b6['type'])continue;const _0x2ce7d7=_0x1950c3['data']&&_0x1950c3['data']['multipleBlocks'];('formatBlock'!=_0x1950c3['type']||'split'==_0x5871b6['type']&&!_0x2ce7d7)&&(_0x18e6b2['containsRangeInObject']||'insertion'==_0x1950c3['type']&&_0x18e6b2['isOwn']||_0x1950c3['getFirstRange']()['containsRange'](_0x3e68a6)&&this['_breakSuggestionMarker'](_0x1950c3,_0x57379b,_0x30c924));}});},{'priority':'lowest'}),_0x3e112d['model']['on']('deleteContent',(_0x94a936,_0x22352e)=>{const _0x22d72d=_0x22352e[0x0],_0x1b105e=_0x22352e[0x1];if(_0x1b105e&&_0x1b105e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x22d72d['isCollapsed'])return;const _0x3f1460=_0x3e112d['model']['schema'],{start:_0x54074a,end:_0x4bfecf}=_0x22d72d['getFirstRange'](),_0x59e65a=_0x54074a['nodeAfter']&&_0x3f1460['isLimit'](_0x54074a['nodeAfter'])?null:_0x3f1460['getNearestSelectionRange'](_0x54074a,'forward'),_0x5d3cbd=_0x4bfecf['nodeBefore']&&_0x3f1460['isLimit'](_0x4bfecf['nodeBefore'])?null:_0x3f1460['getNearestSelectionRange'](_0x4bfecf,'backward'),_0x47f17c=_0x3e112d['model']['createRange'](_0x59e65a?_0x59e65a['start']:_0x54074a,_0x5d3cbd?_0x5d3cbd['end']:_0x4bfecf);_0x3e112d['model']['change'](_0x2078d7=>{this['markDeletion'](_0x47f17c);const _0x3eecc7=_0x3e112d['model']['schema']['getNearestSelectionRange'](_0x47f17c['start']);_0x22d72d['is']('documentSelection')?_0x2078d7['setSelection'](_0x3eecc7):_0x22d72d['setTo'](_0x3eecc7);}),_0x94a936['stop']();},{'priority':_0x2b5f0a['normal']+0xa}),_0x3e112d['model']['on']('insertContent',(_0x1a1b9f,_0x1cb0ca)=>{const _0x484260=_0x1cb0ca[_0x1cb0ca['length']-0x1];_0x484260&&_0x484260['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3e112d['model']['change'](()=>{let _0x309ddc=_0x3e112d['model']['insertContent'](_0x1cb0ca[0x0],_0x1cb0ca[0x1],_0x1cb0ca[0x2],{'forceDefaultExecution':!0x0});if(!_0x309ddc)return;_0x1a1b9f['return']=_0x309ddc['clone']();const _0x543447=_0x309ddc['end']['nodeBefore'],_0x36d9c3=_0x3e112d['model']['schema'];_0x543447&&_0x36d9c3['isBlock'](_0x543447)&&!_0x36d9c3['isObject'](_0x543447)&&(_0x309ddc=_0x3e112d['model']['createRange'](_0x309ddc['start'],_0x3e112d['model']['createPositionAt'](_0x543447,'end'))),this['markInsertion'](_0x309ddc);}),_0x1a1b9f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x48dc0f=new $(_0x3e112d,this['_suggestions']);_0x3e112d['commands']['add']('acceptSuggestion',_0x48dc0f),this['enableCommand']('acceptSuggestion');const _0x3a0601=new B(_0x3e112d,this['_suggestions']);_0x3e112d['commands']['add']('discardSuggestion',_0x3a0601),this['enableCommand']('discardSuggestion'),_0x3e112d['commands']['add']('acceptAllSuggestions',new x(_0x3e112d,_0x48dc0f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3e112d['commands']['add']('discardAllSuggestions',new x(_0x3e112d,_0x3a0601,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3e112d['commands']['add']('acceptSelectedSuggestions',new R(_0x3e112d,_0x48dc0f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3e112d['commands']['add']('discardSelectedSuggestions',new R(_0x3e112d,_0x3a0601,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4a5a0e=_0x3e112d['plugins']['get']('CommentsRepository');this['listenTo'](_0x4a5a0e,'addComment',(_0x33393f,{threadId:_0xbb82a1})=>{const _0x3cab1b=this['_suggestions']['get'](_0xbb82a1);_0x3cab1b&&_0x3cab1b['commentThread']&&0x1===_0x3cab1b['commentThread']['length']&&this['_updateSuggestionData'](_0xbb82a1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4a5a0e,'removeComment',(_0x583621,{threadId:_0x217c85})=>{const _0x35c0a3=this['_suggestions']['get'](_0x217c85);_0x35c0a3&&_0x35c0a3['commentThread']&&!_0x35c0a3['commentThread']['length']&&this['_updateSuggestionData'](_0x217c85,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x50cd09){if(this['_adapter'])throw new _0x9391a('track-changes-adapter-already-set',this);this['_adapter']=_0x50cd09;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x249779=!0x1,toJSON:_0x3895ac=!0x1}={}){const _0x1d4a4e=[];for(const _0x4d54ea of this['_suggestions']['values']())_0x249779&&!_0x4d54ea['isInContent']||_0x1d4a4e['push'](_0x4d54ea);return _0x3895ac?_0x1d4a4e['map'](_0x2ec688=>_0x2ec688['toJSON']()):_0x1d4a4e;}['getSuggestion'](_0x177ae0){const _0x5ade38=this['_suggestions']['get'](_0x177ae0);if(!_0x5ade38)throw new _0x9391a('track-changes-suggestion-not-found',this);return _0x5ade38;}['hasSuggestion'](_0x2e42a7){return this['_suggestions']['has'](_0x2e42a7);}['addSuggestionData'](_0x2d73ae){const {authorId:_0x3998fe,id:_0x46b3a8,attributes:_0x2868bd}=_0x2d73ae,[_0x3bf213,_0x1702e5]=_0x2d73ae['type']['split'](':'),_0x38b99b=this['_suggestions']['get'](_0x46b3a8)||this['_createSuggestion'](_0x3bf213,_0x1702e5,_0x46b3a8,_0x3998fe,_0x2868bd);if(this['_addThreadToSuggestion'](_0x38b99b),this['_checkSuggestionCorrectness'](_0x38b99b,_0x3bf213,_0x1702e5||null,_0x3998fe),_0x38b99b['createdAt']=_0x2d73ae['createdAt'],_0x38b99b['_isDataLoaded']=!0x0,_0x2868bd&&_0x2868bd['@external']){const _0x2a6cb8=_0x2868bd['@external'],_0x26a945=this['_getExternalAuthor'](_0x2a6cb8['authorName']);_0x38b99b['authoredAt']=_0x2a6cb8['createdAt'],_0x38b99b['author']=_0x26a945,_0x38b99b['isExternal']=!0x0;}else _0x38b99b['authoredAt']=_0x2d73ae['createdAt'];switch(_0x2d73ae['data']&&(_0x38b99b['data']=_0x2d73ae['data']),_0x2d73ae['attributes']&&(_0x38b99b['attributes']=_0x2d73ae['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x38b99b['_saved']=!0x0),this['_suggestionState']['get'](_0x38b99b)){case'notReady':this['_suggestionState']['set'](_0x38b99b,'dataReady');break;case'markerReady':_0x38b99b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x38b99b])),this['_refreshSuggestionsChain'](new Set([_0x38b99b])),this['_suggestionState']['set'](_0x38b99b,'ready'),this['fire']('suggestionLoaded',_0x38b99b)):this['_suggestionState']['set'](_0x38b99b,'removed');}return _0x38b99b;}['acceptSuggestion'](_0x28bb0d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x453925 of _0x28bb0d['getAllAdjacentSuggestions']())_0x453925['accept']();});});}['discardSuggestion'](_0x182664){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1cb73f of _0x182664['getAllAdjacentSuggestions']())_0x1cb73f['discard']();});});}['enableCommand'](_0x40c02d,_0x4df965){const _0x563b9e=this['editor']['commands']['get'](_0x40c02d);if(!_0x563b9e)throw new _0x9391a('track-changes-command-not-found',this,{'commandName':_0x40c02d});if(this['_enabledCommands']['has'](_0x563b9e))throw new _0x9391a('track-changes-enable-command-twice',this,{'commandName':_0x40c02d});this['_enabledCommands']['add'](_0x563b9e),_0x4df965&&_0x563b9e['on']('execute',(_0xd3a37,_0x2f7d6d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2f7d6d['length']>0x0&&_0x2f7d6d[_0x2f7d6d['length']-0x1]&&_0x2f7d6d[_0x2f7d6d['length']-0x1]['forceDefaultExecution']?_0x2f7d6d['pop']():(_0xd3a37['return']=_0x4df965((..._0x410e22)=>_0x563b9e['execute'](..._0x410e22,{'forceDefaultExecution':!0x0}),..._0x2f7d6d),_0xd3a37['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4e4901){let _0x50d646,_0x2fa4f8;const _0x24c6ce=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x50d646=_0x4e4901();}catch(_0x574177){_0x2fa4f8=_0x574177;}return _0x24c6ce||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2fa4f8&&_0x9391a['rethrowUnexpectedError'](_0x2fa4f8,this),_0x50d646;}['markInsertion'](_0x433ee7,_0x6455a3=null,_0x156267={}){if(_0x433ee7['isCollapsed'])return null;const _0x583112=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x23391,meta:_0x44f965}of this['_findSuggestions'](_0x433ee7,'insertion'))if(_0x44f965['isOwn']){if(!_0x44f965['isNextTo']){if(_0x44f965['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x23391,_0x156267))continue;return _0x23391;}if(Lt(_0x23391,_0x156267))return _0x23391;this['_breakSuggestionMarker'](_0x23391,_0x433ee7['start'],_0x433ee7['end']);break;}if(_0x6455a3==_0x23391['subType']&&Lt(_0x23391,_0x156267)){const _0x307b6c=_0x23391['getFirstRange']();return _0x307b6c['start']['isEqual'](_0x433ee7['end'])?this['_setSuggestionRange'](_0x23391,this['_model']['createRange'](_0x433ee7['start'],_0x307b6c['end'])):this['_setSuggestionRange'](_0x23391,this['_model']['createRange'](_0x307b6c['start'],_0x433ee7['end'])),_0x23391;}}const _0x5b8dd9=_0x2dd115(),_0x4c9266=_0x583112['id'],_0x1af54e=_0x6455a3?'insertion:'+_0x6455a3:'insertion',_0x3c0c32=this['_setSuggestionData']({'id':_0x5b8dd9,'type':_0x1af54e,'createdAt':new Date(),'authorId':_0x4c9266,'attributes':_0x156267});return this['_addSuggestionMarker'](_0x1af54e,_0x5b8dd9,_0x4c9266,_0x433ee7),_0x3c0c32;}['markMultiRangeInsertion'](_0x264022,_0x36cb24='multi',_0x747bd3={}){const _0x25442c=this['editor']['plugins']['get']('Users')['me'],_0x4d5110=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x36cb24,'join');for(const _0x3b4c09 of this['getSuggestions']())if(_0x3b4c09['author']['id']==_0x25442c['id']&&'insertion'==_0x3b4c09['type']&&_0x3b4c09['subType']==_0x36cb24&&Lt(_0x3b4c09,_0x747bd3)&&(_0x4d5110(_0x3b4c09['getRanges'](),_0x264022)||_0x4d5110(_0x264022,_0x3b4c09['getRanges']()))){for(const _0x1b723e of _0x264022)_0x3b4c09['addRange'](_0x1b723e);return _0x3b4c09;}for(const {suggestion:_0x1f8067,meta:_0x2c4028}of this['_findSuggestions'](_0x264022,'insertion')){if(!_0x2c4028['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2c4028['containsRangeInObject'])continue;if(!Lt(_0x1f8067,_0x747bd3))continue;let _0x13c649=!0x0;for(const _0x53b194 of _0x1f8067['getRanges']())for(const _0x2686e9 of _0x264022)if(!_0x53b194['containsRange'](_0x2686e9)){_0x13c649=!0x1;break;}if(_0x13c649)return _0x1f8067;}const _0x49c020=_0x2dd115(),_0x469149=_0x25442c['id'],_0x4b6378='insertion:'+_0x36cb24,_0x42ee1c=this['_setSuggestionData']({'id':_0x49c020,'type':_0x4b6378,'createdAt':new Date(),'authorId':_0x469149,'attributes':_0x747bd3});for(const _0x1b2528 of _0x264022)this['_addSuggestionMarker'](_0x4b6378,_0x49c020,_0x469149,_0x1b2528,u['getMultiRangeId']());return _0x42ee1c;}['markInlineFormat'](_0x57ddbd,_0x1d2f11,_0x2a1055=null,_0x24e6ce={}){if(_0x2a1055=_0x2a1055||Ot(_0x1d2f11),_0x57ddbd['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x305910=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a1055,'accept');return this['forceDefaultExecution'](()=>_0x305910([_0x57ddbd],_0x1d2f11,_0x24e6ce)),null;}const _0xefb32c=this['editor']['plugins']['get']('Users')['me'],_0x30b04e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x512f52,meta:_0x5be74b}of this['_findSuggestions'](_0x57ddbd,'insertion'))_0x5be74b['isOwn']&&!_0x5be74b['isInsideObject']&&_0x30b04e['push'](..._0x512f52['getRanges']());}const _0x1fa694=function(_0x1a8871,_0x33c5d6){const _0x4523a5=[];for(const _0x61fd00 of _0x33c5d6){const _0x15bf5a=_0x1a8871['getIntersection'](_0x61fd00);_0x15bf5a&&_0x4523a5['push'](_0x15bf5a);}return _0x4523a5;}(_0x57ddbd,_0x30b04e),_0x5d3d79=function(_0x3241fc,_0x308d63){const _0x3a911f=[_0x3241fc];for(const _0x266a32 of _0x308d63){let _0x489ce6=0x0;for(;_0x489ce6<_0x3a911f['length'];){const _0x1f5397=_0x3a911f[_0x489ce6]['getDifference'](_0x266a32);_0x3a911f['splice'](_0x489ce6,0x1,..._0x1f5397),_0x489ce6+=_0x1f5397['length'];}}return _0x3a911f;}(_0x57ddbd,_0x30b04e);_0x1fa694['length']&&this['_model']['change'](()=>{for(const _0x46ffdf of _0x1fa694){const _0x1da4c5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a1055,'accept');this['forceDefaultExecution'](()=>_0x1da4c5([_0x46ffdf],_0x1d2f11,_0x24e6ce));}});for(const _0x350d29 of _0x5d3d79){let _0x18d898=null,_0x1b96c3=_0x350d29['start'],_0x548769=_0x350d29['end'];for(const {suggestion:_0x21a9f1,meta:_0x5ea066}of this['_findSuggestions'](_0x350d29,'formatInline')){if(!_0x5ea066['isOwn'])continue;if(_0x21a9f1['subType']!=_0x2a1055)continue;if(!Lt(_0x21a9f1,_0x24e6ce))continue;const _0x243a6f=_0x21a9f1['getFirstRange']();if(_0x243a6f['containsRange'](_0x350d29,!0x0))return null;_0x1b96c3=_0x1b96c3['isBefore'](_0x243a6f['start'])?_0x1b96c3:_0x243a6f['start'],_0x548769=_0x548769['isAfter'](_0x243a6f['end'])?_0x548769:_0x243a6f['end'],_0x18d898?_0x243a6f['start']['isBefore'](_0x18d898['getFirstRange']()['start'])?(_0x18d898['removeMarkers'](),_0x18d898=_0x21a9f1):_0x21a9f1['removeMarkers']():_0x18d898=_0x21a9f1;}const _0x4d92c4=this['_model']['createRange'](_0x1b96c3,_0x548769);if(_0x18d898)this['_setSuggestionRange'](_0x18d898,_0x4d92c4);else{const _0x4bce7e=_0x2dd115(),_0x5243db=_0xefb32c['id'];this['_setSuggestionData']({'id':_0x4bce7e,'type':'formatInline:'+_0x2a1055,'data':_0x1d2f11,'createdAt':new Date(),'authorId':_0x5243db,'attributes':_0x24e6ce}),this['_addSuggestionMarker']('formatInline:'+_0x2a1055,_0x4bce7e,_0x5243db,_0x4d92c4);}}return null;}['markBlockFormat'](_0x5b0626,_0x5b4083,_0x39531d=[],_0x276cf7=null,_0x3dc4c8={}){_0x5b4083['formatGroupId']||(_0x5b4083['formatGroupId']=_0x5b4083['commandName']),_0x5b4083['multipleBlocks']=_0x5b0626['is']('range'),_0x276cf7=_0x276cf7||Ot(_0x5b4083);const _0x285b0b=_0x39531d['map'](_0x415a1a=>Gt(_0x415a1a,this['_model'])),_0xd6f86b=_0x5b0626['is']('range')?_0x5b0626:Gt(_0x5b0626,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3a5ba4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x276cf7,'accept');return this['forceDefaultExecution'](()=>_0x3a5ba4([_0xd6f86b],_0x5b4083,_0x3dc4c8)),null;}_0x285b0b['push'](_0xd6f86b);let _0x27196a=!0x0;for(const _0xaa760e of _0x285b0b)if(!this['_rangeIsInLocalUserInsertion'](_0xaa760e)){_0x27196a=!0x1;break;}if(_0x27196a&&'always'!==this['_trackFormatChanges']){const _0x4cbb33=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x276cf7,'accept');return this['forceDefaultExecution'](()=>_0x4cbb33([_0xd6f86b],_0x5b4083,_0x3dc4c8)),null;}let _0x516049=null,_0x2aff24=_0xd6f86b['start'],_0x2de99f=_0xd6f86b['end'];for(const {suggestion:_0x4e6db7,meta:_0xf4d1b5}of this['_findSuggestions'](_0xd6f86b,'formatBlock')){if(!_0xf4d1b5['isOwn'])continue;if(_0xf4d1b5['isNextTo']||_0xf4d1b5['containsRangeInObject']||_0xf4d1b5['isInsideObject'])continue;if(_0x4e6db7['data']['formatGroupId']!=_0x5b4083['formatGroupId'])continue;if(!Lt(_0x4e6db7,_0x3dc4c8))continue;const _0x14087f=_0x4e6db7['getFirstRange']();if(_0x4e6db7['subType']==_0x276cf7){if(_0x14087f['containsRange'](_0xd6f86b,!0x0))return null;_0x2aff24=_0x2aff24['isBefore'](_0x14087f['start'])?_0x2aff24:_0x14087f['start'],_0x2de99f=_0x2de99f['isAfter'](_0x14087f['end'])?_0x2de99f:_0x14087f['end'],_0x516049?_0x14087f['start']['isBefore'](_0x516049['getFirstRange']()['start'])?(_0x516049['removeMarkers'](),_0x516049=_0x4e6db7):_0x4e6db7['removeMarkers']():_0x516049=_0x4e6db7;}else{const _0xe7f850=_0xd6f86b['getIntersection'](_0x14087f);this['_cutOutSuggestionMarker'](_0x4e6db7,_0xe7f850);}}const _0x2c01b0=this['editor']['plugins']['get']('Users')['me'],_0x1c7bff=_0x2dd115(),_0x33d2bf=_0x2c01b0['id'];if(_0x516049)return this['_setSuggestionRange'](_0x516049,this['_model']['createRange'](_0x2aff24,_0x2de99f)),_0x516049;{const _0x5378c2=this['_setSuggestionData']({'id':_0x1c7bff,'type':'formatBlock:'+_0x276cf7,'data':_0x5b4083,'createdAt':new Date(),'authorId':_0x33d2bf,'attributes':_0x3dc4c8});return this['_addSuggestionMarker']('formatBlock:'+_0x276cf7,_0x1c7bff,_0x33d2bf,this['_model']['createRange'](_0x2aff24,_0x2de99f)),_0x5378c2;}}['markMultiRangeBlockFormat'](_0x52ad8b,_0x277506,_0x59485a=[],_0x3f204f=null,_0x1a7003={}){_0x277506['formatGroupId']||(_0x277506['formatGroupId']=_0x277506['commandName']);const _0x19439c=_0x52ad8b[0x0];_0x277506['multipleBlocks']=_0x19439c['is']('range'),_0x3f204f=_0x3f204f||Ot(_0x277506);const _0x298a3e=_0x59485a['map'](_0x2e4ecb=>Gt(_0x2e4ecb,this['_model'])),_0x160b82=_0x19439c['is']('range')?_0x52ad8b:_0x52ad8b['map'](_0x5c2286=>Gt(_0x5c2286,this['_model']));if('never'===this['_trackFormatChanges']){const _0x589448=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f204f,'accept');return this['forceDefaultExecution'](()=>_0x589448(_0x160b82,_0x277506,_0x1a7003)),null;}_0x298a3e['push'](..._0x160b82);let _0x23394d=!0x0;for(const _0x1de15c of _0x298a3e)if(!this['_rangeIsInLocalUserInsertion'](_0x1de15c)){_0x23394d=!0x1;break;}if(_0x23394d&&'always'!==this['_trackFormatChanges']){const _0x2d24c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f204f,'accept');return this['forceDefaultExecution'](()=>_0x2d24c9(_0x160b82,_0x277506,_0x1a7003)),null;}const _0xb3a24c=this['editor']['plugins']['get']('Users')['me'];for(const _0x23632b of this['getSuggestions']()){if(_0x23632b['author']['id']!=_0xb3a24c['id'])continue;if('formatBlock'!=_0x23632b['type']||_0x23632b['data']['formatGroupId']!=_0x277506['formatGroupId'])continue;if(!Lt(_0x23632b,_0x1a7003))continue;const _0x37ff8d=_0x23632b['subType']==_0x3f204f;for(let _0x2614eb=0x0;_0x2614eb<_0x160b82['length'];_0x2614eb++){const _0x2a61c3=_0x160b82[_0x2614eb];for(const _0x5909ad of _0x23632b['getMarkers']()){const _0x2f916e=_0x5909ad['getRange']();if(_0x2a61c3['isEqual'](_0x2f916e)){_0x37ff8d?(_0x160b82['splice'](_0x2614eb,0x1),_0x2614eb--):_0x23632b['removeMarker'](_0x5909ad['name']);break;}}}}if(0x0==_0x160b82['length'])return null;const _0x37bda3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f204f,'join');for(const _0x70b69a of this['getSuggestions']())if(_0x70b69a['author']['id']==_0xb3a24c['id']&&'formatBlock'==_0x70b69a['type']&&_0x70b69a['data']['formatGroupId']==_0x277506['formatGroupId']&&_0x70b69a['subType']==_0x3f204f&&Lt(_0x70b69a,_0x1a7003)&&(_0x37bda3(_0x70b69a['getRanges'](),_0x160b82)||_0x37bda3(_0x160b82,_0x70b69a['getRanges']()))){for(const _0x258ded of _0x160b82)_0x70b69a['addRange'](_0x258ded);return _0x70b69a;}const _0x265289=_0x2dd115(),_0x4e7128=_0xb3a24c['id'],_0x54253e='formatBlock:'+_0x3f204f,_0xf42eb9=this['_setSuggestionData']({'id':_0x265289,'type':_0x54253e,'data':_0x277506,'createdAt':new Date(),'authorId':_0x4e7128,'attributes':_0x1a7003});for(const _0x15d1c6 of _0x160b82)this['_addSuggestionMarker'](_0x54253e,_0x265289,_0x4e7128,_0x15d1c6,u['getMultiRangeId']());return _0xf42eb9;}['markDeletion'](_0x478a31,_0x249475=null,_0x569ef7={}){if(_0x478a31['isCollapsed'])return null;const _0x3d2aaf=this['editor']['plugins']['get']('Users')['me'],_0xd987df=new _0x150295(_0x478a31['start'],_0x478a31['end']);for(const {suggestion:_0x2bbca1,meta:_0x20fcfe}of this['_findSuggestions'](_0xd987df,'insertion'))if(_0x20fcfe['isOwn']&&!_0x20fcfe['isNextTo']){if(_0x2bbca1['isMultiRange']){const _0x365ea2=_0x2bbca1['getRanges']()['filter'](_0x4407c9=>'$graveyard'!=_0x4407c9['root']['rootName']);_0x365ea2['every'](_0x101b76=>_0xd987df['containsRange'](_0x101b76,!0x0))&&_0x2bbca1['discard']();if(_0x365ea2['some'](_0x6386a6=>_0x6386a6['containsRange'](_0xd987df,!0x0))){const _0x4cd98a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x249475,'accept');return this['forceDefaultExecution'](()=>_0x4cd98a([_0xd987df],null,_0x569ef7)),null;}}else{const _0x4add66=_0xd987df['getIntersection'](_0x2bbca1['getFirstRange']());null!==_0x4add66&&_0x2bbca1['_onDiscard']([_0x4add66],null,_0x569ef7);}}if(_0xd987df['detach'](),_0xd987df['isCollapsed']||'$graveyard'==_0xd987df['root']['rootName'])return null;let _0x3e068b=null,_0x3bfb10=_0xd987df['start'],_0x1ac09c=_0xd987df['end'];const _0x51f3bf=this['_findSuggestions'](_0xd987df,'deletion');for(const {suggestion:_0x7b1d2c,meta:_0x2a4e87}of _0x51f3bf){const _0x335a83=this['_model']['createRange'](_0x3bfb10,_0x1ac09c);if(_0x2a4e87['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2a4e87['containsRangeInObject']&&!_0x2a4e87['isInsideObject'])){if(_0x7b1d2c['isMultiRange']){if(!Lt(_0x7b1d2c,_0x569ef7))continue;let _0x3ccf43=!0x0;for(const _0x5badb4 of _0x7b1d2c['getRanges']()){if(_0x5badb4['containsRange'](_0x335a83,!0x0))return _0x7b1d2c;_0x335a83['containsRange'](_0x5badb4)||(_0x3ccf43=!0x1);}_0x3ccf43&&_0x7b1d2c['discard']();}else{const _0x93a27=_0x7b1d2c['getFirstRange']();if(_0x93a27['containsRange'](_0x335a83,!0x0))return _0x7b1d2c;if(!Lt(_0x7b1d2c,_0x569ef7)){_0x335a83['containsRange'](_0x93a27)?_0x7b1d2c['removeMarkers']():_0x93a27['containsPosition'](_0x3bfb10)?_0x3bfb10=_0x93a27['end']:_0x93a27['containsPosition'](_0x1ac09c)&&(_0x1ac09c=_0x93a27['start']);continue;}_0x3bfb10=_0x3bfb10['isBefore'](_0x93a27['start'])?_0x3bfb10:_0x93a27['start'],_0x1ac09c=_0x1ac09c['isAfter'](_0x93a27['end'])?_0x1ac09c:_0x93a27['end'],_0x569ef7=Object['assign']({},_0x7b1d2c['attributes']),_0x3e068b?_0x93a27['start']['isBefore'](_0x3e068b['getFirstRange']()['start'])?(_0x3e068b['removeMarkers'](),_0x3e068b=_0x7b1d2c):_0x7b1d2c['removeMarkers']():_0x3e068b=_0x7b1d2c;}}}if(_0x3e068b)return this['_setSuggestionRange'](_0x3e068b,this['_model']['createRange'](_0x3bfb10,_0x1ac09c)),_0x3e068b;{const _0x17ad46=_0x2dd115(),_0x38fe7c=this['_model']['createRange'](_0x3bfb10,_0x1ac09c),_0x20a4a4=_0x3d2aaf['id'],_0x2312f8=_0x249475?'deletion:'+_0x249475:'deletion',_0x8b14e7=this['_setSuggestionData']({'id':_0x17ad46,'type':_0x2312f8,'createdAt':new Date(),'authorId':_0x20a4a4,'attributes':_0x569ef7});return this['_addSuggestionMarker'](_0x2312f8,_0x17ad46,_0x20a4a4,_0x38fe7c),_0x8b14e7;}}['markMultiRangeDeletion'](_0x2a2e54,_0x584faf='multi',_0x3a7e3f={}){const _0xceff6b=this['editor']['plugins']['get']('Users')['me'],_0x3a2168=_0x2a2e54['map'](_0x4d68e3=>new _0x150295(_0x4d68e3['start'],_0x4d68e3['end'])),_0x5b60af=new Set();for(const {suggestion:_0x3d7b47,meta:_0x35e02b}of this['_findSuggestions'](_0x3a2168,'insertion'))_0x35e02b['isOwn']&&!_0x35e02b['isNextTo']&&_0x5b60af['add'](_0x3d7b47);for(const _0x3753ce of _0x5b60af)if(_0x3753ce['isMultiRange']){const _0x11c162=_0x3753ce['getRanges']();(!_0x3753ce['attributes']||!_0x3753ce['attributes']['skipNestingCheck'])&&(_0x11c162['every'](_0x536b9e=>_0x3a2168['some'](_0x1ecf20=>_0x1ecf20['containsRange'](_0x536b9e,!0x0)))&&_0x3753ce['discard']());if(_0x3a2168['every'](_0x5cae49=>_0x11c162['some'](_0x23186b=>_0x23186b['containsRange'](_0x5cae49,!0x0)))){const _0x149e70=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x584faf,'accept');return this['forceDefaultExecution'](()=>_0x149e70(_0x2a2e54,null,_0x3a7e3f)),null;}}else{const _0x38ee32=_0x3753ce['getFirstRange']();_0x3a2168['some'](_0x545426=>_0x545426['containsRange'](_0x38ee32,!0x0))&&_0x3753ce['discard']();if(_0x3a2168['every'](_0x5a81bd=>_0x38ee32['containsRange'](_0x5a81bd,!0x0))){const _0x446688=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x584faf,'accept');return this['forceDefaultExecution'](()=>_0x446688(_0x3a2168,null,_0x3a7e3f)),null;}}const _0x8f8e85=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x584faf,'join');let _0x2ebc2f=null;for(const _0x49b99b of this['getSuggestions']())if(_0x49b99b['author']['id']==_0xceff6b['id']&&_0x49b99b['isInContent']&&'deletion'==_0x49b99b['type']&&_0x49b99b['subType']==_0x584faf&&Lt(_0x49b99b,_0x3a7e3f)&&(_0x8f8e85(_0x49b99b['getRanges'](),_0x3a2168)||_0x8f8e85(_0x3a2168,_0x49b99b['getRanges']()))){if(_0x2ebc2f){if(_0x49b99b['commentThread']&&_0x49b99b['commentThread']['length'])continue;for(const _0x500590 of _0x49b99b['getRanges']())_0x2ebc2f['isIntersectingWithRange'](_0x500590)||_0x2ebc2f['addRange'](_0x500590);_0x49b99b['removeMarkers']();}else{_0x2ebc2f=_0x49b99b;for(const _0x48fbed of _0x3a2168)_0x49b99b['isIntersectingWithRange'](_0x48fbed)||_0x49b99b['addRange'](_0x48fbed);}}if(_0x2ebc2f)return _0x2ebc2f;_0x5b60af['clear']();for(const {suggestion:_0x3d730c,meta:_0x2bb6a3}of this['_findSuggestions'](_0x3a2168,'deletion'))_0x2bb6a3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2bb6a3['containsRangeInObject']&&!_0x2bb6a3['isInsideObject'])&&Lt(_0x3d730c,_0x3a7e3f)&&_0x5b60af['add'](_0x3d730c);for(const _0x11262e of _0x5b60af){const _0x47003f=_0x11262e['getRanges']();if(!_0x3a7e3f||!_0x3a7e3f['skipNestingCheck']){if(_0x3a2168['every'](_0x1e655b=>_0x47003f['some'](_0x378c57=>_0x378c57['containsRange'](_0x1e655b,!0x0))))return _0x11262e;}(!_0x11262e['attributes']||!_0x11262e['attributes']['skipNestingCheck'])&&(_0x47003f['every'](_0x19b338=>_0x3a2168['some'](_0x162f33=>_0x162f33['containsRange'](_0x19b338,!0x0)))&&_0x11262e['discard']());}const _0x8b20a8=_0x2dd115(),_0x250cc7=_0xceff6b['id'],_0x29e2af='deletion:'+_0x584faf,_0x23adb8=this['_setSuggestionData']({'id':_0x8b20a8,'type':_0x29e2af,'createdAt':new Date(),'authorId':_0x250cc7,'attributes':_0x3a7e3f});for(const _0x47182f of _0x3a2168)_0x47182f['detach'](),_0x47182f['isCollapsed']||'$graveyard'==_0x47182f['root']['rootName']||this['_addSuggestionMarker'](_0x29e2af,_0x8b20a8,_0x250cc7,_0x47182f,u['getMultiRangeId']());return _0x23adb8;}['markAttributeChange'](_0x4692be,_0x51d9aa,_0x49a755,_0x2a0c0b,_0xc93c7d){if(_0x4692be['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2149b5=this['editor']['plugins']['get']('Users')['me']['id'],_0x1793fd=Array['from'](this['_suggestions']['values']())['filter'](_0x2ba265=>'attribute'==_0x2ba265['type']&&_0x2ba265['data']['key']==_0x51d9aa&&_0x2ba265['isIntersectingWithRange'](_0x4692be));if('default'===this['_trackFormatChanges']){const _0x461fe0=this['_findSuggestions'](_0x4692be,'insertion')['filter'](({meta:_0x5a3603})=>_0x5a3603['isOwn']&&!_0x5a3603['isInsideObject']&&!_0x5a3603['isNextTo'])['map'](({suggestion:_0x2ee4d5})=>_0x2ee4d5);_0x1793fd['unshift'](..._0x461fe0);}const _0x5249e7=new Map([[_0x4692be,_0x49a755]]);for(const _0x26ba7a of _0x1793fd){const _0x5791cb='attribute'==_0x26ba7a['type']?_0x26ba7a['data']['oldValue']:void 0x0,_0x13fc63=_0x26ba7a['getFirstRange'](),_0x840def=Array['from'](_0x5249e7['keys']())['find'](_0x385af6=>_0x385af6['isIntersecting'](_0x13fc63));if(!_0x840def)continue;const _0x3d934e=_0x840def['getDifference'](_0x13fc63);this['_isBlockAttribute'](_0x51d9aa)&&'insertion'==_0x26ba7a['type']&&0x0!=_0x3d934e['length']||(_0x5249e7['delete'](_0x840def),_0x3d934e['forEach'](_0x1b578e=>{_0x5249e7['set'](_0x1b578e,_0x49a755);}),'insertion'!=_0x26ba7a['type']&&_0x5791cb!=_0x2a0c0b&&_0x5249e7['set'](_0x840def['getIntersection'](_0x13fc63),_0x5791cb));}const _0x5340be=[];for(const [_0x3d2bd9,_0x47a355]of _0x5249e7){const _0x436ce4=_0x2dd115(),_0x22d054={'key':_0x51d9aa,'oldValue':_0x47a355,'newValue':_0x2a0c0b};_0x51d9aa['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':_0x51d9aa});const _0x9954a6=('attribute:'+(_0x51d9aa+'|'+Ot({'newValue':_0x2a0c0b})))['substring'](0x0,0x3c),_0x3dcb31=this['_setSuggestionData']({'id':_0x436ce4,'type':_0x9954a6,'data':_0x22d054,'createdAt':new Date(),'authorId':_0x2149b5,'attributes':_0xc93c7d});_0x5340be['push'](_0x3dcb31),this['_addSuggestionMarker'](_0x9954a6,_0x436ce4,_0x2149b5,_0x3d2bd9);}return _0x5340be;}['enableDefaultAttributesIntegration'](_0xdb098e){this['enableCommand'](_0xdb098e,(_0x2c852e,..._0x23b335)=>{this['_recordAttributeChanges'](()=>{_0x2c852e(..._0x23b335);});});}['registerBlockAttribute'](_0x30d43e){this['_blockAttributeKeys']['add'](_0x30d43e);}['registerInlineAttribute'](_0x5e72e6){this['_inlineAttributeKeys']['add'](_0x5e72e6);}['_getAttributeKey'](_0x275ed2){return'attribute'==_0x275ed2['type']?_0x275ed2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1cc929,_0x25a04f){const _0x521654=_0x1cc929['getFirstMarker']();this['_model']['change'](_0x138550=>{_0x138550['updateMarker'](_0x521654,{'range':_0x25a04f});});}['_addThreadToSuggestion'](_0x535197){const _0x300434=_0x535197['id'],_0x26d0be=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x300434)||this['_commentsRepository']['addCommentThread']({'channelId':_0x26d0be,'threadId':_0x300434,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x317f70=this['_commentsRepository']['getCommentThread'](_0x300434);_0x317f70['unbind']('isRemovable'),_0x317f70['isRemovable']=!0x1,_0x535197['commentThread']=_0x317f70;}['_checkSuggestionCorrectness'](_0x26e6f0,_0x59605c,_0x11cd16,_0x44fb5f){if(_0x26e6f0['type']!=_0x59605c||_0x26e6f0['subType']!=_0x11cd16||_0x26e6f0['creator']['id']!=_0x44fb5f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x9391a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1848b5,_0xa66e){const _0x123e4b=_0x1848b5['getFirstRange']();if(_0xa66e['isEqual'](_0x123e4b))_0x1848b5['removeMarkers']();else{if(_0x123e4b['containsRange'](_0xa66e)){const _0x23e045=this['_model']['createPositionAt'](_0xa66e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1848b5,this['_model']['createRange'](_0x123e4b['start'],_0x23e045));const _0x368100=_0x2dd115(),_0x26b6f8=_0x1848b5['creator']['id'],_0x273179=_0x1848b5['type']+':'+_0x1848b5['subType'];this['_setSuggestionData']({'id':_0x368100,'type':_0x273179,'createdAt':new Date(),'authorId':_0x26b6f8,'data':_0x1848b5['data'],'attributes':_0x1848b5['attributes']});const _0x4db737=this['_model']['createPositionAt'](_0xa66e['end']['parent'],'after'),_0x48163f=this['_model']['createRange'](_0x4db737,_0x123e4b['end']);this['_addSuggestionMarker'](_0x273179,_0x368100,_0x26b6f8,_0x48163f);}else{if(_0x123e4b['containsPosition'](_0xa66e['start'])){const _0x12cfe2=this['_model']['createPositionAt'](_0xa66e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1848b5,this['_model']['createRange'](_0x123e4b['start'],_0x12cfe2));}else{const _0x3ea06c=this['_model']['createPositionAt'](_0xa66e['end']['parent'],'after');this['_setSuggestionRange'](_0x1848b5,this['_model']['createRange'](_0x3ea06c,_0x123e4b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x514677){for(const {suggestion:_0x5e9770,meta:_0xe57056}of this['_findSuggestions'](_0x514677,'insertion')){if(!_0xe57056['isOwn'])continue;const _0x4e7bec=_0x5e9770['getRanges']();for(const _0x2fd44a of _0x4e7bec)if(!_0x514677['getDifference'](_0x2fd44a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3c1419){const _0x13fbfa=this['editor']['plugins']['get']('Users')['getUser'](_0x3c1419);if(!_0x13fbfa)throw new _0x9391a('track-changes-user-not-found',this);return _0x13fbfa;}['_getExternalAuthor'](_0x32fcc8){const _0xde8674=this['editor']['plugins']['get']('Users'),_0x5712fc=_0x58ab75('external:'+_0x32fcc8),_0x428652=_0xde8674['getUser'](_0x5712fc);return _0x428652||_0xde8674['addUser']({'id':_0x5712fc,'name':_0x32fcc8});}['_createSuggestion'](_0x2a18e7,_0x47e90a,_0x1e982f,_0x2410d7,_0x4c4748){const _0xa4bf85=this['_getAuthorFromId'](_0x2410d7),_0x533f0c=this['_suggestionFactory']['buildSuggestion'](_0x2a18e7,_0x47e90a,_0x1e982f,_0xa4bf85,_0x4c4748,_0x525f7c=>{this['_updateSuggestionData'](_0x1e982f,{'attributes':_0x525f7c});const _0x336096=this['getSuggestion'](_0x1e982f);this['_joinWithAdjacentSuggestions'](new Set([_0x336096])),this['_refreshSuggestionsChain'](new Set([_0x336096]));});return this['listenTo'](_0x533f0c,'accept',()=>{this['_updateSuggestionData'](_0x1e982f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x533f0c,'discard',()=>{this['_updateSuggestionData'](_0x1e982f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1e982f,_0x533f0c),this['_suggestionState']['set'](_0x533f0c,'notReady'),_0x533f0c;}['_splitMarkerName'](_0x3959fe){const _0x1c9c8a=_0x3959fe['split'](':');return{'group':_0x1c9c8a[0x0],'type':_0x1c9c8a[0x1],'subType':_0x1c9c8a['length']>=0x5?_0x1c9c8a[0x2]:null,'id':_0x1c9c8a['length']<0x5?_0x1c9c8a[0x2]:_0x1c9c8a[0x3],'authorId':_0x1c9c8a['length']<0x5?_0x1c9c8a[0x3]:_0x1c9c8a[0x4],'markerCount':0x6==_0x1c9c8a['length']?_0x1c9c8a[0x5]:null};}['_breakSuggestionMarker'](_0x4c387a,_0x21b514,_0x511153){const _0xa397b8=_0x4c387a['getFirstRange'](),_0x213e7d=_0xa397b8['start'],_0x4be7af=_0xa397b8['end'];this['_setSuggestionRange'](_0x4c387a,this['_model']['createRange'](_0x213e7d,_0x21b514));const _0x3a858c=_0x2dd115(),_0x2dd4cd=_0x4c387a['creator']['id'],_0x451420=_0x4c387a['type']+(_0x4c387a['subType']?':'+_0x4c387a['subType']:'');this['_setSuggestionData']({'id':_0x3a858c,'type':_0x451420,'createdAt':new Date(),'authorId':_0x2dd4cd,'originalSuggestionId':_0x4c387a['id'],'attributes':_0x4c387a['attributes'],'data':_0x4c387a['data']});const _0x2f39d7=this['_getAttributeKey'](_0x4c387a);('formatBlock'==_0x4c387a['type']||_0x2f39d7&&this['_isBlockAttribute'](_0x2f39d7))&&(_0x511153=this['_model']['createPositionBefore'](_0x511153['parent'])),this['_addSuggestionMarker'](_0x451420,_0x3a858c,_0x2dd4cd,this['_model']['createRange'](_0x511153,_0x4be7af));}['_findSuggestions'](_0xab3914,_0x22b2d4=null){const _0x37e295=[],_0x246c9c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xab3914)||(_0xab3914=[_0xab3914]);for(const _0x4333db of this['getSuggestions']()){if(!_0x4333db['isInContent'])continue;if(_0x22b2d4&&_0x4333db['type']!=_0x22b2d4)continue;let _0x35e119=!0x1;for(const _0x438041 of _0x4333db['getRanges']()){for(const _0x2abda0 of _0xab3914){const _0x2541eb=_0x2abda0['start']['isEqual'](_0x438041['end'])||_0x2abda0['end']['isEqual'](_0x438041['start']);if(_0x2541eb||_0x2abda0['getIntersection'](_0x438041)){const _0x24ac68=_0x2abda0['containsRange'](_0x438041)&&Rt(this['_model']['schema'],_0x438041['start'],_0x2abda0),_0x5c8f05=_0x438041['containsRange'](_0x2abda0)&&Rt(this['_model']['schema'],_0x2abda0['start'],_0x438041);_0x37e295['push']({'suggestion':_0x4333db,'meta':{'isOwn':_0x246c9c==_0x4333db['author'],'isNextTo':_0x2541eb,'isInsideObject':_0x24ac68,'containsRangeInObject':_0x5c8f05}}),_0x35e119=!0x0;break;}}if(_0x35e119)break;}}return _0x37e295;}['_addSuggestionMarker'](_0x145d46,_0x122905,_0xdeaee3,_0x105ca4,_0x522bfd){this['_model']['change'](_0x29bc4a=>{let _0x4026ae='suggestion:'+_0x145d46+':'+_0x122905+':'+_0xdeaee3;_0x522bfd&&(_0x4026ae=_0x4026ae+':'+_0x522bfd),_0x29bc4a['addMarker'](_0x4026ae,{'range':_0x105ca4,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x95d669){const _0x192566=_0x95d669['previous'],_0x8856fd=_0x95d669['next'];_0x95d669['previous']=null,_0x95d669['next']=null,null!=_0x192566&&_0x192566['next']==_0x95d669&&(_0x192566['next']=_0x8856fd),null!=_0x8856fd&&_0x8856fd['previous']==_0x95d669&&(_0x8856fd['previous']=_0x192566),'ready'==this['_suggestionState']['get'](_0x95d669)&&(this['_suggestionState']['set'](_0x95d669,'removed'),this['fire']('suggestionUnloaded',_0x95d669,_0x192566,_0x8856fd));}['_setSuggestionData'](_0x163003){const _0x2a8433=_0x163003['id'],_0x33cef4=this['addSuggestionData'](_0x163003);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xb9dc04=this['editor']['plugins']['get']('PendingActions'),_0x754fce=_0x33cef4['hasComments'],_0xee17f1=_0x33cef4['subType']?_0x33cef4['type']+':'+_0x33cef4['subType']:_0x33cef4['type'],_0x15229a=this['editor']['locale'],_0x52cb42=_0xb9dc04['add'](o(_0x15229a,'PENDING_ACTION_SUGGESTION')),_0x5c779f={'id':_0x2a8433,'type':_0xee17f1,'hasComments':_0x754fce,'data':_0x163003['data']||null,'originalSuggestionId':_0x163003['originalSuggestionId']||null,'attributes':_0x33cef4['attributes']};this['_adapter']['addSuggestion'](_0x5c779f)['then'](_0x10fa2b=>{_0x33cef4['_saved']=!0x0,_0xb9dc04['remove'](_0x52cb42),_0x10fa2b&&_0x10fa2b['createdAt']&&(this['_suggestions']['get'](_0x2a8433)['createdAt']=_0x10fa2b['createdAt']);})['catch'](_0x4eb75f=>{throw _0x4266f5('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x33cef4['discard']();}),_0x33cef4['stopListening'](),this['_suggestions']['delete'](_0x33cef4['id']),this['_suggestionState']['delete'](_0x33cef4),_0x4eb75f;});}return _0x33cef4;}['_isBlockAttribute'](_0x310414){return this['_blockAttributeKeys']['has'](_0x310414);}['_updateSuggestionData'](_0x2605b0,_0x570414){const _0x368285=this['editor']['plugins']['get']('PendingActions'),_0x358bd7=this['getSuggestion'](_0x2605b0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x358bd7['_saved']){const _0x1b677f=_0x368285['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2605b0,_0x570414)['then'](()=>{_0x368285['remove'](_0x1b677f);});}else _0x358bd7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2605b0,_0x570414);});}}['_getSuggestionData'](_0x4ac081){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x9391a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4ac081);}['_handleNewSuggestionMarker'](_0x38e475){const {id:_0x322e5f,type:_0x5b436f,subType:_0x33ff93,authorId:_0x3ab0f0}=this['_splitMarkerName'](_0x38e475),_0x3d66b8=this['_suggestions']['get'](_0x322e5f)||this['_createSuggestion'](_0x5b436f,_0x33ff93,_0x322e5f,_0x3ab0f0,{});switch(this['_checkSuggestionCorrectness'](_0x3d66b8,_0x5b436f,_0x33ff93,_0x3ab0f0),this['_suggestionState']['get'](_0x3d66b8)){case'notReady':this['_getSuggestionData'](_0x322e5f)['then'](_0x10f6d7=>{let _0x316ef0=Promise['resolve']();_0x10f6d7['hasComments']&&(_0x316ef0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x322e5f})),_0x316ef0['then'](()=>{this['addSuggestionData'](_0x10f6d7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3d66b8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x322e5f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3d66b8,'ready'),this['fire']('suggestionLoaded',_0x3d66b8);break;case'ready':this['fire']('suggestionChanged',_0x3d66b8);}return _0x3d66b8['addMarkerName'](_0x38e475),_0x3d66b8;}['_refreshSuggestionsChain'](_0x1adf90){const _0x4e339e=Array['from'](_0x1adf90),_0x580190=_0x4e339e['filter'](_0x310c1a=>'attribute'==_0x310c1a['type']);this['_refreshAttributeSuggestionsChain'](_0x580190);const _0x3f1525=_0x4e339e['filter'](_0x97b285=>!_0x97b285['isMultiRange']&&'attribute'!=_0x97b285['type']),_0x579cd6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb8bdb3=>!_0xb8bdb3['isMultiRange']&&'attribute'!=_0xb8bdb3['type']),_0x467303=_0x579cd6['filter'](_0x2650c5=>!_0x1adf90['has'](_0x2650c5)),_0x2f3686=new Map(_0x579cd6['map'](_0x3bf348=>[_0x3bf348,this['_suggestionFactory']['getSuggestionCallback'](_0x3bf348['type'],_0x3bf348['subType'],'chain')])),_0x34916f=new Map(_0x579cd6['map'](_0x8a10ed=>[_0x8a10ed,_0x8a10ed['getFirstRange']()])),_0x745c5d=new Set(),_0x566c39=new Set();for(let _0x5cb069=0x0;_0x5cb069<_0x3f1525['length'];_0x5cb069++)_0x1787c2(_0x3f1525[_0x5cb069],_0x3f1525,_0x5cb069+0x1);for(let _0x26fe20=0x0;_0x26fe20<_0x3f1525['length'];_0x26fe20++)_0x1787c2(_0x3f1525[_0x26fe20],_0x467303,0x0);const _0x32bb0a=new Set();for(let _0x1495cd=0x0;_0x1495cd<_0x3f1525['length'];_0x1495cd++){const _0xfc8218=_0x3f1525[_0x1495cd];!_0x566c39['has'](_0xfc8218)&&_0xfc8218['previous']&&(_0x32bb0a['add'](_0xfc8218['previous']),_0xfc8218['previous']['next']===_0xfc8218&&(_0xfc8218['previous']['next']=null),_0xfc8218['previous']=null),!_0x745c5d['has'](_0xfc8218)&&_0xfc8218['next']&&(_0x32bb0a['add'](_0xfc8218['next']),_0xfc8218['next']['previous']===_0xfc8218&&(_0xfc8218['next']['previous']=null),_0xfc8218['next']=null);}function _0x1787c2(_0x620fe1,_0x5932d7,_0x985ca){for(let _0x448bf1=_0x985ca;_0x448bf1<_0x5932d7['length'];_0x448bf1++){const _0x12d7cf=_0xd285d6(_0x620fe1,_0x5932d7[_0x448bf1]);_0x12d7cf&&(_0x12d7cf[0x0]['next']=_0x12d7cf[0x1],_0x12d7cf[0x1]['previous']=_0x12d7cf[0x0],_0x745c5d['add'](_0x12d7cf[0x0]),_0x566c39['add'](_0x12d7cf[0x1]));}}function _0xd285d6(_0x1dd0c2,_0x328dd9){if(_0x1dd0c2['author']['id']!==_0x328dd9['author']['id'])return null;const _0x3940f3=_0x2f3686['get'](_0x1dd0c2)(_0x1dd0c2,_0x328dd9,_0x34916f['get'](_0x1dd0c2),_0x34916f['get'](_0x328dd9));if(!_0x3940f3)return null;return _0x2f3686['get'](_0x328dd9)(_0x1dd0c2,_0x328dd9,_0x34916f['get'](_0x1dd0c2),_0x34916f['get'](_0x328dd9))?_0x3940f3[0x1]['commentThread']&&_0x3940f3[0x1]['commentThread']['length']?null:_0x3940f3:null;}_0x32bb0a['size']&&this['_refreshSuggestionsChain'](_0x32bb0a);}['_refreshAttributeSuggestionsChain'](_0x412955){if(0x0==_0x412955['length'])return;const _0x5becb4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x67c9b7=>'attribute'==_0x67c9b7['type']&&_0x67c9b7['_isDataLoaded']),_0x392316=[],_0x2cb9c5=new Map();for(const _0x2619cf of _0x5becb4){const _0x1585e4=_0x58ab75(_0x2619cf['attributes']);_0x2cb9c5['has'](_0x1585e4)||(_0x2cb9c5['set'](_0x1585e4,_0x392316['length']),_0x392316['push']([]));const _0x263061=_0x2cb9c5['get'](_0x1585e4);_0x392316[_0x263061]['push'](_0x2619cf);}!(function(){_0x392316['sort']((_0x5c689b,_0x4c1634)=>{const _0x7b8c33=_0x5c689b[0x0]['createdAt'],_0x13a0e1=_0x4c1634[0x0]['createdAt'];return _0x7b8c33==_0x13a0e1?_0x5c689b[0x0]['attributes']['groupId']<_0x4c1634[0x0]['attributes']['groupId']?-0x1:0x1:_0x7b8c33<_0x13a0e1?-0x1:0x1;});for(const _0x1eb92b of _0x392316)_0x1eb92b['sort']((_0x3e7352,_0x58d187)=>_0x3e7352['id']<_0x58d187['id']?-0x1:0x1);}());for(let _0x3f515c=0x0;_0x3f515c<_0x392316['length'];_0x3f515c++){if(0x0==_0x392316[_0x3f515c]['length'])continue;const _0x2808c6=[];for(let _0x1793ac=_0x3f515c+0x1;_0x1793ac<_0x392316['length'];_0x1793ac++)0x0!=_0x392316[_0x1793ac]['length']&&_0x3e3907(_0x392316[_0x3f515c],_0x392316[_0x1793ac])&&_0x2808c6['push'](_0x1793ac);for(const _0x3a1a5b of _0x2808c6)_0x392316[_0x3f515c]=_0x392316[_0x3f515c]['concat'](_0x392316[_0x3a1a5b]),_0x392316[_0x3a1a5b]=[];}for(const _0x7213f8 of _0x392316)for(let _0x54ff99=0x0;_0x54ff99<_0x7213f8['length'];_0x54ff99++){const _0x13268c=_0x7213f8[_0x54ff99+0x1]||null;_0x7213f8[_0x54ff99]['next']!==_0x13268c&&(_0x7213f8[_0x54ff99]['next']=_0x13268c);}for(const _0x4c1869 of _0x392316)for(let _0xc535c3=0x0;_0xc535c3<_0x4c1869['length'];_0xc535c3++){const _0x7e614c=_0x4c1869[_0xc535c3-0x1]||null;_0x4c1869[_0xc535c3]['previous']!==_0x7e614c&&(_0x4c1869[_0xc535c3]['previous']=_0x7e614c);}function _0x3e3907(_0x2ca8ce,_0x5f5788){if(_0x2ca8ce[0x0]['attributes']['groupId']!==_0x5f5788[0x0]['attributes']['groupId']&&_0x2ca8ce[0x0]['author']!==_0x5f5788[0x0]['author'])return!0x1;if(!function(_0xb34b4f,_0x2f332b){if(!_0xb34b4f['hasComments']&&!_0x2f332b['hasComments'])return!0x0;if(_0xb34b4f['hasComments']&&_0x2f332b['hasComments'])return!0x1;if(_0xb34b4f['hasComments']&&_0x2f332b['createdAt']<_0xb34b4f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2f332b['hasComments']&&_0xb34b4f['createdAt']<_0x2f332b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2ca8ce[0x0],_0x5f5788[0x0]))return!0x1;const _0x533fa7=Bt(_0x2ca8ce[0x0]['attributes'],'groupId'),_0x52b8c8=Bt(_0x5f5788[0x0]['attributes'],'groupId');if(!_0x10efed(_0x533fa7,_0x52b8c8))return!0x1;return!!_0x2ca8ce['every'](_0x2cf78f=>_0x5f5788['some'](_0x593d2c=>_0x2cf78f['getFirstRange']()['isEqual'](_0x593d2c['getFirstRange']())))&&_0x5f5788['every'](_0x4b0c06=>_0x2ca8ce['some'](_0x1c942c=>_0x4b0c06['getFirstRange']()['isEqual'](_0x1c942c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4ae9a6){const _0x472ac9=Array['from'](_0x4ae9a6),_0x377475=this['getSuggestions']({'skipNotAttached':!0x0}),_0x14f8a5=_0x377475['filter'](_0x3be1c4=>!_0x4ae9a6['has'](_0x3be1c4)),_0x5a9711=new Map(_0x472ac9['map'](_0x494c41=>[_0x494c41,this['_suggestionFactory']['getSuggestionCallback'](_0x494c41['type'],_0x494c41['subType'],'join')])),_0x4e4c5d=new Map(_0x377475['map'](_0x41802e=>[_0x41802e,_0x41802e['getRanges']()]));for(let _0x57b20c=0x0;_0x57b20c<_0x472ac9['length'];_0x57b20c++){if(_0x5bdcdb(this,_0x472ac9[_0x57b20c],_0x472ac9,_0x57b20c+0x1))return!0x0;}for(let _0x4f9608=0x0;_0x4f9608<_0x472ac9['length'];_0x4f9608++){if(_0x5bdcdb(this,_0x472ac9[_0x4f9608],_0x14f8a5,0x0))return!0x0;}return!0x1;function _0x5bdcdb(_0x4d9182,_0x10f5ae,_0x426f9b,_0x4f56a2){for(let _0x185658=_0x4f56a2;_0x185658<_0x426f9b['length'];_0x185658++){const _0x283ddd=_0x426f9b[_0x185658];if(_0x283ddd['type']!==_0x10f5ae['type']||_0x283ddd['author']['id']!==_0x10f5ae['author']['id']||_0x283ddd['subType']!==_0x10f5ae['subType'])continue;if(!Pt(_0x10f5ae,_0x283ddd))continue;if('attribute'==_0x10f5ae['type']&&_0x10f5ae['data']['oldValue']!=_0x283ddd['data']['oldValue'])continue;if('attribute'==_0x10f5ae['type']&&_0x4d9182['_isBlockAttribute'](_0x10f5ae['data']['key']))continue;if('formatBlock'==_0x10f5ae['type']){const _0x14aa5a=_0x4d9182['editor']['model'],_0x3bbcc1=_0x10f5ae['getContainedElement']();if(_0x3bbcc1&&(_0x14aa5a['schema']['isObject'](_0x3bbcc1)||_0x14aa5a['schema']['isLimit'](_0x3bbcc1)))continue;}const _0x2f9121=_0x5a9711['get'](_0x10f5ae),_0x50521e=_0x4e4c5d['get'](_0x10f5ae),_0x53a36c=_0x4e4c5d['get'](_0x283ddd),_0x4349db=_0x10f5ae['commentThread']&&_0x10f5ae['commentThread']['length'],_0x4070d6=_0x283ddd['commentThread']&&_0x283ddd['commentThread']['length'];if(!_0x4349db&&_0x2f9121(_0x53a36c,_0x50521e))return _0x4d9182['_joinSuggestions'](_0x283ddd,_0x10f5ae),_0x4e4c5d['delete'](_0x10f5ae),!0x0;if(!_0x4070d6&&_0x2f9121(_0x50521e,_0x53a36c))return _0x4d9182['_joinSuggestions'](_0x10f5ae,_0x283ddd),_0x4e4c5d['delete'](_0x283ddd),!0x0;}return!0x1;}}['_joinSuggestions'](_0xee9d8c,_0x2c1302){if(_0xee9d8c['isMultiRange']){for(const _0x4269de of _0x2c1302['getRanges']())_0xee9d8c['addRange'](_0x4269de);}else{const _0x3de37c=_0x2c1302['getFirstRange']()['end'];this['_setSuggestionRange'](_0xee9d8c,this['_model']['createRange'](_0xee9d8c['getFirstRange']()['start'],_0x3de37c));}_0x2c1302['removeMarkers']();}['_getMarkerAnnouncementText'](_0x26300,_0x295fd0){const _0x161145=_0x26300['startsWith']('format')||_0x26300['startsWith']('attribute')?'FORMATTING':_0x26300['toUpperCase']();return o(this['editor']['locale'],_0x295fd0+'_'+_0x161145+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x68622b=this['editor'];if(!_0x68622b['ui'])return;const {ariaLiveAnnouncer:_0x19db5f}=_0x68622b['ui'];_0x17149d(this['_model'],({left:_0x3d320c,entered:_0x592d15})=>{for(const _0x3f6f59 of _0x3d320c){const {group:_0x4b670f,type:_0x52c41d}=this['_splitMarkerName'](_0x3f6f59['name']);if('suggestion'===_0x4b670f){_0x19db5f['announce'](this['_getMarkerAnnouncementText'](_0x52c41d,'LEAVE'));break;}}for(const _0x57271b of _0x592d15){const {group:_0x267df6,type:_0x5a2c83}=this['_splitMarkerName'](_0x57271b['name']);if('suggestion'===_0x267df6){_0x19db5f['announce'](this['_getMarkerAnnouncementText'](_0x5a2c83,'ENTER'));break;}}});}['_processAttributeChanges'](_0x130b65){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3a5c58=this['editor'],_0x3aabb1=_0x3a5c58['model']['document']['differ']['getChanges']();if(0x0==_0x3aabb1['length'])return!0x1;const _0x59e116=[],_0x149b29=_0x3aabb1['filter'](_0x2f410e=>'attribute'==_0x2f410e['type']),_0x45933d=_0x3aabb1['filter'](_0x125698=>'insert'==_0x125698['type']&&'$text'!=_0x125698['name']),_0x34033b=_0x3aabb1['filter'](_0x48a3a0=>'remove'==_0x48a3a0['type']&&'$text'!=_0x48a3a0['name']);for(const _0x5868ad of _0x149b29)_0x59e116['push']({'key':_0x5868ad['attributeKey'],'newValue':_0x5868ad['attributeNewValue'],'oldValue':_0x5868ad['attributeOldValue'],'range':Ut(_0x5868ad['range'],_0x3a5c58['model'])});for(const _0x37ed65 of _0x45933d){const _0x43bfb8=_0x34033b['find'](_0x2aba6e=>_0x2aba6e['position']['isEqual'](_0x37ed65['position']));_0x43bfb8&&_0x59e116['push']({'key':m,'newValue':_0x37ed65['name'],'oldValue':_0x43bfb8['name'],'range':_0x3a5c58['model']['createRangeOn'](_0x37ed65['position']['nodeAfter'])});}return 0x0!=_0x59e116['length']&&this['_reduceExistingSuggestions'](_0x130b65,_0x59e116);}['_processAttributeSuggestions'](_0x5d97f6){let _0x4694eb=!0x1;const _0x29f27c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x338c94=>_0x338c94['data']['newRange']&&_0x338c94['name']['startsWith']('suggestion:attribute:'));for(const _0x13efd1 of _0x29f27c){const {subType:_0x38d374,id:_0x70c87a}=this['_splitMarkerName'](_0x13efd1['name']),_0x5c8110=_0x38d374['split']('|')[0x0];for(const _0x486328 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x486328['id']!=_0x70c87a&&'attribute'==_0x486328['type']&&_0x486328['data']&&_0x486328['data']['key']==_0x5c8110&&_0x486328['getFirstRange']()['isIntersecting'](_0x13efd1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x486328,_0x13efd1['data']['newRange'],_0x5d97f6),_0x4694eb=!0x0);}return _0x4694eb;}['_recordAttributeChanges'](_0x3da6a8){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x3da6a8();}['_isRegisteredAttribute'](_0x1edbc8){const _0x45f33a=this['_isBlockAttribute'](_0x1edbc8),_0x3752b8=this['_inlineAttributeKeys']['has'](_0x1edbc8);return _0x45f33a||_0x3752b8;}['_reduceExistingSuggestions'](_0xcf1aa4,_0x3e7dda){if(0x0==_0x3e7dda['length'])return!0x1;let _0x194127=!0x1;for(const _0x343da5 of _0x3e7dda){const _0x584253=this['_findSuggestions'](_0x343da5['range'],'attribute')['filter'](_0x45021c=>!_0x45021c['meta']['isNextTo'])['map'](_0xdc48e2=>_0xdc48e2['suggestion']),_0x1f25c4=_0x58ab75({'newValue':_0x343da5['newValue']});_0x584253['filter'](_0x48b786=>{const [_0x53cffb,_0x5c9a29]=_0x48b786['subType']['split']('|');return _0x53cffb==_0x343da5['key']&&_0x5c9a29!=_0x1f25c4;})['forEach'](_0x15faf8=>{this['_reduceSuggestionAttributeRange'](_0x15faf8,_0x343da5['range'],_0xcf1aa4),_0x194127=!0x0;});}return _0x194127;}['_reduceSuggestionAttributeRange'](_0x326a91,_0x4ae883,_0x15098e){const _0x12053c=_0x326a91['getFirstRange']()['getDifference'](_0x4ae883);0x0!==_0x12053c['length']?0x1!==_0x12053c['length']?this['_breakSuggestionMarker'](_0x326a91,_0x4ae883['start'],_0x4ae883['end']):this['_setSuggestionRange'](_0x326a91,_0x12053c[0x0]):_0x15098e['removeMarker'](_0x326a91['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1db2a6){this['_editor']=_0x1db2a6,this['_model']=_0x1db2a6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2cf2a,_0x1f6b60,_0x56b52b,_0x12040a,_0x12f732,_0x2850fc){return new u(this['_model'],{'type':_0x2cf2a,'subType':_0x1f6b60,'id':_0x56b52b,'author':_0x12040a,'creator':_0x12040a,'attributes':_0x12f732,'onAttributesChange':_0x2850fc,'onAccept':(..._0x2624bb)=>this['getSuggestionCallback'](_0x2cf2a,_0x1f6b60,'accept')(..._0x2624bb),'onDiscard':(..._0x3d3b76)=>this['getSuggestionCallback'](_0x2cf2a,_0x1f6b60,'discard')(..._0x3d3b76)});}['registerCustomCallback'](_0x10ee11,_0x3f4607,_0x1fa4b5,_0x59207b){const _0x1daa41=_0x10ee11+':'+_0x3f4607+':'+_0x1fa4b5;this['_customCallbacks']['set'](_0x1daa41,_0x59207b);}['getSuggestionCallback'](_0x580a04,_0x28a39a,_0xc81562){const _0x376536=_0x580a04+':'+_0x28a39a+':'+_0xc81562;return this['_customCallbacks']['get'](_0x376536)||this['_defaultCallbacks']['get'](_0x580a04+':'+_0xc81562);}['_registerDefaultCallbacks'](){const _0x2c2354=()=>!0x1,_0x6a734b=_0x32f0dd=>{_0x32f0dd['sort']((_0x18f98a,_0x86bde2)=>_0x18f98a['start']['isBefore'](_0x86bde2['start'])?0x1:-0x1),this['_model']['change'](_0xc35aa2=>{for(const _0x52c740 of _0x32f0dd){let _0x4e6cea;_0x4e6cea=_0x52c740['end']['isAtEnd']&&_0x52c740['end']['parent']==_0x52c740['start']['nodeAfter']?_0xc35aa2['createSelection'](_0x52c740['start']['nodeAfter'],'on'):_0xc35aa2['createSelection'](_0x52c740),this['_model']['deleteContent'](_0x4e6cea,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1ac157=(_0x1558db,_0x4ce14e)=>{_0x4ce14e&&this['_model']['change'](_0x50484a=>{const {commandName:_0x4b3893,commandParams:_0xb091ef=[]}=_0x4ce14e,_0x5a8a39=_0x1558db['map'](_0x464167=>(Tt(_0x464167)&&(_0x464167=this['_model']['createRange'](_0x464167['end'])),_0x464167))['filter'](_0x3eadb7=>'$graveyard'!==_0x3eadb7['root']['rootName']);if(_0x5a8a39['length']<0x1)return;const _0x1b1f05=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1ce94a=>_0x150295['fromRange'](_0x1ce94a));_0x50484a['setSelection'](_0x5a8a39);for(const _0x568903 of this['_editor']['commands']['commands']())_0x568903['refresh']();_0xb091ef['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4b3893,..._0xb091ef);const _0xccd4b7=_0x1b1f05['filter'](_0x1c2496=>'$graveyard'!=_0x1c2496['root']['rootName']);_0xccd4b7['length']>0x0&&_0x50484a['setSelection'](_0xccd4b7);for(const _0x4230cb of _0x1b1f05)_0x4230cb['detach']();});},_0xe8295b=(_0x28054f,_0x39ad7c)=>0x1==_0x28054f['length']&&0x1==_0x39ad7c['length']&&_0x28054f[0x0]['end']['isEqual'](_0x39ad7c[0x0]['start']),_0x2384cf=(_0x1a9479,_0x2b0221,_0x431627,_0x21de73)=>Ft(_0x1a9479,_0x2b0221,_0x431627,_0x21de73,this['_model'])?[_0x1a9479,_0x2b0221]:Ft(_0x2b0221,_0x1a9479,_0x21de73,_0x431627,this['_model'])?[_0x2b0221,_0x1a9479]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2c2354),this['_defaultCallbacks']['set']('insertion:discard',_0x6a734b),this['_defaultCallbacks']['set']('insertion:join',_0xe8295b),this['_defaultCallbacks']['set']('insertion:chain',_0x2384cf),this['_defaultCallbacks']['set']('deletion:accept',_0x6a734b),this['_defaultCallbacks']['set']('deletion:discard',_0x2c2354),this['_defaultCallbacks']['set']('deletion:join',_0xe8295b),this['_defaultCallbacks']['set']('deletion:chain',_0x2384cf),this['_defaultCallbacks']['set']('formatInline:accept',_0x1ac157),this['_defaultCallbacks']['set']('formatInline:discard',_0x2c2354),this['_defaultCallbacks']['set']('formatInline:join',_0xe8295b),this['_defaultCallbacks']['set']('formatInline:chain',_0x2c2354),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1ac157),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2c2354),this['_defaultCallbacks']['set']('formatBlock:join',_0xe8295b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2c2354),this['_defaultCallbacks']['set']('attribute:accept',_0x2c2354),this['_defaultCallbacks']['set']('attribute:discard',(_0x350821,_0xd775c6)=>{if(!_0xd775c6)return;const _0x2b9f5a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x588a61=>{if(_0xd775c6['key']==m)for(const _0xf0e7f2 of _0x350821){const _0x14ce10=_0xf0e7f2['start']['nodeAfter'],_0x439d77=_0xd775c6['oldValue'];_0x588a61['rename'](_0x14ce10,_0x439d77);}else{if(_0x2b9f5a['_isBlockAttribute'](_0xd775c6['key'])){for(const _0x264a02 of _0x350821)void 0x0!==_0xd775c6['oldValue']?_0x588a61['setAttribute'](_0xd775c6['key'],_0xd775c6['oldValue'],_0x264a02['start']['nodeAfter']):_0x588a61['removeAttribute'](_0xd775c6['key'],_0x264a02['start']['nodeAfter']);}else{for(const _0x10d129 of _0x350821)_0xd775c6['oldValue']?_0x588a61['setAttribute'](_0xd775c6['key'],_0xd775c6['oldValue'],_0x10d129):_0x588a61['removeAttribute'](_0xd775c6['key'],_0x10d129);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xe8295b);}}function Rt(_0x4b4e50,_0x106bc6,_0x2aa6a6){for(const _0x46eaa1 of _0x106bc6['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x46eaa1['root']==_0x46eaa1)return!0x1;if(!_0x2aa6a6['containsItem'](_0x46eaa1))return!0x1;if(_0x4b4e50['isObject'](_0x46eaa1)||_0x4b4e50['isLimit'](_0x46eaa1))return!0x0;}return!0x1;}function Tt(_0x19ad47){return _0x19ad47['end']['parent']==_0x19ad47['start']['nodeAfter']&&_0x19ad47['end']['isAtStart'];}function Et(_0xd499bd,_0x167d7d,_0x486462,_0xb6bc5a){const _0x44757e=_0x15c6b4=>!_0x15c6b4['item']['is']('$textProxy')&&!_0xb6bc5a['isObject'](_0x15c6b4['item']),_0x51176f=_0xd499bd['start']['getLastMatchingPosition'](_0x44757e),_0x15dd1b=_0xd499bd['end']['getLastMatchingPosition'](_0x44757e,{'direction':'backward'});return(!_0xd499bd['start']['isEqual'](_0x51176f)||!_0xd499bd['end']['isEqual'](_0x15dd1b))&&(_0x51176f['isBefore'](_0x15dd1b)?_0x486462['updateMarker'](_0x167d7d,{'range':_0x486462['createRange'](_0x51176f,_0x15dd1b)}):_0x486462['removeMarker'](_0x167d7d),!0x0);}function Ot(_0x2df70f){return _0x58ab75(_0x2df70f);}function Vt(_0x4c2b48){const _0x41aeb6=_0x4c2b48['start']['nodeAfter'];return _0x41aeb6&&_0x41aeb6['is']('element');}function Ut(_0x4c80b1,_0x55823b){return null==_0x4c80b1['end']['nodeBefore']&&_0x4c80b1['end']['parent']==_0x4c80b1['start']['nodeAfter']?Gt(_0x4c80b1['start']['nodeAfter'],_0x55823b):_0x4c80b1;}function Gt(_0x16e3de,_0x56c23d){const _0x2df4e8=_0x56c23d['schema']['isObject'](_0x16e3de)||_0x56c23d['schema']['isSelectable'](_0x16e3de);return _0x56c23d['createRange'](_0x56c23d['createPositionAt'](_0x16e3de,'before'),_0x2df4e8?_0x56c23d['createPositionAfter'](_0x16e3de):_0x56c23d['createPositionAt'](_0x16e3de,'end'));}function Ft(_0x4101d0,_0x189dc0,_0xa61ec9,_0x3c8dbe,_0x55ccec){if(!Pt(_0x4101d0,_0x189dc0))return!0x1;if(_0xa61ec9['end']['isEqual'](_0x3c8dbe['start']))return!0x0;if(_0x4101d0['type']!=_0x189dc0['type'])return!0x1;if(!_0xa61ec9['end']['isTouching'](_0x3c8dbe['start']))return!0x1;const _0x125ec6=_0x55ccec['createRange'](_0xa61ec9['end'],_0x3c8dbe['start'])['getWalker']();for(const _0x5336db of _0x125ec6)if(['elementStart','elementEnd']['includes'](_0x5336db['type'])&&_0x55ccec['schema']['isLimit'](_0x5336db['item']))return!0x1;return!0x0;}function Pt(_0x56f803,_0x8c25a9){if(!_0x56f803['_isDataLoaded']||!_0x8c25a9['_isDataLoaded'])return!0x1;const _0x2c9c9a=new Set(Object['keys'](_0x56f803['attributes'])),_0x3cf4cb=new Set(Object['keys'](_0x8c25a9['attributes']));if(_0x2c9c9a['delete']('groupId'),_0x3cf4cb['delete']('groupId'),0x0==_0x2c9c9a['size']&&0x0==_0x3cf4cb['size'])return!0x0;if(_0x2c9c9a['size']!=_0x3cf4cb['size'])return!0x1;const _0x337aeb={..._0x56f803['attributes']},_0x317cc2={..._0x8c25a9['attributes']};return delete _0x337aeb['groupId'],delete _0x317cc2['groupId'],JSON['stringify'](_0x337aeb)==JSON['stringify'](_0x317cc2);}function Lt(_0x471234,_0x302612){const _0x5c9f75=Ht(_0x471234['attributes']),_0x35ff15=Ht(_0x302612);if(!_0x471234['_isDataLoaded'])return!0x1;for(const _0xe307b1 of Object['keys'](_0x35ff15))if(!_0x10efed(_0x5c9f75[_0xe307b1],_0x35ff15[_0xe307b1]))return!0x1;return!0x0;}function Ht(_0x4e99d9){const _0x11e745=Object['assign']({},_0x4e99d9);return delete _0x11e745['skipNestingCheck'],delete _0x11e745['tablePasteChainId'],_0x11e745;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x5c2606(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4d5ead,_0x570ec4,_0x24f834,_0x16f078){super(),this['model']=_0x570ec4,this['view']=_0x24f834,this['commentThreadController']=_0x16f078,this['_editor']=_0x4d5ead,this['_acceptCommand']=_0x4d5ead['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4d5ead['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x19534d,_0x2dfcc7)=>_0x19534d||_0x2dfcc7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x478e17=>_0x478e17&&this['_editor']['model']['canEditAt'](_0x570ec4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x48594d=>_0x48594d&&this['_editor']['model']['canEditAt'](_0x570ec4['getRanges']())),this['_pendingAction']=null,_0x24f834['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x24f834,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x24f834,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x24f834,'change:isDirty',()=>{_0x24f834['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x53d795=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x53d795);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x773267{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x46de50,_0x4749f8,_0x499d67,_0x526c9f){super(_0x46de50),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x4749f8['authoredAt']),this['bind']('authoredAt')['to'](_0x4749f8),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x4749f8,this['_localUser']=_0x499d67,this['_config']=_0x526c9f,_0x526c9f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2bb059}=this['_config'];this['commentsListView']=new _0x2bb059(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',_0x346a43=>_0x346a43+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x510082,_0x11b180)=>_0x510082||!!_0x11b180);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2bd571}=this['_config'],_0x5a4b5f=new _0x2bd571(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x532b69=_0x5a4b5f['commentInputView'];return _0x5a4b5f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x532b69,'value',(_0x1105ba,_0xf2be09,_0x5b1dba)=>!!_0x5b1dba||_0x1105ba&&!_0xf2be09),_0x532b69['on']('submit',(_0x4186d8,_0x58d352)=>{this['fire']('addComment',_0x58d352),_0x532b69['editor']['setData']('');}),_0x532b69['on']('cancel',()=>this['focus']()),_0x532b69['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5a4b5f;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x35c28b,_0x1fc9d5,_0x159c8e,_0x55d813){super(_0x35c28b,_0x1fc9d5,_0x159c8e,_0x55d813),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x174119=>_0x174119&&_0x174119[0x0]?_0x174119[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1e35a5,_0xb43578)=>{let _0x5888a9='';for(const _0x545f92 of _0x1e35a5)_0x5888a9+='<p>'+ds(_0x545f92['content'],_0x545f92['color'])+'</p>';return _0xb43578?_0x5888a9:_0x5521ea(_0x5888a9,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x35c28b,'Accept\x20suggestion'),_0x161f69['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x35c28b,'Discard\x20suggestion'),_0x161f69['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x307376(_0x35c28b,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x222103=this['bindTemplate'],_0x23da07=[{'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':_0x222103['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x222103['to']('authoredAt',_0x1bf2b5=>this['_config']['formatDateTime'](_0x1bf2b5))}]}]},{'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']&&_0x23da07['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x47ab7d={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x222103['if']('isActive','ck-suggestion-wrapper--active'),_0x222103['to']('type',_0x14c31a=>'ck-suggestion-'+_0x14c31a),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':_0x23da07}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x47ab7d['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)),_0x47ab7d;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x28f4ce,_0x1f5537,_0x2e2a2c)=>{this['_descriptionElement']['innerHTML']=_0x2e2a2c;});}['_createButton'](_0x509392,_0x229d97,_0x4e3aa8,_0x423581,_0x27bfb3){const _0x5a9051=new _0x16fa56(this['locale']);return _0x5a9051['set']({'label':_0x509392,'icon':_0x229d97,'tooltip':!0x0,'tooltipPosition':_0x27bfb3}),_0x5a9051['extendTemplate']({'attributes':{'class':_0x4e3aa8}}),_0x5a9051['on']('execute',()=>{this['fire'](_0x423581,this['_model']['id']);}),_0x5a9051;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x3dabc7,_0x5bc3fd){let _0x5193d8='';return _0x5193d8+=_0x3dabc7['split']('*')['map']((_0x47854f,_0x36d305)=>_0x36d305%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x47854f)+'</span>':us(_0x47854f))['join'](''),_0x5bc3fd&&(_0x5193d8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5bc3fd['value']+'\x22\x20title=\x22'+_0x5bc3fd['title']+'\x22></span>'),_0x5193d8;}function us(_0x82606c){const _0x3bae79=document['createElement']('span');return _0x3bae79['innerText']=_0x82606c,_0x3bae79['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 _0x3cf114{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x188410,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x18c9f3){super(_0x18c9f3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3b309a=this['editor']['config'];_0x3b309a['define']('trackChanges.SuggestionThreadView',ne),_0x3b309a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3b309a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4123a9,_0x4da85f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x63a30f,_0x186408]of this['_handleControllerBuffer']){const _0xcf6c71=this['_suggestionToController']['has'](_0x63a30f);_0xcf6c71||_0x186408?_0xcf6c71&&_0x186408&&this['_destroyController'](_0x63a30f):this['_initializeController'](_0x63a30f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4123a9,_0x4da85f);}['init'](){const _0x1545ee=this['editor'],_0x462e90=_0x1545ee['plugins']['get']('TrackChangesEditing'),_0x2c0884=_0x1545ee['plugins']['get']('Annotations'),_0x4f40d8=_0x1545ee['plugins']['get']('EditorAnnotations'),_0x29b10c=_0x1545ee['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4f40d8['addSourceCollector'](()=>{const _0xc09fe5=[];for(const [_0x1da47e,_0x1c9b22]of Array['from'](this['_suggestionToController'])){const _0x1c1b8a=_0x1da47e['getAllAdjacentSuggestions'](),_0x1e6d14=[];for(const _0x22b01d of _0x1c1b8a){if(!_0x22b01d['isInContent'])continue;if(_0x22b01d['isMultiRange']){_0x1e6d14['push'](..._0x22b01d['getRanges']());continue;}const _0x955249=_0x22b01d['getFirstRange']();if(_0x1e6d14['length']>0x0){const _0x44931e=_0x1e6d14[0x0]['getJoined'](_0x955249);if(_0x44931e){_0x1e6d14[0x0]=_0x44931e;continue;}}_0x1e6d14['push'](_0x955249);}_0xc09fe5['push']([_0x1c9b22['view'],_0x1e6d14]);}return _0xc09fe5;}),this['listenTo'](_0x462e90,'suggestionLoaded',(_0x1e339e,_0x21bc3f)=>{this['listenTo'](_0x21bc3f,'change:previous',(_0x57cfab,_0x1291d3,_0x50013e,_0xad7d50)=>{_0x21bc3f['isInContent']&&(null==_0x50013e?(this['_updateController'](_0xad7d50['head']),this['_handleSuggestionControllerDelayed'](_0x21bc3f,!0x1)):(this['_updateController'](_0x50013e['head']),null==_0xad7d50&&this['_handleSuggestionControllerDelayed'](_0x21bc3f,!0x0)));}),null!==_0x21bc3f['previous']?this['_updateController'](_0x21bc3f['head']):this['_handleSuggestionControllerDelayed'](_0x21bc3f,!0x1);}),this['listenTo'](_0x462e90,'suggestionUnloaded',(_0x5912c0,_0x46ce0f,_0x2a15c5)=>{this['stopListening'](_0x46ce0f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x46ce0f),this['_suggestionToController']['has'](_0x46ce0f)&&this['_destroyController'](_0x46ce0f),_0x2a15c5&&this['_updateController'](_0x2a15c5['head']);}),this['listenTo'](_0x462e90,'suggestionChanged',(_0x540ac7,_0x193369)=>{this['_updateController'](_0x193369);}),this['listenTo'](_0x2c0884,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x29b10c,'addComment',(_0x4c0601,{threadId:_0x485066,isFromAdapter:_0x1b85b3})=>{if(_0x1b85b3||!_0x462e90['hasSuggestion'](_0x485066))return;const _0x40a35a=_0x462e90['getSuggestion'](_0x485066);this['_suggestionToController']['get'](_0x40a35a)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x10c8b6=this['editor']['plugins']['get']('Annotations'),_0x1d1d89=this['editor']['plugins']['get']('TrackChangesEditing'),_0x302d15=Array['from'](_0x10c8b6['activeAnnotations'],_0x51ec1c=>_0x51ec1c['innerView'])['filter'](_0x34aa3=>this['_viewToController']['has'](_0x34aa3)),_0x550535=[];for(const _0x45be34 of _0x302d15){const _0x1c5f53=this['_viewToController']['get'](_0x45be34)['model']['getAllAdjacentSuggestions']();_0x550535['push'](..._0x1c5f53['reduce']((_0x13e4bb,_0x24ed99)=>[..._0x13e4bb,..._0x24ed99['getMarkerNames']()],[]));}_0x1d1d89['activeMarkers']=_0x550535;}['_addUIComponentsToFactory'](){const _0x20946a=this['editor'],_0x129d3d=_0x20946a['locale'],_0x305742=o(_0x129d3d,'Track\x20changes'),_0x4d5538=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x305742,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x129d3d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x129d3d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x129d3d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x129d3d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x258372 of _0x4d5538)if(ae(_0x258372)){const _0x40223b=_0x20946a['commands']['get'](_0x258372['model']['commandName']);_0x258372['model']['bind']('isOn','isEnabled')['to'](_0x40223b,'value','isEnabled');}_0x20946a['ui']['componentFactory']['add']('trackChanges',_0x3cc4c7=>this['_createToolbarButton'](_0x3cc4c7,_0x4d5538,_0x305742)),_0x20946a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x47157d=>this['_createMenuBarMenu'](_0x47157d,_0x4d5538,_0x305742));}['_createToolbarButton'](_0x1e639a,_0x3a6ab3,_0x3709ba){const _0x346f13=zt(_0x1e639a,Zt),_0x4aa526=this['editor']['commands']['get']('trackChanges');_0x346f13['buttonView']['set']({'tooltip':_0x3709ba,'label':_0x3709ba,'icon':ie}),_0x346f13['buttonView']['bind']('isOn')['to'](_0x4aa526,'value'),_0x346f13['buttonView']['on']('execute',()=>{_0x4aa526['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x346f13,_0x3a6ab3,{'role':'menu'});const _0x58ebe5=[];for(const _0x552388 of _0x3a6ab3)ae(_0x552388)&&_0x58ebe5['push'](this['editor']['commands']['get'](_0x552388['model']['commandName']));const _0x398409=_0x346f13['buttonView'];return _0x398409['actionView']['unbind']('isEnabled'),_0x398409['arrowView']['unbind']('isEnabled'),_0x398409['actionView']['bind']('isEnabled')['to'](_0x4aa526,'isEnabled'),_0x398409['arrowView']['bind']('isEnabled')['toMany'](_0x58ebe5,'isEnabled',(..._0x39840c)=>_0x39840c['some'](_0x5a063e=>_0x5a063e)),_0x346f13['on']('execute',_0x153505=>{this['editor']['execute'](_0x153505['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x346f13;}['_createMenuBarMenu'](_0x3d8671,_0x22c4bf,_0x4611f5){const _0x410dde=new Kt(_0x3d8671),_0x3ab142=this['editor']['commands']['get']('trackChanges');_0x410dde['buttonView']['set']({'label':_0x4611f5,'icon':ie});const _0x3cdd31=new Qt(_0x3d8671);for(const _0xba442a of _0x22c4bf){if('separator'==_0xba442a['type']){_0x3cdd31['items']['add'](new Jt(_0x3d8671));continue;}const _0x46d43d=new Xt(_0x3d8671,_0x410dde),_0x3dbb07=new Yt(_0x3d8671),_0x16606c=_0xba442a['model'];_0x3dbb07['bind'](...Object['keys'](_0x16606c))['to'](_0x16606c),_0x3dbb07['delegate']('execute')['to'](_0x410dde),_0x3dbb07['on']('execute',()=>{this['editor']['execute'](_0x16606c['commandName']),this['editor']['editing']['view']['focus']();}),_0x46d43d['children']['add'](_0x3dbb07),_0x3cdd31['items']['add'](_0x46d43d);}return _0x410dde['bind']('isEnabled')['to'](_0x3ab142,'isEnabled'),_0x410dde['panelView']['children']['add'](_0x3cdd31),_0x410dde;}['_initializeController'](_0x137915){const _0x216cf6=this['editor'],_0x214ad7=_0x216cf6['config'],_0x17fb38=_0x216cf6['plugins']['get']('Annotations'),_0x3702f3=_0x216cf6['plugins']['get']('CommentsRepository'),_0x5a7f9b=_0x216cf6['plugins']['get']('EditorAnnotations'),_0x298b89=_0x216cf6['plugins']['get'](_0x188410)['me'],_0x686429=_0x214ad7['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x39b179,CommentThreadInputView:_0x44ef73}=_0x216cf6['plugins']['get']('CommentsUI');let _0x30291e,_0x32a739;this['_annotationViews']['has'](_0x137915['id'])?(_0x32a739=this['_annotationViews']['get'](_0x137915['id']),_0x30291e=_0x32a739['mainView']):(_0x30291e=new _0x686429(_0x216cf6['locale'],_0x137915,_0x298b89,{'disableComments':this['_disableComments'],'editorConfig':_0x214ad7['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x214ad7['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x214ad7['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x214ad7['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1b6479(_0x214ad7['get']('locale')),'CommentView':_0x214ad7['get']('comments')['CommentView'],'CommentsListView':_0x39b179,'CommentThreadInputView':_0x44ef73}),_0x30291e['acceptButton']['on']('execute',()=>{_0x216cf6['editing']['view']['focus']();}),_0x30291e['discardButton']['on']('execute',()=>{_0x216cf6['editing']['view']['focus']();}),_0x32a739=_0x17fb38['createAnnotationView'](this['editor']['locale'],_0x30291e),_0x32a739['bind']('isDirty')['to'](_0x30291e,'isDirty'),_0x32a739['bind']('length')['to'](_0x30291e),_0x32a739['bind']('type')['to'](_0x30291e,'type',_0x50ae69=>'suggestion-'+_0x50ae69),this['_annotationViews']['set'](_0x137915['id'],_0x32a739));const _0x3a380c=_0x3702f3['createCommentThreadController'](_0x137915['commentThread'],_0x30291e),_0xd6fb6d=new oe(_0x216cf6,_0x137915,_0x30291e,_0x3a380c),_0x308b5e=_0x137915['getAllAdjacentSuggestions']()['filter'](_0x4a5f1a=>_0x4a5f1a['isInContent']);_0x30291e['descriptionParts']=_0x216cf6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x308b5e),this['_suggestionToController']['set'](_0x137915,_0xd6fb6d),this['_viewToController']['set'](_0x30291e,_0xd6fb6d);const _0x4ba508=_0x17fb38['createAnnotation']({'view':_0x32a739,'target':()=>{const _0x2b1b45=[],_0x2ef368=_0x137915['getAllAdjacentSuggestions']()['filter'](_0x1c91f1=>_0x1c91f1['isInContent']);for(const _0x21f013 of _0x2ef368)_0x2b1b45['push'](..._0x21f013['getMarkers']());return _0xd9568a(_0x216cf6['editing'],_0x2b1b45);},'type':()=>'suggestion-'+_0xd6fb6d['view']['type']});_0x3702f3['_bindAnnotationToEditors'](_0x30291e,_0x4ba508),_0x17fb38['add'](_0x4ba508),_0x5a7f9b['registerAnnotation'](_0x4ba508);}['_destroyController'](_0x3c0edd){const _0x54441a=this['editor']['plugins']['get']('CommentsRepository'),_0xd24ea4=this['editor']['plugins']['get']('Annotations'),_0x4cf93a=this['_suggestionToController']['get'](_0x3c0edd),_0xa8e9d6=_0x4cf93a['view'],_0x310d45=_0xd24ea4['getByInnerView'](_0xa8e9d6);_0x54441a['_unbindEditors'](_0xa8e9d6),_0x310d45&&_0xd24ea4['remove'](_0x310d45),this['_suggestionToController']['delete'](_0x3c0edd),this['_viewToController']['delete'](_0xa8e9d6),_0x4cf93a['destroy']();}['_updateController'](_0x1b66f6){if(!_0x1b66f6['isInContent']||!this['_suggestionToController']['has'](_0x1b66f6))return;const _0x5205f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3444a5=this['_suggestionToController']['get'](_0x1b66f6),_0x81d4fe=_0x1b66f6['getAllAdjacentSuggestions']();_0x3444a5['view']['descriptionParts']=_0x5205f3['descriptionFactory']['getDescriptions'](_0x81d4fe);}['destroy'](){for(const _0x4a19c8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4a19c8);for(const _0x1f15a0 of this['_annotationViews']['values']())_0x1f15a0['mainView']['destroy']();super['destroy']();}}function ae(_0x136cd8){return'model'in _0x136cd8;}class k extends _0x3cf114{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3e833e){this['editor']['plugins']['get'](p)['adapter']=_0x3e833e;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x146cca){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x146cca);}['getSuggestions']({skipNotAttached:_0x915a98=!0x1,toJSON:_0x49b58a=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x915a98,'toJSON':_0x49b58a});}['getSuggestion'](_0x222b31){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x222b31);}}const T=['Pagination'];class P extends _0x3cf114{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3a0962=this['editor'];if(_0x3a0962['config']['define']('trackChangesData.editorCreator',_0x65b0d2=>{const _0x51e7e2=_0x3a0962['model']['document']['getRootNames']()['reduce']((_0x3693ed,_0x162a18)=>(_0x3693ed[_0x162a18]='',_0x3693ed),{});return _0x3a0962['constructor']['create'](_0x51e7e2,_0x65b0d2);}),'function'!=typeof _0x3a0962['config']['get']('trackChangesData')['editorCreator'])throw new _0x9391a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x41073b){return N(this['editor'],!0x0,_0x41073b);}['getDataWithDiscardedSuggestions'](_0xd19371){return N(this['editor'],!0x1,_0xd19371);}}class D extends _0x3cf114{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x142208){super(_0x142208),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x1cb1f1){return void 0x0!==_0x1cb1f1['getRootsAttributes'];}async function N(_0x4ad51a,_0x195cc6,_0x2a9904){const _0x34d342=_0x24751a(_0x4ad51a,T);_0x34d342['plugins']['push'](p,D),_0x34d342['rootsAttributes']=v(_0x4ad51a)?_0x4ad51a['getRootsAttributes']():void 0x0;const _0x125973=document['createDocumentFragment'](),_0x1b5cb2=_0x4ad51a['config']['get']('trackChangesData')['editorCreator'],_0x34af76=await _0x1b5cb2(_0x34d342,()=>function(_0x312922){const _0x22a356=document['createElement']('div');return _0x312922['appendChild'](_0x22a356),_0x22a356;}(_0x125973));!function(_0xdd7cc5,_0xd8d9a3){const _0x20463c=_0xdd7cc5['model']['document']['getRootNames']()['reduce']((_0x3e0e46,_0x4a3b75)=>(_0x3e0e46[_0x4a3b75]=_0xdd7cc5['data']['get']({'rootName':_0x4a3b75}),_0x3e0e46),{}),_0x4d71d8=_0xdd7cc5['plugins']['get']('Users')['users']['map'](_0x219cc5=>({'id':_0x219cc5['id'],'name':_0x219cc5['name']})),_0x3f12c3=_0xdd7cc5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3d4435=_0xdd7cc5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4a61f3=_0xd8d9a3['plugins']['get']('Users'),_0x38f976=_0xd8d9a3['plugins']['get']('TrackChangesEditing'),_0x402906=_0xd8d9a3['plugins']['get']('CommentsRepository');for(const _0x29750e of _0x4d71d8)_0x4a61f3['getUser'](_0x29750e['id'])||_0x4a61f3['addUser'](_0x29750e);_0x4a61f3['me']||_0x4a61f3['useAnonymousUser']();for(const _0x272fab of _0x3d4435)_0x402906['addCommentThread'](_0x272fab);for(const _0x1957be of _0x3f12c3)_0x38f976['addSuggestionData'](_0x1957be);_0xd8d9a3['data']['set'](_0x20463c);}(_0x4ad51a,_0x34af76),_0x34af76['execute'](_0x195cc6?'acceptAllSuggestions':'discardAllSuggestions');const _0x3fb710=v(_0x34af76)?_0x34af76['getFullData'](_0x2a9904):_0x34af76['data']['get'](_0x2a9904);return await _0x34af76['destroy'](),_0x3fb710;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x41c6a3,PendingActions as _0x5cc061,icons as _0x5dd0cc}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x52dd32,ObservableMixin as _0x54e6bb,uid as _0x424b6d,insertToPriorityArray as _0x3f5af1,priorities as _0x37a5e4,logWarning as _0x47aad1,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x326eb4,View as _0x3c0e4a,ButtonView as _0x5bb528,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 _0x3bf4a7,hashObject as _0x390b9d,surroundingMarkersDetector as _0x40c6a3,trimHtml as _0x21d54c,UserView as _0x1c23bf,getDateTimeFormatter as _0x27445c,getAllMarkersDomElementsSorted as _0x9b0922,sanitizeEditorConfig as _0x370112}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x45cc05,LiveRange as _0x192ba9,LivePosition as _0x2fa6bf}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x320cfd,toWidget as _0x52fc27}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4c26b7,set as _0x320737,isEqual as _0x3bb6dd,unset as _0x1bced0,omit as Bt}from'lodash-es';import{Delete as _0x1fde27,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x55e3e5,ShiftEnter as _0x55d333}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x113f3d,_0x2d3d61){super(_0x113f3d),this['_enabledCommands']=_0x2d3d61,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x126b73 of this['editor']['commands']['commands']())_0x126b73['affectsData']&&!this['_enabledCommands']['has'](_0x126b73)&&_0x126b73['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x45628c of this['editor']['commands']['commands']())_0x45628c['affectsData']&&!this['_enabledCommands']['has'](_0x45628c)&&_0x45628c['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x144a35,_0x3a7ab6){super(_0x144a35),this['_suggestions']=_0x3a7ab6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xc88414){const _0x36aaaf=this['_suggestions']['get'](_0xc88414);if(!_0x36aaaf)throw new _0x52dd32('track-changes-accept-suggestion-not-found',this);const _0x1a3ed6=_0x36aaaf['getRanges']();this['editor']['model']['canEditAt'](_0x1a3ed6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x36aaaf);}}class B extends ts{['_suggestions'];constructor(_0x4f23ec,_0x24b881){super(_0x4f23ec),this['_suggestions']=_0x24b881,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4e23c3){const _0x13b667=this['_suggestions']['get'](_0x4e23c3);if(!_0x13b667)throw new _0x52dd32('track-changes-discard-suggestion-not-found',this);const _0x322704=_0x13b667['getRanges']();this['editor']['model']['canEditAt'](_0x322704)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x13b667);}}function ss(_0x152fbb){return _0x152fbb['sort']((_0x56eab7,_0x966165)=>'deletion'==_0x56eab7['type']&&'deletion'!=_0x966165['type']?-0x1:'deletion'!=_0x56eab7['type']&&'deletion'==_0x966165['type']?0x1:0x0);}function to(_0xfb17a6,_0x58a491){let _0x6a27b,_0x7de6d0=0x0;const _0x5b88ef=[],_0x5a0d73=_0x58a491['schema'];for(;_0x7de6d0<_0xfb17a6['length'];){const _0x7d2c0=_0xfb17a6[_0x7de6d0],_0x1376a5=_0xfb17a6[_0x7de6d0+0x1];_0x6a27b||(_0x6a27b=_0x58a491['createPositionBefore'](_0x7d2c0)),co(_0x58a491,_0x7d2c0,_0x1376a5)||(_0x5b88ef['push'](_0x58a491['createRange'](_0x6a27b,_0x5a0d73['isObject'](_0x7d2c0)?_0x58a491['createPositionAfter'](_0x7d2c0):_0x58a491['createPositionAt'](_0x7d2c0,'end'))),_0x6a27b=null),_0x7de6d0++;}return _0x5b88ef;}function co(_0x426246,_0x303efe,_0x303180){if(!_0x303180)return!0x1;const _0x272657=_0x426246['createPositionAfter'](_0x303efe),_0x3dfb02=_0x426246['createPositionBefore'](_0x303180);return _0x272657['isTouching'](_0x3dfb02);}function rs(_0x2f8b7e,_0x20ff24,_0x1639ec){for(;_0x1639ec['length'];){const _0x20b9d9=_0x1639ec['splice'](0x0,0x64);_0x2f8b7e['change'](()=>{for(const _0x17eebd of _0x20b9d9)_0x17eebd['isInContent']&&_0x20ff24['execute'](_0x17eebd['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x189328,_0x4cafe5,_0x241b8a){super(_0x189328),this['_command']=_0x4cafe5,this['_suggestions']=_0x241b8a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x207a9a=Array['from'](this['_suggestions']['values']())['some'](_0x2f5665=>_0x2f5665['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x207a9a;}['execute'](){const _0x668d86=ss(Array['from'](this['_suggestions']['values']()));for(const _0xc31875 of _0x668d86){const _0x52cfa9=_0xc31875['getRanges']();if(!this['editor']['model']['canEditAt'](_0x52cfa9))return;}rs(this['editor']['model'],this['_command'],_0x668d86);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x560e35,_0x5b0207,_0x10cc48){super(_0x560e35),this['_command']=_0x5b0207,this['_suggestions']=_0x10cc48,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3e8f40=this['editor']['model']['document']['selection'],_0x3188ba=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2377d9,_0x24d93d){const _0x478168=Array['from'](_0x2377d9['getRanges']()),_0x2724a9=new Set();for(const _0x2c3130 of _0x24d93d)if(_0x2c3130['isInContent']){for(const _0xb6e27c of _0x478168)for(const _0x2e0cf9 of _0x2c3130['getRanges']())(_0xb6e27c['isIntersecting'](_0x2e0cf9)||_0x2377d9['isCollapsed']&&!_0x2c3130['isMultiRange']&&_0x2c3130['next']&&_0x2e0cf9['end']['isTouching'](_0xb6e27c['start']))&&_0x2724a9['add'](_0x2c3130);}return _0x2724a9;}(_0x3e8f40,_0x3188ba),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x518a97=ss(Array['from'](this['_selectedSuggestions']));for(const _0x392b2b of _0x518a97){const _0x16f120=_0x392b2b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x16f120))return;}rs(this['editor']['model'],this['_command'],_0x518a97);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x54e6bb(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x53979b,_0x1d69f1){super(),this['id']=_0x1d69f1['id'],this['type']=_0x1d69f1['type'],this['subType']=_0x1d69f1['subType']||null,this['author']=_0x1d69f1['author'],this['creator']=_0x1d69f1['creator']||_0x1d69f1['author'],this['isExternal']=Boolean(_0x1d69f1['attributes']&&_0x1d69f1['attributes']['@external']),this['data']=null,this['_model']=_0x53979b,this['_onAccept']=_0x1d69f1['onAccept'],this['_onDiscard']=_0x1d69f1['onDiscard'],this['_onAttributesChange']=_0x1d69f1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1d69f1['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x387ef2=this;for(;_0x387ef2['previous'];)_0x387ef2=_0x387ef2['previous'];return _0x387ef2;}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'](_0xe851a2){this['_markerNames']['add'](_0xe851a2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2dbbb0=>this['_model']['markers']['get'](_0x2dbbb0))['filter'](_0x25c62b=>_0x25c62b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x52f75a=>{for(const _0x39889a of this['getMarkers']())_0x52f75a['removeMarker'](_0x39889a);}),this['_markerNames']['clear']();}['removeMarker'](_0x4a034f){this['_model']['change'](_0x37c0f7=>{_0x37c0f7['removeMarker'](_0x4a034f);}),this['_markerNames']['delete'](_0x4a034f);}['addRange'](_0x5e7d0a){const _0x47a747='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x47a747),this['_model']['change'](_0x300327=>{_0x300327['addMarker'](_0x47a747,{'range':_0x5e7d0a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x51eb11){for(const _0x53ac3f of this['getRanges']())if(_0x53ac3f['isIntersecting'](_0x51eb11))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x34ae24=>_0x34ae24['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x18ece0,_0x3767f4)=>[..._0x18ece0,..._0x3767f4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x35deda=this['getRanges']();if(0x1!=_0x35deda['length'])return null;const _0x1cda46=_0x35deda[0x0],_0xca0ac2=_0x1cda46['start']['nodeAfter'],_0x339e43=_0x1cda46['end']['nodeBefore'];return _0xca0ac2 instanceof _0x45cc05?_0xca0ac2!=_0x339e43?null:_0xca0ac2: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 _0x37e23c=[];let _0x4271b7=this['head'];for(;_0x4271b7;)_0x37e23c['push'](_0x4271b7),_0x4271b7=_0x4271b7['next'];return _0x37e23c;}['setAttribute'](_0x23cf1a,_0x382189){const _0x3dd02b=_0x4c26b7(this['attributes']);_0x320737(_0x3dd02b,_0x23cf1a,_0x382189),_0x3bb6dd(_0x3dd02b,this['attributes'])||(this['attributes']=_0x3dd02b,this['_onAttributesChange'](_0x3dd02b));}['removeAttribute'](_0x2d2d1c){const _0x516b18=_0x4c26b7(this['attributes']);_0x1bced0(_0x516b18,_0x2d2d1c),_0x3bb6dd(_0x516b18,this['attributes'])||(this['attributes']=_0x516b18,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 _0x424b6d()['substr'](0x1,0x5);}}function o(_0x2bd933,_0xe12935,_0x1bf384){const t=_0x2bd933['t'];switch(_0xe12935){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',_0x1bf384);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1bf384);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1bf384);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1bf384);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1bf384);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',_0x1bf384);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1bf384);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',_0x1bf384);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1bf384);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1bf384);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1bf384);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1bf384);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1bf384);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1bf384);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1bf384);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1bf384);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1bf384);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1bf384);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1bf384);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1bf384);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1bf384);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1bf384);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1bf384);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'},_0x1bf384);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1bf384);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1bf384);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1bf384);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1bf384);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1bf384);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'},_0x1bf384);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1bf384);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1bf384);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1bf384);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1bf384);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'},_0x1bf384);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1bf384);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'},_0x1bf384);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'},_0x1bf384);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1bf384);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'},_0x1bf384);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1bf384);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'},_0x1bf384);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1bf384);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1bf384);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'},_0x1bf384);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'},_0x1bf384);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 _0xe12935;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x101ab8,_0x4de5d5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x101ab8,this['_locale']=_0x4de5d5;}['getDescriptions'](_0x1e5200){const _0x1a0c0e=[],_0x4ea2dc=new Set(),_0x44c1ac=new Set();for(let _0x4be89b=0x0;_0x4be89b<_0x1e5200['length'];_0x4be89b++){const _0x15615e=_0x1e5200[_0x4be89b];if(!_0x15615e['isInContent'])continue;const _0x1acab1=this['_handleCustomCallbackDescription'](_0x15615e);if(_0x1acab1){if(null!=_0x15615e['subType']){if(_0x4ea2dc['has'](_0x15615e['subType']))continue;_0x4ea2dc['add'](_0x15615e['subType']);}_0x1a0c0e['push'](_0x1acab1);}else{if('attribute'!=_0x15615e['type'])'insertion'!=_0x15615e['type']&&'deletion'!=_0x15615e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1a0c0e,_0x15615e,_0x1e5200[_0x4be89b+0x1]);else{const _0x427211=_0x15615e['data']['key'];if(_0x44c1ac['has'](_0x427211))continue;_0x44c1ac['add'](_0x15615e['data']['key']),_0x427211==m?this['_handleRenameSuggestionDescription'](_0x1a0c0e,_0x15615e):this['_handleAttributeSuggestionDescription'](_0x1a0c0e,_0x15615e);}}}return this['_resolveDescriptionItems'](_0x1a0c0e);}['registerDescriptionCallback'](_0x2f62bc){this['_customCallbacks']['push'](_0x2f62bc);}['registerElementLabel'](_0x3dce05,_0x568747,_0x18d017=_0x37a5e4['normal']){'function'==typeof _0x3dce05?_0x3f5af1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3dce05,'label':_0x568747,'priority':_0x18d017}):this['_itemLabels']['set'](_0x3dce05,_0x568747);}['registerAttributeLabel'](_0x5937b4,_0x305893){this['_attributeLabels']['set'](_0x5937b4,_0x305893);}['getItemLabel'](_0x1b6bf0,_0x33e13e=0x1){let _0x5e92f9;for(const _0x89271f of this['_itemLabelsCallbacks'])if(_0x89271f['matchingCallback'](_0x1b6bf0)){_0x5e92f9=_0x89271f['label'];break;}return _0x5e92f9||(_0x5e92f9=this['_itemLabels']['get'](_0x1b6bf0['name'])),_0x5e92f9?_0x5e92f9(_0x33e13e):0x1!==_0x33e13e?_0x33e13e+'\x20'+_0x1b6bf0['name']+'s':''+_0x1b6bf0['name'];}['_addDescriptionItems'](_0x4d8568,_0xa29cea){const _0x4b694d=_0xa29cea['getFirstRange']()['getWalker'](),_0x319f4e='insertion'==_0xa29cea['type']?'add':'remove';for(const _0x2c2753 of _0x4b694d){const _0x9f0556=_0x2c2753['item'],_0x673ec8=_0x4d8568[_0x4d8568['length']-0x1];if(_0x9f0556['is']('$textProxy'))_0x673ec8&&_0x673ec8['type']['indexOf']('Container')>-0x1&&_0x4d8568['pop'](),_0x673ec8&&'text'==_0x673ec8['type']?_0x673ec8[_0x319f4e]+=_0x9f0556['data']:_0x4d8568['push']({'type':'text','add':'add'==_0x319f4e?_0x9f0556['data']:'','remove':'remove'==_0x319f4e?_0x9f0556['data']:''});else{if(this['_schema']['isObject'](_0x9f0556)){const _0x59fe13=_0x9f0556;if(_0x673ec8&&_0x673ec8['type']['indexOf']('Container')>-0x1&&_0x4d8568['pop'](),'elementEnd'==_0x2c2753['type'])continue;_0x673ec8&&_0x673ec8['type']==_0x319f4e+'Object'&&_0x673ec8['element']['name']==_0x59fe13['name']?_0x673ec8['quantity']++:_0x4d8568['push']({'type':_0x319f4e+'Object','element':_0x59fe13,'quantity':0x1}),_0x4b694d['skip'](_0x1b4057=>!('elementEnd'==_0x1b4057['type']&&_0x1b4057['item']==_0x9f0556));}else{if(this['_schema']['checkChild'](_0x9f0556,'$text')||_0x9f0556['is']('element','softBreak')){const _0x57eb3a=_0x9f0556;if('add'==_0x319f4e&&'elementStart'==_0x2c2753['type']||'remove'==_0x319f4e&&'elementEnd'==_0x2c2753['type'])continue;if(_0x673ec8&&-0x1==_0x673ec8['type']['indexOf']('Container')){'text'==_0x673ec8['type']&&(_0x673ec8[_0x319f4e]+='\x0a');continue;}let _0x513f79;if(_0x513f79='add'==_0x319f4e?_0x57eb3a['nextSibling']&&!this['_schema']['isObject'](_0x57eb3a['nextSibling'])?_0x57eb3a['nextSibling']:null:_0x57eb3a['previousSibling']&&!this['_schema']['isObject'](_0x57eb3a['previousSibling'])?_0x57eb3a['previousSibling']:null,_0x57eb3a['isEmpty']||_0x513f79&&_0x513f79['isEmpty']){const _0x486510=_0x513f79&&_0x513f79['isEmpty']?_0x513f79:_0x57eb3a;_0x673ec8&&_0x673ec8['type']==_0x319f4e+'EmptyContainer'&&_0x673ec8['element']['name']==_0x486510['name']?_0x673ec8['quantity']++:_0x4d8568['push']({'type':_0x319f4e+'EmptyContainer','element':_0x486510,'quantity':0x1});}else _0x4d8568['push']({'type':_0x319f4e+'Container','element':_0x57eb3a});}}}}}['_resolveDescriptionItems'](_0x41c799){const _0x33d6c8=this['_locale'],_0x1bb52f=[],_0x2cc2b5=[],_0x23d634=[];for(const _0x47c0f7 of _0x41c799)switch(_0x47c0f7['type']){case'text':if(_0x47c0f7['add']=_0x47c0f7['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x47c0f7['remove']=_0x47c0f7['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x47c0f7['add']&&''!=_0x47c0f7['remove']){_0x1bb52f['push']({'type':'replace','content':o(_0x33d6c8,'REPLACE_TEXT',['\x22'+_0x47c0f7['remove']+'\x22','\x22'+_0x47c0f7['add']+'\x22'])});continue;}if(null!=_0x47c0f7['add']['match'](/^ +$/)){_0x1bb52f['push']({'type':'insertion','content':o(_0x33d6c8,'*Insert:*\x20%0',o(_0x33d6c8,'ELEMENT_SPACE',_0x47c0f7['add']['length']))});continue;}if(null!=_0x47c0f7['remove']['match'](/^ +$/)){_0x1bb52f['push']({'type':'deletion','content':o(_0x33d6c8,'*Remove:*\x20%0',o(_0x33d6c8,'ELEMENT_SPACE',_0x47c0f7['remove']['length']))});continue;}if(''!=_0x47c0f7['add']){_0x1bb52f['push']({'type':'insertion','content':o(_0x33d6c8,'*Insert:*\x20%0','\x22'+_0x47c0f7['add']+'\x22')});continue;}_0x1bb52f['push']({'type':'deletion','content':o(_0x33d6c8,'*Remove:*\x20%0','\x22'+_0x47c0f7['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1bb52f['push']({'type':'insertion','content':o(_0x33d6c8,'*Insert:*\x20%0',this['getItemLabel'](_0x47c0f7['element'],_0x47c0f7['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1bb52f['push']({'type':'deletion','content':o(_0x33d6c8,'*Remove:*\x20%0',this['getItemLabel'](_0x47c0f7['element'],_0x47c0f7['quantity']))});continue;case'addContainer':_0x1bb52f['push']({'type':'insertion','content':o(_0x33d6c8,'*Split:*\x20%0',this['getItemLabel'](_0x47c0f7['element'],_0x47c0f7['quantity']))});continue;case'removeContainer':_0x1bb52f['push']({'type':'deletion','content':o(_0x33d6c8,'*Merge:*\x20%0',this['getItemLabel'](_0x47c0f7['element'],_0x47c0f7['quantity']))});continue;case'addFormat':_0x2cc2b5['push'](_0x47c0f7['key']);continue;case'removeFormat':_0x23d634['push'](_0x47c0f7['key']);continue;default:_0x1bb52f['push'](_0x47c0f7);}if(_0x2cc2b5['length']){const _0x45ca4d=_0x2cc2b5['map'](_0x4374fd=>this['_attributeLabels']['has'](_0x4374fd)?this['_attributeLabels']['get'](_0x4374fd):_0x4374fd)['join'](',\x20');_0x1bb52f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x45ca4d)});}if(_0x23d634['length']){const _0x407d4d=_0x23d634['map'](_0x5cc50c=>this['_attributeLabels']['has'](_0x5cc50c)?this['_attributeLabels']['get'](_0x5cc50c):_0x5cc50c)['join'](',\x20');_0x1bb52f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x407d4d)});}return _0x1bb52f;}['_handleCustomCallbackDescription'](_0x5dbeb4){for(const _0x4c4693 of this['_customCallbacks']){const _0x3c4a59=_0x4c4693(_0x5dbeb4);if(_0x3c4a59&&'type'in _0x3c4a59)return _0x3c4a59;}}['_handleAttributeSuggestionDescription'](_0x59bb29,_0x6b2db6){const _0xb533bd=_0x6b2db6['data'],_0xadf9f3=void 0x0===_0xb533bd['newValue']?'removeFormat':'addFormat';_0x59bb29['push']({'type':_0xadf9f3,'key':_0xb533bd['key']});}['_handleRenameSuggestionDescription'](_0xa95ce0,_0x1242ff){_0xa95ce0['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1242ff['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x25f091,_0x4c907a,_0x156e03){if(this['_addDescriptionItems'](_0x25f091,_0x4c907a),_0x156e03&&_0x156e03['getFirstRange']()&&!_0x4c907a['getFirstRange']()['end']['isEqual'](_0x156e03['getFirstRange']()['start'])){const _0x5d3639=_0x25f091[_0x25f091['length']-0x1],_0xa9bbd6='insertion'==_0x4c907a['type']?'add':'remove';_0x5d3639&&'text'==_0x5d3639['type']&&(_0x5d3639[_0xa9bbd6]+='\x0a');}}}class E extends _0x41c6a3{['afterInit'](){const _0x546287=this['editor'],_0x363777=_0x546287['plugins']['get']('TrackChangesEditing');_0x546287['commands']['get']('showAIAssistant')&&_0x363777['enableCommand']('showAIAssistant');}}class O extends _0x41c6a3{['afterInit'](){const _0x51957f=this['editor'],_0x19755b=_0x51957f['locale'];if(!_0x51957f['plugins']['has']('AlignmentEditing'))return;const _0x70cb1c=_0x51957f['plugins']['get']('TrackChangesEditing');_0x70cb1c['enableDefaultAttributesIntegration']('alignment'),_0x70cb1c['registerBlockAttribute']('alignment'),_0x70cb1c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x19755b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15ef6e=this['editor'],_0x5a2c6a=_0x15ef6e['locale'];_0x15ef6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a925a=>{if('formatBlock'!=_0x2a925a['type'])return;const {data:_0x865741}=_0x2a925a;if(_0x865741&&'alignment'==_0x865741['commandName']){const _0x487dc2=_0x865741['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5a2c6a,'*Format:*\x20%0',function(_0x484e9d){switch(_0x484e9d){case'left':return o(_0x5a2c6a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5a2c6a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5a2c6a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5a2c6a,'FORMAT_JUSTIFY_TEXT');}}(_0x487dc2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x41c6a3{['afterInit'](){const _0x1a72f4=this['editor'],_0xc67e61=_0x1a72f4['plugins']['get']('TrackChangesEditing'),_0x1bb55a=_0x1a72f4['locale'];for(const _0x43c7af of ti){if(!_0x1a72f4['plugins']['has'](_0x43c7af))continue;const _0x473ca0=_0x43c7af['slice'](0x0,-0x7)['toLowerCase'](),_0x24119a='FORMAT_'+_0x473ca0['toUpperCase']();_0xc67e61['enableDefaultAttributesIntegration'](_0x473ca0),_0xc67e61['registerInlineAttribute'](_0x473ca0),_0xc67e61['descriptionFactory']['registerAttributeLabel'](_0x473ca0,o(_0x1bb55a,_0x24119a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x374071=this['editor'],_0x49bd9d=_0x374071['locale'],_0x68a5db=_0x374071['plugins']['get']('TrackChangesEditing');function _0x320efa(_0x533117,_0x52e397){_0x68a5db['descriptionFactory']['registerDescriptionCallback'](_0x35855b=>{if('formatInline'!=_0x35855b['type'])return;const {data:_0x28ef03}=_0x35855b;return _0x28ef03&&_0x28ef03['commandName']===_0x533117?_0x28ef03['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49bd9d,'*Format:*\x20%0',_0x52e397)}:{'type':'format','content':o(_0x49bd9d,'*Remove\x20format:*\x20%0',_0x52e397)}:void 0x0;});}_0x320efa('bold',o(_0x49bd9d,'FORMAT_BOLD')),_0x320efa('italic',o(_0x49bd9d,'FORMAT_ITALIC')),_0x320efa('underline',o(_0x49bd9d,'FORMAT_UNDERLINE')),_0x320efa('code',o(_0x49bd9d,'FORMAT_CODE')),_0x320efa('strikethrough',o(_0x49bd9d,'FORMAT_STRIKETHROUGH')),_0x320efa('subscript',o(_0x49bd9d,'FORMAT_SUBSCRIPT')),_0x320efa('superscript',o(_0x49bd9d,'FORMAT_SUPERSCRIPT'));}}class U extends _0x41c6a3{['afterInit'](){const _0x4b6713=this['editor'],_0x47ab6e=_0x4b6713['locale'];if(!_0x4b6713['plugins']['has']('BlockQuoteEditing'))return;const _0x46e98f=_0x4b6713['plugins']['get']('TrackChangesEditing'),_0x426558=this['editor']['commands']['get']('blockQuote');_0x46e98f['enableCommand']('blockQuote',(_0xe53978,_0x379ace={})=>{const _0x5286d3=this['editor']['model']['document']['selection'],_0x35a4f9=_0x379ace&&void 0x0!==_0x379ace['forceValue']?_0x379ace['forceValue']:!_0x426558['value'];let _0x1c9809=[];if(_0x35a4f9){const _0x49ae9a=Array['from'](_0x5286d3['getSelectedBlocks']())['filter'](_0x45a30f=>oo(_0x45a30f)||function(_0x44e4f1,_0x26188f){const _0x388eb8=_0x26188f['checkChild'](_0x44e4f1['parent'],'blockQuote'),_0x4f5f84=_0x26188f['checkChild'](['$root','blockQuote'],_0x44e4f1);return _0x388eb8&&_0x4f5f84;}(_0x45a30f,this['editor']['model']['schema']));_0x1c9809=to(_0x49ae9a,_0x4b6713['model']);}else{const _0x14902b=Array['from'](_0x5286d3['getSelectedBlocks']())['filter'](_0x3eed68=>oo(_0x3eed68));_0x1c9809=to(_0x14902b,_0x4b6713['model']);}_0x4b6713['model']['change'](()=>{for(const _0x1577ac of _0x1c9809)_0x46e98f['markBlockFormat'](_0x1577ac,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x35a4f9}]});});}),_0x46e98f['descriptionFactory']['registerDescriptionCallback'](_0x4ff0fb=>{const {data:_0x41b5e8}=_0x4ff0fb;if(_0x41b5e8&&'blockQuote'==_0x41b5e8['commandName']){const _0xabb30=o(_0x47ab6e,'ELEMENT_BLOCK_QUOTE');return _0x41b5e8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47ab6e,'*Set\x20format:*\x20%0',_0xabb30)}:{'type':'format','content':o(_0x47ab6e,'*Remove\x20format:*\x20%0',_0xabb30)};}});}}function oo(_0x4710bc){return'blockQuote'==_0x4710bc['parent']['name'];}class G extends _0x41c6a3{['afterInit'](){const _0x38acf2=this['editor'];_0x38acf2['plugins']['has']('CaseChange')&&(_0x38acf2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x38acf2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x38acf2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x41c6a3{['afterInit'](){const _0x75c7d7=this['editor'];_0x75c7d7['commands']['get']('ckbox')&&_0x75c7d7['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x41c6a3{['afterInit'](){const _0x2ec9ae=this['editor'];if(!_0x2ec9ae['plugins']['has']('CodeBlock'))return;const _0x46036e=_0x2ec9ae['plugins']['get']('TrackChangesEditing'),_0x1a6667=_0x2ec9ae['locale'],_0x5b4b52=_0x2ec9ae['config']['get']('codeBlock')['languages'],_0x5c010b=_0x2ec9ae['commands']['get']('codeBlock');_0x46036e['enableCommand']('indentCodeBlock'),_0x46036e['enableCommand']('outdentCodeBlock'),_0x46036e['enableCommand']('codeBlock',(_0x251771,_0x5c5315={})=>{const _0x24c428=_0x2ec9ae['model'],_0x5bfe62=_0x2ec9ae['model']['document']['selection'],_0x57d60c=_0x5c5315&&void 0x0!==_0x5c5315['forceValue']?_0x5c5315['forceValue']:!_0x5c010b['value'];let _0x35dacf;_0x5c5315['language']||(_0x5c5315['language']=_0x5b4b52[0x0]['language']),_0x35dacf=_0x57d60c?Array['from'](_0x5bfe62['getSelectedBlocks']())['filter'](_0x98f1a3=>eo(_0x98f1a3)||function(_0xbdeb72,_0x250f91){if(_0xbdeb72['is']('rootElement')||_0x250f91['isLimit'](_0xbdeb72))return!0x1;return _0x250f91['checkChild'](_0xbdeb72['parent'],'codeBlock');}(_0x98f1a3,_0x24c428['schema'])):Array['from'](_0x5bfe62['getSelectedBlocks']())['filter'](_0x17b83b=>eo(_0x17b83b));const _0x4444a3=to(_0x35dacf,_0x24c428);_0x24c428['change'](()=>{for(const _0x5cf03e of _0x4444a3)_0x46036e['markBlockFormat'](_0x5cf03e,{'commandName':'codeBlock','commandParams':[{..._0x5c5315,'forceValue':_0x57d60c}],'formatGroupId':'blockName'});});}),(_0x46036e['descriptionFactory']['registerElementLabel']('codeBlock',_0x53a104=>o(_0x1a6667,'ELEMENT_CODE_BLOCK',_0x53a104)),_0x46036e['descriptionFactory']['registerDescriptionCallback'](_0x35724e=>{if('formatBlock'!=_0x35724e['type'])return;const _0x140a9c=_0x1a6667['t'],{data:_0x288f6b}=_0x35724e;if(!_0x288f6b||'codeBlock'!=_0x288f6b['commandName'])return;const _0x2d567a=_0x288f6b['commandParams'][0x0]['language'],_0x457f72=_0x140a9c(_0x5b4b52['find'](_0x4961ea=>_0x4961ea['language']===_0x2d567a)['label'])['toLowerCase']();return _0x288f6b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a6667,'*Set\x20format:*\x20%0',o(_0x1a6667,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x457f72+')')}:{'type':'format','content':o(_0x1a6667,'*Remove\x20format:*\x20%0',o(_0x1a6667,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2b0f64){return'codeBlock'==_0x2b0f64['name'];}class H extends _0x41c6a3{['afterInit'](){const _0x78a618=this['editor'];if(!_0x78a618['plugins']['has']('CommentsEditing'))return;_0x78a618['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x38bb04,_0x223dc8,_0x2e5663){const _0x5667be=[];for(const _0x47b378 of _0x223dc8['getItems']())_0x47b378['hasAttribute'](_0x38bb04)&&_0x5667be['push'](_0x2e5663['createRangeOn'](_0x47b378));return _0x5667be;}function _e(_0x5aeb49,_0x5bbcd0,{showActiveMarker:_0x27feb1=!0x0}={}){const _0x597338=_0x5aeb49['plugins']['get']('TrackChangesEditing');return(_0x3365be,_0x3770cd,_0x5b9098)=>{if(!_0x5b9098['consumable']['test'](_0x3770cd['markerRange'],_0x3365be['name']))return;const _0xe7dd7=_0x3770cd['markerRange']['getWalker'](),_0x9a76a1=_0x3770cd['markerRange']['start'],_0x5ef538=_0x5aeb49['model']['schema'];let _0x81a9c8=null,_0x4634b5=null,_0xe26af=!0x1,_0x322cce=!0x1;for(const _0x5de935 of _0xe7dd7){const _0x488498=_0x5de935['item'];_0xe26af=_0xe26af||_0x5ef538['isContent'](_0x488498);const _0x50a289=_0x5b9098['mapper']['toViewElement'](_0x488498);if(_0x50a289&&_0x50a289['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5de935['type']&&(_0x5ef538['isBlock'](_0x488498)&&!_0x5ef538['isLimit'](_0x488498)&&(_0x488498['nextSibling']||_0x9a76a1['isAtEnd']?_0x81a9c8&&_0x81a9c8['parent']==_0x488498||(_0x81a9c8=_0x488498,_0x12ecea(_0x5de935['previousPosition']),_0x322cce=!0x0):_0x4634b5=_0x4634b5||_0x5de935['previousPosition']));}function _0x12ecea(_0x2e8e79){const _0x1ed5d1=_0x5b9098['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5bbcd0}),_0x7ef36e=_0x5b9098['mapper']['toViewPosition'](_0x2e8e79);_0x27feb1&&_0x597338['activeMarkers']['includes'](_0x3770cd['markerName'])&&_0x5b9098['writer']['addClass']('ck-suggestion-marker--active',_0x1ed5d1),_0x5b9098['writer']['insert'](_0x7ef36e,_0x1ed5d1),_0x5b9098['mapper']['bindElementToMarker'](_0x1ed5d1,_0x3770cd['markerName']);}_0xe26af||_0x322cce||!_0x4634b5||_0x12ecea(_0x4634b5);};}class J extends _0x41c6a3{static get['requires'](){return[_0x1fde27];}['init'](){const _0x240564=this['editor'],_0x2650ff=_0x240564['plugins']['get']('TrackChangesEditing');_0x2650ff['enableCommand']('delete');const _0x24896e=_0x240564['commands']['get']('deleteForward');_0x2650ff['enableCommand']('deleteForward',(_0x22796c,_0x25b8d9={})=>{const _0x30c4c2=_0x240564['model']['createSelection'](_0x240564['model']['document']['selection']);_0x30c4c2['isCollapsed']&&_0x240564['model']['modifySelection'](_0x30c4c2,{'direction':'forward','unit':_0x25b8d9['unit']});const _0x252564=_0x30c4c2['getFirstRange'](),_0x25d708=_0x192ba9['fromRange'](_0x252564);let _0x2a5d4b;_0x22796c(_0x25b8d9),_0x2a5d4b='$graveyard'==_0x25d708['root']['rootName']?_0x240564['model']['createRange'](_0x252564['start']):_0x240564['model']['createRange'](_0x25d708['start'],_0x25d708['end']),_0x25d708['detach'](),_0x240564['model']['enqueueChange'](_0x24896e['buffer']['batch'],_0x33ad1d=>{_0x24896e['buffer']['lock'](),_0x33ad1d['setSelection'](_0x33ad1d['createRange'](_0x2a5d4b['end'])),_0x24896e['buffer']['unlock']();});}),_0x240564['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x240564,'merge'),{'priority':'high'}),_0x240564['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3a462f,_0x2a27d5,_0x49b992)=>{_0x49b992['options']['showSuggestionHighlights']&&_e(_0x240564,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3a462f,_0x2a27d5,_0x49b992);},{'priority':'high'}),_0x240564['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x7693b9,_0x308017,_0x4914f8)=>{const _0x71144f=_0x4914f8['mapper']['markerNameToElements'](_0x308017['markerName']);if(_0x71144f){for(const _0x1e596a of _0x71144f)_0x1e596a['is']('uiElement')&&(_0x4914f8['mapper']['unbindElementFromMarkerName'](_0x1e596a,_0x308017['markerName']),_0x4914f8['writer']['remove'](_0x1e596a));}},{'priority':'high'});}}class q extends _0x41c6a3{['afterInit'](){const _0x244ed1=this['editor'];if(!_0x244ed1['plugins']['has']('ListEditing'))return;const _0x4019fa=_0x244ed1['locale'],_0x2a0f51=_0x244ed1['plugins']['get']('TrackChangesEditing'),_0x3e7279=_0x244ed1['plugins']['has']('TodoListEditing'),_0x313308=!!_0x244ed1['config']['get']('list.multiBlock');function _0x3f3661(_0x10263f){return{'type':'format','content':''+o(_0x4019fa,'*Set\x20format:*\x20%0',_0x10263f)};}function _0x45c7b0(_0x58c972){return{'type':'format','content':''+o(_0x4019fa,'*Remove\x20format:*\x20%0',_0x58c972)};}_0x2a0f51['enableDefaultAttributesIntegration']('numberedList'),_0x2a0f51['enableDefaultAttributesIntegration']('bulletedList'),_0x2a0f51['enableDefaultAttributesIntegration']('customNumberedList'),_0x2a0f51['enableDefaultAttributesIntegration']('customBulletedList'),_0x2a0f51['enableDefaultAttributesIntegration']('indentList'),_0x2a0f51['enableDefaultAttributesIntegration']('outdentList'),_0x2a0f51['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2a0f51['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2a0f51['registerBlockAttribute']('listItemId'),_0x2a0f51['registerBlockAttribute']('listType'),_0x2a0f51['registerBlockAttribute']('listIndent'),_0x313308&&(_0x2a0f51['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2a0f51['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3e7279&&(_0x2a0f51['enableDefaultAttributesIntegration']('todoList'),_0x2a0f51['enableDefaultAttributesIntegration']('checkTodoList'),_0x2a0f51['registerBlockAttribute']('todoListChecked'),_0x2a0f51['descriptionFactory']['registerDescriptionCallback'](_0x4634be=>{const {data:_0x402422}=_0x4634be;if(_0x402422&&'todoListChecked'==_0x402422['key'])return{'type':'format','content':_0x402422['newValue']?o(_0x4019fa,'*Check\x20item*'):o(_0x4019fa,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xe8ce4=>{if(_0xe8ce4['batch']['isUndo'])return!0x1;let _0x5d88e1=!0x1;const _0x1b8608=_0x2a0f51['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e4d5d=>'todoListChecked'===_0x2a0f51['_getAttributeKey'](_0x3e4d5d));for(const _0x4032cc of _0x1b8608){'todo'!=_0x4032cc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2a0f51['_findSuggestions'](_0x4032cc['getFirstRange'](),'attribute')['find'](_0x4f863d=>'listType'===_0x2a0f51['_getAttributeKey'](_0x4f863d['suggestion']))||(_0xe8ce4['removeMarker'](_0x4032cc['getFirstMarker']()),_0x5d88e1=!0x0));}return _0x5d88e1;})),_0x2a0f51['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4019fa,'FORMAT_INDENT'));const _0x5b661c={'type':'format','content':''};_0x2a0f51['descriptionFactory']['registerDescriptionCallback'](_0x2c9181=>{const {data:_0x39f82b}=_0x2c9181;if(!_0x39f82b||'listType'!=_0x39f82b['key'])return;let _0x22c728=_0x2c9181['head'];for(;_0x22c728;){if(_0x22c728['data']&&(('listStyle'==_0x22c728['data']['key']||'listMarkerStyle'==_0x22c728['data']['key'])&&(_0x22c728['data']['newValue']&&'default'!=_0x22c728['data']['newValue']||'default'!=_0x22c728['data']['oldValue']&&!_0x39f82b['newValue'])||!_0x313308&&_0x22c728['data']['key']==m))return _0x5b661c;_0x22c728=_0x22c728['next'];}if(null==_0x39f82b['newValue'])switch(_0x39f82b['oldValue']){case'bulleted':return _0x45c7b0(o(_0x4019fa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45c7b0(o(_0x4019fa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45c7b0(o(_0x4019fa,'ELEMENT_TODO_LIST'));}switch(_0x39f82b['newValue']){case'bulleted':return _0x3f3661(o(_0x4019fa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f3661(o(_0x4019fa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f3661(o(_0x4019fa,'ELEMENT_TODO_LIST'));}}),_0x2a0f51['descriptionFactory']['registerDescriptionCallback'](_0x3da96f=>{const {data:_0x17c17c}=_0x3da96f;if(_0x17c17c&&'listIndent'==_0x17c17c['key'])return null==_0x17c17c['newValue']||null==_0x17c17c['oldValue']&&0x0==_0x17c17c['newValue']?_0x5b661c:void 0x0;}),_0x2a0f51['descriptionFactory']['registerDescriptionCallback'](_0x4d2b8f=>{if('attribute'!=_0x4d2b8f['type'])return;const {data:_0x4b2704}=_0x4d2b8f;if(!_0x4b2704||'listItemId'!=_0x4b2704['key'])return;const _0x54e4c6=le(_0x4d2b8f);return'newValue'==_0x54e4c6?{'type':'format','content':o(_0x4019fa,'*Merge:*\x20list\x20item')}:'oldValue'==_0x54e4c6?{'type':'format','content':o(_0x4019fa,'*Split:*\x20list\x20item')}:_0x5b661c;}),_0x244ed1['model']['document']['registerPostFixer'](_0x2b8807=>this['listItemIdFixer'](_0x2b8807)),_0x244ed1['model']['document']['registerPostFixer'](_0x247747=>this['noTrackChangesFixer'](_0x247747)),_0x244ed1['model']['document']['on']('change:data',(_0x59e032,_0x53f647)=>{if(_0x53f647['isUndo']||!_0x53f647['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x23919d){if(_0x23919d['batch']['isUndo']||!_0x23919d['batch']['isLocal'])return!0x1;let _0x252b60=!0x1;const _0x278439=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24b55d=>_0x24b55d['data']&&'listItemId'==_0x24b55d['data']['key'])['filter'](_0xb53b2d=>_0xb53b2d['data']['newValue']&&_0xb53b2d['data']['oldValue']);for(const _0x4acf03 of _0x278439)le(_0x4acf03)||(_0x23919d['removeMarker'](_0x4acf03['getFirstMarker']()),_0x252b60=!0x0);return _0x252b60;}['noTrackChangesFixer'](_0x3e7d26){if(_0x3e7d26['batch']['isUndo']||!_0x3e7d26['batch']['isLocal'])return!0x1;const _0x1d43c8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1d43c8['trackChangesCommand']['value'])return!0x1;let _0x28fb8a=!0x1;const _0x3a9d95=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x16bcc0=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x241761=>'attribute'==_0x241761['type'])['filter'](_0x479b12=>_0x3a9d95['includes'](_0x479b12['attributeKey']));if(0x0==_0x16bcc0['length'])return _0x28fb8a;for(const _0x56ce18 of _0x16bcc0){const _0x3b441d=_0x1d43c8['_findSuggestions'](_0x56ce18['range'],'attribute')['filter'](_0x13b951=>!_0x13b951['meta']['isNextTo'])['map'](_0x326bc9=>_0x326bc9['suggestion'])['filter'](_0x3efe18=>{const _0x980542=_0x1d43c8['_getAttributeKey'](_0x3efe18);return _0x3a9d95['includes'](_0x980542);});if(_0x3b441d['length']){for(const _0x1bfd30 of _0x3b441d)_0x3e7d26['removeMarker'](_0x1bfd30['getFirstMarker']());_0x28fb8a=!0x0;}}return _0x28fb8a;}['assureChains'](){const _0x3a9d5a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59e2c0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1bec96;const _0x2ebcbf=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x450b99=>{if(_0x450b99['data']['oldRange']||!_0x450b99['data']['newRange'])return null;if(!_0x450b99['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xc00fc8}=_0x3a9d5a['_splitMarkerName'](_0x450b99['name']);if(!_0x3a9d5a['hasSuggestion'](_0xc00fc8))return null;const _0x4d9a1a=_0x3a9d5a['getSuggestion'](_0xc00fc8);return _0x59e2c0['includes'](_0x4d9a1a['data']['key']);})['map'](_0x8837d3=>{const {id:_0x2eeab}=_0x3a9d5a['_splitMarkerName'](_0x8837d3['name']),_0x1531e0=_0x3a9d5a['getSuggestion'](_0x2eeab);return _0x1bec96=_0x1531e0['attributes']['groupId'],_0x1531e0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2ebcbf['size'])return;const _0x5b7816=_0x3a9d5a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b91da=>'attribute'==_0x5b91da['type']&&_0x5b91da['data']&&_0x59e2c0['includes'](_0x5b91da['data']['key'])&&_0x5b91da['attributes']['groupId']!=_0x1bec96)['map'](_0x1f625d=>({'listItem':_0x1f625d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1f625d['attributes']['groupId']})),_0x1333c1=new Set();for(const {groupId:_0x4fd8e2,listItem:_0xceb9c0}of _0x5b7816)_0x2ebcbf['has'](_0xceb9c0)&&_0x1333c1['add'](_0x4fd8e2);for(const _0x165e48 of _0x3a9d5a['getSuggestions']())_0x1333c1['has'](_0x165e48['attributes']['groupId'])&&_0x165e48['setAttribute']('groupId',_0x1bec96);}['_supportLegacySuggestions'](){const _0x2ce341=this['editor'],_0x43ef15=_0x2ce341['locale'],_0x1afce4=_0x2ce341['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1afce4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x120927,_0x42a69b){const _0x5dd968=[];for(let _0x5e1125 of _0x120927)_0x5e1125['start']['nodeAfter']===_0x5e1125['end']['parent']&&(_0x5e1125=_0x2ce341['model']['createRange'](_0x2ce341['model']['createPositionAt'](_0x5e1125['start']['nodeAfter'],0x0))),_0x5dd968['push'](_0x5e1125);_0x2ce341['model']['change'](_0x265f55=>{const _0x3cb67e=_0x2ce341['model']['document']['selection'],_0x14c2db=Array['from'](_0x3cb67e['getRanges']())['map'](_0x3dd9cd=>_0x192ba9['fromRange'](_0x3dd9cd));_0x265f55['setSelection'](_0x5dd968),_0x2ce341['commands']['get'](_0x42a69b['commandName'])['refresh'](),_0x42a69b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2ce341['execute'](_0x42a69b['commandName'],..._0x42a69b['commandParams']),_0x265f55['setSelection'](_0x14c2db);for(const _0xb77944 of _0x14c2db)_0xb77944['detach']();});}),_0x1afce4['descriptionFactory']['registerElementLabel'](function(_0x1f160b){const _0x446075=!_0x2ce341['model']['schema']['isObject'](_0x1f160b),_0x426fd4=_0x1f160b['previousSibling'],_0x512361=_0x1f160b['nextSibling'],_0x3e2a11=_0x1f160b['getAttribute']('listItemId'),_0x53f6f4=!_0x426fd4||_0x426fd4['getAttribute']('listItemId')!==_0x3e2a11,_0x11795e=!_0x512361||_0x512361['getAttribute']('listItemId')!==_0x3e2a11;return _0x446075&&Boolean(_0x3e2a11)&&_0x53f6f4&&_0x11795e;},_0x4280ca=>o(_0x43ef15,'ELEMENT_LIST_ITEM',_0x4280ca));}['_registerLegacyDescription'](){const _0x5a25eb=this['editor'],_0x4c0ee8=_0x5a25eb['locale'];function _0x52d674(_0x5797a5){const _0xf6bae3=_0x5a25eb['commands']['get']('bulletedList')['value'],_0x2895c5=_0x5a25eb['commands']['get']('numberedList')['value'];return'numberedList'===_0x5797a5?_0xf6bae3:_0x2895c5;}_0x5a25eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x40b62f){if('formatBlock'!=_0x40b62f['type'])return;const {data:_0x1ca7ee}=_0x40b62f;if(!_0x1ca7ee)return;let _0x5d3756,_0x5b359d,_0xaaf7ed,_0x3ba864;switch(_0x1ca7ee['commandName']){case'bulletedList':_0xaaf7ed=_0x1ca7ee['commandParams'][0x0]['forceValue'],_0x3ba864=_0x52d674(_0x1ca7ee['commandName']),_0x5d3756=_0xaaf7ed?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ba864&&_0x5a25eb['config']['get']('list.multiBlock')||(_0x5d3756='*Change\x20to:*\x20%0'),_0x5b359d={'type':'format','content':o(_0x4c0ee8,_0x5d3756,o(_0x4c0ee8,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xaaf7ed=_0x1ca7ee['commandParams'][0x0]['forceValue'],_0x3ba864=_0x52d674(_0x1ca7ee['commandName']),_0x5d3756=_0xaaf7ed?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ba864&&_0x5a25eb['config']['get']('list.multiBlock')||(_0x5d3756='*Change\x20to:*\x20%0'),_0x5b359d={'type':'format','content':o(_0x4c0ee8,_0x5d3756,o(_0x4c0ee8,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5d3756='*Indent:*\x20%0',_0x5b359d={'type':'format','content':o(_0x4c0ee8,_0x5d3756,o(_0x4c0ee8,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5d3756=function(_0x3d958b){const _0x34a707=_0x3d958b['getFirstRange']();let _0x5ef714=_0x34a707['start']['nodeAfter'];for(;_0x5ef714&&_0x34a707['containsItem'](_0x5ef714);){if(_0x5ef714['getAttribute']('listIndent')>0x0)return!0x1;_0x5ef714=_0x5ef714['nextSibling'];}return!0x0;}(_0x40b62f)?o(_0x4c0ee8,'*Format:*\x20remove\x20from\x20%0',o(_0x4c0ee8,function(_0x24c4a1){return'ELEMENT_'+_0x24c4a1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x40b62f))):o(_0x4c0ee8,'*Outdent:*\x20%0',o(_0x4c0ee8,'ELEMENT_LIST_ITEM')),_0x5b359d={'type':'format','content':_0x5d3756};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1ca7ee['multipleBlocks']&&(_0x5d3756='*Merge:*\x20%0',_0x5b359d={'type':'deletion','content':o(_0x4c0ee8,_0x5d3756,o(_0x4c0ee8,'ELEMENT_LIST_ITEM'))});}return _0x5b359d;});}}function le(_0x1a7196){let _0x3e3b5a=_0x1a7196['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3e3b5a;){const _0x219b3f=_0x3e3b5a['getAttribute']('listItemId');if(!_0x219b3f)return!0x1;if(_0x219b3f==_0x1a7196['data']['newValue'])return'newValue';if(_0x219b3f==_0x1a7196['data']['oldValue'])return'oldValue';_0x3e3b5a=_0x3e3b5a['previousSibling'];}return!0x1;}class ue extends _0x41c6a3{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2e7bab=this['editor']['config']['get']('list.properties'),_0x3105ee=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e7bab['styles']&&(_0x3105ee['enableDefaultAttributesIntegration']('listStyle'),_0x3105ee['registerBlockAttribute']('listStyle')),_0x2e7bab['reversed']&&(_0x3105ee['enableDefaultAttributesIntegration']('listReversed'),_0x3105ee['registerBlockAttribute']('listReversed')),_0x2e7bab['startIndex']&&(_0x3105ee['enableDefaultAttributesIntegration']('listStart'),_0x3105ee['registerBlockAttribute']('listStart'));const _0x1aedf3={'type':'format','content':''};_0x3105ee['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x926dbd=this['editor']['locale'];_0x3105ee['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x926dbd,'FORMAT_LIST_REVERSED')),_0x3105ee['descriptionFactory']['registerDescriptionCallback'](_0x549e28=>{const {data:_0x5a88f1}=_0x549e28;if(_0x5a88f1&&'listReversed'==_0x5a88f1['key'])return null==_0x5a88f1['newValue']||0x0==_0x5a88f1['newValue']&&null==_0x5a88f1['oldValue']?_0x1aedf3:void 0x0;}),_0x3105ee['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x926dbd,'FORMAT_LIST_START')),_0x3105ee['descriptionFactory']['registerDescriptionCallback'](_0x2a243f=>{const {data:_0x1c69ac}=_0x2a243f;if(_0x1c69ac&&'listStart'==_0x1c69ac['key'])return null==_0x1c69ac['newValue']||0x1==_0x1c69ac['newValue']&&null==_0x1c69ac['oldValue']?_0x1aedf3:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x503333=>{if(_0x503333['batch']['isUndo'])return!0x1;let _0x434826=!0x1;const _0x337631=_0x3105ee['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4be115=>{const _0xea5a76=_0x3105ee['_getAttributeKey'](_0x4be115);return'listStart'==_0xea5a76||'listReversed'==_0xea5a76;});for(const _0x36d450 of _0x337631){const _0x387256=_0x36d450['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x387256||'customNumbered'==_0x387256)continue;_0x3105ee['_findSuggestions'](_0x36d450['getFirstRange'](),'attribute')['find'](_0x713bb3=>'listType'==_0x3105ee['_getAttributeKey'](_0x713bb3['suggestion']))||(_0x503333['removeMarker'](_0x36d450['getFirstMarker']()),_0x434826=!0x0);}return _0x434826;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5472d4){const _0x42c09e=this['editor']['locale'],{data:_0x2bec77}=_0x5472d4,_0x55b0c9={'type':'format','content':''};if(!_0x2bec77||'listStyle'!=_0x2bec77['key'])return;if(!_0x2bec77['oldValue'])return'default'==_0x2bec77['newValue']?_0x55b0c9:{'type':'format','content':''+o(_0x42c09e,'*Set\x20format:*\x20%0',o(_0x42c09e,this['_getTranslationKeyForListStyle'](_0x2bec77['newValue'])))};if(!_0x2bec77['newValue']){if('default'==_0x2bec77['oldValue'])return _0x55b0c9;let _0x2a9ec1=_0x5472d4['head'];for(;_0x2a9ec1;){if(_0x2a9ec1['data']&&'listType'==_0x2a9ec1['data']['key']&&_0x2a9ec1['data']['newValue'])return _0x55b0c9;_0x2a9ec1=_0x2a9ec1['next'];}return{'type':'format','content':''+o(_0x42c09e,'*Remove\x20format:*\x20%0',o(_0x42c09e,this['_getTranslationKeyForListStyle'](_0x2bec77['oldValue'])))};}if('default'!=_0x2bec77['newValue'])return{'type':'format','content':''+o(_0x42c09e,'*Set\x20format:*\x20%0',o(_0x42c09e,this['_getTranslationKeyForListStyle'](_0x2bec77['newValue'])))};let _0x22e653=_0x5472d4['head'];for(;_0x22e653;){if(_0x22e653['data']&&'listType'==_0x22e653['data']['key']&&_0x22e653['data']['newValue']&&_0x22e653['data']['oldValue'])return _0x55b0c9;_0x22e653=_0x22e653['next'];}return{'type':'format','content':o(_0x42c09e,'*Set\x20format:*\x20%0',o(_0x42c09e,'ELEMENT_'+_0x5472d4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x56f0ff=this['editor'],_0x2a806d=_0x56f0ff['locale'];_0x56f0ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e245e=>{if('formatBlock'!=_0x1e245e['type'])return;const {data:_0x1d3ddf}=_0x1e245e;if(!_0x1d3ddf)return;let _0x2f5327,_0x11bc71;switch(_0x1d3ddf['commandName']){case'listStyle':_0x2f5327='*Change\x20to:*\x20%0',_0x11bc71={'type':'format','content':o(_0x2a806d,_0x2f5327,o(_0x2a806d,this['_getTranslationKeyForListStyle'](_0x1d3ddf['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2f5327=_0x1d3ddf['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x11bc71={'type':'format','content':o(_0x2a806d,_0x2f5327)};break;case'listStart':_0x2f5327='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x11bc71={'type':'format','content':o(_0x2a806d,_0x2f5327,_0x1d3ddf['commandParams'][0x0]['startIndex'])};}return _0x11bc71;});}['_getTranslationKeyForListStyle'](_0x3d2835){return'ELEMENT_'+function(_0x27bb74){if(pe['includes'](_0x27bb74))return'bulleted';if(ye['includes'](_0x27bb74))return'numbered';return null;}(_0x3d2835)['toUpperCase']()+'_LIST_'+_0x3d2835['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class K extends _0x41c6a3{static get['requires'](){return[_0x55e3e5];}['init'](){const _0x1a0442=this['editor'],_0x3dd807=_0x1a0442['plugins']['get']('TrackChangesEditing'),_0x17e342=_0x1a0442['commands']['get']('enter');_0x3dd807['enableCommand']('enter',()=>{_0x1a0442['model']['change'](_0x16fee1=>{const _0x4f4f89=_0x1a0442['model']['document']['selection'],_0x3890ee=_0x4f4f89['getFirstPosition'](),_0x3d71e3=_0x192ba9['fromRange'](_0x4f4f89['getFirstRange']());if(_0x17e342['enterBlock'](_0x16fee1)){const _0x11f8c1=_0x1a0442['model']['createPositionAt'](_0x3890ee['parent']['nextSibling'],0x0),_0x636ffc=_0x16fee1['createRange'](_0x3890ee,_0x11f8c1);_0x3dd807['markInsertion'](_0x636ffc);}else _0x16fee1['setSelection'](_0x16fee1['createRange'](_0x3d71e3['end']));_0x3d71e3['detach'](),_0x17e342['fire']('afterExecute',{'writer':_0x16fee1});});}),_0x1a0442['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1a0442,'split'),{'priority':'high'}),_0x1a0442['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2e34dc,_0x4082c8,_0x5bd7e1)=>{const _0x491786=_0x5bd7e1['mapper']['markerNameToElements'](_0x4082c8['markerName']);if(_0x491786){for(const _0x4113b8 of _0x491786)_0x4113b8['hasClass']('ck-suggestion-marker-split')&&(_0x5bd7e1['mapper']['unbindElementFromMarkerName'](_0x4113b8,_0x4082c8['markerName']),_0x5bd7e1['writer']['remove'](_0x4113b8));}},{'priority':'high'}),_0x1a0442['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x40cc9e,_0x2cef72,_0x1874d0)=>{_0x1874d0['options']['showSuggestionHighlights']&&_e(_0x1a0442,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x40cc9e,_0x2cef72,_0x1874d0);},{'priority':'high'});}}class W extends _0x41c6a3{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2b8762=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b8762['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2b8762['enableCommand']('findNext'),_0x2b8762['enableCommand']('findPrevious'),_0x2b8762['enableCommand']('replace'),_0x2b8762['enableCommand']('replaceAll');}['handleFindCommand'](_0xeaac51,_0x3fb98d,_0x21c343={}){const _0x53005c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xeaac51(_0x38396b=>('string'==typeof _0x3fb98d?_0x53005c['findByTextCallback'](_0x3fb98d,_0x21c343):_0x3fb98d)(_0x38396b)['filter'](_0x49486b=>!0x1===this['_isInDeletionRange'](_0x49486b,_0x38396b['item'])),_0x21c343);}['_isInDeletionRange'](_0x2409f7,_0xd1b0b8){const _0x1ae32a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xd1b0b8,_0x2409f7['start']),this['editor']['model']['createPositionAt'](_0xd1b0b8,_0x2409f7['end']));for(const _0x367fbc of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1ae32a['getIntersection'](_0x367fbc['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 _0x41c6a3{['afterInit'](){const _0x21063a=this['editor']['locale'],_0x7ed5fa=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2715da,commandName:_0x12983f}of ro)this['editor']['plugins']['has'](_0x2715da)&&(_0x7ed5fa['enableDefaultAttributesIntegration'](_0x12983f),_0x7ed5fa['registerInlineAttribute'](_0x12983f));_0x21063a['t'],_0x7ed5fa['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x21063a,'FORMAT_FONT_SIZE')),_0x7ed5fa['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x21063a,'FORMAT_FONT_FAMILY')),_0x7ed5fa['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x21063a,'FORMAT_FONT_COLOR')),_0x7ed5fa['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x21063a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b7248=this['editor'],_0x5f3ae8=_0x2b7248['locale'];_0x2b7248['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a2e3b=>{const _0x44bd69=_0x5f3ae8['t'];if('formatInline'!=_0x1a2e3b['type'])return;const {data:_0x4c44ea}=_0x1a2e3b;if(null!=_0x4c44ea){if('fontSize'==_0x4c44ea['commandName']){const _0x124523=_0x4c44ea['commandParams'][0x0]['value'];if(_0x124523){const _0x2e7e6e=_0x44bd69(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x452e2a=>_0x452e2a['model']==_0x124523)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5f3ae8,'*Set\x20font\x20size:*\x20%0',_0x2e7e6e)};}return{'type':'format','content':o(_0x5f3ae8,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4c44ea['commandName']){const _0x1ff763=_0x4c44ea['commandParams'][0x0]['value'];return _0x1ff763?{'type':'format','content':o(_0x5f3ae8,'*Set\x20font\x20family:*\x20%0',_0x1ff763)}:{'type':'format','content':o(_0x5f3ae8,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4c44ea['commandName']){const _0x1f32f8=_0x4c44ea['commandParams'][0x0]['value'];if(_0x1f32f8){const _0x120cee=_0x326eb4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5bb5b6=>_0x5bb5b6['model']==_0x1f32f8);let _0x1baf16=_0x1f32f8,_0x37ab92='';return _0x120cee&&(_0x1baf16=_0x120cee['label'],_0x37ab92=_0x44bd69(_0x1baf16)['toLowerCase']()),{'type':'format','content':o(_0x5f3ae8,'*Set\x20font\x20color:*\x20%0',_0x37ab92)['trim'](),'color':{'value':_0x1f32f8,'title':_0x37ab92||_0x1baf16}};}return{'type':'format','content':o(_0x5f3ae8,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4c44ea['commandName']){const _0xc76250=_0x4c44ea['commandParams'][0x0]['value'];if(_0xc76250){const _0x58a654=_0x326eb4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x57182d=>_0x57182d['model']==_0xc76250);let _0xfda05a=_0xc76250,_0x57c200='';return _0x58a654&&(_0xfda05a=_0x58a654['label'],_0x57c200=_0x44bd69(_0xfda05a)['toLowerCase']()),{'type':'format','content':o(_0x5f3ae8,'*Set\x20font\x20background\x20color:*\x20%0',_0x57c200)['trim'](),'color':{'value':_0xc76250,'title':_0x57c200||_0xfda05a}};}return{'type':'format','content':o(_0x5f3ae8,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x41c6a3{['afterInit'](){const _0x318ab3=this['editor'],_0x972957=_0x318ab3['plugins']['get']('TrackChangesEditing'),_0x3815e3=_0x318ab3['commands']['get']('copyFormat'),_0x3082a8=_0x318ab3['commands']['get']('pasteFormat');_0x3815e3&&_0x3082a8&&(_0x972957['enableDefaultAttributesIntegration']('pasteFormat'),_0x972957['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3359e6=this['editor'],_0xa00037=_0x3359e6['locale'];_0x3359e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x334be=>{if('formatBlock'!=_0x334be['type']&&'formatInline'!=_0x334be['type'])return;const {data:_0x3c9227}=_0x334be;if(_0x3c9227&&'pasteFormat'===_0x3c9227['commandName']){const _0x5a7922=[],_0x1e5dd0=_0x3c9227['commandParams'][0x0];for(const [_0x19a048,_0x252eed]of Object['entries'](_0x1e5dd0))_0x5a7922['push'](so(_0x3359e6,_0x19a048,_0x252eed));return _0x5a7922['length']?{'type':'format','content':o(_0xa00037,'*Set\x20format\x20to:*\x20%0',_0x5a7922['join'](',\x20'))}:{'type':'format','content':o(_0xa00037,'*Remove\x20all\x20formatting*')};}});}}function so(_0x580f0c,_0x259380,_0x2dd91b){const _0x4107cb=_0x580f0c['locale']['t'],_0x1fe74d=_0x259380['split'](/(?=[A-Z])/)['join']('\x20'),_0x382341=_0x4107cb(_0x1fe74d['charAt'](0x0)['toUpperCase']()+_0x1fe74d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2dd91b)return _0x382341;if('fontColor'===_0x259380||'fontBackgroundColor'===_0x259380){const _0x53bd1a=_0x326eb4(_0x580f0c['config']['get']('fontColor.colors'))['find'](_0x583116=>_0x583116['model']==_0x2dd91b);return _0x382341+'\x20('+(_0x53bd1a?_0x4107cb(_0x53bd1a['label'])['toLowerCase']():_0x2dd91b)+')';}if('fontSize'===_0x259380&&isNaN(parseFloat(_0x2dd91b))){const _0x50a610=_0x580f0c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x580f0c['config']['get']('fontSize.options'))['find'](_0x23429c=>_0x23429c['model']==_0x2dd91b);return _0x382341+'\x20('+(_0x50a610?_0x4107cb(_0x50a610['title'])['toLowerCase']():_0x2dd91b)+')';}return _0x382341+'\x20('+_0x2dd91b+')';}class Y extends _0x41c6a3{['_headingOptions'];['afterInit'](){const _0x5eb828=this['editor'];if(!_0x5eb828['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5eb828['config']['get']('heading.options');const _0x35747b=_0x5eb828['locale'],_0x2e2b84=_0x5eb828['plugins']['get']('TrackChangesEditing');_0x2e2b84['enableDefaultAttributesIntegration']('heading');for(const _0x379e79 of this['_headingOptions'])'paragraph'!=_0x379e79['model']&&_0x2e2b84['descriptionFactory']['registerElementLabel'](_0x379e79['model'],_0x241132=>{const _0x3291c1=this['_getHeadingLevel'](_0x379e79['model']);return null!==_0x3291c1?_0x3882ba(_0x241132,_0x3291c1):_0x1a0135(_0x241132,_0x379e79['title']);});function _0x3882ba(_0x155f6b,_0x36c96a){return o(_0x35747b,'ELEMENT_HEADING',[_0x155f6b,_0x36c96a]);}function _0x1a0135(_0x36aaa6,_0x4ba063){return o(_0x35747b,'ELEMENT_HEADING_CUSTOM',[_0x36aaa6,_0x4ba063]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x435c58=this['editor'],_0x4938b0=_0x435c58['locale'];function _0x3ef803(_0x45ec83,_0x11393f){return o(_0x4938b0,'ELEMENT_HEADING_CUSTOM',[_0x45ec83,_0x11393f]);}_0x435c58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33cd46=>{if('formatBlock'!=_0x33cd46['type'])return;const {data:_0x19aee4}=_0x33cd46;if(_0x19aee4&&'heading'==_0x19aee4['commandName']){const _0x4bed0c=_0x19aee4['commandParams'][0x0]['value'],_0x32673d=this['_getHeadingLevel'](_0x4bed0c);if(null!==_0x32673d)return{'type':'format','content':o(_0x4938b0,'*Change\x20to:*\x20%0',(_0x447d68=0x1,_0x3d61dc=_0x32673d,o(_0x4938b0,'ELEMENT_HEADING',[_0x447d68,_0x3d61dc])))};const _0x5a4754=this['_headingOptions']['find'](_0x3b485a=>_0x3b485a['model']===_0x4bed0c)['title'];return{'type':'format','content':o(_0x4938b0,'*Change\x20to:*\x20%0',_0x3ef803(0x1,_0x5a4754))};}var _0x447d68,_0x3d61dc;});}['_getHeadingLevel'](_0x4ee104){const _0x15b782=_0x4ee104['match'](/^heading(\d+)/);if(_0x15b782)return _0x15b782[0x1];const _0x32f9e0=this['_headingOptions']?.['find'](_0x4e4922=>_0x4e4922['model']==_0x4ee104);if(_0x32f9e0&&_0x32f9e0['view']){const _0x3fc79a=_0x32f9e0['view'],_0x469e69=(_0x3fc79a['name']??_0x3fc79a)['match'](/^h(\d+)/);if(_0x469e69)return _0x469e69[0x1];}return null;}}class Z extends _0x41c6a3{['afterInit'](){const _0x15c8aa=this['editor'];if(!_0x15c8aa['plugins']['has']('HighlightEditing'))return;const _0x43b7a6=_0x15c8aa['plugins']['get']('TrackChangesEditing'),_0x5085ff=_0x15c8aa['locale'];_0x43b7a6['enableDefaultAttributesIntegration']('highlight'),_0x43b7a6['registerInlineAttribute']('highlight'),_0x43b7a6['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5085ff,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b7331=this['editor'],_0x1b5cc7=_0x1b7331['locale'];_0x1b7331['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20c4b2=>{if('formatInline'!=_0x20c4b2['type'])return;const {data:_0x3ae823}=_0x20c4b2;if(_0x3ae823&&'highlight'==_0x3ae823['commandName']){const _0x1e96db=_0x1b5cc7['t'],_0x5d18ab=_0x3ae823['commandParams'][0x0]['value'];if(_0x5d18ab){const _0x22ab63=_0x1b7331['config']['get']('highlight.options')['find'](_0x3747f4=>_0x3747f4['model']==_0x5d18ab),_0x2187f7=_0x1e96db(_0x22ab63['title'])['toLowerCase']();return{'type':'format','content':o(_0x1b5cc7,'*Set\x20highlight:*\x20%0',_0x2187f7),'color':{'value':_0x22ab63['color'],'title':_0x22ab63['title']}};}return{'type':'format','content':o(_0x1b5cc7,'*Remove\x20highlight*',o(_0x1b5cc7,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x41c6a3{['afterInit'](){const _0x2c36f4=this['editor'];if(!_0x2c36f4['plugins']['has']('HorizontalLineEditing'))return;_0x2c36f4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x413953=_0x2c36f4['plugins']['get']('TrackChangesEditing'),_0x3ce038=_0x2c36f4['locale'];_0x413953['descriptionFactory']['registerElementLabel']('horizontalLine',_0x6567fc=>o(_0x3ce038,'ELEMENT_HORIZONTAL_LINE',_0x6567fc)),_0x2c36f4['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x398785,{writer:_0x2e3606,options:_0x11e7a0})=>{if(!_0x11e7a0['showSuggestionHighlights'])return null;const _0x46a51d=_0x2e3606['createContainerElement']('div'),_0x1b1aa2=_0x2e3606['createEmptyElement']('hr');return _0x2e3606['addClass']('ck-horizontal-line',_0x46a51d),_0x2e3606['insert'](_0x2e3606['createPositionAt'](_0x46a51d,0x0),_0x1b1aa2),_0x46a51d;},'converterPriority':'high'});}}class et extends _0x41c6a3{['afterInit'](){const _0x5c4fc2=this['editor'];if(!_0x5c4fc2['plugins']['has']('HtmlEmbed'))return;const _0x55efeb=_0x5c4fc2['plugins']['get']('TrackChangesEditing'),_0x39806e=_0x5c4fc2['locale'];_0x55efeb['descriptionFactory']['registerElementLabel']('rawHtml',_0x4233ea=>o(_0x39806e,'ELEMENT_HTML_EMBED',_0x4233ea)),_0x55efeb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x55efeb['registerBlockAttribute']('value'),_0x55efeb['descriptionFactory']['registerDescriptionCallback'](_0x33a6de=>{if('attribute'!=_0x33a6de['type'])return;const {data:_0x5efe9a}=_0x33a6de;if(_0x5efe9a&&'value'==_0x5efe9a['key']&&_0x33a6de['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x541538=o(_0x39806e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x39806e,'*Change\x20%0\x20content*',_0x541538)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x194e0e=this['editor'],_0x32b9e5=_0x194e0e['locale'];_0x194e0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x391cea=>{if('formatBlock'!=_0x391cea['type'])return;const {data:_0x107ac2}=_0x391cea;if(_0x107ac2&&'htmlEmbed'==_0x107ac2['commandName']){const _0x57831e=o(_0x32b9e5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x32b9e5,'*Change\x20%0\x20content*',_0x57831e)};}});}}class it extends _0x41c6a3{['afterInit'](){const _0x49f8ab=this['editor'];if(!_0x49f8ab['plugins']['has']('ImageEditing'))return;const _0xc4fe3b=_0x49f8ab['plugins']['get']('TrackChangesEditing'),_0x16f1ab=_0x49f8ab['plugins']['get']('ImageUtils'),_0x496e08=_0x49f8ab['locale'];_0xc4fe3b['enableCommand']('insertImage'),_0xc4fe3b['descriptionFactory']['registerElementLabel']('imageBlock',_0x3684b7=>o(_0x496e08,'ELEMENT_IMAGE',_0x3684b7)),_0xc4fe3b['descriptionFactory']['registerElementLabel']('imageInline',_0x3ee93b=>o(_0x496e08,'ELEMENT_INLINE_IMAGE',_0x3ee93b)),_0xc4fe3b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x496e08,'ELEMENT_CAPTION')),_0x49f8ab['plugins']['has']('ImageUploadEditing')&&_0xc4fe3b['enableCommand']('uploadImage'),_0x49f8ab['plugins']['has']('ImageBlockEditing')&&_0x49f8ab['plugins']['has']('ImageInlineEditing')&&(_0xc4fe3b['enableCommand']('imageTypeInline',(_0xff7cfc,_0x4af031)=>{const _0x46b8f2=_0x16f1ab['getClosestSelectedImageElement'](_0x49f8ab['model']['document']['selection']);_0x49f8ab['model']['change'](()=>{_0xc4fe3b['markBlockFormat'](_0x46b8f2,{'commandName':'imageTypeInline','commandParams':[_0x4af031]},[],'convertBlockImageToInline');});}),_0xc4fe3b['enableCommand']('imageTypeBlock',(_0x4cc96f,_0x52a7e9)=>{_0x49f8ab['model']['change'](_0x39eb24=>{let _0x37a6e7=_0x16f1ab['getClosestSelectedImageElement'](_0x49f8ab['model']['document']['selection']),_0x3d64cf=_0x39eb24['createRangeOn'](_0x37a6e7);const _0x1c10eb=_0x2fa6bf['fromPosition'](_0x3d64cf['start'],'toPrevious'),_0x21fc5d=_0x2fa6bf['fromPosition'](_0x3d64cf['end'],'toNext');_0xc4fe3b['forceDefaultExecution'](()=>_0x4cc96f(_0x52a7e9)),_0x37a6e7=_0x16f1ab['getClosestSelectedImageElement'](_0x49f8ab['model']['document']['selection']),_0x3d64cf=_0x39eb24['createRangeOn'](_0x37a6e7);const _0x343dd0=_0x39eb24['createRange'](_0x1c10eb,_0x21fc5d);_0x1c10eb['detach'](),_0x21fc5d['detach'](),_0xc4fe3b['markBlockFormat'](_0x37a6e7,{'commandName':'imageTypeInline','commandParams':[_0x52a7e9]},[],'convertInlineImageToBlock'),_0x343dd0['start']['isBefore'](_0x3d64cf['start'])&&_0xc4fe3b['markInsertion'](_0x39eb24['createRange'](_0x343dd0['start'],_0x3d64cf['start']),'convertInlineImageToBlock'),_0x3d64cf['end']['isBefore'](_0x343dd0['end'])&&_0xc4fe3b['markInsertion'](_0x39eb24['createRange'](_0x3d64cf['end'],_0x343dd0['end']),'convertInlineImageToBlock');});}),_0xc4fe3b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xc4fe3b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xc4fe3b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xc4fe3b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xc4fe3b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xc4fe3b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2e9e6e])=>{const _0x12fa0e=_0xc4fe3b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5b67a2=_0x2e9e6e['start'],_0x4ede92=_0x2e9e6e['end'];const _0x10d3c1=_0x49f8ab['model']['schema']['getNearestSelectionRange'](_0x5b67a2,'backward'),_0x44905d=_0x49f8ab['model']['schema']['getNearestSelectionRange'](_0x4ede92,'forward');_0x10d3c1['isCollapsed']&&(_0x5b67a2=_0x10d3c1['start']),_0x44905d['isCollapsed']&&(_0x4ede92=_0x44905d['end']),_0x12fa0e([_0x49f8ab['model']['createRange'](_0x5b67a2,_0x4ede92)]);}),_0xc4fe3b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x120756),_0xc4fe3b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x120756)),_0x49f8ab['plugins']['has']('ImageCaptionEditing')&&(_0xc4fe3b['enableCommand']('toggleImageCaption',(_0x2655db,_0x31de63)=>{const _0x22df41=_0x49f8ab['plugins']['get']('ImageCaptionUtils');let _0x690b74=_0x16f1ab['getClosestSelectedImageElement'](_0x49f8ab['model']['document']['selection']),_0x32485f=_0x22df41['getCaptionFromImageModelElement'](_0x690b74);_0x49f8ab['model']['change'](()=>{if(_0x32485f)return void _0xc4fe3b['markDeletion'](_0x49f8ab['model']['createRangeOn'](_0x32485f));const _0x5458b9=_0x16f1ab['isBlockImage'](_0x690b74);_0x2655db(_0x31de63),_0x690b74=_0x16f1ab['getClosestSelectedImageElement'](_0x49f8ab['model']['document']['selection']),_0x32485f=_0x22df41['getCaptionFromImageModelElement'](_0x690b74),_0xc4fe3b['markInsertion'](_0x49f8ab['model']['createRangeOn'](_0x32485f),_0x5458b9?null:'imageCaption');});}),_0xc4fe3b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x120756));const _0x413b49=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4e0729(_0xc3bbb7,_0x27725a){const _0x181566=_0x413b49['findIndex'](({type:_0x54d2e6,subType:_0x53c69f})=>_0xc3bbb7['type']==_0x54d2e6&&_0xc3bbb7['subType']==_0x53c69f),_0x5cb336=_0x413b49['findIndex'](({type:_0x3e1643,subType:_0x557373})=>_0x27725a['type']==_0x3e1643&&_0x27725a['subType']==_0x557373);if(_0x181566<0x0||_0x5cb336<0x0)return!0x1;const _0x5b4ed8=_0xc3bbb7['getFirstRange'](),_0x1c27e7=_0x27725a['getFirstRange']();if((0x0==_0x181566||0x1==_0x181566)&&0x2==_0x5cb336&&_0x5b4ed8['isIntersecting'](_0x1c27e7))return!0x0;if(0x2==_0x181566&&0x3==_0x5cb336){const _0x250343=_0xc4fe3b['_findSuggestions'](_0x5b4ed8,'insertion')['filter'](({suggestion:_0x24fb49,meta:_0x1c8c36})=>_0x1c8c36['isOwn']&&'convertInlineImageToBlock'==_0x24fb49['subType']);if(_0x250343['length']>0x1&&_0x1c27e7['end']['isEqual'](_0x5b4ed8['start']))return!0x0;if(0x1==_0x250343['length']&&(_0x5b4ed8['start']['isEqual'](_0x1c27e7['end'])||_0x5b4ed8['end']['isEqual'](_0x1c27e7['start'])))return!0x0;}if(0x3==_0x181566&&0x3==_0x5cb336&&_0x5b4ed8['start']['isBefore'](_0x1c27e7['start'])){const _0x1be193=_0x5b4ed8['end']['nodeAfter'],_0x1c6908=_0x1c27e7['start']['nodeBefore'];return _0x16f1ab['isBlockImage'](_0x1be193)&&_0x1be193===_0x1c6908;}return!0x1;}function _0x120756(_0x1aab03,_0x21328f){return _0x4e0729(_0x1aab03,_0x21328f)?[_0x1aab03,_0x21328f]:_0x4e0729(_0x21328f,_0x1aab03)?[_0x21328f,_0x1aab03]:null;}_0x49f8ab['plugins']['has']('ImageResize')&&(_0xc4fe3b['enableDefaultAttributesIntegration']('resizeImage'),_0xc4fe3b['registerBlockAttribute']('resizedWidth'),_0xc4fe3b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x496e08,'FORMAT_IMAGE_SIZE'))),_0x49f8ab['plugins']['has']('ImageTextAlternativeEditing')&&(_0xc4fe3b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xc4fe3b['registerBlockAttribute']('alt')),_0xc4fe3b['descriptionFactory']['registerDescriptionCallback'](_0x2b5d77=>{if(!!_0x413b49['find'](({type:_0x5f0038,subType:_0x2fa74c})=>_0x2b5d77['type']==_0x5f0038&&_0x2b5d77['subType']==_0x2fa74c))return _0x2b5d77['previous']?{}:void 0x0;}),_0xc4fe3b['descriptionFactory']['registerDescriptionCallback'](_0xd7d0e1=>{if('insertion'==_0xd7d0e1['type']||'deletion'==_0xd7d0e1['type']){const _0x3949ee=_0xd7d0e1['getContainedElement']();if(_0x3949ee&&_0x3949ee['is']('element','caption'))return{'type':'insertion'==_0xd7d0e1['type']?'addObject':'removeObject','element':_0x3949ee,'quantity':0x1};}}),_0xc4fe3b['descriptionFactory']['registerDescriptionCallback'](_0x1e5a2e=>'formatBlock'==_0x1e5a2e['type']&&'convertInlineImageToBlock'==_0x1e5a2e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1e5a2e['type']&&'convertBlockImageToInline'==_0x1e5a2e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xc4fe3b['descriptionFactory']['registerDescriptionCallback'](_0x4e02ff=>{if('attribute'!=_0x4e02ff['type'])return;const {data:_0x1aa33d}=_0x4e02ff;if(!_0x1aa33d||'alt'!=_0x1aa33d['key'])return;const _0x34b906=_0x1aa33d['newValue'];return _0x34b906?{'type':'format','content':o(_0x496e08,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x34b906+'\x22')}:{'type':'format','content':o(_0x496e08,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23b0d4=this['editor'],_0x435ce4=_0x23b0d4['locale'];_0x23b0d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4665f3=>{if('formatBlock'!=_0x4665f3['type']&&'formatInline'!=_0x4665f3['type'])return;const {data:_0x57c378}=_0x4665f3;if(_0x57c378){if('imageTextAlternative'==_0x57c378['commandName']){const _0x2f0deb=_0x57c378['commandParams'][0x0]['newValue'];return _0x2f0deb?{'type':'format','content':o(_0x435ce4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2f0deb+'\x22')}:{'type':'format','content':o(_0x435ce4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x57c378['commandName']){const _0x5d9815=_0x57c378['commandParams'][0x0]['width'];return _0x5d9815?{'type':'format','content':o(_0x435ce4,'*Set\x20image\x20width:*\x20%0',_0x5d9815)}:{'type':'format','content':o(_0x435ce4,'*Reset\x20image\x20width*')};}}});}}class st extends _0x41c6a3{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x578982=this['editor']['locale'],_0x476b6b=this['editor']['plugins']['get']('TrackChangesEditing');_0x476b6b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x476b6b['registerBlockAttribute']('src'),_0x476b6b['descriptionFactory']['registerDescriptionCallback'](_0x64b67a=>{if('attribute'!=_0x64b67a['type'])return;const {data:_0x26d7e2}=_0x64b67a;return _0x26d7e2&&'src'==_0x26d7e2['key']?_0x26d7e2['newValue']&&_0x26d7e2['oldValue']?{'type':'format','content':o(_0x578982,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xa677ef=this['editor']['plugins']['get']('TrackChangesEditing');_0xa677ef['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xa677ef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xa677ef['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xa677ef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb8cb7a=this['editor'],_0x268af0=_0xb8cb7a['locale'];_0xb8cb7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x334290=>{if('formatBlock'!=_0x334290['type']&&'formatInline'!=_0x334290['type'])return;const {data:_0x2f60fa}=_0x334290;if(!_0x2f60fa||'replaceImageSource'!=_0x2f60fa['commandName'])return;return{'type':'format','content':o(_0x268af0,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x41c6a3{['afterInit'](){const _0x6eb1ba=this['editor'];if(!_0x6eb1ba['plugins']['has']('ImageStyleEditing'))return;const _0x2608d8=_0x6eb1ba['plugins']['get']('TrackChangesEditing'),_0x4b8de9=_0x6eb1ba['plugins']['get']('ImageUtils'),_0x282419={};_0x2608d8['enableCommand']('imageStyle',(_0x49d679,_0x3793b3)=>{const _0x1d7001=_0x6eb1ba['plugins']['get']('Users')['me'],_0x193f5b=_0x6eb1ba['commands']['get']('imageStyle');let _0x3854b5=_0x4b8de9['getClosestSelectedImageElement'](_0x6eb1ba['model']['document']['selection']),_0x497df5=_0x6eb1ba['model']['createRangeOn'](_0x3854b5),_0x74d2d0=_0x193f5b['value'];if(_0x74d2d0==_0x3793b3['value'])return;const _0x1fa9db={'commandName':'imageStyle','commandParams':[_0x3793b3],'formatGroupId':_0x424b6d()};_0x6eb1ba['model']['change'](()=>{if(_0x2608d8['getSuggestions']()['filter'](_0x2ed9c6=>_0x2ed9c6['isInContent']&&_0x1d7001==_0x2ed9c6['author']&&('formatBlock'==_0x2ed9c6['type']||'formatInline'==_0x2ed9c6['type'])&&('imageStylePreApply'==_0x2ed9c6['subType']||'imageStylePostApply'==_0x2ed9c6['subType'])&&_0x2ed9c6['getFirstRange']()['isEqual'](_0x497df5))['forEach'](_0x36ffd6=>_0x2608d8['discardSuggestion'](_0x36ffd6['head'])),_0x3854b5=_0x4b8de9['getClosestSelectedImageElement'](_0x6eb1ba['model']['document']['selection']),_0x497df5=_0x6eb1ba['model']['createRangeOn'](_0x3854b5),_0x193f5b['refresh'](),_0x6eb1ba['commands']['get']('imageTypeInline')['refresh'](),_0x6eb1ba['commands']['get']('imageTypeBlock')['refresh'](),_0x74d2d0=_0x193f5b['value'],_0x74d2d0!=_0x3793b3['value'])return _0x4b8de9['isInlineImage'](_0x3854b5)&&_0x193f5b['shouldConvertImageType'](_0x3793b3['value'],_0x3854b5)?(_0x49d679({..._0x3793b3,'setImageSizes':!0x1}),_0x3854b5=_0x4b8de9['getClosestSelectedImageElement'](_0x6eb1ba['model']['document']['selection']),void _0x2608d8['markBlockFormat'](_0x3854b5,{..._0x1fa9db,'commandReversedParams':[{'value':_0x74d2d0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4b8de9['isBlockImage'](_0x3854b5)?_0x2608d8['markBlockFormat'](_0x3854b5,_0x1fa9db,[],'imageStylePostApply'):_0x2608d8['markInlineFormat'](_0x497df5,_0x1fa9db,'imageStylePostApply'));});});for(const _0x39663d of _0x6eb1ba['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x282419[_0x39663d['name']]=_0x39663d['title']['toLowerCase']();_0x2608d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2608d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2608d8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2608d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2ef55d])=>{_0x4b8de9['setImageNaturalSizeAttributes'](_0x2ef55d['getContainedElement']());}),_0x2608d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x397513,_0x98bd3)=>{_0x2608d8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x397513,{'commandName':_0x98bd3['commandName'],'commandParams':_0x98bd3['commandReversedParams']});}),_0x2608d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x13ec42,_0x5918b1){if(_0x307291(_0x13ec42,_0x5918b1))return[_0x13ec42,_0x5918b1];if(_0x307291(_0x5918b1,_0x13ec42))return[_0x5918b1,_0x13ec42];return null;});const _0x521c31=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x307291(_0x403f58,_0x43ee13){const _0x1e9271=_0x521c31['findIndex'](({type:_0x273ccd,subType:_0x394147})=>_0x403f58['type']==_0x273ccd&&_0x403f58['subType']==_0x394147),_0x2a2b53=_0x521c31['findIndex'](({type:_0x4a8d23,subType:_0x4104e1})=>_0x43ee13['type']==_0x4a8d23&&_0x43ee13['subType']==_0x4104e1);if(_0x1e9271<0x0||_0x2a2b53<0x0)return!0x1;const _0x21f24d=_0x403f58['getFirstRange'](),_0x5f5cfb=_0x43ee13['getFirstRange']();if((0x0==_0x1e9271||0x1==_0x1e9271)&&0x2==_0x2a2b53&&_0x21f24d['isIntersecting'](_0x5f5cfb))return!0x0;if(0x2==_0x1e9271&&0x3==_0x2a2b53){const _0x3423ea=_0x2608d8['_findSuggestions'](_0x21f24d,'insertion')['filter'](({suggestion:_0x531286,meta:_0x193460})=>_0x193460['isOwn']&&'convertInlineImageToBlock'==_0x531286['subType']);if(_0x3423ea['length']>0x1&&_0x5f5cfb['end']['isEqual'](_0x21f24d['start']))return!0x0;if(0x1==_0x3423ea['length']&&(_0x21f24d['start']['isEqual'](_0x5f5cfb['end'])||_0x21f24d['end']['isEqual'](_0x5f5cfb['start'])))return!0x0;}if(0x3==_0x1e9271&&0x3==_0x2a2b53&&_0x21f24d['start']['isBefore'](_0x5f5cfb['start'])){const _0x5337bf=_0x21f24d['end']['nodeAfter'],_0x499771=_0x5f5cfb['start']['nodeBefore'];return _0x4b8de9['isBlockImage'](_0x5337bf)&&_0x5337bf===_0x499771;}return!0x1;}_0x6eb1ba['model']['document']['registerPostFixer'](()=>{let _0xee1c80=!0x1;const _0x13f45f=Array['from'](_0x6eb1ba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d05e7,data:_0x2f8c77}of _0x13f45f){const {group:_0x273a94,type:_0x4920b0,subType:_0x187b03,id:_0x1544f5}=_0x2608d8['_splitMarkerName'](_0x3d05e7);if('suggestion'==_0x273a94&&_0x2608d8['hasSuggestion'](_0x1544f5)){if('formatBlock'==_0x4920b0&&('imageStylePreApply'==_0x187b03||'imageStylePostApply'==_0x187b03)){const _0x17c4ee=_0x2608d8['getSuggestion'](_0x1544f5);if(_0x2f8c77['newRange']){const _0x1b9cb4=_0x17c4ee['getFirstRange']()['getContainedElement']();if(_0x4b8de9['isBlockImage'](_0x1b9cb4))continue;_0x2608d8['discardSuggestion'](_0x17c4ee),_0xee1c80=!0x0;}}if('insertion'==_0x4920b0&&'imageCaption'==_0x187b03&&!_0x2f8c77['newRange']){const _0x502c65=_0x2608d8['getSuggestion'](_0x1544f5);_0x502c65['next']&&_0x502c65['next']['isInContent']&&(_0x2608d8['discardSuggestion'](_0x502c65['next']),_0xee1c80=!0x0);}}}return _0xee1c80;}),this['_registerLegacyDescription'](_0x282419);}['_registerLegacyDescription'](_0xd3dcea){const _0x185dbf=this['editor'],_0x159c41=_0x185dbf['locale'];_0x185dbf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bee53=>{if('formatBlock'!=_0x2bee53['type']&&'formatInline'!=_0x2bee53['type'])return;const {data:_0x5aa4bb}=_0x2bee53;if(!_0x5aa4bb||'imageStyle'!=_0x5aa4bb['commandName'])return;const _0x15cbdb=_0x5aa4bb['commandParams'][0x0]['value'];return _0x1d802d('side'===_0x15cbdb?o(_0x159c41,'FORMAT_SIDE_IMAGE'):_0xd3dcea[_0x15cbdb]||_0x15cbdb);function _0x1d802d(_0x567b1a){return{'type':'format','content':o(_0x159c41,'*Format:*\x20%0',_0x567b1a)};}});}}class ot extends _0x41c6a3{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x441261){super(_0x441261),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4d6b4f=this['editor'],_0x2ae4f8=_0x4d6b4f['commands']['get']('importWord'),_0x42cbc4=_0x4d6b4f['commands']['get']('trackChanges');_0x2ae4f8&&(_0x2ae4f8['on']('execute',(_0x233db2,[,_0x498603])=>{this['_trackChangesValueDuringImport']=_0x42cbc4['value'],_0x498603['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2ae4f8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2ae4f8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x42cbc4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4d6b4f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3ee712,_0x4fc86d){const {suggestions:_0x2b737f}=_0x4fc86d,_0x1f0d18=this['editor']['commands']['get']('trackChanges'),_0x3a7c98=_0x1f0d18['value'];this['_trackChangesValueDuringImport']!==_0x3a7c98&&(_0x1f0d18['execute'](),this['_trackChangesExecuted']=!0x0),_0x2b737f&&_0x2b737f['forEach'](({id:_0x550027,type:_0x2c1645,author:_0xe68b9c,created_at:_0x4972de})=>{const _0x158f1c={'id':_0x550027,'type':_0x2c1645,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xe68b9c,'createdAt':_0x4972de?new Date(_0x4972de):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x158f1c);});}}class rt extends _0x41c6a3{['afterInit'](){const _0x2052ca=this['editor'],_0x22d220=_0x2052ca['plugins']['get']('TrackChangesEditing');if(_0x2052ca['plugins']['has']('IndentEditing')&&(_0x22d220['enableCommand']('indent'),_0x22d220['enableCommand']('outdent')),_0x2052ca['plugins']['has']('IndentBlock')){for(const _0x552e2a of['indentBlock','outdentBlock'])_0x22d220['enableDefaultAttributesIntegration'](_0x552e2a);}const _0x27253d=_0x2052ca['locale'];_0x22d220['registerBlockAttribute']('blockIndent'),_0x22d220['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x27253d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f8047=this['editor'],_0x182bad=_0x2f8047['locale'],_0x1acaa4=_0x2f8047['plugins']['get']('TrackChangesEditing');_0x1acaa4['descriptionFactory']['registerDescriptionCallback'](_0x3edba2=>{if('formatBlock'!=_0x3edba2['type'])return;const {data:_0x1df9e0}=_0x3edba2;if(!_0x1df9e0)return;if('indentBlock'!=_0x1df9e0['commandName']&&'outdentBlock'!=_0x1df9e0['commandName'])return;const _0x2dc3c3=_0x3edba2['getItems']()[0x0],_0x596d87=_0x1acaa4['descriptionFactory']['getItemLabel'](_0x2dc3c3);return'indentBlock'==_0x1df9e0['commandName']?{'type':'format','content':o(_0x182bad,'*Indent:*\x20%0',_0x596d87)}:'outdentBlock'==_0x1df9e0['commandName']?{'type':'format','content':o(_0x182bad,'*Outdent:*\x20%0',_0x596d87)}:void 0x0;});}}class at extends _0x41c6a3{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x41c6a3{['afterInit'](){const _0x2017f1=this['editor'];if(!_0x2017f1['plugins']['has']('LinkEditing'))return;const _0xe416af=_0x2017f1['plugins']['get']('TrackChangesEditing'),_0x191011=_0x2017f1['commands']['get']('link');_0xe416af['enableDefaultAttributesIntegration']('link'),_0xe416af['enableDefaultAttributesIntegration']('unlink'),_0xe416af['registerInlineAttribute']('linkHref');for(const _0x103baa of _0x191011['manualDecorators'])_0xe416af['registerInlineAttribute'](_0x103baa['id']),_0xe416af['descriptionFactory']['registerAttributeLabel'](_0x103baa['id'],'link\x20('+_0x103baa['label']['toLowerCase']()+')');_0xe416af['descriptionFactory']['registerDescriptionCallback'](_0x150022=>{if('attribute'!=_0x150022['type'])return;const {data:_0xac6088}=_0x150022;if(!_0xac6088||'linkHref'!=_0xac6088['key'])return;const _0x405430=_0xac6088['newValue'],_0x117f05=_0x2017f1['locale'];return{'type':'format','content':null==_0x405430?o(_0x117f05,'*Remove\x20link*'):o(_0x117f05,'*Set\x20link:*\x20%0','\x22'+_0x405430+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c2836=this['editor'],_0x451021=_0x4c2836['locale'];_0x4c2836['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13cc23=>{if('formatInline'!=_0x13cc23['type'])return;const {data:_0x38a755}=_0x13cc23;if(_0x38a755){if('link'==_0x38a755['commandName']){const _0x2aa2c7=_0x38a755['commandParams'][0x0];return{'type':'format','content':o(_0x451021,'*Set\x20link:*\x20%0','\x22'+_0x2aa2c7+'\x22')};}return'unlink'==_0x38a755['commandName']?{'type':'format','content':o(_0x451021,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x41c6a3{['afterInit'](){const _0x2ffbc8=this['editor'],_0x225173=_0x2ffbc8['locale'];if(!_0x2ffbc8['plugins']['has']('LegacyListEditing'))return;const _0x16e971=_0x2ffbc8['plugins']['get']('TrackChangesEditing'),_0xb7255d=_0x2ffbc8['plugins']['has']('LegacyTodoListEditing');function _0x402648(_0x49b0d9){return()=>{const _0x142965=_0x2ffbc8['model']['document']['selection'],_0x224d71=_0x2ffbc8['commands']['get'](_0x49b0d9);if(_0x224d71['value'])return void _0x2ffbc8['execute']('paragraph',{});const _0xf63b55=_0x49b0d9['slice'](0x0,-0x4),_0x1e02da=function(_0x2fc4b9,_0x4fdc4b,_0x3f369d){let _0x4322d3=Array['from'](_0x2fc4b9)['filter'](_0x1b5f52=>function(_0x2f2129,_0x2f1995){return _0x2f1995['checkChild'](_0x2f2129['parent'],'listItem')&&!_0x2f1995['isObject'](_0x2f2129);}(_0x1b5f52,_0x3f369d));_0x4322d3=_0x4322d3['filter'](_0x89eaf0=>!_0x89eaf0['is']('element','listItem')||_0x89eaf0['getAttribute']('listType')!=_0x4fdc4b);const _0xfa3c33=new Set();for(const _0x3bb3dc of _0x4322d3)_0x3bb3dc['is']('element','listItem')?_0xfa3c33['add'](me(_0x3bb3dc)):_0xfa3c33['add'](_0x3bb3dc);return Array['from'](_0xfa3c33);}(_0x142965['getSelectedBlocks'](),_0xf63b55,_0x2ffbc8['model']['schema']);_0x2ffbc8['model']['change'](()=>{for(const _0x3ed226 of _0x1e02da)_0x16e971['markBlockFormat'](_0x3ed226,{'commandName':_0x49b0d9,'commandParams':[{'forceValue':!_0x224d71['value']}],'formatGroupId':'blockName'},fe(_0x3ed226));});};}function _0xd9821b(_0x3628f9){return()=>{const _0x1e8e45=function(_0x2697f6){let _0x22468d=Array['from'](_0x2697f6);const _0x555c11=_0x22468d['findIndex'](_0xb4672a=>'listItem'!=_0xb4672a['name']);return _0x555c11>-0x1&&(_0x22468d=_0x22468d['slice'](0x0,_0x555c11)),_0x22468d;}(_0x2ffbc8['model']['document']['selection']['getSelectedBlocks']()),_0x274f16=_0x2ffbc8['model']['createRange'](_0x2ffbc8['model']['createPositionAt'](_0x1e8e45[0x0],'before'),_0x2ffbc8['model']['createPositionAt'](_0x1e8e45[_0x1e8e45['length']-0x1],'end'));_0x2ffbc8['model']['change'](()=>{_0x16e971['markBlockFormat'](_0x274f16,{'commandName':_0x3628f9,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2e42cf){const _0x225997=new Set();for(const _0x1c9d68 of _0x2e42cf){let _0x683d96=_0x1c9d68['nextSibling'];for(;_0x683d96&&_0x683d96['getAttribute']('listIndent')>_0x1c9d68['getAttribute']('listIndent');)_0x225997['add'](_0x683d96),_0x683d96=_0x683d96['nextSibling'];}return Array['from'](_0x225997);}(_0x1e8e45));});};}_0x16e971['enableCommand']('numberedList',_0x402648('numberedList')),_0x16e971['enableCommand']('bulletedList',_0x402648('bulletedList')),_0xb7255d&&_0x16e971['enableCommand']('todoList',_0x402648('todoList')),_0x16e971['enableCommand']('indentList',_0xd9821b('indentList')),_0x16e971['enableCommand']('outdentList',_0xd9821b('outdentList')),_0xb7255d&&_0x16e971['enableCommand']('checkTodoList',()=>{const _0x94a4fd=_0x2ffbc8['commands']['get']('checkTodoList'),_0x500b1b=Array['from'](_0x94a4fd['_selectedElements']);_0x500b1b['filter'](_0x1025c8=>_0x1025c8['getAttribute']('todoListChecked')!=_0x94a4fd['value']),_0x2ffbc8['model']['change'](()=>{for(const _0x4db161 of _0x500b1b)_0x16e971['markBlockFormat'](_0x4db161,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x94a4fd['value']}]});});}),_0x16e971['descriptionFactory']['registerElementLabel']('listItem',_0x397d2b=>o(_0x225173,'ELEMENT_LIST_ITEM',_0x397d2b)),_0x16e971['descriptionFactory']['registerDescriptionCallback'](_0x5b30ca=>{if('formatBlock'!=_0x5b30ca['type']&&'formatInline'!=_0x5b30ca['type'])return;const {data:_0x564964}=_0x5b30ca;if(_0x564964){if('numberedList'==_0x564964['commandName']||'bulletedList'==_0x564964['commandName']||'todoList'==_0x564964['commandName'])switch(_0x564964['commandName']['replace']('List','')){case'bulleted':return _0x5459ca(o(_0x225173,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5459ca(o(_0x225173,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5459ca(o(_0x225173,'ELEMENT_TODO_LIST'));}if('indentList'==_0x564964['commandName'])return{'type':'format','content':o(_0x225173,'*Indent:*\x20%0',o(_0x225173,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x564964['commandName'])return{'type':'format','content':o(_0x225173,'*Outdent:*\x20%0',o(_0x225173,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x564964['commandName'])return _0x564964['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x225173,'*Check\x20item*')}:{'type':'format','content':o(_0x225173,'*Uncheck\x20item*')};}function _0x5459ca(_0x114e1f){return{'type':'format','content':o(_0x225173,'*Change\x20to:*\x20%0',_0x114e1f)};}});}}function me(_0x3e1744){const _0xb3cf42=_0x3e1744['getAttribute']('listIndent');if(0x0==_0xb3cf42)return _0x3e1744;let _0x2b0664=_0x3e1744;for(;_0x3e1744['previousSibling']&&_0x3e1744['previousSibling']['is']('element','listItem');){const _0x23480c=_0x3e1744['previousSibling']['getAttribute']('listIndent');if(_0x23480c==_0xb3cf42)_0x2b0664=_0x3e1744['previousSibling'];else{if(_0x23480c<_0xb3cf42)break;}_0x3e1744=_0x3e1744['previousSibling'];}return _0x2b0664;}function fe(_0x47e2c4){const _0x2ce5bf=[];if(_0x47e2c4['is']('element','listItem')&&_0x47e2c4['getAttribute']('listIndent')>0x0){let _0x222dc3=_0x47e2c4['nextSibling'];for(;_0x222dc3&&'listItem'==_0x222dc3['name']&&_0x222dc3['getAttribute']('listIndent')==_0x47e2c4['getAttribute']('listIndent');)_0x2ce5bf['push'](_0x222dc3),_0x222dc3=_0x222dc3['nextSibling'];}return _0x2ce5bf;}class z extends _0x41c6a3{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x48052a=this['editor']['config']['get']('list.properties'),_0x215b3a=this['editor']['plugins']['get']('TrackChangesEditing');_0x48052a['styles']&&_0x215b3a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x48052a['reversed']&&_0x215b3a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x48052a['startIndex']&&_0x215b3a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x215b3a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3fec92,_0xa53051={}){const _0x5a4b3d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x354a80=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5a4b3d['markMultiRangeBlockFormat'](_0x354a80,{'commandName':'listStyle','commandParams':[{'type':_0xa53051['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x34274a,_0x372e32={}){const _0x43f48=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ce3b0=this['_getSuggestionBlocks'](_0x18e7b6=>_0x18e7b6['is']('element','listItem')&&'numbered'===_0x18e7b6['getAttribute']('listType'));if(_0x5ce3b0['length']<0x1)return;const _0x3c081f=_0x5ce3b0['map'](_0x37b317=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x37b317,'before'),this['editor']['model']['createPositionAt'](_0x37b317,0x0)));this['editor']['model']['change'](()=>{_0x43f48['markMultiRangeBlockFormat'](_0x3c081f,{'commandName':'listReversed','commandParams':[{'reversed':_0x372e32['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4104cd,_0x5e1c8e={}){const _0x8ab7ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x354a67=this['_getSuggestionBlocks'](_0x4ae45c=>_0x4ae45c['is']('element','listItem')&&'numbered'===_0x4ae45c['getAttribute']('listType'));if(_0x354a67['length']<0x1)return;const _0x55c26e=_0x354a67['map'](_0x26fcbb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26fcbb,'before'),this['editor']['model']['createPositionAt'](_0x26fcbb,0x0)));this['editor']['model']['change'](()=>{_0x8ab7ee['markMultiRangeBlockFormat'](_0x55c26e,{'commandName':'listStart','commandParams':[{'startIndex':_0x5e1c8e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x27f26b){if('formatBlock'!=_0x27f26b['type']&&'formatInline'!=_0x27f26b['type'])return;const _0x4cf881=this['editor']['locale'],{data:_0x54a0ab}=_0x27f26b;if(!_0x54a0ab)return;let _0x4cb25c,_0x1e0ecf;switch(_0x54a0ab['commandName']){case'listStyle':_0x4cb25c='*Change\x20to:*\x20%0',_0x1e0ecf={'type':'format','content':o(_0x4cf881,_0x4cb25c,o(_0x4cf881,this['_getTranslationKeyForListStyle'](_0x54a0ab['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4cb25c=_0x54a0ab['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1e0ecf={'type':'format','content':o(_0x4cf881,_0x4cb25c)};break;case'listStart':_0x4cb25c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1e0ecf={'type':'format','content':o(_0x4cf881,_0x4cb25c,_0x54a0ab['commandParams'][0x0]['startIndex'])};}return _0x1e0ecf;}['_getSuggestionBlocksForListStyle'](){const _0x48f648=this['editor']['plugins']['get']('LegacyListUtils');let _0xbe24ff=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xbe24ff[0x0]?.['is']('element','listItem')&&_0xbe24ff['unshift'](..._0x48f648['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xbe24ff[_0xbe24ff['length']-0x1]?.['is']('element','listItem')&&_0xbe24ff['push'](..._0x48f648['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xbe24ff=[...new Set(_0xbe24ff)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xbe24ff=_0xbe24ff['filter'](_0x1745fc=>_0x1745fc['is']('element','listItem'))),_0xbe24ff;}['_getSuggestionBlocks'](_0x13bbda){const _0x38d5ab=this['editor']['plugins']['get']('LegacyListUtils');let _0x88c8ea=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x13bbda)['map'](_0x2492d8=>{const _0x3ecfbd=this['editor']['model']['createPositionAt'](_0x2492d8,0x0);return[..._0x38d5ab['getSiblingNodes'](_0x3ecfbd,'backward'),..._0x38d5ab['getSiblingNodes'](_0x3ecfbd,'forward')];})['flat']();return _0x88c8ea=[...new Set(_0x88c8ea)],_0x88c8ea;}['_getTranslationKeyForListStyle'](_0x263324){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x263324)||'default')['toUpperCase']()+'_LIST_'+_0x263324['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x41c6a3{['afterInit'](){const _0x43bad5=this['editor'];if(!_0x43bad5['plugins']['has']('MediaEmbedEditing'))return;const _0x4faad8=_0x43bad5['plugins']['get']('TrackChangesEditing'),_0x558485=_0x43bad5['locale'];_0x4faad8['enableCommand']('mediaEmbed'),_0x4faad8['descriptionFactory']['registerElementLabel']('media',_0x58241a=>o(_0x558485,'ELEMENT_MEDIA',_0x58241a)),_0x43bad5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x218106,{writer:_0x1dcd47,options:_0x41a0e6})=>{if(_0x41a0e6['showSuggestionHighlights'])return _0x1dcd47['createEmptyElement']('div');},'converterPriority':'high'}),_0x43bad5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x17e4b1,_0x97dfa4,_0x29987a)=>{_0x29987a['options']['showSuggestionHighlights']&&_0x17e4b1['stop']();},{'priority':'high'});}}class gt extends _0x41c6a3{['afterInit'](){const _0x2ebe5a=this['editor'];_0x2ebe5a['plugins']['has']('MentionEditing')&&_0x2ebe5a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x41c6a3{['afterInit'](){const _0xc7a612=this['editor'],_0x259b6a=_0xc7a612['plugins']['get']('TrackChangesEditing');_0xc7a612['plugins']['has']('MultiLevelList')&&(_0x259b6a['enableDefaultAttributesIntegration']('multiLevelList'),_0x259b6a['registerBlockAttribute']('listMarkerStyle'),_0x259b6a['descriptionFactory']['registerDescriptionCallback'](_0x7bf26f=>this['handleDescriptions'](_0x7bf26f)));}['handleDescriptions'](_0x4c403c){const _0x57a1e2=this['editor']['locale'],{data:_0x164eec}=_0x4c403c,_0x55746f={'type':'format','content':''};if(_0x164eec&&'listMarkerStyle'==_0x164eec['key']){if(!_0x164eec['oldValue'])return{'type':'format','content':o(_0x57a1e2,'*Set\x20format:*\x20%0',o(_0x57a1e2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x164eec['newValue']+')'};if(!_0x164eec['newValue']){let _0x2b30c8=_0x4c403c['head'];for(;_0x2b30c8;){if(_0x2b30c8['data']&&'listType'==_0x2b30c8['data']['key']&&_0x2b30c8['data']['newValue'])return _0x55746f;_0x2b30c8=_0x2b30c8['next'];}return{'type':'format','content':o(_0x57a1e2,'*Remove\x20format:*\x20%0',o(_0x57a1e2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x164eec['oldValue']+')'};}}}}class mt extends _0x41c6a3{['afterInit'](){const _0x422eaf=this['editor'];if(!_0x422eaf['plugins']['has']('PageBreakEditing'))return;_0x422eaf['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x23161b=_0x422eaf['plugins']['get']('TrackChangesEditing'),_0x366443=_0x422eaf['locale'];_0x23161b['descriptionFactory']['registerElementLabel']('pageBreak',_0x2ccf2d=>o(_0x366443,'ELEMENT_PAGE_BREAK',_0x2ccf2d));}}class dt extends _0x41c6a3{['afterInit'](){const _0x4d217b=this['editor'];if(!_0x4d217b['plugins']['has']('Paragraph'))return;const _0x101421=_0x4d217b['locale'],_0x2e8b87=_0x4d217b['plugins']['get']('TrackChangesEditing');_0x2e8b87['descriptionFactory']['registerElementLabel']('paragraph',_0xd3990b=>o(_0x101421,'ELEMENT_PARAGRAPH',_0xd3990b)),_0x2e8b87['enableDefaultAttributesIntegration']('paragraph'),_0x2e8b87['enableCommand']('insertParagraph'),_0x4d217b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4d217b),{'priority':'highest'}),_0x4d217b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15d737,_0x19a4c9,_0x59d9d3)=>{_0x59d9d3['options']['showSuggestionHighlights']&&nr(_0x4d217b,{'showActiveMarker':!0x1})(_0x15d737,_0x19a4c9,_0x59d9d3);},{'priority':'highest'});const _0x34a983=_0x2e8b87['descriptionFactory'];_0x34a983['registerDescriptionCallback'](_0x4ea61a=>{if('insertion'!==_0x4ea61a['type'])return;const {start:_0xeb39bd,end:_0xd72af8}=_0x4ea61a['getFirstRange']();if(!_0xeb39bd['isTouching'](_0xd72af8)||!_0xeb39bd['nodeAfter'])return;const _0x509846=_0x4d217b['model']['schema'],_0x5c3552=_0xeb39bd['nodeAfter'];return _0x509846['isBlock'](_0x5c3552)&&!_0x509846['isLimit'](_0x5c3552)&&_0x509846['checkChild'](_0x5c3552,'$text')?{'type':'insertion','content':o(_0x101421,'*Insert:*\x20%0',_0x34a983['getItemLabel'](_0x5c3552,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3041cb=this['editor'],_0x50b59b=_0x3041cb['locale'];_0x3041cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41ff99=>{if('formatBlock'!=_0x41ff99['type'])return;const {data:_0x2505db}=_0x41ff99;return _0x2505db&&'paragraph'==_0x2505db['commandName']?{'type':'format','content':o(_0x50b59b,'*Change\x20to:*\x20%0',o(_0x50b59b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x547d41,{showActiveMarker:_0x1e51f5=!0x0}={}){return(_0x315b79,_0x140e51,_0xc149f1)=>{const _0xbfb17c=_0x547d41['plugins']['get']('TrackChangesEditing'),_0x575feb=_0x140e51['markerRange']['start'],_0x79069c=_0x140e51['markerRange']['end'],_0xd31fed=_0x547d41['model']['schema'];if(!_0x575feb['isTouching'](_0x79069c)||!_0x575feb['nodeAfter'])return;const _0x332ff6=_0x575feb['nodeAfter'];if(_0xd31fed['isBlock'](_0x332ff6)&&!_0xd31fed['isLimit'](_0x332ff6)&&_0xd31fed['checkChild'](_0x332ff6,'$text')){if(!_0xc149f1['consumable']['consume'](_0x140e51['markerRange'],_0x315b79['name']))return;const _0x599a54=_0xc149f1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x185486=_0xc149f1['mapper']['toViewPosition'](_0x79069c);_0x1e51f5&&_0xbfb17c['activeMarkers']['includes'](_0x140e51['markerName'])&&_0xc149f1['writer']['addClass']('ck-suggestion-marker--active',_0x599a54),_0xc149f1['writer']['insert'](_0x185486,_0x599a54),_0xc149f1['mapper']['bindElementToMarker'](_0x599a54,_0x140e51['markerName']);}};}class pt extends _0x41c6a3{['afterInit'](){const _0x78244e=this['editor'];if(!_0x78244e['plugins']['has']('RemoveFormatEditing'))return;_0x78244e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f4376=this['editor'];_0x3f4376['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bb7df=>{if('formatBlock'!=_0x4bb7df['type']&&'formatInline'!=_0x4bb7df['type'])return;const {data:_0x38e2a0}=_0x4bb7df;return _0x38e2a0&&'removeFormat'==_0x38e2a0['commandName']?{'type':'format','content':o(_0x3f4376['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x41c6a3{['afterInit'](){const _0x2263f3=this['editor'];if(!_0x2263f3['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3c1300=_0x2263f3['plugins']['get']('TrackChangesEditing');_0x3c1300['enableCommand']('goToPreviousRestrictedEditingException'),_0x3c1300['enableCommand']('goToNextRestrictedEditingException');const _0x31b8a8=_0x2263f3['plugins']['get']('RestrictedEditingModeEditing');_0x31b8a8['enableCommand']('trackChanges'),_0x31b8a8['enableCommand']('acceptSuggestion'),_0x31b8a8['enableCommand']('discardSuggestion'),_0x31b8a8['enableCommand']('acceptAllSuggestions'),_0x31b8a8['enableCommand']('discardAllSuggestions'),_0x31b8a8['enableCommand']('acceptSelectedSuggestions'),_0x31b8a8['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x41c6a3{static get['requires'](){return[_0x55d333];}['init'](){const _0x570d1e=this['editor'],_0x23b082=_0x570d1e['plugins']['get']('TrackChangesEditing');_0x23b082['enableCommand']('shiftEnter'),_0x570d1e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x570d1e),{'priority':'high'}),_0x570d1e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x570d1e),{'priority':'high'}),_0x570d1e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x357419,_0x385c5a,_0x4cd339)=>{_0x4cd339['options']['showSuggestionHighlights']&&de(_0x570d1e,{'showActiveMarker':!0x1})(_0x357419,_0x385c5a,_0x4cd339);}),_0x23b082['descriptionFactory']['registerElementLabel']('softBreak',_0x572902=>o(_0x570d1e['locale'],'ELEMENT_LINE_BREAK',_0x572902));}}function de(_0x5ba1d9,{showActiveMarker:_0x1cfee4=!0x0}={}){return(_0xa70a40,_0x29c26b,_0x26bb3a)=>{const _0x16f253=_0x5ba1d9['plugins']['get']('TrackChangesEditing');if(!_0x26bb3a['consumable']['test'](_0x29c26b['markerRange'],_0xa70a40['name']))return;const _0x5d8ee9=_0x5ba1d9['model'];for(const _0x200b14 of _0x29c26b['markerRange']['getItems']()){if(!_0x200b14['is']('element','softBreak'))continue;const _0xb9390d='deletion'==_0x29c26b['markerName']['split'](':')[0x1]?'merge':'split',_0x58d215=_0x26bb3a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb9390d}),_0x392a97=_0x26bb3a['mapper']['toViewPosition'](_0x5d8ee9['createPositionBefore'](_0x200b14));_0x1cfee4&&_0x16f253['activeMarkers']['includes'](_0x29c26b['markerName'])&&_0x26bb3a['writer']['addClass']('ck-suggestion-marker--active',_0x58d215),_0x26bb3a['writer']['insert'](_0x392a97,_0x58d215),_0x26bb3a['mapper']['bindElementToMarker'](_0x58d215,_0x29c26b['markerName']);}};}class wt extends _0x41c6a3{['afterInit'](){const _0x2beb71=this['editor'],_0xdfffeb=_0x2beb71['model'],_0x155bd1=_0x2beb71['locale'];if(!_0x2beb71['plugins']['has']('StandardEditingModeEditing'))return;const _0x42a00e=_0x2beb71['plugins']['get']('TrackChangesEditing'),_0x5aabeb='restrictedEditingException',_0x5d0498=_0x2beb71['commands']['get'](_0x5aabeb);_0x42a00e['enableCommand'](_0x5aabeb,(_0x225894,_0x896f4b={})=>{const _0x3922c9=_0xdfffeb['document']['selection'];if(_0x3922c9['isCollapsed'])return void _0x225894(_0x896f4b);const _0x432380=void 0x0!==_0x896f4b['forceValue']?_0x896f4b['forceValue']:!_0x5d0498['value'];_0xdfffeb['change'](()=>{const _0x11c37b=Array['from'](_0x3922c9['getRanges']());for(const _0x90f6f4 of _0x11c37b){const _0xc2263b=_0x432380?[_0x90f6f4]:io(_0x5aabeb,_0x90f6f4,_0xdfffeb);for(const _0x1e2173 of _0xc2263b)_0x42a00e['markInlineFormat'](_0x1e2173,{'commandName':_0x5aabeb,'commandParams':[{'forceValue':_0x432380}]});}});}),_0x42a00e['descriptionFactory']['registerDescriptionCallback'](_0x262632=>{if('formatBlock'!=_0x262632['type']&&'formatInline'!=_0x262632['type'])return;const {data:_0x993041}=_0x262632;return _0x993041&&_0x993041['commandName']==_0x5aabeb?_0x993041['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x155bd1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x155bd1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x41c6a3{['afterInit'](){const _0x5b73c6=this['editor'];if(!_0x5b73c6['plugins']['has']('Style')||!_0x5b73c6['plugins']['has']('DataSchema'))return;const _0x3dad10=_0x5b73c6['plugins']['get']('TrackChangesEditing'),_0x5c1259=_0x5b73c6['locale'],_0x51f5c0=_0x5b73c6['config']['get']('style')||{},_0x18cd0e=_0x5b73c6['plugins']['get']('GeneralHtmlSupport'),_0x285c5f=_0x5b73c6['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5b73c6['plugins']['get']('DataSchema'),_0x51f5c0['definitions']);_0x3dad10['enableDefaultAttributesIntegration']('style');const _0x4610bf=new Set();for(const _0x584dba of _0x285c5f['block']){const _0xa6d8a7=_0x18cd0e['getGhsAttributeNameForElement'](_0x584dba['element']);_0x4610bf['add'](_0xa6d8a7);}const _0x2cdb6e=new Set();for(const _0x356b5d of _0x285c5f['inline']){const _0x3c954e=_0x18cd0e['getGhsAttributeNameForElement'](_0x356b5d['element']);_0x2cdb6e['add'](_0x3c954e);for(const _0x405c95 of _0x356b5d['ghsAttributes'])_0x2cdb6e['add'](_0x405c95);}for(const _0x3e3773 of _0x4610bf)_0x3dad10['registerBlockAttribute'](_0x3e3773),_0x3dad10['descriptionFactory']['registerAttributeLabel'](_0x3e3773,o(_0x5c1259,'FORMAT_STYLE'));for(const _0x12247b of _0x2cdb6e)_0x3dad10['registerInlineAttribute'](_0x12247b),_0x3dad10['descriptionFactory']['registerAttributeLabel'](_0x12247b,o(_0x5c1259,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x577b66=this['editor'],_0x1cc214=_0x577b66['locale'];_0x577b66['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36823b=>{if('formatBlock'!=_0x36823b['type']&&'formatInline'!=_0x36823b['type'])return;const {data:_0x374032}=_0x36823b;return _0x374032&&'style'===_0x374032['commandName']?_0x374032['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1cc214,'*Set\x20format:*\x20%0',_0x374032['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1cc214,'*Remove\x20format:*\x20%0',_0x374032['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x41c6a3{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x13c0c2){super(_0x13c0c2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xdc8b13=this['editor'],_0x4c11d5=_0xdc8b13['model']['document']['selection'];if(!_0xdc8b13['plugins']['has']('TableEditing'))return;const _0x4c409a=_0xdc8b13['locale'],_0x1c0ec9=_0xdc8b13['plugins']['get']('TrackChangesEditing'),_0x3513a4=_0xdc8b13['plugins']['get']('TableUtils');_0x1c0ec9['descriptionFactory']['registerElementLabel']('table',_0x26cb20=>o(_0x4c409a,'ELEMENT_TABLE',_0x26cb20)),this['_setupColumnsRowsFixing'](),_0x1c0ec9['enableCommand']('insertTable'),_0x1c0ec9['enableCommand']('selectTableRow'),_0x1c0ec9['enableCommand']('selectTableColumn');for(const _0x905939 of['insertTableRowAbove','insertTableRowBelow']){const _0x1fa166=_0xdc8b13['commands']['get'](_0x905939);_0x1c0ec9['enableCommand'](_0x905939,_0x188ee2=>{_0xdc8b13['model']['change'](_0x3b4868=>{_0x188ee2();const _0x51233a='above'===_0x1fa166['order'],_0x399606=_0x3513a4['getSelectionAffectedTableCells'](_0x4c11d5),_0x4e3d09=_0x3513a4['getRowIndexes'](_0x399606),_0x35dc9f=_0x51233a?_0x4e3d09['first']-0x1:_0x4e3d09['last']+0x1,_0x80e008=_0x399606[0x0]['findAncestor']('table'),_0x2a1afa=_0x3513a4['createTableWalker'](_0x80e008,{'startRow':_0x35dc9f,'endRow':_0x35dc9f}),_0x58420f=Array['from'](_0x2a1afa)['map'](_0x1b3d83=>_0x3b4868['createRangeOn'](_0x1b3d83['cell']));_0x1c0ec9['markMultiRangeInsertion'](_0x58420f,'tableRow');});});}for(const _0x506b3f of['insertTableColumnLeft','insertTableColumnRight']){const _0x585017=_0xdc8b13['commands']['get'](_0x506b3f);_0x1c0ec9['enableCommand'](_0x506b3f,_0x547c47=>{_0xdc8b13['model']['change'](_0x2b3dcb=>{_0x547c47();const _0x3a242e='left'===_0x585017['order'],_0x2e8a0c=_0x3513a4['getSelectionAffectedTableCells'](_0x4c11d5),_0x2e387a=_0x3513a4['getColumnIndexes'](_0x2e8a0c),_0x2211f5=_0x3a242e?_0x2e387a['first']-0x1:_0x2e387a['last']+0x1,_0x54c0c0=_0x2e8a0c[0x0]['findAncestor']('table'),_0x15d94a=_0x3513a4['createTableWalker'](_0x54c0c0,{'startRow':0x0,'column':_0x2211f5,'includeAllSlots':!0x1}),_0x2a2d01=Array['from'](_0x15d94a)['map'](_0x383f9e=>_0x2b3dcb['createRangeOn'](_0x383f9e['cell']));_0x1c0ec9['markMultiRangeInsertion'](_0x2a2d01,'tableColumn');});});}for(const _0x23bdf3 of['removeTableRow','removeTableColumn']){const _0x3225ca=_0x23bdf3['substr'](0xb),_0x16140a=_0x3225ca['toLowerCase'](),_0x4090e9=_0x16140a['substr'](0x0,0x3)+'span',_0x5c88b1='table'+_0x3225ca,_0x2bed11='min'+_0x3225ca,_0x50c90c='max'+_0x3225ca;_0x1c0ec9['enableCommand'](_0x23bdf3,()=>{_0xdc8b13['model']['change'](_0x537368=>{const _0x2b4c53=_0x3513a4['getSelectionAffectedTableCells'](_0x4c11d5),_0x8a2913=_0x2b4c53[0x0]['findAncestor']('table');let _0x3f2c33;if('removeTableRow'==_0x23bdf3){const _0x9cfb12=_0x3513a4['getRowIndexes'](_0x2b4c53);_0x3f2c33={'startRow':_0x9cfb12['first'],'endRow':_0x9cfb12['last'],'includeAllSlots':!0x0};}else{const _0x14acb9=_0x3513a4['getColumnIndexes'](_0x2b4c53);_0x3f2c33={'startColumn':_0x14acb9['first'],'endColumn':_0x14acb9['last'],'includeAllSlots':!0x0};}const _0x10f765=_0x3513a4['createTableWalker'](_0x8a2913,_0x3f2c33),_0x5b4488=Array['from'](_0x10f765)['map'](({cell:_0x28b174})=>_0x28b174),_0x3056a5=Ee(_0x5b4488['filter'](_0xcbbe80=>_0xcbbe80['hasAttribute'](_0x4090e9))),_0xb5346=Ee(_0x5b4488['filter'](_0x25818c=>!_0x25818c['hasAttribute'](_0x4090e9)))['map'](_0x339b6e=>_0x537368['createRangeOn'](_0x339b6e)),_0x26011f=_0x1c0ec9['markMultiRangeDeletion'](_0xb5346,_0x5c88b1);if(_0x26011f&&('tableRow'==_0x26011f['subType']||'tableColumn'==_0x26011f['subType'])){const _0x504ce9=this['_getSuggestionCoords'](_0x26011f);for(const _0x4cdd48 of _0x3056a5){const _0x54fbcd=_0x537368['createRangeOn'](_0x4cdd48),_0xd0031e=_0x3513a4['getCellLocation'](_0x4cdd48),_0x1bfaac=_0x4cdd48['getAttribute'](_0x4090e9)-0x1,_0x3eafd7=_0x504ce9[_0x2bed11],_0x2e052f=_0x504ce9[_0x50c90c];_0x3eafd7<=_0xd0031e[_0x16140a]&&_0xd0031e[_0x16140a]+_0x1bfaac<=_0x2e052f&&_0x26011f['addRange'](_0x54fbcd);}}});});}function _0x2e0fc7(_0x15fce5){const _0x16ee85=Array['from'](_0x4c11d5['getRanges']())['map'](_0x2ec1e5=>_0x192ba9['fromRange'](_0x2ec1e5));_0xdc8b13['model']['change'](_0x4fb870=>{const _0x5c22ea=_0x4fb870['batch'];_0x15fce5=_0x15fce5['filter'](_0x229d3d=>'$graveyard'!=_0x229d3d['root']['rootName']),_0x4fb870['setSelection'](_0x15fce5),_0xdc8b13['commands']['get']('removeTableRow')['refresh'](),_0xdc8b13['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xdc8b13['model']['enqueueChange'](()=>{_0xdc8b13['model']['enqueueChange'](_0x5c22ea,_0x44232d=>{const _0x9c95eb=_0x16ee85['filter'](_0x177869=>'$graveyard'!=_0x177869['root']['rootName']);_0x9c95eb['length']>0x0&&_0x44232d['setSelection'](_0x9c95eb);for(const _0x57d2fa of _0x16ee85)_0x57d2fa['detach']();});});});}function _0x5c8557(_0x460ba0){_0xdc8b13['model']['change'](_0x42660a=>{const _0x33d2d6=Array['from'](_0x4c11d5['getRanges']())['map'](_0x2b81e1=>_0x192ba9['fromRange'](_0x2b81e1)),_0x5baf55=[];for(const _0x30d0d1 of _0x460ba0)for(const _0x1cebf5 of _0x30d0d1['getItems']({'shallow':!0x0}))_0x5baf55['push'](_0x1cebf5);for(const _0xdc5e42 of _0x5baf55)'$graveyard'!=_0xdc5e42['root']['rootName']&&(_0x42660a['setSelection'](_0x42660a['createPositionAt'](_0xdc5e42,0x0)),_0xdc8b13['commands']['get']('removeTableColumn')['refresh'](),_0xdc8b13['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x107896=_0x33d2d6['filter'](_0x186cd3=>'$graveyard'!=_0x186cd3['root']['rootName']);_0x107896['length']>0x0&&_0x42660a['setSelection'](_0x107896);for(const _0x392b0d of _0x33d2d6)_0x392b0d['detach']();});}function _0x81f33(_0x3e2816,_0x16e10e){return _0x16e10e['every'](_0x52ac1b=>_0x3e2816['some'](_0x31576a=>_0x31576a['end']['isEqual'](_0x52ac1b['start'])||_0x52ac1b['end']['isEqual'](_0x31576a['start'])));}function _0x3e999f(_0x367f47,_0x1bbdd2){return!_0x367f47['some'](_0x4a2d25=>_0x1bbdd2['some'](_0x5aa7c1=>_0x4a2d25['isIntersecting'](_0x5aa7c1)))&&_0x367f47['some'](_0x300bd1=>_0x1bbdd2['some'](_0x1608f5=>_0x300bd1['end']['isTouching'](_0x1608f5['start'])));}_0xdc8b13['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5b49a3,_0x8a11e4,_0x47c5ee)=>{if(!_0x47c5ee['options']['showSuggestionHighlights'])return;const _0x545b89=_0x8a11e4['item'];if(!_0x545b89)return;const _0x1978be=_0x47c5ee['mapper']['toViewElement'](_0x545b89);function _0x34f996(_0x6a7a1b){return Array['isArray'](_0x6a7a1b)?_0x6a7a1b:[_0x6a7a1b];}_0x1978be&&'tableCell'===_0x545b89['name']&&_0x320cfd(_0x1978be,_0x47c5ee['writer'],(_0x552dd8,_0x139e51,_0x83a3c)=>_0x83a3c['addClass'](_0x34f996(_0x139e51['classes']),_0x552dd8),(_0x595421,_0x3f851e,_0x1828bd)=>_0x1828bd['removeClass'](_0x34f996(_0x3f851e['classes']),_0x595421));},{'priority':'highest'}),_0x1c0ec9['descriptionFactory']['registerDescriptionCallback'](_0x3d3b47=>{if('insertion'!=_0x3d3b47['type']&&'deletion'!=_0x3d3b47['type'])return;const _0x25e57e=_0x3d3b47['getContainedElement']();if(null!=_0x25e57e&&_0x25e57e['is']('element','table')){if('insertion'==_0x3d3b47['type']){const _0x18248f=_0x3d3b47['getItems']()['filter'](_0xaed8a3=>_0xaed8a3['is']('$textProxy'))['map'](_0x49ab80=>_0x49ab80['data']);if(_0x18248f['length'])return{'type':'insertion','content':o(_0x4c409a,'*Insert:*\x20%0',o(_0x4c409a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x18248f['join']('\x20')+'\x22'))};}if('deletion'==_0x3d3b47['type']){const _0x342df2=_0x3d3b47['getItems']()['filter'](_0x153964=>_0x153964['is']('$textProxy'))['map'](_0x40decd=>_0x40decd['data']);if(_0x342df2['length'])return{'type':'deletion','content':o(_0x4c409a,'*Remove:*\x20%0',o(_0x4c409a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x342df2['join']('\x20')+'\x22'))};}}}),_0x1c0ec9['descriptionFactory']['registerDescriptionCallback'](_0x4a169e=>{if('tableRow'==_0x4a169e['subType']){const _0x3cdbbc=_0x4a169e['getItems']()['filter'](_0x50ff6f=>_0x50ff6f['is']('$textProxy'))['map'](_0x431dbd=>_0x431dbd['data']),_0x307056=this['_getSuggestionCoords'](_0x4a169e),_0x2477e0=_0x307056['maxRow']-_0x307056['minRow']+0x1;if('insertion'==_0x4a169e['type'])return _0x3cdbbc['length']?{'type':'insertion','content':o(_0x4c409a,'*Insert:*\x20%0',o(_0x4c409a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2477e0,'\x22'+_0x3cdbbc['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c409a,'*Insert:*\x20%0',o(_0x4c409a,'ELEMENT_TABLE_ROW',_0x2477e0))};if('deletion'==_0x4a169e['type'])return _0x3cdbbc['length']?{'type':'deletion','content':o(_0x4c409a,'*Remove:*\x20%0',o(_0x4c409a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2477e0,'\x22'+_0x3cdbbc['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c409a,'*Remove:*\x20%0',o(_0x4c409a,'ELEMENT_TABLE_ROW',_0x2477e0))};}if('tableColumn'==_0x4a169e['subType']){const _0x116a47=_0x4a169e['getItems']()['filter'](_0x4c4607=>_0x4c4607['is']('$textProxy'))['map'](_0x58853a=>_0x58853a['data']),_0xa58fc=this['_getSuggestionCoords'](_0x4a169e),_0x277abd=_0xa58fc['maxColumn']-_0xa58fc['minColumn']+0x1;if('insertion'==_0x4a169e['type'])return _0x116a47['length']?{'type':'insertion','content':o(_0x4c409a,'*Insert:*\x20%0',o(_0x4c409a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x277abd,'\x22'+_0x116a47['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c409a,'*Insert:*\x20%0',o(_0x4c409a,'ELEMENT_TABLE_COLUMN',_0x277abd))};if('deletion'==_0x4a169e['type'])return _0x116a47['length']?{'type':'deletion','content':o(_0x4c409a,'*Remove:*\x20%0',o(_0x4c409a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x277abd,'\x22'+_0x116a47['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c409a,'*Remove:*\x20%0',o(_0x4c409a,'ELEMENT_TABLE_COLUMN',_0x277abd))};}}),_0x1c0ec9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2e0fc7),_0x1c0ec9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2e0fc7),_0x1c0ec9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5c8557),_0x1c0ec9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5c8557),_0x1c0ec9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x81f33),_0x1c0ec9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x81f33),_0x1c0ec9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3e999f),_0x1c0ec9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3e999f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x215f6c=this['editor'],_0x5ab2bc=_0x215f6c['model']['document']['selection'];return(_0x3a7f47,_0x5911ad)=>{_0x215f6c['model']['change'](_0x51c035=>{const {commandName:_0xa80efc,commandParams:_0x14a305}=_0x5911ad;let _0x249d4b=_0x3a7f47[0x0]['end']['nodeBefore'];_0x14a305&&_0x14a305[0x0]&&!0x1===_0x14a305[0x0]['forceValue']&&(_0x249d4b=_0x3a7f47[0x0]['start']['nodeAfter']);const _0x1cb365=_0x51c035['createRangeIn'](_0x249d4b);if('$graveyard'==_0x1cb365['root']['rootName'])return;const _0x50f240=Array['from'](_0x5ab2bc['getRanges']())['map'](_0x3c904f=>_0x192ba9['fromRange'](_0x3c904f));_0x51c035['setSelection'](_0x1cb365),_0x215f6c['commands']['get'](_0xa80efc)['refresh'](),_0x14a305['push']({'forceDefaultExecution':!0x0}),_0x215f6c['execute'](_0xa80efc,..._0x14a305);const _0x23fa39=_0x50f240['filter'](_0x160c40=>'$graveyard'!=_0x160c40['root']['rootName']);_0x23fa39['length']>0x0&&_0x51c035['setSelection'](_0x23fa39);for(const _0x26e26f of _0x50f240)_0x26e26f['detach']();});};}['_getCoordsForCells'](_0x122ef5){const _0x4ca09f=this['editor']['plugins']['get']('TableUtils');let _0x4d033d=Number['MAX_SAFE_INTEGER'],_0x2f9222=Number['MIN_SAFE_INTEGER'],_0x4e81f0=Number['MAX_SAFE_INTEGER'],_0x1df277=Number['MIN_SAFE_INTEGER'];for(const _0x321053 of _0x122ef5){if('$graveyard'==_0x321053['root']['rootName'])continue;const {row:_0x541d6b,column:_0x4276c0}=_0x4ca09f['getCellLocation'](_0x321053),_0x2ca908=_0x321053['hasAttribute']('rowspan')?_0x321053['getAttribute']('rowspan')-0x1:0x0,_0x5b96cd=_0x321053['hasAttribute']('colspan')?_0x321053['getAttribute']('colspan')-0x1:0x0;_0x4d033d=_0x541d6b<_0x4d033d?_0x541d6b:_0x4d033d,_0x2f9222=_0x541d6b+_0x2ca908>_0x2f9222?_0x541d6b+_0x2ca908:_0x2f9222,_0x4e81f0=_0x4276c0<_0x4e81f0?_0x4276c0:_0x4e81f0,_0x1df277=_0x4276c0+_0x5b96cd>_0x1df277?_0x4276c0+_0x5b96cd:_0x1df277;}return{'minRow':_0x4d033d,'maxRow':_0x2f9222,'minColumn':_0x4e81f0,'maxColumn':_0x1df277};}['_setupColumnsRowsFixing'](){const _0x25c8b9=this['editor'],_0x12eec6=_0x25c8b9['plugins']['get']('TrackChangesEditing'),_0x46f475=_0x25c8b9['plugins']['get']('TableUtils');_0x25c8b9['model']['document']['on']('change:data',()=>{const _0x4398ce=Array['from'](_0x25c8b9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x454df7,data:_0x29a574}of _0x4398ce){const {group:_0x223433,id:_0x54e2b8,subType:_0x14384d}=_0x12eec6['_splitMarkerName'](_0x454df7);if('suggestion'!=_0x223433)continue;if(null!=_0x29a574['oldRange'])continue;const _0x1c9b03=_0x12eec6['getSuggestion'](_0x54e2b8);this['_tablePostFixingSubtypes']['includes'](_0x14384d)&&this['_tableSuggestions']['add'](_0x1c9b03);}},{'priority':'low'});const _0x335eb2=(_0x52d19c,_0x365044)=>{let _0x1f909b=!0x1;const _0x58a349=_0x365044['createRangeOn'](_0x52d19c),_0x28207e=_0x52d19c['findAncestor']('table'),_0x48df1d=_0x46f475['getCellLocation'](_0x52d19c);for(const _0x11fce2 of this['_tableSuggestions']){const _0x13f593=_0x11fce2['subType'],_0x17af83=_0x13f593['startsWith']('tablePaste'),_0x328d73=_0x13f593['substr'](_0x17af83?0xa:0x5),_0x543428=_0x328d73['toLowerCase'](),_0x2f5fc1=_0x543428['substr'](0x0,0x3)+'span',_0x5c3d4c='min'+_0x328d73,_0x1f310a='max'+_0x328d73;if(!_0x11fce2['isInContent'])continue;if(_0x28207e!=_0x11fce2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x11fce2['isIntersectingWithRange'](_0x58a349))continue;const _0x543569=_0x52d19c['hasAttribute'](_0x2f5fc1)?_0x52d19c['getAttribute'](_0x2f5fc1)-0x1:0x0,_0x820085=this['_getSuggestionCoords'](_0x11fce2),_0x457542=_0x820085[_0x5c3d4c],_0x20000c=_0x820085[_0x1f310a];_0x457542<=_0x48df1d[_0x543428]&&_0x48df1d[_0x543428]+_0x543569<=_0x20000c&&(_0x11fce2['addRange'](_0x58a349),_0x1f909b=!0x0);}return _0x1f909b;};_0x25c8b9['model']['document']['registerPostFixer'](_0x1548e1=>{let _0x55dd29=!0x1;for(const _0x1d3695 of _0x25c8b9['model']['document']['differ']['getChanges']())if('insert'==_0x1d3695['type']){if('tableRow'==_0x1d3695['name']){for(const _0x548b45 of _0x1d3695['position']['nodeAfter']['getChildren']())_0x55dd29=_0x55dd29||_0x335eb2(_0x548b45,_0x1548e1);}else'tableCell'==_0x1d3695['name']&&(_0x55dd29=_0x55dd29||_0x335eb2(_0x1d3695['position']['nodeAfter'],_0x1548e1));}return _0x55dd29;});}['_getSuggestionCoords'](_0x5bc4c0){return this['_getCoordsForCells'](_0x5bc4c0['getRanges']()['map'](_0x31b89a=>_0x31b89a['start']['nodeAfter']));}}function Ee(_0x49cbe4){return Array['from'](new Set(_0x49cbe4)['values']());}class St extends _0x41c6a3{static get['requires'](){return[jt];}['afterInit'](){const _0x2c0346=this['editor'],_0x534dd4=_0x2c0346['model']['document']['selection'],_0xe0af46=_0x2c0346['locale'];if(!_0x2c0346['plugins']['has']('TableEditing'))return;const _0x76e629=_0x2c0346['plugins']['get']('TrackChangesEditing'),_0x1e0aed=_0x2c0346['plugins']['get']('TableUtils'),_0x5dd0ee=_0x2c0346['plugins']['get'](jt);_0x5dd0ee['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x76e629['enableCommand']('mergeTableCells',()=>{const _0x4ea5bf=_0x1e0aed['getSelectionAffectedTableCells'](_0x2c0346['model']['document']['selection']);_0x2c0346['model']['change'](()=>{_0x76e629['markMultiRangeBlockFormat'](_0x4ea5bf,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2c0346['commands']['get']('mergeTableCells')['on']('execute',(_0x107aaf,_0x2b19c5)=>{_0x2c0346['commands']['get']('trackChanges')['value']&&(_0x2b19c5['length']>0x0&&_0x2b19c5[_0x2b19c5['length']-0x1]&&_0x2b19c5[_0x2b19c5['length']-0x1]['forceDefaultExecution']||_0x76e629['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x107aaf['stop']());},{'priority':'highest'});for(const _0x4a6b18 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5b605b=_0x2c0346['commands']['get'](_0x4a6b18);_0x76e629['enableCommand'](_0x4a6b18,()=>{const _0xb5321=_0x2c0346['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x265126=>_0x265126['is']('element','tableCell')),_0x3ae53c=_0x5b605b['value'];_0x2c0346['model']['change'](()=>{_0x76e629['markMultiRangeBlockFormat']([_0xb5321,_0x3ae53c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3c8896 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x57902a=_0x2c0346['commands']['get'](_0x3c8896);_0x76e629['enableCommand'](_0x3c8896,()=>{const _0x39dbd1=_0x1e0aed['getSelectionAffectedTableCells'](_0x2c0346['model']['document']['selection'])[0x0],_0x10a92d=_0x39dbd1['findAncestor']('table'),{column:_0x2290ac,row:_0x56802e}=_0x1e0aed['getCellLocation'](_0x39dbd1);let _0x38cd4e=[];if('horizontally'==_0x57902a['direction']){const _0x19c6f8=_0x1e0aed['createTableWalker'](_0x10a92d,{'startRow':_0x56802e,'endRow':_0x56802e,'includeAllSlots':!0x0});_0x38cd4e=Array['from'](_0x19c6f8)['map'](_0x2d482f=>_0x2d482f['cell']);}else{const _0x2ae550=_0x1e0aed['createTableWalker'](_0x10a92d,{'column':_0x2290ac,'includeAllSlots':!0x0});_0x38cd4e=Array['from'](_0x2ae550)['map'](_0x10a535=>_0x10a535['cell']);}_0x2c0346['model']['change'](_0x4789fa=>{_0x76e629['markBlockFormat'](_0x4789fa['createRangeOn'](_0x39dbd1),{'commandName':_0x3c8896,'commandParams':[]},_0x38cd4e,_0x3c8896);});});}_0x76e629['descriptionFactory']['registerDescriptionCallback'](_0x57968f=>{if('formatBlock'!=_0x57968f['type']&&'formatInline'!=_0x57968f['type'])return;const {data:_0x291c5c}=_0x57968f;return _0x291c5c&&'mergeTableCells'==_0x291c5c['commandName']?{'type':'format','content':o(_0xe0af46,'*Merge\x20cells*')}:void 0x0;}),_0x76e629['descriptionFactory']['registerDescriptionCallback'](_0x373ac8=>{if('formatBlock'!=_0x373ac8['type']&&'formatInline'!=_0x373ac8['type'])return;const {data:_0x20b836}=_0x373ac8;return _0x20b836?'splitTableCellVertically'==_0x20b836['commandName']?{'type':'format','content':o(_0xe0af46,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x20b836['commandName']?{'type':'format','content':o(_0xe0af46,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5e1a37=_0x5dd0ee['_acceptFormatSuggestionCallbackFactory']();for(const _0x2d8b40 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x76e629['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d8b40,'accept',_0x5e1a37);for(const _0x34a1d9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x76e629['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x34a1d9,'accept',_0x5e1a37);_0x76e629['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x383cea=>{_0x2c0346['model']['change'](_0x2a4b57=>{const _0x5ba277=Array['from'](_0x534dd4['getRanges']())['map'](_0x1ab75e=>_0x192ba9['fromRange'](_0x1ab75e));_0x2a4b57['setSelection'](_0x383cea),_0x2c0346['commands']['get']('mergeTableCells')['refresh'](),_0x2c0346['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x133178=_0x5ba277['filter'](_0x37b41c=>'$graveyard'!=_0x37b41c['root']['rootName']);_0x133178['length']>0x0&&_0x2a4b57['setSelection'](_0x133178);for(const _0x19c861 of _0x5ba277)_0x19c861['detach']();});});for(const _0x25fe89 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4c15fe=_0x2c0346['commands']['get'](_0x25fe89);_0x4c15fe['on']('set:isEnabled',(_0x2aa545,_0x184a1b,_0x4d2448)=>{if(_0x4d2448){const _0x58de2f=_0x2c0346['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x126d04=>_0x126d04['is']('element','tableCell'));this['_areMergableCells'](_0x4c15fe['value'],_0x58de2f)||(_0x2aa545['return']=!0x1,_0x2aa545['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4db786=this['editor']['commands']['get']('mergeTableCells'),_0x437702=this['editor']['plugins']['get']('TableUtils');if(!_0x4db786['isEnabled'])return!0x1;const _0x2eb8c1=_0x437702['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x22ffac of _0x2eb8c1)for(const _0x9fbb63 of _0x2eb8c1)if(_0x22ffac!=_0x9fbb63&&!this['_areMergableCells'](_0x22ffac,_0x9fbb63))return!0x1;return!0x0;}['_areMergableCells'](_0x300e09,_0x503980){const _0x49a5d1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3dbdf5=this['editor']['model']['createRangeOn'](_0x300e09),_0x3931dd=this['editor']['model']['createRangeOn'](_0x503980),_0x5db808=new Set(),_0x36f4ed=new Set();for(const _0x329397 of _0x49a5d1['getSuggestions']())if(('insertion'==_0x329397['type']||'deletion'==_0x329397['type']||'mergeTableCells'==_0x329397['subType'])&&_0x329397['isInContent']){for(const _0x15e128 of _0x329397['getRanges']())_0x15e128['containsRange'](_0x3dbdf5,!0x0)&&_0x5db808['add'](_0x329397['type']+':'+_0x329397['author']['id']),_0x15e128['containsRange'](_0x3931dd,!0x0)&&_0x36f4ed['add'](_0x329397['type']+':'+_0x329397['author']['id']);}if(_0x5db808['size']!=_0x36f4ed['size'])return!0x1;for(const _0x469178 of _0x5db808)if(!_0x36f4ed['has'](_0x469178))return!0x1;return!0x0;}}class At extends _0x41c6a3{static get['requires'](){return[jt];}['afterInit'](){const _0x3afb15=this['editor'];if(!_0x3afb15['plugins']['has']('TableEditing'))return;const _0x328bc7=_0x3afb15['locale'],_0x155246=_0x3afb15['plugins']['get']('TrackChangesEditing');_0x155246['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x155246['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x155246['registerBlockAttribute']('headingRows'),_0x155246['registerBlockAttribute']('headingColumns'),_0x155246['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x328bc7,'FORMAT_HEADER_ROW')),_0x155246['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x328bc7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1a19f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d52a2=this['editor']['plugins']['get']('TableUtils'),_0x8733b4=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x17542f({showActiveMarker:_0xae7dfb=!0x0,setDataAttribute:_0x178568=!0x0}={}){return(_0x291f94,_0xea6782,_0x58abc1)=>{const {type:_0x594843,id:_0x46ad12}=_0x1a19f5['_splitMarkerName'](_0xea6782['markerName']),_0x4b6da6=_0x1a19f5['getSuggestion'](_0x46ad12),_0x4b2558=_0x4b6da6['data'];if('formatBlock'!=_0x4b6da6['type']||!_0x4b2558||'setTableColumnHeader'!=_0x4b2558['commandName'])return;if(_0xea6782['item'])return void _0x291f94['stop']();if(!_0x58abc1['consumable']['consume'](_0xea6782['markerRange'],_0x291f94['name']))return;const _0x24e187=_0xea6782['markerRange']['start']['nodeAfter'],_0x357da0=_0xea6782['markerRange']['end']['nodeBefore'],_0x5194e3=_0x24e187['parent']['parent'],{column:_0x2f1095}=_0x1d52a2['getCellLocation'](_0x24e187),{column:_0x3b085c}=_0x1d52a2['getCellLocation'](_0x357da0);for(let _0x2a2d1b=_0x2f1095;_0x2a2d1b<=_0x3b085c;_0x2a2d1b++){const _0x5112c2=_0x1d52a2['createTableWalker'](_0x5194e3,{'column':_0x2a2d1b,'includeAllSlots':!0x1});for(const _0x362061 of _0x5112c2){const _0x13a37f=_0x362061['cell'],_0x1e89ea=_0x58abc1['mapper']['toViewElement'](_0x13a37f);_0x58abc1['writer']['addClass']('ck-suggestion-marker-'+_0x594843,_0x1e89ea),_0x178568&&_0x58abc1['writer']['setAttribute']('data-suggestion',_0x46ad12,_0x1e89ea),_0x58abc1['mapper']['bindElementToMarker'](_0x1e89ea,_0xea6782['markerName']),_0xae7dfb&&(_0x1a19f5['activeMarkers']['includes'](_0xea6782['markerName'])?_0x58abc1['writer']['addClass']('ck-suggestion-marker--active',_0x1e89ea):_0x58abc1['writer']['removeClass']('ck-suggestion-marker--active',_0x1e89ea));}}};}_0x1a19f5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x8733b4),_0x1a19f5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x8733b4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x17542f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x45afa8,_0x32c730,_0x541250)=>{_0x541250['options']['showSuggestionHighlights']&&_0x17542f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x45afa8,_0x32c730,_0x541250);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x199eb5,_0x895612,_0x4442ea)=>{const {type:_0x16c0b4,id:_0x4d1020}=_0x1a19f5['_splitMarkerName'](_0x895612['markerName']),_0x385ec4=_0x1a19f5['getSuggestion'](_0x4d1020),_0x249ce8=_0x385ec4['data'];if('formatBlock'!=_0x385ec4['type']||!_0x249ce8||'setTableColumnHeader'!=_0x249ce8['commandName'])return;const _0x2a0b64=_0x4442ea['mapper']['markerNameToElements'](_0x895612['markerName']);if(_0x2a0b64){for(const _0x5752e4 of _0x2a0b64)_0x4442ea['writer']['removeClass']('ck-suggestion-marker-'+_0x16c0b4,_0x5752e4),_0x4442ea['writer']['removeClass']('ck-suggestion-marker--active',_0x5752e4),_0x4442ea['writer']['removeAttribute']('data-suggestion',_0x5752e4),_0x4442ea['mapper']['unbindElementFromMarkerName'](_0x5752e4,_0x895612['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d5ab1=this['editor'],_0x4b003a=_0x3d5ab1['locale'];function _0x5a407f(_0x893df){return{'type':'format','content':o(_0x4b003a,'*Format:*\x20%0',_0x893df)};}_0x3d5ab1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14a17f=>{if('formatBlock'!=_0x14a17f['type'])return;const {data:_0x4735f8}=_0x14a17f;if(_0x4735f8){if('setTableRowHeader'==_0x4735f8['commandName']){const _0x3bbd5d=_0x4735f8['commandParams'][0x0]['forceValue'];return _0x5a407f(o(_0x4b003a,_0x3bbd5d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4735f8['commandName']){const _0x54c85b=_0x4735f8['commandParams'][0x0]['forceValue'];return _0x5a407f(o(_0x4b003a,_0x54c85b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x4a60d6=>[_0x4a60d6,null]));class It extends _0x41c6a3{static get['requires'](){return[jt];}['afterInit'](){const _0x25956c=this['editor'];if(!_0x25956c['plugins']['has']('TableClipboard'))return;const _0x564e60=_0x25956c['plugins']['get']('TrackChangesEditing'),_0x36cbc3=_0x25956c['plugins']['get']('TableUtils'),_0x499812=_0x25956c['plugins']['get'](jt),_0x2d2fb=_0x25956c['plugins']['get']('TableClipboard');_0x499812['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x25956c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x25956c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xe9ad4a=null;_0x25956c['model']['on']('insertContent',(_0x4211d6,_0x390c71)=>{const [_0x585eb6,_0x4a370a]=_0x390c71,_0x3d8a24=_0x390c71[_0x390c71['length']-0x1];_0x3d8a24&&_0x3d8a24['forceDefaultExecution']||_0x564e60['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x218248,_0x103da2,_0x527a82,_0x9b44f8,_0x37a13b){if(_0x103da2&&!_0x103da2['is']('documentSelection'))return!0x1;const _0x30fa0f=_0x37a13b['getTableIfOnlyTableInContent'](_0x218248,_0x527a82);if(!_0x30fa0f||!he(_0x30fa0f,void 0x0,_0x9b44f8))return!0x1;const _0x444ec4=_0x9b44f8['getSelectionAffectedTableCells'](_0x527a82['document']['selection']);if(!_0x444ec4['length'])return!0x1;const _0x40a8fa=_0x444ec4[0x0]['findAncestor']('table'),_0x29259d=_0x9b44f8['getRowIndexes'](_0x444ec4),_0x2781e6=_0x9b44f8['getColumnIndexes'](_0x444ec4),_0x2d3ee3={'startRow':_0x29259d['first'],'endRow':_0x29259d['last'],'startColumn':_0x2781e6['first'],'endColumn':_0x2781e6['last']};return 0x1==_0x444ec4['length']&&(_0x2d3ee3['endRow']+=_0x9b44f8['getRows'](_0x30fa0f)-0x1,_0x2d3ee3['endColumn']+=_0x9b44f8['getColumns'](_0x30fa0f)-0x1),he(_0x40a8fa,_0x2d3ee3,_0x9b44f8);}(_0x585eb6,_0x4a370a,_0x25956c['model'],_0x36cbc3,_0x2d2fb)&&(_0x4211d6['stop'](),_0xe9ad4a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x25956c['model']['change'](()=>{_0x25956c['model']['insertContent'](_0x390c71[0x0],_0x390c71[0x1],_0x390c71[0x2],{'forceDefaultExecution':!0x0});const _0x2a7e01=_0x424b6d(),{rowInsertionRanges:_0xe81799,columnInsertionRanges:_0x1a04a4,insertionRanges:_0x5cd56b,deletionRanges:_0x67e17,cells:_0x52cb14}=_0xe9ad4a;_0xe81799['length']&&_0x564e60['markMultiRangeInsertion'](_0xe81799,'tablePasteRow',{'tablePasteChainId':_0x2a7e01}),_0x1a04a4['length']&&_0x564e60['markMultiRangeInsertion'](_0x1a04a4,'tablePasteColumn',{'tablePasteChainId':_0x2a7e01}),_0x5cd56b['length']&&(_0x564e60['markMultiRangeInsertion'](_0x5cd56b,'tablePaste',{'tablePasteChainId':_0x2a7e01,'skipNestingCheck':!0x0}),_0x5cd56b['forEach'](_0x3ee4e2=>_0x3ee4e2['detach']?.())),_0x67e17['length']&&(_0x564e60['markMultiRangeDeletion'](_0x67e17,'tablePaste',{'tablePasteChainId':_0x2a7e01,'skipNestingCheck':!0x0}),_0x67e17['forEach'](_0x5c16b6=>_0x5c16b6['detach']?.()));const _0x385a03=_0x564e60['markMultiRangeBlockFormat'](_0x52cb14['map'](({element:_0x2316f6})=>_0x2316f6),{'formatGroupId':_0x424b6d()},[],'tablePasteCell',{'tablePasteChainId':_0x2a7e01});if(_0x385a03){const _0x2137a1=_0x385a03['getMarkers'](),_0x4edb0e=[];for(const {element:_0x42df51,attributes:_0x2ccd81}of _0x52cb14){if(!_0x2ccd81)continue;const _0x4ec512=_0x25956c['model']['createRangeOn'](_0x42df51),_0x466510=_0x2137a1['find'](_0x15035d=>_0x15035d['getRange']()['isEqual'](_0x4ec512));_0x466510&&_0x4edb0e['push']([_0x466510['name'],_0x2ccd81]);}_0x4edb0e['length']&&_0x385a03['setAttribute']('markerAttributes',Object['fromEntries'](_0x4edb0e));}_0xe9ad4a=null;}));},{'priority':_0x37a5e4['high']+0xa}),_0x25956c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2f664f,_0x2e225f)=>{const [_0x2f7dfd,_0x520076,,_0x231df7]=_0x2e225f;if(!_0xe9ad4a)return;_0x2f664f['stop']();const _0x318775=_0x2f7dfd['cell'],_0xec7ca6=_0x520076,_0x3810c9=Pe(_0x318775),_0x3ff32c=Pe(_0xec7ca6);_0x2f664f['return']=_0x318775;let _0x452998=null,_0x599f13=null;if(_0x3ff32c||_0x3810c9){if(_0x3810c9&&!_0x3ff32c){_0x231df7['remove'](_0x318775['getChild'](0x0));for(const _0x2e0705 of Array['from'](_0xec7ca6['getChildren']()))_0x231df7['insert'](_0x2e0705,_0x318775,'end');const _0xbe15fe=_0xe9ad4a['rowInsertionIndexes']['includes'](_0x2f7dfd['row']),_0x492989=_0xe9ad4a['columnInsertionIndexes']['includes'](_0x2f7dfd['column']);_0xbe15fe||_0x492989||(_0x452998=_0x192ba9['fromRange'](_0x231df7['createRangeIn'](_0x318775)));}else _0x3ff32c&&!_0x3810c9&&(_0x599f13=_0x231df7['createRangeIn'](_0x318775));}else{const _0x4c4e58=_0x231df7['createElement']('tableCellSuggestion'),_0x28734f=_0x231df7['createElement']('tableCellSuggestion');_0x231df7['wrap'](_0x231df7['createRangeIn'](_0x318775),_0x28734f),_0x231df7['insert'](_0x4c4e58,_0x318775,0x0);for(const _0xce06b6 of Array['from'](_0xec7ca6['getChildren']()))_0x231df7['insert'](_0xce06b6,_0x4c4e58,'end');_0x452998=_0x192ba9['fromRange'](_0x231df7['createRangeOn'](_0x4c4e58)),_0x599f13=_0x192ba9['fromRange'](_0x231df7['createRangeOn'](_0x28734f));}const _0x3bc870=Array['from'](_0xec7ca6['getAttributes']())['filter'](([_0x16d373])=>ge['includes'](_0x16d373));_0xe9ad4a['cells']['push']({'element':_0x318775,'attributes':_0x3bc870['length']?Object['fromEntries'](_0x3bc870):null}),_0x452998&&_0xe9ad4a['insertionRanges']['push'](_0x452998),_0x599f13&&_0xe9ad4a['deletionRanges']['push'](_0x599f13);},{'priority':'high'}),_0x36cbc3['on']('insertColumns',(_0x32aea3,_0x2266ef)=>{const [_0x163d56,_0x509436={}]=_0x2266ef;if(!_0xe9ad4a)return;const _0x16223c=_0x509436['at']||0x0,_0x5a5d33=_0x509436['columns']||0x1;_0xe9ad4a['columnInsertionIndexes']=new Array(_0x5a5d33)['fill'](_0x16223c)['map']((_0x286a15,_0x2cadb8)=>_0x286a15+_0x2cadb8);for(const {cell:_0x11937d}of _0x36cbc3['createTableWalker'](_0x163d56,{'startColumn':_0x16223c,'endColumn':_0x16223c+_0x5a5d33-0x1}))_0xe9ad4a['columnInsertionRanges']['push'](_0x25956c['model']['createRangeOn'](_0x11937d));},{'priority':'low'}),_0x36cbc3['on']('insertRows',(_0x3993a7,_0x277043)=>{const [_0xf3802b,_0x292d15={}]=_0x277043;if(!_0xe9ad4a)return;const _0xe8cb4d=_0x292d15['at']||0x0,_0x41e84f=_0x292d15['rows']||0x1;_0xe9ad4a['rowInsertionIndexes']=new Array(_0x41e84f)['fill'](_0xe8cb4d)['map']((_0x4b4089,_0x363e57)=>_0x4b4089+_0x363e57);for(const {cell:_0x53c454}of _0x36cbc3['createTableWalker'](_0xf3802b,{'startRow':_0xe8cb4d,'endRow':_0xe8cb4d+_0x41e84f-0x1}))_0xe9ad4a['rowInsertionRanges']['push'](_0x25956c['model']['createRangeOn'](_0x53c454));},{'priority':'low'}),_0x564e60['descriptionFactory']['registerDescriptionCallback'](_0x27dd1b=>{if(_0x27dd1b['subType']&&_0x27dd1b['subType']['startsWith']('tablePaste'))return _0x27dd1b['previous']?{}:{'type':'insertion','content':o(_0x25956c['locale'],'*Replace\x20table\x20cells*')};});const _0x2f46eb=()=>!0x1;for(const _0x226799 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x564e60['_suggestionFactory']['registerCustomCallback']('insertion',_0x226799,'join',_0x2f46eb),_0x564e60['_suggestionFactory']['registerCustomCallback']('deletion',_0x226799,'join',_0x2f46eb),_0x564e60['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x226799,'join',_0x2f46eb);_0x564e60['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2f46eb),_0x564e60['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2ac9b9,_0x3190d6,_0x1d868d)=>{const _0x2e9ba1=_0x2ac9b9['map'](_0x2a2ef6=>_0x2a2ef6['getContainedElement']())['filter'](_0x6c5447=>_0x6c5447),_0x11a79e=new Map(_0x2e9ba1['map'](_0x43df3c=>[_0x43df3c,null]));if(_0xe9ad4a){for(const {element:_0x53c32a,attributes:_0x77903d}of _0xe9ad4a['cells'])_0x77903d&&_0x11a79e['set'](_0x53c32a,_0x77903d);}else{if(_0x1d868d&&_0x1d868d['markerAttributes'])for(const [_0x215ee6,_0x11c33a]of Object['entries'](_0x1d868d['markerAttributes'])){const _0x10cb0e=_0x25956c['model']['markers']['get'](_0x215ee6),_0x29d750=_0x10cb0e?_0x10cb0e['getRange']()['getContainedElement']():null;_0x29d750&&_0x11a79e['set'](_0x29d750,_0x11c33a);}}_0x25956c['model']['change'](_0x19a53d=>{for(const [_0x2112c1,_0x530916]of _0x11a79e)_0x19a53d['setAttributes']({...Ce,..._0x530916},_0x2112c1);});});const _0x5679ba=(_0x55358d,_0x29bf0e)=>{_0x564e60['_suggestionFactory']['registerCustomCallback'](_0x55358d,'tablePaste',_0x29bf0e,(_0x324080,_0x5ac5b7,_0x2c5085)=>{_0x25956c['model']['change'](_0x298722=>{const _0x5dd157=[];for(const _0x32fd1d of _0x324080){const _0x4c807f=_0x32fd1d['start']['nodeAfter'];_0x4c807f['is']('element','tableCellSuggestion')&&_0x5dd157['push'](_0x4c807f);}_0x564e60['_suggestionFactory']['getSuggestionCallback'](_0x55358d,null,_0x29bf0e)(_0x324080,_0x5ac5b7,_0x2c5085);for(const _0x2ab445 of _0x5dd157)'$graveyard'!=_0x2ab445['root']['rootName']&&_0x298722['unwrap'](_0x2ab445);});});};_0x5679ba('insertion','accept'),_0x5679ba('insertion','discard'),_0x5679ba('deletion','accept'),_0x5679ba('deletion','discard'),_0x564e60['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x20a425=>{const _0xffabb5=_0x20a425['map'](_0x4afe2f=>_0x4afe2f['getContainedElement']()),_0xdac72a=_0xffabb5[0x0]['findAncestor']('table'),{minRow:_0x501ff4,maxRow:_0x2dcba6}=_0x499812['_getCoordsForCells'](_0xffabb5);_0x36cbc3['removeRows'](_0xdac72a,{'at':_0x501ff4,'rows':_0x2dcba6-_0x501ff4+0x1});}),_0x564e60['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x29f2ab=>{const _0x202ac7=_0x29f2ab['map'](_0x555e64=>_0x555e64['getContainedElement']()),_0x29daa2=_0x202ac7[0x0]['findAncestor']('table'),{minColumn:_0x147d51,maxColumn:_0x579651}=_0x499812['_getCoordsForCells'](_0x202ac7);_0x36cbc3['removeColumns'](_0x29daa2,{'at':_0x147d51,'columns':_0x579651-_0x147d51+0x1});});const _0x4c3b6b=(_0x5aa027,_0x12bfaf)=>{if(!_0x12bfaf['subType']||!_0x12bfaf['subType']['startsWith']('tablePaste'))return;const _0x307ffb=_0x12bfaf['attributes']['tablePasteChainId'],_0x224808=_0x564e60['getSuggestions']()['filter'](_0x10ba24=>_0x10ba24['isInContent']&&_0x10ba24['attributes']&&_0x10ba24['attributes']['tablePasteChainId']==_0x307ffb);_0x224808['length']&&_0x12bfaf['getAllAdjacentSuggestions']()['length']!=_0x224808['length']&&_0x224808['reduce']((_0x133578,_0x1eea96)=>(_0x133578['next']=_0x1eea96,_0x1eea96['previous']=_0x133578,_0x1eea96));};function _0x1e3a0e(_0x479a7e,_0x3019a8=!0x0){const {id:_0x111b86}=_0x564e60['_splitMarkerName'](_0x479a7e['markerName']),_0x2e6d2d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x9ed1b9=_0x564e60['activeMarkers']['includes'](_0x479a7e['markerName']);return _0x9ed1b9&&_0x2e6d2d['push']('ck-suggestion-marker--active'),{'classes':_0x2e6d2d,'attributes':{'data-suggestion':_0x111b86},'priority':_0x9ed1b9&&_0x3019a8?0xbc2:0xbb8};}_0x564e60['on']('suggestionLoaded',_0x4c3b6b,{'priority':'high'}),_0x564e60['on']('suggestionUnloaded',_0x4c3b6b,{'priority':'high'}),_0x25956c['model']['document']['registerPostFixer'](()=>{let _0x2088db=!0x1;const _0x221e6f=Array['from'](_0x25956c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x360e26,data:_0x3cdd2a}of _0x221e6f){const {group:_0x2cc8e5,type:_0x43c6a6,id:_0x44e950}=_0x564e60['_splitMarkerName'](_0x360e26);if('suggestion'!=_0x2cc8e5||'deletion'!=_0x43c6a6||_0x3cdd2a['oldRange'])continue;if(!_0x564e60['hasSuggestion'](_0x44e950))continue;const _0x38f6e0=_0x564e60['getSuggestion'](_0x44e950)['getRanges'](),_0x420a42=_0x25956c['plugins']['get']('Users')['me'];for(const _0x3fa1ef of _0x564e60['getSuggestions']()){if(!_0x3fa1ef['isInContent']||_0x3fa1ef['author']!=_0x420a42)continue;if('formatBlock'!=_0x3fa1ef['type']||'tablePasteCell'!=_0x3fa1ef['subType'])continue;if(_0x3fa1ef['getRanges']()['every'](_0x2460d8=>_0x38f6e0['some'](_0x4a0bf2=>_0x4a0bf2['containsRange'](_0x2460d8,!0x0)))){for(const _0x3e989e of _0x3fa1ef['getAllAdjacentSuggestions']())_0x3e989e['isInContent']&&(_0x3e989e['discard'](),_0x2088db=!0x0);}}}return _0x2088db;}),_0x25956c['model']['document']['registerPostFixer'](_0x2348cb=>{const _0x787619=_0x25956c['commands']['get']('redo');if(!_0x787619||!_0x787619['_createdBatches']['has'](_0x2348cb['batch']))return!0x1;let _0x301207=!0x1;const _0x56841c=_0x25956c['plugins']['get']('Users')['me'],_0x123a9b=_0x25956c['model']['document']['differ']['getChanges'](),_0x381504=Array['from'](_0x25956c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4af75e,data:_0x57bed7})=>{const {group:_0x39bdf5,subType:_0x118490,authorId:_0x26b7f6}=_0x564e60['_splitMarkerName'](_0x4af75e);return'suggestion'==_0x39bdf5&&'tablePaste'==_0x118490&&_0x26b7f6==_0x56841c['id']&&!_0x57bed7['oldRange'];});for(const _0x32cfca of _0x123a9b){if('insert'!=_0x32cfca['type']||'tableCellSuggestion'!=_0x32cfca['name']||0x1!=_0x32cfca['length'])continue;const _0xbdf8b4=_0x2348cb['createRange'](_0x32cfca['position'],_0x32cfca['position']['getShiftedBy'](0x1));if(!_0x381504['find'](({data:_0x92519c})=>_0x92519c['newRange']['isEqual'](_0xbdf8b4))){for(const {name:_0x391c0a,data:_0x11c5cb}of _0x381504)if(_0xbdf8b4['containsRange'](_0x11c5cb['newRange'])){_0x2348cb['updateMarker'](_0x391c0a,{'range':_0xbdf8b4}),_0x301207=!0x0;break;}}}return _0x301207;}),_0x25956c['model']['document']['registerPostFixer'](_0x15ab73=>{let _0x2dabfd=!0x1;const _0x220c31=_0x25956c['plugins']['get']('Users')['me'],_0x3c605a=_0x564e60['getSuggestions']()['filter'](_0x5268b0=>_0x5268b0['isInContent']&&_0x5268b0['author']==_0x220c31),_0x2e2997=new Set(),_0x513ed3=new Set();for(const _0x595e76 of _0x3c605a)if('tablePaste'==_0x595e76['subType'])for(const _0x5eeae2 of _0x595e76['getMarkers']()){const _0x5e518c=_0x5eeae2['getRange']()['getContainedElement']();if(_0x5e518c){if(_0x5e518c['is']('element','tableCellSuggestion')&&Pe(_0x5e518c)){_0x595e76['removeMarker'](_0x5eeae2['name']),_0x2e2997['add'](_0x5e518c),_0x2dabfd=!0x0;const _0xe9975f=_0x5e518c['nextSibling'],_0x5232c8=_0x5e518c['previousSibling'],_0x336bf2=_0xe9975f&&_0xe9975f['is']('element','tableCellSuggestion'),_0x1ed948=_0x5232c8&&_0x5232c8['is']('element','tableCellSuggestion');_0x336bf2&&!_0x2e2997['has'](_0xe9975f)&&_0x513ed3['add'](_0xe9975f),_0x1ed948&&!_0x2e2997['has'](_0x5232c8)&&_0x513ed3['add'](_0x5232c8);}else _0x5e518c['is']('element','paragraph')&&_0x5e518c['isEmpty']&&(_0x595e76['removeMarker'](_0x5eeae2['name']),_0x2dabfd=!0x0);}}else{if('tablePasteCell'==_0x595e76['subType']){if(!_0x595e76['attributes']||!_0x595e76['attributes']['tablePasteChainId'])continue;const _0x3c4a83=_0x595e76['attributes']['markerAttributes'];if(_0x3c4a83&&Object['keys'](_0x3c4a83)['length'])continue;const _0x19ea8c=_0x595e76['attributes']['tablePasteChainId'];let _0x567f53=!0x0,_0x394ea3=!0x0;for(const _0xcbf66a of _0x3c605a)if(_0xcbf66a['subType']&&_0xcbf66a['subType']['startsWith']('tablePaste')){if(!_0xcbf66a['attributes']['tablePasteChainId']){_0x394ea3=!0x1;break;}if(_0xcbf66a['id']!=_0x595e76['id']&&_0xcbf66a['attributes']['tablePasteChainId']==_0x19ea8c){_0x567f53=!0x1;break;}}_0x394ea3&&_0x567f53&&(_0x595e76['removeMarkers'](),_0x2dabfd=!0x0);}}for(const _0x4692a1 of _0x2e2997)_0x15ab73['remove'](_0x4692a1);for(const _0x33784b of _0x513ed3)_0x15ab73['unwrap'](_0x33784b);return _0x2dabfd;}),_0x25956c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x37e1cb,_0x1a7e5c)=>_0x1e3a0e(_0x37e1cb),'converterPriority':'high'}),_0x25956c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x36e5b1,_0x18f3da)=>_0x18f3da['options']['showSuggestionHighlights']?_0x1e3a0e(_0x36e5b1,!0x1):null,'converterPriority':'high'});const _0x2f1541=_0x25956c['editing']['view'];this['listenTo'](_0x2f1541['document'],'clipboardOutput',(_0x3abd5d,_0x255d2e)=>{const _0x4eb262=[];for(const _0x4d340a of _0x2f1541['createRangeIn'](_0x255d2e['content'])['getItems']())_0x4d340a['is']('element','suggestion-td')&&_0x4eb262['push'](_0x4d340a);_0x2f1541['change'](_0x431fea=>{for(const _0x50f404 of _0x4eb262)_0x431fea['move'](_0x431fea['createRangeIn'](_0x50f404),_0x431fea['createPositionBefore'](_0x50f404)),_0x431fea['remove'](_0x50f404);});});}}function Pe(_0x4e4fc3){if(_0x4e4fc3['isEmpty'])return!0x0;const _0x333128=_0x4e4fc3['getChild'](0x0);return _0x333128['is']('element','paragraph')&&_0x333128['isEmpty'];}function he(_0xbe189,_0x48d814={},_0x181a0c){for(const {isAnchor:_0xd8b439,cellHeight:_0x1e9d3d,cellWidth:_0x3f4ab4}of _0x181a0c['createTableWalker'](_0xbe189,{'includeAllSlots':!0x0,..._0x48d814}))if(!_0xd8b439||0x1!=_0x1e9d3d||0x1!=_0x3f4ab4)return!0x1;return!0x0;}class vt extends _0x41c6a3{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x233c26=this['editor']['plugins']['get']('TrackChangesEditing');_0x233c26['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x233c26['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x233c26['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x233c26['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x233c26['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x233c26['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3a4420,_0x1eb08c){const _0x2a2e6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x94c02=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x319a4a=_0x1eb08c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3b6cb0=_0x94c02['getColumnGroupElement'](_0x319a4a);let _0x20ab1d=_0x3b6cb0?_0x94c02['getTableColumnsWidths'](_0x3b6cb0):null,_0x5c26e4=_0x319a4a['getAttribute']('tableWidth')||null;const _0x4217a6=_0x1eb08c['tableWidth']||_0x5c26e4,_0x3df6fb=_0x1eb08c['columnWidths']||_0x20ab1d,_0x348050=this['editor']['plugins']['get']('Users')['me'];for(const _0x13c08b of _0x2a2e6b['getSuggestions']()){const _0x4b6dcf=_0x13c08b['getContainedElement']();if('resizeTable'===_0x13c08b['subType']&&_0x4b6dcf===_0x319a4a){_0x13c08b['author']!==_0x348050&&_0x13c08b['discard']();const _0x4d2f58=_0x13c08b['data']['commandParams'];_0x5c26e4=_0x4d2f58[0x0]['tableWidth'],_0x20ab1d=_0x4d2f58[0x0]['columnWidths'];break;}}_0x3a4420({'table':_0x319a4a,'tableWidth':_0x4217a6,'columnWidths':_0x3df6fb}),_0x2a2e6b['markBlockFormat'](_0x319a4a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5c26e4,'columnWidths':_0x20ab1d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x423038){if('formatBlock'!=_0x423038['type']&&'formatInline'!=_0x423038['type'])return;const {data:_0x338654}=_0x423038;if(_0x338654&&'resizeTable'===_0x338654['formatGroupId']){const _0x2cb190='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2cb190)};}}}class Ct extends _0x41c6a3{['afterInit'](){const _0x4bd57e=this['editor'];_0x4bd57e['plugins']['has']('Template')&&_0x4bd57e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x41c6a3{['afterInit'](){const _0x10d42c=this['editor'];if(!_0x10d42c['commands']['get']('insertTableOfContents'))return;_0x10d42c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5b82ff=_0x10d42c['plugins']['get']('TrackChangesEditing'),_0x124428=_0x10d42c['locale'];_0x5b82ff['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5b9d85=>o(_0x124428,'ELEMENT_TABLE_OF_CONTENTS',_0x5b9d85));}}class Nt extends _0x41c6a3{['afterInit'](){const _0x44cb66=this['editor'];if(!_0x44cb66['plugins']['has']('Title'))return;const _0x1f7655=_0x44cb66['plugins']['get']('TrackChangesEditing');_0x1f7655['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x44cb66['locale'],'ELEMENT_TITLE')),_0x44cb66['model']['document']['registerPostFixer'](_0x1a917a=>{let _0x16dc37=!0x1;const _0x339280=Array['from'](_0x44cb66['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x163ab1,data:_0x179807}of _0x339280){const {group:_0x37c915}=_0x1f7655['_splitMarkerName'](_0x163ab1);if('suggestion'!==_0x37c915||!_0x179807['newRange'])continue;const _0x41c4aa=_0x179807['newRange'],_0x290749=_0x41c4aa['end']['nodeBefore'];if(!_0x290749||!_0x290749['is']('element','title-content'))continue;if(!_0x41c4aa['start']['isTouching'](_0x41c4aa['end']))continue;const _0x817df6=_0x44cb66['model']['schema']['getNearestSelectionRange'](_0x41c4aa['end'],'forward');if(_0x817df6&&_0x817df6['isCollapsed']){const _0x54c9e1=_0x1a917a['createRange'](_0x41c4aa['start'],_0x817df6['start']);_0x54c9e1['isEqual'](_0x41c4aa)||(_0x1a917a['updateMarker'](_0x163ab1,{'range':_0x54c9e1}),_0x16dc37=!0x0);}_0x16dc37||(_0x1a917a['removeMarker'](_0x163ab1),_0x16dc37=!0x0);}return _0x16dc37;});}}class Dt extends _0x41c6a3{['afterInit'](){const _0x1a77ae=this['editor'],_0x3b48d3=_0x1a77ae['plugins']['get']('TrackChangesEditing');_0x1a77ae['plugins']['has']('UndoEditing')&&(_0x3b48d3['enableCommand']('undo'),_0x3b48d3['enableCommand']('redo'));}}class Mt extends _0x41c6a3{static get['requires'](){return[jt];}['afterInit'](){const _0x27fb59=this['editor'];if(!_0x27fb59['plugins']['has']('TableCaptionEditing'))return;_0x27fb59['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x41c6a3{['tableProperties'];['tableCellProperties'];constructor(_0x402468){super(_0x402468),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0xf242af=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x18f43e of this['tableProperties'])_0xf242af['enableCommand'](_0x18f43e,(_0x49733c,_0x559026)=>{const _0x55dc9c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x18f43e,[_0x55dc9c],this['tableProperties'],'tableProperties',_0x49733c,_0x559026);});_0xf242af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xf242af['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf242af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x550826,_0x3c7ce4)=>this['handleDiscardAction'](this['tableProperties'],_0x550826,_0x3c7ce4)),_0xf242af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x293279 of this['tableCellProperties'])_0xf242af['enableCommand'](_0x293279,(_0x2d97b1,_0x4d2bf3)=>{const _0x6071c9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x293279,_0x6071c9,this['tableCellProperties'],'tableCellProperties',_0x2d97b1,_0x4d2bf3);});_0xf242af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xf242af['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf242af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5a8492,_0x479523)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5a8492,_0x479523)),_0xf242af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xf242af['descriptionFactory']['registerDescriptionCallback'](_0x35777c=>this['handleSuggestionDescription'](_0x35777c));}['_handlePropertyChange'](_0xdd22df,_0xb92f7c,_0xda2c8c,_0x3852c5,_0x1e2e0e,_0x5d0ba5){const _0x3daf9a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5d0ba5['batch'],()=>{for(const _0x1fe8a7 of _0xb92f7c){if(this['_getSuggestion'](_0x1fe8a7,_0x3852c5))_0x1e2e0e(_0x5d0ba5);else{const _0x9f6461={};for(const _0x2b5d2d of _0xda2c8c){const _0x28d4f6=_0x1fe8a7['getAttribute'](_0x2b5d2d);void 0x0!==_0x28d4f6&&(_0x9f6461[_0x2b5d2d]=_0x28d4f6);}_0x1e2e0e(_0x5d0ba5),_0x3daf9a['markBlockFormat'](_0x1fe8a7,{'commandParams':[_0x9f6461]},[],_0x3852c5);}}});}['handleDiscardAction'](_0x6b5cc2,_0x55f385,_0x44070f){const _0x3ee6de=_0x55f385[0x0]['start']['nodeAfter'],_0x416635=_0x44070f['commandParams'][0x0];this['editor']['model']['change'](_0xc260e5=>{for(const _0x9a992c of _0x6b5cc2)void 0x0!==_0x416635[_0x9a992c]?_0xc260e5['setAttribute'](_0x9a992c,_0x416635[_0x9a992c],_0x3ee6de):_0xc260e5['removeAttribute'](_0x9a992c,_0x3ee6de);});}['handleSuggestionDescription'](_0x586fb5){if(_0x586fb5['data'])switch(_0x586fb5['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'](_0x41389d,_0x1fb476){const _0x18e6e2=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4c4d23 of _0x18e6e2['getSuggestions']({'skipNotAttached':!0x0})){const _0x4f99bb=_0x4c4d23['getContainedElement']();if(_0x4c4d23['subType']===_0x1fb476&&_0x4f99bb===_0x41389d)return _0x4c4d23;}return null;}}const m='$elementName';class p extends _0x41c6a3{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3bf4a7,_0x5cc061,E,O,V,U,F,G,L,H,J,K,W,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,z,lt,ct,q,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Nt,Dt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x3d78c0){function _0x9ade16(_0x971cf6){return _0x971cf6['map'](_0x15d48b=>String['fromCharCode'](_0x15d48b))['join']('');}super(_0x3d78c0),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3ec75c,_0x25aa10,_0x570678,_0x351f8e)=>{this['_model']['change'](()=>{for(const _0x247af5 of[..._0x351f8e,..._0x570678])this['_model']['markers']['has'](_0x247af5)&&_0x3d78c0['editing']['reconvertMarker'](_0x247af5);});}),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']=_0x3d78c0['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(),_0x3d78c0['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3d78c0['config']['get']('trackChanges.trackFormatChanges'),_0x3d78c0['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3d78c0['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x3d78c0,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x9ade16([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x9ade16([0x34,0x30,0x34,0x38,0x31,0x34,0x34,0x38]);}['init'](){const _0x5edec8=this['editor'],_0x3ca6e7=(_0x4832ea,_0xc3af17)=>{if('attribute'!=_0x4832ea)return'ck-suggestion-marker-'+_0x4832ea;const _0x48447a=_0xc3af17['split']('|')[0x0];return this['_isBlockAttribute'](_0x48447a)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5edec8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3dddd0=>{const {id:_0x1b903f,type:_0x4e5dbd,subType:_0xb6a88f}=this['_splitMarkerName'](_0x3dddd0['markerName']),_0x4f7d97=['ck-suggestion-marker',_0x3ca6e7(_0x4e5dbd,_0xb6a88f)];let _0x49de53=0xbb8;return this['activeMarkers']['includes'](_0x3dddd0['markerName'])&&(_0x4f7d97['push']('ck-suggestion-marker--active'),_0x49de53=0xbc2),'deletion'==_0x4e5dbd&&(_0x49de53+=0x5),{'classes':_0x4f7d97,'attributes':{'data-suggestion':_0x1b903f},'priority':_0x49de53};}}),_0x5edec8['conversion']['for']('dataDowncast')['add'](_0x3e6664=>{_0x3e6664['on']('addMarker:suggestion',(_0x33a24a,_0x24715b,_0x5ee7fb)=>{if(!_0x5ee7fb['options']['showSuggestionHighlights'])return;const _0x3e4ca1=_0x24715b['item'];if(!_0x3e4ca1)return;const _0x2fce92=_0x5ee7fb['mapper']['toViewElement'](_0x3e4ca1);_0x5edec8['model']['schema']['isObject'](_0x3e4ca1)&&_0x2fce92&&!_0x2fce92['getCustomProperty']('widget')&&_0x2fce92['is']('containerElement')&&_0x52fc27(_0x2fce92,_0x5ee7fb['writer']);},{'priority':'high'});}),_0x5edec8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3c5378,_0x1319f3)=>{if(!_0x1319f3['options']['showSuggestionHighlights'])return null;const {type:_0x4d0156,subType:_0x20734f}=this['_splitMarkerName'](_0x3c5378['markerName']);return{'classes':['ck-suggestion-marker',_0x3ca6e7(_0x4d0156,_0x20734f)],'priority':0xbb8};}});const _0x5b5d7f=({showActiveMarkers:_0x2ffb4a=!0x0,isAttributeSuggestion:_0xcc7cf3=!0x1}={})=>(_0x25c842,_0xb8a4ba,_0x1c9973)=>{if(!_0xb8a4ba['item'])return;const {id:_0x39c077}=this['_splitMarkerName'](_0xb8a4ba['markerName']);if(_0xcc7cf3){const _0x22525d=this['_suggestions']['get'](_0x39c077),_0x5caf0e=this['_getAttributeKey'](_0x22525d);if(!this['_isBlockAttribute'](_0x5caf0e))return;}if(_0xb8a4ba['item']['is']('selection'))return void _0x1c9973['consumable']['consume'](_0xb8a4ba['item'],_0x25c842['name']);const _0x4e9c6f=_0x1c9973['mapper']['toViewElement'](_0xb8a4ba['item']);if(_0xb8a4ba['item']['is']('element')&&_0x5edec8['model']['schema']['isBlock'](_0xb8a4ba['item'])&&!_0x4e9c6f['getCustomProperty']('addHighlight')){_0x1c9973['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4e9c6f),_0x1c9973['writer']['setAttribute']('data-suggestion',_0x39c077,_0x4e9c6f),_0x1c9973['mapper']['bindElementToMarker'](_0x4e9c6f,_0xb8a4ba['markerName']),_0x2ffb4a&&(this['activeMarkers']['includes'](_0xb8a4ba['markerName'])?_0x1c9973['writer']['addClass']('ck-suggestion-marker--active',_0x4e9c6f):_0x1c9973['writer']['removeClass']('ck-suggestion-marker--active',_0x4e9c6f));for(const _0x1eb3fb of _0x5edec8['model']['createRangeIn'](_0xb8a4ba['item'])['getItems']())_0x1c9973['consumable']['consume'](_0x1eb3fb,_0x25c842['name']);_0x1c9973['consumable']['consume'](_0xb8a4ba['item'],_0x25c842['name']);}};_0x5edec8['conversion']['for']('dataDowncast')['add'](_0x40371d=>{_0x40371d['on']('addMarker:suggestion:formatBlock',(_0x3f89c0,_0x1f4a97,_0x466bf5)=>{_0x466bf5['options']['showSuggestionHighlights']&&_0x5b5d7f({'showActiveMarkers':!0x1})(_0x3f89c0,_0x1f4a97,_0x466bf5);},{'priority':'highest'});}),_0x5edec8['conversion']['for']('dataDowncast')['add'](_0x24ef29=>{_0x24ef29['on']('addMarker:suggestion:attribute',(_0x5c92d0,_0x26278a,_0x343ebc)=>{_0x343ebc['options']['showSuggestionHighlights']&&_0x5b5d7f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5c92d0,_0x26278a,_0x343ebc);},{'priority':'highest'});}),_0x5edec8['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3d162b,_0x5ddea0)=>_0x5ddea0['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3d162b['substr'](0xb)}}),_0x5edec8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x410322,{writer:_0x318ae5})=>{let _0x387a3d='suggestion:'+_0x410322['getAttribute']('suggestion-type')+':'+_0x410322['getAttribute']('id');return _0x410322['getAttribute']('marker-count')&&(_0x387a3d+=':'+_0x410322['getAttribute']('marker-count')),_0x318ae5['createElement']('$marker',{'data-name':_0x387a3d});}}),_0x5edec8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5edec8['conversion']['for']('editingDowncast')['add'](_0x4c6706=>{_0x4c6706['on']('addMarker:suggestion:formatBlock',_0x5b5d7f(),{'priority':'high'});}),_0x5edec8['conversion']['for']('editingDowncast')['add'](_0x17f2a9=>{_0x17f2a9['on']('addMarker:suggestion:attribute',_0x5b5d7f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5edec8['conversion']['for']('editingDowncast')['add'](_0xd89b92=>{_0xd89b92['on']('removeMarker:suggestion:formatBlock',(_0x5b6031,_0x3ee59b,_0x40e9ec)=>{const _0x57da36=_0x40e9ec['mapper']['markerNameToElements'](_0x3ee59b['markerName']);if(_0x57da36){for(const _0x1380ce of _0x57da36)_0x1380ce['getCustomProperty']('addHighlight')||(_0x40e9ec['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1380ce),_0x40e9ec['writer']['removeAttribute']('data-suggestion',_0x1380ce),_0x40e9ec['mapper']['unbindElementFromMarkerName'](_0x1380ce,_0x3ee59b['markerName']));}},{'priority':'high'});}),_0x5edec8['conversion']['for']('editingDowncast')['add'](_0x1cc59b=>{_0x1cc59b['on']('removeMarker:suggestion:attribute',(_0x2f7da1,_0x57dfcd,_0x191b94)=>{const _0x203218=_0x191b94['mapper']['markerNameToElements'](_0x57dfcd['markerName']);if(!_0x203218)return;const {id:_0xaa0593}=this['_splitMarkerName'](_0x57dfcd['markerName']),_0x38a797=this['_suggestions']['get'](_0xaa0593),_0x1a962c=this['_getAttributeKey'](_0x38a797);if(this['_isBlockAttribute'](_0x1a962c)){for(const _0x2e43d7 of _0x203218)_0x2e43d7['getCustomProperty']('addHighlight')||(_0x191b94['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2e43d7),_0x191b94['writer']['removeAttribute']('data-suggestion',_0x2e43d7),_0x191b94['mapper']['unbindElementFromMarkerName'](_0x2e43d7,_0x57dfcd['markerName']));}},{'priority':'high'});}),_0x5edec8['model']['document']['registerPostFixer'](_0x1afa2d=>{let _0x359bcd=!0x1;const _0x2024dd=Array['from'](_0x5edec8['model']['document']['differ']['getChangedMarkers']()),_0x4d80bd=new Set();for(const {name:_0x13d367,data:_0xbdb562}of _0x2024dd){const {group:_0x5157a6,type:_0x4f5492,subType:_0x2696a7,id:_0xdd7d9}=this['_splitMarkerName'](_0x13d367);if('suggestion'!==_0x5157a6)continue;const _0x2ca8c2=this['_suggestions']['get'](_0xdd7d9);if(null!=_0xbdb562['newRange']){'formatInline'==_0x4f5492&&(_0x359bcd=_0x359bcd||Et(_0xbdb562['newRange'],_0x13d367,_0x1afa2d,_0x5edec8['model']['schema']));const _0x1c5d3c='attribute'==_0x4f5492&&this['_isBlockAttribute'](_0x2696a7['split']('|')[0x0]);if(_0xbdb562['newRange']['isCollapsed']||'$graveyard'==_0xbdb562['newRange']['root']['rootName']||'formatBlock'==_0x4f5492&&!Vt(_0xbdb562['newRange'])||_0x1c5d3c&&!Vt(_0xbdb562['newRange'])||'deletion'==_0x4f5492&&!(!Tt(_0x5a3c96=_0xbdb562['newRange'])&&!function(_0x2c45a4){return _0x2c45a4['start']['parent']==_0x2c45a4['end']['nodeBefore']&&_0x2c45a4['start']['isAtEnd'];}(_0x5a3c96)))_0x1afa2d['removeMarker'](_0x13d367),_0x359bcd=!0x0;else{if(!_0x2ca8c2||!_0x2ca8c2['isInContent'])continue;if(_0xbdb562['newRange']&&_0xbdb562['oldRange']&&_0xbdb562['newRange']['isEqual'](_0xbdb562['oldRange']))continue;_0x4d80bd['add'](_0x2ca8c2);}}}var _0x5a3c96;return _0x4d80bd['size']>0x0&&(_0x359bcd=!!this['_joinWithAdjacentSuggestions'](_0x4d80bd)||_0x359bcd),_0x359bcd;}),_0x5edec8['model']['document']['registerPostFixer'](_0x4a4e1c=>{let _0x2241fd=!0x1;for(const _0x9be995 of _0x5edec8['model']['document']['differ']['getChanges']())if('insert'==_0x9be995['type'])for(const _0x32f8b8 of this['_suggestions']['values']()){if(_0x32f8b8['isMultiRange']||!_0x32f8b8['isInContent'])continue;const _0x58cda0='formatBlock'==_0x32f8b8['type'],_0x6f5f70=this['_getAttributeKey'](_0x32f8b8),_0x246f2c=_0x6f5f70&&this['_isBlockAttribute'](_0x6f5f70);if(!_0x58cda0&&!_0x246f2c)continue;const _0x568823=_0x32f8b8['getFirstRange']();if(_0x568823['start']['parent']!=_0x568823['end']['parent']&&!_0x568823['end']['isAtEnd']){const _0x5d93f8=_0x5edec8['model']['createPositionAt'](_0x568823['start']['nodeAfter'],'end'),_0x4539d5=_0x5edec8['model']['createRange'](_0x568823['start'],_0x5d93f8);_0x4a4e1c['updateMarker'](_0x32f8b8['getFirstMarker'](),{'range':_0x4539d5}),_0x2241fd=!0x0;}}return _0x2241fd;}),_0x5edec8['model']['document']['registerPostFixer'](_0x5afcc5=>this['_processAttributeChanges'](_0x5afcc5)),_0x5edec8['model']['document']['registerPostFixer'](_0x4b4037=>!_0x4b4037['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4b4037)),_0x5edec8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5edec8['model']['document']['on']('change:data',(_0x2607f4,_0x29b8d0)=>{if(!_0x29b8d0['isLocal']||_0x29b8d0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x49bda3=_0x5edec8['model']['document']['differ']['getChanges']();if(0x0==_0x49bda3['length'])return;const _0x5a0f18=[],_0x3377ec=_0x49bda3['filter'](_0x9ed570=>'attribute'==_0x9ed570['type']),_0xd4ced3=_0x49bda3['filter'](_0x2c6b86=>'insert'==_0x2c6b86['type']&&'$text'!=_0x2c6b86['name']);for(const _0x19a16b of _0x3377ec)this['_isRegisteredAttribute'](_0x19a16b['attributeKey'])&&_0x5a0f18['push']({'key':_0x19a16b['attributeKey'],'newValue':_0x19a16b['attributeNewValue'],'oldValue':_0x19a16b['attributeOldValue'],'range':Ut(_0x19a16b['range'],_0x5edec8['model'])});for(const _0x5e9583 of _0xd4ced3){if('rename'!=_0x5e9583['action']&&'refresh'!=_0x5e9583['action'])continue;const _0x1fee86=Gt(_0x5e9583['position']['nodeAfter'],_0x5edec8['model']),_0x420226=_0x5e9583['before'];'rename'==_0x5e9583['action']&&_0x5a0f18['push']({'key':m,'newValue':_0x5e9583['name'],'oldValue':_0x420226['name'],'range':_0x1fee86});for(const [_0x5f3b9a,_0x45cf8a]of _0x420226['attributes']){if(!this['_isRegisteredAttribute'](_0x5f3b9a))continue;const _0x49d2e3=_0x5e9583['attributes']['get'](_0x5f3b9a);_0x45cf8a!==_0x49d2e3&&_0x5a0f18['push']({'key':_0x5f3b9a,'newValue':_0x49d2e3,'oldValue':_0x45cf8a,'range':_0x1fee86});}for(const [_0x492bc8,_0x165dad]of _0x5e9583['attributes'])this['_isRegisteredAttribute'](_0x492bc8)&&(_0x420226['attributes']['has'](_0x492bc8)||_0x5a0f18['push']({'key':_0x492bc8,'newValue':_0x165dad,'oldValue':null,'range':_0x1fee86}));}0x0!=_0x5a0f18['length']&&_0x5edec8['model']['enqueueChange'](_0x29b8d0,_0x11fbb4=>{const _0x4761a8=_0x424b6d();for(const {range:_0x5040bf,key:_0x3b5e9c,oldValue:_0x1bddc1,newValue:_0x41d4cb}of _0x5a0f18)this['markAttributeChange'](_0x5040bf,_0x3b5e9c,_0x1bddc1,_0x41d4cb,{'groupId':_0x4761a8});this['_reduceExistingSuggestions'](_0x11fbb4,_0x5a0f18);});},{'priority':'lowest'}),_0x5edec8['model']['markers']['on']('update:suggestion',(_0x4f5021,_0x1729e8,_0x1d4462)=>{if(null==_0x1d4462){const {id:_0x2ac905}=this['_splitMarkerName'](_0x1729e8['name']),_0x3c161d=this['_suggestions']['get'](_0x2ac905);_0x3c161d&&_0x3c161d['addMarkerName'](_0x1729e8['name']);}}),_0x5edec8['model']['document']['on']('change:data',()=>{const _0x48d1e6=Array['from'](_0x5edec8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x230f34=>'suggestion'===this['_splitMarkerName'](_0x230f34['name'])['group']);if(0x0===_0x48d1e6['length'])return;_0x48d1e6['sort']((_0x3b9eae,_0x276c3e)=>{const _0x2431eb=_0x3b9eae['data']['oldRange'],_0x5191a6=_0x276c3e['data']['oldRange'];return null===_0x2431eb&&null===_0x5191a6?0x0:null===_0x2431eb&&null!==_0x5191a6?-0x1:null!==_0x2431eb&&null===_0x5191a6?0x1:_0x2431eb['start']['isBefore'](_0x5191a6['start'])?-0x1:0x1;});const _0x15ba5a=new Set(),_0x5725c3=new Set();for(const {name:_0x617508,data:_0x4895ef}of _0x48d1e6){const {id:_0x493d75}=this['_splitMarkerName'](_0x617508);if(null===_0x4895ef['oldRange']){const _0x3ba682=this['_handleNewSuggestionMarker'](_0x617508);_0x5725c3['add'](_0x3ba682);}else{const _0x40de4c=this['_suggestions']['get'](_0x493d75);null!==_0x4895ef['newRange']||_0x40de4c['isInContent']?(_0x15ba5a['add'](_0x40de4c['head']),_0x5725c3['add'](_0x40de4c)):this['_removeSuggestion'](_0x40de4c);}}_0x5725c3['size']>0x0&&this['_refreshSuggestionsChain'](_0x5725c3);for(const _0x2ca13f of _0x15ba5a)this['fire']('suggestionChanged',_0x2ca13f);}),_0x5edec8['model']['on']('applyOperation',(_0x5c90d5,_0x2a4d7b)=>{const _0x4f7381=_0x2a4d7b[0x0];if(!this['_suggestions']['size'])return;if(!_0x4f7381['isDocumentOperation'])return;if(_0x4f7381['batch']['isUndo']||!_0x4f7381['batch']['isLocal'])return;let _0x95436a,_0x27ca91;switch(_0x4f7381['type']){case'insert':_0x95436a=_0x5edec8['model']['createPositionAt'](_0x4f7381['position']),_0x27ca91=_0x95436a['getShiftedBy'](_0x4f7381['howMany']);break;case'split':_0x95436a=_0x5edec8['model']['createPositionAt'](_0x4f7381['splitPosition']),_0x27ca91=_0x5edec8['model']['createPositionAt'](_0x4f7381['moveTargetPosition']);break;case'move':_0x95436a=_0x5edec8['model']['createPositionAt'](_0x4f7381['targetPosition']),_0x27ca91=_0x95436a['getShiftedBy'](_0x4f7381['howMany']);break;default:return;}const _0x5a9434=_0x5edec8['model']['createRange'](_0x95436a,_0x27ca91);_0x5edec8['model']['change'](()=>{for(const {suggestion:_0x19577b,meta:_0x1904cf}of this['_findSuggestions'](_0x5a9434)){if(_0x19577b['isMultiRange'])continue;if('formatInline'==_0x19577b['type'])continue;const _0x329000=this['_getAttributeKey'](_0x19577b);if(_0x329000&&this['_isBlockAttribute'](_0x329000)&&'split'!=_0x4f7381['type'])continue;const _0x455faf=_0x19577b['data']&&_0x19577b['data']['multipleBlocks'];('formatBlock'!=_0x19577b['type']||'split'==_0x4f7381['type']&&!_0x455faf)&&(_0x1904cf['containsRangeInObject']||'insertion'==_0x19577b['type']&&_0x1904cf['isOwn']||_0x19577b['getFirstRange']()['containsRange'](_0x5a9434)&&this['_breakSuggestionMarker'](_0x19577b,_0x95436a,_0x27ca91));}});},{'priority':'lowest'}),_0x5edec8['model']['on']('deleteContent',(_0xcba072,_0x428944)=>{const _0x1e4fd0=_0x428944[0x0],_0x207cc9=_0x428944[0x1];if(_0x207cc9&&_0x207cc9['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1e4fd0['isCollapsed'])return;const _0x1b2c4a=_0x5edec8['model']['schema'],{start:_0x48dd64,end:_0x3465ee}=_0x1e4fd0['getFirstRange'](),_0x14bee4=_0x48dd64['nodeAfter']&&_0x1b2c4a['isLimit'](_0x48dd64['nodeAfter'])?null:_0x1b2c4a['getNearestSelectionRange'](_0x48dd64,'forward'),_0x41a577=_0x3465ee['nodeBefore']&&_0x1b2c4a['isLimit'](_0x3465ee['nodeBefore'])?null:_0x1b2c4a['getNearestSelectionRange'](_0x3465ee,'backward'),_0x647b75=_0x5edec8['model']['createRange'](_0x14bee4?_0x14bee4['start']:_0x48dd64,_0x41a577?_0x41a577['end']:_0x3465ee);_0x5edec8['model']['change'](_0x20f07c=>{this['markDeletion'](_0x647b75);const _0x5015a4=_0x5edec8['model']['schema']['getNearestSelectionRange'](_0x647b75['start']);_0x1e4fd0['is']('documentSelection')?_0x20f07c['setSelection'](_0x5015a4):_0x1e4fd0['setTo'](_0x5015a4);}),_0xcba072['stop']();},{'priority':_0x37a5e4['normal']+0xa}),_0x5edec8['model']['on']('insertContent',(_0x24e081,_0x319f3f)=>{const _0x469cd5=_0x319f3f[_0x319f3f['length']-0x1];_0x469cd5&&_0x469cd5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5edec8['model']['change'](()=>{let _0x4540b9=_0x5edec8['model']['insertContent'](_0x319f3f[0x0],_0x319f3f[0x1],_0x319f3f[0x2],{'forceDefaultExecution':!0x0});if(!_0x4540b9)return;_0x24e081['return']=_0x4540b9['clone']();const _0x18654d=_0x4540b9['end']['nodeBefore'],_0x310942=_0x5edec8['model']['schema'];_0x18654d&&_0x310942['isBlock'](_0x18654d)&&!_0x310942['isObject'](_0x18654d)&&(_0x4540b9=_0x5edec8['model']['createRange'](_0x4540b9['start'],_0x5edec8['model']['createPositionAt'](_0x18654d,'end'))),this['markInsertion'](_0x4540b9);}),_0x24e081['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x8e9174=new $(_0x5edec8,this['_suggestions']);_0x5edec8['commands']['add']('acceptSuggestion',_0x8e9174),this['enableCommand']('acceptSuggestion');const _0x265844=new B(_0x5edec8,this['_suggestions']);_0x5edec8['commands']['add']('discardSuggestion',_0x265844),this['enableCommand']('discardSuggestion'),_0x5edec8['commands']['add']('acceptAllSuggestions',new x(_0x5edec8,_0x8e9174,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5edec8['commands']['add']('discardAllSuggestions',new x(_0x5edec8,_0x265844,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5edec8['commands']['add']('acceptSelectedSuggestions',new R(_0x5edec8,_0x8e9174,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5edec8['commands']['add']('discardSelectedSuggestions',new R(_0x5edec8,_0x265844,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2278ac=_0x5edec8['plugins']['get']('CommentsRepository');this['listenTo'](_0x2278ac,'addComment',(_0x29ea33,{threadId:_0x3a427a})=>{const _0x53da95=this['_suggestions']['get'](_0x3a427a);_0x53da95&&_0x53da95['commentThread']&&0x1===_0x53da95['commentThread']['length']&&this['_updateSuggestionData'](_0x3a427a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2278ac,'removeComment',(_0x40c436,{threadId:_0x3df32b})=>{const _0x1f0c58=this['_suggestions']['get'](_0x3df32b);_0x1f0c58&&_0x1f0c58['commentThread']&&!_0x1f0c58['commentThread']['length']&&this['_updateSuggestionData'](_0x3df32b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0xa2a358){if(this['_adapter'])throw new _0x52dd32('track-changes-adapter-already-set',this);this['_adapter']=_0xa2a358;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3eac5f=!0x1,toJSON:_0x38acb0=!0x1}={}){const _0xad7f2f=[];for(const _0x4520f9 of this['_suggestions']['values']())_0x3eac5f&&!_0x4520f9['isInContent']||_0xad7f2f['push'](_0x4520f9);return _0x38acb0?_0xad7f2f['map'](_0x3a143e=>_0x3a143e['toJSON']()):_0xad7f2f;}['getSuggestion'](_0x1fedf0){const _0x1c74ec=this['_suggestions']['get'](_0x1fedf0);if(!_0x1c74ec)throw new _0x52dd32('track-changes-suggestion-not-found',this);return _0x1c74ec;}['hasSuggestion'](_0x6690f3){return this['_suggestions']['has'](_0x6690f3);}['addSuggestionData'](_0x48e5cd){const {authorId:_0x5e1e74,id:_0x4f8bbe,attributes:_0x261f03}=_0x48e5cd,[_0x23285c,_0x9b5f3]=_0x48e5cd['type']['split'](':'),_0x2cff92=this['_suggestions']['get'](_0x4f8bbe)||this['_createSuggestion'](_0x23285c,_0x9b5f3,_0x4f8bbe,_0x5e1e74,_0x261f03);if(this['_addThreadToSuggestion'](_0x2cff92),this['_checkSuggestionCorrectness'](_0x2cff92,_0x23285c,_0x9b5f3||null,_0x5e1e74),_0x2cff92['createdAt']=_0x48e5cd['createdAt'],_0x2cff92['_isDataLoaded']=!0x0,_0x261f03&&_0x261f03['@external']){const _0x24dcd5=_0x261f03['@external'],_0x983c0a=this['_getExternalAuthor'](_0x24dcd5['authorName']);_0x2cff92['authoredAt']=_0x24dcd5['createdAt'],_0x2cff92['author']=_0x983c0a,_0x2cff92['isExternal']=!0x0;}else _0x2cff92['authoredAt']=_0x48e5cd['createdAt'];switch(_0x48e5cd['data']&&(_0x2cff92['data']=_0x48e5cd['data']),_0x48e5cd['attributes']&&(_0x2cff92['attributes']=_0x48e5cd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2cff92['_saved']=!0x0),this['_suggestionState']['get'](_0x2cff92)){case'notReady':this['_suggestionState']['set'](_0x2cff92,'dataReady');break;case'markerReady':_0x2cff92['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2cff92])),this['_refreshSuggestionsChain'](new Set([_0x2cff92])),this['_suggestionState']['set'](_0x2cff92,'ready'),this['fire']('suggestionLoaded',_0x2cff92)):this['_suggestionState']['set'](_0x2cff92,'removed');}return _0x2cff92;}['acceptSuggestion'](_0x1d3bdd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41915f of _0x1d3bdd['getAllAdjacentSuggestions']())_0x41915f['accept']();});});}['discardSuggestion'](_0x273805){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4cfecb of _0x273805['getAllAdjacentSuggestions']())_0x4cfecb['discard']();});});}['enableCommand'](_0x26bd22,_0x10034f){const _0x3a6e49=this['editor']['commands']['get'](_0x26bd22);if(!_0x3a6e49)throw new _0x52dd32('track-changes-command-not-found',this,{'commandName':_0x26bd22});if(this['_enabledCommands']['has'](_0x3a6e49))throw new _0x52dd32('track-changes-enable-command-twice',this,{'commandName':_0x26bd22});this['_enabledCommands']['add'](_0x3a6e49),_0x10034f&&_0x3a6e49['on']('execute',(_0x5894b9,_0x2c8ae0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2c8ae0['length']>0x0&&_0x2c8ae0[_0x2c8ae0['length']-0x1]&&_0x2c8ae0[_0x2c8ae0['length']-0x1]['forceDefaultExecution']?_0x2c8ae0['pop']():(_0x5894b9['return']=_0x10034f((..._0x20bbb9)=>_0x3a6e49['execute'](..._0x20bbb9,{'forceDefaultExecution':!0x0}),..._0x2c8ae0),_0x5894b9['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x237dd8){let _0x38be33,_0x117d91;const _0x57b001=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x38be33=_0x237dd8();}catch(_0x521d85){_0x117d91=_0x521d85;}return _0x57b001||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x117d91&&_0x52dd32['rethrowUnexpectedError'](_0x117d91,this),_0x38be33;}['markInsertion'](_0x2e924e,_0xe2620e=null,_0x3d5c11={}){if(_0x2e924e['isCollapsed'])return null;const _0x5a6303=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4551df,meta:_0x588585}of this['_findSuggestions'](_0x2e924e,'insertion'))if(_0x588585['isOwn']){if(!_0x588585['isNextTo']){if(_0x588585['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x4551df,_0x3d5c11))continue;return _0x4551df;}if(Lt(_0x4551df,_0x3d5c11))return _0x4551df;this['_breakSuggestionMarker'](_0x4551df,_0x2e924e['start'],_0x2e924e['end']);break;}if(_0xe2620e==_0x4551df['subType']&&Lt(_0x4551df,_0x3d5c11)){const _0xa0782e=_0x4551df['getFirstRange']();return _0xa0782e['start']['isEqual'](_0x2e924e['end'])?this['_setSuggestionRange'](_0x4551df,this['_model']['createRange'](_0x2e924e['start'],_0xa0782e['end'])):this['_setSuggestionRange'](_0x4551df,this['_model']['createRange'](_0xa0782e['start'],_0x2e924e['end'])),_0x4551df;}}const _0x61f825=_0x424b6d(),_0x14b082=_0x5a6303['id'],_0x1a2745=_0xe2620e?'insertion:'+_0xe2620e:'insertion',_0x3c7579=this['_setSuggestionData']({'id':_0x61f825,'type':_0x1a2745,'createdAt':new Date(),'authorId':_0x14b082,'attributes':_0x3d5c11});return this['_addSuggestionMarker'](_0x1a2745,_0x61f825,_0x14b082,_0x2e924e),_0x3c7579;}['markMultiRangeInsertion'](_0x63e6d7,_0x2ed0f4='multi',_0x5d04ad={}){const _0x361c2f=this['editor']['plugins']['get']('Users')['me'],_0x26ef73=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2ed0f4,'join');for(const _0x55d76f of this['getSuggestions']())if(_0x55d76f['author']['id']==_0x361c2f['id']&&'insertion'==_0x55d76f['type']&&_0x55d76f['subType']==_0x2ed0f4&&Lt(_0x55d76f,_0x5d04ad)&&(_0x26ef73(_0x55d76f['getRanges'](),_0x63e6d7)||_0x26ef73(_0x63e6d7,_0x55d76f['getRanges']()))){for(const _0x293b2f of _0x63e6d7)_0x55d76f['addRange'](_0x293b2f);return _0x55d76f;}for(const {suggestion:_0x274d71,meta:_0x49185d}of this['_findSuggestions'](_0x63e6d7,'insertion')){if(!_0x49185d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x49185d['containsRangeInObject'])continue;if(!Lt(_0x274d71,_0x5d04ad))continue;let _0x32a2f4=!0x0;for(const _0x2fc793 of _0x274d71['getRanges']())for(const _0x25631f of _0x63e6d7)if(!_0x2fc793['containsRange'](_0x25631f)){_0x32a2f4=!0x1;break;}if(_0x32a2f4)return _0x274d71;}const _0x585fe9=_0x424b6d(),_0x249a78=_0x361c2f['id'],_0x15e891='insertion:'+_0x2ed0f4,_0x11a1df=this['_setSuggestionData']({'id':_0x585fe9,'type':_0x15e891,'createdAt':new Date(),'authorId':_0x249a78,'attributes':_0x5d04ad});for(const _0x1fc01d of _0x63e6d7)this['_addSuggestionMarker'](_0x15e891,_0x585fe9,_0x249a78,_0x1fc01d,u['getMultiRangeId']());return _0x11a1df;}['markInlineFormat'](_0x162654,_0x5dd8cf,_0x54389e=null,_0x35258c={}){if(_0x54389e=_0x54389e||Ot(_0x5dd8cf),_0x162654['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x19c879=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x54389e,'accept');return this['forceDefaultExecution'](()=>_0x19c879([_0x162654],_0x5dd8cf,_0x35258c)),null;}const _0x4b054a=this['editor']['plugins']['get']('Users')['me'],_0x44a21=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1bf2bd,meta:_0x17390f}of this['_findSuggestions'](_0x162654,'insertion'))_0x17390f['isOwn']&&!_0x17390f['isInsideObject']&&_0x44a21['push'](..._0x1bf2bd['getRanges']());}const _0x36590a=function(_0x57ba32,_0x262b83){const _0x467890=[];for(const _0x4b09fd of _0x262b83){const _0x5dc671=_0x57ba32['getIntersection'](_0x4b09fd);_0x5dc671&&_0x467890['push'](_0x5dc671);}return _0x467890;}(_0x162654,_0x44a21),_0x73216a=function(_0x453150,_0x502d86){const _0x2fbd56=[_0x453150];for(const _0x5bb362 of _0x502d86){let _0x2993d4=0x0;for(;_0x2993d4<_0x2fbd56['length'];){const _0x150df7=_0x2fbd56[_0x2993d4]['getDifference'](_0x5bb362);_0x2fbd56['splice'](_0x2993d4,0x1,..._0x150df7),_0x2993d4+=_0x150df7['length'];}}return _0x2fbd56;}(_0x162654,_0x44a21);_0x36590a['length']&&this['_model']['change'](()=>{for(const _0xbd43ba of _0x36590a){const _0x2c1b73=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x54389e,'accept');this['forceDefaultExecution'](()=>_0x2c1b73([_0xbd43ba],_0x5dd8cf,_0x35258c));}});for(const _0x539c30 of _0x73216a){let _0x135fd0=null,_0xae37ee=_0x539c30['start'],_0x4ab0e5=_0x539c30['end'];for(const {suggestion:_0xc15913,meta:_0x464b66}of this['_findSuggestions'](_0x539c30,'formatInline')){if(!_0x464b66['isOwn'])continue;if(_0xc15913['subType']!=_0x54389e)continue;if(!Lt(_0xc15913,_0x35258c))continue;const _0x284948=_0xc15913['getFirstRange']();if(_0x284948['containsRange'](_0x539c30,!0x0))return null;_0xae37ee=_0xae37ee['isBefore'](_0x284948['start'])?_0xae37ee:_0x284948['start'],_0x4ab0e5=_0x4ab0e5['isAfter'](_0x284948['end'])?_0x4ab0e5:_0x284948['end'],_0x135fd0?_0x284948['start']['isBefore'](_0x135fd0['getFirstRange']()['start'])?(_0x135fd0['removeMarkers'](),_0x135fd0=_0xc15913):_0xc15913['removeMarkers']():_0x135fd0=_0xc15913;}const _0x44acfe=this['_model']['createRange'](_0xae37ee,_0x4ab0e5);if(_0x135fd0)this['_setSuggestionRange'](_0x135fd0,_0x44acfe);else{const _0x21f777=_0x424b6d(),_0x23cc8f=_0x4b054a['id'];this['_setSuggestionData']({'id':_0x21f777,'type':'formatInline:'+_0x54389e,'data':_0x5dd8cf,'createdAt':new Date(),'authorId':_0x23cc8f,'attributes':_0x35258c}),this['_addSuggestionMarker']('formatInline:'+_0x54389e,_0x21f777,_0x23cc8f,_0x44acfe);}}return null;}['markBlockFormat'](_0x22b0f9,_0x56ebe5,_0x4e5713=[],_0x285d2c=null,_0x5028a2={}){_0x56ebe5['formatGroupId']||(_0x56ebe5['formatGroupId']=_0x56ebe5['commandName']),_0x56ebe5['multipleBlocks']=_0x22b0f9['is']('range'),_0x285d2c=_0x285d2c||Ot(_0x56ebe5);const _0x2687c1=_0x4e5713['map'](_0x273951=>Gt(_0x273951,this['_model'])),_0x57050d=_0x22b0f9['is']('range')?_0x22b0f9:Gt(_0x22b0f9,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3b8650=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x285d2c,'accept');return this['forceDefaultExecution'](()=>_0x3b8650([_0x57050d],_0x56ebe5,_0x5028a2)),null;}_0x2687c1['push'](_0x57050d);let _0x2f43a3=!0x0;for(const _0x4a9b9e of _0x2687c1)if(!this['_rangeIsInLocalUserInsertion'](_0x4a9b9e)){_0x2f43a3=!0x1;break;}if(_0x2f43a3&&'always'!==this['_trackFormatChanges']){const _0xfa5795=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x285d2c,'accept');return this['forceDefaultExecution'](()=>_0xfa5795([_0x57050d],_0x56ebe5,_0x5028a2)),null;}let _0x3150f3=null,_0x3b2d75=_0x57050d['start'],_0x1ba6fd=_0x57050d['end'];for(const {suggestion:_0x47e338,meta:_0x4895b6}of this['_findSuggestions'](_0x57050d,'formatBlock')){if(!_0x4895b6['isOwn'])continue;if(_0x4895b6['isNextTo']||_0x4895b6['containsRangeInObject']||_0x4895b6['isInsideObject'])continue;if(_0x47e338['data']['formatGroupId']!=_0x56ebe5['formatGroupId'])continue;if(!Lt(_0x47e338,_0x5028a2))continue;const _0x4c8427=_0x47e338['getFirstRange']();if(_0x47e338['subType']==_0x285d2c){if(_0x4c8427['containsRange'](_0x57050d,!0x0))return null;_0x3b2d75=_0x3b2d75['isBefore'](_0x4c8427['start'])?_0x3b2d75:_0x4c8427['start'],_0x1ba6fd=_0x1ba6fd['isAfter'](_0x4c8427['end'])?_0x1ba6fd:_0x4c8427['end'],_0x3150f3?_0x4c8427['start']['isBefore'](_0x3150f3['getFirstRange']()['start'])?(_0x3150f3['removeMarkers'](),_0x3150f3=_0x47e338):_0x47e338['removeMarkers']():_0x3150f3=_0x47e338;}else{const _0x564d9e=_0x57050d['getIntersection'](_0x4c8427);this['_cutOutSuggestionMarker'](_0x47e338,_0x564d9e);}}const _0x5cc210=this['editor']['plugins']['get']('Users')['me'],_0xa04b5b=_0x424b6d(),_0x4d2356=_0x5cc210['id'];if(_0x3150f3)return this['_setSuggestionRange'](_0x3150f3,this['_model']['createRange'](_0x3b2d75,_0x1ba6fd)),_0x3150f3;{const _0xa48067=this['_setSuggestionData']({'id':_0xa04b5b,'type':'formatBlock:'+_0x285d2c,'data':_0x56ebe5,'createdAt':new Date(),'authorId':_0x4d2356,'attributes':_0x5028a2});return this['_addSuggestionMarker']('formatBlock:'+_0x285d2c,_0xa04b5b,_0x4d2356,this['_model']['createRange'](_0x3b2d75,_0x1ba6fd)),_0xa48067;}}['markMultiRangeBlockFormat'](_0x19242d,_0x41a45c,_0x366cd6=[],_0x5128f5=null,_0x11b992={}){_0x41a45c['formatGroupId']||(_0x41a45c['formatGroupId']=_0x41a45c['commandName']);const _0x46040f=_0x19242d[0x0];_0x41a45c['multipleBlocks']=_0x46040f['is']('range'),_0x5128f5=_0x5128f5||Ot(_0x41a45c);const _0x2d1849=_0x366cd6['map'](_0x5857e4=>Gt(_0x5857e4,this['_model'])),_0x452efa=_0x46040f['is']('range')?_0x19242d:_0x19242d['map'](_0x45a62d=>Gt(_0x45a62d,this['_model']));if('never'===this['_trackFormatChanges']){const _0x23d0df=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5128f5,'accept');return this['forceDefaultExecution'](()=>_0x23d0df(_0x452efa,_0x41a45c,_0x11b992)),null;}_0x2d1849['push'](..._0x452efa);let _0x9dd7e1=!0x0;for(const _0x2cb473 of _0x2d1849)if(!this['_rangeIsInLocalUserInsertion'](_0x2cb473)){_0x9dd7e1=!0x1;break;}if(_0x9dd7e1&&'always'!==this['_trackFormatChanges']){const _0x1e67c8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5128f5,'accept');return this['forceDefaultExecution'](()=>_0x1e67c8(_0x452efa,_0x41a45c,_0x11b992)),null;}const _0x26480b=this['editor']['plugins']['get']('Users')['me'];for(const _0x5a66a8 of this['getSuggestions']()){if(_0x5a66a8['author']['id']!=_0x26480b['id'])continue;if('formatBlock'!=_0x5a66a8['type']||_0x5a66a8['data']['formatGroupId']!=_0x41a45c['formatGroupId'])continue;if(!Lt(_0x5a66a8,_0x11b992))continue;const _0x29d0ae=_0x5a66a8['subType']==_0x5128f5;for(let _0x5e92e0=0x0;_0x5e92e0<_0x452efa['length'];_0x5e92e0++){const _0x2e176b=_0x452efa[_0x5e92e0];for(const _0xe5d584 of _0x5a66a8['getMarkers']()){const _0x1f13c6=_0xe5d584['getRange']();if(_0x2e176b['isEqual'](_0x1f13c6)){_0x29d0ae?(_0x452efa['splice'](_0x5e92e0,0x1),_0x5e92e0--):_0x5a66a8['removeMarker'](_0xe5d584['name']);break;}}}}if(0x0==_0x452efa['length'])return null;const _0x4839a3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5128f5,'join');for(const _0x438a50 of this['getSuggestions']())if(_0x438a50['author']['id']==_0x26480b['id']&&'formatBlock'==_0x438a50['type']&&_0x438a50['data']['formatGroupId']==_0x41a45c['formatGroupId']&&_0x438a50['subType']==_0x5128f5&&Lt(_0x438a50,_0x11b992)&&(_0x4839a3(_0x438a50['getRanges'](),_0x452efa)||_0x4839a3(_0x452efa,_0x438a50['getRanges']()))){for(const _0x55f28a of _0x452efa)_0x438a50['addRange'](_0x55f28a);return _0x438a50;}const _0x3b92a9=_0x424b6d(),_0x1a4900=_0x26480b['id'],_0x447f29='formatBlock:'+_0x5128f5,_0x187035=this['_setSuggestionData']({'id':_0x3b92a9,'type':_0x447f29,'data':_0x41a45c,'createdAt':new Date(),'authorId':_0x1a4900,'attributes':_0x11b992});for(const _0x4ba666 of _0x452efa)this['_addSuggestionMarker'](_0x447f29,_0x3b92a9,_0x1a4900,_0x4ba666,u['getMultiRangeId']());return _0x187035;}['markDeletion'](_0x90da92,_0x2bc926=null,_0x3e5b24={}){if(_0x90da92['isCollapsed'])return null;const _0x334445=this['editor']['plugins']['get']('Users')['me'],_0x334c63=new _0x192ba9(_0x90da92['start'],_0x90da92['end']);for(const {suggestion:_0x5b4d8d,meta:_0x1b2226}of this['_findSuggestions'](_0x334c63,'insertion'))if(_0x1b2226['isOwn']&&!_0x1b2226['isNextTo']){if(_0x5b4d8d['isMultiRange']){const _0x5222e7=_0x5b4d8d['getRanges']()['filter'](_0x3905a8=>'$graveyard'!=_0x3905a8['root']['rootName']);_0x5222e7['every'](_0x5e1cd2=>_0x334c63['containsRange'](_0x5e1cd2,!0x0))&&_0x5b4d8d['discard']();if(_0x5222e7['some'](_0x4a13f7=>_0x4a13f7['containsRange'](_0x334c63,!0x0))){const _0x166581=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2bc926,'accept');return this['forceDefaultExecution'](()=>_0x166581([_0x334c63],null,_0x3e5b24)),null;}}else{const _0x38706b=_0x334c63['getIntersection'](_0x5b4d8d['getFirstRange']());null!==_0x38706b&&_0x5b4d8d['_onDiscard']([_0x38706b],null,_0x3e5b24);}}if(_0x334c63['detach'](),_0x334c63['isCollapsed']||'$graveyard'==_0x334c63['root']['rootName'])return null;let _0x3144d1=null,_0x4a3cc5=_0x334c63['start'],_0x3d65ce=_0x334c63['end'];const _0x7a7ea2=this['_findSuggestions'](_0x334c63,'deletion');for(const {suggestion:_0xd5aa8e,meta:_0x308c2d}of _0x7a7ea2){const _0x1d39cc=this['_model']['createRange'](_0x4a3cc5,_0x3d65ce);if(_0x308c2d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x308c2d['containsRangeInObject']&&!_0x308c2d['isInsideObject'])){if(_0xd5aa8e['isMultiRange']){if(!Lt(_0xd5aa8e,_0x3e5b24))continue;let _0x2a168f=!0x0;for(const _0x21d7ff of _0xd5aa8e['getRanges']()){if(_0x21d7ff['containsRange'](_0x1d39cc,!0x0))return _0xd5aa8e;_0x1d39cc['containsRange'](_0x21d7ff)||(_0x2a168f=!0x1);}_0x2a168f&&_0xd5aa8e['discard']();}else{const _0x159af3=_0xd5aa8e['getFirstRange']();if(_0x159af3['containsRange'](_0x1d39cc,!0x0))return _0xd5aa8e;if(!Lt(_0xd5aa8e,_0x3e5b24)){_0x1d39cc['containsRange'](_0x159af3)?_0xd5aa8e['removeMarkers']():_0x159af3['containsPosition'](_0x4a3cc5)?_0x4a3cc5=_0x159af3['end']:_0x159af3['containsPosition'](_0x3d65ce)&&(_0x3d65ce=_0x159af3['start']);continue;}_0x4a3cc5=_0x4a3cc5['isBefore'](_0x159af3['start'])?_0x4a3cc5:_0x159af3['start'],_0x3d65ce=_0x3d65ce['isAfter'](_0x159af3['end'])?_0x3d65ce:_0x159af3['end'],_0x3e5b24=Object['assign']({},_0xd5aa8e['attributes']),_0x3144d1?_0x159af3['start']['isBefore'](_0x3144d1['getFirstRange']()['start'])?(_0x3144d1['removeMarkers'](),_0x3144d1=_0xd5aa8e):_0xd5aa8e['removeMarkers']():_0x3144d1=_0xd5aa8e;}}}if(_0x3144d1)return this['_setSuggestionRange'](_0x3144d1,this['_model']['createRange'](_0x4a3cc5,_0x3d65ce)),_0x3144d1;{const _0x5470c2=_0x424b6d(),_0x3786fa=this['_model']['createRange'](_0x4a3cc5,_0x3d65ce),_0x53e814=_0x334445['id'],_0x3567e3=_0x2bc926?'deletion:'+_0x2bc926:'deletion',_0x174925=this['_setSuggestionData']({'id':_0x5470c2,'type':_0x3567e3,'createdAt':new Date(),'authorId':_0x53e814,'attributes':_0x3e5b24});return this['_addSuggestionMarker'](_0x3567e3,_0x5470c2,_0x53e814,_0x3786fa),_0x174925;}}['markMultiRangeDeletion'](_0x2cd572,_0x19ec0b='multi',_0x409274={}){const _0x445720=this['editor']['plugins']['get']('Users')['me'],_0x53c61f=_0x2cd572['map'](_0x584f8c=>new _0x192ba9(_0x584f8c['start'],_0x584f8c['end'])),_0x4ec38e=new Set();for(const {suggestion:_0x3e3932,meta:_0x2c9d17}of this['_findSuggestions'](_0x53c61f,'insertion'))_0x2c9d17['isOwn']&&!_0x2c9d17['isNextTo']&&_0x4ec38e['add'](_0x3e3932);for(const _0x128248 of _0x4ec38e)if(_0x128248['isMultiRange']){const _0x54c7f9=_0x128248['getRanges']();(!_0x128248['attributes']||!_0x128248['attributes']['skipNestingCheck'])&&(_0x54c7f9['every'](_0x360634=>_0x53c61f['some'](_0x453a39=>_0x453a39['containsRange'](_0x360634,!0x0)))&&_0x128248['discard']());if(_0x53c61f['every'](_0x3a1054=>_0x54c7f9['some'](_0x217720=>_0x217720['containsRange'](_0x3a1054,!0x0)))){const _0x52269e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19ec0b,'accept');return this['forceDefaultExecution'](()=>_0x52269e(_0x2cd572,null,_0x409274)),null;}}else{const _0x167378=_0x128248['getFirstRange']();_0x53c61f['some'](_0x199615=>_0x199615['containsRange'](_0x167378,!0x0))&&_0x128248['discard']();if(_0x53c61f['every'](_0xf8bbb0=>_0x167378['containsRange'](_0xf8bbb0,!0x0))){const _0x417ad4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19ec0b,'accept');return this['forceDefaultExecution'](()=>_0x417ad4(_0x53c61f,null,_0x409274)),null;}}const _0x10309a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19ec0b,'join');let _0x868c79=null;for(const _0x224930 of this['getSuggestions']())if(_0x224930['author']['id']==_0x445720['id']&&_0x224930['isInContent']&&'deletion'==_0x224930['type']&&_0x224930['subType']==_0x19ec0b&&Lt(_0x224930,_0x409274)&&(_0x10309a(_0x224930['getRanges'](),_0x53c61f)||_0x10309a(_0x53c61f,_0x224930['getRanges']()))){if(_0x868c79){if(_0x224930['commentThread']&&_0x224930['commentThread']['length'])continue;for(const _0xfb72f1 of _0x224930['getRanges']())_0x868c79['isIntersectingWithRange'](_0xfb72f1)||_0x868c79['addRange'](_0xfb72f1);_0x224930['removeMarkers']();}else{_0x868c79=_0x224930;for(const _0x15bf7b of _0x53c61f)_0x224930['isIntersectingWithRange'](_0x15bf7b)||_0x224930['addRange'](_0x15bf7b);}}if(_0x868c79)return _0x868c79;_0x4ec38e['clear']();for(const {suggestion:_0x4bd48a,meta:_0x580302}of this['_findSuggestions'](_0x53c61f,'deletion'))_0x580302['isOwn']&&(this['_mergeNestedSuggestions']||!_0x580302['containsRangeInObject']&&!_0x580302['isInsideObject'])&&Lt(_0x4bd48a,_0x409274)&&_0x4ec38e['add'](_0x4bd48a);for(const _0x5b9e18 of _0x4ec38e){const _0x27f2fc=_0x5b9e18['getRanges']();if(!_0x409274||!_0x409274['skipNestingCheck']){if(_0x53c61f['every'](_0x1224fe=>_0x27f2fc['some'](_0x26bd18=>_0x26bd18['containsRange'](_0x1224fe,!0x0))))return _0x5b9e18;}(!_0x5b9e18['attributes']||!_0x5b9e18['attributes']['skipNestingCheck'])&&(_0x27f2fc['every'](_0x221f19=>_0x53c61f['some'](_0x3cd671=>_0x3cd671['containsRange'](_0x221f19,!0x0)))&&_0x5b9e18['discard']());}const _0x1fb872=_0x424b6d(),_0x4a39f5=_0x445720['id'],_0x390c84='deletion:'+_0x19ec0b,_0x41c4bc=this['_setSuggestionData']({'id':_0x1fb872,'type':_0x390c84,'createdAt':new Date(),'authorId':_0x4a39f5,'attributes':_0x409274});for(const _0x65f24d of _0x53c61f)_0x65f24d['detach'](),_0x65f24d['isCollapsed']||'$graveyard'==_0x65f24d['root']['rootName']||this['_addSuggestionMarker'](_0x390c84,_0x1fb872,_0x4a39f5,_0x65f24d,u['getMultiRangeId']());return _0x41c4bc;}['markAttributeChange'](_0xe14108,_0x3a286a,_0x42e965,_0x216af0,_0x15ab42){if(_0xe14108['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3e24e5=this['editor']['plugins']['get']('Users')['me']['id'],_0x46b1ad=Array['from'](this['_suggestions']['values']())['filter'](_0x19f45d=>'attribute'==_0x19f45d['type']&&_0x19f45d['data']['key']==_0x3a286a&&_0x19f45d['isIntersectingWithRange'](_0xe14108));if('default'===this['_trackFormatChanges']){const _0x521732=this['_findSuggestions'](_0xe14108,'insertion')['filter'](({meta:_0x4d7b7d})=>_0x4d7b7d['isOwn']&&!_0x4d7b7d['isInsideObject']&&!_0x4d7b7d['isNextTo'])['map'](({suggestion:_0x4f2bb7})=>_0x4f2bb7);_0x46b1ad['unshift'](..._0x521732);}const _0x279ac4=new Map([[_0xe14108,_0x42e965]]);for(const _0x571778 of _0x46b1ad){const _0x207ed7='attribute'==_0x571778['type']?_0x571778['data']['oldValue']:void 0x0,_0x4955c3=_0x571778['getFirstRange'](),_0x31545e=Array['from'](_0x279ac4['keys']())['find'](_0x3a02fd=>_0x3a02fd['isIntersecting'](_0x4955c3));if(!_0x31545e)continue;const _0x222e3f=_0x31545e['getDifference'](_0x4955c3);this['_isBlockAttribute'](_0x3a286a)&&'insertion'==_0x571778['type']&&0x0!=_0x222e3f['length']||(_0x279ac4['delete'](_0x31545e),_0x222e3f['forEach'](_0x585688=>{_0x279ac4['set'](_0x585688,_0x42e965);}),'insertion'!=_0x571778['type']&&_0x207ed7!=_0x216af0&&_0x279ac4['set'](_0x31545e['getIntersection'](_0x4955c3),_0x207ed7));}const _0x55aa04=[];for(const [_0xf7e4ec,_0x28adc6]of _0x279ac4){const _0x43dd62=_0x424b6d(),_0x3fbe70={'key':_0x3a286a,'oldValue':_0x28adc6,'newValue':_0x216af0};_0x3a286a['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':_0x3a286a});const _0x3b4cf3=('attribute:'+(_0x3a286a+'|'+Ot({'newValue':_0x216af0})))['substring'](0x0,0x3c),_0x2589b3=this['_setSuggestionData']({'id':_0x43dd62,'type':_0x3b4cf3,'data':_0x3fbe70,'createdAt':new Date(),'authorId':_0x3e24e5,'attributes':_0x15ab42});_0x55aa04['push'](_0x2589b3),this['_addSuggestionMarker'](_0x3b4cf3,_0x43dd62,_0x3e24e5,_0xf7e4ec);}return _0x55aa04;}['enableDefaultAttributesIntegration'](_0x5f2717){this['enableCommand'](_0x5f2717,(_0x34f229,..._0x12ef4e)=>{this['_recordAttributeChanges'](()=>{_0x34f229(..._0x12ef4e);});});}['registerBlockAttribute'](_0x758efd){this['_blockAttributeKeys']['add'](_0x758efd);}['registerInlineAttribute'](_0x5a11c9){this['_inlineAttributeKeys']['add'](_0x5a11c9);}['_getAttributeKey'](_0x2afdaa){return'attribute'==_0x2afdaa['type']?_0x2afdaa['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2f29a1,_0x1bc61a){const _0x33f8a9=_0x2f29a1['getFirstMarker']();this['_model']['change'](_0x4ef469=>{_0x4ef469['updateMarker'](_0x33f8a9,{'range':_0x1bc61a});});}['_addThreadToSuggestion'](_0x5a3354){const _0x18ec5d=_0x5a3354['id'],_0x3e06f1=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x18ec5d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3e06f1,'threadId':_0x18ec5d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x525915=this['_commentsRepository']['getCommentThread'](_0x18ec5d);_0x525915['unbind']('isRemovable'),_0x525915['isRemovable']=!0x1,_0x5a3354['commentThread']=_0x525915;}['_checkSuggestionCorrectness'](_0xb30f5b,_0x230cd0,_0x59d916,_0xe8f10e){if(_0xb30f5b['type']!=_0x230cd0||_0xb30f5b['subType']!=_0x59d916||_0xb30f5b['creator']['id']!=_0xe8f10e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x52dd32('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5e1225,_0xd8f14a){const _0x3b83d1=_0x5e1225['getFirstRange']();if(_0xd8f14a['isEqual'](_0x3b83d1))_0x5e1225['removeMarkers']();else{if(_0x3b83d1['containsRange'](_0xd8f14a)){const _0x5699b8=this['_model']['createPositionAt'](_0xd8f14a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5e1225,this['_model']['createRange'](_0x3b83d1['start'],_0x5699b8));const _0x3a4c2e=_0x424b6d(),_0x9fcf57=_0x5e1225['creator']['id'],_0x1f0284=_0x5e1225['type']+':'+_0x5e1225['subType'];this['_setSuggestionData']({'id':_0x3a4c2e,'type':_0x1f0284,'createdAt':new Date(),'authorId':_0x9fcf57,'data':_0x5e1225['data'],'attributes':_0x5e1225['attributes']});const _0x1c0454=this['_model']['createPositionAt'](_0xd8f14a['end']['parent'],'after'),_0x2a687e=this['_model']['createRange'](_0x1c0454,_0x3b83d1['end']);this['_addSuggestionMarker'](_0x1f0284,_0x3a4c2e,_0x9fcf57,_0x2a687e);}else{if(_0x3b83d1['containsPosition'](_0xd8f14a['start'])){const _0x2ddf45=this['_model']['createPositionAt'](_0xd8f14a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5e1225,this['_model']['createRange'](_0x3b83d1['start'],_0x2ddf45));}else{const _0x1c0248=this['_model']['createPositionAt'](_0xd8f14a['end']['parent'],'after');this['_setSuggestionRange'](_0x5e1225,this['_model']['createRange'](_0x1c0248,_0x3b83d1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1b87c6){for(const {suggestion:_0x13f693,meta:_0x5b087d}of this['_findSuggestions'](_0x1b87c6,'insertion')){if(!_0x5b087d['isOwn'])continue;const _0x7187bf=_0x13f693['getRanges']();for(const _0x3ff719 of _0x7187bf)if(!_0x1b87c6['getDifference'](_0x3ff719)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x38ed6d){const _0x5cdeed=this['editor']['plugins']['get']('Users')['getUser'](_0x38ed6d);if(!_0x5cdeed)throw new _0x52dd32('track-changes-user-not-found',this);return _0x5cdeed;}['_getExternalAuthor'](_0xb38584){const _0x56d6a3=this['editor']['plugins']['get']('Users'),_0x25a51b=_0x390b9d('external:'+_0xb38584),_0x50734b=_0x56d6a3['getUser'](_0x25a51b);return _0x50734b||_0x56d6a3['addUser']({'id':_0x25a51b,'name':_0xb38584});}['_createSuggestion'](_0x2d0931,_0x3049c8,_0x19f54a,_0x96dc50,_0x3ce390){const _0x13c08d=this['_getAuthorFromId'](_0x96dc50),_0x57f1e5=this['_suggestionFactory']['buildSuggestion'](_0x2d0931,_0x3049c8,_0x19f54a,_0x13c08d,_0x3ce390,_0x3d83dc=>{this['_updateSuggestionData'](_0x19f54a,{'attributes':_0x3d83dc});const _0x2372a4=this['getSuggestion'](_0x19f54a);this['_joinWithAdjacentSuggestions'](new Set([_0x2372a4])),this['_refreshSuggestionsChain'](new Set([_0x2372a4]));});return this['listenTo'](_0x57f1e5,'accept',()=>{this['_updateSuggestionData'](_0x19f54a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x57f1e5,'discard',()=>{this['_updateSuggestionData'](_0x19f54a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x19f54a,_0x57f1e5),this['_suggestionState']['set'](_0x57f1e5,'notReady'),_0x57f1e5;}['_splitMarkerName'](_0x5e2cb1){const _0x4108b7=_0x5e2cb1['split'](':');return{'group':_0x4108b7[0x0],'type':_0x4108b7[0x1],'subType':_0x4108b7['length']>=0x5?_0x4108b7[0x2]:null,'id':_0x4108b7['length']<0x5?_0x4108b7[0x2]:_0x4108b7[0x3],'authorId':_0x4108b7['length']<0x5?_0x4108b7[0x3]:_0x4108b7[0x4],'markerCount':0x6==_0x4108b7['length']?_0x4108b7[0x5]:null};}['_breakSuggestionMarker'](_0xf6463e,_0x34092b,_0x174395){const _0x3174d4=_0xf6463e['getFirstRange'](),_0x1bdba3=_0x3174d4['start'],_0x35bcd2=_0x3174d4['end'];this['_setSuggestionRange'](_0xf6463e,this['_model']['createRange'](_0x1bdba3,_0x34092b));const _0x4a98b9=_0x424b6d(),_0x47f873=_0xf6463e['creator']['id'],_0x2b5124=_0xf6463e['type']+(_0xf6463e['subType']?':'+_0xf6463e['subType']:'');this['_setSuggestionData']({'id':_0x4a98b9,'type':_0x2b5124,'createdAt':new Date(),'authorId':_0x47f873,'originalSuggestionId':_0xf6463e['id'],'attributes':_0xf6463e['attributes'],'data':_0xf6463e['data']});const _0x5c1aaa=this['_getAttributeKey'](_0xf6463e);('formatBlock'==_0xf6463e['type']||_0x5c1aaa&&this['_isBlockAttribute'](_0x5c1aaa))&&(_0x174395=this['_model']['createPositionBefore'](_0x174395['parent'])),this['_addSuggestionMarker'](_0x2b5124,_0x4a98b9,_0x47f873,this['_model']['createRange'](_0x174395,_0x35bcd2));}['_findSuggestions'](_0x334549,_0x247988=null){const _0x3e09f8=[],_0x2b8dfc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x334549)||(_0x334549=[_0x334549]);for(const _0x5f4bc6 of this['getSuggestions']()){if(!_0x5f4bc6['isInContent'])continue;if(_0x247988&&_0x5f4bc6['type']!=_0x247988)continue;let _0x5f06ad=!0x1;for(const _0x108b7e of _0x5f4bc6['getRanges']()){for(const _0x37fc4f of _0x334549){const _0x1d2656=_0x37fc4f['start']['isEqual'](_0x108b7e['end'])||_0x37fc4f['end']['isEqual'](_0x108b7e['start']);if(_0x1d2656||_0x37fc4f['getIntersection'](_0x108b7e)){const _0x367a8a=_0x37fc4f['containsRange'](_0x108b7e)&&Rt(this['_model']['schema'],_0x108b7e['start'],_0x37fc4f),_0x54328b=_0x108b7e['containsRange'](_0x37fc4f)&&Rt(this['_model']['schema'],_0x37fc4f['start'],_0x108b7e);_0x3e09f8['push']({'suggestion':_0x5f4bc6,'meta':{'isOwn':_0x2b8dfc==_0x5f4bc6['author'],'isNextTo':_0x1d2656,'isInsideObject':_0x367a8a,'containsRangeInObject':_0x54328b}}),_0x5f06ad=!0x0;break;}}if(_0x5f06ad)break;}}return _0x3e09f8;}['_addSuggestionMarker'](_0x1d42d9,_0xd0ed8f,_0x293a58,_0xf053e8,_0x506a0a){this['_model']['change'](_0x49b437=>{let _0xec86b5='suggestion:'+_0x1d42d9+':'+_0xd0ed8f+':'+_0x293a58;_0x506a0a&&(_0xec86b5=_0xec86b5+':'+_0x506a0a),_0x49b437['addMarker'](_0xec86b5,{'range':_0xf053e8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1b888b){const _0x20ea08=_0x1b888b['previous'],_0x23c0e3=_0x1b888b['next'];_0x1b888b['previous']=null,_0x1b888b['next']=null,null!=_0x20ea08&&_0x20ea08['next']==_0x1b888b&&(_0x20ea08['next']=_0x23c0e3),null!=_0x23c0e3&&_0x23c0e3['previous']==_0x1b888b&&(_0x23c0e3['previous']=_0x20ea08),'ready'==this['_suggestionState']['get'](_0x1b888b)&&(this['_suggestionState']['set'](_0x1b888b,'removed'),this['fire']('suggestionUnloaded',_0x1b888b,_0x20ea08,_0x23c0e3));}['_setSuggestionData'](_0x266a0f){const _0x4ec2b6=_0x266a0f['id'],_0x1266bb=this['addSuggestionData'](_0x266a0f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2cfbb8=this['editor']['plugins']['get']('PendingActions'),_0x4814c1=_0x1266bb['hasComments'],_0x3af369=_0x1266bb['subType']?_0x1266bb['type']+':'+_0x1266bb['subType']:_0x1266bb['type'],_0x4e59a1=this['editor']['locale'],_0x9d085c=_0x2cfbb8['add'](o(_0x4e59a1,'PENDING_ACTION_SUGGESTION')),_0x83af14={'id':_0x4ec2b6,'type':_0x3af369,'hasComments':_0x4814c1,'data':_0x266a0f['data']||null,'originalSuggestionId':_0x266a0f['originalSuggestionId']||null,'attributes':_0x1266bb['attributes']};this['_adapter']['addSuggestion'](_0x83af14)['then'](_0x1f3021=>{_0x1266bb['_saved']=!0x0,_0x2cfbb8['remove'](_0x9d085c),_0x1f3021&&_0x1f3021['createdAt']&&(this['_suggestions']['get'](_0x4ec2b6)['createdAt']=_0x1f3021['createdAt']);})['catch'](_0x8d224a=>{throw _0x47aad1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1266bb['discard']();}),_0x1266bb['stopListening'](),this['_suggestions']['delete'](_0x1266bb['id']),this['_suggestionState']['delete'](_0x1266bb),_0x8d224a;});}return _0x1266bb;}['_isBlockAttribute'](_0x385f4a){return this['_blockAttributeKeys']['has'](_0x385f4a);}['_updateSuggestionData'](_0x29a801,_0x4758d2){const _0xf6646=this['editor']['plugins']['get']('PendingActions'),_0x3fd4d7=this['getSuggestion'](_0x29a801);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3fd4d7['_saved']){const _0x5960ca=_0xf6646['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x29a801,_0x4758d2)['then'](()=>{_0xf6646['remove'](_0x5960ca);});}else _0x3fd4d7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x29a801,_0x4758d2);});}}['_getSuggestionData'](_0x323dc5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x52dd32('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x323dc5);}['_handleNewSuggestionMarker'](_0x5b8767){const {id:_0x493355,type:_0x5cf32c,subType:_0x39aa71,authorId:_0x3983f0}=this['_splitMarkerName'](_0x5b8767),_0x359302=this['_suggestions']['get'](_0x493355)||this['_createSuggestion'](_0x5cf32c,_0x39aa71,_0x493355,_0x3983f0,{});switch(this['_checkSuggestionCorrectness'](_0x359302,_0x5cf32c,_0x39aa71,_0x3983f0),this['_suggestionState']['get'](_0x359302)){case'notReady':this['_getSuggestionData'](_0x493355)['then'](_0x438043=>{let _0x35a50e=Promise['resolve']();_0x438043['hasComments']&&(_0x35a50e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x493355})),_0x35a50e['then'](()=>{this['addSuggestionData'](_0x438043)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x359302,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x493355,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x359302,'ready'),this['fire']('suggestionLoaded',_0x359302);break;case'ready':this['fire']('suggestionChanged',_0x359302);}return _0x359302['addMarkerName'](_0x5b8767),_0x359302;}['_refreshSuggestionsChain'](_0x601d9e){const _0x454386=Array['from'](_0x601d9e),_0x9eb795=_0x454386['filter'](_0x365548=>'attribute'==_0x365548['type']);this['_refreshAttributeSuggestionsChain'](_0x9eb795);const _0x5b6387=_0x454386['filter'](_0x29d68a=>!_0x29d68a['isMultiRange']&&'attribute'!=_0x29d68a['type']),_0x4d736d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x368f21=>!_0x368f21['isMultiRange']&&'attribute'!=_0x368f21['type']),_0x280dd2=_0x4d736d['filter'](_0x4554b8=>!_0x601d9e['has'](_0x4554b8)),_0x1876da=new Map(_0x4d736d['map'](_0x3a56fb=>[_0x3a56fb,this['_suggestionFactory']['getSuggestionCallback'](_0x3a56fb['type'],_0x3a56fb['subType'],'chain')])),_0x1d26b9=new Map(_0x4d736d['map'](_0x1bda7b=>[_0x1bda7b,_0x1bda7b['getFirstRange']()])),_0x161188=new Set(),_0x53efd2=new Set();for(let _0x29d78f=0x0;_0x29d78f<_0x5b6387['length'];_0x29d78f++)_0x8f9340(_0x5b6387[_0x29d78f],_0x5b6387,_0x29d78f+0x1);for(let _0x36f427=0x0;_0x36f427<_0x5b6387['length'];_0x36f427++)_0x8f9340(_0x5b6387[_0x36f427],_0x280dd2,0x0);const _0x15db23=new Set();for(let _0x20b3ec=0x0;_0x20b3ec<_0x5b6387['length'];_0x20b3ec++){const _0x581c41=_0x5b6387[_0x20b3ec];!_0x53efd2['has'](_0x581c41)&&_0x581c41['previous']&&(_0x15db23['add'](_0x581c41['previous']),_0x581c41['previous']['next']===_0x581c41&&(_0x581c41['previous']['next']=null),_0x581c41['previous']=null),!_0x161188['has'](_0x581c41)&&_0x581c41['next']&&(_0x15db23['add'](_0x581c41['next']),_0x581c41['next']['previous']===_0x581c41&&(_0x581c41['next']['previous']=null),_0x581c41['next']=null);}function _0x8f9340(_0x1dff0d,_0x1b9527,_0x415ddc){for(let _0x1322a4=_0x415ddc;_0x1322a4<_0x1b9527['length'];_0x1322a4++){const _0x25f595=_0x37456e(_0x1dff0d,_0x1b9527[_0x1322a4]);_0x25f595&&(_0x25f595[0x0]['next']=_0x25f595[0x1],_0x25f595[0x1]['previous']=_0x25f595[0x0],_0x161188['add'](_0x25f595[0x0]),_0x53efd2['add'](_0x25f595[0x1]));}}function _0x37456e(_0x337fbb,_0x47a397){if(_0x337fbb['author']['id']!==_0x47a397['author']['id'])return null;const _0x4256ab=_0x1876da['get'](_0x337fbb)(_0x337fbb,_0x47a397,_0x1d26b9['get'](_0x337fbb),_0x1d26b9['get'](_0x47a397));if(!_0x4256ab)return null;return _0x1876da['get'](_0x47a397)(_0x337fbb,_0x47a397,_0x1d26b9['get'](_0x337fbb),_0x1d26b9['get'](_0x47a397))?_0x4256ab[0x1]['commentThread']&&_0x4256ab[0x1]['commentThread']['length']?null:_0x4256ab:null;}_0x15db23['size']&&this['_refreshSuggestionsChain'](_0x15db23);}['_refreshAttributeSuggestionsChain'](_0x393fbb){if(0x0==_0x393fbb['length'])return;const _0x2d4c58=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b4048=>'attribute'==_0x2b4048['type']&&_0x2b4048['_isDataLoaded']),_0x44961c=[],_0x276429=new Map();for(const _0x571ce7 of _0x2d4c58){const _0x2e4a21=_0x390b9d(_0x571ce7['attributes']);_0x276429['has'](_0x2e4a21)||(_0x276429['set'](_0x2e4a21,_0x44961c['length']),_0x44961c['push']([]));const _0x6ed63d=_0x276429['get'](_0x2e4a21);_0x44961c[_0x6ed63d]['push'](_0x571ce7);}!(function(){_0x44961c['sort']((_0x5f2343,_0x25e394)=>{const _0x3fc40f=_0x5f2343[0x0]['createdAt'],_0x56baad=_0x25e394[0x0]['createdAt'];return _0x3fc40f==_0x56baad?_0x5f2343[0x0]['attributes']['groupId']<_0x25e394[0x0]['attributes']['groupId']?-0x1:0x1:_0x3fc40f<_0x56baad?-0x1:0x1;});for(const _0x2621dd of _0x44961c)_0x2621dd['sort']((_0x38286a,_0x50a790)=>_0x38286a['id']<_0x50a790['id']?-0x1:0x1);}());for(let _0x2899a3=0x0;_0x2899a3<_0x44961c['length'];_0x2899a3++){if(0x0==_0x44961c[_0x2899a3]['length'])continue;const _0x5de595=[];for(let _0xf478b7=_0x2899a3+0x1;_0xf478b7<_0x44961c['length'];_0xf478b7++)0x0!=_0x44961c[_0xf478b7]['length']&&_0x3f2416(_0x44961c[_0x2899a3],_0x44961c[_0xf478b7])&&_0x5de595['push'](_0xf478b7);for(const _0x57932b of _0x5de595)_0x44961c[_0x2899a3]=_0x44961c[_0x2899a3]['concat'](_0x44961c[_0x57932b]),_0x44961c[_0x57932b]=[];}for(const _0x391979 of _0x44961c)for(let _0x140e56=0x0;_0x140e56<_0x391979['length'];_0x140e56++){const _0x5272ea=_0x391979[_0x140e56+0x1]||null;_0x391979[_0x140e56]['next']!==_0x5272ea&&(_0x391979[_0x140e56]['next']=_0x5272ea);}for(const _0xf246c0 of _0x44961c)for(let _0x29ae43=0x0;_0x29ae43<_0xf246c0['length'];_0x29ae43++){const _0x152612=_0xf246c0[_0x29ae43-0x1]||null;_0xf246c0[_0x29ae43]['previous']!==_0x152612&&(_0xf246c0[_0x29ae43]['previous']=_0x152612);}function _0x3f2416(_0x24bbb5,_0x2f6ae2){if(_0x24bbb5[0x0]['attributes']['groupId']!==_0x2f6ae2[0x0]['attributes']['groupId']&&_0x24bbb5[0x0]['author']!==_0x2f6ae2[0x0]['author'])return!0x1;if(!function(_0x48f8ff,_0x48f5d3){if(!_0x48f8ff['hasComments']&&!_0x48f5d3['hasComments'])return!0x0;if(_0x48f8ff['hasComments']&&_0x48f5d3['hasComments'])return!0x1;if(_0x48f8ff['hasComments']&&_0x48f5d3['createdAt']<_0x48f8ff['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x48f5d3['hasComments']&&_0x48f8ff['createdAt']<_0x48f5d3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x24bbb5[0x0],_0x2f6ae2[0x0]))return!0x1;const _0x51cdb9=Bt(_0x24bbb5[0x0]['attributes'],'groupId'),_0x128fae=Bt(_0x2f6ae2[0x0]['attributes'],'groupId');if(!_0x3bb6dd(_0x51cdb9,_0x128fae))return!0x1;return!!_0x24bbb5['every'](_0x74d060=>_0x2f6ae2['some'](_0x272600=>_0x74d060['getFirstRange']()['isEqual'](_0x272600['getFirstRange']())))&&_0x2f6ae2['every'](_0x534914=>_0x24bbb5['some'](_0x4c9fe3=>_0x534914['getFirstRange']()['isEqual'](_0x4c9fe3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x37391d){const _0x5809e6=Array['from'](_0x37391d),_0x1be19a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2a6b11=_0x1be19a['filter'](_0x5810cb=>!_0x37391d['has'](_0x5810cb)),_0x13149a=new Map(_0x5809e6['map'](_0x28f22b=>[_0x28f22b,this['_suggestionFactory']['getSuggestionCallback'](_0x28f22b['type'],_0x28f22b['subType'],'join')])),_0x360876=new Map(_0x1be19a['map'](_0x7e1dac=>[_0x7e1dac,_0x7e1dac['getRanges']()]));for(let _0x57ef5d=0x0;_0x57ef5d<_0x5809e6['length'];_0x57ef5d++){if(_0x489a58(this,_0x5809e6[_0x57ef5d],_0x5809e6,_0x57ef5d+0x1))return!0x0;}for(let _0x47985e=0x0;_0x47985e<_0x5809e6['length'];_0x47985e++){if(_0x489a58(this,_0x5809e6[_0x47985e],_0x2a6b11,0x0))return!0x0;}return!0x1;function _0x489a58(_0x14f903,_0x4bba9e,_0x23e966,_0x277355){for(let _0x4e354b=_0x277355;_0x4e354b<_0x23e966['length'];_0x4e354b++){const _0x3da400=_0x23e966[_0x4e354b];if(_0x3da400['type']!==_0x4bba9e['type']||_0x3da400['author']['id']!==_0x4bba9e['author']['id']||_0x3da400['subType']!==_0x4bba9e['subType'])continue;if(!Pt(_0x4bba9e,_0x3da400))continue;if('attribute'==_0x4bba9e['type']&&_0x4bba9e['data']['oldValue']!=_0x3da400['data']['oldValue'])continue;if('attribute'==_0x4bba9e['type']&&_0x14f903['_isBlockAttribute'](_0x4bba9e['data']['key']))continue;if('formatBlock'==_0x4bba9e['type']){const _0x5e3c3c=_0x14f903['editor']['model'],_0x3bd5b6=_0x4bba9e['getContainedElement']();if(_0x3bd5b6&&(_0x5e3c3c['schema']['isObject'](_0x3bd5b6)||_0x5e3c3c['schema']['isLimit'](_0x3bd5b6)))continue;}const _0x12114f=_0x13149a['get'](_0x4bba9e),_0x974ef0=_0x360876['get'](_0x4bba9e),_0x144b60=_0x360876['get'](_0x3da400),_0x419c40=_0x4bba9e['commentThread']&&_0x4bba9e['commentThread']['length'],_0x1b226a=_0x3da400['commentThread']&&_0x3da400['commentThread']['length'];if(!_0x419c40&&_0x12114f(_0x144b60,_0x974ef0))return _0x14f903['_joinSuggestions'](_0x3da400,_0x4bba9e),_0x360876['delete'](_0x4bba9e),!0x0;if(!_0x1b226a&&_0x12114f(_0x974ef0,_0x144b60))return _0x14f903['_joinSuggestions'](_0x4bba9e,_0x3da400),_0x360876['delete'](_0x3da400),!0x0;}return!0x1;}}['_joinSuggestions'](_0x8da29e,_0x509a57){if(_0x8da29e['isMultiRange']){for(const _0x19b33c of _0x509a57['getRanges']())_0x8da29e['addRange'](_0x19b33c);}else{const _0xdb5766=_0x509a57['getFirstRange']()['end'];this['_setSuggestionRange'](_0x8da29e,this['_model']['createRange'](_0x8da29e['getFirstRange']()['start'],_0xdb5766));}_0x509a57['removeMarkers']();}['_getMarkerAnnouncementText'](_0x181490,_0xa4664b){const _0x3d6198=_0x181490['startsWith']('format')||_0x181490['startsWith']('attribute')?'FORMATTING':_0x181490['toUpperCase']();return o(this['editor']['locale'],_0xa4664b+'_'+_0x3d6198+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5006f8=this['editor'];if(!_0x5006f8['ui'])return;const {ariaLiveAnnouncer:_0x2cfacd}=_0x5006f8['ui'];_0x40c6a3(this['_model'],({left:_0x1ed9e8,entered:_0x3e1e97})=>{for(const _0x5d8228 of _0x1ed9e8){const {group:_0x34226d,type:_0x7ef7df}=this['_splitMarkerName'](_0x5d8228['name']);if('suggestion'===_0x34226d){_0x2cfacd['announce'](this['_getMarkerAnnouncementText'](_0x7ef7df,'LEAVE'));break;}}for(const _0x5ba5ea of _0x3e1e97){const {group:_0x4d63e9,type:_0x374089}=this['_splitMarkerName'](_0x5ba5ea['name']);if('suggestion'===_0x4d63e9){_0x2cfacd['announce'](this['_getMarkerAnnouncementText'](_0x374089,'ENTER'));break;}}});}['_processAttributeChanges'](_0x2ff14e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x176fb6=this['editor'],_0x19d81e=_0x176fb6['model']['document']['differ']['getChanges']();if(0x0==_0x19d81e['length'])return!0x1;const _0x1ca03e=[],_0x2a859f=_0x19d81e['filter'](_0xe3157a=>'attribute'==_0xe3157a['type']),_0x457e27=_0x19d81e['filter'](_0x464056=>'insert'==_0x464056['type']&&'$text'!=_0x464056['name']),_0x3fc510=_0x19d81e['filter'](_0x186038=>'remove'==_0x186038['type']&&'$text'!=_0x186038['name']);for(const _0x4b4ec2 of _0x2a859f)_0x1ca03e['push']({'key':_0x4b4ec2['attributeKey'],'newValue':_0x4b4ec2['attributeNewValue'],'oldValue':_0x4b4ec2['attributeOldValue'],'range':Ut(_0x4b4ec2['range'],_0x176fb6['model'])});for(const _0x452718 of _0x457e27){const _0x364d95=_0x3fc510['find'](_0x5298b0=>_0x5298b0['position']['isEqual'](_0x452718['position']));_0x364d95&&_0x1ca03e['push']({'key':m,'newValue':_0x452718['name'],'oldValue':_0x364d95['name'],'range':_0x176fb6['model']['createRangeOn'](_0x452718['position']['nodeAfter'])});}return 0x0!=_0x1ca03e['length']&&this['_reduceExistingSuggestions'](_0x2ff14e,_0x1ca03e);}['_processAttributeSuggestions'](_0x15be5a){let _0x2a291e=!0x1;const _0x9dbd7d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x180446=>_0x180446['data']['newRange']&&_0x180446['name']['startsWith']('suggestion:attribute:'));for(const _0x2eaf9f of _0x9dbd7d){const {subType:_0x10c410,id:_0x466c9d}=this['_splitMarkerName'](_0x2eaf9f['name']),_0x333246=_0x10c410['split']('|')[0x0];for(const _0x1304cb of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1304cb['id']!=_0x466c9d&&'attribute'==_0x1304cb['type']&&_0x1304cb['data']&&_0x1304cb['data']['key']==_0x333246&&_0x1304cb['getFirstRange']()['isIntersecting'](_0x2eaf9f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1304cb,_0x2eaf9f['data']['newRange'],_0x15be5a),_0x2a291e=!0x0);}return _0x2a291e;}['_recordAttributeChanges'](_0x4d3940){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4d3940();}['_isRegisteredAttribute'](_0x33c3df){const _0x28988a=this['_isBlockAttribute'](_0x33c3df),_0x18f3d9=this['_inlineAttributeKeys']['has'](_0x33c3df);return _0x28988a||_0x18f3d9;}['_reduceExistingSuggestions'](_0x16a100,_0xe03865){if(0x0==_0xe03865['length'])return!0x1;let _0x1a981b=!0x1;for(const _0x267c12 of _0xe03865){const _0x573e32=this['_findSuggestions'](_0x267c12['range'],'attribute')['filter'](_0xdff64d=>!_0xdff64d['meta']['isNextTo'])['map'](_0x34ecc2=>_0x34ecc2['suggestion']),_0x54ffe1=_0x390b9d({'newValue':_0x267c12['newValue']});_0x573e32['filter'](_0x5d7d91=>{const [_0x2adc9d,_0x27cca9]=_0x5d7d91['subType']['split']('|');return _0x2adc9d==_0x267c12['key']&&_0x27cca9!=_0x54ffe1;})['forEach'](_0x28067e=>{this['_reduceSuggestionAttributeRange'](_0x28067e,_0x267c12['range'],_0x16a100),_0x1a981b=!0x0;});}return _0x1a981b;}['_reduceSuggestionAttributeRange'](_0x461b54,_0x5eef31,_0x82b07){const _0x499125=_0x461b54['getFirstRange']()['getDifference'](_0x5eef31);0x0!==_0x499125['length']?0x1!==_0x499125['length']?this['_breakSuggestionMarker'](_0x461b54,_0x5eef31['start'],_0x5eef31['end']):this['_setSuggestionRange'](_0x461b54,_0x499125[0x0]):_0x82b07['removeMarker'](_0x461b54['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1edcf6){this['_editor']=_0x1edcf6,this['_model']=_0x1edcf6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3b263c,_0x47889f,_0x2d6226,_0x582cf2,_0x467fe2,_0x2c08e6){return new u(this['_model'],{'type':_0x3b263c,'subType':_0x47889f,'id':_0x2d6226,'author':_0x582cf2,'creator':_0x582cf2,'attributes':_0x467fe2,'onAttributesChange':_0x2c08e6,'onAccept':(..._0x452f23)=>this['getSuggestionCallback'](_0x3b263c,_0x47889f,'accept')(..._0x452f23),'onDiscard':(..._0x689a88)=>this['getSuggestionCallback'](_0x3b263c,_0x47889f,'discard')(..._0x689a88)});}['registerCustomCallback'](_0x4684c0,_0x25faf5,_0x1786a4,_0x5f1509){const _0x2c18fb=_0x4684c0+':'+_0x25faf5+':'+_0x1786a4;this['_customCallbacks']['set'](_0x2c18fb,_0x5f1509);}['getSuggestionCallback'](_0x1fe44d,_0x178316,_0x3dff44){const _0x2c0d0a=_0x1fe44d+':'+_0x178316+':'+_0x3dff44;return this['_customCallbacks']['get'](_0x2c0d0a)||this['_defaultCallbacks']['get'](_0x1fe44d+':'+_0x3dff44);}['_registerDefaultCallbacks'](){const _0x43b209=()=>!0x1,_0x4b3311=_0xb3d851=>{_0xb3d851['sort']((_0xacd021,_0x1e73d4)=>_0xacd021['start']['isBefore'](_0x1e73d4['start'])?0x1:-0x1),this['_model']['change'](_0x4c7d8c=>{for(const _0x3bca51 of _0xb3d851){let _0x3a2627;_0x3a2627=_0x3bca51['end']['isAtEnd']&&_0x3bca51['end']['parent']==_0x3bca51['start']['nodeAfter']?_0x4c7d8c['createSelection'](_0x3bca51['start']['nodeAfter'],'on'):_0x4c7d8c['createSelection'](_0x3bca51),this['_model']['deleteContent'](_0x3a2627,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2b7346=(_0x283d98,_0x448e21)=>{_0x448e21&&this['_model']['change'](_0x10f37b=>{const {commandName:_0x41cab5,commandParams:_0x2c8a5f=[]}=_0x448e21,_0x33be94=_0x283d98['map'](_0x145b28=>(Tt(_0x145b28)&&(_0x145b28=this['_model']['createRange'](_0x145b28['end'])),_0x145b28))['filter'](_0x541924=>'$graveyard'!==_0x541924['root']['rootName']);if(_0x33be94['length']<0x1)return;const _0x50e3cc=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2da087=>_0x192ba9['fromRange'](_0x2da087));_0x10f37b['setSelection'](_0x33be94);for(const _0xf94a37 of this['_editor']['commands']['commands']())_0xf94a37['refresh']();_0x2c8a5f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x41cab5,..._0x2c8a5f);const _0x5c6d94=_0x50e3cc['filter'](_0x285066=>'$graveyard'!=_0x285066['root']['rootName']);_0x5c6d94['length']>0x0&&_0x10f37b['setSelection'](_0x5c6d94);for(const _0x462c69 of _0x50e3cc)_0x462c69['detach']();});},_0x45225f=(_0x4b539a,_0x5e104c)=>0x1==_0x4b539a['length']&&0x1==_0x5e104c['length']&&_0x4b539a[0x0]['end']['isEqual'](_0x5e104c[0x0]['start']),_0x2fd766=(_0x12ba1c,_0x153b92,_0x2ffadd,_0x23bbd8)=>Ft(_0x12ba1c,_0x153b92,_0x2ffadd,_0x23bbd8,this['_model'])?[_0x12ba1c,_0x153b92]:Ft(_0x153b92,_0x12ba1c,_0x23bbd8,_0x2ffadd,this['_model'])?[_0x153b92,_0x12ba1c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x43b209),this['_defaultCallbacks']['set']('insertion:discard',_0x4b3311),this['_defaultCallbacks']['set']('insertion:join',_0x45225f),this['_defaultCallbacks']['set']('insertion:chain',_0x2fd766),this['_defaultCallbacks']['set']('deletion:accept',_0x4b3311),this['_defaultCallbacks']['set']('deletion:discard',_0x43b209),this['_defaultCallbacks']['set']('deletion:join',_0x45225f),this['_defaultCallbacks']['set']('deletion:chain',_0x2fd766),this['_defaultCallbacks']['set']('formatInline:accept',_0x2b7346),this['_defaultCallbacks']['set']('formatInline:discard',_0x43b209),this['_defaultCallbacks']['set']('formatInline:join',_0x45225f),this['_defaultCallbacks']['set']('formatInline:chain',_0x43b209),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2b7346),this['_defaultCallbacks']['set']('formatBlock:discard',_0x43b209),this['_defaultCallbacks']['set']('formatBlock:join',_0x45225f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x43b209),this['_defaultCallbacks']['set']('attribute:accept',_0x43b209),this['_defaultCallbacks']['set']('attribute:discard',(_0x1f1d38,_0x49292d)=>{if(!_0x49292d)return;const _0x43c2bc=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x105997=>{if(_0x49292d['key']==m)for(const _0x254585 of _0x1f1d38){const _0x712133=_0x254585['start']['nodeAfter'],_0x4ec53e=_0x49292d['oldValue'];_0x105997['rename'](_0x712133,_0x4ec53e);}else{if(_0x43c2bc['_isBlockAttribute'](_0x49292d['key'])){for(const _0x1bf0f2 of _0x1f1d38)void 0x0!==_0x49292d['oldValue']?_0x105997['setAttribute'](_0x49292d['key'],_0x49292d['oldValue'],_0x1bf0f2['start']['nodeAfter']):_0x105997['removeAttribute'](_0x49292d['key'],_0x1bf0f2['start']['nodeAfter']);}else{for(const _0x3ba6c6 of _0x1f1d38)_0x49292d['oldValue']?_0x105997['setAttribute'](_0x49292d['key'],_0x49292d['oldValue'],_0x3ba6c6):_0x105997['removeAttribute'](_0x49292d['key'],_0x3ba6c6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x45225f);}}function Rt(_0x45c836,_0x4d3523,_0x43b0f0){for(const _0x42884c of _0x4d3523['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x42884c['root']==_0x42884c)return!0x1;if(!_0x43b0f0['containsItem'](_0x42884c))return!0x1;if(_0x45c836['isObject'](_0x42884c)||_0x45c836['isLimit'](_0x42884c))return!0x0;}return!0x1;}function Tt(_0x2bcac3){return _0x2bcac3['end']['parent']==_0x2bcac3['start']['nodeAfter']&&_0x2bcac3['end']['isAtStart'];}function Et(_0x51f116,_0x30c9ce,_0x194c94,_0x1e2d43){const _0x14ddbd=_0xd9c24c=>!_0xd9c24c['item']['is']('$textProxy')&&!_0x1e2d43['isObject'](_0xd9c24c['item']),_0x3080b4=_0x51f116['start']['getLastMatchingPosition'](_0x14ddbd),_0x3e9d7f=_0x51f116['end']['getLastMatchingPosition'](_0x14ddbd,{'direction':'backward'});return(!_0x51f116['start']['isEqual'](_0x3080b4)||!_0x51f116['end']['isEqual'](_0x3e9d7f))&&(_0x3080b4['isBefore'](_0x3e9d7f)?_0x194c94['updateMarker'](_0x30c9ce,{'range':_0x194c94['createRange'](_0x3080b4,_0x3e9d7f)}):_0x194c94['removeMarker'](_0x30c9ce),!0x0);}function Ot(_0x4e3da6){return _0x390b9d(_0x4e3da6);}function Vt(_0x174006){const _0x306581=_0x174006['start']['nodeAfter'];return _0x306581&&_0x306581['is']('element');}function Ut(_0x2c8629,_0xe9453e){return null==_0x2c8629['end']['nodeBefore']&&_0x2c8629['end']['parent']==_0x2c8629['start']['nodeAfter']?Gt(_0x2c8629['start']['nodeAfter'],_0xe9453e):_0x2c8629;}function Gt(_0x1d9301,_0x71c241){const _0x5e0267=_0x71c241['schema']['isObject'](_0x1d9301)||_0x71c241['schema']['isSelectable'](_0x1d9301);return _0x71c241['createRange'](_0x71c241['createPositionAt'](_0x1d9301,'before'),_0x5e0267?_0x71c241['createPositionAfter'](_0x1d9301):_0x71c241['createPositionAt'](_0x1d9301,'end'));}function Ft(_0x436755,_0x493aa8,_0x5eb0c5,_0x1cd739,_0x38799b){if(!Pt(_0x436755,_0x493aa8))return!0x1;if(_0x5eb0c5['end']['isEqual'](_0x1cd739['start']))return!0x0;if(_0x436755['type']!=_0x493aa8['type'])return!0x1;if(!_0x5eb0c5['end']['isTouching'](_0x1cd739['start']))return!0x1;const _0x164cf2=_0x38799b['createRange'](_0x5eb0c5['end'],_0x1cd739['start'])['getWalker']();for(const _0x1ef975 of _0x164cf2)if(['elementStart','elementEnd']['includes'](_0x1ef975['type'])&&_0x38799b['schema']['isLimit'](_0x1ef975['item']))return!0x1;return!0x0;}function Pt(_0x3b9e9a,_0x552c07){if(!_0x3b9e9a['_isDataLoaded']||!_0x552c07['_isDataLoaded'])return!0x1;const _0x59da1f=new Set(Object['keys'](_0x3b9e9a['attributes'])),_0x4f88ad=new Set(Object['keys'](_0x552c07['attributes']));if(_0x59da1f['delete']('groupId'),_0x4f88ad['delete']('groupId'),0x0==_0x59da1f['size']&&0x0==_0x4f88ad['size'])return!0x0;if(_0x59da1f['size']!=_0x4f88ad['size'])return!0x1;const _0x10ecb8={..._0x3b9e9a['attributes']},_0x5955ef={..._0x552c07['attributes']};return delete _0x10ecb8['groupId'],delete _0x5955ef['groupId'],JSON['stringify'](_0x10ecb8)==JSON['stringify'](_0x5955ef);}function Lt(_0x457bda,_0x502e80){const _0x3d6719=Ht(_0x457bda['attributes']),_0x4d1c8a=Ht(_0x502e80);if(!_0x457bda['_isDataLoaded'])return!0x1;for(const _0x39ea07 of Object['keys'](_0x4d1c8a))if(!_0x3bb6dd(_0x3d6719[_0x39ea07],_0x4d1c8a[_0x39ea07]))return!0x1;return!0x0;}function Ht(_0x5cc3d8){const _0xea774b=Object['assign']({},_0x5cc3d8);return delete _0xea774b['skipNestingCheck'],delete _0xea774b['tablePasteChainId'],_0xea774b;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0x54e6bb(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x538411,_0x3ed943,_0x8fbdec,_0x396f67){super(),this['model']=_0x3ed943,this['view']=_0x8fbdec,this['commentThreadController']=_0x396f67,this['_editor']=_0x538411,this['_acceptCommand']=_0x538411['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x538411['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4ec947,_0x51469b)=>_0x4ec947||_0x51469b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x12fa4f=>_0x12fa4f&&this['_editor']['model']['canEditAt'](_0x3ed943['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4b0c40=>_0x4b0c40&&this['_editor']['model']['canEditAt'](_0x3ed943['getRanges']())),this['_pendingAction']=null,_0x8fbdec['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x8fbdec,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x8fbdec,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x8fbdec,'change:isDirty',()=>{_0x8fbdec['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x43b255=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x43b255);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x3c0e4a{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x58a64a,_0x52d41d,_0x1bc1a7,_0x2210a2){super(_0x58a64a),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x52d41d['authoredAt']),this['bind']('authoredAt')['to'](_0x52d41d),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x52d41d,this['_localUser']=_0x1bc1a7,this['_config']=_0x2210a2,_0x2210a2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x165d60}=this['_config'];this['commentsListView']=new _0x165d60(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',_0x1d3a1a=>_0x1d3a1a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2060f8,_0x5cc5f2)=>_0x2060f8||!!_0x5cc5f2);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x186228}=this['_config'],_0x28ee48=new _0x186228(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xeb49c0=_0x28ee48['commentInputView'];return _0x28ee48['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xeb49c0,'value',(_0x214033,_0x4f1f27,_0x496eb5)=>!!_0x496eb5||_0x214033&&!_0x4f1f27),_0xeb49c0['on']('submit',(_0x2d38b0,_0x10ee1f)=>{this['fire']('addComment',_0x10ee1f),_0xeb49c0['editor']['setData']('');}),_0xeb49c0['on']('cancel',()=>this['focus']()),_0xeb49c0['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x28ee48;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0xbd5eee,_0xb351cf,_0x55519b,_0x288640){super(_0xbd5eee,_0xb351cf,_0x55519b,_0x288640),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x578110=>_0x578110&&_0x578110[0x0]?_0x578110[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x10b0c7,_0x1b2391)=>{let _0x39c482='';for(const _0xf91993 of _0x10b0c7)_0x39c482+='<p>'+ds(_0xf91993['content'],_0xf91993['color'])+'</p>';return _0x1b2391?_0x39c482:_0x21d54c(_0x39c482,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0xbd5eee,'Accept\x20suggestion'),_0x5dd0cc['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0xbd5eee,'Discard\x20suggestion'),_0x5dd0cc['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x1c23bf(_0xbd5eee,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x34d769=this['bindTemplate'],_0x20664f=[{'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':_0x34d769['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x34d769['to']('authoredAt',_0x825c5d=>this['_config']['formatDateTime'](_0x825c5d))}]}]},{'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']&&_0x20664f['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2308d0={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x34d769['if']('isActive','ck-suggestion-wrapper--active'),_0x34d769['to']('type',_0x4f9b15=>'ck-suggestion-'+_0x4f9b15),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':_0x20664f}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2308d0['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)),_0x2308d0;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x1eab24,_0x1001c7,_0x3391ff)=>{this['_descriptionElement']['innerHTML']=_0x3391ff;});}['_createButton'](_0x120c6c,_0x1fc079,_0x34c493,_0xd23e0e,_0xbac448){const _0x5e281d=new _0x5bb528(this['locale']);return _0x5e281d['set']({'label':_0x120c6c,'icon':_0x1fc079,'tooltip':!0x0,'tooltipPosition':_0xbac448}),_0x5e281d['extendTemplate']({'attributes':{'class':_0x34c493}}),_0x5e281d['on']('execute',()=>{this['fire'](_0xd23e0e,this['_model']['id']);}),_0x5e281d;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x33024d,_0x32601c){let _0x1df9fd='';return _0x1df9fd+=_0x33024d['split']('*')['map']((_0x56fa98,_0x107a9e)=>_0x107a9e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x56fa98)+'</span>':us(_0x56fa98))['join'](''),_0x32601c&&(_0x1df9fd+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x32601c['value']+'\x22\x20title=\x22'+_0x32601c['title']+'\x22></span>'),_0x1df9fd;}function us(_0xbf4227){const _0x3b6181=document['createElement']('span');return _0x3b6181['innerText']=_0xbf4227,_0x3b6181['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 _0x41c6a3{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3bf4a7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4066b9){super(_0x4066b9),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x25f737=this['editor']['config'];_0x25f737['define']('trackChanges.SuggestionThreadView',ne),_0x25f737['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x25f737['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3e091a,_0x200a67){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x162881,_0x557921]of this['_handleControllerBuffer']){const _0x2695ff=this['_suggestionToController']['has'](_0x162881);_0x2695ff||_0x557921?_0x2695ff&&_0x557921&&this['_destroyController'](_0x162881):this['_initializeController'](_0x162881);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3e091a,_0x200a67);}['init'](){const _0x4616c7=this['editor'],_0x1c0221=_0x4616c7['plugins']['get']('TrackChangesEditing'),_0x3a632a=_0x4616c7['plugins']['get']('Annotations'),_0x276d9c=_0x4616c7['plugins']['get']('EditorAnnotations'),_0xfe3ee4=_0x4616c7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x276d9c['addSourceCollector'](()=>{const _0x457b8c=[];for(const [_0x55458d,_0x55c4e8]of Array['from'](this['_suggestionToController'])){const _0x14d874=_0x55458d['getAllAdjacentSuggestions'](),_0x4128d3=[];for(const _0x2eee12 of _0x14d874){if(!_0x2eee12['isInContent'])continue;if(_0x2eee12['isMultiRange']){_0x4128d3['push'](..._0x2eee12['getRanges']());continue;}const _0x283858=_0x2eee12['getFirstRange']();if(_0x4128d3['length']>0x0){const _0x32bde4=_0x4128d3[0x0]['getJoined'](_0x283858);if(_0x32bde4){_0x4128d3[0x0]=_0x32bde4;continue;}}_0x4128d3['push'](_0x283858);}_0x457b8c['push']([_0x55c4e8['view'],_0x4128d3]);}return _0x457b8c;}),this['listenTo'](_0x1c0221,'suggestionLoaded',(_0x4ce13d,_0x33cdaf)=>{this['listenTo'](_0x33cdaf,'change:previous',(_0x3b0017,_0x4d42b0,_0xc12987,_0x202d04)=>{_0x33cdaf['isInContent']&&(null==_0xc12987?(this['_updateController'](_0x202d04['head']),this['_handleSuggestionControllerDelayed'](_0x33cdaf,!0x1)):(this['_updateController'](_0xc12987['head']),null==_0x202d04&&this['_handleSuggestionControllerDelayed'](_0x33cdaf,!0x0)));}),null!==_0x33cdaf['previous']?this['_updateController'](_0x33cdaf['head']):this['_handleSuggestionControllerDelayed'](_0x33cdaf,!0x1);}),this['listenTo'](_0x1c0221,'suggestionUnloaded',(_0x678ab9,_0x3b1d74,_0x5b73f7)=>{this['stopListening'](_0x3b1d74,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3b1d74),this['_suggestionToController']['has'](_0x3b1d74)&&this['_destroyController'](_0x3b1d74),_0x5b73f7&&this['_updateController'](_0x5b73f7['head']);}),this['listenTo'](_0x1c0221,'suggestionChanged',(_0x5e3921,_0x28758c)=>{this['_updateController'](_0x28758c);}),this['listenTo'](_0x3a632a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xfe3ee4,'addComment',(_0x2020fa,{threadId:_0x2ff8b0,isFromAdapter:_0x1c565c})=>{if(_0x1c565c||!_0x1c0221['hasSuggestion'](_0x2ff8b0))return;const _0x345bef=_0x1c0221['getSuggestion'](_0x2ff8b0);this['_suggestionToController']['get'](_0x345bef)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3bd964=this['editor']['plugins']['get']('Annotations'),_0x4ce0a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x127d0c=Array['from'](_0x3bd964['activeAnnotations'],_0x4ae421=>_0x4ae421['innerView'])['filter'](_0x4754c1=>this['_viewToController']['has'](_0x4754c1)),_0xafce54=[];for(const _0x113037 of _0x127d0c){const _0x4394b6=this['_viewToController']['get'](_0x113037)['model']['getAllAdjacentSuggestions']();_0xafce54['push'](..._0x4394b6['reduce']((_0x32ed77,_0x4cd6c1)=>[..._0x32ed77,..._0x4cd6c1['getMarkerNames']()],[]));}_0x4ce0a5['activeMarkers']=_0xafce54;}['_addUIComponentsToFactory'](){const _0x32597b=this['editor'],_0xf3ab07=_0x32597b['locale'],_0x26c948=o(_0xf3ab07,'Track\x20changes'),_0x2a6edc=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x26c948,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xf3ab07,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xf3ab07,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xf3ab07,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0xf3ab07,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x53f7d5 of _0x2a6edc)if(ae(_0x53f7d5)){const _0x1d51c7=_0x32597b['commands']['get'](_0x53f7d5['model']['commandName']);_0x53f7d5['model']['bind']('isOn','isEnabled')['to'](_0x1d51c7,'value','isEnabled');}_0x32597b['ui']['componentFactory']['add']('trackChanges',_0x3d9c6a=>this['_createToolbarButton'](_0x3d9c6a,_0x2a6edc,_0x26c948)),_0x32597b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3f9972=>this['_createMenuBarMenu'](_0x3f9972,_0x2a6edc,_0x26c948));}['_createToolbarButton'](_0x19ac8b,_0x5d21b8,_0x1ebcab){const _0x110507=zt(_0x19ac8b,Zt),_0x4b9937=this['editor']['commands']['get']('trackChanges');_0x110507['buttonView']['set']({'tooltip':_0x1ebcab,'label':_0x1ebcab,'icon':ie}),_0x110507['buttonView']['bind']('isOn')['to'](_0x4b9937,'value'),_0x110507['buttonView']['on']('execute',()=>{_0x4b9937['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x110507,_0x5d21b8,{'role':'menu'});const _0x264ffa=[];for(const _0x53e50f of _0x5d21b8)ae(_0x53e50f)&&_0x264ffa['push'](this['editor']['commands']['get'](_0x53e50f['model']['commandName']));const _0x4a1fcf=_0x110507['buttonView'];return _0x4a1fcf['actionView']['unbind']('isEnabled'),_0x4a1fcf['arrowView']['unbind']('isEnabled'),_0x4a1fcf['actionView']['bind']('isEnabled')['to'](_0x4b9937,'isEnabled'),_0x4a1fcf['arrowView']['bind']('isEnabled')['toMany'](_0x264ffa,'isEnabled',(..._0x6ae218)=>_0x6ae218['some'](_0xd9d6a7=>_0xd9d6a7)),_0x110507['on']('execute',_0x135586=>{this['editor']['execute'](_0x135586['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x110507;}['_createMenuBarMenu'](_0x1f0a88,_0x2e517a,_0x6775ee){const _0xab37af=new Kt(_0x1f0a88),_0x218a0c=this['editor']['commands']['get']('trackChanges');_0xab37af['buttonView']['set']({'label':_0x6775ee,'icon':ie});const _0x36598a=new Qt(_0x1f0a88);for(const _0x1c8d46 of _0x2e517a){if('separator'==_0x1c8d46['type']){_0x36598a['items']['add'](new Jt(_0x1f0a88));continue;}const _0x26d30d=new Xt(_0x1f0a88,_0xab37af),_0x95c1ec=new Yt(_0x1f0a88),_0x392ebc=_0x1c8d46['model'];_0x95c1ec['bind'](...Object['keys'](_0x392ebc))['to'](_0x392ebc),_0x95c1ec['delegate']('execute')['to'](_0xab37af),_0x95c1ec['on']('execute',()=>{this['editor']['execute'](_0x392ebc['commandName']),this['editor']['editing']['view']['focus']();}),_0x26d30d['children']['add'](_0x95c1ec),_0x36598a['items']['add'](_0x26d30d);}return _0xab37af['bind']('isEnabled')['to'](_0x218a0c,'isEnabled'),_0xab37af['panelView']['children']['add'](_0x36598a),_0xab37af;}['_initializeController'](_0x3d3292){const _0x2c0444=this['editor'],_0x263650=_0x2c0444['config'],_0xe2807d=_0x2c0444['plugins']['get']('Annotations'),_0x581b62=_0x2c0444['plugins']['get']('CommentsRepository'),_0x32c74c=_0x2c0444['plugins']['get']('EditorAnnotations'),_0x5ccf30=_0x2c0444['plugins']['get'](_0x3bf4a7)['me'],_0x1191d1=_0x263650['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x2cd523,CommentThreadInputView:_0x229ee5}=_0x2c0444['plugins']['get']('CommentsUI');let _0x380901,_0x41fdd9;this['_annotationViews']['has'](_0x3d3292['id'])?(_0x41fdd9=this['_annotationViews']['get'](_0x3d3292['id']),_0x380901=_0x41fdd9['mainView']):(_0x380901=new _0x1191d1(_0x2c0444['locale'],_0x3d3292,_0x5ccf30,{'disableComments':this['_disableComments'],'editorConfig':_0x263650['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x263650['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x263650['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x263650['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x27445c(_0x263650['get']('locale')),'CommentView':_0x263650['get']('comments')['CommentView'],'CommentsListView':_0x2cd523,'CommentThreadInputView':_0x229ee5}),_0x380901['acceptButton']['on']('execute',()=>{_0x2c0444['editing']['view']['focus']();}),_0x380901['discardButton']['on']('execute',()=>{_0x2c0444['editing']['view']['focus']();}),_0x41fdd9=_0xe2807d['createAnnotationView'](this['editor']['locale'],_0x380901),_0x41fdd9['bind']('isDirty')['to'](_0x380901,'isDirty'),_0x41fdd9['bind']('length')['to'](_0x380901),_0x41fdd9['bind']('type')['to'](_0x380901,'type',_0x549700=>'suggestion-'+_0x549700),this['_annotationViews']['set'](_0x3d3292['id'],_0x41fdd9));const _0x2a22fe=_0x581b62['createCommentThreadController'](_0x3d3292['commentThread'],_0x380901),_0x46a70e=new oe(_0x2c0444,_0x3d3292,_0x380901,_0x2a22fe),_0x29c95c=_0x3d3292['getAllAdjacentSuggestions']()['filter'](_0x431545=>_0x431545['isInContent']);_0x380901['descriptionParts']=_0x2c0444['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x29c95c),this['_suggestionToController']['set'](_0x3d3292,_0x46a70e),this['_viewToController']['set'](_0x380901,_0x46a70e);const _0x5d27ec=_0xe2807d['createAnnotation']({'view':_0x41fdd9,'target':()=>{const _0x26092f=[],_0x211bba=_0x3d3292['getAllAdjacentSuggestions']()['filter'](_0x2dece8=>_0x2dece8['isInContent']);for(const _0x2a72b1 of _0x211bba)_0x26092f['push'](..._0x2a72b1['getMarkers']());return _0x9b0922(_0x2c0444['editing'],_0x26092f);},'type':()=>'suggestion-'+_0x46a70e['view']['type']});_0x581b62['_bindAnnotationToEditors'](_0x380901,_0x5d27ec),_0xe2807d['add'](_0x5d27ec),_0x32c74c['registerAnnotation'](_0x5d27ec);}['_destroyController'](_0x4e5e50){const _0x4cca30=this['editor']['plugins']['get']('CommentsRepository'),_0x184aa9=this['editor']['plugins']['get']('Annotations'),_0x504dde=this['_suggestionToController']['get'](_0x4e5e50),_0x63848a=_0x504dde['view'],_0x18a391=_0x184aa9['getByInnerView'](_0x63848a);_0x4cca30['_unbindEditors'](_0x63848a),_0x18a391&&_0x184aa9['remove'](_0x18a391),this['_suggestionToController']['delete'](_0x4e5e50),this['_viewToController']['delete'](_0x63848a),_0x504dde['destroy']();}['_updateController'](_0x218123){if(!_0x218123['isInContent']||!this['_suggestionToController']['has'](_0x218123))return;const _0x35611e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24d4eb=this['_suggestionToController']['get'](_0x218123),_0x1ff695=_0x218123['getAllAdjacentSuggestions']();_0x24d4eb['view']['descriptionParts']=_0x35611e['descriptionFactory']['getDescriptions'](_0x1ff695);}['destroy'](){for(const _0x2132fc of this['_suggestionToController']['keys']())this['_destroyController'](_0x2132fc);for(const _0xcd55ad of this['_annotationViews']['values']())_0xcd55ad['mainView']['destroy']();super['destroy']();}}function ae(_0x343400){return'model'in _0x343400;}class k extends _0x41c6a3{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x271b5e){this['editor']['plugins']['get'](p)['adapter']=_0x271b5e;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3202d4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3202d4);}['getSuggestions']({skipNotAttached:_0x225a9f=!0x1,toJSON:_0x4c42fb=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x225a9f,'toJSON':_0x4c42fb});}['getSuggestion'](_0x24fe3e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x24fe3e);}}const T=['Pagination'];class P extends _0x41c6a3{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x420fdd=this['editor'];if(_0x420fdd['config']['define']('trackChangesData.editorCreator',_0x3fb036=>{const _0x3c7d88=_0x420fdd['model']['document']['getRootNames']()['reduce']((_0x5c2b4f,_0x68a3d0)=>(_0x5c2b4f[_0x68a3d0]='',_0x5c2b4f),{});return _0x420fdd['constructor']['create'](_0x3c7d88,_0x3fb036);}),'function'!=typeof _0x420fdd['config']['get']('trackChangesData')['editorCreator'])throw new _0x52dd32('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5e6acf){return N(this['editor'],!0x0,_0x5e6acf);}['getDataWithDiscardedSuggestions'](_0x507594){return N(this['editor'],!0x1,_0x507594);}}class D extends _0x41c6a3{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x18254b){super(_0x18254b),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x2a7968){return void 0x0!==_0x2a7968['getRootsAttributes'];}async function N(_0x55c22a,_0x14cd67,_0x5c9017){const _0x5206f5=_0x370112(_0x55c22a,T);_0x5206f5['plugins']['push'](p,D),_0x5206f5['rootsAttributes']=v(_0x55c22a)?_0x55c22a['getRootsAttributes']():void 0x0;const _0x493b07=document['createDocumentFragment'](),_0x12772=_0x55c22a['config']['get']('trackChangesData')['editorCreator'],_0xc9ba3f=await _0x12772(_0x5206f5,()=>function(_0x4e0e91){const _0x407e22=document['createElement']('div');return _0x4e0e91['appendChild'](_0x407e22),_0x407e22;}(_0x493b07));!function(_0x404387,_0x3071ef){const _0x10e728=_0x404387['model']['document']['getRootNames']()['reduce']((_0x369292,_0xb2bf37)=>(_0x369292[_0xb2bf37]=_0x404387['data']['get']({'rootName':_0xb2bf37}),_0x369292),{}),_0x5444e9=_0x404387['plugins']['get']('Users')['users']['map'](_0x14dcb1=>({'id':_0x14dcb1['id'],'name':_0x14dcb1['name']})),_0x3d352e=_0x404387['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xb41591=_0x404387['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x15a58d=_0x3071ef['plugins']['get']('Users'),_0x5395c1=_0x3071ef['plugins']['get']('TrackChangesEditing'),_0x57efd9=_0x3071ef['plugins']['get']('CommentsRepository');for(const _0x1f5b55 of _0x5444e9)_0x15a58d['getUser'](_0x1f5b55['id'])||_0x15a58d['addUser'](_0x1f5b55);_0x15a58d['me']||_0x15a58d['useAnonymousUser']();for(const _0x300d69 of _0xb41591)_0x57efd9['addCommentThread'](_0x300d69);for(const _0x3d1066 of _0x3d352e)_0x5395c1['addSuggestionData'](_0x3d1066);_0x3071ef['data']['set'](_0x10e728);}(_0x55c22a,_0xc9ba3f),_0xc9ba3f['execute'](_0x14cd67?'acceptAllSuggestions':'discardAllSuggestions');const _0x4f84a1=v(_0xc9ba3f)?_0xc9ba3f['getFullData'](_0x5c9017):_0xc9ba3f['data']['get'](_0x5c9017);return await _0xc9ba3f['destroy'](),_0x4f84a1;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};