@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250308.0 → 0.0.0-nightly-20250309.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x56aab9,Plugin as _0x497417,PendingActions as _0x1b0060}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3e1147,ObservableMixin as _0x3c6964,uid as _0x437d48,priorities as _0x2c349d,insertToPriorityArray as _0x32ae33,logWarning as _0xebf613,getEnvKeystrokeText as _0x4d9260,FocusTracker as _0x1dba1d,KeystrokeHandler as _0x124a9a,Collection as _0x2aba35}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x26076b,IconCancel as _0x37583a,IconTrackChanges as _0x30a5bc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2b8a4e,View as _0x21b685,ViewCollection as _0x308d50,FocusCycler as _0x4943f7,ViewModel as _0x201032,createDropdown as _0x532b40,SplitButtonView as _0x8f7f98,addListToDropdown as _0x3635e7,MenuBarMenuView as _0x1d74c1,MenuBarMenuListView as _0x57f2d6,ListSeparatorView as _0x5008e8,MenuBarMenuListItemView as _0x4cd13d,MenuBarMenuListItemButtonView as _0x8bc95,BodyCollection as _0x58d82f,Dialog as _0x2dc774}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x508eb0,hashObject as _0x255576,surroundingMarkersDetector as _0xb9afc5,FOCUS_ANNOTATION_KEYSTROKE as _0xc56237,AriaDescriptionView as _0x5d8842,setupThreadKeyboardNavigation as _0xc54641,trimHtml as ti,UserView as _0x1b6fe0,LateFocusButtonView as _0x31bf54,getDateTimeFormatter as _0x479f58,getAllMarkersDomElementsSorted as _0x2f9556,sanitizeEditorConfig as _0x241a54}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4c76ec,LiveRange as _0x4a3ae4,LivePosition as _0x3bdfd3,DowncastWriter as _0x5a1ade}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4cb2df,toWidget as _0x5667c3}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4bb98d,set as _0x3bfc9c,isEqual as _0x36c7b1,unset as _0x45e267,omit as Vt}from'es-toolkit/compat';import{Delete as _0x59b0bd,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4709a6,ShiftEnter as _0x386113}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x56aab9{['_enabledCommands'];constructor(_0x57c4c2,_0x10ecba){super(_0x57c4c2),this['_enabledCommands']=_0x10ecba,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 _0x1f4111 of this['editor']['commands']['commands']())_0x1f4111['affectsData']&&!this['_enabledCommands']['has'](_0x1f4111)&&_0x1f4111['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2684c2 of this['editor']['commands']['commands']())_0x2684c2['affectsData']&&!this['_enabledCommands']['has'](_0x2684c2)&&_0x2684c2['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x56aab9{['_suggestions'];constructor(_0x3d8217,_0x5401f8){super(_0x3d8217),this['_suggestions']=_0x5401f8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5cf318){const _0x25bc08=this['_suggestions']['get'](_0x5cf318);if(!_0x25bc08)throw new _0x3e1147('track-changes-accept-suggestion-not-found',this);const _0x5f568a=_0x25bc08['getRanges']();this['editor']['model']['canEditAt'](_0x5f568a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x25bc08);}}class R extends _0x56aab9{['_suggestions'];constructor(_0x2595c2,_0x160bbc){super(_0x2595c2),this['_suggestions']=_0x160bbc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x367c33){const _0x35bc67=this['_suggestions']['get'](_0x367c33);if(!_0x35bc67)throw new _0x3e1147('track-changes-discard-suggestion-not-found',this);const _0x418faf=_0x35bc67['getRanges']();this['editor']['model']['canEditAt'](_0x418faf)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x35bc67);}}function ls(_0x3d3545,_0x20554a){let _0x2734b8='';return _0x2734b8+=_0x3d3545['split']('*')['map']((_0x34fcc1,_0x5464e8)=>_0x5464e8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x34fcc1)+'</span>':nn(_0x34fcc1))['join'](''),_0x20554a&&(_0x2734b8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x20554a['value']+'\x22\x20title=\x22'+_0x20554a['title']+'\x22></span>'),_0x2734b8;}function nn(_0xdf5944){const _0x5030ff=document['createElement']('span');return _0x5030ff['innerText']=_0xdf5944,_0x5030ff['innerHTML'];}function ts(_0x3fd4b6){return _0x3fd4b6['sort']((_0x38e73d,_0x1041b8)=>'deletion'==_0x38e73d['type']&&'deletion'!=_0x1041b8['type']?-0x1:'deletion'!=_0x38e73d['type']&&'deletion'==_0x1041b8['type']?0x1:0x0);}function Zt(_0x49df4c,_0x2f31e8){let _0x50b129,_0x371f74=0x0;const _0x2ebcb5=[],_0x27e762=_0x2f31e8['schema'];for(;_0x371f74<_0x49df4c['length'];){const _0x35f6ff=_0x49df4c[_0x371f74],_0x265a86=_0x49df4c[_0x371f74+0x1];_0x50b129||(_0x50b129=_0x2f31e8['createPositionBefore'](_0x35f6ff)),on(_0x2f31e8,_0x35f6ff,_0x265a86)||(_0x2ebcb5['push'](_0x2f31e8['createRange'](_0x50b129,_0x27e762['isObject'](_0x35f6ff)?_0x2f31e8['createPositionAfter'](_0x35f6ff):_0x2f31e8['createPositionAt'](_0x35f6ff,'end'))),_0x50b129=null),_0x371f74++;}return _0x2ebcb5;}function on(_0x235cdd,_0x4b2654,_0x22ddcf){if(!_0x22ddcf)return!0x1;const _0x135d39=_0x235cdd['createPositionAfter'](_0x4b2654),_0x4044c7=_0x235cdd['createPositionBefore'](_0x22ddcf);return _0x135d39['isTouching'](_0x4044c7);}function rs(_0x3d0f37,_0x5381b2,_0x2450a3){for(;_0x2450a3['length'];){const _0x552197=_0x2450a3['splice'](0x0,0x64);_0x3d0f37['change'](()=>{for(const _0x2d6d78 of _0x552197)_0x2d6d78['isInContent']&&_0x5381b2['execute'](_0x2d6d78['id']);});}}class x extends _0x56aab9{['_command'];['_suggestions'];constructor(_0x3dd0a9,_0x3ca707,_0x3209fa){super(_0x3dd0a9),this['_command']=_0x3ca707,this['_suggestions']=_0x3209fa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x16f701=Array['from'](this['_suggestions']['values']())['some'](_0x12e239=>_0x12e239['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x16f701;}['execute'](){const _0x5382a2=ts(Array['from'](this['_suggestions']['values']()));for(const _0x59fb41 of _0x5382a2){const _0x4a19d9=_0x59fb41['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4a19d9))return;}rs(this['editor']['model'],this['_command'],_0x5382a2);}}class E extends _0x56aab9{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1afd08,_0x3b2dd7,_0x4c0d5e){super(_0x1afd08),this['_command']=_0x3b2dd7,this['_suggestions']=_0x4c0d5e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2f00d=this['editor']['model']['document']['selection'],_0x10bc6d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x958096,_0x4e0236){const _0x41b047=Array['from'](_0x958096['getRanges']()),_0x286786=new Set();for(const _0x292d60 of _0x4e0236)if(_0x292d60['isInContent']){for(const _0xc5c6b0 of _0x41b047)for(const _0xf0b5ec of _0x292d60['getRanges']())(_0xc5c6b0['isIntersecting'](_0xf0b5ec)||_0x958096['isCollapsed']&&!_0x292d60['isMultiRange']&&_0x292d60['next']&&_0xf0b5ec['end']['isTouching'](_0xc5c6b0['start']))&&_0x286786['add'](_0x292d60);}return _0x286786;}(_0x2f00d,_0x10bc6d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x8969b3=ts(Array['from'](this['_selectedSuggestions']));for(const _0x198f9f of _0x8969b3){const _0x42286e=_0x198f9f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x42286e))return;}rs(this['editor']['model'],this['_command'],_0x8969b3);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x3c6964(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2e8c9b,_0x4f4026){super(),this['id']=_0x4f4026['id'],this['type']=_0x4f4026['type'],this['subType']=_0x4f4026['subType']||null,this['author']=_0x4f4026['author'],this['creator']=_0x4f4026['creator']||_0x4f4026['author'],this['isExternal']=Boolean(_0x4f4026['attributes']&&_0x4f4026['attributes']['@external']),this['data']=null,this['_model']=_0x2e8c9b,this['_onAccept']=_0x4f4026['onAccept'],this['_onDiscard']=_0x4f4026['onDiscard'],this['_onAttributesChange']=_0x4f4026['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4f4026['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 _0x32d530=this;for(;_0x32d530['previous'];)_0x32d530=_0x32d530['previous'];return _0x32d530;}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'](_0x543b63){this['_markerNames']['add'](_0x543b63);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x43ea49=>this['_model']['markers']['get'](_0x43ea49))['filter'](_0x3cb838=>_0x3cb838);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x343814=>{for(const _0x4c703b of this['getMarkers']())_0x343814['removeMarker'](_0x4c703b);}),this['_markerNames']['clear']();}['removeMarker'](_0x59a3a3){this['_model']['change'](_0x5de48d=>{_0x5de48d['removeMarker'](_0x59a3a3);}),this['_markerNames']['delete'](_0x59a3a3);}['addRange'](_0x13a1e4){const _0xf2bac='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0xf2bac),this['_model']['change'](_0x10f8ae=>{_0x10f8ae['addMarker'](_0xf2bac,{'range':_0x13a1e4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x58070f){for(const _0x1cf67 of this['getRanges']())if(_0x1cf67['isIntersecting'](_0x58070f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x14d198=>_0x14d198['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x50baef,_0x1ccf59)=>[..._0x50baef,..._0x1ccf59['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x6ba020=this['getRanges']();if(0x1!=_0x6ba020['length'])return null;const _0x3dd76b=_0x6ba020[0x0],_0x4add06=_0x3dd76b['start']['nodeAfter'],_0x38ab1b=_0x3dd76b['end']['nodeBefore'];return _0x4add06 instanceof _0x4c76ec?_0x4add06!=_0x38ab1b?null:_0x4add06: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 _0x508256=[];let _0x3353ec=this['head'];for(;_0x3353ec;)_0x508256['push'](_0x3353ec),_0x3353ec=_0x3353ec['next'];return _0x508256;}['setAttribute'](_0x549a43,_0x21c0fa){const _0x3b098b=_0x4bb98d(this['attributes']);_0x3bfc9c(_0x3b098b,_0x549a43,_0x21c0fa),_0x36c7b1(_0x3b098b,this['attributes'])||(this['attributes']=_0x3b098b,this['_onAttributesChange'](_0x3b098b));}['removeAttribute'](_0x137058){const _0x105651=_0x4bb98d(this['attributes']);_0x45e267(_0x105651,_0x137058),_0x36c7b1(_0x105651,this['attributes'])||(this['attributes']=_0x105651,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 _0x437d48()['substr'](0x1,0x5);}}function c(_0x50722b,_0x4ae536,_0x56f11e){const _0x143474=_0x50722b['t'],t=_0x50722b['t'];switch(_0x4ae536){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',_0x56f11e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x56f11e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x56f11e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x56f11e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x56f11e);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',_0x56f11e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x56f11e);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',_0x56f11e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x56f11e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x56f11e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x56f11e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x56f11e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x56f11e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x56f11e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x56f11e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x56f11e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x56f11e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x56f11e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x56f11e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x56f11e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x56f11e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x56f11e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x56f11e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x56f11e);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'},_0x56f11e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x56f11e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x56f11e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x56f11e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x56f11e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x56f11e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x56f11e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x56f11e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x56f11e);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'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x56f11e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x56f11e);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'},_0x56f11e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x56f11e);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 _0x143474({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x56f11e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x143474({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x56f11e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x56f11e);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'},_0x56f11e);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'},_0x56f11e);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'},_0x56f11e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4ae536;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x574a10,_0x16fbd5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x574a10,this['_locale']=_0x16fbd5;}['getDescriptions'](_0x75cc2f){const _0x4c9e91=[],_0x36c47e=new Set(),_0x4fab8a=new Set();for(let _0x404872=0x0;_0x404872<_0x75cc2f['length'];_0x404872++){const _0x596b13=_0x75cc2f[_0x404872];if(!_0x596b13['isInContent'])continue;const _0x4d0164=this['_handleCustomCallbackDescription'](_0x596b13);if(_0x4d0164){if(null!=_0x596b13['subType']){if(_0x36c47e['has'](_0x596b13['subType']))continue;_0x36c47e['add'](_0x596b13['subType']);}_0x4c9e91['push'](_0x4d0164);}else{if('attribute'!=_0x596b13['type'])'insertion'!=_0x596b13['type']&&'deletion'!=_0x596b13['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4c9e91,_0x596b13,_0x75cc2f[_0x404872+0x1]);else{const _0x1be294=_0x596b13['data']['key'];if(_0x4fab8a['has'](_0x1be294))continue;_0x4fab8a['add'](_0x596b13['data']['key']),_0x1be294==u?this['_handleRenameSuggestionDescription'](_0x4c9e91,_0x596b13):this['_handleAttributeSuggestionDescription'](_0x4c9e91,_0x596b13);}}}return this['_resolveDescriptionItems'](_0x4c9e91);}['registerDescriptionCallback'](_0x566a7e){this['_customCallbacks']['push'](_0x566a7e);}['registerElementLabel'](_0x267d37,_0x26da06,_0x279c99=_0x2c349d['normal']){'function'==typeof _0x267d37?_0x32ae33(this['_itemLabelsCallbacks'],{'matchingCallback':_0x267d37,'label':_0x26da06,'priority':_0x279c99}):this['_itemLabels']['set'](_0x267d37,_0x26da06);}['registerAttributeLabel'](_0x5506cb,_0x4c2591){this['_attributeLabels']['set'](_0x5506cb,_0x4c2591);}['getItemLabel'](_0xe3fea9,_0x4a7a60=0x1){let _0x4cf823;for(const _0x313960 of this['_itemLabelsCallbacks'])if(_0x313960['matchingCallback'](_0xe3fea9)){_0x4cf823=_0x313960['label'];break;}return _0x4cf823||(_0x4cf823=this['_itemLabels']['get'](_0xe3fea9['name'])),_0x4cf823?_0x4cf823(_0x4a7a60):0x1!==_0x4a7a60?_0x4a7a60+'\x20'+_0xe3fea9['name']+'s':''+_0xe3fea9['name'];}['_addDescriptionItems'](_0x597c47,_0x44998d){const _0xb39176=_0x44998d['getFirstRange']()['getWalker'](),_0x3a2b45='insertion'==_0x44998d['type']?'add':'remove';for(const _0x561add of _0xb39176){const _0xf3a9b5=_0x561add['item'],_0x5543b7=_0x597c47[_0x597c47['length']-0x1];if(_0xf3a9b5['is']('$textProxy'))_0x5543b7&&_0x5543b7['type']['indexOf']('Container')>-0x1&&_0x597c47['pop'](),_0x5543b7&&'text'==_0x5543b7['type']?_0x5543b7[_0x3a2b45]+=_0xf3a9b5['data']:_0x597c47['push']({'type':'text','add':'add'==_0x3a2b45?_0xf3a9b5['data']:'','remove':'remove'==_0x3a2b45?_0xf3a9b5['data']:''});else{if(this['_schema']['isObject'](_0xf3a9b5)){const _0x3f6c62=_0xf3a9b5;if(_0x5543b7&&_0x5543b7['type']['indexOf']('Container')>-0x1&&_0x597c47['pop'](),'elementEnd'==_0x561add['type'])continue;_0x5543b7&&_0x5543b7['type']==_0x3a2b45+'Object'&&_0x5543b7['element']['name']==_0x3f6c62['name']?_0x5543b7['quantity']++:_0x597c47['push']({'type':_0x3a2b45+'Object','element':_0x3f6c62,'quantity':0x1}),_0xb39176['skip'](_0x2a2852=>!('elementEnd'==_0x2a2852['type']&&_0x2a2852['item']==_0xf3a9b5));}else{if(this['_schema']['checkChild'](_0xf3a9b5,'$text')||_0xf3a9b5['is']('element','softBreak')){const _0x143e97=_0xf3a9b5;if('add'==_0x3a2b45&&'elementStart'==_0x561add['type']||'remove'==_0x3a2b45&&'elementEnd'==_0x561add['type'])continue;if(_0x5543b7&&-0x1==_0x5543b7['type']['indexOf']('Container')){'text'==_0x5543b7['type']&&(_0x5543b7[_0x3a2b45]+='\x0a');continue;}let _0x555c92;if(_0x555c92='add'==_0x3a2b45?_0x143e97['nextSibling']&&!this['_schema']['isObject'](_0x143e97['nextSibling'])?_0x143e97['nextSibling']:null:_0x143e97['previousSibling']&&!this['_schema']['isObject'](_0x143e97['previousSibling'])?_0x143e97['previousSibling']:null,_0x143e97['isEmpty']||_0x555c92&&_0x555c92['isEmpty']){const _0x224da9=_0x555c92&&_0x555c92['isEmpty']?_0x555c92:_0x143e97;_0x5543b7&&_0x5543b7['type']==_0x3a2b45+'EmptyContainer'&&_0x5543b7['element']['name']==_0x224da9['name']?_0x5543b7['quantity']++:_0x597c47['push']({'type':_0x3a2b45+'EmptyContainer','element':_0x224da9,'quantity':0x1});}else _0x597c47['push']({'type':_0x3a2b45+'Container','element':_0x143e97});}}}}}['_resolveDescriptionItems'](_0x5161a8){const _0x4bbe73=this['_locale'],_0x47c849=[],_0x14c878=[],_0x140eb9=[];for(const _0x162830 of _0x5161a8)switch(_0x162830['type']){case'text':if(_0x162830['add']=_0x162830['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x162830['remove']=_0x162830['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x162830['add']&&''!=_0x162830['remove']){_0x47c849['push']({'type':'replace','content':c(_0x4bbe73,'REPLACE_TEXT',['\x22'+_0x162830['remove']+'\x22','\x22'+_0x162830['add']+'\x22'])});continue;}if(null!=_0x162830['add']['match'](/^ +$/)){_0x47c849['push']({'type':'insertion','content':c(_0x4bbe73,'*Insert:*\x20%0',c(_0x4bbe73,'ELEMENT_SPACE',_0x162830['add']['length']))});continue;}if(null!=_0x162830['remove']['match'](/^ +$/)){_0x47c849['push']({'type':'deletion','content':c(_0x4bbe73,'*Remove:*\x20%0',c(_0x4bbe73,'ELEMENT_SPACE',_0x162830['remove']['length']))});continue;}if(''!=_0x162830['add']){_0x47c849['push']({'type':'insertion','content':c(_0x4bbe73,'*Insert:*\x20%0','\x22'+_0x162830['add']+'\x22')});continue;}_0x47c849['push']({'type':'deletion','content':c(_0x4bbe73,'*Remove:*\x20%0','\x22'+_0x162830['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x47c849['push']({'type':'insertion','content':c(_0x4bbe73,'*Insert:*\x20%0',this['getItemLabel'](_0x162830['element'],_0x162830['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x47c849['push']({'type':'deletion','content':c(_0x4bbe73,'*Remove:*\x20%0',this['getItemLabel'](_0x162830['element'],_0x162830['quantity']))});continue;case'addContainer':_0x47c849['push']({'type':'insertion','content':c(_0x4bbe73,'*Split:*\x20%0',this['getItemLabel'](_0x162830['element'],_0x162830['quantity']))});continue;case'removeContainer':_0x47c849['push']({'type':'deletion','content':c(_0x4bbe73,'*Merge:*\x20%0',this['getItemLabel'](_0x162830['element'],_0x162830['quantity']))});continue;case'addFormat':_0x14c878['push'](_0x162830['key']);continue;case'removeFormat':_0x140eb9['push'](_0x162830['key']);continue;default:_0x47c849['push'](_0x162830);}if(_0x14c878['length']){const _0x1ca433=_0x14c878['map'](_0x5e6a03=>this['_attributeLabels']['has'](_0x5e6a03)?this['_attributeLabels']['get'](_0x5e6a03):_0x5e6a03)['join'](',\x20');_0x47c849['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x1ca433)});}if(_0x140eb9['length']){const _0x1db79b=_0x140eb9['map'](_0x46ce3b=>this['_attributeLabels']['has'](_0x46ce3b)?this['_attributeLabels']['get'](_0x46ce3b):_0x46ce3b)['join'](',\x20');_0x47c849['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1db79b)});}return _0x47c849;}['_handleCustomCallbackDescription'](_0x51fd18){for(const _0x4fcfa2 of this['_customCallbacks']){const _0x4d68e9=_0x4fcfa2(_0x51fd18);if(_0x4d68e9&&'type'in _0x4d68e9)return _0x4d68e9;}}['_handleAttributeSuggestionDescription'](_0x5be881,_0x21f7a9){const _0x152c3f=_0x21f7a9['data'],_0x5997cc=void 0x0===_0x152c3f['newValue']?'removeFormat':'addFormat';_0x5be881['push']({'type':_0x5997cc,'key':_0x152c3f['key']});}['_handleRenameSuggestionDescription'](_0x2c9661,_0x3c1d04){_0x2c9661['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3c1d04['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x499efa,_0x4714b3,_0x970cd2){if(this['_addDescriptionItems'](_0x499efa,_0x4714b3),_0x970cd2&&_0x970cd2['getFirstRange']()&&!_0x4714b3['getFirstRange']()['end']['isEqual'](_0x970cd2['getFirstRange']()['start'])){const _0x2526d6=_0x499efa[_0x499efa['length']-0x1],_0x283bdc='insertion'==_0x4714b3['type']?'add':'remove';_0x2526d6&&'text'==_0x2526d6['type']&&(_0x2526d6[_0x283bdc]+='\x0a');}}}class U extends _0x497417{['afterInit'](){const _0xd90418=this['editor'],_0x38107d=_0xd90418['plugins']['get']('TrackChangesEditing');_0xd90418['commands']['get']('showAIAssistant')&&_0x38107d['enableCommand']('showAIAssistant');}}class V extends _0x497417{['afterInit'](){const _0x1a589e=this['editor'],_0x325dbb=_0x1a589e['locale'];if(!_0x1a589e['plugins']['has']('AlignmentEditing'))return;const _0x4ae2ee=_0x1a589e['plugins']['get']('TrackChangesEditing');_0x4ae2ee['enableDefaultAttributesIntegration']('alignment'),_0x4ae2ee['registerBlockAttribute']('alignment'),_0x4ae2ee['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x325dbb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x307f50=this['editor'],_0xf01bb=_0x307f50['locale'];_0x307f50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d1be0=>{if('formatBlock'!=_0x3d1be0['type'])return;const {data:_0x1902f3}=_0x3d1be0;if(_0x1902f3&&'alignment'==_0x1902f3['commandName']){const _0x1b6a8d=_0x1902f3['commandParams'][0x0]['value'];return{'type':'format','content':c(_0xf01bb,'*Format:*\x20%0',function(_0x317b1b){switch(_0x317b1b){case'left':return c(_0xf01bb,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0xf01bb,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0xf01bb,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0xf01bb,'FORMAT_JUSTIFY_TEXT');}}(_0x1b6a8d))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x497417{['afterInit'](){const _0xe078c3=this['editor'],_0x519f9a=_0xe078c3['plugins']['get']('TrackChangesEditing'),_0x475915=_0xe078c3['locale'];for(const _0x397b58 of Yt){if(!_0xe078c3['plugins']['has'](_0x397b58))continue;const _0xb03000=_0x397b58['slice'](0x0,-0x7)['toLowerCase'](),_0x36ca12='FORMAT_'+_0xb03000['toUpperCase']();_0x519f9a['enableDefaultAttributesIntegration'](_0xb03000),_0x519f9a['registerInlineAttribute'](_0xb03000),_0x519f9a['descriptionFactory']['registerAttributeLabel'](_0xb03000,c(_0x475915,_0x36ca12));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51f9f2=this['editor'],_0xbee918=_0x51f9f2['locale'],_0x4fbfec=_0x51f9f2['plugins']['get']('TrackChangesEditing');function _0x1de9c4(_0x496f51,_0x2cd611){_0x4fbfec['descriptionFactory']['registerDescriptionCallback'](_0x2c7318=>{if('formatInline'!=_0x2c7318['type'])return;const {data:_0x3ebab3}=_0x2c7318;return _0x3ebab3&&_0x3ebab3['commandName']===_0x496f51?_0x3ebab3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xbee918,'*Format:*\x20%0',_0x2cd611)}:{'type':'format','content':c(_0xbee918,'*Remove\x20format:*\x20%0',_0x2cd611)}:void 0x0;});}_0x1de9c4('bold',c(_0xbee918,'FORMAT_BOLD')),_0x1de9c4('italic',c(_0xbee918,'FORMAT_ITALIC')),_0x1de9c4('underline',c(_0xbee918,'FORMAT_UNDERLINE')),_0x1de9c4('code',c(_0xbee918,'FORMAT_CODE')),_0x1de9c4('strikethrough',c(_0xbee918,'FORMAT_STRIKETHROUGH')),_0x1de9c4('subscript',c(_0xbee918,'FORMAT_SUBSCRIPT')),_0x1de9c4('superscript',c(_0xbee918,'FORMAT_SUPERSCRIPT'));}}class G extends _0x497417{['afterInit'](){const _0xa0b1dd=this['editor'],_0xb92c21=_0xa0b1dd['locale'];if(!_0xa0b1dd['plugins']['has']('BlockQuoteEditing'))return;const _0x5c33a4=_0xa0b1dd['plugins']['get']('TrackChangesEditing'),_0x4fcabb=this['editor']['commands']['get']('blockQuote');_0x5c33a4['enableCommand']('blockQuote',(_0x2c66f5,_0x3da2f4={})=>{const _0x37d3fa=this['editor']['model']['document']['selection'],_0x54f115=_0x3da2f4&&void 0x0!==_0x3da2f4['forceValue']?_0x3da2f4['forceValue']:!_0x4fcabb['value'];let _0x36ee71=[];if(_0x54f115){const _0x564466=Array['from'](_0x37d3fa['getSelectedBlocks']())['filter'](_0x365bba=>to(_0x365bba)||function(_0x5e4dc2,_0x239bee){const _0x442c3c=_0x239bee['checkChild'](_0x5e4dc2['parent'],'blockQuote'),_0x4ca012=_0x239bee['checkChild'](['$root','blockQuote'],_0x5e4dc2);return _0x442c3c&&_0x4ca012;}(_0x365bba,this['editor']['model']['schema']));_0x36ee71=Zt(_0x564466,_0xa0b1dd['model']);}else{const _0x19693d=Array['from'](_0x37d3fa['getSelectedBlocks']())['filter'](_0x5435b3=>to(_0x5435b3));_0x36ee71=Zt(_0x19693d,_0xa0b1dd['model']);}_0xa0b1dd['model']['change'](()=>{for(const _0x26d8ec of _0x36ee71)_0x5c33a4['markBlockFormat'](_0x26d8ec,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x54f115}]});});}),_0x5c33a4['descriptionFactory']['registerDescriptionCallback'](_0x53f1d7=>{const {data:_0x335849}=_0x53f1d7;if(_0x335849&&'blockQuote'==_0x335849['commandName']){const _0x361c4d=c(_0xb92c21,'ELEMENT_BLOCK_QUOTE');return _0x335849['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xb92c21,'*Set\x20format:*\x20%0',_0x361c4d)}:{'type':'format','content':c(_0xb92c21,'*Remove\x20format:*\x20%0',_0x361c4d)};}});}}function to(_0x208b22){return'blockQuote'==_0x208b22['parent']['name'];}class L extends _0x497417{['afterInit'](){const _0x31b626=this['editor'],_0x482bab=_0x31b626['locale'],_0x4d0fc2=_0x31b626['plugins']['get']('TrackChangesEditing');_0x31b626['plugins']['has']('BookmarkEditing')&&(_0x4d0fc2['enableCommand']('insertBookmark'),_0x4d0fc2['enableDefaultAttributesIntegration']('updateBookmark'),_0x4d0fc2['registerBlockAttribute']('bookmarkId'),_0x4d0fc2['descriptionFactory']['registerDescriptionCallback'](_0xb0a656=>{if('insertion'!=_0xb0a656['type']&&'deletion'!=_0xb0a656['type']&&'attribute'!=_0xb0a656['type'])return;const _0x39dd4e=_0xb0a656['getContainedElement']();if(null==_0x39dd4e)return;if(!_0x39dd4e['is']('element','bookmark'))return;const _0x59a3cd=_0x39dd4e['getAttribute']('bookmarkId');if('insertion'==_0xb0a656['type'])return{'type':'insertion','content':c(_0x482bab,'*Insert:*\x20%0','\x22'+_0x59a3cd+'\x22\x20'+c(_0x482bab,'ELEMENT_BOOKMARK'))};if('deletion'==_0xb0a656['type'])return{'type':'deletion','content':c(_0x482bab,'*Remove:*\x20%0','\x22'+_0x59a3cd+'\x22\x20'+c(_0x482bab,'ELEMENT_BOOKMARK'))};const {data:_0x416f8a}=_0xb0a656;if(!_0x416f8a||'bookmarkId'!=_0x416f8a['key'])return;return{'type':'format','content':c(_0x482bab,'*Set\x20bookmark:*\x20%0','\x22'+_0x416f8a['newValue']+'\x22')};}));}}class J extends _0x497417{['afterInit'](){const _0x1e1875=this['editor'];_0x1e1875['plugins']['has']('CaseChange')&&(_0x1e1875['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1e1875['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1e1875['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x497417{['afterInit'](){const _0xaffd5d=this['editor'];_0xaffd5d['commands']['get']('ckbox')&&_0xaffd5d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x497417{['afterInit'](){const _0x1a6158=this['editor'];if(!_0x1a6158['plugins']['has']('CodeBlock'))return;const _0x35ac03=_0x1a6158['plugins']['get']('TrackChangesEditing'),_0x9331ff=_0x1a6158['locale'],_0x2598f3=_0x1a6158['config']['get']('codeBlock')['languages'],_0x4003fe=_0x1a6158['commands']['get']('codeBlock');_0x35ac03['enableCommand']('indentCodeBlock'),_0x35ac03['enableCommand']('outdentCodeBlock'),_0x35ac03['enableCommand']('codeBlock',(_0x4e68b1,_0x581fdc={})=>{const _0x467a42=_0x1a6158['model'],_0x563866=_0x1a6158['model']['document']['selection'],_0x39b02d=_0x581fdc&&void 0x0!==_0x581fdc['forceValue']?_0x581fdc['forceValue']:!_0x4003fe['value'];let _0x4dcd1d;_0x581fdc['language']||(_0x581fdc['language']=_0x2598f3[0x0]['language']),_0x4dcd1d=_0x39b02d?Array['from'](_0x563866['getSelectedBlocks']())['filter'](_0x3701a8=>oo(_0x3701a8)||function(_0xa3735d,_0x5d609c){if(_0xa3735d['is']('rootElement')||_0x5d609c['isLimit'](_0xa3735d))return!0x1;return _0x5d609c['checkChild'](_0xa3735d['parent'],'codeBlock');}(_0x3701a8,_0x467a42['schema'])):Array['from'](_0x563866['getSelectedBlocks']())['filter'](_0x378762=>oo(_0x378762));const _0x398eec=Zt(_0x4dcd1d,_0x467a42);_0x467a42['change'](()=>{for(const _0x5e1ff8 of _0x398eec)_0x35ac03['markBlockFormat'](_0x5e1ff8,{'commandName':'codeBlock','commandParams':[{..._0x581fdc,'forceValue':_0x39b02d}],'formatGroupId':'blockName'});});}),(_0x35ac03['descriptionFactory']['registerElementLabel']('codeBlock',_0x5339b5=>c(_0x9331ff,'ELEMENT_CODE_BLOCK',_0x5339b5)),_0x35ac03['descriptionFactory']['registerDescriptionCallback'](_0x1ffa73=>{if('formatBlock'!=_0x1ffa73['type'])return;const _0x30b21d=_0x9331ff['t'],{data:_0x43f09a}=_0x1ffa73;if(!_0x43f09a||'codeBlock'!=_0x43f09a['commandName'])return;const _0x555bd6=_0x43f09a['commandParams'][0x0]['language'],_0x15dd9e=_0x30b21d(_0x2598f3['find'](_0x8b0a8b=>_0x8b0a8b['language']===_0x555bd6)['label'])['toLowerCase']();return _0x43f09a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x9331ff,'*Set\x20format:*\x20%0',c(_0x9331ff,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x15dd9e+')')}:{'type':'format','content':c(_0x9331ff,'*Remove\x20format:*\x20%0',c(_0x9331ff,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x2e08bf){return'codeBlock'==_0x2e08bf['name'];}class q extends _0x497417{['afterInit'](){const _0x2e9af1=this['editor'];if(!_0x2e9af1['plugins']['has']('CommentsEditing'))return;_0x2e9af1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x35e93f,_0x1a23b9,_0x486c27){const _0x45edc5=[];for(const _0xc8f920 of _0x1a23b9['getItems']())_0xc8f920['hasAttribute'](_0x35e93f)&&_0x45edc5['push'](_0x486c27['createRangeOn'](_0xc8f920));return _0x45edc5;}function De(_0x410f13,_0x4f8982,{showActiveMarker:_0x30c2fb=!0x0}={}){const _0x495ca6=_0x410f13['plugins']['get']('TrackChangesEditing');return(_0x3c776a,_0xb89886,_0x4e0e15)=>{if(!_0x4e0e15['consumable']['test'](_0xb89886['markerRange'],_0x3c776a['name']))return;const _0x3f051a=_0xb89886['markerRange']['getWalker'](),_0xff70d0=_0xb89886['markerRange']['start'],_0xf94acf=_0x410f13['model']['schema'];let _0x18b5e5=null,_0x4b8231=null,_0x4ea1ae=!0x1,_0x147533=!0x1;for(const _0x5a01c6 of _0x3f051a){const _0x56d300=_0x5a01c6['item'];_0x4ea1ae=_0x4ea1ae||_0xf94acf['isContent'](_0x56d300);const _0x2c2f66=_0x4e0e15['mapper']['toViewElement'](_0x56d300);if(_0x2c2f66&&_0x2c2f66['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5a01c6['type']&&(_0xf94acf['isBlock'](_0x56d300)&&!_0xf94acf['isLimit'](_0x56d300)&&(_0x56d300['nextSibling']||_0xff70d0['isAtEnd']?_0x18b5e5&&_0x18b5e5['parent']==_0x56d300||(_0x18b5e5=_0x56d300,_0x333c06(_0x5a01c6['previousPosition']),_0x147533=!0x0):_0x4b8231=_0x4b8231||_0x5a01c6['previousPosition']));}function _0x333c06(_0x52439d){const {authorId:_0x5700bb}=_0x495ca6['_splitMarkerName'](_0xb89886['markerName']),_0x3d2128=_0x4e0e15['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f8982,'data-author-id':_0x5700bb}),_0x5327e9=_0x4e0e15['mapper']['toViewPosition'](_0x52439d);_0x30c2fb&&_0x495ca6['activeMarkers']['includes'](_0xb89886['markerName'])&&_0x4e0e15['writer']['addClass']('ck-suggestion-marker--active',_0x3d2128),_0x4e0e15['writer']['insert'](_0x5327e9,_0x3d2128),_0x4e0e15['mapper']['bindElementToMarker'](_0x3d2128,_0xb89886['markerName']);}_0x4ea1ae||_0x147533||!_0x4b8231||_0x333c06(_0x4b8231);};}class z extends _0x497417{static get['requires'](){return[_0x59b0bd];}['init'](){const _0x31e33c=this['editor'],_0x216c36=_0x31e33c['plugins']['get']('TrackChangesEditing');_0x216c36['enableCommand']('delete');const _0x1d7ef4=_0x31e33c['commands']['get']('deleteForward');_0x216c36['enableCommand']('deleteForward',(_0x1f72cd,_0x46d0e3={})=>{const _0x10717=_0x31e33c['model']['createSelection'](_0x31e33c['model']['document']['selection']);_0x10717['isCollapsed']&&_0x31e33c['model']['modifySelection'](_0x10717,{'direction':'forward','unit':_0x46d0e3['unit']});const _0x5c95b0=_0x10717['getFirstRange'](),_0x528e03=_0x4a3ae4['fromRange'](_0x5c95b0);let _0xd46aac;_0x1f72cd(_0x46d0e3),_0xd46aac='$graveyard'==_0x528e03['root']['rootName']?_0x31e33c['model']['createRange'](_0x5c95b0['start']):_0x31e33c['model']['createRange'](_0x528e03['start'],_0x528e03['end']),_0x528e03['detach'](),_0x31e33c['model']['enqueueChange'](_0x1d7ef4['buffer']['batch'],_0x38d408=>{_0x1d7ef4['buffer']['lock'](),_0x38d408['setSelection'](_0x38d408['createRange'](_0xd46aac['end'])),_0x1d7ef4['buffer']['unlock']();});}),_0x31e33c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x31e33c,'merge'),{'priority':'high'}),_0x31e33c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x33cdef,_0xa303f,_0x58de42)=>{_0x58de42['options']['showSuggestionHighlights']&&De(_0x31e33c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x33cdef,_0xa303f,_0x58de42);},{'priority':'high'}),_0x31e33c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x266421,_0x434296,_0x55111f)=>{const _0x8abddf=_0x55111f['mapper']['markerNameToElements'](_0x434296['markerName']);if(_0x8abddf){for(const _0x3bb504 of _0x8abddf)_0x3bb504['is']('uiElement')&&(_0x55111f['mapper']['unbindElementFromMarkerName'](_0x3bb504,_0x434296['markerName']),_0x55111f['writer']['remove'](_0x3bb504));}},{'priority':'high'});}}class W extends _0x497417{['afterInit'](){const _0x5d021a=this['editor'];if(!_0x5d021a['plugins']['has']('ListEditing'))return;const _0x5bbb98=_0x5d021a['locale'],_0x394cef=_0x5d021a['plugins']['get']('TrackChangesEditing'),_0x256392=_0x5d021a['plugins']['has']('TodoListEditing'),_0x47f74b=!!_0x5d021a['config']['get']('list.multiBlock');function _0x27c325(_0x245126){return{'type':'format','content':''+c(_0x5bbb98,'*Set\x20format:*\x20%0',_0x245126)};}function _0x3e1b03(_0x12fdc7){return{'type':'format','content':''+c(_0x5bbb98,'*Remove\x20format:*\x20%0',_0x12fdc7)};}_0x394cef['enableDefaultAttributesIntegration']('numberedList'),_0x394cef['enableDefaultAttributesIntegration']('bulletedList'),_0x394cef['enableDefaultAttributesIntegration']('customNumberedList'),_0x394cef['enableDefaultAttributesIntegration']('customBulletedList'),_0x394cef['enableDefaultAttributesIntegration']('indentList'),_0x394cef['enableDefaultAttributesIntegration']('outdentList'),_0x394cef['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x394cef['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x394cef['registerBlockAttribute']('listItemId'),_0x394cef['registerBlockAttribute']('listType'),_0x394cef['registerBlockAttribute']('listIndent'),_0x47f74b&&(_0x394cef['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x394cef['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x256392&&(_0x394cef['enableDefaultAttributesIntegration']('todoList'),_0x394cef['enableDefaultAttributesIntegration']('checkTodoList'),_0x394cef['registerBlockAttribute']('todoListChecked'),_0x394cef['descriptionFactory']['registerDescriptionCallback'](_0x4993c2=>{const {data:_0x393207}=_0x4993c2;if(_0x393207&&'todoListChecked'==_0x393207['key'])return{'type':'format','content':_0x393207['newValue']?c(_0x5bbb98,'*Check\x20item*'):c(_0x5bbb98,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2b407d=>{if(_0x2b407d['batch']['isUndo'])return!0x1;let _0x358a20=!0x1;const _0x1c87bc=_0x394cef['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41e7ec=>'todoListChecked'===_0x394cef['_getAttributeKey'](_0x41e7ec));for(const _0x3e9187 of _0x1c87bc){'todo'!=_0x3e9187['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x394cef['_findSuggestions'](_0x3e9187['getFirstRange'](),'attribute')['find'](_0x52eebe=>'listType'===_0x394cef['_getAttributeKey'](_0x52eebe['suggestion']))||(_0x2b407d['removeMarker'](_0x3e9187['getFirstMarker']()),_0x358a20=!0x0));}return _0x358a20;})),_0x394cef['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x5bbb98,'FORMAT_INDENT'));const _0x3e3f90={'type':'format','content':''};_0x394cef['descriptionFactory']['registerDescriptionCallback'](_0x58b293=>{const {data:_0x33eeb9}=_0x58b293;if(!_0x33eeb9||'listType'!=_0x33eeb9['key'])return;let _0x173107=_0x58b293['head'];for(;_0x173107;){if(_0x173107['data']&&(('listStyle'==_0x173107['data']['key']||'listMarkerStyle'==_0x173107['data']['key'])&&(_0x173107['data']['newValue']&&'default'!=_0x173107['data']['newValue']||'default'!=_0x173107['data']['oldValue']&&!_0x33eeb9['newValue'])||!_0x47f74b&&_0x173107['data']['key']==u))return _0x3e3f90;_0x173107=_0x173107['next'];}if(null==_0x33eeb9['newValue'])switch(_0x33eeb9['oldValue']){case'bulleted':return _0x3e1b03(c(_0x5bbb98,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e1b03(c(_0x5bbb98,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e1b03(c(_0x5bbb98,'ELEMENT_TODO_LIST'));}switch(_0x33eeb9['newValue']){case'bulleted':return _0x27c325(c(_0x5bbb98,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x27c325(c(_0x5bbb98,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x27c325(c(_0x5bbb98,'ELEMENT_TODO_LIST'));}}),_0x394cef['descriptionFactory']['registerDescriptionCallback'](_0x5aa04d=>{const {data:_0x165f6d}=_0x5aa04d;if(_0x165f6d&&'listIndent'==_0x165f6d['key'])return null==_0x165f6d['newValue']||null==_0x165f6d['oldValue']&&0x0==_0x165f6d['newValue']?_0x3e3f90:void 0x0;}),_0x394cef['descriptionFactory']['registerDescriptionCallback'](_0x66f312=>{if('attribute'!=_0x66f312['type'])return;const {data:_0x244675}=_0x66f312;if(!_0x244675||'listItemId'!=_0x244675['key'])return;const _0x32ed57=Te(_0x66f312);return'newValue'==_0x32ed57?{'type':'format','content':c(_0x5bbb98,'*Merge:*\x20list\x20item')}:'oldValue'==_0x32ed57?{'type':'format','content':c(_0x5bbb98,'*Split:*\x20list\x20item')}:_0x3e3f90;}),_0x5d021a['model']['document']['registerPostFixer'](_0x8873b8=>this['listItemIdFixer'](_0x8873b8)),_0x5d021a['model']['document']['registerPostFixer'](_0x5365de=>this['noTrackChangesFixer'](_0x5365de)),_0x5d021a['model']['document']['on']('change:data',(_0x5e968c,_0xd70612)=>{if(_0xd70612['isUndo']||!_0xd70612['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x107bdf){if(_0x107bdf['batch']['isUndo']||!_0x107bdf['batch']['isLocal'])return!0x1;let _0x998d44=!0x1;const _0x546feb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cba09=>_0x1cba09['data']&&'listItemId'==_0x1cba09['data']['key'])['filter'](_0x292fb5=>_0x292fb5['data']['newValue']&&_0x292fb5['data']['oldValue']);for(const _0x45b239 of _0x546feb)Te(_0x45b239)||(_0x107bdf['removeMarker'](_0x45b239['getFirstMarker']()),_0x998d44=!0x0);return _0x998d44;}['noTrackChangesFixer'](_0x48bb11){if(_0x48bb11['batch']['isUndo']||!_0x48bb11['batch']['isLocal'])return!0x1;const _0x3ac9bf=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3ac9bf['trackChangesCommand']['value'])return!0x1;let _0x1e4487=!0x1;const _0x4b3241=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x351975=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x523596=>'attribute'==_0x523596['type'])['filter'](_0x16655e=>_0x4b3241['includes'](_0x16655e['attributeKey']));if(0x0==_0x351975['length'])return _0x1e4487;for(const _0x5ae26e of _0x351975){const _0x11ede3=_0x3ac9bf['_findSuggestions'](_0x5ae26e['range'],'attribute')['filter'](_0x1a922b=>!_0x1a922b['meta']['isNextTo'])['map'](_0x5c3637=>_0x5c3637['suggestion'])['filter'](_0xb249f6=>{const _0x743dcd=_0x3ac9bf['_getAttributeKey'](_0xb249f6);return _0x4b3241['includes'](_0x743dcd);});if(_0x11ede3['length']){for(const _0x1ae818 of _0x11ede3)_0x48bb11['removeMarker'](_0x1ae818['getFirstMarker']());_0x1e4487=!0x0;}}return _0x1e4487;}['assureChains'](){const _0x67c012=this['editor']['plugins']['get']('TrackChangesEditing'),_0x353bf6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xf25f81;const _0x453549=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5bab5c=>{if(_0x5bab5c['data']['oldRange']||!_0x5bab5c['data']['newRange'])return null;if(!_0x5bab5c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4e0564}=_0x67c012['_splitMarkerName'](_0x5bab5c['name']);if(!_0x67c012['hasSuggestion'](_0x4e0564))return null;const _0x58fcef=_0x67c012['getSuggestion'](_0x4e0564);return _0x353bf6['includes'](_0x58fcef['data']['key']);})['map'](_0x298885=>{const {id:_0x1612a7}=_0x67c012['_splitMarkerName'](_0x298885['name']),_0x367c31=_0x67c012['getSuggestion'](_0x1612a7);return _0xf25f81=_0x367c31['attributes']['groupId'],_0x367c31['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x453549['size'])return;const _0x37f251=_0x67c012['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56e9b7=>'attribute'==_0x56e9b7['type']&&_0x56e9b7['data']&&_0x353bf6['includes'](_0x56e9b7['data']['key'])&&_0x56e9b7['attributes']['groupId']!=_0xf25f81)['map'](_0x217d31=>({'listItem':_0x217d31['getFirstRange']()['start']['nodeAfter'],'groupId':_0x217d31['attributes']['groupId']})),_0x5d707d=new Set();for(const {groupId:_0x1bdc49,listItem:_0x12c7d1}of _0x37f251)_0x453549['has'](_0x12c7d1)&&_0x5d707d['add'](_0x1bdc49);for(const _0x12b2d3 of _0x67c012['getSuggestions']())_0x5d707d['has'](_0x12b2d3['attributes']['groupId'])&&_0x12b2d3['setAttribute']('groupId',_0xf25f81);}['_supportLegacySuggestions'](){const _0x4bc5ba=this['editor'],_0x48d5dc=_0x4bc5ba['locale'],_0x5d5287=_0x4bc5ba['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5d5287['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3c5f85,_0x2389e0){const _0x401a03=[];for(let _0x7cd5c3 of _0x3c5f85)_0x7cd5c3['start']['nodeAfter']===_0x7cd5c3['end']['parent']&&(_0x7cd5c3=_0x4bc5ba['model']['createRange'](_0x4bc5ba['model']['createPositionAt'](_0x7cd5c3['start']['nodeAfter'],0x0))),_0x401a03['push'](_0x7cd5c3);_0x4bc5ba['model']['change'](_0x4e8ed3=>{const _0x19dae1=_0x4bc5ba['model']['document']['selection'],_0x863760=Array['from'](_0x19dae1['getRanges']())['map'](_0xd7350f=>_0x4a3ae4['fromRange'](_0xd7350f));_0x4e8ed3['setSelection'](_0x401a03),_0x4bc5ba['commands']['get'](_0x2389e0['commandName'])['refresh'](),_0x2389e0['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4bc5ba['execute'](_0x2389e0['commandName'],..._0x2389e0['commandParams']),_0x4e8ed3['setSelection'](_0x863760);for(const _0x25c073 of _0x863760)_0x25c073['detach']();});}),_0x5d5287['descriptionFactory']['registerElementLabel'](function(_0x3dcf98){const _0x8cef0f=!_0x4bc5ba['model']['schema']['isObject'](_0x3dcf98),_0x28e395=_0x3dcf98['previousSibling'],_0x5740c8=_0x3dcf98['nextSibling'],_0x26fbe4=_0x3dcf98['getAttribute']('listItemId'),_0x157ef7=!_0x28e395||_0x28e395['getAttribute']('listItemId')!==_0x26fbe4,_0x19286f=!_0x5740c8||_0x5740c8['getAttribute']('listItemId')!==_0x26fbe4;return _0x8cef0f&&Boolean(_0x26fbe4)&&_0x157ef7&&_0x19286f;},_0x3c91ad=>c(_0x48d5dc,'ELEMENT_LIST_ITEM',_0x3c91ad));}['_registerLegacyDescription'](){const _0xc7fc49=this['editor'],_0x73005=_0xc7fc49['locale'];function _0xcfdc5f(_0x519e81){const _0x267c8b=_0xc7fc49['commands']['get']('bulletedList')['value'],_0x12d4d6=_0xc7fc49['commands']['get']('numberedList')['value'];return'numberedList'===_0x519e81?_0x267c8b:_0x12d4d6;}_0xc7fc49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x373fe3){if('formatBlock'!=_0x373fe3['type'])return;const {data:_0x28667e}=_0x373fe3;if(!_0x28667e)return;let _0x4e582f,_0x2bed78,_0x37abd0,_0x3a4c7b;switch(_0x28667e['commandName']){case'bulletedList':_0x37abd0=_0x28667e['commandParams'][0x0]['forceValue'],_0x3a4c7b=_0xcfdc5f(_0x28667e['commandName']),_0x4e582f=_0x37abd0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3a4c7b&&_0xc7fc49['config']['get']('list.multiBlock')||(_0x4e582f='*Change\x20to:*\x20%0'),_0x2bed78={'type':'format','content':c(_0x73005,_0x4e582f,c(_0x73005,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x37abd0=_0x28667e['commandParams'][0x0]['forceValue'],_0x3a4c7b=_0xcfdc5f(_0x28667e['commandName']),_0x4e582f=_0x37abd0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3a4c7b&&_0xc7fc49['config']['get']('list.multiBlock')||(_0x4e582f='*Change\x20to:*\x20%0'),_0x2bed78={'type':'format','content':c(_0x73005,_0x4e582f,c(_0x73005,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4e582f='*Indent:*\x20%0',_0x2bed78={'type':'format','content':c(_0x73005,_0x4e582f,c(_0x73005,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4e582f=function(_0x2c3453){const _0x1888bc=_0x2c3453['getFirstRange']();let _0x38d2b8=_0x1888bc['start']['nodeAfter'];for(;_0x38d2b8&&_0x1888bc['containsItem'](_0x38d2b8);){if(_0x38d2b8['getAttribute']('listIndent')>0x0)return!0x1;_0x38d2b8=_0x38d2b8['nextSibling'];}return!0x0;}(_0x373fe3)?c(_0x73005,'*Format:*\x20remove\x20from\x20%0',c(_0x73005,function(_0x196016){return'ELEMENT_'+_0x196016['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x373fe3))):c(_0x73005,'*Outdent:*\x20%0',c(_0x73005,'ELEMENT_LIST_ITEM')),_0x2bed78={'type':'format','content':_0x4e582f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x28667e['multipleBlocks']&&(_0x4e582f='*Merge:*\x20%0',_0x2bed78={'type':'deletion','content':c(_0x73005,_0x4e582f,c(_0x73005,'ELEMENT_LIST_ITEM'))});}return _0x2bed78;});}}function Te(_0x241ebf){let _0x4b81fc=_0x241ebf['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4b81fc;){const _0x181a44=_0x4b81fc['getAttribute']('listItemId');if(!_0x181a44)return!0x1;if(_0x181a44==_0x241ebf['data']['newValue'])return'newValue';if(_0x181a44==_0x241ebf['data']['oldValue'])return'oldValue';_0x4b81fc=_0x4b81fc['previousSibling'];}return!0x1;}class Se extends _0x497417{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x30f352=this['editor']['config']['get']('list.properties'),_0x28da3d=this['editor']['plugins']['get']('TrackChangesEditing');_0x30f352['styles']&&(_0x28da3d['enableDefaultAttributesIntegration']('listStyle'),_0x28da3d['registerBlockAttribute']('listStyle')),_0x30f352['reversed']&&(_0x28da3d['enableDefaultAttributesIntegration']('listReversed'),_0x28da3d['registerBlockAttribute']('listReversed')),_0x30f352['startIndex']&&(_0x28da3d['enableDefaultAttributesIntegration']('listStart'),_0x28da3d['registerBlockAttribute']('listStart'));const _0x335367={'type':'format','content':''};_0x28da3d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4fe731=this['editor']['locale'];_0x28da3d['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x4fe731,'FORMAT_LIST_REVERSED')),_0x28da3d['descriptionFactory']['registerDescriptionCallback'](_0x5679c4=>{const {data:_0x473b39}=_0x5679c4;if(_0x473b39&&'listReversed'==_0x473b39['key'])return null==_0x473b39['newValue']||0x0==_0x473b39['newValue']&&null==_0x473b39['oldValue']?_0x335367:void 0x0;}),_0x28da3d['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x4fe731,'FORMAT_LIST_START')),_0x28da3d['descriptionFactory']['registerDescriptionCallback'](_0x5b5012=>{const {data:_0x1208ce}=_0x5b5012;if(_0x1208ce&&'listStart'==_0x1208ce['key'])return null==_0x1208ce['newValue']||0x1==_0x1208ce['newValue']&&null==_0x1208ce['oldValue']?_0x335367:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x40ae24=>{if(_0x40ae24['batch']['isUndo'])return!0x1;let _0x5d821f=!0x1;const _0x29d22b=_0x28da3d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf590fd=>{const _0x4313fd=_0x28da3d['_getAttributeKey'](_0xf590fd);return'listStart'==_0x4313fd||'listReversed'==_0x4313fd;});for(const _0x29a8e8 of _0x29d22b){const _0x3edb5a=_0x29a8e8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3edb5a||'customNumbered'==_0x3edb5a)continue;_0x28da3d['_findSuggestions'](_0x29a8e8['getFirstRange'](),'attribute')['find'](_0x1df758=>'listType'==_0x28da3d['_getAttributeKey'](_0x1df758['suggestion']))||(_0x40ae24['removeMarker'](_0x29a8e8['getFirstMarker']()),_0x5d821f=!0x0);}return _0x5d821f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x503578){const _0x483391=this['editor']['locale'],{data:_0x38db9a}=_0x503578,_0x5abe2a={'type':'format','content':''};if(!_0x38db9a||'listStyle'!=_0x38db9a['key'])return;if(!_0x38db9a['oldValue'])return'default'==_0x38db9a['newValue']?_0x5abe2a:{'type':'format','content':''+c(_0x483391,'*Set\x20format:*\x20%0',c(_0x483391,this['_getTranslationKeyForListStyle'](_0x38db9a['newValue'])))};if(!_0x38db9a['newValue']){if('default'==_0x38db9a['oldValue'])return _0x5abe2a;let _0x2e9cc8=_0x503578['head'];for(;_0x2e9cc8;){if(_0x2e9cc8['data']&&'listType'==_0x2e9cc8['data']['key']&&_0x2e9cc8['data']['newValue'])return _0x5abe2a;_0x2e9cc8=_0x2e9cc8['next'];}return{'type':'format','content':''+c(_0x483391,'*Remove\x20format:*\x20%0',c(_0x483391,this['_getTranslationKeyForListStyle'](_0x38db9a['oldValue'])))};}if('default'!=_0x38db9a['newValue'])return{'type':'format','content':''+c(_0x483391,'*Set\x20format:*\x20%0',c(_0x483391,this['_getTranslationKeyForListStyle'](_0x38db9a['newValue'])))};let _0x23ec11=_0x503578['head'];for(;_0x23ec11;){if(_0x23ec11['data']&&'listType'==_0x23ec11['data']['key']&&_0x23ec11['data']['newValue']&&_0x23ec11['data']['oldValue'])return _0x5abe2a;_0x23ec11=_0x23ec11['next'];}return{'type':'format','content':c(_0x483391,'*Set\x20format:*\x20%0',c(_0x483391,'ELEMENT_'+_0x503578['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1cd6eb=this['editor'],_0x520c1d=_0x1cd6eb['locale'];_0x1cd6eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c162c=>{if('formatBlock'!=_0x5c162c['type'])return;const {data:_0x2a079d}=_0x5c162c;if(!_0x2a079d)return;let _0x4e42d1,_0x55208c;switch(_0x2a079d['commandName']){case'listStyle':_0x4e42d1='*Change\x20to:*\x20%0',_0x55208c={'type':'format','content':c(_0x520c1d,_0x4e42d1,c(_0x520c1d,this['_getTranslationKeyForListStyle'](_0x2a079d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4e42d1=_0x2a079d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x55208c={'type':'format','content':c(_0x520c1d,_0x4e42d1)};break;case'listStart':_0x4e42d1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x55208c={'type':'format','content':c(_0x520c1d,_0x4e42d1,_0x2a079d['commandParams'][0x0]['startIndex'])};}return _0x55208c;});}['_getTranslationKeyForListStyle'](_0x655ea6){return'ELEMENT_'+function(_0x407a1d){if(_e['includes'](_0x407a1d))return'bulleted';if(Re['includes'](_0x407a1d))return'numbered';return null;}(_0x655ea6)['toUpperCase']()+'_LIST_'+_0x655ea6['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x497417{['afterInit'](){const _0x34fbd7=this['editor'];_0x34fbd7['commands']['get']('emoji')&&_0x34fbd7['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x497417{static get['requires'](){return[_0x4709a6];}['init'](){const _0x21faba=this['editor'],_0x11ffb1=_0x21faba['plugins']['get']('TrackChangesEditing'),_0x501b75=_0x21faba['commands']['get']('enter');_0x11ffb1['enableCommand']('enter',()=>{_0x21faba['model']['change'](_0x5a5f27=>{const _0xa5b664=_0x21faba['model']['document']['selection'],_0x13a2af=_0xa5b664['getFirstPosition'](),_0x56de74=_0x4a3ae4['fromRange'](_0xa5b664['getFirstRange']());if(_0x501b75['enterBlock'](_0x5a5f27)){const _0x480efd=_0x21faba['model']['createPositionAt'](_0x13a2af['parent']['nextSibling'],0x0),_0x27d95e=_0x5a5f27['createRange'](_0x13a2af,_0x480efd);_0x11ffb1['markInsertion'](_0x27d95e);}else _0x5a5f27['setSelection'](_0x5a5f27['createRange'](_0x56de74['end']));_0x56de74['detach'](),_0x501b75['fire']('afterExecute',{'writer':_0x5a5f27});});}),_0x21faba['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x21faba,'split'),{'priority':'high'}),_0x21faba['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5be870,_0x1e3b03,_0x1a6a17)=>{const _0x77a3af=_0x1a6a17['mapper']['markerNameToElements'](_0x1e3b03['markerName']);if(_0x77a3af){for(const _0x20839b of _0x77a3af)_0x20839b['hasClass']('ck-suggestion-marker-split')&&(_0x1a6a17['mapper']['unbindElementFromMarkerName'](_0x20839b,_0x1e3b03['markerName']),_0x1a6a17['writer']['remove'](_0x20839b));}},{'priority':'high'}),_0x21faba['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x44cebf,_0x52deff,_0x4ab227)=>{_0x4ab227['options']['showSuggestionHighlights']&&De(_0x21faba,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x44cebf,_0x52deff,_0x4ab227);},{'priority':'high'});}}class Z extends _0x497417{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x7d9966=this['editor']['plugins']['get']('TrackChangesEditing');_0x7d9966['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x7d9966['enableCommand']('findNext'),_0x7d9966['enableCommand']('findPrevious'),_0x7d9966['enableCommand']('replace'),_0x7d9966['enableCommand']('replaceAll');}['handleFindCommand'](_0x47d516,_0x2837c7,_0x22f325={}){const _0x598052=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x47d516(_0x3319fd=>{let _0xe931c1=('string'==typeof _0x2837c7?_0x598052['findByTextCallback'](_0x2837c7,_0x22f325):_0x2837c7)(_0x3319fd);Array['isArray'](_0xe931c1)&&(_0xe931c1={'results':_0xe931c1,'searchText':'string'==typeof _0x2837c7?_0x2837c7:''});const _0x36b7a6=_0xe931c1['results']['filter'](_0x87bb11=>!0x1===this['_isInDeletionRange'](_0x87bb11,_0x3319fd['item']));return{..._0xe931c1,'results':_0x36b7a6};},_0x22f325);}['_isInDeletionRange'](_0x47349c,_0x50af8a){const _0x5e57e7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x50af8a,_0x47349c['start']),this['editor']['model']['createPositionAt'](_0x50af8a,_0x47349c['end']));for(const _0x372946 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5e57e7['getIntersection'](_0x372946['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x497417{['afterInit'](){const _0x29ce68=this['editor']['locale'],_0x15d757=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x26ed34,commandName:_0x4aaa5b}of eo)this['editor']['plugins']['has'](_0x26ed34)&&(_0x15d757['enableDefaultAttributesIntegration'](_0x4aaa5b),_0x15d757['registerInlineAttribute'](_0x4aaa5b));_0x15d757['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x29ce68,'FORMAT_FONT_SIZE')),_0x15d757['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x29ce68,'FORMAT_FONT_FAMILY')),_0x15d757['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x29ce68,'FORMAT_FONT_COLOR')),_0x15d757['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x29ce68,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47640e=this['editor'],_0x3a04d2=_0x47640e['locale'];_0x47640e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a938d=>{const _0x386961=_0x3a04d2['t'];if('formatInline'!=_0x1a938d['type'])return;const {data:_0x3bfb6a}=_0x1a938d;if(null!=_0x3bfb6a){if('fontSize'==_0x3bfb6a['commandName']){const _0x1db730=_0x3bfb6a['commandParams'][0x0]['value'];if(_0x1db730){const _0x2209dd=_0x386961(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4007dd=>_0x4007dd['model']==_0x1db730)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3a04d2,'*Set\x20font\x20size:*\x20%0',_0x2209dd)};}return{'type':'format','content':c(_0x3a04d2,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3bfb6a['commandName']){const _0x7e547f=_0x3bfb6a['commandParams'][0x0]['value'];return _0x7e547f?{'type':'format','content':c(_0x3a04d2,'*Set\x20font\x20family:*\x20%0',_0x7e547f)}:{'type':'format','content':c(_0x3a04d2,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3bfb6a['commandName']){const _0x2d6dbe=_0x3bfb6a['commandParams'][0x0]['value'];if(_0x2d6dbe){const _0x98a38=_0x2b8a4e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x439a14=>_0x439a14['model']==_0x2d6dbe);let _0x5ead2a=_0x2d6dbe,_0x5be48d='';return _0x98a38&&(_0x5ead2a=_0x98a38['label'],_0x5be48d=_0x386961(_0x5ead2a)['toLowerCase']()),{'type':'format','content':c(_0x3a04d2,'*Set\x20font\x20color:*\x20%0',_0x5be48d)['trim'](),'color':{'value':_0x2d6dbe,'title':_0x5be48d||_0x5ead2a}};}return{'type':'format','content':c(_0x3a04d2,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3bfb6a['commandName']){const _0x333b3b=_0x3bfb6a['commandParams'][0x0]['value'];if(_0x333b3b){const _0x5a4254=_0x2b8a4e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x591bfc=>_0x591bfc['model']==_0x333b3b);let _0x2d7359=_0x333b3b,_0x241e77='';return _0x5a4254&&(_0x2d7359=_0x5a4254['label'],_0x241e77=_0x386961(_0x2d7359)['toLowerCase']()),{'type':'format','content':c(_0x3a04d2,'*Set\x20font\x20background\x20color:*\x20%0',_0x241e77)['trim'](),'color':{'value':_0x333b3b,'title':_0x241e77||_0x2d7359}};}return{'type':'format','content':c(_0x3a04d2,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x497417{['afterInit'](){const _0xe582f=this['editor'],_0x561fa0=_0xe582f['plugins']['get']('TrackChangesEditing'),_0x35800d=_0xe582f['commands']['get']('copyFormat'),_0x3637de=_0xe582f['commands']['get']('pasteFormat');_0x35800d&&_0x3637de&&(_0x561fa0['enableDefaultAttributesIntegration']('pasteFormat'),_0x561fa0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x43c8d6=this['editor'],_0x363e49=_0x43c8d6['locale'];_0x43c8d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b4d85=>{if('formatBlock'!=_0x5b4d85['type']&&'formatInline'!=_0x5b4d85['type'])return;const {data:_0x360239}=_0x5b4d85;if(_0x360239&&'pasteFormat'===_0x360239['commandName']){const _0x298d70=[],_0x3f3873=_0x360239['commandParams'][0x0];for(const [_0x2afe21,_0x538377]of Object['entries'](_0x3f3873))_0x298d70['push'](ro(_0x43c8d6,_0x2afe21,_0x538377));return _0x298d70['length']?{'type':'format','content':c(_0x363e49,'*Set\x20format\x20to:*\x20%0',_0x298d70['join'](',\x20'))}:{'type':'format','content':c(_0x363e49,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x13eca1,_0x7261e3,_0x57a85b){const _0x25ddfc=_0x13eca1['locale']['t'],_0x26e8ba=_0x7261e3['split'](/(?=[A-Z])/)['join']('\x20'),_0x3acf72=_0x25ddfc(_0x26e8ba['charAt'](0x0)['toUpperCase']()+_0x26e8ba['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x57a85b)return _0x3acf72;if('fontColor'===_0x7261e3||'fontBackgroundColor'===_0x7261e3){const _0x28b6a1=_0x2b8a4e(_0x13eca1['config']['get']('fontColor.colors'))['find'](_0x183d70=>_0x183d70['model']==_0x57a85b);return _0x3acf72+'\x20('+(_0x28b6a1?_0x25ddfc(_0x28b6a1['label'])['toLowerCase']():_0x57a85b)+')';}if('fontSize'===_0x7261e3&&isNaN(parseFloat(_0x57a85b))){const _0xb193f4=_0x13eca1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x13eca1['config']['get']('fontSize.options'))['find'](_0x45c8c0=>_0x45c8c0['model']==_0x57a85b);return _0x3acf72+'\x20('+(_0xb193f4?_0x25ddfc(_0xb193f4['title'])['toLowerCase']():_0x57a85b)+')';}return _0x3acf72+'\x20('+_0x57a85b+')';}class nt extends _0x497417{['_headingOptions'];['afterInit'](){const _0x1fd968=this['editor'];if(!_0x1fd968['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1fd968['config']['get']('heading.options');const _0x26a846=_0x1fd968['locale'],_0x11bb63=_0x1fd968['plugins']['get']('TrackChangesEditing');_0x11bb63['enableDefaultAttributesIntegration']('heading');for(const _0x311449 of this['_headingOptions'])'paragraph'!=_0x311449['model']&&_0x11bb63['descriptionFactory']['registerElementLabel'](_0x311449['model'],_0x45b198=>{const _0x15d4c6=this['_getHeadingLevel'](_0x311449['model']);return null!==_0x15d4c6?_0x599ad3(_0x45b198,_0x15d4c6):_0x39bcf7(_0x45b198,_0x311449['title']);});function _0x599ad3(_0x3da5e2,_0x318050){return c(_0x26a846,'ELEMENT_HEADING',[_0x3da5e2,_0x318050]);}function _0x39bcf7(_0x19fb3c,_0x18310b){return c(_0x26a846,'ELEMENT_HEADING_CUSTOM',[_0x19fb3c,_0x18310b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cdc1f=this['editor'],_0xe39338=_0x4cdc1f['locale'];function _0x555f7d(_0x1c1b10,_0x58abe9){return c(_0xe39338,'ELEMENT_HEADING_CUSTOM',[_0x1c1b10,_0x58abe9]);}_0x4cdc1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x581bbc=>{if('formatBlock'!=_0x581bbc['type'])return;const {data:_0x4968bf}=_0x581bbc;if(_0x4968bf&&'heading'==_0x4968bf['commandName']){const _0x49d743=_0x4968bf['commandParams'][0x0]['value'],_0x2eb5a2=this['_getHeadingLevel'](_0x49d743);if(null!==_0x2eb5a2)return{'type':'format','content':c(_0xe39338,'*Change\x20to:*\x20%0',(_0x3cb6ac=0x1,_0x10a9ca=_0x2eb5a2,c(_0xe39338,'ELEMENT_HEADING',[_0x3cb6ac,_0x10a9ca])))};const _0x17e393=this['_headingOptions']['find'](_0x54ce8=>_0x54ce8['model']===_0x49d743)['title'];return{'type':'format','content':c(_0xe39338,'*Change\x20to:*\x20%0',_0x555f7d(0x1,_0x17e393))};}var _0x3cb6ac,_0x10a9ca;});}['_getHeadingLevel'](_0x51df3f){const _0x111014=_0x51df3f['match'](/^heading(\d+)/);if(_0x111014)return _0x111014[0x1];const _0x18cd49=this['_headingOptions']?.['find'](_0x5f1adc=>_0x5f1adc['model']==_0x51df3f);if(_0x18cd49&&_0x18cd49['view']){const _0x1cd46f=_0x18cd49['view'],_0x118ffc=(_0x1cd46f['name']??_0x1cd46f)['match'](/^h(\d+)/);if(_0x118ffc)return _0x118ffc[0x1];}return null;}}class it extends _0x497417{['afterInit'](){const _0x36eba6=this['editor'];if(!_0x36eba6['plugins']['has']('HighlightEditing'))return;const _0x200eb0=_0x36eba6['plugins']['get']('TrackChangesEditing'),_0x4fe571=_0x36eba6['locale'];_0x200eb0['enableDefaultAttributesIntegration']('highlight'),_0x200eb0['registerInlineAttribute']('highlight'),_0x200eb0['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x4fe571,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2df12f=this['editor'],_0x23ec56=_0x2df12f['locale'];_0x2df12f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x376654=>{if('formatInline'!=_0x376654['type'])return;const {data:_0x3d4e73}=_0x376654;if(_0x3d4e73&&'highlight'==_0x3d4e73['commandName']){const _0x5c69f1=_0x23ec56['t'],_0x528588=_0x3d4e73['commandParams'][0x0]['value'];if(_0x528588){const _0x5c9567=_0x2df12f['config']['get']('highlight.options')['find'](_0x1ec86c=>_0x1ec86c['model']==_0x528588),_0xb875cc=_0x5c69f1(_0x5c9567['title'])['toLowerCase']();return{'type':'format','content':c(_0x23ec56,'*Set\x20highlight:*\x20%0',_0xb875cc),'color':{'value':_0x5c9567['color'],'title':_0x5c9567['title']}};}return{'type':'format','content':c(_0x23ec56,'*Remove\x20highlight*',c(_0x23ec56,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x497417{['afterInit'](){const _0x2094a2=this['editor'];if(!_0x2094a2['plugins']['has']('HorizontalLineEditing'))return;_0x2094a2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x94e799=_0x2094a2['plugins']['get']('TrackChangesEditing'),_0x3dc907=_0x2094a2['locale'];_0x94e799['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3de609=>c(_0x3dc907,'ELEMENT_HORIZONTAL_LINE',_0x3de609)),_0x2094a2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x40d38e,{writer:_0x4b5a71,options:_0x11667b})=>{if(!_0x11667b['showSuggestionHighlights'])return null;const _0x295b00=_0x4b5a71['createContainerElement']('div'),_0xde3210=_0x4b5a71['createEmptyElement']('hr');return _0x4b5a71['addClass']('ck-horizontal-line',_0x295b00),_0x4b5a71['insert'](_0x4b5a71['createPositionAt'](_0x295b00,0x0),_0xde3210),_0x295b00;},'converterPriority':'high'});}}class ot extends _0x497417{['afterInit'](){const _0xf7f8ff=this['editor'];if(!_0xf7f8ff['plugins']['has']('HtmlEmbed'))return;const _0x504bc4=_0xf7f8ff['plugins']['get']('TrackChangesEditing'),_0x305c53=_0xf7f8ff['locale'];_0x504bc4['descriptionFactory']['registerElementLabel']('rawHtml',_0x55bf57=>c(_0x305c53,'ELEMENT_HTML_EMBED',_0x55bf57)),_0x504bc4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x504bc4['registerBlockAttribute']('value'),_0x504bc4['descriptionFactory']['registerDescriptionCallback'](_0x41980d=>{if('attribute'!=_0x41980d['type'])return;const {data:_0x4d03c4}=_0x41980d;if(_0x4d03c4&&'value'==_0x4d03c4['key']&&_0x41980d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x43435f=c(_0x305c53,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x305c53,'*Change\x20%0\x20content*',_0x43435f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58956a=this['editor'],_0x5844e6=_0x58956a['locale'];_0x58956a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39a720=>{if('formatBlock'!=_0x39a720['type'])return;const {data:_0x10898b}=_0x39a720;if(_0x10898b&&'htmlEmbed'==_0x10898b['commandName']){const _0x43f069=c(_0x5844e6,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5844e6,'*Change\x20%0\x20content*',_0x43f069)};}});}}class rt extends _0x497417{['afterInit'](){const _0x2740a5=this['editor'];if(!_0x2740a5['plugins']['has']('ImageEditing'))return;const _0x560543=_0x2740a5['plugins']['get']('TrackChangesEditing'),_0x7f6537=_0x2740a5['plugins']['get']('ImageUtils'),_0xc0af58=_0x2740a5['locale'];_0x560543['enableCommand']('insertImage'),_0x560543['descriptionFactory']['registerElementLabel']('imageBlock',_0x3245fd=>c(_0xc0af58,'ELEMENT_IMAGE',_0x3245fd)),_0x560543['descriptionFactory']['registerElementLabel']('imageInline',_0x56cbca=>c(_0xc0af58,'ELEMENT_INLINE_IMAGE',_0x56cbca)),_0x560543['descriptionFactory']['registerElementLabel']('caption',()=>c(_0xc0af58,'ELEMENT_CAPTION')),_0x2740a5['plugins']['has']('ImageUploadEditing')&&_0x560543['enableCommand']('uploadImage'),_0x2740a5['plugins']['has']('ImageBlockEditing')&&_0x2740a5['plugins']['has']('ImageInlineEditing')&&(_0x560543['enableCommand']('imageTypeInline',(_0xaf3c8c,_0x539fdf)=>{const _0x463556=_0x7f6537['getClosestSelectedImageElement'](_0x2740a5['model']['document']['selection']);_0x2740a5['model']['change'](()=>{_0x560543['markBlockFormat'](_0x463556,{'commandName':'imageTypeInline','commandParams':[_0x539fdf]},[],'convertBlockImageToInline');});}),_0x560543['enableCommand']('imageTypeBlock',(_0x3d2c04,_0x2dd6ba)=>{_0x2740a5['model']['change'](_0x4913dc=>{let _0x4ac038=_0x7f6537['getClosestSelectedImageElement'](_0x2740a5['model']['document']['selection']),_0x22a925=_0x4913dc['createRangeOn'](_0x4ac038);const _0x5e439c=_0x3bdfd3['fromPosition'](_0x22a925['start'],'toPrevious'),_0x43ff75=_0x3bdfd3['fromPosition'](_0x22a925['end'],'toNext');_0x560543['forceDefaultExecution'](()=>_0x3d2c04(_0x2dd6ba)),_0x4ac038=_0x7f6537['getClosestSelectedImageElement'](_0x2740a5['model']['document']['selection']),_0x22a925=_0x4913dc['createRangeOn'](_0x4ac038);const _0x3ce65d=_0x4913dc['createRange'](_0x5e439c,_0x43ff75);_0x5e439c['detach'](),_0x43ff75['detach'](),_0x560543['markBlockFormat'](_0x4ac038,{'commandName':'imageTypeInline','commandParams':[_0x2dd6ba]},[],'convertInlineImageToBlock'),_0x3ce65d['start']['isBefore'](_0x22a925['start'])&&_0x560543['markInsertion'](_0x4913dc['createRange'](_0x3ce65d['start'],_0x22a925['start']),'convertInlineImageToBlock'),_0x22a925['end']['isBefore'](_0x3ce65d['end'])&&_0x560543['markInsertion'](_0x4913dc['createRange'](_0x22a925['end'],_0x3ce65d['end']),'convertInlineImageToBlock');});}),_0x560543['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x560543['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x560543['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x560543['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x560543['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x560543['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x188b8f])=>{const _0x155a26=_0x560543['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4abc0e=_0x188b8f['start'],_0x19a9eb=_0x188b8f['end'];const _0x5cc560=_0x2740a5['model']['schema']['getNearestSelectionRange'](_0x4abc0e,'backward'),_0x1c70fd=_0x2740a5['model']['schema']['getNearestSelectionRange'](_0x19a9eb,'forward');_0x5cc560['isCollapsed']&&(_0x4abc0e=_0x5cc560['start']),_0x1c70fd['isCollapsed']&&(_0x19a9eb=_0x1c70fd['end']),_0x155a26([_0x2740a5['model']['createRange'](_0x4abc0e,_0x19a9eb)]);}),_0x560543['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x16f10c),_0x560543['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x16f10c)),_0x2740a5['plugins']['has']('ImageCaptionEditing')&&(_0x560543['enableCommand']('toggleImageCaption',(_0x6f1640,_0x2d71bc)=>{const _0x65fe04=_0x2740a5['plugins']['get']('ImageCaptionUtils');let _0xad0444=_0x7f6537['getClosestSelectedImageElement'](_0x2740a5['model']['document']['selection']),_0x3f6252=_0x65fe04['getCaptionFromImageModelElement'](_0xad0444);_0x2740a5['model']['change'](()=>{if(_0x3f6252)return void _0x560543['markDeletion'](_0x2740a5['model']['createRangeOn'](_0x3f6252));const _0x103220=_0x7f6537['isBlockImage'](_0xad0444);_0x6f1640(_0x2d71bc),_0xad0444=_0x7f6537['getClosestSelectedImageElement'](_0x2740a5['model']['document']['selection']),_0x3f6252=_0x65fe04['getCaptionFromImageModelElement'](_0xad0444),_0x560543['markInsertion'](_0x2740a5['model']['createRangeOn'](_0x3f6252),_0x103220?null:'imageCaption');});}),_0x560543['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x16f10c));const _0x390474=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x81eac3(_0x16cac1,_0x4a85a1){const _0x3bc80c=_0x390474['findIndex'](({type:_0x139b82,subType:_0x25cf43})=>_0x16cac1['type']==_0x139b82&&_0x16cac1['subType']==_0x25cf43),_0x38faec=_0x390474['findIndex'](({type:_0x28313e,subType:_0x20a916})=>_0x4a85a1['type']==_0x28313e&&_0x4a85a1['subType']==_0x20a916);if(_0x3bc80c<0x0||_0x38faec<0x0)return!0x1;const _0x1df146=_0x16cac1['getFirstRange'](),_0x21485d=_0x4a85a1['getFirstRange']();if((0x0==_0x3bc80c||0x1==_0x3bc80c)&&0x2==_0x38faec&&_0x1df146['isIntersecting'](_0x21485d))return!0x0;if(0x2==_0x3bc80c&&0x3==_0x38faec){const _0x3ccd52=_0x560543['_findSuggestions'](_0x1df146,'insertion')['filter'](({suggestion:_0x3667ce,meta:_0x2d5bb6})=>_0x2d5bb6['isOwn']&&'convertInlineImageToBlock'==_0x3667ce['subType']);if(_0x3ccd52['length']>0x1&&_0x21485d['end']['isEqual'](_0x1df146['start']))return!0x0;if(0x1==_0x3ccd52['length']&&(_0x1df146['start']['isEqual'](_0x21485d['end'])||_0x1df146['end']['isEqual'](_0x21485d['start'])))return!0x0;}if(0x3==_0x3bc80c&&0x3==_0x38faec&&_0x1df146['start']['isBefore'](_0x21485d['start'])){const _0x43a630=_0x1df146['end']['nodeAfter'],_0x449c46=_0x21485d['start']['nodeBefore'];return _0x7f6537['isBlockImage'](_0x43a630)&&_0x43a630===_0x449c46;}return!0x1;}function _0x16f10c(_0x5961fc,_0x46285e){return _0x81eac3(_0x5961fc,_0x46285e)?[_0x5961fc,_0x46285e]:_0x81eac3(_0x46285e,_0x5961fc)?[_0x46285e,_0x5961fc]:null;}_0x2740a5['plugins']['has']('ImageResize')&&(_0x560543['enableDefaultAttributesIntegration']('resizeImage'),_0x560543['registerBlockAttribute']('resizedWidth'),_0x560543['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0xc0af58,'FORMAT_IMAGE_SIZE'))),_0x2740a5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x560543['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x560543['registerBlockAttribute']('alt')),_0x2740a5['plugins']['has']('PictureEditing')&&(_0x560543['registerBlockAttribute']('sources'),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x568f4e=>{if('attribute'!=_0x568f4e['type'])return;const {data:_0x39b7ce}=_0x568f4e;return _0x39b7ce&&'sources'==_0x39b7ce['key']?{'type':'format','content':''}:void 0x0;})),_0x2740a5['plugins']['has']('ImageSizeAttributes')&&(_0x560543['registerBlockAttribute']('width'),_0x560543['registerBlockAttribute']('height'),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x1afde8=>{if('attribute'!=_0x1afde8['type'])return;const {data:_0x521c47}=_0x1afde8;return!_0x521c47||'width'!=_0x521c47['key']&&'height'!=_0x521c47['key']?void 0x0:{'type':'format','content':''};})),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x2c322a=>{if(!!_0x390474['find'](({type:_0x1fa962,subType:_0x3247f5})=>_0x2c322a['type']==_0x1fa962&&_0x2c322a['subType']==_0x3247f5))return _0x2c322a['previous']?{}:void 0x0;}),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x475b2f=>{if('insertion'==_0x475b2f['type']||'deletion'==_0x475b2f['type']){const _0x1cea59=_0x475b2f['getContainedElement']();if(_0x1cea59&&_0x1cea59['is']('element','caption'))return{'type':'insertion'==_0x475b2f['type']?'addObject':'removeObject','element':_0x1cea59,'quantity':0x1};}}),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x58948f=>'formatBlock'==_0x58948f['type']&&'convertInlineImageToBlock'==_0x58948f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x58948f['type']&&'convertBlockImageToInline'==_0x58948f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x560543['descriptionFactory']['registerDescriptionCallback'](_0x2d5431=>{if('attribute'!=_0x2d5431['type'])return;const {data:_0x17a8fb}=_0x2d5431;if(!_0x17a8fb||'alt'!=_0x17a8fb['key'])return;const _0x273e1c=_0x17a8fb['newValue'];return _0x273e1c?{'type':'format','content':c(_0xc0af58,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x273e1c+'\x22')}:{'type':'format','content':c(_0xc0af58,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x146bf3=this['editor'],_0x118da2=_0x146bf3['locale'];_0x146bf3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2915ce=>{if('formatBlock'!=_0x2915ce['type']&&'formatInline'!=_0x2915ce['type'])return;const {data:_0x4f9152}=_0x2915ce;if(_0x4f9152){if('imageTextAlternative'==_0x4f9152['commandName']){const _0x12ae5e=_0x4f9152['commandParams'][0x0]['newValue'];return _0x12ae5e?{'type':'format','content':c(_0x118da2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x12ae5e+'\x22')}:{'type':'format','content':c(_0x118da2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4f9152['commandName']){const _0x3dda3f=_0x4f9152['commandParams'][0x0]['width'];return _0x3dda3f?{'type':'format','content':c(_0x118da2,'*Set\x20image\x20width:*\x20%0',_0x3dda3f)}:{'type':'format','content':c(_0x118da2,'*Reset\x20image\x20width*')};}}});}}class at extends _0x497417{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xebd67f=this['editor']['locale'],_0x53fea9=this['editor']['plugins']['get']('TrackChangesEditing');_0x53fea9['enableDefaultAttributesIntegration']('replaceImageSource'),_0x53fea9['registerBlockAttribute']('src'),_0x53fea9['descriptionFactory']['registerDescriptionCallback'](_0x4556a7=>{if('attribute'!=_0x4556a7['type'])return;const {data:_0x3b7048}=_0x4556a7;return _0x3b7048&&'src'==_0x3b7048['key']?_0x3b7048['newValue']&&_0x3b7048['oldValue']?{'type':'format','content':c(_0xebd67f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xa8e31=this['editor']['plugins']['get']('TrackChangesEditing');_0xa8e31['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xa8e31['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xa8e31['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xa8e31['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d5ecb=this['editor'],_0x2d630b=_0x2d5ecb['locale'];_0x2d5ecb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16decd=>{if('formatBlock'!=_0x16decd['type']&&'formatInline'!=_0x16decd['type'])return;const {data:_0x1e3085}=_0x16decd;if(!_0x1e3085||'replaceImageSource'!=_0x1e3085['commandName'])return;return{'type':'format','content':c(_0x2d630b,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x497417{['afterInit'](){const _0x52fba8=this['editor'];if(!_0x52fba8['plugins']['has']('ImageStyleEditing'))return;const _0x50cae9=_0x52fba8['plugins']['get']('TrackChangesEditing'),_0x2cbabc=_0x52fba8['plugins']['get']('ImageUtils'),_0x25091d={};_0x50cae9['enableCommand']('imageStyle',(_0xa64b53,_0x3657e8)=>{const _0x508b51=_0x52fba8['plugins']['get']('Users')['me'],_0x522813=_0x52fba8['commands']['get']('imageStyle');let _0x2d02c9=_0x2cbabc['getClosestSelectedImageElement'](_0x52fba8['model']['document']['selection']),_0x46793d=_0x52fba8['model']['createRangeOn'](_0x2d02c9),_0x2f3e03=_0x522813['value'];if(_0x2f3e03==_0x3657e8['value'])return;const _0x1b2fcc={'commandName':'imageStyle','commandParams':[_0x3657e8],'formatGroupId':_0x437d48()};_0x52fba8['model']['change'](()=>{if(_0x50cae9['getSuggestions']()['filter'](_0x23a8ce=>_0x23a8ce['isInContent']&&_0x508b51==_0x23a8ce['author']&&('formatBlock'==_0x23a8ce['type']||'formatInline'==_0x23a8ce['type'])&&('imageStylePreApply'==_0x23a8ce['subType']||'imageStylePostApply'==_0x23a8ce['subType'])&&_0x23a8ce['getFirstRange']()['isEqual'](_0x46793d))['forEach'](_0x1601ed=>_0x50cae9['discardSuggestion'](_0x1601ed['head'])),_0x2d02c9=_0x2cbabc['getClosestSelectedImageElement'](_0x52fba8['model']['document']['selection']),_0x46793d=_0x52fba8['model']['createRangeOn'](_0x2d02c9),_0x522813['refresh'](),_0x52fba8['commands']['get']('imageTypeInline')['refresh'](),_0x52fba8['commands']['get']('imageTypeBlock')['refresh'](),_0x2f3e03=_0x522813['value'],_0x2f3e03!=_0x3657e8['value'])return _0x2cbabc['isInlineImage'](_0x2d02c9)&&_0x522813['shouldConvertImageType'](_0x3657e8['value'],_0x2d02c9)?(_0xa64b53({..._0x3657e8,'setImageSizes':!0x1}),_0x2d02c9=_0x2cbabc['getClosestSelectedImageElement'](_0x52fba8['model']['document']['selection']),void _0x50cae9['markBlockFormat'](_0x2d02c9,{..._0x1b2fcc,'commandReversedParams':[{'value':_0x2f3e03||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2cbabc['isBlockImage'](_0x2d02c9)?_0x50cae9['markBlockFormat'](_0x2d02c9,_0x1b2fcc,[],'imageStylePostApply'):_0x50cae9['markInlineFormat'](_0x46793d,_0x1b2fcc,'imageStylePostApply'));});});for(const _0x339e88 of _0x52fba8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x25091d[_0x339e88['name']]=_0x339e88['title']['toLowerCase']();_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x574536])=>{_0x2cbabc['setImageNaturalSizeAttributes'](_0x574536['getContainedElement']());}),_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x192dcf,_0x3c0ac8)=>{_0x50cae9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x192dcf,{'commandName':_0x3c0ac8['commandName'],'commandParams':_0x3c0ac8['commandReversedParams']});}),_0x50cae9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x30f6d8,_0xc42b9d){if(_0x5047dd(_0x30f6d8,_0xc42b9d))return[_0x30f6d8,_0xc42b9d];if(_0x5047dd(_0xc42b9d,_0x30f6d8))return[_0xc42b9d,_0x30f6d8];return null;});const _0x489257=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5047dd(_0x461799,_0x182b14){const _0x9d8456=_0x489257['findIndex'](({type:_0x321771,subType:_0x52c52f})=>_0x461799['type']==_0x321771&&_0x461799['subType']==_0x52c52f),_0x4d4945=_0x489257['findIndex'](({type:_0x31b6c7,subType:_0x1b0b42})=>_0x182b14['type']==_0x31b6c7&&_0x182b14['subType']==_0x1b0b42);if(_0x9d8456<0x0||_0x4d4945<0x0)return!0x1;const _0x46e4ad=_0x461799['getFirstRange'](),_0x3be8f2=_0x182b14['getFirstRange']();if((0x0==_0x9d8456||0x1==_0x9d8456)&&0x2==_0x4d4945&&_0x46e4ad['isIntersecting'](_0x3be8f2))return!0x0;if(0x2==_0x9d8456&&0x3==_0x4d4945){const _0x23a89e=_0x50cae9['_findSuggestions'](_0x46e4ad,'insertion')['filter'](({suggestion:_0x3c89b4,meta:_0x574f93})=>_0x574f93['isOwn']&&'convertInlineImageToBlock'==_0x3c89b4['subType']);if(_0x23a89e['length']>0x1&&_0x3be8f2['end']['isEqual'](_0x46e4ad['start']))return!0x0;if(0x1==_0x23a89e['length']&&(_0x46e4ad['start']['isEqual'](_0x3be8f2['end'])||_0x46e4ad['end']['isEqual'](_0x3be8f2['start'])))return!0x0;}if(0x3==_0x9d8456&&0x3==_0x4d4945&&_0x46e4ad['start']['isBefore'](_0x3be8f2['start'])){const _0x3b96da=_0x46e4ad['end']['nodeAfter'],_0x1ed4dc=_0x3be8f2['start']['nodeBefore'];return _0x2cbabc['isBlockImage'](_0x3b96da)&&_0x3b96da===_0x1ed4dc;}return!0x1;}_0x52fba8['model']['document']['registerPostFixer'](()=>{let _0x4e5d17=!0x1;const _0x4d828c=Array['from'](_0x52fba8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c7aca,data:_0xcda04}of _0x4d828c){const {group:_0x143c57,type:_0x514e23,subType:_0x3c9b7b,id:_0x41f764}=_0x50cae9['_splitMarkerName'](_0x2c7aca);if('suggestion'==_0x143c57&&_0x50cae9['hasSuggestion'](_0x41f764)){if('formatBlock'==_0x514e23&&('imageStylePreApply'==_0x3c9b7b||'imageStylePostApply'==_0x3c9b7b)){const _0x33a9c0=_0x50cae9['getSuggestion'](_0x41f764);if(_0xcda04['newRange']){const _0x2bb90f=_0x33a9c0['getFirstRange']()['getContainedElement']();if(_0x2cbabc['isBlockImage'](_0x2bb90f))continue;_0x50cae9['discardSuggestion'](_0x33a9c0),_0x4e5d17=!0x0;}}if('insertion'==_0x514e23&&'imageCaption'==_0x3c9b7b&&!_0xcda04['newRange']){const _0x44cccb=_0x50cae9['getSuggestion'](_0x41f764);_0x44cccb['next']&&_0x44cccb['next']['isInContent']&&(_0x50cae9['discardSuggestion'](_0x44cccb['next']),_0x4e5d17=!0x0);}}}return _0x4e5d17;}),this['_registerLegacyDescription'](_0x25091d);}['_registerLegacyDescription'](_0x2ebf70){const _0xf5703d=this['editor'],_0x5445ff=_0xf5703d['locale'];_0xf5703d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bdfea=>{if('formatBlock'!=_0x1bdfea['type']&&'formatInline'!=_0x1bdfea['type'])return;const {data:_0xa1fd64}=_0x1bdfea;if(!_0xa1fd64||'imageStyle'!=_0xa1fd64['commandName'])return;const _0x3821fb=_0xa1fd64['commandParams'][0x0]['value'];return _0x336348('side'===_0x3821fb?c(_0x5445ff,'FORMAT_SIDE_IMAGE'):_0x2ebf70[_0x3821fb]||_0x3821fb);function _0x336348(_0x1fa2b3){return{'type':'format','content':c(_0x5445ff,'*Format:*\x20%0',_0x1fa2b3)};}});}}class ut extends _0x497417{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x332d23){super(_0x332d23),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x323dee=this['editor'],_0x431540=_0x323dee['commands']['get']('importWord'),_0x1afb06=_0x323dee['commands']['get']('trackChanges');_0x431540&&(_0x431540['on']('execute',(_0x1cd3d9,[,_0x122ab4])=>{this['_trackChangesValueDuringImport']=_0x1afb06['value'],_0x122ab4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x431540,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x431540,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1afb06['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x323dee['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x356061,_0x3e3039){const {suggestions:_0x583313}=_0x3e3039,_0x405e30=this['editor']['commands']['get']('trackChanges'),_0x33c755=_0x405e30['value'];this['_trackChangesValueDuringImport']!==_0x33c755&&(_0x405e30['execute'](),this['_trackChangesExecuted']=!0x0),_0x583313&&_0x583313['forEach'](({id:_0x3b345e,type:_0x14cc00,author:_0x18bef1,created_at:_0x1d3153})=>{const _0x12e05f={'id':_0x3b345e,'type':_0x14cc00,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x18bef1,'createdAt':_0x1d3153?new Date(_0x1d3153):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x12e05f);});}}class ft extends _0x497417{['afterInit'](){const _0x14f382=this['editor'],_0x4c2e06=_0x14f382['plugins']['get']('TrackChangesEditing');if(_0x14f382['plugins']['has']('IndentEditing')&&(_0x4c2e06['enableCommand']('indent'),_0x4c2e06['enableCommand']('outdent')),_0x14f382['plugins']['has']('IndentBlock')){for(const _0x109ccd of['indentBlock','outdentBlock'])_0x4c2e06['enableDefaultAttributesIntegration'](_0x109ccd);}const _0x119542=_0x14f382['locale'];_0x4c2e06['registerBlockAttribute']('blockIndent'),_0x4c2e06['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x119542,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d29af=this['editor'],_0x58335a=_0x4d29af['locale'],_0xd7995=_0x4d29af['plugins']['get']('TrackChangesEditing');_0xd7995['descriptionFactory']['registerDescriptionCallback'](_0x58f90f=>{if('formatBlock'!=_0x58f90f['type'])return;const {data:_0x937792}=_0x58f90f;if(!_0x937792)return;if('indentBlock'!=_0x937792['commandName']&&'outdentBlock'!=_0x937792['commandName'])return;const _0x250879=_0x58f90f['getItems']()[0x0],_0x26d207=_0xd7995['descriptionFactory']['getItemLabel'](_0x250879);return'indentBlock'==_0x937792['commandName']?{'type':'format','content':c(_0x58335a,'*Indent:*\x20%0',_0x26d207)}:'outdentBlock'==_0x937792['commandName']?{'type':'format','content':c(_0x58335a,'*Outdent:*\x20%0',_0x26d207)}:void 0x0;});}}class ht extends _0x497417{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x497417{['afterInit'](){const _0x5a2d9e=this['editor'];if(!_0x5a2d9e['plugins']['has']('LinkEditing'))return;const _0x3ea2b7=_0x5a2d9e['plugins']['get']('TrackChangesEditing'),_0x209bd2=_0x5a2d9e['commands']['get']('link');_0x3ea2b7['enableDefaultAttributesIntegration']('link'),_0x3ea2b7['enableDefaultAttributesIntegration']('unlink'),_0x3ea2b7['registerInlineAttribute']('linkHref');for(const _0x30f39f of _0x209bd2['manualDecorators'])_0x3ea2b7['registerInlineAttribute'](_0x30f39f['id']),_0x3ea2b7['descriptionFactory']['registerAttributeLabel'](_0x30f39f['id'],'link\x20('+_0x30f39f['label']['toLowerCase']()+')');_0x3ea2b7['descriptionFactory']['registerDescriptionCallback'](_0x1aef97=>{if('attribute'!=_0x1aef97['type'])return;const {data:_0x336f6b}=_0x1aef97;if(!_0x336f6b||'linkHref'!=_0x336f6b['key'])return;const _0x5ab8ea=_0x336f6b['newValue'],_0x115c84=_0x5a2d9e['locale'];return{'type':'format','content':null==_0x5ab8ea?c(_0x115c84,'*Remove\x20link*'):c(_0x115c84,'*Set\x20link:*\x20%0','\x22'+_0x5ab8ea+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cd2c4=this['editor'],_0x18267c=_0x4cd2c4['locale'];_0x4cd2c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29d2ba=>{if('formatInline'!=_0x29d2ba['type'])return;const {data:_0x418950}=_0x29d2ba;if(_0x418950){if('link'==_0x418950['commandName']){const _0x28b9ff=_0x418950['commandParams'][0x0];return{'type':'format','content':c(_0x18267c,'*Set\x20link:*\x20%0','\x22'+_0x28b9ff+'\x22')};}return'unlink'==_0x418950['commandName']?{'type':'format','content':c(_0x18267c,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x497417{['afterInit'](){const _0x28220a=this['editor'],_0x5dd332=_0x28220a['locale'];if(!_0x28220a['plugins']['has']('LegacyListEditing'))return;const _0x581fff=_0x28220a['plugins']['get']('TrackChangesEditing'),_0x39bdc2=_0x28220a['plugins']['has']('LegacyTodoListEditing');function _0x5f488e(_0x4db299){return()=>{const _0x14f49f=_0x28220a['model']['document']['selection'],_0x5d62b9=_0x28220a['commands']['get'](_0x4db299);if(_0x5d62b9['value'])return void _0x28220a['execute']('paragraph',{});const _0x164f22=_0x4db299['slice'](0x0,-0x4),_0x45f260=function(_0x230749,_0x482852,_0x23ddb7){let _0x2e3e2e=Array['from'](_0x230749)['filter'](_0x37d10a=>function(_0x14da46,_0xc74728){return _0xc74728['checkChild'](_0x14da46['parent'],'listItem')&&!_0xc74728['isObject'](_0x14da46);}(_0x37d10a,_0x23ddb7));_0x2e3e2e=_0x2e3e2e['filter'](_0x1bb902=>!_0x1bb902['is']('element','listItem')||_0x1bb902['getAttribute']('listType')!=_0x482852);const _0x3b98d5=new Set();for(const _0x55ea6a of _0x2e3e2e)_0x55ea6a['is']('element','listItem')?_0x3b98d5['add'](Le(_0x55ea6a)):_0x3b98d5['add'](_0x55ea6a);return Array['from'](_0x3b98d5);}(_0x14f49f['getSelectedBlocks'](),_0x164f22,_0x28220a['model']['schema']);_0x28220a['model']['change'](()=>{for(const _0x3c5edb of _0x45f260)_0x581fff['markBlockFormat'](_0x3c5edb,{'commandName':_0x4db299,'commandParams':[{'forceValue':!_0x5d62b9['value']}],'formatGroupId':'blockName'},Ee(_0x3c5edb));});};}function _0x5337a7(_0x109d26){return()=>{const _0x1a710f=function(_0x417939){let _0x1f48ed=Array['from'](_0x417939);const _0x461f31=_0x1f48ed['findIndex'](_0x1351d=>'listItem'!=_0x1351d['name']);return _0x461f31>-0x1&&(_0x1f48ed=_0x1f48ed['slice'](0x0,_0x461f31)),_0x1f48ed;}(_0x28220a['model']['document']['selection']['getSelectedBlocks']()),_0x41b469=_0x28220a['model']['createRange'](_0x28220a['model']['createPositionAt'](_0x1a710f[0x0],'before'),_0x28220a['model']['createPositionAt'](_0x1a710f[_0x1a710f['length']-0x1],'end'));_0x28220a['model']['change'](()=>{_0x581fff['markBlockFormat'](_0x41b469,{'commandName':_0x109d26,'commandParams':[],'formatGroupId':'listIndent'},function(_0x331514){const _0xe20851=new Set();for(const _0x521f09 of _0x331514){let _0x4d9c03=_0x521f09['nextSibling'];for(;_0x4d9c03&&_0x4d9c03['getAttribute']('listIndent')>_0x521f09['getAttribute']('listIndent');)_0xe20851['add'](_0x4d9c03),_0x4d9c03=_0x4d9c03['nextSibling'];}return Array['from'](_0xe20851);}(_0x1a710f));});};}_0x581fff['enableCommand']('numberedList',_0x5f488e('numberedList')),_0x581fff['enableCommand']('bulletedList',_0x5f488e('bulletedList')),_0x39bdc2&&_0x581fff['enableCommand']('todoList',_0x5f488e('todoList')),_0x581fff['enableCommand']('indentList',_0x5337a7('indentList')),_0x581fff['enableCommand']('outdentList',_0x5337a7('outdentList')),_0x39bdc2&&_0x581fff['enableCommand']('checkTodoList',()=>{const _0x2a96cb=_0x28220a['commands']['get']('checkTodoList'),_0x5c8fc2=Array['from'](_0x2a96cb['_selectedElements']);_0x5c8fc2['filter'](_0x2a3a0a=>_0x2a3a0a['getAttribute']('todoListChecked')!=_0x2a96cb['value']),_0x28220a['model']['change'](()=>{for(const _0x467c5a of _0x5c8fc2)_0x581fff['markBlockFormat'](_0x467c5a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2a96cb['value']}]});});}),_0x581fff['descriptionFactory']['registerElementLabel']('listItem',_0x10c444=>c(_0x5dd332,'ELEMENT_LIST_ITEM',_0x10c444)),_0x581fff['descriptionFactory']['registerDescriptionCallback'](_0x4608cf=>{if('formatBlock'!=_0x4608cf['type']&&'formatInline'!=_0x4608cf['type'])return;const {data:_0x2fe2ee}=_0x4608cf;if(_0x2fe2ee){if('numberedList'==_0x2fe2ee['commandName']||'bulletedList'==_0x2fe2ee['commandName']||'todoList'==_0x2fe2ee['commandName'])switch(_0x2fe2ee['commandName']['replace']('List','')){case'bulleted':return _0x762c6f(c(_0x5dd332,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x762c6f(c(_0x5dd332,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x762c6f(c(_0x5dd332,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2fe2ee['commandName'])return{'type':'format','content':c(_0x5dd332,'*Indent:*\x20%0',c(_0x5dd332,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2fe2ee['commandName'])return{'type':'format','content':c(_0x5dd332,'*Outdent:*\x20%0',c(_0x5dd332,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2fe2ee['commandName'])return _0x2fe2ee['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5dd332,'*Check\x20item*')}:{'type':'format','content':c(_0x5dd332,'*Uncheck\x20item*')};}function _0x762c6f(_0x330474){return{'type':'format','content':c(_0x5dd332,'*Change\x20to:*\x20%0',_0x330474)};}});}}function Le(_0x2e2c86){const _0x524576=_0x2e2c86['getAttribute']('listIndent');if(0x0==_0x524576)return _0x2e2c86;let _0x143f32=_0x2e2c86;for(;_0x2e2c86['previousSibling']&&_0x2e2c86['previousSibling']['is']('element','listItem');){const _0x17ebd9=_0x2e2c86['previousSibling']['getAttribute']('listIndent');if(_0x17ebd9==_0x524576)_0x143f32=_0x2e2c86['previousSibling'];else{if(_0x17ebd9<_0x524576)break;}_0x2e2c86=_0x2e2c86['previousSibling'];}return _0x143f32;}function Ee(_0x4a5ffb){const _0x324150=[];if(_0x4a5ffb['is']('element','listItem')&&_0x4a5ffb['getAttribute']('listIndent')>0x0){let _0x671fb0=_0x4a5ffb['nextSibling'];for(;_0x671fb0&&'listItem'==_0x671fb0['name']&&_0x671fb0['getAttribute']('listIndent')==_0x4a5ffb['getAttribute']('listIndent');)_0x324150['push'](_0x671fb0),_0x671fb0=_0x671fb0['nextSibling'];}return _0x324150;}class Q extends _0x497417{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x56b575=this['editor']['config']['get']('list.properties'),_0x14960f=this['editor']['plugins']['get']('TrackChangesEditing');_0x56b575['styles']&&_0x14960f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x56b575['reversed']&&_0x14960f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x56b575['startIndex']&&_0x14960f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x14960f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x91457e,_0x3b226c={}){const _0x462fcf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bec99=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x462fcf['markMultiRangeBlockFormat'](_0x2bec99,{'commandName':'listStyle','commandParams':[{'type':_0x3b226c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x43cb39,_0x24795e={}){const _0xa53abf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8f2e8=this['_getSuggestionBlocks'](_0x1fb64c=>_0x1fb64c['is']('element','listItem')&&'numbered'===_0x1fb64c['getAttribute']('listType'));if(_0x8f2e8['length']<0x1)return;const _0x226a74=_0x8f2e8['map'](_0x22d1ec=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x22d1ec,'before'),this['editor']['model']['createPositionAt'](_0x22d1ec,0x0)));this['editor']['model']['change'](()=>{_0xa53abf['markMultiRangeBlockFormat'](_0x226a74,{'commandName':'listReversed','commandParams':[{'reversed':_0x24795e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x28da4c,_0x25708c={}){const _0x334166=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41641e=this['_getSuggestionBlocks'](_0x234219=>_0x234219['is']('element','listItem')&&'numbered'===_0x234219['getAttribute']('listType'));if(_0x41641e['length']<0x1)return;const _0x2eb365=_0x41641e['map'](_0x3bb46a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3bb46a,'before'),this['editor']['model']['createPositionAt'](_0x3bb46a,0x0)));this['editor']['model']['change'](()=>{_0x334166['markMultiRangeBlockFormat'](_0x2eb365,{'commandName':'listStart','commandParams':[{'startIndex':_0x25708c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xd2140b){if('formatBlock'!=_0xd2140b['type']&&'formatInline'!=_0xd2140b['type'])return;const _0x2716be=this['editor']['locale'],{data:_0x295872}=_0xd2140b;if(!_0x295872)return;let _0x13c0df,_0x52fb77;switch(_0x295872['commandName']){case'listStyle':_0x13c0df='*Change\x20to:*\x20%0',_0x52fb77={'type':'format','content':c(_0x2716be,_0x13c0df,c(_0x2716be,this['_getTranslationKeyForListStyle'](_0x295872['commandParams'][0x0]['type'])))};break;case'listReversed':_0x13c0df=_0x295872['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x52fb77={'type':'format','content':c(_0x2716be,_0x13c0df)};break;case'listStart':_0x13c0df='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x52fb77={'type':'format','content':c(_0x2716be,_0x13c0df,_0x295872['commandParams'][0x0]['startIndex'])};}return _0x52fb77;}['_getSuggestionBlocksForListStyle'](){const _0x1c2c20=this['editor']['plugins']['get']('LegacyListUtils');let _0x3e4d90=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3e4d90[0x0]?.['is']('element','listItem')&&_0x3e4d90['unshift'](..._0x1c2c20['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3e4d90[_0x3e4d90['length']-0x1]?.['is']('element','listItem')&&_0x3e4d90['push'](..._0x1c2c20['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3e4d90=[...new Set(_0x3e4d90)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3e4d90=_0x3e4d90['filter'](_0x5d8e6d=>_0x5d8e6d['is']('element','listItem'))),_0x3e4d90;}['_getSuggestionBlocks'](_0x17cef4){const _0x5645a4=this['editor']['plugins']['get']('LegacyListUtils');let _0x304e40=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x17cef4)['map'](_0x148792=>{const _0x373563=this['editor']['model']['createPositionAt'](_0x148792,0x0);return[..._0x5645a4['getSiblingNodes'](_0x373563,'backward'),..._0x5645a4['getSiblingNodes'](_0x373563,'forward')];})['flat']();return _0x304e40=[...new Set(_0x304e40)],_0x304e40;}['_getTranslationKeyForListStyle'](_0x2e5625){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2e5625)||'default')['toUpperCase']()+'_LIST_'+_0x2e5625['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x497417{['afterInit'](){const _0x540935=this['editor'];if(!_0x540935['plugins']['has']('MediaEmbedEditing'))return;const _0x532102=_0x540935['plugins']['get']('TrackChangesEditing'),_0x18649e=_0x540935['locale'];_0x532102['enableCommand']('mediaEmbed'),_0x532102['descriptionFactory']['registerElementLabel']('media',_0x3c563d=>c(_0x18649e,'ELEMENT_MEDIA',_0x3c563d)),_0x540935['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4bca41,{writer:_0x1b84d3,options:_0x43d1b9})=>{if(_0x43d1b9['showSuggestionHighlights'])return _0x1b84d3['createEmptyElement']('div');},'converterPriority':'high'}),_0x540935['data']['downcastDispatcher']['on']('attribute:url:media',(_0x272a10,_0x36f2dd,_0xf9ec3a)=>{_0xf9ec3a['options']['showSuggestionHighlights']&&_0x272a10['stop']();},{'priority':'high'});}}class pt extends _0x497417{['afterInit'](){const _0x93ea4c=this['editor'];_0x93ea4c['plugins']['has']('MentionEditing')&&_0x93ea4c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x497417{['afterInit'](){const _0x39b4a7=this['editor'];if(!_0x39b4a7['plugins']['has']('MergeFieldsEditing'))return;const _0xf7417d=_0x39b4a7['plugins']['get']('TrackChangesEditing'),_0x1a1bf9=_0x39b4a7['locale'];_0xf7417d['enableCommand']('insertMergeField'),_0xf7417d['enableCommand']('insertMergeFieldBlock'),_0xf7417d['enableCommand']('insertMergeFieldImage'),_0xf7417d['descriptionFactory']['registerElementLabel']('mergeField',_0x44ea0e=>c(_0x1a1bf9,'ELEMENT_MERGE_FIELD',_0x44ea0e)),_0xf7417d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4ef31b=>c(_0x1a1bf9,'ELEMENT_MERGE_FIELD',_0x4ef31b)),_0xf7417d['descriptionFactory']['registerDescriptionCallback'](_0x2202ab=>{if('insertion'!=_0x2202ab['type']&&'deletion'!=_0x2202ab['type'])return;const _0x6a03c2=_0x2202ab['getContainedElement']();if(null==_0x6a03c2)return;const _0x15b306=_0x39b4a7['plugins']['get']('MergeFieldsEditing');let _0x510c28;switch(_0x15b306['getMergeFieldType'](_0x6a03c2)){case null:return;case'image':{const _0xe8cbbc=_0x15b306['unwrapAffixes'](_0x6a03c2['getAttribute']('src'));_0x510c28=_0x15b306['getLabel'](_0xe8cbbc)||_0xe8cbbc;break;}default:{const _0x54b6b6=_0x6a03c2['getAttribute']('id');_0x510c28=_0x15b306['getLabel'](_0x54b6b6)||_0x54b6b6;break;}}return'insertion'==_0x2202ab['type']?{'type':'insertion','content':c(_0x1a1bf9,'*Insert:*\x20%0','\x22'+_0x510c28+'\x22\x20'+c(_0x1a1bf9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x1a1bf9,'*Remove:*\x20%0','\x22'+_0x510c28+'\x22\x20'+c(_0x1a1bf9,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x497417{['afterInit'](){const _0x292a3d=this['editor'],_0x316493=_0x292a3d['plugins']['get']('TrackChangesEditing');_0x292a3d['plugins']['has']('MultiLevelList')&&(_0x316493['enableDefaultAttributesIntegration']('multiLevelList'),_0x316493['registerBlockAttribute']('listMarkerStyle'),_0x316493['descriptionFactory']['registerDescriptionCallback'](_0x17b035=>this['handleDescriptions'](_0x17b035)));}['handleDescriptions'](_0x55d774){const _0xd73d96=this['editor']['locale'],{data:_0x8d7b28}=_0x55d774,_0x24c426={'type':'format','content':''};if(_0x8d7b28&&'listMarkerStyle'==_0x8d7b28['key']){if(!_0x8d7b28['oldValue'])return{'type':'format','content':c(_0xd73d96,'*Set\x20format:*\x20%0',c(_0xd73d96,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x8d7b28['newValue']+')'};if(!_0x8d7b28['newValue']){let _0x2f27b2=_0x55d774['head'];for(;_0x2f27b2;){if(_0x2f27b2['data']&&'listType'==_0x2f27b2['data']['key']&&_0x2f27b2['data']['newValue'])return _0x24c426;_0x2f27b2=_0x2f27b2['next'];}return{'type':'format','content':c(_0xd73d96,'*Remove\x20format:*\x20%0',c(_0xd73d96,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x8d7b28['oldValue']+')'};}}}}class bt extends _0x497417{['afterInit'](){const _0x1699d4=this['editor'];if(!_0x1699d4['plugins']['has']('PageBreakEditing'))return;_0x1699d4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1417d3=_0x1699d4['plugins']['get']('TrackChangesEditing'),_0x9411a6=_0x1699d4['locale'];_0x1417d3['descriptionFactory']['registerElementLabel']('pageBreak',_0x1355c8=>c(_0x9411a6,'ELEMENT_PAGE_BREAK',_0x1355c8));}}class yt extends _0x497417{['afterInit'](){const _0x35508e=this['editor'];if(!_0x35508e['plugins']['has']('Paragraph'))return;const _0x438045=_0x35508e['locale'],_0x3405c2=_0x35508e['plugins']['get']('TrackChangesEditing');_0x3405c2['descriptionFactory']['registerElementLabel']('paragraph',_0x1bd9eb=>c(_0x438045,'ELEMENT_PARAGRAPH',_0x1bd9eb)),_0x3405c2['enableDefaultAttributesIntegration']('paragraph'),_0x3405c2['enableCommand']('insertParagraph'),_0x35508e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x35508e),{'priority':'highest'}),_0x35508e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xb5426b,_0x5070db,_0x197155)=>{_0x197155['options']['showSuggestionHighlights']&&nr(_0x35508e,{'showActiveMarker':!0x1})(_0xb5426b,_0x5070db,_0x197155);},{'priority':'highest'});const _0x488b45=_0x3405c2['descriptionFactory'];_0x488b45['registerDescriptionCallback'](_0x3f3152=>{if('insertion'!==_0x3f3152['type'])return;const {start:_0x2994df,end:_0x3ce17d}=_0x3f3152['getFirstRange']();if(!_0x2994df['isTouching'](_0x3ce17d)||!_0x2994df['nodeAfter'])return;const _0x4787e7=_0x35508e['model']['schema'],_0x500a2e=_0x2994df['nodeAfter'];return _0x4787e7['isBlock'](_0x500a2e)&&!_0x4787e7['isLimit'](_0x500a2e)&&_0x4787e7['checkChild'](_0x500a2e,'$text')?{'type':'insertion','content':c(_0x438045,'*Insert:*\x20%0',_0x488b45['getItemLabel'](_0x500a2e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa50824=this['editor'],_0x3026f2=_0xa50824['locale'];_0xa50824['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37ac25=>{if('formatBlock'!=_0x37ac25['type'])return;const {data:_0x579744}=_0x37ac25;return _0x579744&&'paragraph'==_0x579744['commandName']?{'type':'format','content':c(_0x3026f2,'*Change\x20to:*\x20%0',c(_0x3026f2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3b22ed,{showActiveMarker:_0x40e101=!0x0}={}){return(_0x29f70b,_0x335fda,_0x5b3c99)=>{const _0x539128=_0x3b22ed['plugins']['get']('TrackChangesEditing'),_0x1ecac0=_0x335fda['markerRange']['start'],_0x575a41=_0x335fda['markerRange']['end'],_0x2e57e9=_0x3b22ed['model']['schema'];if(!_0x1ecac0['isTouching'](_0x575a41)||!_0x1ecac0['nodeAfter'])return;const _0xeb324d=_0x1ecac0['nodeAfter'];if(_0x2e57e9['isBlock'](_0xeb324d)&&!_0x2e57e9['isLimit'](_0xeb324d)&&_0x2e57e9['checkChild'](_0xeb324d,'$text')){if(!_0x5b3c99['consumable']['consume'](_0x335fda['markerRange'],_0x29f70b['name']))return;const {authorId:_0x1183df}=_0x539128['_splitMarkerName'](_0x335fda['markerName']),_0x3417bd=_0x5b3c99['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1183df}),_0x18abec=_0x5b3c99['mapper']['toViewPosition'](_0x575a41);_0x40e101&&_0x539128['activeMarkers']['includes'](_0x335fda['markerName'])&&_0x5b3c99['writer']['addClass']('ck-suggestion-marker--active',_0x3417bd),_0x5b3c99['writer']['insert'](_0x18abec,_0x3417bd),_0x5b3c99['mapper']['bindElementToMarker'](_0x3417bd,_0x335fda['markerName']);}};}class jt extends _0x497417{['afterInit'](){const _0x95d584=this['editor'];_0x95d584['commands']['get']('replaceSource')&&_0x95d584['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x497417{['afterInit'](){const _0xb84cd9=this['editor'];if(!_0xb84cd9['plugins']['has']('RemoveFormatEditing'))return;_0xb84cd9['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f432e=this['editor'];_0x4f432e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x195e26=>{if('formatBlock'!=_0x195e26['type']&&'formatInline'!=_0x195e26['type'])return;const {data:_0x55d8d2}=_0x195e26;return _0x55d8d2&&'removeFormat'==_0x55d8d2['commandName']?{'type':'format','content':c(_0x4f432e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x497417{['afterInit'](){const _0x1c71f4=this['editor'];if(!_0x1c71f4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x449c42=_0x1c71f4['plugins']['get']('TrackChangesEditing');_0x449c42['enableCommand']('goToPreviousRestrictedEditingException'),_0x449c42['enableCommand']('goToNextRestrictedEditingException');const _0x5be652=_0x1c71f4['plugins']['get']('RestrictedEditingModeEditing');_0x5be652['enableCommand']('trackChanges'),_0x5be652['enableCommand']('acceptSuggestion'),_0x5be652['enableCommand']('discardSuggestion'),_0x5be652['enableCommand']('acceptAllSuggestions'),_0x5be652['enableCommand']('discardAllSuggestions'),_0x5be652['enableCommand']('acceptSelectedSuggestions'),_0x5be652['enableCommand']('discardSelectedSuggestions');}}class It extends _0x497417{static get['requires'](){return[_0x386113];}['init'](){const _0x302e52=this['editor'],_0x24dbd8=_0x302e52['plugins']['get']('TrackChangesEditing');_0x24dbd8['enableCommand']('shiftEnter'),_0x302e52['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x302e52),{'priority':'high'}),_0x302e52['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x302e52),{'priority':'high'}),_0x302e52['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x37ad9f,_0x41bfbd,_0x3d943a)=>{_0x3d943a['options']['showSuggestionHighlights']&&je(_0x302e52,{'showActiveMarker':!0x1})(_0x37ad9f,_0x41bfbd,_0x3d943a);}),_0x24dbd8['descriptionFactory']['registerElementLabel']('softBreak',_0x5bd8fe=>c(_0x302e52['locale'],'ELEMENT_LINE_BREAK',_0x5bd8fe));}}function je(_0x53250e,{showActiveMarker:_0xecbf9a=!0x0}={}){return(_0xdf344,_0x3e9b48,_0x2e5416)=>{const _0x1de849=_0x53250e['plugins']['get']('TrackChangesEditing');if(!_0x2e5416['consumable']['test'](_0x3e9b48['markerRange'],_0xdf344['name']))return;const _0x1b20b1=_0x53250e['model'];for(const _0x47e400 of _0x3e9b48['markerRange']['getItems']()){if(!_0x47e400['is']('element','softBreak'))continue;const _0x192731='deletion'==_0x3e9b48['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x30edfd}=_0x1de849['_splitMarkerName'](_0x3e9b48['markerName']),_0x100cb2=_0x2e5416['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x192731,'data-author-id':_0x30edfd}),_0x475b22=_0x2e5416['mapper']['toViewPosition'](_0x1b20b1['createPositionBefore'](_0x47e400));_0xecbf9a&&_0x1de849['activeMarkers']['includes'](_0x3e9b48['markerName'])&&_0x2e5416['writer']['addClass']('ck-suggestion-marker--active',_0x100cb2),_0x2e5416['writer']['insert'](_0x475b22,_0x100cb2),_0x2e5416['mapper']['bindElementToMarker'](_0x100cb2,_0x3e9b48['markerName']);}};}class _t extends _0x497417{['afterInit'](){const _0x15aef6=this['editor'],_0x5bb3af=_0x15aef6['model'],_0x3c2bd0=_0x15aef6['locale'];if(!_0x15aef6['plugins']['has']('StandardEditingModeEditing'))return;const _0x424318=_0x15aef6['plugins']['get']('TrackChangesEditing'),_0x520021='restrictedEditingException',_0x348141=_0x15aef6['commands']['get'](_0x520021);_0x424318['enableCommand'](_0x520021,(_0x27c7d5,_0x2708e4={})=>{const _0x449144=_0x5bb3af['document']['selection'];if(_0x449144['isCollapsed'])return void _0x27c7d5(_0x2708e4);const _0x303c2a=void 0x0!==_0x2708e4['forceValue']?_0x2708e4['forceValue']:!_0x348141['value'];_0x5bb3af['change'](()=>{const _0x4bfdc8=Array['from'](_0x449144['getRanges']());for(const _0x56b606 of _0x4bfdc8){const _0x2ee0ac=_0x303c2a?[_0x56b606]:io(_0x520021,_0x56b606,_0x5bb3af);for(const _0x33f34d of _0x2ee0ac)_0x424318['markInlineFormat'](_0x33f34d,{'commandName':_0x520021,'commandParams':[{'forceValue':_0x303c2a}]});}});}),_0x424318['descriptionFactory']['registerDescriptionCallback'](_0x22ca31=>{if('formatBlock'!=_0x22ca31['type']&&'formatInline'!=_0x22ca31['type'])return;const {data:_0x499822}=_0x22ca31;return _0x499822&&_0x499822['commandName']==_0x520021?_0x499822['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3c2bd0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x3c2bd0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x497417{['afterInit'](){const _0x535c91=this['editor'];if(!_0x535c91['plugins']['has']('Style')||!_0x535c91['plugins']['has']('DataSchema'))return;const _0x48b89d=_0x535c91['plugins']['get']('TrackChangesEditing'),_0x5e8ee5=_0x535c91['locale'],_0x393866=_0x535c91['config']['get']('style')||{},_0x25ab02=_0x535c91['plugins']['get']('GeneralHtmlSupport'),_0x492e4a=_0x535c91['plugins']['get']('StyleUtils')['normalizeConfig'](_0x535c91['plugins']['get']('DataSchema'),_0x393866['definitions']);_0x48b89d['enableDefaultAttributesIntegration']('style');const _0x27012a=new Set();for(const _0x27b557 of _0x492e4a['block']){const _0x59bf34=_0x25ab02['getGhsAttributeNameForElement'](_0x27b557['element']);_0x27012a['add'](_0x59bf34);}const _0x564812=new Set();for(const _0x86d43e of _0x492e4a['inline']){const _0xf914b6=_0x25ab02['getGhsAttributeNameForElement'](_0x86d43e['element']);_0x564812['add'](_0xf914b6);for(const _0x188521 of _0x86d43e['ghsAttributes'])_0x564812['add'](_0x188521);}for(const _0x1f7557 of _0x27012a)_0x48b89d['registerBlockAttribute'](_0x1f7557),_0x48b89d['descriptionFactory']['registerAttributeLabel'](_0x1f7557,c(_0x5e8ee5,'FORMAT_STYLE'));for(const _0x2425db of _0x564812)_0x48b89d['registerInlineAttribute'](_0x2425db),_0x48b89d['descriptionFactory']['registerAttributeLabel'](_0x2425db,c(_0x5e8ee5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c1b73=this['editor'],_0x5bc995=_0x1c1b73['locale'];_0x1c1b73['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5768dc=>{if('formatBlock'!=_0x5768dc['type']&&'formatInline'!=_0x5768dc['type'])return;const {data:_0x402b2c}=_0x5768dc;return _0x402b2c&&'style'===_0x402b2c['commandName']?_0x402b2c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5bc995,'*Set\x20format:*\x20%0',_0x402b2c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5bc995,'*Remove\x20format:*\x20%0',_0x402b2c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x497417{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x295015){super(_0x295015),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x10d90e=this['editor'],_0x4b6214=_0x10d90e['model']['document']['selection'];if(!_0x10d90e['plugins']['has']('TableEditing'))return;const _0x2fa482=_0x10d90e['locale'],_0x22b2c7=_0x10d90e['plugins']['get']('TrackChangesEditing'),_0x17c520=_0x10d90e['plugins']['get']('TableUtils');_0x22b2c7['descriptionFactory']['registerElementLabel']('table',_0x47854d=>c(_0x2fa482,'ELEMENT_TABLE',_0x47854d)),this['_setupColumnsRowsFixing'](),_0x22b2c7['enableCommand']('insertTable'),_0x22b2c7['enableCommand']('selectTableRow'),_0x22b2c7['enableCommand']('selectTableColumn');for(const _0x17ecba of['insertTableRowAbove','insertTableRowBelow']){const _0x8997a7=_0x10d90e['commands']['get'](_0x17ecba);_0x22b2c7['enableCommand'](_0x17ecba,_0x397074=>{_0x10d90e['model']['change'](_0x37d1af=>{_0x397074();const _0x133378='above'===_0x8997a7['order'],_0x583f8b=_0x17c520['getSelectionAffectedTableCells'](_0x4b6214),_0x6a5293=_0x17c520['getRowIndexes'](_0x583f8b),_0x4d1829=_0x133378?_0x6a5293['first']-0x1:_0x6a5293['last']+0x1,_0x350cd2=_0x583f8b[0x0]['findAncestor']('table'),_0xd2c860=_0x17c520['createTableWalker'](_0x350cd2,{'startRow':_0x4d1829,'endRow':_0x4d1829}),_0x7215bf=Array['from'](_0xd2c860)['map'](_0x44b8fc=>_0x37d1af['createRangeOn'](_0x44b8fc['cell']));_0x22b2c7['markMultiRangeInsertion'](_0x7215bf,'tableRow');});});}for(const _0x4623a3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x267455=_0x10d90e['commands']['get'](_0x4623a3);_0x22b2c7['enableCommand'](_0x4623a3,_0x13c627=>{_0x10d90e['model']['change'](_0x3e7534=>{_0x13c627();const _0x413d6e='left'===_0x267455['order'],_0x482d00=_0x17c520['getSelectionAffectedTableCells'](_0x4b6214),_0x42128b=_0x17c520['getColumnIndexes'](_0x482d00),_0x11e841=_0x413d6e?_0x42128b['first']-0x1:_0x42128b['last']+0x1,_0x5b54cc=_0x482d00[0x0]['findAncestor']('table'),_0x3fd67d=_0x17c520['createTableWalker'](_0x5b54cc,{'startRow':0x0,'column':_0x11e841,'includeAllSlots':!0x1}),_0xf392ab=Array['from'](_0x3fd67d)['map'](_0xd608d1=>_0x3e7534['createRangeOn'](_0xd608d1['cell']));_0x22b2c7['markMultiRangeInsertion'](_0xf392ab,'tableColumn');});});}for(const _0x1f2a11 of['removeTableRow','removeTableColumn']){const _0x92f051=_0x1f2a11['substr'](0xb),_0x48c6ec=_0x92f051['toLowerCase'](),_0x11f8fb=_0x48c6ec['substr'](0x0,0x3)+'span',_0x19d7de='table'+_0x92f051,_0xea9475='min'+_0x92f051,_0x4d2702='max'+_0x92f051;_0x22b2c7['enableCommand'](_0x1f2a11,()=>{_0x10d90e['model']['change'](_0x244d04=>{const _0x3f202e=_0x17c520['getSelectionAffectedTableCells'](_0x4b6214),_0x3ab090=_0x3f202e[0x0]['findAncestor']('table');let _0x1565f1;if('removeTableRow'==_0x1f2a11){const _0x1bd924=_0x17c520['getRowIndexes'](_0x3f202e);_0x1565f1={'startRow':_0x1bd924['first'],'endRow':_0x1bd924['last'],'includeAllSlots':!0x0};}else{const _0x36ea14=_0x17c520['getColumnIndexes'](_0x3f202e);_0x1565f1={'startColumn':_0x36ea14['first'],'endColumn':_0x36ea14['last'],'includeAllSlots':!0x0};}const _0x378ec8=_0x17c520['createTableWalker'](_0x3ab090,_0x1565f1),_0x2bac34=Array['from'](_0x378ec8)['map'](({cell:_0x26a643})=>_0x26a643),_0x5c0d52=Ne(_0x2bac34['filter'](_0x181113=>_0x181113['hasAttribute'](_0x11f8fb))),_0x5c71d8=Ne(_0x2bac34['filter'](_0x5518c3=>!_0x5518c3['hasAttribute'](_0x11f8fb)))['map'](_0x2d2e9b=>_0x244d04['createRangeOn'](_0x2d2e9b)),_0xe9f557=_0x22b2c7['markMultiRangeDeletion'](_0x5c71d8,_0x19d7de);if(_0xe9f557&&('tableRow'==_0xe9f557['subType']||'tableColumn'==_0xe9f557['subType'])){const _0xcead87=this['_getSuggestionCoords'](_0xe9f557);for(const _0x4fcfb8 of _0x5c0d52){const _0x557547=_0x244d04['createRangeOn'](_0x4fcfb8),_0x21292b=_0x17c520['getCellLocation'](_0x4fcfb8),_0x3e10bc=_0x4fcfb8['getAttribute'](_0x11f8fb)-0x1,_0x58501c=_0xcead87[_0xea9475],_0x20d28b=_0xcead87[_0x4d2702];_0x58501c<=_0x21292b[_0x48c6ec]&&_0x21292b[_0x48c6ec]+_0x3e10bc<=_0x20d28b&&_0xe9f557['addRange'](_0x557547);}}});});}function _0x1ace20(_0x37fa2a){const _0x2831ac=Array['from'](_0x4b6214['getRanges']())['map'](_0x4a07c5=>_0x4a3ae4['fromRange'](_0x4a07c5));_0x10d90e['model']['change'](_0x140090=>{const _0x116f37=_0x140090['batch'];_0x37fa2a=_0x37fa2a['filter'](_0x1a556c=>'$graveyard'!=_0x1a556c['root']['rootName']),_0x140090['setSelection'](_0x37fa2a),_0x10d90e['commands']['get']('removeTableRow')['refresh'](),_0x10d90e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x10d90e['model']['enqueueChange'](()=>{_0x10d90e['model']['enqueueChange'](_0x116f37,_0x551208=>{const _0x696c0b=_0x2831ac['filter'](_0x1ff20f=>'$graveyard'!=_0x1ff20f['root']['rootName']);_0x696c0b['length']>0x0&&_0x551208['setSelection'](_0x696c0b);for(const _0x17fe44 of _0x2831ac)_0x17fe44['detach']();});});});}function _0x45518a(_0x2ff8e5){_0x10d90e['model']['change'](_0x3c8a72=>{const _0x386f95=Array['from'](_0x4b6214['getRanges']())['map'](_0x1658d1=>_0x4a3ae4['fromRange'](_0x1658d1)),_0x2c7798=[];for(const _0x5eda56 of _0x2ff8e5)for(const _0x5b211a of _0x5eda56['getItems']({'shallow':!0x0}))_0x2c7798['push'](_0x5b211a);for(const _0x58cbf7 of _0x2c7798)'$graveyard'!=_0x58cbf7['root']['rootName']&&(_0x3c8a72['setSelection'](_0x3c8a72['createPositionAt'](_0x58cbf7,0x0)),_0x10d90e['commands']['get']('removeTableColumn')['refresh'](),_0x10d90e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x49d834=_0x386f95['filter'](_0x4e4dcd=>'$graveyard'!=_0x4e4dcd['root']['rootName']);_0x49d834['length']>0x0&&_0x3c8a72['setSelection'](_0x49d834);for(const _0x1e9bae of _0x386f95)_0x1e9bae['detach']();});}function _0x58c618(_0x5361f0,_0x5bc632){return _0x5bc632['every'](_0x402bd0=>_0x5361f0['some'](_0x8f89e8=>_0x8f89e8['end']['isEqual'](_0x402bd0['start'])||_0x402bd0['end']['isEqual'](_0x8f89e8['start'])));}function _0x2d01c8(_0x2276af,_0x30c4b0){return!_0x2276af['some'](_0x496776=>_0x30c4b0['some'](_0x3edd22=>_0x496776['isIntersecting'](_0x3edd22)))&&_0x2276af['some'](_0x13fcd2=>_0x30c4b0['some'](_0x5351bf=>_0x13fcd2['end']['isTouching'](_0x5351bf['start'])));}_0x10d90e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4b3045,_0x3f1c36,_0xb6f349)=>{if(!_0xb6f349['options']['showSuggestionHighlights'])return;const _0x13e86c=_0x3f1c36['item'];if(!_0x13e86c)return;const _0x2b3497=_0xb6f349['mapper']['toViewElement'](_0x13e86c);function _0x1c6b63(_0x467728){return Array['isArray'](_0x467728)?_0x467728:[_0x467728];}_0x2b3497&&'tableCell'===_0x13e86c['name']&&_0x4cb2df(_0x2b3497,_0xb6f349['writer'],(_0x3d1707,_0x37e254,_0x1d7893)=>_0x1d7893['addClass'](_0x1c6b63(_0x37e254['classes']),_0x3d1707),(_0x3680fd,_0xf465ea,_0x296559)=>_0x296559['removeClass'](_0x1c6b63(_0xf465ea['classes']),_0x3680fd));},{'priority':'highest'}),_0x22b2c7['descriptionFactory']['registerDescriptionCallback'](_0x423e2a=>{if('insertion'!=_0x423e2a['type']&&'deletion'!=_0x423e2a['type'])return;const _0x46b62a=_0x423e2a['getContainedElement']();if(null!=_0x46b62a&&_0x46b62a['is']('element','table')){if('insertion'==_0x423e2a['type']){const _0x3987e6=_0x423e2a['getItems']()['filter'](_0xae0fd8=>_0xae0fd8['is']('$textProxy'))['map'](_0x331f29=>_0x331f29['data']);if(_0x3987e6['length'])return{'type':'insertion','content':c(_0x2fa482,'*Insert:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3987e6['join']('\x20')+'\x22'))};}if('deletion'==_0x423e2a['type']){const _0x26c813=_0x423e2a['getItems']()['filter'](_0x3cb6b6=>_0x3cb6b6['is']('$textProxy'))['map'](_0x21263d=>_0x21263d['data']);if(_0x26c813['length'])return{'type':'deletion','content':c(_0x2fa482,'*Remove:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x26c813['join']('\x20')+'\x22'))};}}}),_0x22b2c7['descriptionFactory']['registerDescriptionCallback'](_0x5309f6=>{if('tableRow'==_0x5309f6['subType']){const _0x3d5c4a=_0x5309f6['getItems']()['filter'](_0x30571f=>_0x30571f['is']('$textProxy'))['map'](_0x42db3f=>_0x42db3f['data']),_0x304366=this['_getSuggestionCoords'](_0x5309f6),_0x542d19=_0x304366['maxRow']-_0x304366['minRow']+0x1;if('insertion'==_0x5309f6['type'])return _0x3d5c4a['length']?{'type':'insertion','content':c(_0x2fa482,'*Insert:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x542d19,'\x22'+_0x3d5c4a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2fa482,'*Insert:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_ROW',_0x542d19))};if('deletion'==_0x5309f6['type'])return _0x3d5c4a['length']?{'type':'deletion','content':c(_0x2fa482,'*Remove:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x542d19,'\x22'+_0x3d5c4a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2fa482,'*Remove:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_ROW',_0x542d19))};}if('tableColumn'==_0x5309f6['subType']){const _0x3f25c1=_0x5309f6['getItems']()['filter'](_0x44a9a4=>_0x44a9a4['is']('$textProxy'))['map'](_0x22a850=>_0x22a850['data']),_0x4a2613=this['_getSuggestionCoords'](_0x5309f6),_0x399caa=_0x4a2613['maxColumn']-_0x4a2613['minColumn']+0x1;if('insertion'==_0x5309f6['type'])return _0x3f25c1['length']?{'type':'insertion','content':c(_0x2fa482,'*Insert:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x399caa,'\x22'+_0x3f25c1['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2fa482,'*Insert:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_COLUMN',_0x399caa))};if('deletion'==_0x5309f6['type'])return _0x3f25c1['length']?{'type':'deletion','content':c(_0x2fa482,'*Remove:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x399caa,'\x22'+_0x3f25c1['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2fa482,'*Remove:*\x20%0',c(_0x2fa482,'ELEMENT_TABLE_COLUMN',_0x399caa))};}}),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1ace20),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1ace20),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x45518a),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x45518a),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x58c618),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x58c618),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2d01c8),_0x22b2c7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2d01c8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3d0b0a=this['editor'],_0x13d5e6=_0x3d0b0a['model']['document']['selection'];return(_0x26d150,_0x38c609)=>{_0x3d0b0a['model']['change'](_0x19d7d2=>{const {commandName:_0x5ef0ab,commandParams:_0x45310a}=_0x38c609;let _0x5461ad=_0x26d150[0x0]['end']['nodeBefore'];_0x45310a&&_0x45310a[0x0]&&!0x1===_0x45310a[0x0]['forceValue']&&(_0x5461ad=_0x26d150[0x0]['start']['nodeAfter']);const _0x576c61=_0x19d7d2['createRangeIn'](_0x5461ad);if('$graveyard'==_0x576c61['root']['rootName'])return;const _0x315b70=Array['from'](_0x13d5e6['getRanges']())['map'](_0x9cc85a=>_0x4a3ae4['fromRange'](_0x9cc85a));_0x19d7d2['setSelection'](_0x576c61),_0x3d0b0a['commands']['get'](_0x5ef0ab)['refresh'](),_0x45310a['push']({'forceDefaultExecution':!0x0}),_0x3d0b0a['execute'](_0x5ef0ab,..._0x45310a);const _0x497be9=_0x315b70['filter'](_0x3160cd=>'$graveyard'!=_0x3160cd['root']['rootName']);_0x497be9['length']>0x0&&_0x19d7d2['setSelection'](_0x497be9);for(const _0x2a06a9 of _0x315b70)_0x2a06a9['detach']();});};}['_getCoordsForCells'](_0x3792a4){const _0x27a45a=this['editor']['plugins']['get']('TableUtils');let _0x5dc8fc=Number['MAX_SAFE_INTEGER'],_0x9f5636=Number['MIN_SAFE_INTEGER'],_0x49576f=Number['MAX_SAFE_INTEGER'],_0x23cc87=Number['MIN_SAFE_INTEGER'];for(const _0x4e6128 of _0x3792a4){if('$graveyard'==_0x4e6128['root']['rootName'])continue;const {row:_0x57b480,column:_0x500c7b}=_0x27a45a['getCellLocation'](_0x4e6128),_0x361cc9=_0x4e6128['hasAttribute']('rowspan')?_0x4e6128['getAttribute']('rowspan')-0x1:0x0,_0xa47726=_0x4e6128['hasAttribute']('colspan')?_0x4e6128['getAttribute']('colspan')-0x1:0x0;_0x5dc8fc=_0x57b480<_0x5dc8fc?_0x57b480:_0x5dc8fc,_0x9f5636=_0x57b480+_0x361cc9>_0x9f5636?_0x57b480+_0x361cc9:_0x9f5636,_0x49576f=_0x500c7b<_0x49576f?_0x500c7b:_0x49576f,_0x23cc87=_0x500c7b+_0xa47726>_0x23cc87?_0x500c7b+_0xa47726:_0x23cc87;}return{'minRow':_0x5dc8fc,'maxRow':_0x9f5636,'minColumn':_0x49576f,'maxColumn':_0x23cc87};}['_setupColumnsRowsFixing'](){const _0x199fe8=this['editor'],_0x1ecf4a=_0x199fe8['plugins']['get']('TrackChangesEditing'),_0x4bb148=_0x199fe8['plugins']['get']('TableUtils');_0x199fe8['model']['document']['on']('change:data',()=>{const _0x41850a=Array['from'](_0x199fe8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4bba8e,data:_0x134d92}of _0x41850a){const {group:_0x32a967,id:_0x3f42e7,subType:_0x3d477b}=_0x1ecf4a['_splitMarkerName'](_0x4bba8e);if('suggestion'!=_0x32a967)continue;if(null!=_0x134d92['oldRange'])continue;const _0xefbc7a=_0x1ecf4a['getSuggestion'](_0x3f42e7);this['_tablePostFixingSubtypes']['includes'](_0x3d477b)&&this['_tableSuggestions']['add'](_0xefbc7a);}},{'priority':'low'});const _0x13b45e=(_0x574a71,_0x5b0f7f)=>{let _0x3f067b=!0x1;const _0x230d80=_0x5b0f7f['createRangeOn'](_0x574a71),_0x8d71cd=_0x574a71['findAncestor']('table'),_0x5826c6=_0x4bb148['getCellLocation'](_0x574a71);for(const _0x2e9b74 of this['_tableSuggestions']){const _0x5b5087=_0x2e9b74['subType'],_0x5ba0eb=_0x5b5087['startsWith']('tablePaste'),_0x641788=_0x5b5087['substr'](_0x5ba0eb?0xa:0x5),_0x2901a3=_0x641788['toLowerCase'](),_0x431c04=_0x2901a3['substr'](0x0,0x3)+'span',_0x2b462c='min'+_0x641788,_0xfd14aa='max'+_0x641788;if(!_0x2e9b74['isInContent'])continue;if(_0x8d71cd!=_0x2e9b74['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2e9b74['isIntersectingWithRange'](_0x230d80))continue;const _0x55877c=_0x574a71['hasAttribute'](_0x431c04)?_0x574a71['getAttribute'](_0x431c04)-0x1:0x0,_0x20372d=this['_getSuggestionCoords'](_0x2e9b74),_0x199fee=_0x20372d[_0x2b462c],_0x135e65=_0x20372d[_0xfd14aa];_0x199fee<=_0x5826c6[_0x2901a3]&&_0x5826c6[_0x2901a3]+_0x55877c<=_0x135e65&&(_0x2e9b74['addRange'](_0x230d80),_0x3f067b=!0x0);}return _0x3f067b;};_0x199fe8['model']['document']['registerPostFixer'](_0x1c2dcf=>{let _0xbfdf52=!0x1;for(const _0x4d38bd of _0x199fe8['model']['document']['differ']['getChanges']())if('insert'==_0x4d38bd['type']){if('tableRow'==_0x4d38bd['name']){for(const _0x5cbe96 of _0x4d38bd['position']['nodeAfter']['getChildren']())_0xbfdf52=_0xbfdf52||_0x13b45e(_0x5cbe96,_0x1c2dcf);}else'tableCell'==_0x4d38bd['name']&&(_0xbfdf52=_0xbfdf52||_0x13b45e(_0x4d38bd['position']['nodeAfter'],_0x1c2dcf));}return _0xbfdf52;});}['_getSuggestionCoords'](_0x221e4c){return this['_getCoordsForCells'](_0x221e4c['getRanges']()['map'](_0x119ae8=>_0x119ae8['start']['nodeAfter']));}}function Ne(_0x35f607){return Array['from'](new Set(_0x35f607)['values']());}class Nt extends _0x497417{static get['requires'](){return[Ct];}['afterInit'](){const _0x255772=this['editor'],_0x19d8f4=_0x255772['model']['document']['selection'],_0x378e07=_0x255772['locale'];if(!_0x255772['plugins']['has']('TableEditing'))return;const _0x5f2279=_0x255772['plugins']['get']('TrackChangesEditing'),_0x21ca12=_0x255772['plugins']['get']('TableUtils'),_0xe0e6a0=_0x255772['plugins']['get'](Ct);_0xe0e6a0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5f2279['enableCommand']('mergeTableCells',()=>{const _0x1512d5=_0x21ca12['getSelectionAffectedTableCells'](_0x255772['model']['document']['selection']);_0x255772['model']['change'](()=>{_0x5f2279['markMultiRangeBlockFormat'](_0x1512d5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x255772['commands']['get']('mergeTableCells')['on']('execute',(_0x1f1435,_0x420db1)=>{_0x255772['commands']['get']('trackChanges')['value']&&(_0x420db1['length']>0x0&&_0x420db1[_0x420db1['length']-0x1]&&_0x420db1[_0x420db1['length']-0x1]['forceDefaultExecution']||_0x5f2279['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1f1435['stop']());},{'priority':'highest'});for(const _0x24a8d3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x358ded=_0x255772['commands']['get'](_0x24a8d3);_0x5f2279['enableCommand'](_0x24a8d3,()=>{const _0x3e400b=_0x255772['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x193d27=>_0x193d27['is']('element','tableCell')),_0x3ce0bb=_0x358ded['value'];_0x255772['model']['change'](()=>{_0x5f2279['markMultiRangeBlockFormat']([_0x3e400b,_0x3ce0bb],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x50621c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x141481=_0x255772['commands']['get'](_0x50621c);_0x5f2279['enableCommand'](_0x50621c,()=>{const _0x59e500=_0x21ca12['getSelectionAffectedTableCells'](_0x255772['model']['document']['selection'])[0x0],_0x2cc027=_0x59e500['findAncestor']('table'),{column:_0x1c0929,row:_0xdaf2a4}=_0x21ca12['getCellLocation'](_0x59e500);let _0x20de0e=[];if('horizontally'==_0x141481['direction']){const _0x5ef3f2=_0x21ca12['createTableWalker'](_0x2cc027,{'startRow':_0xdaf2a4,'endRow':_0xdaf2a4,'includeAllSlots':!0x0});_0x20de0e=Array['from'](_0x5ef3f2)['map'](_0x4e3460=>_0x4e3460['cell']);}else{const _0x43095f=_0x21ca12['createTableWalker'](_0x2cc027,{'column':_0x1c0929,'includeAllSlots':!0x0});_0x20de0e=Array['from'](_0x43095f)['map'](_0x5e3ed6=>_0x5e3ed6['cell']);}_0x255772['model']['change'](_0x1e525c=>{_0x5f2279['markBlockFormat'](_0x1e525c['createRangeOn'](_0x59e500),{'commandName':_0x50621c,'commandParams':[]},_0x20de0e,_0x50621c);});});}_0x5f2279['descriptionFactory']['registerDescriptionCallback'](_0x145d19=>{if('formatBlock'!=_0x145d19['type']&&'formatInline'!=_0x145d19['type'])return;const {data:_0x47b6b3}=_0x145d19;return _0x47b6b3&&'mergeTableCells'==_0x47b6b3['commandName']?{'type':'format','content':c(_0x378e07,'*Merge\x20cells*')}:void 0x0;}),_0x5f2279['descriptionFactory']['registerDescriptionCallback'](_0x5f501e=>{if('formatBlock'!=_0x5f501e['type']&&'formatInline'!=_0x5f501e['type'])return;const {data:_0x4e0f01}=_0x5f501e;return _0x4e0f01?'splitTableCellVertically'==_0x4e0f01['commandName']?{'type':'format','content':c(_0x378e07,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4e0f01['commandName']?{'type':'format','content':c(_0x378e07,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x279617=_0xe0e6a0['_acceptFormatSuggestionCallbackFactory']();for(const _0x5f375d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5f2279['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5f375d,'accept',_0x279617);for(const _0x4219d0 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5f2279['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4219d0,'accept',_0x279617);_0x5f2279['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x317630=>{_0x255772['model']['change'](_0xdf2fda=>{const _0x20acf9=Array['from'](_0x19d8f4['getRanges']())['map'](_0x3e00c7=>_0x4a3ae4['fromRange'](_0x3e00c7));_0xdf2fda['setSelection'](_0x317630),_0x255772['commands']['get']('mergeTableCells')['refresh'](),_0x255772['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x55b3a4=_0x20acf9['filter'](_0x245632=>'$graveyard'!=_0x245632['root']['rootName']);_0x55b3a4['length']>0x0&&_0xdf2fda['setSelection'](_0x55b3a4);for(const _0x4470c5 of _0x20acf9)_0x4470c5['detach']();});});for(const _0x415365 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xd4562e=_0x255772['commands']['get'](_0x415365);_0xd4562e['on']('set:isEnabled',(_0x409e3f,_0x3e21db,_0x212e93)=>{if(_0x212e93){const _0x48fe1e=_0x255772['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1a2f18=>_0x1a2f18['is']('element','tableCell'));this['_areMergableCells'](_0xd4562e['value'],_0x48fe1e)||(_0x409e3f['return']=!0x1,_0x409e3f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x25f166=this['editor']['commands']['get']('mergeTableCells'),_0x452be7=this['editor']['plugins']['get']('TableUtils');if(!_0x25f166['isEnabled'])return!0x1;const _0x53fc0f=_0x452be7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x52b0a0 of _0x53fc0f)for(const _0x493bcd of _0x53fc0f)if(_0x52b0a0!=_0x493bcd&&!this['_areMergableCells'](_0x52b0a0,_0x493bcd))return!0x1;return!0x0;}['_areMergableCells'](_0x168178,_0x4a814d){const _0xdd3c40=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f0192=this['editor']['model']['createRangeOn'](_0x168178),_0x4da47c=this['editor']['model']['createRangeOn'](_0x4a814d),_0xa5fb88=new Set(),_0x156f92=new Set();for(const _0x5b885d of _0xdd3c40['getSuggestions']())if(('insertion'==_0x5b885d['type']||'deletion'==_0x5b885d['type']||'mergeTableCells'==_0x5b885d['subType'])&&_0x5b885d['isInContent']){for(const _0x4e6b99 of _0x5b885d['getRanges']())_0x4e6b99['containsRange'](_0x5f0192,!0x0)&&_0xa5fb88['add'](_0x5b885d['type']+':'+_0x5b885d['author']['id']),_0x4e6b99['containsRange'](_0x4da47c,!0x0)&&_0x156f92['add'](_0x5b885d['type']+':'+_0x5b885d['author']['id']);}if(_0xa5fb88['size']!=_0x156f92['size'])return!0x1;for(const _0x40c5c1 of _0xa5fb88)if(!_0x156f92['has'](_0x40c5c1))return!0x1;return!0x0;}}class Dt extends _0x497417{static get['requires'](){return[Ct];}['afterInit'](){const _0x2a2c47=this['editor'];if(!_0x2a2c47['plugins']['has']('TableEditing'))return;const _0x16de78=_0x2a2c47['locale'],_0x11bdc2=_0x2a2c47['plugins']['get']('TrackChangesEditing');_0x11bdc2['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x11bdc2['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x11bdc2['registerBlockAttribute']('headingRows'),_0x11bdc2['registerBlockAttribute']('headingColumns'),_0x11bdc2['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x16de78,'FORMAT_HEADER_ROW')),_0x11bdc2['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x16de78,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3ccbcb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59cea8=this['editor']['plugins']['get']('TableUtils'),_0x4c1ff1=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0xc724cf({showActiveMarker:_0x2f89ad=!0x0,setDataAttribute:_0x49aeae=!0x0}={}){return(_0x47bdea,_0x1c5310,_0x3dd361)=>{const {type:_0x1a1395,id:_0x20e345}=_0x3ccbcb['_splitMarkerName'](_0x1c5310['markerName']),_0xd231d5=_0x3ccbcb['getSuggestion'](_0x20e345),_0x3c8e6b=_0xd231d5['data'];if('formatBlock'!=_0xd231d5['type']||!_0x3c8e6b||'setTableColumnHeader'!=_0x3c8e6b['commandName'])return;if(_0x1c5310['item'])return void _0x47bdea['stop']();if(!_0x3dd361['consumable']['consume'](_0x1c5310['markerRange'],_0x47bdea['name']))return;const _0x46f9f4=_0x1c5310['markerRange']['start']['nodeAfter'],_0x3b2cb6=_0x1c5310['markerRange']['end']['nodeBefore'],_0x2740bc=_0x46f9f4['parent']['parent'],{column:_0x31d273}=_0x59cea8['getCellLocation'](_0x46f9f4),{column:_0x3797b5}=_0x59cea8['getCellLocation'](_0x3b2cb6);for(let _0x451653=_0x31d273;_0x451653<=_0x3797b5;_0x451653++){const _0x27f919=_0x59cea8['createTableWalker'](_0x2740bc,{'column':_0x451653,'includeAllSlots':!0x1});for(const _0x376c2f of _0x27f919){const _0x2e3ac3=_0x376c2f['cell'],_0x4aec6e=_0x3dd361['mapper']['toViewElement'](_0x2e3ac3);_0x3dd361['writer']['addClass']('ck-suggestion-marker-'+_0x1a1395,_0x4aec6e),_0x49aeae&&_0x3dd361['writer']['setAttribute']('data-suggestion',_0x20e345,_0x4aec6e),_0x3dd361['mapper']['bindElementToMarker'](_0x4aec6e,_0x1c5310['markerName']),_0x2f89ad&&(_0x3ccbcb['activeMarkers']['includes'](_0x1c5310['markerName'])?_0x3dd361['writer']['addClass']('ck-suggestion-marker--active',_0x4aec6e):_0x3dd361['writer']['removeClass']('ck-suggestion-marker--active',_0x4aec6e));}}};}_0x3ccbcb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4c1ff1),_0x3ccbcb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4c1ff1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xc724cf(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a1d,_0x20863f,_0x3ae79f)=>{_0x3ae79f['options']['showSuggestionHighlights']&&_0xc724cf({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3a1d,_0x20863f,_0x3ae79f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1ddc68,_0xf5e8a1,_0x2b79df)=>{const {type:_0x46be74,id:_0x23828f}=_0x3ccbcb['_splitMarkerName'](_0xf5e8a1['markerName']),_0x8119f2=_0x3ccbcb['getSuggestion'](_0x23828f),_0x49ee1e=_0x8119f2['data'];if('formatBlock'!=_0x8119f2['type']||!_0x49ee1e||'setTableColumnHeader'!=_0x49ee1e['commandName'])return;const _0x2bf86b=_0x2b79df['mapper']['markerNameToElements'](_0xf5e8a1['markerName']);if(_0x2bf86b){for(const _0x46512b of _0x2bf86b)_0x2b79df['writer']['removeClass']('ck-suggestion-marker-'+_0x46be74,_0x46512b),_0x2b79df['writer']['removeClass']('ck-suggestion-marker--active',_0x46512b),_0x2b79df['writer']['removeAttribute']('data-suggestion',_0x46512b),_0x2b79df['mapper']['unbindElementFromMarkerName'](_0x46512b,_0xf5e8a1['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3776d9=this['editor'],_0x4c2447=_0x3776d9['locale'];function _0x590ee6(_0x2c1920){return{'type':'format','content':c(_0x4c2447,'*Format:*\x20%0',_0x2c1920)};}_0x3776d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a4078=>{if('formatBlock'!=_0x2a4078['type'])return;const {data:_0x2f6bcb}=_0x2a4078;if(_0x2f6bcb){if('setTableRowHeader'==_0x2f6bcb['commandName']){const _0x4e7da9=_0x2f6bcb['commandParams'][0x0]['forceValue'];return _0x590ee6(c(_0x4c2447,_0x4e7da9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2f6bcb['commandName']){const _0x38ec24=_0x2f6bcb['commandParams'][0x0]['forceValue'];return _0x590ee6(c(_0x4c2447,_0x38ec24?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x1c9dbd=>[_0x1c9dbd,null]));class Mt extends _0x497417{static get['requires'](){return[Ct];}['afterInit'](){const _0x41bf85=this['editor'];if(!_0x41bf85['plugins']['has']('TableClipboard'))return;const _0x44ca03=_0x41bf85['plugins']['get']('TrackChangesEditing'),_0x3b715b=_0x41bf85['plugins']['get']('TableUtils'),_0x41d668=_0x41bf85['plugins']['get'](Ct),_0x186375=_0x41bf85['plugins']['get']('TableClipboard');_0x41d668['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x41bf85['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x41bf85['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5805e7=null;_0x41bf85['model']['on']('insertContent',(_0x4b61b6,_0x20282e)=>{const [_0x5942fe,_0x5099a3]=_0x20282e,_0x41eb45=_0x20282e[_0x20282e['length']-0x1];_0x41eb45&&_0x41eb45['forceDefaultExecution']||_0x44ca03['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1c57c2,_0x58aeed,_0x2a9e9b,_0x3b81eb,_0x1f3d1d){if(_0x58aeed&&!_0x58aeed['is']('documentSelection'))return!0x1;const _0x5a5191=_0x1f3d1d['getTableIfOnlyTableInContent'](_0x1c57c2,_0x2a9e9b);if(!_0x5a5191||!Ue(_0x5a5191,void 0x0,_0x3b81eb))return!0x1;const _0x2c3c12=_0x3b81eb['getSelectionAffectedTableCells'](_0x2a9e9b['document']['selection']);if(!_0x2c3c12['length'])return!0x1;const _0x4024ac=_0x2c3c12[0x0]['findAncestor']('table'),_0x459955=_0x3b81eb['getRowIndexes'](_0x2c3c12),_0x57bb30=_0x3b81eb['getColumnIndexes'](_0x2c3c12),_0x3657f8={'startRow':_0x459955['first'],'endRow':_0x459955['last'],'startColumn':_0x57bb30['first'],'endColumn':_0x57bb30['last']};return 0x1==_0x2c3c12['length']&&(_0x3657f8['endRow']+=_0x3b81eb['getRows'](_0x5a5191)-0x1,_0x3657f8['endColumn']+=_0x3b81eb['getColumns'](_0x5a5191)-0x1),Ue(_0x4024ac,_0x3657f8,_0x3b81eb);}(_0x5942fe,_0x5099a3,_0x41bf85['model'],_0x3b715b,_0x186375)&&(_0x4b61b6['stop'](),_0x5805e7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x41bf85['model']['change'](()=>{_0x41bf85['model']['insertContent'](_0x20282e[0x0],_0x20282e[0x1],_0x20282e[0x2],{'forceDefaultExecution':!0x0});const _0x5c9bee=_0x437d48(),{rowInsertionRanges:_0x223b25,columnInsertionRanges:_0x33f89a,insertionRanges:_0x1dcf25,deletionRanges:_0x2690db,cells:_0x534200}=_0x5805e7;_0x223b25['length']&&_0x44ca03['markMultiRangeInsertion'](_0x223b25,'tablePasteRow',{'tablePasteChainId':_0x5c9bee}),_0x33f89a['length']&&_0x44ca03['markMultiRangeInsertion'](_0x33f89a,'tablePasteColumn',{'tablePasteChainId':_0x5c9bee}),_0x1dcf25['length']&&(_0x44ca03['markMultiRangeInsertion'](_0x1dcf25,'tablePaste',{'tablePasteChainId':_0x5c9bee,'skipNestingCheck':!0x0}),_0x1dcf25['forEach'](_0x59335c=>_0x59335c['detach']?.())),_0x2690db['length']&&(_0x44ca03['markMultiRangeDeletion'](_0x2690db,'tablePaste',{'tablePasteChainId':_0x5c9bee,'skipNestingCheck':!0x0}),_0x2690db['forEach'](_0x5a6e63=>_0x5a6e63['detach']?.()));const _0x262b90=_0x44ca03['markMultiRangeBlockFormat'](_0x534200['map'](({element:_0x4000ec})=>_0x4000ec),{'formatGroupId':_0x437d48()},[],'tablePasteCell',{'tablePasteChainId':_0x5c9bee});if(_0x262b90){const _0x2a8a2d=_0x262b90['getMarkers'](),_0x8d023a=[];for(const {element:_0x2b07fc,attributes:_0x117892}of _0x534200){if(!_0x117892)continue;const _0x1cd829=_0x41bf85['model']['createRangeOn'](_0x2b07fc),_0x54e7aa=_0x2a8a2d['find'](_0x3d2cdd=>_0x3d2cdd['getRange']()['isEqual'](_0x1cd829));_0x54e7aa&&_0x8d023a['push']([_0x54e7aa['name'],_0x117892]);}_0x8d023a['length']&&_0x262b90['setAttribute']('markerAttributes',Object['fromEntries'](_0x8d023a));}_0x5805e7=null;}));},{'priority':_0x2c349d['high']+0xa}),_0x41bf85['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x22d65a,_0x21c9a9)=>{const [_0x157e73,_0x16097f,,_0x422f74]=_0x21c9a9;if(!_0x5805e7)return;_0x22d65a['stop']();const _0x59e827=_0x157e73['cell'],_0x5260eb=_0x16097f,_0x194f6e=Oe(_0x59e827),_0x26474d=Oe(_0x5260eb);_0x22d65a['return']=_0x59e827;let _0x569ea4=null,_0x11187b=null;if(_0x26474d||_0x194f6e){if(_0x194f6e&&!_0x26474d){_0x422f74['remove'](_0x59e827['getChild'](0x0));for(const _0x252c23 of Array['from'](_0x5260eb['getChildren']()))_0x422f74['insert'](_0x252c23,_0x59e827,'end');const _0x5b02ac=_0x5805e7['rowInsertionIndexes']['includes'](_0x157e73['row']),_0x1aaedd=_0x5805e7['columnInsertionIndexes']['includes'](_0x157e73['column']);_0x5b02ac||_0x1aaedd||(_0x569ea4=_0x4a3ae4['fromRange'](_0x422f74['createRangeIn'](_0x59e827)));}else _0x26474d&&!_0x194f6e&&(_0x11187b=_0x422f74['createRangeIn'](_0x59e827));}else{const _0x3875b1=_0x422f74['createElement']('tableCellSuggestion'),_0x49d215=_0x422f74['createElement']('tableCellSuggestion');_0x422f74['wrap'](_0x422f74['createRangeIn'](_0x59e827),_0x49d215),_0x422f74['insert'](_0x3875b1,_0x59e827,0x0);for(const _0xf50b56 of Array['from'](_0x5260eb['getChildren']()))_0x422f74['insert'](_0xf50b56,_0x3875b1,'end');_0x569ea4=_0x4a3ae4['fromRange'](_0x422f74['createRangeOn'](_0x3875b1)),_0x11187b=_0x4a3ae4['fromRange'](_0x422f74['createRangeOn'](_0x49d215));}const _0x5f19f0=Array['from'](_0x5260eb['getAttributes']())['filter'](([_0x2223e2])=>Be['includes'](_0x2223e2));_0x5805e7['cells']['push']({'element':_0x59e827,'attributes':_0x5f19f0['length']?Object['fromEntries'](_0x5f19f0):null}),_0x569ea4&&_0x5805e7['insertionRanges']['push'](_0x569ea4),_0x11187b&&_0x5805e7['deletionRanges']['push'](_0x11187b);},{'priority':'high'}),_0x3b715b['on']('insertColumns',(_0x21cc9a,_0x2fe555)=>{const [_0x3663ef,_0x101193={}]=_0x2fe555;if(!_0x5805e7)return;const _0x3778f5=_0x101193['at']||0x0,_0x5da36b=_0x101193['columns']||0x1;_0x5805e7['columnInsertionIndexes']=new Array(_0x5da36b)['fill'](_0x3778f5)['map']((_0x471883,_0x407536)=>_0x471883+_0x407536);for(const {cell:_0x5c109e}of _0x3b715b['createTableWalker'](_0x3663ef,{'startColumn':_0x3778f5,'endColumn':_0x3778f5+_0x5da36b-0x1}))_0x5805e7['columnInsertionRanges']['push'](_0x41bf85['model']['createRangeOn'](_0x5c109e));},{'priority':'low'}),_0x3b715b['on']('insertRows',(_0x50c1ab,_0xf2edbd)=>{const [_0x299e4e,_0x282611={}]=_0xf2edbd;if(!_0x5805e7)return;const _0x2a169d=_0x282611['at']||0x0,_0x209d3f=_0x282611['rows']||0x1;_0x5805e7['rowInsertionIndexes']=new Array(_0x209d3f)['fill'](_0x2a169d)['map']((_0x1ca879,_0x3c75a5)=>_0x1ca879+_0x3c75a5);for(const {cell:_0x4553aa}of _0x3b715b['createTableWalker'](_0x299e4e,{'startRow':_0x2a169d,'endRow':_0x2a169d+_0x209d3f-0x1}))_0x5805e7['rowInsertionRanges']['push'](_0x41bf85['model']['createRangeOn'](_0x4553aa));},{'priority':'low'}),_0x44ca03['descriptionFactory']['registerDescriptionCallback'](_0x19b060=>{if(_0x19b060['subType']&&_0x19b060['subType']['startsWith']('tablePaste'))return _0x19b060['previous']?{}:{'type':'insertion','content':c(_0x41bf85['locale'],'*Replace\x20table\x20cells*')};});const _0x2fcc9d=()=>!0x1;for(const _0x47b933 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x44ca03['_suggestionFactory']['registerCustomCallback']('insertion',_0x47b933,'join',_0x2fcc9d),_0x44ca03['_suggestionFactory']['registerCustomCallback']('deletion',_0x47b933,'join',_0x2fcc9d),_0x44ca03['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x47b933,'join',_0x2fcc9d);_0x44ca03['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2fcc9d),_0x44ca03['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x17237b,_0x1b2fb6,_0x2518e9)=>{const _0x4ec44d=_0x17237b['map'](_0x4a0f93=>_0x4a0f93['getContainedElement']())['filter'](_0x3e956e=>_0x3e956e),_0x522421=new Map(_0x4ec44d['map'](_0x1eed45=>[_0x1eed45,null]));if(_0x5805e7){for(const {element:_0x2b4863,attributes:_0x2e7f00}of _0x5805e7['cells'])_0x2e7f00&&_0x522421['set'](_0x2b4863,_0x2e7f00);}else{if(_0x2518e9&&_0x2518e9['markerAttributes'])for(const [_0x13db8f,_0x50651c]of Object['entries'](_0x2518e9['markerAttributes'])){const _0x47f55b=_0x41bf85['model']['markers']['get'](_0x13db8f),_0x332d54=_0x47f55b?_0x47f55b['getRange']()['getContainedElement']():null;_0x332d54&&_0x522421['set'](_0x332d54,_0x50651c);}}_0x41bf85['model']['change'](_0x62ee1c=>{for(const [_0x471828,_0x6249ab]of _0x522421)_0x62ee1c['setAttributes']({...xe,..._0x6249ab},_0x471828);});});const _0xb95a29=(_0x54aaf2,_0x2434f5)=>{_0x44ca03['_suggestionFactory']['registerCustomCallback'](_0x54aaf2,'tablePaste',_0x2434f5,(_0x283535,_0x36eb41,_0xc0b8bf)=>{_0x41bf85['model']['change'](_0x3fb44b=>{const _0xbe6698=[];for(const _0x11a6dc of _0x283535){const _0x816f80=_0x11a6dc['start']['nodeAfter'];_0x816f80['is']('element','tableCellSuggestion')&&_0xbe6698['push'](_0x816f80);}_0x44ca03['_suggestionFactory']['getSuggestionCallback'](_0x54aaf2,null,_0x2434f5)(_0x283535,_0x36eb41,_0xc0b8bf);for(const _0xafee55 of _0xbe6698)'$graveyard'!=_0xafee55['root']['rootName']&&_0x3fb44b['unwrap'](_0xafee55);});});};_0xb95a29('insertion','accept'),_0xb95a29('insertion','discard'),_0xb95a29('deletion','accept'),_0xb95a29('deletion','discard'),_0x44ca03['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x27a06b=>{const _0x235eeb=_0x27a06b['map'](_0x190e8b=>_0x190e8b['getContainedElement']()),_0x2af87f=_0x235eeb[0x0]['findAncestor']('table'),{minRow:_0x5ab5c8,maxRow:_0x2c8a9d}=_0x41d668['_getCoordsForCells'](_0x235eeb);_0x3b715b['removeRows'](_0x2af87f,{'at':_0x5ab5c8,'rows':_0x2c8a9d-_0x5ab5c8+0x1});}),_0x44ca03['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x54f17e=>{const _0x119ccb=_0x54f17e['map'](_0x3a5785=>_0x3a5785['getContainedElement']()),_0x3ae8b7=_0x119ccb[0x0]['findAncestor']('table'),{minColumn:_0x37c177,maxColumn:_0x1a9403}=_0x41d668['_getCoordsForCells'](_0x119ccb);_0x3b715b['removeColumns'](_0x3ae8b7,{'at':_0x37c177,'columns':_0x1a9403-_0x37c177+0x1});});const _0x54ec8b=(_0x4d4c37,_0x15e9ea)=>{if(!_0x15e9ea['subType']||!_0x15e9ea['subType']['startsWith']('tablePaste'))return;const _0x275826=_0x15e9ea['attributes']['tablePasteChainId'],_0x1e47ee=_0x44ca03['getSuggestions']()['filter'](_0x3d4a90=>_0x3d4a90['isInContent']&&_0x3d4a90['attributes']&&_0x3d4a90['attributes']['tablePasteChainId']==_0x275826);_0x1e47ee['length']&&_0x15e9ea['getAllAdjacentSuggestions']()['length']!=_0x1e47ee['length']&&_0x1e47ee['reduce']((_0x50bfa7,_0x37aff0)=>(_0x50bfa7['next']=_0x37aff0,_0x37aff0['previous']=_0x50bfa7,_0x37aff0));};function _0x32b28a(_0x385b02,_0x4fa3e9=!0x0){const {id:_0x158b3e,authorId:_0x3369d4}=_0x44ca03['_splitMarkerName'](_0x385b02['markerName']),_0x6dbbbb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5e3ab8=_0x44ca03['activeMarkers']['includes'](_0x385b02['markerName']);return _0x5e3ab8&&_0x6dbbbb['push']('ck-suggestion-marker--active'),{'classes':_0x6dbbbb,'attributes':{'data-suggestion':_0x158b3e,'data-author-id':_0x3369d4},'priority':_0x5e3ab8&&_0x4fa3e9?0xbc2:0xbb8};}_0x44ca03['on']('suggestionLoaded',_0x54ec8b,{'priority':'high'}),_0x44ca03['on']('suggestionUnloaded',_0x54ec8b,{'priority':'high'}),_0x41bf85['model']['document']['registerPostFixer'](()=>{let _0x1fe455=!0x1;const _0x144024=Array['from'](_0x41bf85['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ea27b,data:_0x3c2baa}of _0x144024){const {group:_0x8686dc,type:_0x491d72,id:_0x115d51}=_0x44ca03['_splitMarkerName'](_0x2ea27b);if('suggestion'!=_0x8686dc||'deletion'!=_0x491d72||_0x3c2baa['oldRange'])continue;if(!_0x44ca03['hasSuggestion'](_0x115d51))continue;const _0x10de32=_0x44ca03['getSuggestion'](_0x115d51)['getRanges'](),_0x288345=_0x41bf85['plugins']['get']('Users')['me'];for(const _0x449618 of _0x44ca03['getSuggestions']()){if(!_0x449618['isInContent']||_0x449618['author']!=_0x288345)continue;if('formatBlock'!=_0x449618['type']||'tablePasteCell'!=_0x449618['subType'])continue;if(_0x449618['getRanges']()['every'](_0x3c209d=>_0x10de32['some'](_0x295c6c=>_0x295c6c['containsRange'](_0x3c209d,!0x0)))){for(const _0x20dd48 of _0x449618['getAllAdjacentSuggestions']())_0x20dd48['isInContent']&&(_0x20dd48['discard'](),_0x1fe455=!0x0);}}}return _0x1fe455;}),_0x41bf85['model']['document']['registerPostFixer'](_0x2477fa=>{const _0x5f3dc2=_0x41bf85['commands']['get']('redo');if(!_0x5f3dc2||!_0x5f3dc2['_createdBatches']['has'](_0x2477fa['batch']))return!0x1;let _0x1ebc12=!0x1;const _0x486106=_0x41bf85['plugins']['get']('Users')['me'],_0x30130e=_0x41bf85['model']['document']['differ']['getChanges'](),_0x28e4c1=Array['from'](_0x41bf85['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xdb23c4,data:_0x6163fb})=>{const {group:_0x396da1,subType:_0x1f0612,authorId:_0x164467}=_0x44ca03['_splitMarkerName'](_0xdb23c4);return'suggestion'==_0x396da1&&'tablePaste'==_0x1f0612&&_0x164467==_0x486106['id']&&!_0x6163fb['oldRange'];});for(const _0x559edb of _0x30130e){if('insert'!=_0x559edb['type']||'tableCellSuggestion'!=_0x559edb['name']||0x1!=_0x559edb['length'])continue;const _0x58af86=_0x2477fa['createRange'](_0x559edb['position'],_0x559edb['position']['getShiftedBy'](0x1));if(!_0x28e4c1['find'](({data:_0x513e0a})=>_0x513e0a['newRange']['isEqual'](_0x58af86))){for(const {name:_0x2c77aa,data:_0xf306da}of _0x28e4c1)if(_0x58af86['containsRange'](_0xf306da['newRange'])){_0x2477fa['updateMarker'](_0x2c77aa,{'range':_0x58af86}),_0x1ebc12=!0x0;break;}}}return _0x1ebc12;}),_0x41bf85['model']['document']['registerPostFixer'](_0x4a090c=>{let _0x36d2f2=!0x1;const _0xd822dd=_0x41bf85['plugins']['get']('Users')['me'],_0x48d845=_0x44ca03['getSuggestions']()['filter'](_0x396dc7=>_0x396dc7['isInContent']&&_0x396dc7['author']==_0xd822dd),_0x265ed8=new Set(),_0x2ba6b2=new Set();for(const _0x35e10a of _0x48d845)if('tablePaste'==_0x35e10a['subType'])for(const _0x5a9e2d of _0x35e10a['getMarkers']()){const _0x4cb35f=_0x5a9e2d['getRange']()['getContainedElement']();if(_0x4cb35f){if(_0x4cb35f['is']('element','tableCellSuggestion')&&Oe(_0x4cb35f)){_0x35e10a['removeMarker'](_0x5a9e2d['name']),_0x265ed8['add'](_0x4cb35f),_0x36d2f2=!0x0;const _0x279b8f=_0x4cb35f['nextSibling'],_0x541daa=_0x4cb35f['previousSibling'],_0x16422b=_0x279b8f&&_0x279b8f['is']('element','tableCellSuggestion'),_0x347c66=_0x541daa&&_0x541daa['is']('element','tableCellSuggestion');_0x16422b&&!_0x265ed8['has'](_0x279b8f)&&_0x2ba6b2['add'](_0x279b8f),_0x347c66&&!_0x265ed8['has'](_0x541daa)&&_0x2ba6b2['add'](_0x541daa);}else _0x4cb35f['is']('element','paragraph')&&_0x4cb35f['isEmpty']&&(_0x35e10a['removeMarker'](_0x5a9e2d['name']),_0x36d2f2=!0x0);}}else{if('tablePasteCell'==_0x35e10a['subType']){if(!_0x35e10a['attributes']||!_0x35e10a['attributes']['tablePasteChainId'])continue;const _0xd53fe9=_0x35e10a['attributes']['markerAttributes'];if(_0xd53fe9&&Object['keys'](_0xd53fe9)['length'])continue;const _0x46ab93=_0x35e10a['attributes']['tablePasteChainId'];let _0x2320b3=!0x0,_0x3d6b6e=!0x0;for(const _0x18f7d2 of _0x48d845)if(_0x18f7d2['subType']&&_0x18f7d2['subType']['startsWith']('tablePaste')){if(!_0x18f7d2['attributes']['tablePasteChainId']){_0x3d6b6e=!0x1;break;}if(_0x18f7d2['id']!=_0x35e10a['id']&&_0x18f7d2['attributes']['tablePasteChainId']==_0x46ab93){_0x2320b3=!0x1;break;}}_0x3d6b6e&&_0x2320b3&&(_0x35e10a['removeMarkers'](),_0x36d2f2=!0x0);}}for(const _0x1051a9 of _0x265ed8)_0x4a090c['remove'](_0x1051a9);for(const _0x5bfa44 of _0x2ba6b2)_0x4a090c['unwrap'](_0x5bfa44);return _0x36d2f2;}),_0x41bf85['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x556eeb=>_0x32b28a(_0x556eeb),'converterPriority':'high'}),_0x41bf85['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2ca812,_0x59f5d9)=>_0x59f5d9['options']['showSuggestionHighlights']?_0x32b28a(_0x2ca812,!0x1):null,'converterPriority':'high'});const _0xcb1a48=_0x41bf85['editing']['view'];this['listenTo'](_0xcb1a48['document'],'clipboardOutput',(_0x293ccf,_0x452bd3)=>{const _0x261aea=[];for(const _0x51d7bd of _0xcb1a48['createRangeIn'](_0x452bd3['content'])['getItems']())_0x51d7bd['is']('element','suggestion-td')&&_0x261aea['push'](_0x51d7bd);_0xcb1a48['change'](_0x502ece=>{for(const _0x2e706d of _0x261aea)_0x502ece['move'](_0x502ece['createRangeIn'](_0x2e706d),_0x502ece['createPositionBefore'](_0x2e706d)),_0x502ece['remove'](_0x2e706d);});});}}function Oe(_0x14c010){if(_0x14c010['isEmpty'])return!0x0;const _0x812f1a=_0x14c010['getChild'](0x0);return _0x812f1a['is']('element','paragraph')&&_0x812f1a['isEmpty'];}function Ue(_0x3cfcba,_0x2fafe0={},_0x51cc3f){for(const {isAnchor:_0x130155,cellHeight:_0x43a278,cellWidth:_0x1dba69}of _0x51cc3f['createTableWalker'](_0x3cfcba,{'includeAllSlots':!0x0,..._0x2fafe0}))if(!_0x130155||0x1!=_0x43a278||0x1!=_0x1dba69)return!0x1;return!0x0;}class $t extends _0x497417{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xad4ed5=this['editor']['plugins']['get']('TrackChangesEditing');_0xad4ed5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xad4ed5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xad4ed5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xad4ed5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xad4ed5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xad4ed5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x12a089,_0x5a32d9){const _0x3bd5d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x267edb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x10fe61=_0x5a32d9['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x22f17c=_0x267edb['getColumnGroupElement'](_0x10fe61);let _0x52484b=_0x22f17c?_0x267edb['getTableColumnsWidths'](_0x22f17c):null,_0x202df5=_0x10fe61['getAttribute']('tableWidth')||null;const _0x344354=_0x5a32d9['tableWidth']||_0x202df5,_0x1bfd71=_0x5a32d9['columnWidths']||_0x52484b,_0x2e6a3d=this['editor']['plugins']['get']('Users')['me'];for(const _0x2f7aec of _0x3bd5d2['getSuggestions']()){const _0x52e525=_0x2f7aec['getContainedElement']();if('resizeTable'===_0x2f7aec['subType']&&_0x52e525===_0x10fe61){_0x2f7aec['author']!==_0x2e6a3d&&_0x2f7aec['discard']();const _0x30da5a=_0x2f7aec['data']['commandParams'];_0x202df5=_0x30da5a[0x0]['tableWidth'],_0x52484b=_0x30da5a[0x0]['columnWidths'];break;}}_0x12a089({'table':_0x10fe61,'tableWidth':_0x344354,'columnWidths':_0x1bfd71}),_0x3bd5d2['markBlockFormat'](_0x10fe61,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x202df5,'columnWidths':_0x52484b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x57c927){if('formatBlock'!=_0x57c927['type']&&'formatInline'!=_0x57c927['type'])return;const {data:_0x3b8002}=_0x57c927;if(_0x3b8002&&'resizeTable'===_0x3b8002['formatGroupId']){const _0x37f70a='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x37f70a)};}}}class Bt extends _0x497417{['afterInit'](){const _0xe749f8=this['editor'];_0xe749f8['plugins']['has']('Template')&&_0xe749f8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x497417{['afterInit'](){const _0x3e7ead=this['editor'];if(!_0x3e7ead['commands']['get']('insertTableOfContents'))return;_0x3e7ead['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5c2737=_0x3e7ead['plugins']['get']('TrackChangesEditing'),_0x498fa2=_0x3e7ead['locale'];_0x5c2737['descriptionFactory']['registerElementLabel']('tableOfContents',_0x430a70=>c(_0x498fa2,'ELEMENT_TABLE_OF_CONTENTS',_0x430a70));}}class Rt extends _0x497417{['afterInit'](){const _0x15476e=this['editor'];if(!_0x15476e['plugins']['has']('Title'))return;const _0xc22c38=_0x15476e['plugins']['get']('TrackChangesEditing');_0xc22c38['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x15476e['locale'],'ELEMENT_TITLE')),_0x15476e['model']['document']['registerPostFixer'](_0xa82681=>{let _0x3a4fa3=!0x1;const _0x43b6bc=Array['from'](_0x15476e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58fcaa,data:_0x2c477b}of _0x43b6bc){const {group:_0x18d516}=_0xc22c38['_splitMarkerName'](_0x58fcaa);if('suggestion'!==_0x18d516||!_0x2c477b['newRange'])continue;const _0x28cdb4=_0x2c477b['newRange'],_0x55ce82=_0x28cdb4['end']['nodeBefore'];if(!_0x55ce82||!_0x55ce82['is']('element','title-content'))continue;if(!_0x28cdb4['start']['isTouching'](_0x28cdb4['end']))continue;const _0x4d4ef2=_0x15476e['model']['schema']['getNearestSelectionRange'](_0x28cdb4['end'],'forward');if(_0x4d4ef2&&_0x4d4ef2['isCollapsed']){const _0x3c8252=_0xa82681['createRange'](_0x28cdb4['start'],_0x4d4ef2['start']);_0x3c8252['isEqual'](_0x28cdb4)||(_0xa82681['updateMarker'](_0x58fcaa,{'range':_0x3c8252}),_0x3a4fa3=!0x0);}_0x3a4fa3||(_0xa82681['removeMarker'](_0x58fcaa),_0x3a4fa3=!0x0);}return _0x3a4fa3;});}}class xt extends _0x497417{['afterInit'](){const _0x50f4b8=this['editor'],_0x4b38d7=_0x50f4b8['plugins']['get']('TrackChangesEditing');_0x50f4b8['plugins']['has']('Uploadcare')&&(_0x4b38d7['enableCommand']('uploadcare'),_0x50f4b8['plugins']['has']('UploadcareImageEdit')&&(_0x4b38d7['enableCommand']('uploadcareImageEdit'),_0x4b38d7['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4b38d7['registerBlockAttribute']('uploadcareImageId'),_0x4b38d7['descriptionFactory']['registerDescriptionCallback'](_0x2c91de=>{if('attribute'!=_0x2c91de['type'])return;const {data:_0x33b034}=_0x2c91de;return _0x33b034&&'uploadcareImageId'==_0x33b034['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x497417{['afterInit'](){const _0x1e99a4=this['editor'],_0x32bc15=_0x1e99a4['plugins']['get']('TrackChangesEditing');_0x1e99a4['plugins']['has']('UndoEditing')&&(_0x32bc15['enableCommand']('undo'),_0x32bc15['enableCommand']('redo'));}}class Et extends _0x497417{static get['requires'](){return[Ct];}['afterInit'](){const _0x5ef09c=this['editor'];if(!_0x5ef09c['plugins']['has']('TableCaptionEditing'))return;_0x5ef09c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x497417{['tableProperties'];['tableCellProperties'];constructor(_0x47865b){super(_0x47865b),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 _0x1d45b7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4fa9f2 of this['tableProperties'])_0x1d45b7['enableCommand'](_0x4fa9f2,(_0x5041f4,_0x2fc95a)=>{const _0x5cfdd1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4fa9f2,[_0x5cfdd1],this['tableProperties'],'tableProperties',_0x5041f4,_0x2fc95a);});_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1d45b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x391d53,_0x222397)=>this['handleDiscardAction'](this['tableProperties'],_0x391d53,_0x222397)),_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x48675f of this['tableCellProperties'])_0x1d45b7['enableCommand'](_0x48675f,(_0x19a467,_0x2af7e6)=>{const _0x12b99=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x48675f,_0x12b99,this['tableCellProperties'],'tableCellProperties',_0x19a467,_0x2af7e6);});_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1d45b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5f2aff,_0x4acdbb)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5f2aff,_0x4acdbb)),_0x1d45b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1d45b7['descriptionFactory']['registerDescriptionCallback'](_0xf7ba07=>this['handleSuggestionDescription'](_0xf7ba07));}['_handlePropertyChange'](_0x2ed84e,_0x4c009f,_0x2ee711,_0x46d454,_0x199ea1,_0x59c915){const _0x462293=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x59c915['batch'],()=>{for(const _0x201e08 of _0x4c009f){if(this['_getSuggestion'](_0x201e08,_0x46d454))_0x199ea1(_0x59c915);else{const _0x12150c={};for(const _0x54119a of _0x2ee711){const _0x4880a6=_0x201e08['getAttribute'](_0x54119a);void 0x0!==_0x4880a6&&(_0x12150c[_0x54119a]=_0x4880a6);}_0x199ea1(_0x59c915),_0x462293['markBlockFormat'](_0x201e08,{'commandParams':[_0x12150c]},[],_0x46d454);}}});}['handleDiscardAction'](_0x44b79c,_0x5a78f0,_0x4eb0f1){const _0x4bf687=_0x5a78f0[0x0]['start']['nodeAfter'],_0x59e7dc=_0x4eb0f1['commandParams'][0x0];this['editor']['model']['change'](_0x46d41e=>{for(const _0x14a294 of _0x44b79c)void 0x0!==_0x59e7dc[_0x14a294]?_0x46d41e['setAttribute'](_0x14a294,_0x59e7dc[_0x14a294],_0x4bf687):_0x46d41e['removeAttribute'](_0x14a294,_0x4bf687);});}['handleSuggestionDescription'](_0x1f7766){if(_0x1f7766['data'])switch(_0x1f7766['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'](_0x508e90,_0x27d3d5){const _0x4ebd56=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2c83a3 of _0x4ebd56['getSuggestions']({'skipNotAttached':!0x0})){const _0x2691c0=_0x2c83a3['getContainedElement']();if(_0x2c83a3['subType']===_0x27d3d5&&_0x2691c0===_0x508e90)return _0x2c83a3;}return null;}}const u='$elementName';class p extends _0x497417{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x508eb0,_0x1b0060,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29a838){super(_0x29a838),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x353465,_0x2879f3,_0x2965a7,_0x1ab6bf)=>{this['_model']['change'](()=>{for(const _0x1e91a5 of[..._0x1ab6bf,..._0x2965a7])this['_model']['markers']['has'](_0x1e91a5)&&_0x29a838['editing']['reconvertMarker'](_0x1e91a5);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x29a838['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(),_0x29a838['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x29a838['config']['get']('trackChanges.trackFormatChanges'),_0x29a838['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x29a838['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x29a838,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5deeac=this['editor'],_0x51d895=(_0x328a3a,_0x3b7f1c)=>{if('attribute'!=_0x328a3a)return'ck-suggestion-marker-'+_0x328a3a;const _0x3495dc=_0x3b7f1c['split']('|')[0x0];return this['_isBlockAttribute'](_0x3495dc)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5deeac['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x289d5d=>{const {id:_0x51effb,authorId:_0x2bcf9,type:_0x4235f9,subType:_0x3ce50b}=this['_splitMarkerName'](_0x289d5d['markerName']),_0x32de20=['ck-suggestion-marker',_0x51d895(_0x4235f9,_0x3ce50b)];let _0x439827=0xbb8;return this['activeMarkers']['includes'](_0x289d5d['markerName'])&&(_0x32de20['push']('ck-suggestion-marker--active'),_0x439827=0xbc2),'deletion'==_0x4235f9&&(_0x439827+=0x5),{'classes':_0x32de20,'attributes':{'data-suggestion':_0x51effb,'data-author-id':_0x2bcf9},'priority':_0x439827};}}),_0x5deeac['conversion']['for']('dataDowncast')['add'](_0x4320cf=>{_0x4320cf['on']('addMarker:suggestion',(_0x2cd748,_0x58a3bd,_0x25cd6b)=>{if(!_0x25cd6b['options']['showSuggestionHighlights'])return;const _0x56eb67=_0x58a3bd['item'];if(!_0x56eb67)return;const _0x2e70aa=_0x25cd6b['mapper']['toViewElement'](_0x56eb67);_0x5deeac['model']['schema']['isObject'](_0x56eb67)&&_0x2e70aa&&!_0x2e70aa['getCustomProperty']('widget')&&_0x2e70aa['is']('containerElement')&&_0x5667c3(_0x2e70aa,_0x25cd6b['writer']);},{'priority':'high'});}),_0x5deeac['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x58b598,_0x18ebac)=>{if(!_0x18ebac['options']['showSuggestionHighlights'])return null;const {type:_0xaa22ac,subType:_0x318656}=this['_splitMarkerName'](_0x58b598['markerName']);return{'classes':['ck-suggestion-marker',_0x51d895(_0xaa22ac,_0x318656)],'priority':0xbb8};}});const _0x47bf7a=({showActiveMarkers:_0x13938e=!0x0,isAttributeSuggestion:_0x12f9e2=!0x1}={})=>(_0x4ed864,_0x372086,_0x245552)=>{if(!_0x372086['item'])return;const {id:_0x5d4b11,authorId:_0x4cad8c}=this['_splitMarkerName'](_0x372086['markerName']);if(_0x12f9e2){const _0x46e925=this['_suggestions']['get'](_0x5d4b11),_0x4a014f=this['_getAttributeKey'](_0x46e925);if(!this['_isBlockAttribute'](_0x4a014f))return;}if(_0x372086['item']['is']('selection'))return void _0x245552['consumable']['consume'](_0x372086['item'],_0x4ed864['name']);const _0x4f7dcc=_0x245552['mapper']['toViewElement'](_0x372086['item']);if(_0x372086['item']['is']('element')&&_0x5deeac['model']['schema']['isBlock'](_0x372086['item'])&&!_0x4f7dcc['getCustomProperty']('addHighlight')){_0x245552['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f7dcc),_0x245552['writer']['setAttribute']('data-suggestion',_0x5d4b11,_0x4f7dcc),_0x245552['writer']['setAttribute']('data-author-id',_0x4cad8c,_0x4f7dcc),_0x245552['mapper']['bindElementToMarker'](_0x4f7dcc,_0x372086['markerName']),_0x13938e&&(this['activeMarkers']['includes'](_0x372086['markerName'])?_0x245552['writer']['addClass']('ck-suggestion-marker--active',_0x4f7dcc):_0x245552['writer']['removeClass']('ck-suggestion-marker--active',_0x4f7dcc));for(const _0x42da6b of _0x5deeac['model']['createRangeIn'](_0x372086['item'])['getItems']())_0x245552['consumable']['consume'](_0x42da6b,_0x4ed864['name']);_0x245552['consumable']['consume'](_0x372086['item'],_0x4ed864['name']);}};_0x5deeac['conversion']['for']('dataDowncast')['add'](_0x25e5f0=>{_0x25e5f0['on']('addMarker:suggestion:formatBlock',(_0x25143e,_0x4deed1,_0x50f958)=>{_0x50f958['options']['showSuggestionHighlights']&&_0x47bf7a({'showActiveMarkers':!0x1})(_0x25143e,_0x4deed1,_0x50f958);},{'priority':'highest'});}),_0x5deeac['conversion']['for']('dataDowncast')['add'](_0x24e0c7=>{_0x24e0c7['on']('addMarker:suggestion:attribute',(_0x4eb423,_0x543d52,_0x12e22c)=>{_0x12e22c['options']['showSuggestionHighlights']&&_0x47bf7a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4eb423,_0x543d52,_0x12e22c);},{'priority':'highest'});}),_0x5deeac['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x13328f,_0x46f47a)=>_0x46f47a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x13328f['substr'](0xb)}}),_0x5deeac['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5e609f,{writer:_0x99df0d})=>{let _0x3eb24f='suggestion:'+_0x5e609f['getAttribute']('suggestion-type')+':'+_0x5e609f['getAttribute']('id');return _0x5e609f['getAttribute']('marker-count')&&(_0x3eb24f+=':'+_0x5e609f['getAttribute']('marker-count')),_0x99df0d['createElement']('$marker',{'data-name':_0x3eb24f});}}),_0x5deeac['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5deeac['conversion']['for']('editingDowncast')['add'](_0x267b36=>{_0x267b36['on']('addMarker:suggestion:formatBlock',_0x47bf7a(),{'priority':'high'});}),_0x5deeac['conversion']['for']('editingDowncast')['add'](_0x590ca0=>{_0x590ca0['on']('addMarker:suggestion:attribute',_0x47bf7a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5deeac['conversion']['for']('editingDowncast')['add'](_0x32f95f=>{_0x32f95f['on']('removeMarker:suggestion:formatBlock',(_0x33de96,_0x27870c,_0x391f30)=>{const _0x5ba507=_0x391f30['mapper']['markerNameToElements'](_0x27870c['markerName']);if(_0x5ba507){for(const _0x539e92 of _0x5ba507)_0x539e92['getCustomProperty']('addHighlight')||(_0x391f30['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x539e92),_0x391f30['writer']['removeAttribute']('data-suggestion',_0x539e92),_0x391f30['writer']['removeAttribute']('data-author-id',_0x539e92),_0x391f30['mapper']['unbindElementFromMarkerName'](_0x539e92,_0x27870c['markerName']));}},{'priority':'high'});}),_0x5deeac['conversion']['for']('editingDowncast')['add'](_0xbedb4e=>{_0xbedb4e['on']('removeMarker:suggestion:attribute',(_0x4d8cb6,_0x41623f,_0x46deec)=>{const _0x3e23c3=_0x46deec['mapper']['markerNameToElements'](_0x41623f['markerName']);if(!_0x3e23c3)return;const {id:_0x3bad43}=this['_splitMarkerName'](_0x41623f['markerName']),_0x51ffc6=this['_suggestions']['get'](_0x3bad43),_0x444861=this['_getAttributeKey'](_0x51ffc6);if(this['_isBlockAttribute'](_0x444861)){for(const _0x1f9682 of _0x3e23c3)_0x1f9682['getCustomProperty']('addHighlight')||(_0x46deec['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1f9682),_0x46deec['writer']['removeAttribute']('data-suggestion',_0x1f9682),_0x46deec['writer']['removeAttribute']('data-author-id',_0x1f9682),_0x46deec['mapper']['unbindElementFromMarkerName'](_0x1f9682,_0x41623f['markerName']));}},{'priority':'high'});}),_0x5deeac['model']['document']['registerPostFixer'](_0x1dea20=>{let _0x4af7bc=!0x1;const _0x433d8c=Array['from'](_0x5deeac['model']['document']['differ']['getChangedMarkers']()),_0x12f2c3=new Set();for(const {name:_0x420470,data:_0x4f8f50}of _0x433d8c){const {group:_0x3589d6,type:_0x3754ec,subType:_0x121f08,id:_0x3bcd33}=this['_splitMarkerName'](_0x420470);if('suggestion'!==_0x3589d6)continue;const _0xecc204=this['_suggestions']['get'](_0x3bcd33);if(null!=_0x4f8f50['newRange']){'formatInline'==_0x3754ec&&(_0x4af7bc=_0x4af7bc||Lt(_0x4f8f50['newRange'],_0x420470,_0x1dea20,_0x5deeac['model']['schema']));const _0x5b31ef='attribute'==_0x3754ec&&this['_isBlockAttribute'](_0x121f08['split']('|')[0x0]);if(_0x4f8f50['newRange']['isCollapsed']||'$graveyard'==_0x4f8f50['newRange']['root']['rootName']||'formatBlock'==_0x3754ec&&!Kt(_0x4f8f50['newRange'])||_0x5b31ef&&!Kt(_0x4f8f50['newRange'])||'deletion'==_0x3754ec&&!(!Gt(_0x59372e=_0x4f8f50['newRange'])&&!function(_0x1e4a25){return _0x1e4a25['start']['parent']==_0x1e4a25['end']['nodeBefore']&&_0x1e4a25['start']['isAtEnd'];}(_0x59372e)))_0x1dea20['removeMarker'](_0x420470),_0x4af7bc=!0x0;else{if(!_0xecc204||!_0xecc204['isInContent'])continue;if(_0x4f8f50['newRange']&&_0x4f8f50['oldRange']&&_0x4f8f50['newRange']['isEqual'](_0x4f8f50['oldRange']))continue;_0x12f2c3['add'](_0xecc204);}}}var _0x59372e;return _0x12f2c3['size']>0x0&&(_0x4af7bc=!!this['_joinWithAdjacentSuggestions'](_0x12f2c3)||_0x4af7bc),_0x4af7bc;}),_0x5deeac['model']['document']['registerPostFixer'](_0x442b8d=>{let _0x4bd7b0=!0x1;for(const _0x1364ec of _0x5deeac['model']['document']['differ']['getChanges']())if('insert'==_0x1364ec['type'])for(const _0x37cbe3 of this['_suggestions']['values']()){if(_0x37cbe3['isMultiRange']||!_0x37cbe3['isInContent'])continue;const _0x42934b='formatBlock'==_0x37cbe3['type'],_0x250fe2=this['_getAttributeKey'](_0x37cbe3),_0x592882=_0x250fe2&&this['_isBlockAttribute'](_0x250fe2);if(!_0x42934b&&!_0x592882)continue;const _0x317582=_0x37cbe3['getFirstRange']();if(_0x317582['start']['parent']!=_0x317582['end']['parent']&&!_0x317582['end']['isAtEnd']){const _0x32848d=_0x5deeac['model']['createPositionAt'](_0x317582['start']['nodeAfter'],'end'),_0x573bb6=_0x5deeac['model']['createRange'](_0x317582['start'],_0x32848d);_0x442b8d['updateMarker'](_0x37cbe3['getFirstMarker'](),{'range':_0x573bb6}),_0x4bd7b0=!0x0;}}return _0x4bd7b0;}),_0x5deeac['model']['document']['registerPostFixer'](_0x2c2d4c=>this['_processAttributeChanges'](_0x2c2d4c)),_0x5deeac['model']['document']['registerPostFixer'](_0x187d50=>!_0x187d50['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x187d50)),_0x5deeac['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5deeac['model']['document']['on']('change:data',(_0xb398c1,_0x414b37)=>{if(!_0x414b37['isLocal']||_0x414b37['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x39a1a7=_0x5deeac['model']['document']['differ']['getChanges']();if(0x0==_0x39a1a7['length'])return;const _0x52b3c8=[],_0x1200a9=_0x39a1a7['filter'](_0x39c23d=>'attribute'==_0x39c23d['type']),_0x4c5d14=_0x39a1a7['filter'](_0x275e96=>'insert'==_0x275e96['type']&&'$text'!=_0x275e96['name']);for(const _0x4f6653 of _0x1200a9)this['_isRegisteredAttribute'](_0x4f6653['attributeKey'])&&_0x52b3c8['push']({'key':_0x4f6653['attributeKey'],'newValue':_0x4f6653['attributeNewValue'],'oldValue':_0x4f6653['attributeOldValue'],'range':Ht(_0x4f6653['range'],_0x5deeac['model'])});for(const _0x115cd2 of _0x4c5d14){if('rename'!=_0x115cd2['action']&&'refresh'!=_0x115cd2['action'])continue;const _0x419977=qt(_0x115cd2['position']['nodeAfter'],_0x5deeac['model']),_0x5f1a2f=_0x115cd2['before'];'rename'==_0x115cd2['action']&&_0x52b3c8['push']({'key':u,'newValue':_0x115cd2['name'],'oldValue':_0x5f1a2f['name'],'range':_0x419977});for(const [_0x459787,_0x463238]of _0x5f1a2f['attributes']){if(!this['_isRegisteredAttribute'](_0x459787))continue;const _0x36ca2d=_0x115cd2['attributes']['get'](_0x459787);_0x463238!==_0x36ca2d&&_0x52b3c8['push']({'key':_0x459787,'newValue':_0x36ca2d,'oldValue':_0x463238,'range':_0x419977});}for(const [_0x390e87,_0xed09aa]of _0x115cd2['attributes'])this['_isRegisteredAttribute'](_0x390e87)&&(_0x5f1a2f['attributes']['has'](_0x390e87)||_0x52b3c8['push']({'key':_0x390e87,'newValue':_0xed09aa,'oldValue':null,'range':_0x419977}));}0x0!=_0x52b3c8['length']&&_0x5deeac['model']['enqueueChange'](_0x414b37,_0x71aa9f=>{const _0x14da8b=_0x437d48();for(const {range:_0x1f57d6,key:_0xc83f2f,oldValue:_0x55eb5f,newValue:_0x1d873b}of _0x52b3c8)this['markAttributeChange'](_0x1f57d6,_0xc83f2f,_0x55eb5f,_0x1d873b,{'groupId':_0x14da8b});this['_reduceExistingSuggestions'](_0x71aa9f,_0x52b3c8);});},{'priority':'lowest'}),_0x5deeac['model']['markers']['on']('update:suggestion',(_0xdb95d9,_0x412be1,_0x585291)=>{if(null==_0x585291){const {id:_0x41df29}=this['_splitMarkerName'](_0x412be1['name']),_0x1ea4e7=this['_suggestions']['get'](_0x41df29);_0x1ea4e7&&_0x1ea4e7['addMarkerName'](_0x412be1['name']);}}),_0x5deeac['model']['document']['on']('change:data',()=>{const _0x5dad79=Array['from'](_0x5deeac['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2c6321=>'suggestion'===this['_splitMarkerName'](_0x2c6321['name'])['group']);if(0x0===_0x5dad79['length'])return;_0x5dad79['sort']((_0x226686,_0x14be82)=>{const _0x3a2e5b=_0x226686['data']['oldRange'],_0x1bb217=_0x14be82['data']['oldRange'];return null===_0x3a2e5b&&null===_0x1bb217?0x0:null===_0x3a2e5b&&null!==_0x1bb217?-0x1:null!==_0x3a2e5b&&null===_0x1bb217?0x1:_0x3a2e5b['start']['isBefore'](_0x1bb217['start'])?-0x1:0x1;});const _0xc472c3=new Set(),_0x3db215=new Set();for(const {name:_0x10aac0,data:_0x450821}of _0x5dad79){const {id:_0x416335}=this['_splitMarkerName'](_0x10aac0);if(null===_0x450821['oldRange']){const _0xeede1c=this['_handleNewSuggestionMarker'](_0x10aac0);_0x3db215['add'](_0xeede1c);}else{const _0x447f5c=this['_suggestions']['get'](_0x416335);null!==_0x450821['newRange']||_0x447f5c['isInContent']?(_0xc472c3['add'](_0x447f5c['head']),_0x3db215['add'](_0x447f5c)):this['_removeSuggestion'](_0x447f5c);}}_0x3db215['size']>0x0&&this['_refreshSuggestionsChain'](_0x3db215);for(const _0x568095 of _0xc472c3)this['fire']('suggestionChanged',_0x568095);}),_0x5deeac['model']['on']('applyOperation',(_0x19a21b,_0x48948e)=>{const _0x5c6035=_0x48948e[0x0];if(!this['_suggestions']['size'])return;if(!_0x5c6035['isDocumentOperation'])return;if(_0x5c6035['batch']['isUndo']||!_0x5c6035['batch']['isLocal'])return;let _0x419eba,_0xc9a53b;switch(_0x5c6035['type']){case'insert':_0x419eba=_0x5deeac['model']['createPositionAt'](_0x5c6035['position']),_0xc9a53b=_0x419eba['getShiftedBy'](_0x5c6035['howMany']);break;case'split':_0x419eba=_0x5deeac['model']['createPositionAt'](_0x5c6035['splitPosition']),_0xc9a53b=_0x5deeac['model']['createPositionAt'](_0x5c6035['moveTargetPosition']);break;case'move':_0x419eba=_0x5deeac['model']['createPositionAt'](_0x5c6035['targetPosition']),_0xc9a53b=_0x419eba['getShiftedBy'](_0x5c6035['howMany']);break;default:return;}const _0x30b402=_0x5deeac['model']['createRange'](_0x419eba,_0xc9a53b);_0x5deeac['model']['change'](()=>{for(const {suggestion:_0xc76f9a,meta:_0x45e3e7}of this['_findSuggestions'](_0x30b402)){if(_0xc76f9a['isMultiRange'])continue;if('formatInline'==_0xc76f9a['type'])continue;const _0x31d1ad=this['_getAttributeKey'](_0xc76f9a);if(_0x31d1ad&&this['_isBlockAttribute'](_0x31d1ad)&&'split'!=_0x5c6035['type'])continue;const _0x4be939=_0xc76f9a['data']&&_0xc76f9a['data']['multipleBlocks'];('formatBlock'!=_0xc76f9a['type']||'split'==_0x5c6035['type']&&!_0x4be939)&&(_0x45e3e7['containsRangeInObject']||'insertion'==_0xc76f9a['type']&&_0x45e3e7['isOwn']||_0xc76f9a['getFirstRange']()['containsRange'](_0x30b402)&&this['_breakSuggestionMarker'](_0xc76f9a,_0x419eba,_0xc9a53b));}});},{'priority':'lowest'}),_0x5deeac['model']['on']('deleteContent',(_0x4becdc,_0x368651)=>{const _0x28437a=_0x368651[0x0],_0x62f5e2=_0x368651[0x1];if(_0x62f5e2&&_0x62f5e2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x28437a['isCollapsed'])return;const _0x262714=_0x5deeac['model']['schema'],{start:_0x3905e6,end:_0x1e10b6}=_0x28437a['getFirstRange'](),_0x4028d6=_0x3905e6['nodeAfter']&&_0x262714['isLimit'](_0x3905e6['nodeAfter'])?null:_0x262714['getNearestSelectionRange'](_0x3905e6,'forward'),_0x581f1c=_0x1e10b6['nodeBefore']&&_0x262714['isLimit'](_0x1e10b6['nodeBefore'])?null:_0x262714['getNearestSelectionRange'](_0x1e10b6,'backward'),_0x372cd3=_0x5deeac['model']['createRange'](_0x4028d6?_0x4028d6['start']:_0x3905e6,_0x581f1c?_0x581f1c['end']:_0x1e10b6);_0x5deeac['model']['change'](_0x3974dd=>{this['markDeletion'](_0x372cd3);const _0x9e963=_0x5deeac['model']['schema']['getNearestSelectionRange'](_0x372cd3['start']);_0x28437a['is']('documentSelection')?_0x3974dd['setSelection'](_0x9e963):_0x28437a['setTo'](_0x9e963);}),_0x4becdc['stop']();},{'priority':_0x2c349d['normal']+0xa}),_0x5deeac['model']['on']('insertContent',(_0xb1a1c5,_0x37d4db)=>{const _0x143148=_0x37d4db[_0x37d4db['length']-0x1];_0x143148&&_0x143148['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5deeac['model']['change'](()=>{let _0x5b0ae8=_0x5deeac['model']['insertContent'](_0x37d4db[0x0],_0x37d4db[0x1],_0x37d4db[0x2],{'forceDefaultExecution':!0x0});if(!_0x5b0ae8)return;_0xb1a1c5['return']=_0x5b0ae8['clone']();const _0x4b3164=_0x5b0ae8['end']['nodeBefore'],_0xd54f7=_0x5deeac['model']['schema'];_0x4b3164&&_0xd54f7['isBlock'](_0x4b3164)&&!_0xd54f7['isObject'](_0x4b3164)&&(_0x5b0ae8=_0x5deeac['model']['createRange'](_0x5b0ae8['start'],_0x5deeac['model']['createPositionAt'](_0x4b3164,'end'))),this['markInsertion'](_0x5b0ae8);}),_0xb1a1c5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x51b816=new O(_0x5deeac,this['_suggestions']);_0x5deeac['commands']['add']('acceptSuggestion',_0x51b816),this['enableCommand']('acceptSuggestion');const _0x33a2f4=new R(_0x5deeac,this['_suggestions']);_0x5deeac['commands']['add']('discardSuggestion',_0x33a2f4),this['enableCommand']('discardSuggestion'),_0x5deeac['commands']['add']('acceptAllSuggestions',new x(_0x5deeac,_0x51b816,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5deeac['commands']['add']('discardAllSuggestions',new x(_0x5deeac,_0x33a2f4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5deeac['commands']['add']('acceptSelectedSuggestions',new E(_0x5deeac,_0x51b816,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5deeac['commands']['add']('discardSelectedSuggestions',new E(_0x5deeac,_0x33a2f4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3565d5=_0x5deeac['plugins']['get']('CommentsRepository');this['listenTo'](_0x3565d5,'addComment',(_0x5addea,{threadId:_0x35b8fd})=>{const _0x4a34ab=this['_suggestions']['get'](_0x35b8fd);_0x4a34ab&&_0x4a34ab['commentThread']&&0x1===_0x4a34ab['commentThread']['length']&&this['_updateSuggestionData'](_0x35b8fd,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3565d5,'removeComment',(_0x4c9768,{threadId:_0x1096e8})=>{const _0x5b523a=this['_suggestions']['get'](_0x1096e8);_0x5b523a&&_0x5b523a['commentThread']&&!_0x5b523a['commentThread']['length']&&this['_updateSuggestionData'](_0x1096e8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x17f881){const _0xcc8f39=_0x4f2da2([0x53,0x79,0x66,0x72,0x71,0x30,0x6b,0x4d,0x54,0x55,0x31,0x44,0x62,0x36,0x35,0x33,0x69,0x46,0x74,0x50,0x4b,0x4c,0x6c,0x68,0x70,0x78,0x64,0x65,0x63,0x38,0x73,0x6f,0x61,0x37,0x32,0x59,0x34,0x58,0x57,0x39,0x75,0x7a,0x6e,0x51,0x47,0x67,0x52,0x76,0x45,0x43,0x6a,0x77,0x4f,0x4e,0x49,0x4a,0x5a,0x56,0x48,0x41,0x6d,0x42]),_0x1f3de2=0x125a7558,_0x979288=0x125d14d0^_0x1f3de2,_0x20599e=window[_0x4f2da2([0x44,0x61,0x74,0x65])][_0x4f2da2([0x6e,0x6f,0x77])](),_0x52abba=_0x17f881[_0x4f2da2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12d515=new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe3726=>{_0x52abba[_0x4f2da2([0x6f,0x6e,0x63,0x65])](_0x4f2da2([0x72,0x65,0x61,0x64,0x79]),_0xe3726);}),_0x475279={[_0x4f2da2([0x6b,0x74,0x79])]:_0x4f2da2([0x45,0x43]),[_0x4f2da2([0x75,0x73,0x65])]:_0x4f2da2([0x73,0x69,0x67]),[_0x4f2da2([0x63,0x72,0x76])]:_0x4f2da2([0x50,0x2d,0x32,0x35,0x36]),[_0x4f2da2([0x78])]:_0x4f2da2([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]),[_0x4f2da2([0x79])]:_0x4f2da2([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]),[_0x4f2da2([0x61,0x6c,0x67])]:_0x4f2da2([0x45,0x53,0x32,0x35,0x36])},_0x605f97=_0x52abba[_0x4f2da2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f2da2([0x67,0x65,0x74])](_0x4f2da2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xfd0252(){let _0x50941c,_0x4bf3e6=null,_0x1c0810=null;try{if(_0x605f97==_0x4f2da2([0x47,0x50,0x4c]))return _0x4f2da2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50941c=_0x280113(),!_0x50941c)return _0x4f2da2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50941c[_0x4f2da2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c0810=_0x1d1a33(_0x50941c[_0x4f2da2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50941c[_0x4f2da2([0x6a,0x74,0x69])])),await _0x31ac81()?_0x58082c()?_0x24c902()?_0x4f2da2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45a842()?(_0x50941c[_0x4f2da2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f2da2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4bf3e6=_0x406cf5(_0x4f2da2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50941c[_0x4f2da2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f2da2([0x74,0x72,0x69,0x61,0x6c])&&(_0x4bf3e6=_0x406cf5(_0x4f2da2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a1187()):_0x4f2da2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f2da2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f2da2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x52fdba){return _0x4f2da2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x24c902(){const _0xdbd70d=[_0x4f2da2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f2da2([0x74,0x72,0x69,0x61,0x6c])][_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50941c[_0x4f2da2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20599e/0x3e8:0xe10*_0x979288;return _0x50941c[_0x4f2da2([0x65,0x78,0x70])]<_0xdbd70d;}function _0x58082c(){const _0x3fd2e4=_0x50941c[_0x4f2da2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3fd2e4)return!0x1;if(_0x3fd2e4[_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f2da2([0x2a])))return!0x0;if(_0x3fd2e4[_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f2da2([0x54,0x43])))return!0x0;if(_0x3fd2e4[_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f2da2([0x52,0x54,0x43]))){if(_0xae7fb6())return!0x0;if(_0x2cc6f7()||_0x27dc66())return!0x0;}return!0x1;}function _0x45a842(){const _0x11dd7d=_0x50941c[_0x4f2da2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11dd7d||0x0==_0x11dd7d[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x414171}=new URL(window[_0x4f2da2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x11dd7d[_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x414171))return!0x0;const _0x11395a=_0x414171[_0x4f2da2([0x73,0x70,0x6c,0x69,0x74])](_0x4f2da2([0x2e]));return _0x11dd7d[_0x4f2da2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x448f23=>_0x448f23[_0x4f2da2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f2da2([0x2a])))[_0x4f2da2([0x6d,0x61,0x70])](_0x14e891=>_0x14e891[_0x4f2da2([0x73,0x70,0x6c,0x69,0x74])](_0x4f2da2([0x2e])))[_0x4f2da2([0x73,0x6f,0x6d,0x65])](_0x5ac538=>_0x11395a[_0x4f2da2([0x65,0x76,0x65,0x72,0x79])]((_0x1f4889,_0x36f9dc)=>_0x5ac538[_0x36f9dc]===_0x1f4889||_0x5ac538[_0x36f9dc]===_0x4f2da2([0x2a])));}function _0x3a1187(){return _0x4bf3e6&&_0x1c0810?new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c5e39,_0xa32954)=>{_0x4bf3e6[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x3c5e39,_0xa32954),_0x1c0810[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x5107b9=>{_0x5107b9!=_0x4f2da2([0x56,0x61,0x6c,0x69,0x64])&&_0x3c5e39(_0x5107b9);},_0xa32954);}):_0x4bf3e6||_0x1c0810||_0x4f2da2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d1a33(_0x1a156b,_0x17b964){return new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d9a22=>{if(_0x4aaefa())return _0x4d9a22(_0x4f2da2([0x56,0x61,0x6c,0x69,0x64]));_0x56e51b(),_0x52abba[_0x4f2da2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f2da2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b90da=!0x1;const _0x48fa34=_0x437d48();function _0x2a7974(_0x4fe51e){return!!_0x4fe51e&&(typeof _0x4fe51e===_0x4f2da2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4fe51e===_0x4f2da2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4fe51e[_0x4f2da2([0x74,0x68,0x65,0x6e])]===_0x4f2da2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4fe51e[_0x4f2da2([0x63,0x61,0x74,0x63,0x68])]===_0x4f2da2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x130810(_0x3fa228){_0x2efe17(_0x3fa228)[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x382cdd=>{if(!_0x382cdd||_0x382cdd[_0x4f2da2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f2da2([0x6f,0x6b]))return _0x4f2da2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x463ad4(_0x2509e5(_0x48fa34+_0x17b964))!=_0x382cdd[_0x4f2da2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f2da2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f2da2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x33b7bf=>(_0x20f740(),_0x33b7bf),()=>{const _0x34ed7e=_0x2fd5b4();return null==_0x34ed7e?(_0x20f740(),_0x4f2da2([0x56,0x61,0x6c,0x69,0x64])):_0x4f2da2(_0x20599e-_0x34ed7e>(0x3656f158^_0x1f3de2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x4d9a22)[_0x4f2da2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d9a22(_0x4f2da2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4b37f2=0x126c9bd8^_0x1f3de2;function _0x20f740(){const _0x291df1=_0x4f2da2([0x6c,0x6c,0x63,0x74,0x2d])+_0x463ad4(_0x2509e5(_0x1a156b)),_0x55c090=_0x45b094(_0x463ad4(window[_0x4f2da2([0x4d,0x61,0x74,0x68])][_0x4f2da2([0x63,0x65,0x69,0x6c])](_0x20599e/_0x4b37f2)));window[_0x4f2da2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f2da2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x291df1,_0x55c090);}function _0x2fd5b4(){const _0x93b40a=_0x4f2da2([0x6c,0x6c,0x63,0x74,0x2d])+_0x463ad4(_0x2509e5(_0x1a156b)),_0x2af2a6=window[_0x4f2da2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f2da2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x93b40a);return _0x2af2a6?window[_0x4f2da2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45b094(_0x2af2a6),0x10)*_0x4b37f2:null;}function _0x2efe17(_0xec68b3){return new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58cd99,_0x2ffbfc)=>{_0xec68b3[_0x4f2da2([0x74,0x68,0x65,0x6e])](_0x58cd99,_0x2ffbfc),window[_0x4f2da2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ffbfc,0x125ba198^_0x1f3de2);});}}_0x52abba[_0x4f2da2([0x6f,0x6e])](_0x4f2da2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x574834,_0x160bf5)=>{if(_0x160bf5[0x0]!=_0x1a156b)return _0x4d9a22(_0x4f2da2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x160bf5[0x1]={..._0x160bf5[0x1],[_0x4f2da2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x48fa34};},{[_0x4f2da2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f2da2([0x68,0x69,0x67,0x68])}),_0x52abba[_0x4f2da2([0x6f,0x6e])](_0x4f2da2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12d2b7=>{_0x2a7974(_0x12d2b7[_0x4f2da2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b90da=!0x0,_0x130810(_0x12d2b7[_0x4f2da2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f2da2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f2da2([0x6c,0x6f,0x77])}),_0x12d515[_0x4f2da2([0x74,0x68,0x65,0x6e])](()=>{_0x2b90da||_0x4d9a22(_0x4f2da2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4aaefa(){return _0x52abba[_0x4f2da2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f2da2([0x76,0x69,0x65,0x77])][_0x4f2da2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f2da2([0x61,0x75,0x74,0x6f]);}function _0x56e51b(){_0x52abba[_0x4f2da2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f2da2([0x76,0x69,0x65,0x77])][_0x4f2da2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f2da2([0x61,0x75,0x74,0x6f]);}}function _0x406cf5(_0x236f3f){const _0x526519=[new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d93fd=>setTimeout(_0x2d93fd,0x12534b94^_0x1f3de2)),_0x12d515[_0x4f2da2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e07c6=>{let _0x16ca6d=0x0;_0x52abba[_0x4f2da2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f2da2([0x6f,0x6e])](_0x4f2da2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ccae2,_0x397ce5)=>{_0x397ce5[0x0][_0x4f2da2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16ca6d++,_0x16ca6d==(0x125a74a0^_0x1f3de2)&&(_0x4e07c6(),_0x1ccae2[_0x4f2da2([0x6f,0x66,0x66])]());});}))];return window[_0x4f2da2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f2da2([0x72,0x61,0x63,0x65])](_0x526519)[_0x4f2da2([0x74,0x68,0x65,0x6e])](()=>_0x236f3f);}async function _0xf6fbfb(){await _0x12d515,_0x52abba[_0x4f2da2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f2da2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4e26f2,_0x52abba[_0x4f2da2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f2da2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4e26f2,_0x52abba[_0x4f2da2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f2da2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xae7fb6(){return _0x4db4b5(_0x4f2da2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2b78ba(_0x4f2da2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f2da2([0x73,0x74,0x61,0x74,0x65])]==_0x4f2da2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2cc6f7(){return _0x4db4b5(_0x4f2da2([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 _0x27dc66(){return _0x4db4b5(_0x4f2da2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x7fad4c(_0x540864){const _0x45b3c8=_0x2e82e7();_0x52abba[_0x45b3c8]=_0x4f2da2([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x540864,_0x540864!=_0x4f2da2([0x56,0x61,0x6c,0x69,0x64])&&_0xf6fbfb();}function _0x2e82e7(){const _0xe92774=window[_0x4f2da2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f2da2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f2da2([0x6e,0x6f,0x77])]())[_0x4f2da2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f2da2([0x2e]),'');let _0x22d53a=_0x4f2da2([0x53]);for(let _0x361e14=0x0;_0x361e14<_0xe92774[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x361e14+=0x2){let _0x23c5e3=window[_0x4f2da2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe92774[_0x4f2da2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x361e14,_0x361e14+0x2));_0x23c5e3>=_0xcc8f39[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x23c5e3-=_0xcc8f39[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22d53a+=_0xcc8f39[_0x23c5e3];}return _0x22d53a;}function _0x280113(){const _0x2500bb=_0x605f97[_0x4f2da2([0x73,0x70,0x6c,0x69,0x74])](_0x4f2da2([0x2e]));if(0x3!=_0x2500bb[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x258dd4(_0x2500bb[0x1]);function _0x258dd4(_0x5eed21){const _0x6cfb1f=_0x1346f9(_0x5eed21);return _0x6cfb1f&&_0x5536b0()?_0x6cfb1f:null;function _0x5536b0(){const _0x3b1a95=_0x6cfb1f[_0x4f2da2([0x6a,0x74,0x69])],_0x1ff955=window[_0x4f2da2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b1a95[_0x4f2da2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b1a95[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31fbd6={..._0x6cfb1f,[_0x4f2da2([0x6a,0x74,0x69])]:_0x3b1a95[_0x4f2da2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3b1a95[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31fbd6[_0x4f2da2([0x76,0x63])],_0x2509e5(_0x31fbd6)==_0x1ff955;}}}async function _0x31ac81(){let _0x5cbffc=!0x0;try{const _0x2ee265=_0x605f97[_0x4f2da2([0x73,0x70,0x6c,0x69,0x74])](_0x4f2da2([0x2e])),[_0x5ce15f,_0x350740,_0x54146a]=_0x2ee265;return _0x2f22e8(_0x5ce15f),await _0x520bf3(_0x5ce15f,_0x350740,_0x54146a),_0x5cbffc;}catch(_0x3c6125){return!0x1;}function _0x2f22e8(_0x549fba){const _0x3694da=_0x1346f9(_0x549fba);_0x3694da&&_0x3694da[_0x4f2da2([0x61,0x6c,0x67])]==_0x4f2da2([0x45,0x53,0x32,0x35,0x36])||(_0x5cbffc=!0x1);}async function _0x520bf3(_0x1e43be,_0x3a5f9e,_0x1747f7){const _0xb4d8f0=window[_0x4f2da2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f2da2([0x66,0x72,0x6f,0x6d])](_0xb92a02(_0x1747f7),_0x5b52ee=>_0x5b52ee[_0x4f2da2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ba875=new window[(_0x4f2da2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f2da2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e43be+_0x4f2da2([0x2e])+_0x3a5f9e),_0x58edd5=window[_0x4f2da2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f2da2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x58edd5)return;const _0x165606=await _0x58edd5[_0x4f2da2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f2da2([0x6a,0x77,0x6b]),_0x475279,{[_0x4f2da2([0x6e,0x61,0x6d,0x65])]:_0x4f2da2([0x45,0x43,0x44,0x53,0x41]),[_0x4f2da2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f2da2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f2da2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x58edd5[_0x4f2da2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f2da2([0x6e,0x61,0x6d,0x65])]:_0x4f2da2([0x45,0x43,0x44,0x53,0x41]),[_0x4f2da2([0x68,0x61,0x73,0x68])]:{[_0x4f2da2([0x6e,0x61,0x6d,0x65])]:_0x4f2da2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x165606,_0xb4d8f0,_0x4ba875)||(_0x5cbffc=!0x1);}}function _0x1346f9(_0x25c537){return _0x25c537[_0x4f2da2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f2da2([0x65,0x79]))?JSON[_0x4f2da2([0x70,0x61,0x72,0x73,0x65])](_0xb92a02(_0x25c537)):null;}function _0xb92a02(_0x19391d){return window[_0x4f2da2([0x61,0x74,0x6f,0x62])](_0x19391d[_0x4f2da2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f2da2([0x2b]))[_0x4f2da2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f2da2([0x2f])));}function _0x2509e5(_0x2a383c){let _0x40c7f4=0x1505;function _0xa72dee(_0x2d23a0){for(let _0x249e61=0x0;_0x249e61<_0x2d23a0[_0x4f2da2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x249e61++){const _0xe5a327=_0x2d23a0[_0x4f2da2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x249e61);_0x40c7f4=(_0x40c7f4<<0x5)+_0x40c7f4+_0xe5a327,_0x40c7f4&=_0x40c7f4;}}function _0x310d58(_0x23abd4){Array[_0x4f2da2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x23abd4)?_0x23abd4[_0x4f2da2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x310d58):_0x23abd4&&typeof _0x23abd4==_0x4f2da2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f2da2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x23abd4)[_0x4f2da2([0x73,0x6f,0x72,0x74])]()[_0x4f2da2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x111246,_0x15cf3c])=>{_0xa72dee(_0x111246),_0x310d58(_0x15cf3c);}):_0xa72dee(window[_0x4f2da2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x23abd4));}return _0x310d58(_0x2a383c),_0x40c7f4>>>0x0;}function _0x463ad4(_0x5b6930){return _0x5b6930[_0x4f2da2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f2da2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f2da2([0x30]));}function _0x45b094(_0x42e059){return _0x42e059[_0x4f2da2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f2da2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f2da2([0x6a,0x6f,0x69,0x6e])]('');}function _0x4db4b5(_0x12c2f3){return _0x52abba[_0x4f2da2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f2da2([0x68,0x61,0x73])](_0x12c2f3);}function _0x2b78ba(_0x5cc423){return _0x52abba[_0x4f2da2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f2da2([0x67,0x65,0x74])](_0x5cc423);}function _0x4e26f2(){}function _0x4f2da2(_0x580ffc){return _0x580ffc['map'](_0x273f6b=>String['fromCharCode'](_0x273f6b))['join']('');}_0x7fad4c(await _0xfd0252());}(this);}set['adapter'](_0x3917a8){if(this['_adapter'])throw new _0x3e1147('track-changes-adapter-already-set',this);this['_adapter']=_0x3917a8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x52b9b7=!0x1,toJSON:_0x53398a=!0x1}={}){const _0x2caec0=[];for(const _0x4c024e of this['_suggestions']['values']())_0x52b9b7&&!_0x4c024e['isInContent']||_0x2caec0['push'](_0x4c024e);return _0x53398a?_0x2caec0['map'](_0x2fa74f=>_0x2fa74f['toJSON']()):_0x2caec0;}['getSuggestion'](_0x3bdaf6){const _0x43d145=this['_suggestions']['get'](_0x3bdaf6);if(!_0x43d145)throw new _0x3e1147('track-changes-suggestion-not-found',this);return _0x43d145;}['hasSuggestion'](_0x265ef2){return this['_suggestions']['has'](_0x265ef2);}['addSuggestionData'](_0x30aa57){const {authorId:_0x373aba,id:_0x5bd5b2,attributes:_0x403d6d}=_0x30aa57,[_0x18dff0,_0x55441d]=_0x30aa57['type']['split'](':'),_0x5acb6c=this['_suggestions']['get'](_0x5bd5b2)||this['_createSuggestion'](_0x18dff0,_0x55441d,_0x5bd5b2,_0x373aba,_0x403d6d);if(this['_addThreadToSuggestion'](_0x5acb6c),this['_checkSuggestionCorrectness'](_0x5acb6c,_0x18dff0,_0x55441d||null,_0x373aba),_0x5acb6c['createdAt']=_0x30aa57['createdAt'],_0x5acb6c['_isDataLoaded']=!0x0,_0x403d6d&&_0x403d6d['@external']){const _0x4ba81d=_0x403d6d['@external'],_0x14cc7b=this['_getExternalAuthor'](_0x4ba81d['authorName']);_0x5acb6c['authoredAt']=_0x4ba81d['createdAt'],_0x5acb6c['author']=_0x14cc7b,_0x5acb6c['isExternal']=!0x0;}else _0x5acb6c['authoredAt']=_0x30aa57['createdAt'];switch(_0x30aa57['data']&&(_0x5acb6c['data']=_0x30aa57['data']),_0x30aa57['attributes']&&(_0x5acb6c['attributes']=_0x30aa57['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5acb6c['_saved']=!0x0),this['_suggestionState']['get'](_0x5acb6c)){case'notReady':this['_suggestionState']['set'](_0x5acb6c,'dataReady');break;case'markerReady':_0x5acb6c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5acb6c])),this['_refreshSuggestionsChain'](new Set([_0x5acb6c])),this['_suggestionState']['set'](_0x5acb6c,'ready'),this['fire']('suggestionLoaded',_0x5acb6c)):this['_suggestionState']['set'](_0x5acb6c,'removed');}return _0x5acb6c;}['acceptSuggestion'](_0x3ee8df){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41931f of _0x3ee8df['getAllAdjacentSuggestions']())_0x41931f['accept']();});});}['discardSuggestion'](_0x11c6f8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x45b835 of _0x11c6f8['getAllAdjacentSuggestions']())_0x45b835['discard']();});});}['enableCommand'](_0x3bc312,_0x3df545){const _0x460d17=this['editor']['commands']['get'](_0x3bc312);if(!_0x460d17)throw new _0x3e1147('track-changes-command-not-found',this,{'commandName':_0x3bc312});if(this['_enabledCommands']['has'](_0x460d17))throw new _0x3e1147('track-changes-enable-command-twice',this,{'commandName':_0x3bc312});this['_enabledCommands']['add'](_0x460d17),_0x3df545&&_0x460d17['on']('execute',(_0x125d36,_0x37adb9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x37adb9['length']>0x0&&_0x37adb9[_0x37adb9['length']-0x1]&&_0x37adb9[_0x37adb9['length']-0x1]['forceDefaultExecution']?_0x37adb9['pop']():(_0x125d36['return']=_0x3df545((..._0x5ebc8f)=>_0x460d17['execute'](..._0x5ebc8f,{'forceDefaultExecution':!0x0}),..._0x37adb9),_0x125d36['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3cf525){let _0x40563c,_0x19103e;const _0x3b3093=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x40563c=_0x3cf525();}catch(_0x406f19){_0x19103e=_0x406f19;}return _0x3b3093||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x19103e&&_0x3e1147['rethrowUnexpectedError'](_0x19103e,this),_0x40563c;}['markInsertion'](_0x1238b1,_0x56a853=null,_0xb49a43={}){if(_0x1238b1['isCollapsed'])return null;const _0x127222=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3f3848,meta:_0x50526a}of this['_findSuggestions'](_0x1238b1,'insertion'))if(_0x50526a['isOwn']){if(!_0x50526a['isNextTo']){if(_0x50526a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x3f3848,_0xb49a43))continue;return _0x3f3848;}if(Qt(_0x3f3848,_0xb49a43))return _0x3f3848;this['_breakSuggestionMarker'](_0x3f3848,_0x1238b1['start'],_0x1238b1['end']);break;}if(_0x56a853==_0x3f3848['subType']&&Qt(_0x3f3848,_0xb49a43)){const _0x792c89=_0x3f3848['getFirstRange']();return _0x792c89['start']['isEqual'](_0x1238b1['end'])?this['_setSuggestionRange'](_0x3f3848,this['_model']['createRange'](_0x1238b1['start'],_0x792c89['end'])):this['_setSuggestionRange'](_0x3f3848,this['_model']['createRange'](_0x792c89['start'],_0x1238b1['end'])),_0x3f3848;}}const _0x245e43=_0x437d48(),_0x450f88=_0x127222['id'],_0x34f055=_0x56a853?'insertion:'+_0x56a853:'insertion',_0x756ef2=this['_setSuggestionData']({'id':_0x245e43,'type':_0x34f055,'createdAt':new Date(),'authorId':_0x450f88,'attributes':_0xb49a43});return this['_addSuggestionMarker'](_0x34f055,_0x245e43,_0x450f88,_0x1238b1),_0x756ef2;}['markMultiRangeInsertion'](_0x5c5da0,_0x3e7c71='multi',_0x27c850={}){const _0x1c41ca=this['editor']['plugins']['get']('Users')['me'],_0x3e47eb=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3e7c71,'join');for(const _0x9dc198 of this['getSuggestions']())if(_0x9dc198['author']['id']==_0x1c41ca['id']&&'insertion'==_0x9dc198['type']&&_0x9dc198['subType']==_0x3e7c71&&Qt(_0x9dc198,_0x27c850)&&(_0x3e47eb(_0x9dc198['getRanges'](),_0x5c5da0)||_0x3e47eb(_0x5c5da0,_0x9dc198['getRanges']()))){for(const _0x298273 of _0x5c5da0)_0x9dc198['addRange'](_0x298273);return _0x9dc198;}for(const {suggestion:_0x10955c,meta:_0x153e9b}of this['_findSuggestions'](_0x5c5da0,'insertion')){if(!_0x153e9b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x153e9b['containsRangeInObject'])continue;if(!Qt(_0x10955c,_0x27c850))continue;let _0x3d04a7=!0x0;for(const _0x2d8674 of _0x10955c['getRanges']())for(const _0x437439 of _0x5c5da0)if(!_0x2d8674['containsRange'](_0x437439)){_0x3d04a7=!0x1;break;}if(_0x3d04a7)return _0x10955c;}const _0x311789=_0x437d48(),_0x12c8bd=_0x1c41ca['id'],_0x59eeef='insertion:'+_0x3e7c71,_0x2669a9=this['_setSuggestionData']({'id':_0x311789,'type':_0x59eeef,'createdAt':new Date(),'authorId':_0x12c8bd,'attributes':_0x27c850});for(const _0x4862cb of _0x5c5da0)this['_addSuggestionMarker'](_0x59eeef,_0x311789,_0x12c8bd,_0x4862cb,o['getMultiRangeId']());return _0x2669a9;}['markInlineFormat'](_0x3100d4,_0x4f7301,_0x1f2b53=null,_0x5c0c54={}){if(_0x1f2b53=_0x1f2b53||Jt(_0x4f7301),_0x3100d4['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2f085f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f2b53,'accept');return this['forceDefaultExecution'](()=>_0x2f085f([_0x3100d4],_0x4f7301,_0x5c0c54)),null;}const _0x41cac3=this['editor']['plugins']['get']('Users')['me'],_0x5f37f3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x589a60,meta:_0x2ff504}of this['_findSuggestions'](_0x3100d4,'insertion'))_0x2ff504['isOwn']&&!_0x2ff504['isInsideObject']&&_0x5f37f3['push'](..._0x589a60['getRanges']());}const _0x5665d3=function(_0x504e45,_0x3825cf){const _0x49f33b=[];for(const _0x49c99a of _0x3825cf){const _0x563375=_0x504e45['getIntersection'](_0x49c99a);_0x563375&&_0x49f33b['push'](_0x563375);}return _0x49f33b;}(_0x3100d4,_0x5f37f3),_0xbc8520=function(_0x67cadd,_0x114c0d){const _0xf1b2ee=[_0x67cadd];for(const _0x112b0a of _0x114c0d){let _0x1ba8a4=0x0;for(;_0x1ba8a4<_0xf1b2ee['length'];){const _0x5b94e1=_0xf1b2ee[_0x1ba8a4]['getDifference'](_0x112b0a);_0xf1b2ee['splice'](_0x1ba8a4,0x1,..._0x5b94e1),_0x1ba8a4+=_0x5b94e1['length'];}}return _0xf1b2ee;}(_0x3100d4,_0x5f37f3);_0x5665d3['length']&&this['_model']['change'](()=>{for(const _0x5bd2ce of _0x5665d3){const _0x812022=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f2b53,'accept');this['forceDefaultExecution'](()=>_0x812022([_0x5bd2ce],_0x4f7301,_0x5c0c54));}});for(const _0x4e5ac9 of _0xbc8520){let _0x2f8ad2=null,_0x46f38a=_0x4e5ac9['start'],_0x40d58c=_0x4e5ac9['end'];for(const {suggestion:_0x7977b9,meta:_0x39ee3f}of this['_findSuggestions'](_0x4e5ac9,'formatInline')){if(!_0x39ee3f['isOwn'])continue;if(_0x7977b9['subType']!=_0x1f2b53)continue;if(!Qt(_0x7977b9,_0x5c0c54))continue;const _0x190042=_0x7977b9['getFirstRange']();if(_0x190042['containsRange'](_0x4e5ac9,!0x0))return null;_0x46f38a=_0x46f38a['isBefore'](_0x190042['start'])?_0x46f38a:_0x190042['start'],_0x40d58c=_0x40d58c['isAfter'](_0x190042['end'])?_0x40d58c:_0x190042['end'],_0x2f8ad2?_0x190042['start']['isBefore'](_0x2f8ad2['getFirstRange']()['start'])?(_0x2f8ad2['removeMarkers'](),_0x2f8ad2=_0x7977b9):_0x7977b9['removeMarkers']():_0x2f8ad2=_0x7977b9;}const _0x559a98=this['_model']['createRange'](_0x46f38a,_0x40d58c);if(_0x2f8ad2)this['_setSuggestionRange'](_0x2f8ad2,_0x559a98);else{const _0x8041a3=_0x437d48(),_0x3a8590=_0x41cac3['id'];this['_setSuggestionData']({'id':_0x8041a3,'type':'formatInline:'+_0x1f2b53,'data':_0x4f7301,'createdAt':new Date(),'authorId':_0x3a8590,'attributes':_0x5c0c54}),this['_addSuggestionMarker']('formatInline:'+_0x1f2b53,_0x8041a3,_0x3a8590,_0x559a98);}}return null;}['markBlockFormat'](_0x435a67,_0x5cf08e,_0x9e7b09=[],_0x29f871=null,_0x176948={}){_0x5cf08e['formatGroupId']||(_0x5cf08e['formatGroupId']=_0x5cf08e['commandName']),_0x5cf08e['multipleBlocks']=_0x435a67['is']('range'),_0x29f871=_0x29f871||Jt(_0x5cf08e);const _0x1abed7=_0x9e7b09['map'](_0x2a0d02=>qt(_0x2a0d02,this['_model'])),_0x398f1a=_0x435a67['is']('range')?_0x435a67:qt(_0x435a67,this['_model']);if('never'===this['_trackFormatChanges']){const _0x32b96c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29f871,'accept');return this['forceDefaultExecution'](()=>_0x32b96c([_0x398f1a],_0x5cf08e,_0x176948)),null;}_0x1abed7['push'](_0x398f1a);let _0x47081e=!0x0;for(const _0x111721 of _0x1abed7)if(!this['_rangeIsInLocalUserInsertion'](_0x111721)){_0x47081e=!0x1;break;}if(_0x47081e&&'always'!==this['_trackFormatChanges']){const _0x1ac1a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29f871,'accept');return this['forceDefaultExecution'](()=>_0x1ac1a7([_0x398f1a],_0x5cf08e,_0x176948)),null;}let _0x33bc3f=null,_0x3db96b=_0x398f1a['start'],_0x1ff511=_0x398f1a['end'];for(const {suggestion:_0x214e40,meta:_0x574d07}of this['_findSuggestions'](_0x398f1a,'formatBlock')){if(!_0x574d07['isOwn'])continue;if(_0x574d07['isNextTo']||_0x574d07['containsRangeInObject']||_0x574d07['isInsideObject'])continue;if(_0x214e40['data']['formatGroupId']!=_0x5cf08e['formatGroupId'])continue;if(!Qt(_0x214e40,_0x176948))continue;const _0x5a0eec=_0x214e40['getFirstRange']();if(_0x214e40['subType']==_0x29f871){if(_0x5a0eec['containsRange'](_0x398f1a,!0x0))return null;_0x3db96b=_0x3db96b['isBefore'](_0x5a0eec['start'])?_0x3db96b:_0x5a0eec['start'],_0x1ff511=_0x1ff511['isAfter'](_0x5a0eec['end'])?_0x1ff511:_0x5a0eec['end'],_0x33bc3f?_0x5a0eec['start']['isBefore'](_0x33bc3f['getFirstRange']()['start'])?(_0x33bc3f['removeMarkers'](),_0x33bc3f=_0x214e40):_0x214e40['removeMarkers']():_0x33bc3f=_0x214e40;}else{const _0x21094c=_0x398f1a['getIntersection'](_0x5a0eec);this['_cutOutSuggestionMarker'](_0x214e40,_0x21094c);}}const _0xf6d99c=this['editor']['plugins']['get']('Users')['me'],_0x467f15=_0x437d48(),_0x4e3bca=_0xf6d99c['id'];if(_0x33bc3f)return this['_setSuggestionRange'](_0x33bc3f,this['_model']['createRange'](_0x3db96b,_0x1ff511)),_0x33bc3f;{const _0x210b03=this['_setSuggestionData']({'id':_0x467f15,'type':'formatBlock:'+_0x29f871,'data':_0x5cf08e,'createdAt':new Date(),'authorId':_0x4e3bca,'attributes':_0x176948});return this['_addSuggestionMarker']('formatBlock:'+_0x29f871,_0x467f15,_0x4e3bca,this['_model']['createRange'](_0x3db96b,_0x1ff511)),_0x210b03;}}['markMultiRangeBlockFormat'](_0x5caedc,_0x6484be,_0x40818f=[],_0x165c65=null,_0x1dfd29={}){_0x6484be['formatGroupId']||(_0x6484be['formatGroupId']=_0x6484be['commandName']);const _0x3b1aa3=_0x5caedc[0x0];_0x6484be['multipleBlocks']=_0x3b1aa3['is']('range'),_0x165c65=_0x165c65||Jt(_0x6484be);const _0x3b672d=_0x40818f['map'](_0x599061=>qt(_0x599061,this['_model'])),_0xa2755e=_0x3b1aa3['is']('range')?_0x5caedc:_0x5caedc['map'](_0x27574d=>qt(_0x27574d,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4a3933=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x165c65,'accept');return this['forceDefaultExecution'](()=>_0x4a3933(_0xa2755e,_0x6484be,_0x1dfd29)),null;}_0x3b672d['push'](..._0xa2755e);let _0x435b70=!0x0;for(const _0x18ce87 of _0x3b672d)if(!this['_rangeIsInLocalUserInsertion'](_0x18ce87)){_0x435b70=!0x1;break;}if(_0x435b70&&'always'!==this['_trackFormatChanges']){const _0x57e43e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x165c65,'accept');return this['forceDefaultExecution'](()=>_0x57e43e(_0xa2755e,_0x6484be,_0x1dfd29)),null;}const _0x3305cd=this['editor']['plugins']['get']('Users')['me'];for(const _0x1e265b of this['getSuggestions']()){if(_0x1e265b['author']['id']!=_0x3305cd['id'])continue;if('formatBlock'!=_0x1e265b['type']||_0x1e265b['data']['formatGroupId']!=_0x6484be['formatGroupId'])continue;if(!Qt(_0x1e265b,_0x1dfd29))continue;const _0x482132=_0x1e265b['subType']==_0x165c65;for(let _0xa6f304=0x0;_0xa6f304<_0xa2755e['length'];_0xa6f304++){const _0x2687f0=_0xa2755e[_0xa6f304];for(const _0x27f3a1 of _0x1e265b['getMarkers']()){const _0x5249d1=_0x27f3a1['getRange']();if(_0x2687f0['isEqual'](_0x5249d1)){_0x482132?(_0xa2755e['splice'](_0xa6f304,0x1),_0xa6f304--):_0x1e265b['removeMarker'](_0x27f3a1['name']);break;}}}}if(0x0==_0xa2755e['length'])return null;const _0x3f0f32=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x165c65,'join');for(const _0x30dcd5 of this['getSuggestions']())if(_0x30dcd5['author']['id']==_0x3305cd['id']&&'formatBlock'==_0x30dcd5['type']&&_0x30dcd5['data']['formatGroupId']==_0x6484be['formatGroupId']&&_0x30dcd5['subType']==_0x165c65&&Qt(_0x30dcd5,_0x1dfd29)&&(_0x3f0f32(_0x30dcd5['getRanges'](),_0xa2755e)||_0x3f0f32(_0xa2755e,_0x30dcd5['getRanges']()))){for(const _0x318d25 of _0xa2755e)_0x30dcd5['addRange'](_0x318d25);return _0x30dcd5;}const _0x59c4d4=_0x437d48(),_0x33cb15=_0x3305cd['id'],_0x4b0a86='formatBlock:'+_0x165c65,_0x3eafad=this['_setSuggestionData']({'id':_0x59c4d4,'type':_0x4b0a86,'data':_0x6484be,'createdAt':new Date(),'authorId':_0x33cb15,'attributes':_0x1dfd29});for(const _0x5177c5 of _0xa2755e)this['_addSuggestionMarker'](_0x4b0a86,_0x59c4d4,_0x33cb15,_0x5177c5,o['getMultiRangeId']());return _0x3eafad;}['markDeletion'](_0x543e67,_0x29ff98=null,_0x6b0e64={}){if(_0x543e67['isCollapsed'])return null;const _0x5551f0=this['editor']['plugins']['get']('Users')['me'],_0x5d12f8=new _0x4a3ae4(_0x543e67['start'],_0x543e67['end']);for(const {suggestion:_0x1c0fc4,meta:_0xeef348}of this['_findSuggestions'](_0x5d12f8,'insertion'))if(_0xeef348['isOwn']&&!_0xeef348['isNextTo']){if(_0x1c0fc4['isMultiRange']){const _0x4626d3=_0x1c0fc4['getRanges']()['filter'](_0x563f18=>'$graveyard'!=_0x563f18['root']['rootName']);_0x4626d3['every'](_0x2773ba=>_0x5d12f8['containsRange'](_0x2773ba,!0x0))&&_0x1c0fc4['discard']();if(_0x4626d3['some'](_0x39b4c3=>_0x39b4c3['containsRange'](_0x5d12f8,!0x0))){const _0x2d9174=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29ff98,'accept');return this['forceDefaultExecution'](()=>_0x2d9174([_0x5d12f8],null,_0x6b0e64)),null;}}else{const _0x542e87=_0x5d12f8['getIntersection'](_0x1c0fc4['getFirstRange']());null!==_0x542e87&&_0x1c0fc4['_onDiscard']([_0x542e87],null,_0x6b0e64);}}if(_0x5d12f8['detach'](),_0x5d12f8['isCollapsed']||'$graveyard'==_0x5d12f8['root']['rootName'])return null;let _0x15199d=null,_0x1781cc=_0x5d12f8['start'],_0x4e8b97=_0x5d12f8['end'];const _0x2c9d41=this['_findSuggestions'](_0x5d12f8,'deletion');for(const {suggestion:_0x3e2892,meta:_0x3afc2b}of _0x2c9d41){const _0x45fb0e=this['_model']['createRange'](_0x1781cc,_0x4e8b97);if(_0x3afc2b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3afc2b['containsRangeInObject']&&!_0x3afc2b['isInsideObject'])){if(_0x3e2892['isMultiRange']){if(!Qt(_0x3e2892,_0x6b0e64))continue;let _0x566820=!0x0;for(const _0xad6a08 of _0x3e2892['getRanges']()){if(_0xad6a08['containsRange'](_0x45fb0e,!0x0))return _0x3e2892;_0x45fb0e['containsRange'](_0xad6a08)||(_0x566820=!0x1);}_0x566820&&_0x3e2892['discard']();}else{const _0x4cfbb2=_0x3e2892['getFirstRange']();if(_0x4cfbb2['containsRange'](_0x45fb0e,!0x0))return _0x3e2892;if(!Qt(_0x3e2892,_0x6b0e64)){_0x45fb0e['containsRange'](_0x4cfbb2)?_0x3e2892['removeMarkers']():_0x4cfbb2['containsPosition'](_0x1781cc)?_0x1781cc=_0x4cfbb2['end']:_0x4cfbb2['containsPosition'](_0x4e8b97)&&(_0x4e8b97=_0x4cfbb2['start']);continue;}_0x1781cc=_0x1781cc['isBefore'](_0x4cfbb2['start'])?_0x1781cc:_0x4cfbb2['start'],_0x4e8b97=_0x4e8b97['isAfter'](_0x4cfbb2['end'])?_0x4e8b97:_0x4cfbb2['end'],_0x6b0e64=Object['assign']({},_0x3e2892['attributes']),_0x15199d?_0x4cfbb2['start']['isBefore'](_0x15199d['getFirstRange']()['start'])?(_0x15199d['removeMarkers'](),_0x15199d=_0x3e2892):_0x3e2892['removeMarkers']():_0x15199d=_0x3e2892;}}}if(_0x15199d)return this['_setSuggestionRange'](_0x15199d,this['_model']['createRange'](_0x1781cc,_0x4e8b97)),_0x15199d;{const _0xc4d184=_0x437d48(),_0x238369=this['_model']['createRange'](_0x1781cc,_0x4e8b97),_0x458950=_0x5551f0['id'],_0x4aa9b5=_0x29ff98?'deletion:'+_0x29ff98:'deletion',_0x5ee797=this['_setSuggestionData']({'id':_0xc4d184,'type':_0x4aa9b5,'createdAt':new Date(),'authorId':_0x458950,'attributes':_0x6b0e64});return this['_addSuggestionMarker'](_0x4aa9b5,_0xc4d184,_0x458950,_0x238369),_0x5ee797;}}['markMultiRangeDeletion'](_0x4a883f,_0x37ce86='multi',_0x146653={}){const _0x52e49b=this['editor']['plugins']['get']('Users')['me'],_0x1ebfdd=_0x4a883f['map'](_0x4feda3=>new _0x4a3ae4(_0x4feda3['start'],_0x4feda3['end'])),_0x1cab5a=new Set();for(const {suggestion:_0x19d5a5,meta:_0x27c0ef}of this['_findSuggestions'](_0x1ebfdd,'insertion'))_0x27c0ef['isOwn']&&!_0x27c0ef['isNextTo']&&_0x1cab5a['add'](_0x19d5a5);for(const _0x179de1 of _0x1cab5a)if(_0x179de1['isMultiRange']){const _0x14d90e=_0x179de1['getRanges']();(!_0x179de1['attributes']||!_0x179de1['attributes']['skipNestingCheck'])&&(_0x14d90e['every'](_0x496829=>_0x1ebfdd['some'](_0x3ea8e7=>_0x3ea8e7['containsRange'](_0x496829,!0x0)))&&_0x179de1['discard']());if(_0x1ebfdd['every'](_0x24dc60=>_0x14d90e['some'](_0x577c2a=>_0x577c2a['containsRange'](_0x24dc60,!0x0)))){const _0x5e8d89=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37ce86,'accept');return this['forceDefaultExecution'](()=>_0x5e8d89(_0x4a883f,null,_0x146653)),null;}}else{const _0x4f7648=_0x179de1['getFirstRange']();_0x1ebfdd['some'](_0x1b678d=>_0x1b678d['containsRange'](_0x4f7648,!0x0))&&_0x179de1['discard']();if(_0x1ebfdd['every'](_0x8de3c2=>_0x4f7648['containsRange'](_0x8de3c2,!0x0))){const _0x48499c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37ce86,'accept');return this['forceDefaultExecution'](()=>_0x48499c(_0x1ebfdd,null,_0x146653)),null;}}const _0x376a78=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37ce86,'join');let _0x3e4e91=null;for(const _0x374412 of this['getSuggestions']())if(_0x374412['author']['id']==_0x52e49b['id']&&_0x374412['isInContent']&&'deletion'==_0x374412['type']&&_0x374412['subType']==_0x37ce86&&Qt(_0x374412,_0x146653)&&(_0x376a78(_0x374412['getRanges'](),_0x1ebfdd)||_0x376a78(_0x1ebfdd,_0x374412['getRanges']()))){if(_0x3e4e91){if(_0x374412['commentThread']&&_0x374412['commentThread']['length'])continue;for(const _0x3532b3 of _0x374412['getRanges']())_0x3e4e91['isIntersectingWithRange'](_0x3532b3)||_0x3e4e91['addRange'](_0x3532b3);_0x374412['removeMarkers']();}else{_0x3e4e91=_0x374412;for(const _0x83250c of _0x1ebfdd)_0x374412['isIntersectingWithRange'](_0x83250c)||_0x374412['addRange'](_0x83250c);}}if(_0x3e4e91)return _0x3e4e91;_0x1cab5a['clear']();for(const {suggestion:_0x5550e4,meta:_0x3762ec}of this['_findSuggestions'](_0x1ebfdd,'deletion'))_0x3762ec['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3762ec['containsRangeInObject']&&!_0x3762ec['isInsideObject'])&&Qt(_0x5550e4,_0x146653)&&_0x1cab5a['add'](_0x5550e4);for(const _0x160ca7 of _0x1cab5a){const _0x3aa97e=_0x160ca7['getRanges']();if(!_0x146653||!_0x146653['skipNestingCheck']){if(_0x1ebfdd['every'](_0x553067=>_0x3aa97e['some'](_0x112217=>_0x112217['containsRange'](_0x553067,!0x0))))return _0x160ca7;}(!_0x160ca7['attributes']||!_0x160ca7['attributes']['skipNestingCheck'])&&(_0x3aa97e['every'](_0x1982a0=>_0x1ebfdd['some'](_0x3ef504=>_0x3ef504['containsRange'](_0x1982a0,!0x0)))&&_0x160ca7['discard']());}const _0x5ae395=_0x437d48(),_0x51ea50=_0x52e49b['id'],_0x574f08='deletion:'+_0x37ce86,_0x325fb0=this['_setSuggestionData']({'id':_0x5ae395,'type':_0x574f08,'createdAt':new Date(),'authorId':_0x51ea50,'attributes':_0x146653});for(const _0x48c37e of _0x1ebfdd)_0x48c37e['detach'](),_0x48c37e['isCollapsed']||'$graveyard'==_0x48c37e['root']['rootName']||this['_addSuggestionMarker'](_0x574f08,_0x5ae395,_0x51ea50,_0x48c37e,o['getMultiRangeId']());return _0x325fb0;}['markAttributeChange'](_0x1a939a,_0x351d2a,_0x360ce1,_0x14db33,_0x40b0b9){if(_0x1a939a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1b3aec=this['editor']['plugins']['get']('Users')['me']['id'],_0x1986e8=Array['from'](this['_suggestions']['values']())['filter'](_0x5e54f8=>'attribute'==_0x5e54f8['type']&&_0x5e54f8['data']['key']==_0x351d2a&&_0x5e54f8['isIntersectingWithRange'](_0x1a939a));if('default'===this['_trackFormatChanges']){const _0x57b3ae=this['_findSuggestions'](_0x1a939a,'insertion')['filter'](({meta:_0x3a0f4e})=>_0x3a0f4e['isOwn']&&!_0x3a0f4e['isInsideObject']&&!_0x3a0f4e['isNextTo'])['map'](({suggestion:_0x1c64b1})=>_0x1c64b1);_0x1986e8['unshift'](..._0x57b3ae);}const _0x18246c=new Map([[_0x1a939a,_0x360ce1]]);for(const _0xd5634b of _0x1986e8){const _0x4dca0f='attribute'==_0xd5634b['type']?_0xd5634b['data']['oldValue']:void 0x0,_0x4650a3=_0xd5634b['getFirstRange'](),_0x52102b=Array['from'](_0x18246c['keys']())['find'](_0x4fa4b3=>_0x4fa4b3['isIntersecting'](_0x4650a3));if(!_0x52102b)continue;const _0x58e452=_0x52102b['getDifference'](_0x4650a3);this['_isBlockAttribute'](_0x351d2a)&&'insertion'==_0xd5634b['type']&&0x0!=_0x58e452['length']||(_0x18246c['delete'](_0x52102b),_0x58e452['forEach'](_0x26583a=>{_0x18246c['set'](_0x26583a,_0x360ce1);}),'insertion'!=_0xd5634b['type']&&_0x4dca0f!=_0x14db33&&_0x18246c['set'](_0x52102b['getIntersection'](_0x4650a3),_0x4dca0f));}const _0x2f8cb5=[];for(const [_0x393c11,_0x31f40c]of _0x18246c){const _0x3e297d=_0x437d48(),_0x5d6c5d={'key':_0x351d2a,'oldValue':_0x31f40c,'newValue':_0x14db33};_0x351d2a['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':_0x351d2a});const _0x3b84de=('attribute:'+(_0x351d2a+'|'+Jt({'newValue':_0x14db33})))['substring'](0x0,0x3c),_0x4fb672=this['_setSuggestionData']({'id':_0x3e297d,'type':_0x3b84de,'data':_0x5d6c5d,'createdAt':new Date(),'authorId':_0x1b3aec,'attributes':_0x40b0b9});_0x2f8cb5['push'](_0x4fb672),this['_addSuggestionMarker'](_0x3b84de,_0x3e297d,_0x1b3aec,_0x393c11);}return _0x2f8cb5;}['enableDefaultAttributesIntegration'](_0x304cb6){this['enableCommand'](_0x304cb6,(_0xb7bc29,..._0x257c92)=>{this['_recordAttributeChanges'](()=>{_0xb7bc29(..._0x257c92);});});}['registerBlockAttribute'](_0x406b53){this['_blockAttributeKeys']['add'](_0x406b53);}['registerInlineAttribute'](_0x369170){this['_inlineAttributeKeys']['add'](_0x369170);}['_getAttributeKey'](_0x2a8ba8){return'attribute'==_0x2a8ba8['type']?_0x2a8ba8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3e675c,_0x4b498c){const _0x48fcc5=_0x3e675c['getFirstMarker']();this['_model']['change'](_0x47008a=>{_0x47008a['updateMarker'](_0x48fcc5,{'range':_0x4b498c});});}['_addThreadToSuggestion'](_0x13d466){const _0x584fe0=_0x13d466['id'],_0x352518=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x584fe0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x352518,'threadId':_0x584fe0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3d0723=this['_commentsRepository']['getCommentThread'](_0x584fe0);_0x3d0723['unbind']('isRemovable'),_0x3d0723['isRemovable']=!0x1,_0x13d466['commentThread']=_0x3d0723;}['_checkSuggestionCorrectness'](_0x3f3725,_0x4f7d88,_0x23c773,_0x15c892){if(_0x3f3725['type']!=_0x4f7d88||_0x3f3725['subType']!=_0x23c773||_0x3f3725['creator']['id']!=_0x15c892)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3e1147('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3f634b,_0x27324f){const _0x4691f6=_0x3f634b['getFirstRange']();if(_0x27324f['isEqual'](_0x4691f6))_0x3f634b['removeMarkers']();else{if(_0x4691f6['containsRange'](_0x27324f)){const _0x124a8c=this['_model']['createPositionAt'](_0x27324f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f634b,this['_model']['createRange'](_0x4691f6['start'],_0x124a8c));const _0x50b1c2=_0x437d48(),_0x56dcb3=_0x3f634b['creator']['id'],_0x22c022=_0x3f634b['type']+':'+_0x3f634b['subType'];this['_setSuggestionData']({'id':_0x50b1c2,'type':_0x22c022,'createdAt':new Date(),'authorId':_0x56dcb3,'data':_0x3f634b['data'],'attributes':_0x3f634b['attributes']});const _0x2bb214=this['_model']['createPositionAt'](_0x27324f['end']['parent'],'after'),_0x3cf8b3=this['_model']['createRange'](_0x2bb214,_0x4691f6['end']);this['_addSuggestionMarker'](_0x22c022,_0x50b1c2,_0x56dcb3,_0x3cf8b3);}else{if(_0x4691f6['containsPosition'](_0x27324f['start'])){const _0x3cbf65=this['_model']['createPositionAt'](_0x27324f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f634b,this['_model']['createRange'](_0x4691f6['start'],_0x3cbf65));}else{const _0x2a7de2=this['_model']['createPositionAt'](_0x27324f['end']['parent'],'after');this['_setSuggestionRange'](_0x3f634b,this['_model']['createRange'](_0x2a7de2,_0x4691f6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x17ee5f){for(const {suggestion:_0x2578b8,meta:_0x44da5e}of this['_findSuggestions'](_0x17ee5f,'insertion')){if(!_0x44da5e['isOwn'])continue;const _0x338862=_0x2578b8['getRanges']();for(const _0x24dac0 of _0x338862)if(!_0x17ee5f['getDifference'](_0x24dac0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x364ca1){const _0x2a8bfb=this['editor']['plugins']['get']('Users')['getUser'](_0x364ca1);if(!_0x2a8bfb)throw new _0x3e1147('track-changes-user-not-found',this);return _0x2a8bfb;}['_getExternalAuthor'](_0x50ee9e){const _0x33823e=this['editor']['plugins']['get']('Users'),_0x556740=_0x255576('external:'+_0x50ee9e),_0x4d9a3b=_0x33823e['getUser'](_0x556740);return _0x4d9a3b||_0x33823e['addUser']({'id':_0x556740,'name':_0x50ee9e});}['_createSuggestion'](_0x23956f,_0x2077a0,_0x20ac92,_0x407ed2,_0x818119){const _0x3c2bcb=this['_getAuthorFromId'](_0x407ed2),_0x4eff96=this['_suggestionFactory']['buildSuggestion'](_0x23956f,_0x2077a0,_0x20ac92,_0x3c2bcb,_0x818119,_0x95af95=>{this['_updateSuggestionData'](_0x20ac92,{'attributes':_0x95af95});const _0x32b61e=this['getSuggestion'](_0x20ac92);this['_joinWithAdjacentSuggestions'](new Set([_0x32b61e])),this['_refreshSuggestionsChain'](new Set([_0x32b61e]));});return this['listenTo'](_0x4eff96,'accept',()=>{this['_updateSuggestionData'](_0x20ac92,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4eff96,'discard',()=>{this['_updateSuggestionData'](_0x20ac92,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x20ac92,_0x4eff96),this['_suggestionState']['set'](_0x4eff96,'notReady'),_0x4eff96;}['_splitMarkerName'](_0x31743b){const _0x30e8f1=_0x31743b['split'](':');return{'group':_0x30e8f1[0x0],'type':_0x30e8f1[0x1],'subType':_0x30e8f1['length']>=0x5?_0x30e8f1[0x2]:null,'id':_0x30e8f1['length']<0x5?_0x30e8f1[0x2]:_0x30e8f1[0x3],'authorId':_0x30e8f1['length']<0x5?_0x30e8f1[0x3]:_0x30e8f1[0x4],'markerCount':0x6==_0x30e8f1['length']?_0x30e8f1[0x5]:null};}['_breakSuggestionMarker'](_0x58ed1f,_0x56db30,_0x18f507){const _0x5cda3f=_0x58ed1f['getFirstRange'](),_0x4aff68=_0x5cda3f['start'],_0x5826d9=_0x5cda3f['end'];this['_setSuggestionRange'](_0x58ed1f,this['_model']['createRange'](_0x4aff68,_0x56db30));const _0x3c9765=_0x437d48(),_0x3b65a7=_0x58ed1f['creator']['id'],_0x6e66be=_0x58ed1f['type']+(_0x58ed1f['subType']?':'+_0x58ed1f['subType']:'');this['_setSuggestionData']({'id':_0x3c9765,'type':_0x6e66be,'createdAt':new Date(),'authorId':_0x3b65a7,'originalSuggestionId':_0x58ed1f['id'],'attributes':_0x58ed1f['attributes'],'data':_0x58ed1f['data']});const _0x58e9a8=this['_getAttributeKey'](_0x58ed1f);('formatBlock'==_0x58ed1f['type']||_0x58e9a8&&this['_isBlockAttribute'](_0x58e9a8))&&(_0x18f507=this['_model']['createPositionBefore'](_0x18f507['parent'])),this['_addSuggestionMarker'](_0x6e66be,_0x3c9765,_0x3b65a7,this['_model']['createRange'](_0x18f507,_0x5826d9));}['_findSuggestions'](_0x47b719,_0x3bcb33=null){const _0x5dbdf9=[],_0xbfc1c7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x47b719)||(_0x47b719=[_0x47b719]);for(const _0x540e2e of this['getSuggestions']()){if(!_0x540e2e['isInContent'])continue;if(_0x3bcb33&&_0x540e2e['type']!=_0x3bcb33)continue;let _0x2b4dcd=!0x1;for(const _0x439f68 of _0x540e2e['getRanges']()){for(const _0x5d6b1f of _0x47b719){const _0x2c380a=_0x5d6b1f['start']['isEqual'](_0x439f68['end'])||_0x5d6b1f['end']['isEqual'](_0x439f68['start']);if(_0x2c380a||_0x5d6b1f['getIntersection'](_0x439f68)){const _0x5841ff=_0x5d6b1f['containsRange'](_0x439f68)&&Pt(this['_model']['schema'],_0x439f68['start'],_0x5d6b1f),_0x2d8b99=_0x439f68['containsRange'](_0x5d6b1f)&&Pt(this['_model']['schema'],_0x5d6b1f['start'],_0x439f68);_0x5dbdf9['push']({'suggestion':_0x540e2e,'meta':{'isOwn':_0xbfc1c7==_0x540e2e['author'],'isNextTo':_0x2c380a,'isInsideObject':_0x5841ff,'containsRangeInObject':_0x2d8b99}}),_0x2b4dcd=!0x0;break;}}if(_0x2b4dcd)break;}}return _0x5dbdf9;}['_addSuggestionMarker'](_0x315750,_0x13d2f3,_0xa50bd8,_0x3a96d1,_0x234124){this['_model']['change'](_0x16f042=>{let _0x57fe0e='suggestion:'+_0x315750+':'+_0x13d2f3+':'+_0xa50bd8;_0x234124&&(_0x57fe0e=_0x57fe0e+':'+_0x234124),_0x16f042['addMarker'](_0x57fe0e,{'range':_0x3a96d1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xc8152){const _0x1e8059=_0xc8152['previous'],_0x39d4b8=_0xc8152['next'];_0xc8152['previous']=null,_0xc8152['next']=null,null!=_0x1e8059&&_0x1e8059['next']==_0xc8152&&(_0x1e8059['next']=_0x39d4b8),null!=_0x39d4b8&&_0x39d4b8['previous']==_0xc8152&&(_0x39d4b8['previous']=_0x1e8059),'ready'==this['_suggestionState']['get'](_0xc8152)&&(this['_suggestionState']['set'](_0xc8152,'removed'),this['fire']('suggestionUnloaded',_0xc8152,_0x1e8059,_0x39d4b8));}['_setSuggestionData'](_0x4b50b9){const _0x14997d=_0x4b50b9['id'],_0x122be8=this['addSuggestionData'](_0x4b50b9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xdd86bc=this['editor']['plugins']['get']('PendingActions'),_0x3bd76b=_0x122be8['hasComments'],_0x12d0bd=_0x122be8['subType']?_0x122be8['type']+':'+_0x122be8['subType']:_0x122be8['type'],_0xc15c69=this['editor']['locale'],_0x57fc72=_0xdd86bc['add'](c(_0xc15c69,'PENDING_ACTION_SUGGESTION')),_0x4e6685={'id':_0x14997d,'type':_0x12d0bd,'hasComments':_0x3bd76b,'data':_0x4b50b9['data']||null,'originalSuggestionId':_0x4b50b9['originalSuggestionId']||null,'attributes':_0x122be8['attributes']};this['_adapter']['addSuggestion'](_0x4e6685)['then'](_0x536009=>{_0x122be8['_saved']=!0x0,_0xdd86bc['remove'](_0x57fc72),_0x536009&&_0x536009['createdAt']&&(this['_suggestions']['get'](_0x14997d)['createdAt']=_0x536009['createdAt']);})['catch'](_0x12ea32=>{throw _0xebf613('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x122be8['discard']();}),_0x122be8['stopListening'](),this['_suggestions']['delete'](_0x122be8['id']),this['_suggestionState']['delete'](_0x122be8),_0x12ea32;});}return _0x122be8;}['_isBlockAttribute'](_0x12db3b){return this['_blockAttributeKeys']['has'](_0x12db3b);}['_updateSuggestionData'](_0x4905c3,_0x12601d){const _0x3ca537=this['editor']['plugins']['get']('PendingActions'),_0x42f927=this['getSuggestion'](_0x4905c3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x42f927['_saved']){const _0x108221=_0x3ca537['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4905c3,_0x12601d)['then'](()=>{_0x3ca537['remove'](_0x108221);});}else _0x42f927['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4905c3,_0x12601d);});}}['_getSuggestionData'](_0x58a850){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3e1147('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x58a850);}['_handleNewSuggestionMarker'](_0x5a0a45){const {id:_0x5df88a,type:_0x2865ce,subType:_0x4b95f9,authorId:_0x5603a4}=this['_splitMarkerName'](_0x5a0a45),_0x4da7e4=this['_suggestions']['get'](_0x5df88a)||this['_createSuggestion'](_0x2865ce,_0x4b95f9,_0x5df88a,_0x5603a4,{});switch(this['_checkSuggestionCorrectness'](_0x4da7e4,_0x2865ce,_0x4b95f9,_0x5603a4),this['_suggestionState']['get'](_0x4da7e4)){case'notReady':this['_getSuggestionData'](_0x5df88a)['then'](_0x570d46=>{let _0x59c211=Promise['resolve']();_0x570d46['hasComments']&&(_0x59c211=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5df88a})),_0x59c211['then'](()=>{this['addSuggestionData'](_0x570d46)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4da7e4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5df88a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4da7e4,'ready'),this['fire']('suggestionLoaded',_0x4da7e4);break;case'ready':this['fire']('suggestionChanged',_0x4da7e4);}return _0x4da7e4['addMarkerName'](_0x5a0a45),_0x4da7e4;}['_refreshSuggestionsChain'](_0x513f2c){const _0x48a4e9=Array['from'](_0x513f2c),_0x471c74=_0x48a4e9['filter'](_0x34d0e7=>'attribute'==_0x34d0e7['type']);this['_refreshAttributeSuggestionsChain'](_0x471c74);const _0x5dcda8=_0x48a4e9['filter'](_0xc90d72=>!_0xc90d72['isMultiRange']&&'attribute'!=_0xc90d72['type']),_0xfba0b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x227837=>!_0x227837['isMultiRange']&&'attribute'!=_0x227837['type']),_0x5e6b11=_0xfba0b['filter'](_0xf05f4e=>!_0x513f2c['has'](_0xf05f4e)),_0x39e703=new Map(_0xfba0b['map'](_0x443be7=>[_0x443be7,this['_suggestionFactory']['getSuggestionCallback'](_0x443be7['type'],_0x443be7['subType'],'chain')])),_0x46cc2d=new Map(_0xfba0b['map'](_0x14af02=>[_0x14af02,_0x14af02['getFirstRange']()])),_0x4e0329=new Set(),_0x10cde3=new Set();for(let _0x5d455c=0x0;_0x5d455c<_0x5dcda8['length'];_0x5d455c++)_0x288ccf(_0x5dcda8[_0x5d455c],_0x5dcda8,_0x5d455c+0x1);for(let _0x4b4750=0x0;_0x4b4750<_0x5dcda8['length'];_0x4b4750++)_0x288ccf(_0x5dcda8[_0x4b4750],_0x5e6b11,0x0);const _0x5131d5=new Set();for(let _0x8be1c=0x0;_0x8be1c<_0x5dcda8['length'];_0x8be1c++){const _0x39410a=_0x5dcda8[_0x8be1c];!_0x10cde3['has'](_0x39410a)&&_0x39410a['previous']&&(_0x5131d5['add'](_0x39410a['previous']),_0x39410a['previous']['next']===_0x39410a&&(_0x39410a['previous']['next']=null),_0x39410a['previous']=null),!_0x4e0329['has'](_0x39410a)&&_0x39410a['next']&&(_0x5131d5['add'](_0x39410a['next']),_0x39410a['next']['previous']===_0x39410a&&(_0x39410a['next']['previous']=null),_0x39410a['next']=null);}function _0x288ccf(_0x2340cb,_0x14e324,_0x34f6fb){for(let _0xf9b653=_0x34f6fb;_0xf9b653<_0x14e324['length'];_0xf9b653++){const _0x3d6193=_0xe6c073(_0x2340cb,_0x14e324[_0xf9b653]);_0x3d6193&&(_0x3d6193[0x0]['next']=_0x3d6193[0x1],_0x3d6193[0x1]['previous']=_0x3d6193[0x0],_0x4e0329['add'](_0x3d6193[0x0]),_0x10cde3['add'](_0x3d6193[0x1]));}}function _0xe6c073(_0x22ffb3,_0x341de3){if(_0x22ffb3['author']['id']!==_0x341de3['author']['id'])return null;const _0x1dce4e=_0x39e703['get'](_0x22ffb3)(_0x22ffb3,_0x341de3,_0x46cc2d['get'](_0x22ffb3),_0x46cc2d['get'](_0x341de3));if(!_0x1dce4e)return null;return _0x39e703['get'](_0x341de3)(_0x22ffb3,_0x341de3,_0x46cc2d['get'](_0x22ffb3),_0x46cc2d['get'](_0x341de3))?_0x1dce4e[0x1]['commentThread']&&_0x1dce4e[0x1]['commentThread']['length']?null:_0x1dce4e:null;}_0x5131d5['size']&&this['_refreshSuggestionsChain'](_0x5131d5);}['_refreshAttributeSuggestionsChain'](_0x581525){if(0x0==_0x581525['length'])return;const _0x1c13fc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a4e59=>'attribute'==_0x4a4e59['type']&&_0x4a4e59['_isDataLoaded']),_0x3b47e3=[],_0x566935=new Map();for(const _0xcced87 of _0x1c13fc){const _0x1a371d=_0x255576(_0xcced87['attributes']);_0x566935['has'](_0x1a371d)||(_0x566935['set'](_0x1a371d,_0x3b47e3['length']),_0x3b47e3['push']([]));const _0x1dfdc0=_0x566935['get'](_0x1a371d);_0x3b47e3[_0x1dfdc0]['push'](_0xcced87);}!(function(){_0x3b47e3['sort']((_0x1d08c1,_0x3ec4c4)=>{const _0x2bd50d=_0x1d08c1[0x0]['createdAt'],_0xd6b5cb=_0x3ec4c4[0x0]['createdAt'];return _0x2bd50d==_0xd6b5cb?_0x1d08c1[0x0]['attributes']['groupId']<_0x3ec4c4[0x0]['attributes']['groupId']?-0x1:0x1:_0x2bd50d<_0xd6b5cb?-0x1:0x1;});for(const _0x4b9cc1 of _0x3b47e3)_0x4b9cc1['sort']((_0x5d8ab0,_0x7504e6)=>_0x5d8ab0['id']<_0x7504e6['id']?-0x1:0x1);}());for(let _0x4d457d=0x0;_0x4d457d<_0x3b47e3['length'];_0x4d457d++){if(0x0==_0x3b47e3[_0x4d457d]['length'])continue;const _0x4b2800=[];for(let _0x59a975=_0x4d457d+0x1;_0x59a975<_0x3b47e3['length'];_0x59a975++)0x0!=_0x3b47e3[_0x59a975]['length']&&_0xee9d72(_0x3b47e3[_0x4d457d],_0x3b47e3[_0x59a975])&&_0x4b2800['push'](_0x59a975);for(const _0x490cd1 of _0x4b2800)_0x3b47e3[_0x4d457d]=_0x3b47e3[_0x4d457d]['concat'](_0x3b47e3[_0x490cd1]),_0x3b47e3[_0x490cd1]=[];}for(const _0x29b897 of _0x3b47e3)for(let _0x3f6b9d=0x0;_0x3f6b9d<_0x29b897['length'];_0x3f6b9d++){const _0xc85e17=_0x29b897[_0x3f6b9d+0x1]||null;_0x29b897[_0x3f6b9d]['next']!==_0xc85e17&&(_0x29b897[_0x3f6b9d]['next']=_0xc85e17);}for(const _0xbe5662 of _0x3b47e3)for(let _0x205362=0x0;_0x205362<_0xbe5662['length'];_0x205362++){const _0x39ed62=_0xbe5662[_0x205362-0x1]||null;_0xbe5662[_0x205362]['previous']!==_0x39ed62&&(_0xbe5662[_0x205362]['previous']=_0x39ed62);}function _0xee9d72(_0x400569,_0x3f850a){if(_0x400569[0x0]['attributes']['groupId']!==_0x3f850a[0x0]['attributes']['groupId']&&_0x400569[0x0]['author']!==_0x3f850a[0x0]['author'])return!0x1;if(!function(_0x3fe990,_0x136dba){if(!_0x3fe990['hasComments']&&!_0x136dba['hasComments'])return!0x0;if(_0x3fe990['hasComments']&&_0x136dba['hasComments'])return!0x1;if(_0x3fe990['hasComments']&&_0x136dba['createdAt']<_0x3fe990['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x136dba['hasComments']&&_0x3fe990['createdAt']<_0x136dba['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x400569[0x0],_0x3f850a[0x0]))return!0x1;const _0x50ee0d=Vt(_0x400569[0x0]['attributes'],'groupId'),_0x167215=Vt(_0x3f850a[0x0]['attributes'],'groupId');if(!_0x36c7b1(_0x50ee0d,_0x167215))return!0x1;return!!_0x400569['every'](_0x2d2b2e=>_0x3f850a['some'](_0x4172b3=>_0x2d2b2e['getFirstRange']()['isEqual'](_0x4172b3['getFirstRange']())))&&_0x3f850a['every'](_0x421fd4=>_0x400569['some'](_0x293ff8=>_0x421fd4['getFirstRange']()['isEqual'](_0x293ff8['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xe5e2ca){const _0x40a468=Array['from'](_0xe5e2ca),_0x3bbca4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x11a8a5=_0x3bbca4['filter'](_0x4716c6=>!_0xe5e2ca['has'](_0x4716c6)),_0x3e8fa9=new Map(_0x40a468['map'](_0x16987c=>[_0x16987c,this['_suggestionFactory']['getSuggestionCallback'](_0x16987c['type'],_0x16987c['subType'],'join')])),_0x4e376b=new Map(_0x3bbca4['map'](_0x1eb7a9=>[_0x1eb7a9,_0x1eb7a9['getRanges']()]));for(let _0x501e90=0x0;_0x501e90<_0x40a468['length'];_0x501e90++){if(_0x1405b3(this,_0x40a468[_0x501e90],_0x40a468,_0x501e90+0x1))return!0x0;}for(let _0x4929ad=0x0;_0x4929ad<_0x40a468['length'];_0x4929ad++){if(_0x1405b3(this,_0x40a468[_0x4929ad],_0x11a8a5,0x0))return!0x0;}return!0x1;function _0x1405b3(_0x47aff5,_0x40268a,_0x18d226,_0x36fb0d){for(let _0x4368b4=_0x36fb0d;_0x4368b4<_0x18d226['length'];_0x4368b4++){const _0x197e50=_0x18d226[_0x4368b4];if(_0x197e50['type']!==_0x40268a['type']||_0x197e50['author']['id']!==_0x40268a['author']['id']||_0x197e50['subType']!==_0x40268a['subType'])continue;if(!Wt(_0x40268a,_0x197e50))continue;if('attribute'==_0x40268a['type']&&_0x40268a['data']['oldValue']!=_0x197e50['data']['oldValue'])continue;if('attribute'==_0x40268a['type']&&_0x47aff5['_isBlockAttribute'](_0x40268a['data']['key']))continue;if('formatBlock'==_0x40268a['type']){const _0x4d8036=_0x47aff5['editor']['model'],_0xcc2276=_0x40268a['getContainedElement']();if(_0xcc2276&&(_0x4d8036['schema']['isObject'](_0xcc2276)||_0x4d8036['schema']['isLimit'](_0xcc2276)))continue;}const _0x1a110d=_0x3e8fa9['get'](_0x40268a),_0x5f359d=_0x4e376b['get'](_0x40268a),_0x30534d=_0x4e376b['get'](_0x197e50),_0x24ae7d=_0x40268a['commentThread']&&_0x40268a['commentThread']['length'],_0x318ed5=_0x197e50['commentThread']&&_0x197e50['commentThread']['length'];if(!_0x24ae7d&&_0x1a110d(_0x30534d,_0x5f359d))return _0x47aff5['_joinSuggestions'](_0x197e50,_0x40268a),_0x4e376b['delete'](_0x40268a),!0x0;if(!_0x318ed5&&_0x1a110d(_0x5f359d,_0x30534d))return _0x47aff5['_joinSuggestions'](_0x40268a,_0x197e50),_0x4e376b['delete'](_0x197e50),!0x0;}return!0x1;}}['_joinSuggestions'](_0x35d553,_0x5c4862){if(_0x35d553['isMultiRange']){for(const _0x419b22 of _0x5c4862['getRanges']())_0x35d553['addRange'](_0x419b22);}else{const _0x3f4d9d=_0x5c4862['getFirstRange']()['end'];this['_setSuggestionRange'](_0x35d553,this['_model']['createRange'](_0x35d553['getFirstRange']()['start'],_0x3f4d9d));}_0x5c4862['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2083db,_0x334072,_0x5192f6){const _0x402571=_0x2083db['startsWith']('format')||_0x2083db['startsWith']('attribute')?'FORMATTING':_0x2083db['toUpperCase']();return c(this['editor']['locale'],_0x334072+'_'+_0x402571+'_SUGGESTION_ANNOUNCEMENT',_0x5192f6);}['_initAriaMarkerChangeAnnouncements'](){const _0x11459a=this['editor'];if(!_0x11459a['ui'])return;const {ariaLiveAnnouncer:_0x1f61b6}=_0x11459a['ui'];_0xb9afc5(this['_model'],({left:_0x42485e,entered:_0x27de9d})=>{for(const _0x56e218 of _0x42485e){const {group:_0x560c83,type:_0x20fe0f}=this['_splitMarkerName'](_0x56e218['name']);if('suggestion'===_0x560c83){_0x1f61b6['announce'](this['_getMarkerAnnouncementText'](_0x20fe0f,'LEAVE'));break;}}for(const _0x222602 of _0x27de9d){const {group:_0x5e747a,type:_0x31a84a}=this['_splitMarkerName'](_0x222602['name']);if('suggestion'===_0x5e747a){_0x1f61b6['announce'](this['_getMarkerAnnouncementText'](_0x31a84a,'ENTER',_0x4d9260(_0xc56237)));break;}}});}['_processAttributeChanges'](_0xecd8b0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x12aa3a=this['editor'],_0x5a544a=_0x12aa3a['model']['document']['differ']['getChanges']();if(0x0==_0x5a544a['length'])return!0x1;const _0x1a5f72=[],_0xe6c40b=_0x5a544a['filter'](_0xcc87d5=>'attribute'==_0xcc87d5['type']),_0x30ced9=_0x5a544a['filter'](_0x20b4fd=>'insert'==_0x20b4fd['type']&&'$text'!=_0x20b4fd['name']),_0x2a9d76=_0x5a544a['filter'](_0x515adc=>'remove'==_0x515adc['type']&&'$text'!=_0x515adc['name']);for(const _0x24cd4c of _0xe6c40b)_0x1a5f72['push']({'key':_0x24cd4c['attributeKey'],'newValue':_0x24cd4c['attributeNewValue'],'oldValue':_0x24cd4c['attributeOldValue'],'range':Ht(_0x24cd4c['range'],_0x12aa3a['model'])});for(const _0x256284 of _0x30ced9){const _0x11042e=_0x2a9d76['find'](_0x85c4b1=>_0x85c4b1['position']['isEqual'](_0x256284['position']));_0x11042e&&_0x1a5f72['push']({'key':u,'newValue':_0x256284['name'],'oldValue':_0x11042e['name'],'range':_0x12aa3a['model']['createRangeOn'](_0x256284['position']['nodeAfter'])});}return 0x0!=_0x1a5f72['length']&&this['_reduceExistingSuggestions'](_0xecd8b0,_0x1a5f72);}['_processAttributeSuggestions'](_0x53be6c){let _0x160bef=!0x1;const _0x1d5108=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e32b0=>_0x3e32b0['data']['newRange']&&_0x3e32b0['name']['startsWith']('suggestion:attribute:'));for(const _0x2b1a3a of _0x1d5108){const {subType:_0x438504,id:_0x20fb07}=this['_splitMarkerName'](_0x2b1a3a['name']),_0x994a4=_0x438504['split']('|')[0x0];for(const _0x476bd2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x476bd2['id']!=_0x20fb07&&'attribute'==_0x476bd2['type']&&_0x476bd2['data']&&_0x476bd2['data']['key']==_0x994a4&&_0x476bd2['getFirstRange']()['isIntersecting'](_0x2b1a3a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x476bd2,_0x2b1a3a['data']['newRange'],_0x53be6c),_0x160bef=!0x0);}return _0x160bef;}['_recordAttributeChanges'](_0x5a42af){this['_recordAttributeSuggestions']=!0x0,_0x5a42af();}['_isRegisteredAttribute'](_0x6b4edb){const _0x3622f0=this['_isBlockAttribute'](_0x6b4edb),_0x1bacf3=this['_inlineAttributeKeys']['has'](_0x6b4edb);return _0x3622f0||_0x1bacf3;}['_reduceExistingSuggestions'](_0x3e0e10,_0x353034){if(0x0==_0x353034['length'])return!0x1;let _0x277270=!0x1;for(const _0x5b7253 of _0x353034){const _0x30a8f5=this['_findSuggestions'](_0x5b7253['range'],'attribute')['filter'](_0x209a49=>!_0x209a49['meta']['isNextTo'])['map'](_0x35acd8=>_0x35acd8['suggestion']),_0x6a378e=_0x255576({'newValue':_0x5b7253['newValue']});_0x30a8f5['filter'](_0x33022f=>{const [_0x497fdd,_0x5e4a17]=_0x33022f['subType']['split']('|');return _0x497fdd==_0x5b7253['key']&&_0x5e4a17!=_0x6a378e;})['forEach'](_0x65d79c=>{this['_reduceSuggestionAttributeRange'](_0x65d79c,_0x5b7253['range'],_0x3e0e10),_0x277270=!0x0;});}return _0x277270;}['_reduceSuggestionAttributeRange'](_0x400c22,_0x3e4190,_0x2e2215){const _0x28d9ec=_0x400c22['getFirstRange']()['getDifference'](_0x3e4190);0x0!==_0x28d9ec['length']?0x1!==_0x28d9ec['length']?this['_breakSuggestionMarker'](_0x400c22,_0x3e4190['start'],_0x3e4190['end']):this['_setSuggestionRange'](_0x400c22,_0x28d9ec[0x0]):_0x2e2215['removeMarker'](_0x400c22['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x39cfad){this['_editor']=_0x39cfad,this['_model']=_0x39cfad['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x168d50,_0x4e3fb0,_0xbf9450,_0xe2a9cb,_0x2da1c3,_0x1645ff){return new o(this['_model'],{'type':_0x168d50,'subType':_0x4e3fb0,'id':_0xbf9450,'author':_0xe2a9cb,'creator':_0xe2a9cb,'attributes':_0x2da1c3,'onAttributesChange':_0x1645ff,'onAccept':(..._0x5004f4)=>this['getSuggestionCallback'](_0x168d50,_0x4e3fb0,'accept')(..._0x5004f4),'onDiscard':(..._0x366afb)=>this['getSuggestionCallback'](_0x168d50,_0x4e3fb0,'discard')(..._0x366afb)});}['registerCustomCallback'](_0xae6f84,_0xb52e9e,_0x3464b1,_0x430ff1){const _0x14a863=_0xae6f84+':'+_0xb52e9e+':'+_0x3464b1;this['_customCallbacks']['set'](_0x14a863,_0x430ff1);}['getSuggestionCallback'](_0x46dc5e,_0x1c87bf,_0x174f06){const _0x5b0d3b=_0x46dc5e+':'+_0x1c87bf+':'+_0x174f06;return this['_customCallbacks']['get'](_0x5b0d3b)||this['_defaultCallbacks']['get'](_0x46dc5e+':'+_0x174f06);}['_registerDefaultCallbacks'](){const _0x380899=()=>!0x1,_0x14774f=_0x4ebb63=>{_0x4ebb63['sort']((_0x5aed03,_0x575716)=>_0x5aed03['start']['isBefore'](_0x575716['start'])?0x1:-0x1),this['_model']['change'](_0x301481=>{for(const _0x587c92 of _0x4ebb63){let _0x11626f;_0x11626f=_0x587c92['end']['isAtEnd']&&_0x587c92['end']['parent']==_0x587c92['start']['nodeAfter']?_0x301481['createSelection'](_0x587c92['start']['nodeAfter'],'on'):_0x301481['createSelection'](_0x587c92),this['_model']['deleteContent'](_0x11626f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x24b9b9=(_0x9b91b6,_0x17e2b7)=>{_0x17e2b7&&this['_model']['change'](_0x13f946=>{const {commandName:_0x3777e2,commandParams:_0x27bcc1=[]}=_0x17e2b7,_0xabed50=_0x9b91b6['map'](_0x9ae006=>(Gt(_0x9ae006)&&(_0x9ae006=this['_model']['createRange'](_0x9ae006['end'])),_0x9ae006))['filter'](_0x3da860=>'$graveyard'!==_0x3da860['root']['rootName']);if(_0xabed50['length']<0x1)return;const _0x1990c7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2182b8=>_0x4a3ae4['fromRange'](_0x2182b8));_0x13f946['setSelection'](_0xabed50);for(const _0x53b404 of this['_editor']['commands']['commands']())_0x53b404['refresh']();_0x27bcc1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3777e2,..._0x27bcc1);const _0x3ad409=_0x1990c7['filter'](_0xe41017=>'$graveyard'!=_0xe41017['root']['rootName']);_0x3ad409['length']>0x0&&_0x13f946['setSelection'](_0x3ad409);for(const _0x2f2391 of _0x1990c7)_0x2f2391['detach']();});},_0x680dd3=(_0x28f48a,_0x4f04c5)=>0x1==_0x28f48a['length']&&0x1==_0x4f04c5['length']&&_0x28f48a[0x0]['end']['isEqual'](_0x4f04c5[0x0]['start']),_0x309886=(_0x23f548,_0x189741,_0x30d75c,_0x5b58f2)=>zt(_0x23f548,_0x189741,_0x30d75c,_0x5b58f2)?[_0x23f548,_0x189741]:zt(_0x189741,_0x23f548,_0x5b58f2,_0x30d75c)?[_0x189741,_0x23f548]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x380899),this['_defaultCallbacks']['set']('insertion:discard',_0x14774f),this['_defaultCallbacks']['set']('insertion:join',_0x680dd3),this['_defaultCallbacks']['set']('insertion:chain',_0x309886),this['_defaultCallbacks']['set']('deletion:accept',_0x14774f),this['_defaultCallbacks']['set']('deletion:discard',_0x380899),this['_defaultCallbacks']['set']('deletion:join',_0x680dd3),this['_defaultCallbacks']['set']('deletion:chain',_0x309886),this['_defaultCallbacks']['set']('formatInline:accept',_0x24b9b9),this['_defaultCallbacks']['set']('formatInline:discard',_0x380899),this['_defaultCallbacks']['set']('formatInline:join',_0x680dd3),this['_defaultCallbacks']['set']('formatInline:chain',_0x380899),this['_defaultCallbacks']['set']('formatBlock:accept',_0x24b9b9),this['_defaultCallbacks']['set']('formatBlock:discard',_0x380899),this['_defaultCallbacks']['set']('formatBlock:join',_0x680dd3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x380899),this['_defaultCallbacks']['set']('attribute:accept',_0x380899),this['_defaultCallbacks']['set']('attribute:discard',(_0x3e6f54,_0x58353d)=>{if(!_0x58353d)return;const _0x967fa8=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x50c1c2=>{if(_0x58353d['key']==u)for(const _0x579abb of _0x3e6f54){const _0x1f435a=_0x579abb['start']['nodeAfter'],_0x5b7d48=_0x58353d['oldValue'];_0x50c1c2['rename'](_0x1f435a,_0x5b7d48);}else{if(_0x967fa8['_isBlockAttribute'](_0x58353d['key'])){for(const _0x15008b of _0x3e6f54)void 0x0!==_0x58353d['oldValue']?_0x50c1c2['setAttribute'](_0x58353d['key'],_0x58353d['oldValue'],_0x15008b['start']['nodeAfter']):_0x50c1c2['removeAttribute'](_0x58353d['key'],_0x15008b['start']['nodeAfter']);}else{for(const _0x142f61 of _0x3e6f54)_0x58353d['oldValue']?_0x50c1c2['setAttribute'](_0x58353d['key'],_0x58353d['oldValue'],_0x142f61):_0x50c1c2['removeAttribute'](_0x58353d['key'],_0x142f61);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x680dd3);}}function Pt(_0x255e5c,_0x32570e,_0x3790ce){for(const _0x5f253d of _0x32570e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5f253d['root']==_0x5f253d)return!0x1;if(!_0x3790ce['containsItem'](_0x5f253d))return!0x1;if(_0x255e5c['isObject'](_0x5f253d)||_0x255e5c['isLimit'](_0x5f253d))return!0x0;}return!0x1;}function Gt(_0x24f0d3){return _0x24f0d3['end']['parent']==_0x24f0d3['start']['nodeAfter']&&_0x24f0d3['end']['isAtStart'];}function Lt(_0x15ddea,_0x16c027,_0x14671b,_0x5024ba){const _0x3a288b=_0x5ca522=>!_0x5ca522['item']['is']('$textProxy')&&!_0x5024ba['isObject'](_0x5ca522['item']),_0x24faac=_0x15ddea['start']['getLastMatchingPosition'](_0x3a288b),_0x433076=_0x15ddea['end']['getLastMatchingPosition'](_0x3a288b,{'direction':'backward'});return(!_0x15ddea['start']['isEqual'](_0x24faac)||!_0x15ddea['end']['isEqual'](_0x433076))&&(_0x24faac['isBefore'](_0x433076)?_0x14671b['updateMarker'](_0x16c027,{'range':_0x14671b['createRange'](_0x24faac,_0x433076)}):_0x14671b['removeMarker'](_0x16c027),!0x0);}function Jt(_0x4ae5e6){return _0x255576(_0x4ae5e6);}function Kt(_0x6ae894){const _0x106007=_0x6ae894['start']['nodeAfter'];return _0x106007&&_0x106007['is']('element');}function Ht(_0x5850dd,_0x3b4737){return null==_0x5850dd['end']['nodeBefore']&&_0x5850dd['end']['parent']==_0x5850dd['start']['nodeAfter']?qt(_0x5850dd['start']['nodeAfter'],_0x3b4737):_0x5850dd;}function qt(_0x253dcd,_0x26d1c7){const _0x77a615=_0x26d1c7['schema']['isObject'](_0x253dcd)||_0x26d1c7['schema']['isSelectable'](_0x253dcd);return _0x26d1c7['createRange'](_0x26d1c7['createPositionAt'](_0x253dcd,'before'),_0x77a615?_0x26d1c7['createPositionAfter'](_0x253dcd):_0x26d1c7['createPositionAt'](_0x253dcd,'end'));}function zt(_0x3eef8b,_0x48c434,_0x43f8d7,_0x53ebf5){return!!Wt(_0x3eef8b,_0x48c434)&&_0x43f8d7['end']['isEqual'](_0x53ebf5['start']);}function Wt(_0x55088b,_0x18916f){if(!_0x55088b['_isDataLoaded']||!_0x18916f['_isDataLoaded'])return!0x1;const _0x7d9ed2=new Set(Object['keys'](_0x55088b['attributes'])),_0x24385d=new Set(Object['keys'](_0x18916f['attributes']));if(_0x7d9ed2['delete']('groupId'),_0x24385d['delete']('groupId'),0x0==_0x7d9ed2['size']&&0x0==_0x24385d['size'])return!0x0;if(_0x7d9ed2['size']!=_0x24385d['size'])return!0x1;const _0x31cc68={..._0x55088b['attributes']},_0xb1ffc1={..._0x18916f['attributes']};return delete _0x31cc68['groupId'],delete _0xb1ffc1['groupId'],JSON['stringify'](_0x31cc68)==JSON['stringify'](_0xb1ffc1);}function Qt(_0x1396f4,_0x258a1c){const _0x28a27c=Xt(_0x1396f4['attributes']),_0x3cb0a5=Xt(_0x258a1c);if(!_0x1396f4['_isDataLoaded'])return!0x1;for(const _0xf3637a of Object['keys'](_0x3cb0a5))if(!_0x36c7b1(_0x28a27c[_0xf3637a],_0x3cb0a5[_0xf3637a]))return!0x1;return!0x0;}function Xt(_0xf45741){const _0x5c8721=Object['assign']({},_0xf45741);return delete _0x5c8721['skipNestingCheck'],delete _0x5c8721['tablePasteChainId'],_0x5c8721;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x3c6964(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x30e87c,_0x2362be,_0x3da385,_0x16dc40){super(),this['model']=_0x2362be,this['view']=_0x3da385,this['commentThreadController']=_0x16dc40,this['_editor']=_0x30e87c,this['_acceptCommand']=_0x30e87c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x30e87c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1f78b1,_0x3195f9)=>_0x1f78b1||_0x3195f9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2c96c1=>_0x2c96c1&&this['_editor']['model']['canEditAt'](_0x2362be['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x867a1a=>_0x867a1a&&this['_editor']['model']['canEditAt'](_0x2362be['getRanges']())),this['_pendingAction']=null,_0x3da385['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3da385,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3da385,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3da385,'change:isDirty',()=>{_0x3da385['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 _0x4888c3=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4888c3);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x21b685{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1427e4,_0x35cf9a,_0x5ab542,_0x1544c9){super(_0x1427e4),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5d8842(_0x1427e4,c(_0x1427e4,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x35cf9a['authoredAt']),this['bind']('authoredAt')['to'](_0x35cf9a),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',_0x35cf9a,'authoredAt',this,'descriptionParts',(_0x17cc3d,_0x5a5424,_0x4c343b)=>{const _0x17e78c=_0x4c343b['map'](_0x10ab30=>ls(_0x10ab30['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x17cc3d-0x1,_0x35cf9a['author']['name'],_0x5a5424?_0x1544c9['formatDateTime'](_0x5a5424):'',new DOMParser()['parseFromString'](_0x17e78c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x308d50(),this['focusTracker']=new _0x1dba1d(),this['keystrokes']=new _0x124a9a(),this['focusCycler']=new _0x4943f7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x11908a=>_0x11908a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x35cf9a,this['_localUser']=_0x5ab542,this['_config']=_0x1544c9,_0x1544c9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xc54641(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x592f64}=this['_config'];this['commentsListView']=new _0x592f64(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',_0x1e2928=>_0x1e2928+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3f961e,_0x351c0a)=>_0x3f961e||!!_0x351c0a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4d1433}=this['_config'],_0xe26d1a=new _0x4d1433(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x48c02b=_0xe26d1a['commentInputView'];return _0xe26d1a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x48c02b,'value',(_0x1aea98,_0xb734e2,_0x369238)=>!!_0x369238||_0x1aea98&&!_0xb734e2),_0x48c02b['on']('submit',(_0x2daad8,_0x4d1879)=>{this['fire']('addComment',_0x4d1879),_0x48c02b['editor']['setData']('');}),_0x48c02b['on']('cancel',()=>this['focus']()),_0x48c02b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xe26d1a;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1a8599,_0xc7295,_0x545b4f,_0x1a0380){super(_0x1a8599,_0xc7295,_0x545b4f,_0x1a0380),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4c92e0=>_0x4c92e0&&_0x4c92e0[0x0]?_0x4c92e0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x25587a,_0x5b9cae)=>{let _0x57da3e='';for(const _0x36bd73 of _0x25587a)_0x57da3e+='<p>'+ls(_0x36bd73['content'],_0x36bd73['color'])+'</p>';return _0x5b9cae?_0x57da3e:ti(_0x57da3e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1a0380['SuggestionView'](_0x1a8599,_0xc7295,{'formatDateTime':_0x1a0380['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 _0x29ed74=this['bindTemplate'],_0x5b7659=[this['suggestionView']];return this['commentsListView']&&_0x5b7659['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5b7659['push'](this['commentThreadInputView']),_0x5b7659['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x29ed74['if']('isActive','ck-suggestion-wrapper--active'),_0x29ed74['to']('type',_0x3554df=>'ck-suggestion-'+_0x3554df),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':_0x29ed74['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5b7659};}['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 _0x21b685{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x428443,_0x281e2f,_0x1fd33f){super(_0x428443),this['_model']=_0x281e2f,this['_config']=_0x1fd33f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x281e2f),this['acceptButton']=this['_createButton'](c(_0x428443,'Accept\x20suggestion'),_0x26076b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x428443,'Discard\x20suggestion'),_0x37583a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1b6fe0(_0x428443,_0x281e2f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x308d50([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1dba1d(),this['keystrokes']=new _0x124a9a(),this['focusCycler']=new _0x4943f7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x13c625=>_0x13c625['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5ad924=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5ad924['innerHTML']=this['description'],this['on']('change:description',(_0x56de8b,_0x2989bb,_0x2a987e)=>{_0x5ad924['innerHTML']=_0x2a987e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1316ff=this['bindTemplate'],_0x308f41=[{'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':_0x1316ff['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1316ff['to']('authoredAt',_0x5184db=>this['_config']['formatDateTime'](_0x5184db))}]}]},{'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']&&_0x308f41['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':_0x308f41}]};}['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'](_0x3f6786,_0xb978c4,_0x41504a,_0x1a33e0,_0x3bfe57){const _0x2492e9=new _0x31bf54(this['locale']);return _0x2492e9['set']({'label':_0x3f6786,'icon':_0xb978c4,'tooltip':!0x0,'tooltipPosition':_0x3bfe57}),_0x2492e9['extendTemplate']({'attributes':{'class':_0x41504a}}),_0x2492e9['on']('execute',()=>{this['fire'](_0x1a33e0,this['_model']['id']);}),_0x2492e9;}['_setupKeyboardNavigation'](){const _0x41beaf=this['element'];this['keystrokes']['listenTo'](_0x41beaf);for(const _0x304f40 of this['focusables'])this['focusTracker']['add'](_0x304f40['element']),this['keystrokes']['listenTo'](_0x304f40['element']);this['keystrokes']['set']('enter',(_0x18919d,_0x491dd9)=>{_0x41beaf===_0x18919d['target']&&(this['focusCycler']['focusFirst'](),_0x491dd9());}),this['keystrokes']['set']('esc',(_0x1dea4f,_0xf80dd4)=>{_0x41beaf!==_0x1dea4f['target']&&(this['focus'](),_0xf80dd4());});}}class d extends _0x497417{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x508eb0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48a51c){super(_0x48a51c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4881e8=this['editor']['config'];_0x4881e8['define']('trackChanges.SuggestionThreadView',fe),_0x4881e8['define']('trackChanges.SuggestionView',we),_0x4881e8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4881e8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x27d4d7,_0x26d2c3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3eb036,_0x167a65]of this['_handleControllerBuffer']){const _0x171617=this['_suggestionToController']['has'](_0x3eb036);_0x171617||_0x167a65?_0x171617&&_0x167a65&&this['_destroyController'](_0x3eb036):this['_initializeController'](_0x3eb036);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x27d4d7,_0x26d2c3);}['init'](){const _0x2c4b19=this['editor'],_0x4f1677=_0x2c4b19['plugins']['get']('TrackChangesEditing'),_0x4d9d1b=_0x2c4b19['plugins']['get']('Annotations'),_0x2efaa7=_0x2c4b19['plugins']['get']('EditorAnnotations'),_0x50d990=_0x2c4b19['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2efaa7['addSourceCollector'](()=>{const _0xf46ce7=[];for(const [_0x2ea13d,_0x5ac413]of Array['from'](this['_suggestionToController'])){const _0x3df12b=_0x2ea13d['getAllAdjacentSuggestions'](),_0x48cf6e=[];for(const _0x340b4a of _0x3df12b){if(!_0x340b4a['isInContent'])continue;if(_0x340b4a['isMultiRange']){_0x48cf6e['push'](..._0x340b4a['getRanges']());continue;}const _0x44f75e=_0x340b4a['getFirstRange']();if(_0x48cf6e['length']>0x0){const _0x7bba7=_0x48cf6e[0x0]['getJoined'](_0x44f75e);if(_0x7bba7){_0x48cf6e[0x0]=_0x7bba7;continue;}}_0x48cf6e['push'](_0x44f75e);}_0xf46ce7['push']([_0x5ac413['view'],_0x48cf6e]);}return _0xf46ce7;}),this['listenTo'](_0x4f1677,'suggestionLoaded',(_0x44ce68,_0x26d280)=>{this['listenTo'](_0x26d280,'change:previous',(_0xf87914,_0x3429e2,_0x5f3682,_0x894bc5)=>{_0x26d280['isInContent']&&(null==_0x5f3682?(this['_updateController'](_0x894bc5['head']),this['_handleSuggestionControllerDelayed'](_0x26d280,!0x1)):(this['_updateController'](_0x5f3682['head']),null==_0x894bc5&&this['_handleSuggestionControllerDelayed'](_0x26d280,!0x0)));}),null!==_0x26d280['previous']?this['_updateController'](_0x26d280['head']):this['_handleSuggestionControllerDelayed'](_0x26d280,!0x1);}),this['listenTo'](_0x4f1677,'suggestionUnloaded',(_0x12e2fe,_0x1af1d8,_0x49209a)=>{this['stopListening'](_0x1af1d8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1af1d8),this['_suggestionToController']['has'](_0x1af1d8)&&this['_destroyController'](_0x1af1d8),_0x49209a&&this['_updateController'](_0x49209a['head']);}),this['listenTo'](_0x4f1677,'suggestionChanged',(_0x498026,_0x1aaa18)=>{this['_updateController'](_0x1aaa18);}),this['listenTo'](_0x4d9d1b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x50d990,'addComment',(_0x1216cd,{threadId:_0x5cb319,isFromAdapter:_0x37e195})=>{if(_0x37e195||!_0x4f1677['hasSuggestion'](_0x5cb319))return;const _0x552887=_0x4f1677['getSuggestion'](_0x5cb319);this['_suggestionToController']['get'](_0x552887)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x22fdfe=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3e240d;for(const _0x57fb31 in _0x22fdfe){const _0x563b76=_0x57fb31,_0x3f278f=_0x22fdfe[_0x563b76];if('trackChangesLicenseKeyValid'==_0x3f278f||'trackChangesLicenseKeyInvalid'==_0x3f278f||'trackChangesLicenseKeyExpired'==_0x3f278f||'trackChangesLicenseKeyDomainLimit'==_0x3f278f||'trackChangesLicenseKeyNotAllowed'==_0x3f278f||'trackChangesLicenseKeyEvaluationLimit'==_0x3f278f||'trackChangesLicenseKeyTrialLimit'==_0x3f278f||'trackChangesLicenseKeyUsageLimit'==_0x3f278f){delete _0x22fdfe[_0x563b76],_0x3e240d=_0x3f278f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3e240d&&_0x22fdfe['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3e240d&&_0x22fdfe['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3e240d&&_0x22fdfe['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3e240d&&_0x22fdfe['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3e240d&&_0x22fdfe['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3e240d&&_0x22fdfe['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3e240d&&_0x22fdfe['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2ebc27=this['editor']['plugins']['get']('Annotations'),_0x355e90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x457517=Array['from'](_0x2ebc27['activeAnnotations'],_0x6b0105=>_0x6b0105['innerView'])['filter'](_0x18a851=>this['_viewToController']['has'](_0x18a851)),_0x497bd5=[];for(const _0x4ea2ec of _0x457517){const _0x5cc917=this['_viewToController']['get'](_0x4ea2ec)['model']['getAllAdjacentSuggestions']();_0x497bd5['push'](..._0x5cc917['reduce']((_0x2ffe88,_0x3750dd)=>[..._0x2ffe88,..._0x3750dd['getMarkerNames']()],[]));}_0x355e90['activeMarkers']=_0x497bd5;}['_addUIComponentsToFactory'](){const _0x5efd0a=this['editor'],_0x3f50e7=_0x5efd0a['locale'],_0x4cdd5a=c(_0x3f50e7,'Track\x20changes'),_0x12cb3f=new _0x2aba35([{'type':'switchbutton','model':new _0x201032({'withText':!0x0,'isToggleable':!0x0,'label':_0x4cdd5a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x201032({'withText':!0x0,'label':c(_0x3f50e7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x201032({'withText':!0x0,'label':c(_0x3f50e7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x201032({'withText':!0x0,'label':c(_0x3f50e7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x201032({'withText':!0x0,'label':c(_0x3f50e7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5efd0a['plugins']['has']('TrackChangesPreview')&&_0x12cb3f['addMany']([{'type':'separator'},{'type':'button','model':new _0x201032({'withText':!0x0,'label':c(_0x3f50e7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x38c8b7 of _0x12cb3f)if(ke(_0x38c8b7)){const _0x33e4a2=_0x5efd0a['commands']['get'](_0x38c8b7['model']['commandName']);_0x38c8b7['model']['bind']('isOn','isEnabled')['to'](_0x33e4a2,'value','isEnabled');}_0x5efd0a['ui']['componentFactory']['add']('trackChanges',_0x17eb5=>this['_createToolbarButton'](_0x17eb5,_0x12cb3f,_0x4cdd5a)),_0x5efd0a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4cc57f=>this['_createMenuBarMenu'](_0x4cc57f,_0x12cb3f,_0x4cdd5a));}['_createToolbarButton'](_0x11a67d,_0x23399b,_0x59830e){const _0x2ddd48=_0x532b40(_0x11a67d,_0x8f7f98),_0x1cbb6b=this['editor']['commands']['get']('trackChanges');_0x2ddd48['buttonView']['set']({'tooltip':_0x59830e,'label':_0x59830e,'icon':_0x30a5bc}),_0x2ddd48['buttonView']['bind']('isOn')['to'](_0x1cbb6b,'value'),_0x2ddd48['buttonView']['on']('execute',()=>{_0x1cbb6b['execute'](),this['editor']['editing']['view']['focus']();}),_0x3635e7(_0x2ddd48,_0x23399b,{'role':'menu'});const _0x10bb19=[];for(const _0x1e2806 of _0x23399b)ke(_0x1e2806)&&_0x10bb19['push'](this['editor']['commands']['get'](_0x1e2806['model']['commandName']));const _0x5c7b6d=_0x2ddd48['buttonView'];return _0x5c7b6d['actionView']['unbind']('isEnabled'),_0x5c7b6d['arrowView']['unbind']('isEnabled'),_0x5c7b6d['actionView']['bind']('isEnabled')['to'](_0x1cbb6b,'isEnabled'),_0x5c7b6d['arrowView']['bind']('isEnabled')['toMany'](_0x10bb19,'isEnabled',(..._0x1d6cde)=>_0x1d6cde['some'](_0xaaa6ab=>_0xaaa6ab)),_0x2ddd48['on']('execute',_0x503946=>{this['editor']['execute'](_0x503946['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2ddd48;}['_createMenuBarMenu'](_0x2768dd,_0x322f48,_0x307984){const _0x1ec8dc=new _0x1d74c1(_0x2768dd),_0x2d1fd6=this['editor']['commands']['get']('trackChanges');_0x1ec8dc['buttonView']['set']({'label':_0x307984,'icon':_0x30a5bc});const _0x4152bc=new _0x57f2d6(_0x2768dd);for(const _0x6874b4 of _0x322f48){if('separator'==_0x6874b4['type']){_0x4152bc['items']['add'](new _0x5008e8(_0x2768dd));continue;}const _0xa56f3c=new _0x4cd13d(_0x2768dd,_0x1ec8dc),_0x8bb478=new _0x8bc95(_0x2768dd),_0x5f2ca8=_0x6874b4['model'];_0x8bb478['bind'](...Object['keys'](_0x5f2ca8))['to'](_0x5f2ca8),_0x8bb478['delegate']('execute')['to'](_0x1ec8dc),_0x8bb478['on']('execute',()=>{this['editor']['execute'](_0x5f2ca8['commandName']),this['editor']['editing']['view']['focus']();}),_0xa56f3c['children']['add'](_0x8bb478),_0x4152bc['items']['add'](_0xa56f3c);}return _0x1ec8dc['bind']('isEnabled')['to'](_0x2d1fd6,'isEnabled'),_0x1ec8dc['panelView']['children']['add'](_0x4152bc),_0x1ec8dc;}['_initializeController'](_0x2780a8){const _0xdd13f6=this['editor'],_0x4b2e16=_0xdd13f6['config'],_0x562c04=_0xdd13f6['plugins']['get']('Annotations'),_0x39135b=_0xdd13f6['plugins']['get']('CommentsRepository'),_0x2fb9f9=_0xdd13f6['plugins']['get']('EditorAnnotations'),_0x2f7347=_0xdd13f6['plugins']['get'](_0x508eb0)['me'],_0x3a1e59=_0x4b2e16['get']('trackChanges')['SuggestionThreadView'],_0x220416=_0x4b2e16['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x14e371,CommentThreadInputView:_0x2a8f12}=_0xdd13f6['plugins']['get']('CommentsUI');let _0x35521a,_0x1a5f78,_0x44f841;this['_annotationViews']['has'](_0x2780a8['id'])?(_0x1a5f78=this['_annotationViews']['get'](_0x2780a8['id']),_0x35521a=_0x1a5f78['mainView']):(_0x35521a=new _0x3a1e59(_0xdd13f6['locale'],_0x2780a8,_0x2f7347,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4b2e16['get']('comments.editorConfig'),'licenseKey':_0x4b2e16['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4b2e16['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4b2e16['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4b2e16['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x479f58(_0x4b2e16['get']('locale')),'CommentView':_0x4b2e16['get']('comments')['CommentView'],'CommentsListView':_0x14e371,'CommentThreadInputView':_0x2a8f12,'SuggestionView':_0x220416}),_0x35521a['suggestionView']['acceptButton']['on']('execute',()=>{_0xdd13f6['editing']['view']['focus']();}),_0x35521a['suggestionView']['discardButton']['on']('execute',()=>{_0xdd13f6['editing']['view']['focus']();}),_0x1a5f78=_0x562c04['createAnnotationView'](this['editor']['locale'],_0x35521a),_0x1a5f78['bind']('isDirty')['to'](_0x35521a,'isDirty'),_0x1a5f78['bind']('length')['to'](_0x35521a),_0x1a5f78['bind']('type')['to'](_0x35521a,'type',_0x36994f=>'suggestion-'+_0x36994f),_0x35521a['on']('escape',()=>{_0x44f841['fire']('escape');}),this['_annotationViews']['set'](_0x2780a8['id'],_0x1a5f78));const _0x5d7a61=_0x39135b['createCommentThreadController'](_0x2780a8['commentThread'],_0x35521a),_0x7f2ec=new pe(_0xdd13f6,_0x2780a8,_0x35521a,_0x5d7a61),_0x2d5129=_0x2780a8['getAllAdjacentSuggestions']()['filter'](_0x568ef4=>_0x568ef4['isInContent']);_0x35521a['descriptionParts']=_0xdd13f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2d5129),this['_suggestionToController']['set'](_0x2780a8,_0x7f2ec),this['_viewToController']['set'](_0x35521a,_0x7f2ec),_0x44f841=_0x562c04['createAnnotation']({'view':_0x1a5f78,'target':()=>{const _0xcb9ed0=[],_0x566fce=_0x2780a8['getAllAdjacentSuggestions']()['filter'](_0x4072b0=>_0x4072b0['isInContent']);for(const _0x1b419d of _0x566fce)_0xcb9ed0['push'](..._0x1b419d['getMarkers']());return _0x2f9556(_0xdd13f6['editing'],_0xcb9ed0);},'type':()=>'suggestion-'+_0x7f2ec['view']['type']}),_0x39135b['_bindAnnotationToEditors'](_0x35521a,_0x44f841),_0x562c04['add'](_0x44f841),_0x2fb9f9['registerAnnotation'](_0x44f841);}['_destroyController'](_0x598941){const _0x435ec5=this['editor']['plugins']['get']('CommentsRepository'),_0x2c67c0=this['editor']['plugins']['get']('Annotations'),_0x52a0c4=this['_suggestionToController']['get'](_0x598941),_0x4c117a=_0x52a0c4['view'],_0x3b4a14=_0x2c67c0['getByInnerView'](_0x4c117a);_0x435ec5['_unbindEditors'](_0x4c117a),_0x3b4a14&&_0x2c67c0['remove'](_0x3b4a14),this['_suggestionToController']['delete'](_0x598941),this['_viewToController']['delete'](_0x4c117a),_0x52a0c4['destroy']();}['_updateController'](_0x5cbafa){if(!_0x5cbafa['isInContent']||!this['_suggestionToController']['has'](_0x5cbafa))return;const _0x490440=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d3bb9=this['_suggestionToController']['get'](_0x5cbafa),_0x3e0dbc=_0x5cbafa['getAllAdjacentSuggestions']();_0x5d3bb9['view']['descriptionParts']=_0x490440['descriptionFactory']['getDescriptions'](_0x3e0dbc);}['destroy'](){for(const _0x1aa56c of this['_suggestionToController']['keys']())this['_destroyController'](_0x1aa56c);for(const _0x56e260 of this['_annotationViews']['values']())_0x56e260['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x275170){return'model'in _0x275170;}class k extends _0x497417{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3e8bd9){this['editor']['plugins']['get'](p)['adapter']=_0x3e8bd9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x256d8e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x256d8e);}['getSuggestions']({skipNotAttached:_0x1db64a=!0x1,toJSON:_0x180318=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1db64a,'toJSON':_0x180318});}['getSuggestion'](_0x56bee0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x56bee0);}}const w=['Pagination'];class T extends _0x497417{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4ddca1=this['editor'];if(_0x4ddca1['config']['define']('trackChangesData.editorCreator',_0x2d7872=>{const _0x2aa8c9=_0x4ddca1['model']['document']['getRootNames']()['reduce']((_0x540dd3,_0x3666d1)=>(_0x540dd3[_0x3666d1]='',_0x540dd3),{});return _0x4ddca1['constructor']['create'](_0x2aa8c9,_0x2d7872);}),'function'!=typeof _0x4ddca1['config']['get']('trackChangesData')['editorCreator'])throw new _0x3e1147('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x296abb){return N(this['editor'],!0x0,_0x296abb);}['getDataWithDiscardedSuggestions'](_0x709feb){return N(this['editor'],!0x1,_0x709feb);}}class D extends _0x497417{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3bfa06){function _0x42f348(_0x5bb65e){return _0x5bb65e['map'](_0x159a03=>String['fromCharCode'](_0x159a03))['join']('');}super(_0x3bfa06),this['result']='end',_0x3bfa06[_0x42f348([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42f348([0x76,0x69,0x65,0x77])][_0x42f348([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42f348([0x61,0x75,0x74,0x6f]),_0x3bfa06[_0x42f348([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x42f348([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42f348([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x42f348([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x42f348([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 Fe(_0x4184a1){return void 0x0!==_0x4184a1['getRootsAttributes'];}async function N(_0x5d27f5,_0x858a2f,_0x30216b){const _0x2f16df=_0x241a54(_0x5d27f5,w);_0x2f16df['plugins']['push'](p,D),_0x2f16df['rootsAttributes']=Fe(_0x5d27f5)?_0x5d27f5['getRootsAttributes']():void 0x0;const _0xa0bbcb=document['createDocumentFragment'](),_0x58fd97=_0x5d27f5['config']['get']('trackChangesData')['editorCreator'],_0x1d92a3=await _0x58fd97(_0x2f16df,()=>function(_0x3d1625){const _0x45d092=document['createElement']('div');return _0x3d1625['appendChild'](_0x45d092),_0x45d092;}(_0xa0bbcb));!function(_0x2c6c89,_0x41ae6c){const _0x421264=_0x2c6c89['model']['document']['getRootNames']()['reduce']((_0x1ca8f8,_0x2ed554)=>(_0x1ca8f8[_0x2ed554]=_0x2c6c89['data']['get']({'rootName':_0x2ed554}),_0x1ca8f8),{}),_0x3ac859=_0x2c6c89['plugins']['get']('Users')['users']['map'](_0x2fd59d=>({'id':_0x2fd59d['id'],'name':_0x2fd59d['name']})),_0x400a04=_0x2c6c89['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xa01fb9=_0x2c6c89['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xea7351=_0x41ae6c['plugins']['get']('Users'),_0x1bae8e=_0x41ae6c['plugins']['get']('TrackChangesEditing'),_0x131671=_0x41ae6c['plugins']['get']('CommentsRepository');for(const _0x33fad7 of _0x131671['getCommentThreads']())_0x33fad7['remove']();for(const _0x49f2ca of _0x3ac859)_0xea7351['getUser'](_0x49f2ca['id'])||_0xea7351['addUser'](_0x49f2ca);_0xea7351['me']||_0xea7351['useAnonymousUser']();for(const _0x5a2fdd of _0xa01fb9)_0x131671['addCommentThread'](_0x5a2fdd);for(const _0x213332 of _0x400a04)_0x1bae8e['addSuggestionData'](_0x213332);_0x41ae6c['data']['set'](_0x421264);}(_0x5d27f5,_0x1d92a3),_0x1d92a3['execute'](_0x858a2f?'acceptAllSuggestions':'discardAllSuggestions');const _0x5e43c4=Fe(_0x1d92a3)?_0x1d92a3['getFullData'](_0x30216b):_0x1d92a3['data']['get'](_0x30216b);return await _0x1d92a3['destroy'](),_0x5e43c4;}class Me extends _0x21b685{['options'];constructor(_0x4eca24,_0x427bf6){super(_0x4eca24),this['options']=_0x427bf6,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'](_0xbaa00c,_0x2a9c73){if(!this['element'])return;const _0x456533=[];for(const [_0x38ddd1,_0x478e6c]of _0xbaa00c){const _0x4773a6=document['createElement']('div');_0x4773a6['setAttribute']('data-ck-root-name',_0x38ddd1),_0x4773a6['className']=_0x478e6c['classes']+'\x20ck-track-changes-preview__root-container',_0x4773a6['innerHTML']=_0x478e6c['content'],_0x456533['push'](_0x4773a6);}_0x2a9c73(this['element'],_0x456533),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x56aab9{constructor(_0xa814ce){super(_0xa814ce),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x17a285=this['editor'],_0x5099b7=_0x17a285['locale'],_0x24129a=_0x17a285['plugins']['get']('Dialog');let _0xa87373;const _0x38e1e5=function(_0x5c768c){const _0x2efc20={};if('editables'in _0x5c768c['ui']['view']){for(const [_0x583e52,_0x4cea52]of Object['entries'](_0x5c768c['ui']['view']['editables']))_0x2efc20[_0x583e52]=_0x4cea52['element'];}else _0x2efc20[_0x5c768c['model']['document']['getRootNames']()[0x0]]=_0x5c768c['ui']['view']['editable']['element'];return _0x2efc20;}(_0x17a285),_0x1ed7d7=function(_0x286071){let _0x1f2bef=0x0;for(const _0x1a3b37 of Object['values'](_0x286071))_0x1f2bef=Math['max'](_0x1f2bef,_0x1a3b37['getBoundingClientRect']()['width']);let _0x51b884=0x0;for(const _0x5c3cdc of Object['values'](_0x286071))_0x51b884+=_0x5c3cdc['getBoundingClientRect']()['height'];const _0x59a410=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x49f7cd=Math['min'](_0x51b884,_0x59a410);return{'width':_0x1f2bef,'height':_0x49f7cd};}(_0x38e1e5);_0x24129a['show']({'id':'finalContentPreview','title':c(_0x5099b7,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5099b7,{'dialogRects':_0x1ed7d7}),'onHide':()=>{_0xa87373['detachFromDom']();},'onShow':()=>{_0x17a285['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x543813=>{const _0x95d9a4=this['_standarizeRootsData'](_0x543813,_0x17a285,_0x38e1e5);_0x24129a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x95d9a4,_0x17a285['config']['get']('trackChanges.preview.renderFunction'));}),_0xa87373=new _0x58d82f(_0x5099b7,[_0x24129a['view']]),_0xa87373['attachToDom'](),_0xa87373['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x17a285['once']('destroy',()=>{_0xa87373['detachFromDom']();});const _0x413b6d=_0x24129a['view']['headerView']['class'];_0x24129a['view']['headerView']['class']=_0x413b6d?_0x413b6d+'\x20ck-reset_all':'ck-reset_all',_0x24129a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x24129a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x267337=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5209af=_0x267337['previewMode'],_0x4a4703={};if('$labels'===_0x5209af){for(const _0x35b0ee of _0x267337['getMergeFieldsIds']())_0x4a4703[_0x35b0ee]=_0x267337['getLabel'](_0x35b0ee)||_0x35b0ee;}else{const _0x24c1f8='$defaultValues'===_0x5209af?_0x267337['getDefaultValues']():_0x267337['getDataSetValues'](_0x5209af,!0x0);for(const _0xc19797 of Object['entries'](_0x24c1f8)){const [_0xa6d44e,_0x73b40]=_0xc19797;_0x4a4703[_0xa6d44e]=null!==_0x73b40?_0x73b40:_0x267337['getLabel'](_0xa6d44e)||_0xa6d44e;}}return{'mergeFieldsData':_0x4a4703};}['_standarizeRootsData'](_0x66b0d2,_0x448981,_0x5afdcf){let _0x377212;if('string'==typeof _0x66b0d2){const _0x9d4a27=_0x448981['model']['document']['getRootNames']()[0x0];_0x377212={[_0x9d4a27]:_0x66b0d2};}else _0x377212=_0x66b0d2;const _0x542b0d=this['_fixMediaEmbeds'](_0x377212,_0x448981),_0x295c49=function(_0x3288a3,_0x1045cd){for(const [_0x22f4cd,_0x3d5863]of _0x3288a3)_0x3d5863['classes']=_0x1045cd[_0x22f4cd]['classList']['value']['replace']('ck-focused','');return _0x3288a3;}(this['_sortRoots'](_0x448981)['reduce']((_0x4b1b6e,_0x1ce914)=>(_0x4b1b6e['push']([_0x1ce914,{'content':_0x542b0d[_0x1ce914],'classes':''}]),_0x4b1b6e),[]),_0x5afdcf);return _0x295c49;}['_fixMediaEmbeds'](_0x8da6b5,_0x4bdc49){if(!_0x4bdc49['plugins']['has']('MediaEmbedEditing'))return _0x8da6b5;const _0x408d28=_0x4bdc49['plugins']['get']('MediaEmbedEditing');for(const [_0x3efb35,_0x2b60e5]of Object['entries'](_0x8da6b5)){const _0x24fca5=document['createElement']('div');_0x24fca5['innerHTML']=_0x2b60e5,(_0x24fca5['querySelectorAll']('figure.media')['forEach'](_0x1cdf4f=>{const _0x139eb9=_0x1cdf4f['querySelector']('oembed');if(_0x139eb9){const _0x2cc036=_0x139eb9['getAttribute']('url');if(_0x2cc036){const _0x4d8b23=_0x408d28['registry']['getMediaViewElement'](new _0x5a1ade(_0x4bdc49['editing']['view']['document']),_0x2cc036,{'elementName':'','renderForEditingView':!0x0}),_0x4fc755=document['createElement']('div');_0x4fc755['classList']['add']('ck-media__wrapper'),_0x4d8b23['render'](_0x4fc755,_0x4bdc49['editing']['view']['domConverter']),_0x139eb9['replaceWith'](_0x4fc755);}}}),_0x8da6b5[_0x3efb35]=_0x24fca5['innerHTML']);}return _0x8da6b5;}['_sortRoots'](_0x1b3fde){if(!function(_0x3e918d){return void 0x0!==_0x3e918d['getRootsAttributes'];}(_0x1b3fde))return _0x1b3fde['model']['document']['getRootNames']();const _0x1a2dcc=[],_0xc585b6=new Map();for(const _0x2c4544 of _0x1b3fde['model']['document']['getRootNames']()){const _0x1ca24a=_0x1b3fde['editing']['view']['getDomRoot'](_0x2c4544)['getClientRects']()['item'](0x0);_0x1a2dcc['push'](_0x2c4544),_0xc585b6['set'](_0x2c4544,_0x1ca24a);}return _0x1a2dcc['sort']((_0x1ff36f,_0x4b4696)=>{const _0x5a5027=_0xc585b6['get'](_0x1ff36f),_0x4884a1=_0xc585b6['get'](_0x4b4696);return _0x5a5027['y']-_0x4884a1['y']||_0x5a5027['x']-_0x4884a1['x'];}),_0x1a2dcc;}}class te extends _0x497417{static get['requires'](){return[T,_0x2dc774];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51eca5){super(_0x51eca5),_0x51eca5['commands']['add']('previewFinalContent',new re(this['editor'])),_0x51eca5['config']['define']('trackChanges.preview.renderFunction',(_0x5e28e8,_0x2fb9be)=>{for(const _0x232c77 of _0x2fb9be)_0x5e28e8['appendChild'](_0x232c77);});}}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 _0x2c30c1,Plugin as _0x4d6f06,PendingActions as _0x282b8a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x190b7b,ObservableMixin as _0x3e1dc1,uid as _0x2b2ac3,priorities as _0x36d092,insertToPriorityArray as _0x2570cf,logWarning as _0x180879,getEnvKeystrokeText as _0x2dcbe4,FocusTracker as _0x5aee78,KeystrokeHandler as _0x5d5448,Collection as _0xcb124a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x85b4f,IconCancel as _0xe4231e,IconTrackChanges as _0x21460a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x405167,View as _0x1d589e,ViewCollection as _0x554864,FocusCycler as _0x1411b0,ViewModel as _0x582863,createDropdown as _0x10764e,SplitButtonView as _0x177050,addListToDropdown as _0x10e936,MenuBarMenuView as _0x32c410,MenuBarMenuListView as _0x1d2671,ListSeparatorView as _0x1b5248,MenuBarMenuListItemView as _0x5b1654,MenuBarMenuListItemButtonView as _0x2ef8ef,BodyCollection as _0x5bfcda,Dialog as _0x2a8fe3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x438bbc,hashObject as _0x5d286a,surroundingMarkersDetector as _0x1a3e72,FOCUS_ANNOTATION_KEYSTROKE as _0x51472a,AriaDescriptionView as _0x49a5d5,setupThreadKeyboardNavigation as _0x472e61,trimHtml as ti,UserView as _0x3733a4,LateFocusButtonView as _0x25db34,getDateTimeFormatter as _0x1bdae9,getAllMarkersDomElementsSorted as _0x20d586,sanitizeEditorConfig as _0x5bf450}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3b22c9,LiveRange as _0x3e72a4,LivePosition as _0x386249,DowncastWriter as _0x164888}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x394bd3,toWidget as _0xe4adb2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x370c79,set as _0x596853,isEqual as _0x42c2a5,unset as _0x1bbc87,omit as Vt}from'es-toolkit/compat';import{Delete as _0x15283e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x30a003,ShiftEnter as _0x3e998a}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x2c30c1{['_enabledCommands'];constructor(_0x38ed55,_0x4a0f3a){super(_0x38ed55),this['_enabledCommands']=_0x4a0f3a,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 _0x5abe41 of this['editor']['commands']['commands']())_0x5abe41['affectsData']&&!this['_enabledCommands']['has'](_0x5abe41)&&_0x5abe41['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xe6bf5f of this['editor']['commands']['commands']())_0xe6bf5f['affectsData']&&!this['_enabledCommands']['has'](_0xe6bf5f)&&_0xe6bf5f['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x2c30c1{['_suggestions'];constructor(_0x1a6e70,_0x603c51){super(_0x1a6e70),this['_suggestions']=_0x603c51,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x261efd){const _0x5154ca=this['_suggestions']['get'](_0x261efd);if(!_0x5154ca)throw new _0x190b7b('track-changes-accept-suggestion-not-found',this);const _0x21a760=_0x5154ca['getRanges']();this['editor']['model']['canEditAt'](_0x21a760)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5154ca);}}class R extends _0x2c30c1{['_suggestions'];constructor(_0x3d4dca,_0x7f6954){super(_0x3d4dca),this['_suggestions']=_0x7f6954,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3391eb){const _0x4a184d=this['_suggestions']['get'](_0x3391eb);if(!_0x4a184d)throw new _0x190b7b('track-changes-discard-suggestion-not-found',this);const _0x42899f=_0x4a184d['getRanges']();this['editor']['model']['canEditAt'](_0x42899f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4a184d);}}function ls(_0x18e9f0,_0x594c8e){let _0x144710='';return _0x144710+=_0x18e9f0['split']('*')['map']((_0x5e4b6b,_0x4ec9cd)=>_0x4ec9cd%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5e4b6b)+'</span>':nn(_0x5e4b6b))['join'](''),_0x594c8e&&(_0x144710+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x594c8e['value']+'\x22\x20title=\x22'+_0x594c8e['title']+'\x22></span>'),_0x144710;}function nn(_0x3ab203){const _0x58c94f=document['createElement']('span');return _0x58c94f['innerText']=_0x3ab203,_0x58c94f['innerHTML'];}function ts(_0x4fe93c){return _0x4fe93c['sort']((_0x424a83,_0xfe9607)=>'deletion'==_0x424a83['type']&&'deletion'!=_0xfe9607['type']?-0x1:'deletion'!=_0x424a83['type']&&'deletion'==_0xfe9607['type']?0x1:0x0);}function Zt(_0x4ff36a,_0x5183ad){let _0x4bb9e3,_0x490825=0x0;const _0x2527e1=[],_0x38ba68=_0x5183ad['schema'];for(;_0x490825<_0x4ff36a['length'];){const _0x25ad88=_0x4ff36a[_0x490825],_0x515342=_0x4ff36a[_0x490825+0x1];_0x4bb9e3||(_0x4bb9e3=_0x5183ad['createPositionBefore'](_0x25ad88)),on(_0x5183ad,_0x25ad88,_0x515342)||(_0x2527e1['push'](_0x5183ad['createRange'](_0x4bb9e3,_0x38ba68['isObject'](_0x25ad88)?_0x5183ad['createPositionAfter'](_0x25ad88):_0x5183ad['createPositionAt'](_0x25ad88,'end'))),_0x4bb9e3=null),_0x490825++;}return _0x2527e1;}function on(_0xec4a75,_0x9aa5fd,_0xdb40cc){if(!_0xdb40cc)return!0x1;const _0x3fc667=_0xec4a75['createPositionAfter'](_0x9aa5fd),_0x5f3812=_0xec4a75['createPositionBefore'](_0xdb40cc);return _0x3fc667['isTouching'](_0x5f3812);}function rs(_0x54de5d,_0x2d6492,_0x4ff13c){for(;_0x4ff13c['length'];){const _0x900178=_0x4ff13c['splice'](0x0,0x64);_0x54de5d['change'](()=>{for(const _0x11e373 of _0x900178)_0x11e373['isInContent']&&_0x2d6492['execute'](_0x11e373['id']);});}}class x extends _0x2c30c1{['_command'];['_suggestions'];constructor(_0x18c70a,_0x1ce670,_0x183424){super(_0x18c70a),this['_command']=_0x1ce670,this['_suggestions']=_0x183424,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2246f8=Array['from'](this['_suggestions']['values']())['some'](_0x3842ef=>_0x3842ef['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2246f8;}['execute'](){const _0x3de150=ts(Array['from'](this['_suggestions']['values']()));for(const _0x30c6e1 of _0x3de150){const _0x295581=_0x30c6e1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x295581))return;}rs(this['editor']['model'],this['_command'],_0x3de150);}}class E extends _0x2c30c1{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x58a1d1,_0x314c9f,_0x3efd10){super(_0x58a1d1),this['_command']=_0x314c9f,this['_suggestions']=_0x3efd10,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1813f2=this['editor']['model']['document']['selection'],_0xfa6db4=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4d327b,_0x4392e0){const _0x131d49=Array['from'](_0x4d327b['getRanges']()),_0x491e9f=new Set();for(const _0x4cbb5a of _0x4392e0)if(_0x4cbb5a['isInContent']){for(const _0x486cdf of _0x131d49)for(const _0x5ccff1 of _0x4cbb5a['getRanges']())(_0x486cdf['isIntersecting'](_0x5ccff1)||_0x4d327b['isCollapsed']&&!_0x4cbb5a['isMultiRange']&&_0x4cbb5a['next']&&_0x5ccff1['end']['isTouching'](_0x486cdf['start']))&&_0x491e9f['add'](_0x4cbb5a);}return _0x491e9f;}(_0x1813f2,_0xfa6db4),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4eec0b=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3f069f of _0x4eec0b){const _0x31704d=_0x3f069f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x31704d))return;}rs(this['editor']['model'],this['_command'],_0x4eec0b);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x3e1dc1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x56123c,_0x2d2c19){super(),this['id']=_0x2d2c19['id'],this['type']=_0x2d2c19['type'],this['subType']=_0x2d2c19['subType']||null,this['author']=_0x2d2c19['author'],this['creator']=_0x2d2c19['creator']||_0x2d2c19['author'],this['isExternal']=Boolean(_0x2d2c19['attributes']&&_0x2d2c19['attributes']['@external']),this['data']=null,this['_model']=_0x56123c,this['_onAccept']=_0x2d2c19['onAccept'],this['_onDiscard']=_0x2d2c19['onDiscard'],this['_onAttributesChange']=_0x2d2c19['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2d2c19['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 _0x3505d1=this;for(;_0x3505d1['previous'];)_0x3505d1=_0x3505d1['previous'];return _0x3505d1;}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'](_0x3ffb8c){this['_markerNames']['add'](_0x3ffb8c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2f9175=>this['_model']['markers']['get'](_0x2f9175))['filter'](_0xe291e6=>_0xe291e6);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x54a77b=>{for(const _0x5152fc of this['getMarkers']())_0x54a77b['removeMarker'](_0x5152fc);}),this['_markerNames']['clear']();}['removeMarker'](_0x8b6b52){this['_model']['change'](_0x575a0d=>{_0x575a0d['removeMarker'](_0x8b6b52);}),this['_markerNames']['delete'](_0x8b6b52);}['addRange'](_0x359294){const _0xfd4e7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0xfd4e7),this['_model']['change'](_0x5a5ab5=>{_0x5a5ab5['addMarker'](_0xfd4e7,{'range':_0x359294,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4d6640){for(const _0x173a99 of this['getRanges']())if(_0x173a99['isIntersecting'](_0x4d6640))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x180990=>_0x180990['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4d2b3b,_0x18e035)=>[..._0x4d2b3b,..._0x18e035['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x368342=this['getRanges']();if(0x1!=_0x368342['length'])return null;const _0x2b9695=_0x368342[0x0],_0x5ba2d8=_0x2b9695['start']['nodeAfter'],_0x5a4a96=_0x2b9695['end']['nodeBefore'];return _0x5ba2d8 instanceof _0x3b22c9?_0x5ba2d8!=_0x5a4a96?null:_0x5ba2d8: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 _0x2a44ef=[];let _0x5c16a1=this['head'];for(;_0x5c16a1;)_0x2a44ef['push'](_0x5c16a1),_0x5c16a1=_0x5c16a1['next'];return _0x2a44ef;}['setAttribute'](_0x4b7e31,_0x42c1f5){const _0x232291=_0x370c79(this['attributes']);_0x596853(_0x232291,_0x4b7e31,_0x42c1f5),_0x42c2a5(_0x232291,this['attributes'])||(this['attributes']=_0x232291,this['_onAttributesChange'](_0x232291));}['removeAttribute'](_0x35b1fe){const _0x46c2ec=_0x370c79(this['attributes']);_0x1bbc87(_0x46c2ec,_0x35b1fe),_0x42c2a5(_0x46c2ec,this['attributes'])||(this['attributes']=_0x46c2ec,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 _0x2b2ac3()['substr'](0x1,0x5);}}function c(_0x54a7a6,_0x140152,_0x321031){const _0x88c7af=_0x54a7a6['t'],t=_0x54a7a6['t'];switch(_0x140152){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',_0x321031);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x321031);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x321031);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x321031);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x321031);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',_0x321031);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x321031);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',_0x321031);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x321031);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x321031);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x321031);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x321031);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x321031);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x321031);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x321031);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x321031);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x321031);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x321031);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x321031);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x321031);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x321031);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x321031);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x321031);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x321031);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'},_0x321031);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x321031);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x321031);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x321031);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x321031);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x321031);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'},_0x321031);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x321031);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x321031);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x321031);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x321031);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'},_0x321031);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x321031);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'},_0x321031);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'},_0x321031);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x321031);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'},_0x321031);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x321031);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'},_0x321031);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x321031);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x321031);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'},_0x321031);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x321031);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 _0x88c7af({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x321031);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x88c7af({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x321031);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x321031);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'},_0x321031);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'},_0x321031);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'},_0x321031);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x140152;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xdb6425,_0x2dca33){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xdb6425,this['_locale']=_0x2dca33;}['getDescriptions'](_0x178edc){const _0x32075d=[],_0x10f549=new Set(),_0x5e23c0=new Set();for(let _0x365637=0x0;_0x365637<_0x178edc['length'];_0x365637++){const _0x5addd9=_0x178edc[_0x365637];if(!_0x5addd9['isInContent'])continue;const _0x3e04b3=this['_handleCustomCallbackDescription'](_0x5addd9);if(_0x3e04b3){if(null!=_0x5addd9['subType']){if(_0x10f549['has'](_0x5addd9['subType']))continue;_0x10f549['add'](_0x5addd9['subType']);}_0x32075d['push'](_0x3e04b3);}else{if('attribute'!=_0x5addd9['type'])'insertion'!=_0x5addd9['type']&&'deletion'!=_0x5addd9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x32075d,_0x5addd9,_0x178edc[_0x365637+0x1]);else{const _0xd6b799=_0x5addd9['data']['key'];if(_0x5e23c0['has'](_0xd6b799))continue;_0x5e23c0['add'](_0x5addd9['data']['key']),_0xd6b799==u?this['_handleRenameSuggestionDescription'](_0x32075d,_0x5addd9):this['_handleAttributeSuggestionDescription'](_0x32075d,_0x5addd9);}}}return this['_resolveDescriptionItems'](_0x32075d);}['registerDescriptionCallback'](_0x38d900){this['_customCallbacks']['push'](_0x38d900);}['registerElementLabel'](_0x3ac74d,_0x1435c8,_0xbe58a2=_0x36d092['normal']){'function'==typeof _0x3ac74d?_0x2570cf(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3ac74d,'label':_0x1435c8,'priority':_0xbe58a2}):this['_itemLabels']['set'](_0x3ac74d,_0x1435c8);}['registerAttributeLabel'](_0x2488f0,_0x30dbe9){this['_attributeLabels']['set'](_0x2488f0,_0x30dbe9);}['getItemLabel'](_0x3cb7c6,_0x2c5f85=0x1){let _0x25356a;for(const _0x47c022 of this['_itemLabelsCallbacks'])if(_0x47c022['matchingCallback'](_0x3cb7c6)){_0x25356a=_0x47c022['label'];break;}return _0x25356a||(_0x25356a=this['_itemLabels']['get'](_0x3cb7c6['name'])),_0x25356a?_0x25356a(_0x2c5f85):0x1!==_0x2c5f85?_0x2c5f85+'\x20'+_0x3cb7c6['name']+'s':''+_0x3cb7c6['name'];}['_addDescriptionItems'](_0x1ad3d0,_0x43e895){const _0x421deb=_0x43e895['getFirstRange']()['getWalker'](),_0x505ffa='insertion'==_0x43e895['type']?'add':'remove';for(const _0x1cf84f of _0x421deb){const _0x4ede5a=_0x1cf84f['item'],_0x29eda0=_0x1ad3d0[_0x1ad3d0['length']-0x1];if(_0x4ede5a['is']('$textProxy'))_0x29eda0&&_0x29eda0['type']['indexOf']('Container')>-0x1&&_0x1ad3d0['pop'](),_0x29eda0&&'text'==_0x29eda0['type']?_0x29eda0[_0x505ffa]+=_0x4ede5a['data']:_0x1ad3d0['push']({'type':'text','add':'add'==_0x505ffa?_0x4ede5a['data']:'','remove':'remove'==_0x505ffa?_0x4ede5a['data']:''});else{if(this['_schema']['isObject'](_0x4ede5a)){const _0x4deb80=_0x4ede5a;if(_0x29eda0&&_0x29eda0['type']['indexOf']('Container')>-0x1&&_0x1ad3d0['pop'](),'elementEnd'==_0x1cf84f['type'])continue;_0x29eda0&&_0x29eda0['type']==_0x505ffa+'Object'&&_0x29eda0['element']['name']==_0x4deb80['name']?_0x29eda0['quantity']++:_0x1ad3d0['push']({'type':_0x505ffa+'Object','element':_0x4deb80,'quantity':0x1}),_0x421deb['skip'](_0x54d65e=>!('elementEnd'==_0x54d65e['type']&&_0x54d65e['item']==_0x4ede5a));}else{if(this['_schema']['checkChild'](_0x4ede5a,'$text')||_0x4ede5a['is']('element','softBreak')){const _0x189b3f=_0x4ede5a;if('add'==_0x505ffa&&'elementStart'==_0x1cf84f['type']||'remove'==_0x505ffa&&'elementEnd'==_0x1cf84f['type'])continue;if(_0x29eda0&&-0x1==_0x29eda0['type']['indexOf']('Container')){'text'==_0x29eda0['type']&&(_0x29eda0[_0x505ffa]+='\x0a');continue;}let _0x18f961;if(_0x18f961='add'==_0x505ffa?_0x189b3f['nextSibling']&&!this['_schema']['isObject'](_0x189b3f['nextSibling'])?_0x189b3f['nextSibling']:null:_0x189b3f['previousSibling']&&!this['_schema']['isObject'](_0x189b3f['previousSibling'])?_0x189b3f['previousSibling']:null,_0x189b3f['isEmpty']||_0x18f961&&_0x18f961['isEmpty']){const _0x3fda28=_0x18f961&&_0x18f961['isEmpty']?_0x18f961:_0x189b3f;_0x29eda0&&_0x29eda0['type']==_0x505ffa+'EmptyContainer'&&_0x29eda0['element']['name']==_0x3fda28['name']?_0x29eda0['quantity']++:_0x1ad3d0['push']({'type':_0x505ffa+'EmptyContainer','element':_0x3fda28,'quantity':0x1});}else _0x1ad3d0['push']({'type':_0x505ffa+'Container','element':_0x189b3f});}}}}}['_resolveDescriptionItems'](_0xfa3178){const _0x3f34b5=this['_locale'],_0xda9a66=[],_0x179d2f=[],_0x329984=[];for(const _0x19f7ff of _0xfa3178)switch(_0x19f7ff['type']){case'text':if(_0x19f7ff['add']=_0x19f7ff['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x19f7ff['remove']=_0x19f7ff['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x19f7ff['add']&&''!=_0x19f7ff['remove']){_0xda9a66['push']({'type':'replace','content':c(_0x3f34b5,'REPLACE_TEXT',['\x22'+_0x19f7ff['remove']+'\x22','\x22'+_0x19f7ff['add']+'\x22'])});continue;}if(null!=_0x19f7ff['add']['match'](/^ +$/)){_0xda9a66['push']({'type':'insertion','content':c(_0x3f34b5,'*Insert:*\x20%0',c(_0x3f34b5,'ELEMENT_SPACE',_0x19f7ff['add']['length']))});continue;}if(null!=_0x19f7ff['remove']['match'](/^ +$/)){_0xda9a66['push']({'type':'deletion','content':c(_0x3f34b5,'*Remove:*\x20%0',c(_0x3f34b5,'ELEMENT_SPACE',_0x19f7ff['remove']['length']))});continue;}if(''!=_0x19f7ff['add']){_0xda9a66['push']({'type':'insertion','content':c(_0x3f34b5,'*Insert:*\x20%0','\x22'+_0x19f7ff['add']+'\x22')});continue;}_0xda9a66['push']({'type':'deletion','content':c(_0x3f34b5,'*Remove:*\x20%0','\x22'+_0x19f7ff['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xda9a66['push']({'type':'insertion','content':c(_0x3f34b5,'*Insert:*\x20%0',this['getItemLabel'](_0x19f7ff['element'],_0x19f7ff['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xda9a66['push']({'type':'deletion','content':c(_0x3f34b5,'*Remove:*\x20%0',this['getItemLabel'](_0x19f7ff['element'],_0x19f7ff['quantity']))});continue;case'addContainer':_0xda9a66['push']({'type':'insertion','content':c(_0x3f34b5,'*Split:*\x20%0',this['getItemLabel'](_0x19f7ff['element'],_0x19f7ff['quantity']))});continue;case'removeContainer':_0xda9a66['push']({'type':'deletion','content':c(_0x3f34b5,'*Merge:*\x20%0',this['getItemLabel'](_0x19f7ff['element'],_0x19f7ff['quantity']))});continue;case'addFormat':_0x179d2f['push'](_0x19f7ff['key']);continue;case'removeFormat':_0x329984['push'](_0x19f7ff['key']);continue;default:_0xda9a66['push'](_0x19f7ff);}if(_0x179d2f['length']){const _0x8fdef5=_0x179d2f['map'](_0x18e35b=>this['_attributeLabels']['has'](_0x18e35b)?this['_attributeLabels']['get'](_0x18e35b):_0x18e35b)['join'](',\x20');_0xda9a66['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x8fdef5)});}if(_0x329984['length']){const _0x3c48b4=_0x329984['map'](_0x435c12=>this['_attributeLabels']['has'](_0x435c12)?this['_attributeLabels']['get'](_0x435c12):_0x435c12)['join'](',\x20');_0xda9a66['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x3c48b4)});}return _0xda9a66;}['_handleCustomCallbackDescription'](_0x495d4c){for(const _0x334956 of this['_customCallbacks']){const _0x32d5bc=_0x334956(_0x495d4c);if(_0x32d5bc&&'type'in _0x32d5bc)return _0x32d5bc;}}['_handleAttributeSuggestionDescription'](_0x2ff435,_0x3530cc){const _0x1f804c=_0x3530cc['data'],_0x406dcc=void 0x0===_0x1f804c['newValue']?'removeFormat':'addFormat';_0x2ff435['push']({'type':_0x406dcc,'key':_0x1f804c['key']});}['_handleRenameSuggestionDescription'](_0x23e19b,_0x35b72){_0x23e19b['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x35b72['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x37b0e1,_0x5ed5c8,_0x5d0772){if(this['_addDescriptionItems'](_0x37b0e1,_0x5ed5c8),_0x5d0772&&_0x5d0772['getFirstRange']()&&!_0x5ed5c8['getFirstRange']()['end']['isEqual'](_0x5d0772['getFirstRange']()['start'])){const _0x33ba7=_0x37b0e1[_0x37b0e1['length']-0x1],_0x33e1fa='insertion'==_0x5ed5c8['type']?'add':'remove';_0x33ba7&&'text'==_0x33ba7['type']&&(_0x33ba7[_0x33e1fa]+='\x0a');}}}class U extends _0x4d6f06{['afterInit'](){const _0x596bc0=this['editor'],_0x4582bb=_0x596bc0['plugins']['get']('TrackChangesEditing');_0x596bc0['commands']['get']('showAIAssistant')&&_0x4582bb['enableCommand']('showAIAssistant');}}class V extends _0x4d6f06{['afterInit'](){const _0x520cc8=this['editor'],_0x1b2240=_0x520cc8['locale'];if(!_0x520cc8['plugins']['has']('AlignmentEditing'))return;const _0x2abba0=_0x520cc8['plugins']['get']('TrackChangesEditing');_0x2abba0['enableDefaultAttributesIntegration']('alignment'),_0x2abba0['registerBlockAttribute']('alignment'),_0x2abba0['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x1b2240,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3522b9=this['editor'],_0x58c794=_0x3522b9['locale'];_0x3522b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5884b2=>{if('formatBlock'!=_0x5884b2['type'])return;const {data:_0x29f864}=_0x5884b2;if(_0x29f864&&'alignment'==_0x29f864['commandName']){const _0xb881f8=_0x29f864['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x58c794,'*Format:*\x20%0',function(_0xaf6577){switch(_0xaf6577){case'left':return c(_0x58c794,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x58c794,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x58c794,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x58c794,'FORMAT_JUSTIFY_TEXT');}}(_0xb881f8))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x4d6f06{['afterInit'](){const _0x5d0788=this['editor'],_0x5eb66d=_0x5d0788['plugins']['get']('TrackChangesEditing'),_0x3332b9=_0x5d0788['locale'];for(const _0x1ff478 of Yt){if(!_0x5d0788['plugins']['has'](_0x1ff478))continue;const _0x1d76a2=_0x1ff478['slice'](0x0,-0x7)['toLowerCase'](),_0x1c7161='FORMAT_'+_0x1d76a2['toUpperCase']();_0x5eb66d['enableDefaultAttributesIntegration'](_0x1d76a2),_0x5eb66d['registerInlineAttribute'](_0x1d76a2),_0x5eb66d['descriptionFactory']['registerAttributeLabel'](_0x1d76a2,c(_0x3332b9,_0x1c7161));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f7138=this['editor'],_0x2747d4=_0x3f7138['locale'],_0x533d60=_0x3f7138['plugins']['get']('TrackChangesEditing');function _0x1a2503(_0x21056d,_0x4d0d35){_0x533d60['descriptionFactory']['registerDescriptionCallback'](_0x3d899d=>{if('formatInline'!=_0x3d899d['type'])return;const {data:_0x193268}=_0x3d899d;return _0x193268&&_0x193268['commandName']===_0x21056d?_0x193268['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2747d4,'*Format:*\x20%0',_0x4d0d35)}:{'type':'format','content':c(_0x2747d4,'*Remove\x20format:*\x20%0',_0x4d0d35)}:void 0x0;});}_0x1a2503('bold',c(_0x2747d4,'FORMAT_BOLD')),_0x1a2503('italic',c(_0x2747d4,'FORMAT_ITALIC')),_0x1a2503('underline',c(_0x2747d4,'FORMAT_UNDERLINE')),_0x1a2503('code',c(_0x2747d4,'FORMAT_CODE')),_0x1a2503('strikethrough',c(_0x2747d4,'FORMAT_STRIKETHROUGH')),_0x1a2503('subscript',c(_0x2747d4,'FORMAT_SUBSCRIPT')),_0x1a2503('superscript',c(_0x2747d4,'FORMAT_SUPERSCRIPT'));}}class G extends _0x4d6f06{['afterInit'](){const _0x10ba7a=this['editor'],_0x3a3ac6=_0x10ba7a['locale'];if(!_0x10ba7a['plugins']['has']('BlockQuoteEditing'))return;const _0xa2e31=_0x10ba7a['plugins']['get']('TrackChangesEditing'),_0x21d54a=this['editor']['commands']['get']('blockQuote');_0xa2e31['enableCommand']('blockQuote',(_0x443676,_0xe56599={})=>{const _0x389bd7=this['editor']['model']['document']['selection'],_0x3af488=_0xe56599&&void 0x0!==_0xe56599['forceValue']?_0xe56599['forceValue']:!_0x21d54a['value'];let _0x39f026=[];if(_0x3af488){const _0x528f2d=Array['from'](_0x389bd7['getSelectedBlocks']())['filter'](_0x1d7589=>to(_0x1d7589)||function(_0x4d456e,_0x2acb0c){const _0x18cb08=_0x2acb0c['checkChild'](_0x4d456e['parent'],'blockQuote'),_0x40b02c=_0x2acb0c['checkChild'](['$root','blockQuote'],_0x4d456e);return _0x18cb08&&_0x40b02c;}(_0x1d7589,this['editor']['model']['schema']));_0x39f026=Zt(_0x528f2d,_0x10ba7a['model']);}else{const _0x3c9afd=Array['from'](_0x389bd7['getSelectedBlocks']())['filter'](_0x12f77e=>to(_0x12f77e));_0x39f026=Zt(_0x3c9afd,_0x10ba7a['model']);}_0x10ba7a['model']['change'](()=>{for(const _0x57a380 of _0x39f026)_0xa2e31['markBlockFormat'](_0x57a380,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3af488}]});});}),_0xa2e31['descriptionFactory']['registerDescriptionCallback'](_0x1ff230=>{const {data:_0x308656}=_0x1ff230;if(_0x308656&&'blockQuote'==_0x308656['commandName']){const _0x3b9abd=c(_0x3a3ac6,'ELEMENT_BLOCK_QUOTE');return _0x308656['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3a3ac6,'*Set\x20format:*\x20%0',_0x3b9abd)}:{'type':'format','content':c(_0x3a3ac6,'*Remove\x20format:*\x20%0',_0x3b9abd)};}});}}function to(_0x26170a){return'blockQuote'==_0x26170a['parent']['name'];}class L extends _0x4d6f06{['afterInit'](){const _0xcc8f85=this['editor'],_0x13d35d=_0xcc8f85['locale'],_0x46aa0d=_0xcc8f85['plugins']['get']('TrackChangesEditing');_0xcc8f85['plugins']['has']('BookmarkEditing')&&(_0x46aa0d['enableCommand']('insertBookmark'),_0x46aa0d['enableDefaultAttributesIntegration']('updateBookmark'),_0x46aa0d['registerBlockAttribute']('bookmarkId'),_0x46aa0d['descriptionFactory']['registerDescriptionCallback'](_0x23d22c=>{if('insertion'!=_0x23d22c['type']&&'deletion'!=_0x23d22c['type']&&'attribute'!=_0x23d22c['type'])return;const _0x12fa9b=_0x23d22c['getContainedElement']();if(null==_0x12fa9b)return;if(!_0x12fa9b['is']('element','bookmark'))return;const _0x385ee6=_0x12fa9b['getAttribute']('bookmarkId');if('insertion'==_0x23d22c['type'])return{'type':'insertion','content':c(_0x13d35d,'*Insert:*\x20%0','\x22'+_0x385ee6+'\x22\x20'+c(_0x13d35d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x23d22c['type'])return{'type':'deletion','content':c(_0x13d35d,'*Remove:*\x20%0','\x22'+_0x385ee6+'\x22\x20'+c(_0x13d35d,'ELEMENT_BOOKMARK'))};const {data:_0x49ecba}=_0x23d22c;if(!_0x49ecba||'bookmarkId'!=_0x49ecba['key'])return;return{'type':'format','content':c(_0x13d35d,'*Set\x20bookmark:*\x20%0','\x22'+_0x49ecba['newValue']+'\x22')};}));}}class J extends _0x4d6f06{['afterInit'](){const _0x2f0efe=this['editor'];_0x2f0efe['plugins']['has']('CaseChange')&&(_0x2f0efe['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2f0efe['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2f0efe['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x4d6f06{['afterInit'](){const _0x3c53d1=this['editor'];_0x3c53d1['commands']['get']('ckbox')&&_0x3c53d1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x4d6f06{['afterInit'](){const _0x38df35=this['editor'];if(!_0x38df35['plugins']['has']('CodeBlock'))return;const _0x116ff2=_0x38df35['plugins']['get']('TrackChangesEditing'),_0xc42607=_0x38df35['locale'],_0x1f8897=_0x38df35['config']['get']('codeBlock')['languages'],_0x123b5c=_0x38df35['commands']['get']('codeBlock');_0x116ff2['enableCommand']('indentCodeBlock'),_0x116ff2['enableCommand']('outdentCodeBlock'),_0x116ff2['enableCommand']('codeBlock',(_0x5c8279,_0x953ebd={})=>{const _0x5a0330=_0x38df35['model'],_0x86d223=_0x38df35['model']['document']['selection'],_0x5f2336=_0x953ebd&&void 0x0!==_0x953ebd['forceValue']?_0x953ebd['forceValue']:!_0x123b5c['value'];let _0x259e36;_0x953ebd['language']||(_0x953ebd['language']=_0x1f8897[0x0]['language']),_0x259e36=_0x5f2336?Array['from'](_0x86d223['getSelectedBlocks']())['filter'](_0x39611a=>oo(_0x39611a)||function(_0x45291e,_0x42ee61){if(_0x45291e['is']('rootElement')||_0x42ee61['isLimit'](_0x45291e))return!0x1;return _0x42ee61['checkChild'](_0x45291e['parent'],'codeBlock');}(_0x39611a,_0x5a0330['schema'])):Array['from'](_0x86d223['getSelectedBlocks']())['filter'](_0x4c8e39=>oo(_0x4c8e39));const _0x8feae0=Zt(_0x259e36,_0x5a0330);_0x5a0330['change'](()=>{for(const _0x4b6695 of _0x8feae0)_0x116ff2['markBlockFormat'](_0x4b6695,{'commandName':'codeBlock','commandParams':[{..._0x953ebd,'forceValue':_0x5f2336}],'formatGroupId':'blockName'});});}),(_0x116ff2['descriptionFactory']['registerElementLabel']('codeBlock',_0x5938a4=>c(_0xc42607,'ELEMENT_CODE_BLOCK',_0x5938a4)),_0x116ff2['descriptionFactory']['registerDescriptionCallback'](_0x5aeb57=>{if('formatBlock'!=_0x5aeb57['type'])return;const _0x3f4aa4=_0xc42607['t'],{data:_0x481d79}=_0x5aeb57;if(!_0x481d79||'codeBlock'!=_0x481d79['commandName'])return;const _0x58a60a=_0x481d79['commandParams'][0x0]['language'],_0x30cd99=_0x3f4aa4(_0x1f8897['find'](_0x54c84f=>_0x54c84f['language']===_0x58a60a)['label'])['toLowerCase']();return _0x481d79['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xc42607,'*Set\x20format:*\x20%0',c(_0xc42607,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x30cd99+')')}:{'type':'format','content':c(_0xc42607,'*Remove\x20format:*\x20%0',c(_0xc42607,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x471a1f){return'codeBlock'==_0x471a1f['name'];}class q extends _0x4d6f06{['afterInit'](){const _0x3509ce=this['editor'];if(!_0x3509ce['plugins']['has']('CommentsEditing'))return;_0x3509ce['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1f6138,_0xb2d0c0,_0x5d6281){const _0x34e346=[];for(const _0x10e293 of _0xb2d0c0['getItems']())_0x10e293['hasAttribute'](_0x1f6138)&&_0x34e346['push'](_0x5d6281['createRangeOn'](_0x10e293));return _0x34e346;}function De(_0x2058fd,_0x56c690,{showActiveMarker:_0x2577aa=!0x0}={}){const _0x7b807f=_0x2058fd['plugins']['get']('TrackChangesEditing');return(_0x467389,_0x562d82,_0x4ff9c3)=>{if(!_0x4ff9c3['consumable']['test'](_0x562d82['markerRange'],_0x467389['name']))return;const _0x74f9ee=_0x562d82['markerRange']['getWalker'](),_0x502cfc=_0x562d82['markerRange']['start'],_0x51115e=_0x2058fd['model']['schema'];let _0x5c8ada=null,_0x2c6963=null,_0x5219e=!0x1,_0x5598a3=!0x1;for(const _0x1aaaac of _0x74f9ee){const _0x421ef7=_0x1aaaac['item'];_0x5219e=_0x5219e||_0x51115e['isContent'](_0x421ef7);const _0x128a5f=_0x4ff9c3['mapper']['toViewElement'](_0x421ef7);if(_0x128a5f&&_0x128a5f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1aaaac['type']&&(_0x51115e['isBlock'](_0x421ef7)&&!_0x51115e['isLimit'](_0x421ef7)&&(_0x421ef7['nextSibling']||_0x502cfc['isAtEnd']?_0x5c8ada&&_0x5c8ada['parent']==_0x421ef7||(_0x5c8ada=_0x421ef7,_0x2bf3be(_0x1aaaac['previousPosition']),_0x5598a3=!0x0):_0x2c6963=_0x2c6963||_0x1aaaac['previousPosition']));}function _0x2bf3be(_0x1be4cd){const {authorId:_0x5d1657}=_0x7b807f['_splitMarkerName'](_0x562d82['markerName']),_0x4f0e45=_0x4ff9c3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56c690,'data-author-id':_0x5d1657}),_0x816a90=_0x4ff9c3['mapper']['toViewPosition'](_0x1be4cd);_0x2577aa&&_0x7b807f['activeMarkers']['includes'](_0x562d82['markerName'])&&_0x4ff9c3['writer']['addClass']('ck-suggestion-marker--active',_0x4f0e45),_0x4ff9c3['writer']['insert'](_0x816a90,_0x4f0e45),_0x4ff9c3['mapper']['bindElementToMarker'](_0x4f0e45,_0x562d82['markerName']);}_0x5219e||_0x5598a3||!_0x2c6963||_0x2bf3be(_0x2c6963);};}class z extends _0x4d6f06{static get['requires'](){return[_0x15283e];}['init'](){const _0x107f8e=this['editor'],_0x586369=_0x107f8e['plugins']['get']('TrackChangesEditing');_0x586369['enableCommand']('delete');const _0x3b5362=_0x107f8e['commands']['get']('deleteForward');_0x586369['enableCommand']('deleteForward',(_0x2620a9,_0x39d6f7={})=>{const _0x2b22ab=_0x107f8e['model']['createSelection'](_0x107f8e['model']['document']['selection']);_0x2b22ab['isCollapsed']&&_0x107f8e['model']['modifySelection'](_0x2b22ab,{'direction':'forward','unit':_0x39d6f7['unit']});const _0x3d840d=_0x2b22ab['getFirstRange'](),_0x5e1035=_0x3e72a4['fromRange'](_0x3d840d);let _0xedadf8;_0x2620a9(_0x39d6f7),_0xedadf8='$graveyard'==_0x5e1035['root']['rootName']?_0x107f8e['model']['createRange'](_0x3d840d['start']):_0x107f8e['model']['createRange'](_0x5e1035['start'],_0x5e1035['end']),_0x5e1035['detach'](),_0x107f8e['model']['enqueueChange'](_0x3b5362['buffer']['batch'],_0x3d766f=>{_0x3b5362['buffer']['lock'](),_0x3d766f['setSelection'](_0x3d766f['createRange'](_0xedadf8['end'])),_0x3b5362['buffer']['unlock']();});}),_0x107f8e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x107f8e,'merge'),{'priority':'high'}),_0x107f8e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4fa6d1,_0x199e87,_0x3c3125)=>{_0x3c3125['options']['showSuggestionHighlights']&&De(_0x107f8e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4fa6d1,_0x199e87,_0x3c3125);},{'priority':'high'}),_0x107f8e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x292163,_0x82305a,_0x17cf65)=>{const _0x2f429b=_0x17cf65['mapper']['markerNameToElements'](_0x82305a['markerName']);if(_0x2f429b){for(const _0x1d32cf of _0x2f429b)_0x1d32cf['is']('uiElement')&&(_0x17cf65['mapper']['unbindElementFromMarkerName'](_0x1d32cf,_0x82305a['markerName']),_0x17cf65['writer']['remove'](_0x1d32cf));}},{'priority':'high'});}}class W extends _0x4d6f06{['afterInit'](){const _0x1364c5=this['editor'];if(!_0x1364c5['plugins']['has']('ListEditing'))return;const _0x381fff=_0x1364c5['locale'],_0x3f8e00=_0x1364c5['plugins']['get']('TrackChangesEditing'),_0xe9029e=_0x1364c5['plugins']['has']('TodoListEditing'),_0x2ae173=!!_0x1364c5['config']['get']('list.multiBlock');function _0x2e1f83(_0x11bedd){return{'type':'format','content':''+c(_0x381fff,'*Set\x20format:*\x20%0',_0x11bedd)};}function _0x37703d(_0x476763){return{'type':'format','content':''+c(_0x381fff,'*Remove\x20format:*\x20%0',_0x476763)};}_0x3f8e00['enableDefaultAttributesIntegration']('numberedList'),_0x3f8e00['enableDefaultAttributesIntegration']('bulletedList'),_0x3f8e00['enableDefaultAttributesIntegration']('customNumberedList'),_0x3f8e00['enableDefaultAttributesIntegration']('customBulletedList'),_0x3f8e00['enableDefaultAttributesIntegration']('indentList'),_0x3f8e00['enableDefaultAttributesIntegration']('outdentList'),_0x3f8e00['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3f8e00['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3f8e00['registerBlockAttribute']('listItemId'),_0x3f8e00['registerBlockAttribute']('listType'),_0x3f8e00['registerBlockAttribute']('listIndent'),_0x2ae173&&(_0x3f8e00['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3f8e00['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xe9029e&&(_0x3f8e00['enableDefaultAttributesIntegration']('todoList'),_0x3f8e00['enableDefaultAttributesIntegration']('checkTodoList'),_0x3f8e00['registerBlockAttribute']('todoListChecked'),_0x3f8e00['descriptionFactory']['registerDescriptionCallback'](_0xfb1bb0=>{const {data:_0x101fa6}=_0xfb1bb0;if(_0x101fa6&&'todoListChecked'==_0x101fa6['key'])return{'type':'format','content':_0x101fa6['newValue']?c(_0x381fff,'*Check\x20item*'):c(_0x381fff,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xc54b12=>{if(_0xc54b12['batch']['isUndo'])return!0x1;let _0x4a1891=!0x1;const _0x24ad62=_0x3f8e00['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e75d2=>'todoListChecked'===_0x3f8e00['_getAttributeKey'](_0x1e75d2));for(const _0x2b5dce of _0x24ad62){'todo'!=_0x2b5dce['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3f8e00['_findSuggestions'](_0x2b5dce['getFirstRange'](),'attribute')['find'](_0x2dcf6d=>'listType'===_0x3f8e00['_getAttributeKey'](_0x2dcf6d['suggestion']))||(_0xc54b12['removeMarker'](_0x2b5dce['getFirstMarker']()),_0x4a1891=!0x0));}return _0x4a1891;})),_0x3f8e00['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x381fff,'FORMAT_INDENT'));const _0x29a556={'type':'format','content':''};_0x3f8e00['descriptionFactory']['registerDescriptionCallback'](_0x3f4b5c=>{const {data:_0x57f714}=_0x3f4b5c;if(!_0x57f714||'listType'!=_0x57f714['key'])return;let _0xfe2693=_0x3f4b5c['head'];for(;_0xfe2693;){if(_0xfe2693['data']&&(('listStyle'==_0xfe2693['data']['key']||'listMarkerStyle'==_0xfe2693['data']['key'])&&(_0xfe2693['data']['newValue']&&'default'!=_0xfe2693['data']['newValue']||'default'!=_0xfe2693['data']['oldValue']&&!_0x57f714['newValue'])||!_0x2ae173&&_0xfe2693['data']['key']==u))return _0x29a556;_0xfe2693=_0xfe2693['next'];}if(null==_0x57f714['newValue'])switch(_0x57f714['oldValue']){case'bulleted':return _0x37703d(c(_0x381fff,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x37703d(c(_0x381fff,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x37703d(c(_0x381fff,'ELEMENT_TODO_LIST'));}switch(_0x57f714['newValue']){case'bulleted':return _0x2e1f83(c(_0x381fff,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e1f83(c(_0x381fff,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e1f83(c(_0x381fff,'ELEMENT_TODO_LIST'));}}),_0x3f8e00['descriptionFactory']['registerDescriptionCallback'](_0x555c5f=>{const {data:_0x20a7a5}=_0x555c5f;if(_0x20a7a5&&'listIndent'==_0x20a7a5['key'])return null==_0x20a7a5['newValue']||null==_0x20a7a5['oldValue']&&0x0==_0x20a7a5['newValue']?_0x29a556:void 0x0;}),_0x3f8e00['descriptionFactory']['registerDescriptionCallback'](_0x16f4f0=>{if('attribute'!=_0x16f4f0['type'])return;const {data:_0x913591}=_0x16f4f0;if(!_0x913591||'listItemId'!=_0x913591['key'])return;const _0x236401=Te(_0x16f4f0);return'newValue'==_0x236401?{'type':'format','content':c(_0x381fff,'*Merge:*\x20list\x20item')}:'oldValue'==_0x236401?{'type':'format','content':c(_0x381fff,'*Split:*\x20list\x20item')}:_0x29a556;}),_0x1364c5['model']['document']['registerPostFixer'](_0x49900f=>this['listItemIdFixer'](_0x49900f)),_0x1364c5['model']['document']['registerPostFixer'](_0x4c8103=>this['noTrackChangesFixer'](_0x4c8103)),_0x1364c5['model']['document']['on']('change:data',(_0x8dec9e,_0x1a4c3c)=>{if(_0x1a4c3c['isUndo']||!_0x1a4c3c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1aa0ed){if(_0x1aa0ed['batch']['isUndo']||!_0x1aa0ed['batch']['isLocal'])return!0x1;let _0x18a122=!0x1;const _0x16950a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb793e0=>_0xb793e0['data']&&'listItemId'==_0xb793e0['data']['key'])['filter'](_0x771322=>_0x771322['data']['newValue']&&_0x771322['data']['oldValue']);for(const _0x50a6c8 of _0x16950a)Te(_0x50a6c8)||(_0x1aa0ed['removeMarker'](_0x50a6c8['getFirstMarker']()),_0x18a122=!0x0);return _0x18a122;}['noTrackChangesFixer'](_0x47e964){if(_0x47e964['batch']['isUndo']||!_0x47e964['batch']['isLocal'])return!0x1;const _0x5531f8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5531f8['trackChangesCommand']['value'])return!0x1;let _0x2e2cc7=!0x1;const _0x3be73b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x459b65=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x816404=>'attribute'==_0x816404['type'])['filter'](_0x2911c6=>_0x3be73b['includes'](_0x2911c6['attributeKey']));if(0x0==_0x459b65['length'])return _0x2e2cc7;for(const _0x2b0dd5 of _0x459b65){const _0x5b71d0=_0x5531f8['_findSuggestions'](_0x2b0dd5['range'],'attribute')['filter'](_0x3f2bf5=>!_0x3f2bf5['meta']['isNextTo'])['map'](_0x991506=>_0x991506['suggestion'])['filter'](_0x5e0f14=>{const _0x5c9e5f=_0x5531f8['_getAttributeKey'](_0x5e0f14);return _0x3be73b['includes'](_0x5c9e5f);});if(_0x5b71d0['length']){for(const _0x19c975 of _0x5b71d0)_0x47e964['removeMarker'](_0x19c975['getFirstMarker']());_0x2e2cc7=!0x0;}}return _0x2e2cc7;}['assureChains'](){const _0x364bd1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2264de=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x49bd6c;const _0x30a6fe=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x10bced=>{if(_0x10bced['data']['oldRange']||!_0x10bced['data']['newRange'])return null;if(!_0x10bced['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xa201ab}=_0x364bd1['_splitMarkerName'](_0x10bced['name']);if(!_0x364bd1['hasSuggestion'](_0xa201ab))return null;const _0x3b37ec=_0x364bd1['getSuggestion'](_0xa201ab);return _0x2264de['includes'](_0x3b37ec['data']['key']);})['map'](_0x4d860a=>{const {id:_0x1ac1fe}=_0x364bd1['_splitMarkerName'](_0x4d860a['name']),_0x5eb525=_0x364bd1['getSuggestion'](_0x1ac1fe);return _0x49bd6c=_0x5eb525['attributes']['groupId'],_0x5eb525['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x30a6fe['size'])return;const _0xac064a=_0x364bd1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x307bad=>'attribute'==_0x307bad['type']&&_0x307bad['data']&&_0x2264de['includes'](_0x307bad['data']['key'])&&_0x307bad['attributes']['groupId']!=_0x49bd6c)['map'](_0x5beb64=>({'listItem':_0x5beb64['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5beb64['attributes']['groupId']})),_0x41c865=new Set();for(const {groupId:_0x3cc7f8,listItem:_0x501a65}of _0xac064a)_0x30a6fe['has'](_0x501a65)&&_0x41c865['add'](_0x3cc7f8);for(const _0x1ef59a of _0x364bd1['getSuggestions']())_0x41c865['has'](_0x1ef59a['attributes']['groupId'])&&_0x1ef59a['setAttribute']('groupId',_0x49bd6c);}['_supportLegacySuggestions'](){const _0x44fa44=this['editor'],_0xf2e5b8=_0x44fa44['locale'],_0x1602d4=_0x44fa44['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1602d4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3db88e,_0x2a16e3){const _0x40eb43=[];for(let _0x49e942 of _0x3db88e)_0x49e942['start']['nodeAfter']===_0x49e942['end']['parent']&&(_0x49e942=_0x44fa44['model']['createRange'](_0x44fa44['model']['createPositionAt'](_0x49e942['start']['nodeAfter'],0x0))),_0x40eb43['push'](_0x49e942);_0x44fa44['model']['change'](_0x233c55=>{const _0x5a6aca=_0x44fa44['model']['document']['selection'],_0x185f30=Array['from'](_0x5a6aca['getRanges']())['map'](_0x50ca0c=>_0x3e72a4['fromRange'](_0x50ca0c));_0x233c55['setSelection'](_0x40eb43),_0x44fa44['commands']['get'](_0x2a16e3['commandName'])['refresh'](),_0x2a16e3['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x44fa44['execute'](_0x2a16e3['commandName'],..._0x2a16e3['commandParams']),_0x233c55['setSelection'](_0x185f30);for(const _0xd87698 of _0x185f30)_0xd87698['detach']();});}),_0x1602d4['descriptionFactory']['registerElementLabel'](function(_0x8a60c9){const _0x1ef393=!_0x44fa44['model']['schema']['isObject'](_0x8a60c9),_0x2eca06=_0x8a60c9['previousSibling'],_0x38d6c9=_0x8a60c9['nextSibling'],_0x709076=_0x8a60c9['getAttribute']('listItemId'),_0x440106=!_0x2eca06||_0x2eca06['getAttribute']('listItemId')!==_0x709076,_0x30c00a=!_0x38d6c9||_0x38d6c9['getAttribute']('listItemId')!==_0x709076;return _0x1ef393&&Boolean(_0x709076)&&_0x440106&&_0x30c00a;},_0x5364a6=>c(_0xf2e5b8,'ELEMENT_LIST_ITEM',_0x5364a6));}['_registerLegacyDescription'](){const _0xb56baf=this['editor'],_0x25a551=_0xb56baf['locale'];function _0x31a5c6(_0x1d6492){const _0x35027d=_0xb56baf['commands']['get']('bulletedList')['value'],_0xa06a35=_0xb56baf['commands']['get']('numberedList')['value'];return'numberedList'===_0x1d6492?_0x35027d:_0xa06a35;}_0xb56baf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x294528){if('formatBlock'!=_0x294528['type'])return;const {data:_0x166d97}=_0x294528;if(!_0x166d97)return;let _0x2c7297,_0x4e2343,_0x2ec38d,_0x5dc5a3;switch(_0x166d97['commandName']){case'bulletedList':_0x2ec38d=_0x166d97['commandParams'][0x0]['forceValue'],_0x5dc5a3=_0x31a5c6(_0x166d97['commandName']),_0x2c7297=_0x2ec38d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5dc5a3&&_0xb56baf['config']['get']('list.multiBlock')||(_0x2c7297='*Change\x20to:*\x20%0'),_0x4e2343={'type':'format','content':c(_0x25a551,_0x2c7297,c(_0x25a551,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2ec38d=_0x166d97['commandParams'][0x0]['forceValue'],_0x5dc5a3=_0x31a5c6(_0x166d97['commandName']),_0x2c7297=_0x2ec38d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5dc5a3&&_0xb56baf['config']['get']('list.multiBlock')||(_0x2c7297='*Change\x20to:*\x20%0'),_0x4e2343={'type':'format','content':c(_0x25a551,_0x2c7297,c(_0x25a551,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2c7297='*Indent:*\x20%0',_0x4e2343={'type':'format','content':c(_0x25a551,_0x2c7297,c(_0x25a551,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2c7297=function(_0x3e1640){const _0x12c893=_0x3e1640['getFirstRange']();let _0x580045=_0x12c893['start']['nodeAfter'];for(;_0x580045&&_0x12c893['containsItem'](_0x580045);){if(_0x580045['getAttribute']('listIndent')>0x0)return!0x1;_0x580045=_0x580045['nextSibling'];}return!0x0;}(_0x294528)?c(_0x25a551,'*Format:*\x20remove\x20from\x20%0',c(_0x25a551,function(_0x1f9851){return'ELEMENT_'+_0x1f9851['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x294528))):c(_0x25a551,'*Outdent:*\x20%0',c(_0x25a551,'ELEMENT_LIST_ITEM')),_0x4e2343={'type':'format','content':_0x2c7297};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x166d97['multipleBlocks']&&(_0x2c7297='*Merge:*\x20%0',_0x4e2343={'type':'deletion','content':c(_0x25a551,_0x2c7297,c(_0x25a551,'ELEMENT_LIST_ITEM'))});}return _0x4e2343;});}}function Te(_0x28b660){let _0x57760d=_0x28b660['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x57760d;){const _0x4f401e=_0x57760d['getAttribute']('listItemId');if(!_0x4f401e)return!0x1;if(_0x4f401e==_0x28b660['data']['newValue'])return'newValue';if(_0x4f401e==_0x28b660['data']['oldValue'])return'oldValue';_0x57760d=_0x57760d['previousSibling'];}return!0x1;}class Se extends _0x4d6f06{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x485176=this['editor']['config']['get']('list.properties'),_0x178770=this['editor']['plugins']['get']('TrackChangesEditing');_0x485176['styles']&&(_0x178770['enableDefaultAttributesIntegration']('listStyle'),_0x178770['registerBlockAttribute']('listStyle')),_0x485176['reversed']&&(_0x178770['enableDefaultAttributesIntegration']('listReversed'),_0x178770['registerBlockAttribute']('listReversed')),_0x485176['startIndex']&&(_0x178770['enableDefaultAttributesIntegration']('listStart'),_0x178770['registerBlockAttribute']('listStart'));const _0x57da5f={'type':'format','content':''};_0x178770['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2dcef0=this['editor']['locale'];_0x178770['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x2dcef0,'FORMAT_LIST_REVERSED')),_0x178770['descriptionFactory']['registerDescriptionCallback'](_0x461194=>{const {data:_0xbf58f0}=_0x461194;if(_0xbf58f0&&'listReversed'==_0xbf58f0['key'])return null==_0xbf58f0['newValue']||0x0==_0xbf58f0['newValue']&&null==_0xbf58f0['oldValue']?_0x57da5f:void 0x0;}),_0x178770['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x2dcef0,'FORMAT_LIST_START')),_0x178770['descriptionFactory']['registerDescriptionCallback'](_0x4d3121=>{const {data:_0x4ce3e9}=_0x4d3121;if(_0x4ce3e9&&'listStart'==_0x4ce3e9['key'])return null==_0x4ce3e9['newValue']||0x1==_0x4ce3e9['newValue']&&null==_0x4ce3e9['oldValue']?_0x57da5f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4d7e8f=>{if(_0x4d7e8f['batch']['isUndo'])return!0x1;let _0x5eb7fd=!0x1;const _0x4a43d4=_0x178770['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38882c=>{const _0x12b56a=_0x178770['_getAttributeKey'](_0x38882c);return'listStart'==_0x12b56a||'listReversed'==_0x12b56a;});for(const _0x2e336f of _0x4a43d4){const _0x478d4a=_0x2e336f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x478d4a||'customNumbered'==_0x478d4a)continue;_0x178770['_findSuggestions'](_0x2e336f['getFirstRange'](),'attribute')['find'](_0x40c999=>'listType'==_0x178770['_getAttributeKey'](_0x40c999['suggestion']))||(_0x4d7e8f['removeMarker'](_0x2e336f['getFirstMarker']()),_0x5eb7fd=!0x0);}return _0x5eb7fd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4fa320){const _0x11263c=this['editor']['locale'],{data:_0x434f33}=_0x4fa320,_0x3e4f1a={'type':'format','content':''};if(!_0x434f33||'listStyle'!=_0x434f33['key'])return;if(!_0x434f33['oldValue'])return'default'==_0x434f33['newValue']?_0x3e4f1a:{'type':'format','content':''+c(_0x11263c,'*Set\x20format:*\x20%0',c(_0x11263c,this['_getTranslationKeyForListStyle'](_0x434f33['newValue'])))};if(!_0x434f33['newValue']){if('default'==_0x434f33['oldValue'])return _0x3e4f1a;let _0x87954a=_0x4fa320['head'];for(;_0x87954a;){if(_0x87954a['data']&&'listType'==_0x87954a['data']['key']&&_0x87954a['data']['newValue'])return _0x3e4f1a;_0x87954a=_0x87954a['next'];}return{'type':'format','content':''+c(_0x11263c,'*Remove\x20format:*\x20%0',c(_0x11263c,this['_getTranslationKeyForListStyle'](_0x434f33['oldValue'])))};}if('default'!=_0x434f33['newValue'])return{'type':'format','content':''+c(_0x11263c,'*Set\x20format:*\x20%0',c(_0x11263c,this['_getTranslationKeyForListStyle'](_0x434f33['newValue'])))};let _0x55c7ea=_0x4fa320['head'];for(;_0x55c7ea;){if(_0x55c7ea['data']&&'listType'==_0x55c7ea['data']['key']&&_0x55c7ea['data']['newValue']&&_0x55c7ea['data']['oldValue'])return _0x3e4f1a;_0x55c7ea=_0x55c7ea['next'];}return{'type':'format','content':c(_0x11263c,'*Set\x20format:*\x20%0',c(_0x11263c,'ELEMENT_'+_0x4fa320['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2dcc54=this['editor'],_0x73ce45=_0x2dcc54['locale'];_0x2dcc54['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41b386=>{if('formatBlock'!=_0x41b386['type'])return;const {data:_0x1cec49}=_0x41b386;if(!_0x1cec49)return;let _0x119710,_0x3498ff;switch(_0x1cec49['commandName']){case'listStyle':_0x119710='*Change\x20to:*\x20%0',_0x3498ff={'type':'format','content':c(_0x73ce45,_0x119710,c(_0x73ce45,this['_getTranslationKeyForListStyle'](_0x1cec49['commandParams'][0x0]['type'])))};break;case'listReversed':_0x119710=_0x1cec49['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3498ff={'type':'format','content':c(_0x73ce45,_0x119710)};break;case'listStart':_0x119710='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3498ff={'type':'format','content':c(_0x73ce45,_0x119710,_0x1cec49['commandParams'][0x0]['startIndex'])};}return _0x3498ff;});}['_getTranslationKeyForListStyle'](_0x41d423){return'ELEMENT_'+function(_0x299e50){if(_e['includes'](_0x299e50))return'bulleted';if(Re['includes'](_0x299e50))return'numbered';return null;}(_0x41d423)['toUpperCase']()+'_LIST_'+_0x41d423['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x4d6f06{['afterInit'](){const _0x1e8e92=this['editor'];_0x1e8e92['commands']['get']('emoji')&&_0x1e8e92['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x4d6f06{static get['requires'](){return[_0x30a003];}['init'](){const _0x2dc200=this['editor'],_0x3dd54b=_0x2dc200['plugins']['get']('TrackChangesEditing'),_0x1b6125=_0x2dc200['commands']['get']('enter');_0x3dd54b['enableCommand']('enter',()=>{_0x2dc200['model']['change'](_0x1524ed=>{const _0x395a54=_0x2dc200['model']['document']['selection'],_0x3d7951=_0x395a54['getFirstPosition'](),_0x1c8720=_0x3e72a4['fromRange'](_0x395a54['getFirstRange']());if(_0x1b6125['enterBlock'](_0x1524ed)){const _0x4b84f6=_0x2dc200['model']['createPositionAt'](_0x3d7951['parent']['nextSibling'],0x0),_0x10f72a=_0x1524ed['createRange'](_0x3d7951,_0x4b84f6);_0x3dd54b['markInsertion'](_0x10f72a);}else _0x1524ed['setSelection'](_0x1524ed['createRange'](_0x1c8720['end']));_0x1c8720['detach'](),_0x1b6125['fire']('afterExecute',{'writer':_0x1524ed});});}),_0x2dc200['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2dc200,'split'),{'priority':'high'}),_0x2dc200['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2aaa91,_0x390dc6,_0x3c6b2e)=>{const _0x28970c=_0x3c6b2e['mapper']['markerNameToElements'](_0x390dc6['markerName']);if(_0x28970c){for(const _0x353744 of _0x28970c)_0x353744['hasClass']('ck-suggestion-marker-split')&&(_0x3c6b2e['mapper']['unbindElementFromMarkerName'](_0x353744,_0x390dc6['markerName']),_0x3c6b2e['writer']['remove'](_0x353744));}},{'priority':'high'}),_0x2dc200['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1fb591,_0x53c6dc,_0x404c91)=>{_0x404c91['options']['showSuggestionHighlights']&&De(_0x2dc200,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1fb591,_0x53c6dc,_0x404c91);},{'priority':'high'});}}class Z extends _0x4d6f06{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2a0232=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a0232['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2a0232['enableCommand']('findNext'),_0x2a0232['enableCommand']('findPrevious'),_0x2a0232['enableCommand']('replace'),_0x2a0232['enableCommand']('replaceAll');}['handleFindCommand'](_0x1f9429,_0x4ba4f1,_0x8639ea={}){const _0x723960=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1f9429(_0x60c4d=>{let _0x13a91f=('string'==typeof _0x4ba4f1?_0x723960['findByTextCallback'](_0x4ba4f1,_0x8639ea):_0x4ba4f1)(_0x60c4d);Array['isArray'](_0x13a91f)&&(_0x13a91f={'results':_0x13a91f,'searchText':'string'==typeof _0x4ba4f1?_0x4ba4f1:''});const _0x17319e=_0x13a91f['results']['filter'](_0x34fbf8=>!0x1===this['_isInDeletionRange'](_0x34fbf8,_0x60c4d['item']));return{..._0x13a91f,'results':_0x17319e};},_0x8639ea);}['_isInDeletionRange'](_0x592312,_0x505366){const _0x46f457=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x505366,_0x592312['start']),this['editor']['model']['createPositionAt'](_0x505366,_0x592312['end']));for(const _0x25a197 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x46f457['getIntersection'](_0x25a197['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x4d6f06{['afterInit'](){const _0x2355f9=this['editor']['locale'],_0x2d962c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xd3f80,commandName:_0x19e80a}of eo)this['editor']['plugins']['has'](_0xd3f80)&&(_0x2d962c['enableDefaultAttributesIntegration'](_0x19e80a),_0x2d962c['registerInlineAttribute'](_0x19e80a));_0x2d962c['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x2355f9,'FORMAT_FONT_SIZE')),_0x2d962c['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x2355f9,'FORMAT_FONT_FAMILY')),_0x2d962c['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x2355f9,'FORMAT_FONT_COLOR')),_0x2d962c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x2355f9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x567f2f=this['editor'],_0xd5607b=_0x567f2f['locale'];_0x567f2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c4c32=>{const _0x9b5768=_0xd5607b['t'];if('formatInline'!=_0x2c4c32['type'])return;const {data:_0x6ef5d4}=_0x2c4c32;if(null!=_0x6ef5d4){if('fontSize'==_0x6ef5d4['commandName']){const _0x23c020=_0x6ef5d4['commandParams'][0x0]['value'];if(_0x23c020){const _0x21e766=_0x9b5768(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4829bb=>_0x4829bb['model']==_0x23c020)['title'])['toLowerCase']();return{'type':'format','content':c(_0xd5607b,'*Set\x20font\x20size:*\x20%0',_0x21e766)};}return{'type':'format','content':c(_0xd5607b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x6ef5d4['commandName']){const _0x5dc0b3=_0x6ef5d4['commandParams'][0x0]['value'];return _0x5dc0b3?{'type':'format','content':c(_0xd5607b,'*Set\x20font\x20family:*\x20%0',_0x5dc0b3)}:{'type':'format','content':c(_0xd5607b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x6ef5d4['commandName']){const _0x316c99=_0x6ef5d4['commandParams'][0x0]['value'];if(_0x316c99){const _0x2e0863=_0x405167(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1d05ed=>_0x1d05ed['model']==_0x316c99);let _0x49eff0=_0x316c99,_0xc3ab81='';return _0x2e0863&&(_0x49eff0=_0x2e0863['label'],_0xc3ab81=_0x9b5768(_0x49eff0)['toLowerCase']()),{'type':'format','content':c(_0xd5607b,'*Set\x20font\x20color:*\x20%0',_0xc3ab81)['trim'](),'color':{'value':_0x316c99,'title':_0xc3ab81||_0x49eff0}};}return{'type':'format','content':c(_0xd5607b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x6ef5d4['commandName']){const _0x4628f0=_0x6ef5d4['commandParams'][0x0]['value'];if(_0x4628f0){const _0x3e0026=_0x405167(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x36f81f=>_0x36f81f['model']==_0x4628f0);let _0x4859a4=_0x4628f0,_0x5a0df9='';return _0x3e0026&&(_0x4859a4=_0x3e0026['label'],_0x5a0df9=_0x9b5768(_0x4859a4)['toLowerCase']()),{'type':'format','content':c(_0xd5607b,'*Set\x20font\x20background\x20color:*\x20%0',_0x5a0df9)['trim'](),'color':{'value':_0x4628f0,'title':_0x5a0df9||_0x4859a4}};}return{'type':'format','content':c(_0xd5607b,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x4d6f06{['afterInit'](){const _0x302472=this['editor'],_0x32f234=_0x302472['plugins']['get']('TrackChangesEditing'),_0x47691b=_0x302472['commands']['get']('copyFormat'),_0x5b92c9=_0x302472['commands']['get']('pasteFormat');_0x47691b&&_0x5b92c9&&(_0x32f234['enableDefaultAttributesIntegration']('pasteFormat'),_0x32f234['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x6e1719=this['editor'],_0x43bfbc=_0x6e1719['locale'];_0x6e1719['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x136dda=>{if('formatBlock'!=_0x136dda['type']&&'formatInline'!=_0x136dda['type'])return;const {data:_0x5743f5}=_0x136dda;if(_0x5743f5&&'pasteFormat'===_0x5743f5['commandName']){const _0x418fa1=[],_0x5ea095=_0x5743f5['commandParams'][0x0];for(const [_0x5de5e3,_0x55b7b4]of Object['entries'](_0x5ea095))_0x418fa1['push'](ro(_0x6e1719,_0x5de5e3,_0x55b7b4));return _0x418fa1['length']?{'type':'format','content':c(_0x43bfbc,'*Set\x20format\x20to:*\x20%0',_0x418fa1['join'](',\x20'))}:{'type':'format','content':c(_0x43bfbc,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3fe04e,_0x5103a2,_0xa08f21){const _0x4122ca=_0x3fe04e['locale']['t'],_0x267715=_0x5103a2['split'](/(?=[A-Z])/)['join']('\x20'),_0x31b64c=_0x4122ca(_0x267715['charAt'](0x0)['toUpperCase']()+_0x267715['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xa08f21)return _0x31b64c;if('fontColor'===_0x5103a2||'fontBackgroundColor'===_0x5103a2){const _0x486a94=_0x405167(_0x3fe04e['config']['get']('fontColor.colors'))['find'](_0x41d331=>_0x41d331['model']==_0xa08f21);return _0x31b64c+'\x20('+(_0x486a94?_0x4122ca(_0x486a94['label'])['toLowerCase']():_0xa08f21)+')';}if('fontSize'===_0x5103a2&&isNaN(parseFloat(_0xa08f21))){const _0x69317a=_0x3fe04e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3fe04e['config']['get']('fontSize.options'))['find'](_0x3a1186=>_0x3a1186['model']==_0xa08f21);return _0x31b64c+'\x20('+(_0x69317a?_0x4122ca(_0x69317a['title'])['toLowerCase']():_0xa08f21)+')';}return _0x31b64c+'\x20('+_0xa08f21+')';}class nt extends _0x4d6f06{['_headingOptions'];['afterInit'](){const _0x429eba=this['editor'];if(!_0x429eba['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x429eba['config']['get']('heading.options');const _0x160b0e=_0x429eba['locale'],_0x5f5118=_0x429eba['plugins']['get']('TrackChangesEditing');_0x5f5118['enableDefaultAttributesIntegration']('heading');for(const _0x3c7f73 of this['_headingOptions'])'paragraph'!=_0x3c7f73['model']&&_0x5f5118['descriptionFactory']['registerElementLabel'](_0x3c7f73['model'],_0x24af65=>{const _0x3b5c61=this['_getHeadingLevel'](_0x3c7f73['model']);return null!==_0x3b5c61?_0x45a8b5(_0x24af65,_0x3b5c61):_0x344e2b(_0x24af65,_0x3c7f73['title']);});function _0x45a8b5(_0x2ced47,_0x592dca){return c(_0x160b0e,'ELEMENT_HEADING',[_0x2ced47,_0x592dca]);}function _0x344e2b(_0x5700da,_0x16ce6f){return c(_0x160b0e,'ELEMENT_HEADING_CUSTOM',[_0x5700da,_0x16ce6f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa875ac=this['editor'],_0x3fd3c2=_0xa875ac['locale'];function _0x3819b1(_0x13c15c,_0x6c96d2){return c(_0x3fd3c2,'ELEMENT_HEADING_CUSTOM',[_0x13c15c,_0x6c96d2]);}_0xa875ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb5f4c=>{if('formatBlock'!=_0xb5f4c['type'])return;const {data:_0x33c225}=_0xb5f4c;if(_0x33c225&&'heading'==_0x33c225['commandName']){const _0x59be9d=_0x33c225['commandParams'][0x0]['value'],_0x207b14=this['_getHeadingLevel'](_0x59be9d);if(null!==_0x207b14)return{'type':'format','content':c(_0x3fd3c2,'*Change\x20to:*\x20%0',(_0x1a2b18=0x1,_0x927622=_0x207b14,c(_0x3fd3c2,'ELEMENT_HEADING',[_0x1a2b18,_0x927622])))};const _0x4fffa6=this['_headingOptions']['find'](_0x27211c=>_0x27211c['model']===_0x59be9d)['title'];return{'type':'format','content':c(_0x3fd3c2,'*Change\x20to:*\x20%0',_0x3819b1(0x1,_0x4fffa6))};}var _0x1a2b18,_0x927622;});}['_getHeadingLevel'](_0x434317){const _0x20fb74=_0x434317['match'](/^heading(\d+)/);if(_0x20fb74)return _0x20fb74[0x1];const _0x462885=this['_headingOptions']?.['find'](_0x39b43f=>_0x39b43f['model']==_0x434317);if(_0x462885&&_0x462885['view']){const _0x5cf3e7=_0x462885['view'],_0x817777=(_0x5cf3e7['name']??_0x5cf3e7)['match'](/^h(\d+)/);if(_0x817777)return _0x817777[0x1];}return null;}}class it extends _0x4d6f06{['afterInit'](){const _0x3677fa=this['editor'];if(!_0x3677fa['plugins']['has']('HighlightEditing'))return;const _0x23f7be=_0x3677fa['plugins']['get']('TrackChangesEditing'),_0x22450e=_0x3677fa['locale'];_0x23f7be['enableDefaultAttributesIntegration']('highlight'),_0x23f7be['registerInlineAttribute']('highlight'),_0x23f7be['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x22450e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4613aa=this['editor'],_0x1c9580=_0x4613aa['locale'];_0x4613aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18c16d=>{if('formatInline'!=_0x18c16d['type'])return;const {data:_0xa73ae8}=_0x18c16d;if(_0xa73ae8&&'highlight'==_0xa73ae8['commandName']){const _0x5e9a8e=_0x1c9580['t'],_0xa1fdc3=_0xa73ae8['commandParams'][0x0]['value'];if(_0xa1fdc3){const _0x4470b7=_0x4613aa['config']['get']('highlight.options')['find'](_0x5c8b1a=>_0x5c8b1a['model']==_0xa1fdc3),_0x152319=_0x5e9a8e(_0x4470b7['title'])['toLowerCase']();return{'type':'format','content':c(_0x1c9580,'*Set\x20highlight:*\x20%0',_0x152319),'color':{'value':_0x4470b7['color'],'title':_0x4470b7['title']}};}return{'type':'format','content':c(_0x1c9580,'*Remove\x20highlight*',c(_0x1c9580,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x4d6f06{['afterInit'](){const _0x53b3a4=this['editor'];if(!_0x53b3a4['plugins']['has']('HorizontalLineEditing'))return;_0x53b3a4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x410f83=_0x53b3a4['plugins']['get']('TrackChangesEditing'),_0x175c69=_0x53b3a4['locale'];_0x410f83['descriptionFactory']['registerElementLabel']('horizontalLine',_0x91f901=>c(_0x175c69,'ELEMENT_HORIZONTAL_LINE',_0x91f901)),_0x53b3a4['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x25d738,{writer:_0x3980c4,options:_0xc23a65})=>{if(!_0xc23a65['showSuggestionHighlights'])return null;const _0x495736=_0x3980c4['createContainerElement']('div'),_0x49376b=_0x3980c4['createEmptyElement']('hr');return _0x3980c4['addClass']('ck-horizontal-line',_0x495736),_0x3980c4['insert'](_0x3980c4['createPositionAt'](_0x495736,0x0),_0x49376b),_0x495736;},'converterPriority':'high'});}}class ot extends _0x4d6f06{['afterInit'](){const _0x5cb555=this['editor'];if(!_0x5cb555['plugins']['has']('HtmlEmbed'))return;const _0x40b440=_0x5cb555['plugins']['get']('TrackChangesEditing'),_0x2ea880=_0x5cb555['locale'];_0x40b440['descriptionFactory']['registerElementLabel']('rawHtml',_0x4b6a54=>c(_0x2ea880,'ELEMENT_HTML_EMBED',_0x4b6a54)),_0x40b440['enableDefaultAttributesIntegration']('htmlEmbed'),_0x40b440['registerBlockAttribute']('value'),_0x40b440['descriptionFactory']['registerDescriptionCallback'](_0x19ede8=>{if('attribute'!=_0x19ede8['type'])return;const {data:_0x13d025}=_0x19ede8;if(_0x13d025&&'value'==_0x13d025['key']&&_0x19ede8['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xfe00b1=c(_0x2ea880,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2ea880,'*Change\x20%0\x20content*',_0xfe00b1)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39b511=this['editor'],_0x15b82b=_0x39b511['locale'];_0x39b511['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a0923=>{if('formatBlock'!=_0x4a0923['type'])return;const {data:_0x127c9d}=_0x4a0923;if(_0x127c9d&&'htmlEmbed'==_0x127c9d['commandName']){const _0x13920b=c(_0x15b82b,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x15b82b,'*Change\x20%0\x20content*',_0x13920b)};}});}}class rt extends _0x4d6f06{['afterInit'](){const _0x447420=this['editor'];if(!_0x447420['plugins']['has']('ImageEditing'))return;const _0x485f38=_0x447420['plugins']['get']('TrackChangesEditing'),_0x160574=_0x447420['plugins']['get']('ImageUtils'),_0x22258f=_0x447420['locale'];_0x485f38['enableCommand']('insertImage'),_0x485f38['descriptionFactory']['registerElementLabel']('imageBlock',_0x3e9c4a=>c(_0x22258f,'ELEMENT_IMAGE',_0x3e9c4a)),_0x485f38['descriptionFactory']['registerElementLabel']('imageInline',_0x4ca289=>c(_0x22258f,'ELEMENT_INLINE_IMAGE',_0x4ca289)),_0x485f38['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x22258f,'ELEMENT_CAPTION')),_0x447420['plugins']['has']('ImageUploadEditing')&&_0x485f38['enableCommand']('uploadImage'),_0x447420['plugins']['has']('ImageBlockEditing')&&_0x447420['plugins']['has']('ImageInlineEditing')&&(_0x485f38['enableCommand']('imageTypeInline',(_0x3e742d,_0x11b587)=>{const _0x8f07c7=_0x160574['getClosestSelectedImageElement'](_0x447420['model']['document']['selection']);_0x447420['model']['change'](()=>{_0x485f38['markBlockFormat'](_0x8f07c7,{'commandName':'imageTypeInline','commandParams':[_0x11b587]},[],'convertBlockImageToInline');});}),_0x485f38['enableCommand']('imageTypeBlock',(_0xa4119c,_0x342e8e)=>{_0x447420['model']['change'](_0x42f776=>{let _0x3b09e1=_0x160574['getClosestSelectedImageElement'](_0x447420['model']['document']['selection']),_0x1ef089=_0x42f776['createRangeOn'](_0x3b09e1);const _0xc0eaec=_0x386249['fromPosition'](_0x1ef089['start'],'toPrevious'),_0x2661a5=_0x386249['fromPosition'](_0x1ef089['end'],'toNext');_0x485f38['forceDefaultExecution'](()=>_0xa4119c(_0x342e8e)),_0x3b09e1=_0x160574['getClosestSelectedImageElement'](_0x447420['model']['document']['selection']),_0x1ef089=_0x42f776['createRangeOn'](_0x3b09e1);const _0x13e0fd=_0x42f776['createRange'](_0xc0eaec,_0x2661a5);_0xc0eaec['detach'](),_0x2661a5['detach'](),_0x485f38['markBlockFormat'](_0x3b09e1,{'commandName':'imageTypeInline','commandParams':[_0x342e8e]},[],'convertInlineImageToBlock'),_0x13e0fd['start']['isBefore'](_0x1ef089['start'])&&_0x485f38['markInsertion'](_0x42f776['createRange'](_0x13e0fd['start'],_0x1ef089['start']),'convertInlineImageToBlock'),_0x1ef089['end']['isBefore'](_0x13e0fd['end'])&&_0x485f38['markInsertion'](_0x42f776['createRange'](_0x1ef089['end'],_0x13e0fd['end']),'convertInlineImageToBlock');});}),_0x485f38['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x485f38['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x485f38['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x485f38['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x485f38['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x485f38['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x14681e])=>{const _0x3bfe79=_0x485f38['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2aa84e=_0x14681e['start'],_0x3472d7=_0x14681e['end'];const _0x252605=_0x447420['model']['schema']['getNearestSelectionRange'](_0x2aa84e,'backward'),_0x4f0063=_0x447420['model']['schema']['getNearestSelectionRange'](_0x3472d7,'forward');_0x252605['isCollapsed']&&(_0x2aa84e=_0x252605['start']),_0x4f0063['isCollapsed']&&(_0x3472d7=_0x4f0063['end']),_0x3bfe79([_0x447420['model']['createRange'](_0x2aa84e,_0x3472d7)]);}),_0x485f38['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xa04e23),_0x485f38['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xa04e23)),_0x447420['plugins']['has']('ImageCaptionEditing')&&(_0x485f38['enableCommand']('toggleImageCaption',(_0x1acf4d,_0x2ce0e2)=>{const _0x40cd82=_0x447420['plugins']['get']('ImageCaptionUtils');let _0x5cc2b0=_0x160574['getClosestSelectedImageElement'](_0x447420['model']['document']['selection']),_0x5152ac=_0x40cd82['getCaptionFromImageModelElement'](_0x5cc2b0);_0x447420['model']['change'](()=>{if(_0x5152ac)return void _0x485f38['markDeletion'](_0x447420['model']['createRangeOn'](_0x5152ac));const _0x533bfb=_0x160574['isBlockImage'](_0x5cc2b0);_0x1acf4d(_0x2ce0e2),_0x5cc2b0=_0x160574['getClosestSelectedImageElement'](_0x447420['model']['document']['selection']),_0x5152ac=_0x40cd82['getCaptionFromImageModelElement'](_0x5cc2b0),_0x485f38['markInsertion'](_0x447420['model']['createRangeOn'](_0x5152ac),_0x533bfb?null:'imageCaption');});}),_0x485f38['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xa04e23));const _0x443ba9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x106482(_0x1cf1da,_0xf056f4){const _0x110f76=_0x443ba9['findIndex'](({type:_0x244579,subType:_0x534fa7})=>_0x1cf1da['type']==_0x244579&&_0x1cf1da['subType']==_0x534fa7),_0x4dcb88=_0x443ba9['findIndex'](({type:_0x212af5,subType:_0x134691})=>_0xf056f4['type']==_0x212af5&&_0xf056f4['subType']==_0x134691);if(_0x110f76<0x0||_0x4dcb88<0x0)return!0x1;const _0x5aae66=_0x1cf1da['getFirstRange'](),_0x22062c=_0xf056f4['getFirstRange']();if((0x0==_0x110f76||0x1==_0x110f76)&&0x2==_0x4dcb88&&_0x5aae66['isIntersecting'](_0x22062c))return!0x0;if(0x2==_0x110f76&&0x3==_0x4dcb88){const _0x58e54c=_0x485f38['_findSuggestions'](_0x5aae66,'insertion')['filter'](({suggestion:_0x424d93,meta:_0x5e8032})=>_0x5e8032['isOwn']&&'convertInlineImageToBlock'==_0x424d93['subType']);if(_0x58e54c['length']>0x1&&_0x22062c['end']['isEqual'](_0x5aae66['start']))return!0x0;if(0x1==_0x58e54c['length']&&(_0x5aae66['start']['isEqual'](_0x22062c['end'])||_0x5aae66['end']['isEqual'](_0x22062c['start'])))return!0x0;}if(0x3==_0x110f76&&0x3==_0x4dcb88&&_0x5aae66['start']['isBefore'](_0x22062c['start'])){const _0x26e71b=_0x5aae66['end']['nodeAfter'],_0x56c0b5=_0x22062c['start']['nodeBefore'];return _0x160574['isBlockImage'](_0x26e71b)&&_0x26e71b===_0x56c0b5;}return!0x1;}function _0xa04e23(_0x223da7,_0x493dbd){return _0x106482(_0x223da7,_0x493dbd)?[_0x223da7,_0x493dbd]:_0x106482(_0x493dbd,_0x223da7)?[_0x493dbd,_0x223da7]:null;}_0x447420['plugins']['has']('ImageResize')&&(_0x485f38['enableDefaultAttributesIntegration']('resizeImage'),_0x485f38['registerBlockAttribute']('resizedWidth'),_0x485f38['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x22258f,'FORMAT_IMAGE_SIZE'))),_0x447420['plugins']['has']('ImageTextAlternativeEditing')&&(_0x485f38['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x485f38['registerBlockAttribute']('alt')),_0x447420['plugins']['has']('PictureEditing')&&(_0x485f38['registerBlockAttribute']('sources'),_0x485f38['descriptionFactory']['registerDescriptionCallback'](_0x4f244c=>{if('attribute'!=_0x4f244c['type'])return;const {data:_0x146626}=_0x4f244c;return _0x146626&&'sources'==_0x146626['key']?{'type':'format','content':''}:void 0x0;})),_0x447420['plugins']['has']('ImageSizeAttributes')&&(_0x485f38['registerBlockAttribute']('width'),_0x485f38['registerBlockAttribute']('height'),_0x485f38['descriptionFactory']['registerDescriptionCallback'](_0x4fc3da=>{if('attribute'!=_0x4fc3da['type'])return;const {data:_0x27d09d}=_0x4fc3da;return!_0x27d09d||'width'!=_0x27d09d['key']&&'height'!=_0x27d09d['key']?void 0x0:{'type':'format','content':''};})),_0x485f38['descriptionFactory']['registerDescriptionCallback'](_0x53203c=>{if(!!_0x443ba9['find'](({type:_0x2b9e6f,subType:_0x528f63})=>_0x53203c['type']==_0x2b9e6f&&_0x53203c['subType']==_0x528f63))return _0x53203c['previous']?{}:void 0x0;}),_0x485f38['descriptionFactory']['registerDescriptionCallback'](_0x3bb99f=>{if('insertion'==_0x3bb99f['type']||'deletion'==_0x3bb99f['type']){const _0x5cdfc2=_0x3bb99f['getContainedElement']();if(_0x5cdfc2&&_0x5cdfc2['is']('element','caption'))return{'type':'insertion'==_0x3bb99f['type']?'addObject':'removeObject','element':_0x5cdfc2,'quantity':0x1};}}),_0x485f38['descriptionFactory']['registerDescriptionCallback'](_0x51b8f6=>'formatBlock'==_0x51b8f6['type']&&'convertInlineImageToBlock'==_0x51b8f6['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x51b8f6['type']&&'convertBlockImageToInline'==_0x51b8f6['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x485f38['descriptionFactory']['registerDescriptionCallback'](_0x4e34ca=>{if('attribute'!=_0x4e34ca['type'])return;const {data:_0xa67eca}=_0x4e34ca;if(!_0xa67eca||'alt'!=_0xa67eca['key'])return;const _0x4d543f=_0xa67eca['newValue'];return _0x4d543f?{'type':'format','content':c(_0x22258f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4d543f+'\x22')}:{'type':'format','content':c(_0x22258f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47cded=this['editor'],_0x33d7=_0x47cded['locale'];_0x47cded['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x357eba=>{if('formatBlock'!=_0x357eba['type']&&'formatInline'!=_0x357eba['type'])return;const {data:_0x2aaffe}=_0x357eba;if(_0x2aaffe){if('imageTextAlternative'==_0x2aaffe['commandName']){const _0x5b3027=_0x2aaffe['commandParams'][0x0]['newValue'];return _0x5b3027?{'type':'format','content':c(_0x33d7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5b3027+'\x22')}:{'type':'format','content':c(_0x33d7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2aaffe['commandName']){const _0x422488=_0x2aaffe['commandParams'][0x0]['width'];return _0x422488?{'type':'format','content':c(_0x33d7,'*Set\x20image\x20width:*\x20%0',_0x422488)}:{'type':'format','content':c(_0x33d7,'*Reset\x20image\x20width*')};}}});}}class at extends _0x4d6f06{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4f4628=this['editor']['locale'],_0x265228=this['editor']['plugins']['get']('TrackChangesEditing');_0x265228['enableDefaultAttributesIntegration']('replaceImageSource'),_0x265228['registerBlockAttribute']('src'),_0x265228['descriptionFactory']['registerDescriptionCallback'](_0x161e0b=>{if('attribute'!=_0x161e0b['type'])return;const {data:_0xbf971d}=_0x161e0b;return _0xbf971d&&'src'==_0xbf971d['key']?_0xbf971d['newValue']&&_0xbf971d['oldValue']?{'type':'format','content':c(_0x4f4628,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x20951c=this['editor']['plugins']['get']('TrackChangesEditing');_0x20951c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x20951c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x20951c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x20951c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27a1d6=this['editor'],_0xc563d4=_0x27a1d6['locale'];_0x27a1d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfefe01=>{if('formatBlock'!=_0xfefe01['type']&&'formatInline'!=_0xfefe01['type'])return;const {data:_0x31a907}=_0xfefe01;if(!_0x31a907||'replaceImageSource'!=_0x31a907['commandName'])return;return{'type':'format','content':c(_0xc563d4,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x4d6f06{['afterInit'](){const _0x5b2b4d=this['editor'];if(!_0x5b2b4d['plugins']['has']('ImageStyleEditing'))return;const _0x41c6f9=_0x5b2b4d['plugins']['get']('TrackChangesEditing'),_0x34b74c=_0x5b2b4d['plugins']['get']('ImageUtils'),_0x25756d={};_0x41c6f9['enableCommand']('imageStyle',(_0x5182ae,_0x343778)=>{const _0x3c9e88=_0x5b2b4d['plugins']['get']('Users')['me'],_0x4e9673=_0x5b2b4d['commands']['get']('imageStyle');let _0x4cd236=_0x34b74c['getClosestSelectedImageElement'](_0x5b2b4d['model']['document']['selection']),_0x2a243a=_0x5b2b4d['model']['createRangeOn'](_0x4cd236),_0x3b7c83=_0x4e9673['value'];if(_0x3b7c83==_0x343778['value'])return;const _0x3fdd69={'commandName':'imageStyle','commandParams':[_0x343778],'formatGroupId':_0x2b2ac3()};_0x5b2b4d['model']['change'](()=>{if(_0x41c6f9['getSuggestions']()['filter'](_0xc9ae10=>_0xc9ae10['isInContent']&&_0x3c9e88==_0xc9ae10['author']&&('formatBlock'==_0xc9ae10['type']||'formatInline'==_0xc9ae10['type'])&&('imageStylePreApply'==_0xc9ae10['subType']||'imageStylePostApply'==_0xc9ae10['subType'])&&_0xc9ae10['getFirstRange']()['isEqual'](_0x2a243a))['forEach'](_0x79b267=>_0x41c6f9['discardSuggestion'](_0x79b267['head'])),_0x4cd236=_0x34b74c['getClosestSelectedImageElement'](_0x5b2b4d['model']['document']['selection']),_0x2a243a=_0x5b2b4d['model']['createRangeOn'](_0x4cd236),_0x4e9673['refresh'](),_0x5b2b4d['commands']['get']('imageTypeInline')['refresh'](),_0x5b2b4d['commands']['get']('imageTypeBlock')['refresh'](),_0x3b7c83=_0x4e9673['value'],_0x3b7c83!=_0x343778['value'])return _0x34b74c['isInlineImage'](_0x4cd236)&&_0x4e9673['shouldConvertImageType'](_0x343778['value'],_0x4cd236)?(_0x5182ae({..._0x343778,'setImageSizes':!0x1}),_0x4cd236=_0x34b74c['getClosestSelectedImageElement'](_0x5b2b4d['model']['document']['selection']),void _0x41c6f9['markBlockFormat'](_0x4cd236,{..._0x3fdd69,'commandReversedParams':[{'value':_0x3b7c83||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x34b74c['isBlockImage'](_0x4cd236)?_0x41c6f9['markBlockFormat'](_0x4cd236,_0x3fdd69,[],'imageStylePostApply'):_0x41c6f9['markInlineFormat'](_0x2a243a,_0x3fdd69,'imageStylePostApply'));});});for(const _0x525ea0 of _0x5b2b4d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x25756d[_0x525ea0['name']]=_0x525ea0['title']['toLowerCase']();_0x41c6f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x41c6f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x41c6f9['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x41c6f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5868db])=>{_0x34b74c['setImageNaturalSizeAttributes'](_0x5868db['getContainedElement']());}),_0x41c6f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x10aa34,_0xc11147)=>{_0x41c6f9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x10aa34,{'commandName':_0xc11147['commandName'],'commandParams':_0xc11147['commandReversedParams']});}),_0x41c6f9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x423434,_0x397c35){if(_0x39df32(_0x423434,_0x397c35))return[_0x423434,_0x397c35];if(_0x39df32(_0x397c35,_0x423434))return[_0x397c35,_0x423434];return null;});const _0x1845e5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x39df32(_0x56e0f2,_0x2291da){const _0x2f21de=_0x1845e5['findIndex'](({type:_0x598aeb,subType:_0x4f6609})=>_0x56e0f2['type']==_0x598aeb&&_0x56e0f2['subType']==_0x4f6609),_0x2a2aef=_0x1845e5['findIndex'](({type:_0x2f11c6,subType:_0x456779})=>_0x2291da['type']==_0x2f11c6&&_0x2291da['subType']==_0x456779);if(_0x2f21de<0x0||_0x2a2aef<0x0)return!0x1;const _0x29cba1=_0x56e0f2['getFirstRange'](),_0x183c3f=_0x2291da['getFirstRange']();if((0x0==_0x2f21de||0x1==_0x2f21de)&&0x2==_0x2a2aef&&_0x29cba1['isIntersecting'](_0x183c3f))return!0x0;if(0x2==_0x2f21de&&0x3==_0x2a2aef){const _0x2b7aa3=_0x41c6f9['_findSuggestions'](_0x29cba1,'insertion')['filter'](({suggestion:_0x348f33,meta:_0x205d7c})=>_0x205d7c['isOwn']&&'convertInlineImageToBlock'==_0x348f33['subType']);if(_0x2b7aa3['length']>0x1&&_0x183c3f['end']['isEqual'](_0x29cba1['start']))return!0x0;if(0x1==_0x2b7aa3['length']&&(_0x29cba1['start']['isEqual'](_0x183c3f['end'])||_0x29cba1['end']['isEqual'](_0x183c3f['start'])))return!0x0;}if(0x3==_0x2f21de&&0x3==_0x2a2aef&&_0x29cba1['start']['isBefore'](_0x183c3f['start'])){const _0x5cad84=_0x29cba1['end']['nodeAfter'],_0x2cbc04=_0x183c3f['start']['nodeBefore'];return _0x34b74c['isBlockImage'](_0x5cad84)&&_0x5cad84===_0x2cbc04;}return!0x1;}_0x5b2b4d['model']['document']['registerPostFixer'](()=>{let _0x18c72e=!0x1;const _0x38e3b5=Array['from'](_0x5b2b4d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x149f13,data:_0x1ef216}of _0x38e3b5){const {group:_0x454857,type:_0x3f614e,subType:_0x2e773a,id:_0x1c1fd9}=_0x41c6f9['_splitMarkerName'](_0x149f13);if('suggestion'==_0x454857&&_0x41c6f9['hasSuggestion'](_0x1c1fd9)){if('formatBlock'==_0x3f614e&&('imageStylePreApply'==_0x2e773a||'imageStylePostApply'==_0x2e773a)){const _0x38d1cc=_0x41c6f9['getSuggestion'](_0x1c1fd9);if(_0x1ef216['newRange']){const _0x305c0f=_0x38d1cc['getFirstRange']()['getContainedElement']();if(_0x34b74c['isBlockImage'](_0x305c0f))continue;_0x41c6f9['discardSuggestion'](_0x38d1cc),_0x18c72e=!0x0;}}if('insertion'==_0x3f614e&&'imageCaption'==_0x2e773a&&!_0x1ef216['newRange']){const _0x54f3fb=_0x41c6f9['getSuggestion'](_0x1c1fd9);_0x54f3fb['next']&&_0x54f3fb['next']['isInContent']&&(_0x41c6f9['discardSuggestion'](_0x54f3fb['next']),_0x18c72e=!0x0);}}}return _0x18c72e;}),this['_registerLegacyDescription'](_0x25756d);}['_registerLegacyDescription'](_0x37b823){const _0x1d0006=this['editor'],_0x44e9dd=_0x1d0006['locale'];_0x1d0006['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1075ef=>{if('formatBlock'!=_0x1075ef['type']&&'formatInline'!=_0x1075ef['type'])return;const {data:_0x212bea}=_0x1075ef;if(!_0x212bea||'imageStyle'!=_0x212bea['commandName'])return;const _0x4d3f89=_0x212bea['commandParams'][0x0]['value'];return _0x4ecfc4('side'===_0x4d3f89?c(_0x44e9dd,'FORMAT_SIDE_IMAGE'):_0x37b823[_0x4d3f89]||_0x4d3f89);function _0x4ecfc4(_0x2b7665){return{'type':'format','content':c(_0x44e9dd,'*Format:*\x20%0',_0x2b7665)};}});}}class ut extends _0x4d6f06{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1ba57a){super(_0x1ba57a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x10c016=this['editor'],_0x287e5b=_0x10c016['commands']['get']('importWord'),_0x6d56d0=_0x10c016['commands']['get']('trackChanges');_0x287e5b&&(_0x287e5b['on']('execute',(_0x43c0ce,[,_0xef1dc5])=>{this['_trackChangesValueDuringImport']=_0x6d56d0['value'],_0xef1dc5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x287e5b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x287e5b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x6d56d0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x10c016['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xe918b9,_0x1673c0){const {suggestions:_0x17f4a5}=_0x1673c0,_0x1b812a=this['editor']['commands']['get']('trackChanges'),_0x59e3b7=_0x1b812a['value'];this['_trackChangesValueDuringImport']!==_0x59e3b7&&(_0x1b812a['execute'](),this['_trackChangesExecuted']=!0x0),_0x17f4a5&&_0x17f4a5['forEach'](({id:_0x512e36,type:_0x5e3495,author:_0x3220c4,created_at:_0x2c6a76})=>{const _0x3c6446={'id':_0x512e36,'type':_0x5e3495,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3220c4,'createdAt':_0x2c6a76?new Date(_0x2c6a76):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3c6446);});}}class ft extends _0x4d6f06{['afterInit'](){const _0x494728=this['editor'],_0x3af8d1=_0x494728['plugins']['get']('TrackChangesEditing');if(_0x494728['plugins']['has']('IndentEditing')&&(_0x3af8d1['enableCommand']('indent'),_0x3af8d1['enableCommand']('outdent')),_0x494728['plugins']['has']('IndentBlock')){for(const _0x232b4f of['indentBlock','outdentBlock'])_0x3af8d1['enableDefaultAttributesIntegration'](_0x232b4f);}const _0x111a2=_0x494728['locale'];_0x3af8d1['registerBlockAttribute']('blockIndent'),_0x3af8d1['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x111a2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dc52d=this['editor'],_0x4cb728=_0x3dc52d['locale'],_0x471947=_0x3dc52d['plugins']['get']('TrackChangesEditing');_0x471947['descriptionFactory']['registerDescriptionCallback'](_0x477043=>{if('formatBlock'!=_0x477043['type'])return;const {data:_0x47cb90}=_0x477043;if(!_0x47cb90)return;if('indentBlock'!=_0x47cb90['commandName']&&'outdentBlock'!=_0x47cb90['commandName'])return;const _0x59035d=_0x477043['getItems']()[0x0],_0x44fd4c=_0x471947['descriptionFactory']['getItemLabel'](_0x59035d);return'indentBlock'==_0x47cb90['commandName']?{'type':'format','content':c(_0x4cb728,'*Indent:*\x20%0',_0x44fd4c)}:'outdentBlock'==_0x47cb90['commandName']?{'type':'format','content':c(_0x4cb728,'*Outdent:*\x20%0',_0x44fd4c)}:void 0x0;});}}class ht extends _0x4d6f06{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x4d6f06{['afterInit'](){const _0x2c5b9e=this['editor'];if(!_0x2c5b9e['plugins']['has']('LinkEditing'))return;const _0x22f30b=_0x2c5b9e['plugins']['get']('TrackChangesEditing'),_0x3d51b5=_0x2c5b9e['commands']['get']('link');_0x22f30b['enableDefaultAttributesIntegration']('link'),_0x22f30b['enableDefaultAttributesIntegration']('unlink'),_0x22f30b['registerInlineAttribute']('linkHref');for(const _0x2e105b of _0x3d51b5['manualDecorators'])_0x22f30b['registerInlineAttribute'](_0x2e105b['id']),_0x22f30b['descriptionFactory']['registerAttributeLabel'](_0x2e105b['id'],'link\x20('+_0x2e105b['label']['toLowerCase']()+')');_0x22f30b['descriptionFactory']['registerDescriptionCallback'](_0x3a4b98=>{if('attribute'!=_0x3a4b98['type'])return;const {data:_0x515f36}=_0x3a4b98;if(!_0x515f36||'linkHref'!=_0x515f36['key'])return;const _0x1dcbb4=_0x515f36['newValue'],_0x2e4eb4=_0x2c5b9e['locale'];return{'type':'format','content':null==_0x1dcbb4?c(_0x2e4eb4,'*Remove\x20link*'):c(_0x2e4eb4,'*Set\x20link:*\x20%0','\x22'+_0x1dcbb4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33e35c=this['editor'],_0x5b754f=_0x33e35c['locale'];_0x33e35c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f0cce=>{if('formatInline'!=_0x5f0cce['type'])return;const {data:_0xb61972}=_0x5f0cce;if(_0xb61972){if('link'==_0xb61972['commandName']){const _0x1fad96=_0xb61972['commandParams'][0x0];return{'type':'format','content':c(_0x5b754f,'*Set\x20link:*\x20%0','\x22'+_0x1fad96+'\x22')};}return'unlink'==_0xb61972['commandName']?{'type':'format','content':c(_0x5b754f,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x4d6f06{['afterInit'](){const _0x50b2b5=this['editor'],_0x35fae4=_0x50b2b5['locale'];if(!_0x50b2b5['plugins']['has']('LegacyListEditing'))return;const _0x4abded=_0x50b2b5['plugins']['get']('TrackChangesEditing'),_0x150a0c=_0x50b2b5['plugins']['has']('LegacyTodoListEditing');function _0x534fd5(_0x271253){return()=>{const _0x5c82a7=_0x50b2b5['model']['document']['selection'],_0x46a5f7=_0x50b2b5['commands']['get'](_0x271253);if(_0x46a5f7['value'])return void _0x50b2b5['execute']('paragraph',{});const _0x41e77a=_0x271253['slice'](0x0,-0x4),_0x27393a=function(_0x64d5ec,_0x33495e,_0x588881){let _0x7f2798=Array['from'](_0x64d5ec)['filter'](_0x4c86ed=>function(_0x30465b,_0x5747d9){return _0x5747d9['checkChild'](_0x30465b['parent'],'listItem')&&!_0x5747d9['isObject'](_0x30465b);}(_0x4c86ed,_0x588881));_0x7f2798=_0x7f2798['filter'](_0x2eefd7=>!_0x2eefd7['is']('element','listItem')||_0x2eefd7['getAttribute']('listType')!=_0x33495e);const _0xa6e985=new Set();for(const _0x43105d of _0x7f2798)_0x43105d['is']('element','listItem')?_0xa6e985['add'](Le(_0x43105d)):_0xa6e985['add'](_0x43105d);return Array['from'](_0xa6e985);}(_0x5c82a7['getSelectedBlocks'](),_0x41e77a,_0x50b2b5['model']['schema']);_0x50b2b5['model']['change'](()=>{for(const _0x384ea5 of _0x27393a)_0x4abded['markBlockFormat'](_0x384ea5,{'commandName':_0x271253,'commandParams':[{'forceValue':!_0x46a5f7['value']}],'formatGroupId':'blockName'},Ee(_0x384ea5));});};}function _0x21941e(_0x48b691){return()=>{const _0x5434aa=function(_0x2a8f83){let _0x425ca7=Array['from'](_0x2a8f83);const _0x8a3658=_0x425ca7['findIndex'](_0x5264bd=>'listItem'!=_0x5264bd['name']);return _0x8a3658>-0x1&&(_0x425ca7=_0x425ca7['slice'](0x0,_0x8a3658)),_0x425ca7;}(_0x50b2b5['model']['document']['selection']['getSelectedBlocks']()),_0x183c69=_0x50b2b5['model']['createRange'](_0x50b2b5['model']['createPositionAt'](_0x5434aa[0x0],'before'),_0x50b2b5['model']['createPositionAt'](_0x5434aa[_0x5434aa['length']-0x1],'end'));_0x50b2b5['model']['change'](()=>{_0x4abded['markBlockFormat'](_0x183c69,{'commandName':_0x48b691,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1aff84){const _0x1de5fd=new Set();for(const _0x3aa692 of _0x1aff84){let _0x35ab70=_0x3aa692['nextSibling'];for(;_0x35ab70&&_0x35ab70['getAttribute']('listIndent')>_0x3aa692['getAttribute']('listIndent');)_0x1de5fd['add'](_0x35ab70),_0x35ab70=_0x35ab70['nextSibling'];}return Array['from'](_0x1de5fd);}(_0x5434aa));});};}_0x4abded['enableCommand']('numberedList',_0x534fd5('numberedList')),_0x4abded['enableCommand']('bulletedList',_0x534fd5('bulletedList')),_0x150a0c&&_0x4abded['enableCommand']('todoList',_0x534fd5('todoList')),_0x4abded['enableCommand']('indentList',_0x21941e('indentList')),_0x4abded['enableCommand']('outdentList',_0x21941e('outdentList')),_0x150a0c&&_0x4abded['enableCommand']('checkTodoList',()=>{const _0x3b1bfa=_0x50b2b5['commands']['get']('checkTodoList'),_0x46529e=Array['from'](_0x3b1bfa['_selectedElements']);_0x46529e['filter'](_0x12d170=>_0x12d170['getAttribute']('todoListChecked')!=_0x3b1bfa['value']),_0x50b2b5['model']['change'](()=>{for(const _0x536753 of _0x46529e)_0x4abded['markBlockFormat'](_0x536753,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3b1bfa['value']}]});});}),_0x4abded['descriptionFactory']['registerElementLabel']('listItem',_0x1a1e8c=>c(_0x35fae4,'ELEMENT_LIST_ITEM',_0x1a1e8c)),_0x4abded['descriptionFactory']['registerDescriptionCallback'](_0x1be851=>{if('formatBlock'!=_0x1be851['type']&&'formatInline'!=_0x1be851['type'])return;const {data:_0x3fc5d4}=_0x1be851;if(_0x3fc5d4){if('numberedList'==_0x3fc5d4['commandName']||'bulletedList'==_0x3fc5d4['commandName']||'todoList'==_0x3fc5d4['commandName'])switch(_0x3fc5d4['commandName']['replace']('List','')){case'bulleted':return _0x4dca68(c(_0x35fae4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4dca68(c(_0x35fae4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4dca68(c(_0x35fae4,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3fc5d4['commandName'])return{'type':'format','content':c(_0x35fae4,'*Indent:*\x20%0',c(_0x35fae4,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3fc5d4['commandName'])return{'type':'format','content':c(_0x35fae4,'*Outdent:*\x20%0',c(_0x35fae4,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3fc5d4['commandName'])return _0x3fc5d4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x35fae4,'*Check\x20item*')}:{'type':'format','content':c(_0x35fae4,'*Uncheck\x20item*')};}function _0x4dca68(_0x5e98f6){return{'type':'format','content':c(_0x35fae4,'*Change\x20to:*\x20%0',_0x5e98f6)};}});}}function Le(_0xc83aeb){const _0x85fa51=_0xc83aeb['getAttribute']('listIndent');if(0x0==_0x85fa51)return _0xc83aeb;let _0x1c1b14=_0xc83aeb;for(;_0xc83aeb['previousSibling']&&_0xc83aeb['previousSibling']['is']('element','listItem');){const _0x369716=_0xc83aeb['previousSibling']['getAttribute']('listIndent');if(_0x369716==_0x85fa51)_0x1c1b14=_0xc83aeb['previousSibling'];else{if(_0x369716<_0x85fa51)break;}_0xc83aeb=_0xc83aeb['previousSibling'];}return _0x1c1b14;}function Ee(_0x46ab1b){const _0x3d5601=[];if(_0x46ab1b['is']('element','listItem')&&_0x46ab1b['getAttribute']('listIndent')>0x0){let _0x54dcdd=_0x46ab1b['nextSibling'];for(;_0x54dcdd&&'listItem'==_0x54dcdd['name']&&_0x54dcdd['getAttribute']('listIndent')==_0x46ab1b['getAttribute']('listIndent');)_0x3d5601['push'](_0x54dcdd),_0x54dcdd=_0x54dcdd['nextSibling'];}return _0x3d5601;}class Q extends _0x4d6f06{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1fe602=this['editor']['config']['get']('list.properties'),_0x4ea6df=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fe602['styles']&&_0x4ea6df['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1fe602['reversed']&&_0x4ea6df['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1fe602['startIndex']&&_0x4ea6df['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4ea6df['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x35cff1,_0x42566e={}){const _0x526188=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f46d2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x526188['markMultiRangeBlockFormat'](_0x1f46d2,{'commandName':'listStyle','commandParams':[{'type':_0x42566e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x202606,_0x39e9d5={}){const _0x5ca2b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x481dfc=this['_getSuggestionBlocks'](_0x55a5f7=>_0x55a5f7['is']('element','listItem')&&'numbered'===_0x55a5f7['getAttribute']('listType'));if(_0x481dfc['length']<0x1)return;const _0x4e2339=_0x481dfc['map'](_0x5add30=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5add30,'before'),this['editor']['model']['createPositionAt'](_0x5add30,0x0)));this['editor']['model']['change'](()=>{_0x5ca2b4['markMultiRangeBlockFormat'](_0x4e2339,{'commandName':'listReversed','commandParams':[{'reversed':_0x39e9d5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x468d22,_0x4ee802={}){const _0x43aded=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2298bf=this['_getSuggestionBlocks'](_0x5993ab=>_0x5993ab['is']('element','listItem')&&'numbered'===_0x5993ab['getAttribute']('listType'));if(_0x2298bf['length']<0x1)return;const _0x436607=_0x2298bf['map'](_0x623f35=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x623f35,'before'),this['editor']['model']['createPositionAt'](_0x623f35,0x0)));this['editor']['model']['change'](()=>{_0x43aded['markMultiRangeBlockFormat'](_0x436607,{'commandName':'listStart','commandParams':[{'startIndex':_0x4ee802['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x13e69f){if('formatBlock'!=_0x13e69f['type']&&'formatInline'!=_0x13e69f['type'])return;const _0x79974a=this['editor']['locale'],{data:_0x2a1ac0}=_0x13e69f;if(!_0x2a1ac0)return;let _0x3260db,_0x19f807;switch(_0x2a1ac0['commandName']){case'listStyle':_0x3260db='*Change\x20to:*\x20%0',_0x19f807={'type':'format','content':c(_0x79974a,_0x3260db,c(_0x79974a,this['_getTranslationKeyForListStyle'](_0x2a1ac0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3260db=_0x2a1ac0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x19f807={'type':'format','content':c(_0x79974a,_0x3260db)};break;case'listStart':_0x3260db='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x19f807={'type':'format','content':c(_0x79974a,_0x3260db,_0x2a1ac0['commandParams'][0x0]['startIndex'])};}return _0x19f807;}['_getSuggestionBlocksForListStyle'](){const _0x555b63=this['editor']['plugins']['get']('LegacyListUtils');let _0x474621=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x474621[0x0]?.['is']('element','listItem')&&_0x474621['unshift'](..._0x555b63['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x474621[_0x474621['length']-0x1]?.['is']('element','listItem')&&_0x474621['push'](..._0x555b63['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x474621=[...new Set(_0x474621)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x474621=_0x474621['filter'](_0x41180a=>_0x41180a['is']('element','listItem'))),_0x474621;}['_getSuggestionBlocks'](_0x462fae){const _0x3f9ceb=this['editor']['plugins']['get']('LegacyListUtils');let _0x1ab678=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x462fae)['map'](_0x448075=>{const _0x49e283=this['editor']['model']['createPositionAt'](_0x448075,0x0);return[..._0x3f9ceb['getSiblingNodes'](_0x49e283,'backward'),..._0x3f9ceb['getSiblingNodes'](_0x49e283,'forward')];})['flat']();return _0x1ab678=[...new Set(_0x1ab678)],_0x1ab678;}['_getTranslationKeyForListStyle'](_0x404a36){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x404a36)||'default')['toUpperCase']()+'_LIST_'+_0x404a36['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x4d6f06{['afterInit'](){const _0x51ed7a=this['editor'];if(!_0x51ed7a['plugins']['has']('MediaEmbedEditing'))return;const _0x2950da=_0x51ed7a['plugins']['get']('TrackChangesEditing'),_0x3e1db8=_0x51ed7a['locale'];_0x2950da['enableCommand']('mediaEmbed'),_0x2950da['descriptionFactory']['registerElementLabel']('media',_0x10625f=>c(_0x3e1db8,'ELEMENT_MEDIA',_0x10625f)),_0x51ed7a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2b0096,{writer:_0x5fe206,options:_0x5d24eb})=>{if(_0x5d24eb['showSuggestionHighlights'])return _0x5fe206['createEmptyElement']('div');},'converterPriority':'high'}),_0x51ed7a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x453c62,_0x40fda6,_0xd770bc)=>{_0xd770bc['options']['showSuggestionHighlights']&&_0x453c62['stop']();},{'priority':'high'});}}class pt extends _0x4d6f06{['afterInit'](){const _0x529db0=this['editor'];_0x529db0['plugins']['has']('MentionEditing')&&_0x529db0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x4d6f06{['afterInit'](){const _0x252444=this['editor'];if(!_0x252444['plugins']['has']('MergeFieldsEditing'))return;const _0x523dc2=_0x252444['plugins']['get']('TrackChangesEditing'),_0x5e8b9d=_0x252444['locale'];_0x523dc2['enableCommand']('insertMergeField'),_0x523dc2['enableCommand']('insertMergeFieldBlock'),_0x523dc2['enableCommand']('insertMergeFieldImage'),_0x523dc2['descriptionFactory']['registerElementLabel']('mergeField',_0x5e3722=>c(_0x5e8b9d,'ELEMENT_MERGE_FIELD',_0x5e3722)),_0x523dc2['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x52dca3=>c(_0x5e8b9d,'ELEMENT_MERGE_FIELD',_0x52dca3)),_0x523dc2['descriptionFactory']['registerDescriptionCallback'](_0x59cf62=>{if('insertion'!=_0x59cf62['type']&&'deletion'!=_0x59cf62['type'])return;const _0x12da3d=_0x59cf62['getContainedElement']();if(null==_0x12da3d)return;const _0x5d18f5=_0x252444['plugins']['get']('MergeFieldsEditing');let _0x3bfc3c;switch(_0x5d18f5['getMergeFieldType'](_0x12da3d)){case null:return;case'image':{const _0x5b37e0=_0x5d18f5['unwrapAffixes'](_0x12da3d['getAttribute']('src'));_0x3bfc3c=_0x5d18f5['getLabel'](_0x5b37e0)||_0x5b37e0;break;}default:{const _0x58cf90=_0x12da3d['getAttribute']('id');_0x3bfc3c=_0x5d18f5['getLabel'](_0x58cf90)||_0x58cf90;break;}}return'insertion'==_0x59cf62['type']?{'type':'insertion','content':c(_0x5e8b9d,'*Insert:*\x20%0','\x22'+_0x3bfc3c+'\x22\x20'+c(_0x5e8b9d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x5e8b9d,'*Remove:*\x20%0','\x22'+_0x3bfc3c+'\x22\x20'+c(_0x5e8b9d,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x4d6f06{['afterInit'](){const _0x46bf81=this['editor'],_0x20b46e=_0x46bf81['plugins']['get']('TrackChangesEditing');_0x46bf81['plugins']['has']('MultiLevelList')&&(_0x20b46e['enableDefaultAttributesIntegration']('multiLevelList'),_0x20b46e['registerBlockAttribute']('listMarkerStyle'),_0x20b46e['descriptionFactory']['registerDescriptionCallback'](_0xfd9e3b=>this['handleDescriptions'](_0xfd9e3b)));}['handleDescriptions'](_0x563726){const _0x2d7458=this['editor']['locale'],{data:_0x3cc127}=_0x563726,_0x2787c7={'type':'format','content':''};if(_0x3cc127&&'listMarkerStyle'==_0x3cc127['key']){if(!_0x3cc127['oldValue'])return{'type':'format','content':c(_0x2d7458,'*Set\x20format:*\x20%0',c(_0x2d7458,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3cc127['newValue']+')'};if(!_0x3cc127['newValue']){let _0x1344e9=_0x563726['head'];for(;_0x1344e9;){if(_0x1344e9['data']&&'listType'==_0x1344e9['data']['key']&&_0x1344e9['data']['newValue'])return _0x2787c7;_0x1344e9=_0x1344e9['next'];}return{'type':'format','content':c(_0x2d7458,'*Remove\x20format:*\x20%0',c(_0x2d7458,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3cc127['oldValue']+')'};}}}}class bt extends _0x4d6f06{['afterInit'](){const _0x35acea=this['editor'];if(!_0x35acea['plugins']['has']('PageBreakEditing'))return;_0x35acea['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2f702c=_0x35acea['plugins']['get']('TrackChangesEditing'),_0x6d10dc=_0x35acea['locale'];_0x2f702c['descriptionFactory']['registerElementLabel']('pageBreak',_0x5c326c=>c(_0x6d10dc,'ELEMENT_PAGE_BREAK',_0x5c326c));}}class yt extends _0x4d6f06{['afterInit'](){const _0x15289d=this['editor'];if(!_0x15289d['plugins']['has']('Paragraph'))return;const _0x5102ab=_0x15289d['locale'],_0x5597ca=_0x15289d['plugins']['get']('TrackChangesEditing');_0x5597ca['descriptionFactory']['registerElementLabel']('paragraph',_0x4f895d=>c(_0x5102ab,'ELEMENT_PARAGRAPH',_0x4f895d)),_0x5597ca['enableDefaultAttributesIntegration']('paragraph'),_0x5597ca['enableCommand']('insertParagraph'),_0x15289d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x15289d),{'priority':'highest'}),_0x15289d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x18f723,_0x100c6f,_0x4b3783)=>{_0x4b3783['options']['showSuggestionHighlights']&&nr(_0x15289d,{'showActiveMarker':!0x1})(_0x18f723,_0x100c6f,_0x4b3783);},{'priority':'highest'});const _0x28ab8b=_0x5597ca['descriptionFactory'];_0x28ab8b['registerDescriptionCallback'](_0x1a4ae0=>{if('insertion'!==_0x1a4ae0['type'])return;const {start:_0x1b2745,end:_0x5095b2}=_0x1a4ae0['getFirstRange']();if(!_0x1b2745['isTouching'](_0x5095b2)||!_0x1b2745['nodeAfter'])return;const _0x1b6050=_0x15289d['model']['schema'],_0x5d9f04=_0x1b2745['nodeAfter'];return _0x1b6050['isBlock'](_0x5d9f04)&&!_0x1b6050['isLimit'](_0x5d9f04)&&_0x1b6050['checkChild'](_0x5d9f04,'$text')?{'type':'insertion','content':c(_0x5102ab,'*Insert:*\x20%0',_0x28ab8b['getItemLabel'](_0x5d9f04,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ecbdc=this['editor'],_0x423f97=_0x4ecbdc['locale'];_0x4ecbdc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x353e05=>{if('formatBlock'!=_0x353e05['type'])return;const {data:_0x53121c}=_0x353e05;return _0x53121c&&'paragraph'==_0x53121c['commandName']?{'type':'format','content':c(_0x423f97,'*Change\x20to:*\x20%0',c(_0x423f97,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xa70189,{showActiveMarker:_0x3dc23d=!0x0}={}){return(_0xdc8abe,_0x3ba313,_0x22fe57)=>{const _0x52ccd6=_0xa70189['plugins']['get']('TrackChangesEditing'),_0xef66fa=_0x3ba313['markerRange']['start'],_0x1a227a=_0x3ba313['markerRange']['end'],_0x291645=_0xa70189['model']['schema'];if(!_0xef66fa['isTouching'](_0x1a227a)||!_0xef66fa['nodeAfter'])return;const _0x20abf9=_0xef66fa['nodeAfter'];if(_0x291645['isBlock'](_0x20abf9)&&!_0x291645['isLimit'](_0x20abf9)&&_0x291645['checkChild'](_0x20abf9,'$text')){if(!_0x22fe57['consumable']['consume'](_0x3ba313['markerRange'],_0xdc8abe['name']))return;const {authorId:_0x27008f}=_0x52ccd6['_splitMarkerName'](_0x3ba313['markerName']),_0x3bdf79=_0x22fe57['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x27008f}),_0x457834=_0x22fe57['mapper']['toViewPosition'](_0x1a227a);_0x3dc23d&&_0x52ccd6['activeMarkers']['includes'](_0x3ba313['markerName'])&&_0x22fe57['writer']['addClass']('ck-suggestion-marker--active',_0x3bdf79),_0x22fe57['writer']['insert'](_0x457834,_0x3bdf79),_0x22fe57['mapper']['bindElementToMarker'](_0x3bdf79,_0x3ba313['markerName']);}};}class jt extends _0x4d6f06{['afterInit'](){const _0xd498eb=this['editor'];_0xd498eb['commands']['get']('replaceSource')&&_0xd498eb['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x4d6f06{['afterInit'](){const _0x3d54e8=this['editor'];if(!_0x3d54e8['plugins']['has']('RemoveFormatEditing'))return;_0x3d54e8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42887f=this['editor'];_0x42887f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x275090=>{if('formatBlock'!=_0x275090['type']&&'formatInline'!=_0x275090['type'])return;const {data:_0x1ef0da}=_0x275090;return _0x1ef0da&&'removeFormat'==_0x1ef0da['commandName']?{'type':'format','content':c(_0x42887f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x4d6f06{['afterInit'](){const _0x455d23=this['editor'];if(!_0x455d23['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x50cd8d=_0x455d23['plugins']['get']('TrackChangesEditing');_0x50cd8d['enableCommand']('goToPreviousRestrictedEditingException'),_0x50cd8d['enableCommand']('goToNextRestrictedEditingException');const _0x1a07a3=_0x455d23['plugins']['get']('RestrictedEditingModeEditing');_0x1a07a3['enableCommand']('trackChanges'),_0x1a07a3['enableCommand']('acceptSuggestion'),_0x1a07a3['enableCommand']('discardSuggestion'),_0x1a07a3['enableCommand']('acceptAllSuggestions'),_0x1a07a3['enableCommand']('discardAllSuggestions'),_0x1a07a3['enableCommand']('acceptSelectedSuggestions'),_0x1a07a3['enableCommand']('discardSelectedSuggestions');}}class It extends _0x4d6f06{static get['requires'](){return[_0x3e998a];}['init'](){const _0x4ee526=this['editor'],_0x27cf54=_0x4ee526['plugins']['get']('TrackChangesEditing');_0x27cf54['enableCommand']('shiftEnter'),_0x4ee526['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4ee526),{'priority':'high'}),_0x4ee526['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4ee526),{'priority':'high'}),_0x4ee526['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xaa4d1c,_0x213231,_0x389305)=>{_0x389305['options']['showSuggestionHighlights']&&je(_0x4ee526,{'showActiveMarker':!0x1})(_0xaa4d1c,_0x213231,_0x389305);}),_0x27cf54['descriptionFactory']['registerElementLabel']('softBreak',_0x607d3=>c(_0x4ee526['locale'],'ELEMENT_LINE_BREAK',_0x607d3));}}function je(_0x27793f,{showActiveMarker:_0x54eb5b=!0x0}={}){return(_0x3f76a6,_0x18ef05,_0xae7f77)=>{const _0x43d9de=_0x27793f['plugins']['get']('TrackChangesEditing');if(!_0xae7f77['consumable']['test'](_0x18ef05['markerRange'],_0x3f76a6['name']))return;const _0x279b64=_0x27793f['model'];for(const _0x5858cd of _0x18ef05['markerRange']['getItems']()){if(!_0x5858cd['is']('element','softBreak'))continue;const _0x3f9ae9='deletion'==_0x18ef05['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0xa717d7}=_0x43d9de['_splitMarkerName'](_0x18ef05['markerName']),_0x283cea=_0xae7f77['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3f9ae9,'data-author-id':_0xa717d7}),_0x56e0ee=_0xae7f77['mapper']['toViewPosition'](_0x279b64['createPositionBefore'](_0x5858cd));_0x54eb5b&&_0x43d9de['activeMarkers']['includes'](_0x18ef05['markerName'])&&_0xae7f77['writer']['addClass']('ck-suggestion-marker--active',_0x283cea),_0xae7f77['writer']['insert'](_0x56e0ee,_0x283cea),_0xae7f77['mapper']['bindElementToMarker'](_0x283cea,_0x18ef05['markerName']);}};}class _t extends _0x4d6f06{['afterInit'](){const _0x5dd2b2=this['editor'],_0x5bee60=_0x5dd2b2['model'],_0x544321=_0x5dd2b2['locale'];if(!_0x5dd2b2['plugins']['has']('StandardEditingModeEditing'))return;const _0x4a0266=_0x5dd2b2['plugins']['get']('TrackChangesEditing'),_0x151022='restrictedEditingException',_0x3d4d90=_0x5dd2b2['commands']['get'](_0x151022);_0x4a0266['enableCommand'](_0x151022,(_0x106dbb,_0x4beee1={})=>{const _0x2858c4=_0x5bee60['document']['selection'];if(_0x2858c4['isCollapsed'])return void _0x106dbb(_0x4beee1);const _0x16edd8=void 0x0!==_0x4beee1['forceValue']?_0x4beee1['forceValue']:!_0x3d4d90['value'];_0x5bee60['change'](()=>{const _0x42cabd=Array['from'](_0x2858c4['getRanges']());for(const _0x46094c of _0x42cabd){const _0xca5267=_0x16edd8?[_0x46094c]:io(_0x151022,_0x46094c,_0x5bee60);for(const _0x387aef of _0xca5267)_0x4a0266['markInlineFormat'](_0x387aef,{'commandName':_0x151022,'commandParams':[{'forceValue':_0x16edd8}]});}});}),_0x4a0266['descriptionFactory']['registerDescriptionCallback'](_0x5b3c36=>{if('formatBlock'!=_0x5b3c36['type']&&'formatInline'!=_0x5b3c36['type'])return;const {data:_0x3ac730}=_0x5b3c36;return _0x3ac730&&_0x3ac730['commandName']==_0x151022?_0x3ac730['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x544321,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x544321,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x4d6f06{['afterInit'](){const _0x3abdaf=this['editor'];if(!_0x3abdaf['plugins']['has']('Style')||!_0x3abdaf['plugins']['has']('DataSchema'))return;const _0x3dcf2b=_0x3abdaf['plugins']['get']('TrackChangesEditing'),_0x1201b6=_0x3abdaf['locale'],_0x465c80=_0x3abdaf['config']['get']('style')||{},_0x503cc2=_0x3abdaf['plugins']['get']('GeneralHtmlSupport'),_0x5a5d62=_0x3abdaf['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3abdaf['plugins']['get']('DataSchema'),_0x465c80['definitions']);_0x3dcf2b['enableDefaultAttributesIntegration']('style');const _0x24f9fc=new Set();for(const _0x5e3350 of _0x5a5d62['block']){const _0x2254a6=_0x503cc2['getGhsAttributeNameForElement'](_0x5e3350['element']);_0x24f9fc['add'](_0x2254a6);}const _0xaf2f3c=new Set();for(const _0x409bd3 of _0x5a5d62['inline']){const _0x3e2b53=_0x503cc2['getGhsAttributeNameForElement'](_0x409bd3['element']);_0xaf2f3c['add'](_0x3e2b53);for(const _0x5a7833 of _0x409bd3['ghsAttributes'])_0xaf2f3c['add'](_0x5a7833);}for(const _0x311332 of _0x24f9fc)_0x3dcf2b['registerBlockAttribute'](_0x311332),_0x3dcf2b['descriptionFactory']['registerAttributeLabel'](_0x311332,c(_0x1201b6,'FORMAT_STYLE'));for(const _0x4f7575 of _0xaf2f3c)_0x3dcf2b['registerInlineAttribute'](_0x4f7575),_0x3dcf2b['descriptionFactory']['registerAttributeLabel'](_0x4f7575,c(_0x1201b6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3be27c=this['editor'],_0x32c361=_0x3be27c['locale'];_0x3be27c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41c929=>{if('formatBlock'!=_0x41c929['type']&&'formatInline'!=_0x41c929['type'])return;const {data:_0x42021c}=_0x41c929;return _0x42021c&&'style'===_0x42021c['commandName']?_0x42021c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x32c361,'*Set\x20format:*\x20%0',_0x42021c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x32c361,'*Remove\x20format:*\x20%0',_0x42021c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x4d6f06{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5c8428){super(_0x5c8428),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4397a9=this['editor'],_0x1b2767=_0x4397a9['model']['document']['selection'];if(!_0x4397a9['plugins']['has']('TableEditing'))return;const _0x323dd3=_0x4397a9['locale'],_0xe5005d=_0x4397a9['plugins']['get']('TrackChangesEditing'),_0x23b492=_0x4397a9['plugins']['get']('TableUtils');_0xe5005d['descriptionFactory']['registerElementLabel']('table',_0x50efbe=>c(_0x323dd3,'ELEMENT_TABLE',_0x50efbe)),this['_setupColumnsRowsFixing'](),_0xe5005d['enableCommand']('insertTable'),_0xe5005d['enableCommand']('selectTableRow'),_0xe5005d['enableCommand']('selectTableColumn');for(const _0x2aa5f8 of['insertTableRowAbove','insertTableRowBelow']){const _0x200cf8=_0x4397a9['commands']['get'](_0x2aa5f8);_0xe5005d['enableCommand'](_0x2aa5f8,_0x3908a8=>{_0x4397a9['model']['change'](_0x46959f=>{_0x3908a8();const _0x67108='above'===_0x200cf8['order'],_0x51565d=_0x23b492['getSelectionAffectedTableCells'](_0x1b2767),_0x5dc3c2=_0x23b492['getRowIndexes'](_0x51565d),_0x5b780a=_0x67108?_0x5dc3c2['first']-0x1:_0x5dc3c2['last']+0x1,_0x1b3d67=_0x51565d[0x0]['findAncestor']('table'),_0xe7b5a2=_0x23b492['createTableWalker'](_0x1b3d67,{'startRow':_0x5b780a,'endRow':_0x5b780a}),_0xce4148=Array['from'](_0xe7b5a2)['map'](_0x5ba595=>_0x46959f['createRangeOn'](_0x5ba595['cell']));_0xe5005d['markMultiRangeInsertion'](_0xce4148,'tableRow');});});}for(const _0x49eb59 of['insertTableColumnLeft','insertTableColumnRight']){const _0x507043=_0x4397a9['commands']['get'](_0x49eb59);_0xe5005d['enableCommand'](_0x49eb59,_0x15d689=>{_0x4397a9['model']['change'](_0x4fd789=>{_0x15d689();const _0xd48feb='left'===_0x507043['order'],_0x503e2f=_0x23b492['getSelectionAffectedTableCells'](_0x1b2767),_0x2dcaf1=_0x23b492['getColumnIndexes'](_0x503e2f),_0x5bde20=_0xd48feb?_0x2dcaf1['first']-0x1:_0x2dcaf1['last']+0x1,_0x3f73f8=_0x503e2f[0x0]['findAncestor']('table'),_0x954ef7=_0x23b492['createTableWalker'](_0x3f73f8,{'startRow':0x0,'column':_0x5bde20,'includeAllSlots':!0x1}),_0x646c4d=Array['from'](_0x954ef7)['map'](_0x3ac117=>_0x4fd789['createRangeOn'](_0x3ac117['cell']));_0xe5005d['markMultiRangeInsertion'](_0x646c4d,'tableColumn');});});}for(const _0xc1f9f8 of['removeTableRow','removeTableColumn']){const _0x4d6cd3=_0xc1f9f8['substr'](0xb),_0x144592=_0x4d6cd3['toLowerCase'](),_0x2b5454=_0x144592['substr'](0x0,0x3)+'span',_0x770204='table'+_0x4d6cd3,_0x1aee22='min'+_0x4d6cd3,_0xb03de7='max'+_0x4d6cd3;_0xe5005d['enableCommand'](_0xc1f9f8,()=>{_0x4397a9['model']['change'](_0x491a5d=>{const _0x38e659=_0x23b492['getSelectionAffectedTableCells'](_0x1b2767),_0x28a970=_0x38e659[0x0]['findAncestor']('table');let _0x7c946;if('removeTableRow'==_0xc1f9f8){const _0x257216=_0x23b492['getRowIndexes'](_0x38e659);_0x7c946={'startRow':_0x257216['first'],'endRow':_0x257216['last'],'includeAllSlots':!0x0};}else{const _0x1a379f=_0x23b492['getColumnIndexes'](_0x38e659);_0x7c946={'startColumn':_0x1a379f['first'],'endColumn':_0x1a379f['last'],'includeAllSlots':!0x0};}const _0x1001d7=_0x23b492['createTableWalker'](_0x28a970,_0x7c946),_0x247f4e=Array['from'](_0x1001d7)['map'](({cell:_0x5a24d5})=>_0x5a24d5),_0x2d8c80=Ne(_0x247f4e['filter'](_0x102619=>_0x102619['hasAttribute'](_0x2b5454))),_0x28c131=Ne(_0x247f4e['filter'](_0x46197c=>!_0x46197c['hasAttribute'](_0x2b5454)))['map'](_0x122853=>_0x491a5d['createRangeOn'](_0x122853)),_0x31ca75=_0xe5005d['markMultiRangeDeletion'](_0x28c131,_0x770204);if(_0x31ca75&&('tableRow'==_0x31ca75['subType']||'tableColumn'==_0x31ca75['subType'])){const _0x4073e2=this['_getSuggestionCoords'](_0x31ca75);for(const _0x5905f5 of _0x2d8c80){const _0x5355f2=_0x491a5d['createRangeOn'](_0x5905f5),_0x3c9dcf=_0x23b492['getCellLocation'](_0x5905f5),_0xecadab=_0x5905f5['getAttribute'](_0x2b5454)-0x1,_0x4063fa=_0x4073e2[_0x1aee22],_0x3df14d=_0x4073e2[_0xb03de7];_0x4063fa<=_0x3c9dcf[_0x144592]&&_0x3c9dcf[_0x144592]+_0xecadab<=_0x3df14d&&_0x31ca75['addRange'](_0x5355f2);}}});});}function _0x1b0711(_0x882275){const _0x5db9aa=Array['from'](_0x1b2767['getRanges']())['map'](_0x54047f=>_0x3e72a4['fromRange'](_0x54047f));_0x4397a9['model']['change'](_0x552041=>{const _0x32cb64=_0x552041['batch'];_0x882275=_0x882275['filter'](_0x621708=>'$graveyard'!=_0x621708['root']['rootName']),_0x552041['setSelection'](_0x882275),_0x4397a9['commands']['get']('removeTableRow')['refresh'](),_0x4397a9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4397a9['model']['enqueueChange'](()=>{_0x4397a9['model']['enqueueChange'](_0x32cb64,_0x2535c7=>{const _0x3e67b5=_0x5db9aa['filter'](_0x5b447f=>'$graveyard'!=_0x5b447f['root']['rootName']);_0x3e67b5['length']>0x0&&_0x2535c7['setSelection'](_0x3e67b5);for(const _0x1966ab of _0x5db9aa)_0x1966ab['detach']();});});});}function _0x56a79c(_0x5d73df){_0x4397a9['model']['change'](_0x50fb43=>{const _0x4c21c5=Array['from'](_0x1b2767['getRanges']())['map'](_0x21e793=>_0x3e72a4['fromRange'](_0x21e793)),_0x25d672=[];for(const _0x174008 of _0x5d73df)for(const _0x7c6b95 of _0x174008['getItems']({'shallow':!0x0}))_0x25d672['push'](_0x7c6b95);for(const _0x4eb74a of _0x25d672)'$graveyard'!=_0x4eb74a['root']['rootName']&&(_0x50fb43['setSelection'](_0x50fb43['createPositionAt'](_0x4eb74a,0x0)),_0x4397a9['commands']['get']('removeTableColumn')['refresh'](),_0x4397a9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2d198c=_0x4c21c5['filter'](_0x3f2f4a=>'$graveyard'!=_0x3f2f4a['root']['rootName']);_0x2d198c['length']>0x0&&_0x50fb43['setSelection'](_0x2d198c);for(const _0x25002f of _0x4c21c5)_0x25002f['detach']();});}function _0x8f06e7(_0x5ccc48,_0x4cd0e6){return _0x4cd0e6['every'](_0x178d13=>_0x5ccc48['some'](_0x182a44=>_0x182a44['end']['isEqual'](_0x178d13['start'])||_0x178d13['end']['isEqual'](_0x182a44['start'])));}function _0x3b53aa(_0xe653a2,_0xb98882){return!_0xe653a2['some'](_0x486fa1=>_0xb98882['some'](_0x5e4c2c=>_0x486fa1['isIntersecting'](_0x5e4c2c)))&&_0xe653a2['some'](_0x39d95c=>_0xb98882['some'](_0x3d2fc0=>_0x39d95c['end']['isTouching'](_0x3d2fc0['start'])));}_0x4397a9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x9e2095,_0x739e87,_0x304a0d)=>{if(!_0x304a0d['options']['showSuggestionHighlights'])return;const _0x7eb362=_0x739e87['item'];if(!_0x7eb362)return;const _0x41b642=_0x304a0d['mapper']['toViewElement'](_0x7eb362);function _0x482a1b(_0x2d84d9){return Array['isArray'](_0x2d84d9)?_0x2d84d9:[_0x2d84d9];}_0x41b642&&'tableCell'===_0x7eb362['name']&&_0x394bd3(_0x41b642,_0x304a0d['writer'],(_0x3c63e4,_0x37a2fa,_0x2f5e60)=>_0x2f5e60['addClass'](_0x482a1b(_0x37a2fa['classes']),_0x3c63e4),(_0x4cd216,_0x34c147,_0xdcd404)=>_0xdcd404['removeClass'](_0x482a1b(_0x34c147['classes']),_0x4cd216));},{'priority':'highest'}),_0xe5005d['descriptionFactory']['registerDescriptionCallback'](_0x1c1273=>{if('insertion'!=_0x1c1273['type']&&'deletion'!=_0x1c1273['type'])return;const _0x1cf460=_0x1c1273['getContainedElement']();if(null!=_0x1cf460&&_0x1cf460['is']('element','table')){if('insertion'==_0x1c1273['type']){const _0x1b915d=_0x1c1273['getItems']()['filter'](_0x4cb818=>_0x4cb818['is']('$textProxy'))['map'](_0x428a04=>_0x428a04['data']);if(_0x1b915d['length'])return{'type':'insertion','content':c(_0x323dd3,'*Insert:*\x20%0',c(_0x323dd3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1b915d['join']('\x20')+'\x22'))};}if('deletion'==_0x1c1273['type']){const _0x302b15=_0x1c1273['getItems']()['filter'](_0x1076d3=>_0x1076d3['is']('$textProxy'))['map'](_0x23418b=>_0x23418b['data']);if(_0x302b15['length'])return{'type':'deletion','content':c(_0x323dd3,'*Remove:*\x20%0',c(_0x323dd3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x302b15['join']('\x20')+'\x22'))};}}}),_0xe5005d['descriptionFactory']['registerDescriptionCallback'](_0x5e17bd=>{if('tableRow'==_0x5e17bd['subType']){const _0x2aeb62=_0x5e17bd['getItems']()['filter'](_0x355721=>_0x355721['is']('$textProxy'))['map'](_0x18e975=>_0x18e975['data']),_0x5268dc=this['_getSuggestionCoords'](_0x5e17bd),_0x5bf160=_0x5268dc['maxRow']-_0x5268dc['minRow']+0x1;if('insertion'==_0x5e17bd['type'])return _0x2aeb62['length']?{'type':'insertion','content':c(_0x323dd3,'*Insert:*\x20%0',c(_0x323dd3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5bf160,'\x22'+_0x2aeb62['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x323dd3,'*Insert:*\x20%0',c(_0x323dd3,'ELEMENT_TABLE_ROW',_0x5bf160))};if('deletion'==_0x5e17bd['type'])return _0x2aeb62['length']?{'type':'deletion','content':c(_0x323dd3,'*Remove:*\x20%0',c(_0x323dd3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5bf160,'\x22'+_0x2aeb62['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x323dd3,'*Remove:*\x20%0',c(_0x323dd3,'ELEMENT_TABLE_ROW',_0x5bf160))};}if('tableColumn'==_0x5e17bd['subType']){const _0x347324=_0x5e17bd['getItems']()['filter'](_0x3313e3=>_0x3313e3['is']('$textProxy'))['map'](_0x499914=>_0x499914['data']),_0x27c58e=this['_getSuggestionCoords'](_0x5e17bd),_0x25b1c7=_0x27c58e['maxColumn']-_0x27c58e['minColumn']+0x1;if('insertion'==_0x5e17bd['type'])return _0x347324['length']?{'type':'insertion','content':c(_0x323dd3,'*Insert:*\x20%0',c(_0x323dd3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x25b1c7,'\x22'+_0x347324['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x323dd3,'*Insert:*\x20%0',c(_0x323dd3,'ELEMENT_TABLE_COLUMN',_0x25b1c7))};if('deletion'==_0x5e17bd['type'])return _0x347324['length']?{'type':'deletion','content':c(_0x323dd3,'*Remove:*\x20%0',c(_0x323dd3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x25b1c7,'\x22'+_0x347324['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x323dd3,'*Remove:*\x20%0',c(_0x323dd3,'ELEMENT_TABLE_COLUMN',_0x25b1c7))};}}),_0xe5005d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1b0711),_0xe5005d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1b0711),_0xe5005d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x56a79c),_0xe5005d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x56a79c),_0xe5005d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x8f06e7),_0xe5005d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x8f06e7),_0xe5005d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3b53aa),_0xe5005d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3b53aa);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5a73cd=this['editor'],_0xa2f1f0=_0x5a73cd['model']['document']['selection'];return(_0x16beba,_0x2f97f7)=>{_0x5a73cd['model']['change'](_0x11a09b=>{const {commandName:_0x301c03,commandParams:_0x463bf8}=_0x2f97f7;let _0xbdf9eb=_0x16beba[0x0]['end']['nodeBefore'];_0x463bf8&&_0x463bf8[0x0]&&!0x1===_0x463bf8[0x0]['forceValue']&&(_0xbdf9eb=_0x16beba[0x0]['start']['nodeAfter']);const _0x2c9f93=_0x11a09b['createRangeIn'](_0xbdf9eb);if('$graveyard'==_0x2c9f93['root']['rootName'])return;const _0xcde393=Array['from'](_0xa2f1f0['getRanges']())['map'](_0x25fda3=>_0x3e72a4['fromRange'](_0x25fda3));_0x11a09b['setSelection'](_0x2c9f93),_0x5a73cd['commands']['get'](_0x301c03)['refresh'](),_0x463bf8['push']({'forceDefaultExecution':!0x0}),_0x5a73cd['execute'](_0x301c03,..._0x463bf8);const _0x57d5c0=_0xcde393['filter'](_0xf6e298=>'$graveyard'!=_0xf6e298['root']['rootName']);_0x57d5c0['length']>0x0&&_0x11a09b['setSelection'](_0x57d5c0);for(const _0x402bea of _0xcde393)_0x402bea['detach']();});};}['_getCoordsForCells'](_0x4bfbe9){const _0xdf56e1=this['editor']['plugins']['get']('TableUtils');let _0x25436e=Number['MAX_SAFE_INTEGER'],_0x54dacc=Number['MIN_SAFE_INTEGER'],_0x22c78e=Number['MAX_SAFE_INTEGER'],_0x1f528d=Number['MIN_SAFE_INTEGER'];for(const _0x470460 of _0x4bfbe9){if('$graveyard'==_0x470460['root']['rootName'])continue;const {row:_0x820dc,column:_0xe75173}=_0xdf56e1['getCellLocation'](_0x470460),_0xdc972a=_0x470460['hasAttribute']('rowspan')?_0x470460['getAttribute']('rowspan')-0x1:0x0,_0x387693=_0x470460['hasAttribute']('colspan')?_0x470460['getAttribute']('colspan')-0x1:0x0;_0x25436e=_0x820dc<_0x25436e?_0x820dc:_0x25436e,_0x54dacc=_0x820dc+_0xdc972a>_0x54dacc?_0x820dc+_0xdc972a:_0x54dacc,_0x22c78e=_0xe75173<_0x22c78e?_0xe75173:_0x22c78e,_0x1f528d=_0xe75173+_0x387693>_0x1f528d?_0xe75173+_0x387693:_0x1f528d;}return{'minRow':_0x25436e,'maxRow':_0x54dacc,'minColumn':_0x22c78e,'maxColumn':_0x1f528d};}['_setupColumnsRowsFixing'](){const _0x42c2f0=this['editor'],_0x1c1792=_0x42c2f0['plugins']['get']('TrackChangesEditing'),_0x3d2386=_0x42c2f0['plugins']['get']('TableUtils');_0x42c2f0['model']['document']['on']('change:data',()=>{const _0x1ec8ff=Array['from'](_0x42c2f0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5cb3ea,data:_0x236ca1}of _0x1ec8ff){const {group:_0x3a0701,id:_0x551d22,subType:_0x1ab047}=_0x1c1792['_splitMarkerName'](_0x5cb3ea);if('suggestion'!=_0x3a0701)continue;if(null!=_0x236ca1['oldRange'])continue;const _0x1fbdf3=_0x1c1792['getSuggestion'](_0x551d22);this['_tablePostFixingSubtypes']['includes'](_0x1ab047)&&this['_tableSuggestions']['add'](_0x1fbdf3);}},{'priority':'low'});const _0x187d45=(_0x1e7854,_0x424a4f)=>{let _0x3e6164=!0x1;const _0x2a1eee=_0x424a4f['createRangeOn'](_0x1e7854),_0x4d5588=_0x1e7854['findAncestor']('table'),_0xd89c9c=_0x3d2386['getCellLocation'](_0x1e7854);for(const _0x57aba0 of this['_tableSuggestions']){const _0x4320d2=_0x57aba0['subType'],_0x4694c4=_0x4320d2['startsWith']('tablePaste'),_0x235e74=_0x4320d2['substr'](_0x4694c4?0xa:0x5),_0x34bb2c=_0x235e74['toLowerCase'](),_0x1ad377=_0x34bb2c['substr'](0x0,0x3)+'span',_0x1340a6='min'+_0x235e74,_0x5da778='max'+_0x235e74;if(!_0x57aba0['isInContent'])continue;if(_0x4d5588!=_0x57aba0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x57aba0['isIntersectingWithRange'](_0x2a1eee))continue;const _0x3fa3ec=_0x1e7854['hasAttribute'](_0x1ad377)?_0x1e7854['getAttribute'](_0x1ad377)-0x1:0x0,_0x14edb7=this['_getSuggestionCoords'](_0x57aba0),_0x2ae673=_0x14edb7[_0x1340a6],_0x221f27=_0x14edb7[_0x5da778];_0x2ae673<=_0xd89c9c[_0x34bb2c]&&_0xd89c9c[_0x34bb2c]+_0x3fa3ec<=_0x221f27&&(_0x57aba0['addRange'](_0x2a1eee),_0x3e6164=!0x0);}return _0x3e6164;};_0x42c2f0['model']['document']['registerPostFixer'](_0xe7a84b=>{let _0x225e8f=!0x1;for(const _0x4b563f of _0x42c2f0['model']['document']['differ']['getChanges']())if('insert'==_0x4b563f['type']){if('tableRow'==_0x4b563f['name']){for(const _0x2ab0a6 of _0x4b563f['position']['nodeAfter']['getChildren']())_0x225e8f=_0x225e8f||_0x187d45(_0x2ab0a6,_0xe7a84b);}else'tableCell'==_0x4b563f['name']&&(_0x225e8f=_0x225e8f||_0x187d45(_0x4b563f['position']['nodeAfter'],_0xe7a84b));}return _0x225e8f;});}['_getSuggestionCoords'](_0x30b2fe){return this['_getCoordsForCells'](_0x30b2fe['getRanges']()['map'](_0x56e69d=>_0x56e69d['start']['nodeAfter']));}}function Ne(_0x431fac){return Array['from'](new Set(_0x431fac)['values']());}class Nt extends _0x4d6f06{static get['requires'](){return[Ct];}['afterInit'](){const _0x346c65=this['editor'],_0x230c84=_0x346c65['model']['document']['selection'],_0xfa54a=_0x346c65['locale'];if(!_0x346c65['plugins']['has']('TableEditing'))return;const _0x518f77=_0x346c65['plugins']['get']('TrackChangesEditing'),_0x56c216=_0x346c65['plugins']['get']('TableUtils'),_0x297698=_0x346c65['plugins']['get'](Ct);_0x297698['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x518f77['enableCommand']('mergeTableCells',()=>{const _0x1a027f=_0x56c216['getSelectionAffectedTableCells'](_0x346c65['model']['document']['selection']);_0x346c65['model']['change'](()=>{_0x518f77['markMultiRangeBlockFormat'](_0x1a027f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x346c65['commands']['get']('mergeTableCells')['on']('execute',(_0x17e317,_0x291c76)=>{_0x346c65['commands']['get']('trackChanges')['value']&&(_0x291c76['length']>0x0&&_0x291c76[_0x291c76['length']-0x1]&&_0x291c76[_0x291c76['length']-0x1]['forceDefaultExecution']||_0x518f77['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x17e317['stop']());},{'priority':'highest'});for(const _0x214328 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1d2e2f=_0x346c65['commands']['get'](_0x214328);_0x518f77['enableCommand'](_0x214328,()=>{const _0x3751e6=_0x346c65['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x50e7a9=>_0x50e7a9['is']('element','tableCell')),_0x42b9dd=_0x1d2e2f['value'];_0x346c65['model']['change'](()=>{_0x518f77['markMultiRangeBlockFormat']([_0x3751e6,_0x42b9dd],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xfa97bc of['splitTableCellVertically','splitTableCellHorizontally']){const _0x17c2fa=_0x346c65['commands']['get'](_0xfa97bc);_0x518f77['enableCommand'](_0xfa97bc,()=>{const _0x47d204=_0x56c216['getSelectionAffectedTableCells'](_0x346c65['model']['document']['selection'])[0x0],_0x1face8=_0x47d204['findAncestor']('table'),{column:_0x5579f8,row:_0x4ad60f}=_0x56c216['getCellLocation'](_0x47d204);let _0x72fa16=[];if('horizontally'==_0x17c2fa['direction']){const _0x23b35a=_0x56c216['createTableWalker'](_0x1face8,{'startRow':_0x4ad60f,'endRow':_0x4ad60f,'includeAllSlots':!0x0});_0x72fa16=Array['from'](_0x23b35a)['map'](_0x99ae80=>_0x99ae80['cell']);}else{const _0x22c979=_0x56c216['createTableWalker'](_0x1face8,{'column':_0x5579f8,'includeAllSlots':!0x0});_0x72fa16=Array['from'](_0x22c979)['map'](_0x39de8f=>_0x39de8f['cell']);}_0x346c65['model']['change'](_0x6c2e29=>{_0x518f77['markBlockFormat'](_0x6c2e29['createRangeOn'](_0x47d204),{'commandName':_0xfa97bc,'commandParams':[]},_0x72fa16,_0xfa97bc);});});}_0x518f77['descriptionFactory']['registerDescriptionCallback'](_0x1bd4c2=>{if('formatBlock'!=_0x1bd4c2['type']&&'formatInline'!=_0x1bd4c2['type'])return;const {data:_0x5f0361}=_0x1bd4c2;return _0x5f0361&&'mergeTableCells'==_0x5f0361['commandName']?{'type':'format','content':c(_0xfa54a,'*Merge\x20cells*')}:void 0x0;}),_0x518f77['descriptionFactory']['registerDescriptionCallback'](_0x57b081=>{if('formatBlock'!=_0x57b081['type']&&'formatInline'!=_0x57b081['type'])return;const {data:_0x49f157}=_0x57b081;return _0x49f157?'splitTableCellVertically'==_0x49f157['commandName']?{'type':'format','content':c(_0xfa54a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x49f157['commandName']?{'type':'format','content':c(_0xfa54a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x17cbc9=_0x297698['_acceptFormatSuggestionCallbackFactory']();for(const _0x145c80 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x518f77['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x145c80,'accept',_0x17cbc9);for(const _0x2b0d50 of['splitTableCellVertically','splitTableCellHorizontally'])_0x518f77['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b0d50,'accept',_0x17cbc9);_0x518f77['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x588292=>{_0x346c65['model']['change'](_0x40c68a=>{const _0x1d77db=Array['from'](_0x230c84['getRanges']())['map'](_0x208737=>_0x3e72a4['fromRange'](_0x208737));_0x40c68a['setSelection'](_0x588292),_0x346c65['commands']['get']('mergeTableCells')['refresh'](),_0x346c65['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4c824f=_0x1d77db['filter'](_0x239808=>'$graveyard'!=_0x239808['root']['rootName']);_0x4c824f['length']>0x0&&_0x40c68a['setSelection'](_0x4c824f);for(const _0x4c36cf of _0x1d77db)_0x4c36cf['detach']();});});for(const _0x209c88 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x312fd1=_0x346c65['commands']['get'](_0x209c88);_0x312fd1['on']('set:isEnabled',(_0x1f7745,_0x58aed5,_0x18c72c)=>{if(_0x18c72c){const _0x430b6a=_0x346c65['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f0ee=>_0x1f0ee['is']('element','tableCell'));this['_areMergableCells'](_0x312fd1['value'],_0x430b6a)||(_0x1f7745['return']=!0x1,_0x1f7745['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x49c5ba=this['editor']['commands']['get']('mergeTableCells'),_0x4e6fec=this['editor']['plugins']['get']('TableUtils');if(!_0x49c5ba['isEnabled'])return!0x1;const _0x49095c=_0x4e6fec['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x467e60 of _0x49095c)for(const _0x5a8fa0 of _0x49095c)if(_0x467e60!=_0x5a8fa0&&!this['_areMergableCells'](_0x467e60,_0x5a8fa0))return!0x1;return!0x0;}['_areMergableCells'](_0x2009df,_0x3e0b11){const _0x442964=this['editor']['plugins']['get']('TrackChangesEditing'),_0x74550=this['editor']['model']['createRangeOn'](_0x2009df),_0x3d15a6=this['editor']['model']['createRangeOn'](_0x3e0b11),_0x12e4e=new Set(),_0x3dd384=new Set();for(const _0x45a464 of _0x442964['getSuggestions']())if(('insertion'==_0x45a464['type']||'deletion'==_0x45a464['type']||'mergeTableCells'==_0x45a464['subType'])&&_0x45a464['isInContent']){for(const _0x5d6e98 of _0x45a464['getRanges']())_0x5d6e98['containsRange'](_0x74550,!0x0)&&_0x12e4e['add'](_0x45a464['type']+':'+_0x45a464['author']['id']),_0x5d6e98['containsRange'](_0x3d15a6,!0x0)&&_0x3dd384['add'](_0x45a464['type']+':'+_0x45a464['author']['id']);}if(_0x12e4e['size']!=_0x3dd384['size'])return!0x1;for(const _0xb1d609 of _0x12e4e)if(!_0x3dd384['has'](_0xb1d609))return!0x1;return!0x0;}}class Dt extends _0x4d6f06{static get['requires'](){return[Ct];}['afterInit'](){const _0x25dd4a=this['editor'];if(!_0x25dd4a['plugins']['has']('TableEditing'))return;const _0x3db62=_0x25dd4a['locale'],_0x18886e=_0x25dd4a['plugins']['get']('TrackChangesEditing');_0x18886e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x18886e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x18886e['registerBlockAttribute']('headingRows'),_0x18886e['registerBlockAttribute']('headingColumns'),_0x18886e['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x3db62,'FORMAT_HEADER_ROW')),_0x18886e['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x3db62,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xd0db5f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc95f32=this['editor']['plugins']['get']('TableUtils'),_0x425f7a=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x335547({showActiveMarker:_0x5d6478=!0x0,setDataAttribute:_0x2f0a80=!0x0}={}){return(_0x428096,_0x57292c,_0x4bd362)=>{const {type:_0x44e9d7,id:_0x57100c}=_0xd0db5f['_splitMarkerName'](_0x57292c['markerName']),_0x1b6ef4=_0xd0db5f['getSuggestion'](_0x57100c),_0x43088f=_0x1b6ef4['data'];if('formatBlock'!=_0x1b6ef4['type']||!_0x43088f||'setTableColumnHeader'!=_0x43088f['commandName'])return;if(_0x57292c['item'])return void _0x428096['stop']();if(!_0x4bd362['consumable']['consume'](_0x57292c['markerRange'],_0x428096['name']))return;const _0x238c31=_0x57292c['markerRange']['start']['nodeAfter'],_0x350da0=_0x57292c['markerRange']['end']['nodeBefore'],_0x37ace8=_0x238c31['parent']['parent'],{column:_0x59671f}=_0xc95f32['getCellLocation'](_0x238c31),{column:_0x9fdfe9}=_0xc95f32['getCellLocation'](_0x350da0);for(let _0x32b5b9=_0x59671f;_0x32b5b9<=_0x9fdfe9;_0x32b5b9++){const _0x5db459=_0xc95f32['createTableWalker'](_0x37ace8,{'column':_0x32b5b9,'includeAllSlots':!0x1});for(const _0x5d52a5 of _0x5db459){const _0x1d6d4b=_0x5d52a5['cell'],_0x44fd2d=_0x4bd362['mapper']['toViewElement'](_0x1d6d4b);_0x4bd362['writer']['addClass']('ck-suggestion-marker-'+_0x44e9d7,_0x44fd2d),_0x2f0a80&&_0x4bd362['writer']['setAttribute']('data-suggestion',_0x57100c,_0x44fd2d),_0x4bd362['mapper']['bindElementToMarker'](_0x44fd2d,_0x57292c['markerName']),_0x5d6478&&(_0xd0db5f['activeMarkers']['includes'](_0x57292c['markerName'])?_0x4bd362['writer']['addClass']('ck-suggestion-marker--active',_0x44fd2d):_0x4bd362['writer']['removeClass']('ck-suggestion-marker--active',_0x44fd2d));}}};}_0xd0db5f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x425f7a),_0xd0db5f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x425f7a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x335547(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x437a02,_0x4a5c45,_0x3b5c87)=>{_0x3b5c87['options']['showSuggestionHighlights']&&_0x335547({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x437a02,_0x4a5c45,_0x3b5c87);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xd1d9e8,_0x540e6c,_0x1f012f)=>{const {type:_0x4ee535,id:_0x3d63e0}=_0xd0db5f['_splitMarkerName'](_0x540e6c['markerName']),_0x1dd174=_0xd0db5f['getSuggestion'](_0x3d63e0),_0x549a7a=_0x1dd174['data'];if('formatBlock'!=_0x1dd174['type']||!_0x549a7a||'setTableColumnHeader'!=_0x549a7a['commandName'])return;const _0x51b0c9=_0x1f012f['mapper']['markerNameToElements'](_0x540e6c['markerName']);if(_0x51b0c9){for(const _0x4a3530 of _0x51b0c9)_0x1f012f['writer']['removeClass']('ck-suggestion-marker-'+_0x4ee535,_0x4a3530),_0x1f012f['writer']['removeClass']('ck-suggestion-marker--active',_0x4a3530),_0x1f012f['writer']['removeAttribute']('data-suggestion',_0x4a3530),_0x1f012f['mapper']['unbindElementFromMarkerName'](_0x4a3530,_0x540e6c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x255671=this['editor'],_0x254900=_0x255671['locale'];function _0x4416e6(_0x5da4ab){return{'type':'format','content':c(_0x254900,'*Format:*\x20%0',_0x5da4ab)};}_0x255671['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a7ea2=>{if('formatBlock'!=_0x5a7ea2['type'])return;const {data:_0x737972}=_0x5a7ea2;if(_0x737972){if('setTableRowHeader'==_0x737972['commandName']){const _0x516f7e=_0x737972['commandParams'][0x0]['forceValue'];return _0x4416e6(c(_0x254900,_0x516f7e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x737972['commandName']){const _0x2bcc61=_0x737972['commandParams'][0x0]['forceValue'];return _0x4416e6(c(_0x254900,_0x2bcc61?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x2d8e4e=>[_0x2d8e4e,null]));class Mt extends _0x4d6f06{static get['requires'](){return[Ct];}['afterInit'](){const _0x5d139b=this['editor'];if(!_0x5d139b['plugins']['has']('TableClipboard'))return;const _0x29fe00=_0x5d139b['plugins']['get']('TrackChangesEditing'),_0x3e810d=_0x5d139b['plugins']['get']('TableUtils'),_0x237392=_0x5d139b['plugins']['get'](Ct),_0x2c0cdb=_0x5d139b['plugins']['get']('TableClipboard');_0x237392['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5d139b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5d139b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x51d4a7=null;_0x5d139b['model']['on']('insertContent',(_0x372e64,_0x3d9b35)=>{const [_0x31bb8a,_0x248463]=_0x3d9b35,_0x1df6e4=_0x3d9b35[_0x3d9b35['length']-0x1];_0x1df6e4&&_0x1df6e4['forceDefaultExecution']||_0x29fe00['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x872cd9,_0x22cc10,_0x3b9a02,_0x567a18,_0x3ef2d9){if(_0x22cc10&&!_0x22cc10['is']('documentSelection'))return!0x1;const _0x44e393=_0x3ef2d9['getTableIfOnlyTableInContent'](_0x872cd9,_0x3b9a02);if(!_0x44e393||!Ue(_0x44e393,void 0x0,_0x567a18))return!0x1;const _0x3c31c5=_0x567a18['getSelectionAffectedTableCells'](_0x3b9a02['document']['selection']);if(!_0x3c31c5['length'])return!0x1;const _0x331888=_0x3c31c5[0x0]['findAncestor']('table'),_0x12840f=_0x567a18['getRowIndexes'](_0x3c31c5),_0x412867=_0x567a18['getColumnIndexes'](_0x3c31c5),_0x4e63e7={'startRow':_0x12840f['first'],'endRow':_0x12840f['last'],'startColumn':_0x412867['first'],'endColumn':_0x412867['last']};return 0x1==_0x3c31c5['length']&&(_0x4e63e7['endRow']+=_0x567a18['getRows'](_0x44e393)-0x1,_0x4e63e7['endColumn']+=_0x567a18['getColumns'](_0x44e393)-0x1),Ue(_0x331888,_0x4e63e7,_0x567a18);}(_0x31bb8a,_0x248463,_0x5d139b['model'],_0x3e810d,_0x2c0cdb)&&(_0x372e64['stop'](),_0x51d4a7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5d139b['model']['change'](()=>{_0x5d139b['model']['insertContent'](_0x3d9b35[0x0],_0x3d9b35[0x1],_0x3d9b35[0x2],{'forceDefaultExecution':!0x0});const _0x1d6a59=_0x2b2ac3(),{rowInsertionRanges:_0xc9c557,columnInsertionRanges:_0x568c53,insertionRanges:_0x58b4e5,deletionRanges:_0x1437f3,cells:_0x2f40fe}=_0x51d4a7;_0xc9c557['length']&&_0x29fe00['markMultiRangeInsertion'](_0xc9c557,'tablePasteRow',{'tablePasteChainId':_0x1d6a59}),_0x568c53['length']&&_0x29fe00['markMultiRangeInsertion'](_0x568c53,'tablePasteColumn',{'tablePasteChainId':_0x1d6a59}),_0x58b4e5['length']&&(_0x29fe00['markMultiRangeInsertion'](_0x58b4e5,'tablePaste',{'tablePasteChainId':_0x1d6a59,'skipNestingCheck':!0x0}),_0x58b4e5['forEach'](_0x17050f=>_0x17050f['detach']?.())),_0x1437f3['length']&&(_0x29fe00['markMultiRangeDeletion'](_0x1437f3,'tablePaste',{'tablePasteChainId':_0x1d6a59,'skipNestingCheck':!0x0}),_0x1437f3['forEach'](_0x213c6b=>_0x213c6b['detach']?.()));const _0xb7f6e1=_0x29fe00['markMultiRangeBlockFormat'](_0x2f40fe['map'](({element:_0x380654})=>_0x380654),{'formatGroupId':_0x2b2ac3()},[],'tablePasteCell',{'tablePasteChainId':_0x1d6a59});if(_0xb7f6e1){const _0x267a91=_0xb7f6e1['getMarkers'](),_0x496723=[];for(const {element:_0x52398c,attributes:_0x14b3de}of _0x2f40fe){if(!_0x14b3de)continue;const _0x36e450=_0x5d139b['model']['createRangeOn'](_0x52398c),_0x100fcf=_0x267a91['find'](_0x1af298=>_0x1af298['getRange']()['isEqual'](_0x36e450));_0x100fcf&&_0x496723['push']([_0x100fcf['name'],_0x14b3de]);}_0x496723['length']&&_0xb7f6e1['setAttribute']('markerAttributes',Object['fromEntries'](_0x496723));}_0x51d4a7=null;}));},{'priority':_0x36d092['high']+0xa}),_0x5d139b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2bcadd,_0x71b7ff)=>{const [_0x282e4a,_0x592a9d,,_0x4d4c26]=_0x71b7ff;if(!_0x51d4a7)return;_0x2bcadd['stop']();const _0x405130=_0x282e4a['cell'],_0x2fd2b2=_0x592a9d,_0x510b8c=Oe(_0x405130),_0x204316=Oe(_0x2fd2b2);_0x2bcadd['return']=_0x405130;let _0x5d3255=null,_0x217e8a=null;if(_0x204316||_0x510b8c){if(_0x510b8c&&!_0x204316){_0x4d4c26['remove'](_0x405130['getChild'](0x0));for(const _0x4c00f9 of Array['from'](_0x2fd2b2['getChildren']()))_0x4d4c26['insert'](_0x4c00f9,_0x405130,'end');const _0x3c9590=_0x51d4a7['rowInsertionIndexes']['includes'](_0x282e4a['row']),_0x1023cc=_0x51d4a7['columnInsertionIndexes']['includes'](_0x282e4a['column']);_0x3c9590||_0x1023cc||(_0x5d3255=_0x3e72a4['fromRange'](_0x4d4c26['createRangeIn'](_0x405130)));}else _0x204316&&!_0x510b8c&&(_0x217e8a=_0x4d4c26['createRangeIn'](_0x405130));}else{const _0x196673=_0x4d4c26['createElement']('tableCellSuggestion'),_0xb0d410=_0x4d4c26['createElement']('tableCellSuggestion');_0x4d4c26['wrap'](_0x4d4c26['createRangeIn'](_0x405130),_0xb0d410),_0x4d4c26['insert'](_0x196673,_0x405130,0x0);for(const _0x1ec589 of Array['from'](_0x2fd2b2['getChildren']()))_0x4d4c26['insert'](_0x1ec589,_0x196673,'end');_0x5d3255=_0x3e72a4['fromRange'](_0x4d4c26['createRangeOn'](_0x196673)),_0x217e8a=_0x3e72a4['fromRange'](_0x4d4c26['createRangeOn'](_0xb0d410));}const _0x390ad2=Array['from'](_0x2fd2b2['getAttributes']())['filter'](([_0x52b3c7])=>Be['includes'](_0x52b3c7));_0x51d4a7['cells']['push']({'element':_0x405130,'attributes':_0x390ad2['length']?Object['fromEntries'](_0x390ad2):null}),_0x5d3255&&_0x51d4a7['insertionRanges']['push'](_0x5d3255),_0x217e8a&&_0x51d4a7['deletionRanges']['push'](_0x217e8a);},{'priority':'high'}),_0x3e810d['on']('insertColumns',(_0x48a706,_0x16e27d)=>{const [_0x229bfc,_0x580e49={}]=_0x16e27d;if(!_0x51d4a7)return;const _0x154108=_0x580e49['at']||0x0,_0x26d574=_0x580e49['columns']||0x1;_0x51d4a7['columnInsertionIndexes']=new Array(_0x26d574)['fill'](_0x154108)['map']((_0x5f51f,_0x1a828b)=>_0x5f51f+_0x1a828b);for(const {cell:_0x1d2648}of _0x3e810d['createTableWalker'](_0x229bfc,{'startColumn':_0x154108,'endColumn':_0x154108+_0x26d574-0x1}))_0x51d4a7['columnInsertionRanges']['push'](_0x5d139b['model']['createRangeOn'](_0x1d2648));},{'priority':'low'}),_0x3e810d['on']('insertRows',(_0x51541c,_0x3feab1)=>{const [_0x2fab1d,_0x4d1550={}]=_0x3feab1;if(!_0x51d4a7)return;const _0x45705a=_0x4d1550['at']||0x0,_0x434f82=_0x4d1550['rows']||0x1;_0x51d4a7['rowInsertionIndexes']=new Array(_0x434f82)['fill'](_0x45705a)['map']((_0x161992,_0x136b3f)=>_0x161992+_0x136b3f);for(const {cell:_0x46f255}of _0x3e810d['createTableWalker'](_0x2fab1d,{'startRow':_0x45705a,'endRow':_0x45705a+_0x434f82-0x1}))_0x51d4a7['rowInsertionRanges']['push'](_0x5d139b['model']['createRangeOn'](_0x46f255));},{'priority':'low'}),_0x29fe00['descriptionFactory']['registerDescriptionCallback'](_0x3b757b=>{if(_0x3b757b['subType']&&_0x3b757b['subType']['startsWith']('tablePaste'))return _0x3b757b['previous']?{}:{'type':'insertion','content':c(_0x5d139b['locale'],'*Replace\x20table\x20cells*')};});const _0x146d94=()=>!0x1;for(const _0x213076 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x29fe00['_suggestionFactory']['registerCustomCallback']('insertion',_0x213076,'join',_0x146d94),_0x29fe00['_suggestionFactory']['registerCustomCallback']('deletion',_0x213076,'join',_0x146d94),_0x29fe00['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x213076,'join',_0x146d94);_0x29fe00['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x146d94),_0x29fe00['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4fd209,_0x4fec32,_0x48ae18)=>{const _0x5cc571=_0x4fd209['map'](_0x4cfd35=>_0x4cfd35['getContainedElement']())['filter'](_0xc75385=>_0xc75385),_0xbbbcbe=new Map(_0x5cc571['map'](_0x4c2a2a=>[_0x4c2a2a,null]));if(_0x51d4a7){for(const {element:_0x1ef5b0,attributes:_0x1c09a5}of _0x51d4a7['cells'])_0x1c09a5&&_0xbbbcbe['set'](_0x1ef5b0,_0x1c09a5);}else{if(_0x48ae18&&_0x48ae18['markerAttributes'])for(const [_0x4c8789,_0x258aca]of Object['entries'](_0x48ae18['markerAttributes'])){const _0x108e5d=_0x5d139b['model']['markers']['get'](_0x4c8789),_0x371d9f=_0x108e5d?_0x108e5d['getRange']()['getContainedElement']():null;_0x371d9f&&_0xbbbcbe['set'](_0x371d9f,_0x258aca);}}_0x5d139b['model']['change'](_0x375d3e=>{for(const [_0x2e01e6,_0x1b65be]of _0xbbbcbe)_0x375d3e['setAttributes']({...xe,..._0x1b65be},_0x2e01e6);});});const _0x5ce350=(_0x42baed,_0x3cbeac)=>{_0x29fe00['_suggestionFactory']['registerCustomCallback'](_0x42baed,'tablePaste',_0x3cbeac,(_0x5422f2,_0x3e4166,_0x2f79a8)=>{_0x5d139b['model']['change'](_0x439d55=>{const _0xaed57a=[];for(const _0x183e96 of _0x5422f2){const _0x549599=_0x183e96['start']['nodeAfter'];_0x549599['is']('element','tableCellSuggestion')&&_0xaed57a['push'](_0x549599);}_0x29fe00['_suggestionFactory']['getSuggestionCallback'](_0x42baed,null,_0x3cbeac)(_0x5422f2,_0x3e4166,_0x2f79a8);for(const _0x519cb6 of _0xaed57a)'$graveyard'!=_0x519cb6['root']['rootName']&&_0x439d55['unwrap'](_0x519cb6);});});};_0x5ce350('insertion','accept'),_0x5ce350('insertion','discard'),_0x5ce350('deletion','accept'),_0x5ce350('deletion','discard'),_0x29fe00['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5e4480=>{const _0x1c822a=_0x5e4480['map'](_0x4300fe=>_0x4300fe['getContainedElement']()),_0xcce071=_0x1c822a[0x0]['findAncestor']('table'),{minRow:_0x484fdd,maxRow:_0x52561b}=_0x237392['_getCoordsForCells'](_0x1c822a);_0x3e810d['removeRows'](_0xcce071,{'at':_0x484fdd,'rows':_0x52561b-_0x484fdd+0x1});}),_0x29fe00['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4020b9=>{const _0x3e38eb=_0x4020b9['map'](_0x2404de=>_0x2404de['getContainedElement']()),_0x56d872=_0x3e38eb[0x0]['findAncestor']('table'),{minColumn:_0x50fba6,maxColumn:_0x3164fd}=_0x237392['_getCoordsForCells'](_0x3e38eb);_0x3e810d['removeColumns'](_0x56d872,{'at':_0x50fba6,'columns':_0x3164fd-_0x50fba6+0x1});});const _0x576811=(_0x505cb5,_0x1685c0)=>{if(!_0x1685c0['subType']||!_0x1685c0['subType']['startsWith']('tablePaste'))return;const _0x11ec8b=_0x1685c0['attributes']['tablePasteChainId'],_0x437885=_0x29fe00['getSuggestions']()['filter'](_0x255c49=>_0x255c49['isInContent']&&_0x255c49['attributes']&&_0x255c49['attributes']['tablePasteChainId']==_0x11ec8b);_0x437885['length']&&_0x1685c0['getAllAdjacentSuggestions']()['length']!=_0x437885['length']&&_0x437885['reduce']((_0x139e32,_0x49e839)=>(_0x139e32['next']=_0x49e839,_0x49e839['previous']=_0x139e32,_0x49e839));};function _0x3193ca(_0x1d8037,_0x4851d6=!0x0){const {id:_0x351ca8,authorId:_0x1f211a}=_0x29fe00['_splitMarkerName'](_0x1d8037['markerName']),_0x2485c8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x519604=_0x29fe00['activeMarkers']['includes'](_0x1d8037['markerName']);return _0x519604&&_0x2485c8['push']('ck-suggestion-marker--active'),{'classes':_0x2485c8,'attributes':{'data-suggestion':_0x351ca8,'data-author-id':_0x1f211a},'priority':_0x519604&&_0x4851d6?0xbc2:0xbb8};}_0x29fe00['on']('suggestionLoaded',_0x576811,{'priority':'high'}),_0x29fe00['on']('suggestionUnloaded',_0x576811,{'priority':'high'}),_0x5d139b['model']['document']['registerPostFixer'](()=>{let _0x45feea=!0x1;const _0x3d14fa=Array['from'](_0x5d139b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20b1e6,data:_0x5152d4}of _0x3d14fa){const {group:_0x15041a,type:_0x11ba06,id:_0x2b551e}=_0x29fe00['_splitMarkerName'](_0x20b1e6);if('suggestion'!=_0x15041a||'deletion'!=_0x11ba06||_0x5152d4['oldRange'])continue;if(!_0x29fe00['hasSuggestion'](_0x2b551e))continue;const _0x112908=_0x29fe00['getSuggestion'](_0x2b551e)['getRanges'](),_0x23ac02=_0x5d139b['plugins']['get']('Users')['me'];for(const _0x335e08 of _0x29fe00['getSuggestions']()){if(!_0x335e08['isInContent']||_0x335e08['author']!=_0x23ac02)continue;if('formatBlock'!=_0x335e08['type']||'tablePasteCell'!=_0x335e08['subType'])continue;if(_0x335e08['getRanges']()['every'](_0x13946b=>_0x112908['some'](_0x46b6e4=>_0x46b6e4['containsRange'](_0x13946b,!0x0)))){for(const _0xd6b4f2 of _0x335e08['getAllAdjacentSuggestions']())_0xd6b4f2['isInContent']&&(_0xd6b4f2['discard'](),_0x45feea=!0x0);}}}return _0x45feea;}),_0x5d139b['model']['document']['registerPostFixer'](_0x54cf39=>{const _0x4d1edd=_0x5d139b['commands']['get']('redo');if(!_0x4d1edd||!_0x4d1edd['_createdBatches']['has'](_0x54cf39['batch']))return!0x1;let _0x4f6c26=!0x1;const _0x20b0f1=_0x5d139b['plugins']['get']('Users')['me'],_0xf6b023=_0x5d139b['model']['document']['differ']['getChanges'](),_0x2d0be3=Array['from'](_0x5d139b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1f9b66,data:_0x59253b})=>{const {group:_0x13d482,subType:_0x2ac761,authorId:_0x19331d}=_0x29fe00['_splitMarkerName'](_0x1f9b66);return'suggestion'==_0x13d482&&'tablePaste'==_0x2ac761&&_0x19331d==_0x20b0f1['id']&&!_0x59253b['oldRange'];});for(const _0x281503 of _0xf6b023){if('insert'!=_0x281503['type']||'tableCellSuggestion'!=_0x281503['name']||0x1!=_0x281503['length'])continue;const _0x313ec0=_0x54cf39['createRange'](_0x281503['position'],_0x281503['position']['getShiftedBy'](0x1));if(!_0x2d0be3['find'](({data:_0x2c5e88})=>_0x2c5e88['newRange']['isEqual'](_0x313ec0))){for(const {name:_0x2324c7,data:_0x61a263}of _0x2d0be3)if(_0x313ec0['containsRange'](_0x61a263['newRange'])){_0x54cf39['updateMarker'](_0x2324c7,{'range':_0x313ec0}),_0x4f6c26=!0x0;break;}}}return _0x4f6c26;}),_0x5d139b['model']['document']['registerPostFixer'](_0x5c188f=>{let _0x30da76=!0x1;const _0x2003c4=_0x5d139b['plugins']['get']('Users')['me'],_0xd21b9c=_0x29fe00['getSuggestions']()['filter'](_0x378fa3=>_0x378fa3['isInContent']&&_0x378fa3['author']==_0x2003c4),_0x364ccc=new Set(),_0xd88b1f=new Set();for(const _0x45c3ac of _0xd21b9c)if('tablePaste'==_0x45c3ac['subType'])for(const _0x524b6e of _0x45c3ac['getMarkers']()){const _0xb42e3a=_0x524b6e['getRange']()['getContainedElement']();if(_0xb42e3a){if(_0xb42e3a['is']('element','tableCellSuggestion')&&Oe(_0xb42e3a)){_0x45c3ac['removeMarker'](_0x524b6e['name']),_0x364ccc['add'](_0xb42e3a),_0x30da76=!0x0;const _0x31e0a7=_0xb42e3a['nextSibling'],_0x3c3a19=_0xb42e3a['previousSibling'],_0x4e399c=_0x31e0a7&&_0x31e0a7['is']('element','tableCellSuggestion'),_0x1de542=_0x3c3a19&&_0x3c3a19['is']('element','tableCellSuggestion');_0x4e399c&&!_0x364ccc['has'](_0x31e0a7)&&_0xd88b1f['add'](_0x31e0a7),_0x1de542&&!_0x364ccc['has'](_0x3c3a19)&&_0xd88b1f['add'](_0x3c3a19);}else _0xb42e3a['is']('element','paragraph')&&_0xb42e3a['isEmpty']&&(_0x45c3ac['removeMarker'](_0x524b6e['name']),_0x30da76=!0x0);}}else{if('tablePasteCell'==_0x45c3ac['subType']){if(!_0x45c3ac['attributes']||!_0x45c3ac['attributes']['tablePasteChainId'])continue;const _0x567d60=_0x45c3ac['attributes']['markerAttributes'];if(_0x567d60&&Object['keys'](_0x567d60)['length'])continue;const _0x56af59=_0x45c3ac['attributes']['tablePasteChainId'];let _0x151700=!0x0,_0x3fc26c=!0x0;for(const _0x3ce8cc of _0xd21b9c)if(_0x3ce8cc['subType']&&_0x3ce8cc['subType']['startsWith']('tablePaste')){if(!_0x3ce8cc['attributes']['tablePasteChainId']){_0x3fc26c=!0x1;break;}if(_0x3ce8cc['id']!=_0x45c3ac['id']&&_0x3ce8cc['attributes']['tablePasteChainId']==_0x56af59){_0x151700=!0x1;break;}}_0x3fc26c&&_0x151700&&(_0x45c3ac['removeMarkers'](),_0x30da76=!0x0);}}for(const _0x2a6d3e of _0x364ccc)_0x5c188f['remove'](_0x2a6d3e);for(const _0xad769a of _0xd88b1f)_0x5c188f['unwrap'](_0xad769a);return _0x30da76;}),_0x5d139b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2c79f3=>_0x3193ca(_0x2c79f3),'converterPriority':'high'}),_0x5d139b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2112d0,_0x311b51)=>_0x311b51['options']['showSuggestionHighlights']?_0x3193ca(_0x2112d0,!0x1):null,'converterPriority':'high'});const _0x3b8ce5=_0x5d139b['editing']['view'];this['listenTo'](_0x3b8ce5['document'],'clipboardOutput',(_0x4bc3aa,_0x51c587)=>{const _0x23ad1e=[];for(const _0x2ddada of _0x3b8ce5['createRangeIn'](_0x51c587['content'])['getItems']())_0x2ddada['is']('element','suggestion-td')&&_0x23ad1e['push'](_0x2ddada);_0x3b8ce5['change'](_0x3f0cc0=>{for(const _0x77ebf4 of _0x23ad1e)_0x3f0cc0['move'](_0x3f0cc0['createRangeIn'](_0x77ebf4),_0x3f0cc0['createPositionBefore'](_0x77ebf4)),_0x3f0cc0['remove'](_0x77ebf4);});});}}function Oe(_0x15f2b7){if(_0x15f2b7['isEmpty'])return!0x0;const _0x8dd9f3=_0x15f2b7['getChild'](0x0);return _0x8dd9f3['is']('element','paragraph')&&_0x8dd9f3['isEmpty'];}function Ue(_0x7c3a5d,_0x3409d7={},_0x2be96c){for(const {isAnchor:_0x30e1e0,cellHeight:_0x4f0931,cellWidth:_0x50dc37}of _0x2be96c['createTableWalker'](_0x7c3a5d,{'includeAllSlots':!0x0,..._0x3409d7}))if(!_0x30e1e0||0x1!=_0x4f0931||0x1!=_0x50dc37)return!0x1;return!0x0;}class $t extends _0x4d6f06{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x53dd1b=this['editor']['plugins']['get']('TrackChangesEditing');_0x53dd1b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x53dd1b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x53dd1b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x53dd1b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x53dd1b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x53dd1b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3ca4c2,_0x1bb0df){const _0x40de93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33502f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xba02e6=_0x1bb0df['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x36d03a=_0x33502f['getColumnGroupElement'](_0xba02e6);let _0x1c2e75=_0x36d03a?_0x33502f['getTableColumnsWidths'](_0x36d03a):null,_0x290d4c=_0xba02e6['getAttribute']('tableWidth')||null;const _0xe07fb=_0x1bb0df['tableWidth']||_0x290d4c,_0x170907=_0x1bb0df['columnWidths']||_0x1c2e75,_0x5365bd=this['editor']['plugins']['get']('Users')['me'];for(const _0x31cccb of _0x40de93['getSuggestions']()){const _0x4f40a8=_0x31cccb['getContainedElement']();if('resizeTable'===_0x31cccb['subType']&&_0x4f40a8===_0xba02e6){_0x31cccb['author']!==_0x5365bd&&_0x31cccb['discard']();const _0x4864ab=_0x31cccb['data']['commandParams'];_0x290d4c=_0x4864ab[0x0]['tableWidth'],_0x1c2e75=_0x4864ab[0x0]['columnWidths'];break;}}_0x3ca4c2({'table':_0xba02e6,'tableWidth':_0xe07fb,'columnWidths':_0x170907}),_0x40de93['markBlockFormat'](_0xba02e6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x290d4c,'columnWidths':_0x1c2e75}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4c9df9){if('formatBlock'!=_0x4c9df9['type']&&'formatInline'!=_0x4c9df9['type'])return;const {data:_0x20bf39}=_0x4c9df9;if(_0x20bf39&&'resizeTable'===_0x20bf39['formatGroupId']){const _0x1a44bc='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x1a44bc)};}}}class Bt extends _0x4d6f06{['afterInit'](){const _0x298ce4=this['editor'];_0x298ce4['plugins']['has']('Template')&&_0x298ce4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x4d6f06{['afterInit'](){const _0x510a87=this['editor'];if(!_0x510a87['commands']['get']('insertTableOfContents'))return;_0x510a87['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5a18c3=_0x510a87['plugins']['get']('TrackChangesEditing'),_0x2260c8=_0x510a87['locale'];_0x5a18c3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x178386=>c(_0x2260c8,'ELEMENT_TABLE_OF_CONTENTS',_0x178386));}}class Rt extends _0x4d6f06{['afterInit'](){const _0x2b7dc9=this['editor'];if(!_0x2b7dc9['plugins']['has']('Title'))return;const _0x22b62b=_0x2b7dc9['plugins']['get']('TrackChangesEditing');_0x22b62b['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x2b7dc9['locale'],'ELEMENT_TITLE')),_0x2b7dc9['model']['document']['registerPostFixer'](_0x353bce=>{let _0x3ae9ab=!0x1;const _0x39f290=Array['from'](_0x2b7dc9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4628b2,data:_0x59a3ec}of _0x39f290){const {group:_0x398440}=_0x22b62b['_splitMarkerName'](_0x4628b2);if('suggestion'!==_0x398440||!_0x59a3ec['newRange'])continue;const _0x28833f=_0x59a3ec['newRange'],_0x2bf5a4=_0x28833f['end']['nodeBefore'];if(!_0x2bf5a4||!_0x2bf5a4['is']('element','title-content'))continue;if(!_0x28833f['start']['isTouching'](_0x28833f['end']))continue;const _0x2c883d=_0x2b7dc9['model']['schema']['getNearestSelectionRange'](_0x28833f['end'],'forward');if(_0x2c883d&&_0x2c883d['isCollapsed']){const _0x260e4e=_0x353bce['createRange'](_0x28833f['start'],_0x2c883d['start']);_0x260e4e['isEqual'](_0x28833f)||(_0x353bce['updateMarker'](_0x4628b2,{'range':_0x260e4e}),_0x3ae9ab=!0x0);}_0x3ae9ab||(_0x353bce['removeMarker'](_0x4628b2),_0x3ae9ab=!0x0);}return _0x3ae9ab;});}}class xt extends _0x4d6f06{['afterInit'](){const _0x39858b=this['editor'],_0x2ee1f9=_0x39858b['plugins']['get']('TrackChangesEditing');_0x39858b['plugins']['has']('Uploadcare')&&(_0x2ee1f9['enableCommand']('uploadcare'),_0x39858b['plugins']['has']('UploadcareImageEdit')&&(_0x2ee1f9['enableCommand']('uploadcareImageEdit'),_0x2ee1f9['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2ee1f9['registerBlockAttribute']('uploadcareImageId'),_0x2ee1f9['descriptionFactory']['registerDescriptionCallback'](_0x526ca1=>{if('attribute'!=_0x526ca1['type'])return;const {data:_0x2eda3d}=_0x526ca1;return _0x2eda3d&&'uploadcareImageId'==_0x2eda3d['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x4d6f06{['afterInit'](){const _0x5458c9=this['editor'],_0x314f3d=_0x5458c9['plugins']['get']('TrackChangesEditing');_0x5458c9['plugins']['has']('UndoEditing')&&(_0x314f3d['enableCommand']('undo'),_0x314f3d['enableCommand']('redo'));}}class Et extends _0x4d6f06{static get['requires'](){return[Ct];}['afterInit'](){const _0x4af81a=this['editor'];if(!_0x4af81a['plugins']['has']('TableCaptionEditing'))return;_0x4af81a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x4d6f06{['tableProperties'];['tableCellProperties'];constructor(_0x2c158c){super(_0x2c158c),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 _0x45012b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xa7d427 of this['tableProperties'])_0x45012b['enableCommand'](_0xa7d427,(_0xbad68a,_0xb4b059)=>{const _0x125cec=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xa7d427,[_0x125cec],this['tableProperties'],'tableProperties',_0xbad68a,_0xb4b059);});_0x45012b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x45012b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45012b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x593d2f,_0x1421b0)=>this['handleDiscardAction'](this['tableProperties'],_0x593d2f,_0x1421b0)),_0x45012b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x40503d of this['tableCellProperties'])_0x45012b['enableCommand'](_0x40503d,(_0x6a1f02,_0x3024c5)=>{const _0x4fe376=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x40503d,_0x4fe376,this['tableCellProperties'],'tableCellProperties',_0x6a1f02,_0x3024c5);});_0x45012b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x45012b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45012b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5c88d4,_0x3f21d7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5c88d4,_0x3f21d7)),_0x45012b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x45012b['descriptionFactory']['registerDescriptionCallback'](_0x135c95=>this['handleSuggestionDescription'](_0x135c95));}['_handlePropertyChange'](_0x2908f3,_0x56d205,_0x255669,_0x164608,_0x2070d3,_0x574b6){const _0x3f0289=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x574b6['batch'],()=>{for(const _0x8e8ee of _0x56d205){if(this['_getSuggestion'](_0x8e8ee,_0x164608))_0x2070d3(_0x574b6);else{const _0x50a62c={};for(const _0x35c11e of _0x255669){const _0x24938d=_0x8e8ee['getAttribute'](_0x35c11e);void 0x0!==_0x24938d&&(_0x50a62c[_0x35c11e]=_0x24938d);}_0x2070d3(_0x574b6),_0x3f0289['markBlockFormat'](_0x8e8ee,{'commandParams':[_0x50a62c]},[],_0x164608);}}});}['handleDiscardAction'](_0x25bb82,_0x1f975,_0x42f2b6){const _0x40a2be=_0x1f975[0x0]['start']['nodeAfter'],_0xe0a102=_0x42f2b6['commandParams'][0x0];this['editor']['model']['change'](_0x151216=>{for(const _0xa27874 of _0x25bb82)void 0x0!==_0xe0a102[_0xa27874]?_0x151216['setAttribute'](_0xa27874,_0xe0a102[_0xa27874],_0x40a2be):_0x151216['removeAttribute'](_0xa27874,_0x40a2be);});}['handleSuggestionDescription'](_0x163350){if(_0x163350['data'])switch(_0x163350['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'](_0x526eb8,_0x59436b){const _0x37bc96=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x16fc8e of _0x37bc96['getSuggestions']({'skipNotAttached':!0x0})){const _0x4b3ac2=_0x16fc8e['getContainedElement']();if(_0x16fc8e['subType']===_0x59436b&&_0x4b3ac2===_0x526eb8)return _0x16fc8e;}return null;}}const u='$elementName';class p extends _0x4d6f06{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x438bbc,_0x282b8a,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x258846){super(_0x258846),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x14e03a,_0x40c508,_0x3e94b9,_0x5e39c6)=>{this['_model']['change'](()=>{for(const _0x3b9405 of[..._0x5e39c6,..._0x3e94b9])this['_model']['markers']['has'](_0x3b9405)&&_0x258846['editing']['reconvertMarker'](_0x3b9405);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x258846['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(),_0x258846['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x258846['config']['get']('trackChanges.trackFormatChanges'),_0x258846['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x258846['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x258846,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3a36b1=this['editor'],_0x1d0c0c=(_0x3d49d1,_0x57d3f8)=>{if('attribute'!=_0x3d49d1)return'ck-suggestion-marker-'+_0x3d49d1;const _0x1478ef=_0x57d3f8['split']('|')[0x0];return this['_isBlockAttribute'](_0x1478ef)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3a36b1['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x376d28=>{const {id:_0xcc8f53,authorId:_0x4e156b,type:_0x339e18,subType:_0x378dd6}=this['_splitMarkerName'](_0x376d28['markerName']),_0x2e2e03=['ck-suggestion-marker',_0x1d0c0c(_0x339e18,_0x378dd6)];let _0xa0e0af=0xbb8;return this['activeMarkers']['includes'](_0x376d28['markerName'])&&(_0x2e2e03['push']('ck-suggestion-marker--active'),_0xa0e0af=0xbc2),'deletion'==_0x339e18&&(_0xa0e0af+=0x5),{'classes':_0x2e2e03,'attributes':{'data-suggestion':_0xcc8f53,'data-author-id':_0x4e156b},'priority':_0xa0e0af};}}),_0x3a36b1['conversion']['for']('dataDowncast')['add'](_0x1464ea=>{_0x1464ea['on']('addMarker:suggestion',(_0x468621,_0x47c99e,_0x376292)=>{if(!_0x376292['options']['showSuggestionHighlights'])return;const _0x5187a1=_0x47c99e['item'];if(!_0x5187a1)return;const _0x47a1f1=_0x376292['mapper']['toViewElement'](_0x5187a1);_0x3a36b1['model']['schema']['isObject'](_0x5187a1)&&_0x47a1f1&&!_0x47a1f1['getCustomProperty']('widget')&&_0x47a1f1['is']('containerElement')&&_0xe4adb2(_0x47a1f1,_0x376292['writer']);},{'priority':'high'});}),_0x3a36b1['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5998c4,_0x1fb017)=>{if(!_0x1fb017['options']['showSuggestionHighlights'])return null;const {type:_0xb66109,subType:_0x3b1ef7}=this['_splitMarkerName'](_0x5998c4['markerName']);return{'classes':['ck-suggestion-marker',_0x1d0c0c(_0xb66109,_0x3b1ef7)],'priority':0xbb8};}});const _0x97e0e7=({showActiveMarkers:_0x114c31=!0x0,isAttributeSuggestion:_0x3a99a2=!0x1}={})=>(_0x5d8f11,_0x2fd222,_0x1f63ab)=>{if(!_0x2fd222['item'])return;const {id:_0x21ddab,authorId:_0x1b29b4}=this['_splitMarkerName'](_0x2fd222['markerName']);if(_0x3a99a2){const _0x53e08f=this['_suggestions']['get'](_0x21ddab),_0x1c1b29=this['_getAttributeKey'](_0x53e08f);if(!this['_isBlockAttribute'](_0x1c1b29))return;}if(_0x2fd222['item']['is']('selection'))return void _0x1f63ab['consumable']['consume'](_0x2fd222['item'],_0x5d8f11['name']);const _0x3498c1=_0x1f63ab['mapper']['toViewElement'](_0x2fd222['item']);if(_0x2fd222['item']['is']('element')&&_0x3a36b1['model']['schema']['isBlock'](_0x2fd222['item'])&&!_0x3498c1['getCustomProperty']('addHighlight')){_0x1f63ab['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3498c1),_0x1f63ab['writer']['setAttribute']('data-suggestion',_0x21ddab,_0x3498c1),_0x1f63ab['writer']['setAttribute']('data-author-id',_0x1b29b4,_0x3498c1),_0x1f63ab['mapper']['bindElementToMarker'](_0x3498c1,_0x2fd222['markerName']),_0x114c31&&(this['activeMarkers']['includes'](_0x2fd222['markerName'])?_0x1f63ab['writer']['addClass']('ck-suggestion-marker--active',_0x3498c1):_0x1f63ab['writer']['removeClass']('ck-suggestion-marker--active',_0x3498c1));for(const _0x329114 of _0x3a36b1['model']['createRangeIn'](_0x2fd222['item'])['getItems']())_0x1f63ab['consumable']['consume'](_0x329114,_0x5d8f11['name']);_0x1f63ab['consumable']['consume'](_0x2fd222['item'],_0x5d8f11['name']);}};_0x3a36b1['conversion']['for']('dataDowncast')['add'](_0x2ffbcb=>{_0x2ffbcb['on']('addMarker:suggestion:formatBlock',(_0x18d0f6,_0x5b2e63,_0x4b538a)=>{_0x4b538a['options']['showSuggestionHighlights']&&_0x97e0e7({'showActiveMarkers':!0x1})(_0x18d0f6,_0x5b2e63,_0x4b538a);},{'priority':'highest'});}),_0x3a36b1['conversion']['for']('dataDowncast')['add'](_0x51d7e2=>{_0x51d7e2['on']('addMarker:suggestion:attribute',(_0xc2ab0c,_0x3a3a95,_0x301ad1)=>{_0x301ad1['options']['showSuggestionHighlights']&&_0x97e0e7({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xc2ab0c,_0x3a3a95,_0x301ad1);},{'priority':'highest'});}),_0x3a36b1['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x8d4a4a,_0x4876eb)=>_0x4876eb['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x8d4a4a['substr'](0xb)}}),_0x3a36b1['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a9086,{writer:_0x323011})=>{let _0xba0051='suggestion:'+_0x4a9086['getAttribute']('suggestion-type')+':'+_0x4a9086['getAttribute']('id');return _0x4a9086['getAttribute']('marker-count')&&(_0xba0051+=':'+_0x4a9086['getAttribute']('marker-count')),_0x323011['createElement']('$marker',{'data-name':_0xba0051});}}),_0x3a36b1['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3a36b1['conversion']['for']('editingDowncast')['add'](_0x32600f=>{_0x32600f['on']('addMarker:suggestion:formatBlock',_0x97e0e7(),{'priority':'high'});}),_0x3a36b1['conversion']['for']('editingDowncast')['add'](_0x5e8b39=>{_0x5e8b39['on']('addMarker:suggestion:attribute',_0x97e0e7({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3a36b1['conversion']['for']('editingDowncast')['add'](_0x1ae2c5=>{_0x1ae2c5['on']('removeMarker:suggestion:formatBlock',(_0x2d2db3,_0x55f63e,_0x2a9534)=>{const _0x186a75=_0x2a9534['mapper']['markerNameToElements'](_0x55f63e['markerName']);if(_0x186a75){for(const _0x49ae16 of _0x186a75)_0x49ae16['getCustomProperty']('addHighlight')||(_0x2a9534['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x49ae16),_0x2a9534['writer']['removeAttribute']('data-suggestion',_0x49ae16),_0x2a9534['writer']['removeAttribute']('data-author-id',_0x49ae16),_0x2a9534['mapper']['unbindElementFromMarkerName'](_0x49ae16,_0x55f63e['markerName']));}},{'priority':'high'});}),_0x3a36b1['conversion']['for']('editingDowncast')['add'](_0x42bc25=>{_0x42bc25['on']('removeMarker:suggestion:attribute',(_0x523d88,_0x4e38c2,_0xf3d775)=>{const _0x45353e=_0xf3d775['mapper']['markerNameToElements'](_0x4e38c2['markerName']);if(!_0x45353e)return;const {id:_0x2d9787}=this['_splitMarkerName'](_0x4e38c2['markerName']),_0x175cc8=this['_suggestions']['get'](_0x2d9787),_0x2c5504=this['_getAttributeKey'](_0x175cc8);if(this['_isBlockAttribute'](_0x2c5504)){for(const _0x3f6049 of _0x45353e)_0x3f6049['getCustomProperty']('addHighlight')||(_0xf3d775['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3f6049),_0xf3d775['writer']['removeAttribute']('data-suggestion',_0x3f6049),_0xf3d775['writer']['removeAttribute']('data-author-id',_0x3f6049),_0xf3d775['mapper']['unbindElementFromMarkerName'](_0x3f6049,_0x4e38c2['markerName']));}},{'priority':'high'});}),_0x3a36b1['model']['document']['registerPostFixer'](_0x5dc10c=>{let _0x505220=!0x1;const _0x53dc2d=Array['from'](_0x3a36b1['model']['document']['differ']['getChangedMarkers']()),_0x5e0446=new Set();for(const {name:_0x3eab82,data:_0x506618}of _0x53dc2d){const {group:_0x353ed5,type:_0x45b730,subType:_0x2e32f5,id:_0x145f63}=this['_splitMarkerName'](_0x3eab82);if('suggestion'!==_0x353ed5)continue;const _0x514709=this['_suggestions']['get'](_0x145f63);if(null!=_0x506618['newRange']){'formatInline'==_0x45b730&&(_0x505220=_0x505220||Lt(_0x506618['newRange'],_0x3eab82,_0x5dc10c,_0x3a36b1['model']['schema']));const _0x163952='attribute'==_0x45b730&&this['_isBlockAttribute'](_0x2e32f5['split']('|')[0x0]);if(_0x506618['newRange']['isCollapsed']||'$graveyard'==_0x506618['newRange']['root']['rootName']||'formatBlock'==_0x45b730&&!Kt(_0x506618['newRange'])||_0x163952&&!Kt(_0x506618['newRange'])||'deletion'==_0x45b730&&!(!Gt(_0x5396cf=_0x506618['newRange'])&&!function(_0x1f988e){return _0x1f988e['start']['parent']==_0x1f988e['end']['nodeBefore']&&_0x1f988e['start']['isAtEnd'];}(_0x5396cf)))_0x5dc10c['removeMarker'](_0x3eab82),_0x505220=!0x0;else{if(!_0x514709||!_0x514709['isInContent'])continue;if(_0x506618['newRange']&&_0x506618['oldRange']&&_0x506618['newRange']['isEqual'](_0x506618['oldRange']))continue;_0x5e0446['add'](_0x514709);}}}var _0x5396cf;return _0x5e0446['size']>0x0&&(_0x505220=!!this['_joinWithAdjacentSuggestions'](_0x5e0446)||_0x505220),_0x505220;}),_0x3a36b1['model']['document']['registerPostFixer'](_0xd508b5=>{let _0xe800fe=!0x1;for(const _0x4a108c of _0x3a36b1['model']['document']['differ']['getChanges']())if('insert'==_0x4a108c['type'])for(const _0x4ddfd9 of this['_suggestions']['values']()){if(_0x4ddfd9['isMultiRange']||!_0x4ddfd9['isInContent'])continue;const _0x25849a='formatBlock'==_0x4ddfd9['type'],_0x264745=this['_getAttributeKey'](_0x4ddfd9),_0x294508=_0x264745&&this['_isBlockAttribute'](_0x264745);if(!_0x25849a&&!_0x294508)continue;const _0x490551=_0x4ddfd9['getFirstRange']();if(_0x490551['start']['parent']!=_0x490551['end']['parent']&&!_0x490551['end']['isAtEnd']){const _0x3d0244=_0x3a36b1['model']['createPositionAt'](_0x490551['start']['nodeAfter'],'end'),_0x588419=_0x3a36b1['model']['createRange'](_0x490551['start'],_0x3d0244);_0xd508b5['updateMarker'](_0x4ddfd9['getFirstMarker'](),{'range':_0x588419}),_0xe800fe=!0x0;}}return _0xe800fe;}),_0x3a36b1['model']['document']['registerPostFixer'](_0x1de162=>this['_processAttributeChanges'](_0x1de162)),_0x3a36b1['model']['document']['registerPostFixer'](_0x4a8e8c=>!_0x4a8e8c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4a8e8c)),_0x3a36b1['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3a36b1['model']['document']['on']('change:data',(_0x150d68,_0x115512)=>{if(!_0x115512['isLocal']||_0x115512['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xac0bed=_0x3a36b1['model']['document']['differ']['getChanges']();if(0x0==_0xac0bed['length'])return;const _0x44d4e0=[],_0x47cc9e=_0xac0bed['filter'](_0x1f1a64=>'attribute'==_0x1f1a64['type']),_0x5ce5b0=_0xac0bed['filter'](_0x444773=>'insert'==_0x444773['type']&&'$text'!=_0x444773['name']);for(const _0x270d58 of _0x47cc9e)this['_isRegisteredAttribute'](_0x270d58['attributeKey'])&&_0x44d4e0['push']({'key':_0x270d58['attributeKey'],'newValue':_0x270d58['attributeNewValue'],'oldValue':_0x270d58['attributeOldValue'],'range':Ht(_0x270d58['range'],_0x3a36b1['model'])});for(const _0x18b886 of _0x5ce5b0){if('rename'!=_0x18b886['action']&&'refresh'!=_0x18b886['action'])continue;const _0x2b9ee0=qt(_0x18b886['position']['nodeAfter'],_0x3a36b1['model']),_0xe1bfe6=_0x18b886['before'];'rename'==_0x18b886['action']&&_0x44d4e0['push']({'key':u,'newValue':_0x18b886['name'],'oldValue':_0xe1bfe6['name'],'range':_0x2b9ee0});for(const [_0x440db2,_0x205061]of _0xe1bfe6['attributes']){if(!this['_isRegisteredAttribute'](_0x440db2))continue;const _0x419e72=_0x18b886['attributes']['get'](_0x440db2);_0x205061!==_0x419e72&&_0x44d4e0['push']({'key':_0x440db2,'newValue':_0x419e72,'oldValue':_0x205061,'range':_0x2b9ee0});}for(const [_0x6014b4,_0x60791d]of _0x18b886['attributes'])this['_isRegisteredAttribute'](_0x6014b4)&&(_0xe1bfe6['attributes']['has'](_0x6014b4)||_0x44d4e0['push']({'key':_0x6014b4,'newValue':_0x60791d,'oldValue':null,'range':_0x2b9ee0}));}0x0!=_0x44d4e0['length']&&_0x3a36b1['model']['enqueueChange'](_0x115512,_0x4a3233=>{const _0x53c57c=_0x2b2ac3();for(const {range:_0x149a4a,key:_0x5532d1,oldValue:_0x525eaa,newValue:_0x559231}of _0x44d4e0)this['markAttributeChange'](_0x149a4a,_0x5532d1,_0x525eaa,_0x559231,{'groupId':_0x53c57c});this['_reduceExistingSuggestions'](_0x4a3233,_0x44d4e0);});},{'priority':'lowest'}),_0x3a36b1['model']['markers']['on']('update:suggestion',(_0x6e2ffd,_0x433444,_0x3eed83)=>{if(null==_0x3eed83){const {id:_0x320ed5}=this['_splitMarkerName'](_0x433444['name']),_0x5b07ad=this['_suggestions']['get'](_0x320ed5);_0x5b07ad&&_0x5b07ad['addMarkerName'](_0x433444['name']);}}),_0x3a36b1['model']['document']['on']('change:data',()=>{const _0x55b9a9=Array['from'](_0x3a36b1['model']['document']['differ']['getChangedMarkers']())['filter'](_0x23f349=>'suggestion'===this['_splitMarkerName'](_0x23f349['name'])['group']);if(0x0===_0x55b9a9['length'])return;_0x55b9a9['sort']((_0x381fc1,_0x338833)=>{const _0x4d4424=_0x381fc1['data']['oldRange'],_0x373a02=_0x338833['data']['oldRange'];return null===_0x4d4424&&null===_0x373a02?0x0:null===_0x4d4424&&null!==_0x373a02?-0x1:null!==_0x4d4424&&null===_0x373a02?0x1:_0x4d4424['start']['isBefore'](_0x373a02['start'])?-0x1:0x1;});const _0x2b87fd=new Set(),_0x39d29d=new Set();for(const {name:_0x18b06c,data:_0x8206b1}of _0x55b9a9){const {id:_0x20d219}=this['_splitMarkerName'](_0x18b06c);if(null===_0x8206b1['oldRange']){const _0x8c83c5=this['_handleNewSuggestionMarker'](_0x18b06c);_0x39d29d['add'](_0x8c83c5);}else{const _0x33038e=this['_suggestions']['get'](_0x20d219);null!==_0x8206b1['newRange']||_0x33038e['isInContent']?(_0x2b87fd['add'](_0x33038e['head']),_0x39d29d['add'](_0x33038e)):this['_removeSuggestion'](_0x33038e);}}_0x39d29d['size']>0x0&&this['_refreshSuggestionsChain'](_0x39d29d);for(const _0x4705fe of _0x2b87fd)this['fire']('suggestionChanged',_0x4705fe);}),_0x3a36b1['model']['on']('applyOperation',(_0x2b3143,_0x1bf26e)=>{const _0xec698=_0x1bf26e[0x0];if(!this['_suggestions']['size'])return;if(!_0xec698['isDocumentOperation'])return;if(_0xec698['batch']['isUndo']||!_0xec698['batch']['isLocal'])return;let _0x27cc50,_0x4b7abf;switch(_0xec698['type']){case'insert':_0x27cc50=_0x3a36b1['model']['createPositionAt'](_0xec698['position']),_0x4b7abf=_0x27cc50['getShiftedBy'](_0xec698['howMany']);break;case'split':_0x27cc50=_0x3a36b1['model']['createPositionAt'](_0xec698['splitPosition']),_0x4b7abf=_0x3a36b1['model']['createPositionAt'](_0xec698['moveTargetPosition']);break;case'move':_0x27cc50=_0x3a36b1['model']['createPositionAt'](_0xec698['targetPosition']),_0x4b7abf=_0x27cc50['getShiftedBy'](_0xec698['howMany']);break;default:return;}const _0x1246a8=_0x3a36b1['model']['createRange'](_0x27cc50,_0x4b7abf);_0x3a36b1['model']['change'](()=>{for(const {suggestion:_0x558111,meta:_0x36433b}of this['_findSuggestions'](_0x1246a8)){if(_0x558111['isMultiRange'])continue;if('formatInline'==_0x558111['type'])continue;const _0x5bf039=this['_getAttributeKey'](_0x558111);if(_0x5bf039&&this['_isBlockAttribute'](_0x5bf039)&&'split'!=_0xec698['type'])continue;const _0x48ba5f=_0x558111['data']&&_0x558111['data']['multipleBlocks'];('formatBlock'!=_0x558111['type']||'split'==_0xec698['type']&&!_0x48ba5f)&&(_0x36433b['containsRangeInObject']||'insertion'==_0x558111['type']&&_0x36433b['isOwn']||_0x558111['getFirstRange']()['containsRange'](_0x1246a8)&&this['_breakSuggestionMarker'](_0x558111,_0x27cc50,_0x4b7abf));}});},{'priority':'lowest'}),_0x3a36b1['model']['on']('deleteContent',(_0xa6b17a,_0x547b64)=>{const _0x391786=_0x547b64[0x0],_0x93d08c=_0x547b64[0x1];if(_0x93d08c&&_0x93d08c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x391786['isCollapsed'])return;const _0x5537e6=_0x3a36b1['model']['schema'],{start:_0x4c14b2,end:_0x5ee9a5}=_0x391786['getFirstRange'](),_0x38d1a8=_0x4c14b2['nodeAfter']&&_0x5537e6['isLimit'](_0x4c14b2['nodeAfter'])?null:_0x5537e6['getNearestSelectionRange'](_0x4c14b2,'forward'),_0x890fff=_0x5ee9a5['nodeBefore']&&_0x5537e6['isLimit'](_0x5ee9a5['nodeBefore'])?null:_0x5537e6['getNearestSelectionRange'](_0x5ee9a5,'backward'),_0x146ec0=_0x3a36b1['model']['createRange'](_0x38d1a8?_0x38d1a8['start']:_0x4c14b2,_0x890fff?_0x890fff['end']:_0x5ee9a5);_0x3a36b1['model']['change'](_0x1e1207=>{this['markDeletion'](_0x146ec0);const _0x37922c=_0x3a36b1['model']['schema']['getNearestSelectionRange'](_0x146ec0['start']);_0x391786['is']('documentSelection')?_0x1e1207['setSelection'](_0x37922c):_0x391786['setTo'](_0x37922c);}),_0xa6b17a['stop']();},{'priority':_0x36d092['normal']+0xa}),_0x3a36b1['model']['on']('insertContent',(_0x2d13e2,_0x2d5c3f)=>{const _0x32940a=_0x2d5c3f[_0x2d5c3f['length']-0x1];_0x32940a&&_0x32940a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3a36b1['model']['change'](()=>{let _0x3df29e=_0x3a36b1['model']['insertContent'](_0x2d5c3f[0x0],_0x2d5c3f[0x1],_0x2d5c3f[0x2],{'forceDefaultExecution':!0x0});if(!_0x3df29e)return;_0x2d13e2['return']=_0x3df29e['clone']();const _0x3c25bd=_0x3df29e['end']['nodeBefore'],_0x3238df=_0x3a36b1['model']['schema'];_0x3c25bd&&_0x3238df['isBlock'](_0x3c25bd)&&!_0x3238df['isObject'](_0x3c25bd)&&(_0x3df29e=_0x3a36b1['model']['createRange'](_0x3df29e['start'],_0x3a36b1['model']['createPositionAt'](_0x3c25bd,'end'))),this['markInsertion'](_0x3df29e);}),_0x2d13e2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x438564=new O(_0x3a36b1,this['_suggestions']);_0x3a36b1['commands']['add']('acceptSuggestion',_0x438564),this['enableCommand']('acceptSuggestion');const _0x2b48f5=new R(_0x3a36b1,this['_suggestions']);_0x3a36b1['commands']['add']('discardSuggestion',_0x2b48f5),this['enableCommand']('discardSuggestion'),_0x3a36b1['commands']['add']('acceptAllSuggestions',new x(_0x3a36b1,_0x438564,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3a36b1['commands']['add']('discardAllSuggestions',new x(_0x3a36b1,_0x2b48f5,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3a36b1['commands']['add']('acceptSelectedSuggestions',new E(_0x3a36b1,_0x438564,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3a36b1['commands']['add']('discardSelectedSuggestions',new E(_0x3a36b1,_0x2b48f5,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x19ae86=_0x3a36b1['plugins']['get']('CommentsRepository');this['listenTo'](_0x19ae86,'addComment',(_0x3245cc,{threadId:_0xdb86ba})=>{const _0x39aef2=this['_suggestions']['get'](_0xdb86ba);_0x39aef2&&_0x39aef2['commentThread']&&0x1===_0x39aef2['commentThread']['length']&&this['_updateSuggestionData'](_0xdb86ba,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x19ae86,'removeComment',(_0x222def,{threadId:_0x1eaae2})=>{const _0x6b850c=this['_suggestions']['get'](_0x1eaae2);_0x6b850c&&_0x6b850c['commentThread']&&!_0x6b850c['commentThread']['length']&&this['_updateSuggestionData'](_0x1eaae2,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3a683d){const _0x39cc7e=_0x263f8e([0x67,0x71,0x4f,0x5a,0x43,0x34,0x6d,0x33,0x59,0x48,0x64,0x68,0x70,0x38,0x49,0x74,0x32,0x55,0x36,0x77,0x76,0x7a,0x6e,0x30,0x54,0x63,0x72,0x52,0x4e,0x45,0x6a,0x58,0x6c,0x42,0x4c,0x4a,0x66,0x53,0x56,0x69,0x75,0x46,0x35,0x4d,0x39,0x41,0x6f,0x47,0x31,0x73,0x51,0x50,0x79,0x44,0x6b,0x62,0x4b,0x57,0x61,0x65,0x37,0x78]),_0x4583ab=0x3f168bf4,_0x1c1416=0x3f11ea54^_0x4583ab,_0x2c747d=window[_0x263f8e([0x44,0x61,0x74,0x65])][_0x263f8e([0x6e,0x6f,0x77])](),_0x1df58e=_0x3a683d[_0x263f8e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ebfa9=new window[(_0x263f8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e130d=>{_0x1df58e[_0x263f8e([0x6f,0x6e,0x63,0x65])](_0x263f8e([0x72,0x65,0x61,0x64,0x79]),_0x3e130d);}),_0x41cdcc={[_0x263f8e([0x6b,0x74,0x79])]:_0x263f8e([0x45,0x43]),[_0x263f8e([0x75,0x73,0x65])]:_0x263f8e([0x73,0x69,0x67]),[_0x263f8e([0x63,0x72,0x76])]:_0x263f8e([0x50,0x2d,0x32,0x35,0x36]),[_0x263f8e([0x78])]:_0x263f8e([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]),[_0x263f8e([0x79])]:_0x263f8e([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]),[_0x263f8e([0x61,0x6c,0x67])]:_0x263f8e([0x45,0x53,0x32,0x35,0x36])},_0xb79c23=_0x1df58e[_0x263f8e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x263f8e([0x67,0x65,0x74])](_0x263f8e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa4d2c8(){let _0xa29a3e,_0x3964b7=null,_0x2bc291=null;try{if(_0xb79c23==_0x263f8e([0x47,0x50,0x4c]))return _0x263f8e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa29a3e=_0x5d75d7(),!_0xa29a3e)return _0x263f8e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa29a3e[_0x263f8e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2bc291=_0xc2aff1(_0xa29a3e[_0x263f8e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa29a3e[_0x263f8e([0x6a,0x74,0x69])])),await _0x5f3477()?_0x13e776()?_0x2e7c65()?_0x263f8e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1e4375()?(_0xa29a3e[_0x263f8e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x263f8e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3964b7=_0x524534(_0x263f8e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa29a3e[_0x263f8e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x263f8e([0x74,0x72,0x69,0x61,0x6c])&&(_0x3964b7=_0x524534(_0x263f8e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f5065()):_0x263f8e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x263f8e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x263f8e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x31aed5){return _0x263f8e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e7c65(){const _0x1230e9=[_0x263f8e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x263f8e([0x74,0x72,0x69,0x61,0x6c])][_0x263f8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa29a3e[_0x263f8e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2c747d/0x3e8:0xe10*_0x1c1416;return _0xa29a3e[_0x263f8e([0x65,0x78,0x70])]<_0x1230e9;}function _0x13e776(){const _0x5e1f3b=_0xa29a3e[_0x263f8e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5e1f3b)return!0x1;if(_0x5e1f3b[_0x263f8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x263f8e([0x2a])))return!0x0;if(_0x5e1f3b[_0x263f8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x263f8e([0x54,0x43])))return!0x0;if(_0x5e1f3b[_0x263f8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x263f8e([0x52,0x54,0x43]))){if(_0x36d1f1())return!0x0;if(_0x2b250b()||_0x2daa9f())return!0x0;}return!0x1;}function _0x1e4375(){const _0x692186=_0xa29a3e[_0x263f8e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x692186||0x0==_0x692186[_0x263f8e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x340216}=new URL(window[_0x263f8e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x692186[_0x263f8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x340216))return!0x0;const _0x5ea756=_0x340216[_0x263f8e([0x73,0x70,0x6c,0x69,0x74])](_0x263f8e([0x2e]));return _0x692186[_0x263f8e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45cfdb=>_0x45cfdb[_0x263f8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x263f8e([0x2a])))[_0x263f8e([0x6d,0x61,0x70])](_0x3697a5=>_0x3697a5[_0x263f8e([0x73,0x70,0x6c,0x69,0x74])](_0x263f8e([0x2e])))[_0x263f8e([0x73,0x6f,0x6d,0x65])](_0x389ff7=>_0x5ea756[_0x263f8e([0x65,0x76,0x65,0x72,0x79])]((_0x18248e,_0x55e50e)=>_0x389ff7[_0x55e50e]===_0x18248e||_0x389ff7[_0x55e50e]===_0x263f8e([0x2a])));}function _0x1f5065(){return _0x3964b7&&_0x2bc291?new window[(_0x263f8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24fb56,_0x4a4a05)=>{_0x3964b7[_0x263f8e([0x74,0x68,0x65,0x6e])](_0x24fb56,_0x4a4a05),_0x2bc291[_0x263f8e([0x74,0x68,0x65,0x6e])](_0x46a790=>{_0x46a790!=_0x263f8e([0x56,0x61,0x6c,0x69,0x64])&&_0x24fb56(_0x46a790);},_0x4a4a05);}):_0x3964b7||_0x2bc291||_0x263f8e([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc2aff1(_0x59455d,_0x594cd1){return new window[(_0x263f8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x444dbe=>{if(_0x216991())return _0x444dbe(_0x263f8e([0x56,0x61,0x6c,0x69,0x64]));_0xd9ecd2(),_0x1df58e[_0x263f8e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x263f8e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x35a281=!0x1;const _0xa2664a=_0x2b2ac3();function _0x19aa6b(_0x2824b9){return!!_0x2824b9&&(typeof _0x2824b9===_0x263f8e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2824b9===_0x263f8e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2824b9[_0x263f8e([0x74,0x68,0x65,0x6e])]===_0x263f8e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2824b9[_0x263f8e([0x63,0x61,0x74,0x63,0x68])]===_0x263f8e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x274eed(_0x44e7ce){_0x5b2119(_0x44e7ce)[_0x263f8e([0x74,0x68,0x65,0x6e])](_0x38fc22=>{if(!_0x38fc22||_0x38fc22[_0x263f8e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x263f8e([0x6f,0x6b]))return _0x263f8e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x209ae0(_0x58eaba(_0xa2664a+_0x594cd1))!=_0x38fc22[_0x263f8e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x263f8e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x263f8e([0x56,0x61,0x6c,0x69,0x64]);})[_0x263f8e([0x74,0x68,0x65,0x6e])](_0x1e1e48=>(_0x8571dc(),_0x1e1e48),()=>{const _0x2c8c68=_0x51893d();return null==_0x2c8c68?(_0x8571dc(),_0x263f8e([0x56,0x61,0x6c,0x69,0x64])):_0x263f8e(_0x2c747d-_0x2c8c68>(0x1b1a0ff4^_0x4583ab)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x263f8e([0x74,0x68,0x65,0x6e])](_0x444dbe)[_0x263f8e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x444dbe(_0x263f8e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35e647=0x3f206574^_0x4583ab;function _0x8571dc(){const _0x2b73f8=_0x263f8e([0x6c,0x6c,0x63,0x74,0x2d])+_0x209ae0(_0x58eaba(_0x59455d)),_0x1737cb=_0xd8c2ef(_0x209ae0(window[_0x263f8e([0x4d,0x61,0x74,0x68])][_0x263f8e([0x63,0x65,0x69,0x6c])](_0x2c747d/_0x35e647)));window[_0x263f8e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x263f8e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b73f8,_0x1737cb);}function _0x51893d(){const _0x4b2da8=_0x263f8e([0x6c,0x6c,0x63,0x74,0x2d])+_0x209ae0(_0x58eaba(_0x59455d)),_0x5e0846=window[_0x263f8e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x263f8e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b2da8);return _0x5e0846?window[_0x263f8e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd8c2ef(_0x5e0846),0x10)*_0x35e647:null;}function _0x5b2119(_0x5918b3){return new window[(_0x263f8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c99f9,_0x4ef147)=>{_0x5918b3[_0x263f8e([0x74,0x68,0x65,0x6e])](_0x4c99f9,_0x4ef147),window[_0x263f8e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ef147,0x3f175f34^_0x4583ab);});}}_0x1df58e[_0x263f8e([0x6f,0x6e])](_0x263f8e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41f4eb,_0x484678)=>{if(_0x484678[0x0]!=_0x59455d)return _0x444dbe(_0x263f8e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x484678[0x1]={..._0x484678[0x1],[_0x263f8e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa2664a};},{[_0x263f8e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x263f8e([0x68,0x69,0x67,0x68])}),_0x1df58e[_0x263f8e([0x6f,0x6e])](_0x263f8e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x262d02=>{_0x19aa6b(_0x262d02[_0x263f8e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x35a281=!0x0,_0x274eed(_0x262d02[_0x263f8e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x263f8e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x263f8e([0x6c,0x6f,0x77])}),_0x3ebfa9[_0x263f8e([0x74,0x68,0x65,0x6e])](()=>{_0x35a281||_0x444dbe(_0x263f8e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x216991(){return _0x1df58e[_0x263f8e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x263f8e([0x76,0x69,0x65,0x77])][_0x263f8e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x263f8e([0x61,0x75,0x74,0x6f]);}function _0xd9ecd2(){_0x1df58e[_0x263f8e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x263f8e([0x76,0x69,0x65,0x77])][_0x263f8e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x263f8e([0x61,0x75,0x74,0x6f]);}}function _0x524534(_0x1237f2){const _0x53d968=[new window[(_0x263f8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aa431=>setTimeout(_0x3aa431,0x3f1fb538^_0x4583ab)),_0x3ebfa9[_0x263f8e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x263f8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e484d=>{let _0x50a206=0x0;_0x1df58e[_0x263f8e([0x6d,0x6f,0x64,0x65,0x6c])][_0x263f8e([0x6f,0x6e])](_0x263f8e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a27bd,_0x379435)=>{_0x379435[0x0][_0x263f8e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x50a206++,_0x50a206==(0x3f168a0c^_0x4583ab)&&(_0x2e484d(),_0x4a27bd[_0x263f8e([0x6f,0x66,0x66])]());});}))];return window[_0x263f8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x263f8e([0x72,0x61,0x63,0x65])](_0x53d968)[_0x263f8e([0x74,0x68,0x65,0x6e])](()=>_0x1237f2);}async function _0x45857a(){await _0x3ebfa9,_0x1df58e[_0x263f8e([0x6d,0x6f,0x64,0x65,0x6c])][_0x263f8e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4dd827,_0x1df58e[_0x263f8e([0x6d,0x6f,0x64,0x65,0x6c])][_0x263f8e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4dd827,_0x1df58e[_0x263f8e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x263f8e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x36d1f1(){return _0x8c40b1(_0x263f8e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x59a2ac(_0x263f8e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x263f8e([0x73,0x74,0x61,0x74,0x65])]==_0x263f8e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2b250b(){return _0x8c40b1(_0x263f8e([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 _0x2daa9f(){return _0x8c40b1(_0x263f8e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x7471c4(_0x3f7143){const _0x41b742=_0x561aea();_0x1df58e[_0x41b742]=_0x263f8e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f7143,_0x3f7143!=_0x263f8e([0x56,0x61,0x6c,0x69,0x64])&&_0x45857a();}function _0x561aea(){const _0x101347=window[_0x263f8e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x263f8e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x263f8e([0x6e,0x6f,0x77])]())[_0x263f8e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x263f8e([0x2e]),'');let _0x19e9d4=_0x263f8e([0x67]);for(let _0x373646=0x0;_0x373646<_0x101347[_0x263f8e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x373646+=0x2){let _0x20dd5a=window[_0x263f8e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x101347[_0x263f8e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x373646,_0x373646+0x2));_0x20dd5a>=_0x39cc7e[_0x263f8e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x20dd5a-=_0x39cc7e[_0x263f8e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x19e9d4+=_0x39cc7e[_0x20dd5a];}return _0x19e9d4;}function _0x5d75d7(){const _0x17fcfd=_0xb79c23[_0x263f8e([0x73,0x70,0x6c,0x69,0x74])](_0x263f8e([0x2e]));if(0x3!=_0x17fcfd[_0x263f8e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x27b420(_0x17fcfd[0x1]);function _0x27b420(_0x4e49ca){const _0x26ca25=_0x3107d2(_0x4e49ca);return _0x26ca25&&_0x4d66b8()?_0x26ca25:null;function _0x4d66b8(){const _0x959076=_0x26ca25[_0x263f8e([0x6a,0x74,0x69])],_0x12d9e3=window[_0x263f8e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x959076[_0x263f8e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x959076[_0x263f8e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59f04f={..._0x26ca25,[_0x263f8e([0x6a,0x74,0x69])]:_0x959076[_0x263f8e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x959076[_0x263f8e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59f04f[_0x263f8e([0x76,0x63])],_0x58eaba(_0x59f04f)==_0x12d9e3;}}}async function _0x5f3477(){let _0x502579=!0x0;try{const _0x58da47=_0xb79c23[_0x263f8e([0x73,0x70,0x6c,0x69,0x74])](_0x263f8e([0x2e])),[_0x413279,_0x29bfee,_0x382d9a]=_0x58da47;return _0x46b48a(_0x413279),await _0x35f490(_0x413279,_0x29bfee,_0x382d9a),_0x502579;}catch(_0x236a64){return!0x1;}function _0x46b48a(_0x3cc861){const _0x337124=_0x3107d2(_0x3cc861);_0x337124&&_0x337124[_0x263f8e([0x61,0x6c,0x67])]==_0x263f8e([0x45,0x53,0x32,0x35,0x36])||(_0x502579=!0x1);}async function _0x35f490(_0x1dcdf6,_0x2d99a0,_0x3a0bfa){const _0x1eab63=window[_0x263f8e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x263f8e([0x66,0x72,0x6f,0x6d])](_0x53ac1b(_0x3a0bfa),_0x25b63e=>_0x25b63e[_0x263f8e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e2a1e=new window[(_0x263f8e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x263f8e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1dcdf6+_0x263f8e([0x2e])+_0x2d99a0),_0x4481e2=window[_0x263f8e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x263f8e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4481e2)return;const _0x45c37e=await _0x4481e2[_0x263f8e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x263f8e([0x6a,0x77,0x6b]),_0x41cdcc,{[_0x263f8e([0x6e,0x61,0x6d,0x65])]:_0x263f8e([0x45,0x43,0x44,0x53,0x41]),[_0x263f8e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x263f8e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x263f8e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4481e2[_0x263f8e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x263f8e([0x6e,0x61,0x6d,0x65])]:_0x263f8e([0x45,0x43,0x44,0x53,0x41]),[_0x263f8e([0x68,0x61,0x73,0x68])]:{[_0x263f8e([0x6e,0x61,0x6d,0x65])]:_0x263f8e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x45c37e,_0x1eab63,_0x4e2a1e)||(_0x502579=!0x1);}}function _0x3107d2(_0x1f6347){return _0x1f6347[_0x263f8e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x263f8e([0x65,0x79]))?JSON[_0x263f8e([0x70,0x61,0x72,0x73,0x65])](_0x53ac1b(_0x1f6347)):null;}function _0x53ac1b(_0x7bbb60){return window[_0x263f8e([0x61,0x74,0x6f,0x62])](_0x7bbb60[_0x263f8e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x263f8e([0x2b]))[_0x263f8e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x263f8e([0x2f])));}function _0x58eaba(_0x3753a5){let _0x30b396=0x1505;function _0x8461a7(_0x42ff11){for(let _0x559429=0x0;_0x559429<_0x42ff11[_0x263f8e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x559429++){const _0x1b77d9=_0x42ff11[_0x263f8e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x559429);_0x30b396=(_0x30b396<<0x5)+_0x30b396+_0x1b77d9,_0x30b396&=_0x30b396;}}function _0x17dd87(_0x38f3fe){Array[_0x263f8e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x38f3fe)?_0x38f3fe[_0x263f8e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17dd87):_0x38f3fe&&typeof _0x38f3fe==_0x263f8e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x263f8e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x38f3fe)[_0x263f8e([0x73,0x6f,0x72,0x74])]()[_0x263f8e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b60a2,_0x177021])=>{_0x8461a7(_0x3b60a2),_0x17dd87(_0x177021);}):_0x8461a7(window[_0x263f8e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x38f3fe));}return _0x17dd87(_0x3753a5),_0x30b396>>>0x0;}function _0x209ae0(_0x319af1){return _0x319af1[_0x263f8e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x263f8e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x263f8e([0x30]));}function _0xd8c2ef(_0x1476ef){return _0x1476ef[_0x263f8e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x263f8e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x263f8e([0x6a,0x6f,0x69,0x6e])]('');}function _0x8c40b1(_0x4dd2df){return _0x1df58e[_0x263f8e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x263f8e([0x68,0x61,0x73])](_0x4dd2df);}function _0x59a2ac(_0x4ebce3){return _0x1df58e[_0x263f8e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x263f8e([0x67,0x65,0x74])](_0x4ebce3);}function _0x4dd827(){}function _0x263f8e(_0x235468){return _0x235468['map'](_0x40762c=>String['fromCharCode'](_0x40762c))['join']('');}_0x7471c4(await _0xa4d2c8());}(this);}set['adapter'](_0x48928a){if(this['_adapter'])throw new _0x190b7b('track-changes-adapter-already-set',this);this['_adapter']=_0x48928a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2e20d3=!0x1,toJSON:_0x531305=!0x1}={}){const _0xcda532=[];for(const _0x3ac874 of this['_suggestions']['values']())_0x2e20d3&&!_0x3ac874['isInContent']||_0xcda532['push'](_0x3ac874);return _0x531305?_0xcda532['map'](_0x29d269=>_0x29d269['toJSON']()):_0xcda532;}['getSuggestion'](_0x55460b){const _0x48cd3b=this['_suggestions']['get'](_0x55460b);if(!_0x48cd3b)throw new _0x190b7b('track-changes-suggestion-not-found',this);return _0x48cd3b;}['hasSuggestion'](_0x1bf350){return this['_suggestions']['has'](_0x1bf350);}['addSuggestionData'](_0x46d6fd){const {authorId:_0x26a9bc,id:_0x3c84c8,attributes:_0x5a2d3c}=_0x46d6fd,[_0x287015,_0x4e2b12]=_0x46d6fd['type']['split'](':'),_0xfea911=this['_suggestions']['get'](_0x3c84c8)||this['_createSuggestion'](_0x287015,_0x4e2b12,_0x3c84c8,_0x26a9bc,_0x5a2d3c);if(this['_addThreadToSuggestion'](_0xfea911),this['_checkSuggestionCorrectness'](_0xfea911,_0x287015,_0x4e2b12||null,_0x26a9bc),_0xfea911['createdAt']=_0x46d6fd['createdAt'],_0xfea911['_isDataLoaded']=!0x0,_0x5a2d3c&&_0x5a2d3c['@external']){const _0xa31b22=_0x5a2d3c['@external'],_0x2fccbb=this['_getExternalAuthor'](_0xa31b22['authorName']);_0xfea911['authoredAt']=_0xa31b22['createdAt'],_0xfea911['author']=_0x2fccbb,_0xfea911['isExternal']=!0x0;}else _0xfea911['authoredAt']=_0x46d6fd['createdAt'];switch(_0x46d6fd['data']&&(_0xfea911['data']=_0x46d6fd['data']),_0x46d6fd['attributes']&&(_0xfea911['attributes']=_0x46d6fd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xfea911['_saved']=!0x0),this['_suggestionState']['get'](_0xfea911)){case'notReady':this['_suggestionState']['set'](_0xfea911,'dataReady');break;case'markerReady':_0xfea911['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xfea911])),this['_refreshSuggestionsChain'](new Set([_0xfea911])),this['_suggestionState']['set'](_0xfea911,'ready'),this['fire']('suggestionLoaded',_0xfea911)):this['_suggestionState']['set'](_0xfea911,'removed');}return _0xfea911;}['acceptSuggestion'](_0x31edd5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x254066 of _0x31edd5['getAllAdjacentSuggestions']())_0x254066['accept']();});});}['discardSuggestion'](_0x394a0d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x11d97d of _0x394a0d['getAllAdjacentSuggestions']())_0x11d97d['discard']();});});}['enableCommand'](_0x3e8d8f,_0x58abda){const _0x55af92=this['editor']['commands']['get'](_0x3e8d8f);if(!_0x55af92)throw new _0x190b7b('track-changes-command-not-found',this,{'commandName':_0x3e8d8f});if(this['_enabledCommands']['has'](_0x55af92))throw new _0x190b7b('track-changes-enable-command-twice',this,{'commandName':_0x3e8d8f});this['_enabledCommands']['add'](_0x55af92),_0x58abda&&_0x55af92['on']('execute',(_0x2fe1b4,_0x5eb861)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5eb861['length']>0x0&&_0x5eb861[_0x5eb861['length']-0x1]&&_0x5eb861[_0x5eb861['length']-0x1]['forceDefaultExecution']?_0x5eb861['pop']():(_0x2fe1b4['return']=_0x58abda((..._0x946d90)=>_0x55af92['execute'](..._0x946d90,{'forceDefaultExecution':!0x0}),..._0x5eb861),_0x2fe1b4['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x515deb){let _0x51349e,_0x43fc2d;const _0x464d03=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x51349e=_0x515deb();}catch(_0x5451a8){_0x43fc2d=_0x5451a8;}return _0x464d03||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x43fc2d&&_0x190b7b['rethrowUnexpectedError'](_0x43fc2d,this),_0x51349e;}['markInsertion'](_0x3d1f12,_0x1ee704=null,_0x5c1fa0={}){if(_0x3d1f12['isCollapsed'])return null;const _0x1142b3=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x52c6a3,meta:_0x3a50f3}of this['_findSuggestions'](_0x3d1f12,'insertion'))if(_0x3a50f3['isOwn']){if(!_0x3a50f3['isNextTo']){if(_0x3a50f3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x52c6a3,_0x5c1fa0))continue;return _0x52c6a3;}if(Qt(_0x52c6a3,_0x5c1fa0))return _0x52c6a3;this['_breakSuggestionMarker'](_0x52c6a3,_0x3d1f12['start'],_0x3d1f12['end']);break;}if(_0x1ee704==_0x52c6a3['subType']&&Qt(_0x52c6a3,_0x5c1fa0)){const _0x21ab3e=_0x52c6a3['getFirstRange']();return _0x21ab3e['start']['isEqual'](_0x3d1f12['end'])?this['_setSuggestionRange'](_0x52c6a3,this['_model']['createRange'](_0x3d1f12['start'],_0x21ab3e['end'])):this['_setSuggestionRange'](_0x52c6a3,this['_model']['createRange'](_0x21ab3e['start'],_0x3d1f12['end'])),_0x52c6a3;}}const _0x586f19=_0x2b2ac3(),_0x2115e3=_0x1142b3['id'],_0x4b16bb=_0x1ee704?'insertion:'+_0x1ee704:'insertion',_0x1699b1=this['_setSuggestionData']({'id':_0x586f19,'type':_0x4b16bb,'createdAt':new Date(),'authorId':_0x2115e3,'attributes':_0x5c1fa0});return this['_addSuggestionMarker'](_0x4b16bb,_0x586f19,_0x2115e3,_0x3d1f12),_0x1699b1;}['markMultiRangeInsertion'](_0x2b8b8a,_0x192e40='multi',_0x3d7c4d={}){const _0x441ea9=this['editor']['plugins']['get']('Users')['me'],_0x4b2988=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x192e40,'join');for(const _0x5d7766 of this['getSuggestions']())if(_0x5d7766['author']['id']==_0x441ea9['id']&&'insertion'==_0x5d7766['type']&&_0x5d7766['subType']==_0x192e40&&Qt(_0x5d7766,_0x3d7c4d)&&(_0x4b2988(_0x5d7766['getRanges'](),_0x2b8b8a)||_0x4b2988(_0x2b8b8a,_0x5d7766['getRanges']()))){for(const _0x25e076 of _0x2b8b8a)_0x5d7766['addRange'](_0x25e076);return _0x5d7766;}for(const {suggestion:_0x31a999,meta:_0xbd667e}of this['_findSuggestions'](_0x2b8b8a,'insertion')){if(!_0xbd667e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xbd667e['containsRangeInObject'])continue;if(!Qt(_0x31a999,_0x3d7c4d))continue;let _0x273bbe=!0x0;for(const _0x185a38 of _0x31a999['getRanges']())for(const _0x2ebfe6 of _0x2b8b8a)if(!_0x185a38['containsRange'](_0x2ebfe6)){_0x273bbe=!0x1;break;}if(_0x273bbe)return _0x31a999;}const _0x38bf99=_0x2b2ac3(),_0xc84017=_0x441ea9['id'],_0x38e533='insertion:'+_0x192e40,_0x352e5d=this['_setSuggestionData']({'id':_0x38bf99,'type':_0x38e533,'createdAt':new Date(),'authorId':_0xc84017,'attributes':_0x3d7c4d});for(const _0x16f58c of _0x2b8b8a)this['_addSuggestionMarker'](_0x38e533,_0x38bf99,_0xc84017,_0x16f58c,o['getMultiRangeId']());return _0x352e5d;}['markInlineFormat'](_0x661ec7,_0x18ca66,_0x3c9687=null,_0x4d9476={}){if(_0x3c9687=_0x3c9687||Jt(_0x18ca66),_0x661ec7['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xff8614=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3c9687,'accept');return this['forceDefaultExecution'](()=>_0xff8614([_0x661ec7],_0x18ca66,_0x4d9476)),null;}const _0x166979=this['editor']['plugins']['get']('Users')['me'],_0x279204=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x20c3f5,meta:_0x551780}of this['_findSuggestions'](_0x661ec7,'insertion'))_0x551780['isOwn']&&!_0x551780['isInsideObject']&&_0x279204['push'](..._0x20c3f5['getRanges']());}const _0x539fad=function(_0xcc63b9,_0x5769b6){const _0x338959=[];for(const _0x42fbaa of _0x5769b6){const _0x4d27c5=_0xcc63b9['getIntersection'](_0x42fbaa);_0x4d27c5&&_0x338959['push'](_0x4d27c5);}return _0x338959;}(_0x661ec7,_0x279204),_0x5137aa=function(_0xe80a67,_0xf2ba30){const _0x4a3cdd=[_0xe80a67];for(const _0x31b042 of _0xf2ba30){let _0x2c21a2=0x0;for(;_0x2c21a2<_0x4a3cdd['length'];){const _0x313aac=_0x4a3cdd[_0x2c21a2]['getDifference'](_0x31b042);_0x4a3cdd['splice'](_0x2c21a2,0x1,..._0x313aac),_0x2c21a2+=_0x313aac['length'];}}return _0x4a3cdd;}(_0x661ec7,_0x279204);_0x539fad['length']&&this['_model']['change'](()=>{for(const _0x32b196 of _0x539fad){const _0x48b6c0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3c9687,'accept');this['forceDefaultExecution'](()=>_0x48b6c0([_0x32b196],_0x18ca66,_0x4d9476));}});for(const _0x4b44fb of _0x5137aa){let _0x56fc38=null,_0x2f7fb7=_0x4b44fb['start'],_0x4d21ee=_0x4b44fb['end'];for(const {suggestion:_0x53f503,meta:_0x33b63f}of this['_findSuggestions'](_0x4b44fb,'formatInline')){if(!_0x33b63f['isOwn'])continue;if(_0x53f503['subType']!=_0x3c9687)continue;if(!Qt(_0x53f503,_0x4d9476))continue;const _0x33dec9=_0x53f503['getFirstRange']();if(_0x33dec9['containsRange'](_0x4b44fb,!0x0))return null;_0x2f7fb7=_0x2f7fb7['isBefore'](_0x33dec9['start'])?_0x2f7fb7:_0x33dec9['start'],_0x4d21ee=_0x4d21ee['isAfter'](_0x33dec9['end'])?_0x4d21ee:_0x33dec9['end'],_0x56fc38?_0x33dec9['start']['isBefore'](_0x56fc38['getFirstRange']()['start'])?(_0x56fc38['removeMarkers'](),_0x56fc38=_0x53f503):_0x53f503['removeMarkers']():_0x56fc38=_0x53f503;}const _0x42c1f8=this['_model']['createRange'](_0x2f7fb7,_0x4d21ee);if(_0x56fc38)this['_setSuggestionRange'](_0x56fc38,_0x42c1f8);else{const _0x27aed6=_0x2b2ac3(),_0x268802=_0x166979['id'];this['_setSuggestionData']({'id':_0x27aed6,'type':'formatInline:'+_0x3c9687,'data':_0x18ca66,'createdAt':new Date(),'authorId':_0x268802,'attributes':_0x4d9476}),this['_addSuggestionMarker']('formatInline:'+_0x3c9687,_0x27aed6,_0x268802,_0x42c1f8);}}return null;}['markBlockFormat'](_0x3a6132,_0x103491,_0x577fc6=[],_0x150eb9=null,_0x3f6221={}){_0x103491['formatGroupId']||(_0x103491['formatGroupId']=_0x103491['commandName']),_0x103491['multipleBlocks']=_0x3a6132['is']('range'),_0x150eb9=_0x150eb9||Jt(_0x103491);const _0x129296=_0x577fc6['map'](_0x1bb8ce=>qt(_0x1bb8ce,this['_model'])),_0x1ad601=_0x3a6132['is']('range')?_0x3a6132:qt(_0x3a6132,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4b97e9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x150eb9,'accept');return this['forceDefaultExecution'](()=>_0x4b97e9([_0x1ad601],_0x103491,_0x3f6221)),null;}_0x129296['push'](_0x1ad601);let _0x574e21=!0x0;for(const _0x511472 of _0x129296)if(!this['_rangeIsInLocalUserInsertion'](_0x511472)){_0x574e21=!0x1;break;}if(_0x574e21&&'always'!==this['_trackFormatChanges']){const _0x1eb76f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x150eb9,'accept');return this['forceDefaultExecution'](()=>_0x1eb76f([_0x1ad601],_0x103491,_0x3f6221)),null;}let _0x49ec01=null,_0x4b7114=_0x1ad601['start'],_0x3d0d4a=_0x1ad601['end'];for(const {suggestion:_0x581c7c,meta:_0x3df128}of this['_findSuggestions'](_0x1ad601,'formatBlock')){if(!_0x3df128['isOwn'])continue;if(_0x3df128['isNextTo']||_0x3df128['containsRangeInObject']||_0x3df128['isInsideObject'])continue;if(_0x581c7c['data']['formatGroupId']!=_0x103491['formatGroupId'])continue;if(!Qt(_0x581c7c,_0x3f6221))continue;const _0x6bd8d9=_0x581c7c['getFirstRange']();if(_0x581c7c['subType']==_0x150eb9){if(_0x6bd8d9['containsRange'](_0x1ad601,!0x0))return null;_0x4b7114=_0x4b7114['isBefore'](_0x6bd8d9['start'])?_0x4b7114:_0x6bd8d9['start'],_0x3d0d4a=_0x3d0d4a['isAfter'](_0x6bd8d9['end'])?_0x3d0d4a:_0x6bd8d9['end'],_0x49ec01?_0x6bd8d9['start']['isBefore'](_0x49ec01['getFirstRange']()['start'])?(_0x49ec01['removeMarkers'](),_0x49ec01=_0x581c7c):_0x581c7c['removeMarkers']():_0x49ec01=_0x581c7c;}else{const _0x3d8cb7=_0x1ad601['getIntersection'](_0x6bd8d9);this['_cutOutSuggestionMarker'](_0x581c7c,_0x3d8cb7);}}const _0x5c7758=this['editor']['plugins']['get']('Users')['me'],_0x3dc135=_0x2b2ac3(),_0x34a8af=_0x5c7758['id'];if(_0x49ec01)return this['_setSuggestionRange'](_0x49ec01,this['_model']['createRange'](_0x4b7114,_0x3d0d4a)),_0x49ec01;{const _0x4889bc=this['_setSuggestionData']({'id':_0x3dc135,'type':'formatBlock:'+_0x150eb9,'data':_0x103491,'createdAt':new Date(),'authorId':_0x34a8af,'attributes':_0x3f6221});return this['_addSuggestionMarker']('formatBlock:'+_0x150eb9,_0x3dc135,_0x34a8af,this['_model']['createRange'](_0x4b7114,_0x3d0d4a)),_0x4889bc;}}['markMultiRangeBlockFormat'](_0x9edf5b,_0x2392fd,_0x385fb0=[],_0x5a743d=null,_0x5c6afb={}){_0x2392fd['formatGroupId']||(_0x2392fd['formatGroupId']=_0x2392fd['commandName']);const _0x254da9=_0x9edf5b[0x0];_0x2392fd['multipleBlocks']=_0x254da9['is']('range'),_0x5a743d=_0x5a743d||Jt(_0x2392fd);const _0x57899a=_0x385fb0['map'](_0x23afdb=>qt(_0x23afdb,this['_model'])),_0x138c0a=_0x254da9['is']('range')?_0x9edf5b:_0x9edf5b['map'](_0x48896a=>qt(_0x48896a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3b19cd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a743d,'accept');return this['forceDefaultExecution'](()=>_0x3b19cd(_0x138c0a,_0x2392fd,_0x5c6afb)),null;}_0x57899a['push'](..._0x138c0a);let _0x281b6a=!0x0;for(const _0x4f3c52 of _0x57899a)if(!this['_rangeIsInLocalUserInsertion'](_0x4f3c52)){_0x281b6a=!0x1;break;}if(_0x281b6a&&'always'!==this['_trackFormatChanges']){const _0x441507=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a743d,'accept');return this['forceDefaultExecution'](()=>_0x441507(_0x138c0a,_0x2392fd,_0x5c6afb)),null;}const _0x474e5e=this['editor']['plugins']['get']('Users')['me'];for(const _0x55b8fc of this['getSuggestions']()){if(_0x55b8fc['author']['id']!=_0x474e5e['id'])continue;if('formatBlock'!=_0x55b8fc['type']||_0x55b8fc['data']['formatGroupId']!=_0x2392fd['formatGroupId'])continue;if(!Qt(_0x55b8fc,_0x5c6afb))continue;const _0x842199=_0x55b8fc['subType']==_0x5a743d;for(let _0x713fe7=0x0;_0x713fe7<_0x138c0a['length'];_0x713fe7++){const _0x18bfcf=_0x138c0a[_0x713fe7];for(const _0x19237d of _0x55b8fc['getMarkers']()){const _0x1cdf98=_0x19237d['getRange']();if(_0x18bfcf['isEqual'](_0x1cdf98)){_0x842199?(_0x138c0a['splice'](_0x713fe7,0x1),_0x713fe7--):_0x55b8fc['removeMarker'](_0x19237d['name']);break;}}}}if(0x0==_0x138c0a['length'])return null;const _0x3ed065=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a743d,'join');for(const _0x52238d of this['getSuggestions']())if(_0x52238d['author']['id']==_0x474e5e['id']&&'formatBlock'==_0x52238d['type']&&_0x52238d['data']['formatGroupId']==_0x2392fd['formatGroupId']&&_0x52238d['subType']==_0x5a743d&&Qt(_0x52238d,_0x5c6afb)&&(_0x3ed065(_0x52238d['getRanges'](),_0x138c0a)||_0x3ed065(_0x138c0a,_0x52238d['getRanges']()))){for(const _0x97c5c0 of _0x138c0a)_0x52238d['addRange'](_0x97c5c0);return _0x52238d;}const _0x34c838=_0x2b2ac3(),_0x41d5a4=_0x474e5e['id'],_0xd5390f='formatBlock:'+_0x5a743d,_0x4cee66=this['_setSuggestionData']({'id':_0x34c838,'type':_0xd5390f,'data':_0x2392fd,'createdAt':new Date(),'authorId':_0x41d5a4,'attributes':_0x5c6afb});for(const _0x44d86f of _0x138c0a)this['_addSuggestionMarker'](_0xd5390f,_0x34c838,_0x41d5a4,_0x44d86f,o['getMultiRangeId']());return _0x4cee66;}['markDeletion'](_0x1e36f5,_0x1c2e8b=null,_0x1b6376={}){if(_0x1e36f5['isCollapsed'])return null;const _0x345c47=this['editor']['plugins']['get']('Users')['me'],_0xebe0ad=new _0x3e72a4(_0x1e36f5['start'],_0x1e36f5['end']);for(const {suggestion:_0xc3f359,meta:_0x15ce67}of this['_findSuggestions'](_0xebe0ad,'insertion'))if(_0x15ce67['isOwn']&&!_0x15ce67['isNextTo']){if(_0xc3f359['isMultiRange']){const _0x7fc0ba=_0xc3f359['getRanges']()['filter'](_0x18d402=>'$graveyard'!=_0x18d402['root']['rootName']);_0x7fc0ba['every'](_0x3a57db=>_0xebe0ad['containsRange'](_0x3a57db,!0x0))&&_0xc3f359['discard']();if(_0x7fc0ba['some'](_0x4b1dd2=>_0x4b1dd2['containsRange'](_0xebe0ad,!0x0))){const _0x931c2c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c2e8b,'accept');return this['forceDefaultExecution'](()=>_0x931c2c([_0xebe0ad],null,_0x1b6376)),null;}}else{const _0x7e621=_0xebe0ad['getIntersection'](_0xc3f359['getFirstRange']());null!==_0x7e621&&_0xc3f359['_onDiscard']([_0x7e621],null,_0x1b6376);}}if(_0xebe0ad['detach'](),_0xebe0ad['isCollapsed']||'$graveyard'==_0xebe0ad['root']['rootName'])return null;let _0x2c9bf3=null,_0x2d561f=_0xebe0ad['start'],_0x34ae25=_0xebe0ad['end'];const _0x40dec8=this['_findSuggestions'](_0xebe0ad,'deletion');for(const {suggestion:_0x582fbd,meta:_0x2f36a0}of _0x40dec8){const _0x5a7148=this['_model']['createRange'](_0x2d561f,_0x34ae25);if(_0x2f36a0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2f36a0['containsRangeInObject']&&!_0x2f36a0['isInsideObject'])){if(_0x582fbd['isMultiRange']){if(!Qt(_0x582fbd,_0x1b6376))continue;let _0x33981a=!0x0;for(const _0x5da362 of _0x582fbd['getRanges']()){if(_0x5da362['containsRange'](_0x5a7148,!0x0))return _0x582fbd;_0x5a7148['containsRange'](_0x5da362)||(_0x33981a=!0x1);}_0x33981a&&_0x582fbd['discard']();}else{const _0x409589=_0x582fbd['getFirstRange']();if(_0x409589['containsRange'](_0x5a7148,!0x0))return _0x582fbd;if(!Qt(_0x582fbd,_0x1b6376)){_0x5a7148['containsRange'](_0x409589)?_0x582fbd['removeMarkers']():_0x409589['containsPosition'](_0x2d561f)?_0x2d561f=_0x409589['end']:_0x409589['containsPosition'](_0x34ae25)&&(_0x34ae25=_0x409589['start']);continue;}_0x2d561f=_0x2d561f['isBefore'](_0x409589['start'])?_0x2d561f:_0x409589['start'],_0x34ae25=_0x34ae25['isAfter'](_0x409589['end'])?_0x34ae25:_0x409589['end'],_0x1b6376=Object['assign']({},_0x582fbd['attributes']),_0x2c9bf3?_0x409589['start']['isBefore'](_0x2c9bf3['getFirstRange']()['start'])?(_0x2c9bf3['removeMarkers'](),_0x2c9bf3=_0x582fbd):_0x582fbd['removeMarkers']():_0x2c9bf3=_0x582fbd;}}}if(_0x2c9bf3)return this['_setSuggestionRange'](_0x2c9bf3,this['_model']['createRange'](_0x2d561f,_0x34ae25)),_0x2c9bf3;{const _0x113d2a=_0x2b2ac3(),_0x4fe2a5=this['_model']['createRange'](_0x2d561f,_0x34ae25),_0x29179c=_0x345c47['id'],_0x3aec00=_0x1c2e8b?'deletion:'+_0x1c2e8b:'deletion',_0x5de93d=this['_setSuggestionData']({'id':_0x113d2a,'type':_0x3aec00,'createdAt':new Date(),'authorId':_0x29179c,'attributes':_0x1b6376});return this['_addSuggestionMarker'](_0x3aec00,_0x113d2a,_0x29179c,_0x4fe2a5),_0x5de93d;}}['markMultiRangeDeletion'](_0x1ab962,_0x4aab12='multi',_0x3c311f={}){const _0x18d2e7=this['editor']['plugins']['get']('Users')['me'],_0x351cc9=_0x1ab962['map'](_0x2d1969=>new _0x3e72a4(_0x2d1969['start'],_0x2d1969['end'])),_0x364f3c=new Set();for(const {suggestion:_0x43fb1f,meta:_0x5a016c}of this['_findSuggestions'](_0x351cc9,'insertion'))_0x5a016c['isOwn']&&!_0x5a016c['isNextTo']&&_0x364f3c['add'](_0x43fb1f);for(const _0x24aa54 of _0x364f3c)if(_0x24aa54['isMultiRange']){const _0xd05a67=_0x24aa54['getRanges']();(!_0x24aa54['attributes']||!_0x24aa54['attributes']['skipNestingCheck'])&&(_0xd05a67['every'](_0x5916c9=>_0x351cc9['some'](_0x1f5b07=>_0x1f5b07['containsRange'](_0x5916c9,!0x0)))&&_0x24aa54['discard']());if(_0x351cc9['every'](_0x4ee102=>_0xd05a67['some'](_0x2da854=>_0x2da854['containsRange'](_0x4ee102,!0x0)))){const _0x28e8d8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4aab12,'accept');return this['forceDefaultExecution'](()=>_0x28e8d8(_0x1ab962,null,_0x3c311f)),null;}}else{const _0x9cdd5e=_0x24aa54['getFirstRange']();_0x351cc9['some'](_0x5edbd5=>_0x5edbd5['containsRange'](_0x9cdd5e,!0x0))&&_0x24aa54['discard']();if(_0x351cc9['every'](_0x1bc692=>_0x9cdd5e['containsRange'](_0x1bc692,!0x0))){const _0x1ae345=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4aab12,'accept');return this['forceDefaultExecution'](()=>_0x1ae345(_0x351cc9,null,_0x3c311f)),null;}}const _0x12967a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4aab12,'join');let _0x4282f3=null;for(const _0x38d2c2 of this['getSuggestions']())if(_0x38d2c2['author']['id']==_0x18d2e7['id']&&_0x38d2c2['isInContent']&&'deletion'==_0x38d2c2['type']&&_0x38d2c2['subType']==_0x4aab12&&Qt(_0x38d2c2,_0x3c311f)&&(_0x12967a(_0x38d2c2['getRanges'](),_0x351cc9)||_0x12967a(_0x351cc9,_0x38d2c2['getRanges']()))){if(_0x4282f3){if(_0x38d2c2['commentThread']&&_0x38d2c2['commentThread']['length'])continue;for(const _0x5b8089 of _0x38d2c2['getRanges']())_0x4282f3['isIntersectingWithRange'](_0x5b8089)||_0x4282f3['addRange'](_0x5b8089);_0x38d2c2['removeMarkers']();}else{_0x4282f3=_0x38d2c2;for(const _0x1b8cb5 of _0x351cc9)_0x38d2c2['isIntersectingWithRange'](_0x1b8cb5)||_0x38d2c2['addRange'](_0x1b8cb5);}}if(_0x4282f3)return _0x4282f3;_0x364f3c['clear']();for(const {suggestion:_0x18aa72,meta:_0x13b745}of this['_findSuggestions'](_0x351cc9,'deletion'))_0x13b745['isOwn']&&(this['_mergeNestedSuggestions']||!_0x13b745['containsRangeInObject']&&!_0x13b745['isInsideObject'])&&Qt(_0x18aa72,_0x3c311f)&&_0x364f3c['add'](_0x18aa72);for(const _0x1994d3 of _0x364f3c){const _0xa81d1c=_0x1994d3['getRanges']();if(!_0x3c311f||!_0x3c311f['skipNestingCheck']){if(_0x351cc9['every'](_0x41786d=>_0xa81d1c['some'](_0x2fae43=>_0x2fae43['containsRange'](_0x41786d,!0x0))))return _0x1994d3;}(!_0x1994d3['attributes']||!_0x1994d3['attributes']['skipNestingCheck'])&&(_0xa81d1c['every'](_0x5aa9dc=>_0x351cc9['some'](_0x22e7bc=>_0x22e7bc['containsRange'](_0x5aa9dc,!0x0)))&&_0x1994d3['discard']());}const _0x5b5f86=_0x2b2ac3(),_0x2c828a=_0x18d2e7['id'],_0x1ab7df='deletion:'+_0x4aab12,_0x177178=this['_setSuggestionData']({'id':_0x5b5f86,'type':_0x1ab7df,'createdAt':new Date(),'authorId':_0x2c828a,'attributes':_0x3c311f});for(const _0x3f8f60 of _0x351cc9)_0x3f8f60['detach'](),_0x3f8f60['isCollapsed']||'$graveyard'==_0x3f8f60['root']['rootName']||this['_addSuggestionMarker'](_0x1ab7df,_0x5b5f86,_0x2c828a,_0x3f8f60,o['getMultiRangeId']());return _0x177178;}['markAttributeChange'](_0x50465b,_0x166215,_0x4f7df9,_0x208280,_0xb0ccc9){if(_0x50465b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5e619a=this['editor']['plugins']['get']('Users')['me']['id'],_0x5f366b=Array['from'](this['_suggestions']['values']())['filter'](_0x469f30=>'attribute'==_0x469f30['type']&&_0x469f30['data']['key']==_0x166215&&_0x469f30['isIntersectingWithRange'](_0x50465b));if('default'===this['_trackFormatChanges']){const _0x15f77c=this['_findSuggestions'](_0x50465b,'insertion')['filter'](({meta:_0x300935})=>_0x300935['isOwn']&&!_0x300935['isInsideObject']&&!_0x300935['isNextTo'])['map'](({suggestion:_0x256619})=>_0x256619);_0x5f366b['unshift'](..._0x15f77c);}const _0x752c23=new Map([[_0x50465b,_0x4f7df9]]);for(const _0x21fe31 of _0x5f366b){const _0x1814f6='attribute'==_0x21fe31['type']?_0x21fe31['data']['oldValue']:void 0x0,_0x375ab5=_0x21fe31['getFirstRange'](),_0x5c3ebe=Array['from'](_0x752c23['keys']())['find'](_0x10bf14=>_0x10bf14['isIntersecting'](_0x375ab5));if(!_0x5c3ebe)continue;const _0x1bc84e=_0x5c3ebe['getDifference'](_0x375ab5);this['_isBlockAttribute'](_0x166215)&&'insertion'==_0x21fe31['type']&&0x0!=_0x1bc84e['length']||(_0x752c23['delete'](_0x5c3ebe),_0x1bc84e['forEach'](_0x3fba01=>{_0x752c23['set'](_0x3fba01,_0x4f7df9);}),'insertion'!=_0x21fe31['type']&&_0x1814f6!=_0x208280&&_0x752c23['set'](_0x5c3ebe['getIntersection'](_0x375ab5),_0x1814f6));}const _0x256422=[];for(const [_0x5e447e,_0x244c87]of _0x752c23){const _0x55f500=_0x2b2ac3(),_0x464b5b={'key':_0x166215,'oldValue':_0x244c87,'newValue':_0x208280};_0x166215['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':_0x166215});const _0x16b2b0=('attribute:'+(_0x166215+'|'+Jt({'newValue':_0x208280})))['substring'](0x0,0x3c),_0x3dc6bf=this['_setSuggestionData']({'id':_0x55f500,'type':_0x16b2b0,'data':_0x464b5b,'createdAt':new Date(),'authorId':_0x5e619a,'attributes':_0xb0ccc9});_0x256422['push'](_0x3dc6bf),this['_addSuggestionMarker'](_0x16b2b0,_0x55f500,_0x5e619a,_0x5e447e);}return _0x256422;}['enableDefaultAttributesIntegration'](_0x3a5d87){this['enableCommand'](_0x3a5d87,(_0x53e578,..._0x94b103)=>{this['_recordAttributeChanges'](()=>{_0x53e578(..._0x94b103);});});}['registerBlockAttribute'](_0x1071a7){this['_blockAttributeKeys']['add'](_0x1071a7);}['registerInlineAttribute'](_0x2c9623){this['_inlineAttributeKeys']['add'](_0x2c9623);}['_getAttributeKey'](_0x682d71){return'attribute'==_0x682d71['type']?_0x682d71['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2dbd63,_0x500526){const _0x1458b9=_0x2dbd63['getFirstMarker']();this['_model']['change'](_0x12de38=>{_0x12de38['updateMarker'](_0x1458b9,{'range':_0x500526});});}['_addThreadToSuggestion'](_0x3c253e){const _0x568c97=_0x3c253e['id'],_0x26a803=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x568c97)||this['_commentsRepository']['addCommentThread']({'channelId':_0x26a803,'threadId':_0x568c97,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x479738=this['_commentsRepository']['getCommentThread'](_0x568c97);_0x479738['unbind']('isRemovable'),_0x479738['isRemovable']=!0x1,_0x3c253e['commentThread']=_0x479738;}['_checkSuggestionCorrectness'](_0x3fa143,_0x29af5f,_0x48e5af,_0x1dab94){if(_0x3fa143['type']!=_0x29af5f||_0x3fa143['subType']!=_0x48e5af||_0x3fa143['creator']['id']!=_0x1dab94)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x190b7b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x390b50,_0x566da2){const _0x5b1217=_0x390b50['getFirstRange']();if(_0x566da2['isEqual'](_0x5b1217))_0x390b50['removeMarkers']();else{if(_0x5b1217['containsRange'](_0x566da2)){const _0x371306=this['_model']['createPositionAt'](_0x566da2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x390b50,this['_model']['createRange'](_0x5b1217['start'],_0x371306));const _0x26f3d4=_0x2b2ac3(),_0x190d48=_0x390b50['creator']['id'],_0x45f669=_0x390b50['type']+':'+_0x390b50['subType'];this['_setSuggestionData']({'id':_0x26f3d4,'type':_0x45f669,'createdAt':new Date(),'authorId':_0x190d48,'data':_0x390b50['data'],'attributes':_0x390b50['attributes']});const _0x166e22=this['_model']['createPositionAt'](_0x566da2['end']['parent'],'after'),_0x226dd4=this['_model']['createRange'](_0x166e22,_0x5b1217['end']);this['_addSuggestionMarker'](_0x45f669,_0x26f3d4,_0x190d48,_0x226dd4);}else{if(_0x5b1217['containsPosition'](_0x566da2['start'])){const _0x27a6fd=this['_model']['createPositionAt'](_0x566da2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x390b50,this['_model']['createRange'](_0x5b1217['start'],_0x27a6fd));}else{const _0x1183c5=this['_model']['createPositionAt'](_0x566da2['end']['parent'],'after');this['_setSuggestionRange'](_0x390b50,this['_model']['createRange'](_0x1183c5,_0x5b1217['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x203ad5){for(const {suggestion:_0x3d146,meta:_0x2deb02}of this['_findSuggestions'](_0x203ad5,'insertion')){if(!_0x2deb02['isOwn'])continue;const _0x11f8fc=_0x3d146['getRanges']();for(const _0x2bc9a3 of _0x11f8fc)if(!_0x203ad5['getDifference'](_0x2bc9a3)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x197a20){const _0x4fca39=this['editor']['plugins']['get']('Users')['getUser'](_0x197a20);if(!_0x4fca39)throw new _0x190b7b('track-changes-user-not-found',this);return _0x4fca39;}['_getExternalAuthor'](_0x4003bc){const _0x6d9222=this['editor']['plugins']['get']('Users'),_0x329d1c=_0x5d286a('external:'+_0x4003bc),_0x2be97c=_0x6d9222['getUser'](_0x329d1c);return _0x2be97c||_0x6d9222['addUser']({'id':_0x329d1c,'name':_0x4003bc});}['_createSuggestion'](_0x28a61f,_0x382afe,_0x511045,_0x542a10,_0x3ca625){const _0x5e37ee=this['_getAuthorFromId'](_0x542a10),_0x1d2134=this['_suggestionFactory']['buildSuggestion'](_0x28a61f,_0x382afe,_0x511045,_0x5e37ee,_0x3ca625,_0x25a844=>{this['_updateSuggestionData'](_0x511045,{'attributes':_0x25a844});const _0x2f9af7=this['getSuggestion'](_0x511045);this['_joinWithAdjacentSuggestions'](new Set([_0x2f9af7])),this['_refreshSuggestionsChain'](new Set([_0x2f9af7]));});return this['listenTo'](_0x1d2134,'accept',()=>{this['_updateSuggestionData'](_0x511045,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1d2134,'discard',()=>{this['_updateSuggestionData'](_0x511045,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x511045,_0x1d2134),this['_suggestionState']['set'](_0x1d2134,'notReady'),_0x1d2134;}['_splitMarkerName'](_0x172fd7){const _0x1f9356=_0x172fd7['split'](':');return{'group':_0x1f9356[0x0],'type':_0x1f9356[0x1],'subType':_0x1f9356['length']>=0x5?_0x1f9356[0x2]:null,'id':_0x1f9356['length']<0x5?_0x1f9356[0x2]:_0x1f9356[0x3],'authorId':_0x1f9356['length']<0x5?_0x1f9356[0x3]:_0x1f9356[0x4],'markerCount':0x6==_0x1f9356['length']?_0x1f9356[0x5]:null};}['_breakSuggestionMarker'](_0x5f7557,_0x40a46c,_0x18ce1c){const _0x527e79=_0x5f7557['getFirstRange'](),_0x59e7fe=_0x527e79['start'],_0x35b92f=_0x527e79['end'];this['_setSuggestionRange'](_0x5f7557,this['_model']['createRange'](_0x59e7fe,_0x40a46c));const _0x5bb6ed=_0x2b2ac3(),_0xf5e40f=_0x5f7557['creator']['id'],_0xbb1e12=_0x5f7557['type']+(_0x5f7557['subType']?':'+_0x5f7557['subType']:'');this['_setSuggestionData']({'id':_0x5bb6ed,'type':_0xbb1e12,'createdAt':new Date(),'authorId':_0xf5e40f,'originalSuggestionId':_0x5f7557['id'],'attributes':_0x5f7557['attributes'],'data':_0x5f7557['data']});const _0x50ea55=this['_getAttributeKey'](_0x5f7557);('formatBlock'==_0x5f7557['type']||_0x50ea55&&this['_isBlockAttribute'](_0x50ea55))&&(_0x18ce1c=this['_model']['createPositionBefore'](_0x18ce1c['parent'])),this['_addSuggestionMarker'](_0xbb1e12,_0x5bb6ed,_0xf5e40f,this['_model']['createRange'](_0x18ce1c,_0x35b92f));}['_findSuggestions'](_0x22ce50,_0x513892=null){const _0x4e6872=[],_0x274ae3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x22ce50)||(_0x22ce50=[_0x22ce50]);for(const _0x409a71 of this['getSuggestions']()){if(!_0x409a71['isInContent'])continue;if(_0x513892&&_0x409a71['type']!=_0x513892)continue;let _0x3859aa=!0x1;for(const _0x585d6e of _0x409a71['getRanges']()){for(const _0x257550 of _0x22ce50){const _0x11aaf9=_0x257550['start']['isEqual'](_0x585d6e['end'])||_0x257550['end']['isEqual'](_0x585d6e['start']);if(_0x11aaf9||_0x257550['getIntersection'](_0x585d6e)){const _0x2bb826=_0x257550['containsRange'](_0x585d6e)&&Pt(this['_model']['schema'],_0x585d6e['start'],_0x257550),_0xc2da26=_0x585d6e['containsRange'](_0x257550)&&Pt(this['_model']['schema'],_0x257550['start'],_0x585d6e);_0x4e6872['push']({'suggestion':_0x409a71,'meta':{'isOwn':_0x274ae3==_0x409a71['author'],'isNextTo':_0x11aaf9,'isInsideObject':_0x2bb826,'containsRangeInObject':_0xc2da26}}),_0x3859aa=!0x0;break;}}if(_0x3859aa)break;}}return _0x4e6872;}['_addSuggestionMarker'](_0x27f1d6,_0x55664a,_0x1c2581,_0x4c3b5b,_0x1157cd){this['_model']['change'](_0x2074e4=>{let _0x115e53='suggestion:'+_0x27f1d6+':'+_0x55664a+':'+_0x1c2581;_0x1157cd&&(_0x115e53=_0x115e53+':'+_0x1157cd),_0x2074e4['addMarker'](_0x115e53,{'range':_0x4c3b5b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x47c43d){const _0x9ade8c=_0x47c43d['previous'],_0x4f299d=_0x47c43d['next'];_0x47c43d['previous']=null,_0x47c43d['next']=null,null!=_0x9ade8c&&_0x9ade8c['next']==_0x47c43d&&(_0x9ade8c['next']=_0x4f299d),null!=_0x4f299d&&_0x4f299d['previous']==_0x47c43d&&(_0x4f299d['previous']=_0x9ade8c),'ready'==this['_suggestionState']['get'](_0x47c43d)&&(this['_suggestionState']['set'](_0x47c43d,'removed'),this['fire']('suggestionUnloaded',_0x47c43d,_0x9ade8c,_0x4f299d));}['_setSuggestionData'](_0x50e8ee){const _0x2d4661=_0x50e8ee['id'],_0xeff62d=this['addSuggestionData'](_0x50e8ee);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1bbde7=this['editor']['plugins']['get']('PendingActions'),_0x13e3a3=_0xeff62d['hasComments'],_0x568ecf=_0xeff62d['subType']?_0xeff62d['type']+':'+_0xeff62d['subType']:_0xeff62d['type'],_0x1d11b5=this['editor']['locale'],_0x59c4c5=_0x1bbde7['add'](c(_0x1d11b5,'PENDING_ACTION_SUGGESTION')),_0x1e4546={'id':_0x2d4661,'type':_0x568ecf,'hasComments':_0x13e3a3,'data':_0x50e8ee['data']||null,'originalSuggestionId':_0x50e8ee['originalSuggestionId']||null,'attributes':_0xeff62d['attributes']};this['_adapter']['addSuggestion'](_0x1e4546)['then'](_0x4927c1=>{_0xeff62d['_saved']=!0x0,_0x1bbde7['remove'](_0x59c4c5),_0x4927c1&&_0x4927c1['createdAt']&&(this['_suggestions']['get'](_0x2d4661)['createdAt']=_0x4927c1['createdAt']);})['catch'](_0x11b5b6=>{throw _0x180879('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xeff62d['discard']();}),_0xeff62d['stopListening'](),this['_suggestions']['delete'](_0xeff62d['id']),this['_suggestionState']['delete'](_0xeff62d),_0x11b5b6;});}return _0xeff62d;}['_isBlockAttribute'](_0x4684d3){return this['_blockAttributeKeys']['has'](_0x4684d3);}['_updateSuggestionData'](_0x25c934,_0x21df50){const _0x236d0f=this['editor']['plugins']['get']('PendingActions'),_0x1f570b=this['getSuggestion'](_0x25c934);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1f570b['_saved']){const _0xd3738e=_0x236d0f['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x25c934,_0x21df50)['then'](()=>{_0x236d0f['remove'](_0xd3738e);});}else _0x1f570b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x25c934,_0x21df50);});}}['_getSuggestionData'](_0x186863){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x190b7b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x186863);}['_handleNewSuggestionMarker'](_0x3412b9){const {id:_0x71e72b,type:_0x290b18,subType:_0x571d75,authorId:_0x4a4052}=this['_splitMarkerName'](_0x3412b9),_0x41c28f=this['_suggestions']['get'](_0x71e72b)||this['_createSuggestion'](_0x290b18,_0x571d75,_0x71e72b,_0x4a4052,{});switch(this['_checkSuggestionCorrectness'](_0x41c28f,_0x290b18,_0x571d75,_0x4a4052),this['_suggestionState']['get'](_0x41c28f)){case'notReady':this['_getSuggestionData'](_0x71e72b)['then'](_0x2d2d42=>{let _0x354ab8=Promise['resolve']();_0x2d2d42['hasComments']&&(_0x354ab8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x71e72b})),_0x354ab8['then'](()=>{this['addSuggestionData'](_0x2d2d42)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x41c28f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x71e72b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x41c28f,'ready'),this['fire']('suggestionLoaded',_0x41c28f);break;case'ready':this['fire']('suggestionChanged',_0x41c28f);}return _0x41c28f['addMarkerName'](_0x3412b9),_0x41c28f;}['_refreshSuggestionsChain'](_0x52c9dd){const _0x153ad5=Array['from'](_0x52c9dd),_0x29cc86=_0x153ad5['filter'](_0x1f980f=>'attribute'==_0x1f980f['type']);this['_refreshAttributeSuggestionsChain'](_0x29cc86);const _0x436ab1=_0x153ad5['filter'](_0xf0135c=>!_0xf0135c['isMultiRange']&&'attribute'!=_0xf0135c['type']),_0xa9383c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x595385=>!_0x595385['isMultiRange']&&'attribute'!=_0x595385['type']),_0x36a190=_0xa9383c['filter'](_0x1b8886=>!_0x52c9dd['has'](_0x1b8886)),_0x23bf11=new Map(_0xa9383c['map'](_0x3e4528=>[_0x3e4528,this['_suggestionFactory']['getSuggestionCallback'](_0x3e4528['type'],_0x3e4528['subType'],'chain')])),_0x456f06=new Map(_0xa9383c['map'](_0x5ae347=>[_0x5ae347,_0x5ae347['getFirstRange']()])),_0x36e979=new Set(),_0x1a7b92=new Set();for(let _0x513b9a=0x0;_0x513b9a<_0x436ab1['length'];_0x513b9a++)_0x5660c7(_0x436ab1[_0x513b9a],_0x436ab1,_0x513b9a+0x1);for(let _0x168487=0x0;_0x168487<_0x436ab1['length'];_0x168487++)_0x5660c7(_0x436ab1[_0x168487],_0x36a190,0x0);const _0x4acc71=new Set();for(let _0x248e96=0x0;_0x248e96<_0x436ab1['length'];_0x248e96++){const _0x3b241f=_0x436ab1[_0x248e96];!_0x1a7b92['has'](_0x3b241f)&&_0x3b241f['previous']&&(_0x4acc71['add'](_0x3b241f['previous']),_0x3b241f['previous']['next']===_0x3b241f&&(_0x3b241f['previous']['next']=null),_0x3b241f['previous']=null),!_0x36e979['has'](_0x3b241f)&&_0x3b241f['next']&&(_0x4acc71['add'](_0x3b241f['next']),_0x3b241f['next']['previous']===_0x3b241f&&(_0x3b241f['next']['previous']=null),_0x3b241f['next']=null);}function _0x5660c7(_0x4a04d1,_0x5b8aa1,_0x36f0f9){for(let _0x4861ca=_0x36f0f9;_0x4861ca<_0x5b8aa1['length'];_0x4861ca++){const _0x58c158=_0x83cb2b(_0x4a04d1,_0x5b8aa1[_0x4861ca]);_0x58c158&&(_0x58c158[0x0]['next']=_0x58c158[0x1],_0x58c158[0x1]['previous']=_0x58c158[0x0],_0x36e979['add'](_0x58c158[0x0]),_0x1a7b92['add'](_0x58c158[0x1]));}}function _0x83cb2b(_0x344158,_0x2bda9e){if(_0x344158['author']['id']!==_0x2bda9e['author']['id'])return null;const _0x4dc829=_0x23bf11['get'](_0x344158)(_0x344158,_0x2bda9e,_0x456f06['get'](_0x344158),_0x456f06['get'](_0x2bda9e));if(!_0x4dc829)return null;return _0x23bf11['get'](_0x2bda9e)(_0x344158,_0x2bda9e,_0x456f06['get'](_0x344158),_0x456f06['get'](_0x2bda9e))?_0x4dc829[0x1]['commentThread']&&_0x4dc829[0x1]['commentThread']['length']?null:_0x4dc829:null;}_0x4acc71['size']&&this['_refreshSuggestionsChain'](_0x4acc71);}['_refreshAttributeSuggestionsChain'](_0x2a75c9){if(0x0==_0x2a75c9['length'])return;const _0x1d0ce=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19f037=>'attribute'==_0x19f037['type']&&_0x19f037['_isDataLoaded']),_0x160951=[],_0x426eef=new Map();for(const _0x52d7aa of _0x1d0ce){const _0x12d926=_0x5d286a(_0x52d7aa['attributes']);_0x426eef['has'](_0x12d926)||(_0x426eef['set'](_0x12d926,_0x160951['length']),_0x160951['push']([]));const _0x447674=_0x426eef['get'](_0x12d926);_0x160951[_0x447674]['push'](_0x52d7aa);}!(function(){_0x160951['sort']((_0xc1e03,_0x5e955f)=>{const _0x195c6a=_0xc1e03[0x0]['createdAt'],_0x4a681=_0x5e955f[0x0]['createdAt'];return _0x195c6a==_0x4a681?_0xc1e03[0x0]['attributes']['groupId']<_0x5e955f[0x0]['attributes']['groupId']?-0x1:0x1:_0x195c6a<_0x4a681?-0x1:0x1;});for(const _0x4e7329 of _0x160951)_0x4e7329['sort']((_0x414e4c,_0x55a0ee)=>_0x414e4c['id']<_0x55a0ee['id']?-0x1:0x1);}());for(let _0x26460c=0x0;_0x26460c<_0x160951['length'];_0x26460c++){if(0x0==_0x160951[_0x26460c]['length'])continue;const _0x40ae92=[];for(let _0x2369df=_0x26460c+0x1;_0x2369df<_0x160951['length'];_0x2369df++)0x0!=_0x160951[_0x2369df]['length']&&_0x466bea(_0x160951[_0x26460c],_0x160951[_0x2369df])&&_0x40ae92['push'](_0x2369df);for(const _0x4817d0 of _0x40ae92)_0x160951[_0x26460c]=_0x160951[_0x26460c]['concat'](_0x160951[_0x4817d0]),_0x160951[_0x4817d0]=[];}for(const _0x453804 of _0x160951)for(let _0x23941b=0x0;_0x23941b<_0x453804['length'];_0x23941b++){const _0x1f79c8=_0x453804[_0x23941b+0x1]||null;_0x453804[_0x23941b]['next']!==_0x1f79c8&&(_0x453804[_0x23941b]['next']=_0x1f79c8);}for(const _0x513068 of _0x160951)for(let _0x3ff5a7=0x0;_0x3ff5a7<_0x513068['length'];_0x3ff5a7++){const _0x530a71=_0x513068[_0x3ff5a7-0x1]||null;_0x513068[_0x3ff5a7]['previous']!==_0x530a71&&(_0x513068[_0x3ff5a7]['previous']=_0x530a71);}function _0x466bea(_0x5e6b70,_0x569c78){if(_0x5e6b70[0x0]['attributes']['groupId']!==_0x569c78[0x0]['attributes']['groupId']&&_0x5e6b70[0x0]['author']!==_0x569c78[0x0]['author'])return!0x1;if(!function(_0x3152fb,_0x567e34){if(!_0x3152fb['hasComments']&&!_0x567e34['hasComments'])return!0x0;if(_0x3152fb['hasComments']&&_0x567e34['hasComments'])return!0x1;if(_0x3152fb['hasComments']&&_0x567e34['createdAt']<_0x3152fb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x567e34['hasComments']&&_0x3152fb['createdAt']<_0x567e34['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5e6b70[0x0],_0x569c78[0x0]))return!0x1;const _0x3b20d4=Vt(_0x5e6b70[0x0]['attributes'],'groupId'),_0x405b47=Vt(_0x569c78[0x0]['attributes'],'groupId');if(!_0x42c2a5(_0x3b20d4,_0x405b47))return!0x1;return!!_0x5e6b70['every'](_0x2d06a8=>_0x569c78['some'](_0x5ca475=>_0x2d06a8['getFirstRange']()['isEqual'](_0x5ca475['getFirstRange']())))&&_0x569c78['every'](_0x40ec3b=>_0x5e6b70['some'](_0x142724=>_0x40ec3b['getFirstRange']()['isEqual'](_0x142724['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x224a10){const _0x5227ef=Array['from'](_0x224a10),_0x11f28e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x157ef0=_0x11f28e['filter'](_0x20b3ed=>!_0x224a10['has'](_0x20b3ed)),_0x126487=new Map(_0x5227ef['map'](_0x122cb4=>[_0x122cb4,this['_suggestionFactory']['getSuggestionCallback'](_0x122cb4['type'],_0x122cb4['subType'],'join')])),_0x4fc39e=new Map(_0x11f28e['map'](_0x446117=>[_0x446117,_0x446117['getRanges']()]));for(let _0xdb272=0x0;_0xdb272<_0x5227ef['length'];_0xdb272++){if(_0x410be1(this,_0x5227ef[_0xdb272],_0x5227ef,_0xdb272+0x1))return!0x0;}for(let _0x400667=0x0;_0x400667<_0x5227ef['length'];_0x400667++){if(_0x410be1(this,_0x5227ef[_0x400667],_0x157ef0,0x0))return!0x0;}return!0x1;function _0x410be1(_0x4c4993,_0x4a07fd,_0x1af7df,_0x57d9f8){for(let _0x45ba8e=_0x57d9f8;_0x45ba8e<_0x1af7df['length'];_0x45ba8e++){const _0x2aa028=_0x1af7df[_0x45ba8e];if(_0x2aa028['type']!==_0x4a07fd['type']||_0x2aa028['author']['id']!==_0x4a07fd['author']['id']||_0x2aa028['subType']!==_0x4a07fd['subType'])continue;if(!Wt(_0x4a07fd,_0x2aa028))continue;if('attribute'==_0x4a07fd['type']&&_0x4a07fd['data']['oldValue']!=_0x2aa028['data']['oldValue'])continue;if('attribute'==_0x4a07fd['type']&&_0x4c4993['_isBlockAttribute'](_0x4a07fd['data']['key']))continue;if('formatBlock'==_0x4a07fd['type']){const _0x54ef7c=_0x4c4993['editor']['model'],_0x468c1e=_0x4a07fd['getContainedElement']();if(_0x468c1e&&(_0x54ef7c['schema']['isObject'](_0x468c1e)||_0x54ef7c['schema']['isLimit'](_0x468c1e)))continue;}const _0x250827=_0x126487['get'](_0x4a07fd),_0x220e39=_0x4fc39e['get'](_0x4a07fd),_0x40c7d6=_0x4fc39e['get'](_0x2aa028),_0x25de43=_0x4a07fd['commentThread']&&_0x4a07fd['commentThread']['length'],_0x272ca2=_0x2aa028['commentThread']&&_0x2aa028['commentThread']['length'];if(!_0x25de43&&_0x250827(_0x40c7d6,_0x220e39))return _0x4c4993['_joinSuggestions'](_0x2aa028,_0x4a07fd),_0x4fc39e['delete'](_0x4a07fd),!0x0;if(!_0x272ca2&&_0x250827(_0x220e39,_0x40c7d6))return _0x4c4993['_joinSuggestions'](_0x4a07fd,_0x2aa028),_0x4fc39e['delete'](_0x2aa028),!0x0;}return!0x1;}}['_joinSuggestions'](_0xaedfbf,_0x238ba2){if(_0xaedfbf['isMultiRange']){for(const _0x5ed8ff of _0x238ba2['getRanges']())_0xaedfbf['addRange'](_0x5ed8ff);}else{const _0x571a83=_0x238ba2['getFirstRange']()['end'];this['_setSuggestionRange'](_0xaedfbf,this['_model']['createRange'](_0xaedfbf['getFirstRange']()['start'],_0x571a83));}_0x238ba2['removeMarkers']();}['_getMarkerAnnouncementText'](_0x234f8e,_0x2335ea,_0x865d95){const _0x30031f=_0x234f8e['startsWith']('format')||_0x234f8e['startsWith']('attribute')?'FORMATTING':_0x234f8e['toUpperCase']();return c(this['editor']['locale'],_0x2335ea+'_'+_0x30031f+'_SUGGESTION_ANNOUNCEMENT',_0x865d95);}['_initAriaMarkerChangeAnnouncements'](){const _0x287e47=this['editor'];if(!_0x287e47['ui'])return;const {ariaLiveAnnouncer:_0x25b049}=_0x287e47['ui'];_0x1a3e72(this['_model'],({left:_0x305459,entered:_0x485eb8})=>{for(const _0x2dccc9 of _0x305459){const {group:_0x2e68fa,type:_0x22a7c7}=this['_splitMarkerName'](_0x2dccc9['name']);if('suggestion'===_0x2e68fa){_0x25b049['announce'](this['_getMarkerAnnouncementText'](_0x22a7c7,'LEAVE'));break;}}for(const _0x490195 of _0x485eb8){const {group:_0x21382b,type:_0x235d83}=this['_splitMarkerName'](_0x490195['name']);if('suggestion'===_0x21382b){_0x25b049['announce'](this['_getMarkerAnnouncementText'](_0x235d83,'ENTER',_0x2dcbe4(_0x51472a)));break;}}});}['_processAttributeChanges'](_0x2e513b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x534568=this['editor'],_0x579ad9=_0x534568['model']['document']['differ']['getChanges']();if(0x0==_0x579ad9['length'])return!0x1;const _0x1a3ade=[],_0x227fe6=_0x579ad9['filter'](_0x56e0ea=>'attribute'==_0x56e0ea['type']),_0x5765f2=_0x579ad9['filter'](_0x1a1474=>'insert'==_0x1a1474['type']&&'$text'!=_0x1a1474['name']),_0x7f6016=_0x579ad9['filter'](_0x4b8915=>'remove'==_0x4b8915['type']&&'$text'!=_0x4b8915['name']);for(const _0x520711 of _0x227fe6)_0x1a3ade['push']({'key':_0x520711['attributeKey'],'newValue':_0x520711['attributeNewValue'],'oldValue':_0x520711['attributeOldValue'],'range':Ht(_0x520711['range'],_0x534568['model'])});for(const _0x374374 of _0x5765f2){const _0x109b88=_0x7f6016['find'](_0x474e34=>_0x474e34['position']['isEqual'](_0x374374['position']));_0x109b88&&_0x1a3ade['push']({'key':u,'newValue':_0x374374['name'],'oldValue':_0x109b88['name'],'range':_0x534568['model']['createRangeOn'](_0x374374['position']['nodeAfter'])});}return 0x0!=_0x1a3ade['length']&&this['_reduceExistingSuggestions'](_0x2e513b,_0x1a3ade);}['_processAttributeSuggestions'](_0x58f5e9){let _0x444c3c=!0x1;const _0x46fb1e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xde5503=>_0xde5503['data']['newRange']&&_0xde5503['name']['startsWith']('suggestion:attribute:'));for(const _0x4045a1 of _0x46fb1e){const {subType:_0x3747df,id:_0x24ca50}=this['_splitMarkerName'](_0x4045a1['name']),_0xc2268f=_0x3747df['split']('|')[0x0];for(const _0x5a23e4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5a23e4['id']!=_0x24ca50&&'attribute'==_0x5a23e4['type']&&_0x5a23e4['data']&&_0x5a23e4['data']['key']==_0xc2268f&&_0x5a23e4['getFirstRange']()['isIntersecting'](_0x4045a1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5a23e4,_0x4045a1['data']['newRange'],_0x58f5e9),_0x444c3c=!0x0);}return _0x444c3c;}['_recordAttributeChanges'](_0x3729fa){this['_recordAttributeSuggestions']=!0x0,_0x3729fa();}['_isRegisteredAttribute'](_0x47123d){const _0x108051=this['_isBlockAttribute'](_0x47123d),_0x3e2cdc=this['_inlineAttributeKeys']['has'](_0x47123d);return _0x108051||_0x3e2cdc;}['_reduceExistingSuggestions'](_0x14ccdf,_0x1cd63b){if(0x0==_0x1cd63b['length'])return!0x1;let _0x343e72=!0x1;for(const _0x3d1cef of _0x1cd63b){const _0x5eb7f9=this['_findSuggestions'](_0x3d1cef['range'],'attribute')['filter'](_0x1f650f=>!_0x1f650f['meta']['isNextTo'])['map'](_0x2feca8=>_0x2feca8['suggestion']),_0x2e68f3=_0x5d286a({'newValue':_0x3d1cef['newValue']});_0x5eb7f9['filter'](_0x4ae9fa=>{const [_0xc293a,_0x39ebf9]=_0x4ae9fa['subType']['split']('|');return _0xc293a==_0x3d1cef['key']&&_0x39ebf9!=_0x2e68f3;})['forEach'](_0x49a65a=>{this['_reduceSuggestionAttributeRange'](_0x49a65a,_0x3d1cef['range'],_0x14ccdf),_0x343e72=!0x0;});}return _0x343e72;}['_reduceSuggestionAttributeRange'](_0x1e2e37,_0x90ce22,_0x24b0f4){const _0x4f9674=_0x1e2e37['getFirstRange']()['getDifference'](_0x90ce22);0x0!==_0x4f9674['length']?0x1!==_0x4f9674['length']?this['_breakSuggestionMarker'](_0x1e2e37,_0x90ce22['start'],_0x90ce22['end']):this['_setSuggestionRange'](_0x1e2e37,_0x4f9674[0x0]):_0x24b0f4['removeMarker'](_0x1e2e37['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x511fd9){this['_editor']=_0x511fd9,this['_model']=_0x511fd9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x85f3f7,_0x34d002,_0x4ad2d3,_0xbd446f,_0x5cf6e2,_0x25db38){return new o(this['_model'],{'type':_0x85f3f7,'subType':_0x34d002,'id':_0x4ad2d3,'author':_0xbd446f,'creator':_0xbd446f,'attributes':_0x5cf6e2,'onAttributesChange':_0x25db38,'onAccept':(..._0xe17562)=>this['getSuggestionCallback'](_0x85f3f7,_0x34d002,'accept')(..._0xe17562),'onDiscard':(..._0x1869b4)=>this['getSuggestionCallback'](_0x85f3f7,_0x34d002,'discard')(..._0x1869b4)});}['registerCustomCallback'](_0xa40ee9,_0xc3c4c5,_0x27d4f8,_0x5c292c){const _0x398a40=_0xa40ee9+':'+_0xc3c4c5+':'+_0x27d4f8;this['_customCallbacks']['set'](_0x398a40,_0x5c292c);}['getSuggestionCallback'](_0x36d16e,_0x46d81b,_0x307fe8){const _0x41cf38=_0x36d16e+':'+_0x46d81b+':'+_0x307fe8;return this['_customCallbacks']['get'](_0x41cf38)||this['_defaultCallbacks']['get'](_0x36d16e+':'+_0x307fe8);}['_registerDefaultCallbacks'](){const _0x2d8c4d=()=>!0x1,_0x2808a7=_0x5901da=>{_0x5901da['sort']((_0x31961d,_0x5a5121)=>_0x31961d['start']['isBefore'](_0x5a5121['start'])?0x1:-0x1),this['_model']['change'](_0x2cdada=>{for(const _0x5bc72f of _0x5901da){let _0x4094f6;_0x4094f6=_0x5bc72f['end']['isAtEnd']&&_0x5bc72f['end']['parent']==_0x5bc72f['start']['nodeAfter']?_0x2cdada['createSelection'](_0x5bc72f['start']['nodeAfter'],'on'):_0x2cdada['createSelection'](_0x5bc72f),this['_model']['deleteContent'](_0x4094f6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2aa4fe=(_0x2f0593,_0x56e8d0)=>{_0x56e8d0&&this['_model']['change'](_0x5173a7=>{const {commandName:_0x3d421b,commandParams:_0x2db38f=[]}=_0x56e8d0,_0xd02ec8=_0x2f0593['map'](_0x5c776d=>(Gt(_0x5c776d)&&(_0x5c776d=this['_model']['createRange'](_0x5c776d['end'])),_0x5c776d))['filter'](_0x140c12=>'$graveyard'!==_0x140c12['root']['rootName']);if(_0xd02ec8['length']<0x1)return;const _0x4d541b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x26c908=>_0x3e72a4['fromRange'](_0x26c908));_0x5173a7['setSelection'](_0xd02ec8);for(const _0x3c1f20 of this['_editor']['commands']['commands']())_0x3c1f20['refresh']();_0x2db38f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3d421b,..._0x2db38f);const _0x20cbed=_0x4d541b['filter'](_0xe29030=>'$graveyard'!=_0xe29030['root']['rootName']);_0x20cbed['length']>0x0&&_0x5173a7['setSelection'](_0x20cbed);for(const _0x3037c3 of _0x4d541b)_0x3037c3['detach']();});},_0x53f631=(_0x509c89,_0x291504)=>0x1==_0x509c89['length']&&0x1==_0x291504['length']&&_0x509c89[0x0]['end']['isEqual'](_0x291504[0x0]['start']),_0x1ffdc0=(_0x3045f3,_0x4aec5f,_0x4b84c8,_0x5960cc)=>zt(_0x3045f3,_0x4aec5f,_0x4b84c8,_0x5960cc)?[_0x3045f3,_0x4aec5f]:zt(_0x4aec5f,_0x3045f3,_0x5960cc,_0x4b84c8)?[_0x4aec5f,_0x3045f3]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2d8c4d),this['_defaultCallbacks']['set']('insertion:discard',_0x2808a7),this['_defaultCallbacks']['set']('insertion:join',_0x53f631),this['_defaultCallbacks']['set']('insertion:chain',_0x1ffdc0),this['_defaultCallbacks']['set']('deletion:accept',_0x2808a7),this['_defaultCallbacks']['set']('deletion:discard',_0x2d8c4d),this['_defaultCallbacks']['set']('deletion:join',_0x53f631),this['_defaultCallbacks']['set']('deletion:chain',_0x1ffdc0),this['_defaultCallbacks']['set']('formatInline:accept',_0x2aa4fe),this['_defaultCallbacks']['set']('formatInline:discard',_0x2d8c4d),this['_defaultCallbacks']['set']('formatInline:join',_0x53f631),this['_defaultCallbacks']['set']('formatInline:chain',_0x2d8c4d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2aa4fe),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2d8c4d),this['_defaultCallbacks']['set']('formatBlock:join',_0x53f631),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2d8c4d),this['_defaultCallbacks']['set']('attribute:accept',_0x2d8c4d),this['_defaultCallbacks']['set']('attribute:discard',(_0x306939,_0x4fe9b7)=>{if(!_0x4fe9b7)return;const _0x36902c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5c8c82=>{if(_0x4fe9b7['key']==u)for(const _0x2aefb2 of _0x306939){const _0x4dbf35=_0x2aefb2['start']['nodeAfter'],_0x5e5b62=_0x4fe9b7['oldValue'];_0x5c8c82['rename'](_0x4dbf35,_0x5e5b62);}else{if(_0x36902c['_isBlockAttribute'](_0x4fe9b7['key'])){for(const _0x519618 of _0x306939)void 0x0!==_0x4fe9b7['oldValue']?_0x5c8c82['setAttribute'](_0x4fe9b7['key'],_0x4fe9b7['oldValue'],_0x519618['start']['nodeAfter']):_0x5c8c82['removeAttribute'](_0x4fe9b7['key'],_0x519618['start']['nodeAfter']);}else{for(const _0x4144eb of _0x306939)_0x4fe9b7['oldValue']?_0x5c8c82['setAttribute'](_0x4fe9b7['key'],_0x4fe9b7['oldValue'],_0x4144eb):_0x5c8c82['removeAttribute'](_0x4fe9b7['key'],_0x4144eb);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x53f631);}}function Pt(_0x377878,_0x138e63,_0x2b84ec){for(const _0x220ab7 of _0x138e63['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x220ab7['root']==_0x220ab7)return!0x1;if(!_0x2b84ec['containsItem'](_0x220ab7))return!0x1;if(_0x377878['isObject'](_0x220ab7)||_0x377878['isLimit'](_0x220ab7))return!0x0;}return!0x1;}function Gt(_0x497858){return _0x497858['end']['parent']==_0x497858['start']['nodeAfter']&&_0x497858['end']['isAtStart'];}function Lt(_0x56a980,_0x508638,_0x66c21e,_0x421848){const _0x2842a8=_0x56b6cf=>!_0x56b6cf['item']['is']('$textProxy')&&!_0x421848['isObject'](_0x56b6cf['item']),_0xd0ef1f=_0x56a980['start']['getLastMatchingPosition'](_0x2842a8),_0x3c3179=_0x56a980['end']['getLastMatchingPosition'](_0x2842a8,{'direction':'backward'});return(!_0x56a980['start']['isEqual'](_0xd0ef1f)||!_0x56a980['end']['isEqual'](_0x3c3179))&&(_0xd0ef1f['isBefore'](_0x3c3179)?_0x66c21e['updateMarker'](_0x508638,{'range':_0x66c21e['createRange'](_0xd0ef1f,_0x3c3179)}):_0x66c21e['removeMarker'](_0x508638),!0x0);}function Jt(_0x48fe18){return _0x5d286a(_0x48fe18);}function Kt(_0x48b28e){const _0x5c8eeb=_0x48b28e['start']['nodeAfter'];return _0x5c8eeb&&_0x5c8eeb['is']('element');}function Ht(_0x5cd48c,_0x2ac88b){return null==_0x5cd48c['end']['nodeBefore']&&_0x5cd48c['end']['parent']==_0x5cd48c['start']['nodeAfter']?qt(_0x5cd48c['start']['nodeAfter'],_0x2ac88b):_0x5cd48c;}function qt(_0x40cc5d,_0x5c0958){const _0x13a106=_0x5c0958['schema']['isObject'](_0x40cc5d)||_0x5c0958['schema']['isSelectable'](_0x40cc5d);return _0x5c0958['createRange'](_0x5c0958['createPositionAt'](_0x40cc5d,'before'),_0x13a106?_0x5c0958['createPositionAfter'](_0x40cc5d):_0x5c0958['createPositionAt'](_0x40cc5d,'end'));}function zt(_0x581f0e,_0x2e2789,_0x160244,_0x470cef){return!!Wt(_0x581f0e,_0x2e2789)&&_0x160244['end']['isEqual'](_0x470cef['start']);}function Wt(_0x5e64d9,_0x445791){if(!_0x5e64d9['_isDataLoaded']||!_0x445791['_isDataLoaded'])return!0x1;const _0xc4fc58=new Set(Object['keys'](_0x5e64d9['attributes'])),_0x22e8d2=new Set(Object['keys'](_0x445791['attributes']));if(_0xc4fc58['delete']('groupId'),_0x22e8d2['delete']('groupId'),0x0==_0xc4fc58['size']&&0x0==_0x22e8d2['size'])return!0x0;if(_0xc4fc58['size']!=_0x22e8d2['size'])return!0x1;const _0x1edd84={..._0x5e64d9['attributes']},_0x247ab6={..._0x445791['attributes']};return delete _0x1edd84['groupId'],delete _0x247ab6['groupId'],JSON['stringify'](_0x1edd84)==JSON['stringify'](_0x247ab6);}function Qt(_0x5a3eaf,_0x31434f){const _0x1aacf8=Xt(_0x5a3eaf['attributes']),_0x2ce62d=Xt(_0x31434f);if(!_0x5a3eaf['_isDataLoaded'])return!0x1;for(const _0x16c038 of Object['keys'](_0x2ce62d))if(!_0x42c2a5(_0x1aacf8[_0x16c038],_0x2ce62d[_0x16c038]))return!0x1;return!0x0;}function Xt(_0x1abee7){const _0x33bcd5=Object['assign']({},_0x1abee7);return delete _0x33bcd5['skipNestingCheck'],delete _0x33bcd5['tablePasteChainId'],_0x33bcd5;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x3e1dc1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3b5fd0,_0x270b35,_0x531b92,_0x32a54f){super(),this['model']=_0x270b35,this['view']=_0x531b92,this['commentThreadController']=_0x32a54f,this['_editor']=_0x3b5fd0,this['_acceptCommand']=_0x3b5fd0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3b5fd0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4ce31d,_0x3c53d3)=>_0x4ce31d||_0x3c53d3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x47a020=>_0x47a020&&this['_editor']['model']['canEditAt'](_0x270b35['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x24e3aa=>_0x24e3aa&&this['_editor']['model']['canEditAt'](_0x270b35['getRanges']())),this['_pendingAction']=null,_0x531b92['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x531b92,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x531b92,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x531b92,'change:isDirty',()=>{_0x531b92['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 _0x54faec=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x54faec);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1d589e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x236669,_0x5dcc60,_0x3af76e,_0x173a30){super(_0x236669),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x49a5d5(_0x236669,c(_0x236669,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5dcc60['authoredAt']),this['bind']('authoredAt')['to'](_0x5dcc60),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',_0x5dcc60,'authoredAt',this,'descriptionParts',(_0x42f790,_0x47a20a,_0x376a8d)=>{const _0x54146f=_0x376a8d['map'](_0x35ec52=>ls(_0x35ec52['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x42f790-0x1,_0x5dcc60['author']['name'],_0x47a20a?_0x173a30['formatDateTime'](_0x47a20a):'',new DOMParser()['parseFromString'](_0x54146f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x554864(),this['focusTracker']=new _0x5aee78(),this['keystrokes']=new _0x5d5448(),this['focusCycler']=new _0x1411b0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3576c8=>_0x3576c8['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5dcc60,this['_localUser']=_0x3af76e,this['_config']=_0x173a30,_0x173a30['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x472e61(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2a115b}=this['_config'];this['commentsListView']=new _0x2a115b(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',_0x580772=>_0x580772+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5291a6,_0x152ad3)=>_0x5291a6||!!_0x152ad3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x419304}=this['_config'],_0x12c5f5=new _0x419304(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x24fec9=_0x12c5f5['commentInputView'];return _0x12c5f5['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x24fec9,'value',(_0x5c041b,_0x486b9f,_0x1484c1)=>!!_0x1484c1||_0x5c041b&&!_0x486b9f),_0x24fec9['on']('submit',(_0x354dea,_0x306071)=>{this['fire']('addComment',_0x306071),_0x24fec9['editor']['setData']('');}),_0x24fec9['on']('cancel',()=>this['focus']()),_0x24fec9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x12c5f5;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x4aae74,_0x57e232,_0x2cdd78,_0x980367){super(_0x4aae74,_0x57e232,_0x2cdd78,_0x980367),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3d3429=>_0x3d3429&&_0x3d3429[0x0]?_0x3d3429[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xfd7592,_0x41ecbd)=>{let _0xc4a1bc='';for(const _0x395610 of _0xfd7592)_0xc4a1bc+='<p>'+ls(_0x395610['content'],_0x395610['color'])+'</p>';return _0x41ecbd?_0xc4a1bc:ti(_0xc4a1bc,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x980367['SuggestionView'](_0x4aae74,_0x57e232,{'formatDateTime':_0x980367['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 _0xf498e8=this['bindTemplate'],_0x3cc73b=[this['suggestionView']];return this['commentsListView']&&_0x3cc73b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3cc73b['push'](this['commentThreadInputView']),_0x3cc73b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xf498e8['if']('isActive','ck-suggestion-wrapper--active'),_0xf498e8['to']('type',_0x3ab844=>'ck-suggestion-'+_0x3ab844),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':_0xf498e8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3cc73b};}['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 _0x1d589e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x6fc810,_0xbe150b,_0x572ee0){super(_0x6fc810),this['_model']=_0xbe150b,this['_config']=_0x572ee0,this['set']('description',''),this['bind']('authoredAt')['to'](_0xbe150b),this['acceptButton']=this['_createButton'](c(_0x6fc810,'Accept\x20suggestion'),_0x85b4f,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x6fc810,'Discard\x20suggestion'),_0xe4231e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3733a4(_0x6fc810,_0xbe150b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x554864([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5aee78(),this['keystrokes']=new _0x5d5448(),this['focusCycler']=new _0x1411b0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x42cef2=>_0x42cef2['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x596c84=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x596c84['innerHTML']=this['description'],this['on']('change:description',(_0x34bbdf,_0x4985a9,_0x1efd81)=>{_0x596c84['innerHTML']=_0x1efd81;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4c258c=this['bindTemplate'],_0x56099d=[{'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':_0x4c258c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4c258c['to']('authoredAt',_0x162642=>this['_config']['formatDateTime'](_0x162642))}]}]},{'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']&&_0x56099d['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':_0x56099d}]};}['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'](_0x241a4e,_0x13889b,_0x2a55aa,_0x1565e9,_0x29425e){const _0x4d8f90=new _0x25db34(this['locale']);return _0x4d8f90['set']({'label':_0x241a4e,'icon':_0x13889b,'tooltip':!0x0,'tooltipPosition':_0x29425e}),_0x4d8f90['extendTemplate']({'attributes':{'class':_0x2a55aa}}),_0x4d8f90['on']('execute',()=>{this['fire'](_0x1565e9,this['_model']['id']);}),_0x4d8f90;}['_setupKeyboardNavigation'](){const _0x9745d3=this['element'];this['keystrokes']['listenTo'](_0x9745d3);for(const _0x24421b of this['focusables'])this['focusTracker']['add'](_0x24421b['element']),this['keystrokes']['listenTo'](_0x24421b['element']);this['keystrokes']['set']('enter',(_0x1a8de0,_0x33fd3d)=>{_0x9745d3===_0x1a8de0['target']&&(this['focusCycler']['focusFirst'](),_0x33fd3d());}),this['keystrokes']['set']('esc',(_0x36c1eb,_0x5ca09d)=>{_0x9745d3!==_0x36c1eb['target']&&(this['focus'](),_0x5ca09d());});}}class d extends _0x4d6f06{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x438bbc,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x213d63){super(_0x213d63),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xe47a68=this['editor']['config'];_0xe47a68['define']('trackChanges.SuggestionThreadView',fe),_0xe47a68['define']('trackChanges.SuggestionView',we),_0xe47a68['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xe47a68['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xb4561c,_0xf7c2b0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x46264a,_0x767847]of this['_handleControllerBuffer']){const _0xabf3ab=this['_suggestionToController']['has'](_0x46264a);_0xabf3ab||_0x767847?_0xabf3ab&&_0x767847&&this['_destroyController'](_0x46264a):this['_initializeController'](_0x46264a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xb4561c,_0xf7c2b0);}['init'](){const _0xc5d794=this['editor'],_0x46db78=_0xc5d794['plugins']['get']('TrackChangesEditing'),_0x178f6e=_0xc5d794['plugins']['get']('Annotations'),_0x365807=_0xc5d794['plugins']['get']('EditorAnnotations'),_0x532cf7=_0xc5d794['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x365807['addSourceCollector'](()=>{const _0x46bf8a=[];for(const [_0x40eca8,_0x33b6a1]of Array['from'](this['_suggestionToController'])){const _0x1aa7c3=_0x40eca8['getAllAdjacentSuggestions'](),_0x1138b6=[];for(const _0x2c5fff of _0x1aa7c3){if(!_0x2c5fff['isInContent'])continue;if(_0x2c5fff['isMultiRange']){_0x1138b6['push'](..._0x2c5fff['getRanges']());continue;}const _0x21a228=_0x2c5fff['getFirstRange']();if(_0x1138b6['length']>0x0){const _0x30d3de=_0x1138b6[0x0]['getJoined'](_0x21a228);if(_0x30d3de){_0x1138b6[0x0]=_0x30d3de;continue;}}_0x1138b6['push'](_0x21a228);}_0x46bf8a['push']([_0x33b6a1['view'],_0x1138b6]);}return _0x46bf8a;}),this['listenTo'](_0x46db78,'suggestionLoaded',(_0x54ab14,_0x3946d6)=>{this['listenTo'](_0x3946d6,'change:previous',(_0x27082d,_0x191e75,_0x5020f5,_0x2d4da2)=>{_0x3946d6['isInContent']&&(null==_0x5020f5?(this['_updateController'](_0x2d4da2['head']),this['_handleSuggestionControllerDelayed'](_0x3946d6,!0x1)):(this['_updateController'](_0x5020f5['head']),null==_0x2d4da2&&this['_handleSuggestionControllerDelayed'](_0x3946d6,!0x0)));}),null!==_0x3946d6['previous']?this['_updateController'](_0x3946d6['head']):this['_handleSuggestionControllerDelayed'](_0x3946d6,!0x1);}),this['listenTo'](_0x46db78,'suggestionUnloaded',(_0x30954c,_0x29c8a6,_0x396c2f)=>{this['stopListening'](_0x29c8a6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x29c8a6),this['_suggestionToController']['has'](_0x29c8a6)&&this['_destroyController'](_0x29c8a6),_0x396c2f&&this['_updateController'](_0x396c2f['head']);}),this['listenTo'](_0x46db78,'suggestionChanged',(_0x2ad7ca,_0x2b79d1)=>{this['_updateController'](_0x2b79d1);}),this['listenTo'](_0x178f6e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x532cf7,'addComment',(_0x2fbe39,{threadId:_0x3e4207,isFromAdapter:_0x545363})=>{if(_0x545363||!_0x46db78['hasSuggestion'](_0x3e4207))return;const _0x529b05=_0x46db78['getSuggestion'](_0x3e4207);this['_suggestionToController']['get'](_0x529b05)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1edc52=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x45b46a;for(const _0x4fb396 in _0x1edc52){const _0x40719c=_0x4fb396,_0x4c987e=_0x1edc52[_0x40719c];if('trackChangesLicenseKeyValid'==_0x4c987e||'trackChangesLicenseKeyInvalid'==_0x4c987e||'trackChangesLicenseKeyExpired'==_0x4c987e||'trackChangesLicenseKeyDomainLimit'==_0x4c987e||'trackChangesLicenseKeyNotAllowed'==_0x4c987e||'trackChangesLicenseKeyEvaluationLimit'==_0x4c987e||'trackChangesLicenseKeyTrialLimit'==_0x4c987e||'trackChangesLicenseKeyUsageLimit'==_0x4c987e){delete _0x1edc52[_0x40719c],_0x45b46a=_0x4c987e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x45b46a&&_0x1edc52['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x45b46a&&_0x1edc52['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x45b46a&&_0x1edc52['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x45b46a&&_0x1edc52['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x45b46a&&_0x1edc52['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x45b46a&&_0x1edc52['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x45b46a&&_0x1edc52['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3ad077=this['editor']['plugins']['get']('Annotations'),_0x270b0d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x164005=Array['from'](_0x3ad077['activeAnnotations'],_0x50af01=>_0x50af01['innerView'])['filter'](_0x3c27c8=>this['_viewToController']['has'](_0x3c27c8)),_0x59a968=[];for(const _0x5ed515 of _0x164005){const _0x449178=this['_viewToController']['get'](_0x5ed515)['model']['getAllAdjacentSuggestions']();_0x59a968['push'](..._0x449178['reduce']((_0x4fb56e,_0x2ba795)=>[..._0x4fb56e,..._0x2ba795['getMarkerNames']()],[]));}_0x270b0d['activeMarkers']=_0x59a968;}['_addUIComponentsToFactory'](){const _0x336f43=this['editor'],_0x438482=_0x336f43['locale'],_0xc0e6c=c(_0x438482,'Track\x20changes'),_0x3dbed7=new _0xcb124a([{'type':'switchbutton','model':new _0x582863({'withText':!0x0,'isToggleable':!0x0,'label':_0xc0e6c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x582863({'withText':!0x0,'label':c(_0x438482,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x582863({'withText':!0x0,'label':c(_0x438482,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x582863({'withText':!0x0,'label':c(_0x438482,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x582863({'withText':!0x0,'label':c(_0x438482,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x336f43['plugins']['has']('TrackChangesPreview')&&_0x3dbed7['addMany']([{'type':'separator'},{'type':'button','model':new _0x582863({'withText':!0x0,'label':c(_0x438482,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x562b2d of _0x3dbed7)if(ke(_0x562b2d)){const _0x9ccdcf=_0x336f43['commands']['get'](_0x562b2d['model']['commandName']);_0x562b2d['model']['bind']('isOn','isEnabled')['to'](_0x9ccdcf,'value','isEnabled');}_0x336f43['ui']['componentFactory']['add']('trackChanges',_0x1165bc=>this['_createToolbarButton'](_0x1165bc,_0x3dbed7,_0xc0e6c)),_0x336f43['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5afe5a=>this['_createMenuBarMenu'](_0x5afe5a,_0x3dbed7,_0xc0e6c));}['_createToolbarButton'](_0x538dbe,_0x1fb895,_0x505a3c){const _0x68d8b2=_0x10764e(_0x538dbe,_0x177050),_0x3a269d=this['editor']['commands']['get']('trackChanges');_0x68d8b2['buttonView']['set']({'tooltip':_0x505a3c,'label':_0x505a3c,'icon':_0x21460a}),_0x68d8b2['buttonView']['bind']('isOn')['to'](_0x3a269d,'value'),_0x68d8b2['buttonView']['on']('execute',()=>{_0x3a269d['execute'](),this['editor']['editing']['view']['focus']();}),_0x10e936(_0x68d8b2,_0x1fb895,{'role':'menu'});const _0xd407f2=[];for(const _0x4188b7 of _0x1fb895)ke(_0x4188b7)&&_0xd407f2['push'](this['editor']['commands']['get'](_0x4188b7['model']['commandName']));const _0x3d5e53=_0x68d8b2['buttonView'];return _0x3d5e53['actionView']['unbind']('isEnabled'),_0x3d5e53['arrowView']['unbind']('isEnabled'),_0x3d5e53['actionView']['bind']('isEnabled')['to'](_0x3a269d,'isEnabled'),_0x3d5e53['arrowView']['bind']('isEnabled')['toMany'](_0xd407f2,'isEnabled',(..._0x359d35)=>_0x359d35['some'](_0x278d7f=>_0x278d7f)),_0x68d8b2['on']('execute',_0x37be26=>{this['editor']['execute'](_0x37be26['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x68d8b2;}['_createMenuBarMenu'](_0xc6948c,_0x48cde6,_0x4bfb5b){const _0x31c086=new _0x32c410(_0xc6948c),_0x235d9f=this['editor']['commands']['get']('trackChanges');_0x31c086['buttonView']['set']({'label':_0x4bfb5b,'icon':_0x21460a});const _0x26958b=new _0x1d2671(_0xc6948c);for(const _0x2492fc of _0x48cde6){if('separator'==_0x2492fc['type']){_0x26958b['items']['add'](new _0x1b5248(_0xc6948c));continue;}const _0x5185c4=new _0x5b1654(_0xc6948c,_0x31c086),_0x34a19a=new _0x2ef8ef(_0xc6948c),_0x298f91=_0x2492fc['model'];_0x34a19a['bind'](...Object['keys'](_0x298f91))['to'](_0x298f91),_0x34a19a['delegate']('execute')['to'](_0x31c086),_0x34a19a['on']('execute',()=>{this['editor']['execute'](_0x298f91['commandName']),this['editor']['editing']['view']['focus']();}),_0x5185c4['children']['add'](_0x34a19a),_0x26958b['items']['add'](_0x5185c4);}return _0x31c086['bind']('isEnabled')['to'](_0x235d9f,'isEnabled'),_0x31c086['panelView']['children']['add'](_0x26958b),_0x31c086;}['_initializeController'](_0x372a5a){const _0x8a0f00=this['editor'],_0x417207=_0x8a0f00['config'],_0x33208c=_0x8a0f00['plugins']['get']('Annotations'),_0x11c23a=_0x8a0f00['plugins']['get']('CommentsRepository'),_0x53d526=_0x8a0f00['plugins']['get']('EditorAnnotations'),_0x10673d=_0x8a0f00['plugins']['get'](_0x438bbc)['me'],_0x2b050e=_0x417207['get']('trackChanges')['SuggestionThreadView'],_0x14a112=_0x417207['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1de022,CommentThreadInputView:_0x5e4787}=_0x8a0f00['plugins']['get']('CommentsUI');let _0x374f81,_0x460cb4,_0x1716e9;this['_annotationViews']['has'](_0x372a5a['id'])?(_0x460cb4=this['_annotationViews']['get'](_0x372a5a['id']),_0x374f81=_0x460cb4['mainView']):(_0x374f81=new _0x2b050e(_0x8a0f00['locale'],_0x372a5a,_0x10673d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x417207['get']('comments.editorConfig'),'licenseKey':_0x417207['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x417207['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x417207['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x417207['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1bdae9(_0x417207['get']('locale')),'CommentView':_0x417207['get']('comments')['CommentView'],'CommentsListView':_0x1de022,'CommentThreadInputView':_0x5e4787,'SuggestionView':_0x14a112}),_0x374f81['suggestionView']['acceptButton']['on']('execute',()=>{_0x8a0f00['editing']['view']['focus']();}),_0x374f81['suggestionView']['discardButton']['on']('execute',()=>{_0x8a0f00['editing']['view']['focus']();}),_0x460cb4=_0x33208c['createAnnotationView'](this['editor']['locale'],_0x374f81),_0x460cb4['bind']('isDirty')['to'](_0x374f81,'isDirty'),_0x460cb4['bind']('length')['to'](_0x374f81),_0x460cb4['bind']('type')['to'](_0x374f81,'type',_0x5cdc88=>'suggestion-'+_0x5cdc88),_0x374f81['on']('escape',()=>{_0x1716e9['fire']('escape');}),this['_annotationViews']['set'](_0x372a5a['id'],_0x460cb4));const _0x40e96e=_0x11c23a['createCommentThreadController'](_0x372a5a['commentThread'],_0x374f81),_0x1adaf4=new pe(_0x8a0f00,_0x372a5a,_0x374f81,_0x40e96e),_0x214452=_0x372a5a['getAllAdjacentSuggestions']()['filter'](_0x11bb47=>_0x11bb47['isInContent']);_0x374f81['descriptionParts']=_0x8a0f00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x214452),this['_suggestionToController']['set'](_0x372a5a,_0x1adaf4),this['_viewToController']['set'](_0x374f81,_0x1adaf4),_0x1716e9=_0x33208c['createAnnotation']({'view':_0x460cb4,'target':()=>{const _0x736910=[],_0x500ef5=_0x372a5a['getAllAdjacentSuggestions']()['filter'](_0x43dd56=>_0x43dd56['isInContent']);for(const _0x30bd95 of _0x500ef5)_0x736910['push'](..._0x30bd95['getMarkers']());return _0x20d586(_0x8a0f00['editing'],_0x736910);},'type':()=>'suggestion-'+_0x1adaf4['view']['type']}),_0x11c23a['_bindAnnotationToEditors'](_0x374f81,_0x1716e9),_0x33208c['add'](_0x1716e9),_0x53d526['registerAnnotation'](_0x1716e9);}['_destroyController'](_0x4fe5f2){const _0x3c0a54=this['editor']['plugins']['get']('CommentsRepository'),_0x57fc2e=this['editor']['plugins']['get']('Annotations'),_0x297c2e=this['_suggestionToController']['get'](_0x4fe5f2),_0x3aad94=_0x297c2e['view'],_0x258f5b=_0x57fc2e['getByInnerView'](_0x3aad94);_0x3c0a54['_unbindEditors'](_0x3aad94),_0x258f5b&&_0x57fc2e['remove'](_0x258f5b),this['_suggestionToController']['delete'](_0x4fe5f2),this['_viewToController']['delete'](_0x3aad94),_0x297c2e['destroy']();}['_updateController'](_0x153199){if(!_0x153199['isInContent']||!this['_suggestionToController']['has'](_0x153199))return;const _0x3dfecb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b45a7=this['_suggestionToController']['get'](_0x153199),_0x4660c9=_0x153199['getAllAdjacentSuggestions']();_0x3b45a7['view']['descriptionParts']=_0x3dfecb['descriptionFactory']['getDescriptions'](_0x4660c9);}['destroy'](){for(const _0x47fe12 of this['_suggestionToController']['keys']())this['_destroyController'](_0x47fe12);for(const _0x4f668b of this['_annotationViews']['values']())_0x4f668b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x439b05){return'model'in _0x439b05;}class k extends _0x4d6f06{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x6bd605){this['editor']['plugins']['get'](p)['adapter']=_0x6bd605;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xf02042){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xf02042);}['getSuggestions']({skipNotAttached:_0x5c43e6=!0x1,toJSON:_0x2e177e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5c43e6,'toJSON':_0x2e177e});}['getSuggestion'](_0x2f76f4){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2f76f4);}}const w=['Pagination'];class T extends _0x4d6f06{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x32b8e4=this['editor'];if(_0x32b8e4['config']['define']('trackChangesData.editorCreator',_0x28c162=>{const _0x55b74f=_0x32b8e4['model']['document']['getRootNames']()['reduce']((_0x2d8aa8,_0x13988a)=>(_0x2d8aa8[_0x13988a]='',_0x2d8aa8),{});return _0x32b8e4['constructor']['create'](_0x55b74f,_0x28c162);}),'function'!=typeof _0x32b8e4['config']['get']('trackChangesData')['editorCreator'])throw new _0x190b7b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5701ec){return N(this['editor'],!0x0,_0x5701ec);}['getDataWithDiscardedSuggestions'](_0x415f03){return N(this['editor'],!0x1,_0x415f03);}}class D extends _0x4d6f06{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5374cc){function _0x6479e6(_0x3c17bf){return _0x3c17bf['map'](_0x534faf=>String['fromCharCode'](_0x534faf))['join']('');}super(_0x5374cc),this['result']='end',_0x5374cc[_0x6479e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6479e6([0x76,0x69,0x65,0x77])][_0x6479e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6479e6([0x61,0x75,0x74,0x6f]),_0x5374cc[_0x6479e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x6479e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6479e6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x6479e6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x6479e6([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 Fe(_0x1fecd0){return void 0x0!==_0x1fecd0['getRootsAttributes'];}async function N(_0x290394,_0x349976,_0x48e155){const _0x2f4a14=_0x5bf450(_0x290394,w);_0x2f4a14['plugins']['push'](p,D),_0x2f4a14['rootsAttributes']=Fe(_0x290394)?_0x290394['getRootsAttributes']():void 0x0;const _0x4900e9=document['createDocumentFragment'](),_0x2fb403=_0x290394['config']['get']('trackChangesData')['editorCreator'],_0x5426d9=await _0x2fb403(_0x2f4a14,()=>function(_0x52e9e6){const _0x280563=document['createElement']('div');return _0x52e9e6['appendChild'](_0x280563),_0x280563;}(_0x4900e9));!function(_0x4f9b1f,_0x211282){const _0x3122a2=_0x4f9b1f['model']['document']['getRootNames']()['reduce']((_0x53af10,_0x15f05e)=>(_0x53af10[_0x15f05e]=_0x4f9b1f['data']['get']({'rootName':_0x15f05e}),_0x53af10),{}),_0x4f57db=_0x4f9b1f['plugins']['get']('Users')['users']['map'](_0x3a2bfd=>({'id':_0x3a2bfd['id'],'name':_0x3a2bfd['name']})),_0x4caea3=_0x4f9b1f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x283e2e=_0x4f9b1f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x14c1e3=_0x211282['plugins']['get']('Users'),_0xac9f39=_0x211282['plugins']['get']('TrackChangesEditing'),_0xc05b78=_0x211282['plugins']['get']('CommentsRepository');for(const _0x19e692 of _0xc05b78['getCommentThreads']())_0x19e692['remove']();for(const _0x9233ef of _0x4f57db)_0x14c1e3['getUser'](_0x9233ef['id'])||_0x14c1e3['addUser'](_0x9233ef);_0x14c1e3['me']||_0x14c1e3['useAnonymousUser']();for(const _0x490637 of _0x283e2e)_0xc05b78['addCommentThread'](_0x490637);for(const _0x85dd8b of _0x4caea3)_0xac9f39['addSuggestionData'](_0x85dd8b);_0x211282['data']['set'](_0x3122a2);}(_0x290394,_0x5426d9),_0x5426d9['execute'](_0x349976?'acceptAllSuggestions':'discardAllSuggestions');const _0x1f351e=Fe(_0x5426d9)?_0x5426d9['getFullData'](_0x48e155):_0x5426d9['data']['get'](_0x48e155);return await _0x5426d9['destroy'](),_0x1f351e;}class Me extends _0x1d589e{['options'];constructor(_0x1a27ca,_0x1374b6){super(_0x1a27ca),this['options']=_0x1374b6,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'](_0x45872a,_0x5d5408){if(!this['element'])return;const _0x37cce5=[];for(const [_0x40f9d1,_0xb4bf06]of _0x45872a){const _0xe657cf=document['createElement']('div');_0xe657cf['setAttribute']('data-ck-root-name',_0x40f9d1),_0xe657cf['className']=_0xb4bf06['classes']+'\x20ck-track-changes-preview__root-container',_0xe657cf['innerHTML']=_0xb4bf06['content'],_0x37cce5['push'](_0xe657cf);}_0x5d5408(this['element'],_0x37cce5),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x2c30c1{constructor(_0x18e2ff){super(_0x18e2ff),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x144f64=this['editor'],_0x5a2058=_0x144f64['locale'],_0x4790be=_0x144f64['plugins']['get']('Dialog');let _0x4937b5;const _0x13be45=function(_0x1d00c7){const _0x5aa4ff={};if('editables'in _0x1d00c7['ui']['view']){for(const [_0x3815d2,_0x333385]of Object['entries'](_0x1d00c7['ui']['view']['editables']))_0x5aa4ff[_0x3815d2]=_0x333385['element'];}else _0x5aa4ff[_0x1d00c7['model']['document']['getRootNames']()[0x0]]=_0x1d00c7['ui']['view']['editable']['element'];return _0x5aa4ff;}(_0x144f64),_0x3e763c=function(_0x5e3aff){let _0x5ab934=0x0;for(const _0x218e38 of Object['values'](_0x5e3aff))_0x5ab934=Math['max'](_0x5ab934,_0x218e38['getBoundingClientRect']()['width']);let _0xba16cb=0x0;for(const _0x173834 of Object['values'](_0x5e3aff))_0xba16cb+=_0x173834['getBoundingClientRect']()['height'];const _0x58b7d3=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3199a5=Math['min'](_0xba16cb,_0x58b7d3);return{'width':_0x5ab934,'height':_0x3199a5};}(_0x13be45);_0x4790be['show']({'id':'finalContentPreview','title':c(_0x5a2058,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5a2058,{'dialogRects':_0x3e763c}),'onHide':()=>{_0x4937b5['detachFromDom']();},'onShow':()=>{_0x144f64['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4d7423=>{const _0x39e12c=this['_standarizeRootsData'](_0x4d7423,_0x144f64,_0x13be45);_0x4790be['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x39e12c,_0x144f64['config']['get']('trackChanges.preview.renderFunction'));}),_0x4937b5=new _0x5bfcda(_0x5a2058,[_0x4790be['view']]),_0x4937b5['attachToDom'](),_0x4937b5['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x144f64['once']('destroy',()=>{_0x4937b5['detachFromDom']();});const _0x1a6a11=_0x4790be['view']['headerView']['class'];_0x4790be['view']['headerView']['class']=_0x1a6a11?_0x1a6a11+'\x20ck-reset_all':'ck-reset_all',_0x4790be['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4790be['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x362d52=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3e0831=_0x362d52['previewMode'],_0x44ff10={};if('$labels'===_0x3e0831){for(const _0x3ea6d7 of _0x362d52['getMergeFieldsIds']())_0x44ff10[_0x3ea6d7]=_0x362d52['getLabel'](_0x3ea6d7)||_0x3ea6d7;}else{const _0x5272fe='$defaultValues'===_0x3e0831?_0x362d52['getDefaultValues']():_0x362d52['getDataSetValues'](_0x3e0831,!0x0);for(const _0x62d1d9 of Object['entries'](_0x5272fe)){const [_0x2c1ba0,_0x1f25aa]=_0x62d1d9;_0x44ff10[_0x2c1ba0]=null!==_0x1f25aa?_0x1f25aa:_0x362d52['getLabel'](_0x2c1ba0)||_0x2c1ba0;}}return{'mergeFieldsData':_0x44ff10};}['_standarizeRootsData'](_0x4d2fc4,_0x30116e,_0x1fa87e){let _0x473a66;if('string'==typeof _0x4d2fc4){const _0xf57cda=_0x30116e['model']['document']['getRootNames']()[0x0];_0x473a66={[_0xf57cda]:_0x4d2fc4};}else _0x473a66=_0x4d2fc4;const _0x33a4aa=this['_fixMediaEmbeds'](_0x473a66,_0x30116e),_0x573ba7=function(_0x5549b7,_0x52fd8d){for(const [_0x324494,_0x599e42]of _0x5549b7)_0x599e42['classes']=_0x52fd8d[_0x324494]['classList']['value']['replace']('ck-focused','');return _0x5549b7;}(this['_sortRoots'](_0x30116e)['reduce']((_0x447ce2,_0x45db0b)=>(_0x447ce2['push']([_0x45db0b,{'content':_0x33a4aa[_0x45db0b],'classes':''}]),_0x447ce2),[]),_0x1fa87e);return _0x573ba7;}['_fixMediaEmbeds'](_0x5b0ca6,_0x3111a8){if(!_0x3111a8['plugins']['has']('MediaEmbedEditing'))return _0x5b0ca6;const _0x57cfe5=_0x3111a8['plugins']['get']('MediaEmbedEditing');for(const [_0x4955f0,_0x3b4bfc]of Object['entries'](_0x5b0ca6)){const _0x2b15ee=document['createElement']('div');_0x2b15ee['innerHTML']=_0x3b4bfc,(_0x2b15ee['querySelectorAll']('figure.media')['forEach'](_0x453788=>{const _0x4ca80c=_0x453788['querySelector']('oembed');if(_0x4ca80c){const _0x499618=_0x4ca80c['getAttribute']('url');if(_0x499618){const _0x295657=_0x57cfe5['registry']['getMediaViewElement'](new _0x164888(_0x3111a8['editing']['view']['document']),_0x499618,{'elementName':'','renderForEditingView':!0x0}),_0xd389aa=document['createElement']('div');_0xd389aa['classList']['add']('ck-media__wrapper'),_0x295657['render'](_0xd389aa,_0x3111a8['editing']['view']['domConverter']),_0x4ca80c['replaceWith'](_0xd389aa);}}}),_0x5b0ca6[_0x4955f0]=_0x2b15ee['innerHTML']);}return _0x5b0ca6;}['_sortRoots'](_0x4b59fd){if(!function(_0x444b81){return void 0x0!==_0x444b81['getRootsAttributes'];}(_0x4b59fd))return _0x4b59fd['model']['document']['getRootNames']();const _0x4511f6=[],_0x2ce88e=new Map();for(const _0x857669 of _0x4b59fd['model']['document']['getRootNames']()){const _0x96e839=_0x4b59fd['editing']['view']['getDomRoot'](_0x857669)['getClientRects']()['item'](0x0);_0x4511f6['push'](_0x857669),_0x2ce88e['set'](_0x857669,_0x96e839);}return _0x4511f6['sort']((_0x5ecb3f,_0x1c1fd8)=>{const _0x10dcc0=_0x2ce88e['get'](_0x5ecb3f),_0x4f390c=_0x2ce88e['get'](_0x1c1fd8);return _0x10dcc0['y']-_0x4f390c['y']||_0x10dcc0['x']-_0x4f390c['x'];}),_0x4511f6;}}class te extends _0x4d6f06{static get['requires'](){return[T,_0x2a8fe3];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x526767){super(_0x526767),_0x526767['commands']['add']('previewFinalContent',new re(this['editor'])),_0x526767['config']['define']('trackChanges.preview.renderFunction',(_0x4cb318,_0x4cfc9f)=>{for(const _0x54d4d5 of _0x4cfc9f)_0x4cb318['appendChild'](_0x54d4d5);});}}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};