@ckeditor/ckeditor5-track-changes 45.2.1-alpha.2 → 45.2.1-alpha.4

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 _0x56553e,Plugin as _0x11ea7f,PendingActions as _0x2727c4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1cd3be,ObservableMixin as _0x18406a,uid as _0x12ee37,priorities as _0x2ef4ce,insertToPriorityArray as _0x29ae24,toArray as _0x388c61,logWarning as _0x5dfb16,getEnvKeystrokeText as _0x31ad4f,FocusTracker as _0x596630,KeystrokeHandler as _0x5bb128,Collection as _0x5e4040}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2dc50c,IconCancel as _0x359719,IconTrackChanges as _0x46fdee}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1d84f3,View as _0x2ae501,ViewCollection as _0x5357b9,FocusCycler as _0x455afc,ViewModel as _0x166277,createDropdown as _0x46612d,SplitButtonView as _0x214ce7,addListToDropdown as _0x5cdae9,MenuBarMenuView as _0x292dc9,MenuBarMenuListView as _0x22298c,ListSeparatorView as _0x4e76ca,MenuBarMenuListItemView as _0x20b265,MenuBarMenuListItemButtonView as _0x5a7002,BodyCollection as _0x369a10,Dialog as _0x4de383}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x19fdf5,hashObject as _0x2bf3c4,surroundingMarkersDetector as _0x55f8e2,FOCUS_ANNOTATION_KEYSTROKE as _0x55609f,AriaDescriptionView as _0xffefc0,setupThreadKeyboardNavigation as _0xd9160f,trimHtml as ti,UserView as _0x4a2fec,LateFocusButtonView as _0xbaa962,getDateTimeFormatter as _0x33eb5c,getAllMarkersDomElementsSorted as _0x123e60,sanitizeEditorConfig as _0x481b18}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3e9916,LiveRange as _0x53edc8,LivePosition as _0x130d1d,DowncastWriter as _0x3d3be1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x9867d8,toWidget as _0x1a15a4}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2a9f3a,set as _0x3e8089,isEqual as _0x2aed50,unset as _0x5303ea,omit as Ft}from'es-toolkit/compat';import{Delete as _0x544c25,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x120978}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x420ad0}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x56553e{['_enabledCommands'];constructor(_0x57dac7,_0x4315f3){super(_0x57dac7),this['_enabledCommands']=_0x4315f3,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 _0x3b7f34 of this['editor']['commands']['commands']())_0x3b7f34['affectsData']&&!this['_enabledCommands']['has'](_0x3b7f34)&&_0x3b7f34['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x214eae of this['editor']['commands']['commands']())_0x214eae['affectsData']&&!this['_enabledCommands']['has'](_0x214eae)&&_0x214eae['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x56553e{['_suggestions'];constructor(_0x53b5bc,_0x3b9fd0){super(_0x53b5bc),this['_suggestions']=_0x3b9fd0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4a1fa3){const _0xc858bf=this['_suggestions']['get'](_0x4a1fa3);if(!_0xc858bf)throw new _0x1cd3be('track-changes-accept-suggestion-not-found',this);const _0x5856b8=_0xc858bf['getRanges']();this['editor']['model']['canEditAt'](_0x5856b8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xc858bf);}}class O extends _0x56553e{['_suggestions'];constructor(_0x42c6eb,_0x42bfed){super(_0x42c6eb),this['_suggestions']=_0x42bfed,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c482a){const _0x2585f9=this['_suggestions']['get'](_0x5c482a);if(!_0x2585f9)throw new _0x1cd3be('track-changes-discard-suggestion-not-found',this);const _0x3c1f45=_0x2585f9['getRanges']();this['editor']['model']['canEditAt'](_0x3c1f45)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2585f9);}}function ls(_0xa95808,_0x40e292){let _0x1ebd89='';return _0x1ebd89+=_0xa95808['split']('*')['map']((_0x13fa54,_0x53daff)=>_0x53daff%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x13fa54)+'</span>':nn(_0x13fa54))['join'](''),_0x40e292&&(_0x1ebd89+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x40e292['value']+'\x22\x20title=\x22'+_0x40e292['title']+'\x22></span>'),_0x1ebd89;}function nn(_0x4447d2){const _0x576266=document['createElement']('span');return _0x576266['innerText']=_0x4447d2,_0x576266['innerHTML'];}function ts(_0x31a25a){return _0x31a25a['sort']((_0x2cf154,_0x3ad4fd)=>'deletion'==_0x2cf154['type']&&'deletion'!=_0x3ad4fd['type']?-0x1:'deletion'!=_0x2cf154['type']&&'deletion'==_0x3ad4fd['type']?0x1:0x0);}function to(_0x49d482,_0x55d6f2){let _0x367b58,_0x5c09ec=0x0;const _0x8cb6c8=[],_0x337c1d=_0x55d6f2['schema'];for(;_0x5c09ec<_0x49d482['length'];){const _0x4496a1=_0x49d482[_0x5c09ec],_0xfc7033=_0x49d482[_0x5c09ec+0x1];_0x367b58||(_0x367b58=_0x55d6f2['createPositionBefore'](_0x4496a1)),on(_0x55d6f2,_0x4496a1,_0xfc7033)||(_0x8cb6c8['push'](_0x55d6f2['createRange'](_0x367b58,_0x337c1d['isObject'](_0x4496a1)?_0x55d6f2['createPositionAfter'](_0x4496a1):_0x55d6f2['createPositionAt'](_0x4496a1,'end'))),_0x367b58=null),_0x5c09ec++;}return _0x8cb6c8;}function on(_0x24b862,_0x401d88,_0x4efa78){if(!_0x4efa78)return!0x1;const _0x4fc5fd=_0x24b862['createPositionAfter'](_0x401d88),_0x1fefe5=_0x24b862['createPositionBefore'](_0x4efa78);return _0x4fc5fd['isTouching'](_0x1fefe5);}function rs(_0x4473da,_0x225952,_0x209773){for(;_0x209773['length'];){const _0x50b7e9=_0x209773['splice'](0x0,0x64);_0x4473da['change'](()=>{for(const _0x3f5db1 of _0x50b7e9)_0x3f5db1['isInContent']&&_0x225952['execute'](_0x3f5db1['id']);});}}class R extends _0x56553e{['_command'];['_suggestions'];constructor(_0x45e733,_0x4a1e0e,_0x219b3f){super(_0x45e733),this['_command']=_0x4a1e0e,this['_suggestions']=_0x219b3f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3accd8=Array['from'](this['_suggestions']['values']())['some'](_0x1f20d1=>_0x1f20d1['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3accd8;}['execute'](){const _0x2cb624=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3d591c of _0x2cb624){const _0x55fbe0=_0x3d591c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x55fbe0))return;}rs(this['editor']['model'],this['_command'],_0x2cb624);}}class E extends _0x56553e{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x45fda1,_0x163b07,_0x3d37ee){super(_0x45fda1),this['_command']=_0x163b07,this['_suggestions']=_0x3d37ee,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1f983a=this['editor']['model']['document']['selection'],_0x52ee75=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x403c86,_0x16c47e){const _0x27920c=Array['from'](_0x403c86['getRanges']()),_0x464699=new Set();for(const _0x2df66f of _0x16c47e)if(_0x2df66f['isInContent']){for(const _0x597eef of _0x27920c)for(const _0x88b3e5 of _0x2df66f['getRanges']())(_0x597eef['isIntersecting'](_0x88b3e5)||_0x403c86['isCollapsed']&&!_0x2df66f['isMultiRange']&&_0x2df66f['next']&&_0x88b3e5['end']['isTouching'](_0x597eef['start']))&&_0x464699['add'](_0x2df66f);}return _0x464699;}(_0x1f983a,_0x52ee75),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4ec389=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3d81bc of _0x4ec389){const _0x539eac=_0x3d81bc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x539eac))return;}rs(this['editor']['model'],this['_command'],_0x4ec389);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x18406a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x100a79,_0xb59c27){super(),this['id']=_0xb59c27['id'],this['type']=_0xb59c27['type'],this['subType']=_0xb59c27['subType']||null,this['author']=_0xb59c27['author'],this['creator']=_0xb59c27['creator']||_0xb59c27['author'],this['isExternal']=Boolean(_0xb59c27['attributes']&&_0xb59c27['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xb59c27['originalSuggestionId']||null,this['_model']=_0x100a79,this['_onAccept']=_0xb59c27['onAccept'],this['_onDiscard']=_0xb59c27['onDiscard'],this['_onAttributesChange']=_0xb59c27['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xb59c27['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 _0x2eab23=this;for(;_0x2eab23['previous'];)_0x2eab23=_0x2eab23['previous'];return _0x2eab23;}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'](_0x405ff0){this['_markerNames']['add'](_0x405ff0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1c9e3e=>this['_model']['markers']['get'](_0x1c9e3e))['filter'](_0x53c7f7=>_0x53c7f7);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x267fa8=>{for(const _0x4990d8 of this['getMarkers']())_0x267fa8['removeMarker'](_0x4990d8);}),this['_markerNames']['clear']();}['removeMarker'](_0x52d601){this['_model']['change'](_0x545bfb=>{_0x545bfb['removeMarker'](_0x52d601);}),this['_markerNames']['delete'](_0x52d601);}['addRange'](_0x1521c2){const _0x174cf4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x174cf4),this['_model']['change'](_0x166559=>{_0x166559['addMarker'](_0x174cf4,{'range':_0x1521c2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x25fc6c){for(const _0x384231 of this['getRanges']())if(_0x384231['isIntersecting'](_0x25fc6c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x58d982=>_0x58d982['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x444fa1,_0x14dc91)=>[..._0x444fa1,..._0x14dc91['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4f3277=this['getRanges']();if(0x1!=_0x4f3277['length'])return null;const _0x190227=_0x4f3277[0x0],_0x2b696e=_0x190227['start']['nodeAfter'],_0x24a485=_0x190227['end']['nodeBefore'];return _0x2b696e instanceof _0x3e9916?_0x2b696e!=_0x24a485?null:_0x2b696e: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 _0xb79b2f=[];let _0x2d1953=this['head'];for(;_0x2d1953;)_0xb79b2f['push'](_0x2d1953),_0x2d1953=_0x2d1953['next'];return _0xb79b2f;}['setAttribute'](_0x5a8b57,_0xf73634){const _0x16407a=_0x2a9f3a(this['attributes']);_0x3e8089(_0x16407a,_0x5a8b57,_0xf73634),_0x2aed50(_0x16407a,this['attributes'])||(this['attributes']=_0x16407a,this['_onAttributesChange'](_0x16407a));}['removeAttribute'](_0x30c292){const _0x35404a=_0x2a9f3a(this['attributes']);_0x5303ea(_0x35404a,_0x30c292),_0x2aed50(_0x35404a,this['attributes'])||(this['attributes']=_0x35404a,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 _0x12ee37()['substr'](0x1,0x5);}}function c(_0x26cac0,_0x288126,_0xaa40cd){const _0x219865=_0x26cac0['t'],t=_0x26cac0['t'];switch(_0x288126){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0xaa40cd);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xaa40cd);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xaa40cd);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xaa40cd);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xaa40cd);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',_0xaa40cd);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xaa40cd);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0xaa40cd);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xaa40cd);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xaa40cd);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xaa40cd);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xaa40cd);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xaa40cd);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xaa40cd);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xaa40cd);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xaa40cd);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xaa40cd);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xaa40cd);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xaa40cd);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xaa40cd);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xaa40cd);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xaa40cd);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xaa40cd);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xaa40cd);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xaa40cd);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xaa40cd);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xaa40cd);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xaa40cd);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xaa40cd);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xaa40cd);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xaa40cd);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xaa40cd);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xaa40cd);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xaa40cd);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'},_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xaa40cd);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xaa40cd);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0xaa40cd);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xaa40cd);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 _0x219865({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xaa40cd);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x219865({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xaa40cd);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xaa40cd);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0xaa40cd);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0xaa40cd);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0xaa40cd);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x288126;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xcc7fda,_0x30bc5e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xcc7fda,this['_locale']=_0x30bc5e;}['getDescriptions'](_0x30fe66){const _0x5ceeb7=[],_0x4abd5c=new Set(),_0xe9663a=new Set();for(let _0x227ac1=0x0;_0x227ac1<_0x30fe66['length'];_0x227ac1++){const _0x169f8a=_0x30fe66[_0x227ac1];if(!_0x169f8a['isInContent'])continue;const _0x221257=this['_handleCustomCallbackDescription'](_0x169f8a);if(_0x221257){if(null!=_0x169f8a['subType']){if(_0x4abd5c['has'](_0x169f8a['subType']))continue;_0x4abd5c['add'](_0x169f8a['subType']);}_0x5ceeb7['push'](_0x221257);}else{if('attribute'!=_0x169f8a['type'])'insertion'!=_0x169f8a['type']&&'deletion'!=_0x169f8a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5ceeb7,_0x169f8a,_0x30fe66[_0x227ac1+0x1]);else{const _0x5680dc=_0x169f8a['data']['key'];if(_0xe9663a['has'](_0x5680dc))continue;_0xe9663a['add'](_0x169f8a['data']['key']),_0x5680dc==u?this['_handleRenameSuggestionDescription'](_0x5ceeb7,_0x169f8a):this['_handleAttributeSuggestionDescription'](_0x5ceeb7,_0x169f8a);}}}return this['_resolveDescriptionItems'](_0x5ceeb7);}['registerDescriptionCallback'](_0x5e8fae){this['_customCallbacks']['push'](_0x5e8fae);}['registerElementLabel'](_0x597128,_0x596036,_0x12f458=_0x2ef4ce['normal']){'function'==typeof _0x597128?_0x29ae24(this['_itemLabelsCallbacks'],{'matchingCallback':_0x597128,'label':_0x596036,'priority':_0x12f458}):this['_itemLabels']['set'](_0x597128,_0x596036);}['registerAttributeLabel'](_0x11b9f3,_0x541c5b){this['_attributeLabels']['set'](_0x11b9f3,_0x541c5b);}['getItemLabel'](_0x2b7cc7,_0x249e50=0x1){let _0x141b5a;for(const _0x4cb955 of this['_itemLabelsCallbacks'])if(_0x4cb955['matchingCallback'](_0x2b7cc7)){_0x141b5a=_0x4cb955['label'];break;}return _0x141b5a||(_0x141b5a=this['_itemLabels']['get'](_0x2b7cc7['name'])),_0x141b5a?_0x141b5a(_0x249e50):0x1!==_0x249e50?_0x249e50+'\x20'+_0x2b7cc7['name']+'s':''+_0x2b7cc7['name'];}['_addDescriptionItems'](_0xb7560d,_0x538a52){const _0x53f58b=_0x538a52['getFirstRange']()['getWalker'](),_0x49ecf5='insertion'==_0x538a52['type']?'add':'remove';for(const _0x48a386 of _0x53f58b){const _0x4889e7=_0x48a386['item'],_0x5d43cb=_0xb7560d[_0xb7560d['length']-0x1];if(_0x4889e7['is']('$textProxy'))_0x5d43cb&&_0x5d43cb['type']['indexOf']('Container')>-0x1&&_0xb7560d['pop'](),_0x5d43cb&&'text'==_0x5d43cb['type']?_0x5d43cb[_0x49ecf5]+=_0x4889e7['data']:_0xb7560d['push']({'type':'text','add':'add'==_0x49ecf5?_0x4889e7['data']:'','remove':'remove'==_0x49ecf5?_0x4889e7['data']:''});else{if(this['_schema']['isObject'](_0x4889e7)){const _0x5f573e=_0x4889e7;if(_0x5d43cb&&_0x5d43cb['type']['indexOf']('Container')>-0x1&&_0xb7560d['pop'](),'elementEnd'==_0x48a386['type'])continue;_0x5d43cb&&_0x5d43cb['type']==_0x49ecf5+'Object'&&_0x5d43cb['element']['name']==_0x5f573e['name']?_0x5d43cb['quantity']++:_0xb7560d['push']({'type':_0x49ecf5+'Object','element':_0x5f573e,'quantity':0x1}),_0x53f58b['skip'](_0x4ee379=>!('elementEnd'==_0x4ee379['type']&&_0x4ee379['item']==_0x4889e7));}else{if(this['_schema']['checkChild'](_0x4889e7,'$text')||_0x4889e7['is']('element','softBreak')){const _0x57f499=_0x4889e7;if('add'==_0x49ecf5&&'elementStart'==_0x48a386['type']||'remove'==_0x49ecf5&&'elementEnd'==_0x48a386['type'])continue;if(_0x5d43cb&&-0x1==_0x5d43cb['type']['indexOf']('Container')){'text'==_0x5d43cb['type']&&(_0x5d43cb[_0x49ecf5]+='\x0a');continue;}let _0x2318bb;if(_0x2318bb='add'==_0x49ecf5?_0x57f499['nextSibling']&&!this['_schema']['isObject'](_0x57f499['nextSibling'])?_0x57f499['nextSibling']:null:_0x57f499['previousSibling']&&!this['_schema']['isObject'](_0x57f499['previousSibling'])?_0x57f499['previousSibling']:null,_0x57f499['isEmpty']||_0x2318bb&&_0x2318bb['isEmpty']){const _0x352c17=_0x2318bb&&_0x2318bb['isEmpty']?_0x2318bb:_0x57f499;_0x5d43cb&&_0x5d43cb['type']==_0x49ecf5+'EmptyContainer'&&_0x5d43cb['element']['name']==_0x352c17['name']?_0x5d43cb['quantity']++:_0xb7560d['push']({'type':_0x49ecf5+'EmptyContainer','element':_0x352c17,'quantity':0x1});}else _0xb7560d['push']({'type':_0x49ecf5+'Container','element':_0x57f499});}}}}}['_resolveDescriptionItems'](_0x16390d){const _0x3a7ce4=this['_locale'],_0x2668ae=[],_0x396f87=[],_0xf40285=[];for(const _0x258180 of _0x16390d)switch(_0x258180['type']){case'text':if(_0x258180['add']=_0x258180['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x258180['remove']=_0x258180['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x258180['add']&&''!=_0x258180['remove']){_0x2668ae['push']({'type':'replace','content':c(_0x3a7ce4,'REPLACE_TEXT',['\x22'+_0x258180['remove']+'\x22','\x22'+_0x258180['add']+'\x22'])});continue;}if(null!=_0x258180['add']['match'](/^ +$/)){_0x2668ae['push']({'type':'insertion','content':c(_0x3a7ce4,'*Insert:*\x20%0',c(_0x3a7ce4,'ELEMENT_SPACE',_0x258180['add']['length']))});continue;}if(null!=_0x258180['remove']['match'](/^ +$/)){_0x2668ae['push']({'type':'deletion','content':c(_0x3a7ce4,'*Remove:*\x20%0',c(_0x3a7ce4,'ELEMENT_SPACE',_0x258180['remove']['length']))});continue;}if(''!=_0x258180['add']){_0x2668ae['push']({'type':'insertion','content':c(_0x3a7ce4,'*Insert:*\x20%0','\x22'+_0x258180['add']+'\x22')});continue;}_0x2668ae['push']({'type':'deletion','content':c(_0x3a7ce4,'*Remove:*\x20%0','\x22'+_0x258180['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2668ae['push']({'type':'insertion','content':c(_0x3a7ce4,'*Insert:*\x20%0',this['getItemLabel'](_0x258180['element'],_0x258180['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2668ae['push']({'type':'deletion','content':c(_0x3a7ce4,'*Remove:*\x20%0',this['getItemLabel'](_0x258180['element'],_0x258180['quantity']))});continue;case'addContainer':_0x2668ae['push']({'type':'insertion','content':c(_0x3a7ce4,'*Split:*\x20%0',this['getItemLabel'](_0x258180['element'],_0x258180['quantity']))});continue;case'removeContainer':_0x2668ae['push']({'type':'deletion','content':c(_0x3a7ce4,'*Merge:*\x20%0',this['getItemLabel'](_0x258180['element'],_0x258180['quantity']))});continue;case'addFormat':_0x396f87['push'](_0x258180['key']);continue;case'removeFormat':_0xf40285['push'](_0x258180['key']);continue;default:_0x2668ae['push'](_0x258180);}if(_0x396f87['length']){const _0x159a0d=_0x396f87['map'](_0x5d50b3=>this['_attributeLabels']['has'](_0x5d50b3)?this['_attributeLabels']['get'](_0x5d50b3):_0x5d50b3)['join'](',\x20');_0x2668ae['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x159a0d)});}if(_0xf40285['length']){const _0x4e39e7=_0xf40285['map'](_0x4f8a99=>this['_attributeLabels']['has'](_0x4f8a99)?this['_attributeLabels']['get'](_0x4f8a99):_0x4f8a99)['join'](',\x20');_0x2668ae['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x4e39e7)});}return _0x2668ae;}['_handleCustomCallbackDescription'](_0x239a75){for(const _0x1d3c4f of this['_customCallbacks']){const _0x597b35=_0x1d3c4f(_0x239a75);if(_0x597b35&&'type'in _0x597b35)return _0x597b35;}}['_handleAttributeSuggestionDescription'](_0x1bdbc8,_0x30985e){const _0x95c82b=_0x30985e['data'],_0x27a3c0=void 0x0===_0x95c82b['newValue']?'removeFormat':'addFormat';_0x1bdbc8['push']({'type':_0x27a3c0,'key':_0x95c82b['key']});}['_handleRenameSuggestionDescription'](_0x30f162,_0x30bf7f){_0x30f162['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x30bf7f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3994be,_0xcfabee,_0x46cff3){if(this['_addDescriptionItems'](_0x3994be,_0xcfabee),_0x46cff3&&_0x46cff3['getFirstRange']()&&!_0xcfabee['getFirstRange']()['end']['isEqual'](_0x46cff3['getFirstRange']()['start'])){const _0x30135d=_0x3994be[_0x3994be['length']-0x1],_0x10b976='insertion'==_0xcfabee['type']?'add':'remove';_0x30135d&&'text'==_0x30135d['type']&&(_0x30135d[_0x10b976]+='\x0a');}}}class U extends _0x11ea7f{['afterInit'](){const _0x5afa87=this['editor'],_0x33792c=_0x5afa87['plugins']['get']('TrackChangesEditing');_0x5afa87['commands']['get']('showAIAssistant')&&_0x33792c['enableCommand']('showAIAssistant');}}class V extends _0x11ea7f{['afterInit'](){const _0x394e42=this['editor'],_0x581dfc=_0x394e42['locale'];if(!_0x394e42['plugins']['has']('AlignmentEditing'))return;const _0x2cf0c5=_0x394e42['plugins']['get']('TrackChangesEditing');_0x2cf0c5['enableDefaultAttributesIntegration']('alignment'),_0x2cf0c5['registerBlockAttribute']('alignment'),_0x2cf0c5['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x581dfc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19cef9=this['editor'],_0x250d7d=_0x19cef9['locale'];_0x19cef9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x273974=>{if('formatBlock'!=_0x273974['type'])return;const {data:_0x482cf1}=_0x273974;if(_0x482cf1&&'alignment'==_0x482cf1['commandName']){const _0x40eee1=_0x482cf1['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x250d7d,'*Format:*\x20%0',function(_0x1e5da2){switch(_0x1e5da2){case'left':return c(_0x250d7d,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x250d7d,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x250d7d,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x250d7d,'FORMAT_JUSTIFY_TEXT');}}(_0x40eee1))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x11ea7f{['afterInit'](){const _0x388fa1=this['editor'],_0x42819a=_0x388fa1['plugins']['get']('TrackChangesEditing'),_0x100e55=_0x388fa1['locale'];for(const _0x24846e of Zt){if(!_0x388fa1['plugins']['has'](_0x24846e))continue;const _0x3f81c1=_0x24846e['slice'](0x0,-0x7)['toLowerCase'](),_0x510d84='FORMAT_'+_0x3f81c1['toUpperCase']();_0x42819a['enableDefaultAttributesIntegration'](_0x3f81c1),_0x42819a['registerInlineAttribute'](_0x3f81c1),_0x42819a['descriptionFactory']['registerAttributeLabel'](_0x3f81c1,c(_0x100e55,_0x510d84));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x448949=this['editor'],_0x2af97e=_0x448949['locale'],_0x339696=_0x448949['plugins']['get']('TrackChangesEditing');function _0x52a48f(_0x4ad98b,_0x2755a2){_0x339696['descriptionFactory']['registerDescriptionCallback'](_0x23f779=>{if('formatInline'!=_0x23f779['type'])return;const {data:_0x1132ac}=_0x23f779;return _0x1132ac&&_0x1132ac['commandName']===_0x4ad98b?_0x1132ac['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2af97e,'*Format:*\x20%0',_0x2755a2)}:{'type':'format','content':c(_0x2af97e,'*Remove\x20format:*\x20%0',_0x2755a2)}:void 0x0;});}_0x52a48f('bold',c(_0x2af97e,'FORMAT_BOLD')),_0x52a48f('italic',c(_0x2af97e,'FORMAT_ITALIC')),_0x52a48f('underline',c(_0x2af97e,'FORMAT_UNDERLINE')),_0x52a48f('code',c(_0x2af97e,'FORMAT_CODE')),_0x52a48f('strikethrough',c(_0x2af97e,'FORMAT_STRIKETHROUGH')),_0x52a48f('subscript',c(_0x2af97e,'FORMAT_SUBSCRIPT')),_0x52a48f('superscript',c(_0x2af97e,'FORMAT_SUPERSCRIPT'));}}class G extends _0x11ea7f{['afterInit'](){const _0x5039aa=this['editor'],_0x1b0b8d=_0x5039aa['locale'];if(!_0x5039aa['plugins']['has']('BlockQuoteEditing'))return;const _0x1cace7=_0x5039aa['plugins']['get']('TrackChangesEditing'),_0x434cb6=this['editor']['commands']['get']('blockQuote');_0x1cace7['enableCommand']('blockQuote',(_0x11810c,_0x44621b={})=>{const _0x136001=this['editor']['model']['document']['selection'],_0x392bce=_0x44621b&&void 0x0!==_0x44621b['forceValue']?_0x44621b['forceValue']:!_0x434cb6['value'];let _0x3602f9=[];if(_0x392bce){const _0x418a4d=Array['from'](_0x136001['getSelectedBlocks']())['filter'](_0x1b6c66=>oo(_0x1b6c66)||function(_0x1785e7,_0x275748){const _0x8b8212=_0x275748['checkChild'](_0x1785e7['parent'],'blockQuote'),_0x5d6dcb=_0x275748['checkChild'](['$root','blockQuote'],_0x1785e7);return _0x8b8212&&_0x5d6dcb;}(_0x1b6c66,this['editor']['model']['schema']));_0x3602f9=to(_0x418a4d,_0x5039aa['model']);}else{const _0x43ee84=Array['from'](_0x136001['getSelectedBlocks']())['filter'](_0x4dffff=>oo(_0x4dffff));_0x3602f9=to(_0x43ee84,_0x5039aa['model']);}_0x5039aa['model']['change'](()=>{for(const _0x1943ae of _0x3602f9)_0x1cace7['markBlockFormat'](_0x1943ae,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x392bce}]});});}),_0x1cace7['descriptionFactory']['registerDescriptionCallback'](_0x38d18b=>{const {data:_0x3a9ce6}=_0x38d18b;if(_0x3a9ce6&&'blockQuote'==_0x3a9ce6['commandName']){const _0x11bc40=c(_0x1b0b8d,'ELEMENT_BLOCK_QUOTE');return _0x3a9ce6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1b0b8d,'*Set\x20format:*\x20%0',_0x11bc40)}:{'type':'format','content':c(_0x1b0b8d,'*Remove\x20format:*\x20%0',_0x11bc40)};}});}}function oo(_0x5f310a){return'blockQuote'==_0x5f310a['parent']['name'];}class L extends _0x11ea7f{['afterInit'](){const _0x309e18=this['editor'],_0x30e7b1=_0x309e18['locale'],_0x5f1f31=_0x309e18['plugins']['get']('TrackChangesEditing');_0x309e18['plugins']['has']('BookmarkEditing')&&(_0x5f1f31['enableCommand']('insertBookmark'),_0x5f1f31['enableDefaultAttributesIntegration']('updateBookmark'),_0x5f1f31['registerBlockAttribute']('bookmarkId'),_0x5f1f31['descriptionFactory']['registerDescriptionCallback'](_0x9bc879=>{if('insertion'!=_0x9bc879['type']&&'deletion'!=_0x9bc879['type']&&'attribute'!=_0x9bc879['type'])return;const _0x21c433=_0x9bc879['getContainedElement']();if(null==_0x21c433)return;if(!_0x21c433['is']('element','bookmark'))return;const _0x1d6620=_0x21c433['getAttribute']('bookmarkId');if('insertion'==_0x9bc879['type'])return{'type':'insertion','content':c(_0x30e7b1,'*Insert:*\x20%0','\x22'+_0x1d6620+'\x22\x20'+c(_0x30e7b1,'ELEMENT_BOOKMARK'))};if('deletion'==_0x9bc879['type'])return{'type':'deletion','content':c(_0x30e7b1,'*Remove:*\x20%0','\x22'+_0x1d6620+'\x22\x20'+c(_0x30e7b1,'ELEMENT_BOOKMARK'))};const {data:_0x24f98f}=_0x9bc879;if(!_0x24f98f||'bookmarkId'!=_0x24f98f['key'])return;return{'type':'format','content':c(_0x30e7b1,'*Set\x20bookmark:*\x20%0','\x22'+_0x24f98f['newValue']+'\x22')};}));}}class J extends _0x11ea7f{['afterInit'](){const _0x39e8d1=this['editor'];_0x39e8d1['plugins']['has']('CaseChange')&&(_0x39e8d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x39e8d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x39e8d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x11ea7f{['afterInit'](){const _0x5da135=this['editor'];_0x5da135['commands']['get']('ckbox')&&_0x5da135['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x11ea7f{['afterInit'](){const _0x5525ef=this['editor'];if(!_0x5525ef['plugins']['has']('CodeBlock'))return;const _0x3193f1=_0x5525ef['plugins']['get']('TrackChangesEditing'),_0x5c8062=_0x5525ef['locale'],_0x33ac2e=_0x5525ef['config']['get']('codeBlock')['languages'],_0x321e01=_0x5525ef['commands']['get']('codeBlock');_0x3193f1['enableCommand']('indentCodeBlock'),_0x3193f1['enableCommand']('outdentCodeBlock'),_0x3193f1['enableCommand']('codeBlock',(_0x443484,_0x4dc424={})=>{const _0x5acb0b=_0x5525ef['model'],_0x44e3b8=_0x5525ef['model']['document']['selection'],_0x3ec977=_0x4dc424&&void 0x0!==_0x4dc424['forceValue']?_0x4dc424['forceValue']:!_0x321e01['value'];let _0x4df317;_0x4dc424['language']||(_0x4dc424['language']=_0x33ac2e[0x0]['language']),_0x4df317=_0x3ec977?Array['from'](_0x44e3b8['getSelectedBlocks']())['filter'](_0xdca95c=>eo(_0xdca95c)||function(_0x42ec25,_0xf7b517){if(_0x42ec25['is']('rootElement')||_0xf7b517['isLimit'](_0x42ec25))return!0x1;return _0xf7b517['checkChild'](_0x42ec25['parent'],'codeBlock');}(_0xdca95c,_0x5acb0b['schema'])):Array['from'](_0x44e3b8['getSelectedBlocks']())['filter'](_0x13cedb=>eo(_0x13cedb));const _0x6c2cd9=to(_0x4df317,_0x5acb0b);_0x5acb0b['change'](()=>{for(const _0x528de3 of _0x6c2cd9)_0x3193f1['markBlockFormat'](_0x528de3,{'commandName':'codeBlock','commandParams':[{..._0x4dc424,'forceValue':_0x3ec977}],'formatGroupId':'blockName'});});}),(_0x3193f1['descriptionFactory']['registerElementLabel']('codeBlock',_0x2ae932=>c(_0x5c8062,'ELEMENT_CODE_BLOCK',_0x2ae932)),_0x3193f1['descriptionFactory']['registerDescriptionCallback'](_0x2eef16=>{if('formatBlock'!=_0x2eef16['type'])return;const _0x57c69b=_0x5c8062['t'],{data:_0x29469f}=_0x2eef16;if(!_0x29469f||'codeBlock'!=_0x29469f['commandName'])return;const _0xed40ad=_0x29469f['commandParams'][0x0]['language'],_0xa0296b=_0x57c69b(_0x33ac2e['find'](_0x29ebfb=>_0x29ebfb['language']===_0xed40ad)['label'])['toLowerCase']();return _0x29469f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5c8062,'*Set\x20format:*\x20%0',c(_0x5c8062,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xa0296b+')')}:{'type':'format','content':c(_0x5c8062,'*Remove\x20format:*\x20%0',c(_0x5c8062,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xa2ac5f){return'codeBlock'==_0xa2ac5f['name'];}class q extends _0x11ea7f{['afterInit'](){const _0x230f86=this['editor'];if(!_0x230f86['plugins']['has']('CommentsEditing'))return;_0x230f86['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x10bc29,_0x18120a,_0xb5aed8){const _0x2d0c5d=[];for(const _0x1e759b of _0x18120a['getItems']())_0x1e759b['hasAttribute'](_0x10bc29)&&_0x2d0c5d['push'](_0xb5aed8['createRangeOn'](_0x1e759b));return _0x2d0c5d;}function Fe(_0x584a16,_0x501a34,{showActiveMarker:_0x16d1c6=!0x0}={}){const _0x4fe7bd=_0x584a16['plugins']['get']('TrackChangesEditing');return(_0x3bffd6,_0x2c937e,_0xcf6625)=>{if(!_0xcf6625['consumable']['test'](_0x2c937e['markerRange'],_0x3bffd6['name']))return;const _0xf62d27=_0x2c937e['markerRange']['getWalker'](),_0x3acdd1=_0x2c937e['markerRange']['start'],_0x238a9e=_0x584a16['model']['schema'];let _0x2c2909=null,_0x4cfba2=null,_0x171e44=!0x1,_0x17006c=!0x1;for(const _0x45508a of _0xf62d27){const _0xe5a50c=_0x45508a['item'];_0x171e44=_0x171e44||_0x238a9e['isContent'](_0xe5a50c);const _0xc2361f=_0xcf6625['mapper']['toViewElement'](_0xe5a50c);if(_0xc2361f&&_0xc2361f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x45508a['type']&&(_0x238a9e['isBlock'](_0xe5a50c)&&!_0x238a9e['isLimit'](_0xe5a50c)&&(_0xe5a50c['nextSibling']||_0x3acdd1['isAtEnd']?_0x2c2909&&_0x2c2909['parent']==_0xe5a50c||(_0x2c2909=_0xe5a50c,_0x5529d4(_0x45508a['previousPosition']),_0x17006c=!0x0):_0x4cfba2=_0x4cfba2||_0x45508a['previousPosition']));}function _0x5529d4(_0x2ed454){const {id:_0x173ca8,authorId:_0x576bf5}=_0x4fe7bd['_splitMarkerName'](_0x2c937e['markerName']),_0x4db8ab=_0xcf6625['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x501a34,'data-suggestion':_0x173ca8,'data-author-id':_0x576bf5}),_0x4b3060=_0xcf6625['mapper']['toViewPosition'](_0x2ed454);_0x16d1c6&&_0x4fe7bd['activeMarkers']['includes'](_0x2c937e['markerName'])&&_0xcf6625['writer']['addClass']('ck-suggestion-marker--active',_0x4db8ab),_0xcf6625['writer']['insert'](_0x4b3060,_0x4db8ab),_0xcf6625['mapper']['bindElementToMarker'](_0x4db8ab,_0x2c937e['markerName']);}_0x171e44||_0x17006c||!_0x4cfba2||_0x5529d4(_0x4cfba2);};}class z extends _0x11ea7f{static get['requires'](){return[_0x544c25];}['init'](){const _0xdb427e=this['editor'],_0x38e2e9=_0xdb427e['plugins']['get']('TrackChangesEditing');_0x38e2e9['enableCommand']('delete');const _0x2564ef=_0xdb427e['commands']['get']('deleteForward');_0x38e2e9['enableCommand']('deleteForward',(_0x5351b0,_0x5e0b39={})=>{const _0x11dabc=_0xdb427e['model']['createSelection'](_0xdb427e['model']['document']['selection']);_0x11dabc['isCollapsed']&&_0xdb427e['model']['modifySelection'](_0x11dabc,{'direction':'forward','unit':_0x5e0b39['unit']});const _0x4be3cc=_0x11dabc['getFirstRange'](),_0x2559fa=_0x53edc8['fromRange'](_0x4be3cc);let _0xbe987;_0x5351b0(_0x5e0b39),_0xbe987='$graveyard'==_0x2559fa['root']['rootName']?_0xdb427e['model']['createRange'](_0x4be3cc['start']):_0xdb427e['model']['createRange'](_0x2559fa['start'],_0x2559fa['end']),_0x2559fa['detach'](),_0xdb427e['model']['enqueueChange'](_0x2564ef['buffer']['batch'],_0x5a5c66=>{_0x2564ef['buffer']['lock'](),_0x5a5c66['setSelection'](_0x5a5c66['createRange'](_0xbe987['end'])),_0x2564ef['buffer']['unlock']();});}),_0xdb427e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0xdb427e,'merge'),{'priority':'high'}),_0xdb427e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x225377,_0x46b390,_0x3ea239)=>{_0x3ea239['options']['showSuggestionHighlights']&&Fe(_0xdb427e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x225377,_0x46b390,_0x3ea239);},{'priority':'high'}),_0xdb427e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x306923,_0x4aa8d5,_0x4ab60c)=>{const _0x2c9cd1=_0x4ab60c['mapper']['markerNameToElements'](_0x4aa8d5['markerName']);if(_0x2c9cd1){for(const _0x2f62ad of _0x2c9cd1)_0x2f62ad['is']('uiElement')&&(_0x4ab60c['mapper']['unbindElementFromMarkerName'](_0x2f62ad,_0x4aa8d5['markerName']),_0x4ab60c['writer']['remove'](_0x2f62ad));}},{'priority':'high'});}}class W extends _0x11ea7f{['afterInit'](){const _0x11dfcf=this['editor'];if(!_0x11dfcf['plugins']['has']('ListEditing'))return;const _0x2bed8b=_0x11dfcf['locale'],_0x13534b=_0x11dfcf['plugins']['get']('TrackChangesEditing'),_0x12f728=_0x11dfcf['plugins']['has']('TodoListEditing'),_0x37bc1b=!!_0x11dfcf['config']['get']('list.multiBlock');function _0x2ab931(_0xf398f){return{'type':'format','content':''+c(_0x2bed8b,'*Set\x20format:*\x20%0',_0xf398f)};}function _0x48518c(_0x2e3b1){return{'type':'format','content':''+c(_0x2bed8b,'*Remove\x20format:*\x20%0',_0x2e3b1)};}_0x13534b['enableDefaultAttributesIntegration']('numberedList'),_0x13534b['enableDefaultAttributesIntegration']('bulletedList'),_0x13534b['enableDefaultAttributesIntegration']('customNumberedList'),_0x13534b['enableDefaultAttributesIntegration']('customBulletedList'),_0x13534b['enableDefaultAttributesIntegration']('indentList'),_0x13534b['enableDefaultAttributesIntegration']('outdentList'),_0x13534b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x13534b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x13534b['registerBlockAttribute']('listItemId'),_0x13534b['registerBlockAttribute']('listType'),_0x13534b['registerBlockAttribute']('listIndent'),_0x37bc1b&&(_0x13534b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x13534b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x12f728&&(_0x13534b['enableDefaultAttributesIntegration']('todoList'),_0x13534b['enableDefaultAttributesIntegration']('checkTodoList'),_0x13534b['registerBlockAttribute']('todoListChecked'),_0x13534b['descriptionFactory']['registerDescriptionCallback'](_0x49d547=>{const {data:_0x5e45d7}=_0x49d547;if(_0x5e45d7&&'todoListChecked'==_0x5e45d7['key'])return{'type':'format','content':_0x5e45d7['newValue']?c(_0x2bed8b,'*Check\x20item*'):c(_0x2bed8b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x316870=>{if(_0x316870['batch']['isUndo'])return!0x1;let _0x1ceab2=!0x1;const _0x340400=_0x13534b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18041b=>'todoListChecked'===_0x13534b['_getAttributeKey'](_0x18041b));for(const _0x3b4edd of _0x340400){'todo'!=_0x3b4edd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x13534b['_findSuggestions'](_0x3b4edd['getFirstRange'](),'attribute')['find'](_0x484933=>'listType'===_0x13534b['_getAttributeKey'](_0x484933['suggestion']))||(_0x316870['removeMarker'](_0x3b4edd['getFirstMarker']()),_0x1ceab2=!0x0));}return _0x1ceab2;})),_0x13534b['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x2bed8b,'FORMAT_INDENT'));const _0x7af824={'type':'format','content':''};_0x13534b['descriptionFactory']['registerDescriptionCallback'](_0x512418=>{const {data:_0x51e6aa}=_0x512418;if(!_0x51e6aa||'listType'!=_0x51e6aa['key'])return;let _0x1b395a=_0x512418['head'];for(;_0x1b395a;){if(_0x1b395a['data']&&(('listStyle'==_0x1b395a['data']['key']||'listMarkerStyle'==_0x1b395a['data']['key'])&&(_0x1b395a['data']['newValue']&&'default'!=_0x1b395a['data']['newValue']||'default'!=_0x1b395a['data']['oldValue']&&!_0x51e6aa['newValue'])||!_0x37bc1b&&_0x1b395a['data']['key']==u))return _0x7af824;_0x1b395a=_0x1b395a['next'];}if(null==_0x51e6aa['newValue'])switch(_0x51e6aa['oldValue']){case'bulleted':return _0x48518c(c(_0x2bed8b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48518c(c(_0x2bed8b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48518c(c(_0x2bed8b,'ELEMENT_TODO_LIST'));}switch(_0x51e6aa['newValue']){case'bulleted':return _0x2ab931(c(_0x2bed8b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ab931(c(_0x2bed8b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ab931(c(_0x2bed8b,'ELEMENT_TODO_LIST'));}}),_0x13534b['descriptionFactory']['registerDescriptionCallback'](_0x36b2f5=>{const {data:_0x1e40be}=_0x36b2f5;if(_0x1e40be&&'listIndent'==_0x1e40be['key'])return null==_0x1e40be['newValue']||null==_0x1e40be['oldValue']&&0x0==_0x1e40be['newValue']?_0x7af824:void 0x0;}),_0x13534b['descriptionFactory']['registerDescriptionCallback'](_0x5614a3=>{if('attribute'!=_0x5614a3['type'])return;const {data:_0x1d6bd9}=_0x5614a3;if(!_0x1d6bd9||'listItemId'!=_0x1d6bd9['key'])return;const _0x400537=Te(_0x5614a3);return'newValue'==_0x400537?{'type':'format','content':c(_0x2bed8b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x400537?{'type':'format','content':c(_0x2bed8b,'*Split:*\x20list\x20item')}:_0x7af824;}),_0x11dfcf['model']['document']['registerPostFixer'](_0x59bc46=>this['listItemIdFixer'](_0x59bc46)),_0x11dfcf['model']['document']['registerPostFixer'](_0x3992a2=>this['noTrackChangesFixer'](_0x3992a2)),_0x11dfcf['model']['document']['on']('change:data',(_0x339d00,_0x42306c)=>{if(_0x42306c['isUndo']||!_0x42306c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x11b855){if(_0x11b855['batch']['isUndo']||!_0x11b855['batch']['isLocal'])return!0x1;let _0xe2ac22=!0x1;const _0x38038d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3423e1=>_0x3423e1['data']&&'listItemId'==_0x3423e1['data']['key'])['filter'](_0x381372=>_0x381372['data']['newValue']&&_0x381372['data']['oldValue']);for(const _0x29252c of _0x38038d)Te(_0x29252c)||(_0x11b855['removeMarker'](_0x29252c['getFirstMarker']()),_0xe2ac22=!0x0);return _0xe2ac22;}['noTrackChangesFixer'](_0x106b43){if(_0x106b43['batch']['isUndo']||!_0x106b43['batch']['isLocal'])return!0x1;const _0x4145bb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4145bb['trackChangesCommand']['value'])return!0x1;let _0x6a83a8=!0x1;const _0x5d1317=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x497d3d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x111a1d=>'attribute'==_0x111a1d['type'])['filter'](_0x2fbc60=>_0x5d1317['includes'](_0x2fbc60['attributeKey']));if(0x0==_0x497d3d['length'])return _0x6a83a8;for(const _0x371d89 of _0x497d3d){const _0xf436b9=_0x4145bb['_findSuggestions'](_0x371d89['range'],'attribute')['filter'](_0x4cd352=>!_0x4cd352['meta']['isNextTo'])['map'](_0x3f4f97=>_0x3f4f97['suggestion'])['filter'](_0x4aee34=>{const _0x50bb2a=_0x4145bb['_getAttributeKey'](_0x4aee34);return _0x5d1317['includes'](_0x50bb2a);});if(_0xf436b9['length']){for(const _0x252bb0 of _0xf436b9)_0x106b43['removeMarker'](_0x252bb0['getFirstMarker']());_0x6a83a8=!0x0;}}return _0x6a83a8;}['assureChains'](){const _0x2135fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15ed47=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4de280;const _0x1ff6cf=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x22498f=>{if(_0x22498f['data']['oldRange']||!_0x22498f['data']['newRange'])return null;if(!_0x22498f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x24a63a}=_0x2135fb['_splitMarkerName'](_0x22498f['name']);if(!_0x2135fb['hasSuggestion'](_0x24a63a))return null;const _0x26b2d7=_0x2135fb['getSuggestion'](_0x24a63a);return _0x15ed47['includes'](_0x26b2d7['data']['key']);})['map'](_0x5a7ea1=>{const {id:_0x33504a}=_0x2135fb['_splitMarkerName'](_0x5a7ea1['name']),_0x5f5987=_0x2135fb['getSuggestion'](_0x33504a);return _0x4de280=_0x5f5987['attributes']['groupId'],_0x5f5987['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1ff6cf['size'])return;const _0x459f48=_0x2135fb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5186f8=>'attribute'==_0x5186f8['type']&&_0x5186f8['data']&&_0x15ed47['includes'](_0x5186f8['data']['key'])&&_0x5186f8['attributes']['groupId']!=_0x4de280)['map'](_0xcfb9a2=>({'listItem':_0xcfb9a2['getFirstRange']()['start']['nodeAfter'],'groupId':_0xcfb9a2['attributes']['groupId']})),_0x500f16=new Set();for(const {groupId:_0x40f9f8,listItem:_0x3af73f}of _0x459f48)_0x1ff6cf['has'](_0x3af73f)&&_0x500f16['add'](_0x40f9f8);for(const _0x1eafc3 of _0x2135fb['getSuggestions']())_0x500f16['has'](_0x1eafc3['attributes']['groupId'])&&_0x1eafc3['setAttribute']('groupId',_0x4de280);}['_supportLegacySuggestions'](){const _0x4a2af3=this['editor'],_0x1e8cf0=_0x4a2af3['locale'],_0x14683c=_0x4a2af3['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x14683c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x47334f,_0x4adef7){const _0x9a2a44=[];for(let _0x2af7fc of _0x47334f)_0x2af7fc['start']['nodeAfter']===_0x2af7fc['end']['parent']&&(_0x2af7fc=_0x4a2af3['model']['createRange'](_0x4a2af3['model']['createPositionAt'](_0x2af7fc['start']['nodeAfter'],0x0))),_0x9a2a44['push'](_0x2af7fc);_0x4a2af3['model']['change'](_0x2a01e3=>{const _0xb87117=_0x4a2af3['model']['document']['selection'],_0x23807d=Array['from'](_0xb87117['getRanges']())['map'](_0x32b8ef=>_0x53edc8['fromRange'](_0x32b8ef));_0x2a01e3['setSelection'](_0x9a2a44),_0x4a2af3['commands']['get'](_0x4adef7['commandName'])['refresh'](),_0x4adef7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a2af3['execute'](_0x4adef7['commandName'],..._0x4adef7['commandParams']),_0x2a01e3['setSelection'](_0x23807d);for(const _0x3cf0f2 of _0x23807d)_0x3cf0f2['detach']();});}),_0x14683c['descriptionFactory']['registerElementLabel'](function(_0x2b1844){const _0x480c60=!_0x4a2af3['model']['schema']['isObject'](_0x2b1844),_0x562bf1=_0x2b1844['previousSibling'],_0x417c88=_0x2b1844['nextSibling'],_0x1aaa5d=_0x2b1844['getAttribute']('listItemId'),_0x5e8106=!_0x562bf1||_0x562bf1['getAttribute']('listItemId')!==_0x1aaa5d,_0x2433f6=!_0x417c88||_0x417c88['getAttribute']('listItemId')!==_0x1aaa5d;return _0x480c60&&Boolean(_0x1aaa5d)&&_0x5e8106&&_0x2433f6;},_0x388886=>c(_0x1e8cf0,'ELEMENT_LIST_ITEM',_0x388886));}['_registerLegacyDescription'](){const _0x178e42=this['editor'],_0x44ee8b=_0x178e42['locale'];function _0x155797(_0x503693){const _0x207f0a=_0x178e42['commands']['get']('bulletedList')['value'],_0x1755f5=_0x178e42['commands']['get']('numberedList')['value'];return'numberedList'===_0x503693?_0x207f0a:_0x1755f5;}_0x178e42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x22d43f){if('formatBlock'!=_0x22d43f['type'])return;const {data:_0x5d320a}=_0x22d43f;if(!_0x5d320a)return;let _0x1ee24b,_0x7a9005,_0x1d091f,_0x1cd5ad;switch(_0x5d320a['commandName']){case'bulletedList':_0x1d091f=_0x5d320a['commandParams'][0x0]['forceValue'],_0x1cd5ad=_0x155797(_0x5d320a['commandName']),_0x1ee24b=_0x1d091f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1cd5ad&&_0x178e42['config']['get']('list.multiBlock')||(_0x1ee24b='*Change\x20to:*\x20%0'),_0x7a9005={'type':'format','content':c(_0x44ee8b,_0x1ee24b,c(_0x44ee8b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1d091f=_0x5d320a['commandParams'][0x0]['forceValue'],_0x1cd5ad=_0x155797(_0x5d320a['commandName']),_0x1ee24b=_0x1d091f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1cd5ad&&_0x178e42['config']['get']('list.multiBlock')||(_0x1ee24b='*Change\x20to:*\x20%0'),_0x7a9005={'type':'format','content':c(_0x44ee8b,_0x1ee24b,c(_0x44ee8b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1ee24b='*Indent:*\x20%0',_0x7a9005={'type':'format','content':c(_0x44ee8b,_0x1ee24b,c(_0x44ee8b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1ee24b=function(_0x5cb85b){const _0x95c63e=_0x5cb85b['getFirstRange']();let _0x2c13cf=_0x95c63e['start']['nodeAfter'];for(;_0x2c13cf&&_0x95c63e['containsItem'](_0x2c13cf);){if(_0x2c13cf['getAttribute']('listIndent')>0x0)return!0x1;_0x2c13cf=_0x2c13cf['nextSibling'];}return!0x0;}(_0x22d43f)?c(_0x44ee8b,'*Format:*\x20remove\x20from\x20%0',c(_0x44ee8b,function(_0x173579){return'ELEMENT_'+_0x173579['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x22d43f))):c(_0x44ee8b,'*Outdent:*\x20%0',c(_0x44ee8b,'ELEMENT_LIST_ITEM')),_0x7a9005={'type':'format','content':_0x1ee24b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5d320a['multipleBlocks']&&(_0x1ee24b='*Merge:*\x20%0',_0x7a9005={'type':'deletion','content':c(_0x44ee8b,_0x1ee24b,c(_0x44ee8b,'ELEMENT_LIST_ITEM'))});}return _0x7a9005;});}}function Te(_0x3031af){let _0x1a0ae5=_0x3031af['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1a0ae5;){const _0x5d6750=_0x1a0ae5['getAttribute']('listItemId');if(!_0x5d6750)return!0x1;if(_0x5d6750==_0x3031af['data']['newValue'])return'newValue';if(_0x5d6750==_0x3031af['data']['oldValue'])return'oldValue';_0x1a0ae5=_0x1a0ae5['previousSibling'];}return!0x1;}class Se extends _0x11ea7f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5df778=this['editor']['config']['get']('list.properties'),_0x4f2e1e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5df778['styles']&&(_0x4f2e1e['enableDefaultAttributesIntegration']('listStyle'),_0x4f2e1e['registerBlockAttribute']('listStyle')),_0x5df778['reversed']&&(_0x4f2e1e['enableDefaultAttributesIntegration']('listReversed'),_0x4f2e1e['registerBlockAttribute']('listReversed')),_0x5df778['startIndex']&&(_0x4f2e1e['enableDefaultAttributesIntegration']('listStart'),_0x4f2e1e['registerBlockAttribute']('listStart'));const _0x109754={'type':'format','content':''};_0x4f2e1e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x83b7d=this['editor']['locale'];_0x4f2e1e['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x83b7d,'FORMAT_LIST_REVERSED')),_0x4f2e1e['descriptionFactory']['registerDescriptionCallback'](_0x25cecd=>{const {data:_0x3d5bf5}=_0x25cecd;if(_0x3d5bf5&&'listReversed'==_0x3d5bf5['key'])return null==_0x3d5bf5['newValue']||0x0==_0x3d5bf5['newValue']&&null==_0x3d5bf5['oldValue']?_0x109754:void 0x0;}),_0x4f2e1e['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x83b7d,'FORMAT_LIST_START')),_0x4f2e1e['descriptionFactory']['registerDescriptionCallback'](_0x2fff9f=>{const {data:_0x48c735}=_0x2fff9f;if(_0x48c735&&'listStart'==_0x48c735['key'])return null==_0x48c735['newValue']||0x1==_0x48c735['newValue']&&null==_0x48c735['oldValue']?_0x109754:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2fe280=>{if(_0x2fe280['batch']['isUndo'])return!0x1;let _0x553b11=!0x1;const _0x2bb257=_0x4f2e1e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x504216=>{const _0xd45990=_0x4f2e1e['_getAttributeKey'](_0x504216);return'listStart'==_0xd45990||'listReversed'==_0xd45990;});for(const _0x428ee7 of _0x2bb257){const _0x4ac297=_0x428ee7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4ac297||'customNumbered'==_0x4ac297)continue;_0x4f2e1e['_findSuggestions'](_0x428ee7['getFirstRange'](),'attribute')['find'](_0x3f5ad9=>'listType'==_0x4f2e1e['_getAttributeKey'](_0x3f5ad9['suggestion']))||(_0x2fe280['removeMarker'](_0x428ee7['getFirstMarker']()),_0x553b11=!0x0);}return _0x553b11;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x51edb1){const _0x32d667=this['editor']['locale'],{data:_0x5a6b44}=_0x51edb1,_0x5adb91={'type':'format','content':''};if(!_0x5a6b44||'listStyle'!=_0x5a6b44['key'])return;if(!_0x5a6b44['oldValue'])return'default'==_0x5a6b44['newValue']?_0x5adb91:{'type':'format','content':''+c(_0x32d667,'*Set\x20format:*\x20%0',c(_0x32d667,this['_getTranslationKeyForListStyle'](_0x5a6b44['newValue'])))};if(!_0x5a6b44['newValue']){if('default'==_0x5a6b44['oldValue'])return _0x5adb91;let _0x4b5688=_0x51edb1['head'];for(;_0x4b5688;){if(_0x4b5688['data']&&'listType'==_0x4b5688['data']['key']&&_0x4b5688['data']['newValue'])return _0x5adb91;_0x4b5688=_0x4b5688['next'];}return{'type':'format','content':''+c(_0x32d667,'*Remove\x20format:*\x20%0',c(_0x32d667,this['_getTranslationKeyForListStyle'](_0x5a6b44['oldValue'])))};}if('default'!=_0x5a6b44['newValue'])return{'type':'format','content':''+c(_0x32d667,'*Set\x20format:*\x20%0',c(_0x32d667,this['_getTranslationKeyForListStyle'](_0x5a6b44['newValue'])))};let _0x1b734e=_0x51edb1['head'];for(;_0x1b734e;){if(_0x1b734e['data']&&'listType'==_0x1b734e['data']['key']&&_0x1b734e['data']['newValue']&&_0x1b734e['data']['oldValue'])return _0x5adb91;_0x1b734e=_0x1b734e['next'];}return{'type':'format','content':c(_0x32d667,'*Set\x20format:*\x20%0',c(_0x32d667,'ELEMENT_'+_0x51edb1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5a59c9=this['editor'],_0x55ddc7=_0x5a59c9['locale'];_0x5a59c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43500c=>{if('formatBlock'!=_0x43500c['type'])return;const {data:_0x567de7}=_0x43500c;if(!_0x567de7)return;let _0x1b54a9,_0x119575;switch(_0x567de7['commandName']){case'listStyle':_0x1b54a9='*Change\x20to:*\x20%0',_0x119575={'type':'format','content':c(_0x55ddc7,_0x1b54a9,c(_0x55ddc7,this['_getTranslationKeyForListStyle'](_0x567de7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1b54a9=_0x567de7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x119575={'type':'format','content':c(_0x55ddc7,_0x1b54a9)};break;case'listStart':_0x1b54a9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x119575={'type':'format','content':c(_0x55ddc7,_0x1b54a9,_0x567de7['commandParams'][0x0]['startIndex'])};}return _0x119575;});}['_getTranslationKeyForListStyle'](_0x330e16){return'ELEMENT_'+function(_0x12ef83){if(_e['includes'](_0x12ef83))return'bulleted';if(Re['includes'](_0x12ef83))return'numbered';return null;}(_0x330e16)['toUpperCase']()+'_LIST_'+_0x330e16['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x11ea7f{['afterInit'](){const _0x570c19=this['editor'];_0x570c19['commands']['get']('emoji')&&_0x570c19['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x11ea7f{static get['requires'](){return[_0x120978];}['init'](){const _0x50883d=this['editor'],_0x12e9ff=_0x50883d['plugins']['get']('TrackChangesEditing'),_0x23ec8d=_0x50883d['commands']['get']('enter');_0x12e9ff['enableCommand']('enter',()=>{_0x50883d['model']['change'](_0x5d8253=>{const _0x2ee180=_0x50883d['model']['document']['selection'],_0x4944dc=_0x2ee180['getFirstPosition'](),_0x4c9a5b=_0x53edc8['fromRange'](_0x2ee180['getFirstRange']());if(_0x23ec8d['enterBlock'](_0x5d8253)){const _0x5597b3=_0x50883d['model']['createPositionAt'](_0x4944dc['parent']['nextSibling'],0x0),_0x53bc8e=_0x5d8253['createRange'](_0x4944dc,_0x5597b3);_0x12e9ff['markInsertion'](_0x53bc8e);}else _0x5d8253['setSelection'](_0x5d8253['createRange'](_0x4c9a5b['end']));_0x4c9a5b['detach'](),_0x23ec8d['fire']('afterExecute',{'writer':_0x5d8253});});}),_0x50883d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x50883d,'split'),{'priority':'high'}),_0x50883d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x26d287,_0x2855fd,_0x2593a6)=>{const _0x34979a=_0x2593a6['mapper']['markerNameToElements'](_0x2855fd['markerName']);if(_0x34979a){for(const _0x59f85c of _0x34979a)_0x59f85c['hasClass']('ck-suggestion-marker-split')&&(_0x2593a6['mapper']['unbindElementFromMarkerName'](_0x59f85c,_0x2855fd['markerName']),_0x2593a6['writer']['remove'](_0x59f85c));}},{'priority':'high'}),_0x50883d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x36b371,_0x445e22,_0x5ba6b2)=>{_0x5ba6b2['options']['showSuggestionHighlights']&&Fe(_0x50883d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x36b371,_0x445e22,_0x5ba6b2);},{'priority':'high'});}}class Z extends _0x11ea7f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x330370=this['editor']['plugins']['get']('TrackChangesEditing');_0x330370['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x330370['enableCommand']('findNext'),_0x330370['enableCommand']('findPrevious'),_0x330370['enableCommand']('replace'),_0x330370['enableCommand']('replaceAll');}['handleFindCommand'](_0x348393,_0x2262c5,_0x1083e6={}){const _0x4fc4bc=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x348393(_0x1e7fa3=>{let _0x11efc4=('string'==typeof _0x2262c5?_0x4fc4bc['findByTextCallback'](_0x2262c5,_0x1083e6):_0x2262c5)(_0x1e7fa3);Array['isArray'](_0x11efc4)&&(_0x11efc4={'results':_0x11efc4,'searchText':'string'==typeof _0x2262c5?_0x2262c5:''});const _0x468117=_0x11efc4['results']['filter'](_0x527d0e=>!0x1===this['_isInDeletionRange'](_0x527d0e,_0x1e7fa3['item']));return{..._0x11efc4,'results':_0x468117};},_0x1083e6);}['_isInDeletionRange'](_0x260df6,_0x47022d){const _0x5d0ad0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x47022d,_0x260df6['start']),this['editor']['model']['createPositionAt'](_0x47022d,_0x260df6['end']));for(const _0x34a67b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5d0ad0['getIntersection'](_0x34a67b['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x11ea7f{['afterInit'](){const _0x2871e1=this['editor']['locale'],_0xb7b70=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4c8e7d,commandName:_0x31bd07}of ro)this['editor']['plugins']['has'](_0x4c8e7d)&&(_0xb7b70['enableDefaultAttributesIntegration'](_0x31bd07),_0xb7b70['registerInlineAttribute'](_0x31bd07));_0xb7b70['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x2871e1,'FORMAT_FONT_SIZE')),_0xb7b70['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x2871e1,'FORMAT_FONT_FAMILY')),_0xb7b70['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x2871e1,'FORMAT_FONT_COLOR')),_0xb7b70['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x2871e1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47d088=this['editor'],_0x3380d4=_0x47d088['locale'];_0x47d088['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27666e=>{const _0xa7b87c=_0x3380d4['t'];if('formatInline'!=_0x27666e['type'])return;const {data:_0x2573da}=_0x27666e;if(null!=_0x2573da){if('fontSize'==_0x2573da['commandName']){const _0x3be5c3=_0x2573da['commandParams'][0x0]['value'];if(_0x3be5c3){const _0x479d07=_0xa7b87c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x779e8d=>_0x779e8d['model']==_0x3be5c3)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3380d4,'*Set\x20font\x20size:*\x20%0',_0x479d07)};}return{'type':'format','content':c(_0x3380d4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2573da['commandName']){const _0x5722b7=_0x2573da['commandParams'][0x0]['value'];return _0x5722b7?{'type':'format','content':c(_0x3380d4,'*Set\x20font\x20family:*\x20%0',_0x5722b7)}:{'type':'format','content':c(_0x3380d4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2573da['commandName']){const _0x57bb62=_0x2573da['commandParams'][0x0]['value'];if(_0x57bb62){const _0x26bbc3=_0x1d84f3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x16dc7a=>_0x16dc7a['model']==_0x57bb62);let _0x58a8fe=_0x57bb62,_0x4389e0='';return _0x26bbc3&&(_0x58a8fe=_0x26bbc3['label'],_0x4389e0=_0xa7b87c(_0x58a8fe)['toLowerCase']()),{'type':'format','content':c(_0x3380d4,'*Set\x20font\x20color:*\x20%0',_0x4389e0)['trim'](),'color':{'value':_0x57bb62,'title':_0x4389e0||_0x58a8fe}};}return{'type':'format','content':c(_0x3380d4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2573da['commandName']){const _0x1e210e=_0x2573da['commandParams'][0x0]['value'];if(_0x1e210e){const _0x5ea47b=_0x1d84f3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x12b8c9=>_0x12b8c9['model']==_0x1e210e);let _0x27c1c1=_0x1e210e,_0x203dfe='';return _0x5ea47b&&(_0x27c1c1=_0x5ea47b['label'],_0x203dfe=_0xa7b87c(_0x27c1c1)['toLowerCase']()),{'type':'format','content':c(_0x3380d4,'*Set\x20font\x20background\x20color:*\x20%0',_0x203dfe)['trim'](),'color':{'value':_0x1e210e,'title':_0x203dfe||_0x27c1c1}};}return{'type':'format','content':c(_0x3380d4,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x11ea7f{['afterInit'](){const _0x1c8bcc=this['editor'],_0x1c45db=_0x1c8bcc['plugins']['get']('TrackChangesEditing'),_0x2ae975=_0x1c8bcc['commands']['get']('copyFormat'),_0x4e72d9=_0x1c8bcc['commands']['get']('pasteFormat');_0x2ae975&&_0x4e72d9&&(_0x1c45db['enableDefaultAttributesIntegration']('pasteFormat'),_0x1c45db['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x585e9e=this['editor'],_0x43b621=_0x585e9e['locale'];_0x585e9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b0ed2=>{if('formatBlock'!=_0x4b0ed2['type']&&'formatInline'!=_0x4b0ed2['type'])return;const {data:_0x27681c}=_0x4b0ed2;if(_0x27681c&&'pasteFormat'===_0x27681c['commandName']){const _0x464ffb=[],_0x52a8b8=_0x27681c['commandParams'][0x0];for(const [_0x79f919,_0x4b4392]of Object['entries'](_0x52a8b8))_0x464ffb['push'](so(_0x585e9e,_0x79f919,_0x4b4392));return _0x464ffb['length']?{'type':'format','content':c(_0x43b621,'*Set\x20format\x20to:*\x20%0',_0x464ffb['join'](',\x20'))}:{'type':'format','content':c(_0x43b621,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1b7f3c,_0x4c58db,_0x2c83e7){const _0x5794c2=_0x1b7f3c['locale']['t'],_0x3427ea=_0x4c58db['split'](/(?=[A-Z])/)['join']('\x20'),_0x344e24=_0x5794c2(_0x3427ea['charAt'](0x0)['toUpperCase']()+_0x3427ea['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2c83e7)return _0x344e24;if('fontColor'===_0x4c58db||'fontBackgroundColor'===_0x4c58db){const _0x1e79aa=_0x1d84f3(_0x1b7f3c['config']['get']('fontColor.colors'))['find'](_0x255e63=>_0x255e63['model']==_0x2c83e7);return _0x344e24+'\x20('+(_0x1e79aa?_0x5794c2(_0x1e79aa['label'])['toLowerCase']():_0x2c83e7)+')';}if('fontSize'===_0x4c58db&&isNaN(parseFloat(_0x2c83e7))){const _0x15cae0=_0x1b7f3c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1b7f3c['config']['get']('fontSize.options'))['find'](_0x5a58a8=>_0x5a58a8['model']==_0x2c83e7);return _0x344e24+'\x20('+(_0x15cae0?_0x5794c2(_0x15cae0['title'])['toLowerCase']():_0x2c83e7)+')';}return _0x344e24+'\x20('+_0x2c83e7+')';}class et extends _0x11ea7f{['_headingOptions'];['afterInit'](){const _0x4f6885=this['editor'];if(!_0x4f6885['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4f6885['config']['get']('heading.options');const _0x5da9ca=_0x4f6885['locale'],_0x38f783=_0x4f6885['plugins']['get']('TrackChangesEditing');_0x38f783['enableDefaultAttributesIntegration']('heading');for(const _0x30c113 of this['_headingOptions'])'paragraph'!=_0x30c113['model']&&_0x38f783['descriptionFactory']['registerElementLabel'](_0x30c113['model'],_0xfee632=>{const _0x137e9d=this['_getHeadingLevel'](_0x30c113['model']);return null!==_0x137e9d?_0x515ff1(_0xfee632,_0x137e9d):_0x3c70d4(_0xfee632,_0x30c113['title']);});function _0x515ff1(_0x378790,_0x47a0d7){return c(_0x5da9ca,'ELEMENT_HEADING',[_0x378790,_0x47a0d7]);}function _0x3c70d4(_0x4c9a1f,_0x480e51){return c(_0x5da9ca,'ELEMENT_HEADING_CUSTOM',[_0x4c9a1f,_0x480e51]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x196325=this['editor'],_0x4d0043=_0x196325['locale'];function _0xb7623c(_0x307538,_0x5be59e){return c(_0x4d0043,'ELEMENT_HEADING_CUSTOM',[_0x307538,_0x5be59e]);}_0x196325['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5083c7=>{if('formatBlock'!=_0x5083c7['type'])return;const {data:_0x28a7c7}=_0x5083c7;if(_0x28a7c7&&'heading'==_0x28a7c7['commandName']){const _0x2d93ec=_0x28a7c7['commandParams'][0x0]['value'],_0x5ee88d=this['_getHeadingLevel'](_0x2d93ec);if(null!==_0x5ee88d)return{'type':'format','content':c(_0x4d0043,'*Change\x20to:*\x20%0',(_0x295719=0x1,_0xcd9989=_0x5ee88d,c(_0x4d0043,'ELEMENT_HEADING',[_0x295719,_0xcd9989])))};const _0x180fd9=this['_headingOptions']['find'](_0x3fe2b3=>_0x3fe2b3['model']===_0x2d93ec)['title'];return{'type':'format','content':c(_0x4d0043,'*Change\x20to:*\x20%0',_0xb7623c(0x1,_0x180fd9))};}var _0x295719,_0xcd9989;});}['_getHeadingLevel'](_0xbb551a){const _0x4c724a=_0xbb551a['match'](/^heading(\d+)/);if(_0x4c724a)return _0x4c724a[0x1];const _0xe30f5a=this['_headingOptions']?.['find'](_0x16b0c7=>_0x16b0c7['model']==_0xbb551a);if(_0xe30f5a&&_0xe30f5a['view']){const _0x25889f=_0xe30f5a['view'],_0x2c2f50=(_0x25889f['name']??_0x25889f)['match'](/^h(\d+)/);if(_0x2c2f50)return _0x2c2f50[0x1];}return null;}}class nt extends _0x11ea7f{['afterInit'](){const _0x3b2ee6=this['editor'];if(!_0x3b2ee6['plugins']['has']('HighlightEditing'))return;const _0x30b574=_0x3b2ee6['plugins']['get']('TrackChangesEditing'),_0x1987ec=_0x3b2ee6['locale'];_0x30b574['enableDefaultAttributesIntegration']('highlight'),_0x30b574['registerInlineAttribute']('highlight'),_0x30b574['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x1987ec,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38355f=this['editor'],_0x5023d5=_0x38355f['locale'];_0x38355f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9d7ac3=>{if('formatInline'!=_0x9d7ac3['type'])return;const {data:_0x57e50a}=_0x9d7ac3;if(_0x57e50a&&'highlight'==_0x57e50a['commandName']){const _0x43b327=_0x5023d5['t'],_0x5736a4=_0x57e50a['commandParams'][0x0]['value'];if(_0x5736a4){const _0xcc65ad=_0x38355f['config']['get']('highlight.options')['find'](_0x222eed=>_0x222eed['model']==_0x5736a4),_0x11e045=_0x43b327(_0xcc65ad['title'])['toLowerCase']();return{'type':'format','content':c(_0x5023d5,'*Set\x20highlight:*\x20%0',_0x11e045),'color':{'value':_0xcc65ad['color'],'title':_0xcc65ad['title']}};}return{'type':'format','content':c(_0x5023d5,'*Remove\x20highlight*',c(_0x5023d5,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x11ea7f{['afterInit'](){const _0x424905=this['editor'];if(!_0x424905['plugins']['has']('HorizontalLineEditing'))return;_0x424905['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3a16b5=_0x424905['plugins']['get']('TrackChangesEditing'),_0x16e0b2=_0x424905['locale'];_0x3a16b5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1e4604=>c(_0x16e0b2,'ELEMENT_HORIZONTAL_LINE',_0x1e4604)),_0x424905['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x269679,{writer:_0x3a6530,options:_0x411c55})=>{if(!_0x411c55['showSuggestionHighlights'])return null;const _0x588fd1=_0x3a6530['createContainerElement']('div'),_0x1abeac=_0x3a6530['createEmptyElement']('hr');return _0x3a6530['addClass']('ck-horizontal-line',_0x588fd1),_0x3a6530['insert'](_0x3a6530['createPositionAt'](_0x588fd1,0x0),_0x1abeac),_0x588fd1;},'converterPriority':'high'});}}class ot extends _0x11ea7f{['afterInit'](){const _0x3dba2a=this['editor'];if(!_0x3dba2a['plugins']['has']('HtmlEmbed'))return;const _0x4fe8c1=_0x3dba2a['plugins']['get']('TrackChangesEditing'),_0x560b5e=_0x3dba2a['locale'];_0x4fe8c1['descriptionFactory']['registerElementLabel']('rawHtml',_0x1a7bc2=>c(_0x560b5e,'ELEMENT_HTML_EMBED',_0x1a7bc2)),_0x4fe8c1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4fe8c1['registerBlockAttribute']('value'),_0x4fe8c1['descriptionFactory']['registerDescriptionCallback'](_0x154911=>{if('attribute'!=_0x154911['type'])return;const {data:_0x2c3b1b}=_0x154911;if(_0x2c3b1b&&'value'==_0x2c3b1b['key']&&_0x154911['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2fb513=c(_0x560b5e,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x560b5e,'*Change\x20%0\x20content*',_0x2fb513)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41a79b=this['editor'],_0x2f72d6=_0x41a79b['locale'];_0x41a79b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40dcf6=>{if('formatBlock'!=_0x40dcf6['type'])return;const {data:_0x1e03eb}=_0x40dcf6;if(_0x1e03eb&&'htmlEmbed'==_0x1e03eb['commandName']){const _0x2e3f80=c(_0x2f72d6,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2f72d6,'*Change\x20%0\x20content*',_0x2e3f80)};}});}}class rt extends _0x11ea7f{['afterInit'](){const _0xf55a5=this['editor'];if(!_0xf55a5['plugins']['has']('ImageEditing'))return;const _0x2f2ce3=_0xf55a5['plugins']['get']('TrackChangesEditing'),_0x33b3ba=_0xf55a5['plugins']['get']('ImageUtils'),_0xb87c04=_0xf55a5['locale'];_0x2f2ce3['enableCommand']('insertImage'),_0x2f2ce3['descriptionFactory']['registerElementLabel']('imageBlock',_0x28d65f=>c(_0xb87c04,'ELEMENT_IMAGE',_0x28d65f)),_0x2f2ce3['descriptionFactory']['registerElementLabel']('imageInline',_0x580250=>c(_0xb87c04,'ELEMENT_INLINE_IMAGE',_0x580250)),_0x2f2ce3['descriptionFactory']['registerElementLabel']('caption',()=>c(_0xb87c04,'ELEMENT_CAPTION')),_0xf55a5['plugins']['has']('ImageUploadEditing')&&_0x2f2ce3['enableCommand']('uploadImage'),_0xf55a5['plugins']['has']('ImageBlockEditing')&&_0xf55a5['plugins']['has']('ImageInlineEditing')&&(_0x2f2ce3['enableCommand']('imageTypeInline',(_0x217178,_0x183bd8)=>{const _0x5a7ea0=_0x33b3ba['getClosestSelectedImageElement'](_0xf55a5['model']['document']['selection']);_0xf55a5['model']['change'](()=>{_0x2f2ce3['markBlockFormat'](_0x5a7ea0,{'commandName':'imageTypeInline','commandParams':[_0x183bd8]},[],'convertBlockImageToInline');});}),_0x2f2ce3['enableCommand']('imageTypeBlock',(_0x1d8224,_0x5b5b44)=>{_0xf55a5['model']['change'](_0xfee0a9=>{let _0x29ec6d=_0x33b3ba['getClosestSelectedImageElement'](_0xf55a5['model']['document']['selection']),_0x3a6dfc=_0xfee0a9['createRangeOn'](_0x29ec6d);const _0x43bb4f=_0x130d1d['fromPosition'](_0x3a6dfc['start'],'toPrevious'),_0x28fba6=_0x130d1d['fromPosition'](_0x3a6dfc['end'],'toNext');_0x2f2ce3['forceDefaultExecution'](()=>_0x1d8224(_0x5b5b44)),_0x29ec6d=_0x33b3ba['getClosestSelectedImageElement'](_0xf55a5['model']['document']['selection']),_0x3a6dfc=_0xfee0a9['createRangeOn'](_0x29ec6d);const _0x5cdb66=_0xfee0a9['createRange'](_0x43bb4f,_0x28fba6);_0x43bb4f['detach'](),_0x28fba6['detach'](),_0x2f2ce3['markBlockFormat'](_0x29ec6d,{'commandName':'imageTypeInline','commandParams':[_0x5b5b44]},[],'convertInlineImageToBlock'),_0x5cdb66['start']['isBefore'](_0x3a6dfc['start'])&&_0x2f2ce3['markInsertion'](_0xfee0a9['createRange'](_0x5cdb66['start'],_0x3a6dfc['start']),'convertInlineImageToBlock'),_0x3a6dfc['end']['isBefore'](_0x5cdb66['end'])&&_0x2f2ce3['markInsertion'](_0xfee0a9['createRange'](_0x3a6dfc['end'],_0x5cdb66['end']),'convertInlineImageToBlock');});}),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2f2ce3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x488ebd])=>{const _0x816d9a=_0x2f2ce3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x33b4b5=_0x488ebd['start'],_0x252880=_0x488ebd['end'];const _0x1f9c3b=_0xf55a5['model']['schema']['getNearestSelectionRange'](_0x33b4b5,'backward'),_0x4ca5cd=_0xf55a5['model']['schema']['getNearestSelectionRange'](_0x252880,'forward');_0x1f9c3b['isCollapsed']&&(_0x33b4b5=_0x1f9c3b['start']),_0x4ca5cd['isCollapsed']&&(_0x252880=_0x4ca5cd['end']),_0x816d9a([_0xf55a5['model']['createRange'](_0x33b4b5,_0x252880)]);}),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x28513f),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x28513f)),_0xf55a5['plugins']['has']('ImageCaptionEditing')&&(_0x2f2ce3['enableCommand']('toggleImageCaption',(_0x4bfb98,_0x4ecdc0)=>{const _0x191390=_0xf55a5['plugins']['get']('ImageCaptionUtils');let _0x3331fd=_0x33b3ba['getClosestSelectedImageElement'](_0xf55a5['model']['document']['selection']),_0x5c4487=_0x191390['getCaptionFromImageModelElement'](_0x3331fd);_0xf55a5['model']['change'](()=>{if(_0x5c4487)return void _0x2f2ce3['markDeletion'](_0xf55a5['model']['createRangeOn'](_0x5c4487));const _0xd12349=_0x33b3ba['isBlockImage'](_0x3331fd);_0x4bfb98(_0x4ecdc0),_0x3331fd=_0x33b3ba['getClosestSelectedImageElement'](_0xf55a5['model']['document']['selection']),_0x5c4487=_0x191390['getCaptionFromImageModelElement'](_0x3331fd),_0x2f2ce3['markInsertion'](_0xf55a5['model']['createRangeOn'](_0x5c4487),_0xd12349?null:'imageCaption');});}),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x28513f));const _0x1c5d7e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x172002(_0x5af7ea,_0x1a1d7d){const _0x53f64e=_0x1c5d7e['findIndex'](({type:_0x458333,subType:_0x3c6d54})=>_0x5af7ea['type']==_0x458333&&_0x5af7ea['subType']==_0x3c6d54),_0x5d7c6f=_0x1c5d7e['findIndex'](({type:_0x2a6409,subType:_0x266bc3})=>_0x1a1d7d['type']==_0x2a6409&&_0x1a1d7d['subType']==_0x266bc3);if(_0x53f64e<0x0||_0x5d7c6f<0x0)return!0x1;const _0x4d246e=_0x5af7ea['getFirstRange'](),_0x550b8d=_0x1a1d7d['getFirstRange']();if((0x0==_0x53f64e||0x1==_0x53f64e)&&0x2==_0x5d7c6f&&_0x4d246e['isIntersecting'](_0x550b8d))return!0x0;if(0x2==_0x53f64e&&0x3==_0x5d7c6f){const _0x2f3e3f=_0x2f2ce3['_findSuggestions'](_0x4d246e,'insertion')['filter'](({suggestion:_0x350980,meta:_0x59d5cd})=>_0x59d5cd['isOwn']&&'convertInlineImageToBlock'==_0x350980['subType']);if(_0x2f3e3f['length']>0x1&&_0x550b8d['end']['isEqual'](_0x4d246e['start']))return!0x0;if(0x1==_0x2f3e3f['length']&&(_0x4d246e['start']['isEqual'](_0x550b8d['end'])||_0x4d246e['end']['isEqual'](_0x550b8d['start'])))return!0x0;}if(0x3==_0x53f64e&&0x3==_0x5d7c6f&&_0x4d246e['start']['isBefore'](_0x550b8d['start'])){const _0x528ce0=_0x4d246e['end']['nodeAfter'],_0x26cecb=_0x550b8d['start']['nodeBefore'];return _0x33b3ba['isBlockImage'](_0x528ce0)&&_0x528ce0===_0x26cecb;}return!0x1;}function _0x28513f(_0x3c833f,_0x46295f){return _0x172002(_0x3c833f,_0x46295f)?[_0x3c833f,_0x46295f]:_0x172002(_0x46295f,_0x3c833f)?[_0x46295f,_0x3c833f]:null;}_0xf55a5['plugins']['has']('ImageResize')&&(_0x2f2ce3['enableDefaultAttributesIntegration']('resizeImage'),_0x2f2ce3['registerBlockAttribute']('resizedWidth'),_0x2f2ce3['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0xb87c04,'FORMAT_IMAGE_SIZE'))),_0xf55a5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2f2ce3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2f2ce3['registerBlockAttribute']('alt')),_0xf55a5['plugins']['has']('PictureEditing')&&(_0x2f2ce3['registerBlockAttribute']('sources'),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0xf4ce9c=>{if('attribute'!=_0xf4ce9c['type'])return;const {data:_0x1e64ac}=_0xf4ce9c;return _0x1e64ac&&'sources'==_0x1e64ac['key']?{'type':'format','content':''}:void 0x0;})),_0xf55a5['plugins']['has']('ImageSizeAttributes')&&(_0x2f2ce3['registerBlockAttribute']('width'),_0x2f2ce3['registerBlockAttribute']('height'),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0x85b3e5=>{if('attribute'!=_0x85b3e5['type'])return;const {data:_0x2fd73c}=_0x85b3e5;return!_0x2fd73c||'width'!=_0x2fd73c['key']&&'height'!=_0x2fd73c['key']?void 0x0:{'type':'format','content':''};})),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0xa6be69=>{if(!!_0x1c5d7e['find'](({type:_0x92d26a,subType:_0x55cec2})=>_0xa6be69['type']==_0x92d26a&&_0xa6be69['subType']==_0x55cec2))return _0xa6be69['previous']?{}:void 0x0;}),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0x317e6e=>{if('insertion'==_0x317e6e['type']||'deletion'==_0x317e6e['type']){const _0x56962a=_0x317e6e['getContainedElement']();if(_0x56962a&&_0x56962a['is']('element','caption'))return{'type':'insertion'==_0x317e6e['type']?'addObject':'removeObject','element':_0x56962a,'quantity':0x1};}}),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0x45b318=>'formatBlock'==_0x45b318['type']&&'convertInlineImageToBlock'==_0x45b318['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x45b318['type']&&'convertBlockImageToInline'==_0x45b318['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0x440b7e=>{if('attribute'!=_0x440b7e['type'])return;const {data:_0x4906b0}=_0x440b7e;if(!_0x4906b0||'alt'!=_0x4906b0['key'])return;const _0xc6e537=_0x4906b0['newValue'];return _0xc6e537?{'type':'format','content':c(_0xb87c04,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xc6e537+'\x22')}:{'type':'format','content':c(_0xb87c04,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19cc7b=this['editor'],_0x443644=_0x19cc7b['locale'];_0x19cc7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c9503=>{if('formatBlock'!=_0x1c9503['type']&&'formatInline'!=_0x1c9503['type'])return;const {data:_0x393479}=_0x1c9503;if(_0x393479){if('imageTextAlternative'==_0x393479['commandName']){const _0xb1a486=_0x393479['commandParams'][0x0]['newValue'];return _0xb1a486?{'type':'format','content':c(_0x443644,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xb1a486+'\x22')}:{'type':'format','content':c(_0x443644,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x393479['commandName']){const _0x3ef1ad=_0x393479['commandParams'][0x0]['width'];return _0x3ef1ad?{'type':'format','content':c(_0x443644,'*Set\x20image\x20width:*\x20%0',_0x3ef1ad)}:{'type':'format','content':c(_0x443644,'*Reset\x20image\x20width*')};}}});}}class at extends _0x11ea7f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4ba206=this['editor']['locale'],_0x3ca18f=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ca18f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3ca18f['registerBlockAttribute']('src'),_0x3ca18f['descriptionFactory']['registerDescriptionCallback'](_0x2bd729=>{if('attribute'!=_0x2bd729['type'])return;const {data:_0x46151a}=_0x2bd729;return _0x46151a&&'src'==_0x46151a['key']?_0x46151a['newValue']&&_0x46151a['oldValue']?{'type':'format','content':c(_0x4ba206,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x372a22=this['editor']['plugins']['get']('TrackChangesEditing');_0x372a22['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x372a22['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x372a22['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x372a22['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d5d71=this['editor'],_0x68229d=_0x5d5d71['locale'];_0x5d5d71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ef0f4=>{if('formatBlock'!=_0x2ef0f4['type']&&'formatInline'!=_0x2ef0f4['type'])return;const {data:_0x23edbd}=_0x2ef0f4;if(!_0x23edbd||'replaceImageSource'!=_0x23edbd['commandName'])return;return{'type':'format','content':c(_0x68229d,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x11ea7f{['afterInit'](){const _0x2a5ee9=this['editor'];if(!_0x2a5ee9['plugins']['has']('ImageStyleEditing'))return;const _0x108efe=_0x2a5ee9['plugins']['get']('TrackChangesEditing'),_0x36517e=_0x2a5ee9['plugins']['get']('ImageUtils'),_0x6e18a7={};_0x108efe['enableCommand']('imageStyle',(_0x38180a,_0x3de9ee)=>{const _0x26e905=_0x2a5ee9['plugins']['get']('Users')['me'],_0x2ed83c=_0x2a5ee9['commands']['get']('imageStyle');let _0x378386=_0x36517e['getClosestSelectedImageElement'](_0x2a5ee9['model']['document']['selection']),_0x1c1aeb=_0x2a5ee9['model']['createRangeOn'](_0x378386),_0x202ec8=_0x2ed83c['value'];if(_0x202ec8==_0x3de9ee['value'])return;const _0x80bb8e={'commandName':'imageStyle','commandParams':[_0x3de9ee],'formatGroupId':_0x12ee37()};_0x2a5ee9['model']['change'](()=>{if(_0x108efe['getSuggestions']()['filter'](_0x3b4539=>_0x3b4539['isInContent']&&_0x26e905==_0x3b4539['author']&&('formatBlock'==_0x3b4539['type']||'formatInline'==_0x3b4539['type'])&&('imageStylePreApply'==_0x3b4539['subType']||'imageStylePostApply'==_0x3b4539['subType'])&&_0x3b4539['getFirstRange']()['isEqual'](_0x1c1aeb))['forEach'](_0x320249=>_0x108efe['discardSuggestion'](_0x320249['head'])),_0x378386=_0x36517e['getClosestSelectedImageElement'](_0x2a5ee9['model']['document']['selection']),_0x1c1aeb=_0x2a5ee9['model']['createRangeOn'](_0x378386),_0x2ed83c['refresh'](),_0x2a5ee9['commands']['get']('imageTypeInline')['refresh'](),_0x2a5ee9['commands']['get']('imageTypeBlock')['refresh'](),_0x202ec8=_0x2ed83c['value'],_0x202ec8!=_0x3de9ee['value'])return _0x36517e['isInlineImage'](_0x378386)&&_0x2ed83c['shouldConvertImageType'](_0x3de9ee['value'],_0x378386)?(_0x38180a({..._0x3de9ee,'setImageSizes':!0x1}),_0x378386=_0x36517e['getClosestSelectedImageElement'](_0x2a5ee9['model']['document']['selection']),void _0x108efe['markBlockFormat'](_0x378386,{..._0x80bb8e,'commandReversedParams':[{'value':_0x202ec8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x36517e['isBlockImage'](_0x378386)?_0x108efe['markBlockFormat'](_0x378386,_0x80bb8e,[],'imageStylePostApply'):_0x108efe['markInlineFormat'](_0x1c1aeb,_0x80bb8e,'imageStylePostApply'));});});for(const _0x43ca73 of _0x2a5ee9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x6e18a7[_0x43ca73['name']]=_0x43ca73['title']['toLowerCase']();_0x108efe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x108efe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x108efe['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x108efe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x405ca6])=>{_0x36517e['setImageNaturalSizeAttributes'](_0x405ca6['getContainedElement']());}),_0x108efe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x16eb6d,_0x2e8e62)=>{_0x108efe['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x16eb6d,{'commandName':_0x2e8e62['commandName'],'commandParams':_0x2e8e62['commandReversedParams']});}),_0x108efe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5b9273,_0x4f3583){if(_0x3ea8b8(_0x5b9273,_0x4f3583))return[_0x5b9273,_0x4f3583];if(_0x3ea8b8(_0x4f3583,_0x5b9273))return[_0x4f3583,_0x5b9273];return null;});const _0x26e558=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3ea8b8(_0x1a7d1a,_0x44c515){const _0x2013f4=_0x26e558['findIndex'](({type:_0x5a2a38,subType:_0x266c61})=>_0x1a7d1a['type']==_0x5a2a38&&_0x1a7d1a['subType']==_0x266c61),_0x517f43=_0x26e558['findIndex'](({type:_0x3bedf1,subType:_0x3747cf})=>_0x44c515['type']==_0x3bedf1&&_0x44c515['subType']==_0x3747cf);if(_0x2013f4<0x0||_0x517f43<0x0)return!0x1;const _0x41581c=_0x1a7d1a['getFirstRange'](),_0x397e35=_0x44c515['getFirstRange']();if((0x0==_0x2013f4||0x1==_0x2013f4)&&0x2==_0x517f43&&_0x41581c['isIntersecting'](_0x397e35))return!0x0;if(0x2==_0x2013f4&&0x3==_0x517f43){const _0x2b2d3e=_0x108efe['_findSuggestions'](_0x41581c,'insertion')['filter'](({suggestion:_0x380cbc,meta:_0x16fe58})=>_0x16fe58['isOwn']&&'convertInlineImageToBlock'==_0x380cbc['subType']);if(_0x2b2d3e['length']>0x1&&_0x397e35['end']['isEqual'](_0x41581c['start']))return!0x0;if(0x1==_0x2b2d3e['length']&&(_0x41581c['start']['isEqual'](_0x397e35['end'])||_0x41581c['end']['isEqual'](_0x397e35['start'])))return!0x0;}if(0x3==_0x2013f4&&0x3==_0x517f43&&_0x41581c['start']['isBefore'](_0x397e35['start'])){const _0x19e380=_0x41581c['end']['nodeAfter'],_0x3fcafd=_0x397e35['start']['nodeBefore'];return _0x36517e['isBlockImage'](_0x19e380)&&_0x19e380===_0x3fcafd;}return!0x1;}_0x2a5ee9['model']['document']['registerPostFixer'](()=>{let _0x52963f=!0x1;const _0x396ca3=Array['from'](_0x2a5ee9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f827f,data:_0x28abf8}of _0x396ca3){const {group:_0x4a70b9,type:_0x51c4b0,subType:_0x285f91,id:_0x2c6efb}=_0x108efe['_splitMarkerName'](_0x2f827f);if('suggestion'==_0x4a70b9&&_0x108efe['hasSuggestion'](_0x2c6efb)){if('formatBlock'==_0x51c4b0&&('imageStylePreApply'==_0x285f91||'imageStylePostApply'==_0x285f91)){const _0x312dd3=_0x108efe['getSuggestion'](_0x2c6efb);if(_0x28abf8['newRange']){const _0x296709=_0x312dd3['getFirstRange']()['getContainedElement']();if(_0x36517e['isBlockImage'](_0x296709))continue;_0x108efe['discardSuggestion'](_0x312dd3),_0x52963f=!0x0;}}if('insertion'==_0x51c4b0&&'imageCaption'==_0x285f91&&!_0x28abf8['newRange']){const _0x475991=_0x108efe['getSuggestion'](_0x2c6efb);_0x475991['next']&&_0x475991['next']['isInContent']&&(_0x108efe['discardSuggestion'](_0x475991['next']),_0x52963f=!0x0);}}}return _0x52963f;}),this['_registerLegacyDescription'](_0x6e18a7);}['_registerLegacyDescription'](_0x3c2160){const _0x3fba56=this['editor'],_0x4b4b5c=_0x3fba56['locale'];_0x3fba56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e5ce2=>{if('formatBlock'!=_0x3e5ce2['type']&&'formatInline'!=_0x3e5ce2['type'])return;const {data:_0x1a1f15}=_0x3e5ce2;if(!_0x1a1f15||'imageStyle'!=_0x1a1f15['commandName'])return;const _0x2607be=_0x1a1f15['commandParams'][0x0]['value'];return _0x5dc564('side'===_0x2607be?c(_0x4b4b5c,'FORMAT_SIDE_IMAGE'):_0x3c2160[_0x2607be]||_0x2607be);function _0x5dc564(_0x442841){return{'type':'format','content':c(_0x4b4b5c,'*Format:*\x20%0',_0x442841)};}});}}class ut extends _0x11ea7f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x25efe8){super(_0x25efe8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2b64fa=this['editor'],_0x5b8f67=_0x2b64fa['commands']['get']('importWord'),_0x508958=_0x2b64fa['commands']['get']('trackChanges');_0x5b8f67&&(_0x5b8f67['on']('execute',(_0x2e9047,[,_0x1a6d47])=>{this['_trackChangesValueDuringImport']=_0x508958['value'],_0x1a6d47['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5b8f67,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5b8f67,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x508958['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2b64fa['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5be994,_0xf9f265){const {suggestions:_0x1261e2}=_0xf9f265,_0x160b8a=this['editor']['commands']['get']('trackChanges'),_0x2d34b6=_0x160b8a['value'];this['_trackChangesValueDuringImport']!==_0x2d34b6&&(_0x160b8a['execute'](),this['_trackChangesExecuted']=!0x0),_0x1261e2&&_0x1261e2['forEach'](({id:_0x2efa65,type:_0x35ff26,author:_0x1fd057,created_at:_0x5eeb78})=>{const _0x1307aa={'id':_0x2efa65,'type':_0x35ff26,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1fd057,'createdAt':_0x5eeb78?new Date(_0x5eeb78):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1307aa);});}}class ft extends _0x11ea7f{['afterInit'](){const _0x5664f1=this['editor'],_0x30c688=_0x5664f1['plugins']['get']('TrackChangesEditing');if(_0x5664f1['plugins']['has']('IndentEditing')&&(_0x30c688['enableCommand']('indent'),_0x30c688['enableCommand']('outdent')),_0x5664f1['plugins']['has']('IndentBlock')){for(const _0x14cad8 of['indentBlock','outdentBlock'])_0x30c688['enableDefaultAttributesIntegration'](_0x14cad8);}const _0x680512=_0x5664f1['locale'];_0x30c688['registerBlockAttribute']('blockIndent'),_0x30c688['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x680512,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18de10=this['editor'],_0x3c54ea=_0x18de10['locale'],_0x22442e=_0x18de10['plugins']['get']('TrackChangesEditing');_0x22442e['descriptionFactory']['registerDescriptionCallback'](_0x19801e=>{if('formatBlock'!=_0x19801e['type'])return;const {data:_0xf0fb01}=_0x19801e;if(!_0xf0fb01)return;if('indentBlock'!=_0xf0fb01['commandName']&&'outdentBlock'!=_0xf0fb01['commandName'])return;const _0x2dbf54=_0x19801e['getItems']()[0x0],_0x3b9046=_0x22442e['descriptionFactory']['getItemLabel'](_0x2dbf54);return'indentBlock'==_0xf0fb01['commandName']?{'type':'format','content':c(_0x3c54ea,'*Indent:*\x20%0',_0x3b9046)}:'outdentBlock'==_0xf0fb01['commandName']?{'type':'format','content':c(_0x3c54ea,'*Outdent:*\x20%0',_0x3b9046)}:void 0x0;});}}class ht extends _0x11ea7f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x11ea7f{['afterInit'](){const _0x51141c=this['editor'];if(!_0x51141c['plugins']['has']('LinkEditing'))return;const _0x49a7ac=_0x51141c['plugins']['get']('TrackChangesEditing'),_0x1008e0=_0x51141c['commands']['get']('link');_0x49a7ac['enableDefaultAttributesIntegration']('link'),_0x49a7ac['enableDefaultAttributesIntegration']('unlink'),_0x49a7ac['registerInlineAttribute']('linkHref');for(const _0x50bf44 of _0x1008e0['manualDecorators'])_0x49a7ac['registerInlineAttribute'](_0x50bf44['id']),_0x49a7ac['descriptionFactory']['registerAttributeLabel'](_0x50bf44['id'],'link\x20('+_0x50bf44['label']['toLowerCase']()+')');_0x49a7ac['descriptionFactory']['registerDescriptionCallback'](_0x3ada8f=>{if('attribute'!=_0x3ada8f['type'])return;const {data:_0x45c013}=_0x3ada8f;if(!_0x45c013||'linkHref'!=_0x45c013['key'])return;const _0x2dfbb3=_0x45c013['newValue'],_0x2009f5=_0x51141c['locale'];return{'type':'format','content':null==_0x2dfbb3?c(_0x2009f5,'*Remove\x20link*'):c(_0x2009f5,'*Set\x20link:*\x20%0','\x22'+_0x2dfbb3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a535e=this['editor'],_0x1d1365=_0x5a535e['locale'];_0x5a535e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c8615=>{if('formatInline'!=_0x5c8615['type'])return;const {data:_0x1c6d13}=_0x5c8615;if(_0x1c6d13){if('link'==_0x1c6d13['commandName']){const _0x33948f=_0x1c6d13['commandParams'][0x0];return{'type':'format','content':c(_0x1d1365,'*Set\x20link:*\x20%0','\x22'+_0x33948f+'\x22')};}return'unlink'==_0x1c6d13['commandName']?{'type':'format','content':c(_0x1d1365,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x11ea7f{['afterInit'](){const _0x58fcac=this['editor'],_0x5d0b9a=_0x58fcac['locale'];if(!_0x58fcac['plugins']['has']('LegacyListEditing'))return;const _0x240b0f=_0x58fcac['plugins']['get']('TrackChangesEditing'),_0x40208e=_0x58fcac['plugins']['has']('LegacyTodoListEditing');function _0x1b7db8(_0x17a48f){return()=>{const _0x5852d8=_0x58fcac['model']['document']['selection'],_0x5b66e5=_0x58fcac['commands']['get'](_0x17a48f);if(_0x5b66e5['value'])return void _0x58fcac['execute']('paragraph',{});const _0x3da584=_0x17a48f['slice'](0x0,-0x4),_0x19f990=function(_0x4b3a3c,_0xa22ef8,_0x5e74e7){let _0x4a10cd=Array['from'](_0x4b3a3c)['filter'](_0x47432e=>function(_0xa70d50,_0x10fcfd){return _0x10fcfd['checkChild'](_0xa70d50['parent'],'listItem')&&!_0x10fcfd['isObject'](_0xa70d50);}(_0x47432e,_0x5e74e7));_0x4a10cd=_0x4a10cd['filter'](_0x67caf4=>!_0x67caf4['is']('element','listItem')||_0x67caf4['getAttribute']('listType')!=_0xa22ef8);const _0x31e73b=new Set();for(const _0xa06357 of _0x4a10cd)_0xa06357['is']('element','listItem')?_0x31e73b['add'](Le(_0xa06357)):_0x31e73b['add'](_0xa06357);return Array['from'](_0x31e73b);}(_0x5852d8['getSelectedBlocks'](),_0x3da584,_0x58fcac['model']['schema']);_0x58fcac['model']['change'](()=>{for(const _0x5558df of _0x19f990)_0x240b0f['markBlockFormat'](_0x5558df,{'commandName':_0x17a48f,'commandParams':[{'forceValue':!_0x5b66e5['value']}],'formatGroupId':'blockName'},Ee(_0x5558df));});};}function _0x3f601f(_0x4e628c){return()=>{const _0x46d618=function(_0x399638){let _0x135f7a=Array['from'](_0x399638);const _0x44ce34=_0x135f7a['findIndex'](_0x4542d3=>'listItem'!=_0x4542d3['name']);return _0x44ce34>-0x1&&(_0x135f7a=_0x135f7a['slice'](0x0,_0x44ce34)),_0x135f7a;}(_0x58fcac['model']['document']['selection']['getSelectedBlocks']()),_0xe02905=_0x58fcac['model']['createRange'](_0x58fcac['model']['createPositionAt'](_0x46d618[0x0],'before'),_0x58fcac['model']['createPositionAt'](_0x46d618[_0x46d618['length']-0x1],'end'));_0x58fcac['model']['change'](()=>{_0x240b0f['markBlockFormat'](_0xe02905,{'commandName':_0x4e628c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x237d34){const _0x2b3627=new Set();for(const _0x3daed9 of _0x237d34){let _0x5edda6=_0x3daed9['nextSibling'];for(;_0x5edda6&&_0x5edda6['getAttribute']('listIndent')>_0x3daed9['getAttribute']('listIndent');)_0x2b3627['add'](_0x5edda6),_0x5edda6=_0x5edda6['nextSibling'];}return Array['from'](_0x2b3627);}(_0x46d618));});};}_0x240b0f['enableCommand']('numberedList',_0x1b7db8('numberedList')),_0x240b0f['enableCommand']('bulletedList',_0x1b7db8('bulletedList')),_0x40208e&&_0x240b0f['enableCommand']('todoList',_0x1b7db8('todoList')),_0x240b0f['enableCommand']('indentList',_0x3f601f('indentList')),_0x240b0f['enableCommand']('outdentList',_0x3f601f('outdentList')),_0x40208e&&_0x240b0f['enableCommand']('checkTodoList',()=>{const _0x462710=_0x58fcac['commands']['get']('checkTodoList'),_0x9c6702=Array['from'](_0x462710['_selectedElements']);_0x9c6702['filter'](_0x34a9d5=>_0x34a9d5['getAttribute']('todoListChecked')!=_0x462710['value']),_0x58fcac['model']['change'](()=>{for(const _0x473013 of _0x9c6702)_0x240b0f['markBlockFormat'](_0x473013,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x462710['value']}]});});}),_0x240b0f['descriptionFactory']['registerElementLabel']('listItem',_0x237db4=>c(_0x5d0b9a,'ELEMENT_LIST_ITEM',_0x237db4)),_0x240b0f['descriptionFactory']['registerDescriptionCallback'](_0xfdfdd3=>{if('formatBlock'!=_0xfdfdd3['type']&&'formatInline'!=_0xfdfdd3['type'])return;const {data:_0x22e5a1}=_0xfdfdd3;if(_0x22e5a1){if('numberedList'==_0x22e5a1['commandName']||'bulletedList'==_0x22e5a1['commandName']||'todoList'==_0x22e5a1['commandName'])switch(_0x22e5a1['commandName']['replace']('List','')){case'bulleted':return _0x1d0883(c(_0x5d0b9a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d0883(c(_0x5d0b9a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d0883(c(_0x5d0b9a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x22e5a1['commandName'])return{'type':'format','content':c(_0x5d0b9a,'*Indent:*\x20%0',c(_0x5d0b9a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x22e5a1['commandName'])return{'type':'format','content':c(_0x5d0b9a,'*Outdent:*\x20%0',c(_0x5d0b9a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x22e5a1['commandName'])return _0x22e5a1['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5d0b9a,'*Check\x20item*')}:{'type':'format','content':c(_0x5d0b9a,'*Uncheck\x20item*')};}function _0x1d0883(_0x31ef1e){return{'type':'format','content':c(_0x5d0b9a,'*Change\x20to:*\x20%0',_0x31ef1e)};}});}}function Le(_0x23be5f){const _0x50177d=_0x23be5f['getAttribute']('listIndent');if(0x0==_0x50177d)return _0x23be5f;let _0x3f14ea=_0x23be5f;for(;_0x23be5f['previousSibling']&&_0x23be5f['previousSibling']['is']('element','listItem');){const _0x3ee536=_0x23be5f['previousSibling']['getAttribute']('listIndent');if(_0x3ee536==_0x50177d)_0x3f14ea=_0x23be5f['previousSibling'];else{if(_0x3ee536<_0x50177d)break;}_0x23be5f=_0x23be5f['previousSibling'];}return _0x3f14ea;}function Ee(_0x6e9df7){const _0x227a69=[];if(_0x6e9df7['is']('element','listItem')&&_0x6e9df7['getAttribute']('listIndent')>0x0){let _0x5558bb=_0x6e9df7['nextSibling'];for(;_0x5558bb&&'listItem'==_0x5558bb['name']&&_0x5558bb['getAttribute']('listIndent')==_0x6e9df7['getAttribute']('listIndent');)_0x227a69['push'](_0x5558bb),_0x5558bb=_0x5558bb['nextSibling'];}return _0x227a69;}class Q extends _0x11ea7f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x197c0d=this['editor']['config']['get']('list.properties'),_0x2553af=this['editor']['plugins']['get']('TrackChangesEditing');_0x197c0d['styles']&&_0x2553af['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x197c0d['reversed']&&_0x2553af['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x197c0d['startIndex']&&_0x2553af['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2553af['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3b3a41,_0x439c25={}){const _0xf8f0a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e8b1a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xf8f0a['markMultiRangeBlockFormat'](_0x4e8b1a,{'commandName':'listStyle','commandParams':[{'type':_0x439c25['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x40df91,_0x1398ef={}){const _0x4be023=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fdb56=this['_getSuggestionBlocks'](_0x286801=>_0x286801['is']('element','listItem')&&'numbered'===_0x286801['getAttribute']('listType'));if(_0x2fdb56['length']<0x1)return;const _0x71f6a0=_0x2fdb56['map'](_0x4b4ae4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4b4ae4,'before'),this['editor']['model']['createPositionAt'](_0x4b4ae4,0x0)));this['editor']['model']['change'](()=>{_0x4be023['markMultiRangeBlockFormat'](_0x71f6a0,{'commandName':'listReversed','commandParams':[{'reversed':_0x1398ef['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x579fd9,_0x5d6641={}){const _0x360ed8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x466bd0=this['_getSuggestionBlocks'](_0x5dc23b=>_0x5dc23b['is']('element','listItem')&&'numbered'===_0x5dc23b['getAttribute']('listType'));if(_0x466bd0['length']<0x1)return;const _0x14da97=_0x466bd0['map'](_0x400e8c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x400e8c,'before'),this['editor']['model']['createPositionAt'](_0x400e8c,0x0)));this['editor']['model']['change'](()=>{_0x360ed8['markMultiRangeBlockFormat'](_0x14da97,{'commandName':'listStart','commandParams':[{'startIndex':_0x5d6641['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4507a8){if('formatBlock'!=_0x4507a8['type']&&'formatInline'!=_0x4507a8['type'])return;const _0x6bd375=this['editor']['locale'],{data:_0x4d369f}=_0x4507a8;if(!_0x4d369f)return;let _0x169f38,_0x297f78;switch(_0x4d369f['commandName']){case'listStyle':_0x169f38='*Change\x20to:*\x20%0',_0x297f78={'type':'format','content':c(_0x6bd375,_0x169f38,c(_0x6bd375,this['_getTranslationKeyForListStyle'](_0x4d369f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x169f38=_0x4d369f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x297f78={'type':'format','content':c(_0x6bd375,_0x169f38)};break;case'listStart':_0x169f38='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x297f78={'type':'format','content':c(_0x6bd375,_0x169f38,_0x4d369f['commandParams'][0x0]['startIndex'])};}return _0x297f78;}['_getSuggestionBlocksForListStyle'](){const _0x3cabcd=this['editor']['plugins']['get']('LegacyListUtils');let _0x358310=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x358310[0x0]?.['is']('element','listItem')&&_0x358310['unshift'](..._0x3cabcd['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x358310[_0x358310['length']-0x1]?.['is']('element','listItem')&&_0x358310['push'](..._0x3cabcd['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x358310=[...new Set(_0x358310)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x358310=_0x358310['filter'](_0x218dc8=>_0x218dc8['is']('element','listItem'))),_0x358310;}['_getSuggestionBlocks'](_0x51c915){const _0x35c3f9=this['editor']['plugins']['get']('LegacyListUtils');let _0x34d2e8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x51c915)['map'](_0x31f254=>{const _0x386559=this['editor']['model']['createPositionAt'](_0x31f254,0x0);return[..._0x35c3f9['getSiblingNodes'](_0x386559,'backward'),..._0x35c3f9['getSiblingNodes'](_0x386559,'forward')];})['flat']();return _0x34d2e8=[...new Set(_0x34d2e8)],_0x34d2e8;}['_getTranslationKeyForListStyle'](_0x34378f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x34378f)||'default')['toUpperCase']()+'_LIST_'+_0x34378f['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x11ea7f{['afterInit'](){const _0xac8a17=this['editor'];if(!_0xac8a17['plugins']['has']('MediaEmbedEditing'))return;const _0x3ba106=_0xac8a17['plugins']['get']('TrackChangesEditing'),_0x3da6ee=_0xac8a17['locale'];_0x3ba106['enableCommand']('mediaEmbed'),_0x3ba106['descriptionFactory']['registerElementLabel']('media',_0x268aab=>c(_0x3da6ee,'ELEMENT_MEDIA',_0x268aab)),_0xac8a17['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5a3632,{writer:_0x3dacdb,options:_0x30f28a})=>{if(_0x30f28a['showSuggestionHighlights'])return _0x3dacdb['createEmptyElement']('div');},'converterPriority':'high'}),_0xac8a17['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3dd702,_0x1d0bef,_0x36a5b1)=>{_0x36a5b1['options']['showSuggestionHighlights']&&_0x3dd702['stop']();},{'priority':'high'});}}class pt extends _0x11ea7f{['afterInit'](){const _0x225016=this['editor'];_0x225016['plugins']['has']('MentionEditing')&&_0x225016['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x11ea7f{['afterInit'](){const _0x3c2fc6=this['editor'];if(!_0x3c2fc6['plugins']['has']('MergeFieldsEditing'))return;const _0x2a608b=_0x3c2fc6['plugins']['get']('TrackChangesEditing'),_0x231b75=_0x3c2fc6['locale'];_0x2a608b['enableCommand']('insertMergeField'),_0x2a608b['enableCommand']('insertMergeFieldBlock'),_0x2a608b['enableCommand']('insertMergeFieldImage'),_0x2a608b['descriptionFactory']['registerElementLabel']('mergeField',_0x3e1143=>c(_0x231b75,'ELEMENT_MERGE_FIELD',_0x3e1143)),_0x2a608b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1f9e60=>c(_0x231b75,'ELEMENT_MERGE_FIELD',_0x1f9e60)),_0x2a608b['descriptionFactory']['registerDescriptionCallback'](_0x5cf920=>{if('insertion'!=_0x5cf920['type']&&'deletion'!=_0x5cf920['type'])return;const _0x3fa0c7=_0x5cf920['getContainedElement']();if(null==_0x3fa0c7)return;const _0xcb62a4=_0x3c2fc6['plugins']['get']('MergeFieldsEditing');let _0x1dd6be;switch(_0xcb62a4['getMergeFieldType'](_0x3fa0c7)){case null:return;case'image':{const _0x114c45=_0xcb62a4['unwrapAffixes'](_0x3fa0c7['getAttribute']('src'));_0x1dd6be=_0xcb62a4['getLabel'](_0x114c45)||_0x114c45;break;}default:{const _0x40a961=_0x3fa0c7['getAttribute']('id');_0x1dd6be=_0xcb62a4['getLabel'](_0x40a961)||_0x40a961;break;}}return'insertion'==_0x5cf920['type']?{'type':'insertion','content':c(_0x231b75,'*Insert:*\x20%0','\x22'+_0x1dd6be+'\x22\x20'+c(_0x231b75,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x231b75,'*Remove:*\x20%0','\x22'+_0x1dd6be+'\x22\x20'+c(_0x231b75,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x11ea7f{['afterInit'](){const _0x18d4a6=this['editor'],_0x15fc7d=_0x18d4a6['plugins']['get']('TrackChangesEditing');_0x18d4a6['plugins']['has']('MultiLevelList')&&(_0x15fc7d['enableDefaultAttributesIntegration']('multiLevelList'),_0x15fc7d['registerBlockAttribute']('listMarkerStyle'),_0x15fc7d['descriptionFactory']['registerDescriptionCallback'](_0x6dfd1b=>this['handleDescriptions'](_0x6dfd1b)));}['handleDescriptions'](_0x4827d1){const _0xdb5448=this['editor']['locale'],{data:_0x11c1d4}=_0x4827d1,_0x2f121b={'type':'format','content':''};if(_0x11c1d4&&'listMarkerStyle'==_0x11c1d4['key']){if(!_0x11c1d4['oldValue'])return{'type':'format','content':c(_0xdb5448,'*Set\x20format:*\x20%0',c(_0xdb5448,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x11c1d4['newValue']+')'};if(!_0x11c1d4['newValue']){let _0x429540=_0x4827d1['head'];for(;_0x429540;){if(_0x429540['data']&&'listType'==_0x429540['data']['key']&&_0x429540['data']['newValue'])return _0x2f121b;_0x429540=_0x429540['next'];}return{'type':'format','content':c(_0xdb5448,'*Remove\x20format:*\x20%0',c(_0xdb5448,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x11c1d4['oldValue']+')'};}}}}class bt extends _0x11ea7f{['afterInit'](){const _0x42804e=this['editor'];if(!_0x42804e['plugins']['has']('PageBreakEditing'))return;_0x42804e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3cebbb=_0x42804e['plugins']['get']('TrackChangesEditing'),_0x18ceed=_0x42804e['locale'];_0x3cebbb['descriptionFactory']['registerElementLabel']('pageBreak',_0x31cf16=>c(_0x18ceed,'ELEMENT_PAGE_BREAK',_0x31cf16));}}class yt extends _0x11ea7f{['afterInit'](){const _0x1b3137=this['editor'];if(!_0x1b3137['plugins']['has']('Paragraph'))return;const _0x259352=_0x1b3137['locale'],_0x3c276e=_0x1b3137['plugins']['get']('TrackChangesEditing');_0x3c276e['descriptionFactory']['registerElementLabel']('paragraph',_0x8cdbdf=>c(_0x259352,'ELEMENT_PARAGRAPH',_0x8cdbdf)),_0x3c276e['enableDefaultAttributesIntegration']('paragraph'),_0x3c276e['enableCommand']('insertParagraph'),_0x1b3137['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1b3137),{'priority':'highest'}),_0x1b3137['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xc18875,_0x5856dc,_0x46e9b9)=>{_0x46e9b9['options']['showSuggestionHighlights']&&nr(_0x1b3137,{'showActiveMarker':!0x1})(_0xc18875,_0x5856dc,_0x46e9b9);},{'priority':'highest'});const _0x304e0=_0x3c276e['descriptionFactory'];_0x304e0['registerDescriptionCallback'](_0x4d02d9=>{if('insertion'!==_0x4d02d9['type'])return;const {start:_0xf26fa1,end:_0x21e3b9}=_0x4d02d9['getFirstRange']();if(!_0xf26fa1['isTouching'](_0x21e3b9)||!_0xf26fa1['nodeAfter'])return;const _0x52fb71=_0x1b3137['model']['schema'],_0x483926=_0xf26fa1['nodeAfter'];return _0x52fb71['isBlock'](_0x483926)&&!_0x52fb71['isLimit'](_0x483926)&&_0x52fb71['checkChild'](_0x483926,'$text')?{'type':'insertion','content':c(_0x259352,'*Insert:*\x20%0',_0x304e0['getItemLabel'](_0x483926,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x549783=this['editor'],_0xdb7ea7=_0x549783['locale'];_0x549783['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1925ed=>{if('formatBlock'!=_0x1925ed['type'])return;const {data:_0x427310}=_0x1925ed;return _0x427310&&'paragraph'==_0x427310['commandName']?{'type':'format','content':c(_0xdb7ea7,'*Change\x20to:*\x20%0',c(_0xdb7ea7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x333433,{showActiveMarker:_0x49468b=!0x0}={}){return(_0x429b55,_0x3076c7,_0x274d34)=>{const _0x349ae6=_0x333433['plugins']['get']('TrackChangesEditing'),_0x5899f5=_0x3076c7['markerRange']['start'],_0x4a042f=_0x3076c7['markerRange']['end'],_0x6eb75=_0x333433['model']['schema'];if(!_0x5899f5['isTouching'](_0x4a042f)||!_0x5899f5['nodeAfter'])return;const _0x58dac6=_0x5899f5['nodeAfter'];if(_0x6eb75['isBlock'](_0x58dac6)&&!_0x6eb75['isLimit'](_0x58dac6)&&_0x6eb75['checkChild'](_0x58dac6,'$text')){if(!_0x274d34['consumable']['consume'](_0x3076c7['markerRange'],_0x429b55['name']))return;const {id:_0x3c503e,authorId:_0x3e7a41}=_0x349ae6['_splitMarkerName'](_0x3076c7['markerName']),_0x31c74a=_0x274d34['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x3c503e,'data-author-id':_0x3e7a41}),_0x1af0e7=_0x274d34['mapper']['toViewPosition'](_0x4a042f);_0x49468b&&_0x349ae6['activeMarkers']['includes'](_0x3076c7['markerName'])&&_0x274d34['writer']['addClass']('ck-suggestion-marker--active',_0x31c74a),_0x274d34['writer']['insert'](_0x1af0e7,_0x31c74a),_0x274d34['mapper']['bindElementToMarker'](_0x31c74a,_0x3076c7['markerName']);}};}class St extends _0x11ea7f{['afterInit'](){const _0xb4d035=this['editor'];_0xb4d035['commands']['get']('replaceSource')&&_0xb4d035['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x11ea7f{['afterInit'](){const _0x484a12=this['editor'];if(!_0x484a12['plugins']['has']('RemoveFormatEditing'))return;_0x484a12['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ae033=this['editor'];_0x4ae033['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x321efd=>{if('formatBlock'!=_0x321efd['type']&&'formatInline'!=_0x321efd['type'])return;const {data:_0x170072}=_0x321efd;return _0x170072&&'removeFormat'==_0x170072['commandName']?{'type':'format','content':c(_0x4ae033['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x11ea7f{['afterInit'](){const _0x32a584=this['editor'];if(!_0x32a584['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x321e07=_0x32a584['plugins']['get']('TrackChangesEditing');_0x321e07['enableCommand']('goToPreviousRestrictedEditingException'),_0x321e07['enableCommand']('goToNextRestrictedEditingException');const _0x516990=_0x32a584['plugins']['get']('RestrictedEditingModeEditing');_0x516990['enableCommand']('trackChanges'),_0x516990['enableCommand']('acceptSuggestion'),_0x516990['enableCommand']('discardSuggestion'),_0x516990['enableCommand']('acceptAllSuggestions'),_0x516990['enableCommand']('discardAllSuggestions'),_0x516990['enableCommand']('acceptSelectedSuggestions'),_0x516990['enableCommand']('discardSelectedSuggestions');}}class At extends _0x11ea7f{['afterInit'](){const _0x1d7c3b=this['editor'];if(!_0x1d7c3b['plugins']['has']('ShiftEnter'))return;const _0xb72cbf=_0x1d7c3b['plugins']['get']('TrackChangesEditing');_0xb72cbf['enableCommand']('shiftEnter'),_0x1d7c3b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1d7c3b),{'priority':'high'}),_0x1d7c3b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1d7c3b),{'priority':'high'}),_0x1d7c3b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x54a8dc,_0x85b27d,_0x5c29b2)=>{_0x5c29b2['options']['showSuggestionHighlights']&&je(_0x1d7c3b,{'showActiveMarker':!0x1})(_0x54a8dc,_0x85b27d,_0x5c29b2);}),_0xb72cbf['descriptionFactory']['registerElementLabel']('softBreak',_0x3d370a=>c(_0x1d7c3b['locale'],'ELEMENT_LINE_BREAK',_0x3d370a));}}function je(_0x4cca5a,{showActiveMarker:_0x3f4678=!0x0}={}){return(_0x50db50,_0x4c39f8,_0xc19a39)=>{const _0x5841f7=_0x4cca5a['plugins']['get']('TrackChangesEditing');if(!_0xc19a39['consumable']['test'](_0x4c39f8['markerRange'],_0x50db50['name']))return;const _0xa0db9=_0x4cca5a['model'];for(const _0x3d56bd of _0x4c39f8['markerRange']['getItems']()){if(!_0x3d56bd['is']('element','softBreak'))continue;const _0x6664dc='deletion'==_0x4c39f8['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x59cfba,authorId:_0xd010f0}=_0x5841f7['_splitMarkerName'](_0x4c39f8['markerName']),_0x53aff7=_0xc19a39['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6664dc,'data-suggestion':_0x59cfba,'data-author-id':_0xd010f0}),_0x21fad6=_0xc19a39['mapper']['toViewPosition'](_0xa0db9['createPositionBefore'](_0x3d56bd));_0x3f4678&&_0x5841f7['activeMarkers']['includes'](_0x4c39f8['markerName'])&&_0xc19a39['writer']['addClass']('ck-suggestion-marker--active',_0x53aff7),_0xc19a39['writer']['insert'](_0x21fad6,_0x53aff7),_0xc19a39['mapper']['bindElementToMarker'](_0x53aff7,_0x4c39f8['markerName']);}};}class _t extends _0x11ea7f{['afterInit'](){const _0x5839c6=this['editor'],_0x252dca=_0x5839c6['model'],_0xd1d59a=_0x5839c6['locale'];if(!_0x5839c6['plugins']['has']('StandardEditingModeEditing'))return;const _0x260f3f=_0x5839c6['plugins']['get']('TrackChangesEditing'),_0x4cc4bd='restrictedEditingException',_0x4bbbbf=_0x5839c6['commands']['get'](_0x4cc4bd);_0x260f3f['enableCommand'](_0x4cc4bd,(_0xab85e1,_0xb26ee2={})=>{const _0x34999e=_0x252dca['document']['selection'];if(_0x34999e['isCollapsed'])return void _0xab85e1(_0xb26ee2);const _0x56e3f8=void 0x0!==_0xb26ee2['forceValue']?_0xb26ee2['forceValue']:!_0x4bbbbf['value'];_0x252dca['change'](()=>{const _0x2047f6=Array['from'](_0x34999e['getRanges']());for(const _0x5d2f63 of _0x2047f6){const _0x1490dc=_0x56e3f8?[_0x5d2f63]:io(_0x4cc4bd,_0x5d2f63,_0x252dca);for(const _0x1fa435 of _0x1490dc)_0x260f3f['markInlineFormat'](_0x1fa435,{'commandName':_0x4cc4bd,'commandParams':[{'forceValue':_0x56e3f8}]});}});}),_0x260f3f['descriptionFactory']['registerDescriptionCallback'](_0x345e0b=>{if('formatBlock'!=_0x345e0b['type']&&'formatInline'!=_0x345e0b['type'])return;const {data:_0x50a485}=_0x345e0b;return _0x50a485&&_0x50a485['commandName']==_0x4cc4bd?_0x50a485['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xd1d59a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0xd1d59a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x11ea7f{['afterInit'](){const _0x569873=this['editor'];if(!_0x569873['plugins']['has']('Style')||!_0x569873['plugins']['has']('DataSchema'))return;const _0x2b9327=_0x569873['plugins']['get']('TrackChangesEditing'),_0x16f435=_0x569873['locale'],_0x26eac4=_0x569873['config']['get']('style')||{},_0x17a881=_0x569873['plugins']['get']('GeneralHtmlSupport'),_0x3d9f59=_0x569873['plugins']['get']('StyleUtils')['normalizeConfig'](_0x569873['plugins']['get']('DataSchema'),_0x26eac4['definitions']);_0x2b9327['enableDefaultAttributesIntegration']('style');const _0x3fa994=new Set();for(const _0x4ae774 of _0x3d9f59['block']){const _0x729aca=_0x17a881['getGhsAttributeNameForElement'](_0x4ae774['element']);_0x3fa994['add'](_0x729aca);}const _0x595e30=new Set();for(const _0x1aba5d of _0x3d9f59['inline']){const _0x26838b=_0x17a881['getGhsAttributeNameForElement'](_0x1aba5d['element']);_0x595e30['add'](_0x26838b);for(const _0x519102 of _0x1aba5d['ghsAttributes'])_0x595e30['add'](_0x519102);}for(const _0x8d2ef of _0x3fa994)_0x2b9327['registerBlockAttribute'](_0x8d2ef),_0x2b9327['descriptionFactory']['registerAttributeLabel'](_0x8d2ef,c(_0x16f435,'FORMAT_STYLE'));for(const _0x1201db of _0x595e30)_0x2b9327['registerInlineAttribute'](_0x1201db),_0x2b9327['descriptionFactory']['registerAttributeLabel'](_0x1201db,c(_0x16f435,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x383ac5=this['editor'],_0x466390=_0x383ac5['locale'];_0x383ac5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13a29c=>{if('formatBlock'!=_0x13a29c['type']&&'formatInline'!=_0x13a29c['type'])return;const {data:_0x24ee61}=_0x13a29c;return _0x24ee61&&'style'===_0x24ee61['commandName']?_0x24ee61['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x466390,'*Set\x20format:*\x20%0',_0x24ee61['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x466390,'*Remove\x20format:*\x20%0',_0x24ee61['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x11ea7f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x16f027){super(_0x16f027),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x32d315=this['editor'],_0x26b9a2=_0x32d315['model']['document']['selection'];if(!_0x32d315['plugins']['has']('TableEditing'))return;const _0x539c10=_0x32d315['locale'],_0x19a292=_0x32d315['plugins']['get']('TrackChangesEditing'),_0x5dffbf=_0x32d315['plugins']['get']('TableUtils');_0x19a292['descriptionFactory']['registerElementLabel']('table',_0x317ef2=>c(_0x539c10,'ELEMENT_TABLE',_0x317ef2)),this['_setupColumnsRowsFixing'](),_0x19a292['enableCommand']('insertTable'),_0x19a292['enableCommand']('selectTableRow'),_0x19a292['enableCommand']('selectTableColumn');for(const _0x1ca67a of['insertTableRowAbove','insertTableRowBelow']){const _0x3a2e27=_0x32d315['commands']['get'](_0x1ca67a);_0x19a292['enableCommand'](_0x1ca67a,_0x423c78=>{_0x32d315['model']['change'](_0x3ca5ca=>{_0x423c78();const _0xd0c01a='above'===_0x3a2e27['order'],_0x4e13ae=_0x5dffbf['getSelectionAffectedTableCells'](_0x26b9a2),_0x32e891=_0x5dffbf['getRowIndexes'](_0x4e13ae),_0x1b8c8d=_0xd0c01a?_0x32e891['first']-0x1:_0x32e891['last']+0x1,_0x1d4b0e=_0x4e13ae[0x0]['findAncestor']('table'),_0x8e4e5=_0x5dffbf['createTableWalker'](_0x1d4b0e,{'startRow':_0x1b8c8d,'endRow':_0x1b8c8d}),_0x1badea=Array['from'](_0x8e4e5)['map'](_0x5e00bb=>_0x3ca5ca['createRangeOn'](_0x5e00bb['cell']));_0x19a292['markMultiRangeInsertion'](_0x1badea,'tableRow');});});}for(const _0x5af938 of['insertTableColumnLeft','insertTableColumnRight']){const _0x29961e=_0x32d315['commands']['get'](_0x5af938);_0x19a292['enableCommand'](_0x5af938,_0x3b0734=>{_0x32d315['model']['change'](_0x24e659=>{_0x3b0734();const _0x323a53='left'===_0x29961e['order'],_0x748e96=_0x5dffbf['getSelectionAffectedTableCells'](_0x26b9a2),_0xac200c=_0x5dffbf['getColumnIndexes'](_0x748e96),_0x103196=_0x323a53?_0xac200c['first']-0x1:_0xac200c['last']+0x1,_0x4aefd7=_0x748e96[0x0]['findAncestor']('table'),_0x574b5b=_0x5dffbf['createTableWalker'](_0x4aefd7,{'startRow':0x0,'column':_0x103196,'includeAllSlots':!0x1}),_0xcabc89=Array['from'](_0x574b5b)['map'](_0x599a63=>_0x24e659['createRangeOn'](_0x599a63['cell']));_0x19a292['markMultiRangeInsertion'](_0xcabc89,'tableColumn');});});}for(const _0x272960 of['removeTableRow','removeTableColumn']){const _0x19c523=_0x272960['substr'](0xb),_0x5513aa=_0x19c523['toLowerCase'](),_0x2bf58b=_0x5513aa['substr'](0x0,0x3)+'span',_0x5699b0='table'+_0x19c523,_0x2254f0='min'+_0x19c523,_0x2a7746='max'+_0x19c523;_0x19a292['enableCommand'](_0x272960,()=>{_0x32d315['model']['change'](_0x424a70=>{const _0x33bc53=_0x5dffbf['getSelectionAffectedTableCells'](_0x26b9a2),_0x4a3a28=_0x33bc53[0x0]['findAncestor']('table');let _0x4c8478;if('removeTableRow'==_0x272960){const _0x518936=_0x5dffbf['getRowIndexes'](_0x33bc53);_0x4c8478={'startRow':_0x518936['first'],'endRow':_0x518936['last'],'includeAllSlots':!0x0};}else{const _0x50d2d0=_0x5dffbf['getColumnIndexes'](_0x33bc53);_0x4c8478={'startColumn':_0x50d2d0['first'],'endColumn':_0x50d2d0['last'],'includeAllSlots':!0x0};}const _0x2ee648=_0x5dffbf['createTableWalker'](_0x4a3a28,_0x4c8478),_0x55496e=Array['from'](_0x2ee648)['map'](({cell:_0x55c57d})=>_0x55c57d),_0x2acb42=xe(_0x55496e['filter'](_0x4a17c8=>_0x4a17c8['hasAttribute'](_0x2bf58b))),_0x1c27a8=xe(_0x55496e['filter'](_0x2ad321=>!_0x2ad321['hasAttribute'](_0x2bf58b)))['map'](_0x471c85=>_0x424a70['createRangeOn'](_0x471c85)),_0x27ba68=_0x19a292['markMultiRangeDeletion'](_0x1c27a8,_0x5699b0);if(_0x27ba68&&('tableRow'==_0x27ba68['subType']||'tableColumn'==_0x27ba68['subType'])){const _0x250289=this['_getSuggestionCoords'](_0x27ba68);for(const _0x5836e0 of _0x2acb42){const _0x52ec00=_0x424a70['createRangeOn'](_0x5836e0),_0xe3a269=_0x5dffbf['getCellLocation'](_0x5836e0),_0x5792dd=_0x5836e0['getAttribute'](_0x2bf58b)-0x1,_0x15e5ef=_0x250289[_0x2254f0],_0x1006e5=_0x250289[_0x2a7746];_0x15e5ef<=_0xe3a269[_0x5513aa]&&_0xe3a269[_0x5513aa]+_0x5792dd<=_0x1006e5&&_0x27ba68['addRange'](_0x52ec00);}}});});}function _0x3435c0(_0x397cdc){const _0x22cf31=Array['from'](_0x26b9a2['getRanges']())['map'](_0x418f86=>_0x53edc8['fromRange'](_0x418f86));_0x32d315['model']['change'](_0x532703=>{const _0x42fc23=_0x532703['batch'];_0x397cdc=_0x397cdc['filter'](_0x44a9f6=>'$graveyard'!=_0x44a9f6['root']['rootName']),_0x532703['setSelection'](_0x397cdc),_0x32d315['commands']['get']('removeTableRow')['refresh'](),_0x32d315['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x32d315['model']['enqueueChange'](()=>{_0x32d315['model']['enqueueChange'](_0x42fc23,_0x10f84e=>{const _0x1da987=_0x22cf31['filter'](_0x4cf7fa=>'$graveyard'!=_0x4cf7fa['root']['rootName']);_0x1da987['length']>0x0&&_0x10f84e['setSelection'](_0x1da987);for(const _0x44440c of _0x22cf31)_0x44440c['detach']();});});});}function _0x25dbfc(_0x416b57){_0x32d315['model']['change'](_0x24a14e=>{const _0x3de626=Array['from'](_0x26b9a2['getRanges']())['map'](_0x3db02f=>_0x53edc8['fromRange'](_0x3db02f)),_0xd808b5=[];for(const _0x5da7bf of _0x416b57)for(const _0x3a12fa of _0x5da7bf['getItems']({'shallow':!0x0}))_0xd808b5['push'](_0x3a12fa);for(const _0x27b42c of _0xd808b5)'$graveyard'!=_0x27b42c['root']['rootName']&&(_0x24a14e['setSelection'](_0x24a14e['createPositionAt'](_0x27b42c,0x0)),_0x32d315['commands']['get']('removeTableColumn')['refresh'](),_0x32d315['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x717979=_0x3de626['filter'](_0x109dee=>'$graveyard'!=_0x109dee['root']['rootName']);_0x717979['length']>0x0&&_0x24a14e['setSelection'](_0x717979);for(const _0x1adf29 of _0x3de626)_0x1adf29['detach']();});}function _0x4e29e7(_0x5c8fe6,_0x93992d){return _0x93992d['every'](_0x5cbaa6=>_0x5c8fe6['some'](_0x1c6986=>_0x1c6986['end']['isEqual'](_0x5cbaa6['start'])||_0x5cbaa6['end']['isEqual'](_0x1c6986['start'])));}function _0x49a266(_0x459a03,_0x52e2a2){return!_0x459a03['some'](_0x53cf3b=>_0x52e2a2['some'](_0x4b728c=>_0x53cf3b['isIntersecting'](_0x4b728c)))&&_0x459a03['some'](_0x3ad67e=>_0x52e2a2['some'](_0x1fba5b=>_0x3ad67e['end']['isTouching'](_0x1fba5b['start'])));}_0x32d315['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3d0d46,_0x24d84d,_0x313fe4)=>{if(!_0x313fe4['options']['showSuggestionHighlights'])return;const _0x223140=_0x24d84d['item'];if(!_0x223140||!_0x223140['is']('element','tableCell'))return;const _0x39bfd4=_0x313fe4['mapper']['toViewElement'](_0x223140);if(_0x39bfd4){const {id:_0x1bbb2b,authorId:_0xaacbd}=_0x19a292['_splitMarkerName'](_0x24d84d['markerName']);_0x9867d8(_0x39bfd4,_0x313fe4['writer'],(_0x43a9e5,_0x1b3821,_0x1ce5ab)=>{_0x1ce5ab['addClass'](_0x388c61(_0x1b3821['classes']),_0x43a9e5),_0x1ce5ab['setAttribute']('data-suggestion-id',_0x1bbb2b,_0x43a9e5),_0x1ce5ab['setAttribute']('data-author-id',_0xaacbd,_0x43a9e5);},(_0x4378e5,_0x3fcf91,_0x59b75b)=>{_0x59b75b['removeClass'](_0x388c61(_0x3fcf91['classes']),_0x4378e5),_0x59b75b['removeAttribute']('data-suggestion-id',_0x4378e5),_0x59b75b['removeAttribute']('data-author-id',_0x4378e5);});}},{'priority':'highest'}),_0x19a292['descriptionFactory']['registerDescriptionCallback'](_0x331956=>{if('insertion'!=_0x331956['type']&&'deletion'!=_0x331956['type'])return;const _0x267a62=_0x331956['getContainedElement']();if(null!=_0x267a62&&_0x267a62['is']('element','table')){if('insertion'==_0x331956['type']){const _0x5afd73=_0x331956['getItems']()['filter'](_0xa19fd9=>_0xa19fd9['is']('$textProxy'))['map'](_0x3a4c6a=>_0x3a4c6a['data']);if(_0x5afd73['length'])return{'type':'insertion','content':c(_0x539c10,'*Insert:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5afd73['join']('\x20')+'\x22'))};}if('deletion'==_0x331956['type']){const _0x39aa08=_0x331956['getItems']()['filter'](_0x3d3dea=>_0x3d3dea['is']('$textProxy'))['map'](_0x483b11=>_0x483b11['data']);if(_0x39aa08['length'])return{'type':'deletion','content':c(_0x539c10,'*Remove:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x39aa08['join']('\x20')+'\x22'))};}}}),_0x19a292['descriptionFactory']['registerDescriptionCallback'](_0x5d48fe=>{if('tableRow'==_0x5d48fe['subType']){const _0x25445b=_0x5d48fe['getItems']()['filter'](_0x4500f8=>_0x4500f8['is']('$textProxy'))['map'](_0xe51178=>_0xe51178['data']),_0x55c9fa=this['_getSuggestionCoords'](_0x5d48fe),_0x4077d2=_0x55c9fa['maxRow']-_0x55c9fa['minRow']+0x1;if('insertion'==_0x5d48fe['type'])return _0x25445b['length']?{'type':'insertion','content':c(_0x539c10,'*Insert:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4077d2,'\x22'+_0x25445b['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x539c10,'*Insert:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_ROW',_0x4077d2))};if('deletion'==_0x5d48fe['type'])return _0x25445b['length']?{'type':'deletion','content':c(_0x539c10,'*Remove:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4077d2,'\x22'+_0x25445b['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x539c10,'*Remove:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_ROW',_0x4077d2))};}if('tableColumn'==_0x5d48fe['subType']){const _0x1a5f29=_0x5d48fe['getItems']()['filter'](_0x1ff1db=>_0x1ff1db['is']('$textProxy'))['map'](_0x122e84=>_0x122e84['data']),_0x332ec3=this['_getSuggestionCoords'](_0x5d48fe),_0xf465e2=_0x332ec3['maxColumn']-_0x332ec3['minColumn']+0x1;if('insertion'==_0x5d48fe['type'])return _0x1a5f29['length']?{'type':'insertion','content':c(_0x539c10,'*Insert:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xf465e2,'\x22'+_0x1a5f29['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x539c10,'*Insert:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_COLUMN',_0xf465e2))};if('deletion'==_0x5d48fe['type'])return _0x1a5f29['length']?{'type':'deletion','content':c(_0x539c10,'*Remove:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xf465e2,'\x22'+_0x1a5f29['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x539c10,'*Remove:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_COLUMN',_0xf465e2))};}}),_0x19a292['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3435c0),_0x19a292['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3435c0),_0x19a292['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x25dbfc),_0x19a292['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x25dbfc),_0x19a292['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4e29e7),_0x19a292['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4e29e7),_0x19a292['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x49a266),_0x19a292['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x49a266);}['_acceptFormatSuggestionCallbackFactory'](){const _0xee329b=this['editor'],_0x5c2106=_0xee329b['model']['document']['selection'];return(_0x493e48,_0x489bf3)=>{_0xee329b['model']['change'](_0x94ef1f=>{const {commandName:_0x1a6ef3,commandParams:_0x1aff7a}=_0x489bf3;let _0xf7a774=_0x493e48[0x0]['end']['nodeBefore'];_0x1aff7a&&_0x1aff7a[0x0]&&!0x1===_0x1aff7a[0x0]['forceValue']&&(_0xf7a774=_0x493e48[0x0]['start']['nodeAfter']);const _0x659e80=_0x94ef1f['createRangeIn'](_0xf7a774);if('$graveyard'==_0x659e80['root']['rootName'])return;const _0x3c027e=Array['from'](_0x5c2106['getRanges']())['map'](_0x5600d0=>_0x53edc8['fromRange'](_0x5600d0));_0x94ef1f['setSelection'](_0x659e80),_0xee329b['commands']['get'](_0x1a6ef3)['refresh'](),_0x1aff7a['push']({'forceDefaultExecution':!0x0}),_0xee329b['execute'](_0x1a6ef3,..._0x1aff7a);const _0xc26ab0=_0x3c027e['filter'](_0x5cf156=>'$graveyard'!=_0x5cf156['root']['rootName']);_0xc26ab0['length']>0x0&&_0x94ef1f['setSelection'](_0xc26ab0);for(const _0xe9c1cc of _0x3c027e)_0xe9c1cc['detach']();});};}['_getCoordsForCells'](_0x5580b3){const _0x256054=this['editor']['plugins']['get']('TableUtils');let _0x59de3f=Number['MAX_SAFE_INTEGER'],_0x4b42af=Number['MIN_SAFE_INTEGER'],_0x55232d=Number['MAX_SAFE_INTEGER'],_0x467048=Number['MIN_SAFE_INTEGER'];for(const _0x374c16 of _0x5580b3){if('$graveyard'==_0x374c16['root']['rootName'])continue;const {row:_0x1aa4e5,column:_0x1df1e8}=_0x256054['getCellLocation'](_0x374c16),_0x40eeb1=_0x374c16['hasAttribute']('rowspan')?_0x374c16['getAttribute']('rowspan')-0x1:0x0,_0x5724bb=_0x374c16['hasAttribute']('colspan')?_0x374c16['getAttribute']('colspan')-0x1:0x0;_0x59de3f=_0x1aa4e5<_0x59de3f?_0x1aa4e5:_0x59de3f,_0x4b42af=_0x1aa4e5+_0x40eeb1>_0x4b42af?_0x1aa4e5+_0x40eeb1:_0x4b42af,_0x55232d=_0x1df1e8<_0x55232d?_0x1df1e8:_0x55232d,_0x467048=_0x1df1e8+_0x5724bb>_0x467048?_0x1df1e8+_0x5724bb:_0x467048;}return{'minRow':_0x59de3f,'maxRow':_0x4b42af,'minColumn':_0x55232d,'maxColumn':_0x467048};}['_setupColumnsRowsFixing'](){const _0x165081=this['editor'],_0x5a1874=_0x165081['plugins']['get']('TrackChangesEditing'),_0x51e4d4=_0x165081['plugins']['get']('TableUtils');_0x165081['model']['document']['on']('change:data',()=>{const _0x27f650=Array['from'](_0x165081['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26da7f,data:_0x419f91}of _0x27f650){const {group:_0x173bbd,id:_0x14080d,subType:_0x3c0507}=_0x5a1874['_splitMarkerName'](_0x26da7f);if('suggestion'!=_0x173bbd)continue;if(null!=_0x419f91['oldRange'])continue;const _0x3f9183=_0x5a1874['getSuggestion'](_0x14080d);this['_tablePostFixingSubtypes']['includes'](_0x3c0507)&&this['_tableSuggestions']['add'](_0x3f9183);}},{'priority':'low'});const _0x13df6a=(_0x367b00,_0x47fb26)=>{let _0x1d95b7=!0x1;const _0x2f275b=_0x47fb26['createRangeOn'](_0x367b00),_0x46f7da=_0x367b00['findAncestor']('table'),_0x178d4d=_0x51e4d4['getCellLocation'](_0x367b00);for(const _0x2c46ca of this['_tableSuggestions']){const _0x5d4384=_0x2c46ca['subType'],_0x3f652b=_0x5d4384['startsWith']('tablePaste'),_0x577b56=_0x5d4384['substr'](_0x3f652b?0xa:0x5),_0x3873da=_0x577b56['toLowerCase'](),_0x5e2ca0=_0x3873da['substr'](0x0,0x3)+'span',_0x2cd275='min'+_0x577b56,_0x52ca38='max'+_0x577b56;if(!_0x2c46ca['isInContent'])continue;if(_0x46f7da!=_0x2c46ca['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2c46ca['isIntersectingWithRange'](_0x2f275b))continue;const _0x2fcbf1=_0x367b00['hasAttribute'](_0x5e2ca0)?_0x367b00['getAttribute'](_0x5e2ca0)-0x1:0x0,_0x391d5c=this['_getSuggestionCoords'](_0x2c46ca),_0x36b201=_0x391d5c[_0x2cd275],_0x3db841=_0x391d5c[_0x52ca38];_0x36b201<=_0x178d4d[_0x3873da]&&_0x178d4d[_0x3873da]+_0x2fcbf1<=_0x3db841&&(_0x2c46ca['addRange'](_0x2f275b),_0x1d95b7=!0x0);}return _0x1d95b7;};_0x165081['model']['document']['registerPostFixer'](_0x576e52=>{let _0x5b9231=!0x1;for(const _0x2f6343 of _0x165081['model']['document']['differ']['getChanges']())if('insert'==_0x2f6343['type']){if('tableRow'==_0x2f6343['name']){for(const _0x243335 of _0x2f6343['position']['nodeAfter']['getChildren']())_0x5b9231=_0x5b9231||_0x13df6a(_0x243335,_0x576e52);}else'tableCell'==_0x2f6343['name']&&(_0x5b9231=_0x5b9231||_0x13df6a(_0x2f6343['position']['nodeAfter'],_0x576e52));}return _0x5b9231;});}['_getSuggestionCoords'](_0x3fd583){return this['_getCoordsForCells'](_0x3fd583['getRanges']()['map'](_0x5f4e3e=>_0x5f4e3e['start']['nodeAfter']));}}function xe(_0x6e7bd2){return Array['from'](new Set(_0x6e7bd2)['values']());}class Nt extends _0x11ea7f{static get['requires'](){return[Ct];}['afterInit'](){const _0x3dff12=this['editor'],_0x83674a=_0x3dff12['model']['document']['selection'],_0x1caff8=_0x3dff12['locale'];if(!_0x3dff12['plugins']['has']('TableEditing'))return;const _0x8bf8b3=_0x3dff12['plugins']['get']('TrackChangesEditing'),_0x45b504=_0x3dff12['plugins']['get']('TableUtils'),_0x3b1664=_0x3dff12['plugins']['get'](Ct);_0x3b1664['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x8bf8b3['enableCommand']('mergeTableCells',()=>{const _0xc327a6=_0x45b504['getSelectionAffectedTableCells'](_0x3dff12['model']['document']['selection']);_0x3dff12['model']['change'](()=>{_0x8bf8b3['markMultiRangeBlockFormat'](_0xc327a6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3dff12['commands']['get']('mergeTableCells')['on']('execute',(_0x5359cf,_0x4280f1)=>{_0x3dff12['commands']['get']('trackChanges')['value']&&(_0x4280f1['length']>0x0&&_0x4280f1[_0x4280f1['length']-0x1]&&_0x4280f1[_0x4280f1['length']-0x1]['forceDefaultExecution']||_0x8bf8b3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5359cf['stop']());},{'priority':'highest'});for(const _0x28b6dc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x429594=_0x3dff12['commands']['get'](_0x28b6dc);_0x8bf8b3['enableCommand'](_0x28b6dc,()=>{const _0x514162=_0x3dff12['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x329986=>_0x329986['is']('element','tableCell')),_0x2c1b64=_0x429594['value'];_0x3dff12['model']['change'](()=>{_0x8bf8b3['markMultiRangeBlockFormat']([_0x514162,_0x2c1b64],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x41f772 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1d3bdf=_0x3dff12['commands']['get'](_0x41f772);_0x8bf8b3['enableCommand'](_0x41f772,()=>{const _0x73cf2d=_0x45b504['getSelectionAffectedTableCells'](_0x3dff12['model']['document']['selection'])[0x0],_0x50c4d2=_0x73cf2d['findAncestor']('table'),{column:_0x2bba6b,row:_0x7b72d8}=_0x45b504['getCellLocation'](_0x73cf2d);let _0x2b0dcd=[];if('horizontally'==_0x1d3bdf['direction']){const _0x380988=_0x45b504['createTableWalker'](_0x50c4d2,{'startRow':_0x7b72d8,'endRow':_0x7b72d8,'includeAllSlots':!0x0});_0x2b0dcd=Array['from'](_0x380988)['map'](_0x418885=>_0x418885['cell']);}else{const _0x2d5ef1=_0x45b504['createTableWalker'](_0x50c4d2,{'column':_0x2bba6b,'includeAllSlots':!0x0});_0x2b0dcd=Array['from'](_0x2d5ef1)['map'](_0x353bf7=>_0x353bf7['cell']);}_0x3dff12['model']['change'](_0x3a2f4f=>{_0x8bf8b3['markBlockFormat'](_0x3a2f4f['createRangeOn'](_0x73cf2d),{'commandName':_0x41f772,'commandParams':[]},_0x2b0dcd,_0x41f772);});});}_0x8bf8b3['descriptionFactory']['registerDescriptionCallback'](_0x34b2e0=>{if('formatBlock'!=_0x34b2e0['type']&&'formatInline'!=_0x34b2e0['type'])return;const {data:_0x2002d5}=_0x34b2e0;return _0x2002d5&&'mergeTableCells'==_0x2002d5['commandName']?{'type':'format','content':c(_0x1caff8,'*Merge\x20cells*')}:void 0x0;}),_0x8bf8b3['descriptionFactory']['registerDescriptionCallback'](_0x39779e=>{if('formatBlock'!=_0x39779e['type']&&'formatInline'!=_0x39779e['type'])return;const {data:_0xe412dc}=_0x39779e;return _0xe412dc?'splitTableCellVertically'==_0xe412dc['commandName']?{'type':'format','content':c(_0x1caff8,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xe412dc['commandName']?{'type':'format','content':c(_0x1caff8,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xb5505e=_0x3b1664['_acceptFormatSuggestionCallbackFactory']();for(const _0x28db5b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x8bf8b3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x28db5b,'accept',_0xb5505e);for(const _0xccbf23 of['splitTableCellVertically','splitTableCellHorizontally'])_0x8bf8b3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xccbf23,'accept',_0xb5505e);_0x8bf8b3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x52a28c=>{_0x3dff12['model']['change'](_0x43bf2f=>{const _0x279dda=Array['from'](_0x83674a['getRanges']())['map'](_0x52ae8b=>_0x53edc8['fromRange'](_0x52ae8b));_0x43bf2f['setSelection'](_0x52a28c),_0x3dff12['commands']['get']('mergeTableCells')['refresh'](),_0x3dff12['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x23efb7=_0x279dda['filter'](_0x33c424=>'$graveyard'!=_0x33c424['root']['rootName']);_0x23efb7['length']>0x0&&_0x43bf2f['setSelection'](_0x23efb7);for(const _0xd6c72e of _0x279dda)_0xd6c72e['detach']();});});for(const _0x130e3e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x73f03d=_0x3dff12['commands']['get'](_0x130e3e);_0x73f03d['on']('set:isEnabled',(_0x1a23a7,_0x191950,_0x5da7ea)=>{if(_0x5da7ea){const _0x552f8e=_0x3dff12['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5da987=>_0x5da987['is']('element','tableCell'));this['_areMergableCells'](_0x73f03d['value'],_0x552f8e)||(_0x1a23a7['return']=!0x1,_0x1a23a7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2886cc=this['editor']['commands']['get']('mergeTableCells'),_0x3e0162=this['editor']['plugins']['get']('TableUtils');if(!_0x2886cc['isEnabled'])return!0x1;const _0x1e3ab5=_0x3e0162['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1b8b38 of _0x1e3ab5)for(const _0x27fd73 of _0x1e3ab5)if(_0x1b8b38!=_0x27fd73&&!this['_areMergableCells'](_0x1b8b38,_0x27fd73))return!0x1;return!0x0;}['_areMergableCells'](_0x28db6d,_0x5a93ab){const _0x1bf77e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f4ae5=this['editor']['model']['createRangeOn'](_0x28db6d),_0x557cde=this['editor']['model']['createRangeOn'](_0x5a93ab),_0x323772=new Set(),_0xa18608=new Set();for(const _0x405dc4 of _0x1bf77e['getSuggestions']())if(('insertion'==_0x405dc4['type']||'deletion'==_0x405dc4['type']||'mergeTableCells'==_0x405dc4['subType'])&&_0x405dc4['isInContent']){for(const _0x502674 of _0x405dc4['getRanges']())_0x502674['containsRange'](_0x4f4ae5,!0x0)&&_0x323772['add'](_0x405dc4['type']+':'+_0x405dc4['author']['id']),_0x502674['containsRange'](_0x557cde,!0x0)&&_0xa18608['add'](_0x405dc4['type']+':'+_0x405dc4['author']['id']);}if(_0x323772['size']!=_0xa18608['size'])return!0x1;for(const _0x3d178d of _0x323772)if(!_0xa18608['has'](_0x3d178d))return!0x1;return!0x0;}}class Dt extends _0x11ea7f{static get['requires'](){return[Ct];}['afterInit'](){const _0x1339aa=this['editor'];if(!_0x1339aa['plugins']['has']('TableEditing'))return;const _0xe5642e=_0x1339aa['locale'],_0x25e672=_0x1339aa['plugins']['get']('TrackChangesEditing');_0x25e672['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x25e672['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x25e672['registerBlockAttribute']('headingRows'),_0x25e672['registerBlockAttribute']('headingColumns'),_0x25e672['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0xe5642e,'FORMAT_HEADER_ROW')),_0x25e672['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0xe5642e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x285d59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x486a62=this['editor']['plugins']['get']('TableUtils'),_0x22670e=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x1e3c1a({showActiveMarker:_0x20d86e=!0x0,setDataAttribute:_0x27f24f=!0x0}={}){return(_0x6486b5,_0x3b6b36,_0x5a2ad1)=>{const {type:_0x226bed,id:_0x594a70}=_0x285d59['_splitMarkerName'](_0x3b6b36['markerName']),_0x23d8b8=_0x285d59['getSuggestion'](_0x594a70),_0x32a31b=_0x23d8b8['data'];if('formatBlock'!=_0x23d8b8['type']||!_0x32a31b||'setTableColumnHeader'!=_0x32a31b['commandName'])return;if(_0x3b6b36['item'])return void _0x6486b5['stop']();if(!_0x5a2ad1['consumable']['consume'](_0x3b6b36['markerRange'],_0x6486b5['name']))return;const _0x511d44=_0x3b6b36['markerRange']['start']['nodeAfter'],_0x202f8d=_0x3b6b36['markerRange']['end']['nodeBefore'],_0x57fbf8=_0x511d44['parent']['parent'],{column:_0x1377ff}=_0x486a62['getCellLocation'](_0x511d44),{column:_0x264114}=_0x486a62['getCellLocation'](_0x202f8d);for(let _0x3bdfdf=_0x1377ff;_0x3bdfdf<=_0x264114;_0x3bdfdf++){const _0x2d4533=_0x486a62['createTableWalker'](_0x57fbf8,{'column':_0x3bdfdf,'includeAllSlots':!0x1});for(const _0x47743b of _0x2d4533){const _0x3c2f8d=_0x47743b['cell'],_0xf4c2c9=_0x5a2ad1['mapper']['toViewElement'](_0x3c2f8d);_0x5a2ad1['writer']['addClass']('ck-suggestion-marker-'+_0x226bed,_0xf4c2c9),_0x27f24f&&_0x5a2ad1['writer']['setAttribute']('data-suggestion',_0x594a70,_0xf4c2c9),_0x5a2ad1['mapper']['bindElementToMarker'](_0xf4c2c9,_0x3b6b36['markerName']),_0x20d86e&&(_0x285d59['activeMarkers']['includes'](_0x3b6b36['markerName'])?_0x5a2ad1['writer']['addClass']('ck-suggestion-marker--active',_0xf4c2c9):_0x5a2ad1['writer']['removeClass']('ck-suggestion-marker--active',_0xf4c2c9));}}};}_0x285d59['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x22670e),_0x285d59['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x22670e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1e3c1a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a66e9,_0x4a0dc9,_0x4bff93)=>{_0x4bff93['options']['showSuggestionHighlights']&&_0x1e3c1a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2a66e9,_0x4a0dc9,_0x4bff93);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x55825b,_0x4154a6,_0x409a84)=>{const {type:_0x405162,id:_0x5adb2b}=_0x285d59['_splitMarkerName'](_0x4154a6['markerName']),_0x6c5315=_0x285d59['getSuggestion'](_0x5adb2b),_0x30777d=_0x6c5315['data'];if('formatBlock'!=_0x6c5315['type']||!_0x30777d||'setTableColumnHeader'!=_0x30777d['commandName'])return;const _0x544a26=_0x409a84['mapper']['markerNameToElements'](_0x4154a6['markerName']);if(_0x544a26){for(const _0x39024b of _0x544a26)_0x409a84['writer']['removeClass']('ck-suggestion-marker-'+_0x405162,_0x39024b),_0x409a84['writer']['removeClass']('ck-suggestion-marker--active',_0x39024b),_0x409a84['writer']['removeAttribute']('data-suggestion',_0x39024b),_0x409a84['mapper']['unbindElementFromMarkerName'](_0x39024b,_0x4154a6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x192a14=this['editor'],_0x12d5a1=_0x192a14['locale'];function _0x32a69a(_0x143187){return{'type':'format','content':c(_0x12d5a1,'*Format:*\x20%0',_0x143187)};}_0x192a14['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23d2ce=>{if('formatBlock'!=_0x23d2ce['type'])return;const {data:_0x50ffa0}=_0x23d2ce;if(_0x50ffa0){if('setTableRowHeader'==_0x50ffa0['commandName']){const _0x5677a5=_0x50ffa0['commandParams'][0x0]['forceValue'];return _0x32a69a(c(_0x12d5a1,_0x5677a5?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x50ffa0['commandName']){const _0x5e95be=_0x50ffa0['commandParams'][0x0]['forceValue'];return _0x32a69a(c(_0x12d5a1,_0x5e95be?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x11ea7f{['afterInit'](){const _0x38a34f=this['editor'],_0x2135b9=_0x38a34f['locale'],_0x191efb=_0x38a34f['plugins']['get']('TrackChangesEditing');function _0x26fa6d(_0x970ecc){return{'type':'format','content':''+c(_0x2135b9,'*Set\x20table\x20type:*\x20%0',_0x970ecc)};}_0x38a34f['plugins']['has']('TableLayout')&&(_0x191efb['enableCommand']('insertTableLayout'),_0x191efb['enableDefaultAttributesIntegration']('tableType'),_0x191efb['registerBlockAttribute']('tableType'),_0x191efb['descriptionFactory']['registerElementLabel'](_0x2300ef=>_0x2300ef['is']('element','table')&&'layout'===_0x2300ef['getAttribute']('tableType'),_0x277c6e=>c(_0x2135b9,'ELEMENT_LAYOUT_TABLE',_0x277c6e)),_0x191efb['descriptionFactory']['registerDescriptionCallback'](_0x24b733=>{const {data:_0x5e5ed5}=_0x24b733;if(_0x5e5ed5&&'tableType'==_0x5e5ed5['key'])switch(_0x5e5ed5['newValue']){case'layout':return _0x26fa6d(c(_0x2135b9,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x26fa6d(c(_0x2135b9,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0xdbc75e=>[_0xdbc75e,null]));class $t extends _0x11ea7f{static get['requires'](){return[Ct];}['afterInit'](){const _0x554337=this['editor'];if(!_0x554337['plugins']['has']('TableClipboard'))return;const _0x203391=_0x554337['plugins']['get']('TrackChangesEditing'),_0x4bf84f=_0x554337['plugins']['get']('TableUtils'),_0x5218b6=_0x554337['plugins']['get'](Ct),_0x4310b1=_0x554337['plugins']['get']('TableClipboard'),_0x42ad63=_0x554337['plugins']['get']('TableSelection'),_0x5d2221=_0x554337['plugins']['get'](_0x420ad0);_0x5218b6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x554337['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x554337['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x19c498=null,_0x39af78=!0x1;_0x5d2221['on']('contentInsertion',(_0x2c94ad,_0x532d06)=>{_0x39af78='paste'===_0x532d06['method'];}),_0x554337['model']['on']('insertContent',(_0x5912f2,_0x5ca9e7)=>{if(!_0x39af78&&null===_0x42ad63['getSelectedTableCells']())return;const [_0x1617b2,_0x4f8039]=_0x5ca9e7,_0x1c857f=_0x5ca9e7[_0x5ca9e7['length']-0x1];_0x1c857f&&_0x1c857f['forceDefaultExecution']||_0x203391['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x36699d,_0x4d8bd8,_0x1f8f37,_0x572fce,_0x5217da){if(_0x4d8bd8&&!_0x4d8bd8['is']('documentSelection'))return!0x1;const _0x8e5dd2=_0x5217da['getTableIfOnlyTableInContent'](_0x36699d,_0x1f8f37);if(!_0x8e5dd2||!He(_0x8e5dd2,void 0x0,_0x572fce))return!0x1;const _0x2479cc=_0x572fce['getSelectionAffectedTableCells'](_0x1f8f37['document']['selection']);if(!_0x2479cc['length'])return!0x1;const _0x4d1405=_0x2479cc[0x0]['findAncestor']('table'),_0x4ff110=_0x572fce['getRowIndexes'](_0x2479cc),_0x3e2bcf=_0x572fce['getColumnIndexes'](_0x2479cc),_0x2f172e={'startRow':_0x4ff110['first'],'endRow':_0x4ff110['last'],'startColumn':_0x3e2bcf['first'],'endColumn':_0x3e2bcf['last']};return 0x1==_0x2479cc['length']&&(_0x2f172e['endRow']+=_0x572fce['getRows'](_0x8e5dd2)-0x1,_0x2f172e['endColumn']+=_0x572fce['getColumns'](_0x8e5dd2)-0x1),He(_0x4d1405,_0x2f172e,_0x572fce);}(_0x1617b2,_0x4f8039,_0x554337['model'],_0x4bf84f,_0x4310b1)&&(_0x5912f2['stop'](),_0x19c498={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x554337['model']['change'](()=>{_0x554337['model']['insertContent'](_0x5ca9e7[0x0],_0x5ca9e7[0x1],_0x5ca9e7[0x2],{'forceDefaultExecution':!0x0});const _0x59a071=_0x12ee37(),{rowInsertionRanges:_0x420357,columnInsertionRanges:_0x19f681,insertionRanges:_0x6fa5f8,deletionRanges:_0x29caa2,cells:_0xbc989d}=_0x19c498;_0x420357['length']&&_0x203391['markMultiRangeInsertion'](_0x420357,'tablePasteRow',{'tablePasteChainId':_0x59a071}),_0x19f681['length']&&_0x203391['markMultiRangeInsertion'](_0x19f681,'tablePasteColumn',{'tablePasteChainId':_0x59a071}),_0x6fa5f8['length']&&(_0x203391['markMultiRangeInsertion'](_0x6fa5f8,'tablePaste',{'tablePasteChainId':_0x59a071,'skipNestingCheck':!0x0}),_0x6fa5f8['forEach'](_0x48a2ec=>_0x48a2ec['detach']?.())),_0x29caa2['length']&&(_0x203391['markMultiRangeDeletion'](_0x29caa2,'tablePaste',{'tablePasteChainId':_0x59a071,'skipNestingCheck':!0x0}),_0x29caa2['forEach'](_0x3644f4=>_0x3644f4['detach']?.()));const _0x14cf71=_0x203391['markMultiRangeBlockFormat'](_0xbc989d['map'](({element:_0x2bafb5})=>_0x2bafb5),{'formatGroupId':_0x12ee37()},[],'tablePasteCell',{'tablePasteChainId':_0x59a071});if(_0x14cf71){const _0x27e4d3=_0x14cf71['getMarkers'](),_0x59f7e1=[];for(const {element:_0x5d882a,attributes:_0xfec53e}of _0xbc989d){if(!_0xfec53e)continue;const _0x49012a=_0x554337['model']['createRangeOn'](_0x5d882a),_0x534f12=_0x27e4d3['find'](_0x1ab3f0=>_0x1ab3f0['getRange']()['isEqual'](_0x49012a));_0x534f12&&_0x59f7e1['push']([_0x534f12['name'],_0xfec53e]);}_0x59f7e1['length']&&_0x14cf71['setAttribute']('markerAttributes',Object['fromEntries'](_0x59f7e1));}_0x19c498=null;}));},{'priority':_0x2ef4ce['high']+0xa}),_0x5d2221['on']('contentInsertion',()=>{_0x39af78=!0x1;},{'priority':'lowest'}),_0x554337['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x399f45,_0x103408)=>{const [_0x389cd0,_0x5a2ac9,,_0xac6e7b]=_0x103408;if(!_0x19c498)return;_0x399f45['stop']();const _0x5ba741=_0x389cd0['cell'],_0x32abd6=_0x5a2ac9,_0x16288e=De(_0x5ba741),_0x5a3f5c=De(_0x32abd6);_0x399f45['return']=_0x5ba741;let _0x4ca267=null,_0x4862e2=null;if(_0x5a3f5c||_0x16288e){if(_0x16288e&&!_0x5a3f5c){_0xac6e7b['remove'](_0x5ba741['getChild'](0x0));for(const _0x7b01b7 of Array['from'](_0x32abd6['getChildren']()))_0xac6e7b['insert'](_0x7b01b7,_0x5ba741,'end');const _0x1836c3=_0x19c498['rowInsertionIndexes']['includes'](_0x389cd0['row']),_0x448bb5=_0x19c498['columnInsertionIndexes']['includes'](_0x389cd0['column']);_0x1836c3||_0x448bb5||(_0x4ca267=_0x53edc8['fromRange'](_0xac6e7b['createRangeIn'](_0x5ba741)));}else _0x5a3f5c&&!_0x16288e&&(_0x4862e2=_0xac6e7b['createRangeIn'](_0x5ba741));}else{const _0xf3a4df=_0xac6e7b['createElement']('tableCellSuggestion'),_0x49ead1=_0xac6e7b['createElement']('tableCellSuggestion');_0xac6e7b['wrap'](_0xac6e7b['createRangeIn'](_0x5ba741),_0x49ead1),_0xac6e7b['insert'](_0xf3a4df,_0x5ba741,0x0);for(const _0x57356c of Array['from'](_0x32abd6['getChildren']()))_0xac6e7b['insert'](_0x57356c,_0xf3a4df,'end');_0x4ca267=_0x53edc8['fromRange'](_0xac6e7b['createRangeOn'](_0xf3a4df)),_0x4862e2=_0x53edc8['fromRange'](_0xac6e7b['createRangeOn'](_0x49ead1));}const _0x4c944c=Array['from'](_0x32abd6['getAttributes']())['filter'](([_0x3c52a8])=>Oe['includes'](_0x3c52a8));_0x19c498['cells']['push']({'element':_0x5ba741,'attributes':_0x4c944c['length']?Object['fromEntries'](_0x4c944c):null}),_0x4ca267&&_0x19c498['insertionRanges']['push'](_0x4ca267),_0x4862e2&&_0x19c498['deletionRanges']['push'](_0x4862e2);},{'priority':'high'}),_0x4bf84f['on']('insertColumns',(_0x497644,_0x409772)=>{const [_0xb4d49a,_0xa35f4b={}]=_0x409772;if(!_0x19c498)return;const _0x53fc9d=_0xa35f4b['at']||0x0,_0x37e236=_0xa35f4b['columns']||0x1;_0x19c498['columnInsertionIndexes']=new Array(_0x37e236)['fill'](_0x53fc9d)['map']((_0x2ed0f1,_0x1aeb96)=>_0x2ed0f1+_0x1aeb96);for(const {cell:_0xa68d0d}of _0x4bf84f['createTableWalker'](_0xb4d49a,{'startColumn':_0x53fc9d,'endColumn':_0x53fc9d+_0x37e236-0x1}))_0x19c498['columnInsertionRanges']['push'](_0x554337['model']['createRangeOn'](_0xa68d0d));},{'priority':'low'}),_0x4bf84f['on']('insertRows',(_0x18b85e,_0x229a69)=>{const [_0x3c1dfd,_0x5ab546={}]=_0x229a69;if(!_0x19c498)return;const _0x1a7892=_0x5ab546['at']||0x0,_0x59ee2c=_0x5ab546['rows']||0x1;_0x19c498['rowInsertionIndexes']=new Array(_0x59ee2c)['fill'](_0x1a7892)['map']((_0x584a5c,_0x207432)=>_0x584a5c+_0x207432);for(const {cell:_0x9f86c1}of _0x4bf84f['createTableWalker'](_0x3c1dfd,{'startRow':_0x1a7892,'endRow':_0x1a7892+_0x59ee2c-0x1}))_0x19c498['rowInsertionRanges']['push'](_0x554337['model']['createRangeOn'](_0x9f86c1));},{'priority':'low'}),_0x203391['descriptionFactory']['registerDescriptionCallback'](_0xf9850a=>{if(_0xf9850a['subType']&&_0xf9850a['subType']['startsWith']('tablePaste'))return _0xf9850a['previous']?{}:{'type':'insertion','content':c(_0x554337['locale'],'*Replace\x20table\x20cells*')};});const _0x128228=()=>!0x1;for(const _0x1d95fc of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x203391['_suggestionFactory']['registerCustomCallback']('insertion',_0x1d95fc,'join',_0x128228),_0x203391['_suggestionFactory']['registerCustomCallback']('deletion',_0x1d95fc,'join',_0x128228),_0x203391['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1d95fc,'join',_0x128228);_0x203391['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x128228),_0x203391['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x48062d,_0x300be7,_0x4d70fa)=>{const _0x4aa8d4=_0x48062d['map'](_0x192cc6=>_0x192cc6['getContainedElement']())['filter'](_0x1ec175=>_0x1ec175),_0x3c301d=new Map(_0x4aa8d4['map'](_0x1472d8=>[_0x1472d8,null]));if(_0x19c498){for(const {element:_0x4578ea,attributes:_0x4a9f4d}of _0x19c498['cells'])_0x4a9f4d&&_0x3c301d['set'](_0x4578ea,_0x4a9f4d);}else{if(_0x4d70fa&&_0x4d70fa['markerAttributes'])for(const [_0x42240d,_0x2f2dbd]of Object['entries'](_0x4d70fa['markerAttributes'])){const _0x113bc5=_0x554337['model']['markers']['get'](_0x42240d),_0x4035f4=_0x113bc5?_0x113bc5['getRange']()['getContainedElement']():null;_0x4035f4&&_0x3c301d['set'](_0x4035f4,_0x2f2dbd);}}_0x554337['model']['change'](_0x53c7fa=>{for(const [_0x100f07,_0x475356]of _0x3c301d)_0x53c7fa['setAttributes']({...Ue,..._0x475356},_0x100f07);});});const _0x56fd72=(_0x5d471d,_0x3b0fe8)=>{_0x203391['_suggestionFactory']['registerCustomCallback'](_0x5d471d,'tablePaste',_0x3b0fe8,(_0x53d29e,_0x23cc40,_0xfbda1e)=>{_0x554337['model']['change'](_0x2eea58=>{const _0x3b7191=[];for(const _0x41d806 of _0x53d29e){const _0x2deee9=_0x41d806['start']['nodeAfter'];_0x2deee9['is']('element','tableCellSuggestion')&&_0x3b7191['push'](_0x2deee9);}_0x203391['_suggestionFactory']['getSuggestionCallback'](_0x5d471d,null,_0x3b0fe8)(_0x53d29e,_0x23cc40,_0xfbda1e);for(const _0x192fb0 of _0x3b7191)'$graveyard'!=_0x192fb0['root']['rootName']&&_0x2eea58['unwrap'](_0x192fb0);});});};_0x56fd72('insertion','accept'),_0x56fd72('insertion','discard'),_0x56fd72('deletion','accept'),_0x56fd72('deletion','discard'),_0x203391['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2a8e6d=>{const _0x3c2bb5=_0x2a8e6d['map'](_0x4927e6=>_0x4927e6['getContainedElement']()),_0x1f8619=_0x3c2bb5[0x0]['findAncestor']('table'),{minRow:_0x459051,maxRow:_0x46950a}=_0x5218b6['_getCoordsForCells'](_0x3c2bb5);_0x4bf84f['removeRows'](_0x1f8619,{'at':_0x459051,'rows':_0x46950a-_0x459051+0x1});}),_0x203391['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x309e4f=>{const _0x54ccbc=_0x309e4f['map'](_0x502fde=>_0x502fde['getContainedElement']()),_0x5b1055=_0x54ccbc[0x0]['findAncestor']('table'),{minColumn:_0x15396c,maxColumn:_0x558f5f}=_0x5218b6['_getCoordsForCells'](_0x54ccbc);_0x4bf84f['removeColumns'](_0x5b1055,{'at':_0x15396c,'columns':_0x558f5f-_0x15396c+0x1});});const _0x331ae4=(_0x3c033d,_0x120ae3)=>{if(!_0x120ae3['subType']||!_0x120ae3['subType']['startsWith']('tablePaste'))return;const _0x4a4351=_0x120ae3['attributes']['tablePasteChainId'],_0x5cce91=_0x203391['getSuggestions']()['filter'](_0x45c871=>_0x45c871['isInContent']&&_0x45c871['attributes']&&_0x45c871['attributes']['tablePasteChainId']==_0x4a4351);_0x5cce91['length']&&_0x120ae3['getAllAdjacentSuggestions']()['length']!=_0x5cce91['length']&&_0x5cce91['reduce']((_0x3ec4e6,_0x141721)=>(_0x3ec4e6['next']=_0x141721,_0x141721['previous']=_0x3ec4e6,_0x141721));};function _0xdf0cce(_0xe18a19,_0x389b4b=!0x0){const {id:_0x18c954,authorId:_0x26ab58}=_0x203391['_splitMarkerName'](_0xe18a19['markerName']),_0x2bb800=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3a2a9a=_0x203391['activeMarkers']['includes'](_0xe18a19['markerName']);return _0x3a2a9a&&_0x2bb800['push']('ck-suggestion-marker--active'),{'classes':_0x2bb800,'attributes':{'data-suggestion':_0x18c954,'data-author-id':_0x26ab58},'priority':_0x3a2a9a&&_0x389b4b?0xbc2:0xbb8};}_0x203391['on']('suggestionLoaded',_0x331ae4,{'priority':'high'}),_0x203391['on']('suggestionUnloaded',_0x331ae4,{'priority':'high'}),_0x554337['model']['document']['registerPostFixer'](()=>{let _0x24a1f6=!0x1;const _0x2ca42d=Array['from'](_0x554337['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1668fd,data:_0xad1363}of _0x2ca42d){const {group:_0x1f2a8d,type:_0x5af998,id:_0x277f70}=_0x203391['_splitMarkerName'](_0x1668fd);if('suggestion'!=_0x1f2a8d||'deletion'!=_0x5af998||_0xad1363['oldRange'])continue;if(!_0x203391['hasSuggestion'](_0x277f70))continue;const _0x23cf30=_0x203391['getSuggestion'](_0x277f70)['getRanges'](),_0x3eee01=_0x554337['plugins']['get']('Users')['me'];for(const _0x3a110a of _0x203391['getSuggestions']()){if(!_0x3a110a['isInContent']||_0x3a110a['author']!=_0x3eee01)continue;if('formatBlock'!=_0x3a110a['type']||'tablePasteCell'!=_0x3a110a['subType'])continue;if(_0x3a110a['getRanges']()['every'](_0x582bb7=>_0x23cf30['some'](_0xedf3fb=>_0xedf3fb['containsRange'](_0x582bb7,!0x0)))){for(const _0x1de381 of _0x3a110a['getAllAdjacentSuggestions']())_0x1de381['isInContent']&&(_0x1de381['discard'](),_0x24a1f6=!0x0);}}}return _0x24a1f6;}),_0x554337['model']['document']['registerPostFixer'](_0x3d7609=>{const _0x2c551e=_0x554337['commands']['get']('redo');if(!_0x2c551e||!_0x2c551e['_createdBatches']['has'](_0x3d7609['batch']))return!0x1;let _0x4be0c0=!0x1;const _0x5521a1=_0x554337['plugins']['get']('Users')['me'],_0x319bae=_0x554337['model']['document']['differ']['getChanges'](),_0x5a18b7=Array['from'](_0x554337['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5db6cc,data:_0x3e734a})=>{const {group:_0x36bd9d,subType:_0x157a22,authorId:_0x3eb99b}=_0x203391['_splitMarkerName'](_0x5db6cc);return'suggestion'==_0x36bd9d&&'tablePaste'==_0x157a22&&_0x3eb99b==_0x5521a1['id']&&!_0x3e734a['oldRange'];});for(const _0x32e0d8 of _0x319bae){if('insert'!=_0x32e0d8['type']||'tableCellSuggestion'!=_0x32e0d8['name']||0x1!=_0x32e0d8['length'])continue;const _0x25d679=_0x3d7609['createRange'](_0x32e0d8['position'],_0x32e0d8['position']['getShiftedBy'](0x1));if(!_0x5a18b7['find'](({data:_0x552424})=>_0x552424['newRange']['isEqual'](_0x25d679))){for(const {name:_0x4b1318,data:_0x159abe}of _0x5a18b7)if(_0x25d679['containsRange'](_0x159abe['newRange'])){_0x3d7609['updateMarker'](_0x4b1318,{'range':_0x25d679}),_0x4be0c0=!0x0;break;}}}return _0x4be0c0;}),_0x554337['model']['document']['registerPostFixer'](_0x21bc9a=>{let _0xab1298=!0x1;const _0x1fdcc5=_0x554337['plugins']['get']('Users')['me'],_0x4d7999=_0x203391['getSuggestions']()['filter'](_0x2d4d5c=>_0x2d4d5c['isInContent']&&_0x2d4d5c['author']==_0x1fdcc5),_0x1b0c05=new Set(),_0x7624b8=new Set();for(const _0x496e46 of _0x4d7999)if('tablePaste'==_0x496e46['subType'])for(const _0x2f3d18 of _0x496e46['getMarkers']()){const _0x547dab=_0x2f3d18['getRange']()['getContainedElement']();if(_0x547dab){if(_0x547dab['is']('element','tableCellSuggestion')&&De(_0x547dab)){_0x496e46['removeMarker'](_0x2f3d18['name']),_0x1b0c05['add'](_0x547dab),_0xab1298=!0x0;const _0x403961=_0x547dab['nextSibling'],_0x3f0826=_0x547dab['previousSibling'],_0x5ca727=_0x403961&&_0x403961['is']('element','tableCellSuggestion'),_0x511f3d=_0x3f0826&&_0x3f0826['is']('element','tableCellSuggestion');_0x5ca727&&!_0x1b0c05['has'](_0x403961)&&_0x7624b8['add'](_0x403961),_0x511f3d&&!_0x1b0c05['has'](_0x3f0826)&&_0x7624b8['add'](_0x3f0826);}else _0x547dab['is']('element','paragraph')&&_0x547dab['isEmpty']&&(_0x496e46['removeMarker'](_0x2f3d18['name']),_0xab1298=!0x0);}}else{if('tablePasteCell'==_0x496e46['subType']){if(!_0x496e46['attributes']||!_0x496e46['attributes']['tablePasteChainId'])continue;const _0x560901=_0x496e46['attributes']['markerAttributes'];if(_0x560901&&Object['keys'](_0x560901)['length'])continue;const _0x342cd1=_0x496e46['attributes']['tablePasteChainId'];let _0x532253=!0x0,_0x42c187=!0x0;for(const _0x260a39 of _0x4d7999)if(_0x260a39['subType']&&_0x260a39['subType']['startsWith']('tablePaste')){if(!_0x260a39['attributes']['tablePasteChainId']){_0x42c187=!0x1;break;}if(_0x260a39['id']!=_0x496e46['id']&&_0x260a39['attributes']['tablePasteChainId']==_0x342cd1){_0x532253=!0x1;break;}}_0x42c187&&_0x532253&&(_0x496e46['removeMarkers'](),_0xab1298=!0x0);}}for(const _0x5e63e5 of _0x1b0c05)_0x21bc9a['remove'](_0x5e63e5);for(const _0x328edc of _0x7624b8)_0x21bc9a['unwrap'](_0x328edc);return _0xab1298;}),_0x554337['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x95c54a=>_0xdf0cce(_0x95c54a),'converterPriority':'high'}),_0x554337['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5f58b0,_0x5ccc05)=>_0x5ccc05['options']['showSuggestionHighlights']?_0xdf0cce(_0x5f58b0,!0x1):null,'converterPriority':'high'});const _0x123734=_0x554337['editing']['view'];this['listenTo'](_0x123734['document'],'clipboardOutput',(_0x2bfaa3,_0x25c1de)=>{const _0x2f1ed7=[];for(const _0x3687fb of _0x123734['createRangeIn'](_0x25c1de['content'])['getItems']())_0x3687fb['is']('element','suggestion-td')&&_0x2f1ed7['push'](_0x3687fb);_0x123734['change'](_0x187342=>{for(const _0x2fef39 of _0x2f1ed7)_0x187342['move'](_0x187342['createRangeIn'](_0x2fef39),_0x187342['createPositionBefore'](_0x2fef39)),_0x187342['remove'](_0x2fef39);});});}}function De(_0x2668b9){if(_0x2668b9['isEmpty'])return!0x0;const _0x596bb8=_0x2668b9['getChild'](0x0);return _0x596bb8['is']('element','paragraph')&&_0x596bb8['isEmpty'];}function He(_0x4aa6d3,_0xfa0ac1={},_0x509517){for(const {isAnchor:_0x284ca9,cellHeight:_0x8f0601,cellWidth:_0x255bcd}of _0x509517['createTableWalker'](_0x4aa6d3,{'includeAllSlots':!0x0,..._0xfa0ac1}))if(!_0x284ca9||0x1!=_0x8f0601||0x1!=_0x255bcd)return!0x1;return!0x0;}class Bt extends _0x11ea7f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x55616e=this['editor']['plugins']['get']('TrackChangesEditing');_0x55616e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x55616e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x55616e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x55616e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x55616e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x55616e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2bf3e2,_0x46194f){const _0x4c19bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f5f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x31eab2=_0x46194f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x56fca2=_0x2f5f['getColumnGroupElement'](_0x31eab2);let _0x187a75=_0x56fca2?_0x2f5f['getTableColumnsWidths'](_0x56fca2):null,_0x27d124=_0x31eab2['getAttribute']('tableWidth')||null;const _0x403132=_0x46194f['tableWidth']||_0x27d124,_0x4fea93=_0x46194f['columnWidths']||_0x187a75,_0xab4289=this['editor']['plugins']['get']('Users')['me'];for(const _0x5597ac of _0x4c19bc['getSuggestions']()){const _0x4e9384=_0x5597ac['getContainedElement']();if('resizeTable'===_0x5597ac['subType']&&_0x4e9384===_0x31eab2){_0x5597ac['author']!==_0xab4289&&_0x5597ac['discard']();const _0x5dd346=_0x5597ac['data']['commandParams'];_0x27d124=_0x5dd346[0x0]['tableWidth'],_0x187a75=_0x5dd346[0x0]['columnWidths'];break;}}_0x2bf3e2({'table':_0x31eab2,'tableWidth':_0x403132,'columnWidths':_0x4fea93}),_0x4c19bc['markBlockFormat'](_0x31eab2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x27d124,'columnWidths':_0x187a75}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x124b0e){if('formatBlock'!=_0x124b0e['type']&&'formatInline'!=_0x124b0e['type'])return;const {data:_0x984f28}=_0x124b0e;if(_0x984f28&&'resizeTable'===_0x984f28['formatGroupId']){const _0x164973='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x164973)};}}}class xt extends _0x11ea7f{['afterInit'](){const _0x51d1af=this['editor'];_0x51d1af['plugins']['has']('Template')&&_0x51d1af['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x11ea7f{['afterInit'](){const _0x54f835=this['editor'];if(!_0x54f835['commands']['get']('insertTableOfContents'))return;_0x54f835['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4b9d83=_0x54f835['plugins']['get']('TrackChangesEditing'),_0x512569=_0x54f835['locale'];_0x4b9d83['descriptionFactory']['registerElementLabel']('tableOfContents',_0x47b8cd=>c(_0x512569,'ELEMENT_TABLE_OF_CONTENTS',_0x47b8cd));}}class Rt extends _0x11ea7f{['afterInit'](){const _0x56db5d=this['editor'];if(!_0x56db5d['plugins']['has']('Title'))return;const _0x304040=_0x56db5d['plugins']['get']('TrackChangesEditing');_0x304040['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x56db5d['locale'],'ELEMENT_TITLE')),_0x56db5d['model']['document']['registerPostFixer'](_0xa43b9=>{let _0x2f70c7=!0x1;const _0x4921d7=Array['from'](_0x56db5d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ee3f6,data:_0x30caf5}of _0x4921d7){const {group:_0x381dea}=_0x304040['_splitMarkerName'](_0x4ee3f6);if('suggestion'!==_0x381dea||!_0x30caf5['newRange'])continue;const _0x36856f=_0x30caf5['newRange'],_0x58a9f9=_0x36856f['end']['nodeBefore'];if(!_0x58a9f9||!_0x58a9f9['is']('element','title-content'))continue;if(!_0x36856f['start']['isTouching'](_0x36856f['end']))continue;const _0x515462=_0x56db5d['model']['schema']['getNearestSelectionRange'](_0x36856f['end'],'forward');if(_0x515462&&_0x515462['isCollapsed']){const _0x4b43e1=_0xa43b9['createRange'](_0x36856f['start'],_0x515462['start']);_0x4b43e1['isEqual'](_0x36856f)||(_0xa43b9['updateMarker'](_0x4ee3f6,{'range':_0x4b43e1}),_0x2f70c7=!0x0);}_0x2f70c7||(_0xa43b9['removeMarker'](_0x4ee3f6),_0x2f70c7=!0x0);}return _0x2f70c7;});}}class Tt extends _0x11ea7f{['afterInit'](){const _0x2a2043=this['editor'],_0x394218=_0x2a2043['plugins']['get']('TrackChangesEditing');_0x2a2043['plugins']['has']('Uploadcare')&&(_0x394218['enableCommand']('uploadcare'),_0x2a2043['plugins']['has']('UploadcareImageEdit')&&(_0x394218['enableCommand']('uploadcareImageEdit'),_0x394218['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x394218['registerBlockAttribute']('uploadcareImageId'),_0x394218['descriptionFactory']['registerDescriptionCallback'](_0x284d90=>{if('attribute'!=_0x284d90['type'])return;const {data:_0x1b3ce6}=_0x284d90;return _0x1b3ce6&&'uploadcareImageId'==_0x1b3ce6['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x11ea7f{['afterInit'](){const _0x44c5f8=this['editor'],_0x5f4539=_0x44c5f8['plugins']['get']('TrackChangesEditing');_0x44c5f8['plugins']['has']('UndoEditing')&&(_0x5f4539['enableCommand']('undo'),_0x5f4539['enableCommand']('redo'));}}class Ut extends _0x11ea7f{static get['requires'](){return[Ct];}['afterInit'](){const _0x4619fa=this['editor'];if(!_0x4619fa['plugins']['has']('TableCaptionEditing'))return;_0x4619fa['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x11ea7f{['tableProperties'];['tableCellProperties'];constructor(_0x49ac2c){super(_0x49ac2c),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x54a2ee=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5cdc0f of this['tableProperties'])_0x54a2ee['enableCommand'](_0x5cdc0f,(_0x106f51,_0x209fd4)=>{const _0x495823=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5cdc0f,[_0x495823],this['tableProperties'],'tableProperties',_0x106f51,_0x209fd4);});_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x54a2ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x207c71,_0x50283a)=>this['handleDiscardAction'](this['tableProperties'],_0x207c71,_0x50283a)),_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3a5cf8 of this['tableCellProperties'])_0x54a2ee['enableCommand'](_0x3a5cf8,(_0x280c0f,_0x25959e)=>{const _0x138241=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3a5cf8,_0x138241,this['tableCellProperties'],'tableCellProperties',_0x280c0f,_0x25959e);});_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x54a2ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x54d716,_0x6942ff)=>this['handleDiscardAction'](this['tableCellProperties'],_0x54d716,_0x6942ff)),_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x54a2ee['descriptionFactory']['registerDescriptionCallback'](_0x56c315=>this['handleSuggestionDescription'](_0x56c315));}['_handlePropertyChange'](_0x518e94,_0x316fbd,_0x5b4772,_0x2bbb17,_0x304342,_0x182613){const _0x381914=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x182613['batch'],()=>{for(const _0xe865d5 of _0x316fbd){if(this['_getSuggestion'](_0xe865d5,_0x2bbb17))_0x304342(_0x182613);else{const _0x960dc3={};for(const _0x1e20c1 of _0x5b4772){const _0x5cc699=_0xe865d5['getAttribute'](_0x1e20c1);void 0x0!==_0x5cc699&&(_0x960dc3[_0x1e20c1]=_0x5cc699);}_0x304342(_0x182613),_0x381914['markBlockFormat'](_0xe865d5,{'commandParams':[_0x960dc3]},[],_0x2bbb17);}}});}['handleDiscardAction'](_0xb69d50,_0x4b4c83,_0x363be5){const _0x435a46=_0x4b4c83[0x0]['start']['nodeAfter'],_0x1975e3=_0x363be5['commandParams'][0x0];this['editor']['model']['change'](_0x27cfae=>{for(const _0x516724 of _0xb69d50)void 0x0!==_0x1975e3[_0x516724]?_0x27cfae['setAttribute'](_0x516724,_0x1975e3[_0x516724],_0x435a46):_0x27cfae['removeAttribute'](_0x516724,_0x435a46);});}['handleSuggestionDescription'](_0x2db5ba){if(_0x2db5ba['data'])switch(_0x2db5ba['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5afcfc,_0x16dbba){const _0x2e32f2=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1dd0a9 of _0x2e32f2['getSuggestions']({'skipNotAttached':!0x0})){const _0x42a5ac=_0x1dd0a9['getContainedElement']();if(_0x1dd0a9['subType']===_0x16dbba&&_0x42a5ac===_0x5afcfc)return _0x1dd0a9;}return null;}}const u='$elementName';class p extends _0x11ea7f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x19fdf5,_0x2727c4,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b11f0){super(_0x5b11f0),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x172e3e,_0x5076e9,_0x5f2e9a,_0x40b756)=>{this['_model']['change'](()=>{for(const _0x1883af of[..._0x40b756,..._0x5f2e9a])this['_model']['markers']['has'](_0x1883af)&&_0x5b11f0['editing']['reconvertMarker'](_0x1883af);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5b11f0['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x5b11f0['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5b11f0['config']['get']('trackChanges.trackFormatChanges'),_0x5b11f0['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5b11f0['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5b11f0,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x34ce2a=this['editor'],_0x732589=(_0x2a9802,_0x23cd68)=>{if('attribute'!=_0x2a9802)return'ck-suggestion-marker-'+_0x2a9802;const _0x1fb1b5=_0x23cd68['split']('|')[0x0];return this['_isBlockAttribute'](_0x1fb1b5)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x34ce2a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2d4a43=>{const {id:_0x59e30e,authorId:_0x564fae,type:_0xbdb5,subType:_0x267317}=this['_splitMarkerName'](_0x2d4a43['markerName']),_0x185f61=['ck-suggestion-marker',_0x732589(_0xbdb5,_0x267317)];let _0x387cec=0xbb8;return this['activeMarkers']['includes'](_0x2d4a43['markerName'])&&(_0x185f61['push']('ck-suggestion-marker--active'),_0x387cec=0xbc2),'deletion'==_0xbdb5&&(_0x387cec+=0x5),{'classes':_0x185f61,'attributes':{'data-suggestion':_0x59e30e,'data-author-id':_0x564fae},'priority':_0x387cec};}}),_0x34ce2a['conversion']['for']('dataDowncast')['add'](_0x5578c2=>{_0x5578c2['on']('addMarker:suggestion',(_0xbd54d8,_0x5c1543,_0x147c05)=>{if(!_0x147c05['options']['showSuggestionHighlights'])return;const _0xc44a65=_0x5c1543['item'];if(!_0xc44a65)return;const _0x1c2b85=_0x147c05['mapper']['toViewElement'](_0xc44a65);_0x34ce2a['model']['schema']['isObject'](_0xc44a65)&&_0x1c2b85&&!_0x1c2b85['getCustomProperty']('widget')&&_0x1c2b85['is']('containerElement')&&_0x1a15a4(_0x1c2b85,_0x147c05['writer']);},{'priority':'high'});}),_0x34ce2a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x427320,_0x1e1731)=>{if(!_0x1e1731['options']['showSuggestionHighlights'])return null;const {id:_0xe99ecc,authorId:_0x243bae,type:_0xcf248d,subType:_0x5cb379}=this['_splitMarkerName'](_0x427320['markerName']);return{'classes':['ck-suggestion-marker',_0x732589(_0xcf248d,_0x5cb379)],'priority':0xbb8,'attributes':{'data-suggestion':_0xe99ecc,'data-author-id':_0x243bae}};}});const _0x155e62=({showActiveMarkers:_0x293fb0=!0x0,isAttributeSuggestion:_0x4a8019=!0x1}={})=>(_0x445140,_0x2fbc04,_0x2f260f)=>{if(!_0x2fbc04['item'])return;const {id:_0x33c577,authorId:_0x26330f}=this['_splitMarkerName'](_0x2fbc04['markerName']);if(_0x4a8019){const _0x335586=this['_suggestions']['get'](_0x33c577),_0x6b8c8d=this['_getAttributeKey'](_0x335586);if(!this['_isBlockAttribute'](_0x6b8c8d))return;}if(_0x2fbc04['item']['is']('selection'))return void _0x2f260f['consumable']['consume'](_0x2fbc04['item'],_0x445140['name']);const _0x3eff0c=_0x2f260f['mapper']['toViewElement'](_0x2fbc04['item']);if(_0x2fbc04['item']['is']('element')&&_0x34ce2a['model']['schema']['isBlock'](_0x2fbc04['item'])&&!_0x3eff0c['getCustomProperty']('addHighlight')){_0x2f260f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3eff0c),_0x2f260f['writer']['setAttribute']('data-suggestion',_0x33c577,_0x3eff0c),_0x2f260f['writer']['setAttribute']('data-author-id',_0x26330f,_0x3eff0c),_0x2f260f['mapper']['bindElementToMarker'](_0x3eff0c,_0x2fbc04['markerName']),_0x293fb0&&(this['activeMarkers']['includes'](_0x2fbc04['markerName'])?_0x2f260f['writer']['addClass']('ck-suggestion-marker--active',_0x3eff0c):_0x2f260f['writer']['removeClass']('ck-suggestion-marker--active',_0x3eff0c));for(const _0x39e2ba of _0x34ce2a['model']['createRangeIn'](_0x2fbc04['item'])['getItems']())_0x2f260f['consumable']['consume'](_0x39e2ba,_0x445140['name']);_0x2f260f['consumable']['consume'](_0x2fbc04['item'],_0x445140['name']);}};_0x34ce2a['conversion']['for']('dataDowncast')['add'](_0x5a5d8e=>{_0x5a5d8e['on']('addMarker:suggestion:formatBlock',(_0x5e7b4f,_0x3b0e71,_0xa28161)=>{_0xa28161['options']['showSuggestionHighlights']&&_0x155e62({'showActiveMarkers':!0x1})(_0x5e7b4f,_0x3b0e71,_0xa28161);},{'priority':'highest'});}),_0x34ce2a['conversion']['for']('dataDowncast')['add'](_0x322d01=>{_0x322d01['on']('addMarker:suggestion:attribute',(_0x1c627d,_0x3c460d,_0x503015)=>{_0x503015['options']['showSuggestionHighlights']&&_0x155e62({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1c627d,_0x3c460d,_0x503015);},{'priority':'highest'});}),_0x34ce2a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2e5179,_0x144b39)=>{if(_0x144b39['options']['showSuggestionHighlights']){const {id:_0x2e090c,authorId:_0x369f0e}=this['_splitMarkerName'](_0x2e5179);return _0x2e5179['includes'](':split')||_0x2e5179['includes'](':merge')?{'group':'suggestion','name':_0x2e5179['substr'](0xb),'attributes':{'data-suggestion':_0x2e090c,'data-author-id':_0x369f0e}}:null;}return{'group':'suggestion','name':_0x2e5179['substr'](0xb)};}}),_0x34ce2a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x66ecc5,{writer:_0x3cf1bf})=>{let _0x44cce1='suggestion:'+_0x66ecc5['getAttribute']('suggestion-type')+':'+_0x66ecc5['getAttribute']('id');return _0x66ecc5['getAttribute']('marker-count')&&(_0x44cce1+=':'+_0x66ecc5['getAttribute']('marker-count')),_0x3cf1bf['createElement']('$marker',{'data-name':_0x44cce1});}}),_0x34ce2a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x34ce2a['conversion']['for']('editingDowncast')['add'](_0x1779f3=>{_0x1779f3['on']('addMarker:suggestion:formatBlock',_0x155e62(),{'priority':'high'});}),_0x34ce2a['conversion']['for']('editingDowncast')['add'](_0xfd470a=>{_0xfd470a['on']('addMarker:suggestion:attribute',_0x155e62({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x34ce2a['conversion']['for']('editingDowncast')['add'](_0x4f7e55=>{_0x4f7e55['on']('removeMarker:suggestion:formatBlock',(_0x5161ad,_0x3a2616,_0x51041b)=>{const _0x418488=_0x51041b['mapper']['markerNameToElements'](_0x3a2616['markerName']);if(_0x418488){for(const _0x19f39a of _0x418488)_0x19f39a['getCustomProperty']('addHighlight')||(_0x51041b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x19f39a),_0x51041b['writer']['removeAttribute']('data-suggestion',_0x19f39a),_0x51041b['writer']['removeAttribute']('data-author-id',_0x19f39a),_0x51041b['mapper']['unbindElementFromMarkerName'](_0x19f39a,_0x3a2616['markerName']));}},{'priority':'high'});}),_0x34ce2a['conversion']['for']('editingDowncast')['add'](_0x472c5e=>{_0x472c5e['on']('removeMarker:suggestion:attribute',(_0x335a66,_0x5e62db,_0x36381e)=>{const _0x7eb216=_0x36381e['mapper']['markerNameToElements'](_0x5e62db['markerName']);if(!_0x7eb216)return;const {id:_0x41083f}=this['_splitMarkerName'](_0x5e62db['markerName']),_0xe666c7=this['_suggestions']['get'](_0x41083f),_0x59cf6a=this['_getAttributeKey'](_0xe666c7);if(this['_isBlockAttribute'](_0x59cf6a)){for(const _0x464b75 of _0x7eb216)_0x464b75['getCustomProperty']('addHighlight')||(_0x36381e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x464b75),_0x36381e['writer']['removeAttribute']('data-suggestion',_0x464b75),_0x36381e['writer']['removeAttribute']('data-author-id',_0x464b75),_0x36381e['mapper']['unbindElementFromMarkerName'](_0x464b75,_0x5e62db['markerName']));}},{'priority':'high'});}),_0x34ce2a['model']['document']['registerPostFixer'](_0xe86eda=>{let _0x2caf17=!0x1;const _0x9b3532=Array['from'](_0x34ce2a['model']['document']['differ']['getChangedMarkers']()),_0x8ae176=new Set();for(const {name:_0x17625e,data:_0x556caa}of _0x9b3532){const {group:_0x2ab1f7,type:_0x41a3c2,subType:_0x307728,id:_0x47cea8}=this['_splitMarkerName'](_0x17625e);if('suggestion'!==_0x2ab1f7)continue;const _0x64edf4=this['_suggestions']['get'](_0x47cea8);if(null!=_0x556caa['newRange']){'formatInline'==_0x41a3c2&&(_0x2caf17=_0x2caf17||Jt(_0x556caa['newRange'],_0x17625e,_0xe86eda,_0x34ce2a['model']['schema']));const _0x297917='attribute'==_0x41a3c2&&this['_isBlockAttribute'](_0x307728['split']('|')[0x0]);if(_0x556caa['newRange']['isCollapsed']||'$graveyard'==_0x556caa['newRange']['root']['rootName']||'formatBlock'==_0x41a3c2&&!Ht(_0x556caa['newRange'])||_0x297917&&!Ht(_0x556caa['newRange'])||'deletion'==_0x41a3c2&&!(!Lt(_0x4a3c79=_0x556caa['newRange'])&&!function(_0x5e100e){return _0x5e100e['start']['parent']==_0x5e100e['end']['nodeBefore']&&_0x5e100e['start']['isAtEnd'];}(_0x4a3c79)))_0xe86eda['removeMarker'](_0x17625e),_0x2caf17=!0x0;else{if(!_0x64edf4||!_0x64edf4['isInContent'])continue;if(_0x556caa['newRange']&&_0x556caa['oldRange']&&_0x556caa['newRange']['isEqual'](_0x556caa['oldRange']))continue;_0x8ae176['add'](_0x64edf4);}}}var _0x4a3c79;return _0x8ae176['size']>0x0&&(_0x2caf17=!!this['_joinWithAdjacentSuggestions'](_0x8ae176)||_0x2caf17),_0x2caf17;}),_0x34ce2a['model']['document']['registerPostFixer'](_0x2346b1=>{let _0x5128df=!0x1;for(const _0x403e16 of _0x34ce2a['model']['document']['differ']['getChanges']())if('insert'==_0x403e16['type'])for(const _0x3e79c of this['_suggestions']['values']()){if(_0x3e79c['isMultiRange']||!_0x3e79c['isInContent'])continue;const _0x28f5a7='formatBlock'==_0x3e79c['type'],_0x362921=this['_getAttributeKey'](_0x3e79c),_0x30212b=_0x362921&&this['_isBlockAttribute'](_0x362921);if(!_0x28f5a7&&!_0x30212b)continue;const _0x1b5f8c=_0x3e79c['getFirstRange']();if(_0x1b5f8c['start']['parent']!=_0x1b5f8c['end']['parent']&&!_0x1b5f8c['end']['isAtEnd']){const _0x30a6b3=_0x34ce2a['model']['createPositionAt'](_0x1b5f8c['start']['nodeAfter'],'end'),_0x287268=_0x34ce2a['model']['createRange'](_0x1b5f8c['start'],_0x30a6b3);_0x2346b1['updateMarker'](_0x3e79c['getFirstMarker'](),{'range':_0x287268}),_0x5128df=!0x0;}}return _0x5128df;}),_0x34ce2a['model']['document']['registerPostFixer'](_0x4a9d5f=>this['_processAttributeChanges'](_0x4a9d5f)),_0x34ce2a['model']['document']['registerPostFixer'](_0x114bb4=>!_0x114bb4['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x114bb4)),_0x34ce2a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x34ce2a['model']['document']['on']('change:data',(_0xfa5b16,_0x42cb8d)=>{if(!_0x42cb8d['isLocal']||_0x42cb8d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4cb9c0=_0x34ce2a['model']['document']['differ']['getChanges']();if(0x0==_0x4cb9c0['length'])return;const _0x5c9b41=[],_0x374e09=_0x4cb9c0['filter'](_0x275a56=>'attribute'==_0x275a56['type']),_0x525198=_0x4cb9c0['filter'](_0x14d07b=>'insert'==_0x14d07b['type']&&'$text'!=_0x14d07b['name']);for(const _0x1fbd31 of _0x374e09)this['_isRegisteredAttribute'](_0x1fbd31['attributeKey'])&&_0x5c9b41['push']({'key':_0x1fbd31['attributeKey'],'newValue':_0x1fbd31['attributeNewValue'],'oldValue':_0x1fbd31['attributeOldValue'],'range':qt(_0x1fbd31['range'],_0x34ce2a['model'])});for(const _0x1dd001 of _0x525198){if('rename'!=_0x1dd001['action']&&'refresh'!=_0x1dd001['action'])continue;const _0x1cec82=zt(_0x1dd001['position']['nodeAfter'],_0x34ce2a['model']),_0x33d961=_0x1dd001['before'];'rename'==_0x1dd001['action']&&_0x5c9b41['push']({'key':u,'newValue':_0x1dd001['name'],'oldValue':_0x33d961['name'],'range':_0x1cec82});for(const [_0x5d2c78,_0x13a182]of _0x33d961['attributes']){if(!this['_isRegisteredAttribute'](_0x5d2c78))continue;const _0x5a40cc=_0x1dd001['attributes']['get'](_0x5d2c78);_0x13a182!==_0x5a40cc&&_0x5c9b41['push']({'key':_0x5d2c78,'newValue':_0x5a40cc,'oldValue':_0x13a182,'range':_0x1cec82});}for(const [_0x277502,_0x1236e4]of _0x1dd001['attributes'])this['_isRegisteredAttribute'](_0x277502)&&(_0x33d961['attributes']['has'](_0x277502)||_0x5c9b41['push']({'key':_0x277502,'newValue':_0x1236e4,'oldValue':null,'range':_0x1cec82}));}0x0!=_0x5c9b41['length']&&_0x34ce2a['model']['enqueueChange'](_0x42cb8d,_0xf72838=>{const _0x1a4e8f=_0x12ee37();for(const {range:_0x172497,key:_0x5e2fd2,oldValue:_0x3916d6,newValue:_0x48f43b}of _0x5c9b41)this['markAttributeChange'](_0x172497,_0x5e2fd2,_0x3916d6,_0x48f43b,{'groupId':_0x1a4e8f});this['_reduceExistingSuggestions'](_0xf72838,_0x5c9b41);});},{'priority':'lowest'}),_0x34ce2a['model']['markers']['on']('update:suggestion',(_0xdb0b13,_0x4582fb,_0x13424f)=>{if(null==_0x13424f){const {id:_0x2086e1}=this['_splitMarkerName'](_0x4582fb['name']),_0x1a3e3b=this['_suggestions']['get'](_0x2086e1);_0x1a3e3b&&_0x1a3e3b['addMarkerName'](_0x4582fb['name']);}}),_0x34ce2a['model']['document']['on']('change:data',()=>{const _0x58859b=Array['from'](_0x34ce2a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x19a53f=>'suggestion'===this['_splitMarkerName'](_0x19a53f['name'])['group']);if(0x0===_0x58859b['length'])return;_0x58859b['sort']((_0x3d14aa,_0x48e8c4)=>{const _0x1a81bb=_0x3d14aa['data']['oldRange'],_0x113954=_0x48e8c4['data']['oldRange'];return null===_0x1a81bb&&null===_0x113954?0x0:null===_0x1a81bb&&null!==_0x113954?-0x1:null!==_0x1a81bb&&null===_0x113954?0x1:_0x1a81bb['start']['isBefore'](_0x113954['start'])?-0x1:0x1;});const _0x1798ad=new Set(),_0x3bb617=new Set();for(const {name:_0x5cf2e3,data:_0x56b557}of _0x58859b){const {id:_0x1825f5}=this['_splitMarkerName'](_0x5cf2e3);if(null===_0x56b557['oldRange']){const _0x4b3954=this['_handleNewSuggestionMarker'](_0x5cf2e3);_0x3bb617['add'](_0x4b3954);}else{const _0xf9bcf4=this['_suggestions']['get'](_0x1825f5);null!==_0x56b557['newRange']||_0xf9bcf4['isInContent']?(_0x1798ad['add'](_0xf9bcf4['head']),_0x3bb617['add'](_0xf9bcf4)):this['_removeSuggestion'](_0xf9bcf4);}}_0x3bb617['size']>0x0&&this['_refreshSuggestionsChain'](_0x3bb617);for(const _0x950dae of _0x1798ad)this['fire']('suggestionChanged',_0x950dae);}),_0x34ce2a['model']['on']('applyOperation',(_0x37f65e,_0x3a234e)=>{const _0x13990b=_0x3a234e[0x0];if(!this['_suggestions']['size'])return;if(!_0x13990b['isDocumentOperation'])return;if(_0x13990b['batch']['isUndo']||!_0x13990b['batch']['isLocal'])return;let _0x52727a,_0x401d4a;switch(_0x13990b['type']){case'insert':_0x52727a=_0x34ce2a['model']['createPositionAt'](_0x13990b['position']),_0x401d4a=_0x52727a['getShiftedBy'](_0x13990b['howMany']);break;case'split':_0x52727a=_0x34ce2a['model']['createPositionAt'](_0x13990b['splitPosition']),_0x401d4a=_0x34ce2a['model']['createPositionAt'](_0x13990b['moveTargetPosition']);break;case'move':_0x52727a=_0x34ce2a['model']['createPositionAt'](_0x13990b['targetPosition']),_0x401d4a=_0x52727a['getShiftedBy'](_0x13990b['howMany']);break;default:return;}const _0xd3c5da=_0x34ce2a['model']['createRange'](_0x52727a,_0x401d4a);_0x34ce2a['model']['change'](()=>{for(const {suggestion:_0x20f785,meta:_0x5bbf43}of this['_findSuggestions'](_0xd3c5da)){if(_0x20f785['isMultiRange'])continue;if('formatInline'==_0x20f785['type'])continue;const _0x5bc0f1=this['_getAttributeKey'](_0x20f785);if(_0x5bc0f1&&this['_isBlockAttribute'](_0x5bc0f1)&&'split'!=_0x13990b['type'])continue;const _0x12c1af=_0x20f785['data']&&_0x20f785['data']['multipleBlocks'];('formatBlock'!=_0x20f785['type']||'split'==_0x13990b['type']&&!_0x12c1af)&&(_0x5bbf43['containsRangeInObject']||'insertion'==_0x20f785['type']&&_0x5bbf43['isOwn']||_0x20f785['getFirstRange']()['containsRange'](_0xd3c5da)&&this['_breakSuggestionMarker'](_0x20f785,_0x52727a,_0x401d4a));}});},{'priority':'lowest'}),_0x34ce2a['model']['on']('deleteContent',(_0x4c3140,_0x38cc24)=>{const _0x44a0e0=_0x38cc24[0x0],_0x44577b=_0x38cc24[0x1];if(_0x44577b&&_0x44577b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x44a0e0['isCollapsed'])return;const _0x61d597=_0x34ce2a['model']['schema'],{start:_0x50f1a1,end:_0x4a6f1a}=_0x44a0e0['getFirstRange'](),_0xbbd397=_0x50f1a1['nodeAfter']&&_0x61d597['isLimit'](_0x50f1a1['nodeAfter'])?null:_0x61d597['getNearestSelectionRange'](_0x50f1a1,'forward'),_0x55f98a=_0x4a6f1a['nodeBefore']&&_0x61d597['isLimit'](_0x4a6f1a['nodeBefore'])?null:_0x61d597['getNearestSelectionRange'](_0x4a6f1a,'backward'),_0x10592e=_0x34ce2a['model']['createRange'](_0xbbd397?_0xbbd397['start']:_0x50f1a1,_0x55f98a?_0x55f98a['end']:_0x4a6f1a);_0x34ce2a['model']['change'](_0x2a1723=>{this['markDeletion'](_0x10592e);const _0x506054=_0x34ce2a['model']['schema']['getNearestSelectionRange'](_0x10592e['start']);_0x44a0e0['is']('documentSelection')?_0x2a1723['setSelection'](_0x506054):_0x44a0e0['setTo'](_0x506054);}),_0x4c3140['stop']();},{'priority':_0x2ef4ce['normal']+0xa}),_0x34ce2a['model']['on']('insertContent',(_0x51a924,_0x2729b0)=>{const _0x4fcf21=_0x2729b0[_0x2729b0['length']-0x1];_0x4fcf21&&_0x4fcf21['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x34ce2a['model']['change'](()=>{let _0x3fafd1=_0x34ce2a['model']['insertContent'](_0x2729b0[0x0],_0x2729b0[0x1],_0x2729b0[0x2],{'forceDefaultExecution':!0x0});if(!_0x3fafd1)return;_0x51a924['return']=_0x3fafd1['clone']();const _0x442ac7=_0x3fafd1['end']['nodeBefore'],_0x5a5b15=_0x34ce2a['model']['schema'];_0x442ac7&&_0x5a5b15['isBlock'](_0x442ac7)&&!_0x5a5b15['isObject'](_0x442ac7)&&(_0x3fafd1=_0x34ce2a['model']['createRange'](_0x3fafd1['start'],_0x34ce2a['model']['createPositionAt'](_0x442ac7,'end'))),this['markInsertion'](_0x3fafd1);}),_0x51a924['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x26d0cb=new x(_0x34ce2a,this['_suggestions']);_0x34ce2a['commands']['add']('acceptSuggestion',_0x26d0cb),this['enableCommand']('acceptSuggestion');const _0x22e3dc=new O(_0x34ce2a,this['_suggestions']);_0x34ce2a['commands']['add']('discardSuggestion',_0x22e3dc),this['enableCommand']('discardSuggestion'),_0x34ce2a['commands']['add']('acceptAllSuggestions',new R(_0x34ce2a,_0x26d0cb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x34ce2a['commands']['add']('discardAllSuggestions',new R(_0x34ce2a,_0x22e3dc,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x34ce2a['commands']['add']('acceptSelectedSuggestions',new E(_0x34ce2a,_0x26d0cb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x34ce2a['commands']['add']('discardSelectedSuggestions',new E(_0x34ce2a,_0x22e3dc,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2af871=_0x34ce2a['plugins']['get']('CommentsRepository');this['listenTo'](_0x2af871,'addComment',(_0x4eb114,{threadId:_0x326d26})=>{const _0x383319=this['_suggestions']['get'](_0x326d26);_0x383319&&_0x383319['commentThread']&&0x1===_0x383319['commentThread']['length']&&this['_updateSuggestionData'](_0x326d26,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2af871,'removeComment',(_0x3c6b22,{threadId:_0x1730b2})=>{const _0xb74508=this['_suggestions']['get'](_0x1730b2);_0xb74508&&_0xb74508['commentThread']&&!_0xb74508['commentThread']['length']&&this['_updateSuggestionData'](_0x1730b2,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x22fa7a){const _0x36e233=_0x11a22a([0x35,0x50,0x4c,0x53,0x46,0x4a,0x52,0x47,0x6f,0x43,0x44,0x37,0x57,0x32,0x51,0x39,0x75,0x4f,0x33,0x4d,0x71,0x63,0x34,0x59,0x30,0x61,0x4b,0x76,0x55,0x48,0x4e,0x45,0x74,0x62,0x70,0x69,0x42,0x6a,0x6d,0x72,0x41,0x36,0x54,0x58,0x68,0x6c,0x66,0x31,0x64,0x38,0x77,0x73,0x6e,0x65,0x49,0x6b,0x7a,0x5a,0x67,0x79,0x56,0x78]),_0x449c62=0x1c3fef4,_0x456729=0x1c49424^_0x449c62,_0x30ad91=window[_0x11a22a([0x44,0x61,0x74,0x65])][_0x11a22a([0x6e,0x6f,0x77])](),_0x44f2d7=_0x22fa7a[_0x11a22a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b879d=new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xebef6c=>{_0x44f2d7[_0x11a22a([0x6f,0x6e,0x63,0x65])](_0x11a22a([0x72,0x65,0x61,0x64,0x79]),_0xebef6c);}),_0x1c0b39={[_0x11a22a([0x6b,0x74,0x79])]:_0x11a22a([0x45,0x43]),[_0x11a22a([0x75,0x73,0x65])]:_0x11a22a([0x73,0x69,0x67]),[_0x11a22a([0x63,0x72,0x76])]:_0x11a22a([0x50,0x2d,0x32,0x35,0x36]),[_0x11a22a([0x78])]:_0x11a22a([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x11a22a([0x79])]:_0x11a22a([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x11a22a([0x61,0x6c,0x67])]:_0x11a22a([0x45,0x53,0x32,0x35,0x36])},_0xec3d7c=_0x44f2d7[_0x11a22a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x11a22a([0x67,0x65,0x74])](_0x11a22a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1fe8b0(){let _0x34781d,_0x4787ba=null,_0x3720f9=null;try{if(_0xec3d7c==_0x11a22a([0x47,0x50,0x4c]))return _0x11a22a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34781d=_0x157442(),!_0x34781d)return _0x11a22a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34781d[_0x11a22a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3720f9=_0x1623c5(_0x34781d[_0x11a22a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34781d[_0x11a22a([0x6a,0x74,0x69])])),await _0x4666ad()?_0x3fd7f0()?_0x15c095()?_0x11a22a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x195901()?(_0x34781d[_0x11a22a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11a22a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4787ba=_0x3cd6ea(_0x11a22a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34781d[_0x11a22a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11a22a([0x74,0x72,0x69,0x61,0x6c])&&(_0x4787ba=_0x3cd6ea(_0x11a22a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x677645()):_0x11a22a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x11a22a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x11a22a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x11a22a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15c095(){const _0x4dde09=[_0x11a22a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x11a22a([0x74,0x72,0x69,0x61,0x6c])][_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34781d[_0x11a22a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x30ad91/0x3e8:0xe10*_0x456729;return _0x34781d[_0x11a22a([0x65,0x78,0x70])]<_0x4dde09;}function _0x3fd7f0(){const _0x3c55f1=_0x34781d[_0x11a22a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3c55f1)return!0x1;if(_0x3c55f1[_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a22a([0x2a])))return!0x0;if(_0x3c55f1[_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a22a([0x54,0x43])))return!0x0;if(_0x3c55f1[_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a22a([0x52,0x54,0x43]))){if(_0x404574())return!0x0;if(_0x1ee6a6()||_0x2773b9())return!0x0;}return!0x1;}function _0x195901(){const _0x4f14e1=_0x34781d[_0x11a22a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4f14e1||0x0==_0x4f14e1[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ba3d8}=new URL(window[_0x11a22a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4f14e1[_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ba3d8))return!0x0;const _0x1d0288=_0x1ba3d8[_0x11a22a([0x73,0x70,0x6c,0x69,0x74])](_0x11a22a([0x2e]));return _0x4f14e1[_0x11a22a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4479f9=>_0x4479f9[_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a22a([0x2a])))[_0x11a22a([0x6d,0x61,0x70])](_0x3881a5=>_0x3881a5[_0x11a22a([0x73,0x70,0x6c,0x69,0x74])](_0x11a22a([0x2e])))[_0x11a22a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x199444=>_0x199444[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1d0288[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11a22a([0x6d,0x61,0x70])](_0x69a9f=>Array(_0x1d0288[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x69a9f[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11a22a([0x66,0x69,0x6c,0x6c])](_0x69a9f[0x0]===_0x11a22a([0x2a])?_0x11a22a([0x2a]):'')[_0x11a22a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x69a9f))[_0x11a22a([0x73,0x6f,0x6d,0x65])](_0x2a9b4d=>_0x1d0288[_0x11a22a([0x65,0x76,0x65,0x72,0x79])]((_0x3b966f,_0x49f4fc)=>_0x2a9b4d[_0x49f4fc]===_0x3b966f||_0x2a9b4d[_0x49f4fc]===_0x11a22a([0x2a])));}function _0x677645(){return _0x4787ba&&_0x3720f9?new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc83147,_0x14a7b4)=>{_0x4787ba[_0x11a22a([0x74,0x68,0x65,0x6e])](_0xc83147,_0x14a7b4),_0x3720f9[_0x11a22a([0x74,0x68,0x65,0x6e])](_0x473096=>{_0x473096!=_0x11a22a([0x56,0x61,0x6c,0x69,0x64])&&_0xc83147(_0x473096);},_0x14a7b4);}):_0x4787ba||_0x3720f9||_0x11a22a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1623c5(_0x3c484e,_0x9cc0d8){return new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27653c=>{if(_0x4f5852())return _0x27653c(_0x11a22a([0x56,0x61,0x6c,0x69,0x64]));_0x2ab860(),_0x44f2d7[_0x11a22a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x11a22a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a0b3f=!0x1;const _0x4acbb1=_0x12ee37();function _0x5f1590(_0x3ef6e4){return!!_0x3ef6e4&&(typeof _0x3ef6e4===_0x11a22a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ef6e4===_0x11a22a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ef6e4[_0x11a22a([0x74,0x68,0x65,0x6e])]===_0x11a22a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ef6e4[_0x11a22a([0x63,0x61,0x74,0x63,0x68])]===_0x11a22a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ea74e(_0x2ba884){_0x282069(_0x2ba884)[_0x11a22a([0x74,0x68,0x65,0x6e])](_0x2d29a9=>{if(!_0x2d29a9||_0x2d29a9[_0x11a22a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x11a22a([0x6f,0x6b]))return _0x11a22a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2aed12(_0x175afd(_0x4acbb1+_0x9cc0d8))!=_0x2d29a9[_0x11a22a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x11a22a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x11a22a([0x56,0x61,0x6c,0x69,0x64]);})[_0x11a22a([0x74,0x68,0x65,0x6e])](_0xf74856=>(_0x504145(),_0xf74856),()=>{const _0x549934=_0x11ee21();return null==_0x549934?(_0x504145(),_0x11a22a([0x56,0x61,0x6c,0x69,0x64])):_0x11a22a(_0x30ad91-_0x549934>(0x25cf7af4^_0x449c62)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x11a22a([0x74,0x68,0x65,0x6e])](_0x27653c)[_0x11a22a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27653c(_0x11a22a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x332924=0x1f51074^_0x449c62;function _0x504145(){const _0x340818=_0x11a22a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2aed12(_0x175afd(_0x3c484e)),_0x1e3409=_0x150360(_0x2aed12(window[_0x11a22a([0x4d,0x61,0x74,0x68])][_0x11a22a([0x63,0x65,0x69,0x6c])](_0x30ad91/_0x332924)));window[_0x11a22a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11a22a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x340818,_0x1e3409);}function _0x11ee21(){const _0x2b2e72=_0x11a22a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2aed12(_0x175afd(_0x3c484e)),_0x1f6fed=window[_0x11a22a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11a22a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b2e72);return _0x1f6fed?window[_0x11a22a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x150360(_0x1f6fed),0x10)*_0x332924:null;}function _0x282069(_0x202c5b){return new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c12e5,_0x4449c6)=>{_0x202c5b[_0x11a22a([0x74,0x68,0x65,0x6e])](_0x4c12e5,_0x4449c6),window[_0x11a22a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4449c6,0x1c22a34^_0x449c62);});}}_0x44f2d7[_0x11a22a([0x6f,0x6e])](_0x11a22a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59de3c,_0x13121a)=>{if(_0x13121a[0x0]!=_0x3c484e)return _0x27653c(_0x11a22a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13121a[0x1]={..._0x13121a[0x1],[_0x11a22a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4acbb1};},{[_0x11a22a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11a22a([0x68,0x69,0x67,0x68])}),_0x44f2d7[_0x11a22a([0x6f,0x6e])](_0x11a22a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x319eb4=>{_0x5f1590(_0x319eb4[_0x11a22a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a0b3f=!0x0,_0x5ea74e(_0x319eb4[_0x11a22a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x11a22a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11a22a([0x6c,0x6f,0x77])}),_0x2b879d[_0x11a22a([0x74,0x68,0x65,0x6e])](()=>{_0x1a0b3f||_0x27653c(_0x11a22a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f5852(){return _0x44f2d7[_0x11a22a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11a22a([0x76,0x69,0x65,0x77])][_0x11a22a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x11a22a([0x61,0x75,0x74,0x6f]);}function _0x2ab860(){_0x44f2d7[_0x11a22a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11a22a([0x76,0x69,0x65,0x77])][_0x11a22a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11a22a([0x61,0x75,0x74,0x6f]);}}function _0x3cd6ea(_0x11acfe){const _0x1ab3be=[new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a690a=>setTimeout(_0x4a690a,0x1cac038^_0x449c62)),_0x2b879d[_0x11a22a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8d7fe1=>{let _0x3bddaf=0x0;_0x44f2d7[_0x11a22a([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a22a([0x6f,0x6e])](_0x11a22a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c9c03,_0x583e12)=>{_0x583e12[0x0][_0x11a22a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3bddaf++,_0x3bddaf==(0x1c3ff0c^_0x449c62)&&(_0x8d7fe1(),_0x2c9c03[_0x11a22a([0x6f,0x66,0x66])]());});}))];return window[_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11a22a([0x72,0x61,0x63,0x65])](_0x1ab3be)[_0x11a22a([0x74,0x68,0x65,0x6e])](()=>_0x11acfe);}async function _0x11b24b(){await _0x2b879d,_0x44f2d7[_0x11a22a([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a22a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7de8,_0x44f2d7[_0x11a22a([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a22a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7de8,_0x44f2d7[_0x11a22a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x11a22a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x404574(){return _0x35cd84(_0x11a22a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x121128(_0x11a22a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x11a22a([0x73,0x74,0x61,0x74,0x65])]==_0x11a22a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ee6a6(){return _0x35cd84(_0x11a22a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x2773b9(){return _0x35cd84(_0x11a22a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x496fdd(_0x2013d1){const _0x5f2c16=_0x162d0a();_0x44f2d7[_0x5f2c16]=_0x11a22a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2013d1,_0x2013d1!=_0x11a22a([0x56,0x61,0x6c,0x69,0x64])&&_0x11b24b();}function _0x162d0a(){const _0x3e1cff=window[_0x11a22a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x11a22a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x11a22a([0x6e,0x6f,0x77])]())[_0x11a22a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x11a22a([0x2e]),'');let _0x40293a=_0x11a22a([0x50]);for(let _0x13c707=0x0;_0x13c707<_0x3e1cff[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13c707+=0x2){let _0x369c22=window[_0x11a22a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e1cff[_0x11a22a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13c707,_0x13c707+0x2));_0x369c22>=_0x36e233[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x369c22-=_0x36e233[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x40293a+=_0x36e233[_0x369c22];}return _0x40293a;}function _0x157442(){const _0xdbcf9f=_0xec3d7c[_0x11a22a([0x73,0x70,0x6c,0x69,0x74])](_0x11a22a([0x2e]));if(0x3!=_0xdbcf9f[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5a660c(_0xdbcf9f[0x1]);function _0x5a660c(_0x1cff5b){const _0x1b4897=_0x383caa(_0x1cff5b);return _0x1b4897&&_0x418c19()?_0x1b4897:null;function _0x418c19(){const _0x43f46d=_0x1b4897[_0x11a22a([0x6a,0x74,0x69])],_0x4c8f3b=window[_0x11a22a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43f46d[_0x11a22a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43f46d[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c0ca0={..._0x1b4897,[_0x11a22a([0x6a,0x74,0x69])]:_0x43f46d[_0x11a22a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x43f46d[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c0ca0[_0x11a22a([0x76,0x63])],_0x175afd(_0x2c0ca0)==_0x4c8f3b;}}}async function _0x4666ad(){let _0x37b82d=!0x0;try{const _0x1814b0=_0xec3d7c[_0x11a22a([0x73,0x70,0x6c,0x69,0x74])](_0x11a22a([0x2e])),[_0x414bc3,_0x13598c,_0x4ba61e]=_0x1814b0;return _0x212aa7(_0x414bc3),await _0x419c2d(_0x414bc3,_0x13598c,_0x4ba61e),_0x37b82d;}catch{return!0x1;}function _0x212aa7(_0x2a9fcd){const _0x4f5491=_0x383caa(_0x2a9fcd);_0x4f5491&&_0x4f5491[_0x11a22a([0x61,0x6c,0x67])]==_0x11a22a([0x45,0x53,0x32,0x35,0x36])||(_0x37b82d=!0x1);}async function _0x419c2d(_0x1955de,_0x32b284,_0x3df6e0){const _0x687e5f=window[_0x11a22a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x11a22a([0x66,0x72,0x6f,0x6d])](_0x1117d5(_0x3df6e0),_0x390d1a=>_0x390d1a[_0x11a22a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x136be5=new window[(_0x11a22a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x11a22a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1955de+_0x11a22a([0x2e])+_0x32b284),_0x14830f=window[_0x11a22a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x11a22a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14830f)return;const _0xc85eb9=await _0x14830f[_0x11a22a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x11a22a([0x6a,0x77,0x6b]),_0x1c0b39,{[_0x11a22a([0x6e,0x61,0x6d,0x65])]:_0x11a22a([0x45,0x43,0x44,0x53,0x41]),[_0x11a22a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x11a22a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x11a22a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14830f[_0x11a22a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x11a22a([0x6e,0x61,0x6d,0x65])]:_0x11a22a([0x45,0x43,0x44,0x53,0x41]),[_0x11a22a([0x68,0x61,0x73,0x68])]:{[_0x11a22a([0x6e,0x61,0x6d,0x65])]:_0x11a22a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc85eb9,_0x687e5f,_0x136be5)||(_0x37b82d=!0x1);}}function _0x383caa(_0x5c9912){return _0x5c9912[_0x11a22a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x11a22a([0x65,0x79]))?JSON[_0x11a22a([0x70,0x61,0x72,0x73,0x65])](_0x1117d5(_0x5c9912)):null;}function _0x1117d5(_0x31c9ed){return window[_0x11a22a([0x61,0x74,0x6f,0x62])](_0x31c9ed[_0x11a22a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x11a22a([0x2b]))[_0x11a22a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x11a22a([0x2f])));}function _0x175afd(_0x5d16be){let _0x561fab=0x1505;function _0x2a9b15(_0x46513c){for(let _0x3ec0da=0x0;_0x3ec0da<_0x46513c[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ec0da++){const _0x1e3739=_0x46513c[_0x11a22a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ec0da);_0x561fab=(_0x561fab<<0x5)+_0x561fab+_0x1e3739,_0x561fab&=_0x561fab;}}function _0x28749f(_0x2b18cd){Array[_0x11a22a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b18cd)?_0x2b18cd[_0x11a22a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x28749f):_0x2b18cd&&typeof _0x2b18cd==_0x11a22a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x11a22a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b18cd)[_0x11a22a([0x73,0x6f,0x72,0x74])]()[_0x11a22a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x289b79,_0x2e9d59])=>{_0x2a9b15(_0x289b79),_0x28749f(_0x2e9d59);}):_0x2a9b15(window[_0x11a22a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b18cd));}return _0x28749f(_0x5d16be),_0x561fab>>>0x0;}function _0x2aed12(_0x51f768){return _0x51f768[_0x11a22a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x11a22a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x11a22a([0x30]));}function _0x150360(_0xa55d7){return _0xa55d7[_0x11a22a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x11a22a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x11a22a([0x6a,0x6f,0x69,0x6e])]('');}function _0x35cd84(_0x40c66d){return _0x44f2d7[_0x11a22a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x11a22a([0x68,0x61,0x73])](_0x40c66d);}function _0x121128(_0x4c83a0){return _0x44f2d7[_0x11a22a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x11a22a([0x67,0x65,0x74])](_0x4c83a0);}function _0x5d7de8(){}function _0x11a22a(_0x18d3f9){return _0x18d3f9['map'](_0x16b218=>String['fromCharCode'](_0x16b218))['join']('');}_0x496fdd(await _0x1fe8b0());}(this);}set['adapter'](_0x52e708){if(this['_adapter'])throw new _0x1cd3be('track-changes-adapter-already-set',this);this['_adapter']=_0x52e708;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5d36c7=!0x1,toJSON:_0x1e946a=!0x1}={}){const _0x1cdf3f=[];for(const _0x4ad7cb of this['_suggestions']['values']())_0x5d36c7&&!_0x4ad7cb['isInContent']||_0x1cdf3f['push'](_0x4ad7cb);return _0x1e946a?_0x1cdf3f['map'](_0x4c01a0=>_0x4c01a0['toJSON']()):_0x1cdf3f;}['getSuggestion'](_0x308cd1){const _0x14d5e2=this['_suggestions']['get'](_0x308cd1);if(!_0x14d5e2)throw new _0x1cd3be('track-changes-suggestion-not-found',this);return _0x14d5e2;}['hasSuggestion'](_0x134324){return this['_suggestions']['has'](_0x134324);}['addSuggestionData'](_0x2b6d6a){const {authorId:_0x11b0d8,id:_0x55422f,originalSuggestionId:_0x2e4b56,attributes:_0x53de87}=_0x2b6d6a,[_0x4056a9,_0x34c4fe]=_0x2b6d6a['type']['split'](':'),_0x26046e=this['_suggestions']['get'](_0x55422f)||this['_createSuggestion'](_0x4056a9,_0x34c4fe,_0x55422f,_0x11b0d8,_0x53de87,_0x2e4b56);if(this['_addThreadToSuggestion'](_0x26046e),this['_checkSuggestionCorrectness'](_0x26046e,_0x4056a9,_0x34c4fe||null,_0x11b0d8),_0x26046e['createdAt']=_0x2b6d6a['createdAt'],_0x26046e['_isDataLoaded']=!0x0,_0x53de87&&_0x53de87['@external']){const _0x17ba8a=_0x53de87['@external'],_0xf9f3e8=this['_getExternalAuthor'](_0x17ba8a['authorName']);_0x26046e['authoredAt']=_0x17ba8a['createdAt'],_0x26046e['author']=_0xf9f3e8,_0x26046e['isExternal']=!0x0;}else _0x26046e['authoredAt']=_0x2b6d6a['createdAt'];switch(_0x2b6d6a['data']&&(_0x26046e['data']=_0x2b6d6a['data']),_0x2b6d6a['attributes']&&(_0x26046e['attributes']=_0x2b6d6a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x26046e['_saved']=!0x0),this['_suggestionState']['get'](_0x26046e)){case'notReady':this['_suggestionState']['set'](_0x26046e,'dataReady');break;case'markerReady':_0x26046e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x26046e])),this['_refreshSuggestionsChain'](new Set([_0x26046e])),this['_suggestionState']['set'](_0x26046e,'ready'),this['fire']('suggestionLoaded',_0x26046e)):this['_suggestionState']['set'](_0x26046e,'removed');}return _0x26046e;}['acceptSuggestion'](_0xef87){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4e2cd8 of _0xef87['getAllAdjacentSuggestions']())_0x4e2cd8['accept']();});});}['discardSuggestion'](_0x1444ed){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3e08fd of _0x1444ed['getAllAdjacentSuggestions']())_0x3e08fd['discard']();});});}['enableCommand'](_0x9c1c27,_0x3be28a){const _0x2408fb=this['editor']['commands']['get'](_0x9c1c27);if(!_0x2408fb)throw new _0x1cd3be('track-changes-command-not-found',this,{'commandName':_0x9c1c27});if(this['_enabledCommands']['has'](_0x2408fb))throw new _0x1cd3be('track-changes-enable-command-twice',this,{'commandName':_0x9c1c27});this['_enabledCommands']['add'](_0x2408fb),_0x3be28a&&_0x2408fb['on']('execute',(_0x1663cd,_0x3b3812)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3b3812['length']>0x0&&_0x3b3812[_0x3b3812['length']-0x1]&&_0x3b3812[_0x3b3812['length']-0x1]['forceDefaultExecution']?_0x3b3812['pop']():(_0x1663cd['return']=_0x3be28a((..._0x45b8f2)=>_0x2408fb['execute'](..._0x45b8f2,{'forceDefaultExecution':!0x0}),..._0x3b3812),_0x1663cd['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5906ac){let _0x38ceb9,_0x38a490;const _0x23701c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x38ceb9=_0x5906ac();}catch(_0x483942){_0x38a490=_0x483942;}return _0x23701c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x38a490&&_0x1cd3be['rethrowUnexpectedError'](_0x38a490,this),_0x38ceb9;}['markInsertion'](_0x468114,_0x4d9a05=null,_0x331ee2={}){if(_0x468114['isCollapsed'])return null;const _0x510baa=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x331ee2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x13b961,meta:_0x55a644}of this['_findSuggestions'](_0x468114,'insertion'))if(_0x55a644['isOwn']){if(!_0x55a644['isNextTo']){if(_0x55a644['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x13b961,_0x331ee2))continue;return _0x13b961;}if(Xt(_0x13b961,_0x331ee2))return _0x13b961;this['_breakSuggestionMarker'](_0x13b961,_0x468114['start'],_0x468114['end']);break;}if(_0x4d9a05==_0x13b961['subType']&&Xt(_0x13b961,_0x331ee2)){const _0x4f388a=_0x13b961['getFirstRange']();return _0x4f388a['start']['isEqual'](_0x468114['end'])?this['_setSuggestionRange'](_0x13b961,this['_model']['createRange'](_0x468114['start'],_0x4f388a['end'])):this['_setSuggestionRange'](_0x13b961,this['_model']['createRange'](_0x4f388a['start'],_0x468114['end'])),_0x13b961;}}const _0x571035=_0x12ee37(),_0x3b22a3=_0x510baa['id'],_0x2202a5=_0x4d9a05?'insertion:'+_0x4d9a05:'insertion',_0x1dd3b2=this['_setSuggestionData']({'id':_0x571035,'type':_0x2202a5,'createdAt':new Date(),'authorId':_0x3b22a3,'attributes':_0x331ee2});return this['_addSuggestionMarker'](_0x2202a5,_0x571035,_0x3b22a3,_0x468114),_0x1dd3b2;}['markMultiRangeInsertion'](_0x4c3d3f,_0x4329ed='multi',_0x5d4aaf={}){const _0x32f0f7=this['editor']['plugins']['get']('Users')['me'],_0x4bc578=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4329ed,'join');this['_trackingSessionId']&&(_0x5d4aaf['trackingSessionId']=this['_trackingSessionId']);for(const _0x4088af of this['getSuggestions']())if(_0x4088af['author']['id']==_0x32f0f7['id']&&'insertion'==_0x4088af['type']&&_0x4088af['subType']==_0x4329ed&&Xt(_0x4088af,_0x5d4aaf)&&(_0x4bc578(_0x4088af['getRanges'](),_0x4c3d3f)||_0x4bc578(_0x4c3d3f,_0x4088af['getRanges']()))){for(const _0x3b2922 of _0x4c3d3f)_0x4088af['addRange'](_0x3b2922);return _0x4088af;}for(const {suggestion:_0x358697,meta:_0xeb2716}of this['_findSuggestions'](_0x4c3d3f,'insertion')){if(!_0xeb2716['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xeb2716['containsRangeInObject'])continue;if(!Xt(_0x358697,_0x5d4aaf))continue;let _0x556396=!0x0;for(const _0x289b52 of _0x358697['getRanges']())for(const _0x4edb97 of _0x4c3d3f)if(!_0x289b52['containsRange'](_0x4edb97)){_0x556396=!0x1;break;}if(_0x556396)return _0x358697;}const _0x3bb5fb=_0x12ee37(),_0x4ddb34=_0x32f0f7['id'],_0x4405f8='insertion:'+_0x4329ed,_0xb6f3f1=this['_setSuggestionData']({'id':_0x3bb5fb,'type':_0x4405f8,'createdAt':new Date(),'authorId':_0x4ddb34,'attributes':_0x5d4aaf});for(const _0x171689 of _0x4c3d3f)this['_addSuggestionMarker'](_0x4405f8,_0x3bb5fb,_0x4ddb34,_0x171689,o['getMultiRangeId']());return _0xb6f3f1;}['markInlineFormat'](_0x1fd526,_0x1ecbd1,_0x26b86f=null,_0x145067={}){if(_0x26b86f=_0x26b86f||Kt(_0x1ecbd1),_0x1fd526['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x145067['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x509013=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x26b86f,'accept');return this['forceDefaultExecution'](()=>_0x509013([_0x1fd526],_0x1ecbd1,_0x145067)),null;}const _0x161ede=this['editor']['plugins']['get']('Users')['me'],_0x2f7474=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1f906a,meta:_0x394551}of this['_findSuggestions'](_0x1fd526,'insertion'))_0x394551['isOwn']&&!_0x394551['isInsideObject']&&_0x2f7474['push'](..._0x1f906a['getRanges']());}const _0x310dde=function(_0x910a72,_0x4bf251){const _0x455f4f=[];for(const _0xe62fa2 of _0x4bf251){const _0x4f143a=_0x910a72['getIntersection'](_0xe62fa2);_0x4f143a&&_0x455f4f['push'](_0x4f143a);}return _0x455f4f;}(_0x1fd526,_0x2f7474),_0x169f7f=function(_0x2f3df1,_0x4456ae){const _0x14809f=[_0x2f3df1];for(const _0x2b798c of _0x4456ae){let _0x410017=0x0;for(;_0x410017<_0x14809f['length'];){const _0x7138aa=_0x14809f[_0x410017]['getDifference'](_0x2b798c);_0x14809f['splice'](_0x410017,0x1,..._0x7138aa),_0x410017+=_0x7138aa['length'];}}return _0x14809f;}(_0x1fd526,_0x2f7474);_0x310dde['length']&&this['_model']['change'](()=>{for(const _0x2eb75a of _0x310dde){const _0x2af6af=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x26b86f,'accept');this['forceDefaultExecution'](()=>_0x2af6af([_0x2eb75a],_0x1ecbd1,_0x145067));}});for(const _0x404792 of _0x169f7f){let _0x37dcd6=null,_0x6da89=_0x404792['start'],_0x2160d1=_0x404792['end'];for(const {suggestion:_0xef52fb,meta:_0x49401b}of this['_findSuggestions'](_0x404792,'formatInline')){if(!_0x49401b['isOwn'])continue;if(_0xef52fb['subType']!=_0x26b86f)continue;if(!Xt(_0xef52fb,_0x145067))continue;const _0x3a1077=_0xef52fb['getFirstRange']();if(_0x3a1077['containsRange'](_0x404792,!0x0))return null;_0x6da89=_0x6da89['isBefore'](_0x3a1077['start'])?_0x6da89:_0x3a1077['start'],_0x2160d1=_0x2160d1['isAfter'](_0x3a1077['end'])?_0x2160d1:_0x3a1077['end'],_0x37dcd6?_0x3a1077['start']['isBefore'](_0x37dcd6['getFirstRange']()['start'])?(_0x37dcd6['removeMarkers'](),_0x37dcd6=_0xef52fb):_0xef52fb['removeMarkers']():_0x37dcd6=_0xef52fb;}const _0x28ddf1=this['_model']['createRange'](_0x6da89,_0x2160d1);if(_0x37dcd6)this['_setSuggestionRange'](_0x37dcd6,_0x28ddf1);else{const _0x462fbc=_0x12ee37(),_0x309388=_0x161ede['id'];this['_setSuggestionData']({'id':_0x462fbc,'type':'formatInline:'+_0x26b86f,'data':_0x1ecbd1,'createdAt':new Date(),'authorId':_0x309388,'attributes':_0x145067}),this['_addSuggestionMarker']('formatInline:'+_0x26b86f,_0x462fbc,_0x309388,_0x28ddf1);}}return null;}['markBlockFormat'](_0x46f199,_0x72ba94,_0x47289f=[],_0x5914f5=null,_0x17c7cd={}){_0x72ba94['formatGroupId']||(_0x72ba94['formatGroupId']=_0x72ba94['commandName']),_0x72ba94['multipleBlocks']=_0x46f199['is']('range'),_0x5914f5=_0x5914f5||Kt(_0x72ba94);const _0xd57e72=_0x47289f['map'](_0x2198ef=>zt(_0x2198ef,this['_model'])),_0x4b633d=_0x46f199['is']('range')?_0x46f199:zt(_0x46f199,this['_model']);if(this['_trackingSessionId']&&(_0x17c7cd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4783da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5914f5,'accept');return this['forceDefaultExecution'](()=>_0x4783da([_0x4b633d],_0x72ba94,_0x17c7cd)),null;}_0xd57e72['push'](_0x4b633d);let _0x54490c=!0x0;for(const _0x58fdd8 of _0xd57e72)if(!this['_rangeIsInLocalUserInsertion'](_0x58fdd8)){_0x54490c=!0x1;break;}if(_0x54490c&&'always'!==this['_trackFormatChanges']){const _0x1665c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5914f5,'accept');return this['forceDefaultExecution'](()=>_0x1665c9([_0x4b633d],_0x72ba94,_0x17c7cd)),null;}let _0x2dab34=null,_0x54926f=_0x4b633d['start'],_0x2ec52a=_0x4b633d['end'];for(const {suggestion:_0x4a4083,meta:_0x40c752}of this['_findSuggestions'](_0x4b633d,'formatBlock')){if(!_0x40c752['isOwn'])continue;if(_0x40c752['isNextTo']||_0x40c752['containsRangeInObject']||_0x40c752['isInsideObject'])continue;if(_0x4a4083['data']['formatGroupId']!=_0x72ba94['formatGroupId'])continue;if(!Xt(_0x4a4083,_0x17c7cd))continue;const _0x4ecd6f=_0x4a4083['getFirstRange']();if(_0x4a4083['subType']==_0x5914f5){if(_0x4ecd6f['containsRange'](_0x4b633d,!0x0))return null;_0x54926f=_0x54926f['isBefore'](_0x4ecd6f['start'])?_0x54926f:_0x4ecd6f['start'],_0x2ec52a=_0x2ec52a['isAfter'](_0x4ecd6f['end'])?_0x2ec52a:_0x4ecd6f['end'],_0x2dab34?_0x4ecd6f['start']['isBefore'](_0x2dab34['getFirstRange']()['start'])?(_0x2dab34['removeMarkers'](),_0x2dab34=_0x4a4083):_0x4a4083['removeMarkers']():_0x2dab34=_0x4a4083;}else{const _0x574d3a=_0x4b633d['getIntersection'](_0x4ecd6f);this['_cutOutSuggestionMarker'](_0x4a4083,_0x574d3a);}}const _0xdda85d=this['editor']['plugins']['get']('Users')['me'],_0x589399=_0x12ee37(),_0x368066=_0xdda85d['id'];if(_0x2dab34)return this['_setSuggestionRange'](_0x2dab34,this['_model']['createRange'](_0x54926f,_0x2ec52a)),_0x2dab34;{const _0x29ad3a=this['_setSuggestionData']({'id':_0x589399,'type':'formatBlock:'+_0x5914f5,'data':_0x72ba94,'createdAt':new Date(),'authorId':_0x368066,'attributes':_0x17c7cd});return this['_addSuggestionMarker']('formatBlock:'+_0x5914f5,_0x589399,_0x368066,this['_model']['createRange'](_0x54926f,_0x2ec52a)),_0x29ad3a;}}['markMultiRangeBlockFormat'](_0x482a05,_0x439127,_0x3f9e16=[],_0xae857=null,_0x4ba5ab={}){_0x439127['formatGroupId']||(_0x439127['formatGroupId']=_0x439127['commandName']);const _0x172221=_0x482a05[0x0];_0x439127['multipleBlocks']=_0x172221['is']('range'),_0xae857=_0xae857||Kt(_0x439127);const _0x3e5927=_0x3f9e16['map'](_0x23aa11=>zt(_0x23aa11,this['_model'])),_0xaa19d=_0x172221['is']('range')?_0x482a05:_0x482a05['map'](_0x53c3f5=>zt(_0x53c3f5,this['_model']));if(this['_trackingSessionId']&&(_0x4ba5ab['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4d9067=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xae857,'accept');return this['forceDefaultExecution'](()=>_0x4d9067(_0xaa19d,_0x439127,_0x4ba5ab)),null;}_0x3e5927['push'](..._0xaa19d);let _0x4e13d5=!0x0;for(const _0x374d17 of _0x3e5927)if(!this['_rangeIsInLocalUserInsertion'](_0x374d17)){_0x4e13d5=!0x1;break;}if(_0x4e13d5&&'always'!==this['_trackFormatChanges']){const _0x103476=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xae857,'accept');return this['forceDefaultExecution'](()=>_0x103476(_0xaa19d,_0x439127,_0x4ba5ab)),null;}const _0x5d3422=this['editor']['plugins']['get']('Users')['me'];for(const _0x24ed1f of this['getSuggestions']()){if(_0x24ed1f['author']['id']!=_0x5d3422['id'])continue;if('formatBlock'!=_0x24ed1f['type']||_0x24ed1f['data']['formatGroupId']!=_0x439127['formatGroupId'])continue;if(!Xt(_0x24ed1f,_0x4ba5ab))continue;const _0x10df83=_0x24ed1f['subType']==_0xae857;for(let _0x1ee7a4=0x0;_0x1ee7a4<_0xaa19d['length'];_0x1ee7a4++){const _0x464aad=_0xaa19d[_0x1ee7a4];for(const _0x469046 of _0x24ed1f['getMarkers']()){const _0x528d32=_0x469046['getRange']();if(_0x464aad['isEqual'](_0x528d32)){_0x10df83?(_0xaa19d['splice'](_0x1ee7a4,0x1),_0x1ee7a4--):_0x24ed1f['removeMarker'](_0x469046['name']);break;}}}}if(0x0==_0xaa19d['length'])return null;const _0x8b24ec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xae857,'join');for(const _0x380dbf of this['getSuggestions']())if(_0x380dbf['author']['id']==_0x5d3422['id']&&'formatBlock'==_0x380dbf['type']&&_0x380dbf['data']['formatGroupId']==_0x439127['formatGroupId']&&_0x380dbf['subType']==_0xae857&&Xt(_0x380dbf,_0x4ba5ab)&&(_0x8b24ec(_0x380dbf['getRanges'](),_0xaa19d)||_0x8b24ec(_0xaa19d,_0x380dbf['getRanges']()))){for(const _0x37c1b4 of _0xaa19d)_0x380dbf['addRange'](_0x37c1b4);return _0x380dbf;}const _0xbc86e0=_0x12ee37(),_0x33945a=_0x5d3422['id'],_0x3f2c78='formatBlock:'+_0xae857,_0x40218c=this['_setSuggestionData']({'id':_0xbc86e0,'type':_0x3f2c78,'data':_0x439127,'createdAt':new Date(),'authorId':_0x33945a,'attributes':_0x4ba5ab});for(const _0x5d12ec of _0xaa19d)this['_addSuggestionMarker'](_0x3f2c78,_0xbc86e0,_0x33945a,_0x5d12ec,o['getMultiRangeId']());return _0x40218c;}['markDeletion'](_0x3427b5,_0x2173ac=null,_0x1a8dc1={}){if(_0x3427b5['isCollapsed'])return null;const _0x2be238=this['editor']['plugins']['get']('Users')['me'],_0x275c89=new _0x53edc8(_0x3427b5['start'],_0x3427b5['end']);this['_trackingSessionId']&&(_0x1a8dc1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xf35b95,meta:_0x183e37}of this['_findSuggestions'](_0x275c89,'insertion'))if(_0x183e37['isOwn']&&!_0x183e37['isNextTo']){if(_0xf35b95['isMultiRange']){const _0xc60d89=_0xf35b95['getRanges']()['filter'](_0x2c9fb3=>'$graveyard'!=_0x2c9fb3['root']['rootName']);_0xc60d89['every'](_0x1a171c=>_0x275c89['containsRange'](_0x1a171c,!0x0))&&_0xf35b95['discard']();if(_0xc60d89['some'](_0x1cddc3=>_0x1cddc3['containsRange'](_0x275c89,!0x0))){const _0x539307=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2173ac,'accept');return this['forceDefaultExecution'](()=>_0x539307([_0x275c89],null,_0x1a8dc1)),null;}}else{const _0x272436=_0x275c89['getIntersection'](_0xf35b95['getFirstRange']());null!==_0x272436&&_0xf35b95['_onDiscard']([_0x272436],null,_0x1a8dc1);}}if(_0x275c89['detach'](),_0x275c89['isCollapsed']||'$graveyard'==_0x275c89['root']['rootName'])return null;let _0x555618=null,_0x5580d7=_0x275c89['start'],_0xddcc18=_0x275c89['end'];const _0x449a9a=this['_findSuggestions'](_0x275c89,'deletion');for(const {suggestion:_0x5028f6,meta:_0x325d8b}of _0x449a9a){const _0x278c50=this['_model']['createRange'](_0x5580d7,_0xddcc18);if(_0x325d8b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x325d8b['containsRangeInObject']&&!_0x325d8b['isInsideObject'])){if(_0x5028f6['isMultiRange']){if(!Xt(_0x5028f6,_0x1a8dc1))continue;let _0x4a9bc3=!0x0;for(const _0x46fe75 of _0x5028f6['getRanges']()){if(_0x46fe75['containsRange'](_0x278c50,!0x0))return _0x5028f6;_0x278c50['containsRange'](_0x46fe75)||(_0x4a9bc3=!0x1);}_0x4a9bc3&&_0x5028f6['discard']();}else{const _0x400be4=_0x5028f6['getFirstRange']();if(_0x400be4['containsRange'](_0x278c50,!0x0))return _0x5028f6;if(!Xt(_0x5028f6,_0x1a8dc1)){_0x278c50['containsRange'](_0x400be4)?_0x5028f6['removeMarkers']():_0x400be4['containsPosition'](_0x5580d7)?_0x5580d7=_0x400be4['end']:_0x400be4['containsPosition'](_0xddcc18)&&(_0xddcc18=_0x400be4['start']);continue;}_0x5580d7=_0x5580d7['isBefore'](_0x400be4['start'])?_0x5580d7:_0x400be4['start'],_0xddcc18=_0xddcc18['isAfter'](_0x400be4['end'])?_0xddcc18:_0x400be4['end'],_0x1a8dc1=Object['assign']({},_0x5028f6['attributes']),_0x555618?_0x400be4['start']['isBefore'](_0x555618['getFirstRange']()['start'])?(_0x555618['removeMarkers'](),_0x555618=_0x5028f6):_0x5028f6['removeMarkers']():_0x555618=_0x5028f6;}}}if(_0x555618)return this['_setSuggestionRange'](_0x555618,this['_model']['createRange'](_0x5580d7,_0xddcc18)),_0x555618;{const _0x3f84c0=_0x12ee37(),_0x48f805=this['_model']['createRange'](_0x5580d7,_0xddcc18),_0x12d562=_0x2be238['id'],_0x2c7621=_0x2173ac?'deletion:'+_0x2173ac:'deletion',_0x27382b=this['_setSuggestionData']({'id':_0x3f84c0,'type':_0x2c7621,'createdAt':new Date(),'authorId':_0x12d562,'attributes':_0x1a8dc1});return this['_addSuggestionMarker'](_0x2c7621,_0x3f84c0,_0x12d562,_0x48f805),_0x27382b;}}['markMultiRangeDeletion'](_0x414a1d,_0x35d815='multi',_0x2e459f={}){const _0x4e52a9=this['editor']['plugins']['get']('Users')['me'],_0x9bc59f=_0x414a1d['map'](_0x2dd0af=>new _0x53edc8(_0x2dd0af['start'],_0x2dd0af['end'])),_0x2b3f69=new Set();this['_trackingSessionId']&&(_0x2e459f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x31a80b,meta:_0xe4d079}of this['_findSuggestions'](_0x9bc59f,'insertion'))_0xe4d079['isOwn']&&!_0xe4d079['isNextTo']&&_0x2b3f69['add'](_0x31a80b);for(const _0x446fd9 of _0x2b3f69)if(_0x446fd9['isMultiRange']){const _0x137e7a=_0x446fd9['getRanges']();(!_0x446fd9['attributes']||!_0x446fd9['attributes']['skipNestingCheck'])&&(_0x137e7a['every'](_0x5036a6=>_0x9bc59f['some'](_0x52e343=>_0x52e343['containsRange'](_0x5036a6,!0x0)))&&_0x446fd9['discard']());if(_0x9bc59f['every'](_0x36d3dc=>_0x137e7a['some'](_0xbb0861=>_0xbb0861['containsRange'](_0x36d3dc,!0x0)))){const _0x10966b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x35d815,'accept');return this['forceDefaultExecution'](()=>_0x10966b(_0x414a1d,null,_0x2e459f)),null;}}else{const _0x335301=_0x446fd9['getFirstRange']();_0x9bc59f['some'](_0x496d98=>_0x496d98['containsRange'](_0x335301,!0x0))&&_0x446fd9['discard']();if(_0x9bc59f['every'](_0x30be8a=>_0x335301['containsRange'](_0x30be8a,!0x0))){const _0x4e1f75=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x35d815,'accept');return this['forceDefaultExecution'](()=>_0x4e1f75(_0x9bc59f,null,_0x2e459f)),null;}}const _0x3db2a5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x35d815,'join');let _0x4910c1=null;for(const _0x4640ef of this['getSuggestions']())if(_0x4640ef['author']['id']==_0x4e52a9['id']&&_0x4640ef['isInContent']&&'deletion'==_0x4640ef['type']&&_0x4640ef['subType']==_0x35d815&&Xt(_0x4640ef,_0x2e459f)&&(_0x3db2a5(_0x4640ef['getRanges'](),_0x9bc59f)||_0x3db2a5(_0x9bc59f,_0x4640ef['getRanges']()))){if(_0x4910c1){if(_0x4640ef['commentThread']&&_0x4640ef['commentThread']['length'])continue;for(const _0x2ed430 of _0x4640ef['getRanges']())_0x4910c1['isIntersectingWithRange'](_0x2ed430)||_0x4910c1['addRange'](_0x2ed430);_0x4640ef['removeMarkers']();}else{_0x4910c1=_0x4640ef;for(const _0x45f73c of _0x9bc59f)_0x4640ef['isIntersectingWithRange'](_0x45f73c)||_0x4640ef['addRange'](_0x45f73c);}}if(_0x4910c1)return _0x4910c1;_0x2b3f69['clear']();for(const {suggestion:_0x39a5fc,meta:_0x46b84f}of this['_findSuggestions'](_0x9bc59f,'deletion'))_0x46b84f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x46b84f['containsRangeInObject']&&!_0x46b84f['isInsideObject'])&&Xt(_0x39a5fc,_0x2e459f)&&_0x2b3f69['add'](_0x39a5fc);for(const _0x46fb2c of _0x2b3f69){const _0x3838d4=_0x46fb2c['getRanges']();if(!_0x2e459f||!_0x2e459f['skipNestingCheck']){if(_0x9bc59f['every'](_0x3c0c6d=>_0x3838d4['some'](_0x5098b4=>_0x5098b4['containsRange'](_0x3c0c6d,!0x0))))return _0x46fb2c;}(!_0x46fb2c['attributes']||!_0x46fb2c['attributes']['skipNestingCheck'])&&(_0x3838d4['every'](_0x1b912e=>_0x9bc59f['some'](_0x2a64ba=>_0x2a64ba['containsRange'](_0x1b912e,!0x0)))&&_0x46fb2c['discard']());}const _0x17b716=_0x12ee37(),_0x351277=_0x4e52a9['id'],_0x223d6f='deletion:'+_0x35d815,_0x5acb99=this['_setSuggestionData']({'id':_0x17b716,'type':_0x223d6f,'createdAt':new Date(),'authorId':_0x351277,'attributes':_0x2e459f});for(const _0x1dc6c7 of _0x9bc59f)_0x1dc6c7['detach'](),_0x1dc6c7['isCollapsed']||'$graveyard'==_0x1dc6c7['root']['rootName']||this['_addSuggestionMarker'](_0x223d6f,_0x17b716,_0x351277,_0x1dc6c7,o['getMultiRangeId']());return _0x5acb99;}['markAttributeChange'](_0x43660d,_0x7de9f5,_0xe9d9b9,_0x2a4972,_0x4cf341){if(_0x43660d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2ee507=this['editor']['plugins']['get']('Users')['me']['id'],_0xf85d82=Array['from'](this['_suggestions']['values']())['filter'](_0x5144c3=>'attribute'==_0x5144c3['type']&&_0x5144c3['data']['key']==_0x7de9f5&&_0x5144c3['isIntersectingWithRange'](_0x43660d));if(this['_trackingSessionId']&&(_0x4cf341['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x29e3e2=this['_findSuggestions'](_0x43660d,'insertion')['filter'](({meta:_0x56de44})=>_0x56de44['isOwn']&&!_0x56de44['isInsideObject']&&!_0x56de44['isNextTo'])['map'](({suggestion:_0x598552})=>_0x598552);_0xf85d82['unshift'](..._0x29e3e2);}const _0x59cf54=new Map([[_0x43660d,_0xe9d9b9]]);for(const _0x341684 of _0xf85d82){const _0x103c25='attribute'==_0x341684['type']?_0x341684['data']['oldValue']:void 0x0,_0x419fbf=_0x341684['getFirstRange'](),_0x1358f7=Array['from'](_0x59cf54['keys']())['find'](_0x1ea9d7=>_0x1ea9d7['isIntersecting'](_0x419fbf));if(!_0x1358f7)continue;const _0x5bac54=_0x1358f7['getDifference'](_0x419fbf);this['_isBlockAttribute'](_0x7de9f5)&&'insertion'==_0x341684['type']&&0x0!=_0x5bac54['length']||(_0x59cf54['delete'](_0x1358f7),_0x5bac54['forEach'](_0x2c5256=>{_0x59cf54['set'](_0x2c5256,_0xe9d9b9);}),'insertion'!=_0x341684['type']&&_0x103c25!=_0x2a4972&&_0x59cf54['set'](_0x1358f7['getIntersection'](_0x419fbf),_0x103c25));}const _0x1364e9=[];for(const [_0x25f1cd,_0x361e83]of _0x59cf54){const _0x12a9b0=_0x12ee37(),_0x1301a4={'key':_0x7de9f5,'oldValue':_0x361e83,'newValue':_0x2a4972};_0x7de9f5['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':_0x7de9f5});const _0x52c837=('attribute:'+(_0x7de9f5+'|'+Kt({'newValue':_0x2a4972})))['substring'](0x0,0x3c),_0x564b98=this['_setSuggestionData']({'id':_0x12a9b0,'type':_0x52c837,'data':_0x1301a4,'createdAt':new Date(),'authorId':_0x2ee507,'attributes':_0x4cf341});_0x1364e9['push'](_0x564b98),this['_addSuggestionMarker'](_0x52c837,_0x12a9b0,_0x2ee507,_0x25f1cd);}return _0x1364e9;}['enableDefaultAttributesIntegration'](_0x12de72){this['enableCommand'](_0x12de72,(_0x40d19d,..._0x3de4b9)=>{this['_recordAttributeChanges'](()=>{_0x40d19d(..._0x3de4b9);});});}['registerBlockAttribute'](_0x1cdc8f){this['_blockAttributeKeys']['add'](_0x1cdc8f);}['registerInlineAttribute'](_0x5dd14c){this['_inlineAttributeKeys']['add'](_0x5dd14c);}['startTrackingSession'](_0x8bda55){return this['_trackingSessionId']=void 0x0!==_0x8bda55?_0x8bda55:_0x12ee37(),this['_trackingSessionId'];}['_getAttributeKey'](_0x33d4d4){return'attribute'==_0x33d4d4['type']?_0x33d4d4['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1b325a,_0x538b10){const _0xdcf66e=_0x1b325a['getFirstMarker']();this['_model']['change'](_0x353376=>{_0x353376['updateMarker'](_0xdcf66e,{'range':_0x538b10});});}['_addThreadToSuggestion'](_0x1930d0){const _0x50571b=_0x1930d0['id'],_0x241b10=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x50571b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x241b10,'threadId':_0x50571b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x27152b=this['_commentsRepository']['getCommentThread'](_0x50571b);_0x27152b['unbind']('isRemovable'),_0x27152b['isRemovable']=!0x1,_0x1930d0['commentThread']=_0x27152b;}['_checkSuggestionCorrectness'](_0x118adf,_0x24cc8a,_0x5560fc,_0xe2dc25){if(_0x118adf['type']!=_0x24cc8a||_0x118adf['subType']!=_0x5560fc||_0x118adf['creator']['id']!=_0xe2dc25)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1cd3be('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3fbea4,_0xb06b5c){const _0x921606=_0x3fbea4['getFirstRange']();if(_0xb06b5c['isEqual'](_0x921606))_0x3fbea4['removeMarkers']();else{if(_0x921606['containsRange'](_0xb06b5c)){const _0x40405f=this['_model']['createPositionAt'](_0xb06b5c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3fbea4,this['_model']['createRange'](_0x921606['start'],_0x40405f));const _0x41cb22=_0x12ee37(),_0xe95df=_0x3fbea4['creator']['id'],_0xdff05c=_0x3fbea4['type']+':'+_0x3fbea4['subType'];this['_setSuggestionData']({'id':_0x41cb22,'type':_0xdff05c,'createdAt':new Date(),'authorId':_0xe95df,'data':_0x3fbea4['data'],'attributes':_0x3fbea4['attributes']});const _0x4b5758=this['_model']['createPositionAt'](_0xb06b5c['end']['parent'],'after'),_0xc797cc=this['_model']['createRange'](_0x4b5758,_0x921606['end']);this['_addSuggestionMarker'](_0xdff05c,_0x41cb22,_0xe95df,_0xc797cc);}else{if(_0x921606['containsPosition'](_0xb06b5c['start'])){const _0x5b0e20=this['_model']['createPositionAt'](_0xb06b5c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3fbea4,this['_model']['createRange'](_0x921606['start'],_0x5b0e20));}else{const _0x2d9f24=this['_model']['createPositionAt'](_0xb06b5c['end']['parent'],'after');this['_setSuggestionRange'](_0x3fbea4,this['_model']['createRange'](_0x2d9f24,_0x921606['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5d6c48){for(const {suggestion:_0x41bf50,meta:_0x43f7d1}of this['_findSuggestions'](_0x5d6c48,'insertion')){if(!_0x43f7d1['isOwn'])continue;const _0x88f54e=_0x41bf50['getRanges']();for(const _0x1c271e of _0x88f54e)if(!_0x5d6c48['getDifference'](_0x1c271e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x380cc8){const _0x5dfe72=this['editor']['plugins']['get']('Users')['getUser'](_0x380cc8);if(!_0x5dfe72)throw new _0x1cd3be('track-changes-user-not-found',this);return _0x5dfe72;}['_getExternalAuthor'](_0x5a7dd8){const _0x3b282b=this['editor']['plugins']['get']('Users'),_0x2e830c=_0x2bf3c4('external:'+_0x5a7dd8),_0x8a3a17=_0x3b282b['getUser'](_0x2e830c);return _0x8a3a17||_0x3b282b['addUser']({'id':_0x2e830c,'name':_0x5a7dd8});}['_createSuggestion'](_0x366d05,_0x3c01ac,_0x307c9e,_0x10852a,_0x5dd3a6,_0x54ba7c){const _0x92fec2=this['_getAuthorFromId'](_0x10852a),_0x3aa61b=this['_suggestionFactory']['buildSuggestion'](_0x366d05,_0x3c01ac,_0x307c9e,_0x92fec2,_0x5dd3a6,_0x5e75dd=>{this['_updateSuggestionData'](_0x307c9e,{'attributes':_0x5e75dd});const _0xddc9ca=this['getSuggestion'](_0x307c9e);this['_joinWithAdjacentSuggestions'](new Set([_0xddc9ca])),this['_refreshSuggestionsChain'](new Set([_0xddc9ca]));},_0x54ba7c);return this['listenTo'](_0x3aa61b,'accept',()=>{this['_updateSuggestionData'](_0x307c9e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3aa61b,'discard',()=>{this['_updateSuggestionData'](_0x307c9e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x307c9e,_0x3aa61b),this['_suggestionState']['set'](_0x3aa61b,'notReady'),_0x3aa61b;}['_splitMarkerName'](_0x37fd48){const _0x217815=_0x37fd48['split'](':');return{'group':_0x217815[0x0],'type':_0x217815[0x1],'subType':_0x217815['length']>=0x5?_0x217815[0x2]:null,'id':_0x217815['length']<0x5?_0x217815[0x2]:_0x217815[0x3],'authorId':_0x217815['length']<0x5?_0x217815[0x3]:_0x217815[0x4],'markerCount':0x6==_0x217815['length']?_0x217815[0x5]:null};}['_breakSuggestionMarker'](_0x69602b,_0x3209e4,_0x337e8b){const _0x548eb3=_0x69602b['getFirstRange'](),_0x527aa3=_0x548eb3['start'],_0x414ec6=_0x548eb3['end'];this['_setSuggestionRange'](_0x69602b,this['_model']['createRange'](_0x527aa3,_0x3209e4));const _0x2d000d=_0x12ee37(),_0x49c218=_0x69602b['creator']['id'],_0x3a7875=_0x69602b['type']+(_0x69602b['subType']?':'+_0x69602b['subType']:'');this['_setSuggestionData']({'id':_0x2d000d,'type':_0x3a7875,'createdAt':new Date(),'authorId':_0x49c218,'originalSuggestionId':_0x69602b['_originalSuggestionId']||_0x69602b['id'],'attributes':_0x69602b['attributes'],'data':_0x69602b['data']});const _0x2217b4=this['_getAttributeKey'](_0x69602b);('formatBlock'==_0x69602b['type']||_0x2217b4&&this['_isBlockAttribute'](_0x2217b4))&&(_0x337e8b=this['_model']['createPositionBefore'](_0x337e8b['parent'])),this['_addSuggestionMarker'](_0x3a7875,_0x2d000d,_0x49c218,this['_model']['createRange'](_0x337e8b,_0x414ec6));}['_findSuggestions'](_0x4e267e,_0x2fefd7=null){const _0x30da1f=[],_0x3c7f12=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4e267e)||(_0x4e267e=[_0x4e267e]);for(const _0x5a4464 of this['getSuggestions']()){if(!_0x5a4464['isInContent'])continue;if(_0x2fefd7&&_0x5a4464['type']!=_0x2fefd7)continue;let _0x3b110f=!0x1;for(const _0x2401ff of _0x5a4464['getRanges']()){for(const _0x23379a of _0x4e267e){const _0x303c02=_0x23379a['start']['isEqual'](_0x2401ff['end'])||_0x23379a['end']['isEqual'](_0x2401ff['start']);if(_0x303c02||_0x23379a['getIntersection'](_0x2401ff)){const _0x505b34=_0x23379a['containsRange'](_0x2401ff)&&Gt(this['_model']['schema'],_0x2401ff['start'],_0x23379a),_0x570344=_0x2401ff['containsRange'](_0x23379a)&&Gt(this['_model']['schema'],_0x23379a['start'],_0x2401ff);_0x30da1f['push']({'suggestion':_0x5a4464,'meta':{'isOwn':_0x3c7f12==_0x5a4464['author'],'isNextTo':_0x303c02,'isInsideObject':_0x505b34,'containsRangeInObject':_0x570344}}),_0x3b110f=!0x0;break;}}if(_0x3b110f)break;}}return _0x30da1f;}['_addSuggestionMarker'](_0x8b0f82,_0x3f263d,_0x2c6f7d,_0x12d2b1,_0x5b0efc){this['_model']['change'](_0x51c405=>{let _0x18c1c4='suggestion:'+_0x8b0f82+':'+_0x3f263d+':'+_0x2c6f7d;_0x5b0efc&&(_0x18c1c4=_0x18c1c4+':'+_0x5b0efc),_0x51c405['addMarker'](_0x18c1c4,{'range':_0x12d2b1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xd0fd37){const _0x5af264=_0xd0fd37['previous'],_0x79e6d1=_0xd0fd37['next'];_0xd0fd37['previous']=null,_0xd0fd37['next']=null,null!=_0x5af264&&_0x5af264['next']==_0xd0fd37&&(_0x5af264['next']=_0x79e6d1),null!=_0x79e6d1&&_0x79e6d1['previous']==_0xd0fd37&&(_0x79e6d1['previous']=_0x5af264),'ready'==this['_suggestionState']['get'](_0xd0fd37)&&(this['_suggestionState']['set'](_0xd0fd37,'removed'),this['fire']('suggestionUnloaded',_0xd0fd37,_0x5af264,_0x79e6d1));}['_setSuggestionData'](_0x659b28){const _0x70849=_0x659b28['id'],_0x26207f=this['addSuggestionData'](_0x659b28);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x7062b6=this['editor']['plugins']['get']('PendingActions'),_0xd8e72=_0x26207f['hasComments'],_0x1aafae=_0x26207f['subType']?_0x26207f['type']+':'+_0x26207f['subType']:_0x26207f['type'],_0x1e6680=this['editor']['locale'],_0x1556db=_0x7062b6['add'](c(_0x1e6680,'PENDING_ACTION_SUGGESTION')),_0x55c43b={'id':_0x70849,'type':_0x1aafae,'hasComments':_0xd8e72,'data':_0x659b28['data']||null,'originalSuggestionId':_0x659b28['originalSuggestionId']||null,'attributes':_0x26207f['attributes']};this['_adapter']['addSuggestion'](_0x55c43b)['then'](_0x3330fd=>{_0x26207f['_saved']=!0x0,_0x7062b6['remove'](_0x1556db),_0x3330fd&&_0x3330fd['createdAt']&&(this['_suggestions']['get'](_0x70849)['createdAt']=_0x3330fd['createdAt']);})['catch'](_0x5cd763=>{throw _0x5dfb16('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x26207f['discard']();}),_0x26207f['stopListening'](),this['_suggestions']['delete'](_0x26207f['id']),this['_suggestionState']['delete'](_0x26207f),_0x5cd763;});}return _0x26207f;}['_isBlockAttribute'](_0x2a56be){return this['_blockAttributeKeys']['has'](_0x2a56be);}['_updateSuggestionData'](_0x2e66c4,_0x43095b){const _0x41be89=this['editor']['plugins']['get']('PendingActions'),_0x58f59b=this['getSuggestion'](_0x2e66c4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x58f59b['_saved']){const _0x5520e2=_0x41be89['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2e66c4,_0x43095b)['then'](()=>{_0x41be89['remove'](_0x5520e2);});}else _0x58f59b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2e66c4,_0x43095b);});}}['_getSuggestionData'](_0x487536){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1cd3be('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x487536);}['_handleNewSuggestionMarker'](_0x46a1e5){const {id:_0x193396,type:_0x3dc369,subType:_0x6d617a,authorId:_0x4e1cf8}=this['_splitMarkerName'](_0x46a1e5),_0x3a1062=this['_suggestions']['get'](_0x193396)||this['_createSuggestion'](_0x3dc369,_0x6d617a,_0x193396,_0x4e1cf8,{});switch(this['_checkSuggestionCorrectness'](_0x3a1062,_0x3dc369,_0x6d617a,_0x4e1cf8),this['_suggestionState']['get'](_0x3a1062)){case'notReady':this['_getSuggestionData'](_0x193396)['then'](_0x461a4b=>{let _0x4b02e1=Promise['resolve']();_0x461a4b['hasComments']&&(_0x4b02e1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x193396})),_0x4b02e1['then'](()=>{this['addSuggestionData'](_0x461a4b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3a1062,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x193396,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3a1062,'ready'),this['fire']('suggestionLoaded',_0x3a1062);break;case'ready':this['fire']('suggestionChanged',_0x3a1062);}return _0x3a1062['addMarkerName'](_0x46a1e5),_0x3a1062;}['_refreshSuggestionsChain'](_0x4d40e6){const _0x33fa1c=Array['from'](_0x4d40e6),_0x20d213=_0x33fa1c['filter'](_0x3e6870=>'attribute'==_0x3e6870['type']);this['_refreshAttributeSuggestionsChain'](_0x20d213);const _0x43bb87=_0x33fa1c['filter'](_0x4f02b4=>!_0x4f02b4['isMultiRange']&&'attribute'!=_0x4f02b4['type']),_0x2b6753=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x304fca=>!_0x304fca['isMultiRange']&&'attribute'!=_0x304fca['type']),_0x49582c=_0x2b6753['filter'](_0x905f24=>!_0x4d40e6['has'](_0x905f24)),_0x524c41=new Map(_0x2b6753['map'](_0x213e53=>[_0x213e53,this['_suggestionFactory']['getSuggestionCallback'](_0x213e53['type'],_0x213e53['subType'],'chain')])),_0x5e028d=new Map(_0x2b6753['map'](_0x586141=>[_0x586141,_0x586141['getFirstRange']()])),_0x438ff7=new Set(),_0x468e9f=new Set();for(let _0x4001d3=0x0;_0x4001d3<_0x43bb87['length'];_0x4001d3++)_0x2c9178(_0x43bb87[_0x4001d3],_0x43bb87,_0x4001d3+0x1);for(let _0x52310e=0x0;_0x52310e<_0x43bb87['length'];_0x52310e++)_0x2c9178(_0x43bb87[_0x52310e],_0x49582c,0x0);const _0x3a0a8d=new Set();for(let _0x407190=0x0;_0x407190<_0x43bb87['length'];_0x407190++){const _0x401205=_0x43bb87[_0x407190];!_0x468e9f['has'](_0x401205)&&_0x401205['previous']&&(_0x3a0a8d['add'](_0x401205['previous']),_0x401205['previous']['next']===_0x401205&&(_0x401205['previous']['next']=null),_0x401205['previous']=null),!_0x438ff7['has'](_0x401205)&&_0x401205['next']&&(_0x3a0a8d['add'](_0x401205['next']),_0x401205['next']['previous']===_0x401205&&(_0x401205['next']['previous']=null),_0x401205['next']=null);}function _0x2c9178(_0x4526e9,_0x476530,_0x3ecb0f){for(let _0x3ca693=_0x3ecb0f;_0x3ca693<_0x476530['length'];_0x3ca693++){const _0x591ffe=_0x57e994(_0x4526e9,_0x476530[_0x3ca693]);_0x591ffe&&(_0x591ffe[0x0]['next']=_0x591ffe[0x1],_0x591ffe[0x1]['previous']=_0x591ffe[0x0],_0x438ff7['add'](_0x591ffe[0x0]),_0x468e9f['add'](_0x591ffe[0x1]));}}function _0x57e994(_0x3e0f0e,_0x2b02b1){if(_0x3e0f0e['author']['id']!==_0x2b02b1['author']['id'])return null;const _0xdb6d5f=_0x524c41['get'](_0x3e0f0e)(_0x3e0f0e,_0x2b02b1,_0x5e028d['get'](_0x3e0f0e),_0x5e028d['get'](_0x2b02b1));if(!_0xdb6d5f)return null;return _0x524c41['get'](_0x2b02b1)(_0x3e0f0e,_0x2b02b1,_0x5e028d['get'](_0x3e0f0e),_0x5e028d['get'](_0x2b02b1))?_0xdb6d5f[0x1]['commentThread']&&_0xdb6d5f[0x1]['commentThread']['length']?null:_0xdb6d5f:null;}_0x3a0a8d['size']&&this['_refreshSuggestionsChain'](_0x3a0a8d);}['_refreshAttributeSuggestionsChain'](_0x4340b1){if(0x0==_0x4340b1['length'])return;const _0x11fca2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc8d4c0=>'attribute'==_0xc8d4c0['type']&&_0xc8d4c0['_isDataLoaded']),_0x194250=[],_0x7395d2=new Map();for(const _0x4aa27b of _0x11fca2){const _0x36584b=_0x2bf3c4(_0x4aa27b['attributes']);_0x7395d2['has'](_0x36584b)||(_0x7395d2['set'](_0x36584b,_0x194250['length']),_0x194250['push']([]));const _0x1387b4=_0x7395d2['get'](_0x36584b);_0x194250[_0x1387b4]['push'](_0x4aa27b);}!(function(){_0x194250['sort']((_0x45a218,_0x2dfaef)=>{const _0x169fca=_0x45a218[0x0]['createdAt'],_0x604269=_0x2dfaef[0x0]['createdAt'];return _0x169fca==_0x604269?_0x45a218[0x0]['attributes']['groupId']<_0x2dfaef[0x0]['attributes']['groupId']?-0x1:0x1:_0x169fca<_0x604269?-0x1:0x1;});for(const _0xab1c7a of _0x194250)_0xab1c7a['sort']((_0x356e59,_0x73f677)=>_0x356e59['id']<_0x73f677['id']?-0x1:0x1);}());for(let _0x2413b8=0x0;_0x2413b8<_0x194250['length'];_0x2413b8++){if(0x0==_0x194250[_0x2413b8]['length'])continue;const _0x4d7af8=[];for(let _0xd67252=_0x2413b8+0x1;_0xd67252<_0x194250['length'];_0xd67252++)0x0!=_0x194250[_0xd67252]['length']&&_0x2465f5(_0x194250[_0x2413b8],_0x194250[_0xd67252])&&_0x4d7af8['push'](_0xd67252);for(const _0x474962 of _0x4d7af8)_0x194250[_0x2413b8]=_0x194250[_0x2413b8]['concat'](_0x194250[_0x474962]),_0x194250[_0x474962]=[];}for(const _0x40ca1c of _0x194250)for(let _0x4383dc=0x0;_0x4383dc<_0x40ca1c['length'];_0x4383dc++){const _0xa62234=_0x40ca1c[_0x4383dc+0x1]||null;_0x40ca1c[_0x4383dc]['next']!==_0xa62234&&(_0x40ca1c[_0x4383dc]['next']=_0xa62234);}for(const _0x46282e of _0x194250)for(let _0x29e1fb=0x0;_0x29e1fb<_0x46282e['length'];_0x29e1fb++){const _0x8e5a90=_0x46282e[_0x29e1fb-0x1]||null;_0x46282e[_0x29e1fb]['previous']!==_0x8e5a90&&(_0x46282e[_0x29e1fb]['previous']=_0x8e5a90);}function _0x2465f5(_0x2aa29d,_0x3b2404){if(_0x2aa29d[0x0]['attributes']['groupId']!==_0x3b2404[0x0]['attributes']['groupId']&&_0x2aa29d[0x0]['author']!==_0x3b2404[0x0]['author'])return!0x1;if(!function(_0x368cb8,_0x3c6d1e){if(!_0x368cb8['hasComments']&&!_0x3c6d1e['hasComments'])return!0x0;if(_0x368cb8['hasComments']&&_0x3c6d1e['hasComments'])return!0x1;if(_0x368cb8['hasComments']&&_0x3c6d1e['createdAt']<_0x368cb8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3c6d1e['hasComments']&&_0x368cb8['createdAt']<_0x3c6d1e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2aa29d[0x0],_0x3b2404[0x0]))return!0x1;const _0x469a36=Ft(_0x2aa29d[0x0]['attributes'],['groupId','trackingSessionId']),_0x4f219d=Ft(_0x3b2404[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2aed50(_0x469a36,_0x4f219d))return!0x1;if(_0x2aa29d[0x0]['attributes']['groupId']==_0x3b2404[0x0]['attributes']['groupId'])return!0x0;if(_0x2aa29d[0x0]['attributes']['trackingSessionId']!==_0x3b2404[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2aa29d['every'](_0x40b424=>_0x3b2404['some'](_0x4bbc61=>_0x40b424['getFirstRange']()['isEqual'](_0x4bbc61['getFirstRange']())))&&_0x3b2404['every'](_0x333597=>_0x2aa29d['some'](_0x4ec6fd=>_0x333597['getFirstRange']()['isEqual'](_0x4ec6fd['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3a1a88){const _0x55e73e=Array['from'](_0x3a1a88),_0x24a1b4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4b31e9=_0x24a1b4['filter'](_0x532b92=>!_0x3a1a88['has'](_0x532b92)),_0x1d882d=new Map(_0x55e73e['map'](_0x44b761=>[_0x44b761,this['_suggestionFactory']['getSuggestionCallback'](_0x44b761['type'],_0x44b761['subType'],'join')])),_0x47b879=new Map(_0x24a1b4['map'](_0xb4b08b=>[_0xb4b08b,_0xb4b08b['getRanges']()]));for(let _0x5887ec=0x0;_0x5887ec<_0x55e73e['length'];_0x5887ec++){if(_0x1fedb5(this,_0x55e73e[_0x5887ec],_0x55e73e,_0x5887ec+0x1))return!0x0;}for(let _0x3fca91=0x0;_0x3fca91<_0x55e73e['length'];_0x3fca91++){if(_0x1fedb5(this,_0x55e73e[_0x3fca91],_0x4b31e9,0x0))return!0x0;}return!0x1;function _0x1fedb5(_0x14f5c2,_0x14f088,_0x2b0a67,_0x5cf1f1){for(let _0x3685f1=_0x5cf1f1;_0x3685f1<_0x2b0a67['length'];_0x3685f1++){const _0x260a4c=_0x2b0a67[_0x3685f1];if(_0x260a4c['type']!==_0x14f088['type']||_0x260a4c['author']['id']!==_0x14f088['author']['id']||_0x260a4c['subType']!==_0x14f088['subType'])continue;if(!Qt(_0x14f088,_0x260a4c))continue;if('attribute'==_0x14f088['type']&&_0x14f088['data']['oldValue']!=_0x260a4c['data']['oldValue'])continue;if('attribute'==_0x14f088['type']&&_0x14f5c2['_isBlockAttribute'](_0x14f088['data']['key']))continue;if('formatBlock'==_0x14f088['type']){const _0x54179a=_0x14f5c2['editor']['model'],_0x41022b=_0x14f088['getContainedElement']();if(_0x41022b&&(_0x54179a['schema']['isObject'](_0x41022b)||_0x54179a['schema']['isLimit'](_0x41022b)))continue;}const _0x52dc70=_0x1d882d['get'](_0x14f088),_0x4d8b59=_0x47b879['get'](_0x14f088),_0x43acdd=_0x47b879['get'](_0x260a4c),_0x37a0d8=_0x14f088['commentThread']&&_0x14f088['commentThread']['length'],_0x4772b0=_0x260a4c['commentThread']&&_0x260a4c['commentThread']['length'];if(!_0x37a0d8&&_0x52dc70(_0x43acdd,_0x4d8b59))return _0x14f5c2['_joinSuggestions'](_0x260a4c,_0x14f088),_0x47b879['delete'](_0x14f088),!0x0;if(!_0x4772b0&&_0x52dc70(_0x4d8b59,_0x43acdd))return _0x14f5c2['_joinSuggestions'](_0x14f088,_0x260a4c),_0x47b879['delete'](_0x260a4c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5f5d86,_0x5ee740){if(_0x5f5d86['isMultiRange']){for(const _0x2660fd of _0x5ee740['getRanges']())_0x5f5d86['addRange'](_0x2660fd);}else{const _0x291e8d=_0x5ee740['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5f5d86,this['_model']['createRange'](_0x5f5d86['getFirstRange']()['start'],_0x291e8d));}_0x5ee740['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3ef890,_0x4d4fcd,_0x1acbdb){const _0x1fc060=_0x3ef890['startsWith']('format')||_0x3ef890['startsWith']('attribute')?'FORMATTING':_0x3ef890['toUpperCase']();return c(this['editor']['locale'],_0x4d4fcd+'_'+_0x1fc060+'_SUGGESTION_ANNOUNCEMENT',_0x1acbdb);}['_initAriaMarkerChangeAnnouncements'](){const _0x5957b9=this['editor'];if(!_0x5957b9['ui'])return;const {ariaLiveAnnouncer:_0x16a26e}=_0x5957b9['ui'];_0x55f8e2(this['_model'],({left:_0x3f9c79,entered:_0x1c1ab4})=>{for(const _0x20317f of _0x3f9c79){const {group:_0x2376b7,type:_0x55af52}=this['_splitMarkerName'](_0x20317f['name']);if('suggestion'===_0x2376b7){_0x16a26e['announce'](this['_getMarkerAnnouncementText'](_0x55af52,'LEAVE'));break;}}for(const _0x17886b of _0x1c1ab4){const {group:_0x24ccd6,type:_0x1e8d15}=this['_splitMarkerName'](_0x17886b['name']);if('suggestion'===_0x24ccd6){_0x16a26e['announce'](this['_getMarkerAnnouncementText'](_0x1e8d15,'ENTER',_0x31ad4f(_0x55609f)));break;}}});}['_processAttributeChanges'](_0x2e286d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x8b46e9=this['editor'],_0x37ab06=_0x8b46e9['model']['document']['differ']['getChanges']();if(0x0==_0x37ab06['length'])return!0x1;const _0x4b75d3=[],_0x5d6ba4=_0x37ab06['filter'](_0x4b6238=>'attribute'==_0x4b6238['type']),_0x225cd9=_0x37ab06['filter'](_0x1df5e4=>'insert'==_0x1df5e4['type']&&'$text'!=_0x1df5e4['name']),_0x554146=_0x37ab06['filter'](_0x196117=>'remove'==_0x196117['type']&&'$text'!=_0x196117['name']);for(const _0x23d44b of _0x5d6ba4)_0x4b75d3['push']({'key':_0x23d44b['attributeKey'],'newValue':_0x23d44b['attributeNewValue'],'oldValue':_0x23d44b['attributeOldValue'],'range':qt(_0x23d44b['range'],_0x8b46e9['model'])});for(const _0x31fd8e of _0x225cd9){const _0x43fb94=_0x554146['find'](_0x578d35=>_0x578d35['position']['isEqual'](_0x31fd8e['position']));_0x43fb94&&_0x4b75d3['push']({'key':u,'newValue':_0x31fd8e['name'],'oldValue':_0x43fb94['name'],'range':_0x8b46e9['model']['createRangeOn'](_0x31fd8e['position']['nodeAfter'])});}return 0x0!=_0x4b75d3['length']&&this['_reduceExistingSuggestions'](_0x2e286d,_0x4b75d3);}['_processAttributeSuggestions'](_0x3c8018){let _0x1de3b2=!0x1;const _0x134c94=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xdb55af=>_0xdb55af['data']['newRange']&&_0xdb55af['name']['startsWith']('suggestion:attribute:'));for(const _0x3fedd0 of _0x134c94){const {subType:_0x511c4c,id:_0x2a19b2}=this['_splitMarkerName'](_0x3fedd0['name']),_0x2ba58f=_0x511c4c['split']('|')[0x0];for(const _0x38713a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x38713a['id']!=_0x2a19b2&&'attribute'==_0x38713a['type']&&_0x38713a['data']&&_0x38713a['data']['key']==_0x2ba58f&&_0x38713a['getFirstRange']()['isIntersecting'](_0x3fedd0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x38713a,_0x3fedd0['data']['newRange'],_0x3c8018),_0x1de3b2=!0x0);}return _0x1de3b2;}['_recordAttributeChanges'](_0x57452a){this['_recordAttributeSuggestions']=!0x0,_0x57452a();}['_isRegisteredAttribute'](_0x54e718){const _0x2980e2=this['_isBlockAttribute'](_0x54e718),_0x1c7d5c=this['_inlineAttributeKeys']['has'](_0x54e718);return _0x2980e2||_0x1c7d5c;}['_reduceExistingSuggestions'](_0x3cde5c,_0x470ef8){if(0x0==_0x470ef8['length'])return!0x1;let _0x2013e8=!0x1;for(const _0x43d878 of _0x470ef8){const _0x50d085=this['_findSuggestions'](_0x43d878['range'],'attribute')['filter'](_0x48e8e0=>!_0x48e8e0['meta']['isNextTo'])['map'](_0x3ce4f3=>_0x3ce4f3['suggestion']),_0x5a457b=_0x2bf3c4({'newValue':_0x43d878['newValue']});_0x50d085['filter'](_0x5cea4b=>{const [_0x423530,_0x5834ed]=_0x5cea4b['subType']['split']('|');return _0x423530==_0x43d878['key']&&_0x5834ed!=_0x5a457b;})['forEach'](_0x5d19f7=>{this['_reduceSuggestionAttributeRange'](_0x5d19f7,_0x43d878['range'],_0x3cde5c),_0x2013e8=!0x0;});}return _0x2013e8;}['_reduceSuggestionAttributeRange'](_0x2cd7e4,_0x297d6b,_0x24f7f1){const _0x3fb180=_0x2cd7e4['getFirstRange']()['getDifference'](_0x297d6b);0x0!==_0x3fb180['length']?0x1!==_0x3fb180['length']?this['_breakSuggestionMarker'](_0x2cd7e4,_0x297d6b['start'],_0x297d6b['end']):this['_setSuggestionRange'](_0x2cd7e4,_0x3fb180[0x0]):_0x24f7f1['removeMarker'](_0x2cd7e4['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x237b03){this['_editor']=_0x237b03,this['_model']=_0x237b03['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2f3d97,_0x38aa43,_0x401981,_0x422eff,_0x262d91,_0x5adaa5,_0x3738e6){return new o(this['_model'],{'type':_0x2f3d97,'subType':_0x38aa43,'id':_0x401981,'originalSuggestionId':_0x3738e6,'author':_0x422eff,'creator':_0x422eff,'attributes':_0x262d91,'onAttributesChange':_0x5adaa5,'onAccept':(..._0x26087c)=>this['getSuggestionCallback'](_0x2f3d97,_0x38aa43,'accept')(..._0x26087c),'onDiscard':(..._0x294eb9)=>this['getSuggestionCallback'](_0x2f3d97,_0x38aa43,'discard')(..._0x294eb9)});}['registerCustomCallback'](_0x274b92,_0x167b77,_0x53a2fd,_0x5582ef){const _0x57e2f4=_0x274b92+':'+_0x167b77+':'+_0x53a2fd;this['_customCallbacks']['set'](_0x57e2f4,_0x5582ef);}['getSuggestionCallback'](_0x4f7df8,_0x215c36,_0x22fdfd){const _0x104ea0=_0x4f7df8+':'+_0x215c36+':'+_0x22fdfd;return this['_customCallbacks']['get'](_0x104ea0)||this['_defaultCallbacks']['get'](_0x4f7df8+':'+_0x22fdfd);}['_registerDefaultCallbacks'](){const _0x290e93=()=>!0x1,_0x34d115=_0x45abd2=>{_0x45abd2['sort']((_0x234ce9,_0x26add9)=>_0x234ce9['start']['isBefore'](_0x26add9['start'])?0x1:-0x1),this['_model']['change'](_0xa71b1a=>{for(const _0x170c1a of _0x45abd2){let _0x4d819c;_0x4d819c=_0x170c1a['end']['isAtEnd']&&_0x170c1a['end']['parent']==_0x170c1a['start']['nodeAfter']?_0xa71b1a['createSelection'](_0x170c1a['start']['nodeAfter'],'on'):_0xa71b1a['createSelection'](_0x170c1a),this['_model']['deleteContent'](_0x4d819c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5aa881=(_0x548f65,_0x4b7fd7)=>{_0x4b7fd7&&this['_model']['change'](_0x128279=>{const {commandName:_0x5c8225,commandParams:_0x5abf35=[]}=_0x4b7fd7,_0x13048c=_0x548f65['map'](_0x3262c7=>(Lt(_0x3262c7)&&(_0x3262c7=this['_model']['createRange'](_0x3262c7['end'])),_0x3262c7))['filter'](_0x2bbaaa=>'$graveyard'!==_0x2bbaaa['root']['rootName']);if(_0x13048c['length']<0x1)return;const _0x315847=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3d7008=>_0x53edc8['fromRange'](_0x3d7008));_0x128279['setSelection'](_0x13048c);for(const _0x322dc5 of this['_editor']['commands']['commands']())_0x322dc5['refresh']();_0x5abf35['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5c8225,..._0x5abf35);const _0x476b82=_0x315847['filter'](_0x40a3a7=>'$graveyard'!=_0x40a3a7['root']['rootName']);_0x476b82['length']>0x0&&_0x128279['setSelection'](_0x476b82);for(const _0x277070 of _0x315847)_0x277070['detach']();});},_0x1d61f8=(_0x16a00c,_0x4ee61d)=>0x1==_0x16a00c['length']&&0x1==_0x4ee61d['length']&&_0x16a00c[0x0]['end']['isEqual'](_0x4ee61d[0x0]['start']),_0x422d4b=(_0xd98f8b,_0x51f5d1,_0x13738e,_0x527bec)=>Wt(_0xd98f8b,_0x51f5d1,_0x13738e,_0x527bec)?[_0xd98f8b,_0x51f5d1]:Wt(_0x51f5d1,_0xd98f8b,_0x527bec,_0x13738e)?[_0x51f5d1,_0xd98f8b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x290e93),this['_defaultCallbacks']['set']('insertion:discard',_0x34d115),this['_defaultCallbacks']['set']('insertion:join',_0x1d61f8),this['_defaultCallbacks']['set']('insertion:chain',_0x422d4b),this['_defaultCallbacks']['set']('deletion:accept',_0x34d115),this['_defaultCallbacks']['set']('deletion:discard',_0x290e93),this['_defaultCallbacks']['set']('deletion:join',_0x1d61f8),this['_defaultCallbacks']['set']('deletion:chain',_0x422d4b),this['_defaultCallbacks']['set']('formatInline:accept',_0x5aa881),this['_defaultCallbacks']['set']('formatInline:discard',_0x290e93),this['_defaultCallbacks']['set']('formatInline:join',_0x1d61f8),this['_defaultCallbacks']['set']('formatInline:chain',_0x290e93),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5aa881),this['_defaultCallbacks']['set']('formatBlock:discard',_0x290e93),this['_defaultCallbacks']['set']('formatBlock:join',_0x1d61f8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x290e93),this['_defaultCallbacks']['set']('attribute:accept',_0x290e93),this['_defaultCallbacks']['set']('attribute:discard',(_0x48b955,_0x2e210d)=>{if(!_0x2e210d)return;const _0x3f4a12=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3cb766=>{if(_0x2e210d['key']==u)for(const _0x1117e3 of _0x48b955){const _0x5e9c78=_0x1117e3['start']['nodeAfter'],_0x214211=_0x2e210d['oldValue'];_0x3cb766['rename'](_0x5e9c78,_0x214211);}else{if(_0x3f4a12['_isBlockAttribute'](_0x2e210d['key'])){for(const _0xe8e61e of _0x48b955)void 0x0!==_0x2e210d['oldValue']?_0x3cb766['setAttribute'](_0x2e210d['key'],_0x2e210d['oldValue'],_0xe8e61e['start']['nodeAfter']):_0x3cb766['removeAttribute'](_0x2e210d['key'],_0xe8e61e['start']['nodeAfter']);}else{for(const _0x270a74 of _0x48b955)_0x2e210d['oldValue']?_0x3cb766['setAttribute'](_0x2e210d['key'],_0x2e210d['oldValue'],_0x270a74):_0x3cb766['removeAttribute'](_0x2e210d['key'],_0x270a74);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1d61f8);}}function Gt(_0x4b6eec,_0x30584d,_0xa3dfbf){for(const _0x2e0451 of _0x30584d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2e0451['root']==_0x2e0451)return!0x1;if(!_0xa3dfbf['containsItem'](_0x2e0451))return!0x1;if(_0x4b6eec['isObject'](_0x2e0451)||_0x4b6eec['isLimit'](_0x2e0451))return!0x0;}return!0x1;}function Lt(_0x4f6c1c){return _0x4f6c1c['end']['parent']==_0x4f6c1c['start']['nodeAfter']&&_0x4f6c1c['end']['isAtStart'];}function Jt(_0x508e77,_0x23ad65,_0x3fef23,_0x323e67){const _0x5d909b=_0x3c29b3=>!_0x3c29b3['item']['is']('$textProxy')&&!_0x323e67['isObject'](_0x3c29b3['item']),_0x54ad0a=_0x508e77['start']['getLastMatchingPosition'](_0x5d909b),_0x39f87b=_0x508e77['end']['getLastMatchingPosition'](_0x5d909b,{'direction':'backward'});return(!_0x508e77['start']['isEqual'](_0x54ad0a)||!_0x508e77['end']['isEqual'](_0x39f87b))&&(_0x54ad0a['isBefore'](_0x39f87b)?_0x3fef23['updateMarker'](_0x23ad65,{'range':_0x3fef23['createRange'](_0x54ad0a,_0x39f87b)}):_0x3fef23['removeMarker'](_0x23ad65),!0x0);}function Kt(_0x1742f7){return _0x2bf3c4(_0x1742f7);}function Ht(_0xc6dd7a){const _0x3f2d93=_0xc6dd7a['start']['nodeAfter'];return _0x3f2d93&&_0x3f2d93['is']('element');}function qt(_0x17d2bf,_0x3803c7){return null==_0x17d2bf['end']['nodeBefore']&&_0x17d2bf['end']['parent']==_0x17d2bf['start']['nodeAfter']?zt(_0x17d2bf['start']['nodeAfter'],_0x3803c7):_0x17d2bf;}function zt(_0x8c8dac,_0x2c4d39){const _0x4bb23c=_0x2c4d39['schema']['isObject'](_0x8c8dac)||_0x2c4d39['schema']['isSelectable'](_0x8c8dac);return _0x2c4d39['createRange'](_0x2c4d39['createPositionAt'](_0x8c8dac,'before'),_0x4bb23c?_0x2c4d39['createPositionAfter'](_0x8c8dac):_0x2c4d39['createPositionAt'](_0x8c8dac,'end'));}function Wt(_0x5750a6,_0x301a73,_0x43e659,_0x53087b){return!!Qt(_0x5750a6,_0x301a73)&&_0x43e659['end']['isEqual'](_0x53087b['start']);}function Qt(_0x48e10c,_0x96b419){if(!_0x48e10c['_isDataLoaded']||!_0x96b419['_isDataLoaded'])return!0x1;const _0x2d7b56=new Set(Object['keys'](_0x48e10c['attributes'])),_0x164de9=new Set(Object['keys'](_0x96b419['attributes']));if(_0x2d7b56['delete']('groupId'),_0x164de9['delete']('groupId'),0x0==_0x2d7b56['size']&&0x0==_0x164de9['size'])return!0x0;if(_0x2d7b56['size']!=_0x164de9['size'])return!0x1;const _0x23f65c={..._0x48e10c['attributes']},_0x498f3e={..._0x96b419['attributes']};return delete _0x23f65c['groupId'],delete _0x498f3e['groupId'],JSON['stringify'](_0x23f65c)==JSON['stringify'](_0x498f3e);}function Xt(_0x5e1e60,_0x3edf03){const _0x35b5ec=Yt(_0x5e1e60['attributes']),_0x2d7445=Yt(_0x3edf03);if(!_0x5e1e60['_isDataLoaded'])return!0x1;for(const _0x2a1560 of Object['keys'](_0x2d7445))if(!_0x2aed50(_0x35b5ec[_0x2a1560],_0x2d7445[_0x2a1560]))return!0x1;return!0x0;}function Yt(_0x10ed61){const _0x3c3262=Object['assign']({},_0x10ed61);return delete _0x3c3262['skipNestingCheck'],delete _0x3c3262['tablePasteChainId'],_0x3c3262;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x18406a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5b5035,_0x529e54,_0xfd6122,_0x5a8d39){super(),this['model']=_0x529e54,this['view']=_0xfd6122,this['commentThreadController']=_0x5a8d39,this['_editor']=_0x5b5035,this['_acceptCommand']=_0x5b5035['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5b5035['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x19140e,_0x2015a2)=>_0x19140e||_0x2015a2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4f2a53=>_0x4f2a53&&this['_editor']['model']['canEditAt'](_0x529e54['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2ebe9d=>_0x2ebe9d&&this['_editor']['model']['canEditAt'](_0x529e54['getRanges']())),this['_pendingAction']=null,_0xfd6122['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xfd6122,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xfd6122,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xfd6122,'change:isDirty',()=>{_0xfd6122['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 _0x4434ff=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4434ff);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2ae501{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x14672e,_0x225d71,_0x538f18,_0x5e2905){super(_0x14672e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xffefc0(_0x14672e,c(_0x14672e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x225d71['authoredAt']),this['bind']('authoredAt')['to'](_0x225d71),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x225d71,'authoredAt',this,'descriptionParts',(_0x5bc58d,_0xf136b2,_0x3f13f9)=>{const _0x556e45=_0x3f13f9['map'](_0x48325f=>ls(_0x48325f['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5bc58d-0x1,_0x225d71['author']['name'],_0xf136b2?_0x5e2905['formatDateTime'](_0xf136b2):'',new DOMParser()['parseFromString'](_0x556e45,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5357b9(),this['focusTracker']=new _0x596630(),this['keystrokes']=new _0x5bb128(),this['focusCycler']=new _0x455afc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3bfe5a=>_0x3bfe5a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x225d71,this['_localUser']=_0x538f18,this['_config']=_0x5e2905,_0x5e2905['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xd9160f(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4ba694}=this['_config'];this['commentsListView']=new _0x4ba694(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',_0x1574ea=>_0x1574ea+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x9a89c1,_0x84fe24)=>_0x9a89c1||!!_0x84fe24);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1c79fe}=this['_config'],_0x14b564=new _0x1c79fe(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x32b22b=_0x14b564['commentInputView'];return _0x14b564['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x32b22b,'value',(_0x5ba69e,_0x372937,_0x112fa1)=>!!_0x112fa1||_0x5ba69e&&!_0x372937),_0x32b22b['on']('submit',(_0x39f5fb,_0x5f22b6)=>{this['fire']('addComment',_0x5f22b6),_0x32b22b['editor']['setData']('');}),_0x32b22b['on']('cancel',()=>this['focus']()),_0x32b22b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x14b564;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x206a92,_0x439068,_0x4a9aba,_0xa2376){super(_0x206a92,_0x439068,_0x4a9aba,_0xa2376),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3b051e=>_0x3b051e&&_0x3b051e[0x0]?_0x3b051e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x321d16,_0x524532)=>{let _0x3c3423='';for(const _0x1195b9 of _0x321d16)_0x3c3423+='<p>'+ls(_0x1195b9['content'],_0x1195b9['color'])+'</p>';return _0x524532?_0x3c3423:ti(_0x3c3423,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xa2376['SuggestionView'](_0x206a92,_0x439068,{'formatDateTime':_0xa2376['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x578839=this['bindTemplate'],_0x12b48c=[this['suggestionView']];return this['commentsListView']&&_0x12b48c['push'](this['commentsListView']),this['commentThreadInputView']&&_0x12b48c['push'](this['commentThreadInputView']),_0x12b48c['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x578839['if']('isActive','ck-suggestion-wrapper--active'),_0x578839['to']('type',_0x902bb2=>'ck-suggestion-'+_0x902bb2),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':0x0,'role':'listitem','aria-label':_0x578839['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x12b48c};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x2ae501{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x17dc50,_0x3c28ff,_0x402242){super(_0x17dc50),this['_model']=_0x3c28ff,this['_config']=_0x402242,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3c28ff),this['acceptButton']=this['_createButton'](c(_0x17dc50,'Accept\x20suggestion'),_0x2dc50c,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x17dc50,'Discard\x20suggestion'),_0x359719,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4a2fec(_0x17dc50,_0x3c28ff['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5357b9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x596630(),this['keystrokes']=new _0x5bb128(),this['focusCycler']=new _0x455afc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x49ae24=>_0x49ae24['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2a7103=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2a7103['innerHTML']=this['description'],this['on']('change:description',(_0x5045d2,_0x2e4047,_0x40d8da)=>{_0x2a7103['innerHTML']=_0x40d8da;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3eb201=this['bindTemplate'],_0x178062=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x3eb201['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3eb201['to']('authoredAt',_0x225d4c=>this['_config']['formatDateTime'](_0x225d4c))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x178062['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x178062}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x575d98,_0x531ede,_0x162356,_0x4fb60e,_0x289ddc){const _0x555087=new _0xbaa962(this['locale']);return _0x555087['set']({'label':_0x575d98,'icon':_0x531ede,'tooltip':!0x0,'tooltipPosition':_0x289ddc}),_0x555087['extendTemplate']({'attributes':{'class':_0x162356}}),_0x555087['on']('execute',()=>{this['fire'](_0x4fb60e,this['_model']['id']);}),_0x555087;}['_setupKeyboardNavigation'](){const _0x21b216=this['element'];this['keystrokes']['listenTo'](_0x21b216);for(const _0x3087d7 of this['focusables'])this['focusTracker']['add'](_0x3087d7['element']),this['keystrokes']['listenTo'](_0x3087d7['element']);this['keystrokes']['set']('enter',(_0x4cf937,_0x2caf23)=>{_0x21b216===_0x4cf937['target']&&(this['focusCycler']['focusFirst'](),_0x2caf23());}),this['keystrokes']['set']('esc',(_0x322875,_0x5a92df)=>{_0x21b216!==_0x322875['target']&&(this['focus'](),_0x5a92df());});}}class d extends _0x11ea7f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x19fdf5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x162ab6){super(_0x162ab6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5d0987=this['editor']['config'];_0x5d0987['define']('trackChanges.SuggestionThreadView',fe),_0x5d0987['define']('trackChanges.SuggestionView',we),_0x5d0987['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5d0987['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x8fb19a,_0x1c3ac1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xdd2ca,_0x1f1973]of this['_handleControllerBuffer']){const _0x401436=this['_suggestionToController']['has'](_0xdd2ca);_0x401436||_0x1f1973?_0x401436&&_0x1f1973&&this['_destroyController'](_0xdd2ca):this['_initializeController'](_0xdd2ca);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x8fb19a,_0x1c3ac1);}['init'](){const _0x4785d8=this['editor'],_0x3da9c7=_0x4785d8['plugins']['get']('TrackChangesEditing'),_0x323544=_0x4785d8['plugins']['get']('Annotations'),_0x12bf7a=_0x4785d8['plugins']['get']('EditorAnnotations'),_0x393284=_0x4785d8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x12bf7a['addSourceCollector'](()=>{const _0x3f6868=[];for(const [_0x30881d,_0x4f512b]of Array['from'](this['_suggestionToController'])){const _0x40223e=_0x30881d['getAllAdjacentSuggestions'](),_0x470355=[];for(const _0x8bf924 of _0x40223e){if(!_0x8bf924['isInContent'])continue;if(_0x8bf924['isMultiRange']){_0x470355['push'](..._0x8bf924['getRanges']());continue;}const _0x1b4586=_0x8bf924['getFirstRange']();if(_0x470355['length']>0x0){const _0x5a6988=_0x470355[0x0]['getJoined'](_0x1b4586);if(_0x5a6988){_0x470355[0x0]=_0x5a6988;continue;}}_0x470355['push'](_0x1b4586);}_0x3f6868['push']([_0x4f512b['view'],_0x470355]);}return _0x3f6868;}),this['listenTo'](_0x3da9c7,'suggestionLoaded',(_0x188dae,_0x2bbf56)=>{this['listenTo'](_0x2bbf56,'change:previous',(_0x3d7a2b,_0x37f8b8,_0x5254ad,_0x457898)=>{_0x2bbf56['isInContent']&&(null==_0x5254ad?(this['_updateController'](_0x457898['head']),this['_handleSuggestionControllerDelayed'](_0x2bbf56,!0x1)):(this['_updateController'](_0x5254ad['head']),null==_0x457898&&this['_handleSuggestionControllerDelayed'](_0x2bbf56,!0x0)));}),null!==_0x2bbf56['previous']?this['_updateController'](_0x2bbf56['head']):this['_handleSuggestionControllerDelayed'](_0x2bbf56,!0x1);}),this['listenTo'](_0x3da9c7,'suggestionUnloaded',(_0xe712b4,_0x2f0568,_0x1a0b7e)=>{this['stopListening'](_0x2f0568,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2f0568),this['_suggestionToController']['has'](_0x2f0568)&&this['_destroyController'](_0x2f0568),_0x1a0b7e&&this['_updateController'](_0x1a0b7e['head']);}),this['listenTo'](_0x3da9c7,'suggestionChanged',(_0x3ba121,_0x1c61cc)=>{this['_updateController'](_0x1c61cc);}),this['listenTo'](_0x323544,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x393284,'addComment',(_0x2931c1,{threadId:_0x18e483,isFromAdapter:_0x7d37ac})=>{if(_0x7d37ac||!_0x3da9c7['hasSuggestion'](_0x18e483))return;const _0x3a3411=_0x3da9c7['getSuggestion'](_0x18e483);this['_suggestionToController']['get'](_0x3a3411)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xde509a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1311fd;for(const _0x2bf058 in _0xde509a){const _0x3406e9=_0x2bf058,_0x1cd0aa=_0xde509a[_0x3406e9];if('trackChangesLicenseKeyValid'==_0x1cd0aa||'trackChangesLicenseKeyInvalid'==_0x1cd0aa||'trackChangesLicenseKeyExpired'==_0x1cd0aa||'trackChangesLicenseKeyDomainLimit'==_0x1cd0aa||'trackChangesLicenseKeyNotAllowed'==_0x1cd0aa||'trackChangesLicenseKeyEvaluationLimit'==_0x1cd0aa||'trackChangesLicenseKeyTrialLimit'==_0x1cd0aa||'trackChangesLicenseKeyUsageLimit'==_0x1cd0aa){delete _0xde509a[_0x3406e9],_0x1311fd=_0x1cd0aa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1311fd&&_0xde509a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1311fd&&_0xde509a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1311fd&&_0xde509a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1311fd&&_0xde509a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1311fd&&_0xde509a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1311fd&&_0xde509a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1311fd&&_0xde509a['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2a1db8=this['editor']['plugins']['get']('Annotations'),_0x5863cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b5f96=Array['from'](_0x2a1db8['activeAnnotations'],_0x1b6375=>_0x1b6375['innerView'])['filter'](_0x54254d=>this['_viewToController']['has'](_0x54254d)),_0x3af8a1=[];for(const _0x1afb40 of _0x4b5f96){const _0xaebe9=this['_viewToController']['get'](_0x1afb40)['model']['getAllAdjacentSuggestions']();_0x3af8a1['push'](..._0xaebe9['reduce']((_0x267031,_0x343095)=>[..._0x267031,..._0x343095['getMarkerNames']()],[]));}_0x5863cc['activeMarkers']=_0x3af8a1;}['_addUIComponentsToFactory'](){const _0x212d9f=this['editor'],_0x104221=_0x212d9f['locale'],_0x5f508d=c(_0x104221,'Track\x20changes'),_0x3c37a9=new _0x5e4040([{'type':'switchbutton','model':new _0x166277({'withText':!0x0,'isToggleable':!0x0,'label':_0x5f508d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x166277({'withText':!0x0,'label':c(_0x104221,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x166277({'withText':!0x0,'label':c(_0x104221,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x166277({'withText':!0x0,'label':c(_0x104221,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x166277({'withText':!0x0,'label':c(_0x104221,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x212d9f['plugins']['has']('TrackChangesPreview')&&_0x3c37a9['addMany']([{'type':'separator'},{'type':'button','model':new _0x166277({'withText':!0x0,'label':c(_0x104221,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5c119f of _0x3c37a9)if(ke(_0x5c119f)){const _0x3751ee=_0x212d9f['commands']['get'](_0x5c119f['model']['commandName']);_0x5c119f['model']['bind']('isOn','isEnabled')['to'](_0x3751ee,'value','isEnabled');}_0x212d9f['ui']['componentFactory']['add']('trackChanges',_0x599f73=>this['_createToolbarButton'](_0x599f73,_0x3c37a9,_0x5f508d)),_0x212d9f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5c667c=>this['_createMenuBarMenu'](_0x5c667c,_0x3c37a9,_0x5f508d));}['_createToolbarButton'](_0x28fc2c,_0xef0fb8,_0x2018f0){const _0x50fb0e=_0x46612d(_0x28fc2c,_0x214ce7),_0x411302=this['editor']['commands']['get']('trackChanges');_0x50fb0e['buttonView']['set']({'tooltip':_0x2018f0,'label':_0x2018f0,'icon':_0x46fdee}),_0x50fb0e['buttonView']['bind']('isOn')['to'](_0x411302,'value'),_0x50fb0e['buttonView']['on']('execute',()=>{_0x411302['execute'](),this['editor']['editing']['view']['focus']();}),_0x5cdae9(_0x50fb0e,_0xef0fb8,{'role':'menu'});const _0x2e6029=[];for(const _0x2b9abe of _0xef0fb8)ke(_0x2b9abe)&&_0x2e6029['push'](this['editor']['commands']['get'](_0x2b9abe['model']['commandName']));const _0x57105c=_0x50fb0e['buttonView'];return _0x57105c['actionView']['unbind']('isEnabled'),_0x57105c['arrowView']['unbind']('isEnabled'),_0x57105c['actionView']['bind']('isEnabled')['to'](_0x411302,'isEnabled'),_0x57105c['arrowView']['bind']('isEnabled')['toMany'](_0x2e6029,'isEnabled',(..._0x30c167)=>_0x30c167['some'](_0xe0b604=>_0xe0b604)),_0x50fb0e['on']('execute',_0x21fa01=>{this['editor']['execute'](_0x21fa01['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x50fb0e;}['_createMenuBarMenu'](_0x130810,_0x14ad75,_0x49f640){const _0x23d17d=new _0x292dc9(_0x130810),_0x31d1bb=this['editor']['commands']['get']('trackChanges');_0x23d17d['buttonView']['set']({'label':_0x49f640,'icon':_0x46fdee});const _0x4954c5=new _0x22298c(_0x130810);for(const _0x58b316 of _0x14ad75){if('separator'==_0x58b316['type']){_0x4954c5['items']['add'](new _0x4e76ca(_0x130810));continue;}const _0x13122a=new _0x20b265(_0x130810,_0x23d17d),_0x51d436=new _0x5a7002(_0x130810),_0x4a98d5=_0x58b316['model'];_0x51d436['bind'](...Object['keys'](_0x4a98d5))['to'](_0x4a98d5),_0x51d436['delegate']('execute')['to'](_0x23d17d),_0x51d436['on']('execute',()=>{this['editor']['execute'](_0x4a98d5['commandName']),this['editor']['editing']['view']['focus']();}),_0x13122a['children']['add'](_0x51d436),_0x4954c5['items']['add'](_0x13122a);}return _0x23d17d['bind']('isEnabled')['to'](_0x31d1bb,'isEnabled'),_0x23d17d['panelView']['children']['add'](_0x4954c5),_0x23d17d;}['_initializeController'](_0x3da678){const _0x285aa3=this['editor'],_0x4da8cc=_0x285aa3['config'],_0x2776a0=_0x285aa3['plugins']['get']('Annotations'),_0x341988=_0x285aa3['plugins']['get']('CommentsRepository'),_0x21b300=_0x285aa3['plugins']['get']('EditorAnnotations'),_0x590365=_0x285aa3['plugins']['get'](_0x19fdf5)['me'],_0x219119=_0x4da8cc['get']('trackChanges')['SuggestionThreadView'],_0x21d359=_0x4da8cc['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5b380e,CommentThreadInputView:_0x35936d}=_0x285aa3['plugins']['get']('CommentsUI');let _0xb4f2d7,_0x194f67,_0x40fc28;this['_annotationViews']['has'](_0x3da678['id'])?(_0x194f67=this['_annotationViews']['get'](_0x3da678['id']),_0xb4f2d7=_0x194f67['mainView']):(_0xb4f2d7=new _0x219119(_0x285aa3['locale'],_0x3da678,_0x590365,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4da8cc['get']('comments.editorConfig'),'licenseKey':_0x4da8cc['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4da8cc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4da8cc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4da8cc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x33eb5c(_0x4da8cc['get']('locale'),_0x285aa3['locale']),'CommentView':_0x4da8cc['get']('comments')['CommentView'],'CommentsListView':_0x5b380e,'CommentThreadInputView':_0x35936d,'SuggestionView':_0x21d359}),_0xb4f2d7['suggestionView']['acceptButton']['on']('execute',()=>{_0x285aa3['editing']['view']['focus']();}),_0xb4f2d7['suggestionView']['discardButton']['on']('execute',()=>{_0x285aa3['editing']['view']['focus']();}),_0x194f67=_0x2776a0['createAnnotationView'](this['editor']['locale'],_0xb4f2d7),_0x194f67['bind']('isDirty')['to'](_0xb4f2d7,'isDirty'),_0x194f67['bind']('length')['to'](_0xb4f2d7),_0x194f67['bind']('type')['to'](_0xb4f2d7,'type',_0x26ea4b=>'suggestion-'+_0x26ea4b),_0xb4f2d7['on']('escape',()=>{_0x40fc28['fire']('escape');}),this['_annotationViews']['set'](_0x3da678['id'],_0x194f67));const _0x1db52b=_0x341988['createCommentThreadController'](_0x3da678['commentThread'],_0xb4f2d7),_0x3c68ad=new pe(_0x285aa3,_0x3da678,_0xb4f2d7,_0x1db52b),_0x5555ac=_0x3da678['getAllAdjacentSuggestions']()['filter'](_0x5dd2c8=>_0x5dd2c8['isInContent']);_0xb4f2d7['descriptionParts']=_0x285aa3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5555ac),this['_suggestionToController']['set'](_0x3da678,_0x3c68ad),this['_viewToController']['set'](_0xb4f2d7,_0x3c68ad),_0x40fc28=_0x2776a0['createAnnotation']({'view':_0x194f67,'target':()=>{const _0x3eb164=[],_0x2a6673=_0x3da678['getAllAdjacentSuggestions']()['filter'](_0x104069=>_0x104069['isInContent']);for(const _0x46d8b8 of _0x2a6673)_0x3eb164['push'](..._0x46d8b8['getMarkers']());return _0x123e60(_0x285aa3['editing'],_0x3eb164);},'type':()=>'suggestion-'+_0x3c68ad['view']['type']}),_0x341988['_bindAnnotationToEditors'](_0xb4f2d7,_0x40fc28),_0x2776a0['add'](_0x40fc28),_0x21b300['registerAnnotation'](_0x40fc28);}['_destroyController'](_0x21ca26){const _0x5c79ee=this['editor']['plugins']['get']('CommentsRepository'),_0x48cfb7=this['editor']['plugins']['get']('Annotations'),_0x4811f5=this['_suggestionToController']['get'](_0x21ca26),_0x4e0467=_0x4811f5['view'],_0x465f38=_0x48cfb7['getByInnerView'](_0x4e0467);_0x5c79ee['_unbindEditors'](_0x4e0467),_0x465f38&&_0x48cfb7['remove'](_0x465f38),this['_suggestionToController']['delete'](_0x21ca26),this['_viewToController']['delete'](_0x4e0467),_0x4811f5['destroy']();}['_updateController'](_0x5856fe){if(!_0x5856fe['isInContent']||!this['_suggestionToController']['has'](_0x5856fe))return;const _0x349fd0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28ce6e=this['_suggestionToController']['get'](_0x5856fe),_0x21bb29=_0x5856fe['getAllAdjacentSuggestions']();_0x28ce6e['view']['descriptionParts']=_0x349fd0['descriptionFactory']['getDescriptions'](_0x21bb29);}['destroy'](){for(const _0xb16d08 of this['_suggestionToController']['keys']())this['_destroyController'](_0xb16d08);for(const _0x12fca8 of this['_annotationViews']['values']())_0x12fca8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x16ce10){return'model'in _0x16ce10;}class k extends _0x11ea7f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x520c76){this['editor']['plugins']['get'](p)['adapter']=_0x520c76;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4835f3){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4835f3);}['getSuggestions']({skipNotAttached:_0x7e98b=!0x1,toJSON:_0x1a0db8=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x7e98b,'toJSON':_0x1a0db8});}['getSuggestion'](_0x4200ce){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4200ce);}}const w=['Pagination'];class T extends _0x11ea7f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x481e25=this['editor'];if(_0x481e25['config']['define']('trackChangesData.editorCreator',_0xbbed96=>{const _0x5d75c9=_0x481e25['model']['document']['getRootNames']()['reduce']((_0x134f7d,_0x14803e)=>(_0x134f7d[_0x14803e]='',_0x134f7d),{});return _0x481e25['constructor']['create'](_0x5d75c9,_0xbbed96);}),'function'!=typeof _0x481e25['config']['get']('trackChangesData')['editorCreator'])throw new _0x1cd3be('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2b8d56){return N(this['editor'],!0x0,_0x2b8d56);}['getDataWithDiscardedSuggestions'](_0x4fd7ac){return N(this['editor'],!0x1,_0x4fd7ac);}}class D extends _0x11ea7f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34bfcc){function _0x250f06(_0x45c457){return _0x45c457['map'](_0x4962c7=>String['fromCharCode'](_0x4962c7))['join']('');}super(_0x34bfcc),this['result']='end',_0x34bfcc[_0x250f06([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x250f06([0x76,0x69,0x65,0x77])][_0x250f06([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x250f06([0x61,0x75,0x74,0x6f]),_0x34bfcc[_0x250f06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x250f06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x250f06([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x250f06([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x250f06([0x6f,0x6b])});}['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 Ge(_0x40cae4){return void 0x0!==_0x40cae4['getRootsAttributes'];}async function N(_0x1a549c,_0x4086b2,_0x3af22a){const _0x1e80d3=_0x481b18(_0x1a549c,w);_0x1e80d3['plugins']['push'](p,D),_0x1e80d3['rootsAttributes']=Ge(_0x1a549c)?_0x1a549c['getRootsAttributes']():void 0x0;const _0x18368a=document['createDocumentFragment'](),_0x1f48a1=_0x1a549c['config']['get']('trackChangesData')['editorCreator'],_0x234ad0=await _0x1f48a1(_0x1e80d3,()=>function(_0x1fd882){const _0x2c03f6=document['createElement']('div');return _0x1fd882['appendChild'](_0x2c03f6),_0x2c03f6;}(_0x18368a));!function(_0x47c7c6,_0x44edbd){const _0xd95689=_0x47c7c6['model']['document']['getRootNames']()['reduce']((_0x2fe1f1,_0x148f57)=>(_0x2fe1f1[_0x148f57]=_0x47c7c6['data']['get']({'rootName':_0x148f57}),_0x2fe1f1),{}),_0x43be96=_0x47c7c6['plugins']['get']('Users')['users']['map'](_0x112be5=>({'id':_0x112be5['id'],'name':_0x112be5['name']})),_0x7944c9=_0x47c7c6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x344326=_0x47c7c6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x15c310=_0x44edbd['plugins']['get']('Users'),_0x5e80dd=_0x44edbd['plugins']['get']('TrackChangesEditing'),_0x5d121b=_0x44edbd['plugins']['get']('CommentsRepository');for(const _0x320116 of _0x5d121b['getCommentThreads']())_0x320116['remove']();for(const _0x1ea055 of _0x43be96)_0x15c310['getUser'](_0x1ea055['id'])||_0x15c310['addUser'](_0x1ea055);_0x15c310['me']||_0x15c310['useAnonymousUser']();for(const _0x540d43 of _0x344326)_0x5d121b['addCommentThread'](_0x540d43);for(const _0x18b1ba of _0x7944c9)_0x5e80dd['addSuggestionData'](_0x18b1ba);_0x44edbd['data']['set'](_0xd95689);}(_0x1a549c,_0x234ad0),_0x234ad0['execute'](_0x4086b2?'acceptAllSuggestions':'discardAllSuggestions');const _0x5ba4a2=Ge(_0x234ad0)?_0x234ad0['getFullData'](_0x3af22a):_0x234ad0['data']['get'](_0x3af22a);return await _0x234ad0['destroy'](),_0x5ba4a2;}class Me extends _0x2ae501{['options'];constructor(_0xfd16a9,_0x1b8e89){super(_0xfd16a9),this['options']=_0x1b8e89,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x5240a8,_0xacd5ca){if(!this['element'])return;const _0x25fd34=[];for(const [_0x21784a,_0x1bec30]of _0x5240a8){const _0x17f8e7=document['createElement']('div');_0x17f8e7['setAttribute']('data-ck-root-name',_0x21784a),_0x17f8e7['className']=_0x1bec30['classes']+'\x20ck-track-changes-preview__root-container',_0x17f8e7['innerHTML']=_0x1bec30['content'],_0x25fd34['push'](_0x17f8e7);}_0xacd5ca(this['element'],_0x25fd34),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x56553e{constructor(_0x16b332){super(_0x16b332),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x43b0d1=this['editor'],_0x161739=_0x43b0d1['locale'],_0x372d99=_0x43b0d1['plugins']['get']('Dialog');let _0x322474;const _0x469120=function(_0x13ed6c){const _0x3151d0={};if('editables'in _0x13ed6c['ui']['view']){for(const [_0x5f58bc,_0x5788ac]of Object['entries'](_0x13ed6c['ui']['view']['editables']))_0x3151d0[_0x5f58bc]=_0x5788ac['element'];}else _0x3151d0[_0x13ed6c['model']['document']['getRootNames']()[0x0]]=_0x13ed6c['ui']['view']['editable']['element'];return _0x3151d0;}(_0x43b0d1),_0x4c4f1e=function(_0x2e28ca){let _0x2fb2f9=0x0;for(const _0xd66887 of Object['values'](_0x2e28ca))_0x2fb2f9=Math['max'](_0x2fb2f9,_0xd66887['getBoundingClientRect']()['width']);let _0x3ad84e=0x0;for(const _0x1ffe57 of Object['values'](_0x2e28ca))_0x3ad84e+=_0x1ffe57['getBoundingClientRect']()['height'];const _0x2f7b4b=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5ad83a=Math['min'](_0x3ad84e,_0x2f7b4b);return{'width':_0x2fb2f9,'height':_0x5ad83a};}(_0x469120);_0x372d99['show']({'id':'finalContentPreview','title':c(_0x161739,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x161739,{'dialogRects':_0x4c4f1e}),'onHide':()=>{_0x322474['detachFromDom']();},'onShow':()=>{_0x43b0d1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x379c07=>{const _0x31407a=this['_standarizeRootsData'](_0x379c07,_0x43b0d1,_0x469120);_0x372d99['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x31407a,_0x43b0d1['config']['get']('trackChanges.preview.renderFunction'));}),_0x322474=new _0x369a10(_0x161739,[_0x372d99['view']]),_0x322474['attachToDom'](),_0x322474['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x43b0d1['once']('destroy',()=>{_0x322474['detachFromDom']();});const _0x584d98=_0x372d99['view']['headerView']['class'];_0x372d99['view']['headerView']['class']=_0x584d98?_0x584d98+'\x20ck-reset_all':'ck-reset_all',_0x372d99['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x372d99['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5ae26e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x10cf45=_0x5ae26e['previewMode'],_0x5145b3={};if('$labels'===_0x10cf45){for(const _0x4e4cee of _0x5ae26e['getMergeFieldsIds']())_0x5145b3[_0x4e4cee]=_0x5ae26e['getLabel'](_0x4e4cee)||_0x4e4cee;}else{const _0x87dee8='$defaultValues'===_0x10cf45?_0x5ae26e['getDefaultValues']():_0x5ae26e['getDataSetValues'](_0x10cf45,!0x0);for(const _0x30cbbf of Object['entries'](_0x87dee8)){const [_0x3dd726,_0x43fb8b]=_0x30cbbf;_0x5145b3[_0x3dd726]=null!==_0x43fb8b?_0x43fb8b:_0x5ae26e['getLabel'](_0x3dd726)||_0x3dd726;}}return{'mergeFieldsData':_0x5145b3};}['_standarizeRootsData'](_0x388e5a,_0x3bf585,_0x2cb5ac){let _0xd07637;if('string'==typeof _0x388e5a){const _0x2a1216=_0x3bf585['model']['document']['getRootNames']()[0x0];_0xd07637={[_0x2a1216]:_0x388e5a};}else _0xd07637=_0x388e5a;const _0x340799=this['_fixMediaEmbeds'](_0xd07637,_0x3bf585),_0x59fdff=function(_0x1c48b1,_0x132df7){for(const [_0x59544b,_0x32590e]of _0x1c48b1)_0x32590e['classes']=_0x132df7[_0x59544b]['classList']['value']['replace']('ck-focused','');return _0x1c48b1;}(this['_sortRoots'](_0x3bf585)['reduce']((_0x5e64c0,_0x1d7892)=>(_0x5e64c0['push']([_0x1d7892,{'content':_0x340799[_0x1d7892],'classes':''}]),_0x5e64c0),[]),_0x2cb5ac);return _0x59fdff;}['_fixMediaEmbeds'](_0x55dea0,_0x5a79a7){if(!_0x5a79a7['plugins']['has']('MediaEmbedEditing'))return _0x55dea0;const _0x3d08f2=_0x5a79a7['plugins']['get']('MediaEmbedEditing');for(const [_0x4db3d9,_0x175acb]of Object['entries'](_0x55dea0)){const _0x37b5a6=document['createElement']('div');_0x37b5a6['innerHTML']=_0x175acb,(_0x37b5a6['querySelectorAll']('figure.media')['forEach'](_0x48968c=>{const _0x1f301f=_0x48968c['querySelector']('oembed');if(_0x1f301f){const _0x1ced47=_0x1f301f['getAttribute']('url');if(_0x1ced47){const _0x329663=_0x3d08f2['registry']['getMediaViewElement'](new _0x3d3be1(_0x5a79a7['editing']['view']['document']),_0x1ced47,{'elementName':'','renderForEditingView':!0x0}),_0x5209dd=document['createElement']('div');_0x5209dd['classList']['add']('ck-media__wrapper'),_0x329663['render'](_0x5209dd,_0x5a79a7['editing']['view']['domConverter']),_0x1f301f['replaceWith'](_0x5209dd);}}}),_0x55dea0[_0x4db3d9]=_0x37b5a6['innerHTML']);}return _0x55dea0;}['_sortRoots'](_0x128631){if(!function(_0x25f1fb){return void 0x0!==_0x25f1fb['getRootsAttributes'];}(_0x128631))return _0x128631['model']['document']['getRootNames']();const _0x3edd5d=[],_0x224283=new Map();for(const _0x55092e of _0x128631['model']['document']['getRootNames']()){const _0x2cde53=_0x128631['editing']['view']['getDomRoot'](_0x55092e)['getClientRects']()['item'](0x0);_0x3edd5d['push'](_0x55092e),_0x224283['set'](_0x55092e,_0x2cde53);}return _0x3edd5d['sort']((_0x4f6bdd,_0x2d552a)=>{const _0x4b533e=_0x224283['get'](_0x4f6bdd),_0x39ba12=_0x224283['get'](_0x2d552a);return _0x4b533e['y']-_0x39ba12['y']||_0x4b533e['x']-_0x39ba12['x'];}),_0x3edd5d;}}class te extends _0x11ea7f{static get['requires'](){return[T,_0x4de383];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54249b){super(_0x54249b),_0x54249b['commands']['add']('previewFinalContent',new re(this['editor'])),_0x54249b['config']['define']('trackChanges.preview.renderFunction',(_0x490506,_0xeb4692)=>{for(const _0x27e5bb of _0xeb4692)_0x490506['appendChild'](_0x27e5bb);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x51c4d5,Plugin as _0xac175e,PendingActions as _0x2eb11e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3ebbb1,ObservableMixin as _0x1f213a,uid as _0xbf3332,priorities as _0x59a01c,insertToPriorityArray as _0xff31c8,toArray as _0x1e8e77,logWarning as _0x27513f,getEnvKeystrokeText as _0x4c6853,FocusTracker as _0x5e8cfc,KeystrokeHandler as _0x3655e0,Collection as _0x21b3d3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1fd088,IconCancel as _0x3712a9,IconTrackChanges as _0x3aba50}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x99d1a,View as _0x486323,ViewCollection as _0x4f47bb,FocusCycler as _0x12544e,ViewModel as _0x5e0531,createDropdown as _0x29815e,SplitButtonView as _0x3cf9ee,addListToDropdown as _0xf8aee7,MenuBarMenuView as _0x549d73,MenuBarMenuListView as _0x3cf913,ListSeparatorView as _0x5c3a7e,MenuBarMenuListItemView as _0x5b03be,MenuBarMenuListItemButtonView as _0x1b760a,BodyCollection as _0x41989d,Dialog as _0x52247b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x46023b,hashObject as _0x473f1e,surroundingMarkersDetector as _0x22a8e2,FOCUS_ANNOTATION_KEYSTROKE as _0xf35b4f,AriaDescriptionView as _0x39e842,setupThreadKeyboardNavigation as _0x113609,trimHtml as ti,UserView as _0x197c7f,LateFocusButtonView as _0x1d944b,getDateTimeFormatter as _0x461b86,getAllMarkersDomElementsSorted as _0x3831a6,sanitizeEditorConfig as _0x386543}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1617a0,LiveRange as _0x5b3987,LivePosition as _0x11b1a2,DowncastWriter as _0x454453}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3f08c7,toWidget as _0x2f5fe0}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5e53be,set as _0x41facb,isEqual as _0x2eabca,unset as _0x23b510,omit as Ft}from'es-toolkit/compat';import{Delete as _0x26abb9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x382035}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x429f1d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x51c4d5{['_enabledCommands'];constructor(_0x30b6cd,_0x53e2c3){super(_0x30b6cd),this['_enabledCommands']=_0x53e2c3,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 _0x56b47f of this['editor']['commands']['commands']())_0x56b47f['affectsData']&&!this['_enabledCommands']['has'](_0x56b47f)&&_0x56b47f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x812eca of this['editor']['commands']['commands']())_0x812eca['affectsData']&&!this['_enabledCommands']['has'](_0x812eca)&&_0x812eca['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x51c4d5{['_suggestions'];constructor(_0x1659a0,_0x4dfc5b){super(_0x1659a0),this['_suggestions']=_0x4dfc5b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x363cac){const _0x3d4337=this['_suggestions']['get'](_0x363cac);if(!_0x3d4337)throw new _0x3ebbb1('track-changes-accept-suggestion-not-found',this);const _0x5da385=_0x3d4337['getRanges']();this['editor']['model']['canEditAt'](_0x5da385)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3d4337);}}class O extends _0x51c4d5{['_suggestions'];constructor(_0x1386be,_0x5ad120){super(_0x1386be),this['_suggestions']=_0x5ad120,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4fa574){const _0x585622=this['_suggestions']['get'](_0x4fa574);if(!_0x585622)throw new _0x3ebbb1('track-changes-discard-suggestion-not-found',this);const _0x19fd30=_0x585622['getRanges']();this['editor']['model']['canEditAt'](_0x19fd30)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x585622);}}function ls(_0x556aae,_0x65e677){let _0x309397='';return _0x309397+=_0x556aae['split']('*')['map']((_0x2798d6,_0x168e1c)=>_0x168e1c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2798d6)+'</span>':nn(_0x2798d6))['join'](''),_0x65e677&&(_0x309397+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x65e677['value']+'\x22\x20title=\x22'+_0x65e677['title']+'\x22></span>'),_0x309397;}function nn(_0xd3bbb9){const _0x178a83=document['createElement']('span');return _0x178a83['innerText']=_0xd3bbb9,_0x178a83['innerHTML'];}function ts(_0x3892df){return _0x3892df['sort']((_0x469105,_0x1be9c1)=>'deletion'==_0x469105['type']&&'deletion'!=_0x1be9c1['type']?-0x1:'deletion'!=_0x469105['type']&&'deletion'==_0x1be9c1['type']?0x1:0x0);}function to(_0x5b681d,_0x22e8af){let _0xa82dd2,_0x528fc9=0x0;const _0x23a5a2=[],_0x149fc6=_0x22e8af['schema'];for(;_0x528fc9<_0x5b681d['length'];){const _0x1e283d=_0x5b681d[_0x528fc9],_0x1dd33c=_0x5b681d[_0x528fc9+0x1];_0xa82dd2||(_0xa82dd2=_0x22e8af['createPositionBefore'](_0x1e283d)),on(_0x22e8af,_0x1e283d,_0x1dd33c)||(_0x23a5a2['push'](_0x22e8af['createRange'](_0xa82dd2,_0x149fc6['isObject'](_0x1e283d)?_0x22e8af['createPositionAfter'](_0x1e283d):_0x22e8af['createPositionAt'](_0x1e283d,'end'))),_0xa82dd2=null),_0x528fc9++;}return _0x23a5a2;}function on(_0x30185c,_0x34e052,_0x2c7958){if(!_0x2c7958)return!0x1;const _0x5cbfe3=_0x30185c['createPositionAfter'](_0x34e052),_0x1d13ec=_0x30185c['createPositionBefore'](_0x2c7958);return _0x5cbfe3['isTouching'](_0x1d13ec);}function rs(_0x3e50ac,_0x1fcfca,_0x2f662e){for(;_0x2f662e['length'];){const _0x5d220a=_0x2f662e['splice'](0x0,0x64);_0x3e50ac['change'](()=>{for(const _0x5e3d3a of _0x5d220a)_0x5e3d3a['isInContent']&&_0x1fcfca['execute'](_0x5e3d3a['id']);});}}class R extends _0x51c4d5{['_command'];['_suggestions'];constructor(_0x511770,_0x59387d,_0x16c717){super(_0x511770),this['_command']=_0x59387d,this['_suggestions']=_0x16c717,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x8de4d7=Array['from'](this['_suggestions']['values']())['some'](_0x1c98fd=>_0x1c98fd['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x8de4d7;}['execute'](){const _0x4f24cf=ts(Array['from'](this['_suggestions']['values']()));for(const _0x5a8b91 of _0x4f24cf){const _0x3609ef=_0x5a8b91['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3609ef))return;}rs(this['editor']['model'],this['_command'],_0x4f24cf);}}class E extends _0x51c4d5{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xe02a40,_0x31d110,_0x587919){super(_0xe02a40),this['_command']=_0x31d110,this['_suggestions']=_0x587919,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x34c76e=this['editor']['model']['document']['selection'],_0x6bbb67=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x57a070,_0x28f3f0){const _0x3fbe90=Array['from'](_0x57a070['getRanges']()),_0x3113f2=new Set();for(const _0xf199ce of _0x28f3f0)if(_0xf199ce['isInContent']){for(const _0x52516c of _0x3fbe90)for(const _0xf5a467 of _0xf199ce['getRanges']())(_0x52516c['isIntersecting'](_0xf5a467)||_0x57a070['isCollapsed']&&!_0xf199ce['isMultiRange']&&_0xf199ce['next']&&_0xf5a467['end']['isTouching'](_0x52516c['start']))&&_0x3113f2['add'](_0xf199ce);}return _0x3113f2;}(_0x34c76e,_0x6bbb67),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5475ba=ts(Array['from'](this['_selectedSuggestions']));for(const _0x26eb4c of _0x5475ba){const _0x2fcceb=_0x26eb4c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2fcceb))return;}rs(this['editor']['model'],this['_command'],_0x5475ba);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x1f213a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3dfdf0,_0x5e5301){super(),this['id']=_0x5e5301['id'],this['type']=_0x5e5301['type'],this['subType']=_0x5e5301['subType']||null,this['author']=_0x5e5301['author'],this['creator']=_0x5e5301['creator']||_0x5e5301['author'],this['isExternal']=Boolean(_0x5e5301['attributes']&&_0x5e5301['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5e5301['originalSuggestionId']||null,this['_model']=_0x3dfdf0,this['_onAccept']=_0x5e5301['onAccept'],this['_onDiscard']=_0x5e5301['onDiscard'],this['_onAttributesChange']=_0x5e5301['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5e5301['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 _0x4389c9=this;for(;_0x4389c9['previous'];)_0x4389c9=_0x4389c9['previous'];return _0x4389c9;}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'](_0x43304a){this['_markerNames']['add'](_0x43304a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xf08923=>this['_model']['markers']['get'](_0xf08923))['filter'](_0x40542e=>_0x40542e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x228c55=>{for(const _0x1eb01f of this['getMarkers']())_0x228c55['removeMarker'](_0x1eb01f);}),this['_markerNames']['clear']();}['removeMarker'](_0x20ee6c){this['_model']['change'](_0x100400=>{_0x100400['removeMarker'](_0x20ee6c);}),this['_markerNames']['delete'](_0x20ee6c);}['addRange'](_0x29bb15){const _0x589858='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x589858),this['_model']['change'](_0x3664d7=>{_0x3664d7['addMarker'](_0x589858,{'range':_0x29bb15,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x44e992){for(const _0x2deeff of this['getRanges']())if(_0x2deeff['isIntersecting'](_0x44e992))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4e66f0=>_0x4e66f0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3dd94f,_0x3abbd1)=>[..._0x3dd94f,..._0x3abbd1['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1a3244=this['getRanges']();if(0x1!=_0x1a3244['length'])return null;const _0x313cb6=_0x1a3244[0x0],_0x266a92=_0x313cb6['start']['nodeAfter'],_0x5bf4a3=_0x313cb6['end']['nodeBefore'];return _0x266a92 instanceof _0x1617a0?_0x266a92!=_0x5bf4a3?null:_0x266a92: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 _0x28397e=[];let _0x20ee24=this['head'];for(;_0x20ee24;)_0x28397e['push'](_0x20ee24),_0x20ee24=_0x20ee24['next'];return _0x28397e;}['setAttribute'](_0x179038,_0x546053){const _0x19caac=_0x5e53be(this['attributes']);_0x41facb(_0x19caac,_0x179038,_0x546053),_0x2eabca(_0x19caac,this['attributes'])||(this['attributes']=_0x19caac,this['_onAttributesChange'](_0x19caac));}['removeAttribute'](_0x32a656){const _0x4bfa6f=_0x5e53be(this['attributes']);_0x23b510(_0x4bfa6f,_0x32a656),_0x2eabca(_0x4bfa6f,this['attributes'])||(this['attributes']=_0x4bfa6f,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 _0xbf3332()['substr'](0x1,0x5);}}function c(_0x3ec88a,_0x34ad6c,_0x15e47c){const _0x5b4c86=_0x3ec88a['t'],t=_0x3ec88a['t'];switch(_0x34ad6c){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x15e47c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x15e47c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x15e47c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x15e47c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x15e47c);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',_0x15e47c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x15e47c);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x15e47c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x15e47c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x15e47c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x15e47c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x15e47c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x15e47c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x15e47c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x15e47c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x15e47c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x15e47c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x15e47c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x15e47c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x15e47c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x15e47c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x15e47c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x15e47c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x15e47c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x15e47c);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'},_0x15e47c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x15e47c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x15e47c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x15e47c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x15e47c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x15e47c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x15e47c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x15e47c);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'},_0x15e47c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x15e47c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x15e47c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x15e47c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x15e47c);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'},_0x15e47c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x15e47c);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'},_0x15e47c);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'},_0x15e47c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x15e47c);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'},_0x15e47c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x15e47c);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'},_0x15e47c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x15e47c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x15e47c);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x15e47c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x15e47c);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 _0x5b4c86({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x15e47c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5b4c86({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x15e47c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x15e47c);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x15e47c);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x15e47c);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x15e47c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x34ad6c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1c7242,_0x4f72fd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1c7242,this['_locale']=_0x4f72fd;}['getDescriptions'](_0x36bbbb){const _0x53d2e9=[],_0x10a682=new Set(),_0x4161a4=new Set();for(let _0x562dd6=0x0;_0x562dd6<_0x36bbbb['length'];_0x562dd6++){const _0x3707a0=_0x36bbbb[_0x562dd6];if(!_0x3707a0['isInContent'])continue;const _0x495dd7=this['_handleCustomCallbackDescription'](_0x3707a0);if(_0x495dd7){if(null!=_0x3707a0['subType']){if(_0x10a682['has'](_0x3707a0['subType']))continue;_0x10a682['add'](_0x3707a0['subType']);}_0x53d2e9['push'](_0x495dd7);}else{if('attribute'!=_0x3707a0['type'])'insertion'!=_0x3707a0['type']&&'deletion'!=_0x3707a0['type']||this['_handleInsertRemoveSuggestionDescription'](_0x53d2e9,_0x3707a0,_0x36bbbb[_0x562dd6+0x1]);else{const _0x2efde3=_0x3707a0['data']['key'];if(_0x4161a4['has'](_0x2efde3))continue;_0x4161a4['add'](_0x3707a0['data']['key']),_0x2efde3==u?this['_handleRenameSuggestionDescription'](_0x53d2e9,_0x3707a0):this['_handleAttributeSuggestionDescription'](_0x53d2e9,_0x3707a0);}}}return this['_resolveDescriptionItems'](_0x53d2e9);}['registerDescriptionCallback'](_0x7007fc){this['_customCallbacks']['push'](_0x7007fc);}['registerElementLabel'](_0xc7c261,_0x3169e2,_0x826621=_0x59a01c['normal']){'function'==typeof _0xc7c261?_0xff31c8(this['_itemLabelsCallbacks'],{'matchingCallback':_0xc7c261,'label':_0x3169e2,'priority':_0x826621}):this['_itemLabels']['set'](_0xc7c261,_0x3169e2);}['registerAttributeLabel'](_0x1c4b9e,_0x2649a1){this['_attributeLabels']['set'](_0x1c4b9e,_0x2649a1);}['getItemLabel'](_0x483eb6,_0x278c4d=0x1){let _0x378074;for(const _0x552e39 of this['_itemLabelsCallbacks'])if(_0x552e39['matchingCallback'](_0x483eb6)){_0x378074=_0x552e39['label'];break;}return _0x378074||(_0x378074=this['_itemLabels']['get'](_0x483eb6['name'])),_0x378074?_0x378074(_0x278c4d):0x1!==_0x278c4d?_0x278c4d+'\x20'+_0x483eb6['name']+'s':''+_0x483eb6['name'];}['_addDescriptionItems'](_0x7b176,_0x28feee){const _0x21b05a=_0x28feee['getFirstRange']()['getWalker'](),_0x2f240d='insertion'==_0x28feee['type']?'add':'remove';for(const _0x265e4c of _0x21b05a){const _0x4aac89=_0x265e4c['item'],_0x390324=_0x7b176[_0x7b176['length']-0x1];if(_0x4aac89['is']('$textProxy'))_0x390324&&_0x390324['type']['indexOf']('Container')>-0x1&&_0x7b176['pop'](),_0x390324&&'text'==_0x390324['type']?_0x390324[_0x2f240d]+=_0x4aac89['data']:_0x7b176['push']({'type':'text','add':'add'==_0x2f240d?_0x4aac89['data']:'','remove':'remove'==_0x2f240d?_0x4aac89['data']:''});else{if(this['_schema']['isObject'](_0x4aac89)){const _0x5eb6fa=_0x4aac89;if(_0x390324&&_0x390324['type']['indexOf']('Container')>-0x1&&_0x7b176['pop'](),'elementEnd'==_0x265e4c['type'])continue;_0x390324&&_0x390324['type']==_0x2f240d+'Object'&&_0x390324['element']['name']==_0x5eb6fa['name']?_0x390324['quantity']++:_0x7b176['push']({'type':_0x2f240d+'Object','element':_0x5eb6fa,'quantity':0x1}),_0x21b05a['skip'](_0x493680=>!('elementEnd'==_0x493680['type']&&_0x493680['item']==_0x4aac89));}else{if(this['_schema']['checkChild'](_0x4aac89,'$text')||_0x4aac89['is']('element','softBreak')){const _0x460a84=_0x4aac89;if('add'==_0x2f240d&&'elementStart'==_0x265e4c['type']||'remove'==_0x2f240d&&'elementEnd'==_0x265e4c['type'])continue;if(_0x390324&&-0x1==_0x390324['type']['indexOf']('Container')){'text'==_0x390324['type']&&(_0x390324[_0x2f240d]+='\x0a');continue;}let _0x33857e;if(_0x33857e='add'==_0x2f240d?_0x460a84['nextSibling']&&!this['_schema']['isObject'](_0x460a84['nextSibling'])?_0x460a84['nextSibling']:null:_0x460a84['previousSibling']&&!this['_schema']['isObject'](_0x460a84['previousSibling'])?_0x460a84['previousSibling']:null,_0x460a84['isEmpty']||_0x33857e&&_0x33857e['isEmpty']){const _0x468927=_0x33857e&&_0x33857e['isEmpty']?_0x33857e:_0x460a84;_0x390324&&_0x390324['type']==_0x2f240d+'EmptyContainer'&&_0x390324['element']['name']==_0x468927['name']?_0x390324['quantity']++:_0x7b176['push']({'type':_0x2f240d+'EmptyContainer','element':_0x468927,'quantity':0x1});}else _0x7b176['push']({'type':_0x2f240d+'Container','element':_0x460a84});}}}}}['_resolveDescriptionItems'](_0x24731e){const _0x3b9bed=this['_locale'],_0x3c40b3=[],_0x3c1103=[],_0x375790=[];for(const _0x3c75d1 of _0x24731e)switch(_0x3c75d1['type']){case'text':if(_0x3c75d1['add']=_0x3c75d1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3c75d1['remove']=_0x3c75d1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3c75d1['add']&&''!=_0x3c75d1['remove']){_0x3c40b3['push']({'type':'replace','content':c(_0x3b9bed,'REPLACE_TEXT',['\x22'+_0x3c75d1['remove']+'\x22','\x22'+_0x3c75d1['add']+'\x22'])});continue;}if(null!=_0x3c75d1['add']['match'](/^ +$/)){_0x3c40b3['push']({'type':'insertion','content':c(_0x3b9bed,'*Insert:*\x20%0',c(_0x3b9bed,'ELEMENT_SPACE',_0x3c75d1['add']['length']))});continue;}if(null!=_0x3c75d1['remove']['match'](/^ +$/)){_0x3c40b3['push']({'type':'deletion','content':c(_0x3b9bed,'*Remove:*\x20%0',c(_0x3b9bed,'ELEMENT_SPACE',_0x3c75d1['remove']['length']))});continue;}if(''!=_0x3c75d1['add']){_0x3c40b3['push']({'type':'insertion','content':c(_0x3b9bed,'*Insert:*\x20%0','\x22'+_0x3c75d1['add']+'\x22')});continue;}_0x3c40b3['push']({'type':'deletion','content':c(_0x3b9bed,'*Remove:*\x20%0','\x22'+_0x3c75d1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3c40b3['push']({'type':'insertion','content':c(_0x3b9bed,'*Insert:*\x20%0',this['getItemLabel'](_0x3c75d1['element'],_0x3c75d1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3c40b3['push']({'type':'deletion','content':c(_0x3b9bed,'*Remove:*\x20%0',this['getItemLabel'](_0x3c75d1['element'],_0x3c75d1['quantity']))});continue;case'addContainer':_0x3c40b3['push']({'type':'insertion','content':c(_0x3b9bed,'*Split:*\x20%0',this['getItemLabel'](_0x3c75d1['element'],_0x3c75d1['quantity']))});continue;case'removeContainer':_0x3c40b3['push']({'type':'deletion','content':c(_0x3b9bed,'*Merge:*\x20%0',this['getItemLabel'](_0x3c75d1['element'],_0x3c75d1['quantity']))});continue;case'addFormat':_0x3c1103['push'](_0x3c75d1['key']);continue;case'removeFormat':_0x375790['push'](_0x3c75d1['key']);continue;default:_0x3c40b3['push'](_0x3c75d1);}if(_0x3c1103['length']){const _0x4b4104=_0x3c1103['map'](_0x1758de=>this['_attributeLabels']['has'](_0x1758de)?this['_attributeLabels']['get'](_0x1758de):_0x1758de)['join'](',\x20');_0x3c40b3['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x4b4104)});}if(_0x375790['length']){const _0x309d1a=_0x375790['map'](_0x439270=>this['_attributeLabels']['has'](_0x439270)?this['_attributeLabels']['get'](_0x439270):_0x439270)['join'](',\x20');_0x3c40b3['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x309d1a)});}return _0x3c40b3;}['_handleCustomCallbackDescription'](_0xc23a01){for(const _0x27b67d of this['_customCallbacks']){const _0x516842=_0x27b67d(_0xc23a01);if(_0x516842&&'type'in _0x516842)return _0x516842;}}['_handleAttributeSuggestionDescription'](_0x5c1a30,_0x5631bc){const _0xe67859=_0x5631bc['data'],_0x4136c2=void 0x0===_0xe67859['newValue']?'removeFormat':'addFormat';_0x5c1a30['push']({'type':_0x4136c2,'key':_0xe67859['key']});}['_handleRenameSuggestionDescription'](_0x1a5367,_0x3efcce){_0x1a5367['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3efcce['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3d92fc,_0x3b97cb,_0x2b3d3c){if(this['_addDescriptionItems'](_0x3d92fc,_0x3b97cb),_0x2b3d3c&&_0x2b3d3c['getFirstRange']()&&!_0x3b97cb['getFirstRange']()['end']['isEqual'](_0x2b3d3c['getFirstRange']()['start'])){const _0x5366f0=_0x3d92fc[_0x3d92fc['length']-0x1],_0x42d93e='insertion'==_0x3b97cb['type']?'add':'remove';_0x5366f0&&'text'==_0x5366f0['type']&&(_0x5366f0[_0x42d93e]+='\x0a');}}}class U extends _0xac175e{['afterInit'](){const _0xa77586=this['editor'],_0x4cea50=_0xa77586['plugins']['get']('TrackChangesEditing');_0xa77586['commands']['get']('showAIAssistant')&&_0x4cea50['enableCommand']('showAIAssistant');}}class V extends _0xac175e{['afterInit'](){const _0x269d55=this['editor'],_0x598402=_0x269d55['locale'];if(!_0x269d55['plugins']['has']('AlignmentEditing'))return;const _0x364af7=_0x269d55['plugins']['get']('TrackChangesEditing');_0x364af7['enableDefaultAttributesIntegration']('alignment'),_0x364af7['registerBlockAttribute']('alignment'),_0x364af7['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x598402,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28ad6a=this['editor'],_0x3e2761=_0x28ad6a['locale'];_0x28ad6a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b6fb9=>{if('formatBlock'!=_0x1b6fb9['type'])return;const {data:_0x5a04ec}=_0x1b6fb9;if(_0x5a04ec&&'alignment'==_0x5a04ec['commandName']){const _0x22403a=_0x5a04ec['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x3e2761,'*Format:*\x20%0',function(_0x47d7fe){switch(_0x47d7fe){case'left':return c(_0x3e2761,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x3e2761,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x3e2761,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x3e2761,'FORMAT_JUSTIFY_TEXT');}}(_0x22403a))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0xac175e{['afterInit'](){const _0x2eae77=this['editor'],_0x2a685a=_0x2eae77['plugins']['get']('TrackChangesEditing'),_0x24e092=_0x2eae77['locale'];for(const _0x2faaa3 of Zt){if(!_0x2eae77['plugins']['has'](_0x2faaa3))continue;const _0x10b927=_0x2faaa3['slice'](0x0,-0x7)['toLowerCase'](),_0x7157d2='FORMAT_'+_0x10b927['toUpperCase']();_0x2a685a['enableDefaultAttributesIntegration'](_0x10b927),_0x2a685a['registerInlineAttribute'](_0x10b927),_0x2a685a['descriptionFactory']['registerAttributeLabel'](_0x10b927,c(_0x24e092,_0x7157d2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b81ce=this['editor'],_0x2f9997=_0x5b81ce['locale'],_0x5a00e5=_0x5b81ce['plugins']['get']('TrackChangesEditing');function _0x178c52(_0x2616c1,_0xa52379){_0x5a00e5['descriptionFactory']['registerDescriptionCallback'](_0x1ab2fd=>{if('formatInline'!=_0x1ab2fd['type'])return;const {data:_0x211b67}=_0x1ab2fd;return _0x211b67&&_0x211b67['commandName']===_0x2616c1?_0x211b67['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2f9997,'*Format:*\x20%0',_0xa52379)}:{'type':'format','content':c(_0x2f9997,'*Remove\x20format:*\x20%0',_0xa52379)}:void 0x0;});}_0x178c52('bold',c(_0x2f9997,'FORMAT_BOLD')),_0x178c52('italic',c(_0x2f9997,'FORMAT_ITALIC')),_0x178c52('underline',c(_0x2f9997,'FORMAT_UNDERLINE')),_0x178c52('code',c(_0x2f9997,'FORMAT_CODE')),_0x178c52('strikethrough',c(_0x2f9997,'FORMAT_STRIKETHROUGH')),_0x178c52('subscript',c(_0x2f9997,'FORMAT_SUBSCRIPT')),_0x178c52('superscript',c(_0x2f9997,'FORMAT_SUPERSCRIPT'));}}class G extends _0xac175e{['afterInit'](){const _0x50d05a=this['editor'],_0x583df2=_0x50d05a['locale'];if(!_0x50d05a['plugins']['has']('BlockQuoteEditing'))return;const _0x56449e=_0x50d05a['plugins']['get']('TrackChangesEditing'),_0x1f97e3=this['editor']['commands']['get']('blockQuote');_0x56449e['enableCommand']('blockQuote',(_0x11cfa2,_0x48750a={})=>{const _0x5b741e=this['editor']['model']['document']['selection'],_0x207bf7=_0x48750a&&void 0x0!==_0x48750a['forceValue']?_0x48750a['forceValue']:!_0x1f97e3['value'];let _0x5e67fb=[];if(_0x207bf7){const _0x1052ca=Array['from'](_0x5b741e['getSelectedBlocks']())['filter'](_0x258408=>oo(_0x258408)||function(_0x17c3ae,_0x21fd47){const _0x348d70=_0x21fd47['checkChild'](_0x17c3ae['parent'],'blockQuote'),_0x25ad7b=_0x21fd47['checkChild'](['$root','blockQuote'],_0x17c3ae);return _0x348d70&&_0x25ad7b;}(_0x258408,this['editor']['model']['schema']));_0x5e67fb=to(_0x1052ca,_0x50d05a['model']);}else{const _0x4b63c2=Array['from'](_0x5b741e['getSelectedBlocks']())['filter'](_0x13e9a2=>oo(_0x13e9a2));_0x5e67fb=to(_0x4b63c2,_0x50d05a['model']);}_0x50d05a['model']['change'](()=>{for(const _0x337745 of _0x5e67fb)_0x56449e['markBlockFormat'](_0x337745,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x207bf7}]});});}),_0x56449e['descriptionFactory']['registerDescriptionCallback'](_0xf3f476=>{const {data:_0x1014f0}=_0xf3f476;if(_0x1014f0&&'blockQuote'==_0x1014f0['commandName']){const _0x3a43c1=c(_0x583df2,'ELEMENT_BLOCK_QUOTE');return _0x1014f0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x583df2,'*Set\x20format:*\x20%0',_0x3a43c1)}:{'type':'format','content':c(_0x583df2,'*Remove\x20format:*\x20%0',_0x3a43c1)};}});}}function oo(_0x96fcfc){return'blockQuote'==_0x96fcfc['parent']['name'];}class L extends _0xac175e{['afterInit'](){const _0x42b2a5=this['editor'],_0x329ed2=_0x42b2a5['locale'],_0x5cf70a=_0x42b2a5['plugins']['get']('TrackChangesEditing');_0x42b2a5['plugins']['has']('BookmarkEditing')&&(_0x5cf70a['enableCommand']('insertBookmark'),_0x5cf70a['enableDefaultAttributesIntegration']('updateBookmark'),_0x5cf70a['registerBlockAttribute']('bookmarkId'),_0x5cf70a['descriptionFactory']['registerDescriptionCallback'](_0x4cf7a7=>{if('insertion'!=_0x4cf7a7['type']&&'deletion'!=_0x4cf7a7['type']&&'attribute'!=_0x4cf7a7['type'])return;const _0x1e503f=_0x4cf7a7['getContainedElement']();if(null==_0x1e503f)return;if(!_0x1e503f['is']('element','bookmark'))return;const _0x84b50a=_0x1e503f['getAttribute']('bookmarkId');if('insertion'==_0x4cf7a7['type'])return{'type':'insertion','content':c(_0x329ed2,'*Insert:*\x20%0','\x22'+_0x84b50a+'\x22\x20'+c(_0x329ed2,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4cf7a7['type'])return{'type':'deletion','content':c(_0x329ed2,'*Remove:*\x20%0','\x22'+_0x84b50a+'\x22\x20'+c(_0x329ed2,'ELEMENT_BOOKMARK'))};const {data:_0x1a28c7}=_0x4cf7a7;if(!_0x1a28c7||'bookmarkId'!=_0x1a28c7['key'])return;return{'type':'format','content':c(_0x329ed2,'*Set\x20bookmark:*\x20%0','\x22'+_0x1a28c7['newValue']+'\x22')};}));}}class J extends _0xac175e{['afterInit'](){const _0x37a244=this['editor'];_0x37a244['plugins']['has']('CaseChange')&&(_0x37a244['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x37a244['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x37a244['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0xac175e{['afterInit'](){const _0x1e863c=this['editor'];_0x1e863c['commands']['get']('ckbox')&&_0x1e863c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0xac175e{['afterInit'](){const _0x676b2a=this['editor'];if(!_0x676b2a['plugins']['has']('CodeBlock'))return;const _0x4d3ab4=_0x676b2a['plugins']['get']('TrackChangesEditing'),_0x359359=_0x676b2a['locale'],_0x931a80=_0x676b2a['config']['get']('codeBlock')['languages'],_0x321648=_0x676b2a['commands']['get']('codeBlock');_0x4d3ab4['enableCommand']('indentCodeBlock'),_0x4d3ab4['enableCommand']('outdentCodeBlock'),_0x4d3ab4['enableCommand']('codeBlock',(_0x25aaea,_0x1c39b4={})=>{const _0x390280=_0x676b2a['model'],_0x4ca96f=_0x676b2a['model']['document']['selection'],_0x264ca7=_0x1c39b4&&void 0x0!==_0x1c39b4['forceValue']?_0x1c39b4['forceValue']:!_0x321648['value'];let _0x28bf44;_0x1c39b4['language']||(_0x1c39b4['language']=_0x931a80[0x0]['language']),_0x28bf44=_0x264ca7?Array['from'](_0x4ca96f['getSelectedBlocks']())['filter'](_0x4f5422=>eo(_0x4f5422)||function(_0x3c6a51,_0x1f7294){if(_0x3c6a51['is']('rootElement')||_0x1f7294['isLimit'](_0x3c6a51))return!0x1;return _0x1f7294['checkChild'](_0x3c6a51['parent'],'codeBlock');}(_0x4f5422,_0x390280['schema'])):Array['from'](_0x4ca96f['getSelectedBlocks']())['filter'](_0x28ebb5=>eo(_0x28ebb5));const _0x3d6477=to(_0x28bf44,_0x390280);_0x390280['change'](()=>{for(const _0x476081 of _0x3d6477)_0x4d3ab4['markBlockFormat'](_0x476081,{'commandName':'codeBlock','commandParams':[{..._0x1c39b4,'forceValue':_0x264ca7}],'formatGroupId':'blockName'});});}),(_0x4d3ab4['descriptionFactory']['registerElementLabel']('codeBlock',_0x5a78bf=>c(_0x359359,'ELEMENT_CODE_BLOCK',_0x5a78bf)),_0x4d3ab4['descriptionFactory']['registerDescriptionCallback'](_0xa009fb=>{if('formatBlock'!=_0xa009fb['type'])return;const _0x210772=_0x359359['t'],{data:_0xf0b99f}=_0xa009fb;if(!_0xf0b99f||'codeBlock'!=_0xf0b99f['commandName'])return;const _0x13f1ee=_0xf0b99f['commandParams'][0x0]['language'],_0x438c36=_0x210772(_0x931a80['find'](_0x4554cf=>_0x4554cf['language']===_0x13f1ee)['label'])['toLowerCase']();return _0xf0b99f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x359359,'*Set\x20format:*\x20%0',c(_0x359359,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x438c36+')')}:{'type':'format','content':c(_0x359359,'*Remove\x20format:*\x20%0',c(_0x359359,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x584875){return'codeBlock'==_0x584875['name'];}class q extends _0xac175e{['afterInit'](){const _0x49fa3d=this['editor'];if(!_0x49fa3d['plugins']['has']('CommentsEditing'))return;_0x49fa3d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x133c1e,_0x49ca8e,_0x1a7c8d){const _0x1eb1dd=[];for(const _0x499e90 of _0x49ca8e['getItems']())_0x499e90['hasAttribute'](_0x133c1e)&&_0x1eb1dd['push'](_0x1a7c8d['createRangeOn'](_0x499e90));return _0x1eb1dd;}function Fe(_0x3e70c0,_0xa5937,{showActiveMarker:_0x18a518=!0x0}={}){const _0x2a4c40=_0x3e70c0['plugins']['get']('TrackChangesEditing');return(_0x1a802d,_0x52caad,_0x115092)=>{if(!_0x115092['consumable']['test'](_0x52caad['markerRange'],_0x1a802d['name']))return;const _0x22fd15=_0x52caad['markerRange']['getWalker'](),_0x44fef8=_0x52caad['markerRange']['start'],_0x461c76=_0x3e70c0['model']['schema'];let _0x463dd9=null,_0x1bf0b4=null,_0x28148d=!0x1,_0xe55007=!0x1;for(const _0x1d41b8 of _0x22fd15){const _0x1f93d3=_0x1d41b8['item'];_0x28148d=_0x28148d||_0x461c76['isContent'](_0x1f93d3);const _0x465da5=_0x115092['mapper']['toViewElement'](_0x1f93d3);if(_0x465da5&&_0x465da5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d41b8['type']&&(_0x461c76['isBlock'](_0x1f93d3)&&!_0x461c76['isLimit'](_0x1f93d3)&&(_0x1f93d3['nextSibling']||_0x44fef8['isAtEnd']?_0x463dd9&&_0x463dd9['parent']==_0x1f93d3||(_0x463dd9=_0x1f93d3,_0x22da27(_0x1d41b8['previousPosition']),_0xe55007=!0x0):_0x1bf0b4=_0x1bf0b4||_0x1d41b8['previousPosition']));}function _0x22da27(_0x1fa096){const {id:_0x370413,authorId:_0x247548}=_0x2a4c40['_splitMarkerName'](_0x52caad['markerName']),_0x3897b2=_0x115092['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xa5937,'data-suggestion':_0x370413,'data-author-id':_0x247548}),_0x3404f5=_0x115092['mapper']['toViewPosition'](_0x1fa096);_0x18a518&&_0x2a4c40['activeMarkers']['includes'](_0x52caad['markerName'])&&_0x115092['writer']['addClass']('ck-suggestion-marker--active',_0x3897b2),_0x115092['writer']['insert'](_0x3404f5,_0x3897b2),_0x115092['mapper']['bindElementToMarker'](_0x3897b2,_0x52caad['markerName']);}_0x28148d||_0xe55007||!_0x1bf0b4||_0x22da27(_0x1bf0b4);};}class z extends _0xac175e{static get['requires'](){return[_0x26abb9];}['init'](){const _0x100d88=this['editor'],_0x1a8a01=_0x100d88['plugins']['get']('TrackChangesEditing');_0x1a8a01['enableCommand']('delete');const _0x1970f2=_0x100d88['commands']['get']('deleteForward');_0x1a8a01['enableCommand']('deleteForward',(_0xf6167d,_0x55fbdf={})=>{const _0x570ade=_0x100d88['model']['createSelection'](_0x100d88['model']['document']['selection']);_0x570ade['isCollapsed']&&_0x100d88['model']['modifySelection'](_0x570ade,{'direction':'forward','unit':_0x55fbdf['unit']});const _0x12172e=_0x570ade['getFirstRange'](),_0x3df89c=_0x5b3987['fromRange'](_0x12172e);let _0x5c0614;_0xf6167d(_0x55fbdf),_0x5c0614='$graveyard'==_0x3df89c['root']['rootName']?_0x100d88['model']['createRange'](_0x12172e['start']):_0x100d88['model']['createRange'](_0x3df89c['start'],_0x3df89c['end']),_0x3df89c['detach'](),_0x100d88['model']['enqueueChange'](_0x1970f2['buffer']['batch'],_0x16185d=>{_0x1970f2['buffer']['lock'](),_0x16185d['setSelection'](_0x16185d['createRange'](_0x5c0614['end'])),_0x1970f2['buffer']['unlock']();});}),_0x100d88['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x100d88,'merge'),{'priority':'high'}),_0x100d88['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x108345,_0xb6572f,_0x12a0d0)=>{_0x12a0d0['options']['showSuggestionHighlights']&&Fe(_0x100d88,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x108345,_0xb6572f,_0x12a0d0);},{'priority':'high'}),_0x100d88['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2694ca,_0x177e6c,_0x35f1c4)=>{const _0x18d217=_0x35f1c4['mapper']['markerNameToElements'](_0x177e6c['markerName']);if(_0x18d217){for(const _0x4509f2 of _0x18d217)_0x4509f2['is']('uiElement')&&(_0x35f1c4['mapper']['unbindElementFromMarkerName'](_0x4509f2,_0x177e6c['markerName']),_0x35f1c4['writer']['remove'](_0x4509f2));}},{'priority':'high'});}}class W extends _0xac175e{['afterInit'](){const _0x245db1=this['editor'];if(!_0x245db1['plugins']['has']('ListEditing'))return;const _0x428236=_0x245db1['locale'],_0x4d71aa=_0x245db1['plugins']['get']('TrackChangesEditing'),_0x443050=_0x245db1['plugins']['has']('TodoListEditing'),_0x123461=!!_0x245db1['config']['get']('list.multiBlock');function _0x1b5f79(_0x64be1d){return{'type':'format','content':''+c(_0x428236,'*Set\x20format:*\x20%0',_0x64be1d)};}function _0x3fa6b0(_0x58fa9c){return{'type':'format','content':''+c(_0x428236,'*Remove\x20format:*\x20%0',_0x58fa9c)};}_0x4d71aa['enableDefaultAttributesIntegration']('numberedList'),_0x4d71aa['enableDefaultAttributesIntegration']('bulletedList'),_0x4d71aa['enableDefaultAttributesIntegration']('customNumberedList'),_0x4d71aa['enableDefaultAttributesIntegration']('customBulletedList'),_0x4d71aa['enableDefaultAttributesIntegration']('indentList'),_0x4d71aa['enableDefaultAttributesIntegration']('outdentList'),_0x4d71aa['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4d71aa['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4d71aa['registerBlockAttribute']('listItemId'),_0x4d71aa['registerBlockAttribute']('listType'),_0x4d71aa['registerBlockAttribute']('listIndent'),_0x123461&&(_0x4d71aa['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4d71aa['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x443050&&(_0x4d71aa['enableDefaultAttributesIntegration']('todoList'),_0x4d71aa['enableDefaultAttributesIntegration']('checkTodoList'),_0x4d71aa['registerBlockAttribute']('todoListChecked'),_0x4d71aa['descriptionFactory']['registerDescriptionCallback'](_0x2a75b8=>{const {data:_0xec64f2}=_0x2a75b8;if(_0xec64f2&&'todoListChecked'==_0xec64f2['key'])return{'type':'format','content':_0xec64f2['newValue']?c(_0x428236,'*Check\x20item*'):c(_0x428236,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x43a309=>{if(_0x43a309['batch']['isUndo'])return!0x1;let _0x364833=!0x1;const _0x256dc6=_0x4d71aa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x547cca=>'todoListChecked'===_0x4d71aa['_getAttributeKey'](_0x547cca));for(const _0x61af89 of _0x256dc6){'todo'!=_0x61af89['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4d71aa['_findSuggestions'](_0x61af89['getFirstRange'](),'attribute')['find'](_0x301c42=>'listType'===_0x4d71aa['_getAttributeKey'](_0x301c42['suggestion']))||(_0x43a309['removeMarker'](_0x61af89['getFirstMarker']()),_0x364833=!0x0));}return _0x364833;})),_0x4d71aa['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x428236,'FORMAT_INDENT'));const _0x36fe91={'type':'format','content':''};_0x4d71aa['descriptionFactory']['registerDescriptionCallback'](_0x2d1894=>{const {data:_0x5e8e5b}=_0x2d1894;if(!_0x5e8e5b||'listType'!=_0x5e8e5b['key'])return;let _0x13aaf6=_0x2d1894['head'];for(;_0x13aaf6;){if(_0x13aaf6['data']&&(('listStyle'==_0x13aaf6['data']['key']||'listMarkerStyle'==_0x13aaf6['data']['key'])&&(_0x13aaf6['data']['newValue']&&'default'!=_0x13aaf6['data']['newValue']||'default'!=_0x13aaf6['data']['oldValue']&&!_0x5e8e5b['newValue'])||!_0x123461&&_0x13aaf6['data']['key']==u))return _0x36fe91;_0x13aaf6=_0x13aaf6['next'];}if(null==_0x5e8e5b['newValue'])switch(_0x5e8e5b['oldValue']){case'bulleted':return _0x3fa6b0(c(_0x428236,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3fa6b0(c(_0x428236,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3fa6b0(c(_0x428236,'ELEMENT_TODO_LIST'));}switch(_0x5e8e5b['newValue']){case'bulleted':return _0x1b5f79(c(_0x428236,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b5f79(c(_0x428236,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b5f79(c(_0x428236,'ELEMENT_TODO_LIST'));}}),_0x4d71aa['descriptionFactory']['registerDescriptionCallback'](_0xe228a5=>{const {data:_0x206d58}=_0xe228a5;if(_0x206d58&&'listIndent'==_0x206d58['key'])return null==_0x206d58['newValue']||null==_0x206d58['oldValue']&&0x0==_0x206d58['newValue']?_0x36fe91:void 0x0;}),_0x4d71aa['descriptionFactory']['registerDescriptionCallback'](_0x37e8a2=>{if('attribute'!=_0x37e8a2['type'])return;const {data:_0x408d9f}=_0x37e8a2;if(!_0x408d9f||'listItemId'!=_0x408d9f['key'])return;const _0x5cf725=Te(_0x37e8a2);return'newValue'==_0x5cf725?{'type':'format','content':c(_0x428236,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5cf725?{'type':'format','content':c(_0x428236,'*Split:*\x20list\x20item')}:_0x36fe91;}),_0x245db1['model']['document']['registerPostFixer'](_0x3ec00d=>this['listItemIdFixer'](_0x3ec00d)),_0x245db1['model']['document']['registerPostFixer'](_0x57546c=>this['noTrackChangesFixer'](_0x57546c)),_0x245db1['model']['document']['on']('change:data',(_0x5e4773,_0x26016d)=>{if(_0x26016d['isUndo']||!_0x26016d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x168a56){if(_0x168a56['batch']['isUndo']||!_0x168a56['batch']['isLocal'])return!0x1;let _0x453132=!0x1;const _0x52fe51=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27ed2c=>_0x27ed2c['data']&&'listItemId'==_0x27ed2c['data']['key'])['filter'](_0x437837=>_0x437837['data']['newValue']&&_0x437837['data']['oldValue']);for(const _0x2f4339 of _0x52fe51)Te(_0x2f4339)||(_0x168a56['removeMarker'](_0x2f4339['getFirstMarker']()),_0x453132=!0x0);return _0x453132;}['noTrackChangesFixer'](_0x5eab09){if(_0x5eab09['batch']['isUndo']||!_0x5eab09['batch']['isLocal'])return!0x1;const _0x58c7c9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x58c7c9['trackChangesCommand']['value'])return!0x1;let _0x2b8819=!0x1;const _0x50b29a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x56e0f6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x57cee5=>'attribute'==_0x57cee5['type'])['filter'](_0x127f2=>_0x50b29a['includes'](_0x127f2['attributeKey']));if(0x0==_0x56e0f6['length'])return _0x2b8819;for(const _0x3696e3 of _0x56e0f6){const _0x44c1be=_0x58c7c9['_findSuggestions'](_0x3696e3['range'],'attribute')['filter'](_0xd6f746=>!_0xd6f746['meta']['isNextTo'])['map'](_0x518bd4=>_0x518bd4['suggestion'])['filter'](_0x3538f8=>{const _0x56cee3=_0x58c7c9['_getAttributeKey'](_0x3538f8);return _0x50b29a['includes'](_0x56cee3);});if(_0x44c1be['length']){for(const _0x195218 of _0x44c1be)_0x5eab09['removeMarker'](_0x195218['getFirstMarker']());_0x2b8819=!0x0;}}return _0x2b8819;}['assureChains'](){const _0x171b15=this['editor']['plugins']['get']('TrackChangesEditing'),_0x490848=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3a7117;const _0x56bb00=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3a40e2=>{if(_0x3a40e2['data']['oldRange']||!_0x3a40e2['data']['newRange'])return null;if(!_0x3a40e2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x56f6c5}=_0x171b15['_splitMarkerName'](_0x3a40e2['name']);if(!_0x171b15['hasSuggestion'](_0x56f6c5))return null;const _0xc168a3=_0x171b15['getSuggestion'](_0x56f6c5);return _0x490848['includes'](_0xc168a3['data']['key']);})['map'](_0x5c2fcb=>{const {id:_0x100782}=_0x171b15['_splitMarkerName'](_0x5c2fcb['name']),_0x3cc5ea=_0x171b15['getSuggestion'](_0x100782);return _0x3a7117=_0x3cc5ea['attributes']['groupId'],_0x3cc5ea['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x56bb00['size'])return;const _0x5a9ba9=_0x171b15['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e02f=>'attribute'==_0x5e02f['type']&&_0x5e02f['data']&&_0x490848['includes'](_0x5e02f['data']['key'])&&_0x5e02f['attributes']['groupId']!=_0x3a7117)['map'](_0x2c961b=>({'listItem':_0x2c961b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2c961b['attributes']['groupId']})),_0xcb8232=new Set();for(const {groupId:_0x4f3b94,listItem:_0x562814}of _0x5a9ba9)_0x56bb00['has'](_0x562814)&&_0xcb8232['add'](_0x4f3b94);for(const _0x4fdbc9 of _0x171b15['getSuggestions']())_0xcb8232['has'](_0x4fdbc9['attributes']['groupId'])&&_0x4fdbc9['setAttribute']('groupId',_0x3a7117);}['_supportLegacySuggestions'](){const _0x27909b=this['editor'],_0x50c97d=_0x27909b['locale'],_0x4213c7=_0x27909b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4213c7['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x300615,_0x3f0769){const _0x4d5bfe=[];for(let _0xfbae11 of _0x300615)_0xfbae11['start']['nodeAfter']===_0xfbae11['end']['parent']&&(_0xfbae11=_0x27909b['model']['createRange'](_0x27909b['model']['createPositionAt'](_0xfbae11['start']['nodeAfter'],0x0))),_0x4d5bfe['push'](_0xfbae11);_0x27909b['model']['change'](_0x340be9=>{const _0xe9034f=_0x27909b['model']['document']['selection'],_0x30d926=Array['from'](_0xe9034f['getRanges']())['map'](_0x263837=>_0x5b3987['fromRange'](_0x263837));_0x340be9['setSelection'](_0x4d5bfe),_0x27909b['commands']['get'](_0x3f0769['commandName'])['refresh'](),_0x3f0769['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x27909b['execute'](_0x3f0769['commandName'],..._0x3f0769['commandParams']),_0x340be9['setSelection'](_0x30d926);for(const _0x7922d0 of _0x30d926)_0x7922d0['detach']();});}),_0x4213c7['descriptionFactory']['registerElementLabel'](function(_0x9de502){const _0x414df8=!_0x27909b['model']['schema']['isObject'](_0x9de502),_0x43014a=_0x9de502['previousSibling'],_0x4a6b44=_0x9de502['nextSibling'],_0x58b406=_0x9de502['getAttribute']('listItemId'),_0x10879c=!_0x43014a||_0x43014a['getAttribute']('listItemId')!==_0x58b406,_0x5b2f30=!_0x4a6b44||_0x4a6b44['getAttribute']('listItemId')!==_0x58b406;return _0x414df8&&Boolean(_0x58b406)&&_0x10879c&&_0x5b2f30;},_0x4d9fb8=>c(_0x50c97d,'ELEMENT_LIST_ITEM',_0x4d9fb8));}['_registerLegacyDescription'](){const _0x3cf95f=this['editor'],_0x3745aa=_0x3cf95f['locale'];function _0x4c882d(_0x120d68){const _0x2aa55f=_0x3cf95f['commands']['get']('bulletedList')['value'],_0x49012f=_0x3cf95f['commands']['get']('numberedList')['value'];return'numberedList'===_0x120d68?_0x2aa55f:_0x49012f;}_0x3cf95f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1cb89e){if('formatBlock'!=_0x1cb89e['type'])return;const {data:_0xc9db0e}=_0x1cb89e;if(!_0xc9db0e)return;let _0x3b0dbf,_0x590d18,_0x669b30,_0x464bda;switch(_0xc9db0e['commandName']){case'bulletedList':_0x669b30=_0xc9db0e['commandParams'][0x0]['forceValue'],_0x464bda=_0x4c882d(_0xc9db0e['commandName']),_0x3b0dbf=_0x669b30?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x464bda&&_0x3cf95f['config']['get']('list.multiBlock')||(_0x3b0dbf='*Change\x20to:*\x20%0'),_0x590d18={'type':'format','content':c(_0x3745aa,_0x3b0dbf,c(_0x3745aa,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x669b30=_0xc9db0e['commandParams'][0x0]['forceValue'],_0x464bda=_0x4c882d(_0xc9db0e['commandName']),_0x3b0dbf=_0x669b30?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x464bda&&_0x3cf95f['config']['get']('list.multiBlock')||(_0x3b0dbf='*Change\x20to:*\x20%0'),_0x590d18={'type':'format','content':c(_0x3745aa,_0x3b0dbf,c(_0x3745aa,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3b0dbf='*Indent:*\x20%0',_0x590d18={'type':'format','content':c(_0x3745aa,_0x3b0dbf,c(_0x3745aa,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3b0dbf=function(_0x115320){const _0x7ce263=_0x115320['getFirstRange']();let _0x39a09c=_0x7ce263['start']['nodeAfter'];for(;_0x39a09c&&_0x7ce263['containsItem'](_0x39a09c);){if(_0x39a09c['getAttribute']('listIndent')>0x0)return!0x1;_0x39a09c=_0x39a09c['nextSibling'];}return!0x0;}(_0x1cb89e)?c(_0x3745aa,'*Format:*\x20remove\x20from\x20%0',c(_0x3745aa,function(_0x4a22b0){return'ELEMENT_'+_0x4a22b0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1cb89e))):c(_0x3745aa,'*Outdent:*\x20%0',c(_0x3745aa,'ELEMENT_LIST_ITEM')),_0x590d18={'type':'format','content':_0x3b0dbf};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xc9db0e['multipleBlocks']&&(_0x3b0dbf='*Merge:*\x20%0',_0x590d18={'type':'deletion','content':c(_0x3745aa,_0x3b0dbf,c(_0x3745aa,'ELEMENT_LIST_ITEM'))});}return _0x590d18;});}}function Te(_0x380f55){let _0x5ea11f=_0x380f55['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5ea11f;){const _0x493591=_0x5ea11f['getAttribute']('listItemId');if(!_0x493591)return!0x1;if(_0x493591==_0x380f55['data']['newValue'])return'newValue';if(_0x493591==_0x380f55['data']['oldValue'])return'oldValue';_0x5ea11f=_0x5ea11f['previousSibling'];}return!0x1;}class Se extends _0xac175e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2205e0=this['editor']['config']['get']('list.properties'),_0xe80c28=this['editor']['plugins']['get']('TrackChangesEditing');_0x2205e0['styles']&&(_0xe80c28['enableDefaultAttributesIntegration']('listStyle'),_0xe80c28['registerBlockAttribute']('listStyle')),_0x2205e0['reversed']&&(_0xe80c28['enableDefaultAttributesIntegration']('listReversed'),_0xe80c28['registerBlockAttribute']('listReversed')),_0x2205e0['startIndex']&&(_0xe80c28['enableDefaultAttributesIntegration']('listStart'),_0xe80c28['registerBlockAttribute']('listStart'));const _0x3352d4={'type':'format','content':''};_0xe80c28['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x571528=this['editor']['locale'];_0xe80c28['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x571528,'FORMAT_LIST_REVERSED')),_0xe80c28['descriptionFactory']['registerDescriptionCallback'](_0x2fda17=>{const {data:_0x592ecf}=_0x2fda17;if(_0x592ecf&&'listReversed'==_0x592ecf['key'])return null==_0x592ecf['newValue']||0x0==_0x592ecf['newValue']&&null==_0x592ecf['oldValue']?_0x3352d4:void 0x0;}),_0xe80c28['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x571528,'FORMAT_LIST_START')),_0xe80c28['descriptionFactory']['registerDescriptionCallback'](_0x130888=>{const {data:_0x3bc539}=_0x130888;if(_0x3bc539&&'listStart'==_0x3bc539['key'])return null==_0x3bc539['newValue']||0x1==_0x3bc539['newValue']&&null==_0x3bc539['oldValue']?_0x3352d4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5bd628=>{if(_0x5bd628['batch']['isUndo'])return!0x1;let _0x179a4e=!0x1;const _0x42124f=_0xe80c28['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a57f9=>{const _0x28b874=_0xe80c28['_getAttributeKey'](_0x4a57f9);return'listStart'==_0x28b874||'listReversed'==_0x28b874;});for(const _0x344124 of _0x42124f){const _0x28ba01=_0x344124['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x28ba01||'customNumbered'==_0x28ba01)continue;_0xe80c28['_findSuggestions'](_0x344124['getFirstRange'](),'attribute')['find'](_0x332dff=>'listType'==_0xe80c28['_getAttributeKey'](_0x332dff['suggestion']))||(_0x5bd628['removeMarker'](_0x344124['getFirstMarker']()),_0x179a4e=!0x0);}return _0x179a4e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x34edea){const _0x28f8bf=this['editor']['locale'],{data:_0x43428f}=_0x34edea,_0x1d4d40={'type':'format','content':''};if(!_0x43428f||'listStyle'!=_0x43428f['key'])return;if(!_0x43428f['oldValue'])return'default'==_0x43428f['newValue']?_0x1d4d40:{'type':'format','content':''+c(_0x28f8bf,'*Set\x20format:*\x20%0',c(_0x28f8bf,this['_getTranslationKeyForListStyle'](_0x43428f['newValue'])))};if(!_0x43428f['newValue']){if('default'==_0x43428f['oldValue'])return _0x1d4d40;let _0x500e08=_0x34edea['head'];for(;_0x500e08;){if(_0x500e08['data']&&'listType'==_0x500e08['data']['key']&&_0x500e08['data']['newValue'])return _0x1d4d40;_0x500e08=_0x500e08['next'];}return{'type':'format','content':''+c(_0x28f8bf,'*Remove\x20format:*\x20%0',c(_0x28f8bf,this['_getTranslationKeyForListStyle'](_0x43428f['oldValue'])))};}if('default'!=_0x43428f['newValue'])return{'type':'format','content':''+c(_0x28f8bf,'*Set\x20format:*\x20%0',c(_0x28f8bf,this['_getTranslationKeyForListStyle'](_0x43428f['newValue'])))};let _0x7e2053=_0x34edea['head'];for(;_0x7e2053;){if(_0x7e2053['data']&&'listType'==_0x7e2053['data']['key']&&_0x7e2053['data']['newValue']&&_0x7e2053['data']['oldValue'])return _0x1d4d40;_0x7e2053=_0x7e2053['next'];}return{'type':'format','content':c(_0x28f8bf,'*Set\x20format:*\x20%0',c(_0x28f8bf,'ELEMENT_'+_0x34edea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4fbdc5=this['editor'],_0x28c34b=_0x4fbdc5['locale'];_0x4fbdc5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x121ddb=>{if('formatBlock'!=_0x121ddb['type'])return;const {data:_0xa948d3}=_0x121ddb;if(!_0xa948d3)return;let _0x25d3dc,_0x7318a;switch(_0xa948d3['commandName']){case'listStyle':_0x25d3dc='*Change\x20to:*\x20%0',_0x7318a={'type':'format','content':c(_0x28c34b,_0x25d3dc,c(_0x28c34b,this['_getTranslationKeyForListStyle'](_0xa948d3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x25d3dc=_0xa948d3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x7318a={'type':'format','content':c(_0x28c34b,_0x25d3dc)};break;case'listStart':_0x25d3dc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x7318a={'type':'format','content':c(_0x28c34b,_0x25d3dc,_0xa948d3['commandParams'][0x0]['startIndex'])};}return _0x7318a;});}['_getTranslationKeyForListStyle'](_0x252d9d){return'ELEMENT_'+function(_0x694f1b){if(_e['includes'](_0x694f1b))return'bulleted';if(Re['includes'](_0x694f1b))return'numbered';return null;}(_0x252d9d)['toUpperCase']()+'_LIST_'+_0x252d9d['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xac175e{['afterInit'](){const _0x3b3d91=this['editor'];_0x3b3d91['commands']['get']('emoji')&&_0x3b3d91['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0xac175e{static get['requires'](){return[_0x382035];}['init'](){const _0x4372f0=this['editor'],_0x71124f=_0x4372f0['plugins']['get']('TrackChangesEditing'),_0x3a9938=_0x4372f0['commands']['get']('enter');_0x71124f['enableCommand']('enter',()=>{_0x4372f0['model']['change'](_0x3eb388=>{const _0x1d99af=_0x4372f0['model']['document']['selection'],_0x4956b0=_0x1d99af['getFirstPosition'](),_0x470260=_0x5b3987['fromRange'](_0x1d99af['getFirstRange']());if(_0x3a9938['enterBlock'](_0x3eb388)){const _0x5815a0=_0x4372f0['model']['createPositionAt'](_0x4956b0['parent']['nextSibling'],0x0),_0x5def37=_0x3eb388['createRange'](_0x4956b0,_0x5815a0);_0x71124f['markInsertion'](_0x5def37);}else _0x3eb388['setSelection'](_0x3eb388['createRange'](_0x470260['end']));_0x470260['detach'](),_0x3a9938['fire']('afterExecute',{'writer':_0x3eb388});});}),_0x4372f0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x4372f0,'split'),{'priority':'high'}),_0x4372f0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1163aa,_0x61446e,_0x42e4ae)=>{const _0x15415d=_0x42e4ae['mapper']['markerNameToElements'](_0x61446e['markerName']);if(_0x15415d){for(const _0x202811 of _0x15415d)_0x202811['hasClass']('ck-suggestion-marker-split')&&(_0x42e4ae['mapper']['unbindElementFromMarkerName'](_0x202811,_0x61446e['markerName']),_0x42e4ae['writer']['remove'](_0x202811));}},{'priority':'high'}),_0x4372f0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3cc924,_0x566ece,_0x2a1ced)=>{_0x2a1ced['options']['showSuggestionHighlights']&&Fe(_0x4372f0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3cc924,_0x566ece,_0x2a1ced);},{'priority':'high'});}}class Z extends _0xac175e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3f878e=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f878e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3f878e['enableCommand']('findNext'),_0x3f878e['enableCommand']('findPrevious'),_0x3f878e['enableCommand']('replace'),_0x3f878e['enableCommand']('replaceAll');}['handleFindCommand'](_0x302049,_0x1aec67,_0x35aaa8={}){const _0x24510c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x302049(_0x203bef=>{let _0x4838d9=('string'==typeof _0x1aec67?_0x24510c['findByTextCallback'](_0x1aec67,_0x35aaa8):_0x1aec67)(_0x203bef);Array['isArray'](_0x4838d9)&&(_0x4838d9={'results':_0x4838d9,'searchText':'string'==typeof _0x1aec67?_0x1aec67:''});const _0x11bda5=_0x4838d9['results']['filter'](_0x2d8d91=>!0x1===this['_isInDeletionRange'](_0x2d8d91,_0x203bef['item']));return{..._0x4838d9,'results':_0x11bda5};},_0x35aaa8);}['_isInDeletionRange'](_0x45e56f,_0x26df05){const _0x26701a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26df05,_0x45e56f['start']),this['editor']['model']['createPositionAt'](_0x26df05,_0x45e56f['end']));for(const _0x44c699 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x26701a['getIntersection'](_0x44c699['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0xac175e{['afterInit'](){const _0x41c5e9=this['editor']['locale'],_0xeede97=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x34ca39,commandName:_0x1f930b}of ro)this['editor']['plugins']['has'](_0x34ca39)&&(_0xeede97['enableDefaultAttributesIntegration'](_0x1f930b),_0xeede97['registerInlineAttribute'](_0x1f930b));_0xeede97['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x41c5e9,'FORMAT_FONT_SIZE')),_0xeede97['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x41c5e9,'FORMAT_FONT_FAMILY')),_0xeede97['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x41c5e9,'FORMAT_FONT_COLOR')),_0xeede97['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x41c5e9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cb273=this['editor'],_0x17e9fd=_0x4cb273['locale'];_0x4cb273['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5931c3=>{const _0x8a1436=_0x17e9fd['t'];if('formatInline'!=_0x5931c3['type'])return;const {data:_0x452b3f}=_0x5931c3;if(null!=_0x452b3f){if('fontSize'==_0x452b3f['commandName']){const _0x475c88=_0x452b3f['commandParams'][0x0]['value'];if(_0x475c88){const _0xccc72=_0x8a1436(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3697df=>_0x3697df['model']==_0x475c88)['title'])['toLowerCase']();return{'type':'format','content':c(_0x17e9fd,'*Set\x20font\x20size:*\x20%0',_0xccc72)};}return{'type':'format','content':c(_0x17e9fd,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x452b3f['commandName']){const _0x1e401c=_0x452b3f['commandParams'][0x0]['value'];return _0x1e401c?{'type':'format','content':c(_0x17e9fd,'*Set\x20font\x20family:*\x20%0',_0x1e401c)}:{'type':'format','content':c(_0x17e9fd,'*Reset\x20font\x20family*')};}if('fontColor'==_0x452b3f['commandName']){const _0x5dd5da=_0x452b3f['commandParams'][0x0]['value'];if(_0x5dd5da){const _0x1d1ac3=_0x99d1a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x45488c=>_0x45488c['model']==_0x5dd5da);let _0x1146d6=_0x5dd5da,_0x272edf='';return _0x1d1ac3&&(_0x1146d6=_0x1d1ac3['label'],_0x272edf=_0x8a1436(_0x1146d6)['toLowerCase']()),{'type':'format','content':c(_0x17e9fd,'*Set\x20font\x20color:*\x20%0',_0x272edf)['trim'](),'color':{'value':_0x5dd5da,'title':_0x272edf||_0x1146d6}};}return{'type':'format','content':c(_0x17e9fd,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x452b3f['commandName']){const _0x40b906=_0x452b3f['commandParams'][0x0]['value'];if(_0x40b906){const _0x341ba3=_0x99d1a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5249bf=>_0x5249bf['model']==_0x40b906);let _0x512358=_0x40b906,_0x29224a='';return _0x341ba3&&(_0x512358=_0x341ba3['label'],_0x29224a=_0x8a1436(_0x512358)['toLowerCase']()),{'type':'format','content':c(_0x17e9fd,'*Set\x20font\x20background\x20color:*\x20%0',_0x29224a)['trim'](),'color':{'value':_0x40b906,'title':_0x29224a||_0x512358}};}return{'type':'format','content':c(_0x17e9fd,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0xac175e{['afterInit'](){const _0x25d164=this['editor'],_0x2292a3=_0x25d164['plugins']['get']('TrackChangesEditing'),_0x1a44fc=_0x25d164['commands']['get']('copyFormat'),_0x5bee3b=_0x25d164['commands']['get']('pasteFormat');_0x1a44fc&&_0x5bee3b&&(_0x2292a3['enableDefaultAttributesIntegration']('pasteFormat'),_0x2292a3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x19ece4=this['editor'],_0x48f5ad=_0x19ece4['locale'];_0x19ece4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ba395=>{if('formatBlock'!=_0x2ba395['type']&&'formatInline'!=_0x2ba395['type'])return;const {data:_0x40a516}=_0x2ba395;if(_0x40a516&&'pasteFormat'===_0x40a516['commandName']){const _0x3372a5=[],_0x23e384=_0x40a516['commandParams'][0x0];for(const [_0x1383bf,_0x56ebb7]of Object['entries'](_0x23e384))_0x3372a5['push'](so(_0x19ece4,_0x1383bf,_0x56ebb7));return _0x3372a5['length']?{'type':'format','content':c(_0x48f5ad,'*Set\x20format\x20to:*\x20%0',_0x3372a5['join'](',\x20'))}:{'type':'format','content':c(_0x48f5ad,'*Remove\x20all\x20formatting*')};}});}}function so(_0x54320d,_0x6d4178,_0x2c7e39){const _0x56f1ed=_0x54320d['locale']['t'],_0x443785=_0x6d4178['split'](/(?=[A-Z])/)['join']('\x20'),_0x1f79e2=_0x56f1ed(_0x443785['charAt'](0x0)['toUpperCase']()+_0x443785['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2c7e39)return _0x1f79e2;if('fontColor'===_0x6d4178||'fontBackgroundColor'===_0x6d4178){const _0x1c5e18=_0x99d1a(_0x54320d['config']['get']('fontColor.colors'))['find'](_0x5d7f1a=>_0x5d7f1a['model']==_0x2c7e39);return _0x1f79e2+'\x20('+(_0x1c5e18?_0x56f1ed(_0x1c5e18['label'])['toLowerCase']():_0x2c7e39)+')';}if('fontSize'===_0x6d4178&&isNaN(parseFloat(_0x2c7e39))){const _0x1549d7=_0x54320d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x54320d['config']['get']('fontSize.options'))['find'](_0x15df60=>_0x15df60['model']==_0x2c7e39);return _0x1f79e2+'\x20('+(_0x1549d7?_0x56f1ed(_0x1549d7['title'])['toLowerCase']():_0x2c7e39)+')';}return _0x1f79e2+'\x20('+_0x2c7e39+')';}class et extends _0xac175e{['_headingOptions'];['afterInit'](){const _0x5373f7=this['editor'];if(!_0x5373f7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5373f7['config']['get']('heading.options');const _0x54b159=_0x5373f7['locale'],_0x393b07=_0x5373f7['plugins']['get']('TrackChangesEditing');_0x393b07['enableDefaultAttributesIntegration']('heading');for(const _0x3fecfe of this['_headingOptions'])'paragraph'!=_0x3fecfe['model']&&_0x393b07['descriptionFactory']['registerElementLabel'](_0x3fecfe['model'],_0xc0f126=>{const _0x183382=this['_getHeadingLevel'](_0x3fecfe['model']);return null!==_0x183382?_0x1ce21c(_0xc0f126,_0x183382):_0x4c27f9(_0xc0f126,_0x3fecfe['title']);});function _0x1ce21c(_0x3db0bd,_0x5ab768){return c(_0x54b159,'ELEMENT_HEADING',[_0x3db0bd,_0x5ab768]);}function _0x4c27f9(_0x5551ec,_0x3c5d6e){return c(_0x54b159,'ELEMENT_HEADING_CUSTOM',[_0x5551ec,_0x3c5d6e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e75bc=this['editor'],_0x111631=_0x2e75bc['locale'];function _0x4c6e2d(_0x27136c,_0x617156){return c(_0x111631,'ELEMENT_HEADING_CUSTOM',[_0x27136c,_0x617156]);}_0x2e75bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4852e1=>{if('formatBlock'!=_0x4852e1['type'])return;const {data:_0x380827}=_0x4852e1;if(_0x380827&&'heading'==_0x380827['commandName']){const _0x326c95=_0x380827['commandParams'][0x0]['value'],_0x33a1d2=this['_getHeadingLevel'](_0x326c95);if(null!==_0x33a1d2)return{'type':'format','content':c(_0x111631,'*Change\x20to:*\x20%0',(_0x153da0=0x1,_0x3b89fe=_0x33a1d2,c(_0x111631,'ELEMENT_HEADING',[_0x153da0,_0x3b89fe])))};const _0xb2b500=this['_headingOptions']['find'](_0xe03931=>_0xe03931['model']===_0x326c95)['title'];return{'type':'format','content':c(_0x111631,'*Change\x20to:*\x20%0',_0x4c6e2d(0x1,_0xb2b500))};}var _0x153da0,_0x3b89fe;});}['_getHeadingLevel'](_0x212bc9){const _0x4a00f4=_0x212bc9['match'](/^heading(\d+)/);if(_0x4a00f4)return _0x4a00f4[0x1];const _0x91601a=this['_headingOptions']?.['find'](_0x55b240=>_0x55b240['model']==_0x212bc9);if(_0x91601a&&_0x91601a['view']){const _0x1b986f=_0x91601a['view'],_0x3b3f16=(_0x1b986f['name']??_0x1b986f)['match'](/^h(\d+)/);if(_0x3b3f16)return _0x3b3f16[0x1];}return null;}}class nt extends _0xac175e{['afterInit'](){const _0x1f328a=this['editor'];if(!_0x1f328a['plugins']['has']('HighlightEditing'))return;const _0x57e07b=_0x1f328a['plugins']['get']('TrackChangesEditing'),_0x2814fe=_0x1f328a['locale'];_0x57e07b['enableDefaultAttributesIntegration']('highlight'),_0x57e07b['registerInlineAttribute']('highlight'),_0x57e07b['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x2814fe,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19d35d=this['editor'],_0x57403c=_0x19d35d['locale'];_0x19d35d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x478496=>{if('formatInline'!=_0x478496['type'])return;const {data:_0x2ede30}=_0x478496;if(_0x2ede30&&'highlight'==_0x2ede30['commandName']){const _0x113ab0=_0x57403c['t'],_0x4523a0=_0x2ede30['commandParams'][0x0]['value'];if(_0x4523a0){const _0x1935dc=_0x19d35d['config']['get']('highlight.options')['find'](_0x4d7332=>_0x4d7332['model']==_0x4523a0),_0x3ea2c1=_0x113ab0(_0x1935dc['title'])['toLowerCase']();return{'type':'format','content':c(_0x57403c,'*Set\x20highlight:*\x20%0',_0x3ea2c1),'color':{'value':_0x1935dc['color'],'title':_0x1935dc['title']}};}return{'type':'format','content':c(_0x57403c,'*Remove\x20highlight*',c(_0x57403c,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0xac175e{['afterInit'](){const _0x459f33=this['editor'];if(!_0x459f33['plugins']['has']('HorizontalLineEditing'))return;_0x459f33['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x310b44=_0x459f33['plugins']['get']('TrackChangesEditing'),_0x157c07=_0x459f33['locale'];_0x310b44['descriptionFactory']['registerElementLabel']('horizontalLine',_0x214683=>c(_0x157c07,'ELEMENT_HORIZONTAL_LINE',_0x214683)),_0x459f33['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1bc274,{writer:_0xc064d0,options:_0x32f6fa})=>{if(!_0x32f6fa['showSuggestionHighlights'])return null;const _0x305a35=_0xc064d0['createContainerElement']('div'),_0x171beb=_0xc064d0['createEmptyElement']('hr');return _0xc064d0['addClass']('ck-horizontal-line',_0x305a35),_0xc064d0['insert'](_0xc064d0['createPositionAt'](_0x305a35,0x0),_0x171beb),_0x305a35;},'converterPriority':'high'});}}class ot extends _0xac175e{['afterInit'](){const _0x2dfb22=this['editor'];if(!_0x2dfb22['plugins']['has']('HtmlEmbed'))return;const _0x5679b4=_0x2dfb22['plugins']['get']('TrackChangesEditing'),_0x1a3d44=_0x2dfb22['locale'];_0x5679b4['descriptionFactory']['registerElementLabel']('rawHtml',_0x31a1aa=>c(_0x1a3d44,'ELEMENT_HTML_EMBED',_0x31a1aa)),_0x5679b4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5679b4['registerBlockAttribute']('value'),_0x5679b4['descriptionFactory']['registerDescriptionCallback'](_0x4d3aa1=>{if('attribute'!=_0x4d3aa1['type'])return;const {data:_0x2b9df4}=_0x4d3aa1;if(_0x2b9df4&&'value'==_0x2b9df4['key']&&_0x4d3aa1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x31d8e2=c(_0x1a3d44,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1a3d44,'*Change\x20%0\x20content*',_0x31d8e2)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f1e7a=this['editor'],_0x5b4dbb=_0x2f1e7a['locale'];_0x2f1e7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x109739=>{if('formatBlock'!=_0x109739['type'])return;const {data:_0x58175a}=_0x109739;if(_0x58175a&&'htmlEmbed'==_0x58175a['commandName']){const _0x2744b3=c(_0x5b4dbb,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5b4dbb,'*Change\x20%0\x20content*',_0x2744b3)};}});}}class rt extends _0xac175e{['afterInit'](){const _0x4f2c99=this['editor'];if(!_0x4f2c99['plugins']['has']('ImageEditing'))return;const _0x5890f4=_0x4f2c99['plugins']['get']('TrackChangesEditing'),_0x5368=_0x4f2c99['plugins']['get']('ImageUtils'),_0x551795=_0x4f2c99['locale'];_0x5890f4['enableCommand']('insertImage'),_0x5890f4['descriptionFactory']['registerElementLabel']('imageBlock',_0x4d1735=>c(_0x551795,'ELEMENT_IMAGE',_0x4d1735)),_0x5890f4['descriptionFactory']['registerElementLabel']('imageInline',_0x4f5ad9=>c(_0x551795,'ELEMENT_INLINE_IMAGE',_0x4f5ad9)),_0x5890f4['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x551795,'ELEMENT_CAPTION')),_0x4f2c99['plugins']['has']('ImageUploadEditing')&&_0x5890f4['enableCommand']('uploadImage'),_0x4f2c99['plugins']['has']('ImageBlockEditing')&&_0x4f2c99['plugins']['has']('ImageInlineEditing')&&(_0x5890f4['enableCommand']('imageTypeInline',(_0x12a637,_0x5aa758)=>{const _0x582cc9=_0x5368['getClosestSelectedImageElement'](_0x4f2c99['model']['document']['selection']);_0x4f2c99['model']['change'](()=>{_0x5890f4['markBlockFormat'](_0x582cc9,{'commandName':'imageTypeInline','commandParams':[_0x5aa758]},[],'convertBlockImageToInline');});}),_0x5890f4['enableCommand']('imageTypeBlock',(_0x1fbd3f,_0x3e3835)=>{_0x4f2c99['model']['change'](_0x24920d=>{let _0x485764=_0x5368['getClosestSelectedImageElement'](_0x4f2c99['model']['document']['selection']),_0x15c7e3=_0x24920d['createRangeOn'](_0x485764);const _0xb0c577=_0x11b1a2['fromPosition'](_0x15c7e3['start'],'toPrevious'),_0x2d8837=_0x11b1a2['fromPosition'](_0x15c7e3['end'],'toNext');_0x5890f4['forceDefaultExecution'](()=>_0x1fbd3f(_0x3e3835)),_0x485764=_0x5368['getClosestSelectedImageElement'](_0x4f2c99['model']['document']['selection']),_0x15c7e3=_0x24920d['createRangeOn'](_0x485764);const _0xde5c41=_0x24920d['createRange'](_0xb0c577,_0x2d8837);_0xb0c577['detach'](),_0x2d8837['detach'](),_0x5890f4['markBlockFormat'](_0x485764,{'commandName':'imageTypeInline','commandParams':[_0x3e3835]},[],'convertInlineImageToBlock'),_0xde5c41['start']['isBefore'](_0x15c7e3['start'])&&_0x5890f4['markInsertion'](_0x24920d['createRange'](_0xde5c41['start'],_0x15c7e3['start']),'convertInlineImageToBlock'),_0x15c7e3['end']['isBefore'](_0xde5c41['end'])&&_0x5890f4['markInsertion'](_0x24920d['createRange'](_0x15c7e3['end'],_0xde5c41['end']),'convertInlineImageToBlock');});}),_0x5890f4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5890f4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5890f4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5890f4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5890f4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5890f4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3fc8bd])=>{const _0x1b58f3=_0x5890f4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4cfe44=_0x3fc8bd['start'],_0x1c2dcf=_0x3fc8bd['end'];const _0x19e263=_0x4f2c99['model']['schema']['getNearestSelectionRange'](_0x4cfe44,'backward'),_0x50e88a=_0x4f2c99['model']['schema']['getNearestSelectionRange'](_0x1c2dcf,'forward');_0x19e263['isCollapsed']&&(_0x4cfe44=_0x19e263['start']),_0x50e88a['isCollapsed']&&(_0x1c2dcf=_0x50e88a['end']),_0x1b58f3([_0x4f2c99['model']['createRange'](_0x4cfe44,_0x1c2dcf)]);}),_0x5890f4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2232d5),_0x5890f4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2232d5)),_0x4f2c99['plugins']['has']('ImageCaptionEditing')&&(_0x5890f4['enableCommand']('toggleImageCaption',(_0x2d06b6,_0xea4f07)=>{const _0x481b34=_0x4f2c99['plugins']['get']('ImageCaptionUtils');let _0x3b9582=_0x5368['getClosestSelectedImageElement'](_0x4f2c99['model']['document']['selection']),_0x35b5c0=_0x481b34['getCaptionFromImageModelElement'](_0x3b9582);_0x4f2c99['model']['change'](()=>{if(_0x35b5c0)return void _0x5890f4['markDeletion'](_0x4f2c99['model']['createRangeOn'](_0x35b5c0));const _0x3d7a4c=_0x5368['isBlockImage'](_0x3b9582);_0x2d06b6(_0xea4f07),_0x3b9582=_0x5368['getClosestSelectedImageElement'](_0x4f2c99['model']['document']['selection']),_0x35b5c0=_0x481b34['getCaptionFromImageModelElement'](_0x3b9582),_0x5890f4['markInsertion'](_0x4f2c99['model']['createRangeOn'](_0x35b5c0),_0x3d7a4c?null:'imageCaption');});}),_0x5890f4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2232d5));const _0x39778c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31c3ee(_0x2ebb08,_0x4f53da){const _0x4014a0=_0x39778c['findIndex'](({type:_0x44b3fc,subType:_0x36ae8a})=>_0x2ebb08['type']==_0x44b3fc&&_0x2ebb08['subType']==_0x36ae8a),_0x19033a=_0x39778c['findIndex'](({type:_0x528867,subType:_0x1e8c5b})=>_0x4f53da['type']==_0x528867&&_0x4f53da['subType']==_0x1e8c5b);if(_0x4014a0<0x0||_0x19033a<0x0)return!0x1;const _0x1c6a88=_0x2ebb08['getFirstRange'](),_0x55ddf1=_0x4f53da['getFirstRange']();if((0x0==_0x4014a0||0x1==_0x4014a0)&&0x2==_0x19033a&&_0x1c6a88['isIntersecting'](_0x55ddf1))return!0x0;if(0x2==_0x4014a0&&0x3==_0x19033a){const _0x10a5b4=_0x5890f4['_findSuggestions'](_0x1c6a88,'insertion')['filter'](({suggestion:_0x876314,meta:_0x53888a})=>_0x53888a['isOwn']&&'convertInlineImageToBlock'==_0x876314['subType']);if(_0x10a5b4['length']>0x1&&_0x55ddf1['end']['isEqual'](_0x1c6a88['start']))return!0x0;if(0x1==_0x10a5b4['length']&&(_0x1c6a88['start']['isEqual'](_0x55ddf1['end'])||_0x1c6a88['end']['isEqual'](_0x55ddf1['start'])))return!0x0;}if(0x3==_0x4014a0&&0x3==_0x19033a&&_0x1c6a88['start']['isBefore'](_0x55ddf1['start'])){const _0x1bbe46=_0x1c6a88['end']['nodeAfter'],_0x33f265=_0x55ddf1['start']['nodeBefore'];return _0x5368['isBlockImage'](_0x1bbe46)&&_0x1bbe46===_0x33f265;}return!0x1;}function _0x2232d5(_0x74c99,_0x19d493){return _0x31c3ee(_0x74c99,_0x19d493)?[_0x74c99,_0x19d493]:_0x31c3ee(_0x19d493,_0x74c99)?[_0x19d493,_0x74c99]:null;}_0x4f2c99['plugins']['has']('ImageResize')&&(_0x5890f4['enableDefaultAttributesIntegration']('resizeImage'),_0x5890f4['registerBlockAttribute']('resizedWidth'),_0x5890f4['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x551795,'FORMAT_IMAGE_SIZE'))),_0x4f2c99['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5890f4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5890f4['registerBlockAttribute']('alt')),_0x4f2c99['plugins']['has']('PictureEditing')&&(_0x5890f4['registerBlockAttribute']('sources'),_0x5890f4['descriptionFactory']['registerDescriptionCallback'](_0x4dde87=>{if('attribute'!=_0x4dde87['type'])return;const {data:_0x210b9b}=_0x4dde87;return _0x210b9b&&'sources'==_0x210b9b['key']?{'type':'format','content':''}:void 0x0;})),_0x4f2c99['plugins']['has']('ImageSizeAttributes')&&(_0x5890f4['registerBlockAttribute']('width'),_0x5890f4['registerBlockAttribute']('height'),_0x5890f4['descriptionFactory']['registerDescriptionCallback'](_0xc7ed31=>{if('attribute'!=_0xc7ed31['type'])return;const {data:_0x2340a9}=_0xc7ed31;return!_0x2340a9||'width'!=_0x2340a9['key']&&'height'!=_0x2340a9['key']?void 0x0:{'type':'format','content':''};})),_0x5890f4['descriptionFactory']['registerDescriptionCallback'](_0x46291c=>{if(!!_0x39778c['find'](({type:_0x493a74,subType:_0x2ca289})=>_0x46291c['type']==_0x493a74&&_0x46291c['subType']==_0x2ca289))return _0x46291c['previous']?{}:void 0x0;}),_0x5890f4['descriptionFactory']['registerDescriptionCallback'](_0x388557=>{if('insertion'==_0x388557['type']||'deletion'==_0x388557['type']){const _0x592f9a=_0x388557['getContainedElement']();if(_0x592f9a&&_0x592f9a['is']('element','caption'))return{'type':'insertion'==_0x388557['type']?'addObject':'removeObject','element':_0x592f9a,'quantity':0x1};}}),_0x5890f4['descriptionFactory']['registerDescriptionCallback'](_0xb8059d=>'formatBlock'==_0xb8059d['type']&&'convertInlineImageToBlock'==_0xb8059d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xb8059d['type']&&'convertBlockImageToInline'==_0xb8059d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5890f4['descriptionFactory']['registerDescriptionCallback'](_0x5794c6=>{if('attribute'!=_0x5794c6['type'])return;const {data:_0x3726c6}=_0x5794c6;if(!_0x3726c6||'alt'!=_0x3726c6['key'])return;const _0x4cbc3a=_0x3726c6['newValue'];return _0x4cbc3a?{'type':'format','content':c(_0x551795,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4cbc3a+'\x22')}:{'type':'format','content':c(_0x551795,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x389a36=this['editor'],_0x5bc40b=_0x389a36['locale'];_0x389a36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45aedf=>{if('formatBlock'!=_0x45aedf['type']&&'formatInline'!=_0x45aedf['type'])return;const {data:_0xe29aca}=_0x45aedf;if(_0xe29aca){if('imageTextAlternative'==_0xe29aca['commandName']){const _0x153d87=_0xe29aca['commandParams'][0x0]['newValue'];return _0x153d87?{'type':'format','content':c(_0x5bc40b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x153d87+'\x22')}:{'type':'format','content':c(_0x5bc40b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xe29aca['commandName']){const _0x56afe3=_0xe29aca['commandParams'][0x0]['width'];return _0x56afe3?{'type':'format','content':c(_0x5bc40b,'*Set\x20image\x20width:*\x20%0',_0x56afe3)}:{'type':'format','content':c(_0x5bc40b,'*Reset\x20image\x20width*')};}}});}}class at extends _0xac175e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x432582=this['editor']['locale'],_0x39b270=this['editor']['plugins']['get']('TrackChangesEditing');_0x39b270['enableDefaultAttributesIntegration']('replaceImageSource'),_0x39b270['registerBlockAttribute']('src'),_0x39b270['descriptionFactory']['registerDescriptionCallback'](_0x99d32c=>{if('attribute'!=_0x99d32c['type'])return;const {data:_0x436622}=_0x99d32c;return _0x436622&&'src'==_0x436622['key']?_0x436622['newValue']&&_0x436622['oldValue']?{'type':'format','content':c(_0x432582,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x50d9cc=this['editor']['plugins']['get']('TrackChangesEditing');_0x50d9cc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x50d9cc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50d9cc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x50d9cc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c1fe1=this['editor'],_0x49f0fb=_0x2c1fe1['locale'];_0x2c1fe1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a7ebb=>{if('formatBlock'!=_0x5a7ebb['type']&&'formatInline'!=_0x5a7ebb['type'])return;const {data:_0x4e94db}=_0x5a7ebb;if(!_0x4e94db||'replaceImageSource'!=_0x4e94db['commandName'])return;return{'type':'format','content':c(_0x49f0fb,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0xac175e{['afterInit'](){const _0xcde50c=this['editor'];if(!_0xcde50c['plugins']['has']('ImageStyleEditing'))return;const _0x1c16d9=_0xcde50c['plugins']['get']('TrackChangesEditing'),_0x3fe13d=_0xcde50c['plugins']['get']('ImageUtils'),_0x3e1f58={};_0x1c16d9['enableCommand']('imageStyle',(_0x3f8507,_0x3be3fb)=>{const _0x412f98=_0xcde50c['plugins']['get']('Users')['me'],_0x4a2bb6=_0xcde50c['commands']['get']('imageStyle');let _0x147278=_0x3fe13d['getClosestSelectedImageElement'](_0xcde50c['model']['document']['selection']),_0x39c732=_0xcde50c['model']['createRangeOn'](_0x147278),_0x7708b5=_0x4a2bb6['value'];if(_0x7708b5==_0x3be3fb['value'])return;const _0x24a32e={'commandName':'imageStyle','commandParams':[_0x3be3fb],'formatGroupId':_0xbf3332()};_0xcde50c['model']['change'](()=>{if(_0x1c16d9['getSuggestions']()['filter'](_0x32d3ca=>_0x32d3ca['isInContent']&&_0x412f98==_0x32d3ca['author']&&('formatBlock'==_0x32d3ca['type']||'formatInline'==_0x32d3ca['type'])&&('imageStylePreApply'==_0x32d3ca['subType']||'imageStylePostApply'==_0x32d3ca['subType'])&&_0x32d3ca['getFirstRange']()['isEqual'](_0x39c732))['forEach'](_0x173284=>_0x1c16d9['discardSuggestion'](_0x173284['head'])),_0x147278=_0x3fe13d['getClosestSelectedImageElement'](_0xcde50c['model']['document']['selection']),_0x39c732=_0xcde50c['model']['createRangeOn'](_0x147278),_0x4a2bb6['refresh'](),_0xcde50c['commands']['get']('imageTypeInline')['refresh'](),_0xcde50c['commands']['get']('imageTypeBlock')['refresh'](),_0x7708b5=_0x4a2bb6['value'],_0x7708b5!=_0x3be3fb['value'])return _0x3fe13d['isInlineImage'](_0x147278)&&_0x4a2bb6['shouldConvertImageType'](_0x3be3fb['value'],_0x147278)?(_0x3f8507({..._0x3be3fb,'setImageSizes':!0x1}),_0x147278=_0x3fe13d['getClosestSelectedImageElement'](_0xcde50c['model']['document']['selection']),void _0x1c16d9['markBlockFormat'](_0x147278,{..._0x24a32e,'commandReversedParams':[{'value':_0x7708b5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3fe13d['isBlockImage'](_0x147278)?_0x1c16d9['markBlockFormat'](_0x147278,_0x24a32e,[],'imageStylePostApply'):_0x1c16d9['markInlineFormat'](_0x39c732,_0x24a32e,'imageStylePostApply'));});});for(const _0x3ac8db of _0xcde50c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3e1f58[_0x3ac8db['name']]=_0x3ac8db['title']['toLowerCase']();_0x1c16d9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1c16d9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1c16d9['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1c16d9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x29da19])=>{_0x3fe13d['setImageNaturalSizeAttributes'](_0x29da19['getContainedElement']());}),_0x1c16d9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x194372,_0x51ee29)=>{_0x1c16d9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x194372,{'commandName':_0x51ee29['commandName'],'commandParams':_0x51ee29['commandReversedParams']});}),_0x1c16d9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5e93b7,_0x2ee694){if(_0xe8a738(_0x5e93b7,_0x2ee694))return[_0x5e93b7,_0x2ee694];if(_0xe8a738(_0x2ee694,_0x5e93b7))return[_0x2ee694,_0x5e93b7];return null;});const _0x2f3c07=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xe8a738(_0x3899fb,_0x26c0e5){const _0x2ac1ea=_0x2f3c07['findIndex'](({type:_0x4d7f97,subType:_0x5e00e1})=>_0x3899fb['type']==_0x4d7f97&&_0x3899fb['subType']==_0x5e00e1),_0x1fdc61=_0x2f3c07['findIndex'](({type:_0x28977e,subType:_0x2f5399})=>_0x26c0e5['type']==_0x28977e&&_0x26c0e5['subType']==_0x2f5399);if(_0x2ac1ea<0x0||_0x1fdc61<0x0)return!0x1;const _0x5a1f4a=_0x3899fb['getFirstRange'](),_0xc82cff=_0x26c0e5['getFirstRange']();if((0x0==_0x2ac1ea||0x1==_0x2ac1ea)&&0x2==_0x1fdc61&&_0x5a1f4a['isIntersecting'](_0xc82cff))return!0x0;if(0x2==_0x2ac1ea&&0x3==_0x1fdc61){const _0x57b7a7=_0x1c16d9['_findSuggestions'](_0x5a1f4a,'insertion')['filter'](({suggestion:_0xb807fd,meta:_0x2f1d7a})=>_0x2f1d7a['isOwn']&&'convertInlineImageToBlock'==_0xb807fd['subType']);if(_0x57b7a7['length']>0x1&&_0xc82cff['end']['isEqual'](_0x5a1f4a['start']))return!0x0;if(0x1==_0x57b7a7['length']&&(_0x5a1f4a['start']['isEqual'](_0xc82cff['end'])||_0x5a1f4a['end']['isEqual'](_0xc82cff['start'])))return!0x0;}if(0x3==_0x2ac1ea&&0x3==_0x1fdc61&&_0x5a1f4a['start']['isBefore'](_0xc82cff['start'])){const _0x288368=_0x5a1f4a['end']['nodeAfter'],_0x353910=_0xc82cff['start']['nodeBefore'];return _0x3fe13d['isBlockImage'](_0x288368)&&_0x288368===_0x353910;}return!0x1;}_0xcde50c['model']['document']['registerPostFixer'](()=>{let _0x542629=!0x1;const _0x341a5a=Array['from'](_0xcde50c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x287ad0,data:_0x111642}of _0x341a5a){const {group:_0x12a556,type:_0x138d45,subType:_0x413817,id:_0x1e613c}=_0x1c16d9['_splitMarkerName'](_0x287ad0);if('suggestion'==_0x12a556&&_0x1c16d9['hasSuggestion'](_0x1e613c)){if('formatBlock'==_0x138d45&&('imageStylePreApply'==_0x413817||'imageStylePostApply'==_0x413817)){const _0x25e897=_0x1c16d9['getSuggestion'](_0x1e613c);if(_0x111642['newRange']){const _0x3b3b00=_0x25e897['getFirstRange']()['getContainedElement']();if(_0x3fe13d['isBlockImage'](_0x3b3b00))continue;_0x1c16d9['discardSuggestion'](_0x25e897),_0x542629=!0x0;}}if('insertion'==_0x138d45&&'imageCaption'==_0x413817&&!_0x111642['newRange']){const _0x55fb76=_0x1c16d9['getSuggestion'](_0x1e613c);_0x55fb76['next']&&_0x55fb76['next']['isInContent']&&(_0x1c16d9['discardSuggestion'](_0x55fb76['next']),_0x542629=!0x0);}}}return _0x542629;}),this['_registerLegacyDescription'](_0x3e1f58);}['_registerLegacyDescription'](_0x5b1aed){const _0x3901a5=this['editor'],_0x6d0b30=_0x3901a5['locale'];_0x3901a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bd467=>{if('formatBlock'!=_0x2bd467['type']&&'formatInline'!=_0x2bd467['type'])return;const {data:_0xf87ef4}=_0x2bd467;if(!_0xf87ef4||'imageStyle'!=_0xf87ef4['commandName'])return;const _0x5f57c9=_0xf87ef4['commandParams'][0x0]['value'];return _0x3018fd('side'===_0x5f57c9?c(_0x6d0b30,'FORMAT_SIDE_IMAGE'):_0x5b1aed[_0x5f57c9]||_0x5f57c9);function _0x3018fd(_0x5a3213){return{'type':'format','content':c(_0x6d0b30,'*Format:*\x20%0',_0x5a3213)};}});}}class ut extends _0xac175e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x223466){super(_0x223466),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x530bb9=this['editor'],_0x2b5ae2=_0x530bb9['commands']['get']('importWord'),_0x5790a3=_0x530bb9['commands']['get']('trackChanges');_0x2b5ae2&&(_0x2b5ae2['on']('execute',(_0x19edb3,[,_0x133ace])=>{this['_trackChangesValueDuringImport']=_0x5790a3['value'],_0x133ace['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2b5ae2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2b5ae2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5790a3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x530bb9['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1d42d6,_0x2a78b3){const {suggestions:_0x365818}=_0x2a78b3,_0x4555cf=this['editor']['commands']['get']('trackChanges'),_0x3b4a79=_0x4555cf['value'];this['_trackChangesValueDuringImport']!==_0x3b4a79&&(_0x4555cf['execute'](),this['_trackChangesExecuted']=!0x0),_0x365818&&_0x365818['forEach'](({id:_0x5e11bf,type:_0x3cfc17,author:_0x874f35,created_at:_0x1a17a6})=>{const _0x263a92={'id':_0x5e11bf,'type':_0x3cfc17,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x874f35,'createdAt':_0x1a17a6?new Date(_0x1a17a6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x263a92);});}}class ft extends _0xac175e{['afterInit'](){const _0x125e1d=this['editor'],_0x53b4b7=_0x125e1d['plugins']['get']('TrackChangesEditing');if(_0x125e1d['plugins']['has']('IndentEditing')&&(_0x53b4b7['enableCommand']('indent'),_0x53b4b7['enableCommand']('outdent')),_0x125e1d['plugins']['has']('IndentBlock')){for(const _0x3b1449 of['indentBlock','outdentBlock'])_0x53b4b7['enableDefaultAttributesIntegration'](_0x3b1449);}const _0x4c2814=_0x125e1d['locale'];_0x53b4b7['registerBlockAttribute']('blockIndent'),_0x53b4b7['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x4c2814,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x435a60=this['editor'],_0x55882d=_0x435a60['locale'],_0x75e728=_0x435a60['plugins']['get']('TrackChangesEditing');_0x75e728['descriptionFactory']['registerDescriptionCallback'](_0x27f2c5=>{if('formatBlock'!=_0x27f2c5['type'])return;const {data:_0x5b610a}=_0x27f2c5;if(!_0x5b610a)return;if('indentBlock'!=_0x5b610a['commandName']&&'outdentBlock'!=_0x5b610a['commandName'])return;const _0x559754=_0x27f2c5['getItems']()[0x0],_0x52331d=_0x75e728['descriptionFactory']['getItemLabel'](_0x559754);return'indentBlock'==_0x5b610a['commandName']?{'type':'format','content':c(_0x55882d,'*Indent:*\x20%0',_0x52331d)}:'outdentBlock'==_0x5b610a['commandName']?{'type':'format','content':c(_0x55882d,'*Outdent:*\x20%0',_0x52331d)}:void 0x0;});}}class ht extends _0xac175e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0xac175e{['afterInit'](){const _0x3cecba=this['editor'];if(!_0x3cecba['plugins']['has']('LinkEditing'))return;const _0x23497e=_0x3cecba['plugins']['get']('TrackChangesEditing'),_0x139d1b=_0x3cecba['commands']['get']('link');_0x23497e['enableDefaultAttributesIntegration']('link'),_0x23497e['enableDefaultAttributesIntegration']('unlink'),_0x23497e['registerInlineAttribute']('linkHref');for(const _0x22d300 of _0x139d1b['manualDecorators'])_0x23497e['registerInlineAttribute'](_0x22d300['id']),_0x23497e['descriptionFactory']['registerAttributeLabel'](_0x22d300['id'],'link\x20('+_0x22d300['label']['toLowerCase']()+')');_0x23497e['descriptionFactory']['registerDescriptionCallback'](_0x4cc868=>{if('attribute'!=_0x4cc868['type'])return;const {data:_0x54cdc8}=_0x4cc868;if(!_0x54cdc8||'linkHref'!=_0x54cdc8['key'])return;const _0x3f6431=_0x54cdc8['newValue'],_0x5c8e01=_0x3cecba['locale'];return{'type':'format','content':null==_0x3f6431?c(_0x5c8e01,'*Remove\x20link*'):c(_0x5c8e01,'*Set\x20link:*\x20%0','\x22'+_0x3f6431+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x373b6d=this['editor'],_0x1fb7ca=_0x373b6d['locale'];_0x373b6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x243e8d=>{if('formatInline'!=_0x243e8d['type'])return;const {data:_0x5c1ca6}=_0x243e8d;if(_0x5c1ca6){if('link'==_0x5c1ca6['commandName']){const _0x594155=_0x5c1ca6['commandParams'][0x0];return{'type':'format','content':c(_0x1fb7ca,'*Set\x20link:*\x20%0','\x22'+_0x594155+'\x22')};}return'unlink'==_0x5c1ca6['commandName']?{'type':'format','content':c(_0x1fb7ca,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0xac175e{['afterInit'](){const _0x32a82c=this['editor'],_0x659ab=_0x32a82c['locale'];if(!_0x32a82c['plugins']['has']('LegacyListEditing'))return;const _0x7075b2=_0x32a82c['plugins']['get']('TrackChangesEditing'),_0x47795c=_0x32a82c['plugins']['has']('LegacyTodoListEditing');function _0x4f7d61(_0x2f990e){return()=>{const _0x2a751b=_0x32a82c['model']['document']['selection'],_0x472a49=_0x32a82c['commands']['get'](_0x2f990e);if(_0x472a49['value'])return void _0x32a82c['execute']('paragraph',{});const _0x18acf0=_0x2f990e['slice'](0x0,-0x4),_0x56f055=function(_0x64a748,_0x4c5095,_0x4e71cc){let _0x54b216=Array['from'](_0x64a748)['filter'](_0x8a7612=>function(_0x15e542,_0x9fa6ec){return _0x9fa6ec['checkChild'](_0x15e542['parent'],'listItem')&&!_0x9fa6ec['isObject'](_0x15e542);}(_0x8a7612,_0x4e71cc));_0x54b216=_0x54b216['filter'](_0x52e68a=>!_0x52e68a['is']('element','listItem')||_0x52e68a['getAttribute']('listType')!=_0x4c5095);const _0x3c14ce=new Set();for(const _0x2c1333 of _0x54b216)_0x2c1333['is']('element','listItem')?_0x3c14ce['add'](Le(_0x2c1333)):_0x3c14ce['add'](_0x2c1333);return Array['from'](_0x3c14ce);}(_0x2a751b['getSelectedBlocks'](),_0x18acf0,_0x32a82c['model']['schema']);_0x32a82c['model']['change'](()=>{for(const _0x3010b2 of _0x56f055)_0x7075b2['markBlockFormat'](_0x3010b2,{'commandName':_0x2f990e,'commandParams':[{'forceValue':!_0x472a49['value']}],'formatGroupId':'blockName'},Ee(_0x3010b2));});};}function _0x20acf0(_0x44ef74){return()=>{const _0x1ed0f1=function(_0xe4b6a1){let _0x2ac072=Array['from'](_0xe4b6a1);const _0x476295=_0x2ac072['findIndex'](_0x1b08e4=>'listItem'!=_0x1b08e4['name']);return _0x476295>-0x1&&(_0x2ac072=_0x2ac072['slice'](0x0,_0x476295)),_0x2ac072;}(_0x32a82c['model']['document']['selection']['getSelectedBlocks']()),_0x4bf06b=_0x32a82c['model']['createRange'](_0x32a82c['model']['createPositionAt'](_0x1ed0f1[0x0],'before'),_0x32a82c['model']['createPositionAt'](_0x1ed0f1[_0x1ed0f1['length']-0x1],'end'));_0x32a82c['model']['change'](()=>{_0x7075b2['markBlockFormat'](_0x4bf06b,{'commandName':_0x44ef74,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2b2642){const _0x51f5b8=new Set();for(const _0x4e595d of _0x2b2642){let _0x38a4ad=_0x4e595d['nextSibling'];for(;_0x38a4ad&&_0x38a4ad['getAttribute']('listIndent')>_0x4e595d['getAttribute']('listIndent');)_0x51f5b8['add'](_0x38a4ad),_0x38a4ad=_0x38a4ad['nextSibling'];}return Array['from'](_0x51f5b8);}(_0x1ed0f1));});};}_0x7075b2['enableCommand']('numberedList',_0x4f7d61('numberedList')),_0x7075b2['enableCommand']('bulletedList',_0x4f7d61('bulletedList')),_0x47795c&&_0x7075b2['enableCommand']('todoList',_0x4f7d61('todoList')),_0x7075b2['enableCommand']('indentList',_0x20acf0('indentList')),_0x7075b2['enableCommand']('outdentList',_0x20acf0('outdentList')),_0x47795c&&_0x7075b2['enableCommand']('checkTodoList',()=>{const _0x5ab0ec=_0x32a82c['commands']['get']('checkTodoList'),_0x31db51=Array['from'](_0x5ab0ec['_selectedElements']);_0x31db51['filter'](_0x438add=>_0x438add['getAttribute']('todoListChecked')!=_0x5ab0ec['value']),_0x32a82c['model']['change'](()=>{for(const _0x3835fe of _0x31db51)_0x7075b2['markBlockFormat'](_0x3835fe,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5ab0ec['value']}]});});}),_0x7075b2['descriptionFactory']['registerElementLabel']('listItem',_0x7a0b2=>c(_0x659ab,'ELEMENT_LIST_ITEM',_0x7a0b2)),_0x7075b2['descriptionFactory']['registerDescriptionCallback'](_0x3626e9=>{if('formatBlock'!=_0x3626e9['type']&&'formatInline'!=_0x3626e9['type'])return;const {data:_0xb218ab}=_0x3626e9;if(_0xb218ab){if('numberedList'==_0xb218ab['commandName']||'bulletedList'==_0xb218ab['commandName']||'todoList'==_0xb218ab['commandName'])switch(_0xb218ab['commandName']['replace']('List','')){case'bulleted':return _0xb43a4(c(_0x659ab,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb43a4(c(_0x659ab,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb43a4(c(_0x659ab,'ELEMENT_TODO_LIST'));}if('indentList'==_0xb218ab['commandName'])return{'type':'format','content':c(_0x659ab,'*Indent:*\x20%0',c(_0x659ab,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xb218ab['commandName'])return{'type':'format','content':c(_0x659ab,'*Outdent:*\x20%0',c(_0x659ab,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xb218ab['commandName'])return _0xb218ab['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x659ab,'*Check\x20item*')}:{'type':'format','content':c(_0x659ab,'*Uncheck\x20item*')};}function _0xb43a4(_0x3c6ada){return{'type':'format','content':c(_0x659ab,'*Change\x20to:*\x20%0',_0x3c6ada)};}});}}function Le(_0x22efcf){const _0x15ff92=_0x22efcf['getAttribute']('listIndent');if(0x0==_0x15ff92)return _0x22efcf;let _0x11ec40=_0x22efcf;for(;_0x22efcf['previousSibling']&&_0x22efcf['previousSibling']['is']('element','listItem');){const _0xf5d9eb=_0x22efcf['previousSibling']['getAttribute']('listIndent');if(_0xf5d9eb==_0x15ff92)_0x11ec40=_0x22efcf['previousSibling'];else{if(_0xf5d9eb<_0x15ff92)break;}_0x22efcf=_0x22efcf['previousSibling'];}return _0x11ec40;}function Ee(_0x33e54f){const _0x3c2669=[];if(_0x33e54f['is']('element','listItem')&&_0x33e54f['getAttribute']('listIndent')>0x0){let _0x1e02dc=_0x33e54f['nextSibling'];for(;_0x1e02dc&&'listItem'==_0x1e02dc['name']&&_0x1e02dc['getAttribute']('listIndent')==_0x33e54f['getAttribute']('listIndent');)_0x3c2669['push'](_0x1e02dc),_0x1e02dc=_0x1e02dc['nextSibling'];}return _0x3c2669;}class Q extends _0xac175e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x561bf6=this['editor']['config']['get']('list.properties'),_0x21e815=this['editor']['plugins']['get']('TrackChangesEditing');_0x561bf6['styles']&&_0x21e815['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x561bf6['reversed']&&_0x21e815['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x561bf6['startIndex']&&_0x21e815['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x21e815['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2c4872,_0x54e499={}){const _0x39438e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x545690=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x39438e['markMultiRangeBlockFormat'](_0x545690,{'commandName':'listStyle','commandParams':[{'type':_0x54e499['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x611622,_0x1d7b7e={}){const _0x5cd67f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x540093=this['_getSuggestionBlocks'](_0x5b1439=>_0x5b1439['is']('element','listItem')&&'numbered'===_0x5b1439['getAttribute']('listType'));if(_0x540093['length']<0x1)return;const _0x2045ff=_0x540093['map'](_0x525f7e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x525f7e,'before'),this['editor']['model']['createPositionAt'](_0x525f7e,0x0)));this['editor']['model']['change'](()=>{_0x5cd67f['markMultiRangeBlockFormat'](_0x2045ff,{'commandName':'listReversed','commandParams':[{'reversed':_0x1d7b7e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x37264e,_0x314edc={}){const _0x7245ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5104b4=this['_getSuggestionBlocks'](_0x3202d9=>_0x3202d9['is']('element','listItem')&&'numbered'===_0x3202d9['getAttribute']('listType'));if(_0x5104b4['length']<0x1)return;const _0x26bf15=_0x5104b4['map'](_0x33f895=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33f895,'before'),this['editor']['model']['createPositionAt'](_0x33f895,0x0)));this['editor']['model']['change'](()=>{_0x7245ae['markMultiRangeBlockFormat'](_0x26bf15,{'commandName':'listStart','commandParams':[{'startIndex':_0x314edc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x139e21){if('formatBlock'!=_0x139e21['type']&&'formatInline'!=_0x139e21['type'])return;const _0x5a72e0=this['editor']['locale'],{data:_0x1e2687}=_0x139e21;if(!_0x1e2687)return;let _0x5b1d31,_0x4dec14;switch(_0x1e2687['commandName']){case'listStyle':_0x5b1d31='*Change\x20to:*\x20%0',_0x4dec14={'type':'format','content':c(_0x5a72e0,_0x5b1d31,c(_0x5a72e0,this['_getTranslationKeyForListStyle'](_0x1e2687['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5b1d31=_0x1e2687['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4dec14={'type':'format','content':c(_0x5a72e0,_0x5b1d31)};break;case'listStart':_0x5b1d31='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4dec14={'type':'format','content':c(_0x5a72e0,_0x5b1d31,_0x1e2687['commandParams'][0x0]['startIndex'])};}return _0x4dec14;}['_getSuggestionBlocksForListStyle'](){const _0x4a8b2c=this['editor']['plugins']['get']('LegacyListUtils');let _0x38ac7c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x38ac7c[0x0]?.['is']('element','listItem')&&_0x38ac7c['unshift'](..._0x4a8b2c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x38ac7c[_0x38ac7c['length']-0x1]?.['is']('element','listItem')&&_0x38ac7c['push'](..._0x4a8b2c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x38ac7c=[...new Set(_0x38ac7c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x38ac7c=_0x38ac7c['filter'](_0x26dcd5=>_0x26dcd5['is']('element','listItem'))),_0x38ac7c;}['_getSuggestionBlocks'](_0x2f0741){const _0x5809a3=this['editor']['plugins']['get']('LegacyListUtils');let _0x580e0e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2f0741)['map'](_0x5eeaa5=>{const _0x4f931c=this['editor']['model']['createPositionAt'](_0x5eeaa5,0x0);return[..._0x5809a3['getSiblingNodes'](_0x4f931c,'backward'),..._0x5809a3['getSiblingNodes'](_0x4f931c,'forward')];})['flat']();return _0x580e0e=[...new Set(_0x580e0e)],_0x580e0e;}['_getTranslationKeyForListStyle'](_0x26a17e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x26a17e)||'default')['toUpperCase']()+'_LIST_'+_0x26a17e['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0xac175e{['afterInit'](){const _0x1e0289=this['editor'];if(!_0x1e0289['plugins']['has']('MediaEmbedEditing'))return;const _0x4a62f7=_0x1e0289['plugins']['get']('TrackChangesEditing'),_0x558a2b=_0x1e0289['locale'];_0x4a62f7['enableCommand']('mediaEmbed'),_0x4a62f7['descriptionFactory']['registerElementLabel']('media',_0x459ba1=>c(_0x558a2b,'ELEMENT_MEDIA',_0x459ba1)),_0x1e0289['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x11ae4c,{writer:_0x5cf21d,options:_0x156c58})=>{if(_0x156c58['showSuggestionHighlights'])return _0x5cf21d['createEmptyElement']('div');},'converterPriority':'high'}),_0x1e0289['data']['downcastDispatcher']['on']('attribute:url:media',(_0x54853b,_0x536366,_0x55ad64)=>{_0x55ad64['options']['showSuggestionHighlights']&&_0x54853b['stop']();},{'priority':'high'});}}class pt extends _0xac175e{['afterInit'](){const _0x476b6d=this['editor'];_0x476b6d['plugins']['has']('MentionEditing')&&_0x476b6d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0xac175e{['afterInit'](){const _0x33073b=this['editor'];if(!_0x33073b['plugins']['has']('MergeFieldsEditing'))return;const _0x23fcfb=_0x33073b['plugins']['get']('TrackChangesEditing'),_0x4d1b00=_0x33073b['locale'];_0x23fcfb['enableCommand']('insertMergeField'),_0x23fcfb['enableCommand']('insertMergeFieldBlock'),_0x23fcfb['enableCommand']('insertMergeFieldImage'),_0x23fcfb['descriptionFactory']['registerElementLabel']('mergeField',_0x1cd9b5=>c(_0x4d1b00,'ELEMENT_MERGE_FIELD',_0x1cd9b5)),_0x23fcfb['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4d1cbe=>c(_0x4d1b00,'ELEMENT_MERGE_FIELD',_0x4d1cbe)),_0x23fcfb['descriptionFactory']['registerDescriptionCallback'](_0x346ad9=>{if('insertion'!=_0x346ad9['type']&&'deletion'!=_0x346ad9['type'])return;const _0x3a9e36=_0x346ad9['getContainedElement']();if(null==_0x3a9e36)return;const _0x2974ec=_0x33073b['plugins']['get']('MergeFieldsEditing');let _0x56831d;switch(_0x2974ec['getMergeFieldType'](_0x3a9e36)){case null:return;case'image':{const _0x747664=_0x2974ec['unwrapAffixes'](_0x3a9e36['getAttribute']('src'));_0x56831d=_0x2974ec['getLabel'](_0x747664)||_0x747664;break;}default:{const _0x58dabb=_0x3a9e36['getAttribute']('id');_0x56831d=_0x2974ec['getLabel'](_0x58dabb)||_0x58dabb;break;}}return'insertion'==_0x346ad9['type']?{'type':'insertion','content':c(_0x4d1b00,'*Insert:*\x20%0','\x22'+_0x56831d+'\x22\x20'+c(_0x4d1b00,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x4d1b00,'*Remove:*\x20%0','\x22'+_0x56831d+'\x22\x20'+c(_0x4d1b00,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0xac175e{['afterInit'](){const _0x55a1cb=this['editor'],_0xab0a6c=_0x55a1cb['plugins']['get']('TrackChangesEditing');_0x55a1cb['plugins']['has']('MultiLevelList')&&(_0xab0a6c['enableDefaultAttributesIntegration']('multiLevelList'),_0xab0a6c['registerBlockAttribute']('listMarkerStyle'),_0xab0a6c['descriptionFactory']['registerDescriptionCallback'](_0x2d6a2=>this['handleDescriptions'](_0x2d6a2)));}['handleDescriptions'](_0x320e1e){const _0x2f2aa2=this['editor']['locale'],{data:_0x5e8693}=_0x320e1e,_0x5b05c2={'type':'format','content':''};if(_0x5e8693&&'listMarkerStyle'==_0x5e8693['key']){if(!_0x5e8693['oldValue'])return{'type':'format','content':c(_0x2f2aa2,'*Set\x20format:*\x20%0',c(_0x2f2aa2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5e8693['newValue']+')'};if(!_0x5e8693['newValue']){let _0x3c20dc=_0x320e1e['head'];for(;_0x3c20dc;){if(_0x3c20dc['data']&&'listType'==_0x3c20dc['data']['key']&&_0x3c20dc['data']['newValue'])return _0x5b05c2;_0x3c20dc=_0x3c20dc['next'];}return{'type':'format','content':c(_0x2f2aa2,'*Remove\x20format:*\x20%0',c(_0x2f2aa2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5e8693['oldValue']+')'};}}}}class bt extends _0xac175e{['afterInit'](){const _0x4e86bb=this['editor'];if(!_0x4e86bb['plugins']['has']('PageBreakEditing'))return;_0x4e86bb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2d386a=_0x4e86bb['plugins']['get']('TrackChangesEditing'),_0xb4ce1a=_0x4e86bb['locale'];_0x2d386a['descriptionFactory']['registerElementLabel']('pageBreak',_0x2cc636=>c(_0xb4ce1a,'ELEMENT_PAGE_BREAK',_0x2cc636));}}class yt extends _0xac175e{['afterInit'](){const _0x456709=this['editor'];if(!_0x456709['plugins']['has']('Paragraph'))return;const _0x260dcc=_0x456709['locale'],_0x212b6f=_0x456709['plugins']['get']('TrackChangesEditing');_0x212b6f['descriptionFactory']['registerElementLabel']('paragraph',_0x33cbf0=>c(_0x260dcc,'ELEMENT_PARAGRAPH',_0x33cbf0)),_0x212b6f['enableDefaultAttributesIntegration']('paragraph'),_0x212b6f['enableCommand']('insertParagraph'),_0x456709['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x456709),{'priority':'highest'}),_0x456709['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ff1f0,_0x5cb414,_0x2404d2)=>{_0x2404d2['options']['showSuggestionHighlights']&&nr(_0x456709,{'showActiveMarker':!0x1})(_0x3ff1f0,_0x5cb414,_0x2404d2);},{'priority':'highest'});const _0x34ee2e=_0x212b6f['descriptionFactory'];_0x34ee2e['registerDescriptionCallback'](_0x16e5d9=>{if('insertion'!==_0x16e5d9['type'])return;const {start:_0x21677a,end:_0xdc0ca7}=_0x16e5d9['getFirstRange']();if(!_0x21677a['isTouching'](_0xdc0ca7)||!_0x21677a['nodeAfter'])return;const _0x5d15e6=_0x456709['model']['schema'],_0x4e7dab=_0x21677a['nodeAfter'];return _0x5d15e6['isBlock'](_0x4e7dab)&&!_0x5d15e6['isLimit'](_0x4e7dab)&&_0x5d15e6['checkChild'](_0x4e7dab,'$text')?{'type':'insertion','content':c(_0x260dcc,'*Insert:*\x20%0',_0x34ee2e['getItemLabel'](_0x4e7dab,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e71cd=this['editor'],_0x1357d6=_0x3e71cd['locale'];_0x3e71cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ba60c=>{if('formatBlock'!=_0x5ba60c['type'])return;const {data:_0x5e7d24}=_0x5ba60c;return _0x5e7d24&&'paragraph'==_0x5e7d24['commandName']?{'type':'format','content':c(_0x1357d6,'*Change\x20to:*\x20%0',c(_0x1357d6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x468b5f,{showActiveMarker:_0x57673a=!0x0}={}){return(_0x42573a,_0x317003,_0x454f93)=>{const _0x565884=_0x468b5f['plugins']['get']('TrackChangesEditing'),_0x3bdbd7=_0x317003['markerRange']['start'],_0x1640af=_0x317003['markerRange']['end'],_0x16640f=_0x468b5f['model']['schema'];if(!_0x3bdbd7['isTouching'](_0x1640af)||!_0x3bdbd7['nodeAfter'])return;const _0x59a8e3=_0x3bdbd7['nodeAfter'];if(_0x16640f['isBlock'](_0x59a8e3)&&!_0x16640f['isLimit'](_0x59a8e3)&&_0x16640f['checkChild'](_0x59a8e3,'$text')){if(!_0x454f93['consumable']['consume'](_0x317003['markerRange'],_0x42573a['name']))return;const {id:_0x21a2e6,authorId:_0x41b56c}=_0x565884['_splitMarkerName'](_0x317003['markerName']),_0x480529=_0x454f93['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x21a2e6,'data-author-id':_0x41b56c}),_0x38d0c5=_0x454f93['mapper']['toViewPosition'](_0x1640af);_0x57673a&&_0x565884['activeMarkers']['includes'](_0x317003['markerName'])&&_0x454f93['writer']['addClass']('ck-suggestion-marker--active',_0x480529),_0x454f93['writer']['insert'](_0x38d0c5,_0x480529),_0x454f93['mapper']['bindElementToMarker'](_0x480529,_0x317003['markerName']);}};}class St extends _0xac175e{['afterInit'](){const _0x410a27=this['editor'];_0x410a27['commands']['get']('replaceSource')&&_0x410a27['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0xac175e{['afterInit'](){const _0x28aadf=this['editor'];if(!_0x28aadf['plugins']['has']('RemoveFormatEditing'))return;_0x28aadf['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16b775=this['editor'];_0x16b775['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbdfccc=>{if('formatBlock'!=_0xbdfccc['type']&&'formatInline'!=_0xbdfccc['type'])return;const {data:_0x2d2cdd}=_0xbdfccc;return _0x2d2cdd&&'removeFormat'==_0x2d2cdd['commandName']?{'type':'format','content':c(_0x16b775['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0xac175e{['afterInit'](){const _0x1053dd=this['editor'];if(!_0x1053dd['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4d2fa7=_0x1053dd['plugins']['get']('TrackChangesEditing');_0x4d2fa7['enableCommand']('goToPreviousRestrictedEditingException'),_0x4d2fa7['enableCommand']('goToNextRestrictedEditingException');const _0x25208c=_0x1053dd['plugins']['get']('RestrictedEditingModeEditing');_0x25208c['enableCommand']('trackChanges'),_0x25208c['enableCommand']('acceptSuggestion'),_0x25208c['enableCommand']('discardSuggestion'),_0x25208c['enableCommand']('acceptAllSuggestions'),_0x25208c['enableCommand']('discardAllSuggestions'),_0x25208c['enableCommand']('acceptSelectedSuggestions'),_0x25208c['enableCommand']('discardSelectedSuggestions');}}class At extends _0xac175e{['afterInit'](){const _0x17505d=this['editor'];if(!_0x17505d['plugins']['has']('ShiftEnter'))return;const _0x167125=_0x17505d['plugins']['get']('TrackChangesEditing');_0x167125['enableCommand']('shiftEnter'),_0x17505d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x17505d),{'priority':'high'}),_0x17505d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x17505d),{'priority':'high'}),_0x17505d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d6ad8,_0x7adeb3,_0xa584f8)=>{_0xa584f8['options']['showSuggestionHighlights']&&je(_0x17505d,{'showActiveMarker':!0x1})(_0x2d6ad8,_0x7adeb3,_0xa584f8);}),_0x167125['descriptionFactory']['registerElementLabel']('softBreak',_0x2b0b84=>c(_0x17505d['locale'],'ELEMENT_LINE_BREAK',_0x2b0b84));}}function je(_0x11a435,{showActiveMarker:_0x838e40=!0x0}={}){return(_0x558348,_0x640f71,_0x31ae72)=>{const _0x14b59a=_0x11a435['plugins']['get']('TrackChangesEditing');if(!_0x31ae72['consumable']['test'](_0x640f71['markerRange'],_0x558348['name']))return;const _0x13a6ab=_0x11a435['model'];for(const _0x464de6 of _0x640f71['markerRange']['getItems']()){if(!_0x464de6['is']('element','softBreak'))continue;const _0x54c19d='deletion'==_0x640f71['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xf433f5,authorId:_0x45a642}=_0x14b59a['_splitMarkerName'](_0x640f71['markerName']),_0x240c5a=_0x31ae72['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54c19d,'data-suggestion':_0xf433f5,'data-author-id':_0x45a642}),_0x55f276=_0x31ae72['mapper']['toViewPosition'](_0x13a6ab['createPositionBefore'](_0x464de6));_0x838e40&&_0x14b59a['activeMarkers']['includes'](_0x640f71['markerName'])&&_0x31ae72['writer']['addClass']('ck-suggestion-marker--active',_0x240c5a),_0x31ae72['writer']['insert'](_0x55f276,_0x240c5a),_0x31ae72['mapper']['bindElementToMarker'](_0x240c5a,_0x640f71['markerName']);}};}class _t extends _0xac175e{['afterInit'](){const _0x35356f=this['editor'],_0x44c998=_0x35356f['model'],_0x9aac9c=_0x35356f['locale'];if(!_0x35356f['plugins']['has']('StandardEditingModeEditing'))return;const _0x3c3d91=_0x35356f['plugins']['get']('TrackChangesEditing'),_0x274690='restrictedEditingException',_0x16af4f=_0x35356f['commands']['get'](_0x274690);_0x3c3d91['enableCommand'](_0x274690,(_0x1e9cd6,_0x51e5f6={})=>{const _0x527b60=_0x44c998['document']['selection'];if(_0x527b60['isCollapsed'])return void _0x1e9cd6(_0x51e5f6);const _0x8f76be=void 0x0!==_0x51e5f6['forceValue']?_0x51e5f6['forceValue']:!_0x16af4f['value'];_0x44c998['change'](()=>{const _0x5b7fad=Array['from'](_0x527b60['getRanges']());for(const _0x4a097d of _0x5b7fad){const _0x5e2746=_0x8f76be?[_0x4a097d]:io(_0x274690,_0x4a097d,_0x44c998);for(const _0x4cc2bf of _0x5e2746)_0x3c3d91['markInlineFormat'](_0x4cc2bf,{'commandName':_0x274690,'commandParams':[{'forceValue':_0x8f76be}]});}});}),_0x3c3d91['descriptionFactory']['registerDescriptionCallback'](_0x48c2b6=>{if('formatBlock'!=_0x48c2b6['type']&&'formatInline'!=_0x48c2b6['type'])return;const {data:_0x35c8d6}=_0x48c2b6;return _0x35c8d6&&_0x35c8d6['commandName']==_0x274690?_0x35c8d6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x9aac9c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x9aac9c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0xac175e{['afterInit'](){const _0x5f4d54=this['editor'];if(!_0x5f4d54['plugins']['has']('Style')||!_0x5f4d54['plugins']['has']('DataSchema'))return;const _0x17045b=_0x5f4d54['plugins']['get']('TrackChangesEditing'),_0x207160=_0x5f4d54['locale'],_0x8cd90c=_0x5f4d54['config']['get']('style')||{},_0x12975b=_0x5f4d54['plugins']['get']('GeneralHtmlSupport'),_0x5e6e0=_0x5f4d54['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5f4d54['plugins']['get']('DataSchema'),_0x8cd90c['definitions']);_0x17045b['enableDefaultAttributesIntegration']('style');const _0x3296ec=new Set();for(const _0x3d23e1 of _0x5e6e0['block']){const _0x8242c9=_0x12975b['getGhsAttributeNameForElement'](_0x3d23e1['element']);_0x3296ec['add'](_0x8242c9);}const _0x4735a2=new Set();for(const _0x954c96 of _0x5e6e0['inline']){const _0x58d3a8=_0x12975b['getGhsAttributeNameForElement'](_0x954c96['element']);_0x4735a2['add'](_0x58d3a8);for(const _0x1d0163 of _0x954c96['ghsAttributes'])_0x4735a2['add'](_0x1d0163);}for(const _0x3d366b of _0x3296ec)_0x17045b['registerBlockAttribute'](_0x3d366b),_0x17045b['descriptionFactory']['registerAttributeLabel'](_0x3d366b,c(_0x207160,'FORMAT_STYLE'));for(const _0xd92196 of _0x4735a2)_0x17045b['registerInlineAttribute'](_0xd92196),_0x17045b['descriptionFactory']['registerAttributeLabel'](_0xd92196,c(_0x207160,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dc2b5=this['editor'],_0x1ff2e4=_0x3dc2b5['locale'];_0x3dc2b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53b4fd=>{if('formatBlock'!=_0x53b4fd['type']&&'formatInline'!=_0x53b4fd['type'])return;const {data:_0x426884}=_0x53b4fd;return _0x426884&&'style'===_0x426884['commandName']?_0x426884['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1ff2e4,'*Set\x20format:*\x20%0',_0x426884['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x1ff2e4,'*Remove\x20format:*\x20%0',_0x426884['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0xac175e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x470325){super(_0x470325),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x6a613d=this['editor'],_0x4c3351=_0x6a613d['model']['document']['selection'];if(!_0x6a613d['plugins']['has']('TableEditing'))return;const _0xdcdd4e=_0x6a613d['locale'],_0x618723=_0x6a613d['plugins']['get']('TrackChangesEditing'),_0x46c45c=_0x6a613d['plugins']['get']('TableUtils');_0x618723['descriptionFactory']['registerElementLabel']('table',_0x416bfd=>c(_0xdcdd4e,'ELEMENT_TABLE',_0x416bfd)),this['_setupColumnsRowsFixing'](),_0x618723['enableCommand']('insertTable'),_0x618723['enableCommand']('selectTableRow'),_0x618723['enableCommand']('selectTableColumn');for(const _0x5c7030 of['insertTableRowAbove','insertTableRowBelow']){const _0x4e55f5=_0x6a613d['commands']['get'](_0x5c7030);_0x618723['enableCommand'](_0x5c7030,_0x43cee8=>{_0x6a613d['model']['change'](_0xd5df8a=>{_0x43cee8();const _0x2ead6d='above'===_0x4e55f5['order'],_0x3b989a=_0x46c45c['getSelectionAffectedTableCells'](_0x4c3351),_0x584911=_0x46c45c['getRowIndexes'](_0x3b989a),_0x1410bb=_0x2ead6d?_0x584911['first']-0x1:_0x584911['last']+0x1,_0x5d1572=_0x3b989a[0x0]['findAncestor']('table'),_0x5a37dd=_0x46c45c['createTableWalker'](_0x5d1572,{'startRow':_0x1410bb,'endRow':_0x1410bb}),_0x5508b6=Array['from'](_0x5a37dd)['map'](_0x5395ba=>_0xd5df8a['createRangeOn'](_0x5395ba['cell']));_0x618723['markMultiRangeInsertion'](_0x5508b6,'tableRow');});});}for(const _0x59daba of['insertTableColumnLeft','insertTableColumnRight']){const _0x466fce=_0x6a613d['commands']['get'](_0x59daba);_0x618723['enableCommand'](_0x59daba,_0x51a58d=>{_0x6a613d['model']['change'](_0x54d836=>{_0x51a58d();const _0x3133f2='left'===_0x466fce['order'],_0x48eedb=_0x46c45c['getSelectionAffectedTableCells'](_0x4c3351),_0x5a78df=_0x46c45c['getColumnIndexes'](_0x48eedb),_0x33f90d=_0x3133f2?_0x5a78df['first']-0x1:_0x5a78df['last']+0x1,_0x3d622f=_0x48eedb[0x0]['findAncestor']('table'),_0x580522=_0x46c45c['createTableWalker'](_0x3d622f,{'startRow':0x0,'column':_0x33f90d,'includeAllSlots':!0x1}),_0x475113=Array['from'](_0x580522)['map'](_0x20b792=>_0x54d836['createRangeOn'](_0x20b792['cell']));_0x618723['markMultiRangeInsertion'](_0x475113,'tableColumn');});});}for(const _0x1e14e1 of['removeTableRow','removeTableColumn']){const _0x15ac17=_0x1e14e1['substr'](0xb),_0xae798e=_0x15ac17['toLowerCase'](),_0x3ab86a=_0xae798e['substr'](0x0,0x3)+'span',_0x298c35='table'+_0x15ac17,_0x3d7c13='min'+_0x15ac17,_0xbedd6f='max'+_0x15ac17;_0x618723['enableCommand'](_0x1e14e1,()=>{_0x6a613d['model']['change'](_0x530a5f=>{const _0x63c050=_0x46c45c['getSelectionAffectedTableCells'](_0x4c3351),_0x262648=_0x63c050[0x0]['findAncestor']('table');let _0x54c886;if('removeTableRow'==_0x1e14e1){const _0x531564=_0x46c45c['getRowIndexes'](_0x63c050);_0x54c886={'startRow':_0x531564['first'],'endRow':_0x531564['last'],'includeAllSlots':!0x0};}else{const _0x90364a=_0x46c45c['getColumnIndexes'](_0x63c050);_0x54c886={'startColumn':_0x90364a['first'],'endColumn':_0x90364a['last'],'includeAllSlots':!0x0};}const _0x3cbd0b=_0x46c45c['createTableWalker'](_0x262648,_0x54c886),_0x1b2507=Array['from'](_0x3cbd0b)['map'](({cell:_0x245e90})=>_0x245e90),_0x58c138=xe(_0x1b2507['filter'](_0x1c7752=>_0x1c7752['hasAttribute'](_0x3ab86a))),_0x814b8=xe(_0x1b2507['filter'](_0x235116=>!_0x235116['hasAttribute'](_0x3ab86a)))['map'](_0x2dac65=>_0x530a5f['createRangeOn'](_0x2dac65)),_0x38e056=_0x618723['markMultiRangeDeletion'](_0x814b8,_0x298c35);if(_0x38e056&&('tableRow'==_0x38e056['subType']||'tableColumn'==_0x38e056['subType'])){const _0x59a62b=this['_getSuggestionCoords'](_0x38e056);for(const _0x30f40e of _0x58c138){const _0x75db97=_0x530a5f['createRangeOn'](_0x30f40e),_0x912f43=_0x46c45c['getCellLocation'](_0x30f40e),_0x20f1a6=_0x30f40e['getAttribute'](_0x3ab86a)-0x1,_0x36589a=_0x59a62b[_0x3d7c13],_0x267341=_0x59a62b[_0xbedd6f];_0x36589a<=_0x912f43[_0xae798e]&&_0x912f43[_0xae798e]+_0x20f1a6<=_0x267341&&_0x38e056['addRange'](_0x75db97);}}});});}function _0x4cf274(_0x43941e){const _0x34e2ba=Array['from'](_0x4c3351['getRanges']())['map'](_0x50bf63=>_0x5b3987['fromRange'](_0x50bf63));_0x6a613d['model']['change'](_0x1813b3=>{const _0x1d9e0e=_0x1813b3['batch'];_0x43941e=_0x43941e['filter'](_0x23beeb=>'$graveyard'!=_0x23beeb['root']['rootName']),_0x1813b3['setSelection'](_0x43941e),_0x6a613d['commands']['get']('removeTableRow')['refresh'](),_0x6a613d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x6a613d['model']['enqueueChange'](()=>{_0x6a613d['model']['enqueueChange'](_0x1d9e0e,_0x1dc922=>{const _0x43bc16=_0x34e2ba['filter'](_0x29f569=>'$graveyard'!=_0x29f569['root']['rootName']);_0x43bc16['length']>0x0&&_0x1dc922['setSelection'](_0x43bc16);for(const _0xcbb07d of _0x34e2ba)_0xcbb07d['detach']();});});});}function _0xd40753(_0x20100d){_0x6a613d['model']['change'](_0x27760f=>{const _0x3eb11a=Array['from'](_0x4c3351['getRanges']())['map'](_0x691b7d=>_0x5b3987['fromRange'](_0x691b7d)),_0x526cab=[];for(const _0x9d49f4 of _0x20100d)for(const _0x111dc5 of _0x9d49f4['getItems']({'shallow':!0x0}))_0x526cab['push'](_0x111dc5);for(const _0x206d12 of _0x526cab)'$graveyard'!=_0x206d12['root']['rootName']&&(_0x27760f['setSelection'](_0x27760f['createPositionAt'](_0x206d12,0x0)),_0x6a613d['commands']['get']('removeTableColumn')['refresh'](),_0x6a613d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x6932b6=_0x3eb11a['filter'](_0x41583f=>'$graveyard'!=_0x41583f['root']['rootName']);_0x6932b6['length']>0x0&&_0x27760f['setSelection'](_0x6932b6);for(const _0x5e79d2 of _0x3eb11a)_0x5e79d2['detach']();});}function _0x14385c(_0xc7509,_0x38ef29){return _0x38ef29['every'](_0x482eec=>_0xc7509['some'](_0x23ff68=>_0x23ff68['end']['isEqual'](_0x482eec['start'])||_0x482eec['end']['isEqual'](_0x23ff68['start'])));}function _0x3d8153(_0x3de37c,_0x543356){return!_0x3de37c['some'](_0x1d889c=>_0x543356['some'](_0x4f66e2=>_0x1d889c['isIntersecting'](_0x4f66e2)))&&_0x3de37c['some'](_0x44326a=>_0x543356['some'](_0x43a781=>_0x44326a['end']['isTouching'](_0x43a781['start'])));}_0x6a613d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x841424,_0x44e667,_0x3c0eff)=>{if(!_0x3c0eff['options']['showSuggestionHighlights'])return;const _0x2d7d83=_0x44e667['item'];if(!_0x2d7d83||!_0x2d7d83['is']('element','tableCell'))return;const _0x3f1d29=_0x3c0eff['mapper']['toViewElement'](_0x2d7d83);if(_0x3f1d29){const {id:_0x5315e8,authorId:_0x42a573}=_0x618723['_splitMarkerName'](_0x44e667['markerName']);_0x3f08c7(_0x3f1d29,_0x3c0eff['writer'],(_0x229e8a,_0x45f3d8,_0x526269)=>{_0x526269['addClass'](_0x1e8e77(_0x45f3d8['classes']),_0x229e8a),_0x526269['setAttribute']('data-suggestion-id',_0x5315e8,_0x229e8a),_0x526269['setAttribute']('data-author-id',_0x42a573,_0x229e8a);},(_0x34c43b,_0x7256c0,_0x26101e)=>{_0x26101e['removeClass'](_0x1e8e77(_0x7256c0['classes']),_0x34c43b),_0x26101e['removeAttribute']('data-suggestion-id',_0x34c43b),_0x26101e['removeAttribute']('data-author-id',_0x34c43b);});}},{'priority':'highest'}),_0x618723['descriptionFactory']['registerDescriptionCallback'](_0x53e2e5=>{if('insertion'!=_0x53e2e5['type']&&'deletion'!=_0x53e2e5['type'])return;const _0xb80a4=_0x53e2e5['getContainedElement']();if(null!=_0xb80a4&&_0xb80a4['is']('element','table')){if('insertion'==_0x53e2e5['type']){const _0x36a6fb=_0x53e2e5['getItems']()['filter'](_0x5dba4f=>_0x5dba4f['is']('$textProxy'))['map'](_0x11d1a7=>_0x11d1a7['data']);if(_0x36a6fb['length'])return{'type':'insertion','content':c(_0xdcdd4e,'*Insert:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36a6fb['join']('\x20')+'\x22'))};}if('deletion'==_0x53e2e5['type']){const _0x3e0780=_0x53e2e5['getItems']()['filter'](_0x5c1253=>_0x5c1253['is']('$textProxy'))['map'](_0x56f60=>_0x56f60['data']);if(_0x3e0780['length'])return{'type':'deletion','content':c(_0xdcdd4e,'*Remove:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3e0780['join']('\x20')+'\x22'))};}}}),_0x618723['descriptionFactory']['registerDescriptionCallback'](_0x3e62ff=>{if('tableRow'==_0x3e62ff['subType']){const _0x2f3458=_0x3e62ff['getItems']()['filter'](_0x390c43=>_0x390c43['is']('$textProxy'))['map'](_0x1c6555=>_0x1c6555['data']),_0x7e3adb=this['_getSuggestionCoords'](_0x3e62ff),_0x17a7c3=_0x7e3adb['maxRow']-_0x7e3adb['minRow']+0x1;if('insertion'==_0x3e62ff['type'])return _0x2f3458['length']?{'type':'insertion','content':c(_0xdcdd4e,'*Insert:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x17a7c3,'\x22'+_0x2f3458['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xdcdd4e,'*Insert:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_ROW',_0x17a7c3))};if('deletion'==_0x3e62ff['type'])return _0x2f3458['length']?{'type':'deletion','content':c(_0xdcdd4e,'*Remove:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x17a7c3,'\x22'+_0x2f3458['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xdcdd4e,'*Remove:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_ROW',_0x17a7c3))};}if('tableColumn'==_0x3e62ff['subType']){const _0x41a182=_0x3e62ff['getItems']()['filter'](_0x31df0e=>_0x31df0e['is']('$textProxy'))['map'](_0x3cc4cb=>_0x3cc4cb['data']),_0x46d708=this['_getSuggestionCoords'](_0x3e62ff),_0x54553a=_0x46d708['maxColumn']-_0x46d708['minColumn']+0x1;if('insertion'==_0x3e62ff['type'])return _0x41a182['length']?{'type':'insertion','content':c(_0xdcdd4e,'*Insert:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x54553a,'\x22'+_0x41a182['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xdcdd4e,'*Insert:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_COLUMN',_0x54553a))};if('deletion'==_0x3e62ff['type'])return _0x41a182['length']?{'type':'deletion','content':c(_0xdcdd4e,'*Remove:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x54553a,'\x22'+_0x41a182['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xdcdd4e,'*Remove:*\x20%0',c(_0xdcdd4e,'ELEMENT_TABLE_COLUMN',_0x54553a))};}}),_0x618723['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4cf274),_0x618723['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4cf274),_0x618723['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xd40753),_0x618723['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xd40753),_0x618723['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x14385c),_0x618723['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x14385c),_0x618723['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3d8153),_0x618723['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3d8153);}['_acceptFormatSuggestionCallbackFactory'](){const _0x125bbe=this['editor'],_0x2f9f31=_0x125bbe['model']['document']['selection'];return(_0x2bb111,_0x12b032)=>{_0x125bbe['model']['change'](_0x2583d9=>{const {commandName:_0x44780d,commandParams:_0x46f8e4}=_0x12b032;let _0x4b819f=_0x2bb111[0x0]['end']['nodeBefore'];_0x46f8e4&&_0x46f8e4[0x0]&&!0x1===_0x46f8e4[0x0]['forceValue']&&(_0x4b819f=_0x2bb111[0x0]['start']['nodeAfter']);const _0x5f1f24=_0x2583d9['createRangeIn'](_0x4b819f);if('$graveyard'==_0x5f1f24['root']['rootName'])return;const _0x434146=Array['from'](_0x2f9f31['getRanges']())['map'](_0x5161f7=>_0x5b3987['fromRange'](_0x5161f7));_0x2583d9['setSelection'](_0x5f1f24),_0x125bbe['commands']['get'](_0x44780d)['refresh'](),_0x46f8e4['push']({'forceDefaultExecution':!0x0}),_0x125bbe['execute'](_0x44780d,..._0x46f8e4);const _0x349d78=_0x434146['filter'](_0x24e5d4=>'$graveyard'!=_0x24e5d4['root']['rootName']);_0x349d78['length']>0x0&&_0x2583d9['setSelection'](_0x349d78);for(const _0x436ee8 of _0x434146)_0x436ee8['detach']();});};}['_getCoordsForCells'](_0x4cf0a5){const _0x4e764e=this['editor']['plugins']['get']('TableUtils');let _0x2423f7=Number['MAX_SAFE_INTEGER'],_0x1d9ce4=Number['MIN_SAFE_INTEGER'],_0x991a0e=Number['MAX_SAFE_INTEGER'],_0x13a0ca=Number['MIN_SAFE_INTEGER'];for(const _0x58935d of _0x4cf0a5){if('$graveyard'==_0x58935d['root']['rootName'])continue;const {row:_0x3c5264,column:_0x1b2edf}=_0x4e764e['getCellLocation'](_0x58935d),_0x9b4acf=_0x58935d['hasAttribute']('rowspan')?_0x58935d['getAttribute']('rowspan')-0x1:0x0,_0x4ebcd5=_0x58935d['hasAttribute']('colspan')?_0x58935d['getAttribute']('colspan')-0x1:0x0;_0x2423f7=_0x3c5264<_0x2423f7?_0x3c5264:_0x2423f7,_0x1d9ce4=_0x3c5264+_0x9b4acf>_0x1d9ce4?_0x3c5264+_0x9b4acf:_0x1d9ce4,_0x991a0e=_0x1b2edf<_0x991a0e?_0x1b2edf:_0x991a0e,_0x13a0ca=_0x1b2edf+_0x4ebcd5>_0x13a0ca?_0x1b2edf+_0x4ebcd5:_0x13a0ca;}return{'minRow':_0x2423f7,'maxRow':_0x1d9ce4,'minColumn':_0x991a0e,'maxColumn':_0x13a0ca};}['_setupColumnsRowsFixing'](){const _0x281a89=this['editor'],_0x156fb9=_0x281a89['plugins']['get']('TrackChangesEditing'),_0x384c6c=_0x281a89['plugins']['get']('TableUtils');_0x281a89['model']['document']['on']('change:data',()=>{const _0x54c58f=Array['from'](_0x281a89['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x151c81,data:_0x2dd2ce}of _0x54c58f){const {group:_0x3a8b6f,id:_0x1a83cb,subType:_0x422bba}=_0x156fb9['_splitMarkerName'](_0x151c81);if('suggestion'!=_0x3a8b6f)continue;if(null!=_0x2dd2ce['oldRange'])continue;const _0x10d10b=_0x156fb9['getSuggestion'](_0x1a83cb);this['_tablePostFixingSubtypes']['includes'](_0x422bba)&&this['_tableSuggestions']['add'](_0x10d10b);}},{'priority':'low'});const _0x3eb5b6=(_0xa29f19,_0x2ab554)=>{let _0x38db29=!0x1;const _0x3aedda=_0x2ab554['createRangeOn'](_0xa29f19),_0x4f16d9=_0xa29f19['findAncestor']('table'),_0x2b9e8f=_0x384c6c['getCellLocation'](_0xa29f19);for(const _0x109b66 of this['_tableSuggestions']){const _0x4fe651=_0x109b66['subType'],_0x454d05=_0x4fe651['startsWith']('tablePaste'),_0x182797=_0x4fe651['substr'](_0x454d05?0xa:0x5),_0x2e8499=_0x182797['toLowerCase'](),_0x1fd7c0=_0x2e8499['substr'](0x0,0x3)+'span',_0x2d3607='min'+_0x182797,_0x583529='max'+_0x182797;if(!_0x109b66['isInContent'])continue;if(_0x4f16d9!=_0x109b66['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x109b66['isIntersectingWithRange'](_0x3aedda))continue;const _0x1ae91c=_0xa29f19['hasAttribute'](_0x1fd7c0)?_0xa29f19['getAttribute'](_0x1fd7c0)-0x1:0x0,_0x441066=this['_getSuggestionCoords'](_0x109b66),_0x588d9f=_0x441066[_0x2d3607],_0x2f6d44=_0x441066[_0x583529];_0x588d9f<=_0x2b9e8f[_0x2e8499]&&_0x2b9e8f[_0x2e8499]+_0x1ae91c<=_0x2f6d44&&(_0x109b66['addRange'](_0x3aedda),_0x38db29=!0x0);}return _0x38db29;};_0x281a89['model']['document']['registerPostFixer'](_0x502390=>{let _0x587d1c=!0x1;for(const _0x13a0f1 of _0x281a89['model']['document']['differ']['getChanges']())if('insert'==_0x13a0f1['type']){if('tableRow'==_0x13a0f1['name']){for(const _0x56d92a of _0x13a0f1['position']['nodeAfter']['getChildren']())_0x587d1c=_0x587d1c||_0x3eb5b6(_0x56d92a,_0x502390);}else'tableCell'==_0x13a0f1['name']&&(_0x587d1c=_0x587d1c||_0x3eb5b6(_0x13a0f1['position']['nodeAfter'],_0x502390));}return _0x587d1c;});}['_getSuggestionCoords'](_0x359537){return this['_getCoordsForCells'](_0x359537['getRanges']()['map'](_0xc3c16=>_0xc3c16['start']['nodeAfter']));}}function xe(_0x2c8ec7){return Array['from'](new Set(_0x2c8ec7)['values']());}class Nt extends _0xac175e{static get['requires'](){return[Ct];}['afterInit'](){const _0x280790=this['editor'],_0x3ea082=_0x280790['model']['document']['selection'],_0x3033f2=_0x280790['locale'];if(!_0x280790['plugins']['has']('TableEditing'))return;const _0x596c35=_0x280790['plugins']['get']('TrackChangesEditing'),_0xd6c62f=_0x280790['plugins']['get']('TableUtils'),_0x433ce0=_0x280790['plugins']['get'](Ct);_0x433ce0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x596c35['enableCommand']('mergeTableCells',()=>{const _0x261046=_0xd6c62f['getSelectionAffectedTableCells'](_0x280790['model']['document']['selection']);_0x280790['model']['change'](()=>{_0x596c35['markMultiRangeBlockFormat'](_0x261046,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x280790['commands']['get']('mergeTableCells')['on']('execute',(_0x109b86,_0x21c5d4)=>{_0x280790['commands']['get']('trackChanges')['value']&&(_0x21c5d4['length']>0x0&&_0x21c5d4[_0x21c5d4['length']-0x1]&&_0x21c5d4[_0x21c5d4['length']-0x1]['forceDefaultExecution']||_0x596c35['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x109b86['stop']());},{'priority':'highest'});for(const _0xe4b76e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5ed0ea=_0x280790['commands']['get'](_0xe4b76e);_0x596c35['enableCommand'](_0xe4b76e,()=>{const _0x33b2e0=_0x280790['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x45c240=>_0x45c240['is']('element','tableCell')),_0x1d5153=_0x5ed0ea['value'];_0x280790['model']['change'](()=>{_0x596c35['markMultiRangeBlockFormat']([_0x33b2e0,_0x1d5153],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x529375 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4a34c2=_0x280790['commands']['get'](_0x529375);_0x596c35['enableCommand'](_0x529375,()=>{const _0x58b863=_0xd6c62f['getSelectionAffectedTableCells'](_0x280790['model']['document']['selection'])[0x0],_0x9b2b41=_0x58b863['findAncestor']('table'),{column:_0x4439cd,row:_0x459635}=_0xd6c62f['getCellLocation'](_0x58b863);let _0x53567d=[];if('horizontally'==_0x4a34c2['direction']){const _0x1c8d75=_0xd6c62f['createTableWalker'](_0x9b2b41,{'startRow':_0x459635,'endRow':_0x459635,'includeAllSlots':!0x0});_0x53567d=Array['from'](_0x1c8d75)['map'](_0x3bc2e1=>_0x3bc2e1['cell']);}else{const _0x5c6755=_0xd6c62f['createTableWalker'](_0x9b2b41,{'column':_0x4439cd,'includeAllSlots':!0x0});_0x53567d=Array['from'](_0x5c6755)['map'](_0x111e5e=>_0x111e5e['cell']);}_0x280790['model']['change'](_0x596089=>{_0x596c35['markBlockFormat'](_0x596089['createRangeOn'](_0x58b863),{'commandName':_0x529375,'commandParams':[]},_0x53567d,_0x529375);});});}_0x596c35['descriptionFactory']['registerDescriptionCallback'](_0x1b8992=>{if('formatBlock'!=_0x1b8992['type']&&'formatInline'!=_0x1b8992['type'])return;const {data:_0x165343}=_0x1b8992;return _0x165343&&'mergeTableCells'==_0x165343['commandName']?{'type':'format','content':c(_0x3033f2,'*Merge\x20cells*')}:void 0x0;}),_0x596c35['descriptionFactory']['registerDescriptionCallback'](_0x79a34d=>{if('formatBlock'!=_0x79a34d['type']&&'formatInline'!=_0x79a34d['type'])return;const {data:_0x225672}=_0x79a34d;return _0x225672?'splitTableCellVertically'==_0x225672['commandName']?{'type':'format','content':c(_0x3033f2,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x225672['commandName']?{'type':'format','content':c(_0x3033f2,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1530b6=_0x433ce0['_acceptFormatSuggestionCallbackFactory']();for(const _0x4a6b84 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x596c35['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4a6b84,'accept',_0x1530b6);for(const _0x4e731d of['splitTableCellVertically','splitTableCellHorizontally'])_0x596c35['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e731d,'accept',_0x1530b6);_0x596c35['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3fad06=>{_0x280790['model']['change'](_0x341cd7=>{const _0x2a7534=Array['from'](_0x3ea082['getRanges']())['map'](_0x2be90d=>_0x5b3987['fromRange'](_0x2be90d));_0x341cd7['setSelection'](_0x3fad06),_0x280790['commands']['get']('mergeTableCells')['refresh'](),_0x280790['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4f7b87=_0x2a7534['filter'](_0x4b2d6a=>'$graveyard'!=_0x4b2d6a['root']['rootName']);_0x4f7b87['length']>0x0&&_0x341cd7['setSelection'](_0x4f7b87);for(const _0x349d9f of _0x2a7534)_0x349d9f['detach']();});});for(const _0x110460 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x632acb=_0x280790['commands']['get'](_0x110460);_0x632acb['on']('set:isEnabled',(_0x13febc,_0xa99e4e,_0x5aff62)=>{if(_0x5aff62){const _0x1cf8b2=_0x280790['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x281b9d=>_0x281b9d['is']('element','tableCell'));this['_areMergableCells'](_0x632acb['value'],_0x1cf8b2)||(_0x13febc['return']=!0x1,_0x13febc['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x37a580=this['editor']['commands']['get']('mergeTableCells'),_0x4932db=this['editor']['plugins']['get']('TableUtils');if(!_0x37a580['isEnabled'])return!0x1;const _0x5b5d9a=_0x4932db['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x28a8f1 of _0x5b5d9a)for(const _0x4d1827 of _0x5b5d9a)if(_0x28a8f1!=_0x4d1827&&!this['_areMergableCells'](_0x28a8f1,_0x4d1827))return!0x1;return!0x0;}['_areMergableCells'](_0x5d12ad,_0x3d4e15){const _0x17ed44=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa8f566=this['editor']['model']['createRangeOn'](_0x5d12ad),_0x517b96=this['editor']['model']['createRangeOn'](_0x3d4e15),_0x21cc3b=new Set(),_0x545a2c=new Set();for(const _0xb8aa02 of _0x17ed44['getSuggestions']())if(('insertion'==_0xb8aa02['type']||'deletion'==_0xb8aa02['type']||'mergeTableCells'==_0xb8aa02['subType'])&&_0xb8aa02['isInContent']){for(const _0x572bff of _0xb8aa02['getRanges']())_0x572bff['containsRange'](_0xa8f566,!0x0)&&_0x21cc3b['add'](_0xb8aa02['type']+':'+_0xb8aa02['author']['id']),_0x572bff['containsRange'](_0x517b96,!0x0)&&_0x545a2c['add'](_0xb8aa02['type']+':'+_0xb8aa02['author']['id']);}if(_0x21cc3b['size']!=_0x545a2c['size'])return!0x1;for(const _0x23660d of _0x21cc3b)if(!_0x545a2c['has'](_0x23660d))return!0x1;return!0x0;}}class Dt extends _0xac175e{static get['requires'](){return[Ct];}['afterInit'](){const _0x2756d9=this['editor'];if(!_0x2756d9['plugins']['has']('TableEditing'))return;const _0x54d8df=_0x2756d9['locale'],_0x43cfe8=_0x2756d9['plugins']['get']('TrackChangesEditing');_0x43cfe8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x43cfe8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x43cfe8['registerBlockAttribute']('headingRows'),_0x43cfe8['registerBlockAttribute']('headingColumns'),_0x43cfe8['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x54d8df,'FORMAT_HEADER_ROW')),_0x43cfe8['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x54d8df,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4646ed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x478f8d=this['editor']['plugins']['get']('TableUtils'),_0x2966f5=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x372ab0({showActiveMarker:_0x2b2b4c=!0x0,setDataAttribute:_0x5509c9=!0x0}={}){return(_0x371804,_0x392a40,_0x34c520)=>{const {type:_0x4c28b3,id:_0x5076f9}=_0x4646ed['_splitMarkerName'](_0x392a40['markerName']),_0x3f9bc6=_0x4646ed['getSuggestion'](_0x5076f9),_0xc8d98d=_0x3f9bc6['data'];if('formatBlock'!=_0x3f9bc6['type']||!_0xc8d98d||'setTableColumnHeader'!=_0xc8d98d['commandName'])return;if(_0x392a40['item'])return void _0x371804['stop']();if(!_0x34c520['consumable']['consume'](_0x392a40['markerRange'],_0x371804['name']))return;const _0x3f583e=_0x392a40['markerRange']['start']['nodeAfter'],_0xfe6347=_0x392a40['markerRange']['end']['nodeBefore'],_0x4ad3fd=_0x3f583e['parent']['parent'],{column:_0x81cbe4}=_0x478f8d['getCellLocation'](_0x3f583e),{column:_0x51d56b}=_0x478f8d['getCellLocation'](_0xfe6347);for(let _0x5ae294=_0x81cbe4;_0x5ae294<=_0x51d56b;_0x5ae294++){const _0x20f478=_0x478f8d['createTableWalker'](_0x4ad3fd,{'column':_0x5ae294,'includeAllSlots':!0x1});for(const _0x95baaf of _0x20f478){const _0x2a1348=_0x95baaf['cell'],_0x4e4f27=_0x34c520['mapper']['toViewElement'](_0x2a1348);_0x34c520['writer']['addClass']('ck-suggestion-marker-'+_0x4c28b3,_0x4e4f27),_0x5509c9&&_0x34c520['writer']['setAttribute']('data-suggestion',_0x5076f9,_0x4e4f27),_0x34c520['mapper']['bindElementToMarker'](_0x4e4f27,_0x392a40['markerName']),_0x2b2b4c&&(_0x4646ed['activeMarkers']['includes'](_0x392a40['markerName'])?_0x34c520['writer']['addClass']('ck-suggestion-marker--active',_0x4e4f27):_0x34c520['writer']['removeClass']('ck-suggestion-marker--active',_0x4e4f27));}}};}_0x4646ed['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2966f5),_0x4646ed['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2966f5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x372ab0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x9f3862,_0x34a15a,_0x50c166)=>{_0x50c166['options']['showSuggestionHighlights']&&_0x372ab0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x9f3862,_0x34a15a,_0x50c166);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x396c65,_0x4626aa,_0x2e2aae)=>{const {type:_0x1f51c6,id:_0x2c87b1}=_0x4646ed['_splitMarkerName'](_0x4626aa['markerName']),_0x4d6b61=_0x4646ed['getSuggestion'](_0x2c87b1),_0x15557d=_0x4d6b61['data'];if('formatBlock'!=_0x4d6b61['type']||!_0x15557d||'setTableColumnHeader'!=_0x15557d['commandName'])return;const _0x27195a=_0x2e2aae['mapper']['markerNameToElements'](_0x4626aa['markerName']);if(_0x27195a){for(const _0x4cf0f9 of _0x27195a)_0x2e2aae['writer']['removeClass']('ck-suggestion-marker-'+_0x1f51c6,_0x4cf0f9),_0x2e2aae['writer']['removeClass']('ck-suggestion-marker--active',_0x4cf0f9),_0x2e2aae['writer']['removeAttribute']('data-suggestion',_0x4cf0f9),_0x2e2aae['mapper']['unbindElementFromMarkerName'](_0x4cf0f9,_0x4626aa['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25e5e6=this['editor'],_0x5557a6=_0x25e5e6['locale'];function _0x47b182(_0x1a5913){return{'type':'format','content':c(_0x5557a6,'*Format:*\x20%0',_0x1a5913)};}_0x25e5e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39c335=>{if('formatBlock'!=_0x39c335['type'])return;const {data:_0x518770}=_0x39c335;if(_0x518770){if('setTableRowHeader'==_0x518770['commandName']){const _0x310f65=_0x518770['commandParams'][0x0]['forceValue'];return _0x47b182(c(_0x5557a6,_0x310f65?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x518770['commandName']){const _0x253699=_0x518770['commandParams'][0x0]['forceValue'];return _0x47b182(c(_0x5557a6,_0x253699?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0xac175e{['afterInit'](){const _0x446ea8=this['editor'],_0x5147a1=_0x446ea8['locale'],_0x394a91=_0x446ea8['plugins']['get']('TrackChangesEditing');function _0x154df6(_0x314c2c){return{'type':'format','content':''+c(_0x5147a1,'*Set\x20table\x20type:*\x20%0',_0x314c2c)};}_0x446ea8['plugins']['has']('TableLayout')&&(_0x394a91['enableCommand']('insertTableLayout'),_0x394a91['enableDefaultAttributesIntegration']('tableType'),_0x394a91['registerBlockAttribute']('tableType'),_0x394a91['descriptionFactory']['registerElementLabel'](_0x4f13a1=>_0x4f13a1['is']('element','table')&&'layout'===_0x4f13a1['getAttribute']('tableType'),_0x48c025=>c(_0x5147a1,'ELEMENT_LAYOUT_TABLE',_0x48c025)),_0x394a91['descriptionFactory']['registerDescriptionCallback'](_0x29cfd3=>{const {data:_0x4cd2c9}=_0x29cfd3;if(_0x4cd2c9&&'tableType'==_0x4cd2c9['key'])switch(_0x4cd2c9['newValue']){case'layout':return _0x154df6(c(_0x5147a1,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x154df6(c(_0x5147a1,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x467c31=>[_0x467c31,null]));class $t extends _0xac175e{static get['requires'](){return[Ct];}['afterInit'](){const _0x4e1665=this['editor'];if(!_0x4e1665['plugins']['has']('TableClipboard'))return;const _0x2645ac=_0x4e1665['plugins']['get']('TrackChangesEditing'),_0x5b23ca=_0x4e1665['plugins']['get']('TableUtils'),_0x444edb=_0x4e1665['plugins']['get'](Ct),_0x11895c=_0x4e1665['plugins']['get']('TableClipboard'),_0x477d11=_0x4e1665['plugins']['get']('TableSelection'),_0x5e07c6=_0x4e1665['plugins']['get'](_0x429f1d);_0x444edb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4e1665['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4e1665['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xf30dd6=null,_0x5ea37d=!0x1;_0x5e07c6['on']('contentInsertion',(_0x305fc7,_0x5907d6)=>{_0x5ea37d='paste'===_0x5907d6['method'];}),_0x4e1665['model']['on']('insertContent',(_0x3e3771,_0x53ce32)=>{if(!_0x5ea37d&&null===_0x477d11['getSelectedTableCells']())return;const [_0x54024a,_0x42bc21]=_0x53ce32,_0x5a40a9=_0x53ce32[_0x53ce32['length']-0x1];_0x5a40a9&&_0x5a40a9['forceDefaultExecution']||_0x2645ac['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x519904,_0x234abe,_0x191508,_0x2b5567,_0x2a9f74){if(_0x234abe&&!_0x234abe['is']('documentSelection'))return!0x1;const _0x4d1178=_0x2a9f74['getTableIfOnlyTableInContent'](_0x519904,_0x191508);if(!_0x4d1178||!He(_0x4d1178,void 0x0,_0x2b5567))return!0x1;const _0x3763ee=_0x2b5567['getSelectionAffectedTableCells'](_0x191508['document']['selection']);if(!_0x3763ee['length'])return!0x1;const _0x26fc05=_0x3763ee[0x0]['findAncestor']('table'),_0x5c4feb=_0x2b5567['getRowIndexes'](_0x3763ee),_0x13a639=_0x2b5567['getColumnIndexes'](_0x3763ee),_0x214b25={'startRow':_0x5c4feb['first'],'endRow':_0x5c4feb['last'],'startColumn':_0x13a639['first'],'endColumn':_0x13a639['last']};return 0x1==_0x3763ee['length']&&(_0x214b25['endRow']+=_0x2b5567['getRows'](_0x4d1178)-0x1,_0x214b25['endColumn']+=_0x2b5567['getColumns'](_0x4d1178)-0x1),He(_0x26fc05,_0x214b25,_0x2b5567);}(_0x54024a,_0x42bc21,_0x4e1665['model'],_0x5b23ca,_0x11895c)&&(_0x3e3771['stop'](),_0xf30dd6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4e1665['model']['change'](()=>{_0x4e1665['model']['insertContent'](_0x53ce32[0x0],_0x53ce32[0x1],_0x53ce32[0x2],{'forceDefaultExecution':!0x0});const _0x1a30a5=_0xbf3332(),{rowInsertionRanges:_0x5415b7,columnInsertionRanges:_0x421bd3,insertionRanges:_0x2c4856,deletionRanges:_0xc9c289,cells:_0x526978}=_0xf30dd6;_0x5415b7['length']&&_0x2645ac['markMultiRangeInsertion'](_0x5415b7,'tablePasteRow',{'tablePasteChainId':_0x1a30a5}),_0x421bd3['length']&&_0x2645ac['markMultiRangeInsertion'](_0x421bd3,'tablePasteColumn',{'tablePasteChainId':_0x1a30a5}),_0x2c4856['length']&&(_0x2645ac['markMultiRangeInsertion'](_0x2c4856,'tablePaste',{'tablePasteChainId':_0x1a30a5,'skipNestingCheck':!0x0}),_0x2c4856['forEach'](_0x51cd16=>_0x51cd16['detach']?.())),_0xc9c289['length']&&(_0x2645ac['markMultiRangeDeletion'](_0xc9c289,'tablePaste',{'tablePasteChainId':_0x1a30a5,'skipNestingCheck':!0x0}),_0xc9c289['forEach'](_0x136a77=>_0x136a77['detach']?.()));const _0x3d98de=_0x2645ac['markMultiRangeBlockFormat'](_0x526978['map'](({element:_0x3155e9})=>_0x3155e9),{'formatGroupId':_0xbf3332()},[],'tablePasteCell',{'tablePasteChainId':_0x1a30a5});if(_0x3d98de){const _0x1be45f=_0x3d98de['getMarkers'](),_0x3f9c5f=[];for(const {element:_0x93e698,attributes:_0x456f75}of _0x526978){if(!_0x456f75)continue;const _0x50a0e9=_0x4e1665['model']['createRangeOn'](_0x93e698),_0x1c41fb=_0x1be45f['find'](_0xa3e542=>_0xa3e542['getRange']()['isEqual'](_0x50a0e9));_0x1c41fb&&_0x3f9c5f['push']([_0x1c41fb['name'],_0x456f75]);}_0x3f9c5f['length']&&_0x3d98de['setAttribute']('markerAttributes',Object['fromEntries'](_0x3f9c5f));}_0xf30dd6=null;}));},{'priority':_0x59a01c['high']+0xa}),_0x5e07c6['on']('contentInsertion',()=>{_0x5ea37d=!0x1;},{'priority':'lowest'}),_0x4e1665['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4d0f15,_0x49adcc)=>{const [_0x44374d,_0x228dee,,_0x5b4bcd]=_0x49adcc;if(!_0xf30dd6)return;_0x4d0f15['stop']();const _0x36e9f9=_0x44374d['cell'],_0x356726=_0x228dee,_0x44a5a0=De(_0x36e9f9),_0x4873f2=De(_0x356726);_0x4d0f15['return']=_0x36e9f9;let _0x227b7d=null,_0x3ae24c=null;if(_0x4873f2||_0x44a5a0){if(_0x44a5a0&&!_0x4873f2){_0x5b4bcd['remove'](_0x36e9f9['getChild'](0x0));for(const _0x5098e7 of Array['from'](_0x356726['getChildren']()))_0x5b4bcd['insert'](_0x5098e7,_0x36e9f9,'end');const _0x377352=_0xf30dd6['rowInsertionIndexes']['includes'](_0x44374d['row']),_0x5d3ac5=_0xf30dd6['columnInsertionIndexes']['includes'](_0x44374d['column']);_0x377352||_0x5d3ac5||(_0x227b7d=_0x5b3987['fromRange'](_0x5b4bcd['createRangeIn'](_0x36e9f9)));}else _0x4873f2&&!_0x44a5a0&&(_0x3ae24c=_0x5b4bcd['createRangeIn'](_0x36e9f9));}else{const _0x552580=_0x5b4bcd['createElement']('tableCellSuggestion'),_0x51c9e5=_0x5b4bcd['createElement']('tableCellSuggestion');_0x5b4bcd['wrap'](_0x5b4bcd['createRangeIn'](_0x36e9f9),_0x51c9e5),_0x5b4bcd['insert'](_0x552580,_0x36e9f9,0x0);for(const _0x5172f5 of Array['from'](_0x356726['getChildren']()))_0x5b4bcd['insert'](_0x5172f5,_0x552580,'end');_0x227b7d=_0x5b3987['fromRange'](_0x5b4bcd['createRangeOn'](_0x552580)),_0x3ae24c=_0x5b3987['fromRange'](_0x5b4bcd['createRangeOn'](_0x51c9e5));}const _0x2d8b3a=Array['from'](_0x356726['getAttributes']())['filter'](([_0x160eca])=>Oe['includes'](_0x160eca));_0xf30dd6['cells']['push']({'element':_0x36e9f9,'attributes':_0x2d8b3a['length']?Object['fromEntries'](_0x2d8b3a):null}),_0x227b7d&&_0xf30dd6['insertionRanges']['push'](_0x227b7d),_0x3ae24c&&_0xf30dd6['deletionRanges']['push'](_0x3ae24c);},{'priority':'high'}),_0x5b23ca['on']('insertColumns',(_0x4e2541,_0x29da4f)=>{const [_0x2ac174,_0xbf5a16={}]=_0x29da4f;if(!_0xf30dd6)return;const _0xf2ab2f=_0xbf5a16['at']||0x0,_0x5f30b4=_0xbf5a16['columns']||0x1;_0xf30dd6['columnInsertionIndexes']=new Array(_0x5f30b4)['fill'](_0xf2ab2f)['map']((_0x1e571c,_0x236082)=>_0x1e571c+_0x236082);for(const {cell:_0x51d3ad}of _0x5b23ca['createTableWalker'](_0x2ac174,{'startColumn':_0xf2ab2f,'endColumn':_0xf2ab2f+_0x5f30b4-0x1}))_0xf30dd6['columnInsertionRanges']['push'](_0x4e1665['model']['createRangeOn'](_0x51d3ad));},{'priority':'low'}),_0x5b23ca['on']('insertRows',(_0x4da840,_0x262b7f)=>{const [_0x2dffaf,_0x3f8dfc={}]=_0x262b7f;if(!_0xf30dd6)return;const _0x4d4974=_0x3f8dfc['at']||0x0,_0x339288=_0x3f8dfc['rows']||0x1;_0xf30dd6['rowInsertionIndexes']=new Array(_0x339288)['fill'](_0x4d4974)['map']((_0x45e3fa,_0x4f7446)=>_0x45e3fa+_0x4f7446);for(const {cell:_0x7d9e53}of _0x5b23ca['createTableWalker'](_0x2dffaf,{'startRow':_0x4d4974,'endRow':_0x4d4974+_0x339288-0x1}))_0xf30dd6['rowInsertionRanges']['push'](_0x4e1665['model']['createRangeOn'](_0x7d9e53));},{'priority':'low'}),_0x2645ac['descriptionFactory']['registerDescriptionCallback'](_0x10e975=>{if(_0x10e975['subType']&&_0x10e975['subType']['startsWith']('tablePaste'))return _0x10e975['previous']?{}:{'type':'insertion','content':c(_0x4e1665['locale'],'*Replace\x20table\x20cells*')};});const _0x74171d=()=>!0x1;for(const _0x31b7b4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2645ac['_suggestionFactory']['registerCustomCallback']('insertion',_0x31b7b4,'join',_0x74171d),_0x2645ac['_suggestionFactory']['registerCustomCallback']('deletion',_0x31b7b4,'join',_0x74171d),_0x2645ac['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x31b7b4,'join',_0x74171d);_0x2645ac['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x74171d),_0x2645ac['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x385615,_0x1af053,_0x3b27a7)=>{const _0x153f41=_0x385615['map'](_0x1142c1=>_0x1142c1['getContainedElement']())['filter'](_0x46ba6c=>_0x46ba6c),_0x4bf13e=new Map(_0x153f41['map'](_0x40d76f=>[_0x40d76f,null]));if(_0xf30dd6){for(const {element:_0x18c838,attributes:_0x2f48cd}of _0xf30dd6['cells'])_0x2f48cd&&_0x4bf13e['set'](_0x18c838,_0x2f48cd);}else{if(_0x3b27a7&&_0x3b27a7['markerAttributes'])for(const [_0x40c3ad,_0x2d6fd4]of Object['entries'](_0x3b27a7['markerAttributes'])){const _0x110ee2=_0x4e1665['model']['markers']['get'](_0x40c3ad),_0x1da763=_0x110ee2?_0x110ee2['getRange']()['getContainedElement']():null;_0x1da763&&_0x4bf13e['set'](_0x1da763,_0x2d6fd4);}}_0x4e1665['model']['change'](_0x4b42a8=>{for(const [_0x386fe3,_0x58ea4d]of _0x4bf13e)_0x4b42a8['setAttributes']({...Ue,..._0x58ea4d},_0x386fe3);});});const _0x2316fd=(_0x3d4643,_0x537f4a)=>{_0x2645ac['_suggestionFactory']['registerCustomCallback'](_0x3d4643,'tablePaste',_0x537f4a,(_0x36dc0e,_0x1f9ed9,_0x9591c7)=>{_0x4e1665['model']['change'](_0x775dd6=>{const _0xab5fb9=[];for(const _0x1aaf52 of _0x36dc0e){const _0x4b0d33=_0x1aaf52['start']['nodeAfter'];_0x4b0d33['is']('element','tableCellSuggestion')&&_0xab5fb9['push'](_0x4b0d33);}_0x2645ac['_suggestionFactory']['getSuggestionCallback'](_0x3d4643,null,_0x537f4a)(_0x36dc0e,_0x1f9ed9,_0x9591c7);for(const _0x272987 of _0xab5fb9)'$graveyard'!=_0x272987['root']['rootName']&&_0x775dd6['unwrap'](_0x272987);});});};_0x2316fd('insertion','accept'),_0x2316fd('insertion','discard'),_0x2316fd('deletion','accept'),_0x2316fd('deletion','discard'),_0x2645ac['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x35f8e6=>{const _0x59e369=_0x35f8e6['map'](_0x536bd2=>_0x536bd2['getContainedElement']()),_0x1bba70=_0x59e369[0x0]['findAncestor']('table'),{minRow:_0x4a4eef,maxRow:_0x50cace}=_0x444edb['_getCoordsForCells'](_0x59e369);_0x5b23ca['removeRows'](_0x1bba70,{'at':_0x4a4eef,'rows':_0x50cace-_0x4a4eef+0x1});}),_0x2645ac['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x21fd6f=>{const _0x25d0d3=_0x21fd6f['map'](_0x17c963=>_0x17c963['getContainedElement']()),_0x53213f=_0x25d0d3[0x0]['findAncestor']('table'),{minColumn:_0x10557e,maxColumn:_0x5b568f}=_0x444edb['_getCoordsForCells'](_0x25d0d3);_0x5b23ca['removeColumns'](_0x53213f,{'at':_0x10557e,'columns':_0x5b568f-_0x10557e+0x1});});const _0x147230=(_0x313d98,_0x4965a8)=>{if(!_0x4965a8['subType']||!_0x4965a8['subType']['startsWith']('tablePaste'))return;const _0x1963c2=_0x4965a8['attributes']['tablePasteChainId'],_0x47a47a=_0x2645ac['getSuggestions']()['filter'](_0x517bc8=>_0x517bc8['isInContent']&&_0x517bc8['attributes']&&_0x517bc8['attributes']['tablePasteChainId']==_0x1963c2);_0x47a47a['length']&&_0x4965a8['getAllAdjacentSuggestions']()['length']!=_0x47a47a['length']&&_0x47a47a['reduce']((_0x2770b2,_0x23261e)=>(_0x2770b2['next']=_0x23261e,_0x23261e['previous']=_0x2770b2,_0x23261e));};function _0x46206a(_0x4f89e1,_0x485659=!0x0){const {id:_0x1fe953,authorId:_0x5bba5c}=_0x2645ac['_splitMarkerName'](_0x4f89e1['markerName']),_0x5ebd71=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x495c42=_0x2645ac['activeMarkers']['includes'](_0x4f89e1['markerName']);return _0x495c42&&_0x5ebd71['push']('ck-suggestion-marker--active'),{'classes':_0x5ebd71,'attributes':{'data-suggestion':_0x1fe953,'data-author-id':_0x5bba5c},'priority':_0x495c42&&_0x485659?0xbc2:0xbb8};}_0x2645ac['on']('suggestionLoaded',_0x147230,{'priority':'high'}),_0x2645ac['on']('suggestionUnloaded',_0x147230,{'priority':'high'}),_0x4e1665['model']['document']['registerPostFixer'](()=>{let _0x599635=!0x1;const _0x1fb923=Array['from'](_0x4e1665['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x40dba5,data:_0x52dd89}of _0x1fb923){const {group:_0x27f8c7,type:_0x310184,id:_0xc611e5}=_0x2645ac['_splitMarkerName'](_0x40dba5);if('suggestion'!=_0x27f8c7||'deletion'!=_0x310184||_0x52dd89['oldRange'])continue;if(!_0x2645ac['hasSuggestion'](_0xc611e5))continue;const _0x483948=_0x2645ac['getSuggestion'](_0xc611e5)['getRanges'](),_0x463caa=_0x4e1665['plugins']['get']('Users')['me'];for(const _0x3c115f of _0x2645ac['getSuggestions']()){if(!_0x3c115f['isInContent']||_0x3c115f['author']!=_0x463caa)continue;if('formatBlock'!=_0x3c115f['type']||'tablePasteCell'!=_0x3c115f['subType'])continue;if(_0x3c115f['getRanges']()['every'](_0x1016e4=>_0x483948['some'](_0x325c63=>_0x325c63['containsRange'](_0x1016e4,!0x0)))){for(const _0x5f42b4 of _0x3c115f['getAllAdjacentSuggestions']())_0x5f42b4['isInContent']&&(_0x5f42b4['discard'](),_0x599635=!0x0);}}}return _0x599635;}),_0x4e1665['model']['document']['registerPostFixer'](_0x3a246b=>{const _0x1d67e1=_0x4e1665['commands']['get']('redo');if(!_0x1d67e1||!_0x1d67e1['_createdBatches']['has'](_0x3a246b['batch']))return!0x1;let _0x38f92b=!0x1;const _0x5eddcc=_0x4e1665['plugins']['get']('Users')['me'],_0x1e9480=_0x4e1665['model']['document']['differ']['getChanges'](),_0x110ddc=Array['from'](_0x4e1665['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x425b3d,data:_0x33421a})=>{const {group:_0x449c21,subType:_0x2a6002,authorId:_0x5784d8}=_0x2645ac['_splitMarkerName'](_0x425b3d);return'suggestion'==_0x449c21&&'tablePaste'==_0x2a6002&&_0x5784d8==_0x5eddcc['id']&&!_0x33421a['oldRange'];});for(const _0x4c52fd of _0x1e9480){if('insert'!=_0x4c52fd['type']||'tableCellSuggestion'!=_0x4c52fd['name']||0x1!=_0x4c52fd['length'])continue;const _0x8b731a=_0x3a246b['createRange'](_0x4c52fd['position'],_0x4c52fd['position']['getShiftedBy'](0x1));if(!_0x110ddc['find'](({data:_0x4b107d})=>_0x4b107d['newRange']['isEqual'](_0x8b731a))){for(const {name:_0x17b600,data:_0x3bd722}of _0x110ddc)if(_0x8b731a['containsRange'](_0x3bd722['newRange'])){_0x3a246b['updateMarker'](_0x17b600,{'range':_0x8b731a}),_0x38f92b=!0x0;break;}}}return _0x38f92b;}),_0x4e1665['model']['document']['registerPostFixer'](_0x35c2f5=>{let _0x28096c=!0x1;const _0x1cf552=_0x4e1665['plugins']['get']('Users')['me'],_0x572141=_0x2645ac['getSuggestions']()['filter'](_0x5f4815=>_0x5f4815['isInContent']&&_0x5f4815['author']==_0x1cf552),_0x5457c8=new Set(),_0x211594=new Set();for(const _0x7e4a75 of _0x572141)if('tablePaste'==_0x7e4a75['subType'])for(const _0x330aab of _0x7e4a75['getMarkers']()){const _0xc04aec=_0x330aab['getRange']()['getContainedElement']();if(_0xc04aec){if(_0xc04aec['is']('element','tableCellSuggestion')&&De(_0xc04aec)){_0x7e4a75['removeMarker'](_0x330aab['name']),_0x5457c8['add'](_0xc04aec),_0x28096c=!0x0;const _0x5ab0c4=_0xc04aec['nextSibling'],_0x358bb0=_0xc04aec['previousSibling'],_0x5555a8=_0x5ab0c4&&_0x5ab0c4['is']('element','tableCellSuggestion'),_0x247d9e=_0x358bb0&&_0x358bb0['is']('element','tableCellSuggestion');_0x5555a8&&!_0x5457c8['has'](_0x5ab0c4)&&_0x211594['add'](_0x5ab0c4),_0x247d9e&&!_0x5457c8['has'](_0x358bb0)&&_0x211594['add'](_0x358bb0);}else _0xc04aec['is']('element','paragraph')&&_0xc04aec['isEmpty']&&(_0x7e4a75['removeMarker'](_0x330aab['name']),_0x28096c=!0x0);}}else{if('tablePasteCell'==_0x7e4a75['subType']){if(!_0x7e4a75['attributes']||!_0x7e4a75['attributes']['tablePasteChainId'])continue;const _0x5a9858=_0x7e4a75['attributes']['markerAttributes'];if(_0x5a9858&&Object['keys'](_0x5a9858)['length'])continue;const _0x1957be=_0x7e4a75['attributes']['tablePasteChainId'];let _0x5cc024=!0x0,_0x356b54=!0x0;for(const _0x4a6013 of _0x572141)if(_0x4a6013['subType']&&_0x4a6013['subType']['startsWith']('tablePaste')){if(!_0x4a6013['attributes']['tablePasteChainId']){_0x356b54=!0x1;break;}if(_0x4a6013['id']!=_0x7e4a75['id']&&_0x4a6013['attributes']['tablePasteChainId']==_0x1957be){_0x5cc024=!0x1;break;}}_0x356b54&&_0x5cc024&&(_0x7e4a75['removeMarkers'](),_0x28096c=!0x0);}}for(const _0xa95a58 of _0x5457c8)_0x35c2f5['remove'](_0xa95a58);for(const _0x31ac10 of _0x211594)_0x35c2f5['unwrap'](_0x31ac10);return _0x28096c;}),_0x4e1665['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xec48c=>_0x46206a(_0xec48c),'converterPriority':'high'}),_0x4e1665['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3da5ed,_0x1984cf)=>_0x1984cf['options']['showSuggestionHighlights']?_0x46206a(_0x3da5ed,!0x1):null,'converterPriority':'high'});const _0x2cc67a=_0x4e1665['editing']['view'];this['listenTo'](_0x2cc67a['document'],'clipboardOutput',(_0x4655a0,_0x28c2ef)=>{const _0x3d0610=[];for(const _0x4ec707 of _0x2cc67a['createRangeIn'](_0x28c2ef['content'])['getItems']())_0x4ec707['is']('element','suggestion-td')&&_0x3d0610['push'](_0x4ec707);_0x2cc67a['change'](_0x2830d9=>{for(const _0x4d3597 of _0x3d0610)_0x2830d9['move'](_0x2830d9['createRangeIn'](_0x4d3597),_0x2830d9['createPositionBefore'](_0x4d3597)),_0x2830d9['remove'](_0x4d3597);});});}}function De(_0x4d68f0){if(_0x4d68f0['isEmpty'])return!0x0;const _0x959268=_0x4d68f0['getChild'](0x0);return _0x959268['is']('element','paragraph')&&_0x959268['isEmpty'];}function He(_0x2d0942,_0x3ab458={},_0x41d54d){for(const {isAnchor:_0x29cb8c,cellHeight:_0x6abf2d,cellWidth:_0x54cd78}of _0x41d54d['createTableWalker'](_0x2d0942,{'includeAllSlots':!0x0,..._0x3ab458}))if(!_0x29cb8c||0x1!=_0x6abf2d||0x1!=_0x54cd78)return!0x1;return!0x0;}class Bt extends _0xac175e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2a0168=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a0168['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2a0168['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2a0168['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a0168['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2a0168['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2a0168['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4e53b7,_0x15c69d){const _0x1a7314=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aa20a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3a6e0c=_0x15c69d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4a0425=_0x1aa20a['getColumnGroupElement'](_0x3a6e0c);let _0xa3dcb2=_0x4a0425?_0x1aa20a['getTableColumnsWidths'](_0x4a0425):null,_0x1ad1b3=_0x3a6e0c['getAttribute']('tableWidth')||null;const _0x4055f4=_0x15c69d['tableWidth']||_0x1ad1b3,_0x332a57=_0x15c69d['columnWidths']||_0xa3dcb2,_0x2a3d36=this['editor']['plugins']['get']('Users')['me'];for(const _0x39a6e9 of _0x1a7314['getSuggestions']()){const _0x42117a=_0x39a6e9['getContainedElement']();if('resizeTable'===_0x39a6e9['subType']&&_0x42117a===_0x3a6e0c){_0x39a6e9['author']!==_0x2a3d36&&_0x39a6e9['discard']();const _0x7103f6=_0x39a6e9['data']['commandParams'];_0x1ad1b3=_0x7103f6[0x0]['tableWidth'],_0xa3dcb2=_0x7103f6[0x0]['columnWidths'];break;}}_0x4e53b7({'table':_0x3a6e0c,'tableWidth':_0x4055f4,'columnWidths':_0x332a57}),_0x1a7314['markBlockFormat'](_0x3a6e0c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1ad1b3,'columnWidths':_0xa3dcb2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x353115){if('formatBlock'!=_0x353115['type']&&'formatInline'!=_0x353115['type'])return;const {data:_0x49d804}=_0x353115;if(_0x49d804&&'resizeTable'===_0x49d804['formatGroupId']){const _0x3df0d1='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x3df0d1)};}}}class xt extends _0xac175e{['afterInit'](){const _0xa86c62=this['editor'];_0xa86c62['plugins']['has']('Template')&&_0xa86c62['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0xac175e{['afterInit'](){const _0x33cd88=this['editor'];if(!_0x33cd88['commands']['get']('insertTableOfContents'))return;_0x33cd88['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x554dcd=_0x33cd88['plugins']['get']('TrackChangesEditing'),_0x245503=_0x33cd88['locale'];_0x554dcd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x382a0d=>c(_0x245503,'ELEMENT_TABLE_OF_CONTENTS',_0x382a0d));}}class Rt extends _0xac175e{['afterInit'](){const _0x1f2867=this['editor'];if(!_0x1f2867['plugins']['has']('Title'))return;const _0x49820e=_0x1f2867['plugins']['get']('TrackChangesEditing');_0x49820e['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1f2867['locale'],'ELEMENT_TITLE')),_0x1f2867['model']['document']['registerPostFixer'](_0x1f5820=>{let _0x5a4e9f=!0x1;const _0x43a9d7=Array['from'](_0x1f2867['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x27126a,data:_0xe9e006}of _0x43a9d7){const {group:_0x4f7916}=_0x49820e['_splitMarkerName'](_0x27126a);if('suggestion'!==_0x4f7916||!_0xe9e006['newRange'])continue;const _0x52c994=_0xe9e006['newRange'],_0x11573a=_0x52c994['end']['nodeBefore'];if(!_0x11573a||!_0x11573a['is']('element','title-content'))continue;if(!_0x52c994['start']['isTouching'](_0x52c994['end']))continue;const _0xdd3a5d=_0x1f2867['model']['schema']['getNearestSelectionRange'](_0x52c994['end'],'forward');if(_0xdd3a5d&&_0xdd3a5d['isCollapsed']){const _0x37879c=_0x1f5820['createRange'](_0x52c994['start'],_0xdd3a5d['start']);_0x37879c['isEqual'](_0x52c994)||(_0x1f5820['updateMarker'](_0x27126a,{'range':_0x37879c}),_0x5a4e9f=!0x0);}_0x5a4e9f||(_0x1f5820['removeMarker'](_0x27126a),_0x5a4e9f=!0x0);}return _0x5a4e9f;});}}class Tt extends _0xac175e{['afterInit'](){const _0x217eb7=this['editor'],_0x4f050c=_0x217eb7['plugins']['get']('TrackChangesEditing');_0x217eb7['plugins']['has']('Uploadcare')&&(_0x4f050c['enableCommand']('uploadcare'),_0x217eb7['plugins']['has']('UploadcareImageEdit')&&(_0x4f050c['enableCommand']('uploadcareImageEdit'),_0x4f050c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4f050c['registerBlockAttribute']('uploadcareImageId'),_0x4f050c['descriptionFactory']['registerDescriptionCallback'](_0xe37c17=>{if('attribute'!=_0xe37c17['type'])return;const {data:_0x278f99}=_0xe37c17;return _0x278f99&&'uploadcareImageId'==_0x278f99['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0xac175e{['afterInit'](){const _0x2b7262=this['editor'],_0x1e415d=_0x2b7262['plugins']['get']('TrackChangesEditing');_0x2b7262['plugins']['has']('UndoEditing')&&(_0x1e415d['enableCommand']('undo'),_0x1e415d['enableCommand']('redo'));}}class Ut extends _0xac175e{static get['requires'](){return[Ct];}['afterInit'](){const _0x5e6a44=this['editor'];if(!_0x5e6a44['plugins']['has']('TableCaptionEditing'))return;_0x5e6a44['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0xac175e{['tableProperties'];['tableCellProperties'];constructor(_0x1ed3c5){super(_0x1ed3c5),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x19bb29=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x142666 of this['tableProperties'])_0x19bb29['enableCommand'](_0x142666,(_0x4033c5,_0x9a4448)=>{const _0x39d59e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x142666,[_0x39d59e],this['tableProperties'],'tableProperties',_0x4033c5,_0x9a4448);});_0x19bb29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x19bb29['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x19bb29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x25c733,_0x1e3fdf)=>this['handleDiscardAction'](this['tableProperties'],_0x25c733,_0x1e3fdf)),_0x19bb29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4f4cb9 of this['tableCellProperties'])_0x19bb29['enableCommand'](_0x4f4cb9,(_0x30e55c,_0x1d2eae)=>{const _0x50816c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4f4cb9,_0x50816c,this['tableCellProperties'],'tableCellProperties',_0x30e55c,_0x1d2eae);});_0x19bb29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x19bb29['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x19bb29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5a19e9,_0x5e0445)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5a19e9,_0x5e0445)),_0x19bb29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x19bb29['descriptionFactory']['registerDescriptionCallback'](_0x29ffc2=>this['handleSuggestionDescription'](_0x29ffc2));}['_handlePropertyChange'](_0x2d3986,_0x959b21,_0x2c7952,_0x184cb0,_0x1b904a,_0x45ab31){const _0x69a787=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x45ab31['batch'],()=>{for(const _0x22bd18 of _0x959b21){if(this['_getSuggestion'](_0x22bd18,_0x184cb0))_0x1b904a(_0x45ab31);else{const _0x3ddffc={};for(const _0x425d6d of _0x2c7952){const _0xd99cf7=_0x22bd18['getAttribute'](_0x425d6d);void 0x0!==_0xd99cf7&&(_0x3ddffc[_0x425d6d]=_0xd99cf7);}_0x1b904a(_0x45ab31),_0x69a787['markBlockFormat'](_0x22bd18,{'commandParams':[_0x3ddffc]},[],_0x184cb0);}}});}['handleDiscardAction'](_0x57ee37,_0x4e7fdb,_0x5b2ce2){const _0x2fd5af=_0x4e7fdb[0x0]['start']['nodeAfter'],_0x3c10c9=_0x5b2ce2['commandParams'][0x0];this['editor']['model']['change'](_0x1b1529=>{for(const _0x4c8a81 of _0x57ee37)void 0x0!==_0x3c10c9[_0x4c8a81]?_0x1b1529['setAttribute'](_0x4c8a81,_0x3c10c9[_0x4c8a81],_0x2fd5af):_0x1b1529['removeAttribute'](_0x4c8a81,_0x2fd5af);});}['handleSuggestionDescription'](_0x544b60){if(_0x544b60['data'])switch(_0x544b60['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xe5e5,_0x32baf6){const _0x2e452c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x437f86 of _0x2e452c['getSuggestions']({'skipNotAttached':!0x0})){const _0x3ef61c=_0x437f86['getContainedElement']();if(_0x437f86['subType']===_0x32baf6&&_0x3ef61c===_0xe5e5)return _0x437f86;}return null;}}const u='$elementName';class p extends _0xac175e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x46023b,_0x2eb11e,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x531b33){super(_0x531b33),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1ce4d2,_0x4fad98,_0x5b7a5f,_0x5b7f87)=>{this['_model']['change'](()=>{for(const _0x4fa2e6 of[..._0x5b7f87,..._0x5b7a5f])this['_model']['markers']['has'](_0x4fa2e6)&&_0x531b33['editing']['reconvertMarker'](_0x4fa2e6);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x531b33['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x531b33['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x531b33['config']['get']('trackChanges.trackFormatChanges'),_0x531b33['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x531b33['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x531b33,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x465b95=this['editor'],_0xd1c342=(_0x51196d,_0x1f0ad1)=>{if('attribute'!=_0x51196d)return'ck-suggestion-marker-'+_0x51196d;const _0x7cc3ef=_0x1f0ad1['split']('|')[0x0];return this['_isBlockAttribute'](_0x7cc3ef)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x465b95['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2378fa=>{const {id:_0x266c56,authorId:_0x4a972f,type:_0x5bab7d,subType:_0x4b928a}=this['_splitMarkerName'](_0x2378fa['markerName']),_0x1ef765=['ck-suggestion-marker',_0xd1c342(_0x5bab7d,_0x4b928a)];let _0x295b03=0xbb8;return this['activeMarkers']['includes'](_0x2378fa['markerName'])&&(_0x1ef765['push']('ck-suggestion-marker--active'),_0x295b03=0xbc2),'deletion'==_0x5bab7d&&(_0x295b03+=0x5),{'classes':_0x1ef765,'attributes':{'data-suggestion':_0x266c56,'data-author-id':_0x4a972f},'priority':_0x295b03};}}),_0x465b95['conversion']['for']('dataDowncast')['add'](_0x49c1f8=>{_0x49c1f8['on']('addMarker:suggestion',(_0x4a8900,_0x5f3962,_0x4b01ae)=>{if(!_0x4b01ae['options']['showSuggestionHighlights'])return;const _0x5245ab=_0x5f3962['item'];if(!_0x5245ab)return;const _0x5b1d13=_0x4b01ae['mapper']['toViewElement'](_0x5245ab);_0x465b95['model']['schema']['isObject'](_0x5245ab)&&_0x5b1d13&&!_0x5b1d13['getCustomProperty']('widget')&&_0x5b1d13['is']('containerElement')&&_0x2f5fe0(_0x5b1d13,_0x4b01ae['writer']);},{'priority':'high'});}),_0x465b95['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2a086e,_0x14cc8d)=>{if(!_0x14cc8d['options']['showSuggestionHighlights'])return null;const {id:_0x1bbab5,authorId:_0xc4e7de,type:_0x1ebac9,subType:_0x7fc316}=this['_splitMarkerName'](_0x2a086e['markerName']);return{'classes':['ck-suggestion-marker',_0xd1c342(_0x1ebac9,_0x7fc316)],'priority':0xbb8,'attributes':{'data-suggestion':_0x1bbab5,'data-author-id':_0xc4e7de}};}});const _0x46e13d=({showActiveMarkers:_0x1ff5c9=!0x0,isAttributeSuggestion:_0x2ea8d9=!0x1}={})=>(_0x1100d0,_0x14a07b,_0x6d482b)=>{if(!_0x14a07b['item'])return;const {id:_0x2eb58d,authorId:_0x179427}=this['_splitMarkerName'](_0x14a07b['markerName']);if(_0x2ea8d9){const _0x957976=this['_suggestions']['get'](_0x2eb58d),_0x49bd19=this['_getAttributeKey'](_0x957976);if(!this['_isBlockAttribute'](_0x49bd19))return;}if(_0x14a07b['item']['is']('selection'))return void _0x6d482b['consumable']['consume'](_0x14a07b['item'],_0x1100d0['name']);const _0x27ce04=_0x6d482b['mapper']['toViewElement'](_0x14a07b['item']);if(_0x14a07b['item']['is']('element')&&_0x465b95['model']['schema']['isBlock'](_0x14a07b['item'])&&!_0x27ce04['getCustomProperty']('addHighlight')){_0x6d482b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x27ce04),_0x6d482b['writer']['setAttribute']('data-suggestion',_0x2eb58d,_0x27ce04),_0x6d482b['writer']['setAttribute']('data-author-id',_0x179427,_0x27ce04),_0x6d482b['mapper']['bindElementToMarker'](_0x27ce04,_0x14a07b['markerName']),_0x1ff5c9&&(this['activeMarkers']['includes'](_0x14a07b['markerName'])?_0x6d482b['writer']['addClass']('ck-suggestion-marker--active',_0x27ce04):_0x6d482b['writer']['removeClass']('ck-suggestion-marker--active',_0x27ce04));for(const _0x4d4398 of _0x465b95['model']['createRangeIn'](_0x14a07b['item'])['getItems']())_0x6d482b['consumable']['consume'](_0x4d4398,_0x1100d0['name']);_0x6d482b['consumable']['consume'](_0x14a07b['item'],_0x1100d0['name']);}};_0x465b95['conversion']['for']('dataDowncast')['add'](_0x273fc5=>{_0x273fc5['on']('addMarker:suggestion:formatBlock',(_0x2480c8,_0x4b2824,_0xd59c9c)=>{_0xd59c9c['options']['showSuggestionHighlights']&&_0x46e13d({'showActiveMarkers':!0x1})(_0x2480c8,_0x4b2824,_0xd59c9c);},{'priority':'highest'});}),_0x465b95['conversion']['for']('dataDowncast')['add'](_0x5062d1=>{_0x5062d1['on']('addMarker:suggestion:attribute',(_0x1d36ab,_0x7ae389,_0x23ae6f)=>{_0x23ae6f['options']['showSuggestionHighlights']&&_0x46e13d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1d36ab,_0x7ae389,_0x23ae6f);},{'priority':'highest'});}),_0x465b95['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5d27b5,_0xe0c72c)=>{if(_0xe0c72c['options']['showSuggestionHighlights']){const {id:_0xc20f69,authorId:_0x4bb634}=this['_splitMarkerName'](_0x5d27b5);return _0x5d27b5['includes'](':split')||_0x5d27b5['includes'](':merge')?{'group':'suggestion','name':_0x5d27b5['substr'](0xb),'attributes':{'data-suggestion':_0xc20f69,'data-author-id':_0x4bb634}}:null;}return{'group':'suggestion','name':_0x5d27b5['substr'](0xb)};}}),_0x465b95['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x317ddf,{writer:_0x2b14c9})=>{let _0x509576='suggestion:'+_0x317ddf['getAttribute']('suggestion-type')+':'+_0x317ddf['getAttribute']('id');return _0x317ddf['getAttribute']('marker-count')&&(_0x509576+=':'+_0x317ddf['getAttribute']('marker-count')),_0x2b14c9['createElement']('$marker',{'data-name':_0x509576});}}),_0x465b95['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x465b95['conversion']['for']('editingDowncast')['add'](_0x6979b5=>{_0x6979b5['on']('addMarker:suggestion:formatBlock',_0x46e13d(),{'priority':'high'});}),_0x465b95['conversion']['for']('editingDowncast')['add'](_0x675bf4=>{_0x675bf4['on']('addMarker:suggestion:attribute',_0x46e13d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x465b95['conversion']['for']('editingDowncast')['add'](_0x26f8a9=>{_0x26f8a9['on']('removeMarker:suggestion:formatBlock',(_0x56c3f3,_0x91f4c2,_0x3d8354)=>{const _0x7cee87=_0x3d8354['mapper']['markerNameToElements'](_0x91f4c2['markerName']);if(_0x7cee87){for(const _0x3ead7a of _0x7cee87)_0x3ead7a['getCustomProperty']('addHighlight')||(_0x3d8354['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3ead7a),_0x3d8354['writer']['removeAttribute']('data-suggestion',_0x3ead7a),_0x3d8354['writer']['removeAttribute']('data-author-id',_0x3ead7a),_0x3d8354['mapper']['unbindElementFromMarkerName'](_0x3ead7a,_0x91f4c2['markerName']));}},{'priority':'high'});}),_0x465b95['conversion']['for']('editingDowncast')['add'](_0x3dc209=>{_0x3dc209['on']('removeMarker:suggestion:attribute',(_0xa57c20,_0x2e17d2,_0x4d80e3)=>{const _0x2563ae=_0x4d80e3['mapper']['markerNameToElements'](_0x2e17d2['markerName']);if(!_0x2563ae)return;const {id:_0x3cdfc3}=this['_splitMarkerName'](_0x2e17d2['markerName']),_0x4492ca=this['_suggestions']['get'](_0x3cdfc3),_0x113370=this['_getAttributeKey'](_0x4492ca);if(this['_isBlockAttribute'](_0x113370)){for(const _0x4de87b of _0x2563ae)_0x4de87b['getCustomProperty']('addHighlight')||(_0x4d80e3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4de87b),_0x4d80e3['writer']['removeAttribute']('data-suggestion',_0x4de87b),_0x4d80e3['writer']['removeAttribute']('data-author-id',_0x4de87b),_0x4d80e3['mapper']['unbindElementFromMarkerName'](_0x4de87b,_0x2e17d2['markerName']));}},{'priority':'high'});}),_0x465b95['model']['document']['registerPostFixer'](_0x265d47=>{let _0x2547fe=!0x1;const _0x522117=Array['from'](_0x465b95['model']['document']['differ']['getChangedMarkers']()),_0x38e3f5=new Set();for(const {name:_0xc6db9a,data:_0x4ade40}of _0x522117){const {group:_0x178d76,type:_0x7b8304,subType:_0x490fd0,id:_0x2136ba}=this['_splitMarkerName'](_0xc6db9a);if('suggestion'!==_0x178d76)continue;const _0xdbd1dd=this['_suggestions']['get'](_0x2136ba);if(null!=_0x4ade40['newRange']){'formatInline'==_0x7b8304&&(_0x2547fe=_0x2547fe||Jt(_0x4ade40['newRange'],_0xc6db9a,_0x265d47,_0x465b95['model']['schema']));const _0x2475c8='attribute'==_0x7b8304&&this['_isBlockAttribute'](_0x490fd0['split']('|')[0x0]);if(_0x4ade40['newRange']['isCollapsed']||'$graveyard'==_0x4ade40['newRange']['root']['rootName']||'formatBlock'==_0x7b8304&&!Ht(_0x4ade40['newRange'])||_0x2475c8&&!Ht(_0x4ade40['newRange'])||'deletion'==_0x7b8304&&!(!Lt(_0x393dd1=_0x4ade40['newRange'])&&!function(_0x2cbbe7){return _0x2cbbe7['start']['parent']==_0x2cbbe7['end']['nodeBefore']&&_0x2cbbe7['start']['isAtEnd'];}(_0x393dd1)))_0x265d47['removeMarker'](_0xc6db9a),_0x2547fe=!0x0;else{if(!_0xdbd1dd||!_0xdbd1dd['isInContent'])continue;if(_0x4ade40['newRange']&&_0x4ade40['oldRange']&&_0x4ade40['newRange']['isEqual'](_0x4ade40['oldRange']))continue;_0x38e3f5['add'](_0xdbd1dd);}}}var _0x393dd1;return _0x38e3f5['size']>0x0&&(_0x2547fe=!!this['_joinWithAdjacentSuggestions'](_0x38e3f5)||_0x2547fe),_0x2547fe;}),_0x465b95['model']['document']['registerPostFixer'](_0x420367=>{let _0x5176da=!0x1;for(const _0x519ab8 of _0x465b95['model']['document']['differ']['getChanges']())if('insert'==_0x519ab8['type'])for(const _0x3c94cd of this['_suggestions']['values']()){if(_0x3c94cd['isMultiRange']||!_0x3c94cd['isInContent'])continue;const _0x22b438='formatBlock'==_0x3c94cd['type'],_0x251b1e=this['_getAttributeKey'](_0x3c94cd),_0x4f5d73=_0x251b1e&&this['_isBlockAttribute'](_0x251b1e);if(!_0x22b438&&!_0x4f5d73)continue;const _0x5cde35=_0x3c94cd['getFirstRange']();if(_0x5cde35['start']['parent']!=_0x5cde35['end']['parent']&&!_0x5cde35['end']['isAtEnd']){const _0x2f897b=_0x465b95['model']['createPositionAt'](_0x5cde35['start']['nodeAfter'],'end'),_0xe2652a=_0x465b95['model']['createRange'](_0x5cde35['start'],_0x2f897b);_0x420367['updateMarker'](_0x3c94cd['getFirstMarker'](),{'range':_0xe2652a}),_0x5176da=!0x0;}}return _0x5176da;}),_0x465b95['model']['document']['registerPostFixer'](_0x5bc8ac=>this['_processAttributeChanges'](_0x5bc8ac)),_0x465b95['model']['document']['registerPostFixer'](_0x30a057=>!_0x30a057['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x30a057)),_0x465b95['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x465b95['model']['document']['on']('change:data',(_0x18d8a8,_0x369074)=>{if(!_0x369074['isLocal']||_0x369074['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xff0b9d=_0x465b95['model']['document']['differ']['getChanges']();if(0x0==_0xff0b9d['length'])return;const _0x324984=[],_0x19617c=_0xff0b9d['filter'](_0x46923f=>'attribute'==_0x46923f['type']),_0x85f547=_0xff0b9d['filter'](_0x3e9830=>'insert'==_0x3e9830['type']&&'$text'!=_0x3e9830['name']);for(const _0x52b7bf of _0x19617c)this['_isRegisteredAttribute'](_0x52b7bf['attributeKey'])&&_0x324984['push']({'key':_0x52b7bf['attributeKey'],'newValue':_0x52b7bf['attributeNewValue'],'oldValue':_0x52b7bf['attributeOldValue'],'range':qt(_0x52b7bf['range'],_0x465b95['model'])});for(const _0x1da6cc of _0x85f547){if('rename'!=_0x1da6cc['action']&&'refresh'!=_0x1da6cc['action'])continue;const _0x1d0637=zt(_0x1da6cc['position']['nodeAfter'],_0x465b95['model']),_0xef754b=_0x1da6cc['before'];'rename'==_0x1da6cc['action']&&_0x324984['push']({'key':u,'newValue':_0x1da6cc['name'],'oldValue':_0xef754b['name'],'range':_0x1d0637});for(const [_0x54d19a,_0x925aa]of _0xef754b['attributes']){if(!this['_isRegisteredAttribute'](_0x54d19a))continue;const _0x396a94=_0x1da6cc['attributes']['get'](_0x54d19a);_0x925aa!==_0x396a94&&_0x324984['push']({'key':_0x54d19a,'newValue':_0x396a94,'oldValue':_0x925aa,'range':_0x1d0637});}for(const [_0x568d55,_0x513e19]of _0x1da6cc['attributes'])this['_isRegisteredAttribute'](_0x568d55)&&(_0xef754b['attributes']['has'](_0x568d55)||_0x324984['push']({'key':_0x568d55,'newValue':_0x513e19,'oldValue':null,'range':_0x1d0637}));}0x0!=_0x324984['length']&&_0x465b95['model']['enqueueChange'](_0x369074,_0x194df4=>{const _0x3c953c=_0xbf3332();for(const {range:_0x2c276c,key:_0x33701e,oldValue:_0x1ceb92,newValue:_0x166d3a}of _0x324984)this['markAttributeChange'](_0x2c276c,_0x33701e,_0x1ceb92,_0x166d3a,{'groupId':_0x3c953c});this['_reduceExistingSuggestions'](_0x194df4,_0x324984);});},{'priority':'lowest'}),_0x465b95['model']['markers']['on']('update:suggestion',(_0x1c83c8,_0x19b803,_0x17bc26)=>{if(null==_0x17bc26){const {id:_0x395c0a}=this['_splitMarkerName'](_0x19b803['name']),_0x37b53d=this['_suggestions']['get'](_0x395c0a);_0x37b53d&&_0x37b53d['addMarkerName'](_0x19b803['name']);}}),_0x465b95['model']['document']['on']('change:data',()=>{const _0x846b03=Array['from'](_0x465b95['model']['document']['differ']['getChangedMarkers']())['filter'](_0xfdd52=>'suggestion'===this['_splitMarkerName'](_0xfdd52['name'])['group']);if(0x0===_0x846b03['length'])return;_0x846b03['sort']((_0x42941f,_0x17723e)=>{const _0x2d97b7=_0x42941f['data']['oldRange'],_0x3eb425=_0x17723e['data']['oldRange'];return null===_0x2d97b7&&null===_0x3eb425?0x0:null===_0x2d97b7&&null!==_0x3eb425?-0x1:null!==_0x2d97b7&&null===_0x3eb425?0x1:_0x2d97b7['start']['isBefore'](_0x3eb425['start'])?-0x1:0x1;});const _0x5f5bbf=new Set(),_0x23811a=new Set();for(const {name:_0x5ac1fc,data:_0x79936e}of _0x846b03){const {id:_0x3d3d41}=this['_splitMarkerName'](_0x5ac1fc);if(null===_0x79936e['oldRange']){const _0x4d0af1=this['_handleNewSuggestionMarker'](_0x5ac1fc);_0x23811a['add'](_0x4d0af1);}else{const _0x21856d=this['_suggestions']['get'](_0x3d3d41);null!==_0x79936e['newRange']||_0x21856d['isInContent']?(_0x5f5bbf['add'](_0x21856d['head']),_0x23811a['add'](_0x21856d)):this['_removeSuggestion'](_0x21856d);}}_0x23811a['size']>0x0&&this['_refreshSuggestionsChain'](_0x23811a);for(const _0x14ad2f of _0x5f5bbf)this['fire']('suggestionChanged',_0x14ad2f);}),_0x465b95['model']['on']('applyOperation',(_0x6ba1b1,_0x322e1c)=>{const _0x15d7ea=_0x322e1c[0x0];if(!this['_suggestions']['size'])return;if(!_0x15d7ea['isDocumentOperation'])return;if(_0x15d7ea['batch']['isUndo']||!_0x15d7ea['batch']['isLocal'])return;let _0x49ee92,_0x4a7f9e;switch(_0x15d7ea['type']){case'insert':_0x49ee92=_0x465b95['model']['createPositionAt'](_0x15d7ea['position']),_0x4a7f9e=_0x49ee92['getShiftedBy'](_0x15d7ea['howMany']);break;case'split':_0x49ee92=_0x465b95['model']['createPositionAt'](_0x15d7ea['splitPosition']),_0x4a7f9e=_0x465b95['model']['createPositionAt'](_0x15d7ea['moveTargetPosition']);break;case'move':_0x49ee92=_0x465b95['model']['createPositionAt'](_0x15d7ea['targetPosition']),_0x4a7f9e=_0x49ee92['getShiftedBy'](_0x15d7ea['howMany']);break;default:return;}const _0x171f24=_0x465b95['model']['createRange'](_0x49ee92,_0x4a7f9e);_0x465b95['model']['change'](()=>{for(const {suggestion:_0x55c812,meta:_0x1a72a0}of this['_findSuggestions'](_0x171f24)){if(_0x55c812['isMultiRange'])continue;if('formatInline'==_0x55c812['type'])continue;const _0x511256=this['_getAttributeKey'](_0x55c812);if(_0x511256&&this['_isBlockAttribute'](_0x511256)&&'split'!=_0x15d7ea['type'])continue;const _0x617963=_0x55c812['data']&&_0x55c812['data']['multipleBlocks'];('formatBlock'!=_0x55c812['type']||'split'==_0x15d7ea['type']&&!_0x617963)&&(_0x1a72a0['containsRangeInObject']||'insertion'==_0x55c812['type']&&_0x1a72a0['isOwn']||_0x55c812['getFirstRange']()['containsRange'](_0x171f24)&&this['_breakSuggestionMarker'](_0x55c812,_0x49ee92,_0x4a7f9e));}});},{'priority':'lowest'}),_0x465b95['model']['on']('deleteContent',(_0x14fb7a,_0x1011a1)=>{const _0x46b7b0=_0x1011a1[0x0],_0x5d05d7=_0x1011a1[0x1];if(_0x5d05d7&&_0x5d05d7['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x46b7b0['isCollapsed'])return;const _0x1db65f=_0x465b95['model']['schema'],{start:_0xa85ba6,end:_0xe3662}=_0x46b7b0['getFirstRange'](),_0x585604=_0xa85ba6['nodeAfter']&&_0x1db65f['isLimit'](_0xa85ba6['nodeAfter'])?null:_0x1db65f['getNearestSelectionRange'](_0xa85ba6,'forward'),_0x6b4552=_0xe3662['nodeBefore']&&_0x1db65f['isLimit'](_0xe3662['nodeBefore'])?null:_0x1db65f['getNearestSelectionRange'](_0xe3662,'backward'),_0x5e22e4=_0x465b95['model']['createRange'](_0x585604?_0x585604['start']:_0xa85ba6,_0x6b4552?_0x6b4552['end']:_0xe3662);_0x465b95['model']['change'](_0x49132c=>{this['markDeletion'](_0x5e22e4);const _0x3601f=_0x465b95['model']['schema']['getNearestSelectionRange'](_0x5e22e4['start']);_0x46b7b0['is']('documentSelection')?_0x49132c['setSelection'](_0x3601f):_0x46b7b0['setTo'](_0x3601f);}),_0x14fb7a['stop']();},{'priority':_0x59a01c['normal']+0xa}),_0x465b95['model']['on']('insertContent',(_0x17b6ba,_0x29c035)=>{const _0x43a2d4=_0x29c035[_0x29c035['length']-0x1];_0x43a2d4&&_0x43a2d4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x465b95['model']['change'](()=>{let _0x239844=_0x465b95['model']['insertContent'](_0x29c035[0x0],_0x29c035[0x1],_0x29c035[0x2],{'forceDefaultExecution':!0x0});if(!_0x239844)return;_0x17b6ba['return']=_0x239844['clone']();const _0x3b11ad=_0x239844['end']['nodeBefore'],_0x4eb9e6=_0x465b95['model']['schema'];_0x3b11ad&&_0x4eb9e6['isBlock'](_0x3b11ad)&&!_0x4eb9e6['isObject'](_0x3b11ad)&&(_0x239844=_0x465b95['model']['createRange'](_0x239844['start'],_0x465b95['model']['createPositionAt'](_0x3b11ad,'end'))),this['markInsertion'](_0x239844);}),_0x17b6ba['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf240ba=new x(_0x465b95,this['_suggestions']);_0x465b95['commands']['add']('acceptSuggestion',_0xf240ba),this['enableCommand']('acceptSuggestion');const _0x4a706d=new O(_0x465b95,this['_suggestions']);_0x465b95['commands']['add']('discardSuggestion',_0x4a706d),this['enableCommand']('discardSuggestion'),_0x465b95['commands']['add']('acceptAllSuggestions',new R(_0x465b95,_0xf240ba,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x465b95['commands']['add']('discardAllSuggestions',new R(_0x465b95,_0x4a706d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x465b95['commands']['add']('acceptSelectedSuggestions',new E(_0x465b95,_0xf240ba,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x465b95['commands']['add']('discardSelectedSuggestions',new E(_0x465b95,_0x4a706d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2d3e7b=_0x465b95['plugins']['get']('CommentsRepository');this['listenTo'](_0x2d3e7b,'addComment',(_0x71ba8f,{threadId:_0x2a2e4a})=>{const _0x3037dd=this['_suggestions']['get'](_0x2a2e4a);_0x3037dd&&_0x3037dd['commentThread']&&0x1===_0x3037dd['commentThread']['length']&&this['_updateSuggestionData'](_0x2a2e4a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2d3e7b,'removeComment',(_0x3875ae,{threadId:_0x5d7082})=>{const _0x2ae418=this['_suggestions']['get'](_0x5d7082);_0x2ae418&&_0x2ae418['commentThread']&&!_0x2ae418['commentThread']['length']&&this['_updateSuggestionData'](_0x5d7082,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2a22a1){const _0x5a4c83=_0x3d3dad([0x68,0x76,0x78,0x41,0x63,0x5a,0x4b,0x75,0x4a,0x65,0x67,0x79,0x46,0x6a,0x6c,0x6e,0x58,0x4d,0x73,0x51,0x70,0x42,0x4c,0x6d,0x55,0x61,0x62,0x59,0x69,0x6b,0x56,0x4e,0x53,0x32,0x6f,0x7a,0x38,0x31,0x30,0x48,0x49,0x72,0x50,0x66,0x57,0x35,0x52,0x77,0x45,0x33,0x43,0x36,0x74,0x37,0x64,0x54,0x39,0x34,0x4f,0x71,0x47,0x44]),_0x283567=0x78d62f32,_0x2e4dff=0x78d14432^_0x283567,_0x41e681=window[_0x3d3dad([0x44,0x61,0x74,0x65])][_0x3d3dad([0x6e,0x6f,0x77])](),_0x211a3f=_0x2a22a1[_0x3d3dad([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xba1f1c=new window[(_0x3d3dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x395dde=>{_0x211a3f[_0x3d3dad([0x6f,0x6e,0x63,0x65])](_0x3d3dad([0x72,0x65,0x61,0x64,0x79]),_0x395dde);}),_0x13610d={[_0x3d3dad([0x6b,0x74,0x79])]:_0x3d3dad([0x45,0x43]),[_0x3d3dad([0x75,0x73,0x65])]:_0x3d3dad([0x73,0x69,0x67]),[_0x3d3dad([0x63,0x72,0x76])]:_0x3d3dad([0x50,0x2d,0x32,0x35,0x36]),[_0x3d3dad([0x78])]:_0x3d3dad([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3d3dad([0x79])]:_0x3d3dad([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3d3dad([0x61,0x6c,0x67])]:_0x3d3dad([0x45,0x53,0x32,0x35,0x36])},_0x43fa6a=_0x211a3f[_0x3d3dad([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d3dad([0x67,0x65,0x74])](_0x3d3dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa624e2(){let _0x23d5c7,_0x39ee5f=null,_0xdd9c31=null;try{if(_0x43fa6a==_0x3d3dad([0x47,0x50,0x4c]))return _0x3d3dad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x23d5c7=_0x2cb19c(),!_0x23d5c7)return _0x3d3dad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x23d5c7[_0x3d3dad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xdd9c31=_0x155963(_0x23d5c7[_0x3d3dad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x23d5c7[_0x3d3dad([0x6a,0x74,0x69])])),await _0x221d47()?_0x549f0c()?_0x10af5b()?_0x3d3dad([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e938e()?(_0x23d5c7[_0x3d3dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d3dad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39ee5f=_0x55cab0(_0x3d3dad([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x23d5c7[_0x3d3dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d3dad([0x74,0x72,0x69,0x61,0x6c])&&(_0x39ee5f=_0x55cab0(_0x3d3dad([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37164b()):_0x3d3dad([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d3dad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d3dad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3d3dad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x10af5b(){const _0x2842eb=[_0x3d3dad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d3dad([0x74,0x72,0x69,0x61,0x6c])][_0x3d3dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23d5c7[_0x3d3dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x41e681/0x3e8:0xe10*_0x2e4dff;return _0x23d5c7[_0x3d3dad([0x65,0x78,0x70])]<_0x2842eb;}function _0x549f0c(){const _0x56af94=_0x23d5c7[_0x3d3dad([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x56af94)return!0x1;if(_0x56af94[_0x3d3dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3dad([0x2a])))return!0x0;if(_0x56af94[_0x3d3dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3dad([0x54,0x43])))return!0x0;if(_0x56af94[_0x3d3dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3dad([0x52,0x54,0x43]))){if(_0x13bac6())return!0x0;if(_0x5e0551()||_0x1444ec())return!0x0;}return!0x1;}function _0x3e938e(){const _0x2bb9f7=_0x23d5c7[_0x3d3dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2bb9f7||0x0==_0x2bb9f7[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2bae53}=new URL(window[_0x3d3dad([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2bb9f7[_0x3d3dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bae53))return!0x0;const _0x37f91a=_0x2bae53[_0x3d3dad([0x73,0x70,0x6c,0x69,0x74])](_0x3d3dad([0x2e]));return _0x2bb9f7[_0x3d3dad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x237b27=>_0x237b27[_0x3d3dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3dad([0x2a])))[_0x3d3dad([0x6d,0x61,0x70])](_0x4738fb=>_0x4738fb[_0x3d3dad([0x73,0x70,0x6c,0x69,0x74])](_0x3d3dad([0x2e])))[_0x3d3dad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a4520=>_0x5a4520[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x37f91a[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d3dad([0x6d,0x61,0x70])](_0x179da5=>Array(_0x37f91a[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x179da5[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d3dad([0x66,0x69,0x6c,0x6c])](_0x179da5[0x0]===_0x3d3dad([0x2a])?_0x3d3dad([0x2a]):'')[_0x3d3dad([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x179da5))[_0x3d3dad([0x73,0x6f,0x6d,0x65])](_0x3a2fc8=>_0x37f91a[_0x3d3dad([0x65,0x76,0x65,0x72,0x79])]((_0x121740,_0x345bf7)=>_0x3a2fc8[_0x345bf7]===_0x121740||_0x3a2fc8[_0x345bf7]===_0x3d3dad([0x2a])));}function _0x37164b(){return _0x39ee5f&&_0xdd9c31?new window[(_0x3d3dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c9d26,_0x28a9b5)=>{_0x39ee5f[_0x3d3dad([0x74,0x68,0x65,0x6e])](_0x4c9d26,_0x28a9b5),_0xdd9c31[_0x3d3dad([0x74,0x68,0x65,0x6e])](_0x5cd8c6=>{_0x5cd8c6!=_0x3d3dad([0x56,0x61,0x6c,0x69,0x64])&&_0x4c9d26(_0x5cd8c6);},_0x28a9b5);}):_0x39ee5f||_0xdd9c31||_0x3d3dad([0x56,0x61,0x6c,0x69,0x64]);}}function _0x155963(_0xaf6c9e,_0x5bc64a){return new window[(_0x3d3dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ebd77=>{if(_0x1af009())return _0x3ebd77(_0x3d3dad([0x56,0x61,0x6c,0x69,0x64]));_0x49c81e(),_0x211a3f[_0x3d3dad([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d3dad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x486e5d=!0x1;const _0x4dc836=_0xbf3332();function _0x5e2dd2(_0x3f11a4){return!!_0x3f11a4&&(typeof _0x3f11a4===_0x3d3dad([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3f11a4===_0x3d3dad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3f11a4[_0x3d3dad([0x74,0x68,0x65,0x6e])]===_0x3d3dad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3f11a4[_0x3d3dad([0x63,0x61,0x74,0x63,0x68])]===_0x3d3dad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5cea04(_0x57517c){_0x33a031(_0x57517c)[_0x3d3dad([0x74,0x68,0x65,0x6e])](_0x45b043=>{if(!_0x45b043||_0x45b043[_0x3d3dad([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d3dad([0x6f,0x6b]))return _0x3d3dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x36985b(_0x339ecc(_0x4dc836+_0x5bc64a))!=_0x45b043[_0x3d3dad([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d3dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d3dad([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d3dad([0x74,0x68,0x65,0x6e])](_0x180891=>(_0x122d66(),_0x180891),()=>{const _0x4e7b08=_0xd92e64();return null==_0x4e7b08?(_0x122d66(),_0x3d3dad([0x56,0x61,0x6c,0x69,0x64])):_0x3d3dad(_0x41e681-_0x4e7b08>(0x5cdaab32^_0x283567)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d3dad([0x74,0x68,0x65,0x6e])](_0x3ebd77)[_0x3d3dad([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ebd77(_0x3d3dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x45faa5=0x78e0c1b2^_0x283567;function _0x122d66(){const _0x4474bd=_0x3d3dad([0x6c,0x6c,0x63,0x74,0x2d])+_0x36985b(_0x339ecc(_0xaf6c9e)),_0x3512d1=_0x1c6dcb(_0x36985b(window[_0x3d3dad([0x4d,0x61,0x74,0x68])][_0x3d3dad([0x63,0x65,0x69,0x6c])](_0x41e681/_0x45faa5)));window[_0x3d3dad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d3dad([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4474bd,_0x3512d1);}function _0xd92e64(){const _0x568e97=_0x3d3dad([0x6c,0x6c,0x63,0x74,0x2d])+_0x36985b(_0x339ecc(_0xaf6c9e)),_0x380ecb=window[_0x3d3dad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d3dad([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x568e97);return _0x380ecb?window[_0x3d3dad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c6dcb(_0x380ecb),0x10)*_0x45faa5:null;}function _0x33a031(_0x1af7c9){return new window[(_0x3d3dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x232e6e,_0x43ec9a)=>{_0x1af7c9[_0x3d3dad([0x74,0x68,0x65,0x6e])](_0x232e6e,_0x43ec9a),window[_0x3d3dad([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43ec9a,0x78d7fbf2^_0x283567);});}}_0x211a3f[_0x3d3dad([0x6f,0x6e])](_0x3d3dad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c8a7d,_0x26e277)=>{if(_0x26e277[0x0]!=_0xaf6c9e)return _0x3ebd77(_0x3d3dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26e277[0x1]={..._0x26e277[0x1],[_0x3d3dad([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4dc836};},{[_0x3d3dad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d3dad([0x68,0x69,0x67,0x68])}),_0x211a3f[_0x3d3dad([0x6f,0x6e])](_0x3d3dad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x521b09=>{_0x5e2dd2(_0x521b09[_0x3d3dad([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x486e5d=!0x0,_0x5cea04(_0x521b09[_0x3d3dad([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d3dad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d3dad([0x6c,0x6f,0x77])}),_0xba1f1c[_0x3d3dad([0x74,0x68,0x65,0x6e])](()=>{_0x486e5d||_0x3ebd77(_0x3d3dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1af009(){return _0x211a3f[_0x3d3dad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d3dad([0x76,0x69,0x65,0x77])][_0x3d3dad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d3dad([0x61,0x75,0x74,0x6f]);}function _0x49c81e(){_0x211a3f[_0x3d3dad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d3dad([0x76,0x69,0x65,0x77])][_0x3d3dad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d3dad([0x61,0x75,0x74,0x6f]);}}function _0x55cab0(_0x40afeb){const _0x345383=[new window[(_0x3d3dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f419e=>setTimeout(_0x4f419e,0x78df11fe^_0x283567)),_0xba1f1c[_0x3d3dad([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d3dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23532b=>{let _0x53b599=0x0;_0x211a3f[_0x3d3dad([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3dad([0x6f,0x6e])](_0x3d3dad([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x21880a,_0x58f6c9)=>{_0x58f6c9[0x0][_0x3d3dad([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x53b599++,_0x53b599==(0x78d62eca^_0x283567)&&(_0x23532b(),_0x21880a[_0x3d3dad([0x6f,0x66,0x66])]());});}))];return window[_0x3d3dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d3dad([0x72,0x61,0x63,0x65])](_0x345383)[_0x3d3dad([0x74,0x68,0x65,0x6e])](()=>_0x40afeb);}async function _0x5aa110(){await _0xba1f1c,_0x211a3f[_0x3d3dad([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3dad([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c966f,_0x211a3f[_0x3d3dad([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3dad([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c966f,_0x211a3f[_0x3d3dad([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d3dad([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x13bac6(){return _0x37dc9c(_0x3d3dad([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2a314d(_0x3d3dad([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3d3dad([0x73,0x74,0x61,0x74,0x65])]==_0x3d3dad([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5e0551(){return _0x37dc9c(_0x3d3dad([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x1444ec(){return _0x37dc9c(_0x3d3dad([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1b4302(_0x1628b8){const _0x36b68d=_0x1323f3();_0x211a3f[_0x36b68d]=_0x3d3dad([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1628b8,_0x1628b8!=_0x3d3dad([0x56,0x61,0x6c,0x69,0x64])&&_0x5aa110();}function _0x1323f3(){const _0x272784=window[_0x3d3dad([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d3dad([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d3dad([0x6e,0x6f,0x77])]())[_0x3d3dad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d3dad([0x2e]),'');let _0x2240c4=_0x3d3dad([0x68]);for(let _0x176bba=0x0;_0x176bba<_0x272784[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x176bba+=0x2){let _0x42da3a=window[_0x3d3dad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x272784[_0x3d3dad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x176bba,_0x176bba+0x2));_0x42da3a>=_0x5a4c83[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42da3a-=_0x5a4c83[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2240c4+=_0x5a4c83[_0x42da3a];}return _0x2240c4;}function _0x2cb19c(){const _0x559e34=_0x43fa6a[_0x3d3dad([0x73,0x70,0x6c,0x69,0x74])](_0x3d3dad([0x2e]));if(0x3!=_0x559e34[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x254f7f(_0x559e34[0x1]);function _0x254f7f(_0x5dbfff){const _0x5ea715=_0x48e9e2(_0x5dbfff);return _0x5ea715&&_0x366a81()?_0x5ea715:null;function _0x366a81(){const _0x470fde=_0x5ea715[_0x3d3dad([0x6a,0x74,0x69])],_0x28386f=window[_0x3d3dad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x470fde[_0x3d3dad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x470fde[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x196bbd={..._0x5ea715,[_0x3d3dad([0x6a,0x74,0x69])]:_0x470fde[_0x3d3dad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x470fde[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x196bbd[_0x3d3dad([0x76,0x63])],_0x339ecc(_0x196bbd)==_0x28386f;}}}async function _0x221d47(){let _0x569b56=!0x0;try{const _0x2b2cca=_0x43fa6a[_0x3d3dad([0x73,0x70,0x6c,0x69,0x74])](_0x3d3dad([0x2e])),[_0x3b6173,_0x1a447d,_0x526347]=_0x2b2cca;return _0x4f64cd(_0x3b6173),await _0x4b165f(_0x3b6173,_0x1a447d,_0x526347),_0x569b56;}catch{return!0x1;}function _0x4f64cd(_0x55ab43){const _0x357355=_0x48e9e2(_0x55ab43);_0x357355&&_0x357355[_0x3d3dad([0x61,0x6c,0x67])]==_0x3d3dad([0x45,0x53,0x32,0x35,0x36])||(_0x569b56=!0x1);}async function _0x4b165f(_0x41b855,_0x45fe85,_0x5bccc2){const _0x39bc4a=window[_0x3d3dad([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d3dad([0x66,0x72,0x6f,0x6d])](_0x2043ef(_0x5bccc2),_0x7365ce=>_0x7365ce[_0x3d3dad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4753f9=new window[(_0x3d3dad([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d3dad([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41b855+_0x3d3dad([0x2e])+_0x45fe85),_0x4845ef=window[_0x3d3dad([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d3dad([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4845ef)return;const _0xac9a88=await _0x4845ef[_0x3d3dad([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d3dad([0x6a,0x77,0x6b]),_0x13610d,{[_0x3d3dad([0x6e,0x61,0x6d,0x65])]:_0x3d3dad([0x45,0x43,0x44,0x53,0x41]),[_0x3d3dad([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d3dad([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d3dad([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4845ef[_0x3d3dad([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d3dad([0x6e,0x61,0x6d,0x65])]:_0x3d3dad([0x45,0x43,0x44,0x53,0x41]),[_0x3d3dad([0x68,0x61,0x73,0x68])]:{[_0x3d3dad([0x6e,0x61,0x6d,0x65])]:_0x3d3dad([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xac9a88,_0x39bc4a,_0x4753f9)||(_0x569b56=!0x1);}}function _0x48e9e2(_0x17d8ea){return _0x17d8ea[_0x3d3dad([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d3dad([0x65,0x79]))?JSON[_0x3d3dad([0x70,0x61,0x72,0x73,0x65])](_0x2043ef(_0x17d8ea)):null;}function _0x2043ef(_0x3845a2){return window[_0x3d3dad([0x61,0x74,0x6f,0x62])](_0x3845a2[_0x3d3dad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d3dad([0x2b]))[_0x3d3dad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d3dad([0x2f])));}function _0x339ecc(_0x1d624f){let _0x396484=0x1505;function _0x330c9f(_0xcbccdc){for(let _0x23ecc8=0x0;_0x23ecc8<_0xcbccdc[_0x3d3dad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23ecc8++){const _0x32fc4b=_0xcbccdc[_0x3d3dad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23ecc8);_0x396484=(_0x396484<<0x5)+_0x396484+_0x32fc4b,_0x396484&=_0x396484;}}function _0x4e6eb5(_0x57a9ba){Array[_0x3d3dad([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x57a9ba)?_0x57a9ba[_0x3d3dad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e6eb5):_0x57a9ba&&typeof _0x57a9ba==_0x3d3dad([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d3dad([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x57a9ba)[_0x3d3dad([0x73,0x6f,0x72,0x74])]()[_0x3d3dad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55f51d,_0x35fa7d])=>{_0x330c9f(_0x55f51d),_0x4e6eb5(_0x35fa7d);}):_0x330c9f(window[_0x3d3dad([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x57a9ba));}return _0x4e6eb5(_0x1d624f),_0x396484>>>0x0;}function _0x36985b(_0xe1751){return _0xe1751[_0x3d3dad([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d3dad([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d3dad([0x30]));}function _0x1c6dcb(_0x5e8bc4){return _0x5e8bc4[_0x3d3dad([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d3dad([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d3dad([0x6a,0x6f,0x69,0x6e])]('');}function _0x37dc9c(_0x539e68){return _0x211a3f[_0x3d3dad([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d3dad([0x68,0x61,0x73])](_0x539e68);}function _0x2a314d(_0x29f379){return _0x211a3f[_0x3d3dad([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d3dad([0x67,0x65,0x74])](_0x29f379);}function _0x4c966f(){}function _0x3d3dad(_0x229b82){return _0x229b82['map'](_0x4c053a=>String['fromCharCode'](_0x4c053a))['join']('');}_0x1b4302(await _0xa624e2());}(this);}set['adapter'](_0x27dfad){if(this['_adapter'])throw new _0x3ebbb1('track-changes-adapter-already-set',this);this['_adapter']=_0x27dfad;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x36d031=!0x1,toJSON:_0x2ada54=!0x1}={}){const _0x497028=[];for(const _0xb99c41 of this['_suggestions']['values']())_0x36d031&&!_0xb99c41['isInContent']||_0x497028['push'](_0xb99c41);return _0x2ada54?_0x497028['map'](_0x92e0ce=>_0x92e0ce['toJSON']()):_0x497028;}['getSuggestion'](_0x3775cc){const _0x5ade04=this['_suggestions']['get'](_0x3775cc);if(!_0x5ade04)throw new _0x3ebbb1('track-changes-suggestion-not-found',this);return _0x5ade04;}['hasSuggestion'](_0x227b8b){return this['_suggestions']['has'](_0x227b8b);}['addSuggestionData'](_0x1b0016){const {authorId:_0x5a6fbb,id:_0x466bc9,originalSuggestionId:_0xa1357e,attributes:_0x12cb2d}=_0x1b0016,[_0x5a498d,_0x2fa86e]=_0x1b0016['type']['split'](':'),_0x37d1d0=this['_suggestions']['get'](_0x466bc9)||this['_createSuggestion'](_0x5a498d,_0x2fa86e,_0x466bc9,_0x5a6fbb,_0x12cb2d,_0xa1357e);if(this['_addThreadToSuggestion'](_0x37d1d0),this['_checkSuggestionCorrectness'](_0x37d1d0,_0x5a498d,_0x2fa86e||null,_0x5a6fbb),_0x37d1d0['createdAt']=_0x1b0016['createdAt'],_0x37d1d0['_isDataLoaded']=!0x0,_0x12cb2d&&_0x12cb2d['@external']){const _0x42fd75=_0x12cb2d['@external'],_0x130e1f=this['_getExternalAuthor'](_0x42fd75['authorName']);_0x37d1d0['authoredAt']=_0x42fd75['createdAt'],_0x37d1d0['author']=_0x130e1f,_0x37d1d0['isExternal']=!0x0;}else _0x37d1d0['authoredAt']=_0x1b0016['createdAt'];switch(_0x1b0016['data']&&(_0x37d1d0['data']=_0x1b0016['data']),_0x1b0016['attributes']&&(_0x37d1d0['attributes']=_0x1b0016['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x37d1d0['_saved']=!0x0),this['_suggestionState']['get'](_0x37d1d0)){case'notReady':this['_suggestionState']['set'](_0x37d1d0,'dataReady');break;case'markerReady':_0x37d1d0['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x37d1d0])),this['_refreshSuggestionsChain'](new Set([_0x37d1d0])),this['_suggestionState']['set'](_0x37d1d0,'ready'),this['fire']('suggestionLoaded',_0x37d1d0)):this['_suggestionState']['set'](_0x37d1d0,'removed');}return _0x37d1d0;}['acceptSuggestion'](_0xb44374){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5e5c95 of _0xb44374['getAllAdjacentSuggestions']())_0x5e5c95['accept']();});});}['discardSuggestion'](_0x572e51){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x23a589 of _0x572e51['getAllAdjacentSuggestions']())_0x23a589['discard']();});});}['enableCommand'](_0x2f5eeb,_0x5ba0d7){const _0x22bc8b=this['editor']['commands']['get'](_0x2f5eeb);if(!_0x22bc8b)throw new _0x3ebbb1('track-changes-command-not-found',this,{'commandName':_0x2f5eeb});if(this['_enabledCommands']['has'](_0x22bc8b))throw new _0x3ebbb1('track-changes-enable-command-twice',this,{'commandName':_0x2f5eeb});this['_enabledCommands']['add'](_0x22bc8b),_0x5ba0d7&&_0x22bc8b['on']('execute',(_0x55ae31,_0x45d0cb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x45d0cb['length']>0x0&&_0x45d0cb[_0x45d0cb['length']-0x1]&&_0x45d0cb[_0x45d0cb['length']-0x1]['forceDefaultExecution']?_0x45d0cb['pop']():(_0x55ae31['return']=_0x5ba0d7((..._0x2d2f7b)=>_0x22bc8b['execute'](..._0x2d2f7b,{'forceDefaultExecution':!0x0}),..._0x45d0cb),_0x55ae31['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5d63b2){let _0x4e988e,_0x1b1e12;const _0x103c45=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4e988e=_0x5d63b2();}catch(_0x47c747){_0x1b1e12=_0x47c747;}return _0x103c45||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1b1e12&&_0x3ebbb1['rethrowUnexpectedError'](_0x1b1e12,this),_0x4e988e;}['markInsertion'](_0x3c168a,_0x23eec3=null,_0x4c84fa={}){if(_0x3c168a['isCollapsed'])return null;const _0x1be08e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4c84fa['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x577516,meta:_0x5e06c7}of this['_findSuggestions'](_0x3c168a,'insertion'))if(_0x5e06c7['isOwn']){if(!_0x5e06c7['isNextTo']){if(_0x5e06c7['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x577516,_0x4c84fa))continue;return _0x577516;}if(Xt(_0x577516,_0x4c84fa))return _0x577516;this['_breakSuggestionMarker'](_0x577516,_0x3c168a['start'],_0x3c168a['end']);break;}if(_0x23eec3==_0x577516['subType']&&Xt(_0x577516,_0x4c84fa)){const _0x24ccc6=_0x577516['getFirstRange']();return _0x24ccc6['start']['isEqual'](_0x3c168a['end'])?this['_setSuggestionRange'](_0x577516,this['_model']['createRange'](_0x3c168a['start'],_0x24ccc6['end'])):this['_setSuggestionRange'](_0x577516,this['_model']['createRange'](_0x24ccc6['start'],_0x3c168a['end'])),_0x577516;}}const _0x342b38=_0xbf3332(),_0x312c29=_0x1be08e['id'],_0x2dca08=_0x23eec3?'insertion:'+_0x23eec3:'insertion',_0x3f3094=this['_setSuggestionData']({'id':_0x342b38,'type':_0x2dca08,'createdAt':new Date(),'authorId':_0x312c29,'attributes':_0x4c84fa});return this['_addSuggestionMarker'](_0x2dca08,_0x342b38,_0x312c29,_0x3c168a),_0x3f3094;}['markMultiRangeInsertion'](_0xdae06f,_0x5911f8='multi',_0xe56da7={}){const _0x5e5ea4=this['editor']['plugins']['get']('Users')['me'],_0x1b1bfb=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5911f8,'join');this['_trackingSessionId']&&(_0xe56da7['trackingSessionId']=this['_trackingSessionId']);for(const _0x4f983b of this['getSuggestions']())if(_0x4f983b['author']['id']==_0x5e5ea4['id']&&'insertion'==_0x4f983b['type']&&_0x4f983b['subType']==_0x5911f8&&Xt(_0x4f983b,_0xe56da7)&&(_0x1b1bfb(_0x4f983b['getRanges'](),_0xdae06f)||_0x1b1bfb(_0xdae06f,_0x4f983b['getRanges']()))){for(const _0xba765e of _0xdae06f)_0x4f983b['addRange'](_0xba765e);return _0x4f983b;}for(const {suggestion:_0xcf6b3e,meta:_0x4df37e}of this['_findSuggestions'](_0xdae06f,'insertion')){if(!_0x4df37e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4df37e['containsRangeInObject'])continue;if(!Xt(_0xcf6b3e,_0xe56da7))continue;let _0xe4518e=!0x0;for(const _0x2f2b01 of _0xcf6b3e['getRanges']())for(const _0x2ade7c of _0xdae06f)if(!_0x2f2b01['containsRange'](_0x2ade7c)){_0xe4518e=!0x1;break;}if(_0xe4518e)return _0xcf6b3e;}const _0x5cf4e5=_0xbf3332(),_0x37e991=_0x5e5ea4['id'],_0x474b84='insertion:'+_0x5911f8,_0x44f214=this['_setSuggestionData']({'id':_0x5cf4e5,'type':_0x474b84,'createdAt':new Date(),'authorId':_0x37e991,'attributes':_0xe56da7});for(const _0x3f0b96 of _0xdae06f)this['_addSuggestionMarker'](_0x474b84,_0x5cf4e5,_0x37e991,_0x3f0b96,o['getMultiRangeId']());return _0x44f214;}['markInlineFormat'](_0x1c0534,_0x2f7745,_0x67cd50=null,_0x1ba1f3={}){if(_0x67cd50=_0x67cd50||Kt(_0x2f7745),_0x1c0534['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1ba1f3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1ad411=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x67cd50,'accept');return this['forceDefaultExecution'](()=>_0x1ad411([_0x1c0534],_0x2f7745,_0x1ba1f3)),null;}const _0x2fab74=this['editor']['plugins']['get']('Users')['me'],_0x3c5ffa=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5682f1,meta:_0x3f8735}of this['_findSuggestions'](_0x1c0534,'insertion'))_0x3f8735['isOwn']&&!_0x3f8735['isInsideObject']&&_0x3c5ffa['push'](..._0x5682f1['getRanges']());}const _0x744b10=function(_0x24fe51,_0x58d523){const _0x5361ab=[];for(const _0x46151 of _0x58d523){const _0x1c001a=_0x24fe51['getIntersection'](_0x46151);_0x1c001a&&_0x5361ab['push'](_0x1c001a);}return _0x5361ab;}(_0x1c0534,_0x3c5ffa),_0x4a215f=function(_0x7b7e2,_0xd446e3){const _0x1a866a=[_0x7b7e2];for(const _0x26dc72 of _0xd446e3){let _0x5195bf=0x0;for(;_0x5195bf<_0x1a866a['length'];){const _0x9a0795=_0x1a866a[_0x5195bf]['getDifference'](_0x26dc72);_0x1a866a['splice'](_0x5195bf,0x1,..._0x9a0795),_0x5195bf+=_0x9a0795['length'];}}return _0x1a866a;}(_0x1c0534,_0x3c5ffa);_0x744b10['length']&&this['_model']['change'](()=>{for(const _0x457d4b of _0x744b10){const _0x240f46=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x67cd50,'accept');this['forceDefaultExecution'](()=>_0x240f46([_0x457d4b],_0x2f7745,_0x1ba1f3));}});for(const _0x1630ec of _0x4a215f){let _0x29c292=null,_0xb2efb=_0x1630ec['start'],_0x400ab6=_0x1630ec['end'];for(const {suggestion:_0x3819f8,meta:_0x4abf24}of this['_findSuggestions'](_0x1630ec,'formatInline')){if(!_0x4abf24['isOwn'])continue;if(_0x3819f8['subType']!=_0x67cd50)continue;if(!Xt(_0x3819f8,_0x1ba1f3))continue;const _0x1fb37e=_0x3819f8['getFirstRange']();if(_0x1fb37e['containsRange'](_0x1630ec,!0x0))return null;_0xb2efb=_0xb2efb['isBefore'](_0x1fb37e['start'])?_0xb2efb:_0x1fb37e['start'],_0x400ab6=_0x400ab6['isAfter'](_0x1fb37e['end'])?_0x400ab6:_0x1fb37e['end'],_0x29c292?_0x1fb37e['start']['isBefore'](_0x29c292['getFirstRange']()['start'])?(_0x29c292['removeMarkers'](),_0x29c292=_0x3819f8):_0x3819f8['removeMarkers']():_0x29c292=_0x3819f8;}const _0x369c0a=this['_model']['createRange'](_0xb2efb,_0x400ab6);if(_0x29c292)this['_setSuggestionRange'](_0x29c292,_0x369c0a);else{const _0x247b5a=_0xbf3332(),_0x343306=_0x2fab74['id'];this['_setSuggestionData']({'id':_0x247b5a,'type':'formatInline:'+_0x67cd50,'data':_0x2f7745,'createdAt':new Date(),'authorId':_0x343306,'attributes':_0x1ba1f3}),this['_addSuggestionMarker']('formatInline:'+_0x67cd50,_0x247b5a,_0x343306,_0x369c0a);}}return null;}['markBlockFormat'](_0x2ac15a,_0x2073a8,_0x34be06=[],_0x5ac0d2=null,_0x2afa26={}){_0x2073a8['formatGroupId']||(_0x2073a8['formatGroupId']=_0x2073a8['commandName']),_0x2073a8['multipleBlocks']=_0x2ac15a['is']('range'),_0x5ac0d2=_0x5ac0d2||Kt(_0x2073a8);const _0x155cef=_0x34be06['map'](_0x20cbb0=>zt(_0x20cbb0,this['_model'])),_0x1475cb=_0x2ac15a['is']('range')?_0x2ac15a:zt(_0x2ac15a,this['_model']);if(this['_trackingSessionId']&&(_0x2afa26['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x45e6b1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ac0d2,'accept');return this['forceDefaultExecution'](()=>_0x45e6b1([_0x1475cb],_0x2073a8,_0x2afa26)),null;}_0x155cef['push'](_0x1475cb);let _0x471f67=!0x0;for(const _0x154cbe of _0x155cef)if(!this['_rangeIsInLocalUserInsertion'](_0x154cbe)){_0x471f67=!0x1;break;}if(_0x471f67&&'always'!==this['_trackFormatChanges']){const _0x2f1047=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ac0d2,'accept');return this['forceDefaultExecution'](()=>_0x2f1047([_0x1475cb],_0x2073a8,_0x2afa26)),null;}let _0x461828=null,_0x4b47de=_0x1475cb['start'],_0xb2f24c=_0x1475cb['end'];for(const {suggestion:_0x47e68a,meta:_0x4c5423}of this['_findSuggestions'](_0x1475cb,'formatBlock')){if(!_0x4c5423['isOwn'])continue;if(_0x4c5423['isNextTo']||_0x4c5423['containsRangeInObject']||_0x4c5423['isInsideObject'])continue;if(_0x47e68a['data']['formatGroupId']!=_0x2073a8['formatGroupId'])continue;if(!Xt(_0x47e68a,_0x2afa26))continue;const _0x2df409=_0x47e68a['getFirstRange']();if(_0x47e68a['subType']==_0x5ac0d2){if(_0x2df409['containsRange'](_0x1475cb,!0x0))return null;_0x4b47de=_0x4b47de['isBefore'](_0x2df409['start'])?_0x4b47de:_0x2df409['start'],_0xb2f24c=_0xb2f24c['isAfter'](_0x2df409['end'])?_0xb2f24c:_0x2df409['end'],_0x461828?_0x2df409['start']['isBefore'](_0x461828['getFirstRange']()['start'])?(_0x461828['removeMarkers'](),_0x461828=_0x47e68a):_0x47e68a['removeMarkers']():_0x461828=_0x47e68a;}else{const _0x563d1c=_0x1475cb['getIntersection'](_0x2df409);this['_cutOutSuggestionMarker'](_0x47e68a,_0x563d1c);}}const _0x539140=this['editor']['plugins']['get']('Users')['me'],_0x4e853c=_0xbf3332(),_0x4be96f=_0x539140['id'];if(_0x461828)return this['_setSuggestionRange'](_0x461828,this['_model']['createRange'](_0x4b47de,_0xb2f24c)),_0x461828;{const _0x265042=this['_setSuggestionData']({'id':_0x4e853c,'type':'formatBlock:'+_0x5ac0d2,'data':_0x2073a8,'createdAt':new Date(),'authorId':_0x4be96f,'attributes':_0x2afa26});return this['_addSuggestionMarker']('formatBlock:'+_0x5ac0d2,_0x4e853c,_0x4be96f,this['_model']['createRange'](_0x4b47de,_0xb2f24c)),_0x265042;}}['markMultiRangeBlockFormat'](_0xdc760c,_0x26ff43,_0x3fe330=[],_0x5606cf=null,_0x397c90={}){_0x26ff43['formatGroupId']||(_0x26ff43['formatGroupId']=_0x26ff43['commandName']);const _0x22c0e2=_0xdc760c[0x0];_0x26ff43['multipleBlocks']=_0x22c0e2['is']('range'),_0x5606cf=_0x5606cf||Kt(_0x26ff43);const _0x5794dd=_0x3fe330['map'](_0x482ab0=>zt(_0x482ab0,this['_model'])),_0x26643f=_0x22c0e2['is']('range')?_0xdc760c:_0xdc760c['map'](_0x282d62=>zt(_0x282d62,this['_model']));if(this['_trackingSessionId']&&(_0x397c90['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x277116=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5606cf,'accept');return this['forceDefaultExecution'](()=>_0x277116(_0x26643f,_0x26ff43,_0x397c90)),null;}_0x5794dd['push'](..._0x26643f);let _0x440586=!0x0;for(const _0x11b929 of _0x5794dd)if(!this['_rangeIsInLocalUserInsertion'](_0x11b929)){_0x440586=!0x1;break;}if(_0x440586&&'always'!==this['_trackFormatChanges']){const _0x33ed24=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5606cf,'accept');return this['forceDefaultExecution'](()=>_0x33ed24(_0x26643f,_0x26ff43,_0x397c90)),null;}const _0x2fb9a7=this['editor']['plugins']['get']('Users')['me'];for(const _0x320b9b of this['getSuggestions']()){if(_0x320b9b['author']['id']!=_0x2fb9a7['id'])continue;if('formatBlock'!=_0x320b9b['type']||_0x320b9b['data']['formatGroupId']!=_0x26ff43['formatGroupId'])continue;if(!Xt(_0x320b9b,_0x397c90))continue;const _0x406067=_0x320b9b['subType']==_0x5606cf;for(let _0x2a740e=0x0;_0x2a740e<_0x26643f['length'];_0x2a740e++){const _0x11f956=_0x26643f[_0x2a740e];for(const _0x2e1c55 of _0x320b9b['getMarkers']()){const _0x40b3b5=_0x2e1c55['getRange']();if(_0x11f956['isEqual'](_0x40b3b5)){_0x406067?(_0x26643f['splice'](_0x2a740e,0x1),_0x2a740e--):_0x320b9b['removeMarker'](_0x2e1c55['name']);break;}}}}if(0x0==_0x26643f['length'])return null;const _0x1e53e9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5606cf,'join');for(const _0x2a7138 of this['getSuggestions']())if(_0x2a7138['author']['id']==_0x2fb9a7['id']&&'formatBlock'==_0x2a7138['type']&&_0x2a7138['data']['formatGroupId']==_0x26ff43['formatGroupId']&&_0x2a7138['subType']==_0x5606cf&&Xt(_0x2a7138,_0x397c90)&&(_0x1e53e9(_0x2a7138['getRanges'](),_0x26643f)||_0x1e53e9(_0x26643f,_0x2a7138['getRanges']()))){for(const _0x3b1382 of _0x26643f)_0x2a7138['addRange'](_0x3b1382);return _0x2a7138;}const _0x4719f6=_0xbf3332(),_0x5df0a8=_0x2fb9a7['id'],_0x55807c='formatBlock:'+_0x5606cf,_0x7080e3=this['_setSuggestionData']({'id':_0x4719f6,'type':_0x55807c,'data':_0x26ff43,'createdAt':new Date(),'authorId':_0x5df0a8,'attributes':_0x397c90});for(const _0x2e8c40 of _0x26643f)this['_addSuggestionMarker'](_0x55807c,_0x4719f6,_0x5df0a8,_0x2e8c40,o['getMultiRangeId']());return _0x7080e3;}['markDeletion'](_0x2cad82,_0xca3712=null,_0x400e91={}){if(_0x2cad82['isCollapsed'])return null;const _0x59e172=this['editor']['plugins']['get']('Users')['me'],_0x32a96d=new _0x5b3987(_0x2cad82['start'],_0x2cad82['end']);this['_trackingSessionId']&&(_0x400e91['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2e074f,meta:_0x19a0aa}of this['_findSuggestions'](_0x32a96d,'insertion'))if(_0x19a0aa['isOwn']&&!_0x19a0aa['isNextTo']){if(_0x2e074f['isMultiRange']){const _0x4cdab9=_0x2e074f['getRanges']()['filter'](_0x14640a=>'$graveyard'!=_0x14640a['root']['rootName']);_0x4cdab9['every'](_0x2ba02c=>_0x32a96d['containsRange'](_0x2ba02c,!0x0))&&_0x2e074f['discard']();if(_0x4cdab9['some'](_0x4d692e=>_0x4d692e['containsRange'](_0x32a96d,!0x0))){const _0x1d2331=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xca3712,'accept');return this['forceDefaultExecution'](()=>_0x1d2331([_0x32a96d],null,_0x400e91)),null;}}else{const _0x492cfc=_0x32a96d['getIntersection'](_0x2e074f['getFirstRange']());null!==_0x492cfc&&_0x2e074f['_onDiscard']([_0x492cfc],null,_0x400e91);}}if(_0x32a96d['detach'](),_0x32a96d['isCollapsed']||'$graveyard'==_0x32a96d['root']['rootName'])return null;let _0x2b4ef7=null,_0x5a6246=_0x32a96d['start'],_0x4f80a8=_0x32a96d['end'];const _0xd08331=this['_findSuggestions'](_0x32a96d,'deletion');for(const {suggestion:_0x43f089,meta:_0x56604f}of _0xd08331){const _0x47d492=this['_model']['createRange'](_0x5a6246,_0x4f80a8);if(_0x56604f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x56604f['containsRangeInObject']&&!_0x56604f['isInsideObject'])){if(_0x43f089['isMultiRange']){if(!Xt(_0x43f089,_0x400e91))continue;let _0x168793=!0x0;for(const _0x22fbbf of _0x43f089['getRanges']()){if(_0x22fbbf['containsRange'](_0x47d492,!0x0))return _0x43f089;_0x47d492['containsRange'](_0x22fbbf)||(_0x168793=!0x1);}_0x168793&&_0x43f089['discard']();}else{const _0xf1ab79=_0x43f089['getFirstRange']();if(_0xf1ab79['containsRange'](_0x47d492,!0x0))return _0x43f089;if(!Xt(_0x43f089,_0x400e91)){_0x47d492['containsRange'](_0xf1ab79)?_0x43f089['removeMarkers']():_0xf1ab79['containsPosition'](_0x5a6246)?_0x5a6246=_0xf1ab79['end']:_0xf1ab79['containsPosition'](_0x4f80a8)&&(_0x4f80a8=_0xf1ab79['start']);continue;}_0x5a6246=_0x5a6246['isBefore'](_0xf1ab79['start'])?_0x5a6246:_0xf1ab79['start'],_0x4f80a8=_0x4f80a8['isAfter'](_0xf1ab79['end'])?_0x4f80a8:_0xf1ab79['end'],_0x400e91=Object['assign']({},_0x43f089['attributes']),_0x2b4ef7?_0xf1ab79['start']['isBefore'](_0x2b4ef7['getFirstRange']()['start'])?(_0x2b4ef7['removeMarkers'](),_0x2b4ef7=_0x43f089):_0x43f089['removeMarkers']():_0x2b4ef7=_0x43f089;}}}if(_0x2b4ef7)return this['_setSuggestionRange'](_0x2b4ef7,this['_model']['createRange'](_0x5a6246,_0x4f80a8)),_0x2b4ef7;{const _0x4c41ce=_0xbf3332(),_0x114915=this['_model']['createRange'](_0x5a6246,_0x4f80a8),_0xad5f82=_0x59e172['id'],_0x4fb693=_0xca3712?'deletion:'+_0xca3712:'deletion',_0x750c1e=this['_setSuggestionData']({'id':_0x4c41ce,'type':_0x4fb693,'createdAt':new Date(),'authorId':_0xad5f82,'attributes':_0x400e91});return this['_addSuggestionMarker'](_0x4fb693,_0x4c41ce,_0xad5f82,_0x114915),_0x750c1e;}}['markMultiRangeDeletion'](_0x2eba9d,_0x42ed1d='multi',_0x11eb4a={}){const _0x4f1d37=this['editor']['plugins']['get']('Users')['me'],_0x4823a3=_0x2eba9d['map'](_0x246329=>new _0x5b3987(_0x246329['start'],_0x246329['end'])),_0x21aa74=new Set();this['_trackingSessionId']&&(_0x11eb4a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3fdbfa,meta:_0x103bb9}of this['_findSuggestions'](_0x4823a3,'insertion'))_0x103bb9['isOwn']&&!_0x103bb9['isNextTo']&&_0x21aa74['add'](_0x3fdbfa);for(const _0x52c30e of _0x21aa74)if(_0x52c30e['isMultiRange']){const _0x31fb72=_0x52c30e['getRanges']();(!_0x52c30e['attributes']||!_0x52c30e['attributes']['skipNestingCheck'])&&(_0x31fb72['every'](_0x4ef280=>_0x4823a3['some'](_0x5f2b03=>_0x5f2b03['containsRange'](_0x4ef280,!0x0)))&&_0x52c30e['discard']());if(_0x4823a3['every'](_0x13b758=>_0x31fb72['some'](_0x2f8883=>_0x2f8883['containsRange'](_0x13b758,!0x0)))){const _0x5df9ce=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42ed1d,'accept');return this['forceDefaultExecution'](()=>_0x5df9ce(_0x2eba9d,null,_0x11eb4a)),null;}}else{const _0x2d7e4d=_0x52c30e['getFirstRange']();_0x4823a3['some'](_0x4833f3=>_0x4833f3['containsRange'](_0x2d7e4d,!0x0))&&_0x52c30e['discard']();if(_0x4823a3['every'](_0x3ea5fb=>_0x2d7e4d['containsRange'](_0x3ea5fb,!0x0))){const _0x2b756c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42ed1d,'accept');return this['forceDefaultExecution'](()=>_0x2b756c(_0x4823a3,null,_0x11eb4a)),null;}}const _0x49af9d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42ed1d,'join');let _0x409021=null;for(const _0x4e6652 of this['getSuggestions']())if(_0x4e6652['author']['id']==_0x4f1d37['id']&&_0x4e6652['isInContent']&&'deletion'==_0x4e6652['type']&&_0x4e6652['subType']==_0x42ed1d&&Xt(_0x4e6652,_0x11eb4a)&&(_0x49af9d(_0x4e6652['getRanges'](),_0x4823a3)||_0x49af9d(_0x4823a3,_0x4e6652['getRanges']()))){if(_0x409021){if(_0x4e6652['commentThread']&&_0x4e6652['commentThread']['length'])continue;for(const _0x3eefbd of _0x4e6652['getRanges']())_0x409021['isIntersectingWithRange'](_0x3eefbd)||_0x409021['addRange'](_0x3eefbd);_0x4e6652['removeMarkers']();}else{_0x409021=_0x4e6652;for(const _0x2dd148 of _0x4823a3)_0x4e6652['isIntersectingWithRange'](_0x2dd148)||_0x4e6652['addRange'](_0x2dd148);}}if(_0x409021)return _0x409021;_0x21aa74['clear']();for(const {suggestion:_0x58c4da,meta:_0x1e722f}of this['_findSuggestions'](_0x4823a3,'deletion'))_0x1e722f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1e722f['containsRangeInObject']&&!_0x1e722f['isInsideObject'])&&Xt(_0x58c4da,_0x11eb4a)&&_0x21aa74['add'](_0x58c4da);for(const _0xadbdb8 of _0x21aa74){const _0x74bd5d=_0xadbdb8['getRanges']();if(!_0x11eb4a||!_0x11eb4a['skipNestingCheck']){if(_0x4823a3['every'](_0x3e980c=>_0x74bd5d['some'](_0x4c7d17=>_0x4c7d17['containsRange'](_0x3e980c,!0x0))))return _0xadbdb8;}(!_0xadbdb8['attributes']||!_0xadbdb8['attributes']['skipNestingCheck'])&&(_0x74bd5d['every'](_0x18c342=>_0x4823a3['some'](_0x573ab7=>_0x573ab7['containsRange'](_0x18c342,!0x0)))&&_0xadbdb8['discard']());}const _0x4ba1ab=_0xbf3332(),_0x9652b4=_0x4f1d37['id'],_0x388d91='deletion:'+_0x42ed1d,_0x17ff8a=this['_setSuggestionData']({'id':_0x4ba1ab,'type':_0x388d91,'createdAt':new Date(),'authorId':_0x9652b4,'attributes':_0x11eb4a});for(const _0x135183 of _0x4823a3)_0x135183['detach'](),_0x135183['isCollapsed']||'$graveyard'==_0x135183['root']['rootName']||this['_addSuggestionMarker'](_0x388d91,_0x4ba1ab,_0x9652b4,_0x135183,o['getMultiRangeId']());return _0x17ff8a;}['markAttributeChange'](_0x369686,_0x3227ae,_0x3a9421,_0x19d848,_0x4a89cd){if(_0x369686['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5c4a1d=this['editor']['plugins']['get']('Users')['me']['id'],_0x4929f2=Array['from'](this['_suggestions']['values']())['filter'](_0x46ab43=>'attribute'==_0x46ab43['type']&&_0x46ab43['data']['key']==_0x3227ae&&_0x46ab43['isIntersectingWithRange'](_0x369686));if(this['_trackingSessionId']&&(_0x4a89cd['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3d742d=this['_findSuggestions'](_0x369686,'insertion')['filter'](({meta:_0x5d4747})=>_0x5d4747['isOwn']&&!_0x5d4747['isInsideObject']&&!_0x5d4747['isNextTo'])['map'](({suggestion:_0x3b7d7a})=>_0x3b7d7a);_0x4929f2['unshift'](..._0x3d742d);}const _0x3e2584=new Map([[_0x369686,_0x3a9421]]);for(const _0x15db28 of _0x4929f2){const _0x4195d3='attribute'==_0x15db28['type']?_0x15db28['data']['oldValue']:void 0x0,_0x1017db=_0x15db28['getFirstRange'](),_0x599ed5=Array['from'](_0x3e2584['keys']())['find'](_0x5e834d=>_0x5e834d['isIntersecting'](_0x1017db));if(!_0x599ed5)continue;const _0x400015=_0x599ed5['getDifference'](_0x1017db);this['_isBlockAttribute'](_0x3227ae)&&'insertion'==_0x15db28['type']&&0x0!=_0x400015['length']||(_0x3e2584['delete'](_0x599ed5),_0x400015['forEach'](_0x3f1d7c=>{_0x3e2584['set'](_0x3f1d7c,_0x3a9421);}),'insertion'!=_0x15db28['type']&&_0x4195d3!=_0x19d848&&_0x3e2584['set'](_0x599ed5['getIntersection'](_0x1017db),_0x4195d3));}const _0x2aa4ae=[];for(const [_0x1c83d4,_0x4e89ee]of _0x3e2584){const _0x58a04d=_0xbf3332(),_0x3bb493={'key':_0x3227ae,'oldValue':_0x4e89ee,'newValue':_0x19d848};_0x3227ae['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':_0x3227ae});const _0x577091=('attribute:'+(_0x3227ae+'|'+Kt({'newValue':_0x19d848})))['substring'](0x0,0x3c),_0x3785e4=this['_setSuggestionData']({'id':_0x58a04d,'type':_0x577091,'data':_0x3bb493,'createdAt':new Date(),'authorId':_0x5c4a1d,'attributes':_0x4a89cd});_0x2aa4ae['push'](_0x3785e4),this['_addSuggestionMarker'](_0x577091,_0x58a04d,_0x5c4a1d,_0x1c83d4);}return _0x2aa4ae;}['enableDefaultAttributesIntegration'](_0x4ad54c){this['enableCommand'](_0x4ad54c,(_0x59b5f7,..._0xd24f11)=>{this['_recordAttributeChanges'](()=>{_0x59b5f7(..._0xd24f11);});});}['registerBlockAttribute'](_0x411a05){this['_blockAttributeKeys']['add'](_0x411a05);}['registerInlineAttribute'](_0xafa8e6){this['_inlineAttributeKeys']['add'](_0xafa8e6);}['startTrackingSession'](_0x18e4c6){return this['_trackingSessionId']=void 0x0!==_0x18e4c6?_0x18e4c6:_0xbf3332(),this['_trackingSessionId'];}['_getAttributeKey'](_0x27ba7d){return'attribute'==_0x27ba7d['type']?_0x27ba7d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x189fbc,_0x4ca7ab){const _0x1aa87a=_0x189fbc['getFirstMarker']();this['_model']['change'](_0x31ed8a=>{_0x31ed8a['updateMarker'](_0x1aa87a,{'range':_0x4ca7ab});});}['_addThreadToSuggestion'](_0x27c7c3){const _0x4c4d17=_0x27c7c3['id'],_0x322eaf=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4c4d17)||this['_commentsRepository']['addCommentThread']({'channelId':_0x322eaf,'threadId':_0x4c4d17,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x380e00=this['_commentsRepository']['getCommentThread'](_0x4c4d17);_0x380e00['unbind']('isRemovable'),_0x380e00['isRemovable']=!0x1,_0x27c7c3['commentThread']=_0x380e00;}['_checkSuggestionCorrectness'](_0x1fee26,_0x50e1db,_0x5988f8,_0x13d506){if(_0x1fee26['type']!=_0x50e1db||_0x1fee26['subType']!=_0x5988f8||_0x1fee26['creator']['id']!=_0x13d506)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3ebbb1('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4044f9,_0x52ee43){const _0x397aa1=_0x4044f9['getFirstRange']();if(_0x52ee43['isEqual'](_0x397aa1))_0x4044f9['removeMarkers']();else{if(_0x397aa1['containsRange'](_0x52ee43)){const _0x4098f6=this['_model']['createPositionAt'](_0x52ee43['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4044f9,this['_model']['createRange'](_0x397aa1['start'],_0x4098f6));const _0xd95176=_0xbf3332(),_0x291984=_0x4044f9['creator']['id'],_0x471657=_0x4044f9['type']+':'+_0x4044f9['subType'];this['_setSuggestionData']({'id':_0xd95176,'type':_0x471657,'createdAt':new Date(),'authorId':_0x291984,'data':_0x4044f9['data'],'attributes':_0x4044f9['attributes']});const _0x51177c=this['_model']['createPositionAt'](_0x52ee43['end']['parent'],'after'),_0x2224a3=this['_model']['createRange'](_0x51177c,_0x397aa1['end']);this['_addSuggestionMarker'](_0x471657,_0xd95176,_0x291984,_0x2224a3);}else{if(_0x397aa1['containsPosition'](_0x52ee43['start'])){const _0x3b6410=this['_model']['createPositionAt'](_0x52ee43['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4044f9,this['_model']['createRange'](_0x397aa1['start'],_0x3b6410));}else{const _0x189bf6=this['_model']['createPositionAt'](_0x52ee43['end']['parent'],'after');this['_setSuggestionRange'](_0x4044f9,this['_model']['createRange'](_0x189bf6,_0x397aa1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x59cc7d){for(const {suggestion:_0x1c7545,meta:_0x1d878c}of this['_findSuggestions'](_0x59cc7d,'insertion')){if(!_0x1d878c['isOwn'])continue;const _0xbdfced=_0x1c7545['getRanges']();for(const _0x12f27e of _0xbdfced)if(!_0x59cc7d['getDifference'](_0x12f27e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x11fcdd){const _0x2f546e=this['editor']['plugins']['get']('Users')['getUser'](_0x11fcdd);if(!_0x2f546e)throw new _0x3ebbb1('track-changes-user-not-found',this);return _0x2f546e;}['_getExternalAuthor'](_0x4da57e){const _0x4feb00=this['editor']['plugins']['get']('Users'),_0x4070f2=_0x473f1e('external:'+_0x4da57e),_0x4347fc=_0x4feb00['getUser'](_0x4070f2);return _0x4347fc||_0x4feb00['addUser']({'id':_0x4070f2,'name':_0x4da57e});}['_createSuggestion'](_0x53ccce,_0x31f6ac,_0x3c75ea,_0x252b27,_0x50f617,_0x4a62bd){const _0x3d524e=this['_getAuthorFromId'](_0x252b27),_0x2ce48d=this['_suggestionFactory']['buildSuggestion'](_0x53ccce,_0x31f6ac,_0x3c75ea,_0x3d524e,_0x50f617,_0x243f99=>{this['_updateSuggestionData'](_0x3c75ea,{'attributes':_0x243f99});const _0x3700d9=this['getSuggestion'](_0x3c75ea);this['_joinWithAdjacentSuggestions'](new Set([_0x3700d9])),this['_refreshSuggestionsChain'](new Set([_0x3700d9]));},_0x4a62bd);return this['listenTo'](_0x2ce48d,'accept',()=>{this['_updateSuggestionData'](_0x3c75ea,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2ce48d,'discard',()=>{this['_updateSuggestionData'](_0x3c75ea,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3c75ea,_0x2ce48d),this['_suggestionState']['set'](_0x2ce48d,'notReady'),_0x2ce48d;}['_splitMarkerName'](_0x192baa){const _0x7a61a3=_0x192baa['split'](':');return{'group':_0x7a61a3[0x0],'type':_0x7a61a3[0x1],'subType':_0x7a61a3['length']>=0x5?_0x7a61a3[0x2]:null,'id':_0x7a61a3['length']<0x5?_0x7a61a3[0x2]:_0x7a61a3[0x3],'authorId':_0x7a61a3['length']<0x5?_0x7a61a3[0x3]:_0x7a61a3[0x4],'markerCount':0x6==_0x7a61a3['length']?_0x7a61a3[0x5]:null};}['_breakSuggestionMarker'](_0x2a6b3f,_0x5ce217,_0x31df11){const _0x3e8602=_0x2a6b3f['getFirstRange'](),_0x26bf65=_0x3e8602['start'],_0x11bc47=_0x3e8602['end'];this['_setSuggestionRange'](_0x2a6b3f,this['_model']['createRange'](_0x26bf65,_0x5ce217));const _0x15d1af=_0xbf3332(),_0x1b76df=_0x2a6b3f['creator']['id'],_0x59aeca=_0x2a6b3f['type']+(_0x2a6b3f['subType']?':'+_0x2a6b3f['subType']:'');this['_setSuggestionData']({'id':_0x15d1af,'type':_0x59aeca,'createdAt':new Date(),'authorId':_0x1b76df,'originalSuggestionId':_0x2a6b3f['_originalSuggestionId']||_0x2a6b3f['id'],'attributes':_0x2a6b3f['attributes'],'data':_0x2a6b3f['data']});const _0x405fca=this['_getAttributeKey'](_0x2a6b3f);('formatBlock'==_0x2a6b3f['type']||_0x405fca&&this['_isBlockAttribute'](_0x405fca))&&(_0x31df11=this['_model']['createPositionBefore'](_0x31df11['parent'])),this['_addSuggestionMarker'](_0x59aeca,_0x15d1af,_0x1b76df,this['_model']['createRange'](_0x31df11,_0x11bc47));}['_findSuggestions'](_0x96392f,_0xd1c916=null){const _0x13b1cc=[],_0x12f894=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x96392f)||(_0x96392f=[_0x96392f]);for(const _0x387a67 of this['getSuggestions']()){if(!_0x387a67['isInContent'])continue;if(_0xd1c916&&_0x387a67['type']!=_0xd1c916)continue;let _0x5ecc81=!0x1;for(const _0x2a39e5 of _0x387a67['getRanges']()){for(const _0x4daa82 of _0x96392f){const _0x4646c5=_0x4daa82['start']['isEqual'](_0x2a39e5['end'])||_0x4daa82['end']['isEqual'](_0x2a39e5['start']);if(_0x4646c5||_0x4daa82['getIntersection'](_0x2a39e5)){const _0x2012e2=_0x4daa82['containsRange'](_0x2a39e5)&&Gt(this['_model']['schema'],_0x2a39e5['start'],_0x4daa82),_0x30d5ba=_0x2a39e5['containsRange'](_0x4daa82)&&Gt(this['_model']['schema'],_0x4daa82['start'],_0x2a39e5);_0x13b1cc['push']({'suggestion':_0x387a67,'meta':{'isOwn':_0x12f894==_0x387a67['author'],'isNextTo':_0x4646c5,'isInsideObject':_0x2012e2,'containsRangeInObject':_0x30d5ba}}),_0x5ecc81=!0x0;break;}}if(_0x5ecc81)break;}}return _0x13b1cc;}['_addSuggestionMarker'](_0x2e93f8,_0x4627df,_0xc3973d,_0x8a9bd2,_0x1b81ef){this['_model']['change'](_0x62c4a4=>{let _0x1a446e='suggestion:'+_0x2e93f8+':'+_0x4627df+':'+_0xc3973d;_0x1b81ef&&(_0x1a446e=_0x1a446e+':'+_0x1b81ef),_0x62c4a4['addMarker'](_0x1a446e,{'range':_0x8a9bd2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x263a2f){const _0x27b1a6=_0x263a2f['previous'],_0x2c1edf=_0x263a2f['next'];_0x263a2f['previous']=null,_0x263a2f['next']=null,null!=_0x27b1a6&&_0x27b1a6['next']==_0x263a2f&&(_0x27b1a6['next']=_0x2c1edf),null!=_0x2c1edf&&_0x2c1edf['previous']==_0x263a2f&&(_0x2c1edf['previous']=_0x27b1a6),'ready'==this['_suggestionState']['get'](_0x263a2f)&&(this['_suggestionState']['set'](_0x263a2f,'removed'),this['fire']('suggestionUnloaded',_0x263a2f,_0x27b1a6,_0x2c1edf));}['_setSuggestionData'](_0x1c71f1){const _0x392f9d=_0x1c71f1['id'],_0x1325c3=this['addSuggestionData'](_0x1c71f1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x353876=this['editor']['plugins']['get']('PendingActions'),_0x2667b5=_0x1325c3['hasComments'],_0x30330a=_0x1325c3['subType']?_0x1325c3['type']+':'+_0x1325c3['subType']:_0x1325c3['type'],_0x327fdc=this['editor']['locale'],_0x41743a=_0x353876['add'](c(_0x327fdc,'PENDING_ACTION_SUGGESTION')),_0x1d5e0f={'id':_0x392f9d,'type':_0x30330a,'hasComments':_0x2667b5,'data':_0x1c71f1['data']||null,'originalSuggestionId':_0x1c71f1['originalSuggestionId']||null,'attributes':_0x1325c3['attributes']};this['_adapter']['addSuggestion'](_0x1d5e0f)['then'](_0x1069f9=>{_0x1325c3['_saved']=!0x0,_0x353876['remove'](_0x41743a),_0x1069f9&&_0x1069f9['createdAt']&&(this['_suggestions']['get'](_0x392f9d)['createdAt']=_0x1069f9['createdAt']);})['catch'](_0x2df9d8=>{throw _0x27513f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1325c3['discard']();}),_0x1325c3['stopListening'](),this['_suggestions']['delete'](_0x1325c3['id']),this['_suggestionState']['delete'](_0x1325c3),_0x2df9d8;});}return _0x1325c3;}['_isBlockAttribute'](_0x2823a9){return this['_blockAttributeKeys']['has'](_0x2823a9);}['_updateSuggestionData'](_0x493603,_0x4f236a){const _0x1dafc9=this['editor']['plugins']['get']('PendingActions'),_0x3f0149=this['getSuggestion'](_0x493603);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3f0149['_saved']){const _0x34b364=_0x1dafc9['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x493603,_0x4f236a)['then'](()=>{_0x1dafc9['remove'](_0x34b364);});}else _0x3f0149['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x493603,_0x4f236a);});}}['_getSuggestionData'](_0x597f02){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3ebbb1('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x597f02);}['_handleNewSuggestionMarker'](_0x25b00d){const {id:_0x4029ed,type:_0xe67def,subType:_0x2e077d,authorId:_0xca8a1f}=this['_splitMarkerName'](_0x25b00d),_0x3405c6=this['_suggestions']['get'](_0x4029ed)||this['_createSuggestion'](_0xe67def,_0x2e077d,_0x4029ed,_0xca8a1f,{});switch(this['_checkSuggestionCorrectness'](_0x3405c6,_0xe67def,_0x2e077d,_0xca8a1f),this['_suggestionState']['get'](_0x3405c6)){case'notReady':this['_getSuggestionData'](_0x4029ed)['then'](_0xa99af2=>{let _0x19eb97=Promise['resolve']();_0xa99af2['hasComments']&&(_0x19eb97=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4029ed})),_0x19eb97['then'](()=>{this['addSuggestionData'](_0xa99af2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3405c6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4029ed,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3405c6,'ready'),this['fire']('suggestionLoaded',_0x3405c6);break;case'ready':this['fire']('suggestionChanged',_0x3405c6);}return _0x3405c6['addMarkerName'](_0x25b00d),_0x3405c6;}['_refreshSuggestionsChain'](_0x5bf33c){const _0x3f008d=Array['from'](_0x5bf33c),_0x428ae9=_0x3f008d['filter'](_0x48c723=>'attribute'==_0x48c723['type']);this['_refreshAttributeSuggestionsChain'](_0x428ae9);const _0x217dce=_0x3f008d['filter'](_0x254106=>!_0x254106['isMultiRange']&&'attribute'!=_0x254106['type']),_0xbea18b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x29c97c=>!_0x29c97c['isMultiRange']&&'attribute'!=_0x29c97c['type']),_0xd53cf2=_0xbea18b['filter'](_0x167f0b=>!_0x5bf33c['has'](_0x167f0b)),_0x4afa10=new Map(_0xbea18b['map'](_0x28b848=>[_0x28b848,this['_suggestionFactory']['getSuggestionCallback'](_0x28b848['type'],_0x28b848['subType'],'chain')])),_0x4c68c2=new Map(_0xbea18b['map'](_0x23b519=>[_0x23b519,_0x23b519['getFirstRange']()])),_0x563e9d=new Set(),_0x5ba921=new Set();for(let _0x5077d2=0x0;_0x5077d2<_0x217dce['length'];_0x5077d2++)_0x1f35e3(_0x217dce[_0x5077d2],_0x217dce,_0x5077d2+0x1);for(let _0x24b6c8=0x0;_0x24b6c8<_0x217dce['length'];_0x24b6c8++)_0x1f35e3(_0x217dce[_0x24b6c8],_0xd53cf2,0x0);const _0x203a74=new Set();for(let _0x4c2e93=0x0;_0x4c2e93<_0x217dce['length'];_0x4c2e93++){const _0x3d9833=_0x217dce[_0x4c2e93];!_0x5ba921['has'](_0x3d9833)&&_0x3d9833['previous']&&(_0x203a74['add'](_0x3d9833['previous']),_0x3d9833['previous']['next']===_0x3d9833&&(_0x3d9833['previous']['next']=null),_0x3d9833['previous']=null),!_0x563e9d['has'](_0x3d9833)&&_0x3d9833['next']&&(_0x203a74['add'](_0x3d9833['next']),_0x3d9833['next']['previous']===_0x3d9833&&(_0x3d9833['next']['previous']=null),_0x3d9833['next']=null);}function _0x1f35e3(_0x4215e7,_0x45f201,_0x26494c){for(let _0x51afba=_0x26494c;_0x51afba<_0x45f201['length'];_0x51afba++){const _0x5220ac=_0xee8f5d(_0x4215e7,_0x45f201[_0x51afba]);_0x5220ac&&(_0x5220ac[0x0]['next']=_0x5220ac[0x1],_0x5220ac[0x1]['previous']=_0x5220ac[0x0],_0x563e9d['add'](_0x5220ac[0x0]),_0x5ba921['add'](_0x5220ac[0x1]));}}function _0xee8f5d(_0x3af99b,_0x23a1b4){if(_0x3af99b['author']['id']!==_0x23a1b4['author']['id'])return null;const _0x133ee2=_0x4afa10['get'](_0x3af99b)(_0x3af99b,_0x23a1b4,_0x4c68c2['get'](_0x3af99b),_0x4c68c2['get'](_0x23a1b4));if(!_0x133ee2)return null;return _0x4afa10['get'](_0x23a1b4)(_0x3af99b,_0x23a1b4,_0x4c68c2['get'](_0x3af99b),_0x4c68c2['get'](_0x23a1b4))?_0x133ee2[0x1]['commentThread']&&_0x133ee2[0x1]['commentThread']['length']?null:_0x133ee2:null;}_0x203a74['size']&&this['_refreshSuggestionsChain'](_0x203a74);}['_refreshAttributeSuggestionsChain'](_0x51debf){if(0x0==_0x51debf['length'])return;const _0x17c658=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46c63f=>'attribute'==_0x46c63f['type']&&_0x46c63f['_isDataLoaded']),_0x496b7c=[],_0x1b4777=new Map();for(const _0x2550ea of _0x17c658){const _0x5c1f67=_0x473f1e(_0x2550ea['attributes']);_0x1b4777['has'](_0x5c1f67)||(_0x1b4777['set'](_0x5c1f67,_0x496b7c['length']),_0x496b7c['push']([]));const _0x34b5f0=_0x1b4777['get'](_0x5c1f67);_0x496b7c[_0x34b5f0]['push'](_0x2550ea);}!(function(){_0x496b7c['sort']((_0x16cab2,_0x5468b8)=>{const _0x5a86ee=_0x16cab2[0x0]['createdAt'],_0xf8c692=_0x5468b8[0x0]['createdAt'];return _0x5a86ee==_0xf8c692?_0x16cab2[0x0]['attributes']['groupId']<_0x5468b8[0x0]['attributes']['groupId']?-0x1:0x1:_0x5a86ee<_0xf8c692?-0x1:0x1;});for(const _0x30c691 of _0x496b7c)_0x30c691['sort']((_0x7effda,_0x318e65)=>_0x7effda['id']<_0x318e65['id']?-0x1:0x1);}());for(let _0x213902=0x0;_0x213902<_0x496b7c['length'];_0x213902++){if(0x0==_0x496b7c[_0x213902]['length'])continue;const _0x5da996=[];for(let _0x12f90a=_0x213902+0x1;_0x12f90a<_0x496b7c['length'];_0x12f90a++)0x0!=_0x496b7c[_0x12f90a]['length']&&_0xc725e6(_0x496b7c[_0x213902],_0x496b7c[_0x12f90a])&&_0x5da996['push'](_0x12f90a);for(const _0x28bbe9 of _0x5da996)_0x496b7c[_0x213902]=_0x496b7c[_0x213902]['concat'](_0x496b7c[_0x28bbe9]),_0x496b7c[_0x28bbe9]=[];}for(const _0x5e0ced of _0x496b7c)for(let _0x810500=0x0;_0x810500<_0x5e0ced['length'];_0x810500++){const _0x2b9d00=_0x5e0ced[_0x810500+0x1]||null;_0x5e0ced[_0x810500]['next']!==_0x2b9d00&&(_0x5e0ced[_0x810500]['next']=_0x2b9d00);}for(const _0x4947f3 of _0x496b7c)for(let _0x579e22=0x0;_0x579e22<_0x4947f3['length'];_0x579e22++){const _0xaf566f=_0x4947f3[_0x579e22-0x1]||null;_0x4947f3[_0x579e22]['previous']!==_0xaf566f&&(_0x4947f3[_0x579e22]['previous']=_0xaf566f);}function _0xc725e6(_0x4665b0,_0x31e092){if(_0x4665b0[0x0]['attributes']['groupId']!==_0x31e092[0x0]['attributes']['groupId']&&_0x4665b0[0x0]['author']!==_0x31e092[0x0]['author'])return!0x1;if(!function(_0x32037b,_0xe1cb36){if(!_0x32037b['hasComments']&&!_0xe1cb36['hasComments'])return!0x0;if(_0x32037b['hasComments']&&_0xe1cb36['hasComments'])return!0x1;if(_0x32037b['hasComments']&&_0xe1cb36['createdAt']<_0x32037b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xe1cb36['hasComments']&&_0x32037b['createdAt']<_0xe1cb36['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4665b0[0x0],_0x31e092[0x0]))return!0x1;const _0x2aa17e=Ft(_0x4665b0[0x0]['attributes'],['groupId','trackingSessionId']),_0x1c40df=Ft(_0x31e092[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2eabca(_0x2aa17e,_0x1c40df))return!0x1;if(_0x4665b0[0x0]['attributes']['groupId']==_0x31e092[0x0]['attributes']['groupId'])return!0x0;if(_0x4665b0[0x0]['attributes']['trackingSessionId']!==_0x31e092[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4665b0['every'](_0x34cc28=>_0x31e092['some'](_0x25ea0c=>_0x34cc28['getFirstRange']()['isEqual'](_0x25ea0c['getFirstRange']())))&&_0x31e092['every'](_0x4c0a34=>_0x4665b0['some'](_0x137da0=>_0x4c0a34['getFirstRange']()['isEqual'](_0x137da0['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xf241b0){const _0x172df9=Array['from'](_0xf241b0),_0x2ad7f2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x430705=_0x2ad7f2['filter'](_0x903c0b=>!_0xf241b0['has'](_0x903c0b)),_0xcb9721=new Map(_0x172df9['map'](_0x494587=>[_0x494587,this['_suggestionFactory']['getSuggestionCallback'](_0x494587['type'],_0x494587['subType'],'join')])),_0x69552b=new Map(_0x2ad7f2['map'](_0xf364a6=>[_0xf364a6,_0xf364a6['getRanges']()]));for(let _0x322907=0x0;_0x322907<_0x172df9['length'];_0x322907++){if(_0xdca066(this,_0x172df9[_0x322907],_0x172df9,_0x322907+0x1))return!0x0;}for(let _0x130775=0x0;_0x130775<_0x172df9['length'];_0x130775++){if(_0xdca066(this,_0x172df9[_0x130775],_0x430705,0x0))return!0x0;}return!0x1;function _0xdca066(_0x2ed458,_0x3d5e01,_0x1c5e2b,_0x282be6){for(let _0x42e5a6=_0x282be6;_0x42e5a6<_0x1c5e2b['length'];_0x42e5a6++){const _0x3ea205=_0x1c5e2b[_0x42e5a6];if(_0x3ea205['type']!==_0x3d5e01['type']||_0x3ea205['author']['id']!==_0x3d5e01['author']['id']||_0x3ea205['subType']!==_0x3d5e01['subType'])continue;if(!Qt(_0x3d5e01,_0x3ea205))continue;if('attribute'==_0x3d5e01['type']&&_0x3d5e01['data']['oldValue']!=_0x3ea205['data']['oldValue'])continue;if('attribute'==_0x3d5e01['type']&&_0x2ed458['_isBlockAttribute'](_0x3d5e01['data']['key']))continue;if('formatBlock'==_0x3d5e01['type']){const _0x3651ba=_0x2ed458['editor']['model'],_0x3c6a9d=_0x3d5e01['getContainedElement']();if(_0x3c6a9d&&(_0x3651ba['schema']['isObject'](_0x3c6a9d)||_0x3651ba['schema']['isLimit'](_0x3c6a9d)))continue;}const _0x52b340=_0xcb9721['get'](_0x3d5e01),_0x2c395e=_0x69552b['get'](_0x3d5e01),_0x2457d9=_0x69552b['get'](_0x3ea205),_0x49c1ae=_0x3d5e01['commentThread']&&_0x3d5e01['commentThread']['length'],_0x20fe45=_0x3ea205['commentThread']&&_0x3ea205['commentThread']['length'];if(!_0x49c1ae&&_0x52b340(_0x2457d9,_0x2c395e))return _0x2ed458['_joinSuggestions'](_0x3ea205,_0x3d5e01),_0x69552b['delete'](_0x3d5e01),!0x0;if(!_0x20fe45&&_0x52b340(_0x2c395e,_0x2457d9))return _0x2ed458['_joinSuggestions'](_0x3d5e01,_0x3ea205),_0x69552b['delete'](_0x3ea205),!0x0;}return!0x1;}}['_joinSuggestions'](_0x491fd9,_0x334459){if(_0x491fd9['isMultiRange']){for(const _0x1c4742 of _0x334459['getRanges']())_0x491fd9['addRange'](_0x1c4742);}else{const _0x5e98af=_0x334459['getFirstRange']()['end'];this['_setSuggestionRange'](_0x491fd9,this['_model']['createRange'](_0x491fd9['getFirstRange']()['start'],_0x5e98af));}_0x334459['removeMarkers']();}['_getMarkerAnnouncementText'](_0x80e4c7,_0x285193,_0x5c6ac7){const _0x595332=_0x80e4c7['startsWith']('format')||_0x80e4c7['startsWith']('attribute')?'FORMATTING':_0x80e4c7['toUpperCase']();return c(this['editor']['locale'],_0x285193+'_'+_0x595332+'_SUGGESTION_ANNOUNCEMENT',_0x5c6ac7);}['_initAriaMarkerChangeAnnouncements'](){const _0x5d4f59=this['editor'];if(!_0x5d4f59['ui'])return;const {ariaLiveAnnouncer:_0xc9a94a}=_0x5d4f59['ui'];_0x22a8e2(this['_model'],({left:_0x46a0a7,entered:_0x3cbbce})=>{for(const _0x3effee of _0x46a0a7){const {group:_0x3fc931,type:_0x383db9}=this['_splitMarkerName'](_0x3effee['name']);if('suggestion'===_0x3fc931){_0xc9a94a['announce'](this['_getMarkerAnnouncementText'](_0x383db9,'LEAVE'));break;}}for(const _0x4ec1e4 of _0x3cbbce){const {group:_0x19d1d3,type:_0x15b639}=this['_splitMarkerName'](_0x4ec1e4['name']);if('suggestion'===_0x19d1d3){_0xc9a94a['announce'](this['_getMarkerAnnouncementText'](_0x15b639,'ENTER',_0x4c6853(_0xf35b4f)));break;}}});}['_processAttributeChanges'](_0x5b09e4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x214523=this['editor'],_0x16f7a8=_0x214523['model']['document']['differ']['getChanges']();if(0x0==_0x16f7a8['length'])return!0x1;const _0x15f229=[],_0x4f24eb=_0x16f7a8['filter'](_0x32d35d=>'attribute'==_0x32d35d['type']),_0x3a9fb0=_0x16f7a8['filter'](_0x49dee4=>'insert'==_0x49dee4['type']&&'$text'!=_0x49dee4['name']),_0x143122=_0x16f7a8['filter'](_0x530efb=>'remove'==_0x530efb['type']&&'$text'!=_0x530efb['name']);for(const _0x1317d8 of _0x4f24eb)_0x15f229['push']({'key':_0x1317d8['attributeKey'],'newValue':_0x1317d8['attributeNewValue'],'oldValue':_0x1317d8['attributeOldValue'],'range':qt(_0x1317d8['range'],_0x214523['model'])});for(const _0xcd82cd of _0x3a9fb0){const _0x19765b=_0x143122['find'](_0xebf2e=>_0xebf2e['position']['isEqual'](_0xcd82cd['position']));_0x19765b&&_0x15f229['push']({'key':u,'newValue':_0xcd82cd['name'],'oldValue':_0x19765b['name'],'range':_0x214523['model']['createRangeOn'](_0xcd82cd['position']['nodeAfter'])});}return 0x0!=_0x15f229['length']&&this['_reduceExistingSuggestions'](_0x5b09e4,_0x15f229);}['_processAttributeSuggestions'](_0x36798e){let _0x219a06=!0x1;const _0x13adb0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5b0f49=>_0x5b0f49['data']['newRange']&&_0x5b0f49['name']['startsWith']('suggestion:attribute:'));for(const _0x3a1ac7 of _0x13adb0){const {subType:_0x2ac39d,id:_0x2c06a3}=this['_splitMarkerName'](_0x3a1ac7['name']),_0x448e7f=_0x2ac39d['split']('|')[0x0];for(const _0x2fbb31 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2fbb31['id']!=_0x2c06a3&&'attribute'==_0x2fbb31['type']&&_0x2fbb31['data']&&_0x2fbb31['data']['key']==_0x448e7f&&_0x2fbb31['getFirstRange']()['isIntersecting'](_0x3a1ac7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2fbb31,_0x3a1ac7['data']['newRange'],_0x36798e),_0x219a06=!0x0);}return _0x219a06;}['_recordAttributeChanges'](_0xe4b43d){this['_recordAttributeSuggestions']=!0x0,_0xe4b43d();}['_isRegisteredAttribute'](_0x334cb1){const _0x511262=this['_isBlockAttribute'](_0x334cb1),_0x1a12f0=this['_inlineAttributeKeys']['has'](_0x334cb1);return _0x511262||_0x1a12f0;}['_reduceExistingSuggestions'](_0x2a670f,_0x28f686){if(0x0==_0x28f686['length'])return!0x1;let _0x17ccc2=!0x1;for(const _0x12150b of _0x28f686){const _0x5a36ff=this['_findSuggestions'](_0x12150b['range'],'attribute')['filter'](_0x49458a=>!_0x49458a['meta']['isNextTo'])['map'](_0x40b80a=>_0x40b80a['suggestion']),_0x3b2cd1=_0x473f1e({'newValue':_0x12150b['newValue']});_0x5a36ff['filter'](_0x23e525=>{const [_0x81899d,_0x77db70]=_0x23e525['subType']['split']('|');return _0x81899d==_0x12150b['key']&&_0x77db70!=_0x3b2cd1;})['forEach'](_0x4420d7=>{this['_reduceSuggestionAttributeRange'](_0x4420d7,_0x12150b['range'],_0x2a670f),_0x17ccc2=!0x0;});}return _0x17ccc2;}['_reduceSuggestionAttributeRange'](_0x18e0ad,_0x387e4c,_0x2beb72){const _0x3790ea=_0x18e0ad['getFirstRange']()['getDifference'](_0x387e4c);0x0!==_0x3790ea['length']?0x1!==_0x3790ea['length']?this['_breakSuggestionMarker'](_0x18e0ad,_0x387e4c['start'],_0x387e4c['end']):this['_setSuggestionRange'](_0x18e0ad,_0x3790ea[0x0]):_0x2beb72['removeMarker'](_0x18e0ad['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x33d94f){this['_editor']=_0x33d94f,this['_model']=_0x33d94f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xb31085,_0x5cef96,_0x3246ef,_0x4ee62b,_0x1135fc,_0x5af866,_0x58aaca){return new o(this['_model'],{'type':_0xb31085,'subType':_0x5cef96,'id':_0x3246ef,'originalSuggestionId':_0x58aaca,'author':_0x4ee62b,'creator':_0x4ee62b,'attributes':_0x1135fc,'onAttributesChange':_0x5af866,'onAccept':(..._0x573c6b)=>this['getSuggestionCallback'](_0xb31085,_0x5cef96,'accept')(..._0x573c6b),'onDiscard':(..._0x22348b)=>this['getSuggestionCallback'](_0xb31085,_0x5cef96,'discard')(..._0x22348b)});}['registerCustomCallback'](_0xb0c8fc,_0x29f97b,_0x248c76,_0x4ab556){const _0x196493=_0xb0c8fc+':'+_0x29f97b+':'+_0x248c76;this['_customCallbacks']['set'](_0x196493,_0x4ab556);}['getSuggestionCallback'](_0x5ace82,_0x8154b0,_0x201fe8){const _0x4894a3=_0x5ace82+':'+_0x8154b0+':'+_0x201fe8;return this['_customCallbacks']['get'](_0x4894a3)||this['_defaultCallbacks']['get'](_0x5ace82+':'+_0x201fe8);}['_registerDefaultCallbacks'](){const _0x39e4a2=()=>!0x1,_0x8ffe70=_0x43bba9=>{_0x43bba9['sort']((_0x408d30,_0x193c12)=>_0x408d30['start']['isBefore'](_0x193c12['start'])?0x1:-0x1),this['_model']['change'](_0x5c419e=>{for(const _0x4a98a7 of _0x43bba9){let _0x5d6f11;_0x5d6f11=_0x4a98a7['end']['isAtEnd']&&_0x4a98a7['end']['parent']==_0x4a98a7['start']['nodeAfter']?_0x5c419e['createSelection'](_0x4a98a7['start']['nodeAfter'],'on'):_0x5c419e['createSelection'](_0x4a98a7),this['_model']['deleteContent'](_0x5d6f11,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1fff50=(_0x5e6a26,_0x46687c)=>{_0x46687c&&this['_model']['change'](_0x43ac74=>{const {commandName:_0x4c0168,commandParams:_0x356696=[]}=_0x46687c,_0x237fb8=_0x5e6a26['map'](_0x18736e=>(Lt(_0x18736e)&&(_0x18736e=this['_model']['createRange'](_0x18736e['end'])),_0x18736e))['filter'](_0x51d9a6=>'$graveyard'!==_0x51d9a6['root']['rootName']);if(_0x237fb8['length']<0x1)return;const _0x407fa8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x38a05c=>_0x5b3987['fromRange'](_0x38a05c));_0x43ac74['setSelection'](_0x237fb8);for(const _0x5ac2f5 of this['_editor']['commands']['commands']())_0x5ac2f5['refresh']();_0x356696['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4c0168,..._0x356696);const _0x2d9a27=_0x407fa8['filter'](_0x3fbdad=>'$graveyard'!=_0x3fbdad['root']['rootName']);_0x2d9a27['length']>0x0&&_0x43ac74['setSelection'](_0x2d9a27);for(const _0x4fce53 of _0x407fa8)_0x4fce53['detach']();});},_0x4202d0=(_0x4721d4,_0xd23767)=>0x1==_0x4721d4['length']&&0x1==_0xd23767['length']&&_0x4721d4[0x0]['end']['isEqual'](_0xd23767[0x0]['start']),_0x558c63=(_0x849f15,_0x2dc0a8,_0x578b1a,_0x4ac5fc)=>Wt(_0x849f15,_0x2dc0a8,_0x578b1a,_0x4ac5fc)?[_0x849f15,_0x2dc0a8]:Wt(_0x2dc0a8,_0x849f15,_0x4ac5fc,_0x578b1a)?[_0x2dc0a8,_0x849f15]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x39e4a2),this['_defaultCallbacks']['set']('insertion:discard',_0x8ffe70),this['_defaultCallbacks']['set']('insertion:join',_0x4202d0),this['_defaultCallbacks']['set']('insertion:chain',_0x558c63),this['_defaultCallbacks']['set']('deletion:accept',_0x8ffe70),this['_defaultCallbacks']['set']('deletion:discard',_0x39e4a2),this['_defaultCallbacks']['set']('deletion:join',_0x4202d0),this['_defaultCallbacks']['set']('deletion:chain',_0x558c63),this['_defaultCallbacks']['set']('formatInline:accept',_0x1fff50),this['_defaultCallbacks']['set']('formatInline:discard',_0x39e4a2),this['_defaultCallbacks']['set']('formatInline:join',_0x4202d0),this['_defaultCallbacks']['set']('formatInline:chain',_0x39e4a2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1fff50),this['_defaultCallbacks']['set']('formatBlock:discard',_0x39e4a2),this['_defaultCallbacks']['set']('formatBlock:join',_0x4202d0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x39e4a2),this['_defaultCallbacks']['set']('attribute:accept',_0x39e4a2),this['_defaultCallbacks']['set']('attribute:discard',(_0x5d5890,_0x1acea5)=>{if(!_0x1acea5)return;const _0x49bb08=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x37483f=>{if(_0x1acea5['key']==u)for(const _0x43cb85 of _0x5d5890){const _0x5df6b7=_0x43cb85['start']['nodeAfter'],_0xba1393=_0x1acea5['oldValue'];_0x37483f['rename'](_0x5df6b7,_0xba1393);}else{if(_0x49bb08['_isBlockAttribute'](_0x1acea5['key'])){for(const _0x5f1881 of _0x5d5890)void 0x0!==_0x1acea5['oldValue']?_0x37483f['setAttribute'](_0x1acea5['key'],_0x1acea5['oldValue'],_0x5f1881['start']['nodeAfter']):_0x37483f['removeAttribute'](_0x1acea5['key'],_0x5f1881['start']['nodeAfter']);}else{for(const _0x37b05c of _0x5d5890)_0x1acea5['oldValue']?_0x37483f['setAttribute'](_0x1acea5['key'],_0x1acea5['oldValue'],_0x37b05c):_0x37483f['removeAttribute'](_0x1acea5['key'],_0x37b05c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4202d0);}}function Gt(_0x218e3f,_0x527cda,_0x8d7cf2){for(const _0x5af62e of _0x527cda['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5af62e['root']==_0x5af62e)return!0x1;if(!_0x8d7cf2['containsItem'](_0x5af62e))return!0x1;if(_0x218e3f['isObject'](_0x5af62e)||_0x218e3f['isLimit'](_0x5af62e))return!0x0;}return!0x1;}function Lt(_0x8a0a33){return _0x8a0a33['end']['parent']==_0x8a0a33['start']['nodeAfter']&&_0x8a0a33['end']['isAtStart'];}function Jt(_0x190d39,_0x1b75c1,_0x5d2a3b,_0x3fe2fa){const _0x183a96=_0x259a68=>!_0x259a68['item']['is']('$textProxy')&&!_0x3fe2fa['isObject'](_0x259a68['item']),_0x468106=_0x190d39['start']['getLastMatchingPosition'](_0x183a96),_0x50a165=_0x190d39['end']['getLastMatchingPosition'](_0x183a96,{'direction':'backward'});return(!_0x190d39['start']['isEqual'](_0x468106)||!_0x190d39['end']['isEqual'](_0x50a165))&&(_0x468106['isBefore'](_0x50a165)?_0x5d2a3b['updateMarker'](_0x1b75c1,{'range':_0x5d2a3b['createRange'](_0x468106,_0x50a165)}):_0x5d2a3b['removeMarker'](_0x1b75c1),!0x0);}function Kt(_0x40c07c){return _0x473f1e(_0x40c07c);}function Ht(_0x39f69f){const _0x475186=_0x39f69f['start']['nodeAfter'];return _0x475186&&_0x475186['is']('element');}function qt(_0x31ee7d,_0x1a5525){return null==_0x31ee7d['end']['nodeBefore']&&_0x31ee7d['end']['parent']==_0x31ee7d['start']['nodeAfter']?zt(_0x31ee7d['start']['nodeAfter'],_0x1a5525):_0x31ee7d;}function zt(_0x531c79,_0x5960bb){const _0x31b062=_0x5960bb['schema']['isObject'](_0x531c79)||_0x5960bb['schema']['isSelectable'](_0x531c79);return _0x5960bb['createRange'](_0x5960bb['createPositionAt'](_0x531c79,'before'),_0x31b062?_0x5960bb['createPositionAfter'](_0x531c79):_0x5960bb['createPositionAt'](_0x531c79,'end'));}function Wt(_0x5c06fb,_0x267bb7,_0x17bf0d,_0x107d20){return!!Qt(_0x5c06fb,_0x267bb7)&&_0x17bf0d['end']['isEqual'](_0x107d20['start']);}function Qt(_0x5c0c54,_0x16cf4e){if(!_0x5c0c54['_isDataLoaded']||!_0x16cf4e['_isDataLoaded'])return!0x1;const _0x19ca2f=new Set(Object['keys'](_0x5c0c54['attributes'])),_0x5254b3=new Set(Object['keys'](_0x16cf4e['attributes']));if(_0x19ca2f['delete']('groupId'),_0x5254b3['delete']('groupId'),0x0==_0x19ca2f['size']&&0x0==_0x5254b3['size'])return!0x0;if(_0x19ca2f['size']!=_0x5254b3['size'])return!0x1;const _0x179544={..._0x5c0c54['attributes']},_0x20ac2a={..._0x16cf4e['attributes']};return delete _0x179544['groupId'],delete _0x20ac2a['groupId'],JSON['stringify'](_0x179544)==JSON['stringify'](_0x20ac2a);}function Xt(_0x54347f,_0x45b536){const _0x1c6f8f=Yt(_0x54347f['attributes']),_0x3c9ec2=Yt(_0x45b536);if(!_0x54347f['_isDataLoaded'])return!0x1;for(const _0x4aedc4 of Object['keys'](_0x3c9ec2))if(!_0x2eabca(_0x1c6f8f[_0x4aedc4],_0x3c9ec2[_0x4aedc4]))return!0x1;return!0x0;}function Yt(_0x31a1c0){const _0x5c823d=Object['assign']({},_0x31a1c0);return delete _0x5c823d['skipNestingCheck'],delete _0x5c823d['tablePasteChainId'],_0x5c823d;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x1f213a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x407a66,_0x3198f2,_0x3c2a4b,_0x3c287e){super(),this['model']=_0x3198f2,this['view']=_0x3c2a4b,this['commentThreadController']=_0x3c287e,this['_editor']=_0x407a66,this['_acceptCommand']=_0x407a66['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x407a66['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4fef8f,_0x5377cb)=>_0x4fef8f||_0x5377cb),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x52d1a2=>_0x52d1a2&&this['_editor']['model']['canEditAt'](_0x3198f2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x230bd7=>_0x230bd7&&this['_editor']['model']['canEditAt'](_0x3198f2['getRanges']())),this['_pendingAction']=null,_0x3c2a4b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3c2a4b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3c2a4b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3c2a4b,'change:isDirty',()=>{_0x3c2a4b['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 _0x58fc08=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x58fc08);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x486323{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3e8775,_0x55b9ce,_0x20f48a,_0x5b6a4f){super(_0x3e8775),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x39e842(_0x3e8775,c(_0x3e8775,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x55b9ce['authoredAt']),this['bind']('authoredAt')['to'](_0x55b9ce),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x55b9ce,'authoredAt',this,'descriptionParts',(_0x50f30d,_0x2264ea,_0x4e15a3)=>{const _0x38d18b=_0x4e15a3['map'](_0x3691b4=>ls(_0x3691b4['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x50f30d-0x1,_0x55b9ce['author']['name'],_0x2264ea?_0x5b6a4f['formatDateTime'](_0x2264ea):'',new DOMParser()['parseFromString'](_0x38d18b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4f47bb(),this['focusTracker']=new _0x5e8cfc(),this['keystrokes']=new _0x3655e0(),this['focusCycler']=new _0x12544e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xdd6eb2=>_0xdd6eb2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x55b9ce,this['_localUser']=_0x20f48a,this['_config']=_0x5b6a4f,_0x5b6a4f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x113609(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xbd146a}=this['_config'];this['commentsListView']=new _0xbd146a(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',_0x4ab81f=>_0x4ab81f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5f4d07,_0x22c34b)=>_0x5f4d07||!!_0x22c34b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1cb068}=this['_config'],_0x4ad8fd=new _0x1cb068(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4fc078=_0x4ad8fd['commentInputView'];return _0x4ad8fd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4fc078,'value',(_0x47659c,_0x493623,_0x3e9acf)=>!!_0x3e9acf||_0x47659c&&!_0x493623),_0x4fc078['on']('submit',(_0x248b6a,_0x2c6b7a)=>{this['fire']('addComment',_0x2c6b7a),_0x4fc078['editor']['setData']('');}),_0x4fc078['on']('cancel',()=>this['focus']()),_0x4fc078['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4ad8fd;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x4115ae,_0x573737,_0x4752db,_0x312674){super(_0x4115ae,_0x573737,_0x4752db,_0x312674),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x49ffc2=>_0x49ffc2&&_0x49ffc2[0x0]?_0x49ffc2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1e44f8,_0x1c9e4b)=>{let _0x588983='';for(const _0x12168e of _0x1e44f8)_0x588983+='<p>'+ls(_0x12168e['content'],_0x12168e['color'])+'</p>';return _0x1c9e4b?_0x588983:ti(_0x588983,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x312674['SuggestionView'](_0x4115ae,_0x573737,{'formatDateTime':_0x312674['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x22a8dd=this['bindTemplate'],_0x5b9163=[this['suggestionView']];return this['commentsListView']&&_0x5b9163['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5b9163['push'](this['commentThreadInputView']),_0x5b9163['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x22a8dd['if']('isActive','ck-suggestion-wrapper--active'),_0x22a8dd['to']('type',_0x47409c=>'ck-suggestion-'+_0x47409c),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':0x0,'role':'listitem','aria-label':_0x22a8dd['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5b9163};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x486323{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4dffc1,_0x3dc584,_0x1aa545){super(_0x4dffc1),this['_model']=_0x3dc584,this['_config']=_0x1aa545,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3dc584),this['acceptButton']=this['_createButton'](c(_0x4dffc1,'Accept\x20suggestion'),_0x1fd088,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4dffc1,'Discard\x20suggestion'),_0x3712a9,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x197c7f(_0x4dffc1,_0x3dc584['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4f47bb([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5e8cfc(),this['keystrokes']=new _0x3655e0(),this['focusCycler']=new _0x12544e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3ff540=>_0x3ff540['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x164884=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x164884['innerHTML']=this['description'],this['on']('change:description',(_0xe94b85,_0x41d703,_0x444ed8)=>{_0x164884['innerHTML']=_0x444ed8;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x46b073=this['bindTemplate'],_0x2b7043=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x46b073['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x46b073['to']('authoredAt',_0x5990a7=>this['_config']['formatDateTime'](_0x5990a7))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x2b7043['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x2b7043}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x461e34,_0x2eacfa,_0x4a5828,_0x4b97db,_0x50944d){const _0x502b29=new _0x1d944b(this['locale']);return _0x502b29['set']({'label':_0x461e34,'icon':_0x2eacfa,'tooltip':!0x0,'tooltipPosition':_0x50944d}),_0x502b29['extendTemplate']({'attributes':{'class':_0x4a5828}}),_0x502b29['on']('execute',()=>{this['fire'](_0x4b97db,this['_model']['id']);}),_0x502b29;}['_setupKeyboardNavigation'](){const _0x180bba=this['element'];this['keystrokes']['listenTo'](_0x180bba);for(const _0x3cec14 of this['focusables'])this['focusTracker']['add'](_0x3cec14['element']),this['keystrokes']['listenTo'](_0x3cec14['element']);this['keystrokes']['set']('enter',(_0x4dd90e,_0x3d0d6c)=>{_0x180bba===_0x4dd90e['target']&&(this['focusCycler']['focusFirst'](),_0x3d0d6c());}),this['keystrokes']['set']('esc',(_0x538b58,_0x3d0a30)=>{_0x180bba!==_0x538b58['target']&&(this['focus'](),_0x3d0a30());});}}class d extends _0xac175e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x46023b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ff13d){super(_0x3ff13d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x522eff=this['editor']['config'];_0x522eff['define']('trackChanges.SuggestionThreadView',fe),_0x522eff['define']('trackChanges.SuggestionView',we),_0x522eff['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x522eff['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x397a0f,_0x265b24){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x260d14,_0x1f2174]of this['_handleControllerBuffer']){const _0x21f4fc=this['_suggestionToController']['has'](_0x260d14);_0x21f4fc||_0x1f2174?_0x21f4fc&&_0x1f2174&&this['_destroyController'](_0x260d14):this['_initializeController'](_0x260d14);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x397a0f,_0x265b24);}['init'](){const _0x4970d2=this['editor'],_0x29668b=_0x4970d2['plugins']['get']('TrackChangesEditing'),_0x338384=_0x4970d2['plugins']['get']('Annotations'),_0x4759db=_0x4970d2['plugins']['get']('EditorAnnotations'),_0x5617ec=_0x4970d2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4759db['addSourceCollector'](()=>{const _0x2391d0=[];for(const [_0x26526d,_0x559520]of Array['from'](this['_suggestionToController'])){const _0x59fd18=_0x26526d['getAllAdjacentSuggestions'](),_0x27b7c2=[];for(const _0x14fbd4 of _0x59fd18){if(!_0x14fbd4['isInContent'])continue;if(_0x14fbd4['isMultiRange']){_0x27b7c2['push'](..._0x14fbd4['getRanges']());continue;}const _0x4e091c=_0x14fbd4['getFirstRange']();if(_0x27b7c2['length']>0x0){const _0x51c644=_0x27b7c2[0x0]['getJoined'](_0x4e091c);if(_0x51c644){_0x27b7c2[0x0]=_0x51c644;continue;}}_0x27b7c2['push'](_0x4e091c);}_0x2391d0['push']([_0x559520['view'],_0x27b7c2]);}return _0x2391d0;}),this['listenTo'](_0x29668b,'suggestionLoaded',(_0x2debcb,_0x32a29b)=>{this['listenTo'](_0x32a29b,'change:previous',(_0x5b1d9d,_0x5b2c28,_0x4c65be,_0x527c31)=>{_0x32a29b['isInContent']&&(null==_0x4c65be?(this['_updateController'](_0x527c31['head']),this['_handleSuggestionControllerDelayed'](_0x32a29b,!0x1)):(this['_updateController'](_0x4c65be['head']),null==_0x527c31&&this['_handleSuggestionControllerDelayed'](_0x32a29b,!0x0)));}),null!==_0x32a29b['previous']?this['_updateController'](_0x32a29b['head']):this['_handleSuggestionControllerDelayed'](_0x32a29b,!0x1);}),this['listenTo'](_0x29668b,'suggestionUnloaded',(_0x34fee2,_0x2dd8fd,_0x42e60b)=>{this['stopListening'](_0x2dd8fd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2dd8fd),this['_suggestionToController']['has'](_0x2dd8fd)&&this['_destroyController'](_0x2dd8fd),_0x42e60b&&this['_updateController'](_0x42e60b['head']);}),this['listenTo'](_0x29668b,'suggestionChanged',(_0x4113d4,_0xfe1edb)=>{this['_updateController'](_0xfe1edb);}),this['listenTo'](_0x338384,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5617ec,'addComment',(_0x7c144e,{threadId:_0x21805d,isFromAdapter:_0x482d5b})=>{if(_0x482d5b||!_0x29668b['hasSuggestion'](_0x21805d))return;const _0x10d754=_0x29668b['getSuggestion'](_0x21805d);this['_suggestionToController']['get'](_0x10d754)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5048b7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5bf28c;for(const _0x44d8fc in _0x5048b7){const _0x4b278e=_0x44d8fc,_0x51aa4f=_0x5048b7[_0x4b278e];if('trackChangesLicenseKeyValid'==_0x51aa4f||'trackChangesLicenseKeyInvalid'==_0x51aa4f||'trackChangesLicenseKeyExpired'==_0x51aa4f||'trackChangesLicenseKeyDomainLimit'==_0x51aa4f||'trackChangesLicenseKeyNotAllowed'==_0x51aa4f||'trackChangesLicenseKeyEvaluationLimit'==_0x51aa4f||'trackChangesLicenseKeyTrialLimit'==_0x51aa4f||'trackChangesLicenseKeyUsageLimit'==_0x51aa4f){delete _0x5048b7[_0x4b278e],_0x5bf28c=_0x51aa4f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5bf28c&&_0x5048b7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5bf28c&&_0x5048b7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5bf28c&&_0x5048b7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5bf28c&&_0x5048b7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5bf28c&&_0x5048b7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5bf28c&&_0x5048b7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5bf28c&&_0x5048b7['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x32cd16=this['editor']['plugins']['get']('Annotations'),_0x53434d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e9457=Array['from'](_0x32cd16['activeAnnotations'],_0x305331=>_0x305331['innerView'])['filter'](_0x1fccb2=>this['_viewToController']['has'](_0x1fccb2)),_0x41408c=[];for(const _0x383985 of _0x5e9457){const _0x3355b5=this['_viewToController']['get'](_0x383985)['model']['getAllAdjacentSuggestions']();_0x41408c['push'](..._0x3355b5['reduce']((_0x3ed332,_0x2ca17a)=>[..._0x3ed332,..._0x2ca17a['getMarkerNames']()],[]));}_0x53434d['activeMarkers']=_0x41408c;}['_addUIComponentsToFactory'](){const _0x29a1e4=this['editor'],_0x38857d=_0x29a1e4['locale'],_0x51b9cd=c(_0x38857d,'Track\x20changes'),_0x16d0e3=new _0x21b3d3([{'type':'switchbutton','model':new _0x5e0531({'withText':!0x0,'isToggleable':!0x0,'label':_0x51b9cd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5e0531({'withText':!0x0,'label':c(_0x38857d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5e0531({'withText':!0x0,'label':c(_0x38857d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5e0531({'withText':!0x0,'label':c(_0x38857d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5e0531({'withText':!0x0,'label':c(_0x38857d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x29a1e4['plugins']['has']('TrackChangesPreview')&&_0x16d0e3['addMany']([{'type':'separator'},{'type':'button','model':new _0x5e0531({'withText':!0x0,'label':c(_0x38857d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5bda6a of _0x16d0e3)if(ke(_0x5bda6a)){const _0x22bc8c=_0x29a1e4['commands']['get'](_0x5bda6a['model']['commandName']);_0x5bda6a['model']['bind']('isOn','isEnabled')['to'](_0x22bc8c,'value','isEnabled');}_0x29a1e4['ui']['componentFactory']['add']('trackChanges',_0x106f48=>this['_createToolbarButton'](_0x106f48,_0x16d0e3,_0x51b9cd)),_0x29a1e4['ui']['componentFactory']['add']('menuBar:trackChanges',_0xc6b7c9=>this['_createMenuBarMenu'](_0xc6b7c9,_0x16d0e3,_0x51b9cd));}['_createToolbarButton'](_0x5eaa3b,_0xb1ed77,_0x1b7b93){const _0x5910f0=_0x29815e(_0x5eaa3b,_0x3cf9ee),_0x39ac97=this['editor']['commands']['get']('trackChanges');_0x5910f0['buttonView']['set']({'tooltip':_0x1b7b93,'label':_0x1b7b93,'icon':_0x3aba50}),_0x5910f0['buttonView']['bind']('isOn')['to'](_0x39ac97,'value'),_0x5910f0['buttonView']['on']('execute',()=>{_0x39ac97['execute'](),this['editor']['editing']['view']['focus']();}),_0xf8aee7(_0x5910f0,_0xb1ed77,{'role':'menu'});const _0x4b7d51=[];for(const _0x4057a0 of _0xb1ed77)ke(_0x4057a0)&&_0x4b7d51['push'](this['editor']['commands']['get'](_0x4057a0['model']['commandName']));const _0x4a06ca=_0x5910f0['buttonView'];return _0x4a06ca['actionView']['unbind']('isEnabled'),_0x4a06ca['arrowView']['unbind']('isEnabled'),_0x4a06ca['actionView']['bind']('isEnabled')['to'](_0x39ac97,'isEnabled'),_0x4a06ca['arrowView']['bind']('isEnabled')['toMany'](_0x4b7d51,'isEnabled',(..._0x2305e7)=>_0x2305e7['some'](_0x115ab1=>_0x115ab1)),_0x5910f0['on']('execute',_0x26c679=>{this['editor']['execute'](_0x26c679['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5910f0;}['_createMenuBarMenu'](_0x5de355,_0x11b698,_0x3f64dd){const _0x145e79=new _0x549d73(_0x5de355),_0x5e1998=this['editor']['commands']['get']('trackChanges');_0x145e79['buttonView']['set']({'label':_0x3f64dd,'icon':_0x3aba50});const _0x275aaa=new _0x3cf913(_0x5de355);for(const _0x124f2b of _0x11b698){if('separator'==_0x124f2b['type']){_0x275aaa['items']['add'](new _0x5c3a7e(_0x5de355));continue;}const _0x16e153=new _0x5b03be(_0x5de355,_0x145e79),_0x3b6388=new _0x1b760a(_0x5de355),_0x425420=_0x124f2b['model'];_0x3b6388['bind'](...Object['keys'](_0x425420))['to'](_0x425420),_0x3b6388['delegate']('execute')['to'](_0x145e79),_0x3b6388['on']('execute',()=>{this['editor']['execute'](_0x425420['commandName']),this['editor']['editing']['view']['focus']();}),_0x16e153['children']['add'](_0x3b6388),_0x275aaa['items']['add'](_0x16e153);}return _0x145e79['bind']('isEnabled')['to'](_0x5e1998,'isEnabled'),_0x145e79['panelView']['children']['add'](_0x275aaa),_0x145e79;}['_initializeController'](_0x25f5b5){const _0x5e831a=this['editor'],_0x274238=_0x5e831a['config'],_0x23426e=_0x5e831a['plugins']['get']('Annotations'),_0x46dcf9=_0x5e831a['plugins']['get']('CommentsRepository'),_0x16312c=_0x5e831a['plugins']['get']('EditorAnnotations'),_0x1ab7b2=_0x5e831a['plugins']['get'](_0x46023b)['me'],_0x3947c7=_0x274238['get']('trackChanges')['SuggestionThreadView'],_0x5686c7=_0x274238['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x139332,CommentThreadInputView:_0x526d50}=_0x5e831a['plugins']['get']('CommentsUI');let _0x22915f,_0x15e2ef,_0x385d56;this['_annotationViews']['has'](_0x25f5b5['id'])?(_0x15e2ef=this['_annotationViews']['get'](_0x25f5b5['id']),_0x22915f=_0x15e2ef['mainView']):(_0x22915f=new _0x3947c7(_0x5e831a['locale'],_0x25f5b5,_0x1ab7b2,{'disableComments':this['_disableComments'],'editorConfig':{..._0x274238['get']('comments.editorConfig'),'licenseKey':_0x274238['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x274238['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x274238['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x274238['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x461b86(_0x274238['get']('locale'),_0x5e831a['locale']),'CommentView':_0x274238['get']('comments')['CommentView'],'CommentsListView':_0x139332,'CommentThreadInputView':_0x526d50,'SuggestionView':_0x5686c7}),_0x22915f['suggestionView']['acceptButton']['on']('execute',()=>{_0x5e831a['editing']['view']['focus']();}),_0x22915f['suggestionView']['discardButton']['on']('execute',()=>{_0x5e831a['editing']['view']['focus']();}),_0x15e2ef=_0x23426e['createAnnotationView'](this['editor']['locale'],_0x22915f),_0x15e2ef['bind']('isDirty')['to'](_0x22915f,'isDirty'),_0x15e2ef['bind']('length')['to'](_0x22915f),_0x15e2ef['bind']('type')['to'](_0x22915f,'type',_0x58303b=>'suggestion-'+_0x58303b),_0x22915f['on']('escape',()=>{_0x385d56['fire']('escape');}),this['_annotationViews']['set'](_0x25f5b5['id'],_0x15e2ef));const _0x4b0f46=_0x46dcf9['createCommentThreadController'](_0x25f5b5['commentThread'],_0x22915f),_0x5ac47f=new pe(_0x5e831a,_0x25f5b5,_0x22915f,_0x4b0f46),_0x2a50a9=_0x25f5b5['getAllAdjacentSuggestions']()['filter'](_0x5a905b=>_0x5a905b['isInContent']);_0x22915f['descriptionParts']=_0x5e831a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2a50a9),this['_suggestionToController']['set'](_0x25f5b5,_0x5ac47f),this['_viewToController']['set'](_0x22915f,_0x5ac47f),_0x385d56=_0x23426e['createAnnotation']({'view':_0x15e2ef,'target':()=>{const _0x4b0af5=[],_0x15866f=_0x25f5b5['getAllAdjacentSuggestions']()['filter'](_0x12c3ef=>_0x12c3ef['isInContent']);for(const _0x5cb363 of _0x15866f)_0x4b0af5['push'](..._0x5cb363['getMarkers']());return _0x3831a6(_0x5e831a['editing'],_0x4b0af5);},'type':()=>'suggestion-'+_0x5ac47f['view']['type']}),_0x46dcf9['_bindAnnotationToEditors'](_0x22915f,_0x385d56),_0x23426e['add'](_0x385d56),_0x16312c['registerAnnotation'](_0x385d56);}['_destroyController'](_0x2383c5){const _0x53ae30=this['editor']['plugins']['get']('CommentsRepository'),_0x2619fd=this['editor']['plugins']['get']('Annotations'),_0x16236e=this['_suggestionToController']['get'](_0x2383c5),_0x583052=_0x16236e['view'],_0x35fb8e=_0x2619fd['getByInnerView'](_0x583052);_0x53ae30['_unbindEditors'](_0x583052),_0x35fb8e&&_0x2619fd['remove'](_0x35fb8e),this['_suggestionToController']['delete'](_0x2383c5),this['_viewToController']['delete'](_0x583052),_0x16236e['destroy']();}['_updateController'](_0x58cfb3){if(!_0x58cfb3['isInContent']||!this['_suggestionToController']['has'](_0x58cfb3))return;const _0x407b5e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51e9a9=this['_suggestionToController']['get'](_0x58cfb3),_0xf66e4f=_0x58cfb3['getAllAdjacentSuggestions']();_0x51e9a9['view']['descriptionParts']=_0x407b5e['descriptionFactory']['getDescriptions'](_0xf66e4f);}['destroy'](){for(const _0x5eecf5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5eecf5);for(const _0x335c41 of this['_annotationViews']['values']())_0x335c41['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x51edbb){return'model'in _0x51edbb;}class k extends _0xac175e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xe4372f){this['editor']['plugins']['get'](p)['adapter']=_0xe4372f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x948abf){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x948abf);}['getSuggestions']({skipNotAttached:_0x2bd7d1=!0x1,toJSON:_0x4f8e6a=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2bd7d1,'toJSON':_0x4f8e6a});}['getSuggestion'](_0x135348){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x135348);}}const w=['Pagination'];class T extends _0xac175e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xd05cd0=this['editor'];if(_0xd05cd0['config']['define']('trackChangesData.editorCreator',_0x104899=>{const _0x479ee7=_0xd05cd0['model']['document']['getRootNames']()['reduce']((_0x490201,_0x5bf95f)=>(_0x490201[_0x5bf95f]='',_0x490201),{});return _0xd05cd0['constructor']['create'](_0x479ee7,_0x104899);}),'function'!=typeof _0xd05cd0['config']['get']('trackChangesData')['editorCreator'])throw new _0x3ebbb1('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5d8dd2){return N(this['editor'],!0x0,_0x5d8dd2);}['getDataWithDiscardedSuggestions'](_0x352e6d){return N(this['editor'],!0x1,_0x352e6d);}}class D extends _0xac175e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b4ecc){function _0x4e0d62(_0x2dd6c2){return _0x2dd6c2['map'](_0x594240=>String['fromCharCode'](_0x594240))['join']('');}super(_0x5b4ecc),this['result']='end',_0x5b4ecc[_0x4e0d62([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e0d62([0x76,0x69,0x65,0x77])][_0x4e0d62([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e0d62([0x61,0x75,0x74,0x6f]),_0x5b4ecc[_0x4e0d62([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4e0d62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e0d62([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4e0d62([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4e0d62([0x6f,0x6b])});}['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 Ge(_0x475730){return void 0x0!==_0x475730['getRootsAttributes'];}async function N(_0x366690,_0x6e92e1,_0x3883e2){const _0x485f43=_0x386543(_0x366690,w);_0x485f43['plugins']['push'](p,D),_0x485f43['rootsAttributes']=Ge(_0x366690)?_0x366690['getRootsAttributes']():void 0x0;const _0x35def7=document['createDocumentFragment'](),_0x5adb64=_0x366690['config']['get']('trackChangesData')['editorCreator'],_0x4cb0dd=await _0x5adb64(_0x485f43,()=>function(_0x1d612d){const _0x4ba136=document['createElement']('div');return _0x1d612d['appendChild'](_0x4ba136),_0x4ba136;}(_0x35def7));!function(_0x10f4e2,_0x45e4b9){const _0x2f3863=_0x10f4e2['model']['document']['getRootNames']()['reduce']((_0x32c374,_0x439577)=>(_0x32c374[_0x439577]=_0x10f4e2['data']['get']({'rootName':_0x439577}),_0x32c374),{}),_0x275cff=_0x10f4e2['plugins']['get']('Users')['users']['map'](_0x3acf4c=>({'id':_0x3acf4c['id'],'name':_0x3acf4c['name']})),_0x299f09=_0x10f4e2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x469e6b=_0x10f4e2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5cf73d=_0x45e4b9['plugins']['get']('Users'),_0xc7aad1=_0x45e4b9['plugins']['get']('TrackChangesEditing'),_0x5ce4f9=_0x45e4b9['plugins']['get']('CommentsRepository');for(const _0x4e3208 of _0x5ce4f9['getCommentThreads']())_0x4e3208['remove']();for(const _0xbbd5e4 of _0x275cff)_0x5cf73d['getUser'](_0xbbd5e4['id'])||_0x5cf73d['addUser'](_0xbbd5e4);_0x5cf73d['me']||_0x5cf73d['useAnonymousUser']();for(const _0x49bdd1 of _0x469e6b)_0x5ce4f9['addCommentThread'](_0x49bdd1);for(const _0x582739 of _0x299f09)_0xc7aad1['addSuggestionData'](_0x582739);_0x45e4b9['data']['set'](_0x2f3863);}(_0x366690,_0x4cb0dd),_0x4cb0dd['execute'](_0x6e92e1?'acceptAllSuggestions':'discardAllSuggestions');const _0x4ad5f0=Ge(_0x4cb0dd)?_0x4cb0dd['getFullData'](_0x3883e2):_0x4cb0dd['data']['get'](_0x3883e2);return await _0x4cb0dd['destroy'](),_0x4ad5f0;}class Me extends _0x486323{['options'];constructor(_0xea1efb,_0x34db3d){super(_0xea1efb),this['options']=_0x34db3d,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x1c5122,_0x5bc965){if(!this['element'])return;const _0x446ac4=[];for(const [_0x53046e,_0x2c768e]of _0x1c5122){const _0x30d21b=document['createElement']('div');_0x30d21b['setAttribute']('data-ck-root-name',_0x53046e),_0x30d21b['className']=_0x2c768e['classes']+'\x20ck-track-changes-preview__root-container',_0x30d21b['innerHTML']=_0x2c768e['content'],_0x446ac4['push'](_0x30d21b);}_0x5bc965(this['element'],_0x446ac4),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x51c4d5{constructor(_0x18375b){super(_0x18375b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x41f82f=this['editor'],_0x3a5672=_0x41f82f['locale'],_0x8f2b03=_0x41f82f['plugins']['get']('Dialog');let _0x331dff;const _0x6a4178=function(_0x380885){const _0x4cc155={};if('editables'in _0x380885['ui']['view']){for(const [_0x234bac,_0x944ba]of Object['entries'](_0x380885['ui']['view']['editables']))_0x4cc155[_0x234bac]=_0x944ba['element'];}else _0x4cc155[_0x380885['model']['document']['getRootNames']()[0x0]]=_0x380885['ui']['view']['editable']['element'];return _0x4cc155;}(_0x41f82f),_0x42a9e0=function(_0x2492f1){let _0x46217a=0x0;for(const _0x24d926 of Object['values'](_0x2492f1))_0x46217a=Math['max'](_0x46217a,_0x24d926['getBoundingClientRect']()['width']);let _0x107691=0x0;for(const _0x424fd2 of Object['values'](_0x2492f1))_0x107691+=_0x424fd2['getBoundingClientRect']()['height'];const _0x33909e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1d7ee4=Math['min'](_0x107691,_0x33909e);return{'width':_0x46217a,'height':_0x1d7ee4};}(_0x6a4178);_0x8f2b03['show']({'id':'finalContentPreview','title':c(_0x3a5672,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3a5672,{'dialogRects':_0x42a9e0}),'onHide':()=>{_0x331dff['detachFromDom']();},'onShow':()=>{_0x41f82f['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x54efd7=>{const _0x3037ae=this['_standarizeRootsData'](_0x54efd7,_0x41f82f,_0x6a4178);_0x8f2b03['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3037ae,_0x41f82f['config']['get']('trackChanges.preview.renderFunction'));}),_0x331dff=new _0x41989d(_0x3a5672,[_0x8f2b03['view']]),_0x331dff['attachToDom'](),_0x331dff['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x41f82f['once']('destroy',()=>{_0x331dff['detachFromDom']();});const _0x2707c7=_0x8f2b03['view']['headerView']['class'];_0x8f2b03['view']['headerView']['class']=_0x2707c7?_0x2707c7+'\x20ck-reset_all':'ck-reset_all',_0x8f2b03['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x8f2b03['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3dff0d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x27f102=_0x3dff0d['previewMode'],_0x2449b8={};if('$labels'===_0x27f102){for(const _0x16b46b of _0x3dff0d['getMergeFieldsIds']())_0x2449b8[_0x16b46b]=_0x3dff0d['getLabel'](_0x16b46b)||_0x16b46b;}else{const _0x37553d='$defaultValues'===_0x27f102?_0x3dff0d['getDefaultValues']():_0x3dff0d['getDataSetValues'](_0x27f102,!0x0);for(const _0x394d6f of Object['entries'](_0x37553d)){const [_0x1c0c5c,_0x477170]=_0x394d6f;_0x2449b8[_0x1c0c5c]=null!==_0x477170?_0x477170:_0x3dff0d['getLabel'](_0x1c0c5c)||_0x1c0c5c;}}return{'mergeFieldsData':_0x2449b8};}['_standarizeRootsData'](_0x3a3652,_0x46981b,_0x346548){let _0x3e80f4;if('string'==typeof _0x3a3652){const _0x48a2c9=_0x46981b['model']['document']['getRootNames']()[0x0];_0x3e80f4={[_0x48a2c9]:_0x3a3652};}else _0x3e80f4=_0x3a3652;const _0x193074=this['_fixMediaEmbeds'](_0x3e80f4,_0x46981b),_0x10745b=function(_0x550cf3,_0x571bc2){for(const [_0x1aeec1,_0x414c7f]of _0x550cf3)_0x414c7f['classes']=_0x571bc2[_0x1aeec1]['classList']['value']['replace']('ck-focused','');return _0x550cf3;}(this['_sortRoots'](_0x46981b)['reduce']((_0x54719d,_0x506f98)=>(_0x54719d['push']([_0x506f98,{'content':_0x193074[_0x506f98],'classes':''}]),_0x54719d),[]),_0x346548);return _0x10745b;}['_fixMediaEmbeds'](_0x24ced3,_0x4ff72d){if(!_0x4ff72d['plugins']['has']('MediaEmbedEditing'))return _0x24ced3;const _0x30fd2f=_0x4ff72d['plugins']['get']('MediaEmbedEditing');for(const [_0x216de9,_0x2cecc6]of Object['entries'](_0x24ced3)){const _0x1a4200=document['createElement']('div');_0x1a4200['innerHTML']=_0x2cecc6,(_0x1a4200['querySelectorAll']('figure.media')['forEach'](_0x3ed1ff=>{const _0x2da278=_0x3ed1ff['querySelector']('oembed');if(_0x2da278){const _0x1a7fe8=_0x2da278['getAttribute']('url');if(_0x1a7fe8){const _0x105f14=_0x30fd2f['registry']['getMediaViewElement'](new _0x454453(_0x4ff72d['editing']['view']['document']),_0x1a7fe8,{'elementName':'','renderForEditingView':!0x0}),_0x2f300c=document['createElement']('div');_0x2f300c['classList']['add']('ck-media__wrapper'),_0x105f14['render'](_0x2f300c,_0x4ff72d['editing']['view']['domConverter']),_0x2da278['replaceWith'](_0x2f300c);}}}),_0x24ced3[_0x216de9]=_0x1a4200['innerHTML']);}return _0x24ced3;}['_sortRoots'](_0x417baa){if(!function(_0x47e91a){return void 0x0!==_0x47e91a['getRootsAttributes'];}(_0x417baa))return _0x417baa['model']['document']['getRootNames']();const _0x31793c=[],_0x171926=new Map();for(const _0x7af48b of _0x417baa['model']['document']['getRootNames']()){const _0x215270=_0x417baa['editing']['view']['getDomRoot'](_0x7af48b)['getClientRects']()['item'](0x0);_0x31793c['push'](_0x7af48b),_0x171926['set'](_0x7af48b,_0x215270);}return _0x31793c['sort']((_0x3f02a1,_0x23d8c8)=>{const _0x28f46b=_0x171926['get'](_0x3f02a1),_0x44c155=_0x171926['get'](_0x23d8c8);return _0x28f46b['y']-_0x44c155['y']||_0x28f46b['x']-_0x44c155['x'];}),_0x31793c;}}class te extends _0xac175e{static get['requires'](){return[T,_0x52247b];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa7a585){super(_0xa7a585),_0xa7a585['commands']['add']('previewFinalContent',new re(this['editor'])),_0xa7a585['config']['define']('trackChanges.preview.renderFunction',(_0x5712df,_0x564133)=>{for(const _0x55b30e of _0x564133)_0x5712df['appendChild'](_0x55b30e);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};