@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240921.0 → 0.0.0-nightly-20240922.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 ts,Plugin as _0x57873f,PendingActions as _0x5c60d5,icons as _0x516dbf}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x328131,ObservableMixin as _0x1147b1,uid as _0x59c837,insertToPriorityArray as _0x403020,priorities as _0x445841,logWarning as _0x330638,getEnvKeystrokeText as _0x212988,FocusTracker as _0x328653,KeystrokeHandler as _0x5d34be,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xc9e50a,View as _0x10a9d1,ViewCollection as _0x5a0728,FocusCycler as _0x4eabd2,ViewModel as _0x393b2d,createDropdown as Qt,SplitButtonView as _0x5775b6,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x158741}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x389e1f,hashObject as _0x2a3d48,surroundingMarkersDetector as _0x205bdd,FOCUS_ANNOTATION_KEYSTROKE as _0x148af5,AriaDescriptionView as _0x4cc66d,setupThreadKeyboardNavigation as _0x28bfc2,trimHtml as _0x521f52,UserView as _0x56b331,LateFocusButtonView as _0x5e9479,getDateTimeFormatter as _0x5e8a8b,getAllMarkersDomElementsSorted as _0x52eb0c,sanitizeEditorConfig as _0x144ba7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x51ef91,LiveRange as _0x40584f,LivePosition as _0x34baf9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3fcf47,toWidget as _0x31d75f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5cbe5b,set as _0x3cfc38,isEqual as _0x503e72,unset as _0x3a75ef,omit as Tt}from'lodash-es';import{Delete as _0x4715dd,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x301288,ShiftEnter as _0x255de6}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x290ca1,_0x1c360f){super(_0x290ca1),this['_enabledCommands']=_0x1c360f,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 _0xab9b1a of this['editor']['commands']['commands']())_0xab9b1a['affectsData']&&!this['_enabledCommands']['has'](_0xab9b1a)&&_0xab9b1a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x48c019 of this['editor']['commands']['commands']())_0x48c019['affectsData']&&!this['_enabledCommands']['has'](_0x48c019)&&_0x48c019['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x2f0fc5,_0xdb1d85){super(_0x2f0fc5),this['_suggestions']=_0xdb1d85,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xe88034){const _0x20ade7=this['_suggestions']['get'](_0xe88034);if(!_0x20ade7)throw new _0x328131('track-changes-accept-suggestion-not-found',this);const _0x189e7c=_0x20ade7['getRanges']();this['editor']['model']['canEditAt'](_0x189e7c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x20ade7);}}class R extends ts{['_suggestions'];constructor(_0x423d68,_0x2c9baf){super(_0x423d68),this['_suggestions']=_0x2c9baf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x40e294){const _0x5d781e=this['_suggestions']['get'](_0x40e294);if(!_0x5d781e)throw new _0x328131('track-changes-discard-suggestion-not-found',this);const _0x53b879=_0x5d781e['getRanges']();this['editor']['model']['canEditAt'](_0x53b879)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5d781e);}}function ls(_0x3d3185,_0x4bad5d){let _0x442a51='';return _0x442a51+=_0x3d3185['split']('*')['map']((_0x338c3e,_0x508b54)=>_0x508b54%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x338c3e)+'</span>':nn(_0x338c3e))['join'](''),_0x4bad5d&&(_0x442a51+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4bad5d['value']+'\x22\x20title=\x22'+_0x4bad5d['title']+'\x22></span>'),_0x442a51;}function nn(_0x1f10ff){const _0x5c8327=document['createElement']('span');return _0x5c8327['innerText']=_0x1f10ff,_0x5c8327['innerHTML'];}function ss(_0x5bd175){return _0x5bd175['sort']((_0x4b4dc6,_0x3fb0d5)=>'deletion'==_0x4b4dc6['type']&&'deletion'!=_0x3fb0d5['type']?-0x1:'deletion'!=_0x4b4dc6['type']&&'deletion'==_0x3fb0d5['type']?0x1:0x0);}function to(_0x46833f,_0x41ee04){let _0x3deafd,_0x146fd6=0x0;const _0x1e3f57=[],_0x1b50d1=_0x41ee04['schema'];for(;_0x146fd6<_0x46833f['length'];){const _0x5ad4e1=_0x46833f[_0x146fd6],_0x3c0d52=_0x46833f[_0x146fd6+0x1];_0x3deafd||(_0x3deafd=_0x41ee04['createPositionBefore'](_0x5ad4e1)),on(_0x41ee04,_0x5ad4e1,_0x3c0d52)||(_0x1e3f57['push'](_0x41ee04['createRange'](_0x3deafd,_0x1b50d1['isObject'](_0x5ad4e1)?_0x41ee04['createPositionAfter'](_0x5ad4e1):_0x41ee04['createPositionAt'](_0x5ad4e1,'end'))),_0x3deafd=null),_0x146fd6++;}return _0x1e3f57;}function on(_0x27362d,_0x2cf921,_0x9e95a1){if(!_0x9e95a1)return!0x1;const _0x3f6c75=_0x27362d['createPositionAfter'](_0x2cf921),_0x3e8839=_0x27362d['createPositionBefore'](_0x9e95a1);return _0x3f6c75['isTouching'](_0x3e8839);}function rs(_0x3c42bb,_0xc38df7,_0x208e6a){for(;_0x208e6a['length'];){const _0x1133f1=_0x208e6a['splice'](0x0,0x64);_0x3c42bb['change'](()=>{for(const _0x5f341a of _0x1133f1)_0x5f341a['isInContent']&&_0xc38df7['execute'](_0x5f341a['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x2332a8,_0x436033,_0x4880ef){super(_0x2332a8),this['_command']=_0x436033,this['_suggestions']=_0x4880ef,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x595ead=Array['from'](this['_suggestions']['values']())['some'](_0x1af921=>_0x1af921['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x595ead;}['execute'](){const _0x5e84cc=ss(Array['from'](this['_suggestions']['values']()));for(const _0xfd15a1 of _0x5e84cc){const _0x2fb668=_0xfd15a1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2fb668))return;}rs(this['editor']['model'],this['_command'],_0x5e84cc);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x502fac,_0x36872c,_0x1c5a49){super(_0x502fac),this['_command']=_0x36872c,this['_suggestions']=_0x1c5a49,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x289f8d=this['editor']['model']['document']['selection'],_0x50dda3=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x539ccc,_0x4ff3a2){const _0x305076=Array['from'](_0x539ccc['getRanges']()),_0x525a1c=new Set();for(const _0x6405c3 of _0x4ff3a2)if(_0x6405c3['isInContent']){for(const _0x3fa0cf of _0x305076)for(const _0x23b085 of _0x6405c3['getRanges']())(_0x3fa0cf['isIntersecting'](_0x23b085)||_0x539ccc['isCollapsed']&&!_0x6405c3['isMultiRange']&&_0x6405c3['next']&&_0x23b085['end']['isTouching'](_0x3fa0cf['start']))&&_0x525a1c['add'](_0x6405c3);}return _0x525a1c;}(_0x289f8d,_0x50dda3),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1f73b7=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1fdecd of _0x1f73b7){const _0x4ca4b9=_0x1fdecd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4ca4b9))return;}rs(this['editor']['model'],this['_command'],_0x1f73b7);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x1147b1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x46fa8c,_0x133f94){super(),this['id']=_0x133f94['id'],this['type']=_0x133f94['type'],this['subType']=_0x133f94['subType']||null,this['author']=_0x133f94['author'],this['creator']=_0x133f94['creator']||_0x133f94['author'],this['isExternal']=Boolean(_0x133f94['attributes']&&_0x133f94['attributes']['@external']),this['data']=null,this['_model']=_0x46fa8c,this['_onAccept']=_0x133f94['onAccept'],this['_onDiscard']=_0x133f94['onDiscard'],this['_onAttributesChange']=_0x133f94['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x133f94['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 _0x18c0d3=this;for(;_0x18c0d3['previous'];)_0x18c0d3=_0x18c0d3['previous'];return _0x18c0d3;}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'](_0x736bed){this['_markerNames']['add'](_0x736bed);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x68cd46=>this['_model']['markers']['get'](_0x68cd46))['filter'](_0x15b4c1=>_0x15b4c1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x128ff4=>{for(const _0x29ef46 of this['getMarkers']())_0x128ff4['removeMarker'](_0x29ef46);}),this['_markerNames']['clear']();}['removeMarker'](_0x33d800){this['_model']['change'](_0x3d39d7=>{_0x3d39d7['removeMarker'](_0x33d800);}),this['_markerNames']['delete'](_0x33d800);}['addRange'](_0x25fb46){const _0x55324a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x55324a),this['_model']['change'](_0x45f8c1=>{_0x45f8c1['addMarker'](_0x55324a,{'range':_0x25fb46,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3e367b){for(const _0x402b8c of this['getRanges']())if(_0x402b8c['isIntersecting'](_0x3e367b))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x307891=>_0x307891['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xc9733,_0x477d4b)=>[..._0xc9733,..._0x477d4b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x20d188=this['getRanges']();if(0x1!=_0x20d188['length'])return null;const _0x9d3194=_0x20d188[0x0],_0x4e3feb=_0x9d3194['start']['nodeAfter'],_0x106a9b=_0x9d3194['end']['nodeBefore'];return _0x4e3feb instanceof _0x51ef91?_0x4e3feb!=_0x106a9b?null:_0x4e3feb: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 _0x1801c7=[];let _0x1c6570=this['head'];for(;_0x1c6570;)_0x1801c7['push'](_0x1c6570),_0x1c6570=_0x1c6570['next'];return _0x1801c7;}['setAttribute'](_0x3df1cc,_0x17bee4){const _0x866e4e=_0x5cbe5b(this['attributes']);_0x3cfc38(_0x866e4e,_0x3df1cc,_0x17bee4),_0x503e72(_0x866e4e,this['attributes'])||(this['attributes']=_0x866e4e,this['_onAttributesChange'](_0x866e4e));}['removeAttribute'](_0x4dd64b){const _0x385ffd=_0x5cbe5b(this['attributes']);_0x3a75ef(_0x385ffd,_0x4dd64b),_0x503e72(_0x385ffd,this['attributes'])||(this['attributes']=_0x385ffd,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 _0x59c837()['substr'](0x1,0x5);}}function o(_0x34c2a9,_0xad2956,_0x5458c0){const t=_0x34c2a9['t'];switch(_0xad2956){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',_0x5458c0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5458c0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5458c0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5458c0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5458c0);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',_0x5458c0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5458c0);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',_0x5458c0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5458c0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5458c0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5458c0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5458c0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5458c0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5458c0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5458c0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5458c0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5458c0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5458c0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5458c0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5458c0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5458c0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5458c0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5458c0);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'},_0x5458c0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5458c0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5458c0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5458c0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5458c0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5458c0);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'},_0x5458c0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5458c0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5458c0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5458c0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5458c0);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'},_0x5458c0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5458c0);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'},_0x5458c0);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'},_0x5458c0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5458c0);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'},_0x5458c0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5458c0);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'},_0x5458c0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5458c0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5458c0);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'},_0x5458c0);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5458c0);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5458c0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5458c0);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'},_0x5458c0);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'},_0x5458c0);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'},_0x5458c0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xad2956;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xea27a0,_0x21dc0b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xea27a0,this['_locale']=_0x21dc0b;}['getDescriptions'](_0xdeba97){const _0xd819fd=[],_0x20f0cf=new Set(),_0x3a5e4c=new Set();for(let _0x433545=0x0;_0x433545<_0xdeba97['length'];_0x433545++){const _0x37ba1d=_0xdeba97[_0x433545];if(!_0x37ba1d['isInContent'])continue;const _0x9dffff=this['_handleCustomCallbackDescription'](_0x37ba1d);if(_0x9dffff){if(null!=_0x37ba1d['subType']){if(_0x20f0cf['has'](_0x37ba1d['subType']))continue;_0x20f0cf['add'](_0x37ba1d['subType']);}_0xd819fd['push'](_0x9dffff);}else{if('attribute'!=_0x37ba1d['type'])'insertion'!=_0x37ba1d['type']&&'deletion'!=_0x37ba1d['type']||this['_handleInsertRemoveSuggestionDescription'](_0xd819fd,_0x37ba1d,_0xdeba97[_0x433545+0x1]);else{const _0x5b7d20=_0x37ba1d['data']['key'];if(_0x3a5e4c['has'](_0x5b7d20))continue;_0x3a5e4c['add'](_0x37ba1d['data']['key']),_0x5b7d20==m?this['_handleRenameSuggestionDescription'](_0xd819fd,_0x37ba1d):this['_handleAttributeSuggestionDescription'](_0xd819fd,_0x37ba1d);}}}return this['_resolveDescriptionItems'](_0xd819fd);}['registerDescriptionCallback'](_0x4edb4c){this['_customCallbacks']['push'](_0x4edb4c);}['registerElementLabel'](_0x1471e8,_0x1324ef,_0xb03aea=_0x445841['normal']){'function'==typeof _0x1471e8?_0x403020(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1471e8,'label':_0x1324ef,'priority':_0xb03aea}):this['_itemLabels']['set'](_0x1471e8,_0x1324ef);}['registerAttributeLabel'](_0x5d3c00,_0x29af06){this['_attributeLabels']['set'](_0x5d3c00,_0x29af06);}['getItemLabel'](_0x1cd1b0,_0xef809b=0x1){let _0xee160e;for(const _0x23a23f of this['_itemLabelsCallbacks'])if(_0x23a23f['matchingCallback'](_0x1cd1b0)){_0xee160e=_0x23a23f['label'];break;}return _0xee160e||(_0xee160e=this['_itemLabels']['get'](_0x1cd1b0['name'])),_0xee160e?_0xee160e(_0xef809b):0x1!==_0xef809b?_0xef809b+'\x20'+_0x1cd1b0['name']+'s':''+_0x1cd1b0['name'];}['_addDescriptionItems'](_0x156da3,_0x57b93e){const _0x1730a0=_0x57b93e['getFirstRange']()['getWalker'](),_0x44883b='insertion'==_0x57b93e['type']?'add':'remove';for(const _0x1b1b4c of _0x1730a0){const _0x898a6b=_0x1b1b4c['item'],_0x5ce1b0=_0x156da3[_0x156da3['length']-0x1];if(_0x898a6b['is']('$textProxy'))_0x5ce1b0&&_0x5ce1b0['type']['indexOf']('Container')>-0x1&&_0x156da3['pop'](),_0x5ce1b0&&'text'==_0x5ce1b0['type']?_0x5ce1b0[_0x44883b]+=_0x898a6b['data']:_0x156da3['push']({'type':'text','add':'add'==_0x44883b?_0x898a6b['data']:'','remove':'remove'==_0x44883b?_0x898a6b['data']:''});else{if(this['_schema']['isObject'](_0x898a6b)){const _0x21ef7c=_0x898a6b;if(_0x5ce1b0&&_0x5ce1b0['type']['indexOf']('Container')>-0x1&&_0x156da3['pop'](),'elementEnd'==_0x1b1b4c['type'])continue;_0x5ce1b0&&_0x5ce1b0['type']==_0x44883b+'Object'&&_0x5ce1b0['element']['name']==_0x21ef7c['name']?_0x5ce1b0['quantity']++:_0x156da3['push']({'type':_0x44883b+'Object','element':_0x21ef7c,'quantity':0x1}),_0x1730a0['skip'](_0x2686cc=>!('elementEnd'==_0x2686cc['type']&&_0x2686cc['item']==_0x898a6b));}else{if(this['_schema']['checkChild'](_0x898a6b,'$text')||_0x898a6b['is']('element','softBreak')){const _0x3e6207=_0x898a6b;if('add'==_0x44883b&&'elementStart'==_0x1b1b4c['type']||'remove'==_0x44883b&&'elementEnd'==_0x1b1b4c['type'])continue;if(_0x5ce1b0&&-0x1==_0x5ce1b0['type']['indexOf']('Container')){'text'==_0x5ce1b0['type']&&(_0x5ce1b0[_0x44883b]+='\x0a');continue;}let _0x24e5a2;if(_0x24e5a2='add'==_0x44883b?_0x3e6207['nextSibling']&&!this['_schema']['isObject'](_0x3e6207['nextSibling'])?_0x3e6207['nextSibling']:null:_0x3e6207['previousSibling']&&!this['_schema']['isObject'](_0x3e6207['previousSibling'])?_0x3e6207['previousSibling']:null,_0x3e6207['isEmpty']||_0x24e5a2&&_0x24e5a2['isEmpty']){const _0x4fb9c4=_0x24e5a2&&_0x24e5a2['isEmpty']?_0x24e5a2:_0x3e6207;_0x5ce1b0&&_0x5ce1b0['type']==_0x44883b+'EmptyContainer'&&_0x5ce1b0['element']['name']==_0x4fb9c4['name']?_0x5ce1b0['quantity']++:_0x156da3['push']({'type':_0x44883b+'EmptyContainer','element':_0x4fb9c4,'quantity':0x1});}else _0x156da3['push']({'type':_0x44883b+'Container','element':_0x3e6207});}}}}}['_resolveDescriptionItems'](_0x44a8e7){const _0x566087=this['_locale'],_0x5f062c=[],_0x386a27=[],_0x2d1e61=[];for(const _0x3b56b3 of _0x44a8e7)switch(_0x3b56b3['type']){case'text':if(_0x3b56b3['add']=_0x3b56b3['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3b56b3['remove']=_0x3b56b3['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3b56b3['add']&&''!=_0x3b56b3['remove']){_0x5f062c['push']({'type':'replace','content':o(_0x566087,'REPLACE_TEXT',['\x22'+_0x3b56b3['remove']+'\x22','\x22'+_0x3b56b3['add']+'\x22'])});continue;}if(null!=_0x3b56b3['add']['match'](/^ +$/)){_0x5f062c['push']({'type':'insertion','content':o(_0x566087,'*Insert:*\x20%0',o(_0x566087,'ELEMENT_SPACE',_0x3b56b3['add']['length']))});continue;}if(null!=_0x3b56b3['remove']['match'](/^ +$/)){_0x5f062c['push']({'type':'deletion','content':o(_0x566087,'*Remove:*\x20%0',o(_0x566087,'ELEMENT_SPACE',_0x3b56b3['remove']['length']))});continue;}if(''!=_0x3b56b3['add']){_0x5f062c['push']({'type':'insertion','content':o(_0x566087,'*Insert:*\x20%0','\x22'+_0x3b56b3['add']+'\x22')});continue;}_0x5f062c['push']({'type':'deletion','content':o(_0x566087,'*Remove:*\x20%0','\x22'+_0x3b56b3['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5f062c['push']({'type':'insertion','content':o(_0x566087,'*Insert:*\x20%0',this['getItemLabel'](_0x3b56b3['element'],_0x3b56b3['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5f062c['push']({'type':'deletion','content':o(_0x566087,'*Remove:*\x20%0',this['getItemLabel'](_0x3b56b3['element'],_0x3b56b3['quantity']))});continue;case'addContainer':_0x5f062c['push']({'type':'insertion','content':o(_0x566087,'*Split:*\x20%0',this['getItemLabel'](_0x3b56b3['element'],_0x3b56b3['quantity']))});continue;case'removeContainer':_0x5f062c['push']({'type':'deletion','content':o(_0x566087,'*Merge:*\x20%0',this['getItemLabel'](_0x3b56b3['element'],_0x3b56b3['quantity']))});continue;case'addFormat':_0x386a27['push'](_0x3b56b3['key']);continue;case'removeFormat':_0x2d1e61['push'](_0x3b56b3['key']);continue;default:_0x5f062c['push'](_0x3b56b3);}if(_0x386a27['length']){const _0x5a5c4c=_0x386a27['map'](_0x41edc8=>this['_attributeLabels']['has'](_0x41edc8)?this['_attributeLabels']['get'](_0x41edc8):_0x41edc8)['join'](',\x20');_0x5f062c['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5a5c4c)});}if(_0x2d1e61['length']){const _0x32238c=_0x2d1e61['map'](_0x270cfc=>this['_attributeLabels']['has'](_0x270cfc)?this['_attributeLabels']['get'](_0x270cfc):_0x270cfc)['join'](',\x20');_0x5f062c['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x32238c)});}return _0x5f062c;}['_handleCustomCallbackDescription'](_0x2cfd30){for(const _0x2765c6 of this['_customCallbacks']){const _0x1cb7bb=_0x2765c6(_0x2cfd30);if(_0x1cb7bb&&'type'in _0x1cb7bb)return _0x1cb7bb;}}['_handleAttributeSuggestionDescription'](_0x4fc41d,_0x35932b){const _0x52b65c=_0x35932b['data'],_0x5e5ef1=void 0x0===_0x52b65c['newValue']?'removeFormat':'addFormat';_0x4fc41d['push']({'type':_0x5e5ef1,'key':_0x52b65c['key']});}['_handleRenameSuggestionDescription'](_0x342186,_0x12bed9){_0x342186['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x12bed9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x803683,_0x4098fe,_0x3c4d12){if(this['_addDescriptionItems'](_0x803683,_0x4098fe),_0x3c4d12&&_0x3c4d12['getFirstRange']()&&!_0x4098fe['getFirstRange']()['end']['isEqual'](_0x3c4d12['getFirstRange']()['start'])){const _0x4ff8ba=_0x803683[_0x803683['length']-0x1],_0x481241='insertion'==_0x4098fe['type']?'add':'remove';_0x4ff8ba&&'text'==_0x4ff8ba['type']&&(_0x4ff8ba[_0x481241]+='\x0a');}}}class V extends _0x57873f{['afterInit'](){const _0x1d4df3=this['editor'],_0x5b063d=_0x1d4df3['plugins']['get']('TrackChangesEditing');_0x1d4df3['commands']['get']('showAIAssistant')&&_0x5b063d['enableCommand']('showAIAssistant');}}class U extends _0x57873f{['afterInit'](){const _0x8954d=this['editor'],_0x3fa14e=_0x8954d['locale'];if(!_0x8954d['plugins']['has']('AlignmentEditing'))return;const _0x4cbf8a=_0x8954d['plugins']['get']('TrackChangesEditing');_0x4cbf8a['enableDefaultAttributesIntegration']('alignment'),_0x4cbf8a['registerBlockAttribute']('alignment'),_0x4cbf8a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3fa14e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b8eaa=this['editor'],_0x6aa84f=_0x4b8eaa['locale'];_0x4b8eaa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf609d6=>{if('formatBlock'!=_0xf609d6['type'])return;const {data:_0x5c7510}=_0xf609d6;if(_0x5c7510&&'alignment'==_0x5c7510['commandName']){const _0x50afd0=_0x5c7510['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x6aa84f,'*Format:*\x20%0',function(_0x1e2fc2){switch(_0x1e2fc2){case'left':return o(_0x6aa84f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x6aa84f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x6aa84f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x6aa84f,'FORMAT_JUSTIFY_TEXT');}}(_0x50afd0))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x57873f{['afterInit'](){const _0x553ae9=this['editor'],_0xc99849=_0x553ae9['plugins']['get']('TrackChangesEditing'),_0x4b0e2f=_0x553ae9['locale'];for(const _0x108626 of ti){if(!_0x553ae9['plugins']['has'](_0x108626))continue;const _0x33247a=_0x108626['slice'](0x0,-0x7)['toLowerCase'](),_0x4c5a27='FORMAT_'+_0x33247a['toUpperCase']();_0xc99849['enableDefaultAttributesIntegration'](_0x33247a),_0xc99849['registerInlineAttribute'](_0x33247a),_0xc99849['descriptionFactory']['registerAttributeLabel'](_0x33247a,o(_0x4b0e2f,_0x4c5a27));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x223d28=this['editor'],_0x4c4dc6=_0x223d28['locale'],_0xe13001=_0x223d28['plugins']['get']('TrackChangesEditing');function _0x47921f(_0x20b356,_0x5d11b6){_0xe13001['descriptionFactory']['registerDescriptionCallback'](_0x3284e7=>{if('formatInline'!=_0x3284e7['type'])return;const {data:_0x1bf16c}=_0x3284e7;return _0x1bf16c&&_0x1bf16c['commandName']===_0x20b356?_0x1bf16c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c4dc6,'*Format:*\x20%0',_0x5d11b6)}:{'type':'format','content':o(_0x4c4dc6,'*Remove\x20format:*\x20%0',_0x5d11b6)}:void 0x0;});}_0x47921f('bold',o(_0x4c4dc6,'FORMAT_BOLD')),_0x47921f('italic',o(_0x4c4dc6,'FORMAT_ITALIC')),_0x47921f('underline',o(_0x4c4dc6,'FORMAT_UNDERLINE')),_0x47921f('code',o(_0x4c4dc6,'FORMAT_CODE')),_0x47921f('strikethrough',o(_0x4c4dc6,'FORMAT_STRIKETHROUGH')),_0x47921f('subscript',o(_0x4c4dc6,'FORMAT_SUBSCRIPT')),_0x47921f('superscript',o(_0x4c4dc6,'FORMAT_SUPERSCRIPT'));}}class F extends _0x57873f{['afterInit'](){const _0x405f15=this['editor'],_0x1a597b=_0x405f15['locale'];if(!_0x405f15['plugins']['has']('BlockQuoteEditing'))return;const _0x23b056=_0x405f15['plugins']['get']('TrackChangesEditing'),_0x49a83b=this['editor']['commands']['get']('blockQuote');_0x23b056['enableCommand']('blockQuote',(_0x5e2c95,_0x1923ba={})=>{const _0x35e29f=this['editor']['model']['document']['selection'],_0x2a0dce=_0x1923ba&&void 0x0!==_0x1923ba['forceValue']?_0x1923ba['forceValue']:!_0x49a83b['value'];let _0x398d83=[];if(_0x2a0dce){const _0x2d72f1=Array['from'](_0x35e29f['getSelectedBlocks']())['filter'](_0x239ad1=>oo(_0x239ad1)||function(_0x192f7b,_0x27f66a){const _0x4deadc=_0x27f66a['checkChild'](_0x192f7b['parent'],'blockQuote'),_0x126444=_0x27f66a['checkChild'](['$root','blockQuote'],_0x192f7b);return _0x4deadc&&_0x126444;}(_0x239ad1,this['editor']['model']['schema']));_0x398d83=to(_0x2d72f1,_0x405f15['model']);}else{const _0xd05075=Array['from'](_0x35e29f['getSelectedBlocks']())['filter'](_0x37a29f=>oo(_0x37a29f));_0x398d83=to(_0xd05075,_0x405f15['model']);}_0x405f15['model']['change'](()=>{for(const _0x5739a4 of _0x398d83)_0x23b056['markBlockFormat'](_0x5739a4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2a0dce}]});});}),_0x23b056['descriptionFactory']['registerDescriptionCallback'](_0x5002a0=>{const {data:_0xd4e91e}=_0x5002a0;if(_0xd4e91e&&'blockQuote'==_0xd4e91e['commandName']){const _0x145caa=o(_0x1a597b,'ELEMENT_BLOCK_QUOTE');return _0xd4e91e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a597b,'*Set\x20format:*\x20%0',_0x145caa)}:{'type':'format','content':o(_0x1a597b,'*Remove\x20format:*\x20%0',_0x145caa)};}});}}function oo(_0x3d4059){return'blockQuote'==_0x3d4059['parent']['name'];}class L extends _0x57873f{['afterInit'](){const _0x3d4a1b=this['editor'];_0x3d4a1b['plugins']['has']('CaseChange')&&(_0x3d4a1b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3d4a1b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3d4a1b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x57873f{['afterInit'](){const _0x2b209c=this['editor'];_0x2b209c['commands']['get']('ckbox')&&_0x2b209c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x57873f{['afterInit'](){const _0x52e48e=this['editor'];if(!_0x52e48e['plugins']['has']('CodeBlock'))return;const _0x1af372=_0x52e48e['plugins']['get']('TrackChangesEditing'),_0xba98d3=_0x52e48e['locale'],_0x1c405d=_0x52e48e['config']['get']('codeBlock')['languages'],_0x59c015=_0x52e48e['commands']['get']('codeBlock');_0x1af372['enableCommand']('indentCodeBlock'),_0x1af372['enableCommand']('outdentCodeBlock'),_0x1af372['enableCommand']('codeBlock',(_0x1ba40b,_0x3e0b2a={})=>{const _0x1dea37=_0x52e48e['model'],_0x223f27=_0x52e48e['model']['document']['selection'],_0x1bd6d4=_0x3e0b2a&&void 0x0!==_0x3e0b2a['forceValue']?_0x3e0b2a['forceValue']:!_0x59c015['value'];let _0x27b1db;_0x3e0b2a['language']||(_0x3e0b2a['language']=_0x1c405d[0x0]['language']),_0x27b1db=_0x1bd6d4?Array['from'](_0x223f27['getSelectedBlocks']())['filter'](_0x44dba7=>eo(_0x44dba7)||function(_0x4c4d10,_0x54d8e2){if(_0x4c4d10['is']('rootElement')||_0x54d8e2['isLimit'](_0x4c4d10))return!0x1;return _0x54d8e2['checkChild'](_0x4c4d10['parent'],'codeBlock');}(_0x44dba7,_0x1dea37['schema'])):Array['from'](_0x223f27['getSelectedBlocks']())['filter'](_0x353961=>eo(_0x353961));const _0x1d88ef=to(_0x27b1db,_0x1dea37);_0x1dea37['change'](()=>{for(const _0x128be2 of _0x1d88ef)_0x1af372['markBlockFormat'](_0x128be2,{'commandName':'codeBlock','commandParams':[{..._0x3e0b2a,'forceValue':_0x1bd6d4}],'formatGroupId':'blockName'});});}),(_0x1af372['descriptionFactory']['registerElementLabel']('codeBlock',_0x4af49c=>o(_0xba98d3,'ELEMENT_CODE_BLOCK',_0x4af49c)),_0x1af372['descriptionFactory']['registerDescriptionCallback'](_0x38e26a=>{if('formatBlock'!=_0x38e26a['type'])return;const _0x27f25d=_0xba98d3['t'],{data:_0x557e97}=_0x38e26a;if(!_0x557e97||'codeBlock'!=_0x557e97['commandName'])return;const _0x282bc3=_0x557e97['commandParams'][0x0]['language'],_0x90bf98=_0x27f25d(_0x1c405d['find'](_0x46e130=>_0x46e130['language']===_0x282bc3)['label'])['toLowerCase']();return _0x557e97['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xba98d3,'*Set\x20format:*\x20%0',o(_0xba98d3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x90bf98+')')}:{'type':'format','content':o(_0xba98d3,'*Remove\x20format:*\x20%0',o(_0xba98d3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2edfb3){return'codeBlock'==_0x2edfb3['name'];}class q extends _0x57873f{['afterInit'](){const _0x3fdcab=this['editor'];if(!_0x3fdcab['plugins']['has']('CommentsEditing'))return;_0x3fdcab['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x40a4c1,_0x221328,_0x3e3021){const _0x43d588=[];for(const _0xe373e7 of _0x221328['getItems']())_0xe373e7['hasAttribute'](_0x40a4c1)&&_0x43d588['push'](_0x3e3021['createRangeOn'](_0xe373e7));return _0x43d588;}function _e(_0x42b488,_0x305359,{showActiveMarker:_0x5e4718=!0x0}={}){const _0x3a952c=_0x42b488['plugins']['get']('TrackChangesEditing');return(_0x531391,_0x5865b6,_0x5cda3d)=>{if(!_0x5cda3d['consumable']['test'](_0x5865b6['markerRange'],_0x531391['name']))return;const _0x257c1c=_0x5865b6['markerRange']['getWalker'](),_0x4e0b91=_0x5865b6['markerRange']['start'],_0x5e5a61=_0x42b488['model']['schema'];let _0x445819=null,_0x189167=null,_0x226f3d=!0x1,_0x14b7ef=!0x1;for(const _0x42af29 of _0x257c1c){const _0x33d21e=_0x42af29['item'];_0x226f3d=_0x226f3d||_0x5e5a61['isContent'](_0x33d21e);const _0x4c9219=_0x5cda3d['mapper']['toViewElement'](_0x33d21e);if(_0x4c9219&&_0x4c9219['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x42af29['type']&&(_0x5e5a61['isBlock'](_0x33d21e)&&!_0x5e5a61['isLimit'](_0x33d21e)&&(_0x33d21e['nextSibling']||_0x4e0b91['isAtEnd']?_0x445819&&_0x445819['parent']==_0x33d21e||(_0x445819=_0x33d21e,_0x3b2ba0(_0x42af29['previousPosition']),_0x14b7ef=!0x0):_0x189167=_0x189167||_0x42af29['previousPosition']));}function _0x3b2ba0(_0x513ecd){const {authorId:_0x39af41}=_0x3a952c['_splitMarkerName'](_0x5865b6['markerName']),_0x302ef3=_0x5cda3d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x305359,'data-author-id':_0x39af41}),_0x17ff70=_0x5cda3d['mapper']['toViewPosition'](_0x513ecd);_0x5e4718&&_0x3a952c['activeMarkers']['includes'](_0x5865b6['markerName'])&&_0x5cda3d['writer']['addClass']('ck-suggestion-marker--active',_0x302ef3),_0x5cda3d['writer']['insert'](_0x17ff70,_0x302ef3),_0x5cda3d['mapper']['bindElementToMarker'](_0x302ef3,_0x5865b6['markerName']);}_0x226f3d||_0x14b7ef||!_0x189167||_0x3b2ba0(_0x189167);};}class z extends _0x57873f{static get['requires'](){return[_0x4715dd];}['init'](){const _0x24c953=this['editor'],_0x22b0dc=_0x24c953['plugins']['get']('TrackChangesEditing');_0x22b0dc['enableCommand']('delete');const _0x1733b7=_0x24c953['commands']['get']('deleteForward');_0x22b0dc['enableCommand']('deleteForward',(_0x50c640,_0x5761db={})=>{const _0x56618a=_0x24c953['model']['createSelection'](_0x24c953['model']['document']['selection']);_0x56618a['isCollapsed']&&_0x24c953['model']['modifySelection'](_0x56618a,{'direction':'forward','unit':_0x5761db['unit']});const _0x3bc59a=_0x56618a['getFirstRange'](),_0x21166e=_0x40584f['fromRange'](_0x3bc59a);let _0x32da42;_0x50c640(_0x5761db),_0x32da42='$graveyard'==_0x21166e['root']['rootName']?_0x24c953['model']['createRange'](_0x3bc59a['start']):_0x24c953['model']['createRange'](_0x21166e['start'],_0x21166e['end']),_0x21166e['detach'](),_0x24c953['model']['enqueueChange'](_0x1733b7['buffer']['batch'],_0x49e1a5=>{_0x1733b7['buffer']['lock'](),_0x49e1a5['setSelection'](_0x49e1a5['createRange'](_0x32da42['end'])),_0x1733b7['buffer']['unlock']();});}),_0x24c953['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x24c953,'merge'),{'priority':'high'}),_0x24c953['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x378f94,_0xcd7cc6,_0x212c01)=>{_0x212c01['options']['showSuggestionHighlights']&&_e(_0x24c953,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x378f94,_0xcd7cc6,_0x212c01);},{'priority':'high'}),_0x24c953['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x28496d,_0x4814ce,_0x5f35b8)=>{const _0x479942=_0x5f35b8['mapper']['markerNameToElements'](_0x4814ce['markerName']);if(_0x479942){for(const _0x5e61a4 of _0x479942)_0x5e61a4['is']('uiElement')&&(_0x5f35b8['mapper']['unbindElementFromMarkerName'](_0x5e61a4,_0x4814ce['markerName']),_0x5f35b8['writer']['remove'](_0x5e61a4));}},{'priority':'high'});}}class K extends _0x57873f{['afterInit'](){const _0x34a94f=this['editor'];if(!_0x34a94f['plugins']['has']('ListEditing'))return;const _0x5ca07e=_0x34a94f['locale'],_0x54d074=_0x34a94f['plugins']['get']('TrackChangesEditing'),_0x27c5d7=_0x34a94f['plugins']['has']('TodoListEditing'),_0x38de5e=!!_0x34a94f['config']['get']('list.multiBlock');function _0x78ac92(_0x3e1b86){return{'type':'format','content':''+o(_0x5ca07e,'*Set\x20format:*\x20%0',_0x3e1b86)};}function _0x315a1f(_0x51c6ef){return{'type':'format','content':''+o(_0x5ca07e,'*Remove\x20format:*\x20%0',_0x51c6ef)};}_0x54d074['enableDefaultAttributesIntegration']('numberedList'),_0x54d074['enableDefaultAttributesIntegration']('bulletedList'),_0x54d074['enableDefaultAttributesIntegration']('customNumberedList'),_0x54d074['enableDefaultAttributesIntegration']('customBulletedList'),_0x54d074['enableDefaultAttributesIntegration']('indentList'),_0x54d074['enableDefaultAttributesIntegration']('outdentList'),_0x54d074['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x54d074['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x54d074['registerBlockAttribute']('listItemId'),_0x54d074['registerBlockAttribute']('listType'),_0x54d074['registerBlockAttribute']('listIndent'),_0x38de5e&&(_0x54d074['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x54d074['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x27c5d7&&(_0x54d074['enableDefaultAttributesIntegration']('todoList'),_0x54d074['enableDefaultAttributesIntegration']('checkTodoList'),_0x54d074['registerBlockAttribute']('todoListChecked'),_0x54d074['descriptionFactory']['registerDescriptionCallback'](_0x139342=>{const {data:_0x27d6bb}=_0x139342;if(_0x27d6bb&&'todoListChecked'==_0x27d6bb['key'])return{'type':'format','content':_0x27d6bb['newValue']?o(_0x5ca07e,'*Check\x20item*'):o(_0x5ca07e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x51b4a9=>{if(_0x51b4a9['batch']['isUndo'])return!0x1;let _0x6ce9ac=!0x1;const _0x3715db=_0x54d074['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5acaf3=>'todoListChecked'===_0x54d074['_getAttributeKey'](_0x5acaf3));for(const _0x552424 of _0x3715db){'todo'!=_0x552424['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x54d074['_findSuggestions'](_0x552424['getFirstRange'](),'attribute')['find'](_0x3a4c5a=>'listType'===_0x54d074['_getAttributeKey'](_0x3a4c5a['suggestion']))||(_0x51b4a9['removeMarker'](_0x552424['getFirstMarker']()),_0x6ce9ac=!0x0));}return _0x6ce9ac;})),_0x54d074['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5ca07e,'FORMAT_INDENT'));const _0x4f6588={'type':'format','content':''};_0x54d074['descriptionFactory']['registerDescriptionCallback'](_0x3b2c8=>{const {data:_0x33fda5}=_0x3b2c8;if(!_0x33fda5||'listType'!=_0x33fda5['key'])return;let _0x141d1e=_0x3b2c8['head'];for(;_0x141d1e;){if(_0x141d1e['data']&&(('listStyle'==_0x141d1e['data']['key']||'listMarkerStyle'==_0x141d1e['data']['key'])&&(_0x141d1e['data']['newValue']&&'default'!=_0x141d1e['data']['newValue']||'default'!=_0x141d1e['data']['oldValue']&&!_0x33fda5['newValue'])||!_0x38de5e&&_0x141d1e['data']['key']==m))return _0x4f6588;_0x141d1e=_0x141d1e['next'];}if(null==_0x33fda5['newValue'])switch(_0x33fda5['oldValue']){case'bulleted':return _0x315a1f(o(_0x5ca07e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x315a1f(o(_0x5ca07e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x315a1f(o(_0x5ca07e,'ELEMENT_TODO_LIST'));}switch(_0x33fda5['newValue']){case'bulleted':return _0x78ac92(o(_0x5ca07e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x78ac92(o(_0x5ca07e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x78ac92(o(_0x5ca07e,'ELEMENT_TODO_LIST'));}}),_0x54d074['descriptionFactory']['registerDescriptionCallback'](_0x104bd7=>{const {data:_0x5c00b2}=_0x104bd7;if(_0x5c00b2&&'listIndent'==_0x5c00b2['key'])return null==_0x5c00b2['newValue']||null==_0x5c00b2['oldValue']&&0x0==_0x5c00b2['newValue']?_0x4f6588:void 0x0;}),_0x54d074['descriptionFactory']['registerDescriptionCallback'](_0x16b6c0=>{if('attribute'!=_0x16b6c0['type'])return;const {data:_0x5cf3b6}=_0x16b6c0;if(!_0x5cf3b6||'listItemId'!=_0x5cf3b6['key'])return;const _0x9e021d=Ee(_0x16b6c0);return'newValue'==_0x9e021d?{'type':'format','content':o(_0x5ca07e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x9e021d?{'type':'format','content':o(_0x5ca07e,'*Split:*\x20list\x20item')}:_0x4f6588;}),_0x34a94f['model']['document']['registerPostFixer'](_0xf63e32=>this['listItemIdFixer'](_0xf63e32)),_0x34a94f['model']['document']['registerPostFixer'](_0x4ffe38=>this['noTrackChangesFixer'](_0x4ffe38)),_0x34a94f['model']['document']['on']('change:data',(_0x105096,_0x43f10b)=>{if(_0x43f10b['isUndo']||!_0x43f10b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x947e44){if(_0x947e44['batch']['isUndo']||!_0x947e44['batch']['isLocal'])return!0x1;let _0x4823f5=!0x1;const _0x1f02e5=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43a7a0=>_0x43a7a0['data']&&'listItemId'==_0x43a7a0['data']['key'])['filter'](_0x3d150d=>_0x3d150d['data']['newValue']&&_0x3d150d['data']['oldValue']);for(const _0x22ac88 of _0x1f02e5)Ee(_0x22ac88)||(_0x947e44['removeMarker'](_0x22ac88['getFirstMarker']()),_0x4823f5=!0x0);return _0x4823f5;}['noTrackChangesFixer'](_0x1109e8){if(_0x1109e8['batch']['isUndo']||!_0x1109e8['batch']['isLocal'])return!0x1;const _0x4e586c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4e586c['trackChangesCommand']['value'])return!0x1;let _0x5684bc=!0x1;const _0x27e7c0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x530b96=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x299c05=>'attribute'==_0x299c05['type'])['filter'](_0x4605d7=>_0x27e7c0['includes'](_0x4605d7['attributeKey']));if(0x0==_0x530b96['length'])return _0x5684bc;for(const _0x500803 of _0x530b96){const _0x587ec0=_0x4e586c['_findSuggestions'](_0x500803['range'],'attribute')['filter'](_0x3beae9=>!_0x3beae9['meta']['isNextTo'])['map'](_0x5819f2=>_0x5819f2['suggestion'])['filter'](_0xbce4e5=>{const _0x28d4a3=_0x4e586c['_getAttributeKey'](_0xbce4e5);return _0x27e7c0['includes'](_0x28d4a3);});if(_0x587ec0['length']){for(const _0x548f87 of _0x587ec0)_0x1109e8['removeMarker'](_0x548f87['getFirstMarker']());_0x5684bc=!0x0;}}return _0x5684bc;}['assureChains'](){const _0x4760dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5921c8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x203d56;const _0x52b1d9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1eea0d=>{if(_0x1eea0d['data']['oldRange']||!_0x1eea0d['data']['newRange'])return null;if(!_0x1eea0d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1e501e}=_0x4760dc['_splitMarkerName'](_0x1eea0d['name']);if(!_0x4760dc['hasSuggestion'](_0x1e501e))return null;const _0x306cf0=_0x4760dc['getSuggestion'](_0x1e501e);return _0x5921c8['includes'](_0x306cf0['data']['key']);})['map'](_0x3d0243=>{const {id:_0x4056da}=_0x4760dc['_splitMarkerName'](_0x3d0243['name']),_0x58b0cc=_0x4760dc['getSuggestion'](_0x4056da);return _0x203d56=_0x58b0cc['attributes']['groupId'],_0x58b0cc['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x52b1d9['size'])return;const _0x3b2289=_0x4760dc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x100fb7=>'attribute'==_0x100fb7['type']&&_0x100fb7['data']&&_0x5921c8['includes'](_0x100fb7['data']['key'])&&_0x100fb7['attributes']['groupId']!=_0x203d56)['map'](_0x2a8261=>({'listItem':_0x2a8261['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2a8261['attributes']['groupId']})),_0x2ef7af=new Set();for(const {groupId:_0x5437b5,listItem:_0x2c4308}of _0x3b2289)_0x52b1d9['has'](_0x2c4308)&&_0x2ef7af['add'](_0x5437b5);for(const _0x1e5c49 of _0x4760dc['getSuggestions']())_0x2ef7af['has'](_0x1e5c49['attributes']['groupId'])&&_0x1e5c49['setAttribute']('groupId',_0x203d56);}['_supportLegacySuggestions'](){const _0x224cb5=this['editor'],_0x91f175=_0x224cb5['locale'],_0x3bfec6=_0x224cb5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3bfec6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3453d8,_0x607ca2){const _0x442255=[];for(let _0x293b08 of _0x3453d8)_0x293b08['start']['nodeAfter']===_0x293b08['end']['parent']&&(_0x293b08=_0x224cb5['model']['createRange'](_0x224cb5['model']['createPositionAt'](_0x293b08['start']['nodeAfter'],0x0))),_0x442255['push'](_0x293b08);_0x224cb5['model']['change'](_0x4a124c=>{const _0xcfc80f=_0x224cb5['model']['document']['selection'],_0xf8b02a=Array['from'](_0xcfc80f['getRanges']())['map'](_0x52fc81=>_0x40584f['fromRange'](_0x52fc81));_0x4a124c['setSelection'](_0x442255),_0x224cb5['commands']['get'](_0x607ca2['commandName'])['refresh'](),_0x607ca2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x224cb5['execute'](_0x607ca2['commandName'],..._0x607ca2['commandParams']),_0x4a124c['setSelection'](_0xf8b02a);for(const _0x51d27e of _0xf8b02a)_0x51d27e['detach']();});}),_0x3bfec6['descriptionFactory']['registerElementLabel'](function(_0x4af0d2){const _0x5c5ea7=!_0x224cb5['model']['schema']['isObject'](_0x4af0d2),_0x3c3e3b=_0x4af0d2['previousSibling'],_0x4b2cd0=_0x4af0d2['nextSibling'],_0x3ea6ba=_0x4af0d2['getAttribute']('listItemId'),_0x23575b=!_0x3c3e3b||_0x3c3e3b['getAttribute']('listItemId')!==_0x3ea6ba,_0x5d8587=!_0x4b2cd0||_0x4b2cd0['getAttribute']('listItemId')!==_0x3ea6ba;return _0x5c5ea7&&Boolean(_0x3ea6ba)&&_0x23575b&&_0x5d8587;},_0x83d4d4=>o(_0x91f175,'ELEMENT_LIST_ITEM',_0x83d4d4));}['_registerLegacyDescription'](){const _0x1ec97c=this['editor'],_0x3d75e7=_0x1ec97c['locale'];function _0x338666(_0x4b559f){const _0x389295=_0x1ec97c['commands']['get']('bulletedList')['value'],_0x175d54=_0x1ec97c['commands']['get']('numberedList')['value'];return'numberedList'===_0x4b559f?_0x389295:_0x175d54;}_0x1ec97c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4569fc){if('formatBlock'!=_0x4569fc['type'])return;const {data:_0x49fe03}=_0x4569fc;if(!_0x49fe03)return;let _0x2bdb4b,_0xf0f3fb,_0x4218a3,_0xe7d725;switch(_0x49fe03['commandName']){case'bulletedList':_0x4218a3=_0x49fe03['commandParams'][0x0]['forceValue'],_0xe7d725=_0x338666(_0x49fe03['commandName']),_0x2bdb4b=_0x4218a3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xe7d725&&_0x1ec97c['config']['get']('list.multiBlock')||(_0x2bdb4b='*Change\x20to:*\x20%0'),_0xf0f3fb={'type':'format','content':o(_0x3d75e7,_0x2bdb4b,o(_0x3d75e7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4218a3=_0x49fe03['commandParams'][0x0]['forceValue'],_0xe7d725=_0x338666(_0x49fe03['commandName']),_0x2bdb4b=_0x4218a3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xe7d725&&_0x1ec97c['config']['get']('list.multiBlock')||(_0x2bdb4b='*Change\x20to:*\x20%0'),_0xf0f3fb={'type':'format','content':o(_0x3d75e7,_0x2bdb4b,o(_0x3d75e7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2bdb4b='*Indent:*\x20%0',_0xf0f3fb={'type':'format','content':o(_0x3d75e7,_0x2bdb4b,o(_0x3d75e7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2bdb4b=function(_0x1eef74){const _0x2b0f4b=_0x1eef74['getFirstRange']();let _0x38df02=_0x2b0f4b['start']['nodeAfter'];for(;_0x38df02&&_0x2b0f4b['containsItem'](_0x38df02);){if(_0x38df02['getAttribute']('listIndent')>0x0)return!0x1;_0x38df02=_0x38df02['nextSibling'];}return!0x0;}(_0x4569fc)?o(_0x3d75e7,'*Format:*\x20remove\x20from\x20%0',o(_0x3d75e7,function(_0x673ad1){return'ELEMENT_'+_0x673ad1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4569fc))):o(_0x3d75e7,'*Outdent:*\x20%0',o(_0x3d75e7,'ELEMENT_LIST_ITEM')),_0xf0f3fb={'type':'format','content':_0x2bdb4b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x49fe03['multipleBlocks']&&(_0x2bdb4b='*Merge:*\x20%0',_0xf0f3fb={'type':'deletion','content':o(_0x3d75e7,_0x2bdb4b,o(_0x3d75e7,'ELEMENT_LIST_ITEM'))});}return _0xf0f3fb;});}}function Ee(_0x4dbc83){let _0x553d80=_0x4dbc83['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x553d80;){const _0xa2e0b7=_0x553d80['getAttribute']('listItemId');if(!_0xa2e0b7)return!0x1;if(_0xa2e0b7==_0x4dbc83['data']['newValue'])return'newValue';if(_0xa2e0b7==_0x4dbc83['data']['oldValue'])return'oldValue';_0x553d80=_0x553d80['previousSibling'];}return!0x1;}class pe extends _0x57873f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x59965a=this['editor']['config']['get']('list.properties'),_0x394b84=this['editor']['plugins']['get']('TrackChangesEditing');_0x59965a['styles']&&(_0x394b84['enableDefaultAttributesIntegration']('listStyle'),_0x394b84['registerBlockAttribute']('listStyle')),_0x59965a['reversed']&&(_0x394b84['enableDefaultAttributesIntegration']('listReversed'),_0x394b84['registerBlockAttribute']('listReversed')),_0x59965a['startIndex']&&(_0x394b84['enableDefaultAttributesIntegration']('listStart'),_0x394b84['registerBlockAttribute']('listStart'));const _0x1e556e={'type':'format','content':''};_0x394b84['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5ac3db=this['editor']['locale'];_0x394b84['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5ac3db,'FORMAT_LIST_REVERSED')),_0x394b84['descriptionFactory']['registerDescriptionCallback'](_0x43322f=>{const {data:_0x40c4ee}=_0x43322f;if(_0x40c4ee&&'listReversed'==_0x40c4ee['key'])return null==_0x40c4ee['newValue']||0x0==_0x40c4ee['newValue']&&null==_0x40c4ee['oldValue']?_0x1e556e:void 0x0;}),_0x394b84['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5ac3db,'FORMAT_LIST_START')),_0x394b84['descriptionFactory']['registerDescriptionCallback'](_0x22a2a6=>{const {data:_0x340bdf}=_0x22a2a6;if(_0x340bdf&&'listStart'==_0x340bdf['key'])return null==_0x340bdf['newValue']||0x1==_0x340bdf['newValue']&&null==_0x340bdf['oldValue']?_0x1e556e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x172721=>{if(_0x172721['batch']['isUndo'])return!0x1;let _0x481928=!0x1;const _0xad21de=_0x394b84['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4749b6=>{const _0x4b7caf=_0x394b84['_getAttributeKey'](_0x4749b6);return'listStart'==_0x4b7caf||'listReversed'==_0x4b7caf;});for(const _0x1a1f9a of _0xad21de){const _0x4aae26=_0x1a1f9a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4aae26||'customNumbered'==_0x4aae26)continue;_0x394b84['_findSuggestions'](_0x1a1f9a['getFirstRange'](),'attribute')['find'](_0x17eefb=>'listType'==_0x394b84['_getAttributeKey'](_0x17eefb['suggestion']))||(_0x172721['removeMarker'](_0x1a1f9a['getFirstMarker']()),_0x481928=!0x0);}return _0x481928;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x403c9e){const _0x1c9a11=this['editor']['locale'],{data:_0x49d68a}=_0x403c9e,_0x560b96={'type':'format','content':''};if(!_0x49d68a||'listStyle'!=_0x49d68a['key'])return;if(!_0x49d68a['oldValue'])return'default'==_0x49d68a['newValue']?_0x560b96:{'type':'format','content':''+o(_0x1c9a11,'*Set\x20format:*\x20%0',o(_0x1c9a11,this['_getTranslationKeyForListStyle'](_0x49d68a['newValue'])))};if(!_0x49d68a['newValue']){if('default'==_0x49d68a['oldValue'])return _0x560b96;let _0x25000c=_0x403c9e['head'];for(;_0x25000c;){if(_0x25000c['data']&&'listType'==_0x25000c['data']['key']&&_0x25000c['data']['newValue'])return _0x560b96;_0x25000c=_0x25000c['next'];}return{'type':'format','content':''+o(_0x1c9a11,'*Remove\x20format:*\x20%0',o(_0x1c9a11,this['_getTranslationKeyForListStyle'](_0x49d68a['oldValue'])))};}if('default'!=_0x49d68a['newValue'])return{'type':'format','content':''+o(_0x1c9a11,'*Set\x20format:*\x20%0',o(_0x1c9a11,this['_getTranslationKeyForListStyle'](_0x49d68a['newValue'])))};let _0x2b84a4=_0x403c9e['head'];for(;_0x2b84a4;){if(_0x2b84a4['data']&&'listType'==_0x2b84a4['data']['key']&&_0x2b84a4['data']['newValue']&&_0x2b84a4['data']['oldValue'])return _0x560b96;_0x2b84a4=_0x2b84a4['next'];}return{'type':'format','content':o(_0x1c9a11,'*Set\x20format:*\x20%0',o(_0x1c9a11,'ELEMENT_'+_0x403c9e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2d1194=this['editor'],_0x171abf=_0x2d1194['locale'];_0x2d1194['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c1c91=>{if('formatBlock'!=_0x5c1c91['type'])return;const {data:_0x4fb9d0}=_0x5c1c91;if(!_0x4fb9d0)return;let _0x2501a4,_0x333533;switch(_0x4fb9d0['commandName']){case'listStyle':_0x2501a4='*Change\x20to:*\x20%0',_0x333533={'type':'format','content':o(_0x171abf,_0x2501a4,o(_0x171abf,this['_getTranslationKeyForListStyle'](_0x4fb9d0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2501a4=_0x4fb9d0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x333533={'type':'format','content':o(_0x171abf,_0x2501a4)};break;case'listStart':_0x2501a4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x333533={'type':'format','content':o(_0x171abf,_0x2501a4,_0x4fb9d0['commandParams'][0x0]['startIndex'])};}return _0x333533;});}['_getTranslationKeyForListStyle'](_0xa4da3d){return'ELEMENT_'+function(_0x451ff4){if(ye['includes'](_0x451ff4))return'bulleted';if(Se['includes'](_0x451ff4))return'numbered';return null;}(_0xa4da3d)['toUpperCase']()+'_LIST_'+_0xa4da3d['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x57873f{static get['requires'](){return[_0x301288];}['init'](){const _0x1caf83=this['editor'],_0x16e367=_0x1caf83['plugins']['get']('TrackChangesEditing'),_0x43d82f=_0x1caf83['commands']['get']('enter');_0x16e367['enableCommand']('enter',()=>{_0x1caf83['model']['change'](_0x51491f=>{const _0x34e698=_0x1caf83['model']['document']['selection'],_0x47a9aa=_0x34e698['getFirstPosition'](),_0x3936ac=_0x40584f['fromRange'](_0x34e698['getFirstRange']());if(_0x43d82f['enterBlock'](_0x51491f)){const _0x3df596=_0x1caf83['model']['createPositionAt'](_0x47a9aa['parent']['nextSibling'],0x0),_0x8a87d7=_0x51491f['createRange'](_0x47a9aa,_0x3df596);_0x16e367['markInsertion'](_0x8a87d7);}else _0x51491f['setSelection'](_0x51491f['createRange'](_0x3936ac['end']));_0x3936ac['detach'](),_0x43d82f['fire']('afterExecute',{'writer':_0x51491f});});}),_0x1caf83['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1caf83,'split'),{'priority':'high'}),_0x1caf83['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x13b4dc,_0x1b0ab9,_0x223728)=>{const _0x48c6d3=_0x223728['mapper']['markerNameToElements'](_0x1b0ab9['markerName']);if(_0x48c6d3){for(const _0x4f4a79 of _0x48c6d3)_0x4f4a79['hasClass']('ck-suggestion-marker-split')&&(_0x223728['mapper']['unbindElementFromMarkerName'](_0x4f4a79,_0x1b0ab9['markerName']),_0x223728['writer']['remove'](_0x4f4a79));}},{'priority':'high'}),_0x1caf83['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x58e034,_0x1e266e,_0x4100de)=>{_0x4100de['options']['showSuggestionHighlights']&&_e(_0x1caf83,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x58e034,_0x1e266e,_0x4100de);},{'priority':'high'});}}class X extends _0x57873f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5d5479=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d5479['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5d5479['enableCommand']('findNext'),_0x5d5479['enableCommand']('findPrevious'),_0x5d5479['enableCommand']('replace'),_0x5d5479['enableCommand']('replaceAll');}['handleFindCommand'](_0xd2be03,_0x4a4259,_0x2107d2={}){const _0x151cb7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xd2be03(_0x4c4d40=>{let _0x2b4f98=('string'==typeof _0x4a4259?_0x151cb7['findByTextCallback'](_0x4a4259,_0x2107d2):_0x4a4259)(_0x4c4d40);Array['isArray'](_0x2b4f98)&&(_0x2b4f98={'results':_0x2b4f98,'searchText':'string'==typeof _0x4a4259?_0x4a4259:''});const _0xfe40a1=_0x2b4f98['results']['filter'](_0x57a6fb=>!0x1===this['_isInDeletionRange'](_0x57a6fb,_0x4c4d40['item']));return{..._0x2b4f98,'results':_0xfe40a1};},_0x2107d2);}['_isInDeletionRange'](_0x27d23f,_0x4c7b73){const _0x20a8bf=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c7b73,_0x27d23f['start']),this['editor']['model']['createPositionAt'](_0x4c7b73,_0x27d23f['end']));for(const _0x1807cf of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x20a8bf['getIntersection'](_0x1807cf['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x57873f{['afterInit'](){const _0x114a8b=this['editor']['locale'],_0x4d0063=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x16ba67,commandName:_0x5de8af}of ro)this['editor']['plugins']['has'](_0x16ba67)&&(_0x4d0063['enableDefaultAttributesIntegration'](_0x5de8af),_0x4d0063['registerInlineAttribute'](_0x5de8af));_0x4d0063['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x114a8b,'FORMAT_FONT_SIZE')),_0x4d0063['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x114a8b,'FORMAT_FONT_FAMILY')),_0x4d0063['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x114a8b,'FORMAT_FONT_COLOR')),_0x4d0063['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x114a8b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ce7c2=this['editor'],_0x59b484=_0x4ce7c2['locale'];_0x4ce7c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ab9c7=>{const _0x524e17=_0x59b484['t'];if('formatInline'!=_0x2ab9c7['type'])return;const {data:_0x2b93dd}=_0x2ab9c7;if(null!=_0x2b93dd){if('fontSize'==_0x2b93dd['commandName']){const _0x2e3ade=_0x2b93dd['commandParams'][0x0]['value'];if(_0x2e3ade){const _0xd8e68=_0x524e17(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4f890f=>_0x4f890f['model']==_0x2e3ade)['title'])['toLowerCase']();return{'type':'format','content':o(_0x59b484,'*Set\x20font\x20size:*\x20%0',_0xd8e68)};}return{'type':'format','content':o(_0x59b484,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2b93dd['commandName']){const _0x49686c=_0x2b93dd['commandParams'][0x0]['value'];return _0x49686c?{'type':'format','content':o(_0x59b484,'*Set\x20font\x20family:*\x20%0',_0x49686c)}:{'type':'format','content':o(_0x59b484,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2b93dd['commandName']){const _0x355c9b=_0x2b93dd['commandParams'][0x0]['value'];if(_0x355c9b){const _0x420a60=_0xc9e50a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3fe2eb=>_0x3fe2eb['model']==_0x355c9b);let _0x7c85f3=_0x355c9b,_0x2652d0='';return _0x420a60&&(_0x7c85f3=_0x420a60['label'],_0x2652d0=_0x524e17(_0x7c85f3)['toLowerCase']()),{'type':'format','content':o(_0x59b484,'*Set\x20font\x20color:*\x20%0',_0x2652d0)['trim'](),'color':{'value':_0x355c9b,'title':_0x2652d0||_0x7c85f3}};}return{'type':'format','content':o(_0x59b484,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2b93dd['commandName']){const _0x39b118=_0x2b93dd['commandParams'][0x0]['value'];if(_0x39b118){const _0x59e3f7=_0xc9e50a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x558c4c=>_0x558c4c['model']==_0x39b118);let _0x90205e=_0x39b118,_0x10b2d3='';return _0x59e3f7&&(_0x90205e=_0x59e3f7['label'],_0x10b2d3=_0x524e17(_0x90205e)['toLowerCase']()),{'type':'format','content':o(_0x59b484,'*Set\x20font\x20background\x20color:*\x20%0',_0x10b2d3)['trim'](),'color':{'value':_0x39b118,'title':_0x10b2d3||_0x90205e}};}return{'type':'format','content':o(_0x59b484,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x57873f{['afterInit'](){const _0x79e67f=this['editor'],_0x561806=_0x79e67f['plugins']['get']('TrackChangesEditing'),_0xfdc53=_0x79e67f['commands']['get']('copyFormat'),_0x16b0b3=_0x79e67f['commands']['get']('pasteFormat');_0xfdc53&&_0x16b0b3&&(_0x561806['enableDefaultAttributesIntegration']('pasteFormat'),_0x561806['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4a6756=this['editor'],_0x1c28d2=_0x4a6756['locale'];_0x4a6756['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4959d8=>{if('formatBlock'!=_0x4959d8['type']&&'formatInline'!=_0x4959d8['type'])return;const {data:_0x163bb0}=_0x4959d8;if(_0x163bb0&&'pasteFormat'===_0x163bb0['commandName']){const _0x406810=[],_0x4f63b2=_0x163bb0['commandParams'][0x0];for(const [_0x19ae15,_0xb43293]of Object['entries'](_0x4f63b2))_0x406810['push'](so(_0x4a6756,_0x19ae15,_0xb43293));return _0x406810['length']?{'type':'format','content':o(_0x1c28d2,'*Set\x20format\x20to:*\x20%0',_0x406810['join'](',\x20'))}:{'type':'format','content':o(_0x1c28d2,'*Remove\x20all\x20formatting*')};}});}}function so(_0xa69724,_0x14cfba,_0x1ce9f){const _0x28b5c6=_0xa69724['locale']['t'],_0x4f3901=_0x14cfba['split'](/(?=[A-Z])/)['join']('\x20'),_0x5853f6=_0x28b5c6(_0x4f3901['charAt'](0x0)['toUpperCase']()+_0x4f3901['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1ce9f)return _0x5853f6;if('fontColor'===_0x14cfba||'fontBackgroundColor'===_0x14cfba){const _0x35216b=_0xc9e50a(_0xa69724['config']['get']('fontColor.colors'))['find'](_0x599c76=>_0x599c76['model']==_0x1ce9f);return _0x5853f6+'\x20('+(_0x35216b?_0x28b5c6(_0x35216b['label'])['toLowerCase']():_0x1ce9f)+')';}if('fontSize'===_0x14cfba&&isNaN(parseFloat(_0x1ce9f))){const _0x5754a5=_0xa69724['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xa69724['config']['get']('fontSize.options'))['find'](_0x388d4a=>_0x388d4a['model']==_0x1ce9f);return _0x5853f6+'\x20('+(_0x5754a5?_0x28b5c6(_0x5754a5['title'])['toLowerCase']():_0x1ce9f)+')';}return _0x5853f6+'\x20('+_0x1ce9f+')';}class tt extends _0x57873f{['_headingOptions'];['afterInit'](){const _0xa9c22a=this['editor'];if(!_0xa9c22a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xa9c22a['config']['get']('heading.options');const _0x2d693e=_0xa9c22a['locale'],_0xaf132e=_0xa9c22a['plugins']['get']('TrackChangesEditing');_0xaf132e['enableDefaultAttributesIntegration']('heading');for(const _0x2df388 of this['_headingOptions'])'paragraph'!=_0x2df388['model']&&_0xaf132e['descriptionFactory']['registerElementLabel'](_0x2df388['model'],_0xce7693=>{const _0x4db8ab=this['_getHeadingLevel'](_0x2df388['model']);return null!==_0x4db8ab?_0x2e6498(_0xce7693,_0x4db8ab):_0xb7d402(_0xce7693,_0x2df388['title']);});function _0x2e6498(_0xac35e3,_0x4939c8){return o(_0x2d693e,'ELEMENT_HEADING',[_0xac35e3,_0x4939c8]);}function _0xb7d402(_0x579dcf,_0xe5d8b4){return o(_0x2d693e,'ELEMENT_HEADING_CUSTOM',[_0x579dcf,_0xe5d8b4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ec3c4=this['editor'],_0x255d72=_0x3ec3c4['locale'];function _0x4e2a62(_0xfb1ac0,_0x1987a5){return o(_0x255d72,'ELEMENT_HEADING_CUSTOM',[_0xfb1ac0,_0x1987a5]);}_0x3ec3c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a32a2=>{if('formatBlock'!=_0x2a32a2['type'])return;const {data:_0x449ac7}=_0x2a32a2;if(_0x449ac7&&'heading'==_0x449ac7['commandName']){const _0x595970=_0x449ac7['commandParams'][0x0]['value'],_0x505e8d=this['_getHeadingLevel'](_0x595970);if(null!==_0x505e8d)return{'type':'format','content':o(_0x255d72,'*Change\x20to:*\x20%0',(_0x4422f6=0x1,_0x4454d4=_0x505e8d,o(_0x255d72,'ELEMENT_HEADING',[_0x4422f6,_0x4454d4])))};const _0x464199=this['_headingOptions']['find'](_0x485e63=>_0x485e63['model']===_0x595970)['title'];return{'type':'format','content':o(_0x255d72,'*Change\x20to:*\x20%0',_0x4e2a62(0x1,_0x464199))};}var _0x4422f6,_0x4454d4;});}['_getHeadingLevel'](_0x5c01b5){const _0x24aa24=_0x5c01b5['match'](/^heading(\d+)/);if(_0x24aa24)return _0x24aa24[0x1];const _0x52c3ff=this['_headingOptions']?.['find'](_0x3c8e6e=>_0x3c8e6e['model']==_0x5c01b5);if(_0x52c3ff&&_0x52c3ff['view']){const _0x12cc24=_0x52c3ff['view'],_0x42cac4=(_0x12cc24['name']??_0x12cc24)['match'](/^h(\d+)/);if(_0x42cac4)return _0x42cac4[0x1];}return null;}}class et extends _0x57873f{['afterInit'](){const _0x55fc41=this['editor'];if(!_0x55fc41['plugins']['has']('HighlightEditing'))return;const _0x41c30a=_0x55fc41['plugins']['get']('TrackChangesEditing'),_0x3fda77=_0x55fc41['locale'];_0x41c30a['enableDefaultAttributesIntegration']('highlight'),_0x41c30a['registerInlineAttribute']('highlight'),_0x41c30a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3fda77,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cffd3=this['editor'],_0xdf5480=_0x3cffd3['locale'];_0x3cffd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x584570=>{if('formatInline'!=_0x584570['type'])return;const {data:_0xbfd80b}=_0x584570;if(_0xbfd80b&&'highlight'==_0xbfd80b['commandName']){const _0x575343=_0xdf5480['t'],_0x578fc6=_0xbfd80b['commandParams'][0x0]['value'];if(_0x578fc6){const _0x16247d=_0x3cffd3['config']['get']('highlight.options')['find'](_0x9ae203=>_0x9ae203['model']==_0x578fc6),_0x26e224=_0x575343(_0x16247d['title'])['toLowerCase']();return{'type':'format','content':o(_0xdf5480,'*Set\x20highlight:*\x20%0',_0x26e224),'color':{'value':_0x16247d['color'],'title':_0x16247d['title']}};}return{'type':'format','content':o(_0xdf5480,'*Remove\x20highlight*',o(_0xdf5480,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x57873f{['afterInit'](){const _0xa58087=this['editor'];if(!_0xa58087['plugins']['has']('HorizontalLineEditing'))return;_0xa58087['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x21bd78=_0xa58087['plugins']['get']('TrackChangesEditing'),_0xb20efb=_0xa58087['locale'];_0x21bd78['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4d4fa7=>o(_0xb20efb,'ELEMENT_HORIZONTAL_LINE',_0x4d4fa7)),_0xa58087['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x40f497,{writer:_0x1d8db1,options:_0x1d3891})=>{if(!_0x1d3891['showSuggestionHighlights'])return null;const _0x2290a4=_0x1d8db1['createContainerElement']('div'),_0x42a6db=_0x1d8db1['createEmptyElement']('hr');return _0x1d8db1['addClass']('ck-horizontal-line',_0x2290a4),_0x1d8db1['insert'](_0x1d8db1['createPositionAt'](_0x2290a4,0x0),_0x42a6db),_0x2290a4;},'converterPriority':'high'});}}class st extends _0x57873f{['afterInit'](){const _0x3b3dbc=this['editor'];if(!_0x3b3dbc['plugins']['has']('HtmlEmbed'))return;const _0x3cfb80=_0x3b3dbc['plugins']['get']('TrackChangesEditing'),_0x50017e=_0x3b3dbc['locale'];_0x3cfb80['descriptionFactory']['registerElementLabel']('rawHtml',_0x3f6c19=>o(_0x50017e,'ELEMENT_HTML_EMBED',_0x3f6c19)),_0x3cfb80['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3cfb80['registerBlockAttribute']('value'),_0x3cfb80['descriptionFactory']['registerDescriptionCallback'](_0x2e4830=>{if('attribute'!=_0x2e4830['type'])return;const {data:_0x4bfc0c}=_0x2e4830;if(_0x4bfc0c&&'value'==_0x4bfc0c['key']&&_0x2e4830['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x62f5a4=o(_0x50017e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x50017e,'*Change\x20%0\x20content*',_0x62f5a4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d0a9f=this['editor'],_0x415486=_0x3d0a9f['locale'];_0x3d0a9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfdbd33=>{if('formatBlock'!=_0xfdbd33['type'])return;const {data:_0x3b5530}=_0xfdbd33;if(_0x3b5530&&'htmlEmbed'==_0x3b5530['commandName']){const _0x2ce910=o(_0x415486,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x415486,'*Change\x20%0\x20content*',_0x2ce910)};}});}}class nt extends _0x57873f{['afterInit'](){const _0x10d730=this['editor'];if(!_0x10d730['plugins']['has']('ImageEditing'))return;const _0x35fdf3=_0x10d730['plugins']['get']('TrackChangesEditing'),_0x55205d=_0x10d730['plugins']['get']('ImageUtils'),_0x42e357=_0x10d730['locale'];_0x35fdf3['enableCommand']('insertImage'),_0x35fdf3['descriptionFactory']['registerElementLabel']('imageBlock',_0x27e47e=>o(_0x42e357,'ELEMENT_IMAGE',_0x27e47e)),_0x35fdf3['descriptionFactory']['registerElementLabel']('imageInline',_0xbb8d9a=>o(_0x42e357,'ELEMENT_INLINE_IMAGE',_0xbb8d9a)),_0x35fdf3['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x42e357,'ELEMENT_CAPTION')),_0x10d730['plugins']['has']('ImageUploadEditing')&&_0x35fdf3['enableCommand']('uploadImage'),_0x10d730['plugins']['has']('ImageBlockEditing')&&_0x10d730['plugins']['has']('ImageInlineEditing')&&(_0x35fdf3['enableCommand']('imageTypeInline',(_0xfdd244,_0x51a48b)=>{const _0x20ebea=_0x55205d['getClosestSelectedImageElement'](_0x10d730['model']['document']['selection']);_0x10d730['model']['change'](()=>{_0x35fdf3['markBlockFormat'](_0x20ebea,{'commandName':'imageTypeInline','commandParams':[_0x51a48b]},[],'convertBlockImageToInline');});}),_0x35fdf3['enableCommand']('imageTypeBlock',(_0x3fe1f5,_0x262831)=>{_0x10d730['model']['change'](_0x498086=>{let _0xf98a93=_0x55205d['getClosestSelectedImageElement'](_0x10d730['model']['document']['selection']),_0xcb5014=_0x498086['createRangeOn'](_0xf98a93);const _0x2eb011=_0x34baf9['fromPosition'](_0xcb5014['start'],'toPrevious'),_0x49c960=_0x34baf9['fromPosition'](_0xcb5014['end'],'toNext');_0x35fdf3['forceDefaultExecution'](()=>_0x3fe1f5(_0x262831)),_0xf98a93=_0x55205d['getClosestSelectedImageElement'](_0x10d730['model']['document']['selection']),_0xcb5014=_0x498086['createRangeOn'](_0xf98a93);const _0x5c947d=_0x498086['createRange'](_0x2eb011,_0x49c960);_0x2eb011['detach'](),_0x49c960['detach'](),_0x35fdf3['markBlockFormat'](_0xf98a93,{'commandName':'imageTypeInline','commandParams':[_0x262831]},[],'convertInlineImageToBlock'),_0x5c947d['start']['isBefore'](_0xcb5014['start'])&&_0x35fdf3['markInsertion'](_0x498086['createRange'](_0x5c947d['start'],_0xcb5014['start']),'convertInlineImageToBlock'),_0xcb5014['end']['isBefore'](_0x5c947d['end'])&&_0x35fdf3['markInsertion'](_0x498086['createRange'](_0xcb5014['end'],_0x5c947d['end']),'convertInlineImageToBlock');});}),_0x35fdf3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x35fdf3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x35fdf3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x35fdf3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x35fdf3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x35fdf3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x261bcf])=>{const _0x24cb49=_0x35fdf3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2578a0=_0x261bcf['start'],_0x5e1a8e=_0x261bcf['end'];const _0x13dedc=_0x10d730['model']['schema']['getNearestSelectionRange'](_0x2578a0,'backward'),_0x21b7b7=_0x10d730['model']['schema']['getNearestSelectionRange'](_0x5e1a8e,'forward');_0x13dedc['isCollapsed']&&(_0x2578a0=_0x13dedc['start']),_0x21b7b7['isCollapsed']&&(_0x5e1a8e=_0x21b7b7['end']),_0x24cb49([_0x10d730['model']['createRange'](_0x2578a0,_0x5e1a8e)]);}),_0x35fdf3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x373ae1),_0x35fdf3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x373ae1)),_0x10d730['plugins']['has']('ImageCaptionEditing')&&(_0x35fdf3['enableCommand']('toggleImageCaption',(_0x190263,_0x5379da)=>{const _0x5025ad=_0x10d730['plugins']['get']('ImageCaptionUtils');let _0xe1fd1b=_0x55205d['getClosestSelectedImageElement'](_0x10d730['model']['document']['selection']),_0x573a70=_0x5025ad['getCaptionFromImageModelElement'](_0xe1fd1b);_0x10d730['model']['change'](()=>{if(_0x573a70)return void _0x35fdf3['markDeletion'](_0x10d730['model']['createRangeOn'](_0x573a70));const _0x2b5bff=_0x55205d['isBlockImage'](_0xe1fd1b);_0x190263(_0x5379da),_0xe1fd1b=_0x55205d['getClosestSelectedImageElement'](_0x10d730['model']['document']['selection']),_0x573a70=_0x5025ad['getCaptionFromImageModelElement'](_0xe1fd1b),_0x35fdf3['markInsertion'](_0x10d730['model']['createRangeOn'](_0x573a70),_0x2b5bff?null:'imageCaption');});}),_0x35fdf3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x373ae1));const _0x201c25=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5cd5c4(_0x5d87a6,_0x5a8954){const _0x1218c6=_0x201c25['findIndex'](({type:_0x4db86e,subType:_0x5242f0})=>_0x5d87a6['type']==_0x4db86e&&_0x5d87a6['subType']==_0x5242f0),_0x37750f=_0x201c25['findIndex'](({type:_0x3fdeab,subType:_0x429985})=>_0x5a8954['type']==_0x3fdeab&&_0x5a8954['subType']==_0x429985);if(_0x1218c6<0x0||_0x37750f<0x0)return!0x1;const _0x418876=_0x5d87a6['getFirstRange'](),_0x1f9791=_0x5a8954['getFirstRange']();if((0x0==_0x1218c6||0x1==_0x1218c6)&&0x2==_0x37750f&&_0x418876['isIntersecting'](_0x1f9791))return!0x0;if(0x2==_0x1218c6&&0x3==_0x37750f){const _0x5626cb=_0x35fdf3['_findSuggestions'](_0x418876,'insertion')['filter'](({suggestion:_0x3d9c98,meta:_0x122fda})=>_0x122fda['isOwn']&&'convertInlineImageToBlock'==_0x3d9c98['subType']);if(_0x5626cb['length']>0x1&&_0x1f9791['end']['isEqual'](_0x418876['start']))return!0x0;if(0x1==_0x5626cb['length']&&(_0x418876['start']['isEqual'](_0x1f9791['end'])||_0x418876['end']['isEqual'](_0x1f9791['start'])))return!0x0;}if(0x3==_0x1218c6&&0x3==_0x37750f&&_0x418876['start']['isBefore'](_0x1f9791['start'])){const _0x2eac31=_0x418876['end']['nodeAfter'],_0x3e6ad6=_0x1f9791['start']['nodeBefore'];return _0x55205d['isBlockImage'](_0x2eac31)&&_0x2eac31===_0x3e6ad6;}return!0x1;}function _0x373ae1(_0x5683eb,_0x5d97c1){return _0x5cd5c4(_0x5683eb,_0x5d97c1)?[_0x5683eb,_0x5d97c1]:_0x5cd5c4(_0x5d97c1,_0x5683eb)?[_0x5d97c1,_0x5683eb]:null;}_0x10d730['plugins']['has']('ImageResize')&&(_0x35fdf3['enableDefaultAttributesIntegration']('resizeImage'),_0x35fdf3['registerBlockAttribute']('resizedWidth'),_0x35fdf3['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x42e357,'FORMAT_IMAGE_SIZE'))),_0x10d730['plugins']['has']('ImageTextAlternativeEditing')&&(_0x35fdf3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x35fdf3['registerBlockAttribute']('alt')),_0x35fdf3['descriptionFactory']['registerDescriptionCallback'](_0x3f3286=>{if(!!_0x201c25['find'](({type:_0x47f924,subType:_0x13a247})=>_0x3f3286['type']==_0x47f924&&_0x3f3286['subType']==_0x13a247))return _0x3f3286['previous']?{}:void 0x0;}),_0x35fdf3['descriptionFactory']['registerDescriptionCallback'](_0x12bd03=>{if('insertion'==_0x12bd03['type']||'deletion'==_0x12bd03['type']){const _0x1d77e9=_0x12bd03['getContainedElement']();if(_0x1d77e9&&_0x1d77e9['is']('element','caption'))return{'type':'insertion'==_0x12bd03['type']?'addObject':'removeObject','element':_0x1d77e9,'quantity':0x1};}}),_0x35fdf3['descriptionFactory']['registerDescriptionCallback'](_0x18fcc4=>'formatBlock'==_0x18fcc4['type']&&'convertInlineImageToBlock'==_0x18fcc4['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x18fcc4['type']&&'convertBlockImageToInline'==_0x18fcc4['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x35fdf3['descriptionFactory']['registerDescriptionCallback'](_0x5b9439=>{if('attribute'!=_0x5b9439['type'])return;const {data:_0x3fadeb}=_0x5b9439;if(!_0x3fadeb||'alt'!=_0x3fadeb['key'])return;const _0x10395b=_0x3fadeb['newValue'];return _0x10395b?{'type':'format','content':o(_0x42e357,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x10395b+'\x22')}:{'type':'format','content':o(_0x42e357,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11fdd2=this['editor'],_0x3c7fa9=_0x11fdd2['locale'];_0x11fdd2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c876=>{if('formatBlock'!=_0x5c876['type']&&'formatInline'!=_0x5c876['type'])return;const {data:_0x8f685f}=_0x5c876;if(_0x8f685f){if('imageTextAlternative'==_0x8f685f['commandName']){const _0x4a7f4f=_0x8f685f['commandParams'][0x0]['newValue'];return _0x4a7f4f?{'type':'format','content':o(_0x3c7fa9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a7f4f+'\x22')}:{'type':'format','content':o(_0x3c7fa9,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x8f685f['commandName']){const _0x22f3fa=_0x8f685f['commandParams'][0x0]['width'];return _0x22f3fa?{'type':'format','content':o(_0x3c7fa9,'*Set\x20image\x20width:*\x20%0',_0x22f3fa)}:{'type':'format','content':o(_0x3c7fa9,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x57873f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x17892c=this['editor']['locale'],_0x446e42=this['editor']['plugins']['get']('TrackChangesEditing');_0x446e42['enableDefaultAttributesIntegration']('replaceImageSource'),_0x446e42['registerBlockAttribute']('src'),_0x446e42['descriptionFactory']['registerDescriptionCallback'](_0x475bdd=>{if('attribute'!=_0x475bdd['type'])return;const {data:_0x485f6a}=_0x475bdd;return _0x485f6a&&'src'==_0x485f6a['key']?_0x485f6a['newValue']&&_0x485f6a['oldValue']?{'type':'format','content':o(_0x17892c,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x212e26=this['editor']['plugins']['get']('TrackChangesEditing');_0x212e26['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x212e26['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x212e26['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x212e26['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5336d1=this['editor'],_0x35a223=_0x5336d1['locale'];_0x5336d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xba13e2=>{if('formatBlock'!=_0xba13e2['type']&&'formatInline'!=_0xba13e2['type'])return;const {data:_0x2d55f}=_0xba13e2;if(!_0x2d55f||'replaceImageSource'!=_0x2d55f['commandName'])return;return{'type':'format','content':o(_0x35a223,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x57873f{['afterInit'](){const _0x3e046e=this['editor'];if(!_0x3e046e['plugins']['has']('ImageStyleEditing'))return;const _0x232f46=_0x3e046e['plugins']['get']('TrackChangesEditing'),_0xc910a0=_0x3e046e['plugins']['get']('ImageUtils'),_0x38b88c={};_0x232f46['enableCommand']('imageStyle',(_0x3c709d,_0x1ef1fe)=>{const _0x1a4919=_0x3e046e['plugins']['get']('Users')['me'],_0x93dc72=_0x3e046e['commands']['get']('imageStyle');let _0x4f0220=_0xc910a0['getClosestSelectedImageElement'](_0x3e046e['model']['document']['selection']),_0x10196c=_0x3e046e['model']['createRangeOn'](_0x4f0220),_0x5c56c6=_0x93dc72['value'];if(_0x5c56c6==_0x1ef1fe['value'])return;const _0x554ffa={'commandName':'imageStyle','commandParams':[_0x1ef1fe],'formatGroupId':_0x59c837()};_0x3e046e['model']['change'](()=>{if(_0x232f46['getSuggestions']()['filter'](_0x37dc47=>_0x37dc47['isInContent']&&_0x1a4919==_0x37dc47['author']&&('formatBlock'==_0x37dc47['type']||'formatInline'==_0x37dc47['type'])&&('imageStylePreApply'==_0x37dc47['subType']||'imageStylePostApply'==_0x37dc47['subType'])&&_0x37dc47['getFirstRange']()['isEqual'](_0x10196c))['forEach'](_0x57b2a0=>_0x232f46['discardSuggestion'](_0x57b2a0['head'])),_0x4f0220=_0xc910a0['getClosestSelectedImageElement'](_0x3e046e['model']['document']['selection']),_0x10196c=_0x3e046e['model']['createRangeOn'](_0x4f0220),_0x93dc72['refresh'](),_0x3e046e['commands']['get']('imageTypeInline')['refresh'](),_0x3e046e['commands']['get']('imageTypeBlock')['refresh'](),_0x5c56c6=_0x93dc72['value'],_0x5c56c6!=_0x1ef1fe['value'])return _0xc910a0['isInlineImage'](_0x4f0220)&&_0x93dc72['shouldConvertImageType'](_0x1ef1fe['value'],_0x4f0220)?(_0x3c709d({..._0x1ef1fe,'setImageSizes':!0x1}),_0x4f0220=_0xc910a0['getClosestSelectedImageElement'](_0x3e046e['model']['document']['selection']),void _0x232f46['markBlockFormat'](_0x4f0220,{..._0x554ffa,'commandReversedParams':[{'value':_0x5c56c6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xc910a0['isBlockImage'](_0x4f0220)?_0x232f46['markBlockFormat'](_0x4f0220,_0x554ffa,[],'imageStylePostApply'):_0x232f46['markInlineFormat'](_0x10196c,_0x554ffa,'imageStylePostApply'));});});for(const _0x5c3c4e of _0x3e046e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x38b88c[_0x5c3c4e['name']]=_0x5c3c4e['title']['toLowerCase']();_0x232f46['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x232f46['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x232f46['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x232f46['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4ec0d0])=>{_0xc910a0['setImageNaturalSizeAttributes'](_0x4ec0d0['getContainedElement']());}),_0x232f46['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3b41b1,_0x4f9fc8)=>{_0x232f46['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3b41b1,{'commandName':_0x4f9fc8['commandName'],'commandParams':_0x4f9fc8['commandReversedParams']});}),_0x232f46['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5a44d5,_0xe44854){if(_0x5ae104(_0x5a44d5,_0xe44854))return[_0x5a44d5,_0xe44854];if(_0x5ae104(_0xe44854,_0x5a44d5))return[_0xe44854,_0x5a44d5];return null;});const _0x33947b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5ae104(_0x5e5ae8,_0x10cc71){const _0x4e1475=_0x33947b['findIndex'](({type:_0x1b57e4,subType:_0xdc47})=>_0x5e5ae8['type']==_0x1b57e4&&_0x5e5ae8['subType']==_0xdc47),_0x436240=_0x33947b['findIndex'](({type:_0x3e0d5e,subType:_0x1c6be})=>_0x10cc71['type']==_0x3e0d5e&&_0x10cc71['subType']==_0x1c6be);if(_0x4e1475<0x0||_0x436240<0x0)return!0x1;const _0x4d820b=_0x5e5ae8['getFirstRange'](),_0x219d53=_0x10cc71['getFirstRange']();if((0x0==_0x4e1475||0x1==_0x4e1475)&&0x2==_0x436240&&_0x4d820b['isIntersecting'](_0x219d53))return!0x0;if(0x2==_0x4e1475&&0x3==_0x436240){const _0x4b02ac=_0x232f46['_findSuggestions'](_0x4d820b,'insertion')['filter'](({suggestion:_0x418ca8,meta:_0x1ba0a1})=>_0x1ba0a1['isOwn']&&'convertInlineImageToBlock'==_0x418ca8['subType']);if(_0x4b02ac['length']>0x1&&_0x219d53['end']['isEqual'](_0x4d820b['start']))return!0x0;if(0x1==_0x4b02ac['length']&&(_0x4d820b['start']['isEqual'](_0x219d53['end'])||_0x4d820b['end']['isEqual'](_0x219d53['start'])))return!0x0;}if(0x3==_0x4e1475&&0x3==_0x436240&&_0x4d820b['start']['isBefore'](_0x219d53['start'])){const _0x925e3e=_0x4d820b['end']['nodeAfter'],_0xd8b63a=_0x219d53['start']['nodeBefore'];return _0xc910a0['isBlockImage'](_0x925e3e)&&_0x925e3e===_0xd8b63a;}return!0x1;}_0x3e046e['model']['document']['registerPostFixer'](()=>{let _0x2c2ce1=!0x1;const _0x1ccb16=Array['from'](_0x3e046e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58b863,data:_0x5e064d}of _0x1ccb16){const {group:_0xc750d6,type:_0x38d2ee,subType:_0x5c623f,id:_0x180c13}=_0x232f46['_splitMarkerName'](_0x58b863);if('suggestion'==_0xc750d6&&_0x232f46['hasSuggestion'](_0x180c13)){if('formatBlock'==_0x38d2ee&&('imageStylePreApply'==_0x5c623f||'imageStylePostApply'==_0x5c623f)){const _0x904e4b=_0x232f46['getSuggestion'](_0x180c13);if(_0x5e064d['newRange']){const _0xc42229=_0x904e4b['getFirstRange']()['getContainedElement']();if(_0xc910a0['isBlockImage'](_0xc42229))continue;_0x232f46['discardSuggestion'](_0x904e4b),_0x2c2ce1=!0x0;}}if('insertion'==_0x38d2ee&&'imageCaption'==_0x5c623f&&!_0x5e064d['newRange']){const _0x597fd9=_0x232f46['getSuggestion'](_0x180c13);_0x597fd9['next']&&_0x597fd9['next']['isInContent']&&(_0x232f46['discardSuggestion'](_0x597fd9['next']),_0x2c2ce1=!0x0);}}}return _0x2c2ce1;}),this['_registerLegacyDescription'](_0x38b88c);}['_registerLegacyDescription'](_0x52a14b){const _0x5786af=this['editor'],_0x46f770=_0x5786af['locale'];_0x5786af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b322f=>{if('formatBlock'!=_0x5b322f['type']&&'formatInline'!=_0x5b322f['type'])return;const {data:_0x571037}=_0x5b322f;if(!_0x571037||'imageStyle'!=_0x571037['commandName'])return;const _0x203441=_0x571037['commandParams'][0x0]['value'];return _0x2d4050('side'===_0x203441?o(_0x46f770,'FORMAT_SIDE_IMAGE'):_0x52a14b[_0x203441]||_0x203441);function _0x2d4050(_0x47ed5c){return{'type':'format','content':o(_0x46f770,'*Format:*\x20%0',_0x47ed5c)};}});}}class at extends _0x57873f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x136fb4){super(_0x136fb4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x56c3ec=this['editor'],_0x30673d=_0x56c3ec['commands']['get']('importWord'),_0x26610c=_0x56c3ec['commands']['get']('trackChanges');_0x30673d&&(_0x30673d['on']('execute',(_0x16ef8a,[,_0x2b3acb])=>{this['_trackChangesValueDuringImport']=_0x26610c['value'],_0x2b3acb['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x30673d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x30673d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x26610c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x56c3ec['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x46f830,_0xec70ef){const {suggestions:_0x2c2428}=_0xec70ef,_0x3e6af1=this['editor']['commands']['get']('trackChanges'),_0x1bb223=_0x3e6af1['value'];this['_trackChangesValueDuringImport']!==_0x1bb223&&(_0x3e6af1['execute'](),this['_trackChangesExecuted']=!0x0),_0x2c2428&&_0x2c2428['forEach'](({id:_0x44f737,type:_0x43680d,author:_0x5f4504,created_at:_0x2bb039})=>{const _0x18e96c={'id':_0x44f737,'type':_0x43680d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5f4504,'createdAt':_0x2bb039?new Date(_0x2bb039):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x18e96c);});}}class ct extends _0x57873f{['afterInit'](){const _0x1e9acc=this['editor'],_0x4ef6f7=_0x1e9acc['plugins']['get']('TrackChangesEditing');if(_0x1e9acc['plugins']['has']('IndentEditing')&&(_0x4ef6f7['enableCommand']('indent'),_0x4ef6f7['enableCommand']('outdent')),_0x1e9acc['plugins']['has']('IndentBlock')){for(const _0xce0986 of['indentBlock','outdentBlock'])_0x4ef6f7['enableDefaultAttributesIntegration'](_0xce0986);}const _0x4cb4a2=_0x1e9acc['locale'];_0x4ef6f7['registerBlockAttribute']('blockIndent'),_0x4ef6f7['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4cb4a2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dd0b7=this['editor'],_0x5d2c0d=_0x3dd0b7['locale'],_0x25b08a=_0x3dd0b7['plugins']['get']('TrackChangesEditing');_0x25b08a['descriptionFactory']['registerDescriptionCallback'](_0x5a56db=>{if('formatBlock'!=_0x5a56db['type'])return;const {data:_0x52ccf0}=_0x5a56db;if(!_0x52ccf0)return;if('indentBlock'!=_0x52ccf0['commandName']&&'outdentBlock'!=_0x52ccf0['commandName'])return;const _0xf3c4ff=_0x5a56db['getItems']()[0x0],_0x1f644d=_0x25b08a['descriptionFactory']['getItemLabel'](_0xf3c4ff);return'indentBlock'==_0x52ccf0['commandName']?{'type':'format','content':o(_0x5d2c0d,'*Indent:*\x20%0',_0x1f644d)}:'outdentBlock'==_0x52ccf0['commandName']?{'type':'format','content':o(_0x5d2c0d,'*Outdent:*\x20%0',_0x1f644d)}:void 0x0;});}}class ut extends _0x57873f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x57873f{['afterInit'](){const _0x2f1f26=this['editor'];if(!_0x2f1f26['plugins']['has']('LinkEditing'))return;const _0x36a682=_0x2f1f26['plugins']['get']('TrackChangesEditing'),_0x3b7c3f=_0x2f1f26['commands']['get']('link');_0x36a682['enableDefaultAttributesIntegration']('link'),_0x36a682['enableDefaultAttributesIntegration']('unlink'),_0x36a682['registerInlineAttribute']('linkHref');for(const _0x59fe59 of _0x3b7c3f['manualDecorators'])_0x36a682['registerInlineAttribute'](_0x59fe59['id']),_0x36a682['descriptionFactory']['registerAttributeLabel'](_0x59fe59['id'],'link\x20('+_0x59fe59['label']['toLowerCase']()+')');_0x36a682['descriptionFactory']['registerDescriptionCallback'](_0x2fce78=>{if('attribute'!=_0x2fce78['type'])return;const {data:_0x5eac61}=_0x2fce78;if(!_0x5eac61||'linkHref'!=_0x5eac61['key'])return;const _0x9ce3b=_0x5eac61['newValue'],_0x51c4a2=_0x2f1f26['locale'];return{'type':'format','content':null==_0x9ce3b?o(_0x51c4a2,'*Remove\x20link*'):o(_0x51c4a2,'*Set\x20link:*\x20%0','\x22'+_0x9ce3b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36c63a=this['editor'],_0x59ab93=_0x36c63a['locale'];_0x36c63a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c8424=>{if('formatInline'!=_0x1c8424['type'])return;const {data:_0x369a4f}=_0x1c8424;if(_0x369a4f){if('link'==_0x369a4f['commandName']){const _0x4095c2=_0x369a4f['commandParams'][0x0];return{'type':'format','content':o(_0x59ab93,'*Set\x20link:*\x20%0','\x22'+_0x4095c2+'\x22')};}return'unlink'==_0x369a4f['commandName']?{'type':'format','content':o(_0x59ab93,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x57873f{['afterInit'](){const _0x36652f=this['editor'],_0x593c42=_0x36652f['locale'];if(!_0x36652f['plugins']['has']('LegacyListEditing'))return;const _0x20cd89=_0x36652f['plugins']['get']('TrackChangesEditing'),_0x4c8b71=_0x36652f['plugins']['has']('LegacyTodoListEditing');function _0x6055e8(_0x6be19b){return()=>{const _0x1d3849=_0x36652f['model']['document']['selection'],_0x4317f6=_0x36652f['commands']['get'](_0x6be19b);if(_0x4317f6['value'])return void _0x36652f['execute']('paragraph',{});const _0x2bc3d2=_0x6be19b['slice'](0x0,-0x4),_0x22ec34=function(_0x357c80,_0xe8f9ba,_0x3a3b16){let _0x2604d7=Array['from'](_0x357c80)['filter'](_0x5581ec=>function(_0x929f2f,_0x4349d0){return _0x4349d0['checkChild'](_0x929f2f['parent'],'listItem')&&!_0x4349d0['isObject'](_0x929f2f);}(_0x5581ec,_0x3a3b16));_0x2604d7=_0x2604d7['filter'](_0x3000ef=>!_0x3000ef['is']('element','listItem')||_0x3000ef['getAttribute']('listType')!=_0xe8f9ba);const _0x224110=new Set();for(const _0x1b9304 of _0x2604d7)_0x1b9304['is']('element','listItem')?_0x224110['add'](fe(_0x1b9304)):_0x224110['add'](_0x1b9304);return Array['from'](_0x224110);}(_0x1d3849['getSelectedBlocks'](),_0x2bc3d2,_0x36652f['model']['schema']);_0x36652f['model']['change'](()=>{for(const _0x1d19ed of _0x22ec34)_0x20cd89['markBlockFormat'](_0x1d19ed,{'commandName':_0x6be19b,'commandParams':[{'forceValue':!_0x4317f6['value']}],'formatGroupId':'blockName'},ue(_0x1d19ed));});};}function _0x36d725(_0xa15649){return()=>{const _0x5efc7e=function(_0x2f6a79){let _0x347e00=Array['from'](_0x2f6a79);const _0x3998d8=_0x347e00['findIndex'](_0x37752a=>'listItem'!=_0x37752a['name']);return _0x3998d8>-0x1&&(_0x347e00=_0x347e00['slice'](0x0,_0x3998d8)),_0x347e00;}(_0x36652f['model']['document']['selection']['getSelectedBlocks']()),_0x454fdd=_0x36652f['model']['createRange'](_0x36652f['model']['createPositionAt'](_0x5efc7e[0x0],'before'),_0x36652f['model']['createPositionAt'](_0x5efc7e[_0x5efc7e['length']-0x1],'end'));_0x36652f['model']['change'](()=>{_0x20cd89['markBlockFormat'](_0x454fdd,{'commandName':_0xa15649,'commandParams':[],'formatGroupId':'listIndent'},function(_0x410c8e){const _0x1daac8=new Set();for(const _0xeffec7 of _0x410c8e){let _0x148d83=_0xeffec7['nextSibling'];for(;_0x148d83&&_0x148d83['getAttribute']('listIndent')>_0xeffec7['getAttribute']('listIndent');)_0x1daac8['add'](_0x148d83),_0x148d83=_0x148d83['nextSibling'];}return Array['from'](_0x1daac8);}(_0x5efc7e));});};}_0x20cd89['enableCommand']('numberedList',_0x6055e8('numberedList')),_0x20cd89['enableCommand']('bulletedList',_0x6055e8('bulletedList')),_0x4c8b71&&_0x20cd89['enableCommand']('todoList',_0x6055e8('todoList')),_0x20cd89['enableCommand']('indentList',_0x36d725('indentList')),_0x20cd89['enableCommand']('outdentList',_0x36d725('outdentList')),_0x4c8b71&&_0x20cd89['enableCommand']('checkTodoList',()=>{const _0x164b38=_0x36652f['commands']['get']('checkTodoList'),_0xbb4815=Array['from'](_0x164b38['_selectedElements']);_0xbb4815['filter'](_0x318006=>_0x318006['getAttribute']('todoListChecked')!=_0x164b38['value']),_0x36652f['model']['change'](()=>{for(const _0x362b8f of _0xbb4815)_0x20cd89['markBlockFormat'](_0x362b8f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x164b38['value']}]});});}),_0x20cd89['descriptionFactory']['registerElementLabel']('listItem',_0x3ed04b=>o(_0x593c42,'ELEMENT_LIST_ITEM',_0x3ed04b)),_0x20cd89['descriptionFactory']['registerDescriptionCallback'](_0x498fae=>{if('formatBlock'!=_0x498fae['type']&&'formatInline'!=_0x498fae['type'])return;const {data:_0x566d7e}=_0x498fae;if(_0x566d7e){if('numberedList'==_0x566d7e['commandName']||'bulletedList'==_0x566d7e['commandName']||'todoList'==_0x566d7e['commandName'])switch(_0x566d7e['commandName']['replace']('List','')){case'bulleted':return _0x5e7d47(o(_0x593c42,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5e7d47(o(_0x593c42,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5e7d47(o(_0x593c42,'ELEMENT_TODO_LIST'));}if('indentList'==_0x566d7e['commandName'])return{'type':'format','content':o(_0x593c42,'*Indent:*\x20%0',o(_0x593c42,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x566d7e['commandName'])return{'type':'format','content':o(_0x593c42,'*Outdent:*\x20%0',o(_0x593c42,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x566d7e['commandName'])return _0x566d7e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x593c42,'*Check\x20item*')}:{'type':'format','content':o(_0x593c42,'*Uncheck\x20item*')};}function _0x5e7d47(_0x3c637b){return{'type':'format','content':o(_0x593c42,'*Change\x20to:*\x20%0',_0x3c637b)};}});}}function fe(_0x49595a){const _0x2156a4=_0x49595a['getAttribute']('listIndent');if(0x0==_0x2156a4)return _0x49595a;let _0x42b859=_0x49595a;for(;_0x49595a['previousSibling']&&_0x49595a['previousSibling']['is']('element','listItem');){const _0x5e7899=_0x49595a['previousSibling']['getAttribute']('listIndent');if(_0x5e7899==_0x2156a4)_0x42b859=_0x49595a['previousSibling'];else{if(_0x5e7899<_0x2156a4)break;}_0x49595a=_0x49595a['previousSibling'];}return _0x42b859;}function ue(_0x54c79c){const _0xecf760=[];if(_0x54c79c['is']('element','listItem')&&_0x54c79c['getAttribute']('listIndent')>0x0){let _0x20dea8=_0x54c79c['nextSibling'];for(;_0x20dea8&&'listItem'==_0x20dea8['name']&&_0x20dea8['getAttribute']('listIndent')==_0x54c79c['getAttribute']('listIndent');)_0xecf760['push'](_0x20dea8),_0x20dea8=_0x20dea8['nextSibling'];}return _0xecf760;}class W extends _0x57873f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2fd5a3=this['editor']['config']['get']('list.properties'),_0x5a1796=this['editor']['plugins']['get']('TrackChangesEditing');_0x2fd5a3['styles']&&_0x5a1796['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2fd5a3['reversed']&&_0x5a1796['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2fd5a3['startIndex']&&_0x5a1796['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5a1796['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x44a64d,_0xcda58f={}){const _0x352f95=this['editor']['plugins']['get']('TrackChangesEditing'),_0x238b8=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x352f95['markMultiRangeBlockFormat'](_0x238b8,{'commandName':'listStyle','commandParams':[{'type':_0xcda58f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x30a21d,_0xbad7bf={}){const _0x53c252=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ee699=this['_getSuggestionBlocks'](_0x2bf57a=>_0x2bf57a['is']('element','listItem')&&'numbered'===_0x2bf57a['getAttribute']('listType'));if(_0x2ee699['length']<0x1)return;const _0x57e88c=_0x2ee699['map'](_0x17039e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x17039e,'before'),this['editor']['model']['createPositionAt'](_0x17039e,0x0)));this['editor']['model']['change'](()=>{_0x53c252['markMultiRangeBlockFormat'](_0x57e88c,{'commandName':'listReversed','commandParams':[{'reversed':_0xbad7bf['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3d6a2c,_0x5a028e={}){const _0x18f878=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f3233=this['_getSuggestionBlocks'](_0x17fd65=>_0x17fd65['is']('element','listItem')&&'numbered'===_0x17fd65['getAttribute']('listType'));if(_0x2f3233['length']<0x1)return;const _0x121717=_0x2f3233['map'](_0x2bd939=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2bd939,'before'),this['editor']['model']['createPositionAt'](_0x2bd939,0x0)));this['editor']['model']['change'](()=>{_0x18f878['markMultiRangeBlockFormat'](_0x121717,{'commandName':'listStart','commandParams':[{'startIndex':_0x5a028e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1e210d){if('formatBlock'!=_0x1e210d['type']&&'formatInline'!=_0x1e210d['type'])return;const _0x3952b8=this['editor']['locale'],{data:_0x1a7f9b}=_0x1e210d;if(!_0x1a7f9b)return;let _0x14ef47,_0x9c4068;switch(_0x1a7f9b['commandName']){case'listStyle':_0x14ef47='*Change\x20to:*\x20%0',_0x9c4068={'type':'format','content':o(_0x3952b8,_0x14ef47,o(_0x3952b8,this['_getTranslationKeyForListStyle'](_0x1a7f9b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14ef47=_0x1a7f9b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x9c4068={'type':'format','content':o(_0x3952b8,_0x14ef47)};break;case'listStart':_0x14ef47='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x9c4068={'type':'format','content':o(_0x3952b8,_0x14ef47,_0x1a7f9b['commandParams'][0x0]['startIndex'])};}return _0x9c4068;}['_getSuggestionBlocksForListStyle'](){const _0x474b82=this['editor']['plugins']['get']('LegacyListUtils');let _0x3107f4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3107f4[0x0]?.['is']('element','listItem')&&_0x3107f4['unshift'](..._0x474b82['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3107f4[_0x3107f4['length']-0x1]?.['is']('element','listItem')&&_0x3107f4['push'](..._0x474b82['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3107f4=[...new Set(_0x3107f4)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3107f4=_0x3107f4['filter'](_0x25e863=>_0x25e863['is']('element','listItem'))),_0x3107f4;}['_getSuggestionBlocks'](_0x312f4b){const _0x26eff6=this['editor']['plugins']['get']('LegacyListUtils');let _0x20a0f8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x312f4b)['map'](_0x3069ff=>{const _0x5aede3=this['editor']['model']['createPositionAt'](_0x3069ff,0x0);return[..._0x26eff6['getSiblingNodes'](_0x5aede3,'backward'),..._0x26eff6['getSiblingNodes'](_0x5aede3,'forward')];})['flat']();return _0x20a0f8=[...new Set(_0x20a0f8)],_0x20a0f8;}['_getTranslationKeyForListStyle'](_0x204f6b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x204f6b)||'default')['toUpperCase']()+'_LIST_'+_0x204f6b['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x57873f{['afterInit'](){const _0x4d9afa=this['editor'];if(!_0x4d9afa['plugins']['has']('MediaEmbedEditing'))return;const _0x5360c7=_0x4d9afa['plugins']['get']('TrackChangesEditing'),_0x154f54=_0x4d9afa['locale'];_0x5360c7['enableCommand']('mediaEmbed'),_0x5360c7['descriptionFactory']['registerElementLabel']('media',_0x244f97=>o(_0x154f54,'ELEMENT_MEDIA',_0x244f97)),_0x4d9afa['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x34adcd,{writer:_0x31043d,options:_0x5bd0c5})=>{if(_0x5bd0c5['showSuggestionHighlights'])return _0x31043d['createEmptyElement']('div');},'converterPriority':'high'}),_0x4d9afa['data']['downcastDispatcher']['on']('attribute:url:media',(_0xbf1294,_0x359cad,_0x2a6445)=>{_0x2a6445['options']['showSuggestionHighlights']&&_0xbf1294['stop']();},{'priority':'high'});}}class mt extends _0x57873f{['afterInit'](){const _0x49a5c5=this['editor'];_0x49a5c5['plugins']['has']('MentionEditing')&&_0x49a5c5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x57873f{['afterInit'](){const _0x5d81d8=this['editor'];if(!_0x5d81d8['plugins']['has']('MergeFieldsEditing'))return;_0x5d81d8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x5d81d8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x315e7a=_0x5d81d8['plugins']['get']('TrackChangesEditing'),_0x558cd8=_0x5d81d8['locale'];_0x315e7a['descriptionFactory']['registerElementLabel']('mergeField',_0x3430f2=>o(_0x558cd8,'ELEMENT_MERGE_FIELD',_0x3430f2)),_0x315e7a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x514ad5=>o(_0x558cd8,'ELEMENT_MERGE_FIELD',_0x514ad5)),_0x315e7a['descriptionFactory']['registerDescriptionCallback'](_0x1e682d=>{if('insertion'!=_0x1e682d['type']&&'deletion'!=_0x1e682d['type'])return;const _0x4db45d=_0x1e682d['getContainedElement']();if(null==_0x4db45d)return;if(!_0x4db45d['is']('element','mergeField')&&!_0x4db45d['is']('element','mergeFieldBlock'))return;const _0x4e530d=_0x5d81d8['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4db45d['getAttribute']('id'));return'insertion'==_0x1e682d['type']?{'type':'insertion','content':o(_0x558cd8,'*Insert:*\x20%0','\x22'+_0x4e530d+'\x22\x20'+o(_0x558cd8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x558cd8,'*Remove:*\x20%0','\x22'+_0x4e530d+'\x22\x20'+o(_0x558cd8,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x57873f{['afterInit'](){const _0x3b425c=this['editor'],_0x18f824=_0x3b425c['plugins']['get']('TrackChangesEditing');_0x3b425c['plugins']['has']('MultiLevelList')&&(_0x18f824['enableDefaultAttributesIntegration']('multiLevelList'),_0x18f824['registerBlockAttribute']('listMarkerStyle'),_0x18f824['descriptionFactory']['registerDescriptionCallback'](_0x7e4b45=>this['handleDescriptions'](_0x7e4b45)));}['handleDescriptions'](_0x1a0828){const _0x2fd941=this['editor']['locale'],{data:_0x1ac528}=_0x1a0828,_0xf82043={'type':'format','content':''};if(_0x1ac528&&'listMarkerStyle'==_0x1ac528['key']){if(!_0x1ac528['oldValue'])return{'type':'format','content':o(_0x2fd941,'*Set\x20format:*\x20%0',o(_0x2fd941,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1ac528['newValue']+')'};if(!_0x1ac528['newValue']){let _0x45f48b=_0x1a0828['head'];for(;_0x45f48b;){if(_0x45f48b['data']&&'listType'==_0x45f48b['data']['key']&&_0x45f48b['data']['newValue'])return _0xf82043;_0x45f48b=_0x45f48b['next'];}return{'type':'format','content':o(_0x2fd941,'*Remove\x20format:*\x20%0',o(_0x2fd941,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1ac528['oldValue']+')'};}}}}class kt extends _0x57873f{['afterInit'](){const _0x1111ef=this['editor'];if(!_0x1111ef['plugins']['has']('PageBreakEditing'))return;_0x1111ef['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4f6fae=_0x1111ef['plugins']['get']('TrackChangesEditing'),_0xf9629a=_0x1111ef['locale'];_0x4f6fae['descriptionFactory']['registerElementLabel']('pageBreak',_0x3a57e7=>o(_0xf9629a,'ELEMENT_PAGE_BREAK',_0x3a57e7));}}class bt extends _0x57873f{['afterInit'](){const _0x263347=this['editor'];if(!_0x263347['plugins']['has']('Paragraph'))return;const _0x3f5510=_0x263347['locale'],_0x2a8ea6=_0x263347['plugins']['get']('TrackChangesEditing');_0x2a8ea6['descriptionFactory']['registerElementLabel']('paragraph',_0x3cb2de=>o(_0x3f5510,'ELEMENT_PARAGRAPH',_0x3cb2de)),_0x2a8ea6['enableDefaultAttributesIntegration']('paragraph'),_0x2a8ea6['enableCommand']('insertParagraph'),_0x263347['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x263347),{'priority':'highest'}),_0x263347['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xe8ff60,_0x378307,_0x4b92bd)=>{_0x4b92bd['options']['showSuggestionHighlights']&&nr(_0x263347,{'showActiveMarker':!0x1})(_0xe8ff60,_0x378307,_0x4b92bd);},{'priority':'highest'});const _0x56c06f=_0x2a8ea6['descriptionFactory'];_0x56c06f['registerDescriptionCallback'](_0x52eab1=>{if('insertion'!==_0x52eab1['type'])return;const {start:_0x4ba595,end:_0x3c4066}=_0x52eab1['getFirstRange']();if(!_0x4ba595['isTouching'](_0x3c4066)||!_0x4ba595['nodeAfter'])return;const _0x54ec61=_0x263347['model']['schema'],_0x296afc=_0x4ba595['nodeAfter'];return _0x54ec61['isBlock'](_0x296afc)&&!_0x54ec61['isLimit'](_0x296afc)&&_0x54ec61['checkChild'](_0x296afc,'$text')?{'type':'insertion','content':o(_0x3f5510,'*Insert:*\x20%0',_0x56c06f['getItemLabel'](_0x296afc,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15a197=this['editor'],_0x578fc1=_0x15a197['locale'];_0x15a197['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3de9c9=>{if('formatBlock'!=_0x3de9c9['type'])return;const {data:_0x5618cb}=_0x3de9c9;return _0x5618cb&&'paragraph'==_0x5618cb['commandName']?{'type':'format','content':o(_0x578fc1,'*Change\x20to:*\x20%0',o(_0x578fc1,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x25a257,{showActiveMarker:_0x3d99b3=!0x0}={}){return(_0x239448,_0x2c7681,_0x2c71c7)=>{const _0x3aa43a=_0x25a257['plugins']['get']('TrackChangesEditing'),_0x56f104=_0x2c7681['markerRange']['start'],_0x3e9ffa=_0x2c7681['markerRange']['end'],_0x261bfc=_0x25a257['model']['schema'];if(!_0x56f104['isTouching'](_0x3e9ffa)||!_0x56f104['nodeAfter'])return;const _0x1d4a07=_0x56f104['nodeAfter'];if(_0x261bfc['isBlock'](_0x1d4a07)&&!_0x261bfc['isLimit'](_0x1d4a07)&&_0x261bfc['checkChild'](_0x1d4a07,'$text')){if(!_0x2c71c7['consumable']['consume'](_0x2c7681['markerRange'],_0x239448['name']))return;const {authorId:_0x1839e2}=_0x3aa43a['_splitMarkerName'](_0x2c7681['markerName']),_0x12a339=_0x2c71c7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1839e2}),_0x2adf26=_0x2c71c7['mapper']['toViewPosition'](_0x3e9ffa);_0x3d99b3&&_0x3aa43a['activeMarkers']['includes'](_0x2c7681['markerName'])&&_0x2c71c7['writer']['addClass']('ck-suggestion-marker--active',_0x12a339),_0x2c71c7['writer']['insert'](_0x2adf26,_0x12a339),_0x2c71c7['mapper']['bindElementToMarker'](_0x12a339,_0x2c7681['markerName']);}};}class wt extends _0x57873f{['afterInit'](){const _0x20fc34=this['editor'];if(!_0x20fc34['plugins']['has']('RemoveFormatEditing'))return;_0x20fc34['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1be6cc=this['editor'];_0x1be6cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3df163=>{if('formatBlock'!=_0x3df163['type']&&'formatInline'!=_0x3df163['type'])return;const {data:_0x376f0f}=_0x3df163;return _0x376f0f&&'removeFormat'==_0x376f0f['commandName']?{'type':'format','content':o(_0x1be6cc['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x57873f{['afterInit'](){const _0x27670d=this['editor'];if(!_0x27670d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x140db0=_0x27670d['plugins']['get']('TrackChangesEditing');_0x140db0['enableCommand']('goToPreviousRestrictedEditingException'),_0x140db0['enableCommand']('goToNextRestrictedEditingException');const _0x5870d4=_0x27670d['plugins']['get']('RestrictedEditingModeEditing');_0x5870d4['enableCommand']('trackChanges'),_0x5870d4['enableCommand']('acceptSuggestion'),_0x5870d4['enableCommand']('discardSuggestion'),_0x5870d4['enableCommand']('acceptAllSuggestions'),_0x5870d4['enableCommand']('discardAllSuggestions'),_0x5870d4['enableCommand']('acceptSelectedSuggestions'),_0x5870d4['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x57873f{static get['requires'](){return[_0x255de6];}['init'](){const _0x40d02b=this['editor'],_0x52c21b=_0x40d02b['plugins']['get']('TrackChangesEditing');_0x52c21b['enableCommand']('shiftEnter'),_0x40d02b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x40d02b),{'priority':'high'}),_0x40d02b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x40d02b),{'priority':'high'}),_0x40d02b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x586423,_0x3528a1,_0xc073b)=>{_0xc073b['options']['showSuggestionHighlights']&&ge(_0x40d02b,{'showActiveMarker':!0x1})(_0x586423,_0x3528a1,_0xc073b);}),_0x52c21b['descriptionFactory']['registerElementLabel']('softBreak',_0x38940f=>o(_0x40d02b['locale'],'ELEMENT_LINE_BREAK',_0x38940f));}}function ge(_0x321627,{showActiveMarker:_0x299d95=!0x0}={}){return(_0x374e7b,_0x1bafb7,_0xa28d8b)=>{const _0x3d0fb0=_0x321627['plugins']['get']('TrackChangesEditing');if(!_0xa28d8b['consumable']['test'](_0x1bafb7['markerRange'],_0x374e7b['name']))return;const _0x5c243f=_0x321627['model'];for(const _0xf21ff4 of _0x1bafb7['markerRange']['getItems']()){if(!_0xf21ff4['is']('element','softBreak'))continue;const _0x33c52e='deletion'==_0x1bafb7['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x148a9e}=_0x3d0fb0['_splitMarkerName'](_0x1bafb7['markerName']),_0x59958=_0xa28d8b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33c52e,'data-author-id':_0x148a9e}),_0x308def=_0xa28d8b['mapper']['toViewPosition'](_0x5c243f['createPositionBefore'](_0xf21ff4));_0x299d95&&_0x3d0fb0['activeMarkers']['includes'](_0x1bafb7['markerName'])&&_0xa28d8b['writer']['addClass']('ck-suggestion-marker--active',_0x59958),_0xa28d8b['writer']['insert'](_0x308def,_0x59958),_0xa28d8b['mapper']['bindElementToMarker'](_0x59958,_0x1bafb7['markerName']);}};}class St extends _0x57873f{['afterInit'](){const _0x347dfb=this['editor'],_0x5e05ab=_0x347dfb['model'],_0x42a7f4=_0x347dfb['locale'];if(!_0x347dfb['plugins']['has']('StandardEditingModeEditing'))return;const _0x405d02=_0x347dfb['plugins']['get']('TrackChangesEditing'),_0xbad78e='restrictedEditingException',_0x33a7a6=_0x347dfb['commands']['get'](_0xbad78e);_0x405d02['enableCommand'](_0xbad78e,(_0x299462,_0x1b7698={})=>{const _0x54bae7=_0x5e05ab['document']['selection'];if(_0x54bae7['isCollapsed'])return void _0x299462(_0x1b7698);const _0x173238=void 0x0!==_0x1b7698['forceValue']?_0x1b7698['forceValue']:!_0x33a7a6['value'];_0x5e05ab['change'](()=>{const _0x122ee8=Array['from'](_0x54bae7['getRanges']());for(const _0x41b907 of _0x122ee8){const _0x59cdf2=_0x173238?[_0x41b907]:io(_0xbad78e,_0x41b907,_0x5e05ab);for(const _0x56e89d of _0x59cdf2)_0x405d02['markInlineFormat'](_0x56e89d,{'commandName':_0xbad78e,'commandParams':[{'forceValue':_0x173238}]});}});}),_0x405d02['descriptionFactory']['registerDescriptionCallback'](_0x42268e=>{if('formatBlock'!=_0x42268e['type']&&'formatInline'!=_0x42268e['type'])return;const {data:_0x335e39}=_0x42268e;return _0x335e39&&_0x335e39['commandName']==_0xbad78e?_0x335e39['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42a7f4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x42a7f4,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x57873f{['afterInit'](){const _0x4d17a3=this['editor'];if(!_0x4d17a3['plugins']['has']('Style')||!_0x4d17a3['plugins']['has']('DataSchema'))return;const _0x32ff7b=_0x4d17a3['plugins']['get']('TrackChangesEditing'),_0x11f615=_0x4d17a3['locale'],_0x3481e2=_0x4d17a3['config']['get']('style')||{},_0x4d9348=_0x4d17a3['plugins']['get']('GeneralHtmlSupport'),_0xfc9e65=_0x4d17a3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4d17a3['plugins']['get']('DataSchema'),_0x3481e2['definitions']);_0x32ff7b['enableDefaultAttributesIntegration']('style');const _0xe2975b=new Set();for(const _0x30bc55 of _0xfc9e65['block']){const _0x3d3506=_0x4d9348['getGhsAttributeNameForElement'](_0x30bc55['element']);_0xe2975b['add'](_0x3d3506);}const _0x4bb120=new Set();for(const _0x4b1f81 of _0xfc9e65['inline']){const _0x4d0c5c=_0x4d9348['getGhsAttributeNameForElement'](_0x4b1f81['element']);_0x4bb120['add'](_0x4d0c5c);for(const _0x3db3b8 of _0x4b1f81['ghsAttributes'])_0x4bb120['add'](_0x3db3b8);}for(const _0x322b0d of _0xe2975b)_0x32ff7b['registerBlockAttribute'](_0x322b0d),_0x32ff7b['descriptionFactory']['registerAttributeLabel'](_0x322b0d,o(_0x11f615,'FORMAT_STYLE'));for(const _0x492bd4 of _0x4bb120)_0x32ff7b['registerInlineAttribute'](_0x492bd4),_0x32ff7b['descriptionFactory']['registerAttributeLabel'](_0x492bd4,o(_0x11f615,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fc618=this['editor'],_0x350491=_0x4fc618['locale'];_0x4fc618['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36c858=>{if('formatBlock'!=_0x36c858['type']&&'formatInline'!=_0x36c858['type'])return;const {data:_0x1eeecf}=_0x36c858;return _0x1eeecf&&'style'===_0x1eeecf['commandName']?_0x1eeecf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x350491,'*Set\x20format:*\x20%0',_0x1eeecf['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x350491,'*Remove\x20format:*\x20%0',_0x1eeecf['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x57873f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1a7f48){super(_0x1a7f48),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5614d1=this['editor'],_0x5d33b2=_0x5614d1['model']['document']['selection'];if(!_0x5614d1['plugins']['has']('TableEditing'))return;const _0x5ba73b=_0x5614d1['locale'],_0x2ed50c=_0x5614d1['plugins']['get']('TrackChangesEditing'),_0x3effc6=_0x5614d1['plugins']['get']('TableUtils');_0x2ed50c['descriptionFactory']['registerElementLabel']('table',_0x47b475=>o(_0x5ba73b,'ELEMENT_TABLE',_0x47b475)),this['_setupColumnsRowsFixing'](),_0x2ed50c['enableCommand']('insertTable'),_0x2ed50c['enableCommand']('selectTableRow'),_0x2ed50c['enableCommand']('selectTableColumn');for(const _0x2af757 of['insertTableRowAbove','insertTableRowBelow']){const _0x482715=_0x5614d1['commands']['get'](_0x2af757);_0x2ed50c['enableCommand'](_0x2af757,_0x598148=>{_0x5614d1['model']['change'](_0x765279=>{_0x598148();const _0x523863='above'===_0x482715['order'],_0x1c6ab1=_0x3effc6['getSelectionAffectedTableCells'](_0x5d33b2),_0x211efc=_0x3effc6['getRowIndexes'](_0x1c6ab1),_0x1b66fa=_0x523863?_0x211efc['first']-0x1:_0x211efc['last']+0x1,_0x1a02a4=_0x1c6ab1[0x0]['findAncestor']('table'),_0x2f90d2=_0x3effc6['createTableWalker'](_0x1a02a4,{'startRow':_0x1b66fa,'endRow':_0x1b66fa}),_0xf7699b=Array['from'](_0x2f90d2)['map'](_0x17aae1=>_0x765279['createRangeOn'](_0x17aae1['cell']));_0x2ed50c['markMultiRangeInsertion'](_0xf7699b,'tableRow');});});}for(const _0x45d11d of['insertTableColumnLeft','insertTableColumnRight']){const _0x858e9a=_0x5614d1['commands']['get'](_0x45d11d);_0x2ed50c['enableCommand'](_0x45d11d,_0x1a8bcf=>{_0x5614d1['model']['change'](_0x57c55a=>{_0x1a8bcf();const _0x5a2795='left'===_0x858e9a['order'],_0x462b51=_0x3effc6['getSelectionAffectedTableCells'](_0x5d33b2),_0x3f64e2=_0x3effc6['getColumnIndexes'](_0x462b51),_0x564162=_0x5a2795?_0x3f64e2['first']-0x1:_0x3f64e2['last']+0x1,_0x19cce0=_0x462b51[0x0]['findAncestor']('table'),_0xcd53e9=_0x3effc6['createTableWalker'](_0x19cce0,{'startRow':0x0,'column':_0x564162,'includeAllSlots':!0x1}),_0x18ef2b=Array['from'](_0xcd53e9)['map'](_0x4b6f0f=>_0x57c55a['createRangeOn'](_0x4b6f0f['cell']));_0x2ed50c['markMultiRangeInsertion'](_0x18ef2b,'tableColumn');});});}for(const _0x34c3d1 of['removeTableRow','removeTableColumn']){const _0x528704=_0x34c3d1['substr'](0xb),_0x3e0fbd=_0x528704['toLowerCase'](),_0x3da911=_0x3e0fbd['substr'](0x0,0x3)+'span',_0x326c0e='table'+_0x528704,_0x3045b8='min'+_0x528704,_0x18b537='max'+_0x528704;_0x2ed50c['enableCommand'](_0x34c3d1,()=>{_0x5614d1['model']['change'](_0x4dd071=>{const _0x544ba2=_0x3effc6['getSelectionAffectedTableCells'](_0x5d33b2),_0x41ccb1=_0x544ba2[0x0]['findAncestor']('table');let _0x461420;if('removeTableRow'==_0x34c3d1){const _0x24432d=_0x3effc6['getRowIndexes'](_0x544ba2);_0x461420={'startRow':_0x24432d['first'],'endRow':_0x24432d['last'],'includeAllSlots':!0x0};}else{const _0x294df0=_0x3effc6['getColumnIndexes'](_0x544ba2);_0x461420={'startColumn':_0x294df0['first'],'endColumn':_0x294df0['last'],'includeAllSlots':!0x0};}const _0x55a2ce=_0x3effc6['createTableWalker'](_0x41ccb1,_0x461420),_0x4008a=Array['from'](_0x55a2ce)['map'](({cell:_0x191c35})=>_0x191c35),_0x31dbfc=be(_0x4008a['filter'](_0x46a331=>_0x46a331['hasAttribute'](_0x3da911))),_0x44dc1f=be(_0x4008a['filter'](_0x3caa0a=>!_0x3caa0a['hasAttribute'](_0x3da911)))['map'](_0x48315c=>_0x4dd071['createRangeOn'](_0x48315c)),_0x8fb917=_0x2ed50c['markMultiRangeDeletion'](_0x44dc1f,_0x326c0e);if(_0x8fb917&&('tableRow'==_0x8fb917['subType']||'tableColumn'==_0x8fb917['subType'])){const _0x2b3f9c=this['_getSuggestionCoords'](_0x8fb917);for(const _0x105edf of _0x31dbfc){const _0x46093d=_0x4dd071['createRangeOn'](_0x105edf),_0x2cba14=_0x3effc6['getCellLocation'](_0x105edf),_0x47be3a=_0x105edf['getAttribute'](_0x3da911)-0x1,_0x57d71a=_0x2b3f9c[_0x3045b8],_0x5a9528=_0x2b3f9c[_0x18b537];_0x57d71a<=_0x2cba14[_0x3e0fbd]&&_0x2cba14[_0x3e0fbd]+_0x47be3a<=_0x5a9528&&_0x8fb917['addRange'](_0x46093d);}}});});}function _0x5557e8(_0x3727ac){const _0x3d239c=Array['from'](_0x5d33b2['getRanges']())['map'](_0x57c5cc=>_0x40584f['fromRange'](_0x57c5cc));_0x5614d1['model']['change'](_0x2a802c=>{const _0x4f8e73=_0x2a802c['batch'];_0x3727ac=_0x3727ac['filter'](_0xf41c58=>'$graveyard'!=_0xf41c58['root']['rootName']),_0x2a802c['setSelection'](_0x3727ac),_0x5614d1['commands']['get']('removeTableRow')['refresh'](),_0x5614d1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5614d1['model']['enqueueChange'](()=>{_0x5614d1['model']['enqueueChange'](_0x4f8e73,_0xe4926d=>{const _0x29fe74=_0x3d239c['filter'](_0x47d74d=>'$graveyard'!=_0x47d74d['root']['rootName']);_0x29fe74['length']>0x0&&_0xe4926d['setSelection'](_0x29fe74);for(const _0x1cabee of _0x3d239c)_0x1cabee['detach']();});});});}function _0x4a7676(_0x432985){_0x5614d1['model']['change'](_0x30b2cc=>{const _0x249bd0=Array['from'](_0x5d33b2['getRanges']())['map'](_0x592ce0=>_0x40584f['fromRange'](_0x592ce0)),_0x5a05e3=[];for(const _0x3e80d9 of _0x432985)for(const _0x5a56f0 of _0x3e80d9['getItems']({'shallow':!0x0}))_0x5a05e3['push'](_0x5a56f0);for(const _0x723673 of _0x5a05e3)'$graveyard'!=_0x723673['root']['rootName']&&(_0x30b2cc['setSelection'](_0x30b2cc['createPositionAt'](_0x723673,0x0)),_0x5614d1['commands']['get']('removeTableColumn')['refresh'](),_0x5614d1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x531f75=_0x249bd0['filter'](_0x1d61f1=>'$graveyard'!=_0x1d61f1['root']['rootName']);_0x531f75['length']>0x0&&_0x30b2cc['setSelection'](_0x531f75);for(const _0x421cc8 of _0x249bd0)_0x421cc8['detach']();});}function _0x546305(_0x2810ea,_0x36a8e6){return _0x36a8e6['every'](_0xdc032d=>_0x2810ea['some'](_0x2be66d=>_0x2be66d['end']['isEqual'](_0xdc032d['start'])||_0xdc032d['end']['isEqual'](_0x2be66d['start'])));}function _0x4b8751(_0xbbd1cd,_0xd3860c){return!_0xbbd1cd['some'](_0xf0f455=>_0xd3860c['some'](_0x30df89=>_0xf0f455['isIntersecting'](_0x30df89)))&&_0xbbd1cd['some'](_0x27c09c=>_0xd3860c['some'](_0x18070d=>_0x27c09c['end']['isTouching'](_0x18070d['start'])));}_0x5614d1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x533f06,_0x3dc1f1,_0x4f3266)=>{if(!_0x4f3266['options']['showSuggestionHighlights'])return;const _0x4976e8=_0x3dc1f1['item'];if(!_0x4976e8)return;const _0x3f4cbf=_0x4f3266['mapper']['toViewElement'](_0x4976e8);function _0x5759f2(_0x5ec360){return Array['isArray'](_0x5ec360)?_0x5ec360:[_0x5ec360];}_0x3f4cbf&&'tableCell'===_0x4976e8['name']&&_0x3fcf47(_0x3f4cbf,_0x4f3266['writer'],(_0x1dc8ec,_0x3d9c52,_0x4021c2)=>_0x4021c2['addClass'](_0x5759f2(_0x3d9c52['classes']),_0x1dc8ec),(_0x2c5bce,_0x1f1fa4,_0x254644)=>_0x254644['removeClass'](_0x5759f2(_0x1f1fa4['classes']),_0x2c5bce));},{'priority':'highest'}),_0x2ed50c['descriptionFactory']['registerDescriptionCallback'](_0x127f04=>{if('insertion'!=_0x127f04['type']&&'deletion'!=_0x127f04['type'])return;const _0x434e91=_0x127f04['getContainedElement']();if(null!=_0x434e91&&_0x434e91['is']('element','table')){if('insertion'==_0x127f04['type']){const _0x57d2a3=_0x127f04['getItems']()['filter'](_0x5bc25a=>_0x5bc25a['is']('$textProxy'))['map'](_0x10c329=>_0x10c329['data']);if(_0x57d2a3['length'])return{'type':'insertion','content':o(_0x5ba73b,'*Insert:*\x20%0',o(_0x5ba73b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x57d2a3['join']('\x20')+'\x22'))};}if('deletion'==_0x127f04['type']){const _0x31e6e3=_0x127f04['getItems']()['filter'](_0x103bfd=>_0x103bfd['is']('$textProxy'))['map'](_0x4677a8=>_0x4677a8['data']);if(_0x31e6e3['length'])return{'type':'deletion','content':o(_0x5ba73b,'*Remove:*\x20%0',o(_0x5ba73b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x31e6e3['join']('\x20')+'\x22'))};}}}),_0x2ed50c['descriptionFactory']['registerDescriptionCallback'](_0x9329de=>{if('tableRow'==_0x9329de['subType']){const _0x14e9db=_0x9329de['getItems']()['filter'](_0x529345=>_0x529345['is']('$textProxy'))['map'](_0x18200b=>_0x18200b['data']),_0x39c77d=this['_getSuggestionCoords'](_0x9329de),_0x805efe=_0x39c77d['maxRow']-_0x39c77d['minRow']+0x1;if('insertion'==_0x9329de['type'])return _0x14e9db['length']?{'type':'insertion','content':o(_0x5ba73b,'*Insert:*\x20%0',o(_0x5ba73b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x805efe,'\x22'+_0x14e9db['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5ba73b,'*Insert:*\x20%0',o(_0x5ba73b,'ELEMENT_TABLE_ROW',_0x805efe))};if('deletion'==_0x9329de['type'])return _0x14e9db['length']?{'type':'deletion','content':o(_0x5ba73b,'*Remove:*\x20%0',o(_0x5ba73b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x805efe,'\x22'+_0x14e9db['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5ba73b,'*Remove:*\x20%0',o(_0x5ba73b,'ELEMENT_TABLE_ROW',_0x805efe))};}if('tableColumn'==_0x9329de['subType']){const _0x15e9ca=_0x9329de['getItems']()['filter'](_0x1bef93=>_0x1bef93['is']('$textProxy'))['map'](_0x3ab0a5=>_0x3ab0a5['data']),_0x1a55d6=this['_getSuggestionCoords'](_0x9329de),_0x2adb1f=_0x1a55d6['maxColumn']-_0x1a55d6['minColumn']+0x1;if('insertion'==_0x9329de['type'])return _0x15e9ca['length']?{'type':'insertion','content':o(_0x5ba73b,'*Insert:*\x20%0',o(_0x5ba73b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2adb1f,'\x22'+_0x15e9ca['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5ba73b,'*Insert:*\x20%0',o(_0x5ba73b,'ELEMENT_TABLE_COLUMN',_0x2adb1f))};if('deletion'==_0x9329de['type'])return _0x15e9ca['length']?{'type':'deletion','content':o(_0x5ba73b,'*Remove:*\x20%0',o(_0x5ba73b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2adb1f,'\x22'+_0x15e9ca['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5ba73b,'*Remove:*\x20%0',o(_0x5ba73b,'ELEMENT_TABLE_COLUMN',_0x2adb1f))};}}),_0x2ed50c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5557e8),_0x2ed50c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5557e8),_0x2ed50c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4a7676),_0x2ed50c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4a7676),_0x2ed50c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x546305),_0x2ed50c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x546305),_0x2ed50c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4b8751),_0x2ed50c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4b8751);}['_acceptFormatSuggestionCallbackFactory'](){const _0x13294a=this['editor'],_0x1c5ecb=_0x13294a['model']['document']['selection'];return(_0x4c06aa,_0x2774e6)=>{_0x13294a['model']['change'](_0x283283=>{const {commandName:_0x135405,commandParams:_0x26683b}=_0x2774e6;let _0x58109e=_0x4c06aa[0x0]['end']['nodeBefore'];_0x26683b&&_0x26683b[0x0]&&!0x1===_0x26683b[0x0]['forceValue']&&(_0x58109e=_0x4c06aa[0x0]['start']['nodeAfter']);const _0x1d150d=_0x283283['createRangeIn'](_0x58109e);if('$graveyard'==_0x1d150d['root']['rootName'])return;const _0x5932db=Array['from'](_0x1c5ecb['getRanges']())['map'](_0x50b1f7=>_0x40584f['fromRange'](_0x50b1f7));_0x283283['setSelection'](_0x1d150d),_0x13294a['commands']['get'](_0x135405)['refresh'](),_0x26683b['push']({'forceDefaultExecution':!0x0}),_0x13294a['execute'](_0x135405,..._0x26683b);const _0x54503d=_0x5932db['filter'](_0x254d7f=>'$graveyard'!=_0x254d7f['root']['rootName']);_0x54503d['length']>0x0&&_0x283283['setSelection'](_0x54503d);for(const _0x176813 of _0x5932db)_0x176813['detach']();});};}['_getCoordsForCells'](_0x483252){const _0xc3540e=this['editor']['plugins']['get']('TableUtils');let _0xec278b=Number['MAX_SAFE_INTEGER'],_0x1a6741=Number['MIN_SAFE_INTEGER'],_0xec9f73=Number['MAX_SAFE_INTEGER'],_0x519206=Number['MIN_SAFE_INTEGER'];for(const _0x808f5c of _0x483252){if('$graveyard'==_0x808f5c['root']['rootName'])continue;const {row:_0x3f80c7,column:_0xb9cf7d}=_0xc3540e['getCellLocation'](_0x808f5c),_0x4ef257=_0x808f5c['hasAttribute']('rowspan')?_0x808f5c['getAttribute']('rowspan')-0x1:0x0,_0x341e1a=_0x808f5c['hasAttribute']('colspan')?_0x808f5c['getAttribute']('colspan')-0x1:0x0;_0xec278b=_0x3f80c7<_0xec278b?_0x3f80c7:_0xec278b,_0x1a6741=_0x3f80c7+_0x4ef257>_0x1a6741?_0x3f80c7+_0x4ef257:_0x1a6741,_0xec9f73=_0xb9cf7d<_0xec9f73?_0xb9cf7d:_0xec9f73,_0x519206=_0xb9cf7d+_0x341e1a>_0x519206?_0xb9cf7d+_0x341e1a:_0x519206;}return{'minRow':_0xec278b,'maxRow':_0x1a6741,'minColumn':_0xec9f73,'maxColumn':_0x519206};}['_setupColumnsRowsFixing'](){const _0x3f6365=this['editor'],_0x95cded=_0x3f6365['plugins']['get']('TrackChangesEditing'),_0xb1ef0c=_0x3f6365['plugins']['get']('TableUtils');_0x3f6365['model']['document']['on']('change:data',()=>{const _0x480d47=Array['from'](_0x3f6365['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2e8eb9,data:_0x495dbb}of _0x480d47){const {group:_0x356c05,id:_0x5412cc,subType:_0x3c569f}=_0x95cded['_splitMarkerName'](_0x2e8eb9);if('suggestion'!=_0x356c05)continue;if(null!=_0x495dbb['oldRange'])continue;const _0x9d7990=_0x95cded['getSuggestion'](_0x5412cc);this['_tablePostFixingSubtypes']['includes'](_0x3c569f)&&this['_tableSuggestions']['add'](_0x9d7990);}},{'priority':'low'});const _0x37a484=(_0x19490e,_0xd44f75)=>{let _0x148067=!0x1;const _0x192e14=_0xd44f75['createRangeOn'](_0x19490e),_0x949b6d=_0x19490e['findAncestor']('table'),_0x38f1aa=_0xb1ef0c['getCellLocation'](_0x19490e);for(const _0x5c06c5 of this['_tableSuggestions']){const _0x56cbd5=_0x5c06c5['subType'],_0x1b35a4=_0x56cbd5['startsWith']('tablePaste'),_0x26b7ac=_0x56cbd5['substr'](_0x1b35a4?0xa:0x5),_0x26e58a=_0x26b7ac['toLowerCase'](),_0x5c11c6=_0x26e58a['substr'](0x0,0x3)+'span',_0x29140f='min'+_0x26b7ac,_0x51fc43='max'+_0x26b7ac;if(!_0x5c06c5['isInContent'])continue;if(_0x949b6d!=_0x5c06c5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5c06c5['isIntersectingWithRange'](_0x192e14))continue;const _0x19e47b=_0x19490e['hasAttribute'](_0x5c11c6)?_0x19490e['getAttribute'](_0x5c11c6)-0x1:0x0,_0x52944d=this['_getSuggestionCoords'](_0x5c06c5),_0x4f7a44=_0x52944d[_0x29140f],_0x4022d1=_0x52944d[_0x51fc43];_0x4f7a44<=_0x38f1aa[_0x26e58a]&&_0x38f1aa[_0x26e58a]+_0x19e47b<=_0x4022d1&&(_0x5c06c5['addRange'](_0x192e14),_0x148067=!0x0);}return _0x148067;};_0x3f6365['model']['document']['registerPostFixer'](_0x1d2294=>{let _0x3c9cd4=!0x1;for(const _0x17c3ef of _0x3f6365['model']['document']['differ']['getChanges']())if('insert'==_0x17c3ef['type']){if('tableRow'==_0x17c3ef['name']){for(const _0x464337 of _0x17c3ef['position']['nodeAfter']['getChildren']())_0x3c9cd4=_0x3c9cd4||_0x37a484(_0x464337,_0x1d2294);}else'tableCell'==_0x17c3ef['name']&&(_0x3c9cd4=_0x3c9cd4||_0x37a484(_0x17c3ef['position']['nodeAfter'],_0x1d2294));}return _0x3c9cd4;});}['_getSuggestionCoords'](_0x2755f4){return this['_getCoordsForCells'](_0x2755f4['getRanges']()['map'](_0x236afe=>_0x236afe['start']['nodeAfter']));}}function be(_0x53754b){return Array['from'](new Set(_0x53754b)['values']());}class vt extends _0x57873f{static get['requires'](){return[It];}['afterInit'](){const _0x319713=this['editor'],_0x44f0fe=_0x319713['model']['document']['selection'],_0x56b8d1=_0x319713['locale'];if(!_0x319713['plugins']['has']('TableEditing'))return;const _0x59c991=_0x319713['plugins']['get']('TrackChangesEditing'),_0x257c4a=_0x319713['plugins']['get']('TableUtils'),_0x205bcd=_0x319713['plugins']['get'](It);_0x205bcd['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x59c991['enableCommand']('mergeTableCells',()=>{const _0x54e6f7=_0x257c4a['getSelectionAffectedTableCells'](_0x319713['model']['document']['selection']);_0x319713['model']['change'](()=>{_0x59c991['markMultiRangeBlockFormat'](_0x54e6f7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x319713['commands']['get']('mergeTableCells')['on']('execute',(_0xa54dc6,_0x1a9b8a)=>{_0x319713['commands']['get']('trackChanges')['value']&&(_0x1a9b8a['length']>0x0&&_0x1a9b8a[_0x1a9b8a['length']-0x1]&&_0x1a9b8a[_0x1a9b8a['length']-0x1]['forceDefaultExecution']||_0x59c991['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xa54dc6['stop']());},{'priority':'highest'});for(const _0x1e0e21 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4bda3f=_0x319713['commands']['get'](_0x1e0e21);_0x59c991['enableCommand'](_0x1e0e21,()=>{const _0x1ddce9=_0x319713['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x272ef8=>_0x272ef8['is']('element','tableCell')),_0x124e50=_0x4bda3f['value'];_0x319713['model']['change'](()=>{_0x59c991['markMultiRangeBlockFormat']([_0x1ddce9,_0x124e50],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xa64217 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xcf6a5=_0x319713['commands']['get'](_0xa64217);_0x59c991['enableCommand'](_0xa64217,()=>{const _0x2f4653=_0x257c4a['getSelectionAffectedTableCells'](_0x319713['model']['document']['selection'])[0x0],_0x5bc79e=_0x2f4653['findAncestor']('table'),{column:_0x10bb3f,row:_0x3e50fa}=_0x257c4a['getCellLocation'](_0x2f4653);let _0xbd52dd=[];if('horizontally'==_0xcf6a5['direction']){const _0x4c456e=_0x257c4a['createTableWalker'](_0x5bc79e,{'startRow':_0x3e50fa,'endRow':_0x3e50fa,'includeAllSlots':!0x0});_0xbd52dd=Array['from'](_0x4c456e)['map'](_0x434cd0=>_0x434cd0['cell']);}else{const _0xc7f1c0=_0x257c4a['createTableWalker'](_0x5bc79e,{'column':_0x10bb3f,'includeAllSlots':!0x0});_0xbd52dd=Array['from'](_0xc7f1c0)['map'](_0x89a278=>_0x89a278['cell']);}_0x319713['model']['change'](_0x200210=>{_0x59c991['markBlockFormat'](_0x200210['createRangeOn'](_0x2f4653),{'commandName':_0xa64217,'commandParams':[]},_0xbd52dd,_0xa64217);});});}_0x59c991['descriptionFactory']['registerDescriptionCallback'](_0x5167b1=>{if('formatBlock'!=_0x5167b1['type']&&'formatInline'!=_0x5167b1['type'])return;const {data:_0x39c25a}=_0x5167b1;return _0x39c25a&&'mergeTableCells'==_0x39c25a['commandName']?{'type':'format','content':o(_0x56b8d1,'*Merge\x20cells*')}:void 0x0;}),_0x59c991['descriptionFactory']['registerDescriptionCallback'](_0x198362=>{if('formatBlock'!=_0x198362['type']&&'formatInline'!=_0x198362['type'])return;const {data:_0x37639d}=_0x198362;return _0x37639d?'splitTableCellVertically'==_0x37639d['commandName']?{'type':'format','content':o(_0x56b8d1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x37639d['commandName']?{'type':'format','content':o(_0x56b8d1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x38704c=_0x205bcd['_acceptFormatSuggestionCallbackFactory']();for(const _0x5162ca of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x59c991['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5162ca,'accept',_0x38704c);for(const _0x3de720 of['splitTableCellVertically','splitTableCellHorizontally'])_0x59c991['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3de720,'accept',_0x38704c);_0x59c991['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x46b892=>{_0x319713['model']['change'](_0x458b70=>{const _0x4c9853=Array['from'](_0x44f0fe['getRanges']())['map'](_0x3d8e28=>_0x40584f['fromRange'](_0x3d8e28));_0x458b70['setSelection'](_0x46b892),_0x319713['commands']['get']('mergeTableCells')['refresh'](),_0x319713['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3cc77f=_0x4c9853['filter'](_0x427ad3=>'$graveyard'!=_0x427ad3['root']['rootName']);_0x3cc77f['length']>0x0&&_0x458b70['setSelection'](_0x3cc77f);for(const _0x5e8f02 of _0x4c9853)_0x5e8f02['detach']();});});for(const _0x610fa3 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x39bdec=_0x319713['commands']['get'](_0x610fa3);_0x39bdec['on']('set:isEnabled',(_0x2cf5fb,_0x508a72,_0x431855)=>{if(_0x431855){const _0x100089=_0x319713['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x56b10c=>_0x56b10c['is']('element','tableCell'));this['_areMergableCells'](_0x39bdec['value'],_0x100089)||(_0x2cf5fb['return']=!0x1,_0x2cf5fb['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4a4234=this['editor']['commands']['get']('mergeTableCells'),_0x14e02f=this['editor']['plugins']['get']('TableUtils');if(!_0x4a4234['isEnabled'])return!0x1;const _0x497f6e=_0x14e02f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3f4c56 of _0x497f6e)for(const _0x12070e of _0x497f6e)if(_0x3f4c56!=_0x12070e&&!this['_areMergableCells'](_0x3f4c56,_0x12070e))return!0x1;return!0x0;}['_areMergableCells'](_0x28e922,_0x3c0d0f){const _0x1785a2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f9930=this['editor']['model']['createRangeOn'](_0x28e922),_0x4ca79a=this['editor']['model']['createRangeOn'](_0x3c0d0f),_0x362592=new Set(),_0x3d31c1=new Set();for(const _0x5aeb77 of _0x1785a2['getSuggestions']())if(('insertion'==_0x5aeb77['type']||'deletion'==_0x5aeb77['type']||'mergeTableCells'==_0x5aeb77['subType'])&&_0x5aeb77['isInContent']){for(const _0x1dde53 of _0x5aeb77['getRanges']())_0x1dde53['containsRange'](_0x1f9930,!0x0)&&_0x362592['add'](_0x5aeb77['type']+':'+_0x5aeb77['author']['id']),_0x1dde53['containsRange'](_0x4ca79a,!0x0)&&_0x3d31c1['add'](_0x5aeb77['type']+':'+_0x5aeb77['author']['id']);}if(_0x362592['size']!=_0x3d31c1['size'])return!0x1;for(const _0x5752b6 of _0x362592)if(!_0x3d31c1['has'](_0x5752b6))return!0x1;return!0x0;}}class Ct extends _0x57873f{static get['requires'](){return[It];}['afterInit'](){const _0x375513=this['editor'];if(!_0x375513['plugins']['has']('TableEditing'))return;const _0x5c32d5=_0x375513['locale'],_0x5c473c=_0x375513['plugins']['get']('TrackChangesEditing');_0x5c473c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5c473c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5c473c['registerBlockAttribute']('headingRows'),_0x5c473c['registerBlockAttribute']('headingColumns'),_0x5c473c['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5c32d5,'FORMAT_HEADER_ROW')),_0x5c473c['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5c32d5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5c3f57=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53a88c=this['editor']['plugins']['get']('TableUtils'),_0x5dc6fa=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0xb0b140({showActiveMarker:_0x1c5982=!0x0,setDataAttribute:_0x464653=!0x0}={}){return(_0x427c21,_0xab2de8,_0xb214d8)=>{const {type:_0x56a23e,id:_0x1836a2}=_0x5c3f57['_splitMarkerName'](_0xab2de8['markerName']),_0x2f3527=_0x5c3f57['getSuggestion'](_0x1836a2),_0x10d85a=_0x2f3527['data'];if('formatBlock'!=_0x2f3527['type']||!_0x10d85a||'setTableColumnHeader'!=_0x10d85a['commandName'])return;if(_0xab2de8['item'])return void _0x427c21['stop']();if(!_0xb214d8['consumable']['consume'](_0xab2de8['markerRange'],_0x427c21['name']))return;const _0x4c2ee4=_0xab2de8['markerRange']['start']['nodeAfter'],_0x1e85d7=_0xab2de8['markerRange']['end']['nodeBefore'],_0x1ecbde=_0x4c2ee4['parent']['parent'],{column:_0x397864}=_0x53a88c['getCellLocation'](_0x4c2ee4),{column:_0x10dd58}=_0x53a88c['getCellLocation'](_0x1e85d7);for(let _0x22581b=_0x397864;_0x22581b<=_0x10dd58;_0x22581b++){const _0x5ae5a1=_0x53a88c['createTableWalker'](_0x1ecbde,{'column':_0x22581b,'includeAllSlots':!0x1});for(const _0x725929 of _0x5ae5a1){const _0x26c834=_0x725929['cell'],_0x25cc62=_0xb214d8['mapper']['toViewElement'](_0x26c834);_0xb214d8['writer']['addClass']('ck-suggestion-marker-'+_0x56a23e,_0x25cc62),_0x464653&&_0xb214d8['writer']['setAttribute']('data-suggestion',_0x1836a2,_0x25cc62),_0xb214d8['mapper']['bindElementToMarker'](_0x25cc62,_0xab2de8['markerName']),_0x1c5982&&(_0x5c3f57['activeMarkers']['includes'](_0xab2de8['markerName'])?_0xb214d8['writer']['addClass']('ck-suggestion-marker--active',_0x25cc62):_0xb214d8['writer']['removeClass']('ck-suggestion-marker--active',_0x25cc62));}}};}_0x5c3f57['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5dc6fa),_0x5c3f57['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5dc6fa),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xb0b140(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5aaacb,_0x2353a5,_0x2498ba)=>{_0x2498ba['options']['showSuggestionHighlights']&&_0xb0b140({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5aaacb,_0x2353a5,_0x2498ba);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4a0f0b,_0xd6cb11,_0x17e013)=>{const {type:_0x447401,id:_0x595cd9}=_0x5c3f57['_splitMarkerName'](_0xd6cb11['markerName']),_0x9fb667=_0x5c3f57['getSuggestion'](_0x595cd9),_0x485aec=_0x9fb667['data'];if('formatBlock'!=_0x9fb667['type']||!_0x485aec||'setTableColumnHeader'!=_0x485aec['commandName'])return;const _0x52c596=_0x17e013['mapper']['markerNameToElements'](_0xd6cb11['markerName']);if(_0x52c596){for(const _0x160de3 of _0x52c596)_0x17e013['writer']['removeClass']('ck-suggestion-marker-'+_0x447401,_0x160de3),_0x17e013['writer']['removeClass']('ck-suggestion-marker--active',_0x160de3),_0x17e013['writer']['removeAttribute']('data-suggestion',_0x160de3),_0x17e013['mapper']['unbindElementFromMarkerName'](_0x160de3,_0xd6cb11['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x308a14=this['editor'],_0x31da56=_0x308a14['locale'];function _0x3a088f(_0x4c1758){return{'type':'format','content':o(_0x31da56,'*Format:*\x20%0',_0x4c1758)};}_0x308a14['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b9cea=>{if('formatBlock'!=_0x3b9cea['type'])return;const {data:_0x5030c7}=_0x3b9cea;if(_0x5030c7){if('setTableRowHeader'==_0x5030c7['commandName']){const _0x2762f9=_0x5030c7['commandParams'][0x0]['forceValue'];return _0x3a088f(o(_0x31da56,_0x2762f9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5030c7['commandName']){const _0x3cc4b5=_0x5030c7['commandParams'][0x0]['forceValue'];return _0x3a088f(o(_0x31da56,_0x3cc4b5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x2a2aac=>[_0x2a2aac,null]));class _t extends _0x57873f{static get['requires'](){return[It];}['afterInit'](){const _0x20ef00=this['editor'];if(!_0x20ef00['plugins']['has']('TableClipboard'))return;const _0x33108a=_0x20ef00['plugins']['get']('TrackChangesEditing'),_0x1c7621=_0x20ef00['plugins']['get']('TableUtils'),_0x5a5006=_0x20ef00['plugins']['get'](It),_0x619fd0=_0x20ef00['plugins']['get']('TableClipboard');_0x5a5006['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x20ef00['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x20ef00['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3c8341=null;_0x20ef00['model']['on']('insertContent',(_0x51d66b,_0x2fcff1)=>{const [_0x1d9aa5,_0xa4e5ed]=_0x2fcff1,_0x2cfa36=_0x2fcff1[_0x2fcff1['length']-0x1];_0x2cfa36&&_0x2cfa36['forceDefaultExecution']||_0x33108a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xe33bc5,_0x421c3e,_0x58afb1,_0x21decc,_0x3e9075){if(_0x421c3e&&!_0x421c3e['is']('documentSelection'))return!0x1;const _0x400f6a=_0x3e9075['getTableIfOnlyTableInContent'](_0xe33bc5,_0x58afb1);if(!_0x400f6a||!Re(_0x400f6a,void 0x0,_0x21decc))return!0x1;const _0x2f8865=_0x21decc['getSelectionAffectedTableCells'](_0x58afb1['document']['selection']);if(!_0x2f8865['length'])return!0x1;const _0x5e6adb=_0x2f8865[0x0]['findAncestor']('table'),_0x5aa667=_0x21decc['getRowIndexes'](_0x2f8865),_0x5c3ecf=_0x21decc['getColumnIndexes'](_0x2f8865),_0x42bfce={'startRow':_0x5aa667['first'],'endRow':_0x5aa667['last'],'startColumn':_0x5c3ecf['first'],'endColumn':_0x5c3ecf['last']};return 0x1==_0x2f8865['length']&&(_0x42bfce['endRow']+=_0x21decc['getRows'](_0x400f6a)-0x1,_0x42bfce['endColumn']+=_0x21decc['getColumns'](_0x400f6a)-0x1),Re(_0x5e6adb,_0x42bfce,_0x21decc);}(_0x1d9aa5,_0xa4e5ed,_0x20ef00['model'],_0x1c7621,_0x619fd0)&&(_0x51d66b['stop'](),_0x3c8341={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x20ef00['model']['change'](()=>{_0x20ef00['model']['insertContent'](_0x2fcff1[0x0],_0x2fcff1[0x1],_0x2fcff1[0x2],{'forceDefaultExecution':!0x0});const _0x20a400=_0x59c837(),{rowInsertionRanges:_0x1d3e66,columnInsertionRanges:_0x320d09,insertionRanges:_0x4183e4,deletionRanges:_0x5754e3,cells:_0x4eb783}=_0x3c8341;_0x1d3e66['length']&&_0x33108a['markMultiRangeInsertion'](_0x1d3e66,'tablePasteRow',{'tablePasteChainId':_0x20a400}),_0x320d09['length']&&_0x33108a['markMultiRangeInsertion'](_0x320d09,'tablePasteColumn',{'tablePasteChainId':_0x20a400}),_0x4183e4['length']&&(_0x33108a['markMultiRangeInsertion'](_0x4183e4,'tablePaste',{'tablePasteChainId':_0x20a400,'skipNestingCheck':!0x0}),_0x4183e4['forEach'](_0x3f8dd6=>_0x3f8dd6['detach']?.())),_0x5754e3['length']&&(_0x33108a['markMultiRangeDeletion'](_0x5754e3,'tablePaste',{'tablePasteChainId':_0x20a400,'skipNestingCheck':!0x0}),_0x5754e3['forEach'](_0x5da738=>_0x5da738['detach']?.()));const _0x761ac6=_0x33108a['markMultiRangeBlockFormat'](_0x4eb783['map'](({element:_0xf61991})=>_0xf61991),{'formatGroupId':_0x59c837()},[],'tablePasteCell',{'tablePasteChainId':_0x20a400});if(_0x761ac6){const _0x5e28e5=_0x761ac6['getMarkers'](),_0x377bcf=[];for(const {element:_0x4370c4,attributes:_0x15ca98}of _0x4eb783){if(!_0x15ca98)continue;const _0x4ddf23=_0x20ef00['model']['createRangeOn'](_0x4370c4),_0x55c7f7=_0x5e28e5['find'](_0x508f6a=>_0x508f6a['getRange']()['isEqual'](_0x4ddf23));_0x55c7f7&&_0x377bcf['push']([_0x55c7f7['name'],_0x15ca98]);}_0x377bcf['length']&&_0x761ac6['setAttribute']('markerAttributes',Object['fromEntries'](_0x377bcf));}_0x3c8341=null;}));},{'priority':_0x445841['high']+0xa}),_0x20ef00['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3bb877,_0x353520)=>{const [_0x4ef7e9,_0x29c3b6,,_0x33e216]=_0x353520;if(!_0x3c8341)return;_0x3bb877['stop']();const _0x1f7bb0=_0x4ef7e9['cell'],_0x3ccb7e=_0x29c3b6,_0x43bbfc=ke(_0x1f7bb0),_0x29eeaf=ke(_0x3ccb7e);_0x3bb877['return']=_0x1f7bb0;let _0x2331d7=null,_0x596a2c=null;if(_0x29eeaf||_0x43bbfc){if(_0x43bbfc&&!_0x29eeaf){_0x33e216['remove'](_0x1f7bb0['getChild'](0x0));for(const _0xa859fd of Array['from'](_0x3ccb7e['getChildren']()))_0x33e216['insert'](_0xa859fd,_0x1f7bb0,'end');const _0x5b8462=_0x3c8341['rowInsertionIndexes']['includes'](_0x4ef7e9['row']),_0x5ad9e3=_0x3c8341['columnInsertionIndexes']['includes'](_0x4ef7e9['column']);_0x5b8462||_0x5ad9e3||(_0x2331d7=_0x40584f['fromRange'](_0x33e216['createRangeIn'](_0x1f7bb0)));}else _0x29eeaf&&!_0x43bbfc&&(_0x596a2c=_0x33e216['createRangeIn'](_0x1f7bb0));}else{const _0x16c059=_0x33e216['createElement']('tableCellSuggestion'),_0xd13d71=_0x33e216['createElement']('tableCellSuggestion');_0x33e216['wrap'](_0x33e216['createRangeIn'](_0x1f7bb0),_0xd13d71),_0x33e216['insert'](_0x16c059,_0x1f7bb0,0x0);for(const _0x3d2c46 of Array['from'](_0x3ccb7e['getChildren']()))_0x33e216['insert'](_0x3d2c46,_0x16c059,'end');_0x2331d7=_0x40584f['fromRange'](_0x33e216['createRangeOn'](_0x16c059)),_0x596a2c=_0x40584f['fromRange'](_0x33e216['createRangeOn'](_0xd13d71));}const _0x4f8574=Array['from'](_0x3ccb7e['getAttributes']())['filter'](([_0x392a75])=>Pe['includes'](_0x392a75));_0x3c8341['cells']['push']({'element':_0x1f7bb0,'attributes':_0x4f8574['length']?Object['fromEntries'](_0x4f8574):null}),_0x2331d7&&_0x3c8341['insertionRanges']['push'](_0x2331d7),_0x596a2c&&_0x3c8341['deletionRanges']['push'](_0x596a2c);},{'priority':'high'}),_0x1c7621['on']('insertColumns',(_0x391f3e,_0x9a6ced)=>{const [_0x1bbaa1,_0x401915={}]=_0x9a6ced;if(!_0x3c8341)return;const _0x83a31e=_0x401915['at']||0x0,_0x121bb4=_0x401915['columns']||0x1;_0x3c8341['columnInsertionIndexes']=new Array(_0x121bb4)['fill'](_0x83a31e)['map']((_0x228a02,_0x21180e)=>_0x228a02+_0x21180e);for(const {cell:_0x91b64f}of _0x1c7621['createTableWalker'](_0x1bbaa1,{'startColumn':_0x83a31e,'endColumn':_0x83a31e+_0x121bb4-0x1}))_0x3c8341['columnInsertionRanges']['push'](_0x20ef00['model']['createRangeOn'](_0x91b64f));},{'priority':'low'}),_0x1c7621['on']('insertRows',(_0x406b8d,_0x4a4e80)=>{const [_0xcbdc28,_0x3409df={}]=_0x4a4e80;if(!_0x3c8341)return;const _0x3bfdd6=_0x3409df['at']||0x0,_0x1f305c=_0x3409df['rows']||0x1;_0x3c8341['rowInsertionIndexes']=new Array(_0x1f305c)['fill'](_0x3bfdd6)['map']((_0x31541f,_0x2b4265)=>_0x31541f+_0x2b4265);for(const {cell:_0x5e58f2}of _0x1c7621['createTableWalker'](_0xcbdc28,{'startRow':_0x3bfdd6,'endRow':_0x3bfdd6+_0x1f305c-0x1}))_0x3c8341['rowInsertionRanges']['push'](_0x20ef00['model']['createRangeOn'](_0x5e58f2));},{'priority':'low'}),_0x33108a['descriptionFactory']['registerDescriptionCallback'](_0x5e2397=>{if(_0x5e2397['subType']&&_0x5e2397['subType']['startsWith']('tablePaste'))return _0x5e2397['previous']?{}:{'type':'insertion','content':o(_0x20ef00['locale'],'*Replace\x20table\x20cells*')};});const _0x1766f1=()=>!0x1;for(const _0x3d3ccf of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x33108a['_suggestionFactory']['registerCustomCallback']('insertion',_0x3d3ccf,'join',_0x1766f1),_0x33108a['_suggestionFactory']['registerCustomCallback']('deletion',_0x3d3ccf,'join',_0x1766f1),_0x33108a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d3ccf,'join',_0x1766f1);_0x33108a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1766f1),_0x33108a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x316e1c,_0x1304bf,_0x5aa91c)=>{const _0x2a29d1=_0x316e1c['map'](_0x3c9203=>_0x3c9203['getContainedElement']())['filter'](_0x53d1f0=>_0x53d1f0),_0x435f2e=new Map(_0x2a29d1['map'](_0x3b4978=>[_0x3b4978,null]));if(_0x3c8341){for(const {element:_0x513603,attributes:_0x378bf5}of _0x3c8341['cells'])_0x378bf5&&_0x435f2e['set'](_0x513603,_0x378bf5);}else{if(_0x5aa91c&&_0x5aa91c['markerAttributes'])for(const [_0x2ff3df,_0x2c094f]of Object['entries'](_0x5aa91c['markerAttributes'])){const _0x4b7728=_0x20ef00['model']['markers']['get'](_0x2ff3df),_0x562f6d=_0x4b7728?_0x4b7728['getRange']()['getContainedElement']():null;_0x562f6d&&_0x435f2e['set'](_0x562f6d,_0x2c094f);}}_0x20ef00['model']['change'](_0x5a0c46=>{for(const [_0x48f032,_0x1d3441]of _0x435f2e)_0x5a0c46['setAttributes']({...we,..._0x1d3441},_0x48f032);});});const _0x42d520=(_0x2983fb,_0x2f8fe3)=>{_0x33108a['_suggestionFactory']['registerCustomCallback'](_0x2983fb,'tablePaste',_0x2f8fe3,(_0x4eb070,_0x577aee,_0x4d174f)=>{_0x20ef00['model']['change'](_0xab9bbc=>{const _0x3b07f8=[];for(const _0x3ae5b2 of _0x4eb070){const _0x402da7=_0x3ae5b2['start']['nodeAfter'];_0x402da7['is']('element','tableCellSuggestion')&&_0x3b07f8['push'](_0x402da7);}_0x33108a['_suggestionFactory']['getSuggestionCallback'](_0x2983fb,null,_0x2f8fe3)(_0x4eb070,_0x577aee,_0x4d174f);for(const _0x74f87b of _0x3b07f8)'$graveyard'!=_0x74f87b['root']['rootName']&&_0xab9bbc['unwrap'](_0x74f87b);});});};_0x42d520('insertion','accept'),_0x42d520('insertion','discard'),_0x42d520('deletion','accept'),_0x42d520('deletion','discard'),_0x33108a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2702ba=>{const _0x510321=_0x2702ba['map'](_0x5db9eb=>_0x5db9eb['getContainedElement']()),_0xd09e9a=_0x510321[0x0]['findAncestor']('table'),{minRow:_0x16e4df,maxRow:_0x128949}=_0x5a5006['_getCoordsForCells'](_0x510321);_0x1c7621['removeRows'](_0xd09e9a,{'at':_0x16e4df,'rows':_0x128949-_0x16e4df+0x1});}),_0x33108a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4837d1=>{const _0x11706f=_0x4837d1['map'](_0x51873d=>_0x51873d['getContainedElement']()),_0x386e19=_0x11706f[0x0]['findAncestor']('table'),{minColumn:_0x399e5d,maxColumn:_0x3f530c}=_0x5a5006['_getCoordsForCells'](_0x11706f);_0x1c7621['removeColumns'](_0x386e19,{'at':_0x399e5d,'columns':_0x3f530c-_0x399e5d+0x1});});const _0x2f2fbb=(_0x413563,_0x302232)=>{if(!_0x302232['subType']||!_0x302232['subType']['startsWith']('tablePaste'))return;const _0x1c907c=_0x302232['attributes']['tablePasteChainId'],_0x392e4b=_0x33108a['getSuggestions']()['filter'](_0x3ee85f=>_0x3ee85f['isInContent']&&_0x3ee85f['attributes']&&_0x3ee85f['attributes']['tablePasteChainId']==_0x1c907c);_0x392e4b['length']&&_0x302232['getAllAdjacentSuggestions']()['length']!=_0x392e4b['length']&&_0x392e4b['reduce']((_0x3d1e65,_0x4f5ff3)=>(_0x3d1e65['next']=_0x4f5ff3,_0x4f5ff3['previous']=_0x3d1e65,_0x4f5ff3));};function _0x3a8cd8(_0x287f7d,_0x24edd0=!0x0){const {id:_0x1155b6,authorId:_0x38cd72}=_0x33108a['_splitMarkerName'](_0x287f7d['markerName']),_0x4d3ca9=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2bae1e=_0x33108a['activeMarkers']['includes'](_0x287f7d['markerName']);return _0x2bae1e&&_0x4d3ca9['push']('ck-suggestion-marker--active'),{'classes':_0x4d3ca9,'attributes':{'data-suggestion':_0x1155b6,'data-author-id':_0x38cd72},'priority':_0x2bae1e&&_0x24edd0?0xbc2:0xbb8};}_0x33108a['on']('suggestionLoaded',_0x2f2fbb,{'priority':'high'}),_0x33108a['on']('suggestionUnloaded',_0x2f2fbb,{'priority':'high'}),_0x20ef00['model']['document']['registerPostFixer'](()=>{let _0xcf06d4=!0x1;const _0x533f89=Array['from'](_0x20ef00['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x267887,data:_0x5d720e}of _0x533f89){const {group:_0x230230,type:_0x9f4ec1,id:_0x10c9d8}=_0x33108a['_splitMarkerName'](_0x267887);if('suggestion'!=_0x230230||'deletion'!=_0x9f4ec1||_0x5d720e['oldRange'])continue;if(!_0x33108a['hasSuggestion'](_0x10c9d8))continue;const _0x5e0d0c=_0x33108a['getSuggestion'](_0x10c9d8)['getRanges'](),_0x4d8f70=_0x20ef00['plugins']['get']('Users')['me'];for(const _0x40551f of _0x33108a['getSuggestions']()){if(!_0x40551f['isInContent']||_0x40551f['author']!=_0x4d8f70)continue;if('formatBlock'!=_0x40551f['type']||'tablePasteCell'!=_0x40551f['subType'])continue;if(_0x40551f['getRanges']()['every'](_0x6a139a=>_0x5e0d0c['some'](_0x2878de=>_0x2878de['containsRange'](_0x6a139a,!0x0)))){for(const _0x3f4997 of _0x40551f['getAllAdjacentSuggestions']())_0x3f4997['isInContent']&&(_0x3f4997['discard'](),_0xcf06d4=!0x0);}}}return _0xcf06d4;}),_0x20ef00['model']['document']['registerPostFixer'](_0xd87563=>{const _0x4574ec=_0x20ef00['commands']['get']('redo');if(!_0x4574ec||!_0x4574ec['_createdBatches']['has'](_0xd87563['batch']))return!0x1;let _0x43d6ef=!0x1;const _0x4ff6ed=_0x20ef00['plugins']['get']('Users')['me'],_0x36e830=_0x20ef00['model']['document']['differ']['getChanges'](),_0xd7fe1c=Array['from'](_0x20ef00['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x18c90b,data:_0x3562d8})=>{const {group:_0x3a04a5,subType:_0x578aaa,authorId:_0x16e8ee}=_0x33108a['_splitMarkerName'](_0x18c90b);return'suggestion'==_0x3a04a5&&'tablePaste'==_0x578aaa&&_0x16e8ee==_0x4ff6ed['id']&&!_0x3562d8['oldRange'];});for(const _0x3154d7 of _0x36e830){if('insert'!=_0x3154d7['type']||'tableCellSuggestion'!=_0x3154d7['name']||0x1!=_0x3154d7['length'])continue;const _0x53981d=_0xd87563['createRange'](_0x3154d7['position'],_0x3154d7['position']['getShiftedBy'](0x1));if(!_0xd7fe1c['find'](({data:_0x55e4f6})=>_0x55e4f6['newRange']['isEqual'](_0x53981d))){for(const {name:_0x1f74f8,data:_0x599a83}of _0xd7fe1c)if(_0x53981d['containsRange'](_0x599a83['newRange'])){_0xd87563['updateMarker'](_0x1f74f8,{'range':_0x53981d}),_0x43d6ef=!0x0;break;}}}return _0x43d6ef;}),_0x20ef00['model']['document']['registerPostFixer'](_0x7285df=>{let _0x36d2d6=!0x1;const _0x2caa2d=_0x20ef00['plugins']['get']('Users')['me'],_0x4147c0=_0x33108a['getSuggestions']()['filter'](_0x588210=>_0x588210['isInContent']&&_0x588210['author']==_0x2caa2d),_0x1a1992=new Set(),_0x474a47=new Set();for(const _0x9ab91d of _0x4147c0)if('tablePaste'==_0x9ab91d['subType'])for(const _0x294ebe of _0x9ab91d['getMarkers']()){const _0x409e88=_0x294ebe['getRange']()['getContainedElement']();if(_0x409e88){if(_0x409e88['is']('element','tableCellSuggestion')&&ke(_0x409e88)){_0x9ab91d['removeMarker'](_0x294ebe['name']),_0x1a1992['add'](_0x409e88),_0x36d2d6=!0x0;const _0x1426f3=_0x409e88['nextSibling'],_0x1eb4fa=_0x409e88['previousSibling'],_0x5eb343=_0x1426f3&&_0x1426f3['is']('element','tableCellSuggestion'),_0x10f3a4=_0x1eb4fa&&_0x1eb4fa['is']('element','tableCellSuggestion');_0x5eb343&&!_0x1a1992['has'](_0x1426f3)&&_0x474a47['add'](_0x1426f3),_0x10f3a4&&!_0x1a1992['has'](_0x1eb4fa)&&_0x474a47['add'](_0x1eb4fa);}else _0x409e88['is']('element','paragraph')&&_0x409e88['isEmpty']&&(_0x9ab91d['removeMarker'](_0x294ebe['name']),_0x36d2d6=!0x0);}}else{if('tablePasteCell'==_0x9ab91d['subType']){if(!_0x9ab91d['attributes']||!_0x9ab91d['attributes']['tablePasteChainId'])continue;const _0x18bad0=_0x9ab91d['attributes']['markerAttributes'];if(_0x18bad0&&Object['keys'](_0x18bad0)['length'])continue;const _0x15c1a5=_0x9ab91d['attributes']['tablePasteChainId'];let _0x18f5bc=!0x0,_0xfbcb85=!0x0;for(const _0x365e5f of _0x4147c0)if(_0x365e5f['subType']&&_0x365e5f['subType']['startsWith']('tablePaste')){if(!_0x365e5f['attributes']['tablePasteChainId']){_0xfbcb85=!0x1;break;}if(_0x365e5f['id']!=_0x9ab91d['id']&&_0x365e5f['attributes']['tablePasteChainId']==_0x15c1a5){_0x18f5bc=!0x1;break;}}_0xfbcb85&&_0x18f5bc&&(_0x9ab91d['removeMarkers'](),_0x36d2d6=!0x0);}}for(const _0x576573 of _0x1a1992)_0x7285df['remove'](_0x576573);for(const _0x390610 of _0x474a47)_0x7285df['unwrap'](_0x390610);return _0x36d2d6;}),_0x20ef00['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2b6889=>_0x3a8cd8(_0x2b6889),'converterPriority':'high'}),_0x20ef00['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x10e0ad,_0x17cba1)=>_0x17cba1['options']['showSuggestionHighlights']?_0x3a8cd8(_0x10e0ad,!0x1):null,'converterPriority':'high'});const _0x19e3c8=_0x20ef00['editing']['view'];this['listenTo'](_0x19e3c8['document'],'clipboardOutput',(_0x13fc75,_0x408c52)=>{const _0x35c270=[];for(const _0x48f960 of _0x19e3c8['createRangeIn'](_0x408c52['content'])['getItems']())_0x48f960['is']('element','suggestion-td')&&_0x35c270['push'](_0x48f960);_0x19e3c8['change'](_0x3c6b94=>{for(const _0x103fab of _0x35c270)_0x3c6b94['move'](_0x3c6b94['createRangeIn'](_0x103fab),_0x3c6b94['createPositionBefore'](_0x103fab)),_0x3c6b94['remove'](_0x103fab);});});}}function ke(_0x1e6614){if(_0x1e6614['isEmpty'])return!0x0;const _0x14fbdf=_0x1e6614['getChild'](0x0);return _0x14fbdf['is']('element','paragraph')&&_0x14fbdf['isEmpty'];}function Re(_0x2b0608,_0x15cde0={},_0x1fb7ed){for(const {isAnchor:_0x1026d3,cellHeight:_0x4e3761,cellWidth:_0x95ef1f}of _0x1fb7ed['createTableWalker'](_0x2b0608,{'includeAllSlots':!0x0,..._0x15cde0}))if(!_0x1026d3||0x1!=_0x4e3761||0x1!=_0x95ef1f)return!0x1;return!0x0;}class Nt extends _0x57873f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x423d85=this['editor']['plugins']['get']('TrackChangesEditing');_0x423d85['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x423d85['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x423d85['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x423d85['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x423d85['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x423d85['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2cc142,_0x4f7415){const _0x23bd07=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1249cc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4d95d2=_0x4f7415['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4e8eec=_0x1249cc['getColumnGroupElement'](_0x4d95d2);let _0x1c1ed9=_0x4e8eec?_0x1249cc['getTableColumnsWidths'](_0x4e8eec):null,_0x237cf7=_0x4d95d2['getAttribute']('tableWidth')||null;const _0x27c5ae=_0x4f7415['tableWidth']||_0x237cf7,_0x1c4bd4=_0x4f7415['columnWidths']||_0x1c1ed9,_0x2562b5=this['editor']['plugins']['get']('Users')['me'];for(const _0x2dfb42 of _0x23bd07['getSuggestions']()){const _0x14780c=_0x2dfb42['getContainedElement']();if('resizeTable'===_0x2dfb42['subType']&&_0x14780c===_0x4d95d2){_0x2dfb42['author']!==_0x2562b5&&_0x2dfb42['discard']();const _0x29bad3=_0x2dfb42['data']['commandParams'];_0x237cf7=_0x29bad3[0x0]['tableWidth'],_0x1c1ed9=_0x29bad3[0x0]['columnWidths'];break;}}_0x2cc142({'table':_0x4d95d2,'tableWidth':_0x27c5ae,'columnWidths':_0x1c4bd4}),_0x23bd07['markBlockFormat'](_0x4d95d2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x237cf7,'columnWidths':_0x1c1ed9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5cdb46){if('formatBlock'!=_0x5cdb46['type']&&'formatInline'!=_0x5cdb46['type'])return;const {data:_0x2c2a80}=_0x5cdb46;if(_0x2c2a80&&'resizeTable'===_0x2c2a80['formatGroupId']){const _0x3bd15b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3bd15b)};}}}class Dt extends _0x57873f{['afterInit'](){const _0x1ad14b=this['editor'];_0x1ad14b['plugins']['has']('Template')&&_0x1ad14b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x57873f{['afterInit'](){const _0x1505cc=this['editor'];if(!_0x1505cc['commands']['get']('insertTableOfContents'))return;_0x1505cc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4dcfc4=_0x1505cc['plugins']['get']('TrackChangesEditing'),_0xfa98ab=_0x1505cc['locale'];_0x4dcfc4['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3141d7=>o(_0xfa98ab,'ELEMENT_TABLE_OF_CONTENTS',_0x3141d7));}}class $t extends _0x57873f{['afterInit'](){const _0x265102=this['editor'];if(!_0x265102['plugins']['has']('Title'))return;const _0x5031d5=_0x265102['plugins']['get']('TrackChangesEditing');_0x5031d5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x265102['locale'],'ELEMENT_TITLE')),_0x265102['model']['document']['registerPostFixer'](_0x5216dd=>{let _0x40acc7=!0x1;const _0x35684a=Array['from'](_0x265102['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x65889,data:_0x12af35}of _0x35684a){const {group:_0x3ec9f3}=_0x5031d5['_splitMarkerName'](_0x65889);if('suggestion'!==_0x3ec9f3||!_0x12af35['newRange'])continue;const _0x28f5e0=_0x12af35['newRange'],_0xa676cd=_0x28f5e0['end']['nodeBefore'];if(!_0xa676cd||!_0xa676cd['is']('element','title-content'))continue;if(!_0x28f5e0['start']['isTouching'](_0x28f5e0['end']))continue;const _0x4de58d=_0x265102['model']['schema']['getNearestSelectionRange'](_0x28f5e0['end'],'forward');if(_0x4de58d&&_0x4de58d['isCollapsed']){const _0x194c0d=_0x5216dd['createRange'](_0x28f5e0['start'],_0x4de58d['start']);_0x194c0d['isEqual'](_0x28f5e0)||(_0x5216dd['updateMarker'](_0x65889,{'range':_0x194c0d}),_0x40acc7=!0x0);}_0x40acc7||(_0x5216dd['removeMarker'](_0x65889),_0x40acc7=!0x0);}return _0x40acc7;});}}class Bt extends _0x57873f{['afterInit'](){const _0x2bb052=this['editor'],_0x139a3=_0x2bb052['plugins']['get']('TrackChangesEditing');_0x2bb052['plugins']['has']('UndoEditing')&&(_0x139a3['enableCommand']('undo'),_0x139a3['enableCommand']('redo'));}}class xt extends _0x57873f{static get['requires'](){return[It];}['afterInit'](){const _0x4dd2fb=this['editor'];if(!_0x4dd2fb['plugins']['has']('TableCaptionEditing'))return;_0x4dd2fb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x57873f{['tableProperties'];['tableCellProperties'];constructor(_0x2a18ce){super(_0x2a18ce),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x2da79c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x28172e of this['tableProperties'])_0x2da79c['enableCommand'](_0x28172e,(_0x527ba8,_0x5cb95f)=>{const _0x40a596=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x28172e,[_0x40a596],this['tableProperties'],'tableProperties',_0x527ba8,_0x5cb95f);});_0x2da79c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2da79c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2da79c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1d0496,_0x10be1c)=>this['handleDiscardAction'](this['tableProperties'],_0x1d0496,_0x10be1c)),_0x2da79c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1789d1 of this['tableCellProperties'])_0x2da79c['enableCommand'](_0x1789d1,(_0x3b26cf,_0x4188fa)=>{const _0x449f96=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1789d1,_0x449f96,this['tableCellProperties'],'tableCellProperties',_0x3b26cf,_0x4188fa);});_0x2da79c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2da79c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2da79c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x56792e,_0x44379c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x56792e,_0x44379c)),_0x2da79c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2da79c['descriptionFactory']['registerDescriptionCallback'](_0x15b442=>this['handleSuggestionDescription'](_0x15b442));}['_handlePropertyChange'](_0x5b3a7d,_0x248fd5,_0x3f907f,_0x239283,_0x2f0f9a,_0x3f4ce3){const _0x509917=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3f4ce3['batch'],()=>{for(const _0x571c14 of _0x248fd5){if(this['_getSuggestion'](_0x571c14,_0x239283))_0x2f0f9a(_0x3f4ce3);else{const _0x6c2c5={};for(const _0x4ff734 of _0x3f907f){const _0x5793f9=_0x571c14['getAttribute'](_0x4ff734);void 0x0!==_0x5793f9&&(_0x6c2c5[_0x4ff734]=_0x5793f9);}_0x2f0f9a(_0x3f4ce3),_0x509917['markBlockFormat'](_0x571c14,{'commandParams':[_0x6c2c5]},[],_0x239283);}}});}['handleDiscardAction'](_0x4287fd,_0x667a68,_0x4bceea){const _0x1b4809=_0x667a68[0x0]['start']['nodeAfter'],_0x53df3b=_0x4bceea['commandParams'][0x0];this['editor']['model']['change'](_0x151960=>{for(const _0x5bac66 of _0x4287fd)void 0x0!==_0x53df3b[_0x5bac66]?_0x151960['setAttribute'](_0x5bac66,_0x53df3b[_0x5bac66],_0x1b4809):_0x151960['removeAttribute'](_0x5bac66,_0x1b4809);});}['handleSuggestionDescription'](_0x5acc5b){if(_0x5acc5b['data'])switch(_0x5acc5b['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'](_0x121e61,_0x5da13a){const _0x4cb482=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x7399ff of _0x4cb482['getSuggestions']({'skipNotAttached':!0x0})){const _0x1beb8f=_0x7399ff['getContainedElement']();if(_0x7399ff['subType']===_0x5da13a&&_0x1beb8f===_0x121e61)return _0x7399ff;}return null;}}const m='$elementName';class p extends _0x57873f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x389e1f,_0x5c60d5,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0xd502ab){function _0x1d8f68(_0x18fcdb){return _0x18fcdb['map'](_0x37bfcb=>String['fromCharCode'](_0x37bfcb))['join']('');}super(_0xd502ab),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x47c329,_0x1798da,_0x1d2241,_0x49f6f6)=>{this['_model']['change'](()=>{for(const _0x48277f of[..._0x49f6f6,..._0x1d2241])this['_model']['markers']['has'](_0x48277f)&&_0xd502ab['editing']['reconvertMarker'](_0x48277f);});}),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']=_0xd502ab['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(),_0xd502ab['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xd502ab['config']['get']('trackChanges.trackFormatChanges'),_0xd502ab['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xd502ab['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xd502ab,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1d8f68([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1d8f68([0x34,0x30,0x34,0x38,0x31,0x38,0x34,0x32]);}['init'](){const _0x1e9d36=this['editor'],_0x784b09=(_0x1ac8d7,_0x35509e)=>{if('attribute'!=_0x1ac8d7)return'ck-suggestion-marker-'+_0x1ac8d7;const _0x3a0568=_0x35509e['split']('|')[0x0];return this['_isBlockAttribute'](_0x3a0568)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1e9d36['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x45a8d6=>{const {id:_0x4d5a66,authorId:_0x5c0f4e,type:_0x59f0f7,subType:_0x9cd68}=this['_splitMarkerName'](_0x45a8d6['markerName']),_0x1e73ce=['ck-suggestion-marker',_0x784b09(_0x59f0f7,_0x9cd68)];let _0x217c6d=0xbb8;return this['activeMarkers']['includes'](_0x45a8d6['markerName'])&&(_0x1e73ce['push']('ck-suggestion-marker--active'),_0x217c6d=0xbc2),'deletion'==_0x59f0f7&&(_0x217c6d+=0x5),{'classes':_0x1e73ce,'attributes':{'data-suggestion':_0x4d5a66,'data-author-id':_0x5c0f4e},'priority':_0x217c6d};}}),_0x1e9d36['conversion']['for']('dataDowncast')['add'](_0x20080b=>{_0x20080b['on']('addMarker:suggestion',(_0x283cdc,_0x1bd1eb,_0x303943)=>{if(!_0x303943['options']['showSuggestionHighlights'])return;const _0x505aba=_0x1bd1eb['item'];if(!_0x505aba)return;const _0x582ee8=_0x303943['mapper']['toViewElement'](_0x505aba);_0x1e9d36['model']['schema']['isObject'](_0x505aba)&&_0x582ee8&&!_0x582ee8['getCustomProperty']('widget')&&_0x582ee8['is']('containerElement')&&_0x31d75f(_0x582ee8,_0x303943['writer']);},{'priority':'high'});}),_0x1e9d36['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x166731,_0x325db2)=>{if(!_0x325db2['options']['showSuggestionHighlights'])return null;const {type:_0x51010b,subType:_0x59fc5b}=this['_splitMarkerName'](_0x166731['markerName']);return{'classes':['ck-suggestion-marker',_0x784b09(_0x51010b,_0x59fc5b)],'priority':0xbb8};}});const _0x24e4cf=({showActiveMarkers:_0x29b99e=!0x0,isAttributeSuggestion:_0xdb4d38=!0x1}={})=>(_0x5e6f2f,_0x5afd66,_0x57d4fa)=>{if(!_0x5afd66['item'])return;const {id:_0x1ca95e,authorId:_0x5b16b7}=this['_splitMarkerName'](_0x5afd66['markerName']);if(_0xdb4d38){const _0x53238f=this['_suggestions']['get'](_0x1ca95e),_0xbc743e=this['_getAttributeKey'](_0x53238f);if(!this['_isBlockAttribute'](_0xbc743e))return;}if(_0x5afd66['item']['is']('selection'))return void _0x57d4fa['consumable']['consume'](_0x5afd66['item'],_0x5e6f2f['name']);const _0x294b24=_0x57d4fa['mapper']['toViewElement'](_0x5afd66['item']);if(_0x5afd66['item']['is']('element')&&_0x1e9d36['model']['schema']['isBlock'](_0x5afd66['item'])&&!_0x294b24['getCustomProperty']('addHighlight')){_0x57d4fa['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x294b24),_0x57d4fa['writer']['setAttribute']('data-suggestion',_0x1ca95e,_0x294b24),_0x57d4fa['writer']['setAttribute']('data-author-id',_0x5b16b7,_0x294b24),_0x57d4fa['mapper']['bindElementToMarker'](_0x294b24,_0x5afd66['markerName']),_0x29b99e&&(this['activeMarkers']['includes'](_0x5afd66['markerName'])?_0x57d4fa['writer']['addClass']('ck-suggestion-marker--active',_0x294b24):_0x57d4fa['writer']['removeClass']('ck-suggestion-marker--active',_0x294b24));for(const _0x39163a of _0x1e9d36['model']['createRangeIn'](_0x5afd66['item'])['getItems']())_0x57d4fa['consumable']['consume'](_0x39163a,_0x5e6f2f['name']);_0x57d4fa['consumable']['consume'](_0x5afd66['item'],_0x5e6f2f['name']);}};_0x1e9d36['conversion']['for']('dataDowncast')['add'](_0x14c5da=>{_0x14c5da['on']('addMarker:suggestion:formatBlock',(_0x5a8c3d,_0x5bc4c5,_0x2583de)=>{_0x2583de['options']['showSuggestionHighlights']&&_0x24e4cf({'showActiveMarkers':!0x1})(_0x5a8c3d,_0x5bc4c5,_0x2583de);},{'priority':'highest'});}),_0x1e9d36['conversion']['for']('dataDowncast')['add'](_0x48348d=>{_0x48348d['on']('addMarker:suggestion:attribute',(_0x3fa7e4,_0x18776f,_0x182ac4)=>{_0x182ac4['options']['showSuggestionHighlights']&&_0x24e4cf({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3fa7e4,_0x18776f,_0x182ac4);},{'priority':'highest'});}),_0x1e9d36['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x16fd45,_0x5a40ad)=>_0x5a40ad['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x16fd45['substr'](0xb)}}),_0x1e9d36['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x171601,{writer:_0x3a151f})=>{let _0x5dd40a='suggestion:'+_0x171601['getAttribute']('suggestion-type')+':'+_0x171601['getAttribute']('id');return _0x171601['getAttribute']('marker-count')&&(_0x5dd40a+=':'+_0x171601['getAttribute']('marker-count')),_0x3a151f['createElement']('$marker',{'data-name':_0x5dd40a});}}),_0x1e9d36['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1e9d36['conversion']['for']('editingDowncast')['add'](_0x4d8be4=>{_0x4d8be4['on']('addMarker:suggestion:formatBlock',_0x24e4cf(),{'priority':'high'});}),_0x1e9d36['conversion']['for']('editingDowncast')['add'](_0x425828=>{_0x425828['on']('addMarker:suggestion:attribute',_0x24e4cf({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1e9d36['conversion']['for']('editingDowncast')['add'](_0x389460=>{_0x389460['on']('removeMarker:suggestion:formatBlock',(_0x3671d9,_0x49caf4,_0x3192e0)=>{const _0xcf5756=_0x3192e0['mapper']['markerNameToElements'](_0x49caf4['markerName']);if(_0xcf5756){for(const _0x104a0c of _0xcf5756)_0x104a0c['getCustomProperty']('addHighlight')||(_0x3192e0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x104a0c),_0x3192e0['writer']['removeAttribute']('data-suggestion',_0x104a0c),_0x3192e0['writer']['removeAttribute']('data-author-id',_0x104a0c),_0x3192e0['mapper']['unbindElementFromMarkerName'](_0x104a0c,_0x49caf4['markerName']));}},{'priority':'high'});}),_0x1e9d36['conversion']['for']('editingDowncast')['add'](_0x14e6f9=>{_0x14e6f9['on']('removeMarker:suggestion:attribute',(_0x4845e2,_0x12d59e,_0x2d26c8)=>{const _0x1905ba=_0x2d26c8['mapper']['markerNameToElements'](_0x12d59e['markerName']);if(!_0x1905ba)return;const {id:_0x84bdd8}=this['_splitMarkerName'](_0x12d59e['markerName']),_0x993d34=this['_suggestions']['get'](_0x84bdd8),_0x13712c=this['_getAttributeKey'](_0x993d34);if(this['_isBlockAttribute'](_0x13712c)){for(const _0x10e3fe of _0x1905ba)_0x10e3fe['getCustomProperty']('addHighlight')||(_0x2d26c8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x10e3fe),_0x2d26c8['writer']['removeAttribute']('data-suggestion',_0x10e3fe),_0x2d26c8['writer']['removeAttribute']('data-author-id',_0x10e3fe),_0x2d26c8['mapper']['unbindElementFromMarkerName'](_0x10e3fe,_0x12d59e['markerName']));}},{'priority':'high'});}),_0x1e9d36['model']['document']['registerPostFixer'](_0x4f08e0=>{let _0x2c6f8e=!0x1;const _0x3336f8=Array['from'](_0x1e9d36['model']['document']['differ']['getChangedMarkers']()),_0x203577=new Set();for(const {name:_0x3dee1b,data:_0x51ffc3}of _0x3336f8){const {group:_0x274c88,type:_0x33513b,subType:_0x508cbb,id:_0x58591e}=this['_splitMarkerName'](_0x3dee1b);if('suggestion'!==_0x274c88)continue;const _0x5dbe52=this['_suggestions']['get'](_0x58591e);if(null!=_0x51ffc3['newRange']){'formatInline'==_0x33513b&&(_0x2c6f8e=_0x2c6f8e||Ut(_0x51ffc3['newRange'],_0x3dee1b,_0x4f08e0,_0x1e9d36['model']['schema']));const _0x57dad1='attribute'==_0x33513b&&this['_isBlockAttribute'](_0x508cbb['split']('|')[0x0]);if(_0x51ffc3['newRange']['isCollapsed']||'$graveyard'==_0x51ffc3['newRange']['root']['rootName']||'formatBlock'==_0x33513b&&!Ft(_0x51ffc3['newRange'])||_0x57dad1&&!Ft(_0x51ffc3['newRange'])||'deletion'==_0x33513b&&!(!Vt(_0x246757=_0x51ffc3['newRange'])&&!function(_0x58e436){return _0x58e436['start']['parent']==_0x58e436['end']['nodeBefore']&&_0x58e436['start']['isAtEnd'];}(_0x246757)))_0x4f08e0['removeMarker'](_0x3dee1b),_0x2c6f8e=!0x0;else{if(!_0x5dbe52||!_0x5dbe52['isInContent'])continue;if(_0x51ffc3['newRange']&&_0x51ffc3['oldRange']&&_0x51ffc3['newRange']['isEqual'](_0x51ffc3['oldRange']))continue;_0x203577['add'](_0x5dbe52);}}}var _0x246757;return _0x203577['size']>0x0&&(_0x2c6f8e=!!this['_joinWithAdjacentSuggestions'](_0x203577)||_0x2c6f8e),_0x2c6f8e;}),_0x1e9d36['model']['document']['registerPostFixer'](_0xb73740=>{let _0x409462=!0x1;for(const _0x15efc2 of _0x1e9d36['model']['document']['differ']['getChanges']())if('insert'==_0x15efc2['type'])for(const _0x2eaf22 of this['_suggestions']['values']()){if(_0x2eaf22['isMultiRange']||!_0x2eaf22['isInContent'])continue;const _0x2e6f2='formatBlock'==_0x2eaf22['type'],_0x22bd50=this['_getAttributeKey'](_0x2eaf22),_0x482fa6=_0x22bd50&&this['_isBlockAttribute'](_0x22bd50);if(!_0x2e6f2&&!_0x482fa6)continue;const _0x2169b3=_0x2eaf22['getFirstRange']();if(_0x2169b3['start']['parent']!=_0x2169b3['end']['parent']&&!_0x2169b3['end']['isAtEnd']){const _0x509216=_0x1e9d36['model']['createPositionAt'](_0x2169b3['start']['nodeAfter'],'end'),_0xc74432=_0x1e9d36['model']['createRange'](_0x2169b3['start'],_0x509216);_0xb73740['updateMarker'](_0x2eaf22['getFirstMarker'](),{'range':_0xc74432}),_0x409462=!0x0;}}return _0x409462;}),_0x1e9d36['model']['document']['registerPostFixer'](_0x386e32=>this['_processAttributeChanges'](_0x386e32)),_0x1e9d36['model']['document']['registerPostFixer'](_0x51f6ba=>!_0x51f6ba['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x51f6ba)),_0x1e9d36['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1e9d36['model']['document']['on']('change:data',(_0x3e10cd,_0xbd53d1)=>{if(!_0xbd53d1['isLocal']||_0xbd53d1['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xc9e366=_0x1e9d36['model']['document']['differ']['getChanges']();if(0x0==_0xc9e366['length'])return;const _0x171e95=[],_0x4f23e5=_0xc9e366['filter'](_0x2135eb=>'attribute'==_0x2135eb['type']),_0x3d2ffb=_0xc9e366['filter'](_0x1a5222=>'insert'==_0x1a5222['type']&&'$text'!=_0x1a5222['name']);for(const _0xb7fda3 of _0x4f23e5)this['_isRegisteredAttribute'](_0xb7fda3['attributeKey'])&&_0x171e95['push']({'key':_0xb7fda3['attributeKey'],'newValue':_0xb7fda3['attributeNewValue'],'oldValue':_0xb7fda3['attributeOldValue'],'range':Pt(_0xb7fda3['range'],_0x1e9d36['model'])});for(const _0x409246 of _0x3d2ffb){if('rename'!=_0x409246['action']&&'refresh'!=_0x409246['action'])continue;const _0x3d4213=Lt(_0x409246['position']['nodeAfter'],_0x1e9d36['model']),_0x4c264f=_0x409246['before'];'rename'==_0x409246['action']&&_0x171e95['push']({'key':m,'newValue':_0x409246['name'],'oldValue':_0x4c264f['name'],'range':_0x3d4213});for(const [_0x41da3a,_0x2af734]of _0x4c264f['attributes']){if(!this['_isRegisteredAttribute'](_0x41da3a))continue;const _0x1f8564=_0x409246['attributes']['get'](_0x41da3a);_0x2af734!==_0x1f8564&&_0x171e95['push']({'key':_0x41da3a,'newValue':_0x1f8564,'oldValue':_0x2af734,'range':_0x3d4213});}for(const [_0x291bc4,_0x10d0ee]of _0x409246['attributes'])this['_isRegisteredAttribute'](_0x291bc4)&&(_0x4c264f['attributes']['has'](_0x291bc4)||_0x171e95['push']({'key':_0x291bc4,'newValue':_0x10d0ee,'oldValue':null,'range':_0x3d4213}));}0x0!=_0x171e95['length']&&_0x1e9d36['model']['enqueueChange'](_0xbd53d1,_0x21bd34=>{const _0x290c28=_0x59c837();for(const {range:_0x1d5323,key:_0x4b836a,oldValue:_0x2b9ddd,newValue:_0x29321b}of _0x171e95)this['markAttributeChange'](_0x1d5323,_0x4b836a,_0x2b9ddd,_0x29321b,{'groupId':_0x290c28});this['_reduceExistingSuggestions'](_0x21bd34,_0x171e95);});},{'priority':'lowest'}),_0x1e9d36['model']['markers']['on']('update:suggestion',(_0x3313db,_0xcd6a29,_0x519a33)=>{if(null==_0x519a33){const {id:_0xdd0de4}=this['_splitMarkerName'](_0xcd6a29['name']),_0x3d5d5d=this['_suggestions']['get'](_0xdd0de4);_0x3d5d5d&&_0x3d5d5d['addMarkerName'](_0xcd6a29['name']);}}),_0x1e9d36['model']['document']['on']('change:data',()=>{const _0x39eb9c=Array['from'](_0x1e9d36['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5e8087=>'suggestion'===this['_splitMarkerName'](_0x5e8087['name'])['group']);if(0x0===_0x39eb9c['length'])return;_0x39eb9c['sort']((_0xb7cc95,_0xd8ff14)=>{const _0x3a4b48=_0xb7cc95['data']['oldRange'],_0x5c1b3e=_0xd8ff14['data']['oldRange'];return null===_0x3a4b48&&null===_0x5c1b3e?0x0:null===_0x3a4b48&&null!==_0x5c1b3e?-0x1:null!==_0x3a4b48&&null===_0x5c1b3e?0x1:_0x3a4b48['start']['isBefore'](_0x5c1b3e['start'])?-0x1:0x1;});const _0x176c1c=new Set(),_0x21527b=new Set();for(const {name:_0x35b4a5,data:_0x8a7386}of _0x39eb9c){const {id:_0x3e79f7}=this['_splitMarkerName'](_0x35b4a5);if(null===_0x8a7386['oldRange']){const _0x303e14=this['_handleNewSuggestionMarker'](_0x35b4a5);_0x21527b['add'](_0x303e14);}else{const _0x455fc6=this['_suggestions']['get'](_0x3e79f7);null!==_0x8a7386['newRange']||_0x455fc6['isInContent']?(_0x176c1c['add'](_0x455fc6['head']),_0x21527b['add'](_0x455fc6)):this['_removeSuggestion'](_0x455fc6);}}_0x21527b['size']>0x0&&this['_refreshSuggestionsChain'](_0x21527b);for(const _0x349c34 of _0x176c1c)this['fire']('suggestionChanged',_0x349c34);}),_0x1e9d36['model']['on']('applyOperation',(_0x3c9d67,_0x1f70c8)=>{const _0x44b90f=_0x1f70c8[0x0];if(!this['_suggestions']['size'])return;if(!_0x44b90f['isDocumentOperation'])return;if(_0x44b90f['batch']['isUndo']||!_0x44b90f['batch']['isLocal'])return;let _0x2ee116,_0x59eae2;switch(_0x44b90f['type']){case'insert':_0x2ee116=_0x1e9d36['model']['createPositionAt'](_0x44b90f['position']),_0x59eae2=_0x2ee116['getShiftedBy'](_0x44b90f['howMany']);break;case'split':_0x2ee116=_0x1e9d36['model']['createPositionAt'](_0x44b90f['splitPosition']),_0x59eae2=_0x1e9d36['model']['createPositionAt'](_0x44b90f['moveTargetPosition']);break;case'move':_0x2ee116=_0x1e9d36['model']['createPositionAt'](_0x44b90f['targetPosition']),_0x59eae2=_0x2ee116['getShiftedBy'](_0x44b90f['howMany']);break;default:return;}const _0x321d1a=_0x1e9d36['model']['createRange'](_0x2ee116,_0x59eae2);_0x1e9d36['model']['change'](()=>{for(const {suggestion:_0x51c267,meta:_0xffe506}of this['_findSuggestions'](_0x321d1a)){if(_0x51c267['isMultiRange'])continue;if('formatInline'==_0x51c267['type'])continue;const _0x36e431=this['_getAttributeKey'](_0x51c267);if(_0x36e431&&this['_isBlockAttribute'](_0x36e431)&&'split'!=_0x44b90f['type'])continue;const _0x17ad5e=_0x51c267['data']&&_0x51c267['data']['multipleBlocks'];('formatBlock'!=_0x51c267['type']||'split'==_0x44b90f['type']&&!_0x17ad5e)&&(_0xffe506['containsRangeInObject']||'insertion'==_0x51c267['type']&&_0xffe506['isOwn']||_0x51c267['getFirstRange']()['containsRange'](_0x321d1a)&&this['_breakSuggestionMarker'](_0x51c267,_0x2ee116,_0x59eae2));}});},{'priority':'lowest'}),_0x1e9d36['model']['on']('deleteContent',(_0x53e4e5,_0x34d645)=>{const _0x12131f=_0x34d645[0x0],_0x20bd59=_0x34d645[0x1];if(_0x20bd59&&_0x20bd59['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x12131f['isCollapsed'])return;const _0x3762ad=_0x1e9d36['model']['schema'],{start:_0x44fd8e,end:_0x282db1}=_0x12131f['getFirstRange'](),_0x4675ec=_0x44fd8e['nodeAfter']&&_0x3762ad['isLimit'](_0x44fd8e['nodeAfter'])?null:_0x3762ad['getNearestSelectionRange'](_0x44fd8e,'forward'),_0x204f47=_0x282db1['nodeBefore']&&_0x3762ad['isLimit'](_0x282db1['nodeBefore'])?null:_0x3762ad['getNearestSelectionRange'](_0x282db1,'backward'),_0x192f6b=_0x1e9d36['model']['createRange'](_0x4675ec?_0x4675ec['start']:_0x44fd8e,_0x204f47?_0x204f47['end']:_0x282db1);_0x1e9d36['model']['change'](_0x3fb926=>{this['markDeletion'](_0x192f6b);const _0x41acec=_0x1e9d36['model']['schema']['getNearestSelectionRange'](_0x192f6b['start']);_0x12131f['is']('documentSelection')?_0x3fb926['setSelection'](_0x41acec):_0x12131f['setTo'](_0x41acec);}),_0x53e4e5['stop']();},{'priority':_0x445841['normal']+0xa}),_0x1e9d36['model']['on']('insertContent',(_0x430fa9,_0xb254f9)=>{const _0x4137d0=_0xb254f9[_0xb254f9['length']-0x1];_0x4137d0&&_0x4137d0['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1e9d36['model']['change'](()=>{let _0x163c13=_0x1e9d36['model']['insertContent'](_0xb254f9[0x0],_0xb254f9[0x1],_0xb254f9[0x2],{'forceDefaultExecution':!0x0});if(!_0x163c13)return;_0x430fa9['return']=_0x163c13['clone']();const _0x1d9c7e=_0x163c13['end']['nodeBefore'],_0x14394e=_0x1e9d36['model']['schema'];_0x1d9c7e&&_0x14394e['isBlock'](_0x1d9c7e)&&!_0x14394e['isObject'](_0x1d9c7e)&&(_0x163c13=_0x1e9d36['model']['createRange'](_0x163c13['start'],_0x1e9d36['model']['createPositionAt'](_0x1d9c7e,'end'))),this['markInsertion'](_0x163c13);}),_0x430fa9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x44fad6=new x(_0x1e9d36,this['_suggestions']);_0x1e9d36['commands']['add']('acceptSuggestion',_0x44fad6),this['enableCommand']('acceptSuggestion');const _0x12dd31=new R(_0x1e9d36,this['_suggestions']);_0x1e9d36['commands']['add']('discardSuggestion',_0x12dd31),this['enableCommand']('discardSuggestion'),_0x1e9d36['commands']['add']('acceptAllSuggestions',new E(_0x1e9d36,_0x44fad6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1e9d36['commands']['add']('discardAllSuggestions',new E(_0x1e9d36,_0x12dd31,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1e9d36['commands']['add']('acceptSelectedSuggestions',new O(_0x1e9d36,_0x44fad6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1e9d36['commands']['add']('discardSelectedSuggestions',new O(_0x1e9d36,_0x12dd31,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x319e6c=_0x1e9d36['plugins']['get']('CommentsRepository');this['listenTo'](_0x319e6c,'addComment',(_0x142d5a,{threadId:_0x58c2d4})=>{const _0x47fa62=this['_suggestions']['get'](_0x58c2d4);_0x47fa62&&_0x47fa62['commentThread']&&0x1===_0x47fa62['commentThread']['length']&&this['_updateSuggestionData'](_0x58c2d4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x319e6c,'removeComment',(_0x30ba82,{threadId:_0xd63dc})=>{const _0x4a43ea=this['_suggestions']['get'](_0xd63dc);_0x4a43ea&&_0x4a43ea['commentThread']&&!_0x4a43ea['commentThread']['length']&&this['_updateSuggestionData'](_0xd63dc,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x24dbed){if(this['_adapter'])throw new _0x328131('track-changes-adapter-already-set',this);this['_adapter']=_0x24dbed;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x100f89=!0x1,toJSON:_0x4c4315=!0x1}={}){const _0x5c760d=[];for(const _0x3d5da1 of this['_suggestions']['values']())_0x100f89&&!_0x3d5da1['isInContent']||_0x5c760d['push'](_0x3d5da1);return _0x4c4315?_0x5c760d['map'](_0x4fa174=>_0x4fa174['toJSON']()):_0x5c760d;}['getSuggestion'](_0x41875c){const _0x555777=this['_suggestions']['get'](_0x41875c);if(!_0x555777)throw new _0x328131('track-changes-suggestion-not-found',this);return _0x555777;}['hasSuggestion'](_0x2f618e){return this['_suggestions']['has'](_0x2f618e);}['addSuggestionData'](_0x2144cf){const {authorId:_0x22d02b,id:_0x3579d4,attributes:_0x4818e6}=_0x2144cf,[_0xf0c530,_0x309294]=_0x2144cf['type']['split'](':'),_0x344372=this['_suggestions']['get'](_0x3579d4)||this['_createSuggestion'](_0xf0c530,_0x309294,_0x3579d4,_0x22d02b,_0x4818e6);if(this['_addThreadToSuggestion'](_0x344372),this['_checkSuggestionCorrectness'](_0x344372,_0xf0c530,_0x309294||null,_0x22d02b),_0x344372['createdAt']=_0x2144cf['createdAt'],_0x344372['_isDataLoaded']=!0x0,_0x4818e6&&_0x4818e6['@external']){const _0x51d861=_0x4818e6['@external'],_0x43d089=this['_getExternalAuthor'](_0x51d861['authorName']);_0x344372['authoredAt']=_0x51d861['createdAt'],_0x344372['author']=_0x43d089,_0x344372['isExternal']=!0x0;}else _0x344372['authoredAt']=_0x2144cf['createdAt'];switch(_0x2144cf['data']&&(_0x344372['data']=_0x2144cf['data']),_0x2144cf['attributes']&&(_0x344372['attributes']=_0x2144cf['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x344372['_saved']=!0x0),this['_suggestionState']['get'](_0x344372)){case'notReady':this['_suggestionState']['set'](_0x344372,'dataReady');break;case'markerReady':_0x344372['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x344372])),this['_refreshSuggestionsChain'](new Set([_0x344372])),this['_suggestionState']['set'](_0x344372,'ready'),this['fire']('suggestionLoaded',_0x344372)):this['_suggestionState']['set'](_0x344372,'removed');}return _0x344372;}['acceptSuggestion'](_0x58937b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1a4393 of _0x58937b['getAllAdjacentSuggestions']())_0x1a4393['accept']();});});}['discardSuggestion'](_0x17451b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4b8b99 of _0x17451b['getAllAdjacentSuggestions']())_0x4b8b99['discard']();});});}['enableCommand'](_0x3fc909,_0x4e92af){const _0x452d4c=this['editor']['commands']['get'](_0x3fc909);if(!_0x452d4c)throw new _0x328131('track-changes-command-not-found',this,{'commandName':_0x3fc909});if(this['_enabledCommands']['has'](_0x452d4c))throw new _0x328131('track-changes-enable-command-twice',this,{'commandName':_0x3fc909});this['_enabledCommands']['add'](_0x452d4c),_0x4e92af&&_0x452d4c['on']('execute',(_0x38735d,_0x2c0740)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2c0740['length']>0x0&&_0x2c0740[_0x2c0740['length']-0x1]&&_0x2c0740[_0x2c0740['length']-0x1]['forceDefaultExecution']?_0x2c0740['pop']():(_0x38735d['return']=_0x4e92af((..._0x122095)=>_0x452d4c['execute'](..._0x122095,{'forceDefaultExecution':!0x0}),..._0x2c0740),_0x38735d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x10c70e){let _0x408dbb,_0x4c8226;const _0x5300fb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x408dbb=_0x10c70e();}catch(_0x5e0383){_0x4c8226=_0x5e0383;}return _0x5300fb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4c8226&&_0x328131['rethrowUnexpectedError'](_0x4c8226,this),_0x408dbb;}['markInsertion'](_0x57a8dd,_0x1d3ed6=null,_0x145dfa={}){if(_0x57a8dd['isCollapsed'])return null;const _0x1fb5a5=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1398fa,meta:_0x6348c2}of this['_findSuggestions'](_0x57a8dd,'insertion'))if(_0x6348c2['isOwn']){if(!_0x6348c2['isNextTo']){if(_0x6348c2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x1398fa,_0x145dfa))continue;return _0x1398fa;}if(qt(_0x1398fa,_0x145dfa))return _0x1398fa;this['_breakSuggestionMarker'](_0x1398fa,_0x57a8dd['start'],_0x57a8dd['end']);break;}if(_0x1d3ed6==_0x1398fa['subType']&&qt(_0x1398fa,_0x145dfa)){const _0x38c578=_0x1398fa['getFirstRange']();return _0x38c578['start']['isEqual'](_0x57a8dd['end'])?this['_setSuggestionRange'](_0x1398fa,this['_model']['createRange'](_0x57a8dd['start'],_0x38c578['end'])):this['_setSuggestionRange'](_0x1398fa,this['_model']['createRange'](_0x38c578['start'],_0x57a8dd['end'])),_0x1398fa;}}const _0x295941=_0x59c837(),_0x183ce4=_0x1fb5a5['id'],_0x2063c4=_0x1d3ed6?'insertion:'+_0x1d3ed6:'insertion',_0x405bef=this['_setSuggestionData']({'id':_0x295941,'type':_0x2063c4,'createdAt':new Date(),'authorId':_0x183ce4,'attributes':_0x145dfa});return this['_addSuggestionMarker'](_0x2063c4,_0x295941,_0x183ce4,_0x57a8dd),_0x405bef;}['markMultiRangeInsertion'](_0x32f30f,_0xd4d9ce='multi',_0x7bdd74={}){const _0x4e58ae=this['editor']['plugins']['get']('Users')['me'],_0x336cdb=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xd4d9ce,'join');for(const _0x3fd939 of this['getSuggestions']())if(_0x3fd939['author']['id']==_0x4e58ae['id']&&'insertion'==_0x3fd939['type']&&_0x3fd939['subType']==_0xd4d9ce&&qt(_0x3fd939,_0x7bdd74)&&(_0x336cdb(_0x3fd939['getRanges'](),_0x32f30f)||_0x336cdb(_0x32f30f,_0x3fd939['getRanges']()))){for(const _0x5bfd06 of _0x32f30f)_0x3fd939['addRange'](_0x5bfd06);return _0x3fd939;}for(const {suggestion:_0x76a45a,meta:_0x40b475}of this['_findSuggestions'](_0x32f30f,'insertion')){if(!_0x40b475['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x40b475['containsRangeInObject'])continue;if(!qt(_0x76a45a,_0x7bdd74))continue;let _0x3679cc=!0x0;for(const _0x2d4aa3 of _0x76a45a['getRanges']())for(const _0x58217e of _0x32f30f)if(!_0x2d4aa3['containsRange'](_0x58217e)){_0x3679cc=!0x1;break;}if(_0x3679cc)return _0x76a45a;}const _0x3ed906=_0x59c837(),_0x1b1310=_0x4e58ae['id'],_0x550c6c='insertion:'+_0xd4d9ce,_0x255140=this['_setSuggestionData']({'id':_0x3ed906,'type':_0x550c6c,'createdAt':new Date(),'authorId':_0x1b1310,'attributes':_0x7bdd74});for(const _0x21bad8 of _0x32f30f)this['_addSuggestionMarker'](_0x550c6c,_0x3ed906,_0x1b1310,_0x21bad8,u['getMultiRangeId']());return _0x255140;}['markInlineFormat'](_0x2edfc9,_0x54bdac,_0x3f861c=null,_0xac2c6f={}){if(_0x3f861c=_0x3f861c||Gt(_0x54bdac),_0x2edfc9['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5116c3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3f861c,'accept');return this['forceDefaultExecution'](()=>_0x5116c3([_0x2edfc9],_0x54bdac,_0xac2c6f)),null;}const _0x5e64c8=this['editor']['plugins']['get']('Users')['me'],_0x2579b8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x30853d,meta:_0x1e1ca7}of this['_findSuggestions'](_0x2edfc9,'insertion'))_0x1e1ca7['isOwn']&&!_0x1e1ca7['isInsideObject']&&_0x2579b8['push'](..._0x30853d['getRanges']());}const _0x586607=function(_0xfd6f7e,_0x31702f){const _0x1eb3c1=[];for(const _0x5cc363 of _0x31702f){const _0x11202a=_0xfd6f7e['getIntersection'](_0x5cc363);_0x11202a&&_0x1eb3c1['push'](_0x11202a);}return _0x1eb3c1;}(_0x2edfc9,_0x2579b8),_0x2d5b10=function(_0x2ad2a5,_0x948d0d){const _0x38f8b8=[_0x2ad2a5];for(const _0x45966f of _0x948d0d){let _0x40019b=0x0;for(;_0x40019b<_0x38f8b8['length'];){const _0x278c29=_0x38f8b8[_0x40019b]['getDifference'](_0x45966f);_0x38f8b8['splice'](_0x40019b,0x1,..._0x278c29),_0x40019b+=_0x278c29['length'];}}return _0x38f8b8;}(_0x2edfc9,_0x2579b8);_0x586607['length']&&this['_model']['change'](()=>{for(const _0x3f9d67 of _0x586607){const _0x33d12f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3f861c,'accept');this['forceDefaultExecution'](()=>_0x33d12f([_0x3f9d67],_0x54bdac,_0xac2c6f));}});for(const _0x27dcba of _0x2d5b10){let _0x3e0c13=null,_0x12eb67=_0x27dcba['start'],_0x92434c=_0x27dcba['end'];for(const {suggestion:_0x404f81,meta:_0x1bf9e2}of this['_findSuggestions'](_0x27dcba,'formatInline')){if(!_0x1bf9e2['isOwn'])continue;if(_0x404f81['subType']!=_0x3f861c)continue;if(!qt(_0x404f81,_0xac2c6f))continue;const _0x5d1bba=_0x404f81['getFirstRange']();if(_0x5d1bba['containsRange'](_0x27dcba,!0x0))return null;_0x12eb67=_0x12eb67['isBefore'](_0x5d1bba['start'])?_0x12eb67:_0x5d1bba['start'],_0x92434c=_0x92434c['isAfter'](_0x5d1bba['end'])?_0x92434c:_0x5d1bba['end'],_0x3e0c13?_0x5d1bba['start']['isBefore'](_0x3e0c13['getFirstRange']()['start'])?(_0x3e0c13['removeMarkers'](),_0x3e0c13=_0x404f81):_0x404f81['removeMarkers']():_0x3e0c13=_0x404f81;}const _0x14534c=this['_model']['createRange'](_0x12eb67,_0x92434c);if(_0x3e0c13)this['_setSuggestionRange'](_0x3e0c13,_0x14534c);else{const _0x205831=_0x59c837(),_0x5080b8=_0x5e64c8['id'];this['_setSuggestionData']({'id':_0x205831,'type':'formatInline:'+_0x3f861c,'data':_0x54bdac,'createdAt':new Date(),'authorId':_0x5080b8,'attributes':_0xac2c6f}),this['_addSuggestionMarker']('formatInline:'+_0x3f861c,_0x205831,_0x5080b8,_0x14534c);}}return null;}['markBlockFormat'](_0x354925,_0x23d0e6,_0x424f5c=[],_0x291ffa=null,_0xc26827={}){_0x23d0e6['formatGroupId']||(_0x23d0e6['formatGroupId']=_0x23d0e6['commandName']),_0x23d0e6['multipleBlocks']=_0x354925['is']('range'),_0x291ffa=_0x291ffa||Gt(_0x23d0e6);const _0x5a4f7d=_0x424f5c['map'](_0x373af2=>Lt(_0x373af2,this['_model'])),_0x306cb3=_0x354925['is']('range')?_0x354925:Lt(_0x354925,this['_model']);if('never'===this['_trackFormatChanges']){const _0x242679=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x291ffa,'accept');return this['forceDefaultExecution'](()=>_0x242679([_0x306cb3],_0x23d0e6,_0xc26827)),null;}_0x5a4f7d['push'](_0x306cb3);let _0x828ad4=!0x0;for(const _0x128d7e of _0x5a4f7d)if(!this['_rangeIsInLocalUserInsertion'](_0x128d7e)){_0x828ad4=!0x1;break;}if(_0x828ad4&&'always'!==this['_trackFormatChanges']){const _0x3c7563=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x291ffa,'accept');return this['forceDefaultExecution'](()=>_0x3c7563([_0x306cb3],_0x23d0e6,_0xc26827)),null;}let _0x5d7de9=null,_0x7c9adf=_0x306cb3['start'],_0x591574=_0x306cb3['end'];for(const {suggestion:_0xbffd2d,meta:_0x35d9fd}of this['_findSuggestions'](_0x306cb3,'formatBlock')){if(!_0x35d9fd['isOwn'])continue;if(_0x35d9fd['isNextTo']||_0x35d9fd['containsRangeInObject']||_0x35d9fd['isInsideObject'])continue;if(_0xbffd2d['data']['formatGroupId']!=_0x23d0e6['formatGroupId'])continue;if(!qt(_0xbffd2d,_0xc26827))continue;const _0x122c3a=_0xbffd2d['getFirstRange']();if(_0xbffd2d['subType']==_0x291ffa){if(_0x122c3a['containsRange'](_0x306cb3,!0x0))return null;_0x7c9adf=_0x7c9adf['isBefore'](_0x122c3a['start'])?_0x7c9adf:_0x122c3a['start'],_0x591574=_0x591574['isAfter'](_0x122c3a['end'])?_0x591574:_0x122c3a['end'],_0x5d7de9?_0x122c3a['start']['isBefore'](_0x5d7de9['getFirstRange']()['start'])?(_0x5d7de9['removeMarkers'](),_0x5d7de9=_0xbffd2d):_0xbffd2d['removeMarkers']():_0x5d7de9=_0xbffd2d;}else{const _0x2fb4ad=_0x306cb3['getIntersection'](_0x122c3a);this['_cutOutSuggestionMarker'](_0xbffd2d,_0x2fb4ad);}}const _0x52c969=this['editor']['plugins']['get']('Users')['me'],_0x29bbc9=_0x59c837(),_0x1786b2=_0x52c969['id'];if(_0x5d7de9)return this['_setSuggestionRange'](_0x5d7de9,this['_model']['createRange'](_0x7c9adf,_0x591574)),_0x5d7de9;{const _0x18f8f3=this['_setSuggestionData']({'id':_0x29bbc9,'type':'formatBlock:'+_0x291ffa,'data':_0x23d0e6,'createdAt':new Date(),'authorId':_0x1786b2,'attributes':_0xc26827});return this['_addSuggestionMarker']('formatBlock:'+_0x291ffa,_0x29bbc9,_0x1786b2,this['_model']['createRange'](_0x7c9adf,_0x591574)),_0x18f8f3;}}['markMultiRangeBlockFormat'](_0x2d5875,_0x4251a0,_0x482855=[],_0x42b487=null,_0x51d4c7={}){_0x4251a0['formatGroupId']||(_0x4251a0['formatGroupId']=_0x4251a0['commandName']);const _0x26d3f0=_0x2d5875[0x0];_0x4251a0['multipleBlocks']=_0x26d3f0['is']('range'),_0x42b487=_0x42b487||Gt(_0x4251a0);const _0x2c0255=_0x482855['map'](_0xbdc8b4=>Lt(_0xbdc8b4,this['_model'])),_0x336be3=_0x26d3f0['is']('range')?_0x2d5875:_0x2d5875['map'](_0x37f906=>Lt(_0x37f906,this['_model']));if('never'===this['_trackFormatChanges']){const _0x292cab=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42b487,'accept');return this['forceDefaultExecution'](()=>_0x292cab(_0x336be3,_0x4251a0,_0x51d4c7)),null;}_0x2c0255['push'](..._0x336be3);let _0x1862d8=!0x0;for(const _0x1470e8 of _0x2c0255)if(!this['_rangeIsInLocalUserInsertion'](_0x1470e8)){_0x1862d8=!0x1;break;}if(_0x1862d8&&'always'!==this['_trackFormatChanges']){const _0x178516=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42b487,'accept');return this['forceDefaultExecution'](()=>_0x178516(_0x336be3,_0x4251a0,_0x51d4c7)),null;}const _0x43a6f8=this['editor']['plugins']['get']('Users')['me'];for(const _0x57c2f1 of this['getSuggestions']()){if(_0x57c2f1['author']['id']!=_0x43a6f8['id'])continue;if('formatBlock'!=_0x57c2f1['type']||_0x57c2f1['data']['formatGroupId']!=_0x4251a0['formatGroupId'])continue;if(!qt(_0x57c2f1,_0x51d4c7))continue;const _0x50abc9=_0x57c2f1['subType']==_0x42b487;for(let _0x465927=0x0;_0x465927<_0x336be3['length'];_0x465927++){const _0x316964=_0x336be3[_0x465927];for(const _0x3175c1 of _0x57c2f1['getMarkers']()){const _0x3cc84b=_0x3175c1['getRange']();if(_0x316964['isEqual'](_0x3cc84b)){_0x50abc9?(_0x336be3['splice'](_0x465927,0x1),_0x465927--):_0x57c2f1['removeMarker'](_0x3175c1['name']);break;}}}}if(0x0==_0x336be3['length'])return null;const _0x2c1b65=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42b487,'join');for(const _0x2b7d0c of this['getSuggestions']())if(_0x2b7d0c['author']['id']==_0x43a6f8['id']&&'formatBlock'==_0x2b7d0c['type']&&_0x2b7d0c['data']['formatGroupId']==_0x4251a0['formatGroupId']&&_0x2b7d0c['subType']==_0x42b487&&qt(_0x2b7d0c,_0x51d4c7)&&(_0x2c1b65(_0x2b7d0c['getRanges'](),_0x336be3)||_0x2c1b65(_0x336be3,_0x2b7d0c['getRanges']()))){for(const _0x13addf of _0x336be3)_0x2b7d0c['addRange'](_0x13addf);return _0x2b7d0c;}const _0xaa0036=_0x59c837(),_0x395053=_0x43a6f8['id'],_0x1e1286='formatBlock:'+_0x42b487,_0x2c1e77=this['_setSuggestionData']({'id':_0xaa0036,'type':_0x1e1286,'data':_0x4251a0,'createdAt':new Date(),'authorId':_0x395053,'attributes':_0x51d4c7});for(const _0x6b209d of _0x336be3)this['_addSuggestionMarker'](_0x1e1286,_0xaa0036,_0x395053,_0x6b209d,u['getMultiRangeId']());return _0x2c1e77;}['markDeletion'](_0x54975c,_0x4d0912=null,_0x1286a6={}){if(_0x54975c['isCollapsed'])return null;const _0xe13818=this['editor']['plugins']['get']('Users')['me'],_0x5bdf87=new _0x40584f(_0x54975c['start'],_0x54975c['end']);for(const {suggestion:_0x585db0,meta:_0x3c3a26}of this['_findSuggestions'](_0x5bdf87,'insertion'))if(_0x3c3a26['isOwn']&&!_0x3c3a26['isNextTo']){if(_0x585db0['isMultiRange']){const _0x23f10d=_0x585db0['getRanges']()['filter'](_0x20fa4f=>'$graveyard'!=_0x20fa4f['root']['rootName']);_0x23f10d['every'](_0x4b9466=>_0x5bdf87['containsRange'](_0x4b9466,!0x0))&&_0x585db0['discard']();if(_0x23f10d['some'](_0x63873=>_0x63873['containsRange'](_0x5bdf87,!0x0))){const _0x2ae217=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d0912,'accept');return this['forceDefaultExecution'](()=>_0x2ae217([_0x5bdf87],null,_0x1286a6)),null;}}else{const _0x4e48a1=_0x5bdf87['getIntersection'](_0x585db0['getFirstRange']());null!==_0x4e48a1&&_0x585db0['_onDiscard']([_0x4e48a1],null,_0x1286a6);}}if(_0x5bdf87['detach'](),_0x5bdf87['isCollapsed']||'$graveyard'==_0x5bdf87['root']['rootName'])return null;let _0x52b0d2=null,_0x433dce=_0x5bdf87['start'],_0x1cd2d3=_0x5bdf87['end'];const _0xc0cc98=this['_findSuggestions'](_0x5bdf87,'deletion');for(const {suggestion:_0x4c182a,meta:_0x6cc3be}of _0xc0cc98){const _0x41e265=this['_model']['createRange'](_0x433dce,_0x1cd2d3);if(_0x6cc3be['isOwn']&&(this['_mergeNestedSuggestions']||!_0x6cc3be['containsRangeInObject']&&!_0x6cc3be['isInsideObject'])){if(_0x4c182a['isMultiRange']){if(!qt(_0x4c182a,_0x1286a6))continue;let _0x143b43=!0x0;for(const _0x522cf1 of _0x4c182a['getRanges']()){if(_0x522cf1['containsRange'](_0x41e265,!0x0))return _0x4c182a;_0x41e265['containsRange'](_0x522cf1)||(_0x143b43=!0x1);}_0x143b43&&_0x4c182a['discard']();}else{const _0x586d06=_0x4c182a['getFirstRange']();if(_0x586d06['containsRange'](_0x41e265,!0x0))return _0x4c182a;if(!qt(_0x4c182a,_0x1286a6)){_0x41e265['containsRange'](_0x586d06)?_0x4c182a['removeMarkers']():_0x586d06['containsPosition'](_0x433dce)?_0x433dce=_0x586d06['end']:_0x586d06['containsPosition'](_0x1cd2d3)&&(_0x1cd2d3=_0x586d06['start']);continue;}_0x433dce=_0x433dce['isBefore'](_0x586d06['start'])?_0x433dce:_0x586d06['start'],_0x1cd2d3=_0x1cd2d3['isAfter'](_0x586d06['end'])?_0x1cd2d3:_0x586d06['end'],_0x1286a6=Object['assign']({},_0x4c182a['attributes']),_0x52b0d2?_0x586d06['start']['isBefore'](_0x52b0d2['getFirstRange']()['start'])?(_0x52b0d2['removeMarkers'](),_0x52b0d2=_0x4c182a):_0x4c182a['removeMarkers']():_0x52b0d2=_0x4c182a;}}}if(_0x52b0d2)return this['_setSuggestionRange'](_0x52b0d2,this['_model']['createRange'](_0x433dce,_0x1cd2d3)),_0x52b0d2;{const _0x4b734a=_0x59c837(),_0x441906=this['_model']['createRange'](_0x433dce,_0x1cd2d3),_0x2e84f0=_0xe13818['id'],_0x378754=_0x4d0912?'deletion:'+_0x4d0912:'deletion',_0x24e920=this['_setSuggestionData']({'id':_0x4b734a,'type':_0x378754,'createdAt':new Date(),'authorId':_0x2e84f0,'attributes':_0x1286a6});return this['_addSuggestionMarker'](_0x378754,_0x4b734a,_0x2e84f0,_0x441906),_0x24e920;}}['markMultiRangeDeletion'](_0x418d8b,_0x4398c4='multi',_0x48a80d={}){const _0x985ca1=this['editor']['plugins']['get']('Users')['me'],_0x1a9e39=_0x418d8b['map'](_0x343041=>new _0x40584f(_0x343041['start'],_0x343041['end'])),_0x5ab686=new Set();for(const {suggestion:_0x1e77aa,meta:_0x424967}of this['_findSuggestions'](_0x1a9e39,'insertion'))_0x424967['isOwn']&&!_0x424967['isNextTo']&&_0x5ab686['add'](_0x1e77aa);for(const _0x4ed833 of _0x5ab686)if(_0x4ed833['isMultiRange']){const _0x38e23d=_0x4ed833['getRanges']();(!_0x4ed833['attributes']||!_0x4ed833['attributes']['skipNestingCheck'])&&(_0x38e23d['every'](_0x56080a=>_0x1a9e39['some'](_0x2e7a86=>_0x2e7a86['containsRange'](_0x56080a,!0x0)))&&_0x4ed833['discard']());if(_0x1a9e39['every'](_0x3e9e15=>_0x38e23d['some'](_0x57cd7a=>_0x57cd7a['containsRange'](_0x3e9e15,!0x0)))){const _0x2f8b69=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4398c4,'accept');return this['forceDefaultExecution'](()=>_0x2f8b69(_0x418d8b,null,_0x48a80d)),null;}}else{const _0x41251d=_0x4ed833['getFirstRange']();_0x1a9e39['some'](_0x4a0f74=>_0x4a0f74['containsRange'](_0x41251d,!0x0))&&_0x4ed833['discard']();if(_0x1a9e39['every'](_0x4e7c35=>_0x41251d['containsRange'](_0x4e7c35,!0x0))){const _0x55cbbb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4398c4,'accept');return this['forceDefaultExecution'](()=>_0x55cbbb(_0x1a9e39,null,_0x48a80d)),null;}}const _0x1e37f9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4398c4,'join');let _0x57c4d4=null;for(const _0xf14668 of this['getSuggestions']())if(_0xf14668['author']['id']==_0x985ca1['id']&&_0xf14668['isInContent']&&'deletion'==_0xf14668['type']&&_0xf14668['subType']==_0x4398c4&&qt(_0xf14668,_0x48a80d)&&(_0x1e37f9(_0xf14668['getRanges'](),_0x1a9e39)||_0x1e37f9(_0x1a9e39,_0xf14668['getRanges']()))){if(_0x57c4d4){if(_0xf14668['commentThread']&&_0xf14668['commentThread']['length'])continue;for(const _0x2f3218 of _0xf14668['getRanges']())_0x57c4d4['isIntersectingWithRange'](_0x2f3218)||_0x57c4d4['addRange'](_0x2f3218);_0xf14668['removeMarkers']();}else{_0x57c4d4=_0xf14668;for(const _0xbe845e of _0x1a9e39)_0xf14668['isIntersectingWithRange'](_0xbe845e)||_0xf14668['addRange'](_0xbe845e);}}if(_0x57c4d4)return _0x57c4d4;_0x5ab686['clear']();for(const {suggestion:_0x390ed9,meta:_0x998d63}of this['_findSuggestions'](_0x1a9e39,'deletion'))_0x998d63['isOwn']&&(this['_mergeNestedSuggestions']||!_0x998d63['containsRangeInObject']&&!_0x998d63['isInsideObject'])&&qt(_0x390ed9,_0x48a80d)&&_0x5ab686['add'](_0x390ed9);for(const _0xd54dd0 of _0x5ab686){const _0x5acaa7=_0xd54dd0['getRanges']();if(!_0x48a80d||!_0x48a80d['skipNestingCheck']){if(_0x1a9e39['every'](_0x4be96f=>_0x5acaa7['some'](_0x14e741=>_0x14e741['containsRange'](_0x4be96f,!0x0))))return _0xd54dd0;}(!_0xd54dd0['attributes']||!_0xd54dd0['attributes']['skipNestingCheck'])&&(_0x5acaa7['every'](_0x4acb6a=>_0x1a9e39['some'](_0x603e79=>_0x603e79['containsRange'](_0x4acb6a,!0x0)))&&_0xd54dd0['discard']());}const _0x3afe87=_0x59c837(),_0x142688=_0x985ca1['id'],_0x469203='deletion:'+_0x4398c4,_0x165343=this['_setSuggestionData']({'id':_0x3afe87,'type':_0x469203,'createdAt':new Date(),'authorId':_0x142688,'attributes':_0x48a80d});for(const _0x3498a3 of _0x1a9e39)_0x3498a3['detach'](),_0x3498a3['isCollapsed']||'$graveyard'==_0x3498a3['root']['rootName']||this['_addSuggestionMarker'](_0x469203,_0x3afe87,_0x142688,_0x3498a3,u['getMultiRangeId']());return _0x165343;}['markAttributeChange'](_0x4bbd9c,_0x49ec37,_0x31643c,_0x3fc663,_0x26c68e){if(_0x4bbd9c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2223f8=this['editor']['plugins']['get']('Users')['me']['id'],_0x35dcd7=Array['from'](this['_suggestions']['values']())['filter'](_0x411454=>'attribute'==_0x411454['type']&&_0x411454['data']['key']==_0x49ec37&&_0x411454['isIntersectingWithRange'](_0x4bbd9c));if('default'===this['_trackFormatChanges']){const _0x3b9aa6=this['_findSuggestions'](_0x4bbd9c,'insertion')['filter'](({meta:_0x449324})=>_0x449324['isOwn']&&!_0x449324['isInsideObject']&&!_0x449324['isNextTo'])['map'](({suggestion:_0x2dfa05})=>_0x2dfa05);_0x35dcd7['unshift'](..._0x3b9aa6);}const _0x2fd3f5=new Map([[_0x4bbd9c,_0x31643c]]);for(const _0x13104a of _0x35dcd7){const _0x517986='attribute'==_0x13104a['type']?_0x13104a['data']['oldValue']:void 0x0,_0x49101e=_0x13104a['getFirstRange'](),_0x16d3d2=Array['from'](_0x2fd3f5['keys']())['find'](_0x1fd035=>_0x1fd035['isIntersecting'](_0x49101e));if(!_0x16d3d2)continue;const _0x11e020=_0x16d3d2['getDifference'](_0x49101e);this['_isBlockAttribute'](_0x49ec37)&&'insertion'==_0x13104a['type']&&0x0!=_0x11e020['length']||(_0x2fd3f5['delete'](_0x16d3d2),_0x11e020['forEach'](_0x10e748=>{_0x2fd3f5['set'](_0x10e748,_0x31643c);}),'insertion'!=_0x13104a['type']&&_0x517986!=_0x3fc663&&_0x2fd3f5['set'](_0x16d3d2['getIntersection'](_0x49101e),_0x517986));}const _0x29b948=[];for(const [_0x526f86,_0x4688f2]of _0x2fd3f5){const _0x19249c=_0x59c837(),_0x4e4a4f={'key':_0x49ec37,'oldValue':_0x4688f2,'newValue':_0x3fc663};_0x49ec37['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':_0x49ec37});const _0x2248a9=('attribute:'+(_0x49ec37+'|'+Gt({'newValue':_0x3fc663})))['substring'](0x0,0x3c),_0x5c421f=this['_setSuggestionData']({'id':_0x19249c,'type':_0x2248a9,'data':_0x4e4a4f,'createdAt':new Date(),'authorId':_0x2223f8,'attributes':_0x26c68e});_0x29b948['push'](_0x5c421f),this['_addSuggestionMarker'](_0x2248a9,_0x19249c,_0x2223f8,_0x526f86);}return _0x29b948;}['enableDefaultAttributesIntegration'](_0x452c78){this['enableCommand'](_0x452c78,(_0x5cafab,..._0xac0a5d)=>{this['_recordAttributeChanges'](()=>{_0x5cafab(..._0xac0a5d);});});}['registerBlockAttribute'](_0x30acce){this['_blockAttributeKeys']['add'](_0x30acce);}['registerInlineAttribute'](_0x38a89a){this['_inlineAttributeKeys']['add'](_0x38a89a);}['_getAttributeKey'](_0x12ea06){return'attribute'==_0x12ea06['type']?_0x12ea06['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1f0333,_0x106d9c){const _0x4678c6=_0x1f0333['getFirstMarker']();this['_model']['change'](_0x4ea5c6=>{_0x4ea5c6['updateMarker'](_0x4678c6,{'range':_0x106d9c});});}['_addThreadToSuggestion'](_0x1fb516){const _0xc6f8e4=_0x1fb516['id'],_0x371c08=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xc6f8e4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x371c08,'threadId':_0xc6f8e4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x43534c=this['_commentsRepository']['getCommentThread'](_0xc6f8e4);_0x43534c['unbind']('isRemovable'),_0x43534c['isRemovable']=!0x1,_0x1fb516['commentThread']=_0x43534c;}['_checkSuggestionCorrectness'](_0x4bc941,_0x2721d0,_0x2a094e,_0x5f33e5){if(_0x4bc941['type']!=_0x2721d0||_0x4bc941['subType']!=_0x2a094e||_0x4bc941['creator']['id']!=_0x5f33e5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x328131('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2d4273,_0x45252e){const _0x1f0392=_0x2d4273['getFirstRange']();if(_0x45252e['isEqual'](_0x1f0392))_0x2d4273['removeMarkers']();else{if(_0x1f0392['containsRange'](_0x45252e)){const _0x4c2b1f=this['_model']['createPositionAt'](_0x45252e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2d4273,this['_model']['createRange'](_0x1f0392['start'],_0x4c2b1f));const _0x2ce981=_0x59c837(),_0xb60cba=_0x2d4273['creator']['id'],_0x47692b=_0x2d4273['type']+':'+_0x2d4273['subType'];this['_setSuggestionData']({'id':_0x2ce981,'type':_0x47692b,'createdAt':new Date(),'authorId':_0xb60cba,'data':_0x2d4273['data'],'attributes':_0x2d4273['attributes']});const _0x3ace63=this['_model']['createPositionAt'](_0x45252e['end']['parent'],'after'),_0x256add=this['_model']['createRange'](_0x3ace63,_0x1f0392['end']);this['_addSuggestionMarker'](_0x47692b,_0x2ce981,_0xb60cba,_0x256add);}else{if(_0x1f0392['containsPosition'](_0x45252e['start'])){const _0x217933=this['_model']['createPositionAt'](_0x45252e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2d4273,this['_model']['createRange'](_0x1f0392['start'],_0x217933));}else{const _0x193128=this['_model']['createPositionAt'](_0x45252e['end']['parent'],'after');this['_setSuggestionRange'](_0x2d4273,this['_model']['createRange'](_0x193128,_0x1f0392['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x12d92a){for(const {suggestion:_0x401a84,meta:_0x1dcada}of this['_findSuggestions'](_0x12d92a,'insertion')){if(!_0x1dcada['isOwn'])continue;const _0x572bd4=_0x401a84['getRanges']();for(const _0x3bb894 of _0x572bd4)if(!_0x12d92a['getDifference'](_0x3bb894)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2e09b8){const _0x116179=this['editor']['plugins']['get']('Users')['getUser'](_0x2e09b8);if(!_0x116179)throw new _0x328131('track-changes-user-not-found',this);return _0x116179;}['_getExternalAuthor'](_0x170a02){const _0x2eae64=this['editor']['plugins']['get']('Users'),_0x2f99=_0x2a3d48('external:'+_0x170a02),_0xcdbcb6=_0x2eae64['getUser'](_0x2f99);return _0xcdbcb6||_0x2eae64['addUser']({'id':_0x2f99,'name':_0x170a02});}['_createSuggestion'](_0x438768,_0x1865a5,_0x575bcf,_0x5a5067,_0x2435a3){const _0x4114a7=this['_getAuthorFromId'](_0x5a5067),_0xb750a3=this['_suggestionFactory']['buildSuggestion'](_0x438768,_0x1865a5,_0x575bcf,_0x4114a7,_0x2435a3,_0xa2944=>{this['_updateSuggestionData'](_0x575bcf,{'attributes':_0xa2944});const _0x430e9e=this['getSuggestion'](_0x575bcf);this['_joinWithAdjacentSuggestions'](new Set([_0x430e9e])),this['_refreshSuggestionsChain'](new Set([_0x430e9e]));});return this['listenTo'](_0xb750a3,'accept',()=>{this['_updateSuggestionData'](_0x575bcf,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xb750a3,'discard',()=>{this['_updateSuggestionData'](_0x575bcf,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x575bcf,_0xb750a3),this['_suggestionState']['set'](_0xb750a3,'notReady'),_0xb750a3;}['_splitMarkerName'](_0x8e5fdc){const _0xa84ecd=_0x8e5fdc['split'](':');return{'group':_0xa84ecd[0x0],'type':_0xa84ecd[0x1],'subType':_0xa84ecd['length']>=0x5?_0xa84ecd[0x2]:null,'id':_0xa84ecd['length']<0x5?_0xa84ecd[0x2]:_0xa84ecd[0x3],'authorId':_0xa84ecd['length']<0x5?_0xa84ecd[0x3]:_0xa84ecd[0x4],'markerCount':0x6==_0xa84ecd['length']?_0xa84ecd[0x5]:null};}['_breakSuggestionMarker'](_0x4d1ce4,_0x24270c,_0x543481){const _0x5dc5f7=_0x4d1ce4['getFirstRange'](),_0x596dfd=_0x5dc5f7['start'],_0xb34574=_0x5dc5f7['end'];this['_setSuggestionRange'](_0x4d1ce4,this['_model']['createRange'](_0x596dfd,_0x24270c));const _0x5d94c1=_0x59c837(),_0x341ee3=_0x4d1ce4['creator']['id'],_0x26465a=_0x4d1ce4['type']+(_0x4d1ce4['subType']?':'+_0x4d1ce4['subType']:'');this['_setSuggestionData']({'id':_0x5d94c1,'type':_0x26465a,'createdAt':new Date(),'authorId':_0x341ee3,'originalSuggestionId':_0x4d1ce4['id'],'attributes':_0x4d1ce4['attributes'],'data':_0x4d1ce4['data']});const _0x98735d=this['_getAttributeKey'](_0x4d1ce4);('formatBlock'==_0x4d1ce4['type']||_0x98735d&&this['_isBlockAttribute'](_0x98735d))&&(_0x543481=this['_model']['createPositionBefore'](_0x543481['parent'])),this['_addSuggestionMarker'](_0x26465a,_0x5d94c1,_0x341ee3,this['_model']['createRange'](_0x543481,_0xb34574));}['_findSuggestions'](_0x38346b,_0x106b78=null){const _0x12a0b6=[],_0x46fd08=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x38346b)||(_0x38346b=[_0x38346b]);for(const _0x2b4017 of this['getSuggestions']()){if(!_0x2b4017['isInContent'])continue;if(_0x106b78&&_0x2b4017['type']!=_0x106b78)continue;let _0x75b4cb=!0x1;for(const _0x46b3cc of _0x2b4017['getRanges']()){for(const _0x1df4e1 of _0x38346b){const _0x212e2a=_0x1df4e1['start']['isEqual'](_0x46b3cc['end'])||_0x1df4e1['end']['isEqual'](_0x46b3cc['start']);if(_0x212e2a||_0x1df4e1['getIntersection'](_0x46b3cc)){const _0x3cef1d=_0x1df4e1['containsRange'](_0x46b3cc)&&Ot(this['_model']['schema'],_0x46b3cc['start'],_0x1df4e1),_0xb38c30=_0x46b3cc['containsRange'](_0x1df4e1)&&Ot(this['_model']['schema'],_0x1df4e1['start'],_0x46b3cc);_0x12a0b6['push']({'suggestion':_0x2b4017,'meta':{'isOwn':_0x46fd08==_0x2b4017['author'],'isNextTo':_0x212e2a,'isInsideObject':_0x3cef1d,'containsRangeInObject':_0xb38c30}}),_0x75b4cb=!0x0;break;}}if(_0x75b4cb)break;}}return _0x12a0b6;}['_addSuggestionMarker'](_0x11320c,_0x30d9d7,_0x2df766,_0x582a7f,_0x502d8f){this['_model']['change'](_0xa99d4e=>{let _0x3b52ae='suggestion:'+_0x11320c+':'+_0x30d9d7+':'+_0x2df766;_0x502d8f&&(_0x3b52ae=_0x3b52ae+':'+_0x502d8f),_0xa99d4e['addMarker'](_0x3b52ae,{'range':_0x582a7f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xb2dfb5){const _0x4d703c=_0xb2dfb5['previous'],_0x95ff5a=_0xb2dfb5['next'];_0xb2dfb5['previous']=null,_0xb2dfb5['next']=null,null!=_0x4d703c&&_0x4d703c['next']==_0xb2dfb5&&(_0x4d703c['next']=_0x95ff5a),null!=_0x95ff5a&&_0x95ff5a['previous']==_0xb2dfb5&&(_0x95ff5a['previous']=_0x4d703c),'ready'==this['_suggestionState']['get'](_0xb2dfb5)&&(this['_suggestionState']['set'](_0xb2dfb5,'removed'),this['fire']('suggestionUnloaded',_0xb2dfb5,_0x4d703c,_0x95ff5a));}['_setSuggestionData'](_0x2519a1){const _0xcee5f1=_0x2519a1['id'],_0x40c4bc=this['addSuggestionData'](_0x2519a1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xef7b44=this['editor']['plugins']['get']('PendingActions'),_0x4936a8=_0x40c4bc['hasComments'],_0x5dfb9e=_0x40c4bc['subType']?_0x40c4bc['type']+':'+_0x40c4bc['subType']:_0x40c4bc['type'],_0x6f037c=this['editor']['locale'],_0x360e70=_0xef7b44['add'](o(_0x6f037c,'PENDING_ACTION_SUGGESTION')),_0x2898c2={'id':_0xcee5f1,'type':_0x5dfb9e,'hasComments':_0x4936a8,'data':_0x2519a1['data']||null,'originalSuggestionId':_0x2519a1['originalSuggestionId']||null,'attributes':_0x40c4bc['attributes']};this['_adapter']['addSuggestion'](_0x2898c2)['then'](_0x17d782=>{_0x40c4bc['_saved']=!0x0,_0xef7b44['remove'](_0x360e70),_0x17d782&&_0x17d782['createdAt']&&(this['_suggestions']['get'](_0xcee5f1)['createdAt']=_0x17d782['createdAt']);})['catch'](_0xb20133=>{throw _0x330638('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x40c4bc['discard']();}),_0x40c4bc['stopListening'](),this['_suggestions']['delete'](_0x40c4bc['id']),this['_suggestionState']['delete'](_0x40c4bc),_0xb20133;});}return _0x40c4bc;}['_isBlockAttribute'](_0x1b200f){return this['_blockAttributeKeys']['has'](_0x1b200f);}['_updateSuggestionData'](_0x5e3d06,_0x2c497a){const _0x52b8f3=this['editor']['plugins']['get']('PendingActions'),_0x4a2676=this['getSuggestion'](_0x5e3d06);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4a2676['_saved']){const _0x357ae0=_0x52b8f3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5e3d06,_0x2c497a)['then'](()=>{_0x52b8f3['remove'](_0x357ae0);});}else _0x4a2676['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5e3d06,_0x2c497a);});}}['_getSuggestionData'](_0x38e0db){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x328131('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x38e0db);}['_handleNewSuggestionMarker'](_0x44f4da){const {id:_0x166d19,type:_0x142dc5,subType:_0x54e904,authorId:_0xebd18f}=this['_splitMarkerName'](_0x44f4da),_0x2793db=this['_suggestions']['get'](_0x166d19)||this['_createSuggestion'](_0x142dc5,_0x54e904,_0x166d19,_0xebd18f,{});switch(this['_checkSuggestionCorrectness'](_0x2793db,_0x142dc5,_0x54e904,_0xebd18f),this['_suggestionState']['get'](_0x2793db)){case'notReady':this['_getSuggestionData'](_0x166d19)['then'](_0x4207c9=>{let _0x502409=Promise['resolve']();_0x4207c9['hasComments']&&(_0x502409=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x166d19})),_0x502409['then'](()=>{this['addSuggestionData'](_0x4207c9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2793db,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x166d19,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2793db,'ready'),this['fire']('suggestionLoaded',_0x2793db);break;case'ready':this['fire']('suggestionChanged',_0x2793db);}return _0x2793db['addMarkerName'](_0x44f4da),_0x2793db;}['_refreshSuggestionsChain'](_0x1ce3a9){const _0x3396ce=Array['from'](_0x1ce3a9),_0x3d0493=_0x3396ce['filter'](_0x5147d7=>'attribute'==_0x5147d7['type']);this['_refreshAttributeSuggestionsChain'](_0x3d0493);const _0x34d342=_0x3396ce['filter'](_0x1fdd1a=>!_0x1fdd1a['isMultiRange']&&'attribute'!=_0x1fdd1a['type']),_0x15ea02=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c7e53=>!_0x1c7e53['isMultiRange']&&'attribute'!=_0x1c7e53['type']),_0x51d10c=_0x15ea02['filter'](_0x1479f7=>!_0x1ce3a9['has'](_0x1479f7)),_0x59fa1d=new Map(_0x15ea02['map'](_0x47c019=>[_0x47c019,this['_suggestionFactory']['getSuggestionCallback'](_0x47c019['type'],_0x47c019['subType'],'chain')])),_0x17e222=new Map(_0x15ea02['map'](_0x28269=>[_0x28269,_0x28269['getFirstRange']()])),_0x16bbac=new Set(),_0x4cc598=new Set();for(let _0xe83f58=0x0;_0xe83f58<_0x34d342['length'];_0xe83f58++)_0x286b70(_0x34d342[_0xe83f58],_0x34d342,_0xe83f58+0x1);for(let _0x480074=0x0;_0x480074<_0x34d342['length'];_0x480074++)_0x286b70(_0x34d342[_0x480074],_0x51d10c,0x0);const _0x5d1980=new Set();for(let _0x4a0075=0x0;_0x4a0075<_0x34d342['length'];_0x4a0075++){const _0xfa59db=_0x34d342[_0x4a0075];!_0x4cc598['has'](_0xfa59db)&&_0xfa59db['previous']&&(_0x5d1980['add'](_0xfa59db['previous']),_0xfa59db['previous']['next']===_0xfa59db&&(_0xfa59db['previous']['next']=null),_0xfa59db['previous']=null),!_0x16bbac['has'](_0xfa59db)&&_0xfa59db['next']&&(_0x5d1980['add'](_0xfa59db['next']),_0xfa59db['next']['previous']===_0xfa59db&&(_0xfa59db['next']['previous']=null),_0xfa59db['next']=null);}function _0x286b70(_0x389e4a,_0x17165c,_0x26e0ac){for(let _0x3a6bef=_0x26e0ac;_0x3a6bef<_0x17165c['length'];_0x3a6bef++){const _0x20b2ec=_0x31cd73(_0x389e4a,_0x17165c[_0x3a6bef]);_0x20b2ec&&(_0x20b2ec[0x0]['next']=_0x20b2ec[0x1],_0x20b2ec[0x1]['previous']=_0x20b2ec[0x0],_0x16bbac['add'](_0x20b2ec[0x0]),_0x4cc598['add'](_0x20b2ec[0x1]));}}function _0x31cd73(_0x36f51b,_0x278f17){if(_0x36f51b['author']['id']!==_0x278f17['author']['id'])return null;const _0x5ce963=_0x59fa1d['get'](_0x36f51b)(_0x36f51b,_0x278f17,_0x17e222['get'](_0x36f51b),_0x17e222['get'](_0x278f17));if(!_0x5ce963)return null;return _0x59fa1d['get'](_0x278f17)(_0x36f51b,_0x278f17,_0x17e222['get'](_0x36f51b),_0x17e222['get'](_0x278f17))?_0x5ce963[0x1]['commentThread']&&_0x5ce963[0x1]['commentThread']['length']?null:_0x5ce963:null;}_0x5d1980['size']&&this['_refreshSuggestionsChain'](_0x5d1980);}['_refreshAttributeSuggestionsChain'](_0x508e23){if(0x0==_0x508e23['length'])return;const _0x593562=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d82e5=>'attribute'==_0x4d82e5['type']&&_0x4d82e5['_isDataLoaded']),_0x4e55c4=[],_0x1773cf=new Map();for(const _0x13326e of _0x593562){const _0x15ec4f=_0x2a3d48(_0x13326e['attributes']);_0x1773cf['has'](_0x15ec4f)||(_0x1773cf['set'](_0x15ec4f,_0x4e55c4['length']),_0x4e55c4['push']([]));const _0x3b80e8=_0x1773cf['get'](_0x15ec4f);_0x4e55c4[_0x3b80e8]['push'](_0x13326e);}!(function(){_0x4e55c4['sort']((_0xe46381,_0x4baa8f)=>{const _0x147e04=_0xe46381[0x0]['createdAt'],_0x47f772=_0x4baa8f[0x0]['createdAt'];return _0x147e04==_0x47f772?_0xe46381[0x0]['attributes']['groupId']<_0x4baa8f[0x0]['attributes']['groupId']?-0x1:0x1:_0x147e04<_0x47f772?-0x1:0x1;});for(const _0x355f8c of _0x4e55c4)_0x355f8c['sort']((_0xf26053,_0xc07fc1)=>_0xf26053['id']<_0xc07fc1['id']?-0x1:0x1);}());for(let _0xd090f=0x0;_0xd090f<_0x4e55c4['length'];_0xd090f++){if(0x0==_0x4e55c4[_0xd090f]['length'])continue;const _0x26778e=[];for(let _0x3f5fd3=_0xd090f+0x1;_0x3f5fd3<_0x4e55c4['length'];_0x3f5fd3++)0x0!=_0x4e55c4[_0x3f5fd3]['length']&&_0x3592fb(_0x4e55c4[_0xd090f],_0x4e55c4[_0x3f5fd3])&&_0x26778e['push'](_0x3f5fd3);for(const _0x150e05 of _0x26778e)_0x4e55c4[_0xd090f]=_0x4e55c4[_0xd090f]['concat'](_0x4e55c4[_0x150e05]),_0x4e55c4[_0x150e05]=[];}for(const _0x7190c8 of _0x4e55c4)for(let _0x2f3c43=0x0;_0x2f3c43<_0x7190c8['length'];_0x2f3c43++){const _0x5e3c7=_0x7190c8[_0x2f3c43+0x1]||null;_0x7190c8[_0x2f3c43]['next']!==_0x5e3c7&&(_0x7190c8[_0x2f3c43]['next']=_0x5e3c7);}for(const _0xa7af79 of _0x4e55c4)for(let _0x2e0b10=0x0;_0x2e0b10<_0xa7af79['length'];_0x2e0b10++){const _0x2b967e=_0xa7af79[_0x2e0b10-0x1]||null;_0xa7af79[_0x2e0b10]['previous']!==_0x2b967e&&(_0xa7af79[_0x2e0b10]['previous']=_0x2b967e);}function _0x3592fb(_0x5ec2e5,_0x446bd6){if(_0x5ec2e5[0x0]['attributes']['groupId']!==_0x446bd6[0x0]['attributes']['groupId']&&_0x5ec2e5[0x0]['author']!==_0x446bd6[0x0]['author'])return!0x1;if(!function(_0x38add4,_0x59b89d){if(!_0x38add4['hasComments']&&!_0x59b89d['hasComments'])return!0x0;if(_0x38add4['hasComments']&&_0x59b89d['hasComments'])return!0x1;if(_0x38add4['hasComments']&&_0x59b89d['createdAt']<_0x38add4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x59b89d['hasComments']&&_0x38add4['createdAt']<_0x59b89d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5ec2e5[0x0],_0x446bd6[0x0]))return!0x1;const _0x5e8bb2=Tt(_0x5ec2e5[0x0]['attributes'],'groupId'),_0x46cad8=Tt(_0x446bd6[0x0]['attributes'],'groupId');if(!_0x503e72(_0x5e8bb2,_0x46cad8))return!0x1;return!!_0x5ec2e5['every'](_0x4d61a7=>_0x446bd6['some'](_0x29eccc=>_0x4d61a7['getFirstRange']()['isEqual'](_0x29eccc['getFirstRange']())))&&_0x446bd6['every'](_0xe338d=>_0x5ec2e5['some'](_0x4ba08b=>_0xe338d['getFirstRange']()['isEqual'](_0x4ba08b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x121d1e){const _0xd943fc=Array['from'](_0x121d1e),_0x5223c9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1a9bd8=_0x5223c9['filter'](_0x2251d1=>!_0x121d1e['has'](_0x2251d1)),_0x3c5566=new Map(_0xd943fc['map'](_0x1f55be=>[_0x1f55be,this['_suggestionFactory']['getSuggestionCallback'](_0x1f55be['type'],_0x1f55be['subType'],'join')])),_0x2c61ed=new Map(_0x5223c9['map'](_0x79fb90=>[_0x79fb90,_0x79fb90['getRanges']()]));for(let _0x498417=0x0;_0x498417<_0xd943fc['length'];_0x498417++){if(_0x119913(this,_0xd943fc[_0x498417],_0xd943fc,_0x498417+0x1))return!0x0;}for(let _0x1f4a14=0x0;_0x1f4a14<_0xd943fc['length'];_0x1f4a14++){if(_0x119913(this,_0xd943fc[_0x1f4a14],_0x1a9bd8,0x0))return!0x0;}return!0x1;function _0x119913(_0x27bd55,_0x48f883,_0x40a316,_0x278f38){for(let _0x23c50e=_0x278f38;_0x23c50e<_0x40a316['length'];_0x23c50e++){const _0x3e93cb=_0x40a316[_0x23c50e];if(_0x3e93cb['type']!==_0x48f883['type']||_0x3e93cb['author']['id']!==_0x48f883['author']['id']||_0x3e93cb['subType']!==_0x48f883['subType'])continue;if(!Jt(_0x48f883,_0x3e93cb))continue;if('attribute'==_0x48f883['type']&&_0x48f883['data']['oldValue']!=_0x3e93cb['data']['oldValue'])continue;if('attribute'==_0x48f883['type']&&_0x27bd55['_isBlockAttribute'](_0x48f883['data']['key']))continue;if('formatBlock'==_0x48f883['type']){const _0x696b24=_0x27bd55['editor']['model'],_0x5d420a=_0x48f883['getContainedElement']();if(_0x5d420a&&(_0x696b24['schema']['isObject'](_0x5d420a)||_0x696b24['schema']['isLimit'](_0x5d420a)))continue;}const _0x2d8311=_0x3c5566['get'](_0x48f883),_0x2a68ec=_0x2c61ed['get'](_0x48f883),_0x20b05b=_0x2c61ed['get'](_0x3e93cb),_0x1a16f7=_0x48f883['commentThread']&&_0x48f883['commentThread']['length'],_0x3f86d5=_0x3e93cb['commentThread']&&_0x3e93cb['commentThread']['length'];if(!_0x1a16f7&&_0x2d8311(_0x20b05b,_0x2a68ec))return _0x27bd55['_joinSuggestions'](_0x3e93cb,_0x48f883),_0x2c61ed['delete'](_0x48f883),!0x0;if(!_0x3f86d5&&_0x2d8311(_0x2a68ec,_0x20b05b))return _0x27bd55['_joinSuggestions'](_0x48f883,_0x3e93cb),_0x2c61ed['delete'](_0x3e93cb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x483c8d,_0x9beaeb){if(_0x483c8d['isMultiRange']){for(const _0x2dcb58 of _0x9beaeb['getRanges']())_0x483c8d['addRange'](_0x2dcb58);}else{const _0x166347=_0x9beaeb['getFirstRange']()['end'];this['_setSuggestionRange'](_0x483c8d,this['_model']['createRange'](_0x483c8d['getFirstRange']()['start'],_0x166347));}_0x9beaeb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2c538e,_0x56acfd,_0x35258d){const _0x2f2e05=_0x2c538e['startsWith']('format')||_0x2c538e['startsWith']('attribute')?'FORMATTING':_0x2c538e['toUpperCase']();return o(this['editor']['locale'],_0x56acfd+'_'+_0x2f2e05+'_SUGGESTION_ANNOUNCEMENT',_0x35258d);}['_initAriaMarkerChangeAnnouncements'](){const _0x52d633=this['editor'];if(!_0x52d633['ui'])return;const {ariaLiveAnnouncer:_0xb457f5}=_0x52d633['ui'];_0x205bdd(this['_model'],({left:_0x558703,entered:_0x170aa3})=>{for(const _0x42b6fe of _0x558703){const {group:_0x15310f,type:_0x5dc2c5}=this['_splitMarkerName'](_0x42b6fe['name']);if('suggestion'===_0x15310f){_0xb457f5['announce'](this['_getMarkerAnnouncementText'](_0x5dc2c5,'LEAVE'));break;}}for(const _0x23373d of _0x170aa3){const {group:_0x424637,type:_0x591db1}=this['_splitMarkerName'](_0x23373d['name']);if('suggestion'===_0x424637){_0xb457f5['announce'](this['_getMarkerAnnouncementText'](_0x591db1,'ENTER',_0x212988(_0x148af5)));break;}}});}['_processAttributeChanges'](_0x308be9){if(this['_recordAttributeSuggestions'])return!0x1;const _0x32b35f=this['editor'],_0x2616e7=_0x32b35f['model']['document']['differ']['getChanges']();if(0x0==_0x2616e7['length'])return!0x1;const _0x131e80=[],_0x1d40de=_0x2616e7['filter'](_0x2563b9=>'attribute'==_0x2563b9['type']),_0x29e979=_0x2616e7['filter'](_0x3432ee=>'insert'==_0x3432ee['type']&&'$text'!=_0x3432ee['name']),_0x2a4ec0=_0x2616e7['filter'](_0x4eeb8d=>'remove'==_0x4eeb8d['type']&&'$text'!=_0x4eeb8d['name']);for(const _0x4b2a64 of _0x1d40de)_0x131e80['push']({'key':_0x4b2a64['attributeKey'],'newValue':_0x4b2a64['attributeNewValue'],'oldValue':_0x4b2a64['attributeOldValue'],'range':Pt(_0x4b2a64['range'],_0x32b35f['model'])});for(const _0x5d5924 of _0x29e979){const _0x7a83f8=_0x2a4ec0['find'](_0x5a5e18=>_0x5a5e18['position']['isEqual'](_0x5d5924['position']));_0x7a83f8&&_0x131e80['push']({'key':m,'newValue':_0x5d5924['name'],'oldValue':_0x7a83f8['name'],'range':_0x32b35f['model']['createRangeOn'](_0x5d5924['position']['nodeAfter'])});}return 0x0!=_0x131e80['length']&&this['_reduceExistingSuggestions'](_0x308be9,_0x131e80);}['_processAttributeSuggestions'](_0x3a6620){let _0x256518=!0x1;const _0x112676=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2881f0=>_0x2881f0['data']['newRange']&&_0x2881f0['name']['startsWith']('suggestion:attribute:'));for(const _0x173212 of _0x112676){const {subType:_0x2160b4,id:_0x341902}=this['_splitMarkerName'](_0x173212['name']),_0x1ffbdb=_0x2160b4['split']('|')[0x0];for(const _0x373619 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x373619['id']!=_0x341902&&'attribute'==_0x373619['type']&&_0x373619['data']&&_0x373619['data']['key']==_0x1ffbdb&&_0x373619['getFirstRange']()['isIntersecting'](_0x173212['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x373619,_0x173212['data']['newRange'],_0x3a6620),_0x256518=!0x0);}return _0x256518;}['_recordAttributeChanges'](_0x6811b9){this['_recordAttributeSuggestions']=!0x0,_0x6811b9();}['_isRegisteredAttribute'](_0x28e18c){const _0x54ab88=this['_isBlockAttribute'](_0x28e18c),_0x36ab76=this['_inlineAttributeKeys']['has'](_0x28e18c);return _0x54ab88||_0x36ab76;}['_reduceExistingSuggestions'](_0x16974b,_0x44dcee){if(0x0==_0x44dcee['length'])return!0x1;let _0x4decb4=!0x1;for(const _0x2bc53b of _0x44dcee){const _0x193840=this['_findSuggestions'](_0x2bc53b['range'],'attribute')['filter'](_0x2a8433=>!_0x2a8433['meta']['isNextTo'])['map'](_0x3cf7f5=>_0x3cf7f5['suggestion']),_0xdbaff=_0x2a3d48({'newValue':_0x2bc53b['newValue']});_0x193840['filter'](_0xab2ddf=>{const [_0x3ad659,_0x59fd06]=_0xab2ddf['subType']['split']('|');return _0x3ad659==_0x2bc53b['key']&&_0x59fd06!=_0xdbaff;})['forEach'](_0x4f8ef4=>{this['_reduceSuggestionAttributeRange'](_0x4f8ef4,_0x2bc53b['range'],_0x16974b),_0x4decb4=!0x0;});}return _0x4decb4;}['_reduceSuggestionAttributeRange'](_0x57799b,_0x412ce4,_0x53ae6b){const _0x49284e=_0x57799b['getFirstRange']()['getDifference'](_0x412ce4);0x0!==_0x49284e['length']?0x1!==_0x49284e['length']?this['_breakSuggestionMarker'](_0x57799b,_0x412ce4['start'],_0x412ce4['end']):this['_setSuggestionRange'](_0x57799b,_0x49284e[0x0]):_0x53ae6b['removeMarker'](_0x57799b['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xf8450){this['_editor']=_0xf8450,this['_model']=_0xf8450['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3972c1,_0xda02f9,_0x1aed67,_0x12c2ea,_0x366b81,_0xc51e7){return new u(this['_model'],{'type':_0x3972c1,'subType':_0xda02f9,'id':_0x1aed67,'author':_0x12c2ea,'creator':_0x12c2ea,'attributes':_0x366b81,'onAttributesChange':_0xc51e7,'onAccept':(..._0x558598)=>this['getSuggestionCallback'](_0x3972c1,_0xda02f9,'accept')(..._0x558598),'onDiscard':(..._0x3bb621)=>this['getSuggestionCallback'](_0x3972c1,_0xda02f9,'discard')(..._0x3bb621)});}['registerCustomCallback'](_0x3f6b98,_0x1913a5,_0x20509b,_0xf35e49){const _0x5f24db=_0x3f6b98+':'+_0x1913a5+':'+_0x20509b;this['_customCallbacks']['set'](_0x5f24db,_0xf35e49);}['getSuggestionCallback'](_0x5e3c75,_0x60329b,_0x10d5e7){const _0x360c65=_0x5e3c75+':'+_0x60329b+':'+_0x10d5e7;return this['_customCallbacks']['get'](_0x360c65)||this['_defaultCallbacks']['get'](_0x5e3c75+':'+_0x10d5e7);}['_registerDefaultCallbacks'](){const _0x278ff2=()=>!0x1,_0x2f969a=_0x523244=>{_0x523244['sort']((_0x1ce459,_0x46dcad)=>_0x1ce459['start']['isBefore'](_0x46dcad['start'])?0x1:-0x1),this['_model']['change'](_0x4b0caa=>{for(const _0x218700 of _0x523244){let _0x4e40e1;_0x4e40e1=_0x218700['end']['isAtEnd']&&_0x218700['end']['parent']==_0x218700['start']['nodeAfter']?_0x4b0caa['createSelection'](_0x218700['start']['nodeAfter'],'on'):_0x4b0caa['createSelection'](_0x218700),this['_model']['deleteContent'](_0x4e40e1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4a3cab=(_0x1688bd,_0x286360)=>{_0x286360&&this['_model']['change'](_0x35832c=>{const {commandName:_0x4ba51d,commandParams:_0x46f501=[]}=_0x286360,_0x8560d=_0x1688bd['map'](_0x5e280b=>(Vt(_0x5e280b)&&(_0x5e280b=this['_model']['createRange'](_0x5e280b['end'])),_0x5e280b))['filter'](_0x768cd4=>'$graveyard'!==_0x768cd4['root']['rootName']);if(_0x8560d['length']<0x1)return;const _0x29aacd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1884a2=>_0x40584f['fromRange'](_0x1884a2));_0x35832c['setSelection'](_0x8560d);for(const _0x1b2ec6 of this['_editor']['commands']['commands']())_0x1b2ec6['refresh']();_0x46f501['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4ba51d,..._0x46f501);const _0x394fc9=_0x29aacd['filter'](_0x114e74=>'$graveyard'!=_0x114e74['root']['rootName']);_0x394fc9['length']>0x0&&_0x35832c['setSelection'](_0x394fc9);for(const _0x154c89 of _0x29aacd)_0x154c89['detach']();});},_0x40b8a2=(_0xe4abd9,_0x290dcd)=>0x1==_0xe4abd9['length']&&0x1==_0x290dcd['length']&&_0xe4abd9[0x0]['end']['isEqual'](_0x290dcd[0x0]['start']),_0x35034e=(_0x5bef65,_0x12057d,_0xb6af71,_0x3df59c)=>Ht(_0x5bef65,_0x12057d,_0xb6af71,_0x3df59c,this['_model'])?[_0x5bef65,_0x12057d]:Ht(_0x12057d,_0x5bef65,_0x3df59c,_0xb6af71,this['_model'])?[_0x12057d,_0x5bef65]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x278ff2),this['_defaultCallbacks']['set']('insertion:discard',_0x2f969a),this['_defaultCallbacks']['set']('insertion:join',_0x40b8a2),this['_defaultCallbacks']['set']('insertion:chain',_0x35034e),this['_defaultCallbacks']['set']('deletion:accept',_0x2f969a),this['_defaultCallbacks']['set']('deletion:discard',_0x278ff2),this['_defaultCallbacks']['set']('deletion:join',_0x40b8a2),this['_defaultCallbacks']['set']('deletion:chain',_0x35034e),this['_defaultCallbacks']['set']('formatInline:accept',_0x4a3cab),this['_defaultCallbacks']['set']('formatInline:discard',_0x278ff2),this['_defaultCallbacks']['set']('formatInline:join',_0x40b8a2),this['_defaultCallbacks']['set']('formatInline:chain',_0x278ff2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4a3cab),this['_defaultCallbacks']['set']('formatBlock:discard',_0x278ff2),this['_defaultCallbacks']['set']('formatBlock:join',_0x40b8a2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x278ff2),this['_defaultCallbacks']['set']('attribute:accept',_0x278ff2),this['_defaultCallbacks']['set']('attribute:discard',(_0x52bbe0,_0x369dfd)=>{if(!_0x369dfd)return;const _0x25c748=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x569918=>{if(_0x369dfd['key']==m)for(const _0x29743d of _0x52bbe0){const _0x27686c=_0x29743d['start']['nodeAfter'],_0x2c043f=_0x369dfd['oldValue'];_0x569918['rename'](_0x27686c,_0x2c043f);}else{if(_0x25c748['_isBlockAttribute'](_0x369dfd['key'])){for(const _0x27b73a of _0x52bbe0)void 0x0!==_0x369dfd['oldValue']?_0x569918['setAttribute'](_0x369dfd['key'],_0x369dfd['oldValue'],_0x27b73a['start']['nodeAfter']):_0x569918['removeAttribute'](_0x369dfd['key'],_0x27b73a['start']['nodeAfter']);}else{for(const _0x5f2eba of _0x52bbe0)_0x369dfd['oldValue']?_0x569918['setAttribute'](_0x369dfd['key'],_0x369dfd['oldValue'],_0x5f2eba):_0x569918['removeAttribute'](_0x369dfd['key'],_0x5f2eba);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x40b8a2);}}function Ot(_0x52495e,_0x3d7dd5,_0x1e1877){for(const _0x4c6d33 of _0x3d7dd5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4c6d33['root']==_0x4c6d33)return!0x1;if(!_0x1e1877['containsItem'](_0x4c6d33))return!0x1;if(_0x52495e['isObject'](_0x4c6d33)||_0x52495e['isLimit'](_0x4c6d33))return!0x0;}return!0x1;}function Vt(_0x3c749e){return _0x3c749e['end']['parent']==_0x3c749e['start']['nodeAfter']&&_0x3c749e['end']['isAtStart'];}function Ut(_0x1df76e,_0x43ab3a,_0x3345b1,_0x172e31){const _0x4dc25c=_0x5c4f07=>!_0x5c4f07['item']['is']('$textProxy')&&!_0x172e31['isObject'](_0x5c4f07['item']),_0x195672=_0x1df76e['start']['getLastMatchingPosition'](_0x4dc25c),_0x50fa81=_0x1df76e['end']['getLastMatchingPosition'](_0x4dc25c,{'direction':'backward'});return(!_0x1df76e['start']['isEqual'](_0x195672)||!_0x1df76e['end']['isEqual'](_0x50fa81))&&(_0x195672['isBefore'](_0x50fa81)?_0x3345b1['updateMarker'](_0x43ab3a,{'range':_0x3345b1['createRange'](_0x195672,_0x50fa81)}):_0x3345b1['removeMarker'](_0x43ab3a),!0x0);}function Gt(_0x25aa19){return _0x2a3d48(_0x25aa19);}function Ft(_0x5748e1){const _0x3b053a=_0x5748e1['start']['nodeAfter'];return _0x3b053a&&_0x3b053a['is']('element');}function Pt(_0x41b050,_0x452e94){return null==_0x41b050['end']['nodeBefore']&&_0x41b050['end']['parent']==_0x41b050['start']['nodeAfter']?Lt(_0x41b050['start']['nodeAfter'],_0x452e94):_0x41b050;}function Lt(_0x1db231,_0x118547){const _0xedbd97=_0x118547['schema']['isObject'](_0x1db231)||_0x118547['schema']['isSelectable'](_0x1db231);return _0x118547['createRange'](_0x118547['createPositionAt'](_0x1db231,'before'),_0xedbd97?_0x118547['createPositionAfter'](_0x1db231):_0x118547['createPositionAt'](_0x1db231,'end'));}function Ht(_0xc5a4fd,_0x286990,_0x17ab98,_0x178b43,_0x372b72){if(_0xc5a4fd['next'])return!0x1;if(!Jt(_0xc5a4fd,_0x286990))return!0x1;if(_0x17ab98['end']['isEqual'](_0x178b43['start']))return!0x0;if(_0xc5a4fd['type']!=_0x286990['type'])return!0x1;if(!_0x17ab98['end']['isTouching'](_0x178b43['start']))return!0x1;const _0x40c3be=_0x372b72['createRange'](_0x17ab98['end'],_0x178b43['start'])['getWalker']();for(const _0x497d7f of _0x40c3be)if(['elementStart','elementEnd']['includes'](_0x497d7f['type'])&&_0x372b72['schema']['isLimit'](_0x497d7f['item']))return!0x1;return!0x0;}function Jt(_0xa6c70a,_0x3b2389){if(!_0xa6c70a['_isDataLoaded']||!_0x3b2389['_isDataLoaded'])return!0x1;const _0x214a5c=new Set(Object['keys'](_0xa6c70a['attributes'])),_0x2f56ca=new Set(Object['keys'](_0x3b2389['attributes']));if(_0x214a5c['delete']('groupId'),_0x2f56ca['delete']('groupId'),0x0==_0x214a5c['size']&&0x0==_0x2f56ca['size'])return!0x0;if(_0x214a5c['size']!=_0x2f56ca['size'])return!0x1;const _0x3a07bf={..._0xa6c70a['attributes']},_0x25a0ad={..._0x3b2389['attributes']};return delete _0x3a07bf['groupId'],delete _0x25a0ad['groupId'],JSON['stringify'](_0x3a07bf)==JSON['stringify'](_0x25a0ad);}function qt(_0x49a58c,_0x1575c3){const _0x26ea8a=zt(_0x49a58c['attributes']),_0x5e3359=zt(_0x1575c3);if(!_0x49a58c['_isDataLoaded'])return!0x1;for(const _0xcf8d08 of Object['keys'](_0x5e3359))if(!_0x503e72(_0x26ea8a[_0xcf8d08],_0x5e3359[_0xcf8d08]))return!0x1;return!0x0;}function zt(_0x5320df){const _0xb886c0=Object['assign']({},_0x5320df);return delete _0xb886c0['skipNestingCheck'],delete _0xb886c0['tablePasteChainId'],_0xb886c0;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x1147b1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3a753d,_0x4c7216,_0x1864fe,_0x5868dd){super(),this['model']=_0x4c7216,this['view']=_0x1864fe,this['commentThreadController']=_0x5868dd,this['_editor']=_0x3a753d,this['_acceptCommand']=_0x3a753d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3a753d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x57c5d9,_0x1d109d)=>_0x57c5d9||_0x1d109d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2039d4=>_0x2039d4&&this['_editor']['model']['canEditAt'](_0x4c7216['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2c7980=>_0x2c7980&&this['_editor']['model']['canEditAt'](_0x4c7216['getRanges']())),this['_pendingAction']=null,_0x1864fe['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1864fe,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1864fe,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1864fe,'change:isDirty',()=>{_0x1864fe['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 _0xb7267e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xb7267e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x10a9d1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3f76ff,_0x47d366,_0x56d606,_0x4ba81d){super(_0x3f76ff),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4cc66d(_0x3f76ff,o(_0x3f76ff,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x47d366['authoredAt']),this['bind']('authoredAt')['to'](_0x47d366),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',_0x47d366,'authoredAt',this,'descriptionParts',(_0x1fff0b,_0x2f098d,_0x5677b1)=>{const _0x5968f4=_0x5677b1['map'](_0x24f093=>ls(_0x24f093['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1fff0b-0x1,_0x47d366['author']['name'],_0x2f098d?_0x4ba81d['formatDateTime'](_0x2f098d):'',new DOMParser()['parseFromString'](_0x5968f4,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5a0728(),this['focusTracker']=new _0x328653(),this['keystrokes']=new _0x5d34be(),this['focusCycler']=new _0x4eabd2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1246c9=>_0x1246c9['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x47d366,this['_localUser']=_0x56d606,this['_config']=_0x4ba81d,_0x4ba81d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x28bfc2(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x30f9e7}=this['_config'];this['commentsListView']=new _0x30f9e7(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',_0x5026e5=>_0x5026e5+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x711d62,_0x515cdc)=>_0x711d62||!!_0x515cdc);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x23ffe7}=this['_config'],_0x50bfcc=new _0x23ffe7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3b536e=_0x50bfcc['commentInputView'];return _0x50bfcc['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3b536e,'value',(_0x55687e,_0x48a87b,_0x3d79e7)=>!!_0x3d79e7||_0x55687e&&!_0x48a87b),_0x3b536e['on']('submit',(_0x7cc0c7,_0x3c9e77)=>{this['fire']('addComment',_0x3c9e77),_0x3b536e['editor']['setData']('');}),_0x3b536e['on']('cancel',()=>this['focus']()),_0x3b536e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x50bfcc;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x41b84c,_0x1b34f5,_0x6e4b5c,_0x34fa4b){super(_0x41b84c,_0x1b34f5,_0x6e4b5c,_0x34fa4b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3e09cf=>_0x3e09cf&&_0x3e09cf[0x0]?_0x3e09cf[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1ba6b0,_0x109e41)=>{let _0xdb1afa='';for(const _0x684a9f of _0x1ba6b0)_0xdb1afa+='<p>'+ls(_0x684a9f['content'],_0x684a9f['color'])+'</p>';return _0x109e41?_0xdb1afa:_0x521f52(_0xdb1afa,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x34fa4b['SuggestionView'](_0x41b84c,_0x1b34f5,{'formatDateTime':_0x34fa4b['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 _0x4d2ec6=this['bindTemplate'],_0x2c62c5=[this['suggestionView']];return this['commentsListView']&&_0x2c62c5['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2c62c5['push'](this['commentThreadInputView']),_0x2c62c5['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4d2ec6['if']('isActive','ck-suggestion-wrapper--active'),_0x4d2ec6['to']('type',_0x1be0ab=>'ck-suggestion-'+_0x1be0ab),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':_0x4d2ec6['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2c62c5};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x10a9d1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x559881,_0x11e24a,_0x135b9f){super(_0x559881),this['_model']=_0x11e24a,this['_config']=_0x135b9f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x11e24a),this['acceptButton']=this['_createButton'](o(_0x559881,'Accept\x20suggestion'),_0x516dbf['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x559881,'Discard\x20suggestion'),_0x516dbf['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x56b331(_0x559881,_0x11e24a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5a0728([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x328653(),this['keystrokes']=new _0x5d34be(),this['focusCycler']=new _0x4eabd2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2e1027=>_0x2e1027['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1bbe22=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1bbe22['innerHTML']=this['description'],this['on']('change:description',(_0x4b2a38,_0x47168a,_0x8bd8f)=>{_0x1bbe22['innerHTML']=_0x8bd8f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2c4ece=this['bindTemplate'],_0x173070=[{'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':_0x2c4ece['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2c4ece['to']('authoredAt',_0x23cf8d=>this['_config']['formatDateTime'](_0x23cf8d))}]}]},{'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']&&_0x173070['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':_0x173070}]};}['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'](_0x4dad45,_0xf8ae4d,_0x2bb357,_0x23f74b,_0x18a21e){const _0x2bac92=new _0x5e9479(this['locale']);return _0x2bac92['set']({'label':_0x4dad45,'icon':_0xf8ae4d,'tooltip':!0x0,'tooltipPosition':_0x18a21e}),_0x2bac92['extendTemplate']({'attributes':{'class':_0x2bb357}}),_0x2bac92['on']('execute',()=>{this['fire'](_0x23f74b,this['_model']['id']);}),_0x2bac92;}['_setupKeyboardNavigation'](){const _0x274bda=this['element'];this['keystrokes']['listenTo'](_0x274bda);for(const _0x1f81b6 of this['focusables'])this['focusTracker']['add'](_0x1f81b6['element']),this['keystrokes']['listenTo'](_0x1f81b6['element']);this['keystrokes']['set']('enter',(_0x4e34bc,_0x2fd908)=>{_0x274bda===_0x4e34bc['target']&&(this['focusCycler']['focusFirst'](),_0x2fd908());}),this['keystrokes']['set']('esc',(_0x420670,_0x56a6fb)=>{_0x274bda!==_0x420670['target']&&(this['focus'](),_0x56a6fb());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x57873f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x389e1f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x29b61f){super(_0x29b61f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1b9d4e=this['editor']['config'];_0x1b9d4e['define']('trackChanges.SuggestionThreadView',re),_0x1b9d4e['define']('trackChanges.SuggestionView',ce),_0x1b9d4e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1b9d4e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4a8d41,_0x54f954){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x31a328,_0x5121f6]of this['_handleControllerBuffer']){const _0x54f221=this['_suggestionToController']['has'](_0x31a328);_0x54f221||_0x5121f6?_0x54f221&&_0x5121f6&&this['_destroyController'](_0x31a328):this['_initializeController'](_0x31a328);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4a8d41,_0x54f954);}['init'](){const _0x48f12f=this['editor'],_0x1d6430=_0x48f12f['plugins']['get']('TrackChangesEditing'),_0x4095a2=_0x48f12f['plugins']['get']('Annotations'),_0xe1efe2=_0x48f12f['plugins']['get']('EditorAnnotations'),_0x15c5b7=_0x48f12f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xe1efe2['addSourceCollector'](()=>{const _0x176433=[];for(const [_0x26d6e7,_0x2ce292]of Array['from'](this['_suggestionToController'])){const _0x117dc9=_0x26d6e7['getAllAdjacentSuggestions'](),_0x5e43e9=[];for(const _0x3289dc of _0x117dc9){if(!_0x3289dc['isInContent'])continue;if(_0x3289dc['isMultiRange']){_0x5e43e9['push'](..._0x3289dc['getRanges']());continue;}const _0x498953=_0x3289dc['getFirstRange']();if(_0x5e43e9['length']>0x0){const _0x2dec7c=_0x5e43e9[0x0]['getJoined'](_0x498953);if(_0x2dec7c){_0x5e43e9[0x0]=_0x2dec7c;continue;}}_0x5e43e9['push'](_0x498953);}_0x176433['push']([_0x2ce292['view'],_0x5e43e9]);}return _0x176433;}),this['listenTo'](_0x1d6430,'suggestionLoaded',(_0x5d4cbb,_0x1eab1b)=>{this['listenTo'](_0x1eab1b,'change:previous',(_0x5757c8,_0x4babba,_0xcfc393,_0xbe10bb)=>{_0x1eab1b['isInContent']&&(null==_0xcfc393?(this['_updateController'](_0xbe10bb['head']),this['_handleSuggestionControllerDelayed'](_0x1eab1b,!0x1)):(this['_updateController'](_0xcfc393['head']),null==_0xbe10bb&&this['_handleSuggestionControllerDelayed'](_0x1eab1b,!0x0)));}),null!==_0x1eab1b['previous']?this['_updateController'](_0x1eab1b['head']):this['_handleSuggestionControllerDelayed'](_0x1eab1b,!0x1);}),this['listenTo'](_0x1d6430,'suggestionUnloaded',(_0x287ddf,_0x9e783b,_0x410b48)=>{this['stopListening'](_0x9e783b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x9e783b),this['_suggestionToController']['has'](_0x9e783b)&&this['_destroyController'](_0x9e783b),_0x410b48&&this['_updateController'](_0x410b48['head']);}),this['listenTo'](_0x1d6430,'suggestionChanged',(_0x3d8741,_0x614d01)=>{this['_updateController'](_0x614d01);}),this['listenTo'](_0x4095a2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x15c5b7,'addComment',(_0x3b68df,{threadId:_0xc9183e,isFromAdapter:_0x119299})=>{if(_0x119299||!_0x1d6430['hasSuggestion'](_0xc9183e))return;const _0x2cc814=_0x1d6430['getSuggestion'](_0xc9183e);this['_suggestionToController']['get'](_0x2cc814)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1f53a7=this['editor']['plugins']['get']('Annotations'),_0x3189bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d24cc=Array['from'](_0x1f53a7['activeAnnotations'],_0x1a2740=>_0x1a2740['innerView'])['filter'](_0x56f9e3=>this['_viewToController']['has'](_0x56f9e3)),_0x3f0b07=[];for(const _0x21d51e of _0x1d24cc){const _0x5775f1=this['_viewToController']['get'](_0x21d51e)['model']['getAllAdjacentSuggestions']();_0x3f0b07['push'](..._0x5775f1['reduce']((_0x2895da,_0xed9591)=>[..._0x2895da,..._0xed9591['getMarkerNames']()],[]));}_0x3189bc['activeMarkers']=_0x3f0b07;}['_addUIComponentsToFactory'](){const _0x2471df=this['editor'],_0x157406=_0x2471df['locale'],_0x303f43=o(_0x157406,'Track\x20changes'),_0x3d7941=new Wt([{'type':'switchbutton','model':new _0x393b2d({'withText':!0x0,'isToggleable':!0x0,'label':_0x303f43,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x393b2d({'withText':!0x0,'label':o(_0x157406,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x393b2d({'withText':!0x0,'label':o(_0x157406,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x393b2d({'withText':!0x0,'label':o(_0x157406,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x393b2d({'withText':!0x0,'label':o(_0x157406,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x57e200 of _0x3d7941)if(me(_0x57e200)){const _0x40c7bf=_0x2471df['commands']['get'](_0x57e200['model']['commandName']);_0x57e200['model']['bind']('isOn','isEnabled')['to'](_0x40c7bf,'value','isEnabled');}_0x2471df['ui']['componentFactory']['add']('trackChanges',_0x5f4dd3=>this['_createToolbarButton'](_0x5f4dd3,_0x3d7941,_0x303f43)),_0x2471df['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4a3457=>this['_createMenuBarMenu'](_0x4a3457,_0x3d7941,_0x303f43));}['_createToolbarButton'](_0x39acd2,_0x3bc924,_0x148497){const _0xcfac8f=Qt(_0x39acd2,_0x5775b6),_0x522bb0=this['editor']['commands']['get']('trackChanges');_0xcfac8f['buttonView']['set']({'tooltip':_0x148497,'label':_0x148497,'icon':he}),_0xcfac8f['buttonView']['bind']('isOn')['to'](_0x522bb0,'value'),_0xcfac8f['buttonView']['on']('execute',()=>{_0x522bb0['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0xcfac8f,_0x3bc924,{'role':'menu'});const _0x177998=[];for(const _0x4ad0b0 of _0x3bc924)me(_0x4ad0b0)&&_0x177998['push'](this['editor']['commands']['get'](_0x4ad0b0['model']['commandName']));const _0x304602=_0xcfac8f['buttonView'];return _0x304602['actionView']['unbind']('isEnabled'),_0x304602['arrowView']['unbind']('isEnabled'),_0x304602['actionView']['bind']('isEnabled')['to'](_0x522bb0,'isEnabled'),_0x304602['arrowView']['bind']('isEnabled')['toMany'](_0x177998,'isEnabled',(..._0x2d2177)=>_0x2d2177['some'](_0x561118=>_0x561118)),_0xcfac8f['on']('execute',_0x3ea903=>{this['editor']['execute'](_0x3ea903['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xcfac8f;}['_createMenuBarMenu'](_0x2574fe,_0x4d974d,_0x4d21a4){const _0x528b48=new Yt(_0x2574fe),_0x650eb6=this['editor']['commands']['get']('trackChanges');_0x528b48['buttonView']['set']({'label':_0x4d21a4,'icon':he});const _0x185e64=new Zt(_0x2574fe);for(const _0x58a60f of _0x4d974d){if('separator'==_0x58a60f['type']){_0x185e64['items']['add'](new Xt(_0x2574fe));continue;}const _0x150d00=new te(_0x2574fe,_0x528b48),_0x37ce73=new _0x158741(_0x2574fe),_0x1775de=_0x58a60f['model'];_0x37ce73['bind'](...Object['keys'](_0x1775de))['to'](_0x1775de),_0x37ce73['delegate']('execute')['to'](_0x528b48),_0x37ce73['on']('execute',()=>{this['editor']['execute'](_0x1775de['commandName']),this['editor']['editing']['view']['focus']();}),_0x150d00['children']['add'](_0x37ce73),_0x185e64['items']['add'](_0x150d00);}return _0x528b48['bind']('isEnabled')['to'](_0x650eb6,'isEnabled'),_0x528b48['panelView']['children']['add'](_0x185e64),_0x528b48;}['_initializeController'](_0x371198){const _0x5e492e=this['editor'],_0x5efa12=_0x5e492e['config'],_0x3ec380=_0x5e492e['plugins']['get']('Annotations'),_0x17379a=_0x5e492e['plugins']['get']('CommentsRepository'),_0x3e762a=_0x5e492e['plugins']['get']('EditorAnnotations'),_0xd0a167=_0x5e492e['plugins']['get'](_0x389e1f)['me'],_0xded0d5=_0x5efa12['get']('trackChanges')['SuggestionThreadView'],_0x4a70f0=_0x5efa12['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4c512d,CommentThreadInputView:_0x94be27}=_0x5e492e['plugins']['get']('CommentsUI');let _0x31ebeb,_0x476253,_0x5a0090;this['_annotationViews']['has'](_0x371198['id'])?(_0x476253=this['_annotationViews']['get'](_0x371198['id']),_0x31ebeb=_0x476253['mainView']):(_0x31ebeb=new _0xded0d5(_0x5e492e['locale'],_0x371198,_0xd0a167,{'disableComments':this['_disableComments'],'editorConfig':_0x5efa12['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5efa12['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5efa12['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5efa12['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5e8a8b(_0x5efa12['get']('locale')),'CommentView':_0x5efa12['get']('comments')['CommentView'],'CommentsListView':_0x4c512d,'CommentThreadInputView':_0x94be27,'SuggestionView':_0x4a70f0}),_0x31ebeb['suggestionView']['acceptButton']['on']('execute',()=>{_0x5e492e['editing']['view']['focus']();}),_0x31ebeb['suggestionView']['discardButton']['on']('execute',()=>{_0x5e492e['editing']['view']['focus']();}),_0x476253=_0x3ec380['createAnnotationView'](this['editor']['locale'],_0x31ebeb),_0x476253['bind']('isDirty')['to'](_0x31ebeb,'isDirty'),_0x476253['bind']('length')['to'](_0x31ebeb),_0x476253['bind']('type')['to'](_0x31ebeb,'type',_0x32670a=>'suggestion-'+_0x32670a),_0x31ebeb['on']('escape',()=>{_0x5a0090['fire']('escape');}),this['_annotationViews']['set'](_0x371198['id'],_0x476253));const _0x30beb2=_0x17379a['createCommentThreadController'](_0x371198['commentThread'],_0x31ebeb),_0x4badc9=new ae(_0x5e492e,_0x371198,_0x31ebeb,_0x30beb2),_0x19c917=_0x371198['getAllAdjacentSuggestions']()['filter'](_0x481746=>_0x481746['isInContent']);_0x31ebeb['descriptionParts']=_0x5e492e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x19c917),this['_suggestionToController']['set'](_0x371198,_0x4badc9),this['_viewToController']['set'](_0x31ebeb,_0x4badc9),_0x5a0090=_0x3ec380['createAnnotation']({'view':_0x476253,'target':()=>{const _0x5cf578=[],_0x36be26=_0x371198['getAllAdjacentSuggestions']()['filter'](_0x4f8fbd=>_0x4f8fbd['isInContent']);for(const _0x175c83 of _0x36be26)_0x5cf578['push'](..._0x175c83['getMarkers']());return _0x52eb0c(_0x5e492e['editing'],_0x5cf578);},'type':()=>'suggestion-'+_0x4badc9['view']['type']}),_0x17379a['_bindAnnotationToEditors'](_0x31ebeb,_0x5a0090),_0x3ec380['add'](_0x5a0090),_0x3e762a['registerAnnotation'](_0x5a0090);}['_destroyController'](_0x53113e){const _0x88a0c5=this['editor']['plugins']['get']('CommentsRepository'),_0x21bd7c=this['editor']['plugins']['get']('Annotations'),_0x2a472d=this['_suggestionToController']['get'](_0x53113e),_0x2b0a1e=_0x2a472d['view'],_0x277ae1=_0x21bd7c['getByInnerView'](_0x2b0a1e);_0x88a0c5['_unbindEditors'](_0x2b0a1e),_0x277ae1&&_0x21bd7c['remove'](_0x277ae1),this['_suggestionToController']['delete'](_0x53113e),this['_viewToController']['delete'](_0x2b0a1e),_0x2a472d['destroy']();}['_updateController'](_0x5ee2f6){if(!_0x5ee2f6['isInContent']||!this['_suggestionToController']['has'](_0x5ee2f6))return;const _0x4586eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d5598=this['_suggestionToController']['get'](_0x5ee2f6),_0x5ade06=_0x5ee2f6['getAllAdjacentSuggestions']();_0x3d5598['view']['descriptionParts']=_0x4586eb['descriptionFactory']['getDescriptions'](_0x5ade06);}['destroy'](){for(const _0x3261f1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3261f1);for(const _0x21f117 of this['_annotationViews']['values']())_0x21f117['mainView']['destroy']();super['destroy']();}}function me(_0x5eef97){return'model'in _0x5eef97;}class k extends _0x57873f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4aafea){this['editor']['plugins']['get'](p)['adapter']=_0x4aafea;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2806fa){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2806fa);}['getSuggestions']({skipNotAttached:_0x49de3c=!0x1,toJSON:_0x2dec54=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x49de3c,'toJSON':_0x2dec54});}['getSuggestion'](_0x5c0ad6){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5c0ad6);}}const T=['Pagination'];class P extends _0x57873f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3c02f=this['editor'];if(_0x3c02f['config']['define']('trackChangesData.editorCreator',_0x3da361=>{const _0x100965=_0x3c02f['model']['document']['getRootNames']()['reduce']((_0x48e4e1,_0x473696)=>(_0x48e4e1[_0x473696]='',_0x48e4e1),{});return _0x3c02f['constructor']['create'](_0x100965,_0x3da361);}),'function'!=typeof _0x3c02f['config']['get']('trackChangesData')['editorCreator'])throw new _0x328131('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x27db35){return N(this['editor'],!0x0,_0x27db35);}['getDataWithDiscardedSuggestions'](_0x21265d){return N(this['editor'],!0x1,_0x21265d);}}class D extends _0x57873f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x149234){super(_0x149234),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x506320){return void 0x0!==_0x506320['getRootsAttributes'];}async function N(_0x17a9cc,_0x46c67b,_0x3f5b37){const _0xda7950=_0x144ba7(_0x17a9cc,T);_0xda7950['plugins']['push'](p,D),_0xda7950['rootsAttributes']=v(_0x17a9cc)?_0x17a9cc['getRootsAttributes']():void 0x0;const _0x186c2e=document['createDocumentFragment'](),_0x4218e1=_0x17a9cc['config']['get']('trackChangesData')['editorCreator'],_0x179288=await _0x4218e1(_0xda7950,()=>function(_0x49603f){const _0x4f9aa9=document['createElement']('div');return _0x49603f['appendChild'](_0x4f9aa9),_0x4f9aa9;}(_0x186c2e));!function(_0x7dca6b,_0x223d57){const _0x86bf2c=_0x7dca6b['model']['document']['getRootNames']()['reduce']((_0x4afcd3,_0x488195)=>(_0x4afcd3[_0x488195]=_0x7dca6b['data']['get']({'rootName':_0x488195}),_0x4afcd3),{}),_0x430107=_0x7dca6b['plugins']['get']('Users')['users']['map'](_0x25d3b=>({'id':_0x25d3b['id'],'name':_0x25d3b['name']})),_0x17a64f=_0x7dca6b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x51d07a=_0x7dca6b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x503542=_0x223d57['plugins']['get']('Users'),_0x238c2e=_0x223d57['plugins']['get']('TrackChangesEditing'),_0x4f3ca1=_0x223d57['plugins']['get']('CommentsRepository');for(const _0x28774e of _0x4f3ca1['getCommentThreads']())_0x28774e['remove']();for(const _0x9bf200 of _0x430107)_0x503542['getUser'](_0x9bf200['id'])||_0x503542['addUser'](_0x9bf200);_0x503542['me']||_0x503542['useAnonymousUser']();for(const _0x587283 of _0x51d07a)_0x4f3ca1['addCommentThread'](_0x587283);for(const _0x9a646f of _0x17a64f)_0x238c2e['addSuggestionData'](_0x9a646f);_0x223d57['data']['set'](_0x86bf2c);}(_0x17a9cc,_0x179288),_0x179288['execute'](_0x46c67b?'acceptAllSuggestions':'discardAllSuggestions');const _0x300e42=v(_0x179288)?_0x179288['getFullData'](_0x3f5b37):_0x179288['data']['get'](_0x3f5b37);return await _0x179288['destroy'](),_0x300e42;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x3415fa,PendingActions as _0x1dc207,icons as _0xe6826f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x267495,ObservableMixin as _0x9b5c62,uid as _0x8d9c92,insertToPriorityArray as _0x23be41,priorities as _0x394182,logWarning as _0x197665,getEnvKeystrokeText as _0x5f026f,FocusTracker as _0x5a80f5,KeystrokeHandler as _0x16e23d,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1275fc,View as _0x46eb55,ViewCollection as _0x29e978,FocusCycler as _0x8653ea,ViewModel as _0x15f400,createDropdown as Qt,SplitButtonView as _0x48a6b0,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x24de32}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x53d2c3,hashObject as _0x3058e0,surroundingMarkersDetector as _0x3e95d5,FOCUS_ANNOTATION_KEYSTROKE as _0x17f5f7,AriaDescriptionView as _0x5bad9b,setupThreadKeyboardNavigation as _0x5572db,trimHtml as _0x4c7176,UserView as _0x240f5a,LateFocusButtonView as _0x4c7ee6,getDateTimeFormatter as _0x3f5c3d,getAllMarkersDomElementsSorted as _0x3745ee,sanitizeEditorConfig as _0x170c4c}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x16d273,LiveRange as _0x5ac42d,LivePosition as _0x33eab1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4dd426,toWidget as _0x9ea13e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2c3a53,set as _0x38cee2,isEqual as _0x51a035,unset as _0xde7be6,omit as Tt}from'lodash-es';import{Delete as _0x5d5c26,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1de681,ShiftEnter as _0x122a71}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x4f9872,_0x4ba68e){super(_0x4f9872),this['_enabledCommands']=_0x4ba68e,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 _0x2a3b54 of this['editor']['commands']['commands']())_0x2a3b54['affectsData']&&!this['_enabledCommands']['has'](_0x2a3b54)&&_0x2a3b54['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2bc852 of this['editor']['commands']['commands']())_0x2bc852['affectsData']&&!this['_enabledCommands']['has'](_0x2bc852)&&_0x2bc852['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x40df05,_0x5e60fb){super(_0x40df05),this['_suggestions']=_0x5e60fb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x576eab){const _0x1b3a27=this['_suggestions']['get'](_0x576eab);if(!_0x1b3a27)throw new _0x267495('track-changes-accept-suggestion-not-found',this);const _0x3d0aac=_0x1b3a27['getRanges']();this['editor']['model']['canEditAt'](_0x3d0aac)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1b3a27);}}class R extends ts{['_suggestions'];constructor(_0x21fb9c,_0x11355f){super(_0x21fb9c),this['_suggestions']=_0x11355f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x54ba80){const _0x43845a=this['_suggestions']['get'](_0x54ba80);if(!_0x43845a)throw new _0x267495('track-changes-discard-suggestion-not-found',this);const _0x504758=_0x43845a['getRanges']();this['editor']['model']['canEditAt'](_0x504758)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x43845a);}}function ls(_0x298551,_0x39d795){let _0xa89eb3='';return _0xa89eb3+=_0x298551['split']('*')['map']((_0x4cfb98,_0x25126e)=>_0x25126e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4cfb98)+'</span>':nn(_0x4cfb98))['join'](''),_0x39d795&&(_0xa89eb3+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x39d795['value']+'\x22\x20title=\x22'+_0x39d795['title']+'\x22></span>'),_0xa89eb3;}function nn(_0x589136){const _0x23c0da=document['createElement']('span');return _0x23c0da['innerText']=_0x589136,_0x23c0da['innerHTML'];}function ss(_0x5e91ce){return _0x5e91ce['sort']((_0x2ac75f,_0x2df3ae)=>'deletion'==_0x2ac75f['type']&&'deletion'!=_0x2df3ae['type']?-0x1:'deletion'!=_0x2ac75f['type']&&'deletion'==_0x2df3ae['type']?0x1:0x0);}function to(_0x4c36e1,_0x197cee){let _0x5a4a80,_0xa93e95=0x0;const _0x36d36d=[],_0x44d6ba=_0x197cee['schema'];for(;_0xa93e95<_0x4c36e1['length'];){const _0x486b5f=_0x4c36e1[_0xa93e95],_0x5c6ced=_0x4c36e1[_0xa93e95+0x1];_0x5a4a80||(_0x5a4a80=_0x197cee['createPositionBefore'](_0x486b5f)),on(_0x197cee,_0x486b5f,_0x5c6ced)||(_0x36d36d['push'](_0x197cee['createRange'](_0x5a4a80,_0x44d6ba['isObject'](_0x486b5f)?_0x197cee['createPositionAfter'](_0x486b5f):_0x197cee['createPositionAt'](_0x486b5f,'end'))),_0x5a4a80=null),_0xa93e95++;}return _0x36d36d;}function on(_0x563d49,_0x3aafaf,_0x7fafe3){if(!_0x7fafe3)return!0x1;const _0x290c74=_0x563d49['createPositionAfter'](_0x3aafaf),_0x83091c=_0x563d49['createPositionBefore'](_0x7fafe3);return _0x290c74['isTouching'](_0x83091c);}function rs(_0x46c21e,_0x13a4d0,_0x4246cc){for(;_0x4246cc['length'];){const _0x121a55=_0x4246cc['splice'](0x0,0x64);_0x46c21e['change'](()=>{for(const _0xe5c037 of _0x121a55)_0xe5c037['isInContent']&&_0x13a4d0['execute'](_0xe5c037['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x73dc5a,_0x109740,_0x599dd1){super(_0x73dc5a),this['_command']=_0x109740,this['_suggestions']=_0x599dd1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x21d1fb=Array['from'](this['_suggestions']['values']())['some'](_0x49d812=>_0x49d812['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x21d1fb;}['execute'](){const _0x3a6c1e=ss(Array['from'](this['_suggestions']['values']()));for(const _0x39c2cc of _0x3a6c1e){const _0x4248f1=_0x39c2cc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4248f1))return;}rs(this['editor']['model'],this['_command'],_0x3a6c1e);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2b6c58,_0x28672c,_0x301b96){super(_0x2b6c58),this['_command']=_0x28672c,this['_suggestions']=_0x301b96,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x472069=this['editor']['model']['document']['selection'],_0x50677a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3079e1,_0x55ea83){const _0x3ccd45=Array['from'](_0x3079e1['getRanges']()),_0x3411f4=new Set();for(const _0x2023e3 of _0x55ea83)if(_0x2023e3['isInContent']){for(const _0x968394 of _0x3ccd45)for(const _0x5121ac of _0x2023e3['getRanges']())(_0x968394['isIntersecting'](_0x5121ac)||_0x3079e1['isCollapsed']&&!_0x2023e3['isMultiRange']&&_0x2023e3['next']&&_0x5121ac['end']['isTouching'](_0x968394['start']))&&_0x3411f4['add'](_0x2023e3);}return _0x3411f4;}(_0x472069,_0x50677a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x245684=ss(Array['from'](this['_selectedSuggestions']));for(const _0x13772b of _0x245684){const _0x53d09f=_0x13772b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x53d09f))return;}rs(this['editor']['model'],this['_command'],_0x245684);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x9b5c62(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x553fd5,_0x47a0d1){super(),this['id']=_0x47a0d1['id'],this['type']=_0x47a0d1['type'],this['subType']=_0x47a0d1['subType']||null,this['author']=_0x47a0d1['author'],this['creator']=_0x47a0d1['creator']||_0x47a0d1['author'],this['isExternal']=Boolean(_0x47a0d1['attributes']&&_0x47a0d1['attributes']['@external']),this['data']=null,this['_model']=_0x553fd5,this['_onAccept']=_0x47a0d1['onAccept'],this['_onDiscard']=_0x47a0d1['onDiscard'],this['_onAttributesChange']=_0x47a0d1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x47a0d1['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 _0x4a8de8=this;for(;_0x4a8de8['previous'];)_0x4a8de8=_0x4a8de8['previous'];return _0x4a8de8;}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'](_0x179aeb){this['_markerNames']['add'](_0x179aeb);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4d7d62=>this['_model']['markers']['get'](_0x4d7d62))['filter'](_0x3ef3f8=>_0x3ef3f8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x382597=>{for(const _0x3d5eef of this['getMarkers']())_0x382597['removeMarker'](_0x3d5eef);}),this['_markerNames']['clear']();}['removeMarker'](_0x41641e){this['_model']['change'](_0x56b484=>{_0x56b484['removeMarker'](_0x41641e);}),this['_markerNames']['delete'](_0x41641e);}['addRange'](_0x2d00bb){const _0x299347='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x299347),this['_model']['change'](_0x2ba503=>{_0x2ba503['addMarker'](_0x299347,{'range':_0x2d00bb,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x77b6c9){for(const _0xda2cfa of this['getRanges']())if(_0xda2cfa['isIntersecting'](_0x77b6c9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5b8978=>_0x5b8978['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1d03c8,_0x429de3)=>[..._0x1d03c8,..._0x429de3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x56986b=this['getRanges']();if(0x1!=_0x56986b['length'])return null;const _0x364ccf=_0x56986b[0x0],_0x5e9a21=_0x364ccf['start']['nodeAfter'],_0x4e98c8=_0x364ccf['end']['nodeBefore'];return _0x5e9a21 instanceof _0x16d273?_0x5e9a21!=_0x4e98c8?null:_0x5e9a21: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 _0x3b630a=[];let _0x527ba3=this['head'];for(;_0x527ba3;)_0x3b630a['push'](_0x527ba3),_0x527ba3=_0x527ba3['next'];return _0x3b630a;}['setAttribute'](_0x4176f5,_0x152c77){const _0x2af51c=_0x2c3a53(this['attributes']);_0x38cee2(_0x2af51c,_0x4176f5,_0x152c77),_0x51a035(_0x2af51c,this['attributes'])||(this['attributes']=_0x2af51c,this['_onAttributesChange'](_0x2af51c));}['removeAttribute'](_0x52d16f){const _0x54bad5=_0x2c3a53(this['attributes']);_0xde7be6(_0x54bad5,_0x52d16f),_0x51a035(_0x54bad5,this['attributes'])||(this['attributes']=_0x54bad5,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 _0x8d9c92()['substr'](0x1,0x5);}}function o(_0xd89a0b,_0x453d16,_0x3e5a86){const t=_0xd89a0b['t'];switch(_0x453d16){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',_0x3e5a86);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3e5a86);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3e5a86);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3e5a86);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3e5a86);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',_0x3e5a86);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3e5a86);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',_0x3e5a86);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3e5a86);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3e5a86);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3e5a86);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3e5a86);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3e5a86);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3e5a86);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3e5a86);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3e5a86);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3e5a86);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3e5a86);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3e5a86);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3e5a86);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3e5a86);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3e5a86);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3e5a86);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'},_0x3e5a86);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3e5a86);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3e5a86);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3e5a86);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3e5a86);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3e5a86);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'},_0x3e5a86);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3e5a86);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3e5a86);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3e5a86);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3e5a86);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'},_0x3e5a86);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3e5a86);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'},_0x3e5a86);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'},_0x3e5a86);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3e5a86);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'},_0x3e5a86);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3e5a86);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'},_0x3e5a86);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3e5a86);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3e5a86);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'},_0x3e5a86);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3e5a86);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3e5a86);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3e5a86);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'},_0x3e5a86);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'},_0x3e5a86);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'},_0x3e5a86);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x453d16;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4444a1,_0x5a6f00){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4444a1,this['_locale']=_0x5a6f00;}['getDescriptions'](_0x5835d2){const _0x67408=[],_0x610b00=new Set(),_0x26de87=new Set();for(let _0x12f755=0x0;_0x12f755<_0x5835d2['length'];_0x12f755++){const _0x5caad=_0x5835d2[_0x12f755];if(!_0x5caad['isInContent'])continue;const _0x1f5fb3=this['_handleCustomCallbackDescription'](_0x5caad);if(_0x1f5fb3){if(null!=_0x5caad['subType']){if(_0x610b00['has'](_0x5caad['subType']))continue;_0x610b00['add'](_0x5caad['subType']);}_0x67408['push'](_0x1f5fb3);}else{if('attribute'!=_0x5caad['type'])'insertion'!=_0x5caad['type']&&'deletion'!=_0x5caad['type']||this['_handleInsertRemoveSuggestionDescription'](_0x67408,_0x5caad,_0x5835d2[_0x12f755+0x1]);else{const _0x4f5bdd=_0x5caad['data']['key'];if(_0x26de87['has'](_0x4f5bdd))continue;_0x26de87['add'](_0x5caad['data']['key']),_0x4f5bdd==m?this['_handleRenameSuggestionDescription'](_0x67408,_0x5caad):this['_handleAttributeSuggestionDescription'](_0x67408,_0x5caad);}}}return this['_resolveDescriptionItems'](_0x67408);}['registerDescriptionCallback'](_0xb1a33e){this['_customCallbacks']['push'](_0xb1a33e);}['registerElementLabel'](_0x38eb47,_0x58af55,_0x218868=_0x394182['normal']){'function'==typeof _0x38eb47?_0x23be41(this['_itemLabelsCallbacks'],{'matchingCallback':_0x38eb47,'label':_0x58af55,'priority':_0x218868}):this['_itemLabels']['set'](_0x38eb47,_0x58af55);}['registerAttributeLabel'](_0x4253fe,_0x125fc1){this['_attributeLabels']['set'](_0x4253fe,_0x125fc1);}['getItemLabel'](_0x2847de,_0xd16a5d=0x1){let _0x80a8b8;for(const _0x4d181f of this['_itemLabelsCallbacks'])if(_0x4d181f['matchingCallback'](_0x2847de)){_0x80a8b8=_0x4d181f['label'];break;}return _0x80a8b8||(_0x80a8b8=this['_itemLabels']['get'](_0x2847de['name'])),_0x80a8b8?_0x80a8b8(_0xd16a5d):0x1!==_0xd16a5d?_0xd16a5d+'\x20'+_0x2847de['name']+'s':''+_0x2847de['name'];}['_addDescriptionItems'](_0x19e900,_0xc0f757){const _0x130cf8=_0xc0f757['getFirstRange']()['getWalker'](),_0x2a327d='insertion'==_0xc0f757['type']?'add':'remove';for(const _0x56263d of _0x130cf8){const _0x18f06f=_0x56263d['item'],_0x5cf575=_0x19e900[_0x19e900['length']-0x1];if(_0x18f06f['is']('$textProxy'))_0x5cf575&&_0x5cf575['type']['indexOf']('Container')>-0x1&&_0x19e900['pop'](),_0x5cf575&&'text'==_0x5cf575['type']?_0x5cf575[_0x2a327d]+=_0x18f06f['data']:_0x19e900['push']({'type':'text','add':'add'==_0x2a327d?_0x18f06f['data']:'','remove':'remove'==_0x2a327d?_0x18f06f['data']:''});else{if(this['_schema']['isObject'](_0x18f06f)){const _0x4a2002=_0x18f06f;if(_0x5cf575&&_0x5cf575['type']['indexOf']('Container')>-0x1&&_0x19e900['pop'](),'elementEnd'==_0x56263d['type'])continue;_0x5cf575&&_0x5cf575['type']==_0x2a327d+'Object'&&_0x5cf575['element']['name']==_0x4a2002['name']?_0x5cf575['quantity']++:_0x19e900['push']({'type':_0x2a327d+'Object','element':_0x4a2002,'quantity':0x1}),_0x130cf8['skip'](_0x5c12d3=>!('elementEnd'==_0x5c12d3['type']&&_0x5c12d3['item']==_0x18f06f));}else{if(this['_schema']['checkChild'](_0x18f06f,'$text')||_0x18f06f['is']('element','softBreak')){const _0x58090d=_0x18f06f;if('add'==_0x2a327d&&'elementStart'==_0x56263d['type']||'remove'==_0x2a327d&&'elementEnd'==_0x56263d['type'])continue;if(_0x5cf575&&-0x1==_0x5cf575['type']['indexOf']('Container')){'text'==_0x5cf575['type']&&(_0x5cf575[_0x2a327d]+='\x0a');continue;}let _0x5db404;if(_0x5db404='add'==_0x2a327d?_0x58090d['nextSibling']&&!this['_schema']['isObject'](_0x58090d['nextSibling'])?_0x58090d['nextSibling']:null:_0x58090d['previousSibling']&&!this['_schema']['isObject'](_0x58090d['previousSibling'])?_0x58090d['previousSibling']:null,_0x58090d['isEmpty']||_0x5db404&&_0x5db404['isEmpty']){const _0x591d87=_0x5db404&&_0x5db404['isEmpty']?_0x5db404:_0x58090d;_0x5cf575&&_0x5cf575['type']==_0x2a327d+'EmptyContainer'&&_0x5cf575['element']['name']==_0x591d87['name']?_0x5cf575['quantity']++:_0x19e900['push']({'type':_0x2a327d+'EmptyContainer','element':_0x591d87,'quantity':0x1});}else _0x19e900['push']({'type':_0x2a327d+'Container','element':_0x58090d});}}}}}['_resolveDescriptionItems'](_0x325cbc){const _0x4c4ecd=this['_locale'],_0xdd5441=[],_0x453bad=[],_0x5a2cb6=[];for(const _0x21fb14 of _0x325cbc)switch(_0x21fb14['type']){case'text':if(_0x21fb14['add']=_0x21fb14['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x21fb14['remove']=_0x21fb14['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x21fb14['add']&&''!=_0x21fb14['remove']){_0xdd5441['push']({'type':'replace','content':o(_0x4c4ecd,'REPLACE_TEXT',['\x22'+_0x21fb14['remove']+'\x22','\x22'+_0x21fb14['add']+'\x22'])});continue;}if(null!=_0x21fb14['add']['match'](/^ +$/)){_0xdd5441['push']({'type':'insertion','content':o(_0x4c4ecd,'*Insert:*\x20%0',o(_0x4c4ecd,'ELEMENT_SPACE',_0x21fb14['add']['length']))});continue;}if(null!=_0x21fb14['remove']['match'](/^ +$/)){_0xdd5441['push']({'type':'deletion','content':o(_0x4c4ecd,'*Remove:*\x20%0',o(_0x4c4ecd,'ELEMENT_SPACE',_0x21fb14['remove']['length']))});continue;}if(''!=_0x21fb14['add']){_0xdd5441['push']({'type':'insertion','content':o(_0x4c4ecd,'*Insert:*\x20%0','\x22'+_0x21fb14['add']+'\x22')});continue;}_0xdd5441['push']({'type':'deletion','content':o(_0x4c4ecd,'*Remove:*\x20%0','\x22'+_0x21fb14['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xdd5441['push']({'type':'insertion','content':o(_0x4c4ecd,'*Insert:*\x20%0',this['getItemLabel'](_0x21fb14['element'],_0x21fb14['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xdd5441['push']({'type':'deletion','content':o(_0x4c4ecd,'*Remove:*\x20%0',this['getItemLabel'](_0x21fb14['element'],_0x21fb14['quantity']))});continue;case'addContainer':_0xdd5441['push']({'type':'insertion','content':o(_0x4c4ecd,'*Split:*\x20%0',this['getItemLabel'](_0x21fb14['element'],_0x21fb14['quantity']))});continue;case'removeContainer':_0xdd5441['push']({'type':'deletion','content':o(_0x4c4ecd,'*Merge:*\x20%0',this['getItemLabel'](_0x21fb14['element'],_0x21fb14['quantity']))});continue;case'addFormat':_0x453bad['push'](_0x21fb14['key']);continue;case'removeFormat':_0x5a2cb6['push'](_0x21fb14['key']);continue;default:_0xdd5441['push'](_0x21fb14);}if(_0x453bad['length']){const _0xd25110=_0x453bad['map'](_0x4d1afd=>this['_attributeLabels']['has'](_0x4d1afd)?this['_attributeLabels']['get'](_0x4d1afd):_0x4d1afd)['join'](',\x20');_0xdd5441['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xd25110)});}if(_0x5a2cb6['length']){const _0x399434=_0x5a2cb6['map'](_0x4c7745=>this['_attributeLabels']['has'](_0x4c7745)?this['_attributeLabels']['get'](_0x4c7745):_0x4c7745)['join'](',\x20');_0xdd5441['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x399434)});}return _0xdd5441;}['_handleCustomCallbackDescription'](_0xbacdb4){for(const _0x500e2e of this['_customCallbacks']){const _0x243ce6=_0x500e2e(_0xbacdb4);if(_0x243ce6&&'type'in _0x243ce6)return _0x243ce6;}}['_handleAttributeSuggestionDescription'](_0x569872,_0x243255){const _0x22bc90=_0x243255['data'],_0x126a31=void 0x0===_0x22bc90['newValue']?'removeFormat':'addFormat';_0x569872['push']({'type':_0x126a31,'key':_0x22bc90['key']});}['_handleRenameSuggestionDescription'](_0x57e86a,_0x2e3c6c){_0x57e86a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2e3c6c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x41df8d,_0x464086,_0x189430){if(this['_addDescriptionItems'](_0x41df8d,_0x464086),_0x189430&&_0x189430['getFirstRange']()&&!_0x464086['getFirstRange']()['end']['isEqual'](_0x189430['getFirstRange']()['start'])){const _0x3197d4=_0x41df8d[_0x41df8d['length']-0x1],_0xdf079a='insertion'==_0x464086['type']?'add':'remove';_0x3197d4&&'text'==_0x3197d4['type']&&(_0x3197d4[_0xdf079a]+='\x0a');}}}class V extends _0x3415fa{['afterInit'](){const _0x434231=this['editor'],_0x1eab90=_0x434231['plugins']['get']('TrackChangesEditing');_0x434231['commands']['get']('showAIAssistant')&&_0x1eab90['enableCommand']('showAIAssistant');}}class U extends _0x3415fa{['afterInit'](){const _0x2be968=this['editor'],_0x1543ed=_0x2be968['locale'];if(!_0x2be968['plugins']['has']('AlignmentEditing'))return;const _0x1ec17f=_0x2be968['plugins']['get']('TrackChangesEditing');_0x1ec17f['enableDefaultAttributesIntegration']('alignment'),_0x1ec17f['registerBlockAttribute']('alignment'),_0x1ec17f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1543ed,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dd1a5=this['editor'],_0x1baa53=_0x1dd1a5['locale'];_0x1dd1a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3540a3=>{if('formatBlock'!=_0x3540a3['type'])return;const {data:_0x1141e6}=_0x3540a3;if(_0x1141e6&&'alignment'==_0x1141e6['commandName']){const _0x51c9dd=_0x1141e6['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1baa53,'*Format:*\x20%0',function(_0x186c5e){switch(_0x186c5e){case'left':return o(_0x1baa53,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1baa53,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1baa53,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1baa53,'FORMAT_JUSTIFY_TEXT');}}(_0x51c9dd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3415fa{['afterInit'](){const _0x2e45f9=this['editor'],_0x324e62=_0x2e45f9['plugins']['get']('TrackChangesEditing'),_0xc037b6=_0x2e45f9['locale'];for(const _0x59eb90 of ti){if(!_0x2e45f9['plugins']['has'](_0x59eb90))continue;const _0x4605d3=_0x59eb90['slice'](0x0,-0x7)['toLowerCase'](),_0x49d7d8='FORMAT_'+_0x4605d3['toUpperCase']();_0x324e62['enableDefaultAttributesIntegration'](_0x4605d3),_0x324e62['registerInlineAttribute'](_0x4605d3),_0x324e62['descriptionFactory']['registerAttributeLabel'](_0x4605d3,o(_0xc037b6,_0x49d7d8));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3baccd=this['editor'],_0x4cdab9=_0x3baccd['locale'],_0x1a6ba1=_0x3baccd['plugins']['get']('TrackChangesEditing');function _0x8d96cf(_0x331e5d,_0x2f04f5){_0x1a6ba1['descriptionFactory']['registerDescriptionCallback'](_0x56a39b=>{if('formatInline'!=_0x56a39b['type'])return;const {data:_0x3459b1}=_0x56a39b;return _0x3459b1&&_0x3459b1['commandName']===_0x331e5d?_0x3459b1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4cdab9,'*Format:*\x20%0',_0x2f04f5)}:{'type':'format','content':o(_0x4cdab9,'*Remove\x20format:*\x20%0',_0x2f04f5)}:void 0x0;});}_0x8d96cf('bold',o(_0x4cdab9,'FORMAT_BOLD')),_0x8d96cf('italic',o(_0x4cdab9,'FORMAT_ITALIC')),_0x8d96cf('underline',o(_0x4cdab9,'FORMAT_UNDERLINE')),_0x8d96cf('code',o(_0x4cdab9,'FORMAT_CODE')),_0x8d96cf('strikethrough',o(_0x4cdab9,'FORMAT_STRIKETHROUGH')),_0x8d96cf('subscript',o(_0x4cdab9,'FORMAT_SUBSCRIPT')),_0x8d96cf('superscript',o(_0x4cdab9,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3415fa{['afterInit'](){const _0xf57f7f=this['editor'],_0xf05900=_0xf57f7f['locale'];if(!_0xf57f7f['plugins']['has']('BlockQuoteEditing'))return;const _0x37750b=_0xf57f7f['plugins']['get']('TrackChangesEditing'),_0x535166=this['editor']['commands']['get']('blockQuote');_0x37750b['enableCommand']('blockQuote',(_0x115dec,_0xc61426={})=>{const _0x59ffd6=this['editor']['model']['document']['selection'],_0x519f6b=_0xc61426&&void 0x0!==_0xc61426['forceValue']?_0xc61426['forceValue']:!_0x535166['value'];let _0xcf0095=[];if(_0x519f6b){const _0x381083=Array['from'](_0x59ffd6['getSelectedBlocks']())['filter'](_0x5c30c9=>oo(_0x5c30c9)||function(_0x57f889,_0x234421){const _0x59fe9d=_0x234421['checkChild'](_0x57f889['parent'],'blockQuote'),_0x4dca40=_0x234421['checkChild'](['$root','blockQuote'],_0x57f889);return _0x59fe9d&&_0x4dca40;}(_0x5c30c9,this['editor']['model']['schema']));_0xcf0095=to(_0x381083,_0xf57f7f['model']);}else{const _0x53841d=Array['from'](_0x59ffd6['getSelectedBlocks']())['filter'](_0x66ea=>oo(_0x66ea));_0xcf0095=to(_0x53841d,_0xf57f7f['model']);}_0xf57f7f['model']['change'](()=>{for(const _0x18d8e6 of _0xcf0095)_0x37750b['markBlockFormat'](_0x18d8e6,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x519f6b}]});});}),_0x37750b['descriptionFactory']['registerDescriptionCallback'](_0x40c8d9=>{const {data:_0x650fa0}=_0x40c8d9;if(_0x650fa0&&'blockQuote'==_0x650fa0['commandName']){const _0xa640ae=o(_0xf05900,'ELEMENT_BLOCK_QUOTE');return _0x650fa0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf05900,'*Set\x20format:*\x20%0',_0xa640ae)}:{'type':'format','content':o(_0xf05900,'*Remove\x20format:*\x20%0',_0xa640ae)};}});}}function oo(_0x1cfadf){return'blockQuote'==_0x1cfadf['parent']['name'];}class L extends _0x3415fa{['afterInit'](){const _0x432374=this['editor'];_0x432374['plugins']['has']('CaseChange')&&(_0x432374['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x432374['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x432374['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3415fa{['afterInit'](){const _0x3fc46f=this['editor'];_0x3fc46f['commands']['get']('ckbox')&&_0x3fc46f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x3415fa{['afterInit'](){const _0xfccaff=this['editor'];if(!_0xfccaff['plugins']['has']('CodeBlock'))return;const _0x36882b=_0xfccaff['plugins']['get']('TrackChangesEditing'),_0x4825c6=_0xfccaff['locale'],_0x40de07=_0xfccaff['config']['get']('codeBlock')['languages'],_0x2175aa=_0xfccaff['commands']['get']('codeBlock');_0x36882b['enableCommand']('indentCodeBlock'),_0x36882b['enableCommand']('outdentCodeBlock'),_0x36882b['enableCommand']('codeBlock',(_0x5e25d0,_0x230957={})=>{const _0x1e7ddc=_0xfccaff['model'],_0x2e341b=_0xfccaff['model']['document']['selection'],_0x1a75df=_0x230957&&void 0x0!==_0x230957['forceValue']?_0x230957['forceValue']:!_0x2175aa['value'];let _0x1f705f;_0x230957['language']||(_0x230957['language']=_0x40de07[0x0]['language']),_0x1f705f=_0x1a75df?Array['from'](_0x2e341b['getSelectedBlocks']())['filter'](_0x2614f3=>eo(_0x2614f3)||function(_0x6db1c,_0x189d4a){if(_0x6db1c['is']('rootElement')||_0x189d4a['isLimit'](_0x6db1c))return!0x1;return _0x189d4a['checkChild'](_0x6db1c['parent'],'codeBlock');}(_0x2614f3,_0x1e7ddc['schema'])):Array['from'](_0x2e341b['getSelectedBlocks']())['filter'](_0x4e7fdb=>eo(_0x4e7fdb));const _0x249046=to(_0x1f705f,_0x1e7ddc);_0x1e7ddc['change'](()=>{for(const _0x3b1607 of _0x249046)_0x36882b['markBlockFormat'](_0x3b1607,{'commandName':'codeBlock','commandParams':[{..._0x230957,'forceValue':_0x1a75df}],'formatGroupId':'blockName'});});}),(_0x36882b['descriptionFactory']['registerElementLabel']('codeBlock',_0x3debd4=>o(_0x4825c6,'ELEMENT_CODE_BLOCK',_0x3debd4)),_0x36882b['descriptionFactory']['registerDescriptionCallback'](_0x52275e=>{if('formatBlock'!=_0x52275e['type'])return;const _0xbd943d=_0x4825c6['t'],{data:_0x1dfd47}=_0x52275e;if(!_0x1dfd47||'codeBlock'!=_0x1dfd47['commandName'])return;const _0x5e89ac=_0x1dfd47['commandParams'][0x0]['language'],_0x36fb20=_0xbd943d(_0x40de07['find'](_0x11a34c=>_0x11a34c['language']===_0x5e89ac)['label'])['toLowerCase']();return _0x1dfd47['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4825c6,'*Set\x20format:*\x20%0',o(_0x4825c6,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x36fb20+')')}:{'type':'format','content':o(_0x4825c6,'*Remove\x20format:*\x20%0',o(_0x4825c6,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x34d4a7){return'codeBlock'==_0x34d4a7['name'];}class q extends _0x3415fa{['afterInit'](){const _0x5be085=this['editor'];if(!_0x5be085['plugins']['has']('CommentsEditing'))return;_0x5be085['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x12d12a,_0x219c05,_0x9dcf43){const _0x50933c=[];for(const _0x553e41 of _0x219c05['getItems']())_0x553e41['hasAttribute'](_0x12d12a)&&_0x50933c['push'](_0x9dcf43['createRangeOn'](_0x553e41));return _0x50933c;}function _e(_0x6dd3de,_0x1f1b52,{showActiveMarker:_0x2b3a3b=!0x0}={}){const _0x4740fa=_0x6dd3de['plugins']['get']('TrackChangesEditing');return(_0x1dd413,_0x36d098,_0xacdc1f)=>{if(!_0xacdc1f['consumable']['test'](_0x36d098['markerRange'],_0x1dd413['name']))return;const _0x56801b=_0x36d098['markerRange']['getWalker'](),_0x4685cd=_0x36d098['markerRange']['start'],_0x24d2d2=_0x6dd3de['model']['schema'];let _0x4a5942=null,_0x1d9849=null,_0x1ea668=!0x1,_0xc8db5c=!0x1;for(const _0x167dad of _0x56801b){const _0x191a9f=_0x167dad['item'];_0x1ea668=_0x1ea668||_0x24d2d2['isContent'](_0x191a9f);const _0x476db2=_0xacdc1f['mapper']['toViewElement'](_0x191a9f);if(_0x476db2&&_0x476db2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x167dad['type']&&(_0x24d2d2['isBlock'](_0x191a9f)&&!_0x24d2d2['isLimit'](_0x191a9f)&&(_0x191a9f['nextSibling']||_0x4685cd['isAtEnd']?_0x4a5942&&_0x4a5942['parent']==_0x191a9f||(_0x4a5942=_0x191a9f,_0x1794fa(_0x167dad['previousPosition']),_0xc8db5c=!0x0):_0x1d9849=_0x1d9849||_0x167dad['previousPosition']));}function _0x1794fa(_0x4de3fc){const {authorId:_0x36044a}=_0x4740fa['_splitMarkerName'](_0x36d098['markerName']),_0x1f3ef4=_0xacdc1f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1f1b52,'data-author-id':_0x36044a}),_0x5846d9=_0xacdc1f['mapper']['toViewPosition'](_0x4de3fc);_0x2b3a3b&&_0x4740fa['activeMarkers']['includes'](_0x36d098['markerName'])&&_0xacdc1f['writer']['addClass']('ck-suggestion-marker--active',_0x1f3ef4),_0xacdc1f['writer']['insert'](_0x5846d9,_0x1f3ef4),_0xacdc1f['mapper']['bindElementToMarker'](_0x1f3ef4,_0x36d098['markerName']);}_0x1ea668||_0xc8db5c||!_0x1d9849||_0x1794fa(_0x1d9849);};}class z extends _0x3415fa{static get['requires'](){return[_0x5d5c26];}['init'](){const _0x568f24=this['editor'],_0x47e4e4=_0x568f24['plugins']['get']('TrackChangesEditing');_0x47e4e4['enableCommand']('delete');const _0x575f94=_0x568f24['commands']['get']('deleteForward');_0x47e4e4['enableCommand']('deleteForward',(_0x3edc0f,_0x219aba={})=>{const _0x5c2e05=_0x568f24['model']['createSelection'](_0x568f24['model']['document']['selection']);_0x5c2e05['isCollapsed']&&_0x568f24['model']['modifySelection'](_0x5c2e05,{'direction':'forward','unit':_0x219aba['unit']});const _0x27bf65=_0x5c2e05['getFirstRange'](),_0x25d87d=_0x5ac42d['fromRange'](_0x27bf65);let _0x1af31d;_0x3edc0f(_0x219aba),_0x1af31d='$graveyard'==_0x25d87d['root']['rootName']?_0x568f24['model']['createRange'](_0x27bf65['start']):_0x568f24['model']['createRange'](_0x25d87d['start'],_0x25d87d['end']),_0x25d87d['detach'](),_0x568f24['model']['enqueueChange'](_0x575f94['buffer']['batch'],_0x1df8f5=>{_0x575f94['buffer']['lock'](),_0x1df8f5['setSelection'](_0x1df8f5['createRange'](_0x1af31d['end'])),_0x575f94['buffer']['unlock']();});}),_0x568f24['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x568f24,'merge'),{'priority':'high'}),_0x568f24['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x429492,_0x50c215,_0x5ee1ee)=>{_0x5ee1ee['options']['showSuggestionHighlights']&&_e(_0x568f24,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x429492,_0x50c215,_0x5ee1ee);},{'priority':'high'}),_0x568f24['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x42feb5,_0x1b6bc4,_0x17dfb6)=>{const _0x4db3e7=_0x17dfb6['mapper']['markerNameToElements'](_0x1b6bc4['markerName']);if(_0x4db3e7){for(const _0x33ac79 of _0x4db3e7)_0x33ac79['is']('uiElement')&&(_0x17dfb6['mapper']['unbindElementFromMarkerName'](_0x33ac79,_0x1b6bc4['markerName']),_0x17dfb6['writer']['remove'](_0x33ac79));}},{'priority':'high'});}}class K extends _0x3415fa{['afterInit'](){const _0x1868fb=this['editor'];if(!_0x1868fb['plugins']['has']('ListEditing'))return;const _0x43eac8=_0x1868fb['locale'],_0x4307cb=_0x1868fb['plugins']['get']('TrackChangesEditing'),_0xce8994=_0x1868fb['plugins']['has']('TodoListEditing'),_0x32eb7a=!!_0x1868fb['config']['get']('list.multiBlock');function _0xaa9519(_0x198d23){return{'type':'format','content':''+o(_0x43eac8,'*Set\x20format:*\x20%0',_0x198d23)};}function _0x3229a6(_0xda4ba3){return{'type':'format','content':''+o(_0x43eac8,'*Remove\x20format:*\x20%0',_0xda4ba3)};}_0x4307cb['enableDefaultAttributesIntegration']('numberedList'),_0x4307cb['enableDefaultAttributesIntegration']('bulletedList'),_0x4307cb['enableDefaultAttributesIntegration']('customNumberedList'),_0x4307cb['enableDefaultAttributesIntegration']('customBulletedList'),_0x4307cb['enableDefaultAttributesIntegration']('indentList'),_0x4307cb['enableDefaultAttributesIntegration']('outdentList'),_0x4307cb['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4307cb['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4307cb['registerBlockAttribute']('listItemId'),_0x4307cb['registerBlockAttribute']('listType'),_0x4307cb['registerBlockAttribute']('listIndent'),_0x32eb7a&&(_0x4307cb['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4307cb['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xce8994&&(_0x4307cb['enableDefaultAttributesIntegration']('todoList'),_0x4307cb['enableDefaultAttributesIntegration']('checkTodoList'),_0x4307cb['registerBlockAttribute']('todoListChecked'),_0x4307cb['descriptionFactory']['registerDescriptionCallback'](_0x2b75aa=>{const {data:_0x14b463}=_0x2b75aa;if(_0x14b463&&'todoListChecked'==_0x14b463['key'])return{'type':'format','content':_0x14b463['newValue']?o(_0x43eac8,'*Check\x20item*'):o(_0x43eac8,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x754885=>{if(_0x754885['batch']['isUndo'])return!0x1;let _0x3cc722=!0x1;const _0x3df7cf=_0x4307cb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4eebbd=>'todoListChecked'===_0x4307cb['_getAttributeKey'](_0x4eebbd));for(const _0x9b4a45 of _0x3df7cf){'todo'!=_0x9b4a45['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4307cb['_findSuggestions'](_0x9b4a45['getFirstRange'](),'attribute')['find'](_0x54dcb9=>'listType'===_0x4307cb['_getAttributeKey'](_0x54dcb9['suggestion']))||(_0x754885['removeMarker'](_0x9b4a45['getFirstMarker']()),_0x3cc722=!0x0));}return _0x3cc722;})),_0x4307cb['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x43eac8,'FORMAT_INDENT'));const _0x483873={'type':'format','content':''};_0x4307cb['descriptionFactory']['registerDescriptionCallback'](_0x1152e7=>{const {data:_0x43ea6a}=_0x1152e7;if(!_0x43ea6a||'listType'!=_0x43ea6a['key'])return;let _0x40bf93=_0x1152e7['head'];for(;_0x40bf93;){if(_0x40bf93['data']&&(('listStyle'==_0x40bf93['data']['key']||'listMarkerStyle'==_0x40bf93['data']['key'])&&(_0x40bf93['data']['newValue']&&'default'!=_0x40bf93['data']['newValue']||'default'!=_0x40bf93['data']['oldValue']&&!_0x43ea6a['newValue'])||!_0x32eb7a&&_0x40bf93['data']['key']==m))return _0x483873;_0x40bf93=_0x40bf93['next'];}if(null==_0x43ea6a['newValue'])switch(_0x43ea6a['oldValue']){case'bulleted':return _0x3229a6(o(_0x43eac8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3229a6(o(_0x43eac8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3229a6(o(_0x43eac8,'ELEMENT_TODO_LIST'));}switch(_0x43ea6a['newValue']){case'bulleted':return _0xaa9519(o(_0x43eac8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xaa9519(o(_0x43eac8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xaa9519(o(_0x43eac8,'ELEMENT_TODO_LIST'));}}),_0x4307cb['descriptionFactory']['registerDescriptionCallback'](_0x5ab02b=>{const {data:_0x1ea09e}=_0x5ab02b;if(_0x1ea09e&&'listIndent'==_0x1ea09e['key'])return null==_0x1ea09e['newValue']||null==_0x1ea09e['oldValue']&&0x0==_0x1ea09e['newValue']?_0x483873:void 0x0;}),_0x4307cb['descriptionFactory']['registerDescriptionCallback'](_0x16fec8=>{if('attribute'!=_0x16fec8['type'])return;const {data:_0x4dec52}=_0x16fec8;if(!_0x4dec52||'listItemId'!=_0x4dec52['key'])return;const _0x5d6e40=Ee(_0x16fec8);return'newValue'==_0x5d6e40?{'type':'format','content':o(_0x43eac8,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5d6e40?{'type':'format','content':o(_0x43eac8,'*Split:*\x20list\x20item')}:_0x483873;}),_0x1868fb['model']['document']['registerPostFixer'](_0x1277a9=>this['listItemIdFixer'](_0x1277a9)),_0x1868fb['model']['document']['registerPostFixer'](_0x4cf057=>this['noTrackChangesFixer'](_0x4cf057)),_0x1868fb['model']['document']['on']('change:data',(_0x39c473,_0x159ef6)=>{if(_0x159ef6['isUndo']||!_0x159ef6['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1e1448){if(_0x1e1448['batch']['isUndo']||!_0x1e1448['batch']['isLocal'])return!0x1;let _0x193e15=!0x1;const _0x293a3e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50e90c=>_0x50e90c['data']&&'listItemId'==_0x50e90c['data']['key'])['filter'](_0xe98414=>_0xe98414['data']['newValue']&&_0xe98414['data']['oldValue']);for(const _0x14f423 of _0x293a3e)Ee(_0x14f423)||(_0x1e1448['removeMarker'](_0x14f423['getFirstMarker']()),_0x193e15=!0x0);return _0x193e15;}['noTrackChangesFixer'](_0x323b95){if(_0x323b95['batch']['isUndo']||!_0x323b95['batch']['isLocal'])return!0x1;const _0x30a891=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x30a891['trackChangesCommand']['value'])return!0x1;let _0x20f7fd=!0x1;const _0x521cbb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5c551a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4badbe=>'attribute'==_0x4badbe['type'])['filter'](_0x24c5c2=>_0x521cbb['includes'](_0x24c5c2['attributeKey']));if(0x0==_0x5c551a['length'])return _0x20f7fd;for(const _0x3071d6 of _0x5c551a){const _0x58a985=_0x30a891['_findSuggestions'](_0x3071d6['range'],'attribute')['filter'](_0x219801=>!_0x219801['meta']['isNextTo'])['map'](_0x5abb5b=>_0x5abb5b['suggestion'])['filter'](_0x53cb88=>{const _0x2d894b=_0x30a891['_getAttributeKey'](_0x53cb88);return _0x521cbb['includes'](_0x2d894b);});if(_0x58a985['length']){for(const _0x525e44 of _0x58a985)_0x323b95['removeMarker'](_0x525e44['getFirstMarker']());_0x20f7fd=!0x0;}}return _0x20f7fd;}['assureChains'](){const _0x4816af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2413b1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x290b58;const _0x21b274=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x15eeb6=>{if(_0x15eeb6['data']['oldRange']||!_0x15eeb6['data']['newRange'])return null;if(!_0x15eeb6['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x48c9e0}=_0x4816af['_splitMarkerName'](_0x15eeb6['name']);if(!_0x4816af['hasSuggestion'](_0x48c9e0))return null;const _0x19376d=_0x4816af['getSuggestion'](_0x48c9e0);return _0x2413b1['includes'](_0x19376d['data']['key']);})['map'](_0x47ee8d=>{const {id:_0x2386f1}=_0x4816af['_splitMarkerName'](_0x47ee8d['name']),_0x314a7e=_0x4816af['getSuggestion'](_0x2386f1);return _0x290b58=_0x314a7e['attributes']['groupId'],_0x314a7e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x21b274['size'])return;const _0x3a3c05=_0x4816af['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x412fcf=>'attribute'==_0x412fcf['type']&&_0x412fcf['data']&&_0x2413b1['includes'](_0x412fcf['data']['key'])&&_0x412fcf['attributes']['groupId']!=_0x290b58)['map'](_0x54cde5=>({'listItem':_0x54cde5['getFirstRange']()['start']['nodeAfter'],'groupId':_0x54cde5['attributes']['groupId']})),_0x5d8657=new Set();for(const {groupId:_0x51350b,listItem:_0x59b6dc}of _0x3a3c05)_0x21b274['has'](_0x59b6dc)&&_0x5d8657['add'](_0x51350b);for(const _0x4a245f of _0x4816af['getSuggestions']())_0x5d8657['has'](_0x4a245f['attributes']['groupId'])&&_0x4a245f['setAttribute']('groupId',_0x290b58);}['_supportLegacySuggestions'](){const _0x127782=this['editor'],_0x56cd18=_0x127782['locale'],_0x333cc3=_0x127782['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x333cc3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5224d5,_0x19325a){const _0x2bfee0=[];for(let _0x108f5c of _0x5224d5)_0x108f5c['start']['nodeAfter']===_0x108f5c['end']['parent']&&(_0x108f5c=_0x127782['model']['createRange'](_0x127782['model']['createPositionAt'](_0x108f5c['start']['nodeAfter'],0x0))),_0x2bfee0['push'](_0x108f5c);_0x127782['model']['change'](_0x47dec2=>{const _0x2bf6ea=_0x127782['model']['document']['selection'],_0x117b8c=Array['from'](_0x2bf6ea['getRanges']())['map'](_0x24325e=>_0x5ac42d['fromRange'](_0x24325e));_0x47dec2['setSelection'](_0x2bfee0),_0x127782['commands']['get'](_0x19325a['commandName'])['refresh'](),_0x19325a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x127782['execute'](_0x19325a['commandName'],..._0x19325a['commandParams']),_0x47dec2['setSelection'](_0x117b8c);for(const _0x16ed46 of _0x117b8c)_0x16ed46['detach']();});}),_0x333cc3['descriptionFactory']['registerElementLabel'](function(_0x6285de){const _0x512f51=!_0x127782['model']['schema']['isObject'](_0x6285de),_0x16cd01=_0x6285de['previousSibling'],_0x139080=_0x6285de['nextSibling'],_0x4696c0=_0x6285de['getAttribute']('listItemId'),_0x3907e8=!_0x16cd01||_0x16cd01['getAttribute']('listItemId')!==_0x4696c0,_0x2d52f8=!_0x139080||_0x139080['getAttribute']('listItemId')!==_0x4696c0;return _0x512f51&&Boolean(_0x4696c0)&&_0x3907e8&&_0x2d52f8;},_0x3b022d=>o(_0x56cd18,'ELEMENT_LIST_ITEM',_0x3b022d));}['_registerLegacyDescription'](){const _0x8a8203=this['editor'],_0x3640d9=_0x8a8203['locale'];function _0x4e54c4(_0x38d00f){const _0x5209b4=_0x8a8203['commands']['get']('bulletedList')['value'],_0x3921f2=_0x8a8203['commands']['get']('numberedList')['value'];return'numberedList'===_0x38d00f?_0x5209b4:_0x3921f2;}_0x8a8203['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x427ce8){if('formatBlock'!=_0x427ce8['type'])return;const {data:_0x7492be}=_0x427ce8;if(!_0x7492be)return;let _0x40dc9c,_0x16152d,_0x407d51,_0x1cdc4f;switch(_0x7492be['commandName']){case'bulletedList':_0x407d51=_0x7492be['commandParams'][0x0]['forceValue'],_0x1cdc4f=_0x4e54c4(_0x7492be['commandName']),_0x40dc9c=_0x407d51?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1cdc4f&&_0x8a8203['config']['get']('list.multiBlock')||(_0x40dc9c='*Change\x20to:*\x20%0'),_0x16152d={'type':'format','content':o(_0x3640d9,_0x40dc9c,o(_0x3640d9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x407d51=_0x7492be['commandParams'][0x0]['forceValue'],_0x1cdc4f=_0x4e54c4(_0x7492be['commandName']),_0x40dc9c=_0x407d51?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1cdc4f&&_0x8a8203['config']['get']('list.multiBlock')||(_0x40dc9c='*Change\x20to:*\x20%0'),_0x16152d={'type':'format','content':o(_0x3640d9,_0x40dc9c,o(_0x3640d9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x40dc9c='*Indent:*\x20%0',_0x16152d={'type':'format','content':o(_0x3640d9,_0x40dc9c,o(_0x3640d9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x40dc9c=function(_0x49981c){const _0x1b4812=_0x49981c['getFirstRange']();let _0x37cc3f=_0x1b4812['start']['nodeAfter'];for(;_0x37cc3f&&_0x1b4812['containsItem'](_0x37cc3f);){if(_0x37cc3f['getAttribute']('listIndent')>0x0)return!0x1;_0x37cc3f=_0x37cc3f['nextSibling'];}return!0x0;}(_0x427ce8)?o(_0x3640d9,'*Format:*\x20remove\x20from\x20%0',o(_0x3640d9,function(_0x3b21c5){return'ELEMENT_'+_0x3b21c5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x427ce8))):o(_0x3640d9,'*Outdent:*\x20%0',o(_0x3640d9,'ELEMENT_LIST_ITEM')),_0x16152d={'type':'format','content':_0x40dc9c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x7492be['multipleBlocks']&&(_0x40dc9c='*Merge:*\x20%0',_0x16152d={'type':'deletion','content':o(_0x3640d9,_0x40dc9c,o(_0x3640d9,'ELEMENT_LIST_ITEM'))});}return _0x16152d;});}}function Ee(_0x131cd1){let _0xae0133=_0x131cd1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xae0133;){const _0x50dd9c=_0xae0133['getAttribute']('listItemId');if(!_0x50dd9c)return!0x1;if(_0x50dd9c==_0x131cd1['data']['newValue'])return'newValue';if(_0x50dd9c==_0x131cd1['data']['oldValue'])return'oldValue';_0xae0133=_0xae0133['previousSibling'];}return!0x1;}class pe extends _0x3415fa{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x43afaf=this['editor']['config']['get']('list.properties'),_0x5acdda=this['editor']['plugins']['get']('TrackChangesEditing');_0x43afaf['styles']&&(_0x5acdda['enableDefaultAttributesIntegration']('listStyle'),_0x5acdda['registerBlockAttribute']('listStyle')),_0x43afaf['reversed']&&(_0x5acdda['enableDefaultAttributesIntegration']('listReversed'),_0x5acdda['registerBlockAttribute']('listReversed')),_0x43afaf['startIndex']&&(_0x5acdda['enableDefaultAttributesIntegration']('listStart'),_0x5acdda['registerBlockAttribute']('listStart'));const _0x50dbc4={'type':'format','content':''};_0x5acdda['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x39364a=this['editor']['locale'];_0x5acdda['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x39364a,'FORMAT_LIST_REVERSED')),_0x5acdda['descriptionFactory']['registerDescriptionCallback'](_0x497a1d=>{const {data:_0x476f4a}=_0x497a1d;if(_0x476f4a&&'listReversed'==_0x476f4a['key'])return null==_0x476f4a['newValue']||0x0==_0x476f4a['newValue']&&null==_0x476f4a['oldValue']?_0x50dbc4:void 0x0;}),_0x5acdda['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x39364a,'FORMAT_LIST_START')),_0x5acdda['descriptionFactory']['registerDescriptionCallback'](_0x3bb96d=>{const {data:_0xb4f80d}=_0x3bb96d;if(_0xb4f80d&&'listStart'==_0xb4f80d['key'])return null==_0xb4f80d['newValue']||0x1==_0xb4f80d['newValue']&&null==_0xb4f80d['oldValue']?_0x50dbc4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x573f5e=>{if(_0x573f5e['batch']['isUndo'])return!0x1;let _0x271049=!0x1;const _0x5de17e=_0x5acdda['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5450e6=>{const _0x30e2ad=_0x5acdda['_getAttributeKey'](_0x5450e6);return'listStart'==_0x30e2ad||'listReversed'==_0x30e2ad;});for(const _0xb6639b of _0x5de17e){const _0x4f1e8a=_0xb6639b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4f1e8a||'customNumbered'==_0x4f1e8a)continue;_0x5acdda['_findSuggestions'](_0xb6639b['getFirstRange'](),'attribute')['find'](_0x5b75be=>'listType'==_0x5acdda['_getAttributeKey'](_0x5b75be['suggestion']))||(_0x573f5e['removeMarker'](_0xb6639b['getFirstMarker']()),_0x271049=!0x0);}return _0x271049;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x59f57a){const _0x13797f=this['editor']['locale'],{data:_0x19ce47}=_0x59f57a,_0x1d0dbf={'type':'format','content':''};if(!_0x19ce47||'listStyle'!=_0x19ce47['key'])return;if(!_0x19ce47['oldValue'])return'default'==_0x19ce47['newValue']?_0x1d0dbf:{'type':'format','content':''+o(_0x13797f,'*Set\x20format:*\x20%0',o(_0x13797f,this['_getTranslationKeyForListStyle'](_0x19ce47['newValue'])))};if(!_0x19ce47['newValue']){if('default'==_0x19ce47['oldValue'])return _0x1d0dbf;let _0x544399=_0x59f57a['head'];for(;_0x544399;){if(_0x544399['data']&&'listType'==_0x544399['data']['key']&&_0x544399['data']['newValue'])return _0x1d0dbf;_0x544399=_0x544399['next'];}return{'type':'format','content':''+o(_0x13797f,'*Remove\x20format:*\x20%0',o(_0x13797f,this['_getTranslationKeyForListStyle'](_0x19ce47['oldValue'])))};}if('default'!=_0x19ce47['newValue'])return{'type':'format','content':''+o(_0x13797f,'*Set\x20format:*\x20%0',o(_0x13797f,this['_getTranslationKeyForListStyle'](_0x19ce47['newValue'])))};let _0x691b75=_0x59f57a['head'];for(;_0x691b75;){if(_0x691b75['data']&&'listType'==_0x691b75['data']['key']&&_0x691b75['data']['newValue']&&_0x691b75['data']['oldValue'])return _0x1d0dbf;_0x691b75=_0x691b75['next'];}return{'type':'format','content':o(_0x13797f,'*Set\x20format:*\x20%0',o(_0x13797f,'ELEMENT_'+_0x59f57a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x568909=this['editor'],_0x1eb686=_0x568909['locale'];_0x568909['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b1c4e=>{if('formatBlock'!=_0x4b1c4e['type'])return;const {data:_0x10a6b1}=_0x4b1c4e;if(!_0x10a6b1)return;let _0x40e585,_0x47b5e4;switch(_0x10a6b1['commandName']){case'listStyle':_0x40e585='*Change\x20to:*\x20%0',_0x47b5e4={'type':'format','content':o(_0x1eb686,_0x40e585,o(_0x1eb686,this['_getTranslationKeyForListStyle'](_0x10a6b1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40e585=_0x10a6b1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x47b5e4={'type':'format','content':o(_0x1eb686,_0x40e585)};break;case'listStart':_0x40e585='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x47b5e4={'type':'format','content':o(_0x1eb686,_0x40e585,_0x10a6b1['commandParams'][0x0]['startIndex'])};}return _0x47b5e4;});}['_getTranslationKeyForListStyle'](_0x220df1){return'ELEMENT_'+function(_0x10b992){if(ye['includes'](_0x10b992))return'bulleted';if(Se['includes'](_0x10b992))return'numbered';return null;}(_0x220df1)['toUpperCase']()+'_LIST_'+_0x220df1['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x3415fa{static get['requires'](){return[_0x1de681];}['init'](){const _0x23b2c7=this['editor'],_0x1e0761=_0x23b2c7['plugins']['get']('TrackChangesEditing'),_0x17c955=_0x23b2c7['commands']['get']('enter');_0x1e0761['enableCommand']('enter',()=>{_0x23b2c7['model']['change'](_0x5b0203=>{const _0x875ab9=_0x23b2c7['model']['document']['selection'],_0x104123=_0x875ab9['getFirstPosition'](),_0x16f8bc=_0x5ac42d['fromRange'](_0x875ab9['getFirstRange']());if(_0x17c955['enterBlock'](_0x5b0203)){const _0x37eb56=_0x23b2c7['model']['createPositionAt'](_0x104123['parent']['nextSibling'],0x0),_0x139902=_0x5b0203['createRange'](_0x104123,_0x37eb56);_0x1e0761['markInsertion'](_0x139902);}else _0x5b0203['setSelection'](_0x5b0203['createRange'](_0x16f8bc['end']));_0x16f8bc['detach'](),_0x17c955['fire']('afterExecute',{'writer':_0x5b0203});});}),_0x23b2c7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x23b2c7,'split'),{'priority':'high'}),_0x23b2c7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x73d000,_0x41e448,_0x2ad2ba)=>{const _0x3b1175=_0x2ad2ba['mapper']['markerNameToElements'](_0x41e448['markerName']);if(_0x3b1175){for(const _0x2ac8f0 of _0x3b1175)_0x2ac8f0['hasClass']('ck-suggestion-marker-split')&&(_0x2ad2ba['mapper']['unbindElementFromMarkerName'](_0x2ac8f0,_0x41e448['markerName']),_0x2ad2ba['writer']['remove'](_0x2ac8f0));}},{'priority':'high'}),_0x23b2c7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x231682,_0x211651,_0x4fc30b)=>{_0x4fc30b['options']['showSuggestionHighlights']&&_e(_0x23b2c7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x231682,_0x211651,_0x4fc30b);},{'priority':'high'});}}class X extends _0x3415fa{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x79037=this['editor']['plugins']['get']('TrackChangesEditing');_0x79037['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x79037['enableCommand']('findNext'),_0x79037['enableCommand']('findPrevious'),_0x79037['enableCommand']('replace'),_0x79037['enableCommand']('replaceAll');}['handleFindCommand'](_0x4cd5e3,_0x3d7a63,_0x405bdc={}){const _0x4912f5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4cd5e3(_0x40fa43=>{let _0x1e9a42=('string'==typeof _0x3d7a63?_0x4912f5['findByTextCallback'](_0x3d7a63,_0x405bdc):_0x3d7a63)(_0x40fa43);Array['isArray'](_0x1e9a42)&&(_0x1e9a42={'results':_0x1e9a42,'searchText':'string'==typeof _0x3d7a63?_0x3d7a63:''});const _0xfaf94d=_0x1e9a42['results']['filter'](_0x561bf4=>!0x1===this['_isInDeletionRange'](_0x561bf4,_0x40fa43['item']));return{..._0x1e9a42,'results':_0xfaf94d};},_0x405bdc);}['_isInDeletionRange'](_0x36017f,_0x6b864d){const _0x555b98=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x6b864d,_0x36017f['start']),this['editor']['model']['createPositionAt'](_0x6b864d,_0x36017f['end']));for(const _0x34ed9b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x555b98['getIntersection'](_0x34ed9b['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x3415fa{['afterInit'](){const _0x2b96ae=this['editor']['locale'],_0x598986=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x56d0fd,commandName:_0x216564}of ro)this['editor']['plugins']['has'](_0x56d0fd)&&(_0x598986['enableDefaultAttributesIntegration'](_0x216564),_0x598986['registerInlineAttribute'](_0x216564));_0x598986['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2b96ae,'FORMAT_FONT_SIZE')),_0x598986['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2b96ae,'FORMAT_FONT_FAMILY')),_0x598986['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2b96ae,'FORMAT_FONT_COLOR')),_0x598986['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2b96ae,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x516a63=this['editor'],_0x3664fe=_0x516a63['locale'];_0x516a63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x248a69=>{const _0x49ebfa=_0x3664fe['t'];if('formatInline'!=_0x248a69['type'])return;const {data:_0x29476b}=_0x248a69;if(null!=_0x29476b){if('fontSize'==_0x29476b['commandName']){const _0xaaa4ee=_0x29476b['commandParams'][0x0]['value'];if(_0xaaa4ee){const _0x1f763e=_0x49ebfa(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x23ea88=>_0x23ea88['model']==_0xaaa4ee)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3664fe,'*Set\x20font\x20size:*\x20%0',_0x1f763e)};}return{'type':'format','content':o(_0x3664fe,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x29476b['commandName']){const _0x13f1e9=_0x29476b['commandParams'][0x0]['value'];return _0x13f1e9?{'type':'format','content':o(_0x3664fe,'*Set\x20font\x20family:*\x20%0',_0x13f1e9)}:{'type':'format','content':o(_0x3664fe,'*Reset\x20font\x20family*')};}if('fontColor'==_0x29476b['commandName']){const _0x3b6bf7=_0x29476b['commandParams'][0x0]['value'];if(_0x3b6bf7){const _0x385cfa=_0x1275fc(this['editor']['config']['get']('fontColor.colors'))['find'](_0xd19c23=>_0xd19c23['model']==_0x3b6bf7);let _0x3f7936=_0x3b6bf7,_0x4089b9='';return _0x385cfa&&(_0x3f7936=_0x385cfa['label'],_0x4089b9=_0x49ebfa(_0x3f7936)['toLowerCase']()),{'type':'format','content':o(_0x3664fe,'*Set\x20font\x20color:*\x20%0',_0x4089b9)['trim'](),'color':{'value':_0x3b6bf7,'title':_0x4089b9||_0x3f7936}};}return{'type':'format','content':o(_0x3664fe,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x29476b['commandName']){const _0x1e0e5c=_0x29476b['commandParams'][0x0]['value'];if(_0x1e0e5c){const _0x27d39c=_0x1275fc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3a9591=>_0x3a9591['model']==_0x1e0e5c);let _0x57905d=_0x1e0e5c,_0x6dc0d2='';return _0x27d39c&&(_0x57905d=_0x27d39c['label'],_0x6dc0d2=_0x49ebfa(_0x57905d)['toLowerCase']()),{'type':'format','content':o(_0x3664fe,'*Set\x20font\x20background\x20color:*\x20%0',_0x6dc0d2)['trim'](),'color':{'value':_0x1e0e5c,'title':_0x6dc0d2||_0x57905d}};}return{'type':'format','content':o(_0x3664fe,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x3415fa{['afterInit'](){const _0x285931=this['editor'],_0x35ade9=_0x285931['plugins']['get']('TrackChangesEditing'),_0x115ea8=_0x285931['commands']['get']('copyFormat'),_0xd20dca=_0x285931['commands']['get']('pasteFormat');_0x115ea8&&_0xd20dca&&(_0x35ade9['enableDefaultAttributesIntegration']('pasteFormat'),_0x35ade9['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4d4fb2=this['editor'],_0x4d8fda=_0x4d4fb2['locale'];_0x4d4fb2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6b0f52=>{if('formatBlock'!=_0x6b0f52['type']&&'formatInline'!=_0x6b0f52['type'])return;const {data:_0x159acc}=_0x6b0f52;if(_0x159acc&&'pasteFormat'===_0x159acc['commandName']){const _0xf90bb5=[],_0x3a4761=_0x159acc['commandParams'][0x0];for(const [_0x28c97b,_0x137d34]of Object['entries'](_0x3a4761))_0xf90bb5['push'](so(_0x4d4fb2,_0x28c97b,_0x137d34));return _0xf90bb5['length']?{'type':'format','content':o(_0x4d8fda,'*Set\x20format\x20to:*\x20%0',_0xf90bb5['join'](',\x20'))}:{'type':'format','content':o(_0x4d8fda,'*Remove\x20all\x20formatting*')};}});}}function so(_0x491fe0,_0xa6696e,_0x6d769){const _0x24b25a=_0x491fe0['locale']['t'],_0x2f0e4d=_0xa6696e['split'](/(?=[A-Z])/)['join']('\x20'),_0x2e4463=_0x24b25a(_0x2f0e4d['charAt'](0x0)['toUpperCase']()+_0x2f0e4d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x6d769)return _0x2e4463;if('fontColor'===_0xa6696e||'fontBackgroundColor'===_0xa6696e){const _0xd8eb2=_0x1275fc(_0x491fe0['config']['get']('fontColor.colors'))['find'](_0x355d8a=>_0x355d8a['model']==_0x6d769);return _0x2e4463+'\x20('+(_0xd8eb2?_0x24b25a(_0xd8eb2['label'])['toLowerCase']():_0x6d769)+')';}if('fontSize'===_0xa6696e&&isNaN(parseFloat(_0x6d769))){const _0x40a550=_0x491fe0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x491fe0['config']['get']('fontSize.options'))['find'](_0x55c946=>_0x55c946['model']==_0x6d769);return _0x2e4463+'\x20('+(_0x40a550?_0x24b25a(_0x40a550['title'])['toLowerCase']():_0x6d769)+')';}return _0x2e4463+'\x20('+_0x6d769+')';}class tt extends _0x3415fa{['_headingOptions'];['afterInit'](){const _0x557914=this['editor'];if(!_0x557914['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x557914['config']['get']('heading.options');const _0x214f6c=_0x557914['locale'],_0x38b069=_0x557914['plugins']['get']('TrackChangesEditing');_0x38b069['enableDefaultAttributesIntegration']('heading');for(const _0x599cb8 of this['_headingOptions'])'paragraph'!=_0x599cb8['model']&&_0x38b069['descriptionFactory']['registerElementLabel'](_0x599cb8['model'],_0x429921=>{const _0x972f6e=this['_getHeadingLevel'](_0x599cb8['model']);return null!==_0x972f6e?_0x28c7d4(_0x429921,_0x972f6e):_0x4b0c29(_0x429921,_0x599cb8['title']);});function _0x28c7d4(_0x19514b,_0x50af57){return o(_0x214f6c,'ELEMENT_HEADING',[_0x19514b,_0x50af57]);}function _0x4b0c29(_0x2df447,_0x90096a){return o(_0x214f6c,'ELEMENT_HEADING_CUSTOM',[_0x2df447,_0x90096a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f07ea=this['editor'],_0x105054=_0x4f07ea['locale'];function _0x53b085(_0x12f89b,_0xa771fd){return o(_0x105054,'ELEMENT_HEADING_CUSTOM',[_0x12f89b,_0xa771fd]);}_0x4f07ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d3313=>{if('formatBlock'!=_0x1d3313['type'])return;const {data:_0xa30328}=_0x1d3313;if(_0xa30328&&'heading'==_0xa30328['commandName']){const _0x567b82=_0xa30328['commandParams'][0x0]['value'],_0x8445e0=this['_getHeadingLevel'](_0x567b82);if(null!==_0x8445e0)return{'type':'format','content':o(_0x105054,'*Change\x20to:*\x20%0',(_0x49f54c=0x1,_0x38f6b9=_0x8445e0,o(_0x105054,'ELEMENT_HEADING',[_0x49f54c,_0x38f6b9])))};const _0x503e52=this['_headingOptions']['find'](_0x4a4a8b=>_0x4a4a8b['model']===_0x567b82)['title'];return{'type':'format','content':o(_0x105054,'*Change\x20to:*\x20%0',_0x53b085(0x1,_0x503e52))};}var _0x49f54c,_0x38f6b9;});}['_getHeadingLevel'](_0x1479e3){const _0x33946f=_0x1479e3['match'](/^heading(\d+)/);if(_0x33946f)return _0x33946f[0x1];const _0x31b892=this['_headingOptions']?.['find'](_0x37293c=>_0x37293c['model']==_0x1479e3);if(_0x31b892&&_0x31b892['view']){const _0x39c92e=_0x31b892['view'],_0x4e63b3=(_0x39c92e['name']??_0x39c92e)['match'](/^h(\d+)/);if(_0x4e63b3)return _0x4e63b3[0x1];}return null;}}class et extends _0x3415fa{['afterInit'](){const _0x458ea9=this['editor'];if(!_0x458ea9['plugins']['has']('HighlightEditing'))return;const _0x15f3c1=_0x458ea9['plugins']['get']('TrackChangesEditing'),_0x42a5a4=_0x458ea9['locale'];_0x15f3c1['enableDefaultAttributesIntegration']('highlight'),_0x15f3c1['registerInlineAttribute']('highlight'),_0x15f3c1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x42a5a4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ce7ed=this['editor'],_0x425df6=_0x1ce7ed['locale'];_0x1ce7ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17fb86=>{if('formatInline'!=_0x17fb86['type'])return;const {data:_0x2f6370}=_0x17fb86;if(_0x2f6370&&'highlight'==_0x2f6370['commandName']){const _0x29ec95=_0x425df6['t'],_0x17ef71=_0x2f6370['commandParams'][0x0]['value'];if(_0x17ef71){const _0x9d893c=_0x1ce7ed['config']['get']('highlight.options')['find'](_0x3974c1=>_0x3974c1['model']==_0x17ef71),_0x40c354=_0x29ec95(_0x9d893c['title'])['toLowerCase']();return{'type':'format','content':o(_0x425df6,'*Set\x20highlight:*\x20%0',_0x40c354),'color':{'value':_0x9d893c['color'],'title':_0x9d893c['title']}};}return{'type':'format','content':o(_0x425df6,'*Remove\x20highlight*',o(_0x425df6,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3415fa{['afterInit'](){const _0x57f2be=this['editor'];if(!_0x57f2be['plugins']['has']('HorizontalLineEditing'))return;_0x57f2be['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5b6122=_0x57f2be['plugins']['get']('TrackChangesEditing'),_0x292ada=_0x57f2be['locale'];_0x5b6122['descriptionFactory']['registerElementLabel']('horizontalLine',_0x33217d=>o(_0x292ada,'ELEMENT_HORIZONTAL_LINE',_0x33217d)),_0x57f2be['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x337b7e,{writer:_0x578001,options:_0x216e1e})=>{if(!_0x216e1e['showSuggestionHighlights'])return null;const _0x4c05ce=_0x578001['createContainerElement']('div'),_0x5d900b=_0x578001['createEmptyElement']('hr');return _0x578001['addClass']('ck-horizontal-line',_0x4c05ce),_0x578001['insert'](_0x578001['createPositionAt'](_0x4c05ce,0x0),_0x5d900b),_0x4c05ce;},'converterPriority':'high'});}}class st extends _0x3415fa{['afterInit'](){const _0x396469=this['editor'];if(!_0x396469['plugins']['has']('HtmlEmbed'))return;const _0x518222=_0x396469['plugins']['get']('TrackChangesEditing'),_0x243c0a=_0x396469['locale'];_0x518222['descriptionFactory']['registerElementLabel']('rawHtml',_0x4fafc7=>o(_0x243c0a,'ELEMENT_HTML_EMBED',_0x4fafc7)),_0x518222['enableDefaultAttributesIntegration']('htmlEmbed'),_0x518222['registerBlockAttribute']('value'),_0x518222['descriptionFactory']['registerDescriptionCallback'](_0x37230f=>{if('attribute'!=_0x37230f['type'])return;const {data:_0x46b4f1}=_0x37230f;if(_0x46b4f1&&'value'==_0x46b4f1['key']&&_0x37230f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2cb441=o(_0x243c0a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x243c0a,'*Change\x20%0\x20content*',_0x2cb441)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x117229=this['editor'],_0x43aa7a=_0x117229['locale'];_0x117229['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdc3a08=>{if('formatBlock'!=_0xdc3a08['type'])return;const {data:_0x19491c}=_0xdc3a08;if(_0x19491c&&'htmlEmbed'==_0x19491c['commandName']){const _0x1c9064=o(_0x43aa7a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x43aa7a,'*Change\x20%0\x20content*',_0x1c9064)};}});}}class nt extends _0x3415fa{['afterInit'](){const _0x592265=this['editor'];if(!_0x592265['plugins']['has']('ImageEditing'))return;const _0x598bdc=_0x592265['plugins']['get']('TrackChangesEditing'),_0x3e5ed9=_0x592265['plugins']['get']('ImageUtils'),_0x543651=_0x592265['locale'];_0x598bdc['enableCommand']('insertImage'),_0x598bdc['descriptionFactory']['registerElementLabel']('imageBlock',_0x1ef50f=>o(_0x543651,'ELEMENT_IMAGE',_0x1ef50f)),_0x598bdc['descriptionFactory']['registerElementLabel']('imageInline',_0x4bbb00=>o(_0x543651,'ELEMENT_INLINE_IMAGE',_0x4bbb00)),_0x598bdc['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x543651,'ELEMENT_CAPTION')),_0x592265['plugins']['has']('ImageUploadEditing')&&_0x598bdc['enableCommand']('uploadImage'),_0x592265['plugins']['has']('ImageBlockEditing')&&_0x592265['plugins']['has']('ImageInlineEditing')&&(_0x598bdc['enableCommand']('imageTypeInline',(_0x499761,_0xb09101)=>{const _0x5d45e1=_0x3e5ed9['getClosestSelectedImageElement'](_0x592265['model']['document']['selection']);_0x592265['model']['change'](()=>{_0x598bdc['markBlockFormat'](_0x5d45e1,{'commandName':'imageTypeInline','commandParams':[_0xb09101]},[],'convertBlockImageToInline');});}),_0x598bdc['enableCommand']('imageTypeBlock',(_0x19901e,_0x2a98d4)=>{_0x592265['model']['change'](_0x1d7241=>{let _0x45d0f6=_0x3e5ed9['getClosestSelectedImageElement'](_0x592265['model']['document']['selection']),_0x42acb9=_0x1d7241['createRangeOn'](_0x45d0f6);const _0x30a1d9=_0x33eab1['fromPosition'](_0x42acb9['start'],'toPrevious'),_0x57cfdf=_0x33eab1['fromPosition'](_0x42acb9['end'],'toNext');_0x598bdc['forceDefaultExecution'](()=>_0x19901e(_0x2a98d4)),_0x45d0f6=_0x3e5ed9['getClosestSelectedImageElement'](_0x592265['model']['document']['selection']),_0x42acb9=_0x1d7241['createRangeOn'](_0x45d0f6);const _0x2c0309=_0x1d7241['createRange'](_0x30a1d9,_0x57cfdf);_0x30a1d9['detach'](),_0x57cfdf['detach'](),_0x598bdc['markBlockFormat'](_0x45d0f6,{'commandName':'imageTypeInline','commandParams':[_0x2a98d4]},[],'convertInlineImageToBlock'),_0x2c0309['start']['isBefore'](_0x42acb9['start'])&&_0x598bdc['markInsertion'](_0x1d7241['createRange'](_0x2c0309['start'],_0x42acb9['start']),'convertInlineImageToBlock'),_0x42acb9['end']['isBefore'](_0x2c0309['end'])&&_0x598bdc['markInsertion'](_0x1d7241['createRange'](_0x42acb9['end'],_0x2c0309['end']),'convertInlineImageToBlock');});}),_0x598bdc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x598bdc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x598bdc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x598bdc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x598bdc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x598bdc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xcf91c0])=>{const _0x2b6d10=_0x598bdc['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x33c893=_0xcf91c0['start'],_0x4896ca=_0xcf91c0['end'];const _0x41cdca=_0x592265['model']['schema']['getNearestSelectionRange'](_0x33c893,'backward'),_0x551fa4=_0x592265['model']['schema']['getNearestSelectionRange'](_0x4896ca,'forward');_0x41cdca['isCollapsed']&&(_0x33c893=_0x41cdca['start']),_0x551fa4['isCollapsed']&&(_0x4896ca=_0x551fa4['end']),_0x2b6d10([_0x592265['model']['createRange'](_0x33c893,_0x4896ca)]);}),_0x598bdc['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x6674e0),_0x598bdc['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x6674e0)),_0x592265['plugins']['has']('ImageCaptionEditing')&&(_0x598bdc['enableCommand']('toggleImageCaption',(_0xfbbd06,_0x111d03)=>{const _0x5b35f9=_0x592265['plugins']['get']('ImageCaptionUtils');let _0x4f4c40=_0x3e5ed9['getClosestSelectedImageElement'](_0x592265['model']['document']['selection']),_0x5d37d8=_0x5b35f9['getCaptionFromImageModelElement'](_0x4f4c40);_0x592265['model']['change'](()=>{if(_0x5d37d8)return void _0x598bdc['markDeletion'](_0x592265['model']['createRangeOn'](_0x5d37d8));const _0x1331ea=_0x3e5ed9['isBlockImage'](_0x4f4c40);_0xfbbd06(_0x111d03),_0x4f4c40=_0x3e5ed9['getClosestSelectedImageElement'](_0x592265['model']['document']['selection']),_0x5d37d8=_0x5b35f9['getCaptionFromImageModelElement'](_0x4f4c40),_0x598bdc['markInsertion'](_0x592265['model']['createRangeOn'](_0x5d37d8),_0x1331ea?null:'imageCaption');});}),_0x598bdc['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x6674e0));const _0x3908ec=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2e401b(_0x47c0de,_0x2496ed){const _0x4ed9a9=_0x3908ec['findIndex'](({type:_0x47fa75,subType:_0x4c72b8})=>_0x47c0de['type']==_0x47fa75&&_0x47c0de['subType']==_0x4c72b8),_0x45585e=_0x3908ec['findIndex'](({type:_0x261f58,subType:_0x5c3eb6})=>_0x2496ed['type']==_0x261f58&&_0x2496ed['subType']==_0x5c3eb6);if(_0x4ed9a9<0x0||_0x45585e<0x0)return!0x1;const _0x2e41c8=_0x47c0de['getFirstRange'](),_0x494206=_0x2496ed['getFirstRange']();if((0x0==_0x4ed9a9||0x1==_0x4ed9a9)&&0x2==_0x45585e&&_0x2e41c8['isIntersecting'](_0x494206))return!0x0;if(0x2==_0x4ed9a9&&0x3==_0x45585e){const _0x251c85=_0x598bdc['_findSuggestions'](_0x2e41c8,'insertion')['filter'](({suggestion:_0x56bd9f,meta:_0x3ad782})=>_0x3ad782['isOwn']&&'convertInlineImageToBlock'==_0x56bd9f['subType']);if(_0x251c85['length']>0x1&&_0x494206['end']['isEqual'](_0x2e41c8['start']))return!0x0;if(0x1==_0x251c85['length']&&(_0x2e41c8['start']['isEqual'](_0x494206['end'])||_0x2e41c8['end']['isEqual'](_0x494206['start'])))return!0x0;}if(0x3==_0x4ed9a9&&0x3==_0x45585e&&_0x2e41c8['start']['isBefore'](_0x494206['start'])){const _0x426198=_0x2e41c8['end']['nodeAfter'],_0x1f8302=_0x494206['start']['nodeBefore'];return _0x3e5ed9['isBlockImage'](_0x426198)&&_0x426198===_0x1f8302;}return!0x1;}function _0x6674e0(_0x320f95,_0x42dfa4){return _0x2e401b(_0x320f95,_0x42dfa4)?[_0x320f95,_0x42dfa4]:_0x2e401b(_0x42dfa4,_0x320f95)?[_0x42dfa4,_0x320f95]:null;}_0x592265['plugins']['has']('ImageResize')&&(_0x598bdc['enableDefaultAttributesIntegration']('resizeImage'),_0x598bdc['registerBlockAttribute']('resizedWidth'),_0x598bdc['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x543651,'FORMAT_IMAGE_SIZE'))),_0x592265['plugins']['has']('ImageTextAlternativeEditing')&&(_0x598bdc['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x598bdc['registerBlockAttribute']('alt')),_0x598bdc['descriptionFactory']['registerDescriptionCallback'](_0x3dd631=>{if(!!_0x3908ec['find'](({type:_0x42a026,subType:_0x1abc19})=>_0x3dd631['type']==_0x42a026&&_0x3dd631['subType']==_0x1abc19))return _0x3dd631['previous']?{}:void 0x0;}),_0x598bdc['descriptionFactory']['registerDescriptionCallback'](_0x5d02a3=>{if('insertion'==_0x5d02a3['type']||'deletion'==_0x5d02a3['type']){const _0x5ca115=_0x5d02a3['getContainedElement']();if(_0x5ca115&&_0x5ca115['is']('element','caption'))return{'type':'insertion'==_0x5d02a3['type']?'addObject':'removeObject','element':_0x5ca115,'quantity':0x1};}}),_0x598bdc['descriptionFactory']['registerDescriptionCallback'](_0xcd9794=>'formatBlock'==_0xcd9794['type']&&'convertInlineImageToBlock'==_0xcd9794['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xcd9794['type']&&'convertBlockImageToInline'==_0xcd9794['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x598bdc['descriptionFactory']['registerDescriptionCallback'](_0x1bc054=>{if('attribute'!=_0x1bc054['type'])return;const {data:_0x286507}=_0x1bc054;if(!_0x286507||'alt'!=_0x286507['key'])return;const _0x47b9a5=_0x286507['newValue'];return _0x47b9a5?{'type':'format','content':o(_0x543651,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x47b9a5+'\x22')}:{'type':'format','content':o(_0x543651,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f6f74=this['editor'],_0x1222c8=_0x3f6f74['locale'];_0x3f6f74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f7269=>{if('formatBlock'!=_0x3f7269['type']&&'formatInline'!=_0x3f7269['type'])return;const {data:_0x282e3c}=_0x3f7269;if(_0x282e3c){if('imageTextAlternative'==_0x282e3c['commandName']){const _0x4a7e0f=_0x282e3c['commandParams'][0x0]['newValue'];return _0x4a7e0f?{'type':'format','content':o(_0x1222c8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a7e0f+'\x22')}:{'type':'format','content':o(_0x1222c8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x282e3c['commandName']){const _0x97bcf9=_0x282e3c['commandParams'][0x0]['width'];return _0x97bcf9?{'type':'format','content':o(_0x1222c8,'*Set\x20image\x20width:*\x20%0',_0x97bcf9)}:{'type':'format','content':o(_0x1222c8,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x3415fa{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x26e241=this['editor']['locale'],_0x5e8fde=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e8fde['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5e8fde['registerBlockAttribute']('src'),_0x5e8fde['descriptionFactory']['registerDescriptionCallback'](_0x16d5c5=>{if('attribute'!=_0x16d5c5['type'])return;const {data:_0x411c66}=_0x16d5c5;return _0x411c66&&'src'==_0x411c66['key']?_0x411c66['newValue']&&_0x411c66['oldValue']?{'type':'format','content':o(_0x26e241,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4551a5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4551a5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4551a5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4551a5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4551a5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22da49=this['editor'],_0x323907=_0x22da49['locale'];_0x22da49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cc606=>{if('formatBlock'!=_0x1cc606['type']&&'formatInline'!=_0x1cc606['type'])return;const {data:_0x2f3d6d}=_0x1cc606;if(!_0x2f3d6d||'replaceImageSource'!=_0x2f3d6d['commandName'])return;return{'type':'format','content':o(_0x323907,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x3415fa{['afterInit'](){const _0x395ba0=this['editor'];if(!_0x395ba0['plugins']['has']('ImageStyleEditing'))return;const _0x13ebb8=_0x395ba0['plugins']['get']('TrackChangesEditing'),_0x42733e=_0x395ba0['plugins']['get']('ImageUtils'),_0x1ab19c={};_0x13ebb8['enableCommand']('imageStyle',(_0x4c1a94,_0x488905)=>{const _0x3ad8c1=_0x395ba0['plugins']['get']('Users')['me'],_0x5659e2=_0x395ba0['commands']['get']('imageStyle');let _0x44108d=_0x42733e['getClosestSelectedImageElement'](_0x395ba0['model']['document']['selection']),_0x5420a9=_0x395ba0['model']['createRangeOn'](_0x44108d),_0x219c2a=_0x5659e2['value'];if(_0x219c2a==_0x488905['value'])return;const _0x3f025e={'commandName':'imageStyle','commandParams':[_0x488905],'formatGroupId':_0x8d9c92()};_0x395ba0['model']['change'](()=>{if(_0x13ebb8['getSuggestions']()['filter'](_0x2c3377=>_0x2c3377['isInContent']&&_0x3ad8c1==_0x2c3377['author']&&('formatBlock'==_0x2c3377['type']||'formatInline'==_0x2c3377['type'])&&('imageStylePreApply'==_0x2c3377['subType']||'imageStylePostApply'==_0x2c3377['subType'])&&_0x2c3377['getFirstRange']()['isEqual'](_0x5420a9))['forEach'](_0x1e4247=>_0x13ebb8['discardSuggestion'](_0x1e4247['head'])),_0x44108d=_0x42733e['getClosestSelectedImageElement'](_0x395ba0['model']['document']['selection']),_0x5420a9=_0x395ba0['model']['createRangeOn'](_0x44108d),_0x5659e2['refresh'](),_0x395ba0['commands']['get']('imageTypeInline')['refresh'](),_0x395ba0['commands']['get']('imageTypeBlock')['refresh'](),_0x219c2a=_0x5659e2['value'],_0x219c2a!=_0x488905['value'])return _0x42733e['isInlineImage'](_0x44108d)&&_0x5659e2['shouldConvertImageType'](_0x488905['value'],_0x44108d)?(_0x4c1a94({..._0x488905,'setImageSizes':!0x1}),_0x44108d=_0x42733e['getClosestSelectedImageElement'](_0x395ba0['model']['document']['selection']),void _0x13ebb8['markBlockFormat'](_0x44108d,{..._0x3f025e,'commandReversedParams':[{'value':_0x219c2a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x42733e['isBlockImage'](_0x44108d)?_0x13ebb8['markBlockFormat'](_0x44108d,_0x3f025e,[],'imageStylePostApply'):_0x13ebb8['markInlineFormat'](_0x5420a9,_0x3f025e,'imageStylePostApply'));});});for(const _0x1e1acb of _0x395ba0['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1ab19c[_0x1e1acb['name']]=_0x1e1acb['title']['toLowerCase']();_0x13ebb8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x13ebb8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x13ebb8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x13ebb8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xc53d16])=>{_0x42733e['setImageNaturalSizeAttributes'](_0xc53d16['getContainedElement']());}),_0x13ebb8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x16cbfe,_0x52f9ac)=>{_0x13ebb8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x16cbfe,{'commandName':_0x52f9ac['commandName'],'commandParams':_0x52f9ac['commandReversedParams']});}),_0x13ebb8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x27a853,_0xbe4a5c){if(_0x419d72(_0x27a853,_0xbe4a5c))return[_0x27a853,_0xbe4a5c];if(_0x419d72(_0xbe4a5c,_0x27a853))return[_0xbe4a5c,_0x27a853];return null;});const _0x30cded=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x419d72(_0x4ccc3e,_0x5ec4e1){const _0x437898=_0x30cded['findIndex'](({type:_0x3259ec,subType:_0x455796})=>_0x4ccc3e['type']==_0x3259ec&&_0x4ccc3e['subType']==_0x455796),_0x43d77f=_0x30cded['findIndex'](({type:_0x1098a8,subType:_0x5048ba})=>_0x5ec4e1['type']==_0x1098a8&&_0x5ec4e1['subType']==_0x5048ba);if(_0x437898<0x0||_0x43d77f<0x0)return!0x1;const _0x3d5771=_0x4ccc3e['getFirstRange'](),_0x2f626d=_0x5ec4e1['getFirstRange']();if((0x0==_0x437898||0x1==_0x437898)&&0x2==_0x43d77f&&_0x3d5771['isIntersecting'](_0x2f626d))return!0x0;if(0x2==_0x437898&&0x3==_0x43d77f){const _0x3dc75a=_0x13ebb8['_findSuggestions'](_0x3d5771,'insertion')['filter'](({suggestion:_0x4db39d,meta:_0x5417ee})=>_0x5417ee['isOwn']&&'convertInlineImageToBlock'==_0x4db39d['subType']);if(_0x3dc75a['length']>0x1&&_0x2f626d['end']['isEqual'](_0x3d5771['start']))return!0x0;if(0x1==_0x3dc75a['length']&&(_0x3d5771['start']['isEqual'](_0x2f626d['end'])||_0x3d5771['end']['isEqual'](_0x2f626d['start'])))return!0x0;}if(0x3==_0x437898&&0x3==_0x43d77f&&_0x3d5771['start']['isBefore'](_0x2f626d['start'])){const _0x24b02e=_0x3d5771['end']['nodeAfter'],_0x31ffef=_0x2f626d['start']['nodeBefore'];return _0x42733e['isBlockImage'](_0x24b02e)&&_0x24b02e===_0x31ffef;}return!0x1;}_0x395ba0['model']['document']['registerPostFixer'](()=>{let _0xbfdd16=!0x1;const _0x1ae202=Array['from'](_0x395ba0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b513a,data:_0x5dee0e}of _0x1ae202){const {group:_0x507b0d,type:_0x333e9e,subType:_0x4a2c0f,id:_0x1efe3d}=_0x13ebb8['_splitMarkerName'](_0x1b513a);if('suggestion'==_0x507b0d&&_0x13ebb8['hasSuggestion'](_0x1efe3d)){if('formatBlock'==_0x333e9e&&('imageStylePreApply'==_0x4a2c0f||'imageStylePostApply'==_0x4a2c0f)){const _0x4d170c=_0x13ebb8['getSuggestion'](_0x1efe3d);if(_0x5dee0e['newRange']){const _0x542e99=_0x4d170c['getFirstRange']()['getContainedElement']();if(_0x42733e['isBlockImage'](_0x542e99))continue;_0x13ebb8['discardSuggestion'](_0x4d170c),_0xbfdd16=!0x0;}}if('insertion'==_0x333e9e&&'imageCaption'==_0x4a2c0f&&!_0x5dee0e['newRange']){const _0x2914aa=_0x13ebb8['getSuggestion'](_0x1efe3d);_0x2914aa['next']&&_0x2914aa['next']['isInContent']&&(_0x13ebb8['discardSuggestion'](_0x2914aa['next']),_0xbfdd16=!0x0);}}}return _0xbfdd16;}),this['_registerLegacyDescription'](_0x1ab19c);}['_registerLegacyDescription'](_0x2f1d08){const _0xf27593=this['editor'],_0x5a853d=_0xf27593['locale'];_0xf27593['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b2144=>{if('formatBlock'!=_0x5b2144['type']&&'formatInline'!=_0x5b2144['type'])return;const {data:_0x4e7705}=_0x5b2144;if(!_0x4e7705||'imageStyle'!=_0x4e7705['commandName'])return;const _0x48da0c=_0x4e7705['commandParams'][0x0]['value'];return _0x4b53c1('side'===_0x48da0c?o(_0x5a853d,'FORMAT_SIDE_IMAGE'):_0x2f1d08[_0x48da0c]||_0x48da0c);function _0x4b53c1(_0xc13c21){return{'type':'format','content':o(_0x5a853d,'*Format:*\x20%0',_0xc13c21)};}});}}class at extends _0x3415fa{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5522d5){super(_0x5522d5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x35a256=this['editor'],_0xd720c8=_0x35a256['commands']['get']('importWord'),_0x586af4=_0x35a256['commands']['get']('trackChanges');_0xd720c8&&(_0xd720c8['on']('execute',(_0x3633c5,[,_0x40d68b])=>{this['_trackChangesValueDuringImport']=_0x586af4['value'],_0x40d68b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd720c8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd720c8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x586af4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x35a256['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3b761c,_0x3108f1){const {suggestions:_0x43cbe3}=_0x3108f1,_0x4b50ce=this['editor']['commands']['get']('trackChanges'),_0x3a5a43=_0x4b50ce['value'];this['_trackChangesValueDuringImport']!==_0x3a5a43&&(_0x4b50ce['execute'](),this['_trackChangesExecuted']=!0x0),_0x43cbe3&&_0x43cbe3['forEach'](({id:_0x1f2125,type:_0x2dfd96,author:_0x407a26,created_at:_0xe045c})=>{const _0x425357={'id':_0x1f2125,'type':_0x2dfd96,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x407a26,'createdAt':_0xe045c?new Date(_0xe045c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x425357);});}}class ct extends _0x3415fa{['afterInit'](){const _0x5cfbcc=this['editor'],_0x132980=_0x5cfbcc['plugins']['get']('TrackChangesEditing');if(_0x5cfbcc['plugins']['has']('IndentEditing')&&(_0x132980['enableCommand']('indent'),_0x132980['enableCommand']('outdent')),_0x5cfbcc['plugins']['has']('IndentBlock')){for(const _0x34879b of['indentBlock','outdentBlock'])_0x132980['enableDefaultAttributesIntegration'](_0x34879b);}const _0x5adb2b=_0x5cfbcc['locale'];_0x132980['registerBlockAttribute']('blockIndent'),_0x132980['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5adb2b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x583d06=this['editor'],_0x49ae1d=_0x583d06['locale'],_0x1afff3=_0x583d06['plugins']['get']('TrackChangesEditing');_0x1afff3['descriptionFactory']['registerDescriptionCallback'](_0x483aed=>{if('formatBlock'!=_0x483aed['type'])return;const {data:_0x50056b}=_0x483aed;if(!_0x50056b)return;if('indentBlock'!=_0x50056b['commandName']&&'outdentBlock'!=_0x50056b['commandName'])return;const _0x5e5404=_0x483aed['getItems']()[0x0],_0x38ffe5=_0x1afff3['descriptionFactory']['getItemLabel'](_0x5e5404);return'indentBlock'==_0x50056b['commandName']?{'type':'format','content':o(_0x49ae1d,'*Indent:*\x20%0',_0x38ffe5)}:'outdentBlock'==_0x50056b['commandName']?{'type':'format','content':o(_0x49ae1d,'*Outdent:*\x20%0',_0x38ffe5)}:void 0x0;});}}class ut extends _0x3415fa{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x3415fa{['afterInit'](){const _0x1d7c71=this['editor'];if(!_0x1d7c71['plugins']['has']('LinkEditing'))return;const _0x16e597=_0x1d7c71['plugins']['get']('TrackChangesEditing'),_0x4ef043=_0x1d7c71['commands']['get']('link');_0x16e597['enableDefaultAttributesIntegration']('link'),_0x16e597['enableDefaultAttributesIntegration']('unlink'),_0x16e597['registerInlineAttribute']('linkHref');for(const _0x3fdb5d of _0x4ef043['manualDecorators'])_0x16e597['registerInlineAttribute'](_0x3fdb5d['id']),_0x16e597['descriptionFactory']['registerAttributeLabel'](_0x3fdb5d['id'],'link\x20('+_0x3fdb5d['label']['toLowerCase']()+')');_0x16e597['descriptionFactory']['registerDescriptionCallback'](_0x254225=>{if('attribute'!=_0x254225['type'])return;const {data:_0xc08aee}=_0x254225;if(!_0xc08aee||'linkHref'!=_0xc08aee['key'])return;const _0x49dbf5=_0xc08aee['newValue'],_0x906465=_0x1d7c71['locale'];return{'type':'format','content':null==_0x49dbf5?o(_0x906465,'*Remove\x20link*'):o(_0x906465,'*Set\x20link:*\x20%0','\x22'+_0x49dbf5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18f168=this['editor'],_0x112a1b=_0x18f168['locale'];_0x18f168['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2453fe=>{if('formatInline'!=_0x2453fe['type'])return;const {data:_0x1c4c54}=_0x2453fe;if(_0x1c4c54){if('link'==_0x1c4c54['commandName']){const _0x3bc49f=_0x1c4c54['commandParams'][0x0];return{'type':'format','content':o(_0x112a1b,'*Set\x20link:*\x20%0','\x22'+_0x3bc49f+'\x22')};}return'unlink'==_0x1c4c54['commandName']?{'type':'format','content':o(_0x112a1b,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3415fa{['afterInit'](){const _0x2e5060=this['editor'],_0xdf522e=_0x2e5060['locale'];if(!_0x2e5060['plugins']['has']('LegacyListEditing'))return;const _0xb910d0=_0x2e5060['plugins']['get']('TrackChangesEditing'),_0x506595=_0x2e5060['plugins']['has']('LegacyTodoListEditing');function _0x56a9f9(_0x694e8e){return()=>{const _0x2be095=_0x2e5060['model']['document']['selection'],_0x40580e=_0x2e5060['commands']['get'](_0x694e8e);if(_0x40580e['value'])return void _0x2e5060['execute']('paragraph',{});const _0x52fc7b=_0x694e8e['slice'](0x0,-0x4),_0x2d663b=function(_0x5a6f30,_0x129237,_0x13cfd1){let _0x34c6ed=Array['from'](_0x5a6f30)['filter'](_0x5de3b1=>function(_0x1894e7,_0x4bbb4e){return _0x4bbb4e['checkChild'](_0x1894e7['parent'],'listItem')&&!_0x4bbb4e['isObject'](_0x1894e7);}(_0x5de3b1,_0x13cfd1));_0x34c6ed=_0x34c6ed['filter'](_0x4be1aa=>!_0x4be1aa['is']('element','listItem')||_0x4be1aa['getAttribute']('listType')!=_0x129237);const _0x128a2b=new Set();for(const _0x1fabb3 of _0x34c6ed)_0x1fabb3['is']('element','listItem')?_0x128a2b['add'](fe(_0x1fabb3)):_0x128a2b['add'](_0x1fabb3);return Array['from'](_0x128a2b);}(_0x2be095['getSelectedBlocks'](),_0x52fc7b,_0x2e5060['model']['schema']);_0x2e5060['model']['change'](()=>{for(const _0x3d5514 of _0x2d663b)_0xb910d0['markBlockFormat'](_0x3d5514,{'commandName':_0x694e8e,'commandParams':[{'forceValue':!_0x40580e['value']}],'formatGroupId':'blockName'},ue(_0x3d5514));});};}function _0x303f77(_0x4a6ee7){return()=>{const _0x1de274=function(_0x543ba1){let _0x4b177c=Array['from'](_0x543ba1);const _0x5be598=_0x4b177c['findIndex'](_0x386172=>'listItem'!=_0x386172['name']);return _0x5be598>-0x1&&(_0x4b177c=_0x4b177c['slice'](0x0,_0x5be598)),_0x4b177c;}(_0x2e5060['model']['document']['selection']['getSelectedBlocks']()),_0x36e441=_0x2e5060['model']['createRange'](_0x2e5060['model']['createPositionAt'](_0x1de274[0x0],'before'),_0x2e5060['model']['createPositionAt'](_0x1de274[_0x1de274['length']-0x1],'end'));_0x2e5060['model']['change'](()=>{_0xb910d0['markBlockFormat'](_0x36e441,{'commandName':_0x4a6ee7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x516b1f){const _0x4e0dbf=new Set();for(const _0x4f9608 of _0x516b1f){let _0x3bd719=_0x4f9608['nextSibling'];for(;_0x3bd719&&_0x3bd719['getAttribute']('listIndent')>_0x4f9608['getAttribute']('listIndent');)_0x4e0dbf['add'](_0x3bd719),_0x3bd719=_0x3bd719['nextSibling'];}return Array['from'](_0x4e0dbf);}(_0x1de274));});};}_0xb910d0['enableCommand']('numberedList',_0x56a9f9('numberedList')),_0xb910d0['enableCommand']('bulletedList',_0x56a9f9('bulletedList')),_0x506595&&_0xb910d0['enableCommand']('todoList',_0x56a9f9('todoList')),_0xb910d0['enableCommand']('indentList',_0x303f77('indentList')),_0xb910d0['enableCommand']('outdentList',_0x303f77('outdentList')),_0x506595&&_0xb910d0['enableCommand']('checkTodoList',()=>{const _0x4c51eb=_0x2e5060['commands']['get']('checkTodoList'),_0xf7dc00=Array['from'](_0x4c51eb['_selectedElements']);_0xf7dc00['filter'](_0x322d1b=>_0x322d1b['getAttribute']('todoListChecked')!=_0x4c51eb['value']),_0x2e5060['model']['change'](()=>{for(const _0x1e6c64 of _0xf7dc00)_0xb910d0['markBlockFormat'](_0x1e6c64,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4c51eb['value']}]});});}),_0xb910d0['descriptionFactory']['registerElementLabel']('listItem',_0x5914a6=>o(_0xdf522e,'ELEMENT_LIST_ITEM',_0x5914a6)),_0xb910d0['descriptionFactory']['registerDescriptionCallback'](_0x479694=>{if('formatBlock'!=_0x479694['type']&&'formatInline'!=_0x479694['type'])return;const {data:_0x65106b}=_0x479694;if(_0x65106b){if('numberedList'==_0x65106b['commandName']||'bulletedList'==_0x65106b['commandName']||'todoList'==_0x65106b['commandName'])switch(_0x65106b['commandName']['replace']('List','')){case'bulleted':return _0x3a1932(o(_0xdf522e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a1932(o(_0xdf522e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a1932(o(_0xdf522e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x65106b['commandName'])return{'type':'format','content':o(_0xdf522e,'*Indent:*\x20%0',o(_0xdf522e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x65106b['commandName'])return{'type':'format','content':o(_0xdf522e,'*Outdent:*\x20%0',o(_0xdf522e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x65106b['commandName'])return _0x65106b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xdf522e,'*Check\x20item*')}:{'type':'format','content':o(_0xdf522e,'*Uncheck\x20item*')};}function _0x3a1932(_0x12734f){return{'type':'format','content':o(_0xdf522e,'*Change\x20to:*\x20%0',_0x12734f)};}});}}function fe(_0x3c5aaf){const _0x4a7d5f=_0x3c5aaf['getAttribute']('listIndent');if(0x0==_0x4a7d5f)return _0x3c5aaf;let _0x482303=_0x3c5aaf;for(;_0x3c5aaf['previousSibling']&&_0x3c5aaf['previousSibling']['is']('element','listItem');){const _0x3f99d0=_0x3c5aaf['previousSibling']['getAttribute']('listIndent');if(_0x3f99d0==_0x4a7d5f)_0x482303=_0x3c5aaf['previousSibling'];else{if(_0x3f99d0<_0x4a7d5f)break;}_0x3c5aaf=_0x3c5aaf['previousSibling'];}return _0x482303;}function ue(_0x1a9065){const _0xf22129=[];if(_0x1a9065['is']('element','listItem')&&_0x1a9065['getAttribute']('listIndent')>0x0){let _0x27fe6a=_0x1a9065['nextSibling'];for(;_0x27fe6a&&'listItem'==_0x27fe6a['name']&&_0x27fe6a['getAttribute']('listIndent')==_0x1a9065['getAttribute']('listIndent');)_0xf22129['push'](_0x27fe6a),_0x27fe6a=_0x27fe6a['nextSibling'];}return _0xf22129;}class W extends _0x3415fa{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x483f32=this['editor']['config']['get']('list.properties'),_0x432a10=this['editor']['plugins']['get']('TrackChangesEditing');_0x483f32['styles']&&_0x432a10['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x483f32['reversed']&&_0x432a10['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x483f32['startIndex']&&_0x432a10['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x432a10['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3c9da8,_0x52fb99={}){const _0x38bfaf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24dc9b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x38bfaf['markMultiRangeBlockFormat'](_0x24dc9b,{'commandName':'listStyle','commandParams':[{'type':_0x52fb99['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x410270,_0x26ae7f={}){const _0x1601c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30ab12=this['_getSuggestionBlocks'](_0x16fce7=>_0x16fce7['is']('element','listItem')&&'numbered'===_0x16fce7['getAttribute']('listType'));if(_0x30ab12['length']<0x1)return;const _0x31cff1=_0x30ab12['map'](_0x3930be=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3930be,'before'),this['editor']['model']['createPositionAt'](_0x3930be,0x0)));this['editor']['model']['change'](()=>{_0x1601c8['markMultiRangeBlockFormat'](_0x31cff1,{'commandName':'listReversed','commandParams':[{'reversed':_0x26ae7f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1cde3c,_0x5b4851={}){const _0x5df7a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x410148=this['_getSuggestionBlocks'](_0x4a09f9=>_0x4a09f9['is']('element','listItem')&&'numbered'===_0x4a09f9['getAttribute']('listType'));if(_0x410148['length']<0x1)return;const _0x43f74f=_0x410148['map'](_0x47d294=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x47d294,'before'),this['editor']['model']['createPositionAt'](_0x47d294,0x0)));this['editor']['model']['change'](()=>{_0x5df7a5['markMultiRangeBlockFormat'](_0x43f74f,{'commandName':'listStart','commandParams':[{'startIndex':_0x5b4851['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5b73db){if('formatBlock'!=_0x5b73db['type']&&'formatInline'!=_0x5b73db['type'])return;const _0x31da69=this['editor']['locale'],{data:_0x1fb52d}=_0x5b73db;if(!_0x1fb52d)return;let _0x39a569,_0x1aed9e;switch(_0x1fb52d['commandName']){case'listStyle':_0x39a569='*Change\x20to:*\x20%0',_0x1aed9e={'type':'format','content':o(_0x31da69,_0x39a569,o(_0x31da69,this['_getTranslationKeyForListStyle'](_0x1fb52d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x39a569=_0x1fb52d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1aed9e={'type':'format','content':o(_0x31da69,_0x39a569)};break;case'listStart':_0x39a569='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1aed9e={'type':'format','content':o(_0x31da69,_0x39a569,_0x1fb52d['commandParams'][0x0]['startIndex'])};}return _0x1aed9e;}['_getSuggestionBlocksForListStyle'](){const _0x265aeb=this['editor']['plugins']['get']('LegacyListUtils');let _0x5c5cc4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5c5cc4[0x0]?.['is']('element','listItem')&&_0x5c5cc4['unshift'](..._0x265aeb['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5c5cc4[_0x5c5cc4['length']-0x1]?.['is']('element','listItem')&&_0x5c5cc4['push'](..._0x265aeb['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5c5cc4=[...new Set(_0x5c5cc4)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5c5cc4=_0x5c5cc4['filter'](_0x4eb7c6=>_0x4eb7c6['is']('element','listItem'))),_0x5c5cc4;}['_getSuggestionBlocks'](_0x20b950){const _0xe527c2=this['editor']['plugins']['get']('LegacyListUtils');let _0x296450=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x20b950)['map'](_0x4b815c=>{const _0x53140f=this['editor']['model']['createPositionAt'](_0x4b815c,0x0);return[..._0xe527c2['getSiblingNodes'](_0x53140f,'backward'),..._0xe527c2['getSiblingNodes'](_0x53140f,'forward')];})['flat']();return _0x296450=[...new Set(_0x296450)],_0x296450;}['_getTranslationKeyForListStyle'](_0x2b69e1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2b69e1)||'default')['toUpperCase']()+'_LIST_'+_0x2b69e1['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x3415fa{['afterInit'](){const _0x1a4f05=this['editor'];if(!_0x1a4f05['plugins']['has']('MediaEmbedEditing'))return;const _0x3971b4=_0x1a4f05['plugins']['get']('TrackChangesEditing'),_0x3b20d8=_0x1a4f05['locale'];_0x3971b4['enableCommand']('mediaEmbed'),_0x3971b4['descriptionFactory']['registerElementLabel']('media',_0x51d42e=>o(_0x3b20d8,'ELEMENT_MEDIA',_0x51d42e)),_0x1a4f05['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3ea2fc,{writer:_0x27eb60,options:_0x19a60d})=>{if(_0x19a60d['showSuggestionHighlights'])return _0x27eb60['createEmptyElement']('div');},'converterPriority':'high'}),_0x1a4f05['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2cc572,_0x36d42a,_0x3d0787)=>{_0x3d0787['options']['showSuggestionHighlights']&&_0x2cc572['stop']();},{'priority':'high'});}}class mt extends _0x3415fa{['afterInit'](){const _0x251291=this['editor'];_0x251291['plugins']['has']('MentionEditing')&&_0x251291['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3415fa{['afterInit'](){const _0x25e474=this['editor'];if(!_0x25e474['plugins']['has']('MergeFieldsEditing'))return;_0x25e474['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x25e474['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x5c1c3a=_0x25e474['plugins']['get']('TrackChangesEditing'),_0x49177c=_0x25e474['locale'];_0x5c1c3a['descriptionFactory']['registerElementLabel']('mergeField',_0x4113e8=>o(_0x49177c,'ELEMENT_MERGE_FIELD',_0x4113e8)),_0x5c1c3a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x41c8af=>o(_0x49177c,'ELEMENT_MERGE_FIELD',_0x41c8af)),_0x5c1c3a['descriptionFactory']['registerDescriptionCallback'](_0x15a772=>{if('insertion'!=_0x15a772['type']&&'deletion'!=_0x15a772['type'])return;const _0x473d03=_0x15a772['getContainedElement']();if(null==_0x473d03)return;if(!_0x473d03['is']('element','mergeField')&&!_0x473d03['is']('element','mergeFieldBlock'))return;const _0x5d6d6e=_0x25e474['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x473d03['getAttribute']('id'));return'insertion'==_0x15a772['type']?{'type':'insertion','content':o(_0x49177c,'*Insert:*\x20%0','\x22'+_0x5d6d6e+'\x22\x20'+o(_0x49177c,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x49177c,'*Remove:*\x20%0','\x22'+_0x5d6d6e+'\x22\x20'+o(_0x49177c,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x3415fa{['afterInit'](){const _0x5807af=this['editor'],_0x3767a9=_0x5807af['plugins']['get']('TrackChangesEditing');_0x5807af['plugins']['has']('MultiLevelList')&&(_0x3767a9['enableDefaultAttributesIntegration']('multiLevelList'),_0x3767a9['registerBlockAttribute']('listMarkerStyle'),_0x3767a9['descriptionFactory']['registerDescriptionCallback'](_0x31806a=>this['handleDescriptions'](_0x31806a)));}['handleDescriptions'](_0x403fd7){const _0x3504dc=this['editor']['locale'],{data:_0x47dccf}=_0x403fd7,_0x5884c0={'type':'format','content':''};if(_0x47dccf&&'listMarkerStyle'==_0x47dccf['key']){if(!_0x47dccf['oldValue'])return{'type':'format','content':o(_0x3504dc,'*Set\x20format:*\x20%0',o(_0x3504dc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x47dccf['newValue']+')'};if(!_0x47dccf['newValue']){let _0x23de59=_0x403fd7['head'];for(;_0x23de59;){if(_0x23de59['data']&&'listType'==_0x23de59['data']['key']&&_0x23de59['data']['newValue'])return _0x5884c0;_0x23de59=_0x23de59['next'];}return{'type':'format','content':o(_0x3504dc,'*Remove\x20format:*\x20%0',o(_0x3504dc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x47dccf['oldValue']+')'};}}}}class kt extends _0x3415fa{['afterInit'](){const _0x44fd90=this['editor'];if(!_0x44fd90['plugins']['has']('PageBreakEditing'))return;_0x44fd90['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x50e500=_0x44fd90['plugins']['get']('TrackChangesEditing'),_0x5d7956=_0x44fd90['locale'];_0x50e500['descriptionFactory']['registerElementLabel']('pageBreak',_0x1745e2=>o(_0x5d7956,'ELEMENT_PAGE_BREAK',_0x1745e2));}}class bt extends _0x3415fa{['afterInit'](){const _0x3b849a=this['editor'];if(!_0x3b849a['plugins']['has']('Paragraph'))return;const _0x52b940=_0x3b849a['locale'],_0x5b20cf=_0x3b849a['plugins']['get']('TrackChangesEditing');_0x5b20cf['descriptionFactory']['registerElementLabel']('paragraph',_0x21ba79=>o(_0x52b940,'ELEMENT_PARAGRAPH',_0x21ba79)),_0x5b20cf['enableDefaultAttributesIntegration']('paragraph'),_0x5b20cf['enableCommand']('insertParagraph'),_0x3b849a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3b849a),{'priority':'highest'}),_0x3b849a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1002f4,_0x56ce23,_0x410414)=>{_0x410414['options']['showSuggestionHighlights']&&nr(_0x3b849a,{'showActiveMarker':!0x1})(_0x1002f4,_0x56ce23,_0x410414);},{'priority':'highest'});const _0x4275b4=_0x5b20cf['descriptionFactory'];_0x4275b4['registerDescriptionCallback'](_0x23c369=>{if('insertion'!==_0x23c369['type'])return;const {start:_0x40841e,end:_0x3a6863}=_0x23c369['getFirstRange']();if(!_0x40841e['isTouching'](_0x3a6863)||!_0x40841e['nodeAfter'])return;const _0x567aa0=_0x3b849a['model']['schema'],_0x5975d7=_0x40841e['nodeAfter'];return _0x567aa0['isBlock'](_0x5975d7)&&!_0x567aa0['isLimit'](_0x5975d7)&&_0x567aa0['checkChild'](_0x5975d7,'$text')?{'type':'insertion','content':o(_0x52b940,'*Insert:*\x20%0',_0x4275b4['getItemLabel'](_0x5975d7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e760e=this['editor'],_0x56498f=_0x2e760e['locale'];_0x2e760e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x986fd1=>{if('formatBlock'!=_0x986fd1['type'])return;const {data:_0x258f98}=_0x986fd1;return _0x258f98&&'paragraph'==_0x258f98['commandName']?{'type':'format','content':o(_0x56498f,'*Change\x20to:*\x20%0',o(_0x56498f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xa4859f,{showActiveMarker:_0x3fac34=!0x0}={}){return(_0x112459,_0x5bfc38,_0x485243)=>{const _0x44de75=_0xa4859f['plugins']['get']('TrackChangesEditing'),_0x1774a5=_0x5bfc38['markerRange']['start'],_0x15f04b=_0x5bfc38['markerRange']['end'],_0x4bee8e=_0xa4859f['model']['schema'];if(!_0x1774a5['isTouching'](_0x15f04b)||!_0x1774a5['nodeAfter'])return;const _0x124c8f=_0x1774a5['nodeAfter'];if(_0x4bee8e['isBlock'](_0x124c8f)&&!_0x4bee8e['isLimit'](_0x124c8f)&&_0x4bee8e['checkChild'](_0x124c8f,'$text')){if(!_0x485243['consumable']['consume'](_0x5bfc38['markerRange'],_0x112459['name']))return;const {authorId:_0x3dfd7e}=_0x44de75['_splitMarkerName'](_0x5bfc38['markerName']),_0x1acd47=_0x485243['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3dfd7e}),_0x2abd3b=_0x485243['mapper']['toViewPosition'](_0x15f04b);_0x3fac34&&_0x44de75['activeMarkers']['includes'](_0x5bfc38['markerName'])&&_0x485243['writer']['addClass']('ck-suggestion-marker--active',_0x1acd47),_0x485243['writer']['insert'](_0x2abd3b,_0x1acd47),_0x485243['mapper']['bindElementToMarker'](_0x1acd47,_0x5bfc38['markerName']);}};}class wt extends _0x3415fa{['afterInit'](){const _0x3c48ce=this['editor'];if(!_0x3c48ce['plugins']['has']('RemoveFormatEditing'))return;_0x3c48ce['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x106deb=this['editor'];_0x106deb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56cc83=>{if('formatBlock'!=_0x56cc83['type']&&'formatInline'!=_0x56cc83['type'])return;const {data:_0x3db00f}=_0x56cc83;return _0x3db00f&&'removeFormat'==_0x3db00f['commandName']?{'type':'format','content':o(_0x106deb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3415fa{['afterInit'](){const _0x3ec8a2=this['editor'];if(!_0x3ec8a2['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3f9a61=_0x3ec8a2['plugins']['get']('TrackChangesEditing');_0x3f9a61['enableCommand']('goToPreviousRestrictedEditingException'),_0x3f9a61['enableCommand']('goToNextRestrictedEditingException');const _0x3efcee=_0x3ec8a2['plugins']['get']('RestrictedEditingModeEditing');_0x3efcee['enableCommand']('trackChanges'),_0x3efcee['enableCommand']('acceptSuggestion'),_0x3efcee['enableCommand']('discardSuggestion'),_0x3efcee['enableCommand']('acceptAllSuggestions'),_0x3efcee['enableCommand']('discardAllSuggestions'),_0x3efcee['enableCommand']('acceptSelectedSuggestions'),_0x3efcee['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3415fa{static get['requires'](){return[_0x122a71];}['init'](){const _0x1d6376=this['editor'],_0x16105d=_0x1d6376['plugins']['get']('TrackChangesEditing');_0x16105d['enableCommand']('shiftEnter'),_0x1d6376['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x1d6376),{'priority':'high'}),_0x1d6376['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x1d6376),{'priority':'high'}),_0x1d6376['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x249150,_0x11026a,_0x533e83)=>{_0x533e83['options']['showSuggestionHighlights']&&ge(_0x1d6376,{'showActiveMarker':!0x1})(_0x249150,_0x11026a,_0x533e83);}),_0x16105d['descriptionFactory']['registerElementLabel']('softBreak',_0x2d6333=>o(_0x1d6376['locale'],'ELEMENT_LINE_BREAK',_0x2d6333));}}function ge(_0x281cff,{showActiveMarker:_0x5a6549=!0x0}={}){return(_0x1d1c84,_0x3165ec,_0x1a5e96)=>{const _0x3f9def=_0x281cff['plugins']['get']('TrackChangesEditing');if(!_0x1a5e96['consumable']['test'](_0x3165ec['markerRange'],_0x1d1c84['name']))return;const _0x48a36b=_0x281cff['model'];for(const _0x476c8f of _0x3165ec['markerRange']['getItems']()){if(!_0x476c8f['is']('element','softBreak'))continue;const _0x5ab0eb='deletion'==_0x3165ec['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2a2a03}=_0x3f9def['_splitMarkerName'](_0x3165ec['markerName']),_0xf8262e=_0x1a5e96['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5ab0eb,'data-author-id':_0x2a2a03}),_0x33862f=_0x1a5e96['mapper']['toViewPosition'](_0x48a36b['createPositionBefore'](_0x476c8f));_0x5a6549&&_0x3f9def['activeMarkers']['includes'](_0x3165ec['markerName'])&&_0x1a5e96['writer']['addClass']('ck-suggestion-marker--active',_0xf8262e),_0x1a5e96['writer']['insert'](_0x33862f,_0xf8262e),_0x1a5e96['mapper']['bindElementToMarker'](_0xf8262e,_0x3165ec['markerName']);}};}class St extends _0x3415fa{['afterInit'](){const _0xb5bfde=this['editor'],_0x278af1=_0xb5bfde['model'],_0xa01c0c=_0xb5bfde['locale'];if(!_0xb5bfde['plugins']['has']('StandardEditingModeEditing'))return;const _0x5d4440=_0xb5bfde['plugins']['get']('TrackChangesEditing'),_0x26c0b6='restrictedEditingException',_0x449af2=_0xb5bfde['commands']['get'](_0x26c0b6);_0x5d4440['enableCommand'](_0x26c0b6,(_0x2ce79c,_0x2b6038={})=>{const _0x131ded=_0x278af1['document']['selection'];if(_0x131ded['isCollapsed'])return void _0x2ce79c(_0x2b6038);const _0xc33f56=void 0x0!==_0x2b6038['forceValue']?_0x2b6038['forceValue']:!_0x449af2['value'];_0x278af1['change'](()=>{const _0x1cc28b=Array['from'](_0x131ded['getRanges']());for(const _0x43a914 of _0x1cc28b){const _0x2c9f96=_0xc33f56?[_0x43a914]:io(_0x26c0b6,_0x43a914,_0x278af1);for(const _0x4feb97 of _0x2c9f96)_0x5d4440['markInlineFormat'](_0x4feb97,{'commandName':_0x26c0b6,'commandParams':[{'forceValue':_0xc33f56}]});}});}),_0x5d4440['descriptionFactory']['registerDescriptionCallback'](_0x10f12c=>{if('formatBlock'!=_0x10f12c['type']&&'formatInline'!=_0x10f12c['type'])return;const {data:_0x336486}=_0x10f12c;return _0x336486&&_0x336486['commandName']==_0x26c0b6?_0x336486['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa01c0c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xa01c0c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x3415fa{['afterInit'](){const _0x2a15e7=this['editor'];if(!_0x2a15e7['plugins']['has']('Style')||!_0x2a15e7['plugins']['has']('DataSchema'))return;const _0x3bc9f6=_0x2a15e7['plugins']['get']('TrackChangesEditing'),_0x10f9a1=_0x2a15e7['locale'],_0x140c04=_0x2a15e7['config']['get']('style')||{},_0x25186c=_0x2a15e7['plugins']['get']('GeneralHtmlSupport'),_0xc588b3=_0x2a15e7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2a15e7['plugins']['get']('DataSchema'),_0x140c04['definitions']);_0x3bc9f6['enableDefaultAttributesIntegration']('style');const _0x1b4596=new Set();for(const _0x316571 of _0xc588b3['block']){const _0x1c4aa0=_0x25186c['getGhsAttributeNameForElement'](_0x316571['element']);_0x1b4596['add'](_0x1c4aa0);}const _0x1f4eb4=new Set();for(const _0x20eb99 of _0xc588b3['inline']){const _0x3cdb08=_0x25186c['getGhsAttributeNameForElement'](_0x20eb99['element']);_0x1f4eb4['add'](_0x3cdb08);for(const _0x49156f of _0x20eb99['ghsAttributes'])_0x1f4eb4['add'](_0x49156f);}for(const _0x539cea of _0x1b4596)_0x3bc9f6['registerBlockAttribute'](_0x539cea),_0x3bc9f6['descriptionFactory']['registerAttributeLabel'](_0x539cea,o(_0x10f9a1,'FORMAT_STYLE'));for(const _0x189086 of _0x1f4eb4)_0x3bc9f6['registerInlineAttribute'](_0x189086),_0x3bc9f6['descriptionFactory']['registerAttributeLabel'](_0x189086,o(_0x10f9a1,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b9773=this['editor'],_0xdc0c2e=_0x5b9773['locale'];_0x5b9773['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43d1d1=>{if('formatBlock'!=_0x43d1d1['type']&&'formatInline'!=_0x43d1d1['type'])return;const {data:_0x2b9f2f}=_0x43d1d1;return _0x2b9f2f&&'style'===_0x2b9f2f['commandName']?_0x2b9f2f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xdc0c2e,'*Set\x20format:*\x20%0',_0x2b9f2f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xdc0c2e,'*Remove\x20format:*\x20%0',_0x2b9f2f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x3415fa{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2b77c6){super(_0x2b77c6),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5ac44d=this['editor'],_0x11a5ab=_0x5ac44d['model']['document']['selection'];if(!_0x5ac44d['plugins']['has']('TableEditing'))return;const _0x554034=_0x5ac44d['locale'],_0x51fc55=_0x5ac44d['plugins']['get']('TrackChangesEditing'),_0x2e743f=_0x5ac44d['plugins']['get']('TableUtils');_0x51fc55['descriptionFactory']['registerElementLabel']('table',_0x20feaa=>o(_0x554034,'ELEMENT_TABLE',_0x20feaa)),this['_setupColumnsRowsFixing'](),_0x51fc55['enableCommand']('insertTable'),_0x51fc55['enableCommand']('selectTableRow'),_0x51fc55['enableCommand']('selectTableColumn');for(const _0x2527b7 of['insertTableRowAbove','insertTableRowBelow']){const _0x4666d4=_0x5ac44d['commands']['get'](_0x2527b7);_0x51fc55['enableCommand'](_0x2527b7,_0x34b272=>{_0x5ac44d['model']['change'](_0x43ee00=>{_0x34b272();const _0x2ff37d='above'===_0x4666d4['order'],_0x562e9a=_0x2e743f['getSelectionAffectedTableCells'](_0x11a5ab),_0x4f2818=_0x2e743f['getRowIndexes'](_0x562e9a),_0x20d676=_0x2ff37d?_0x4f2818['first']-0x1:_0x4f2818['last']+0x1,_0x3b8cc2=_0x562e9a[0x0]['findAncestor']('table'),_0x30334b=_0x2e743f['createTableWalker'](_0x3b8cc2,{'startRow':_0x20d676,'endRow':_0x20d676}),_0x4cf3d7=Array['from'](_0x30334b)['map'](_0x4a96bd=>_0x43ee00['createRangeOn'](_0x4a96bd['cell']));_0x51fc55['markMultiRangeInsertion'](_0x4cf3d7,'tableRow');});});}for(const _0x4ef210 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4ebf2e=_0x5ac44d['commands']['get'](_0x4ef210);_0x51fc55['enableCommand'](_0x4ef210,_0x173315=>{_0x5ac44d['model']['change'](_0x4e25d9=>{_0x173315();const _0x4b7921='left'===_0x4ebf2e['order'],_0x3d9812=_0x2e743f['getSelectionAffectedTableCells'](_0x11a5ab),_0x1f11c2=_0x2e743f['getColumnIndexes'](_0x3d9812),_0x3d24ab=_0x4b7921?_0x1f11c2['first']-0x1:_0x1f11c2['last']+0x1,_0x1a60f6=_0x3d9812[0x0]['findAncestor']('table'),_0x35db0e=_0x2e743f['createTableWalker'](_0x1a60f6,{'startRow':0x0,'column':_0x3d24ab,'includeAllSlots':!0x1}),_0x52e0a4=Array['from'](_0x35db0e)['map'](_0x6b7f17=>_0x4e25d9['createRangeOn'](_0x6b7f17['cell']));_0x51fc55['markMultiRangeInsertion'](_0x52e0a4,'tableColumn');});});}for(const _0x4b7273 of['removeTableRow','removeTableColumn']){const _0x28ee1a=_0x4b7273['substr'](0xb),_0x40a1fe=_0x28ee1a['toLowerCase'](),_0x5390f1=_0x40a1fe['substr'](0x0,0x3)+'span',_0x4855d7='table'+_0x28ee1a,_0xb5c74a='min'+_0x28ee1a,_0x2ec99e='max'+_0x28ee1a;_0x51fc55['enableCommand'](_0x4b7273,()=>{_0x5ac44d['model']['change'](_0x34b82d=>{const _0xf383c9=_0x2e743f['getSelectionAffectedTableCells'](_0x11a5ab),_0xd9f69c=_0xf383c9[0x0]['findAncestor']('table');let _0xc5e750;if('removeTableRow'==_0x4b7273){const _0x334cd1=_0x2e743f['getRowIndexes'](_0xf383c9);_0xc5e750={'startRow':_0x334cd1['first'],'endRow':_0x334cd1['last'],'includeAllSlots':!0x0};}else{const _0x37e74c=_0x2e743f['getColumnIndexes'](_0xf383c9);_0xc5e750={'startColumn':_0x37e74c['first'],'endColumn':_0x37e74c['last'],'includeAllSlots':!0x0};}const _0x5a13b9=_0x2e743f['createTableWalker'](_0xd9f69c,_0xc5e750),_0x55b0e7=Array['from'](_0x5a13b9)['map'](({cell:_0x85682b})=>_0x85682b),_0x2d3289=be(_0x55b0e7['filter'](_0x536215=>_0x536215['hasAttribute'](_0x5390f1))),_0x46e07b=be(_0x55b0e7['filter'](_0x1733ae=>!_0x1733ae['hasAttribute'](_0x5390f1)))['map'](_0x484d9c=>_0x34b82d['createRangeOn'](_0x484d9c)),_0x2d778b=_0x51fc55['markMultiRangeDeletion'](_0x46e07b,_0x4855d7);if(_0x2d778b&&('tableRow'==_0x2d778b['subType']||'tableColumn'==_0x2d778b['subType'])){const _0x1d7bd2=this['_getSuggestionCoords'](_0x2d778b);for(const _0x21e38a of _0x2d3289){const _0xb685fc=_0x34b82d['createRangeOn'](_0x21e38a),_0x1c9d96=_0x2e743f['getCellLocation'](_0x21e38a),_0x395dec=_0x21e38a['getAttribute'](_0x5390f1)-0x1,_0x959069=_0x1d7bd2[_0xb5c74a],_0x52b968=_0x1d7bd2[_0x2ec99e];_0x959069<=_0x1c9d96[_0x40a1fe]&&_0x1c9d96[_0x40a1fe]+_0x395dec<=_0x52b968&&_0x2d778b['addRange'](_0xb685fc);}}});});}function _0x5d6908(_0x1308ff){const _0x5b2656=Array['from'](_0x11a5ab['getRanges']())['map'](_0x4c123d=>_0x5ac42d['fromRange'](_0x4c123d));_0x5ac44d['model']['change'](_0x3a5abf=>{const _0x47509b=_0x3a5abf['batch'];_0x1308ff=_0x1308ff['filter'](_0x1f5a51=>'$graveyard'!=_0x1f5a51['root']['rootName']),_0x3a5abf['setSelection'](_0x1308ff),_0x5ac44d['commands']['get']('removeTableRow')['refresh'](),_0x5ac44d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5ac44d['model']['enqueueChange'](()=>{_0x5ac44d['model']['enqueueChange'](_0x47509b,_0x1d1184=>{const _0x5d1214=_0x5b2656['filter'](_0x574d59=>'$graveyard'!=_0x574d59['root']['rootName']);_0x5d1214['length']>0x0&&_0x1d1184['setSelection'](_0x5d1214);for(const _0x229954 of _0x5b2656)_0x229954['detach']();});});});}function _0x39db5b(_0x11902b){_0x5ac44d['model']['change'](_0x3010c1=>{const _0xa496cf=Array['from'](_0x11a5ab['getRanges']())['map'](_0x140228=>_0x5ac42d['fromRange'](_0x140228)),_0x328fbe=[];for(const _0x502077 of _0x11902b)for(const _0x371b8e of _0x502077['getItems']({'shallow':!0x0}))_0x328fbe['push'](_0x371b8e);for(const _0x282027 of _0x328fbe)'$graveyard'!=_0x282027['root']['rootName']&&(_0x3010c1['setSelection'](_0x3010c1['createPositionAt'](_0x282027,0x0)),_0x5ac44d['commands']['get']('removeTableColumn')['refresh'](),_0x5ac44d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3f52f7=_0xa496cf['filter'](_0x60ee00=>'$graveyard'!=_0x60ee00['root']['rootName']);_0x3f52f7['length']>0x0&&_0x3010c1['setSelection'](_0x3f52f7);for(const _0x2ecde6 of _0xa496cf)_0x2ecde6['detach']();});}function _0x5bc0d2(_0x2501bd,_0x535119){return _0x535119['every'](_0x45ee5c=>_0x2501bd['some'](_0x54505b=>_0x54505b['end']['isEqual'](_0x45ee5c['start'])||_0x45ee5c['end']['isEqual'](_0x54505b['start'])));}function _0x832ae2(_0x5554c9,_0x4108c5){return!_0x5554c9['some'](_0x32aa7c=>_0x4108c5['some'](_0x5d758b=>_0x32aa7c['isIntersecting'](_0x5d758b)))&&_0x5554c9['some'](_0x6e35aa=>_0x4108c5['some'](_0x405953=>_0x6e35aa['end']['isTouching'](_0x405953['start'])));}_0x5ac44d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a94fd,_0x89d091,_0x1acf09)=>{if(!_0x1acf09['options']['showSuggestionHighlights'])return;const _0x2aa2cc=_0x89d091['item'];if(!_0x2aa2cc)return;const _0x2230c0=_0x1acf09['mapper']['toViewElement'](_0x2aa2cc);function _0x360818(_0x5bdfff){return Array['isArray'](_0x5bdfff)?_0x5bdfff:[_0x5bdfff];}_0x2230c0&&'tableCell'===_0x2aa2cc['name']&&_0x4dd426(_0x2230c0,_0x1acf09['writer'],(_0x5ab56e,_0x2c23a0,_0x44a439)=>_0x44a439['addClass'](_0x360818(_0x2c23a0['classes']),_0x5ab56e),(_0x13c23f,_0x150737,_0x2ece03)=>_0x2ece03['removeClass'](_0x360818(_0x150737['classes']),_0x13c23f));},{'priority':'highest'}),_0x51fc55['descriptionFactory']['registerDescriptionCallback'](_0x428581=>{if('insertion'!=_0x428581['type']&&'deletion'!=_0x428581['type'])return;const _0x2c3387=_0x428581['getContainedElement']();if(null!=_0x2c3387&&_0x2c3387['is']('element','table')){if('insertion'==_0x428581['type']){const _0x4b819e=_0x428581['getItems']()['filter'](_0x38789f=>_0x38789f['is']('$textProxy'))['map'](_0x1204d0=>_0x1204d0['data']);if(_0x4b819e['length'])return{'type':'insertion','content':o(_0x554034,'*Insert:*\x20%0',o(_0x554034,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4b819e['join']('\x20')+'\x22'))};}if('deletion'==_0x428581['type']){const _0x51c055=_0x428581['getItems']()['filter'](_0x5ab655=>_0x5ab655['is']('$textProxy'))['map'](_0x14afdd=>_0x14afdd['data']);if(_0x51c055['length'])return{'type':'deletion','content':o(_0x554034,'*Remove:*\x20%0',o(_0x554034,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x51c055['join']('\x20')+'\x22'))};}}}),_0x51fc55['descriptionFactory']['registerDescriptionCallback'](_0x2433b4=>{if('tableRow'==_0x2433b4['subType']){const _0xce355=_0x2433b4['getItems']()['filter'](_0x23d24b=>_0x23d24b['is']('$textProxy'))['map'](_0x143e8b=>_0x143e8b['data']),_0x399b8e=this['_getSuggestionCoords'](_0x2433b4),_0x362eb5=_0x399b8e['maxRow']-_0x399b8e['minRow']+0x1;if('insertion'==_0x2433b4['type'])return _0xce355['length']?{'type':'insertion','content':o(_0x554034,'*Insert:*\x20%0',o(_0x554034,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x362eb5,'\x22'+_0xce355['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x554034,'*Insert:*\x20%0',o(_0x554034,'ELEMENT_TABLE_ROW',_0x362eb5))};if('deletion'==_0x2433b4['type'])return _0xce355['length']?{'type':'deletion','content':o(_0x554034,'*Remove:*\x20%0',o(_0x554034,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x362eb5,'\x22'+_0xce355['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x554034,'*Remove:*\x20%0',o(_0x554034,'ELEMENT_TABLE_ROW',_0x362eb5))};}if('tableColumn'==_0x2433b4['subType']){const _0x1e355b=_0x2433b4['getItems']()['filter'](_0x3c5f7e=>_0x3c5f7e['is']('$textProxy'))['map'](_0x56a9c5=>_0x56a9c5['data']),_0x25eba0=this['_getSuggestionCoords'](_0x2433b4),_0x56cd40=_0x25eba0['maxColumn']-_0x25eba0['minColumn']+0x1;if('insertion'==_0x2433b4['type'])return _0x1e355b['length']?{'type':'insertion','content':o(_0x554034,'*Insert:*\x20%0',o(_0x554034,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x56cd40,'\x22'+_0x1e355b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x554034,'*Insert:*\x20%0',o(_0x554034,'ELEMENT_TABLE_COLUMN',_0x56cd40))};if('deletion'==_0x2433b4['type'])return _0x1e355b['length']?{'type':'deletion','content':o(_0x554034,'*Remove:*\x20%0',o(_0x554034,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x56cd40,'\x22'+_0x1e355b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x554034,'*Remove:*\x20%0',o(_0x554034,'ELEMENT_TABLE_COLUMN',_0x56cd40))};}}),_0x51fc55['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5d6908),_0x51fc55['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5d6908),_0x51fc55['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x39db5b),_0x51fc55['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x39db5b),_0x51fc55['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5bc0d2),_0x51fc55['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5bc0d2),_0x51fc55['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x832ae2),_0x51fc55['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x832ae2);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4ed51d=this['editor'],_0x167f28=_0x4ed51d['model']['document']['selection'];return(_0x33894b,_0x58f474)=>{_0x4ed51d['model']['change'](_0x3213fa=>{const {commandName:_0x55a788,commandParams:_0x55ee34}=_0x58f474;let _0x24592d=_0x33894b[0x0]['end']['nodeBefore'];_0x55ee34&&_0x55ee34[0x0]&&!0x1===_0x55ee34[0x0]['forceValue']&&(_0x24592d=_0x33894b[0x0]['start']['nodeAfter']);const _0x4beee8=_0x3213fa['createRangeIn'](_0x24592d);if('$graveyard'==_0x4beee8['root']['rootName'])return;const _0x31a45c=Array['from'](_0x167f28['getRanges']())['map'](_0x14f519=>_0x5ac42d['fromRange'](_0x14f519));_0x3213fa['setSelection'](_0x4beee8),_0x4ed51d['commands']['get'](_0x55a788)['refresh'](),_0x55ee34['push']({'forceDefaultExecution':!0x0}),_0x4ed51d['execute'](_0x55a788,..._0x55ee34);const _0x17a7ce=_0x31a45c['filter'](_0x4e0168=>'$graveyard'!=_0x4e0168['root']['rootName']);_0x17a7ce['length']>0x0&&_0x3213fa['setSelection'](_0x17a7ce);for(const _0x320c07 of _0x31a45c)_0x320c07['detach']();});};}['_getCoordsForCells'](_0x3b9ac3){const _0x50224e=this['editor']['plugins']['get']('TableUtils');let _0x3c514b=Number['MAX_SAFE_INTEGER'],_0x1cfd24=Number['MIN_SAFE_INTEGER'],_0x3ec50c=Number['MAX_SAFE_INTEGER'],_0x3c7a4f=Number['MIN_SAFE_INTEGER'];for(const _0x3b27e2 of _0x3b9ac3){if('$graveyard'==_0x3b27e2['root']['rootName'])continue;const {row:_0x2a7133,column:_0xe08dc6}=_0x50224e['getCellLocation'](_0x3b27e2),_0x1d1c5a=_0x3b27e2['hasAttribute']('rowspan')?_0x3b27e2['getAttribute']('rowspan')-0x1:0x0,_0x44caff=_0x3b27e2['hasAttribute']('colspan')?_0x3b27e2['getAttribute']('colspan')-0x1:0x0;_0x3c514b=_0x2a7133<_0x3c514b?_0x2a7133:_0x3c514b,_0x1cfd24=_0x2a7133+_0x1d1c5a>_0x1cfd24?_0x2a7133+_0x1d1c5a:_0x1cfd24,_0x3ec50c=_0xe08dc6<_0x3ec50c?_0xe08dc6:_0x3ec50c,_0x3c7a4f=_0xe08dc6+_0x44caff>_0x3c7a4f?_0xe08dc6+_0x44caff:_0x3c7a4f;}return{'minRow':_0x3c514b,'maxRow':_0x1cfd24,'minColumn':_0x3ec50c,'maxColumn':_0x3c7a4f};}['_setupColumnsRowsFixing'](){const _0x56c4e8=this['editor'],_0x1a4b2e=_0x56c4e8['plugins']['get']('TrackChangesEditing'),_0x103b73=_0x56c4e8['plugins']['get']('TableUtils');_0x56c4e8['model']['document']['on']('change:data',()=>{const _0x57314b=Array['from'](_0x56c4e8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x964da,data:_0xa0d23f}of _0x57314b){const {group:_0x1b62a9,id:_0x89519d,subType:_0x5447f5}=_0x1a4b2e['_splitMarkerName'](_0x964da);if('suggestion'!=_0x1b62a9)continue;if(null!=_0xa0d23f['oldRange'])continue;const _0x466811=_0x1a4b2e['getSuggestion'](_0x89519d);this['_tablePostFixingSubtypes']['includes'](_0x5447f5)&&this['_tableSuggestions']['add'](_0x466811);}},{'priority':'low'});const _0x150f06=(_0x3d9945,_0x318563)=>{let _0x3a5fd8=!0x1;const _0x59a7b1=_0x318563['createRangeOn'](_0x3d9945),_0x36d66e=_0x3d9945['findAncestor']('table'),_0x5a1c9e=_0x103b73['getCellLocation'](_0x3d9945);for(const _0x3f2f29 of this['_tableSuggestions']){const _0x407b79=_0x3f2f29['subType'],_0x3e1973=_0x407b79['startsWith']('tablePaste'),_0x4fcfbe=_0x407b79['substr'](_0x3e1973?0xa:0x5),_0x52c6ea=_0x4fcfbe['toLowerCase'](),_0x2acc04=_0x52c6ea['substr'](0x0,0x3)+'span',_0x1040ac='min'+_0x4fcfbe,_0x1dec42='max'+_0x4fcfbe;if(!_0x3f2f29['isInContent'])continue;if(_0x36d66e!=_0x3f2f29['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3f2f29['isIntersectingWithRange'](_0x59a7b1))continue;const _0x351633=_0x3d9945['hasAttribute'](_0x2acc04)?_0x3d9945['getAttribute'](_0x2acc04)-0x1:0x0,_0x29a1ae=this['_getSuggestionCoords'](_0x3f2f29),_0x1d596c=_0x29a1ae[_0x1040ac],_0x5c54e6=_0x29a1ae[_0x1dec42];_0x1d596c<=_0x5a1c9e[_0x52c6ea]&&_0x5a1c9e[_0x52c6ea]+_0x351633<=_0x5c54e6&&(_0x3f2f29['addRange'](_0x59a7b1),_0x3a5fd8=!0x0);}return _0x3a5fd8;};_0x56c4e8['model']['document']['registerPostFixer'](_0x5eb53f=>{let _0x443502=!0x1;for(const _0x35d26d of _0x56c4e8['model']['document']['differ']['getChanges']())if('insert'==_0x35d26d['type']){if('tableRow'==_0x35d26d['name']){for(const _0x3bc844 of _0x35d26d['position']['nodeAfter']['getChildren']())_0x443502=_0x443502||_0x150f06(_0x3bc844,_0x5eb53f);}else'tableCell'==_0x35d26d['name']&&(_0x443502=_0x443502||_0x150f06(_0x35d26d['position']['nodeAfter'],_0x5eb53f));}return _0x443502;});}['_getSuggestionCoords'](_0x24399e){return this['_getCoordsForCells'](_0x24399e['getRanges']()['map'](_0xb3281=>_0xb3281['start']['nodeAfter']));}}function be(_0xc39ae2){return Array['from'](new Set(_0xc39ae2)['values']());}class vt extends _0x3415fa{static get['requires'](){return[It];}['afterInit'](){const _0x39ded2=this['editor'],_0x13aa01=_0x39ded2['model']['document']['selection'],_0xb9464a=_0x39ded2['locale'];if(!_0x39ded2['plugins']['has']('TableEditing'))return;const _0x4eab1f=_0x39ded2['plugins']['get']('TrackChangesEditing'),_0x7e06c9=_0x39ded2['plugins']['get']('TableUtils'),_0x3a2835=_0x39ded2['plugins']['get'](It);_0x3a2835['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4eab1f['enableCommand']('mergeTableCells',()=>{const _0x5c0964=_0x7e06c9['getSelectionAffectedTableCells'](_0x39ded2['model']['document']['selection']);_0x39ded2['model']['change'](()=>{_0x4eab1f['markMultiRangeBlockFormat'](_0x5c0964,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x39ded2['commands']['get']('mergeTableCells')['on']('execute',(_0x42ec60,_0x290028)=>{_0x39ded2['commands']['get']('trackChanges')['value']&&(_0x290028['length']>0x0&&_0x290028[_0x290028['length']-0x1]&&_0x290028[_0x290028['length']-0x1]['forceDefaultExecution']||_0x4eab1f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x42ec60['stop']());},{'priority':'highest'});for(const _0x13563a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2c1bdc=_0x39ded2['commands']['get'](_0x13563a);_0x4eab1f['enableCommand'](_0x13563a,()=>{const _0x4e84ba=_0x39ded2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x54d8af=>_0x54d8af['is']('element','tableCell')),_0x5e4cce=_0x2c1bdc['value'];_0x39ded2['model']['change'](()=>{_0x4eab1f['markMultiRangeBlockFormat']([_0x4e84ba,_0x5e4cce],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2bfc53 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x57bfef=_0x39ded2['commands']['get'](_0x2bfc53);_0x4eab1f['enableCommand'](_0x2bfc53,()=>{const _0x1daee3=_0x7e06c9['getSelectionAffectedTableCells'](_0x39ded2['model']['document']['selection'])[0x0],_0x2c3558=_0x1daee3['findAncestor']('table'),{column:_0x59d353,row:_0xbbe451}=_0x7e06c9['getCellLocation'](_0x1daee3);let _0x833973=[];if('horizontally'==_0x57bfef['direction']){const _0x484f7a=_0x7e06c9['createTableWalker'](_0x2c3558,{'startRow':_0xbbe451,'endRow':_0xbbe451,'includeAllSlots':!0x0});_0x833973=Array['from'](_0x484f7a)['map'](_0x52d84d=>_0x52d84d['cell']);}else{const _0x445d10=_0x7e06c9['createTableWalker'](_0x2c3558,{'column':_0x59d353,'includeAllSlots':!0x0});_0x833973=Array['from'](_0x445d10)['map'](_0x15d311=>_0x15d311['cell']);}_0x39ded2['model']['change'](_0x181345=>{_0x4eab1f['markBlockFormat'](_0x181345['createRangeOn'](_0x1daee3),{'commandName':_0x2bfc53,'commandParams':[]},_0x833973,_0x2bfc53);});});}_0x4eab1f['descriptionFactory']['registerDescriptionCallback'](_0x165726=>{if('formatBlock'!=_0x165726['type']&&'formatInline'!=_0x165726['type'])return;const {data:_0x1f051f}=_0x165726;return _0x1f051f&&'mergeTableCells'==_0x1f051f['commandName']?{'type':'format','content':o(_0xb9464a,'*Merge\x20cells*')}:void 0x0;}),_0x4eab1f['descriptionFactory']['registerDescriptionCallback'](_0x5b7345=>{if('formatBlock'!=_0x5b7345['type']&&'formatInline'!=_0x5b7345['type'])return;const {data:_0x871d72}=_0x5b7345;return _0x871d72?'splitTableCellVertically'==_0x871d72['commandName']?{'type':'format','content':o(_0xb9464a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x871d72['commandName']?{'type':'format','content':o(_0xb9464a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x29e192=_0x3a2835['_acceptFormatSuggestionCallbackFactory']();for(const _0x59543e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4eab1f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x59543e,'accept',_0x29e192);for(const _0x14cc5c of['splitTableCellVertically','splitTableCellHorizontally'])_0x4eab1f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14cc5c,'accept',_0x29e192);_0x4eab1f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4fe733=>{_0x39ded2['model']['change'](_0x181f72=>{const _0x431964=Array['from'](_0x13aa01['getRanges']())['map'](_0x103285=>_0x5ac42d['fromRange'](_0x103285));_0x181f72['setSelection'](_0x4fe733),_0x39ded2['commands']['get']('mergeTableCells')['refresh'](),_0x39ded2['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3dcfbc=_0x431964['filter'](_0x1fcd13=>'$graveyard'!=_0x1fcd13['root']['rootName']);_0x3dcfbc['length']>0x0&&_0x181f72['setSelection'](_0x3dcfbc);for(const _0x85691f of _0x431964)_0x85691f['detach']();});});for(const _0x3d3358 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x483620=_0x39ded2['commands']['get'](_0x3d3358);_0x483620['on']('set:isEnabled',(_0x1754f5,_0x3d87af,_0x12aaf8)=>{if(_0x12aaf8){const _0x2c8a37=_0x39ded2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x33dd7d=>_0x33dd7d['is']('element','tableCell'));this['_areMergableCells'](_0x483620['value'],_0x2c8a37)||(_0x1754f5['return']=!0x1,_0x1754f5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x35fbb6=this['editor']['commands']['get']('mergeTableCells'),_0x223ece=this['editor']['plugins']['get']('TableUtils');if(!_0x35fbb6['isEnabled'])return!0x1;const _0x3170c5=_0x223ece['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x16beb0 of _0x3170c5)for(const _0x32641b of _0x3170c5)if(_0x16beb0!=_0x32641b&&!this['_areMergableCells'](_0x16beb0,_0x32641b))return!0x1;return!0x0;}['_areMergableCells'](_0x2f0d54,_0xd806a0){const _0x5b3877=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f1c01=this['editor']['model']['createRangeOn'](_0x2f0d54),_0x479a6f=this['editor']['model']['createRangeOn'](_0xd806a0),_0x46ba4b=new Set(),_0x59c639=new Set();for(const _0x4256f2 of _0x5b3877['getSuggestions']())if(('insertion'==_0x4256f2['type']||'deletion'==_0x4256f2['type']||'mergeTableCells'==_0x4256f2['subType'])&&_0x4256f2['isInContent']){for(const _0x20f93b of _0x4256f2['getRanges']())_0x20f93b['containsRange'](_0x1f1c01,!0x0)&&_0x46ba4b['add'](_0x4256f2['type']+':'+_0x4256f2['author']['id']),_0x20f93b['containsRange'](_0x479a6f,!0x0)&&_0x59c639['add'](_0x4256f2['type']+':'+_0x4256f2['author']['id']);}if(_0x46ba4b['size']!=_0x59c639['size'])return!0x1;for(const _0xff3a7d of _0x46ba4b)if(!_0x59c639['has'](_0xff3a7d))return!0x1;return!0x0;}}class Ct extends _0x3415fa{static get['requires'](){return[It];}['afterInit'](){const _0x392516=this['editor'];if(!_0x392516['plugins']['has']('TableEditing'))return;const _0x4ea54b=_0x392516['locale'],_0x2f4fc6=_0x392516['plugins']['get']('TrackChangesEditing');_0x2f4fc6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2f4fc6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2f4fc6['registerBlockAttribute']('headingRows'),_0x2f4fc6['registerBlockAttribute']('headingColumns'),_0x2f4fc6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4ea54b,'FORMAT_HEADER_ROW')),_0x2f4fc6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4ea54b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5752ed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bbf5e=this['editor']['plugins']['get']('TableUtils'),_0x5c65bd=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x34b4ad({showActiveMarker:_0x4c170e=!0x0,setDataAttribute:_0x460b42=!0x0}={}){return(_0x297e22,_0x30ce38,_0x11e586)=>{const {type:_0x2ff139,id:_0x2b3d6a}=_0x5752ed['_splitMarkerName'](_0x30ce38['markerName']),_0x32bdf0=_0x5752ed['getSuggestion'](_0x2b3d6a),_0x5e1c18=_0x32bdf0['data'];if('formatBlock'!=_0x32bdf0['type']||!_0x5e1c18||'setTableColumnHeader'!=_0x5e1c18['commandName'])return;if(_0x30ce38['item'])return void _0x297e22['stop']();if(!_0x11e586['consumable']['consume'](_0x30ce38['markerRange'],_0x297e22['name']))return;const _0x15d3bf=_0x30ce38['markerRange']['start']['nodeAfter'],_0x428a85=_0x30ce38['markerRange']['end']['nodeBefore'],_0x1030c5=_0x15d3bf['parent']['parent'],{column:_0x55f783}=_0x2bbf5e['getCellLocation'](_0x15d3bf),{column:_0x263f14}=_0x2bbf5e['getCellLocation'](_0x428a85);for(let _0x5dd543=_0x55f783;_0x5dd543<=_0x263f14;_0x5dd543++){const _0x2c5c62=_0x2bbf5e['createTableWalker'](_0x1030c5,{'column':_0x5dd543,'includeAllSlots':!0x1});for(const _0x444056 of _0x2c5c62){const _0x3bbeb4=_0x444056['cell'],_0x1db49a=_0x11e586['mapper']['toViewElement'](_0x3bbeb4);_0x11e586['writer']['addClass']('ck-suggestion-marker-'+_0x2ff139,_0x1db49a),_0x460b42&&_0x11e586['writer']['setAttribute']('data-suggestion',_0x2b3d6a,_0x1db49a),_0x11e586['mapper']['bindElementToMarker'](_0x1db49a,_0x30ce38['markerName']),_0x4c170e&&(_0x5752ed['activeMarkers']['includes'](_0x30ce38['markerName'])?_0x11e586['writer']['addClass']('ck-suggestion-marker--active',_0x1db49a):_0x11e586['writer']['removeClass']('ck-suggestion-marker--active',_0x1db49a));}}};}_0x5752ed['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5c65bd),_0x5752ed['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5c65bd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x34b4ad(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x55caa7,_0xbc7615,_0x3721ff)=>{_0x3721ff['options']['showSuggestionHighlights']&&_0x34b4ad({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x55caa7,_0xbc7615,_0x3721ff);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1240f7,_0x424155,_0x400774)=>{const {type:_0xcc070,id:_0xcb670d}=_0x5752ed['_splitMarkerName'](_0x424155['markerName']),_0x1a229e=_0x5752ed['getSuggestion'](_0xcb670d),_0xbb06ca=_0x1a229e['data'];if('formatBlock'!=_0x1a229e['type']||!_0xbb06ca||'setTableColumnHeader'!=_0xbb06ca['commandName'])return;const _0x3cfa91=_0x400774['mapper']['markerNameToElements'](_0x424155['markerName']);if(_0x3cfa91){for(const _0x55faf7 of _0x3cfa91)_0x400774['writer']['removeClass']('ck-suggestion-marker-'+_0xcc070,_0x55faf7),_0x400774['writer']['removeClass']('ck-suggestion-marker--active',_0x55faf7),_0x400774['writer']['removeAttribute']('data-suggestion',_0x55faf7),_0x400774['mapper']['unbindElementFromMarkerName'](_0x55faf7,_0x424155['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28afd4=this['editor'],_0x53fa3b=_0x28afd4['locale'];function _0x58f22a(_0x4d684a){return{'type':'format','content':o(_0x53fa3b,'*Format:*\x20%0',_0x4d684a)};}_0x28afd4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a8551=>{if('formatBlock'!=_0x5a8551['type'])return;const {data:_0x49c62e}=_0x5a8551;if(_0x49c62e){if('setTableRowHeader'==_0x49c62e['commandName']){const _0x3f877b=_0x49c62e['commandParams'][0x0]['forceValue'];return _0x58f22a(o(_0x53fa3b,_0x3f877b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x49c62e['commandName']){const _0x80e262=_0x49c62e['commandParams'][0x0]['forceValue'];return _0x58f22a(o(_0x53fa3b,_0x80e262?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x3a0d1e=>[_0x3a0d1e,null]));class _t extends _0x3415fa{static get['requires'](){return[It];}['afterInit'](){const _0x22f3a9=this['editor'];if(!_0x22f3a9['plugins']['has']('TableClipboard'))return;const _0x4d3f9a=_0x22f3a9['plugins']['get']('TrackChangesEditing'),_0x22d057=_0x22f3a9['plugins']['get']('TableUtils'),_0x4f5820=_0x22f3a9['plugins']['get'](It),_0xdae366=_0x22f3a9['plugins']['get']('TableClipboard');_0x4f5820['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x22f3a9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x22f3a9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x49ded0=null;_0x22f3a9['model']['on']('insertContent',(_0x1a600e,_0x1bf95e)=>{const [_0x388dbd,_0x462871]=_0x1bf95e,_0x496b67=_0x1bf95e[_0x1bf95e['length']-0x1];_0x496b67&&_0x496b67['forceDefaultExecution']||_0x4d3f9a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4739aa,_0x365b9f,_0x2630f8,_0x4dfc1c,_0x4ddd9f){if(_0x365b9f&&!_0x365b9f['is']('documentSelection'))return!0x1;const _0x270db0=_0x4ddd9f['getTableIfOnlyTableInContent'](_0x4739aa,_0x2630f8);if(!_0x270db0||!Re(_0x270db0,void 0x0,_0x4dfc1c))return!0x1;const _0x35d45b=_0x4dfc1c['getSelectionAffectedTableCells'](_0x2630f8['document']['selection']);if(!_0x35d45b['length'])return!0x1;const _0x1291ab=_0x35d45b[0x0]['findAncestor']('table'),_0x2f0522=_0x4dfc1c['getRowIndexes'](_0x35d45b),_0x404196=_0x4dfc1c['getColumnIndexes'](_0x35d45b),_0x5c8dfc={'startRow':_0x2f0522['first'],'endRow':_0x2f0522['last'],'startColumn':_0x404196['first'],'endColumn':_0x404196['last']};return 0x1==_0x35d45b['length']&&(_0x5c8dfc['endRow']+=_0x4dfc1c['getRows'](_0x270db0)-0x1,_0x5c8dfc['endColumn']+=_0x4dfc1c['getColumns'](_0x270db0)-0x1),Re(_0x1291ab,_0x5c8dfc,_0x4dfc1c);}(_0x388dbd,_0x462871,_0x22f3a9['model'],_0x22d057,_0xdae366)&&(_0x1a600e['stop'](),_0x49ded0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x22f3a9['model']['change'](()=>{_0x22f3a9['model']['insertContent'](_0x1bf95e[0x0],_0x1bf95e[0x1],_0x1bf95e[0x2],{'forceDefaultExecution':!0x0});const _0x2df8e3=_0x8d9c92(),{rowInsertionRanges:_0x306587,columnInsertionRanges:_0x3fe928,insertionRanges:_0x1784cb,deletionRanges:_0x7ea38e,cells:_0x3c29b7}=_0x49ded0;_0x306587['length']&&_0x4d3f9a['markMultiRangeInsertion'](_0x306587,'tablePasteRow',{'tablePasteChainId':_0x2df8e3}),_0x3fe928['length']&&_0x4d3f9a['markMultiRangeInsertion'](_0x3fe928,'tablePasteColumn',{'tablePasteChainId':_0x2df8e3}),_0x1784cb['length']&&(_0x4d3f9a['markMultiRangeInsertion'](_0x1784cb,'tablePaste',{'tablePasteChainId':_0x2df8e3,'skipNestingCheck':!0x0}),_0x1784cb['forEach'](_0x93270b=>_0x93270b['detach']?.())),_0x7ea38e['length']&&(_0x4d3f9a['markMultiRangeDeletion'](_0x7ea38e,'tablePaste',{'tablePasteChainId':_0x2df8e3,'skipNestingCheck':!0x0}),_0x7ea38e['forEach'](_0x464a40=>_0x464a40['detach']?.()));const _0x29cfe6=_0x4d3f9a['markMultiRangeBlockFormat'](_0x3c29b7['map'](({element:_0x574af0})=>_0x574af0),{'formatGroupId':_0x8d9c92()},[],'tablePasteCell',{'tablePasteChainId':_0x2df8e3});if(_0x29cfe6){const _0x100068=_0x29cfe6['getMarkers'](),_0x5932a8=[];for(const {element:_0x235be1,attributes:_0x191abe}of _0x3c29b7){if(!_0x191abe)continue;const _0x2c7f35=_0x22f3a9['model']['createRangeOn'](_0x235be1),_0x1b3873=_0x100068['find'](_0x347d28=>_0x347d28['getRange']()['isEqual'](_0x2c7f35));_0x1b3873&&_0x5932a8['push']([_0x1b3873['name'],_0x191abe]);}_0x5932a8['length']&&_0x29cfe6['setAttribute']('markerAttributes',Object['fromEntries'](_0x5932a8));}_0x49ded0=null;}));},{'priority':_0x394182['high']+0xa}),_0x22f3a9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4a5fa5,_0x21b0e8)=>{const [_0x4e3892,_0x1ef88c,,_0x58c6fd]=_0x21b0e8;if(!_0x49ded0)return;_0x4a5fa5['stop']();const _0x15f70b=_0x4e3892['cell'],_0x1df629=_0x1ef88c,_0xbc2e39=ke(_0x15f70b),_0x370f5d=ke(_0x1df629);_0x4a5fa5['return']=_0x15f70b;let _0x2e3eee=null,_0x53d920=null;if(_0x370f5d||_0xbc2e39){if(_0xbc2e39&&!_0x370f5d){_0x58c6fd['remove'](_0x15f70b['getChild'](0x0));for(const _0xe58b75 of Array['from'](_0x1df629['getChildren']()))_0x58c6fd['insert'](_0xe58b75,_0x15f70b,'end');const _0x450a55=_0x49ded0['rowInsertionIndexes']['includes'](_0x4e3892['row']),_0x45e745=_0x49ded0['columnInsertionIndexes']['includes'](_0x4e3892['column']);_0x450a55||_0x45e745||(_0x2e3eee=_0x5ac42d['fromRange'](_0x58c6fd['createRangeIn'](_0x15f70b)));}else _0x370f5d&&!_0xbc2e39&&(_0x53d920=_0x58c6fd['createRangeIn'](_0x15f70b));}else{const _0x5272a7=_0x58c6fd['createElement']('tableCellSuggestion'),_0x223ab5=_0x58c6fd['createElement']('tableCellSuggestion');_0x58c6fd['wrap'](_0x58c6fd['createRangeIn'](_0x15f70b),_0x223ab5),_0x58c6fd['insert'](_0x5272a7,_0x15f70b,0x0);for(const _0x44ce71 of Array['from'](_0x1df629['getChildren']()))_0x58c6fd['insert'](_0x44ce71,_0x5272a7,'end');_0x2e3eee=_0x5ac42d['fromRange'](_0x58c6fd['createRangeOn'](_0x5272a7)),_0x53d920=_0x5ac42d['fromRange'](_0x58c6fd['createRangeOn'](_0x223ab5));}const _0x419b39=Array['from'](_0x1df629['getAttributes']())['filter'](([_0x96d5f8])=>Pe['includes'](_0x96d5f8));_0x49ded0['cells']['push']({'element':_0x15f70b,'attributes':_0x419b39['length']?Object['fromEntries'](_0x419b39):null}),_0x2e3eee&&_0x49ded0['insertionRanges']['push'](_0x2e3eee),_0x53d920&&_0x49ded0['deletionRanges']['push'](_0x53d920);},{'priority':'high'}),_0x22d057['on']('insertColumns',(_0x51702a,_0x541a75)=>{const [_0x185305,_0x515f5d={}]=_0x541a75;if(!_0x49ded0)return;const _0x4ae0ec=_0x515f5d['at']||0x0,_0x2fa084=_0x515f5d['columns']||0x1;_0x49ded0['columnInsertionIndexes']=new Array(_0x2fa084)['fill'](_0x4ae0ec)['map']((_0x2bb633,_0x521531)=>_0x2bb633+_0x521531);for(const {cell:_0xd5574a}of _0x22d057['createTableWalker'](_0x185305,{'startColumn':_0x4ae0ec,'endColumn':_0x4ae0ec+_0x2fa084-0x1}))_0x49ded0['columnInsertionRanges']['push'](_0x22f3a9['model']['createRangeOn'](_0xd5574a));},{'priority':'low'}),_0x22d057['on']('insertRows',(_0x5df47a,_0x377d12)=>{const [_0x387824,_0x375569={}]=_0x377d12;if(!_0x49ded0)return;const _0x49b07c=_0x375569['at']||0x0,_0xf569a1=_0x375569['rows']||0x1;_0x49ded0['rowInsertionIndexes']=new Array(_0xf569a1)['fill'](_0x49b07c)['map']((_0x3837d8,_0x53fb13)=>_0x3837d8+_0x53fb13);for(const {cell:_0x1526f1}of _0x22d057['createTableWalker'](_0x387824,{'startRow':_0x49b07c,'endRow':_0x49b07c+_0xf569a1-0x1}))_0x49ded0['rowInsertionRanges']['push'](_0x22f3a9['model']['createRangeOn'](_0x1526f1));},{'priority':'low'}),_0x4d3f9a['descriptionFactory']['registerDescriptionCallback'](_0x554117=>{if(_0x554117['subType']&&_0x554117['subType']['startsWith']('tablePaste'))return _0x554117['previous']?{}:{'type':'insertion','content':o(_0x22f3a9['locale'],'*Replace\x20table\x20cells*')};});const _0x2f9ff8=()=>!0x1;for(const _0xe0d58a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4d3f9a['_suggestionFactory']['registerCustomCallback']('insertion',_0xe0d58a,'join',_0x2f9ff8),_0x4d3f9a['_suggestionFactory']['registerCustomCallback']('deletion',_0xe0d58a,'join',_0x2f9ff8),_0x4d3f9a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe0d58a,'join',_0x2f9ff8);_0x4d3f9a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2f9ff8),_0x4d3f9a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4c496c,_0x1d7d28,_0x129f4f)=>{const _0x4070ba=_0x4c496c['map'](_0x4c8b44=>_0x4c8b44['getContainedElement']())['filter'](_0x1a6590=>_0x1a6590),_0x920633=new Map(_0x4070ba['map'](_0x22abb9=>[_0x22abb9,null]));if(_0x49ded0){for(const {element:_0xdc350e,attributes:_0x1a4c16}of _0x49ded0['cells'])_0x1a4c16&&_0x920633['set'](_0xdc350e,_0x1a4c16);}else{if(_0x129f4f&&_0x129f4f['markerAttributes'])for(const [_0x333e85,_0x5801cf]of Object['entries'](_0x129f4f['markerAttributes'])){const _0x1caf97=_0x22f3a9['model']['markers']['get'](_0x333e85),_0x3059cd=_0x1caf97?_0x1caf97['getRange']()['getContainedElement']():null;_0x3059cd&&_0x920633['set'](_0x3059cd,_0x5801cf);}}_0x22f3a9['model']['change'](_0x37cdd3=>{for(const [_0x2c7dfb,_0x50c3fc]of _0x920633)_0x37cdd3['setAttributes']({...we,..._0x50c3fc},_0x2c7dfb);});});const _0x5775be=(_0x398adb,_0xb8c14e)=>{_0x4d3f9a['_suggestionFactory']['registerCustomCallback'](_0x398adb,'tablePaste',_0xb8c14e,(_0x4ae372,_0x49a5a5,_0x37ec90)=>{_0x22f3a9['model']['change'](_0x5a12b4=>{const _0x42b7a3=[];for(const _0x5b3ebd of _0x4ae372){const _0x4bd7aa=_0x5b3ebd['start']['nodeAfter'];_0x4bd7aa['is']('element','tableCellSuggestion')&&_0x42b7a3['push'](_0x4bd7aa);}_0x4d3f9a['_suggestionFactory']['getSuggestionCallback'](_0x398adb,null,_0xb8c14e)(_0x4ae372,_0x49a5a5,_0x37ec90);for(const _0x460d4f of _0x42b7a3)'$graveyard'!=_0x460d4f['root']['rootName']&&_0x5a12b4['unwrap'](_0x460d4f);});});};_0x5775be('insertion','accept'),_0x5775be('insertion','discard'),_0x5775be('deletion','accept'),_0x5775be('deletion','discard'),_0x4d3f9a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3e4c3c=>{const _0x46501a=_0x3e4c3c['map'](_0xd5e0a4=>_0xd5e0a4['getContainedElement']()),_0x4bfdd8=_0x46501a[0x0]['findAncestor']('table'),{minRow:_0x59e859,maxRow:_0x394233}=_0x4f5820['_getCoordsForCells'](_0x46501a);_0x22d057['removeRows'](_0x4bfdd8,{'at':_0x59e859,'rows':_0x394233-_0x59e859+0x1});}),_0x4d3f9a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3ae4d6=>{const _0x3ed244=_0x3ae4d6['map'](_0x519bcd=>_0x519bcd['getContainedElement']()),_0x31495f=_0x3ed244[0x0]['findAncestor']('table'),{minColumn:_0x2808d5,maxColumn:_0x4dc175}=_0x4f5820['_getCoordsForCells'](_0x3ed244);_0x22d057['removeColumns'](_0x31495f,{'at':_0x2808d5,'columns':_0x4dc175-_0x2808d5+0x1});});const _0x138780=(_0x4382a8,_0x3ca443)=>{if(!_0x3ca443['subType']||!_0x3ca443['subType']['startsWith']('tablePaste'))return;const _0x51c0f9=_0x3ca443['attributes']['tablePasteChainId'],_0x5cc6b5=_0x4d3f9a['getSuggestions']()['filter'](_0x59a718=>_0x59a718['isInContent']&&_0x59a718['attributes']&&_0x59a718['attributes']['tablePasteChainId']==_0x51c0f9);_0x5cc6b5['length']&&_0x3ca443['getAllAdjacentSuggestions']()['length']!=_0x5cc6b5['length']&&_0x5cc6b5['reduce']((_0xe588a8,_0x260d3e)=>(_0xe588a8['next']=_0x260d3e,_0x260d3e['previous']=_0xe588a8,_0x260d3e));};function _0x10d607(_0x2e4f4f,_0x4744a7=!0x0){const {id:_0x202b74,authorId:_0x5e87e3}=_0x4d3f9a['_splitMarkerName'](_0x2e4f4f['markerName']),_0x49f11e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1c933c=_0x4d3f9a['activeMarkers']['includes'](_0x2e4f4f['markerName']);return _0x1c933c&&_0x49f11e['push']('ck-suggestion-marker--active'),{'classes':_0x49f11e,'attributes':{'data-suggestion':_0x202b74,'data-author-id':_0x5e87e3},'priority':_0x1c933c&&_0x4744a7?0xbc2:0xbb8};}_0x4d3f9a['on']('suggestionLoaded',_0x138780,{'priority':'high'}),_0x4d3f9a['on']('suggestionUnloaded',_0x138780,{'priority':'high'}),_0x22f3a9['model']['document']['registerPostFixer'](()=>{let _0x21efc0=!0x1;const _0x5bf622=Array['from'](_0x22f3a9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16d17e,data:_0x5aeb3e}of _0x5bf622){const {group:_0x567456,type:_0x2994b2,id:_0x14e05a}=_0x4d3f9a['_splitMarkerName'](_0x16d17e);if('suggestion'!=_0x567456||'deletion'!=_0x2994b2||_0x5aeb3e['oldRange'])continue;if(!_0x4d3f9a['hasSuggestion'](_0x14e05a))continue;const _0x53d768=_0x4d3f9a['getSuggestion'](_0x14e05a)['getRanges'](),_0x3c4d4d=_0x22f3a9['plugins']['get']('Users')['me'];for(const _0x553133 of _0x4d3f9a['getSuggestions']()){if(!_0x553133['isInContent']||_0x553133['author']!=_0x3c4d4d)continue;if('formatBlock'!=_0x553133['type']||'tablePasteCell'!=_0x553133['subType'])continue;if(_0x553133['getRanges']()['every'](_0x4d9b3d=>_0x53d768['some'](_0xec97dc=>_0xec97dc['containsRange'](_0x4d9b3d,!0x0)))){for(const _0x51b3d5 of _0x553133['getAllAdjacentSuggestions']())_0x51b3d5['isInContent']&&(_0x51b3d5['discard'](),_0x21efc0=!0x0);}}}return _0x21efc0;}),_0x22f3a9['model']['document']['registerPostFixer'](_0xc24b47=>{const _0x3fea1d=_0x22f3a9['commands']['get']('redo');if(!_0x3fea1d||!_0x3fea1d['_createdBatches']['has'](_0xc24b47['batch']))return!0x1;let _0x13e3ac=!0x1;const _0x481285=_0x22f3a9['plugins']['get']('Users')['me'],_0x57c545=_0x22f3a9['model']['document']['differ']['getChanges'](),_0x5e6197=Array['from'](_0x22f3a9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x224a49,data:_0x55b615})=>{const {group:_0x5e4d4a,subType:_0x3f7457,authorId:_0x481fe0}=_0x4d3f9a['_splitMarkerName'](_0x224a49);return'suggestion'==_0x5e4d4a&&'tablePaste'==_0x3f7457&&_0x481fe0==_0x481285['id']&&!_0x55b615['oldRange'];});for(const _0x29ff16 of _0x57c545){if('insert'!=_0x29ff16['type']||'tableCellSuggestion'!=_0x29ff16['name']||0x1!=_0x29ff16['length'])continue;const _0x2047b0=_0xc24b47['createRange'](_0x29ff16['position'],_0x29ff16['position']['getShiftedBy'](0x1));if(!_0x5e6197['find'](({data:_0x1adb1a})=>_0x1adb1a['newRange']['isEqual'](_0x2047b0))){for(const {name:_0x5551a2,data:_0x3ddd6d}of _0x5e6197)if(_0x2047b0['containsRange'](_0x3ddd6d['newRange'])){_0xc24b47['updateMarker'](_0x5551a2,{'range':_0x2047b0}),_0x13e3ac=!0x0;break;}}}return _0x13e3ac;}),_0x22f3a9['model']['document']['registerPostFixer'](_0xc4b8eb=>{let _0xc4db7c=!0x1;const _0x55ae19=_0x22f3a9['plugins']['get']('Users')['me'],_0x2dfb09=_0x4d3f9a['getSuggestions']()['filter'](_0x2b1f90=>_0x2b1f90['isInContent']&&_0x2b1f90['author']==_0x55ae19),_0x556867=new Set(),_0x78bf33=new Set();for(const _0x1fa768 of _0x2dfb09)if('tablePaste'==_0x1fa768['subType'])for(const _0x111823 of _0x1fa768['getMarkers']()){const _0x1bd83c=_0x111823['getRange']()['getContainedElement']();if(_0x1bd83c){if(_0x1bd83c['is']('element','tableCellSuggestion')&&ke(_0x1bd83c)){_0x1fa768['removeMarker'](_0x111823['name']),_0x556867['add'](_0x1bd83c),_0xc4db7c=!0x0;const _0x1fdbba=_0x1bd83c['nextSibling'],_0x84e0a2=_0x1bd83c['previousSibling'],_0x4e5d5d=_0x1fdbba&&_0x1fdbba['is']('element','tableCellSuggestion'),_0x4e2e74=_0x84e0a2&&_0x84e0a2['is']('element','tableCellSuggestion');_0x4e5d5d&&!_0x556867['has'](_0x1fdbba)&&_0x78bf33['add'](_0x1fdbba),_0x4e2e74&&!_0x556867['has'](_0x84e0a2)&&_0x78bf33['add'](_0x84e0a2);}else _0x1bd83c['is']('element','paragraph')&&_0x1bd83c['isEmpty']&&(_0x1fa768['removeMarker'](_0x111823['name']),_0xc4db7c=!0x0);}}else{if('tablePasteCell'==_0x1fa768['subType']){if(!_0x1fa768['attributes']||!_0x1fa768['attributes']['tablePasteChainId'])continue;const _0x508cf5=_0x1fa768['attributes']['markerAttributes'];if(_0x508cf5&&Object['keys'](_0x508cf5)['length'])continue;const _0x423e76=_0x1fa768['attributes']['tablePasteChainId'];let _0x182971=!0x0,_0xc0bd25=!0x0;for(const _0x589957 of _0x2dfb09)if(_0x589957['subType']&&_0x589957['subType']['startsWith']('tablePaste')){if(!_0x589957['attributes']['tablePasteChainId']){_0xc0bd25=!0x1;break;}if(_0x589957['id']!=_0x1fa768['id']&&_0x589957['attributes']['tablePasteChainId']==_0x423e76){_0x182971=!0x1;break;}}_0xc0bd25&&_0x182971&&(_0x1fa768['removeMarkers'](),_0xc4db7c=!0x0);}}for(const _0x54502d of _0x556867)_0xc4b8eb['remove'](_0x54502d);for(const _0x1551ea of _0x78bf33)_0xc4b8eb['unwrap'](_0x1551ea);return _0xc4db7c;}),_0x22f3a9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5a18e2=>_0x10d607(_0x5a18e2),'converterPriority':'high'}),_0x22f3a9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x20f627,_0x527dd1)=>_0x527dd1['options']['showSuggestionHighlights']?_0x10d607(_0x20f627,!0x1):null,'converterPriority':'high'});const _0x197142=_0x22f3a9['editing']['view'];this['listenTo'](_0x197142['document'],'clipboardOutput',(_0x15275d,_0x16b595)=>{const _0x53d3a8=[];for(const _0x38ad94 of _0x197142['createRangeIn'](_0x16b595['content'])['getItems']())_0x38ad94['is']('element','suggestion-td')&&_0x53d3a8['push'](_0x38ad94);_0x197142['change'](_0x4de4e3=>{for(const _0x2374e8 of _0x53d3a8)_0x4de4e3['move'](_0x4de4e3['createRangeIn'](_0x2374e8),_0x4de4e3['createPositionBefore'](_0x2374e8)),_0x4de4e3['remove'](_0x2374e8);});});}}function ke(_0x43507b){if(_0x43507b['isEmpty'])return!0x0;const _0xec8ae3=_0x43507b['getChild'](0x0);return _0xec8ae3['is']('element','paragraph')&&_0xec8ae3['isEmpty'];}function Re(_0x3329c9,_0x5b7eb4={},_0x32943){for(const {isAnchor:_0x1572fc,cellHeight:_0x464059,cellWidth:_0x3e5291}of _0x32943['createTableWalker'](_0x3329c9,{'includeAllSlots':!0x0,..._0x5b7eb4}))if(!_0x1572fc||0x1!=_0x464059||0x1!=_0x3e5291)return!0x1;return!0x0;}class Nt extends _0x3415fa{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5cac83=this['editor']['plugins']['get']('TrackChangesEditing');_0x5cac83['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5cac83['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5cac83['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5cac83['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5cac83['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5cac83['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2f9a9c,_0x4802a3){const _0x45d619=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57d968=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x180350=_0x4802a3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x21ef29=_0x57d968['getColumnGroupElement'](_0x180350);let _0x33b2fd=_0x21ef29?_0x57d968['getTableColumnsWidths'](_0x21ef29):null,_0x3896b9=_0x180350['getAttribute']('tableWidth')||null;const _0x322387=_0x4802a3['tableWidth']||_0x3896b9,_0xf02d8c=_0x4802a3['columnWidths']||_0x33b2fd,_0x288c3b=this['editor']['plugins']['get']('Users')['me'];for(const _0x3b262a of _0x45d619['getSuggestions']()){const _0x559f6a=_0x3b262a['getContainedElement']();if('resizeTable'===_0x3b262a['subType']&&_0x559f6a===_0x180350){_0x3b262a['author']!==_0x288c3b&&_0x3b262a['discard']();const _0x211247=_0x3b262a['data']['commandParams'];_0x3896b9=_0x211247[0x0]['tableWidth'],_0x33b2fd=_0x211247[0x0]['columnWidths'];break;}}_0x2f9a9c({'table':_0x180350,'tableWidth':_0x322387,'columnWidths':_0xf02d8c}),_0x45d619['markBlockFormat'](_0x180350,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3896b9,'columnWidths':_0x33b2fd}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x27d4ba){if('formatBlock'!=_0x27d4ba['type']&&'formatInline'!=_0x27d4ba['type'])return;const {data:_0x111063}=_0x27d4ba;if(_0x111063&&'resizeTable'===_0x111063['formatGroupId']){const _0x48b381='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x48b381)};}}}class Dt extends _0x3415fa{['afterInit'](){const _0x18f7b1=this['editor'];_0x18f7b1['plugins']['has']('Template')&&_0x18f7b1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3415fa{['afterInit'](){const _0xff4604=this['editor'];if(!_0xff4604['commands']['get']('insertTableOfContents'))return;_0xff4604['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1237c0=_0xff4604['plugins']['get']('TrackChangesEditing'),_0x383cbf=_0xff4604['locale'];_0x1237c0['descriptionFactory']['registerElementLabel']('tableOfContents',_0x362550=>o(_0x383cbf,'ELEMENT_TABLE_OF_CONTENTS',_0x362550));}}class $t extends _0x3415fa{['afterInit'](){const _0x1a066c=this['editor'];if(!_0x1a066c['plugins']['has']('Title'))return;const _0x49d997=_0x1a066c['plugins']['get']('TrackChangesEditing');_0x49d997['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1a066c['locale'],'ELEMENT_TITLE')),_0x1a066c['model']['document']['registerPostFixer'](_0x34138d=>{let _0x3dbdab=!0x1;const _0x29f608=Array['from'](_0x1a066c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x44472a,data:_0x295929}of _0x29f608){const {group:_0x342a84}=_0x49d997['_splitMarkerName'](_0x44472a);if('suggestion'!==_0x342a84||!_0x295929['newRange'])continue;const _0x133230=_0x295929['newRange'],_0x2d70b0=_0x133230['end']['nodeBefore'];if(!_0x2d70b0||!_0x2d70b0['is']('element','title-content'))continue;if(!_0x133230['start']['isTouching'](_0x133230['end']))continue;const _0x141fc6=_0x1a066c['model']['schema']['getNearestSelectionRange'](_0x133230['end'],'forward');if(_0x141fc6&&_0x141fc6['isCollapsed']){const _0x38309e=_0x34138d['createRange'](_0x133230['start'],_0x141fc6['start']);_0x38309e['isEqual'](_0x133230)||(_0x34138d['updateMarker'](_0x44472a,{'range':_0x38309e}),_0x3dbdab=!0x0);}_0x3dbdab||(_0x34138d['removeMarker'](_0x44472a),_0x3dbdab=!0x0);}return _0x3dbdab;});}}class Bt extends _0x3415fa{['afterInit'](){const _0x44a3a2=this['editor'],_0x52a471=_0x44a3a2['plugins']['get']('TrackChangesEditing');_0x44a3a2['plugins']['has']('UndoEditing')&&(_0x52a471['enableCommand']('undo'),_0x52a471['enableCommand']('redo'));}}class xt extends _0x3415fa{static get['requires'](){return[It];}['afterInit'](){const _0xf5f885=this['editor'];if(!_0xf5f885['plugins']['has']('TableCaptionEditing'))return;_0xf5f885['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x3415fa{['tableProperties'];['tableCellProperties'];constructor(_0x5130e3){super(_0x5130e3),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x15f75d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x162e3f of this['tableProperties'])_0x15f75d['enableCommand'](_0x162e3f,(_0xbf6550,_0x222dd9)=>{const _0x5d61eb=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x162e3f,[_0x5d61eb],this['tableProperties'],'tableProperties',_0xbf6550,_0x222dd9);});_0x15f75d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x15f75d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15f75d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x15aec5,_0x253dcc)=>this['handleDiscardAction'](this['tableProperties'],_0x15aec5,_0x253dcc)),_0x15f75d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3f6295 of this['tableCellProperties'])_0x15f75d['enableCommand'](_0x3f6295,(_0xe119f5,_0x3805f1)=>{const _0x423388=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3f6295,_0x423388,this['tableCellProperties'],'tableCellProperties',_0xe119f5,_0x3805f1);});_0x15f75d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x15f75d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15f75d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x549b39,_0x5288ef)=>this['handleDiscardAction'](this['tableCellProperties'],_0x549b39,_0x5288ef)),_0x15f75d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x15f75d['descriptionFactory']['registerDescriptionCallback'](_0x22e07c=>this['handleSuggestionDescription'](_0x22e07c));}['_handlePropertyChange'](_0x4f10c9,_0x52041e,_0x409351,_0x201d9c,_0x3a01af,_0x31f507){const _0x386d46=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x31f507['batch'],()=>{for(const _0x4cfc0a of _0x52041e){if(this['_getSuggestion'](_0x4cfc0a,_0x201d9c))_0x3a01af(_0x31f507);else{const _0x1c8bb5={};for(const _0x157d6b of _0x409351){const _0x4df517=_0x4cfc0a['getAttribute'](_0x157d6b);void 0x0!==_0x4df517&&(_0x1c8bb5[_0x157d6b]=_0x4df517);}_0x3a01af(_0x31f507),_0x386d46['markBlockFormat'](_0x4cfc0a,{'commandParams':[_0x1c8bb5]},[],_0x201d9c);}}});}['handleDiscardAction'](_0x3d3127,_0x1bc090,_0x3509b8){const _0x54a902=_0x1bc090[0x0]['start']['nodeAfter'],_0x5311a8=_0x3509b8['commandParams'][0x0];this['editor']['model']['change'](_0x20b425=>{for(const _0x1033f3 of _0x3d3127)void 0x0!==_0x5311a8[_0x1033f3]?_0x20b425['setAttribute'](_0x1033f3,_0x5311a8[_0x1033f3],_0x54a902):_0x20b425['removeAttribute'](_0x1033f3,_0x54a902);});}['handleSuggestionDescription'](_0x3d77b0){if(_0x3d77b0['data'])switch(_0x3d77b0['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'](_0x4c4a0a,_0x177972){const _0x3ecc78=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2f47df of _0x3ecc78['getSuggestions']({'skipNotAttached':!0x0})){const _0x2a8bff=_0x2f47df['getContainedElement']();if(_0x2f47df['subType']===_0x177972&&_0x2a8bff===_0x4c4a0a)return _0x2f47df;}return null;}}const m='$elementName';class p extends _0x3415fa{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x53d2c3,_0x1dc207,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x2669eb){function _0x1bd0a8(_0x1aa664){return _0x1aa664['map'](_0x3830d2=>String['fromCharCode'](_0x3830d2))['join']('');}super(_0x2669eb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x14e1b1,_0x218ff9,_0x365319,_0x13aac4)=>{this['_model']['change'](()=>{for(const _0x3c4485 of[..._0x13aac4,..._0x365319])this['_model']['markers']['has'](_0x3c4485)&&_0x2669eb['editing']['reconvertMarker'](_0x3c4485);});}),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']=_0x2669eb['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(),_0x2669eb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2669eb['config']['get']('trackChanges.trackFormatChanges'),_0x2669eb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2669eb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2669eb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1bd0a8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1bd0a8([0x34,0x30,0x34,0x38,0x31,0x38,0x34,0x34]);}['init'](){const _0x377d43=this['editor'],_0x37f5c6=(_0x4740db,_0x1f6135)=>{if('attribute'!=_0x4740db)return'ck-suggestion-marker-'+_0x4740db;const _0x25428d=_0x1f6135['split']('|')[0x0];return this['_isBlockAttribute'](_0x25428d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x377d43['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x429252=>{const {id:_0x398bd0,authorId:_0x58d9e8,type:_0xbee736,subType:_0x270269}=this['_splitMarkerName'](_0x429252['markerName']),_0x12e942=['ck-suggestion-marker',_0x37f5c6(_0xbee736,_0x270269)];let _0x381233=0xbb8;return this['activeMarkers']['includes'](_0x429252['markerName'])&&(_0x12e942['push']('ck-suggestion-marker--active'),_0x381233=0xbc2),'deletion'==_0xbee736&&(_0x381233+=0x5),{'classes':_0x12e942,'attributes':{'data-suggestion':_0x398bd0,'data-author-id':_0x58d9e8},'priority':_0x381233};}}),_0x377d43['conversion']['for']('dataDowncast')['add'](_0xc9bf35=>{_0xc9bf35['on']('addMarker:suggestion',(_0x1e871c,_0x2d4d3e,_0x45709d)=>{if(!_0x45709d['options']['showSuggestionHighlights'])return;const _0x37129b=_0x2d4d3e['item'];if(!_0x37129b)return;const _0x520117=_0x45709d['mapper']['toViewElement'](_0x37129b);_0x377d43['model']['schema']['isObject'](_0x37129b)&&_0x520117&&!_0x520117['getCustomProperty']('widget')&&_0x520117['is']('containerElement')&&_0x9ea13e(_0x520117,_0x45709d['writer']);},{'priority':'high'});}),_0x377d43['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1f8aae,_0x316eea)=>{if(!_0x316eea['options']['showSuggestionHighlights'])return null;const {type:_0x4e431f,subType:_0x533d41}=this['_splitMarkerName'](_0x1f8aae['markerName']);return{'classes':['ck-suggestion-marker',_0x37f5c6(_0x4e431f,_0x533d41)],'priority':0xbb8};}});const _0x5710db=({showActiveMarkers:_0x4a457d=!0x0,isAttributeSuggestion:_0x5d347c=!0x1}={})=>(_0x4fa1d4,_0x6fe0de,_0x152016)=>{if(!_0x6fe0de['item'])return;const {id:_0x559e08,authorId:_0x2f5c67}=this['_splitMarkerName'](_0x6fe0de['markerName']);if(_0x5d347c){const _0x3acf03=this['_suggestions']['get'](_0x559e08),_0x4d9b79=this['_getAttributeKey'](_0x3acf03);if(!this['_isBlockAttribute'](_0x4d9b79))return;}if(_0x6fe0de['item']['is']('selection'))return void _0x152016['consumable']['consume'](_0x6fe0de['item'],_0x4fa1d4['name']);const _0xe30675=_0x152016['mapper']['toViewElement'](_0x6fe0de['item']);if(_0x6fe0de['item']['is']('element')&&_0x377d43['model']['schema']['isBlock'](_0x6fe0de['item'])&&!_0xe30675['getCustomProperty']('addHighlight')){_0x152016['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xe30675),_0x152016['writer']['setAttribute']('data-suggestion',_0x559e08,_0xe30675),_0x152016['writer']['setAttribute']('data-author-id',_0x2f5c67,_0xe30675),_0x152016['mapper']['bindElementToMarker'](_0xe30675,_0x6fe0de['markerName']),_0x4a457d&&(this['activeMarkers']['includes'](_0x6fe0de['markerName'])?_0x152016['writer']['addClass']('ck-suggestion-marker--active',_0xe30675):_0x152016['writer']['removeClass']('ck-suggestion-marker--active',_0xe30675));for(const _0x30d04d of _0x377d43['model']['createRangeIn'](_0x6fe0de['item'])['getItems']())_0x152016['consumable']['consume'](_0x30d04d,_0x4fa1d4['name']);_0x152016['consumable']['consume'](_0x6fe0de['item'],_0x4fa1d4['name']);}};_0x377d43['conversion']['for']('dataDowncast')['add'](_0x566a57=>{_0x566a57['on']('addMarker:suggestion:formatBlock',(_0x4315a4,_0x2c707d,_0x350251)=>{_0x350251['options']['showSuggestionHighlights']&&_0x5710db({'showActiveMarkers':!0x1})(_0x4315a4,_0x2c707d,_0x350251);},{'priority':'highest'});}),_0x377d43['conversion']['for']('dataDowncast')['add'](_0x182ecf=>{_0x182ecf['on']('addMarker:suggestion:attribute',(_0x3ae7b1,_0x5052c0,_0x3ef6ca)=>{_0x3ef6ca['options']['showSuggestionHighlights']&&_0x5710db({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3ae7b1,_0x5052c0,_0x3ef6ca);},{'priority':'highest'});}),_0x377d43['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x27034,_0x10df41)=>_0x10df41['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x27034['substr'](0xb)}}),_0x377d43['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xf862bf,{writer:_0x559246})=>{let _0x169b59='suggestion:'+_0xf862bf['getAttribute']('suggestion-type')+':'+_0xf862bf['getAttribute']('id');return _0xf862bf['getAttribute']('marker-count')&&(_0x169b59+=':'+_0xf862bf['getAttribute']('marker-count')),_0x559246['createElement']('$marker',{'data-name':_0x169b59});}}),_0x377d43['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x377d43['conversion']['for']('editingDowncast')['add'](_0x273d08=>{_0x273d08['on']('addMarker:suggestion:formatBlock',_0x5710db(),{'priority':'high'});}),_0x377d43['conversion']['for']('editingDowncast')['add'](_0x53d998=>{_0x53d998['on']('addMarker:suggestion:attribute',_0x5710db({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x377d43['conversion']['for']('editingDowncast')['add'](_0x2ab7e6=>{_0x2ab7e6['on']('removeMarker:suggestion:formatBlock',(_0x509daa,_0x3748d5,_0x385842)=>{const _0x5e608e=_0x385842['mapper']['markerNameToElements'](_0x3748d5['markerName']);if(_0x5e608e){for(const _0xd02c01 of _0x5e608e)_0xd02c01['getCustomProperty']('addHighlight')||(_0x385842['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xd02c01),_0x385842['writer']['removeAttribute']('data-suggestion',_0xd02c01),_0x385842['writer']['removeAttribute']('data-author-id',_0xd02c01),_0x385842['mapper']['unbindElementFromMarkerName'](_0xd02c01,_0x3748d5['markerName']));}},{'priority':'high'});}),_0x377d43['conversion']['for']('editingDowncast')['add'](_0x403d7d=>{_0x403d7d['on']('removeMarker:suggestion:attribute',(_0x30bc38,_0x4212cf,_0x2651e9)=>{const _0x4cadad=_0x2651e9['mapper']['markerNameToElements'](_0x4212cf['markerName']);if(!_0x4cadad)return;const {id:_0x5c15da}=this['_splitMarkerName'](_0x4212cf['markerName']),_0x21ecaa=this['_suggestions']['get'](_0x5c15da),_0x52c8d0=this['_getAttributeKey'](_0x21ecaa);if(this['_isBlockAttribute'](_0x52c8d0)){for(const _0x40bf88 of _0x4cadad)_0x40bf88['getCustomProperty']('addHighlight')||(_0x2651e9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x40bf88),_0x2651e9['writer']['removeAttribute']('data-suggestion',_0x40bf88),_0x2651e9['writer']['removeAttribute']('data-author-id',_0x40bf88),_0x2651e9['mapper']['unbindElementFromMarkerName'](_0x40bf88,_0x4212cf['markerName']));}},{'priority':'high'});}),_0x377d43['model']['document']['registerPostFixer'](_0x7444f=>{let _0x40bc5e=!0x1;const _0x43717e=Array['from'](_0x377d43['model']['document']['differ']['getChangedMarkers']()),_0x4f7c57=new Set();for(const {name:_0x2e4600,data:_0x5d9992}of _0x43717e){const {group:_0x3a4bcc,type:_0x3b88d7,subType:_0x37122b,id:_0x57ced7}=this['_splitMarkerName'](_0x2e4600);if('suggestion'!==_0x3a4bcc)continue;const _0x1ce314=this['_suggestions']['get'](_0x57ced7);if(null!=_0x5d9992['newRange']){'formatInline'==_0x3b88d7&&(_0x40bc5e=_0x40bc5e||Ut(_0x5d9992['newRange'],_0x2e4600,_0x7444f,_0x377d43['model']['schema']));const _0x34fec3='attribute'==_0x3b88d7&&this['_isBlockAttribute'](_0x37122b['split']('|')[0x0]);if(_0x5d9992['newRange']['isCollapsed']||'$graveyard'==_0x5d9992['newRange']['root']['rootName']||'formatBlock'==_0x3b88d7&&!Ft(_0x5d9992['newRange'])||_0x34fec3&&!Ft(_0x5d9992['newRange'])||'deletion'==_0x3b88d7&&!(!Vt(_0x5bee06=_0x5d9992['newRange'])&&!function(_0x78fc0b){return _0x78fc0b['start']['parent']==_0x78fc0b['end']['nodeBefore']&&_0x78fc0b['start']['isAtEnd'];}(_0x5bee06)))_0x7444f['removeMarker'](_0x2e4600),_0x40bc5e=!0x0;else{if(!_0x1ce314||!_0x1ce314['isInContent'])continue;if(_0x5d9992['newRange']&&_0x5d9992['oldRange']&&_0x5d9992['newRange']['isEqual'](_0x5d9992['oldRange']))continue;_0x4f7c57['add'](_0x1ce314);}}}var _0x5bee06;return _0x4f7c57['size']>0x0&&(_0x40bc5e=!!this['_joinWithAdjacentSuggestions'](_0x4f7c57)||_0x40bc5e),_0x40bc5e;}),_0x377d43['model']['document']['registerPostFixer'](_0xd63550=>{let _0x5ec2bc=!0x1;for(const _0x2692ec of _0x377d43['model']['document']['differ']['getChanges']())if('insert'==_0x2692ec['type'])for(const _0x344e4e of this['_suggestions']['values']()){if(_0x344e4e['isMultiRange']||!_0x344e4e['isInContent'])continue;const _0x3353d3='formatBlock'==_0x344e4e['type'],_0x424374=this['_getAttributeKey'](_0x344e4e),_0x22ffca=_0x424374&&this['_isBlockAttribute'](_0x424374);if(!_0x3353d3&&!_0x22ffca)continue;const _0x597914=_0x344e4e['getFirstRange']();if(_0x597914['start']['parent']!=_0x597914['end']['parent']&&!_0x597914['end']['isAtEnd']){const _0x26b919=_0x377d43['model']['createPositionAt'](_0x597914['start']['nodeAfter'],'end'),_0x4a551f=_0x377d43['model']['createRange'](_0x597914['start'],_0x26b919);_0xd63550['updateMarker'](_0x344e4e['getFirstMarker'](),{'range':_0x4a551f}),_0x5ec2bc=!0x0;}}return _0x5ec2bc;}),_0x377d43['model']['document']['registerPostFixer'](_0x45d006=>this['_processAttributeChanges'](_0x45d006)),_0x377d43['model']['document']['registerPostFixer'](_0x5e742f=>!_0x5e742f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5e742f)),_0x377d43['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x377d43['model']['document']['on']('change:data',(_0x49fea6,_0x221a0e)=>{if(!_0x221a0e['isLocal']||_0x221a0e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4d5d38=_0x377d43['model']['document']['differ']['getChanges']();if(0x0==_0x4d5d38['length'])return;const _0x257833=[],_0x40caa1=_0x4d5d38['filter'](_0x34386d=>'attribute'==_0x34386d['type']),_0x8264eb=_0x4d5d38['filter'](_0x356ab7=>'insert'==_0x356ab7['type']&&'$text'!=_0x356ab7['name']);for(const _0x955b02 of _0x40caa1)this['_isRegisteredAttribute'](_0x955b02['attributeKey'])&&_0x257833['push']({'key':_0x955b02['attributeKey'],'newValue':_0x955b02['attributeNewValue'],'oldValue':_0x955b02['attributeOldValue'],'range':Pt(_0x955b02['range'],_0x377d43['model'])});for(const _0x35d7d1 of _0x8264eb){if('rename'!=_0x35d7d1['action']&&'refresh'!=_0x35d7d1['action'])continue;const _0x53ce20=Lt(_0x35d7d1['position']['nodeAfter'],_0x377d43['model']),_0x2d4032=_0x35d7d1['before'];'rename'==_0x35d7d1['action']&&_0x257833['push']({'key':m,'newValue':_0x35d7d1['name'],'oldValue':_0x2d4032['name'],'range':_0x53ce20});for(const [_0x35cd42,_0x1f0c48]of _0x2d4032['attributes']){if(!this['_isRegisteredAttribute'](_0x35cd42))continue;const _0x29d5ec=_0x35d7d1['attributes']['get'](_0x35cd42);_0x1f0c48!==_0x29d5ec&&_0x257833['push']({'key':_0x35cd42,'newValue':_0x29d5ec,'oldValue':_0x1f0c48,'range':_0x53ce20});}for(const [_0x546257,_0x45838f]of _0x35d7d1['attributes'])this['_isRegisteredAttribute'](_0x546257)&&(_0x2d4032['attributes']['has'](_0x546257)||_0x257833['push']({'key':_0x546257,'newValue':_0x45838f,'oldValue':null,'range':_0x53ce20}));}0x0!=_0x257833['length']&&_0x377d43['model']['enqueueChange'](_0x221a0e,_0x1a5c8e=>{const _0x6b429e=_0x8d9c92();for(const {range:_0x2bf1aa,key:_0x45c307,oldValue:_0x23d39e,newValue:_0x243e0d}of _0x257833)this['markAttributeChange'](_0x2bf1aa,_0x45c307,_0x23d39e,_0x243e0d,{'groupId':_0x6b429e});this['_reduceExistingSuggestions'](_0x1a5c8e,_0x257833);});},{'priority':'lowest'}),_0x377d43['model']['markers']['on']('update:suggestion',(_0x514287,_0x21e782,_0x457876)=>{if(null==_0x457876){const {id:_0x21aad7}=this['_splitMarkerName'](_0x21e782['name']),_0x4ff496=this['_suggestions']['get'](_0x21aad7);_0x4ff496&&_0x4ff496['addMarkerName'](_0x21e782['name']);}}),_0x377d43['model']['document']['on']('change:data',()=>{const _0x178091=Array['from'](_0x377d43['model']['document']['differ']['getChangedMarkers']())['filter'](_0x33728b=>'suggestion'===this['_splitMarkerName'](_0x33728b['name'])['group']);if(0x0===_0x178091['length'])return;_0x178091['sort']((_0x29cb30,_0x22e500)=>{const _0x1c5bc8=_0x29cb30['data']['oldRange'],_0x31d1f4=_0x22e500['data']['oldRange'];return null===_0x1c5bc8&&null===_0x31d1f4?0x0:null===_0x1c5bc8&&null!==_0x31d1f4?-0x1:null!==_0x1c5bc8&&null===_0x31d1f4?0x1:_0x1c5bc8['start']['isBefore'](_0x31d1f4['start'])?-0x1:0x1;});const _0x375157=new Set(),_0x2c7487=new Set();for(const {name:_0x48f20e,data:_0x51cf6a}of _0x178091){const {id:_0x2430f7}=this['_splitMarkerName'](_0x48f20e);if(null===_0x51cf6a['oldRange']){const _0xb35952=this['_handleNewSuggestionMarker'](_0x48f20e);_0x2c7487['add'](_0xb35952);}else{const _0x31966d=this['_suggestions']['get'](_0x2430f7);null!==_0x51cf6a['newRange']||_0x31966d['isInContent']?(_0x375157['add'](_0x31966d['head']),_0x2c7487['add'](_0x31966d)):this['_removeSuggestion'](_0x31966d);}}_0x2c7487['size']>0x0&&this['_refreshSuggestionsChain'](_0x2c7487);for(const _0x4cce98 of _0x375157)this['fire']('suggestionChanged',_0x4cce98);}),_0x377d43['model']['on']('applyOperation',(_0x2231ac,_0x1c0279)=>{const _0x20df53=_0x1c0279[0x0];if(!this['_suggestions']['size'])return;if(!_0x20df53['isDocumentOperation'])return;if(_0x20df53['batch']['isUndo']||!_0x20df53['batch']['isLocal'])return;let _0xfba5ef,_0x625b72;switch(_0x20df53['type']){case'insert':_0xfba5ef=_0x377d43['model']['createPositionAt'](_0x20df53['position']),_0x625b72=_0xfba5ef['getShiftedBy'](_0x20df53['howMany']);break;case'split':_0xfba5ef=_0x377d43['model']['createPositionAt'](_0x20df53['splitPosition']),_0x625b72=_0x377d43['model']['createPositionAt'](_0x20df53['moveTargetPosition']);break;case'move':_0xfba5ef=_0x377d43['model']['createPositionAt'](_0x20df53['targetPosition']),_0x625b72=_0xfba5ef['getShiftedBy'](_0x20df53['howMany']);break;default:return;}const _0x5e3450=_0x377d43['model']['createRange'](_0xfba5ef,_0x625b72);_0x377d43['model']['change'](()=>{for(const {suggestion:_0x542c6a,meta:_0x143edb}of this['_findSuggestions'](_0x5e3450)){if(_0x542c6a['isMultiRange'])continue;if('formatInline'==_0x542c6a['type'])continue;const _0x3a46b4=this['_getAttributeKey'](_0x542c6a);if(_0x3a46b4&&this['_isBlockAttribute'](_0x3a46b4)&&'split'!=_0x20df53['type'])continue;const _0x2ec6d9=_0x542c6a['data']&&_0x542c6a['data']['multipleBlocks'];('formatBlock'!=_0x542c6a['type']||'split'==_0x20df53['type']&&!_0x2ec6d9)&&(_0x143edb['containsRangeInObject']||'insertion'==_0x542c6a['type']&&_0x143edb['isOwn']||_0x542c6a['getFirstRange']()['containsRange'](_0x5e3450)&&this['_breakSuggestionMarker'](_0x542c6a,_0xfba5ef,_0x625b72));}});},{'priority':'lowest'}),_0x377d43['model']['on']('deleteContent',(_0x239361,_0x52033a)=>{const _0x17e0f8=_0x52033a[0x0],_0x55aaf0=_0x52033a[0x1];if(_0x55aaf0&&_0x55aaf0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x17e0f8['isCollapsed'])return;const _0x23ae90=_0x377d43['model']['schema'],{start:_0x4514b9,end:_0x16b8c7}=_0x17e0f8['getFirstRange'](),_0x1be875=_0x4514b9['nodeAfter']&&_0x23ae90['isLimit'](_0x4514b9['nodeAfter'])?null:_0x23ae90['getNearestSelectionRange'](_0x4514b9,'forward'),_0x530a05=_0x16b8c7['nodeBefore']&&_0x23ae90['isLimit'](_0x16b8c7['nodeBefore'])?null:_0x23ae90['getNearestSelectionRange'](_0x16b8c7,'backward'),_0x1aee59=_0x377d43['model']['createRange'](_0x1be875?_0x1be875['start']:_0x4514b9,_0x530a05?_0x530a05['end']:_0x16b8c7);_0x377d43['model']['change'](_0x192cbc=>{this['markDeletion'](_0x1aee59);const _0x34edcf=_0x377d43['model']['schema']['getNearestSelectionRange'](_0x1aee59['start']);_0x17e0f8['is']('documentSelection')?_0x192cbc['setSelection'](_0x34edcf):_0x17e0f8['setTo'](_0x34edcf);}),_0x239361['stop']();},{'priority':_0x394182['normal']+0xa}),_0x377d43['model']['on']('insertContent',(_0x2ed5d2,_0x186431)=>{const _0x20795e=_0x186431[_0x186431['length']-0x1];_0x20795e&&_0x20795e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x377d43['model']['change'](()=>{let _0x1c9699=_0x377d43['model']['insertContent'](_0x186431[0x0],_0x186431[0x1],_0x186431[0x2],{'forceDefaultExecution':!0x0});if(!_0x1c9699)return;_0x2ed5d2['return']=_0x1c9699['clone']();const _0x1b5582=_0x1c9699['end']['nodeBefore'],_0x131b50=_0x377d43['model']['schema'];_0x1b5582&&_0x131b50['isBlock'](_0x1b5582)&&!_0x131b50['isObject'](_0x1b5582)&&(_0x1c9699=_0x377d43['model']['createRange'](_0x1c9699['start'],_0x377d43['model']['createPositionAt'](_0x1b5582,'end'))),this['markInsertion'](_0x1c9699);}),_0x2ed5d2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1a6c32=new x(_0x377d43,this['_suggestions']);_0x377d43['commands']['add']('acceptSuggestion',_0x1a6c32),this['enableCommand']('acceptSuggestion');const _0x496136=new R(_0x377d43,this['_suggestions']);_0x377d43['commands']['add']('discardSuggestion',_0x496136),this['enableCommand']('discardSuggestion'),_0x377d43['commands']['add']('acceptAllSuggestions',new E(_0x377d43,_0x1a6c32,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x377d43['commands']['add']('discardAllSuggestions',new E(_0x377d43,_0x496136,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x377d43['commands']['add']('acceptSelectedSuggestions',new O(_0x377d43,_0x1a6c32,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x377d43['commands']['add']('discardSelectedSuggestions',new O(_0x377d43,_0x496136,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2b1a75=_0x377d43['plugins']['get']('CommentsRepository');this['listenTo'](_0x2b1a75,'addComment',(_0x3261c7,{threadId:_0xfad66b})=>{const _0x590531=this['_suggestions']['get'](_0xfad66b);_0x590531&&_0x590531['commentThread']&&0x1===_0x590531['commentThread']['length']&&this['_updateSuggestionData'](_0xfad66b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2b1a75,'removeComment',(_0xacfde0,{threadId:_0xf0da2a})=>{const _0x1905f7=this['_suggestions']['get'](_0xf0da2a);_0x1905f7&&_0x1905f7['commentThread']&&!_0x1905f7['commentThread']['length']&&this['_updateSuggestionData'](_0xf0da2a,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x122784){if(this['_adapter'])throw new _0x267495('track-changes-adapter-already-set',this);this['_adapter']=_0x122784;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2cfc2f=!0x1,toJSON:_0x568310=!0x1}={}){const _0xb0526f=[];for(const _0x1fddd7 of this['_suggestions']['values']())_0x2cfc2f&&!_0x1fddd7['isInContent']||_0xb0526f['push'](_0x1fddd7);return _0x568310?_0xb0526f['map'](_0x41dbe5=>_0x41dbe5['toJSON']()):_0xb0526f;}['getSuggestion'](_0x2f56d0){const _0x984621=this['_suggestions']['get'](_0x2f56d0);if(!_0x984621)throw new _0x267495('track-changes-suggestion-not-found',this);return _0x984621;}['hasSuggestion'](_0x4cc6f7){return this['_suggestions']['has'](_0x4cc6f7);}['addSuggestionData'](_0x32ef99){const {authorId:_0x4d9b4b,id:_0x5ec59a,attributes:_0x47e35a}=_0x32ef99,[_0x3ed760,_0x1cd209]=_0x32ef99['type']['split'](':'),_0x2c3b37=this['_suggestions']['get'](_0x5ec59a)||this['_createSuggestion'](_0x3ed760,_0x1cd209,_0x5ec59a,_0x4d9b4b,_0x47e35a);if(this['_addThreadToSuggestion'](_0x2c3b37),this['_checkSuggestionCorrectness'](_0x2c3b37,_0x3ed760,_0x1cd209||null,_0x4d9b4b),_0x2c3b37['createdAt']=_0x32ef99['createdAt'],_0x2c3b37['_isDataLoaded']=!0x0,_0x47e35a&&_0x47e35a['@external']){const _0x4f3190=_0x47e35a['@external'],_0x4afbae=this['_getExternalAuthor'](_0x4f3190['authorName']);_0x2c3b37['authoredAt']=_0x4f3190['createdAt'],_0x2c3b37['author']=_0x4afbae,_0x2c3b37['isExternal']=!0x0;}else _0x2c3b37['authoredAt']=_0x32ef99['createdAt'];switch(_0x32ef99['data']&&(_0x2c3b37['data']=_0x32ef99['data']),_0x32ef99['attributes']&&(_0x2c3b37['attributes']=_0x32ef99['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2c3b37['_saved']=!0x0),this['_suggestionState']['get'](_0x2c3b37)){case'notReady':this['_suggestionState']['set'](_0x2c3b37,'dataReady');break;case'markerReady':_0x2c3b37['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2c3b37])),this['_refreshSuggestionsChain'](new Set([_0x2c3b37])),this['_suggestionState']['set'](_0x2c3b37,'ready'),this['fire']('suggestionLoaded',_0x2c3b37)):this['_suggestionState']['set'](_0x2c3b37,'removed');}return _0x2c3b37;}['acceptSuggestion'](_0xd99ce){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1b2893 of _0xd99ce['getAllAdjacentSuggestions']())_0x1b2893['accept']();});});}['discardSuggestion'](_0x1b9a0c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1433f3 of _0x1b9a0c['getAllAdjacentSuggestions']())_0x1433f3['discard']();});});}['enableCommand'](_0x239250,_0x3bbf9e){const _0x5e82f7=this['editor']['commands']['get'](_0x239250);if(!_0x5e82f7)throw new _0x267495('track-changes-command-not-found',this,{'commandName':_0x239250});if(this['_enabledCommands']['has'](_0x5e82f7))throw new _0x267495('track-changes-enable-command-twice',this,{'commandName':_0x239250});this['_enabledCommands']['add'](_0x5e82f7),_0x3bbf9e&&_0x5e82f7['on']('execute',(_0x45d160,_0x4b7929)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4b7929['length']>0x0&&_0x4b7929[_0x4b7929['length']-0x1]&&_0x4b7929[_0x4b7929['length']-0x1]['forceDefaultExecution']?_0x4b7929['pop']():(_0x45d160['return']=_0x3bbf9e((..._0x46af0b)=>_0x5e82f7['execute'](..._0x46af0b,{'forceDefaultExecution':!0x0}),..._0x4b7929),_0x45d160['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x21f104){let _0x35e411,_0x5d3c82;const _0x1ec766=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x35e411=_0x21f104();}catch(_0x1a831a){_0x5d3c82=_0x1a831a;}return _0x1ec766||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5d3c82&&_0x267495['rethrowUnexpectedError'](_0x5d3c82,this),_0x35e411;}['markInsertion'](_0x1f08e1,_0x2060d8=null,_0x282c2c={}){if(_0x1f08e1['isCollapsed'])return null;const _0x1915af=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4b62a1,meta:_0x3e2b95}of this['_findSuggestions'](_0x1f08e1,'insertion'))if(_0x3e2b95['isOwn']){if(!_0x3e2b95['isNextTo']){if(_0x3e2b95['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4b62a1,_0x282c2c))continue;return _0x4b62a1;}if(qt(_0x4b62a1,_0x282c2c))return _0x4b62a1;this['_breakSuggestionMarker'](_0x4b62a1,_0x1f08e1['start'],_0x1f08e1['end']);break;}if(_0x2060d8==_0x4b62a1['subType']&&qt(_0x4b62a1,_0x282c2c)){const _0x24644b=_0x4b62a1['getFirstRange']();return _0x24644b['start']['isEqual'](_0x1f08e1['end'])?this['_setSuggestionRange'](_0x4b62a1,this['_model']['createRange'](_0x1f08e1['start'],_0x24644b['end'])):this['_setSuggestionRange'](_0x4b62a1,this['_model']['createRange'](_0x24644b['start'],_0x1f08e1['end'])),_0x4b62a1;}}const _0x578463=_0x8d9c92(),_0x5c6ba7=_0x1915af['id'],_0x32cddc=_0x2060d8?'insertion:'+_0x2060d8:'insertion',_0xd0dffa=this['_setSuggestionData']({'id':_0x578463,'type':_0x32cddc,'createdAt':new Date(),'authorId':_0x5c6ba7,'attributes':_0x282c2c});return this['_addSuggestionMarker'](_0x32cddc,_0x578463,_0x5c6ba7,_0x1f08e1),_0xd0dffa;}['markMultiRangeInsertion'](_0x1f533a,_0x114e9e='multi',_0x4637c5={}){const _0xb03ea2=this['editor']['plugins']['get']('Users')['me'],_0xb43c8c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x114e9e,'join');for(const _0x405582 of this['getSuggestions']())if(_0x405582['author']['id']==_0xb03ea2['id']&&'insertion'==_0x405582['type']&&_0x405582['subType']==_0x114e9e&&qt(_0x405582,_0x4637c5)&&(_0xb43c8c(_0x405582['getRanges'](),_0x1f533a)||_0xb43c8c(_0x1f533a,_0x405582['getRanges']()))){for(const _0x1f99e3 of _0x1f533a)_0x405582['addRange'](_0x1f99e3);return _0x405582;}for(const {suggestion:_0x405f84,meta:_0x34fecc}of this['_findSuggestions'](_0x1f533a,'insertion')){if(!_0x34fecc['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x34fecc['containsRangeInObject'])continue;if(!qt(_0x405f84,_0x4637c5))continue;let _0x4741de=!0x0;for(const _0x2cd53e of _0x405f84['getRanges']())for(const _0x49d0c8 of _0x1f533a)if(!_0x2cd53e['containsRange'](_0x49d0c8)){_0x4741de=!0x1;break;}if(_0x4741de)return _0x405f84;}const _0x2f6b48=_0x8d9c92(),_0x4653c9=_0xb03ea2['id'],_0x4b465b='insertion:'+_0x114e9e,_0x130e43=this['_setSuggestionData']({'id':_0x2f6b48,'type':_0x4b465b,'createdAt':new Date(),'authorId':_0x4653c9,'attributes':_0x4637c5});for(const _0x48f553 of _0x1f533a)this['_addSuggestionMarker'](_0x4b465b,_0x2f6b48,_0x4653c9,_0x48f553,u['getMultiRangeId']());return _0x130e43;}['markInlineFormat'](_0x4e4b48,_0x19d3ee,_0x3d1436=null,_0x363dc6={}){if(_0x3d1436=_0x3d1436||Gt(_0x19d3ee),_0x4e4b48['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1bcf7e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3d1436,'accept');return this['forceDefaultExecution'](()=>_0x1bcf7e([_0x4e4b48],_0x19d3ee,_0x363dc6)),null;}const _0x17b168=this['editor']['plugins']['get']('Users')['me'],_0x47ef3e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x16a5f1,meta:_0x36005a}of this['_findSuggestions'](_0x4e4b48,'insertion'))_0x36005a['isOwn']&&!_0x36005a['isInsideObject']&&_0x47ef3e['push'](..._0x16a5f1['getRanges']());}const _0x496d52=function(_0x458d5e,_0xb3523a){const _0x3b8452=[];for(const _0x361907 of _0xb3523a){const _0x44eaa5=_0x458d5e['getIntersection'](_0x361907);_0x44eaa5&&_0x3b8452['push'](_0x44eaa5);}return _0x3b8452;}(_0x4e4b48,_0x47ef3e),_0x599fe8=function(_0x4aab67,_0x21981c){const _0x3a25e1=[_0x4aab67];for(const _0x5b2755 of _0x21981c){let _0x543114=0x0;for(;_0x543114<_0x3a25e1['length'];){const _0x43eece=_0x3a25e1[_0x543114]['getDifference'](_0x5b2755);_0x3a25e1['splice'](_0x543114,0x1,..._0x43eece),_0x543114+=_0x43eece['length'];}}return _0x3a25e1;}(_0x4e4b48,_0x47ef3e);_0x496d52['length']&&this['_model']['change'](()=>{for(const _0x52a500 of _0x496d52){const _0x5478dd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3d1436,'accept');this['forceDefaultExecution'](()=>_0x5478dd([_0x52a500],_0x19d3ee,_0x363dc6));}});for(const _0x200a95 of _0x599fe8){let _0x24cdc9=null,_0xb517e6=_0x200a95['start'],_0x3d91c4=_0x200a95['end'];for(const {suggestion:_0x32e7d5,meta:_0x1beb78}of this['_findSuggestions'](_0x200a95,'formatInline')){if(!_0x1beb78['isOwn'])continue;if(_0x32e7d5['subType']!=_0x3d1436)continue;if(!qt(_0x32e7d5,_0x363dc6))continue;const _0x78b2e3=_0x32e7d5['getFirstRange']();if(_0x78b2e3['containsRange'](_0x200a95,!0x0))return null;_0xb517e6=_0xb517e6['isBefore'](_0x78b2e3['start'])?_0xb517e6:_0x78b2e3['start'],_0x3d91c4=_0x3d91c4['isAfter'](_0x78b2e3['end'])?_0x3d91c4:_0x78b2e3['end'],_0x24cdc9?_0x78b2e3['start']['isBefore'](_0x24cdc9['getFirstRange']()['start'])?(_0x24cdc9['removeMarkers'](),_0x24cdc9=_0x32e7d5):_0x32e7d5['removeMarkers']():_0x24cdc9=_0x32e7d5;}const _0x2e3b0e=this['_model']['createRange'](_0xb517e6,_0x3d91c4);if(_0x24cdc9)this['_setSuggestionRange'](_0x24cdc9,_0x2e3b0e);else{const _0x5abc0a=_0x8d9c92(),_0x223a9b=_0x17b168['id'];this['_setSuggestionData']({'id':_0x5abc0a,'type':'formatInline:'+_0x3d1436,'data':_0x19d3ee,'createdAt':new Date(),'authorId':_0x223a9b,'attributes':_0x363dc6}),this['_addSuggestionMarker']('formatInline:'+_0x3d1436,_0x5abc0a,_0x223a9b,_0x2e3b0e);}}return null;}['markBlockFormat'](_0x1a8a25,_0x42db32,_0x28342f=[],_0xf4b109=null,_0x2a7a89={}){_0x42db32['formatGroupId']||(_0x42db32['formatGroupId']=_0x42db32['commandName']),_0x42db32['multipleBlocks']=_0x1a8a25['is']('range'),_0xf4b109=_0xf4b109||Gt(_0x42db32);const _0x36f9b1=_0x28342f['map'](_0x1a225c=>Lt(_0x1a225c,this['_model'])),_0x2e2bab=_0x1a8a25['is']('range')?_0x1a8a25:Lt(_0x1a8a25,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1fcdfb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf4b109,'accept');return this['forceDefaultExecution'](()=>_0x1fcdfb([_0x2e2bab],_0x42db32,_0x2a7a89)),null;}_0x36f9b1['push'](_0x2e2bab);let _0x392507=!0x0;for(const _0x2d5e1f of _0x36f9b1)if(!this['_rangeIsInLocalUserInsertion'](_0x2d5e1f)){_0x392507=!0x1;break;}if(_0x392507&&'always'!==this['_trackFormatChanges']){const _0x5054ae=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf4b109,'accept');return this['forceDefaultExecution'](()=>_0x5054ae([_0x2e2bab],_0x42db32,_0x2a7a89)),null;}let _0x32aebc=null,_0x5ce4a7=_0x2e2bab['start'],_0x4505d4=_0x2e2bab['end'];for(const {suggestion:_0x3cf013,meta:_0x1bf9c2}of this['_findSuggestions'](_0x2e2bab,'formatBlock')){if(!_0x1bf9c2['isOwn'])continue;if(_0x1bf9c2['isNextTo']||_0x1bf9c2['containsRangeInObject']||_0x1bf9c2['isInsideObject'])continue;if(_0x3cf013['data']['formatGroupId']!=_0x42db32['formatGroupId'])continue;if(!qt(_0x3cf013,_0x2a7a89))continue;const _0x399b42=_0x3cf013['getFirstRange']();if(_0x3cf013['subType']==_0xf4b109){if(_0x399b42['containsRange'](_0x2e2bab,!0x0))return null;_0x5ce4a7=_0x5ce4a7['isBefore'](_0x399b42['start'])?_0x5ce4a7:_0x399b42['start'],_0x4505d4=_0x4505d4['isAfter'](_0x399b42['end'])?_0x4505d4:_0x399b42['end'],_0x32aebc?_0x399b42['start']['isBefore'](_0x32aebc['getFirstRange']()['start'])?(_0x32aebc['removeMarkers'](),_0x32aebc=_0x3cf013):_0x3cf013['removeMarkers']():_0x32aebc=_0x3cf013;}else{const _0x208f5b=_0x2e2bab['getIntersection'](_0x399b42);this['_cutOutSuggestionMarker'](_0x3cf013,_0x208f5b);}}const _0x2098ec=this['editor']['plugins']['get']('Users')['me'],_0x2cd19b=_0x8d9c92(),_0x5daacb=_0x2098ec['id'];if(_0x32aebc)return this['_setSuggestionRange'](_0x32aebc,this['_model']['createRange'](_0x5ce4a7,_0x4505d4)),_0x32aebc;{const _0xc914d5=this['_setSuggestionData']({'id':_0x2cd19b,'type':'formatBlock:'+_0xf4b109,'data':_0x42db32,'createdAt':new Date(),'authorId':_0x5daacb,'attributes':_0x2a7a89});return this['_addSuggestionMarker']('formatBlock:'+_0xf4b109,_0x2cd19b,_0x5daacb,this['_model']['createRange'](_0x5ce4a7,_0x4505d4)),_0xc914d5;}}['markMultiRangeBlockFormat'](_0x6c0bda,_0x3b203e,_0x2e96f2=[],_0x33d7b8=null,_0x42108b={}){_0x3b203e['formatGroupId']||(_0x3b203e['formatGroupId']=_0x3b203e['commandName']);const _0xb342cb=_0x6c0bda[0x0];_0x3b203e['multipleBlocks']=_0xb342cb['is']('range'),_0x33d7b8=_0x33d7b8||Gt(_0x3b203e);const _0x22e4aa=_0x2e96f2['map'](_0x4152fd=>Lt(_0x4152fd,this['_model'])),_0x7aedd8=_0xb342cb['is']('range')?_0x6c0bda:_0x6c0bda['map'](_0x11b55d=>Lt(_0x11b55d,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2813d2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33d7b8,'accept');return this['forceDefaultExecution'](()=>_0x2813d2(_0x7aedd8,_0x3b203e,_0x42108b)),null;}_0x22e4aa['push'](..._0x7aedd8);let _0x2af839=!0x0;for(const _0x2e9335 of _0x22e4aa)if(!this['_rangeIsInLocalUserInsertion'](_0x2e9335)){_0x2af839=!0x1;break;}if(_0x2af839&&'always'!==this['_trackFormatChanges']){const _0x25ab2a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33d7b8,'accept');return this['forceDefaultExecution'](()=>_0x25ab2a(_0x7aedd8,_0x3b203e,_0x42108b)),null;}const _0x4cfb57=this['editor']['plugins']['get']('Users')['me'];for(const _0x340e10 of this['getSuggestions']()){if(_0x340e10['author']['id']!=_0x4cfb57['id'])continue;if('formatBlock'!=_0x340e10['type']||_0x340e10['data']['formatGroupId']!=_0x3b203e['formatGroupId'])continue;if(!qt(_0x340e10,_0x42108b))continue;const _0x3acaea=_0x340e10['subType']==_0x33d7b8;for(let _0x4ad9c7=0x0;_0x4ad9c7<_0x7aedd8['length'];_0x4ad9c7++){const _0xc38974=_0x7aedd8[_0x4ad9c7];for(const _0x1a51e3 of _0x340e10['getMarkers']()){const _0x305313=_0x1a51e3['getRange']();if(_0xc38974['isEqual'](_0x305313)){_0x3acaea?(_0x7aedd8['splice'](_0x4ad9c7,0x1),_0x4ad9c7--):_0x340e10['removeMarker'](_0x1a51e3['name']);break;}}}}if(0x0==_0x7aedd8['length'])return null;const _0x27a7e2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33d7b8,'join');for(const _0x204f69 of this['getSuggestions']())if(_0x204f69['author']['id']==_0x4cfb57['id']&&'formatBlock'==_0x204f69['type']&&_0x204f69['data']['formatGroupId']==_0x3b203e['formatGroupId']&&_0x204f69['subType']==_0x33d7b8&&qt(_0x204f69,_0x42108b)&&(_0x27a7e2(_0x204f69['getRanges'](),_0x7aedd8)||_0x27a7e2(_0x7aedd8,_0x204f69['getRanges']()))){for(const _0x5e3e1b of _0x7aedd8)_0x204f69['addRange'](_0x5e3e1b);return _0x204f69;}const _0x17300d=_0x8d9c92(),_0xd200dc=_0x4cfb57['id'],_0x6d7a76='formatBlock:'+_0x33d7b8,_0x695d2a=this['_setSuggestionData']({'id':_0x17300d,'type':_0x6d7a76,'data':_0x3b203e,'createdAt':new Date(),'authorId':_0xd200dc,'attributes':_0x42108b});for(const _0xb82965 of _0x7aedd8)this['_addSuggestionMarker'](_0x6d7a76,_0x17300d,_0xd200dc,_0xb82965,u['getMultiRangeId']());return _0x695d2a;}['markDeletion'](_0x4f272b,_0x384fab=null,_0x3cfe65={}){if(_0x4f272b['isCollapsed'])return null;const _0x1b783f=this['editor']['plugins']['get']('Users')['me'],_0x152b66=new _0x5ac42d(_0x4f272b['start'],_0x4f272b['end']);for(const {suggestion:_0x118721,meta:_0x1692b0}of this['_findSuggestions'](_0x152b66,'insertion'))if(_0x1692b0['isOwn']&&!_0x1692b0['isNextTo']){if(_0x118721['isMultiRange']){const _0x5e3520=_0x118721['getRanges']()['filter'](_0x394aa5=>'$graveyard'!=_0x394aa5['root']['rootName']);_0x5e3520['every'](_0x5bb8d1=>_0x152b66['containsRange'](_0x5bb8d1,!0x0))&&_0x118721['discard']();if(_0x5e3520['some'](_0x426aeb=>_0x426aeb['containsRange'](_0x152b66,!0x0))){const _0x361548=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x384fab,'accept');return this['forceDefaultExecution'](()=>_0x361548([_0x152b66],null,_0x3cfe65)),null;}}else{const _0x562bd6=_0x152b66['getIntersection'](_0x118721['getFirstRange']());null!==_0x562bd6&&_0x118721['_onDiscard']([_0x562bd6],null,_0x3cfe65);}}if(_0x152b66['detach'](),_0x152b66['isCollapsed']||'$graveyard'==_0x152b66['root']['rootName'])return null;let _0x325a29=null,_0x220838=_0x152b66['start'],_0xaae9d8=_0x152b66['end'];const _0x13d7c5=this['_findSuggestions'](_0x152b66,'deletion');for(const {suggestion:_0x1ce555,meta:_0x22a375}of _0x13d7c5){const _0x3850ec=this['_model']['createRange'](_0x220838,_0xaae9d8);if(_0x22a375['isOwn']&&(this['_mergeNestedSuggestions']||!_0x22a375['containsRangeInObject']&&!_0x22a375['isInsideObject'])){if(_0x1ce555['isMultiRange']){if(!qt(_0x1ce555,_0x3cfe65))continue;let _0x2b52a9=!0x0;for(const _0x557659 of _0x1ce555['getRanges']()){if(_0x557659['containsRange'](_0x3850ec,!0x0))return _0x1ce555;_0x3850ec['containsRange'](_0x557659)||(_0x2b52a9=!0x1);}_0x2b52a9&&_0x1ce555['discard']();}else{const _0x289bac=_0x1ce555['getFirstRange']();if(_0x289bac['containsRange'](_0x3850ec,!0x0))return _0x1ce555;if(!qt(_0x1ce555,_0x3cfe65)){_0x3850ec['containsRange'](_0x289bac)?_0x1ce555['removeMarkers']():_0x289bac['containsPosition'](_0x220838)?_0x220838=_0x289bac['end']:_0x289bac['containsPosition'](_0xaae9d8)&&(_0xaae9d8=_0x289bac['start']);continue;}_0x220838=_0x220838['isBefore'](_0x289bac['start'])?_0x220838:_0x289bac['start'],_0xaae9d8=_0xaae9d8['isAfter'](_0x289bac['end'])?_0xaae9d8:_0x289bac['end'],_0x3cfe65=Object['assign']({},_0x1ce555['attributes']),_0x325a29?_0x289bac['start']['isBefore'](_0x325a29['getFirstRange']()['start'])?(_0x325a29['removeMarkers'](),_0x325a29=_0x1ce555):_0x1ce555['removeMarkers']():_0x325a29=_0x1ce555;}}}if(_0x325a29)return this['_setSuggestionRange'](_0x325a29,this['_model']['createRange'](_0x220838,_0xaae9d8)),_0x325a29;{const _0xe85fb4=_0x8d9c92(),_0x3196a2=this['_model']['createRange'](_0x220838,_0xaae9d8),_0x34c3dc=_0x1b783f['id'],_0x420efd=_0x384fab?'deletion:'+_0x384fab:'deletion',_0x1be7a=this['_setSuggestionData']({'id':_0xe85fb4,'type':_0x420efd,'createdAt':new Date(),'authorId':_0x34c3dc,'attributes':_0x3cfe65});return this['_addSuggestionMarker'](_0x420efd,_0xe85fb4,_0x34c3dc,_0x3196a2),_0x1be7a;}}['markMultiRangeDeletion'](_0x4f5e5f,_0x5e924f='multi',_0x3358be={}){const _0x51c66f=this['editor']['plugins']['get']('Users')['me'],_0xf8e4c=_0x4f5e5f['map'](_0x35e705=>new _0x5ac42d(_0x35e705['start'],_0x35e705['end'])),_0x3dc9bb=new Set();for(const {suggestion:_0x65fe1a,meta:_0x202b1b}of this['_findSuggestions'](_0xf8e4c,'insertion'))_0x202b1b['isOwn']&&!_0x202b1b['isNextTo']&&_0x3dc9bb['add'](_0x65fe1a);for(const _0x2084ab of _0x3dc9bb)if(_0x2084ab['isMultiRange']){const _0x262f6d=_0x2084ab['getRanges']();(!_0x2084ab['attributes']||!_0x2084ab['attributes']['skipNestingCheck'])&&(_0x262f6d['every'](_0x1ba672=>_0xf8e4c['some'](_0x2b36ff=>_0x2b36ff['containsRange'](_0x1ba672,!0x0)))&&_0x2084ab['discard']());if(_0xf8e4c['every'](_0x188849=>_0x262f6d['some'](_0x2a0468=>_0x2a0468['containsRange'](_0x188849,!0x0)))){const _0x19c6df=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e924f,'accept');return this['forceDefaultExecution'](()=>_0x19c6df(_0x4f5e5f,null,_0x3358be)),null;}}else{const _0x4f5a27=_0x2084ab['getFirstRange']();_0xf8e4c['some'](_0x37b680=>_0x37b680['containsRange'](_0x4f5a27,!0x0))&&_0x2084ab['discard']();if(_0xf8e4c['every'](_0x2dfb2c=>_0x4f5a27['containsRange'](_0x2dfb2c,!0x0))){const _0x3fbf01=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e924f,'accept');return this['forceDefaultExecution'](()=>_0x3fbf01(_0xf8e4c,null,_0x3358be)),null;}}const _0x3426f8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e924f,'join');let _0x3bcff5=null;for(const _0x603660 of this['getSuggestions']())if(_0x603660['author']['id']==_0x51c66f['id']&&_0x603660['isInContent']&&'deletion'==_0x603660['type']&&_0x603660['subType']==_0x5e924f&&qt(_0x603660,_0x3358be)&&(_0x3426f8(_0x603660['getRanges'](),_0xf8e4c)||_0x3426f8(_0xf8e4c,_0x603660['getRanges']()))){if(_0x3bcff5){if(_0x603660['commentThread']&&_0x603660['commentThread']['length'])continue;for(const _0x36828e of _0x603660['getRanges']())_0x3bcff5['isIntersectingWithRange'](_0x36828e)||_0x3bcff5['addRange'](_0x36828e);_0x603660['removeMarkers']();}else{_0x3bcff5=_0x603660;for(const _0x4b9e41 of _0xf8e4c)_0x603660['isIntersectingWithRange'](_0x4b9e41)||_0x603660['addRange'](_0x4b9e41);}}if(_0x3bcff5)return _0x3bcff5;_0x3dc9bb['clear']();for(const {suggestion:_0x166741,meta:_0x5e8cdc}of this['_findSuggestions'](_0xf8e4c,'deletion'))_0x5e8cdc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5e8cdc['containsRangeInObject']&&!_0x5e8cdc['isInsideObject'])&&qt(_0x166741,_0x3358be)&&_0x3dc9bb['add'](_0x166741);for(const _0x478d8a of _0x3dc9bb){const _0x2596d8=_0x478d8a['getRanges']();if(!_0x3358be||!_0x3358be['skipNestingCheck']){if(_0xf8e4c['every'](_0x1dc01d=>_0x2596d8['some'](_0x11430b=>_0x11430b['containsRange'](_0x1dc01d,!0x0))))return _0x478d8a;}(!_0x478d8a['attributes']||!_0x478d8a['attributes']['skipNestingCheck'])&&(_0x2596d8['every'](_0x5710a3=>_0xf8e4c['some'](_0x48eebd=>_0x48eebd['containsRange'](_0x5710a3,!0x0)))&&_0x478d8a['discard']());}const _0x417d3e=_0x8d9c92(),_0x24a4fe=_0x51c66f['id'],_0x336af9='deletion:'+_0x5e924f,_0x35b01d=this['_setSuggestionData']({'id':_0x417d3e,'type':_0x336af9,'createdAt':new Date(),'authorId':_0x24a4fe,'attributes':_0x3358be});for(const _0x42c1b1 of _0xf8e4c)_0x42c1b1['detach'](),_0x42c1b1['isCollapsed']||'$graveyard'==_0x42c1b1['root']['rootName']||this['_addSuggestionMarker'](_0x336af9,_0x417d3e,_0x24a4fe,_0x42c1b1,u['getMultiRangeId']());return _0x35b01d;}['markAttributeChange'](_0x375bb8,_0x58ef2f,_0x4f8d40,_0xae2d19,_0x2fc799){if(_0x375bb8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4b013a=this['editor']['plugins']['get']('Users')['me']['id'],_0xecef77=Array['from'](this['_suggestions']['values']())['filter'](_0x3695ea=>'attribute'==_0x3695ea['type']&&_0x3695ea['data']['key']==_0x58ef2f&&_0x3695ea['isIntersectingWithRange'](_0x375bb8));if('default'===this['_trackFormatChanges']){const _0x283810=this['_findSuggestions'](_0x375bb8,'insertion')['filter'](({meta:_0x2b3cef})=>_0x2b3cef['isOwn']&&!_0x2b3cef['isInsideObject']&&!_0x2b3cef['isNextTo'])['map'](({suggestion:_0x5534a0})=>_0x5534a0);_0xecef77['unshift'](..._0x283810);}const _0x3f32dd=new Map([[_0x375bb8,_0x4f8d40]]);for(const _0x5e034a of _0xecef77){const _0x5a0ccb='attribute'==_0x5e034a['type']?_0x5e034a['data']['oldValue']:void 0x0,_0x9d0cb8=_0x5e034a['getFirstRange'](),_0x358990=Array['from'](_0x3f32dd['keys']())['find'](_0x56f916=>_0x56f916['isIntersecting'](_0x9d0cb8));if(!_0x358990)continue;const _0x3f5be7=_0x358990['getDifference'](_0x9d0cb8);this['_isBlockAttribute'](_0x58ef2f)&&'insertion'==_0x5e034a['type']&&0x0!=_0x3f5be7['length']||(_0x3f32dd['delete'](_0x358990),_0x3f5be7['forEach'](_0x1563c2=>{_0x3f32dd['set'](_0x1563c2,_0x4f8d40);}),'insertion'!=_0x5e034a['type']&&_0x5a0ccb!=_0xae2d19&&_0x3f32dd['set'](_0x358990['getIntersection'](_0x9d0cb8),_0x5a0ccb));}const _0x4886c3=[];for(const [_0x4bff78,_0x11c5f6]of _0x3f32dd){const _0x509acd=_0x8d9c92(),_0xd7bcc2={'key':_0x58ef2f,'oldValue':_0x11c5f6,'newValue':_0xae2d19};_0x58ef2f['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':_0x58ef2f});const _0x11dee0=('attribute:'+(_0x58ef2f+'|'+Gt({'newValue':_0xae2d19})))['substring'](0x0,0x3c),_0x59b91e=this['_setSuggestionData']({'id':_0x509acd,'type':_0x11dee0,'data':_0xd7bcc2,'createdAt':new Date(),'authorId':_0x4b013a,'attributes':_0x2fc799});_0x4886c3['push'](_0x59b91e),this['_addSuggestionMarker'](_0x11dee0,_0x509acd,_0x4b013a,_0x4bff78);}return _0x4886c3;}['enableDefaultAttributesIntegration'](_0xf9b053){this['enableCommand'](_0xf9b053,(_0x11372a,..._0x26cdf8)=>{this['_recordAttributeChanges'](()=>{_0x11372a(..._0x26cdf8);});});}['registerBlockAttribute'](_0x48da8e){this['_blockAttributeKeys']['add'](_0x48da8e);}['registerInlineAttribute'](_0xc738a4){this['_inlineAttributeKeys']['add'](_0xc738a4);}['_getAttributeKey'](_0x1b59fd){return'attribute'==_0x1b59fd['type']?_0x1b59fd['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2504aa,_0x44eda5){const _0x375eab=_0x2504aa['getFirstMarker']();this['_model']['change'](_0x2b171c=>{_0x2b171c['updateMarker'](_0x375eab,{'range':_0x44eda5});});}['_addThreadToSuggestion'](_0x35ede6){const _0x413168=_0x35ede6['id'],_0x3c05b4=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x413168)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3c05b4,'threadId':_0x413168,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x228356=this['_commentsRepository']['getCommentThread'](_0x413168);_0x228356['unbind']('isRemovable'),_0x228356['isRemovable']=!0x1,_0x35ede6['commentThread']=_0x228356;}['_checkSuggestionCorrectness'](_0x19ded1,_0x4e0673,_0x1f1a10,_0x21df6c){if(_0x19ded1['type']!=_0x4e0673||_0x19ded1['subType']!=_0x1f1a10||_0x19ded1['creator']['id']!=_0x21df6c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x267495('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5db562,_0x30d83a){const _0x24df41=_0x5db562['getFirstRange']();if(_0x30d83a['isEqual'](_0x24df41))_0x5db562['removeMarkers']();else{if(_0x24df41['containsRange'](_0x30d83a)){const _0x43e8ba=this['_model']['createPositionAt'](_0x30d83a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5db562,this['_model']['createRange'](_0x24df41['start'],_0x43e8ba));const _0x298aa0=_0x8d9c92(),_0x51fcf2=_0x5db562['creator']['id'],_0x1b50cb=_0x5db562['type']+':'+_0x5db562['subType'];this['_setSuggestionData']({'id':_0x298aa0,'type':_0x1b50cb,'createdAt':new Date(),'authorId':_0x51fcf2,'data':_0x5db562['data'],'attributes':_0x5db562['attributes']});const _0x41d380=this['_model']['createPositionAt'](_0x30d83a['end']['parent'],'after'),_0x138c18=this['_model']['createRange'](_0x41d380,_0x24df41['end']);this['_addSuggestionMarker'](_0x1b50cb,_0x298aa0,_0x51fcf2,_0x138c18);}else{if(_0x24df41['containsPosition'](_0x30d83a['start'])){const _0x164863=this['_model']['createPositionAt'](_0x30d83a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5db562,this['_model']['createRange'](_0x24df41['start'],_0x164863));}else{const _0x29bbf5=this['_model']['createPositionAt'](_0x30d83a['end']['parent'],'after');this['_setSuggestionRange'](_0x5db562,this['_model']['createRange'](_0x29bbf5,_0x24df41['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3ab300){for(const {suggestion:_0x35f2d1,meta:_0x9ff01e}of this['_findSuggestions'](_0x3ab300,'insertion')){if(!_0x9ff01e['isOwn'])continue;const _0x2da763=_0x35f2d1['getRanges']();for(const _0x3bacba of _0x2da763)if(!_0x3ab300['getDifference'](_0x3bacba)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3f4e08){const _0x3a98e8=this['editor']['plugins']['get']('Users')['getUser'](_0x3f4e08);if(!_0x3a98e8)throw new _0x267495('track-changes-user-not-found',this);return _0x3a98e8;}['_getExternalAuthor'](_0x597ccc){const _0x2f07ae=this['editor']['plugins']['get']('Users'),_0x53728f=_0x3058e0('external:'+_0x597ccc),_0x3cadab=_0x2f07ae['getUser'](_0x53728f);return _0x3cadab||_0x2f07ae['addUser']({'id':_0x53728f,'name':_0x597ccc});}['_createSuggestion'](_0x56d577,_0x5cbfef,_0x46acb4,_0x5d0192,_0xc59a66){const _0x4c1099=this['_getAuthorFromId'](_0x5d0192),_0x2fbd0f=this['_suggestionFactory']['buildSuggestion'](_0x56d577,_0x5cbfef,_0x46acb4,_0x4c1099,_0xc59a66,_0x34bb4d=>{this['_updateSuggestionData'](_0x46acb4,{'attributes':_0x34bb4d});const _0x475429=this['getSuggestion'](_0x46acb4);this['_joinWithAdjacentSuggestions'](new Set([_0x475429])),this['_refreshSuggestionsChain'](new Set([_0x475429]));});return this['listenTo'](_0x2fbd0f,'accept',()=>{this['_updateSuggestionData'](_0x46acb4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2fbd0f,'discard',()=>{this['_updateSuggestionData'](_0x46acb4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x46acb4,_0x2fbd0f),this['_suggestionState']['set'](_0x2fbd0f,'notReady'),_0x2fbd0f;}['_splitMarkerName'](_0x46e4ce){const _0x2ccb6e=_0x46e4ce['split'](':');return{'group':_0x2ccb6e[0x0],'type':_0x2ccb6e[0x1],'subType':_0x2ccb6e['length']>=0x5?_0x2ccb6e[0x2]:null,'id':_0x2ccb6e['length']<0x5?_0x2ccb6e[0x2]:_0x2ccb6e[0x3],'authorId':_0x2ccb6e['length']<0x5?_0x2ccb6e[0x3]:_0x2ccb6e[0x4],'markerCount':0x6==_0x2ccb6e['length']?_0x2ccb6e[0x5]:null};}['_breakSuggestionMarker'](_0x248af0,_0x1bb948,_0x3e562f){const _0x28ea3a=_0x248af0['getFirstRange'](),_0x9330f1=_0x28ea3a['start'],_0x548d78=_0x28ea3a['end'];this['_setSuggestionRange'](_0x248af0,this['_model']['createRange'](_0x9330f1,_0x1bb948));const _0x5da167=_0x8d9c92(),_0xfe5f8=_0x248af0['creator']['id'],_0x5eead7=_0x248af0['type']+(_0x248af0['subType']?':'+_0x248af0['subType']:'');this['_setSuggestionData']({'id':_0x5da167,'type':_0x5eead7,'createdAt':new Date(),'authorId':_0xfe5f8,'originalSuggestionId':_0x248af0['id'],'attributes':_0x248af0['attributes'],'data':_0x248af0['data']});const _0x477af0=this['_getAttributeKey'](_0x248af0);('formatBlock'==_0x248af0['type']||_0x477af0&&this['_isBlockAttribute'](_0x477af0))&&(_0x3e562f=this['_model']['createPositionBefore'](_0x3e562f['parent'])),this['_addSuggestionMarker'](_0x5eead7,_0x5da167,_0xfe5f8,this['_model']['createRange'](_0x3e562f,_0x548d78));}['_findSuggestions'](_0x25320c,_0x17bc34=null){const _0xa3ceae=[],_0x1e4de7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x25320c)||(_0x25320c=[_0x25320c]);for(const _0x4bfaaa of this['getSuggestions']()){if(!_0x4bfaaa['isInContent'])continue;if(_0x17bc34&&_0x4bfaaa['type']!=_0x17bc34)continue;let _0x1f54f2=!0x1;for(const _0x591c28 of _0x4bfaaa['getRanges']()){for(const _0x264198 of _0x25320c){const _0x11a7f5=_0x264198['start']['isEqual'](_0x591c28['end'])||_0x264198['end']['isEqual'](_0x591c28['start']);if(_0x11a7f5||_0x264198['getIntersection'](_0x591c28)){const _0x1ece48=_0x264198['containsRange'](_0x591c28)&&Ot(this['_model']['schema'],_0x591c28['start'],_0x264198),_0x40f1d0=_0x591c28['containsRange'](_0x264198)&&Ot(this['_model']['schema'],_0x264198['start'],_0x591c28);_0xa3ceae['push']({'suggestion':_0x4bfaaa,'meta':{'isOwn':_0x1e4de7==_0x4bfaaa['author'],'isNextTo':_0x11a7f5,'isInsideObject':_0x1ece48,'containsRangeInObject':_0x40f1d0}}),_0x1f54f2=!0x0;break;}}if(_0x1f54f2)break;}}return _0xa3ceae;}['_addSuggestionMarker'](_0x8e16ea,_0x2cbf86,_0x13a5ec,_0x4bc3e7,_0x5300f5){this['_model']['change'](_0x2dcb8e=>{let _0x5aaff5='suggestion:'+_0x8e16ea+':'+_0x2cbf86+':'+_0x13a5ec;_0x5300f5&&(_0x5aaff5=_0x5aaff5+':'+_0x5300f5),_0x2dcb8e['addMarker'](_0x5aaff5,{'range':_0x4bc3e7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3ce63c){const _0x1b6e0d=_0x3ce63c['previous'],_0x284f23=_0x3ce63c['next'];_0x3ce63c['previous']=null,_0x3ce63c['next']=null,null!=_0x1b6e0d&&_0x1b6e0d['next']==_0x3ce63c&&(_0x1b6e0d['next']=_0x284f23),null!=_0x284f23&&_0x284f23['previous']==_0x3ce63c&&(_0x284f23['previous']=_0x1b6e0d),'ready'==this['_suggestionState']['get'](_0x3ce63c)&&(this['_suggestionState']['set'](_0x3ce63c,'removed'),this['fire']('suggestionUnloaded',_0x3ce63c,_0x1b6e0d,_0x284f23));}['_setSuggestionData'](_0x36102d){const _0x2cbe41=_0x36102d['id'],_0x10771d=this['addSuggestionData'](_0x36102d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xeacf3=this['editor']['plugins']['get']('PendingActions'),_0x53f65d=_0x10771d['hasComments'],_0xc5c6de=_0x10771d['subType']?_0x10771d['type']+':'+_0x10771d['subType']:_0x10771d['type'],_0x5df41c=this['editor']['locale'],_0x452c59=_0xeacf3['add'](o(_0x5df41c,'PENDING_ACTION_SUGGESTION')),_0x34a6e1={'id':_0x2cbe41,'type':_0xc5c6de,'hasComments':_0x53f65d,'data':_0x36102d['data']||null,'originalSuggestionId':_0x36102d['originalSuggestionId']||null,'attributes':_0x10771d['attributes']};this['_adapter']['addSuggestion'](_0x34a6e1)['then'](_0x237ef8=>{_0x10771d['_saved']=!0x0,_0xeacf3['remove'](_0x452c59),_0x237ef8&&_0x237ef8['createdAt']&&(this['_suggestions']['get'](_0x2cbe41)['createdAt']=_0x237ef8['createdAt']);})['catch'](_0x43c08b=>{throw _0x197665('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x10771d['discard']();}),_0x10771d['stopListening'](),this['_suggestions']['delete'](_0x10771d['id']),this['_suggestionState']['delete'](_0x10771d),_0x43c08b;});}return _0x10771d;}['_isBlockAttribute'](_0x3428b1){return this['_blockAttributeKeys']['has'](_0x3428b1);}['_updateSuggestionData'](_0x1f5d30,_0xffdcc1){const _0x12dc68=this['editor']['plugins']['get']('PendingActions'),_0x6d1315=this['getSuggestion'](_0x1f5d30);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x6d1315['_saved']){const _0x30b9f8=_0x12dc68['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1f5d30,_0xffdcc1)['then'](()=>{_0x12dc68['remove'](_0x30b9f8);});}else _0x6d1315['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1f5d30,_0xffdcc1);});}}['_getSuggestionData'](_0x3f8ff8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x267495('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3f8ff8);}['_handleNewSuggestionMarker'](_0x24ec8a){const {id:_0x2ec03,type:_0x116c39,subType:_0xe56c2b,authorId:_0x58497e}=this['_splitMarkerName'](_0x24ec8a),_0x29ccde=this['_suggestions']['get'](_0x2ec03)||this['_createSuggestion'](_0x116c39,_0xe56c2b,_0x2ec03,_0x58497e,{});switch(this['_checkSuggestionCorrectness'](_0x29ccde,_0x116c39,_0xe56c2b,_0x58497e),this['_suggestionState']['get'](_0x29ccde)){case'notReady':this['_getSuggestionData'](_0x2ec03)['then'](_0x51cd57=>{let _0x825593=Promise['resolve']();_0x51cd57['hasComments']&&(_0x825593=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2ec03})),_0x825593['then'](()=>{this['addSuggestionData'](_0x51cd57)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x29ccde,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2ec03,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x29ccde,'ready'),this['fire']('suggestionLoaded',_0x29ccde);break;case'ready':this['fire']('suggestionChanged',_0x29ccde);}return _0x29ccde['addMarkerName'](_0x24ec8a),_0x29ccde;}['_refreshSuggestionsChain'](_0x205f7a){const _0x5beeff=Array['from'](_0x205f7a),_0x15d9fb=_0x5beeff['filter'](_0x466199=>'attribute'==_0x466199['type']);this['_refreshAttributeSuggestionsChain'](_0x15d9fb);const _0x38a7a0=_0x5beeff['filter'](_0x4871a3=>!_0x4871a3['isMultiRange']&&'attribute'!=_0x4871a3['type']),_0x44e6e1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b7461=>!_0x1b7461['isMultiRange']&&'attribute'!=_0x1b7461['type']),_0x29425c=_0x44e6e1['filter'](_0x406260=>!_0x205f7a['has'](_0x406260)),_0x47f65e=new Map(_0x44e6e1['map'](_0x2c8957=>[_0x2c8957,this['_suggestionFactory']['getSuggestionCallback'](_0x2c8957['type'],_0x2c8957['subType'],'chain')])),_0x4210a8=new Map(_0x44e6e1['map'](_0x38cc77=>[_0x38cc77,_0x38cc77['getFirstRange']()])),_0xf59452=new Set(),_0x51dcf4=new Set();for(let _0x198209=0x0;_0x198209<_0x38a7a0['length'];_0x198209++)_0x362622(_0x38a7a0[_0x198209],_0x38a7a0,_0x198209+0x1);for(let _0x49d839=0x0;_0x49d839<_0x38a7a0['length'];_0x49d839++)_0x362622(_0x38a7a0[_0x49d839],_0x29425c,0x0);const _0xa44042=new Set();for(let _0x981ce5=0x0;_0x981ce5<_0x38a7a0['length'];_0x981ce5++){const _0x4b2bf9=_0x38a7a0[_0x981ce5];!_0x51dcf4['has'](_0x4b2bf9)&&_0x4b2bf9['previous']&&(_0xa44042['add'](_0x4b2bf9['previous']),_0x4b2bf9['previous']['next']===_0x4b2bf9&&(_0x4b2bf9['previous']['next']=null),_0x4b2bf9['previous']=null),!_0xf59452['has'](_0x4b2bf9)&&_0x4b2bf9['next']&&(_0xa44042['add'](_0x4b2bf9['next']),_0x4b2bf9['next']['previous']===_0x4b2bf9&&(_0x4b2bf9['next']['previous']=null),_0x4b2bf9['next']=null);}function _0x362622(_0x5a1f1c,_0x16ef35,_0x4234ce){for(let _0x207046=_0x4234ce;_0x207046<_0x16ef35['length'];_0x207046++){const _0x224af=_0x571c54(_0x5a1f1c,_0x16ef35[_0x207046]);_0x224af&&(_0x224af[0x0]['next']=_0x224af[0x1],_0x224af[0x1]['previous']=_0x224af[0x0],_0xf59452['add'](_0x224af[0x0]),_0x51dcf4['add'](_0x224af[0x1]));}}function _0x571c54(_0x351aea,_0x3babde){if(_0x351aea['author']['id']!==_0x3babde['author']['id'])return null;const _0xcf0d4f=_0x47f65e['get'](_0x351aea)(_0x351aea,_0x3babde,_0x4210a8['get'](_0x351aea),_0x4210a8['get'](_0x3babde));if(!_0xcf0d4f)return null;return _0x47f65e['get'](_0x3babde)(_0x351aea,_0x3babde,_0x4210a8['get'](_0x351aea),_0x4210a8['get'](_0x3babde))?_0xcf0d4f[0x1]['commentThread']&&_0xcf0d4f[0x1]['commentThread']['length']?null:_0xcf0d4f:null;}_0xa44042['size']&&this['_refreshSuggestionsChain'](_0xa44042);}['_refreshAttributeSuggestionsChain'](_0x3883c0){if(0x0==_0x3883c0['length'])return;const _0x1e8aa4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23dfe0=>'attribute'==_0x23dfe0['type']&&_0x23dfe0['_isDataLoaded']),_0x16cd9d=[],_0x58a4f9=new Map();for(const _0x667570 of _0x1e8aa4){const _0x6a3d6c=_0x3058e0(_0x667570['attributes']);_0x58a4f9['has'](_0x6a3d6c)||(_0x58a4f9['set'](_0x6a3d6c,_0x16cd9d['length']),_0x16cd9d['push']([]));const _0x2f039d=_0x58a4f9['get'](_0x6a3d6c);_0x16cd9d[_0x2f039d]['push'](_0x667570);}!(function(){_0x16cd9d['sort']((_0x27547d,_0x2379b3)=>{const _0x1e5e93=_0x27547d[0x0]['createdAt'],_0x552681=_0x2379b3[0x0]['createdAt'];return _0x1e5e93==_0x552681?_0x27547d[0x0]['attributes']['groupId']<_0x2379b3[0x0]['attributes']['groupId']?-0x1:0x1:_0x1e5e93<_0x552681?-0x1:0x1;});for(const _0x2975a3 of _0x16cd9d)_0x2975a3['sort']((_0x16ce8f,_0x51a694)=>_0x16ce8f['id']<_0x51a694['id']?-0x1:0x1);}());for(let _0xbeef7b=0x0;_0xbeef7b<_0x16cd9d['length'];_0xbeef7b++){if(0x0==_0x16cd9d[_0xbeef7b]['length'])continue;const _0x38dced=[];for(let _0x1d6ac7=_0xbeef7b+0x1;_0x1d6ac7<_0x16cd9d['length'];_0x1d6ac7++)0x0!=_0x16cd9d[_0x1d6ac7]['length']&&_0x5c5a42(_0x16cd9d[_0xbeef7b],_0x16cd9d[_0x1d6ac7])&&_0x38dced['push'](_0x1d6ac7);for(const _0x5d8a28 of _0x38dced)_0x16cd9d[_0xbeef7b]=_0x16cd9d[_0xbeef7b]['concat'](_0x16cd9d[_0x5d8a28]),_0x16cd9d[_0x5d8a28]=[];}for(const _0x4c29a8 of _0x16cd9d)for(let _0x274926=0x0;_0x274926<_0x4c29a8['length'];_0x274926++){const _0xd0700d=_0x4c29a8[_0x274926+0x1]||null;_0x4c29a8[_0x274926]['next']!==_0xd0700d&&(_0x4c29a8[_0x274926]['next']=_0xd0700d);}for(const _0x2dce14 of _0x16cd9d)for(let _0x6bbdba=0x0;_0x6bbdba<_0x2dce14['length'];_0x6bbdba++){const _0x1f5d3f=_0x2dce14[_0x6bbdba-0x1]||null;_0x2dce14[_0x6bbdba]['previous']!==_0x1f5d3f&&(_0x2dce14[_0x6bbdba]['previous']=_0x1f5d3f);}function _0x5c5a42(_0x10e053,_0x30e5c5){if(_0x10e053[0x0]['attributes']['groupId']!==_0x30e5c5[0x0]['attributes']['groupId']&&_0x10e053[0x0]['author']!==_0x30e5c5[0x0]['author'])return!0x1;if(!function(_0xa6fa93,_0x3c58bf){if(!_0xa6fa93['hasComments']&&!_0x3c58bf['hasComments'])return!0x0;if(_0xa6fa93['hasComments']&&_0x3c58bf['hasComments'])return!0x1;if(_0xa6fa93['hasComments']&&_0x3c58bf['createdAt']<_0xa6fa93['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3c58bf['hasComments']&&_0xa6fa93['createdAt']<_0x3c58bf['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x10e053[0x0],_0x30e5c5[0x0]))return!0x1;const _0x4a1a6f=Tt(_0x10e053[0x0]['attributes'],'groupId'),_0x4e91a1=Tt(_0x30e5c5[0x0]['attributes'],'groupId');if(!_0x51a035(_0x4a1a6f,_0x4e91a1))return!0x1;return!!_0x10e053['every'](_0x1062e8=>_0x30e5c5['some'](_0x1273ef=>_0x1062e8['getFirstRange']()['isEqual'](_0x1273ef['getFirstRange']())))&&_0x30e5c5['every'](_0x118b74=>_0x10e053['some'](_0x4ad41a=>_0x118b74['getFirstRange']()['isEqual'](_0x4ad41a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x40c7bd){const _0x15dc00=Array['from'](_0x40c7bd),_0x1c0288=this['getSuggestions']({'skipNotAttached':!0x0}),_0x308bf9=_0x1c0288['filter'](_0xbafd24=>!_0x40c7bd['has'](_0xbafd24)),_0x264085=new Map(_0x15dc00['map'](_0x21f973=>[_0x21f973,this['_suggestionFactory']['getSuggestionCallback'](_0x21f973['type'],_0x21f973['subType'],'join')])),_0x512d60=new Map(_0x1c0288['map'](_0x59a7c2=>[_0x59a7c2,_0x59a7c2['getRanges']()]));for(let _0x592ac8=0x0;_0x592ac8<_0x15dc00['length'];_0x592ac8++){if(_0x408ae8(this,_0x15dc00[_0x592ac8],_0x15dc00,_0x592ac8+0x1))return!0x0;}for(let _0xcf9cc7=0x0;_0xcf9cc7<_0x15dc00['length'];_0xcf9cc7++){if(_0x408ae8(this,_0x15dc00[_0xcf9cc7],_0x308bf9,0x0))return!0x0;}return!0x1;function _0x408ae8(_0x29ae50,_0x33e458,_0x47605b,_0x4f456a){for(let _0x1d7329=_0x4f456a;_0x1d7329<_0x47605b['length'];_0x1d7329++){const _0x19f37a=_0x47605b[_0x1d7329];if(_0x19f37a['type']!==_0x33e458['type']||_0x19f37a['author']['id']!==_0x33e458['author']['id']||_0x19f37a['subType']!==_0x33e458['subType'])continue;if(!Jt(_0x33e458,_0x19f37a))continue;if('attribute'==_0x33e458['type']&&_0x33e458['data']['oldValue']!=_0x19f37a['data']['oldValue'])continue;if('attribute'==_0x33e458['type']&&_0x29ae50['_isBlockAttribute'](_0x33e458['data']['key']))continue;if('formatBlock'==_0x33e458['type']){const _0xcd0945=_0x29ae50['editor']['model'],_0x45c922=_0x33e458['getContainedElement']();if(_0x45c922&&(_0xcd0945['schema']['isObject'](_0x45c922)||_0xcd0945['schema']['isLimit'](_0x45c922)))continue;}const _0x185596=_0x264085['get'](_0x33e458),_0x22d2e9=_0x512d60['get'](_0x33e458),_0x294c67=_0x512d60['get'](_0x19f37a),_0x393607=_0x33e458['commentThread']&&_0x33e458['commentThread']['length'],_0x402e0f=_0x19f37a['commentThread']&&_0x19f37a['commentThread']['length'];if(!_0x393607&&_0x185596(_0x294c67,_0x22d2e9))return _0x29ae50['_joinSuggestions'](_0x19f37a,_0x33e458),_0x512d60['delete'](_0x33e458),!0x0;if(!_0x402e0f&&_0x185596(_0x22d2e9,_0x294c67))return _0x29ae50['_joinSuggestions'](_0x33e458,_0x19f37a),_0x512d60['delete'](_0x19f37a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x28d2aa,_0x4daaa5){if(_0x28d2aa['isMultiRange']){for(const _0x23fe37 of _0x4daaa5['getRanges']())_0x28d2aa['addRange'](_0x23fe37);}else{const _0x11f689=_0x4daaa5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x28d2aa,this['_model']['createRange'](_0x28d2aa['getFirstRange']()['start'],_0x11f689));}_0x4daaa5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x11292f,_0x2c30a5,_0x2266fe){const _0xb774a4=_0x11292f['startsWith']('format')||_0x11292f['startsWith']('attribute')?'FORMATTING':_0x11292f['toUpperCase']();return o(this['editor']['locale'],_0x2c30a5+'_'+_0xb774a4+'_SUGGESTION_ANNOUNCEMENT',_0x2266fe);}['_initAriaMarkerChangeAnnouncements'](){const _0x42b3ce=this['editor'];if(!_0x42b3ce['ui'])return;const {ariaLiveAnnouncer:_0x38c5f9}=_0x42b3ce['ui'];_0x3e95d5(this['_model'],({left:_0x3e4d18,entered:_0x146e2c})=>{for(const _0x5069e7 of _0x3e4d18){const {group:_0x327344,type:_0x190f05}=this['_splitMarkerName'](_0x5069e7['name']);if('suggestion'===_0x327344){_0x38c5f9['announce'](this['_getMarkerAnnouncementText'](_0x190f05,'LEAVE'));break;}}for(const _0x1f0a22 of _0x146e2c){const {group:_0x11472b,type:_0x2844a8}=this['_splitMarkerName'](_0x1f0a22['name']);if('suggestion'===_0x11472b){_0x38c5f9['announce'](this['_getMarkerAnnouncementText'](_0x2844a8,'ENTER',_0x5f026f(_0x17f5f7)));break;}}});}['_processAttributeChanges'](_0x2f5ea7){if(this['_recordAttributeSuggestions'])return!0x1;const _0x21bdf6=this['editor'],_0x2c890e=_0x21bdf6['model']['document']['differ']['getChanges']();if(0x0==_0x2c890e['length'])return!0x1;const _0xa6319e=[],_0x5c370e=_0x2c890e['filter'](_0x27b72f=>'attribute'==_0x27b72f['type']),_0x33a9f1=_0x2c890e['filter'](_0x15a97b=>'insert'==_0x15a97b['type']&&'$text'!=_0x15a97b['name']),_0x4ef3a3=_0x2c890e['filter'](_0x5c4035=>'remove'==_0x5c4035['type']&&'$text'!=_0x5c4035['name']);for(const _0x43d830 of _0x5c370e)_0xa6319e['push']({'key':_0x43d830['attributeKey'],'newValue':_0x43d830['attributeNewValue'],'oldValue':_0x43d830['attributeOldValue'],'range':Pt(_0x43d830['range'],_0x21bdf6['model'])});for(const _0x127ce1 of _0x33a9f1){const _0xc3ae8a=_0x4ef3a3['find'](_0x29fb98=>_0x29fb98['position']['isEqual'](_0x127ce1['position']));_0xc3ae8a&&_0xa6319e['push']({'key':m,'newValue':_0x127ce1['name'],'oldValue':_0xc3ae8a['name'],'range':_0x21bdf6['model']['createRangeOn'](_0x127ce1['position']['nodeAfter'])});}return 0x0!=_0xa6319e['length']&&this['_reduceExistingSuggestions'](_0x2f5ea7,_0xa6319e);}['_processAttributeSuggestions'](_0x5243c5){let _0x365261=!0x1;const _0x5b6f1b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xd0d343=>_0xd0d343['data']['newRange']&&_0xd0d343['name']['startsWith']('suggestion:attribute:'));for(const _0x1fe3a7 of _0x5b6f1b){const {subType:_0x37a673,id:_0x3d2497}=this['_splitMarkerName'](_0x1fe3a7['name']),_0x7e9dac=_0x37a673['split']('|')[0x0];for(const _0x5d2a20 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5d2a20['id']!=_0x3d2497&&'attribute'==_0x5d2a20['type']&&_0x5d2a20['data']&&_0x5d2a20['data']['key']==_0x7e9dac&&_0x5d2a20['getFirstRange']()['isIntersecting'](_0x1fe3a7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5d2a20,_0x1fe3a7['data']['newRange'],_0x5243c5),_0x365261=!0x0);}return _0x365261;}['_recordAttributeChanges'](_0x50e215){this['_recordAttributeSuggestions']=!0x0,_0x50e215();}['_isRegisteredAttribute'](_0x251e9d){const _0x511070=this['_isBlockAttribute'](_0x251e9d),_0x196552=this['_inlineAttributeKeys']['has'](_0x251e9d);return _0x511070||_0x196552;}['_reduceExistingSuggestions'](_0x38f90c,_0x12069b){if(0x0==_0x12069b['length'])return!0x1;let _0x2dc242=!0x1;for(const _0x10086b of _0x12069b){const _0x5615bd=this['_findSuggestions'](_0x10086b['range'],'attribute')['filter'](_0x5d507a=>!_0x5d507a['meta']['isNextTo'])['map'](_0x33ceee=>_0x33ceee['suggestion']),_0x190946=_0x3058e0({'newValue':_0x10086b['newValue']});_0x5615bd['filter'](_0x580f58=>{const [_0x3c3e8c,_0x2cb6e6]=_0x580f58['subType']['split']('|');return _0x3c3e8c==_0x10086b['key']&&_0x2cb6e6!=_0x190946;})['forEach'](_0xfd1e79=>{this['_reduceSuggestionAttributeRange'](_0xfd1e79,_0x10086b['range'],_0x38f90c),_0x2dc242=!0x0;});}return _0x2dc242;}['_reduceSuggestionAttributeRange'](_0x549957,_0x6a37b8,_0x492578){const _0x2fd72c=_0x549957['getFirstRange']()['getDifference'](_0x6a37b8);0x0!==_0x2fd72c['length']?0x1!==_0x2fd72c['length']?this['_breakSuggestionMarker'](_0x549957,_0x6a37b8['start'],_0x6a37b8['end']):this['_setSuggestionRange'](_0x549957,_0x2fd72c[0x0]):_0x492578['removeMarker'](_0x549957['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1e7355){this['_editor']=_0x1e7355,this['_model']=_0x1e7355['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x504845,_0x449291,_0x5f505f,_0x38b1b5,_0x7f632b,_0x71d828){return new u(this['_model'],{'type':_0x504845,'subType':_0x449291,'id':_0x5f505f,'author':_0x38b1b5,'creator':_0x38b1b5,'attributes':_0x7f632b,'onAttributesChange':_0x71d828,'onAccept':(..._0x1314b0)=>this['getSuggestionCallback'](_0x504845,_0x449291,'accept')(..._0x1314b0),'onDiscard':(..._0xcab94c)=>this['getSuggestionCallback'](_0x504845,_0x449291,'discard')(..._0xcab94c)});}['registerCustomCallback'](_0x37179c,_0x3b64fe,_0x3c99f1,_0x197ce4){const _0x178a94=_0x37179c+':'+_0x3b64fe+':'+_0x3c99f1;this['_customCallbacks']['set'](_0x178a94,_0x197ce4);}['getSuggestionCallback'](_0x4fbdbc,_0x3fa398,_0x175d25){const _0x5c64d9=_0x4fbdbc+':'+_0x3fa398+':'+_0x175d25;return this['_customCallbacks']['get'](_0x5c64d9)||this['_defaultCallbacks']['get'](_0x4fbdbc+':'+_0x175d25);}['_registerDefaultCallbacks'](){const _0xddf13=()=>!0x1,_0xa049f0=_0x24fab1=>{_0x24fab1['sort']((_0x4ac10b,_0x912073)=>_0x4ac10b['start']['isBefore'](_0x912073['start'])?0x1:-0x1),this['_model']['change'](_0xc3b4a6=>{for(const _0x35b7ba of _0x24fab1){let _0x4a1b96;_0x4a1b96=_0x35b7ba['end']['isAtEnd']&&_0x35b7ba['end']['parent']==_0x35b7ba['start']['nodeAfter']?_0xc3b4a6['createSelection'](_0x35b7ba['start']['nodeAfter'],'on'):_0xc3b4a6['createSelection'](_0x35b7ba),this['_model']['deleteContent'](_0x4a1b96,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x8ed4ca=(_0x52cc83,_0x96f19a)=>{_0x96f19a&&this['_model']['change'](_0x390e4f=>{const {commandName:_0x1c74a5,commandParams:_0x558693=[]}=_0x96f19a,_0x5d4e6f=_0x52cc83['map'](_0x18cfbc=>(Vt(_0x18cfbc)&&(_0x18cfbc=this['_model']['createRange'](_0x18cfbc['end'])),_0x18cfbc))['filter'](_0x18b025=>'$graveyard'!==_0x18b025['root']['rootName']);if(_0x5d4e6f['length']<0x1)return;const _0x36667a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x123d3a=>_0x5ac42d['fromRange'](_0x123d3a));_0x390e4f['setSelection'](_0x5d4e6f);for(const _0x59c280 of this['_editor']['commands']['commands']())_0x59c280['refresh']();_0x558693['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1c74a5,..._0x558693);const _0x264e97=_0x36667a['filter'](_0x2012d7=>'$graveyard'!=_0x2012d7['root']['rootName']);_0x264e97['length']>0x0&&_0x390e4f['setSelection'](_0x264e97);for(const _0x57db7e of _0x36667a)_0x57db7e['detach']();});},_0x3a55fa=(_0x6d6354,_0x32837e)=>0x1==_0x6d6354['length']&&0x1==_0x32837e['length']&&_0x6d6354[0x0]['end']['isEqual'](_0x32837e[0x0]['start']),_0x4c8340=(_0x32f88f,_0x3a5c74,_0x51708b,_0x3ff4c1)=>Ht(_0x32f88f,_0x3a5c74,_0x51708b,_0x3ff4c1,this['_model'])?[_0x32f88f,_0x3a5c74]:Ht(_0x3a5c74,_0x32f88f,_0x3ff4c1,_0x51708b,this['_model'])?[_0x3a5c74,_0x32f88f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xddf13),this['_defaultCallbacks']['set']('insertion:discard',_0xa049f0),this['_defaultCallbacks']['set']('insertion:join',_0x3a55fa),this['_defaultCallbacks']['set']('insertion:chain',_0x4c8340),this['_defaultCallbacks']['set']('deletion:accept',_0xa049f0),this['_defaultCallbacks']['set']('deletion:discard',_0xddf13),this['_defaultCallbacks']['set']('deletion:join',_0x3a55fa),this['_defaultCallbacks']['set']('deletion:chain',_0x4c8340),this['_defaultCallbacks']['set']('formatInline:accept',_0x8ed4ca),this['_defaultCallbacks']['set']('formatInline:discard',_0xddf13),this['_defaultCallbacks']['set']('formatInline:join',_0x3a55fa),this['_defaultCallbacks']['set']('formatInline:chain',_0xddf13),this['_defaultCallbacks']['set']('formatBlock:accept',_0x8ed4ca),this['_defaultCallbacks']['set']('formatBlock:discard',_0xddf13),this['_defaultCallbacks']['set']('formatBlock:join',_0x3a55fa),this['_defaultCallbacks']['set']('formatBlock:chain',_0xddf13),this['_defaultCallbacks']['set']('attribute:accept',_0xddf13),this['_defaultCallbacks']['set']('attribute:discard',(_0x46922f,_0x245cd3)=>{if(!_0x245cd3)return;const _0x41342f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x176896=>{if(_0x245cd3['key']==m)for(const _0x8edee7 of _0x46922f){const _0x5084ad=_0x8edee7['start']['nodeAfter'],_0x4796c5=_0x245cd3['oldValue'];_0x176896['rename'](_0x5084ad,_0x4796c5);}else{if(_0x41342f['_isBlockAttribute'](_0x245cd3['key'])){for(const _0x430449 of _0x46922f)void 0x0!==_0x245cd3['oldValue']?_0x176896['setAttribute'](_0x245cd3['key'],_0x245cd3['oldValue'],_0x430449['start']['nodeAfter']):_0x176896['removeAttribute'](_0x245cd3['key'],_0x430449['start']['nodeAfter']);}else{for(const _0x6f638 of _0x46922f)_0x245cd3['oldValue']?_0x176896['setAttribute'](_0x245cd3['key'],_0x245cd3['oldValue'],_0x6f638):_0x176896['removeAttribute'](_0x245cd3['key'],_0x6f638);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3a55fa);}}function Ot(_0x5409df,_0x11145d,_0x35de09){for(const _0xa11847 of _0x11145d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xa11847['root']==_0xa11847)return!0x1;if(!_0x35de09['containsItem'](_0xa11847))return!0x1;if(_0x5409df['isObject'](_0xa11847)||_0x5409df['isLimit'](_0xa11847))return!0x0;}return!0x1;}function Vt(_0x5de145){return _0x5de145['end']['parent']==_0x5de145['start']['nodeAfter']&&_0x5de145['end']['isAtStart'];}function Ut(_0x544a59,_0x3765b7,_0x2b02fb,_0x4cfae8){const _0x469329=_0x3e5308=>!_0x3e5308['item']['is']('$textProxy')&&!_0x4cfae8['isObject'](_0x3e5308['item']),_0x49497e=_0x544a59['start']['getLastMatchingPosition'](_0x469329),_0x31a2cb=_0x544a59['end']['getLastMatchingPosition'](_0x469329,{'direction':'backward'});return(!_0x544a59['start']['isEqual'](_0x49497e)||!_0x544a59['end']['isEqual'](_0x31a2cb))&&(_0x49497e['isBefore'](_0x31a2cb)?_0x2b02fb['updateMarker'](_0x3765b7,{'range':_0x2b02fb['createRange'](_0x49497e,_0x31a2cb)}):_0x2b02fb['removeMarker'](_0x3765b7),!0x0);}function Gt(_0x2e1ea6){return _0x3058e0(_0x2e1ea6);}function Ft(_0x30ba8a){const _0x3af279=_0x30ba8a['start']['nodeAfter'];return _0x3af279&&_0x3af279['is']('element');}function Pt(_0x2e299f,_0x2e8be4){return null==_0x2e299f['end']['nodeBefore']&&_0x2e299f['end']['parent']==_0x2e299f['start']['nodeAfter']?Lt(_0x2e299f['start']['nodeAfter'],_0x2e8be4):_0x2e299f;}function Lt(_0x3da1a3,_0x29a6cf){const _0x47a3b3=_0x29a6cf['schema']['isObject'](_0x3da1a3)||_0x29a6cf['schema']['isSelectable'](_0x3da1a3);return _0x29a6cf['createRange'](_0x29a6cf['createPositionAt'](_0x3da1a3,'before'),_0x47a3b3?_0x29a6cf['createPositionAfter'](_0x3da1a3):_0x29a6cf['createPositionAt'](_0x3da1a3,'end'));}function Ht(_0x3a858b,_0x4a196c,_0x181eea,_0x584980,_0x529714){if(_0x3a858b['next'])return!0x1;if(!Jt(_0x3a858b,_0x4a196c))return!0x1;if(_0x181eea['end']['isEqual'](_0x584980['start']))return!0x0;if(_0x3a858b['type']!=_0x4a196c['type'])return!0x1;if(!_0x181eea['end']['isTouching'](_0x584980['start']))return!0x1;const _0x466a39=_0x529714['createRange'](_0x181eea['end'],_0x584980['start'])['getWalker']();for(const _0x4bb798 of _0x466a39)if(['elementStart','elementEnd']['includes'](_0x4bb798['type'])&&_0x529714['schema']['isLimit'](_0x4bb798['item']))return!0x1;return!0x0;}function Jt(_0x233a80,_0x3c92a3){if(!_0x233a80['_isDataLoaded']||!_0x3c92a3['_isDataLoaded'])return!0x1;const _0x5ba9bc=new Set(Object['keys'](_0x233a80['attributes'])),_0x3faf9e=new Set(Object['keys'](_0x3c92a3['attributes']));if(_0x5ba9bc['delete']('groupId'),_0x3faf9e['delete']('groupId'),0x0==_0x5ba9bc['size']&&0x0==_0x3faf9e['size'])return!0x0;if(_0x5ba9bc['size']!=_0x3faf9e['size'])return!0x1;const _0x141f32={..._0x233a80['attributes']},_0x4e5607={..._0x3c92a3['attributes']};return delete _0x141f32['groupId'],delete _0x4e5607['groupId'],JSON['stringify'](_0x141f32)==JSON['stringify'](_0x4e5607);}function qt(_0x252a91,_0x1797f9){const _0x908bb=zt(_0x252a91['attributes']),_0x1a112c=zt(_0x1797f9);if(!_0x252a91['_isDataLoaded'])return!0x1;for(const _0x34cdd4 of Object['keys'](_0x1a112c))if(!_0x51a035(_0x908bb[_0x34cdd4],_0x1a112c[_0x34cdd4]))return!0x1;return!0x0;}function zt(_0x3da839){const _0x5e73df=Object['assign']({},_0x3da839);return delete _0x5e73df['skipNestingCheck'],delete _0x5e73df['tablePasteChainId'],_0x5e73df;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x9b5c62(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x321017,_0x14e687,_0x5bbea7,_0x6d5606){super(),this['model']=_0x14e687,this['view']=_0x5bbea7,this['commentThreadController']=_0x6d5606,this['_editor']=_0x321017,this['_acceptCommand']=_0x321017['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x321017['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5af836,_0x12e1bc)=>_0x5af836||_0x12e1bc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x459bef=>_0x459bef&&this['_editor']['model']['canEditAt'](_0x14e687['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x403ba2=>_0x403ba2&&this['_editor']['model']['canEditAt'](_0x14e687['getRanges']())),this['_pendingAction']=null,_0x5bbea7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5bbea7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5bbea7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5bbea7,'change:isDirty',()=>{_0x5bbea7['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 _0x976082=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x976082);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x46eb55{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3979ef,_0x545740,_0x236e1d,_0x561384){super(_0x3979ef),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5bad9b(_0x3979ef,o(_0x3979ef,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x545740['authoredAt']),this['bind']('authoredAt')['to'](_0x545740),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',_0x545740,'authoredAt',this,'descriptionParts',(_0x760ab1,_0x3fc503,_0x55935b)=>{const _0x5c94a7=_0x55935b['map'](_0xdf8815=>ls(_0xdf8815['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x760ab1-0x1,_0x545740['author']['name'],_0x3fc503?_0x561384['formatDateTime'](_0x3fc503):'',new DOMParser()['parseFromString'](_0x5c94a7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x29e978(),this['focusTracker']=new _0x5a80f5(),this['keystrokes']=new _0x16e23d(),this['focusCycler']=new _0x8653ea({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1d7671=>_0x1d7671['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x545740,this['_localUser']=_0x236e1d,this['_config']=_0x561384,_0x561384['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5572db(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3ae6b0}=this['_config'];this['commentsListView']=new _0x3ae6b0(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',_0x3cd51a=>_0x3cd51a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4598fe,_0x3ffce1)=>_0x4598fe||!!_0x3ffce1);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5d7f21}=this['_config'],_0x58609e=new _0x5d7f21(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1f5e5e=_0x58609e['commentInputView'];return _0x58609e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1f5e5e,'value',(_0x3c3005,_0x5db3ec,_0x595b9a)=>!!_0x595b9a||_0x3c3005&&!_0x5db3ec),_0x1f5e5e['on']('submit',(_0x52290e,_0x4ce481)=>{this['fire']('addComment',_0x4ce481),_0x1f5e5e['editor']['setData']('');}),_0x1f5e5e['on']('cancel',()=>this['focus']()),_0x1f5e5e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x58609e;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x2e23aa,_0x15ee44,_0x317b41,_0x59800d){super(_0x2e23aa,_0x15ee44,_0x317b41,_0x59800d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x66337a=>_0x66337a&&_0x66337a[0x0]?_0x66337a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x9af2de,_0x484847)=>{let _0x4dba1c='';for(const _0x55edd3 of _0x9af2de)_0x4dba1c+='<p>'+ls(_0x55edd3['content'],_0x55edd3['color'])+'</p>';return _0x484847?_0x4dba1c:_0x4c7176(_0x4dba1c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x59800d['SuggestionView'](_0x2e23aa,_0x15ee44,{'formatDateTime':_0x59800d['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 _0x39ee8e=this['bindTemplate'],_0x8f2af2=[this['suggestionView']];return this['commentsListView']&&_0x8f2af2['push'](this['commentsListView']),this['commentThreadInputView']&&_0x8f2af2['push'](this['commentThreadInputView']),_0x8f2af2['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x39ee8e['if']('isActive','ck-suggestion-wrapper--active'),_0x39ee8e['to']('type',_0x2d1aac=>'ck-suggestion-'+_0x2d1aac),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':_0x39ee8e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x8f2af2};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x46eb55{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5d98a3,_0x44f875,_0x38341f){super(_0x5d98a3),this['_model']=_0x44f875,this['_config']=_0x38341f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x44f875),this['acceptButton']=this['_createButton'](o(_0x5d98a3,'Accept\x20suggestion'),_0xe6826f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5d98a3,'Discard\x20suggestion'),_0xe6826f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x240f5a(_0x5d98a3,_0x44f875['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x29e978([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5a80f5(),this['keystrokes']=new _0x16e23d(),this['focusCycler']=new _0x8653ea({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2d12df=>_0x2d12df['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x39ed06=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x39ed06['innerHTML']=this['description'],this['on']('change:description',(_0x3a341e,_0x3748e3,_0x1b1618)=>{_0x39ed06['innerHTML']=_0x1b1618;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x307d9e=this['bindTemplate'],_0x14bfe7=[{'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':_0x307d9e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x307d9e['to']('authoredAt',_0xd00316=>this['_config']['formatDateTime'](_0xd00316))}]}]},{'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']&&_0x14bfe7['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':_0x14bfe7}]};}['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'](_0x3771ed,_0x3f211c,_0x5c6404,_0x2b45ca,_0x57ca11){const _0x1793ef=new _0x4c7ee6(this['locale']);return _0x1793ef['set']({'label':_0x3771ed,'icon':_0x3f211c,'tooltip':!0x0,'tooltipPosition':_0x57ca11}),_0x1793ef['extendTemplate']({'attributes':{'class':_0x5c6404}}),_0x1793ef['on']('execute',()=>{this['fire'](_0x2b45ca,this['_model']['id']);}),_0x1793ef;}['_setupKeyboardNavigation'](){const _0x123723=this['element'];this['keystrokes']['listenTo'](_0x123723);for(const _0x239ae8 of this['focusables'])this['focusTracker']['add'](_0x239ae8['element']),this['keystrokes']['listenTo'](_0x239ae8['element']);this['keystrokes']['set']('enter',(_0x177fea,_0x2e4c1d)=>{_0x123723===_0x177fea['target']&&(this['focusCycler']['focusFirst'](),_0x2e4c1d());}),this['keystrokes']['set']('esc',(_0x51c190,_0x55b1ad)=>{_0x123723!==_0x51c190['target']&&(this['focus'](),_0x55b1ad());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x3415fa{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x53d2c3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x50d18f){super(_0x50d18f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3e8391=this['editor']['config'];_0x3e8391['define']('trackChanges.SuggestionThreadView',re),_0x3e8391['define']('trackChanges.SuggestionView',ce),_0x3e8391['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3e8391['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x125d08,_0x450a12){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x10bed7,_0xccacc7]of this['_handleControllerBuffer']){const _0x459fba=this['_suggestionToController']['has'](_0x10bed7);_0x459fba||_0xccacc7?_0x459fba&&_0xccacc7&&this['_destroyController'](_0x10bed7):this['_initializeController'](_0x10bed7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x125d08,_0x450a12);}['init'](){const _0x5d9658=this['editor'],_0x195c35=_0x5d9658['plugins']['get']('TrackChangesEditing'),_0x210cba=_0x5d9658['plugins']['get']('Annotations'),_0x59eb4f=_0x5d9658['plugins']['get']('EditorAnnotations'),_0x36fe95=_0x5d9658['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x59eb4f['addSourceCollector'](()=>{const _0xa05452=[];for(const [_0x476111,_0x470f2f]of Array['from'](this['_suggestionToController'])){const _0x42b28f=_0x476111['getAllAdjacentSuggestions'](),_0x234a9a=[];for(const _0x2aabf2 of _0x42b28f){if(!_0x2aabf2['isInContent'])continue;if(_0x2aabf2['isMultiRange']){_0x234a9a['push'](..._0x2aabf2['getRanges']());continue;}const _0x1c9e97=_0x2aabf2['getFirstRange']();if(_0x234a9a['length']>0x0){const _0x508e8f=_0x234a9a[0x0]['getJoined'](_0x1c9e97);if(_0x508e8f){_0x234a9a[0x0]=_0x508e8f;continue;}}_0x234a9a['push'](_0x1c9e97);}_0xa05452['push']([_0x470f2f['view'],_0x234a9a]);}return _0xa05452;}),this['listenTo'](_0x195c35,'suggestionLoaded',(_0x10b8c9,_0x2d3290)=>{this['listenTo'](_0x2d3290,'change:previous',(_0xbc1279,_0x2e772f,_0x56c513,_0x2ce71a)=>{_0x2d3290['isInContent']&&(null==_0x56c513?(this['_updateController'](_0x2ce71a['head']),this['_handleSuggestionControllerDelayed'](_0x2d3290,!0x1)):(this['_updateController'](_0x56c513['head']),null==_0x2ce71a&&this['_handleSuggestionControllerDelayed'](_0x2d3290,!0x0)));}),null!==_0x2d3290['previous']?this['_updateController'](_0x2d3290['head']):this['_handleSuggestionControllerDelayed'](_0x2d3290,!0x1);}),this['listenTo'](_0x195c35,'suggestionUnloaded',(_0x14eded,_0x2094ab,_0x237826)=>{this['stopListening'](_0x2094ab,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2094ab),this['_suggestionToController']['has'](_0x2094ab)&&this['_destroyController'](_0x2094ab),_0x237826&&this['_updateController'](_0x237826['head']);}),this['listenTo'](_0x195c35,'suggestionChanged',(_0x57d17e,_0x454cf9)=>{this['_updateController'](_0x454cf9);}),this['listenTo'](_0x210cba,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x36fe95,'addComment',(_0x20f88a,{threadId:_0x17a7cd,isFromAdapter:_0x560e})=>{if(_0x560e||!_0x195c35['hasSuggestion'](_0x17a7cd))return;const _0x431732=_0x195c35['getSuggestion'](_0x17a7cd);this['_suggestionToController']['get'](_0x431732)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3b1da2=this['editor']['plugins']['get']('Annotations'),_0x88b570=this['editor']['plugins']['get']('TrackChangesEditing'),_0x184df6=Array['from'](_0x3b1da2['activeAnnotations'],_0x1d604b=>_0x1d604b['innerView'])['filter'](_0x4c8ef4=>this['_viewToController']['has'](_0x4c8ef4)),_0x38d4d5=[];for(const _0x465190 of _0x184df6){const _0x516e94=this['_viewToController']['get'](_0x465190)['model']['getAllAdjacentSuggestions']();_0x38d4d5['push'](..._0x516e94['reduce']((_0xfdf68a,_0x42c3a8)=>[..._0xfdf68a,..._0x42c3a8['getMarkerNames']()],[]));}_0x88b570['activeMarkers']=_0x38d4d5;}['_addUIComponentsToFactory'](){const _0x2a0dfc=this['editor'],_0x5ae6d1=_0x2a0dfc['locale'],_0xbbea8b=o(_0x5ae6d1,'Track\x20changes'),_0x3279fe=new Wt([{'type':'switchbutton','model':new _0x15f400({'withText':!0x0,'isToggleable':!0x0,'label':_0xbbea8b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x15f400({'withText':!0x0,'label':o(_0x5ae6d1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15f400({'withText':!0x0,'label':o(_0x5ae6d1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15f400({'withText':!0x0,'label':o(_0x5ae6d1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15f400({'withText':!0x0,'label':o(_0x5ae6d1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2135eb of _0x3279fe)if(me(_0x2135eb)){const _0x177cef=_0x2a0dfc['commands']['get'](_0x2135eb['model']['commandName']);_0x2135eb['model']['bind']('isOn','isEnabled')['to'](_0x177cef,'value','isEnabled');}_0x2a0dfc['ui']['componentFactory']['add']('trackChanges',_0x42a7b4=>this['_createToolbarButton'](_0x42a7b4,_0x3279fe,_0xbbea8b)),_0x2a0dfc['ui']['componentFactory']['add']('menuBar:trackChanges',_0x262b33=>this['_createMenuBarMenu'](_0x262b33,_0x3279fe,_0xbbea8b));}['_createToolbarButton'](_0x207173,_0x45b0c3,_0x19e6d4){const _0x5e0948=Qt(_0x207173,_0x48a6b0),_0x465784=this['editor']['commands']['get']('trackChanges');_0x5e0948['buttonView']['set']({'tooltip':_0x19e6d4,'label':_0x19e6d4,'icon':he}),_0x5e0948['buttonView']['bind']('isOn')['to'](_0x465784,'value'),_0x5e0948['buttonView']['on']('execute',()=>{_0x465784['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x5e0948,_0x45b0c3,{'role':'menu'});const _0x73bbed=[];for(const _0x53fb45 of _0x45b0c3)me(_0x53fb45)&&_0x73bbed['push'](this['editor']['commands']['get'](_0x53fb45['model']['commandName']));const _0x33c609=_0x5e0948['buttonView'];return _0x33c609['actionView']['unbind']('isEnabled'),_0x33c609['arrowView']['unbind']('isEnabled'),_0x33c609['actionView']['bind']('isEnabled')['to'](_0x465784,'isEnabled'),_0x33c609['arrowView']['bind']('isEnabled')['toMany'](_0x73bbed,'isEnabled',(..._0x5a754d)=>_0x5a754d['some'](_0x55c528=>_0x55c528)),_0x5e0948['on']('execute',_0x20f273=>{this['editor']['execute'](_0x20f273['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5e0948;}['_createMenuBarMenu'](_0x5c6560,_0x364844,_0x24ffcb){const _0x504374=new Yt(_0x5c6560),_0x2fe7a4=this['editor']['commands']['get']('trackChanges');_0x504374['buttonView']['set']({'label':_0x24ffcb,'icon':he});const _0x1fc803=new Zt(_0x5c6560);for(const _0x3ba2b9 of _0x364844){if('separator'==_0x3ba2b9['type']){_0x1fc803['items']['add'](new Xt(_0x5c6560));continue;}const _0x4b1d9f=new te(_0x5c6560,_0x504374),_0x3e21e8=new _0x24de32(_0x5c6560),_0x7f39ea=_0x3ba2b9['model'];_0x3e21e8['bind'](...Object['keys'](_0x7f39ea))['to'](_0x7f39ea),_0x3e21e8['delegate']('execute')['to'](_0x504374),_0x3e21e8['on']('execute',()=>{this['editor']['execute'](_0x7f39ea['commandName']),this['editor']['editing']['view']['focus']();}),_0x4b1d9f['children']['add'](_0x3e21e8),_0x1fc803['items']['add'](_0x4b1d9f);}return _0x504374['bind']('isEnabled')['to'](_0x2fe7a4,'isEnabled'),_0x504374['panelView']['children']['add'](_0x1fc803),_0x504374;}['_initializeController'](_0x38bcd1){const _0x4fd04b=this['editor'],_0x45f316=_0x4fd04b['config'],_0xce21b8=_0x4fd04b['plugins']['get']('Annotations'),_0x5c575a=_0x4fd04b['plugins']['get']('CommentsRepository'),_0x4496e2=_0x4fd04b['plugins']['get']('EditorAnnotations'),_0x2692a4=_0x4fd04b['plugins']['get'](_0x53d2c3)['me'],_0x4caa14=_0x45f316['get']('trackChanges')['SuggestionThreadView'],_0x3facdb=_0x45f316['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x38c7d6,CommentThreadInputView:_0x512b54}=_0x4fd04b['plugins']['get']('CommentsUI');let _0x2dbf0a,_0x44d9a0,_0x323a38;this['_annotationViews']['has'](_0x38bcd1['id'])?(_0x44d9a0=this['_annotationViews']['get'](_0x38bcd1['id']),_0x2dbf0a=_0x44d9a0['mainView']):(_0x2dbf0a=new _0x4caa14(_0x4fd04b['locale'],_0x38bcd1,_0x2692a4,{'disableComments':this['_disableComments'],'editorConfig':_0x45f316['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x45f316['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x45f316['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x45f316['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3f5c3d(_0x45f316['get']('locale')),'CommentView':_0x45f316['get']('comments')['CommentView'],'CommentsListView':_0x38c7d6,'CommentThreadInputView':_0x512b54,'SuggestionView':_0x3facdb}),_0x2dbf0a['suggestionView']['acceptButton']['on']('execute',()=>{_0x4fd04b['editing']['view']['focus']();}),_0x2dbf0a['suggestionView']['discardButton']['on']('execute',()=>{_0x4fd04b['editing']['view']['focus']();}),_0x44d9a0=_0xce21b8['createAnnotationView'](this['editor']['locale'],_0x2dbf0a),_0x44d9a0['bind']('isDirty')['to'](_0x2dbf0a,'isDirty'),_0x44d9a0['bind']('length')['to'](_0x2dbf0a),_0x44d9a0['bind']('type')['to'](_0x2dbf0a,'type',_0x5b8f50=>'suggestion-'+_0x5b8f50),_0x2dbf0a['on']('escape',()=>{_0x323a38['fire']('escape');}),this['_annotationViews']['set'](_0x38bcd1['id'],_0x44d9a0));const _0x5ad71a=_0x5c575a['createCommentThreadController'](_0x38bcd1['commentThread'],_0x2dbf0a),_0x3d7a25=new ae(_0x4fd04b,_0x38bcd1,_0x2dbf0a,_0x5ad71a),_0x4fbc64=_0x38bcd1['getAllAdjacentSuggestions']()['filter'](_0x602b20=>_0x602b20['isInContent']);_0x2dbf0a['descriptionParts']=_0x4fd04b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4fbc64),this['_suggestionToController']['set'](_0x38bcd1,_0x3d7a25),this['_viewToController']['set'](_0x2dbf0a,_0x3d7a25),_0x323a38=_0xce21b8['createAnnotation']({'view':_0x44d9a0,'target':()=>{const _0x839d1e=[],_0x4c4851=_0x38bcd1['getAllAdjacentSuggestions']()['filter'](_0x1ad4fd=>_0x1ad4fd['isInContent']);for(const _0x452774 of _0x4c4851)_0x839d1e['push'](..._0x452774['getMarkers']());return _0x3745ee(_0x4fd04b['editing'],_0x839d1e);},'type':()=>'suggestion-'+_0x3d7a25['view']['type']}),_0x5c575a['_bindAnnotationToEditors'](_0x2dbf0a,_0x323a38),_0xce21b8['add'](_0x323a38),_0x4496e2['registerAnnotation'](_0x323a38);}['_destroyController'](_0x36640b){const _0x411aaf=this['editor']['plugins']['get']('CommentsRepository'),_0x1b3bf4=this['editor']['plugins']['get']('Annotations'),_0x3953b5=this['_suggestionToController']['get'](_0x36640b),_0x1d28f5=_0x3953b5['view'],_0x52fb55=_0x1b3bf4['getByInnerView'](_0x1d28f5);_0x411aaf['_unbindEditors'](_0x1d28f5),_0x52fb55&&_0x1b3bf4['remove'](_0x52fb55),this['_suggestionToController']['delete'](_0x36640b),this['_viewToController']['delete'](_0x1d28f5),_0x3953b5['destroy']();}['_updateController'](_0xaf7bc5){if(!_0xaf7bc5['isInContent']||!this['_suggestionToController']['has'](_0xaf7bc5))return;const _0x3cc285=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cb999=this['_suggestionToController']['get'](_0xaf7bc5),_0x5e5f33=_0xaf7bc5['getAllAdjacentSuggestions']();_0x2cb999['view']['descriptionParts']=_0x3cc285['descriptionFactory']['getDescriptions'](_0x5e5f33);}['destroy'](){for(const _0x28e890 of this['_suggestionToController']['keys']())this['_destroyController'](_0x28e890);for(const _0x46a952 of this['_annotationViews']['values']())_0x46a952['mainView']['destroy']();super['destroy']();}}function me(_0x83a0ce){return'model'in _0x83a0ce;}class k extends _0x3415fa{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3401df){this['editor']['plugins']['get'](p)['adapter']=_0x3401df;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4ebdee){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4ebdee);}['getSuggestions']({skipNotAttached:_0xd5831=!0x1,toJSON:_0x1864ba=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xd5831,'toJSON':_0x1864ba});}['getSuggestion'](_0x31d2b6){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x31d2b6);}}const T=['Pagination'];class P extends _0x3415fa{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x5dd669=this['editor'];if(_0x5dd669['config']['define']('trackChangesData.editorCreator',_0x82498c=>{const _0x3ae78f=_0x5dd669['model']['document']['getRootNames']()['reduce']((_0x5e3e03,_0x14da50)=>(_0x5e3e03[_0x14da50]='',_0x5e3e03),{});return _0x5dd669['constructor']['create'](_0x3ae78f,_0x82498c);}),'function'!=typeof _0x5dd669['config']['get']('trackChangesData')['editorCreator'])throw new _0x267495('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x98cda8){return N(this['editor'],!0x0,_0x98cda8);}['getDataWithDiscardedSuggestions'](_0x2f9416){return N(this['editor'],!0x1,_0x2f9416);}}class D extends _0x3415fa{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x355686){super(_0x355686),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x40f75f){return void 0x0!==_0x40f75f['getRootsAttributes'];}async function N(_0x49c8d7,_0x5e8678,_0xde838c){const _0x1bfd96=_0x170c4c(_0x49c8d7,T);_0x1bfd96['plugins']['push'](p,D),_0x1bfd96['rootsAttributes']=v(_0x49c8d7)?_0x49c8d7['getRootsAttributes']():void 0x0;const _0x186670=document['createDocumentFragment'](),_0x3e0e0e=_0x49c8d7['config']['get']('trackChangesData')['editorCreator'],_0x3bbbd3=await _0x3e0e0e(_0x1bfd96,()=>function(_0x1cac7f){const _0x145628=document['createElement']('div');return _0x1cac7f['appendChild'](_0x145628),_0x145628;}(_0x186670));!function(_0x416266,_0x3dd1a7){const _0x37b620=_0x416266['model']['document']['getRootNames']()['reduce']((_0x4486e6,_0x2bcf36)=>(_0x4486e6[_0x2bcf36]=_0x416266['data']['get']({'rootName':_0x2bcf36}),_0x4486e6),{}),_0x4d3b9c=_0x416266['plugins']['get']('Users')['users']['map'](_0x69000f=>({'id':_0x69000f['id'],'name':_0x69000f['name']})),_0x214884=_0x416266['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3603fb=_0x416266['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3c39b9=_0x3dd1a7['plugins']['get']('Users'),_0x35f8eb=_0x3dd1a7['plugins']['get']('TrackChangesEditing'),_0x5318b4=_0x3dd1a7['plugins']['get']('CommentsRepository');for(const _0x42753d of _0x5318b4['getCommentThreads']())_0x42753d['remove']();for(const _0x1c0200 of _0x4d3b9c)_0x3c39b9['getUser'](_0x1c0200['id'])||_0x3c39b9['addUser'](_0x1c0200);_0x3c39b9['me']||_0x3c39b9['useAnonymousUser']();for(const _0xd3bf37 of _0x3603fb)_0x5318b4['addCommentThread'](_0xd3bf37);for(const _0x230d65 of _0x214884)_0x35f8eb['addSuggestionData'](_0x230d65);_0x3dd1a7['data']['set'](_0x37b620);}(_0x49c8d7,_0x3bbbd3),_0x3bbbd3['execute'](_0x5e8678?'acceptAllSuggestions':'discardAllSuggestions');const _0x152aaf=v(_0x3bbbd3)?_0x3bbbd3['getFullData'](_0xde838c):_0x3bbbd3['data']['get'](_0xde838c);return await _0x3bbbd3['destroy'](),_0x152aaf;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};