@ckeditor/ckeditor5-track-changes 43.2.0-alpha.2 → 43.2.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x58a0bc,PendingActions as _0xb7ca76,icons as _0x1d5681}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4ee7fd,ObservableMixin as _0x1ca92d,uid as _0x546e08,insertToPriorityArray as _0x188a5a,priorities as _0x44834d,logWarning as _0x4639c6,getEnvKeystrokeText as _0x1ca498,FocusTracker as _0x5423cf,KeystrokeHandler as _0x4ec4fb,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2f7d63,View as _0xa93036,ViewCollection as _0x3a64bc,FocusCycler as _0x261d2c,ViewModel as _0x590c00,createDropdown as Qt,SplitButtonView as _0x530bd8,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x397c51}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5983d1,hashObject as _0x4bbe82,surroundingMarkersDetector as _0x4f11ef,FOCUS_ANNOTATION_KEYSTROKE as _0x2e5bcc,AriaDescriptionView as _0x2f9985,setupThreadKeyboardNavigation as _0x3e3d09,trimHtml as _0x260589,UserView as _0xd53404,LateFocusButtonView as _0x55410d,getDateTimeFormatter as _0x2fcf1,getAllMarkersDomElementsSorted as _0x4d4b32,sanitizeEditorConfig as _0x4f17fa}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x15e4c1,LiveRange as _0x1ac7bd,LivePosition as _0x3a1667}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x325294,toWidget as _0x3601d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x15bc28,set as _0x75b7dd,isEqual as _0x11af30,unset as _0x47beff,omit as Tt}from'lodash-es';import{Delete as _0x45edbc,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4d33f4,ShiftEnter as _0x210491}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x19a794,_0x55ca76){super(_0x19a794),this['_enabledCommands']=_0x55ca76,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 _0x1b9f71 of this['editor']['commands']['commands']())_0x1b9f71['affectsData']&&!this['_enabledCommands']['has'](_0x1b9f71)&&_0x1b9f71['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3b5e69 of this['editor']['commands']['commands']())_0x3b5e69['affectsData']&&!this['_enabledCommands']['has'](_0x3b5e69)&&_0x3b5e69['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x4027c6,_0x7ea2a7){super(_0x4027c6),this['_suggestions']=_0x7ea2a7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x545188){const _0x4d8cad=this['_suggestions']['get'](_0x545188);if(!_0x4d8cad)throw new _0x4ee7fd('track-changes-accept-suggestion-not-found',this);const _0x14a77b=_0x4d8cad['getRanges']();this['editor']['model']['canEditAt'](_0x14a77b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4d8cad);}}class R extends ts{['_suggestions'];constructor(_0x2f88b6,_0x19e7ea){super(_0x2f88b6),this['_suggestions']=_0x19e7ea,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x353f43){const _0x537aa4=this['_suggestions']['get'](_0x353f43);if(!_0x537aa4)throw new _0x4ee7fd('track-changes-discard-suggestion-not-found',this);const _0x3b7543=_0x537aa4['getRanges']();this['editor']['model']['canEditAt'](_0x3b7543)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x537aa4);}}function ls(_0x4e5485,_0x2ca970){let _0x47a2aa='';return _0x47a2aa+=_0x4e5485['split']('*')['map']((_0x33324a,_0x4af6fb)=>_0x4af6fb%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x33324a)+'</span>':nn(_0x33324a))['join'](''),_0x2ca970&&(_0x47a2aa+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2ca970['value']+'\x22\x20title=\x22'+_0x2ca970['title']+'\x22></span>'),_0x47a2aa;}function nn(_0x466ed6){const _0x22fea3=document['createElement']('span');return _0x22fea3['innerText']=_0x466ed6,_0x22fea3['innerHTML'];}function ss(_0x31db2b){return _0x31db2b['sort']((_0x46b3d3,_0x4d88d4)=>'deletion'==_0x46b3d3['type']&&'deletion'!=_0x4d88d4['type']?-0x1:'deletion'!=_0x46b3d3['type']&&'deletion'==_0x4d88d4['type']?0x1:0x0);}function to(_0x2c60db,_0x17aac5){let _0x5b3915,_0x414cb9=0x0;const _0x131dc5=[],_0x5c396a=_0x17aac5['schema'];for(;_0x414cb9<_0x2c60db['length'];){const _0x6edc32=_0x2c60db[_0x414cb9],_0x3242b6=_0x2c60db[_0x414cb9+0x1];_0x5b3915||(_0x5b3915=_0x17aac5['createPositionBefore'](_0x6edc32)),on(_0x17aac5,_0x6edc32,_0x3242b6)||(_0x131dc5['push'](_0x17aac5['createRange'](_0x5b3915,_0x5c396a['isObject'](_0x6edc32)?_0x17aac5['createPositionAfter'](_0x6edc32):_0x17aac5['createPositionAt'](_0x6edc32,'end'))),_0x5b3915=null),_0x414cb9++;}return _0x131dc5;}function on(_0x4107ad,_0x321cf0,_0x394894){if(!_0x394894)return!0x1;const _0x33732b=_0x4107ad['createPositionAfter'](_0x321cf0),_0x269e82=_0x4107ad['createPositionBefore'](_0x394894);return _0x33732b['isTouching'](_0x269e82);}function rs(_0x4dcec4,_0x3a5d11,_0x3e1f4a){for(;_0x3e1f4a['length'];){const _0x4d9e5e=_0x3e1f4a['splice'](0x0,0x64);_0x4dcec4['change'](()=>{for(const _0x209e66 of _0x4d9e5e)_0x209e66['isInContent']&&_0x3a5d11['execute'](_0x209e66['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x1fe229,_0x58e409,_0x1fa61a){super(_0x1fe229),this['_command']=_0x58e409,this['_suggestions']=_0x1fa61a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5b3c57=Array['from'](this['_suggestions']['values']())['some'](_0x4d7e1f=>_0x4d7e1f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5b3c57;}['execute'](){const _0x349b0c=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1106da of _0x349b0c){const _0x67d9f5=_0x1106da['getRanges']();if(!this['editor']['model']['canEditAt'](_0x67d9f5))return;}rs(this['editor']['model'],this['_command'],_0x349b0c);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5e20f1,_0x6ad0ed,_0x1935e9){super(_0x5e20f1),this['_command']=_0x6ad0ed,this['_suggestions']=_0x1935e9,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x37ca43=this['editor']['model']['document']['selection'],_0x3e39a4=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x54c3cd,_0x16f7e9){const _0xa63681=Array['from'](_0x54c3cd['getRanges']()),_0x32c66b=new Set();for(const _0x147807 of _0x16f7e9)if(_0x147807['isInContent']){for(const _0x14acb3 of _0xa63681)for(const _0x2d6e01 of _0x147807['getRanges']())(_0x14acb3['isIntersecting'](_0x2d6e01)||_0x54c3cd['isCollapsed']&&!_0x147807['isMultiRange']&&_0x147807['next']&&_0x2d6e01['end']['isTouching'](_0x14acb3['start']))&&_0x32c66b['add'](_0x147807);}return _0x32c66b;}(_0x37ca43,_0x3e39a4),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x133041=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4134a7 of _0x133041){const _0x2b5b21=_0x4134a7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2b5b21))return;}rs(this['editor']['model'],this['_command'],_0x133041);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x1ca92d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x71b965,_0x72a87f){super(),this['id']=_0x72a87f['id'],this['type']=_0x72a87f['type'],this['subType']=_0x72a87f['subType']||null,this['author']=_0x72a87f['author'],this['creator']=_0x72a87f['creator']||_0x72a87f['author'],this['isExternal']=Boolean(_0x72a87f['attributes']&&_0x72a87f['attributes']['@external']),this['data']=null,this['_model']=_0x71b965,this['_onAccept']=_0x72a87f['onAccept'],this['_onDiscard']=_0x72a87f['onDiscard'],this['_onAttributesChange']=_0x72a87f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x72a87f['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 _0xaa51ad=this;for(;_0xaa51ad['previous'];)_0xaa51ad=_0xaa51ad['previous'];return _0xaa51ad;}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'](_0x40f225){this['_markerNames']['add'](_0x40f225);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x211b4f=>this['_model']['markers']['get'](_0x211b4f))['filter'](_0x545405=>_0x545405);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2f914c=>{for(const _0x1bfce6 of this['getMarkers']())_0x2f914c['removeMarker'](_0x1bfce6);}),this['_markerNames']['clear']();}['removeMarker'](_0x3ae5ca){this['_model']['change'](_0x145958=>{_0x145958['removeMarker'](_0x3ae5ca);}),this['_markerNames']['delete'](_0x3ae5ca);}['addRange'](_0x579033){const _0x4cd47b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4cd47b),this['_model']['change'](_0x5660b1=>{_0x5660b1['addMarker'](_0x4cd47b,{'range':_0x579033,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x380769){for(const _0x574021 of this['getRanges']())if(_0x574021['isIntersecting'](_0x380769))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xb934f3=>_0xb934f3['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2fac57,_0x2878a6)=>[..._0x2fac57,..._0x2878a6['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x314569=this['getRanges']();if(0x1!=_0x314569['length'])return null;const _0x234ffa=_0x314569[0x0],_0x193d98=_0x234ffa['start']['nodeAfter'],_0x1ff95f=_0x234ffa['end']['nodeBefore'];return _0x193d98 instanceof _0x15e4c1?_0x193d98!=_0x1ff95f?null:_0x193d98: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 _0x4c3537=[];let _0x5a149d=this['head'];for(;_0x5a149d;)_0x4c3537['push'](_0x5a149d),_0x5a149d=_0x5a149d['next'];return _0x4c3537;}['setAttribute'](_0x2d4635,_0x324d21){const _0x5c9877=_0x15bc28(this['attributes']);_0x75b7dd(_0x5c9877,_0x2d4635,_0x324d21),_0x11af30(_0x5c9877,this['attributes'])||(this['attributes']=_0x5c9877,this['_onAttributesChange'](_0x5c9877));}['removeAttribute'](_0x42b55f){const _0x3bf159=_0x15bc28(this['attributes']);_0x47beff(_0x3bf159,_0x42b55f),_0x11af30(_0x3bf159,this['attributes'])||(this['attributes']=_0x3bf159,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 _0x546e08()['substr'](0x1,0x5);}}function o(_0x24a8e5,_0x3858c7,_0x23cd92){const t=_0x24a8e5['t'];switch(_0x3858c7){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x23cd92);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x23cd92);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x23cd92);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x23cd92);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x23cd92);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',_0x23cd92);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x23cd92);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x23cd92);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x23cd92);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x23cd92);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x23cd92);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x23cd92);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x23cd92);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x23cd92);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x23cd92);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x23cd92);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x23cd92);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x23cd92);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x23cd92);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x23cd92);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x23cd92);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x23cd92);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x23cd92);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'},_0x23cd92);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x23cd92);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x23cd92);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x23cd92);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x23cd92);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x23cd92);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x23cd92);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x23cd92);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x23cd92);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'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x23cd92);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x23cd92);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'},_0x23cd92);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x23cd92);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x23cd92);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x23cd92);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'},_0x23cd92);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'},_0x23cd92);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'},_0x23cd92);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3858c7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1279db,_0x2ad7cb){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1279db,this['_locale']=_0x2ad7cb;}['getDescriptions'](_0xdd88b9){const _0x151792=[],_0x304f18=new Set(),_0x43fb86=new Set();for(let _0x53aa6b=0x0;_0x53aa6b<_0xdd88b9['length'];_0x53aa6b++){const _0x540429=_0xdd88b9[_0x53aa6b];if(!_0x540429['isInContent'])continue;const _0x42a73e=this['_handleCustomCallbackDescription'](_0x540429);if(_0x42a73e){if(null!=_0x540429['subType']){if(_0x304f18['has'](_0x540429['subType']))continue;_0x304f18['add'](_0x540429['subType']);}_0x151792['push'](_0x42a73e);}else{if('attribute'!=_0x540429['type'])'insertion'!=_0x540429['type']&&'deletion'!=_0x540429['type']||this['_handleInsertRemoveSuggestionDescription'](_0x151792,_0x540429,_0xdd88b9[_0x53aa6b+0x1]);else{const _0x450465=_0x540429['data']['key'];if(_0x43fb86['has'](_0x450465))continue;_0x43fb86['add'](_0x540429['data']['key']),_0x450465==m?this['_handleRenameSuggestionDescription'](_0x151792,_0x540429):this['_handleAttributeSuggestionDescription'](_0x151792,_0x540429);}}}return this['_resolveDescriptionItems'](_0x151792);}['registerDescriptionCallback'](_0x1a5803){this['_customCallbacks']['push'](_0x1a5803);}['registerElementLabel'](_0x46df27,_0x3bfe99,_0x304c61=_0x44834d['normal']){'function'==typeof _0x46df27?_0x188a5a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x46df27,'label':_0x3bfe99,'priority':_0x304c61}):this['_itemLabels']['set'](_0x46df27,_0x3bfe99);}['registerAttributeLabel'](_0x531620,_0x484ddb){this['_attributeLabels']['set'](_0x531620,_0x484ddb);}['getItemLabel'](_0x40638b,_0xa9fc6a=0x1){let _0x47b007;for(const _0x31137b of this['_itemLabelsCallbacks'])if(_0x31137b['matchingCallback'](_0x40638b)){_0x47b007=_0x31137b['label'];break;}return _0x47b007||(_0x47b007=this['_itemLabels']['get'](_0x40638b['name'])),_0x47b007?_0x47b007(_0xa9fc6a):0x1!==_0xa9fc6a?_0xa9fc6a+'\x20'+_0x40638b['name']+'s':''+_0x40638b['name'];}['_addDescriptionItems'](_0x59df06,_0x1e98c9){const _0x4185ad=_0x1e98c9['getFirstRange']()['getWalker'](),_0x3a10e6='insertion'==_0x1e98c9['type']?'add':'remove';for(const _0x2467c2 of _0x4185ad){const _0x5ee7ce=_0x2467c2['item'],_0x2a8ce5=_0x59df06[_0x59df06['length']-0x1];if(_0x5ee7ce['is']('$textProxy'))_0x2a8ce5&&_0x2a8ce5['type']['indexOf']('Container')>-0x1&&_0x59df06['pop'](),_0x2a8ce5&&'text'==_0x2a8ce5['type']?_0x2a8ce5[_0x3a10e6]+=_0x5ee7ce['data']:_0x59df06['push']({'type':'text','add':'add'==_0x3a10e6?_0x5ee7ce['data']:'','remove':'remove'==_0x3a10e6?_0x5ee7ce['data']:''});else{if(this['_schema']['isObject'](_0x5ee7ce)){const _0x16af4c=_0x5ee7ce;if(_0x2a8ce5&&_0x2a8ce5['type']['indexOf']('Container')>-0x1&&_0x59df06['pop'](),'elementEnd'==_0x2467c2['type'])continue;_0x2a8ce5&&_0x2a8ce5['type']==_0x3a10e6+'Object'&&_0x2a8ce5['element']['name']==_0x16af4c['name']?_0x2a8ce5['quantity']++:_0x59df06['push']({'type':_0x3a10e6+'Object','element':_0x16af4c,'quantity':0x1}),_0x4185ad['skip'](_0x309b50=>!('elementEnd'==_0x309b50['type']&&_0x309b50['item']==_0x5ee7ce));}else{if(this['_schema']['checkChild'](_0x5ee7ce,'$text')||_0x5ee7ce['is']('element','softBreak')){const _0x4a82e5=_0x5ee7ce;if('add'==_0x3a10e6&&'elementStart'==_0x2467c2['type']||'remove'==_0x3a10e6&&'elementEnd'==_0x2467c2['type'])continue;if(_0x2a8ce5&&-0x1==_0x2a8ce5['type']['indexOf']('Container')){'text'==_0x2a8ce5['type']&&(_0x2a8ce5[_0x3a10e6]+='\x0a');continue;}let _0x5d363f;if(_0x5d363f='add'==_0x3a10e6?_0x4a82e5['nextSibling']&&!this['_schema']['isObject'](_0x4a82e5['nextSibling'])?_0x4a82e5['nextSibling']:null:_0x4a82e5['previousSibling']&&!this['_schema']['isObject'](_0x4a82e5['previousSibling'])?_0x4a82e5['previousSibling']:null,_0x4a82e5['isEmpty']||_0x5d363f&&_0x5d363f['isEmpty']){const _0x33cf9a=_0x5d363f&&_0x5d363f['isEmpty']?_0x5d363f:_0x4a82e5;_0x2a8ce5&&_0x2a8ce5['type']==_0x3a10e6+'EmptyContainer'&&_0x2a8ce5['element']['name']==_0x33cf9a['name']?_0x2a8ce5['quantity']++:_0x59df06['push']({'type':_0x3a10e6+'EmptyContainer','element':_0x33cf9a,'quantity':0x1});}else _0x59df06['push']({'type':_0x3a10e6+'Container','element':_0x4a82e5});}}}}}['_resolveDescriptionItems'](_0x2f3744){const _0x113d17=this['_locale'],_0x48d606=[],_0x1cf903=[],_0xe839=[];for(const _0x17b5f5 of _0x2f3744)switch(_0x17b5f5['type']){case'text':if(_0x17b5f5['add']=_0x17b5f5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x17b5f5['remove']=_0x17b5f5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x17b5f5['add']&&''!=_0x17b5f5['remove']){_0x48d606['push']({'type':'replace','content':o(_0x113d17,'REPLACE_TEXT',['\x22'+_0x17b5f5['remove']+'\x22','\x22'+_0x17b5f5['add']+'\x22'])});continue;}if(null!=_0x17b5f5['add']['match'](/^ +$/)){_0x48d606['push']({'type':'insertion','content':o(_0x113d17,'*Insert:*\x20%0',o(_0x113d17,'ELEMENT_SPACE',_0x17b5f5['add']['length']))});continue;}if(null!=_0x17b5f5['remove']['match'](/^ +$/)){_0x48d606['push']({'type':'deletion','content':o(_0x113d17,'*Remove:*\x20%0',o(_0x113d17,'ELEMENT_SPACE',_0x17b5f5['remove']['length']))});continue;}if(''!=_0x17b5f5['add']){_0x48d606['push']({'type':'insertion','content':o(_0x113d17,'*Insert:*\x20%0','\x22'+_0x17b5f5['add']+'\x22')});continue;}_0x48d606['push']({'type':'deletion','content':o(_0x113d17,'*Remove:*\x20%0','\x22'+_0x17b5f5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x48d606['push']({'type':'insertion','content':o(_0x113d17,'*Insert:*\x20%0',this['getItemLabel'](_0x17b5f5['element'],_0x17b5f5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x48d606['push']({'type':'deletion','content':o(_0x113d17,'*Remove:*\x20%0',this['getItemLabel'](_0x17b5f5['element'],_0x17b5f5['quantity']))});continue;case'addContainer':_0x48d606['push']({'type':'insertion','content':o(_0x113d17,'*Split:*\x20%0',this['getItemLabel'](_0x17b5f5['element'],_0x17b5f5['quantity']))});continue;case'removeContainer':_0x48d606['push']({'type':'deletion','content':o(_0x113d17,'*Merge:*\x20%0',this['getItemLabel'](_0x17b5f5['element'],_0x17b5f5['quantity']))});continue;case'addFormat':_0x1cf903['push'](_0x17b5f5['key']);continue;case'removeFormat':_0xe839['push'](_0x17b5f5['key']);continue;default:_0x48d606['push'](_0x17b5f5);}if(_0x1cf903['length']){const _0x1f3bf4=_0x1cf903['map'](_0x43d59f=>this['_attributeLabels']['has'](_0x43d59f)?this['_attributeLabels']['get'](_0x43d59f):_0x43d59f)['join'](',\x20');_0x48d606['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1f3bf4)});}if(_0xe839['length']){const _0x4e9c36=_0xe839['map'](_0x40110a=>this['_attributeLabels']['has'](_0x40110a)?this['_attributeLabels']['get'](_0x40110a):_0x40110a)['join'](',\x20');_0x48d606['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4e9c36)});}return _0x48d606;}['_handleCustomCallbackDescription'](_0x2a2d95){for(const _0x1e4527 of this['_customCallbacks']){const _0x2fb77c=_0x1e4527(_0x2a2d95);if(_0x2fb77c&&'type'in _0x2fb77c)return _0x2fb77c;}}['_handleAttributeSuggestionDescription'](_0x3a9b3f,_0x4b6656){const _0x515333=_0x4b6656['data'],_0x56f218=void 0x0===_0x515333['newValue']?'removeFormat':'addFormat';_0x3a9b3f['push']({'type':_0x56f218,'key':_0x515333['key']});}['_handleRenameSuggestionDescription'](_0x3ed151,_0xd9ac6a){_0x3ed151['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xd9ac6a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x36ad53,_0x52d379,_0x11937f){if(this['_addDescriptionItems'](_0x36ad53,_0x52d379),_0x11937f&&_0x11937f['getFirstRange']()&&!_0x52d379['getFirstRange']()['end']['isEqual'](_0x11937f['getFirstRange']()['start'])){const _0x4cb727=_0x36ad53[_0x36ad53['length']-0x1],_0x2e306f='insertion'==_0x52d379['type']?'add':'remove';_0x4cb727&&'text'==_0x4cb727['type']&&(_0x4cb727[_0x2e306f]+='\x0a');}}}class V extends _0x58a0bc{['afterInit'](){const _0xd79203=this['editor'],_0x345393=_0xd79203['plugins']['get']('TrackChangesEditing');_0xd79203['commands']['get']('showAIAssistant')&&_0x345393['enableCommand']('showAIAssistant');}}class U extends _0x58a0bc{['afterInit'](){const _0x9190c7=this['editor'],_0x375159=_0x9190c7['locale'];if(!_0x9190c7['plugins']['has']('AlignmentEditing'))return;const _0x5d054f=_0x9190c7['plugins']['get']('TrackChangesEditing');_0x5d054f['enableDefaultAttributesIntegration']('alignment'),_0x5d054f['registerBlockAttribute']('alignment'),_0x5d054f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x375159,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f0ef5=this['editor'],_0x45b0=_0x1f0ef5['locale'];_0x1f0ef5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x350549=>{if('formatBlock'!=_0x350549['type'])return;const {data:_0x3bff25}=_0x350549;if(_0x3bff25&&'alignment'==_0x3bff25['commandName']){const _0x1d2fdd=_0x3bff25['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x45b0,'*Format:*\x20%0',function(_0x16464a){switch(_0x16464a){case'left':return o(_0x45b0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x45b0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x45b0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x45b0,'FORMAT_JUSTIFY_TEXT');}}(_0x1d2fdd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x58a0bc{['afterInit'](){const _0x378933=this['editor'],_0x520339=_0x378933['plugins']['get']('TrackChangesEditing'),_0x42c18a=_0x378933['locale'];for(const _0xe3a9a of ti){if(!_0x378933['plugins']['has'](_0xe3a9a))continue;const _0x4c8403=_0xe3a9a['slice'](0x0,-0x7)['toLowerCase'](),_0x385e88='FORMAT_'+_0x4c8403['toUpperCase']();_0x520339['enableDefaultAttributesIntegration'](_0x4c8403),_0x520339['registerInlineAttribute'](_0x4c8403),_0x520339['descriptionFactory']['registerAttributeLabel'](_0x4c8403,o(_0x42c18a,_0x385e88));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4372cc=this['editor'],_0x4f7661=_0x4372cc['locale'],_0x17fc04=_0x4372cc['plugins']['get']('TrackChangesEditing');function _0x1caca7(_0x32be58,_0x1ea323){_0x17fc04['descriptionFactory']['registerDescriptionCallback'](_0x5e1fde=>{if('formatInline'!=_0x5e1fde['type'])return;const {data:_0x2f34f7}=_0x5e1fde;return _0x2f34f7&&_0x2f34f7['commandName']===_0x32be58?_0x2f34f7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f7661,'*Format:*\x20%0',_0x1ea323)}:{'type':'format','content':o(_0x4f7661,'*Remove\x20format:*\x20%0',_0x1ea323)}:void 0x0;});}_0x1caca7('bold',o(_0x4f7661,'FORMAT_BOLD')),_0x1caca7('italic',o(_0x4f7661,'FORMAT_ITALIC')),_0x1caca7('underline',o(_0x4f7661,'FORMAT_UNDERLINE')),_0x1caca7('code',o(_0x4f7661,'FORMAT_CODE')),_0x1caca7('strikethrough',o(_0x4f7661,'FORMAT_STRIKETHROUGH')),_0x1caca7('subscript',o(_0x4f7661,'FORMAT_SUBSCRIPT')),_0x1caca7('superscript',o(_0x4f7661,'FORMAT_SUPERSCRIPT'));}}class F extends _0x58a0bc{['afterInit'](){const _0x4a6d5f=this['editor'],_0x5f4053=_0x4a6d5f['locale'];if(!_0x4a6d5f['plugins']['has']('BlockQuoteEditing'))return;const _0x35fed7=_0x4a6d5f['plugins']['get']('TrackChangesEditing'),_0x59062f=this['editor']['commands']['get']('blockQuote');_0x35fed7['enableCommand']('blockQuote',(_0x2956a7,_0x427a32={})=>{const _0x52db7d=this['editor']['model']['document']['selection'],_0x14a35b=_0x427a32&&void 0x0!==_0x427a32['forceValue']?_0x427a32['forceValue']:!_0x59062f['value'];let _0x4144f3=[];if(_0x14a35b){const _0x2e35c7=Array['from'](_0x52db7d['getSelectedBlocks']())['filter'](_0x29e544=>oo(_0x29e544)||function(_0x17bf17,_0x15a128){const _0x63b312=_0x15a128['checkChild'](_0x17bf17['parent'],'blockQuote'),_0x430262=_0x15a128['checkChild'](['$root','blockQuote'],_0x17bf17);return _0x63b312&&_0x430262;}(_0x29e544,this['editor']['model']['schema']));_0x4144f3=to(_0x2e35c7,_0x4a6d5f['model']);}else{const _0x4a3480=Array['from'](_0x52db7d['getSelectedBlocks']())['filter'](_0x195323=>oo(_0x195323));_0x4144f3=to(_0x4a3480,_0x4a6d5f['model']);}_0x4a6d5f['model']['change'](()=>{for(const _0x4de5f5 of _0x4144f3)_0x35fed7['markBlockFormat'](_0x4de5f5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x14a35b}]});});}),_0x35fed7['descriptionFactory']['registerDescriptionCallback'](_0x25fe1f=>{const {data:_0xdf65fb}=_0x25fe1f;if(_0xdf65fb&&'blockQuote'==_0xdf65fb['commandName']){const _0x2f7335=o(_0x5f4053,'ELEMENT_BLOCK_QUOTE');return _0xdf65fb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5f4053,'*Set\x20format:*\x20%0',_0x2f7335)}:{'type':'format','content':o(_0x5f4053,'*Remove\x20format:*\x20%0',_0x2f7335)};}});}}function oo(_0x26c9be){return'blockQuote'==_0x26c9be['parent']['name'];}class L extends _0x58a0bc{['afterInit'](){const _0x12eb81=this['editor'];_0x12eb81['plugins']['has']('CaseChange')&&(_0x12eb81['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x12eb81['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x12eb81['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x58a0bc{['afterInit'](){const _0x3760cc=this['editor'];_0x3760cc['commands']['get']('ckbox')&&_0x3760cc['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x58a0bc{['afterInit'](){const _0x42fa55=this['editor'];if(!_0x42fa55['plugins']['has']('CodeBlock'))return;const _0x4ead98=_0x42fa55['plugins']['get']('TrackChangesEditing'),_0x1c7df4=_0x42fa55['locale'],_0x4723c6=_0x42fa55['config']['get']('codeBlock')['languages'],_0x397923=_0x42fa55['commands']['get']('codeBlock');_0x4ead98['enableCommand']('indentCodeBlock'),_0x4ead98['enableCommand']('outdentCodeBlock'),_0x4ead98['enableCommand']('codeBlock',(_0x33bf1a,_0x3e92d1={})=>{const _0x4f654a=_0x42fa55['model'],_0x597344=_0x42fa55['model']['document']['selection'],_0x209480=_0x3e92d1&&void 0x0!==_0x3e92d1['forceValue']?_0x3e92d1['forceValue']:!_0x397923['value'];let _0x1d9bc2;_0x3e92d1['language']||(_0x3e92d1['language']=_0x4723c6[0x0]['language']),_0x1d9bc2=_0x209480?Array['from'](_0x597344['getSelectedBlocks']())['filter'](_0x165f2c=>eo(_0x165f2c)||function(_0x753208,_0x16ae15){if(_0x753208['is']('rootElement')||_0x16ae15['isLimit'](_0x753208))return!0x1;return _0x16ae15['checkChild'](_0x753208['parent'],'codeBlock');}(_0x165f2c,_0x4f654a['schema'])):Array['from'](_0x597344['getSelectedBlocks']())['filter'](_0x277cc0=>eo(_0x277cc0));const _0x51f6e7=to(_0x1d9bc2,_0x4f654a);_0x4f654a['change'](()=>{for(const _0x277e82 of _0x51f6e7)_0x4ead98['markBlockFormat'](_0x277e82,{'commandName':'codeBlock','commandParams':[{..._0x3e92d1,'forceValue':_0x209480}],'formatGroupId':'blockName'});});}),(_0x4ead98['descriptionFactory']['registerElementLabel']('codeBlock',_0x3d81a7=>o(_0x1c7df4,'ELEMENT_CODE_BLOCK',_0x3d81a7)),_0x4ead98['descriptionFactory']['registerDescriptionCallback'](_0x375b33=>{if('formatBlock'!=_0x375b33['type'])return;const _0x43dc96=_0x1c7df4['t'],{data:_0x150a63}=_0x375b33;if(!_0x150a63||'codeBlock'!=_0x150a63['commandName'])return;const _0x33f7af=_0x150a63['commandParams'][0x0]['language'],_0x46e22c=_0x43dc96(_0x4723c6['find'](_0x3695d8=>_0x3695d8['language']===_0x33f7af)['label'])['toLowerCase']();return _0x150a63['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c7df4,'*Set\x20format:*\x20%0',o(_0x1c7df4,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x46e22c+')')}:{'type':'format','content':o(_0x1c7df4,'*Remove\x20format:*\x20%0',o(_0x1c7df4,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4fc702){return'codeBlock'==_0x4fc702['name'];}class q extends _0x58a0bc{['afterInit'](){const _0x745fb0=this['editor'];if(!_0x745fb0['plugins']['has']('CommentsEditing'))return;_0x745fb0['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x55d811,_0xce3274,_0x176aca){const _0x3061d1=[];for(const _0x172b3c of _0xce3274['getItems']())_0x172b3c['hasAttribute'](_0x55d811)&&_0x3061d1['push'](_0x176aca['createRangeOn'](_0x172b3c));return _0x3061d1;}function _e(_0x13812b,_0x4b32b8,{showActiveMarker:_0x5e0e93=!0x0}={}){const _0x251455=_0x13812b['plugins']['get']('TrackChangesEditing');return(_0x485aea,_0x383596,_0x5b0918)=>{if(!_0x5b0918['consumable']['test'](_0x383596['markerRange'],_0x485aea['name']))return;const _0x582e5a=_0x383596['markerRange']['getWalker'](),_0x24bf9e=_0x383596['markerRange']['start'],_0x5b31c1=_0x13812b['model']['schema'];let _0x3c65d5=null,_0x45970c=null,_0x4e0b3b=!0x1,_0x51747b=!0x1;for(const _0x459942 of _0x582e5a){const _0x21f7d7=_0x459942['item'];_0x4e0b3b=_0x4e0b3b||_0x5b31c1['isContent'](_0x21f7d7);const _0x3db6ad=_0x5b0918['mapper']['toViewElement'](_0x21f7d7);if(_0x3db6ad&&_0x3db6ad['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x459942['type']&&(_0x5b31c1['isBlock'](_0x21f7d7)&&!_0x5b31c1['isLimit'](_0x21f7d7)&&(_0x21f7d7['nextSibling']||_0x24bf9e['isAtEnd']?_0x3c65d5&&_0x3c65d5['parent']==_0x21f7d7||(_0x3c65d5=_0x21f7d7,_0x166791(_0x459942['previousPosition']),_0x51747b=!0x0):_0x45970c=_0x45970c||_0x459942['previousPosition']));}function _0x166791(_0xb5d08a){const {authorId:_0x49cf5c}=_0x251455['_splitMarkerName'](_0x383596['markerName']),_0x231066=_0x5b0918['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b32b8,'data-author-id':_0x49cf5c}),_0x4a7bb5=_0x5b0918['mapper']['toViewPosition'](_0xb5d08a);_0x5e0e93&&_0x251455['activeMarkers']['includes'](_0x383596['markerName'])&&_0x5b0918['writer']['addClass']('ck-suggestion-marker--active',_0x231066),_0x5b0918['writer']['insert'](_0x4a7bb5,_0x231066),_0x5b0918['mapper']['bindElementToMarker'](_0x231066,_0x383596['markerName']);}_0x4e0b3b||_0x51747b||!_0x45970c||_0x166791(_0x45970c);};}class z extends _0x58a0bc{static get['requires'](){return[_0x45edbc];}['init'](){const _0x52a80f=this['editor'],_0x4b0b88=_0x52a80f['plugins']['get']('TrackChangesEditing');_0x4b0b88['enableCommand']('delete');const _0x36ae8d=_0x52a80f['commands']['get']('deleteForward');_0x4b0b88['enableCommand']('deleteForward',(_0x1a5908,_0x9d55f6={})=>{const _0x48de2b=_0x52a80f['model']['createSelection'](_0x52a80f['model']['document']['selection']);_0x48de2b['isCollapsed']&&_0x52a80f['model']['modifySelection'](_0x48de2b,{'direction':'forward','unit':_0x9d55f6['unit']});const _0x5a5535=_0x48de2b['getFirstRange'](),_0x4475f3=_0x1ac7bd['fromRange'](_0x5a5535);let _0x3fb167;_0x1a5908(_0x9d55f6),_0x3fb167='$graveyard'==_0x4475f3['root']['rootName']?_0x52a80f['model']['createRange'](_0x5a5535['start']):_0x52a80f['model']['createRange'](_0x4475f3['start'],_0x4475f3['end']),_0x4475f3['detach'](),_0x52a80f['model']['enqueueChange'](_0x36ae8d['buffer']['batch'],_0x1dda4f=>{_0x36ae8d['buffer']['lock'](),_0x1dda4f['setSelection'](_0x1dda4f['createRange'](_0x3fb167['end'])),_0x36ae8d['buffer']['unlock']();});}),_0x52a80f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x52a80f,'merge'),{'priority':'high'}),_0x52a80f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x546d5e,_0x3d7dd8,_0x33a2fd)=>{_0x33a2fd['options']['showSuggestionHighlights']&&_e(_0x52a80f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x546d5e,_0x3d7dd8,_0x33a2fd);},{'priority':'high'}),_0x52a80f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1237e6,_0x29594a,_0x4c3ff0)=>{const _0x919f0a=_0x4c3ff0['mapper']['markerNameToElements'](_0x29594a['markerName']);if(_0x919f0a){for(const _0x5aa409 of _0x919f0a)_0x5aa409['is']('uiElement')&&(_0x4c3ff0['mapper']['unbindElementFromMarkerName'](_0x5aa409,_0x29594a['markerName']),_0x4c3ff0['writer']['remove'](_0x5aa409));}},{'priority':'high'});}}class K extends _0x58a0bc{['afterInit'](){const _0x4ffa3a=this['editor'];if(!_0x4ffa3a['plugins']['has']('ListEditing'))return;const _0xd4ca3e=_0x4ffa3a['locale'],_0x1c28a7=_0x4ffa3a['plugins']['get']('TrackChangesEditing'),_0x4dbd49=_0x4ffa3a['plugins']['has']('TodoListEditing'),_0x5d5b78=!!_0x4ffa3a['config']['get']('list.multiBlock');function _0xfc5e40(_0x7eede1){return{'type':'format','content':''+o(_0xd4ca3e,'*Set\x20format:*\x20%0',_0x7eede1)};}function _0x7afb95(_0x52dba6){return{'type':'format','content':''+o(_0xd4ca3e,'*Remove\x20format:*\x20%0',_0x52dba6)};}_0x1c28a7['enableDefaultAttributesIntegration']('numberedList'),_0x1c28a7['enableDefaultAttributesIntegration']('bulletedList'),_0x1c28a7['enableDefaultAttributesIntegration']('customNumberedList'),_0x1c28a7['enableDefaultAttributesIntegration']('customBulletedList'),_0x1c28a7['enableDefaultAttributesIntegration']('indentList'),_0x1c28a7['enableDefaultAttributesIntegration']('outdentList'),_0x1c28a7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1c28a7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1c28a7['registerBlockAttribute']('listItemId'),_0x1c28a7['registerBlockAttribute']('listType'),_0x1c28a7['registerBlockAttribute']('listIndent'),_0x5d5b78&&(_0x1c28a7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1c28a7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4dbd49&&(_0x1c28a7['enableDefaultAttributesIntegration']('todoList'),_0x1c28a7['enableDefaultAttributesIntegration']('checkTodoList'),_0x1c28a7['registerBlockAttribute']('todoListChecked'),_0x1c28a7['descriptionFactory']['registerDescriptionCallback'](_0x305348=>{const {data:_0x2faf2f}=_0x305348;if(_0x2faf2f&&'todoListChecked'==_0x2faf2f['key'])return{'type':'format','content':_0x2faf2f['newValue']?o(_0xd4ca3e,'*Check\x20item*'):o(_0xd4ca3e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x24a979=>{if(_0x24a979['batch']['isUndo'])return!0x1;let _0x898d42=!0x1;const _0x44803a=_0x1c28a7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f6e1c=>'todoListChecked'===_0x1c28a7['_getAttributeKey'](_0x4f6e1c));for(const _0x4283c9 of _0x44803a){'todo'!=_0x4283c9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1c28a7['_findSuggestions'](_0x4283c9['getFirstRange'](),'attribute')['find'](_0x242260=>'listType'===_0x1c28a7['_getAttributeKey'](_0x242260['suggestion']))||(_0x24a979['removeMarker'](_0x4283c9['getFirstMarker']()),_0x898d42=!0x0));}return _0x898d42;})),_0x1c28a7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xd4ca3e,'FORMAT_INDENT'));const _0x4fe24f={'type':'format','content':''};_0x1c28a7['descriptionFactory']['registerDescriptionCallback'](_0x2ec71e=>{const {data:_0x17fb25}=_0x2ec71e;if(!_0x17fb25||'listType'!=_0x17fb25['key'])return;let _0x445e61=_0x2ec71e['head'];for(;_0x445e61;){if(_0x445e61['data']&&(('listStyle'==_0x445e61['data']['key']||'listMarkerStyle'==_0x445e61['data']['key'])&&(_0x445e61['data']['newValue']&&'default'!=_0x445e61['data']['newValue']||'default'!=_0x445e61['data']['oldValue']&&!_0x17fb25['newValue'])||!_0x5d5b78&&_0x445e61['data']['key']==m))return _0x4fe24f;_0x445e61=_0x445e61['next'];}if(null==_0x17fb25['newValue'])switch(_0x17fb25['oldValue']){case'bulleted':return _0x7afb95(o(_0xd4ca3e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x7afb95(o(_0xd4ca3e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x7afb95(o(_0xd4ca3e,'ELEMENT_TODO_LIST'));}switch(_0x17fb25['newValue']){case'bulleted':return _0xfc5e40(o(_0xd4ca3e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xfc5e40(o(_0xd4ca3e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xfc5e40(o(_0xd4ca3e,'ELEMENT_TODO_LIST'));}}),_0x1c28a7['descriptionFactory']['registerDescriptionCallback'](_0x384b47=>{const {data:_0x2c3032}=_0x384b47;if(_0x2c3032&&'listIndent'==_0x2c3032['key'])return null==_0x2c3032['newValue']||null==_0x2c3032['oldValue']&&0x0==_0x2c3032['newValue']?_0x4fe24f:void 0x0;}),_0x1c28a7['descriptionFactory']['registerDescriptionCallback'](_0x73d2ea=>{if('attribute'!=_0x73d2ea['type'])return;const {data:_0x7756c9}=_0x73d2ea;if(!_0x7756c9||'listItemId'!=_0x7756c9['key'])return;const _0x1c79bd=Ee(_0x73d2ea);return'newValue'==_0x1c79bd?{'type':'format','content':o(_0xd4ca3e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1c79bd?{'type':'format','content':o(_0xd4ca3e,'*Split:*\x20list\x20item')}:_0x4fe24f;}),_0x4ffa3a['model']['document']['registerPostFixer'](_0xbd9645=>this['listItemIdFixer'](_0xbd9645)),_0x4ffa3a['model']['document']['registerPostFixer'](_0x15513a=>this['noTrackChangesFixer'](_0x15513a)),_0x4ffa3a['model']['document']['on']('change:data',(_0x486ad3,_0x544831)=>{if(_0x544831['isUndo']||!_0x544831['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3caf58){if(_0x3caf58['batch']['isUndo']||!_0x3caf58['batch']['isLocal'])return!0x1;let _0x4eeeab=!0x1;const _0x2ce525=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e23dc=>_0x2e23dc['data']&&'listItemId'==_0x2e23dc['data']['key'])['filter'](_0x16c6a3=>_0x16c6a3['data']['newValue']&&_0x16c6a3['data']['oldValue']);for(const _0x752c59 of _0x2ce525)Ee(_0x752c59)||(_0x3caf58['removeMarker'](_0x752c59['getFirstMarker']()),_0x4eeeab=!0x0);return _0x4eeeab;}['noTrackChangesFixer'](_0x26a5b0){if(_0x26a5b0['batch']['isUndo']||!_0x26a5b0['batch']['isLocal'])return!0x1;const _0x38ff30=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x38ff30['trackChangesCommand']['value'])return!0x1;let _0x433a4b=!0x1;const _0x46db94=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3af897=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x10df70=>'attribute'==_0x10df70['type'])['filter'](_0x383734=>_0x46db94['includes'](_0x383734['attributeKey']));if(0x0==_0x3af897['length'])return _0x433a4b;for(const _0x419b59 of _0x3af897){const _0x224a7b=_0x38ff30['_findSuggestions'](_0x419b59['range'],'attribute')['filter'](_0x28b3aa=>!_0x28b3aa['meta']['isNextTo'])['map'](_0x48ea7b=>_0x48ea7b['suggestion'])['filter'](_0x114d80=>{const _0xe5b75c=_0x38ff30['_getAttributeKey'](_0x114d80);return _0x46db94['includes'](_0xe5b75c);});if(_0x224a7b['length']){for(const _0x1b8654 of _0x224a7b)_0x26a5b0['removeMarker'](_0x1b8654['getFirstMarker']());_0x433a4b=!0x0;}}return _0x433a4b;}['assureChains'](){const _0x5489b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa09ce8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x6615e3;const _0x31cf79=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x45d6cd=>{if(_0x45d6cd['data']['oldRange']||!_0x45d6cd['data']['newRange'])return null;if(!_0x45d6cd['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1917a8}=_0x5489b9['_splitMarkerName'](_0x45d6cd['name']);if(!_0x5489b9['hasSuggestion'](_0x1917a8))return null;const _0x182ee5=_0x5489b9['getSuggestion'](_0x1917a8);return _0xa09ce8['includes'](_0x182ee5['data']['key']);})['map'](_0x5169d8=>{const {id:_0x33d994}=_0x5489b9['_splitMarkerName'](_0x5169d8['name']),_0x17be25=_0x5489b9['getSuggestion'](_0x33d994);return _0x6615e3=_0x17be25['attributes']['groupId'],_0x17be25['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x31cf79['size'])return;const _0x471be3=_0x5489b9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x254897=>'attribute'==_0x254897['type']&&_0x254897['data']&&_0xa09ce8['includes'](_0x254897['data']['key'])&&_0x254897['attributes']['groupId']!=_0x6615e3)['map'](_0x1e3cae=>({'listItem':_0x1e3cae['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1e3cae['attributes']['groupId']})),_0x59ee3f=new Set();for(const {groupId:_0x45c348,listItem:_0x3ef5fa}of _0x471be3)_0x31cf79['has'](_0x3ef5fa)&&_0x59ee3f['add'](_0x45c348);for(const _0x402444 of _0x5489b9['getSuggestions']())_0x59ee3f['has'](_0x402444['attributes']['groupId'])&&_0x402444['setAttribute']('groupId',_0x6615e3);}['_supportLegacySuggestions'](){const _0x3d4a3c=this['editor'],_0x2edfab=_0x3d4a3c['locale'],_0x33af0f=_0x3d4a3c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x33af0f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x377117,_0xcbf6e5){const _0x47dab9=[];for(let _0x1aef17 of _0x377117)_0x1aef17['start']['nodeAfter']===_0x1aef17['end']['parent']&&(_0x1aef17=_0x3d4a3c['model']['createRange'](_0x3d4a3c['model']['createPositionAt'](_0x1aef17['start']['nodeAfter'],0x0))),_0x47dab9['push'](_0x1aef17);_0x3d4a3c['model']['change'](_0x37d0ff=>{const _0x4ee64c=_0x3d4a3c['model']['document']['selection'],_0x23369d=Array['from'](_0x4ee64c['getRanges']())['map'](_0x3139dc=>_0x1ac7bd['fromRange'](_0x3139dc));_0x37d0ff['setSelection'](_0x47dab9),_0x3d4a3c['commands']['get'](_0xcbf6e5['commandName'])['refresh'](),_0xcbf6e5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3d4a3c['execute'](_0xcbf6e5['commandName'],..._0xcbf6e5['commandParams']),_0x37d0ff['setSelection'](_0x23369d);for(const _0x4fecb5 of _0x23369d)_0x4fecb5['detach']();});}),_0x33af0f['descriptionFactory']['registerElementLabel'](function(_0x22360e){const _0x3f641d=!_0x3d4a3c['model']['schema']['isObject'](_0x22360e),_0x433e77=_0x22360e['previousSibling'],_0x117c48=_0x22360e['nextSibling'],_0x14ac0b=_0x22360e['getAttribute']('listItemId'),_0x5aa4a8=!_0x433e77||_0x433e77['getAttribute']('listItemId')!==_0x14ac0b,_0x27021a=!_0x117c48||_0x117c48['getAttribute']('listItemId')!==_0x14ac0b;return _0x3f641d&&Boolean(_0x14ac0b)&&_0x5aa4a8&&_0x27021a;},_0x59e561=>o(_0x2edfab,'ELEMENT_LIST_ITEM',_0x59e561));}['_registerLegacyDescription'](){const _0x447122=this['editor'],_0x56309c=_0x447122['locale'];function _0xf64ae1(_0x1f6b28){const _0x5bfb55=_0x447122['commands']['get']('bulletedList')['value'],_0x466d1e=_0x447122['commands']['get']('numberedList')['value'];return'numberedList'===_0x1f6b28?_0x5bfb55:_0x466d1e;}_0x447122['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3977cd){if('formatBlock'!=_0x3977cd['type'])return;const {data:_0x5a9a7d}=_0x3977cd;if(!_0x5a9a7d)return;let _0x4999d3,_0x408efe,_0x48ce04,_0x2a1cb2;switch(_0x5a9a7d['commandName']){case'bulletedList':_0x48ce04=_0x5a9a7d['commandParams'][0x0]['forceValue'],_0x2a1cb2=_0xf64ae1(_0x5a9a7d['commandName']),_0x4999d3=_0x48ce04?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a1cb2&&_0x447122['config']['get']('list.multiBlock')||(_0x4999d3='*Change\x20to:*\x20%0'),_0x408efe={'type':'format','content':o(_0x56309c,_0x4999d3,o(_0x56309c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x48ce04=_0x5a9a7d['commandParams'][0x0]['forceValue'],_0x2a1cb2=_0xf64ae1(_0x5a9a7d['commandName']),_0x4999d3=_0x48ce04?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a1cb2&&_0x447122['config']['get']('list.multiBlock')||(_0x4999d3='*Change\x20to:*\x20%0'),_0x408efe={'type':'format','content':o(_0x56309c,_0x4999d3,o(_0x56309c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4999d3='*Indent:*\x20%0',_0x408efe={'type':'format','content':o(_0x56309c,_0x4999d3,o(_0x56309c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4999d3=function(_0x5a04e3){const _0x5364f6=_0x5a04e3['getFirstRange']();let _0x393e80=_0x5364f6['start']['nodeAfter'];for(;_0x393e80&&_0x5364f6['containsItem'](_0x393e80);){if(_0x393e80['getAttribute']('listIndent')>0x0)return!0x1;_0x393e80=_0x393e80['nextSibling'];}return!0x0;}(_0x3977cd)?o(_0x56309c,'*Format:*\x20remove\x20from\x20%0',o(_0x56309c,function(_0x3e2fc3){return'ELEMENT_'+_0x3e2fc3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3977cd))):o(_0x56309c,'*Outdent:*\x20%0',o(_0x56309c,'ELEMENT_LIST_ITEM')),_0x408efe={'type':'format','content':_0x4999d3};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5a9a7d['multipleBlocks']&&(_0x4999d3='*Merge:*\x20%0',_0x408efe={'type':'deletion','content':o(_0x56309c,_0x4999d3,o(_0x56309c,'ELEMENT_LIST_ITEM'))});}return _0x408efe;});}}function Ee(_0x3a507e){let _0x38b7b3=_0x3a507e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x38b7b3;){const _0x26d8a7=_0x38b7b3['getAttribute']('listItemId');if(!_0x26d8a7)return!0x1;if(_0x26d8a7==_0x3a507e['data']['newValue'])return'newValue';if(_0x26d8a7==_0x3a507e['data']['oldValue'])return'oldValue';_0x38b7b3=_0x38b7b3['previousSibling'];}return!0x1;}class pe extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4c8bbc=this['editor']['config']['get']('list.properties'),_0x54733e=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c8bbc['styles']&&(_0x54733e['enableDefaultAttributesIntegration']('listStyle'),_0x54733e['registerBlockAttribute']('listStyle')),_0x4c8bbc['reversed']&&(_0x54733e['enableDefaultAttributesIntegration']('listReversed'),_0x54733e['registerBlockAttribute']('listReversed')),_0x4c8bbc['startIndex']&&(_0x54733e['enableDefaultAttributesIntegration']('listStart'),_0x54733e['registerBlockAttribute']('listStart'));const _0x2dfafa={'type':'format','content':''};_0x54733e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x15daf5=this['editor']['locale'];_0x54733e['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x15daf5,'FORMAT_LIST_REVERSED')),_0x54733e['descriptionFactory']['registerDescriptionCallback'](_0x1d7d97=>{const {data:_0x52247f}=_0x1d7d97;if(_0x52247f&&'listReversed'==_0x52247f['key'])return null==_0x52247f['newValue']||0x0==_0x52247f['newValue']&&null==_0x52247f['oldValue']?_0x2dfafa:void 0x0;}),_0x54733e['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x15daf5,'FORMAT_LIST_START')),_0x54733e['descriptionFactory']['registerDescriptionCallback'](_0x43ba27=>{const {data:_0x530963}=_0x43ba27;if(_0x530963&&'listStart'==_0x530963['key'])return null==_0x530963['newValue']||0x1==_0x530963['newValue']&&null==_0x530963['oldValue']?_0x2dfafa:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x465877=>{if(_0x465877['batch']['isUndo'])return!0x1;let _0x502a3c=!0x1;const _0x25b495=_0x54733e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x427f07=>{const _0x1628f1=_0x54733e['_getAttributeKey'](_0x427f07);return'listStart'==_0x1628f1||'listReversed'==_0x1628f1;});for(const _0x45afd6 of _0x25b495){const _0x29e525=_0x45afd6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x29e525||'customNumbered'==_0x29e525)continue;_0x54733e['_findSuggestions'](_0x45afd6['getFirstRange'](),'attribute')['find'](_0x25d33b=>'listType'==_0x54733e['_getAttributeKey'](_0x25d33b['suggestion']))||(_0x465877['removeMarker'](_0x45afd6['getFirstMarker']()),_0x502a3c=!0x0);}return _0x502a3c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x360fb8){const _0xd55629=this['editor']['locale'],{data:_0x5904e8}=_0x360fb8,_0x2b5a43={'type':'format','content':''};if(!_0x5904e8||'listStyle'!=_0x5904e8['key'])return;if(!_0x5904e8['oldValue'])return'default'==_0x5904e8['newValue']?_0x2b5a43:{'type':'format','content':''+o(_0xd55629,'*Set\x20format:*\x20%0',o(_0xd55629,this['_getTranslationKeyForListStyle'](_0x5904e8['newValue'])))};if(!_0x5904e8['newValue']){if('default'==_0x5904e8['oldValue'])return _0x2b5a43;let _0x384245=_0x360fb8['head'];for(;_0x384245;){if(_0x384245['data']&&'listType'==_0x384245['data']['key']&&_0x384245['data']['newValue'])return _0x2b5a43;_0x384245=_0x384245['next'];}return{'type':'format','content':''+o(_0xd55629,'*Remove\x20format:*\x20%0',o(_0xd55629,this['_getTranslationKeyForListStyle'](_0x5904e8['oldValue'])))};}if('default'!=_0x5904e8['newValue'])return{'type':'format','content':''+o(_0xd55629,'*Set\x20format:*\x20%0',o(_0xd55629,this['_getTranslationKeyForListStyle'](_0x5904e8['newValue'])))};let _0x1c88ff=_0x360fb8['head'];for(;_0x1c88ff;){if(_0x1c88ff['data']&&'listType'==_0x1c88ff['data']['key']&&_0x1c88ff['data']['newValue']&&_0x1c88ff['data']['oldValue'])return _0x2b5a43;_0x1c88ff=_0x1c88ff['next'];}return{'type':'format','content':o(_0xd55629,'*Set\x20format:*\x20%0',o(_0xd55629,'ELEMENT_'+_0x360fb8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x48b694=this['editor'],_0x5dfca2=_0x48b694['locale'];_0x48b694['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x130c08=>{if('formatBlock'!=_0x130c08['type'])return;const {data:_0x5c0de5}=_0x130c08;if(!_0x5c0de5)return;let _0x43a72b,_0x17628a;switch(_0x5c0de5['commandName']){case'listStyle':_0x43a72b='*Change\x20to:*\x20%0',_0x17628a={'type':'format','content':o(_0x5dfca2,_0x43a72b,o(_0x5dfca2,this['_getTranslationKeyForListStyle'](_0x5c0de5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x43a72b=_0x5c0de5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x17628a={'type':'format','content':o(_0x5dfca2,_0x43a72b)};break;case'listStart':_0x43a72b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x17628a={'type':'format','content':o(_0x5dfca2,_0x43a72b,_0x5c0de5['commandParams'][0x0]['startIndex'])};}return _0x17628a;});}['_getTranslationKeyForListStyle'](_0x300cbc){return'ELEMENT_'+function(_0x2d8ec6){if(ye['includes'](_0x2d8ec6))return'bulleted';if(Se['includes'](_0x2d8ec6))return'numbered';return null;}(_0x300cbc)['toUpperCase']()+'_LIST_'+_0x300cbc['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x58a0bc{static get['requires'](){return[_0x4d33f4];}['init'](){const _0x4864bc=this['editor'],_0x3b963a=_0x4864bc['plugins']['get']('TrackChangesEditing'),_0x86c816=_0x4864bc['commands']['get']('enter');_0x3b963a['enableCommand']('enter',()=>{_0x4864bc['model']['change'](_0xfd5390=>{const _0x5f5d5f=_0x4864bc['model']['document']['selection'],_0x16de63=_0x5f5d5f['getFirstPosition'](),_0x450883=_0x1ac7bd['fromRange'](_0x5f5d5f['getFirstRange']());if(_0x86c816['enterBlock'](_0xfd5390)){const _0x158232=_0x4864bc['model']['createPositionAt'](_0x16de63['parent']['nextSibling'],0x0),_0x1bd0fc=_0xfd5390['createRange'](_0x16de63,_0x158232);_0x3b963a['markInsertion'](_0x1bd0fc);}else _0xfd5390['setSelection'](_0xfd5390['createRange'](_0x450883['end']));_0x450883['detach'](),_0x86c816['fire']('afterExecute',{'writer':_0xfd5390});});}),_0x4864bc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4864bc,'split'),{'priority':'high'}),_0x4864bc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5c1a1e,_0x2d682d,_0x506b5a)=>{const _0x44b669=_0x506b5a['mapper']['markerNameToElements'](_0x2d682d['markerName']);if(_0x44b669){for(const _0x16fce9 of _0x44b669)_0x16fce9['hasClass']('ck-suggestion-marker-split')&&(_0x506b5a['mapper']['unbindElementFromMarkerName'](_0x16fce9,_0x2d682d['markerName']),_0x506b5a['writer']['remove'](_0x16fce9));}},{'priority':'high'}),_0x4864bc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x35aa2a,_0x10cb34,_0x43720c)=>{_0x43720c['options']['showSuggestionHighlights']&&_e(_0x4864bc,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x35aa2a,_0x10cb34,_0x43720c);},{'priority':'high'});}}class X extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x348305=this['editor']['plugins']['get']('TrackChangesEditing');_0x348305['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x348305['enableCommand']('findNext'),_0x348305['enableCommand']('findPrevious'),_0x348305['enableCommand']('replace'),_0x348305['enableCommand']('replaceAll');}['handleFindCommand'](_0x646684,_0xb35d3a,_0x2eeb6b={}){const _0x58b54d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x646684(_0x414d22=>{let _0x5dab04=('string'==typeof _0xb35d3a?_0x58b54d['findByTextCallback'](_0xb35d3a,_0x2eeb6b):_0xb35d3a)(_0x414d22);Array['isArray'](_0x5dab04)&&(_0x5dab04={'results':_0x5dab04,'searchText':'string'==typeof _0xb35d3a?_0xb35d3a:''});const _0x4ec505=_0x5dab04['results']['filter'](_0x175ff7=>!0x1===this['_isInDeletionRange'](_0x175ff7,_0x414d22['item']));return{..._0x5dab04,'results':_0x4ec505};},_0x2eeb6b);}['_isInDeletionRange'](_0x2c3386,_0x11fb6b){const _0xfb3774=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11fb6b,_0x2c3386['start']),this['editor']['model']['createPositionAt'](_0x11fb6b,_0x2c3386['end']));for(const _0x4db150 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xfb3774['getIntersection'](_0x4db150['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x58a0bc{['afterInit'](){const _0x168185=this['editor']['locale'],_0xbaa744=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x16bcb1,commandName:_0x2b7243}of ro)this['editor']['plugins']['has'](_0x16bcb1)&&(_0xbaa744['enableDefaultAttributesIntegration'](_0x2b7243),_0xbaa744['registerInlineAttribute'](_0x2b7243));_0xbaa744['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x168185,'FORMAT_FONT_SIZE')),_0xbaa744['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x168185,'FORMAT_FONT_FAMILY')),_0xbaa744['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x168185,'FORMAT_FONT_COLOR')),_0xbaa744['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x168185,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18aaf4=this['editor'],_0x553679=_0x18aaf4['locale'];_0x18aaf4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bcd59=>{const _0x1d6d42=_0x553679['t'];if('formatInline'!=_0x3bcd59['type'])return;const {data:_0x1d890b}=_0x3bcd59;if(null!=_0x1d890b){if('fontSize'==_0x1d890b['commandName']){const _0x48f6bb=_0x1d890b['commandParams'][0x0]['value'];if(_0x48f6bb){const _0x521caa=_0x1d6d42(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xe6c120=>_0xe6c120['model']==_0x48f6bb)['title'])['toLowerCase']();return{'type':'format','content':o(_0x553679,'*Set\x20font\x20size:*\x20%0',_0x521caa)};}return{'type':'format','content':o(_0x553679,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1d890b['commandName']){const _0x403955=_0x1d890b['commandParams'][0x0]['value'];return _0x403955?{'type':'format','content':o(_0x553679,'*Set\x20font\x20family:*\x20%0',_0x403955)}:{'type':'format','content':o(_0x553679,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1d890b['commandName']){const _0x91bfcd=_0x1d890b['commandParams'][0x0]['value'];if(_0x91bfcd){const _0x4b0585=_0x2f7d63(this['editor']['config']['get']('fontColor.colors'))['find'](_0x216c0c=>_0x216c0c['model']==_0x91bfcd);let _0xe7f8cb=_0x91bfcd,_0x1fed99='';return _0x4b0585&&(_0xe7f8cb=_0x4b0585['label'],_0x1fed99=_0x1d6d42(_0xe7f8cb)['toLowerCase']()),{'type':'format','content':o(_0x553679,'*Set\x20font\x20color:*\x20%0',_0x1fed99)['trim'](),'color':{'value':_0x91bfcd,'title':_0x1fed99||_0xe7f8cb}};}return{'type':'format','content':o(_0x553679,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1d890b['commandName']){const _0x11ef99=_0x1d890b['commandParams'][0x0]['value'];if(_0x11ef99){const _0x545304=_0x2f7d63(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x18e07f=>_0x18e07f['model']==_0x11ef99);let _0x2ffbcd=_0x11ef99,_0x15f6eb='';return _0x545304&&(_0x2ffbcd=_0x545304['label'],_0x15f6eb=_0x1d6d42(_0x2ffbcd)['toLowerCase']()),{'type':'format','content':o(_0x553679,'*Set\x20font\x20background\x20color:*\x20%0',_0x15f6eb)['trim'](),'color':{'value':_0x11ef99,'title':_0x15f6eb||_0x2ffbcd}};}return{'type':'format','content':o(_0x553679,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x58a0bc{['afterInit'](){const _0xe7fe86=this['editor'],_0x1e0e9d=_0xe7fe86['plugins']['get']('TrackChangesEditing'),_0x4a92bf=_0xe7fe86['commands']['get']('copyFormat'),_0x3adece=_0xe7fe86['commands']['get']('pasteFormat');_0x4a92bf&&_0x3adece&&(_0x1e0e9d['enableDefaultAttributesIntegration']('pasteFormat'),_0x1e0e9d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x269320=this['editor'],_0x29606f=_0x269320['locale'];_0x269320['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x538f43=>{if('formatBlock'!=_0x538f43['type']&&'formatInline'!=_0x538f43['type'])return;const {data:_0x5ae346}=_0x538f43;if(_0x5ae346&&'pasteFormat'===_0x5ae346['commandName']){const _0x29caed=[],_0x5df0c0=_0x5ae346['commandParams'][0x0];for(const [_0x284da6,_0x2689fb]of Object['entries'](_0x5df0c0))_0x29caed['push'](so(_0x269320,_0x284da6,_0x2689fb));return _0x29caed['length']?{'type':'format','content':o(_0x29606f,'*Set\x20format\x20to:*\x20%0',_0x29caed['join'](',\x20'))}:{'type':'format','content':o(_0x29606f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x59889a,_0x32412c,_0x269df5){const _0x4cdf06=_0x59889a['locale']['t'],_0x3b8e54=_0x32412c['split'](/(?=[A-Z])/)['join']('\x20'),_0x23d0ee=_0x4cdf06(_0x3b8e54['charAt'](0x0)['toUpperCase']()+_0x3b8e54['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x269df5)return _0x23d0ee;if('fontColor'===_0x32412c||'fontBackgroundColor'===_0x32412c){const _0x2c2ce3=_0x2f7d63(_0x59889a['config']['get']('fontColor.colors'))['find'](_0x355b9c=>_0x355b9c['model']==_0x269df5);return _0x23d0ee+'\x20('+(_0x2c2ce3?_0x4cdf06(_0x2c2ce3['label'])['toLowerCase']():_0x269df5)+')';}if('fontSize'===_0x32412c&&isNaN(parseFloat(_0x269df5))){const _0x5f5b11=_0x59889a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x59889a['config']['get']('fontSize.options'))['find'](_0x495ccc=>_0x495ccc['model']==_0x269df5);return _0x23d0ee+'\x20('+(_0x5f5b11?_0x4cdf06(_0x5f5b11['title'])['toLowerCase']():_0x269df5)+')';}return _0x23d0ee+'\x20('+_0x269df5+')';}class tt extends _0x58a0bc{['_headingOptions'];['afterInit'](){const _0x31e1e4=this['editor'];if(!_0x31e1e4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x31e1e4['config']['get']('heading.options');const _0x2812f4=_0x31e1e4['locale'],_0x74b517=_0x31e1e4['plugins']['get']('TrackChangesEditing');_0x74b517['enableDefaultAttributesIntegration']('heading');for(const _0x145bb9 of this['_headingOptions'])'paragraph'!=_0x145bb9['model']&&_0x74b517['descriptionFactory']['registerElementLabel'](_0x145bb9['model'],_0x45ceb0=>{const _0x52778b=this['_getHeadingLevel'](_0x145bb9['model']);return null!==_0x52778b?_0x13ada8(_0x45ceb0,_0x52778b):_0xc03af3(_0x45ceb0,_0x145bb9['title']);});function _0x13ada8(_0x5dd479,_0x3bbacc){return o(_0x2812f4,'ELEMENT_HEADING',[_0x5dd479,_0x3bbacc]);}function _0xc03af3(_0x1cafb5,_0x507f20){return o(_0x2812f4,'ELEMENT_HEADING_CUSTOM',[_0x1cafb5,_0x507f20]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36406f=this['editor'],_0x5142a3=_0x36406f['locale'];function _0x5255b7(_0x3d03af,_0x1219ec){return o(_0x5142a3,'ELEMENT_HEADING_CUSTOM',[_0x3d03af,_0x1219ec]);}_0x36406f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa8af41=>{if('formatBlock'!=_0xa8af41['type'])return;const {data:_0x561d88}=_0xa8af41;if(_0x561d88&&'heading'==_0x561d88['commandName']){const _0x4fcf6d=_0x561d88['commandParams'][0x0]['value'],_0x56e2cb=this['_getHeadingLevel'](_0x4fcf6d);if(null!==_0x56e2cb)return{'type':'format','content':o(_0x5142a3,'*Change\x20to:*\x20%0',(_0x6818ca=0x1,_0x16ba9d=_0x56e2cb,o(_0x5142a3,'ELEMENT_HEADING',[_0x6818ca,_0x16ba9d])))};const _0x121bbc=this['_headingOptions']['find'](_0x4df3af=>_0x4df3af['model']===_0x4fcf6d)['title'];return{'type':'format','content':o(_0x5142a3,'*Change\x20to:*\x20%0',_0x5255b7(0x1,_0x121bbc))};}var _0x6818ca,_0x16ba9d;});}['_getHeadingLevel'](_0x2ebf45){const _0x4ab606=_0x2ebf45['match'](/^heading(\d+)/);if(_0x4ab606)return _0x4ab606[0x1];const _0x16501e=this['_headingOptions']?.['find'](_0x3661c6=>_0x3661c6['model']==_0x2ebf45);if(_0x16501e&&_0x16501e['view']){const _0xdc5d7d=_0x16501e['view'],_0x5d6db5=(_0xdc5d7d['name']??_0xdc5d7d)['match'](/^h(\d+)/);if(_0x5d6db5)return _0x5d6db5[0x1];}return null;}}class et extends _0x58a0bc{['afterInit'](){const _0x4daeb3=this['editor'];if(!_0x4daeb3['plugins']['has']('HighlightEditing'))return;const _0x23ce56=_0x4daeb3['plugins']['get']('TrackChangesEditing'),_0x5542cd=_0x4daeb3['locale'];_0x23ce56['enableDefaultAttributesIntegration']('highlight'),_0x23ce56['registerInlineAttribute']('highlight'),_0x23ce56['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5542cd,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3670e4=this['editor'],_0x499564=_0x3670e4['locale'];_0x3670e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x525c4f=>{if('formatInline'!=_0x525c4f['type'])return;const {data:_0x238e23}=_0x525c4f;if(_0x238e23&&'highlight'==_0x238e23['commandName']){const _0x5624af=_0x499564['t'],_0x4dfe3e=_0x238e23['commandParams'][0x0]['value'];if(_0x4dfe3e){const _0x400a2a=_0x3670e4['config']['get']('highlight.options')['find'](_0x465198=>_0x465198['model']==_0x4dfe3e),_0x41819a=_0x5624af(_0x400a2a['title'])['toLowerCase']();return{'type':'format','content':o(_0x499564,'*Set\x20highlight:*\x20%0',_0x41819a),'color':{'value':_0x400a2a['color'],'title':_0x400a2a['title']}};}return{'type':'format','content':o(_0x499564,'*Remove\x20highlight*',o(_0x499564,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x58a0bc{['afterInit'](){const _0x333570=this['editor'];if(!_0x333570['plugins']['has']('HorizontalLineEditing'))return;_0x333570['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2d083d=_0x333570['plugins']['get']('TrackChangesEditing'),_0x4d670a=_0x333570['locale'];_0x2d083d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x550365=>o(_0x4d670a,'ELEMENT_HORIZONTAL_LINE',_0x550365)),_0x333570['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2563a7,{writer:_0x4a5d0c,options:_0x58f088})=>{if(!_0x58f088['showSuggestionHighlights'])return null;const _0x5c48d8=_0x4a5d0c['createContainerElement']('div'),_0x580899=_0x4a5d0c['createEmptyElement']('hr');return _0x4a5d0c['addClass']('ck-horizontal-line',_0x5c48d8),_0x4a5d0c['insert'](_0x4a5d0c['createPositionAt'](_0x5c48d8,0x0),_0x580899),_0x5c48d8;},'converterPriority':'high'});}}class st extends _0x58a0bc{['afterInit'](){const _0x3d94c5=this['editor'];if(!_0x3d94c5['plugins']['has']('HtmlEmbed'))return;const _0x50be0f=_0x3d94c5['plugins']['get']('TrackChangesEditing'),_0x39fa3e=_0x3d94c5['locale'];_0x50be0f['descriptionFactory']['registerElementLabel']('rawHtml',_0x15317c=>o(_0x39fa3e,'ELEMENT_HTML_EMBED',_0x15317c)),_0x50be0f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x50be0f['registerBlockAttribute']('value'),_0x50be0f['descriptionFactory']['registerDescriptionCallback'](_0x17079c=>{if('attribute'!=_0x17079c['type'])return;const {data:_0x43fcc4}=_0x17079c;if(_0x43fcc4&&'value'==_0x43fcc4['key']&&_0x17079c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x18bd57=o(_0x39fa3e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x39fa3e,'*Change\x20%0\x20content*',_0x18bd57)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3031e2=this['editor'],_0x462be7=_0x3031e2['locale'];_0x3031e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34a727=>{if('formatBlock'!=_0x34a727['type'])return;const {data:_0x32d909}=_0x34a727;if(_0x32d909&&'htmlEmbed'==_0x32d909['commandName']){const _0x3aa3f0=o(_0x462be7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x462be7,'*Change\x20%0\x20content*',_0x3aa3f0)};}});}}class nt extends _0x58a0bc{['afterInit'](){const _0xd55b62=this['editor'];if(!_0xd55b62['plugins']['has']('ImageEditing'))return;const _0x3e7d79=_0xd55b62['plugins']['get']('TrackChangesEditing'),_0x53961f=_0xd55b62['plugins']['get']('ImageUtils'),_0x236b99=_0xd55b62['locale'];_0x3e7d79['enableCommand']('insertImage'),_0x3e7d79['descriptionFactory']['registerElementLabel']('imageBlock',_0x542940=>o(_0x236b99,'ELEMENT_IMAGE',_0x542940)),_0x3e7d79['descriptionFactory']['registerElementLabel']('imageInline',_0x346142=>o(_0x236b99,'ELEMENT_INLINE_IMAGE',_0x346142)),_0x3e7d79['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x236b99,'ELEMENT_CAPTION')),_0xd55b62['plugins']['has']('ImageUploadEditing')&&_0x3e7d79['enableCommand']('uploadImage'),_0xd55b62['plugins']['has']('ImageBlockEditing')&&_0xd55b62['plugins']['has']('ImageInlineEditing')&&(_0x3e7d79['enableCommand']('imageTypeInline',(_0x383915,_0x237365)=>{const _0x31c52c=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']);_0xd55b62['model']['change'](()=>{_0x3e7d79['markBlockFormat'](_0x31c52c,{'commandName':'imageTypeInline','commandParams':[_0x237365]},[],'convertBlockImageToInline');});}),_0x3e7d79['enableCommand']('imageTypeBlock',(_0x1e000a,_0x445b24)=>{_0xd55b62['model']['change'](_0x3d97fd=>{let _0x17befb=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']),_0x56796e=_0x3d97fd['createRangeOn'](_0x17befb);const _0x47de15=_0x3a1667['fromPosition'](_0x56796e['start'],'toPrevious'),_0x10e0f1=_0x3a1667['fromPosition'](_0x56796e['end'],'toNext');_0x3e7d79['forceDefaultExecution'](()=>_0x1e000a(_0x445b24)),_0x17befb=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']),_0x56796e=_0x3d97fd['createRangeOn'](_0x17befb);const _0x52d098=_0x3d97fd['createRange'](_0x47de15,_0x10e0f1);_0x47de15['detach'](),_0x10e0f1['detach'](),_0x3e7d79['markBlockFormat'](_0x17befb,{'commandName':'imageTypeInline','commandParams':[_0x445b24]},[],'convertInlineImageToBlock'),_0x52d098['start']['isBefore'](_0x56796e['start'])&&_0x3e7d79['markInsertion'](_0x3d97fd['createRange'](_0x52d098['start'],_0x56796e['start']),'convertInlineImageToBlock'),_0x56796e['end']['isBefore'](_0x52d098['end'])&&_0x3e7d79['markInsertion'](_0x3d97fd['createRange'](_0x56796e['end'],_0x52d098['end']),'convertInlineImageToBlock');});}),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3e7d79['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3938ad])=>{const _0x391cfd=_0x3e7d79['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x54c389=_0x3938ad['start'],_0xfb69db=_0x3938ad['end'];const _0x50ed7f=_0xd55b62['model']['schema']['getNearestSelectionRange'](_0x54c389,'backward'),_0x4c8644=_0xd55b62['model']['schema']['getNearestSelectionRange'](_0xfb69db,'forward');_0x50ed7f['isCollapsed']&&(_0x54c389=_0x50ed7f['start']),_0x4c8644['isCollapsed']&&(_0xfb69db=_0x4c8644['end']),_0x391cfd([_0xd55b62['model']['createRange'](_0x54c389,_0xfb69db)]);}),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x781ec3),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x781ec3)),_0xd55b62['plugins']['has']('ImageCaptionEditing')&&(_0x3e7d79['enableCommand']('toggleImageCaption',(_0x267f31,_0x48bfb4)=>{const _0x500750=_0xd55b62['plugins']['get']('ImageCaptionUtils');let _0x335cd0=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']),_0x2b14c5=_0x500750['getCaptionFromImageModelElement'](_0x335cd0);_0xd55b62['model']['change'](()=>{if(_0x2b14c5)return void _0x3e7d79['markDeletion'](_0xd55b62['model']['createRangeOn'](_0x2b14c5));const _0x4d64ce=_0x53961f['isBlockImage'](_0x335cd0);_0x267f31(_0x48bfb4),_0x335cd0=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']),_0x2b14c5=_0x500750['getCaptionFromImageModelElement'](_0x335cd0),_0x3e7d79['markInsertion'](_0xd55b62['model']['createRangeOn'](_0x2b14c5),_0x4d64ce?null:'imageCaption');});}),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x781ec3));const _0xa0e3ea=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2fc53f(_0xfbd7c0,_0x1a4961){const _0x25eb54=_0xa0e3ea['findIndex'](({type:_0x126624,subType:_0xd88d87})=>_0xfbd7c0['type']==_0x126624&&_0xfbd7c0['subType']==_0xd88d87),_0x266271=_0xa0e3ea['findIndex'](({type:_0x2fe0b6,subType:_0x55954e})=>_0x1a4961['type']==_0x2fe0b6&&_0x1a4961['subType']==_0x55954e);if(_0x25eb54<0x0||_0x266271<0x0)return!0x1;const _0x59db56=_0xfbd7c0['getFirstRange'](),_0x4c670a=_0x1a4961['getFirstRange']();if((0x0==_0x25eb54||0x1==_0x25eb54)&&0x2==_0x266271&&_0x59db56['isIntersecting'](_0x4c670a))return!0x0;if(0x2==_0x25eb54&&0x3==_0x266271){const _0x2b9b48=_0x3e7d79['_findSuggestions'](_0x59db56,'insertion')['filter'](({suggestion:_0x4151ce,meta:_0x1c18c4})=>_0x1c18c4['isOwn']&&'convertInlineImageToBlock'==_0x4151ce['subType']);if(_0x2b9b48['length']>0x1&&_0x4c670a['end']['isEqual'](_0x59db56['start']))return!0x0;if(0x1==_0x2b9b48['length']&&(_0x59db56['start']['isEqual'](_0x4c670a['end'])||_0x59db56['end']['isEqual'](_0x4c670a['start'])))return!0x0;}if(0x3==_0x25eb54&&0x3==_0x266271&&_0x59db56['start']['isBefore'](_0x4c670a['start'])){const _0x4ffd6c=_0x59db56['end']['nodeAfter'],_0x22b90a=_0x4c670a['start']['nodeBefore'];return _0x53961f['isBlockImage'](_0x4ffd6c)&&_0x4ffd6c===_0x22b90a;}return!0x1;}function _0x781ec3(_0x5eea4d,_0x53a1a5){return _0x2fc53f(_0x5eea4d,_0x53a1a5)?[_0x5eea4d,_0x53a1a5]:_0x2fc53f(_0x53a1a5,_0x5eea4d)?[_0x53a1a5,_0x5eea4d]:null;}_0xd55b62['plugins']['has']('ImageResize')&&(_0x3e7d79['enableDefaultAttributesIntegration']('resizeImage'),_0x3e7d79['registerBlockAttribute']('resizedWidth'),_0x3e7d79['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x236b99,'FORMAT_IMAGE_SIZE'))),_0xd55b62['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3e7d79['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3e7d79['registerBlockAttribute']('alt')),_0x3e7d79['descriptionFactory']['registerDescriptionCallback'](_0x36e51c=>{if(!!_0xa0e3ea['find'](({type:_0x6191ac,subType:_0x2161ba})=>_0x36e51c['type']==_0x6191ac&&_0x36e51c['subType']==_0x2161ba))return _0x36e51c['previous']?{}:void 0x0;}),_0x3e7d79['descriptionFactory']['registerDescriptionCallback'](_0x233ff5=>{if('insertion'==_0x233ff5['type']||'deletion'==_0x233ff5['type']){const _0x35c4b6=_0x233ff5['getContainedElement']();if(_0x35c4b6&&_0x35c4b6['is']('element','caption'))return{'type':'insertion'==_0x233ff5['type']?'addObject':'removeObject','element':_0x35c4b6,'quantity':0x1};}}),_0x3e7d79['descriptionFactory']['registerDescriptionCallback'](_0x3c60e0=>'formatBlock'==_0x3c60e0['type']&&'convertInlineImageToBlock'==_0x3c60e0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3c60e0['type']&&'convertBlockImageToInline'==_0x3c60e0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3e7d79['descriptionFactory']['registerDescriptionCallback'](_0x57d405=>{if('attribute'!=_0x57d405['type'])return;const {data:_0x22484f}=_0x57d405;if(!_0x22484f||'alt'!=_0x22484f['key'])return;const _0x3324f8=_0x22484f['newValue'];return _0x3324f8?{'type':'format','content':o(_0x236b99,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3324f8+'\x22')}:{'type':'format','content':o(_0x236b99,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x521549=this['editor'],_0x21bec5=_0x521549['locale'];_0x521549['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a075b=>{if('formatBlock'!=_0x2a075b['type']&&'formatInline'!=_0x2a075b['type'])return;const {data:_0x3ddf6b}=_0x2a075b;if(_0x3ddf6b){if('imageTextAlternative'==_0x3ddf6b['commandName']){const _0x61a815=_0x3ddf6b['commandParams'][0x0]['newValue'];return _0x61a815?{'type':'format','content':o(_0x21bec5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x61a815+'\x22')}:{'type':'format','content':o(_0x21bec5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3ddf6b['commandName']){const _0x3365ab=_0x3ddf6b['commandParams'][0x0]['width'];return _0x3365ab?{'type':'format','content':o(_0x21bec5,'*Set\x20image\x20width:*\x20%0',_0x3365ab)}:{'type':'format','content':o(_0x21bec5,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x334a0f=this['editor']['locale'],_0x553a07=this['editor']['plugins']['get']('TrackChangesEditing');_0x553a07['enableDefaultAttributesIntegration']('replaceImageSource'),_0x553a07['registerBlockAttribute']('src'),_0x553a07['descriptionFactory']['registerDescriptionCallback'](_0x11ad29=>{if('attribute'!=_0x11ad29['type'])return;const {data:_0xade7d6}=_0x11ad29;return _0xade7d6&&'src'==_0xade7d6['key']?_0xade7d6['newValue']&&_0xade7d6['oldValue']?{'type':'format','content':o(_0x334a0f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x813352=this['editor']['plugins']['get']('TrackChangesEditing');_0x813352['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x813352['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x813352['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x813352['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xac94bd=this['editor'],_0x16c28b=_0xac94bd['locale'];_0xac94bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dff68=>{if('formatBlock'!=_0x3dff68['type']&&'formatInline'!=_0x3dff68['type'])return;const {data:_0x51e6cf}=_0x3dff68;if(!_0x51e6cf||'replaceImageSource'!=_0x51e6cf['commandName'])return;return{'type':'format','content':o(_0x16c28b,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x58a0bc{['afterInit'](){const _0x1746f7=this['editor'];if(!_0x1746f7['plugins']['has']('ImageStyleEditing'))return;const _0xfe5a7f=_0x1746f7['plugins']['get']('TrackChangesEditing'),_0x5a0edc=_0x1746f7['plugins']['get']('ImageUtils'),_0x110f41={};_0xfe5a7f['enableCommand']('imageStyle',(_0x238baa,_0x4afe7e)=>{const _0x26bc1d=_0x1746f7['plugins']['get']('Users')['me'],_0x1a3fb2=_0x1746f7['commands']['get']('imageStyle');let _0x4835fb=_0x5a0edc['getClosestSelectedImageElement'](_0x1746f7['model']['document']['selection']),_0x478ae3=_0x1746f7['model']['createRangeOn'](_0x4835fb),_0x530000=_0x1a3fb2['value'];if(_0x530000==_0x4afe7e['value'])return;const _0x6594c5={'commandName':'imageStyle','commandParams':[_0x4afe7e],'formatGroupId':_0x546e08()};_0x1746f7['model']['change'](()=>{if(_0xfe5a7f['getSuggestions']()['filter'](_0x27664a=>_0x27664a['isInContent']&&_0x26bc1d==_0x27664a['author']&&('formatBlock'==_0x27664a['type']||'formatInline'==_0x27664a['type'])&&('imageStylePreApply'==_0x27664a['subType']||'imageStylePostApply'==_0x27664a['subType'])&&_0x27664a['getFirstRange']()['isEqual'](_0x478ae3))['forEach'](_0x1fb40e=>_0xfe5a7f['discardSuggestion'](_0x1fb40e['head'])),_0x4835fb=_0x5a0edc['getClosestSelectedImageElement'](_0x1746f7['model']['document']['selection']),_0x478ae3=_0x1746f7['model']['createRangeOn'](_0x4835fb),_0x1a3fb2['refresh'](),_0x1746f7['commands']['get']('imageTypeInline')['refresh'](),_0x1746f7['commands']['get']('imageTypeBlock')['refresh'](),_0x530000=_0x1a3fb2['value'],_0x530000!=_0x4afe7e['value'])return _0x5a0edc['isInlineImage'](_0x4835fb)&&_0x1a3fb2['shouldConvertImageType'](_0x4afe7e['value'],_0x4835fb)?(_0x238baa({..._0x4afe7e,'setImageSizes':!0x1}),_0x4835fb=_0x5a0edc['getClosestSelectedImageElement'](_0x1746f7['model']['document']['selection']),void _0xfe5a7f['markBlockFormat'](_0x4835fb,{..._0x6594c5,'commandReversedParams':[{'value':_0x530000||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5a0edc['isBlockImage'](_0x4835fb)?_0xfe5a7f['markBlockFormat'](_0x4835fb,_0x6594c5,[],'imageStylePostApply'):_0xfe5a7f['markInlineFormat'](_0x478ae3,_0x6594c5,'imageStylePostApply'));});});for(const _0x1556aa of _0x1746f7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x110f41[_0x1556aa['name']]=_0x1556aa['title']['toLowerCase']();_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5236e1])=>{_0x5a0edc['setImageNaturalSizeAttributes'](_0x5236e1['getContainedElement']());}),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xaebc9,_0x521093)=>{_0xfe5a7f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xaebc9,{'commandName':_0x521093['commandName'],'commandParams':_0x521093['commandReversedParams']});}),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x386d19,_0x2fd5c7){if(_0x329237(_0x386d19,_0x2fd5c7))return[_0x386d19,_0x2fd5c7];if(_0x329237(_0x2fd5c7,_0x386d19))return[_0x2fd5c7,_0x386d19];return null;});const _0xe952e4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x329237(_0x484297,_0x50491d){const _0xb6f312=_0xe952e4['findIndex'](({type:_0x866077,subType:_0x21868a})=>_0x484297['type']==_0x866077&&_0x484297['subType']==_0x21868a),_0x4298fb=_0xe952e4['findIndex'](({type:_0x1eb9a8,subType:_0x1c1903})=>_0x50491d['type']==_0x1eb9a8&&_0x50491d['subType']==_0x1c1903);if(_0xb6f312<0x0||_0x4298fb<0x0)return!0x1;const _0x3b85af=_0x484297['getFirstRange'](),_0x585e80=_0x50491d['getFirstRange']();if((0x0==_0xb6f312||0x1==_0xb6f312)&&0x2==_0x4298fb&&_0x3b85af['isIntersecting'](_0x585e80))return!0x0;if(0x2==_0xb6f312&&0x3==_0x4298fb){const _0x15e7e8=_0xfe5a7f['_findSuggestions'](_0x3b85af,'insertion')['filter'](({suggestion:_0xd4e47a,meta:_0x40bb77})=>_0x40bb77['isOwn']&&'convertInlineImageToBlock'==_0xd4e47a['subType']);if(_0x15e7e8['length']>0x1&&_0x585e80['end']['isEqual'](_0x3b85af['start']))return!0x0;if(0x1==_0x15e7e8['length']&&(_0x3b85af['start']['isEqual'](_0x585e80['end'])||_0x3b85af['end']['isEqual'](_0x585e80['start'])))return!0x0;}if(0x3==_0xb6f312&&0x3==_0x4298fb&&_0x3b85af['start']['isBefore'](_0x585e80['start'])){const _0xe04d5c=_0x3b85af['end']['nodeAfter'],_0x44adf2=_0x585e80['start']['nodeBefore'];return _0x5a0edc['isBlockImage'](_0xe04d5c)&&_0xe04d5c===_0x44adf2;}return!0x1;}_0x1746f7['model']['document']['registerPostFixer'](()=>{let _0x146cc5=!0x1;const _0x58d727=Array['from'](_0x1746f7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x285171,data:_0x50e345}of _0x58d727){const {group:_0x1a3f81,type:_0x13b3ad,subType:_0x505cef,id:_0x23c4c1}=_0xfe5a7f['_splitMarkerName'](_0x285171);if('suggestion'==_0x1a3f81&&_0xfe5a7f['hasSuggestion'](_0x23c4c1)){if('formatBlock'==_0x13b3ad&&('imageStylePreApply'==_0x505cef||'imageStylePostApply'==_0x505cef)){const _0x1cc085=_0xfe5a7f['getSuggestion'](_0x23c4c1);if(_0x50e345['newRange']){const _0x30783a=_0x1cc085['getFirstRange']()['getContainedElement']();if(_0x5a0edc['isBlockImage'](_0x30783a))continue;_0xfe5a7f['discardSuggestion'](_0x1cc085),_0x146cc5=!0x0;}}if('insertion'==_0x13b3ad&&'imageCaption'==_0x505cef&&!_0x50e345['newRange']){const _0x3b1ea8=_0xfe5a7f['getSuggestion'](_0x23c4c1);_0x3b1ea8['next']&&_0x3b1ea8['next']['isInContent']&&(_0xfe5a7f['discardSuggestion'](_0x3b1ea8['next']),_0x146cc5=!0x0);}}}return _0x146cc5;}),this['_registerLegacyDescription'](_0x110f41);}['_registerLegacyDescription'](_0x9258c9){const _0x1e5dc3=this['editor'],_0x53d4b7=_0x1e5dc3['locale'];_0x1e5dc3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a0a66=>{if('formatBlock'!=_0x2a0a66['type']&&'formatInline'!=_0x2a0a66['type'])return;const {data:_0x4fe6c4}=_0x2a0a66;if(!_0x4fe6c4||'imageStyle'!=_0x4fe6c4['commandName'])return;const _0x2ac869=_0x4fe6c4['commandParams'][0x0]['value'];return _0x58845a('side'===_0x2ac869?o(_0x53d4b7,'FORMAT_SIDE_IMAGE'):_0x9258c9[_0x2ac869]||_0x2ac869);function _0x58845a(_0x5b9723){return{'type':'format','content':o(_0x53d4b7,'*Format:*\x20%0',_0x5b9723)};}});}}class at extends _0x58a0bc{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x8a27fb){super(_0x8a27fb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x58f5f1=this['editor'],_0x5a4233=_0x58f5f1['commands']['get']('importWord'),_0x429a4d=_0x58f5f1['commands']['get']('trackChanges');_0x5a4233&&(_0x5a4233['on']('execute',(_0x17bf5a,[,_0x2212be])=>{this['_trackChangesValueDuringImport']=_0x429a4d['value'],_0x2212be['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5a4233,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5a4233,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x429a4d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x58f5f1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xef55cc,_0x199406){const {suggestions:_0x468e6e}=_0x199406,_0x5b3394=this['editor']['commands']['get']('trackChanges'),_0x3a4ded=_0x5b3394['value'];this['_trackChangesValueDuringImport']!==_0x3a4ded&&(_0x5b3394['execute'](),this['_trackChangesExecuted']=!0x0),_0x468e6e&&_0x468e6e['forEach'](({id:_0x2f765c,type:_0x26aebc,author:_0x12ba1c,created_at:_0x4ad53e})=>{const _0x501aa8={'id':_0x2f765c,'type':_0x26aebc,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x12ba1c,'createdAt':_0x4ad53e?new Date(_0x4ad53e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x501aa8);});}}class ct extends _0x58a0bc{['afterInit'](){const _0xb17b20=this['editor'],_0x338316=_0xb17b20['plugins']['get']('TrackChangesEditing');if(_0xb17b20['plugins']['has']('IndentEditing')&&(_0x338316['enableCommand']('indent'),_0x338316['enableCommand']('outdent')),_0xb17b20['plugins']['has']('IndentBlock')){for(const _0x2b7b07 of['indentBlock','outdentBlock'])_0x338316['enableDefaultAttributesIntegration'](_0x2b7b07);}const _0x34ff7b=_0xb17b20['locale'];_0x338316['registerBlockAttribute']('blockIndent'),_0x338316['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x34ff7b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5647fc=this['editor'],_0x11bcec=_0x5647fc['locale'],_0x28e3f5=_0x5647fc['plugins']['get']('TrackChangesEditing');_0x28e3f5['descriptionFactory']['registerDescriptionCallback'](_0x34c79a=>{if('formatBlock'!=_0x34c79a['type'])return;const {data:_0x59537f}=_0x34c79a;if(!_0x59537f)return;if('indentBlock'!=_0x59537f['commandName']&&'outdentBlock'!=_0x59537f['commandName'])return;const _0x184176=_0x34c79a['getItems']()[0x0],_0x77fe51=_0x28e3f5['descriptionFactory']['getItemLabel'](_0x184176);return'indentBlock'==_0x59537f['commandName']?{'type':'format','content':o(_0x11bcec,'*Indent:*\x20%0',_0x77fe51)}:'outdentBlock'==_0x59537f['commandName']?{'type':'format','content':o(_0x11bcec,'*Outdent:*\x20%0',_0x77fe51)}:void 0x0;});}}class ut extends _0x58a0bc{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x58a0bc{['afterInit'](){const _0x12de99=this['editor'];if(!_0x12de99['plugins']['has']('LinkEditing'))return;const _0x329297=_0x12de99['plugins']['get']('TrackChangesEditing'),_0x4386e6=_0x12de99['commands']['get']('link');_0x329297['enableDefaultAttributesIntegration']('link'),_0x329297['enableDefaultAttributesIntegration']('unlink'),_0x329297['registerInlineAttribute']('linkHref');for(const _0x51e350 of _0x4386e6['manualDecorators'])_0x329297['registerInlineAttribute'](_0x51e350['id']),_0x329297['descriptionFactory']['registerAttributeLabel'](_0x51e350['id'],'link\x20('+_0x51e350['label']['toLowerCase']()+')');_0x329297['descriptionFactory']['registerDescriptionCallback'](_0x3b1f61=>{if('attribute'!=_0x3b1f61['type'])return;const {data:_0x209a63}=_0x3b1f61;if(!_0x209a63||'linkHref'!=_0x209a63['key'])return;const _0x4a5be3=_0x209a63['newValue'],_0x5c8b83=_0x12de99['locale'];return{'type':'format','content':null==_0x4a5be3?o(_0x5c8b83,'*Remove\x20link*'):o(_0x5c8b83,'*Set\x20link:*\x20%0','\x22'+_0x4a5be3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19694a=this['editor'],_0x2c5fdd=_0x19694a['locale'];_0x19694a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38f168=>{if('formatInline'!=_0x38f168['type'])return;const {data:_0x123d4b}=_0x38f168;if(_0x123d4b){if('link'==_0x123d4b['commandName']){const _0xcb2c80=_0x123d4b['commandParams'][0x0];return{'type':'format','content':o(_0x2c5fdd,'*Set\x20link:*\x20%0','\x22'+_0xcb2c80+'\x22')};}return'unlink'==_0x123d4b['commandName']?{'type':'format','content':o(_0x2c5fdd,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x58a0bc{['afterInit'](){const _0xc0ea6a=this['editor'],_0xf4601d=_0xc0ea6a['locale'];if(!_0xc0ea6a['plugins']['has']('LegacyListEditing'))return;const _0x542059=_0xc0ea6a['plugins']['get']('TrackChangesEditing'),_0x6a8c71=_0xc0ea6a['plugins']['has']('LegacyTodoListEditing');function _0x19c954(_0x3c9f7f){return()=>{const _0x30a7fd=_0xc0ea6a['model']['document']['selection'],_0x5d5907=_0xc0ea6a['commands']['get'](_0x3c9f7f);if(_0x5d5907['value'])return void _0xc0ea6a['execute']('paragraph',{});const _0x2f6cbd=_0x3c9f7f['slice'](0x0,-0x4),_0x421656=function(_0x58a2fc,_0x90ae6d,_0x515ff2){let _0x3c9c83=Array['from'](_0x58a2fc)['filter'](_0x4a313e=>function(_0x2a1036,_0x51322f){return _0x51322f['checkChild'](_0x2a1036['parent'],'listItem')&&!_0x51322f['isObject'](_0x2a1036);}(_0x4a313e,_0x515ff2));_0x3c9c83=_0x3c9c83['filter'](_0x10e1d6=>!_0x10e1d6['is']('element','listItem')||_0x10e1d6['getAttribute']('listType')!=_0x90ae6d);const _0x24f132=new Set();for(const _0x414a73 of _0x3c9c83)_0x414a73['is']('element','listItem')?_0x24f132['add'](fe(_0x414a73)):_0x24f132['add'](_0x414a73);return Array['from'](_0x24f132);}(_0x30a7fd['getSelectedBlocks'](),_0x2f6cbd,_0xc0ea6a['model']['schema']);_0xc0ea6a['model']['change'](()=>{for(const _0x578ac5 of _0x421656)_0x542059['markBlockFormat'](_0x578ac5,{'commandName':_0x3c9f7f,'commandParams':[{'forceValue':!_0x5d5907['value']}],'formatGroupId':'blockName'},ue(_0x578ac5));});};}function _0x49ed59(_0x5cbe86){return()=>{const _0x3c7a59=function(_0x506ee2){let _0x3e0257=Array['from'](_0x506ee2);const _0x4f2910=_0x3e0257['findIndex'](_0x2a9ec3=>'listItem'!=_0x2a9ec3['name']);return _0x4f2910>-0x1&&(_0x3e0257=_0x3e0257['slice'](0x0,_0x4f2910)),_0x3e0257;}(_0xc0ea6a['model']['document']['selection']['getSelectedBlocks']()),_0x49751d=_0xc0ea6a['model']['createRange'](_0xc0ea6a['model']['createPositionAt'](_0x3c7a59[0x0],'before'),_0xc0ea6a['model']['createPositionAt'](_0x3c7a59[_0x3c7a59['length']-0x1],'end'));_0xc0ea6a['model']['change'](()=>{_0x542059['markBlockFormat'](_0x49751d,{'commandName':_0x5cbe86,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3aacf4){const _0x196d58=new Set();for(const _0x5f0864 of _0x3aacf4){let _0x1f17c4=_0x5f0864['nextSibling'];for(;_0x1f17c4&&_0x1f17c4['getAttribute']('listIndent')>_0x5f0864['getAttribute']('listIndent');)_0x196d58['add'](_0x1f17c4),_0x1f17c4=_0x1f17c4['nextSibling'];}return Array['from'](_0x196d58);}(_0x3c7a59));});};}_0x542059['enableCommand']('numberedList',_0x19c954('numberedList')),_0x542059['enableCommand']('bulletedList',_0x19c954('bulletedList')),_0x6a8c71&&_0x542059['enableCommand']('todoList',_0x19c954('todoList')),_0x542059['enableCommand']('indentList',_0x49ed59('indentList')),_0x542059['enableCommand']('outdentList',_0x49ed59('outdentList')),_0x6a8c71&&_0x542059['enableCommand']('checkTodoList',()=>{const _0x5476b1=_0xc0ea6a['commands']['get']('checkTodoList'),_0x513d53=Array['from'](_0x5476b1['_selectedElements']);_0x513d53['filter'](_0x15c059=>_0x15c059['getAttribute']('todoListChecked')!=_0x5476b1['value']),_0xc0ea6a['model']['change'](()=>{for(const _0x1097f0 of _0x513d53)_0x542059['markBlockFormat'](_0x1097f0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5476b1['value']}]});});}),_0x542059['descriptionFactory']['registerElementLabel']('listItem',_0x5b33b4=>o(_0xf4601d,'ELEMENT_LIST_ITEM',_0x5b33b4)),_0x542059['descriptionFactory']['registerDescriptionCallback'](_0x34d17e=>{if('formatBlock'!=_0x34d17e['type']&&'formatInline'!=_0x34d17e['type'])return;const {data:_0x5a02ee}=_0x34d17e;if(_0x5a02ee){if('numberedList'==_0x5a02ee['commandName']||'bulletedList'==_0x5a02ee['commandName']||'todoList'==_0x5a02ee['commandName'])switch(_0x5a02ee['commandName']['replace']('List','')){case'bulleted':return _0x32256d(o(_0xf4601d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x32256d(o(_0xf4601d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x32256d(o(_0xf4601d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5a02ee['commandName'])return{'type':'format','content':o(_0xf4601d,'*Indent:*\x20%0',o(_0xf4601d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5a02ee['commandName'])return{'type':'format','content':o(_0xf4601d,'*Outdent:*\x20%0',o(_0xf4601d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5a02ee['commandName'])return _0x5a02ee['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf4601d,'*Check\x20item*')}:{'type':'format','content':o(_0xf4601d,'*Uncheck\x20item*')};}function _0x32256d(_0xa4fa3a){return{'type':'format','content':o(_0xf4601d,'*Change\x20to:*\x20%0',_0xa4fa3a)};}});}}function fe(_0x378d83){const _0x154495=_0x378d83['getAttribute']('listIndent');if(0x0==_0x154495)return _0x378d83;let _0x4e82ef=_0x378d83;for(;_0x378d83['previousSibling']&&_0x378d83['previousSibling']['is']('element','listItem');){const _0x5b6f40=_0x378d83['previousSibling']['getAttribute']('listIndent');if(_0x5b6f40==_0x154495)_0x4e82ef=_0x378d83['previousSibling'];else{if(_0x5b6f40<_0x154495)break;}_0x378d83=_0x378d83['previousSibling'];}return _0x4e82ef;}function ue(_0x2949b1){const _0x398314=[];if(_0x2949b1['is']('element','listItem')&&_0x2949b1['getAttribute']('listIndent')>0x0){let _0x1a84f1=_0x2949b1['nextSibling'];for(;_0x1a84f1&&'listItem'==_0x1a84f1['name']&&_0x1a84f1['getAttribute']('listIndent')==_0x2949b1['getAttribute']('listIndent');)_0x398314['push'](_0x1a84f1),_0x1a84f1=_0x1a84f1['nextSibling'];}return _0x398314;}class W extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1c6da2=this['editor']['config']['get']('list.properties'),_0x504b88=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c6da2['styles']&&_0x504b88['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1c6da2['reversed']&&_0x504b88['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1c6da2['startIndex']&&_0x504b88['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x504b88['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x402adf,_0xfd8ba0={}){const _0x3ae3ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x247b29=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3ae3ba['markMultiRangeBlockFormat'](_0x247b29,{'commandName':'listStyle','commandParams':[{'type':_0xfd8ba0['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x261f59,_0x2f0906={}){const _0x40fd29=this['editor']['plugins']['get']('TrackChangesEditing'),_0x376bde=this['_getSuggestionBlocks'](_0x151575=>_0x151575['is']('element','listItem')&&'numbered'===_0x151575['getAttribute']('listType'));if(_0x376bde['length']<0x1)return;const _0x3aba83=_0x376bde['map'](_0x59f48b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x59f48b,'before'),this['editor']['model']['createPositionAt'](_0x59f48b,0x0)));this['editor']['model']['change'](()=>{_0x40fd29['markMultiRangeBlockFormat'](_0x3aba83,{'commandName':'listReversed','commandParams':[{'reversed':_0x2f0906['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x35fda2,_0x45e31e={}){const _0x3652a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17a1fa=this['_getSuggestionBlocks'](_0x2954f4=>_0x2954f4['is']('element','listItem')&&'numbered'===_0x2954f4['getAttribute']('listType'));if(_0x17a1fa['length']<0x1)return;const _0x4f0e4c=_0x17a1fa['map'](_0x5abe85=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5abe85,'before'),this['editor']['model']['createPositionAt'](_0x5abe85,0x0)));this['editor']['model']['change'](()=>{_0x3652a5['markMultiRangeBlockFormat'](_0x4f0e4c,{'commandName':'listStart','commandParams':[{'startIndex':_0x45e31e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xbbc23f){if('formatBlock'!=_0xbbc23f['type']&&'formatInline'!=_0xbbc23f['type'])return;const _0x25c0b1=this['editor']['locale'],{data:_0x23bcc0}=_0xbbc23f;if(!_0x23bcc0)return;let _0x488053,_0x2e7b2e;switch(_0x23bcc0['commandName']){case'listStyle':_0x488053='*Change\x20to:*\x20%0',_0x2e7b2e={'type':'format','content':o(_0x25c0b1,_0x488053,o(_0x25c0b1,this['_getTranslationKeyForListStyle'](_0x23bcc0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x488053=_0x23bcc0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e7b2e={'type':'format','content':o(_0x25c0b1,_0x488053)};break;case'listStart':_0x488053='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e7b2e={'type':'format','content':o(_0x25c0b1,_0x488053,_0x23bcc0['commandParams'][0x0]['startIndex'])};}return _0x2e7b2e;}['_getSuggestionBlocksForListStyle'](){const _0x1da697=this['editor']['plugins']['get']('LegacyListUtils');let _0x31a409=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x31a409[0x0]?.['is']('element','listItem')&&_0x31a409['unshift'](..._0x1da697['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x31a409[_0x31a409['length']-0x1]?.['is']('element','listItem')&&_0x31a409['push'](..._0x1da697['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x31a409=[...new Set(_0x31a409)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x31a409=_0x31a409['filter'](_0x1fb1f4=>_0x1fb1f4['is']('element','listItem'))),_0x31a409;}['_getSuggestionBlocks'](_0x219b16){const _0x1c4750=this['editor']['plugins']['get']('LegacyListUtils');let _0x5f2c49=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x219b16)['map'](_0x77a183=>{const _0x4f06b0=this['editor']['model']['createPositionAt'](_0x77a183,0x0);return[..._0x1c4750['getSiblingNodes'](_0x4f06b0,'backward'),..._0x1c4750['getSiblingNodes'](_0x4f06b0,'forward')];})['flat']();return _0x5f2c49=[...new Set(_0x5f2c49)],_0x5f2c49;}['_getTranslationKeyForListStyle'](_0x5773de){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5773de)||'default')['toUpperCase']()+'_LIST_'+_0x5773de['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x58a0bc{['afterInit'](){const _0x401716=this['editor'];if(!_0x401716['plugins']['has']('MediaEmbedEditing'))return;const _0xaf250a=_0x401716['plugins']['get']('TrackChangesEditing'),_0xcb7402=_0x401716['locale'];_0xaf250a['enableCommand']('mediaEmbed'),_0xaf250a['descriptionFactory']['registerElementLabel']('media',_0x2deb6b=>o(_0xcb7402,'ELEMENT_MEDIA',_0x2deb6b)),_0x401716['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x14bf00,{writer:_0x43725c,options:_0x32fba9})=>{if(_0x32fba9['showSuggestionHighlights'])return _0x43725c['createEmptyElement']('div');},'converterPriority':'high'}),_0x401716['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3bd1d7,_0x308a70,_0xe54e39)=>{_0xe54e39['options']['showSuggestionHighlights']&&_0x3bd1d7['stop']();},{'priority':'high'});}}class mt extends _0x58a0bc{['afterInit'](){const _0x27bb8a=this['editor'];_0x27bb8a['plugins']['has']('MentionEditing')&&_0x27bb8a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x58a0bc{['afterInit'](){const _0x591d4a=this['editor'];if(!_0x591d4a['plugins']['has']('MergeFieldsEditing'))return;_0x591d4a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x591d4a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x26ef07=_0x591d4a['plugins']['get']('TrackChangesEditing'),_0x133461=_0x591d4a['locale'];_0x26ef07['descriptionFactory']['registerElementLabel']('mergeField',_0x24b161=>o(_0x133461,'ELEMENT_MERGE_FIELD',_0x24b161)),_0x26ef07['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x29301a=>o(_0x133461,'ELEMENT_MERGE_FIELD',_0x29301a)),_0x26ef07['descriptionFactory']['registerDescriptionCallback'](_0x39ea15=>{if('insertion'!=_0x39ea15['type']&&'deletion'!=_0x39ea15['type'])return;const _0x31040b=_0x39ea15['getContainedElement']();if(null==_0x31040b)return;if(!_0x31040b['is']('element','mergeField')&&!_0x31040b['is']('element','mergeFieldBlock'))return;const _0x35c289=_0x591d4a['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x31040b['getAttribute']('id'));return'insertion'==_0x39ea15['type']?{'type':'insertion','content':o(_0x133461,'*Insert:*\x20%0','\x22'+_0x35c289+'\x22\x20'+o(_0x133461,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x133461,'*Remove:*\x20%0','\x22'+_0x35c289+'\x22\x20'+o(_0x133461,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x58a0bc{['afterInit'](){const _0x336ffa=this['editor'],_0x187544=_0x336ffa['plugins']['get']('TrackChangesEditing');_0x336ffa['plugins']['has']('MultiLevelList')&&(_0x187544['enableDefaultAttributesIntegration']('multiLevelList'),_0x187544['registerBlockAttribute']('listMarkerStyle'),_0x187544['descriptionFactory']['registerDescriptionCallback'](_0x232d2f=>this['handleDescriptions'](_0x232d2f)));}['handleDescriptions'](_0x585620){const _0x15642c=this['editor']['locale'],{data:_0x3fa22d}=_0x585620,_0x2dd72f={'type':'format','content':''};if(_0x3fa22d&&'listMarkerStyle'==_0x3fa22d['key']){if(!_0x3fa22d['oldValue'])return{'type':'format','content':o(_0x15642c,'*Set\x20format:*\x20%0',o(_0x15642c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3fa22d['newValue']+')'};if(!_0x3fa22d['newValue']){let _0x1ffb89=_0x585620['head'];for(;_0x1ffb89;){if(_0x1ffb89['data']&&'listType'==_0x1ffb89['data']['key']&&_0x1ffb89['data']['newValue'])return _0x2dd72f;_0x1ffb89=_0x1ffb89['next'];}return{'type':'format','content':o(_0x15642c,'*Remove\x20format:*\x20%0',o(_0x15642c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3fa22d['oldValue']+')'};}}}}class kt extends _0x58a0bc{['afterInit'](){const _0x27e9b1=this['editor'];if(!_0x27e9b1['plugins']['has']('PageBreakEditing'))return;_0x27e9b1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d1b81=_0x27e9b1['plugins']['get']('TrackChangesEditing'),_0xe40d53=_0x27e9b1['locale'];_0x3d1b81['descriptionFactory']['registerElementLabel']('pageBreak',_0x389a66=>o(_0xe40d53,'ELEMENT_PAGE_BREAK',_0x389a66));}}class bt extends _0x58a0bc{['afterInit'](){const _0x4f7be5=this['editor'];if(!_0x4f7be5['plugins']['has']('Paragraph'))return;const _0x11dd5f=_0x4f7be5['locale'],_0x78f442=_0x4f7be5['plugins']['get']('TrackChangesEditing');_0x78f442['descriptionFactory']['registerElementLabel']('paragraph',_0xfadafe=>o(_0x11dd5f,'ELEMENT_PARAGRAPH',_0xfadafe)),_0x78f442['enableDefaultAttributesIntegration']('paragraph'),_0x78f442['enableCommand']('insertParagraph'),_0x4f7be5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4f7be5),{'priority':'highest'}),_0x4f7be5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x32837e,_0x27fe37,_0x4c4d7a)=>{_0x4c4d7a['options']['showSuggestionHighlights']&&nr(_0x4f7be5,{'showActiveMarker':!0x1})(_0x32837e,_0x27fe37,_0x4c4d7a);},{'priority':'highest'});const _0x3874d3=_0x78f442['descriptionFactory'];_0x3874d3['registerDescriptionCallback'](_0x5ef6b2=>{if('insertion'!==_0x5ef6b2['type'])return;const {start:_0x495531,end:_0x4e4207}=_0x5ef6b2['getFirstRange']();if(!_0x495531['isTouching'](_0x4e4207)||!_0x495531['nodeAfter'])return;const _0x38a40e=_0x4f7be5['model']['schema'],_0x1a08cf=_0x495531['nodeAfter'];return _0x38a40e['isBlock'](_0x1a08cf)&&!_0x38a40e['isLimit'](_0x1a08cf)&&_0x38a40e['checkChild'](_0x1a08cf,'$text')?{'type':'insertion','content':o(_0x11dd5f,'*Insert:*\x20%0',_0x3874d3['getItemLabel'](_0x1a08cf,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a218c=this['editor'],_0xd4905d=_0x3a218c['locale'];_0x3a218c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x338a0d=>{if('formatBlock'!=_0x338a0d['type'])return;const {data:_0x4f0597}=_0x338a0d;return _0x4f0597&&'paragraph'==_0x4f0597['commandName']?{'type':'format','content':o(_0xd4905d,'*Change\x20to:*\x20%0',o(_0xd4905d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x220457,{showActiveMarker:_0x27d0df=!0x0}={}){return(_0x152b7d,_0x2a72bc,_0x5e447a)=>{const _0x3dd61f=_0x220457['plugins']['get']('TrackChangesEditing'),_0x297762=_0x2a72bc['markerRange']['start'],_0x348922=_0x2a72bc['markerRange']['end'],_0x503f2d=_0x220457['model']['schema'];if(!_0x297762['isTouching'](_0x348922)||!_0x297762['nodeAfter'])return;const _0x1e00c5=_0x297762['nodeAfter'];if(_0x503f2d['isBlock'](_0x1e00c5)&&!_0x503f2d['isLimit'](_0x1e00c5)&&_0x503f2d['checkChild'](_0x1e00c5,'$text')){if(!_0x5e447a['consumable']['consume'](_0x2a72bc['markerRange'],_0x152b7d['name']))return;const {authorId:_0x410898}=_0x3dd61f['_splitMarkerName'](_0x2a72bc['markerName']),_0x38eebe=_0x5e447a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x410898}),_0x3922b6=_0x5e447a['mapper']['toViewPosition'](_0x348922);_0x27d0df&&_0x3dd61f['activeMarkers']['includes'](_0x2a72bc['markerName'])&&_0x5e447a['writer']['addClass']('ck-suggestion-marker--active',_0x38eebe),_0x5e447a['writer']['insert'](_0x3922b6,_0x38eebe),_0x5e447a['mapper']['bindElementToMarker'](_0x38eebe,_0x2a72bc['markerName']);}};}class wt extends _0x58a0bc{['afterInit'](){const _0x5679fd=this['editor'];if(!_0x5679fd['plugins']['has']('RemoveFormatEditing'))return;_0x5679fd['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x102cb6=this['editor'];_0x102cb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37f9e7=>{if('formatBlock'!=_0x37f9e7['type']&&'formatInline'!=_0x37f9e7['type'])return;const {data:_0x54c107}=_0x37f9e7;return _0x54c107&&'removeFormat'==_0x54c107['commandName']?{'type':'format','content':o(_0x102cb6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x58a0bc{['afterInit'](){const _0x4dfa63=this['editor'];if(!_0x4dfa63['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1b53f2=_0x4dfa63['plugins']['get']('TrackChangesEditing');_0x1b53f2['enableCommand']('goToPreviousRestrictedEditingException'),_0x1b53f2['enableCommand']('goToNextRestrictedEditingException');const _0x535ef6=_0x4dfa63['plugins']['get']('RestrictedEditingModeEditing');_0x535ef6['enableCommand']('trackChanges'),_0x535ef6['enableCommand']('acceptSuggestion'),_0x535ef6['enableCommand']('discardSuggestion'),_0x535ef6['enableCommand']('acceptAllSuggestions'),_0x535ef6['enableCommand']('discardAllSuggestions'),_0x535ef6['enableCommand']('acceptSelectedSuggestions'),_0x535ef6['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x58a0bc{static get['requires'](){return[_0x210491];}['init'](){const _0x104ba5=this['editor'],_0x1f9260=_0x104ba5['plugins']['get']('TrackChangesEditing');_0x1f9260['enableCommand']('shiftEnter'),_0x104ba5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x104ba5),{'priority':'high'}),_0x104ba5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x104ba5),{'priority':'high'}),_0x104ba5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x326650,_0x118f2c,_0xe29e32)=>{_0xe29e32['options']['showSuggestionHighlights']&&ge(_0x104ba5,{'showActiveMarker':!0x1})(_0x326650,_0x118f2c,_0xe29e32);}),_0x1f9260['descriptionFactory']['registerElementLabel']('softBreak',_0x4e40d9=>o(_0x104ba5['locale'],'ELEMENT_LINE_BREAK',_0x4e40d9));}}function ge(_0xefd499,{showActiveMarker:_0x3e76ce=!0x0}={}){return(_0x555419,_0x349435,_0x57afc8)=>{const _0x3e42bd=_0xefd499['plugins']['get']('TrackChangesEditing');if(!_0x57afc8['consumable']['test'](_0x349435['markerRange'],_0x555419['name']))return;const _0x2857c3=_0xefd499['model'];for(const _0x95df84 of _0x349435['markerRange']['getItems']()){if(!_0x95df84['is']('element','softBreak'))continue;const _0x2d1bf2='deletion'==_0x349435['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x49496b}=_0x3e42bd['_splitMarkerName'](_0x349435['markerName']),_0x343605=_0x57afc8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2d1bf2,'data-author-id':_0x49496b}),_0x4bf886=_0x57afc8['mapper']['toViewPosition'](_0x2857c3['createPositionBefore'](_0x95df84));_0x3e76ce&&_0x3e42bd['activeMarkers']['includes'](_0x349435['markerName'])&&_0x57afc8['writer']['addClass']('ck-suggestion-marker--active',_0x343605),_0x57afc8['writer']['insert'](_0x4bf886,_0x343605),_0x57afc8['mapper']['bindElementToMarker'](_0x343605,_0x349435['markerName']);}};}class St extends _0x58a0bc{['afterInit'](){const _0x1e633c=this['editor'],_0x4d3569=_0x1e633c['model'],_0x5c610b=_0x1e633c['locale'];if(!_0x1e633c['plugins']['has']('StandardEditingModeEditing'))return;const _0x16b5c4=_0x1e633c['plugins']['get']('TrackChangesEditing'),_0xa126c3='restrictedEditingException',_0x406f93=_0x1e633c['commands']['get'](_0xa126c3);_0x16b5c4['enableCommand'](_0xa126c3,(_0x167d48,_0x37df7b={})=>{const _0xed20b5=_0x4d3569['document']['selection'];if(_0xed20b5['isCollapsed'])return void _0x167d48(_0x37df7b);const _0x1eedb2=void 0x0!==_0x37df7b['forceValue']?_0x37df7b['forceValue']:!_0x406f93['value'];_0x4d3569['change'](()=>{const _0x290d63=Array['from'](_0xed20b5['getRanges']());for(const _0x4912dc of _0x290d63){const _0x55c293=_0x1eedb2?[_0x4912dc]:io(_0xa126c3,_0x4912dc,_0x4d3569);for(const _0x282262 of _0x55c293)_0x16b5c4['markInlineFormat'](_0x282262,{'commandName':_0xa126c3,'commandParams':[{'forceValue':_0x1eedb2}]});}});}),_0x16b5c4['descriptionFactory']['registerDescriptionCallback'](_0x51affe=>{if('formatBlock'!=_0x51affe['type']&&'formatInline'!=_0x51affe['type'])return;const {data:_0x41da8f}=_0x51affe;return _0x41da8f&&_0x41da8f['commandName']==_0xa126c3?_0x41da8f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c610b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5c610b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x58a0bc{['afterInit'](){const _0x3d8908=this['editor'];if(!_0x3d8908['plugins']['has']('Style')||!_0x3d8908['plugins']['has']('DataSchema'))return;const _0x53c4e3=_0x3d8908['plugins']['get']('TrackChangesEditing'),_0x597606=_0x3d8908['locale'],_0x46731d=_0x3d8908['config']['get']('style')||{},_0x356bd6=_0x3d8908['plugins']['get']('GeneralHtmlSupport'),_0xa3bd6b=_0x3d8908['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3d8908['plugins']['get']('DataSchema'),_0x46731d['definitions']);_0x53c4e3['enableDefaultAttributesIntegration']('style');const _0x119c5b=new Set();for(const _0x4f1c50 of _0xa3bd6b['block']){const _0x46bb72=_0x356bd6['getGhsAttributeNameForElement'](_0x4f1c50['element']);_0x119c5b['add'](_0x46bb72);}const _0x8e9147=new Set();for(const _0x87b8ee of _0xa3bd6b['inline']){const _0x306e93=_0x356bd6['getGhsAttributeNameForElement'](_0x87b8ee['element']);_0x8e9147['add'](_0x306e93);for(const _0x3dffa3 of _0x87b8ee['ghsAttributes'])_0x8e9147['add'](_0x3dffa3);}for(const _0x2c66d9 of _0x119c5b)_0x53c4e3['registerBlockAttribute'](_0x2c66d9),_0x53c4e3['descriptionFactory']['registerAttributeLabel'](_0x2c66d9,o(_0x597606,'FORMAT_STYLE'));for(const _0x2213c8 of _0x8e9147)_0x53c4e3['registerInlineAttribute'](_0x2213c8),_0x53c4e3['descriptionFactory']['registerAttributeLabel'](_0x2213c8,o(_0x597606,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dc0fc=this['editor'],_0x2cc712=_0x1dc0fc['locale'];_0x1dc0fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178141=>{if('formatBlock'!=_0x178141['type']&&'formatInline'!=_0x178141['type'])return;const {data:_0x28d05d}=_0x178141;return _0x28d05d&&'style'===_0x28d05d['commandName']?_0x28d05d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2cc712,'*Set\x20format:*\x20%0',_0x28d05d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2cc712,'*Remove\x20format:*\x20%0',_0x28d05d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x58a0bc{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1ed687){super(_0x1ed687),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x44ee26=this['editor'],_0x592ded=_0x44ee26['model']['document']['selection'];if(!_0x44ee26['plugins']['has']('TableEditing'))return;const _0x4e66ca=_0x44ee26['locale'],_0x15439c=_0x44ee26['plugins']['get']('TrackChangesEditing'),_0x45dec2=_0x44ee26['plugins']['get']('TableUtils');_0x15439c['descriptionFactory']['registerElementLabel']('table',_0x1f199d=>o(_0x4e66ca,'ELEMENT_TABLE',_0x1f199d)),this['_setupColumnsRowsFixing'](),_0x15439c['enableCommand']('insertTable'),_0x15439c['enableCommand']('selectTableRow'),_0x15439c['enableCommand']('selectTableColumn');for(const _0x261a2b of['insertTableRowAbove','insertTableRowBelow']){const _0x46b58f=_0x44ee26['commands']['get'](_0x261a2b);_0x15439c['enableCommand'](_0x261a2b,_0x59929e=>{_0x44ee26['model']['change'](_0x113ee4=>{_0x59929e();const _0x33f987='above'===_0x46b58f['order'],_0x50459d=_0x45dec2['getSelectionAffectedTableCells'](_0x592ded),_0x52f093=_0x45dec2['getRowIndexes'](_0x50459d),_0x4c9d63=_0x33f987?_0x52f093['first']-0x1:_0x52f093['last']+0x1,_0x5f51a2=_0x50459d[0x0]['findAncestor']('table'),_0x3d1eb3=_0x45dec2['createTableWalker'](_0x5f51a2,{'startRow':_0x4c9d63,'endRow':_0x4c9d63}),_0x4f0a0f=Array['from'](_0x3d1eb3)['map'](_0x1e2709=>_0x113ee4['createRangeOn'](_0x1e2709['cell']));_0x15439c['markMultiRangeInsertion'](_0x4f0a0f,'tableRow');});});}for(const _0x455d76 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2a0aa8=_0x44ee26['commands']['get'](_0x455d76);_0x15439c['enableCommand'](_0x455d76,_0x3f2e5c=>{_0x44ee26['model']['change'](_0x4bf33b=>{_0x3f2e5c();const _0x502c06='left'===_0x2a0aa8['order'],_0x34db84=_0x45dec2['getSelectionAffectedTableCells'](_0x592ded),_0x10971b=_0x45dec2['getColumnIndexes'](_0x34db84),_0x72f355=_0x502c06?_0x10971b['first']-0x1:_0x10971b['last']+0x1,_0x2ba8cc=_0x34db84[0x0]['findAncestor']('table'),_0x137de1=_0x45dec2['createTableWalker'](_0x2ba8cc,{'startRow':0x0,'column':_0x72f355,'includeAllSlots':!0x1}),_0x4bb676=Array['from'](_0x137de1)['map'](_0x46ff0b=>_0x4bf33b['createRangeOn'](_0x46ff0b['cell']));_0x15439c['markMultiRangeInsertion'](_0x4bb676,'tableColumn');});});}for(const _0x39d104 of['removeTableRow','removeTableColumn']){const _0x171449=_0x39d104['substr'](0xb),_0x3af4f7=_0x171449['toLowerCase'](),_0x239697=_0x3af4f7['substr'](0x0,0x3)+'span',_0x2daf89='table'+_0x171449,_0x598aa0='min'+_0x171449,_0x3e14cd='max'+_0x171449;_0x15439c['enableCommand'](_0x39d104,()=>{_0x44ee26['model']['change'](_0x13b246=>{const _0x27e50a=_0x45dec2['getSelectionAffectedTableCells'](_0x592ded),_0x124360=_0x27e50a[0x0]['findAncestor']('table');let _0x335c22;if('removeTableRow'==_0x39d104){const _0x5f3e6f=_0x45dec2['getRowIndexes'](_0x27e50a);_0x335c22={'startRow':_0x5f3e6f['first'],'endRow':_0x5f3e6f['last'],'includeAllSlots':!0x0};}else{const _0x4ff554=_0x45dec2['getColumnIndexes'](_0x27e50a);_0x335c22={'startColumn':_0x4ff554['first'],'endColumn':_0x4ff554['last'],'includeAllSlots':!0x0};}const _0x1945e2=_0x45dec2['createTableWalker'](_0x124360,_0x335c22),_0x1fd7fa=Array['from'](_0x1945e2)['map'](({cell:_0x190831})=>_0x190831),_0xcd0fd1=be(_0x1fd7fa['filter'](_0x27b200=>_0x27b200['hasAttribute'](_0x239697))),_0x24bab3=be(_0x1fd7fa['filter'](_0xd18afd=>!_0xd18afd['hasAttribute'](_0x239697)))['map'](_0x3a0a2c=>_0x13b246['createRangeOn'](_0x3a0a2c)),_0xedc187=_0x15439c['markMultiRangeDeletion'](_0x24bab3,_0x2daf89);if(_0xedc187&&('tableRow'==_0xedc187['subType']||'tableColumn'==_0xedc187['subType'])){const _0x2c7c60=this['_getSuggestionCoords'](_0xedc187);for(const _0x23959c of _0xcd0fd1){const _0x402548=_0x13b246['createRangeOn'](_0x23959c),_0x4e2349=_0x45dec2['getCellLocation'](_0x23959c),_0x12839a=_0x23959c['getAttribute'](_0x239697)-0x1,_0x153939=_0x2c7c60[_0x598aa0],_0x457fd2=_0x2c7c60[_0x3e14cd];_0x153939<=_0x4e2349[_0x3af4f7]&&_0x4e2349[_0x3af4f7]+_0x12839a<=_0x457fd2&&_0xedc187['addRange'](_0x402548);}}});});}function _0x3c9945(_0x2919ec){const _0x381f14=Array['from'](_0x592ded['getRanges']())['map'](_0x57f544=>_0x1ac7bd['fromRange'](_0x57f544));_0x44ee26['model']['change'](_0x1b9cb4=>{const _0x4ebe0e=_0x1b9cb4['batch'];_0x2919ec=_0x2919ec['filter'](_0x538577=>'$graveyard'!=_0x538577['root']['rootName']),_0x1b9cb4['setSelection'](_0x2919ec),_0x44ee26['commands']['get']('removeTableRow')['refresh'](),_0x44ee26['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x44ee26['model']['enqueueChange'](()=>{_0x44ee26['model']['enqueueChange'](_0x4ebe0e,_0xa006df=>{const _0x5411a8=_0x381f14['filter'](_0x3a8f2c=>'$graveyard'!=_0x3a8f2c['root']['rootName']);_0x5411a8['length']>0x0&&_0xa006df['setSelection'](_0x5411a8);for(const _0x5d5851 of _0x381f14)_0x5d5851['detach']();});});});}function _0x1c0b7c(_0x3a1a47){_0x44ee26['model']['change'](_0xbc2cb=>{const _0x22e1ab=Array['from'](_0x592ded['getRanges']())['map'](_0xcf48fe=>_0x1ac7bd['fromRange'](_0xcf48fe)),_0x4fdc89=[];for(const _0x35c3c0 of _0x3a1a47)for(const _0x29ce41 of _0x35c3c0['getItems']({'shallow':!0x0}))_0x4fdc89['push'](_0x29ce41);for(const _0x5ee79d of _0x4fdc89)'$graveyard'!=_0x5ee79d['root']['rootName']&&(_0xbc2cb['setSelection'](_0xbc2cb['createPositionAt'](_0x5ee79d,0x0)),_0x44ee26['commands']['get']('removeTableColumn')['refresh'](),_0x44ee26['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x486aa7=_0x22e1ab['filter'](_0x446abf=>'$graveyard'!=_0x446abf['root']['rootName']);_0x486aa7['length']>0x0&&_0xbc2cb['setSelection'](_0x486aa7);for(const _0x50d32b of _0x22e1ab)_0x50d32b['detach']();});}function _0x50cbcf(_0x4881da,_0x16bf97){return _0x16bf97['every'](_0x2d1555=>_0x4881da['some'](_0x10e9a5=>_0x10e9a5['end']['isEqual'](_0x2d1555['start'])||_0x2d1555['end']['isEqual'](_0x10e9a5['start'])));}function _0x41d1ea(_0x286dab,_0x45fc15){return!_0x286dab['some'](_0x2de629=>_0x45fc15['some'](_0x337774=>_0x2de629['isIntersecting'](_0x337774)))&&_0x286dab['some'](_0x2fc23d=>_0x45fc15['some'](_0x2dc993=>_0x2fc23d['end']['isTouching'](_0x2dc993['start'])));}_0x44ee26['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ad933,_0x53e061,_0x54c6af)=>{if(!_0x54c6af['options']['showSuggestionHighlights'])return;const _0x169a44=_0x53e061['item'];if(!_0x169a44)return;const _0x1b10f9=_0x54c6af['mapper']['toViewElement'](_0x169a44);function _0x4588c7(_0x487231){return Array['isArray'](_0x487231)?_0x487231:[_0x487231];}_0x1b10f9&&'tableCell'===_0x169a44['name']&&_0x325294(_0x1b10f9,_0x54c6af['writer'],(_0x3242a1,_0x22fc59,_0x5c9de8)=>_0x5c9de8['addClass'](_0x4588c7(_0x22fc59['classes']),_0x3242a1),(_0x509e9d,_0x519eb4,_0x3b5eb8)=>_0x3b5eb8['removeClass'](_0x4588c7(_0x519eb4['classes']),_0x509e9d));},{'priority':'highest'}),_0x15439c['descriptionFactory']['registerDescriptionCallback'](_0x532caf=>{if('insertion'!=_0x532caf['type']&&'deletion'!=_0x532caf['type'])return;const _0x2c9c54=_0x532caf['getContainedElement']();if(null!=_0x2c9c54&&_0x2c9c54['is']('element','table')){if('insertion'==_0x532caf['type']){const _0x40d909=_0x532caf['getItems']()['filter'](_0x1d329f=>_0x1d329f['is']('$textProxy'))['map'](_0x26ed78=>_0x26ed78['data']);if(_0x40d909['length'])return{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x40d909['join']('\x20')+'\x22'))};}if('deletion'==_0x532caf['type']){const _0x44a191=_0x532caf['getItems']()['filter'](_0x27d004=>_0x27d004['is']('$textProxy'))['map'](_0x3985fc=>_0x3985fc['data']);if(_0x44a191['length'])return{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x44a191['join']('\x20')+'\x22'))};}}}),_0x15439c['descriptionFactory']['registerDescriptionCallback'](_0x48779d=>{if('tableRow'==_0x48779d['subType']){const _0x296216=_0x48779d['getItems']()['filter'](_0x271c18=>_0x271c18['is']('$textProxy'))['map'](_0x57a56c=>_0x57a56c['data']),_0x5be800=this['_getSuggestionCoords'](_0x48779d),_0x44fa92=_0x5be800['maxRow']-_0x5be800['minRow']+0x1;if('insertion'==_0x48779d['type'])return _0x296216['length']?{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x44fa92,'\x22'+_0x296216['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_ROW',_0x44fa92))};if('deletion'==_0x48779d['type'])return _0x296216['length']?{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x44fa92,'\x22'+_0x296216['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_ROW',_0x44fa92))};}if('tableColumn'==_0x48779d['subType']){const _0x4ea6da=_0x48779d['getItems']()['filter'](_0x20cc08=>_0x20cc08['is']('$textProxy'))['map'](_0x5a832e=>_0x5a832e['data']),_0x4a9a3f=this['_getSuggestionCoords'](_0x48779d),_0x1e4381=_0x4a9a3f['maxColumn']-_0x4a9a3f['minColumn']+0x1;if('insertion'==_0x48779d['type'])return _0x4ea6da['length']?{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1e4381,'\x22'+_0x4ea6da['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_COLUMN',_0x1e4381))};if('deletion'==_0x48779d['type'])return _0x4ea6da['length']?{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1e4381,'\x22'+_0x4ea6da['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_COLUMN',_0x1e4381))};}}),_0x15439c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3c9945),_0x15439c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3c9945),_0x15439c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1c0b7c),_0x15439c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1c0b7c),_0x15439c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x50cbcf),_0x15439c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x50cbcf),_0x15439c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x41d1ea),_0x15439c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x41d1ea);}['_acceptFormatSuggestionCallbackFactory'](){const _0x24f8ab=this['editor'],_0x2e333a=_0x24f8ab['model']['document']['selection'];return(_0x1b7bb1,_0x54d87a)=>{_0x24f8ab['model']['change'](_0x5d1ee3=>{const {commandName:_0x5f0477,commandParams:_0x21b91f}=_0x54d87a;let _0x631518=_0x1b7bb1[0x0]['end']['nodeBefore'];_0x21b91f&&_0x21b91f[0x0]&&!0x1===_0x21b91f[0x0]['forceValue']&&(_0x631518=_0x1b7bb1[0x0]['start']['nodeAfter']);const _0x239bf4=_0x5d1ee3['createRangeIn'](_0x631518);if('$graveyard'==_0x239bf4['root']['rootName'])return;const _0x4fb99d=Array['from'](_0x2e333a['getRanges']())['map'](_0x4cbcc3=>_0x1ac7bd['fromRange'](_0x4cbcc3));_0x5d1ee3['setSelection'](_0x239bf4),_0x24f8ab['commands']['get'](_0x5f0477)['refresh'](),_0x21b91f['push']({'forceDefaultExecution':!0x0}),_0x24f8ab['execute'](_0x5f0477,..._0x21b91f);const _0x38d8c6=_0x4fb99d['filter'](_0x1e569c=>'$graveyard'!=_0x1e569c['root']['rootName']);_0x38d8c6['length']>0x0&&_0x5d1ee3['setSelection'](_0x38d8c6);for(const _0x1ab956 of _0x4fb99d)_0x1ab956['detach']();});};}['_getCoordsForCells'](_0x38e806){const _0x50d4dd=this['editor']['plugins']['get']('TableUtils');let _0x4f18b5=Number['MAX_SAFE_INTEGER'],_0x11cbda=Number['MIN_SAFE_INTEGER'],_0x147402=Number['MAX_SAFE_INTEGER'],_0x10cdd8=Number['MIN_SAFE_INTEGER'];for(const _0x55e04d of _0x38e806){if('$graveyard'==_0x55e04d['root']['rootName'])continue;const {row:_0x445b32,column:_0x4e7027}=_0x50d4dd['getCellLocation'](_0x55e04d),_0x2bb864=_0x55e04d['hasAttribute']('rowspan')?_0x55e04d['getAttribute']('rowspan')-0x1:0x0,_0x1423b4=_0x55e04d['hasAttribute']('colspan')?_0x55e04d['getAttribute']('colspan')-0x1:0x0;_0x4f18b5=_0x445b32<_0x4f18b5?_0x445b32:_0x4f18b5,_0x11cbda=_0x445b32+_0x2bb864>_0x11cbda?_0x445b32+_0x2bb864:_0x11cbda,_0x147402=_0x4e7027<_0x147402?_0x4e7027:_0x147402,_0x10cdd8=_0x4e7027+_0x1423b4>_0x10cdd8?_0x4e7027+_0x1423b4:_0x10cdd8;}return{'minRow':_0x4f18b5,'maxRow':_0x11cbda,'minColumn':_0x147402,'maxColumn':_0x10cdd8};}['_setupColumnsRowsFixing'](){const _0xffbf2e=this['editor'],_0x31adfe=_0xffbf2e['plugins']['get']('TrackChangesEditing'),_0xdb8e01=_0xffbf2e['plugins']['get']('TableUtils');_0xffbf2e['model']['document']['on']('change:data',()=>{const _0xc4e56c=Array['from'](_0xffbf2e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3fc6e0,data:_0x444b0e}of _0xc4e56c){const {group:_0x456630,id:_0x205174,subType:_0x7774d1}=_0x31adfe['_splitMarkerName'](_0x3fc6e0);if('suggestion'!=_0x456630)continue;if(null!=_0x444b0e['oldRange'])continue;const _0x2323fb=_0x31adfe['getSuggestion'](_0x205174);this['_tablePostFixingSubtypes']['includes'](_0x7774d1)&&this['_tableSuggestions']['add'](_0x2323fb);}},{'priority':'low'});const _0x47725a=(_0x2916d7,_0x308710)=>{let _0x5d0cf7=!0x1;const _0x54deae=_0x308710['createRangeOn'](_0x2916d7),_0x5c37bf=_0x2916d7['findAncestor']('table'),_0x3d19aa=_0xdb8e01['getCellLocation'](_0x2916d7);for(const _0x47d20c of this['_tableSuggestions']){const _0x469cc4=_0x47d20c['subType'],_0x562764=_0x469cc4['startsWith']('tablePaste'),_0x22691c=_0x469cc4['substr'](_0x562764?0xa:0x5),_0x75b909=_0x22691c['toLowerCase'](),_0x387338=_0x75b909['substr'](0x0,0x3)+'span',_0x562c47='min'+_0x22691c,_0x5c1bee='max'+_0x22691c;if(!_0x47d20c['isInContent'])continue;if(_0x5c37bf!=_0x47d20c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x47d20c['isIntersectingWithRange'](_0x54deae))continue;const _0x3e1c9f=_0x2916d7['hasAttribute'](_0x387338)?_0x2916d7['getAttribute'](_0x387338)-0x1:0x0,_0x1702c4=this['_getSuggestionCoords'](_0x47d20c),_0x5b43db=_0x1702c4[_0x562c47],_0x122fb0=_0x1702c4[_0x5c1bee];_0x5b43db<=_0x3d19aa[_0x75b909]&&_0x3d19aa[_0x75b909]+_0x3e1c9f<=_0x122fb0&&(_0x47d20c['addRange'](_0x54deae),_0x5d0cf7=!0x0);}return _0x5d0cf7;};_0xffbf2e['model']['document']['registerPostFixer'](_0x2d0086=>{let _0x5323c2=!0x1;for(const _0x35e850 of _0xffbf2e['model']['document']['differ']['getChanges']())if('insert'==_0x35e850['type']){if('tableRow'==_0x35e850['name']){for(const _0x269eaa of _0x35e850['position']['nodeAfter']['getChildren']())_0x5323c2=_0x5323c2||_0x47725a(_0x269eaa,_0x2d0086);}else'tableCell'==_0x35e850['name']&&(_0x5323c2=_0x5323c2||_0x47725a(_0x35e850['position']['nodeAfter'],_0x2d0086));}return _0x5323c2;});}['_getSuggestionCoords'](_0x1ea51f){return this['_getCoordsForCells'](_0x1ea51f['getRanges']()['map'](_0x8c1241=>_0x8c1241['start']['nodeAfter']));}}function be(_0x4f65a3){return Array['from'](new Set(_0x4f65a3)['values']());}class vt extends _0x58a0bc{static get['requires'](){return[It];}['afterInit'](){const _0x4a29d0=this['editor'],_0x5aa2=_0x4a29d0['model']['document']['selection'],_0x1911af=_0x4a29d0['locale'];if(!_0x4a29d0['plugins']['has']('TableEditing'))return;const _0x3e4ae7=_0x4a29d0['plugins']['get']('TrackChangesEditing'),_0x5422bb=_0x4a29d0['plugins']['get']('TableUtils'),_0x4b18be=_0x4a29d0['plugins']['get'](It);_0x4b18be['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3e4ae7['enableCommand']('mergeTableCells',()=>{const _0x121a62=_0x5422bb['getSelectionAffectedTableCells'](_0x4a29d0['model']['document']['selection']);_0x4a29d0['model']['change'](()=>{_0x3e4ae7['markMultiRangeBlockFormat'](_0x121a62,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4a29d0['commands']['get']('mergeTableCells')['on']('execute',(_0x5c77ae,_0x335b8c)=>{_0x4a29d0['commands']['get']('trackChanges')['value']&&(_0x335b8c['length']>0x0&&_0x335b8c[_0x335b8c['length']-0x1]&&_0x335b8c[_0x335b8c['length']-0x1]['forceDefaultExecution']||_0x3e4ae7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5c77ae['stop']());},{'priority':'highest'});for(const _0x12d5e0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2317c1=_0x4a29d0['commands']['get'](_0x12d5e0);_0x3e4ae7['enableCommand'](_0x12d5e0,()=>{const _0x4efb6b=_0x4a29d0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x33aec6=>_0x33aec6['is']('element','tableCell')),_0x12d56d=_0x2317c1['value'];_0x4a29d0['model']['change'](()=>{_0x3e4ae7['markMultiRangeBlockFormat']([_0x4efb6b,_0x12d56d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4d1db4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x54aa26=_0x4a29d0['commands']['get'](_0x4d1db4);_0x3e4ae7['enableCommand'](_0x4d1db4,()=>{const _0x21a27b=_0x5422bb['getSelectionAffectedTableCells'](_0x4a29d0['model']['document']['selection'])[0x0],_0x2ee604=_0x21a27b['findAncestor']('table'),{column:_0x567048,row:_0x2da829}=_0x5422bb['getCellLocation'](_0x21a27b);let _0xdb2ff=[];if('horizontally'==_0x54aa26['direction']){const _0x22ce65=_0x5422bb['createTableWalker'](_0x2ee604,{'startRow':_0x2da829,'endRow':_0x2da829,'includeAllSlots':!0x0});_0xdb2ff=Array['from'](_0x22ce65)['map'](_0x149efb=>_0x149efb['cell']);}else{const _0x55e8e2=_0x5422bb['createTableWalker'](_0x2ee604,{'column':_0x567048,'includeAllSlots':!0x0});_0xdb2ff=Array['from'](_0x55e8e2)['map'](_0xd5e3d1=>_0xd5e3d1['cell']);}_0x4a29d0['model']['change'](_0x2134d4=>{_0x3e4ae7['markBlockFormat'](_0x2134d4['createRangeOn'](_0x21a27b),{'commandName':_0x4d1db4,'commandParams':[]},_0xdb2ff,_0x4d1db4);});});}_0x3e4ae7['descriptionFactory']['registerDescriptionCallback'](_0xc9f9ef=>{if('formatBlock'!=_0xc9f9ef['type']&&'formatInline'!=_0xc9f9ef['type'])return;const {data:_0x346b70}=_0xc9f9ef;return _0x346b70&&'mergeTableCells'==_0x346b70['commandName']?{'type':'format','content':o(_0x1911af,'*Merge\x20cells*')}:void 0x0;}),_0x3e4ae7['descriptionFactory']['registerDescriptionCallback'](_0x4914b6=>{if('formatBlock'!=_0x4914b6['type']&&'formatInline'!=_0x4914b6['type'])return;const {data:_0x1afe72}=_0x4914b6;return _0x1afe72?'splitTableCellVertically'==_0x1afe72['commandName']?{'type':'format','content':o(_0x1911af,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1afe72['commandName']?{'type':'format','content':o(_0x1911af,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x49f124=_0x4b18be['_acceptFormatSuggestionCallbackFactory']();for(const _0x48bda4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3e4ae7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x48bda4,'accept',_0x49f124);for(const _0x5c2cae of['splitTableCellVertically','splitTableCellHorizontally'])_0x3e4ae7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5c2cae,'accept',_0x49f124);_0x3e4ae7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2140c1=>{_0x4a29d0['model']['change'](_0x4664f3=>{const _0x11b62e=Array['from'](_0x5aa2['getRanges']())['map'](_0x174188=>_0x1ac7bd['fromRange'](_0x174188));_0x4664f3['setSelection'](_0x2140c1),_0x4a29d0['commands']['get']('mergeTableCells')['refresh'](),_0x4a29d0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x23fc11=_0x11b62e['filter'](_0x3d7919=>'$graveyard'!=_0x3d7919['root']['rootName']);_0x23fc11['length']>0x0&&_0x4664f3['setSelection'](_0x23fc11);for(const _0x3d8a5a of _0x11b62e)_0x3d8a5a['detach']();});});for(const _0x3c3f68 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xa5df0c=_0x4a29d0['commands']['get'](_0x3c3f68);_0xa5df0c['on']('set:isEnabled',(_0x2f9cca,_0x891bd8,_0x164d41)=>{if(_0x164d41){const _0x285f38=_0x4a29d0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x555875=>_0x555875['is']('element','tableCell'));this['_areMergableCells'](_0xa5df0c['value'],_0x285f38)||(_0x2f9cca['return']=!0x1,_0x2f9cca['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1f9423=this['editor']['commands']['get']('mergeTableCells'),_0x4e71b2=this['editor']['plugins']['get']('TableUtils');if(!_0x1f9423['isEnabled'])return!0x1;const _0x30577f=_0x4e71b2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3787fc of _0x30577f)for(const _0x5c4dc3 of _0x30577f)if(_0x3787fc!=_0x5c4dc3&&!this['_areMergableCells'](_0x3787fc,_0x5c4dc3))return!0x1;return!0x0;}['_areMergableCells'](_0x4f510e,_0x554b29){const _0x2472f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa58560=this['editor']['model']['createRangeOn'](_0x4f510e),_0x3fc5f4=this['editor']['model']['createRangeOn'](_0x554b29),_0x1945c1=new Set(),_0x2977a8=new Set();for(const _0x6c6a60 of _0x2472f0['getSuggestions']())if(('insertion'==_0x6c6a60['type']||'deletion'==_0x6c6a60['type']||'mergeTableCells'==_0x6c6a60['subType'])&&_0x6c6a60['isInContent']){for(const _0x41c2db of _0x6c6a60['getRanges']())_0x41c2db['containsRange'](_0xa58560,!0x0)&&_0x1945c1['add'](_0x6c6a60['type']+':'+_0x6c6a60['author']['id']),_0x41c2db['containsRange'](_0x3fc5f4,!0x0)&&_0x2977a8['add'](_0x6c6a60['type']+':'+_0x6c6a60['author']['id']);}if(_0x1945c1['size']!=_0x2977a8['size'])return!0x1;for(const _0x34018d of _0x1945c1)if(!_0x2977a8['has'](_0x34018d))return!0x1;return!0x0;}}class Ct extends _0x58a0bc{static get['requires'](){return[It];}['afterInit'](){const _0x28bdea=this['editor'];if(!_0x28bdea['plugins']['has']('TableEditing'))return;const _0x25da88=_0x28bdea['locale'],_0x332617=_0x28bdea['plugins']['get']('TrackChangesEditing');_0x332617['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x332617['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x332617['registerBlockAttribute']('headingRows'),_0x332617['registerBlockAttribute']('headingColumns'),_0x332617['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x25da88,'FORMAT_HEADER_ROW')),_0x332617['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x25da88,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2d78b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32106d=this['editor']['plugins']['get']('TableUtils'),_0x300377=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x4bb37c({showActiveMarker:_0x446c83=!0x0,setDataAttribute:_0x55e4e7=!0x0}={}){return(_0x20f5c6,_0x355bf5,_0x23d665)=>{const {type:_0x4e6ceb,id:_0x5574fe}=_0x2d78b7['_splitMarkerName'](_0x355bf5['markerName']),_0x19d5a0=_0x2d78b7['getSuggestion'](_0x5574fe),_0x4458e8=_0x19d5a0['data'];if('formatBlock'!=_0x19d5a0['type']||!_0x4458e8||'setTableColumnHeader'!=_0x4458e8['commandName'])return;if(_0x355bf5['item'])return void _0x20f5c6['stop']();if(!_0x23d665['consumable']['consume'](_0x355bf5['markerRange'],_0x20f5c6['name']))return;const _0x2ababf=_0x355bf5['markerRange']['start']['nodeAfter'],_0x568e3e=_0x355bf5['markerRange']['end']['nodeBefore'],_0x194997=_0x2ababf['parent']['parent'],{column:_0x107125}=_0x32106d['getCellLocation'](_0x2ababf),{column:_0x5f0289}=_0x32106d['getCellLocation'](_0x568e3e);for(let _0x2cef86=_0x107125;_0x2cef86<=_0x5f0289;_0x2cef86++){const _0x1c64b1=_0x32106d['createTableWalker'](_0x194997,{'column':_0x2cef86,'includeAllSlots':!0x1});for(const _0x257c8a of _0x1c64b1){const _0x29fe6c=_0x257c8a['cell'],_0x5180ba=_0x23d665['mapper']['toViewElement'](_0x29fe6c);_0x23d665['writer']['addClass']('ck-suggestion-marker-'+_0x4e6ceb,_0x5180ba),_0x55e4e7&&_0x23d665['writer']['setAttribute']('data-suggestion',_0x5574fe,_0x5180ba),_0x23d665['mapper']['bindElementToMarker'](_0x5180ba,_0x355bf5['markerName']),_0x446c83&&(_0x2d78b7['activeMarkers']['includes'](_0x355bf5['markerName'])?_0x23d665['writer']['addClass']('ck-suggestion-marker--active',_0x5180ba):_0x23d665['writer']['removeClass']('ck-suggestion-marker--active',_0x5180ba));}}};}_0x2d78b7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x300377),_0x2d78b7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x300377),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4bb37c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3cd98f,_0x546154,_0x146b4e)=>{_0x146b4e['options']['showSuggestionHighlights']&&_0x4bb37c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3cd98f,_0x546154,_0x146b4e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4cc152,_0x262188,_0x485661)=>{const {type:_0x37790e,id:_0x4ba1e6}=_0x2d78b7['_splitMarkerName'](_0x262188['markerName']),_0x13c487=_0x2d78b7['getSuggestion'](_0x4ba1e6),_0x3d6526=_0x13c487['data'];if('formatBlock'!=_0x13c487['type']||!_0x3d6526||'setTableColumnHeader'!=_0x3d6526['commandName'])return;const _0x202de7=_0x485661['mapper']['markerNameToElements'](_0x262188['markerName']);if(_0x202de7){for(const _0x506ce2 of _0x202de7)_0x485661['writer']['removeClass']('ck-suggestion-marker-'+_0x37790e,_0x506ce2),_0x485661['writer']['removeClass']('ck-suggestion-marker--active',_0x506ce2),_0x485661['writer']['removeAttribute']('data-suggestion',_0x506ce2),_0x485661['mapper']['unbindElementFromMarkerName'](_0x506ce2,_0x262188['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d43e3=this['editor'],_0x1467db=_0x3d43e3['locale'];function _0x15a434(_0x15c5e5){return{'type':'format','content':o(_0x1467db,'*Format:*\x20%0',_0x15c5e5)};}_0x3d43e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20ecfe=>{if('formatBlock'!=_0x20ecfe['type'])return;const {data:_0x33c6f9}=_0x20ecfe;if(_0x33c6f9){if('setTableRowHeader'==_0x33c6f9['commandName']){const _0x3c8c70=_0x33c6f9['commandParams'][0x0]['forceValue'];return _0x15a434(o(_0x1467db,_0x3c8c70?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x33c6f9['commandName']){const _0x244f75=_0x33c6f9['commandParams'][0x0]['forceValue'];return _0x15a434(o(_0x1467db,_0x244f75?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x283c19=>[_0x283c19,null]));class _t extends _0x58a0bc{static get['requires'](){return[It];}['afterInit'](){const _0x5177a3=this['editor'];if(!_0x5177a3['plugins']['has']('TableClipboard'))return;const _0x2c9b06=_0x5177a3['plugins']['get']('TrackChangesEditing'),_0x40a8a0=_0x5177a3['plugins']['get']('TableUtils'),_0x2f727f=_0x5177a3['plugins']['get'](It),_0x1918b5=_0x5177a3['plugins']['get']('TableClipboard');_0x2f727f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5177a3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5177a3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xdf71b=null;_0x5177a3['model']['on']('insertContent',(_0x2cb8d4,_0x3c1fbf)=>{const [_0x9c755a,_0x4dff8f]=_0x3c1fbf,_0x419ecc=_0x3c1fbf[_0x3c1fbf['length']-0x1];_0x419ecc&&_0x419ecc['forceDefaultExecution']||_0x2c9b06['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x203740,_0x1388d8,_0x2890e3,_0x436aee,_0x59e6f0){if(_0x1388d8&&!_0x1388d8['is']('documentSelection'))return!0x1;const _0x8620ba=_0x59e6f0['getTableIfOnlyTableInContent'](_0x203740,_0x2890e3);if(!_0x8620ba||!Re(_0x8620ba,void 0x0,_0x436aee))return!0x1;const _0x258be7=_0x436aee['getSelectionAffectedTableCells'](_0x2890e3['document']['selection']);if(!_0x258be7['length'])return!0x1;const _0x53e1f5=_0x258be7[0x0]['findAncestor']('table'),_0xcfee03=_0x436aee['getRowIndexes'](_0x258be7),_0x15d3a6=_0x436aee['getColumnIndexes'](_0x258be7),_0x1f91e6={'startRow':_0xcfee03['first'],'endRow':_0xcfee03['last'],'startColumn':_0x15d3a6['first'],'endColumn':_0x15d3a6['last']};return 0x1==_0x258be7['length']&&(_0x1f91e6['endRow']+=_0x436aee['getRows'](_0x8620ba)-0x1,_0x1f91e6['endColumn']+=_0x436aee['getColumns'](_0x8620ba)-0x1),Re(_0x53e1f5,_0x1f91e6,_0x436aee);}(_0x9c755a,_0x4dff8f,_0x5177a3['model'],_0x40a8a0,_0x1918b5)&&(_0x2cb8d4['stop'](),_0xdf71b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5177a3['model']['change'](()=>{_0x5177a3['model']['insertContent'](_0x3c1fbf[0x0],_0x3c1fbf[0x1],_0x3c1fbf[0x2],{'forceDefaultExecution':!0x0});const _0x444564=_0x546e08(),{rowInsertionRanges:_0x26a401,columnInsertionRanges:_0x45bd42,insertionRanges:_0x45a47a,deletionRanges:_0xea8e3b,cells:_0xe19a0e}=_0xdf71b;_0x26a401['length']&&_0x2c9b06['markMultiRangeInsertion'](_0x26a401,'tablePasteRow',{'tablePasteChainId':_0x444564}),_0x45bd42['length']&&_0x2c9b06['markMultiRangeInsertion'](_0x45bd42,'tablePasteColumn',{'tablePasteChainId':_0x444564}),_0x45a47a['length']&&(_0x2c9b06['markMultiRangeInsertion'](_0x45a47a,'tablePaste',{'tablePasteChainId':_0x444564,'skipNestingCheck':!0x0}),_0x45a47a['forEach'](_0x408e56=>_0x408e56['detach']?.())),_0xea8e3b['length']&&(_0x2c9b06['markMultiRangeDeletion'](_0xea8e3b,'tablePaste',{'tablePasteChainId':_0x444564,'skipNestingCheck':!0x0}),_0xea8e3b['forEach'](_0x450968=>_0x450968['detach']?.()));const _0x43e7ca=_0x2c9b06['markMultiRangeBlockFormat'](_0xe19a0e['map'](({element:_0x5e9255})=>_0x5e9255),{'formatGroupId':_0x546e08()},[],'tablePasteCell',{'tablePasteChainId':_0x444564});if(_0x43e7ca){const _0x4287c5=_0x43e7ca['getMarkers'](),_0x1d1608=[];for(const {element:_0x6eb79f,attributes:_0x45dc2d}of _0xe19a0e){if(!_0x45dc2d)continue;const _0x271b67=_0x5177a3['model']['createRangeOn'](_0x6eb79f),_0x21e462=_0x4287c5['find'](_0x5935da=>_0x5935da['getRange']()['isEqual'](_0x271b67));_0x21e462&&_0x1d1608['push']([_0x21e462['name'],_0x45dc2d]);}_0x1d1608['length']&&_0x43e7ca['setAttribute']('markerAttributes',Object['fromEntries'](_0x1d1608));}_0xdf71b=null;}));},{'priority':_0x44834d['high']+0xa}),_0x5177a3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3839ff,_0x2945b7)=>{const [_0x4842cb,_0x1579f7,,_0x230db5]=_0x2945b7;if(!_0xdf71b)return;_0x3839ff['stop']();const _0x19d060=_0x4842cb['cell'],_0x1220d6=_0x1579f7,_0x128646=ke(_0x19d060),_0x3dbac7=ke(_0x1220d6);_0x3839ff['return']=_0x19d060;let _0x21fd64=null,_0x9918a3=null;if(_0x3dbac7||_0x128646){if(_0x128646&&!_0x3dbac7){_0x230db5['remove'](_0x19d060['getChild'](0x0));for(const _0x1f2c5d of Array['from'](_0x1220d6['getChildren']()))_0x230db5['insert'](_0x1f2c5d,_0x19d060,'end');const _0x27a7d8=_0xdf71b['rowInsertionIndexes']['includes'](_0x4842cb['row']),_0x4b3230=_0xdf71b['columnInsertionIndexes']['includes'](_0x4842cb['column']);_0x27a7d8||_0x4b3230||(_0x21fd64=_0x1ac7bd['fromRange'](_0x230db5['createRangeIn'](_0x19d060)));}else _0x3dbac7&&!_0x128646&&(_0x9918a3=_0x230db5['createRangeIn'](_0x19d060));}else{const _0x2e7bc0=_0x230db5['createElement']('tableCellSuggestion'),_0x255af1=_0x230db5['createElement']('tableCellSuggestion');_0x230db5['wrap'](_0x230db5['createRangeIn'](_0x19d060),_0x255af1),_0x230db5['insert'](_0x2e7bc0,_0x19d060,0x0);for(const _0x891dbe of Array['from'](_0x1220d6['getChildren']()))_0x230db5['insert'](_0x891dbe,_0x2e7bc0,'end');_0x21fd64=_0x1ac7bd['fromRange'](_0x230db5['createRangeOn'](_0x2e7bc0)),_0x9918a3=_0x1ac7bd['fromRange'](_0x230db5['createRangeOn'](_0x255af1));}const _0xa9112=Array['from'](_0x1220d6['getAttributes']())['filter'](([_0x463244])=>Pe['includes'](_0x463244));_0xdf71b['cells']['push']({'element':_0x19d060,'attributes':_0xa9112['length']?Object['fromEntries'](_0xa9112):null}),_0x21fd64&&_0xdf71b['insertionRanges']['push'](_0x21fd64),_0x9918a3&&_0xdf71b['deletionRanges']['push'](_0x9918a3);},{'priority':'high'}),_0x40a8a0['on']('insertColumns',(_0xc8553c,_0x556edb)=>{const [_0x1ed29e,_0x2c521f={}]=_0x556edb;if(!_0xdf71b)return;const _0x1ab445=_0x2c521f['at']||0x0,_0xf1045a=_0x2c521f['columns']||0x1;_0xdf71b['columnInsertionIndexes']=new Array(_0xf1045a)['fill'](_0x1ab445)['map']((_0x9babea,_0x1bd780)=>_0x9babea+_0x1bd780);for(const {cell:_0x19e36e}of _0x40a8a0['createTableWalker'](_0x1ed29e,{'startColumn':_0x1ab445,'endColumn':_0x1ab445+_0xf1045a-0x1}))_0xdf71b['columnInsertionRanges']['push'](_0x5177a3['model']['createRangeOn'](_0x19e36e));},{'priority':'low'}),_0x40a8a0['on']('insertRows',(_0x201497,_0xb9ec95)=>{const [_0x1aeac8,_0x21a4ac={}]=_0xb9ec95;if(!_0xdf71b)return;const _0x8b8094=_0x21a4ac['at']||0x0,_0x106899=_0x21a4ac['rows']||0x1;_0xdf71b['rowInsertionIndexes']=new Array(_0x106899)['fill'](_0x8b8094)['map']((_0x294a73,_0x48ec6c)=>_0x294a73+_0x48ec6c);for(const {cell:_0x1915f7}of _0x40a8a0['createTableWalker'](_0x1aeac8,{'startRow':_0x8b8094,'endRow':_0x8b8094+_0x106899-0x1}))_0xdf71b['rowInsertionRanges']['push'](_0x5177a3['model']['createRangeOn'](_0x1915f7));},{'priority':'low'}),_0x2c9b06['descriptionFactory']['registerDescriptionCallback'](_0xb4f3ff=>{if(_0xb4f3ff['subType']&&_0xb4f3ff['subType']['startsWith']('tablePaste'))return _0xb4f3ff['previous']?{}:{'type':'insertion','content':o(_0x5177a3['locale'],'*Replace\x20table\x20cells*')};});const _0x43b7cb=()=>!0x1;for(const _0x3d5e7d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2c9b06['_suggestionFactory']['registerCustomCallback']('insertion',_0x3d5e7d,'join',_0x43b7cb),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('deletion',_0x3d5e7d,'join',_0x43b7cb),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d5e7d,'join',_0x43b7cb);_0x2c9b06['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x43b7cb),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc72f4e,_0x1f7697,_0xd6ffc6)=>{const _0x234759=_0xc72f4e['map'](_0x386af5=>_0x386af5['getContainedElement']())['filter'](_0x3915cb=>_0x3915cb),_0x17c386=new Map(_0x234759['map'](_0x3a9433=>[_0x3a9433,null]));if(_0xdf71b){for(const {element:_0x1bef52,attributes:_0x5a3d2b}of _0xdf71b['cells'])_0x5a3d2b&&_0x17c386['set'](_0x1bef52,_0x5a3d2b);}else{if(_0xd6ffc6&&_0xd6ffc6['markerAttributes'])for(const [_0x387ae8,_0xbde9f8]of Object['entries'](_0xd6ffc6['markerAttributes'])){const _0x4d5f72=_0x5177a3['model']['markers']['get'](_0x387ae8),_0x4ab436=_0x4d5f72?_0x4d5f72['getRange']()['getContainedElement']():null;_0x4ab436&&_0x17c386['set'](_0x4ab436,_0xbde9f8);}}_0x5177a3['model']['change'](_0x5acd33=>{for(const [_0x1f6868,_0x33d098]of _0x17c386)_0x5acd33['setAttributes']({...we,..._0x33d098},_0x1f6868);});});const _0x3e0ea9=(_0x239f37,_0x21686a)=>{_0x2c9b06['_suggestionFactory']['registerCustomCallback'](_0x239f37,'tablePaste',_0x21686a,(_0x4648ea,_0x3a7cb4,_0x1f415c)=>{_0x5177a3['model']['change'](_0x566716=>{const _0x1b8628=[];for(const _0x49fcc5 of _0x4648ea){const _0x55e5d1=_0x49fcc5['start']['nodeAfter'];_0x55e5d1['is']('element','tableCellSuggestion')&&_0x1b8628['push'](_0x55e5d1);}_0x2c9b06['_suggestionFactory']['getSuggestionCallback'](_0x239f37,null,_0x21686a)(_0x4648ea,_0x3a7cb4,_0x1f415c);for(const _0x4132ca of _0x1b8628)'$graveyard'!=_0x4132ca['root']['rootName']&&_0x566716['unwrap'](_0x4132ca);});});};_0x3e0ea9('insertion','accept'),_0x3e0ea9('insertion','discard'),_0x3e0ea9('deletion','accept'),_0x3e0ea9('deletion','discard'),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x277fc5=>{const _0x106f37=_0x277fc5['map'](_0x53f199=>_0x53f199['getContainedElement']()),_0x1478f3=_0x106f37[0x0]['findAncestor']('table'),{minRow:_0x3bf7a1,maxRow:_0x1c0c25}=_0x2f727f['_getCoordsForCells'](_0x106f37);_0x40a8a0['removeRows'](_0x1478f3,{'at':_0x3bf7a1,'rows':_0x1c0c25-_0x3bf7a1+0x1});}),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x8fdff0=>{const _0x308288=_0x8fdff0['map'](_0x14d71f=>_0x14d71f['getContainedElement']()),_0x4777b6=_0x308288[0x0]['findAncestor']('table'),{minColumn:_0x44ab2e,maxColumn:_0x3aa2cf}=_0x2f727f['_getCoordsForCells'](_0x308288);_0x40a8a0['removeColumns'](_0x4777b6,{'at':_0x44ab2e,'columns':_0x3aa2cf-_0x44ab2e+0x1});});const _0x1f8a36=(_0x573b27,_0x18f5f8)=>{if(!_0x18f5f8['subType']||!_0x18f5f8['subType']['startsWith']('tablePaste'))return;const _0x40e6d8=_0x18f5f8['attributes']['tablePasteChainId'],_0x2116d6=_0x2c9b06['getSuggestions']()['filter'](_0x5c5971=>_0x5c5971['isInContent']&&_0x5c5971['attributes']&&_0x5c5971['attributes']['tablePasteChainId']==_0x40e6d8);_0x2116d6['length']&&_0x18f5f8['getAllAdjacentSuggestions']()['length']!=_0x2116d6['length']&&_0x2116d6['reduce']((_0x48f581,_0x24c739)=>(_0x48f581['next']=_0x24c739,_0x24c739['previous']=_0x48f581,_0x24c739));};function _0x486b39(_0x2290e2,_0x329979=!0x0){const {id:_0x4c60ba,authorId:_0x20f199}=_0x2c9b06['_splitMarkerName'](_0x2290e2['markerName']),_0x4ebbca=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3c5597=_0x2c9b06['activeMarkers']['includes'](_0x2290e2['markerName']);return _0x3c5597&&_0x4ebbca['push']('ck-suggestion-marker--active'),{'classes':_0x4ebbca,'attributes':{'data-suggestion':_0x4c60ba,'data-author-id':_0x20f199},'priority':_0x3c5597&&_0x329979?0xbc2:0xbb8};}_0x2c9b06['on']('suggestionLoaded',_0x1f8a36,{'priority':'high'}),_0x2c9b06['on']('suggestionUnloaded',_0x1f8a36,{'priority':'high'}),_0x5177a3['model']['document']['registerPostFixer'](()=>{let _0x36595a=!0x1;const _0x576338=Array['from'](_0x5177a3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x561583,data:_0x2340ae}of _0x576338){const {group:_0xf4cba2,type:_0x18d563,id:_0xfa8c3a}=_0x2c9b06['_splitMarkerName'](_0x561583);if('suggestion'!=_0xf4cba2||'deletion'!=_0x18d563||_0x2340ae['oldRange'])continue;if(!_0x2c9b06['hasSuggestion'](_0xfa8c3a))continue;const _0x1625b9=_0x2c9b06['getSuggestion'](_0xfa8c3a)['getRanges'](),_0x193722=_0x5177a3['plugins']['get']('Users')['me'];for(const _0x1af384 of _0x2c9b06['getSuggestions']()){if(!_0x1af384['isInContent']||_0x1af384['author']!=_0x193722)continue;if('formatBlock'!=_0x1af384['type']||'tablePasteCell'!=_0x1af384['subType'])continue;if(_0x1af384['getRanges']()['every'](_0xd43d0c=>_0x1625b9['some'](_0x900348=>_0x900348['containsRange'](_0xd43d0c,!0x0)))){for(const _0x39e5e0 of _0x1af384['getAllAdjacentSuggestions']())_0x39e5e0['isInContent']&&(_0x39e5e0['discard'](),_0x36595a=!0x0);}}}return _0x36595a;}),_0x5177a3['model']['document']['registerPostFixer'](_0x45ab04=>{const _0x3ce2e4=_0x5177a3['commands']['get']('redo');if(!_0x3ce2e4||!_0x3ce2e4['_createdBatches']['has'](_0x45ab04['batch']))return!0x1;let _0x37dfe0=!0x1;const _0x5e8c99=_0x5177a3['plugins']['get']('Users')['me'],_0x22cf0c=_0x5177a3['model']['document']['differ']['getChanges'](),_0x458421=Array['from'](_0x5177a3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2df796,data:_0x135119})=>{const {group:_0x5730d1,subType:_0x3fb31b,authorId:_0x128b84}=_0x2c9b06['_splitMarkerName'](_0x2df796);return'suggestion'==_0x5730d1&&'tablePaste'==_0x3fb31b&&_0x128b84==_0x5e8c99['id']&&!_0x135119['oldRange'];});for(const _0x5bc6ec of _0x22cf0c){if('insert'!=_0x5bc6ec['type']||'tableCellSuggestion'!=_0x5bc6ec['name']||0x1!=_0x5bc6ec['length'])continue;const _0x59fe56=_0x45ab04['createRange'](_0x5bc6ec['position'],_0x5bc6ec['position']['getShiftedBy'](0x1));if(!_0x458421['find'](({data:_0x38574f})=>_0x38574f['newRange']['isEqual'](_0x59fe56))){for(const {name:_0x489bb4,data:_0x51c289}of _0x458421)if(_0x59fe56['containsRange'](_0x51c289['newRange'])){_0x45ab04['updateMarker'](_0x489bb4,{'range':_0x59fe56}),_0x37dfe0=!0x0;break;}}}return _0x37dfe0;}),_0x5177a3['model']['document']['registerPostFixer'](_0x40438c=>{let _0x222717=!0x1;const _0x271642=_0x5177a3['plugins']['get']('Users')['me'],_0xa7792a=_0x2c9b06['getSuggestions']()['filter'](_0x2adf9c=>_0x2adf9c['isInContent']&&_0x2adf9c['author']==_0x271642),_0x318ed2=new Set(),_0x502e8f=new Set();for(const _0x298d6c of _0xa7792a)if('tablePaste'==_0x298d6c['subType'])for(const _0x4a5005 of _0x298d6c['getMarkers']()){const _0x208f33=_0x4a5005['getRange']()['getContainedElement']();if(_0x208f33){if(_0x208f33['is']('element','tableCellSuggestion')&&ke(_0x208f33)){_0x298d6c['removeMarker'](_0x4a5005['name']),_0x318ed2['add'](_0x208f33),_0x222717=!0x0;const _0x504ae4=_0x208f33['nextSibling'],_0x3814c0=_0x208f33['previousSibling'],_0x17d477=_0x504ae4&&_0x504ae4['is']('element','tableCellSuggestion'),_0x4e41d6=_0x3814c0&&_0x3814c0['is']('element','tableCellSuggestion');_0x17d477&&!_0x318ed2['has'](_0x504ae4)&&_0x502e8f['add'](_0x504ae4),_0x4e41d6&&!_0x318ed2['has'](_0x3814c0)&&_0x502e8f['add'](_0x3814c0);}else _0x208f33['is']('element','paragraph')&&_0x208f33['isEmpty']&&(_0x298d6c['removeMarker'](_0x4a5005['name']),_0x222717=!0x0);}}else{if('tablePasteCell'==_0x298d6c['subType']){if(!_0x298d6c['attributes']||!_0x298d6c['attributes']['tablePasteChainId'])continue;const _0x29c6fd=_0x298d6c['attributes']['markerAttributes'];if(_0x29c6fd&&Object['keys'](_0x29c6fd)['length'])continue;const _0x5e6aed=_0x298d6c['attributes']['tablePasteChainId'];let _0x4557bf=!0x0,_0x1c5a6b=!0x0;for(const _0x57a2b5 of _0xa7792a)if(_0x57a2b5['subType']&&_0x57a2b5['subType']['startsWith']('tablePaste')){if(!_0x57a2b5['attributes']['tablePasteChainId']){_0x1c5a6b=!0x1;break;}if(_0x57a2b5['id']!=_0x298d6c['id']&&_0x57a2b5['attributes']['tablePasteChainId']==_0x5e6aed){_0x4557bf=!0x1;break;}}_0x1c5a6b&&_0x4557bf&&(_0x298d6c['removeMarkers'](),_0x222717=!0x0);}}for(const _0x162913 of _0x318ed2)_0x40438c['remove'](_0x162913);for(const _0x188695 of _0x502e8f)_0x40438c['unwrap'](_0x188695);return _0x222717;}),_0x5177a3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xd482ac=>_0x486b39(_0xd482ac),'converterPriority':'high'}),_0x5177a3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x625917,_0x529a5b)=>_0x529a5b['options']['showSuggestionHighlights']?_0x486b39(_0x625917,!0x1):null,'converterPriority':'high'});const _0x2b364e=_0x5177a3['editing']['view'];this['listenTo'](_0x2b364e['document'],'clipboardOutput',(_0x2bbca9,_0x4dc075)=>{const _0x4e3540=[];for(const _0x176089 of _0x2b364e['createRangeIn'](_0x4dc075['content'])['getItems']())_0x176089['is']('element','suggestion-td')&&_0x4e3540['push'](_0x176089);_0x2b364e['change'](_0x5bc843=>{for(const _0x55f2f5 of _0x4e3540)_0x5bc843['move'](_0x5bc843['createRangeIn'](_0x55f2f5),_0x5bc843['createPositionBefore'](_0x55f2f5)),_0x5bc843['remove'](_0x55f2f5);});});}}function ke(_0x5eb66f){if(_0x5eb66f['isEmpty'])return!0x0;const _0xf30be9=_0x5eb66f['getChild'](0x0);return _0xf30be9['is']('element','paragraph')&&_0xf30be9['isEmpty'];}function Re(_0x334d49,_0x502c77={},_0x6010de){for(const {isAnchor:_0x56fe6e,cellHeight:_0x456ccd,cellWidth:_0x37a77a}of _0x6010de['createTableWalker'](_0x334d49,{'includeAllSlots':!0x0,..._0x502c77}))if(!_0x56fe6e||0x1!=_0x456ccd||0x1!=_0x37a77a)return!0x1;return!0x0;}class Nt extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x32891a=this['editor']['plugins']['get']('TrackChangesEditing');_0x32891a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x32891a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x32891a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32891a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x32891a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x32891a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x11336b,_0x2f4eb3){const _0x31111a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4be552=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x472576=_0x2f4eb3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x28298a=_0x4be552['getColumnGroupElement'](_0x472576);let _0x118485=_0x28298a?_0x4be552['getTableColumnsWidths'](_0x28298a):null,_0x11eb0c=_0x472576['getAttribute']('tableWidth')||null;const _0x1c12f6=_0x2f4eb3['tableWidth']||_0x11eb0c,_0x501d2a=_0x2f4eb3['columnWidths']||_0x118485,_0x43db7b=this['editor']['plugins']['get']('Users')['me'];for(const _0xa7d48 of _0x31111a['getSuggestions']()){const _0x17f6a7=_0xa7d48['getContainedElement']();if('resizeTable'===_0xa7d48['subType']&&_0x17f6a7===_0x472576){_0xa7d48['author']!==_0x43db7b&&_0xa7d48['discard']();const _0xb1c952=_0xa7d48['data']['commandParams'];_0x11eb0c=_0xb1c952[0x0]['tableWidth'],_0x118485=_0xb1c952[0x0]['columnWidths'];break;}}_0x11336b({'table':_0x472576,'tableWidth':_0x1c12f6,'columnWidths':_0x501d2a}),_0x31111a['markBlockFormat'](_0x472576,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x11eb0c,'columnWidths':_0x118485}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x327f5a){if('formatBlock'!=_0x327f5a['type']&&'formatInline'!=_0x327f5a['type'])return;const {data:_0x98e8f5}=_0x327f5a;if(_0x98e8f5&&'resizeTable'===_0x98e8f5['formatGroupId']){const _0x47805b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x47805b)};}}}class Dt extends _0x58a0bc{['afterInit'](){const _0x1172ce=this['editor'];_0x1172ce['plugins']['has']('Template')&&_0x1172ce['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x58a0bc{['afterInit'](){const _0x32f262=this['editor'];if(!_0x32f262['commands']['get']('insertTableOfContents'))return;_0x32f262['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xa01781=_0x32f262['plugins']['get']('TrackChangesEditing'),_0xb0808f=_0x32f262['locale'];_0xa01781['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2723b2=>o(_0xb0808f,'ELEMENT_TABLE_OF_CONTENTS',_0x2723b2));}}class $t extends _0x58a0bc{['afterInit'](){const _0x132a6e=this['editor'];if(!_0x132a6e['plugins']['has']('Title'))return;const _0x210539=_0x132a6e['plugins']['get']('TrackChangesEditing');_0x210539['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x132a6e['locale'],'ELEMENT_TITLE')),_0x132a6e['model']['document']['registerPostFixer'](_0x500998=>{let _0x300cb6=!0x1;const _0x281a4a=Array['from'](_0x132a6e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x59a7ed,data:_0x5e45f9}of _0x281a4a){const {group:_0x15aeb3}=_0x210539['_splitMarkerName'](_0x59a7ed);if('suggestion'!==_0x15aeb3||!_0x5e45f9['newRange'])continue;const _0x4e1e4d=_0x5e45f9['newRange'],_0x4772f1=_0x4e1e4d['end']['nodeBefore'];if(!_0x4772f1||!_0x4772f1['is']('element','title-content'))continue;if(!_0x4e1e4d['start']['isTouching'](_0x4e1e4d['end']))continue;const _0x3b4bbd=_0x132a6e['model']['schema']['getNearestSelectionRange'](_0x4e1e4d['end'],'forward');if(_0x3b4bbd&&_0x3b4bbd['isCollapsed']){const _0x59e97c=_0x500998['createRange'](_0x4e1e4d['start'],_0x3b4bbd['start']);_0x59e97c['isEqual'](_0x4e1e4d)||(_0x500998['updateMarker'](_0x59a7ed,{'range':_0x59e97c}),_0x300cb6=!0x0);}_0x300cb6||(_0x500998['removeMarker'](_0x59a7ed),_0x300cb6=!0x0);}return _0x300cb6;});}}class Bt extends _0x58a0bc{['afterInit'](){const _0x2d86ef=this['editor'],_0x243457=_0x2d86ef['plugins']['get']('TrackChangesEditing');_0x2d86ef['plugins']['has']('UndoEditing')&&(_0x243457['enableCommand']('undo'),_0x243457['enableCommand']('redo'));}}class xt extends _0x58a0bc{static get['requires'](){return[It];}['afterInit'](){const _0x4df322=this['editor'];if(!_0x4df322['plugins']['has']('TableCaptionEditing'))return;_0x4df322['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x58a0bc{['tableProperties'];['tableCellProperties'];constructor(_0x453a0c){super(_0x453a0c),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0xb14700=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xb4b3d7 of this['tableProperties'])_0xb14700['enableCommand'](_0xb4b3d7,(_0x159ee7,_0x9b88a5)=>{const _0x267052=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xb4b3d7,[_0x267052],this['tableProperties'],'tableProperties',_0x159ee7,_0x9b88a5);});_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xb14700['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x21f576,_0x2585be)=>this['handleDiscardAction'](this['tableProperties'],_0x21f576,_0x2585be)),_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x16a07e of this['tableCellProperties'])_0xb14700['enableCommand'](_0x16a07e,(_0x25b0f3,_0x865cc2)=>{const _0x3ec2f3=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x16a07e,_0x3ec2f3,this['tableCellProperties'],'tableCellProperties',_0x25b0f3,_0x865cc2);});_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xb14700['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4fea0c,_0x477894)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4fea0c,_0x477894)),_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xb14700['descriptionFactory']['registerDescriptionCallback'](_0x3ede64=>this['handleSuggestionDescription'](_0x3ede64));}['_handlePropertyChange'](_0x3399e7,_0x306bc9,_0x3fa48a,_0x47a287,_0x388260,_0x35b27f){const _0x3a5cfd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x35b27f['batch'],()=>{for(const _0x223e81 of _0x306bc9){if(this['_getSuggestion'](_0x223e81,_0x47a287))_0x388260(_0x35b27f);else{const _0x2e5b6b={};for(const _0x23b202 of _0x3fa48a){const _0x4c5719=_0x223e81['getAttribute'](_0x23b202);void 0x0!==_0x4c5719&&(_0x2e5b6b[_0x23b202]=_0x4c5719);}_0x388260(_0x35b27f),_0x3a5cfd['markBlockFormat'](_0x223e81,{'commandParams':[_0x2e5b6b]},[],_0x47a287);}}});}['handleDiscardAction'](_0x23dbef,_0xda3e71,_0x25b416){const _0x23078a=_0xda3e71[0x0]['start']['nodeAfter'],_0x53a0b7=_0x25b416['commandParams'][0x0];this['editor']['model']['change'](_0x37c55d=>{for(const _0x5ed35a of _0x23dbef)void 0x0!==_0x53a0b7[_0x5ed35a]?_0x37c55d['setAttribute'](_0x5ed35a,_0x53a0b7[_0x5ed35a],_0x23078a):_0x37c55d['removeAttribute'](_0x5ed35a,_0x23078a);});}['handleSuggestionDescription'](_0x23f491){if(_0x23f491['data'])switch(_0x23f491['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3afb01,_0x45d2d9){const _0x42966b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x228c99 of _0x42966b['getSuggestions']({'skipNotAttached':!0x0})){const _0x3fd677=_0x228c99['getContainedElement']();if(_0x228c99['subType']===_0x45d2d9&&_0x3fd677===_0x3afb01)return _0x228c99;}return null;}}const m='$elementName';class p extends _0x58a0bc{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5983d1,_0xb7ca76,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x1c0e3f){function _0x2e5a14(_0x22efd1){return _0x22efd1['map'](_0x485c83=>String['fromCharCode'](_0x485c83))['join']('');}super(_0x1c0e3f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3ba390,_0x363fb4,_0x5f02c6,_0x3ef873)=>{this['_model']['change'](()=>{for(const _0x241d80 of[..._0x3ef873,..._0x5f02c6])this['_model']['markers']['has'](_0x241d80)&&_0x1c0e3f['editing']['reconvertMarker'](_0x241d80);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1c0e3f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x1c0e3f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1c0e3f['config']['get']('trackChanges.trackFormatChanges'),_0x1c0e3f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1c0e3f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1c0e3f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2e5a14([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2e5a14([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x34]);}['init'](){const _0x93664=this['editor'],_0x3db84a=(_0x4f3e1a,_0x453be4)=>{if('attribute'!=_0x4f3e1a)return'ck-suggestion-marker-'+_0x4f3e1a;const _0x4ac2a0=_0x453be4['split']('|')[0x0];return this['_isBlockAttribute'](_0x4ac2a0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x93664['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4788ad=>{const {id:_0x19900c,authorId:_0x239e78,type:_0xea588b,subType:_0x2530ca}=this['_splitMarkerName'](_0x4788ad['markerName']),_0x395842=['ck-suggestion-marker',_0x3db84a(_0xea588b,_0x2530ca)];let _0x1e9147=0xbb8;return this['activeMarkers']['includes'](_0x4788ad['markerName'])&&(_0x395842['push']('ck-suggestion-marker--active'),_0x1e9147=0xbc2),'deletion'==_0xea588b&&(_0x1e9147+=0x5),{'classes':_0x395842,'attributes':{'data-suggestion':_0x19900c,'data-author-id':_0x239e78},'priority':_0x1e9147};}}),_0x93664['conversion']['for']('dataDowncast')['add'](_0x3e09d2=>{_0x3e09d2['on']('addMarker:suggestion',(_0x35a362,_0x2e40e1,_0x9f1765)=>{if(!_0x9f1765['options']['showSuggestionHighlights'])return;const _0xea57ce=_0x2e40e1['item'];if(!_0xea57ce)return;const _0x587315=_0x9f1765['mapper']['toViewElement'](_0xea57ce);_0x93664['model']['schema']['isObject'](_0xea57ce)&&_0x587315&&!_0x587315['getCustomProperty']('widget')&&_0x587315['is']('containerElement')&&_0x3601d(_0x587315,_0x9f1765['writer']);},{'priority':'high'});}),_0x93664['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xc4bba7,_0x91ae9c)=>{if(!_0x91ae9c['options']['showSuggestionHighlights'])return null;const {type:_0x9d4f3b,subType:_0x493231}=this['_splitMarkerName'](_0xc4bba7['markerName']);return{'classes':['ck-suggestion-marker',_0x3db84a(_0x9d4f3b,_0x493231)],'priority':0xbb8};}});const _0x2995ee=({showActiveMarkers:_0x203d99=!0x0,isAttributeSuggestion:_0x1ef91a=!0x1}={})=>(_0x5d0b3c,_0x22d411,_0x5e1479)=>{if(!_0x22d411['item'])return;const {id:_0x359fce,authorId:_0x3c11e7}=this['_splitMarkerName'](_0x22d411['markerName']);if(_0x1ef91a){const _0x368ff1=this['_suggestions']['get'](_0x359fce),_0x31e441=this['_getAttributeKey'](_0x368ff1);if(!this['_isBlockAttribute'](_0x31e441))return;}if(_0x22d411['item']['is']('selection'))return void _0x5e1479['consumable']['consume'](_0x22d411['item'],_0x5d0b3c['name']);const _0x25635f=_0x5e1479['mapper']['toViewElement'](_0x22d411['item']);if(_0x22d411['item']['is']('element')&&_0x93664['model']['schema']['isBlock'](_0x22d411['item'])&&!_0x25635f['getCustomProperty']('addHighlight')){_0x5e1479['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x25635f),_0x5e1479['writer']['setAttribute']('data-suggestion',_0x359fce,_0x25635f),_0x5e1479['writer']['setAttribute']('data-author-id',_0x3c11e7,_0x25635f),_0x5e1479['mapper']['bindElementToMarker'](_0x25635f,_0x22d411['markerName']),_0x203d99&&(this['activeMarkers']['includes'](_0x22d411['markerName'])?_0x5e1479['writer']['addClass']('ck-suggestion-marker--active',_0x25635f):_0x5e1479['writer']['removeClass']('ck-suggestion-marker--active',_0x25635f));for(const _0x5aa396 of _0x93664['model']['createRangeIn'](_0x22d411['item'])['getItems']())_0x5e1479['consumable']['consume'](_0x5aa396,_0x5d0b3c['name']);_0x5e1479['consumable']['consume'](_0x22d411['item'],_0x5d0b3c['name']);}};_0x93664['conversion']['for']('dataDowncast')['add'](_0x476b23=>{_0x476b23['on']('addMarker:suggestion:formatBlock',(_0x2354b0,_0x30218c,_0x35f648)=>{_0x35f648['options']['showSuggestionHighlights']&&_0x2995ee({'showActiveMarkers':!0x1})(_0x2354b0,_0x30218c,_0x35f648);},{'priority':'highest'});}),_0x93664['conversion']['for']('dataDowncast')['add'](_0x3989cf=>{_0x3989cf['on']('addMarker:suggestion:attribute',(_0x4481a4,_0x5b92d7,_0x64838d)=>{_0x64838d['options']['showSuggestionHighlights']&&_0x2995ee({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4481a4,_0x5b92d7,_0x64838d);},{'priority':'highest'});}),_0x93664['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x412ed5,_0x556b09)=>_0x556b09['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x412ed5['substr'](0xb)}}),_0x93664['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x316caa,{writer:_0x190ea6})=>{let _0x512da6='suggestion:'+_0x316caa['getAttribute']('suggestion-type')+':'+_0x316caa['getAttribute']('id');return _0x316caa['getAttribute']('marker-count')&&(_0x512da6+=':'+_0x316caa['getAttribute']('marker-count')),_0x190ea6['createElement']('$marker',{'data-name':_0x512da6});}}),_0x93664['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x93664['conversion']['for']('editingDowncast')['add'](_0x30aa84=>{_0x30aa84['on']('addMarker:suggestion:formatBlock',_0x2995ee(),{'priority':'high'});}),_0x93664['conversion']['for']('editingDowncast')['add'](_0x3b006c=>{_0x3b006c['on']('addMarker:suggestion:attribute',_0x2995ee({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x93664['conversion']['for']('editingDowncast')['add'](_0xc12469=>{_0xc12469['on']('removeMarker:suggestion:formatBlock',(_0x57b61d,_0x40916f,_0x2eb805)=>{const _0x2168d1=_0x2eb805['mapper']['markerNameToElements'](_0x40916f['markerName']);if(_0x2168d1){for(const _0x4d8ef2 of _0x2168d1)_0x4d8ef2['getCustomProperty']('addHighlight')||(_0x2eb805['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4d8ef2),_0x2eb805['writer']['removeAttribute']('data-suggestion',_0x4d8ef2),_0x2eb805['writer']['removeAttribute']('data-author-id',_0x4d8ef2),_0x2eb805['mapper']['unbindElementFromMarkerName'](_0x4d8ef2,_0x40916f['markerName']));}},{'priority':'high'});}),_0x93664['conversion']['for']('editingDowncast')['add'](_0x36e674=>{_0x36e674['on']('removeMarker:suggestion:attribute',(_0x2483ab,_0x49f8a6,_0x3886f5)=>{const _0x13f01d=_0x3886f5['mapper']['markerNameToElements'](_0x49f8a6['markerName']);if(!_0x13f01d)return;const {id:_0x25726f}=this['_splitMarkerName'](_0x49f8a6['markerName']),_0x48a27d=this['_suggestions']['get'](_0x25726f),_0x458e3a=this['_getAttributeKey'](_0x48a27d);if(this['_isBlockAttribute'](_0x458e3a)){for(const _0x40e6cb of _0x13f01d)_0x40e6cb['getCustomProperty']('addHighlight')||(_0x3886f5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x40e6cb),_0x3886f5['writer']['removeAttribute']('data-suggestion',_0x40e6cb),_0x3886f5['writer']['removeAttribute']('data-author-id',_0x40e6cb),_0x3886f5['mapper']['unbindElementFromMarkerName'](_0x40e6cb,_0x49f8a6['markerName']));}},{'priority':'high'});}),_0x93664['model']['document']['registerPostFixer'](_0x497b79=>{let _0x5ecbbc=!0x1;const _0x38d59d=Array['from'](_0x93664['model']['document']['differ']['getChangedMarkers']()),_0x1c3916=new Set();for(const {name:_0x1b718e,data:_0x22813e}of _0x38d59d){const {group:_0x3c158b,type:_0x21c3cb,subType:_0xbbed5e,id:_0x530dca}=this['_splitMarkerName'](_0x1b718e);if('suggestion'!==_0x3c158b)continue;const _0x552941=this['_suggestions']['get'](_0x530dca);if(null!=_0x22813e['newRange']){'formatInline'==_0x21c3cb&&(_0x5ecbbc=_0x5ecbbc||Ut(_0x22813e['newRange'],_0x1b718e,_0x497b79,_0x93664['model']['schema']));const _0x29f6bd='attribute'==_0x21c3cb&&this['_isBlockAttribute'](_0xbbed5e['split']('|')[0x0]);if(_0x22813e['newRange']['isCollapsed']||'$graveyard'==_0x22813e['newRange']['root']['rootName']||'formatBlock'==_0x21c3cb&&!Ft(_0x22813e['newRange'])||_0x29f6bd&&!Ft(_0x22813e['newRange'])||'deletion'==_0x21c3cb&&!(!Vt(_0x4e7cda=_0x22813e['newRange'])&&!function(_0x26cad6){return _0x26cad6['start']['parent']==_0x26cad6['end']['nodeBefore']&&_0x26cad6['start']['isAtEnd'];}(_0x4e7cda)))_0x497b79['removeMarker'](_0x1b718e),_0x5ecbbc=!0x0;else{if(!_0x552941||!_0x552941['isInContent'])continue;if(_0x22813e['newRange']&&_0x22813e['oldRange']&&_0x22813e['newRange']['isEqual'](_0x22813e['oldRange']))continue;_0x1c3916['add'](_0x552941);}}}var _0x4e7cda;return _0x1c3916['size']>0x0&&(_0x5ecbbc=!!this['_joinWithAdjacentSuggestions'](_0x1c3916)||_0x5ecbbc),_0x5ecbbc;}),_0x93664['model']['document']['registerPostFixer'](_0x37cd95=>{let _0x46c042=!0x1;for(const _0x9de49b of _0x93664['model']['document']['differ']['getChanges']())if('insert'==_0x9de49b['type'])for(const _0x24bfca of this['_suggestions']['values']()){if(_0x24bfca['isMultiRange']||!_0x24bfca['isInContent'])continue;const _0x44d3b8='formatBlock'==_0x24bfca['type'],_0x312629=this['_getAttributeKey'](_0x24bfca),_0x47a433=_0x312629&&this['_isBlockAttribute'](_0x312629);if(!_0x44d3b8&&!_0x47a433)continue;const _0x5545a5=_0x24bfca['getFirstRange']();if(_0x5545a5['start']['parent']!=_0x5545a5['end']['parent']&&!_0x5545a5['end']['isAtEnd']){const _0x3c412f=_0x93664['model']['createPositionAt'](_0x5545a5['start']['nodeAfter'],'end'),_0x1e3b62=_0x93664['model']['createRange'](_0x5545a5['start'],_0x3c412f);_0x37cd95['updateMarker'](_0x24bfca['getFirstMarker'](),{'range':_0x1e3b62}),_0x46c042=!0x0;}}return _0x46c042;}),_0x93664['model']['document']['registerPostFixer'](_0x21ce4d=>this['_processAttributeChanges'](_0x21ce4d)),_0x93664['model']['document']['registerPostFixer'](_0x3958b3=>!_0x3958b3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3958b3)),_0x93664['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x93664['model']['document']['on']('change:data',(_0x85198a,_0xb5c8d1)=>{if(!_0xb5c8d1['isLocal']||_0xb5c8d1['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4b72ec=_0x93664['model']['document']['differ']['getChanges']();if(0x0==_0x4b72ec['length'])return;const _0x24992a=[],_0x995e81=_0x4b72ec['filter'](_0x4a9407=>'attribute'==_0x4a9407['type']),_0x577055=_0x4b72ec['filter'](_0x5d6625=>'insert'==_0x5d6625['type']&&'$text'!=_0x5d6625['name']);for(const _0x1099e5 of _0x995e81)this['_isRegisteredAttribute'](_0x1099e5['attributeKey'])&&_0x24992a['push']({'key':_0x1099e5['attributeKey'],'newValue':_0x1099e5['attributeNewValue'],'oldValue':_0x1099e5['attributeOldValue'],'range':Pt(_0x1099e5['range'],_0x93664['model'])});for(const _0x9471dd of _0x577055){if('rename'!=_0x9471dd['action']&&'refresh'!=_0x9471dd['action'])continue;const _0x33f204=Lt(_0x9471dd['position']['nodeAfter'],_0x93664['model']),_0x32bc93=_0x9471dd['before'];'rename'==_0x9471dd['action']&&_0x24992a['push']({'key':m,'newValue':_0x9471dd['name'],'oldValue':_0x32bc93['name'],'range':_0x33f204});for(const [_0x39385f,_0x5f5b4c]of _0x32bc93['attributes']){if(!this['_isRegisteredAttribute'](_0x39385f))continue;const _0x1e383c=_0x9471dd['attributes']['get'](_0x39385f);_0x5f5b4c!==_0x1e383c&&_0x24992a['push']({'key':_0x39385f,'newValue':_0x1e383c,'oldValue':_0x5f5b4c,'range':_0x33f204});}for(const [_0x282b60,_0x17fb21]of _0x9471dd['attributes'])this['_isRegisteredAttribute'](_0x282b60)&&(_0x32bc93['attributes']['has'](_0x282b60)||_0x24992a['push']({'key':_0x282b60,'newValue':_0x17fb21,'oldValue':null,'range':_0x33f204}));}0x0!=_0x24992a['length']&&_0x93664['model']['enqueueChange'](_0xb5c8d1,_0x5d5e6f=>{const _0x3e8361=_0x546e08();for(const {range:_0x742c00,key:_0x49edf2,oldValue:_0x23cf55,newValue:_0x46e9a1}of _0x24992a)this['markAttributeChange'](_0x742c00,_0x49edf2,_0x23cf55,_0x46e9a1,{'groupId':_0x3e8361});this['_reduceExistingSuggestions'](_0x5d5e6f,_0x24992a);});},{'priority':'lowest'}),_0x93664['model']['markers']['on']('update:suggestion',(_0x13e70e,_0x57fd7b,_0x1c60b8)=>{if(null==_0x1c60b8){const {id:_0x1e9268}=this['_splitMarkerName'](_0x57fd7b['name']),_0x4753c9=this['_suggestions']['get'](_0x1e9268);_0x4753c9&&_0x4753c9['addMarkerName'](_0x57fd7b['name']);}}),_0x93664['model']['document']['on']('change:data',()=>{const _0x2a5862=Array['from'](_0x93664['model']['document']['differ']['getChangedMarkers']())['filter'](_0x414cd7=>'suggestion'===this['_splitMarkerName'](_0x414cd7['name'])['group']);if(0x0===_0x2a5862['length'])return;_0x2a5862['sort']((_0x27c88c,_0x264d43)=>{const _0x2e8dcc=_0x27c88c['data']['oldRange'],_0x1f8079=_0x264d43['data']['oldRange'];return null===_0x2e8dcc&&null===_0x1f8079?0x0:null===_0x2e8dcc&&null!==_0x1f8079?-0x1:null!==_0x2e8dcc&&null===_0x1f8079?0x1:_0x2e8dcc['start']['isBefore'](_0x1f8079['start'])?-0x1:0x1;});const _0xb2b4ab=new Set(),_0x5b827b=new Set();for(const {name:_0x14616f,data:_0x8db754}of _0x2a5862){const {id:_0x30a971}=this['_splitMarkerName'](_0x14616f);if(null===_0x8db754['oldRange']){const _0x3cd933=this['_handleNewSuggestionMarker'](_0x14616f);_0x5b827b['add'](_0x3cd933);}else{const _0x5bfc41=this['_suggestions']['get'](_0x30a971);null!==_0x8db754['newRange']||_0x5bfc41['isInContent']?(_0xb2b4ab['add'](_0x5bfc41['head']),_0x5b827b['add'](_0x5bfc41)):this['_removeSuggestion'](_0x5bfc41);}}_0x5b827b['size']>0x0&&this['_refreshSuggestionsChain'](_0x5b827b);for(const _0x192a81 of _0xb2b4ab)this['fire']('suggestionChanged',_0x192a81);}),_0x93664['model']['on']('applyOperation',(_0x564e65,_0xb6ae6f)=>{const _0xe66e0a=_0xb6ae6f[0x0];if(!this['_suggestions']['size'])return;if(!_0xe66e0a['isDocumentOperation'])return;if(_0xe66e0a['batch']['isUndo']||!_0xe66e0a['batch']['isLocal'])return;let _0x4a2ae0,_0xc8b8e;switch(_0xe66e0a['type']){case'insert':_0x4a2ae0=_0x93664['model']['createPositionAt'](_0xe66e0a['position']),_0xc8b8e=_0x4a2ae0['getShiftedBy'](_0xe66e0a['howMany']);break;case'split':_0x4a2ae0=_0x93664['model']['createPositionAt'](_0xe66e0a['splitPosition']),_0xc8b8e=_0x93664['model']['createPositionAt'](_0xe66e0a['moveTargetPosition']);break;case'move':_0x4a2ae0=_0x93664['model']['createPositionAt'](_0xe66e0a['targetPosition']),_0xc8b8e=_0x4a2ae0['getShiftedBy'](_0xe66e0a['howMany']);break;default:return;}const _0xce8363=_0x93664['model']['createRange'](_0x4a2ae0,_0xc8b8e);_0x93664['model']['change'](()=>{for(const {suggestion:_0x57864b,meta:_0x8d1b83}of this['_findSuggestions'](_0xce8363)){if(_0x57864b['isMultiRange'])continue;if('formatInline'==_0x57864b['type'])continue;const _0x5963f8=this['_getAttributeKey'](_0x57864b);if(_0x5963f8&&this['_isBlockAttribute'](_0x5963f8)&&'split'!=_0xe66e0a['type'])continue;const _0x5b9568=_0x57864b['data']&&_0x57864b['data']['multipleBlocks'];('formatBlock'!=_0x57864b['type']||'split'==_0xe66e0a['type']&&!_0x5b9568)&&(_0x8d1b83['containsRangeInObject']||'insertion'==_0x57864b['type']&&_0x8d1b83['isOwn']||_0x57864b['getFirstRange']()['containsRange'](_0xce8363)&&this['_breakSuggestionMarker'](_0x57864b,_0x4a2ae0,_0xc8b8e));}});},{'priority':'lowest'}),_0x93664['model']['on']('deleteContent',(_0x379058,_0x2c9c98)=>{const _0x118c46=_0x2c9c98[0x0],_0x294d8a=_0x2c9c98[0x1];if(_0x294d8a&&_0x294d8a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x118c46['isCollapsed'])return;const _0x5caae4=_0x93664['model']['schema'],{start:_0x18907c,end:_0x1cd0d7}=_0x118c46['getFirstRange'](),_0x5ab9ac=_0x18907c['nodeAfter']&&_0x5caae4['isLimit'](_0x18907c['nodeAfter'])?null:_0x5caae4['getNearestSelectionRange'](_0x18907c,'forward'),_0x547714=_0x1cd0d7['nodeBefore']&&_0x5caae4['isLimit'](_0x1cd0d7['nodeBefore'])?null:_0x5caae4['getNearestSelectionRange'](_0x1cd0d7,'backward'),_0x41612a=_0x93664['model']['createRange'](_0x5ab9ac?_0x5ab9ac['start']:_0x18907c,_0x547714?_0x547714['end']:_0x1cd0d7);_0x93664['model']['change'](_0x28e186=>{this['markDeletion'](_0x41612a);const _0x2b0846=_0x93664['model']['schema']['getNearestSelectionRange'](_0x41612a['start']);_0x118c46['is']('documentSelection')?_0x28e186['setSelection'](_0x2b0846):_0x118c46['setTo'](_0x2b0846);}),_0x379058['stop']();},{'priority':_0x44834d['normal']+0xa}),_0x93664['model']['on']('insertContent',(_0x18c3e0,_0x3fa0c1)=>{const _0x35876f=_0x3fa0c1[_0x3fa0c1['length']-0x1];_0x35876f&&_0x35876f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x93664['model']['change'](()=>{let _0x213623=_0x93664['model']['insertContent'](_0x3fa0c1[0x0],_0x3fa0c1[0x1],_0x3fa0c1[0x2],{'forceDefaultExecution':!0x0});if(!_0x213623)return;_0x18c3e0['return']=_0x213623['clone']();const _0xc31289=_0x213623['end']['nodeBefore'],_0x32af26=_0x93664['model']['schema'];_0xc31289&&_0x32af26['isBlock'](_0xc31289)&&!_0x32af26['isObject'](_0xc31289)&&(_0x213623=_0x93664['model']['createRange'](_0x213623['start'],_0x93664['model']['createPositionAt'](_0xc31289,'end'))),this['markInsertion'](_0x213623);}),_0x18c3e0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x6af541=new x(_0x93664,this['_suggestions']);_0x93664['commands']['add']('acceptSuggestion',_0x6af541),this['enableCommand']('acceptSuggestion');const _0x33d084=new R(_0x93664,this['_suggestions']);_0x93664['commands']['add']('discardSuggestion',_0x33d084),this['enableCommand']('discardSuggestion'),_0x93664['commands']['add']('acceptAllSuggestions',new E(_0x93664,_0x6af541,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x93664['commands']['add']('discardAllSuggestions',new E(_0x93664,_0x33d084,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x93664['commands']['add']('acceptSelectedSuggestions',new O(_0x93664,_0x6af541,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x93664['commands']['add']('discardSelectedSuggestions',new O(_0x93664,_0x33d084,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x16f29c=_0x93664['plugins']['get']('CommentsRepository');this['listenTo'](_0x16f29c,'addComment',(_0x2c4abc,{threadId:_0xd92d3b})=>{const _0x22805d=this['_suggestions']['get'](_0xd92d3b);_0x22805d&&_0x22805d['commentThread']&&0x1===_0x22805d['commentThread']['length']&&this['_updateSuggestionData'](_0xd92d3b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x16f29c,'removeComment',(_0x18cdf6,{threadId:_0x2e58ce})=>{const _0x423742=this['_suggestions']['get'](_0x2e58ce);_0x423742&&_0x423742['commentThread']&&!_0x423742['commentThread']['length']&&this['_updateSuggestionData'](_0x2e58ce,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x17283d){if(this['_adapter'])throw new _0x4ee7fd('track-changes-adapter-already-set',this);this['_adapter']=_0x17283d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x19db39=!0x1,toJSON:_0x311f39=!0x1}={}){const _0x42a1f2=[];for(const _0xb91945 of this['_suggestions']['values']())_0x19db39&&!_0xb91945['isInContent']||_0x42a1f2['push'](_0xb91945);return _0x311f39?_0x42a1f2['map'](_0x2df00b=>_0x2df00b['toJSON']()):_0x42a1f2;}['getSuggestion'](_0xb62e9e){const _0xfea7=this['_suggestions']['get'](_0xb62e9e);if(!_0xfea7)throw new _0x4ee7fd('track-changes-suggestion-not-found',this);return _0xfea7;}['hasSuggestion'](_0x31d852){return this['_suggestions']['has'](_0x31d852);}['addSuggestionData'](_0x306566){const {authorId:_0x182852,id:_0x275324,attributes:_0x43f843}=_0x306566,[_0xc1ee51,_0x199ebd]=_0x306566['type']['split'](':'),_0x1b5dd6=this['_suggestions']['get'](_0x275324)||this['_createSuggestion'](_0xc1ee51,_0x199ebd,_0x275324,_0x182852,_0x43f843);if(this['_addThreadToSuggestion'](_0x1b5dd6),this['_checkSuggestionCorrectness'](_0x1b5dd6,_0xc1ee51,_0x199ebd||null,_0x182852),_0x1b5dd6['createdAt']=_0x306566['createdAt'],_0x1b5dd6['_isDataLoaded']=!0x0,_0x43f843&&_0x43f843['@external']){const _0x589b8c=_0x43f843['@external'],_0x152754=this['_getExternalAuthor'](_0x589b8c['authorName']);_0x1b5dd6['authoredAt']=_0x589b8c['createdAt'],_0x1b5dd6['author']=_0x152754,_0x1b5dd6['isExternal']=!0x0;}else _0x1b5dd6['authoredAt']=_0x306566['createdAt'];switch(_0x306566['data']&&(_0x1b5dd6['data']=_0x306566['data']),_0x306566['attributes']&&(_0x1b5dd6['attributes']=_0x306566['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1b5dd6['_saved']=!0x0),this['_suggestionState']['get'](_0x1b5dd6)){case'notReady':this['_suggestionState']['set'](_0x1b5dd6,'dataReady');break;case'markerReady':_0x1b5dd6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1b5dd6])),this['_refreshSuggestionsChain'](new Set([_0x1b5dd6])),this['_suggestionState']['set'](_0x1b5dd6,'ready'),this['fire']('suggestionLoaded',_0x1b5dd6)):this['_suggestionState']['set'](_0x1b5dd6,'removed');}return _0x1b5dd6;}['acceptSuggestion'](_0xe06385){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4a6bc8 of _0xe06385['getAllAdjacentSuggestions']())_0x4a6bc8['accept']();});});}['discardSuggestion'](_0x595b71){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x58d3e1 of _0x595b71['getAllAdjacentSuggestions']())_0x58d3e1['discard']();});});}['enableCommand'](_0x3f5658,_0x12281e){const _0x3175a5=this['editor']['commands']['get'](_0x3f5658);if(!_0x3175a5)throw new _0x4ee7fd('track-changes-command-not-found',this,{'commandName':_0x3f5658});if(this['_enabledCommands']['has'](_0x3175a5))throw new _0x4ee7fd('track-changes-enable-command-twice',this,{'commandName':_0x3f5658});this['_enabledCommands']['add'](_0x3175a5),_0x12281e&&_0x3175a5['on']('execute',(_0x588dc1,_0x36e9c3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x36e9c3['length']>0x0&&_0x36e9c3[_0x36e9c3['length']-0x1]&&_0x36e9c3[_0x36e9c3['length']-0x1]['forceDefaultExecution']?_0x36e9c3['pop']():(_0x588dc1['return']=_0x12281e((..._0x340436)=>_0x3175a5['execute'](..._0x340436,{'forceDefaultExecution':!0x0}),..._0x36e9c3),_0x588dc1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xf82e4d){let _0x36f956,_0x139d0b;const _0x55a5ed=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x36f956=_0xf82e4d();}catch(_0x34b062){_0x139d0b=_0x34b062;}return _0x55a5ed||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x139d0b&&_0x4ee7fd['rethrowUnexpectedError'](_0x139d0b,this),_0x36f956;}['markInsertion'](_0x2c1981,_0x23dc30=null,_0x1df190={}){if(_0x2c1981['isCollapsed'])return null;const _0x454729=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5ebcac,meta:_0x248753}of this['_findSuggestions'](_0x2c1981,'insertion'))if(_0x248753['isOwn']){if(!_0x248753['isNextTo']){if(_0x248753['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x5ebcac,_0x1df190))continue;return _0x5ebcac;}if(qt(_0x5ebcac,_0x1df190))return _0x5ebcac;this['_breakSuggestionMarker'](_0x5ebcac,_0x2c1981['start'],_0x2c1981['end']);break;}if(_0x23dc30==_0x5ebcac['subType']&&qt(_0x5ebcac,_0x1df190)){const _0x1ec9c3=_0x5ebcac['getFirstRange']();return _0x1ec9c3['start']['isEqual'](_0x2c1981['end'])?this['_setSuggestionRange'](_0x5ebcac,this['_model']['createRange'](_0x2c1981['start'],_0x1ec9c3['end'])):this['_setSuggestionRange'](_0x5ebcac,this['_model']['createRange'](_0x1ec9c3['start'],_0x2c1981['end'])),_0x5ebcac;}}const _0x47d15a=_0x546e08(),_0x5588bb=_0x454729['id'],_0x1d72f5=_0x23dc30?'insertion:'+_0x23dc30:'insertion',_0x1bb88c=this['_setSuggestionData']({'id':_0x47d15a,'type':_0x1d72f5,'createdAt':new Date(),'authorId':_0x5588bb,'attributes':_0x1df190});return this['_addSuggestionMarker'](_0x1d72f5,_0x47d15a,_0x5588bb,_0x2c1981),_0x1bb88c;}['markMultiRangeInsertion'](_0x39ca88,_0x737dcc='multi',_0x557f70={}){const _0x15663a=this['editor']['plugins']['get']('Users')['me'],_0x3113fe=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x737dcc,'join');for(const _0x2f2938 of this['getSuggestions']())if(_0x2f2938['author']['id']==_0x15663a['id']&&'insertion'==_0x2f2938['type']&&_0x2f2938['subType']==_0x737dcc&&qt(_0x2f2938,_0x557f70)&&(_0x3113fe(_0x2f2938['getRanges'](),_0x39ca88)||_0x3113fe(_0x39ca88,_0x2f2938['getRanges']()))){for(const _0x566623 of _0x39ca88)_0x2f2938['addRange'](_0x566623);return _0x2f2938;}for(const {suggestion:_0x4245e3,meta:_0x4e5747}of this['_findSuggestions'](_0x39ca88,'insertion')){if(!_0x4e5747['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4e5747['containsRangeInObject'])continue;if(!qt(_0x4245e3,_0x557f70))continue;let _0x19b687=!0x0;for(const _0x4da519 of _0x4245e3['getRanges']())for(const _0x4d4ca9 of _0x39ca88)if(!_0x4da519['containsRange'](_0x4d4ca9)){_0x19b687=!0x1;break;}if(_0x19b687)return _0x4245e3;}const _0x39057c=_0x546e08(),_0x2eda31=_0x15663a['id'],_0xe6a58c='insertion:'+_0x737dcc,_0x45b71c=this['_setSuggestionData']({'id':_0x39057c,'type':_0xe6a58c,'createdAt':new Date(),'authorId':_0x2eda31,'attributes':_0x557f70});for(const _0x21a965 of _0x39ca88)this['_addSuggestionMarker'](_0xe6a58c,_0x39057c,_0x2eda31,_0x21a965,u['getMultiRangeId']());return _0x45b71c;}['markInlineFormat'](_0x10b66c,_0x4f8483,_0x2f484d=null,_0x1d9fb6={}){if(_0x2f484d=_0x2f484d||Gt(_0x4f8483),_0x10b66c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xd504c9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f484d,'accept');return this['forceDefaultExecution'](()=>_0xd504c9([_0x10b66c],_0x4f8483,_0x1d9fb6)),null;}const _0x24ed79=this['editor']['plugins']['get']('Users')['me'],_0x4f69f0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3feb11,meta:_0x298e78}of this['_findSuggestions'](_0x10b66c,'insertion'))_0x298e78['isOwn']&&!_0x298e78['isInsideObject']&&_0x4f69f0['push'](..._0x3feb11['getRanges']());}const _0xb98759=function(_0x235b45,_0x2eb81f){const _0x59db38=[];for(const _0x354b07 of _0x2eb81f){const _0x1db97a=_0x235b45['getIntersection'](_0x354b07);_0x1db97a&&_0x59db38['push'](_0x1db97a);}return _0x59db38;}(_0x10b66c,_0x4f69f0),_0x58ad74=function(_0x12992a,_0x302223){const _0x410bf6=[_0x12992a];for(const _0x3c89c0 of _0x302223){let _0x897208=0x0;for(;_0x897208<_0x410bf6['length'];){const _0x3d07e4=_0x410bf6[_0x897208]['getDifference'](_0x3c89c0);_0x410bf6['splice'](_0x897208,0x1,..._0x3d07e4),_0x897208+=_0x3d07e4['length'];}}return _0x410bf6;}(_0x10b66c,_0x4f69f0);_0xb98759['length']&&this['_model']['change'](()=>{for(const _0xc83220 of _0xb98759){const _0x2aa2f2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f484d,'accept');this['forceDefaultExecution'](()=>_0x2aa2f2([_0xc83220],_0x4f8483,_0x1d9fb6));}});for(const _0x550e9e of _0x58ad74){let _0x4620bd=null,_0x51d2e3=_0x550e9e['start'],_0x52624b=_0x550e9e['end'];for(const {suggestion:_0x47cfaf,meta:_0x368210}of this['_findSuggestions'](_0x550e9e,'formatInline')){if(!_0x368210['isOwn'])continue;if(_0x47cfaf['subType']!=_0x2f484d)continue;if(!qt(_0x47cfaf,_0x1d9fb6))continue;const _0x143c95=_0x47cfaf['getFirstRange']();if(_0x143c95['containsRange'](_0x550e9e,!0x0))return null;_0x51d2e3=_0x51d2e3['isBefore'](_0x143c95['start'])?_0x51d2e3:_0x143c95['start'],_0x52624b=_0x52624b['isAfter'](_0x143c95['end'])?_0x52624b:_0x143c95['end'],_0x4620bd?_0x143c95['start']['isBefore'](_0x4620bd['getFirstRange']()['start'])?(_0x4620bd['removeMarkers'](),_0x4620bd=_0x47cfaf):_0x47cfaf['removeMarkers']():_0x4620bd=_0x47cfaf;}const _0x2a74d7=this['_model']['createRange'](_0x51d2e3,_0x52624b);if(_0x4620bd)this['_setSuggestionRange'](_0x4620bd,_0x2a74d7);else{const _0x142c4b=_0x546e08(),_0x152000=_0x24ed79['id'];this['_setSuggestionData']({'id':_0x142c4b,'type':'formatInline:'+_0x2f484d,'data':_0x4f8483,'createdAt':new Date(),'authorId':_0x152000,'attributes':_0x1d9fb6}),this['_addSuggestionMarker']('formatInline:'+_0x2f484d,_0x142c4b,_0x152000,_0x2a74d7);}}return null;}['markBlockFormat'](_0x4e72b0,_0x4b06be,_0x52dd55=[],_0x4dc31f=null,_0x21423b={}){_0x4b06be['formatGroupId']||(_0x4b06be['formatGroupId']=_0x4b06be['commandName']),_0x4b06be['multipleBlocks']=_0x4e72b0['is']('range'),_0x4dc31f=_0x4dc31f||Gt(_0x4b06be);const _0x1443f8=_0x52dd55['map'](_0x974bad=>Lt(_0x974bad,this['_model'])),_0x5a2491=_0x4e72b0['is']('range')?_0x4e72b0:Lt(_0x4e72b0,this['_model']);if('never'===this['_trackFormatChanges']){const _0x501cd7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4dc31f,'accept');return this['forceDefaultExecution'](()=>_0x501cd7([_0x5a2491],_0x4b06be,_0x21423b)),null;}_0x1443f8['push'](_0x5a2491);let _0x28aafe=!0x0;for(const _0x1b6950 of _0x1443f8)if(!this['_rangeIsInLocalUserInsertion'](_0x1b6950)){_0x28aafe=!0x1;break;}if(_0x28aafe&&'always'!==this['_trackFormatChanges']){const _0x5808bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4dc31f,'accept');return this['forceDefaultExecution'](()=>_0x5808bf([_0x5a2491],_0x4b06be,_0x21423b)),null;}let _0x1599ac=null,_0x1a61b8=_0x5a2491['start'],_0x297904=_0x5a2491['end'];for(const {suggestion:_0x4a2412,meta:_0x2645c1}of this['_findSuggestions'](_0x5a2491,'formatBlock')){if(!_0x2645c1['isOwn'])continue;if(_0x2645c1['isNextTo']||_0x2645c1['containsRangeInObject']||_0x2645c1['isInsideObject'])continue;if(_0x4a2412['data']['formatGroupId']!=_0x4b06be['formatGroupId'])continue;if(!qt(_0x4a2412,_0x21423b))continue;const _0x833f69=_0x4a2412['getFirstRange']();if(_0x4a2412['subType']==_0x4dc31f){if(_0x833f69['containsRange'](_0x5a2491,!0x0))return null;_0x1a61b8=_0x1a61b8['isBefore'](_0x833f69['start'])?_0x1a61b8:_0x833f69['start'],_0x297904=_0x297904['isAfter'](_0x833f69['end'])?_0x297904:_0x833f69['end'],_0x1599ac?_0x833f69['start']['isBefore'](_0x1599ac['getFirstRange']()['start'])?(_0x1599ac['removeMarkers'](),_0x1599ac=_0x4a2412):_0x4a2412['removeMarkers']():_0x1599ac=_0x4a2412;}else{const _0x4494b5=_0x5a2491['getIntersection'](_0x833f69);this['_cutOutSuggestionMarker'](_0x4a2412,_0x4494b5);}}const _0x123022=this['editor']['plugins']['get']('Users')['me'],_0x4f5be5=_0x546e08(),_0x25eba5=_0x123022['id'];if(_0x1599ac)return this['_setSuggestionRange'](_0x1599ac,this['_model']['createRange'](_0x1a61b8,_0x297904)),_0x1599ac;{const _0xcaafcf=this['_setSuggestionData']({'id':_0x4f5be5,'type':'formatBlock:'+_0x4dc31f,'data':_0x4b06be,'createdAt':new Date(),'authorId':_0x25eba5,'attributes':_0x21423b});return this['_addSuggestionMarker']('formatBlock:'+_0x4dc31f,_0x4f5be5,_0x25eba5,this['_model']['createRange'](_0x1a61b8,_0x297904)),_0xcaafcf;}}['markMultiRangeBlockFormat'](_0x4575a4,_0x501210,_0x3fd6ee=[],_0x798e43=null,_0x37d50b={}){_0x501210['formatGroupId']||(_0x501210['formatGroupId']=_0x501210['commandName']);const _0x48c239=_0x4575a4[0x0];_0x501210['multipleBlocks']=_0x48c239['is']('range'),_0x798e43=_0x798e43||Gt(_0x501210);const _0x2ae3bd=_0x3fd6ee['map'](_0x704829=>Lt(_0x704829,this['_model'])),_0x117d33=_0x48c239['is']('range')?_0x4575a4:_0x4575a4['map'](_0x18a58e=>Lt(_0x18a58e,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3deaba=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x798e43,'accept');return this['forceDefaultExecution'](()=>_0x3deaba(_0x117d33,_0x501210,_0x37d50b)),null;}_0x2ae3bd['push'](..._0x117d33);let _0x73ca5c=!0x0;for(const _0x3c86c4 of _0x2ae3bd)if(!this['_rangeIsInLocalUserInsertion'](_0x3c86c4)){_0x73ca5c=!0x1;break;}if(_0x73ca5c&&'always'!==this['_trackFormatChanges']){const _0x98ed85=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x798e43,'accept');return this['forceDefaultExecution'](()=>_0x98ed85(_0x117d33,_0x501210,_0x37d50b)),null;}const _0x59800e=this['editor']['plugins']['get']('Users')['me'];for(const _0x46b5bb of this['getSuggestions']()){if(_0x46b5bb['author']['id']!=_0x59800e['id'])continue;if('formatBlock'!=_0x46b5bb['type']||_0x46b5bb['data']['formatGroupId']!=_0x501210['formatGroupId'])continue;if(!qt(_0x46b5bb,_0x37d50b))continue;const _0x4458ff=_0x46b5bb['subType']==_0x798e43;for(let _0x1db6dc=0x0;_0x1db6dc<_0x117d33['length'];_0x1db6dc++){const _0x1a02ff=_0x117d33[_0x1db6dc];for(const _0xe0aaad of _0x46b5bb['getMarkers']()){const _0x2c84d0=_0xe0aaad['getRange']();if(_0x1a02ff['isEqual'](_0x2c84d0)){_0x4458ff?(_0x117d33['splice'](_0x1db6dc,0x1),_0x1db6dc--):_0x46b5bb['removeMarker'](_0xe0aaad['name']);break;}}}}if(0x0==_0x117d33['length'])return null;const _0x319fb6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x798e43,'join');for(const _0x925261 of this['getSuggestions']())if(_0x925261['author']['id']==_0x59800e['id']&&'formatBlock'==_0x925261['type']&&_0x925261['data']['formatGroupId']==_0x501210['formatGroupId']&&_0x925261['subType']==_0x798e43&&qt(_0x925261,_0x37d50b)&&(_0x319fb6(_0x925261['getRanges'](),_0x117d33)||_0x319fb6(_0x117d33,_0x925261['getRanges']()))){for(const _0x366eb9 of _0x117d33)_0x925261['addRange'](_0x366eb9);return _0x925261;}const _0x2b941c=_0x546e08(),_0x46e2af=_0x59800e['id'],_0x20a7ad='formatBlock:'+_0x798e43,_0x19fcae=this['_setSuggestionData']({'id':_0x2b941c,'type':_0x20a7ad,'data':_0x501210,'createdAt':new Date(),'authorId':_0x46e2af,'attributes':_0x37d50b});for(const _0x464c04 of _0x117d33)this['_addSuggestionMarker'](_0x20a7ad,_0x2b941c,_0x46e2af,_0x464c04,u['getMultiRangeId']());return _0x19fcae;}['markDeletion'](_0x1c6977,_0x495281=null,_0x11c6dc={}){if(_0x1c6977['isCollapsed'])return null;const _0x140be4=this['editor']['plugins']['get']('Users')['me'],_0x266e8b=new _0x1ac7bd(_0x1c6977['start'],_0x1c6977['end']);for(const {suggestion:_0x4abef9,meta:_0x451c8a}of this['_findSuggestions'](_0x266e8b,'insertion'))if(_0x451c8a['isOwn']&&!_0x451c8a['isNextTo']){if(_0x4abef9['isMultiRange']){const _0x54c1c7=_0x4abef9['getRanges']()['filter'](_0x11000c=>'$graveyard'!=_0x11000c['root']['rootName']);_0x54c1c7['every'](_0x1d59c8=>_0x266e8b['containsRange'](_0x1d59c8,!0x0))&&_0x4abef9['discard']();if(_0x54c1c7['some'](_0x3a0b91=>_0x3a0b91['containsRange'](_0x266e8b,!0x0))){const _0x58ecee=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x495281,'accept');return this['forceDefaultExecution'](()=>_0x58ecee([_0x266e8b],null,_0x11c6dc)),null;}}else{const _0x13c93c=_0x266e8b['getIntersection'](_0x4abef9['getFirstRange']());null!==_0x13c93c&&_0x4abef9['_onDiscard']([_0x13c93c],null,_0x11c6dc);}}if(_0x266e8b['detach'](),_0x266e8b['isCollapsed']||'$graveyard'==_0x266e8b['root']['rootName'])return null;let _0xcd8a58=null,_0x49df57=_0x266e8b['start'],_0x4550fa=_0x266e8b['end'];const _0x5b94cb=this['_findSuggestions'](_0x266e8b,'deletion');for(const {suggestion:_0x2e0be3,meta:_0x2f891d}of _0x5b94cb){const _0x1ed36=this['_model']['createRange'](_0x49df57,_0x4550fa);if(_0x2f891d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2f891d['containsRangeInObject']&&!_0x2f891d['isInsideObject'])){if(_0x2e0be3['isMultiRange']){if(!qt(_0x2e0be3,_0x11c6dc))continue;let _0x347eb0=!0x0;for(const _0x368e7f of _0x2e0be3['getRanges']()){if(_0x368e7f['containsRange'](_0x1ed36,!0x0))return _0x2e0be3;_0x1ed36['containsRange'](_0x368e7f)||(_0x347eb0=!0x1);}_0x347eb0&&_0x2e0be3['discard']();}else{const _0x2859a7=_0x2e0be3['getFirstRange']();if(_0x2859a7['containsRange'](_0x1ed36,!0x0))return _0x2e0be3;if(!qt(_0x2e0be3,_0x11c6dc)){_0x1ed36['containsRange'](_0x2859a7)?_0x2e0be3['removeMarkers']():_0x2859a7['containsPosition'](_0x49df57)?_0x49df57=_0x2859a7['end']:_0x2859a7['containsPosition'](_0x4550fa)&&(_0x4550fa=_0x2859a7['start']);continue;}_0x49df57=_0x49df57['isBefore'](_0x2859a7['start'])?_0x49df57:_0x2859a7['start'],_0x4550fa=_0x4550fa['isAfter'](_0x2859a7['end'])?_0x4550fa:_0x2859a7['end'],_0x11c6dc=Object['assign']({},_0x2e0be3['attributes']),_0xcd8a58?_0x2859a7['start']['isBefore'](_0xcd8a58['getFirstRange']()['start'])?(_0xcd8a58['removeMarkers'](),_0xcd8a58=_0x2e0be3):_0x2e0be3['removeMarkers']():_0xcd8a58=_0x2e0be3;}}}if(_0xcd8a58)return this['_setSuggestionRange'](_0xcd8a58,this['_model']['createRange'](_0x49df57,_0x4550fa)),_0xcd8a58;{const _0x244435=_0x546e08(),_0x4217b9=this['_model']['createRange'](_0x49df57,_0x4550fa),_0x28679c=_0x140be4['id'],_0x339112=_0x495281?'deletion:'+_0x495281:'deletion',_0xb31888=this['_setSuggestionData']({'id':_0x244435,'type':_0x339112,'createdAt':new Date(),'authorId':_0x28679c,'attributes':_0x11c6dc});return this['_addSuggestionMarker'](_0x339112,_0x244435,_0x28679c,_0x4217b9),_0xb31888;}}['markMultiRangeDeletion'](_0x4e654e,_0xefd25b='multi',_0x22929e={}){const _0x3d5972=this['editor']['plugins']['get']('Users')['me'],_0x22a87f=_0x4e654e['map'](_0x368b9e=>new _0x1ac7bd(_0x368b9e['start'],_0x368b9e['end'])),_0x36a922=new Set();for(const {suggestion:_0x5b3be8,meta:_0x5a9978}of this['_findSuggestions'](_0x22a87f,'insertion'))_0x5a9978['isOwn']&&!_0x5a9978['isNextTo']&&_0x36a922['add'](_0x5b3be8);for(const _0x26eeab of _0x36a922)if(_0x26eeab['isMultiRange']){const _0xeae78c=_0x26eeab['getRanges']();(!_0x26eeab['attributes']||!_0x26eeab['attributes']['skipNestingCheck'])&&(_0xeae78c['every'](_0x412075=>_0x22a87f['some'](_0x126443=>_0x126443['containsRange'](_0x412075,!0x0)))&&_0x26eeab['discard']());if(_0x22a87f['every'](_0x28604d=>_0xeae78c['some'](_0x15505f=>_0x15505f['containsRange'](_0x28604d,!0x0)))){const _0x17e5ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xefd25b,'accept');return this['forceDefaultExecution'](()=>_0x17e5ba(_0x4e654e,null,_0x22929e)),null;}}else{const _0x106ea=_0x26eeab['getFirstRange']();_0x22a87f['some'](_0x3f0858=>_0x3f0858['containsRange'](_0x106ea,!0x0))&&_0x26eeab['discard']();if(_0x22a87f['every'](_0xb29a78=>_0x106ea['containsRange'](_0xb29a78,!0x0))){const _0xda8f66=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xefd25b,'accept');return this['forceDefaultExecution'](()=>_0xda8f66(_0x22a87f,null,_0x22929e)),null;}}const _0x26d8dd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xefd25b,'join');let _0xce5ce=null;for(const _0x180dc8 of this['getSuggestions']())if(_0x180dc8['author']['id']==_0x3d5972['id']&&_0x180dc8['isInContent']&&'deletion'==_0x180dc8['type']&&_0x180dc8['subType']==_0xefd25b&&qt(_0x180dc8,_0x22929e)&&(_0x26d8dd(_0x180dc8['getRanges'](),_0x22a87f)||_0x26d8dd(_0x22a87f,_0x180dc8['getRanges']()))){if(_0xce5ce){if(_0x180dc8['commentThread']&&_0x180dc8['commentThread']['length'])continue;for(const _0x84761b of _0x180dc8['getRanges']())_0xce5ce['isIntersectingWithRange'](_0x84761b)||_0xce5ce['addRange'](_0x84761b);_0x180dc8['removeMarkers']();}else{_0xce5ce=_0x180dc8;for(const _0x3e8bc7 of _0x22a87f)_0x180dc8['isIntersectingWithRange'](_0x3e8bc7)||_0x180dc8['addRange'](_0x3e8bc7);}}if(_0xce5ce)return _0xce5ce;_0x36a922['clear']();for(const {suggestion:_0x4260cd,meta:_0x543011}of this['_findSuggestions'](_0x22a87f,'deletion'))_0x543011['isOwn']&&(this['_mergeNestedSuggestions']||!_0x543011['containsRangeInObject']&&!_0x543011['isInsideObject'])&&qt(_0x4260cd,_0x22929e)&&_0x36a922['add'](_0x4260cd);for(const _0x6aab5e of _0x36a922){const _0x19901a=_0x6aab5e['getRanges']();if(!_0x22929e||!_0x22929e['skipNestingCheck']){if(_0x22a87f['every'](_0x54788c=>_0x19901a['some'](_0x4a0e2d=>_0x4a0e2d['containsRange'](_0x54788c,!0x0))))return _0x6aab5e;}(!_0x6aab5e['attributes']||!_0x6aab5e['attributes']['skipNestingCheck'])&&(_0x19901a['every'](_0xb4ee10=>_0x22a87f['some'](_0x10e06d=>_0x10e06d['containsRange'](_0xb4ee10,!0x0)))&&_0x6aab5e['discard']());}const _0x27af77=_0x546e08(),_0x52041c=_0x3d5972['id'],_0x53c37b='deletion:'+_0xefd25b,_0x47b3c1=this['_setSuggestionData']({'id':_0x27af77,'type':_0x53c37b,'createdAt':new Date(),'authorId':_0x52041c,'attributes':_0x22929e});for(const _0x246460 of _0x22a87f)_0x246460['detach'](),_0x246460['isCollapsed']||'$graveyard'==_0x246460['root']['rootName']||this['_addSuggestionMarker'](_0x53c37b,_0x27af77,_0x52041c,_0x246460,u['getMultiRangeId']());return _0x47b3c1;}['markAttributeChange'](_0x1aae48,_0x98c35a,_0x768b46,_0x27a9fd,_0xfc4a7){if(_0x1aae48['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1749ac=this['editor']['plugins']['get']('Users')['me']['id'],_0x3b4c74=Array['from'](this['_suggestions']['values']())['filter'](_0x32a31f=>'attribute'==_0x32a31f['type']&&_0x32a31f['data']['key']==_0x98c35a&&_0x32a31f['isIntersectingWithRange'](_0x1aae48));if('default'===this['_trackFormatChanges']){const _0xfd4aac=this['_findSuggestions'](_0x1aae48,'insertion')['filter'](({meta:_0x4689a5})=>_0x4689a5['isOwn']&&!_0x4689a5['isInsideObject']&&!_0x4689a5['isNextTo'])['map'](({suggestion:_0x35b7bb})=>_0x35b7bb);_0x3b4c74['unshift'](..._0xfd4aac);}const _0x308827=new Map([[_0x1aae48,_0x768b46]]);for(const _0x4c5bad of _0x3b4c74){const _0x1c1b8d='attribute'==_0x4c5bad['type']?_0x4c5bad['data']['oldValue']:void 0x0,_0x568940=_0x4c5bad['getFirstRange'](),_0x2f9560=Array['from'](_0x308827['keys']())['find'](_0x12f8b8=>_0x12f8b8['isIntersecting'](_0x568940));if(!_0x2f9560)continue;const _0x12f5f1=_0x2f9560['getDifference'](_0x568940);this['_isBlockAttribute'](_0x98c35a)&&'insertion'==_0x4c5bad['type']&&0x0!=_0x12f5f1['length']||(_0x308827['delete'](_0x2f9560),_0x12f5f1['forEach'](_0x2edd14=>{_0x308827['set'](_0x2edd14,_0x768b46);}),'insertion'!=_0x4c5bad['type']&&_0x1c1b8d!=_0x27a9fd&&_0x308827['set'](_0x2f9560['getIntersection'](_0x568940),_0x1c1b8d));}const _0x235354=[];for(const [_0x532f96,_0xd42de9]of _0x308827){const _0x59205c=_0x546e08(),_0x2535d3={'key':_0x98c35a,'oldValue':_0xd42de9,'newValue':_0x27a9fd};_0x98c35a['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':_0x98c35a});const _0x3e0c83=('attribute:'+(_0x98c35a+'|'+Gt({'newValue':_0x27a9fd})))['substring'](0x0,0x3c),_0x459061=this['_setSuggestionData']({'id':_0x59205c,'type':_0x3e0c83,'data':_0x2535d3,'createdAt':new Date(),'authorId':_0x1749ac,'attributes':_0xfc4a7});_0x235354['push'](_0x459061),this['_addSuggestionMarker'](_0x3e0c83,_0x59205c,_0x1749ac,_0x532f96);}return _0x235354;}['enableDefaultAttributesIntegration'](_0x46bfdb){this['enableCommand'](_0x46bfdb,(_0x110403,..._0x1fbdb9)=>{this['_recordAttributeChanges'](()=>{_0x110403(..._0x1fbdb9);});});}['registerBlockAttribute'](_0x143935){this['_blockAttributeKeys']['add'](_0x143935);}['registerInlineAttribute'](_0x55a84e){this['_inlineAttributeKeys']['add'](_0x55a84e);}['_getAttributeKey'](_0x2739f7){return'attribute'==_0x2739f7['type']?_0x2739f7['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x57fb27,_0x4fb7f6){const _0x2c7fda=_0x57fb27['getFirstMarker']();this['_model']['change'](_0x4ff37d=>{_0x4ff37d['updateMarker'](_0x2c7fda,{'range':_0x4fb7f6});});}['_addThreadToSuggestion'](_0x34db6c){const _0x3d9072=_0x34db6c['id'],_0x40057d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3d9072)||this['_commentsRepository']['addCommentThread']({'channelId':_0x40057d,'threadId':_0x3d9072,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2dde39=this['_commentsRepository']['getCommentThread'](_0x3d9072);_0x2dde39['unbind']('isRemovable'),_0x2dde39['isRemovable']=!0x1,_0x34db6c['commentThread']=_0x2dde39;}['_checkSuggestionCorrectness'](_0x2d8d98,_0x31932d,_0x4ea82a,_0x16824a){if(_0x2d8d98['type']!=_0x31932d||_0x2d8d98['subType']!=_0x4ea82a||_0x2d8d98['creator']['id']!=_0x16824a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4ee7fd('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1e11c7,_0x5a8500){const _0x47dfaf=_0x1e11c7['getFirstRange']();if(_0x5a8500['isEqual'](_0x47dfaf))_0x1e11c7['removeMarkers']();else{if(_0x47dfaf['containsRange'](_0x5a8500)){const _0x436408=this['_model']['createPositionAt'](_0x5a8500['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1e11c7,this['_model']['createRange'](_0x47dfaf['start'],_0x436408));const _0x19ba49=_0x546e08(),_0x2d510f=_0x1e11c7['creator']['id'],_0xb9c08e=_0x1e11c7['type']+':'+_0x1e11c7['subType'];this['_setSuggestionData']({'id':_0x19ba49,'type':_0xb9c08e,'createdAt':new Date(),'authorId':_0x2d510f,'data':_0x1e11c7['data'],'attributes':_0x1e11c7['attributes']});const _0x2bd2d4=this['_model']['createPositionAt'](_0x5a8500['end']['parent'],'after'),_0x177e48=this['_model']['createRange'](_0x2bd2d4,_0x47dfaf['end']);this['_addSuggestionMarker'](_0xb9c08e,_0x19ba49,_0x2d510f,_0x177e48);}else{if(_0x47dfaf['containsPosition'](_0x5a8500['start'])){const _0x5c5369=this['_model']['createPositionAt'](_0x5a8500['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1e11c7,this['_model']['createRange'](_0x47dfaf['start'],_0x5c5369));}else{const _0x267053=this['_model']['createPositionAt'](_0x5a8500['end']['parent'],'after');this['_setSuggestionRange'](_0x1e11c7,this['_model']['createRange'](_0x267053,_0x47dfaf['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xe99f07){for(const {suggestion:_0x5ac2d9,meta:_0x272be0}of this['_findSuggestions'](_0xe99f07,'insertion')){if(!_0x272be0['isOwn'])continue;const _0x127897=_0x5ac2d9['getRanges']();for(const _0x1d605c of _0x127897)if(!_0xe99f07['getDifference'](_0x1d605c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x35c70b){const _0x26a055=this['editor']['plugins']['get']('Users')['getUser'](_0x35c70b);if(!_0x26a055)throw new _0x4ee7fd('track-changes-user-not-found',this);return _0x26a055;}['_getExternalAuthor'](_0x284101){const _0x2894e8=this['editor']['plugins']['get']('Users'),_0x244a7b=_0x4bbe82('external:'+_0x284101),_0xeb8cc1=_0x2894e8['getUser'](_0x244a7b);return _0xeb8cc1||_0x2894e8['addUser']({'id':_0x244a7b,'name':_0x284101});}['_createSuggestion'](_0x5bb76c,_0x4b38a8,_0x5865ee,_0x5281a9,_0x14b928){const _0x1fdb5a=this['_getAuthorFromId'](_0x5281a9),_0x195a2d=this['_suggestionFactory']['buildSuggestion'](_0x5bb76c,_0x4b38a8,_0x5865ee,_0x1fdb5a,_0x14b928,_0x58f347=>{this['_updateSuggestionData'](_0x5865ee,{'attributes':_0x58f347});const _0x72018c=this['getSuggestion'](_0x5865ee);this['_joinWithAdjacentSuggestions'](new Set([_0x72018c])),this['_refreshSuggestionsChain'](new Set([_0x72018c]));});return this['listenTo'](_0x195a2d,'accept',()=>{this['_updateSuggestionData'](_0x5865ee,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x195a2d,'discard',()=>{this['_updateSuggestionData'](_0x5865ee,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5865ee,_0x195a2d),this['_suggestionState']['set'](_0x195a2d,'notReady'),_0x195a2d;}['_splitMarkerName'](_0x57a3a6){const _0xfe81e1=_0x57a3a6['split'](':');return{'group':_0xfe81e1[0x0],'type':_0xfe81e1[0x1],'subType':_0xfe81e1['length']>=0x5?_0xfe81e1[0x2]:null,'id':_0xfe81e1['length']<0x5?_0xfe81e1[0x2]:_0xfe81e1[0x3],'authorId':_0xfe81e1['length']<0x5?_0xfe81e1[0x3]:_0xfe81e1[0x4],'markerCount':0x6==_0xfe81e1['length']?_0xfe81e1[0x5]:null};}['_breakSuggestionMarker'](_0x36a94c,_0x1ae112,_0x1ed9a7){const _0x366f2b=_0x36a94c['getFirstRange'](),_0x1c6ec6=_0x366f2b['start'],_0x46adcb=_0x366f2b['end'];this['_setSuggestionRange'](_0x36a94c,this['_model']['createRange'](_0x1c6ec6,_0x1ae112));const _0x275cbd=_0x546e08(),_0x38cb25=_0x36a94c['creator']['id'],_0x36e1ba=_0x36a94c['type']+(_0x36a94c['subType']?':'+_0x36a94c['subType']:'');this['_setSuggestionData']({'id':_0x275cbd,'type':_0x36e1ba,'createdAt':new Date(),'authorId':_0x38cb25,'originalSuggestionId':_0x36a94c['id'],'attributes':_0x36a94c['attributes'],'data':_0x36a94c['data']});const _0x2ea4a2=this['_getAttributeKey'](_0x36a94c);('formatBlock'==_0x36a94c['type']||_0x2ea4a2&&this['_isBlockAttribute'](_0x2ea4a2))&&(_0x1ed9a7=this['_model']['createPositionBefore'](_0x1ed9a7['parent'])),this['_addSuggestionMarker'](_0x36e1ba,_0x275cbd,_0x38cb25,this['_model']['createRange'](_0x1ed9a7,_0x46adcb));}['_findSuggestions'](_0x51c3a9,_0x2aad3f=null){const _0x3ad251=[],_0x11a52b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x51c3a9)||(_0x51c3a9=[_0x51c3a9]);for(const _0xfc0cfc of this['getSuggestions']()){if(!_0xfc0cfc['isInContent'])continue;if(_0x2aad3f&&_0xfc0cfc['type']!=_0x2aad3f)continue;let _0x5dbeec=!0x1;for(const _0x19d1f of _0xfc0cfc['getRanges']()){for(const _0x56d6f5 of _0x51c3a9){const _0x39c848=_0x56d6f5['start']['isEqual'](_0x19d1f['end'])||_0x56d6f5['end']['isEqual'](_0x19d1f['start']);if(_0x39c848||_0x56d6f5['getIntersection'](_0x19d1f)){const _0x487e1f=_0x56d6f5['containsRange'](_0x19d1f)&&Ot(this['_model']['schema'],_0x19d1f['start'],_0x56d6f5),_0x2cd468=_0x19d1f['containsRange'](_0x56d6f5)&&Ot(this['_model']['schema'],_0x56d6f5['start'],_0x19d1f);_0x3ad251['push']({'suggestion':_0xfc0cfc,'meta':{'isOwn':_0x11a52b==_0xfc0cfc['author'],'isNextTo':_0x39c848,'isInsideObject':_0x487e1f,'containsRangeInObject':_0x2cd468}}),_0x5dbeec=!0x0;break;}}if(_0x5dbeec)break;}}return _0x3ad251;}['_addSuggestionMarker'](_0x5531ad,_0x1a9264,_0x2d5d40,_0x3b2934,_0x5da893){this['_model']['change'](_0xa41882=>{let _0x4440cc='suggestion:'+_0x5531ad+':'+_0x1a9264+':'+_0x2d5d40;_0x5da893&&(_0x4440cc=_0x4440cc+':'+_0x5da893),_0xa41882['addMarker'](_0x4440cc,{'range':_0x3b2934,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x197975){const _0x541cf9=_0x197975['previous'],_0x5a1795=_0x197975['next'];_0x197975['previous']=null,_0x197975['next']=null,null!=_0x541cf9&&_0x541cf9['next']==_0x197975&&(_0x541cf9['next']=_0x5a1795),null!=_0x5a1795&&_0x5a1795['previous']==_0x197975&&(_0x5a1795['previous']=_0x541cf9),'ready'==this['_suggestionState']['get'](_0x197975)&&(this['_suggestionState']['set'](_0x197975,'removed'),this['fire']('suggestionUnloaded',_0x197975,_0x541cf9,_0x5a1795));}['_setSuggestionData'](_0x3c3337){const _0x7bd63b=_0x3c3337['id'],_0x2cdd2c=this['addSuggestionData'](_0x3c3337);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x465c53=this['editor']['plugins']['get']('PendingActions'),_0x2a3402=_0x2cdd2c['hasComments'],_0x2faff0=_0x2cdd2c['subType']?_0x2cdd2c['type']+':'+_0x2cdd2c['subType']:_0x2cdd2c['type'],_0x20cf87=this['editor']['locale'],_0x47b5e3=_0x465c53['add'](o(_0x20cf87,'PENDING_ACTION_SUGGESTION')),_0x548ddd={'id':_0x7bd63b,'type':_0x2faff0,'hasComments':_0x2a3402,'data':_0x3c3337['data']||null,'originalSuggestionId':_0x3c3337['originalSuggestionId']||null,'attributes':_0x2cdd2c['attributes']};this['_adapter']['addSuggestion'](_0x548ddd)['then'](_0x36ea1e=>{_0x2cdd2c['_saved']=!0x0,_0x465c53['remove'](_0x47b5e3),_0x36ea1e&&_0x36ea1e['createdAt']&&(this['_suggestions']['get'](_0x7bd63b)['createdAt']=_0x36ea1e['createdAt']);})['catch'](_0x559f01=>{throw _0x4639c6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2cdd2c['discard']();}),_0x2cdd2c['stopListening'](),this['_suggestions']['delete'](_0x2cdd2c['id']),this['_suggestionState']['delete'](_0x2cdd2c),_0x559f01;});}return _0x2cdd2c;}['_isBlockAttribute'](_0x566485){return this['_blockAttributeKeys']['has'](_0x566485);}['_updateSuggestionData'](_0x429122,_0x47a31f){const _0x1a2c73=this['editor']['plugins']['get']('PendingActions'),_0x582eb0=this['getSuggestion'](_0x429122);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x582eb0['_saved']){const _0x2da2ea=_0x1a2c73['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x429122,_0x47a31f)['then'](()=>{_0x1a2c73['remove'](_0x2da2ea);});}else _0x582eb0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x429122,_0x47a31f);});}}['_getSuggestionData'](_0x3e76ea){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4ee7fd('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3e76ea);}['_handleNewSuggestionMarker'](_0x4de0be){const {id:_0x364501,type:_0x135c24,subType:_0xabe19b,authorId:_0x4fd53d}=this['_splitMarkerName'](_0x4de0be),_0x51231e=this['_suggestions']['get'](_0x364501)||this['_createSuggestion'](_0x135c24,_0xabe19b,_0x364501,_0x4fd53d,{});switch(this['_checkSuggestionCorrectness'](_0x51231e,_0x135c24,_0xabe19b,_0x4fd53d),this['_suggestionState']['get'](_0x51231e)){case'notReady':this['_getSuggestionData'](_0x364501)['then'](_0x3ba1e2=>{let _0x24b8c7=Promise['resolve']();_0x3ba1e2['hasComments']&&(_0x24b8c7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x364501})),_0x24b8c7['then'](()=>{this['addSuggestionData'](_0x3ba1e2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x51231e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x364501,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x51231e,'ready'),this['fire']('suggestionLoaded',_0x51231e);break;case'ready':this['fire']('suggestionChanged',_0x51231e);}return _0x51231e['addMarkerName'](_0x4de0be),_0x51231e;}['_refreshSuggestionsChain'](_0x213d27){const _0x11065e=Array['from'](_0x213d27),_0x1e78f1=_0x11065e['filter'](_0x587407=>'attribute'==_0x587407['type']);this['_refreshAttributeSuggestionsChain'](_0x1e78f1);const _0x5d1c1d=_0x11065e['filter'](_0x276ca4=>!_0x276ca4['isMultiRange']&&'attribute'!=_0x276ca4['type']),_0x3b0354=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc2bfb5=>!_0xc2bfb5['isMultiRange']&&'attribute'!=_0xc2bfb5['type']),_0x3855f8=_0x3b0354['filter'](_0x205adb=>!_0x213d27['has'](_0x205adb)),_0x530c52=new Map(_0x3b0354['map'](_0x4ecf25=>[_0x4ecf25,this['_suggestionFactory']['getSuggestionCallback'](_0x4ecf25['type'],_0x4ecf25['subType'],'chain')])),_0xc3c749=new Map(_0x3b0354['map'](_0x3dda7f=>[_0x3dda7f,_0x3dda7f['getFirstRange']()])),_0x1bf7cd=new Set(),_0x45e27b=new Set();for(let _0x2addb2=0x0;_0x2addb2<_0x5d1c1d['length'];_0x2addb2++)_0x91b33d(_0x5d1c1d[_0x2addb2],_0x5d1c1d,_0x2addb2+0x1);for(let _0x31fc5a=0x0;_0x31fc5a<_0x5d1c1d['length'];_0x31fc5a++)_0x91b33d(_0x5d1c1d[_0x31fc5a],_0x3855f8,0x0);const _0x55b994=new Set();for(let _0x5560cf=0x0;_0x5560cf<_0x5d1c1d['length'];_0x5560cf++){const _0x304f73=_0x5d1c1d[_0x5560cf];!_0x45e27b['has'](_0x304f73)&&_0x304f73['previous']&&(_0x55b994['add'](_0x304f73['previous']),_0x304f73['previous']['next']===_0x304f73&&(_0x304f73['previous']['next']=null),_0x304f73['previous']=null),!_0x1bf7cd['has'](_0x304f73)&&_0x304f73['next']&&(_0x55b994['add'](_0x304f73['next']),_0x304f73['next']['previous']===_0x304f73&&(_0x304f73['next']['previous']=null),_0x304f73['next']=null);}function _0x91b33d(_0x26a3ad,_0x5d7b14,_0x49437d){for(let _0x47f9d9=_0x49437d;_0x47f9d9<_0x5d7b14['length'];_0x47f9d9++){const _0x3ea18e=_0x2b6ccb(_0x26a3ad,_0x5d7b14[_0x47f9d9]);_0x3ea18e&&(_0x3ea18e[0x0]['next']=_0x3ea18e[0x1],_0x3ea18e[0x1]['previous']=_0x3ea18e[0x0],_0x1bf7cd['add'](_0x3ea18e[0x0]),_0x45e27b['add'](_0x3ea18e[0x1]));}}function _0x2b6ccb(_0x3ac6fb,_0x4eec77){if(_0x3ac6fb['author']['id']!==_0x4eec77['author']['id'])return null;const _0x56a0e0=_0x530c52['get'](_0x3ac6fb)(_0x3ac6fb,_0x4eec77,_0xc3c749['get'](_0x3ac6fb),_0xc3c749['get'](_0x4eec77));if(!_0x56a0e0)return null;return _0x530c52['get'](_0x4eec77)(_0x3ac6fb,_0x4eec77,_0xc3c749['get'](_0x3ac6fb),_0xc3c749['get'](_0x4eec77))?_0x56a0e0[0x1]['commentThread']&&_0x56a0e0[0x1]['commentThread']['length']?null:_0x56a0e0:null;}_0x55b994['size']&&this['_refreshSuggestionsChain'](_0x55b994);}['_refreshAttributeSuggestionsChain'](_0x1e07ce){if(0x0==_0x1e07ce['length'])return;const _0x243297=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45e8d5=>'attribute'==_0x45e8d5['type']&&_0x45e8d5['_isDataLoaded']),_0x4a985c=[],_0x44cfb7=new Map();for(const _0x53e889 of _0x243297){const _0x16d887=_0x4bbe82(_0x53e889['attributes']);_0x44cfb7['has'](_0x16d887)||(_0x44cfb7['set'](_0x16d887,_0x4a985c['length']),_0x4a985c['push']([]));const _0x5cb38c=_0x44cfb7['get'](_0x16d887);_0x4a985c[_0x5cb38c]['push'](_0x53e889);}!(function(){_0x4a985c['sort']((_0x175656,_0xd43869)=>{const _0x543a07=_0x175656[0x0]['createdAt'],_0x118df5=_0xd43869[0x0]['createdAt'];return _0x543a07==_0x118df5?_0x175656[0x0]['attributes']['groupId']<_0xd43869[0x0]['attributes']['groupId']?-0x1:0x1:_0x543a07<_0x118df5?-0x1:0x1;});for(const _0x1f445a of _0x4a985c)_0x1f445a['sort']((_0x50bf98,_0x20120e)=>_0x50bf98['id']<_0x20120e['id']?-0x1:0x1);}());for(let _0x227226=0x0;_0x227226<_0x4a985c['length'];_0x227226++){if(0x0==_0x4a985c[_0x227226]['length'])continue;const _0x942332=[];for(let _0x27673f=_0x227226+0x1;_0x27673f<_0x4a985c['length'];_0x27673f++)0x0!=_0x4a985c[_0x27673f]['length']&&_0x151123(_0x4a985c[_0x227226],_0x4a985c[_0x27673f])&&_0x942332['push'](_0x27673f);for(const _0x3e31ab of _0x942332)_0x4a985c[_0x227226]=_0x4a985c[_0x227226]['concat'](_0x4a985c[_0x3e31ab]),_0x4a985c[_0x3e31ab]=[];}for(const _0x188d13 of _0x4a985c)for(let _0xf83b=0x0;_0xf83b<_0x188d13['length'];_0xf83b++){const _0x1f7a62=_0x188d13[_0xf83b+0x1]||null;_0x188d13[_0xf83b]['next']!==_0x1f7a62&&(_0x188d13[_0xf83b]['next']=_0x1f7a62);}for(const _0x4fbe09 of _0x4a985c)for(let _0x4fa6df=0x0;_0x4fa6df<_0x4fbe09['length'];_0x4fa6df++){const _0xffbc5=_0x4fbe09[_0x4fa6df-0x1]||null;_0x4fbe09[_0x4fa6df]['previous']!==_0xffbc5&&(_0x4fbe09[_0x4fa6df]['previous']=_0xffbc5);}function _0x151123(_0x2160b7,_0x5bedd7){if(_0x2160b7[0x0]['attributes']['groupId']!==_0x5bedd7[0x0]['attributes']['groupId']&&_0x2160b7[0x0]['author']!==_0x5bedd7[0x0]['author'])return!0x1;if(!function(_0x188900,_0xe783c6){if(!_0x188900['hasComments']&&!_0xe783c6['hasComments'])return!0x0;if(_0x188900['hasComments']&&_0xe783c6['hasComments'])return!0x1;if(_0x188900['hasComments']&&_0xe783c6['createdAt']<_0x188900['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xe783c6['hasComments']&&_0x188900['createdAt']<_0xe783c6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2160b7[0x0],_0x5bedd7[0x0]))return!0x1;const _0x444f0e=Tt(_0x2160b7[0x0]['attributes'],'groupId'),_0x31cbfe=Tt(_0x5bedd7[0x0]['attributes'],'groupId');if(!_0x11af30(_0x444f0e,_0x31cbfe))return!0x1;return!!_0x2160b7['every'](_0xb5c1c6=>_0x5bedd7['some'](_0x180aa9=>_0xb5c1c6['getFirstRange']()['isEqual'](_0x180aa9['getFirstRange']())))&&_0x5bedd7['every'](_0x21c423=>_0x2160b7['some'](_0x14524b=>_0x21c423['getFirstRange']()['isEqual'](_0x14524b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x42af53){const _0x1be0e7=Array['from'](_0x42af53),_0x43968b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5535c2=_0x43968b['filter'](_0x1dde22=>!_0x42af53['has'](_0x1dde22)),_0x54e3d7=new Map(_0x1be0e7['map'](_0x5078f6=>[_0x5078f6,this['_suggestionFactory']['getSuggestionCallback'](_0x5078f6['type'],_0x5078f6['subType'],'join')])),_0xf371ff=new Map(_0x43968b['map'](_0x4d1d13=>[_0x4d1d13,_0x4d1d13['getRanges']()]));for(let _0x39ee57=0x0;_0x39ee57<_0x1be0e7['length'];_0x39ee57++){if(_0x2914d6(this,_0x1be0e7[_0x39ee57],_0x1be0e7,_0x39ee57+0x1))return!0x0;}for(let _0x28ccdd=0x0;_0x28ccdd<_0x1be0e7['length'];_0x28ccdd++){if(_0x2914d6(this,_0x1be0e7[_0x28ccdd],_0x5535c2,0x0))return!0x0;}return!0x1;function _0x2914d6(_0x4b9b35,_0x33f7a3,_0x13a770,_0x875bbe){for(let _0x2bca5d=_0x875bbe;_0x2bca5d<_0x13a770['length'];_0x2bca5d++){const _0x46902a=_0x13a770[_0x2bca5d];if(_0x46902a['type']!==_0x33f7a3['type']||_0x46902a['author']['id']!==_0x33f7a3['author']['id']||_0x46902a['subType']!==_0x33f7a3['subType'])continue;if(!Jt(_0x33f7a3,_0x46902a))continue;if('attribute'==_0x33f7a3['type']&&_0x33f7a3['data']['oldValue']!=_0x46902a['data']['oldValue'])continue;if('attribute'==_0x33f7a3['type']&&_0x4b9b35['_isBlockAttribute'](_0x33f7a3['data']['key']))continue;if('formatBlock'==_0x33f7a3['type']){const _0x43aa6a=_0x4b9b35['editor']['model'],_0x5e424a=_0x33f7a3['getContainedElement']();if(_0x5e424a&&(_0x43aa6a['schema']['isObject'](_0x5e424a)||_0x43aa6a['schema']['isLimit'](_0x5e424a)))continue;}const _0x4d2261=_0x54e3d7['get'](_0x33f7a3),_0x84905d=_0xf371ff['get'](_0x33f7a3),_0x95ed52=_0xf371ff['get'](_0x46902a),_0x4e5e93=_0x33f7a3['commentThread']&&_0x33f7a3['commentThread']['length'],_0x25ba30=_0x46902a['commentThread']&&_0x46902a['commentThread']['length'];if(!_0x4e5e93&&_0x4d2261(_0x95ed52,_0x84905d))return _0x4b9b35['_joinSuggestions'](_0x46902a,_0x33f7a3),_0xf371ff['delete'](_0x33f7a3),!0x0;if(!_0x25ba30&&_0x4d2261(_0x84905d,_0x95ed52))return _0x4b9b35['_joinSuggestions'](_0x33f7a3,_0x46902a),_0xf371ff['delete'](_0x46902a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x46bc8b,_0xbaebe){if(_0x46bc8b['isMultiRange']){for(const _0x198216 of _0xbaebe['getRanges']())_0x46bc8b['addRange'](_0x198216);}else{const _0x2a85d0=_0xbaebe['getFirstRange']()['end'];this['_setSuggestionRange'](_0x46bc8b,this['_model']['createRange'](_0x46bc8b['getFirstRange']()['start'],_0x2a85d0));}_0xbaebe['removeMarkers']();}['_getMarkerAnnouncementText'](_0x327275,_0x325515,_0x8a40d5){const _0x61f472=_0x327275['startsWith']('format')||_0x327275['startsWith']('attribute')?'FORMATTING':_0x327275['toUpperCase']();return o(this['editor']['locale'],_0x325515+'_'+_0x61f472+'_SUGGESTION_ANNOUNCEMENT',_0x8a40d5);}['_initAriaMarkerChangeAnnouncements'](){const _0x19c706=this['editor'];if(!_0x19c706['ui'])return;const {ariaLiveAnnouncer:_0x4fa14e}=_0x19c706['ui'];_0x4f11ef(this['_model'],({left:_0x1c5ede,entered:_0x5b6380})=>{for(const _0x319506 of _0x1c5ede){const {group:_0x346dd8,type:_0x2419bf}=this['_splitMarkerName'](_0x319506['name']);if('suggestion'===_0x346dd8){_0x4fa14e['announce'](this['_getMarkerAnnouncementText'](_0x2419bf,'LEAVE'));break;}}for(const _0x16477e of _0x5b6380){const {group:_0x4b2885,type:_0x416860}=this['_splitMarkerName'](_0x16477e['name']);if('suggestion'===_0x4b2885){_0x4fa14e['announce'](this['_getMarkerAnnouncementText'](_0x416860,'ENTER',_0x1ca498(_0x2e5bcc)));break;}}});}['_processAttributeChanges'](_0x228f2b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4d92cb=this['editor'],_0x4a6082=_0x4d92cb['model']['document']['differ']['getChanges']();if(0x0==_0x4a6082['length'])return!0x1;const _0x521628=[],_0x9591ad=_0x4a6082['filter'](_0x2849bd=>'attribute'==_0x2849bd['type']),_0x48afd6=_0x4a6082['filter'](_0x43b9a4=>'insert'==_0x43b9a4['type']&&'$text'!=_0x43b9a4['name']),_0x502225=_0x4a6082['filter'](_0x316847=>'remove'==_0x316847['type']&&'$text'!=_0x316847['name']);for(const _0x74117f of _0x9591ad)_0x521628['push']({'key':_0x74117f['attributeKey'],'newValue':_0x74117f['attributeNewValue'],'oldValue':_0x74117f['attributeOldValue'],'range':Pt(_0x74117f['range'],_0x4d92cb['model'])});for(const _0x3edccd of _0x48afd6){const _0x7a4278=_0x502225['find'](_0x2b6dfb=>_0x2b6dfb['position']['isEqual'](_0x3edccd['position']));_0x7a4278&&_0x521628['push']({'key':m,'newValue':_0x3edccd['name'],'oldValue':_0x7a4278['name'],'range':_0x4d92cb['model']['createRangeOn'](_0x3edccd['position']['nodeAfter'])});}return 0x0!=_0x521628['length']&&this['_reduceExistingSuggestions'](_0x228f2b,_0x521628);}['_processAttributeSuggestions'](_0xf8243){let _0xb09222=!0x1;const _0x2503a2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x252a29=>_0x252a29['data']['newRange']&&_0x252a29['name']['startsWith']('suggestion:attribute:'));for(const _0x1e6958 of _0x2503a2){const {subType:_0x4bc2b3,id:_0x212a5a}=this['_splitMarkerName'](_0x1e6958['name']),_0x5a67ce=_0x4bc2b3['split']('|')[0x0];for(const _0x5935af of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5935af['id']!=_0x212a5a&&'attribute'==_0x5935af['type']&&_0x5935af['data']&&_0x5935af['data']['key']==_0x5a67ce&&_0x5935af['getFirstRange']()['isIntersecting'](_0x1e6958['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5935af,_0x1e6958['data']['newRange'],_0xf8243),_0xb09222=!0x0);}return _0xb09222;}['_recordAttributeChanges'](_0xaa83fa){this['_recordAttributeSuggestions']=!0x0,_0xaa83fa();}['_isRegisteredAttribute'](_0x167be6){const _0x135cb3=this['_isBlockAttribute'](_0x167be6),_0xfc61ad=this['_inlineAttributeKeys']['has'](_0x167be6);return _0x135cb3||_0xfc61ad;}['_reduceExistingSuggestions'](_0x5297b6,_0x47a5e1){if(0x0==_0x47a5e1['length'])return!0x1;let _0x513ce1=!0x1;for(const _0x238ef0 of _0x47a5e1){const _0x25fea8=this['_findSuggestions'](_0x238ef0['range'],'attribute')['filter'](_0x1e0926=>!_0x1e0926['meta']['isNextTo'])['map'](_0x14ba5c=>_0x14ba5c['suggestion']),_0x3e820c=_0x4bbe82({'newValue':_0x238ef0['newValue']});_0x25fea8['filter'](_0x3796be=>{const [_0x3ea1e9,_0x48dc25]=_0x3796be['subType']['split']('|');return _0x3ea1e9==_0x238ef0['key']&&_0x48dc25!=_0x3e820c;})['forEach'](_0x599435=>{this['_reduceSuggestionAttributeRange'](_0x599435,_0x238ef0['range'],_0x5297b6),_0x513ce1=!0x0;});}return _0x513ce1;}['_reduceSuggestionAttributeRange'](_0x323f4b,_0x527b07,_0x49fc63){const _0x57cb70=_0x323f4b['getFirstRange']()['getDifference'](_0x527b07);0x0!==_0x57cb70['length']?0x1!==_0x57cb70['length']?this['_breakSuggestionMarker'](_0x323f4b,_0x527b07['start'],_0x527b07['end']):this['_setSuggestionRange'](_0x323f4b,_0x57cb70[0x0]):_0x49fc63['removeMarker'](_0x323f4b['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4ba9f8){this['_editor']=_0x4ba9f8,this['_model']=_0x4ba9f8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2298a8,_0x274a6b,_0x41a6a1,_0x38081a,_0xaa0d4d,_0x46b9c4){return new u(this['_model'],{'type':_0x2298a8,'subType':_0x274a6b,'id':_0x41a6a1,'author':_0x38081a,'creator':_0x38081a,'attributes':_0xaa0d4d,'onAttributesChange':_0x46b9c4,'onAccept':(..._0x526a07)=>this['getSuggestionCallback'](_0x2298a8,_0x274a6b,'accept')(..._0x526a07),'onDiscard':(..._0x57431c)=>this['getSuggestionCallback'](_0x2298a8,_0x274a6b,'discard')(..._0x57431c)});}['registerCustomCallback'](_0x4e548f,_0x4905d2,_0x344f49,_0x3d9930){const _0xb16781=_0x4e548f+':'+_0x4905d2+':'+_0x344f49;this['_customCallbacks']['set'](_0xb16781,_0x3d9930);}['getSuggestionCallback'](_0x334e17,_0x28a020,_0xa9b4b5){const _0x1a99d8=_0x334e17+':'+_0x28a020+':'+_0xa9b4b5;return this['_customCallbacks']['get'](_0x1a99d8)||this['_defaultCallbacks']['get'](_0x334e17+':'+_0xa9b4b5);}['_registerDefaultCallbacks'](){const _0x58a252=()=>!0x1,_0x2a8cbf=_0x1b0a3a=>{_0x1b0a3a['sort']((_0x5da7d6,_0x5949d2)=>_0x5da7d6['start']['isBefore'](_0x5949d2['start'])?0x1:-0x1),this['_model']['change'](_0x2c0f31=>{for(const _0xa208fa of _0x1b0a3a){let _0xd93cd7;_0xd93cd7=_0xa208fa['end']['isAtEnd']&&_0xa208fa['end']['parent']==_0xa208fa['start']['nodeAfter']?_0x2c0f31['createSelection'](_0xa208fa['start']['nodeAfter'],'on'):_0x2c0f31['createSelection'](_0xa208fa),this['_model']['deleteContent'](_0xd93cd7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x259b43=(_0x253da2,_0x399221)=>{_0x399221&&this['_model']['change'](_0x444f8b=>{const {commandName:_0x1474c2,commandParams:_0x351fda=[]}=_0x399221,_0x14979b=_0x253da2['map'](_0x18d2e4=>(Vt(_0x18d2e4)&&(_0x18d2e4=this['_model']['createRange'](_0x18d2e4['end'])),_0x18d2e4))['filter'](_0x5b8694=>'$graveyard'!==_0x5b8694['root']['rootName']);if(_0x14979b['length']<0x1)return;const _0x27d2fb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x49ce25=>_0x1ac7bd['fromRange'](_0x49ce25));_0x444f8b['setSelection'](_0x14979b);for(const _0x3a6ab4 of this['_editor']['commands']['commands']())_0x3a6ab4['refresh']();_0x351fda['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1474c2,..._0x351fda);const _0x492598=_0x27d2fb['filter'](_0x246636=>'$graveyard'!=_0x246636['root']['rootName']);_0x492598['length']>0x0&&_0x444f8b['setSelection'](_0x492598);for(const _0x4e9e7a of _0x27d2fb)_0x4e9e7a['detach']();});},_0x27be88=(_0x26f64d,_0x4700fd)=>0x1==_0x26f64d['length']&&0x1==_0x4700fd['length']&&_0x26f64d[0x0]['end']['isEqual'](_0x4700fd[0x0]['start']),_0x24d5a0=(_0x2bf9fc,_0x24b0d4,_0x267ed8,_0xf073d)=>Ht(_0x2bf9fc,_0x24b0d4,_0x267ed8,_0xf073d,this['_model'])?[_0x2bf9fc,_0x24b0d4]:Ht(_0x24b0d4,_0x2bf9fc,_0xf073d,_0x267ed8,this['_model'])?[_0x24b0d4,_0x2bf9fc]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x58a252),this['_defaultCallbacks']['set']('insertion:discard',_0x2a8cbf),this['_defaultCallbacks']['set']('insertion:join',_0x27be88),this['_defaultCallbacks']['set']('insertion:chain',_0x24d5a0),this['_defaultCallbacks']['set']('deletion:accept',_0x2a8cbf),this['_defaultCallbacks']['set']('deletion:discard',_0x58a252),this['_defaultCallbacks']['set']('deletion:join',_0x27be88),this['_defaultCallbacks']['set']('deletion:chain',_0x24d5a0),this['_defaultCallbacks']['set']('formatInline:accept',_0x259b43),this['_defaultCallbacks']['set']('formatInline:discard',_0x58a252),this['_defaultCallbacks']['set']('formatInline:join',_0x27be88),this['_defaultCallbacks']['set']('formatInline:chain',_0x58a252),this['_defaultCallbacks']['set']('formatBlock:accept',_0x259b43),this['_defaultCallbacks']['set']('formatBlock:discard',_0x58a252),this['_defaultCallbacks']['set']('formatBlock:join',_0x27be88),this['_defaultCallbacks']['set']('formatBlock:chain',_0x58a252),this['_defaultCallbacks']['set']('attribute:accept',_0x58a252),this['_defaultCallbacks']['set']('attribute:discard',(_0x5d1266,_0x1ce3e7)=>{if(!_0x1ce3e7)return;const _0x3ab4fb=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xd39420=>{if(_0x1ce3e7['key']==m)for(const _0x546d0c of _0x5d1266){const _0x1931d3=_0x546d0c['start']['nodeAfter'],_0x1c44fa=_0x1ce3e7['oldValue'];_0xd39420['rename'](_0x1931d3,_0x1c44fa);}else{if(_0x3ab4fb['_isBlockAttribute'](_0x1ce3e7['key'])){for(const _0x1ea7ab of _0x5d1266)void 0x0!==_0x1ce3e7['oldValue']?_0xd39420['setAttribute'](_0x1ce3e7['key'],_0x1ce3e7['oldValue'],_0x1ea7ab['start']['nodeAfter']):_0xd39420['removeAttribute'](_0x1ce3e7['key'],_0x1ea7ab['start']['nodeAfter']);}else{for(const _0x35052b of _0x5d1266)_0x1ce3e7['oldValue']?_0xd39420['setAttribute'](_0x1ce3e7['key'],_0x1ce3e7['oldValue'],_0x35052b):_0xd39420['removeAttribute'](_0x1ce3e7['key'],_0x35052b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x27be88);}}function Ot(_0x504e7c,_0x4a3c76,_0xa61175){for(const _0x4410da of _0x4a3c76['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4410da['root']==_0x4410da)return!0x1;if(!_0xa61175['containsItem'](_0x4410da))return!0x1;if(_0x504e7c['isObject'](_0x4410da)||_0x504e7c['isLimit'](_0x4410da))return!0x0;}return!0x1;}function Vt(_0x273687){return _0x273687['end']['parent']==_0x273687['start']['nodeAfter']&&_0x273687['end']['isAtStart'];}function Ut(_0x32e960,_0x525055,_0x4ddfba,_0x388a26){const _0x59a53a=_0x18bef3=>!_0x18bef3['item']['is']('$textProxy')&&!_0x388a26['isObject'](_0x18bef3['item']),_0x1e95c2=_0x32e960['start']['getLastMatchingPosition'](_0x59a53a),_0x45e81b=_0x32e960['end']['getLastMatchingPosition'](_0x59a53a,{'direction':'backward'});return(!_0x32e960['start']['isEqual'](_0x1e95c2)||!_0x32e960['end']['isEqual'](_0x45e81b))&&(_0x1e95c2['isBefore'](_0x45e81b)?_0x4ddfba['updateMarker'](_0x525055,{'range':_0x4ddfba['createRange'](_0x1e95c2,_0x45e81b)}):_0x4ddfba['removeMarker'](_0x525055),!0x0);}function Gt(_0x3adaf2){return _0x4bbe82(_0x3adaf2);}function Ft(_0x4a3101){const _0x4a7f62=_0x4a3101['start']['nodeAfter'];return _0x4a7f62&&_0x4a7f62['is']('element');}function Pt(_0x3deef7,_0x438bb1){return null==_0x3deef7['end']['nodeBefore']&&_0x3deef7['end']['parent']==_0x3deef7['start']['nodeAfter']?Lt(_0x3deef7['start']['nodeAfter'],_0x438bb1):_0x3deef7;}function Lt(_0x5f4645,_0x4b4b33){const _0xe9c9a=_0x4b4b33['schema']['isObject'](_0x5f4645)||_0x4b4b33['schema']['isSelectable'](_0x5f4645);return _0x4b4b33['createRange'](_0x4b4b33['createPositionAt'](_0x5f4645,'before'),_0xe9c9a?_0x4b4b33['createPositionAfter'](_0x5f4645):_0x4b4b33['createPositionAt'](_0x5f4645,'end'));}function Ht(_0x55508e,_0x430175,_0x104a13,_0x2d9b18,_0xfed64e){if(_0x55508e['next'])return!0x1;if(!Jt(_0x55508e,_0x430175))return!0x1;if(_0x104a13['end']['isEqual'](_0x2d9b18['start']))return!0x0;if(_0x55508e['type']!=_0x430175['type'])return!0x1;if(!_0x104a13['end']['isTouching'](_0x2d9b18['start']))return!0x1;const _0x3a2ca3=_0xfed64e['createRange'](_0x104a13['end'],_0x2d9b18['start'])['getWalker']();for(const _0xe2e11a of _0x3a2ca3)if(['elementStart','elementEnd']['includes'](_0xe2e11a['type'])&&_0xfed64e['schema']['isLimit'](_0xe2e11a['item']))return!0x1;return!0x0;}function Jt(_0x252f35,_0xb79ac0){if(!_0x252f35['_isDataLoaded']||!_0xb79ac0['_isDataLoaded'])return!0x1;const _0x48a509=new Set(Object['keys'](_0x252f35['attributes'])),_0x55809a=new Set(Object['keys'](_0xb79ac0['attributes']));if(_0x48a509['delete']('groupId'),_0x55809a['delete']('groupId'),0x0==_0x48a509['size']&&0x0==_0x55809a['size'])return!0x0;if(_0x48a509['size']!=_0x55809a['size'])return!0x1;const _0x169f38={..._0x252f35['attributes']},_0x87a57f={..._0xb79ac0['attributes']};return delete _0x169f38['groupId'],delete _0x87a57f['groupId'],JSON['stringify'](_0x169f38)==JSON['stringify'](_0x87a57f);}function qt(_0x5f135b,_0x56c339){const _0x4402e0=zt(_0x5f135b['attributes']),_0x19d001=zt(_0x56c339);if(!_0x5f135b['_isDataLoaded'])return!0x1;for(const _0x3143e4 of Object['keys'](_0x19d001))if(!_0x11af30(_0x4402e0[_0x3143e4],_0x19d001[_0x3143e4]))return!0x1;return!0x0;}function zt(_0x67a1d5){const _0x4a4d28=Object['assign']({},_0x67a1d5);return delete _0x4a4d28['skipNestingCheck'],delete _0x4a4d28['tablePasteChainId'],_0x4a4d28;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x1ca92d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x106a7e,_0x35078e,_0x48cce7,_0xdfcf59){super(),this['model']=_0x35078e,this['view']=_0x48cce7,this['commentThreadController']=_0xdfcf59,this['_editor']=_0x106a7e,this['_acceptCommand']=_0x106a7e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x106a7e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x277c80,_0x20958a)=>_0x277c80||_0x20958a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x11400f=>_0x11400f&&this['_editor']['model']['canEditAt'](_0x35078e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xd09068=>_0xd09068&&this['_editor']['model']['canEditAt'](_0x35078e['getRanges']())),this['_pendingAction']=null,_0x48cce7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x48cce7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x48cce7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x48cce7,'change:isDirty',()=>{_0x48cce7['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 _0x231a46=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x231a46);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0xa93036{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1dd139,_0x54d8c9,_0x43e0be,_0x3a0907){super(_0x1dd139),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2f9985(_0x1dd139,o(_0x1dd139,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x54d8c9['authoredAt']),this['bind']('authoredAt')['to'](_0x54d8c9),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',_0x54d8c9,'authoredAt',this,'descriptionParts',(_0x26480c,_0x4cfe9a,_0x551289)=>{const _0x48130d=_0x551289['map'](_0x1dec1f=>ls(_0x1dec1f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x26480c-0x1,_0x54d8c9['author']['name'],_0x4cfe9a?_0x3a0907['formatDateTime'](_0x4cfe9a):'',new DOMParser()['parseFromString'](_0x48130d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3a64bc(),this['focusTracker']=new _0x5423cf(),this['keystrokes']=new _0x4ec4fb(),this['focusCycler']=new _0x261d2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2c460b=>_0x2c460b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x54d8c9,this['_localUser']=_0x43e0be,this['_config']=_0x3a0907,_0x3a0907['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3e3d09(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x338ebc}=this['_config'];this['commentsListView']=new _0x338ebc(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',_0x3833ef=>_0x3833ef+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4e2d61,_0x34ad54)=>_0x4e2d61||!!_0x34ad54);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xaf9fe1}=this['_config'],_0x549fc1=new _0xaf9fe1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x13a2d9=_0x549fc1['commentInputView'];return _0x549fc1['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x13a2d9,'value',(_0x98d1f8,_0x5e92e3,_0x2f6eaa)=>!!_0x2f6eaa||_0x98d1f8&&!_0x5e92e3),_0x13a2d9['on']('submit',(_0x554d31,_0x32da81)=>{this['fire']('addComment',_0x32da81),_0x13a2d9['editor']['setData']('');}),_0x13a2d9['on']('cancel',()=>this['focus']()),_0x13a2d9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x549fc1;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x267ca9,_0x132fef,_0x49972a,_0x33181d){super(_0x267ca9,_0x132fef,_0x49972a,_0x33181d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5abdc1=>_0x5abdc1&&_0x5abdc1[0x0]?_0x5abdc1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x45de27,_0x3c623e)=>{let _0x1d0f90='';for(const _0x1a022c of _0x45de27)_0x1d0f90+='<p>'+ls(_0x1a022c['content'],_0x1a022c['color'])+'</p>';return _0x3c623e?_0x1d0f90:_0x260589(_0x1d0f90,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x33181d['SuggestionView'](_0x267ca9,_0x132fef,{'formatDateTime':_0x33181d['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 _0x1f6955=this['bindTemplate'],_0x4c72ff=[this['suggestionView']];return this['commentsListView']&&_0x4c72ff['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4c72ff['push'](this['commentThreadInputView']),_0x4c72ff['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1f6955['if']('isActive','ck-suggestion-wrapper--active'),_0x1f6955['to']('type',_0x34eef8=>'ck-suggestion-'+_0x34eef8),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':_0x1f6955['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4c72ff};}['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 ce extends _0xa93036{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xa65ddc,_0x50f623,_0x381185){super(_0xa65ddc),this['_model']=_0x50f623,this['_config']=_0x381185,this['set']('description',''),this['bind']('authoredAt')['to'](_0x50f623),this['acceptButton']=this['_createButton'](o(_0xa65ddc,'Accept\x20suggestion'),_0x1d5681['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xa65ddc,'Discard\x20suggestion'),_0x1d5681['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xd53404(_0xa65ddc,_0x50f623['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3a64bc([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5423cf(),this['keystrokes']=new _0x4ec4fb(),this['focusCycler']=new _0x261d2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4f71f3=>_0x4f71f3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x50b55b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x50b55b['innerHTML']=this['description'],this['on']('change:description',(_0x297ec5,_0x2de049,_0x2c849c)=>{_0x50b55b['innerHTML']=_0x2c849c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5224f0=this['bindTemplate'],_0x342cad=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x5224f0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5224f0['to']('authoredAt',_0x4461cb=>this['_config']['formatDateTime'](_0x4461cb))}]}]},{'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']&&_0x342cad['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':_0x342cad}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2ff8ad,_0x1fbd88,_0x193c53,_0x524e45,_0x589e59){const _0x216c06=new _0x55410d(this['locale']);return _0x216c06['set']({'label':_0x2ff8ad,'icon':_0x1fbd88,'tooltip':!0x0,'tooltipPosition':_0x589e59}),_0x216c06['extendTemplate']({'attributes':{'class':_0x193c53}}),_0x216c06['on']('execute',()=>{this['fire'](_0x524e45,this['_model']['id']);}),_0x216c06;}['_setupKeyboardNavigation'](){const _0x26f0ae=this['element'];this['keystrokes']['listenTo'](_0x26f0ae);for(const _0x4fd66c of this['focusables'])this['focusTracker']['add'](_0x4fd66c['element']),this['keystrokes']['listenTo'](_0x4fd66c['element']);this['keystrokes']['set']('enter',(_0x8ab4ec,_0x45521c)=>{_0x26f0ae===_0x8ab4ec['target']&&(this['focusCycler']['focusFirst'](),_0x45521c());}),this['keystrokes']['set']('esc',(_0x5169f4,_0x164b99)=>{_0x26f0ae!==_0x5169f4['target']&&(this['focus'](),_0x164b99());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x58a0bc{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5983d1,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1bb86d){super(_0x1bb86d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x15a466=this['editor']['config'];_0x15a466['define']('trackChanges.SuggestionThreadView',re),_0x15a466['define']('trackChanges.SuggestionView',ce),_0x15a466['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x15a466['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x187673,_0x480658){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xe83021,_0x4d3c34]of this['_handleControllerBuffer']){const _0x271995=this['_suggestionToController']['has'](_0xe83021);_0x271995||_0x4d3c34?_0x271995&&_0x4d3c34&&this['_destroyController'](_0xe83021):this['_initializeController'](_0xe83021);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x187673,_0x480658);}['init'](){const _0x5e12f7=this['editor'],_0x2d7d5f=_0x5e12f7['plugins']['get']('TrackChangesEditing'),_0x42509f=_0x5e12f7['plugins']['get']('Annotations'),_0x3f419e=_0x5e12f7['plugins']['get']('EditorAnnotations'),_0x35af6d=_0x5e12f7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3f419e['addSourceCollector'](()=>{const _0x22d4a2=[];for(const [_0x2631d8,_0x1fa5bb]of Array['from'](this['_suggestionToController'])){const _0xa941a2=_0x2631d8['getAllAdjacentSuggestions'](),_0x441b71=[];for(const _0x4644b9 of _0xa941a2){if(!_0x4644b9['isInContent'])continue;if(_0x4644b9['isMultiRange']){_0x441b71['push'](..._0x4644b9['getRanges']());continue;}const _0x54517c=_0x4644b9['getFirstRange']();if(_0x441b71['length']>0x0){const _0x24bbfa=_0x441b71[0x0]['getJoined'](_0x54517c);if(_0x24bbfa){_0x441b71[0x0]=_0x24bbfa;continue;}}_0x441b71['push'](_0x54517c);}_0x22d4a2['push']([_0x1fa5bb['view'],_0x441b71]);}return _0x22d4a2;}),this['listenTo'](_0x2d7d5f,'suggestionLoaded',(_0x44a26a,_0x2d0151)=>{this['listenTo'](_0x2d0151,'change:previous',(_0x227f7d,_0x1d0cc4,_0x159bb7,_0x29b9af)=>{_0x2d0151['isInContent']&&(null==_0x159bb7?(this['_updateController'](_0x29b9af['head']),this['_handleSuggestionControllerDelayed'](_0x2d0151,!0x1)):(this['_updateController'](_0x159bb7['head']),null==_0x29b9af&&this['_handleSuggestionControllerDelayed'](_0x2d0151,!0x0)));}),null!==_0x2d0151['previous']?this['_updateController'](_0x2d0151['head']):this['_handleSuggestionControllerDelayed'](_0x2d0151,!0x1);}),this['listenTo'](_0x2d7d5f,'suggestionUnloaded',(_0x2f208f,_0x395203,_0x386cab)=>{this['stopListening'](_0x395203,'change:previous'),this['_handleControllerBuffer']['delete'](_0x395203),this['_suggestionToController']['has'](_0x395203)&&this['_destroyController'](_0x395203),_0x386cab&&this['_updateController'](_0x386cab['head']);}),this['listenTo'](_0x2d7d5f,'suggestionChanged',(_0x308139,_0x915d95)=>{this['_updateController'](_0x915d95);}),this['listenTo'](_0x42509f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x35af6d,'addComment',(_0x361713,{threadId:_0x17d410,isFromAdapter:_0x2551b1})=>{if(_0x2551b1||!_0x2d7d5f['hasSuggestion'](_0x17d410))return;const _0x3089d8=_0x2d7d5f['getSuggestion'](_0x17d410);this['_suggestionToController']['get'](_0x3089d8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x40d064=this['editor']['plugins']['get']('Annotations'),_0x231616=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c903f=Array['from'](_0x40d064['activeAnnotations'],_0x167d4b=>_0x167d4b['innerView'])['filter'](_0x5123cb=>this['_viewToController']['has'](_0x5123cb)),_0xc51385=[];for(const _0x435c1c of _0x1c903f){const _0x1552c8=this['_viewToController']['get'](_0x435c1c)['model']['getAllAdjacentSuggestions']();_0xc51385['push'](..._0x1552c8['reduce']((_0x18f3f,_0x39719c)=>[..._0x18f3f,..._0x39719c['getMarkerNames']()],[]));}_0x231616['activeMarkers']=_0xc51385;}['_addUIComponentsToFactory'](){const _0x5bd407=this['editor'],_0x413514=_0x5bd407['locale'],_0x2582fb=o(_0x413514,'Track\x20changes'),_0x2b9063=new Wt([{'type':'switchbutton','model':new _0x590c00({'withText':!0x0,'isToggleable':!0x0,'label':_0x2582fb,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x590c00({'withText':!0x0,'label':o(_0x413514,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x590c00({'withText':!0x0,'label':o(_0x413514,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x590c00({'withText':!0x0,'label':o(_0x413514,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x590c00({'withText':!0x0,'label':o(_0x413514,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x551a0a of _0x2b9063)if(me(_0x551a0a)){const _0xe3359d=_0x5bd407['commands']['get'](_0x551a0a['model']['commandName']);_0x551a0a['model']['bind']('isOn','isEnabled')['to'](_0xe3359d,'value','isEnabled');}_0x5bd407['ui']['componentFactory']['add']('trackChanges',_0x2e83d6=>this['_createToolbarButton'](_0x2e83d6,_0x2b9063,_0x2582fb)),_0x5bd407['ui']['componentFactory']['add']('menuBar:trackChanges',_0x503e6d=>this['_createMenuBarMenu'](_0x503e6d,_0x2b9063,_0x2582fb));}['_createToolbarButton'](_0x130431,_0x583121,_0x243eac){const _0x55b241=Qt(_0x130431,_0x530bd8),_0x8ceea3=this['editor']['commands']['get']('trackChanges');_0x55b241['buttonView']['set']({'tooltip':_0x243eac,'label':_0x243eac,'icon':he}),_0x55b241['buttonView']['bind']('isOn')['to'](_0x8ceea3,'value'),_0x55b241['buttonView']['on']('execute',()=>{_0x8ceea3['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x55b241,_0x583121,{'role':'menu'});const _0x124d61=[];for(const _0x16df26 of _0x583121)me(_0x16df26)&&_0x124d61['push'](this['editor']['commands']['get'](_0x16df26['model']['commandName']));const _0x11e5ff=_0x55b241['buttonView'];return _0x11e5ff['actionView']['unbind']('isEnabled'),_0x11e5ff['arrowView']['unbind']('isEnabled'),_0x11e5ff['actionView']['bind']('isEnabled')['to'](_0x8ceea3,'isEnabled'),_0x11e5ff['arrowView']['bind']('isEnabled')['toMany'](_0x124d61,'isEnabled',(..._0x294fee)=>_0x294fee['some'](_0x176f5a=>_0x176f5a)),_0x55b241['on']('execute',_0x527e5f=>{this['editor']['execute'](_0x527e5f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x55b241;}['_createMenuBarMenu'](_0x276bb4,_0x2805c9,_0x380515){const _0x364773=new Yt(_0x276bb4),_0x8c6740=this['editor']['commands']['get']('trackChanges');_0x364773['buttonView']['set']({'label':_0x380515,'icon':he});const _0x532a18=new Zt(_0x276bb4);for(const _0x44c153 of _0x2805c9){if('separator'==_0x44c153['type']){_0x532a18['items']['add'](new Xt(_0x276bb4));continue;}const _0x593b12=new te(_0x276bb4,_0x364773),_0x57b4b4=new _0x397c51(_0x276bb4),_0x15beb8=_0x44c153['model'];_0x57b4b4['bind'](...Object['keys'](_0x15beb8))['to'](_0x15beb8),_0x57b4b4['delegate']('execute')['to'](_0x364773),_0x57b4b4['on']('execute',()=>{this['editor']['execute'](_0x15beb8['commandName']),this['editor']['editing']['view']['focus']();}),_0x593b12['children']['add'](_0x57b4b4),_0x532a18['items']['add'](_0x593b12);}return _0x364773['bind']('isEnabled')['to'](_0x8c6740,'isEnabled'),_0x364773['panelView']['children']['add'](_0x532a18),_0x364773;}['_initializeController'](_0x17bc29){const _0x5be430=this['editor'],_0x2b7a12=_0x5be430['config'],_0x2457a1=_0x5be430['plugins']['get']('Annotations'),_0x2c7d98=_0x5be430['plugins']['get']('CommentsRepository'),_0x4107c5=_0x5be430['plugins']['get']('EditorAnnotations'),_0x4d8123=_0x5be430['plugins']['get'](_0x5983d1)['me'],_0x5e8302=_0x2b7a12['get']('trackChanges')['SuggestionThreadView'],_0x22d68e=_0x2b7a12['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3a215b,CommentThreadInputView:_0x472c0e}=_0x5be430['plugins']['get']('CommentsUI');let _0x3bd8eb,_0x34231f,_0x2add01;this['_annotationViews']['has'](_0x17bc29['id'])?(_0x34231f=this['_annotationViews']['get'](_0x17bc29['id']),_0x3bd8eb=_0x34231f['mainView']):(_0x3bd8eb=new _0x5e8302(_0x5be430['locale'],_0x17bc29,_0x4d8123,{'disableComments':this['_disableComments'],'editorConfig':_0x2b7a12['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2b7a12['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2b7a12['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2b7a12['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2fcf1(_0x2b7a12['get']('locale')),'CommentView':_0x2b7a12['get']('comments')['CommentView'],'CommentsListView':_0x3a215b,'CommentThreadInputView':_0x472c0e,'SuggestionView':_0x22d68e}),_0x3bd8eb['suggestionView']['acceptButton']['on']('execute',()=>{_0x5be430['editing']['view']['focus']();}),_0x3bd8eb['suggestionView']['discardButton']['on']('execute',()=>{_0x5be430['editing']['view']['focus']();}),_0x34231f=_0x2457a1['createAnnotationView'](this['editor']['locale'],_0x3bd8eb),_0x34231f['bind']('isDirty')['to'](_0x3bd8eb,'isDirty'),_0x34231f['bind']('length')['to'](_0x3bd8eb),_0x34231f['bind']('type')['to'](_0x3bd8eb,'type',_0x14851a=>'suggestion-'+_0x14851a),_0x3bd8eb['on']('escape',()=>{_0x2add01['fire']('escape');}),this['_annotationViews']['set'](_0x17bc29['id'],_0x34231f));const _0x106093=_0x2c7d98['createCommentThreadController'](_0x17bc29['commentThread'],_0x3bd8eb),_0x2cfc57=new ae(_0x5be430,_0x17bc29,_0x3bd8eb,_0x106093),_0x2201f2=_0x17bc29['getAllAdjacentSuggestions']()['filter'](_0x99e336=>_0x99e336['isInContent']);_0x3bd8eb['descriptionParts']=_0x5be430['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2201f2),this['_suggestionToController']['set'](_0x17bc29,_0x2cfc57),this['_viewToController']['set'](_0x3bd8eb,_0x2cfc57),_0x2add01=_0x2457a1['createAnnotation']({'view':_0x34231f,'target':()=>{const _0x55502c=[],_0x543ea1=_0x17bc29['getAllAdjacentSuggestions']()['filter'](_0x4ba5c9=>_0x4ba5c9['isInContent']);for(const _0x12867f of _0x543ea1)_0x55502c['push'](..._0x12867f['getMarkers']());return _0x4d4b32(_0x5be430['editing'],_0x55502c);},'type':()=>'suggestion-'+_0x2cfc57['view']['type']}),_0x2c7d98['_bindAnnotationToEditors'](_0x3bd8eb,_0x2add01),_0x2457a1['add'](_0x2add01),_0x4107c5['registerAnnotation'](_0x2add01);}['_destroyController'](_0x308ddd){const _0x79d3a5=this['editor']['plugins']['get']('CommentsRepository'),_0x4baaf8=this['editor']['plugins']['get']('Annotations'),_0x38b52d=this['_suggestionToController']['get'](_0x308ddd),_0x3e862a=_0x38b52d['view'],_0x37f47f=_0x4baaf8['getByInnerView'](_0x3e862a);_0x79d3a5['_unbindEditors'](_0x3e862a),_0x37f47f&&_0x4baaf8['remove'](_0x37f47f),this['_suggestionToController']['delete'](_0x308ddd),this['_viewToController']['delete'](_0x3e862a),_0x38b52d['destroy']();}['_updateController'](_0x5ddcc0){if(!_0x5ddcc0['isInContent']||!this['_suggestionToController']['has'](_0x5ddcc0))return;const _0x19ab56=this['editor']['plugins']['get']('TrackChangesEditing'),_0x387fb7=this['_suggestionToController']['get'](_0x5ddcc0),_0x2a3e35=_0x5ddcc0['getAllAdjacentSuggestions']();_0x387fb7['view']['descriptionParts']=_0x19ab56['descriptionFactory']['getDescriptions'](_0x2a3e35);}['destroy'](){for(const _0xb72456 of this['_suggestionToController']['keys']())this['_destroyController'](_0xb72456);for(const _0x55004a of this['_annotationViews']['values']())_0x55004a['mainView']['destroy']();super['destroy']();}}function me(_0x38c5e){return'model'in _0x38c5e;}class k extends _0x58a0bc{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x44dcd0){this['editor']['plugins']['get'](p)['adapter']=_0x44dcd0;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x11c8b5){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x11c8b5);}['getSuggestions']({skipNotAttached:_0x195b40=!0x1,toJSON:_0x20c296=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x195b40,'toJSON':_0x20c296});}['getSuggestion'](_0x53ce69){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x53ce69);}}const T=['Pagination'];class P extends _0x58a0bc{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4f2eef=this['editor'];if(_0x4f2eef['config']['define']('trackChangesData.editorCreator',_0x2e1ac0=>{const _0xc399ee=_0x4f2eef['model']['document']['getRootNames']()['reduce']((_0x240d01,_0x47aa6f)=>(_0x240d01[_0x47aa6f]='',_0x240d01),{});return _0x4f2eef['constructor']['create'](_0xc399ee,_0x2e1ac0);}),'function'!=typeof _0x4f2eef['config']['get']('trackChangesData')['editorCreator'])throw new _0x4ee7fd('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2ba9df){return N(this['editor'],!0x0,_0x2ba9df);}['getDataWithDiscardedSuggestions'](_0x475904){return N(this['editor'],!0x1,_0x475904);}}class D extends _0x58a0bc{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x106abe){super(_0x106abe),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x15f1f4){return void 0x0!==_0x15f1f4['getRootsAttributes'];}async function N(_0x47f191,_0x9b6ab2,_0x22eea0){const _0x1172e5=_0x4f17fa(_0x47f191,T);_0x1172e5['plugins']['push'](p,D),_0x1172e5['rootsAttributes']=v(_0x47f191)?_0x47f191['getRootsAttributes']():void 0x0;const _0x4a5e9a=document['createDocumentFragment'](),_0x1fe845=_0x47f191['config']['get']('trackChangesData')['editorCreator'],_0x57e437=await _0x1fe845(_0x1172e5,()=>function(_0x36b25f){const _0x1af75b=document['createElement']('div');return _0x36b25f['appendChild'](_0x1af75b),_0x1af75b;}(_0x4a5e9a));!function(_0x20cf04,_0x31b7ef){const _0x1a73e5=_0x20cf04['model']['document']['getRootNames']()['reduce']((_0x235535,_0x1196f1)=>(_0x235535[_0x1196f1]=_0x20cf04['data']['get']({'rootName':_0x1196f1}),_0x235535),{}),_0x1ddb3c=_0x20cf04['plugins']['get']('Users')['users']['map'](_0x47d2eb=>({'id':_0x47d2eb['id'],'name':_0x47d2eb['name']})),_0x3ce849=_0x20cf04['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1bba73=_0x20cf04['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x341cae=_0x31b7ef['plugins']['get']('Users'),_0x43597e=_0x31b7ef['plugins']['get']('TrackChangesEditing'),_0xcde51b=_0x31b7ef['plugins']['get']('CommentsRepository');for(const _0x472209 of _0xcde51b['getCommentThreads']())_0x472209['remove']();for(const _0x442b27 of _0x1ddb3c)_0x341cae['getUser'](_0x442b27['id'])||_0x341cae['addUser'](_0x442b27);_0x341cae['me']||_0x341cae['useAnonymousUser']();for(const _0x5b9436 of _0x1bba73)_0xcde51b['addCommentThread'](_0x5b9436);for(const _0xba5e3c of _0x3ce849)_0x43597e['addSuggestionData'](_0xba5e3c);_0x31b7ef['data']['set'](_0x1a73e5);}(_0x47f191,_0x57e437),_0x57e437['execute'](_0x9b6ab2?'acceptAllSuggestions':'discardAllSuggestions');const _0x3a873f=v(_0x57e437)?_0x57e437['getFullData'](_0x22eea0):_0x57e437['data']['get'](_0x22eea0);return await _0x57e437['destroy'](),_0x3a873f;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x4ba4b5,PendingActions as _0x2e42cd,icons as _0x26ee55}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1a35b0,ObservableMixin as _0x10bfdb,uid as _0x4cf4cc,insertToPriorityArray as _0x45ffc7,priorities as _0x2219d1,logWarning as _0x124f83,getEnvKeystrokeText as _0x4bd46a,FocusTracker as _0x222156,KeystrokeHandler as _0x2e0953,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x273313,View as _0x1c2486,ViewCollection as _0xf17cd7,FocusCycler as _0x2d9018,ViewModel as _0x4ab10e,createDropdown as Qt,SplitButtonView as _0x5b5fce,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x433705}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x106ae5,hashObject as _0x4704f5,surroundingMarkersDetector as _0x280cba,FOCUS_ANNOTATION_KEYSTROKE as _0x61a5af,AriaDescriptionView as _0x593cee,setupThreadKeyboardNavigation as _0xe55352,trimHtml as _0xe1f01c,UserView as _0x5d3b1c,LateFocusButtonView as _0x14e887,getDateTimeFormatter as _0x37339d,getAllMarkersDomElementsSorted as _0x58c05a,sanitizeEditorConfig as _0x3f774b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x49e6c5,LiveRange as _0x1a312e,LivePosition as _0x4317c1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x530c8b,toWidget as _0x2c0c3d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x38eea0,set as _0x43969f,isEqual as _0x11e4b7,unset as _0x467e43,omit as Tt}from'lodash-es';import{Delete as _0x4bb97e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2cfbc4,ShiftEnter as _0x4ecb7f}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x517ee6,_0x3bf32a){super(_0x517ee6),this['_enabledCommands']=_0x3bf32a,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 _0x491a0c of this['editor']['commands']['commands']())_0x491a0c['affectsData']&&!this['_enabledCommands']['has'](_0x491a0c)&&_0x491a0c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x33a00c of this['editor']['commands']['commands']())_0x33a00c['affectsData']&&!this['_enabledCommands']['has'](_0x33a00c)&&_0x33a00c['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x2096aa,_0xb1fbf9){super(_0x2096aa),this['_suggestions']=_0xb1fbf9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4961fe){const _0xc6318d=this['_suggestions']['get'](_0x4961fe);if(!_0xc6318d)throw new _0x1a35b0('track-changes-accept-suggestion-not-found',this);const _0x435a80=_0xc6318d['getRanges']();this['editor']['model']['canEditAt'](_0x435a80)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xc6318d);}}class R extends ts{['_suggestions'];constructor(_0x218181,_0x3fb995){super(_0x218181),this['_suggestions']=_0x3fb995,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x553757){const _0x1e4f3a=this['_suggestions']['get'](_0x553757);if(!_0x1e4f3a)throw new _0x1a35b0('track-changes-discard-suggestion-not-found',this);const _0x3c1d78=_0x1e4f3a['getRanges']();this['editor']['model']['canEditAt'](_0x3c1d78)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1e4f3a);}}function ls(_0x6ec706,_0x318c53){let _0x4fc1da='';return _0x4fc1da+=_0x6ec706['split']('*')['map']((_0x4c1e87,_0x6ed73a)=>_0x6ed73a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4c1e87)+'</span>':nn(_0x4c1e87))['join'](''),_0x318c53&&(_0x4fc1da+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x318c53['value']+'\x22\x20title=\x22'+_0x318c53['title']+'\x22></span>'),_0x4fc1da;}function nn(_0x124d05){const _0x11daa7=document['createElement']('span');return _0x11daa7['innerText']=_0x124d05,_0x11daa7['innerHTML'];}function ss(_0x4f29ec){return _0x4f29ec['sort']((_0x2d163f,_0xd1927d)=>'deletion'==_0x2d163f['type']&&'deletion'!=_0xd1927d['type']?-0x1:'deletion'!=_0x2d163f['type']&&'deletion'==_0xd1927d['type']?0x1:0x0);}function to(_0x4bc1df,_0x248712){let _0x3aeeb6,_0x21f181=0x0;const _0x17dddb=[],_0x3086f7=_0x248712['schema'];for(;_0x21f181<_0x4bc1df['length'];){const _0xcc9b43=_0x4bc1df[_0x21f181],_0x407598=_0x4bc1df[_0x21f181+0x1];_0x3aeeb6||(_0x3aeeb6=_0x248712['createPositionBefore'](_0xcc9b43)),on(_0x248712,_0xcc9b43,_0x407598)||(_0x17dddb['push'](_0x248712['createRange'](_0x3aeeb6,_0x3086f7['isObject'](_0xcc9b43)?_0x248712['createPositionAfter'](_0xcc9b43):_0x248712['createPositionAt'](_0xcc9b43,'end'))),_0x3aeeb6=null),_0x21f181++;}return _0x17dddb;}function on(_0x21809a,_0x59095c,_0x568ae9){if(!_0x568ae9)return!0x1;const _0x5085cc=_0x21809a['createPositionAfter'](_0x59095c),_0x5727d2=_0x21809a['createPositionBefore'](_0x568ae9);return _0x5085cc['isTouching'](_0x5727d2);}function rs(_0x4aff76,_0x283890,_0x38c858){for(;_0x38c858['length'];){const _0x4c2da2=_0x38c858['splice'](0x0,0x64);_0x4aff76['change'](()=>{for(const _0x9ef91f of _0x4c2da2)_0x9ef91f['isInContent']&&_0x283890['execute'](_0x9ef91f['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x1cba6e,_0x2b41af,_0x58da39){super(_0x1cba6e),this['_command']=_0x2b41af,this['_suggestions']=_0x58da39,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1bd658=Array['from'](this['_suggestions']['values']())['some'](_0x1c9624=>_0x1c9624['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1bd658;}['execute'](){const _0x113610=ss(Array['from'](this['_suggestions']['values']()));for(const _0x337539 of _0x113610){const _0x55bcd4=_0x337539['getRanges']();if(!this['editor']['model']['canEditAt'](_0x55bcd4))return;}rs(this['editor']['model'],this['_command'],_0x113610);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x6f4577,_0x50ca91,_0x49f4b3){super(_0x6f4577),this['_command']=_0x50ca91,this['_suggestions']=_0x49f4b3,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2aac41=this['editor']['model']['document']['selection'],_0x2ef696=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x49b2e9,_0x2c2d22){const _0x562565=Array['from'](_0x49b2e9['getRanges']()),_0x5304b0=new Set();for(const _0x1af2f9 of _0x2c2d22)if(_0x1af2f9['isInContent']){for(const _0x214668 of _0x562565)for(const _0x244ba1 of _0x1af2f9['getRanges']())(_0x214668['isIntersecting'](_0x244ba1)||_0x49b2e9['isCollapsed']&&!_0x1af2f9['isMultiRange']&&_0x1af2f9['next']&&_0x244ba1['end']['isTouching'](_0x214668['start']))&&_0x5304b0['add'](_0x1af2f9);}return _0x5304b0;}(_0x2aac41,_0x2ef696),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x28fd09=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2d4929 of _0x28fd09){const _0x5a9167=_0x2d4929['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5a9167))return;}rs(this['editor']['model'],this['_command'],_0x28fd09);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x10bfdb(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x181954,_0x385c4f){super(),this['id']=_0x385c4f['id'],this['type']=_0x385c4f['type'],this['subType']=_0x385c4f['subType']||null,this['author']=_0x385c4f['author'],this['creator']=_0x385c4f['creator']||_0x385c4f['author'],this['isExternal']=Boolean(_0x385c4f['attributes']&&_0x385c4f['attributes']['@external']),this['data']=null,this['_model']=_0x181954,this['_onAccept']=_0x385c4f['onAccept'],this['_onDiscard']=_0x385c4f['onDiscard'],this['_onAttributesChange']=_0x385c4f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x385c4f['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 _0x311b21=this;for(;_0x311b21['previous'];)_0x311b21=_0x311b21['previous'];return _0x311b21;}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'](_0x38f4d9){this['_markerNames']['add'](_0x38f4d9);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x51cef0=>this['_model']['markers']['get'](_0x51cef0))['filter'](_0xd96e3e=>_0xd96e3e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1309fe=>{for(const _0x174d9b of this['getMarkers']())_0x1309fe['removeMarker'](_0x174d9b);}),this['_markerNames']['clear']();}['removeMarker'](_0x2f30bc){this['_model']['change'](_0x2b1424=>{_0x2b1424['removeMarker'](_0x2f30bc);}),this['_markerNames']['delete'](_0x2f30bc);}['addRange'](_0x3f6f42){const _0x5e729f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5e729f),this['_model']['change'](_0x2897fa=>{_0x2897fa['addMarker'](_0x5e729f,{'range':_0x3f6f42,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x401df8){for(const _0x58dff2 of this['getRanges']())if(_0x58dff2['isIntersecting'](_0x401df8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x123576=>_0x123576['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x508be5,_0x42993c)=>[..._0x508be5,..._0x42993c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x27ecf8=this['getRanges']();if(0x1!=_0x27ecf8['length'])return null;const _0x103ec4=_0x27ecf8[0x0],_0xe03844=_0x103ec4['start']['nodeAfter'],_0x8c0377=_0x103ec4['end']['nodeBefore'];return _0xe03844 instanceof _0x49e6c5?_0xe03844!=_0x8c0377?null:_0xe03844: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 _0x4a3880=[];let _0x5d1d49=this['head'];for(;_0x5d1d49;)_0x4a3880['push'](_0x5d1d49),_0x5d1d49=_0x5d1d49['next'];return _0x4a3880;}['setAttribute'](_0x3672a3,_0x39d441){const _0x22543f=_0x38eea0(this['attributes']);_0x43969f(_0x22543f,_0x3672a3,_0x39d441),_0x11e4b7(_0x22543f,this['attributes'])||(this['attributes']=_0x22543f,this['_onAttributesChange'](_0x22543f));}['removeAttribute'](_0x22ce1e){const _0xbb3f6f=_0x38eea0(this['attributes']);_0x467e43(_0xbb3f6f,_0x22ce1e),_0x11e4b7(_0xbb3f6f,this['attributes'])||(this['attributes']=_0xbb3f6f,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 _0x4cf4cc()['substr'](0x1,0x5);}}function o(_0x32c8f9,_0x2548a1,_0x44483e){const t=_0x32c8f9['t'];switch(_0x2548a1){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x44483e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x44483e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x44483e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x44483e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x44483e);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',_0x44483e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x44483e);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x44483e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x44483e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x44483e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x44483e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x44483e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x44483e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x44483e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x44483e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x44483e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x44483e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x44483e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x44483e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x44483e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x44483e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x44483e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x44483e);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'},_0x44483e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x44483e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x44483e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x44483e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x44483e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x44483e);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'},_0x44483e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x44483e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x44483e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x44483e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x44483e);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'},_0x44483e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x44483e);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'},_0x44483e);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'},_0x44483e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x44483e);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'},_0x44483e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x44483e);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'},_0x44483e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x44483e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x44483e);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'},_0x44483e);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x44483e);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x44483e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x44483e);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'},_0x44483e);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'},_0x44483e);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'},_0x44483e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2548a1;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x400c0d,_0xacceb7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x400c0d,this['_locale']=_0xacceb7;}['getDescriptions'](_0x254211){const _0x3ce6f7=[],_0x57edf6=new Set(),_0x213eb3=new Set();for(let _0x5e5585=0x0;_0x5e5585<_0x254211['length'];_0x5e5585++){const _0x579295=_0x254211[_0x5e5585];if(!_0x579295['isInContent'])continue;const _0x3b1f39=this['_handleCustomCallbackDescription'](_0x579295);if(_0x3b1f39){if(null!=_0x579295['subType']){if(_0x57edf6['has'](_0x579295['subType']))continue;_0x57edf6['add'](_0x579295['subType']);}_0x3ce6f7['push'](_0x3b1f39);}else{if('attribute'!=_0x579295['type'])'insertion'!=_0x579295['type']&&'deletion'!=_0x579295['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3ce6f7,_0x579295,_0x254211[_0x5e5585+0x1]);else{const _0x3bcd81=_0x579295['data']['key'];if(_0x213eb3['has'](_0x3bcd81))continue;_0x213eb3['add'](_0x579295['data']['key']),_0x3bcd81==m?this['_handleRenameSuggestionDescription'](_0x3ce6f7,_0x579295):this['_handleAttributeSuggestionDescription'](_0x3ce6f7,_0x579295);}}}return this['_resolveDescriptionItems'](_0x3ce6f7);}['registerDescriptionCallback'](_0x418626){this['_customCallbacks']['push'](_0x418626);}['registerElementLabel'](_0x1de7ac,_0x2d0ea1,_0x3852be=_0x2219d1['normal']){'function'==typeof _0x1de7ac?_0x45ffc7(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1de7ac,'label':_0x2d0ea1,'priority':_0x3852be}):this['_itemLabels']['set'](_0x1de7ac,_0x2d0ea1);}['registerAttributeLabel'](_0x11f80b,_0x5e2f45){this['_attributeLabels']['set'](_0x11f80b,_0x5e2f45);}['getItemLabel'](_0x25ee4f,_0x309a85=0x1){let _0xe5a6a2;for(const _0x4e914f of this['_itemLabelsCallbacks'])if(_0x4e914f['matchingCallback'](_0x25ee4f)){_0xe5a6a2=_0x4e914f['label'];break;}return _0xe5a6a2||(_0xe5a6a2=this['_itemLabels']['get'](_0x25ee4f['name'])),_0xe5a6a2?_0xe5a6a2(_0x309a85):0x1!==_0x309a85?_0x309a85+'\x20'+_0x25ee4f['name']+'s':''+_0x25ee4f['name'];}['_addDescriptionItems'](_0x54ce2c,_0xfa48c4){const _0x2d2b27=_0xfa48c4['getFirstRange']()['getWalker'](),_0xfdb781='insertion'==_0xfa48c4['type']?'add':'remove';for(const _0x253383 of _0x2d2b27){const _0x156156=_0x253383['item'],_0x4730c1=_0x54ce2c[_0x54ce2c['length']-0x1];if(_0x156156['is']('$textProxy'))_0x4730c1&&_0x4730c1['type']['indexOf']('Container')>-0x1&&_0x54ce2c['pop'](),_0x4730c1&&'text'==_0x4730c1['type']?_0x4730c1[_0xfdb781]+=_0x156156['data']:_0x54ce2c['push']({'type':'text','add':'add'==_0xfdb781?_0x156156['data']:'','remove':'remove'==_0xfdb781?_0x156156['data']:''});else{if(this['_schema']['isObject'](_0x156156)){const _0x589282=_0x156156;if(_0x4730c1&&_0x4730c1['type']['indexOf']('Container')>-0x1&&_0x54ce2c['pop'](),'elementEnd'==_0x253383['type'])continue;_0x4730c1&&_0x4730c1['type']==_0xfdb781+'Object'&&_0x4730c1['element']['name']==_0x589282['name']?_0x4730c1['quantity']++:_0x54ce2c['push']({'type':_0xfdb781+'Object','element':_0x589282,'quantity':0x1}),_0x2d2b27['skip'](_0xdcdbd0=>!('elementEnd'==_0xdcdbd0['type']&&_0xdcdbd0['item']==_0x156156));}else{if(this['_schema']['checkChild'](_0x156156,'$text')||_0x156156['is']('element','softBreak')){const _0x5e1dbf=_0x156156;if('add'==_0xfdb781&&'elementStart'==_0x253383['type']||'remove'==_0xfdb781&&'elementEnd'==_0x253383['type'])continue;if(_0x4730c1&&-0x1==_0x4730c1['type']['indexOf']('Container')){'text'==_0x4730c1['type']&&(_0x4730c1[_0xfdb781]+='\x0a');continue;}let _0x886b5c;if(_0x886b5c='add'==_0xfdb781?_0x5e1dbf['nextSibling']&&!this['_schema']['isObject'](_0x5e1dbf['nextSibling'])?_0x5e1dbf['nextSibling']:null:_0x5e1dbf['previousSibling']&&!this['_schema']['isObject'](_0x5e1dbf['previousSibling'])?_0x5e1dbf['previousSibling']:null,_0x5e1dbf['isEmpty']||_0x886b5c&&_0x886b5c['isEmpty']){const _0x3eaa41=_0x886b5c&&_0x886b5c['isEmpty']?_0x886b5c:_0x5e1dbf;_0x4730c1&&_0x4730c1['type']==_0xfdb781+'EmptyContainer'&&_0x4730c1['element']['name']==_0x3eaa41['name']?_0x4730c1['quantity']++:_0x54ce2c['push']({'type':_0xfdb781+'EmptyContainer','element':_0x3eaa41,'quantity':0x1});}else _0x54ce2c['push']({'type':_0xfdb781+'Container','element':_0x5e1dbf});}}}}}['_resolveDescriptionItems'](_0x19edf2){const _0x2cd287=this['_locale'],_0x552c04=[],_0x2b5d4b=[],_0x1d5e3a=[];for(const _0x5e2821 of _0x19edf2)switch(_0x5e2821['type']){case'text':if(_0x5e2821['add']=_0x5e2821['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5e2821['remove']=_0x5e2821['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5e2821['add']&&''!=_0x5e2821['remove']){_0x552c04['push']({'type':'replace','content':o(_0x2cd287,'REPLACE_TEXT',['\x22'+_0x5e2821['remove']+'\x22','\x22'+_0x5e2821['add']+'\x22'])});continue;}if(null!=_0x5e2821['add']['match'](/^ +$/)){_0x552c04['push']({'type':'insertion','content':o(_0x2cd287,'*Insert:*\x20%0',o(_0x2cd287,'ELEMENT_SPACE',_0x5e2821['add']['length']))});continue;}if(null!=_0x5e2821['remove']['match'](/^ +$/)){_0x552c04['push']({'type':'deletion','content':o(_0x2cd287,'*Remove:*\x20%0',o(_0x2cd287,'ELEMENT_SPACE',_0x5e2821['remove']['length']))});continue;}if(''!=_0x5e2821['add']){_0x552c04['push']({'type':'insertion','content':o(_0x2cd287,'*Insert:*\x20%0','\x22'+_0x5e2821['add']+'\x22')});continue;}_0x552c04['push']({'type':'deletion','content':o(_0x2cd287,'*Remove:*\x20%0','\x22'+_0x5e2821['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x552c04['push']({'type':'insertion','content':o(_0x2cd287,'*Insert:*\x20%0',this['getItemLabel'](_0x5e2821['element'],_0x5e2821['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x552c04['push']({'type':'deletion','content':o(_0x2cd287,'*Remove:*\x20%0',this['getItemLabel'](_0x5e2821['element'],_0x5e2821['quantity']))});continue;case'addContainer':_0x552c04['push']({'type':'insertion','content':o(_0x2cd287,'*Split:*\x20%0',this['getItemLabel'](_0x5e2821['element'],_0x5e2821['quantity']))});continue;case'removeContainer':_0x552c04['push']({'type':'deletion','content':o(_0x2cd287,'*Merge:*\x20%0',this['getItemLabel'](_0x5e2821['element'],_0x5e2821['quantity']))});continue;case'addFormat':_0x2b5d4b['push'](_0x5e2821['key']);continue;case'removeFormat':_0x1d5e3a['push'](_0x5e2821['key']);continue;default:_0x552c04['push'](_0x5e2821);}if(_0x2b5d4b['length']){const _0x5732ac=_0x2b5d4b['map'](_0x5e0bd4=>this['_attributeLabels']['has'](_0x5e0bd4)?this['_attributeLabels']['get'](_0x5e0bd4):_0x5e0bd4)['join'](',\x20');_0x552c04['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5732ac)});}if(_0x1d5e3a['length']){const _0x3f6ed7=_0x1d5e3a['map'](_0x492cec=>this['_attributeLabels']['has'](_0x492cec)?this['_attributeLabels']['get'](_0x492cec):_0x492cec)['join'](',\x20');_0x552c04['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3f6ed7)});}return _0x552c04;}['_handleCustomCallbackDescription'](_0x534e63){for(const _0x42e00d of this['_customCallbacks']){const _0x149627=_0x42e00d(_0x534e63);if(_0x149627&&'type'in _0x149627)return _0x149627;}}['_handleAttributeSuggestionDescription'](_0x2d2f4b,_0x35bf0b){const _0x5f50d0=_0x35bf0b['data'],_0x2852a8=void 0x0===_0x5f50d0['newValue']?'removeFormat':'addFormat';_0x2d2f4b['push']({'type':_0x2852a8,'key':_0x5f50d0['key']});}['_handleRenameSuggestionDescription'](_0x4dc55b,_0x541007){_0x4dc55b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x541007['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3c3e0d,_0x51ac9b,_0xba3cc6){if(this['_addDescriptionItems'](_0x3c3e0d,_0x51ac9b),_0xba3cc6&&_0xba3cc6['getFirstRange']()&&!_0x51ac9b['getFirstRange']()['end']['isEqual'](_0xba3cc6['getFirstRange']()['start'])){const _0x53e7c2=_0x3c3e0d[_0x3c3e0d['length']-0x1],_0x2dc599='insertion'==_0x51ac9b['type']?'add':'remove';_0x53e7c2&&'text'==_0x53e7c2['type']&&(_0x53e7c2[_0x2dc599]+='\x0a');}}}class V extends _0x4ba4b5{['afterInit'](){const _0x51c1a2=this['editor'],_0x1bb2fc=_0x51c1a2['plugins']['get']('TrackChangesEditing');_0x51c1a2['commands']['get']('showAIAssistant')&&_0x1bb2fc['enableCommand']('showAIAssistant');}}class U extends _0x4ba4b5{['afterInit'](){const _0x592f6d=this['editor'],_0x3be68a=_0x592f6d['locale'];if(!_0x592f6d['plugins']['has']('AlignmentEditing'))return;const _0x171e25=_0x592f6d['plugins']['get']('TrackChangesEditing');_0x171e25['enableDefaultAttributesIntegration']('alignment'),_0x171e25['registerBlockAttribute']('alignment'),_0x171e25['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3be68a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f8338=this['editor'],_0x1249f4=_0x1f8338['locale'];_0x1f8338['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dfa8d=>{if('formatBlock'!=_0x4dfa8d['type'])return;const {data:_0x392e44}=_0x4dfa8d;if(_0x392e44&&'alignment'==_0x392e44['commandName']){const _0x298e59=_0x392e44['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1249f4,'*Format:*\x20%0',function(_0x1fbef1){switch(_0x1fbef1){case'left':return o(_0x1249f4,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1249f4,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1249f4,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1249f4,'FORMAT_JUSTIFY_TEXT');}}(_0x298e59))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4ba4b5{['afterInit'](){const _0x5d0f68=this['editor'],_0x269500=_0x5d0f68['plugins']['get']('TrackChangesEditing'),_0x234f99=_0x5d0f68['locale'];for(const _0x52c6b0 of ti){if(!_0x5d0f68['plugins']['has'](_0x52c6b0))continue;const _0xa5f234=_0x52c6b0['slice'](0x0,-0x7)['toLowerCase'](),_0x3d1d4a='FORMAT_'+_0xa5f234['toUpperCase']();_0x269500['enableDefaultAttributesIntegration'](_0xa5f234),_0x269500['registerInlineAttribute'](_0xa5f234),_0x269500['descriptionFactory']['registerAttributeLabel'](_0xa5f234,o(_0x234f99,_0x3d1d4a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d7686=this['editor'],_0xc7fc4c=_0x2d7686['locale'],_0x2bd578=_0x2d7686['plugins']['get']('TrackChangesEditing');function _0x353725(_0x12e61f,_0x20d2a8){_0x2bd578['descriptionFactory']['registerDescriptionCallback'](_0x5ec747=>{if('formatInline'!=_0x5ec747['type'])return;const {data:_0x103407}=_0x5ec747;return _0x103407&&_0x103407['commandName']===_0x12e61f?_0x103407['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc7fc4c,'*Format:*\x20%0',_0x20d2a8)}:{'type':'format','content':o(_0xc7fc4c,'*Remove\x20format:*\x20%0',_0x20d2a8)}:void 0x0;});}_0x353725('bold',o(_0xc7fc4c,'FORMAT_BOLD')),_0x353725('italic',o(_0xc7fc4c,'FORMAT_ITALIC')),_0x353725('underline',o(_0xc7fc4c,'FORMAT_UNDERLINE')),_0x353725('code',o(_0xc7fc4c,'FORMAT_CODE')),_0x353725('strikethrough',o(_0xc7fc4c,'FORMAT_STRIKETHROUGH')),_0x353725('subscript',o(_0xc7fc4c,'FORMAT_SUBSCRIPT')),_0x353725('superscript',o(_0xc7fc4c,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4ba4b5{['afterInit'](){const _0x112042=this['editor'],_0xa0e274=_0x112042['locale'];if(!_0x112042['plugins']['has']('BlockQuoteEditing'))return;const _0x5d099b=_0x112042['plugins']['get']('TrackChangesEditing'),_0x52ef35=this['editor']['commands']['get']('blockQuote');_0x5d099b['enableCommand']('blockQuote',(_0x2ac8f7,_0x239e32={})=>{const _0xc90c78=this['editor']['model']['document']['selection'],_0x502d96=_0x239e32&&void 0x0!==_0x239e32['forceValue']?_0x239e32['forceValue']:!_0x52ef35['value'];let _0x159ced=[];if(_0x502d96){const _0x260966=Array['from'](_0xc90c78['getSelectedBlocks']())['filter'](_0x7a8e38=>oo(_0x7a8e38)||function(_0x5d2a74,_0x43f79f){const _0x4a818b=_0x43f79f['checkChild'](_0x5d2a74['parent'],'blockQuote'),_0x2f09f1=_0x43f79f['checkChild'](['$root','blockQuote'],_0x5d2a74);return _0x4a818b&&_0x2f09f1;}(_0x7a8e38,this['editor']['model']['schema']));_0x159ced=to(_0x260966,_0x112042['model']);}else{const _0x10880c=Array['from'](_0xc90c78['getSelectedBlocks']())['filter'](_0x314d59=>oo(_0x314d59));_0x159ced=to(_0x10880c,_0x112042['model']);}_0x112042['model']['change'](()=>{for(const _0x3fb06a of _0x159ced)_0x5d099b['markBlockFormat'](_0x3fb06a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x502d96}]});});}),_0x5d099b['descriptionFactory']['registerDescriptionCallback'](_0x18534a=>{const {data:_0x491933}=_0x18534a;if(_0x491933&&'blockQuote'==_0x491933['commandName']){const _0x4fe5e6=o(_0xa0e274,'ELEMENT_BLOCK_QUOTE');return _0x491933['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa0e274,'*Set\x20format:*\x20%0',_0x4fe5e6)}:{'type':'format','content':o(_0xa0e274,'*Remove\x20format:*\x20%0',_0x4fe5e6)};}});}}function oo(_0x36a681){return'blockQuote'==_0x36a681['parent']['name'];}class L extends _0x4ba4b5{['afterInit'](){const _0xe8669=this['editor'];_0xe8669['plugins']['has']('CaseChange')&&(_0xe8669['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xe8669['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xe8669['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4ba4b5{['afterInit'](){const _0x643701=this['editor'];_0x643701['commands']['get']('ckbox')&&_0x643701['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x4ba4b5{['afterInit'](){const _0x4f9482=this['editor'];if(!_0x4f9482['plugins']['has']('CodeBlock'))return;const _0x452540=_0x4f9482['plugins']['get']('TrackChangesEditing'),_0x53014e=_0x4f9482['locale'],_0x589e39=_0x4f9482['config']['get']('codeBlock')['languages'],_0x5e2874=_0x4f9482['commands']['get']('codeBlock');_0x452540['enableCommand']('indentCodeBlock'),_0x452540['enableCommand']('outdentCodeBlock'),_0x452540['enableCommand']('codeBlock',(_0x74496a,_0x14e6c4={})=>{const _0xfb1e7b=_0x4f9482['model'],_0x3d8fe3=_0x4f9482['model']['document']['selection'],_0x120def=_0x14e6c4&&void 0x0!==_0x14e6c4['forceValue']?_0x14e6c4['forceValue']:!_0x5e2874['value'];let _0x2b15e7;_0x14e6c4['language']||(_0x14e6c4['language']=_0x589e39[0x0]['language']),_0x2b15e7=_0x120def?Array['from'](_0x3d8fe3['getSelectedBlocks']())['filter'](_0x1697a4=>eo(_0x1697a4)||function(_0x2a4696,_0x38ab7e){if(_0x2a4696['is']('rootElement')||_0x38ab7e['isLimit'](_0x2a4696))return!0x1;return _0x38ab7e['checkChild'](_0x2a4696['parent'],'codeBlock');}(_0x1697a4,_0xfb1e7b['schema'])):Array['from'](_0x3d8fe3['getSelectedBlocks']())['filter'](_0x45f00d=>eo(_0x45f00d));const _0xfb6cf4=to(_0x2b15e7,_0xfb1e7b);_0xfb1e7b['change'](()=>{for(const _0xe2dec2 of _0xfb6cf4)_0x452540['markBlockFormat'](_0xe2dec2,{'commandName':'codeBlock','commandParams':[{..._0x14e6c4,'forceValue':_0x120def}],'formatGroupId':'blockName'});});}),(_0x452540['descriptionFactory']['registerElementLabel']('codeBlock',_0x54fadf=>o(_0x53014e,'ELEMENT_CODE_BLOCK',_0x54fadf)),_0x452540['descriptionFactory']['registerDescriptionCallback'](_0x4a5837=>{if('formatBlock'!=_0x4a5837['type'])return;const _0x3572fc=_0x53014e['t'],{data:_0x34f1fd}=_0x4a5837;if(!_0x34f1fd||'codeBlock'!=_0x34f1fd['commandName'])return;const _0x1520be=_0x34f1fd['commandParams'][0x0]['language'],_0x2a088d=_0x3572fc(_0x589e39['find'](_0x18222e=>_0x18222e['language']===_0x1520be)['label'])['toLowerCase']();return _0x34f1fd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53014e,'*Set\x20format:*\x20%0',o(_0x53014e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2a088d+')')}:{'type':'format','content':o(_0x53014e,'*Remove\x20format:*\x20%0',o(_0x53014e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x42ecd4){return'codeBlock'==_0x42ecd4['name'];}class q extends _0x4ba4b5{['afterInit'](){const _0x4bab85=this['editor'];if(!_0x4bab85['plugins']['has']('CommentsEditing'))return;_0x4bab85['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x513c55,_0x40b937,_0xc5d347){const _0x5a7e46=[];for(const _0x5a7832 of _0x40b937['getItems']())_0x5a7832['hasAttribute'](_0x513c55)&&_0x5a7e46['push'](_0xc5d347['createRangeOn'](_0x5a7832));return _0x5a7e46;}function _e(_0x38d08f,_0x27fc9d,{showActiveMarker:_0xabfecf=!0x0}={}){const _0x96b8c3=_0x38d08f['plugins']['get']('TrackChangesEditing');return(_0x59a53f,_0x3d038d,_0x31bcfa)=>{if(!_0x31bcfa['consumable']['test'](_0x3d038d['markerRange'],_0x59a53f['name']))return;const _0x2fa740=_0x3d038d['markerRange']['getWalker'](),_0x143328=_0x3d038d['markerRange']['start'],_0x1e8f94=_0x38d08f['model']['schema'];let _0x29357d=null,_0x51acfb=null,_0x4d7b19=!0x1,_0x95f27=!0x1;for(const _0x1331fc of _0x2fa740){const _0x544caf=_0x1331fc['item'];_0x4d7b19=_0x4d7b19||_0x1e8f94['isContent'](_0x544caf);const _0x39592d=_0x31bcfa['mapper']['toViewElement'](_0x544caf);if(_0x39592d&&_0x39592d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1331fc['type']&&(_0x1e8f94['isBlock'](_0x544caf)&&!_0x1e8f94['isLimit'](_0x544caf)&&(_0x544caf['nextSibling']||_0x143328['isAtEnd']?_0x29357d&&_0x29357d['parent']==_0x544caf||(_0x29357d=_0x544caf,_0x60a8b7(_0x1331fc['previousPosition']),_0x95f27=!0x0):_0x51acfb=_0x51acfb||_0x1331fc['previousPosition']));}function _0x60a8b7(_0x3cad45){const {authorId:_0x247277}=_0x96b8c3['_splitMarkerName'](_0x3d038d['markerName']),_0x1a0e84=_0x31bcfa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x27fc9d,'data-author-id':_0x247277}),_0x1010d3=_0x31bcfa['mapper']['toViewPosition'](_0x3cad45);_0xabfecf&&_0x96b8c3['activeMarkers']['includes'](_0x3d038d['markerName'])&&_0x31bcfa['writer']['addClass']('ck-suggestion-marker--active',_0x1a0e84),_0x31bcfa['writer']['insert'](_0x1010d3,_0x1a0e84),_0x31bcfa['mapper']['bindElementToMarker'](_0x1a0e84,_0x3d038d['markerName']);}_0x4d7b19||_0x95f27||!_0x51acfb||_0x60a8b7(_0x51acfb);};}class z extends _0x4ba4b5{static get['requires'](){return[_0x4bb97e];}['init'](){const _0x206c2=this['editor'],_0x15c249=_0x206c2['plugins']['get']('TrackChangesEditing');_0x15c249['enableCommand']('delete');const _0x4e669c=_0x206c2['commands']['get']('deleteForward');_0x15c249['enableCommand']('deleteForward',(_0x2f0c49,_0x3fee00={})=>{const _0x278b5f=_0x206c2['model']['createSelection'](_0x206c2['model']['document']['selection']);_0x278b5f['isCollapsed']&&_0x206c2['model']['modifySelection'](_0x278b5f,{'direction':'forward','unit':_0x3fee00['unit']});const _0x388e2e=_0x278b5f['getFirstRange'](),_0x7dc25e=_0x1a312e['fromRange'](_0x388e2e);let _0x1e808e;_0x2f0c49(_0x3fee00),_0x1e808e='$graveyard'==_0x7dc25e['root']['rootName']?_0x206c2['model']['createRange'](_0x388e2e['start']):_0x206c2['model']['createRange'](_0x7dc25e['start'],_0x7dc25e['end']),_0x7dc25e['detach'](),_0x206c2['model']['enqueueChange'](_0x4e669c['buffer']['batch'],_0x36fc01=>{_0x4e669c['buffer']['lock'](),_0x36fc01['setSelection'](_0x36fc01['createRange'](_0x1e808e['end'])),_0x4e669c['buffer']['unlock']();});}),_0x206c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x206c2,'merge'),{'priority':'high'}),_0x206c2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x37fe73,_0x1bc603,_0x3531c2)=>{_0x3531c2['options']['showSuggestionHighlights']&&_e(_0x206c2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x37fe73,_0x1bc603,_0x3531c2);},{'priority':'high'}),_0x206c2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x245cc2,_0x2d7236,_0xfec1c7)=>{const _0x16669e=_0xfec1c7['mapper']['markerNameToElements'](_0x2d7236['markerName']);if(_0x16669e){for(const _0xb2b5e0 of _0x16669e)_0xb2b5e0['is']('uiElement')&&(_0xfec1c7['mapper']['unbindElementFromMarkerName'](_0xb2b5e0,_0x2d7236['markerName']),_0xfec1c7['writer']['remove'](_0xb2b5e0));}},{'priority':'high'});}}class K extends _0x4ba4b5{['afterInit'](){const _0x57325a=this['editor'];if(!_0x57325a['plugins']['has']('ListEditing'))return;const _0x1622d6=_0x57325a['locale'],_0x1718c6=_0x57325a['plugins']['get']('TrackChangesEditing'),_0x14c69f=_0x57325a['plugins']['has']('TodoListEditing'),_0x2f2718=!!_0x57325a['config']['get']('list.multiBlock');function _0x8f97da(_0x2cb342){return{'type':'format','content':''+o(_0x1622d6,'*Set\x20format:*\x20%0',_0x2cb342)};}function _0x5d09b2(_0x3b0af0){return{'type':'format','content':''+o(_0x1622d6,'*Remove\x20format:*\x20%0',_0x3b0af0)};}_0x1718c6['enableDefaultAttributesIntegration']('numberedList'),_0x1718c6['enableDefaultAttributesIntegration']('bulletedList'),_0x1718c6['enableDefaultAttributesIntegration']('customNumberedList'),_0x1718c6['enableDefaultAttributesIntegration']('customBulletedList'),_0x1718c6['enableDefaultAttributesIntegration']('indentList'),_0x1718c6['enableDefaultAttributesIntegration']('outdentList'),_0x1718c6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1718c6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1718c6['registerBlockAttribute']('listItemId'),_0x1718c6['registerBlockAttribute']('listType'),_0x1718c6['registerBlockAttribute']('listIndent'),_0x2f2718&&(_0x1718c6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1718c6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x14c69f&&(_0x1718c6['enableDefaultAttributesIntegration']('todoList'),_0x1718c6['enableDefaultAttributesIntegration']('checkTodoList'),_0x1718c6['registerBlockAttribute']('todoListChecked'),_0x1718c6['descriptionFactory']['registerDescriptionCallback'](_0x54da96=>{const {data:_0x48ceed}=_0x54da96;if(_0x48ceed&&'todoListChecked'==_0x48ceed['key'])return{'type':'format','content':_0x48ceed['newValue']?o(_0x1622d6,'*Check\x20item*'):o(_0x1622d6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x307cb4=>{if(_0x307cb4['batch']['isUndo'])return!0x1;let _0x58d492=!0x1;const _0x473c5f=_0x1718c6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23924f=>'todoListChecked'===_0x1718c6['_getAttributeKey'](_0x23924f));for(const _0x16d2c8 of _0x473c5f){'todo'!=_0x16d2c8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1718c6['_findSuggestions'](_0x16d2c8['getFirstRange'](),'attribute')['find'](_0x2dff43=>'listType'===_0x1718c6['_getAttributeKey'](_0x2dff43['suggestion']))||(_0x307cb4['removeMarker'](_0x16d2c8['getFirstMarker']()),_0x58d492=!0x0));}return _0x58d492;})),_0x1718c6['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1622d6,'FORMAT_INDENT'));const _0xfb8c63={'type':'format','content':''};_0x1718c6['descriptionFactory']['registerDescriptionCallback'](_0x3a6a08=>{const {data:_0x1f37fb}=_0x3a6a08;if(!_0x1f37fb||'listType'!=_0x1f37fb['key'])return;let _0x53fa27=_0x3a6a08['head'];for(;_0x53fa27;){if(_0x53fa27['data']&&(('listStyle'==_0x53fa27['data']['key']||'listMarkerStyle'==_0x53fa27['data']['key'])&&(_0x53fa27['data']['newValue']&&'default'!=_0x53fa27['data']['newValue']||'default'!=_0x53fa27['data']['oldValue']&&!_0x1f37fb['newValue'])||!_0x2f2718&&_0x53fa27['data']['key']==m))return _0xfb8c63;_0x53fa27=_0x53fa27['next'];}if(null==_0x1f37fb['newValue'])switch(_0x1f37fb['oldValue']){case'bulleted':return _0x5d09b2(o(_0x1622d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5d09b2(o(_0x1622d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5d09b2(o(_0x1622d6,'ELEMENT_TODO_LIST'));}switch(_0x1f37fb['newValue']){case'bulleted':return _0x8f97da(o(_0x1622d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x8f97da(o(_0x1622d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x8f97da(o(_0x1622d6,'ELEMENT_TODO_LIST'));}}),_0x1718c6['descriptionFactory']['registerDescriptionCallback'](_0xd4e45f=>{const {data:_0x55aa1f}=_0xd4e45f;if(_0x55aa1f&&'listIndent'==_0x55aa1f['key'])return null==_0x55aa1f['newValue']||null==_0x55aa1f['oldValue']&&0x0==_0x55aa1f['newValue']?_0xfb8c63:void 0x0;}),_0x1718c6['descriptionFactory']['registerDescriptionCallback'](_0xe3b61a=>{if('attribute'!=_0xe3b61a['type'])return;const {data:_0x5a399e}=_0xe3b61a;if(!_0x5a399e||'listItemId'!=_0x5a399e['key'])return;const _0x48fe15=Ee(_0xe3b61a);return'newValue'==_0x48fe15?{'type':'format','content':o(_0x1622d6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x48fe15?{'type':'format','content':o(_0x1622d6,'*Split:*\x20list\x20item')}:_0xfb8c63;}),_0x57325a['model']['document']['registerPostFixer'](_0x230669=>this['listItemIdFixer'](_0x230669)),_0x57325a['model']['document']['registerPostFixer'](_0x4311bd=>this['noTrackChangesFixer'](_0x4311bd)),_0x57325a['model']['document']['on']('change:data',(_0x1e583a,_0x150eb4)=>{if(_0x150eb4['isUndo']||!_0x150eb4['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4afaa1){if(_0x4afaa1['batch']['isUndo']||!_0x4afaa1['batch']['isLocal'])return!0x1;let _0x1b643f=!0x1;const _0x2c86b8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3919d7=>_0x3919d7['data']&&'listItemId'==_0x3919d7['data']['key'])['filter'](_0x2ad595=>_0x2ad595['data']['newValue']&&_0x2ad595['data']['oldValue']);for(const _0xa89659 of _0x2c86b8)Ee(_0xa89659)||(_0x4afaa1['removeMarker'](_0xa89659['getFirstMarker']()),_0x1b643f=!0x0);return _0x1b643f;}['noTrackChangesFixer'](_0x1e87d4){if(_0x1e87d4['batch']['isUndo']||!_0x1e87d4['batch']['isLocal'])return!0x1;const _0x30ef53=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x30ef53['trackChangesCommand']['value'])return!0x1;let _0x49e954=!0x1;const _0x245b41=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x19b3c7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x482d3d=>'attribute'==_0x482d3d['type'])['filter'](_0x362ea6=>_0x245b41['includes'](_0x362ea6['attributeKey']));if(0x0==_0x19b3c7['length'])return _0x49e954;for(const _0x3723f1 of _0x19b3c7){const _0x37b890=_0x30ef53['_findSuggestions'](_0x3723f1['range'],'attribute')['filter'](_0x56b6a2=>!_0x56b6a2['meta']['isNextTo'])['map'](_0x39b39b=>_0x39b39b['suggestion'])['filter'](_0x322150=>{const _0x487448=_0x30ef53['_getAttributeKey'](_0x322150);return _0x245b41['includes'](_0x487448);});if(_0x37b890['length']){for(const _0x5930b5 of _0x37b890)_0x1e87d4['removeMarker'](_0x5930b5['getFirstMarker']());_0x49e954=!0x0;}}return _0x49e954;}['assureChains'](){const _0x999c44=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3793bc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4e4042;const _0x41ea3e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x46c883=>{if(_0x46c883['data']['oldRange']||!_0x46c883['data']['newRange'])return null;if(!_0x46c883['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x20cb96}=_0x999c44['_splitMarkerName'](_0x46c883['name']);if(!_0x999c44['hasSuggestion'](_0x20cb96))return null;const _0x9dd282=_0x999c44['getSuggestion'](_0x20cb96);return _0x3793bc['includes'](_0x9dd282['data']['key']);})['map'](_0x5a5738=>{const {id:_0x25f6db}=_0x999c44['_splitMarkerName'](_0x5a5738['name']),_0x584ae1=_0x999c44['getSuggestion'](_0x25f6db);return _0x4e4042=_0x584ae1['attributes']['groupId'],_0x584ae1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x41ea3e['size'])return;const _0x112955=_0x999c44['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b8a13=>'attribute'==_0x5b8a13['type']&&_0x5b8a13['data']&&_0x3793bc['includes'](_0x5b8a13['data']['key'])&&_0x5b8a13['attributes']['groupId']!=_0x4e4042)['map'](_0x522e33=>({'listItem':_0x522e33['getFirstRange']()['start']['nodeAfter'],'groupId':_0x522e33['attributes']['groupId']})),_0x58995f=new Set();for(const {groupId:_0x3b8626,listItem:_0x4c4078}of _0x112955)_0x41ea3e['has'](_0x4c4078)&&_0x58995f['add'](_0x3b8626);for(const _0x5d7cf1 of _0x999c44['getSuggestions']())_0x58995f['has'](_0x5d7cf1['attributes']['groupId'])&&_0x5d7cf1['setAttribute']('groupId',_0x4e4042);}['_supportLegacySuggestions'](){const _0x3d6b69=this['editor'],_0x3a4a62=_0x3d6b69['locale'],_0x5eb202=_0x3d6b69['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5eb202['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x16ccca,_0x52c645){const _0x37ab70=[];for(let _0x3a02ae of _0x16ccca)_0x3a02ae['start']['nodeAfter']===_0x3a02ae['end']['parent']&&(_0x3a02ae=_0x3d6b69['model']['createRange'](_0x3d6b69['model']['createPositionAt'](_0x3a02ae['start']['nodeAfter'],0x0))),_0x37ab70['push'](_0x3a02ae);_0x3d6b69['model']['change'](_0xbb560a=>{const _0x407648=_0x3d6b69['model']['document']['selection'],_0x4e0cc4=Array['from'](_0x407648['getRanges']())['map'](_0x49eeff=>_0x1a312e['fromRange'](_0x49eeff));_0xbb560a['setSelection'](_0x37ab70),_0x3d6b69['commands']['get'](_0x52c645['commandName'])['refresh'](),_0x52c645['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3d6b69['execute'](_0x52c645['commandName'],..._0x52c645['commandParams']),_0xbb560a['setSelection'](_0x4e0cc4);for(const _0x43291f of _0x4e0cc4)_0x43291f['detach']();});}),_0x5eb202['descriptionFactory']['registerElementLabel'](function(_0xefc367){const _0x3b99a9=!_0x3d6b69['model']['schema']['isObject'](_0xefc367),_0x2320da=_0xefc367['previousSibling'],_0x5afe74=_0xefc367['nextSibling'],_0x12be78=_0xefc367['getAttribute']('listItemId'),_0x1ae5bf=!_0x2320da||_0x2320da['getAttribute']('listItemId')!==_0x12be78,_0x1375d6=!_0x5afe74||_0x5afe74['getAttribute']('listItemId')!==_0x12be78;return _0x3b99a9&&Boolean(_0x12be78)&&_0x1ae5bf&&_0x1375d6;},_0x554468=>o(_0x3a4a62,'ELEMENT_LIST_ITEM',_0x554468));}['_registerLegacyDescription'](){const _0x381fe3=this['editor'],_0x55f910=_0x381fe3['locale'];function _0x5091f4(_0x5ccd06){const _0x25d8ac=_0x381fe3['commands']['get']('bulletedList')['value'],_0x5da4cd=_0x381fe3['commands']['get']('numberedList')['value'];return'numberedList'===_0x5ccd06?_0x25d8ac:_0x5da4cd;}_0x381fe3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5dbb8e){if('formatBlock'!=_0x5dbb8e['type'])return;const {data:_0x2ab903}=_0x5dbb8e;if(!_0x2ab903)return;let _0x4a799d,_0x1f69e5,_0x550ad5,_0x51a27a;switch(_0x2ab903['commandName']){case'bulletedList':_0x550ad5=_0x2ab903['commandParams'][0x0]['forceValue'],_0x51a27a=_0x5091f4(_0x2ab903['commandName']),_0x4a799d=_0x550ad5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x51a27a&&_0x381fe3['config']['get']('list.multiBlock')||(_0x4a799d='*Change\x20to:*\x20%0'),_0x1f69e5={'type':'format','content':o(_0x55f910,_0x4a799d,o(_0x55f910,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x550ad5=_0x2ab903['commandParams'][0x0]['forceValue'],_0x51a27a=_0x5091f4(_0x2ab903['commandName']),_0x4a799d=_0x550ad5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x51a27a&&_0x381fe3['config']['get']('list.multiBlock')||(_0x4a799d='*Change\x20to:*\x20%0'),_0x1f69e5={'type':'format','content':o(_0x55f910,_0x4a799d,o(_0x55f910,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4a799d='*Indent:*\x20%0',_0x1f69e5={'type':'format','content':o(_0x55f910,_0x4a799d,o(_0x55f910,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4a799d=function(_0x303ed9){const _0x5be2e1=_0x303ed9['getFirstRange']();let _0x2f6960=_0x5be2e1['start']['nodeAfter'];for(;_0x2f6960&&_0x5be2e1['containsItem'](_0x2f6960);){if(_0x2f6960['getAttribute']('listIndent')>0x0)return!0x1;_0x2f6960=_0x2f6960['nextSibling'];}return!0x0;}(_0x5dbb8e)?o(_0x55f910,'*Format:*\x20remove\x20from\x20%0',o(_0x55f910,function(_0x46fb87){return'ELEMENT_'+_0x46fb87['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5dbb8e))):o(_0x55f910,'*Outdent:*\x20%0',o(_0x55f910,'ELEMENT_LIST_ITEM')),_0x1f69e5={'type':'format','content':_0x4a799d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2ab903['multipleBlocks']&&(_0x4a799d='*Merge:*\x20%0',_0x1f69e5={'type':'deletion','content':o(_0x55f910,_0x4a799d,o(_0x55f910,'ELEMENT_LIST_ITEM'))});}return _0x1f69e5;});}}function Ee(_0x278aff){let _0x4629dc=_0x278aff['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4629dc;){const _0x50b1b1=_0x4629dc['getAttribute']('listItemId');if(!_0x50b1b1)return!0x1;if(_0x50b1b1==_0x278aff['data']['newValue'])return'newValue';if(_0x50b1b1==_0x278aff['data']['oldValue'])return'oldValue';_0x4629dc=_0x4629dc['previousSibling'];}return!0x1;}class pe extends _0x4ba4b5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2c7eaa=this['editor']['config']['get']('list.properties'),_0x1ec832=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c7eaa['styles']&&(_0x1ec832['enableDefaultAttributesIntegration']('listStyle'),_0x1ec832['registerBlockAttribute']('listStyle')),_0x2c7eaa['reversed']&&(_0x1ec832['enableDefaultAttributesIntegration']('listReversed'),_0x1ec832['registerBlockAttribute']('listReversed')),_0x2c7eaa['startIndex']&&(_0x1ec832['enableDefaultAttributesIntegration']('listStart'),_0x1ec832['registerBlockAttribute']('listStart'));const _0x46c422={'type':'format','content':''};_0x1ec832['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ab159=this['editor']['locale'];_0x1ec832['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4ab159,'FORMAT_LIST_REVERSED')),_0x1ec832['descriptionFactory']['registerDescriptionCallback'](_0x33ae4f=>{const {data:_0xab71f}=_0x33ae4f;if(_0xab71f&&'listReversed'==_0xab71f['key'])return null==_0xab71f['newValue']||0x0==_0xab71f['newValue']&&null==_0xab71f['oldValue']?_0x46c422:void 0x0;}),_0x1ec832['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4ab159,'FORMAT_LIST_START')),_0x1ec832['descriptionFactory']['registerDescriptionCallback'](_0x5ada65=>{const {data:_0x5c84d6}=_0x5ada65;if(_0x5c84d6&&'listStart'==_0x5c84d6['key'])return null==_0x5c84d6['newValue']||0x1==_0x5c84d6['newValue']&&null==_0x5c84d6['oldValue']?_0x46c422:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5984a6=>{if(_0x5984a6['batch']['isUndo'])return!0x1;let _0x11f065=!0x1;const _0x467ac4=_0x1ec832['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c9cbf=>{const _0x4cda9a=_0x1ec832['_getAttributeKey'](_0x2c9cbf);return'listStart'==_0x4cda9a||'listReversed'==_0x4cda9a;});for(const _0x58f0ee of _0x467ac4){const _0x2da4bb=_0x58f0ee['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2da4bb||'customNumbered'==_0x2da4bb)continue;_0x1ec832['_findSuggestions'](_0x58f0ee['getFirstRange'](),'attribute')['find'](_0x20b103=>'listType'==_0x1ec832['_getAttributeKey'](_0x20b103['suggestion']))||(_0x5984a6['removeMarker'](_0x58f0ee['getFirstMarker']()),_0x11f065=!0x0);}return _0x11f065;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x665efd){const _0x5d3b7c=this['editor']['locale'],{data:_0x4d9ac9}=_0x665efd,_0x5684f3={'type':'format','content':''};if(!_0x4d9ac9||'listStyle'!=_0x4d9ac9['key'])return;if(!_0x4d9ac9['oldValue'])return'default'==_0x4d9ac9['newValue']?_0x5684f3:{'type':'format','content':''+o(_0x5d3b7c,'*Set\x20format:*\x20%0',o(_0x5d3b7c,this['_getTranslationKeyForListStyle'](_0x4d9ac9['newValue'])))};if(!_0x4d9ac9['newValue']){if('default'==_0x4d9ac9['oldValue'])return _0x5684f3;let _0x4573e8=_0x665efd['head'];for(;_0x4573e8;){if(_0x4573e8['data']&&'listType'==_0x4573e8['data']['key']&&_0x4573e8['data']['newValue'])return _0x5684f3;_0x4573e8=_0x4573e8['next'];}return{'type':'format','content':''+o(_0x5d3b7c,'*Remove\x20format:*\x20%0',o(_0x5d3b7c,this['_getTranslationKeyForListStyle'](_0x4d9ac9['oldValue'])))};}if('default'!=_0x4d9ac9['newValue'])return{'type':'format','content':''+o(_0x5d3b7c,'*Set\x20format:*\x20%0',o(_0x5d3b7c,this['_getTranslationKeyForListStyle'](_0x4d9ac9['newValue'])))};let _0x33570e=_0x665efd['head'];for(;_0x33570e;){if(_0x33570e['data']&&'listType'==_0x33570e['data']['key']&&_0x33570e['data']['newValue']&&_0x33570e['data']['oldValue'])return _0x5684f3;_0x33570e=_0x33570e['next'];}return{'type':'format','content':o(_0x5d3b7c,'*Set\x20format:*\x20%0',o(_0x5d3b7c,'ELEMENT_'+_0x665efd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x43be63=this['editor'],_0x42ad6a=_0x43be63['locale'];_0x43be63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39c231=>{if('formatBlock'!=_0x39c231['type'])return;const {data:_0x5b0792}=_0x39c231;if(!_0x5b0792)return;let _0x250cca,_0x4326a1;switch(_0x5b0792['commandName']){case'listStyle':_0x250cca='*Change\x20to:*\x20%0',_0x4326a1={'type':'format','content':o(_0x42ad6a,_0x250cca,o(_0x42ad6a,this['_getTranslationKeyForListStyle'](_0x5b0792['commandParams'][0x0]['type'])))};break;case'listReversed':_0x250cca=_0x5b0792['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4326a1={'type':'format','content':o(_0x42ad6a,_0x250cca)};break;case'listStart':_0x250cca='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4326a1={'type':'format','content':o(_0x42ad6a,_0x250cca,_0x5b0792['commandParams'][0x0]['startIndex'])};}return _0x4326a1;});}['_getTranslationKeyForListStyle'](_0x5469df){return'ELEMENT_'+function(_0x3c9b0f){if(ye['includes'](_0x3c9b0f))return'bulleted';if(Se['includes'](_0x3c9b0f))return'numbered';return null;}(_0x5469df)['toUpperCase']()+'_LIST_'+_0x5469df['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x4ba4b5{static get['requires'](){return[_0x2cfbc4];}['init'](){const _0x220caf=this['editor'],_0x2f109f=_0x220caf['plugins']['get']('TrackChangesEditing'),_0x8d0fa3=_0x220caf['commands']['get']('enter');_0x2f109f['enableCommand']('enter',()=>{_0x220caf['model']['change'](_0x23bf49=>{const _0x25cfac=_0x220caf['model']['document']['selection'],_0x5714da=_0x25cfac['getFirstPosition'](),_0x4cf4d3=_0x1a312e['fromRange'](_0x25cfac['getFirstRange']());if(_0x8d0fa3['enterBlock'](_0x23bf49)){const _0x480bee=_0x220caf['model']['createPositionAt'](_0x5714da['parent']['nextSibling'],0x0),_0x47836d=_0x23bf49['createRange'](_0x5714da,_0x480bee);_0x2f109f['markInsertion'](_0x47836d);}else _0x23bf49['setSelection'](_0x23bf49['createRange'](_0x4cf4d3['end']));_0x4cf4d3['detach'](),_0x8d0fa3['fire']('afterExecute',{'writer':_0x23bf49});});}),_0x220caf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x220caf,'split'),{'priority':'high'}),_0x220caf['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x18ba4a,_0x52a216,_0x22fe00)=>{const _0x3c93cd=_0x22fe00['mapper']['markerNameToElements'](_0x52a216['markerName']);if(_0x3c93cd){for(const _0x1af6fc of _0x3c93cd)_0x1af6fc['hasClass']('ck-suggestion-marker-split')&&(_0x22fe00['mapper']['unbindElementFromMarkerName'](_0x1af6fc,_0x52a216['markerName']),_0x22fe00['writer']['remove'](_0x1af6fc));}},{'priority':'high'}),_0x220caf['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x41305b,_0x2c5fa3,_0x1710c5)=>{_0x1710c5['options']['showSuggestionHighlights']&&_e(_0x220caf,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x41305b,_0x2c5fa3,_0x1710c5);},{'priority':'high'});}}class X extends _0x4ba4b5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x23ecf2=this['editor']['plugins']['get']('TrackChangesEditing');_0x23ecf2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x23ecf2['enableCommand']('findNext'),_0x23ecf2['enableCommand']('findPrevious'),_0x23ecf2['enableCommand']('replace'),_0x23ecf2['enableCommand']('replaceAll');}['handleFindCommand'](_0x1514c6,_0xe560,_0x4b18af={}){const _0x184410=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1514c6(_0x172b56=>{let _0x314917=('string'==typeof _0xe560?_0x184410['findByTextCallback'](_0xe560,_0x4b18af):_0xe560)(_0x172b56);Array['isArray'](_0x314917)&&(_0x314917={'results':_0x314917,'searchText':'string'==typeof _0xe560?_0xe560:''});const _0x4e2c67=_0x314917['results']['filter'](_0x1d6fdf=>!0x1===this['_isInDeletionRange'](_0x1d6fdf,_0x172b56['item']));return{..._0x314917,'results':_0x4e2c67};},_0x4b18af);}['_isInDeletionRange'](_0xba26ba,_0x237fe0){const _0x48afee=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x237fe0,_0xba26ba['start']),this['editor']['model']['createPositionAt'](_0x237fe0,_0xba26ba['end']));for(const _0x1dde90 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x48afee['getIntersection'](_0x1dde90['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x4ba4b5{['afterInit'](){const _0x2532ca=this['editor']['locale'],_0x16253d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x334d28,commandName:_0x4e6bd5}of ro)this['editor']['plugins']['has'](_0x334d28)&&(_0x16253d['enableDefaultAttributesIntegration'](_0x4e6bd5),_0x16253d['registerInlineAttribute'](_0x4e6bd5));_0x16253d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2532ca,'FORMAT_FONT_SIZE')),_0x16253d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2532ca,'FORMAT_FONT_FAMILY')),_0x16253d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2532ca,'FORMAT_FONT_COLOR')),_0x16253d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2532ca,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d198d=this['editor'],_0x96e03c=_0x2d198d['locale'];_0x2d198d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4982b1=>{const _0x115e50=_0x96e03c['t'];if('formatInline'!=_0x4982b1['type'])return;const {data:_0xa49122}=_0x4982b1;if(null!=_0xa49122){if('fontSize'==_0xa49122['commandName']){const _0x39164a=_0xa49122['commandParams'][0x0]['value'];if(_0x39164a){const _0x5c4134=_0x115e50(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4edec6=>_0x4edec6['model']==_0x39164a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x96e03c,'*Set\x20font\x20size:*\x20%0',_0x5c4134)};}return{'type':'format','content':o(_0x96e03c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xa49122['commandName']){const _0x44effb=_0xa49122['commandParams'][0x0]['value'];return _0x44effb?{'type':'format','content':o(_0x96e03c,'*Set\x20font\x20family:*\x20%0',_0x44effb)}:{'type':'format','content':o(_0x96e03c,'*Reset\x20font\x20family*')};}if('fontColor'==_0xa49122['commandName']){const _0x5121f4=_0xa49122['commandParams'][0x0]['value'];if(_0x5121f4){const _0x18c9b3=_0x273313(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5928a5=>_0x5928a5['model']==_0x5121f4);let _0x8d0e72=_0x5121f4,_0x479d6f='';return _0x18c9b3&&(_0x8d0e72=_0x18c9b3['label'],_0x479d6f=_0x115e50(_0x8d0e72)['toLowerCase']()),{'type':'format','content':o(_0x96e03c,'*Set\x20font\x20color:*\x20%0',_0x479d6f)['trim'](),'color':{'value':_0x5121f4,'title':_0x479d6f||_0x8d0e72}};}return{'type':'format','content':o(_0x96e03c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xa49122['commandName']){const _0x4eb937=_0xa49122['commandParams'][0x0]['value'];if(_0x4eb937){const _0x40c40e=_0x273313(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1b8fd3=>_0x1b8fd3['model']==_0x4eb937);let _0x49c34a=_0x4eb937,_0x4aaa94='';return _0x40c40e&&(_0x49c34a=_0x40c40e['label'],_0x4aaa94=_0x115e50(_0x49c34a)['toLowerCase']()),{'type':'format','content':o(_0x96e03c,'*Set\x20font\x20background\x20color:*\x20%0',_0x4aaa94)['trim'](),'color':{'value':_0x4eb937,'title':_0x4aaa94||_0x49c34a}};}return{'type':'format','content':o(_0x96e03c,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x4ba4b5{['afterInit'](){const _0x1c0f68=this['editor'],_0x523079=_0x1c0f68['plugins']['get']('TrackChangesEditing'),_0x441e9f=_0x1c0f68['commands']['get']('copyFormat'),_0x3ee4e7=_0x1c0f68['commands']['get']('pasteFormat');_0x441e9f&&_0x3ee4e7&&(_0x523079['enableDefaultAttributesIntegration']('pasteFormat'),_0x523079['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x20cc8e=this['editor'],_0x3c16ca=_0x20cc8e['locale'];_0x20cc8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x321fb3=>{if('formatBlock'!=_0x321fb3['type']&&'formatInline'!=_0x321fb3['type'])return;const {data:_0x2f9707}=_0x321fb3;if(_0x2f9707&&'pasteFormat'===_0x2f9707['commandName']){const _0x94c36d=[],_0xca8541=_0x2f9707['commandParams'][0x0];for(const [_0x1d4f50,_0x33d90b]of Object['entries'](_0xca8541))_0x94c36d['push'](so(_0x20cc8e,_0x1d4f50,_0x33d90b));return _0x94c36d['length']?{'type':'format','content':o(_0x3c16ca,'*Set\x20format\x20to:*\x20%0',_0x94c36d['join'](',\x20'))}:{'type':'format','content':o(_0x3c16ca,'*Remove\x20all\x20formatting*')};}});}}function so(_0x378c6c,_0x4f9e98,_0x5bb3e8){const _0x27e6b9=_0x378c6c['locale']['t'],_0x2f73ce=_0x4f9e98['split'](/(?=[A-Z])/)['join']('\x20'),_0x2c7ba1=_0x27e6b9(_0x2f73ce['charAt'](0x0)['toUpperCase']()+_0x2f73ce['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5bb3e8)return _0x2c7ba1;if('fontColor'===_0x4f9e98||'fontBackgroundColor'===_0x4f9e98){const _0x153f0f=_0x273313(_0x378c6c['config']['get']('fontColor.colors'))['find'](_0xe7eb72=>_0xe7eb72['model']==_0x5bb3e8);return _0x2c7ba1+'\x20('+(_0x153f0f?_0x27e6b9(_0x153f0f['label'])['toLowerCase']():_0x5bb3e8)+')';}if('fontSize'===_0x4f9e98&&isNaN(parseFloat(_0x5bb3e8))){const _0x45bf83=_0x378c6c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x378c6c['config']['get']('fontSize.options'))['find'](_0xc090c0=>_0xc090c0['model']==_0x5bb3e8);return _0x2c7ba1+'\x20('+(_0x45bf83?_0x27e6b9(_0x45bf83['title'])['toLowerCase']():_0x5bb3e8)+')';}return _0x2c7ba1+'\x20('+_0x5bb3e8+')';}class tt extends _0x4ba4b5{['_headingOptions'];['afterInit'](){const _0x1f1c52=this['editor'];if(!_0x1f1c52['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1f1c52['config']['get']('heading.options');const _0x2bb13d=_0x1f1c52['locale'],_0x3a22ce=_0x1f1c52['plugins']['get']('TrackChangesEditing');_0x3a22ce['enableDefaultAttributesIntegration']('heading');for(const _0x28d604 of this['_headingOptions'])'paragraph'!=_0x28d604['model']&&_0x3a22ce['descriptionFactory']['registerElementLabel'](_0x28d604['model'],_0x3f793b=>{const _0x5103ba=this['_getHeadingLevel'](_0x28d604['model']);return null!==_0x5103ba?_0x2f88af(_0x3f793b,_0x5103ba):_0x362439(_0x3f793b,_0x28d604['title']);});function _0x2f88af(_0x471bca,_0x313f16){return o(_0x2bb13d,'ELEMENT_HEADING',[_0x471bca,_0x313f16]);}function _0x362439(_0x285d52,_0x3d5a3b){return o(_0x2bb13d,'ELEMENT_HEADING_CUSTOM',[_0x285d52,_0x3d5a3b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48ce21=this['editor'],_0x1f088e=_0x48ce21['locale'];function _0x1b6a1f(_0xcdbe59,_0x1b3881){return o(_0x1f088e,'ELEMENT_HEADING_CUSTOM',[_0xcdbe59,_0x1b3881]);}_0x48ce21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16a488=>{if('formatBlock'!=_0x16a488['type'])return;const {data:_0x3c581c}=_0x16a488;if(_0x3c581c&&'heading'==_0x3c581c['commandName']){const _0x5bfec7=_0x3c581c['commandParams'][0x0]['value'],_0xeae455=this['_getHeadingLevel'](_0x5bfec7);if(null!==_0xeae455)return{'type':'format','content':o(_0x1f088e,'*Change\x20to:*\x20%0',(_0x522494=0x1,_0x13cc34=_0xeae455,o(_0x1f088e,'ELEMENT_HEADING',[_0x522494,_0x13cc34])))};const _0x5b996f=this['_headingOptions']['find'](_0x45cb76=>_0x45cb76['model']===_0x5bfec7)['title'];return{'type':'format','content':o(_0x1f088e,'*Change\x20to:*\x20%0',_0x1b6a1f(0x1,_0x5b996f))};}var _0x522494,_0x13cc34;});}['_getHeadingLevel'](_0x556ddf){const _0x1e2738=_0x556ddf['match'](/^heading(\d+)/);if(_0x1e2738)return _0x1e2738[0x1];const _0xdd70ea=this['_headingOptions']?.['find'](_0x503da4=>_0x503da4['model']==_0x556ddf);if(_0xdd70ea&&_0xdd70ea['view']){const _0x52f155=_0xdd70ea['view'],_0xff38a3=(_0x52f155['name']??_0x52f155)['match'](/^h(\d+)/);if(_0xff38a3)return _0xff38a3[0x1];}return null;}}class et extends _0x4ba4b5{['afterInit'](){const _0x91b8d8=this['editor'];if(!_0x91b8d8['plugins']['has']('HighlightEditing'))return;const _0x53f19b=_0x91b8d8['plugins']['get']('TrackChangesEditing'),_0x42c55a=_0x91b8d8['locale'];_0x53f19b['enableDefaultAttributesIntegration']('highlight'),_0x53f19b['registerInlineAttribute']('highlight'),_0x53f19b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x42c55a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa7cc7=this['editor'],_0x447a55=_0xa7cc7['locale'];_0xa7cc7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e5f8f=>{if('formatInline'!=_0x3e5f8f['type'])return;const {data:_0x407c34}=_0x3e5f8f;if(_0x407c34&&'highlight'==_0x407c34['commandName']){const _0x4e4fdd=_0x447a55['t'],_0xf020fe=_0x407c34['commandParams'][0x0]['value'];if(_0xf020fe){const _0x2aec30=_0xa7cc7['config']['get']('highlight.options')['find'](_0x4bc4ff=>_0x4bc4ff['model']==_0xf020fe),_0x1813eb=_0x4e4fdd(_0x2aec30['title'])['toLowerCase']();return{'type':'format','content':o(_0x447a55,'*Set\x20highlight:*\x20%0',_0x1813eb),'color':{'value':_0x2aec30['color'],'title':_0x2aec30['title']}};}return{'type':'format','content':o(_0x447a55,'*Remove\x20highlight*',o(_0x447a55,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x4ba4b5{['afterInit'](){const _0x5025fb=this['editor'];if(!_0x5025fb['plugins']['has']('HorizontalLineEditing'))return;_0x5025fb['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xaed6ce=_0x5025fb['plugins']['get']('TrackChangesEditing'),_0x5e1c86=_0x5025fb['locale'];_0xaed6ce['descriptionFactory']['registerElementLabel']('horizontalLine',_0x183013=>o(_0x5e1c86,'ELEMENT_HORIZONTAL_LINE',_0x183013)),_0x5025fb['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x25aaeb,{writer:_0x753117,options:_0x42fa88})=>{if(!_0x42fa88['showSuggestionHighlights'])return null;const _0x282374=_0x753117['createContainerElement']('div'),_0x30b9b0=_0x753117['createEmptyElement']('hr');return _0x753117['addClass']('ck-horizontal-line',_0x282374),_0x753117['insert'](_0x753117['createPositionAt'](_0x282374,0x0),_0x30b9b0),_0x282374;},'converterPriority':'high'});}}class st extends _0x4ba4b5{['afterInit'](){const _0x6da693=this['editor'];if(!_0x6da693['plugins']['has']('HtmlEmbed'))return;const _0x5e12fc=_0x6da693['plugins']['get']('TrackChangesEditing'),_0x2cd71f=_0x6da693['locale'];_0x5e12fc['descriptionFactory']['registerElementLabel']('rawHtml',_0x4e1643=>o(_0x2cd71f,'ELEMENT_HTML_EMBED',_0x4e1643)),_0x5e12fc['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5e12fc['registerBlockAttribute']('value'),_0x5e12fc['descriptionFactory']['registerDescriptionCallback'](_0x401a03=>{if('attribute'!=_0x401a03['type'])return;const {data:_0x2a6d8c}=_0x401a03;if(_0x2a6d8c&&'value'==_0x2a6d8c['key']&&_0x401a03['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x231a90=o(_0x2cd71f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2cd71f,'*Change\x20%0\x20content*',_0x231a90)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e2c63=this['editor'],_0xc1f3f2=_0x5e2c63['locale'];_0x5e2c63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ca167=>{if('formatBlock'!=_0x1ca167['type'])return;const {data:_0x49a013}=_0x1ca167;if(_0x49a013&&'htmlEmbed'==_0x49a013['commandName']){const _0x3f6112=o(_0xc1f3f2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xc1f3f2,'*Change\x20%0\x20content*',_0x3f6112)};}});}}class nt extends _0x4ba4b5{['afterInit'](){const _0x3b3551=this['editor'];if(!_0x3b3551['plugins']['has']('ImageEditing'))return;const _0x3278eb=_0x3b3551['plugins']['get']('TrackChangesEditing'),_0x1833a9=_0x3b3551['plugins']['get']('ImageUtils'),_0x422ef0=_0x3b3551['locale'];_0x3278eb['enableCommand']('insertImage'),_0x3278eb['descriptionFactory']['registerElementLabel']('imageBlock',_0x546976=>o(_0x422ef0,'ELEMENT_IMAGE',_0x546976)),_0x3278eb['descriptionFactory']['registerElementLabel']('imageInline',_0x1c26ef=>o(_0x422ef0,'ELEMENT_INLINE_IMAGE',_0x1c26ef)),_0x3278eb['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x422ef0,'ELEMENT_CAPTION')),_0x3b3551['plugins']['has']('ImageUploadEditing')&&_0x3278eb['enableCommand']('uploadImage'),_0x3b3551['plugins']['has']('ImageBlockEditing')&&_0x3b3551['plugins']['has']('ImageInlineEditing')&&(_0x3278eb['enableCommand']('imageTypeInline',(_0x13163a,_0x26e14e)=>{const _0x88af0b=_0x1833a9['getClosestSelectedImageElement'](_0x3b3551['model']['document']['selection']);_0x3b3551['model']['change'](()=>{_0x3278eb['markBlockFormat'](_0x88af0b,{'commandName':'imageTypeInline','commandParams':[_0x26e14e]},[],'convertBlockImageToInline');});}),_0x3278eb['enableCommand']('imageTypeBlock',(_0x2bef18,_0x378922)=>{_0x3b3551['model']['change'](_0x540399=>{let _0x1dfb78=_0x1833a9['getClosestSelectedImageElement'](_0x3b3551['model']['document']['selection']),_0x165e06=_0x540399['createRangeOn'](_0x1dfb78);const _0x129252=_0x4317c1['fromPosition'](_0x165e06['start'],'toPrevious'),_0x2fc133=_0x4317c1['fromPosition'](_0x165e06['end'],'toNext');_0x3278eb['forceDefaultExecution'](()=>_0x2bef18(_0x378922)),_0x1dfb78=_0x1833a9['getClosestSelectedImageElement'](_0x3b3551['model']['document']['selection']),_0x165e06=_0x540399['createRangeOn'](_0x1dfb78);const _0x53e14d=_0x540399['createRange'](_0x129252,_0x2fc133);_0x129252['detach'](),_0x2fc133['detach'](),_0x3278eb['markBlockFormat'](_0x1dfb78,{'commandName':'imageTypeInline','commandParams':[_0x378922]},[],'convertInlineImageToBlock'),_0x53e14d['start']['isBefore'](_0x165e06['start'])&&_0x3278eb['markInsertion'](_0x540399['createRange'](_0x53e14d['start'],_0x165e06['start']),'convertInlineImageToBlock'),_0x165e06['end']['isBefore'](_0x53e14d['end'])&&_0x3278eb['markInsertion'](_0x540399['createRange'](_0x165e06['end'],_0x53e14d['end']),'convertInlineImageToBlock');});}),_0x3278eb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3278eb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3278eb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3278eb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3278eb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3278eb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x988c6c])=>{const _0x4823b4=_0x3278eb['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5ac480=_0x988c6c['start'],_0x410ff0=_0x988c6c['end'];const _0x381a6b=_0x3b3551['model']['schema']['getNearestSelectionRange'](_0x5ac480,'backward'),_0x207f3d=_0x3b3551['model']['schema']['getNearestSelectionRange'](_0x410ff0,'forward');_0x381a6b['isCollapsed']&&(_0x5ac480=_0x381a6b['start']),_0x207f3d['isCollapsed']&&(_0x410ff0=_0x207f3d['end']),_0x4823b4([_0x3b3551['model']['createRange'](_0x5ac480,_0x410ff0)]);}),_0x3278eb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x52761f),_0x3278eb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x52761f)),_0x3b3551['plugins']['has']('ImageCaptionEditing')&&(_0x3278eb['enableCommand']('toggleImageCaption',(_0x49a038,_0x28eac8)=>{const _0x47a5a8=_0x3b3551['plugins']['get']('ImageCaptionUtils');let _0x308732=_0x1833a9['getClosestSelectedImageElement'](_0x3b3551['model']['document']['selection']),_0x12a5f3=_0x47a5a8['getCaptionFromImageModelElement'](_0x308732);_0x3b3551['model']['change'](()=>{if(_0x12a5f3)return void _0x3278eb['markDeletion'](_0x3b3551['model']['createRangeOn'](_0x12a5f3));const _0x2d10b6=_0x1833a9['isBlockImage'](_0x308732);_0x49a038(_0x28eac8),_0x308732=_0x1833a9['getClosestSelectedImageElement'](_0x3b3551['model']['document']['selection']),_0x12a5f3=_0x47a5a8['getCaptionFromImageModelElement'](_0x308732),_0x3278eb['markInsertion'](_0x3b3551['model']['createRangeOn'](_0x12a5f3),_0x2d10b6?null:'imageCaption');});}),_0x3278eb['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x52761f));const _0x772663=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5841cf(_0x1fea37,_0x115ca1){const _0x27ef62=_0x772663['findIndex'](({type:_0x2cb3f4,subType:_0x12f7db})=>_0x1fea37['type']==_0x2cb3f4&&_0x1fea37['subType']==_0x12f7db),_0x200824=_0x772663['findIndex'](({type:_0x1336a1,subType:_0x4124d3})=>_0x115ca1['type']==_0x1336a1&&_0x115ca1['subType']==_0x4124d3);if(_0x27ef62<0x0||_0x200824<0x0)return!0x1;const _0x4161fc=_0x1fea37['getFirstRange'](),_0x2ea655=_0x115ca1['getFirstRange']();if((0x0==_0x27ef62||0x1==_0x27ef62)&&0x2==_0x200824&&_0x4161fc['isIntersecting'](_0x2ea655))return!0x0;if(0x2==_0x27ef62&&0x3==_0x200824){const _0x32a62f=_0x3278eb['_findSuggestions'](_0x4161fc,'insertion')['filter'](({suggestion:_0x87750b,meta:_0x1da892})=>_0x1da892['isOwn']&&'convertInlineImageToBlock'==_0x87750b['subType']);if(_0x32a62f['length']>0x1&&_0x2ea655['end']['isEqual'](_0x4161fc['start']))return!0x0;if(0x1==_0x32a62f['length']&&(_0x4161fc['start']['isEqual'](_0x2ea655['end'])||_0x4161fc['end']['isEqual'](_0x2ea655['start'])))return!0x0;}if(0x3==_0x27ef62&&0x3==_0x200824&&_0x4161fc['start']['isBefore'](_0x2ea655['start'])){const _0x588a16=_0x4161fc['end']['nodeAfter'],_0x11fa04=_0x2ea655['start']['nodeBefore'];return _0x1833a9['isBlockImage'](_0x588a16)&&_0x588a16===_0x11fa04;}return!0x1;}function _0x52761f(_0x4a01e2,_0x3d538d){return _0x5841cf(_0x4a01e2,_0x3d538d)?[_0x4a01e2,_0x3d538d]:_0x5841cf(_0x3d538d,_0x4a01e2)?[_0x3d538d,_0x4a01e2]:null;}_0x3b3551['plugins']['has']('ImageResize')&&(_0x3278eb['enableDefaultAttributesIntegration']('resizeImage'),_0x3278eb['registerBlockAttribute']('resizedWidth'),_0x3278eb['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x422ef0,'FORMAT_IMAGE_SIZE'))),_0x3b3551['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3278eb['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3278eb['registerBlockAttribute']('alt')),_0x3278eb['descriptionFactory']['registerDescriptionCallback'](_0xbd9ad2=>{if(!!_0x772663['find'](({type:_0x4c80e8,subType:_0x4e9268})=>_0xbd9ad2['type']==_0x4c80e8&&_0xbd9ad2['subType']==_0x4e9268))return _0xbd9ad2['previous']?{}:void 0x0;}),_0x3278eb['descriptionFactory']['registerDescriptionCallback'](_0x48a031=>{if('insertion'==_0x48a031['type']||'deletion'==_0x48a031['type']){const _0x1e19a2=_0x48a031['getContainedElement']();if(_0x1e19a2&&_0x1e19a2['is']('element','caption'))return{'type':'insertion'==_0x48a031['type']?'addObject':'removeObject','element':_0x1e19a2,'quantity':0x1};}}),_0x3278eb['descriptionFactory']['registerDescriptionCallback'](_0x139d8c=>'formatBlock'==_0x139d8c['type']&&'convertInlineImageToBlock'==_0x139d8c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x139d8c['type']&&'convertBlockImageToInline'==_0x139d8c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3278eb['descriptionFactory']['registerDescriptionCallback'](_0x1ff182=>{if('attribute'!=_0x1ff182['type'])return;const {data:_0x3104af}=_0x1ff182;if(!_0x3104af||'alt'!=_0x3104af['key'])return;const _0x219cd9=_0x3104af['newValue'];return _0x219cd9?{'type':'format','content':o(_0x422ef0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x219cd9+'\x22')}:{'type':'format','content':o(_0x422ef0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39022d=this['editor'],_0x34df26=_0x39022d['locale'];_0x39022d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a8597=>{if('formatBlock'!=_0x1a8597['type']&&'formatInline'!=_0x1a8597['type'])return;const {data:_0x20d98c}=_0x1a8597;if(_0x20d98c){if('imageTextAlternative'==_0x20d98c['commandName']){const _0x12c0ee=_0x20d98c['commandParams'][0x0]['newValue'];return _0x12c0ee?{'type':'format','content':o(_0x34df26,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x12c0ee+'\x22')}:{'type':'format','content':o(_0x34df26,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x20d98c['commandName']){const _0x3fbb67=_0x20d98c['commandParams'][0x0]['width'];return _0x3fbb67?{'type':'format','content':o(_0x34df26,'*Set\x20image\x20width:*\x20%0',_0x3fbb67)}:{'type':'format','content':o(_0x34df26,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x4ba4b5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4001f9=this['editor']['locale'],_0x32d9d1=this['editor']['plugins']['get']('TrackChangesEditing');_0x32d9d1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x32d9d1['registerBlockAttribute']('src'),_0x32d9d1['descriptionFactory']['registerDescriptionCallback'](_0xeaadc3=>{if('attribute'!=_0xeaadc3['type'])return;const {data:_0x529397}=_0xeaadc3;return _0x529397&&'src'==_0x529397['key']?_0x529397['newValue']&&_0x529397['oldValue']?{'type':'format','content':o(_0x4001f9,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x22c142=this['editor']['plugins']['get']('TrackChangesEditing');_0x22c142['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x22c142['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x22c142['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x22c142['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x141f23=this['editor'],_0x58db8f=_0x141f23['locale'];_0x141f23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f856f=>{if('formatBlock'!=_0x1f856f['type']&&'formatInline'!=_0x1f856f['type'])return;const {data:_0x10eed7}=_0x1f856f;if(!_0x10eed7||'replaceImageSource'!=_0x10eed7['commandName'])return;return{'type':'format','content':o(_0x58db8f,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x4ba4b5{['afterInit'](){const _0x332819=this['editor'];if(!_0x332819['plugins']['has']('ImageStyleEditing'))return;const _0x554268=_0x332819['plugins']['get']('TrackChangesEditing'),_0xd1fd5d=_0x332819['plugins']['get']('ImageUtils'),_0xf492f3={};_0x554268['enableCommand']('imageStyle',(_0x4b8c73,_0x323e68)=>{const _0x55a727=_0x332819['plugins']['get']('Users')['me'],_0x23bbf3=_0x332819['commands']['get']('imageStyle');let _0x22c3a8=_0xd1fd5d['getClosestSelectedImageElement'](_0x332819['model']['document']['selection']),_0x48adfa=_0x332819['model']['createRangeOn'](_0x22c3a8),_0x24b089=_0x23bbf3['value'];if(_0x24b089==_0x323e68['value'])return;const _0x2f447e={'commandName':'imageStyle','commandParams':[_0x323e68],'formatGroupId':_0x4cf4cc()};_0x332819['model']['change'](()=>{if(_0x554268['getSuggestions']()['filter'](_0x529217=>_0x529217['isInContent']&&_0x55a727==_0x529217['author']&&('formatBlock'==_0x529217['type']||'formatInline'==_0x529217['type'])&&('imageStylePreApply'==_0x529217['subType']||'imageStylePostApply'==_0x529217['subType'])&&_0x529217['getFirstRange']()['isEqual'](_0x48adfa))['forEach'](_0x40e11a=>_0x554268['discardSuggestion'](_0x40e11a['head'])),_0x22c3a8=_0xd1fd5d['getClosestSelectedImageElement'](_0x332819['model']['document']['selection']),_0x48adfa=_0x332819['model']['createRangeOn'](_0x22c3a8),_0x23bbf3['refresh'](),_0x332819['commands']['get']('imageTypeInline')['refresh'](),_0x332819['commands']['get']('imageTypeBlock')['refresh'](),_0x24b089=_0x23bbf3['value'],_0x24b089!=_0x323e68['value'])return _0xd1fd5d['isInlineImage'](_0x22c3a8)&&_0x23bbf3['shouldConvertImageType'](_0x323e68['value'],_0x22c3a8)?(_0x4b8c73({..._0x323e68,'setImageSizes':!0x1}),_0x22c3a8=_0xd1fd5d['getClosestSelectedImageElement'](_0x332819['model']['document']['selection']),void _0x554268['markBlockFormat'](_0x22c3a8,{..._0x2f447e,'commandReversedParams':[{'value':_0x24b089||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xd1fd5d['isBlockImage'](_0x22c3a8)?_0x554268['markBlockFormat'](_0x22c3a8,_0x2f447e,[],'imageStylePostApply'):_0x554268['markInlineFormat'](_0x48adfa,_0x2f447e,'imageStylePostApply'));});});for(const _0x4e0438 of _0x332819['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xf492f3[_0x4e0438['name']]=_0x4e0438['title']['toLowerCase']();_0x554268['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x554268['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x554268['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x554268['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2aea6f])=>{_0xd1fd5d['setImageNaturalSizeAttributes'](_0x2aea6f['getContainedElement']());}),_0x554268['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1a1776,_0x5b5e63)=>{_0x554268['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1a1776,{'commandName':_0x5b5e63['commandName'],'commandParams':_0x5b5e63['commandReversedParams']});}),_0x554268['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2e388e,_0x3ed9df){if(_0x4ec6d7(_0x2e388e,_0x3ed9df))return[_0x2e388e,_0x3ed9df];if(_0x4ec6d7(_0x3ed9df,_0x2e388e))return[_0x3ed9df,_0x2e388e];return null;});const _0x27c29b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ec6d7(_0x2ce4fc,_0xd1690d){const _0x594faa=_0x27c29b['findIndex'](({type:_0x3eb1e2,subType:_0x1a209a})=>_0x2ce4fc['type']==_0x3eb1e2&&_0x2ce4fc['subType']==_0x1a209a),_0x17f31e=_0x27c29b['findIndex'](({type:_0x434d27,subType:_0x3e3960})=>_0xd1690d['type']==_0x434d27&&_0xd1690d['subType']==_0x3e3960);if(_0x594faa<0x0||_0x17f31e<0x0)return!0x1;const _0x57a7af=_0x2ce4fc['getFirstRange'](),_0x3dacb1=_0xd1690d['getFirstRange']();if((0x0==_0x594faa||0x1==_0x594faa)&&0x2==_0x17f31e&&_0x57a7af['isIntersecting'](_0x3dacb1))return!0x0;if(0x2==_0x594faa&&0x3==_0x17f31e){const _0xe3e489=_0x554268['_findSuggestions'](_0x57a7af,'insertion')['filter'](({suggestion:_0x113686,meta:_0x34d274})=>_0x34d274['isOwn']&&'convertInlineImageToBlock'==_0x113686['subType']);if(_0xe3e489['length']>0x1&&_0x3dacb1['end']['isEqual'](_0x57a7af['start']))return!0x0;if(0x1==_0xe3e489['length']&&(_0x57a7af['start']['isEqual'](_0x3dacb1['end'])||_0x57a7af['end']['isEqual'](_0x3dacb1['start'])))return!0x0;}if(0x3==_0x594faa&&0x3==_0x17f31e&&_0x57a7af['start']['isBefore'](_0x3dacb1['start'])){const _0x540646=_0x57a7af['end']['nodeAfter'],_0x5cd90d=_0x3dacb1['start']['nodeBefore'];return _0xd1fd5d['isBlockImage'](_0x540646)&&_0x540646===_0x5cd90d;}return!0x1;}_0x332819['model']['document']['registerPostFixer'](()=>{let _0x5ef3e2=!0x1;const _0x49d30f=Array['from'](_0x332819['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2795f0,data:_0x1a227b}of _0x49d30f){const {group:_0x2023c1,type:_0x4bf6ae,subType:_0x53ee58,id:_0x5c7791}=_0x554268['_splitMarkerName'](_0x2795f0);if('suggestion'==_0x2023c1&&_0x554268['hasSuggestion'](_0x5c7791)){if('formatBlock'==_0x4bf6ae&&('imageStylePreApply'==_0x53ee58||'imageStylePostApply'==_0x53ee58)){const _0x4e5c47=_0x554268['getSuggestion'](_0x5c7791);if(_0x1a227b['newRange']){const _0x5c8601=_0x4e5c47['getFirstRange']()['getContainedElement']();if(_0xd1fd5d['isBlockImage'](_0x5c8601))continue;_0x554268['discardSuggestion'](_0x4e5c47),_0x5ef3e2=!0x0;}}if('insertion'==_0x4bf6ae&&'imageCaption'==_0x53ee58&&!_0x1a227b['newRange']){const _0x269e4c=_0x554268['getSuggestion'](_0x5c7791);_0x269e4c['next']&&_0x269e4c['next']['isInContent']&&(_0x554268['discardSuggestion'](_0x269e4c['next']),_0x5ef3e2=!0x0);}}}return _0x5ef3e2;}),this['_registerLegacyDescription'](_0xf492f3);}['_registerLegacyDescription'](_0x5effa8){const _0xc96ecb=this['editor'],_0x5c6494=_0xc96ecb['locale'];_0xc96ecb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21a7f7=>{if('formatBlock'!=_0x21a7f7['type']&&'formatInline'!=_0x21a7f7['type'])return;const {data:_0x6f81af}=_0x21a7f7;if(!_0x6f81af||'imageStyle'!=_0x6f81af['commandName'])return;const _0x1bb01f=_0x6f81af['commandParams'][0x0]['value'];return _0x21df68('side'===_0x1bb01f?o(_0x5c6494,'FORMAT_SIDE_IMAGE'):_0x5effa8[_0x1bb01f]||_0x1bb01f);function _0x21df68(_0x503e1c){return{'type':'format','content':o(_0x5c6494,'*Format:*\x20%0',_0x503e1c)};}});}}class at extends _0x4ba4b5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3163ec){super(_0x3163ec),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5d4439=this['editor'],_0x13fef4=_0x5d4439['commands']['get']('importWord'),_0x3ec716=_0x5d4439['commands']['get']('trackChanges');_0x13fef4&&(_0x13fef4['on']('execute',(_0x1222a4,[,_0x10d4e0])=>{this['_trackChangesValueDuringImport']=_0x3ec716['value'],_0x10d4e0['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x13fef4,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x13fef4,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3ec716['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5d4439['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1f406b,_0x1c96ce){const {suggestions:_0x52db0a}=_0x1c96ce,_0x26ce18=this['editor']['commands']['get']('trackChanges'),_0x260cae=_0x26ce18['value'];this['_trackChangesValueDuringImport']!==_0x260cae&&(_0x26ce18['execute'](),this['_trackChangesExecuted']=!0x0),_0x52db0a&&_0x52db0a['forEach'](({id:_0x795a76,type:_0x269a2c,author:_0xe7e09c,created_at:_0x14f705})=>{const _0x3bd03c={'id':_0x795a76,'type':_0x269a2c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xe7e09c,'createdAt':_0x14f705?new Date(_0x14f705):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3bd03c);});}}class ct extends _0x4ba4b5{['afterInit'](){const _0x5048ca=this['editor'],_0x5ec92d=_0x5048ca['plugins']['get']('TrackChangesEditing');if(_0x5048ca['plugins']['has']('IndentEditing')&&(_0x5ec92d['enableCommand']('indent'),_0x5ec92d['enableCommand']('outdent')),_0x5048ca['plugins']['has']('IndentBlock')){for(const _0x1cbdc1 of['indentBlock','outdentBlock'])_0x5ec92d['enableDefaultAttributesIntegration'](_0x1cbdc1);}const _0x5726cb=_0x5048ca['locale'];_0x5ec92d['registerBlockAttribute']('blockIndent'),_0x5ec92d['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5726cb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17918a=this['editor'],_0x1f7375=_0x17918a['locale'],_0x435476=_0x17918a['plugins']['get']('TrackChangesEditing');_0x435476['descriptionFactory']['registerDescriptionCallback'](_0x1aab51=>{if('formatBlock'!=_0x1aab51['type'])return;const {data:_0x5e3e18}=_0x1aab51;if(!_0x5e3e18)return;if('indentBlock'!=_0x5e3e18['commandName']&&'outdentBlock'!=_0x5e3e18['commandName'])return;const _0x17294c=_0x1aab51['getItems']()[0x0],_0x2f6bc6=_0x435476['descriptionFactory']['getItemLabel'](_0x17294c);return'indentBlock'==_0x5e3e18['commandName']?{'type':'format','content':o(_0x1f7375,'*Indent:*\x20%0',_0x2f6bc6)}:'outdentBlock'==_0x5e3e18['commandName']?{'type':'format','content':o(_0x1f7375,'*Outdent:*\x20%0',_0x2f6bc6)}:void 0x0;});}}class ut extends _0x4ba4b5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x4ba4b5{['afterInit'](){const _0x3d4565=this['editor'];if(!_0x3d4565['plugins']['has']('LinkEditing'))return;const _0x4a037f=_0x3d4565['plugins']['get']('TrackChangesEditing'),_0x399806=_0x3d4565['commands']['get']('link');_0x4a037f['enableDefaultAttributesIntegration']('link'),_0x4a037f['enableDefaultAttributesIntegration']('unlink'),_0x4a037f['registerInlineAttribute']('linkHref');for(const _0x3d3dc6 of _0x399806['manualDecorators'])_0x4a037f['registerInlineAttribute'](_0x3d3dc6['id']),_0x4a037f['descriptionFactory']['registerAttributeLabel'](_0x3d3dc6['id'],'link\x20('+_0x3d3dc6['label']['toLowerCase']()+')');_0x4a037f['descriptionFactory']['registerDescriptionCallback'](_0x1d5f42=>{if('attribute'!=_0x1d5f42['type'])return;const {data:_0x1c8919}=_0x1d5f42;if(!_0x1c8919||'linkHref'!=_0x1c8919['key'])return;const _0x4bd30b=_0x1c8919['newValue'],_0x5af4cd=_0x3d4565['locale'];return{'type':'format','content':null==_0x4bd30b?o(_0x5af4cd,'*Remove\x20link*'):o(_0x5af4cd,'*Set\x20link:*\x20%0','\x22'+_0x4bd30b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x359edf=this['editor'],_0x37a50d=_0x359edf['locale'];_0x359edf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19734a=>{if('formatInline'!=_0x19734a['type'])return;const {data:_0x5262a4}=_0x19734a;if(_0x5262a4){if('link'==_0x5262a4['commandName']){const _0x499a1e=_0x5262a4['commandParams'][0x0];return{'type':'format','content':o(_0x37a50d,'*Set\x20link:*\x20%0','\x22'+_0x499a1e+'\x22')};}return'unlink'==_0x5262a4['commandName']?{'type':'format','content':o(_0x37a50d,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x4ba4b5{['afterInit'](){const _0x38e112=this['editor'],_0x214b41=_0x38e112['locale'];if(!_0x38e112['plugins']['has']('LegacyListEditing'))return;const _0x41ce72=_0x38e112['plugins']['get']('TrackChangesEditing'),_0x2accaf=_0x38e112['plugins']['has']('LegacyTodoListEditing');function _0x2ca386(_0x52df14){return()=>{const _0x10cf7f=_0x38e112['model']['document']['selection'],_0x2af5a6=_0x38e112['commands']['get'](_0x52df14);if(_0x2af5a6['value'])return void _0x38e112['execute']('paragraph',{});const _0xf752ce=_0x52df14['slice'](0x0,-0x4),_0x228f2a=function(_0x4e85e0,_0x3bfddd,_0x11e773){let _0xe4bb3e=Array['from'](_0x4e85e0)['filter'](_0x209b76=>function(_0x462cc3,_0x2a1e3a){return _0x2a1e3a['checkChild'](_0x462cc3['parent'],'listItem')&&!_0x2a1e3a['isObject'](_0x462cc3);}(_0x209b76,_0x11e773));_0xe4bb3e=_0xe4bb3e['filter'](_0x20b573=>!_0x20b573['is']('element','listItem')||_0x20b573['getAttribute']('listType')!=_0x3bfddd);const _0x868885=new Set();for(const _0x5d8569 of _0xe4bb3e)_0x5d8569['is']('element','listItem')?_0x868885['add'](fe(_0x5d8569)):_0x868885['add'](_0x5d8569);return Array['from'](_0x868885);}(_0x10cf7f['getSelectedBlocks'](),_0xf752ce,_0x38e112['model']['schema']);_0x38e112['model']['change'](()=>{for(const _0x35a540 of _0x228f2a)_0x41ce72['markBlockFormat'](_0x35a540,{'commandName':_0x52df14,'commandParams':[{'forceValue':!_0x2af5a6['value']}],'formatGroupId':'blockName'},ue(_0x35a540));});};}function _0x497fb8(_0x3c488f){return()=>{const _0x51d6e5=function(_0x160958){let _0x317a8a=Array['from'](_0x160958);const _0x22a511=_0x317a8a['findIndex'](_0x4ec7a0=>'listItem'!=_0x4ec7a0['name']);return _0x22a511>-0x1&&(_0x317a8a=_0x317a8a['slice'](0x0,_0x22a511)),_0x317a8a;}(_0x38e112['model']['document']['selection']['getSelectedBlocks']()),_0x912210=_0x38e112['model']['createRange'](_0x38e112['model']['createPositionAt'](_0x51d6e5[0x0],'before'),_0x38e112['model']['createPositionAt'](_0x51d6e5[_0x51d6e5['length']-0x1],'end'));_0x38e112['model']['change'](()=>{_0x41ce72['markBlockFormat'](_0x912210,{'commandName':_0x3c488f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2b5fc5){const _0x135da6=new Set();for(const _0x1cb4d0 of _0x2b5fc5){let _0x4cb693=_0x1cb4d0['nextSibling'];for(;_0x4cb693&&_0x4cb693['getAttribute']('listIndent')>_0x1cb4d0['getAttribute']('listIndent');)_0x135da6['add'](_0x4cb693),_0x4cb693=_0x4cb693['nextSibling'];}return Array['from'](_0x135da6);}(_0x51d6e5));});};}_0x41ce72['enableCommand']('numberedList',_0x2ca386('numberedList')),_0x41ce72['enableCommand']('bulletedList',_0x2ca386('bulletedList')),_0x2accaf&&_0x41ce72['enableCommand']('todoList',_0x2ca386('todoList')),_0x41ce72['enableCommand']('indentList',_0x497fb8('indentList')),_0x41ce72['enableCommand']('outdentList',_0x497fb8('outdentList')),_0x2accaf&&_0x41ce72['enableCommand']('checkTodoList',()=>{const _0x363d66=_0x38e112['commands']['get']('checkTodoList'),_0x1642b7=Array['from'](_0x363d66['_selectedElements']);_0x1642b7['filter'](_0x550bf5=>_0x550bf5['getAttribute']('todoListChecked')!=_0x363d66['value']),_0x38e112['model']['change'](()=>{for(const _0x48db0b of _0x1642b7)_0x41ce72['markBlockFormat'](_0x48db0b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x363d66['value']}]});});}),_0x41ce72['descriptionFactory']['registerElementLabel']('listItem',_0x4c86db=>o(_0x214b41,'ELEMENT_LIST_ITEM',_0x4c86db)),_0x41ce72['descriptionFactory']['registerDescriptionCallback'](_0x3f4ee1=>{if('formatBlock'!=_0x3f4ee1['type']&&'formatInline'!=_0x3f4ee1['type'])return;const {data:_0x3b32cc}=_0x3f4ee1;if(_0x3b32cc){if('numberedList'==_0x3b32cc['commandName']||'bulletedList'==_0x3b32cc['commandName']||'todoList'==_0x3b32cc['commandName'])switch(_0x3b32cc['commandName']['replace']('List','')){case'bulleted':return _0x5f6a32(o(_0x214b41,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5f6a32(o(_0x214b41,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5f6a32(o(_0x214b41,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3b32cc['commandName'])return{'type':'format','content':o(_0x214b41,'*Indent:*\x20%0',o(_0x214b41,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3b32cc['commandName'])return{'type':'format','content':o(_0x214b41,'*Outdent:*\x20%0',o(_0x214b41,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3b32cc['commandName'])return _0x3b32cc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x214b41,'*Check\x20item*')}:{'type':'format','content':o(_0x214b41,'*Uncheck\x20item*')};}function _0x5f6a32(_0x2f2691){return{'type':'format','content':o(_0x214b41,'*Change\x20to:*\x20%0',_0x2f2691)};}});}}function fe(_0x142be2){const _0x36f175=_0x142be2['getAttribute']('listIndent');if(0x0==_0x36f175)return _0x142be2;let _0x446e60=_0x142be2;for(;_0x142be2['previousSibling']&&_0x142be2['previousSibling']['is']('element','listItem');){const _0x2310f3=_0x142be2['previousSibling']['getAttribute']('listIndent');if(_0x2310f3==_0x36f175)_0x446e60=_0x142be2['previousSibling'];else{if(_0x2310f3<_0x36f175)break;}_0x142be2=_0x142be2['previousSibling'];}return _0x446e60;}function ue(_0xefdaf4){const _0x348555=[];if(_0xefdaf4['is']('element','listItem')&&_0xefdaf4['getAttribute']('listIndent')>0x0){let _0x171bcc=_0xefdaf4['nextSibling'];for(;_0x171bcc&&'listItem'==_0x171bcc['name']&&_0x171bcc['getAttribute']('listIndent')==_0xefdaf4['getAttribute']('listIndent');)_0x348555['push'](_0x171bcc),_0x171bcc=_0x171bcc['nextSibling'];}return _0x348555;}class W extends _0x4ba4b5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1310f9=this['editor']['config']['get']('list.properties'),_0x13e189=this['editor']['plugins']['get']('TrackChangesEditing');_0x1310f9['styles']&&_0x13e189['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1310f9['reversed']&&_0x13e189['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1310f9['startIndex']&&_0x13e189['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x13e189['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5d1015,_0x2f7812={}){const _0x3b7391=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a9377=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3b7391['markMultiRangeBlockFormat'](_0x5a9377,{'commandName':'listStyle','commandParams':[{'type':_0x2f7812['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4242c7,_0x3840d7={}){const _0x323239=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4aef38=this['_getSuggestionBlocks'](_0x2e34c9=>_0x2e34c9['is']('element','listItem')&&'numbered'===_0x2e34c9['getAttribute']('listType'));if(_0x4aef38['length']<0x1)return;const _0x256749=_0x4aef38['map'](_0x5264de=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5264de,'before'),this['editor']['model']['createPositionAt'](_0x5264de,0x0)));this['editor']['model']['change'](()=>{_0x323239['markMultiRangeBlockFormat'](_0x256749,{'commandName':'listReversed','commandParams':[{'reversed':_0x3840d7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4da9da,_0x2f81a7={}){const _0x4ec3cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6182a1=this['_getSuggestionBlocks'](_0x30ce29=>_0x30ce29['is']('element','listItem')&&'numbered'===_0x30ce29['getAttribute']('listType'));if(_0x6182a1['length']<0x1)return;const _0x13bde8=_0x6182a1['map'](_0x65e672=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x65e672,'before'),this['editor']['model']['createPositionAt'](_0x65e672,0x0)));this['editor']['model']['change'](()=>{_0x4ec3cd['markMultiRangeBlockFormat'](_0x13bde8,{'commandName':'listStart','commandParams':[{'startIndex':_0x2f81a7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3d038e){if('formatBlock'!=_0x3d038e['type']&&'formatInline'!=_0x3d038e['type'])return;const _0x1bcc7e=this['editor']['locale'],{data:_0x42766}=_0x3d038e;if(!_0x42766)return;let _0x530314,_0x86ad56;switch(_0x42766['commandName']){case'listStyle':_0x530314='*Change\x20to:*\x20%0',_0x86ad56={'type':'format','content':o(_0x1bcc7e,_0x530314,o(_0x1bcc7e,this['_getTranslationKeyForListStyle'](_0x42766['commandParams'][0x0]['type'])))};break;case'listReversed':_0x530314=_0x42766['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x86ad56={'type':'format','content':o(_0x1bcc7e,_0x530314)};break;case'listStart':_0x530314='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x86ad56={'type':'format','content':o(_0x1bcc7e,_0x530314,_0x42766['commandParams'][0x0]['startIndex'])};}return _0x86ad56;}['_getSuggestionBlocksForListStyle'](){const _0x12ad02=this['editor']['plugins']['get']('LegacyListUtils');let _0x313576=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x313576[0x0]?.['is']('element','listItem')&&_0x313576['unshift'](..._0x12ad02['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x313576[_0x313576['length']-0x1]?.['is']('element','listItem')&&_0x313576['push'](..._0x12ad02['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x313576=[...new Set(_0x313576)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x313576=_0x313576['filter'](_0x596793=>_0x596793['is']('element','listItem'))),_0x313576;}['_getSuggestionBlocks'](_0x5ca684){const _0x5cce73=this['editor']['plugins']['get']('LegacyListUtils');let _0xdec1f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5ca684)['map'](_0xbf3ce7=>{const _0x4d8af7=this['editor']['model']['createPositionAt'](_0xbf3ce7,0x0);return[..._0x5cce73['getSiblingNodes'](_0x4d8af7,'backward'),..._0x5cce73['getSiblingNodes'](_0x4d8af7,'forward')];})['flat']();return _0xdec1f=[...new Set(_0xdec1f)],_0xdec1f;}['_getTranslationKeyForListStyle'](_0x543192){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x543192)||'default')['toUpperCase']()+'_LIST_'+_0x543192['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x4ba4b5{['afterInit'](){const _0x550dc=this['editor'];if(!_0x550dc['plugins']['has']('MediaEmbedEditing'))return;const _0x1181b0=_0x550dc['plugins']['get']('TrackChangesEditing'),_0x3c7181=_0x550dc['locale'];_0x1181b0['enableCommand']('mediaEmbed'),_0x1181b0['descriptionFactory']['registerElementLabel']('media',_0x25bbdf=>o(_0x3c7181,'ELEMENT_MEDIA',_0x25bbdf)),_0x550dc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x45a621,{writer:_0x2570f5,options:_0x4941ff})=>{if(_0x4941ff['showSuggestionHighlights'])return _0x2570f5['createEmptyElement']('div');},'converterPriority':'high'}),_0x550dc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5e687f,_0xaa0aa9,_0x4b71f1)=>{_0x4b71f1['options']['showSuggestionHighlights']&&_0x5e687f['stop']();},{'priority':'high'});}}class mt extends _0x4ba4b5{['afterInit'](){const _0x572da7=this['editor'];_0x572da7['plugins']['has']('MentionEditing')&&_0x572da7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x4ba4b5{['afterInit'](){const _0x24d716=this['editor'];if(!_0x24d716['plugins']['has']('MergeFieldsEditing'))return;_0x24d716['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x24d716['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x3288f5=_0x24d716['plugins']['get']('TrackChangesEditing'),_0x467bec=_0x24d716['locale'];_0x3288f5['descriptionFactory']['registerElementLabel']('mergeField',_0x35f8ab=>o(_0x467bec,'ELEMENT_MERGE_FIELD',_0x35f8ab)),_0x3288f5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5a59fc=>o(_0x467bec,'ELEMENT_MERGE_FIELD',_0x5a59fc)),_0x3288f5['descriptionFactory']['registerDescriptionCallback'](_0xbabbe0=>{if('insertion'!=_0xbabbe0['type']&&'deletion'!=_0xbabbe0['type'])return;const _0x46d552=_0xbabbe0['getContainedElement']();if(null==_0x46d552)return;if(!_0x46d552['is']('element','mergeField')&&!_0x46d552['is']('element','mergeFieldBlock'))return;const _0x2085d4=_0x24d716['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x46d552['getAttribute']('id'));return'insertion'==_0xbabbe0['type']?{'type':'insertion','content':o(_0x467bec,'*Insert:*\x20%0','\x22'+_0x2085d4+'\x22\x20'+o(_0x467bec,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x467bec,'*Remove:*\x20%0','\x22'+_0x2085d4+'\x22\x20'+o(_0x467bec,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x4ba4b5{['afterInit'](){const _0x2d39db=this['editor'],_0x4069b1=_0x2d39db['plugins']['get']('TrackChangesEditing');_0x2d39db['plugins']['has']('MultiLevelList')&&(_0x4069b1['enableDefaultAttributesIntegration']('multiLevelList'),_0x4069b1['registerBlockAttribute']('listMarkerStyle'),_0x4069b1['descriptionFactory']['registerDescriptionCallback'](_0x3f066c=>this['handleDescriptions'](_0x3f066c)));}['handleDescriptions'](_0x1fc887){const _0xa233b1=this['editor']['locale'],{data:_0x4c744d}=_0x1fc887,_0x2cae6d={'type':'format','content':''};if(_0x4c744d&&'listMarkerStyle'==_0x4c744d['key']){if(!_0x4c744d['oldValue'])return{'type':'format','content':o(_0xa233b1,'*Set\x20format:*\x20%0',o(_0xa233b1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c744d['newValue']+')'};if(!_0x4c744d['newValue']){let _0xa1c43e=_0x1fc887['head'];for(;_0xa1c43e;){if(_0xa1c43e['data']&&'listType'==_0xa1c43e['data']['key']&&_0xa1c43e['data']['newValue'])return _0x2cae6d;_0xa1c43e=_0xa1c43e['next'];}return{'type':'format','content':o(_0xa233b1,'*Remove\x20format:*\x20%0',o(_0xa233b1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4c744d['oldValue']+')'};}}}}class kt extends _0x4ba4b5{['afterInit'](){const _0x1bc04e=this['editor'];if(!_0x1bc04e['plugins']['has']('PageBreakEditing'))return;_0x1bc04e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x23839c=_0x1bc04e['plugins']['get']('TrackChangesEditing'),_0x435e02=_0x1bc04e['locale'];_0x23839c['descriptionFactory']['registerElementLabel']('pageBreak',_0x547ed3=>o(_0x435e02,'ELEMENT_PAGE_BREAK',_0x547ed3));}}class bt extends _0x4ba4b5{['afterInit'](){const _0x26f9d7=this['editor'];if(!_0x26f9d7['plugins']['has']('Paragraph'))return;const _0x3fc470=_0x26f9d7['locale'],_0x51bbe5=_0x26f9d7['plugins']['get']('TrackChangesEditing');_0x51bbe5['descriptionFactory']['registerElementLabel']('paragraph',_0x3b7131=>o(_0x3fc470,'ELEMENT_PARAGRAPH',_0x3b7131)),_0x51bbe5['enableDefaultAttributesIntegration']('paragraph'),_0x51bbe5['enableCommand']('insertParagraph'),_0x26f9d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x26f9d7),{'priority':'highest'}),_0x26f9d7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xce50d5,_0x169e14,_0x4a1a2f)=>{_0x4a1a2f['options']['showSuggestionHighlights']&&nr(_0x26f9d7,{'showActiveMarker':!0x1})(_0xce50d5,_0x169e14,_0x4a1a2f);},{'priority':'highest'});const _0xf2556e=_0x51bbe5['descriptionFactory'];_0xf2556e['registerDescriptionCallback'](_0x132eef=>{if('insertion'!==_0x132eef['type'])return;const {start:_0xae4aa3,end:_0x1ba298}=_0x132eef['getFirstRange']();if(!_0xae4aa3['isTouching'](_0x1ba298)||!_0xae4aa3['nodeAfter'])return;const _0xe2bf9=_0x26f9d7['model']['schema'],_0x7c6fa6=_0xae4aa3['nodeAfter'];return _0xe2bf9['isBlock'](_0x7c6fa6)&&!_0xe2bf9['isLimit'](_0x7c6fa6)&&_0xe2bf9['checkChild'](_0x7c6fa6,'$text')?{'type':'insertion','content':o(_0x3fc470,'*Insert:*\x20%0',_0xf2556e['getItemLabel'](_0x7c6fa6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bd5a0=this['editor'],_0x5219a6=_0x5bd5a0['locale'];_0x5bd5a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40a865=>{if('formatBlock'!=_0x40a865['type'])return;const {data:_0x1cd602}=_0x40a865;return _0x1cd602&&'paragraph'==_0x1cd602['commandName']?{'type':'format','content':o(_0x5219a6,'*Change\x20to:*\x20%0',o(_0x5219a6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x7a55b4,{showActiveMarker:_0x514d46=!0x0}={}){return(_0x361b7a,_0x39451e,_0xc5a64)=>{const _0x557497=_0x7a55b4['plugins']['get']('TrackChangesEditing'),_0x3ecb63=_0x39451e['markerRange']['start'],_0x9fcde1=_0x39451e['markerRange']['end'],_0x43c06f=_0x7a55b4['model']['schema'];if(!_0x3ecb63['isTouching'](_0x9fcde1)||!_0x3ecb63['nodeAfter'])return;const _0x1ec8a6=_0x3ecb63['nodeAfter'];if(_0x43c06f['isBlock'](_0x1ec8a6)&&!_0x43c06f['isLimit'](_0x1ec8a6)&&_0x43c06f['checkChild'](_0x1ec8a6,'$text')){if(!_0xc5a64['consumable']['consume'](_0x39451e['markerRange'],_0x361b7a['name']))return;const {authorId:_0x1d0803}=_0x557497['_splitMarkerName'](_0x39451e['markerName']),_0x129da9=_0xc5a64['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1d0803}),_0x36f2e2=_0xc5a64['mapper']['toViewPosition'](_0x9fcde1);_0x514d46&&_0x557497['activeMarkers']['includes'](_0x39451e['markerName'])&&_0xc5a64['writer']['addClass']('ck-suggestion-marker--active',_0x129da9),_0xc5a64['writer']['insert'](_0x36f2e2,_0x129da9),_0xc5a64['mapper']['bindElementToMarker'](_0x129da9,_0x39451e['markerName']);}};}class wt extends _0x4ba4b5{['afterInit'](){const _0x34f8e0=this['editor'];if(!_0x34f8e0['plugins']['has']('RemoveFormatEditing'))return;_0x34f8e0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1db9d5=this['editor'];_0x1db9d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46eed8=>{if('formatBlock'!=_0x46eed8['type']&&'formatInline'!=_0x46eed8['type'])return;const {data:_0xc61141}=_0x46eed8;return _0xc61141&&'removeFormat'==_0xc61141['commandName']?{'type':'format','content':o(_0x1db9d5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x4ba4b5{['afterInit'](){const _0x55f130=this['editor'];if(!_0x55f130['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2959bf=_0x55f130['plugins']['get']('TrackChangesEditing');_0x2959bf['enableCommand']('goToPreviousRestrictedEditingException'),_0x2959bf['enableCommand']('goToNextRestrictedEditingException');const _0x244db4=_0x55f130['plugins']['get']('RestrictedEditingModeEditing');_0x244db4['enableCommand']('trackChanges'),_0x244db4['enableCommand']('acceptSuggestion'),_0x244db4['enableCommand']('discardSuggestion'),_0x244db4['enableCommand']('acceptAllSuggestions'),_0x244db4['enableCommand']('discardAllSuggestions'),_0x244db4['enableCommand']('acceptSelectedSuggestions'),_0x244db4['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x4ba4b5{static get['requires'](){return[_0x4ecb7f];}['init'](){const _0x65d653=this['editor'],_0x28a43b=_0x65d653['plugins']['get']('TrackChangesEditing');_0x28a43b['enableCommand']('shiftEnter'),_0x65d653['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x65d653),{'priority':'high'}),_0x65d653['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x65d653),{'priority':'high'}),_0x65d653['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x38a78c,_0x30f22e,_0x4f7dc0)=>{_0x4f7dc0['options']['showSuggestionHighlights']&&ge(_0x65d653,{'showActiveMarker':!0x1})(_0x38a78c,_0x30f22e,_0x4f7dc0);}),_0x28a43b['descriptionFactory']['registerElementLabel']('softBreak',_0x31c212=>o(_0x65d653['locale'],'ELEMENT_LINE_BREAK',_0x31c212));}}function ge(_0x57faf9,{showActiveMarker:_0x5927db=!0x0}={}){return(_0x2b6511,_0x52f9ee,_0x3ca079)=>{const _0x19e1a8=_0x57faf9['plugins']['get']('TrackChangesEditing');if(!_0x3ca079['consumable']['test'](_0x52f9ee['markerRange'],_0x2b6511['name']))return;const _0x200ebe=_0x57faf9['model'];for(const _0x533415 of _0x52f9ee['markerRange']['getItems']()){if(!_0x533415['is']('element','softBreak'))continue;const _0x31bb8d='deletion'==_0x52f9ee['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x998a8e}=_0x19e1a8['_splitMarkerName'](_0x52f9ee['markerName']),_0x19872b=_0x3ca079['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31bb8d,'data-author-id':_0x998a8e}),_0x33a703=_0x3ca079['mapper']['toViewPosition'](_0x200ebe['createPositionBefore'](_0x533415));_0x5927db&&_0x19e1a8['activeMarkers']['includes'](_0x52f9ee['markerName'])&&_0x3ca079['writer']['addClass']('ck-suggestion-marker--active',_0x19872b),_0x3ca079['writer']['insert'](_0x33a703,_0x19872b),_0x3ca079['mapper']['bindElementToMarker'](_0x19872b,_0x52f9ee['markerName']);}};}class St extends _0x4ba4b5{['afterInit'](){const _0x40c698=this['editor'],_0x39476b=_0x40c698['model'],_0x518a05=_0x40c698['locale'];if(!_0x40c698['plugins']['has']('StandardEditingModeEditing'))return;const _0x5054f4=_0x40c698['plugins']['get']('TrackChangesEditing'),_0x5c82cb='restrictedEditingException',_0x46234e=_0x40c698['commands']['get'](_0x5c82cb);_0x5054f4['enableCommand'](_0x5c82cb,(_0x5655a5,_0x36801f={})=>{const _0x1c095f=_0x39476b['document']['selection'];if(_0x1c095f['isCollapsed'])return void _0x5655a5(_0x36801f);const _0x525ca4=void 0x0!==_0x36801f['forceValue']?_0x36801f['forceValue']:!_0x46234e['value'];_0x39476b['change'](()=>{const _0x460258=Array['from'](_0x1c095f['getRanges']());for(const _0x4ee61d of _0x460258){const _0x2ee21f=_0x525ca4?[_0x4ee61d]:io(_0x5c82cb,_0x4ee61d,_0x39476b);for(const _0x62a396 of _0x2ee21f)_0x5054f4['markInlineFormat'](_0x62a396,{'commandName':_0x5c82cb,'commandParams':[{'forceValue':_0x525ca4}]});}});}),_0x5054f4['descriptionFactory']['registerDescriptionCallback'](_0x2475de=>{if('formatBlock'!=_0x2475de['type']&&'formatInline'!=_0x2475de['type'])return;const {data:_0x28516c}=_0x2475de;return _0x28516c&&_0x28516c['commandName']==_0x5c82cb?_0x28516c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x518a05,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x518a05,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x4ba4b5{['afterInit'](){const _0xd4a639=this['editor'];if(!_0xd4a639['plugins']['has']('Style')||!_0xd4a639['plugins']['has']('DataSchema'))return;const _0x53fe28=_0xd4a639['plugins']['get']('TrackChangesEditing'),_0x1846ff=_0xd4a639['locale'],_0x1a07a7=_0xd4a639['config']['get']('style')||{},_0x3177d4=_0xd4a639['plugins']['get']('GeneralHtmlSupport'),_0x198fa5=_0xd4a639['plugins']['get']('StyleUtils')['normalizeConfig'](_0xd4a639['plugins']['get']('DataSchema'),_0x1a07a7['definitions']);_0x53fe28['enableDefaultAttributesIntegration']('style');const _0x49b170=new Set();for(const _0x5aa246 of _0x198fa5['block']){const _0x41eb37=_0x3177d4['getGhsAttributeNameForElement'](_0x5aa246['element']);_0x49b170['add'](_0x41eb37);}const _0xfe59be=new Set();for(const _0x75aca9 of _0x198fa5['inline']){const _0x405656=_0x3177d4['getGhsAttributeNameForElement'](_0x75aca9['element']);_0xfe59be['add'](_0x405656);for(const _0x14f27c of _0x75aca9['ghsAttributes'])_0xfe59be['add'](_0x14f27c);}for(const _0x1c0f8c of _0x49b170)_0x53fe28['registerBlockAttribute'](_0x1c0f8c),_0x53fe28['descriptionFactory']['registerAttributeLabel'](_0x1c0f8c,o(_0x1846ff,'FORMAT_STYLE'));for(const _0x4a4442 of _0xfe59be)_0x53fe28['registerInlineAttribute'](_0x4a4442),_0x53fe28['descriptionFactory']['registerAttributeLabel'](_0x4a4442,o(_0x1846ff,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ef1e7=this['editor'],_0x4a553a=_0x2ef1e7['locale'];_0x2ef1e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a5788=>{if('formatBlock'!=_0x3a5788['type']&&'formatInline'!=_0x3a5788['type'])return;const {data:_0x4ab6a8}=_0x3a5788;return _0x4ab6a8&&'style'===_0x4ab6a8['commandName']?_0x4ab6a8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a553a,'*Set\x20format:*\x20%0',_0x4ab6a8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4a553a,'*Remove\x20format:*\x20%0',_0x4ab6a8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x4ba4b5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x37057c){super(_0x37057c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x57255f=this['editor'],_0x406c1e=_0x57255f['model']['document']['selection'];if(!_0x57255f['plugins']['has']('TableEditing'))return;const _0x5660f7=_0x57255f['locale'],_0x39f226=_0x57255f['plugins']['get']('TrackChangesEditing'),_0x50b30c=_0x57255f['plugins']['get']('TableUtils');_0x39f226['descriptionFactory']['registerElementLabel']('table',_0x56755b=>o(_0x5660f7,'ELEMENT_TABLE',_0x56755b)),this['_setupColumnsRowsFixing'](),_0x39f226['enableCommand']('insertTable'),_0x39f226['enableCommand']('selectTableRow'),_0x39f226['enableCommand']('selectTableColumn');for(const _0x442d7a of['insertTableRowAbove','insertTableRowBelow']){const _0x33ea0c=_0x57255f['commands']['get'](_0x442d7a);_0x39f226['enableCommand'](_0x442d7a,_0x3ae229=>{_0x57255f['model']['change'](_0x33cb06=>{_0x3ae229();const _0x4e0cc9='above'===_0x33ea0c['order'],_0x53907e=_0x50b30c['getSelectionAffectedTableCells'](_0x406c1e),_0x3d3469=_0x50b30c['getRowIndexes'](_0x53907e),_0x3295a7=_0x4e0cc9?_0x3d3469['first']-0x1:_0x3d3469['last']+0x1,_0x655bff=_0x53907e[0x0]['findAncestor']('table'),_0x782920=_0x50b30c['createTableWalker'](_0x655bff,{'startRow':_0x3295a7,'endRow':_0x3295a7}),_0x1017b8=Array['from'](_0x782920)['map'](_0x217e7a=>_0x33cb06['createRangeOn'](_0x217e7a['cell']));_0x39f226['markMultiRangeInsertion'](_0x1017b8,'tableRow');});});}for(const _0x3eef3a of['insertTableColumnLeft','insertTableColumnRight']){const _0x4d9bdf=_0x57255f['commands']['get'](_0x3eef3a);_0x39f226['enableCommand'](_0x3eef3a,_0x32a1f9=>{_0x57255f['model']['change'](_0x48783f=>{_0x32a1f9();const _0x2073df='left'===_0x4d9bdf['order'],_0x262d61=_0x50b30c['getSelectionAffectedTableCells'](_0x406c1e),_0x5c171e=_0x50b30c['getColumnIndexes'](_0x262d61),_0x8953b2=_0x2073df?_0x5c171e['first']-0x1:_0x5c171e['last']+0x1,_0xf67503=_0x262d61[0x0]['findAncestor']('table'),_0x8a2813=_0x50b30c['createTableWalker'](_0xf67503,{'startRow':0x0,'column':_0x8953b2,'includeAllSlots':!0x1}),_0x17d874=Array['from'](_0x8a2813)['map'](_0x331ff4=>_0x48783f['createRangeOn'](_0x331ff4['cell']));_0x39f226['markMultiRangeInsertion'](_0x17d874,'tableColumn');});});}for(const _0x3f5465 of['removeTableRow','removeTableColumn']){const _0x4a777b=_0x3f5465['substr'](0xb),_0x18f799=_0x4a777b['toLowerCase'](),_0x558e8d=_0x18f799['substr'](0x0,0x3)+'span',_0x24c8f8='table'+_0x4a777b,_0x1da936='min'+_0x4a777b,_0x334449='max'+_0x4a777b;_0x39f226['enableCommand'](_0x3f5465,()=>{_0x57255f['model']['change'](_0x408155=>{const _0x50ef3a=_0x50b30c['getSelectionAffectedTableCells'](_0x406c1e),_0x3cae17=_0x50ef3a[0x0]['findAncestor']('table');let _0x54749b;if('removeTableRow'==_0x3f5465){const _0x311abe=_0x50b30c['getRowIndexes'](_0x50ef3a);_0x54749b={'startRow':_0x311abe['first'],'endRow':_0x311abe['last'],'includeAllSlots':!0x0};}else{const _0xe9a935=_0x50b30c['getColumnIndexes'](_0x50ef3a);_0x54749b={'startColumn':_0xe9a935['first'],'endColumn':_0xe9a935['last'],'includeAllSlots':!0x0};}const _0x146b12=_0x50b30c['createTableWalker'](_0x3cae17,_0x54749b),_0x2dab77=Array['from'](_0x146b12)['map'](({cell:_0xdd26e0})=>_0xdd26e0),_0x2e7a2f=be(_0x2dab77['filter'](_0x34db34=>_0x34db34['hasAttribute'](_0x558e8d))),_0x4834b9=be(_0x2dab77['filter'](_0x475da4=>!_0x475da4['hasAttribute'](_0x558e8d)))['map'](_0x321458=>_0x408155['createRangeOn'](_0x321458)),_0x5d6ccb=_0x39f226['markMultiRangeDeletion'](_0x4834b9,_0x24c8f8);if(_0x5d6ccb&&('tableRow'==_0x5d6ccb['subType']||'tableColumn'==_0x5d6ccb['subType'])){const _0x34e10d=this['_getSuggestionCoords'](_0x5d6ccb);for(const _0x39a377 of _0x2e7a2f){const _0x47e7e6=_0x408155['createRangeOn'](_0x39a377),_0x12d6f1=_0x50b30c['getCellLocation'](_0x39a377),_0x562448=_0x39a377['getAttribute'](_0x558e8d)-0x1,_0x1bb009=_0x34e10d[_0x1da936],_0x2c9bf8=_0x34e10d[_0x334449];_0x1bb009<=_0x12d6f1[_0x18f799]&&_0x12d6f1[_0x18f799]+_0x562448<=_0x2c9bf8&&_0x5d6ccb['addRange'](_0x47e7e6);}}});});}function _0x4cbad6(_0x2b0e74){const _0x4ac19d=Array['from'](_0x406c1e['getRanges']())['map'](_0x34175c=>_0x1a312e['fromRange'](_0x34175c));_0x57255f['model']['change'](_0x1a86ef=>{const _0x3b1538=_0x1a86ef['batch'];_0x2b0e74=_0x2b0e74['filter'](_0x4f6485=>'$graveyard'!=_0x4f6485['root']['rootName']),_0x1a86ef['setSelection'](_0x2b0e74),_0x57255f['commands']['get']('removeTableRow')['refresh'](),_0x57255f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x57255f['model']['enqueueChange'](()=>{_0x57255f['model']['enqueueChange'](_0x3b1538,_0x50fe20=>{const _0x2021f1=_0x4ac19d['filter'](_0x28339a=>'$graveyard'!=_0x28339a['root']['rootName']);_0x2021f1['length']>0x0&&_0x50fe20['setSelection'](_0x2021f1);for(const _0xaa56cf of _0x4ac19d)_0xaa56cf['detach']();});});});}function _0x25caac(_0x587f8){_0x57255f['model']['change'](_0x2e289e=>{const _0x33776d=Array['from'](_0x406c1e['getRanges']())['map'](_0x41b603=>_0x1a312e['fromRange'](_0x41b603)),_0x5250ea=[];for(const _0x475288 of _0x587f8)for(const _0x262634 of _0x475288['getItems']({'shallow':!0x0}))_0x5250ea['push'](_0x262634);for(const _0x298157 of _0x5250ea)'$graveyard'!=_0x298157['root']['rootName']&&(_0x2e289e['setSelection'](_0x2e289e['createPositionAt'](_0x298157,0x0)),_0x57255f['commands']['get']('removeTableColumn')['refresh'](),_0x57255f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4021d9=_0x33776d['filter'](_0x488806=>'$graveyard'!=_0x488806['root']['rootName']);_0x4021d9['length']>0x0&&_0x2e289e['setSelection'](_0x4021d9);for(const _0x386108 of _0x33776d)_0x386108['detach']();});}function _0xff26d5(_0x1c1fa4,_0x3f74a9){return _0x3f74a9['every'](_0x5a8561=>_0x1c1fa4['some'](_0x5e7a6a=>_0x5e7a6a['end']['isEqual'](_0x5a8561['start'])||_0x5a8561['end']['isEqual'](_0x5e7a6a['start'])));}function _0x3d6c04(_0x425212,_0x3649c8){return!_0x425212['some'](_0x1837a6=>_0x3649c8['some'](_0x42a9f7=>_0x1837a6['isIntersecting'](_0x42a9f7)))&&_0x425212['some'](_0x3b75b2=>_0x3649c8['some'](_0x1d3add=>_0x3b75b2['end']['isTouching'](_0x1d3add['start'])));}_0x57255f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x51201c,_0x3d65fa,_0x1c90a3)=>{if(!_0x1c90a3['options']['showSuggestionHighlights'])return;const _0xdca07d=_0x3d65fa['item'];if(!_0xdca07d)return;const _0x550519=_0x1c90a3['mapper']['toViewElement'](_0xdca07d);function _0x4dd66c(_0x5c020f){return Array['isArray'](_0x5c020f)?_0x5c020f:[_0x5c020f];}_0x550519&&'tableCell'===_0xdca07d['name']&&_0x530c8b(_0x550519,_0x1c90a3['writer'],(_0x29c2b4,_0x54a78a,_0x147900)=>_0x147900['addClass'](_0x4dd66c(_0x54a78a['classes']),_0x29c2b4),(_0x2ef1b2,_0x5adebf,_0x161a6e)=>_0x161a6e['removeClass'](_0x4dd66c(_0x5adebf['classes']),_0x2ef1b2));},{'priority':'highest'}),_0x39f226['descriptionFactory']['registerDescriptionCallback'](_0x5f5db1=>{if('insertion'!=_0x5f5db1['type']&&'deletion'!=_0x5f5db1['type'])return;const _0x30b103=_0x5f5db1['getContainedElement']();if(null!=_0x30b103&&_0x30b103['is']('element','table')){if('insertion'==_0x5f5db1['type']){const _0x3af9df=_0x5f5db1['getItems']()['filter'](_0x4a2620=>_0x4a2620['is']('$textProxy'))['map'](_0x423600=>_0x423600['data']);if(_0x3af9df['length'])return{'type':'insertion','content':o(_0x5660f7,'*Insert:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3af9df['join']('\x20')+'\x22'))};}if('deletion'==_0x5f5db1['type']){const _0x490479=_0x5f5db1['getItems']()['filter'](_0x137cbe=>_0x137cbe['is']('$textProxy'))['map'](_0x4b144c=>_0x4b144c['data']);if(_0x490479['length'])return{'type':'deletion','content':o(_0x5660f7,'*Remove:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x490479['join']('\x20')+'\x22'))};}}}),_0x39f226['descriptionFactory']['registerDescriptionCallback'](_0x41646e=>{if('tableRow'==_0x41646e['subType']){const _0x10cde9=_0x41646e['getItems']()['filter'](_0x5a8c6c=>_0x5a8c6c['is']('$textProxy'))['map'](_0x2d6f06=>_0x2d6f06['data']),_0x37b1b3=this['_getSuggestionCoords'](_0x41646e),_0x4fde29=_0x37b1b3['maxRow']-_0x37b1b3['minRow']+0x1;if('insertion'==_0x41646e['type'])return _0x10cde9['length']?{'type':'insertion','content':o(_0x5660f7,'*Insert:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4fde29,'\x22'+_0x10cde9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5660f7,'*Insert:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_ROW',_0x4fde29))};if('deletion'==_0x41646e['type'])return _0x10cde9['length']?{'type':'deletion','content':o(_0x5660f7,'*Remove:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4fde29,'\x22'+_0x10cde9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5660f7,'*Remove:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_ROW',_0x4fde29))};}if('tableColumn'==_0x41646e['subType']){const _0x2ae4a5=_0x41646e['getItems']()['filter'](_0x238334=>_0x238334['is']('$textProxy'))['map'](_0x3368d8=>_0x3368d8['data']),_0x42dc15=this['_getSuggestionCoords'](_0x41646e),_0x4c2274=_0x42dc15['maxColumn']-_0x42dc15['minColumn']+0x1;if('insertion'==_0x41646e['type'])return _0x2ae4a5['length']?{'type':'insertion','content':o(_0x5660f7,'*Insert:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4c2274,'\x22'+_0x2ae4a5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5660f7,'*Insert:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_COLUMN',_0x4c2274))};if('deletion'==_0x41646e['type'])return _0x2ae4a5['length']?{'type':'deletion','content':o(_0x5660f7,'*Remove:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4c2274,'\x22'+_0x2ae4a5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5660f7,'*Remove:*\x20%0',o(_0x5660f7,'ELEMENT_TABLE_COLUMN',_0x4c2274))};}}),_0x39f226['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4cbad6),_0x39f226['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4cbad6),_0x39f226['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x25caac),_0x39f226['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x25caac),_0x39f226['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xff26d5),_0x39f226['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xff26d5),_0x39f226['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3d6c04),_0x39f226['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3d6c04);}['_acceptFormatSuggestionCallbackFactory'](){const _0xbe36e=this['editor'],_0x35342b=_0xbe36e['model']['document']['selection'];return(_0x2a8065,_0x133145)=>{_0xbe36e['model']['change'](_0x1c9f1d=>{const {commandName:_0x41becc,commandParams:_0x4d92b4}=_0x133145;let _0x457362=_0x2a8065[0x0]['end']['nodeBefore'];_0x4d92b4&&_0x4d92b4[0x0]&&!0x1===_0x4d92b4[0x0]['forceValue']&&(_0x457362=_0x2a8065[0x0]['start']['nodeAfter']);const _0xa1f043=_0x1c9f1d['createRangeIn'](_0x457362);if('$graveyard'==_0xa1f043['root']['rootName'])return;const _0x372a85=Array['from'](_0x35342b['getRanges']())['map'](_0x5813a6=>_0x1a312e['fromRange'](_0x5813a6));_0x1c9f1d['setSelection'](_0xa1f043),_0xbe36e['commands']['get'](_0x41becc)['refresh'](),_0x4d92b4['push']({'forceDefaultExecution':!0x0}),_0xbe36e['execute'](_0x41becc,..._0x4d92b4);const _0x15bd6e=_0x372a85['filter'](_0x161035=>'$graveyard'!=_0x161035['root']['rootName']);_0x15bd6e['length']>0x0&&_0x1c9f1d['setSelection'](_0x15bd6e);for(const _0x1225f8 of _0x372a85)_0x1225f8['detach']();});};}['_getCoordsForCells'](_0x2f4480){const _0x3b789a=this['editor']['plugins']['get']('TableUtils');let _0x555cad=Number['MAX_SAFE_INTEGER'],_0x54c158=Number['MIN_SAFE_INTEGER'],_0x133c53=Number['MAX_SAFE_INTEGER'],_0x4aec7d=Number['MIN_SAFE_INTEGER'];for(const _0x3dd864 of _0x2f4480){if('$graveyard'==_0x3dd864['root']['rootName'])continue;const {row:_0x48c3a8,column:_0x4801a6}=_0x3b789a['getCellLocation'](_0x3dd864),_0x1e3201=_0x3dd864['hasAttribute']('rowspan')?_0x3dd864['getAttribute']('rowspan')-0x1:0x0,_0x4168b3=_0x3dd864['hasAttribute']('colspan')?_0x3dd864['getAttribute']('colspan')-0x1:0x0;_0x555cad=_0x48c3a8<_0x555cad?_0x48c3a8:_0x555cad,_0x54c158=_0x48c3a8+_0x1e3201>_0x54c158?_0x48c3a8+_0x1e3201:_0x54c158,_0x133c53=_0x4801a6<_0x133c53?_0x4801a6:_0x133c53,_0x4aec7d=_0x4801a6+_0x4168b3>_0x4aec7d?_0x4801a6+_0x4168b3:_0x4aec7d;}return{'minRow':_0x555cad,'maxRow':_0x54c158,'minColumn':_0x133c53,'maxColumn':_0x4aec7d};}['_setupColumnsRowsFixing'](){const _0x10da4a=this['editor'],_0x2b48a8=_0x10da4a['plugins']['get']('TrackChangesEditing'),_0x54dd23=_0x10da4a['plugins']['get']('TableUtils');_0x10da4a['model']['document']['on']('change:data',()=>{const _0xc0ca28=Array['from'](_0x10da4a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a125a,data:_0xe7e0c6}of _0xc0ca28){const {group:_0xfec86,id:_0x1cca4e,subType:_0x508d40}=_0x2b48a8['_splitMarkerName'](_0x5a125a);if('suggestion'!=_0xfec86)continue;if(null!=_0xe7e0c6['oldRange'])continue;const _0x40cc42=_0x2b48a8['getSuggestion'](_0x1cca4e);this['_tablePostFixingSubtypes']['includes'](_0x508d40)&&this['_tableSuggestions']['add'](_0x40cc42);}},{'priority':'low'});const _0x31f960=(_0x4246cf,_0xdaf639)=>{let _0x3eff76=!0x1;const _0x4ed2c3=_0xdaf639['createRangeOn'](_0x4246cf),_0x1bacf1=_0x4246cf['findAncestor']('table'),_0x5cd84e=_0x54dd23['getCellLocation'](_0x4246cf);for(const _0x5a01a9 of this['_tableSuggestions']){const _0x4b3537=_0x5a01a9['subType'],_0x5ca8b4=_0x4b3537['startsWith']('tablePaste'),_0xb7f129=_0x4b3537['substr'](_0x5ca8b4?0xa:0x5),_0xb06c84=_0xb7f129['toLowerCase'](),_0x5cbce4=_0xb06c84['substr'](0x0,0x3)+'span',_0x35fec8='min'+_0xb7f129,_0x1f9d53='max'+_0xb7f129;if(!_0x5a01a9['isInContent'])continue;if(_0x1bacf1!=_0x5a01a9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5a01a9['isIntersectingWithRange'](_0x4ed2c3))continue;const _0x72ac2f=_0x4246cf['hasAttribute'](_0x5cbce4)?_0x4246cf['getAttribute'](_0x5cbce4)-0x1:0x0,_0x162545=this['_getSuggestionCoords'](_0x5a01a9),_0xa6cf92=_0x162545[_0x35fec8],_0x53da96=_0x162545[_0x1f9d53];_0xa6cf92<=_0x5cd84e[_0xb06c84]&&_0x5cd84e[_0xb06c84]+_0x72ac2f<=_0x53da96&&(_0x5a01a9['addRange'](_0x4ed2c3),_0x3eff76=!0x0);}return _0x3eff76;};_0x10da4a['model']['document']['registerPostFixer'](_0x225e1d=>{let _0x254df7=!0x1;for(const _0x1de660 of _0x10da4a['model']['document']['differ']['getChanges']())if('insert'==_0x1de660['type']){if('tableRow'==_0x1de660['name']){for(const _0x4284a1 of _0x1de660['position']['nodeAfter']['getChildren']())_0x254df7=_0x254df7||_0x31f960(_0x4284a1,_0x225e1d);}else'tableCell'==_0x1de660['name']&&(_0x254df7=_0x254df7||_0x31f960(_0x1de660['position']['nodeAfter'],_0x225e1d));}return _0x254df7;});}['_getSuggestionCoords'](_0x4bf690){return this['_getCoordsForCells'](_0x4bf690['getRanges']()['map'](_0x3d1d50=>_0x3d1d50['start']['nodeAfter']));}}function be(_0x2bc990){return Array['from'](new Set(_0x2bc990)['values']());}class vt extends _0x4ba4b5{static get['requires'](){return[It];}['afterInit'](){const _0x32bac0=this['editor'],_0x3827a9=_0x32bac0['model']['document']['selection'],_0x111720=_0x32bac0['locale'];if(!_0x32bac0['plugins']['has']('TableEditing'))return;const _0x4afd23=_0x32bac0['plugins']['get']('TrackChangesEditing'),_0x243178=_0x32bac0['plugins']['get']('TableUtils'),_0x1f90ea=_0x32bac0['plugins']['get'](It);_0x1f90ea['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4afd23['enableCommand']('mergeTableCells',()=>{const _0x4740a8=_0x243178['getSelectionAffectedTableCells'](_0x32bac0['model']['document']['selection']);_0x32bac0['model']['change'](()=>{_0x4afd23['markMultiRangeBlockFormat'](_0x4740a8,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x32bac0['commands']['get']('mergeTableCells')['on']('execute',(_0x31107a,_0x3061d4)=>{_0x32bac0['commands']['get']('trackChanges')['value']&&(_0x3061d4['length']>0x0&&_0x3061d4[_0x3061d4['length']-0x1]&&_0x3061d4[_0x3061d4['length']-0x1]['forceDefaultExecution']||_0x4afd23['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x31107a['stop']());},{'priority':'highest'});for(const _0x300ff9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xb71297=_0x32bac0['commands']['get'](_0x300ff9);_0x4afd23['enableCommand'](_0x300ff9,()=>{const _0x56134a=_0x32bac0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x22c5e3=>_0x22c5e3['is']('element','tableCell')),_0x15bdc5=_0xb71297['value'];_0x32bac0['model']['change'](()=>{_0x4afd23['markMultiRangeBlockFormat']([_0x56134a,_0x15bdc5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x168a0b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x8a0c51=_0x32bac0['commands']['get'](_0x168a0b);_0x4afd23['enableCommand'](_0x168a0b,()=>{const _0x4405a2=_0x243178['getSelectionAffectedTableCells'](_0x32bac0['model']['document']['selection'])[0x0],_0x129c97=_0x4405a2['findAncestor']('table'),{column:_0x1d2840,row:_0x575788}=_0x243178['getCellLocation'](_0x4405a2);let _0x2fc27=[];if('horizontally'==_0x8a0c51['direction']){const _0x7529ec=_0x243178['createTableWalker'](_0x129c97,{'startRow':_0x575788,'endRow':_0x575788,'includeAllSlots':!0x0});_0x2fc27=Array['from'](_0x7529ec)['map'](_0x817391=>_0x817391['cell']);}else{const _0x17a9c3=_0x243178['createTableWalker'](_0x129c97,{'column':_0x1d2840,'includeAllSlots':!0x0});_0x2fc27=Array['from'](_0x17a9c3)['map'](_0x34bbec=>_0x34bbec['cell']);}_0x32bac0['model']['change'](_0x47191e=>{_0x4afd23['markBlockFormat'](_0x47191e['createRangeOn'](_0x4405a2),{'commandName':_0x168a0b,'commandParams':[]},_0x2fc27,_0x168a0b);});});}_0x4afd23['descriptionFactory']['registerDescriptionCallback'](_0xd035eb=>{if('formatBlock'!=_0xd035eb['type']&&'formatInline'!=_0xd035eb['type'])return;const {data:_0x1ec0dc}=_0xd035eb;return _0x1ec0dc&&'mergeTableCells'==_0x1ec0dc['commandName']?{'type':'format','content':o(_0x111720,'*Merge\x20cells*')}:void 0x0;}),_0x4afd23['descriptionFactory']['registerDescriptionCallback'](_0x4db1d1=>{if('formatBlock'!=_0x4db1d1['type']&&'formatInline'!=_0x4db1d1['type'])return;const {data:_0x384cb7}=_0x4db1d1;return _0x384cb7?'splitTableCellVertically'==_0x384cb7['commandName']?{'type':'format','content':o(_0x111720,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x384cb7['commandName']?{'type':'format','content':o(_0x111720,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x290fd8=_0x1f90ea['_acceptFormatSuggestionCallbackFactory']();for(const _0x2d02ab of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4afd23['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d02ab,'accept',_0x290fd8);for(const _0x67df3c of['splitTableCellVertically','splitTableCellHorizontally'])_0x4afd23['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x67df3c,'accept',_0x290fd8);_0x4afd23['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xff2fd1=>{_0x32bac0['model']['change'](_0x314449=>{const _0x122d97=Array['from'](_0x3827a9['getRanges']())['map'](_0xc6b6ec=>_0x1a312e['fromRange'](_0xc6b6ec));_0x314449['setSelection'](_0xff2fd1),_0x32bac0['commands']['get']('mergeTableCells')['refresh'](),_0x32bac0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2c5498=_0x122d97['filter'](_0x451805=>'$graveyard'!=_0x451805['root']['rootName']);_0x2c5498['length']>0x0&&_0x314449['setSelection'](_0x2c5498);for(const _0x169eab of _0x122d97)_0x169eab['detach']();});});for(const _0x1ad70b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2222e6=_0x32bac0['commands']['get'](_0x1ad70b);_0x2222e6['on']('set:isEnabled',(_0x5cd07e,_0xac71c4,_0x3ab118)=>{if(_0x3ab118){const _0x1d1943=_0x32bac0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x234161=>_0x234161['is']('element','tableCell'));this['_areMergableCells'](_0x2222e6['value'],_0x1d1943)||(_0x5cd07e['return']=!0x1,_0x5cd07e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x6420bf=this['editor']['commands']['get']('mergeTableCells'),_0x21fbff=this['editor']['plugins']['get']('TableUtils');if(!_0x6420bf['isEnabled'])return!0x1;const _0x25492a=_0x21fbff['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x471d59 of _0x25492a)for(const _0x5cea80 of _0x25492a)if(_0x471d59!=_0x5cea80&&!this['_areMergableCells'](_0x471d59,_0x5cea80))return!0x1;return!0x0;}['_areMergableCells'](_0x42d77e,_0x213ccf){const _0x46d434=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27b765=this['editor']['model']['createRangeOn'](_0x42d77e),_0x5d888c=this['editor']['model']['createRangeOn'](_0x213ccf),_0x52ec3b=new Set(),_0x1f2d3c=new Set();for(const _0x2feaf2 of _0x46d434['getSuggestions']())if(('insertion'==_0x2feaf2['type']||'deletion'==_0x2feaf2['type']||'mergeTableCells'==_0x2feaf2['subType'])&&_0x2feaf2['isInContent']){for(const _0x2eb362 of _0x2feaf2['getRanges']())_0x2eb362['containsRange'](_0x27b765,!0x0)&&_0x52ec3b['add'](_0x2feaf2['type']+':'+_0x2feaf2['author']['id']),_0x2eb362['containsRange'](_0x5d888c,!0x0)&&_0x1f2d3c['add'](_0x2feaf2['type']+':'+_0x2feaf2['author']['id']);}if(_0x52ec3b['size']!=_0x1f2d3c['size'])return!0x1;for(const _0x35f958 of _0x52ec3b)if(!_0x1f2d3c['has'](_0x35f958))return!0x1;return!0x0;}}class Ct extends _0x4ba4b5{static get['requires'](){return[It];}['afterInit'](){const _0x42e268=this['editor'];if(!_0x42e268['plugins']['has']('TableEditing'))return;const _0x1b12ff=_0x42e268['locale'],_0x18a39e=_0x42e268['plugins']['get']('TrackChangesEditing');_0x18a39e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x18a39e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x18a39e['registerBlockAttribute']('headingRows'),_0x18a39e['registerBlockAttribute']('headingColumns'),_0x18a39e['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1b12ff,'FORMAT_HEADER_ROW')),_0x18a39e['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1b12ff,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59449c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x207e10=this['editor']['plugins']['get']('TableUtils'),_0x444f6c=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x5a99ff({showActiveMarker:_0x4037b5=!0x0,setDataAttribute:_0x4d407d=!0x0}={}){return(_0x352f26,_0x4e3144,_0x4f2a1d)=>{const {type:_0x32a6d0,id:_0x424666}=_0x59449c['_splitMarkerName'](_0x4e3144['markerName']),_0x48e1cc=_0x59449c['getSuggestion'](_0x424666),_0x56b423=_0x48e1cc['data'];if('formatBlock'!=_0x48e1cc['type']||!_0x56b423||'setTableColumnHeader'!=_0x56b423['commandName'])return;if(_0x4e3144['item'])return void _0x352f26['stop']();if(!_0x4f2a1d['consumable']['consume'](_0x4e3144['markerRange'],_0x352f26['name']))return;const _0x1d76ea=_0x4e3144['markerRange']['start']['nodeAfter'],_0x387ce4=_0x4e3144['markerRange']['end']['nodeBefore'],_0x15c1c7=_0x1d76ea['parent']['parent'],{column:_0xa78dd1}=_0x207e10['getCellLocation'](_0x1d76ea),{column:_0x1af853}=_0x207e10['getCellLocation'](_0x387ce4);for(let _0x1bf346=_0xa78dd1;_0x1bf346<=_0x1af853;_0x1bf346++){const _0x5a763c=_0x207e10['createTableWalker'](_0x15c1c7,{'column':_0x1bf346,'includeAllSlots':!0x1});for(const _0x5ec8e6 of _0x5a763c){const _0x129f97=_0x5ec8e6['cell'],_0x4b9d7e=_0x4f2a1d['mapper']['toViewElement'](_0x129f97);_0x4f2a1d['writer']['addClass']('ck-suggestion-marker-'+_0x32a6d0,_0x4b9d7e),_0x4d407d&&_0x4f2a1d['writer']['setAttribute']('data-suggestion',_0x424666,_0x4b9d7e),_0x4f2a1d['mapper']['bindElementToMarker'](_0x4b9d7e,_0x4e3144['markerName']),_0x4037b5&&(_0x59449c['activeMarkers']['includes'](_0x4e3144['markerName'])?_0x4f2a1d['writer']['addClass']('ck-suggestion-marker--active',_0x4b9d7e):_0x4f2a1d['writer']['removeClass']('ck-suggestion-marker--active',_0x4b9d7e));}}};}_0x59449c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x444f6c),_0x59449c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x444f6c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5a99ff(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a7afb,_0x30ec00,_0x3042e4)=>{_0x3042e4['options']['showSuggestionHighlights']&&_0x5a99ff({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1a7afb,_0x30ec00,_0x3042e4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x46000f,_0x1bf62e,_0xe4d9dd)=>{const {type:_0x5efc9d,id:_0x501a3a}=_0x59449c['_splitMarkerName'](_0x1bf62e['markerName']),_0x3074fa=_0x59449c['getSuggestion'](_0x501a3a),_0x314905=_0x3074fa['data'];if('formatBlock'!=_0x3074fa['type']||!_0x314905||'setTableColumnHeader'!=_0x314905['commandName'])return;const _0x41843f=_0xe4d9dd['mapper']['markerNameToElements'](_0x1bf62e['markerName']);if(_0x41843f){for(const _0xd74e6e of _0x41843f)_0xe4d9dd['writer']['removeClass']('ck-suggestion-marker-'+_0x5efc9d,_0xd74e6e),_0xe4d9dd['writer']['removeClass']('ck-suggestion-marker--active',_0xd74e6e),_0xe4d9dd['writer']['removeAttribute']('data-suggestion',_0xd74e6e),_0xe4d9dd['mapper']['unbindElementFromMarkerName'](_0xd74e6e,_0x1bf62e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xed58ee=this['editor'],_0x278add=_0xed58ee['locale'];function _0x1ffc89(_0x26baad){return{'type':'format','content':o(_0x278add,'*Format:*\x20%0',_0x26baad)};}_0xed58ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20f552=>{if('formatBlock'!=_0x20f552['type'])return;const {data:_0x5d302f}=_0x20f552;if(_0x5d302f){if('setTableRowHeader'==_0x5d302f['commandName']){const _0x2bfde8=_0x5d302f['commandParams'][0x0]['forceValue'];return _0x1ffc89(o(_0x278add,_0x2bfde8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5d302f['commandName']){const _0x1a79b2=_0x5d302f['commandParams'][0x0]['forceValue'];return _0x1ffc89(o(_0x278add,_0x1a79b2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x53cd0c=>[_0x53cd0c,null]));class _t extends _0x4ba4b5{static get['requires'](){return[It];}['afterInit'](){const _0x208132=this['editor'];if(!_0x208132['plugins']['has']('TableClipboard'))return;const _0x65db92=_0x208132['plugins']['get']('TrackChangesEditing'),_0x2174cd=_0x208132['plugins']['get']('TableUtils'),_0x2c5761=_0x208132['plugins']['get'](It),_0xd75745=_0x208132['plugins']['get']('TableClipboard');_0x2c5761['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x208132['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x208132['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x25b36e=null;_0x208132['model']['on']('insertContent',(_0x42b39d,_0x2c5418)=>{const [_0x448670,_0x29f7f6]=_0x2c5418,_0x5d6779=_0x2c5418[_0x2c5418['length']-0x1];_0x5d6779&&_0x5d6779['forceDefaultExecution']||_0x65db92['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4a1482,_0x137d75,_0x1f500f,_0x8d9326,_0x1fa43c){if(_0x137d75&&!_0x137d75['is']('documentSelection'))return!0x1;const _0x445777=_0x1fa43c['getTableIfOnlyTableInContent'](_0x4a1482,_0x1f500f);if(!_0x445777||!Re(_0x445777,void 0x0,_0x8d9326))return!0x1;const _0x2abaf7=_0x8d9326['getSelectionAffectedTableCells'](_0x1f500f['document']['selection']);if(!_0x2abaf7['length'])return!0x1;const _0x34bb0f=_0x2abaf7[0x0]['findAncestor']('table'),_0x212a1a=_0x8d9326['getRowIndexes'](_0x2abaf7),_0x12545b=_0x8d9326['getColumnIndexes'](_0x2abaf7),_0x59fb4f={'startRow':_0x212a1a['first'],'endRow':_0x212a1a['last'],'startColumn':_0x12545b['first'],'endColumn':_0x12545b['last']};return 0x1==_0x2abaf7['length']&&(_0x59fb4f['endRow']+=_0x8d9326['getRows'](_0x445777)-0x1,_0x59fb4f['endColumn']+=_0x8d9326['getColumns'](_0x445777)-0x1),Re(_0x34bb0f,_0x59fb4f,_0x8d9326);}(_0x448670,_0x29f7f6,_0x208132['model'],_0x2174cd,_0xd75745)&&(_0x42b39d['stop'](),_0x25b36e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x208132['model']['change'](()=>{_0x208132['model']['insertContent'](_0x2c5418[0x0],_0x2c5418[0x1],_0x2c5418[0x2],{'forceDefaultExecution':!0x0});const _0x29fe8e=_0x4cf4cc(),{rowInsertionRanges:_0x3533c7,columnInsertionRanges:_0x4b38ef,insertionRanges:_0x5f04a9,deletionRanges:_0x209b25,cells:_0x26fa32}=_0x25b36e;_0x3533c7['length']&&_0x65db92['markMultiRangeInsertion'](_0x3533c7,'tablePasteRow',{'tablePasteChainId':_0x29fe8e}),_0x4b38ef['length']&&_0x65db92['markMultiRangeInsertion'](_0x4b38ef,'tablePasteColumn',{'tablePasteChainId':_0x29fe8e}),_0x5f04a9['length']&&(_0x65db92['markMultiRangeInsertion'](_0x5f04a9,'tablePaste',{'tablePasteChainId':_0x29fe8e,'skipNestingCheck':!0x0}),_0x5f04a9['forEach'](_0x1d6269=>_0x1d6269['detach']?.())),_0x209b25['length']&&(_0x65db92['markMultiRangeDeletion'](_0x209b25,'tablePaste',{'tablePasteChainId':_0x29fe8e,'skipNestingCheck':!0x0}),_0x209b25['forEach'](_0x3716dd=>_0x3716dd['detach']?.()));const _0x188273=_0x65db92['markMultiRangeBlockFormat'](_0x26fa32['map'](({element:_0x48b184})=>_0x48b184),{'formatGroupId':_0x4cf4cc()},[],'tablePasteCell',{'tablePasteChainId':_0x29fe8e});if(_0x188273){const _0x49bc62=_0x188273['getMarkers'](),_0x26012d=[];for(const {element:_0x37c6eb,attributes:_0x3e77b7}of _0x26fa32){if(!_0x3e77b7)continue;const _0x4d7dd5=_0x208132['model']['createRangeOn'](_0x37c6eb),_0x1e51bb=_0x49bc62['find'](_0x23a4cd=>_0x23a4cd['getRange']()['isEqual'](_0x4d7dd5));_0x1e51bb&&_0x26012d['push']([_0x1e51bb['name'],_0x3e77b7]);}_0x26012d['length']&&_0x188273['setAttribute']('markerAttributes',Object['fromEntries'](_0x26012d));}_0x25b36e=null;}));},{'priority':_0x2219d1['high']+0xa}),_0x208132['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x13af4d,_0x4ed1bd)=>{const [_0x467aec,_0x38186e,,_0x4db7f8]=_0x4ed1bd;if(!_0x25b36e)return;_0x13af4d['stop']();const _0x129ad6=_0x467aec['cell'],_0x3e6b9f=_0x38186e,_0x5a0a3e=ke(_0x129ad6),_0x2b86af=ke(_0x3e6b9f);_0x13af4d['return']=_0x129ad6;let _0x308a4f=null,_0x5003de=null;if(_0x2b86af||_0x5a0a3e){if(_0x5a0a3e&&!_0x2b86af){_0x4db7f8['remove'](_0x129ad6['getChild'](0x0));for(const _0x14b560 of Array['from'](_0x3e6b9f['getChildren']()))_0x4db7f8['insert'](_0x14b560,_0x129ad6,'end');const _0x279915=_0x25b36e['rowInsertionIndexes']['includes'](_0x467aec['row']),_0x1edc89=_0x25b36e['columnInsertionIndexes']['includes'](_0x467aec['column']);_0x279915||_0x1edc89||(_0x308a4f=_0x1a312e['fromRange'](_0x4db7f8['createRangeIn'](_0x129ad6)));}else _0x2b86af&&!_0x5a0a3e&&(_0x5003de=_0x4db7f8['createRangeIn'](_0x129ad6));}else{const _0x387088=_0x4db7f8['createElement']('tableCellSuggestion'),_0x816150=_0x4db7f8['createElement']('tableCellSuggestion');_0x4db7f8['wrap'](_0x4db7f8['createRangeIn'](_0x129ad6),_0x816150),_0x4db7f8['insert'](_0x387088,_0x129ad6,0x0);for(const _0x189fb3 of Array['from'](_0x3e6b9f['getChildren']()))_0x4db7f8['insert'](_0x189fb3,_0x387088,'end');_0x308a4f=_0x1a312e['fromRange'](_0x4db7f8['createRangeOn'](_0x387088)),_0x5003de=_0x1a312e['fromRange'](_0x4db7f8['createRangeOn'](_0x816150));}const _0x21a6b1=Array['from'](_0x3e6b9f['getAttributes']())['filter'](([_0x5c9f06])=>Pe['includes'](_0x5c9f06));_0x25b36e['cells']['push']({'element':_0x129ad6,'attributes':_0x21a6b1['length']?Object['fromEntries'](_0x21a6b1):null}),_0x308a4f&&_0x25b36e['insertionRanges']['push'](_0x308a4f),_0x5003de&&_0x25b36e['deletionRanges']['push'](_0x5003de);},{'priority':'high'}),_0x2174cd['on']('insertColumns',(_0x2f805e,_0xc6ccd9)=>{const [_0x4f046a,_0x4320bc={}]=_0xc6ccd9;if(!_0x25b36e)return;const _0x4e3bb8=_0x4320bc['at']||0x0,_0x2fc683=_0x4320bc['columns']||0x1;_0x25b36e['columnInsertionIndexes']=new Array(_0x2fc683)['fill'](_0x4e3bb8)['map']((_0x3b87df,_0x4ae35c)=>_0x3b87df+_0x4ae35c);for(const {cell:_0x2e2303}of _0x2174cd['createTableWalker'](_0x4f046a,{'startColumn':_0x4e3bb8,'endColumn':_0x4e3bb8+_0x2fc683-0x1}))_0x25b36e['columnInsertionRanges']['push'](_0x208132['model']['createRangeOn'](_0x2e2303));},{'priority':'low'}),_0x2174cd['on']('insertRows',(_0x4a608b,_0xe1314d)=>{const [_0x4971da,_0x5cd6dd={}]=_0xe1314d;if(!_0x25b36e)return;const _0x240e97=_0x5cd6dd['at']||0x0,_0x9c7874=_0x5cd6dd['rows']||0x1;_0x25b36e['rowInsertionIndexes']=new Array(_0x9c7874)['fill'](_0x240e97)['map']((_0x5a8dd5,_0x118761)=>_0x5a8dd5+_0x118761);for(const {cell:_0x29ac8c}of _0x2174cd['createTableWalker'](_0x4971da,{'startRow':_0x240e97,'endRow':_0x240e97+_0x9c7874-0x1}))_0x25b36e['rowInsertionRanges']['push'](_0x208132['model']['createRangeOn'](_0x29ac8c));},{'priority':'low'}),_0x65db92['descriptionFactory']['registerDescriptionCallback'](_0x2d3164=>{if(_0x2d3164['subType']&&_0x2d3164['subType']['startsWith']('tablePaste'))return _0x2d3164['previous']?{}:{'type':'insertion','content':o(_0x208132['locale'],'*Replace\x20table\x20cells*')};});const _0x4ab357=()=>!0x1;for(const _0x1469d9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x65db92['_suggestionFactory']['registerCustomCallback']('insertion',_0x1469d9,'join',_0x4ab357),_0x65db92['_suggestionFactory']['registerCustomCallback']('deletion',_0x1469d9,'join',_0x4ab357),_0x65db92['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1469d9,'join',_0x4ab357);_0x65db92['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4ab357),_0x65db92['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5d0a7a,_0x976afb,_0x160e11)=>{const _0x368597=_0x5d0a7a['map'](_0x49ad7b=>_0x49ad7b['getContainedElement']())['filter'](_0x539b3a=>_0x539b3a),_0x304ea5=new Map(_0x368597['map'](_0xbb8b57=>[_0xbb8b57,null]));if(_0x25b36e){for(const {element:_0x8eb6cd,attributes:_0x292ad4}of _0x25b36e['cells'])_0x292ad4&&_0x304ea5['set'](_0x8eb6cd,_0x292ad4);}else{if(_0x160e11&&_0x160e11['markerAttributes'])for(const [_0x336268,_0x465521]of Object['entries'](_0x160e11['markerAttributes'])){const _0x1549d6=_0x208132['model']['markers']['get'](_0x336268),_0x50722d=_0x1549d6?_0x1549d6['getRange']()['getContainedElement']():null;_0x50722d&&_0x304ea5['set'](_0x50722d,_0x465521);}}_0x208132['model']['change'](_0x1f529d=>{for(const [_0x2af0e9,_0x30ae81]of _0x304ea5)_0x1f529d['setAttributes']({...we,..._0x30ae81},_0x2af0e9);});});const _0x40f628=(_0xbd1f62,_0x3a0412)=>{_0x65db92['_suggestionFactory']['registerCustomCallback'](_0xbd1f62,'tablePaste',_0x3a0412,(_0x349515,_0x147a3d,_0x3c9137)=>{_0x208132['model']['change'](_0x23dc35=>{const _0x3fa984=[];for(const _0x5d1892 of _0x349515){const _0x78be02=_0x5d1892['start']['nodeAfter'];_0x78be02['is']('element','tableCellSuggestion')&&_0x3fa984['push'](_0x78be02);}_0x65db92['_suggestionFactory']['getSuggestionCallback'](_0xbd1f62,null,_0x3a0412)(_0x349515,_0x147a3d,_0x3c9137);for(const _0x2cf9ff of _0x3fa984)'$graveyard'!=_0x2cf9ff['root']['rootName']&&_0x23dc35['unwrap'](_0x2cf9ff);});});};_0x40f628('insertion','accept'),_0x40f628('insertion','discard'),_0x40f628('deletion','accept'),_0x40f628('deletion','discard'),_0x65db92['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x22a337=>{const _0x9f9fd2=_0x22a337['map'](_0xa664db=>_0xa664db['getContainedElement']()),_0x1a6c06=_0x9f9fd2[0x0]['findAncestor']('table'),{minRow:_0x1fab86,maxRow:_0x29e7ba}=_0x2c5761['_getCoordsForCells'](_0x9f9fd2);_0x2174cd['removeRows'](_0x1a6c06,{'at':_0x1fab86,'rows':_0x29e7ba-_0x1fab86+0x1});}),_0x65db92['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x52a124=>{const _0x718cc8=_0x52a124['map'](_0x10c680=>_0x10c680['getContainedElement']()),_0x40d671=_0x718cc8[0x0]['findAncestor']('table'),{minColumn:_0x5849dd,maxColumn:_0x3cbf2d}=_0x2c5761['_getCoordsForCells'](_0x718cc8);_0x2174cd['removeColumns'](_0x40d671,{'at':_0x5849dd,'columns':_0x3cbf2d-_0x5849dd+0x1});});const _0x11d25f=(_0x4adb97,_0x31a003)=>{if(!_0x31a003['subType']||!_0x31a003['subType']['startsWith']('tablePaste'))return;const _0x4bd757=_0x31a003['attributes']['tablePasteChainId'],_0x682f1f=_0x65db92['getSuggestions']()['filter'](_0x48f9eb=>_0x48f9eb['isInContent']&&_0x48f9eb['attributes']&&_0x48f9eb['attributes']['tablePasteChainId']==_0x4bd757);_0x682f1f['length']&&_0x31a003['getAllAdjacentSuggestions']()['length']!=_0x682f1f['length']&&_0x682f1f['reduce']((_0x1ebf94,_0x54a506)=>(_0x1ebf94['next']=_0x54a506,_0x54a506['previous']=_0x1ebf94,_0x54a506));};function _0x4b578b(_0x4e4421,_0x555134=!0x0){const {id:_0x226456,authorId:_0x239cb8}=_0x65db92['_splitMarkerName'](_0x4e4421['markerName']),_0x299fbc=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x550f3a=_0x65db92['activeMarkers']['includes'](_0x4e4421['markerName']);return _0x550f3a&&_0x299fbc['push']('ck-suggestion-marker--active'),{'classes':_0x299fbc,'attributes':{'data-suggestion':_0x226456,'data-author-id':_0x239cb8},'priority':_0x550f3a&&_0x555134?0xbc2:0xbb8};}_0x65db92['on']('suggestionLoaded',_0x11d25f,{'priority':'high'}),_0x65db92['on']('suggestionUnloaded',_0x11d25f,{'priority':'high'}),_0x208132['model']['document']['registerPostFixer'](()=>{let _0xb6b026=!0x1;const _0x4d90f9=Array['from'](_0x208132['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe6e92e,data:_0x1e2f7f}of _0x4d90f9){const {group:_0x551562,type:_0x347a90,id:_0x43a074}=_0x65db92['_splitMarkerName'](_0xe6e92e);if('suggestion'!=_0x551562||'deletion'!=_0x347a90||_0x1e2f7f['oldRange'])continue;if(!_0x65db92['hasSuggestion'](_0x43a074))continue;const _0x5058ce=_0x65db92['getSuggestion'](_0x43a074)['getRanges'](),_0x3b37bd=_0x208132['plugins']['get']('Users')['me'];for(const _0x3eeb29 of _0x65db92['getSuggestions']()){if(!_0x3eeb29['isInContent']||_0x3eeb29['author']!=_0x3b37bd)continue;if('formatBlock'!=_0x3eeb29['type']||'tablePasteCell'!=_0x3eeb29['subType'])continue;if(_0x3eeb29['getRanges']()['every'](_0x509a18=>_0x5058ce['some'](_0x201630=>_0x201630['containsRange'](_0x509a18,!0x0)))){for(const _0x5e8f73 of _0x3eeb29['getAllAdjacentSuggestions']())_0x5e8f73['isInContent']&&(_0x5e8f73['discard'](),_0xb6b026=!0x0);}}}return _0xb6b026;}),_0x208132['model']['document']['registerPostFixer'](_0x4553e5=>{const _0x48ace6=_0x208132['commands']['get']('redo');if(!_0x48ace6||!_0x48ace6['_createdBatches']['has'](_0x4553e5['batch']))return!0x1;let _0x517fe0=!0x1;const _0x11fd88=_0x208132['plugins']['get']('Users')['me'],_0x2580de=_0x208132['model']['document']['differ']['getChanges'](),_0x588da1=Array['from'](_0x208132['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x239589,data:_0x447596})=>{const {group:_0x33783c,subType:_0x5ac2f8,authorId:_0xfb2498}=_0x65db92['_splitMarkerName'](_0x239589);return'suggestion'==_0x33783c&&'tablePaste'==_0x5ac2f8&&_0xfb2498==_0x11fd88['id']&&!_0x447596['oldRange'];});for(const _0x410b40 of _0x2580de){if('insert'!=_0x410b40['type']||'tableCellSuggestion'!=_0x410b40['name']||0x1!=_0x410b40['length'])continue;const _0x5c6b76=_0x4553e5['createRange'](_0x410b40['position'],_0x410b40['position']['getShiftedBy'](0x1));if(!_0x588da1['find'](({data:_0x5eff02})=>_0x5eff02['newRange']['isEqual'](_0x5c6b76))){for(const {name:_0x4e656e,data:_0x40e455}of _0x588da1)if(_0x5c6b76['containsRange'](_0x40e455['newRange'])){_0x4553e5['updateMarker'](_0x4e656e,{'range':_0x5c6b76}),_0x517fe0=!0x0;break;}}}return _0x517fe0;}),_0x208132['model']['document']['registerPostFixer'](_0x485f88=>{let _0x4b6e6a=!0x1;const _0xfc4968=_0x208132['plugins']['get']('Users')['me'],_0x3606c1=_0x65db92['getSuggestions']()['filter'](_0x28f625=>_0x28f625['isInContent']&&_0x28f625['author']==_0xfc4968),_0x428b57=new Set(),_0x139783=new Set();for(const _0x42e628 of _0x3606c1)if('tablePaste'==_0x42e628['subType'])for(const _0xd5a8be of _0x42e628['getMarkers']()){const _0xf75b2d=_0xd5a8be['getRange']()['getContainedElement']();if(_0xf75b2d){if(_0xf75b2d['is']('element','tableCellSuggestion')&&ke(_0xf75b2d)){_0x42e628['removeMarker'](_0xd5a8be['name']),_0x428b57['add'](_0xf75b2d),_0x4b6e6a=!0x0;const _0x28b20b=_0xf75b2d['nextSibling'],_0x4aa809=_0xf75b2d['previousSibling'],_0x29b69e=_0x28b20b&&_0x28b20b['is']('element','tableCellSuggestion'),_0x4f72e8=_0x4aa809&&_0x4aa809['is']('element','tableCellSuggestion');_0x29b69e&&!_0x428b57['has'](_0x28b20b)&&_0x139783['add'](_0x28b20b),_0x4f72e8&&!_0x428b57['has'](_0x4aa809)&&_0x139783['add'](_0x4aa809);}else _0xf75b2d['is']('element','paragraph')&&_0xf75b2d['isEmpty']&&(_0x42e628['removeMarker'](_0xd5a8be['name']),_0x4b6e6a=!0x0);}}else{if('tablePasteCell'==_0x42e628['subType']){if(!_0x42e628['attributes']||!_0x42e628['attributes']['tablePasteChainId'])continue;const _0x9b5050=_0x42e628['attributes']['markerAttributes'];if(_0x9b5050&&Object['keys'](_0x9b5050)['length'])continue;const _0x526753=_0x42e628['attributes']['tablePasteChainId'];let _0x14d573=!0x0,_0x38298e=!0x0;for(const _0x397583 of _0x3606c1)if(_0x397583['subType']&&_0x397583['subType']['startsWith']('tablePaste')){if(!_0x397583['attributes']['tablePasteChainId']){_0x38298e=!0x1;break;}if(_0x397583['id']!=_0x42e628['id']&&_0x397583['attributes']['tablePasteChainId']==_0x526753){_0x14d573=!0x1;break;}}_0x38298e&&_0x14d573&&(_0x42e628['removeMarkers'](),_0x4b6e6a=!0x0);}}for(const _0x33c911 of _0x428b57)_0x485f88['remove'](_0x33c911);for(const _0x48cb66 of _0x139783)_0x485f88['unwrap'](_0x48cb66);return _0x4b6e6a;}),_0x208132['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xb67ef5=>_0x4b578b(_0xb67ef5),'converterPriority':'high'}),_0x208132['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x23981c,_0x57f5c0)=>_0x57f5c0['options']['showSuggestionHighlights']?_0x4b578b(_0x23981c,!0x1):null,'converterPriority':'high'});const _0x1663d8=_0x208132['editing']['view'];this['listenTo'](_0x1663d8['document'],'clipboardOutput',(_0x90a410,_0x57de88)=>{const _0x468069=[];for(const _0x2c7350 of _0x1663d8['createRangeIn'](_0x57de88['content'])['getItems']())_0x2c7350['is']('element','suggestion-td')&&_0x468069['push'](_0x2c7350);_0x1663d8['change'](_0x5747c9=>{for(const _0x2b0ecd of _0x468069)_0x5747c9['move'](_0x5747c9['createRangeIn'](_0x2b0ecd),_0x5747c9['createPositionBefore'](_0x2b0ecd)),_0x5747c9['remove'](_0x2b0ecd);});});}}function ke(_0x5d4271){if(_0x5d4271['isEmpty'])return!0x0;const _0x5c1d17=_0x5d4271['getChild'](0x0);return _0x5c1d17['is']('element','paragraph')&&_0x5c1d17['isEmpty'];}function Re(_0x520536,_0x40bbca={},_0x413577){for(const {isAnchor:_0x5d6ff2,cellHeight:_0x5ceeee,cellWidth:_0x47ec5e}of _0x413577['createTableWalker'](_0x520536,{'includeAllSlots':!0x0,..._0x40bbca}))if(!_0x5d6ff2||0x1!=_0x5ceeee||0x1!=_0x47ec5e)return!0x1;return!0x0;}class Nt extends _0x4ba4b5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x265934=this['editor']['plugins']['get']('TrackChangesEditing');_0x265934['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x265934['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x265934['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x265934['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x265934['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x265934['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5df525,_0xdfa013){const _0x529cc4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16af63=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1ae222=_0xdfa013['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5873b6=_0x16af63['getColumnGroupElement'](_0x1ae222);let _0x1bc1ae=_0x5873b6?_0x16af63['getTableColumnsWidths'](_0x5873b6):null,_0xcadaa6=_0x1ae222['getAttribute']('tableWidth')||null;const _0x29e3b6=_0xdfa013['tableWidth']||_0xcadaa6,_0x4f7008=_0xdfa013['columnWidths']||_0x1bc1ae,_0x1ab24c=this['editor']['plugins']['get']('Users')['me'];for(const _0x249fe5 of _0x529cc4['getSuggestions']()){const _0x29d02c=_0x249fe5['getContainedElement']();if('resizeTable'===_0x249fe5['subType']&&_0x29d02c===_0x1ae222){_0x249fe5['author']!==_0x1ab24c&&_0x249fe5['discard']();const _0x5401f8=_0x249fe5['data']['commandParams'];_0xcadaa6=_0x5401f8[0x0]['tableWidth'],_0x1bc1ae=_0x5401f8[0x0]['columnWidths'];break;}}_0x5df525({'table':_0x1ae222,'tableWidth':_0x29e3b6,'columnWidths':_0x4f7008}),_0x529cc4['markBlockFormat'](_0x1ae222,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xcadaa6,'columnWidths':_0x1bc1ae}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x50e56f){if('formatBlock'!=_0x50e56f['type']&&'formatInline'!=_0x50e56f['type'])return;const {data:_0x4c4cd}=_0x50e56f;if(_0x4c4cd&&'resizeTable'===_0x4c4cd['formatGroupId']){const _0x147a96='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x147a96)};}}}class Dt extends _0x4ba4b5{['afterInit'](){const _0x3b51f7=this['editor'];_0x3b51f7['plugins']['has']('Template')&&_0x3b51f7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x4ba4b5{['afterInit'](){const _0x5056e1=this['editor'];if(!_0x5056e1['commands']['get']('insertTableOfContents'))return;_0x5056e1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x69d326=_0x5056e1['plugins']['get']('TrackChangesEditing'),_0x381a94=_0x5056e1['locale'];_0x69d326['descriptionFactory']['registerElementLabel']('tableOfContents',_0x57bf7a=>o(_0x381a94,'ELEMENT_TABLE_OF_CONTENTS',_0x57bf7a));}}class $t extends _0x4ba4b5{['afterInit'](){const _0x45b87b=this['editor'];if(!_0x45b87b['plugins']['has']('Title'))return;const _0x8d96ab=_0x45b87b['plugins']['get']('TrackChangesEditing');_0x8d96ab['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x45b87b['locale'],'ELEMENT_TITLE')),_0x45b87b['model']['document']['registerPostFixer'](_0x120308=>{let _0x196bc7=!0x1;const _0x7090f6=Array['from'](_0x45b87b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ffe7f,data:_0x3a1f6e}of _0x7090f6){const {group:_0x2ba302}=_0x8d96ab['_splitMarkerName'](_0x1ffe7f);if('suggestion'!==_0x2ba302||!_0x3a1f6e['newRange'])continue;const _0x1d9167=_0x3a1f6e['newRange'],_0x4fe468=_0x1d9167['end']['nodeBefore'];if(!_0x4fe468||!_0x4fe468['is']('element','title-content'))continue;if(!_0x1d9167['start']['isTouching'](_0x1d9167['end']))continue;const _0x21745c=_0x45b87b['model']['schema']['getNearestSelectionRange'](_0x1d9167['end'],'forward');if(_0x21745c&&_0x21745c['isCollapsed']){const _0x190312=_0x120308['createRange'](_0x1d9167['start'],_0x21745c['start']);_0x190312['isEqual'](_0x1d9167)||(_0x120308['updateMarker'](_0x1ffe7f,{'range':_0x190312}),_0x196bc7=!0x0);}_0x196bc7||(_0x120308['removeMarker'](_0x1ffe7f),_0x196bc7=!0x0);}return _0x196bc7;});}}class Bt extends _0x4ba4b5{['afterInit'](){const _0x253460=this['editor'],_0x55dcae=_0x253460['plugins']['get']('TrackChangesEditing');_0x253460['plugins']['has']('UndoEditing')&&(_0x55dcae['enableCommand']('undo'),_0x55dcae['enableCommand']('redo'));}}class xt extends _0x4ba4b5{static get['requires'](){return[It];}['afterInit'](){const _0x572be6=this['editor'];if(!_0x572be6['plugins']['has']('TableCaptionEditing'))return;_0x572be6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x4ba4b5{['tableProperties'];['tableCellProperties'];constructor(_0x1de0e0){super(_0x1de0e0),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x592bad=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x43d7f7 of this['tableProperties'])_0x592bad['enableCommand'](_0x43d7f7,(_0x565c86,_0x10be10)=>{const _0x23222c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x43d7f7,[_0x23222c],this['tableProperties'],'tableProperties',_0x565c86,_0x10be10);});_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x592bad['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x352b9a,_0xd652ce)=>this['handleDiscardAction'](this['tableProperties'],_0x352b9a,_0xd652ce)),_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2e442a of this['tableCellProperties'])_0x592bad['enableCommand'](_0x2e442a,(_0x1b4311,_0x14976c)=>{const _0x39d963=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2e442a,_0x39d963,this['tableCellProperties'],'tableCellProperties',_0x1b4311,_0x14976c);});_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x592bad['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x90b44a,_0x36d49c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x90b44a,_0x36d49c)),_0x592bad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x592bad['descriptionFactory']['registerDescriptionCallback'](_0x114f58=>this['handleSuggestionDescription'](_0x114f58));}['_handlePropertyChange'](_0x119ebd,_0x54deb5,_0x3a405b,_0x1c8b5c,_0x6c7539,_0x48a6f4){const _0x504852=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x48a6f4['batch'],()=>{for(const _0x3ad9ea of _0x54deb5){if(this['_getSuggestion'](_0x3ad9ea,_0x1c8b5c))_0x6c7539(_0x48a6f4);else{const _0x537085={};for(const _0x26c9db of _0x3a405b){const _0xdaffcf=_0x3ad9ea['getAttribute'](_0x26c9db);void 0x0!==_0xdaffcf&&(_0x537085[_0x26c9db]=_0xdaffcf);}_0x6c7539(_0x48a6f4),_0x504852['markBlockFormat'](_0x3ad9ea,{'commandParams':[_0x537085]},[],_0x1c8b5c);}}});}['handleDiscardAction'](_0x36a3f6,_0x2bc3df,_0x15dc46){const _0x413a7c=_0x2bc3df[0x0]['start']['nodeAfter'],_0x40d7ee=_0x15dc46['commandParams'][0x0];this['editor']['model']['change'](_0x309d63=>{for(const _0x55ab08 of _0x36a3f6)void 0x0!==_0x40d7ee[_0x55ab08]?_0x309d63['setAttribute'](_0x55ab08,_0x40d7ee[_0x55ab08],_0x413a7c):_0x309d63['removeAttribute'](_0x55ab08,_0x413a7c);});}['handleSuggestionDescription'](_0x4e2f4c){if(_0x4e2f4c['data'])switch(_0x4e2f4c['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x941636,_0x59aede){const _0x9904d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xb8b0f of _0x9904d['getSuggestions']({'skipNotAttached':!0x0})){const _0xfc8518=_0xb8b0f['getContainedElement']();if(_0xb8b0f['subType']===_0x59aede&&_0xfc8518===_0x941636)return _0xb8b0f;}return null;}}const m='$elementName';class p extends _0x4ba4b5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x106ae5,_0x2e42cd,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x4db54c){function _0x210ec3(_0x3bad2e){return _0x3bad2e['map'](_0x2a924b=>String['fromCharCode'](_0x2a924b))['join']('');}super(_0x4db54c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1fe91a,_0x301d83,_0x5dc067,_0x1478ec)=>{this['_model']['change'](()=>{for(const _0xc895cd of[..._0x1478ec,..._0x5dc067])this['_model']['markers']['has'](_0xc895cd)&&_0x4db54c['editing']['reconvertMarker'](_0xc895cd);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4db54c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x4db54c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4db54c['config']['get']('trackChanges.trackFormatChanges'),_0x4db54c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4db54c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4db54c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x210ec3([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x210ec3([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x36]);}['init'](){const _0x4e849a=this['editor'],_0x5f16d2=(_0x667aad,_0x9f9cbb)=>{if('attribute'!=_0x667aad)return'ck-suggestion-marker-'+_0x667aad;const _0x54b0d9=_0x9f9cbb['split']('|')[0x0];return this['_isBlockAttribute'](_0x54b0d9)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4e849a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3ef494=>{const {id:_0x524ba0,authorId:_0x5ac038,type:_0x4cc8cb,subType:_0x35e80b}=this['_splitMarkerName'](_0x3ef494['markerName']),_0x410186=['ck-suggestion-marker',_0x5f16d2(_0x4cc8cb,_0x35e80b)];let _0x5136c6=0xbb8;return this['activeMarkers']['includes'](_0x3ef494['markerName'])&&(_0x410186['push']('ck-suggestion-marker--active'),_0x5136c6=0xbc2),'deletion'==_0x4cc8cb&&(_0x5136c6+=0x5),{'classes':_0x410186,'attributes':{'data-suggestion':_0x524ba0,'data-author-id':_0x5ac038},'priority':_0x5136c6};}}),_0x4e849a['conversion']['for']('dataDowncast')['add'](_0x350026=>{_0x350026['on']('addMarker:suggestion',(_0x3ee738,_0x56561f,_0x3d8a67)=>{if(!_0x3d8a67['options']['showSuggestionHighlights'])return;const _0x23f19d=_0x56561f['item'];if(!_0x23f19d)return;const _0x29fef7=_0x3d8a67['mapper']['toViewElement'](_0x23f19d);_0x4e849a['model']['schema']['isObject'](_0x23f19d)&&_0x29fef7&&!_0x29fef7['getCustomProperty']('widget')&&_0x29fef7['is']('containerElement')&&_0x2c0c3d(_0x29fef7,_0x3d8a67['writer']);},{'priority':'high'});}),_0x4e849a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1ea477,_0x3778fd)=>{if(!_0x3778fd['options']['showSuggestionHighlights'])return null;const {type:_0x4bf089,subType:_0x4949df}=this['_splitMarkerName'](_0x1ea477['markerName']);return{'classes':['ck-suggestion-marker',_0x5f16d2(_0x4bf089,_0x4949df)],'priority':0xbb8};}});const _0x560b6d=({showActiveMarkers:_0xaffcd1=!0x0,isAttributeSuggestion:_0x7a2945=!0x1}={})=>(_0x4dad52,_0x4247b2,_0x385236)=>{if(!_0x4247b2['item'])return;const {id:_0x14e886,authorId:_0x4c14e2}=this['_splitMarkerName'](_0x4247b2['markerName']);if(_0x7a2945){const _0x5a0ea8=this['_suggestions']['get'](_0x14e886),_0x423a8a=this['_getAttributeKey'](_0x5a0ea8);if(!this['_isBlockAttribute'](_0x423a8a))return;}if(_0x4247b2['item']['is']('selection'))return void _0x385236['consumable']['consume'](_0x4247b2['item'],_0x4dad52['name']);const _0x2962d4=_0x385236['mapper']['toViewElement'](_0x4247b2['item']);if(_0x4247b2['item']['is']('element')&&_0x4e849a['model']['schema']['isBlock'](_0x4247b2['item'])&&!_0x2962d4['getCustomProperty']('addHighlight')){_0x385236['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2962d4),_0x385236['writer']['setAttribute']('data-suggestion',_0x14e886,_0x2962d4),_0x385236['writer']['setAttribute']('data-author-id',_0x4c14e2,_0x2962d4),_0x385236['mapper']['bindElementToMarker'](_0x2962d4,_0x4247b2['markerName']),_0xaffcd1&&(this['activeMarkers']['includes'](_0x4247b2['markerName'])?_0x385236['writer']['addClass']('ck-suggestion-marker--active',_0x2962d4):_0x385236['writer']['removeClass']('ck-suggestion-marker--active',_0x2962d4));for(const _0x4839fc of _0x4e849a['model']['createRangeIn'](_0x4247b2['item'])['getItems']())_0x385236['consumable']['consume'](_0x4839fc,_0x4dad52['name']);_0x385236['consumable']['consume'](_0x4247b2['item'],_0x4dad52['name']);}};_0x4e849a['conversion']['for']('dataDowncast')['add'](_0x1de560=>{_0x1de560['on']('addMarker:suggestion:formatBlock',(_0x3abba1,_0x273c03,_0x52347d)=>{_0x52347d['options']['showSuggestionHighlights']&&_0x560b6d({'showActiveMarkers':!0x1})(_0x3abba1,_0x273c03,_0x52347d);},{'priority':'highest'});}),_0x4e849a['conversion']['for']('dataDowncast')['add'](_0x2b90f4=>{_0x2b90f4['on']('addMarker:suggestion:attribute',(_0x2f6922,_0x4500d1,_0x4304a2)=>{_0x4304a2['options']['showSuggestionHighlights']&&_0x560b6d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2f6922,_0x4500d1,_0x4304a2);},{'priority':'highest'});}),_0x4e849a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x9ebdfd,_0x496220)=>_0x496220['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x9ebdfd['substr'](0xb)}}),_0x4e849a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5526c9,{writer:_0x508b90})=>{let _0x1374e4='suggestion:'+_0x5526c9['getAttribute']('suggestion-type')+':'+_0x5526c9['getAttribute']('id');return _0x5526c9['getAttribute']('marker-count')&&(_0x1374e4+=':'+_0x5526c9['getAttribute']('marker-count')),_0x508b90['createElement']('$marker',{'data-name':_0x1374e4});}}),_0x4e849a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4e849a['conversion']['for']('editingDowncast')['add'](_0x456a8f=>{_0x456a8f['on']('addMarker:suggestion:formatBlock',_0x560b6d(),{'priority':'high'});}),_0x4e849a['conversion']['for']('editingDowncast')['add'](_0x41bbab=>{_0x41bbab['on']('addMarker:suggestion:attribute',_0x560b6d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4e849a['conversion']['for']('editingDowncast')['add'](_0x16f18d=>{_0x16f18d['on']('removeMarker:suggestion:formatBlock',(_0x2ae808,_0x22a7fd,_0x2817fc)=>{const _0x27b7ce=_0x2817fc['mapper']['markerNameToElements'](_0x22a7fd['markerName']);if(_0x27b7ce){for(const _0x2c0063 of _0x27b7ce)_0x2c0063['getCustomProperty']('addHighlight')||(_0x2817fc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2c0063),_0x2817fc['writer']['removeAttribute']('data-suggestion',_0x2c0063),_0x2817fc['writer']['removeAttribute']('data-author-id',_0x2c0063),_0x2817fc['mapper']['unbindElementFromMarkerName'](_0x2c0063,_0x22a7fd['markerName']));}},{'priority':'high'});}),_0x4e849a['conversion']['for']('editingDowncast')['add'](_0x5dc642=>{_0x5dc642['on']('removeMarker:suggestion:attribute',(_0xac89f6,_0x53aaa6,_0x5af39b)=>{const _0x49debc=_0x5af39b['mapper']['markerNameToElements'](_0x53aaa6['markerName']);if(!_0x49debc)return;const {id:_0x4e8720}=this['_splitMarkerName'](_0x53aaa6['markerName']),_0x4d0929=this['_suggestions']['get'](_0x4e8720),_0x2fc784=this['_getAttributeKey'](_0x4d0929);if(this['_isBlockAttribute'](_0x2fc784)){for(const _0x4d585c of _0x49debc)_0x4d585c['getCustomProperty']('addHighlight')||(_0x5af39b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4d585c),_0x5af39b['writer']['removeAttribute']('data-suggestion',_0x4d585c),_0x5af39b['writer']['removeAttribute']('data-author-id',_0x4d585c),_0x5af39b['mapper']['unbindElementFromMarkerName'](_0x4d585c,_0x53aaa6['markerName']));}},{'priority':'high'});}),_0x4e849a['model']['document']['registerPostFixer'](_0x407658=>{let _0x46558f=!0x1;const _0x1ef5d7=Array['from'](_0x4e849a['model']['document']['differ']['getChangedMarkers']()),_0x3843c0=new Set();for(const {name:_0x33711d,data:_0x49324b}of _0x1ef5d7){const {group:_0xd47b8e,type:_0x340eb8,subType:_0x3a8160,id:_0x2ce2fa}=this['_splitMarkerName'](_0x33711d);if('suggestion'!==_0xd47b8e)continue;const _0x476f8f=this['_suggestions']['get'](_0x2ce2fa);if(null!=_0x49324b['newRange']){'formatInline'==_0x340eb8&&(_0x46558f=_0x46558f||Ut(_0x49324b['newRange'],_0x33711d,_0x407658,_0x4e849a['model']['schema']));const _0x103a5c='attribute'==_0x340eb8&&this['_isBlockAttribute'](_0x3a8160['split']('|')[0x0]);if(_0x49324b['newRange']['isCollapsed']||'$graveyard'==_0x49324b['newRange']['root']['rootName']||'formatBlock'==_0x340eb8&&!Ft(_0x49324b['newRange'])||_0x103a5c&&!Ft(_0x49324b['newRange'])||'deletion'==_0x340eb8&&!(!Vt(_0x1af6af=_0x49324b['newRange'])&&!function(_0x3babce){return _0x3babce['start']['parent']==_0x3babce['end']['nodeBefore']&&_0x3babce['start']['isAtEnd'];}(_0x1af6af)))_0x407658['removeMarker'](_0x33711d),_0x46558f=!0x0;else{if(!_0x476f8f||!_0x476f8f['isInContent'])continue;if(_0x49324b['newRange']&&_0x49324b['oldRange']&&_0x49324b['newRange']['isEqual'](_0x49324b['oldRange']))continue;_0x3843c0['add'](_0x476f8f);}}}var _0x1af6af;return _0x3843c0['size']>0x0&&(_0x46558f=!!this['_joinWithAdjacentSuggestions'](_0x3843c0)||_0x46558f),_0x46558f;}),_0x4e849a['model']['document']['registerPostFixer'](_0x46ee4f=>{let _0x54065f=!0x1;for(const _0x2ea32e of _0x4e849a['model']['document']['differ']['getChanges']())if('insert'==_0x2ea32e['type'])for(const _0x258bc8 of this['_suggestions']['values']()){if(_0x258bc8['isMultiRange']||!_0x258bc8['isInContent'])continue;const _0x2d4cb6='formatBlock'==_0x258bc8['type'],_0xad600f=this['_getAttributeKey'](_0x258bc8),_0x17dfe5=_0xad600f&&this['_isBlockAttribute'](_0xad600f);if(!_0x2d4cb6&&!_0x17dfe5)continue;const _0x1ce872=_0x258bc8['getFirstRange']();if(_0x1ce872['start']['parent']!=_0x1ce872['end']['parent']&&!_0x1ce872['end']['isAtEnd']){const _0x1a8165=_0x4e849a['model']['createPositionAt'](_0x1ce872['start']['nodeAfter'],'end'),_0x14722a=_0x4e849a['model']['createRange'](_0x1ce872['start'],_0x1a8165);_0x46ee4f['updateMarker'](_0x258bc8['getFirstMarker'](),{'range':_0x14722a}),_0x54065f=!0x0;}}return _0x54065f;}),_0x4e849a['model']['document']['registerPostFixer'](_0x5f1657=>this['_processAttributeChanges'](_0x5f1657)),_0x4e849a['model']['document']['registerPostFixer'](_0x28d1c0=>!_0x28d1c0['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x28d1c0)),_0x4e849a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4e849a['model']['document']['on']('change:data',(_0xfb6685,_0x35ef50)=>{if(!_0x35ef50['isLocal']||_0x35ef50['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1a0df5=_0x4e849a['model']['document']['differ']['getChanges']();if(0x0==_0x1a0df5['length'])return;const _0x2b7dfd=[],_0x1051b4=_0x1a0df5['filter'](_0xa6cdd9=>'attribute'==_0xa6cdd9['type']),_0xf2a844=_0x1a0df5['filter'](_0x192208=>'insert'==_0x192208['type']&&'$text'!=_0x192208['name']);for(const _0x3161fb of _0x1051b4)this['_isRegisteredAttribute'](_0x3161fb['attributeKey'])&&_0x2b7dfd['push']({'key':_0x3161fb['attributeKey'],'newValue':_0x3161fb['attributeNewValue'],'oldValue':_0x3161fb['attributeOldValue'],'range':Pt(_0x3161fb['range'],_0x4e849a['model'])});for(const _0x96a21b of _0xf2a844){if('rename'!=_0x96a21b['action']&&'refresh'!=_0x96a21b['action'])continue;const _0x529d1a=Lt(_0x96a21b['position']['nodeAfter'],_0x4e849a['model']),_0x11c053=_0x96a21b['before'];'rename'==_0x96a21b['action']&&_0x2b7dfd['push']({'key':m,'newValue':_0x96a21b['name'],'oldValue':_0x11c053['name'],'range':_0x529d1a});for(const [_0x4dfa4d,_0x4fdeca]of _0x11c053['attributes']){if(!this['_isRegisteredAttribute'](_0x4dfa4d))continue;const _0x63770f=_0x96a21b['attributes']['get'](_0x4dfa4d);_0x4fdeca!==_0x63770f&&_0x2b7dfd['push']({'key':_0x4dfa4d,'newValue':_0x63770f,'oldValue':_0x4fdeca,'range':_0x529d1a});}for(const [_0x28e904,_0x4884af]of _0x96a21b['attributes'])this['_isRegisteredAttribute'](_0x28e904)&&(_0x11c053['attributes']['has'](_0x28e904)||_0x2b7dfd['push']({'key':_0x28e904,'newValue':_0x4884af,'oldValue':null,'range':_0x529d1a}));}0x0!=_0x2b7dfd['length']&&_0x4e849a['model']['enqueueChange'](_0x35ef50,_0x58a331=>{const _0x4215fd=_0x4cf4cc();for(const {range:_0x346a52,key:_0x49c335,oldValue:_0x49823c,newValue:_0x1ee07c}of _0x2b7dfd)this['markAttributeChange'](_0x346a52,_0x49c335,_0x49823c,_0x1ee07c,{'groupId':_0x4215fd});this['_reduceExistingSuggestions'](_0x58a331,_0x2b7dfd);});},{'priority':'lowest'}),_0x4e849a['model']['markers']['on']('update:suggestion',(_0x338c2d,_0x3039cc,_0x8ce5c8)=>{if(null==_0x8ce5c8){const {id:_0x3c3f17}=this['_splitMarkerName'](_0x3039cc['name']),_0x3a724e=this['_suggestions']['get'](_0x3c3f17);_0x3a724e&&_0x3a724e['addMarkerName'](_0x3039cc['name']);}}),_0x4e849a['model']['document']['on']('change:data',()=>{const _0x3603d1=Array['from'](_0x4e849a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5ea174=>'suggestion'===this['_splitMarkerName'](_0x5ea174['name'])['group']);if(0x0===_0x3603d1['length'])return;_0x3603d1['sort']((_0x5f5cdc,_0x100a72)=>{const _0x2925be=_0x5f5cdc['data']['oldRange'],_0x36290b=_0x100a72['data']['oldRange'];return null===_0x2925be&&null===_0x36290b?0x0:null===_0x2925be&&null!==_0x36290b?-0x1:null!==_0x2925be&&null===_0x36290b?0x1:_0x2925be['start']['isBefore'](_0x36290b['start'])?-0x1:0x1;});const _0x74450b=new Set(),_0x421a84=new Set();for(const {name:_0x506324,data:_0x2badab}of _0x3603d1){const {id:_0x218cb5}=this['_splitMarkerName'](_0x506324);if(null===_0x2badab['oldRange']){const _0x56ff9c=this['_handleNewSuggestionMarker'](_0x506324);_0x421a84['add'](_0x56ff9c);}else{const _0x429897=this['_suggestions']['get'](_0x218cb5);null!==_0x2badab['newRange']||_0x429897['isInContent']?(_0x74450b['add'](_0x429897['head']),_0x421a84['add'](_0x429897)):this['_removeSuggestion'](_0x429897);}}_0x421a84['size']>0x0&&this['_refreshSuggestionsChain'](_0x421a84);for(const _0x5e89ad of _0x74450b)this['fire']('suggestionChanged',_0x5e89ad);}),_0x4e849a['model']['on']('applyOperation',(_0x1bcbd5,_0x10edf0)=>{const _0x4463ed=_0x10edf0[0x0];if(!this['_suggestions']['size'])return;if(!_0x4463ed['isDocumentOperation'])return;if(_0x4463ed['batch']['isUndo']||!_0x4463ed['batch']['isLocal'])return;let _0x4accad,_0x1f6160;switch(_0x4463ed['type']){case'insert':_0x4accad=_0x4e849a['model']['createPositionAt'](_0x4463ed['position']),_0x1f6160=_0x4accad['getShiftedBy'](_0x4463ed['howMany']);break;case'split':_0x4accad=_0x4e849a['model']['createPositionAt'](_0x4463ed['splitPosition']),_0x1f6160=_0x4e849a['model']['createPositionAt'](_0x4463ed['moveTargetPosition']);break;case'move':_0x4accad=_0x4e849a['model']['createPositionAt'](_0x4463ed['targetPosition']),_0x1f6160=_0x4accad['getShiftedBy'](_0x4463ed['howMany']);break;default:return;}const _0x8398dc=_0x4e849a['model']['createRange'](_0x4accad,_0x1f6160);_0x4e849a['model']['change'](()=>{for(const {suggestion:_0x557faa,meta:_0x5c3b99}of this['_findSuggestions'](_0x8398dc)){if(_0x557faa['isMultiRange'])continue;if('formatInline'==_0x557faa['type'])continue;const _0x9f0863=this['_getAttributeKey'](_0x557faa);if(_0x9f0863&&this['_isBlockAttribute'](_0x9f0863)&&'split'!=_0x4463ed['type'])continue;const _0x7a136c=_0x557faa['data']&&_0x557faa['data']['multipleBlocks'];('formatBlock'!=_0x557faa['type']||'split'==_0x4463ed['type']&&!_0x7a136c)&&(_0x5c3b99['containsRangeInObject']||'insertion'==_0x557faa['type']&&_0x5c3b99['isOwn']||_0x557faa['getFirstRange']()['containsRange'](_0x8398dc)&&this['_breakSuggestionMarker'](_0x557faa,_0x4accad,_0x1f6160));}});},{'priority':'lowest'}),_0x4e849a['model']['on']('deleteContent',(_0x325a74,_0x362f44)=>{const _0xc0f05c=_0x362f44[0x0],_0x3ea16f=_0x362f44[0x1];if(_0x3ea16f&&_0x3ea16f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xc0f05c['isCollapsed'])return;const _0x4b5e7a=_0x4e849a['model']['schema'],{start:_0x58ee53,end:_0x159a5e}=_0xc0f05c['getFirstRange'](),_0x2c59a1=_0x58ee53['nodeAfter']&&_0x4b5e7a['isLimit'](_0x58ee53['nodeAfter'])?null:_0x4b5e7a['getNearestSelectionRange'](_0x58ee53,'forward'),_0x43b919=_0x159a5e['nodeBefore']&&_0x4b5e7a['isLimit'](_0x159a5e['nodeBefore'])?null:_0x4b5e7a['getNearestSelectionRange'](_0x159a5e,'backward'),_0x45ea84=_0x4e849a['model']['createRange'](_0x2c59a1?_0x2c59a1['start']:_0x58ee53,_0x43b919?_0x43b919['end']:_0x159a5e);_0x4e849a['model']['change'](_0x59e54c=>{this['markDeletion'](_0x45ea84);const _0x2d9968=_0x4e849a['model']['schema']['getNearestSelectionRange'](_0x45ea84['start']);_0xc0f05c['is']('documentSelection')?_0x59e54c['setSelection'](_0x2d9968):_0xc0f05c['setTo'](_0x2d9968);}),_0x325a74['stop']();},{'priority':_0x2219d1['normal']+0xa}),_0x4e849a['model']['on']('insertContent',(_0x18c26f,_0xb4bd73)=>{const _0x50ac3e=_0xb4bd73[_0xb4bd73['length']-0x1];_0x50ac3e&&_0x50ac3e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4e849a['model']['change'](()=>{let _0x2ab19e=_0x4e849a['model']['insertContent'](_0xb4bd73[0x0],_0xb4bd73[0x1],_0xb4bd73[0x2],{'forceDefaultExecution':!0x0});if(!_0x2ab19e)return;_0x18c26f['return']=_0x2ab19e['clone']();const _0x358165=_0x2ab19e['end']['nodeBefore'],_0x53886c=_0x4e849a['model']['schema'];_0x358165&&_0x53886c['isBlock'](_0x358165)&&!_0x53886c['isObject'](_0x358165)&&(_0x2ab19e=_0x4e849a['model']['createRange'](_0x2ab19e['start'],_0x4e849a['model']['createPositionAt'](_0x358165,'end'))),this['markInsertion'](_0x2ab19e);}),_0x18c26f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x40ed9a=new x(_0x4e849a,this['_suggestions']);_0x4e849a['commands']['add']('acceptSuggestion',_0x40ed9a),this['enableCommand']('acceptSuggestion');const _0xbe795b=new R(_0x4e849a,this['_suggestions']);_0x4e849a['commands']['add']('discardSuggestion',_0xbe795b),this['enableCommand']('discardSuggestion'),_0x4e849a['commands']['add']('acceptAllSuggestions',new E(_0x4e849a,_0x40ed9a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4e849a['commands']['add']('discardAllSuggestions',new E(_0x4e849a,_0xbe795b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4e849a['commands']['add']('acceptSelectedSuggestions',new O(_0x4e849a,_0x40ed9a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4e849a['commands']['add']('discardSelectedSuggestions',new O(_0x4e849a,_0xbe795b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x47c1c2=_0x4e849a['plugins']['get']('CommentsRepository');this['listenTo'](_0x47c1c2,'addComment',(_0x267077,{threadId:_0x3406a9})=>{const _0x5df124=this['_suggestions']['get'](_0x3406a9);_0x5df124&&_0x5df124['commentThread']&&0x1===_0x5df124['commentThread']['length']&&this['_updateSuggestionData'](_0x3406a9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x47c1c2,'removeComment',(_0x260fc1,{threadId:_0x3719f7})=>{const _0x562f89=this['_suggestions']['get'](_0x3719f7);_0x562f89&&_0x562f89['commentThread']&&!_0x562f89['commentThread']['length']&&this['_updateSuggestionData'](_0x3719f7,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x31be2d){if(this['_adapter'])throw new _0x1a35b0('track-changes-adapter-already-set',this);this['_adapter']=_0x31be2d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x23357=!0x1,toJSON:_0x1cd6d4=!0x1}={}){const _0x36f9fb=[];for(const _0x2a0598 of this['_suggestions']['values']())_0x23357&&!_0x2a0598['isInContent']||_0x36f9fb['push'](_0x2a0598);return _0x1cd6d4?_0x36f9fb['map'](_0x18e3e9=>_0x18e3e9['toJSON']()):_0x36f9fb;}['getSuggestion'](_0x13db28){const _0x44d018=this['_suggestions']['get'](_0x13db28);if(!_0x44d018)throw new _0x1a35b0('track-changes-suggestion-not-found',this);return _0x44d018;}['hasSuggestion'](_0x2c1334){return this['_suggestions']['has'](_0x2c1334);}['addSuggestionData'](_0x1e5d28){const {authorId:_0x161b83,id:_0x2ad7d1,attributes:_0x39bcf2}=_0x1e5d28,[_0x2db450,_0x1e14fc]=_0x1e5d28['type']['split'](':'),_0x23b80b=this['_suggestions']['get'](_0x2ad7d1)||this['_createSuggestion'](_0x2db450,_0x1e14fc,_0x2ad7d1,_0x161b83,_0x39bcf2);if(this['_addThreadToSuggestion'](_0x23b80b),this['_checkSuggestionCorrectness'](_0x23b80b,_0x2db450,_0x1e14fc||null,_0x161b83),_0x23b80b['createdAt']=_0x1e5d28['createdAt'],_0x23b80b['_isDataLoaded']=!0x0,_0x39bcf2&&_0x39bcf2['@external']){const _0x1164d0=_0x39bcf2['@external'],_0x48502d=this['_getExternalAuthor'](_0x1164d0['authorName']);_0x23b80b['authoredAt']=_0x1164d0['createdAt'],_0x23b80b['author']=_0x48502d,_0x23b80b['isExternal']=!0x0;}else _0x23b80b['authoredAt']=_0x1e5d28['createdAt'];switch(_0x1e5d28['data']&&(_0x23b80b['data']=_0x1e5d28['data']),_0x1e5d28['attributes']&&(_0x23b80b['attributes']=_0x1e5d28['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x23b80b['_saved']=!0x0),this['_suggestionState']['get'](_0x23b80b)){case'notReady':this['_suggestionState']['set'](_0x23b80b,'dataReady');break;case'markerReady':_0x23b80b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x23b80b])),this['_refreshSuggestionsChain'](new Set([_0x23b80b])),this['_suggestionState']['set'](_0x23b80b,'ready'),this['fire']('suggestionLoaded',_0x23b80b)):this['_suggestionState']['set'](_0x23b80b,'removed');}return _0x23b80b;}['acceptSuggestion'](_0x5a9204){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x14dae8 of _0x5a9204['getAllAdjacentSuggestions']())_0x14dae8['accept']();});});}['discardSuggestion'](_0x574375){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x587d4d of _0x574375['getAllAdjacentSuggestions']())_0x587d4d['discard']();});});}['enableCommand'](_0x525779,_0x281836){const _0x80de3=this['editor']['commands']['get'](_0x525779);if(!_0x80de3)throw new _0x1a35b0('track-changes-command-not-found',this,{'commandName':_0x525779});if(this['_enabledCommands']['has'](_0x80de3))throw new _0x1a35b0('track-changes-enable-command-twice',this,{'commandName':_0x525779});this['_enabledCommands']['add'](_0x80de3),_0x281836&&_0x80de3['on']('execute',(_0x335274,_0x3d2288)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3d2288['length']>0x0&&_0x3d2288[_0x3d2288['length']-0x1]&&_0x3d2288[_0x3d2288['length']-0x1]['forceDefaultExecution']?_0x3d2288['pop']():(_0x335274['return']=_0x281836((..._0x422dc4)=>_0x80de3['execute'](..._0x422dc4,{'forceDefaultExecution':!0x0}),..._0x3d2288),_0x335274['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xb5bd6b){let _0x2d6016,_0x4edb49;const _0x1ace38=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2d6016=_0xb5bd6b();}catch(_0xe8fc22){_0x4edb49=_0xe8fc22;}return _0x1ace38||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4edb49&&_0x1a35b0['rethrowUnexpectedError'](_0x4edb49,this),_0x2d6016;}['markInsertion'](_0x378ebc,_0x292a76=null,_0x2e3566={}){if(_0x378ebc['isCollapsed'])return null;const _0x340371=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x141a18,meta:_0x1ea768}of this['_findSuggestions'](_0x378ebc,'insertion'))if(_0x1ea768['isOwn']){if(!_0x1ea768['isNextTo']){if(_0x1ea768['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x141a18,_0x2e3566))continue;return _0x141a18;}if(qt(_0x141a18,_0x2e3566))return _0x141a18;this['_breakSuggestionMarker'](_0x141a18,_0x378ebc['start'],_0x378ebc['end']);break;}if(_0x292a76==_0x141a18['subType']&&qt(_0x141a18,_0x2e3566)){const _0x44e119=_0x141a18['getFirstRange']();return _0x44e119['start']['isEqual'](_0x378ebc['end'])?this['_setSuggestionRange'](_0x141a18,this['_model']['createRange'](_0x378ebc['start'],_0x44e119['end'])):this['_setSuggestionRange'](_0x141a18,this['_model']['createRange'](_0x44e119['start'],_0x378ebc['end'])),_0x141a18;}}const _0x306f3c=_0x4cf4cc(),_0x17353c=_0x340371['id'],_0x568002=_0x292a76?'insertion:'+_0x292a76:'insertion',_0x4b1046=this['_setSuggestionData']({'id':_0x306f3c,'type':_0x568002,'createdAt':new Date(),'authorId':_0x17353c,'attributes':_0x2e3566});return this['_addSuggestionMarker'](_0x568002,_0x306f3c,_0x17353c,_0x378ebc),_0x4b1046;}['markMultiRangeInsertion'](_0x55a908,_0x338f46='multi',_0x5a408f={}){const _0x180894=this['editor']['plugins']['get']('Users')['me'],_0x397e8c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x338f46,'join');for(const _0x24e8c4 of this['getSuggestions']())if(_0x24e8c4['author']['id']==_0x180894['id']&&'insertion'==_0x24e8c4['type']&&_0x24e8c4['subType']==_0x338f46&&qt(_0x24e8c4,_0x5a408f)&&(_0x397e8c(_0x24e8c4['getRanges'](),_0x55a908)||_0x397e8c(_0x55a908,_0x24e8c4['getRanges']()))){for(const _0x36b0c4 of _0x55a908)_0x24e8c4['addRange'](_0x36b0c4);return _0x24e8c4;}for(const {suggestion:_0x28df4d,meta:_0x36f902}of this['_findSuggestions'](_0x55a908,'insertion')){if(!_0x36f902['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x36f902['containsRangeInObject'])continue;if(!qt(_0x28df4d,_0x5a408f))continue;let _0x348600=!0x0;for(const _0x203116 of _0x28df4d['getRanges']())for(const _0x52ace5 of _0x55a908)if(!_0x203116['containsRange'](_0x52ace5)){_0x348600=!0x1;break;}if(_0x348600)return _0x28df4d;}const _0x1aa8e3=_0x4cf4cc(),_0x46e38d=_0x180894['id'],_0x379661='insertion:'+_0x338f46,_0x46111f=this['_setSuggestionData']({'id':_0x1aa8e3,'type':_0x379661,'createdAt':new Date(),'authorId':_0x46e38d,'attributes':_0x5a408f});for(const _0x9334b0 of _0x55a908)this['_addSuggestionMarker'](_0x379661,_0x1aa8e3,_0x46e38d,_0x9334b0,u['getMultiRangeId']());return _0x46111f;}['markInlineFormat'](_0x1bb288,_0x2c19a2,_0x5571b2=null,_0x10ace9={}){if(_0x5571b2=_0x5571b2||Gt(_0x2c19a2),_0x1bb288['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4befe3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5571b2,'accept');return this['forceDefaultExecution'](()=>_0x4befe3([_0x1bb288],_0x2c19a2,_0x10ace9)),null;}const _0x4adf37=this['editor']['plugins']['get']('Users')['me'],_0x439e03=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x581434,meta:_0x222391}of this['_findSuggestions'](_0x1bb288,'insertion'))_0x222391['isOwn']&&!_0x222391['isInsideObject']&&_0x439e03['push'](..._0x581434['getRanges']());}const _0x551f07=function(_0x3a5b6e,_0x472090){const _0x396843=[];for(const _0x42c0eb of _0x472090){const _0x994154=_0x3a5b6e['getIntersection'](_0x42c0eb);_0x994154&&_0x396843['push'](_0x994154);}return _0x396843;}(_0x1bb288,_0x439e03),_0x2931c9=function(_0x4d094e,_0x3ff3a1){const _0xe60464=[_0x4d094e];for(const _0x56bb76 of _0x3ff3a1){let _0x51c60b=0x0;for(;_0x51c60b<_0xe60464['length'];){const _0x38d749=_0xe60464[_0x51c60b]['getDifference'](_0x56bb76);_0xe60464['splice'](_0x51c60b,0x1,..._0x38d749),_0x51c60b+=_0x38d749['length'];}}return _0xe60464;}(_0x1bb288,_0x439e03);_0x551f07['length']&&this['_model']['change'](()=>{for(const _0x505180 of _0x551f07){const _0x4bb73a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5571b2,'accept');this['forceDefaultExecution'](()=>_0x4bb73a([_0x505180],_0x2c19a2,_0x10ace9));}});for(const _0x15cd28 of _0x2931c9){let _0x3f84aa=null,_0x53abc9=_0x15cd28['start'],_0x572107=_0x15cd28['end'];for(const {suggestion:_0x5bd769,meta:_0x1ceac4}of this['_findSuggestions'](_0x15cd28,'formatInline')){if(!_0x1ceac4['isOwn'])continue;if(_0x5bd769['subType']!=_0x5571b2)continue;if(!qt(_0x5bd769,_0x10ace9))continue;const _0x217ba2=_0x5bd769['getFirstRange']();if(_0x217ba2['containsRange'](_0x15cd28,!0x0))return null;_0x53abc9=_0x53abc9['isBefore'](_0x217ba2['start'])?_0x53abc9:_0x217ba2['start'],_0x572107=_0x572107['isAfter'](_0x217ba2['end'])?_0x572107:_0x217ba2['end'],_0x3f84aa?_0x217ba2['start']['isBefore'](_0x3f84aa['getFirstRange']()['start'])?(_0x3f84aa['removeMarkers'](),_0x3f84aa=_0x5bd769):_0x5bd769['removeMarkers']():_0x3f84aa=_0x5bd769;}const _0x59ca73=this['_model']['createRange'](_0x53abc9,_0x572107);if(_0x3f84aa)this['_setSuggestionRange'](_0x3f84aa,_0x59ca73);else{const _0xd2084b=_0x4cf4cc(),_0x440240=_0x4adf37['id'];this['_setSuggestionData']({'id':_0xd2084b,'type':'formatInline:'+_0x5571b2,'data':_0x2c19a2,'createdAt':new Date(),'authorId':_0x440240,'attributes':_0x10ace9}),this['_addSuggestionMarker']('formatInline:'+_0x5571b2,_0xd2084b,_0x440240,_0x59ca73);}}return null;}['markBlockFormat'](_0x3cf355,_0xd7c589,_0x1d9350=[],_0x40437a=null,_0x28a14f={}){_0xd7c589['formatGroupId']||(_0xd7c589['formatGroupId']=_0xd7c589['commandName']),_0xd7c589['multipleBlocks']=_0x3cf355['is']('range'),_0x40437a=_0x40437a||Gt(_0xd7c589);const _0x155277=_0x1d9350['map'](_0xc8cbf0=>Lt(_0xc8cbf0,this['_model'])),_0x279bbf=_0x3cf355['is']('range')?_0x3cf355:Lt(_0x3cf355,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2c90ac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40437a,'accept');return this['forceDefaultExecution'](()=>_0x2c90ac([_0x279bbf],_0xd7c589,_0x28a14f)),null;}_0x155277['push'](_0x279bbf);let _0x548923=!0x0;for(const _0x38da19 of _0x155277)if(!this['_rangeIsInLocalUserInsertion'](_0x38da19)){_0x548923=!0x1;break;}if(_0x548923&&'always'!==this['_trackFormatChanges']){const _0x4c1ddb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40437a,'accept');return this['forceDefaultExecution'](()=>_0x4c1ddb([_0x279bbf],_0xd7c589,_0x28a14f)),null;}let _0x32f687=null,_0x477b33=_0x279bbf['start'],_0x36e719=_0x279bbf['end'];for(const {suggestion:_0x654d06,meta:_0x563c4b}of this['_findSuggestions'](_0x279bbf,'formatBlock')){if(!_0x563c4b['isOwn'])continue;if(_0x563c4b['isNextTo']||_0x563c4b['containsRangeInObject']||_0x563c4b['isInsideObject'])continue;if(_0x654d06['data']['formatGroupId']!=_0xd7c589['formatGroupId'])continue;if(!qt(_0x654d06,_0x28a14f))continue;const _0x57271a=_0x654d06['getFirstRange']();if(_0x654d06['subType']==_0x40437a){if(_0x57271a['containsRange'](_0x279bbf,!0x0))return null;_0x477b33=_0x477b33['isBefore'](_0x57271a['start'])?_0x477b33:_0x57271a['start'],_0x36e719=_0x36e719['isAfter'](_0x57271a['end'])?_0x36e719:_0x57271a['end'],_0x32f687?_0x57271a['start']['isBefore'](_0x32f687['getFirstRange']()['start'])?(_0x32f687['removeMarkers'](),_0x32f687=_0x654d06):_0x654d06['removeMarkers']():_0x32f687=_0x654d06;}else{const _0x4d0419=_0x279bbf['getIntersection'](_0x57271a);this['_cutOutSuggestionMarker'](_0x654d06,_0x4d0419);}}const _0x2c340d=this['editor']['plugins']['get']('Users')['me'],_0x37af2e=_0x4cf4cc(),_0x4c64d0=_0x2c340d['id'];if(_0x32f687)return this['_setSuggestionRange'](_0x32f687,this['_model']['createRange'](_0x477b33,_0x36e719)),_0x32f687;{const _0x1fff9e=this['_setSuggestionData']({'id':_0x37af2e,'type':'formatBlock:'+_0x40437a,'data':_0xd7c589,'createdAt':new Date(),'authorId':_0x4c64d0,'attributes':_0x28a14f});return this['_addSuggestionMarker']('formatBlock:'+_0x40437a,_0x37af2e,_0x4c64d0,this['_model']['createRange'](_0x477b33,_0x36e719)),_0x1fff9e;}}['markMultiRangeBlockFormat'](_0x3bc529,_0x1356ba,_0x1da445=[],_0x1faf48=null,_0x1b02da={}){_0x1356ba['formatGroupId']||(_0x1356ba['formatGroupId']=_0x1356ba['commandName']);const _0x31fd59=_0x3bc529[0x0];_0x1356ba['multipleBlocks']=_0x31fd59['is']('range'),_0x1faf48=_0x1faf48||Gt(_0x1356ba);const _0x3d77dd=_0x1da445['map'](_0x2d95be=>Lt(_0x2d95be,this['_model'])),_0x507aa2=_0x31fd59['is']('range')?_0x3bc529:_0x3bc529['map'](_0x10c925=>Lt(_0x10c925,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1d5b02=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1faf48,'accept');return this['forceDefaultExecution'](()=>_0x1d5b02(_0x507aa2,_0x1356ba,_0x1b02da)),null;}_0x3d77dd['push'](..._0x507aa2);let _0x61ddb0=!0x0;for(const _0x4fe82c of _0x3d77dd)if(!this['_rangeIsInLocalUserInsertion'](_0x4fe82c)){_0x61ddb0=!0x1;break;}if(_0x61ddb0&&'always'!==this['_trackFormatChanges']){const _0x3107e9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1faf48,'accept');return this['forceDefaultExecution'](()=>_0x3107e9(_0x507aa2,_0x1356ba,_0x1b02da)),null;}const _0x42faf1=this['editor']['plugins']['get']('Users')['me'];for(const _0x122611 of this['getSuggestions']()){if(_0x122611['author']['id']!=_0x42faf1['id'])continue;if('formatBlock'!=_0x122611['type']||_0x122611['data']['formatGroupId']!=_0x1356ba['formatGroupId'])continue;if(!qt(_0x122611,_0x1b02da))continue;const _0x11a421=_0x122611['subType']==_0x1faf48;for(let _0x4c08f2=0x0;_0x4c08f2<_0x507aa2['length'];_0x4c08f2++){const _0x316d2b=_0x507aa2[_0x4c08f2];for(const _0xb3c08d of _0x122611['getMarkers']()){const _0x4d661b=_0xb3c08d['getRange']();if(_0x316d2b['isEqual'](_0x4d661b)){_0x11a421?(_0x507aa2['splice'](_0x4c08f2,0x1),_0x4c08f2--):_0x122611['removeMarker'](_0xb3c08d['name']);break;}}}}if(0x0==_0x507aa2['length'])return null;const _0x4bccf5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1faf48,'join');for(const _0x1018cc of this['getSuggestions']())if(_0x1018cc['author']['id']==_0x42faf1['id']&&'formatBlock'==_0x1018cc['type']&&_0x1018cc['data']['formatGroupId']==_0x1356ba['formatGroupId']&&_0x1018cc['subType']==_0x1faf48&&qt(_0x1018cc,_0x1b02da)&&(_0x4bccf5(_0x1018cc['getRanges'](),_0x507aa2)||_0x4bccf5(_0x507aa2,_0x1018cc['getRanges']()))){for(const _0x207c39 of _0x507aa2)_0x1018cc['addRange'](_0x207c39);return _0x1018cc;}const _0xaf8338=_0x4cf4cc(),_0xc994d6=_0x42faf1['id'],_0x598169='formatBlock:'+_0x1faf48,_0x3a42be=this['_setSuggestionData']({'id':_0xaf8338,'type':_0x598169,'data':_0x1356ba,'createdAt':new Date(),'authorId':_0xc994d6,'attributes':_0x1b02da});for(const _0x2dfe48 of _0x507aa2)this['_addSuggestionMarker'](_0x598169,_0xaf8338,_0xc994d6,_0x2dfe48,u['getMultiRangeId']());return _0x3a42be;}['markDeletion'](_0x31deca,_0x2dcfbf=null,_0x23437e={}){if(_0x31deca['isCollapsed'])return null;const _0x340824=this['editor']['plugins']['get']('Users')['me'],_0x2e5745=new _0x1a312e(_0x31deca['start'],_0x31deca['end']);for(const {suggestion:_0x5db4cf,meta:_0x1fbd2b}of this['_findSuggestions'](_0x2e5745,'insertion'))if(_0x1fbd2b['isOwn']&&!_0x1fbd2b['isNextTo']){if(_0x5db4cf['isMultiRange']){const _0x5819bd=_0x5db4cf['getRanges']()['filter'](_0x40a18b=>'$graveyard'!=_0x40a18b['root']['rootName']);_0x5819bd['every'](_0x470131=>_0x2e5745['containsRange'](_0x470131,!0x0))&&_0x5db4cf['discard']();if(_0x5819bd['some'](_0x3c6b4b=>_0x3c6b4b['containsRange'](_0x2e5745,!0x0))){const _0x508233=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2dcfbf,'accept');return this['forceDefaultExecution'](()=>_0x508233([_0x2e5745],null,_0x23437e)),null;}}else{const _0x41eeb6=_0x2e5745['getIntersection'](_0x5db4cf['getFirstRange']());null!==_0x41eeb6&&_0x5db4cf['_onDiscard']([_0x41eeb6],null,_0x23437e);}}if(_0x2e5745['detach'](),_0x2e5745['isCollapsed']||'$graveyard'==_0x2e5745['root']['rootName'])return null;let _0x16f828=null,_0x52e68a=_0x2e5745['start'],_0x1633e0=_0x2e5745['end'];const _0x543884=this['_findSuggestions'](_0x2e5745,'deletion');for(const {suggestion:_0x4a0687,meta:_0x575987}of _0x543884){const _0x39c0b1=this['_model']['createRange'](_0x52e68a,_0x1633e0);if(_0x575987['isOwn']&&(this['_mergeNestedSuggestions']||!_0x575987['containsRangeInObject']&&!_0x575987['isInsideObject'])){if(_0x4a0687['isMultiRange']){if(!qt(_0x4a0687,_0x23437e))continue;let _0xab8e81=!0x0;for(const _0x3601e6 of _0x4a0687['getRanges']()){if(_0x3601e6['containsRange'](_0x39c0b1,!0x0))return _0x4a0687;_0x39c0b1['containsRange'](_0x3601e6)||(_0xab8e81=!0x1);}_0xab8e81&&_0x4a0687['discard']();}else{const _0x463e68=_0x4a0687['getFirstRange']();if(_0x463e68['containsRange'](_0x39c0b1,!0x0))return _0x4a0687;if(!qt(_0x4a0687,_0x23437e)){_0x39c0b1['containsRange'](_0x463e68)?_0x4a0687['removeMarkers']():_0x463e68['containsPosition'](_0x52e68a)?_0x52e68a=_0x463e68['end']:_0x463e68['containsPosition'](_0x1633e0)&&(_0x1633e0=_0x463e68['start']);continue;}_0x52e68a=_0x52e68a['isBefore'](_0x463e68['start'])?_0x52e68a:_0x463e68['start'],_0x1633e0=_0x1633e0['isAfter'](_0x463e68['end'])?_0x1633e0:_0x463e68['end'],_0x23437e=Object['assign']({},_0x4a0687['attributes']),_0x16f828?_0x463e68['start']['isBefore'](_0x16f828['getFirstRange']()['start'])?(_0x16f828['removeMarkers'](),_0x16f828=_0x4a0687):_0x4a0687['removeMarkers']():_0x16f828=_0x4a0687;}}}if(_0x16f828)return this['_setSuggestionRange'](_0x16f828,this['_model']['createRange'](_0x52e68a,_0x1633e0)),_0x16f828;{const _0x4f82ba=_0x4cf4cc(),_0x20812a=this['_model']['createRange'](_0x52e68a,_0x1633e0),_0x53fdaa=_0x340824['id'],_0x13757b=_0x2dcfbf?'deletion:'+_0x2dcfbf:'deletion',_0x14e77f=this['_setSuggestionData']({'id':_0x4f82ba,'type':_0x13757b,'createdAt':new Date(),'authorId':_0x53fdaa,'attributes':_0x23437e});return this['_addSuggestionMarker'](_0x13757b,_0x4f82ba,_0x53fdaa,_0x20812a),_0x14e77f;}}['markMultiRangeDeletion'](_0x81750b,_0x538b2a='multi',_0xf3bd51={}){const _0x1e5152=this['editor']['plugins']['get']('Users')['me'],_0x30af89=_0x81750b['map'](_0x499431=>new _0x1a312e(_0x499431['start'],_0x499431['end'])),_0x5f0319=new Set();for(const {suggestion:_0x3cb003,meta:_0x3f1f04}of this['_findSuggestions'](_0x30af89,'insertion'))_0x3f1f04['isOwn']&&!_0x3f1f04['isNextTo']&&_0x5f0319['add'](_0x3cb003);for(const _0x360e91 of _0x5f0319)if(_0x360e91['isMultiRange']){const _0x479c2f=_0x360e91['getRanges']();(!_0x360e91['attributes']||!_0x360e91['attributes']['skipNestingCheck'])&&(_0x479c2f['every'](_0x40ba7c=>_0x30af89['some'](_0x371ca2=>_0x371ca2['containsRange'](_0x40ba7c,!0x0)))&&_0x360e91['discard']());if(_0x30af89['every'](_0x592a1a=>_0x479c2f['some'](_0x44ffbf=>_0x44ffbf['containsRange'](_0x592a1a,!0x0)))){const _0x1e6d16=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538b2a,'accept');return this['forceDefaultExecution'](()=>_0x1e6d16(_0x81750b,null,_0xf3bd51)),null;}}else{const _0x5b61d7=_0x360e91['getFirstRange']();_0x30af89['some'](_0x287f0f=>_0x287f0f['containsRange'](_0x5b61d7,!0x0))&&_0x360e91['discard']();if(_0x30af89['every'](_0x398b52=>_0x5b61d7['containsRange'](_0x398b52,!0x0))){const _0x231752=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538b2a,'accept');return this['forceDefaultExecution'](()=>_0x231752(_0x30af89,null,_0xf3bd51)),null;}}const _0x2e979f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538b2a,'join');let _0x4cd003=null;for(const _0x2ce796 of this['getSuggestions']())if(_0x2ce796['author']['id']==_0x1e5152['id']&&_0x2ce796['isInContent']&&'deletion'==_0x2ce796['type']&&_0x2ce796['subType']==_0x538b2a&&qt(_0x2ce796,_0xf3bd51)&&(_0x2e979f(_0x2ce796['getRanges'](),_0x30af89)||_0x2e979f(_0x30af89,_0x2ce796['getRanges']()))){if(_0x4cd003){if(_0x2ce796['commentThread']&&_0x2ce796['commentThread']['length'])continue;for(const _0x4aa77d of _0x2ce796['getRanges']())_0x4cd003['isIntersectingWithRange'](_0x4aa77d)||_0x4cd003['addRange'](_0x4aa77d);_0x2ce796['removeMarkers']();}else{_0x4cd003=_0x2ce796;for(const _0x59a02e of _0x30af89)_0x2ce796['isIntersectingWithRange'](_0x59a02e)||_0x2ce796['addRange'](_0x59a02e);}}if(_0x4cd003)return _0x4cd003;_0x5f0319['clear']();for(const {suggestion:_0x2e8484,meta:_0x20dce0}of this['_findSuggestions'](_0x30af89,'deletion'))_0x20dce0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x20dce0['containsRangeInObject']&&!_0x20dce0['isInsideObject'])&&qt(_0x2e8484,_0xf3bd51)&&_0x5f0319['add'](_0x2e8484);for(const _0xa16ef of _0x5f0319){const _0x480a07=_0xa16ef['getRanges']();if(!_0xf3bd51||!_0xf3bd51['skipNestingCheck']){if(_0x30af89['every'](_0x189ca4=>_0x480a07['some'](_0xbd3f4e=>_0xbd3f4e['containsRange'](_0x189ca4,!0x0))))return _0xa16ef;}(!_0xa16ef['attributes']||!_0xa16ef['attributes']['skipNestingCheck'])&&(_0x480a07['every'](_0x2c3348=>_0x30af89['some'](_0x3f1088=>_0x3f1088['containsRange'](_0x2c3348,!0x0)))&&_0xa16ef['discard']());}const _0x3d3f9f=_0x4cf4cc(),_0x56be85=_0x1e5152['id'],_0x1b705a='deletion:'+_0x538b2a,_0x26d348=this['_setSuggestionData']({'id':_0x3d3f9f,'type':_0x1b705a,'createdAt':new Date(),'authorId':_0x56be85,'attributes':_0xf3bd51});for(const _0x10acdf of _0x30af89)_0x10acdf['detach'](),_0x10acdf['isCollapsed']||'$graveyard'==_0x10acdf['root']['rootName']||this['_addSuggestionMarker'](_0x1b705a,_0x3d3f9f,_0x56be85,_0x10acdf,u['getMultiRangeId']());return _0x26d348;}['markAttributeChange'](_0x52cf72,_0x3f562,_0x3b4857,_0x5855ec,_0x1613b7){if(_0x52cf72['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x55c200=this['editor']['plugins']['get']('Users')['me']['id'],_0x9dc7fd=Array['from'](this['_suggestions']['values']())['filter'](_0xd9c3de=>'attribute'==_0xd9c3de['type']&&_0xd9c3de['data']['key']==_0x3f562&&_0xd9c3de['isIntersectingWithRange'](_0x52cf72));if('default'===this['_trackFormatChanges']){const _0x51702a=this['_findSuggestions'](_0x52cf72,'insertion')['filter'](({meta:_0x3af1d3})=>_0x3af1d3['isOwn']&&!_0x3af1d3['isInsideObject']&&!_0x3af1d3['isNextTo'])['map'](({suggestion:_0x48fe74})=>_0x48fe74);_0x9dc7fd['unshift'](..._0x51702a);}const _0x36c8e0=new Map([[_0x52cf72,_0x3b4857]]);for(const _0x7c49cb of _0x9dc7fd){const _0x4e87f3='attribute'==_0x7c49cb['type']?_0x7c49cb['data']['oldValue']:void 0x0,_0x4dec94=_0x7c49cb['getFirstRange'](),_0x13561b=Array['from'](_0x36c8e0['keys']())['find'](_0x524ed3=>_0x524ed3['isIntersecting'](_0x4dec94));if(!_0x13561b)continue;const _0x56fb4f=_0x13561b['getDifference'](_0x4dec94);this['_isBlockAttribute'](_0x3f562)&&'insertion'==_0x7c49cb['type']&&0x0!=_0x56fb4f['length']||(_0x36c8e0['delete'](_0x13561b),_0x56fb4f['forEach'](_0x52790e=>{_0x36c8e0['set'](_0x52790e,_0x3b4857);}),'insertion'!=_0x7c49cb['type']&&_0x4e87f3!=_0x5855ec&&_0x36c8e0['set'](_0x13561b['getIntersection'](_0x4dec94),_0x4e87f3));}const _0x49b2d7=[];for(const [_0x2baa8b,_0x2a2e48]of _0x36c8e0){const _0x36a2ec=_0x4cf4cc(),_0x2d808e={'key':_0x3f562,'oldValue':_0x2a2e48,'newValue':_0x5855ec};_0x3f562['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':_0x3f562});const _0x53cb16=('attribute:'+(_0x3f562+'|'+Gt({'newValue':_0x5855ec})))['substring'](0x0,0x3c),_0x2c4e12=this['_setSuggestionData']({'id':_0x36a2ec,'type':_0x53cb16,'data':_0x2d808e,'createdAt':new Date(),'authorId':_0x55c200,'attributes':_0x1613b7});_0x49b2d7['push'](_0x2c4e12),this['_addSuggestionMarker'](_0x53cb16,_0x36a2ec,_0x55c200,_0x2baa8b);}return _0x49b2d7;}['enableDefaultAttributesIntegration'](_0x10fdba){this['enableCommand'](_0x10fdba,(_0x2ea746,..._0x2361ed)=>{this['_recordAttributeChanges'](()=>{_0x2ea746(..._0x2361ed);});});}['registerBlockAttribute'](_0x4a0256){this['_blockAttributeKeys']['add'](_0x4a0256);}['registerInlineAttribute'](_0x4f0c87){this['_inlineAttributeKeys']['add'](_0x4f0c87);}['_getAttributeKey'](_0x84d564){return'attribute'==_0x84d564['type']?_0x84d564['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x178797,_0x265298){const _0x5a9376=_0x178797['getFirstMarker']();this['_model']['change'](_0x2015a6=>{_0x2015a6['updateMarker'](_0x5a9376,{'range':_0x265298});});}['_addThreadToSuggestion'](_0x24b648){const _0x23822d=_0x24b648['id'],_0x140566=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x23822d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x140566,'threadId':_0x23822d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x54854b=this['_commentsRepository']['getCommentThread'](_0x23822d);_0x54854b['unbind']('isRemovable'),_0x54854b['isRemovable']=!0x1,_0x24b648['commentThread']=_0x54854b;}['_checkSuggestionCorrectness'](_0x51b727,_0x58e17c,_0x3ae47c,_0x3c6a5f){if(_0x51b727['type']!=_0x58e17c||_0x51b727['subType']!=_0x3ae47c||_0x51b727['creator']['id']!=_0x3c6a5f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1a35b0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1046f5,_0x45db43){const _0x456a8c=_0x1046f5['getFirstRange']();if(_0x45db43['isEqual'](_0x456a8c))_0x1046f5['removeMarkers']();else{if(_0x456a8c['containsRange'](_0x45db43)){const _0x32edb8=this['_model']['createPositionAt'](_0x45db43['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1046f5,this['_model']['createRange'](_0x456a8c['start'],_0x32edb8));const _0x194626=_0x4cf4cc(),_0x45e2fe=_0x1046f5['creator']['id'],_0x121227=_0x1046f5['type']+':'+_0x1046f5['subType'];this['_setSuggestionData']({'id':_0x194626,'type':_0x121227,'createdAt':new Date(),'authorId':_0x45e2fe,'data':_0x1046f5['data'],'attributes':_0x1046f5['attributes']});const _0x2ffef4=this['_model']['createPositionAt'](_0x45db43['end']['parent'],'after'),_0x357583=this['_model']['createRange'](_0x2ffef4,_0x456a8c['end']);this['_addSuggestionMarker'](_0x121227,_0x194626,_0x45e2fe,_0x357583);}else{if(_0x456a8c['containsPosition'](_0x45db43['start'])){const _0x457274=this['_model']['createPositionAt'](_0x45db43['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1046f5,this['_model']['createRange'](_0x456a8c['start'],_0x457274));}else{const _0xad5a6c=this['_model']['createPositionAt'](_0x45db43['end']['parent'],'after');this['_setSuggestionRange'](_0x1046f5,this['_model']['createRange'](_0xad5a6c,_0x456a8c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2161f7){for(const {suggestion:_0x39fbda,meta:_0x5b8267}of this['_findSuggestions'](_0x2161f7,'insertion')){if(!_0x5b8267['isOwn'])continue;const _0x4be64c=_0x39fbda['getRanges']();for(const _0x14e904 of _0x4be64c)if(!_0x2161f7['getDifference'](_0x14e904)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3b2c85){const _0x3faa05=this['editor']['plugins']['get']('Users')['getUser'](_0x3b2c85);if(!_0x3faa05)throw new _0x1a35b0('track-changes-user-not-found',this);return _0x3faa05;}['_getExternalAuthor'](_0xe87c46){const _0x4aa609=this['editor']['plugins']['get']('Users'),_0x48b2c5=_0x4704f5('external:'+_0xe87c46),_0x57dd8c=_0x4aa609['getUser'](_0x48b2c5);return _0x57dd8c||_0x4aa609['addUser']({'id':_0x48b2c5,'name':_0xe87c46});}['_createSuggestion'](_0xa1ac3,_0x2f7b67,_0x22152e,_0x1aeac0,_0x37f1b5){const _0x37b53a=this['_getAuthorFromId'](_0x1aeac0),_0x3b8e1f=this['_suggestionFactory']['buildSuggestion'](_0xa1ac3,_0x2f7b67,_0x22152e,_0x37b53a,_0x37f1b5,_0x436c7c=>{this['_updateSuggestionData'](_0x22152e,{'attributes':_0x436c7c});const _0x5b8c76=this['getSuggestion'](_0x22152e);this['_joinWithAdjacentSuggestions'](new Set([_0x5b8c76])),this['_refreshSuggestionsChain'](new Set([_0x5b8c76]));});return this['listenTo'](_0x3b8e1f,'accept',()=>{this['_updateSuggestionData'](_0x22152e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3b8e1f,'discard',()=>{this['_updateSuggestionData'](_0x22152e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x22152e,_0x3b8e1f),this['_suggestionState']['set'](_0x3b8e1f,'notReady'),_0x3b8e1f;}['_splitMarkerName'](_0x3a80db){const _0x33efec=_0x3a80db['split'](':');return{'group':_0x33efec[0x0],'type':_0x33efec[0x1],'subType':_0x33efec['length']>=0x5?_0x33efec[0x2]:null,'id':_0x33efec['length']<0x5?_0x33efec[0x2]:_0x33efec[0x3],'authorId':_0x33efec['length']<0x5?_0x33efec[0x3]:_0x33efec[0x4],'markerCount':0x6==_0x33efec['length']?_0x33efec[0x5]:null};}['_breakSuggestionMarker'](_0x30c692,_0x7acd88,_0x57c2e6){const _0x223fdd=_0x30c692['getFirstRange'](),_0x24cde5=_0x223fdd['start'],_0x1fd26b=_0x223fdd['end'];this['_setSuggestionRange'](_0x30c692,this['_model']['createRange'](_0x24cde5,_0x7acd88));const _0xfb6e49=_0x4cf4cc(),_0xbe64bc=_0x30c692['creator']['id'],_0x38b1d7=_0x30c692['type']+(_0x30c692['subType']?':'+_0x30c692['subType']:'');this['_setSuggestionData']({'id':_0xfb6e49,'type':_0x38b1d7,'createdAt':new Date(),'authorId':_0xbe64bc,'originalSuggestionId':_0x30c692['id'],'attributes':_0x30c692['attributes'],'data':_0x30c692['data']});const _0x3160ab=this['_getAttributeKey'](_0x30c692);('formatBlock'==_0x30c692['type']||_0x3160ab&&this['_isBlockAttribute'](_0x3160ab))&&(_0x57c2e6=this['_model']['createPositionBefore'](_0x57c2e6['parent'])),this['_addSuggestionMarker'](_0x38b1d7,_0xfb6e49,_0xbe64bc,this['_model']['createRange'](_0x57c2e6,_0x1fd26b));}['_findSuggestions'](_0x3eb474,_0x1003d3=null){const _0x44412c=[],_0xb3687e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3eb474)||(_0x3eb474=[_0x3eb474]);for(const _0x1b5bda of this['getSuggestions']()){if(!_0x1b5bda['isInContent'])continue;if(_0x1003d3&&_0x1b5bda['type']!=_0x1003d3)continue;let _0x2c88ce=!0x1;for(const _0x1c668b of _0x1b5bda['getRanges']()){for(const _0x11c3a2 of _0x3eb474){const _0x3a2282=_0x11c3a2['start']['isEqual'](_0x1c668b['end'])||_0x11c3a2['end']['isEqual'](_0x1c668b['start']);if(_0x3a2282||_0x11c3a2['getIntersection'](_0x1c668b)){const _0x3f3c06=_0x11c3a2['containsRange'](_0x1c668b)&&Ot(this['_model']['schema'],_0x1c668b['start'],_0x11c3a2),_0x22825d=_0x1c668b['containsRange'](_0x11c3a2)&&Ot(this['_model']['schema'],_0x11c3a2['start'],_0x1c668b);_0x44412c['push']({'suggestion':_0x1b5bda,'meta':{'isOwn':_0xb3687e==_0x1b5bda['author'],'isNextTo':_0x3a2282,'isInsideObject':_0x3f3c06,'containsRangeInObject':_0x22825d}}),_0x2c88ce=!0x0;break;}}if(_0x2c88ce)break;}}return _0x44412c;}['_addSuggestionMarker'](_0x5f5318,_0x59877e,_0x11648e,_0x25b355,_0x4d5d30){this['_model']['change'](_0x319f35=>{let _0x5d0f17='suggestion:'+_0x5f5318+':'+_0x59877e+':'+_0x11648e;_0x4d5d30&&(_0x5d0f17=_0x5d0f17+':'+_0x4d5d30),_0x319f35['addMarker'](_0x5d0f17,{'range':_0x25b355,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4a9ea3){const _0x556f90=_0x4a9ea3['previous'],_0x23c732=_0x4a9ea3['next'];_0x4a9ea3['previous']=null,_0x4a9ea3['next']=null,null!=_0x556f90&&_0x556f90['next']==_0x4a9ea3&&(_0x556f90['next']=_0x23c732),null!=_0x23c732&&_0x23c732['previous']==_0x4a9ea3&&(_0x23c732['previous']=_0x556f90),'ready'==this['_suggestionState']['get'](_0x4a9ea3)&&(this['_suggestionState']['set'](_0x4a9ea3,'removed'),this['fire']('suggestionUnloaded',_0x4a9ea3,_0x556f90,_0x23c732));}['_setSuggestionData'](_0x1caceb){const _0x437b47=_0x1caceb['id'],_0x3d01ab=this['addSuggestionData'](_0x1caceb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x184a95=this['editor']['plugins']['get']('PendingActions'),_0x330b2b=_0x3d01ab['hasComments'],_0x1646c9=_0x3d01ab['subType']?_0x3d01ab['type']+':'+_0x3d01ab['subType']:_0x3d01ab['type'],_0x2b88e7=this['editor']['locale'],_0x5adaac=_0x184a95['add'](o(_0x2b88e7,'PENDING_ACTION_SUGGESTION')),_0x3b57ad={'id':_0x437b47,'type':_0x1646c9,'hasComments':_0x330b2b,'data':_0x1caceb['data']||null,'originalSuggestionId':_0x1caceb['originalSuggestionId']||null,'attributes':_0x3d01ab['attributes']};this['_adapter']['addSuggestion'](_0x3b57ad)['then'](_0x1619e3=>{_0x3d01ab['_saved']=!0x0,_0x184a95['remove'](_0x5adaac),_0x1619e3&&_0x1619e3['createdAt']&&(this['_suggestions']['get'](_0x437b47)['createdAt']=_0x1619e3['createdAt']);})['catch'](_0x381c51=>{throw _0x124f83('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3d01ab['discard']();}),_0x3d01ab['stopListening'](),this['_suggestions']['delete'](_0x3d01ab['id']),this['_suggestionState']['delete'](_0x3d01ab),_0x381c51;});}return _0x3d01ab;}['_isBlockAttribute'](_0x49d502){return this['_blockAttributeKeys']['has'](_0x49d502);}['_updateSuggestionData'](_0x34fa3f,_0x1df7e3){const _0x5bd80e=this['editor']['plugins']['get']('PendingActions'),_0xbc8d75=this['getSuggestion'](_0x34fa3f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xbc8d75['_saved']){const _0x2ca870=_0x5bd80e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x34fa3f,_0x1df7e3)['then'](()=>{_0x5bd80e['remove'](_0x2ca870);});}else _0xbc8d75['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x34fa3f,_0x1df7e3);});}}['_getSuggestionData'](_0xfb7e52){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1a35b0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xfb7e52);}['_handleNewSuggestionMarker'](_0x209cf1){const {id:_0x3e861c,type:_0x183c3d,subType:_0x29f7ba,authorId:_0x188aaf}=this['_splitMarkerName'](_0x209cf1),_0x4ccbfd=this['_suggestions']['get'](_0x3e861c)||this['_createSuggestion'](_0x183c3d,_0x29f7ba,_0x3e861c,_0x188aaf,{});switch(this['_checkSuggestionCorrectness'](_0x4ccbfd,_0x183c3d,_0x29f7ba,_0x188aaf),this['_suggestionState']['get'](_0x4ccbfd)){case'notReady':this['_getSuggestionData'](_0x3e861c)['then'](_0x592323=>{let _0x59d945=Promise['resolve']();_0x592323['hasComments']&&(_0x59d945=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3e861c})),_0x59d945['then'](()=>{this['addSuggestionData'](_0x592323)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4ccbfd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3e861c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4ccbfd,'ready'),this['fire']('suggestionLoaded',_0x4ccbfd);break;case'ready':this['fire']('suggestionChanged',_0x4ccbfd);}return _0x4ccbfd['addMarkerName'](_0x209cf1),_0x4ccbfd;}['_refreshSuggestionsChain'](_0x233a53){const _0x11264b=Array['from'](_0x233a53),_0xd96c03=_0x11264b['filter'](_0x1e788c=>'attribute'==_0x1e788c['type']);this['_refreshAttributeSuggestionsChain'](_0xd96c03);const _0x3b6e61=_0x11264b['filter'](_0x5314d8=>!_0x5314d8['isMultiRange']&&'attribute'!=_0x5314d8['type']),_0x372251=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16e4e9=>!_0x16e4e9['isMultiRange']&&'attribute'!=_0x16e4e9['type']),_0xa3828c=_0x372251['filter'](_0x287b78=>!_0x233a53['has'](_0x287b78)),_0x2121f0=new Map(_0x372251['map'](_0x1b4abc=>[_0x1b4abc,this['_suggestionFactory']['getSuggestionCallback'](_0x1b4abc['type'],_0x1b4abc['subType'],'chain')])),_0x51e6d5=new Map(_0x372251['map'](_0x51fbb0=>[_0x51fbb0,_0x51fbb0['getFirstRange']()])),_0x45032f=new Set(),_0x41167c=new Set();for(let _0x317683=0x0;_0x317683<_0x3b6e61['length'];_0x317683++)_0x4d0628(_0x3b6e61[_0x317683],_0x3b6e61,_0x317683+0x1);for(let _0x82dbcc=0x0;_0x82dbcc<_0x3b6e61['length'];_0x82dbcc++)_0x4d0628(_0x3b6e61[_0x82dbcc],_0xa3828c,0x0);const _0x5aa762=new Set();for(let _0x11e555=0x0;_0x11e555<_0x3b6e61['length'];_0x11e555++){const _0x55c85d=_0x3b6e61[_0x11e555];!_0x41167c['has'](_0x55c85d)&&_0x55c85d['previous']&&(_0x5aa762['add'](_0x55c85d['previous']),_0x55c85d['previous']['next']===_0x55c85d&&(_0x55c85d['previous']['next']=null),_0x55c85d['previous']=null),!_0x45032f['has'](_0x55c85d)&&_0x55c85d['next']&&(_0x5aa762['add'](_0x55c85d['next']),_0x55c85d['next']['previous']===_0x55c85d&&(_0x55c85d['next']['previous']=null),_0x55c85d['next']=null);}function _0x4d0628(_0x38c720,_0x3d1da2,_0x29fac9){for(let _0x12e4e7=_0x29fac9;_0x12e4e7<_0x3d1da2['length'];_0x12e4e7++){const _0xc78f6b=_0x28b180(_0x38c720,_0x3d1da2[_0x12e4e7]);_0xc78f6b&&(_0xc78f6b[0x0]['next']=_0xc78f6b[0x1],_0xc78f6b[0x1]['previous']=_0xc78f6b[0x0],_0x45032f['add'](_0xc78f6b[0x0]),_0x41167c['add'](_0xc78f6b[0x1]));}}function _0x28b180(_0x567916,_0x5d85bd){if(_0x567916['author']['id']!==_0x5d85bd['author']['id'])return null;const _0x4fd6dd=_0x2121f0['get'](_0x567916)(_0x567916,_0x5d85bd,_0x51e6d5['get'](_0x567916),_0x51e6d5['get'](_0x5d85bd));if(!_0x4fd6dd)return null;return _0x2121f0['get'](_0x5d85bd)(_0x567916,_0x5d85bd,_0x51e6d5['get'](_0x567916),_0x51e6d5['get'](_0x5d85bd))?_0x4fd6dd[0x1]['commentThread']&&_0x4fd6dd[0x1]['commentThread']['length']?null:_0x4fd6dd:null;}_0x5aa762['size']&&this['_refreshSuggestionsChain'](_0x5aa762);}['_refreshAttributeSuggestionsChain'](_0x10f136){if(0x0==_0x10f136['length'])return;const _0x52274b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d130f=>'attribute'==_0x3d130f['type']&&_0x3d130f['_isDataLoaded']),_0x3e2078=[],_0x4dca04=new Map();for(const _0xbf4173 of _0x52274b){const _0xcd69df=_0x4704f5(_0xbf4173['attributes']);_0x4dca04['has'](_0xcd69df)||(_0x4dca04['set'](_0xcd69df,_0x3e2078['length']),_0x3e2078['push']([]));const _0x1585b1=_0x4dca04['get'](_0xcd69df);_0x3e2078[_0x1585b1]['push'](_0xbf4173);}!(function(){_0x3e2078['sort']((_0x112c82,_0x2a1fc1)=>{const _0x58a9ef=_0x112c82[0x0]['createdAt'],_0x13db9d=_0x2a1fc1[0x0]['createdAt'];return _0x58a9ef==_0x13db9d?_0x112c82[0x0]['attributes']['groupId']<_0x2a1fc1[0x0]['attributes']['groupId']?-0x1:0x1:_0x58a9ef<_0x13db9d?-0x1:0x1;});for(const _0x20b48b of _0x3e2078)_0x20b48b['sort']((_0x5589c6,_0x564608)=>_0x5589c6['id']<_0x564608['id']?-0x1:0x1);}());for(let _0x321531=0x0;_0x321531<_0x3e2078['length'];_0x321531++){if(0x0==_0x3e2078[_0x321531]['length'])continue;const _0x48003=[];for(let _0x2ffe8e=_0x321531+0x1;_0x2ffe8e<_0x3e2078['length'];_0x2ffe8e++)0x0!=_0x3e2078[_0x2ffe8e]['length']&&_0x5005d4(_0x3e2078[_0x321531],_0x3e2078[_0x2ffe8e])&&_0x48003['push'](_0x2ffe8e);for(const _0x57b80e of _0x48003)_0x3e2078[_0x321531]=_0x3e2078[_0x321531]['concat'](_0x3e2078[_0x57b80e]),_0x3e2078[_0x57b80e]=[];}for(const _0x1d37a5 of _0x3e2078)for(let _0x3cfdd0=0x0;_0x3cfdd0<_0x1d37a5['length'];_0x3cfdd0++){const _0x13c398=_0x1d37a5[_0x3cfdd0+0x1]||null;_0x1d37a5[_0x3cfdd0]['next']!==_0x13c398&&(_0x1d37a5[_0x3cfdd0]['next']=_0x13c398);}for(const _0x2dcc3a of _0x3e2078)for(let _0x27d921=0x0;_0x27d921<_0x2dcc3a['length'];_0x27d921++){const _0x42b1bb=_0x2dcc3a[_0x27d921-0x1]||null;_0x2dcc3a[_0x27d921]['previous']!==_0x42b1bb&&(_0x2dcc3a[_0x27d921]['previous']=_0x42b1bb);}function _0x5005d4(_0x1c0c95,_0x1bfc7a){if(_0x1c0c95[0x0]['attributes']['groupId']!==_0x1bfc7a[0x0]['attributes']['groupId']&&_0x1c0c95[0x0]['author']!==_0x1bfc7a[0x0]['author'])return!0x1;if(!function(_0x872e86,_0x4683e3){if(!_0x872e86['hasComments']&&!_0x4683e3['hasComments'])return!0x0;if(_0x872e86['hasComments']&&_0x4683e3['hasComments'])return!0x1;if(_0x872e86['hasComments']&&_0x4683e3['createdAt']<_0x872e86['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4683e3['hasComments']&&_0x872e86['createdAt']<_0x4683e3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1c0c95[0x0],_0x1bfc7a[0x0]))return!0x1;const _0x4f7947=Tt(_0x1c0c95[0x0]['attributes'],'groupId'),_0x2d59ac=Tt(_0x1bfc7a[0x0]['attributes'],'groupId');if(!_0x11e4b7(_0x4f7947,_0x2d59ac))return!0x1;return!!_0x1c0c95['every'](_0xedadef=>_0x1bfc7a['some'](_0x1c7626=>_0xedadef['getFirstRange']()['isEqual'](_0x1c7626['getFirstRange']())))&&_0x1bfc7a['every'](_0x166799=>_0x1c0c95['some'](_0x34aceb=>_0x166799['getFirstRange']()['isEqual'](_0x34aceb['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x35cb78){const _0x4959be=Array['from'](_0x35cb78),_0x2555c1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4ff66b=_0x2555c1['filter'](_0x12299f=>!_0x35cb78['has'](_0x12299f)),_0x5cdcea=new Map(_0x4959be['map'](_0x1bb6fb=>[_0x1bb6fb,this['_suggestionFactory']['getSuggestionCallback'](_0x1bb6fb['type'],_0x1bb6fb['subType'],'join')])),_0x19d5ac=new Map(_0x2555c1['map'](_0x3a42dc=>[_0x3a42dc,_0x3a42dc['getRanges']()]));for(let _0x3b671f=0x0;_0x3b671f<_0x4959be['length'];_0x3b671f++){if(_0x799fff(this,_0x4959be[_0x3b671f],_0x4959be,_0x3b671f+0x1))return!0x0;}for(let _0x50fe7f=0x0;_0x50fe7f<_0x4959be['length'];_0x50fe7f++){if(_0x799fff(this,_0x4959be[_0x50fe7f],_0x4ff66b,0x0))return!0x0;}return!0x1;function _0x799fff(_0x21dbd4,_0x3c65dc,_0x129ea7,_0x3d1f4d){for(let _0x1ce517=_0x3d1f4d;_0x1ce517<_0x129ea7['length'];_0x1ce517++){const _0x2ce82d=_0x129ea7[_0x1ce517];if(_0x2ce82d['type']!==_0x3c65dc['type']||_0x2ce82d['author']['id']!==_0x3c65dc['author']['id']||_0x2ce82d['subType']!==_0x3c65dc['subType'])continue;if(!Jt(_0x3c65dc,_0x2ce82d))continue;if('attribute'==_0x3c65dc['type']&&_0x3c65dc['data']['oldValue']!=_0x2ce82d['data']['oldValue'])continue;if('attribute'==_0x3c65dc['type']&&_0x21dbd4['_isBlockAttribute'](_0x3c65dc['data']['key']))continue;if('formatBlock'==_0x3c65dc['type']){const _0xd68222=_0x21dbd4['editor']['model'],_0x329091=_0x3c65dc['getContainedElement']();if(_0x329091&&(_0xd68222['schema']['isObject'](_0x329091)||_0xd68222['schema']['isLimit'](_0x329091)))continue;}const _0x39ac17=_0x5cdcea['get'](_0x3c65dc),_0x5ace56=_0x19d5ac['get'](_0x3c65dc),_0xd0f974=_0x19d5ac['get'](_0x2ce82d),_0x3be039=_0x3c65dc['commentThread']&&_0x3c65dc['commentThread']['length'],_0x5d9cdc=_0x2ce82d['commentThread']&&_0x2ce82d['commentThread']['length'];if(!_0x3be039&&_0x39ac17(_0xd0f974,_0x5ace56))return _0x21dbd4['_joinSuggestions'](_0x2ce82d,_0x3c65dc),_0x19d5ac['delete'](_0x3c65dc),!0x0;if(!_0x5d9cdc&&_0x39ac17(_0x5ace56,_0xd0f974))return _0x21dbd4['_joinSuggestions'](_0x3c65dc,_0x2ce82d),_0x19d5ac['delete'](_0x2ce82d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x58ea5a,_0x1e2993){if(_0x58ea5a['isMultiRange']){for(const _0x3011eb of _0x1e2993['getRanges']())_0x58ea5a['addRange'](_0x3011eb);}else{const _0x13e0bd=_0x1e2993['getFirstRange']()['end'];this['_setSuggestionRange'](_0x58ea5a,this['_model']['createRange'](_0x58ea5a['getFirstRange']()['start'],_0x13e0bd));}_0x1e2993['removeMarkers']();}['_getMarkerAnnouncementText'](_0xfc2cd3,_0x4ce339,_0x48b409){const _0x30b10b=_0xfc2cd3['startsWith']('format')||_0xfc2cd3['startsWith']('attribute')?'FORMATTING':_0xfc2cd3['toUpperCase']();return o(this['editor']['locale'],_0x4ce339+'_'+_0x30b10b+'_SUGGESTION_ANNOUNCEMENT',_0x48b409);}['_initAriaMarkerChangeAnnouncements'](){const _0x3103cd=this['editor'];if(!_0x3103cd['ui'])return;const {ariaLiveAnnouncer:_0x2ac653}=_0x3103cd['ui'];_0x280cba(this['_model'],({left:_0x1a39ce,entered:_0x4f4d61})=>{for(const _0x290f7e of _0x1a39ce){const {group:_0x395afa,type:_0x262cdd}=this['_splitMarkerName'](_0x290f7e['name']);if('suggestion'===_0x395afa){_0x2ac653['announce'](this['_getMarkerAnnouncementText'](_0x262cdd,'LEAVE'));break;}}for(const _0x3f0a6c of _0x4f4d61){const {group:_0x141b27,type:_0x7aca91}=this['_splitMarkerName'](_0x3f0a6c['name']);if('suggestion'===_0x141b27){_0x2ac653['announce'](this['_getMarkerAnnouncementText'](_0x7aca91,'ENTER',_0x4bd46a(_0x61a5af)));break;}}});}['_processAttributeChanges'](_0x35f13a){if(this['_recordAttributeSuggestions'])return!0x1;const _0xf0e12=this['editor'],_0xa9e8b5=_0xf0e12['model']['document']['differ']['getChanges']();if(0x0==_0xa9e8b5['length'])return!0x1;const _0x58f8c8=[],_0x4ceed7=_0xa9e8b5['filter'](_0x62976=>'attribute'==_0x62976['type']),_0x518b82=_0xa9e8b5['filter'](_0x58ce54=>'insert'==_0x58ce54['type']&&'$text'!=_0x58ce54['name']),_0x1e17fb=_0xa9e8b5['filter'](_0x12d7ef=>'remove'==_0x12d7ef['type']&&'$text'!=_0x12d7ef['name']);for(const _0xa00af0 of _0x4ceed7)_0x58f8c8['push']({'key':_0xa00af0['attributeKey'],'newValue':_0xa00af0['attributeNewValue'],'oldValue':_0xa00af0['attributeOldValue'],'range':Pt(_0xa00af0['range'],_0xf0e12['model'])});for(const _0x2c604a of _0x518b82){const _0xa1ec14=_0x1e17fb['find'](_0x165c61=>_0x165c61['position']['isEqual'](_0x2c604a['position']));_0xa1ec14&&_0x58f8c8['push']({'key':m,'newValue':_0x2c604a['name'],'oldValue':_0xa1ec14['name'],'range':_0xf0e12['model']['createRangeOn'](_0x2c604a['position']['nodeAfter'])});}return 0x0!=_0x58f8c8['length']&&this['_reduceExistingSuggestions'](_0x35f13a,_0x58f8c8);}['_processAttributeSuggestions'](_0x133fba){let _0x44e987=!0x1;const _0x5adcae=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4bf957=>_0x4bf957['data']['newRange']&&_0x4bf957['name']['startsWith']('suggestion:attribute:'));for(const _0xb9d86f of _0x5adcae){const {subType:_0x3b1b3d,id:_0x39c7c8}=this['_splitMarkerName'](_0xb9d86f['name']),_0x3e627f=_0x3b1b3d['split']('|')[0x0];for(const _0x4e468d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4e468d['id']!=_0x39c7c8&&'attribute'==_0x4e468d['type']&&_0x4e468d['data']&&_0x4e468d['data']['key']==_0x3e627f&&_0x4e468d['getFirstRange']()['isIntersecting'](_0xb9d86f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4e468d,_0xb9d86f['data']['newRange'],_0x133fba),_0x44e987=!0x0);}return _0x44e987;}['_recordAttributeChanges'](_0x5ecb37){this['_recordAttributeSuggestions']=!0x0,_0x5ecb37();}['_isRegisteredAttribute'](_0x3a817d){const _0x48616e=this['_isBlockAttribute'](_0x3a817d),_0x52e401=this['_inlineAttributeKeys']['has'](_0x3a817d);return _0x48616e||_0x52e401;}['_reduceExistingSuggestions'](_0x5a169f,_0x3200af){if(0x0==_0x3200af['length'])return!0x1;let _0x72967f=!0x1;for(const _0xac35d3 of _0x3200af){const _0x202acc=this['_findSuggestions'](_0xac35d3['range'],'attribute')['filter'](_0x3b47a8=>!_0x3b47a8['meta']['isNextTo'])['map'](_0x27294c=>_0x27294c['suggestion']),_0x5bf69c=_0x4704f5({'newValue':_0xac35d3['newValue']});_0x202acc['filter'](_0x12db58=>{const [_0x1f1b2a,_0x4d653e]=_0x12db58['subType']['split']('|');return _0x1f1b2a==_0xac35d3['key']&&_0x4d653e!=_0x5bf69c;})['forEach'](_0x122cf3=>{this['_reduceSuggestionAttributeRange'](_0x122cf3,_0xac35d3['range'],_0x5a169f),_0x72967f=!0x0;});}return _0x72967f;}['_reduceSuggestionAttributeRange'](_0x2bb3ae,_0x25d75b,_0x53ab96){const _0x6e254=_0x2bb3ae['getFirstRange']()['getDifference'](_0x25d75b);0x0!==_0x6e254['length']?0x1!==_0x6e254['length']?this['_breakSuggestionMarker'](_0x2bb3ae,_0x25d75b['start'],_0x25d75b['end']):this['_setSuggestionRange'](_0x2bb3ae,_0x6e254[0x0]):_0x53ab96['removeMarker'](_0x2bb3ae['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x464590){this['_editor']=_0x464590,this['_model']=_0x464590['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x173128,_0x5161b8,_0x3bd43e,_0x1d378a,_0x141cb1,_0x43c6a5){return new u(this['_model'],{'type':_0x173128,'subType':_0x5161b8,'id':_0x3bd43e,'author':_0x1d378a,'creator':_0x1d378a,'attributes':_0x141cb1,'onAttributesChange':_0x43c6a5,'onAccept':(..._0x906500)=>this['getSuggestionCallback'](_0x173128,_0x5161b8,'accept')(..._0x906500),'onDiscard':(..._0x2508d5)=>this['getSuggestionCallback'](_0x173128,_0x5161b8,'discard')(..._0x2508d5)});}['registerCustomCallback'](_0x15d66a,_0x5d9845,_0x283d03,_0x2f054b){const _0x1f5bb7=_0x15d66a+':'+_0x5d9845+':'+_0x283d03;this['_customCallbacks']['set'](_0x1f5bb7,_0x2f054b);}['getSuggestionCallback'](_0x1097fb,_0xb61c53,_0x204427){const _0x4d50c8=_0x1097fb+':'+_0xb61c53+':'+_0x204427;return this['_customCallbacks']['get'](_0x4d50c8)||this['_defaultCallbacks']['get'](_0x1097fb+':'+_0x204427);}['_registerDefaultCallbacks'](){const _0x105912=()=>!0x1,_0x589c9d=_0x3fccb2=>{_0x3fccb2['sort']((_0x59513d,_0x1f64ea)=>_0x59513d['start']['isBefore'](_0x1f64ea['start'])?0x1:-0x1),this['_model']['change'](_0x3cd0fa=>{for(const _0x10e44f of _0x3fccb2){let _0x972a03;_0x972a03=_0x10e44f['end']['isAtEnd']&&_0x10e44f['end']['parent']==_0x10e44f['start']['nodeAfter']?_0x3cd0fa['createSelection'](_0x10e44f['start']['nodeAfter'],'on'):_0x3cd0fa['createSelection'](_0x10e44f),this['_model']['deleteContent'](_0x972a03,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x41e466=(_0x3ed1fe,_0x458a72)=>{_0x458a72&&this['_model']['change'](_0x3e8bd8=>{const {commandName:_0x1a40dc,commandParams:_0xd6cb0=[]}=_0x458a72,_0x144efb=_0x3ed1fe['map'](_0x3966fb=>(Vt(_0x3966fb)&&(_0x3966fb=this['_model']['createRange'](_0x3966fb['end'])),_0x3966fb))['filter'](_0x563a03=>'$graveyard'!==_0x563a03['root']['rootName']);if(_0x144efb['length']<0x1)return;const _0x593b66=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5f5836=>_0x1a312e['fromRange'](_0x5f5836));_0x3e8bd8['setSelection'](_0x144efb);for(const _0x49a95e of this['_editor']['commands']['commands']())_0x49a95e['refresh']();_0xd6cb0['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1a40dc,..._0xd6cb0);const _0x188b05=_0x593b66['filter'](_0x1c0e08=>'$graveyard'!=_0x1c0e08['root']['rootName']);_0x188b05['length']>0x0&&_0x3e8bd8['setSelection'](_0x188b05);for(const _0xe749ab of _0x593b66)_0xe749ab['detach']();});},_0x4590af=(_0x111725,_0x4d05ee)=>0x1==_0x111725['length']&&0x1==_0x4d05ee['length']&&_0x111725[0x0]['end']['isEqual'](_0x4d05ee[0x0]['start']),_0x5380fb=(_0xdd12b3,_0x1abf88,_0x21cc4d,_0x4d8b4e)=>Ht(_0xdd12b3,_0x1abf88,_0x21cc4d,_0x4d8b4e,this['_model'])?[_0xdd12b3,_0x1abf88]:Ht(_0x1abf88,_0xdd12b3,_0x4d8b4e,_0x21cc4d,this['_model'])?[_0x1abf88,_0xdd12b3]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x105912),this['_defaultCallbacks']['set']('insertion:discard',_0x589c9d),this['_defaultCallbacks']['set']('insertion:join',_0x4590af),this['_defaultCallbacks']['set']('insertion:chain',_0x5380fb),this['_defaultCallbacks']['set']('deletion:accept',_0x589c9d),this['_defaultCallbacks']['set']('deletion:discard',_0x105912),this['_defaultCallbacks']['set']('deletion:join',_0x4590af),this['_defaultCallbacks']['set']('deletion:chain',_0x5380fb),this['_defaultCallbacks']['set']('formatInline:accept',_0x41e466),this['_defaultCallbacks']['set']('formatInline:discard',_0x105912),this['_defaultCallbacks']['set']('formatInline:join',_0x4590af),this['_defaultCallbacks']['set']('formatInline:chain',_0x105912),this['_defaultCallbacks']['set']('formatBlock:accept',_0x41e466),this['_defaultCallbacks']['set']('formatBlock:discard',_0x105912),this['_defaultCallbacks']['set']('formatBlock:join',_0x4590af),this['_defaultCallbacks']['set']('formatBlock:chain',_0x105912),this['_defaultCallbacks']['set']('attribute:accept',_0x105912),this['_defaultCallbacks']['set']('attribute:discard',(_0x49cd4c,_0x1e03ee)=>{if(!_0x1e03ee)return;const _0x51fcaa=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3adbb5=>{if(_0x1e03ee['key']==m)for(const _0x40a000 of _0x49cd4c){const _0xddaf83=_0x40a000['start']['nodeAfter'],_0x4d6408=_0x1e03ee['oldValue'];_0x3adbb5['rename'](_0xddaf83,_0x4d6408);}else{if(_0x51fcaa['_isBlockAttribute'](_0x1e03ee['key'])){for(const _0x52e4bc of _0x49cd4c)void 0x0!==_0x1e03ee['oldValue']?_0x3adbb5['setAttribute'](_0x1e03ee['key'],_0x1e03ee['oldValue'],_0x52e4bc['start']['nodeAfter']):_0x3adbb5['removeAttribute'](_0x1e03ee['key'],_0x52e4bc['start']['nodeAfter']);}else{for(const _0x44a98e of _0x49cd4c)_0x1e03ee['oldValue']?_0x3adbb5['setAttribute'](_0x1e03ee['key'],_0x1e03ee['oldValue'],_0x44a98e):_0x3adbb5['removeAttribute'](_0x1e03ee['key'],_0x44a98e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4590af);}}function Ot(_0x195081,_0x5bac2c,_0x503c33){for(const _0x1686c2 of _0x5bac2c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1686c2['root']==_0x1686c2)return!0x1;if(!_0x503c33['containsItem'](_0x1686c2))return!0x1;if(_0x195081['isObject'](_0x1686c2)||_0x195081['isLimit'](_0x1686c2))return!0x0;}return!0x1;}function Vt(_0x16fe11){return _0x16fe11['end']['parent']==_0x16fe11['start']['nodeAfter']&&_0x16fe11['end']['isAtStart'];}function Ut(_0x128240,_0x22972c,_0x18eedc,_0x1c801c){const _0xe8b932=_0x46e57b=>!_0x46e57b['item']['is']('$textProxy')&&!_0x1c801c['isObject'](_0x46e57b['item']),_0x4cf9f8=_0x128240['start']['getLastMatchingPosition'](_0xe8b932),_0x58b3b1=_0x128240['end']['getLastMatchingPosition'](_0xe8b932,{'direction':'backward'});return(!_0x128240['start']['isEqual'](_0x4cf9f8)||!_0x128240['end']['isEqual'](_0x58b3b1))&&(_0x4cf9f8['isBefore'](_0x58b3b1)?_0x18eedc['updateMarker'](_0x22972c,{'range':_0x18eedc['createRange'](_0x4cf9f8,_0x58b3b1)}):_0x18eedc['removeMarker'](_0x22972c),!0x0);}function Gt(_0xc6479e){return _0x4704f5(_0xc6479e);}function Ft(_0x2c24fc){const _0x46f8d6=_0x2c24fc['start']['nodeAfter'];return _0x46f8d6&&_0x46f8d6['is']('element');}function Pt(_0x17d4cc,_0x4fad2c){return null==_0x17d4cc['end']['nodeBefore']&&_0x17d4cc['end']['parent']==_0x17d4cc['start']['nodeAfter']?Lt(_0x17d4cc['start']['nodeAfter'],_0x4fad2c):_0x17d4cc;}function Lt(_0x1cf4fe,_0xb7e119){const _0x39351c=_0xb7e119['schema']['isObject'](_0x1cf4fe)||_0xb7e119['schema']['isSelectable'](_0x1cf4fe);return _0xb7e119['createRange'](_0xb7e119['createPositionAt'](_0x1cf4fe,'before'),_0x39351c?_0xb7e119['createPositionAfter'](_0x1cf4fe):_0xb7e119['createPositionAt'](_0x1cf4fe,'end'));}function Ht(_0x42800d,_0x305199,_0x279856,_0x3c15cc,_0x156666){if(_0x42800d['next'])return!0x1;if(!Jt(_0x42800d,_0x305199))return!0x1;if(_0x279856['end']['isEqual'](_0x3c15cc['start']))return!0x0;if(_0x42800d['type']!=_0x305199['type'])return!0x1;if(!_0x279856['end']['isTouching'](_0x3c15cc['start']))return!0x1;const _0x5aa871=_0x156666['createRange'](_0x279856['end'],_0x3c15cc['start'])['getWalker']();for(const _0x4c43ad of _0x5aa871)if(['elementStart','elementEnd']['includes'](_0x4c43ad['type'])&&_0x156666['schema']['isLimit'](_0x4c43ad['item']))return!0x1;return!0x0;}function Jt(_0x74fcc5,_0x3f160a){if(!_0x74fcc5['_isDataLoaded']||!_0x3f160a['_isDataLoaded'])return!0x1;const _0x29117e=new Set(Object['keys'](_0x74fcc5['attributes'])),_0x583f97=new Set(Object['keys'](_0x3f160a['attributes']));if(_0x29117e['delete']('groupId'),_0x583f97['delete']('groupId'),0x0==_0x29117e['size']&&0x0==_0x583f97['size'])return!0x0;if(_0x29117e['size']!=_0x583f97['size'])return!0x1;const _0x31d93f={..._0x74fcc5['attributes']},_0x319b2c={..._0x3f160a['attributes']};return delete _0x31d93f['groupId'],delete _0x319b2c['groupId'],JSON['stringify'](_0x31d93f)==JSON['stringify'](_0x319b2c);}function qt(_0x285638,_0x56e449){const _0x21d2bc=zt(_0x285638['attributes']),_0x5a3b0c=zt(_0x56e449);if(!_0x285638['_isDataLoaded'])return!0x1;for(const _0x300fb7 of Object['keys'](_0x5a3b0c))if(!_0x11e4b7(_0x21d2bc[_0x300fb7],_0x5a3b0c[_0x300fb7]))return!0x1;return!0x0;}function zt(_0x24581b){const _0x5dc8ce=Object['assign']({},_0x24581b);return delete _0x5dc8ce['skipNestingCheck'],delete _0x5dc8ce['tablePasteChainId'],_0x5dc8ce;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x10bfdb(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x40d651,_0x30c0ed,_0x185f70,_0x2d1176){super(),this['model']=_0x30c0ed,this['view']=_0x185f70,this['commentThreadController']=_0x2d1176,this['_editor']=_0x40d651,this['_acceptCommand']=_0x40d651['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x40d651['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x25a833,_0x13584f)=>_0x25a833||_0x13584f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2c0da3=>_0x2c0da3&&this['_editor']['model']['canEditAt'](_0x30c0ed['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4e58ad=>_0x4e58ad&&this['_editor']['model']['canEditAt'](_0x30c0ed['getRanges']())),this['_pendingAction']=null,_0x185f70['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x185f70,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x185f70,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x185f70,'change:isDirty',()=>{_0x185f70['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 _0x27af86=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x27af86);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1c2486{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5921bf,_0x3d1ebe,_0x531b0f,_0xb822a){super(_0x5921bf),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x593cee(_0x5921bf,o(_0x5921bf,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3d1ebe['authoredAt']),this['bind']('authoredAt')['to'](_0x3d1ebe),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',_0x3d1ebe,'authoredAt',this,'descriptionParts',(_0x499397,_0x2c38d9,_0x52cf30)=>{const _0x2d6184=_0x52cf30['map'](_0x123cf7=>ls(_0x123cf7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x499397-0x1,_0x3d1ebe['author']['name'],_0x2c38d9?_0xb822a['formatDateTime'](_0x2c38d9):'',new DOMParser()['parseFromString'](_0x2d6184,'text/html')['body']['textContent']]);}),this['focusables']=new _0xf17cd7(),this['focusTracker']=new _0x222156(),this['keystrokes']=new _0x2e0953(),this['focusCycler']=new _0x2d9018({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x6fb78e=>_0x6fb78e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3d1ebe,this['_localUser']=_0x531b0f,this['_config']=_0xb822a,_0xb822a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xe55352(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x42e792}=this['_config'];this['commentsListView']=new _0x42e792(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',_0x500d14=>_0x500d14+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4158a6,_0x4ee70c)=>_0x4158a6||!!_0x4ee70c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x18c16a}=this['_config'],_0x4a3566=new _0x18c16a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3cdb54=_0x4a3566['commentInputView'];return _0x4a3566['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3cdb54,'value',(_0x4aae83,_0x197d03,_0x4e1edf)=>!!_0x4e1edf||_0x4aae83&&!_0x197d03),_0x3cdb54['on']('submit',(_0x3fcafe,_0xa1cda9)=>{this['fire']('addComment',_0xa1cda9),_0x3cdb54['editor']['setData']('');}),_0x3cdb54['on']('cancel',()=>this['focus']()),_0x3cdb54['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4a3566;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x50f01c,_0x3a07f5,_0x185456,_0x33cdce){super(_0x50f01c,_0x3a07f5,_0x185456,_0x33cdce),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x26227a=>_0x26227a&&_0x26227a[0x0]?_0x26227a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x18dd6a,_0x2eed25)=>{let _0xb91531='';for(const _0x12151a of _0x18dd6a)_0xb91531+='<p>'+ls(_0x12151a['content'],_0x12151a['color'])+'</p>';return _0x2eed25?_0xb91531:_0xe1f01c(_0xb91531,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x33cdce['SuggestionView'](_0x50f01c,_0x3a07f5,{'formatDateTime':_0x33cdce['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 _0x417439=this['bindTemplate'],_0x4bede8=[this['suggestionView']];return this['commentsListView']&&_0x4bede8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4bede8['push'](this['commentThreadInputView']),_0x4bede8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x417439['if']('isActive','ck-suggestion-wrapper--active'),_0x417439['to']('type',_0xbfc766=>'ck-suggestion-'+_0xbfc766),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':_0x417439['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4bede8};}['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 ce extends _0x1c2486{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1f98ae,_0x17cd0e,_0x220698){super(_0x1f98ae),this['_model']=_0x17cd0e,this['_config']=_0x220698,this['set']('description',''),this['bind']('authoredAt')['to'](_0x17cd0e),this['acceptButton']=this['_createButton'](o(_0x1f98ae,'Accept\x20suggestion'),_0x26ee55['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1f98ae,'Discard\x20suggestion'),_0x26ee55['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5d3b1c(_0x1f98ae,_0x17cd0e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xf17cd7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x222156(),this['keystrokes']=new _0x2e0953(),this['focusCycler']=new _0x2d9018({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x200a14=>_0x200a14['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1ca668=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1ca668['innerHTML']=this['description'],this['on']('change:description',(_0x20ea5e,_0x4fe4a5,_0x5d4795)=>{_0x1ca668['innerHTML']=_0x5d4795;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4e4ac8=this['bindTemplate'],_0xf3e65=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x4e4ac8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4e4ac8['to']('authoredAt',_0xb818e4=>this['_config']['formatDateTime'](_0xb818e4))}]}]},{'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']&&_0xf3e65['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':_0xf3e65}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x31e366,_0x413da4,_0x1fc763,_0x5b5e21,_0x11687b){const _0xa23cd3=new _0x14e887(this['locale']);return _0xa23cd3['set']({'label':_0x31e366,'icon':_0x413da4,'tooltip':!0x0,'tooltipPosition':_0x11687b}),_0xa23cd3['extendTemplate']({'attributes':{'class':_0x1fc763}}),_0xa23cd3['on']('execute',()=>{this['fire'](_0x5b5e21,this['_model']['id']);}),_0xa23cd3;}['_setupKeyboardNavigation'](){const _0x47719b=this['element'];this['keystrokes']['listenTo'](_0x47719b);for(const _0x1013d1 of this['focusables'])this['focusTracker']['add'](_0x1013d1['element']),this['keystrokes']['listenTo'](_0x1013d1['element']);this['keystrokes']['set']('enter',(_0x3d8804,_0x388084)=>{_0x47719b===_0x3d8804['target']&&(this['focusCycler']['focusFirst'](),_0x388084());}),this['keystrokes']['set']('esc',(_0x7092e1,_0x1124c7)=>{_0x47719b!==_0x7092e1['target']&&(this['focus'](),_0x1124c7());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x4ba4b5{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x106ae5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x12cc34){super(_0x12cc34),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4d6aef=this['editor']['config'];_0x4d6aef['define']('trackChanges.SuggestionThreadView',re),_0x4d6aef['define']('trackChanges.SuggestionView',ce),_0x4d6aef['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4d6aef['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x170511,_0x4d9841){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x14c0b6,_0x157e17]of this['_handleControllerBuffer']){const _0x16ceaa=this['_suggestionToController']['has'](_0x14c0b6);_0x16ceaa||_0x157e17?_0x16ceaa&&_0x157e17&&this['_destroyController'](_0x14c0b6):this['_initializeController'](_0x14c0b6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x170511,_0x4d9841);}['init'](){const _0x13282c=this['editor'],_0x1b2633=_0x13282c['plugins']['get']('TrackChangesEditing'),_0xa4ebe2=_0x13282c['plugins']['get']('Annotations'),_0x59933d=_0x13282c['plugins']['get']('EditorAnnotations'),_0x408ec5=_0x13282c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x59933d['addSourceCollector'](()=>{const _0xa4b22d=[];for(const [_0x17b7bc,_0x5eb8da]of Array['from'](this['_suggestionToController'])){const _0x534816=_0x17b7bc['getAllAdjacentSuggestions'](),_0x5b6bb4=[];for(const _0x229925 of _0x534816){if(!_0x229925['isInContent'])continue;if(_0x229925['isMultiRange']){_0x5b6bb4['push'](..._0x229925['getRanges']());continue;}const _0x19048a=_0x229925['getFirstRange']();if(_0x5b6bb4['length']>0x0){const _0x369b82=_0x5b6bb4[0x0]['getJoined'](_0x19048a);if(_0x369b82){_0x5b6bb4[0x0]=_0x369b82;continue;}}_0x5b6bb4['push'](_0x19048a);}_0xa4b22d['push']([_0x5eb8da['view'],_0x5b6bb4]);}return _0xa4b22d;}),this['listenTo'](_0x1b2633,'suggestionLoaded',(_0x362d91,_0x5df40f)=>{this['listenTo'](_0x5df40f,'change:previous',(_0x5d1449,_0x16ca0e,_0x462127,_0x3e3628)=>{_0x5df40f['isInContent']&&(null==_0x462127?(this['_updateController'](_0x3e3628['head']),this['_handleSuggestionControllerDelayed'](_0x5df40f,!0x1)):(this['_updateController'](_0x462127['head']),null==_0x3e3628&&this['_handleSuggestionControllerDelayed'](_0x5df40f,!0x0)));}),null!==_0x5df40f['previous']?this['_updateController'](_0x5df40f['head']):this['_handleSuggestionControllerDelayed'](_0x5df40f,!0x1);}),this['listenTo'](_0x1b2633,'suggestionUnloaded',(_0x4b2f0f,_0x11dc8b,_0x5abd54)=>{this['stopListening'](_0x11dc8b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x11dc8b),this['_suggestionToController']['has'](_0x11dc8b)&&this['_destroyController'](_0x11dc8b),_0x5abd54&&this['_updateController'](_0x5abd54['head']);}),this['listenTo'](_0x1b2633,'suggestionChanged',(_0x2b084f,_0x15de1b)=>{this['_updateController'](_0x15de1b);}),this['listenTo'](_0xa4ebe2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x408ec5,'addComment',(_0x4d1a54,{threadId:_0x2ffb5e,isFromAdapter:_0x3cfccd})=>{if(_0x3cfccd||!_0x1b2633['hasSuggestion'](_0x2ffb5e))return;const _0x471e7b=_0x1b2633['getSuggestion'](_0x2ffb5e);this['_suggestionToController']['get'](_0x471e7b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0xcacd84=this['editor']['plugins']['get']('Annotations'),_0x2d050b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f0777=Array['from'](_0xcacd84['activeAnnotations'],_0x2d596e=>_0x2d596e['innerView'])['filter'](_0x9bf7a8=>this['_viewToController']['has'](_0x9bf7a8)),_0x4cd2c5=[];for(const _0x3edd63 of _0x5f0777){const _0x1ad109=this['_viewToController']['get'](_0x3edd63)['model']['getAllAdjacentSuggestions']();_0x4cd2c5['push'](..._0x1ad109['reduce']((_0x8c92b4,_0x289b56)=>[..._0x8c92b4,..._0x289b56['getMarkerNames']()],[]));}_0x2d050b['activeMarkers']=_0x4cd2c5;}['_addUIComponentsToFactory'](){const _0x407216=this['editor'],_0x5f4497=_0x407216['locale'],_0xcff164=o(_0x5f4497,'Track\x20changes'),_0x25aa3b=new Wt([{'type':'switchbutton','model':new _0x4ab10e({'withText':!0x0,'isToggleable':!0x0,'label':_0xcff164,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4ab10e({'withText':!0x0,'label':o(_0x5f4497,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4ab10e({'withText':!0x0,'label':o(_0x5f4497,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4ab10e({'withText':!0x0,'label':o(_0x5f4497,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4ab10e({'withText':!0x0,'label':o(_0x5f4497,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5ab4ca of _0x25aa3b)if(me(_0x5ab4ca)){const _0x27e93f=_0x407216['commands']['get'](_0x5ab4ca['model']['commandName']);_0x5ab4ca['model']['bind']('isOn','isEnabled')['to'](_0x27e93f,'value','isEnabled');}_0x407216['ui']['componentFactory']['add']('trackChanges',_0x2e96c9=>this['_createToolbarButton'](_0x2e96c9,_0x25aa3b,_0xcff164)),_0x407216['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3895cd=>this['_createMenuBarMenu'](_0x3895cd,_0x25aa3b,_0xcff164));}['_createToolbarButton'](_0xd83e5f,_0x3078b6,_0x5ebaab){const _0x589f19=Qt(_0xd83e5f,_0x5b5fce),_0x51caa5=this['editor']['commands']['get']('trackChanges');_0x589f19['buttonView']['set']({'tooltip':_0x5ebaab,'label':_0x5ebaab,'icon':he}),_0x589f19['buttonView']['bind']('isOn')['to'](_0x51caa5,'value'),_0x589f19['buttonView']['on']('execute',()=>{_0x51caa5['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x589f19,_0x3078b6,{'role':'menu'});const _0x3a22b8=[];for(const _0x5cef5c of _0x3078b6)me(_0x5cef5c)&&_0x3a22b8['push'](this['editor']['commands']['get'](_0x5cef5c['model']['commandName']));const _0x1be107=_0x589f19['buttonView'];return _0x1be107['actionView']['unbind']('isEnabled'),_0x1be107['arrowView']['unbind']('isEnabled'),_0x1be107['actionView']['bind']('isEnabled')['to'](_0x51caa5,'isEnabled'),_0x1be107['arrowView']['bind']('isEnabled')['toMany'](_0x3a22b8,'isEnabled',(..._0x3cc725)=>_0x3cc725['some'](_0x9a46b9=>_0x9a46b9)),_0x589f19['on']('execute',_0x158a89=>{this['editor']['execute'](_0x158a89['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x589f19;}['_createMenuBarMenu'](_0x3c9fe0,_0x1a62e0,_0x1a92fe){const _0x2861a1=new Yt(_0x3c9fe0),_0xfcb181=this['editor']['commands']['get']('trackChanges');_0x2861a1['buttonView']['set']({'label':_0x1a92fe,'icon':he});const _0x3a2328=new Zt(_0x3c9fe0);for(const _0x24a4c7 of _0x1a62e0){if('separator'==_0x24a4c7['type']){_0x3a2328['items']['add'](new Xt(_0x3c9fe0));continue;}const _0x3b590b=new te(_0x3c9fe0,_0x2861a1),_0x7564bd=new _0x433705(_0x3c9fe0),_0x5bf17e=_0x24a4c7['model'];_0x7564bd['bind'](...Object['keys'](_0x5bf17e))['to'](_0x5bf17e),_0x7564bd['delegate']('execute')['to'](_0x2861a1),_0x7564bd['on']('execute',()=>{this['editor']['execute'](_0x5bf17e['commandName']),this['editor']['editing']['view']['focus']();}),_0x3b590b['children']['add'](_0x7564bd),_0x3a2328['items']['add'](_0x3b590b);}return _0x2861a1['bind']('isEnabled')['to'](_0xfcb181,'isEnabled'),_0x2861a1['panelView']['children']['add'](_0x3a2328),_0x2861a1;}['_initializeController'](_0x233340){const _0x4edc11=this['editor'],_0x36fb8d=_0x4edc11['config'],_0x3a622c=_0x4edc11['plugins']['get']('Annotations'),_0x592fd5=_0x4edc11['plugins']['get']('CommentsRepository'),_0x2de795=_0x4edc11['plugins']['get']('EditorAnnotations'),_0x3ca55e=_0x4edc11['plugins']['get'](_0x106ae5)['me'],_0x18d97e=_0x36fb8d['get']('trackChanges')['SuggestionThreadView'],_0x1a000d=_0x36fb8d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x101f43,CommentThreadInputView:_0x48736e}=_0x4edc11['plugins']['get']('CommentsUI');let _0x451ed8,_0x2535fe,_0x1d365a;this['_annotationViews']['has'](_0x233340['id'])?(_0x2535fe=this['_annotationViews']['get'](_0x233340['id']),_0x451ed8=_0x2535fe['mainView']):(_0x451ed8=new _0x18d97e(_0x4edc11['locale'],_0x233340,_0x3ca55e,{'disableComments':this['_disableComments'],'editorConfig':_0x36fb8d['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x36fb8d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x36fb8d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x36fb8d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x37339d(_0x36fb8d['get']('locale')),'CommentView':_0x36fb8d['get']('comments')['CommentView'],'CommentsListView':_0x101f43,'CommentThreadInputView':_0x48736e,'SuggestionView':_0x1a000d}),_0x451ed8['suggestionView']['acceptButton']['on']('execute',()=>{_0x4edc11['editing']['view']['focus']();}),_0x451ed8['suggestionView']['discardButton']['on']('execute',()=>{_0x4edc11['editing']['view']['focus']();}),_0x2535fe=_0x3a622c['createAnnotationView'](this['editor']['locale'],_0x451ed8),_0x2535fe['bind']('isDirty')['to'](_0x451ed8,'isDirty'),_0x2535fe['bind']('length')['to'](_0x451ed8),_0x2535fe['bind']('type')['to'](_0x451ed8,'type',_0x1ccc06=>'suggestion-'+_0x1ccc06),_0x451ed8['on']('escape',()=>{_0x1d365a['fire']('escape');}),this['_annotationViews']['set'](_0x233340['id'],_0x2535fe));const _0x41e508=_0x592fd5['createCommentThreadController'](_0x233340['commentThread'],_0x451ed8),_0x44475c=new ae(_0x4edc11,_0x233340,_0x451ed8,_0x41e508),_0x24139d=_0x233340['getAllAdjacentSuggestions']()['filter'](_0x3dcf00=>_0x3dcf00['isInContent']);_0x451ed8['descriptionParts']=_0x4edc11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x24139d),this['_suggestionToController']['set'](_0x233340,_0x44475c),this['_viewToController']['set'](_0x451ed8,_0x44475c),_0x1d365a=_0x3a622c['createAnnotation']({'view':_0x2535fe,'target':()=>{const _0x53acd1=[],_0x3ca66c=_0x233340['getAllAdjacentSuggestions']()['filter'](_0x2e66cf=>_0x2e66cf['isInContent']);for(const _0x26e60a of _0x3ca66c)_0x53acd1['push'](..._0x26e60a['getMarkers']());return _0x58c05a(_0x4edc11['editing'],_0x53acd1);},'type':()=>'suggestion-'+_0x44475c['view']['type']}),_0x592fd5['_bindAnnotationToEditors'](_0x451ed8,_0x1d365a),_0x3a622c['add'](_0x1d365a),_0x2de795['registerAnnotation'](_0x1d365a);}['_destroyController'](_0x4f0e62){const _0x3edbf8=this['editor']['plugins']['get']('CommentsRepository'),_0x20a8ed=this['editor']['plugins']['get']('Annotations'),_0x4d7e27=this['_suggestionToController']['get'](_0x4f0e62),_0x1e910a=_0x4d7e27['view'],_0x154f10=_0x20a8ed['getByInnerView'](_0x1e910a);_0x3edbf8['_unbindEditors'](_0x1e910a),_0x154f10&&_0x20a8ed['remove'](_0x154f10),this['_suggestionToController']['delete'](_0x4f0e62),this['_viewToController']['delete'](_0x1e910a),_0x4d7e27['destroy']();}['_updateController'](_0x5da493){if(!_0x5da493['isInContent']||!this['_suggestionToController']['has'](_0x5da493))return;const _0x45ce55=this['editor']['plugins']['get']('TrackChangesEditing'),_0x242226=this['_suggestionToController']['get'](_0x5da493),_0x44564f=_0x5da493['getAllAdjacentSuggestions']();_0x242226['view']['descriptionParts']=_0x45ce55['descriptionFactory']['getDescriptions'](_0x44564f);}['destroy'](){for(const _0x3561d2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3561d2);for(const _0x459c4b of this['_annotationViews']['values']())_0x459c4b['mainView']['destroy']();super['destroy']();}}function me(_0x5687d4){return'model'in _0x5687d4;}class k extends _0x4ba4b5{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4c5cce){this['editor']['plugins']['get'](p)['adapter']=_0x4c5cce;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x23d1b7){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x23d1b7);}['getSuggestions']({skipNotAttached:_0x10321c=!0x1,toJSON:_0x55697b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x10321c,'toJSON':_0x55697b});}['getSuggestion'](_0x145e92){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x145e92);}}const T=['Pagination'];class P extends _0x4ba4b5{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x5cd516=this['editor'];if(_0x5cd516['config']['define']('trackChangesData.editorCreator',_0x387e81=>{const _0x555149=_0x5cd516['model']['document']['getRootNames']()['reduce']((_0x3423c8,_0x26f533)=>(_0x3423c8[_0x26f533]='',_0x3423c8),{});return _0x5cd516['constructor']['create'](_0x555149,_0x387e81);}),'function'!=typeof _0x5cd516['config']['get']('trackChangesData')['editorCreator'])throw new _0x1a35b0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x7da6a){return N(this['editor'],!0x0,_0x7da6a);}['getDataWithDiscardedSuggestions'](_0x336f2f){return N(this['editor'],!0x1,_0x336f2f);}}class D extends _0x4ba4b5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x182d28){super(_0x182d28),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x3092ac){return void 0x0!==_0x3092ac['getRootsAttributes'];}async function N(_0x189835,_0xaf3794,_0xef4c57){const _0x28f031=_0x3f774b(_0x189835,T);_0x28f031['plugins']['push'](p,D),_0x28f031['rootsAttributes']=v(_0x189835)?_0x189835['getRootsAttributes']():void 0x0;const _0x544796=document['createDocumentFragment'](),_0x123d13=_0x189835['config']['get']('trackChangesData')['editorCreator'],_0x4dbb09=await _0x123d13(_0x28f031,()=>function(_0xa2750d){const _0x51eb51=document['createElement']('div');return _0xa2750d['appendChild'](_0x51eb51),_0x51eb51;}(_0x544796));!function(_0x214aa4,_0x3f56ec){const _0x357cd9=_0x214aa4['model']['document']['getRootNames']()['reduce']((_0x1ff69d,_0x156b43)=>(_0x1ff69d[_0x156b43]=_0x214aa4['data']['get']({'rootName':_0x156b43}),_0x1ff69d),{}),_0xdc4b7c=_0x214aa4['plugins']['get']('Users')['users']['map'](_0x2de24b=>({'id':_0x2de24b['id'],'name':_0x2de24b['name']})),_0xe72daf=_0x214aa4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2ecb5d=_0x214aa4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c8acc=_0x3f56ec['plugins']['get']('Users'),_0x3cc747=_0x3f56ec['plugins']['get']('TrackChangesEditing'),_0x35cfb8=_0x3f56ec['plugins']['get']('CommentsRepository');for(const _0x560fd2 of _0x35cfb8['getCommentThreads']())_0x560fd2['remove']();for(const _0x3dbfbc of _0xdc4b7c)_0x5c8acc['getUser'](_0x3dbfbc['id'])||_0x5c8acc['addUser'](_0x3dbfbc);_0x5c8acc['me']||_0x5c8acc['useAnonymousUser']();for(const _0x1d9e98 of _0x2ecb5d)_0x35cfb8['addCommentThread'](_0x1d9e98);for(const _0x2156fc of _0xe72daf)_0x3cc747['addSuggestionData'](_0x2156fc);_0x3f56ec['data']['set'](_0x357cd9);}(_0x189835,_0x4dbb09),_0x4dbb09['execute'](_0xaf3794?'acceptAllSuggestions':'discardAllSuggestions');const _0x2406d7=v(_0x4dbb09)?_0x4dbb09['getFullData'](_0xef4c57):_0x4dbb09['data']['get'](_0xef4c57);return await _0x4dbb09['destroy'](),_0x2406d7;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};