@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20241117.0 → 0.0.0-nightly-20241118.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Qt,Plugin as _0x240e00,PendingActions as _0x45cc0b,icons as _0x52f5a6}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1267e3,ObservableMixin as _0xe3577e,uid as _0x3aa221,insertToPriorityArray as _0x16e2b3,priorities as _0x4b3b10,logWarning as _0x11a33c,getEnvKeystrokeText as _0x35273a,FocusTracker as _0x760b4c,KeystrokeHandler as _0x4bc3b6,Collection as _0x1fff91}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2e9a97,View as _0x37b64a,ViewCollection as _0x5bd361,FocusCycler as ts,ViewModel as _0x494abe,createDropdown as _0x24df7b,SplitButtonView as _0x323a15,addListToDropdown as te,MenuBarMenuView as _0x33a197,MenuBarMenuListView as _0x523cdb,ListSeparatorView as _0x2d46c5,MenuBarMenuListItemView as _0x5ae6b8,MenuBarMenuListItemButtonView as _0x4eb13b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x59b3bc,hashObject as _0x116e81,surroundingMarkersDetector as _0xe8c575,FOCUS_ANNOTATION_KEYSTROKE as _0x369e65,AriaDescriptionView as _0x26dc88,setupThreadKeyboardNavigation as _0x34aa7d,trimHtml as ti,UserView as _0x45d7ac,LateFocusButtonView as _0x566bb0,getDateTimeFormatter as _0x247c41,getAllMarkersDomElementsSorted as _0x5ced91,sanitizeEditorConfig as _0x53f1e9}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4cf030,LiveRange as _0x23d2d0,LivePosition as _0x274438}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xddccc1,toWidget as _0x549466}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x461757,set as _0x52f1dc,isEqual as _0xf91c94,unset as _0xbbc215,omit as xt}from'lodash-es';import{Delete as _0x350182,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xa43e62,ShiftEnter as _0x530e8f}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x344314,_0x1140da){super(_0x344314),this['_enabledCommands']=_0x1140da,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 _0x30ce94 of this['editor']['commands']['commands']())_0x30ce94['affectsData']&&!this['_enabledCommands']['has'](_0x30ce94)&&_0x30ce94['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1d8301 of this['editor']['commands']['commands']())_0x1d8301['affectsData']&&!this['_enabledCommands']['has'](_0x1d8301)&&_0x1d8301['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x4ebc41,_0x119f0d){super(_0x4ebc41),this['_suggestions']=_0x119f0d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c1c88){const _0x549ba5=this['_suggestions']['get'](_0x5c1c88);if(!_0x549ba5)throw new _0x1267e3('track-changes-accept-suggestion-not-found',this);const _0x4c27a2=_0x549ba5['getRanges']();this['editor']['model']['canEditAt'](_0x4c27a2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x549ba5);}}class R extends Qt{['_suggestions'];constructor(_0x154f10,_0x581663){super(_0x154f10),this['_suggestions']=_0x581663,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2d7cc2){const _0x246962=this['_suggestions']['get'](_0x2d7cc2);if(!_0x246962)throw new _0x1267e3('track-changes-discard-suggestion-not-found',this);const _0x18b9c7=_0x246962['getRanges']();this['editor']['model']['canEditAt'](_0x18b9c7)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x246962);}}function ns(_0x3b799d,_0x4d6356){let _0x40f157='';return _0x40f157+=_0x3b799d['split']('*')['map']((_0x79d560,_0x23b4f2)=>_0x23b4f2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x79d560)+'</span>':nn(_0x79d560))['join'](''),_0x4d6356&&(_0x40f157+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4d6356['value']+'\x22\x20title=\x22'+_0x4d6356['title']+'\x22></span>'),_0x40f157;}function nn(_0x445244){const _0x3d0a40=document['createElement']('span');return _0x3d0a40['innerText']=_0x445244,_0x3d0a40['innerHTML'];}function Wt(_0x4e2fc2){return _0x4e2fc2['sort']((_0x2bc13d,_0x162528)=>'deletion'==_0x2bc13d['type']&&'deletion'!=_0x162528['type']?-0x1:'deletion'!=_0x2bc13d['type']&&'deletion'==_0x162528['type']?0x1:0x0);}function to(_0x4457db,_0x50bb3f){let _0x77f32b,_0x5bb9b9=0x0;const _0x2920d0=[],_0x33c270=_0x50bb3f['schema'];for(;_0x5bb9b9<_0x4457db['length'];){const _0x36e837=_0x4457db[_0x5bb9b9],_0x3dc18b=_0x4457db[_0x5bb9b9+0x1];_0x77f32b||(_0x77f32b=_0x50bb3f['createPositionBefore'](_0x36e837)),on(_0x50bb3f,_0x36e837,_0x3dc18b)||(_0x2920d0['push'](_0x50bb3f['createRange'](_0x77f32b,_0x33c270['isObject'](_0x36e837)?_0x50bb3f['createPositionAfter'](_0x36e837):_0x50bb3f['createPositionAt'](_0x36e837,'end'))),_0x77f32b=null),_0x5bb9b9++;}return _0x2920d0;}function on(_0x11b26e,_0x45326f,_0x47d4d1){if(!_0x47d4d1)return!0x1;const _0x257971=_0x11b26e['createPositionAfter'](_0x45326f),_0x1ae956=_0x11b26e['createPositionBefore'](_0x47d4d1);return _0x257971['isTouching'](_0x1ae956);}function Xt(_0x685151,_0x258909,_0x4a1e95){for(;_0x4a1e95['length'];){const _0xee9c64=_0x4a1e95['splice'](0x0,0x64);_0x685151['change'](()=>{for(const _0x29ad5b of _0xee9c64)_0x29ad5b['isInContent']&&_0x258909['execute'](_0x29ad5b['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x46e114,_0x396553,_0x46971e){super(_0x46e114),this['_command']=_0x396553,this['_suggestions']=_0x46971e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2cbc19=Array['from'](this['_suggestions']['values']())['some'](_0xdc50da=>_0xdc50da['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2cbc19;}['execute'](){const _0x578954=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x2d54f3 of _0x578954){const _0x25d017=_0x2d54f3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x25d017))return;}Xt(this['editor']['model'],this['_command'],_0x578954);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x164c89,_0x3fc31e,_0x55f4f4){super(_0x164c89),this['_command']=_0x3fc31e,this['_suggestions']=_0x55f4f4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4df08e=this['editor']['model']['document']['selection'],_0x795181=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x30bd1a,_0x53417c){const _0x209f01=Array['from'](_0x30bd1a['getRanges']()),_0x4c371f=new Set();for(const _0x3a8be6 of _0x53417c)if(_0x3a8be6['isInContent']){for(const _0x2b676d of _0x209f01)for(const _0x5e16bc of _0x3a8be6['getRanges']())(_0x2b676d['isIntersecting'](_0x5e16bc)||_0x30bd1a['isCollapsed']&&!_0x3a8be6['isMultiRange']&&_0x3a8be6['next']&&_0x5e16bc['end']['isTouching'](_0x2b676d['start']))&&_0x4c371f['add'](_0x3a8be6);}return _0x4c371f;}(_0x4df08e,_0x795181),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x30375a=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x560fcb of _0x30375a){const _0x3f6fb9=_0x560fcb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3f6fb9))return;}Xt(this['editor']['model'],this['_command'],_0x30375a);}}class u extends/* #__PURE__ -- @preserve */
24
- _0xe3577e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x224e26,_0x34e005){super(),this['id']=_0x34e005['id'],this['type']=_0x34e005['type'],this['subType']=_0x34e005['subType']||null,this['author']=_0x34e005['author'],this['creator']=_0x34e005['creator']||_0x34e005['author'],this['isExternal']=Boolean(_0x34e005['attributes']&&_0x34e005['attributes']['@external']),this['data']=null,this['_model']=_0x224e26,this['_onAccept']=_0x34e005['onAccept'],this['_onDiscard']=_0x34e005['onDiscard'],this['_onAttributesChange']=_0x34e005['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x34e005['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 _0x1169b2=this;for(;_0x1169b2['previous'];)_0x1169b2=_0x1169b2['previous'];return _0x1169b2;}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'](_0x2d2163){this['_markerNames']['add'](_0x2d2163);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2e557f=>this['_model']['markers']['get'](_0x2e557f))['filter'](_0x1026dd=>_0x1026dd);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x45135b=>{for(const _0x14f29f of this['getMarkers']())_0x45135b['removeMarker'](_0x14f29f);}),this['_markerNames']['clear']();}['removeMarker'](_0x45b0f4){this['_model']['change'](_0x43d658=>{_0x43d658['removeMarker'](_0x45b0f4);}),this['_markerNames']['delete'](_0x45b0f4);}['addRange'](_0xd8ed9a){const _0x1a9cff='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1a9cff),this['_model']['change'](_0x16c568=>{_0x16c568['addMarker'](_0x1a9cff,{'range':_0xd8ed9a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1db481){for(const _0x286474 of this['getRanges']())if(_0x286474['isIntersecting'](_0x1db481))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x481902=>_0x481902['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x19b73b,_0x17c7aa)=>[..._0x19b73b,..._0x17c7aa['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x171748=this['getRanges']();if(0x1!=_0x171748['length'])return null;const _0x5b3a5f=_0x171748[0x0],_0x207631=_0x5b3a5f['start']['nodeAfter'],_0x2719d6=_0x5b3a5f['end']['nodeBefore'];return _0x207631 instanceof _0x4cf030?_0x207631!=_0x2719d6?null:_0x207631: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 _0xb7a839=[];let _0x26a43e=this['head'];for(;_0x26a43e;)_0xb7a839['push'](_0x26a43e),_0x26a43e=_0x26a43e['next'];return _0xb7a839;}['setAttribute'](_0x281698,_0x258248){const _0x4575cf=_0x461757(this['attributes']);_0x52f1dc(_0x4575cf,_0x281698,_0x258248),_0xf91c94(_0x4575cf,this['attributes'])||(this['attributes']=_0x4575cf,this['_onAttributesChange'](_0x4575cf));}['removeAttribute'](_0x5a0661){const _0xf31f40=_0x461757(this['attributes']);_0xbbc215(_0xf31f40,_0x5a0661),_0xf91c94(_0xf31f40,this['attributes'])||(this['attributes']=_0xf31f40,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 _0x3aa221()['substr'](0x1,0x5);}}function o(_0x295d1a,_0x2c3680,_0x47eb1d){const _0x56746e=_0x295d1a['t'],t=_0x295d1a['t'];switch(_0x2c3680){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',_0x47eb1d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x47eb1d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x47eb1d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x47eb1d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x47eb1d);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',_0x47eb1d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x47eb1d);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',_0x47eb1d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x47eb1d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x47eb1d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x47eb1d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x47eb1d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x47eb1d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x47eb1d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x47eb1d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x47eb1d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x47eb1d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x47eb1d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x47eb1d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x47eb1d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x47eb1d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x47eb1d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x47eb1d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x47eb1d);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'},_0x47eb1d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x47eb1d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x47eb1d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x47eb1d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x47eb1d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x47eb1d);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'},_0x47eb1d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x47eb1d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x47eb1d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x47eb1d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x47eb1d);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'},_0x47eb1d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x47eb1d);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'},_0x47eb1d);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'},_0x47eb1d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x47eb1d);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'},_0x47eb1d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x47eb1d);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'},_0x47eb1d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x47eb1d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x47eb1d);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'},_0x47eb1d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x47eb1d);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 _0x56746e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x47eb1d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x56746e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x47eb1d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x47eb1d);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'},_0x47eb1d);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'},_0x47eb1d);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'},_0x47eb1d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2c3680;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x6966b0,_0x5167b7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x6966b0,this['_locale']=_0x5167b7;}['getDescriptions'](_0x423984){const _0x5dbf25=[],_0x526821=new Set(),_0x22fa12=new Set();for(let _0x47cc15=0x0;_0x47cc15<_0x423984['length'];_0x47cc15++){const _0x3d6eeb=_0x423984[_0x47cc15];if(!_0x3d6eeb['isInContent'])continue;const _0x2f8a79=this['_handleCustomCallbackDescription'](_0x3d6eeb);if(_0x2f8a79){if(null!=_0x3d6eeb['subType']){if(_0x526821['has'](_0x3d6eeb['subType']))continue;_0x526821['add'](_0x3d6eeb['subType']);}_0x5dbf25['push'](_0x2f8a79);}else{if('attribute'!=_0x3d6eeb['type'])'insertion'!=_0x3d6eeb['type']&&'deletion'!=_0x3d6eeb['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5dbf25,_0x3d6eeb,_0x423984[_0x47cc15+0x1]);else{const _0x185f5d=_0x3d6eeb['data']['key'];if(_0x22fa12['has'](_0x185f5d))continue;_0x22fa12['add'](_0x3d6eeb['data']['key']),_0x185f5d==m?this['_handleRenameSuggestionDescription'](_0x5dbf25,_0x3d6eeb):this['_handleAttributeSuggestionDescription'](_0x5dbf25,_0x3d6eeb);}}}return this['_resolveDescriptionItems'](_0x5dbf25);}['registerDescriptionCallback'](_0x368c27){this['_customCallbacks']['push'](_0x368c27);}['registerElementLabel'](_0x443d37,_0x35bbe2,_0x2ce3be=_0x4b3b10['normal']){'function'==typeof _0x443d37?_0x16e2b3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x443d37,'label':_0x35bbe2,'priority':_0x2ce3be}):this['_itemLabels']['set'](_0x443d37,_0x35bbe2);}['registerAttributeLabel'](_0x27263a,_0x5827be){this['_attributeLabels']['set'](_0x27263a,_0x5827be);}['getItemLabel'](_0x1054e5,_0x5d76e0=0x1){let _0x4dd799;for(const _0x285474 of this['_itemLabelsCallbacks'])if(_0x285474['matchingCallback'](_0x1054e5)){_0x4dd799=_0x285474['label'];break;}return _0x4dd799||(_0x4dd799=this['_itemLabels']['get'](_0x1054e5['name'])),_0x4dd799?_0x4dd799(_0x5d76e0):0x1!==_0x5d76e0?_0x5d76e0+'\x20'+_0x1054e5['name']+'s':''+_0x1054e5['name'];}['_addDescriptionItems'](_0x57cd06,_0x28b716){const _0x3cb995=_0x28b716['getFirstRange']()['getWalker'](),_0x2ebeea='insertion'==_0x28b716['type']?'add':'remove';for(const _0x26c3f3 of _0x3cb995){const _0x4d6db4=_0x26c3f3['item'],_0x5d5db3=_0x57cd06[_0x57cd06['length']-0x1];if(_0x4d6db4['is']('$textProxy'))_0x5d5db3&&_0x5d5db3['type']['indexOf']('Container')>-0x1&&_0x57cd06['pop'](),_0x5d5db3&&'text'==_0x5d5db3['type']?_0x5d5db3[_0x2ebeea]+=_0x4d6db4['data']:_0x57cd06['push']({'type':'text','add':'add'==_0x2ebeea?_0x4d6db4['data']:'','remove':'remove'==_0x2ebeea?_0x4d6db4['data']:''});else{if(this['_schema']['isObject'](_0x4d6db4)){const _0x1dbc25=_0x4d6db4;if(_0x5d5db3&&_0x5d5db3['type']['indexOf']('Container')>-0x1&&_0x57cd06['pop'](),'elementEnd'==_0x26c3f3['type'])continue;_0x5d5db3&&_0x5d5db3['type']==_0x2ebeea+'Object'&&_0x5d5db3['element']['name']==_0x1dbc25['name']?_0x5d5db3['quantity']++:_0x57cd06['push']({'type':_0x2ebeea+'Object','element':_0x1dbc25,'quantity':0x1}),_0x3cb995['skip'](_0x474556=>!('elementEnd'==_0x474556['type']&&_0x474556['item']==_0x4d6db4));}else{if(this['_schema']['checkChild'](_0x4d6db4,'$text')||_0x4d6db4['is']('element','softBreak')){const _0x56656c=_0x4d6db4;if('add'==_0x2ebeea&&'elementStart'==_0x26c3f3['type']||'remove'==_0x2ebeea&&'elementEnd'==_0x26c3f3['type'])continue;if(_0x5d5db3&&-0x1==_0x5d5db3['type']['indexOf']('Container')){'text'==_0x5d5db3['type']&&(_0x5d5db3[_0x2ebeea]+='\x0a');continue;}let _0x124c49;if(_0x124c49='add'==_0x2ebeea?_0x56656c['nextSibling']&&!this['_schema']['isObject'](_0x56656c['nextSibling'])?_0x56656c['nextSibling']:null:_0x56656c['previousSibling']&&!this['_schema']['isObject'](_0x56656c['previousSibling'])?_0x56656c['previousSibling']:null,_0x56656c['isEmpty']||_0x124c49&&_0x124c49['isEmpty']){const _0x502ad7=_0x124c49&&_0x124c49['isEmpty']?_0x124c49:_0x56656c;_0x5d5db3&&_0x5d5db3['type']==_0x2ebeea+'EmptyContainer'&&_0x5d5db3['element']['name']==_0x502ad7['name']?_0x5d5db3['quantity']++:_0x57cd06['push']({'type':_0x2ebeea+'EmptyContainer','element':_0x502ad7,'quantity':0x1});}else _0x57cd06['push']({'type':_0x2ebeea+'Container','element':_0x56656c});}}}}}['_resolveDescriptionItems'](_0xf8ea99){const _0x5df116=this['_locale'],_0x5d5b51=[],_0x21c2e7=[],_0x513873=[];for(const _0x1f8100 of _0xf8ea99)switch(_0x1f8100['type']){case'text':if(_0x1f8100['add']=_0x1f8100['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1f8100['remove']=_0x1f8100['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1f8100['add']&&''!=_0x1f8100['remove']){_0x5d5b51['push']({'type':'replace','content':o(_0x5df116,'REPLACE_TEXT',['\x22'+_0x1f8100['remove']+'\x22','\x22'+_0x1f8100['add']+'\x22'])});continue;}if(null!=_0x1f8100['add']['match'](/^ +$/)){_0x5d5b51['push']({'type':'insertion','content':o(_0x5df116,'*Insert:*\x20%0',o(_0x5df116,'ELEMENT_SPACE',_0x1f8100['add']['length']))});continue;}if(null!=_0x1f8100['remove']['match'](/^ +$/)){_0x5d5b51['push']({'type':'deletion','content':o(_0x5df116,'*Remove:*\x20%0',o(_0x5df116,'ELEMENT_SPACE',_0x1f8100['remove']['length']))});continue;}if(''!=_0x1f8100['add']){_0x5d5b51['push']({'type':'insertion','content':o(_0x5df116,'*Insert:*\x20%0','\x22'+_0x1f8100['add']+'\x22')});continue;}_0x5d5b51['push']({'type':'deletion','content':o(_0x5df116,'*Remove:*\x20%0','\x22'+_0x1f8100['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5d5b51['push']({'type':'insertion','content':o(_0x5df116,'*Insert:*\x20%0',this['getItemLabel'](_0x1f8100['element'],_0x1f8100['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5d5b51['push']({'type':'deletion','content':o(_0x5df116,'*Remove:*\x20%0',this['getItemLabel'](_0x1f8100['element'],_0x1f8100['quantity']))});continue;case'addContainer':_0x5d5b51['push']({'type':'insertion','content':o(_0x5df116,'*Split:*\x20%0',this['getItemLabel'](_0x1f8100['element'],_0x1f8100['quantity']))});continue;case'removeContainer':_0x5d5b51['push']({'type':'deletion','content':o(_0x5df116,'*Merge:*\x20%0',this['getItemLabel'](_0x1f8100['element'],_0x1f8100['quantity']))});continue;case'addFormat':_0x21c2e7['push'](_0x1f8100['key']);continue;case'removeFormat':_0x513873['push'](_0x1f8100['key']);continue;default:_0x5d5b51['push'](_0x1f8100);}if(_0x21c2e7['length']){const _0xdb1fb6=_0x21c2e7['map'](_0x1851fd=>this['_attributeLabels']['has'](_0x1851fd)?this['_attributeLabels']['get'](_0x1851fd):_0x1851fd)['join'](',\x20');_0x5d5b51['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xdb1fb6)});}if(_0x513873['length']){const _0x1d5100=_0x513873['map'](_0x184a4a=>this['_attributeLabels']['has'](_0x184a4a)?this['_attributeLabels']['get'](_0x184a4a):_0x184a4a)['join'](',\x20');_0x5d5b51['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1d5100)});}return _0x5d5b51;}['_handleCustomCallbackDescription'](_0x41d66c){for(const _0x562146 of this['_customCallbacks']){const _0x3ce395=_0x562146(_0x41d66c);if(_0x3ce395&&'type'in _0x3ce395)return _0x3ce395;}}['_handleAttributeSuggestionDescription'](_0x136857,_0x427ab4){const _0x4918b9=_0x427ab4['data'],_0x43a61a=void 0x0===_0x4918b9['newValue']?'removeFormat':'addFormat';_0x136857['push']({'type':_0x43a61a,'key':_0x4918b9['key']});}['_handleRenameSuggestionDescription'](_0x1c83a7,_0x4a4f55){_0x1c83a7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4a4f55['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4efb2a,_0x4a14c5,_0x47719f){if(this['_addDescriptionItems'](_0x4efb2a,_0x4a14c5),_0x47719f&&_0x47719f['getFirstRange']()&&!_0x4a14c5['getFirstRange']()['end']['isEqual'](_0x47719f['getFirstRange']()['start'])){const _0x1be2f3=_0x4efb2a[_0x4efb2a['length']-0x1],_0x16902e='insertion'==_0x4a14c5['type']?'add':'remove';_0x1be2f3&&'text'==_0x1be2f3['type']&&(_0x1be2f3[_0x16902e]+='\x0a');}}}class U extends _0x240e00{['afterInit'](){const _0x5a8129=this['editor'],_0x16ce48=_0x5a8129['plugins']['get']('TrackChangesEditing');_0x5a8129['commands']['get']('showAIAssistant')&&_0x16ce48['enableCommand']('showAIAssistant');}}class V extends _0x240e00{['afterInit'](){const _0x2e5a8a=this['editor'],_0x234a6c=_0x2e5a8a['locale'];if(!_0x2e5a8a['plugins']['has']('AlignmentEditing'))return;const _0x463767=_0x2e5a8a['plugins']['get']('TrackChangesEditing');_0x463767['enableDefaultAttributesIntegration']('alignment'),_0x463767['registerBlockAttribute']('alignment'),_0x463767['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x234a6c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3294f8=this['editor'],_0xbc2032=_0x3294f8['locale'];_0x3294f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b72d7=>{if('formatBlock'!=_0x5b72d7['type'])return;const {data:_0x2ac63e}=_0x5b72d7;if(_0x2ac63e&&'alignment'==_0x2ac63e['commandName']){const _0x5983ce=_0x2ac63e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xbc2032,'*Format:*\x20%0',function(_0x1361f7){switch(_0x1361f7){case'left':return o(_0xbc2032,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xbc2032,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xbc2032,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xbc2032,'FORMAT_JUSTIFY_TEXT');}}(_0x5983ce))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x240e00{['afterInit'](){const _0x4983fc=this['editor'],_0x528b13=_0x4983fc['plugins']['get']('TrackChangesEditing'),_0x48d6ba=_0x4983fc['locale'];for(const _0x5b86e6 of Zt){if(!_0x4983fc['plugins']['has'](_0x5b86e6))continue;const _0x4ba7d5=_0x5b86e6['slice'](0x0,-0x7)['toLowerCase'](),_0x53ef6d='FORMAT_'+_0x4ba7d5['toUpperCase']();_0x528b13['enableDefaultAttributesIntegration'](_0x4ba7d5),_0x528b13['registerInlineAttribute'](_0x4ba7d5),_0x528b13['descriptionFactory']['registerAttributeLabel'](_0x4ba7d5,o(_0x48d6ba,_0x53ef6d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x587696=this['editor'],_0x533ee7=_0x587696['locale'],_0x13f3a8=_0x587696['plugins']['get']('TrackChangesEditing');function _0x18ac03(_0x46eac0,_0x2615e2){_0x13f3a8['descriptionFactory']['registerDescriptionCallback'](_0x570544=>{if('formatInline'!=_0x570544['type'])return;const {data:_0x81fc5d}=_0x570544;return _0x81fc5d&&_0x81fc5d['commandName']===_0x46eac0?_0x81fc5d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x533ee7,'*Format:*\x20%0',_0x2615e2)}:{'type':'format','content':o(_0x533ee7,'*Remove\x20format:*\x20%0',_0x2615e2)}:void 0x0;});}_0x18ac03('bold',o(_0x533ee7,'FORMAT_BOLD')),_0x18ac03('italic',o(_0x533ee7,'FORMAT_ITALIC')),_0x18ac03('underline',o(_0x533ee7,'FORMAT_UNDERLINE')),_0x18ac03('code',o(_0x533ee7,'FORMAT_CODE')),_0x18ac03('strikethrough',o(_0x533ee7,'FORMAT_STRIKETHROUGH')),_0x18ac03('subscript',o(_0x533ee7,'FORMAT_SUBSCRIPT')),_0x18ac03('superscript',o(_0x533ee7,'FORMAT_SUPERSCRIPT'));}}class F extends _0x240e00{['afterInit'](){const _0x45ea34=this['editor'],_0x3a0b13=_0x45ea34['locale'];if(!_0x45ea34['plugins']['has']('BlockQuoteEditing'))return;const _0x2bf2fd=_0x45ea34['plugins']['get']('TrackChangesEditing'),_0x90b690=this['editor']['commands']['get']('blockQuote');_0x2bf2fd['enableCommand']('blockQuote',(_0x289a0b,_0x28fd93={})=>{const _0x153ce0=this['editor']['model']['document']['selection'],_0x5e999c=_0x28fd93&&void 0x0!==_0x28fd93['forceValue']?_0x28fd93['forceValue']:!_0x90b690['value'];let _0x4e78f7=[];if(_0x5e999c){const _0x3ab549=Array['from'](_0x153ce0['getSelectedBlocks']())['filter'](_0x188f7b=>oo(_0x188f7b)||function(_0x2632ba,_0x50a034){const _0x23cb1c=_0x50a034['checkChild'](_0x2632ba['parent'],'blockQuote'),_0x56d81b=_0x50a034['checkChild'](['$root','blockQuote'],_0x2632ba);return _0x23cb1c&&_0x56d81b;}(_0x188f7b,this['editor']['model']['schema']));_0x4e78f7=to(_0x3ab549,_0x45ea34['model']);}else{const _0x818d83=Array['from'](_0x153ce0['getSelectedBlocks']())['filter'](_0x3aa371=>oo(_0x3aa371));_0x4e78f7=to(_0x818d83,_0x45ea34['model']);}_0x45ea34['model']['change'](()=>{for(const _0x390e26 of _0x4e78f7)_0x2bf2fd['markBlockFormat'](_0x390e26,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5e999c}]});});}),_0x2bf2fd['descriptionFactory']['registerDescriptionCallback'](_0x58a1a3=>{const {data:_0xc8cee2}=_0x58a1a3;if(_0xc8cee2&&'blockQuote'==_0xc8cee2['commandName']){const _0x20cb89=o(_0x3a0b13,'ELEMENT_BLOCK_QUOTE');return _0xc8cee2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a0b13,'*Set\x20format:*\x20%0',_0x20cb89)}:{'type':'format','content':o(_0x3a0b13,'*Remove\x20format:*\x20%0',_0x20cb89)};}});}}function oo(_0x3afe89){return'blockQuote'==_0x3afe89['parent']['name'];}class L extends _0x240e00{['afterInit'](){const _0x5596ad=this['editor'],_0x7de723=_0x5596ad['locale'],_0x2767f3=_0x5596ad['plugins']['get']('TrackChangesEditing');_0x5596ad['plugins']['has']('BookmarkEditing')&&(_0x2767f3['enableCommand']('insertBookmark'),_0x2767f3['enableDefaultAttributesIntegration']('updateBookmark'),_0x2767f3['registerBlockAttribute']('bookmarkId'),_0x2767f3['descriptionFactory']['registerDescriptionCallback'](_0x4c2112=>{if('insertion'!=_0x4c2112['type']&&'deletion'!=_0x4c2112['type']&&'attribute'!=_0x4c2112['type'])return;const _0x566a22=_0x4c2112['getContainedElement']();if(null==_0x566a22)return;if(!_0x566a22['is']('element','bookmark'))return;const _0x284668=_0x566a22['getAttribute']('bookmarkId');if('insertion'==_0x4c2112['type'])return{'type':'insertion','content':o(_0x7de723,'*Insert:*\x20%0','\x22'+_0x284668+'\x22\x20'+o(_0x7de723,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4c2112['type'])return{'type':'deletion','content':o(_0x7de723,'*Remove:*\x20%0','\x22'+_0x284668+'\x22\x20'+o(_0x7de723,'ELEMENT_BOOKMARK'))};const {data:_0x1ff70c}=_0x4c2112;if(!_0x1ff70c||'bookmarkId'!=_0x1ff70c['key'])return;return{'type':'format','content':o(_0x7de723,'*Set\x20bookmark:*\x20%0','\x22'+_0x1ff70c['newValue']+'\x22')};}));}}class J extends _0x240e00{['afterInit'](){const _0x22af11=this['editor'];_0x22af11['plugins']['has']('CaseChange')&&(_0x22af11['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x22af11['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x22af11['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x240e00{['afterInit'](){const _0x213391=this['editor'];_0x213391['commands']['get']('ckbox')&&_0x213391['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x240e00{['afterInit'](){const _0x2d506f=this['editor'];if(!_0x2d506f['plugins']['has']('CodeBlock'))return;const _0xddaffc=_0x2d506f['plugins']['get']('TrackChangesEditing'),_0x3e26f1=_0x2d506f['locale'],_0x3b4500=_0x2d506f['config']['get']('codeBlock')['languages'],_0xad065f=_0x2d506f['commands']['get']('codeBlock');_0xddaffc['enableCommand']('indentCodeBlock'),_0xddaffc['enableCommand']('outdentCodeBlock'),_0xddaffc['enableCommand']('codeBlock',(_0x491f96,_0x5cf6ee={})=>{const _0x2552c9=_0x2d506f['model'],_0x5cc12b=_0x2d506f['model']['document']['selection'],_0x435655=_0x5cf6ee&&void 0x0!==_0x5cf6ee['forceValue']?_0x5cf6ee['forceValue']:!_0xad065f['value'];let _0x22b06e;_0x5cf6ee['language']||(_0x5cf6ee['language']=_0x3b4500[0x0]['language']),_0x22b06e=_0x435655?Array['from'](_0x5cc12b['getSelectedBlocks']())['filter'](_0x2fcb63=>eo(_0x2fcb63)||function(_0x164527,_0x38ee5f){if(_0x164527['is']('rootElement')||_0x38ee5f['isLimit'](_0x164527))return!0x1;return _0x38ee5f['checkChild'](_0x164527['parent'],'codeBlock');}(_0x2fcb63,_0x2552c9['schema'])):Array['from'](_0x5cc12b['getSelectedBlocks']())['filter'](_0x431f8e=>eo(_0x431f8e));const _0x4a63f5=to(_0x22b06e,_0x2552c9);_0x2552c9['change'](()=>{for(const _0x15add9 of _0x4a63f5)_0xddaffc['markBlockFormat'](_0x15add9,{'commandName':'codeBlock','commandParams':[{..._0x5cf6ee,'forceValue':_0x435655}],'formatGroupId':'blockName'});});}),(_0xddaffc['descriptionFactory']['registerElementLabel']('codeBlock',_0x1ca724=>o(_0x3e26f1,'ELEMENT_CODE_BLOCK',_0x1ca724)),_0xddaffc['descriptionFactory']['registerDescriptionCallback'](_0x4a6e8d=>{if('formatBlock'!=_0x4a6e8d['type'])return;const _0x492545=_0x3e26f1['t'],{data:_0x5eea89}=_0x4a6e8d;if(!_0x5eea89||'codeBlock'!=_0x5eea89['commandName'])return;const _0x312752=_0x5eea89['commandParams'][0x0]['language'],_0x24fd6d=_0x492545(_0x3b4500['find'](_0x19f0e6=>_0x19f0e6['language']===_0x312752)['label'])['toLowerCase']();return _0x5eea89['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e26f1,'*Set\x20format:*\x20%0',o(_0x3e26f1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x24fd6d+')')}:{'type':'format','content':o(_0x3e26f1,'*Remove\x20format:*\x20%0',o(_0x3e26f1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x27ad77){return'codeBlock'==_0x27ad77['name'];}class z extends _0x240e00{['afterInit'](){const _0x140141=this['editor'];if(!_0x140141['plugins']['has']('CommentsEditing'))return;_0x140141['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x46e722,_0x370b4a,_0x1a940c){const _0x422a4e=[];for(const _0x383d24 of _0x370b4a['getItems']())_0x383d24['hasAttribute'](_0x46e722)&&_0x422a4e['push'](_0x1a940c['createRangeOn'](_0x383d24));return _0x422a4e;}function Ne(_0x101e59,_0x4c4a39,{showActiveMarker:_0xcc79c3=!0x0}={}){const _0xe660c1=_0x101e59['plugins']['get']('TrackChangesEditing');return(_0x595477,_0x18c178,_0x48a039)=>{if(!_0x48a039['consumable']['test'](_0x18c178['markerRange'],_0x595477['name']))return;const _0x17c0f5=_0x18c178['markerRange']['getWalker'](),_0xc3150d=_0x18c178['markerRange']['start'],_0x442c15=_0x101e59['model']['schema'];let _0x216c63=null,_0x6f8b17=null,_0x3d36c7=!0x1,_0x3def86=!0x1;for(const _0x43cc8b of _0x17c0f5){const _0x27c6b8=_0x43cc8b['item'];_0x3d36c7=_0x3d36c7||_0x442c15['isContent'](_0x27c6b8);const _0x2a5cc6=_0x48a039['mapper']['toViewElement'](_0x27c6b8);if(_0x2a5cc6&&_0x2a5cc6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x43cc8b['type']&&(_0x442c15['isBlock'](_0x27c6b8)&&!_0x442c15['isLimit'](_0x27c6b8)&&(_0x27c6b8['nextSibling']||_0xc3150d['isAtEnd']?_0x216c63&&_0x216c63['parent']==_0x27c6b8||(_0x216c63=_0x27c6b8,_0x5eaec0(_0x43cc8b['previousPosition']),_0x3def86=!0x0):_0x6f8b17=_0x6f8b17||_0x43cc8b['previousPosition']));}function _0x5eaec0(_0x2a88c6){const {authorId:_0x836ac4}=_0xe660c1['_splitMarkerName'](_0x18c178['markerName']),_0x33ac8b=_0x48a039['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c4a39,'data-author-id':_0x836ac4}),_0x4101f4=_0x48a039['mapper']['toViewPosition'](_0x2a88c6);_0xcc79c3&&_0xe660c1['activeMarkers']['includes'](_0x18c178['markerName'])&&_0x48a039['writer']['addClass']('ck-suggestion-marker--active',_0x33ac8b),_0x48a039['writer']['insert'](_0x4101f4,_0x33ac8b),_0x48a039['mapper']['bindElementToMarker'](_0x33ac8b,_0x18c178['markerName']);}_0x3d36c7||_0x3def86||!_0x6f8b17||_0x5eaec0(_0x6f8b17);};}class K extends _0x240e00{static get['requires'](){return[_0x350182];}['init'](){const _0x326e29=this['editor'],_0x2b314d=_0x326e29['plugins']['get']('TrackChangesEditing');_0x2b314d['enableCommand']('delete');const _0x1a5098=_0x326e29['commands']['get']('deleteForward');_0x2b314d['enableCommand']('deleteForward',(_0x405acd,_0x2f907e={})=>{const _0x50f5bf=_0x326e29['model']['createSelection'](_0x326e29['model']['document']['selection']);_0x50f5bf['isCollapsed']&&_0x326e29['model']['modifySelection'](_0x50f5bf,{'direction':'forward','unit':_0x2f907e['unit']});const _0x4c2828=_0x50f5bf['getFirstRange'](),_0x330644=_0x23d2d0['fromRange'](_0x4c2828);let _0x56d1e1;_0x405acd(_0x2f907e),_0x56d1e1='$graveyard'==_0x330644['root']['rootName']?_0x326e29['model']['createRange'](_0x4c2828['start']):_0x326e29['model']['createRange'](_0x330644['start'],_0x330644['end']),_0x330644['detach'](),_0x326e29['model']['enqueueChange'](_0x1a5098['buffer']['batch'],_0x9a836d=>{_0x1a5098['buffer']['lock'](),_0x9a836d['setSelection'](_0x9a836d['createRange'](_0x56d1e1['end'])),_0x1a5098['buffer']['unlock']();});}),_0x326e29['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x326e29,'merge'),{'priority':'high'}),_0x326e29['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x13d87f,_0x5c9ec3,_0x2bb457)=>{_0x2bb457['options']['showSuggestionHighlights']&&Ne(_0x326e29,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x13d87f,_0x5c9ec3,_0x2bb457);},{'priority':'high'}),_0x326e29['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4d7314,_0x3fc43c,_0x3493e2)=>{const _0x280eb9=_0x3493e2['mapper']['markerNameToElements'](_0x3fc43c['markerName']);if(_0x280eb9){for(const _0xc7066b of _0x280eb9)_0xc7066b['is']('uiElement')&&(_0x3493e2['mapper']['unbindElementFromMarkerName'](_0xc7066b,_0x3fc43c['markerName']),_0x3493e2['writer']['remove'](_0xc7066b));}},{'priority':'high'});}}class W extends _0x240e00{['afterInit'](){const _0x3088b4=this['editor'];if(!_0x3088b4['plugins']['has']('ListEditing'))return;const _0x34b974=_0x3088b4['locale'],_0x121ff7=_0x3088b4['plugins']['get']('TrackChangesEditing'),_0x39a8a1=_0x3088b4['plugins']['has']('TodoListEditing'),_0x54184b=!!_0x3088b4['config']['get']('list.multiBlock');function _0x10c661(_0x439c4f){return{'type':'format','content':''+o(_0x34b974,'*Set\x20format:*\x20%0',_0x439c4f)};}function _0x4c1460(_0x3b35ea){return{'type':'format','content':''+o(_0x34b974,'*Remove\x20format:*\x20%0',_0x3b35ea)};}_0x121ff7['enableDefaultAttributesIntegration']('numberedList'),_0x121ff7['enableDefaultAttributesIntegration']('bulletedList'),_0x121ff7['enableDefaultAttributesIntegration']('customNumberedList'),_0x121ff7['enableDefaultAttributesIntegration']('customBulletedList'),_0x121ff7['enableDefaultAttributesIntegration']('indentList'),_0x121ff7['enableDefaultAttributesIntegration']('outdentList'),_0x121ff7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x121ff7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x121ff7['registerBlockAttribute']('listItemId'),_0x121ff7['registerBlockAttribute']('listType'),_0x121ff7['registerBlockAttribute']('listIndent'),_0x54184b&&(_0x121ff7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x121ff7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x39a8a1&&(_0x121ff7['enableDefaultAttributesIntegration']('todoList'),_0x121ff7['enableDefaultAttributesIntegration']('checkTodoList'),_0x121ff7['registerBlockAttribute']('todoListChecked'),_0x121ff7['descriptionFactory']['registerDescriptionCallback'](_0x73ff11=>{const {data:_0x58ab7d}=_0x73ff11;if(_0x58ab7d&&'todoListChecked'==_0x58ab7d['key'])return{'type':'format','content':_0x58ab7d['newValue']?o(_0x34b974,'*Check\x20item*'):o(_0x34b974,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x17014c=>{if(_0x17014c['batch']['isUndo'])return!0x1;let _0x2ffafa=!0x1;const _0x46d50a=_0x121ff7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f1c60=>'todoListChecked'===_0x121ff7['_getAttributeKey'](_0x5f1c60));for(const _0x5bf7f7 of _0x46d50a){'todo'!=_0x5bf7f7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x121ff7['_findSuggestions'](_0x5bf7f7['getFirstRange'](),'attribute')['find'](_0x53fdea=>'listType'===_0x121ff7['_getAttributeKey'](_0x53fdea['suggestion']))||(_0x17014c['removeMarker'](_0x5bf7f7['getFirstMarker']()),_0x2ffafa=!0x0));}return _0x2ffafa;})),_0x121ff7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x34b974,'FORMAT_INDENT'));const _0x1ab62f={'type':'format','content':''};_0x121ff7['descriptionFactory']['registerDescriptionCallback'](_0x4ff219=>{const {data:_0x3cd352}=_0x4ff219;if(!_0x3cd352||'listType'!=_0x3cd352['key'])return;let _0x26a4fd=_0x4ff219['head'];for(;_0x26a4fd;){if(_0x26a4fd['data']&&(('listStyle'==_0x26a4fd['data']['key']||'listMarkerStyle'==_0x26a4fd['data']['key'])&&(_0x26a4fd['data']['newValue']&&'default'!=_0x26a4fd['data']['newValue']||'default'!=_0x26a4fd['data']['oldValue']&&!_0x3cd352['newValue'])||!_0x54184b&&_0x26a4fd['data']['key']==m))return _0x1ab62f;_0x26a4fd=_0x26a4fd['next'];}if(null==_0x3cd352['newValue'])switch(_0x3cd352['oldValue']){case'bulleted':return _0x4c1460(o(_0x34b974,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c1460(o(_0x34b974,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c1460(o(_0x34b974,'ELEMENT_TODO_LIST'));}switch(_0x3cd352['newValue']){case'bulleted':return _0x10c661(o(_0x34b974,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x10c661(o(_0x34b974,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x10c661(o(_0x34b974,'ELEMENT_TODO_LIST'));}}),_0x121ff7['descriptionFactory']['registerDescriptionCallback'](_0x10b887=>{const {data:_0x4e2449}=_0x10b887;if(_0x4e2449&&'listIndent'==_0x4e2449['key'])return null==_0x4e2449['newValue']||null==_0x4e2449['oldValue']&&0x0==_0x4e2449['newValue']?_0x1ab62f:void 0x0;}),_0x121ff7['descriptionFactory']['registerDescriptionCallback'](_0x33fec4=>{if('attribute'!=_0x33fec4['type'])return;const {data:_0x2bfd43}=_0x33fec4;if(!_0x2bfd43||'listItemId'!=_0x2bfd43['key'])return;const _0x4fbf35=Te(_0x33fec4);return'newValue'==_0x4fbf35?{'type':'format','content':o(_0x34b974,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4fbf35?{'type':'format','content':o(_0x34b974,'*Split:*\x20list\x20item')}:_0x1ab62f;}),_0x3088b4['model']['document']['registerPostFixer'](_0x2f1e1a=>this['listItemIdFixer'](_0x2f1e1a)),_0x3088b4['model']['document']['registerPostFixer'](_0x9ab937=>this['noTrackChangesFixer'](_0x9ab937)),_0x3088b4['model']['document']['on']('change:data',(_0x3b02d3,_0x574672)=>{if(_0x574672['isUndo']||!_0x574672['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1140cd){if(_0x1140cd['batch']['isUndo']||!_0x1140cd['batch']['isLocal'])return!0x1;let _0x2e3b4b=!0x1;const _0x458d1b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22d461=>_0x22d461['data']&&'listItemId'==_0x22d461['data']['key'])['filter'](_0x41cbb6=>_0x41cbb6['data']['newValue']&&_0x41cbb6['data']['oldValue']);for(const _0x4395a9 of _0x458d1b)Te(_0x4395a9)||(_0x1140cd['removeMarker'](_0x4395a9['getFirstMarker']()),_0x2e3b4b=!0x0);return _0x2e3b4b;}['noTrackChangesFixer'](_0x47921e){if(_0x47921e['batch']['isUndo']||!_0x47921e['batch']['isLocal'])return!0x1;const _0x5be194=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5be194['trackChangesCommand']['value'])return!0x1;let _0x471918=!0x1;const _0x484f9c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x49242d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x38355c=>'attribute'==_0x38355c['type'])['filter'](_0x3333d5=>_0x484f9c['includes'](_0x3333d5['attributeKey']));if(0x0==_0x49242d['length'])return _0x471918;for(const _0x7688fc of _0x49242d){const _0x193b0f=_0x5be194['_findSuggestions'](_0x7688fc['range'],'attribute')['filter'](_0x4cb819=>!_0x4cb819['meta']['isNextTo'])['map'](_0x170308=>_0x170308['suggestion'])['filter'](_0x3ff6b2=>{const _0x55e337=_0x5be194['_getAttributeKey'](_0x3ff6b2);return _0x484f9c['includes'](_0x55e337);});if(_0x193b0f['length']){for(const _0x5f17e0 of _0x193b0f)_0x47921e['removeMarker'](_0x5f17e0['getFirstMarker']());_0x471918=!0x0;}}return _0x471918;}['assureChains'](){const _0x2217b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f346c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1f1c3c;const _0x555279=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3fd524=>{if(_0x3fd524['data']['oldRange']||!_0x3fd524['data']['newRange'])return null;if(!_0x3fd524['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4fa486}=_0x2217b0['_splitMarkerName'](_0x3fd524['name']);if(!_0x2217b0['hasSuggestion'](_0x4fa486))return null;const _0x44c7eb=_0x2217b0['getSuggestion'](_0x4fa486);return _0x2f346c['includes'](_0x44c7eb['data']['key']);})['map'](_0x436290=>{const {id:_0x386185}=_0x2217b0['_splitMarkerName'](_0x436290['name']),_0x18c494=_0x2217b0['getSuggestion'](_0x386185);return _0x1f1c3c=_0x18c494['attributes']['groupId'],_0x18c494['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x555279['size'])return;const _0x2c2378=_0x2217b0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15fde6=>'attribute'==_0x15fde6['type']&&_0x15fde6['data']&&_0x2f346c['includes'](_0x15fde6['data']['key'])&&_0x15fde6['attributes']['groupId']!=_0x1f1c3c)['map'](_0xf24bd9=>({'listItem':_0xf24bd9['getFirstRange']()['start']['nodeAfter'],'groupId':_0xf24bd9['attributes']['groupId']})),_0x3ac76a=new Set();for(const {groupId:_0x253ab5,listItem:_0x276359}of _0x2c2378)_0x555279['has'](_0x276359)&&_0x3ac76a['add'](_0x253ab5);for(const _0x582339 of _0x2217b0['getSuggestions']())_0x3ac76a['has'](_0x582339['attributes']['groupId'])&&_0x582339['setAttribute']('groupId',_0x1f1c3c);}['_supportLegacySuggestions'](){const _0x5bd56d=this['editor'],_0x2c96d6=_0x5bd56d['locale'],_0x32cb2d=_0x5bd56d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x32cb2d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x225759,_0x1f499f){const _0x388901=[];for(let _0x595012 of _0x225759)_0x595012['start']['nodeAfter']===_0x595012['end']['parent']&&(_0x595012=_0x5bd56d['model']['createRange'](_0x5bd56d['model']['createPositionAt'](_0x595012['start']['nodeAfter'],0x0))),_0x388901['push'](_0x595012);_0x5bd56d['model']['change'](_0x2642f2=>{const _0x3312ea=_0x5bd56d['model']['document']['selection'],_0x2d79a3=Array['from'](_0x3312ea['getRanges']())['map'](_0x2f564d=>_0x23d2d0['fromRange'](_0x2f564d));_0x2642f2['setSelection'](_0x388901),_0x5bd56d['commands']['get'](_0x1f499f['commandName'])['refresh'](),_0x1f499f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5bd56d['execute'](_0x1f499f['commandName'],..._0x1f499f['commandParams']),_0x2642f2['setSelection'](_0x2d79a3);for(const _0x3d9f53 of _0x2d79a3)_0x3d9f53['detach']();});}),_0x32cb2d['descriptionFactory']['registerElementLabel'](function(_0x162360){const _0x147e2b=!_0x5bd56d['model']['schema']['isObject'](_0x162360),_0x2a9c32=_0x162360['previousSibling'],_0x2ee117=_0x162360['nextSibling'],_0x43a7ce=_0x162360['getAttribute']('listItemId'),_0x36b2e4=!_0x2a9c32||_0x2a9c32['getAttribute']('listItemId')!==_0x43a7ce,_0x454d1f=!_0x2ee117||_0x2ee117['getAttribute']('listItemId')!==_0x43a7ce;return _0x147e2b&&Boolean(_0x43a7ce)&&_0x36b2e4&&_0x454d1f;},_0x489b33=>o(_0x2c96d6,'ELEMENT_LIST_ITEM',_0x489b33));}['_registerLegacyDescription'](){const _0x236d57=this['editor'],_0x241942=_0x236d57['locale'];function _0x1e7478(_0x1138ca){const _0x4a36ef=_0x236d57['commands']['get']('bulletedList')['value'],_0x1efaee=_0x236d57['commands']['get']('numberedList')['value'];return'numberedList'===_0x1138ca?_0x4a36ef:_0x1efaee;}_0x236d57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1746f5){if('formatBlock'!=_0x1746f5['type'])return;const {data:_0x2f7501}=_0x1746f5;if(!_0x2f7501)return;let _0x36632a,_0x343619,_0x33a160,_0x306be7;switch(_0x2f7501['commandName']){case'bulletedList':_0x33a160=_0x2f7501['commandParams'][0x0]['forceValue'],_0x306be7=_0x1e7478(_0x2f7501['commandName']),_0x36632a=_0x33a160?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x306be7&&_0x236d57['config']['get']('list.multiBlock')||(_0x36632a='*Change\x20to:*\x20%0'),_0x343619={'type':'format','content':o(_0x241942,_0x36632a,o(_0x241942,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x33a160=_0x2f7501['commandParams'][0x0]['forceValue'],_0x306be7=_0x1e7478(_0x2f7501['commandName']),_0x36632a=_0x33a160?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x306be7&&_0x236d57['config']['get']('list.multiBlock')||(_0x36632a='*Change\x20to:*\x20%0'),_0x343619={'type':'format','content':o(_0x241942,_0x36632a,o(_0x241942,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x36632a='*Indent:*\x20%0',_0x343619={'type':'format','content':o(_0x241942,_0x36632a,o(_0x241942,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x36632a=function(_0x2177da){const _0x15c41e=_0x2177da['getFirstRange']();let _0x11c290=_0x15c41e['start']['nodeAfter'];for(;_0x11c290&&_0x15c41e['containsItem'](_0x11c290);){if(_0x11c290['getAttribute']('listIndent')>0x0)return!0x1;_0x11c290=_0x11c290['nextSibling'];}return!0x0;}(_0x1746f5)?o(_0x241942,'*Format:*\x20remove\x20from\x20%0',o(_0x241942,function(_0x17492a){return'ELEMENT_'+_0x17492a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1746f5))):o(_0x241942,'*Outdent:*\x20%0',o(_0x241942,'ELEMENT_LIST_ITEM')),_0x343619={'type':'format','content':_0x36632a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2f7501['multipleBlocks']&&(_0x36632a='*Merge:*\x20%0',_0x343619={'type':'deletion','content':o(_0x241942,_0x36632a,o(_0x241942,'ELEMENT_LIST_ITEM'))});}return _0x343619;});}}function Te(_0x48ff05){let _0x3cc2c=_0x48ff05['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3cc2c;){const _0xf566fb=_0x3cc2c['getAttribute']('listItemId');if(!_0xf566fb)return!0x1;if(_0xf566fb==_0x48ff05['data']['newValue'])return'newValue';if(_0xf566fb==_0x48ff05['data']['oldValue'])return'oldValue';_0x3cc2c=_0x3cc2c['previousSibling'];}return!0x1;}class ye extends _0x240e00{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1f7abd=this['editor']['config']['get']('list.properties'),_0x16532b=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f7abd['styles']&&(_0x16532b['enableDefaultAttributesIntegration']('listStyle'),_0x16532b['registerBlockAttribute']('listStyle')),_0x1f7abd['reversed']&&(_0x16532b['enableDefaultAttributesIntegration']('listReversed'),_0x16532b['registerBlockAttribute']('listReversed')),_0x1f7abd['startIndex']&&(_0x16532b['enableDefaultAttributesIntegration']('listStart'),_0x16532b['registerBlockAttribute']('listStart'));const _0x3bd868={'type':'format','content':''};_0x16532b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x18cfe7=this['editor']['locale'];_0x16532b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x18cfe7,'FORMAT_LIST_REVERSED')),_0x16532b['descriptionFactory']['registerDescriptionCallback'](_0x2144d1=>{const {data:_0x50c01f}=_0x2144d1;if(_0x50c01f&&'listReversed'==_0x50c01f['key'])return null==_0x50c01f['newValue']||0x0==_0x50c01f['newValue']&&null==_0x50c01f['oldValue']?_0x3bd868:void 0x0;}),_0x16532b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x18cfe7,'FORMAT_LIST_START')),_0x16532b['descriptionFactory']['registerDescriptionCallback'](_0x24a5a0=>{const {data:_0x556775}=_0x24a5a0;if(_0x556775&&'listStart'==_0x556775['key'])return null==_0x556775['newValue']||0x1==_0x556775['newValue']&&null==_0x556775['oldValue']?_0x3bd868:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xa75df4=>{if(_0xa75df4['batch']['isUndo'])return!0x1;let _0x1b17e3=!0x1;const _0x30f75b=_0x16532b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24e918=>{const _0x44839f=_0x16532b['_getAttributeKey'](_0x24e918);return'listStart'==_0x44839f||'listReversed'==_0x44839f;});for(const _0x182f3e of _0x30f75b){const _0x598e8a=_0x182f3e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x598e8a||'customNumbered'==_0x598e8a)continue;_0x16532b['_findSuggestions'](_0x182f3e['getFirstRange'](),'attribute')['find'](_0x2c33df=>'listType'==_0x16532b['_getAttributeKey'](_0x2c33df['suggestion']))||(_0xa75df4['removeMarker'](_0x182f3e['getFirstMarker']()),_0x1b17e3=!0x0);}return _0x1b17e3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4102a3){const _0x1fb745=this['editor']['locale'],{data:_0x51c191}=_0x4102a3,_0x50f7c9={'type':'format','content':''};if(!_0x51c191||'listStyle'!=_0x51c191['key'])return;if(!_0x51c191['oldValue'])return'default'==_0x51c191['newValue']?_0x50f7c9:{'type':'format','content':''+o(_0x1fb745,'*Set\x20format:*\x20%0',o(_0x1fb745,this['_getTranslationKeyForListStyle'](_0x51c191['newValue'])))};if(!_0x51c191['newValue']){if('default'==_0x51c191['oldValue'])return _0x50f7c9;let _0x20feff=_0x4102a3['head'];for(;_0x20feff;){if(_0x20feff['data']&&'listType'==_0x20feff['data']['key']&&_0x20feff['data']['newValue'])return _0x50f7c9;_0x20feff=_0x20feff['next'];}return{'type':'format','content':''+o(_0x1fb745,'*Remove\x20format:*\x20%0',o(_0x1fb745,this['_getTranslationKeyForListStyle'](_0x51c191['oldValue'])))};}if('default'!=_0x51c191['newValue'])return{'type':'format','content':''+o(_0x1fb745,'*Set\x20format:*\x20%0',o(_0x1fb745,this['_getTranslationKeyForListStyle'](_0x51c191['newValue'])))};let _0x1254a2=_0x4102a3['head'];for(;_0x1254a2;){if(_0x1254a2['data']&&'listType'==_0x1254a2['data']['key']&&_0x1254a2['data']['newValue']&&_0x1254a2['data']['oldValue'])return _0x50f7c9;_0x1254a2=_0x1254a2['next'];}return{'type':'format','content':o(_0x1fb745,'*Set\x20format:*\x20%0',o(_0x1fb745,'ELEMENT_'+_0x4102a3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x394788=this['editor'],_0x1d960d=_0x394788['locale'];_0x394788['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3920aa=>{if('formatBlock'!=_0x3920aa['type'])return;const {data:_0x4cc5ce}=_0x3920aa;if(!_0x4cc5ce)return;let _0x45e5cd,_0x26f41f;switch(_0x4cc5ce['commandName']){case'listStyle':_0x45e5cd='*Change\x20to:*\x20%0',_0x26f41f={'type':'format','content':o(_0x1d960d,_0x45e5cd,o(_0x1d960d,this['_getTranslationKeyForListStyle'](_0x4cc5ce['commandParams'][0x0]['type'])))};break;case'listReversed':_0x45e5cd=_0x4cc5ce['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x26f41f={'type':'format','content':o(_0x1d960d,_0x45e5cd)};break;case'listStart':_0x45e5cd='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x26f41f={'type':'format','content':o(_0x1d960d,_0x45e5cd,_0x4cc5ce['commandParams'][0x0]['startIndex'])};}return _0x26f41f;});}['_getTranslationKeyForListStyle'](_0x2b1eab){return'ELEMENT_'+function(_0x3b42a9){if(Se['includes'](_0x3b42a9))return'bulleted';if(_e['includes'](_0x3b42a9))return'numbered';return null;}(_0x2b1eab)['toUpperCase']()+'_LIST_'+_0x2b1eab['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x240e00{static get['requires'](){return[_0xa43e62];}['init'](){const _0x4350ff=this['editor'],_0x9af8f8=_0x4350ff['plugins']['get']('TrackChangesEditing'),_0x3aeba9=_0x4350ff['commands']['get']('enter');_0x9af8f8['enableCommand']('enter',()=>{_0x4350ff['model']['change'](_0x344516=>{const _0x28c78f=_0x4350ff['model']['document']['selection'],_0x11009e=_0x28c78f['getFirstPosition'](),_0xf1436f=_0x23d2d0['fromRange'](_0x28c78f['getFirstRange']());if(_0x3aeba9['enterBlock'](_0x344516)){const _0x365116=_0x4350ff['model']['createPositionAt'](_0x11009e['parent']['nextSibling'],0x0),_0x17b0b0=_0x344516['createRange'](_0x11009e,_0x365116);_0x9af8f8['markInsertion'](_0x17b0b0);}else _0x344516['setSelection'](_0x344516['createRange'](_0xf1436f['end']));_0xf1436f['detach'](),_0x3aeba9['fire']('afterExecute',{'writer':_0x344516});});}),_0x4350ff['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x4350ff,'split'),{'priority':'high'}),_0x4350ff['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x50a5e3,_0x49b1f0,_0x3c9e67)=>{const _0x3e82f6=_0x3c9e67['mapper']['markerNameToElements'](_0x49b1f0['markerName']);if(_0x3e82f6){for(const _0x56cf65 of _0x3e82f6)_0x56cf65['hasClass']('ck-suggestion-marker-split')&&(_0x3c9e67['mapper']['unbindElementFromMarkerName'](_0x56cf65,_0x49b1f0['markerName']),_0x3c9e67['writer']['remove'](_0x56cf65));}},{'priority':'high'}),_0x4350ff['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x47a619,_0x2570f0,_0x46e3cb)=>{_0x46e3cb['options']['showSuggestionHighlights']&&Ne(_0x4350ff,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x47a619,_0x2570f0,_0x46e3cb);},{'priority':'high'});}}class Y extends _0x240e00{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x25b9e8=this['editor']['plugins']['get']('TrackChangesEditing');_0x25b9e8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x25b9e8['enableCommand']('findNext'),_0x25b9e8['enableCommand']('findPrevious'),_0x25b9e8['enableCommand']('replace'),_0x25b9e8['enableCommand']('replaceAll');}['handleFindCommand'](_0x16695a,_0x1ffb64,_0x3b7f29={}){const _0x1afb6c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x16695a(_0x5bc421=>{let _0x2ca9b6=('string'==typeof _0x1ffb64?_0x1afb6c['findByTextCallback'](_0x1ffb64,_0x3b7f29):_0x1ffb64)(_0x5bc421);Array['isArray'](_0x2ca9b6)&&(_0x2ca9b6={'results':_0x2ca9b6,'searchText':'string'==typeof _0x1ffb64?_0x1ffb64:''});const _0x2a2e25=_0x2ca9b6['results']['filter'](_0x389d19=>!0x1===this['_isInDeletionRange'](_0x389d19,_0x5bc421['item']));return{..._0x2ca9b6,'results':_0x2a2e25};},_0x3b7f29);}['_isInDeletionRange'](_0x342d5f,_0x5371c9){const _0x2fbd1a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5371c9,_0x342d5f['start']),this['editor']['model']['createPositionAt'](_0x5371c9,_0x342d5f['end']));for(const _0x2ea703 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2fbd1a['getIntersection'](_0x2ea703['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x240e00{['afterInit'](){const _0x34ef47=this['editor']['locale'],_0xe3dfc=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1fb4eb,commandName:_0x8324e6}of ro)this['editor']['plugins']['has'](_0x1fb4eb)&&(_0xe3dfc['enableDefaultAttributesIntegration'](_0x8324e6),_0xe3dfc['registerInlineAttribute'](_0x8324e6));_0xe3dfc['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x34ef47,'FORMAT_FONT_SIZE')),_0xe3dfc['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x34ef47,'FORMAT_FONT_FAMILY')),_0xe3dfc['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x34ef47,'FORMAT_FONT_COLOR')),_0xe3dfc['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x34ef47,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46440b=this['editor'],_0xa851ea=_0x46440b['locale'];_0x46440b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32b3c7=>{const _0x127ef1=_0xa851ea['t'];if('formatInline'!=_0x32b3c7['type'])return;const {data:_0x515e74}=_0x32b3c7;if(null!=_0x515e74){if('fontSize'==_0x515e74['commandName']){const _0x42e83d=_0x515e74['commandParams'][0x0]['value'];if(_0x42e83d){const _0x4e6953=_0x127ef1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4ca7db=>_0x4ca7db['model']==_0x42e83d)['title'])['toLowerCase']();return{'type':'format','content':o(_0xa851ea,'*Set\x20font\x20size:*\x20%0',_0x4e6953)};}return{'type':'format','content':o(_0xa851ea,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x515e74['commandName']){const _0x32231f=_0x515e74['commandParams'][0x0]['value'];return _0x32231f?{'type':'format','content':o(_0xa851ea,'*Set\x20font\x20family:*\x20%0',_0x32231f)}:{'type':'format','content':o(_0xa851ea,'*Reset\x20font\x20family*')};}if('fontColor'==_0x515e74['commandName']){const _0x4c196d=_0x515e74['commandParams'][0x0]['value'];if(_0x4c196d){const _0x289b4d=_0x2e9a97(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4b7097=>_0x4b7097['model']==_0x4c196d);let _0x7655d8=_0x4c196d,_0x42fd6a='';return _0x289b4d&&(_0x7655d8=_0x289b4d['label'],_0x42fd6a=_0x127ef1(_0x7655d8)['toLowerCase']()),{'type':'format','content':o(_0xa851ea,'*Set\x20font\x20color:*\x20%0',_0x42fd6a)['trim'](),'color':{'value':_0x4c196d,'title':_0x42fd6a||_0x7655d8}};}return{'type':'format','content':o(_0xa851ea,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x515e74['commandName']){const _0x2dd94f=_0x515e74['commandParams'][0x0]['value'];if(_0x2dd94f){const _0x58f612=_0x2e9a97(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x17a12e=>_0x17a12e['model']==_0x2dd94f);let _0x15e74f=_0x2dd94f,_0x1062ae='';return _0x58f612&&(_0x15e74f=_0x58f612['label'],_0x1062ae=_0x127ef1(_0x15e74f)['toLowerCase']()),{'type':'format','content':o(_0xa851ea,'*Set\x20font\x20background\x20color:*\x20%0',_0x1062ae)['trim'](),'color':{'value':_0x2dd94f,'title':_0x1062ae||_0x15e74f}};}return{'type':'format','content':o(_0xa851ea,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x240e00{['afterInit'](){const _0x1884d2=this['editor'],_0x6e6bef=_0x1884d2['plugins']['get']('TrackChangesEditing'),_0x58ccb8=_0x1884d2['commands']['get']('copyFormat'),_0x961453=_0x1884d2['commands']['get']('pasteFormat');_0x58ccb8&&_0x961453&&(_0x6e6bef['enableDefaultAttributesIntegration']('pasteFormat'),_0x6e6bef['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4d1060=this['editor'],_0x572faf=_0x4d1060['locale'];_0x4d1060['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd638e8=>{if('formatBlock'!=_0xd638e8['type']&&'formatInline'!=_0xd638e8['type'])return;const {data:_0xbb8b80}=_0xd638e8;if(_0xbb8b80&&'pasteFormat'===_0xbb8b80['commandName']){const _0x49b946=[],_0x253aa2=_0xbb8b80['commandParams'][0x0];for(const [_0x3b2ea7,_0x5f1185]of Object['entries'](_0x253aa2))_0x49b946['push'](so(_0x4d1060,_0x3b2ea7,_0x5f1185));return _0x49b946['length']?{'type':'format','content':o(_0x572faf,'*Set\x20format\x20to:*\x20%0',_0x49b946['join'](',\x20'))}:{'type':'format','content':o(_0x572faf,'*Remove\x20all\x20formatting*')};}});}}function so(_0x24b76b,_0x4b981c,_0xd9155){const _0x9b9497=_0x24b76b['locale']['t'],_0xd88fec=_0x4b981c['split'](/(?=[A-Z])/)['join']('\x20'),_0x16ca6a=_0x9b9497(_0xd88fec['charAt'](0x0)['toUpperCase']()+_0xd88fec['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xd9155)return _0x16ca6a;if('fontColor'===_0x4b981c||'fontBackgroundColor'===_0x4b981c){const _0x492f6a=_0x2e9a97(_0x24b76b['config']['get']('fontColor.colors'))['find'](_0x34f994=>_0x34f994['model']==_0xd9155);return _0x16ca6a+'\x20('+(_0x492f6a?_0x9b9497(_0x492f6a['label'])['toLowerCase']():_0xd9155)+')';}if('fontSize'===_0x4b981c&&isNaN(parseFloat(_0xd9155))){const _0xd58be4=_0x24b76b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x24b76b['config']['get']('fontSize.options'))['find'](_0x2a1490=>_0x2a1490['model']==_0xd9155);return _0x16ca6a+'\x20('+(_0xd58be4?_0x9b9497(_0xd58be4['title'])['toLowerCase']():_0xd9155)+')';}return _0x16ca6a+'\x20('+_0xd9155+')';}class nt extends _0x240e00{['_headingOptions'];['afterInit'](){const _0x4387a0=this['editor'];if(!_0x4387a0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4387a0['config']['get']('heading.options');const _0x563711=_0x4387a0['locale'],_0x44ecf6=_0x4387a0['plugins']['get']('TrackChangesEditing');_0x44ecf6['enableDefaultAttributesIntegration']('heading');for(const _0x4246bd of this['_headingOptions'])'paragraph'!=_0x4246bd['model']&&_0x44ecf6['descriptionFactory']['registerElementLabel'](_0x4246bd['model'],_0x9a1bb2=>{const _0x2acbdc=this['_getHeadingLevel'](_0x4246bd['model']);return null!==_0x2acbdc?_0x390e68(_0x9a1bb2,_0x2acbdc):_0x1822d0(_0x9a1bb2,_0x4246bd['title']);});function _0x390e68(_0x4a6010,_0x4bfcdb){return o(_0x563711,'ELEMENT_HEADING',[_0x4a6010,_0x4bfcdb]);}function _0x1822d0(_0x2e7a31,_0x141f30){return o(_0x563711,'ELEMENT_HEADING_CUSTOM',[_0x2e7a31,_0x141f30]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcc089e=this['editor'],_0x17dd93=_0xcc089e['locale'];function _0x324dbc(_0x430435,_0x45dba5){return o(_0x17dd93,'ELEMENT_HEADING_CUSTOM',[_0x430435,_0x45dba5]);}_0xcc089e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x568247=>{if('formatBlock'!=_0x568247['type'])return;const {data:_0x5223f1}=_0x568247;if(_0x5223f1&&'heading'==_0x5223f1['commandName']){const _0x11322c=_0x5223f1['commandParams'][0x0]['value'],_0x44ec1b=this['_getHeadingLevel'](_0x11322c);if(null!==_0x44ec1b)return{'type':'format','content':o(_0x17dd93,'*Change\x20to:*\x20%0',(_0x441d40=0x1,_0x19c602=_0x44ec1b,o(_0x17dd93,'ELEMENT_HEADING',[_0x441d40,_0x19c602])))};const _0x54c36b=this['_headingOptions']['find'](_0x22599a=>_0x22599a['model']===_0x11322c)['title'];return{'type':'format','content':o(_0x17dd93,'*Change\x20to:*\x20%0',_0x324dbc(0x1,_0x54c36b))};}var _0x441d40,_0x19c602;});}['_getHeadingLevel'](_0x4b6f39){const _0x342417=_0x4b6f39['match'](/^heading(\d+)/);if(_0x342417)return _0x342417[0x1];const _0xc38a3c=this['_headingOptions']?.['find'](_0x287080=>_0x287080['model']==_0x4b6f39);if(_0xc38a3c&&_0xc38a3c['view']){const _0x2d1510=_0xc38a3c['view'],_0x43113a=(_0x2d1510['name']??_0x2d1510)['match'](/^h(\d+)/);if(_0x43113a)return _0x43113a[0x1];}return null;}}class it extends _0x240e00{['afterInit'](){const _0x166b2a=this['editor'];if(!_0x166b2a['plugins']['has']('HighlightEditing'))return;const _0x23cdf0=_0x166b2a['plugins']['get']('TrackChangesEditing'),_0x48acd6=_0x166b2a['locale'];_0x23cdf0['enableDefaultAttributesIntegration']('highlight'),_0x23cdf0['registerInlineAttribute']('highlight'),_0x23cdf0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x48acd6,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22a9e6=this['editor'],_0x4e03df=_0x22a9e6['locale'];_0x22a9e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x526d31=>{if('formatInline'!=_0x526d31['type'])return;const {data:_0x3b4b55}=_0x526d31;if(_0x3b4b55&&'highlight'==_0x3b4b55['commandName']){const _0xd994b=_0x4e03df['t'],_0x18f395=_0x3b4b55['commandParams'][0x0]['value'];if(_0x18f395){const _0x512fc2=_0x22a9e6['config']['get']('highlight.options')['find'](_0x2fa6ca=>_0x2fa6ca['model']==_0x18f395),_0x3efe7c=_0xd994b(_0x512fc2['title'])['toLowerCase']();return{'type':'format','content':o(_0x4e03df,'*Set\x20highlight:*\x20%0',_0x3efe7c),'color':{'value':_0x512fc2['color'],'title':_0x512fc2['title']}};}return{'type':'format','content':o(_0x4e03df,'*Remove\x20highlight*',o(_0x4e03df,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x240e00{['afterInit'](){const _0x3dfcb2=this['editor'];if(!_0x3dfcb2['plugins']['has']('HorizontalLineEditing'))return;_0x3dfcb2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x616855=_0x3dfcb2['plugins']['get']('TrackChangesEditing'),_0xab72f9=_0x3dfcb2['locale'];_0x616855['descriptionFactory']['registerElementLabel']('horizontalLine',_0x12f341=>o(_0xab72f9,'ELEMENT_HORIZONTAL_LINE',_0x12f341)),_0x3dfcb2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x52abb9,{writer:_0x567a0e,options:_0x113044})=>{if(!_0x113044['showSuggestionHighlights'])return null;const _0xb1eedc=_0x567a0e['createContainerElement']('div'),_0xc994d0=_0x567a0e['createEmptyElement']('hr');return _0x567a0e['addClass']('ck-horizontal-line',_0xb1eedc),_0x567a0e['insert'](_0x567a0e['createPositionAt'](_0xb1eedc,0x0),_0xc994d0),_0xb1eedc;},'converterPriority':'high'});}}class st extends _0x240e00{['afterInit'](){const _0x35d480=this['editor'];if(!_0x35d480['plugins']['has']('HtmlEmbed'))return;const _0x104bc4=_0x35d480['plugins']['get']('TrackChangesEditing'),_0x42c322=_0x35d480['locale'];_0x104bc4['descriptionFactory']['registerElementLabel']('rawHtml',_0x470530=>o(_0x42c322,'ELEMENT_HTML_EMBED',_0x470530)),_0x104bc4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x104bc4['registerBlockAttribute']('value'),_0x104bc4['descriptionFactory']['registerDescriptionCallback'](_0x1f92e5=>{if('attribute'!=_0x1f92e5['type'])return;const {data:_0x17bd36}=_0x1f92e5;if(_0x17bd36&&'value'==_0x17bd36['key']&&_0x1f92e5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xda12a4=o(_0x42c322,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x42c322,'*Change\x20%0\x20content*',_0xda12a4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cc978=this['editor'],_0xb2c112=_0x5cc978['locale'];_0x5cc978['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bfa4d=>{if('formatBlock'!=_0x1bfa4d['type'])return;const {data:_0xeb8d8d}=_0x1bfa4d;if(_0xeb8d8d&&'htmlEmbed'==_0xeb8d8d['commandName']){const _0x56f32a=o(_0xb2c112,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xb2c112,'*Change\x20%0\x20content*',_0x56f32a)};}});}}class ot extends _0x240e00{['afterInit'](){const _0x2a8b7a=this['editor'];if(!_0x2a8b7a['plugins']['has']('ImageEditing'))return;const _0x48b2f0=_0x2a8b7a['plugins']['get']('TrackChangesEditing'),_0x148f6f=_0x2a8b7a['plugins']['get']('ImageUtils'),_0x34917b=_0x2a8b7a['locale'];_0x48b2f0['enableCommand']('insertImage'),_0x48b2f0['descriptionFactory']['registerElementLabel']('imageBlock',_0x454053=>o(_0x34917b,'ELEMENT_IMAGE',_0x454053)),_0x48b2f0['descriptionFactory']['registerElementLabel']('imageInline',_0x15b211=>o(_0x34917b,'ELEMENT_INLINE_IMAGE',_0x15b211)),_0x48b2f0['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x34917b,'ELEMENT_CAPTION')),_0x2a8b7a['plugins']['has']('ImageUploadEditing')&&_0x48b2f0['enableCommand']('uploadImage'),_0x2a8b7a['plugins']['has']('ImageBlockEditing')&&_0x2a8b7a['plugins']['has']('ImageInlineEditing')&&(_0x48b2f0['enableCommand']('imageTypeInline',(_0x25bd89,_0x18609d)=>{const _0x3c9f60=_0x148f6f['getClosestSelectedImageElement'](_0x2a8b7a['model']['document']['selection']);_0x2a8b7a['model']['change'](()=>{_0x48b2f0['markBlockFormat'](_0x3c9f60,{'commandName':'imageTypeInline','commandParams':[_0x18609d]},[],'convertBlockImageToInline');});}),_0x48b2f0['enableCommand']('imageTypeBlock',(_0x5341a8,_0xaeb718)=>{_0x2a8b7a['model']['change'](_0x4de505=>{let _0x2ce5c0=_0x148f6f['getClosestSelectedImageElement'](_0x2a8b7a['model']['document']['selection']),_0x1f5ba8=_0x4de505['createRangeOn'](_0x2ce5c0);const _0x211f5f=_0x274438['fromPosition'](_0x1f5ba8['start'],'toPrevious'),_0x7d4eb=_0x274438['fromPosition'](_0x1f5ba8['end'],'toNext');_0x48b2f0['forceDefaultExecution'](()=>_0x5341a8(_0xaeb718)),_0x2ce5c0=_0x148f6f['getClosestSelectedImageElement'](_0x2a8b7a['model']['document']['selection']),_0x1f5ba8=_0x4de505['createRangeOn'](_0x2ce5c0);const _0x487ed6=_0x4de505['createRange'](_0x211f5f,_0x7d4eb);_0x211f5f['detach'](),_0x7d4eb['detach'](),_0x48b2f0['markBlockFormat'](_0x2ce5c0,{'commandName':'imageTypeInline','commandParams':[_0xaeb718]},[],'convertInlineImageToBlock'),_0x487ed6['start']['isBefore'](_0x1f5ba8['start'])&&_0x48b2f0['markInsertion'](_0x4de505['createRange'](_0x487ed6['start'],_0x1f5ba8['start']),'convertInlineImageToBlock'),_0x1f5ba8['end']['isBefore'](_0x487ed6['end'])&&_0x48b2f0['markInsertion'](_0x4de505['createRange'](_0x1f5ba8['end'],_0x487ed6['end']),'convertInlineImageToBlock');});}),_0x48b2f0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x48b2f0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x48b2f0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x48b2f0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x48b2f0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x48b2f0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1af8b9])=>{const _0x1f24d9=_0x48b2f0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x40a280=_0x1af8b9['start'],_0x976546=_0x1af8b9['end'];const _0x26efe9=_0x2a8b7a['model']['schema']['getNearestSelectionRange'](_0x40a280,'backward'),_0x33805d=_0x2a8b7a['model']['schema']['getNearestSelectionRange'](_0x976546,'forward');_0x26efe9['isCollapsed']&&(_0x40a280=_0x26efe9['start']),_0x33805d['isCollapsed']&&(_0x976546=_0x33805d['end']),_0x1f24d9([_0x2a8b7a['model']['createRange'](_0x40a280,_0x976546)]);}),_0x48b2f0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x34caaf),_0x48b2f0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x34caaf)),_0x2a8b7a['plugins']['has']('ImageCaptionEditing')&&(_0x48b2f0['enableCommand']('toggleImageCaption',(_0x26fc20,_0x1c5f22)=>{const _0x55b666=_0x2a8b7a['plugins']['get']('ImageCaptionUtils');let _0x30fe06=_0x148f6f['getClosestSelectedImageElement'](_0x2a8b7a['model']['document']['selection']),_0x23653f=_0x55b666['getCaptionFromImageModelElement'](_0x30fe06);_0x2a8b7a['model']['change'](()=>{if(_0x23653f)return void _0x48b2f0['markDeletion'](_0x2a8b7a['model']['createRangeOn'](_0x23653f));const _0x34fd5b=_0x148f6f['isBlockImage'](_0x30fe06);_0x26fc20(_0x1c5f22),_0x30fe06=_0x148f6f['getClosestSelectedImageElement'](_0x2a8b7a['model']['document']['selection']),_0x23653f=_0x55b666['getCaptionFromImageModelElement'](_0x30fe06),_0x48b2f0['markInsertion'](_0x2a8b7a['model']['createRangeOn'](_0x23653f),_0x34fd5b?null:'imageCaption');});}),_0x48b2f0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x34caaf));const _0x236e5a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xca27d9(_0x3e1189,_0x2a36e5){const _0x53152d=_0x236e5a['findIndex'](({type:_0x3700df,subType:_0x1c142d})=>_0x3e1189['type']==_0x3700df&&_0x3e1189['subType']==_0x1c142d),_0x444fc5=_0x236e5a['findIndex'](({type:_0x3a1d67,subType:_0x144906})=>_0x2a36e5['type']==_0x3a1d67&&_0x2a36e5['subType']==_0x144906);if(_0x53152d<0x0||_0x444fc5<0x0)return!0x1;const _0x1b6f07=_0x3e1189['getFirstRange'](),_0x1cc0c4=_0x2a36e5['getFirstRange']();if((0x0==_0x53152d||0x1==_0x53152d)&&0x2==_0x444fc5&&_0x1b6f07['isIntersecting'](_0x1cc0c4))return!0x0;if(0x2==_0x53152d&&0x3==_0x444fc5){const _0x450020=_0x48b2f0['_findSuggestions'](_0x1b6f07,'insertion')['filter'](({suggestion:_0x102c4a,meta:_0x2a115a})=>_0x2a115a['isOwn']&&'convertInlineImageToBlock'==_0x102c4a['subType']);if(_0x450020['length']>0x1&&_0x1cc0c4['end']['isEqual'](_0x1b6f07['start']))return!0x0;if(0x1==_0x450020['length']&&(_0x1b6f07['start']['isEqual'](_0x1cc0c4['end'])||_0x1b6f07['end']['isEqual'](_0x1cc0c4['start'])))return!0x0;}if(0x3==_0x53152d&&0x3==_0x444fc5&&_0x1b6f07['start']['isBefore'](_0x1cc0c4['start'])){const _0x5727d7=_0x1b6f07['end']['nodeAfter'],_0x29d26b=_0x1cc0c4['start']['nodeBefore'];return _0x148f6f['isBlockImage'](_0x5727d7)&&_0x5727d7===_0x29d26b;}return!0x1;}function _0x34caaf(_0x494743,_0x323513){return _0xca27d9(_0x494743,_0x323513)?[_0x494743,_0x323513]:_0xca27d9(_0x323513,_0x494743)?[_0x323513,_0x494743]:null;}_0x2a8b7a['plugins']['has']('ImageResize')&&(_0x48b2f0['enableDefaultAttributesIntegration']('resizeImage'),_0x48b2f0['registerBlockAttribute']('resizedWidth'),_0x48b2f0['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x34917b,'FORMAT_IMAGE_SIZE'))),_0x2a8b7a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x48b2f0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x48b2f0['registerBlockAttribute']('alt')),_0x48b2f0['descriptionFactory']['registerDescriptionCallback'](_0xa1d29e=>{if(!!_0x236e5a['find'](({type:_0x1fc837,subType:_0x4baedf})=>_0xa1d29e['type']==_0x1fc837&&_0xa1d29e['subType']==_0x4baedf))return _0xa1d29e['previous']?{}:void 0x0;}),_0x48b2f0['descriptionFactory']['registerDescriptionCallback'](_0x2cf899=>{if('insertion'==_0x2cf899['type']||'deletion'==_0x2cf899['type']){const _0x4f9541=_0x2cf899['getContainedElement']();if(_0x4f9541&&_0x4f9541['is']('element','caption'))return{'type':'insertion'==_0x2cf899['type']?'addObject':'removeObject','element':_0x4f9541,'quantity':0x1};}}),_0x48b2f0['descriptionFactory']['registerDescriptionCallback'](_0x3d1d8d=>'formatBlock'==_0x3d1d8d['type']&&'convertInlineImageToBlock'==_0x3d1d8d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3d1d8d['type']&&'convertBlockImageToInline'==_0x3d1d8d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x48b2f0['descriptionFactory']['registerDescriptionCallback'](_0x4f2899=>{if('attribute'!=_0x4f2899['type'])return;const {data:_0x407bd7}=_0x4f2899;if(!_0x407bd7||'alt'!=_0x407bd7['key'])return;const _0x27640b=_0x407bd7['newValue'];return _0x27640b?{'type':'format','content':o(_0x34917b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x27640b+'\x22')}:{'type':'format','content':o(_0x34917b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e9d91=this['editor'],_0x34be9f=_0x5e9d91['locale'];_0x5e9d91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d9888=>{if('formatBlock'!=_0x3d9888['type']&&'formatInline'!=_0x3d9888['type'])return;const {data:_0x213e21}=_0x3d9888;if(_0x213e21){if('imageTextAlternative'==_0x213e21['commandName']){const _0x36e7a1=_0x213e21['commandParams'][0x0]['newValue'];return _0x36e7a1?{'type':'format','content':o(_0x34be9f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x36e7a1+'\x22')}:{'type':'format','content':o(_0x34be9f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x213e21['commandName']){const _0x31c6e7=_0x213e21['commandParams'][0x0]['width'];return _0x31c6e7?{'type':'format','content':o(_0x34be9f,'*Set\x20image\x20width:*\x20%0',_0x31c6e7)}:{'type':'format','content':o(_0x34be9f,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x240e00{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x205ae0=this['editor']['locale'],_0x2383c8=this['editor']['plugins']['get']('TrackChangesEditing');_0x2383c8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2383c8['registerBlockAttribute']('src'),_0x2383c8['descriptionFactory']['registerDescriptionCallback'](_0x4d07a6=>{if('attribute'!=_0x4d07a6['type'])return;const {data:_0x251e66}=_0x4d07a6;return _0x251e66&&'src'==_0x251e66['key']?_0x251e66['newValue']&&_0x251e66['oldValue']?{'type':'format','content':o(_0x205ae0,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3ed09f=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ed09f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3ed09f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ed09f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3ed09f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4702e0=this['editor'],_0x20c47b=_0x4702e0['locale'];_0x4702e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf41478=>{if('formatBlock'!=_0xf41478['type']&&'formatInline'!=_0xf41478['type'])return;const {data:_0x3590a6}=_0xf41478;if(!_0x3590a6||'replaceImageSource'!=_0x3590a6['commandName'])return;return{'type':'format','content':o(_0x20c47b,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x240e00{['afterInit'](){const _0x55f6bb=this['editor'];if(!_0x55f6bb['plugins']['has']('ImageStyleEditing'))return;const _0x21d6ba=_0x55f6bb['plugins']['get']('TrackChangesEditing'),_0x2f6308=_0x55f6bb['plugins']['get']('ImageUtils'),_0x3adfc5={};_0x21d6ba['enableCommand']('imageStyle',(_0x15ae87,_0x213738)=>{const _0x780880=_0x55f6bb['plugins']['get']('Users')['me'],_0x51e12f=_0x55f6bb['commands']['get']('imageStyle');let _0x1c2cc2=_0x2f6308['getClosestSelectedImageElement'](_0x55f6bb['model']['document']['selection']),_0x1a69b4=_0x55f6bb['model']['createRangeOn'](_0x1c2cc2),_0x47ba80=_0x51e12f['value'];if(_0x47ba80==_0x213738['value'])return;const _0x2988b2={'commandName':'imageStyle','commandParams':[_0x213738],'formatGroupId':_0x3aa221()};_0x55f6bb['model']['change'](()=>{if(_0x21d6ba['getSuggestions']()['filter'](_0x2367c8=>_0x2367c8['isInContent']&&_0x780880==_0x2367c8['author']&&('formatBlock'==_0x2367c8['type']||'formatInline'==_0x2367c8['type'])&&('imageStylePreApply'==_0x2367c8['subType']||'imageStylePostApply'==_0x2367c8['subType'])&&_0x2367c8['getFirstRange']()['isEqual'](_0x1a69b4))['forEach'](_0x37523d=>_0x21d6ba['discardSuggestion'](_0x37523d['head'])),_0x1c2cc2=_0x2f6308['getClosestSelectedImageElement'](_0x55f6bb['model']['document']['selection']),_0x1a69b4=_0x55f6bb['model']['createRangeOn'](_0x1c2cc2),_0x51e12f['refresh'](),_0x55f6bb['commands']['get']('imageTypeInline')['refresh'](),_0x55f6bb['commands']['get']('imageTypeBlock')['refresh'](),_0x47ba80=_0x51e12f['value'],_0x47ba80!=_0x213738['value'])return _0x2f6308['isInlineImage'](_0x1c2cc2)&&_0x51e12f['shouldConvertImageType'](_0x213738['value'],_0x1c2cc2)?(_0x15ae87({..._0x213738,'setImageSizes':!0x1}),_0x1c2cc2=_0x2f6308['getClosestSelectedImageElement'](_0x55f6bb['model']['document']['selection']),void _0x21d6ba['markBlockFormat'](_0x1c2cc2,{..._0x2988b2,'commandReversedParams':[{'value':_0x47ba80||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2f6308['isBlockImage'](_0x1c2cc2)?_0x21d6ba['markBlockFormat'](_0x1c2cc2,_0x2988b2,[],'imageStylePostApply'):_0x21d6ba['markInlineFormat'](_0x1a69b4,_0x2988b2,'imageStylePostApply'));});});for(const _0x538381 of _0x55f6bb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3adfc5[_0x538381['name']]=_0x538381['title']['toLowerCase']();_0x21d6ba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x21d6ba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x21d6ba['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x21d6ba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x248f6e])=>{_0x2f6308['setImageNaturalSizeAttributes'](_0x248f6e['getContainedElement']());}),_0x21d6ba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x498ab7,_0x47fc92)=>{_0x21d6ba['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x498ab7,{'commandName':_0x47fc92['commandName'],'commandParams':_0x47fc92['commandReversedParams']});}),_0x21d6ba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x339f1c,_0x5e0fb6){if(_0x43fef9(_0x339f1c,_0x5e0fb6))return[_0x339f1c,_0x5e0fb6];if(_0x43fef9(_0x5e0fb6,_0x339f1c))return[_0x5e0fb6,_0x339f1c];return null;});const _0xa53c85=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x43fef9(_0x5292c8,_0x17a398){const _0x2475c2=_0xa53c85['findIndex'](({type:_0x282bf6,subType:_0x538664})=>_0x5292c8['type']==_0x282bf6&&_0x5292c8['subType']==_0x538664),_0x35fb42=_0xa53c85['findIndex'](({type:_0x59910a,subType:_0x5a6f4f})=>_0x17a398['type']==_0x59910a&&_0x17a398['subType']==_0x5a6f4f);if(_0x2475c2<0x0||_0x35fb42<0x0)return!0x1;const _0x28b0e4=_0x5292c8['getFirstRange'](),_0x2ec5ad=_0x17a398['getFirstRange']();if((0x0==_0x2475c2||0x1==_0x2475c2)&&0x2==_0x35fb42&&_0x28b0e4['isIntersecting'](_0x2ec5ad))return!0x0;if(0x2==_0x2475c2&&0x3==_0x35fb42){const _0x348c57=_0x21d6ba['_findSuggestions'](_0x28b0e4,'insertion')['filter'](({suggestion:_0x343814,meta:_0x563990})=>_0x563990['isOwn']&&'convertInlineImageToBlock'==_0x343814['subType']);if(_0x348c57['length']>0x1&&_0x2ec5ad['end']['isEqual'](_0x28b0e4['start']))return!0x0;if(0x1==_0x348c57['length']&&(_0x28b0e4['start']['isEqual'](_0x2ec5ad['end'])||_0x28b0e4['end']['isEqual'](_0x2ec5ad['start'])))return!0x0;}if(0x3==_0x2475c2&&0x3==_0x35fb42&&_0x28b0e4['start']['isBefore'](_0x2ec5ad['start'])){const _0x26dfc3=_0x28b0e4['end']['nodeAfter'],_0x224935=_0x2ec5ad['start']['nodeBefore'];return _0x2f6308['isBlockImage'](_0x26dfc3)&&_0x26dfc3===_0x224935;}return!0x1;}_0x55f6bb['model']['document']['registerPostFixer'](()=>{let _0x4e0782=!0x1;const _0x571d07=Array['from'](_0x55f6bb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bac38,data:_0x48063a}of _0x571d07){const {group:_0x1e7c10,type:_0x2b6f3f,subType:_0xfa632,id:_0x4a11bf}=_0x21d6ba['_splitMarkerName'](_0x1bac38);if('suggestion'==_0x1e7c10&&_0x21d6ba['hasSuggestion'](_0x4a11bf)){if('formatBlock'==_0x2b6f3f&&('imageStylePreApply'==_0xfa632||'imageStylePostApply'==_0xfa632)){const _0x2a38a2=_0x21d6ba['getSuggestion'](_0x4a11bf);if(_0x48063a['newRange']){const _0x160d60=_0x2a38a2['getFirstRange']()['getContainedElement']();if(_0x2f6308['isBlockImage'](_0x160d60))continue;_0x21d6ba['discardSuggestion'](_0x2a38a2),_0x4e0782=!0x0;}}if('insertion'==_0x2b6f3f&&'imageCaption'==_0xfa632&&!_0x48063a['newRange']){const _0x1c5018=_0x21d6ba['getSuggestion'](_0x4a11bf);_0x1c5018['next']&&_0x1c5018['next']['isInContent']&&(_0x21d6ba['discardSuggestion'](_0x1c5018['next']),_0x4e0782=!0x0);}}}return _0x4e0782;}),this['_registerLegacyDescription'](_0x3adfc5);}['_registerLegacyDescription'](_0x4b853c){const _0x52035e=this['editor'],_0x6cef27=_0x52035e['locale'];_0x52035e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x194388=>{if('formatBlock'!=_0x194388['type']&&'formatInline'!=_0x194388['type'])return;const {data:_0x9c5d5d}=_0x194388;if(!_0x9c5d5d||'imageStyle'!=_0x9c5d5d['commandName'])return;const _0x1aaaaf=_0x9c5d5d['commandParams'][0x0]['value'];return _0x397ae5('side'===_0x1aaaaf?o(_0x6cef27,'FORMAT_SIDE_IMAGE'):_0x4b853c[_0x1aaaaf]||_0x1aaaaf);function _0x397ae5(_0x48a224){return{'type':'format','content':o(_0x6cef27,'*Format:*\x20%0',_0x48a224)};}});}}class ct extends _0x240e00{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x8677b5){super(_0x8677b5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x28342c=this['editor'],_0x799873=_0x28342c['commands']['get']('importWord'),_0x298821=_0x28342c['commands']['get']('trackChanges');_0x799873&&(_0x799873['on']('execute',(_0x1f3f5c,[,_0x51452d])=>{this['_trackChangesValueDuringImport']=_0x298821['value'],_0x51452d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x799873,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x799873,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x298821['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x28342c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x276aa6,_0x54d825){const {suggestions:_0x410e5d}=_0x54d825,_0x2d5f18=this['editor']['commands']['get']('trackChanges'),_0x3566f3=_0x2d5f18['value'];this['_trackChangesValueDuringImport']!==_0x3566f3&&(_0x2d5f18['execute'](),this['_trackChangesExecuted']=!0x0),_0x410e5d&&_0x410e5d['forEach'](({id:_0x1a3a02,type:_0x23e0a6,author:_0x14259e,created_at:_0x13912e})=>{const _0x35969f={'id':_0x1a3a02,'type':_0x23e0a6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x14259e,'createdAt':_0x13912e?new Date(_0x13912e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x35969f);});}}class ut extends _0x240e00{['afterInit'](){const _0x122a28=this['editor'],_0x583f9c=_0x122a28['plugins']['get']('TrackChangesEditing');if(_0x122a28['plugins']['has']('IndentEditing')&&(_0x583f9c['enableCommand']('indent'),_0x583f9c['enableCommand']('outdent')),_0x122a28['plugins']['has']('IndentBlock')){for(const _0x55a85f of['indentBlock','outdentBlock'])_0x583f9c['enableDefaultAttributesIntegration'](_0x55a85f);}const _0xcd6616=_0x122a28['locale'];_0x583f9c['registerBlockAttribute']('blockIndent'),_0x583f9c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xcd6616,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x515946=this['editor'],_0x45a593=_0x515946['locale'],_0x12ec8a=_0x515946['plugins']['get']('TrackChangesEditing');_0x12ec8a['descriptionFactory']['registerDescriptionCallback'](_0x7c58de=>{if('formatBlock'!=_0x7c58de['type'])return;const {data:_0x4cb228}=_0x7c58de;if(!_0x4cb228)return;if('indentBlock'!=_0x4cb228['commandName']&&'outdentBlock'!=_0x4cb228['commandName'])return;const _0x20ca2d=_0x7c58de['getItems']()[0x0],_0xef21f5=_0x12ec8a['descriptionFactory']['getItemLabel'](_0x20ca2d);return'indentBlock'==_0x4cb228['commandName']?{'type':'format','content':o(_0x45a593,'*Indent:*\x20%0',_0xef21f5)}:'outdentBlock'==_0x4cb228['commandName']?{'type':'format','content':o(_0x45a593,'*Outdent:*\x20%0',_0xef21f5)}:void 0x0;});}}class ft extends _0x240e00{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x240e00{['afterInit'](){const _0x5ab8de=this['editor'];if(!_0x5ab8de['plugins']['has']('LinkEditing'))return;const _0x2f1c35=_0x5ab8de['plugins']['get']('TrackChangesEditing'),_0x38cebf=_0x5ab8de['commands']['get']('link');_0x2f1c35['enableDefaultAttributesIntegration']('link'),_0x2f1c35['enableDefaultAttributesIntegration']('unlink'),_0x2f1c35['registerInlineAttribute']('linkHref');for(const _0x5966cc of _0x38cebf['manualDecorators'])_0x2f1c35['registerInlineAttribute'](_0x5966cc['id']),_0x2f1c35['descriptionFactory']['registerAttributeLabel'](_0x5966cc['id'],'link\x20('+_0x5966cc['label']['toLowerCase']()+')');_0x2f1c35['descriptionFactory']['registerDescriptionCallback'](_0x58bcc9=>{if('attribute'!=_0x58bcc9['type'])return;const {data:_0x481db1}=_0x58bcc9;if(!_0x481db1||'linkHref'!=_0x481db1['key'])return;const _0x1e43af=_0x481db1['newValue'],_0x1d1231=_0x5ab8de['locale'];return{'type':'format','content':null==_0x1e43af?o(_0x1d1231,'*Remove\x20link*'):o(_0x1d1231,'*Set\x20link:*\x20%0','\x22'+_0x1e43af+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25239f=this['editor'],_0x21b944=_0x25239f['locale'];_0x25239f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x389246=>{if('formatInline'!=_0x389246['type'])return;const {data:_0x2622fe}=_0x389246;if(_0x2622fe){if('link'==_0x2622fe['commandName']){const _0x59ff31=_0x2622fe['commandParams'][0x0];return{'type':'format','content':o(_0x21b944,'*Set\x20link:*\x20%0','\x22'+_0x59ff31+'\x22')};}return'unlink'==_0x2622fe['commandName']?{'type':'format','content':o(_0x21b944,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x240e00{['afterInit'](){const _0x5bf7ea=this['editor'],_0x5e18f7=_0x5bf7ea['locale'];if(!_0x5bf7ea['plugins']['has']('LegacyListEditing'))return;const _0x1c662=_0x5bf7ea['plugins']['get']('TrackChangesEditing'),_0x3497f5=_0x5bf7ea['plugins']['has']('LegacyTodoListEditing');function _0x5a1bbb(_0x8fe42e){return()=>{const _0xf4b6f5=_0x5bf7ea['model']['document']['selection'],_0x25cd19=_0x5bf7ea['commands']['get'](_0x8fe42e);if(_0x25cd19['value'])return void _0x5bf7ea['execute']('paragraph',{});const _0x871365=_0x8fe42e['slice'](0x0,-0x4),_0x5a0209=function(_0x451fcd,_0x105700,_0xb5e440){let _0x57409d=Array['from'](_0x451fcd)['filter'](_0xd614a9=>function(_0x5a62ec,_0x40c017){return _0x40c017['checkChild'](_0x5a62ec['parent'],'listItem')&&!_0x40c017['isObject'](_0x5a62ec);}(_0xd614a9,_0xb5e440));_0x57409d=_0x57409d['filter'](_0x1b13af=>!_0x1b13af['is']('element','listItem')||_0x1b13af['getAttribute']('listType')!=_0x105700);const _0x5cf804=new Set();for(const _0x54b883 of _0x57409d)_0x54b883['is']('element','listItem')?_0x5cf804['add'](Le(_0x54b883)):_0x5cf804['add'](_0x54b883);return Array['from'](_0x5cf804);}(_0xf4b6f5['getSelectedBlocks'](),_0x871365,_0x5bf7ea['model']['schema']);_0x5bf7ea['model']['change'](()=>{for(const _0x3356dc of _0x5a0209)_0x1c662['markBlockFormat'](_0x3356dc,{'commandName':_0x8fe42e,'commandParams':[{'forceValue':!_0x25cd19['value']}],'formatGroupId':'blockName'},Ee(_0x3356dc));});};}function _0x7dafd8(_0x4432ca){return()=>{const _0x1a10ce=function(_0x12d6ec){let _0x4f66c7=Array['from'](_0x12d6ec);const _0x5a3d7e=_0x4f66c7['findIndex'](_0x4bfe04=>'listItem'!=_0x4bfe04['name']);return _0x5a3d7e>-0x1&&(_0x4f66c7=_0x4f66c7['slice'](0x0,_0x5a3d7e)),_0x4f66c7;}(_0x5bf7ea['model']['document']['selection']['getSelectedBlocks']()),_0x580f56=_0x5bf7ea['model']['createRange'](_0x5bf7ea['model']['createPositionAt'](_0x1a10ce[0x0],'before'),_0x5bf7ea['model']['createPositionAt'](_0x1a10ce[_0x1a10ce['length']-0x1],'end'));_0x5bf7ea['model']['change'](()=>{_0x1c662['markBlockFormat'](_0x580f56,{'commandName':_0x4432ca,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1ac535){const _0x14f871=new Set();for(const _0x2303c9 of _0x1ac535){let _0x135e46=_0x2303c9['nextSibling'];for(;_0x135e46&&_0x135e46['getAttribute']('listIndent')>_0x2303c9['getAttribute']('listIndent');)_0x14f871['add'](_0x135e46),_0x135e46=_0x135e46['nextSibling'];}return Array['from'](_0x14f871);}(_0x1a10ce));});};}_0x1c662['enableCommand']('numberedList',_0x5a1bbb('numberedList')),_0x1c662['enableCommand']('bulletedList',_0x5a1bbb('bulletedList')),_0x3497f5&&_0x1c662['enableCommand']('todoList',_0x5a1bbb('todoList')),_0x1c662['enableCommand']('indentList',_0x7dafd8('indentList')),_0x1c662['enableCommand']('outdentList',_0x7dafd8('outdentList')),_0x3497f5&&_0x1c662['enableCommand']('checkTodoList',()=>{const _0x137725=_0x5bf7ea['commands']['get']('checkTodoList'),_0x28c868=Array['from'](_0x137725['_selectedElements']);_0x28c868['filter'](_0x40f46a=>_0x40f46a['getAttribute']('todoListChecked')!=_0x137725['value']),_0x5bf7ea['model']['change'](()=>{for(const _0x1a6eae of _0x28c868)_0x1c662['markBlockFormat'](_0x1a6eae,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x137725['value']}]});});}),_0x1c662['descriptionFactory']['registerElementLabel']('listItem',_0xcfe113=>o(_0x5e18f7,'ELEMENT_LIST_ITEM',_0xcfe113)),_0x1c662['descriptionFactory']['registerDescriptionCallback'](_0x310b31=>{if('formatBlock'!=_0x310b31['type']&&'formatInline'!=_0x310b31['type'])return;const {data:_0x201404}=_0x310b31;if(_0x201404){if('numberedList'==_0x201404['commandName']||'bulletedList'==_0x201404['commandName']||'todoList'==_0x201404['commandName'])switch(_0x201404['commandName']['replace']('List','')){case'bulleted':return _0x3a713e(o(_0x5e18f7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a713e(o(_0x5e18f7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a713e(o(_0x5e18f7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x201404['commandName'])return{'type':'format','content':o(_0x5e18f7,'*Indent:*\x20%0',o(_0x5e18f7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x201404['commandName'])return{'type':'format','content':o(_0x5e18f7,'*Outdent:*\x20%0',o(_0x5e18f7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x201404['commandName'])return _0x201404['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e18f7,'*Check\x20item*')}:{'type':'format','content':o(_0x5e18f7,'*Uncheck\x20item*')};}function _0x3a713e(_0x338cd7){return{'type':'format','content':o(_0x5e18f7,'*Change\x20to:*\x20%0',_0x338cd7)};}});}}function Le(_0x30b9bd){const _0x18742e=_0x30b9bd['getAttribute']('listIndent');if(0x0==_0x18742e)return _0x30b9bd;let _0x403c15=_0x30b9bd;for(;_0x30b9bd['previousSibling']&&_0x30b9bd['previousSibling']['is']('element','listItem');){const _0x288c64=_0x30b9bd['previousSibling']['getAttribute']('listIndent');if(_0x288c64==_0x18742e)_0x403c15=_0x30b9bd['previousSibling'];else{if(_0x288c64<_0x18742e)break;}_0x30b9bd=_0x30b9bd['previousSibling'];}return _0x403c15;}function Ee(_0x5d5a08){const _0x5994d2=[];if(_0x5d5a08['is']('element','listItem')&&_0x5d5a08['getAttribute']('listIndent')>0x0){let _0x327670=_0x5d5a08['nextSibling'];for(;_0x327670&&'listItem'==_0x327670['name']&&_0x327670['getAttribute']('listIndent')==_0x5d5a08['getAttribute']('listIndent');)_0x5994d2['push'](_0x327670),_0x327670=_0x327670['nextSibling'];}return _0x5994d2;}class Q extends _0x240e00{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x25f5d7=this['editor']['config']['get']('list.properties'),_0x34346a=this['editor']['plugins']['get']('TrackChangesEditing');_0x25f5d7['styles']&&_0x34346a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x25f5d7['reversed']&&_0x34346a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x25f5d7['startIndex']&&_0x34346a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x34346a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x329dbf,_0x248601={}){const _0x55a4f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x572fd4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x55a4f4['markMultiRangeBlockFormat'](_0x572fd4,{'commandName':'listStyle','commandParams':[{'type':_0x248601['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4a08a3,_0xb58702={}){const _0x2ab5cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x189751=this['_getSuggestionBlocks'](_0x36cf50=>_0x36cf50['is']('element','listItem')&&'numbered'===_0x36cf50['getAttribute']('listType'));if(_0x189751['length']<0x1)return;const _0x57794e=_0x189751['map'](_0x2b3ab7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2b3ab7,'before'),this['editor']['model']['createPositionAt'](_0x2b3ab7,0x0)));this['editor']['model']['change'](()=>{_0x2ab5cd['markMultiRangeBlockFormat'](_0x57794e,{'commandName':'listReversed','commandParams':[{'reversed':_0xb58702['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x19b3db,_0x466dbc={}){const _0x4bcdcb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b1724=this['_getSuggestionBlocks'](_0x3c10f0=>_0x3c10f0['is']('element','listItem')&&'numbered'===_0x3c10f0['getAttribute']('listType'));if(_0x1b1724['length']<0x1)return;const _0x5170e6=_0x1b1724['map'](_0x44b15e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x44b15e,'before'),this['editor']['model']['createPositionAt'](_0x44b15e,0x0)));this['editor']['model']['change'](()=>{_0x4bcdcb['markMultiRangeBlockFormat'](_0x5170e6,{'commandName':'listStart','commandParams':[{'startIndex':_0x466dbc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x94435){if('formatBlock'!=_0x94435['type']&&'formatInline'!=_0x94435['type'])return;const _0x2868ec=this['editor']['locale'],{data:_0x1ffcff}=_0x94435;if(!_0x1ffcff)return;let _0x5ad60f,_0x4810af;switch(_0x1ffcff['commandName']){case'listStyle':_0x5ad60f='*Change\x20to:*\x20%0',_0x4810af={'type':'format','content':o(_0x2868ec,_0x5ad60f,o(_0x2868ec,this['_getTranslationKeyForListStyle'](_0x1ffcff['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5ad60f=_0x1ffcff['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4810af={'type':'format','content':o(_0x2868ec,_0x5ad60f)};break;case'listStart':_0x5ad60f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4810af={'type':'format','content':o(_0x2868ec,_0x5ad60f,_0x1ffcff['commandParams'][0x0]['startIndex'])};}return _0x4810af;}['_getSuggestionBlocksForListStyle'](){const _0x24cc97=this['editor']['plugins']['get']('LegacyListUtils');let _0x136034=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x136034[0x0]?.['is']('element','listItem')&&_0x136034['unshift'](..._0x24cc97['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x136034[_0x136034['length']-0x1]?.['is']('element','listItem')&&_0x136034['push'](..._0x24cc97['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x136034=[...new Set(_0x136034)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x136034=_0x136034['filter'](_0x9d10fc=>_0x9d10fc['is']('element','listItem'))),_0x136034;}['_getSuggestionBlocks'](_0x2f0ff6){const _0x35c1c2=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b6f12=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2f0ff6)['map'](_0x2bd1a6=>{const _0x183904=this['editor']['model']['createPositionAt'](_0x2bd1a6,0x0);return[..._0x35c1c2['getSiblingNodes'](_0x183904,'backward'),..._0x35c1c2['getSiblingNodes'](_0x183904,'forward')];})['flat']();return _0x4b6f12=[...new Set(_0x4b6f12)],_0x4b6f12;}['_getTranslationKeyForListStyle'](_0xb11501){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xb11501)||'default')['toUpperCase']()+'_LIST_'+_0xb11501['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x240e00{['afterInit'](){const _0x4e19ce=this['editor'];if(!_0x4e19ce['plugins']['has']('MediaEmbedEditing'))return;const _0x13b937=_0x4e19ce['plugins']['get']('TrackChangesEditing'),_0x5a11c0=_0x4e19ce['locale'];_0x13b937['enableCommand']('mediaEmbed'),_0x13b937['descriptionFactory']['registerElementLabel']('media',_0x358df9=>o(_0x5a11c0,'ELEMENT_MEDIA',_0x358df9)),_0x4e19ce['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4b58d0,{writer:_0x36b93e,options:_0x4fe972})=>{if(_0x4fe972['showSuggestionHighlights'])return _0x36b93e['createEmptyElement']('div');},'converterPriority':'high'}),_0x4e19ce['data']['downcastDispatcher']['on']('attribute:url:media',(_0xee5041,_0x5b3ed7,_0x50c400)=>{_0x50c400['options']['showSuggestionHighlights']&&_0xee5041['stop']();},{'priority':'high'});}}class mt extends _0x240e00{['afterInit'](){const _0x40a43b=this['editor'];_0x40a43b['plugins']['has']('MentionEditing')&&_0x40a43b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x240e00{['afterInit'](){const _0x31054c=this['editor'];if(!_0x31054c['plugins']['has']('MergeFieldsEditing'))return;_0x31054c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x31054c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x6a53ac=_0x31054c['plugins']['get']('TrackChangesEditing'),_0x418ef3=_0x31054c['locale'];_0x6a53ac['descriptionFactory']['registerElementLabel']('mergeField',_0x230d0a=>o(_0x418ef3,'ELEMENT_MERGE_FIELD',_0x230d0a)),_0x6a53ac['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x322c2a=>o(_0x418ef3,'ELEMENT_MERGE_FIELD',_0x322c2a)),_0x6a53ac['descriptionFactory']['registerDescriptionCallback'](_0x18240e=>{if('insertion'!=_0x18240e['type']&&'deletion'!=_0x18240e['type'])return;const _0x8c2e25=_0x18240e['getContainedElement']();if(null==_0x8c2e25)return;if(!_0x8c2e25['is']('element','mergeField')&&!_0x8c2e25['is']('element','mergeFieldBlock'))return;const _0x4136fc=_0x31054c['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x8c2e25['getAttribute']('id'));return'insertion'==_0x18240e['type']?{'type':'insertion','content':o(_0x418ef3,'*Insert:*\x20%0','\x22'+_0x4136fc+'\x22\x20'+o(_0x418ef3,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x418ef3,'*Remove:*\x20%0','\x22'+_0x4136fc+'\x22\x20'+o(_0x418ef3,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x240e00{['afterInit'](){const _0x1d9855=this['editor'],_0x31c42a=_0x1d9855['plugins']['get']('TrackChangesEditing');_0x1d9855['plugins']['has']('MultiLevelList')&&(_0x31c42a['enableDefaultAttributesIntegration']('multiLevelList'),_0x31c42a['registerBlockAttribute']('listMarkerStyle'),_0x31c42a['descriptionFactory']['registerDescriptionCallback'](_0x2407ff=>this['handleDescriptions'](_0x2407ff)));}['handleDescriptions'](_0x46bd63){const _0x39745c=this['editor']['locale'],{data:_0x165c97}=_0x46bd63,_0x226931={'type':'format','content':''};if(_0x165c97&&'listMarkerStyle'==_0x165c97['key']){if(!_0x165c97['oldValue'])return{'type':'format','content':o(_0x39745c,'*Set\x20format:*\x20%0',o(_0x39745c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x165c97['newValue']+')'};if(!_0x165c97['newValue']){let _0x5e7166=_0x46bd63['head'];for(;_0x5e7166;){if(_0x5e7166['data']&&'listType'==_0x5e7166['data']['key']&&_0x5e7166['data']['newValue'])return _0x226931;_0x5e7166=_0x5e7166['next'];}return{'type':'format','content':o(_0x39745c,'*Remove\x20format:*\x20%0',o(_0x39745c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x165c97['oldValue']+')'};}}}}class kt extends _0x240e00{['afterInit'](){const _0x3a2237=this['editor'];if(!_0x3a2237['plugins']['has']('PageBreakEditing'))return;_0x3a2237['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x13ce67=_0x3a2237['plugins']['get']('TrackChangesEditing'),_0x21b7ee=_0x3a2237['locale'];_0x13ce67['descriptionFactory']['registerElementLabel']('pageBreak',_0x33d766=>o(_0x21b7ee,'ELEMENT_PAGE_BREAK',_0x33d766));}}class bt extends _0x240e00{['afterInit'](){const _0x1d2479=this['editor'];if(!_0x1d2479['plugins']['has']('Paragraph'))return;const _0x2e4312=_0x1d2479['locale'],_0x2e7842=_0x1d2479['plugins']['get']('TrackChangesEditing');_0x2e7842['descriptionFactory']['registerElementLabel']('paragraph',_0x4ae177=>o(_0x2e4312,'ELEMENT_PARAGRAPH',_0x4ae177)),_0x2e7842['enableDefaultAttributesIntegration']('paragraph'),_0x2e7842['enableCommand']('insertParagraph'),_0x1d2479['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1d2479),{'priority':'highest'}),_0x1d2479['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x398e82,_0x43c445,_0x28f359)=>{_0x28f359['options']['showSuggestionHighlights']&&nr(_0x1d2479,{'showActiveMarker':!0x1})(_0x398e82,_0x43c445,_0x28f359);},{'priority':'highest'});const _0x1058b9=_0x2e7842['descriptionFactory'];_0x1058b9['registerDescriptionCallback'](_0x2a64fe=>{if('insertion'!==_0x2a64fe['type'])return;const {start:_0x1242f0,end:_0x1de965}=_0x2a64fe['getFirstRange']();if(!_0x1242f0['isTouching'](_0x1de965)||!_0x1242f0['nodeAfter'])return;const _0x203291=_0x1d2479['model']['schema'],_0x438607=_0x1242f0['nodeAfter'];return _0x203291['isBlock'](_0x438607)&&!_0x203291['isLimit'](_0x438607)&&_0x203291['checkChild'](_0x438607,'$text')?{'type':'insertion','content':o(_0x2e4312,'*Insert:*\x20%0',_0x1058b9['getItemLabel'](_0x438607,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x596c90=this['editor'],_0x172f92=_0x596c90['locale'];_0x596c90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x334cf7=>{if('formatBlock'!=_0x334cf7['type'])return;const {data:_0xcd5d40}=_0x334cf7;return _0xcd5d40&&'paragraph'==_0xcd5d40['commandName']?{'type':'format','content':o(_0x172f92,'*Change\x20to:*\x20%0',o(_0x172f92,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x58cbb6,{showActiveMarker:_0x1734e9=!0x0}={}){return(_0x3906e5,_0x25fe62,_0x43b12d)=>{const _0x3794a1=_0x58cbb6['plugins']['get']('TrackChangesEditing'),_0x30d6d1=_0x25fe62['markerRange']['start'],_0x75dc7e=_0x25fe62['markerRange']['end'],_0x24c631=_0x58cbb6['model']['schema'];if(!_0x30d6d1['isTouching'](_0x75dc7e)||!_0x30d6d1['nodeAfter'])return;const _0x23bd84=_0x30d6d1['nodeAfter'];if(_0x24c631['isBlock'](_0x23bd84)&&!_0x24c631['isLimit'](_0x23bd84)&&_0x24c631['checkChild'](_0x23bd84,'$text')){if(!_0x43b12d['consumable']['consume'](_0x25fe62['markerRange'],_0x3906e5['name']))return;const {authorId:_0x2f1bbc}=_0x3794a1['_splitMarkerName'](_0x25fe62['markerName']),_0x3c6c16=_0x43b12d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2f1bbc}),_0x4838d3=_0x43b12d['mapper']['toViewPosition'](_0x75dc7e);_0x1734e9&&_0x3794a1['activeMarkers']['includes'](_0x25fe62['markerName'])&&_0x43b12d['writer']['addClass']('ck-suggestion-marker--active',_0x3c6c16),_0x43b12d['writer']['insert'](_0x4838d3,_0x3c6c16),_0x43b12d['mapper']['bindElementToMarker'](_0x3c6c16,_0x25fe62['markerName']);}};}class yt extends _0x240e00{['afterInit'](){const _0x4417a2=this['editor'];if(!_0x4417a2['plugins']['has']('RemoveFormatEditing'))return;_0x4417a2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d4618=this['editor'];_0x1d4618['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x221ede=>{if('formatBlock'!=_0x221ede['type']&&'formatInline'!=_0x221ede['type'])return;const {data:_0x4212f9}=_0x221ede;return _0x4212f9&&'removeFormat'==_0x4212f9['commandName']?{'type':'format','content':o(_0x1d4618['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x240e00{['afterInit'](){const _0x31c960=this['editor'];if(!_0x31c960['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x537688=_0x31c960['plugins']['get']('TrackChangesEditing');_0x537688['enableCommand']('goToPreviousRestrictedEditingException'),_0x537688['enableCommand']('goToNextRestrictedEditingException');const _0x15ed7c=_0x31c960['plugins']['get']('RestrictedEditingModeEditing');_0x15ed7c['enableCommand']('trackChanges'),_0x15ed7c['enableCommand']('acceptSuggestion'),_0x15ed7c['enableCommand']('discardSuggestion'),_0x15ed7c['enableCommand']('acceptAllSuggestions'),_0x15ed7c['enableCommand']('discardAllSuggestions'),_0x15ed7c['enableCommand']('acceptSelectedSuggestions'),_0x15ed7c['enableCommand']('discardSelectedSuggestions');}}class St extends _0x240e00{static get['requires'](){return[_0x530e8f];}['init'](){const _0x1dad4c=this['editor'],_0x3c9390=_0x1dad4c['plugins']['get']('TrackChangesEditing');_0x3c9390['enableCommand']('shiftEnter'),_0x1dad4c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x1dad4c),{'priority':'high'}),_0x1dad4c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x1dad4c),{'priority':'high'}),_0x1dad4c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x359297,_0x5d6e5d,_0x3217ab)=>{_0x3217ab['options']['showSuggestionHighlights']&&ke(_0x1dad4c,{'showActiveMarker':!0x1})(_0x359297,_0x5d6e5d,_0x3217ab);}),_0x3c9390['descriptionFactory']['registerElementLabel']('softBreak',_0x44f536=>o(_0x1dad4c['locale'],'ELEMENT_LINE_BREAK',_0x44f536));}}function ke(_0x22c48d,{showActiveMarker:_0x4777db=!0x0}={}){return(_0x377349,_0x298950,_0x187ebb)=>{const _0x2db5e3=_0x22c48d['plugins']['get']('TrackChangesEditing');if(!_0x187ebb['consumable']['test'](_0x298950['markerRange'],_0x377349['name']))return;const _0x256e25=_0x22c48d['model'];for(const _0x2d08b0 of _0x298950['markerRange']['getItems']()){if(!_0x2d08b0['is']('element','softBreak'))continue;const _0x403f5c='deletion'==_0x298950['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3d30bd}=_0x2db5e3['_splitMarkerName'](_0x298950['markerName']),_0x1f9f07=_0x187ebb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x403f5c,'data-author-id':_0x3d30bd}),_0xc77c4d=_0x187ebb['mapper']['toViewPosition'](_0x256e25['createPositionBefore'](_0x2d08b0));_0x4777db&&_0x2db5e3['activeMarkers']['includes'](_0x298950['markerName'])&&_0x187ebb['writer']['addClass']('ck-suggestion-marker--active',_0x1f9f07),_0x187ebb['writer']['insert'](_0xc77c4d,_0x1f9f07),_0x187ebb['mapper']['bindElementToMarker'](_0x1f9f07,_0x298950['markerName']);}};}class At extends _0x240e00{['afterInit'](){const _0x415f8c=this['editor'],_0x7da7e4=_0x415f8c['model'],_0x5632e1=_0x415f8c['locale'];if(!_0x415f8c['plugins']['has']('StandardEditingModeEditing'))return;const _0x543109=_0x415f8c['plugins']['get']('TrackChangesEditing'),_0x3b68e2='restrictedEditingException',_0x466dac=_0x415f8c['commands']['get'](_0x3b68e2);_0x543109['enableCommand'](_0x3b68e2,(_0x335cbb,_0x394e57={})=>{const _0x5a77e6=_0x7da7e4['document']['selection'];if(_0x5a77e6['isCollapsed'])return void _0x335cbb(_0x394e57);const _0x5f6f5f=void 0x0!==_0x394e57['forceValue']?_0x394e57['forceValue']:!_0x466dac['value'];_0x7da7e4['change'](()=>{const _0x20d862=Array['from'](_0x5a77e6['getRanges']());for(const _0x5ff7f6 of _0x20d862){const _0x7d6d4d=_0x5f6f5f?[_0x5ff7f6]:io(_0x3b68e2,_0x5ff7f6,_0x7da7e4);for(const _0x70dce1 of _0x7d6d4d)_0x543109['markInlineFormat'](_0x70dce1,{'commandName':_0x3b68e2,'commandParams':[{'forceValue':_0x5f6f5f}]});}});}),_0x543109['descriptionFactory']['registerDescriptionCallback'](_0x24933e=>{if('formatBlock'!=_0x24933e['type']&&'formatInline'!=_0x24933e['type'])return;const {data:_0x1730c0}=_0x24933e;return _0x1730c0&&_0x1730c0['commandName']==_0x3b68e2?_0x1730c0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5632e1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5632e1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x240e00{['afterInit'](){const _0x5a4a63=this['editor'];if(!_0x5a4a63['plugins']['has']('Style')||!_0x5a4a63['plugins']['has']('DataSchema'))return;const _0x577a0e=_0x5a4a63['plugins']['get']('TrackChangesEditing'),_0x24daac=_0x5a4a63['locale'],_0x1bd75a=_0x5a4a63['config']['get']('style')||{},_0x586dee=_0x5a4a63['plugins']['get']('GeneralHtmlSupport'),_0x223384=_0x5a4a63['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5a4a63['plugins']['get']('DataSchema'),_0x1bd75a['definitions']);_0x577a0e['enableDefaultAttributesIntegration']('style');const _0x137fb5=new Set();for(const _0x489f82 of _0x223384['block']){const _0x4d120c=_0x586dee['getGhsAttributeNameForElement'](_0x489f82['element']);_0x137fb5['add'](_0x4d120c);}const _0x2d0cf2=new Set();for(const _0x5c6626 of _0x223384['inline']){const _0x2377d1=_0x586dee['getGhsAttributeNameForElement'](_0x5c6626['element']);_0x2d0cf2['add'](_0x2377d1);for(const _0x20373f of _0x5c6626['ghsAttributes'])_0x2d0cf2['add'](_0x20373f);}for(const _0x4a3c46 of _0x137fb5)_0x577a0e['registerBlockAttribute'](_0x4a3c46),_0x577a0e['descriptionFactory']['registerAttributeLabel'](_0x4a3c46,o(_0x24daac,'FORMAT_STYLE'));for(const _0x427098 of _0x2d0cf2)_0x577a0e['registerInlineAttribute'](_0x427098),_0x577a0e['descriptionFactory']['registerAttributeLabel'](_0x427098,o(_0x24daac,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x338c9e=this['editor'],_0x5d383c=_0x338c9e['locale'];_0x338c9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4eaa0e=>{if('formatBlock'!=_0x4eaa0e['type']&&'formatInline'!=_0x4eaa0e['type'])return;const {data:_0x48b2b7}=_0x4eaa0e;return _0x48b2b7&&'style'===_0x48b2b7['commandName']?_0x48b2b7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d383c,'*Set\x20format:*\x20%0',_0x48b2b7['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5d383c,'*Remove\x20format:*\x20%0',_0x48b2b7['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x240e00{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x57d6f6){super(_0x57d6f6),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3c4eb8=this['editor'],_0x4b14de=_0x3c4eb8['model']['document']['selection'];if(!_0x3c4eb8['plugins']['has']('TableEditing'))return;const _0x54ed3e=_0x3c4eb8['locale'],_0x465d13=_0x3c4eb8['plugins']['get']('TrackChangesEditing'),_0x4889db=_0x3c4eb8['plugins']['get']('TableUtils');_0x465d13['descriptionFactory']['registerElementLabel']('table',_0xa94ec7=>o(_0x54ed3e,'ELEMENT_TABLE',_0xa94ec7)),this['_setupColumnsRowsFixing'](),_0x465d13['enableCommand']('insertTable'),_0x465d13['enableCommand']('selectTableRow'),_0x465d13['enableCommand']('selectTableColumn');for(const _0x20683c of['insertTableRowAbove','insertTableRowBelow']){const _0x54c9b6=_0x3c4eb8['commands']['get'](_0x20683c);_0x465d13['enableCommand'](_0x20683c,_0x506929=>{_0x3c4eb8['model']['change'](_0x421e16=>{_0x506929();const _0x3d3fdc='above'===_0x54c9b6['order'],_0x51c463=_0x4889db['getSelectionAffectedTableCells'](_0x4b14de),_0x4071c1=_0x4889db['getRowIndexes'](_0x51c463),_0x5b2cfb=_0x3d3fdc?_0x4071c1['first']-0x1:_0x4071c1['last']+0x1,_0x2eccc2=_0x51c463[0x0]['findAncestor']('table'),_0x17b170=_0x4889db['createTableWalker'](_0x2eccc2,{'startRow':_0x5b2cfb,'endRow':_0x5b2cfb}),_0x589ab9=Array['from'](_0x17b170)['map'](_0x2fe498=>_0x421e16['createRangeOn'](_0x2fe498['cell']));_0x465d13['markMultiRangeInsertion'](_0x589ab9,'tableRow');});});}for(const _0x2f97f4 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4be675=_0x3c4eb8['commands']['get'](_0x2f97f4);_0x465d13['enableCommand'](_0x2f97f4,_0x180cb4=>{_0x3c4eb8['model']['change'](_0x4ecfb8=>{_0x180cb4();const _0x128c4b='left'===_0x4be675['order'],_0x21007f=_0x4889db['getSelectionAffectedTableCells'](_0x4b14de),_0x3c26b1=_0x4889db['getColumnIndexes'](_0x21007f),_0x174865=_0x128c4b?_0x3c26b1['first']-0x1:_0x3c26b1['last']+0x1,_0x411b52=_0x21007f[0x0]['findAncestor']('table'),_0x5b5230=_0x4889db['createTableWalker'](_0x411b52,{'startRow':0x0,'column':_0x174865,'includeAllSlots':!0x1}),_0x7115e7=Array['from'](_0x5b5230)['map'](_0x3bbcd1=>_0x4ecfb8['createRangeOn'](_0x3bbcd1['cell']));_0x465d13['markMultiRangeInsertion'](_0x7115e7,'tableColumn');});});}for(const _0x14e452 of['removeTableRow','removeTableColumn']){const _0x554b2f=_0x14e452['substr'](0xb),_0x40e5c0=_0x554b2f['toLowerCase'](),_0x220914=_0x40e5c0['substr'](0x0,0x3)+'span',_0x4b30b0='table'+_0x554b2f,_0x377fd9='min'+_0x554b2f,_0x840168='max'+_0x554b2f;_0x465d13['enableCommand'](_0x14e452,()=>{_0x3c4eb8['model']['change'](_0x53bb09=>{const _0x1f2c2f=_0x4889db['getSelectionAffectedTableCells'](_0x4b14de),_0x2d640f=_0x1f2c2f[0x0]['findAncestor']('table');let _0x223217;if('removeTableRow'==_0x14e452){const _0x37a8ce=_0x4889db['getRowIndexes'](_0x1f2c2f);_0x223217={'startRow':_0x37a8ce['first'],'endRow':_0x37a8ce['last'],'includeAllSlots':!0x0};}else{const _0x198a60=_0x4889db['getColumnIndexes'](_0x1f2c2f);_0x223217={'startColumn':_0x198a60['first'],'endColumn':_0x198a60['last'],'includeAllSlots':!0x0};}const _0xf4ae65=_0x4889db['createTableWalker'](_0x2d640f,_0x223217),_0x5ac13a=Array['from'](_0xf4ae65)['map'](({cell:_0x16e276})=>_0x16e276),_0x6ad4ac=Re(_0x5ac13a['filter'](_0x2fbd46=>_0x2fbd46['hasAttribute'](_0x220914))),_0x507c7f=Re(_0x5ac13a['filter'](_0x4eb492=>!_0x4eb492['hasAttribute'](_0x220914)))['map'](_0x6f3fe8=>_0x53bb09['createRangeOn'](_0x6f3fe8)),_0x2d90f0=_0x465d13['markMultiRangeDeletion'](_0x507c7f,_0x4b30b0);if(_0x2d90f0&&('tableRow'==_0x2d90f0['subType']||'tableColumn'==_0x2d90f0['subType'])){const _0x84a98a=this['_getSuggestionCoords'](_0x2d90f0);for(const _0x4eec14 of _0x6ad4ac){const _0x48057a=_0x53bb09['createRangeOn'](_0x4eec14),_0x425a32=_0x4889db['getCellLocation'](_0x4eec14),_0xf62b0d=_0x4eec14['getAttribute'](_0x220914)-0x1,_0x59b7bb=_0x84a98a[_0x377fd9],_0x43cc7e=_0x84a98a[_0x840168];_0x59b7bb<=_0x425a32[_0x40e5c0]&&_0x425a32[_0x40e5c0]+_0xf62b0d<=_0x43cc7e&&_0x2d90f0['addRange'](_0x48057a);}}});});}function _0x2f6440(_0x9328e4){const _0x2f5971=Array['from'](_0x4b14de['getRanges']())['map'](_0x3489e9=>_0x23d2d0['fromRange'](_0x3489e9));_0x3c4eb8['model']['change'](_0x2ee44c=>{const _0x149a21=_0x2ee44c['batch'];_0x9328e4=_0x9328e4['filter'](_0x568cfd=>'$graveyard'!=_0x568cfd['root']['rootName']),_0x2ee44c['setSelection'](_0x9328e4),_0x3c4eb8['commands']['get']('removeTableRow')['refresh'](),_0x3c4eb8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3c4eb8['model']['enqueueChange'](()=>{_0x3c4eb8['model']['enqueueChange'](_0x149a21,_0x590a58=>{const _0x5e92ce=_0x2f5971['filter'](_0xdd04fb=>'$graveyard'!=_0xdd04fb['root']['rootName']);_0x5e92ce['length']>0x0&&_0x590a58['setSelection'](_0x5e92ce);for(const _0x44622b of _0x2f5971)_0x44622b['detach']();});});});}function _0x404708(_0x4933c8){_0x3c4eb8['model']['change'](_0x4aa2b8=>{const _0x156a68=Array['from'](_0x4b14de['getRanges']())['map'](_0x2c1ee4=>_0x23d2d0['fromRange'](_0x2c1ee4)),_0x4d0ecb=[];for(const _0x23fb69 of _0x4933c8)for(const _0x4a8c08 of _0x23fb69['getItems']({'shallow':!0x0}))_0x4d0ecb['push'](_0x4a8c08);for(const _0x4739c5 of _0x4d0ecb)'$graveyard'!=_0x4739c5['root']['rootName']&&(_0x4aa2b8['setSelection'](_0x4aa2b8['createPositionAt'](_0x4739c5,0x0)),_0x3c4eb8['commands']['get']('removeTableColumn')['refresh'](),_0x3c4eb8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1af8aa=_0x156a68['filter'](_0x20cc87=>'$graveyard'!=_0x20cc87['root']['rootName']);_0x1af8aa['length']>0x0&&_0x4aa2b8['setSelection'](_0x1af8aa);for(const _0x5a9fa7 of _0x156a68)_0x5a9fa7['detach']();});}function _0x2fc9d7(_0x2cd51a,_0x59e7a1){return _0x59e7a1['every'](_0x3aaba9=>_0x2cd51a['some'](_0x388735=>_0x388735['end']['isEqual'](_0x3aaba9['start'])||_0x3aaba9['end']['isEqual'](_0x388735['start'])));}function _0xd71b6c(_0x1c15e4,_0x1b340e){return!_0x1c15e4['some'](_0x53f0b8=>_0x1b340e['some'](_0x1c5e1e=>_0x53f0b8['isIntersecting'](_0x1c5e1e)))&&_0x1c15e4['some'](_0x54302b=>_0x1b340e['some'](_0x3aedbb=>_0x54302b['end']['isTouching'](_0x3aedbb['start'])));}_0x3c4eb8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a08a9,_0x4b3293,_0x28173d)=>{if(!_0x28173d['options']['showSuggestionHighlights'])return;const _0x490488=_0x4b3293['item'];if(!_0x490488)return;const _0xc825d0=_0x28173d['mapper']['toViewElement'](_0x490488);function _0x447e68(_0x2992f8){return Array['isArray'](_0x2992f8)?_0x2992f8:[_0x2992f8];}_0xc825d0&&'tableCell'===_0x490488['name']&&_0xddccc1(_0xc825d0,_0x28173d['writer'],(_0x12fb2b,_0x12384b,_0x43f5ff)=>_0x43f5ff['addClass'](_0x447e68(_0x12384b['classes']),_0x12fb2b),(_0x592d56,_0x352020,_0x211937)=>_0x211937['removeClass'](_0x447e68(_0x352020['classes']),_0x592d56));},{'priority':'highest'}),_0x465d13['descriptionFactory']['registerDescriptionCallback'](_0x381f51=>{if('insertion'!=_0x381f51['type']&&'deletion'!=_0x381f51['type'])return;const _0x3a42b1=_0x381f51['getContainedElement']();if(null!=_0x3a42b1&&_0x3a42b1['is']('element','table')){if('insertion'==_0x381f51['type']){const _0xfbd761=_0x381f51['getItems']()['filter'](_0x366f52=>_0x366f52['is']('$textProxy'))['map'](_0x17da8f=>_0x17da8f['data']);if(_0xfbd761['length'])return{'type':'insertion','content':o(_0x54ed3e,'*Insert:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xfbd761['join']('\x20')+'\x22'))};}if('deletion'==_0x381f51['type']){const _0x409273=_0x381f51['getItems']()['filter'](_0x296232=>_0x296232['is']('$textProxy'))['map'](_0x1af05e=>_0x1af05e['data']);if(_0x409273['length'])return{'type':'deletion','content':o(_0x54ed3e,'*Remove:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x409273['join']('\x20')+'\x22'))};}}}),_0x465d13['descriptionFactory']['registerDescriptionCallback'](_0x30bbd5=>{if('tableRow'==_0x30bbd5['subType']){const _0x268c4f=_0x30bbd5['getItems']()['filter'](_0x2540db=>_0x2540db['is']('$textProxy'))['map'](_0x3cae40=>_0x3cae40['data']),_0xa8cfd2=this['_getSuggestionCoords'](_0x30bbd5),_0x38809e=_0xa8cfd2['maxRow']-_0xa8cfd2['minRow']+0x1;if('insertion'==_0x30bbd5['type'])return _0x268c4f['length']?{'type':'insertion','content':o(_0x54ed3e,'*Insert:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x38809e,'\x22'+_0x268c4f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54ed3e,'*Insert:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_ROW',_0x38809e))};if('deletion'==_0x30bbd5['type'])return _0x268c4f['length']?{'type':'deletion','content':o(_0x54ed3e,'*Remove:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x38809e,'\x22'+_0x268c4f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54ed3e,'*Remove:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_ROW',_0x38809e))};}if('tableColumn'==_0x30bbd5['subType']){const _0x48627c=_0x30bbd5['getItems']()['filter'](_0x4e09de=>_0x4e09de['is']('$textProxy'))['map'](_0x2a182d=>_0x2a182d['data']),_0x33647a=this['_getSuggestionCoords'](_0x30bbd5),_0x3fdbd5=_0x33647a['maxColumn']-_0x33647a['minColumn']+0x1;if('insertion'==_0x30bbd5['type'])return _0x48627c['length']?{'type':'insertion','content':o(_0x54ed3e,'*Insert:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3fdbd5,'\x22'+_0x48627c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54ed3e,'*Insert:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_COLUMN',_0x3fdbd5))};if('deletion'==_0x30bbd5['type'])return _0x48627c['length']?{'type':'deletion','content':o(_0x54ed3e,'*Remove:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3fdbd5,'\x22'+_0x48627c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54ed3e,'*Remove:*\x20%0',o(_0x54ed3e,'ELEMENT_TABLE_COLUMN',_0x3fdbd5))};}}),_0x465d13['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2f6440),_0x465d13['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2f6440),_0x465d13['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x404708),_0x465d13['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x404708),_0x465d13['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2fc9d7),_0x465d13['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2fc9d7),_0x465d13['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xd71b6c),_0x465d13['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xd71b6c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x277a9e=this['editor'],_0x5db280=_0x277a9e['model']['document']['selection'];return(_0x13a48c,_0x238672)=>{_0x277a9e['model']['change'](_0x3b84e7=>{const {commandName:_0x41d7f9,commandParams:_0x1ce558}=_0x238672;let _0x26b1bc=_0x13a48c[0x0]['end']['nodeBefore'];_0x1ce558&&_0x1ce558[0x0]&&!0x1===_0x1ce558[0x0]['forceValue']&&(_0x26b1bc=_0x13a48c[0x0]['start']['nodeAfter']);const _0x3f0f29=_0x3b84e7['createRangeIn'](_0x26b1bc);if('$graveyard'==_0x3f0f29['root']['rootName'])return;const _0x1c93dd=Array['from'](_0x5db280['getRanges']())['map'](_0x596d00=>_0x23d2d0['fromRange'](_0x596d00));_0x3b84e7['setSelection'](_0x3f0f29),_0x277a9e['commands']['get'](_0x41d7f9)['refresh'](),_0x1ce558['push']({'forceDefaultExecution':!0x0}),_0x277a9e['execute'](_0x41d7f9,..._0x1ce558);const _0x4542ec=_0x1c93dd['filter'](_0x3e83d1=>'$graveyard'!=_0x3e83d1['root']['rootName']);_0x4542ec['length']>0x0&&_0x3b84e7['setSelection'](_0x4542ec);for(const _0x2e0197 of _0x1c93dd)_0x2e0197['detach']();});};}['_getCoordsForCells'](_0x59cd26){const _0x3815ef=this['editor']['plugins']['get']('TableUtils');let _0x36864c=Number['MAX_SAFE_INTEGER'],_0x3275da=Number['MIN_SAFE_INTEGER'],_0x299d01=Number['MAX_SAFE_INTEGER'],_0xcd6d65=Number['MIN_SAFE_INTEGER'];for(const _0x485912 of _0x59cd26){if('$graveyard'==_0x485912['root']['rootName'])continue;const {row:_0x1a0e58,column:_0x181a7b}=_0x3815ef['getCellLocation'](_0x485912),_0x52169b=_0x485912['hasAttribute']('rowspan')?_0x485912['getAttribute']('rowspan')-0x1:0x0,_0x24b4bd=_0x485912['hasAttribute']('colspan')?_0x485912['getAttribute']('colspan')-0x1:0x0;_0x36864c=_0x1a0e58<_0x36864c?_0x1a0e58:_0x36864c,_0x3275da=_0x1a0e58+_0x52169b>_0x3275da?_0x1a0e58+_0x52169b:_0x3275da,_0x299d01=_0x181a7b<_0x299d01?_0x181a7b:_0x299d01,_0xcd6d65=_0x181a7b+_0x24b4bd>_0xcd6d65?_0x181a7b+_0x24b4bd:_0xcd6d65;}return{'minRow':_0x36864c,'maxRow':_0x3275da,'minColumn':_0x299d01,'maxColumn':_0xcd6d65};}['_setupColumnsRowsFixing'](){const _0x3bc95d=this['editor'],_0x866192=_0x3bc95d['plugins']['get']('TrackChangesEditing'),_0x374685=_0x3bc95d['plugins']['get']('TableUtils');_0x3bc95d['model']['document']['on']('change:data',()=>{const _0x38bb6e=Array['from'](_0x3bc95d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x105e73,data:_0x6465d9}of _0x38bb6e){const {group:_0x1694be,id:_0x23bbbb,subType:_0x2c254d}=_0x866192['_splitMarkerName'](_0x105e73);if('suggestion'!=_0x1694be)continue;if(null!=_0x6465d9['oldRange'])continue;const _0x36b005=_0x866192['getSuggestion'](_0x23bbbb);this['_tablePostFixingSubtypes']['includes'](_0x2c254d)&&this['_tableSuggestions']['add'](_0x36b005);}},{'priority':'low'});const _0x16d053=(_0x436850,_0x30ada5)=>{let _0x50c4b5=!0x1;const _0x5e3616=_0x30ada5['createRangeOn'](_0x436850),_0x550936=_0x436850['findAncestor']('table'),_0x3732a5=_0x374685['getCellLocation'](_0x436850);for(const _0x40cd7b of this['_tableSuggestions']){const _0x2de285=_0x40cd7b['subType'],_0x187092=_0x2de285['startsWith']('tablePaste'),_0x3a800e=_0x2de285['substr'](_0x187092?0xa:0x5),_0x418c98=_0x3a800e['toLowerCase'](),_0x1e30f9=_0x418c98['substr'](0x0,0x3)+'span',_0x4ed798='min'+_0x3a800e,_0x7c6a0f='max'+_0x3a800e;if(!_0x40cd7b['isInContent'])continue;if(_0x550936!=_0x40cd7b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x40cd7b['isIntersectingWithRange'](_0x5e3616))continue;const _0x4d36fa=_0x436850['hasAttribute'](_0x1e30f9)?_0x436850['getAttribute'](_0x1e30f9)-0x1:0x0,_0x155e01=this['_getSuggestionCoords'](_0x40cd7b),_0x222d6a=_0x155e01[_0x4ed798],_0x37f95b=_0x155e01[_0x7c6a0f];_0x222d6a<=_0x3732a5[_0x418c98]&&_0x3732a5[_0x418c98]+_0x4d36fa<=_0x37f95b&&(_0x40cd7b['addRange'](_0x5e3616),_0x50c4b5=!0x0);}return _0x50c4b5;};_0x3bc95d['model']['document']['registerPostFixer'](_0x4234a6=>{let _0x39c7fa=!0x1;for(const _0x224b60 of _0x3bc95d['model']['document']['differ']['getChanges']())if('insert'==_0x224b60['type']){if('tableRow'==_0x224b60['name']){for(const _0xe81c7 of _0x224b60['position']['nodeAfter']['getChildren']())_0x39c7fa=_0x39c7fa||_0x16d053(_0xe81c7,_0x4234a6);}else'tableCell'==_0x224b60['name']&&(_0x39c7fa=_0x39c7fa||_0x16d053(_0x224b60['position']['nodeAfter'],_0x4234a6));}return _0x39c7fa;});}['_getSuggestionCoords'](_0x49786b){return this['_getCoordsForCells'](_0x49786b['getRanges']()['map'](_0xb2a57e=>_0xb2a57e['start']['nodeAfter']));}}function Re(_0x57e87f){return Array['from'](new Set(_0x57e87f)['values']());}class _t extends _0x240e00{static get['requires'](){return[vt];}['afterInit'](){const _0x2a7d98=this['editor'],_0x2e6f73=_0x2a7d98['model']['document']['selection'],_0x2dc4f7=_0x2a7d98['locale'];if(!_0x2a7d98['plugins']['has']('TableEditing'))return;const _0x3b5d8c=_0x2a7d98['plugins']['get']('TrackChangesEditing'),_0x25bd37=_0x2a7d98['plugins']['get']('TableUtils'),_0x98804f=_0x2a7d98['plugins']['get'](vt);_0x98804f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3b5d8c['enableCommand']('mergeTableCells',()=>{const _0x3e21b4=_0x25bd37['getSelectionAffectedTableCells'](_0x2a7d98['model']['document']['selection']);_0x2a7d98['model']['change'](()=>{_0x3b5d8c['markMultiRangeBlockFormat'](_0x3e21b4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2a7d98['commands']['get']('mergeTableCells')['on']('execute',(_0x1323e5,_0x114bc0)=>{_0x2a7d98['commands']['get']('trackChanges')['value']&&(_0x114bc0['length']>0x0&&_0x114bc0[_0x114bc0['length']-0x1]&&_0x114bc0[_0x114bc0['length']-0x1]['forceDefaultExecution']||_0x3b5d8c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1323e5['stop']());},{'priority':'highest'});for(const _0x16c3d6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4241f9=_0x2a7d98['commands']['get'](_0x16c3d6);_0x3b5d8c['enableCommand'](_0x16c3d6,()=>{const _0x2bc2c4=_0x2a7d98['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4515b3=>_0x4515b3['is']('element','tableCell')),_0x164e36=_0x4241f9['value'];_0x2a7d98['model']['change'](()=>{_0x3b5d8c['markMultiRangeBlockFormat']([_0x2bc2c4,_0x164e36],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x49b5f8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xba21af=_0x2a7d98['commands']['get'](_0x49b5f8);_0x3b5d8c['enableCommand'](_0x49b5f8,()=>{const _0x1cdd22=_0x25bd37['getSelectionAffectedTableCells'](_0x2a7d98['model']['document']['selection'])[0x0],_0x165810=_0x1cdd22['findAncestor']('table'),{column:_0x275014,row:_0x1b835d}=_0x25bd37['getCellLocation'](_0x1cdd22);let _0x82a1ff=[];if('horizontally'==_0xba21af['direction']){const _0x1e1726=_0x25bd37['createTableWalker'](_0x165810,{'startRow':_0x1b835d,'endRow':_0x1b835d,'includeAllSlots':!0x0});_0x82a1ff=Array['from'](_0x1e1726)['map'](_0x3c079f=>_0x3c079f['cell']);}else{const _0x4b7456=_0x25bd37['createTableWalker'](_0x165810,{'column':_0x275014,'includeAllSlots':!0x0});_0x82a1ff=Array['from'](_0x4b7456)['map'](_0x4f4940=>_0x4f4940['cell']);}_0x2a7d98['model']['change'](_0x39b517=>{_0x3b5d8c['markBlockFormat'](_0x39b517['createRangeOn'](_0x1cdd22),{'commandName':_0x49b5f8,'commandParams':[]},_0x82a1ff,_0x49b5f8);});});}_0x3b5d8c['descriptionFactory']['registerDescriptionCallback'](_0x321bd4=>{if('formatBlock'!=_0x321bd4['type']&&'formatInline'!=_0x321bd4['type'])return;const {data:_0x44ed15}=_0x321bd4;return _0x44ed15&&'mergeTableCells'==_0x44ed15['commandName']?{'type':'format','content':o(_0x2dc4f7,'*Merge\x20cells*')}:void 0x0;}),_0x3b5d8c['descriptionFactory']['registerDescriptionCallback'](_0x5f4110=>{if('formatBlock'!=_0x5f4110['type']&&'formatInline'!=_0x5f4110['type'])return;const {data:_0x11ff79}=_0x5f4110;return _0x11ff79?'splitTableCellVertically'==_0x11ff79['commandName']?{'type':'format','content':o(_0x2dc4f7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x11ff79['commandName']?{'type':'format','content':o(_0x2dc4f7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x238d64=_0x98804f['_acceptFormatSuggestionCallbackFactory']();for(const _0x1398b0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3b5d8c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1398b0,'accept',_0x238d64);for(const _0x4b866c of['splitTableCellVertically','splitTableCellHorizontally'])_0x3b5d8c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b866c,'accept',_0x238d64);_0x3b5d8c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x45b39e=>{_0x2a7d98['model']['change'](_0x4312bb=>{const _0x4a7160=Array['from'](_0x2e6f73['getRanges']())['map'](_0x1db8fc=>_0x23d2d0['fromRange'](_0x1db8fc));_0x4312bb['setSelection'](_0x45b39e),_0x2a7d98['commands']['get']('mergeTableCells')['refresh'](),_0x2a7d98['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x32d2bc=_0x4a7160['filter'](_0x493678=>'$graveyard'!=_0x493678['root']['rootName']);_0x32d2bc['length']>0x0&&_0x4312bb['setSelection'](_0x32d2bc);for(const _0x54ea76 of _0x4a7160)_0x54ea76['detach']();});});for(const _0x1e3c65 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5140b4=_0x2a7d98['commands']['get'](_0x1e3c65);_0x5140b4['on']('set:isEnabled',(_0x1d1cad,_0x4d1e3b,_0x149bc6)=>{if(_0x149bc6){const _0x11c33b=_0x2a7d98['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4d2eef=>_0x4d2eef['is']('element','tableCell'));this['_areMergableCells'](_0x5140b4['value'],_0x11c33b)||(_0x1d1cad['return']=!0x1,_0x1d1cad['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x568207=this['editor']['commands']['get']('mergeTableCells'),_0x4694e8=this['editor']['plugins']['get']('TableUtils');if(!_0x568207['isEnabled'])return!0x1;const _0x37f71e=_0x4694e8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x105130 of _0x37f71e)for(const _0x1eaf78 of _0x37f71e)if(_0x105130!=_0x1eaf78&&!this['_areMergableCells'](_0x105130,_0x1eaf78))return!0x1;return!0x0;}['_areMergableCells'](_0x465ee9,_0x2dff49){const _0x25d137=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20dada=this['editor']['model']['createRangeOn'](_0x465ee9),_0xcf22c5=this['editor']['model']['createRangeOn'](_0x2dff49),_0x4ea493=new Set(),_0x5d1e6b=new Set();for(const _0x2f0df0 of _0x25d137['getSuggestions']())if(('insertion'==_0x2f0df0['type']||'deletion'==_0x2f0df0['type']||'mergeTableCells'==_0x2f0df0['subType'])&&_0x2f0df0['isInContent']){for(const _0x3ece54 of _0x2f0df0['getRanges']())_0x3ece54['containsRange'](_0x20dada,!0x0)&&_0x4ea493['add'](_0x2f0df0['type']+':'+_0x2f0df0['author']['id']),_0x3ece54['containsRange'](_0xcf22c5,!0x0)&&_0x5d1e6b['add'](_0x2f0df0['type']+':'+_0x2f0df0['author']['id']);}if(_0x4ea493['size']!=_0x5d1e6b['size'])return!0x1;for(const _0x270727 of _0x4ea493)if(!_0x5d1e6b['has'](_0x270727))return!0x1;return!0x0;}}class Ct extends _0x240e00{static get['requires'](){return[vt];}['afterInit'](){const _0x470e27=this['editor'];if(!_0x470e27['plugins']['has']('TableEditing'))return;const _0x4768a8=_0x470e27['locale'],_0x27bbef=_0x470e27['plugins']['get']('TrackChangesEditing');_0x27bbef['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x27bbef['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x27bbef['registerBlockAttribute']('headingRows'),_0x27bbef['registerBlockAttribute']('headingColumns'),_0x27bbef['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4768a8,'FORMAT_HEADER_ROW')),_0x27bbef['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4768a8,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4382c2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30631e=this['editor']['plugins']['get']('TableUtils'),_0x3efe48=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x35038c({showActiveMarker:_0x279e35=!0x0,setDataAttribute:_0x1c1850=!0x0}={}){return(_0x533566,_0x26512a,_0x3c0b9c)=>{const {type:_0x1912b0,id:_0x27875e}=_0x4382c2['_splitMarkerName'](_0x26512a['markerName']),_0x36178a=_0x4382c2['getSuggestion'](_0x27875e),_0xc8f154=_0x36178a['data'];if('formatBlock'!=_0x36178a['type']||!_0xc8f154||'setTableColumnHeader'!=_0xc8f154['commandName'])return;if(_0x26512a['item'])return void _0x533566['stop']();if(!_0x3c0b9c['consumable']['consume'](_0x26512a['markerRange'],_0x533566['name']))return;const _0x2e0bf9=_0x26512a['markerRange']['start']['nodeAfter'],_0x39379c=_0x26512a['markerRange']['end']['nodeBefore'],_0x4f4d43=_0x2e0bf9['parent']['parent'],{column:_0x538654}=_0x30631e['getCellLocation'](_0x2e0bf9),{column:_0x44beca}=_0x30631e['getCellLocation'](_0x39379c);for(let _0x640b5b=_0x538654;_0x640b5b<=_0x44beca;_0x640b5b++){const _0x437f77=_0x30631e['createTableWalker'](_0x4f4d43,{'column':_0x640b5b,'includeAllSlots':!0x1});for(const _0x2a24e1 of _0x437f77){const _0x233eba=_0x2a24e1['cell'],_0x2d6773=_0x3c0b9c['mapper']['toViewElement'](_0x233eba);_0x3c0b9c['writer']['addClass']('ck-suggestion-marker-'+_0x1912b0,_0x2d6773),_0x1c1850&&_0x3c0b9c['writer']['setAttribute']('data-suggestion',_0x27875e,_0x2d6773),_0x3c0b9c['mapper']['bindElementToMarker'](_0x2d6773,_0x26512a['markerName']),_0x279e35&&(_0x4382c2['activeMarkers']['includes'](_0x26512a['markerName'])?_0x3c0b9c['writer']['addClass']('ck-suggestion-marker--active',_0x2d6773):_0x3c0b9c['writer']['removeClass']('ck-suggestion-marker--active',_0x2d6773));}}};}_0x4382c2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3efe48),_0x4382c2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3efe48),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x35038c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x133ce2,_0x22a0b9,_0x4ef736)=>{_0x4ef736['options']['showSuggestionHighlights']&&_0x35038c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x133ce2,_0x22a0b9,_0x4ef736);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x30cc8c,_0x418636,_0xfd28fa)=>{const {type:_0xeb7650,id:_0x161c8e}=_0x4382c2['_splitMarkerName'](_0x418636['markerName']),_0x307b22=_0x4382c2['getSuggestion'](_0x161c8e),_0x1ef809=_0x307b22['data'];if('formatBlock'!=_0x307b22['type']||!_0x1ef809||'setTableColumnHeader'!=_0x1ef809['commandName'])return;const _0x57b8e9=_0xfd28fa['mapper']['markerNameToElements'](_0x418636['markerName']);if(_0x57b8e9){for(const _0x28de6b of _0x57b8e9)_0xfd28fa['writer']['removeClass']('ck-suggestion-marker-'+_0xeb7650,_0x28de6b),_0xfd28fa['writer']['removeClass']('ck-suggestion-marker--active',_0x28de6b),_0xfd28fa['writer']['removeAttribute']('data-suggestion',_0x28de6b),_0xfd28fa['mapper']['unbindElementFromMarkerName'](_0x28de6b,_0x418636['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8992a4=this['editor'],_0x17c24d=_0x8992a4['locale'];function _0xd7c105(_0xdd6157){return{'type':'format','content':o(_0x17c24d,'*Format:*\x20%0',_0xdd6157)};}_0x8992a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50e470=>{if('formatBlock'!=_0x50e470['type'])return;const {data:_0x1e2d50}=_0x50e470;if(_0x1e2d50){if('setTableRowHeader'==_0x1e2d50['commandName']){const _0x2f14fb=_0x1e2d50['commandParams'][0x0]['forceValue'];return _0xd7c105(o(_0x17c24d,_0x2f14fb?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1e2d50['commandName']){const _0x4757e8=_0x1e2d50['commandParams'][0x0]['forceValue'];return _0xd7c105(o(_0x17c24d,_0x4757e8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x30fd76=>[_0x30fd76,null]));class Nt extends _0x240e00{static get['requires'](){return[vt];}['afterInit'](){const _0x362532=this['editor'];if(!_0x362532['plugins']['has']('TableClipboard'))return;const _0x4351b6=_0x362532['plugins']['get']('TrackChangesEditing'),_0x1f3ac0=_0x362532['plugins']['get']('TableUtils'),_0x1e70d8=_0x362532['plugins']['get'](vt),_0x55f0af=_0x362532['plugins']['get']('TableClipboard');_0x1e70d8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x362532['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x362532['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xe49a53=null;_0x362532['model']['on']('insertContent',(_0xaf1683,_0x4eabe0)=>{const [_0x3cbe15,_0x430432]=_0x4eabe0,_0x130eab=_0x4eabe0[_0x4eabe0['length']-0x1];_0x130eab&&_0x130eab['forceDefaultExecution']||_0x4351b6['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x414ceb,_0x2bb0b7,_0x1a3bda,_0x5c47ce,_0x2b7e5d){if(_0x2bb0b7&&!_0x2bb0b7['is']('documentSelection'))return!0x1;const _0x59d6e5=_0x2b7e5d['getTableIfOnlyTableInContent'](_0x414ceb,_0x1a3bda);if(!_0x59d6e5||!Ae(_0x59d6e5,void 0x0,_0x5c47ce))return!0x1;const _0x1a5eba=_0x5c47ce['getSelectionAffectedTableCells'](_0x1a3bda['document']['selection']);if(!_0x1a5eba['length'])return!0x1;const _0x1faf82=_0x1a5eba[0x0]['findAncestor']('table'),_0x4fe337=_0x5c47ce['getRowIndexes'](_0x1a5eba),_0x2c2a73=_0x5c47ce['getColumnIndexes'](_0x1a5eba),_0x498140={'startRow':_0x4fe337['first'],'endRow':_0x4fe337['last'],'startColumn':_0x2c2a73['first'],'endColumn':_0x2c2a73['last']};return 0x1==_0x1a5eba['length']&&(_0x498140['endRow']+=_0x5c47ce['getRows'](_0x59d6e5)-0x1,_0x498140['endColumn']+=_0x5c47ce['getColumns'](_0x59d6e5)-0x1),Ae(_0x1faf82,_0x498140,_0x5c47ce);}(_0x3cbe15,_0x430432,_0x362532['model'],_0x1f3ac0,_0x55f0af)&&(_0xaf1683['stop'](),_0xe49a53={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x362532['model']['change'](()=>{_0x362532['model']['insertContent'](_0x4eabe0[0x0],_0x4eabe0[0x1],_0x4eabe0[0x2],{'forceDefaultExecution':!0x0});const _0x2c8285=_0x3aa221(),{rowInsertionRanges:_0x498e5e,columnInsertionRanges:_0x4a5de2,insertionRanges:_0x354f9c,deletionRanges:_0x77bbd6,cells:_0x11c1ff}=_0xe49a53;_0x498e5e['length']&&_0x4351b6['markMultiRangeInsertion'](_0x498e5e,'tablePasteRow',{'tablePasteChainId':_0x2c8285}),_0x4a5de2['length']&&_0x4351b6['markMultiRangeInsertion'](_0x4a5de2,'tablePasteColumn',{'tablePasteChainId':_0x2c8285}),_0x354f9c['length']&&(_0x4351b6['markMultiRangeInsertion'](_0x354f9c,'tablePaste',{'tablePasteChainId':_0x2c8285,'skipNestingCheck':!0x0}),_0x354f9c['forEach'](_0x7b3bf5=>_0x7b3bf5['detach']?.())),_0x77bbd6['length']&&(_0x4351b6['markMultiRangeDeletion'](_0x77bbd6,'tablePaste',{'tablePasteChainId':_0x2c8285,'skipNestingCheck':!0x0}),_0x77bbd6['forEach'](_0x151262=>_0x151262['detach']?.()));const _0x1b2d83=_0x4351b6['markMultiRangeBlockFormat'](_0x11c1ff['map'](({element:_0x472f63})=>_0x472f63),{'formatGroupId':_0x3aa221()},[],'tablePasteCell',{'tablePasteChainId':_0x2c8285});if(_0x1b2d83){const _0x4964e0=_0x1b2d83['getMarkers'](),_0x1a0236=[];for(const {element:_0x159707,attributes:_0x15b054}of _0x11c1ff){if(!_0x15b054)continue;const _0x2b0938=_0x362532['model']['createRangeOn'](_0x159707),_0x117bda=_0x4964e0['find'](_0xe2ae3e=>_0xe2ae3e['getRange']()['isEqual'](_0x2b0938));_0x117bda&&_0x1a0236['push']([_0x117bda['name'],_0x15b054]);}_0x1a0236['length']&&_0x1b2d83['setAttribute']('markerAttributes',Object['fromEntries'](_0x1a0236));}_0xe49a53=null;}));},{'priority':_0x4b3b10['high']+0xa}),_0x362532['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x14291d,_0x308f8c)=>{const [_0x9e9087,_0x3675c2,,_0x16d8f7]=_0x308f8c;if(!_0xe49a53)return;_0x14291d['stop']();const _0x4530eb=_0x9e9087['cell'],_0x521379=_0x3675c2,_0x248e99=je(_0x4530eb),_0x19803=je(_0x521379);_0x14291d['return']=_0x4530eb;let _0x3f7619=null,_0x401963=null;if(_0x19803||_0x248e99){if(_0x248e99&&!_0x19803){_0x16d8f7['remove'](_0x4530eb['getChild'](0x0));for(const _0x190fb4 of Array['from'](_0x521379['getChildren']()))_0x16d8f7['insert'](_0x190fb4,_0x4530eb,'end');const _0x55c525=_0xe49a53['rowInsertionIndexes']['includes'](_0x9e9087['row']),_0x5c60b3=_0xe49a53['columnInsertionIndexes']['includes'](_0x9e9087['column']);_0x55c525||_0x5c60b3||(_0x3f7619=_0x23d2d0['fromRange'](_0x16d8f7['createRangeIn'](_0x4530eb)));}else _0x19803&&!_0x248e99&&(_0x401963=_0x16d8f7['createRangeIn'](_0x4530eb));}else{const _0x20ddaa=_0x16d8f7['createElement']('tableCellSuggestion'),_0x43f592=_0x16d8f7['createElement']('tableCellSuggestion');_0x16d8f7['wrap'](_0x16d8f7['createRangeIn'](_0x4530eb),_0x43f592),_0x16d8f7['insert'](_0x20ddaa,_0x4530eb,0x0);for(const _0xcaa8ef of Array['from'](_0x521379['getChildren']()))_0x16d8f7['insert'](_0xcaa8ef,_0x20ddaa,'end');_0x3f7619=_0x23d2d0['fromRange'](_0x16d8f7['createRangeOn'](_0x20ddaa)),_0x401963=_0x23d2d0['fromRange'](_0x16d8f7['createRangeOn'](_0x43f592));}const _0x2af0c2=Array['from'](_0x521379['getAttributes']())['filter'](([_0x2bb14f])=>we['includes'](_0x2bb14f));_0xe49a53['cells']['push']({'element':_0x4530eb,'attributes':_0x2af0c2['length']?Object['fromEntries'](_0x2af0c2):null}),_0x3f7619&&_0xe49a53['insertionRanges']['push'](_0x3f7619),_0x401963&&_0xe49a53['deletionRanges']['push'](_0x401963);},{'priority':'high'}),_0x1f3ac0['on']('insertColumns',(_0x60cb8d,_0x5bab80)=>{const [_0x243bf7,_0x1dd1c1={}]=_0x5bab80;if(!_0xe49a53)return;const _0x1192e6=_0x1dd1c1['at']||0x0,_0x299451=_0x1dd1c1['columns']||0x1;_0xe49a53['columnInsertionIndexes']=new Array(_0x299451)['fill'](_0x1192e6)['map']((_0x463cf0,_0x4da0b5)=>_0x463cf0+_0x4da0b5);for(const {cell:_0x4b5522}of _0x1f3ac0['createTableWalker'](_0x243bf7,{'startColumn':_0x1192e6,'endColumn':_0x1192e6+_0x299451-0x1}))_0xe49a53['columnInsertionRanges']['push'](_0x362532['model']['createRangeOn'](_0x4b5522));},{'priority':'low'}),_0x1f3ac0['on']('insertRows',(_0x38e867,_0x3f47a4)=>{const [_0x2c682a,_0x454a71={}]=_0x3f47a4;if(!_0xe49a53)return;const _0x3890be=_0x454a71['at']||0x0,_0x20ed16=_0x454a71['rows']||0x1;_0xe49a53['rowInsertionIndexes']=new Array(_0x20ed16)['fill'](_0x3890be)['map']((_0x5c791e,_0x5d4b7f)=>_0x5c791e+_0x5d4b7f);for(const {cell:_0x222f8e}of _0x1f3ac0['createTableWalker'](_0x2c682a,{'startRow':_0x3890be,'endRow':_0x3890be+_0x20ed16-0x1}))_0xe49a53['rowInsertionRanges']['push'](_0x362532['model']['createRangeOn'](_0x222f8e));},{'priority':'low'}),_0x4351b6['descriptionFactory']['registerDescriptionCallback'](_0x1c9ad2=>{if(_0x1c9ad2['subType']&&_0x1c9ad2['subType']['startsWith']('tablePaste'))return _0x1c9ad2['previous']?{}:{'type':'insertion','content':o(_0x362532['locale'],'*Replace\x20table\x20cells*')};});const _0x413522=()=>!0x1;for(const _0x2821bb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4351b6['_suggestionFactory']['registerCustomCallback']('insertion',_0x2821bb,'join',_0x413522),_0x4351b6['_suggestionFactory']['registerCustomCallback']('deletion',_0x2821bb,'join',_0x413522),_0x4351b6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2821bb,'join',_0x413522);_0x4351b6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x413522),_0x4351b6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x17897a,_0x3b6dd7,_0x518e5e)=>{const _0x2d718b=_0x17897a['map'](_0x152126=>_0x152126['getContainedElement']())['filter'](_0x55618a=>_0x55618a),_0x40712c=new Map(_0x2d718b['map'](_0x2443e8=>[_0x2443e8,null]));if(_0xe49a53){for(const {element:_0x1766b5,attributes:_0x3068a1}of _0xe49a53['cells'])_0x3068a1&&_0x40712c['set'](_0x1766b5,_0x3068a1);}else{if(_0x518e5e&&_0x518e5e['markerAttributes'])for(const [_0x2bc069,_0x1a73ba]of Object['entries'](_0x518e5e['markerAttributes'])){const _0xeb6ddb=_0x362532['model']['markers']['get'](_0x2bc069),_0x50094f=_0xeb6ddb?_0xeb6ddb['getRange']()['getContainedElement']():null;_0x50094f&&_0x40712c['set'](_0x50094f,_0x1a73ba);}}_0x362532['model']['change'](_0x226fd8=>{for(const [_0x6055f5,_0x360c23]of _0x40712c)_0x226fd8['setAttributes']({...ve,..._0x360c23},_0x6055f5);});});const _0x3dad8d=(_0x5c5f15,_0x54d216)=>{_0x4351b6['_suggestionFactory']['registerCustomCallback'](_0x5c5f15,'tablePaste',_0x54d216,(_0x3b2a4d,_0x510b07,_0x5ac745)=>{_0x362532['model']['change'](_0x3c251d=>{const _0x4072c9=[];for(const _0x2dc8da of _0x3b2a4d){const _0x388cc7=_0x2dc8da['start']['nodeAfter'];_0x388cc7['is']('element','tableCellSuggestion')&&_0x4072c9['push'](_0x388cc7);}_0x4351b6['_suggestionFactory']['getSuggestionCallback'](_0x5c5f15,null,_0x54d216)(_0x3b2a4d,_0x510b07,_0x5ac745);for(const _0x2f38f7 of _0x4072c9)'$graveyard'!=_0x2f38f7['root']['rootName']&&_0x3c251d['unwrap'](_0x2f38f7);});});};_0x3dad8d('insertion','accept'),_0x3dad8d('insertion','discard'),_0x3dad8d('deletion','accept'),_0x3dad8d('deletion','discard'),_0x4351b6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3bb124=>{const _0x5d72ae=_0x3bb124['map'](_0x426323=>_0x426323['getContainedElement']()),_0x5663de=_0x5d72ae[0x0]['findAncestor']('table'),{minRow:_0x1c5e70,maxRow:_0x4f44c5}=_0x1e70d8['_getCoordsForCells'](_0x5d72ae);_0x1f3ac0['removeRows'](_0x5663de,{'at':_0x1c5e70,'rows':_0x4f44c5-_0x1c5e70+0x1});}),_0x4351b6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2a208a=>{const _0x4cf9ba=_0x2a208a['map'](_0x5c40af=>_0x5c40af['getContainedElement']()),_0x1e87ce=_0x4cf9ba[0x0]['findAncestor']('table'),{minColumn:_0x1045d5,maxColumn:_0x2b14af}=_0x1e70d8['_getCoordsForCells'](_0x4cf9ba);_0x1f3ac0['removeColumns'](_0x1e87ce,{'at':_0x1045d5,'columns':_0x2b14af-_0x1045d5+0x1});});const _0x1f78af=(_0x37f06e,_0xd83b3b)=>{if(!_0xd83b3b['subType']||!_0xd83b3b['subType']['startsWith']('tablePaste'))return;const _0x5baa6c=_0xd83b3b['attributes']['tablePasteChainId'],_0x55f99d=_0x4351b6['getSuggestions']()['filter'](_0x9be408=>_0x9be408['isInContent']&&_0x9be408['attributes']&&_0x9be408['attributes']['tablePasteChainId']==_0x5baa6c);_0x55f99d['length']&&_0xd83b3b['getAllAdjacentSuggestions']()['length']!=_0x55f99d['length']&&_0x55f99d['reduce']((_0x4ce928,_0x32b6b7)=>(_0x4ce928['next']=_0x32b6b7,_0x32b6b7['previous']=_0x4ce928,_0x32b6b7));};function _0x8ff9e2(_0x5e8bae,_0x2371da=!0x0){const {id:_0x10bd5c,authorId:_0x4da27e}=_0x4351b6['_splitMarkerName'](_0x5e8bae['markerName']),_0x1a9ba4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x10ea90=_0x4351b6['activeMarkers']['includes'](_0x5e8bae['markerName']);return _0x10ea90&&_0x1a9ba4['push']('ck-suggestion-marker--active'),{'classes':_0x1a9ba4,'attributes':{'data-suggestion':_0x10bd5c,'data-author-id':_0x4da27e},'priority':_0x10ea90&&_0x2371da?0xbc2:0xbb8};}_0x4351b6['on']('suggestionLoaded',_0x1f78af,{'priority':'high'}),_0x4351b6['on']('suggestionUnloaded',_0x1f78af,{'priority':'high'}),_0x362532['model']['document']['registerPostFixer'](()=>{let _0x876b7b=!0x1;const _0x40a552=Array['from'](_0x362532['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x564791,data:_0x284f4c}of _0x40a552){const {group:_0x378e04,type:_0x3af594,id:_0x142a5f}=_0x4351b6['_splitMarkerName'](_0x564791);if('suggestion'!=_0x378e04||'deletion'!=_0x3af594||_0x284f4c['oldRange'])continue;if(!_0x4351b6['hasSuggestion'](_0x142a5f))continue;const _0x4f84f8=_0x4351b6['getSuggestion'](_0x142a5f)['getRanges'](),_0xa2c130=_0x362532['plugins']['get']('Users')['me'];for(const _0x40feee of _0x4351b6['getSuggestions']()){if(!_0x40feee['isInContent']||_0x40feee['author']!=_0xa2c130)continue;if('formatBlock'!=_0x40feee['type']||'tablePasteCell'!=_0x40feee['subType'])continue;if(_0x40feee['getRanges']()['every'](_0x2aa4bd=>_0x4f84f8['some'](_0x5f4e02=>_0x5f4e02['containsRange'](_0x2aa4bd,!0x0)))){for(const _0x418f11 of _0x40feee['getAllAdjacentSuggestions']())_0x418f11['isInContent']&&(_0x418f11['discard'](),_0x876b7b=!0x0);}}}return _0x876b7b;}),_0x362532['model']['document']['registerPostFixer'](_0x394506=>{const _0x4fd18d=_0x362532['commands']['get']('redo');if(!_0x4fd18d||!_0x4fd18d['_createdBatches']['has'](_0x394506['batch']))return!0x1;let _0x50babe=!0x1;const _0x35bb39=_0x362532['plugins']['get']('Users')['me'],_0x4dbd6b=_0x362532['model']['document']['differ']['getChanges'](),_0x2a4993=Array['from'](_0x362532['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1f9642,data:_0xb66e83})=>{const {group:_0x3c03c4,subType:_0x12a8c2,authorId:_0xe09ec5}=_0x4351b6['_splitMarkerName'](_0x1f9642);return'suggestion'==_0x3c03c4&&'tablePaste'==_0x12a8c2&&_0xe09ec5==_0x35bb39['id']&&!_0xb66e83['oldRange'];});for(const _0xfbf995 of _0x4dbd6b){if('insert'!=_0xfbf995['type']||'tableCellSuggestion'!=_0xfbf995['name']||0x1!=_0xfbf995['length'])continue;const _0x3bf308=_0x394506['createRange'](_0xfbf995['position'],_0xfbf995['position']['getShiftedBy'](0x1));if(!_0x2a4993['find'](({data:_0x43a6e2})=>_0x43a6e2['newRange']['isEqual'](_0x3bf308))){for(const {name:_0x748e5a,data:_0x3a0b8d}of _0x2a4993)if(_0x3bf308['containsRange'](_0x3a0b8d['newRange'])){_0x394506['updateMarker'](_0x748e5a,{'range':_0x3bf308}),_0x50babe=!0x0;break;}}}return _0x50babe;}),_0x362532['model']['document']['registerPostFixer'](_0x1a4166=>{let _0x209db6=!0x1;const _0x32e0c4=_0x362532['plugins']['get']('Users')['me'],_0x224168=_0x4351b6['getSuggestions']()['filter'](_0x342dd7=>_0x342dd7['isInContent']&&_0x342dd7['author']==_0x32e0c4),_0x53484e=new Set(),_0x434230=new Set();for(const _0x1904ba of _0x224168)if('tablePaste'==_0x1904ba['subType'])for(const _0x52c96c of _0x1904ba['getMarkers']()){const _0x17ea48=_0x52c96c['getRange']()['getContainedElement']();if(_0x17ea48){if(_0x17ea48['is']('element','tableCellSuggestion')&&je(_0x17ea48)){_0x1904ba['removeMarker'](_0x52c96c['name']),_0x53484e['add'](_0x17ea48),_0x209db6=!0x0;const _0x1a046f=_0x17ea48['nextSibling'],_0x15d6f6=_0x17ea48['previousSibling'],_0x369d6e=_0x1a046f&&_0x1a046f['is']('element','tableCellSuggestion'),_0x233f2e=_0x15d6f6&&_0x15d6f6['is']('element','tableCellSuggestion');_0x369d6e&&!_0x53484e['has'](_0x1a046f)&&_0x434230['add'](_0x1a046f),_0x233f2e&&!_0x53484e['has'](_0x15d6f6)&&_0x434230['add'](_0x15d6f6);}else _0x17ea48['is']('element','paragraph')&&_0x17ea48['isEmpty']&&(_0x1904ba['removeMarker'](_0x52c96c['name']),_0x209db6=!0x0);}}else{if('tablePasteCell'==_0x1904ba['subType']){if(!_0x1904ba['attributes']||!_0x1904ba['attributes']['tablePasteChainId'])continue;const _0x5265ef=_0x1904ba['attributes']['markerAttributes'];if(_0x5265ef&&Object['keys'](_0x5265ef)['length'])continue;const _0x26e9b1=_0x1904ba['attributes']['tablePasteChainId'];let _0x368d1b=!0x0,_0x2a60d2=!0x0;for(const _0x427af8 of _0x224168)if(_0x427af8['subType']&&_0x427af8['subType']['startsWith']('tablePaste')){if(!_0x427af8['attributes']['tablePasteChainId']){_0x2a60d2=!0x1;break;}if(_0x427af8['id']!=_0x1904ba['id']&&_0x427af8['attributes']['tablePasteChainId']==_0x26e9b1){_0x368d1b=!0x1;break;}}_0x2a60d2&&_0x368d1b&&(_0x1904ba['removeMarkers'](),_0x209db6=!0x0);}}for(const _0x1b4227 of _0x53484e)_0x1a4166['remove'](_0x1b4227);for(const _0x6a592f of _0x434230)_0x1a4166['unwrap'](_0x6a592f);return _0x209db6;}),_0x362532['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5c0674=>_0x8ff9e2(_0x5c0674),'converterPriority':'high'}),_0x362532['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x30ea7,_0x480c15)=>_0x480c15['options']['showSuggestionHighlights']?_0x8ff9e2(_0x30ea7,!0x1):null,'converterPriority':'high'});const _0x66d8ee=_0x362532['editing']['view'];this['listenTo'](_0x66d8ee['document'],'clipboardOutput',(_0x155d4f,_0x5b4afa)=>{const _0x579752=[];for(const _0x5bd685 of _0x66d8ee['createRangeIn'](_0x5b4afa['content'])['getItems']())_0x5bd685['is']('element','suggestion-td')&&_0x579752['push'](_0x5bd685);_0x66d8ee['change'](_0x2ece93=>{for(const _0x15fa32 of _0x579752)_0x2ece93['move'](_0x2ece93['createRangeIn'](_0x15fa32),_0x2ece93['createPositionBefore'](_0x15fa32)),_0x2ece93['remove'](_0x15fa32);});});}}function je(_0x375698){if(_0x375698['isEmpty'])return!0x0;const _0x4811ca=_0x375698['getChild'](0x0);return _0x4811ca['is']('element','paragraph')&&_0x4811ca['isEmpty'];}function Ae(_0x3f9e9e,_0x458ce2={},_0x4384c5){for(const {isAnchor:_0x2eced1,cellHeight:_0x5e3197,cellWidth:_0x317bda}of _0x4384c5['createTableWalker'](_0x3f9e9e,{'includeAllSlots':!0x0,..._0x458ce2}))if(!_0x2eced1||0x1!=_0x5e3197||0x1!=_0x317bda)return!0x1;return!0x0;}class Dt extends _0x240e00{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x223ffc=this['editor']['plugins']['get']('TrackChangesEditing');_0x223ffc['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x223ffc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x223ffc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x223ffc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x223ffc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x223ffc['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x163f29,_0x2ecc2b){const _0x323221=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f768f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x554dc5=_0x2ecc2b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x36d403=_0x2f768f['getColumnGroupElement'](_0x554dc5);let _0x1e9272=_0x36d403?_0x2f768f['getTableColumnsWidths'](_0x36d403):null,_0x192915=_0x554dc5['getAttribute']('tableWidth')||null;const _0x525d94=_0x2ecc2b['tableWidth']||_0x192915,_0x3827c5=_0x2ecc2b['columnWidths']||_0x1e9272,_0x50f1e5=this['editor']['plugins']['get']('Users')['me'];for(const _0x27e105 of _0x323221['getSuggestions']()){const _0xd2d6a8=_0x27e105['getContainedElement']();if('resizeTable'===_0x27e105['subType']&&_0xd2d6a8===_0x554dc5){_0x27e105['author']!==_0x50f1e5&&_0x27e105['discard']();const _0x2c0b9f=_0x27e105['data']['commandParams'];_0x192915=_0x2c0b9f[0x0]['tableWidth'],_0x1e9272=_0x2c0b9f[0x0]['columnWidths'];break;}}_0x163f29({'table':_0x554dc5,'tableWidth':_0x525d94,'columnWidths':_0x3827c5}),_0x323221['markBlockFormat'](_0x554dc5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x192915,'columnWidths':_0x1e9272}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2642dc){if('formatBlock'!=_0x2642dc['type']&&'formatInline'!=_0x2642dc['type'])return;const {data:_0x2cedcc}=_0x2642dc;if(_0x2cedcc&&'resizeTable'===_0x2cedcc['formatGroupId']){const _0x4fe46b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4fe46b)};}}}class Mt extends _0x240e00{['afterInit'](){const _0x515f41=this['editor'];_0x515f41['plugins']['has']('Template')&&_0x515f41['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x240e00{['afterInit'](){const _0x3d6414=this['editor'];if(!_0x3d6414['commands']['get']('insertTableOfContents'))return;_0x3d6414['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x15618e=_0x3d6414['plugins']['get']('TrackChangesEditing'),_0x3ccadc=_0x3d6414['locale'];_0x15618e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x382d8f=>o(_0x3ccadc,'ELEMENT_TABLE_OF_CONTENTS',_0x382d8f));}}class Bt extends _0x240e00{['afterInit'](){const _0x414a02=this['editor'];if(!_0x414a02['plugins']['has']('Title'))return;const _0x50f05a=_0x414a02['plugins']['get']('TrackChangesEditing');_0x50f05a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x414a02['locale'],'ELEMENT_TITLE')),_0x414a02['model']['document']['registerPostFixer'](_0x4a5d27=>{let _0x3c370a=!0x1;const _0x1d8387=Array['from'](_0x414a02['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16a466,data:_0x3dfee5}of _0x1d8387){const {group:_0x2563d3}=_0x50f05a['_splitMarkerName'](_0x16a466);if('suggestion'!==_0x2563d3||!_0x3dfee5['newRange'])continue;const _0x4dbc05=_0x3dfee5['newRange'],_0xd9ce6=_0x4dbc05['end']['nodeBefore'];if(!_0xd9ce6||!_0xd9ce6['is']('element','title-content'))continue;if(!_0x4dbc05['start']['isTouching'](_0x4dbc05['end']))continue;const _0x49746a=_0x414a02['model']['schema']['getNearestSelectionRange'](_0x4dbc05['end'],'forward');if(_0x49746a&&_0x49746a['isCollapsed']){const _0x4e41f1=_0x4a5d27['createRange'](_0x4dbc05['start'],_0x49746a['start']);_0x4e41f1['isEqual'](_0x4dbc05)||(_0x4a5d27['updateMarker'](_0x16a466,{'range':_0x4e41f1}),_0x3c370a=!0x0);}_0x3c370a||(_0x4a5d27['removeMarker'](_0x16a466),_0x3c370a=!0x0);}return _0x3c370a;});}}class Ot extends _0x240e00{['afterInit'](){const _0x936456=this['editor'],_0x2bea68=_0x936456['plugins']['get']('TrackChangesEditing');_0x936456['plugins']['has']('UndoEditing')&&(_0x2bea68['enableCommand']('undo'),_0x2bea68['enableCommand']('redo'));}}class Rt extends _0x240e00{static get['requires'](){return[vt];}['afterInit'](){const _0x22c226=this['editor'];if(!_0x22c226['plugins']['has']('TableCaptionEditing'))return;_0x22c226['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x240e00{['tableProperties'];['tableCellProperties'];constructor(_0x208e05){super(_0x208e05),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4756d9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x38a264 of this['tableProperties'])_0x4756d9['enableCommand'](_0x38a264,(_0x3580f3,_0x49eb30)=>{const _0x2082a7=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x38a264,[_0x2082a7],this['tableProperties'],'tableProperties',_0x3580f3,_0x49eb30);});_0x4756d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4756d9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4756d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x20124c,_0x59fd8d)=>this['handleDiscardAction'](this['tableProperties'],_0x20124c,_0x59fd8d)),_0x4756d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x278f84 of this['tableCellProperties'])_0x4756d9['enableCommand'](_0x278f84,(_0x4ad281,_0x1b8e3a)=>{const _0xf314a1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x278f84,_0xf314a1,this['tableCellProperties'],'tableCellProperties',_0x4ad281,_0x1b8e3a);});_0x4756d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4756d9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4756d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1e51d6,_0xe9846f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1e51d6,_0xe9846f)),_0x4756d9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4756d9['descriptionFactory']['registerDescriptionCallback'](_0x27680f=>this['handleSuggestionDescription'](_0x27680f));}['_handlePropertyChange'](_0x5cee0d,_0x1c0192,_0x41d3bb,_0x169f23,_0x416f7b,_0xcf9731){const _0x284b0b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xcf9731['batch'],()=>{for(const _0x5bd2bd of _0x1c0192){if(this['_getSuggestion'](_0x5bd2bd,_0x169f23))_0x416f7b(_0xcf9731);else{const _0x51e5d1={};for(const _0x159369 of _0x41d3bb){const _0x118261=_0x5bd2bd['getAttribute'](_0x159369);void 0x0!==_0x118261&&(_0x51e5d1[_0x159369]=_0x118261);}_0x416f7b(_0xcf9731),_0x284b0b['markBlockFormat'](_0x5bd2bd,{'commandParams':[_0x51e5d1]},[],_0x169f23);}}});}['handleDiscardAction'](_0x124219,_0xdd7c7b,_0x5c49bb){const _0x5c5fbd=_0xdd7c7b[0x0]['start']['nodeAfter'],_0x1a41a1=_0x5c49bb['commandParams'][0x0];this['editor']['model']['change'](_0x1b8ef5=>{for(const _0x11d099 of _0x124219)void 0x0!==_0x1a41a1[_0x11d099]?_0x1b8ef5['setAttribute'](_0x11d099,_0x1a41a1[_0x11d099],_0x5c5fbd):_0x1b8ef5['removeAttribute'](_0x11d099,_0x5c5fbd);});}['handleSuggestionDescription'](_0x138db0){if(_0x138db0['data'])switch(_0x138db0['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'](_0xfe9873,_0x31d860){const _0x238b62=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x316175 of _0x238b62['getSuggestions']({'skipNotAttached':!0x0})){const _0x58975d=_0x316175['getContainedElement']();if(_0x316175['subType']===_0x31d860&&_0x58975d===_0xfe9873)return _0x316175;}return null;}}const m='$elementName';class p extends _0x240e00{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x59b3bc,_0x45cc0b,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57805a){super(_0x57805a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3ad923,_0x1a13d6,_0x120d1b,_0x3a6810)=>{this['_model']['change'](()=>{for(const _0x38f74b of[..._0x3a6810,..._0x120d1b])this['_model']['markers']['has'](_0x38f74b)&&_0x57805a['editing']['reconvertMarker'](_0x38f74b);});}),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']=_0x57805a['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(),_0x57805a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x57805a['config']['get']('trackChanges.trackFormatChanges'),_0x57805a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x57805a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x57805a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x28114a=this['editor'],_0x21e295=(_0x5eae86,_0x1ae067)=>{if('attribute'!=_0x5eae86)return'ck-suggestion-marker-'+_0x5eae86;const _0x372ae0=_0x1ae067['split']('|')[0x0];return this['_isBlockAttribute'](_0x372ae0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x28114a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5e8856=>{const {id:_0x30b31d,authorId:_0x3116cc,type:_0x2e9270,subType:_0x263f9f}=this['_splitMarkerName'](_0x5e8856['markerName']),_0x5ae4e4=['ck-suggestion-marker',_0x21e295(_0x2e9270,_0x263f9f)];let _0x18b1dc=0xbb8;return this['activeMarkers']['includes'](_0x5e8856['markerName'])&&(_0x5ae4e4['push']('ck-suggestion-marker--active'),_0x18b1dc=0xbc2),'deletion'==_0x2e9270&&(_0x18b1dc+=0x5),{'classes':_0x5ae4e4,'attributes':{'data-suggestion':_0x30b31d,'data-author-id':_0x3116cc},'priority':_0x18b1dc};}}),_0x28114a['conversion']['for']('dataDowncast')['add'](_0xcde630=>{_0xcde630['on']('addMarker:suggestion',(_0x2bd884,_0x12477a,_0x2bf12a)=>{if(!_0x2bf12a['options']['showSuggestionHighlights'])return;const _0x492f3e=_0x12477a['item'];if(!_0x492f3e)return;const _0x192d2a=_0x2bf12a['mapper']['toViewElement'](_0x492f3e);_0x28114a['model']['schema']['isObject'](_0x492f3e)&&_0x192d2a&&!_0x192d2a['getCustomProperty']('widget')&&_0x192d2a['is']('containerElement')&&_0x549466(_0x192d2a,_0x2bf12a['writer']);},{'priority':'high'});}),_0x28114a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x55ca7f,_0x33e81c)=>{if(!_0x33e81c['options']['showSuggestionHighlights'])return null;const {type:_0x4dbb44,subType:_0x2d6771}=this['_splitMarkerName'](_0x55ca7f['markerName']);return{'classes':['ck-suggestion-marker',_0x21e295(_0x4dbb44,_0x2d6771)],'priority':0xbb8};}});const _0x41a82=({showActiveMarkers:_0x35c7df=!0x0,isAttributeSuggestion:_0x1961b5=!0x1}={})=>(_0x4935c8,_0x48feb5,_0x47e902)=>{if(!_0x48feb5['item'])return;const {id:_0x49928d,authorId:_0xba4910}=this['_splitMarkerName'](_0x48feb5['markerName']);if(_0x1961b5){const _0x4a8f75=this['_suggestions']['get'](_0x49928d),_0x561c93=this['_getAttributeKey'](_0x4a8f75);if(!this['_isBlockAttribute'](_0x561c93))return;}if(_0x48feb5['item']['is']('selection'))return void _0x47e902['consumable']['consume'](_0x48feb5['item'],_0x4935c8['name']);const _0x561170=_0x47e902['mapper']['toViewElement'](_0x48feb5['item']);if(_0x48feb5['item']['is']('element')&&_0x28114a['model']['schema']['isBlock'](_0x48feb5['item'])&&!_0x561170['getCustomProperty']('addHighlight')){_0x47e902['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x561170),_0x47e902['writer']['setAttribute']('data-suggestion',_0x49928d,_0x561170),_0x47e902['writer']['setAttribute']('data-author-id',_0xba4910,_0x561170),_0x47e902['mapper']['bindElementToMarker'](_0x561170,_0x48feb5['markerName']),_0x35c7df&&(this['activeMarkers']['includes'](_0x48feb5['markerName'])?_0x47e902['writer']['addClass']('ck-suggestion-marker--active',_0x561170):_0x47e902['writer']['removeClass']('ck-suggestion-marker--active',_0x561170));for(const _0x334ad2 of _0x28114a['model']['createRangeIn'](_0x48feb5['item'])['getItems']())_0x47e902['consumable']['consume'](_0x334ad2,_0x4935c8['name']);_0x47e902['consumable']['consume'](_0x48feb5['item'],_0x4935c8['name']);}};_0x28114a['conversion']['for']('dataDowncast')['add'](_0x4b9cdb=>{_0x4b9cdb['on']('addMarker:suggestion:formatBlock',(_0x478e4f,_0x49bd3a,_0x26b2c6)=>{_0x26b2c6['options']['showSuggestionHighlights']&&_0x41a82({'showActiveMarkers':!0x1})(_0x478e4f,_0x49bd3a,_0x26b2c6);},{'priority':'highest'});}),_0x28114a['conversion']['for']('dataDowncast')['add'](_0x493835=>{_0x493835['on']('addMarker:suggestion:attribute',(_0x431c24,_0x803f04,_0x126649)=>{_0x126649['options']['showSuggestionHighlights']&&_0x41a82({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x431c24,_0x803f04,_0x126649);},{'priority':'highest'});}),_0x28114a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xe4bed5,_0x43cd6d)=>_0x43cd6d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xe4bed5['substr'](0xb)}}),_0x28114a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x51bdc5,{writer:_0x563447})=>{let _0x5a3e52='suggestion:'+_0x51bdc5['getAttribute']('suggestion-type')+':'+_0x51bdc5['getAttribute']('id');return _0x51bdc5['getAttribute']('marker-count')&&(_0x5a3e52+=':'+_0x51bdc5['getAttribute']('marker-count')),_0x563447['createElement']('$marker',{'data-name':_0x5a3e52});}}),_0x28114a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x28114a['conversion']['for']('editingDowncast')['add'](_0x26a8c1=>{_0x26a8c1['on']('addMarker:suggestion:formatBlock',_0x41a82(),{'priority':'high'});}),_0x28114a['conversion']['for']('editingDowncast')['add'](_0xf0cc53=>{_0xf0cc53['on']('addMarker:suggestion:attribute',_0x41a82({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x28114a['conversion']['for']('editingDowncast')['add'](_0x2beaa0=>{_0x2beaa0['on']('removeMarker:suggestion:formatBlock',(_0x1c95f1,_0x253620,_0x12884b)=>{const _0x41fd95=_0x12884b['mapper']['markerNameToElements'](_0x253620['markerName']);if(_0x41fd95){for(const _0xe41532 of _0x41fd95)_0xe41532['getCustomProperty']('addHighlight')||(_0x12884b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xe41532),_0x12884b['writer']['removeAttribute']('data-suggestion',_0xe41532),_0x12884b['writer']['removeAttribute']('data-author-id',_0xe41532),_0x12884b['mapper']['unbindElementFromMarkerName'](_0xe41532,_0x253620['markerName']));}},{'priority':'high'});}),_0x28114a['conversion']['for']('editingDowncast')['add'](_0x445275=>{_0x445275['on']('removeMarker:suggestion:attribute',(_0x278654,_0x47a43d,_0x25e381)=>{const _0x454246=_0x25e381['mapper']['markerNameToElements'](_0x47a43d['markerName']);if(!_0x454246)return;const {id:_0x22b588}=this['_splitMarkerName'](_0x47a43d['markerName']),_0x36cb4f=this['_suggestions']['get'](_0x22b588),_0x2ab90c=this['_getAttributeKey'](_0x36cb4f);if(this['_isBlockAttribute'](_0x2ab90c)){for(const _0x4412d4 of _0x454246)_0x4412d4['getCustomProperty']('addHighlight')||(_0x25e381['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4412d4),_0x25e381['writer']['removeAttribute']('data-suggestion',_0x4412d4),_0x25e381['writer']['removeAttribute']('data-author-id',_0x4412d4),_0x25e381['mapper']['unbindElementFromMarkerName'](_0x4412d4,_0x47a43d['markerName']));}},{'priority':'high'});}),_0x28114a['model']['document']['registerPostFixer'](_0x3f7d48=>{let _0x1b3be2=!0x1;const _0x30733f=Array['from'](_0x28114a['model']['document']['differ']['getChangedMarkers']()),_0x27f8bd=new Set();for(const {name:_0x17dc33,data:_0x549d83}of _0x30733f){const {group:_0xf1ce0b,type:_0x5f46b0,subType:_0x43f69b,id:_0x5274e9}=this['_splitMarkerName'](_0x17dc33);if('suggestion'!==_0xf1ce0b)continue;const _0x3683f6=this['_suggestions']['get'](_0x5274e9);if(null!=_0x549d83['newRange']){'formatInline'==_0x5f46b0&&(_0x1b3be2=_0x1b3be2||Pt(_0x549d83['newRange'],_0x17dc33,_0x3f7d48,_0x28114a['model']['schema']));const _0x4276eb='attribute'==_0x5f46b0&&this['_isBlockAttribute'](_0x43f69b['split']('|')[0x0]);if(_0x549d83['newRange']['isCollapsed']||'$graveyard'==_0x549d83['newRange']['root']['rootName']||'formatBlock'==_0x5f46b0&&!Ft(_0x549d83['newRange'])||_0x4276eb&&!Ft(_0x549d83['newRange'])||'deletion'==_0x5f46b0&&!(!Vt(_0x1f6282=_0x549d83['newRange'])&&!function(_0xfc0278){return _0xfc0278['start']['parent']==_0xfc0278['end']['nodeBefore']&&_0xfc0278['start']['isAtEnd'];}(_0x1f6282)))_0x3f7d48['removeMarker'](_0x17dc33),_0x1b3be2=!0x0;else{if(!_0x3683f6||!_0x3683f6['isInContent'])continue;if(_0x549d83['newRange']&&_0x549d83['oldRange']&&_0x549d83['newRange']['isEqual'](_0x549d83['oldRange']))continue;_0x27f8bd['add'](_0x3683f6);}}}var _0x1f6282;return _0x27f8bd['size']>0x0&&(_0x1b3be2=!!this['_joinWithAdjacentSuggestions'](_0x27f8bd)||_0x1b3be2),_0x1b3be2;}),_0x28114a['model']['document']['registerPostFixer'](_0x157f03=>{let _0x1aad67=!0x1;for(const _0x78a653 of _0x28114a['model']['document']['differ']['getChanges']())if('insert'==_0x78a653['type'])for(const _0x52bede of this['_suggestions']['values']()){if(_0x52bede['isMultiRange']||!_0x52bede['isInContent'])continue;const _0x4ccc4c='formatBlock'==_0x52bede['type'],_0x13a3ce=this['_getAttributeKey'](_0x52bede),_0x2ff968=_0x13a3ce&&this['_isBlockAttribute'](_0x13a3ce);if(!_0x4ccc4c&&!_0x2ff968)continue;const _0x3c55e3=_0x52bede['getFirstRange']();if(_0x3c55e3['start']['parent']!=_0x3c55e3['end']['parent']&&!_0x3c55e3['end']['isAtEnd']){const _0x22aa38=_0x28114a['model']['createPositionAt'](_0x3c55e3['start']['nodeAfter'],'end'),_0x44c947=_0x28114a['model']['createRange'](_0x3c55e3['start'],_0x22aa38);_0x157f03['updateMarker'](_0x52bede['getFirstMarker'](),{'range':_0x44c947}),_0x1aad67=!0x0;}}return _0x1aad67;}),_0x28114a['model']['document']['registerPostFixer'](_0x9b289f=>this['_processAttributeChanges'](_0x9b289f)),_0x28114a['model']['document']['registerPostFixer'](_0x22a9cc=>!_0x22a9cc['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x22a9cc)),_0x28114a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x28114a['model']['document']['on']('change:data',(_0x12b89a,_0xc9c3a4)=>{if(!_0xc9c3a4['isLocal']||_0xc9c3a4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x356bde=_0x28114a['model']['document']['differ']['getChanges']();if(0x0==_0x356bde['length'])return;const _0x19ff0a=[],_0x22bc5f=_0x356bde['filter'](_0xb6a5d=>'attribute'==_0xb6a5d['type']),_0x1f571e=_0x356bde['filter'](_0xcebf1f=>'insert'==_0xcebf1f['type']&&'$text'!=_0xcebf1f['name']);for(const _0x1a58e6 of _0x22bc5f)this['_isRegisteredAttribute'](_0x1a58e6['attributeKey'])&&_0x19ff0a['push']({'key':_0x1a58e6['attributeKey'],'newValue':_0x1a58e6['attributeNewValue'],'oldValue':_0x1a58e6['attributeOldValue'],'range':Lt(_0x1a58e6['range'],_0x28114a['model'])});for(const _0x570a49 of _0x1f571e){if('rename'!=_0x570a49['action']&&'refresh'!=_0x570a49['action'])continue;const _0x19861f=Jt(_0x570a49['position']['nodeAfter'],_0x28114a['model']),_0x2de0e2=_0x570a49['before'];'rename'==_0x570a49['action']&&_0x19ff0a['push']({'key':m,'newValue':_0x570a49['name'],'oldValue':_0x2de0e2['name'],'range':_0x19861f});for(const [_0x38c5a3,_0x3bf09a]of _0x2de0e2['attributes']){if(!this['_isRegisteredAttribute'](_0x38c5a3))continue;const _0xbdc7bb=_0x570a49['attributes']['get'](_0x38c5a3);_0x3bf09a!==_0xbdc7bb&&_0x19ff0a['push']({'key':_0x38c5a3,'newValue':_0xbdc7bb,'oldValue':_0x3bf09a,'range':_0x19861f});}for(const [_0x79b54b,_0x490784]of _0x570a49['attributes'])this['_isRegisteredAttribute'](_0x79b54b)&&(_0x2de0e2['attributes']['has'](_0x79b54b)||_0x19ff0a['push']({'key':_0x79b54b,'newValue':_0x490784,'oldValue':null,'range':_0x19861f}));}0x0!=_0x19ff0a['length']&&_0x28114a['model']['enqueueChange'](_0xc9c3a4,_0x44a3aa=>{const _0x3f57de=_0x3aa221();for(const {range:_0x14724f,key:_0x498048,oldValue:_0x341116,newValue:_0x4df097}of _0x19ff0a)this['markAttributeChange'](_0x14724f,_0x498048,_0x341116,_0x4df097,{'groupId':_0x3f57de});this['_reduceExistingSuggestions'](_0x44a3aa,_0x19ff0a);});},{'priority':'lowest'}),_0x28114a['model']['markers']['on']('update:suggestion',(_0x25003f,_0x3defce,_0x36cce0)=>{if(null==_0x36cce0){const {id:_0x12d089}=this['_splitMarkerName'](_0x3defce['name']),_0x5209cb=this['_suggestions']['get'](_0x12d089);_0x5209cb&&_0x5209cb['addMarkerName'](_0x3defce['name']);}}),_0x28114a['model']['document']['on']('change:data',()=>{const _0x41bc04=Array['from'](_0x28114a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3d4d93=>'suggestion'===this['_splitMarkerName'](_0x3d4d93['name'])['group']);if(0x0===_0x41bc04['length'])return;_0x41bc04['sort']((_0x47e1ad,_0x22ae27)=>{const _0x27d974=_0x47e1ad['data']['oldRange'],_0x1cbbe2=_0x22ae27['data']['oldRange'];return null===_0x27d974&&null===_0x1cbbe2?0x0:null===_0x27d974&&null!==_0x1cbbe2?-0x1:null!==_0x27d974&&null===_0x1cbbe2?0x1:_0x27d974['start']['isBefore'](_0x1cbbe2['start'])?-0x1:0x1;});const _0x61a635=new Set(),_0x13f5a1=new Set();for(const {name:_0x4f7109,data:_0x2a2f78}of _0x41bc04){const {id:_0x3fed04}=this['_splitMarkerName'](_0x4f7109);if(null===_0x2a2f78['oldRange']){const _0x5b6867=this['_handleNewSuggestionMarker'](_0x4f7109);_0x13f5a1['add'](_0x5b6867);}else{const _0x11715b=this['_suggestions']['get'](_0x3fed04);null!==_0x2a2f78['newRange']||_0x11715b['isInContent']?(_0x61a635['add'](_0x11715b['head']),_0x13f5a1['add'](_0x11715b)):this['_removeSuggestion'](_0x11715b);}}_0x13f5a1['size']>0x0&&this['_refreshSuggestionsChain'](_0x13f5a1);for(const _0x218e59 of _0x61a635)this['fire']('suggestionChanged',_0x218e59);}),_0x28114a['model']['on']('applyOperation',(_0x46a332,_0x3e53e0)=>{const _0x18176f=_0x3e53e0[0x0];if(!this['_suggestions']['size'])return;if(!_0x18176f['isDocumentOperation'])return;if(_0x18176f['batch']['isUndo']||!_0x18176f['batch']['isLocal'])return;let _0x48bc7b,_0x589842;switch(_0x18176f['type']){case'insert':_0x48bc7b=_0x28114a['model']['createPositionAt'](_0x18176f['position']),_0x589842=_0x48bc7b['getShiftedBy'](_0x18176f['howMany']);break;case'split':_0x48bc7b=_0x28114a['model']['createPositionAt'](_0x18176f['splitPosition']),_0x589842=_0x28114a['model']['createPositionAt'](_0x18176f['moveTargetPosition']);break;case'move':_0x48bc7b=_0x28114a['model']['createPositionAt'](_0x18176f['targetPosition']),_0x589842=_0x48bc7b['getShiftedBy'](_0x18176f['howMany']);break;default:return;}const _0x391137=_0x28114a['model']['createRange'](_0x48bc7b,_0x589842);_0x28114a['model']['change'](()=>{for(const {suggestion:_0x5a6b69,meta:_0x433f08}of this['_findSuggestions'](_0x391137)){if(_0x5a6b69['isMultiRange'])continue;if('formatInline'==_0x5a6b69['type'])continue;const _0x50402e=this['_getAttributeKey'](_0x5a6b69);if(_0x50402e&&this['_isBlockAttribute'](_0x50402e)&&'split'!=_0x18176f['type'])continue;const _0x2ba626=_0x5a6b69['data']&&_0x5a6b69['data']['multipleBlocks'];('formatBlock'!=_0x5a6b69['type']||'split'==_0x18176f['type']&&!_0x2ba626)&&(_0x433f08['containsRangeInObject']||'insertion'==_0x5a6b69['type']&&_0x433f08['isOwn']||_0x5a6b69['getFirstRange']()['containsRange'](_0x391137)&&this['_breakSuggestionMarker'](_0x5a6b69,_0x48bc7b,_0x589842));}});},{'priority':'lowest'}),_0x28114a['model']['on']('deleteContent',(_0x305a15,_0x2df6d9)=>{const _0x306315=_0x2df6d9[0x0],_0x57718f=_0x2df6d9[0x1];if(_0x57718f&&_0x57718f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x306315['isCollapsed'])return;const _0x5035ca=_0x28114a['model']['schema'],{start:_0xf8a5b5,end:_0xf9382c}=_0x306315['getFirstRange'](),_0x5f2a5d=_0xf8a5b5['nodeAfter']&&_0x5035ca['isLimit'](_0xf8a5b5['nodeAfter'])?null:_0x5035ca['getNearestSelectionRange'](_0xf8a5b5,'forward'),_0x658b2a=_0xf9382c['nodeBefore']&&_0x5035ca['isLimit'](_0xf9382c['nodeBefore'])?null:_0x5035ca['getNearestSelectionRange'](_0xf9382c,'backward'),_0x737beb=_0x28114a['model']['createRange'](_0x5f2a5d?_0x5f2a5d['start']:_0xf8a5b5,_0x658b2a?_0x658b2a['end']:_0xf9382c);_0x28114a['model']['change'](_0x5c9ac4=>{this['markDeletion'](_0x737beb);const _0x2e4095=_0x28114a['model']['schema']['getNearestSelectionRange'](_0x737beb['start']);_0x306315['is']('documentSelection')?_0x5c9ac4['setSelection'](_0x2e4095):_0x306315['setTo'](_0x2e4095);}),_0x305a15['stop']();},{'priority':_0x4b3b10['normal']+0xa}),_0x28114a['model']['on']('insertContent',(_0x38088d,_0x1b0533)=>{const _0x2cad66=_0x1b0533[_0x1b0533['length']-0x1];_0x2cad66&&_0x2cad66['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x28114a['model']['change'](()=>{let _0x93b55e=_0x28114a['model']['insertContent'](_0x1b0533[0x0],_0x1b0533[0x1],_0x1b0533[0x2],{'forceDefaultExecution':!0x0});if(!_0x93b55e)return;_0x38088d['return']=_0x93b55e['clone']();const _0xbe6199=_0x93b55e['end']['nodeBefore'],_0x4484c2=_0x28114a['model']['schema'];_0xbe6199&&_0x4484c2['isBlock'](_0xbe6199)&&!_0x4484c2['isObject'](_0xbe6199)&&(_0x93b55e=_0x28114a['model']['createRange'](_0x93b55e['start'],_0x28114a['model']['createPositionAt'](_0xbe6199,'end'))),this['markInsertion'](_0x93b55e);}),_0x38088d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x372134=new O(_0x28114a,this['_suggestions']);_0x28114a['commands']['add']('acceptSuggestion',_0x372134),this['enableCommand']('acceptSuggestion');const _0x150439=new R(_0x28114a,this['_suggestions']);_0x28114a['commands']['add']('discardSuggestion',_0x150439),this['enableCommand']('discardSuggestion'),_0x28114a['commands']['add']('acceptAllSuggestions',new x(_0x28114a,_0x372134,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x28114a['commands']['add']('discardAllSuggestions',new x(_0x28114a,_0x150439,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x28114a['commands']['add']('acceptSelectedSuggestions',new E(_0x28114a,_0x372134,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x28114a['commands']['add']('discardSelectedSuggestions',new E(_0x28114a,_0x150439,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x21442b=_0x28114a['plugins']['get']('CommentsRepository');this['listenTo'](_0x21442b,'addComment',(_0x2611f2,{threadId:_0x4b52ee})=>{const _0x4ddd2c=this['_suggestions']['get'](_0x4b52ee);_0x4ddd2c&&_0x4ddd2c['commentThread']&&0x1===_0x4ddd2c['commentThread']['length']&&this['_updateSuggestionData'](_0x4b52ee,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x21442b,'removeComment',(_0x206ed2,{threadId:_0x1cc538})=>{const _0x28d520=this['_suggestions']['get'](_0x1cc538);_0x28d520&&_0x28d520['commentThread']&&!_0x28d520['commentThread']['length']&&this['_updateSuggestionData'](_0x1cc538,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x531a6c){const _0x304003=_0x4e1ce8([0x73,0x4e,0x52,0x4f,0x64,0x69,0x56,0x6d,0x34,0x32,0x6b,0x74,0x39,0x62,0x47,0x61,0x31,0x30,0x78,0x4c,0x72,0x33,0x38,0x76,0x75,0x42,0x41,0x68,0x6f,0x6a,0x71,0x67,0x6c,0x4a,0x50,0x63,0x65,0x35,0x55,0x7a,0x45,0x59,0x4b,0x4d,0x54,0x77,0x70,0x46,0x79,0x51,0x5a,0x57,0x48,0x43,0x49,0x37,0x6e,0x44,0x36,0x53,0x58,0x66]),_0x291b73=0x5efe9179,_0x374e55=0x5ef9c659^_0x291b73,_0x14db0d=window[_0x4e1ce8([0x44,0x61,0x74,0x65])][_0x4e1ce8([0x6e,0x6f,0x77])](),_0x131663=_0x531a6c[_0x4e1ce8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e9c08=new window[(_0x4e1ce8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d71c3=>{_0x131663[_0x4e1ce8([0x6f,0x6e,0x63,0x65])](_0x4e1ce8([0x72,0x65,0x61,0x64,0x79]),_0x3d71c3);}),_0x4fc134={[_0x4e1ce8([0x6b,0x74,0x79])]:_0x4e1ce8([0x45,0x43]),[_0x4e1ce8([0x75,0x73,0x65])]:_0x4e1ce8([0x73,0x69,0x67]),[_0x4e1ce8([0x63,0x72,0x76])]:_0x4e1ce8([0x50,0x2d,0x32,0x35,0x36]),[_0x4e1ce8([0x78])]:_0x4e1ce8([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4e1ce8([0x79])]:_0x4e1ce8([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4e1ce8([0x61,0x6c,0x67])]:_0x4e1ce8([0x45,0x53,0x32,0x35,0x36])},_0x496191=_0x131663[_0x4e1ce8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e1ce8([0x67,0x65,0x74])](_0x4e1ce8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x546ca9(){let _0x2608b1,_0x4ee529=null,_0x90cafa=null;try{if(_0x496191==_0x4e1ce8([0x47,0x50,0x4c]))return _0x4e1ce8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2608b1=_0x5421f5(),!_0x2608b1)return _0x4e1ce8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2608b1[_0x4e1ce8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x90cafa=_0x171b83(_0x2608b1[_0x4e1ce8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2608b1[_0x4e1ce8([0x6a,0x74,0x69])])),await _0x2bd96c()?_0x2c72ab()?_0x35e280()?_0x4e1ce8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c6316()?(_0x2608b1[_0x4e1ce8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e1ce8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4ee529=_0x487b3a(_0x4e1ce8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2608b1[_0x4e1ce8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e1ce8([0x74,0x72,0x69,0x61,0x6c])&&(_0x4ee529=_0x487b3a(_0x4e1ce8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x2608b1[_0x4e1ce8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e1ce8([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4ee529=_0x487b3a(_0x4e1ce8([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1c92e3()):_0x4e1ce8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e1ce8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e1ce8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x36de47){return _0x4e1ce8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x35e280(){const _0x59862c=[_0x4e1ce8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e1ce8([0x74,0x72,0x69,0x61,0x6c])][_0x4e1ce8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2608b1[_0x4e1ce8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14db0d/0x3e8:0xe10*_0x374e55;return _0x2608b1[_0x4e1ce8([0x65,0x78,0x70])]<_0x59862c;}function _0x2c72ab(){const _0x1941a8=_0x2608b1[_0x4e1ce8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1941a8&&(!!_0x1941a8[_0x4e1ce8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e1ce8([0x2a]))||(!!_0x1941a8[_0x4e1ce8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e1ce8([0x54,0x43]))||!(!_0x1941a8[_0x4e1ce8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e1ce8([0x52,0x54,0x43]))||!_0x7d6148())));}function _0x2c6316(){const _0x47577f=_0x2608b1[_0x4e1ce8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47577f||0x0==_0x47577f[_0x4e1ce8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3832ea}=new URL(window[_0x4e1ce8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x47577f[_0x4e1ce8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3832ea))return!0x0;const _0x41d050=_0x3832ea[_0x4e1ce8([0x73,0x70,0x6c,0x69,0x74])](_0x4e1ce8([0x2e]));return _0x47577f[_0x4e1ce8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x195681=>_0x195681[_0x4e1ce8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e1ce8([0x2a])))[_0x4e1ce8([0x6d,0x61,0x70])](_0x22143b=>_0x22143b[_0x4e1ce8([0x73,0x70,0x6c,0x69,0x74])](_0x4e1ce8([0x2e])))[_0x4e1ce8([0x73,0x6f,0x6d,0x65])](_0xb5d80f=>_0x41d050[_0x4e1ce8([0x65,0x76,0x65,0x72,0x79])]((_0x5601fc,_0x4d00dc)=>_0xb5d80f[_0x4d00dc]===_0x5601fc||_0xb5d80f[_0x4d00dc]===_0x4e1ce8([0x2a])));}function _0x1c92e3(){return _0x4ee529&&_0x90cafa?new window[(_0x4e1ce8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x261984,_0x26fdfe)=>{_0x4ee529[_0x4e1ce8([0x74,0x68,0x65,0x6e])](_0x261984,_0x26fdfe),_0x90cafa[_0x4e1ce8([0x74,0x68,0x65,0x6e])](_0x58fdac=>{_0x58fdac!=_0x4e1ce8([0x56,0x61,0x6c,0x69,0x64])&&_0x261984(_0x58fdac);},_0x26fdfe);}):_0x4ee529||_0x90cafa||_0x4e1ce8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x171b83(_0xcc977c,_0x539784){return new window[(_0x4e1ce8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9e6da4=>{if(_0xfc2557())return _0x9e6da4(_0x4e1ce8([0x56,0x61,0x6c,0x69,0x64]));_0x10d0ac(),_0x131663[_0x4e1ce8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e1ce8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b9942=!0x1;const _0x507dee=_0x3aa221();function _0x614d2d(_0x1ee37e){return!!_0x1ee37e&&(typeof _0x1ee37e===_0x4e1ce8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ee37e===_0x4e1ce8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ee37e[_0x4e1ce8([0x74,0x68,0x65,0x6e])]===_0x4e1ce8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ee37e[_0x4e1ce8([0x63,0x61,0x74,0x63,0x68])]===_0x4e1ce8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41e91e(_0x37ad30){_0x4c44a3(_0x37ad30)[_0x4e1ce8([0x74,0x68,0x65,0x6e])](_0x1ce400=>{if(!_0x1ce400||_0x1ce400[_0x4e1ce8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e1ce8([0x6f,0x6b]))return _0x4e1ce8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3fed1c(_0x59cba5(_0x507dee+_0x539784))!=_0x1ce400[_0x4e1ce8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e1ce8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e1ce8([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e1ce8([0x74,0x68,0x65,0x6e])](_0x10b570=>(_0x32d066(),_0x10b570),()=>{const _0x3e73a3=_0x374132();return null==_0x3e73a3?(_0x32d066(),_0x4e1ce8([0x56,0x61,0x6c,0x69,0x64])):_0x4e1ce8(_0x14db0d-_0x3e73a3>(0x7af21579^_0x291b73)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e1ce8([0x74,0x68,0x65,0x6e])](_0x9e6da4)[_0x4e1ce8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9e6da4(_0x4e1ce8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5c228d=0x5ec87ff9^_0x291b73;function _0x32d066(){const _0x27488e=_0x4e1ce8([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fed1c(_0x59cba5(_0xcc977c)),_0x53e904=_0x57df40(_0x3fed1c(window[_0x4e1ce8([0x4d,0x61,0x74,0x68])][_0x4e1ce8([0x63,0x65,0x69,0x6c])](_0x14db0d/_0x5c228d)));window[_0x4e1ce8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e1ce8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27488e,_0x53e904);}function _0x374132(){const _0x280a8f=_0x4e1ce8([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fed1c(_0x59cba5(_0xcc977c)),_0x18f600=window[_0x4e1ce8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e1ce8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x280a8f);return _0x18f600?window[_0x4e1ce8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57df40(_0x18f600),0x10)*_0x5c228d:null;}function _0x4c44a3(_0x5a33b9){return new window[(_0x4e1ce8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5902aa,_0x1c77ed)=>{_0x5a33b9[_0x4e1ce8([0x74,0x68,0x65,0x6e])](_0x5902aa,_0x1c77ed),window[_0x4e1ce8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c77ed,0x5eff45b9^_0x291b73);});}}_0x131663[_0x4e1ce8([0x6f,0x6e])](_0x4e1ce8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x196fa1,_0x12b463)=>{if(_0x12b463[0x0]!=_0xcc977c)return _0x9e6da4(_0x4e1ce8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12b463[0x1]={..._0x12b463[0x1],[_0x4e1ce8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x507dee};},{[_0x4e1ce8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e1ce8([0x68,0x69,0x67,0x68])}),_0x131663[_0x4e1ce8([0x6f,0x6e])](_0x4e1ce8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39060b=>{_0x614d2d(_0x39060b[_0x4e1ce8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b9942=!0x0,_0x41e91e(_0x39060b[_0x4e1ce8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e1ce8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e1ce8([0x6c,0x6f,0x77])}),_0x2e9c08[_0x4e1ce8([0x74,0x68,0x65,0x6e])](()=>{_0x4b9942||_0x9e6da4(_0x4e1ce8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xfc2557(){return _0x131663[_0x4e1ce8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e1ce8([0x76,0x69,0x65,0x77])][_0x4e1ce8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e1ce8([0x61,0x75,0x74,0x6f]);}function _0x10d0ac(){_0x131663[_0x4e1ce8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e1ce8([0x76,0x69,0x65,0x77])][_0x4e1ce8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e1ce8([0x61,0x75,0x74,0x6f]);}}function _0x487b3a(_0x5c49f6){const _0x4c4422=[new window[(_0x4e1ce8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe180bf=>setTimeout(_0xe180bf,0x5ef7afb5^_0x291b73)),_0x2e9c08[_0x4e1ce8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e1ce8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25a43b=>{let _0x3a4aeb=0x0;_0x131663[_0x4e1ce8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e1ce8([0x6f,0x6e])](_0x4e1ce8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3529dc,_0x65f9a9)=>{_0x65f9a9[0x0][_0x4e1ce8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a4aeb++,_0x3a4aeb==(0x5efe9081^_0x291b73)&&(_0x25a43b(),_0x3529dc[_0x4e1ce8([0x6f,0x66,0x66])]());});}))];return window[_0x4e1ce8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e1ce8([0x72,0x61,0x63,0x65])](_0x4c4422)[_0x4e1ce8([0x74,0x68,0x65,0x6e])](()=>_0x5c49f6);}async function _0xb583d3(){await _0x2e9c08,_0x131663[_0x4e1ce8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e1ce8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51e8ff,_0x131663[_0x4e1ce8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e1ce8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51e8ff,_0x131663[_0x4e1ce8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e1ce8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x7d6148(){return _0x561bd7(_0x4e1ce8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4e12b3(_0x4e1ce8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4e1ce8([0x73,0x74,0x61,0x74,0x65])]==_0x4e1ce8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x588157(_0xb3184d){const _0x540771=_0x5bb533();_0x131663[_0x540771]=_0x4e1ce8([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb3184d,_0xb3184d!=_0x4e1ce8([0x56,0x61,0x6c,0x69,0x64])&&_0xb583d3();}function _0x5bb533(){const _0x22b62c=window[_0x4e1ce8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e1ce8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e1ce8([0x6e,0x6f,0x77])]())[_0x4e1ce8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e1ce8([0x2e]),'');let _0x3407cd=_0x4e1ce8([0x73]);for(let _0x2ad2d7=0x0;_0x2ad2d7<_0x22b62c[_0x4e1ce8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ad2d7+=0x2){let _0x5d14bb=window[_0x4e1ce8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22b62c[_0x4e1ce8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ad2d7,_0x2ad2d7+0x2));_0x5d14bb>=_0x304003[_0x4e1ce8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d14bb-=_0x304003[_0x4e1ce8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3407cd+=_0x304003[_0x5d14bb];}return _0x3407cd;}function _0x5421f5(){const _0x3fad44=_0x496191[_0x4e1ce8([0x73,0x70,0x6c,0x69,0x74])](_0x4e1ce8([0x2e]));if(0x3!=_0x3fad44[_0x4e1ce8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3196bc(_0x3fad44[0x1]);function _0x3196bc(_0x207a66){const _0x2430d4=_0x44af0d(_0x207a66);return _0x2430d4&&_0x5ebb79()?_0x2430d4:null;function _0x5ebb79(){const _0x2fc22d=_0x2430d4[_0x4e1ce8([0x6a,0x74,0x69])],_0x23cc30=window[_0x4e1ce8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fc22d[_0x4e1ce8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2fc22d[_0x4e1ce8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x823995={..._0x2430d4,[_0x4e1ce8([0x6a,0x74,0x69])]:_0x2fc22d[_0x4e1ce8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2fc22d[_0x4e1ce8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x823995[_0x4e1ce8([0x76,0x63])],_0x59cba5(_0x823995)==_0x23cc30;}}}async function _0x2bd96c(){let _0xbd0b5d=!0x0;try{const _0x2c25fa=_0x496191[_0x4e1ce8([0x73,0x70,0x6c,0x69,0x74])](_0x4e1ce8([0x2e])),[_0x5799c4,_0x290b0f,_0x3165fe]=_0x2c25fa;return _0x40acfd(_0x5799c4),await _0x4d3ee4(_0x5799c4,_0x290b0f,_0x3165fe),_0xbd0b5d;}catch(_0x1b1dd0){return!0x1;}function _0x40acfd(_0xec4808){const _0x522bd8=_0x44af0d(_0xec4808);_0x522bd8&&_0x522bd8[_0x4e1ce8([0x61,0x6c,0x67])]==_0x4e1ce8([0x45,0x53,0x32,0x35,0x36])||(_0xbd0b5d=!0x1);}async function _0x4d3ee4(_0x31cb9b,_0x504fb3,_0x18a132){const _0x35b4e3=window[_0x4e1ce8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e1ce8([0x66,0x72,0x6f,0x6d])](_0x109c3d(_0x18a132),_0x21f330=>_0x21f330[_0x4e1ce8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b16bf=new window[(_0x4e1ce8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e1ce8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x31cb9b+_0x4e1ce8([0x2e])+_0x504fb3),_0x1372c3=window[_0x4e1ce8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e1ce8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1372c3)return;const _0x15bcd0=await _0x1372c3[_0x4e1ce8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e1ce8([0x6a,0x77,0x6b]),_0x4fc134,{[_0x4e1ce8([0x6e,0x61,0x6d,0x65])]:_0x4e1ce8([0x45,0x43,0x44,0x53,0x41]),[_0x4e1ce8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e1ce8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e1ce8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1372c3[_0x4e1ce8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e1ce8([0x6e,0x61,0x6d,0x65])]:_0x4e1ce8([0x45,0x43,0x44,0x53,0x41]),[_0x4e1ce8([0x68,0x61,0x73,0x68])]:{[_0x4e1ce8([0x6e,0x61,0x6d,0x65])]:_0x4e1ce8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x15bcd0,_0x35b4e3,_0x2b16bf)||(_0xbd0b5d=!0x1);}}function _0x44af0d(_0xf47a78){return _0xf47a78[_0x4e1ce8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e1ce8([0x65,0x79]))?JSON[_0x4e1ce8([0x70,0x61,0x72,0x73,0x65])](_0x109c3d(_0xf47a78)):null;}function _0x109c3d(_0x13fe32){return window[_0x4e1ce8([0x61,0x74,0x6f,0x62])](_0x13fe32[_0x4e1ce8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e1ce8([0x2b]))[_0x4e1ce8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e1ce8([0x2f])));}function _0x59cba5(_0x2b60ac){let _0xb9cd70=0x1505;function _0x24bc3c(_0x3e44c7){for(let _0x38db67=0x0;_0x38db67<_0x3e44c7[_0x4e1ce8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38db67++){const _0x3b59b8=_0x3e44c7[_0x4e1ce8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x38db67);_0xb9cd70=(_0xb9cd70<<0x5)+_0xb9cd70+_0x3b59b8,_0xb9cd70&=_0xb9cd70;}}function _0x3a8f7f(_0x234ba4){Array[_0x4e1ce8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x234ba4)?_0x234ba4[_0x4e1ce8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a8f7f):_0x234ba4&&typeof _0x234ba4==_0x4e1ce8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e1ce8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x234ba4)[_0x4e1ce8([0x73,0x6f,0x72,0x74])]()[_0x4e1ce8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3979ee,_0x467df5])=>{_0x24bc3c(_0x3979ee),_0x3a8f7f(_0x467df5);}):_0x24bc3c(window[_0x4e1ce8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x234ba4));}return _0x3a8f7f(_0x2b60ac),_0xb9cd70>>>0x0;}function _0x3fed1c(_0x3153dc){return _0x3153dc[_0x4e1ce8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e1ce8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e1ce8([0x30]));}function _0x57df40(_0x2a0216){return _0x2a0216[_0x4e1ce8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e1ce8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e1ce8([0x6a,0x6f,0x69,0x6e])]('');}function _0x561bd7(_0x4fa7ac){return _0x131663[_0x4e1ce8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4e1ce8([0x68,0x61,0x73])](_0x4fa7ac);}function _0x4e12b3(_0x543681){return _0x131663[_0x4e1ce8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4e1ce8([0x67,0x65,0x74])](_0x543681);}function _0x51e8ff(){}function _0x4e1ce8(_0x1ed9af){return _0x1ed9af['map'](_0x2a7355=>String['fromCharCode'](_0x2a7355))['join']('');}_0x588157(await _0x546ca9());}(this);}set['adapter'](_0x17dc03){if(this['_adapter'])throw new _0x1267e3('track-changes-adapter-already-set',this);this['_adapter']=_0x17dc03;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4b38f6=!0x1,toJSON:_0x2ea377=!0x1}={}){const _0x1b6ca6=[];for(const _0x1745d2 of this['_suggestions']['values']())_0x4b38f6&&!_0x1745d2['isInContent']||_0x1b6ca6['push'](_0x1745d2);return _0x2ea377?_0x1b6ca6['map'](_0x4f0c85=>_0x4f0c85['toJSON']()):_0x1b6ca6;}['getSuggestion'](_0x8d6bdb){const _0x308482=this['_suggestions']['get'](_0x8d6bdb);if(!_0x308482)throw new _0x1267e3('track-changes-suggestion-not-found',this);return _0x308482;}['hasSuggestion'](_0x52dcea){return this['_suggestions']['has'](_0x52dcea);}['addSuggestionData'](_0x115719){const {authorId:_0x2bfe02,id:_0x57bb4c,attributes:_0x86e06c}=_0x115719,[_0x568e0d,_0x4c5ed7]=_0x115719['type']['split'](':'),_0x2d658c=this['_suggestions']['get'](_0x57bb4c)||this['_createSuggestion'](_0x568e0d,_0x4c5ed7,_0x57bb4c,_0x2bfe02,_0x86e06c);if(this['_addThreadToSuggestion'](_0x2d658c),this['_checkSuggestionCorrectness'](_0x2d658c,_0x568e0d,_0x4c5ed7||null,_0x2bfe02),_0x2d658c['createdAt']=_0x115719['createdAt'],_0x2d658c['_isDataLoaded']=!0x0,_0x86e06c&&_0x86e06c['@external']){const _0x2d06af=_0x86e06c['@external'],_0x5de67f=this['_getExternalAuthor'](_0x2d06af['authorName']);_0x2d658c['authoredAt']=_0x2d06af['createdAt'],_0x2d658c['author']=_0x5de67f,_0x2d658c['isExternal']=!0x0;}else _0x2d658c['authoredAt']=_0x115719['createdAt'];switch(_0x115719['data']&&(_0x2d658c['data']=_0x115719['data']),_0x115719['attributes']&&(_0x2d658c['attributes']=_0x115719['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2d658c['_saved']=!0x0),this['_suggestionState']['get'](_0x2d658c)){case'notReady':this['_suggestionState']['set'](_0x2d658c,'dataReady');break;case'markerReady':_0x2d658c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2d658c])),this['_refreshSuggestionsChain'](new Set([_0x2d658c])),this['_suggestionState']['set'](_0x2d658c,'ready'),this['fire']('suggestionLoaded',_0x2d658c)):this['_suggestionState']['set'](_0x2d658c,'removed');}return _0x2d658c;}['acceptSuggestion'](_0x2d7ffd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x43b8fc of _0x2d7ffd['getAllAdjacentSuggestions']())_0x43b8fc['accept']();});});}['discardSuggestion'](_0x30495a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x28dde2 of _0x30495a['getAllAdjacentSuggestions']())_0x28dde2['discard']();});});}['enableCommand'](_0x204181,_0x590605){const _0x412a9d=this['editor']['commands']['get'](_0x204181);if(!_0x412a9d)throw new _0x1267e3('track-changes-command-not-found',this,{'commandName':_0x204181});if(this['_enabledCommands']['has'](_0x412a9d))throw new _0x1267e3('track-changes-enable-command-twice',this,{'commandName':_0x204181});this['_enabledCommands']['add'](_0x412a9d),_0x590605&&_0x412a9d['on']('execute',(_0x2d9721,_0x8aa6e1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x8aa6e1['length']>0x0&&_0x8aa6e1[_0x8aa6e1['length']-0x1]&&_0x8aa6e1[_0x8aa6e1['length']-0x1]['forceDefaultExecution']?_0x8aa6e1['pop']():(_0x2d9721['return']=_0x590605((..._0x2fe329)=>_0x412a9d['execute'](..._0x2fe329,{'forceDefaultExecution':!0x0}),..._0x8aa6e1),_0x2d9721['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x15a9d3){let _0x14cfb5,_0x1351bc;const _0x49c2bf=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x14cfb5=_0x15a9d3();}catch(_0x54e83c){_0x1351bc=_0x54e83c;}return _0x49c2bf||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1351bc&&_0x1267e3['rethrowUnexpectedError'](_0x1351bc,this),_0x14cfb5;}['markInsertion'](_0x41f659,_0xcace11=null,_0x5d3a8f={}){if(_0x41f659['isCollapsed'])return null;const _0x1dfee8=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x50e2e9,meta:_0x32a258}of this['_findSuggestions'](_0x41f659,'insertion'))if(_0x32a258['isOwn']){if(!_0x32a258['isNextTo']){if(_0x32a258['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x50e2e9,_0x5d3a8f))continue;return _0x50e2e9;}if(zt(_0x50e2e9,_0x5d3a8f))return _0x50e2e9;this['_breakSuggestionMarker'](_0x50e2e9,_0x41f659['start'],_0x41f659['end']);break;}if(_0xcace11==_0x50e2e9['subType']&&zt(_0x50e2e9,_0x5d3a8f)){const _0x4fc827=_0x50e2e9['getFirstRange']();return _0x4fc827['start']['isEqual'](_0x41f659['end'])?this['_setSuggestionRange'](_0x50e2e9,this['_model']['createRange'](_0x41f659['start'],_0x4fc827['end'])):this['_setSuggestionRange'](_0x50e2e9,this['_model']['createRange'](_0x4fc827['start'],_0x41f659['end'])),_0x50e2e9;}}const _0x3ba555=_0x3aa221(),_0xce5b90=_0x1dfee8['id'],_0x14bd63=_0xcace11?'insertion:'+_0xcace11:'insertion',_0xd4c335=this['_setSuggestionData']({'id':_0x3ba555,'type':_0x14bd63,'createdAt':new Date(),'authorId':_0xce5b90,'attributes':_0x5d3a8f});return this['_addSuggestionMarker'](_0x14bd63,_0x3ba555,_0xce5b90,_0x41f659),_0xd4c335;}['markMultiRangeInsertion'](_0x3b37d2,_0x29c22f='multi',_0x2c6d88={}){const _0x58398e=this['editor']['plugins']['get']('Users')['me'],_0x359b07=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x29c22f,'join');for(const _0x489d71 of this['getSuggestions']())if(_0x489d71['author']['id']==_0x58398e['id']&&'insertion'==_0x489d71['type']&&_0x489d71['subType']==_0x29c22f&&zt(_0x489d71,_0x2c6d88)&&(_0x359b07(_0x489d71['getRanges'](),_0x3b37d2)||_0x359b07(_0x3b37d2,_0x489d71['getRanges']()))){for(const _0x30325f of _0x3b37d2)_0x489d71['addRange'](_0x30325f);return _0x489d71;}for(const {suggestion:_0x283d7d,meta:_0x5da961}of this['_findSuggestions'](_0x3b37d2,'insertion')){if(!_0x5da961['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5da961['containsRangeInObject'])continue;if(!zt(_0x283d7d,_0x2c6d88))continue;let _0x9e62d4=!0x0;for(const _0x5e1cad of _0x283d7d['getRanges']())for(const _0x32f206 of _0x3b37d2)if(!_0x5e1cad['containsRange'](_0x32f206)){_0x9e62d4=!0x1;break;}if(_0x9e62d4)return _0x283d7d;}const _0xaf5569=_0x3aa221(),_0x52eb20=_0x58398e['id'],_0x260a6b='insertion:'+_0x29c22f,_0x4148f5=this['_setSuggestionData']({'id':_0xaf5569,'type':_0x260a6b,'createdAt':new Date(),'authorId':_0x52eb20,'attributes':_0x2c6d88});for(const _0x5018d1 of _0x3b37d2)this['_addSuggestionMarker'](_0x260a6b,_0xaf5569,_0x52eb20,_0x5018d1,u['getMultiRangeId']());return _0x4148f5;}['markInlineFormat'](_0x19cc61,_0x58c22a,_0x4c40a8=null,_0x4f6145={}){if(_0x4c40a8=_0x4c40a8||Gt(_0x58c22a),_0x19cc61['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x285d96=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4c40a8,'accept');return this['forceDefaultExecution'](()=>_0x285d96([_0x19cc61],_0x58c22a,_0x4f6145)),null;}const _0x165f38=this['editor']['plugins']['get']('Users')['me'],_0x5cc9fb=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x526613,meta:_0x43b054}of this['_findSuggestions'](_0x19cc61,'insertion'))_0x43b054['isOwn']&&!_0x43b054['isInsideObject']&&_0x5cc9fb['push'](..._0x526613['getRanges']());}const _0x1f5ea5=function(_0x414d5e,_0x2d9d0e){const _0x126828=[];for(const _0xc461d of _0x2d9d0e){const _0x34d873=_0x414d5e['getIntersection'](_0xc461d);_0x34d873&&_0x126828['push'](_0x34d873);}return _0x126828;}(_0x19cc61,_0x5cc9fb),_0x2d2b07=function(_0x35a409,_0x1b5952){const _0x2b2985=[_0x35a409];for(const _0x515219 of _0x1b5952){let _0x4a9968=0x0;for(;_0x4a9968<_0x2b2985['length'];){const _0x532dbd=_0x2b2985[_0x4a9968]['getDifference'](_0x515219);_0x2b2985['splice'](_0x4a9968,0x1,..._0x532dbd),_0x4a9968+=_0x532dbd['length'];}}return _0x2b2985;}(_0x19cc61,_0x5cc9fb);_0x1f5ea5['length']&&this['_model']['change'](()=>{for(const _0x539286 of _0x1f5ea5){const _0x318239=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4c40a8,'accept');this['forceDefaultExecution'](()=>_0x318239([_0x539286],_0x58c22a,_0x4f6145));}});for(const _0x33e447 of _0x2d2b07){let _0x46c1a8=null,_0x4d76ab=_0x33e447['start'],_0x84763e=_0x33e447['end'];for(const {suggestion:_0x2c8ba6,meta:_0x56066f}of this['_findSuggestions'](_0x33e447,'formatInline')){if(!_0x56066f['isOwn'])continue;if(_0x2c8ba6['subType']!=_0x4c40a8)continue;if(!zt(_0x2c8ba6,_0x4f6145))continue;const _0x463efd=_0x2c8ba6['getFirstRange']();if(_0x463efd['containsRange'](_0x33e447,!0x0))return null;_0x4d76ab=_0x4d76ab['isBefore'](_0x463efd['start'])?_0x4d76ab:_0x463efd['start'],_0x84763e=_0x84763e['isAfter'](_0x463efd['end'])?_0x84763e:_0x463efd['end'],_0x46c1a8?_0x463efd['start']['isBefore'](_0x46c1a8['getFirstRange']()['start'])?(_0x46c1a8['removeMarkers'](),_0x46c1a8=_0x2c8ba6):_0x2c8ba6['removeMarkers']():_0x46c1a8=_0x2c8ba6;}const _0x5ef565=this['_model']['createRange'](_0x4d76ab,_0x84763e);if(_0x46c1a8)this['_setSuggestionRange'](_0x46c1a8,_0x5ef565);else{const _0x1d3b5a=_0x3aa221(),_0x35234a=_0x165f38['id'];this['_setSuggestionData']({'id':_0x1d3b5a,'type':'formatInline:'+_0x4c40a8,'data':_0x58c22a,'createdAt':new Date(),'authorId':_0x35234a,'attributes':_0x4f6145}),this['_addSuggestionMarker']('formatInline:'+_0x4c40a8,_0x1d3b5a,_0x35234a,_0x5ef565);}}return null;}['markBlockFormat'](_0x308a9c,_0xbae35c,_0x44871d=[],_0x521090=null,_0x3b8d8a={}){_0xbae35c['formatGroupId']||(_0xbae35c['formatGroupId']=_0xbae35c['commandName']),_0xbae35c['multipleBlocks']=_0x308a9c['is']('range'),_0x521090=_0x521090||Gt(_0xbae35c);const _0x54c80c=_0x44871d['map'](_0x2d2eac=>Jt(_0x2d2eac,this['_model'])),_0x267316=_0x308a9c['is']('range')?_0x308a9c:Jt(_0x308a9c,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4a026f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x521090,'accept');return this['forceDefaultExecution'](()=>_0x4a026f([_0x267316],_0xbae35c,_0x3b8d8a)),null;}_0x54c80c['push'](_0x267316);let _0x1eb91f=!0x0;for(const _0x513af6 of _0x54c80c)if(!this['_rangeIsInLocalUserInsertion'](_0x513af6)){_0x1eb91f=!0x1;break;}if(_0x1eb91f&&'always'!==this['_trackFormatChanges']){const _0x4e4275=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x521090,'accept');return this['forceDefaultExecution'](()=>_0x4e4275([_0x267316],_0xbae35c,_0x3b8d8a)),null;}let _0x18872a=null,_0x12b8c3=_0x267316['start'],_0x5493a8=_0x267316['end'];for(const {suggestion:_0x33fa77,meta:_0x388556}of this['_findSuggestions'](_0x267316,'formatBlock')){if(!_0x388556['isOwn'])continue;if(_0x388556['isNextTo']||_0x388556['containsRangeInObject']||_0x388556['isInsideObject'])continue;if(_0x33fa77['data']['formatGroupId']!=_0xbae35c['formatGroupId'])continue;if(!zt(_0x33fa77,_0x3b8d8a))continue;const _0x3e8c8e=_0x33fa77['getFirstRange']();if(_0x33fa77['subType']==_0x521090){if(_0x3e8c8e['containsRange'](_0x267316,!0x0))return null;_0x12b8c3=_0x12b8c3['isBefore'](_0x3e8c8e['start'])?_0x12b8c3:_0x3e8c8e['start'],_0x5493a8=_0x5493a8['isAfter'](_0x3e8c8e['end'])?_0x5493a8:_0x3e8c8e['end'],_0x18872a?_0x3e8c8e['start']['isBefore'](_0x18872a['getFirstRange']()['start'])?(_0x18872a['removeMarkers'](),_0x18872a=_0x33fa77):_0x33fa77['removeMarkers']():_0x18872a=_0x33fa77;}else{const _0x4aff03=_0x267316['getIntersection'](_0x3e8c8e);this['_cutOutSuggestionMarker'](_0x33fa77,_0x4aff03);}}const _0x19a606=this['editor']['plugins']['get']('Users')['me'],_0x5163ef=_0x3aa221(),_0x549686=_0x19a606['id'];if(_0x18872a)return this['_setSuggestionRange'](_0x18872a,this['_model']['createRange'](_0x12b8c3,_0x5493a8)),_0x18872a;{const _0x56e387=this['_setSuggestionData']({'id':_0x5163ef,'type':'formatBlock:'+_0x521090,'data':_0xbae35c,'createdAt':new Date(),'authorId':_0x549686,'attributes':_0x3b8d8a});return this['_addSuggestionMarker']('formatBlock:'+_0x521090,_0x5163ef,_0x549686,this['_model']['createRange'](_0x12b8c3,_0x5493a8)),_0x56e387;}}['markMultiRangeBlockFormat'](_0x1b18ed,_0x149843,_0x805d96=[],_0xca7bab=null,_0x58cce3={}){_0x149843['formatGroupId']||(_0x149843['formatGroupId']=_0x149843['commandName']);const _0x52a1a2=_0x1b18ed[0x0];_0x149843['multipleBlocks']=_0x52a1a2['is']('range'),_0xca7bab=_0xca7bab||Gt(_0x149843);const _0x56765a=_0x805d96['map'](_0x4c40ce=>Jt(_0x4c40ce,this['_model'])),_0x1a3f65=_0x52a1a2['is']('range')?_0x1b18ed:_0x1b18ed['map'](_0x4ae0e1=>Jt(_0x4ae0e1,this['_model']));if('never'===this['_trackFormatChanges']){const _0x17510d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xca7bab,'accept');return this['forceDefaultExecution'](()=>_0x17510d(_0x1a3f65,_0x149843,_0x58cce3)),null;}_0x56765a['push'](..._0x1a3f65);let _0x5da8fd=!0x0;for(const _0x4f4fc9 of _0x56765a)if(!this['_rangeIsInLocalUserInsertion'](_0x4f4fc9)){_0x5da8fd=!0x1;break;}if(_0x5da8fd&&'always'!==this['_trackFormatChanges']){const _0x3036d8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xca7bab,'accept');return this['forceDefaultExecution'](()=>_0x3036d8(_0x1a3f65,_0x149843,_0x58cce3)),null;}const _0x1c9cba=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d9807 of this['getSuggestions']()){if(_0x4d9807['author']['id']!=_0x1c9cba['id'])continue;if('formatBlock'!=_0x4d9807['type']||_0x4d9807['data']['formatGroupId']!=_0x149843['formatGroupId'])continue;if(!zt(_0x4d9807,_0x58cce3))continue;const _0x3611bf=_0x4d9807['subType']==_0xca7bab;for(let _0x5984e0=0x0;_0x5984e0<_0x1a3f65['length'];_0x5984e0++){const _0x1ed05d=_0x1a3f65[_0x5984e0];for(const _0x366b94 of _0x4d9807['getMarkers']()){const _0x15ecbf=_0x366b94['getRange']();if(_0x1ed05d['isEqual'](_0x15ecbf)){_0x3611bf?(_0x1a3f65['splice'](_0x5984e0,0x1),_0x5984e0--):_0x4d9807['removeMarker'](_0x366b94['name']);break;}}}}if(0x0==_0x1a3f65['length'])return null;const _0x209105=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xca7bab,'join');for(const _0x181a83 of this['getSuggestions']())if(_0x181a83['author']['id']==_0x1c9cba['id']&&'formatBlock'==_0x181a83['type']&&_0x181a83['data']['formatGroupId']==_0x149843['formatGroupId']&&_0x181a83['subType']==_0xca7bab&&zt(_0x181a83,_0x58cce3)&&(_0x209105(_0x181a83['getRanges'](),_0x1a3f65)||_0x209105(_0x1a3f65,_0x181a83['getRanges']()))){for(const _0x464db3 of _0x1a3f65)_0x181a83['addRange'](_0x464db3);return _0x181a83;}const _0x2b60c1=_0x3aa221(),_0x5a1891=_0x1c9cba['id'],_0x39b82c='formatBlock:'+_0xca7bab,_0x5d79be=this['_setSuggestionData']({'id':_0x2b60c1,'type':_0x39b82c,'data':_0x149843,'createdAt':new Date(),'authorId':_0x5a1891,'attributes':_0x58cce3});for(const _0x42b280 of _0x1a3f65)this['_addSuggestionMarker'](_0x39b82c,_0x2b60c1,_0x5a1891,_0x42b280,u['getMultiRangeId']());return _0x5d79be;}['markDeletion'](_0xfcfa8a,_0x158687=null,_0x3adf53={}){if(_0xfcfa8a['isCollapsed'])return null;const _0x38a0ee=this['editor']['plugins']['get']('Users')['me'],_0x53e613=new _0x23d2d0(_0xfcfa8a['start'],_0xfcfa8a['end']);for(const {suggestion:_0x5a06e4,meta:_0x42a4d6}of this['_findSuggestions'](_0x53e613,'insertion'))if(_0x42a4d6['isOwn']&&!_0x42a4d6['isNextTo']){if(_0x5a06e4['isMultiRange']){const _0x4d2018=_0x5a06e4['getRanges']()['filter'](_0x2197b0=>'$graveyard'!=_0x2197b0['root']['rootName']);_0x4d2018['every'](_0x7634ed=>_0x53e613['containsRange'](_0x7634ed,!0x0))&&_0x5a06e4['discard']();if(_0x4d2018['some'](_0x575b0e=>_0x575b0e['containsRange'](_0x53e613,!0x0))){const _0x18c32c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x158687,'accept');return this['forceDefaultExecution'](()=>_0x18c32c([_0x53e613],null,_0x3adf53)),null;}}else{const _0xdf4f0d=_0x53e613['getIntersection'](_0x5a06e4['getFirstRange']());null!==_0xdf4f0d&&_0x5a06e4['_onDiscard']([_0xdf4f0d],null,_0x3adf53);}}if(_0x53e613['detach'](),_0x53e613['isCollapsed']||'$graveyard'==_0x53e613['root']['rootName'])return null;let _0x34bd98=null,_0x1cfe4e=_0x53e613['start'],_0x79e664=_0x53e613['end'];const _0x5e533c=this['_findSuggestions'](_0x53e613,'deletion');for(const {suggestion:_0x25f9a7,meta:_0x4d5380}of _0x5e533c){const _0x4a9ddc=this['_model']['createRange'](_0x1cfe4e,_0x79e664);if(_0x4d5380['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4d5380['containsRangeInObject']&&!_0x4d5380['isInsideObject'])){if(_0x25f9a7['isMultiRange']){if(!zt(_0x25f9a7,_0x3adf53))continue;let _0x1ac748=!0x0;for(const _0x5e20aa of _0x25f9a7['getRanges']()){if(_0x5e20aa['containsRange'](_0x4a9ddc,!0x0))return _0x25f9a7;_0x4a9ddc['containsRange'](_0x5e20aa)||(_0x1ac748=!0x1);}_0x1ac748&&_0x25f9a7['discard']();}else{const _0xe7960e=_0x25f9a7['getFirstRange']();if(_0xe7960e['containsRange'](_0x4a9ddc,!0x0))return _0x25f9a7;if(!zt(_0x25f9a7,_0x3adf53)){_0x4a9ddc['containsRange'](_0xe7960e)?_0x25f9a7['removeMarkers']():_0xe7960e['containsPosition'](_0x1cfe4e)?_0x1cfe4e=_0xe7960e['end']:_0xe7960e['containsPosition'](_0x79e664)&&(_0x79e664=_0xe7960e['start']);continue;}_0x1cfe4e=_0x1cfe4e['isBefore'](_0xe7960e['start'])?_0x1cfe4e:_0xe7960e['start'],_0x79e664=_0x79e664['isAfter'](_0xe7960e['end'])?_0x79e664:_0xe7960e['end'],_0x3adf53=Object['assign']({},_0x25f9a7['attributes']),_0x34bd98?_0xe7960e['start']['isBefore'](_0x34bd98['getFirstRange']()['start'])?(_0x34bd98['removeMarkers'](),_0x34bd98=_0x25f9a7):_0x25f9a7['removeMarkers']():_0x34bd98=_0x25f9a7;}}}if(_0x34bd98)return this['_setSuggestionRange'](_0x34bd98,this['_model']['createRange'](_0x1cfe4e,_0x79e664)),_0x34bd98;{const _0x2bfafe=_0x3aa221(),_0x553128=this['_model']['createRange'](_0x1cfe4e,_0x79e664),_0x4527e4=_0x38a0ee['id'],_0x3894ba=_0x158687?'deletion:'+_0x158687:'deletion',_0x513c04=this['_setSuggestionData']({'id':_0x2bfafe,'type':_0x3894ba,'createdAt':new Date(),'authorId':_0x4527e4,'attributes':_0x3adf53});return this['_addSuggestionMarker'](_0x3894ba,_0x2bfafe,_0x4527e4,_0x553128),_0x513c04;}}['markMultiRangeDeletion'](_0x40ad3d,_0x520a99='multi',_0xf79b19={}){const _0x4199f9=this['editor']['plugins']['get']('Users')['me'],_0x3b30db=_0x40ad3d['map'](_0x46638f=>new _0x23d2d0(_0x46638f['start'],_0x46638f['end'])),_0x5cdd95=new Set();for(const {suggestion:_0x4f4fe6,meta:_0x39c0f3}of this['_findSuggestions'](_0x3b30db,'insertion'))_0x39c0f3['isOwn']&&!_0x39c0f3['isNextTo']&&_0x5cdd95['add'](_0x4f4fe6);for(const _0x2b3b45 of _0x5cdd95)if(_0x2b3b45['isMultiRange']){const _0xbf41ff=_0x2b3b45['getRanges']();(!_0x2b3b45['attributes']||!_0x2b3b45['attributes']['skipNestingCheck'])&&(_0xbf41ff['every'](_0x361496=>_0x3b30db['some'](_0x4e7b29=>_0x4e7b29['containsRange'](_0x361496,!0x0)))&&_0x2b3b45['discard']());if(_0x3b30db['every'](_0x22102a=>_0xbf41ff['some'](_0x349680=>_0x349680['containsRange'](_0x22102a,!0x0)))){const _0x42f50d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x520a99,'accept');return this['forceDefaultExecution'](()=>_0x42f50d(_0x40ad3d,null,_0xf79b19)),null;}}else{const _0x3f8947=_0x2b3b45['getFirstRange']();_0x3b30db['some'](_0x48182e=>_0x48182e['containsRange'](_0x3f8947,!0x0))&&_0x2b3b45['discard']();if(_0x3b30db['every'](_0x35d137=>_0x3f8947['containsRange'](_0x35d137,!0x0))){const _0x40b57b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x520a99,'accept');return this['forceDefaultExecution'](()=>_0x40b57b(_0x3b30db,null,_0xf79b19)),null;}}const _0xe38be7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x520a99,'join');let _0x12bc36=null;for(const _0x2e46fa of this['getSuggestions']())if(_0x2e46fa['author']['id']==_0x4199f9['id']&&_0x2e46fa['isInContent']&&'deletion'==_0x2e46fa['type']&&_0x2e46fa['subType']==_0x520a99&&zt(_0x2e46fa,_0xf79b19)&&(_0xe38be7(_0x2e46fa['getRanges'](),_0x3b30db)||_0xe38be7(_0x3b30db,_0x2e46fa['getRanges']()))){if(_0x12bc36){if(_0x2e46fa['commentThread']&&_0x2e46fa['commentThread']['length'])continue;for(const _0x33db6f of _0x2e46fa['getRanges']())_0x12bc36['isIntersectingWithRange'](_0x33db6f)||_0x12bc36['addRange'](_0x33db6f);_0x2e46fa['removeMarkers']();}else{_0x12bc36=_0x2e46fa;for(const _0x5bc462 of _0x3b30db)_0x2e46fa['isIntersectingWithRange'](_0x5bc462)||_0x2e46fa['addRange'](_0x5bc462);}}if(_0x12bc36)return _0x12bc36;_0x5cdd95['clear']();for(const {suggestion:_0x33a7b3,meta:_0x1bffdb}of this['_findSuggestions'](_0x3b30db,'deletion'))_0x1bffdb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1bffdb['containsRangeInObject']&&!_0x1bffdb['isInsideObject'])&&zt(_0x33a7b3,_0xf79b19)&&_0x5cdd95['add'](_0x33a7b3);for(const _0x874f2a of _0x5cdd95){const _0x2b5718=_0x874f2a['getRanges']();if(!_0xf79b19||!_0xf79b19['skipNestingCheck']){if(_0x3b30db['every'](_0x341e08=>_0x2b5718['some'](_0x1886ca=>_0x1886ca['containsRange'](_0x341e08,!0x0))))return _0x874f2a;}(!_0x874f2a['attributes']||!_0x874f2a['attributes']['skipNestingCheck'])&&(_0x2b5718['every'](_0x655ddf=>_0x3b30db['some'](_0x2cd088=>_0x2cd088['containsRange'](_0x655ddf,!0x0)))&&_0x874f2a['discard']());}const _0x4ed581=_0x3aa221(),_0x1b494a=_0x4199f9['id'],_0x5b26ac='deletion:'+_0x520a99,_0x2aa1f3=this['_setSuggestionData']({'id':_0x4ed581,'type':_0x5b26ac,'createdAt':new Date(),'authorId':_0x1b494a,'attributes':_0xf79b19});for(const _0x2f816e of _0x3b30db)_0x2f816e['detach'](),_0x2f816e['isCollapsed']||'$graveyard'==_0x2f816e['root']['rootName']||this['_addSuggestionMarker'](_0x5b26ac,_0x4ed581,_0x1b494a,_0x2f816e,u['getMultiRangeId']());return _0x2aa1f3;}['markAttributeChange'](_0x262854,_0x40d75c,_0x9828b5,_0xd7db31,_0x23bfb7){if(_0x262854['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4bcb81=this['editor']['plugins']['get']('Users')['me']['id'],_0x3703c2=Array['from'](this['_suggestions']['values']())['filter'](_0x297126=>'attribute'==_0x297126['type']&&_0x297126['data']['key']==_0x40d75c&&_0x297126['isIntersectingWithRange'](_0x262854));if('default'===this['_trackFormatChanges']){const _0x244699=this['_findSuggestions'](_0x262854,'insertion')['filter'](({meta:_0x1992db})=>_0x1992db['isOwn']&&!_0x1992db['isInsideObject']&&!_0x1992db['isNextTo'])['map'](({suggestion:_0x5e5374})=>_0x5e5374);_0x3703c2['unshift'](..._0x244699);}const _0x19dfdd=new Map([[_0x262854,_0x9828b5]]);for(const _0x1a6781 of _0x3703c2){const _0x3c544c='attribute'==_0x1a6781['type']?_0x1a6781['data']['oldValue']:void 0x0,_0x321061=_0x1a6781['getFirstRange'](),_0x6376b=Array['from'](_0x19dfdd['keys']())['find'](_0x589a1d=>_0x589a1d['isIntersecting'](_0x321061));if(!_0x6376b)continue;const _0x200dc2=_0x6376b['getDifference'](_0x321061);this['_isBlockAttribute'](_0x40d75c)&&'insertion'==_0x1a6781['type']&&0x0!=_0x200dc2['length']||(_0x19dfdd['delete'](_0x6376b),_0x200dc2['forEach'](_0x533c64=>{_0x19dfdd['set'](_0x533c64,_0x9828b5);}),'insertion'!=_0x1a6781['type']&&_0x3c544c!=_0xd7db31&&_0x19dfdd['set'](_0x6376b['getIntersection'](_0x321061),_0x3c544c));}const _0x4a7d4d=[];for(const [_0x57705d,_0x6e6ba3]of _0x19dfdd){const _0x13e107=_0x3aa221(),_0x52446a={'key':_0x40d75c,'oldValue':_0x6e6ba3,'newValue':_0xd7db31};_0x40d75c['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':_0x40d75c});const _0x1ad524=('attribute:'+(_0x40d75c+'|'+Gt({'newValue':_0xd7db31})))['substring'](0x0,0x3c),_0x303121=this['_setSuggestionData']({'id':_0x13e107,'type':_0x1ad524,'data':_0x52446a,'createdAt':new Date(),'authorId':_0x4bcb81,'attributes':_0x23bfb7});_0x4a7d4d['push'](_0x303121),this['_addSuggestionMarker'](_0x1ad524,_0x13e107,_0x4bcb81,_0x57705d);}return _0x4a7d4d;}['enableDefaultAttributesIntegration'](_0x51367d){this['enableCommand'](_0x51367d,(_0xd84b80,..._0x4247ea)=>{this['_recordAttributeChanges'](()=>{_0xd84b80(..._0x4247ea);});});}['registerBlockAttribute'](_0x5ed0fe){this['_blockAttributeKeys']['add'](_0x5ed0fe);}['registerInlineAttribute'](_0x27f76e){this['_inlineAttributeKeys']['add'](_0x27f76e);}['_getAttributeKey'](_0x3af640){return'attribute'==_0x3af640['type']?_0x3af640['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x240c14,_0x1caa98){const _0x187cf9=_0x240c14['getFirstMarker']();this['_model']['change'](_0x328dbf=>{_0x328dbf['updateMarker'](_0x187cf9,{'range':_0x1caa98});});}['_addThreadToSuggestion'](_0x58d36e){const _0x5be08e=_0x58d36e['id'],_0x55e520=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5be08e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x55e520,'threadId':_0x5be08e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x17b107=this['_commentsRepository']['getCommentThread'](_0x5be08e);_0x17b107['unbind']('isRemovable'),_0x17b107['isRemovable']=!0x1,_0x58d36e['commentThread']=_0x17b107;}['_checkSuggestionCorrectness'](_0x256f65,_0x3fd149,_0x2db360,_0x4a52a9){if(_0x256f65['type']!=_0x3fd149||_0x256f65['subType']!=_0x2db360||_0x256f65['creator']['id']!=_0x4a52a9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1267e3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x319500,_0x267c14){const _0x3b43f1=_0x319500['getFirstRange']();if(_0x267c14['isEqual'](_0x3b43f1))_0x319500['removeMarkers']();else{if(_0x3b43f1['containsRange'](_0x267c14)){const _0x5ba2f4=this['_model']['createPositionAt'](_0x267c14['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x319500,this['_model']['createRange'](_0x3b43f1['start'],_0x5ba2f4));const _0x5f5b41=_0x3aa221(),_0x2dcac5=_0x319500['creator']['id'],_0x423402=_0x319500['type']+':'+_0x319500['subType'];this['_setSuggestionData']({'id':_0x5f5b41,'type':_0x423402,'createdAt':new Date(),'authorId':_0x2dcac5,'data':_0x319500['data'],'attributes':_0x319500['attributes']});const _0x51b1d9=this['_model']['createPositionAt'](_0x267c14['end']['parent'],'after'),_0x4c5e8f=this['_model']['createRange'](_0x51b1d9,_0x3b43f1['end']);this['_addSuggestionMarker'](_0x423402,_0x5f5b41,_0x2dcac5,_0x4c5e8f);}else{if(_0x3b43f1['containsPosition'](_0x267c14['start'])){const _0x37fe72=this['_model']['createPositionAt'](_0x267c14['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x319500,this['_model']['createRange'](_0x3b43f1['start'],_0x37fe72));}else{const _0x59e669=this['_model']['createPositionAt'](_0x267c14['end']['parent'],'after');this['_setSuggestionRange'](_0x319500,this['_model']['createRange'](_0x59e669,_0x3b43f1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x25ab6c){for(const {suggestion:_0x44c86b,meta:_0x45e4ac}of this['_findSuggestions'](_0x25ab6c,'insertion')){if(!_0x45e4ac['isOwn'])continue;const _0x2d5894=_0x44c86b['getRanges']();for(const _0x2d289e of _0x2d5894)if(!_0x25ab6c['getDifference'](_0x2d289e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x54b3b6){const _0xed49e9=this['editor']['plugins']['get']('Users')['getUser'](_0x54b3b6);if(!_0xed49e9)throw new _0x1267e3('track-changes-user-not-found',this);return _0xed49e9;}['_getExternalAuthor'](_0x9bf97a){const _0x2b679d=this['editor']['plugins']['get']('Users'),_0x4738bb=_0x116e81('external:'+_0x9bf97a),_0x37c988=_0x2b679d['getUser'](_0x4738bb);return _0x37c988||_0x2b679d['addUser']({'id':_0x4738bb,'name':_0x9bf97a});}['_createSuggestion'](_0x4f9a21,_0x33b3d5,_0x1821be,_0x55ec59,_0x32e921){const _0x410bd8=this['_getAuthorFromId'](_0x55ec59),_0x102643=this['_suggestionFactory']['buildSuggestion'](_0x4f9a21,_0x33b3d5,_0x1821be,_0x410bd8,_0x32e921,_0x566d07=>{this['_updateSuggestionData'](_0x1821be,{'attributes':_0x566d07});const _0x18b688=this['getSuggestion'](_0x1821be);this['_joinWithAdjacentSuggestions'](new Set([_0x18b688])),this['_refreshSuggestionsChain'](new Set([_0x18b688]));});return this['listenTo'](_0x102643,'accept',()=>{this['_updateSuggestionData'](_0x1821be,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x102643,'discard',()=>{this['_updateSuggestionData'](_0x1821be,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1821be,_0x102643),this['_suggestionState']['set'](_0x102643,'notReady'),_0x102643;}['_splitMarkerName'](_0x5cbf65){const _0x63ff3a=_0x5cbf65['split'](':');return{'group':_0x63ff3a[0x0],'type':_0x63ff3a[0x1],'subType':_0x63ff3a['length']>=0x5?_0x63ff3a[0x2]:null,'id':_0x63ff3a['length']<0x5?_0x63ff3a[0x2]:_0x63ff3a[0x3],'authorId':_0x63ff3a['length']<0x5?_0x63ff3a[0x3]:_0x63ff3a[0x4],'markerCount':0x6==_0x63ff3a['length']?_0x63ff3a[0x5]:null};}['_breakSuggestionMarker'](_0x4eff25,_0x3b8d9f,_0x5f2038){const _0x587525=_0x4eff25['getFirstRange'](),_0x36ef03=_0x587525['start'],_0x354785=_0x587525['end'];this['_setSuggestionRange'](_0x4eff25,this['_model']['createRange'](_0x36ef03,_0x3b8d9f));const _0x52d39b=_0x3aa221(),_0x160d1d=_0x4eff25['creator']['id'],_0x495e28=_0x4eff25['type']+(_0x4eff25['subType']?':'+_0x4eff25['subType']:'');this['_setSuggestionData']({'id':_0x52d39b,'type':_0x495e28,'createdAt':new Date(),'authorId':_0x160d1d,'originalSuggestionId':_0x4eff25['id'],'attributes':_0x4eff25['attributes'],'data':_0x4eff25['data']});const _0x5b55b8=this['_getAttributeKey'](_0x4eff25);('formatBlock'==_0x4eff25['type']||_0x5b55b8&&this['_isBlockAttribute'](_0x5b55b8))&&(_0x5f2038=this['_model']['createPositionBefore'](_0x5f2038['parent'])),this['_addSuggestionMarker'](_0x495e28,_0x52d39b,_0x160d1d,this['_model']['createRange'](_0x5f2038,_0x354785));}['_findSuggestions'](_0x3c653b,_0xcfacd4=null){const _0x5a4b6a=[],_0x5d0329=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3c653b)||(_0x3c653b=[_0x3c653b]);for(const _0x36d870 of this['getSuggestions']()){if(!_0x36d870['isInContent'])continue;if(_0xcfacd4&&_0x36d870['type']!=_0xcfacd4)continue;let _0x1d43a9=!0x1;for(const _0x5beed9 of _0x36d870['getRanges']()){for(const _0x147bc1 of _0x3c653b){const _0x4b2e74=_0x147bc1['start']['isEqual'](_0x5beed9['end'])||_0x147bc1['end']['isEqual'](_0x5beed9['start']);if(_0x4b2e74||_0x147bc1['getIntersection'](_0x5beed9)){const _0x3c6af0=_0x147bc1['containsRange'](_0x5beed9)&&Ut(this['_model']['schema'],_0x5beed9['start'],_0x147bc1),_0x2cd481=_0x5beed9['containsRange'](_0x147bc1)&&Ut(this['_model']['schema'],_0x147bc1['start'],_0x5beed9);_0x5a4b6a['push']({'suggestion':_0x36d870,'meta':{'isOwn':_0x5d0329==_0x36d870['author'],'isNextTo':_0x4b2e74,'isInsideObject':_0x3c6af0,'containsRangeInObject':_0x2cd481}}),_0x1d43a9=!0x0;break;}}if(_0x1d43a9)break;}}return _0x5a4b6a;}['_addSuggestionMarker'](_0x3ea62c,_0x7c918d,_0x85a361,_0xe6c140,_0x252dcc){this['_model']['change'](_0x29019d=>{let _0x264b8b='suggestion:'+_0x3ea62c+':'+_0x7c918d+':'+_0x85a361;_0x252dcc&&(_0x264b8b=_0x264b8b+':'+_0x252dcc),_0x29019d['addMarker'](_0x264b8b,{'range':_0xe6c140,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x26ba31){const _0x3eeebf=_0x26ba31['previous'],_0x3dd79a=_0x26ba31['next'];_0x26ba31['previous']=null,_0x26ba31['next']=null,null!=_0x3eeebf&&_0x3eeebf['next']==_0x26ba31&&(_0x3eeebf['next']=_0x3dd79a),null!=_0x3dd79a&&_0x3dd79a['previous']==_0x26ba31&&(_0x3dd79a['previous']=_0x3eeebf),'ready'==this['_suggestionState']['get'](_0x26ba31)&&(this['_suggestionState']['set'](_0x26ba31,'removed'),this['fire']('suggestionUnloaded',_0x26ba31,_0x3eeebf,_0x3dd79a));}['_setSuggestionData'](_0x3572ac){const _0x3befd8=_0x3572ac['id'],_0x4f7c87=this['addSuggestionData'](_0x3572ac);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4f0b8a=this['editor']['plugins']['get']('PendingActions'),_0x2bcc01=_0x4f7c87['hasComments'],_0x51ea32=_0x4f7c87['subType']?_0x4f7c87['type']+':'+_0x4f7c87['subType']:_0x4f7c87['type'],_0x438858=this['editor']['locale'],_0x3bd8fb=_0x4f0b8a['add'](o(_0x438858,'PENDING_ACTION_SUGGESTION')),_0x198f1c={'id':_0x3befd8,'type':_0x51ea32,'hasComments':_0x2bcc01,'data':_0x3572ac['data']||null,'originalSuggestionId':_0x3572ac['originalSuggestionId']||null,'attributes':_0x4f7c87['attributes']};this['_adapter']['addSuggestion'](_0x198f1c)['then'](_0x33ec9f=>{_0x4f7c87['_saved']=!0x0,_0x4f0b8a['remove'](_0x3bd8fb),_0x33ec9f&&_0x33ec9f['createdAt']&&(this['_suggestions']['get'](_0x3befd8)['createdAt']=_0x33ec9f['createdAt']);})['catch'](_0x534fc0=>{throw _0x11a33c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4f7c87['discard']();}),_0x4f7c87['stopListening'](),this['_suggestions']['delete'](_0x4f7c87['id']),this['_suggestionState']['delete'](_0x4f7c87),_0x534fc0;});}return _0x4f7c87;}['_isBlockAttribute'](_0x271d35){return this['_blockAttributeKeys']['has'](_0x271d35);}['_updateSuggestionData'](_0x119c9d,_0x1d9b4b){const _0x84bdc9=this['editor']['plugins']['get']('PendingActions'),_0x53f275=this['getSuggestion'](_0x119c9d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x53f275['_saved']){const _0x56d332=_0x84bdc9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x119c9d,_0x1d9b4b)['then'](()=>{_0x84bdc9['remove'](_0x56d332);});}else _0x53f275['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x119c9d,_0x1d9b4b);});}}['_getSuggestionData'](_0x1519bb){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1267e3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1519bb);}['_handleNewSuggestionMarker'](_0x4530ef){const {id:_0x51ee5f,type:_0x1b2f70,subType:_0x5b34f6,authorId:_0xb7ded1}=this['_splitMarkerName'](_0x4530ef),_0x172e3b=this['_suggestions']['get'](_0x51ee5f)||this['_createSuggestion'](_0x1b2f70,_0x5b34f6,_0x51ee5f,_0xb7ded1,{});switch(this['_checkSuggestionCorrectness'](_0x172e3b,_0x1b2f70,_0x5b34f6,_0xb7ded1),this['_suggestionState']['get'](_0x172e3b)){case'notReady':this['_getSuggestionData'](_0x51ee5f)['then'](_0xfd092a=>{let _0x1e9ca4=Promise['resolve']();_0xfd092a['hasComments']&&(_0x1e9ca4=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x51ee5f})),_0x1e9ca4['then'](()=>{this['addSuggestionData'](_0xfd092a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x172e3b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x51ee5f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x172e3b,'ready'),this['fire']('suggestionLoaded',_0x172e3b);break;case'ready':this['fire']('suggestionChanged',_0x172e3b);}return _0x172e3b['addMarkerName'](_0x4530ef),_0x172e3b;}['_refreshSuggestionsChain'](_0x15ac15){const _0x12c58c=Array['from'](_0x15ac15),_0x32245f=_0x12c58c['filter'](_0x2a41c3=>'attribute'==_0x2a41c3['type']);this['_refreshAttributeSuggestionsChain'](_0x32245f);const _0x26ea3f=_0x12c58c['filter'](_0x317dc1=>!_0x317dc1['isMultiRange']&&'attribute'!=_0x317dc1['type']),_0x5caf88=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28be92=>!_0x28be92['isMultiRange']&&'attribute'!=_0x28be92['type']),_0x4480d0=_0x5caf88['filter'](_0x3c3a8d=>!_0x15ac15['has'](_0x3c3a8d)),_0x5bdc04=new Map(_0x5caf88['map'](_0x3af5d0=>[_0x3af5d0,this['_suggestionFactory']['getSuggestionCallback'](_0x3af5d0['type'],_0x3af5d0['subType'],'chain')])),_0x219fd6=new Map(_0x5caf88['map'](_0x1a49df=>[_0x1a49df,_0x1a49df['getFirstRange']()])),_0x413056=new Set(),_0x5613ad=new Set();for(let _0x4c65b5=0x0;_0x4c65b5<_0x26ea3f['length'];_0x4c65b5++)_0x682b9e(_0x26ea3f[_0x4c65b5],_0x26ea3f,_0x4c65b5+0x1);for(let _0x17ff32=0x0;_0x17ff32<_0x26ea3f['length'];_0x17ff32++)_0x682b9e(_0x26ea3f[_0x17ff32],_0x4480d0,0x0);const _0x4d55d3=new Set();for(let _0x118a6a=0x0;_0x118a6a<_0x26ea3f['length'];_0x118a6a++){const _0x36b725=_0x26ea3f[_0x118a6a];!_0x5613ad['has'](_0x36b725)&&_0x36b725['previous']&&(_0x4d55d3['add'](_0x36b725['previous']),_0x36b725['previous']['next']===_0x36b725&&(_0x36b725['previous']['next']=null),_0x36b725['previous']=null),!_0x413056['has'](_0x36b725)&&_0x36b725['next']&&(_0x4d55d3['add'](_0x36b725['next']),_0x36b725['next']['previous']===_0x36b725&&(_0x36b725['next']['previous']=null),_0x36b725['next']=null);}function _0x682b9e(_0x3d5e5e,_0x5d393c,_0x579d4f){for(let _0x15d994=_0x579d4f;_0x15d994<_0x5d393c['length'];_0x15d994++){const _0x34ff5f=_0x2c7a3e(_0x3d5e5e,_0x5d393c[_0x15d994]);_0x34ff5f&&(_0x34ff5f[0x0]['next']=_0x34ff5f[0x1],_0x34ff5f[0x1]['previous']=_0x34ff5f[0x0],_0x413056['add'](_0x34ff5f[0x0]),_0x5613ad['add'](_0x34ff5f[0x1]));}}function _0x2c7a3e(_0x3a523a,_0x2fee87){if(_0x3a523a['author']['id']!==_0x2fee87['author']['id'])return null;const _0x44b3a8=_0x5bdc04['get'](_0x3a523a)(_0x3a523a,_0x2fee87,_0x219fd6['get'](_0x3a523a),_0x219fd6['get'](_0x2fee87));if(!_0x44b3a8)return null;return _0x5bdc04['get'](_0x2fee87)(_0x3a523a,_0x2fee87,_0x219fd6['get'](_0x3a523a),_0x219fd6['get'](_0x2fee87))?_0x44b3a8[0x1]['commentThread']&&_0x44b3a8[0x1]['commentThread']['length']?null:_0x44b3a8:null;}_0x4d55d3['size']&&this['_refreshSuggestionsChain'](_0x4d55d3);}['_refreshAttributeSuggestionsChain'](_0x2c4ab6){if(0x0==_0x2c4ab6['length'])return;const _0xd5ffdc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f35ec=>'attribute'==_0x1f35ec['type']&&_0x1f35ec['_isDataLoaded']),_0x2eb1c3=[],_0x4623db=new Map();for(const _0x1f217a of _0xd5ffdc){const _0x7176f1=_0x116e81(_0x1f217a['attributes']);_0x4623db['has'](_0x7176f1)||(_0x4623db['set'](_0x7176f1,_0x2eb1c3['length']),_0x2eb1c3['push']([]));const _0x5d021d=_0x4623db['get'](_0x7176f1);_0x2eb1c3[_0x5d021d]['push'](_0x1f217a);}!(function(){_0x2eb1c3['sort']((_0xa7a977,_0x4b0d37)=>{const _0x3f51c5=_0xa7a977[0x0]['createdAt'],_0x154f01=_0x4b0d37[0x0]['createdAt'];return _0x3f51c5==_0x154f01?_0xa7a977[0x0]['attributes']['groupId']<_0x4b0d37[0x0]['attributes']['groupId']?-0x1:0x1:_0x3f51c5<_0x154f01?-0x1:0x1;});for(const _0x338cb8 of _0x2eb1c3)_0x338cb8['sort']((_0x127f9b,_0x10cd34)=>_0x127f9b['id']<_0x10cd34['id']?-0x1:0x1);}());for(let _0x412e82=0x0;_0x412e82<_0x2eb1c3['length'];_0x412e82++){if(0x0==_0x2eb1c3[_0x412e82]['length'])continue;const _0x17d3e9=[];for(let _0x4156b6=_0x412e82+0x1;_0x4156b6<_0x2eb1c3['length'];_0x4156b6++)0x0!=_0x2eb1c3[_0x4156b6]['length']&&_0x2d87ec(_0x2eb1c3[_0x412e82],_0x2eb1c3[_0x4156b6])&&_0x17d3e9['push'](_0x4156b6);for(const _0x100098 of _0x17d3e9)_0x2eb1c3[_0x412e82]=_0x2eb1c3[_0x412e82]['concat'](_0x2eb1c3[_0x100098]),_0x2eb1c3[_0x100098]=[];}for(const _0x122399 of _0x2eb1c3)for(let _0x102601=0x0;_0x102601<_0x122399['length'];_0x102601++){const _0x1a3984=_0x122399[_0x102601+0x1]||null;_0x122399[_0x102601]['next']!==_0x1a3984&&(_0x122399[_0x102601]['next']=_0x1a3984);}for(const _0x57dd5a of _0x2eb1c3)for(let _0x3b683c=0x0;_0x3b683c<_0x57dd5a['length'];_0x3b683c++){const _0x4c6ba6=_0x57dd5a[_0x3b683c-0x1]||null;_0x57dd5a[_0x3b683c]['previous']!==_0x4c6ba6&&(_0x57dd5a[_0x3b683c]['previous']=_0x4c6ba6);}function _0x2d87ec(_0x30a66d,_0x24984e){if(_0x30a66d[0x0]['attributes']['groupId']!==_0x24984e[0x0]['attributes']['groupId']&&_0x30a66d[0x0]['author']!==_0x24984e[0x0]['author'])return!0x1;if(!function(_0x237005,_0x31d0bd){if(!_0x237005['hasComments']&&!_0x31d0bd['hasComments'])return!0x0;if(_0x237005['hasComments']&&_0x31d0bd['hasComments'])return!0x1;if(_0x237005['hasComments']&&_0x31d0bd['createdAt']<_0x237005['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x31d0bd['hasComments']&&_0x237005['createdAt']<_0x31d0bd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x30a66d[0x0],_0x24984e[0x0]))return!0x1;const _0x32a145=xt(_0x30a66d[0x0]['attributes'],'groupId'),_0x5a6f3f=xt(_0x24984e[0x0]['attributes'],'groupId');if(!_0xf91c94(_0x32a145,_0x5a6f3f))return!0x1;return!!_0x30a66d['every'](_0x58fcf7=>_0x24984e['some'](_0x1e0bdf=>_0x58fcf7['getFirstRange']()['isEqual'](_0x1e0bdf['getFirstRange']())))&&_0x24984e['every'](_0x34c321=>_0x30a66d['some'](_0xe45f61=>_0x34c321['getFirstRange']()['isEqual'](_0xe45f61['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x496c3e){const _0x399276=Array['from'](_0x496c3e),_0x16994d=this['getSuggestions']({'skipNotAttached':!0x0}),_0xe205da=_0x16994d['filter'](_0x47a047=>!_0x496c3e['has'](_0x47a047)),_0x2dc1ee=new Map(_0x399276['map'](_0x156a9f=>[_0x156a9f,this['_suggestionFactory']['getSuggestionCallback'](_0x156a9f['type'],_0x156a9f['subType'],'join')])),_0xf6b2f7=new Map(_0x16994d['map'](_0xcf21c=>[_0xcf21c,_0xcf21c['getRanges']()]));for(let _0x352699=0x0;_0x352699<_0x399276['length'];_0x352699++){if(_0xe7544d(this,_0x399276[_0x352699],_0x399276,_0x352699+0x1))return!0x0;}for(let _0x1b2748=0x0;_0x1b2748<_0x399276['length'];_0x1b2748++){if(_0xe7544d(this,_0x399276[_0x1b2748],_0xe205da,0x0))return!0x0;}return!0x1;function _0xe7544d(_0x1063f0,_0x122a05,_0x3ab8a4,_0x5de8){for(let _0x382571=_0x5de8;_0x382571<_0x3ab8a4['length'];_0x382571++){const _0x4229ae=_0x3ab8a4[_0x382571];if(_0x4229ae['type']!==_0x122a05['type']||_0x4229ae['author']['id']!==_0x122a05['author']['id']||_0x4229ae['subType']!==_0x122a05['subType'])continue;if(!qt(_0x122a05,_0x4229ae))continue;if('attribute'==_0x122a05['type']&&_0x122a05['data']['oldValue']!=_0x4229ae['data']['oldValue'])continue;if('attribute'==_0x122a05['type']&&_0x1063f0['_isBlockAttribute'](_0x122a05['data']['key']))continue;if('formatBlock'==_0x122a05['type']){const _0x11c7b0=_0x1063f0['editor']['model'],_0x32c452=_0x122a05['getContainedElement']();if(_0x32c452&&(_0x11c7b0['schema']['isObject'](_0x32c452)||_0x11c7b0['schema']['isLimit'](_0x32c452)))continue;}const _0x363c24=_0x2dc1ee['get'](_0x122a05),_0xe6e81a=_0xf6b2f7['get'](_0x122a05),_0x21eba5=_0xf6b2f7['get'](_0x4229ae),_0x31d956=_0x122a05['commentThread']&&_0x122a05['commentThread']['length'],_0x3fea3b=_0x4229ae['commentThread']&&_0x4229ae['commentThread']['length'];if(!_0x31d956&&_0x363c24(_0x21eba5,_0xe6e81a))return _0x1063f0['_joinSuggestions'](_0x4229ae,_0x122a05),_0xf6b2f7['delete'](_0x122a05),!0x0;if(!_0x3fea3b&&_0x363c24(_0xe6e81a,_0x21eba5))return _0x1063f0['_joinSuggestions'](_0x122a05,_0x4229ae),_0xf6b2f7['delete'](_0x4229ae),!0x0;}return!0x1;}}['_joinSuggestions'](_0x363e13,_0x437a89){if(_0x363e13['isMultiRange']){for(const _0x4d847e of _0x437a89['getRanges']())_0x363e13['addRange'](_0x4d847e);}else{const _0x42d21b=_0x437a89['getFirstRange']()['end'];this['_setSuggestionRange'](_0x363e13,this['_model']['createRange'](_0x363e13['getFirstRange']()['start'],_0x42d21b));}_0x437a89['removeMarkers']();}['_getMarkerAnnouncementText'](_0x56c12f,_0xcab3d2,_0x4a0f20){const _0x2b0654=_0x56c12f['startsWith']('format')||_0x56c12f['startsWith']('attribute')?'FORMATTING':_0x56c12f['toUpperCase']();return o(this['editor']['locale'],_0xcab3d2+'_'+_0x2b0654+'_SUGGESTION_ANNOUNCEMENT',_0x4a0f20);}['_initAriaMarkerChangeAnnouncements'](){const _0x5b3256=this['editor'];if(!_0x5b3256['ui'])return;const {ariaLiveAnnouncer:_0x4d588b}=_0x5b3256['ui'];_0xe8c575(this['_model'],({left:_0x2dedfe,entered:_0x23e28a})=>{for(const _0x336cd5 of _0x2dedfe){const {group:_0x119613,type:_0x3a9f1a}=this['_splitMarkerName'](_0x336cd5['name']);if('suggestion'===_0x119613){_0x4d588b['announce'](this['_getMarkerAnnouncementText'](_0x3a9f1a,'LEAVE'));break;}}for(const _0x1db92c of _0x23e28a){const {group:_0x2f5988,type:_0x3d6ca6}=this['_splitMarkerName'](_0x1db92c['name']);if('suggestion'===_0x2f5988){_0x4d588b['announce'](this['_getMarkerAnnouncementText'](_0x3d6ca6,'ENTER',_0x35273a(_0x369e65)));break;}}});}['_processAttributeChanges'](_0x4e1249){if(this['_recordAttributeSuggestions'])return!0x1;const _0x330b29=this['editor'],_0x44a0e8=_0x330b29['model']['document']['differ']['getChanges']();if(0x0==_0x44a0e8['length'])return!0x1;const _0x45b5c9=[],_0x68d220=_0x44a0e8['filter'](_0x5222b8=>'attribute'==_0x5222b8['type']),_0x557609=_0x44a0e8['filter'](_0x2323e3=>'insert'==_0x2323e3['type']&&'$text'!=_0x2323e3['name']),_0x492c4d=_0x44a0e8['filter'](_0x544761=>'remove'==_0x544761['type']&&'$text'!=_0x544761['name']);for(const _0x133ad8 of _0x68d220)_0x45b5c9['push']({'key':_0x133ad8['attributeKey'],'newValue':_0x133ad8['attributeNewValue'],'oldValue':_0x133ad8['attributeOldValue'],'range':Lt(_0x133ad8['range'],_0x330b29['model'])});for(const _0x44e8f8 of _0x557609){const _0x5e75b0=_0x492c4d['find'](_0x3ba0db=>_0x3ba0db['position']['isEqual'](_0x44e8f8['position']));_0x5e75b0&&_0x45b5c9['push']({'key':m,'newValue':_0x44e8f8['name'],'oldValue':_0x5e75b0['name'],'range':_0x330b29['model']['createRangeOn'](_0x44e8f8['position']['nodeAfter'])});}return 0x0!=_0x45b5c9['length']&&this['_reduceExistingSuggestions'](_0x4e1249,_0x45b5c9);}['_processAttributeSuggestions'](_0x1ade2d){let _0x39fa04=!0x1;const _0x375f96=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x38fa83=>_0x38fa83['data']['newRange']&&_0x38fa83['name']['startsWith']('suggestion:attribute:'));for(const _0x58dc75 of _0x375f96){const {subType:_0x48f909,id:_0x4c85c2}=this['_splitMarkerName'](_0x58dc75['name']),_0x4f5564=_0x48f909['split']('|')[0x0];for(const _0x415c25 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x415c25['id']!=_0x4c85c2&&'attribute'==_0x415c25['type']&&_0x415c25['data']&&_0x415c25['data']['key']==_0x4f5564&&_0x415c25['getFirstRange']()['isIntersecting'](_0x58dc75['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x415c25,_0x58dc75['data']['newRange'],_0x1ade2d),_0x39fa04=!0x0);}return _0x39fa04;}['_recordAttributeChanges'](_0xf5d89d){this['_recordAttributeSuggestions']=!0x0,_0xf5d89d();}['_isRegisteredAttribute'](_0x3abb74){const _0x5d265e=this['_isBlockAttribute'](_0x3abb74),_0x130134=this['_inlineAttributeKeys']['has'](_0x3abb74);return _0x5d265e||_0x130134;}['_reduceExistingSuggestions'](_0x282c9b,_0x4fdc10){if(0x0==_0x4fdc10['length'])return!0x1;let _0x2835a2=!0x1;for(const _0x236929 of _0x4fdc10){const _0xb198d4=this['_findSuggestions'](_0x236929['range'],'attribute')['filter'](_0x398b64=>!_0x398b64['meta']['isNextTo'])['map'](_0x4b9f39=>_0x4b9f39['suggestion']),_0x2d418b=_0x116e81({'newValue':_0x236929['newValue']});_0xb198d4['filter'](_0x142546=>{const [_0x234c3c,_0x5a8deb]=_0x142546['subType']['split']('|');return _0x234c3c==_0x236929['key']&&_0x5a8deb!=_0x2d418b;})['forEach'](_0x4b7d79=>{this['_reduceSuggestionAttributeRange'](_0x4b7d79,_0x236929['range'],_0x282c9b),_0x2835a2=!0x0;});}return _0x2835a2;}['_reduceSuggestionAttributeRange'](_0x331073,_0x3837a5,_0x362e6a){const _0x43675e=_0x331073['getFirstRange']()['getDifference'](_0x3837a5);0x0!==_0x43675e['length']?0x1!==_0x43675e['length']?this['_breakSuggestionMarker'](_0x331073,_0x3837a5['start'],_0x3837a5['end']):this['_setSuggestionRange'](_0x331073,_0x43675e[0x0]):_0x362e6a['removeMarker'](_0x331073['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x42301d){this['_editor']=_0x42301d,this['_model']=_0x42301d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5c9f45,_0x4ffd33,_0x1615dc,_0x1b1658,_0x3f51ed,_0x3dfd14){return new u(this['_model'],{'type':_0x5c9f45,'subType':_0x4ffd33,'id':_0x1615dc,'author':_0x1b1658,'creator':_0x1b1658,'attributes':_0x3f51ed,'onAttributesChange':_0x3dfd14,'onAccept':(..._0x5a5980)=>this['getSuggestionCallback'](_0x5c9f45,_0x4ffd33,'accept')(..._0x5a5980),'onDiscard':(..._0x38f0c1)=>this['getSuggestionCallback'](_0x5c9f45,_0x4ffd33,'discard')(..._0x38f0c1)});}['registerCustomCallback'](_0x1beba0,_0x171fed,_0x9b0d0d,_0x4139ec){const _0x2bd52c=_0x1beba0+':'+_0x171fed+':'+_0x9b0d0d;this['_customCallbacks']['set'](_0x2bd52c,_0x4139ec);}['getSuggestionCallback'](_0x237b57,_0x5026d2,_0x13c05b){const _0x351518=_0x237b57+':'+_0x5026d2+':'+_0x13c05b;return this['_customCallbacks']['get'](_0x351518)||this['_defaultCallbacks']['get'](_0x237b57+':'+_0x13c05b);}['_registerDefaultCallbacks'](){const _0x406cab=()=>!0x1,_0x13023a=_0x1c0eac=>{_0x1c0eac['sort']((_0x14c212,_0x109994)=>_0x14c212['start']['isBefore'](_0x109994['start'])?0x1:-0x1),this['_model']['change'](_0x30c60e=>{for(const _0x5c9ec7 of _0x1c0eac){let _0x1ab307;_0x1ab307=_0x5c9ec7['end']['isAtEnd']&&_0x5c9ec7['end']['parent']==_0x5c9ec7['start']['nodeAfter']?_0x30c60e['createSelection'](_0x5c9ec7['start']['nodeAfter'],'on'):_0x30c60e['createSelection'](_0x5c9ec7),this['_model']['deleteContent'](_0x1ab307,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x7ccee6=(_0x500b3c,_0x4e7628)=>{_0x4e7628&&this['_model']['change'](_0x2993e3=>{const {commandName:_0x4db863,commandParams:_0x14d57d=[]}=_0x4e7628,_0x125ab2=_0x500b3c['map'](_0x360bd1=>(Vt(_0x360bd1)&&(_0x360bd1=this['_model']['createRange'](_0x360bd1['end'])),_0x360bd1))['filter'](_0x1d1941=>'$graveyard'!==_0x1d1941['root']['rootName']);if(_0x125ab2['length']<0x1)return;const _0x17a614=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x80f122=>_0x23d2d0['fromRange'](_0x80f122));_0x2993e3['setSelection'](_0x125ab2);for(const _0x4e68f8 of this['_editor']['commands']['commands']())_0x4e68f8['refresh']();_0x14d57d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4db863,..._0x14d57d);const _0x2c998c=_0x17a614['filter'](_0x453ad3=>'$graveyard'!=_0x453ad3['root']['rootName']);_0x2c998c['length']>0x0&&_0x2993e3['setSelection'](_0x2c998c);for(const _0x3c3d1d of _0x17a614)_0x3c3d1d['detach']();});},_0x54e541=(_0x505b3a,_0x396b76)=>0x1==_0x505b3a['length']&&0x1==_0x396b76['length']&&_0x505b3a[0x0]['end']['isEqual'](_0x396b76[0x0]['start']),_0x260ed4=(_0x8eaeaf,_0x2fa455,_0x5c8fb2,_0x26a94d)=>Ht(_0x8eaeaf,_0x2fa455,_0x5c8fb2,_0x26a94d)?[_0x8eaeaf,_0x2fa455]:Ht(_0x2fa455,_0x8eaeaf,_0x26a94d,_0x5c8fb2)?[_0x2fa455,_0x8eaeaf]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x406cab),this['_defaultCallbacks']['set']('insertion:discard',_0x13023a),this['_defaultCallbacks']['set']('insertion:join',_0x54e541),this['_defaultCallbacks']['set']('insertion:chain',_0x260ed4),this['_defaultCallbacks']['set']('deletion:accept',_0x13023a),this['_defaultCallbacks']['set']('deletion:discard',_0x406cab),this['_defaultCallbacks']['set']('deletion:join',_0x54e541),this['_defaultCallbacks']['set']('deletion:chain',_0x260ed4),this['_defaultCallbacks']['set']('formatInline:accept',_0x7ccee6),this['_defaultCallbacks']['set']('formatInline:discard',_0x406cab),this['_defaultCallbacks']['set']('formatInline:join',_0x54e541),this['_defaultCallbacks']['set']('formatInline:chain',_0x406cab),this['_defaultCallbacks']['set']('formatBlock:accept',_0x7ccee6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x406cab),this['_defaultCallbacks']['set']('formatBlock:join',_0x54e541),this['_defaultCallbacks']['set']('formatBlock:chain',_0x406cab),this['_defaultCallbacks']['set']('attribute:accept',_0x406cab),this['_defaultCallbacks']['set']('attribute:discard',(_0x314e18,_0x39a73a)=>{if(!_0x39a73a)return;const _0x220198=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3ddd92=>{if(_0x39a73a['key']==m)for(const _0x392b8a of _0x314e18){const _0x2035cf=_0x392b8a['start']['nodeAfter'],_0x3af2fd=_0x39a73a['oldValue'];_0x3ddd92['rename'](_0x2035cf,_0x3af2fd);}else{if(_0x220198['_isBlockAttribute'](_0x39a73a['key'])){for(const _0x298060 of _0x314e18)void 0x0!==_0x39a73a['oldValue']?_0x3ddd92['setAttribute'](_0x39a73a['key'],_0x39a73a['oldValue'],_0x298060['start']['nodeAfter']):_0x3ddd92['removeAttribute'](_0x39a73a['key'],_0x298060['start']['nodeAfter']);}else{for(const _0x3e5b46 of _0x314e18)_0x39a73a['oldValue']?_0x3ddd92['setAttribute'](_0x39a73a['key'],_0x39a73a['oldValue'],_0x3e5b46):_0x3ddd92['removeAttribute'](_0x39a73a['key'],_0x3e5b46);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x54e541);}}function Ut(_0x41ac36,_0x3e1e8c,_0x564f29){for(const _0x126f03 of _0x3e1e8c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x126f03['root']==_0x126f03)return!0x1;if(!_0x564f29['containsItem'](_0x126f03))return!0x1;if(_0x41ac36['isObject'](_0x126f03)||_0x41ac36['isLimit'](_0x126f03))return!0x0;}return!0x1;}function Vt(_0x3b171b){return _0x3b171b['end']['parent']==_0x3b171b['start']['nodeAfter']&&_0x3b171b['end']['isAtStart'];}function Pt(_0x1f8219,_0xa19f00,_0x4bb3e0,_0x403512){const _0x3c8c0d=_0x1758be=>!_0x1758be['item']['is']('$textProxy')&&!_0x403512['isObject'](_0x1758be['item']),_0x5443f2=_0x1f8219['start']['getLastMatchingPosition'](_0x3c8c0d),_0x1b6eb2=_0x1f8219['end']['getLastMatchingPosition'](_0x3c8c0d,{'direction':'backward'});return(!_0x1f8219['start']['isEqual'](_0x5443f2)||!_0x1f8219['end']['isEqual'](_0x1b6eb2))&&(_0x5443f2['isBefore'](_0x1b6eb2)?_0x4bb3e0['updateMarker'](_0xa19f00,{'range':_0x4bb3e0['createRange'](_0x5443f2,_0x1b6eb2)}):_0x4bb3e0['removeMarker'](_0xa19f00),!0x0);}function Gt(_0x399d19){return _0x116e81(_0x399d19);}function Ft(_0x204a8f){const _0x429d88=_0x204a8f['start']['nodeAfter'];return _0x429d88&&_0x429d88['is']('element');}function Lt(_0x465c0d,_0x4eea3f){return null==_0x465c0d['end']['nodeBefore']&&_0x465c0d['end']['parent']==_0x465c0d['start']['nodeAfter']?Jt(_0x465c0d['start']['nodeAfter'],_0x4eea3f):_0x465c0d;}function Jt(_0x41f6fa,_0x427857){const _0x147e4c=_0x427857['schema']['isObject'](_0x41f6fa)||_0x427857['schema']['isSelectable'](_0x41f6fa);return _0x427857['createRange'](_0x427857['createPositionAt'](_0x41f6fa,'before'),_0x147e4c?_0x427857['createPositionAfter'](_0x41f6fa):_0x427857['createPositionAt'](_0x41f6fa,'end'));}function Ht(_0x8acf83,_0x5f1744,_0x335e21,_0x27b7dc){return!!qt(_0x8acf83,_0x5f1744)&&_0x335e21['end']['isEqual'](_0x27b7dc['start']);}function qt(_0x580e47,_0x58130e){if(!_0x580e47['_isDataLoaded']||!_0x58130e['_isDataLoaded'])return!0x1;const _0x37f597=new Set(Object['keys'](_0x580e47['attributes'])),_0x1dfb08=new Set(Object['keys'](_0x58130e['attributes']));if(_0x37f597['delete']('groupId'),_0x1dfb08['delete']('groupId'),0x0==_0x37f597['size']&&0x0==_0x1dfb08['size'])return!0x0;if(_0x37f597['size']!=_0x1dfb08['size'])return!0x1;const _0x4e6027={..._0x580e47['attributes']},_0x3d4d8a={..._0x58130e['attributes']};return delete _0x4e6027['groupId'],delete _0x3d4d8a['groupId'],JSON['stringify'](_0x4e6027)==JSON['stringify'](_0x3d4d8a);}function zt(_0x54294b,_0x4603d5){const _0x2e497a=Kt(_0x54294b['attributes']),_0x1ea13d=Kt(_0x4603d5);if(!_0x54294b['_isDataLoaded'])return!0x1;for(const _0x5d2a37 of Object['keys'](_0x1ea13d))if(!_0xf91c94(_0x2e497a[_0x5d2a37],_0x1ea13d[_0x5d2a37]))return!0x1;return!0x0;}function Kt(_0x321616){const _0x327d38=Object['assign']({},_0x321616);return delete _0x327d38['skipNestingCheck'],delete _0x327d38['tablePasteChainId'],_0x327d38;}class ge extends/* #__PURE__ -- @preserve */
25
- _0xe3577e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x39168f,_0x29b8ad,_0x251a64,_0x456d24){super(),this['model']=_0x29b8ad,this['view']=_0x251a64,this['commentThreadController']=_0x456d24,this['_editor']=_0x39168f,this['_acceptCommand']=_0x39168f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x39168f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2e590c,_0x2242a5)=>_0x2e590c||_0x2242a5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5dea4d=>_0x5dea4d&&this['_editor']['model']['canEditAt'](_0x29b8ad['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xf40b4d=>_0xf40b4d&&this['_editor']['model']['canEditAt'](_0x29b8ad['getRanges']())),this['_pendingAction']=null,_0x251a64['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x251a64,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x251a64,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x251a64,'change:isDirty',()=>{_0x251a64['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 _0x304d4d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x304d4d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x37b64a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5a81da,_0x5b5a4a,_0x465a58,_0x50cda5){super(_0x5a81da),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x26dc88(_0x5a81da,o(_0x5a81da,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5b5a4a['authoredAt']),this['bind']('authoredAt')['to'](_0x5b5a4a),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',_0x5b5a4a,'authoredAt',this,'descriptionParts',(_0x86ed89,_0x263f9a,_0x5b57c0)=>{const _0xa93fd1=_0x5b57c0['map'](_0x5856ca=>ns(_0x5856ca['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x86ed89-0x1,_0x5b5a4a['author']['name'],_0x263f9a?_0x50cda5['formatDateTime'](_0x263f9a):'',new DOMParser()['parseFromString'](_0xa93fd1,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5bd361(),this['focusTracker']=new _0x760b4c(),this['keystrokes']=new _0x4bc3b6(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x72287f=>_0x72287f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5b5a4a,this['_localUser']=_0x465a58,this['_config']=_0x50cda5,_0x50cda5['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x34aa7d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5eb808}=this['_config'];this['commentsListView']=new _0x5eb808(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',_0x2a4610=>_0x2a4610+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2ddd4f,_0x1c5d28)=>_0x2ddd4f||!!_0x1c5d28);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2fb54a}=this['_config'],_0x40c5c2=new _0x2fb54a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x439564=_0x40c5c2['commentInputView'];return _0x40c5c2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x439564,'value',(_0x1f2864,_0x4e7752,_0x482595)=>!!_0x482595||_0x1f2864&&!_0x4e7752),_0x439564['on']('submit',(_0xc335f9,_0x5a1a02)=>{this['fire']('addComment',_0x5a1a02),_0x439564['editor']['setData']('');}),_0x439564['on']('cancel',()=>this['focus']()),_0x439564['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x40c5c2;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x4107b7,_0x2c6dbd,_0x2408f3,_0x20f1fb){super(_0x4107b7,_0x2c6dbd,_0x2408f3,_0x20f1fb),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x194a32=>_0x194a32&&_0x194a32[0x0]?_0x194a32[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xc0ba23,_0x5652a8)=>{let _0x5a62e9='';for(const _0x3f6e01 of _0xc0ba23)_0x5a62e9+='<p>'+ns(_0x3f6e01['content'],_0x3f6e01['color'])+'</p>';return _0x5652a8?_0x5a62e9:ti(_0x5a62e9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x20f1fb['SuggestionView'](_0x4107b7,_0x2c6dbd,{'formatDateTime':_0x20f1fb['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 _0x2ec908=this['bindTemplate'],_0x4ea535=[this['suggestionView']];return this['commentsListView']&&_0x4ea535['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4ea535['push'](this['commentThreadInputView']),_0x4ea535['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2ec908['if']('isActive','ck-suggestion-wrapper--active'),_0x2ec908['to']('type',_0x45453e=>'ck-suggestion-'+_0x45453e),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':_0x2ec908['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4ea535};}['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 ue extends _0x37b64a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x39a42e,_0x400d6d,_0x4d44d8){super(_0x39a42e),this['_model']=_0x400d6d,this['_config']=_0x4d44d8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x400d6d),this['acceptButton']=this['_createButton'](o(_0x39a42e,'Accept\x20suggestion'),_0x52f5a6['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x39a42e,'Discard\x20suggestion'),_0x52f5a6['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x45d7ac(_0x39a42e,_0x400d6d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5bd361([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x760b4c(),this['keystrokes']=new _0x4bc3b6(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5d5589=>_0x5d5589['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2d7a6b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2d7a6b['innerHTML']=this['description'],this['on']('change:description',(_0x46892e,_0x32c66e,_0x1e2d2e)=>{_0x2d7a6b['innerHTML']=_0x1e2d2e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x63dc5b=this['bindTemplate'],_0x54157c=[{'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':_0x63dc5b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x63dc5b['to']('authoredAt',_0x4cb7e9=>this['_config']['formatDateTime'](_0x4cb7e9))}]}]},{'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']&&_0x54157c['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':_0x54157c}]};}['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'](_0x112bdd,_0x343d35,_0x133568,_0x30d775,_0x25fdad){const _0x3d37ad=new _0x566bb0(this['locale']);return _0x3d37ad['set']({'label':_0x112bdd,'icon':_0x343d35,'tooltip':!0x0,'tooltipPosition':_0x25fdad}),_0x3d37ad['extendTemplate']({'attributes':{'class':_0x133568}}),_0x3d37ad['on']('execute',()=>{this['fire'](_0x30d775,this['_model']['id']);}),_0x3d37ad;}['_setupKeyboardNavigation'](){const _0x466653=this['element'];this['keystrokes']['listenTo'](_0x466653);for(const _0x30e2f2 of this['focusables'])this['focusTracker']['add'](_0x30e2f2['element']),this['keystrokes']['listenTo'](_0x30e2f2['element']);this['keystrokes']['set']('enter',(_0x35cb6d,_0xec5b8)=>{_0x466653===_0x35cb6d['target']&&(this['focusCycler']['focusFirst'](),_0xec5b8());}),this['keystrokes']['set']('esc',(_0x3285ad,_0x240579)=>{_0x466653!==_0x3285ad['target']&&(this['focus'](),_0x240579());});}}var Ce='<!--\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 _0x240e00{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x59b3bc,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x316e47){super(_0x316e47),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x50b1e2=this['editor']['config'];_0x50b1e2['define']('trackChanges.SuggestionThreadView',de),_0x50b1e2['define']('trackChanges.SuggestionView',ue),_0x50b1e2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x50b1e2['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x32e538,_0x5bf368){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2fdeb8,_0x2e2de0]of this['_handleControllerBuffer']){const _0xa4dc5b=this['_suggestionToController']['has'](_0x2fdeb8);_0xa4dc5b||_0x2e2de0?_0xa4dc5b&&_0x2e2de0&&this['_destroyController'](_0x2fdeb8):this['_initializeController'](_0x2fdeb8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x32e538,_0x5bf368);}['init'](){const _0x1f8626=this['editor'],_0x1e0079=_0x1f8626['plugins']['get']('TrackChangesEditing'),_0x2d6dcf=_0x1f8626['plugins']['get']('Annotations'),_0x892a9c=_0x1f8626['plugins']['get']('EditorAnnotations'),_0x1c0fb0=_0x1f8626['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x892a9c['addSourceCollector'](()=>{const _0x396fe7=[];for(const [_0x4578f9,_0x302864]of Array['from'](this['_suggestionToController'])){const _0x292150=_0x4578f9['getAllAdjacentSuggestions'](),_0x505735=[];for(const _0x2f0bec of _0x292150){if(!_0x2f0bec['isInContent'])continue;if(_0x2f0bec['isMultiRange']){_0x505735['push'](..._0x2f0bec['getRanges']());continue;}const _0x17f15e=_0x2f0bec['getFirstRange']();if(_0x505735['length']>0x0){const _0x5249df=_0x505735[0x0]['getJoined'](_0x17f15e);if(_0x5249df){_0x505735[0x0]=_0x5249df;continue;}}_0x505735['push'](_0x17f15e);}_0x396fe7['push']([_0x302864['view'],_0x505735]);}return _0x396fe7;}),this['listenTo'](_0x1e0079,'suggestionLoaded',(_0x23d283,_0x20cb11)=>{this['listenTo'](_0x20cb11,'change:previous',(_0xf231f9,_0x19cb8d,_0x49ad2c,_0x3b5a25)=>{_0x20cb11['isInContent']&&(null==_0x49ad2c?(this['_updateController'](_0x3b5a25['head']),this['_handleSuggestionControllerDelayed'](_0x20cb11,!0x1)):(this['_updateController'](_0x49ad2c['head']),null==_0x3b5a25&&this['_handleSuggestionControllerDelayed'](_0x20cb11,!0x0)));}),null!==_0x20cb11['previous']?this['_updateController'](_0x20cb11['head']):this['_handleSuggestionControllerDelayed'](_0x20cb11,!0x1);}),this['listenTo'](_0x1e0079,'suggestionUnloaded',(_0x3b096d,_0x3e9f6b,_0x8f35bf)=>{this['stopListening'](_0x3e9f6b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3e9f6b),this['_suggestionToController']['has'](_0x3e9f6b)&&this['_destroyController'](_0x3e9f6b),_0x8f35bf&&this['_updateController'](_0x8f35bf['head']);}),this['listenTo'](_0x1e0079,'suggestionChanged',(_0x59833d,_0x50a7b5)=>{this['_updateController'](_0x50a7b5);}),this['listenTo'](_0x2d6dcf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1c0fb0,'addComment',(_0x23c421,{threadId:_0x550bbe,isFromAdapter:_0x4d0d70})=>{if(_0x4d0d70||!_0x1e0079['hasSuggestion'](_0x550bbe))return;const _0x4bb3f0=_0x1e0079['getSuggestion'](_0x550bbe);this['_suggestionToController']['get'](_0x4bb3f0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x630d14=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5479c1;for(const _0x575b1e in _0x630d14){const _0x387fa4=_0x575b1e,_0x995612=_0x630d14[_0x387fa4];if('trackChangesLicenseKeyValid'==_0x995612||'trackChangesLicenseKeyInvalid'==_0x995612||'trackChangesLicenseKeyExpired'==_0x995612||'trackChangesLicenseKeyDomainLimit'==_0x995612||'trackChangesLicenseKeyNotAllowed'==_0x995612||'trackChangesLicenseKeyEvaluationLimit'==_0x995612||'trackChangesLicenseKeyTrialLimit'==_0x995612||'trackChangesLicenseKeyDevelopmentLimit'==_0x995612||'trackChangesLicenseKeyUsageLimit'==_0x995612){delete _0x630d14[_0x387fa4],_0x5479c1=_0x995612,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5479c1&&_0x630d14['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5479c1&&_0x630d14['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5479c1&&_0x630d14['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5479c1&&_0x630d14['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5479c1&&_0x630d14['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5479c1&&_0x630d14['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x5479c1&&_0x630d14['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5479c1&&_0x630d14['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5bf682=this['editor']['plugins']['get']('Annotations'),_0x5704df=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5207e1=Array['from'](_0x5bf682['activeAnnotations'],_0x3553b1=>_0x3553b1['innerView'])['filter'](_0x51a5e0=>this['_viewToController']['has'](_0x51a5e0)),_0x3223ff=[];for(const _0x4dbb7e of _0x5207e1){const _0x124ec7=this['_viewToController']['get'](_0x4dbb7e)['model']['getAllAdjacentSuggestions']();_0x3223ff['push'](..._0x124ec7['reduce']((_0x23b1dc,_0x370f44)=>[..._0x23b1dc,..._0x370f44['getMarkerNames']()],[]));}_0x5704df['activeMarkers']=_0x3223ff;}['_addUIComponentsToFactory'](){const _0x410359=this['editor'],_0x50f22a=_0x410359['locale'],_0x2b256d=o(_0x50f22a,'Track\x20changes'),_0x4cde75=new _0x1fff91([{'type':'switchbutton','model':new _0x494abe({'withText':!0x0,'isToggleable':!0x0,'label':_0x2b256d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x494abe({'withText':!0x0,'label':o(_0x50f22a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x494abe({'withText':!0x0,'label':o(_0x50f22a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x494abe({'withText':!0x0,'label':o(_0x50f22a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x494abe({'withText':!0x0,'label':o(_0x50f22a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x314c00 of _0x4cde75)if(pe(_0x314c00)){const _0x9e7f66=_0x410359['commands']['get'](_0x314c00['model']['commandName']);_0x314c00['model']['bind']('isOn','isEnabled')['to'](_0x9e7f66,'value','isEnabled');}_0x410359['ui']['componentFactory']['add']('trackChanges',_0x88b7d2=>this['_createToolbarButton'](_0x88b7d2,_0x4cde75,_0x2b256d)),_0x410359['ui']['componentFactory']['add']('menuBar:trackChanges',_0x23b0b5=>this['_createMenuBarMenu'](_0x23b0b5,_0x4cde75,_0x2b256d));}['_createToolbarButton'](_0x5b5144,_0xcaeb5a,_0x5ce3f7){const _0x28285c=_0x24df7b(_0x5b5144,_0x323a15),_0x349809=this['editor']['commands']['get']('trackChanges');_0x28285c['buttonView']['set']({'tooltip':_0x5ce3f7,'label':_0x5ce3f7,'icon':Ce}),_0x28285c['buttonView']['bind']('isOn')['to'](_0x349809,'value'),_0x28285c['buttonView']['on']('execute',()=>{_0x349809['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x28285c,_0xcaeb5a,{'role':'menu'});const _0x5c03ce=[];for(const _0x3f0fd4 of _0xcaeb5a)pe(_0x3f0fd4)&&_0x5c03ce['push'](this['editor']['commands']['get'](_0x3f0fd4['model']['commandName']));const _0x24e018=_0x28285c['buttonView'];return _0x24e018['actionView']['unbind']('isEnabled'),_0x24e018['arrowView']['unbind']('isEnabled'),_0x24e018['actionView']['bind']('isEnabled')['to'](_0x349809,'isEnabled'),_0x24e018['arrowView']['bind']('isEnabled')['toMany'](_0x5c03ce,'isEnabled',(..._0x15ed97)=>_0x15ed97['some'](_0x254086=>_0x254086)),_0x28285c['on']('execute',_0xc5c82=>{this['editor']['execute'](_0xc5c82['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x28285c;}['_createMenuBarMenu'](_0x57f2a7,_0x358874,_0x156d5f){const _0x5ecf14=new _0x33a197(_0x57f2a7),_0x5e630b=this['editor']['commands']['get']('trackChanges');_0x5ecf14['buttonView']['set']({'label':_0x156d5f,'icon':Ce});const _0x58402a=new _0x523cdb(_0x57f2a7);for(const _0x2def10 of _0x358874){if('separator'==_0x2def10['type']){_0x58402a['items']['add'](new _0x2d46c5(_0x57f2a7));continue;}const _0x5a9ec4=new _0x5ae6b8(_0x57f2a7,_0x5ecf14),_0x18298d=new _0x4eb13b(_0x57f2a7),_0x4c8cc4=_0x2def10['model'];_0x18298d['bind'](...Object['keys'](_0x4c8cc4))['to'](_0x4c8cc4),_0x18298d['delegate']('execute')['to'](_0x5ecf14),_0x18298d['on']('execute',()=>{this['editor']['execute'](_0x4c8cc4['commandName']),this['editor']['editing']['view']['focus']();}),_0x5a9ec4['children']['add'](_0x18298d),_0x58402a['items']['add'](_0x5a9ec4);}return _0x5ecf14['bind']('isEnabled')['to'](_0x5e630b,'isEnabled'),_0x5ecf14['panelView']['children']['add'](_0x58402a),_0x5ecf14;}['_initializeController'](_0xac4b88){const _0x255c67=this['editor'],_0x5cb067=_0x255c67['config'],_0xde8e62=_0x255c67['plugins']['get']('Annotations'),_0x4bb228=_0x255c67['plugins']['get']('CommentsRepository'),_0x42383c=_0x255c67['plugins']['get']('EditorAnnotations'),_0xd3f088=_0x255c67['plugins']['get'](_0x59b3bc)['me'],_0x21813f=_0x5cb067['get']('trackChanges')['SuggestionThreadView'],_0x5c5d90=_0x5cb067['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x563a06,CommentThreadInputView:_0x384ca3}=_0x255c67['plugins']['get']('CommentsUI');let _0x449650,_0x1bb23f,_0x57e385;this['_annotationViews']['has'](_0xac4b88['id'])?(_0x1bb23f=this['_annotationViews']['get'](_0xac4b88['id']),_0x449650=_0x1bb23f['mainView']):(_0x449650=new _0x21813f(_0x255c67['locale'],_0xac4b88,_0xd3f088,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5cb067['get']('comments.editorConfig'),'licenseKey':_0x5cb067['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5cb067['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5cb067['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5cb067['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x247c41(_0x5cb067['get']('locale')),'CommentView':_0x5cb067['get']('comments')['CommentView'],'CommentsListView':_0x563a06,'CommentThreadInputView':_0x384ca3,'SuggestionView':_0x5c5d90}),_0x449650['suggestionView']['acceptButton']['on']('execute',()=>{_0x255c67['editing']['view']['focus']();}),_0x449650['suggestionView']['discardButton']['on']('execute',()=>{_0x255c67['editing']['view']['focus']();}),_0x1bb23f=_0xde8e62['createAnnotationView'](this['editor']['locale'],_0x449650),_0x1bb23f['bind']('isDirty')['to'](_0x449650,'isDirty'),_0x1bb23f['bind']('length')['to'](_0x449650),_0x1bb23f['bind']('type')['to'](_0x449650,'type',_0x17d8ef=>'suggestion-'+_0x17d8ef),_0x449650['on']('escape',()=>{_0x57e385['fire']('escape');}),this['_annotationViews']['set'](_0xac4b88['id'],_0x1bb23f));const _0x2a8eee=_0x4bb228['createCommentThreadController'](_0xac4b88['commentThread'],_0x449650),_0x2de980=new ge(_0x255c67,_0xac4b88,_0x449650,_0x2a8eee),_0x19afb2=_0xac4b88['getAllAdjacentSuggestions']()['filter'](_0x44aa12=>_0x44aa12['isInContent']);_0x449650['descriptionParts']=_0x255c67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x19afb2),this['_suggestionToController']['set'](_0xac4b88,_0x2de980),this['_viewToController']['set'](_0x449650,_0x2de980),_0x57e385=_0xde8e62['createAnnotation']({'view':_0x1bb23f,'target':()=>{const _0x5acecd=[],_0x5b36a7=_0xac4b88['getAllAdjacentSuggestions']()['filter'](_0x27c169=>_0x27c169['isInContent']);for(const _0x5244ab of _0x5b36a7)_0x5acecd['push'](..._0x5244ab['getMarkers']());return _0x5ced91(_0x255c67['editing'],_0x5acecd);},'type':()=>'suggestion-'+_0x2de980['view']['type']}),_0x4bb228['_bindAnnotationToEditors'](_0x449650,_0x57e385),_0xde8e62['add'](_0x57e385),_0x42383c['registerAnnotation'](_0x57e385);}['_destroyController'](_0x3e721a){const _0x196bc6=this['editor']['plugins']['get']('CommentsRepository'),_0x354b3f=this['editor']['plugins']['get']('Annotations'),_0x8d946b=this['_suggestionToController']['get'](_0x3e721a),_0x735744=_0x8d946b['view'],_0x1e9fbd=_0x354b3f['getByInnerView'](_0x735744);_0x196bc6['_unbindEditors'](_0x735744),_0x1e9fbd&&_0x354b3f['remove'](_0x1e9fbd),this['_suggestionToController']['delete'](_0x3e721a),this['_viewToController']['delete'](_0x735744),_0x8d946b['destroy']();}['_updateController'](_0x24167f){if(!_0x24167f['isInContent']||!this['_suggestionToController']['has'](_0x24167f))return;const _0x9ebd44=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ed03e=this['_suggestionToController']['get'](_0x24167f),_0x523af5=_0x24167f['getAllAdjacentSuggestions']();_0x3ed03e['view']['descriptionParts']=_0x9ebd44['descriptionFactory']['getDescriptions'](_0x523af5);}['destroy'](){for(const _0x1c3ce0 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1c3ce0);for(const _0x546ef7 of this['_annotationViews']['values']())_0x546ef7['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x371f5e){return'model'in _0x371f5e;}class k extends _0x240e00{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5ad026){this['editor']['plugins']['get'](p)['adapter']=_0x5ad026;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5075c2){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5075c2);}['getSuggestions']({skipNotAttached:_0x4dc0e6=!0x1,toJSON:_0x31c1e1=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4dc0e6,'toJSON':_0x31c1e1});}['getSuggestion'](_0x44b1f1){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x44b1f1);}}const w=['Pagination'];class T extends _0x240e00{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x44ca61=this['editor'];if(_0x44ca61['config']['define']('trackChangesData.editorCreator',_0xf3108a=>{const _0xb55f07=_0x44ca61['model']['document']['getRootNames']()['reduce']((_0x24739f,_0x63cf5d)=>(_0x24739f[_0x63cf5d]='',_0x24739f),{});return _0x44ca61['constructor']['create'](_0xb55f07,_0xf3108a);}),'function'!=typeof _0x44ca61['config']['get']('trackChangesData')['editorCreator'])throw new _0x1267e3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3e2b0e){return N(this['editor'],!0x0,_0x3e2b0e);}['getDataWithDiscardedSuggestions'](_0x44a4b2){return N(this['editor'],!0x1,_0x44a4b2);}}class D extends _0x240e00{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b6f60){function _0x24a522(_0x12659d){return _0x12659d['map'](_0x131d1d=>String['fromCharCode'](_0x131d1d))['join']('');}super(_0x2b6f60),this['result']='end',_0x2b6f60[_0x24a522([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24a522([0x76,0x69,0x65,0x77])][_0x24a522([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24a522([0x61,0x75,0x74,0x6f]),_0x2b6f60[_0x24a522([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x24a522([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24a522([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x24a522([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x24a522([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x435500){return void 0x0!==_0x435500['getRootsAttributes'];}async function N(_0x4304b2,_0x3b27a0,_0x34ebf5){const _0x1e1b22=_0x53f1e9(_0x4304b2,w);_0x1e1b22['plugins']['push'](p,D),_0x1e1b22['rootsAttributes']=v(_0x4304b2)?_0x4304b2['getRootsAttributes']():void 0x0;const _0x27de3d=document['createDocumentFragment'](),_0x1236fa=_0x4304b2['config']['get']('trackChangesData')['editorCreator'],_0x3dd042=await _0x1236fa(_0x1e1b22,()=>function(_0x3bdc8c){const _0x2bdf6e=document['createElement']('div');return _0x3bdc8c['appendChild'](_0x2bdf6e),_0x2bdf6e;}(_0x27de3d));!function(_0x235cef,_0x9a5e43){const _0x5f12c5=_0x235cef['model']['document']['getRootNames']()['reduce']((_0x5ba46a,_0x355f59)=>(_0x5ba46a[_0x355f59]=_0x235cef['data']['get']({'rootName':_0x355f59}),_0x5ba46a),{}),_0xfe3d1b=_0x235cef['plugins']['get']('Users')['users']['map'](_0x1a2d9a=>({'id':_0x1a2d9a['id'],'name':_0x1a2d9a['name']})),_0x2a7cf2=_0x235cef['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5a4304=_0x235cef['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2bde08=_0x9a5e43['plugins']['get']('Users'),_0x3ac1a9=_0x9a5e43['plugins']['get']('TrackChangesEditing'),_0x40c828=_0x9a5e43['plugins']['get']('CommentsRepository');for(const _0x316f79 of _0x40c828['getCommentThreads']())_0x316f79['remove']();for(const _0x250f9b of _0xfe3d1b)_0x2bde08['getUser'](_0x250f9b['id'])||_0x2bde08['addUser'](_0x250f9b);_0x2bde08['me']||_0x2bde08['useAnonymousUser']();for(const _0xc6a70c of _0x5a4304)_0x40c828['addCommentThread'](_0xc6a70c);for(const _0x1107ba of _0x2a7cf2)_0x3ac1a9['addSuggestionData'](_0x1107ba);_0x9a5e43['data']['set'](_0x5f12c5);}(_0x4304b2,_0x3dd042),_0x3dd042['execute'](_0x3b27a0?'acceptAllSuggestions':'discardAllSuggestions');const _0x2118ba=v(_0x3dd042)?_0x3dd042['getFullData'](_0x34ebf5):_0x3dd042['data']['get'](_0x34ebf5);return await _0x3dd042['destroy'](),_0x2118ba;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as Qt,Plugin as _0xcae1ef,PendingActions as _0x5212f6,icons as _0x592b68}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x27a22d,ObservableMixin as _0x323eb4,uid as _0x440c38,insertToPriorityArray as _0x2fe8bc,priorities as _0x18918d,logWarning as _0x5de6f1,getEnvKeystrokeText as _0x4f4e19,FocusTracker as _0x3febe6,KeystrokeHandler as _0x48cbca,Collection as _0x59d451}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2761db,View as _0x1b9e8e,ViewCollection as _0x454e16,FocusCycler as ts,ViewModel as _0x28a37f,createDropdown as _0x23c2d5,SplitButtonView as _0x398f69,addListToDropdown as te,MenuBarMenuView as _0x3f125d,MenuBarMenuListView as _0x3256e7,ListSeparatorView as _0xf4d2fb,MenuBarMenuListItemView as _0x1404f0,MenuBarMenuListItemButtonView as _0x186e39}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4ee8f0,hashObject as _0x5d9112,surroundingMarkersDetector as _0x3d2c82,FOCUS_ANNOTATION_KEYSTROKE as _0x30a54a,AriaDescriptionView as _0x5dc670,setupThreadKeyboardNavigation as _0x1cc89d,trimHtml as ti,UserView as _0x5a640e,LateFocusButtonView as _0x3e3f05,getDateTimeFormatter as _0xb80e7c,getAllMarkersDomElementsSorted as _0x20f51e,sanitizeEditorConfig as _0x2f5f9c}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4b0ea3,LiveRange as _0x3fc55d,LivePosition as _0x189f85}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x47b5a9,toWidget as _0x4f88fc}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xd1b14,set as _0x5f28b3,isEqual as _0x4c869e,unset as _0x10f052,omit as xt}from'lodash-es';import{Delete as _0x75aa91,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x49b715,ShiftEnter as _0x3e9685}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x59afef,_0x4fb868){super(_0x59afef),this['_enabledCommands']=_0x4fb868,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 _0x15851c of this['editor']['commands']['commands']())_0x15851c['affectsData']&&!this['_enabledCommands']['has'](_0x15851c)&&_0x15851c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x596379 of this['editor']['commands']['commands']())_0x596379['affectsData']&&!this['_enabledCommands']['has'](_0x596379)&&_0x596379['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x507659,_0x291eb3){super(_0x507659),this['_suggestions']=_0x291eb3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4530cf){const _0x5b2fdd=this['_suggestions']['get'](_0x4530cf);if(!_0x5b2fdd)throw new _0x27a22d('track-changes-accept-suggestion-not-found',this);const _0x3d1a47=_0x5b2fdd['getRanges']();this['editor']['model']['canEditAt'](_0x3d1a47)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5b2fdd);}}class R extends Qt{['_suggestions'];constructor(_0x27c194,_0x42602e){super(_0x27c194),this['_suggestions']=_0x42602e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xb459ed){const _0x377721=this['_suggestions']['get'](_0xb459ed);if(!_0x377721)throw new _0x27a22d('track-changes-discard-suggestion-not-found',this);const _0x30468a=_0x377721['getRanges']();this['editor']['model']['canEditAt'](_0x30468a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x377721);}}function ns(_0xe78b57,_0x3837e7){let _0x446d2e='';return _0x446d2e+=_0xe78b57['split']('*')['map']((_0x426cb2,_0x2f4020)=>_0x2f4020%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x426cb2)+'</span>':nn(_0x426cb2))['join'](''),_0x3837e7&&(_0x446d2e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3837e7['value']+'\x22\x20title=\x22'+_0x3837e7['title']+'\x22></span>'),_0x446d2e;}function nn(_0x38ec64){const _0x4ee995=document['createElement']('span');return _0x4ee995['innerText']=_0x38ec64,_0x4ee995['innerHTML'];}function Wt(_0x1a0036){return _0x1a0036['sort']((_0x4d105,_0x58566d)=>'deletion'==_0x4d105['type']&&'deletion'!=_0x58566d['type']?-0x1:'deletion'!=_0x4d105['type']&&'deletion'==_0x58566d['type']?0x1:0x0);}function to(_0x30f707,_0x1fd3da){let _0x177778,_0x4f9f71=0x0;const _0x781b8a=[],_0xfc0d78=_0x1fd3da['schema'];for(;_0x4f9f71<_0x30f707['length'];){const _0x43db8c=_0x30f707[_0x4f9f71],_0x1f0940=_0x30f707[_0x4f9f71+0x1];_0x177778||(_0x177778=_0x1fd3da['createPositionBefore'](_0x43db8c)),on(_0x1fd3da,_0x43db8c,_0x1f0940)||(_0x781b8a['push'](_0x1fd3da['createRange'](_0x177778,_0xfc0d78['isObject'](_0x43db8c)?_0x1fd3da['createPositionAfter'](_0x43db8c):_0x1fd3da['createPositionAt'](_0x43db8c,'end'))),_0x177778=null),_0x4f9f71++;}return _0x781b8a;}function on(_0x56e400,_0x567f31,_0x3bf96e){if(!_0x3bf96e)return!0x1;const _0x6a1b9=_0x56e400['createPositionAfter'](_0x567f31),_0x126726=_0x56e400['createPositionBefore'](_0x3bf96e);return _0x6a1b9['isTouching'](_0x126726);}function Xt(_0x450cbf,_0x54521a,_0x4d4013){for(;_0x4d4013['length'];){const _0x1a23bd=_0x4d4013['splice'](0x0,0x64);_0x450cbf['change'](()=>{for(const _0x20fb50 of _0x1a23bd)_0x20fb50['isInContent']&&_0x54521a['execute'](_0x20fb50['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x5b855c,_0x556c5c,_0x1541ad){super(_0x5b855c),this['_command']=_0x556c5c,this['_suggestions']=_0x1541ad,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2034a6=Array['from'](this['_suggestions']['values']())['some'](_0x21bb40=>_0x21bb40['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2034a6;}['execute'](){const _0x2d4e07=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x27d8e8 of _0x2d4e07){const _0x1268fa=_0x27d8e8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1268fa))return;}Xt(this['editor']['model'],this['_command'],_0x2d4e07);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5de95b,_0x4f19f4,_0x2deff8){super(_0x5de95b),this['_command']=_0x4f19f4,this['_suggestions']=_0x2deff8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xae8487=this['editor']['model']['document']['selection'],_0x40c1a8=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5db4c4,_0x2db693){const _0x3d3f7c=Array['from'](_0x5db4c4['getRanges']()),_0x31fe30=new Set();for(const _0x53f753 of _0x2db693)if(_0x53f753['isInContent']){for(const _0x1ad12e of _0x3d3f7c)for(const _0x41e3d0 of _0x53f753['getRanges']())(_0x1ad12e['isIntersecting'](_0x41e3d0)||_0x5db4c4['isCollapsed']&&!_0x53f753['isMultiRange']&&_0x53f753['next']&&_0x41e3d0['end']['isTouching'](_0x1ad12e['start']))&&_0x31fe30['add'](_0x53f753);}return _0x31fe30;}(_0xae8487,_0x40c1a8),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2b40b3=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x1731dc of _0x2b40b3){const _0x17a0f8=_0x1731dc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x17a0f8))return;}Xt(this['editor']['model'],this['_command'],_0x2b40b3);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x323eb4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x24ba3a,_0x5e6b39){super(),this['id']=_0x5e6b39['id'],this['type']=_0x5e6b39['type'],this['subType']=_0x5e6b39['subType']||null,this['author']=_0x5e6b39['author'],this['creator']=_0x5e6b39['creator']||_0x5e6b39['author'],this['isExternal']=Boolean(_0x5e6b39['attributes']&&_0x5e6b39['attributes']['@external']),this['data']=null,this['_model']=_0x24ba3a,this['_onAccept']=_0x5e6b39['onAccept'],this['_onDiscard']=_0x5e6b39['onDiscard'],this['_onAttributesChange']=_0x5e6b39['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5e6b39['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 _0x55152c=this;for(;_0x55152c['previous'];)_0x55152c=_0x55152c['previous'];return _0x55152c;}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'](_0x3cf046){this['_markerNames']['add'](_0x3cf046);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x15fc63=>this['_model']['markers']['get'](_0x15fc63))['filter'](_0x513ec2=>_0x513ec2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xe506fc=>{for(const _0x37b0c6 of this['getMarkers']())_0xe506fc['removeMarker'](_0x37b0c6);}),this['_markerNames']['clear']();}['removeMarker'](_0x52dc6f){this['_model']['change'](_0x2ba6a5=>{_0x2ba6a5['removeMarker'](_0x52dc6f);}),this['_markerNames']['delete'](_0x52dc6f);}['addRange'](_0xd01265){const _0x549c8b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x549c8b),this['_model']['change'](_0x14707e=>{_0x14707e['addMarker'](_0x549c8b,{'range':_0xd01265,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x26589c){for(const _0x3978ef of this['getRanges']())if(_0x3978ef['isIntersecting'](_0x26589c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x579c04=>_0x579c04['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x528402,_0x56c15f)=>[..._0x528402,..._0x56c15f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x54f463=this['getRanges']();if(0x1!=_0x54f463['length'])return null;const _0x15afb6=_0x54f463[0x0],_0x3c7bd5=_0x15afb6['start']['nodeAfter'],_0x1584ce=_0x15afb6['end']['nodeBefore'];return _0x3c7bd5 instanceof _0x4b0ea3?_0x3c7bd5!=_0x1584ce?null:_0x3c7bd5: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 _0x1f9950=[];let _0x265d55=this['head'];for(;_0x265d55;)_0x1f9950['push'](_0x265d55),_0x265d55=_0x265d55['next'];return _0x1f9950;}['setAttribute'](_0x1d1e76,_0x26a463){const _0x4a38d4=_0xd1b14(this['attributes']);_0x5f28b3(_0x4a38d4,_0x1d1e76,_0x26a463),_0x4c869e(_0x4a38d4,this['attributes'])||(this['attributes']=_0x4a38d4,this['_onAttributesChange'](_0x4a38d4));}['removeAttribute'](_0x36496c){const _0x1ef97f=_0xd1b14(this['attributes']);_0x10f052(_0x1ef97f,_0x36496c),_0x4c869e(_0x1ef97f,this['attributes'])||(this['attributes']=_0x1ef97f,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 _0x440c38()['substr'](0x1,0x5);}}function o(_0x27867e,_0x191e06,_0x2be12c){const _0x44743f=_0x27867e['t'],t=_0x27867e['t'];switch(_0x191e06){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',_0x2be12c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2be12c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2be12c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2be12c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2be12c);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',_0x2be12c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2be12c);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',_0x2be12c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2be12c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2be12c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2be12c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2be12c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2be12c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2be12c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2be12c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2be12c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2be12c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2be12c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2be12c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2be12c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2be12c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2be12c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2be12c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2be12c);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'},_0x2be12c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2be12c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2be12c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2be12c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2be12c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2be12c);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'},_0x2be12c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2be12c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2be12c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2be12c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2be12c);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'},_0x2be12c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2be12c);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'},_0x2be12c);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'},_0x2be12c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2be12c);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'},_0x2be12c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2be12c);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'},_0x2be12c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2be12c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2be12c);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'},_0x2be12c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2be12c);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 _0x44743f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2be12c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x44743f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2be12c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2be12c);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'},_0x2be12c);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'},_0x2be12c);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'},_0x2be12c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x191e06;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5df482,_0x445b8f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5df482,this['_locale']=_0x445b8f;}['getDescriptions'](_0x5cc4cc){const _0x144126=[],_0x1c9f1e=new Set(),_0x3000c3=new Set();for(let _0x42b02b=0x0;_0x42b02b<_0x5cc4cc['length'];_0x42b02b++){const _0x11c3ca=_0x5cc4cc[_0x42b02b];if(!_0x11c3ca['isInContent'])continue;const _0x1147a9=this['_handleCustomCallbackDescription'](_0x11c3ca);if(_0x1147a9){if(null!=_0x11c3ca['subType']){if(_0x1c9f1e['has'](_0x11c3ca['subType']))continue;_0x1c9f1e['add'](_0x11c3ca['subType']);}_0x144126['push'](_0x1147a9);}else{if('attribute'!=_0x11c3ca['type'])'insertion'!=_0x11c3ca['type']&&'deletion'!=_0x11c3ca['type']||this['_handleInsertRemoveSuggestionDescription'](_0x144126,_0x11c3ca,_0x5cc4cc[_0x42b02b+0x1]);else{const _0x3ce496=_0x11c3ca['data']['key'];if(_0x3000c3['has'](_0x3ce496))continue;_0x3000c3['add'](_0x11c3ca['data']['key']),_0x3ce496==m?this['_handleRenameSuggestionDescription'](_0x144126,_0x11c3ca):this['_handleAttributeSuggestionDescription'](_0x144126,_0x11c3ca);}}}return this['_resolveDescriptionItems'](_0x144126);}['registerDescriptionCallback'](_0x5d6835){this['_customCallbacks']['push'](_0x5d6835);}['registerElementLabel'](_0x63a349,_0x31a7cd,_0x113fc1=_0x18918d['normal']){'function'==typeof _0x63a349?_0x2fe8bc(this['_itemLabelsCallbacks'],{'matchingCallback':_0x63a349,'label':_0x31a7cd,'priority':_0x113fc1}):this['_itemLabels']['set'](_0x63a349,_0x31a7cd);}['registerAttributeLabel'](_0x122d91,_0xc81594){this['_attributeLabels']['set'](_0x122d91,_0xc81594);}['getItemLabel'](_0x59aab9,_0x51e77b=0x1){let _0x1cac24;for(const _0x486068 of this['_itemLabelsCallbacks'])if(_0x486068['matchingCallback'](_0x59aab9)){_0x1cac24=_0x486068['label'];break;}return _0x1cac24||(_0x1cac24=this['_itemLabels']['get'](_0x59aab9['name'])),_0x1cac24?_0x1cac24(_0x51e77b):0x1!==_0x51e77b?_0x51e77b+'\x20'+_0x59aab9['name']+'s':''+_0x59aab9['name'];}['_addDescriptionItems'](_0x561b93,_0x2ca05d){const _0x1c9b4e=_0x2ca05d['getFirstRange']()['getWalker'](),_0x114f2f='insertion'==_0x2ca05d['type']?'add':'remove';for(const _0x46b2ee of _0x1c9b4e){const _0x49c80b=_0x46b2ee['item'],_0x57b12b=_0x561b93[_0x561b93['length']-0x1];if(_0x49c80b['is']('$textProxy'))_0x57b12b&&_0x57b12b['type']['indexOf']('Container')>-0x1&&_0x561b93['pop'](),_0x57b12b&&'text'==_0x57b12b['type']?_0x57b12b[_0x114f2f]+=_0x49c80b['data']:_0x561b93['push']({'type':'text','add':'add'==_0x114f2f?_0x49c80b['data']:'','remove':'remove'==_0x114f2f?_0x49c80b['data']:''});else{if(this['_schema']['isObject'](_0x49c80b)){const _0x17cbe5=_0x49c80b;if(_0x57b12b&&_0x57b12b['type']['indexOf']('Container')>-0x1&&_0x561b93['pop'](),'elementEnd'==_0x46b2ee['type'])continue;_0x57b12b&&_0x57b12b['type']==_0x114f2f+'Object'&&_0x57b12b['element']['name']==_0x17cbe5['name']?_0x57b12b['quantity']++:_0x561b93['push']({'type':_0x114f2f+'Object','element':_0x17cbe5,'quantity':0x1}),_0x1c9b4e['skip'](_0x8562a6=>!('elementEnd'==_0x8562a6['type']&&_0x8562a6['item']==_0x49c80b));}else{if(this['_schema']['checkChild'](_0x49c80b,'$text')||_0x49c80b['is']('element','softBreak')){const _0xf8c919=_0x49c80b;if('add'==_0x114f2f&&'elementStart'==_0x46b2ee['type']||'remove'==_0x114f2f&&'elementEnd'==_0x46b2ee['type'])continue;if(_0x57b12b&&-0x1==_0x57b12b['type']['indexOf']('Container')){'text'==_0x57b12b['type']&&(_0x57b12b[_0x114f2f]+='\x0a');continue;}let _0x2325dc;if(_0x2325dc='add'==_0x114f2f?_0xf8c919['nextSibling']&&!this['_schema']['isObject'](_0xf8c919['nextSibling'])?_0xf8c919['nextSibling']:null:_0xf8c919['previousSibling']&&!this['_schema']['isObject'](_0xf8c919['previousSibling'])?_0xf8c919['previousSibling']:null,_0xf8c919['isEmpty']||_0x2325dc&&_0x2325dc['isEmpty']){const _0x40ffd4=_0x2325dc&&_0x2325dc['isEmpty']?_0x2325dc:_0xf8c919;_0x57b12b&&_0x57b12b['type']==_0x114f2f+'EmptyContainer'&&_0x57b12b['element']['name']==_0x40ffd4['name']?_0x57b12b['quantity']++:_0x561b93['push']({'type':_0x114f2f+'EmptyContainer','element':_0x40ffd4,'quantity':0x1});}else _0x561b93['push']({'type':_0x114f2f+'Container','element':_0xf8c919});}}}}}['_resolveDescriptionItems'](_0x2beee4){const _0x3f4da0=this['_locale'],_0x1114c4=[],_0x264638=[],_0x2c9ebd=[];for(const _0x391040 of _0x2beee4)switch(_0x391040['type']){case'text':if(_0x391040['add']=_0x391040['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x391040['remove']=_0x391040['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x391040['add']&&''!=_0x391040['remove']){_0x1114c4['push']({'type':'replace','content':o(_0x3f4da0,'REPLACE_TEXT',['\x22'+_0x391040['remove']+'\x22','\x22'+_0x391040['add']+'\x22'])});continue;}if(null!=_0x391040['add']['match'](/^ +$/)){_0x1114c4['push']({'type':'insertion','content':o(_0x3f4da0,'*Insert:*\x20%0',o(_0x3f4da0,'ELEMENT_SPACE',_0x391040['add']['length']))});continue;}if(null!=_0x391040['remove']['match'](/^ +$/)){_0x1114c4['push']({'type':'deletion','content':o(_0x3f4da0,'*Remove:*\x20%0',o(_0x3f4da0,'ELEMENT_SPACE',_0x391040['remove']['length']))});continue;}if(''!=_0x391040['add']){_0x1114c4['push']({'type':'insertion','content':o(_0x3f4da0,'*Insert:*\x20%0','\x22'+_0x391040['add']+'\x22')});continue;}_0x1114c4['push']({'type':'deletion','content':o(_0x3f4da0,'*Remove:*\x20%0','\x22'+_0x391040['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1114c4['push']({'type':'insertion','content':o(_0x3f4da0,'*Insert:*\x20%0',this['getItemLabel'](_0x391040['element'],_0x391040['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1114c4['push']({'type':'deletion','content':o(_0x3f4da0,'*Remove:*\x20%0',this['getItemLabel'](_0x391040['element'],_0x391040['quantity']))});continue;case'addContainer':_0x1114c4['push']({'type':'insertion','content':o(_0x3f4da0,'*Split:*\x20%0',this['getItemLabel'](_0x391040['element'],_0x391040['quantity']))});continue;case'removeContainer':_0x1114c4['push']({'type':'deletion','content':o(_0x3f4da0,'*Merge:*\x20%0',this['getItemLabel'](_0x391040['element'],_0x391040['quantity']))});continue;case'addFormat':_0x264638['push'](_0x391040['key']);continue;case'removeFormat':_0x2c9ebd['push'](_0x391040['key']);continue;default:_0x1114c4['push'](_0x391040);}if(_0x264638['length']){const _0x13a8b3=_0x264638['map'](_0x25be24=>this['_attributeLabels']['has'](_0x25be24)?this['_attributeLabels']['get'](_0x25be24):_0x25be24)['join'](',\x20');_0x1114c4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x13a8b3)});}if(_0x2c9ebd['length']){const _0x5f2bcc=_0x2c9ebd['map'](_0x13b913=>this['_attributeLabels']['has'](_0x13b913)?this['_attributeLabels']['get'](_0x13b913):_0x13b913)['join'](',\x20');_0x1114c4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5f2bcc)});}return _0x1114c4;}['_handleCustomCallbackDescription'](_0x508ad3){for(const _0x2b89a8 of this['_customCallbacks']){const _0x21a2db=_0x2b89a8(_0x508ad3);if(_0x21a2db&&'type'in _0x21a2db)return _0x21a2db;}}['_handleAttributeSuggestionDescription'](_0x19c341,_0x919918){const _0x1cd298=_0x919918['data'],_0xf591f2=void 0x0===_0x1cd298['newValue']?'removeFormat':'addFormat';_0x19c341['push']({'type':_0xf591f2,'key':_0x1cd298['key']});}['_handleRenameSuggestionDescription'](_0xb517a8,_0xb19dbb){_0xb517a8['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xb19dbb['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x587c01,_0x47c803,_0x169ff9){if(this['_addDescriptionItems'](_0x587c01,_0x47c803),_0x169ff9&&_0x169ff9['getFirstRange']()&&!_0x47c803['getFirstRange']()['end']['isEqual'](_0x169ff9['getFirstRange']()['start'])){const _0x2641ae=_0x587c01[_0x587c01['length']-0x1],_0x521a32='insertion'==_0x47c803['type']?'add':'remove';_0x2641ae&&'text'==_0x2641ae['type']&&(_0x2641ae[_0x521a32]+='\x0a');}}}class U extends _0xcae1ef{['afterInit'](){const _0x4d1964=this['editor'],_0x1d568c=_0x4d1964['plugins']['get']('TrackChangesEditing');_0x4d1964['commands']['get']('showAIAssistant')&&_0x1d568c['enableCommand']('showAIAssistant');}}class V extends _0xcae1ef{['afterInit'](){const _0x180c53=this['editor'],_0xf5b92e=_0x180c53['locale'];if(!_0x180c53['plugins']['has']('AlignmentEditing'))return;const _0x5c7a68=_0x180c53['plugins']['get']('TrackChangesEditing');_0x5c7a68['enableDefaultAttributesIntegration']('alignment'),_0x5c7a68['registerBlockAttribute']('alignment'),_0x5c7a68['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xf5b92e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf148d5=this['editor'],_0x15c823=_0xf148d5['locale'];_0xf148d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51ccf0=>{if('formatBlock'!=_0x51ccf0['type'])return;const {data:_0x537e53}=_0x51ccf0;if(_0x537e53&&'alignment'==_0x537e53['commandName']){const _0x27a873=_0x537e53['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x15c823,'*Format:*\x20%0',function(_0x341bbe){switch(_0x341bbe){case'left':return o(_0x15c823,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x15c823,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x15c823,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x15c823,'FORMAT_JUSTIFY_TEXT');}}(_0x27a873))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0xcae1ef{['afterInit'](){const _0x3cc88d=this['editor'],_0xaf0920=_0x3cc88d['plugins']['get']('TrackChangesEditing'),_0x5ad358=_0x3cc88d['locale'];for(const _0x270b7d of Zt){if(!_0x3cc88d['plugins']['has'](_0x270b7d))continue;const _0x335b23=_0x270b7d['slice'](0x0,-0x7)['toLowerCase'](),_0xf1300='FORMAT_'+_0x335b23['toUpperCase']();_0xaf0920['enableDefaultAttributesIntegration'](_0x335b23),_0xaf0920['registerInlineAttribute'](_0x335b23),_0xaf0920['descriptionFactory']['registerAttributeLabel'](_0x335b23,o(_0x5ad358,_0xf1300));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39c634=this['editor'],_0x55d4ab=_0x39c634['locale'],_0x5dac76=_0x39c634['plugins']['get']('TrackChangesEditing');function _0x9f2b2d(_0x1de196,_0x16d78b){_0x5dac76['descriptionFactory']['registerDescriptionCallback'](_0x26fc64=>{if('formatInline'!=_0x26fc64['type'])return;const {data:_0x3b83e7}=_0x26fc64;return _0x3b83e7&&_0x3b83e7['commandName']===_0x1de196?_0x3b83e7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x55d4ab,'*Format:*\x20%0',_0x16d78b)}:{'type':'format','content':o(_0x55d4ab,'*Remove\x20format:*\x20%0',_0x16d78b)}:void 0x0;});}_0x9f2b2d('bold',o(_0x55d4ab,'FORMAT_BOLD')),_0x9f2b2d('italic',o(_0x55d4ab,'FORMAT_ITALIC')),_0x9f2b2d('underline',o(_0x55d4ab,'FORMAT_UNDERLINE')),_0x9f2b2d('code',o(_0x55d4ab,'FORMAT_CODE')),_0x9f2b2d('strikethrough',o(_0x55d4ab,'FORMAT_STRIKETHROUGH')),_0x9f2b2d('subscript',o(_0x55d4ab,'FORMAT_SUBSCRIPT')),_0x9f2b2d('superscript',o(_0x55d4ab,'FORMAT_SUPERSCRIPT'));}}class F extends _0xcae1ef{['afterInit'](){const _0x4cef28=this['editor'],_0x27da2a=_0x4cef28['locale'];if(!_0x4cef28['plugins']['has']('BlockQuoteEditing'))return;const _0x147e74=_0x4cef28['plugins']['get']('TrackChangesEditing'),_0x301ca5=this['editor']['commands']['get']('blockQuote');_0x147e74['enableCommand']('blockQuote',(_0x5761b8,_0x1d06f5={})=>{const _0x47e0fd=this['editor']['model']['document']['selection'],_0x218edc=_0x1d06f5&&void 0x0!==_0x1d06f5['forceValue']?_0x1d06f5['forceValue']:!_0x301ca5['value'];let _0x38c45a=[];if(_0x218edc){const _0x395cd7=Array['from'](_0x47e0fd['getSelectedBlocks']())['filter'](_0xe7692b=>oo(_0xe7692b)||function(_0x20f51a,_0xd37237){const _0x1e2ab1=_0xd37237['checkChild'](_0x20f51a['parent'],'blockQuote'),_0x1ed232=_0xd37237['checkChild'](['$root','blockQuote'],_0x20f51a);return _0x1e2ab1&&_0x1ed232;}(_0xe7692b,this['editor']['model']['schema']));_0x38c45a=to(_0x395cd7,_0x4cef28['model']);}else{const _0x29ac6d=Array['from'](_0x47e0fd['getSelectedBlocks']())['filter'](_0xf36b1=>oo(_0xf36b1));_0x38c45a=to(_0x29ac6d,_0x4cef28['model']);}_0x4cef28['model']['change'](()=>{for(const _0x467cf9 of _0x38c45a)_0x147e74['markBlockFormat'](_0x467cf9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x218edc}]});});}),_0x147e74['descriptionFactory']['registerDescriptionCallback'](_0x3ac216=>{const {data:_0x3cda16}=_0x3ac216;if(_0x3cda16&&'blockQuote'==_0x3cda16['commandName']){const _0x596c68=o(_0x27da2a,'ELEMENT_BLOCK_QUOTE');return _0x3cda16['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27da2a,'*Set\x20format:*\x20%0',_0x596c68)}:{'type':'format','content':o(_0x27da2a,'*Remove\x20format:*\x20%0',_0x596c68)};}});}}function oo(_0x546eaf){return'blockQuote'==_0x546eaf['parent']['name'];}class L extends _0xcae1ef{['afterInit'](){const _0x5aec62=this['editor'],_0x23b12d=_0x5aec62['locale'],_0x17b5d5=_0x5aec62['plugins']['get']('TrackChangesEditing');_0x5aec62['plugins']['has']('BookmarkEditing')&&(_0x17b5d5['enableCommand']('insertBookmark'),_0x17b5d5['enableDefaultAttributesIntegration']('updateBookmark'),_0x17b5d5['registerBlockAttribute']('bookmarkId'),_0x17b5d5['descriptionFactory']['registerDescriptionCallback'](_0x4747e5=>{if('insertion'!=_0x4747e5['type']&&'deletion'!=_0x4747e5['type']&&'attribute'!=_0x4747e5['type'])return;const _0x29e3d7=_0x4747e5['getContainedElement']();if(null==_0x29e3d7)return;if(!_0x29e3d7['is']('element','bookmark'))return;const _0x46bb56=_0x29e3d7['getAttribute']('bookmarkId');if('insertion'==_0x4747e5['type'])return{'type':'insertion','content':o(_0x23b12d,'*Insert:*\x20%0','\x22'+_0x46bb56+'\x22\x20'+o(_0x23b12d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4747e5['type'])return{'type':'deletion','content':o(_0x23b12d,'*Remove:*\x20%0','\x22'+_0x46bb56+'\x22\x20'+o(_0x23b12d,'ELEMENT_BOOKMARK'))};const {data:_0x372336}=_0x4747e5;if(!_0x372336||'bookmarkId'!=_0x372336['key'])return;return{'type':'format','content':o(_0x23b12d,'*Set\x20bookmark:*\x20%0','\x22'+_0x372336['newValue']+'\x22')};}));}}class J extends _0xcae1ef{['afterInit'](){const _0xb2ffa4=this['editor'];_0xb2ffa4['plugins']['has']('CaseChange')&&(_0xb2ffa4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xb2ffa4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xb2ffa4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0xcae1ef{['afterInit'](){const _0x17eeee=this['editor'];_0x17eeee['commands']['get']('ckbox')&&_0x17eeee['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0xcae1ef{['afterInit'](){const _0x3a2e29=this['editor'];if(!_0x3a2e29['plugins']['has']('CodeBlock'))return;const _0x3ba641=_0x3a2e29['plugins']['get']('TrackChangesEditing'),_0x1cadab=_0x3a2e29['locale'],_0x36c822=_0x3a2e29['config']['get']('codeBlock')['languages'],_0x4b5c94=_0x3a2e29['commands']['get']('codeBlock');_0x3ba641['enableCommand']('indentCodeBlock'),_0x3ba641['enableCommand']('outdentCodeBlock'),_0x3ba641['enableCommand']('codeBlock',(_0x9768fb,_0x2b223e={})=>{const _0x51cfaa=_0x3a2e29['model'],_0x393014=_0x3a2e29['model']['document']['selection'],_0x396722=_0x2b223e&&void 0x0!==_0x2b223e['forceValue']?_0x2b223e['forceValue']:!_0x4b5c94['value'];let _0x3ee62e;_0x2b223e['language']||(_0x2b223e['language']=_0x36c822[0x0]['language']),_0x3ee62e=_0x396722?Array['from'](_0x393014['getSelectedBlocks']())['filter'](_0x739232=>eo(_0x739232)||function(_0x77c450,_0x3362b6){if(_0x77c450['is']('rootElement')||_0x3362b6['isLimit'](_0x77c450))return!0x1;return _0x3362b6['checkChild'](_0x77c450['parent'],'codeBlock');}(_0x739232,_0x51cfaa['schema'])):Array['from'](_0x393014['getSelectedBlocks']())['filter'](_0x2363ef=>eo(_0x2363ef));const _0xbcb01b=to(_0x3ee62e,_0x51cfaa);_0x51cfaa['change'](()=>{for(const _0x43b241 of _0xbcb01b)_0x3ba641['markBlockFormat'](_0x43b241,{'commandName':'codeBlock','commandParams':[{..._0x2b223e,'forceValue':_0x396722}],'formatGroupId':'blockName'});});}),(_0x3ba641['descriptionFactory']['registerElementLabel']('codeBlock',_0x2a12bb=>o(_0x1cadab,'ELEMENT_CODE_BLOCK',_0x2a12bb)),_0x3ba641['descriptionFactory']['registerDescriptionCallback'](_0x4bd3fc=>{if('formatBlock'!=_0x4bd3fc['type'])return;const _0x1e4b0a=_0x1cadab['t'],{data:_0x3e50ab}=_0x4bd3fc;if(!_0x3e50ab||'codeBlock'!=_0x3e50ab['commandName'])return;const _0x4b25ae=_0x3e50ab['commandParams'][0x0]['language'],_0x58b23f=_0x1e4b0a(_0x36c822['find'](_0x1e899f=>_0x1e899f['language']===_0x4b25ae)['label'])['toLowerCase']();return _0x3e50ab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1cadab,'*Set\x20format:*\x20%0',o(_0x1cadab,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x58b23f+')')}:{'type':'format','content':o(_0x1cadab,'*Remove\x20format:*\x20%0',o(_0x1cadab,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4af4cc){return'codeBlock'==_0x4af4cc['name'];}class z extends _0xcae1ef{['afterInit'](){const _0x562513=this['editor'];if(!_0x562513['plugins']['has']('CommentsEditing'))return;_0x562513['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x259901,_0x3a2003,_0x1d45c0){const _0x309e22=[];for(const _0x14c2eb of _0x3a2003['getItems']())_0x14c2eb['hasAttribute'](_0x259901)&&_0x309e22['push'](_0x1d45c0['createRangeOn'](_0x14c2eb));return _0x309e22;}function Ne(_0x1ee20f,_0x302887,{showActiveMarker:_0xf4c589=!0x0}={}){const _0x49a069=_0x1ee20f['plugins']['get']('TrackChangesEditing');return(_0x562d41,_0x5b2b22,_0xa7c91b)=>{if(!_0xa7c91b['consumable']['test'](_0x5b2b22['markerRange'],_0x562d41['name']))return;const _0x19f364=_0x5b2b22['markerRange']['getWalker'](),_0x5a8afb=_0x5b2b22['markerRange']['start'],_0x4dc966=_0x1ee20f['model']['schema'];let _0x5eb33a=null,_0x32f438=null,_0x11b251=!0x1,_0x300309=!0x1;for(const _0x1cc276 of _0x19f364){const _0x102a7a=_0x1cc276['item'];_0x11b251=_0x11b251||_0x4dc966['isContent'](_0x102a7a);const _0x2e4e26=_0xa7c91b['mapper']['toViewElement'](_0x102a7a);if(_0x2e4e26&&_0x2e4e26['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1cc276['type']&&(_0x4dc966['isBlock'](_0x102a7a)&&!_0x4dc966['isLimit'](_0x102a7a)&&(_0x102a7a['nextSibling']||_0x5a8afb['isAtEnd']?_0x5eb33a&&_0x5eb33a['parent']==_0x102a7a||(_0x5eb33a=_0x102a7a,_0x2d1673(_0x1cc276['previousPosition']),_0x300309=!0x0):_0x32f438=_0x32f438||_0x1cc276['previousPosition']));}function _0x2d1673(_0x218c9b){const {authorId:_0x432a07}=_0x49a069['_splitMarkerName'](_0x5b2b22['markerName']),_0xf7186d=_0xa7c91b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x302887,'data-author-id':_0x432a07}),_0x2e8862=_0xa7c91b['mapper']['toViewPosition'](_0x218c9b);_0xf4c589&&_0x49a069['activeMarkers']['includes'](_0x5b2b22['markerName'])&&_0xa7c91b['writer']['addClass']('ck-suggestion-marker--active',_0xf7186d),_0xa7c91b['writer']['insert'](_0x2e8862,_0xf7186d),_0xa7c91b['mapper']['bindElementToMarker'](_0xf7186d,_0x5b2b22['markerName']);}_0x11b251||_0x300309||!_0x32f438||_0x2d1673(_0x32f438);};}class K extends _0xcae1ef{static get['requires'](){return[_0x75aa91];}['init'](){const _0x3b78ee=this['editor'],_0x1a36f2=_0x3b78ee['plugins']['get']('TrackChangesEditing');_0x1a36f2['enableCommand']('delete');const _0x3a1ad3=_0x3b78ee['commands']['get']('deleteForward');_0x1a36f2['enableCommand']('deleteForward',(_0x1605ee,_0xb481fb={})=>{const _0x428443=_0x3b78ee['model']['createSelection'](_0x3b78ee['model']['document']['selection']);_0x428443['isCollapsed']&&_0x3b78ee['model']['modifySelection'](_0x428443,{'direction':'forward','unit':_0xb481fb['unit']});const _0x1e6541=_0x428443['getFirstRange'](),_0x4480b4=_0x3fc55d['fromRange'](_0x1e6541);let _0x29abb5;_0x1605ee(_0xb481fb),_0x29abb5='$graveyard'==_0x4480b4['root']['rootName']?_0x3b78ee['model']['createRange'](_0x1e6541['start']):_0x3b78ee['model']['createRange'](_0x4480b4['start'],_0x4480b4['end']),_0x4480b4['detach'](),_0x3b78ee['model']['enqueueChange'](_0x3a1ad3['buffer']['batch'],_0x3ec74e=>{_0x3a1ad3['buffer']['lock'](),_0x3ec74e['setSelection'](_0x3ec74e['createRange'](_0x29abb5['end'])),_0x3a1ad3['buffer']['unlock']();});}),_0x3b78ee['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x3b78ee,'merge'),{'priority':'high'}),_0x3b78ee['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x114b4d,_0xa200e7,_0x311040)=>{_0x311040['options']['showSuggestionHighlights']&&Ne(_0x3b78ee,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x114b4d,_0xa200e7,_0x311040);},{'priority':'high'}),_0x3b78ee['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xaaa0ce,_0x11b9d5,_0x15612b)=>{const _0x2d26a9=_0x15612b['mapper']['markerNameToElements'](_0x11b9d5['markerName']);if(_0x2d26a9){for(const _0xfebe44 of _0x2d26a9)_0xfebe44['is']('uiElement')&&(_0x15612b['mapper']['unbindElementFromMarkerName'](_0xfebe44,_0x11b9d5['markerName']),_0x15612b['writer']['remove'](_0xfebe44));}},{'priority':'high'});}}class W extends _0xcae1ef{['afterInit'](){const _0x1e5033=this['editor'];if(!_0x1e5033['plugins']['has']('ListEditing'))return;const _0x2b5319=_0x1e5033['locale'],_0x66ad13=_0x1e5033['plugins']['get']('TrackChangesEditing'),_0x2db9fc=_0x1e5033['plugins']['has']('TodoListEditing'),_0x222887=!!_0x1e5033['config']['get']('list.multiBlock');function _0x27e990(_0x3a7dbb){return{'type':'format','content':''+o(_0x2b5319,'*Set\x20format:*\x20%0',_0x3a7dbb)};}function _0x48f082(_0x16dc5c){return{'type':'format','content':''+o(_0x2b5319,'*Remove\x20format:*\x20%0',_0x16dc5c)};}_0x66ad13['enableDefaultAttributesIntegration']('numberedList'),_0x66ad13['enableDefaultAttributesIntegration']('bulletedList'),_0x66ad13['enableDefaultAttributesIntegration']('customNumberedList'),_0x66ad13['enableDefaultAttributesIntegration']('customBulletedList'),_0x66ad13['enableDefaultAttributesIntegration']('indentList'),_0x66ad13['enableDefaultAttributesIntegration']('outdentList'),_0x66ad13['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x66ad13['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x66ad13['registerBlockAttribute']('listItemId'),_0x66ad13['registerBlockAttribute']('listType'),_0x66ad13['registerBlockAttribute']('listIndent'),_0x222887&&(_0x66ad13['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x66ad13['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2db9fc&&(_0x66ad13['enableDefaultAttributesIntegration']('todoList'),_0x66ad13['enableDefaultAttributesIntegration']('checkTodoList'),_0x66ad13['registerBlockAttribute']('todoListChecked'),_0x66ad13['descriptionFactory']['registerDescriptionCallback'](_0x4b352e=>{const {data:_0x2a1a2b}=_0x4b352e;if(_0x2a1a2b&&'todoListChecked'==_0x2a1a2b['key'])return{'type':'format','content':_0x2a1a2b['newValue']?o(_0x2b5319,'*Check\x20item*'):o(_0x2b5319,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x56c000=>{if(_0x56c000['batch']['isUndo'])return!0x1;let _0x534582=!0x1;const _0x5c64a2=_0x66ad13['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e7e51=>'todoListChecked'===_0x66ad13['_getAttributeKey'](_0x3e7e51));for(const _0x32de4a of _0x5c64a2){'todo'!=_0x32de4a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x66ad13['_findSuggestions'](_0x32de4a['getFirstRange'](),'attribute')['find'](_0x362b29=>'listType'===_0x66ad13['_getAttributeKey'](_0x362b29['suggestion']))||(_0x56c000['removeMarker'](_0x32de4a['getFirstMarker']()),_0x534582=!0x0));}return _0x534582;})),_0x66ad13['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2b5319,'FORMAT_INDENT'));const _0x5856d3={'type':'format','content':''};_0x66ad13['descriptionFactory']['registerDescriptionCallback'](_0x313809=>{const {data:_0x33c3e8}=_0x313809;if(!_0x33c3e8||'listType'!=_0x33c3e8['key'])return;let _0x1bb6f6=_0x313809['head'];for(;_0x1bb6f6;){if(_0x1bb6f6['data']&&(('listStyle'==_0x1bb6f6['data']['key']||'listMarkerStyle'==_0x1bb6f6['data']['key'])&&(_0x1bb6f6['data']['newValue']&&'default'!=_0x1bb6f6['data']['newValue']||'default'!=_0x1bb6f6['data']['oldValue']&&!_0x33c3e8['newValue'])||!_0x222887&&_0x1bb6f6['data']['key']==m))return _0x5856d3;_0x1bb6f6=_0x1bb6f6['next'];}if(null==_0x33c3e8['newValue'])switch(_0x33c3e8['oldValue']){case'bulleted':return _0x48f082(o(_0x2b5319,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48f082(o(_0x2b5319,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48f082(o(_0x2b5319,'ELEMENT_TODO_LIST'));}switch(_0x33c3e8['newValue']){case'bulleted':return _0x27e990(o(_0x2b5319,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x27e990(o(_0x2b5319,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x27e990(o(_0x2b5319,'ELEMENT_TODO_LIST'));}}),_0x66ad13['descriptionFactory']['registerDescriptionCallback'](_0x26646e=>{const {data:_0x1cded4}=_0x26646e;if(_0x1cded4&&'listIndent'==_0x1cded4['key'])return null==_0x1cded4['newValue']||null==_0x1cded4['oldValue']&&0x0==_0x1cded4['newValue']?_0x5856d3:void 0x0;}),_0x66ad13['descriptionFactory']['registerDescriptionCallback'](_0xd08c4f=>{if('attribute'!=_0xd08c4f['type'])return;const {data:_0x1f4e61}=_0xd08c4f;if(!_0x1f4e61||'listItemId'!=_0x1f4e61['key'])return;const _0x35a4f2=Te(_0xd08c4f);return'newValue'==_0x35a4f2?{'type':'format','content':o(_0x2b5319,'*Merge:*\x20list\x20item')}:'oldValue'==_0x35a4f2?{'type':'format','content':o(_0x2b5319,'*Split:*\x20list\x20item')}:_0x5856d3;}),_0x1e5033['model']['document']['registerPostFixer'](_0x46e4b3=>this['listItemIdFixer'](_0x46e4b3)),_0x1e5033['model']['document']['registerPostFixer'](_0x1145c3=>this['noTrackChangesFixer'](_0x1145c3)),_0x1e5033['model']['document']['on']('change:data',(_0x38743e,_0xfcae52)=>{if(_0xfcae52['isUndo']||!_0xfcae52['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5987e5){if(_0x5987e5['batch']['isUndo']||!_0x5987e5['batch']['isLocal'])return!0x1;let _0x1b6bea=!0x1;const _0x511b31=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x226bf1=>_0x226bf1['data']&&'listItemId'==_0x226bf1['data']['key'])['filter'](_0x1a2648=>_0x1a2648['data']['newValue']&&_0x1a2648['data']['oldValue']);for(const _0x1e0df8 of _0x511b31)Te(_0x1e0df8)||(_0x5987e5['removeMarker'](_0x1e0df8['getFirstMarker']()),_0x1b6bea=!0x0);return _0x1b6bea;}['noTrackChangesFixer'](_0x454f55){if(_0x454f55['batch']['isUndo']||!_0x454f55['batch']['isLocal'])return!0x1;const _0x2a7e70=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2a7e70['trackChangesCommand']['value'])return!0x1;let _0x229eb6=!0x1;const _0x18e2c1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xd3989b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x568f4a=>'attribute'==_0x568f4a['type'])['filter'](_0x59866d=>_0x18e2c1['includes'](_0x59866d['attributeKey']));if(0x0==_0xd3989b['length'])return _0x229eb6;for(const _0x208060 of _0xd3989b){const _0xe4e5e4=_0x2a7e70['_findSuggestions'](_0x208060['range'],'attribute')['filter'](_0x3ba426=>!_0x3ba426['meta']['isNextTo'])['map'](_0x5044e3=>_0x5044e3['suggestion'])['filter'](_0x2156a9=>{const _0x28990a=_0x2a7e70['_getAttributeKey'](_0x2156a9);return _0x18e2c1['includes'](_0x28990a);});if(_0xe4e5e4['length']){for(const _0x47ee6c of _0xe4e5e4)_0x454f55['removeMarker'](_0x47ee6c['getFirstMarker']());_0x229eb6=!0x0;}}return _0x229eb6;}['assureChains'](){const _0xa114f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52301f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3b1ebc;const _0x589086=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5a2185=>{if(_0x5a2185['data']['oldRange']||!_0x5a2185['data']['newRange'])return null;if(!_0x5a2185['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x556f3c}=_0xa114f6['_splitMarkerName'](_0x5a2185['name']);if(!_0xa114f6['hasSuggestion'](_0x556f3c))return null;const _0x3ef4de=_0xa114f6['getSuggestion'](_0x556f3c);return _0x52301f['includes'](_0x3ef4de['data']['key']);})['map'](_0x191798=>{const {id:_0x53b264}=_0xa114f6['_splitMarkerName'](_0x191798['name']),_0x280c9e=_0xa114f6['getSuggestion'](_0x53b264);return _0x3b1ebc=_0x280c9e['attributes']['groupId'],_0x280c9e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x589086['size'])return;const _0x28e2d3=_0xa114f6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1609f0=>'attribute'==_0x1609f0['type']&&_0x1609f0['data']&&_0x52301f['includes'](_0x1609f0['data']['key'])&&_0x1609f0['attributes']['groupId']!=_0x3b1ebc)['map'](_0x4867bc=>({'listItem':_0x4867bc['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4867bc['attributes']['groupId']})),_0x39d679=new Set();for(const {groupId:_0x4c81af,listItem:_0x3372e4}of _0x28e2d3)_0x589086['has'](_0x3372e4)&&_0x39d679['add'](_0x4c81af);for(const _0x2086bf of _0xa114f6['getSuggestions']())_0x39d679['has'](_0x2086bf['attributes']['groupId'])&&_0x2086bf['setAttribute']('groupId',_0x3b1ebc);}['_supportLegacySuggestions'](){const _0x3657e9=this['editor'],_0x3c9852=_0x3657e9['locale'],_0x4ea7ae=_0x3657e9['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4ea7ae['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x122b09,_0x4e3e0b){const _0x3ffc4=[];for(let _0x147593 of _0x122b09)_0x147593['start']['nodeAfter']===_0x147593['end']['parent']&&(_0x147593=_0x3657e9['model']['createRange'](_0x3657e9['model']['createPositionAt'](_0x147593['start']['nodeAfter'],0x0))),_0x3ffc4['push'](_0x147593);_0x3657e9['model']['change'](_0x12536e=>{const _0x2fe94e=_0x3657e9['model']['document']['selection'],_0x1b578b=Array['from'](_0x2fe94e['getRanges']())['map'](_0x179c3c=>_0x3fc55d['fromRange'](_0x179c3c));_0x12536e['setSelection'](_0x3ffc4),_0x3657e9['commands']['get'](_0x4e3e0b['commandName'])['refresh'](),_0x4e3e0b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3657e9['execute'](_0x4e3e0b['commandName'],..._0x4e3e0b['commandParams']),_0x12536e['setSelection'](_0x1b578b);for(const _0x456dd1 of _0x1b578b)_0x456dd1['detach']();});}),_0x4ea7ae['descriptionFactory']['registerElementLabel'](function(_0x416e12){const _0x2e2c6c=!_0x3657e9['model']['schema']['isObject'](_0x416e12),_0xa7e6a3=_0x416e12['previousSibling'],_0x5370be=_0x416e12['nextSibling'],_0x244718=_0x416e12['getAttribute']('listItemId'),_0x51da83=!_0xa7e6a3||_0xa7e6a3['getAttribute']('listItemId')!==_0x244718,_0x257dac=!_0x5370be||_0x5370be['getAttribute']('listItemId')!==_0x244718;return _0x2e2c6c&&Boolean(_0x244718)&&_0x51da83&&_0x257dac;},_0x43e66c=>o(_0x3c9852,'ELEMENT_LIST_ITEM',_0x43e66c));}['_registerLegacyDescription'](){const _0x49f7c2=this['editor'],_0x368edc=_0x49f7c2['locale'];function _0x354dea(_0x165111){const _0x4b060d=_0x49f7c2['commands']['get']('bulletedList')['value'],_0x249d91=_0x49f7c2['commands']['get']('numberedList')['value'];return'numberedList'===_0x165111?_0x4b060d:_0x249d91;}_0x49f7c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x532f00){if('formatBlock'!=_0x532f00['type'])return;const {data:_0x290bfb}=_0x532f00;if(!_0x290bfb)return;let _0x55eea3,_0x777821,_0x47a5e5,_0x2df98a;switch(_0x290bfb['commandName']){case'bulletedList':_0x47a5e5=_0x290bfb['commandParams'][0x0]['forceValue'],_0x2df98a=_0x354dea(_0x290bfb['commandName']),_0x55eea3=_0x47a5e5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2df98a&&_0x49f7c2['config']['get']('list.multiBlock')||(_0x55eea3='*Change\x20to:*\x20%0'),_0x777821={'type':'format','content':o(_0x368edc,_0x55eea3,o(_0x368edc,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x47a5e5=_0x290bfb['commandParams'][0x0]['forceValue'],_0x2df98a=_0x354dea(_0x290bfb['commandName']),_0x55eea3=_0x47a5e5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2df98a&&_0x49f7c2['config']['get']('list.multiBlock')||(_0x55eea3='*Change\x20to:*\x20%0'),_0x777821={'type':'format','content':o(_0x368edc,_0x55eea3,o(_0x368edc,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x55eea3='*Indent:*\x20%0',_0x777821={'type':'format','content':o(_0x368edc,_0x55eea3,o(_0x368edc,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x55eea3=function(_0x1edb78){const _0x2db08c=_0x1edb78['getFirstRange']();let _0x53614d=_0x2db08c['start']['nodeAfter'];for(;_0x53614d&&_0x2db08c['containsItem'](_0x53614d);){if(_0x53614d['getAttribute']('listIndent')>0x0)return!0x1;_0x53614d=_0x53614d['nextSibling'];}return!0x0;}(_0x532f00)?o(_0x368edc,'*Format:*\x20remove\x20from\x20%0',o(_0x368edc,function(_0x5a0348){return'ELEMENT_'+_0x5a0348['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x532f00))):o(_0x368edc,'*Outdent:*\x20%0',o(_0x368edc,'ELEMENT_LIST_ITEM')),_0x777821={'type':'format','content':_0x55eea3};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x290bfb['multipleBlocks']&&(_0x55eea3='*Merge:*\x20%0',_0x777821={'type':'deletion','content':o(_0x368edc,_0x55eea3,o(_0x368edc,'ELEMENT_LIST_ITEM'))});}return _0x777821;});}}function Te(_0x3e7e77){let _0x15323a=_0x3e7e77['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x15323a;){const _0x5b8541=_0x15323a['getAttribute']('listItemId');if(!_0x5b8541)return!0x1;if(_0x5b8541==_0x3e7e77['data']['newValue'])return'newValue';if(_0x5b8541==_0x3e7e77['data']['oldValue'])return'oldValue';_0x15323a=_0x15323a['previousSibling'];}return!0x1;}class ye extends _0xcae1ef{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x579069=this['editor']['config']['get']('list.properties'),_0xb18f27=this['editor']['plugins']['get']('TrackChangesEditing');_0x579069['styles']&&(_0xb18f27['enableDefaultAttributesIntegration']('listStyle'),_0xb18f27['registerBlockAttribute']('listStyle')),_0x579069['reversed']&&(_0xb18f27['enableDefaultAttributesIntegration']('listReversed'),_0xb18f27['registerBlockAttribute']('listReversed')),_0x579069['startIndex']&&(_0xb18f27['enableDefaultAttributesIntegration']('listStart'),_0xb18f27['registerBlockAttribute']('listStart'));const _0x3e59fc={'type':'format','content':''};_0xb18f27['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3279e2=this['editor']['locale'];_0xb18f27['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3279e2,'FORMAT_LIST_REVERSED')),_0xb18f27['descriptionFactory']['registerDescriptionCallback'](_0x443c2e=>{const {data:_0x139f30}=_0x443c2e;if(_0x139f30&&'listReversed'==_0x139f30['key'])return null==_0x139f30['newValue']||0x0==_0x139f30['newValue']&&null==_0x139f30['oldValue']?_0x3e59fc:void 0x0;}),_0xb18f27['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3279e2,'FORMAT_LIST_START')),_0xb18f27['descriptionFactory']['registerDescriptionCallback'](_0x4adb71=>{const {data:_0x355ed0}=_0x4adb71;if(_0x355ed0&&'listStart'==_0x355ed0['key'])return null==_0x355ed0['newValue']||0x1==_0x355ed0['newValue']&&null==_0x355ed0['oldValue']?_0x3e59fc:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3ee3cd=>{if(_0x3ee3cd['batch']['isUndo'])return!0x1;let _0x575172=!0x1;const _0x4d58fc=_0xb18f27['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24f08b=>{const _0x268f8f=_0xb18f27['_getAttributeKey'](_0x24f08b);return'listStart'==_0x268f8f||'listReversed'==_0x268f8f;});for(const _0x5b985c of _0x4d58fc){const _0x520960=_0x5b985c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x520960||'customNumbered'==_0x520960)continue;_0xb18f27['_findSuggestions'](_0x5b985c['getFirstRange'](),'attribute')['find'](_0x55077d=>'listType'==_0xb18f27['_getAttributeKey'](_0x55077d['suggestion']))||(_0x3ee3cd['removeMarker'](_0x5b985c['getFirstMarker']()),_0x575172=!0x0);}return _0x575172;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1f5947){const _0x37d4f0=this['editor']['locale'],{data:_0x216d13}=_0x1f5947,_0x59bcb8={'type':'format','content':''};if(!_0x216d13||'listStyle'!=_0x216d13['key'])return;if(!_0x216d13['oldValue'])return'default'==_0x216d13['newValue']?_0x59bcb8:{'type':'format','content':''+o(_0x37d4f0,'*Set\x20format:*\x20%0',o(_0x37d4f0,this['_getTranslationKeyForListStyle'](_0x216d13['newValue'])))};if(!_0x216d13['newValue']){if('default'==_0x216d13['oldValue'])return _0x59bcb8;let _0x16700f=_0x1f5947['head'];for(;_0x16700f;){if(_0x16700f['data']&&'listType'==_0x16700f['data']['key']&&_0x16700f['data']['newValue'])return _0x59bcb8;_0x16700f=_0x16700f['next'];}return{'type':'format','content':''+o(_0x37d4f0,'*Remove\x20format:*\x20%0',o(_0x37d4f0,this['_getTranslationKeyForListStyle'](_0x216d13['oldValue'])))};}if('default'!=_0x216d13['newValue'])return{'type':'format','content':''+o(_0x37d4f0,'*Set\x20format:*\x20%0',o(_0x37d4f0,this['_getTranslationKeyForListStyle'](_0x216d13['newValue'])))};let _0x2e4fd0=_0x1f5947['head'];for(;_0x2e4fd0;){if(_0x2e4fd0['data']&&'listType'==_0x2e4fd0['data']['key']&&_0x2e4fd0['data']['newValue']&&_0x2e4fd0['data']['oldValue'])return _0x59bcb8;_0x2e4fd0=_0x2e4fd0['next'];}return{'type':'format','content':o(_0x37d4f0,'*Set\x20format:*\x20%0',o(_0x37d4f0,'ELEMENT_'+_0x1f5947['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5e886c=this['editor'],_0x138ae5=_0x5e886c['locale'];_0x5e886c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x373cbf=>{if('formatBlock'!=_0x373cbf['type'])return;const {data:_0x28f777}=_0x373cbf;if(!_0x28f777)return;let _0x2a9da4,_0x2326dd;switch(_0x28f777['commandName']){case'listStyle':_0x2a9da4='*Change\x20to:*\x20%0',_0x2326dd={'type':'format','content':o(_0x138ae5,_0x2a9da4,o(_0x138ae5,this['_getTranslationKeyForListStyle'](_0x28f777['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2a9da4=_0x28f777['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2326dd={'type':'format','content':o(_0x138ae5,_0x2a9da4)};break;case'listStart':_0x2a9da4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2326dd={'type':'format','content':o(_0x138ae5,_0x2a9da4,_0x28f777['commandParams'][0x0]['startIndex'])};}return _0x2326dd;});}['_getTranslationKeyForListStyle'](_0x487d99){return'ELEMENT_'+function(_0xcaa954){if(Se['includes'](_0xcaa954))return'bulleted';if(_e['includes'](_0xcaa954))return'numbered';return null;}(_0x487d99)['toUpperCase']()+'_LIST_'+_0x487d99['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xcae1ef{static get['requires'](){return[_0x49b715];}['init'](){const _0x222962=this['editor'],_0x279736=_0x222962['plugins']['get']('TrackChangesEditing'),_0x30bb7d=_0x222962['commands']['get']('enter');_0x279736['enableCommand']('enter',()=>{_0x222962['model']['change'](_0x5790e7=>{const _0x363d2f=_0x222962['model']['document']['selection'],_0x2adc91=_0x363d2f['getFirstPosition'](),_0x325858=_0x3fc55d['fromRange'](_0x363d2f['getFirstRange']());if(_0x30bb7d['enterBlock'](_0x5790e7)){const _0x524d0b=_0x222962['model']['createPositionAt'](_0x2adc91['parent']['nextSibling'],0x0),_0x171576=_0x5790e7['createRange'](_0x2adc91,_0x524d0b);_0x279736['markInsertion'](_0x171576);}else _0x5790e7['setSelection'](_0x5790e7['createRange'](_0x325858['end']));_0x325858['detach'](),_0x30bb7d['fire']('afterExecute',{'writer':_0x5790e7});});}),_0x222962['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x222962,'split'),{'priority':'high'}),_0x222962['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3e46a,_0x20f2db,_0x4c663f)=>{const _0x57da68=_0x4c663f['mapper']['markerNameToElements'](_0x20f2db['markerName']);if(_0x57da68){for(const _0x34a3c6 of _0x57da68)_0x34a3c6['hasClass']('ck-suggestion-marker-split')&&(_0x4c663f['mapper']['unbindElementFromMarkerName'](_0x34a3c6,_0x20f2db['markerName']),_0x4c663f['writer']['remove'](_0x34a3c6));}},{'priority':'high'}),_0x222962['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x19de93,_0x365eef,_0x489116)=>{_0x489116['options']['showSuggestionHighlights']&&Ne(_0x222962,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x19de93,_0x365eef,_0x489116);},{'priority':'high'});}}class Y extends _0xcae1ef{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x573f57=this['editor']['plugins']['get']('TrackChangesEditing');_0x573f57['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x573f57['enableCommand']('findNext'),_0x573f57['enableCommand']('findPrevious'),_0x573f57['enableCommand']('replace'),_0x573f57['enableCommand']('replaceAll');}['handleFindCommand'](_0x293bd8,_0x44ce9d,_0x5a2663={}){const _0x341f16=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x293bd8(_0x495250=>{let _0x4299ad=('string'==typeof _0x44ce9d?_0x341f16['findByTextCallback'](_0x44ce9d,_0x5a2663):_0x44ce9d)(_0x495250);Array['isArray'](_0x4299ad)&&(_0x4299ad={'results':_0x4299ad,'searchText':'string'==typeof _0x44ce9d?_0x44ce9d:''});const _0x1866db=_0x4299ad['results']['filter'](_0x3227ff=>!0x1===this['_isInDeletionRange'](_0x3227ff,_0x495250['item']));return{..._0x4299ad,'results':_0x1866db};},_0x5a2663);}['_isInDeletionRange'](_0x47d6af,_0x4d55e4){const _0x22e7d3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4d55e4,_0x47d6af['start']),this['editor']['model']['createPositionAt'](_0x4d55e4,_0x47d6af['end']));for(const _0x7ddc8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x22e7d3['getIntersection'](_0x7ddc8['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0xcae1ef{['afterInit'](){const _0x38f083=this['editor']['locale'],_0x6b8c65=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x49d5b9,commandName:_0x1b660c}of ro)this['editor']['plugins']['has'](_0x49d5b9)&&(_0x6b8c65['enableDefaultAttributesIntegration'](_0x1b660c),_0x6b8c65['registerInlineAttribute'](_0x1b660c));_0x6b8c65['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x38f083,'FORMAT_FONT_SIZE')),_0x6b8c65['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x38f083,'FORMAT_FONT_FAMILY')),_0x6b8c65['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x38f083,'FORMAT_FONT_COLOR')),_0x6b8c65['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x38f083,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x150df4=this['editor'],_0x193b98=_0x150df4['locale'];_0x150df4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44376d=>{const _0x27700b=_0x193b98['t'];if('formatInline'!=_0x44376d['type'])return;const {data:_0x3839ea}=_0x44376d;if(null!=_0x3839ea){if('fontSize'==_0x3839ea['commandName']){const _0x769c15=_0x3839ea['commandParams'][0x0]['value'];if(_0x769c15){const _0x5d69ba=_0x27700b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3a40db=>_0x3a40db['model']==_0x769c15)['title'])['toLowerCase']();return{'type':'format','content':o(_0x193b98,'*Set\x20font\x20size:*\x20%0',_0x5d69ba)};}return{'type':'format','content':o(_0x193b98,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3839ea['commandName']){const _0x158b0c=_0x3839ea['commandParams'][0x0]['value'];return _0x158b0c?{'type':'format','content':o(_0x193b98,'*Set\x20font\x20family:*\x20%0',_0x158b0c)}:{'type':'format','content':o(_0x193b98,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3839ea['commandName']){const _0x5d6734=_0x3839ea['commandParams'][0x0]['value'];if(_0x5d6734){const _0x30384e=_0x2761db(this['editor']['config']['get']('fontColor.colors'))['find'](_0x242889=>_0x242889['model']==_0x5d6734);let _0x1a01cc=_0x5d6734,_0x98ed8b='';return _0x30384e&&(_0x1a01cc=_0x30384e['label'],_0x98ed8b=_0x27700b(_0x1a01cc)['toLowerCase']()),{'type':'format','content':o(_0x193b98,'*Set\x20font\x20color:*\x20%0',_0x98ed8b)['trim'](),'color':{'value':_0x5d6734,'title':_0x98ed8b||_0x1a01cc}};}return{'type':'format','content':o(_0x193b98,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3839ea['commandName']){const _0x3cf84a=_0x3839ea['commandParams'][0x0]['value'];if(_0x3cf84a){const _0x4d90b0=_0x2761db(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x37789b=>_0x37789b['model']==_0x3cf84a);let _0x337d04=_0x3cf84a,_0x9ebe54='';return _0x4d90b0&&(_0x337d04=_0x4d90b0['label'],_0x9ebe54=_0x27700b(_0x337d04)['toLowerCase']()),{'type':'format','content':o(_0x193b98,'*Set\x20font\x20background\x20color:*\x20%0',_0x9ebe54)['trim'](),'color':{'value':_0x3cf84a,'title':_0x9ebe54||_0x337d04}};}return{'type':'format','content':o(_0x193b98,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0xcae1ef{['afterInit'](){const _0x114788=this['editor'],_0xfa4070=_0x114788['plugins']['get']('TrackChangesEditing'),_0x477fe8=_0x114788['commands']['get']('copyFormat'),_0x130c4a=_0x114788['commands']['get']('pasteFormat');_0x477fe8&&_0x130c4a&&(_0xfa4070['enableDefaultAttributesIntegration']('pasteFormat'),_0xfa4070['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x194dae=this['editor'],_0x296a4d=_0x194dae['locale'];_0x194dae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38b8e4=>{if('formatBlock'!=_0x38b8e4['type']&&'formatInline'!=_0x38b8e4['type'])return;const {data:_0x582f04}=_0x38b8e4;if(_0x582f04&&'pasteFormat'===_0x582f04['commandName']){const _0x27d016=[],_0x3772da=_0x582f04['commandParams'][0x0];for(const [_0x50c5fa,_0x1e307]of Object['entries'](_0x3772da))_0x27d016['push'](so(_0x194dae,_0x50c5fa,_0x1e307));return _0x27d016['length']?{'type':'format','content':o(_0x296a4d,'*Set\x20format\x20to:*\x20%0',_0x27d016['join'](',\x20'))}:{'type':'format','content':o(_0x296a4d,'*Remove\x20all\x20formatting*')};}});}}function so(_0xdf08,_0x23632d,_0x182773){const _0x2ae49e=_0xdf08['locale']['t'],_0x47a883=_0x23632d['split'](/(?=[A-Z])/)['join']('\x20'),_0x7c4c49=_0x2ae49e(_0x47a883['charAt'](0x0)['toUpperCase']()+_0x47a883['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x182773)return _0x7c4c49;if('fontColor'===_0x23632d||'fontBackgroundColor'===_0x23632d){const _0x4b2d53=_0x2761db(_0xdf08['config']['get']('fontColor.colors'))['find'](_0x33180f=>_0x33180f['model']==_0x182773);return _0x7c4c49+'\x20('+(_0x4b2d53?_0x2ae49e(_0x4b2d53['label'])['toLowerCase']():_0x182773)+')';}if('fontSize'===_0x23632d&&isNaN(parseFloat(_0x182773))){const _0x4a848a=_0xdf08['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xdf08['config']['get']('fontSize.options'))['find'](_0x350db5=>_0x350db5['model']==_0x182773);return _0x7c4c49+'\x20('+(_0x4a848a?_0x2ae49e(_0x4a848a['title'])['toLowerCase']():_0x182773)+')';}return _0x7c4c49+'\x20('+_0x182773+')';}class nt extends _0xcae1ef{['_headingOptions'];['afterInit'](){const _0x420cd0=this['editor'];if(!_0x420cd0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x420cd0['config']['get']('heading.options');const _0x5dd315=_0x420cd0['locale'],_0x26a70b=_0x420cd0['plugins']['get']('TrackChangesEditing');_0x26a70b['enableDefaultAttributesIntegration']('heading');for(const _0x3c4b0a of this['_headingOptions'])'paragraph'!=_0x3c4b0a['model']&&_0x26a70b['descriptionFactory']['registerElementLabel'](_0x3c4b0a['model'],_0x26fe14=>{const _0x5a7a32=this['_getHeadingLevel'](_0x3c4b0a['model']);return null!==_0x5a7a32?_0x7b965d(_0x26fe14,_0x5a7a32):_0x534be5(_0x26fe14,_0x3c4b0a['title']);});function _0x7b965d(_0x5e2927,_0x20a17b){return o(_0x5dd315,'ELEMENT_HEADING',[_0x5e2927,_0x20a17b]);}function _0x534be5(_0x4a36cf,_0x113409){return o(_0x5dd315,'ELEMENT_HEADING_CUSTOM',[_0x4a36cf,_0x113409]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47603b=this['editor'],_0x5062f1=_0x47603b['locale'];function _0x43df4d(_0x2aa036,_0x538a35){return o(_0x5062f1,'ELEMENT_HEADING_CUSTOM',[_0x2aa036,_0x538a35]);}_0x47603b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fa8d2=>{if('formatBlock'!=_0x4fa8d2['type'])return;const {data:_0x4a9b16}=_0x4fa8d2;if(_0x4a9b16&&'heading'==_0x4a9b16['commandName']){const _0x5160e0=_0x4a9b16['commandParams'][0x0]['value'],_0x3c60c5=this['_getHeadingLevel'](_0x5160e0);if(null!==_0x3c60c5)return{'type':'format','content':o(_0x5062f1,'*Change\x20to:*\x20%0',(_0x56bdf1=0x1,_0x5abc0d=_0x3c60c5,o(_0x5062f1,'ELEMENT_HEADING',[_0x56bdf1,_0x5abc0d])))};const _0x38c764=this['_headingOptions']['find'](_0x5e20c5=>_0x5e20c5['model']===_0x5160e0)['title'];return{'type':'format','content':o(_0x5062f1,'*Change\x20to:*\x20%0',_0x43df4d(0x1,_0x38c764))};}var _0x56bdf1,_0x5abc0d;});}['_getHeadingLevel'](_0x1495b1){const _0x27566b=_0x1495b1['match'](/^heading(\d+)/);if(_0x27566b)return _0x27566b[0x1];const _0x3ea816=this['_headingOptions']?.['find'](_0x387dcb=>_0x387dcb['model']==_0x1495b1);if(_0x3ea816&&_0x3ea816['view']){const _0x50088e=_0x3ea816['view'],_0x4c5f18=(_0x50088e['name']??_0x50088e)['match'](/^h(\d+)/);if(_0x4c5f18)return _0x4c5f18[0x1];}return null;}}class it extends _0xcae1ef{['afterInit'](){const _0x2efbbd=this['editor'];if(!_0x2efbbd['plugins']['has']('HighlightEditing'))return;const _0x1765b6=_0x2efbbd['plugins']['get']('TrackChangesEditing'),_0x223004=_0x2efbbd['locale'];_0x1765b6['enableDefaultAttributesIntegration']('highlight'),_0x1765b6['registerInlineAttribute']('highlight'),_0x1765b6['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x223004,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f518d=this['editor'],_0x5a36f2=_0x3f518d['locale'];_0x3f518d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b9e40=>{if('formatInline'!=_0x2b9e40['type'])return;const {data:_0x1b7c90}=_0x2b9e40;if(_0x1b7c90&&'highlight'==_0x1b7c90['commandName']){const _0x167879=_0x5a36f2['t'],_0x40f26c=_0x1b7c90['commandParams'][0x0]['value'];if(_0x40f26c){const _0x554fbc=_0x3f518d['config']['get']('highlight.options')['find'](_0x446ebb=>_0x446ebb['model']==_0x40f26c),_0x4c1ad3=_0x167879(_0x554fbc['title'])['toLowerCase']();return{'type':'format','content':o(_0x5a36f2,'*Set\x20highlight:*\x20%0',_0x4c1ad3),'color':{'value':_0x554fbc['color'],'title':_0x554fbc['title']}};}return{'type':'format','content':o(_0x5a36f2,'*Remove\x20highlight*',o(_0x5a36f2,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0xcae1ef{['afterInit'](){const _0xb2e520=this['editor'];if(!_0xb2e520['plugins']['has']('HorizontalLineEditing'))return;_0xb2e520['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3607a6=_0xb2e520['plugins']['get']('TrackChangesEditing'),_0x390ff3=_0xb2e520['locale'];_0x3607a6['descriptionFactory']['registerElementLabel']('horizontalLine',_0xe7ce0f=>o(_0x390ff3,'ELEMENT_HORIZONTAL_LINE',_0xe7ce0f)),_0xb2e520['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2366c2,{writer:_0x4657b0,options:_0x10ca7d})=>{if(!_0x10ca7d['showSuggestionHighlights'])return null;const _0x1c2dab=_0x4657b0['createContainerElement']('div'),_0x1ea4ea=_0x4657b0['createEmptyElement']('hr');return _0x4657b0['addClass']('ck-horizontal-line',_0x1c2dab),_0x4657b0['insert'](_0x4657b0['createPositionAt'](_0x1c2dab,0x0),_0x1ea4ea),_0x1c2dab;},'converterPriority':'high'});}}class st extends _0xcae1ef{['afterInit'](){const _0x1c09e1=this['editor'];if(!_0x1c09e1['plugins']['has']('HtmlEmbed'))return;const _0x443dc2=_0x1c09e1['plugins']['get']('TrackChangesEditing'),_0x8a6a1=_0x1c09e1['locale'];_0x443dc2['descriptionFactory']['registerElementLabel']('rawHtml',_0x2d90e8=>o(_0x8a6a1,'ELEMENT_HTML_EMBED',_0x2d90e8)),_0x443dc2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x443dc2['registerBlockAttribute']('value'),_0x443dc2['descriptionFactory']['registerDescriptionCallback'](_0x17b382=>{if('attribute'!=_0x17b382['type'])return;const {data:_0x9979fd}=_0x17b382;if(_0x9979fd&&'value'==_0x9979fd['key']&&_0x17b382['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x170b06=o(_0x8a6a1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x8a6a1,'*Change\x20%0\x20content*',_0x170b06)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36ee26=this['editor'],_0x465e61=_0x36ee26['locale'];_0x36ee26['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5489f2=>{if('formatBlock'!=_0x5489f2['type'])return;const {data:_0x2fa818}=_0x5489f2;if(_0x2fa818&&'htmlEmbed'==_0x2fa818['commandName']){const _0x2058bb=o(_0x465e61,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x465e61,'*Change\x20%0\x20content*',_0x2058bb)};}});}}class ot extends _0xcae1ef{['afterInit'](){const _0x1303dc=this['editor'];if(!_0x1303dc['plugins']['has']('ImageEditing'))return;const _0x5d1e51=_0x1303dc['plugins']['get']('TrackChangesEditing'),_0x1af3d2=_0x1303dc['plugins']['get']('ImageUtils'),_0x4eaff9=_0x1303dc['locale'];_0x5d1e51['enableCommand']('insertImage'),_0x5d1e51['descriptionFactory']['registerElementLabel']('imageBlock',_0x1df624=>o(_0x4eaff9,'ELEMENT_IMAGE',_0x1df624)),_0x5d1e51['descriptionFactory']['registerElementLabel']('imageInline',_0x139546=>o(_0x4eaff9,'ELEMENT_INLINE_IMAGE',_0x139546)),_0x5d1e51['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4eaff9,'ELEMENT_CAPTION')),_0x1303dc['plugins']['has']('ImageUploadEditing')&&_0x5d1e51['enableCommand']('uploadImage'),_0x1303dc['plugins']['has']('ImageBlockEditing')&&_0x1303dc['plugins']['has']('ImageInlineEditing')&&(_0x5d1e51['enableCommand']('imageTypeInline',(_0x3b7dbf,_0x594101)=>{const _0x7e659b=_0x1af3d2['getClosestSelectedImageElement'](_0x1303dc['model']['document']['selection']);_0x1303dc['model']['change'](()=>{_0x5d1e51['markBlockFormat'](_0x7e659b,{'commandName':'imageTypeInline','commandParams':[_0x594101]},[],'convertBlockImageToInline');});}),_0x5d1e51['enableCommand']('imageTypeBlock',(_0x13eb41,_0x1fd53a)=>{_0x1303dc['model']['change'](_0x26f21b=>{let _0xeb56c8=_0x1af3d2['getClosestSelectedImageElement'](_0x1303dc['model']['document']['selection']),_0x5f07b2=_0x26f21b['createRangeOn'](_0xeb56c8);const _0x55a74f=_0x189f85['fromPosition'](_0x5f07b2['start'],'toPrevious'),_0x531edd=_0x189f85['fromPosition'](_0x5f07b2['end'],'toNext');_0x5d1e51['forceDefaultExecution'](()=>_0x13eb41(_0x1fd53a)),_0xeb56c8=_0x1af3d2['getClosestSelectedImageElement'](_0x1303dc['model']['document']['selection']),_0x5f07b2=_0x26f21b['createRangeOn'](_0xeb56c8);const _0x3fc7e2=_0x26f21b['createRange'](_0x55a74f,_0x531edd);_0x55a74f['detach'](),_0x531edd['detach'](),_0x5d1e51['markBlockFormat'](_0xeb56c8,{'commandName':'imageTypeInline','commandParams':[_0x1fd53a]},[],'convertInlineImageToBlock'),_0x3fc7e2['start']['isBefore'](_0x5f07b2['start'])&&_0x5d1e51['markInsertion'](_0x26f21b['createRange'](_0x3fc7e2['start'],_0x5f07b2['start']),'convertInlineImageToBlock'),_0x5f07b2['end']['isBefore'](_0x3fc7e2['end'])&&_0x5d1e51['markInsertion'](_0x26f21b['createRange'](_0x5f07b2['end'],_0x3fc7e2['end']),'convertInlineImageToBlock');});}),_0x5d1e51['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5d1e51['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5d1e51['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5d1e51['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5d1e51['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5d1e51['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x39cd7b])=>{const _0xdb37f1=_0x5d1e51['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x348f8d=_0x39cd7b['start'],_0x2373e1=_0x39cd7b['end'];const _0x1f7563=_0x1303dc['model']['schema']['getNearestSelectionRange'](_0x348f8d,'backward'),_0x25acc2=_0x1303dc['model']['schema']['getNearestSelectionRange'](_0x2373e1,'forward');_0x1f7563['isCollapsed']&&(_0x348f8d=_0x1f7563['start']),_0x25acc2['isCollapsed']&&(_0x2373e1=_0x25acc2['end']),_0xdb37f1([_0x1303dc['model']['createRange'](_0x348f8d,_0x2373e1)]);}),_0x5d1e51['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x490d48),_0x5d1e51['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x490d48)),_0x1303dc['plugins']['has']('ImageCaptionEditing')&&(_0x5d1e51['enableCommand']('toggleImageCaption',(_0x358687,_0x49e458)=>{const _0x58c585=_0x1303dc['plugins']['get']('ImageCaptionUtils');let _0x40e7e9=_0x1af3d2['getClosestSelectedImageElement'](_0x1303dc['model']['document']['selection']),_0x62a812=_0x58c585['getCaptionFromImageModelElement'](_0x40e7e9);_0x1303dc['model']['change'](()=>{if(_0x62a812)return void _0x5d1e51['markDeletion'](_0x1303dc['model']['createRangeOn'](_0x62a812));const _0x13b749=_0x1af3d2['isBlockImage'](_0x40e7e9);_0x358687(_0x49e458),_0x40e7e9=_0x1af3d2['getClosestSelectedImageElement'](_0x1303dc['model']['document']['selection']),_0x62a812=_0x58c585['getCaptionFromImageModelElement'](_0x40e7e9),_0x5d1e51['markInsertion'](_0x1303dc['model']['createRangeOn'](_0x62a812),_0x13b749?null:'imageCaption');});}),_0x5d1e51['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x490d48));const _0x300f9a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x41a4cd(_0x33de80,_0x151095){const _0x504bac=_0x300f9a['findIndex'](({type:_0x26fdec,subType:_0x134c93})=>_0x33de80['type']==_0x26fdec&&_0x33de80['subType']==_0x134c93),_0xbcbcf=_0x300f9a['findIndex'](({type:_0x4d30a7,subType:_0x30258d})=>_0x151095['type']==_0x4d30a7&&_0x151095['subType']==_0x30258d);if(_0x504bac<0x0||_0xbcbcf<0x0)return!0x1;const _0x1daed0=_0x33de80['getFirstRange'](),_0x241bc7=_0x151095['getFirstRange']();if((0x0==_0x504bac||0x1==_0x504bac)&&0x2==_0xbcbcf&&_0x1daed0['isIntersecting'](_0x241bc7))return!0x0;if(0x2==_0x504bac&&0x3==_0xbcbcf){const _0x12152e=_0x5d1e51['_findSuggestions'](_0x1daed0,'insertion')['filter'](({suggestion:_0x526ad2,meta:_0x3228b2})=>_0x3228b2['isOwn']&&'convertInlineImageToBlock'==_0x526ad2['subType']);if(_0x12152e['length']>0x1&&_0x241bc7['end']['isEqual'](_0x1daed0['start']))return!0x0;if(0x1==_0x12152e['length']&&(_0x1daed0['start']['isEqual'](_0x241bc7['end'])||_0x1daed0['end']['isEqual'](_0x241bc7['start'])))return!0x0;}if(0x3==_0x504bac&&0x3==_0xbcbcf&&_0x1daed0['start']['isBefore'](_0x241bc7['start'])){const _0xf30f87=_0x1daed0['end']['nodeAfter'],_0x53449e=_0x241bc7['start']['nodeBefore'];return _0x1af3d2['isBlockImage'](_0xf30f87)&&_0xf30f87===_0x53449e;}return!0x1;}function _0x490d48(_0x2b06d1,_0x482a36){return _0x41a4cd(_0x2b06d1,_0x482a36)?[_0x2b06d1,_0x482a36]:_0x41a4cd(_0x482a36,_0x2b06d1)?[_0x482a36,_0x2b06d1]:null;}_0x1303dc['plugins']['has']('ImageResize')&&(_0x5d1e51['enableDefaultAttributesIntegration']('resizeImage'),_0x5d1e51['registerBlockAttribute']('resizedWidth'),_0x5d1e51['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4eaff9,'FORMAT_IMAGE_SIZE'))),_0x1303dc['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5d1e51['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5d1e51['registerBlockAttribute']('alt')),_0x5d1e51['descriptionFactory']['registerDescriptionCallback'](_0x45511d=>{if(!!_0x300f9a['find'](({type:_0x28ee7d,subType:_0x21d0a9})=>_0x45511d['type']==_0x28ee7d&&_0x45511d['subType']==_0x21d0a9))return _0x45511d['previous']?{}:void 0x0;}),_0x5d1e51['descriptionFactory']['registerDescriptionCallback'](_0x2b1dfe=>{if('insertion'==_0x2b1dfe['type']||'deletion'==_0x2b1dfe['type']){const _0x3f2f35=_0x2b1dfe['getContainedElement']();if(_0x3f2f35&&_0x3f2f35['is']('element','caption'))return{'type':'insertion'==_0x2b1dfe['type']?'addObject':'removeObject','element':_0x3f2f35,'quantity':0x1};}}),_0x5d1e51['descriptionFactory']['registerDescriptionCallback'](_0x3d6067=>'formatBlock'==_0x3d6067['type']&&'convertInlineImageToBlock'==_0x3d6067['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3d6067['type']&&'convertBlockImageToInline'==_0x3d6067['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5d1e51['descriptionFactory']['registerDescriptionCallback'](_0x452347=>{if('attribute'!=_0x452347['type'])return;const {data:_0x2f5a08}=_0x452347;if(!_0x2f5a08||'alt'!=_0x2f5a08['key'])return;const _0x38a57f=_0x2f5a08['newValue'];return _0x38a57f?{'type':'format','content':o(_0x4eaff9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x38a57f+'\x22')}:{'type':'format','content':o(_0x4eaff9,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b319c=this['editor'],_0x375766=_0x5b319c['locale'];_0x5b319c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x113a9b=>{if('formatBlock'!=_0x113a9b['type']&&'formatInline'!=_0x113a9b['type'])return;const {data:_0x554e91}=_0x113a9b;if(_0x554e91){if('imageTextAlternative'==_0x554e91['commandName']){const _0x42fc05=_0x554e91['commandParams'][0x0]['newValue'];return _0x42fc05?{'type':'format','content':o(_0x375766,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x42fc05+'\x22')}:{'type':'format','content':o(_0x375766,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x554e91['commandName']){const _0x509de9=_0x554e91['commandParams'][0x0]['width'];return _0x509de9?{'type':'format','content':o(_0x375766,'*Set\x20image\x20width:*\x20%0',_0x509de9)}:{'type':'format','content':o(_0x375766,'*Reset\x20image\x20width*')};}}});}}class rt extends _0xcae1ef{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x571aee=this['editor']['locale'],_0x4be1e8=this['editor']['plugins']['get']('TrackChangesEditing');_0x4be1e8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4be1e8['registerBlockAttribute']('src'),_0x4be1e8['descriptionFactory']['registerDescriptionCallback'](_0x3adddf=>{if('attribute'!=_0x3adddf['type'])return;const {data:_0x3dd7cd}=_0x3adddf;return _0x3dd7cd&&'src'==_0x3dd7cd['key']?_0x3dd7cd['newValue']&&_0x3dd7cd['oldValue']?{'type':'format','content':o(_0x571aee,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x17f274=this['editor']['plugins']['get']('TrackChangesEditing');_0x17f274['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x17f274['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x17f274['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x17f274['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25939f=this['editor'],_0x1ea04c=_0x25939f['locale'];_0x25939f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b3533=>{if('formatBlock'!=_0x3b3533['type']&&'formatInline'!=_0x3b3533['type'])return;const {data:_0x4bbcff}=_0x3b3533;if(!_0x4bbcff||'replaceImageSource'!=_0x4bbcff['commandName'])return;return{'type':'format','content':o(_0x1ea04c,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0xcae1ef{['afterInit'](){const _0x82d4cb=this['editor'];if(!_0x82d4cb['plugins']['has']('ImageStyleEditing'))return;const _0x427831=_0x82d4cb['plugins']['get']('TrackChangesEditing'),_0x162486=_0x82d4cb['plugins']['get']('ImageUtils'),_0x59acd5={};_0x427831['enableCommand']('imageStyle',(_0x57c778,_0x38f06e)=>{const _0x288018=_0x82d4cb['plugins']['get']('Users')['me'],_0xd56f53=_0x82d4cb['commands']['get']('imageStyle');let _0x27f1fd=_0x162486['getClosestSelectedImageElement'](_0x82d4cb['model']['document']['selection']),_0x55088a=_0x82d4cb['model']['createRangeOn'](_0x27f1fd),_0xbad539=_0xd56f53['value'];if(_0xbad539==_0x38f06e['value'])return;const _0x409158={'commandName':'imageStyle','commandParams':[_0x38f06e],'formatGroupId':_0x440c38()};_0x82d4cb['model']['change'](()=>{if(_0x427831['getSuggestions']()['filter'](_0x252437=>_0x252437['isInContent']&&_0x288018==_0x252437['author']&&('formatBlock'==_0x252437['type']||'formatInline'==_0x252437['type'])&&('imageStylePreApply'==_0x252437['subType']||'imageStylePostApply'==_0x252437['subType'])&&_0x252437['getFirstRange']()['isEqual'](_0x55088a))['forEach'](_0x538886=>_0x427831['discardSuggestion'](_0x538886['head'])),_0x27f1fd=_0x162486['getClosestSelectedImageElement'](_0x82d4cb['model']['document']['selection']),_0x55088a=_0x82d4cb['model']['createRangeOn'](_0x27f1fd),_0xd56f53['refresh'](),_0x82d4cb['commands']['get']('imageTypeInline')['refresh'](),_0x82d4cb['commands']['get']('imageTypeBlock')['refresh'](),_0xbad539=_0xd56f53['value'],_0xbad539!=_0x38f06e['value'])return _0x162486['isInlineImage'](_0x27f1fd)&&_0xd56f53['shouldConvertImageType'](_0x38f06e['value'],_0x27f1fd)?(_0x57c778({..._0x38f06e,'setImageSizes':!0x1}),_0x27f1fd=_0x162486['getClosestSelectedImageElement'](_0x82d4cb['model']['document']['selection']),void _0x427831['markBlockFormat'](_0x27f1fd,{..._0x409158,'commandReversedParams':[{'value':_0xbad539||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x162486['isBlockImage'](_0x27f1fd)?_0x427831['markBlockFormat'](_0x27f1fd,_0x409158,[],'imageStylePostApply'):_0x427831['markInlineFormat'](_0x55088a,_0x409158,'imageStylePostApply'));});});for(const _0x2a58dc of _0x82d4cb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x59acd5[_0x2a58dc['name']]=_0x2a58dc['title']['toLowerCase']();_0x427831['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x427831['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x427831['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x427831['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x144dfc])=>{_0x162486['setImageNaturalSizeAttributes'](_0x144dfc['getContainedElement']());}),_0x427831['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4f70ca,_0x128573)=>{_0x427831['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4f70ca,{'commandName':_0x128573['commandName'],'commandParams':_0x128573['commandReversedParams']});}),_0x427831['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x105c68,_0xa03e73){if(_0x50f030(_0x105c68,_0xa03e73))return[_0x105c68,_0xa03e73];if(_0x50f030(_0xa03e73,_0x105c68))return[_0xa03e73,_0x105c68];return null;});const _0x5158a0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x50f030(_0x418748,_0x5b54f6){const _0x5d8e89=_0x5158a0['findIndex'](({type:_0x5b9e52,subType:_0x22ce0a})=>_0x418748['type']==_0x5b9e52&&_0x418748['subType']==_0x22ce0a),_0x595603=_0x5158a0['findIndex'](({type:_0x8d08f,subType:_0x454fd2})=>_0x5b54f6['type']==_0x8d08f&&_0x5b54f6['subType']==_0x454fd2);if(_0x5d8e89<0x0||_0x595603<0x0)return!0x1;const _0x2a1407=_0x418748['getFirstRange'](),_0x3d24b5=_0x5b54f6['getFirstRange']();if((0x0==_0x5d8e89||0x1==_0x5d8e89)&&0x2==_0x595603&&_0x2a1407['isIntersecting'](_0x3d24b5))return!0x0;if(0x2==_0x5d8e89&&0x3==_0x595603){const _0x157fb6=_0x427831['_findSuggestions'](_0x2a1407,'insertion')['filter'](({suggestion:_0x1eca2b,meta:_0x187c5e})=>_0x187c5e['isOwn']&&'convertInlineImageToBlock'==_0x1eca2b['subType']);if(_0x157fb6['length']>0x1&&_0x3d24b5['end']['isEqual'](_0x2a1407['start']))return!0x0;if(0x1==_0x157fb6['length']&&(_0x2a1407['start']['isEqual'](_0x3d24b5['end'])||_0x2a1407['end']['isEqual'](_0x3d24b5['start'])))return!0x0;}if(0x3==_0x5d8e89&&0x3==_0x595603&&_0x2a1407['start']['isBefore'](_0x3d24b5['start'])){const _0x4b5d67=_0x2a1407['end']['nodeAfter'],_0x15e1bd=_0x3d24b5['start']['nodeBefore'];return _0x162486['isBlockImage'](_0x4b5d67)&&_0x4b5d67===_0x15e1bd;}return!0x1;}_0x82d4cb['model']['document']['registerPostFixer'](()=>{let _0x2ace15=!0x1;const _0x35066a=Array['from'](_0x82d4cb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x420186,data:_0x165797}of _0x35066a){const {group:_0x552668,type:_0x4cd586,subType:_0x29c04f,id:_0x18ae12}=_0x427831['_splitMarkerName'](_0x420186);if('suggestion'==_0x552668&&_0x427831['hasSuggestion'](_0x18ae12)){if('formatBlock'==_0x4cd586&&('imageStylePreApply'==_0x29c04f||'imageStylePostApply'==_0x29c04f)){const _0x197818=_0x427831['getSuggestion'](_0x18ae12);if(_0x165797['newRange']){const _0x3113a0=_0x197818['getFirstRange']()['getContainedElement']();if(_0x162486['isBlockImage'](_0x3113a0))continue;_0x427831['discardSuggestion'](_0x197818),_0x2ace15=!0x0;}}if('insertion'==_0x4cd586&&'imageCaption'==_0x29c04f&&!_0x165797['newRange']){const _0x4922fe=_0x427831['getSuggestion'](_0x18ae12);_0x4922fe['next']&&_0x4922fe['next']['isInContent']&&(_0x427831['discardSuggestion'](_0x4922fe['next']),_0x2ace15=!0x0);}}}return _0x2ace15;}),this['_registerLegacyDescription'](_0x59acd5);}['_registerLegacyDescription'](_0x2c6759){const _0x3fd22f=this['editor'],_0x169be2=_0x3fd22f['locale'];_0x3fd22f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7f3b40=>{if('formatBlock'!=_0x7f3b40['type']&&'formatInline'!=_0x7f3b40['type'])return;const {data:_0x4faac5}=_0x7f3b40;if(!_0x4faac5||'imageStyle'!=_0x4faac5['commandName'])return;const _0x29644b=_0x4faac5['commandParams'][0x0]['value'];return _0x6bab17('side'===_0x29644b?o(_0x169be2,'FORMAT_SIDE_IMAGE'):_0x2c6759[_0x29644b]||_0x29644b);function _0x6bab17(_0x15f8ed){return{'type':'format','content':o(_0x169be2,'*Format:*\x20%0',_0x15f8ed)};}});}}class ct extends _0xcae1ef{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x295e83){super(_0x295e83),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x12811b=this['editor'],_0x49a265=_0x12811b['commands']['get']('importWord'),_0x28130f=_0x12811b['commands']['get']('trackChanges');_0x49a265&&(_0x49a265['on']('execute',(_0x6657b1,[,_0x4b201e])=>{this['_trackChangesValueDuringImport']=_0x28130f['value'],_0x4b201e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x49a265,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x49a265,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x28130f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x12811b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1063b0,_0x4662f9){const {suggestions:_0x2598eb}=_0x4662f9,_0x4bd504=this['editor']['commands']['get']('trackChanges'),_0x458e43=_0x4bd504['value'];this['_trackChangesValueDuringImport']!==_0x458e43&&(_0x4bd504['execute'](),this['_trackChangesExecuted']=!0x0),_0x2598eb&&_0x2598eb['forEach'](({id:_0x4fbf63,type:_0x224039,author:_0x2bcf5f,created_at:_0x5d9838})=>{const _0xf35c0a={'id':_0x4fbf63,'type':_0x224039,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2bcf5f,'createdAt':_0x5d9838?new Date(_0x5d9838):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xf35c0a);});}}class ut extends _0xcae1ef{['afterInit'](){const _0x1d3de7=this['editor'],_0x5c6f00=_0x1d3de7['plugins']['get']('TrackChangesEditing');if(_0x1d3de7['plugins']['has']('IndentEditing')&&(_0x5c6f00['enableCommand']('indent'),_0x5c6f00['enableCommand']('outdent')),_0x1d3de7['plugins']['has']('IndentBlock')){for(const _0x40008e of['indentBlock','outdentBlock'])_0x5c6f00['enableDefaultAttributesIntegration'](_0x40008e);}const _0x561f49=_0x1d3de7['locale'];_0x5c6f00['registerBlockAttribute']('blockIndent'),_0x5c6f00['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x561f49,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50ee00=this['editor'],_0x4ea493=_0x50ee00['locale'],_0x528c67=_0x50ee00['plugins']['get']('TrackChangesEditing');_0x528c67['descriptionFactory']['registerDescriptionCallback'](_0x34e8f3=>{if('formatBlock'!=_0x34e8f3['type'])return;const {data:_0x4cdd48}=_0x34e8f3;if(!_0x4cdd48)return;if('indentBlock'!=_0x4cdd48['commandName']&&'outdentBlock'!=_0x4cdd48['commandName'])return;const _0x443b72=_0x34e8f3['getItems']()[0x0],_0x49dfc1=_0x528c67['descriptionFactory']['getItemLabel'](_0x443b72);return'indentBlock'==_0x4cdd48['commandName']?{'type':'format','content':o(_0x4ea493,'*Indent:*\x20%0',_0x49dfc1)}:'outdentBlock'==_0x4cdd48['commandName']?{'type':'format','content':o(_0x4ea493,'*Outdent:*\x20%0',_0x49dfc1)}:void 0x0;});}}class ft extends _0xcae1ef{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0xcae1ef{['afterInit'](){const _0x2726c9=this['editor'];if(!_0x2726c9['plugins']['has']('LinkEditing'))return;const _0x4c3052=_0x2726c9['plugins']['get']('TrackChangesEditing'),_0x14174b=_0x2726c9['commands']['get']('link');_0x4c3052['enableDefaultAttributesIntegration']('link'),_0x4c3052['enableDefaultAttributesIntegration']('unlink'),_0x4c3052['registerInlineAttribute']('linkHref');for(const _0x2e2e48 of _0x14174b['manualDecorators'])_0x4c3052['registerInlineAttribute'](_0x2e2e48['id']),_0x4c3052['descriptionFactory']['registerAttributeLabel'](_0x2e2e48['id'],'link\x20('+_0x2e2e48['label']['toLowerCase']()+')');_0x4c3052['descriptionFactory']['registerDescriptionCallback'](_0x3365fa=>{if('attribute'!=_0x3365fa['type'])return;const {data:_0x1e2b0f}=_0x3365fa;if(!_0x1e2b0f||'linkHref'!=_0x1e2b0f['key'])return;const _0x4943fb=_0x1e2b0f['newValue'],_0xf19e75=_0x2726c9['locale'];return{'type':'format','content':null==_0x4943fb?o(_0xf19e75,'*Remove\x20link*'):o(_0xf19e75,'*Set\x20link:*\x20%0','\x22'+_0x4943fb+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x238003=this['editor'],_0x2d6358=_0x238003['locale'];_0x238003['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57fe94=>{if('formatInline'!=_0x57fe94['type'])return;const {data:_0x2a921a}=_0x57fe94;if(_0x2a921a){if('link'==_0x2a921a['commandName']){const _0x405e40=_0x2a921a['commandParams'][0x0];return{'type':'format','content':o(_0x2d6358,'*Set\x20link:*\x20%0','\x22'+_0x405e40+'\x22')};}return'unlink'==_0x2a921a['commandName']?{'type':'format','content':o(_0x2d6358,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0xcae1ef{['afterInit'](){const _0x1e899b=this['editor'],_0x5567de=_0x1e899b['locale'];if(!_0x1e899b['plugins']['has']('LegacyListEditing'))return;const _0x163759=_0x1e899b['plugins']['get']('TrackChangesEditing'),_0x5a5000=_0x1e899b['plugins']['has']('LegacyTodoListEditing');function _0x40fcc2(_0x214028){return()=>{const _0x2130cc=_0x1e899b['model']['document']['selection'],_0x10ab10=_0x1e899b['commands']['get'](_0x214028);if(_0x10ab10['value'])return void _0x1e899b['execute']('paragraph',{});const _0x5fc2df=_0x214028['slice'](0x0,-0x4),_0x7679e2=function(_0xcbae17,_0x430252,_0x8f95fd){let _0x1a3d0b=Array['from'](_0xcbae17)['filter'](_0xb68371=>function(_0xef0d3d,_0x593e83){return _0x593e83['checkChild'](_0xef0d3d['parent'],'listItem')&&!_0x593e83['isObject'](_0xef0d3d);}(_0xb68371,_0x8f95fd));_0x1a3d0b=_0x1a3d0b['filter'](_0x4d5959=>!_0x4d5959['is']('element','listItem')||_0x4d5959['getAttribute']('listType')!=_0x430252);const _0x4e20c8=new Set();for(const _0x1dd356 of _0x1a3d0b)_0x1dd356['is']('element','listItem')?_0x4e20c8['add'](Le(_0x1dd356)):_0x4e20c8['add'](_0x1dd356);return Array['from'](_0x4e20c8);}(_0x2130cc['getSelectedBlocks'](),_0x5fc2df,_0x1e899b['model']['schema']);_0x1e899b['model']['change'](()=>{for(const _0x250646 of _0x7679e2)_0x163759['markBlockFormat'](_0x250646,{'commandName':_0x214028,'commandParams':[{'forceValue':!_0x10ab10['value']}],'formatGroupId':'blockName'},Ee(_0x250646));});};}function _0x549a5e(_0x2996bd){return()=>{const _0x9ccec5=function(_0x7c365){let _0x2fd5b6=Array['from'](_0x7c365);const _0x4af130=_0x2fd5b6['findIndex'](_0x579ecd=>'listItem'!=_0x579ecd['name']);return _0x4af130>-0x1&&(_0x2fd5b6=_0x2fd5b6['slice'](0x0,_0x4af130)),_0x2fd5b6;}(_0x1e899b['model']['document']['selection']['getSelectedBlocks']()),_0x5c5793=_0x1e899b['model']['createRange'](_0x1e899b['model']['createPositionAt'](_0x9ccec5[0x0],'before'),_0x1e899b['model']['createPositionAt'](_0x9ccec5[_0x9ccec5['length']-0x1],'end'));_0x1e899b['model']['change'](()=>{_0x163759['markBlockFormat'](_0x5c5793,{'commandName':_0x2996bd,'commandParams':[],'formatGroupId':'listIndent'},function(_0x110274){const _0x50c280=new Set();for(const _0x194bb7 of _0x110274){let _0x2654b2=_0x194bb7['nextSibling'];for(;_0x2654b2&&_0x2654b2['getAttribute']('listIndent')>_0x194bb7['getAttribute']('listIndent');)_0x50c280['add'](_0x2654b2),_0x2654b2=_0x2654b2['nextSibling'];}return Array['from'](_0x50c280);}(_0x9ccec5));});};}_0x163759['enableCommand']('numberedList',_0x40fcc2('numberedList')),_0x163759['enableCommand']('bulletedList',_0x40fcc2('bulletedList')),_0x5a5000&&_0x163759['enableCommand']('todoList',_0x40fcc2('todoList')),_0x163759['enableCommand']('indentList',_0x549a5e('indentList')),_0x163759['enableCommand']('outdentList',_0x549a5e('outdentList')),_0x5a5000&&_0x163759['enableCommand']('checkTodoList',()=>{const _0x59048f=_0x1e899b['commands']['get']('checkTodoList'),_0x370e31=Array['from'](_0x59048f['_selectedElements']);_0x370e31['filter'](_0x3d86de=>_0x3d86de['getAttribute']('todoListChecked')!=_0x59048f['value']),_0x1e899b['model']['change'](()=>{for(const _0x4c2996 of _0x370e31)_0x163759['markBlockFormat'](_0x4c2996,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x59048f['value']}]});});}),_0x163759['descriptionFactory']['registerElementLabel']('listItem',_0x4aace1=>o(_0x5567de,'ELEMENT_LIST_ITEM',_0x4aace1)),_0x163759['descriptionFactory']['registerDescriptionCallback'](_0x5806e4=>{if('formatBlock'!=_0x5806e4['type']&&'formatInline'!=_0x5806e4['type'])return;const {data:_0x11d3ea}=_0x5806e4;if(_0x11d3ea){if('numberedList'==_0x11d3ea['commandName']||'bulletedList'==_0x11d3ea['commandName']||'todoList'==_0x11d3ea['commandName'])switch(_0x11d3ea['commandName']['replace']('List','')){case'bulleted':return _0x2bf8e8(o(_0x5567de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2bf8e8(o(_0x5567de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2bf8e8(o(_0x5567de,'ELEMENT_TODO_LIST'));}if('indentList'==_0x11d3ea['commandName'])return{'type':'format','content':o(_0x5567de,'*Indent:*\x20%0',o(_0x5567de,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x11d3ea['commandName'])return{'type':'format','content':o(_0x5567de,'*Outdent:*\x20%0',o(_0x5567de,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x11d3ea['commandName'])return _0x11d3ea['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5567de,'*Check\x20item*')}:{'type':'format','content':o(_0x5567de,'*Uncheck\x20item*')};}function _0x2bf8e8(_0xd7aa5d){return{'type':'format','content':o(_0x5567de,'*Change\x20to:*\x20%0',_0xd7aa5d)};}});}}function Le(_0x502a1b){const _0x5b1f5d=_0x502a1b['getAttribute']('listIndent');if(0x0==_0x5b1f5d)return _0x502a1b;let _0x5666ef=_0x502a1b;for(;_0x502a1b['previousSibling']&&_0x502a1b['previousSibling']['is']('element','listItem');){const _0x37a692=_0x502a1b['previousSibling']['getAttribute']('listIndent');if(_0x37a692==_0x5b1f5d)_0x5666ef=_0x502a1b['previousSibling'];else{if(_0x37a692<_0x5b1f5d)break;}_0x502a1b=_0x502a1b['previousSibling'];}return _0x5666ef;}function Ee(_0xf053b6){const _0x34d262=[];if(_0xf053b6['is']('element','listItem')&&_0xf053b6['getAttribute']('listIndent')>0x0){let _0x3487e3=_0xf053b6['nextSibling'];for(;_0x3487e3&&'listItem'==_0x3487e3['name']&&_0x3487e3['getAttribute']('listIndent')==_0xf053b6['getAttribute']('listIndent');)_0x34d262['push'](_0x3487e3),_0x3487e3=_0x3487e3['nextSibling'];}return _0x34d262;}class Q extends _0xcae1ef{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x36112d=this['editor']['config']['get']('list.properties'),_0x22a5d5=this['editor']['plugins']['get']('TrackChangesEditing');_0x36112d['styles']&&_0x22a5d5['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x36112d['reversed']&&_0x22a5d5['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x36112d['startIndex']&&_0x22a5d5['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x22a5d5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5a40e8,_0x540e06={}){const _0x40812b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x70ac46=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x40812b['markMultiRangeBlockFormat'](_0x70ac46,{'commandName':'listStyle','commandParams':[{'type':_0x540e06['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4f845e,_0x25dfbe={}){const _0x57ab0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x575e02=this['_getSuggestionBlocks'](_0x57490a=>_0x57490a['is']('element','listItem')&&'numbered'===_0x57490a['getAttribute']('listType'));if(_0x575e02['length']<0x1)return;const _0x25ce0b=_0x575e02['map'](_0x1b8633=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b8633,'before'),this['editor']['model']['createPositionAt'](_0x1b8633,0x0)));this['editor']['model']['change'](()=>{_0x57ab0['markMultiRangeBlockFormat'](_0x25ce0b,{'commandName':'listReversed','commandParams':[{'reversed':_0x25dfbe['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x43d9a0,_0x52401a={}){const _0x36ebce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d66be=this['_getSuggestionBlocks'](_0x2342e9=>_0x2342e9['is']('element','listItem')&&'numbered'===_0x2342e9['getAttribute']('listType'));if(_0x2d66be['length']<0x1)return;const _0x39b7fa=_0x2d66be['map'](_0x28ab8e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x28ab8e,'before'),this['editor']['model']['createPositionAt'](_0x28ab8e,0x0)));this['editor']['model']['change'](()=>{_0x36ebce['markMultiRangeBlockFormat'](_0x39b7fa,{'commandName':'listStart','commandParams':[{'startIndex':_0x52401a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x223eb6){if('formatBlock'!=_0x223eb6['type']&&'formatInline'!=_0x223eb6['type'])return;const _0x228965=this['editor']['locale'],{data:_0x38a28d}=_0x223eb6;if(!_0x38a28d)return;let _0x101cd8,_0x211607;switch(_0x38a28d['commandName']){case'listStyle':_0x101cd8='*Change\x20to:*\x20%0',_0x211607={'type':'format','content':o(_0x228965,_0x101cd8,o(_0x228965,this['_getTranslationKeyForListStyle'](_0x38a28d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x101cd8=_0x38a28d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x211607={'type':'format','content':o(_0x228965,_0x101cd8)};break;case'listStart':_0x101cd8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x211607={'type':'format','content':o(_0x228965,_0x101cd8,_0x38a28d['commandParams'][0x0]['startIndex'])};}return _0x211607;}['_getSuggestionBlocksForListStyle'](){const _0x4b80e4=this['editor']['plugins']['get']('LegacyListUtils');let _0xe2850a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xe2850a[0x0]?.['is']('element','listItem')&&_0xe2850a['unshift'](..._0x4b80e4['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xe2850a[_0xe2850a['length']-0x1]?.['is']('element','listItem')&&_0xe2850a['push'](..._0x4b80e4['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xe2850a=[...new Set(_0xe2850a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xe2850a=_0xe2850a['filter'](_0x312b29=>_0x312b29['is']('element','listItem'))),_0xe2850a;}['_getSuggestionBlocks'](_0x337ddc){const _0x101e84=this['editor']['plugins']['get']('LegacyListUtils');let _0x212487=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x337ddc)['map'](_0x2f9871=>{const _0x279072=this['editor']['model']['createPositionAt'](_0x2f9871,0x0);return[..._0x101e84['getSiblingNodes'](_0x279072,'backward'),..._0x101e84['getSiblingNodes'](_0x279072,'forward')];})['flat']();return _0x212487=[...new Set(_0x212487)],_0x212487;}['_getTranslationKeyForListStyle'](_0x51c401){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x51c401)||'default')['toUpperCase']()+'_LIST_'+_0x51c401['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0xcae1ef{['afterInit'](){const _0x2c864e=this['editor'];if(!_0x2c864e['plugins']['has']('MediaEmbedEditing'))return;const _0x3f8fb7=_0x2c864e['plugins']['get']('TrackChangesEditing'),_0x45e0e9=_0x2c864e['locale'];_0x3f8fb7['enableCommand']('mediaEmbed'),_0x3f8fb7['descriptionFactory']['registerElementLabel']('media',_0x394d38=>o(_0x45e0e9,'ELEMENT_MEDIA',_0x394d38)),_0x2c864e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5695d4,{writer:_0x2c3858,options:_0x5b6e75})=>{if(_0x5b6e75['showSuggestionHighlights'])return _0x2c3858['createEmptyElement']('div');},'converterPriority':'high'}),_0x2c864e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x497436,_0x2666fa,_0x186de2)=>{_0x186de2['options']['showSuggestionHighlights']&&_0x497436['stop']();},{'priority':'high'});}}class mt extends _0xcae1ef{['afterInit'](){const _0x390b1f=this['editor'];_0x390b1f['plugins']['has']('MentionEditing')&&_0x390b1f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0xcae1ef{['afterInit'](){const _0x28785a=this['editor'];if(!_0x28785a['plugins']['has']('MergeFieldsEditing'))return;_0x28785a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x28785a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x16e796=_0x28785a['plugins']['get']('TrackChangesEditing'),_0x548ae4=_0x28785a['locale'];_0x16e796['descriptionFactory']['registerElementLabel']('mergeField',_0x58ca6d=>o(_0x548ae4,'ELEMENT_MERGE_FIELD',_0x58ca6d)),_0x16e796['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3cc61b=>o(_0x548ae4,'ELEMENT_MERGE_FIELD',_0x3cc61b)),_0x16e796['descriptionFactory']['registerDescriptionCallback'](_0x38d7e1=>{if('insertion'!=_0x38d7e1['type']&&'deletion'!=_0x38d7e1['type'])return;const _0x4b506b=_0x38d7e1['getContainedElement']();if(null==_0x4b506b)return;if(!_0x4b506b['is']('element','mergeField')&&!_0x4b506b['is']('element','mergeFieldBlock'))return;const _0x4e905e=_0x28785a['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4b506b['getAttribute']('id'));return'insertion'==_0x38d7e1['type']?{'type':'insertion','content':o(_0x548ae4,'*Insert:*\x20%0','\x22'+_0x4e905e+'\x22\x20'+o(_0x548ae4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x548ae4,'*Remove:*\x20%0','\x22'+_0x4e905e+'\x22\x20'+o(_0x548ae4,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0xcae1ef{['afterInit'](){const _0x27f29e=this['editor'],_0x142e1d=_0x27f29e['plugins']['get']('TrackChangesEditing');_0x27f29e['plugins']['has']('MultiLevelList')&&(_0x142e1d['enableDefaultAttributesIntegration']('multiLevelList'),_0x142e1d['registerBlockAttribute']('listMarkerStyle'),_0x142e1d['descriptionFactory']['registerDescriptionCallback'](_0x183ef6=>this['handleDescriptions'](_0x183ef6)));}['handleDescriptions'](_0x431568){const _0x22c699=this['editor']['locale'],{data:_0xbe8c61}=_0x431568,_0x1b008e={'type':'format','content':''};if(_0xbe8c61&&'listMarkerStyle'==_0xbe8c61['key']){if(!_0xbe8c61['oldValue'])return{'type':'format','content':o(_0x22c699,'*Set\x20format:*\x20%0',o(_0x22c699,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xbe8c61['newValue']+')'};if(!_0xbe8c61['newValue']){let _0x1b3686=_0x431568['head'];for(;_0x1b3686;){if(_0x1b3686['data']&&'listType'==_0x1b3686['data']['key']&&_0x1b3686['data']['newValue'])return _0x1b008e;_0x1b3686=_0x1b3686['next'];}return{'type':'format','content':o(_0x22c699,'*Remove\x20format:*\x20%0',o(_0x22c699,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xbe8c61['oldValue']+')'};}}}}class kt extends _0xcae1ef{['afterInit'](){const _0x447776=this['editor'];if(!_0x447776['plugins']['has']('PageBreakEditing'))return;_0x447776['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4e5450=_0x447776['plugins']['get']('TrackChangesEditing'),_0x5319ff=_0x447776['locale'];_0x4e5450['descriptionFactory']['registerElementLabel']('pageBreak',_0x1fe8f6=>o(_0x5319ff,'ELEMENT_PAGE_BREAK',_0x1fe8f6));}}class bt extends _0xcae1ef{['afterInit'](){const _0x1dce17=this['editor'];if(!_0x1dce17['plugins']['has']('Paragraph'))return;const _0x16a6a9=_0x1dce17['locale'],_0x432297=_0x1dce17['plugins']['get']('TrackChangesEditing');_0x432297['descriptionFactory']['registerElementLabel']('paragraph',_0x1b3fd7=>o(_0x16a6a9,'ELEMENT_PARAGRAPH',_0x1b3fd7)),_0x432297['enableDefaultAttributesIntegration']('paragraph'),_0x432297['enableCommand']('insertParagraph'),_0x1dce17['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1dce17),{'priority':'highest'}),_0x1dce17['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x39c5a6,_0x1f96c9,_0xfaac29)=>{_0xfaac29['options']['showSuggestionHighlights']&&nr(_0x1dce17,{'showActiveMarker':!0x1})(_0x39c5a6,_0x1f96c9,_0xfaac29);},{'priority':'highest'});const _0x7dc161=_0x432297['descriptionFactory'];_0x7dc161['registerDescriptionCallback'](_0x1ab55e=>{if('insertion'!==_0x1ab55e['type'])return;const {start:_0x3ce28c,end:_0x3294fc}=_0x1ab55e['getFirstRange']();if(!_0x3ce28c['isTouching'](_0x3294fc)||!_0x3ce28c['nodeAfter'])return;const _0x573dd6=_0x1dce17['model']['schema'],_0x23aa0e=_0x3ce28c['nodeAfter'];return _0x573dd6['isBlock'](_0x23aa0e)&&!_0x573dd6['isLimit'](_0x23aa0e)&&_0x573dd6['checkChild'](_0x23aa0e,'$text')?{'type':'insertion','content':o(_0x16a6a9,'*Insert:*\x20%0',_0x7dc161['getItemLabel'](_0x23aa0e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11608a=this['editor'],_0x5aa630=_0x11608a['locale'];_0x11608a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6e48c2=>{if('formatBlock'!=_0x6e48c2['type'])return;const {data:_0x2c1aff}=_0x6e48c2;return _0x2c1aff&&'paragraph'==_0x2c1aff['commandName']?{'type':'format','content':o(_0x5aa630,'*Change\x20to:*\x20%0',o(_0x5aa630,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2b248b,{showActiveMarker:_0x448dd6=!0x0}={}){return(_0x3470f3,_0x536272,_0x2773f7)=>{const _0x9f72ac=_0x2b248b['plugins']['get']('TrackChangesEditing'),_0x185bad=_0x536272['markerRange']['start'],_0x11eee9=_0x536272['markerRange']['end'],_0x5c4215=_0x2b248b['model']['schema'];if(!_0x185bad['isTouching'](_0x11eee9)||!_0x185bad['nodeAfter'])return;const _0x21e920=_0x185bad['nodeAfter'];if(_0x5c4215['isBlock'](_0x21e920)&&!_0x5c4215['isLimit'](_0x21e920)&&_0x5c4215['checkChild'](_0x21e920,'$text')){if(!_0x2773f7['consumable']['consume'](_0x536272['markerRange'],_0x3470f3['name']))return;const {authorId:_0x3e8230}=_0x9f72ac['_splitMarkerName'](_0x536272['markerName']),_0x21a546=_0x2773f7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3e8230}),_0x82a861=_0x2773f7['mapper']['toViewPosition'](_0x11eee9);_0x448dd6&&_0x9f72ac['activeMarkers']['includes'](_0x536272['markerName'])&&_0x2773f7['writer']['addClass']('ck-suggestion-marker--active',_0x21a546),_0x2773f7['writer']['insert'](_0x82a861,_0x21a546),_0x2773f7['mapper']['bindElementToMarker'](_0x21a546,_0x536272['markerName']);}};}class yt extends _0xcae1ef{['afterInit'](){const _0x278233=this['editor'];if(!_0x278233['plugins']['has']('RemoveFormatEditing'))return;_0x278233['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x519113=this['editor'];_0x519113['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x353816=>{if('formatBlock'!=_0x353816['type']&&'formatInline'!=_0x353816['type'])return;const {data:_0x429a95}=_0x353816;return _0x429a95&&'removeFormat'==_0x429a95['commandName']?{'type':'format','content':o(_0x519113['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0xcae1ef{['afterInit'](){const _0x54b4c4=this['editor'];if(!_0x54b4c4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4fe672=_0x54b4c4['plugins']['get']('TrackChangesEditing');_0x4fe672['enableCommand']('goToPreviousRestrictedEditingException'),_0x4fe672['enableCommand']('goToNextRestrictedEditingException');const _0x4ed27a=_0x54b4c4['plugins']['get']('RestrictedEditingModeEditing');_0x4ed27a['enableCommand']('trackChanges'),_0x4ed27a['enableCommand']('acceptSuggestion'),_0x4ed27a['enableCommand']('discardSuggestion'),_0x4ed27a['enableCommand']('acceptAllSuggestions'),_0x4ed27a['enableCommand']('discardAllSuggestions'),_0x4ed27a['enableCommand']('acceptSelectedSuggestions'),_0x4ed27a['enableCommand']('discardSelectedSuggestions');}}class St extends _0xcae1ef{static get['requires'](){return[_0x3e9685];}['init'](){const _0x120f7f=this['editor'],_0x4f1013=_0x120f7f['plugins']['get']('TrackChangesEditing');_0x4f1013['enableCommand']('shiftEnter'),_0x120f7f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x120f7f),{'priority':'high'}),_0x120f7f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x120f7f),{'priority':'high'}),_0x120f7f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1059b2,_0x2ba549,_0x53438f)=>{_0x53438f['options']['showSuggestionHighlights']&&ke(_0x120f7f,{'showActiveMarker':!0x1})(_0x1059b2,_0x2ba549,_0x53438f);}),_0x4f1013['descriptionFactory']['registerElementLabel']('softBreak',_0x5c1d69=>o(_0x120f7f['locale'],'ELEMENT_LINE_BREAK',_0x5c1d69));}}function ke(_0x52935a,{showActiveMarker:_0x52375d=!0x0}={}){return(_0x396dc9,_0x300f17,_0x2fb361)=>{const _0xe37919=_0x52935a['plugins']['get']('TrackChangesEditing');if(!_0x2fb361['consumable']['test'](_0x300f17['markerRange'],_0x396dc9['name']))return;const _0x9c06fb=_0x52935a['model'];for(const _0x3905a9 of _0x300f17['markerRange']['getItems']()){if(!_0x3905a9['is']('element','softBreak'))continue;const _0x171ef1='deletion'==_0x300f17['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x69122}=_0xe37919['_splitMarkerName'](_0x300f17['markerName']),_0x4ff8f5=_0x2fb361['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x171ef1,'data-author-id':_0x69122}),_0x3237cb=_0x2fb361['mapper']['toViewPosition'](_0x9c06fb['createPositionBefore'](_0x3905a9));_0x52375d&&_0xe37919['activeMarkers']['includes'](_0x300f17['markerName'])&&_0x2fb361['writer']['addClass']('ck-suggestion-marker--active',_0x4ff8f5),_0x2fb361['writer']['insert'](_0x3237cb,_0x4ff8f5),_0x2fb361['mapper']['bindElementToMarker'](_0x4ff8f5,_0x300f17['markerName']);}};}class At extends _0xcae1ef{['afterInit'](){const _0x41a06a=this['editor'],_0x219d40=_0x41a06a['model'],_0xa5070f=_0x41a06a['locale'];if(!_0x41a06a['plugins']['has']('StandardEditingModeEditing'))return;const _0x5e8a3e=_0x41a06a['plugins']['get']('TrackChangesEditing'),_0x299bd5='restrictedEditingException',_0x272137=_0x41a06a['commands']['get'](_0x299bd5);_0x5e8a3e['enableCommand'](_0x299bd5,(_0x706004,_0x392efb={})=>{const _0x5cacd8=_0x219d40['document']['selection'];if(_0x5cacd8['isCollapsed'])return void _0x706004(_0x392efb);const _0x19c263=void 0x0!==_0x392efb['forceValue']?_0x392efb['forceValue']:!_0x272137['value'];_0x219d40['change'](()=>{const _0x2b3cf2=Array['from'](_0x5cacd8['getRanges']());for(const _0x957a9c of _0x2b3cf2){const _0x9163ec=_0x19c263?[_0x957a9c]:io(_0x299bd5,_0x957a9c,_0x219d40);for(const _0x17fe35 of _0x9163ec)_0x5e8a3e['markInlineFormat'](_0x17fe35,{'commandName':_0x299bd5,'commandParams':[{'forceValue':_0x19c263}]});}});}),_0x5e8a3e['descriptionFactory']['registerDescriptionCallback'](_0x1b5891=>{if('formatBlock'!=_0x1b5891['type']&&'formatInline'!=_0x1b5891['type'])return;const {data:_0xa54262}=_0x1b5891;return _0xa54262&&_0xa54262['commandName']==_0x299bd5?_0xa54262['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa5070f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xa5070f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xcae1ef{['afterInit'](){const _0x15841b=this['editor'];if(!_0x15841b['plugins']['has']('Style')||!_0x15841b['plugins']['has']('DataSchema'))return;const _0x1d292a=_0x15841b['plugins']['get']('TrackChangesEditing'),_0x114698=_0x15841b['locale'],_0x394305=_0x15841b['config']['get']('style')||{},_0x272ea6=_0x15841b['plugins']['get']('GeneralHtmlSupport'),_0x3acca3=_0x15841b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x15841b['plugins']['get']('DataSchema'),_0x394305['definitions']);_0x1d292a['enableDefaultAttributesIntegration']('style');const _0x554b52=new Set();for(const _0x59796a of _0x3acca3['block']){const _0x14911c=_0x272ea6['getGhsAttributeNameForElement'](_0x59796a['element']);_0x554b52['add'](_0x14911c);}const _0x2ae589=new Set();for(const _0x17856f of _0x3acca3['inline']){const _0x316853=_0x272ea6['getGhsAttributeNameForElement'](_0x17856f['element']);_0x2ae589['add'](_0x316853);for(const _0x707ed7 of _0x17856f['ghsAttributes'])_0x2ae589['add'](_0x707ed7);}for(const _0x122179 of _0x554b52)_0x1d292a['registerBlockAttribute'](_0x122179),_0x1d292a['descriptionFactory']['registerAttributeLabel'](_0x122179,o(_0x114698,'FORMAT_STYLE'));for(const _0x3a0dd9 of _0x2ae589)_0x1d292a['registerInlineAttribute'](_0x3a0dd9),_0x1d292a['descriptionFactory']['registerAttributeLabel'](_0x3a0dd9,o(_0x114698,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6d11b2=this['editor'],_0x470819=_0x6d11b2['locale'];_0x6d11b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x265ea8=>{if('formatBlock'!=_0x265ea8['type']&&'formatInline'!=_0x265ea8['type'])return;const {data:_0x47ad5c}=_0x265ea8;return _0x47ad5c&&'style'===_0x47ad5c['commandName']?_0x47ad5c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x470819,'*Set\x20format:*\x20%0',_0x47ad5c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x470819,'*Remove\x20format:*\x20%0',_0x47ad5c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0xcae1ef{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3e8b7a){super(_0x3e8b7a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3f9fb2=this['editor'],_0x14c274=_0x3f9fb2['model']['document']['selection'];if(!_0x3f9fb2['plugins']['has']('TableEditing'))return;const _0x29b384=_0x3f9fb2['locale'],_0x41f574=_0x3f9fb2['plugins']['get']('TrackChangesEditing'),_0x1b89f4=_0x3f9fb2['plugins']['get']('TableUtils');_0x41f574['descriptionFactory']['registerElementLabel']('table',_0x844850=>o(_0x29b384,'ELEMENT_TABLE',_0x844850)),this['_setupColumnsRowsFixing'](),_0x41f574['enableCommand']('insertTable'),_0x41f574['enableCommand']('selectTableRow'),_0x41f574['enableCommand']('selectTableColumn');for(const _0x52fd60 of['insertTableRowAbove','insertTableRowBelow']){const _0x2cda0f=_0x3f9fb2['commands']['get'](_0x52fd60);_0x41f574['enableCommand'](_0x52fd60,_0x5d80f4=>{_0x3f9fb2['model']['change'](_0x3740eb=>{_0x5d80f4();const _0x1949af='above'===_0x2cda0f['order'],_0x550bc9=_0x1b89f4['getSelectionAffectedTableCells'](_0x14c274),_0x572e39=_0x1b89f4['getRowIndexes'](_0x550bc9),_0x2d3627=_0x1949af?_0x572e39['first']-0x1:_0x572e39['last']+0x1,_0x13e6eb=_0x550bc9[0x0]['findAncestor']('table'),_0x5b1287=_0x1b89f4['createTableWalker'](_0x13e6eb,{'startRow':_0x2d3627,'endRow':_0x2d3627}),_0xb201af=Array['from'](_0x5b1287)['map'](_0x48bdaf=>_0x3740eb['createRangeOn'](_0x48bdaf['cell']));_0x41f574['markMultiRangeInsertion'](_0xb201af,'tableRow');});});}for(const _0x562b55 of['insertTableColumnLeft','insertTableColumnRight']){const _0x505a58=_0x3f9fb2['commands']['get'](_0x562b55);_0x41f574['enableCommand'](_0x562b55,_0x1e1d33=>{_0x3f9fb2['model']['change'](_0x4c8e41=>{_0x1e1d33();const _0x4ac183='left'===_0x505a58['order'],_0x17c062=_0x1b89f4['getSelectionAffectedTableCells'](_0x14c274),_0x1edc24=_0x1b89f4['getColumnIndexes'](_0x17c062),_0x5817f5=_0x4ac183?_0x1edc24['first']-0x1:_0x1edc24['last']+0x1,_0x337174=_0x17c062[0x0]['findAncestor']('table'),_0x465c8e=_0x1b89f4['createTableWalker'](_0x337174,{'startRow':0x0,'column':_0x5817f5,'includeAllSlots':!0x1}),_0x3025b9=Array['from'](_0x465c8e)['map'](_0x49641d=>_0x4c8e41['createRangeOn'](_0x49641d['cell']));_0x41f574['markMultiRangeInsertion'](_0x3025b9,'tableColumn');});});}for(const _0x2f25b6 of['removeTableRow','removeTableColumn']){const _0x4a7f8f=_0x2f25b6['substr'](0xb),_0x1973ab=_0x4a7f8f['toLowerCase'](),_0x4461c7=_0x1973ab['substr'](0x0,0x3)+'span',_0x489c5e='table'+_0x4a7f8f,_0x45678d='min'+_0x4a7f8f,_0x18f263='max'+_0x4a7f8f;_0x41f574['enableCommand'](_0x2f25b6,()=>{_0x3f9fb2['model']['change'](_0x14217c=>{const _0x4389d8=_0x1b89f4['getSelectionAffectedTableCells'](_0x14c274),_0xdc6225=_0x4389d8[0x0]['findAncestor']('table');let _0x52656f;if('removeTableRow'==_0x2f25b6){const _0x2c7731=_0x1b89f4['getRowIndexes'](_0x4389d8);_0x52656f={'startRow':_0x2c7731['first'],'endRow':_0x2c7731['last'],'includeAllSlots':!0x0};}else{const _0x2cb474=_0x1b89f4['getColumnIndexes'](_0x4389d8);_0x52656f={'startColumn':_0x2cb474['first'],'endColumn':_0x2cb474['last'],'includeAllSlots':!0x0};}const _0x47d310=_0x1b89f4['createTableWalker'](_0xdc6225,_0x52656f),_0x509389=Array['from'](_0x47d310)['map'](({cell:_0x9c4f84})=>_0x9c4f84),_0x9501f3=Re(_0x509389['filter'](_0x22b7d6=>_0x22b7d6['hasAttribute'](_0x4461c7))),_0x3741a6=Re(_0x509389['filter'](_0x52ccef=>!_0x52ccef['hasAttribute'](_0x4461c7)))['map'](_0x4496c7=>_0x14217c['createRangeOn'](_0x4496c7)),_0x28d7b5=_0x41f574['markMultiRangeDeletion'](_0x3741a6,_0x489c5e);if(_0x28d7b5&&('tableRow'==_0x28d7b5['subType']||'tableColumn'==_0x28d7b5['subType'])){const _0x42d5d1=this['_getSuggestionCoords'](_0x28d7b5);for(const _0x1b801a of _0x9501f3){const _0x23b9c3=_0x14217c['createRangeOn'](_0x1b801a),_0x433738=_0x1b89f4['getCellLocation'](_0x1b801a),_0x39fc6e=_0x1b801a['getAttribute'](_0x4461c7)-0x1,_0x1512d1=_0x42d5d1[_0x45678d],_0x53e05a=_0x42d5d1[_0x18f263];_0x1512d1<=_0x433738[_0x1973ab]&&_0x433738[_0x1973ab]+_0x39fc6e<=_0x53e05a&&_0x28d7b5['addRange'](_0x23b9c3);}}});});}function _0x1c8c1a(_0x4c5f00){const _0x523202=Array['from'](_0x14c274['getRanges']())['map'](_0x27eb4f=>_0x3fc55d['fromRange'](_0x27eb4f));_0x3f9fb2['model']['change'](_0x230cda=>{const _0x2f726d=_0x230cda['batch'];_0x4c5f00=_0x4c5f00['filter'](_0x10eefb=>'$graveyard'!=_0x10eefb['root']['rootName']),_0x230cda['setSelection'](_0x4c5f00),_0x3f9fb2['commands']['get']('removeTableRow')['refresh'](),_0x3f9fb2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3f9fb2['model']['enqueueChange'](()=>{_0x3f9fb2['model']['enqueueChange'](_0x2f726d,_0x6593d=>{const _0x3c138d=_0x523202['filter'](_0xcb70e7=>'$graveyard'!=_0xcb70e7['root']['rootName']);_0x3c138d['length']>0x0&&_0x6593d['setSelection'](_0x3c138d);for(const _0x296180 of _0x523202)_0x296180['detach']();});});});}function _0x13d06b(_0x2dc071){_0x3f9fb2['model']['change'](_0x38ac14=>{const _0x3e5fe1=Array['from'](_0x14c274['getRanges']())['map'](_0xed1912=>_0x3fc55d['fromRange'](_0xed1912)),_0x7ada93=[];for(const _0x5855cc of _0x2dc071)for(const _0x304c7a of _0x5855cc['getItems']({'shallow':!0x0}))_0x7ada93['push'](_0x304c7a);for(const _0x4d9bfd of _0x7ada93)'$graveyard'!=_0x4d9bfd['root']['rootName']&&(_0x38ac14['setSelection'](_0x38ac14['createPositionAt'](_0x4d9bfd,0x0)),_0x3f9fb2['commands']['get']('removeTableColumn')['refresh'](),_0x3f9fb2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x27c5d5=_0x3e5fe1['filter'](_0x9cd01a=>'$graveyard'!=_0x9cd01a['root']['rootName']);_0x27c5d5['length']>0x0&&_0x38ac14['setSelection'](_0x27c5d5);for(const _0x1e1ab3 of _0x3e5fe1)_0x1e1ab3['detach']();});}function _0xe5f2e9(_0x469db1,_0x178c41){return _0x178c41['every'](_0xd0d596=>_0x469db1['some'](_0x3d8a77=>_0x3d8a77['end']['isEqual'](_0xd0d596['start'])||_0xd0d596['end']['isEqual'](_0x3d8a77['start'])));}function _0xaa572(_0x59f612,_0x520a3a){return!_0x59f612['some'](_0x23ddc8=>_0x520a3a['some'](_0xcacdc7=>_0x23ddc8['isIntersecting'](_0xcacdc7)))&&_0x59f612['some'](_0x279851=>_0x520a3a['some'](_0x28cb0e=>_0x279851['end']['isTouching'](_0x28cb0e['start'])));}_0x3f9fb2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x14594c,_0x571251,_0x825bde)=>{if(!_0x825bde['options']['showSuggestionHighlights'])return;const _0x4035f9=_0x571251['item'];if(!_0x4035f9)return;const _0x3ca447=_0x825bde['mapper']['toViewElement'](_0x4035f9);function _0x51e6a0(_0x2ca297){return Array['isArray'](_0x2ca297)?_0x2ca297:[_0x2ca297];}_0x3ca447&&'tableCell'===_0x4035f9['name']&&_0x47b5a9(_0x3ca447,_0x825bde['writer'],(_0x4e99b2,_0x254bba,_0x4a5a52)=>_0x4a5a52['addClass'](_0x51e6a0(_0x254bba['classes']),_0x4e99b2),(_0x20177e,_0x4ab5c,_0x43c938)=>_0x43c938['removeClass'](_0x51e6a0(_0x4ab5c['classes']),_0x20177e));},{'priority':'highest'}),_0x41f574['descriptionFactory']['registerDescriptionCallback'](_0x3b4d17=>{if('insertion'!=_0x3b4d17['type']&&'deletion'!=_0x3b4d17['type'])return;const _0x5801da=_0x3b4d17['getContainedElement']();if(null!=_0x5801da&&_0x5801da['is']('element','table')){if('insertion'==_0x3b4d17['type']){const _0x5d61d2=_0x3b4d17['getItems']()['filter'](_0x104679=>_0x104679['is']('$textProxy'))['map'](_0x53e761=>_0x53e761['data']);if(_0x5d61d2['length'])return{'type':'insertion','content':o(_0x29b384,'*Insert:*\x20%0',o(_0x29b384,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5d61d2['join']('\x20')+'\x22'))};}if('deletion'==_0x3b4d17['type']){const _0x582a89=_0x3b4d17['getItems']()['filter'](_0x369b9d=>_0x369b9d['is']('$textProxy'))['map'](_0x4261cd=>_0x4261cd['data']);if(_0x582a89['length'])return{'type':'deletion','content':o(_0x29b384,'*Remove:*\x20%0',o(_0x29b384,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x582a89['join']('\x20')+'\x22'))};}}}),_0x41f574['descriptionFactory']['registerDescriptionCallback'](_0xb1d1e=>{if('tableRow'==_0xb1d1e['subType']){const _0x15e8f7=_0xb1d1e['getItems']()['filter'](_0x55d718=>_0x55d718['is']('$textProxy'))['map'](_0x1460ff=>_0x1460ff['data']),_0x24d065=this['_getSuggestionCoords'](_0xb1d1e),_0x47981b=_0x24d065['maxRow']-_0x24d065['minRow']+0x1;if('insertion'==_0xb1d1e['type'])return _0x15e8f7['length']?{'type':'insertion','content':o(_0x29b384,'*Insert:*\x20%0',o(_0x29b384,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x47981b,'\x22'+_0x15e8f7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x29b384,'*Insert:*\x20%0',o(_0x29b384,'ELEMENT_TABLE_ROW',_0x47981b))};if('deletion'==_0xb1d1e['type'])return _0x15e8f7['length']?{'type':'deletion','content':o(_0x29b384,'*Remove:*\x20%0',o(_0x29b384,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x47981b,'\x22'+_0x15e8f7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x29b384,'*Remove:*\x20%0',o(_0x29b384,'ELEMENT_TABLE_ROW',_0x47981b))};}if('tableColumn'==_0xb1d1e['subType']){const _0x13965c=_0xb1d1e['getItems']()['filter'](_0xb32fb=>_0xb32fb['is']('$textProxy'))['map'](_0x1496c3=>_0x1496c3['data']),_0x3e0b6d=this['_getSuggestionCoords'](_0xb1d1e),_0x19400c=_0x3e0b6d['maxColumn']-_0x3e0b6d['minColumn']+0x1;if('insertion'==_0xb1d1e['type'])return _0x13965c['length']?{'type':'insertion','content':o(_0x29b384,'*Insert:*\x20%0',o(_0x29b384,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x19400c,'\x22'+_0x13965c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x29b384,'*Insert:*\x20%0',o(_0x29b384,'ELEMENT_TABLE_COLUMN',_0x19400c))};if('deletion'==_0xb1d1e['type'])return _0x13965c['length']?{'type':'deletion','content':o(_0x29b384,'*Remove:*\x20%0',o(_0x29b384,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x19400c,'\x22'+_0x13965c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x29b384,'*Remove:*\x20%0',o(_0x29b384,'ELEMENT_TABLE_COLUMN',_0x19400c))};}}),_0x41f574['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1c8c1a),_0x41f574['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1c8c1a),_0x41f574['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x13d06b),_0x41f574['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x13d06b),_0x41f574['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xe5f2e9),_0x41f574['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xe5f2e9),_0x41f574['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xaa572),_0x41f574['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xaa572);}['_acceptFormatSuggestionCallbackFactory'](){const _0x18d570=this['editor'],_0x17b492=_0x18d570['model']['document']['selection'];return(_0x3e6562,_0x581b3e)=>{_0x18d570['model']['change'](_0x2d5e62=>{const {commandName:_0x8d83ed,commandParams:_0x46c040}=_0x581b3e;let _0x42f2f6=_0x3e6562[0x0]['end']['nodeBefore'];_0x46c040&&_0x46c040[0x0]&&!0x1===_0x46c040[0x0]['forceValue']&&(_0x42f2f6=_0x3e6562[0x0]['start']['nodeAfter']);const _0x16b0f2=_0x2d5e62['createRangeIn'](_0x42f2f6);if('$graveyard'==_0x16b0f2['root']['rootName'])return;const _0x2efbf6=Array['from'](_0x17b492['getRanges']())['map'](_0x2f5045=>_0x3fc55d['fromRange'](_0x2f5045));_0x2d5e62['setSelection'](_0x16b0f2),_0x18d570['commands']['get'](_0x8d83ed)['refresh'](),_0x46c040['push']({'forceDefaultExecution':!0x0}),_0x18d570['execute'](_0x8d83ed,..._0x46c040);const _0x3f01e4=_0x2efbf6['filter'](_0x494936=>'$graveyard'!=_0x494936['root']['rootName']);_0x3f01e4['length']>0x0&&_0x2d5e62['setSelection'](_0x3f01e4);for(const _0x265bf8 of _0x2efbf6)_0x265bf8['detach']();});};}['_getCoordsForCells'](_0x54b6d1){const _0x2a3cdd=this['editor']['plugins']['get']('TableUtils');let _0x497fc4=Number['MAX_SAFE_INTEGER'],_0x4586ea=Number['MIN_SAFE_INTEGER'],_0x4bcefd=Number['MAX_SAFE_INTEGER'],_0x4a7519=Number['MIN_SAFE_INTEGER'];for(const _0x37882f of _0x54b6d1){if('$graveyard'==_0x37882f['root']['rootName'])continue;const {row:_0x52db62,column:_0x1ef01c}=_0x2a3cdd['getCellLocation'](_0x37882f),_0xc5e1a3=_0x37882f['hasAttribute']('rowspan')?_0x37882f['getAttribute']('rowspan')-0x1:0x0,_0x1ea433=_0x37882f['hasAttribute']('colspan')?_0x37882f['getAttribute']('colspan')-0x1:0x0;_0x497fc4=_0x52db62<_0x497fc4?_0x52db62:_0x497fc4,_0x4586ea=_0x52db62+_0xc5e1a3>_0x4586ea?_0x52db62+_0xc5e1a3:_0x4586ea,_0x4bcefd=_0x1ef01c<_0x4bcefd?_0x1ef01c:_0x4bcefd,_0x4a7519=_0x1ef01c+_0x1ea433>_0x4a7519?_0x1ef01c+_0x1ea433:_0x4a7519;}return{'minRow':_0x497fc4,'maxRow':_0x4586ea,'minColumn':_0x4bcefd,'maxColumn':_0x4a7519};}['_setupColumnsRowsFixing'](){const _0xf03787=this['editor'],_0x1b5361=_0xf03787['plugins']['get']('TrackChangesEditing'),_0x275ce7=_0xf03787['plugins']['get']('TableUtils');_0xf03787['model']['document']['on']('change:data',()=>{const _0x51fad8=Array['from'](_0xf03787['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3234db,data:_0x1540e5}of _0x51fad8){const {group:_0x4ee4f8,id:_0x302c6b,subType:_0x42ad26}=_0x1b5361['_splitMarkerName'](_0x3234db);if('suggestion'!=_0x4ee4f8)continue;if(null!=_0x1540e5['oldRange'])continue;const _0x3d8af9=_0x1b5361['getSuggestion'](_0x302c6b);this['_tablePostFixingSubtypes']['includes'](_0x42ad26)&&this['_tableSuggestions']['add'](_0x3d8af9);}},{'priority':'low'});const _0x2b30d3=(_0x4adfef,_0x25ca77)=>{let _0x26887f=!0x1;const _0x570872=_0x25ca77['createRangeOn'](_0x4adfef),_0x1c612d=_0x4adfef['findAncestor']('table'),_0x2f8837=_0x275ce7['getCellLocation'](_0x4adfef);for(const _0x4c6aa2 of this['_tableSuggestions']){const _0x2207d5=_0x4c6aa2['subType'],_0x476357=_0x2207d5['startsWith']('tablePaste'),_0x20e8bc=_0x2207d5['substr'](_0x476357?0xa:0x5),_0x4307c0=_0x20e8bc['toLowerCase'](),_0x33f0d0=_0x4307c0['substr'](0x0,0x3)+'span',_0x93f8b='min'+_0x20e8bc,_0x1c377a='max'+_0x20e8bc;if(!_0x4c6aa2['isInContent'])continue;if(_0x1c612d!=_0x4c6aa2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4c6aa2['isIntersectingWithRange'](_0x570872))continue;const _0x55cabb=_0x4adfef['hasAttribute'](_0x33f0d0)?_0x4adfef['getAttribute'](_0x33f0d0)-0x1:0x0,_0x4424ec=this['_getSuggestionCoords'](_0x4c6aa2),_0x4420f8=_0x4424ec[_0x93f8b],_0x49c85c=_0x4424ec[_0x1c377a];_0x4420f8<=_0x2f8837[_0x4307c0]&&_0x2f8837[_0x4307c0]+_0x55cabb<=_0x49c85c&&(_0x4c6aa2['addRange'](_0x570872),_0x26887f=!0x0);}return _0x26887f;};_0xf03787['model']['document']['registerPostFixer'](_0x3ea1be=>{let _0xc8c5c5=!0x1;for(const _0x28400e of _0xf03787['model']['document']['differ']['getChanges']())if('insert'==_0x28400e['type']){if('tableRow'==_0x28400e['name']){for(const _0x2eb503 of _0x28400e['position']['nodeAfter']['getChildren']())_0xc8c5c5=_0xc8c5c5||_0x2b30d3(_0x2eb503,_0x3ea1be);}else'tableCell'==_0x28400e['name']&&(_0xc8c5c5=_0xc8c5c5||_0x2b30d3(_0x28400e['position']['nodeAfter'],_0x3ea1be));}return _0xc8c5c5;});}['_getSuggestionCoords'](_0x4e4c6b){return this['_getCoordsForCells'](_0x4e4c6b['getRanges']()['map'](_0x579e6b=>_0x579e6b['start']['nodeAfter']));}}function Re(_0x5eb8d4){return Array['from'](new Set(_0x5eb8d4)['values']());}class _t extends _0xcae1ef{static get['requires'](){return[vt];}['afterInit'](){const _0x454de0=this['editor'],_0x1a455e=_0x454de0['model']['document']['selection'],_0x1ddd8f=_0x454de0['locale'];if(!_0x454de0['plugins']['has']('TableEditing'))return;const _0x4c4c9d=_0x454de0['plugins']['get']('TrackChangesEditing'),_0x581dc9=_0x454de0['plugins']['get']('TableUtils'),_0x189f92=_0x454de0['plugins']['get'](vt);_0x189f92['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4c4c9d['enableCommand']('mergeTableCells',()=>{const _0x54edc1=_0x581dc9['getSelectionAffectedTableCells'](_0x454de0['model']['document']['selection']);_0x454de0['model']['change'](()=>{_0x4c4c9d['markMultiRangeBlockFormat'](_0x54edc1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x454de0['commands']['get']('mergeTableCells')['on']('execute',(_0x9692a3,_0x2cdfb6)=>{_0x454de0['commands']['get']('trackChanges')['value']&&(_0x2cdfb6['length']>0x0&&_0x2cdfb6[_0x2cdfb6['length']-0x1]&&_0x2cdfb6[_0x2cdfb6['length']-0x1]['forceDefaultExecution']||_0x4c4c9d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x9692a3['stop']());},{'priority':'highest'});for(const _0x34a0e0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x416200=_0x454de0['commands']['get'](_0x34a0e0);_0x4c4c9d['enableCommand'](_0x34a0e0,()=>{const _0x4ddc47=_0x454de0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x43bb36=>_0x43bb36['is']('element','tableCell')),_0x28020f=_0x416200['value'];_0x454de0['model']['change'](()=>{_0x4c4c9d['markMultiRangeBlockFormat']([_0x4ddc47,_0x28020f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x470faa of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4fbe93=_0x454de0['commands']['get'](_0x470faa);_0x4c4c9d['enableCommand'](_0x470faa,()=>{const _0x129398=_0x581dc9['getSelectionAffectedTableCells'](_0x454de0['model']['document']['selection'])[0x0],_0x207656=_0x129398['findAncestor']('table'),{column:_0x5c4a4f,row:_0x56ed80}=_0x581dc9['getCellLocation'](_0x129398);let _0xff0ad=[];if('horizontally'==_0x4fbe93['direction']){const _0x6780db=_0x581dc9['createTableWalker'](_0x207656,{'startRow':_0x56ed80,'endRow':_0x56ed80,'includeAllSlots':!0x0});_0xff0ad=Array['from'](_0x6780db)['map'](_0x4c062b=>_0x4c062b['cell']);}else{const _0x2465ae=_0x581dc9['createTableWalker'](_0x207656,{'column':_0x5c4a4f,'includeAllSlots':!0x0});_0xff0ad=Array['from'](_0x2465ae)['map'](_0x364fe4=>_0x364fe4['cell']);}_0x454de0['model']['change'](_0x356d32=>{_0x4c4c9d['markBlockFormat'](_0x356d32['createRangeOn'](_0x129398),{'commandName':_0x470faa,'commandParams':[]},_0xff0ad,_0x470faa);});});}_0x4c4c9d['descriptionFactory']['registerDescriptionCallback'](_0x17994c=>{if('formatBlock'!=_0x17994c['type']&&'formatInline'!=_0x17994c['type'])return;const {data:_0x126386}=_0x17994c;return _0x126386&&'mergeTableCells'==_0x126386['commandName']?{'type':'format','content':o(_0x1ddd8f,'*Merge\x20cells*')}:void 0x0;}),_0x4c4c9d['descriptionFactory']['registerDescriptionCallback'](_0x36f117=>{if('formatBlock'!=_0x36f117['type']&&'formatInline'!=_0x36f117['type'])return;const {data:_0x317f88}=_0x36f117;return _0x317f88?'splitTableCellVertically'==_0x317f88['commandName']?{'type':'format','content':o(_0x1ddd8f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x317f88['commandName']?{'type':'format','content':o(_0x1ddd8f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5eafe1=_0x189f92['_acceptFormatSuggestionCallbackFactory']();for(const _0x2387ec of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4c4c9d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2387ec,'accept',_0x5eafe1);for(const _0x7a7805 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4c4c9d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x7a7805,'accept',_0x5eafe1);_0x4c4c9d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3d2343=>{_0x454de0['model']['change'](_0x1bcf3a=>{const _0x48205e=Array['from'](_0x1a455e['getRanges']())['map'](_0x454ab9=>_0x3fc55d['fromRange'](_0x454ab9));_0x1bcf3a['setSelection'](_0x3d2343),_0x454de0['commands']['get']('mergeTableCells')['refresh'](),_0x454de0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x138ca2=_0x48205e['filter'](_0x22e0db=>'$graveyard'!=_0x22e0db['root']['rootName']);_0x138ca2['length']>0x0&&_0x1bcf3a['setSelection'](_0x138ca2);for(const _0x545bef of _0x48205e)_0x545bef['detach']();});});for(const _0x121774 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xeda5c=_0x454de0['commands']['get'](_0x121774);_0xeda5c['on']('set:isEnabled',(_0xd05b95,_0x30b111,_0x5ca81d)=>{if(_0x5ca81d){const _0x3cb201=_0x454de0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1ad978=>_0x1ad978['is']('element','tableCell'));this['_areMergableCells'](_0xeda5c['value'],_0x3cb201)||(_0xd05b95['return']=!0x1,_0xd05b95['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1bad86=this['editor']['commands']['get']('mergeTableCells'),_0x503fd4=this['editor']['plugins']['get']('TableUtils');if(!_0x1bad86['isEnabled'])return!0x1;const _0xf95c89=_0x503fd4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x15e5c9 of _0xf95c89)for(const _0x334f98 of _0xf95c89)if(_0x15e5c9!=_0x334f98&&!this['_areMergableCells'](_0x15e5c9,_0x334f98))return!0x1;return!0x0;}['_areMergableCells'](_0x44794e,_0x23fd75){const _0x26e435=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57b906=this['editor']['model']['createRangeOn'](_0x44794e),_0x1368e1=this['editor']['model']['createRangeOn'](_0x23fd75),_0x287eb1=new Set(),_0x581fca=new Set();for(const _0x462763 of _0x26e435['getSuggestions']())if(('insertion'==_0x462763['type']||'deletion'==_0x462763['type']||'mergeTableCells'==_0x462763['subType'])&&_0x462763['isInContent']){for(const _0x55c3b4 of _0x462763['getRanges']())_0x55c3b4['containsRange'](_0x57b906,!0x0)&&_0x287eb1['add'](_0x462763['type']+':'+_0x462763['author']['id']),_0x55c3b4['containsRange'](_0x1368e1,!0x0)&&_0x581fca['add'](_0x462763['type']+':'+_0x462763['author']['id']);}if(_0x287eb1['size']!=_0x581fca['size'])return!0x1;for(const _0x54704c of _0x287eb1)if(!_0x581fca['has'](_0x54704c))return!0x1;return!0x0;}}class Ct extends _0xcae1ef{static get['requires'](){return[vt];}['afterInit'](){const _0x15f181=this['editor'];if(!_0x15f181['plugins']['has']('TableEditing'))return;const _0x8f3b29=_0x15f181['locale'],_0x5d6f6e=_0x15f181['plugins']['get']('TrackChangesEditing');_0x5d6f6e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5d6f6e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5d6f6e['registerBlockAttribute']('headingRows'),_0x5d6f6e['registerBlockAttribute']('headingColumns'),_0x5d6f6e['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x8f3b29,'FORMAT_HEADER_ROW')),_0x5d6f6e['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x8f3b29,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4efe3e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3681f7=this['editor']['plugins']['get']('TableUtils'),_0x248baf=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0xd48cc5({showActiveMarker:_0x5520f4=!0x0,setDataAttribute:_0x3e8494=!0x0}={}){return(_0x1a81fe,_0x42a624,_0x8b6ba7)=>{const {type:_0xd7a68,id:_0x231746}=_0x4efe3e['_splitMarkerName'](_0x42a624['markerName']),_0x3c024c=_0x4efe3e['getSuggestion'](_0x231746),_0x2051df=_0x3c024c['data'];if('formatBlock'!=_0x3c024c['type']||!_0x2051df||'setTableColumnHeader'!=_0x2051df['commandName'])return;if(_0x42a624['item'])return void _0x1a81fe['stop']();if(!_0x8b6ba7['consumable']['consume'](_0x42a624['markerRange'],_0x1a81fe['name']))return;const _0x22e128=_0x42a624['markerRange']['start']['nodeAfter'],_0x3a0232=_0x42a624['markerRange']['end']['nodeBefore'],_0x30ab93=_0x22e128['parent']['parent'],{column:_0x124aeb}=_0x3681f7['getCellLocation'](_0x22e128),{column:_0x2260af}=_0x3681f7['getCellLocation'](_0x3a0232);for(let _0x22271a=_0x124aeb;_0x22271a<=_0x2260af;_0x22271a++){const _0x18441e=_0x3681f7['createTableWalker'](_0x30ab93,{'column':_0x22271a,'includeAllSlots':!0x1});for(const _0x55d52b of _0x18441e){const _0x1d00eb=_0x55d52b['cell'],_0x2f8e40=_0x8b6ba7['mapper']['toViewElement'](_0x1d00eb);_0x8b6ba7['writer']['addClass']('ck-suggestion-marker-'+_0xd7a68,_0x2f8e40),_0x3e8494&&_0x8b6ba7['writer']['setAttribute']('data-suggestion',_0x231746,_0x2f8e40),_0x8b6ba7['mapper']['bindElementToMarker'](_0x2f8e40,_0x42a624['markerName']),_0x5520f4&&(_0x4efe3e['activeMarkers']['includes'](_0x42a624['markerName'])?_0x8b6ba7['writer']['addClass']('ck-suggestion-marker--active',_0x2f8e40):_0x8b6ba7['writer']['removeClass']('ck-suggestion-marker--active',_0x2f8e40));}}};}_0x4efe3e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x248baf),_0x4efe3e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x248baf),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xd48cc5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x183c5e,_0x58e77a,_0xd89de)=>{_0xd89de['options']['showSuggestionHighlights']&&_0xd48cc5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x183c5e,_0x58e77a,_0xd89de);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x43fd12,_0x3f4a87,_0x234c2a)=>{const {type:_0xd2ce9d,id:_0x15c486}=_0x4efe3e['_splitMarkerName'](_0x3f4a87['markerName']),_0x3f6124=_0x4efe3e['getSuggestion'](_0x15c486),_0x2e7f71=_0x3f6124['data'];if('formatBlock'!=_0x3f6124['type']||!_0x2e7f71||'setTableColumnHeader'!=_0x2e7f71['commandName'])return;const _0x5270b7=_0x234c2a['mapper']['markerNameToElements'](_0x3f4a87['markerName']);if(_0x5270b7){for(const _0x4b2600 of _0x5270b7)_0x234c2a['writer']['removeClass']('ck-suggestion-marker-'+_0xd2ce9d,_0x4b2600),_0x234c2a['writer']['removeClass']('ck-suggestion-marker--active',_0x4b2600),_0x234c2a['writer']['removeAttribute']('data-suggestion',_0x4b2600),_0x234c2a['mapper']['unbindElementFromMarkerName'](_0x4b2600,_0x3f4a87['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e7f67=this['editor'],_0x5dd8cd=_0x5e7f67['locale'];function _0x38cdf0(_0x1fe1ff){return{'type':'format','content':o(_0x5dd8cd,'*Format:*\x20%0',_0x1fe1ff)};}_0x5e7f67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x213a8a=>{if('formatBlock'!=_0x213a8a['type'])return;const {data:_0x452b1d}=_0x213a8a;if(_0x452b1d){if('setTableRowHeader'==_0x452b1d['commandName']){const _0xa94294=_0x452b1d['commandParams'][0x0]['forceValue'];return _0x38cdf0(o(_0x5dd8cd,_0xa94294?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x452b1d['commandName']){const _0x3d759e=_0x452b1d['commandParams'][0x0]['forceValue'];return _0x38cdf0(o(_0x5dd8cd,_0x3d759e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x4f3add=>[_0x4f3add,null]));class Nt extends _0xcae1ef{static get['requires'](){return[vt];}['afterInit'](){const _0x440879=this['editor'];if(!_0x440879['plugins']['has']('TableClipboard'))return;const _0x39f329=_0x440879['plugins']['get']('TrackChangesEditing'),_0x17043b=_0x440879['plugins']['get']('TableUtils'),_0x726d5d=_0x440879['plugins']['get'](vt),_0x29a2c3=_0x440879['plugins']['get']('TableClipboard');_0x726d5d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x440879['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x440879['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x51dc8c=null;_0x440879['model']['on']('insertContent',(_0x2577e4,_0x545ccc)=>{const [_0x31f2fd,_0x1ce1b1]=_0x545ccc,_0x59cc07=_0x545ccc[_0x545ccc['length']-0x1];_0x59cc07&&_0x59cc07['forceDefaultExecution']||_0x39f329['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x207b9e,_0x5da424,_0x349e77,_0x3233d6,_0x50102e){if(_0x5da424&&!_0x5da424['is']('documentSelection'))return!0x1;const _0x1f7bd7=_0x50102e['getTableIfOnlyTableInContent'](_0x207b9e,_0x349e77);if(!_0x1f7bd7||!Ae(_0x1f7bd7,void 0x0,_0x3233d6))return!0x1;const _0x55603b=_0x3233d6['getSelectionAffectedTableCells'](_0x349e77['document']['selection']);if(!_0x55603b['length'])return!0x1;const _0x37e835=_0x55603b[0x0]['findAncestor']('table'),_0x55c59e=_0x3233d6['getRowIndexes'](_0x55603b),_0x74159d=_0x3233d6['getColumnIndexes'](_0x55603b),_0x16b285={'startRow':_0x55c59e['first'],'endRow':_0x55c59e['last'],'startColumn':_0x74159d['first'],'endColumn':_0x74159d['last']};return 0x1==_0x55603b['length']&&(_0x16b285['endRow']+=_0x3233d6['getRows'](_0x1f7bd7)-0x1,_0x16b285['endColumn']+=_0x3233d6['getColumns'](_0x1f7bd7)-0x1),Ae(_0x37e835,_0x16b285,_0x3233d6);}(_0x31f2fd,_0x1ce1b1,_0x440879['model'],_0x17043b,_0x29a2c3)&&(_0x2577e4['stop'](),_0x51dc8c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x440879['model']['change'](()=>{_0x440879['model']['insertContent'](_0x545ccc[0x0],_0x545ccc[0x1],_0x545ccc[0x2],{'forceDefaultExecution':!0x0});const _0x1e4a0b=_0x440c38(),{rowInsertionRanges:_0x37902c,columnInsertionRanges:_0x359604,insertionRanges:_0x5793d4,deletionRanges:_0x81de90,cells:_0x5d400e}=_0x51dc8c;_0x37902c['length']&&_0x39f329['markMultiRangeInsertion'](_0x37902c,'tablePasteRow',{'tablePasteChainId':_0x1e4a0b}),_0x359604['length']&&_0x39f329['markMultiRangeInsertion'](_0x359604,'tablePasteColumn',{'tablePasteChainId':_0x1e4a0b}),_0x5793d4['length']&&(_0x39f329['markMultiRangeInsertion'](_0x5793d4,'tablePaste',{'tablePasteChainId':_0x1e4a0b,'skipNestingCheck':!0x0}),_0x5793d4['forEach'](_0x82f96d=>_0x82f96d['detach']?.())),_0x81de90['length']&&(_0x39f329['markMultiRangeDeletion'](_0x81de90,'tablePaste',{'tablePasteChainId':_0x1e4a0b,'skipNestingCheck':!0x0}),_0x81de90['forEach'](_0xa53e89=>_0xa53e89['detach']?.()));const _0x8b5f6d=_0x39f329['markMultiRangeBlockFormat'](_0x5d400e['map'](({element:_0x8328ce})=>_0x8328ce),{'formatGroupId':_0x440c38()},[],'tablePasteCell',{'tablePasteChainId':_0x1e4a0b});if(_0x8b5f6d){const _0x2723a2=_0x8b5f6d['getMarkers'](),_0xfd7ae0=[];for(const {element:_0x3e3db6,attributes:_0xa2ec3c}of _0x5d400e){if(!_0xa2ec3c)continue;const _0xd8b475=_0x440879['model']['createRangeOn'](_0x3e3db6),_0x3a275a=_0x2723a2['find'](_0x13a827=>_0x13a827['getRange']()['isEqual'](_0xd8b475));_0x3a275a&&_0xfd7ae0['push']([_0x3a275a['name'],_0xa2ec3c]);}_0xfd7ae0['length']&&_0x8b5f6d['setAttribute']('markerAttributes',Object['fromEntries'](_0xfd7ae0));}_0x51dc8c=null;}));},{'priority':_0x18918d['high']+0xa}),_0x440879['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1bb097,_0x508e2b)=>{const [_0x25c76c,_0x54a1b4,,_0x7d7b32]=_0x508e2b;if(!_0x51dc8c)return;_0x1bb097['stop']();const _0xe50b45=_0x25c76c['cell'],_0x31c7f4=_0x54a1b4,_0x599b68=je(_0xe50b45),_0x24eaad=je(_0x31c7f4);_0x1bb097['return']=_0xe50b45;let _0x93970d=null,_0x345c61=null;if(_0x24eaad||_0x599b68){if(_0x599b68&&!_0x24eaad){_0x7d7b32['remove'](_0xe50b45['getChild'](0x0));for(const _0xdeb29 of Array['from'](_0x31c7f4['getChildren']()))_0x7d7b32['insert'](_0xdeb29,_0xe50b45,'end');const _0x25f285=_0x51dc8c['rowInsertionIndexes']['includes'](_0x25c76c['row']),_0x5cbf7e=_0x51dc8c['columnInsertionIndexes']['includes'](_0x25c76c['column']);_0x25f285||_0x5cbf7e||(_0x93970d=_0x3fc55d['fromRange'](_0x7d7b32['createRangeIn'](_0xe50b45)));}else _0x24eaad&&!_0x599b68&&(_0x345c61=_0x7d7b32['createRangeIn'](_0xe50b45));}else{const _0x23b4bd=_0x7d7b32['createElement']('tableCellSuggestion'),_0x3b7ea0=_0x7d7b32['createElement']('tableCellSuggestion');_0x7d7b32['wrap'](_0x7d7b32['createRangeIn'](_0xe50b45),_0x3b7ea0),_0x7d7b32['insert'](_0x23b4bd,_0xe50b45,0x0);for(const _0x5b3136 of Array['from'](_0x31c7f4['getChildren']()))_0x7d7b32['insert'](_0x5b3136,_0x23b4bd,'end');_0x93970d=_0x3fc55d['fromRange'](_0x7d7b32['createRangeOn'](_0x23b4bd)),_0x345c61=_0x3fc55d['fromRange'](_0x7d7b32['createRangeOn'](_0x3b7ea0));}const _0x5be441=Array['from'](_0x31c7f4['getAttributes']())['filter'](([_0x1d6c0e])=>we['includes'](_0x1d6c0e));_0x51dc8c['cells']['push']({'element':_0xe50b45,'attributes':_0x5be441['length']?Object['fromEntries'](_0x5be441):null}),_0x93970d&&_0x51dc8c['insertionRanges']['push'](_0x93970d),_0x345c61&&_0x51dc8c['deletionRanges']['push'](_0x345c61);},{'priority':'high'}),_0x17043b['on']('insertColumns',(_0x356c9a,_0x93443b)=>{const [_0x3d3f82,_0x17300a={}]=_0x93443b;if(!_0x51dc8c)return;const _0x5d60aa=_0x17300a['at']||0x0,_0x5be5f6=_0x17300a['columns']||0x1;_0x51dc8c['columnInsertionIndexes']=new Array(_0x5be5f6)['fill'](_0x5d60aa)['map']((_0x1a9bba,_0x3bcdfe)=>_0x1a9bba+_0x3bcdfe);for(const {cell:_0x528759}of _0x17043b['createTableWalker'](_0x3d3f82,{'startColumn':_0x5d60aa,'endColumn':_0x5d60aa+_0x5be5f6-0x1}))_0x51dc8c['columnInsertionRanges']['push'](_0x440879['model']['createRangeOn'](_0x528759));},{'priority':'low'}),_0x17043b['on']('insertRows',(_0x3026f8,_0x47222a)=>{const [_0x245645,_0xae9b38={}]=_0x47222a;if(!_0x51dc8c)return;const _0x5eeabc=_0xae9b38['at']||0x0,_0x52fdd0=_0xae9b38['rows']||0x1;_0x51dc8c['rowInsertionIndexes']=new Array(_0x52fdd0)['fill'](_0x5eeabc)['map']((_0x6cc340,_0x66d48a)=>_0x6cc340+_0x66d48a);for(const {cell:_0x48c7d3}of _0x17043b['createTableWalker'](_0x245645,{'startRow':_0x5eeabc,'endRow':_0x5eeabc+_0x52fdd0-0x1}))_0x51dc8c['rowInsertionRanges']['push'](_0x440879['model']['createRangeOn'](_0x48c7d3));},{'priority':'low'}),_0x39f329['descriptionFactory']['registerDescriptionCallback'](_0x2388b5=>{if(_0x2388b5['subType']&&_0x2388b5['subType']['startsWith']('tablePaste'))return _0x2388b5['previous']?{}:{'type':'insertion','content':o(_0x440879['locale'],'*Replace\x20table\x20cells*')};});const _0x2a20b0=()=>!0x1;for(const _0x153168 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x39f329['_suggestionFactory']['registerCustomCallback']('insertion',_0x153168,'join',_0x2a20b0),_0x39f329['_suggestionFactory']['registerCustomCallback']('deletion',_0x153168,'join',_0x2a20b0),_0x39f329['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x153168,'join',_0x2a20b0);_0x39f329['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2a20b0),_0x39f329['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x49d7d7,_0x493236,_0x5a1596)=>{const _0x3ce1ca=_0x49d7d7['map'](_0x33d30b=>_0x33d30b['getContainedElement']())['filter'](_0x579ada=>_0x579ada),_0x15b663=new Map(_0x3ce1ca['map'](_0x15cde0=>[_0x15cde0,null]));if(_0x51dc8c){for(const {element:_0x13b941,attributes:_0x2befb7}of _0x51dc8c['cells'])_0x2befb7&&_0x15b663['set'](_0x13b941,_0x2befb7);}else{if(_0x5a1596&&_0x5a1596['markerAttributes'])for(const [_0x265de4,_0x13538a]of Object['entries'](_0x5a1596['markerAttributes'])){const _0x2e91de=_0x440879['model']['markers']['get'](_0x265de4),_0x442be8=_0x2e91de?_0x2e91de['getRange']()['getContainedElement']():null;_0x442be8&&_0x15b663['set'](_0x442be8,_0x13538a);}}_0x440879['model']['change'](_0x18d401=>{for(const [_0x156e73,_0x54056c]of _0x15b663)_0x18d401['setAttributes']({...ve,..._0x54056c},_0x156e73);});});const _0x4aee77=(_0x58af52,_0x37a72f)=>{_0x39f329['_suggestionFactory']['registerCustomCallback'](_0x58af52,'tablePaste',_0x37a72f,(_0xa6c1c1,_0x210563,_0x242912)=>{_0x440879['model']['change'](_0x184228=>{const _0x3631d2=[];for(const _0x27ce09 of _0xa6c1c1){const _0x376ff3=_0x27ce09['start']['nodeAfter'];_0x376ff3['is']('element','tableCellSuggestion')&&_0x3631d2['push'](_0x376ff3);}_0x39f329['_suggestionFactory']['getSuggestionCallback'](_0x58af52,null,_0x37a72f)(_0xa6c1c1,_0x210563,_0x242912);for(const _0x3c138e of _0x3631d2)'$graveyard'!=_0x3c138e['root']['rootName']&&_0x184228['unwrap'](_0x3c138e);});});};_0x4aee77('insertion','accept'),_0x4aee77('insertion','discard'),_0x4aee77('deletion','accept'),_0x4aee77('deletion','discard'),_0x39f329['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x41e53f=>{const _0x531a6d=_0x41e53f['map'](_0x11989d=>_0x11989d['getContainedElement']()),_0x32d35d=_0x531a6d[0x0]['findAncestor']('table'),{minRow:_0x183403,maxRow:_0x3e9b09}=_0x726d5d['_getCoordsForCells'](_0x531a6d);_0x17043b['removeRows'](_0x32d35d,{'at':_0x183403,'rows':_0x3e9b09-_0x183403+0x1});}),_0x39f329['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x34b70d=>{const _0x9c9429=_0x34b70d['map'](_0x4b7ef3=>_0x4b7ef3['getContainedElement']()),_0x4788b2=_0x9c9429[0x0]['findAncestor']('table'),{minColumn:_0x17cc3a,maxColumn:_0x309d43}=_0x726d5d['_getCoordsForCells'](_0x9c9429);_0x17043b['removeColumns'](_0x4788b2,{'at':_0x17cc3a,'columns':_0x309d43-_0x17cc3a+0x1});});const _0x2a014c=(_0x5ece7b,_0x461332)=>{if(!_0x461332['subType']||!_0x461332['subType']['startsWith']('tablePaste'))return;const _0x23c597=_0x461332['attributes']['tablePasteChainId'],_0x6e6b21=_0x39f329['getSuggestions']()['filter'](_0x6f5665=>_0x6f5665['isInContent']&&_0x6f5665['attributes']&&_0x6f5665['attributes']['tablePasteChainId']==_0x23c597);_0x6e6b21['length']&&_0x461332['getAllAdjacentSuggestions']()['length']!=_0x6e6b21['length']&&_0x6e6b21['reduce']((_0x133637,_0x188fd1)=>(_0x133637['next']=_0x188fd1,_0x188fd1['previous']=_0x133637,_0x188fd1));};function _0x39851d(_0xdc3c2c,_0x59159c=!0x0){const {id:_0x750fbb,authorId:_0x3a9b69}=_0x39f329['_splitMarkerName'](_0xdc3c2c['markerName']),_0x59075e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x37091d=_0x39f329['activeMarkers']['includes'](_0xdc3c2c['markerName']);return _0x37091d&&_0x59075e['push']('ck-suggestion-marker--active'),{'classes':_0x59075e,'attributes':{'data-suggestion':_0x750fbb,'data-author-id':_0x3a9b69},'priority':_0x37091d&&_0x59159c?0xbc2:0xbb8};}_0x39f329['on']('suggestionLoaded',_0x2a014c,{'priority':'high'}),_0x39f329['on']('suggestionUnloaded',_0x2a014c,{'priority':'high'}),_0x440879['model']['document']['registerPostFixer'](()=>{let _0x4bfa17=!0x1;const _0x49e331=Array['from'](_0x440879['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31e2eb,data:_0x5ec499}of _0x49e331){const {group:_0x4ecb53,type:_0x3702d0,id:_0x2c6bfd}=_0x39f329['_splitMarkerName'](_0x31e2eb);if('suggestion'!=_0x4ecb53||'deletion'!=_0x3702d0||_0x5ec499['oldRange'])continue;if(!_0x39f329['hasSuggestion'](_0x2c6bfd))continue;const _0x3f37b2=_0x39f329['getSuggestion'](_0x2c6bfd)['getRanges'](),_0x274d36=_0x440879['plugins']['get']('Users')['me'];for(const _0xb0aef5 of _0x39f329['getSuggestions']()){if(!_0xb0aef5['isInContent']||_0xb0aef5['author']!=_0x274d36)continue;if('formatBlock'!=_0xb0aef5['type']||'tablePasteCell'!=_0xb0aef5['subType'])continue;if(_0xb0aef5['getRanges']()['every'](_0x49d9ba=>_0x3f37b2['some'](_0x836072=>_0x836072['containsRange'](_0x49d9ba,!0x0)))){for(const _0x26368b of _0xb0aef5['getAllAdjacentSuggestions']())_0x26368b['isInContent']&&(_0x26368b['discard'](),_0x4bfa17=!0x0);}}}return _0x4bfa17;}),_0x440879['model']['document']['registerPostFixer'](_0x34e4f4=>{const _0x27db88=_0x440879['commands']['get']('redo');if(!_0x27db88||!_0x27db88['_createdBatches']['has'](_0x34e4f4['batch']))return!0x1;let _0x3db843=!0x1;const _0x187ce3=_0x440879['plugins']['get']('Users')['me'],_0x431a74=_0x440879['model']['document']['differ']['getChanges'](),_0xcf1409=Array['from'](_0x440879['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3400ad,data:_0x5d0f6e})=>{const {group:_0x3ded02,subType:_0x53a1ed,authorId:_0x1b2f56}=_0x39f329['_splitMarkerName'](_0x3400ad);return'suggestion'==_0x3ded02&&'tablePaste'==_0x53a1ed&&_0x1b2f56==_0x187ce3['id']&&!_0x5d0f6e['oldRange'];});for(const _0x399aa7 of _0x431a74){if('insert'!=_0x399aa7['type']||'tableCellSuggestion'!=_0x399aa7['name']||0x1!=_0x399aa7['length'])continue;const _0x290102=_0x34e4f4['createRange'](_0x399aa7['position'],_0x399aa7['position']['getShiftedBy'](0x1));if(!_0xcf1409['find'](({data:_0x36b3b0})=>_0x36b3b0['newRange']['isEqual'](_0x290102))){for(const {name:_0x1db83f,data:_0x4e3060}of _0xcf1409)if(_0x290102['containsRange'](_0x4e3060['newRange'])){_0x34e4f4['updateMarker'](_0x1db83f,{'range':_0x290102}),_0x3db843=!0x0;break;}}}return _0x3db843;}),_0x440879['model']['document']['registerPostFixer'](_0x34f9b7=>{let _0x349e2b=!0x1;const _0x9fa663=_0x440879['plugins']['get']('Users')['me'],_0x502745=_0x39f329['getSuggestions']()['filter'](_0x3fe263=>_0x3fe263['isInContent']&&_0x3fe263['author']==_0x9fa663),_0x562df2=new Set(),_0x22bdbb=new Set();for(const _0x3531fe of _0x502745)if('tablePaste'==_0x3531fe['subType'])for(const _0x52ee1b of _0x3531fe['getMarkers']()){const _0x21e4aa=_0x52ee1b['getRange']()['getContainedElement']();if(_0x21e4aa){if(_0x21e4aa['is']('element','tableCellSuggestion')&&je(_0x21e4aa)){_0x3531fe['removeMarker'](_0x52ee1b['name']),_0x562df2['add'](_0x21e4aa),_0x349e2b=!0x0;const _0x3fa0bc=_0x21e4aa['nextSibling'],_0x5e0a8f=_0x21e4aa['previousSibling'],_0x1ea818=_0x3fa0bc&&_0x3fa0bc['is']('element','tableCellSuggestion'),_0x506193=_0x5e0a8f&&_0x5e0a8f['is']('element','tableCellSuggestion');_0x1ea818&&!_0x562df2['has'](_0x3fa0bc)&&_0x22bdbb['add'](_0x3fa0bc),_0x506193&&!_0x562df2['has'](_0x5e0a8f)&&_0x22bdbb['add'](_0x5e0a8f);}else _0x21e4aa['is']('element','paragraph')&&_0x21e4aa['isEmpty']&&(_0x3531fe['removeMarker'](_0x52ee1b['name']),_0x349e2b=!0x0);}}else{if('tablePasteCell'==_0x3531fe['subType']){if(!_0x3531fe['attributes']||!_0x3531fe['attributes']['tablePasteChainId'])continue;const _0xe28be0=_0x3531fe['attributes']['markerAttributes'];if(_0xe28be0&&Object['keys'](_0xe28be0)['length'])continue;const _0x17415d=_0x3531fe['attributes']['tablePasteChainId'];let _0x21faa4=!0x0,_0x5b4d77=!0x0;for(const _0x564a6e of _0x502745)if(_0x564a6e['subType']&&_0x564a6e['subType']['startsWith']('tablePaste')){if(!_0x564a6e['attributes']['tablePasteChainId']){_0x5b4d77=!0x1;break;}if(_0x564a6e['id']!=_0x3531fe['id']&&_0x564a6e['attributes']['tablePasteChainId']==_0x17415d){_0x21faa4=!0x1;break;}}_0x5b4d77&&_0x21faa4&&(_0x3531fe['removeMarkers'](),_0x349e2b=!0x0);}}for(const _0xa862 of _0x562df2)_0x34f9b7['remove'](_0xa862);for(const _0x4f025a of _0x22bdbb)_0x34f9b7['unwrap'](_0x4f025a);return _0x349e2b;}),_0x440879['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x90062b=>_0x39851d(_0x90062b),'converterPriority':'high'}),_0x440879['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x262f03,_0x3964e0)=>_0x3964e0['options']['showSuggestionHighlights']?_0x39851d(_0x262f03,!0x1):null,'converterPriority':'high'});const _0x3f7fa5=_0x440879['editing']['view'];this['listenTo'](_0x3f7fa5['document'],'clipboardOutput',(_0x3d9a95,_0x458d4e)=>{const _0x4db2f5=[];for(const _0x203298 of _0x3f7fa5['createRangeIn'](_0x458d4e['content'])['getItems']())_0x203298['is']('element','suggestion-td')&&_0x4db2f5['push'](_0x203298);_0x3f7fa5['change'](_0x11cb8d=>{for(const _0x2faf67 of _0x4db2f5)_0x11cb8d['move'](_0x11cb8d['createRangeIn'](_0x2faf67),_0x11cb8d['createPositionBefore'](_0x2faf67)),_0x11cb8d['remove'](_0x2faf67);});});}}function je(_0x5b463d){if(_0x5b463d['isEmpty'])return!0x0;const _0x5d9336=_0x5b463d['getChild'](0x0);return _0x5d9336['is']('element','paragraph')&&_0x5d9336['isEmpty'];}function Ae(_0x48e8d7,_0x37c349={},_0x18d1ab){for(const {isAnchor:_0x8fa721,cellHeight:_0x5871ec,cellWidth:_0x1eb21b}of _0x18d1ab['createTableWalker'](_0x48e8d7,{'includeAllSlots':!0x0,..._0x37c349}))if(!_0x8fa721||0x1!=_0x5871ec||0x1!=_0x1eb21b)return!0x1;return!0x0;}class Dt extends _0xcae1ef{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3bbd4b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3bbd4b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3bbd4b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3bbd4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3bbd4b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3bbd4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3bbd4b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2ccd9d,_0x83e9ae){const _0x497dc5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x299036=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x228252=_0x83e9ae['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4374d7=_0x299036['getColumnGroupElement'](_0x228252);let _0x4b9e9f=_0x4374d7?_0x299036['getTableColumnsWidths'](_0x4374d7):null,_0x57dd7e=_0x228252['getAttribute']('tableWidth')||null;const _0x2f89a5=_0x83e9ae['tableWidth']||_0x57dd7e,_0x6537fa=_0x83e9ae['columnWidths']||_0x4b9e9f,_0x1120e3=this['editor']['plugins']['get']('Users')['me'];for(const _0x2951ff of _0x497dc5['getSuggestions']()){const _0x4eb296=_0x2951ff['getContainedElement']();if('resizeTable'===_0x2951ff['subType']&&_0x4eb296===_0x228252){_0x2951ff['author']!==_0x1120e3&&_0x2951ff['discard']();const _0x5dc80c=_0x2951ff['data']['commandParams'];_0x57dd7e=_0x5dc80c[0x0]['tableWidth'],_0x4b9e9f=_0x5dc80c[0x0]['columnWidths'];break;}}_0x2ccd9d({'table':_0x228252,'tableWidth':_0x2f89a5,'columnWidths':_0x6537fa}),_0x497dc5['markBlockFormat'](_0x228252,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x57dd7e,'columnWidths':_0x4b9e9f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3ec44a){if('formatBlock'!=_0x3ec44a['type']&&'formatInline'!=_0x3ec44a['type'])return;const {data:_0x5a679b}=_0x3ec44a;if(_0x5a679b&&'resizeTable'===_0x5a679b['formatGroupId']){const _0x3eea41='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3eea41)};}}}class Mt extends _0xcae1ef{['afterInit'](){const _0x203e85=this['editor'];_0x203e85['plugins']['has']('Template')&&_0x203e85['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0xcae1ef{['afterInit'](){const _0x2885fc=this['editor'];if(!_0x2885fc['commands']['get']('insertTableOfContents'))return;_0x2885fc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x39404f=_0x2885fc['plugins']['get']('TrackChangesEditing'),_0x2a93fb=_0x2885fc['locale'];_0x39404f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x42f1ba=>o(_0x2a93fb,'ELEMENT_TABLE_OF_CONTENTS',_0x42f1ba));}}class Bt extends _0xcae1ef{['afterInit'](){const _0x1c42bb=this['editor'];if(!_0x1c42bb['plugins']['has']('Title'))return;const _0x4e6e98=_0x1c42bb['plugins']['get']('TrackChangesEditing');_0x4e6e98['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1c42bb['locale'],'ELEMENT_TITLE')),_0x1c42bb['model']['document']['registerPostFixer'](_0x30123a=>{let _0xfc7b93=!0x1;const _0x3788c4=Array['from'](_0x1c42bb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x33383b,data:_0x456dab}of _0x3788c4){const {group:_0x101ca3}=_0x4e6e98['_splitMarkerName'](_0x33383b);if('suggestion'!==_0x101ca3||!_0x456dab['newRange'])continue;const _0x47d0a8=_0x456dab['newRange'],_0x380487=_0x47d0a8['end']['nodeBefore'];if(!_0x380487||!_0x380487['is']('element','title-content'))continue;if(!_0x47d0a8['start']['isTouching'](_0x47d0a8['end']))continue;const _0x5d35ee=_0x1c42bb['model']['schema']['getNearestSelectionRange'](_0x47d0a8['end'],'forward');if(_0x5d35ee&&_0x5d35ee['isCollapsed']){const _0x459729=_0x30123a['createRange'](_0x47d0a8['start'],_0x5d35ee['start']);_0x459729['isEqual'](_0x47d0a8)||(_0x30123a['updateMarker'](_0x33383b,{'range':_0x459729}),_0xfc7b93=!0x0);}_0xfc7b93||(_0x30123a['removeMarker'](_0x33383b),_0xfc7b93=!0x0);}return _0xfc7b93;});}}class Ot extends _0xcae1ef{['afterInit'](){const _0x19dc01=this['editor'],_0x31f0b0=_0x19dc01['plugins']['get']('TrackChangesEditing');_0x19dc01['plugins']['has']('UndoEditing')&&(_0x31f0b0['enableCommand']('undo'),_0x31f0b0['enableCommand']('redo'));}}class Rt extends _0xcae1ef{static get['requires'](){return[vt];}['afterInit'](){const _0x1827e6=this['editor'];if(!_0x1827e6['plugins']['has']('TableCaptionEditing'))return;_0x1827e6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0xcae1ef{['tableProperties'];['tableCellProperties'];constructor(_0x2927e4){super(_0x2927e4),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1de753=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x54812c of this['tableProperties'])_0x1de753['enableCommand'](_0x54812c,(_0xe9ac51,_0x7e537)=>{const _0x4a1cc7=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x54812c,[_0x4a1cc7],this['tableProperties'],'tableProperties',_0xe9ac51,_0x7e537);});_0x1de753['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1de753['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1de753['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x9886f2,_0x2aef71)=>this['handleDiscardAction'](this['tableProperties'],_0x9886f2,_0x2aef71)),_0x1de753['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x141975 of this['tableCellProperties'])_0x1de753['enableCommand'](_0x141975,(_0x3aaa81,_0x232c84)=>{const _0x34614f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x141975,_0x34614f,this['tableCellProperties'],'tableCellProperties',_0x3aaa81,_0x232c84);});_0x1de753['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1de753['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1de753['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2a85b6,_0x3f782e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2a85b6,_0x3f782e)),_0x1de753['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1de753['descriptionFactory']['registerDescriptionCallback'](_0x12656b=>this['handleSuggestionDescription'](_0x12656b));}['_handlePropertyChange'](_0x478c1c,_0x25543b,_0x51eaec,_0x91d114,_0x29f5e1,_0x19b7d2){const _0x2e6327=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x19b7d2['batch'],()=>{for(const _0x4b7b65 of _0x25543b){if(this['_getSuggestion'](_0x4b7b65,_0x91d114))_0x29f5e1(_0x19b7d2);else{const _0x43fd1f={};for(const _0x27f6dd of _0x51eaec){const _0x5a0650=_0x4b7b65['getAttribute'](_0x27f6dd);void 0x0!==_0x5a0650&&(_0x43fd1f[_0x27f6dd]=_0x5a0650);}_0x29f5e1(_0x19b7d2),_0x2e6327['markBlockFormat'](_0x4b7b65,{'commandParams':[_0x43fd1f]},[],_0x91d114);}}});}['handleDiscardAction'](_0x3ded4c,_0x35b0bf,_0x21136d){const _0x2a3595=_0x35b0bf[0x0]['start']['nodeAfter'],_0x460ca3=_0x21136d['commandParams'][0x0];this['editor']['model']['change'](_0x19abb0=>{for(const _0x148197 of _0x3ded4c)void 0x0!==_0x460ca3[_0x148197]?_0x19abb0['setAttribute'](_0x148197,_0x460ca3[_0x148197],_0x2a3595):_0x19abb0['removeAttribute'](_0x148197,_0x2a3595);});}['handleSuggestionDescription'](_0x1f1112){if(_0x1f1112['data'])switch(_0x1f1112['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'](_0x1f1591,_0x36ab14){const _0xdcdf7f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1f6e90 of _0xdcdf7f['getSuggestions']({'skipNotAttached':!0x0})){const _0x2d6dfe=_0x1f6e90['getContainedElement']();if(_0x1f6e90['subType']===_0x36ab14&&_0x2d6dfe===_0x1f1591)return _0x1f6e90;}return null;}}const m='$elementName';class p extends _0xcae1ef{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4ee8f0,_0x5212f6,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x689560){super(_0x689560),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x305219,_0x441df1,_0x4af8e7,_0x438a30)=>{this['_model']['change'](()=>{for(const _0x1e0d89 of[..._0x438a30,..._0x4af8e7])this['_model']['markers']['has'](_0x1e0d89)&&_0x689560['editing']['reconvertMarker'](_0x1e0d89);});}),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']=_0x689560['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(),_0x689560['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x689560['config']['get']('trackChanges.trackFormatChanges'),_0x689560['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x689560['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x689560,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x343076=this['editor'],_0x2514b6=(_0x22e1a3,_0x470e01)=>{if('attribute'!=_0x22e1a3)return'ck-suggestion-marker-'+_0x22e1a3;const _0x121cf6=_0x470e01['split']('|')[0x0];return this['_isBlockAttribute'](_0x121cf6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x343076['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2f769d=>{const {id:_0x174957,authorId:_0x4d451e,type:_0x2536bd,subType:_0x50ee17}=this['_splitMarkerName'](_0x2f769d['markerName']),_0x577b70=['ck-suggestion-marker',_0x2514b6(_0x2536bd,_0x50ee17)];let _0x30d8fb=0xbb8;return this['activeMarkers']['includes'](_0x2f769d['markerName'])&&(_0x577b70['push']('ck-suggestion-marker--active'),_0x30d8fb=0xbc2),'deletion'==_0x2536bd&&(_0x30d8fb+=0x5),{'classes':_0x577b70,'attributes':{'data-suggestion':_0x174957,'data-author-id':_0x4d451e},'priority':_0x30d8fb};}}),_0x343076['conversion']['for']('dataDowncast')['add'](_0x40a750=>{_0x40a750['on']('addMarker:suggestion',(_0x2a5f6c,_0x4cd8c7,_0x3afea7)=>{if(!_0x3afea7['options']['showSuggestionHighlights'])return;const _0x2368ca=_0x4cd8c7['item'];if(!_0x2368ca)return;const _0x3fa3f3=_0x3afea7['mapper']['toViewElement'](_0x2368ca);_0x343076['model']['schema']['isObject'](_0x2368ca)&&_0x3fa3f3&&!_0x3fa3f3['getCustomProperty']('widget')&&_0x3fa3f3['is']('containerElement')&&_0x4f88fc(_0x3fa3f3,_0x3afea7['writer']);},{'priority':'high'});}),_0x343076['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2d34f6,_0x3a415f)=>{if(!_0x3a415f['options']['showSuggestionHighlights'])return null;const {type:_0xa11d75,subType:_0x3e363f}=this['_splitMarkerName'](_0x2d34f6['markerName']);return{'classes':['ck-suggestion-marker',_0x2514b6(_0xa11d75,_0x3e363f)],'priority':0xbb8};}});const _0x4069a1=({showActiveMarkers:_0x56b59a=!0x0,isAttributeSuggestion:_0x5c5a88=!0x1}={})=>(_0x48a707,_0x4c74c6,_0x4cf517)=>{if(!_0x4c74c6['item'])return;const {id:_0xc4cee8,authorId:_0x364d0a}=this['_splitMarkerName'](_0x4c74c6['markerName']);if(_0x5c5a88){const _0x38113a=this['_suggestions']['get'](_0xc4cee8),_0x8c8578=this['_getAttributeKey'](_0x38113a);if(!this['_isBlockAttribute'](_0x8c8578))return;}if(_0x4c74c6['item']['is']('selection'))return void _0x4cf517['consumable']['consume'](_0x4c74c6['item'],_0x48a707['name']);const _0x5109d1=_0x4cf517['mapper']['toViewElement'](_0x4c74c6['item']);if(_0x4c74c6['item']['is']('element')&&_0x343076['model']['schema']['isBlock'](_0x4c74c6['item'])&&!_0x5109d1['getCustomProperty']('addHighlight')){_0x4cf517['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5109d1),_0x4cf517['writer']['setAttribute']('data-suggestion',_0xc4cee8,_0x5109d1),_0x4cf517['writer']['setAttribute']('data-author-id',_0x364d0a,_0x5109d1),_0x4cf517['mapper']['bindElementToMarker'](_0x5109d1,_0x4c74c6['markerName']),_0x56b59a&&(this['activeMarkers']['includes'](_0x4c74c6['markerName'])?_0x4cf517['writer']['addClass']('ck-suggestion-marker--active',_0x5109d1):_0x4cf517['writer']['removeClass']('ck-suggestion-marker--active',_0x5109d1));for(const _0x5bd8cd of _0x343076['model']['createRangeIn'](_0x4c74c6['item'])['getItems']())_0x4cf517['consumable']['consume'](_0x5bd8cd,_0x48a707['name']);_0x4cf517['consumable']['consume'](_0x4c74c6['item'],_0x48a707['name']);}};_0x343076['conversion']['for']('dataDowncast')['add'](_0x361043=>{_0x361043['on']('addMarker:suggestion:formatBlock',(_0x28cf19,_0x298913,_0x3b753b)=>{_0x3b753b['options']['showSuggestionHighlights']&&_0x4069a1({'showActiveMarkers':!0x1})(_0x28cf19,_0x298913,_0x3b753b);},{'priority':'highest'});}),_0x343076['conversion']['for']('dataDowncast')['add'](_0x375452=>{_0x375452['on']('addMarker:suggestion:attribute',(_0x30529f,_0x3d007c,_0x5c6a8f)=>{_0x5c6a8f['options']['showSuggestionHighlights']&&_0x4069a1({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x30529f,_0x3d007c,_0x5c6a8f);},{'priority':'highest'});}),_0x343076['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x31a41c,_0x4e24a1)=>_0x4e24a1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x31a41c['substr'](0xb)}}),_0x343076['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xb5fa8,{writer:_0x531e76})=>{let _0x1d0a92='suggestion:'+_0xb5fa8['getAttribute']('suggestion-type')+':'+_0xb5fa8['getAttribute']('id');return _0xb5fa8['getAttribute']('marker-count')&&(_0x1d0a92+=':'+_0xb5fa8['getAttribute']('marker-count')),_0x531e76['createElement']('$marker',{'data-name':_0x1d0a92});}}),_0x343076['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x343076['conversion']['for']('editingDowncast')['add'](_0x268941=>{_0x268941['on']('addMarker:suggestion:formatBlock',_0x4069a1(),{'priority':'high'});}),_0x343076['conversion']['for']('editingDowncast')['add'](_0x2834fe=>{_0x2834fe['on']('addMarker:suggestion:attribute',_0x4069a1({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x343076['conversion']['for']('editingDowncast')['add'](_0x397000=>{_0x397000['on']('removeMarker:suggestion:formatBlock',(_0x4ee9fd,_0x15234b,_0x564731)=>{const _0x1990fe=_0x564731['mapper']['markerNameToElements'](_0x15234b['markerName']);if(_0x1990fe){for(const _0x3c4223 of _0x1990fe)_0x3c4223['getCustomProperty']('addHighlight')||(_0x564731['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c4223),_0x564731['writer']['removeAttribute']('data-suggestion',_0x3c4223),_0x564731['writer']['removeAttribute']('data-author-id',_0x3c4223),_0x564731['mapper']['unbindElementFromMarkerName'](_0x3c4223,_0x15234b['markerName']));}},{'priority':'high'});}),_0x343076['conversion']['for']('editingDowncast')['add'](_0x43d44e=>{_0x43d44e['on']('removeMarker:suggestion:attribute',(_0x4ca74c,_0x5bb294,_0x9b22a)=>{const _0x106df9=_0x9b22a['mapper']['markerNameToElements'](_0x5bb294['markerName']);if(!_0x106df9)return;const {id:_0x1c4765}=this['_splitMarkerName'](_0x5bb294['markerName']),_0x13028c=this['_suggestions']['get'](_0x1c4765),_0x2cd9f2=this['_getAttributeKey'](_0x13028c);if(this['_isBlockAttribute'](_0x2cd9f2)){for(const _0x121f33 of _0x106df9)_0x121f33['getCustomProperty']('addHighlight')||(_0x9b22a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x121f33),_0x9b22a['writer']['removeAttribute']('data-suggestion',_0x121f33),_0x9b22a['writer']['removeAttribute']('data-author-id',_0x121f33),_0x9b22a['mapper']['unbindElementFromMarkerName'](_0x121f33,_0x5bb294['markerName']));}},{'priority':'high'});}),_0x343076['model']['document']['registerPostFixer'](_0x45546e=>{let _0x4f3952=!0x1;const _0x105a8f=Array['from'](_0x343076['model']['document']['differ']['getChangedMarkers']()),_0x176b93=new Set();for(const {name:_0x4fdab0,data:_0x41695e}of _0x105a8f){const {group:_0x2b6e01,type:_0x55a364,subType:_0x2373d3,id:_0x16a8da}=this['_splitMarkerName'](_0x4fdab0);if('suggestion'!==_0x2b6e01)continue;const _0x440cd1=this['_suggestions']['get'](_0x16a8da);if(null!=_0x41695e['newRange']){'formatInline'==_0x55a364&&(_0x4f3952=_0x4f3952||Pt(_0x41695e['newRange'],_0x4fdab0,_0x45546e,_0x343076['model']['schema']));const _0x31eadb='attribute'==_0x55a364&&this['_isBlockAttribute'](_0x2373d3['split']('|')[0x0]);if(_0x41695e['newRange']['isCollapsed']||'$graveyard'==_0x41695e['newRange']['root']['rootName']||'formatBlock'==_0x55a364&&!Ft(_0x41695e['newRange'])||_0x31eadb&&!Ft(_0x41695e['newRange'])||'deletion'==_0x55a364&&!(!Vt(_0x58960a=_0x41695e['newRange'])&&!function(_0x134da6){return _0x134da6['start']['parent']==_0x134da6['end']['nodeBefore']&&_0x134da6['start']['isAtEnd'];}(_0x58960a)))_0x45546e['removeMarker'](_0x4fdab0),_0x4f3952=!0x0;else{if(!_0x440cd1||!_0x440cd1['isInContent'])continue;if(_0x41695e['newRange']&&_0x41695e['oldRange']&&_0x41695e['newRange']['isEqual'](_0x41695e['oldRange']))continue;_0x176b93['add'](_0x440cd1);}}}var _0x58960a;return _0x176b93['size']>0x0&&(_0x4f3952=!!this['_joinWithAdjacentSuggestions'](_0x176b93)||_0x4f3952),_0x4f3952;}),_0x343076['model']['document']['registerPostFixer'](_0x312558=>{let _0x40f751=!0x1;for(const _0x2177a6 of _0x343076['model']['document']['differ']['getChanges']())if('insert'==_0x2177a6['type'])for(const _0x4eb700 of this['_suggestions']['values']()){if(_0x4eb700['isMultiRange']||!_0x4eb700['isInContent'])continue;const _0x2ab6a4='formatBlock'==_0x4eb700['type'],_0x59b1f3=this['_getAttributeKey'](_0x4eb700),_0x1ab1d6=_0x59b1f3&&this['_isBlockAttribute'](_0x59b1f3);if(!_0x2ab6a4&&!_0x1ab1d6)continue;const _0x10ecd2=_0x4eb700['getFirstRange']();if(_0x10ecd2['start']['parent']!=_0x10ecd2['end']['parent']&&!_0x10ecd2['end']['isAtEnd']){const _0x391979=_0x343076['model']['createPositionAt'](_0x10ecd2['start']['nodeAfter'],'end'),_0x3f73b6=_0x343076['model']['createRange'](_0x10ecd2['start'],_0x391979);_0x312558['updateMarker'](_0x4eb700['getFirstMarker'](),{'range':_0x3f73b6}),_0x40f751=!0x0;}}return _0x40f751;}),_0x343076['model']['document']['registerPostFixer'](_0x184504=>this['_processAttributeChanges'](_0x184504)),_0x343076['model']['document']['registerPostFixer'](_0x4e5fa3=>!_0x4e5fa3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4e5fa3)),_0x343076['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x343076['model']['document']['on']('change:data',(_0x1e8445,_0x474853)=>{if(!_0x474853['isLocal']||_0x474853['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x51a138=_0x343076['model']['document']['differ']['getChanges']();if(0x0==_0x51a138['length'])return;const _0x2e2625=[],_0x914604=_0x51a138['filter'](_0x42cc4f=>'attribute'==_0x42cc4f['type']),_0x5da600=_0x51a138['filter'](_0x499447=>'insert'==_0x499447['type']&&'$text'!=_0x499447['name']);for(const _0x246010 of _0x914604)this['_isRegisteredAttribute'](_0x246010['attributeKey'])&&_0x2e2625['push']({'key':_0x246010['attributeKey'],'newValue':_0x246010['attributeNewValue'],'oldValue':_0x246010['attributeOldValue'],'range':Lt(_0x246010['range'],_0x343076['model'])});for(const _0x1380a2 of _0x5da600){if('rename'!=_0x1380a2['action']&&'refresh'!=_0x1380a2['action'])continue;const _0x3c4a6f=Jt(_0x1380a2['position']['nodeAfter'],_0x343076['model']),_0x32e273=_0x1380a2['before'];'rename'==_0x1380a2['action']&&_0x2e2625['push']({'key':m,'newValue':_0x1380a2['name'],'oldValue':_0x32e273['name'],'range':_0x3c4a6f});for(const [_0x5636f3,_0x2241e1]of _0x32e273['attributes']){if(!this['_isRegisteredAttribute'](_0x5636f3))continue;const _0x57c9b4=_0x1380a2['attributes']['get'](_0x5636f3);_0x2241e1!==_0x57c9b4&&_0x2e2625['push']({'key':_0x5636f3,'newValue':_0x57c9b4,'oldValue':_0x2241e1,'range':_0x3c4a6f});}for(const [_0x4c9a5f,_0x14814c]of _0x1380a2['attributes'])this['_isRegisteredAttribute'](_0x4c9a5f)&&(_0x32e273['attributes']['has'](_0x4c9a5f)||_0x2e2625['push']({'key':_0x4c9a5f,'newValue':_0x14814c,'oldValue':null,'range':_0x3c4a6f}));}0x0!=_0x2e2625['length']&&_0x343076['model']['enqueueChange'](_0x474853,_0x287632=>{const _0x13b3cf=_0x440c38();for(const {range:_0x25bcad,key:_0x2e1d8e,oldValue:_0x1e3b4f,newValue:_0x358a18}of _0x2e2625)this['markAttributeChange'](_0x25bcad,_0x2e1d8e,_0x1e3b4f,_0x358a18,{'groupId':_0x13b3cf});this['_reduceExistingSuggestions'](_0x287632,_0x2e2625);});},{'priority':'lowest'}),_0x343076['model']['markers']['on']('update:suggestion',(_0x5eefd5,_0x1ff386,_0x260f88)=>{if(null==_0x260f88){const {id:_0xafa3b7}=this['_splitMarkerName'](_0x1ff386['name']),_0x36df3e=this['_suggestions']['get'](_0xafa3b7);_0x36df3e&&_0x36df3e['addMarkerName'](_0x1ff386['name']);}}),_0x343076['model']['document']['on']('change:data',()=>{const _0x4a130f=Array['from'](_0x343076['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1d734f=>'suggestion'===this['_splitMarkerName'](_0x1d734f['name'])['group']);if(0x0===_0x4a130f['length'])return;_0x4a130f['sort']((_0x5058a2,_0x3623c4)=>{const _0x39f573=_0x5058a2['data']['oldRange'],_0x36203f=_0x3623c4['data']['oldRange'];return null===_0x39f573&&null===_0x36203f?0x0:null===_0x39f573&&null!==_0x36203f?-0x1:null!==_0x39f573&&null===_0x36203f?0x1:_0x39f573['start']['isBefore'](_0x36203f['start'])?-0x1:0x1;});const _0x49885a=new Set(),_0xa8b4e8=new Set();for(const {name:_0xf095a3,data:_0x4a9293}of _0x4a130f){const {id:_0x158a7b}=this['_splitMarkerName'](_0xf095a3);if(null===_0x4a9293['oldRange']){const _0x569121=this['_handleNewSuggestionMarker'](_0xf095a3);_0xa8b4e8['add'](_0x569121);}else{const _0x19b85b=this['_suggestions']['get'](_0x158a7b);null!==_0x4a9293['newRange']||_0x19b85b['isInContent']?(_0x49885a['add'](_0x19b85b['head']),_0xa8b4e8['add'](_0x19b85b)):this['_removeSuggestion'](_0x19b85b);}}_0xa8b4e8['size']>0x0&&this['_refreshSuggestionsChain'](_0xa8b4e8);for(const _0x451584 of _0x49885a)this['fire']('suggestionChanged',_0x451584);}),_0x343076['model']['on']('applyOperation',(_0x5e2460,_0x4c579f)=>{const _0x722431=_0x4c579f[0x0];if(!this['_suggestions']['size'])return;if(!_0x722431['isDocumentOperation'])return;if(_0x722431['batch']['isUndo']||!_0x722431['batch']['isLocal'])return;let _0x222dc4,_0x3d0467;switch(_0x722431['type']){case'insert':_0x222dc4=_0x343076['model']['createPositionAt'](_0x722431['position']),_0x3d0467=_0x222dc4['getShiftedBy'](_0x722431['howMany']);break;case'split':_0x222dc4=_0x343076['model']['createPositionAt'](_0x722431['splitPosition']),_0x3d0467=_0x343076['model']['createPositionAt'](_0x722431['moveTargetPosition']);break;case'move':_0x222dc4=_0x343076['model']['createPositionAt'](_0x722431['targetPosition']),_0x3d0467=_0x222dc4['getShiftedBy'](_0x722431['howMany']);break;default:return;}const _0x16d257=_0x343076['model']['createRange'](_0x222dc4,_0x3d0467);_0x343076['model']['change'](()=>{for(const {suggestion:_0x486071,meta:_0x10853b}of this['_findSuggestions'](_0x16d257)){if(_0x486071['isMultiRange'])continue;if('formatInline'==_0x486071['type'])continue;const _0x3adb2a=this['_getAttributeKey'](_0x486071);if(_0x3adb2a&&this['_isBlockAttribute'](_0x3adb2a)&&'split'!=_0x722431['type'])continue;const _0x4558a3=_0x486071['data']&&_0x486071['data']['multipleBlocks'];('formatBlock'!=_0x486071['type']||'split'==_0x722431['type']&&!_0x4558a3)&&(_0x10853b['containsRangeInObject']||'insertion'==_0x486071['type']&&_0x10853b['isOwn']||_0x486071['getFirstRange']()['containsRange'](_0x16d257)&&this['_breakSuggestionMarker'](_0x486071,_0x222dc4,_0x3d0467));}});},{'priority':'lowest'}),_0x343076['model']['on']('deleteContent',(_0x159f99,_0x56a81c)=>{const _0x50821a=_0x56a81c[0x0],_0x24ed72=_0x56a81c[0x1];if(_0x24ed72&&_0x24ed72['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x50821a['isCollapsed'])return;const _0x54a42a=_0x343076['model']['schema'],{start:_0x530794,end:_0x2f13c1}=_0x50821a['getFirstRange'](),_0xbbe1d0=_0x530794['nodeAfter']&&_0x54a42a['isLimit'](_0x530794['nodeAfter'])?null:_0x54a42a['getNearestSelectionRange'](_0x530794,'forward'),_0x26b1e5=_0x2f13c1['nodeBefore']&&_0x54a42a['isLimit'](_0x2f13c1['nodeBefore'])?null:_0x54a42a['getNearestSelectionRange'](_0x2f13c1,'backward'),_0x567a44=_0x343076['model']['createRange'](_0xbbe1d0?_0xbbe1d0['start']:_0x530794,_0x26b1e5?_0x26b1e5['end']:_0x2f13c1);_0x343076['model']['change'](_0x4f676a=>{this['markDeletion'](_0x567a44);const _0x9349ae=_0x343076['model']['schema']['getNearestSelectionRange'](_0x567a44['start']);_0x50821a['is']('documentSelection')?_0x4f676a['setSelection'](_0x9349ae):_0x50821a['setTo'](_0x9349ae);}),_0x159f99['stop']();},{'priority':_0x18918d['normal']+0xa}),_0x343076['model']['on']('insertContent',(_0x4697cf,_0x13d826)=>{const _0x4f8ecc=_0x13d826[_0x13d826['length']-0x1];_0x4f8ecc&&_0x4f8ecc['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x343076['model']['change'](()=>{let _0x2de6f6=_0x343076['model']['insertContent'](_0x13d826[0x0],_0x13d826[0x1],_0x13d826[0x2],{'forceDefaultExecution':!0x0});if(!_0x2de6f6)return;_0x4697cf['return']=_0x2de6f6['clone']();const _0x55114a=_0x2de6f6['end']['nodeBefore'],_0x200d63=_0x343076['model']['schema'];_0x55114a&&_0x200d63['isBlock'](_0x55114a)&&!_0x200d63['isObject'](_0x55114a)&&(_0x2de6f6=_0x343076['model']['createRange'](_0x2de6f6['start'],_0x343076['model']['createPositionAt'](_0x55114a,'end'))),this['markInsertion'](_0x2de6f6);}),_0x4697cf['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5a889e=new O(_0x343076,this['_suggestions']);_0x343076['commands']['add']('acceptSuggestion',_0x5a889e),this['enableCommand']('acceptSuggestion');const _0x3618f9=new R(_0x343076,this['_suggestions']);_0x343076['commands']['add']('discardSuggestion',_0x3618f9),this['enableCommand']('discardSuggestion'),_0x343076['commands']['add']('acceptAllSuggestions',new x(_0x343076,_0x5a889e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x343076['commands']['add']('discardAllSuggestions',new x(_0x343076,_0x3618f9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x343076['commands']['add']('acceptSelectedSuggestions',new E(_0x343076,_0x5a889e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x343076['commands']['add']('discardSelectedSuggestions',new E(_0x343076,_0x3618f9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1e22d2=_0x343076['plugins']['get']('CommentsRepository');this['listenTo'](_0x1e22d2,'addComment',(_0x5e9625,{threadId:_0x4e053f})=>{const _0x1fefad=this['_suggestions']['get'](_0x4e053f);_0x1fefad&&_0x1fefad['commentThread']&&0x1===_0x1fefad['commentThread']['length']&&this['_updateSuggestionData'](_0x4e053f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1e22d2,'removeComment',(_0x4845e8,{threadId:_0x231fb3})=>{const _0x2404c0=this['_suggestions']['get'](_0x231fb3);_0x2404c0&&_0x2404c0['commentThread']&&!_0x2404c0['commentThread']['length']&&this['_updateSuggestionData'](_0x231fb3,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1869bd){const _0x4b7939=_0x2289b0([0x43,0x49,0x78,0x37,0x71,0x47,0x66,0x7a,0x77,0x32,0x6d,0x46,0x4f,0x63,0x56,0x6f,0x79,0x38,0x53,0x4c,0x5a,0x52,0x4b,0x4a,0x48,0x70,0x6a,0x64,0x59,0x51,0x45,0x67,0x33,0x31,0x6c,0x39,0x4e,0x36,0x44,0x68,0x41,0x6e,0x65,0x57,0x42,0x74,0x54,0x69,0x73,0x76,0x6b,0x61,0x34,0x50,0x62,0x58,0x55,0x72,0x4d,0x30,0x75,0x35]),_0x158089=0x6bdf2e09,_0x17fbe5=0x6bd87931^_0x158089,_0x521a06=window[_0x2289b0([0x44,0x61,0x74,0x65])][_0x2289b0([0x6e,0x6f,0x77])](),_0x24c170=_0x1869bd[_0x2289b0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2dcd8a=new window[(_0x2289b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc824b5=>{_0x24c170[_0x2289b0([0x6f,0x6e,0x63,0x65])](_0x2289b0([0x72,0x65,0x61,0x64,0x79]),_0xc824b5);}),_0x559dd8={[_0x2289b0([0x6b,0x74,0x79])]:_0x2289b0([0x45,0x43]),[_0x2289b0([0x75,0x73,0x65])]:_0x2289b0([0x73,0x69,0x67]),[_0x2289b0([0x63,0x72,0x76])]:_0x2289b0([0x50,0x2d,0x32,0x35,0x36]),[_0x2289b0([0x78])]:_0x2289b0([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2289b0([0x79])]:_0x2289b0([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2289b0([0x61,0x6c,0x67])]:_0x2289b0([0x45,0x53,0x32,0x35,0x36])},_0x4ada06=_0x24c170[_0x2289b0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2289b0([0x67,0x65,0x74])](_0x2289b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5947e6(){let _0x6abf47,_0x55c089=null,_0x1704a2=null;try{if(_0x4ada06==_0x2289b0([0x47,0x50,0x4c]))return _0x2289b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x6abf47=_0x23b411(),!_0x6abf47)return _0x2289b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x6abf47[_0x2289b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1704a2=_0x1ec243(_0x6abf47[_0x2289b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x6abf47[_0x2289b0([0x6a,0x74,0x69])])),await _0x570540()?_0x6430e7()?_0x2e35b4()?_0x2289b0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x168bbc()?(_0x6abf47[_0x2289b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2289b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x55c089=_0x4bf7bc(_0x2289b0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x6abf47[_0x2289b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2289b0([0x74,0x72,0x69,0x61,0x6c])&&(_0x55c089=_0x4bf7bc(_0x2289b0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x6abf47[_0x2289b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2289b0([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x55c089=_0x4bf7bc(_0x2289b0([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2bb9fd()):_0x2289b0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2289b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2289b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4bd862){return _0x2289b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e35b4(){const _0x5c5d43=[_0x2289b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2289b0([0x74,0x72,0x69,0x61,0x6c])][_0x2289b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6abf47[_0x2289b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x521a06/0x3e8:0xe10*_0x17fbe5;return _0x6abf47[_0x2289b0([0x65,0x78,0x70])]<_0x5c5d43;}function _0x6430e7(){const _0x13633c=_0x6abf47[_0x2289b0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x13633c&&(!!_0x13633c[_0x2289b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2289b0([0x2a]))||(!!_0x13633c[_0x2289b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2289b0([0x54,0x43]))||!(!_0x13633c[_0x2289b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2289b0([0x52,0x54,0x43]))||!_0x535341())));}function _0x168bbc(){const _0x1b6d7e=_0x6abf47[_0x2289b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b6d7e||0x0==_0x1b6d7e[_0x2289b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42747}=new URL(window[_0x2289b0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b6d7e[_0x2289b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42747))return!0x0;const _0x350359=_0x42747[_0x2289b0([0x73,0x70,0x6c,0x69,0x74])](_0x2289b0([0x2e]));return _0x1b6d7e[_0x2289b0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34e557=>_0x34e557[_0x2289b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2289b0([0x2a])))[_0x2289b0([0x6d,0x61,0x70])](_0x2cfb50=>_0x2cfb50[_0x2289b0([0x73,0x70,0x6c,0x69,0x74])](_0x2289b0([0x2e])))[_0x2289b0([0x73,0x6f,0x6d,0x65])](_0x554c3f=>_0x350359[_0x2289b0([0x65,0x76,0x65,0x72,0x79])]((_0x299ebd,_0x3f43ea)=>_0x554c3f[_0x3f43ea]===_0x299ebd||_0x554c3f[_0x3f43ea]===_0x2289b0([0x2a])));}function _0x2bb9fd(){return _0x55c089&&_0x1704a2?new window[(_0x2289b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c68ef,_0x4b9c24)=>{_0x55c089[_0x2289b0([0x74,0x68,0x65,0x6e])](_0x2c68ef,_0x4b9c24),_0x1704a2[_0x2289b0([0x74,0x68,0x65,0x6e])](_0x4515c3=>{_0x4515c3!=_0x2289b0([0x56,0x61,0x6c,0x69,0x64])&&_0x2c68ef(_0x4515c3);},_0x4b9c24);}):_0x55c089||_0x1704a2||_0x2289b0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1ec243(_0x46b810,_0x4f4fc0){return new window[(_0x2289b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2597b3=>{if(_0x485a04())return _0x2597b3(_0x2289b0([0x56,0x61,0x6c,0x69,0x64]));_0x5d9b55(),_0x24c170[_0x2289b0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2289b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf7696=!0x1;const _0x1b0e25=_0x440c38();function _0x396323(_0x459500){return!!_0x459500&&(typeof _0x459500===_0x2289b0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x459500===_0x2289b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x459500[_0x2289b0([0x74,0x68,0x65,0x6e])]===_0x2289b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x459500[_0x2289b0([0x63,0x61,0x74,0x63,0x68])]===_0x2289b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53554d(_0x575cdc){_0x1c709f(_0x575cdc)[_0x2289b0([0x74,0x68,0x65,0x6e])](_0x1c57ca=>{if(!_0x1c57ca||_0x1c57ca[_0x2289b0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2289b0([0x6f,0x6b]))return _0x2289b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2bdc20(_0x383ea2(_0x1b0e25+_0x4f4fc0))!=_0x1c57ca[_0x2289b0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2289b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2289b0([0x56,0x61,0x6c,0x69,0x64]);})[_0x2289b0([0x74,0x68,0x65,0x6e])](_0x16bb57=>(_0x564dec(),_0x16bb57),()=>{const _0x57ebb6=_0x17d65b();return null==_0x57ebb6?(_0x564dec(),_0x2289b0([0x56,0x61,0x6c,0x69,0x64])):_0x2289b0(_0x521a06-_0x57ebb6>(0x4fd3aa09^_0x158089)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2289b0([0x74,0x68,0x65,0x6e])](_0x2597b3)[_0x2289b0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2597b3(_0x2289b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c1907=0x6be9c089^_0x158089;function _0x564dec(){const _0x43c819=_0x2289b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2bdc20(_0x383ea2(_0x46b810)),_0x82e376=_0x375607(_0x2bdc20(window[_0x2289b0([0x4d,0x61,0x74,0x68])][_0x2289b0([0x63,0x65,0x69,0x6c])](_0x521a06/_0x2c1907)));window[_0x2289b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2289b0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43c819,_0x82e376);}function _0x17d65b(){const _0x55dc06=_0x2289b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2bdc20(_0x383ea2(_0x46b810)),_0x1126c6=window[_0x2289b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2289b0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55dc06);return _0x1126c6?window[_0x2289b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x375607(_0x1126c6),0x10)*_0x2c1907:null;}function _0x1c709f(_0x5b296e){return new window[(_0x2289b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x241849,_0x2e14d1)=>{_0x5b296e[_0x2289b0([0x74,0x68,0x65,0x6e])](_0x241849,_0x2e14d1),window[_0x2289b0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2e14d1,0x6bdefac9^_0x158089);});}}_0x24c170[_0x2289b0([0x6f,0x6e])](_0x2289b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x117204,_0x5a8227)=>{if(_0x5a8227[0x0]!=_0x46b810)return _0x2597b3(_0x2289b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a8227[0x1]={..._0x5a8227[0x1],[_0x2289b0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b0e25};},{[_0x2289b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2289b0([0x68,0x69,0x67,0x68])}),_0x24c170[_0x2289b0([0x6f,0x6e])](_0x2289b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43f0d4=>{_0x396323(_0x43f0d4[_0x2289b0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf7696=!0x0,_0x53554d(_0x43f0d4[_0x2289b0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2289b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2289b0([0x6c,0x6f,0x77])}),_0x2dcd8a[_0x2289b0([0x74,0x68,0x65,0x6e])](()=>{_0xf7696||_0x2597b3(_0x2289b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x485a04(){return _0x24c170[_0x2289b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2289b0([0x76,0x69,0x65,0x77])][_0x2289b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2289b0([0x61,0x75,0x74,0x6f]);}function _0x5d9b55(){_0x24c170[_0x2289b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2289b0([0x76,0x69,0x65,0x77])][_0x2289b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2289b0([0x61,0x75,0x74,0x6f]);}}function _0x4bf7bc(_0x524803){const _0x5b6a06=[new window[(_0x2289b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcb73cf=>setTimeout(_0xcb73cf,0x6bd610c5^_0x158089)),_0x2dcd8a[_0x2289b0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2289b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27f58d=>{let _0x79ed1a=0x0;_0x24c170[_0x2289b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2289b0([0x6f,0x6e])](_0x2289b0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3988c5,_0x2610ac)=>{_0x2610ac[0x0][_0x2289b0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x79ed1a++,_0x79ed1a==(0x6bdf2ff1^_0x158089)&&(_0x27f58d(),_0x3988c5[_0x2289b0([0x6f,0x66,0x66])]());});}))];return window[_0x2289b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2289b0([0x72,0x61,0x63,0x65])](_0x5b6a06)[_0x2289b0([0x74,0x68,0x65,0x6e])](()=>_0x524803);}async function _0x29236d(){await _0x2dcd8a,_0x24c170[_0x2289b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2289b0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x27e65a,_0x24c170[_0x2289b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2289b0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x27e65a,_0x24c170[_0x2289b0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2289b0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x535341(){return _0x6dd62d(_0x2289b0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3e58b6(_0x2289b0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2289b0([0x73,0x74,0x61,0x74,0x65])]==_0x2289b0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x44a499(_0x24650f){const _0x362ef6=_0x3a6f24();_0x24c170[_0x362ef6]=_0x2289b0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x24650f,_0x24650f!=_0x2289b0([0x56,0x61,0x6c,0x69,0x64])&&_0x29236d();}function _0x3a6f24(){const _0x1b4423=window[_0x2289b0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2289b0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2289b0([0x6e,0x6f,0x77])]())[_0x2289b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2289b0([0x2e]),'');let _0x948522=_0x2289b0([0x43]);for(let _0x2ad10c=0x0;_0x2ad10c<_0x1b4423[_0x2289b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ad10c+=0x2){let _0x1a8eea=window[_0x2289b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b4423[_0x2289b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ad10c,_0x2ad10c+0x2));_0x1a8eea>=_0x4b7939[_0x2289b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a8eea-=_0x4b7939[_0x2289b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x948522+=_0x4b7939[_0x1a8eea];}return _0x948522;}function _0x23b411(){const _0x1acd13=_0x4ada06[_0x2289b0([0x73,0x70,0x6c,0x69,0x74])](_0x2289b0([0x2e]));if(0x3!=_0x1acd13[_0x2289b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d050d(_0x1acd13[0x1]);function _0x2d050d(_0x9be4cd){const _0x52ee1e=_0x4450e2(_0x9be4cd);return _0x52ee1e&&_0x4fca9f()?_0x52ee1e:null;function _0x4fca9f(){const _0x3cd555=_0x52ee1e[_0x2289b0([0x6a,0x74,0x69])],_0x2f2812=window[_0x2289b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cd555[_0x2289b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3cd555[_0x2289b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x29f457={..._0x52ee1e,[_0x2289b0([0x6a,0x74,0x69])]:_0x3cd555[_0x2289b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3cd555[_0x2289b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x29f457[_0x2289b0([0x76,0x63])],_0x383ea2(_0x29f457)==_0x2f2812;}}}async function _0x570540(){let _0x3b7ed1=!0x0;try{const _0x20b42a=_0x4ada06[_0x2289b0([0x73,0x70,0x6c,0x69,0x74])](_0x2289b0([0x2e])),[_0x4769e9,_0x4c4398,_0x159e18]=_0x20b42a;return _0x4e9f79(_0x4769e9),await _0x168b3a(_0x4769e9,_0x4c4398,_0x159e18),_0x3b7ed1;}catch(_0x193943){return!0x1;}function _0x4e9f79(_0x1d8ef1){const _0x4cd645=_0x4450e2(_0x1d8ef1);_0x4cd645&&_0x4cd645[_0x2289b0([0x61,0x6c,0x67])]==_0x2289b0([0x45,0x53,0x32,0x35,0x36])||(_0x3b7ed1=!0x1);}async function _0x168b3a(_0x2d42d8,_0x3966a7,_0x8c6709){const _0x52898d=window[_0x2289b0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2289b0([0x66,0x72,0x6f,0x6d])](_0x42a579(_0x8c6709),_0x2771c=>_0x2771c[_0x2289b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x41f846=new window[(_0x2289b0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2289b0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2d42d8+_0x2289b0([0x2e])+_0x3966a7),_0x4b4c7d=window[_0x2289b0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2289b0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b4c7d)return;const _0x52743d=await _0x4b4c7d[_0x2289b0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2289b0([0x6a,0x77,0x6b]),_0x559dd8,{[_0x2289b0([0x6e,0x61,0x6d,0x65])]:_0x2289b0([0x45,0x43,0x44,0x53,0x41]),[_0x2289b0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2289b0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2289b0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b4c7d[_0x2289b0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2289b0([0x6e,0x61,0x6d,0x65])]:_0x2289b0([0x45,0x43,0x44,0x53,0x41]),[_0x2289b0([0x68,0x61,0x73,0x68])]:{[_0x2289b0([0x6e,0x61,0x6d,0x65])]:_0x2289b0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x52743d,_0x52898d,_0x41f846)||(_0x3b7ed1=!0x1);}}function _0x4450e2(_0x134410){return _0x134410[_0x2289b0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2289b0([0x65,0x79]))?JSON[_0x2289b0([0x70,0x61,0x72,0x73,0x65])](_0x42a579(_0x134410)):null;}function _0x42a579(_0x34eedc){return window[_0x2289b0([0x61,0x74,0x6f,0x62])](_0x34eedc[_0x2289b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2289b0([0x2b]))[_0x2289b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2289b0([0x2f])));}function _0x383ea2(_0x4ea697){let _0x502c23=0x1505;function _0x5b5f08(_0x178753){for(let _0xaba983=0x0;_0xaba983<_0x178753[_0x2289b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xaba983++){const _0x25185d=_0x178753[_0x2289b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xaba983);_0x502c23=(_0x502c23<<0x5)+_0x502c23+_0x25185d,_0x502c23&=_0x502c23;}}function _0x360fe0(_0x4ff6ef){Array[_0x2289b0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ff6ef)?_0x4ff6ef[_0x2289b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x360fe0):_0x4ff6ef&&typeof _0x4ff6ef==_0x2289b0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2289b0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ff6ef)[_0x2289b0([0x73,0x6f,0x72,0x74])]()[_0x2289b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x337e10,_0x1e290b])=>{_0x5b5f08(_0x337e10),_0x360fe0(_0x1e290b);}):_0x5b5f08(window[_0x2289b0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ff6ef));}return _0x360fe0(_0x4ea697),_0x502c23>>>0x0;}function _0x2bdc20(_0x1b9b89){return _0x1b9b89[_0x2289b0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2289b0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2289b0([0x30]));}function _0x375607(_0xc51ed0){return _0xc51ed0[_0x2289b0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2289b0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2289b0([0x6a,0x6f,0x69,0x6e])]('');}function _0x6dd62d(_0x57fdce){return _0x24c170[_0x2289b0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2289b0([0x68,0x61,0x73])](_0x57fdce);}function _0x3e58b6(_0x4b8241){return _0x24c170[_0x2289b0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2289b0([0x67,0x65,0x74])](_0x4b8241);}function _0x27e65a(){}function _0x2289b0(_0x439346){return _0x439346['map'](_0x13138f=>String['fromCharCode'](_0x13138f))['join']('');}_0x44a499(await _0x5947e6());}(this);}set['adapter'](_0x4364b7){if(this['_adapter'])throw new _0x27a22d('track-changes-adapter-already-set',this);this['_adapter']=_0x4364b7;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x21e4b4=!0x1,toJSON:_0x3687e5=!0x1}={}){const _0x201307=[];for(const _0x436f48 of this['_suggestions']['values']())_0x21e4b4&&!_0x436f48['isInContent']||_0x201307['push'](_0x436f48);return _0x3687e5?_0x201307['map'](_0x742882=>_0x742882['toJSON']()):_0x201307;}['getSuggestion'](_0x56fb47){const _0x2130ab=this['_suggestions']['get'](_0x56fb47);if(!_0x2130ab)throw new _0x27a22d('track-changes-suggestion-not-found',this);return _0x2130ab;}['hasSuggestion'](_0x3db9e1){return this['_suggestions']['has'](_0x3db9e1);}['addSuggestionData'](_0x509313){const {authorId:_0x3e0d04,id:_0x1bec4c,attributes:_0x300ffd}=_0x509313,[_0x5b59ab,_0x267209]=_0x509313['type']['split'](':'),_0x55e1cb=this['_suggestions']['get'](_0x1bec4c)||this['_createSuggestion'](_0x5b59ab,_0x267209,_0x1bec4c,_0x3e0d04,_0x300ffd);if(this['_addThreadToSuggestion'](_0x55e1cb),this['_checkSuggestionCorrectness'](_0x55e1cb,_0x5b59ab,_0x267209||null,_0x3e0d04),_0x55e1cb['createdAt']=_0x509313['createdAt'],_0x55e1cb['_isDataLoaded']=!0x0,_0x300ffd&&_0x300ffd['@external']){const _0x2fde2a=_0x300ffd['@external'],_0x5d9613=this['_getExternalAuthor'](_0x2fde2a['authorName']);_0x55e1cb['authoredAt']=_0x2fde2a['createdAt'],_0x55e1cb['author']=_0x5d9613,_0x55e1cb['isExternal']=!0x0;}else _0x55e1cb['authoredAt']=_0x509313['createdAt'];switch(_0x509313['data']&&(_0x55e1cb['data']=_0x509313['data']),_0x509313['attributes']&&(_0x55e1cb['attributes']=_0x509313['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x55e1cb['_saved']=!0x0),this['_suggestionState']['get'](_0x55e1cb)){case'notReady':this['_suggestionState']['set'](_0x55e1cb,'dataReady');break;case'markerReady':_0x55e1cb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x55e1cb])),this['_refreshSuggestionsChain'](new Set([_0x55e1cb])),this['_suggestionState']['set'](_0x55e1cb,'ready'),this['fire']('suggestionLoaded',_0x55e1cb)):this['_suggestionState']['set'](_0x55e1cb,'removed');}return _0x55e1cb;}['acceptSuggestion'](_0x32f3f9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4a471d of _0x32f3f9['getAllAdjacentSuggestions']())_0x4a471d['accept']();});});}['discardSuggestion'](_0x136519){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2fbe90 of _0x136519['getAllAdjacentSuggestions']())_0x2fbe90['discard']();});});}['enableCommand'](_0x566dd5,_0x284c57){const _0x499a6b=this['editor']['commands']['get'](_0x566dd5);if(!_0x499a6b)throw new _0x27a22d('track-changes-command-not-found',this,{'commandName':_0x566dd5});if(this['_enabledCommands']['has'](_0x499a6b))throw new _0x27a22d('track-changes-enable-command-twice',this,{'commandName':_0x566dd5});this['_enabledCommands']['add'](_0x499a6b),_0x284c57&&_0x499a6b['on']('execute',(_0x9b4586,_0x1ff8c1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1ff8c1['length']>0x0&&_0x1ff8c1[_0x1ff8c1['length']-0x1]&&_0x1ff8c1[_0x1ff8c1['length']-0x1]['forceDefaultExecution']?_0x1ff8c1['pop']():(_0x9b4586['return']=_0x284c57((..._0x48e3f2)=>_0x499a6b['execute'](..._0x48e3f2,{'forceDefaultExecution':!0x0}),..._0x1ff8c1),_0x9b4586['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3c2633){let _0xa0e21c,_0x51004a;const _0x47de95=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xa0e21c=_0x3c2633();}catch(_0x3818bc){_0x51004a=_0x3818bc;}return _0x47de95||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x51004a&&_0x27a22d['rethrowUnexpectedError'](_0x51004a,this),_0xa0e21c;}['markInsertion'](_0x42f1ee,_0x38b273=null,_0x1953b7={}){if(_0x42f1ee['isCollapsed'])return null;const _0x35421f=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x15c43f,meta:_0x186eb9}of this['_findSuggestions'](_0x42f1ee,'insertion'))if(_0x186eb9['isOwn']){if(!_0x186eb9['isNextTo']){if(_0x186eb9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x15c43f,_0x1953b7))continue;return _0x15c43f;}if(zt(_0x15c43f,_0x1953b7))return _0x15c43f;this['_breakSuggestionMarker'](_0x15c43f,_0x42f1ee['start'],_0x42f1ee['end']);break;}if(_0x38b273==_0x15c43f['subType']&&zt(_0x15c43f,_0x1953b7)){const _0x3c30f7=_0x15c43f['getFirstRange']();return _0x3c30f7['start']['isEqual'](_0x42f1ee['end'])?this['_setSuggestionRange'](_0x15c43f,this['_model']['createRange'](_0x42f1ee['start'],_0x3c30f7['end'])):this['_setSuggestionRange'](_0x15c43f,this['_model']['createRange'](_0x3c30f7['start'],_0x42f1ee['end'])),_0x15c43f;}}const _0x4a1c50=_0x440c38(),_0x1daccc=_0x35421f['id'],_0x3f195f=_0x38b273?'insertion:'+_0x38b273:'insertion',_0x1cfeff=this['_setSuggestionData']({'id':_0x4a1c50,'type':_0x3f195f,'createdAt':new Date(),'authorId':_0x1daccc,'attributes':_0x1953b7});return this['_addSuggestionMarker'](_0x3f195f,_0x4a1c50,_0x1daccc,_0x42f1ee),_0x1cfeff;}['markMultiRangeInsertion'](_0x1090b4,_0x42948c='multi',_0x1d05b3={}){const _0x4ddc17=this['editor']['plugins']['get']('Users')['me'],_0x39fbff=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x42948c,'join');for(const _0xfa0b15 of this['getSuggestions']())if(_0xfa0b15['author']['id']==_0x4ddc17['id']&&'insertion'==_0xfa0b15['type']&&_0xfa0b15['subType']==_0x42948c&&zt(_0xfa0b15,_0x1d05b3)&&(_0x39fbff(_0xfa0b15['getRanges'](),_0x1090b4)||_0x39fbff(_0x1090b4,_0xfa0b15['getRanges']()))){for(const _0x367937 of _0x1090b4)_0xfa0b15['addRange'](_0x367937);return _0xfa0b15;}for(const {suggestion:_0x42666b,meta:_0x4a38e8}of this['_findSuggestions'](_0x1090b4,'insertion')){if(!_0x4a38e8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4a38e8['containsRangeInObject'])continue;if(!zt(_0x42666b,_0x1d05b3))continue;let _0x275c95=!0x0;for(const _0xc396ee of _0x42666b['getRanges']())for(const _0x469b51 of _0x1090b4)if(!_0xc396ee['containsRange'](_0x469b51)){_0x275c95=!0x1;break;}if(_0x275c95)return _0x42666b;}const _0x2e5e98=_0x440c38(),_0x43e824=_0x4ddc17['id'],_0x482d15='insertion:'+_0x42948c,_0x4c6534=this['_setSuggestionData']({'id':_0x2e5e98,'type':_0x482d15,'createdAt':new Date(),'authorId':_0x43e824,'attributes':_0x1d05b3});for(const _0x1c643d of _0x1090b4)this['_addSuggestionMarker'](_0x482d15,_0x2e5e98,_0x43e824,_0x1c643d,u['getMultiRangeId']());return _0x4c6534;}['markInlineFormat'](_0x5db062,_0x142192,_0xcd6b80=null,_0x3d630e={}){if(_0xcd6b80=_0xcd6b80||Gt(_0x142192),_0x5db062['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xb5d3f8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xcd6b80,'accept');return this['forceDefaultExecution'](()=>_0xb5d3f8([_0x5db062],_0x142192,_0x3d630e)),null;}const _0x1e0e9d=this['editor']['plugins']['get']('Users')['me'],_0x1d514b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x100f7f,meta:_0x533add}of this['_findSuggestions'](_0x5db062,'insertion'))_0x533add['isOwn']&&!_0x533add['isInsideObject']&&_0x1d514b['push'](..._0x100f7f['getRanges']());}const _0x42eadb=function(_0x461527,_0x872392){const _0x3cd6fb=[];for(const _0x15ae0a of _0x872392){const _0x1e7465=_0x461527['getIntersection'](_0x15ae0a);_0x1e7465&&_0x3cd6fb['push'](_0x1e7465);}return _0x3cd6fb;}(_0x5db062,_0x1d514b),_0x5e7f2a=function(_0x3bc587,_0x2e2dac){const _0x4701d3=[_0x3bc587];for(const _0x23eab3 of _0x2e2dac){let _0x4f1e7d=0x0;for(;_0x4f1e7d<_0x4701d3['length'];){const _0x4d576f=_0x4701d3[_0x4f1e7d]['getDifference'](_0x23eab3);_0x4701d3['splice'](_0x4f1e7d,0x1,..._0x4d576f),_0x4f1e7d+=_0x4d576f['length'];}}return _0x4701d3;}(_0x5db062,_0x1d514b);_0x42eadb['length']&&this['_model']['change'](()=>{for(const _0x46031d of _0x42eadb){const _0x40686b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xcd6b80,'accept');this['forceDefaultExecution'](()=>_0x40686b([_0x46031d],_0x142192,_0x3d630e));}});for(const _0x4285bb of _0x5e7f2a){let _0x2e9fb7=null,_0x34587e=_0x4285bb['start'],_0x9dd939=_0x4285bb['end'];for(const {suggestion:_0x45de02,meta:_0x5d59e4}of this['_findSuggestions'](_0x4285bb,'formatInline')){if(!_0x5d59e4['isOwn'])continue;if(_0x45de02['subType']!=_0xcd6b80)continue;if(!zt(_0x45de02,_0x3d630e))continue;const _0x4bf6ce=_0x45de02['getFirstRange']();if(_0x4bf6ce['containsRange'](_0x4285bb,!0x0))return null;_0x34587e=_0x34587e['isBefore'](_0x4bf6ce['start'])?_0x34587e:_0x4bf6ce['start'],_0x9dd939=_0x9dd939['isAfter'](_0x4bf6ce['end'])?_0x9dd939:_0x4bf6ce['end'],_0x2e9fb7?_0x4bf6ce['start']['isBefore'](_0x2e9fb7['getFirstRange']()['start'])?(_0x2e9fb7['removeMarkers'](),_0x2e9fb7=_0x45de02):_0x45de02['removeMarkers']():_0x2e9fb7=_0x45de02;}const _0x27d2b2=this['_model']['createRange'](_0x34587e,_0x9dd939);if(_0x2e9fb7)this['_setSuggestionRange'](_0x2e9fb7,_0x27d2b2);else{const _0x37a45e=_0x440c38(),_0x96773f=_0x1e0e9d['id'];this['_setSuggestionData']({'id':_0x37a45e,'type':'formatInline:'+_0xcd6b80,'data':_0x142192,'createdAt':new Date(),'authorId':_0x96773f,'attributes':_0x3d630e}),this['_addSuggestionMarker']('formatInline:'+_0xcd6b80,_0x37a45e,_0x96773f,_0x27d2b2);}}return null;}['markBlockFormat'](_0x3d17ca,_0x384263,_0xe55c65=[],_0x2f4580=null,_0xea40ac={}){_0x384263['formatGroupId']||(_0x384263['formatGroupId']=_0x384263['commandName']),_0x384263['multipleBlocks']=_0x3d17ca['is']('range'),_0x2f4580=_0x2f4580||Gt(_0x384263);const _0x2ea3ae=_0xe55c65['map'](_0x486796=>Jt(_0x486796,this['_model'])),_0x21d551=_0x3d17ca['is']('range')?_0x3d17ca:Jt(_0x3d17ca,this['_model']);if('never'===this['_trackFormatChanges']){const _0x50b7e1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f4580,'accept');return this['forceDefaultExecution'](()=>_0x50b7e1([_0x21d551],_0x384263,_0xea40ac)),null;}_0x2ea3ae['push'](_0x21d551);let _0xdb781=!0x0;for(const _0x2ddcf4 of _0x2ea3ae)if(!this['_rangeIsInLocalUserInsertion'](_0x2ddcf4)){_0xdb781=!0x1;break;}if(_0xdb781&&'always'!==this['_trackFormatChanges']){const _0x21da09=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2f4580,'accept');return this['forceDefaultExecution'](()=>_0x21da09([_0x21d551],_0x384263,_0xea40ac)),null;}let _0x8c5251=null,_0x142ec7=_0x21d551['start'],_0x55896c=_0x21d551['end'];for(const {suggestion:_0x4434c6,meta:_0x93c003}of this['_findSuggestions'](_0x21d551,'formatBlock')){if(!_0x93c003['isOwn'])continue;if(_0x93c003['isNextTo']||_0x93c003['containsRangeInObject']||_0x93c003['isInsideObject'])continue;if(_0x4434c6['data']['formatGroupId']!=_0x384263['formatGroupId'])continue;if(!zt(_0x4434c6,_0xea40ac))continue;const _0x58e12d=_0x4434c6['getFirstRange']();if(_0x4434c6['subType']==_0x2f4580){if(_0x58e12d['containsRange'](_0x21d551,!0x0))return null;_0x142ec7=_0x142ec7['isBefore'](_0x58e12d['start'])?_0x142ec7:_0x58e12d['start'],_0x55896c=_0x55896c['isAfter'](_0x58e12d['end'])?_0x55896c:_0x58e12d['end'],_0x8c5251?_0x58e12d['start']['isBefore'](_0x8c5251['getFirstRange']()['start'])?(_0x8c5251['removeMarkers'](),_0x8c5251=_0x4434c6):_0x4434c6['removeMarkers']():_0x8c5251=_0x4434c6;}else{const _0x53baba=_0x21d551['getIntersection'](_0x58e12d);this['_cutOutSuggestionMarker'](_0x4434c6,_0x53baba);}}const _0x22c5b1=this['editor']['plugins']['get']('Users')['me'],_0x5dcf07=_0x440c38(),_0x1e8a2c=_0x22c5b1['id'];if(_0x8c5251)return this['_setSuggestionRange'](_0x8c5251,this['_model']['createRange'](_0x142ec7,_0x55896c)),_0x8c5251;{const _0x47055f=this['_setSuggestionData']({'id':_0x5dcf07,'type':'formatBlock:'+_0x2f4580,'data':_0x384263,'createdAt':new Date(),'authorId':_0x1e8a2c,'attributes':_0xea40ac});return this['_addSuggestionMarker']('formatBlock:'+_0x2f4580,_0x5dcf07,_0x1e8a2c,this['_model']['createRange'](_0x142ec7,_0x55896c)),_0x47055f;}}['markMultiRangeBlockFormat'](_0x2f0eb4,_0x51fb3e,_0x23004b=[],_0x4b2ffc=null,_0x5496fa={}){_0x51fb3e['formatGroupId']||(_0x51fb3e['formatGroupId']=_0x51fb3e['commandName']);const _0x795b40=_0x2f0eb4[0x0];_0x51fb3e['multipleBlocks']=_0x795b40['is']('range'),_0x4b2ffc=_0x4b2ffc||Gt(_0x51fb3e);const _0x2d4672=_0x23004b['map'](_0xa520b=>Jt(_0xa520b,this['_model'])),_0x43c47c=_0x795b40['is']('range')?_0x2f0eb4:_0x2f0eb4['map'](_0x24fca4=>Jt(_0x24fca4,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4c5ee4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b2ffc,'accept');return this['forceDefaultExecution'](()=>_0x4c5ee4(_0x43c47c,_0x51fb3e,_0x5496fa)),null;}_0x2d4672['push'](..._0x43c47c);let _0x3f0b0d=!0x0;for(const _0x50e77b of _0x2d4672)if(!this['_rangeIsInLocalUserInsertion'](_0x50e77b)){_0x3f0b0d=!0x1;break;}if(_0x3f0b0d&&'always'!==this['_trackFormatChanges']){const _0x4fea73=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b2ffc,'accept');return this['forceDefaultExecution'](()=>_0x4fea73(_0x43c47c,_0x51fb3e,_0x5496fa)),null;}const _0x3f3825=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d99c7 of this['getSuggestions']()){if(_0x4d99c7['author']['id']!=_0x3f3825['id'])continue;if('formatBlock'!=_0x4d99c7['type']||_0x4d99c7['data']['formatGroupId']!=_0x51fb3e['formatGroupId'])continue;if(!zt(_0x4d99c7,_0x5496fa))continue;const _0xe071f9=_0x4d99c7['subType']==_0x4b2ffc;for(let _0x11dd0b=0x0;_0x11dd0b<_0x43c47c['length'];_0x11dd0b++){const _0x7b98d8=_0x43c47c[_0x11dd0b];for(const _0xc9bc05 of _0x4d99c7['getMarkers']()){const _0x49eda2=_0xc9bc05['getRange']();if(_0x7b98d8['isEqual'](_0x49eda2)){_0xe071f9?(_0x43c47c['splice'](_0x11dd0b,0x1),_0x11dd0b--):_0x4d99c7['removeMarker'](_0xc9bc05['name']);break;}}}}if(0x0==_0x43c47c['length'])return null;const _0x30956a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b2ffc,'join');for(const _0x14256b of this['getSuggestions']())if(_0x14256b['author']['id']==_0x3f3825['id']&&'formatBlock'==_0x14256b['type']&&_0x14256b['data']['formatGroupId']==_0x51fb3e['formatGroupId']&&_0x14256b['subType']==_0x4b2ffc&&zt(_0x14256b,_0x5496fa)&&(_0x30956a(_0x14256b['getRanges'](),_0x43c47c)||_0x30956a(_0x43c47c,_0x14256b['getRanges']()))){for(const _0x163468 of _0x43c47c)_0x14256b['addRange'](_0x163468);return _0x14256b;}const _0x290902=_0x440c38(),_0x245685=_0x3f3825['id'],_0x4f7161='formatBlock:'+_0x4b2ffc,_0x5dcf06=this['_setSuggestionData']({'id':_0x290902,'type':_0x4f7161,'data':_0x51fb3e,'createdAt':new Date(),'authorId':_0x245685,'attributes':_0x5496fa});for(const _0x51feff of _0x43c47c)this['_addSuggestionMarker'](_0x4f7161,_0x290902,_0x245685,_0x51feff,u['getMultiRangeId']());return _0x5dcf06;}['markDeletion'](_0x8ac420,_0x18e46c=null,_0x2a51ec={}){if(_0x8ac420['isCollapsed'])return null;const _0x9d08af=this['editor']['plugins']['get']('Users')['me'],_0x591a4b=new _0x3fc55d(_0x8ac420['start'],_0x8ac420['end']);for(const {suggestion:_0x58734c,meta:_0xb4ff53}of this['_findSuggestions'](_0x591a4b,'insertion'))if(_0xb4ff53['isOwn']&&!_0xb4ff53['isNextTo']){if(_0x58734c['isMultiRange']){const _0x11ee41=_0x58734c['getRanges']()['filter'](_0x1af350=>'$graveyard'!=_0x1af350['root']['rootName']);_0x11ee41['every'](_0x33fa8e=>_0x591a4b['containsRange'](_0x33fa8e,!0x0))&&_0x58734c['discard']();if(_0x11ee41['some'](_0x2f7926=>_0x2f7926['containsRange'](_0x591a4b,!0x0))){const _0x694ba0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x18e46c,'accept');return this['forceDefaultExecution'](()=>_0x694ba0([_0x591a4b],null,_0x2a51ec)),null;}}else{const _0x7b6c39=_0x591a4b['getIntersection'](_0x58734c['getFirstRange']());null!==_0x7b6c39&&_0x58734c['_onDiscard']([_0x7b6c39],null,_0x2a51ec);}}if(_0x591a4b['detach'](),_0x591a4b['isCollapsed']||'$graveyard'==_0x591a4b['root']['rootName'])return null;let _0x12745e=null,_0x177456=_0x591a4b['start'],_0x330f73=_0x591a4b['end'];const _0x4d23df=this['_findSuggestions'](_0x591a4b,'deletion');for(const {suggestion:_0x2fe5b0,meta:_0x107501}of _0x4d23df){const _0x16f803=this['_model']['createRange'](_0x177456,_0x330f73);if(_0x107501['isOwn']&&(this['_mergeNestedSuggestions']||!_0x107501['containsRangeInObject']&&!_0x107501['isInsideObject'])){if(_0x2fe5b0['isMultiRange']){if(!zt(_0x2fe5b0,_0x2a51ec))continue;let _0x1df06c=!0x0;for(const _0x4ac61b of _0x2fe5b0['getRanges']()){if(_0x4ac61b['containsRange'](_0x16f803,!0x0))return _0x2fe5b0;_0x16f803['containsRange'](_0x4ac61b)||(_0x1df06c=!0x1);}_0x1df06c&&_0x2fe5b0['discard']();}else{const _0x88b3ae=_0x2fe5b0['getFirstRange']();if(_0x88b3ae['containsRange'](_0x16f803,!0x0))return _0x2fe5b0;if(!zt(_0x2fe5b0,_0x2a51ec)){_0x16f803['containsRange'](_0x88b3ae)?_0x2fe5b0['removeMarkers']():_0x88b3ae['containsPosition'](_0x177456)?_0x177456=_0x88b3ae['end']:_0x88b3ae['containsPosition'](_0x330f73)&&(_0x330f73=_0x88b3ae['start']);continue;}_0x177456=_0x177456['isBefore'](_0x88b3ae['start'])?_0x177456:_0x88b3ae['start'],_0x330f73=_0x330f73['isAfter'](_0x88b3ae['end'])?_0x330f73:_0x88b3ae['end'],_0x2a51ec=Object['assign']({},_0x2fe5b0['attributes']),_0x12745e?_0x88b3ae['start']['isBefore'](_0x12745e['getFirstRange']()['start'])?(_0x12745e['removeMarkers'](),_0x12745e=_0x2fe5b0):_0x2fe5b0['removeMarkers']():_0x12745e=_0x2fe5b0;}}}if(_0x12745e)return this['_setSuggestionRange'](_0x12745e,this['_model']['createRange'](_0x177456,_0x330f73)),_0x12745e;{const _0x23ee10=_0x440c38(),_0x218b96=this['_model']['createRange'](_0x177456,_0x330f73),_0x5cc5df=_0x9d08af['id'],_0x47ea8b=_0x18e46c?'deletion:'+_0x18e46c:'deletion',_0x17ba37=this['_setSuggestionData']({'id':_0x23ee10,'type':_0x47ea8b,'createdAt':new Date(),'authorId':_0x5cc5df,'attributes':_0x2a51ec});return this['_addSuggestionMarker'](_0x47ea8b,_0x23ee10,_0x5cc5df,_0x218b96),_0x17ba37;}}['markMultiRangeDeletion'](_0x46dcd4,_0x25aa97='multi',_0x224a5c={}){const _0x3879ee=this['editor']['plugins']['get']('Users')['me'],_0x5d91bf=_0x46dcd4['map'](_0x431c07=>new _0x3fc55d(_0x431c07['start'],_0x431c07['end'])),_0x3f2ab5=new Set();for(const {suggestion:_0x252790,meta:_0x21e5b0}of this['_findSuggestions'](_0x5d91bf,'insertion'))_0x21e5b0['isOwn']&&!_0x21e5b0['isNextTo']&&_0x3f2ab5['add'](_0x252790);for(const _0x2d835f of _0x3f2ab5)if(_0x2d835f['isMultiRange']){const _0x3916d3=_0x2d835f['getRanges']();(!_0x2d835f['attributes']||!_0x2d835f['attributes']['skipNestingCheck'])&&(_0x3916d3['every'](_0x5136a4=>_0x5d91bf['some'](_0xd5d624=>_0xd5d624['containsRange'](_0x5136a4,!0x0)))&&_0x2d835f['discard']());if(_0x5d91bf['every'](_0x4d716e=>_0x3916d3['some'](_0x18821c=>_0x18821c['containsRange'](_0x4d716e,!0x0)))){const _0x3cfa14=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25aa97,'accept');return this['forceDefaultExecution'](()=>_0x3cfa14(_0x46dcd4,null,_0x224a5c)),null;}}else{const _0x40d748=_0x2d835f['getFirstRange']();_0x5d91bf['some'](_0x3e620f=>_0x3e620f['containsRange'](_0x40d748,!0x0))&&_0x2d835f['discard']();if(_0x5d91bf['every'](_0x410b4e=>_0x40d748['containsRange'](_0x410b4e,!0x0))){const _0x4068cd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25aa97,'accept');return this['forceDefaultExecution'](()=>_0x4068cd(_0x5d91bf,null,_0x224a5c)),null;}}const _0x1e43b7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25aa97,'join');let _0x59b5d9=null;for(const _0x3cd12f of this['getSuggestions']())if(_0x3cd12f['author']['id']==_0x3879ee['id']&&_0x3cd12f['isInContent']&&'deletion'==_0x3cd12f['type']&&_0x3cd12f['subType']==_0x25aa97&&zt(_0x3cd12f,_0x224a5c)&&(_0x1e43b7(_0x3cd12f['getRanges'](),_0x5d91bf)||_0x1e43b7(_0x5d91bf,_0x3cd12f['getRanges']()))){if(_0x59b5d9){if(_0x3cd12f['commentThread']&&_0x3cd12f['commentThread']['length'])continue;for(const _0x199215 of _0x3cd12f['getRanges']())_0x59b5d9['isIntersectingWithRange'](_0x199215)||_0x59b5d9['addRange'](_0x199215);_0x3cd12f['removeMarkers']();}else{_0x59b5d9=_0x3cd12f;for(const _0x39bd21 of _0x5d91bf)_0x3cd12f['isIntersectingWithRange'](_0x39bd21)||_0x3cd12f['addRange'](_0x39bd21);}}if(_0x59b5d9)return _0x59b5d9;_0x3f2ab5['clear']();for(const {suggestion:_0x40a72c,meta:_0xafec19}of this['_findSuggestions'](_0x5d91bf,'deletion'))_0xafec19['isOwn']&&(this['_mergeNestedSuggestions']||!_0xafec19['containsRangeInObject']&&!_0xafec19['isInsideObject'])&&zt(_0x40a72c,_0x224a5c)&&_0x3f2ab5['add'](_0x40a72c);for(const _0x6d97c0 of _0x3f2ab5){const _0x47ee74=_0x6d97c0['getRanges']();if(!_0x224a5c||!_0x224a5c['skipNestingCheck']){if(_0x5d91bf['every'](_0x20547e=>_0x47ee74['some'](_0x4c06e8=>_0x4c06e8['containsRange'](_0x20547e,!0x0))))return _0x6d97c0;}(!_0x6d97c0['attributes']||!_0x6d97c0['attributes']['skipNestingCheck'])&&(_0x47ee74['every'](_0x24c25f=>_0x5d91bf['some'](_0x509a3a=>_0x509a3a['containsRange'](_0x24c25f,!0x0)))&&_0x6d97c0['discard']());}const _0x18824e=_0x440c38(),_0x4f35a7=_0x3879ee['id'],_0x212808='deletion:'+_0x25aa97,_0x490064=this['_setSuggestionData']({'id':_0x18824e,'type':_0x212808,'createdAt':new Date(),'authorId':_0x4f35a7,'attributes':_0x224a5c});for(const _0x457e22 of _0x5d91bf)_0x457e22['detach'](),_0x457e22['isCollapsed']||'$graveyard'==_0x457e22['root']['rootName']||this['_addSuggestionMarker'](_0x212808,_0x18824e,_0x4f35a7,_0x457e22,u['getMultiRangeId']());return _0x490064;}['markAttributeChange'](_0x320ce0,_0x5cc614,_0x34f032,_0xdcb0c,_0x1f0ac0){if(_0x320ce0['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4884d0=this['editor']['plugins']['get']('Users')['me']['id'],_0x32aaeb=Array['from'](this['_suggestions']['values']())['filter'](_0x542604=>'attribute'==_0x542604['type']&&_0x542604['data']['key']==_0x5cc614&&_0x542604['isIntersectingWithRange'](_0x320ce0));if('default'===this['_trackFormatChanges']){const _0x29d869=this['_findSuggestions'](_0x320ce0,'insertion')['filter'](({meta:_0x4250df})=>_0x4250df['isOwn']&&!_0x4250df['isInsideObject']&&!_0x4250df['isNextTo'])['map'](({suggestion:_0x5a21ce})=>_0x5a21ce);_0x32aaeb['unshift'](..._0x29d869);}const _0x4bbab2=new Map([[_0x320ce0,_0x34f032]]);for(const _0x20be4a of _0x32aaeb){const _0x3600c2='attribute'==_0x20be4a['type']?_0x20be4a['data']['oldValue']:void 0x0,_0x3c9cdb=_0x20be4a['getFirstRange'](),_0x39f314=Array['from'](_0x4bbab2['keys']())['find'](_0x109ef7=>_0x109ef7['isIntersecting'](_0x3c9cdb));if(!_0x39f314)continue;const _0x50cfec=_0x39f314['getDifference'](_0x3c9cdb);this['_isBlockAttribute'](_0x5cc614)&&'insertion'==_0x20be4a['type']&&0x0!=_0x50cfec['length']||(_0x4bbab2['delete'](_0x39f314),_0x50cfec['forEach'](_0x512b0c=>{_0x4bbab2['set'](_0x512b0c,_0x34f032);}),'insertion'!=_0x20be4a['type']&&_0x3600c2!=_0xdcb0c&&_0x4bbab2['set'](_0x39f314['getIntersection'](_0x3c9cdb),_0x3600c2));}const _0x1ce984=[];for(const [_0x3d8e23,_0x41db50]of _0x4bbab2){const _0x2561a5=_0x440c38(),_0x5434f3={'key':_0x5cc614,'oldValue':_0x41db50,'newValue':_0xdcb0c};_0x5cc614['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':_0x5cc614});const _0x41d373=('attribute:'+(_0x5cc614+'|'+Gt({'newValue':_0xdcb0c})))['substring'](0x0,0x3c),_0x493b67=this['_setSuggestionData']({'id':_0x2561a5,'type':_0x41d373,'data':_0x5434f3,'createdAt':new Date(),'authorId':_0x4884d0,'attributes':_0x1f0ac0});_0x1ce984['push'](_0x493b67),this['_addSuggestionMarker'](_0x41d373,_0x2561a5,_0x4884d0,_0x3d8e23);}return _0x1ce984;}['enableDefaultAttributesIntegration'](_0x484279){this['enableCommand'](_0x484279,(_0x2358a2,..._0x77d498)=>{this['_recordAttributeChanges'](()=>{_0x2358a2(..._0x77d498);});});}['registerBlockAttribute'](_0xc7accc){this['_blockAttributeKeys']['add'](_0xc7accc);}['registerInlineAttribute'](_0x235fbd){this['_inlineAttributeKeys']['add'](_0x235fbd);}['_getAttributeKey'](_0x3aeec6){return'attribute'==_0x3aeec6['type']?_0x3aeec6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3fdada,_0x5bf427){const _0x4f5042=_0x3fdada['getFirstMarker']();this['_model']['change'](_0x1bc4d0=>{_0x1bc4d0['updateMarker'](_0x4f5042,{'range':_0x5bf427});});}['_addThreadToSuggestion'](_0x4b4e23){const _0x35d657=_0x4b4e23['id'],_0x317d0d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x35d657)||this['_commentsRepository']['addCommentThread']({'channelId':_0x317d0d,'threadId':_0x35d657,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x556381=this['_commentsRepository']['getCommentThread'](_0x35d657);_0x556381['unbind']('isRemovable'),_0x556381['isRemovable']=!0x1,_0x4b4e23['commentThread']=_0x556381;}['_checkSuggestionCorrectness'](_0x1fdc21,_0x4ec12c,_0x406d51,_0x18181d){if(_0x1fdc21['type']!=_0x4ec12c||_0x1fdc21['subType']!=_0x406d51||_0x1fdc21['creator']['id']!=_0x18181d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x27a22d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1a5fd9,_0x3f703f){const _0x484fbd=_0x1a5fd9['getFirstRange']();if(_0x3f703f['isEqual'](_0x484fbd))_0x1a5fd9['removeMarkers']();else{if(_0x484fbd['containsRange'](_0x3f703f)){const _0x280625=this['_model']['createPositionAt'](_0x3f703f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a5fd9,this['_model']['createRange'](_0x484fbd['start'],_0x280625));const _0x378f2a=_0x440c38(),_0x528ab8=_0x1a5fd9['creator']['id'],_0x343bc7=_0x1a5fd9['type']+':'+_0x1a5fd9['subType'];this['_setSuggestionData']({'id':_0x378f2a,'type':_0x343bc7,'createdAt':new Date(),'authorId':_0x528ab8,'data':_0x1a5fd9['data'],'attributes':_0x1a5fd9['attributes']});const _0x59bb9e=this['_model']['createPositionAt'](_0x3f703f['end']['parent'],'after'),_0x1bd8f3=this['_model']['createRange'](_0x59bb9e,_0x484fbd['end']);this['_addSuggestionMarker'](_0x343bc7,_0x378f2a,_0x528ab8,_0x1bd8f3);}else{if(_0x484fbd['containsPosition'](_0x3f703f['start'])){const _0x190f7d=this['_model']['createPositionAt'](_0x3f703f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a5fd9,this['_model']['createRange'](_0x484fbd['start'],_0x190f7d));}else{const _0x110d3e=this['_model']['createPositionAt'](_0x3f703f['end']['parent'],'after');this['_setSuggestionRange'](_0x1a5fd9,this['_model']['createRange'](_0x110d3e,_0x484fbd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xd9cbca){for(const {suggestion:_0x1dfed5,meta:_0x5be55f}of this['_findSuggestions'](_0xd9cbca,'insertion')){if(!_0x5be55f['isOwn'])continue;const _0x4995ca=_0x1dfed5['getRanges']();for(const _0x5b5e2a of _0x4995ca)if(!_0xd9cbca['getDifference'](_0x5b5e2a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4c053b){const _0x4e732c=this['editor']['plugins']['get']('Users')['getUser'](_0x4c053b);if(!_0x4e732c)throw new _0x27a22d('track-changes-user-not-found',this);return _0x4e732c;}['_getExternalAuthor'](_0x227b84){const _0x3a91ce=this['editor']['plugins']['get']('Users'),_0x21f851=_0x5d9112('external:'+_0x227b84),_0x3e315a=_0x3a91ce['getUser'](_0x21f851);return _0x3e315a||_0x3a91ce['addUser']({'id':_0x21f851,'name':_0x227b84});}['_createSuggestion'](_0x497c26,_0x4557bb,_0xcffa50,_0x43dbe6,_0x5b46d0){const _0x7a0919=this['_getAuthorFromId'](_0x43dbe6),_0x1c724=this['_suggestionFactory']['buildSuggestion'](_0x497c26,_0x4557bb,_0xcffa50,_0x7a0919,_0x5b46d0,_0x1b838a=>{this['_updateSuggestionData'](_0xcffa50,{'attributes':_0x1b838a});const _0x37b8e7=this['getSuggestion'](_0xcffa50);this['_joinWithAdjacentSuggestions'](new Set([_0x37b8e7])),this['_refreshSuggestionsChain'](new Set([_0x37b8e7]));});return this['listenTo'](_0x1c724,'accept',()=>{this['_updateSuggestionData'](_0xcffa50,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1c724,'discard',()=>{this['_updateSuggestionData'](_0xcffa50,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xcffa50,_0x1c724),this['_suggestionState']['set'](_0x1c724,'notReady'),_0x1c724;}['_splitMarkerName'](_0x11a5ec){const _0x3bb5ae=_0x11a5ec['split'](':');return{'group':_0x3bb5ae[0x0],'type':_0x3bb5ae[0x1],'subType':_0x3bb5ae['length']>=0x5?_0x3bb5ae[0x2]:null,'id':_0x3bb5ae['length']<0x5?_0x3bb5ae[0x2]:_0x3bb5ae[0x3],'authorId':_0x3bb5ae['length']<0x5?_0x3bb5ae[0x3]:_0x3bb5ae[0x4],'markerCount':0x6==_0x3bb5ae['length']?_0x3bb5ae[0x5]:null};}['_breakSuggestionMarker'](_0x3f2bfc,_0x482cf1,_0x2a2bb3){const _0x191ed5=_0x3f2bfc['getFirstRange'](),_0x1ee1cc=_0x191ed5['start'],_0x2f6ed8=_0x191ed5['end'];this['_setSuggestionRange'](_0x3f2bfc,this['_model']['createRange'](_0x1ee1cc,_0x482cf1));const _0x5ddf89=_0x440c38(),_0x2bf6ab=_0x3f2bfc['creator']['id'],_0xb278fa=_0x3f2bfc['type']+(_0x3f2bfc['subType']?':'+_0x3f2bfc['subType']:'');this['_setSuggestionData']({'id':_0x5ddf89,'type':_0xb278fa,'createdAt':new Date(),'authorId':_0x2bf6ab,'originalSuggestionId':_0x3f2bfc['id'],'attributes':_0x3f2bfc['attributes'],'data':_0x3f2bfc['data']});const _0x6fd338=this['_getAttributeKey'](_0x3f2bfc);('formatBlock'==_0x3f2bfc['type']||_0x6fd338&&this['_isBlockAttribute'](_0x6fd338))&&(_0x2a2bb3=this['_model']['createPositionBefore'](_0x2a2bb3['parent'])),this['_addSuggestionMarker'](_0xb278fa,_0x5ddf89,_0x2bf6ab,this['_model']['createRange'](_0x2a2bb3,_0x2f6ed8));}['_findSuggestions'](_0x5c50a8,_0x316f20=null){const _0x1f12f5=[],_0x176444=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5c50a8)||(_0x5c50a8=[_0x5c50a8]);for(const _0x351cf7 of this['getSuggestions']()){if(!_0x351cf7['isInContent'])continue;if(_0x316f20&&_0x351cf7['type']!=_0x316f20)continue;let _0x41a681=!0x1;for(const _0xa6153d of _0x351cf7['getRanges']()){for(const _0x50ac61 of _0x5c50a8){const _0x1c5fd6=_0x50ac61['start']['isEqual'](_0xa6153d['end'])||_0x50ac61['end']['isEqual'](_0xa6153d['start']);if(_0x1c5fd6||_0x50ac61['getIntersection'](_0xa6153d)){const _0x3ca896=_0x50ac61['containsRange'](_0xa6153d)&&Ut(this['_model']['schema'],_0xa6153d['start'],_0x50ac61),_0x5185e2=_0xa6153d['containsRange'](_0x50ac61)&&Ut(this['_model']['schema'],_0x50ac61['start'],_0xa6153d);_0x1f12f5['push']({'suggestion':_0x351cf7,'meta':{'isOwn':_0x176444==_0x351cf7['author'],'isNextTo':_0x1c5fd6,'isInsideObject':_0x3ca896,'containsRangeInObject':_0x5185e2}}),_0x41a681=!0x0;break;}}if(_0x41a681)break;}}return _0x1f12f5;}['_addSuggestionMarker'](_0x268c73,_0x515b2b,_0x565cf6,_0x48d5cb,_0x2ab362){this['_model']['change'](_0x55af16=>{let _0x479968='suggestion:'+_0x268c73+':'+_0x515b2b+':'+_0x565cf6;_0x2ab362&&(_0x479968=_0x479968+':'+_0x2ab362),_0x55af16['addMarker'](_0x479968,{'range':_0x48d5cb,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x48b0e1){const _0x2ae837=_0x48b0e1['previous'],_0x541343=_0x48b0e1['next'];_0x48b0e1['previous']=null,_0x48b0e1['next']=null,null!=_0x2ae837&&_0x2ae837['next']==_0x48b0e1&&(_0x2ae837['next']=_0x541343),null!=_0x541343&&_0x541343['previous']==_0x48b0e1&&(_0x541343['previous']=_0x2ae837),'ready'==this['_suggestionState']['get'](_0x48b0e1)&&(this['_suggestionState']['set'](_0x48b0e1,'removed'),this['fire']('suggestionUnloaded',_0x48b0e1,_0x2ae837,_0x541343));}['_setSuggestionData'](_0x29fe35){const _0x424c43=_0x29fe35['id'],_0x120271=this['addSuggestionData'](_0x29fe35);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1d0069=this['editor']['plugins']['get']('PendingActions'),_0xb9f7e1=_0x120271['hasComments'],_0x2fe946=_0x120271['subType']?_0x120271['type']+':'+_0x120271['subType']:_0x120271['type'],_0x44edd2=this['editor']['locale'],_0x29f8bf=_0x1d0069['add'](o(_0x44edd2,'PENDING_ACTION_SUGGESTION')),_0x4b98c2={'id':_0x424c43,'type':_0x2fe946,'hasComments':_0xb9f7e1,'data':_0x29fe35['data']||null,'originalSuggestionId':_0x29fe35['originalSuggestionId']||null,'attributes':_0x120271['attributes']};this['_adapter']['addSuggestion'](_0x4b98c2)['then'](_0x1340d6=>{_0x120271['_saved']=!0x0,_0x1d0069['remove'](_0x29f8bf),_0x1340d6&&_0x1340d6['createdAt']&&(this['_suggestions']['get'](_0x424c43)['createdAt']=_0x1340d6['createdAt']);})['catch'](_0x4d6805=>{throw _0x5de6f1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x120271['discard']();}),_0x120271['stopListening'](),this['_suggestions']['delete'](_0x120271['id']),this['_suggestionState']['delete'](_0x120271),_0x4d6805;});}return _0x120271;}['_isBlockAttribute'](_0x59cf7a){return this['_blockAttributeKeys']['has'](_0x59cf7a);}['_updateSuggestionData'](_0x43e69e,_0xf5e5a){const _0x26c204=this['editor']['plugins']['get']('PendingActions'),_0x22e8af=this['getSuggestion'](_0x43e69e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x22e8af['_saved']){const _0xb9795e=_0x26c204['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x43e69e,_0xf5e5a)['then'](()=>{_0x26c204['remove'](_0xb9795e);});}else _0x22e8af['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x43e69e,_0xf5e5a);});}}['_getSuggestionData'](_0x5d1521){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x27a22d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5d1521);}['_handleNewSuggestionMarker'](_0x3cb614){const {id:_0x487e0b,type:_0x4dfbb8,subType:_0x13c111,authorId:_0x1815e1}=this['_splitMarkerName'](_0x3cb614),_0x537062=this['_suggestions']['get'](_0x487e0b)||this['_createSuggestion'](_0x4dfbb8,_0x13c111,_0x487e0b,_0x1815e1,{});switch(this['_checkSuggestionCorrectness'](_0x537062,_0x4dfbb8,_0x13c111,_0x1815e1),this['_suggestionState']['get'](_0x537062)){case'notReady':this['_getSuggestionData'](_0x487e0b)['then'](_0x2c5e80=>{let _0x43d0f7=Promise['resolve']();_0x2c5e80['hasComments']&&(_0x43d0f7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x487e0b})),_0x43d0f7['then'](()=>{this['addSuggestionData'](_0x2c5e80)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x537062,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x487e0b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x537062,'ready'),this['fire']('suggestionLoaded',_0x537062);break;case'ready':this['fire']('suggestionChanged',_0x537062);}return _0x537062['addMarkerName'](_0x3cb614),_0x537062;}['_refreshSuggestionsChain'](_0xf89ab1){const _0x116281=Array['from'](_0xf89ab1),_0xce210d=_0x116281['filter'](_0x2fde7c=>'attribute'==_0x2fde7c['type']);this['_refreshAttributeSuggestionsChain'](_0xce210d);const _0x43e6da=_0x116281['filter'](_0x985e7a=>!_0x985e7a['isMultiRange']&&'attribute'!=_0x985e7a['type']),_0x63e9ed=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x107b77=>!_0x107b77['isMultiRange']&&'attribute'!=_0x107b77['type']),_0x149249=_0x63e9ed['filter'](_0x3ed753=>!_0xf89ab1['has'](_0x3ed753)),_0x3970e7=new Map(_0x63e9ed['map'](_0x35dbb7=>[_0x35dbb7,this['_suggestionFactory']['getSuggestionCallback'](_0x35dbb7['type'],_0x35dbb7['subType'],'chain')])),_0x493bee=new Map(_0x63e9ed['map'](_0x44cd89=>[_0x44cd89,_0x44cd89['getFirstRange']()])),_0x5ef77d=new Set(),_0x107a1f=new Set();for(let _0x197e3d=0x0;_0x197e3d<_0x43e6da['length'];_0x197e3d++)_0x147cb0(_0x43e6da[_0x197e3d],_0x43e6da,_0x197e3d+0x1);for(let _0x223dba=0x0;_0x223dba<_0x43e6da['length'];_0x223dba++)_0x147cb0(_0x43e6da[_0x223dba],_0x149249,0x0);const _0x51ef72=new Set();for(let _0x596f00=0x0;_0x596f00<_0x43e6da['length'];_0x596f00++){const _0x28cd03=_0x43e6da[_0x596f00];!_0x107a1f['has'](_0x28cd03)&&_0x28cd03['previous']&&(_0x51ef72['add'](_0x28cd03['previous']),_0x28cd03['previous']['next']===_0x28cd03&&(_0x28cd03['previous']['next']=null),_0x28cd03['previous']=null),!_0x5ef77d['has'](_0x28cd03)&&_0x28cd03['next']&&(_0x51ef72['add'](_0x28cd03['next']),_0x28cd03['next']['previous']===_0x28cd03&&(_0x28cd03['next']['previous']=null),_0x28cd03['next']=null);}function _0x147cb0(_0x48a060,_0x330ae9,_0x37baa6){for(let _0x115dc5=_0x37baa6;_0x115dc5<_0x330ae9['length'];_0x115dc5++){const _0x55242f=_0x58042f(_0x48a060,_0x330ae9[_0x115dc5]);_0x55242f&&(_0x55242f[0x0]['next']=_0x55242f[0x1],_0x55242f[0x1]['previous']=_0x55242f[0x0],_0x5ef77d['add'](_0x55242f[0x0]),_0x107a1f['add'](_0x55242f[0x1]));}}function _0x58042f(_0x19e02c,_0x35dbbf){if(_0x19e02c['author']['id']!==_0x35dbbf['author']['id'])return null;const _0x506e84=_0x3970e7['get'](_0x19e02c)(_0x19e02c,_0x35dbbf,_0x493bee['get'](_0x19e02c),_0x493bee['get'](_0x35dbbf));if(!_0x506e84)return null;return _0x3970e7['get'](_0x35dbbf)(_0x19e02c,_0x35dbbf,_0x493bee['get'](_0x19e02c),_0x493bee['get'](_0x35dbbf))?_0x506e84[0x1]['commentThread']&&_0x506e84[0x1]['commentThread']['length']?null:_0x506e84:null;}_0x51ef72['size']&&this['_refreshSuggestionsChain'](_0x51ef72);}['_refreshAttributeSuggestionsChain'](_0x42508b){if(0x0==_0x42508b['length'])return;const _0x5d1147=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b977a=>'attribute'==_0x2b977a['type']&&_0x2b977a['_isDataLoaded']),_0x153368=[],_0xfde752=new Map();for(const _0x57f8d3 of _0x5d1147){const _0x54f98d=_0x5d9112(_0x57f8d3['attributes']);_0xfde752['has'](_0x54f98d)||(_0xfde752['set'](_0x54f98d,_0x153368['length']),_0x153368['push']([]));const _0x297387=_0xfde752['get'](_0x54f98d);_0x153368[_0x297387]['push'](_0x57f8d3);}!(function(){_0x153368['sort']((_0x34e6ed,_0x22b6d3)=>{const _0x3cd172=_0x34e6ed[0x0]['createdAt'],_0x206b02=_0x22b6d3[0x0]['createdAt'];return _0x3cd172==_0x206b02?_0x34e6ed[0x0]['attributes']['groupId']<_0x22b6d3[0x0]['attributes']['groupId']?-0x1:0x1:_0x3cd172<_0x206b02?-0x1:0x1;});for(const _0x1521cd of _0x153368)_0x1521cd['sort']((_0x1ac8a8,_0x4868ae)=>_0x1ac8a8['id']<_0x4868ae['id']?-0x1:0x1);}());for(let _0x466bd3=0x0;_0x466bd3<_0x153368['length'];_0x466bd3++){if(0x0==_0x153368[_0x466bd3]['length'])continue;const _0x54938f=[];for(let _0x16dda3=_0x466bd3+0x1;_0x16dda3<_0x153368['length'];_0x16dda3++)0x0!=_0x153368[_0x16dda3]['length']&&_0x51b5ff(_0x153368[_0x466bd3],_0x153368[_0x16dda3])&&_0x54938f['push'](_0x16dda3);for(const _0x5ef14b of _0x54938f)_0x153368[_0x466bd3]=_0x153368[_0x466bd3]['concat'](_0x153368[_0x5ef14b]),_0x153368[_0x5ef14b]=[];}for(const _0x14816b of _0x153368)for(let _0x563732=0x0;_0x563732<_0x14816b['length'];_0x563732++){const _0x129de5=_0x14816b[_0x563732+0x1]||null;_0x14816b[_0x563732]['next']!==_0x129de5&&(_0x14816b[_0x563732]['next']=_0x129de5);}for(const _0x2a23f8 of _0x153368)for(let _0x51999b=0x0;_0x51999b<_0x2a23f8['length'];_0x51999b++){const _0x53d93d=_0x2a23f8[_0x51999b-0x1]||null;_0x2a23f8[_0x51999b]['previous']!==_0x53d93d&&(_0x2a23f8[_0x51999b]['previous']=_0x53d93d);}function _0x51b5ff(_0x325e92,_0x1a537f){if(_0x325e92[0x0]['attributes']['groupId']!==_0x1a537f[0x0]['attributes']['groupId']&&_0x325e92[0x0]['author']!==_0x1a537f[0x0]['author'])return!0x1;if(!function(_0x1061a5,_0x4e91cf){if(!_0x1061a5['hasComments']&&!_0x4e91cf['hasComments'])return!0x0;if(_0x1061a5['hasComments']&&_0x4e91cf['hasComments'])return!0x1;if(_0x1061a5['hasComments']&&_0x4e91cf['createdAt']<_0x1061a5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4e91cf['hasComments']&&_0x1061a5['createdAt']<_0x4e91cf['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x325e92[0x0],_0x1a537f[0x0]))return!0x1;const _0x6312a6=xt(_0x325e92[0x0]['attributes'],'groupId'),_0x52f971=xt(_0x1a537f[0x0]['attributes'],'groupId');if(!_0x4c869e(_0x6312a6,_0x52f971))return!0x1;return!!_0x325e92['every'](_0x9ceffe=>_0x1a537f['some'](_0x234132=>_0x9ceffe['getFirstRange']()['isEqual'](_0x234132['getFirstRange']())))&&_0x1a537f['every'](_0x4b4ea7=>_0x325e92['some'](_0x17536e=>_0x4b4ea7['getFirstRange']()['isEqual'](_0x17536e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x25523a){const _0x3959e4=Array['from'](_0x25523a),_0x5cbf68=this['getSuggestions']({'skipNotAttached':!0x0}),_0x800d11=_0x5cbf68['filter'](_0x216f45=>!_0x25523a['has'](_0x216f45)),_0x2274e8=new Map(_0x3959e4['map'](_0x2b46ea=>[_0x2b46ea,this['_suggestionFactory']['getSuggestionCallback'](_0x2b46ea['type'],_0x2b46ea['subType'],'join')])),_0x30c61c=new Map(_0x5cbf68['map'](_0x415f34=>[_0x415f34,_0x415f34['getRanges']()]));for(let _0x42da58=0x0;_0x42da58<_0x3959e4['length'];_0x42da58++){if(_0x265d8e(this,_0x3959e4[_0x42da58],_0x3959e4,_0x42da58+0x1))return!0x0;}for(let _0xe91fc=0x0;_0xe91fc<_0x3959e4['length'];_0xe91fc++){if(_0x265d8e(this,_0x3959e4[_0xe91fc],_0x800d11,0x0))return!0x0;}return!0x1;function _0x265d8e(_0x420e4a,_0x441826,_0x37471f,_0x32d08a){for(let _0x2b7c00=_0x32d08a;_0x2b7c00<_0x37471f['length'];_0x2b7c00++){const _0x1477c3=_0x37471f[_0x2b7c00];if(_0x1477c3['type']!==_0x441826['type']||_0x1477c3['author']['id']!==_0x441826['author']['id']||_0x1477c3['subType']!==_0x441826['subType'])continue;if(!qt(_0x441826,_0x1477c3))continue;if('attribute'==_0x441826['type']&&_0x441826['data']['oldValue']!=_0x1477c3['data']['oldValue'])continue;if('attribute'==_0x441826['type']&&_0x420e4a['_isBlockAttribute'](_0x441826['data']['key']))continue;if('formatBlock'==_0x441826['type']){const _0x577956=_0x420e4a['editor']['model'],_0x3dc091=_0x441826['getContainedElement']();if(_0x3dc091&&(_0x577956['schema']['isObject'](_0x3dc091)||_0x577956['schema']['isLimit'](_0x3dc091)))continue;}const _0x373836=_0x2274e8['get'](_0x441826),_0x2e929f=_0x30c61c['get'](_0x441826),_0x3ce633=_0x30c61c['get'](_0x1477c3),_0x31ff87=_0x441826['commentThread']&&_0x441826['commentThread']['length'],_0x51804b=_0x1477c3['commentThread']&&_0x1477c3['commentThread']['length'];if(!_0x31ff87&&_0x373836(_0x3ce633,_0x2e929f))return _0x420e4a['_joinSuggestions'](_0x1477c3,_0x441826),_0x30c61c['delete'](_0x441826),!0x0;if(!_0x51804b&&_0x373836(_0x2e929f,_0x3ce633))return _0x420e4a['_joinSuggestions'](_0x441826,_0x1477c3),_0x30c61c['delete'](_0x1477c3),!0x0;}return!0x1;}}['_joinSuggestions'](_0xf6d7cf,_0x14b350){if(_0xf6d7cf['isMultiRange']){for(const _0x458f5e of _0x14b350['getRanges']())_0xf6d7cf['addRange'](_0x458f5e);}else{const _0x3e91c4=_0x14b350['getFirstRange']()['end'];this['_setSuggestionRange'](_0xf6d7cf,this['_model']['createRange'](_0xf6d7cf['getFirstRange']()['start'],_0x3e91c4));}_0x14b350['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4e3d42,_0x1d9114,_0x2dfa29){const _0x4df49a=_0x4e3d42['startsWith']('format')||_0x4e3d42['startsWith']('attribute')?'FORMATTING':_0x4e3d42['toUpperCase']();return o(this['editor']['locale'],_0x1d9114+'_'+_0x4df49a+'_SUGGESTION_ANNOUNCEMENT',_0x2dfa29);}['_initAriaMarkerChangeAnnouncements'](){const _0xe32338=this['editor'];if(!_0xe32338['ui'])return;const {ariaLiveAnnouncer:_0x4cca89}=_0xe32338['ui'];_0x3d2c82(this['_model'],({left:_0x2a8bfb,entered:_0x245eb7})=>{for(const _0x405cb9 of _0x2a8bfb){const {group:_0x4d940d,type:_0x2aec56}=this['_splitMarkerName'](_0x405cb9['name']);if('suggestion'===_0x4d940d){_0x4cca89['announce'](this['_getMarkerAnnouncementText'](_0x2aec56,'LEAVE'));break;}}for(const _0xe3d2f2 of _0x245eb7){const {group:_0x1fc572,type:_0x54b7c7}=this['_splitMarkerName'](_0xe3d2f2['name']);if('suggestion'===_0x1fc572){_0x4cca89['announce'](this['_getMarkerAnnouncementText'](_0x54b7c7,'ENTER',_0x4f4e19(_0x30a54a)));break;}}});}['_processAttributeChanges'](_0x118065){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1b191c=this['editor'],_0x1461fe=_0x1b191c['model']['document']['differ']['getChanges']();if(0x0==_0x1461fe['length'])return!0x1;const _0x25bb8b=[],_0x466940=_0x1461fe['filter'](_0x205bf0=>'attribute'==_0x205bf0['type']),_0x326d75=_0x1461fe['filter'](_0x121792=>'insert'==_0x121792['type']&&'$text'!=_0x121792['name']),_0x2d57ec=_0x1461fe['filter'](_0x11ef47=>'remove'==_0x11ef47['type']&&'$text'!=_0x11ef47['name']);for(const _0x49e680 of _0x466940)_0x25bb8b['push']({'key':_0x49e680['attributeKey'],'newValue':_0x49e680['attributeNewValue'],'oldValue':_0x49e680['attributeOldValue'],'range':Lt(_0x49e680['range'],_0x1b191c['model'])});for(const _0x1746ce of _0x326d75){const _0xc2a72=_0x2d57ec['find'](_0x162265=>_0x162265['position']['isEqual'](_0x1746ce['position']));_0xc2a72&&_0x25bb8b['push']({'key':m,'newValue':_0x1746ce['name'],'oldValue':_0xc2a72['name'],'range':_0x1b191c['model']['createRangeOn'](_0x1746ce['position']['nodeAfter'])});}return 0x0!=_0x25bb8b['length']&&this['_reduceExistingSuggestions'](_0x118065,_0x25bb8b);}['_processAttributeSuggestions'](_0x46b9e3){let _0x5cb6ac=!0x1;const _0x2d3e53=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x261a17=>_0x261a17['data']['newRange']&&_0x261a17['name']['startsWith']('suggestion:attribute:'));for(const _0x3d6472 of _0x2d3e53){const {subType:_0x2862bc,id:_0xf78cea}=this['_splitMarkerName'](_0x3d6472['name']),_0x3b20fa=_0x2862bc['split']('|')[0x0];for(const _0x1a45a7 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1a45a7['id']!=_0xf78cea&&'attribute'==_0x1a45a7['type']&&_0x1a45a7['data']&&_0x1a45a7['data']['key']==_0x3b20fa&&_0x1a45a7['getFirstRange']()['isIntersecting'](_0x3d6472['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1a45a7,_0x3d6472['data']['newRange'],_0x46b9e3),_0x5cb6ac=!0x0);}return _0x5cb6ac;}['_recordAttributeChanges'](_0x2b2b8e){this['_recordAttributeSuggestions']=!0x0,_0x2b2b8e();}['_isRegisteredAttribute'](_0x30b270){const _0x35dfdf=this['_isBlockAttribute'](_0x30b270),_0x228f72=this['_inlineAttributeKeys']['has'](_0x30b270);return _0x35dfdf||_0x228f72;}['_reduceExistingSuggestions'](_0xd8813b,_0x2b11f1){if(0x0==_0x2b11f1['length'])return!0x1;let _0x4e9d3b=!0x1;for(const _0x2a9b2e of _0x2b11f1){const _0x234970=this['_findSuggestions'](_0x2a9b2e['range'],'attribute')['filter'](_0x11b4be=>!_0x11b4be['meta']['isNextTo'])['map'](_0x6457ff=>_0x6457ff['suggestion']),_0xcdbea7=_0x5d9112({'newValue':_0x2a9b2e['newValue']});_0x234970['filter'](_0x702d0d=>{const [_0x3c6eee,_0x4ee614]=_0x702d0d['subType']['split']('|');return _0x3c6eee==_0x2a9b2e['key']&&_0x4ee614!=_0xcdbea7;})['forEach'](_0x45e08b=>{this['_reduceSuggestionAttributeRange'](_0x45e08b,_0x2a9b2e['range'],_0xd8813b),_0x4e9d3b=!0x0;});}return _0x4e9d3b;}['_reduceSuggestionAttributeRange'](_0x51c376,_0x17bae2,_0xe62be){const _0x454308=_0x51c376['getFirstRange']()['getDifference'](_0x17bae2);0x0!==_0x454308['length']?0x1!==_0x454308['length']?this['_breakSuggestionMarker'](_0x51c376,_0x17bae2['start'],_0x17bae2['end']):this['_setSuggestionRange'](_0x51c376,_0x454308[0x0]):_0xe62be['removeMarker'](_0x51c376['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2e9e56){this['_editor']=_0x2e9e56,this['_model']=_0x2e9e56['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x425cfa,_0x41ea2e,_0x19d28a,_0x1f72a5,_0x172f48,_0x4e20dd){return new u(this['_model'],{'type':_0x425cfa,'subType':_0x41ea2e,'id':_0x19d28a,'author':_0x1f72a5,'creator':_0x1f72a5,'attributes':_0x172f48,'onAttributesChange':_0x4e20dd,'onAccept':(..._0x586452)=>this['getSuggestionCallback'](_0x425cfa,_0x41ea2e,'accept')(..._0x586452),'onDiscard':(..._0x179ebf)=>this['getSuggestionCallback'](_0x425cfa,_0x41ea2e,'discard')(..._0x179ebf)});}['registerCustomCallback'](_0x17eed8,_0x34c0e0,_0x22d08e,_0x1339c0){const _0x2a3e41=_0x17eed8+':'+_0x34c0e0+':'+_0x22d08e;this['_customCallbacks']['set'](_0x2a3e41,_0x1339c0);}['getSuggestionCallback'](_0x855d85,_0x20ba31,_0x4c6d50){const _0x27abe8=_0x855d85+':'+_0x20ba31+':'+_0x4c6d50;return this['_customCallbacks']['get'](_0x27abe8)||this['_defaultCallbacks']['get'](_0x855d85+':'+_0x4c6d50);}['_registerDefaultCallbacks'](){const _0x4a9a06=()=>!0x1,_0x2f5260=_0x552368=>{_0x552368['sort']((_0x4f4ea5,_0x2ca3f6)=>_0x4f4ea5['start']['isBefore'](_0x2ca3f6['start'])?0x1:-0x1),this['_model']['change'](_0x537ce4=>{for(const _0x218857 of _0x552368){let _0x1f592d;_0x1f592d=_0x218857['end']['isAtEnd']&&_0x218857['end']['parent']==_0x218857['start']['nodeAfter']?_0x537ce4['createSelection'](_0x218857['start']['nodeAfter'],'on'):_0x537ce4['createSelection'](_0x218857),this['_model']['deleteContent'](_0x1f592d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x276a26=(_0x172966,_0x5468a2)=>{_0x5468a2&&this['_model']['change'](_0x48e6d7=>{const {commandName:_0x49ac46,commandParams:_0x3ad673=[]}=_0x5468a2,_0x2d064a=_0x172966['map'](_0xca2d87=>(Vt(_0xca2d87)&&(_0xca2d87=this['_model']['createRange'](_0xca2d87['end'])),_0xca2d87))['filter'](_0x3b2ad3=>'$graveyard'!==_0x3b2ad3['root']['rootName']);if(_0x2d064a['length']<0x1)return;const _0x1c9718=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5959a0=>_0x3fc55d['fromRange'](_0x5959a0));_0x48e6d7['setSelection'](_0x2d064a);for(const _0x290a65 of this['_editor']['commands']['commands']())_0x290a65['refresh']();_0x3ad673['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x49ac46,..._0x3ad673);const _0x5d1a29=_0x1c9718['filter'](_0x287256=>'$graveyard'!=_0x287256['root']['rootName']);_0x5d1a29['length']>0x0&&_0x48e6d7['setSelection'](_0x5d1a29);for(const _0x1c8777 of _0x1c9718)_0x1c8777['detach']();});},_0x415966=(_0x3b743b,_0x17a9f5)=>0x1==_0x3b743b['length']&&0x1==_0x17a9f5['length']&&_0x3b743b[0x0]['end']['isEqual'](_0x17a9f5[0x0]['start']),_0x4fc1bf=(_0x4f86c9,_0x19fe05,_0x1cf91d,_0x3cbe5f)=>Ht(_0x4f86c9,_0x19fe05,_0x1cf91d,_0x3cbe5f)?[_0x4f86c9,_0x19fe05]:Ht(_0x19fe05,_0x4f86c9,_0x3cbe5f,_0x1cf91d)?[_0x19fe05,_0x4f86c9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4a9a06),this['_defaultCallbacks']['set']('insertion:discard',_0x2f5260),this['_defaultCallbacks']['set']('insertion:join',_0x415966),this['_defaultCallbacks']['set']('insertion:chain',_0x4fc1bf),this['_defaultCallbacks']['set']('deletion:accept',_0x2f5260),this['_defaultCallbacks']['set']('deletion:discard',_0x4a9a06),this['_defaultCallbacks']['set']('deletion:join',_0x415966),this['_defaultCallbacks']['set']('deletion:chain',_0x4fc1bf),this['_defaultCallbacks']['set']('formatInline:accept',_0x276a26),this['_defaultCallbacks']['set']('formatInline:discard',_0x4a9a06),this['_defaultCallbacks']['set']('formatInline:join',_0x415966),this['_defaultCallbacks']['set']('formatInline:chain',_0x4a9a06),this['_defaultCallbacks']['set']('formatBlock:accept',_0x276a26),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4a9a06),this['_defaultCallbacks']['set']('formatBlock:join',_0x415966),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4a9a06),this['_defaultCallbacks']['set']('attribute:accept',_0x4a9a06),this['_defaultCallbacks']['set']('attribute:discard',(_0x50dfe4,_0x3f93d9)=>{if(!_0x3f93d9)return;const _0x3d2070=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x58f37d=>{if(_0x3f93d9['key']==m)for(const _0x5e9ad5 of _0x50dfe4){const _0x17e97f=_0x5e9ad5['start']['nodeAfter'],_0x40cd2a=_0x3f93d9['oldValue'];_0x58f37d['rename'](_0x17e97f,_0x40cd2a);}else{if(_0x3d2070['_isBlockAttribute'](_0x3f93d9['key'])){for(const _0x547a4c of _0x50dfe4)void 0x0!==_0x3f93d9['oldValue']?_0x58f37d['setAttribute'](_0x3f93d9['key'],_0x3f93d9['oldValue'],_0x547a4c['start']['nodeAfter']):_0x58f37d['removeAttribute'](_0x3f93d9['key'],_0x547a4c['start']['nodeAfter']);}else{for(const _0x2c1698 of _0x50dfe4)_0x3f93d9['oldValue']?_0x58f37d['setAttribute'](_0x3f93d9['key'],_0x3f93d9['oldValue'],_0x2c1698):_0x58f37d['removeAttribute'](_0x3f93d9['key'],_0x2c1698);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x415966);}}function Ut(_0x23e052,_0x2a813a,_0x166f65){for(const _0x2f700d of _0x2a813a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2f700d['root']==_0x2f700d)return!0x1;if(!_0x166f65['containsItem'](_0x2f700d))return!0x1;if(_0x23e052['isObject'](_0x2f700d)||_0x23e052['isLimit'](_0x2f700d))return!0x0;}return!0x1;}function Vt(_0x26a04c){return _0x26a04c['end']['parent']==_0x26a04c['start']['nodeAfter']&&_0x26a04c['end']['isAtStart'];}function Pt(_0x1fe7dd,_0x1708de,_0x3d5ad3,_0x355539){const _0x3be7a2=_0x2d79f7=>!_0x2d79f7['item']['is']('$textProxy')&&!_0x355539['isObject'](_0x2d79f7['item']),_0x26bfd4=_0x1fe7dd['start']['getLastMatchingPosition'](_0x3be7a2),_0x5847f4=_0x1fe7dd['end']['getLastMatchingPosition'](_0x3be7a2,{'direction':'backward'});return(!_0x1fe7dd['start']['isEqual'](_0x26bfd4)||!_0x1fe7dd['end']['isEqual'](_0x5847f4))&&(_0x26bfd4['isBefore'](_0x5847f4)?_0x3d5ad3['updateMarker'](_0x1708de,{'range':_0x3d5ad3['createRange'](_0x26bfd4,_0x5847f4)}):_0x3d5ad3['removeMarker'](_0x1708de),!0x0);}function Gt(_0x2f2d53){return _0x5d9112(_0x2f2d53);}function Ft(_0x58e916){const _0x971948=_0x58e916['start']['nodeAfter'];return _0x971948&&_0x971948['is']('element');}function Lt(_0x3c6724,_0x5b9012){return null==_0x3c6724['end']['nodeBefore']&&_0x3c6724['end']['parent']==_0x3c6724['start']['nodeAfter']?Jt(_0x3c6724['start']['nodeAfter'],_0x5b9012):_0x3c6724;}function Jt(_0x3dd8a1,_0x3a09cd){const _0x50a362=_0x3a09cd['schema']['isObject'](_0x3dd8a1)||_0x3a09cd['schema']['isSelectable'](_0x3dd8a1);return _0x3a09cd['createRange'](_0x3a09cd['createPositionAt'](_0x3dd8a1,'before'),_0x50a362?_0x3a09cd['createPositionAfter'](_0x3dd8a1):_0x3a09cd['createPositionAt'](_0x3dd8a1,'end'));}function Ht(_0x58bbc9,_0x51f409,_0x2456ee,_0x1ca7ea){return!!qt(_0x58bbc9,_0x51f409)&&_0x2456ee['end']['isEqual'](_0x1ca7ea['start']);}function qt(_0x2eb412,_0x19d025){if(!_0x2eb412['_isDataLoaded']||!_0x19d025['_isDataLoaded'])return!0x1;const _0x5ea34f=new Set(Object['keys'](_0x2eb412['attributes'])),_0x1536f2=new Set(Object['keys'](_0x19d025['attributes']));if(_0x5ea34f['delete']('groupId'),_0x1536f2['delete']('groupId'),0x0==_0x5ea34f['size']&&0x0==_0x1536f2['size'])return!0x0;if(_0x5ea34f['size']!=_0x1536f2['size'])return!0x1;const _0x135056={..._0x2eb412['attributes']},_0x39d362={..._0x19d025['attributes']};return delete _0x135056['groupId'],delete _0x39d362['groupId'],JSON['stringify'](_0x135056)==JSON['stringify'](_0x39d362);}function zt(_0x157f72,_0x2d1540){const _0x12a3e2=Kt(_0x157f72['attributes']),_0x5083d1=Kt(_0x2d1540);if(!_0x157f72['_isDataLoaded'])return!0x1;for(const _0x3c993c of Object['keys'](_0x5083d1))if(!_0x4c869e(_0x12a3e2[_0x3c993c],_0x5083d1[_0x3c993c]))return!0x1;return!0x0;}function Kt(_0x20e655){const _0x27f8e8=Object['assign']({},_0x20e655);return delete _0x27f8e8['skipNestingCheck'],delete _0x27f8e8['tablePasteChainId'],_0x27f8e8;}class ge extends/* #__PURE__ -- @preserve */
25
+ _0x323eb4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1c317c,_0x399c9b,_0x27bad3,_0x246d8b){super(),this['model']=_0x399c9b,this['view']=_0x27bad3,this['commentThreadController']=_0x246d8b,this['_editor']=_0x1c317c,this['_acceptCommand']=_0x1c317c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1c317c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x48802a,_0x321bb5)=>_0x48802a||_0x321bb5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5f29d8=>_0x5f29d8&&this['_editor']['model']['canEditAt'](_0x399c9b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x205cf4=>_0x205cf4&&this['_editor']['model']['canEditAt'](_0x399c9b['getRanges']())),this['_pendingAction']=null,_0x27bad3['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x27bad3,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x27bad3,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x27bad3,'change:isDirty',()=>{_0x27bad3['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 _0x13b43f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x13b43f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x1b9e8e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3cc26b,_0x3b0559,_0x1b19cf,_0x5da809){super(_0x3cc26b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5dc670(_0x3cc26b,o(_0x3cc26b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3b0559['authoredAt']),this['bind']('authoredAt')['to'](_0x3b0559),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',_0x3b0559,'authoredAt',this,'descriptionParts',(_0x571b82,_0x461a5b,_0x3cd80b)=>{const _0x436173=_0x3cd80b['map'](_0x4b0b77=>ns(_0x4b0b77['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x571b82-0x1,_0x3b0559['author']['name'],_0x461a5b?_0x5da809['formatDateTime'](_0x461a5b):'',new DOMParser()['parseFromString'](_0x436173,'text/html')['body']['textContent']]);}),this['focusables']=new _0x454e16(),this['focusTracker']=new _0x3febe6(),this['keystrokes']=new _0x48cbca(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xed0e23=>_0xed0e23['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3b0559,this['_localUser']=_0x1b19cf,this['_config']=_0x5da809,_0x5da809['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1cc89d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x33662b}=this['_config'];this['commentsListView']=new _0x33662b(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',_0x8e4924=>_0x8e4924+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x44b226,_0x137b5e)=>_0x44b226||!!_0x137b5e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x15a0f3}=this['_config'],_0x3240b4=new _0x15a0f3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x533e05=_0x3240b4['commentInputView'];return _0x3240b4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x533e05,'value',(_0x1057dd,_0xf06985,_0x3cbecf)=>!!_0x3cbecf||_0x1057dd&&!_0xf06985),_0x533e05['on']('submit',(_0x41eec5,_0x27273b)=>{this['fire']('addComment',_0x27273b),_0x533e05['editor']['setData']('');}),_0x533e05['on']('cancel',()=>this['focus']()),_0x533e05['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3240b4;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x34590d,_0x2a322a,_0x69451c,_0x23168c){super(_0x34590d,_0x2a322a,_0x69451c,_0x23168c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x12ae82=>_0x12ae82&&_0x12ae82[0x0]?_0x12ae82[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2d7916,_0x83f5ac)=>{let _0x314e2b='';for(const _0x2e3104 of _0x2d7916)_0x314e2b+='<p>'+ns(_0x2e3104['content'],_0x2e3104['color'])+'</p>';return _0x83f5ac?_0x314e2b:ti(_0x314e2b,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x23168c['SuggestionView'](_0x34590d,_0x2a322a,{'formatDateTime':_0x23168c['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 _0x5d8af9=this['bindTemplate'],_0x1d6cac=[this['suggestionView']];return this['commentsListView']&&_0x1d6cac['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1d6cac['push'](this['commentThreadInputView']),_0x1d6cac['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5d8af9['if']('isActive','ck-suggestion-wrapper--active'),_0x5d8af9['to']('type',_0x13a8e2=>'ck-suggestion-'+_0x13a8e2),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':_0x5d8af9['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1d6cac};}['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 ue extends _0x1b9e8e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x49a188,_0x5d3699,_0x52dbf3){super(_0x49a188),this['_model']=_0x5d3699,this['_config']=_0x52dbf3,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5d3699),this['acceptButton']=this['_createButton'](o(_0x49a188,'Accept\x20suggestion'),_0x592b68['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x49a188,'Discard\x20suggestion'),_0x592b68['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5a640e(_0x49a188,_0x5d3699['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x454e16([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3febe6(),this['keystrokes']=new _0x48cbca(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4b67b9=>_0x4b67b9['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1c95a6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1c95a6['innerHTML']=this['description'],this['on']('change:description',(_0x372f2e,_0x33f6c0,_0x132572)=>{_0x1c95a6['innerHTML']=_0x132572;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xd42873=this['bindTemplate'],_0x259a21=[{'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':_0xd42873['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xd42873['to']('authoredAt',_0x1a7f78=>this['_config']['formatDateTime'](_0x1a7f78))}]}]},{'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']&&_0x259a21['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':_0x259a21}]};}['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'](_0x152744,_0x3dd518,_0x3e17cf,_0x485223,_0x365784){const _0x563693=new _0x3e3f05(this['locale']);return _0x563693['set']({'label':_0x152744,'icon':_0x3dd518,'tooltip':!0x0,'tooltipPosition':_0x365784}),_0x563693['extendTemplate']({'attributes':{'class':_0x3e17cf}}),_0x563693['on']('execute',()=>{this['fire'](_0x485223,this['_model']['id']);}),_0x563693;}['_setupKeyboardNavigation'](){const _0x4a4b0a=this['element'];this['keystrokes']['listenTo'](_0x4a4b0a);for(const _0x5598cb of this['focusables'])this['focusTracker']['add'](_0x5598cb['element']),this['keystrokes']['listenTo'](_0x5598cb['element']);this['keystrokes']['set']('enter',(_0x6dc72b,_0x167110)=>{_0x4a4b0a===_0x6dc72b['target']&&(this['focusCycler']['focusFirst'](),_0x167110());}),this['keystrokes']['set']('esc',(_0x27636f,_0x5d6bc0)=>{_0x4a4b0a!==_0x27636f['target']&&(this['focus'](),_0x5d6bc0());});}}var Ce='<!--\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 _0xcae1ef{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4ee8f0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f094d){super(_0x5f094d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5307d0=this['editor']['config'];_0x5307d0['define']('trackChanges.SuggestionThreadView',de),_0x5307d0['define']('trackChanges.SuggestionView',ue),_0x5307d0['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5307d0['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x443ce4,_0x1c15d7){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xc007a7,_0x125ca3]of this['_handleControllerBuffer']){const _0xe021b9=this['_suggestionToController']['has'](_0xc007a7);_0xe021b9||_0x125ca3?_0xe021b9&&_0x125ca3&&this['_destroyController'](_0xc007a7):this['_initializeController'](_0xc007a7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x443ce4,_0x1c15d7);}['init'](){const _0x51aa76=this['editor'],_0x4b6cf4=_0x51aa76['plugins']['get']('TrackChangesEditing'),_0x14b040=_0x51aa76['plugins']['get']('Annotations'),_0x269022=_0x51aa76['plugins']['get']('EditorAnnotations'),_0x3fa2ad=_0x51aa76['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x269022['addSourceCollector'](()=>{const _0x296d81=[];for(const [_0x351ba5,_0x16fe1a]of Array['from'](this['_suggestionToController'])){const _0x4944f7=_0x351ba5['getAllAdjacentSuggestions'](),_0x5e405d=[];for(const _0x5b700d of _0x4944f7){if(!_0x5b700d['isInContent'])continue;if(_0x5b700d['isMultiRange']){_0x5e405d['push'](..._0x5b700d['getRanges']());continue;}const _0x6a1865=_0x5b700d['getFirstRange']();if(_0x5e405d['length']>0x0){const _0x59aa3a=_0x5e405d[0x0]['getJoined'](_0x6a1865);if(_0x59aa3a){_0x5e405d[0x0]=_0x59aa3a;continue;}}_0x5e405d['push'](_0x6a1865);}_0x296d81['push']([_0x16fe1a['view'],_0x5e405d]);}return _0x296d81;}),this['listenTo'](_0x4b6cf4,'suggestionLoaded',(_0x5eaaca,_0x39699e)=>{this['listenTo'](_0x39699e,'change:previous',(_0x3e2569,_0x449889,_0x48403c,_0x45a3b3)=>{_0x39699e['isInContent']&&(null==_0x48403c?(this['_updateController'](_0x45a3b3['head']),this['_handleSuggestionControllerDelayed'](_0x39699e,!0x1)):(this['_updateController'](_0x48403c['head']),null==_0x45a3b3&&this['_handleSuggestionControllerDelayed'](_0x39699e,!0x0)));}),null!==_0x39699e['previous']?this['_updateController'](_0x39699e['head']):this['_handleSuggestionControllerDelayed'](_0x39699e,!0x1);}),this['listenTo'](_0x4b6cf4,'suggestionUnloaded',(_0x4f8fcf,_0xf860f3,_0x3fb456)=>{this['stopListening'](_0xf860f3,'change:previous'),this['_handleControllerBuffer']['delete'](_0xf860f3),this['_suggestionToController']['has'](_0xf860f3)&&this['_destroyController'](_0xf860f3),_0x3fb456&&this['_updateController'](_0x3fb456['head']);}),this['listenTo'](_0x4b6cf4,'suggestionChanged',(_0x160dcb,_0xa039d5)=>{this['_updateController'](_0xa039d5);}),this['listenTo'](_0x14b040,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3fa2ad,'addComment',(_0x33f554,{threadId:_0xe13e82,isFromAdapter:_0x5bbb56})=>{if(_0x5bbb56||!_0x4b6cf4['hasSuggestion'](_0xe13e82))return;const _0x10b1a0=_0x4b6cf4['getSuggestion'](_0xe13e82);this['_suggestionToController']['get'](_0x10b1a0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x56a14b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37bccc;for(const _0x3ea5cf in _0x56a14b){const _0x1c993b=_0x3ea5cf,_0x58295c=_0x56a14b[_0x1c993b];if('trackChangesLicenseKeyValid'==_0x58295c||'trackChangesLicenseKeyInvalid'==_0x58295c||'trackChangesLicenseKeyExpired'==_0x58295c||'trackChangesLicenseKeyDomainLimit'==_0x58295c||'trackChangesLicenseKeyNotAllowed'==_0x58295c||'trackChangesLicenseKeyEvaluationLimit'==_0x58295c||'trackChangesLicenseKeyTrialLimit'==_0x58295c||'trackChangesLicenseKeyDevelopmentLimit'==_0x58295c||'trackChangesLicenseKeyUsageLimit'==_0x58295c){delete _0x56a14b[_0x1c993b],_0x37bccc=_0x58295c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x37bccc&&_0x56a14b['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x37bccc&&_0x56a14b['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x37bccc&&_0x56a14b['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x37bccc&&_0x56a14b['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x37bccc&&_0x56a14b['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x37bccc&&_0x56a14b['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x37bccc&&_0x56a14b['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x37bccc&&_0x56a14b['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5628ba=this['editor']['plugins']['get']('Annotations'),_0x3a6452=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c1896=Array['from'](_0x5628ba['activeAnnotations'],_0x25e855=>_0x25e855['innerView'])['filter'](_0x1e001f=>this['_viewToController']['has'](_0x1e001f)),_0x71f9e0=[];for(const _0x5056e4 of _0x4c1896){const _0x476860=this['_viewToController']['get'](_0x5056e4)['model']['getAllAdjacentSuggestions']();_0x71f9e0['push'](..._0x476860['reduce']((_0xf4f7fb,_0x1aa2e1)=>[..._0xf4f7fb,..._0x1aa2e1['getMarkerNames']()],[]));}_0x3a6452['activeMarkers']=_0x71f9e0;}['_addUIComponentsToFactory'](){const _0x1f8211=this['editor'],_0x246509=_0x1f8211['locale'],_0x4f87db=o(_0x246509,'Track\x20changes'),_0x3dffc6=new _0x59d451([{'type':'switchbutton','model':new _0x28a37f({'withText':!0x0,'isToggleable':!0x0,'label':_0x4f87db,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x28a37f({'withText':!0x0,'label':o(_0x246509,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x28a37f({'withText':!0x0,'label':o(_0x246509,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x28a37f({'withText':!0x0,'label':o(_0x246509,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x28a37f({'withText':!0x0,'label':o(_0x246509,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x4c140c of _0x3dffc6)if(pe(_0x4c140c)){const _0x402d05=_0x1f8211['commands']['get'](_0x4c140c['model']['commandName']);_0x4c140c['model']['bind']('isOn','isEnabled')['to'](_0x402d05,'value','isEnabled');}_0x1f8211['ui']['componentFactory']['add']('trackChanges',_0x11958f=>this['_createToolbarButton'](_0x11958f,_0x3dffc6,_0x4f87db)),_0x1f8211['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1bb4cf=>this['_createMenuBarMenu'](_0x1bb4cf,_0x3dffc6,_0x4f87db));}['_createToolbarButton'](_0x52a870,_0x19712e,_0x224adf){const _0x2acb1c=_0x23c2d5(_0x52a870,_0x398f69),_0x282fa3=this['editor']['commands']['get']('trackChanges');_0x2acb1c['buttonView']['set']({'tooltip':_0x224adf,'label':_0x224adf,'icon':Ce}),_0x2acb1c['buttonView']['bind']('isOn')['to'](_0x282fa3,'value'),_0x2acb1c['buttonView']['on']('execute',()=>{_0x282fa3['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x2acb1c,_0x19712e,{'role':'menu'});const _0x55ad65=[];for(const _0xe42d2a of _0x19712e)pe(_0xe42d2a)&&_0x55ad65['push'](this['editor']['commands']['get'](_0xe42d2a['model']['commandName']));const _0x5c6696=_0x2acb1c['buttonView'];return _0x5c6696['actionView']['unbind']('isEnabled'),_0x5c6696['arrowView']['unbind']('isEnabled'),_0x5c6696['actionView']['bind']('isEnabled')['to'](_0x282fa3,'isEnabled'),_0x5c6696['arrowView']['bind']('isEnabled')['toMany'](_0x55ad65,'isEnabled',(..._0x10e166)=>_0x10e166['some'](_0x285046=>_0x285046)),_0x2acb1c['on']('execute',_0x2af572=>{this['editor']['execute'](_0x2af572['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2acb1c;}['_createMenuBarMenu'](_0xf44c7b,_0x27a16c,_0x26587e){const _0x2acc93=new _0x3f125d(_0xf44c7b),_0x2ae752=this['editor']['commands']['get']('trackChanges');_0x2acc93['buttonView']['set']({'label':_0x26587e,'icon':Ce});const _0x36406d=new _0x3256e7(_0xf44c7b);for(const _0x290035 of _0x27a16c){if('separator'==_0x290035['type']){_0x36406d['items']['add'](new _0xf4d2fb(_0xf44c7b));continue;}const _0x473867=new _0x1404f0(_0xf44c7b,_0x2acc93),_0x389f14=new _0x186e39(_0xf44c7b),_0x257779=_0x290035['model'];_0x389f14['bind'](...Object['keys'](_0x257779))['to'](_0x257779),_0x389f14['delegate']('execute')['to'](_0x2acc93),_0x389f14['on']('execute',()=>{this['editor']['execute'](_0x257779['commandName']),this['editor']['editing']['view']['focus']();}),_0x473867['children']['add'](_0x389f14),_0x36406d['items']['add'](_0x473867);}return _0x2acc93['bind']('isEnabled')['to'](_0x2ae752,'isEnabled'),_0x2acc93['panelView']['children']['add'](_0x36406d),_0x2acc93;}['_initializeController'](_0x5d8fd7){const _0xaa4565=this['editor'],_0x10b3a3=_0xaa4565['config'],_0x9180e8=_0xaa4565['plugins']['get']('Annotations'),_0x2d8ecb=_0xaa4565['plugins']['get']('CommentsRepository'),_0x4bd4b0=_0xaa4565['plugins']['get']('EditorAnnotations'),_0x26e6bd=_0xaa4565['plugins']['get'](_0x4ee8f0)['me'],_0x1273d0=_0x10b3a3['get']('trackChanges')['SuggestionThreadView'],_0x40e0fc=_0x10b3a3['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x477007,CommentThreadInputView:_0x3a4a18}=_0xaa4565['plugins']['get']('CommentsUI');let _0x246efa,_0x8119ed,_0x564cf9;this['_annotationViews']['has'](_0x5d8fd7['id'])?(_0x8119ed=this['_annotationViews']['get'](_0x5d8fd7['id']),_0x246efa=_0x8119ed['mainView']):(_0x246efa=new _0x1273d0(_0xaa4565['locale'],_0x5d8fd7,_0x26e6bd,{'disableComments':this['_disableComments'],'editorConfig':{..._0x10b3a3['get']('comments.editorConfig'),'licenseKey':_0x10b3a3['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x10b3a3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x10b3a3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x10b3a3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xb80e7c(_0x10b3a3['get']('locale')),'CommentView':_0x10b3a3['get']('comments')['CommentView'],'CommentsListView':_0x477007,'CommentThreadInputView':_0x3a4a18,'SuggestionView':_0x40e0fc}),_0x246efa['suggestionView']['acceptButton']['on']('execute',()=>{_0xaa4565['editing']['view']['focus']();}),_0x246efa['suggestionView']['discardButton']['on']('execute',()=>{_0xaa4565['editing']['view']['focus']();}),_0x8119ed=_0x9180e8['createAnnotationView'](this['editor']['locale'],_0x246efa),_0x8119ed['bind']('isDirty')['to'](_0x246efa,'isDirty'),_0x8119ed['bind']('length')['to'](_0x246efa),_0x8119ed['bind']('type')['to'](_0x246efa,'type',_0xc522a7=>'suggestion-'+_0xc522a7),_0x246efa['on']('escape',()=>{_0x564cf9['fire']('escape');}),this['_annotationViews']['set'](_0x5d8fd7['id'],_0x8119ed));const _0x1541c5=_0x2d8ecb['createCommentThreadController'](_0x5d8fd7['commentThread'],_0x246efa),_0x17b9df=new ge(_0xaa4565,_0x5d8fd7,_0x246efa,_0x1541c5),_0x2960cf=_0x5d8fd7['getAllAdjacentSuggestions']()['filter'](_0x289c39=>_0x289c39['isInContent']);_0x246efa['descriptionParts']=_0xaa4565['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2960cf),this['_suggestionToController']['set'](_0x5d8fd7,_0x17b9df),this['_viewToController']['set'](_0x246efa,_0x17b9df),_0x564cf9=_0x9180e8['createAnnotation']({'view':_0x8119ed,'target':()=>{const _0x3acec1=[],_0x1ff7a0=_0x5d8fd7['getAllAdjacentSuggestions']()['filter'](_0x33cbc5=>_0x33cbc5['isInContent']);for(const _0x5c477d of _0x1ff7a0)_0x3acec1['push'](..._0x5c477d['getMarkers']());return _0x20f51e(_0xaa4565['editing'],_0x3acec1);},'type':()=>'suggestion-'+_0x17b9df['view']['type']}),_0x2d8ecb['_bindAnnotationToEditors'](_0x246efa,_0x564cf9),_0x9180e8['add'](_0x564cf9),_0x4bd4b0['registerAnnotation'](_0x564cf9);}['_destroyController'](_0x26c95b){const _0x163ac5=this['editor']['plugins']['get']('CommentsRepository'),_0x2d0f00=this['editor']['plugins']['get']('Annotations'),_0x1fc592=this['_suggestionToController']['get'](_0x26c95b),_0x42320b=_0x1fc592['view'],_0x3b5856=_0x2d0f00['getByInnerView'](_0x42320b);_0x163ac5['_unbindEditors'](_0x42320b),_0x3b5856&&_0x2d0f00['remove'](_0x3b5856),this['_suggestionToController']['delete'](_0x26c95b),this['_viewToController']['delete'](_0x42320b),_0x1fc592['destroy']();}['_updateController'](_0x1a0c32){if(!_0x1a0c32['isInContent']||!this['_suggestionToController']['has'](_0x1a0c32))return;const _0x7c0c4e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b4a08=this['_suggestionToController']['get'](_0x1a0c32),_0x4308df=_0x1a0c32['getAllAdjacentSuggestions']();_0x4b4a08['view']['descriptionParts']=_0x7c0c4e['descriptionFactory']['getDescriptions'](_0x4308df);}['destroy'](){for(const _0x1275b1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1275b1);for(const _0x10f87b of this['_annotationViews']['values']())_0x10f87b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x5682b0){return'model'in _0x5682b0;}class k extends _0xcae1ef{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x23f1f5){this['editor']['plugins']['get'](p)['adapter']=_0x23f1f5;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3eceeb){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3eceeb);}['getSuggestions']({skipNotAttached:_0x2dde9b=!0x1,toJSON:_0x273339=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2dde9b,'toJSON':_0x273339});}['getSuggestion'](_0x46bd54){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x46bd54);}}const w=['Pagination'];class T extends _0xcae1ef{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x59c025=this['editor'];if(_0x59c025['config']['define']('trackChangesData.editorCreator',_0x43d662=>{const _0x2f5683=_0x59c025['model']['document']['getRootNames']()['reduce']((_0x53c41f,_0x2bd874)=>(_0x53c41f[_0x2bd874]='',_0x53c41f),{});return _0x59c025['constructor']['create'](_0x2f5683,_0x43d662);}),'function'!=typeof _0x59c025['config']['get']('trackChangesData')['editorCreator'])throw new _0x27a22d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2a23a9){return N(this['editor'],!0x0,_0x2a23a9);}['getDataWithDiscardedSuggestions'](_0x38f431){return N(this['editor'],!0x1,_0x38f431);}}class D extends _0xcae1ef{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20e73b){function _0x4a6532(_0x140128){return _0x140128['map'](_0x4f0747=>String['fromCharCode'](_0x4f0747))['join']('');}super(_0x20e73b),this['result']='end',_0x20e73b[_0x4a6532([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a6532([0x76,0x69,0x65,0x77])][_0x4a6532([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4a6532([0x61,0x75,0x74,0x6f]),_0x20e73b[_0x4a6532([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4a6532([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4a6532([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4a6532([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4a6532([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x19e711){return void 0x0!==_0x19e711['getRootsAttributes'];}async function N(_0x5ebad3,_0x2ecbe4,_0x160863){const _0x457903=_0x2f5f9c(_0x5ebad3,w);_0x457903['plugins']['push'](p,D),_0x457903['rootsAttributes']=v(_0x5ebad3)?_0x5ebad3['getRootsAttributes']():void 0x0;const _0x45ac95=document['createDocumentFragment'](),_0x574fd7=_0x5ebad3['config']['get']('trackChangesData')['editorCreator'],_0x57207f=await _0x574fd7(_0x457903,()=>function(_0x3b6edb){const _0x476d66=document['createElement']('div');return _0x3b6edb['appendChild'](_0x476d66),_0x476d66;}(_0x45ac95));!function(_0x20db62,_0xc32bbd){const _0x20f3ff=_0x20db62['model']['document']['getRootNames']()['reduce']((_0x4df5b8,_0x5d7e6a)=>(_0x4df5b8[_0x5d7e6a]=_0x20db62['data']['get']({'rootName':_0x5d7e6a}),_0x4df5b8),{}),_0xa0da21=_0x20db62['plugins']['get']('Users')['users']['map'](_0x5bf62e=>({'id':_0x5bf62e['id'],'name':_0x5bf62e['name']})),_0x398576=_0x20db62['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4fb0bd=_0x20db62['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5b9398=_0xc32bbd['plugins']['get']('Users'),_0x239243=_0xc32bbd['plugins']['get']('TrackChangesEditing'),_0x7f9d0d=_0xc32bbd['plugins']['get']('CommentsRepository');for(const _0x3c8b25 of _0x7f9d0d['getCommentThreads']())_0x3c8b25['remove']();for(const _0x586b09 of _0xa0da21)_0x5b9398['getUser'](_0x586b09['id'])||_0x5b9398['addUser'](_0x586b09);_0x5b9398['me']||_0x5b9398['useAnonymousUser']();for(const _0x204628 of _0x4fb0bd)_0x7f9d0d['addCommentThread'](_0x204628);for(const _0x4adb56 of _0x398576)_0x239243['addSuggestionData'](_0x4adb56);_0xc32bbd['data']['set'](_0x20f3ff);}(_0x5ebad3,_0x57207f),_0x57207f['execute'](_0x2ecbe4?'acceptAllSuggestions':'discardAllSuggestions');const _0x50764e=v(_0x57207f)?_0x57207f['getFullData'](_0x160863):_0x57207f['data']['get'](_0x160863);return await _0x57207f['destroy'](),_0x50764e;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};