@ckeditor/ckeditor5-track-changes 44.1.0-alpha.1 → 44.1.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Qt,Plugin as _0x3c70aa,PendingActions as _0x4b0c5c,icons as _0x2c975e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1c48ec,ObservableMixin as _0x5e240a,uid as _0x1cdff5,insertToPriorityArray as _0x113a93,priorities as _0x2e7237,logWarning as _0x394b65,getEnvKeystrokeText as _0x353a89,FocusTracker as _0x5b425e,KeystrokeHandler as _0x48adf6,Collection as _0x4a8f40}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x17ec29,View as _0x1af93f,ViewCollection as _0x5942c5,FocusCycler as ts,ViewModel as _0x11d7e2,createDropdown as _0x3ca6cc,SplitButtonView as _0x3de8e3,addListToDropdown as te,MenuBarMenuView as _0x5f51ed,MenuBarMenuListView as _0x474c59,ListSeparatorView as _0x41b63c,MenuBarMenuListItemView as _0x101cc3,MenuBarMenuListItemButtonView as _0x356cad}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x561e78,hashObject as _0x48010a,surroundingMarkersDetector as _0x452a5d,FOCUS_ANNOTATION_KEYSTROKE as _0x2bee45,AriaDescriptionView as _0x2feb91,setupThreadKeyboardNavigation as _0x5a6628,trimHtml as ti,UserView as _0x1a7807,LateFocusButtonView as _0x48ee80,getDateTimeFormatter as _0x3f1446,getAllMarkersDomElementsSorted as _0xd1bf56,sanitizeEditorConfig as _0x56139c}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x61c7b7,LiveRange as _0x4fb46f,LivePosition as _0x4537ad}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x504615,toWidget as _0xf63f8c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x27d82d,set as _0x1386f3,isEqual as _0x4700ac,unset as _0xd0c7a4,omit as xt}from'lodash-es';import{Delete as _0x1f0ed5,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x491ab7,ShiftEnter as _0x4f65e3}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x23af91,_0x3f81d2){super(_0x23af91),this['_enabledCommands']=_0x3f81d2,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 _0x481c3f of this['editor']['commands']['commands']())_0x481c3f['affectsData']&&!this['_enabledCommands']['has'](_0x481c3f)&&_0x481c3f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3350f4 of this['editor']['commands']['commands']())_0x3350f4['affectsData']&&!this['_enabledCommands']['has'](_0x3350f4)&&_0x3350f4['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x300d8b,_0x155d6c){super(_0x300d8b),this['_suggestions']=_0x155d6c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2742e3){const _0x4142d9=this['_suggestions']['get'](_0x2742e3);if(!_0x4142d9)throw new _0x1c48ec('track-changes-accept-suggestion-not-found',this);const _0x466715=_0x4142d9['getRanges']();this['editor']['model']['canEditAt'](_0x466715)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4142d9);}}class R extends Qt{['_suggestions'];constructor(_0x272b18,_0x3e01e6){super(_0x272b18),this['_suggestions']=_0x3e01e6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x469486){const _0x124141=this['_suggestions']['get'](_0x469486);if(!_0x124141)throw new _0x1c48ec('track-changes-discard-suggestion-not-found',this);const _0x256c7c=_0x124141['getRanges']();this['editor']['model']['canEditAt'](_0x256c7c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x124141);}}function ns(_0x5431d2,_0x55af97){let _0xa19740='';return _0xa19740+=_0x5431d2['split']('*')['map']((_0x243f56,_0x298430)=>_0x298430%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x243f56)+'</span>':nn(_0x243f56))['join'](''),_0x55af97&&(_0xa19740+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x55af97['value']+'\x22\x20title=\x22'+_0x55af97['title']+'\x22></span>'),_0xa19740;}function nn(_0x2a7321){const _0x406c00=document['createElement']('span');return _0x406c00['innerText']=_0x2a7321,_0x406c00['innerHTML'];}function Wt(_0x34bd16){return _0x34bd16['sort']((_0x451092,_0x1d6f98)=>'deletion'==_0x451092['type']&&'deletion'!=_0x1d6f98['type']?-0x1:'deletion'!=_0x451092['type']&&'deletion'==_0x1d6f98['type']?0x1:0x0);}function to(_0x22634e,_0x2c71e1){let _0x31b4c4,_0xc2ce3b=0x0;const _0x240a84=[],_0x46658d=_0x2c71e1['schema'];for(;_0xc2ce3b<_0x22634e['length'];){const _0x2415d5=_0x22634e[_0xc2ce3b],_0x5753f8=_0x22634e[_0xc2ce3b+0x1];_0x31b4c4||(_0x31b4c4=_0x2c71e1['createPositionBefore'](_0x2415d5)),on(_0x2c71e1,_0x2415d5,_0x5753f8)||(_0x240a84['push'](_0x2c71e1['createRange'](_0x31b4c4,_0x46658d['isObject'](_0x2415d5)?_0x2c71e1['createPositionAfter'](_0x2415d5):_0x2c71e1['createPositionAt'](_0x2415d5,'end'))),_0x31b4c4=null),_0xc2ce3b++;}return _0x240a84;}function on(_0x5d3f5d,_0x83e505,_0x146f46){if(!_0x146f46)return!0x1;const _0x8acf6d=_0x5d3f5d['createPositionAfter'](_0x83e505),_0x3417c9=_0x5d3f5d['createPositionBefore'](_0x146f46);return _0x8acf6d['isTouching'](_0x3417c9);}function Xt(_0x1a5945,_0x39265c,_0x54c2f1){for(;_0x54c2f1['length'];){const _0x5a1b80=_0x54c2f1['splice'](0x0,0x64);_0x1a5945['change'](()=>{for(const _0xfd8e31 of _0x5a1b80)_0xfd8e31['isInContent']&&_0x39265c['execute'](_0xfd8e31['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x38bfdc,_0x3effbb,_0x1cc812){super(_0x38bfdc),this['_command']=_0x3effbb,this['_suggestions']=_0x1cc812,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x328f3b=Array['from'](this['_suggestions']['values']())['some'](_0x46d699=>_0x46d699['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x328f3b;}['execute'](){const _0x56c6f0=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x48f46c of _0x56c6f0){const _0x16ee43=_0x48f46c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x16ee43))return;}Xt(this['editor']['model'],this['_command'],_0x56c6f0);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2393d0,_0x41a3af,_0x4c988a){super(_0x2393d0),this['_command']=_0x41a3af,this['_suggestions']=_0x4c988a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4c0c8d=this['editor']['model']['document']['selection'],_0x194385=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xf53a52,_0x92acd5){const _0x383602=Array['from'](_0xf53a52['getRanges']()),_0x2218d8=new Set();for(const _0x1b9547 of _0x92acd5)if(_0x1b9547['isInContent']){for(const _0x2323c9 of _0x383602)for(const _0x21469f of _0x1b9547['getRanges']())(_0x2323c9['isIntersecting'](_0x21469f)||_0xf53a52['isCollapsed']&&!_0x1b9547['isMultiRange']&&_0x1b9547['next']&&_0x21469f['end']['isTouching'](_0x2323c9['start']))&&_0x2218d8['add'](_0x1b9547);}return _0x2218d8;}(_0x4c0c8d,_0x194385),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3d55e5=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x24acc2 of _0x3d55e5){const _0x5a2180=_0x24acc2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5a2180))return;}Xt(this['editor']['model'],this['_command'],_0x3d55e5);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x5e240a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x113b49,_0x1c8b47){super(),this['id']=_0x1c8b47['id'],this['type']=_0x1c8b47['type'],this['subType']=_0x1c8b47['subType']||null,this['author']=_0x1c8b47['author'],this['creator']=_0x1c8b47['creator']||_0x1c8b47['author'],this['isExternal']=Boolean(_0x1c8b47['attributes']&&_0x1c8b47['attributes']['@external']),this['data']=null,this['_model']=_0x113b49,this['_onAccept']=_0x1c8b47['onAccept'],this['_onDiscard']=_0x1c8b47['onDiscard'],this['_onAttributesChange']=_0x1c8b47['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1c8b47['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 _0x4a8df6=this;for(;_0x4a8df6['previous'];)_0x4a8df6=_0x4a8df6['previous'];return _0x4a8df6;}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'](_0x488c90){this['_markerNames']['add'](_0x488c90);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3e8463=>this['_model']['markers']['get'](_0x3e8463))['filter'](_0x2a2fb2=>_0x2a2fb2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5a923a=>{for(const _0xa354b9 of this['getMarkers']())_0x5a923a['removeMarker'](_0xa354b9);}),this['_markerNames']['clear']();}['removeMarker'](_0x4bd31a){this['_model']['change'](_0x113547=>{_0x113547['removeMarker'](_0x4bd31a);}),this['_markerNames']['delete'](_0x4bd31a);}['addRange'](_0x49d2f5){const _0x1aba62='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1aba62),this['_model']['change'](_0x1b996f=>{_0x1b996f['addMarker'](_0x1aba62,{'range':_0x49d2f5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2803f2){for(const _0x22e1a9 of this['getRanges']())if(_0x22e1a9['isIntersecting'](_0x2803f2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x35c9c5=>_0x35c9c5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x46290c,_0x929197)=>[..._0x46290c,..._0x929197['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x382d1c=this['getRanges']();if(0x1!=_0x382d1c['length'])return null;const _0x20357a=_0x382d1c[0x0],_0x3ce74a=_0x20357a['start']['nodeAfter'],_0x20dd56=_0x20357a['end']['nodeBefore'];return _0x3ce74a instanceof _0x61c7b7?_0x3ce74a!=_0x20dd56?null:_0x3ce74a: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 _0x55b222=[];let _0x52bc66=this['head'];for(;_0x52bc66;)_0x55b222['push'](_0x52bc66),_0x52bc66=_0x52bc66['next'];return _0x55b222;}['setAttribute'](_0x5a36f9,_0x1b86b2){const _0x2c8b90=_0x27d82d(this['attributes']);_0x1386f3(_0x2c8b90,_0x5a36f9,_0x1b86b2),_0x4700ac(_0x2c8b90,this['attributes'])||(this['attributes']=_0x2c8b90,this['_onAttributesChange'](_0x2c8b90));}['removeAttribute'](_0x25def0){const _0x3dbf58=_0x27d82d(this['attributes']);_0xd0c7a4(_0x3dbf58,_0x25def0),_0x4700ac(_0x3dbf58,this['attributes'])||(this['attributes']=_0x3dbf58,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 _0x1cdff5()['substr'](0x1,0x5);}}function o(_0x1eb845,_0x1e12d1,_0x3c51c2){const _0x52e39c=_0x1eb845['t'],t=_0x1eb845['t'];switch(_0x1e12d1){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',_0x3c51c2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3c51c2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3c51c2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3c51c2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3c51c2);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',_0x3c51c2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3c51c2);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',_0x3c51c2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3c51c2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3c51c2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3c51c2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3c51c2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3c51c2);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3c51c2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3c51c2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3c51c2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3c51c2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3c51c2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3c51c2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3c51c2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3c51c2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3c51c2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3c51c2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3c51c2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3c51c2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3c51c2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3c51c2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3c51c2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3c51c2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3c51c2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3c51c2);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'},_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3c51c2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3c51c2);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'},_0x3c51c2);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3c51c2);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 _0x52e39c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3c51c2);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x52e39c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3c51c2);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3c51c2);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'},_0x3c51c2);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'},_0x3c51c2);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'},_0x3c51c2);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1e12d1;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x33ed28,_0x3ac1c8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x33ed28,this['_locale']=_0x3ac1c8;}['getDescriptions'](_0x4e16a1){const _0x2686f3=[],_0x28a6f7=new Set(),_0x1e7516=new Set();for(let _0x153fbb=0x0;_0x153fbb<_0x4e16a1['length'];_0x153fbb++){const _0x5e6c92=_0x4e16a1[_0x153fbb];if(!_0x5e6c92['isInContent'])continue;const _0x4cda05=this['_handleCustomCallbackDescription'](_0x5e6c92);if(_0x4cda05){if(null!=_0x5e6c92['subType']){if(_0x28a6f7['has'](_0x5e6c92['subType']))continue;_0x28a6f7['add'](_0x5e6c92['subType']);}_0x2686f3['push'](_0x4cda05);}else{if('attribute'!=_0x5e6c92['type'])'insertion'!=_0x5e6c92['type']&&'deletion'!=_0x5e6c92['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2686f3,_0x5e6c92,_0x4e16a1[_0x153fbb+0x1]);else{const _0x128d53=_0x5e6c92['data']['key'];if(_0x1e7516['has'](_0x128d53))continue;_0x1e7516['add'](_0x5e6c92['data']['key']),_0x128d53==m?this['_handleRenameSuggestionDescription'](_0x2686f3,_0x5e6c92):this['_handleAttributeSuggestionDescription'](_0x2686f3,_0x5e6c92);}}}return this['_resolveDescriptionItems'](_0x2686f3);}['registerDescriptionCallback'](_0x44d8cd){this['_customCallbacks']['push'](_0x44d8cd);}['registerElementLabel'](_0x1d3ecf,_0x4ee7cc,_0x1e6aed=_0x2e7237['normal']){'function'==typeof _0x1d3ecf?_0x113a93(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1d3ecf,'label':_0x4ee7cc,'priority':_0x1e6aed}):this['_itemLabels']['set'](_0x1d3ecf,_0x4ee7cc);}['registerAttributeLabel'](_0x3b59e8,_0x613ed6){this['_attributeLabels']['set'](_0x3b59e8,_0x613ed6);}['getItemLabel'](_0x783b4f,_0xb32dd=0x1){let _0x56d867;for(const _0x1c74ea of this['_itemLabelsCallbacks'])if(_0x1c74ea['matchingCallback'](_0x783b4f)){_0x56d867=_0x1c74ea['label'];break;}return _0x56d867||(_0x56d867=this['_itemLabels']['get'](_0x783b4f['name'])),_0x56d867?_0x56d867(_0xb32dd):0x1!==_0xb32dd?_0xb32dd+'\x20'+_0x783b4f['name']+'s':''+_0x783b4f['name'];}['_addDescriptionItems'](_0x4219bb,_0x5d7972){const _0x1277b0=_0x5d7972['getFirstRange']()['getWalker'](),_0x24b17e='insertion'==_0x5d7972['type']?'add':'remove';for(const _0x17f87d of _0x1277b0){const _0x4d566c=_0x17f87d['item'],_0x44798e=_0x4219bb[_0x4219bb['length']-0x1];if(_0x4d566c['is']('$textProxy'))_0x44798e&&_0x44798e['type']['indexOf']('Container')>-0x1&&_0x4219bb['pop'](),_0x44798e&&'text'==_0x44798e['type']?_0x44798e[_0x24b17e]+=_0x4d566c['data']:_0x4219bb['push']({'type':'text','add':'add'==_0x24b17e?_0x4d566c['data']:'','remove':'remove'==_0x24b17e?_0x4d566c['data']:''});else{if(this['_schema']['isObject'](_0x4d566c)){const _0x3dbbc8=_0x4d566c;if(_0x44798e&&_0x44798e['type']['indexOf']('Container')>-0x1&&_0x4219bb['pop'](),'elementEnd'==_0x17f87d['type'])continue;_0x44798e&&_0x44798e['type']==_0x24b17e+'Object'&&_0x44798e['element']['name']==_0x3dbbc8['name']?_0x44798e['quantity']++:_0x4219bb['push']({'type':_0x24b17e+'Object','element':_0x3dbbc8,'quantity':0x1}),_0x1277b0['skip'](_0x364ce3=>!('elementEnd'==_0x364ce3['type']&&_0x364ce3['item']==_0x4d566c));}else{if(this['_schema']['checkChild'](_0x4d566c,'$text')||_0x4d566c['is']('element','softBreak')){const _0x517ff3=_0x4d566c;if('add'==_0x24b17e&&'elementStart'==_0x17f87d['type']||'remove'==_0x24b17e&&'elementEnd'==_0x17f87d['type'])continue;if(_0x44798e&&-0x1==_0x44798e['type']['indexOf']('Container')){'text'==_0x44798e['type']&&(_0x44798e[_0x24b17e]+='\x0a');continue;}let _0x31ddff;if(_0x31ddff='add'==_0x24b17e?_0x517ff3['nextSibling']&&!this['_schema']['isObject'](_0x517ff3['nextSibling'])?_0x517ff3['nextSibling']:null:_0x517ff3['previousSibling']&&!this['_schema']['isObject'](_0x517ff3['previousSibling'])?_0x517ff3['previousSibling']:null,_0x517ff3['isEmpty']||_0x31ddff&&_0x31ddff['isEmpty']){const _0x756c65=_0x31ddff&&_0x31ddff['isEmpty']?_0x31ddff:_0x517ff3;_0x44798e&&_0x44798e['type']==_0x24b17e+'EmptyContainer'&&_0x44798e['element']['name']==_0x756c65['name']?_0x44798e['quantity']++:_0x4219bb['push']({'type':_0x24b17e+'EmptyContainer','element':_0x756c65,'quantity':0x1});}else _0x4219bb['push']({'type':_0x24b17e+'Container','element':_0x517ff3});}}}}}['_resolveDescriptionItems'](_0x5bba7f){const _0x14ae2d=this['_locale'],_0x1dcebf=[],_0x4b269d=[],_0x6bfaad=[];for(const _0x3420e2 of _0x5bba7f)switch(_0x3420e2['type']){case'text':if(_0x3420e2['add']=_0x3420e2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3420e2['remove']=_0x3420e2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3420e2['add']&&''!=_0x3420e2['remove']){_0x1dcebf['push']({'type':'replace','content':o(_0x14ae2d,'REPLACE_TEXT',['\x22'+_0x3420e2['remove']+'\x22','\x22'+_0x3420e2['add']+'\x22'])});continue;}if(null!=_0x3420e2['add']['match'](/^ +$/)){_0x1dcebf['push']({'type':'insertion','content':o(_0x14ae2d,'*Insert:*\x20%0',o(_0x14ae2d,'ELEMENT_SPACE',_0x3420e2['add']['length']))});continue;}if(null!=_0x3420e2['remove']['match'](/^ +$/)){_0x1dcebf['push']({'type':'deletion','content':o(_0x14ae2d,'*Remove:*\x20%0',o(_0x14ae2d,'ELEMENT_SPACE',_0x3420e2['remove']['length']))});continue;}if(''!=_0x3420e2['add']){_0x1dcebf['push']({'type':'insertion','content':o(_0x14ae2d,'*Insert:*\x20%0','\x22'+_0x3420e2['add']+'\x22')});continue;}_0x1dcebf['push']({'type':'deletion','content':o(_0x14ae2d,'*Remove:*\x20%0','\x22'+_0x3420e2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1dcebf['push']({'type':'insertion','content':o(_0x14ae2d,'*Insert:*\x20%0',this['getItemLabel'](_0x3420e2['element'],_0x3420e2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1dcebf['push']({'type':'deletion','content':o(_0x14ae2d,'*Remove:*\x20%0',this['getItemLabel'](_0x3420e2['element'],_0x3420e2['quantity']))});continue;case'addContainer':_0x1dcebf['push']({'type':'insertion','content':o(_0x14ae2d,'*Split:*\x20%0',this['getItemLabel'](_0x3420e2['element'],_0x3420e2['quantity']))});continue;case'removeContainer':_0x1dcebf['push']({'type':'deletion','content':o(_0x14ae2d,'*Merge:*\x20%0',this['getItemLabel'](_0x3420e2['element'],_0x3420e2['quantity']))});continue;case'addFormat':_0x4b269d['push'](_0x3420e2['key']);continue;case'removeFormat':_0x6bfaad['push'](_0x3420e2['key']);continue;default:_0x1dcebf['push'](_0x3420e2);}if(_0x4b269d['length']){const _0x584086=_0x4b269d['map'](_0x52a94a=>this['_attributeLabels']['has'](_0x52a94a)?this['_attributeLabels']['get'](_0x52a94a):_0x52a94a)['join'](',\x20');_0x1dcebf['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x584086)});}if(_0x6bfaad['length']){const _0x476e5d=_0x6bfaad['map'](_0x4ce37c=>this['_attributeLabels']['has'](_0x4ce37c)?this['_attributeLabels']['get'](_0x4ce37c):_0x4ce37c)['join'](',\x20');_0x1dcebf['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x476e5d)});}return _0x1dcebf;}['_handleCustomCallbackDescription'](_0x1e963a){for(const _0x39018b of this['_customCallbacks']){const _0x586e6e=_0x39018b(_0x1e963a);if(_0x586e6e&&'type'in _0x586e6e)return _0x586e6e;}}['_handleAttributeSuggestionDescription'](_0x8dadf6,_0x35b084){const _0x5f5af7=_0x35b084['data'],_0x3c8053=void 0x0===_0x5f5af7['newValue']?'removeFormat':'addFormat';_0x8dadf6['push']({'type':_0x3c8053,'key':_0x5f5af7['key']});}['_handleRenameSuggestionDescription'](_0x154cdd,_0x1444b9){_0x154cdd['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1444b9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x59708c,_0x4bbd15,_0x36d869){if(this['_addDescriptionItems'](_0x59708c,_0x4bbd15),_0x36d869&&_0x36d869['getFirstRange']()&&!_0x4bbd15['getFirstRange']()['end']['isEqual'](_0x36d869['getFirstRange']()['start'])){const _0xdc039a=_0x59708c[_0x59708c['length']-0x1],_0x5eceef='insertion'==_0x4bbd15['type']?'add':'remove';_0xdc039a&&'text'==_0xdc039a['type']&&(_0xdc039a[_0x5eceef]+='\x0a');}}}class U extends _0x3c70aa{['afterInit'](){const _0x4b1ea6=this['editor'],_0x1662bf=_0x4b1ea6['plugins']['get']('TrackChangesEditing');_0x4b1ea6['commands']['get']('showAIAssistant')&&_0x1662bf['enableCommand']('showAIAssistant');}}class V extends _0x3c70aa{['afterInit'](){const _0x1ab935=this['editor'],_0x3a2955=_0x1ab935['locale'];if(!_0x1ab935['plugins']['has']('AlignmentEditing'))return;const _0x319964=_0x1ab935['plugins']['get']('TrackChangesEditing');_0x319964['enableDefaultAttributesIntegration']('alignment'),_0x319964['registerBlockAttribute']('alignment'),_0x319964['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3a2955,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1064de=this['editor'],_0x31342b=_0x1064de['locale'];_0x1064de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e1ede=>{if('formatBlock'!=_0x5e1ede['type'])return;const {data:_0xa856ce}=_0x5e1ede;if(_0xa856ce&&'alignment'==_0xa856ce['commandName']){const _0x2651f=_0xa856ce['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x31342b,'*Format:*\x20%0',function(_0xd138a7){switch(_0xd138a7){case'left':return o(_0x31342b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x31342b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x31342b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x31342b,'FORMAT_JUSTIFY_TEXT');}}(_0x2651f))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3c70aa{['afterInit'](){const _0x5558db=this['editor'],_0x1b28c7=_0x5558db['plugins']['get']('TrackChangesEditing'),_0x3a27a8=_0x5558db['locale'];for(const _0x1a13cb of Zt){if(!_0x5558db['plugins']['has'](_0x1a13cb))continue;const _0xe1e05a=_0x1a13cb['slice'](0x0,-0x7)['toLowerCase'](),_0x44a2b3='FORMAT_'+_0xe1e05a['toUpperCase']();_0x1b28c7['enableDefaultAttributesIntegration'](_0xe1e05a),_0x1b28c7['registerInlineAttribute'](_0xe1e05a),_0x1b28c7['descriptionFactory']['registerAttributeLabel'](_0xe1e05a,o(_0x3a27a8,_0x44a2b3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4da0b2=this['editor'],_0x547944=_0x4da0b2['locale'],_0xe3fad6=_0x4da0b2['plugins']['get']('TrackChangesEditing');function _0x1299ae(_0x2353a5,_0x57dc01){_0xe3fad6['descriptionFactory']['registerDescriptionCallback'](_0x2a8485=>{if('formatInline'!=_0x2a8485['type'])return;const {data:_0xd98a10}=_0x2a8485;return _0xd98a10&&_0xd98a10['commandName']===_0x2353a5?_0xd98a10['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x547944,'*Format:*\x20%0',_0x57dc01)}:{'type':'format','content':o(_0x547944,'*Remove\x20format:*\x20%0',_0x57dc01)}:void 0x0;});}_0x1299ae('bold',o(_0x547944,'FORMAT_BOLD')),_0x1299ae('italic',o(_0x547944,'FORMAT_ITALIC')),_0x1299ae('underline',o(_0x547944,'FORMAT_UNDERLINE')),_0x1299ae('code',o(_0x547944,'FORMAT_CODE')),_0x1299ae('strikethrough',o(_0x547944,'FORMAT_STRIKETHROUGH')),_0x1299ae('subscript',o(_0x547944,'FORMAT_SUBSCRIPT')),_0x1299ae('superscript',o(_0x547944,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3c70aa{['afterInit'](){const _0x2a6d37=this['editor'],_0x549baa=_0x2a6d37['locale'];if(!_0x2a6d37['plugins']['has']('BlockQuoteEditing'))return;const _0x471f25=_0x2a6d37['plugins']['get']('TrackChangesEditing'),_0x458cd4=this['editor']['commands']['get']('blockQuote');_0x471f25['enableCommand']('blockQuote',(_0x1c8e50,_0xa866c0={})=>{const _0x1e71f9=this['editor']['model']['document']['selection'],_0x3ba080=_0xa866c0&&void 0x0!==_0xa866c0['forceValue']?_0xa866c0['forceValue']:!_0x458cd4['value'];let _0xe5a176=[];if(_0x3ba080){const _0xfb4d99=Array['from'](_0x1e71f9['getSelectedBlocks']())['filter'](_0x56f6be=>oo(_0x56f6be)||function(_0x3b5982,_0x13fb62){const _0x3d13cd=_0x13fb62['checkChild'](_0x3b5982['parent'],'blockQuote'),_0x3136b3=_0x13fb62['checkChild'](['$root','blockQuote'],_0x3b5982);return _0x3d13cd&&_0x3136b3;}(_0x56f6be,this['editor']['model']['schema']));_0xe5a176=to(_0xfb4d99,_0x2a6d37['model']);}else{const _0x2f2968=Array['from'](_0x1e71f9['getSelectedBlocks']())['filter'](_0xb449f9=>oo(_0xb449f9));_0xe5a176=to(_0x2f2968,_0x2a6d37['model']);}_0x2a6d37['model']['change'](()=>{for(const _0x429cb4 of _0xe5a176)_0x471f25['markBlockFormat'](_0x429cb4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3ba080}]});});}),_0x471f25['descriptionFactory']['registerDescriptionCallback'](_0x46e472=>{const {data:_0x56fdec}=_0x46e472;if(_0x56fdec&&'blockQuote'==_0x56fdec['commandName']){const _0x100fa8=o(_0x549baa,'ELEMENT_BLOCK_QUOTE');return _0x56fdec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x549baa,'*Set\x20format:*\x20%0',_0x100fa8)}:{'type':'format','content':o(_0x549baa,'*Remove\x20format:*\x20%0',_0x100fa8)};}});}}function oo(_0x48d99b){return'blockQuote'==_0x48d99b['parent']['name'];}class L extends _0x3c70aa{['afterInit'](){const _0x264d37=this['editor'],_0x36b626=_0x264d37['locale'],_0x3b2bd7=_0x264d37['plugins']['get']('TrackChangesEditing');_0x264d37['plugins']['has']('BookmarkEditing')&&(_0x3b2bd7['enableCommand']('insertBookmark'),_0x3b2bd7['enableDefaultAttributesIntegration']('updateBookmark'),_0x3b2bd7['registerBlockAttribute']('bookmarkId'),_0x3b2bd7['descriptionFactory']['registerDescriptionCallback'](_0x13de5f=>{if('insertion'!=_0x13de5f['type']&&'deletion'!=_0x13de5f['type']&&'attribute'!=_0x13de5f['type'])return;const _0x724b6e=_0x13de5f['getContainedElement']();if(null==_0x724b6e)return;if(!_0x724b6e['is']('element','bookmark'))return;const _0x4e4a99=_0x724b6e['getAttribute']('bookmarkId');if('insertion'==_0x13de5f['type'])return{'type':'insertion','content':o(_0x36b626,'*Insert:*\x20%0','\x22'+_0x4e4a99+'\x22\x20'+o(_0x36b626,'ELEMENT_BOOKMARK'))};if('deletion'==_0x13de5f['type'])return{'type':'deletion','content':o(_0x36b626,'*Remove:*\x20%0','\x22'+_0x4e4a99+'\x22\x20'+o(_0x36b626,'ELEMENT_BOOKMARK'))};const {data:_0x32adf7}=_0x13de5f;if(!_0x32adf7||'bookmarkId'!=_0x32adf7['key'])return;return{'type':'format','content':o(_0x36b626,'*Set\x20bookmark:*\x20%0','\x22'+_0x32adf7['newValue']+'\x22')};}));}}class J extends _0x3c70aa{['afterInit'](){const _0x27df4b=this['editor'];_0x27df4b['plugins']['has']('CaseChange')&&(_0x27df4b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x27df4b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x27df4b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3c70aa{['afterInit'](){const _0x55ffd9=this['editor'];_0x55ffd9['commands']['get']('ckbox')&&_0x55ffd9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x3c70aa{['afterInit'](){const _0x43de06=this['editor'];if(!_0x43de06['plugins']['has']('CodeBlock'))return;const _0x2d2c01=_0x43de06['plugins']['get']('TrackChangesEditing'),_0x24fe78=_0x43de06['locale'],_0x4fa5e1=_0x43de06['config']['get']('codeBlock')['languages'],_0x6ed662=_0x43de06['commands']['get']('codeBlock');_0x2d2c01['enableCommand']('indentCodeBlock'),_0x2d2c01['enableCommand']('outdentCodeBlock'),_0x2d2c01['enableCommand']('codeBlock',(_0x2a8e27,_0xda2123={})=>{const _0x2c726c=_0x43de06['model'],_0x5c1136=_0x43de06['model']['document']['selection'],_0x116a5c=_0xda2123&&void 0x0!==_0xda2123['forceValue']?_0xda2123['forceValue']:!_0x6ed662['value'];let _0x684b9d;_0xda2123['language']||(_0xda2123['language']=_0x4fa5e1[0x0]['language']),_0x684b9d=_0x116a5c?Array['from'](_0x5c1136['getSelectedBlocks']())['filter'](_0x184e76=>eo(_0x184e76)||function(_0x598b35,_0x3d5111){if(_0x598b35['is']('rootElement')||_0x3d5111['isLimit'](_0x598b35))return!0x1;return _0x3d5111['checkChild'](_0x598b35['parent'],'codeBlock');}(_0x184e76,_0x2c726c['schema'])):Array['from'](_0x5c1136['getSelectedBlocks']())['filter'](_0x549254=>eo(_0x549254));const _0x4db2db=to(_0x684b9d,_0x2c726c);_0x2c726c['change'](()=>{for(const _0x385be0 of _0x4db2db)_0x2d2c01['markBlockFormat'](_0x385be0,{'commandName':'codeBlock','commandParams':[{..._0xda2123,'forceValue':_0x116a5c}],'formatGroupId':'blockName'});});}),(_0x2d2c01['descriptionFactory']['registerElementLabel']('codeBlock',_0x209f2f=>o(_0x24fe78,'ELEMENT_CODE_BLOCK',_0x209f2f)),_0x2d2c01['descriptionFactory']['registerDescriptionCallback'](_0x27895a=>{if('formatBlock'!=_0x27895a['type'])return;const _0x2f0b97=_0x24fe78['t'],{data:_0x4be0d1}=_0x27895a;if(!_0x4be0d1||'codeBlock'!=_0x4be0d1['commandName'])return;const _0x52493a=_0x4be0d1['commandParams'][0x0]['language'],_0x16dcbd=_0x2f0b97(_0x4fa5e1['find'](_0x543c2f=>_0x543c2f['language']===_0x52493a)['label'])['toLowerCase']();return _0x4be0d1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x24fe78,'*Set\x20format:*\x20%0',o(_0x24fe78,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x16dcbd+')')}:{'type':'format','content':o(_0x24fe78,'*Remove\x20format:*\x20%0',o(_0x24fe78,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1b39a1){return'codeBlock'==_0x1b39a1['name'];}class z extends _0x3c70aa{['afterInit'](){const _0x55b6c1=this['editor'];if(!_0x55b6c1['plugins']['has']('CommentsEditing'))return;_0x55b6c1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x383691,_0x16e4ad,_0x4fca01){const _0x9f90e6=[];for(const _0x556b67 of _0x16e4ad['getItems']())_0x556b67['hasAttribute'](_0x383691)&&_0x9f90e6['push'](_0x4fca01['createRangeOn'](_0x556b67));return _0x9f90e6;}function Ne(_0x51bbad,_0x66a6b8,{showActiveMarker:_0x3b0ead=!0x0}={}){const _0x232845=_0x51bbad['plugins']['get']('TrackChangesEditing');return(_0x3ba3cf,_0x3d8f11,_0x225595)=>{if(!_0x225595['consumable']['test'](_0x3d8f11['markerRange'],_0x3ba3cf['name']))return;const _0x530fa4=_0x3d8f11['markerRange']['getWalker'](),_0x192e60=_0x3d8f11['markerRange']['start'],_0x3b3934=_0x51bbad['model']['schema'];let _0x3afb6b=null,_0x4a839b=null,_0x4ea640=!0x1,_0x1bf96a=!0x1;for(const _0x3a245e of _0x530fa4){const _0x138bd0=_0x3a245e['item'];_0x4ea640=_0x4ea640||_0x3b3934['isContent'](_0x138bd0);const _0x8854ab=_0x225595['mapper']['toViewElement'](_0x138bd0);if(_0x8854ab&&_0x8854ab['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3a245e['type']&&(_0x3b3934['isBlock'](_0x138bd0)&&!_0x3b3934['isLimit'](_0x138bd0)&&(_0x138bd0['nextSibling']||_0x192e60['isAtEnd']?_0x3afb6b&&_0x3afb6b['parent']==_0x138bd0||(_0x3afb6b=_0x138bd0,_0x5eb6da(_0x3a245e['previousPosition']),_0x1bf96a=!0x0):_0x4a839b=_0x4a839b||_0x3a245e['previousPosition']));}function _0x5eb6da(_0xe7dc80){const {authorId:_0x44a894}=_0x232845['_splitMarkerName'](_0x3d8f11['markerName']),_0x236e64=_0x225595['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x66a6b8,'data-author-id':_0x44a894}),_0xe72774=_0x225595['mapper']['toViewPosition'](_0xe7dc80);_0x3b0ead&&_0x232845['activeMarkers']['includes'](_0x3d8f11['markerName'])&&_0x225595['writer']['addClass']('ck-suggestion-marker--active',_0x236e64),_0x225595['writer']['insert'](_0xe72774,_0x236e64),_0x225595['mapper']['bindElementToMarker'](_0x236e64,_0x3d8f11['markerName']);}_0x4ea640||_0x1bf96a||!_0x4a839b||_0x5eb6da(_0x4a839b);};}class K extends _0x3c70aa{static get['requires'](){return[_0x1f0ed5];}['init'](){const _0xe9b941=this['editor'],_0xf05007=_0xe9b941['plugins']['get']('TrackChangesEditing');_0xf05007['enableCommand']('delete');const _0x1dced9=_0xe9b941['commands']['get']('deleteForward');_0xf05007['enableCommand']('deleteForward',(_0xb84170,_0x23062c={})=>{const _0x27392b=_0xe9b941['model']['createSelection'](_0xe9b941['model']['document']['selection']);_0x27392b['isCollapsed']&&_0xe9b941['model']['modifySelection'](_0x27392b,{'direction':'forward','unit':_0x23062c['unit']});const _0x2642f6=_0x27392b['getFirstRange'](),_0x188241=_0x4fb46f['fromRange'](_0x2642f6);let _0x1fc517;_0xb84170(_0x23062c),_0x1fc517='$graveyard'==_0x188241['root']['rootName']?_0xe9b941['model']['createRange'](_0x2642f6['start']):_0xe9b941['model']['createRange'](_0x188241['start'],_0x188241['end']),_0x188241['detach'](),_0xe9b941['model']['enqueueChange'](_0x1dced9['buffer']['batch'],_0x4d14c2=>{_0x1dced9['buffer']['lock'](),_0x4d14c2['setSelection'](_0x4d14c2['createRange'](_0x1fc517['end'])),_0x1dced9['buffer']['unlock']();});}),_0xe9b941['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0xe9b941,'merge'),{'priority':'high'}),_0xe9b941['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x30bd00,_0x223e90,_0x105287)=>{_0x105287['options']['showSuggestionHighlights']&&Ne(_0xe9b941,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x30bd00,_0x223e90,_0x105287);},{'priority':'high'}),_0xe9b941['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1b2433,_0x17d898,_0x17304c)=>{const _0x4ea00d=_0x17304c['mapper']['markerNameToElements'](_0x17d898['markerName']);if(_0x4ea00d){for(const _0x4902a9 of _0x4ea00d)_0x4902a9['is']('uiElement')&&(_0x17304c['mapper']['unbindElementFromMarkerName'](_0x4902a9,_0x17d898['markerName']),_0x17304c['writer']['remove'](_0x4902a9));}},{'priority':'high'});}}class W extends _0x3c70aa{['afterInit'](){const _0x3a0cc7=this['editor'];if(!_0x3a0cc7['plugins']['has']('ListEditing'))return;const _0x5decee=_0x3a0cc7['locale'],_0x4aff1b=_0x3a0cc7['plugins']['get']('TrackChangesEditing'),_0x5e2b6b=_0x3a0cc7['plugins']['has']('TodoListEditing'),_0x3895a2=!!_0x3a0cc7['config']['get']('list.multiBlock');function _0x151e57(_0x42336f){return{'type':'format','content':''+o(_0x5decee,'*Set\x20format:*\x20%0',_0x42336f)};}function _0x3bec3a(_0x3064c9){return{'type':'format','content':''+o(_0x5decee,'*Remove\x20format:*\x20%0',_0x3064c9)};}_0x4aff1b['enableDefaultAttributesIntegration']('numberedList'),_0x4aff1b['enableDefaultAttributesIntegration']('bulletedList'),_0x4aff1b['enableDefaultAttributesIntegration']('customNumberedList'),_0x4aff1b['enableDefaultAttributesIntegration']('customBulletedList'),_0x4aff1b['enableDefaultAttributesIntegration']('indentList'),_0x4aff1b['enableDefaultAttributesIntegration']('outdentList'),_0x4aff1b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4aff1b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4aff1b['registerBlockAttribute']('listItemId'),_0x4aff1b['registerBlockAttribute']('listType'),_0x4aff1b['registerBlockAttribute']('listIndent'),_0x3895a2&&(_0x4aff1b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4aff1b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5e2b6b&&(_0x4aff1b['enableDefaultAttributesIntegration']('todoList'),_0x4aff1b['enableDefaultAttributesIntegration']('checkTodoList'),_0x4aff1b['registerBlockAttribute']('todoListChecked'),_0x4aff1b['descriptionFactory']['registerDescriptionCallback'](_0x31a5ca=>{const {data:_0x4b0e4e}=_0x31a5ca;if(_0x4b0e4e&&'todoListChecked'==_0x4b0e4e['key'])return{'type':'format','content':_0x4b0e4e['newValue']?o(_0x5decee,'*Check\x20item*'):o(_0x5decee,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x54aba5=>{if(_0x54aba5['batch']['isUndo'])return!0x1;let _0x4a4c83=!0x1;const _0x1f0d06=_0x4aff1b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9c58ee=>'todoListChecked'===_0x4aff1b['_getAttributeKey'](_0x9c58ee));for(const _0x2e9df4 of _0x1f0d06){'todo'!=_0x2e9df4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4aff1b['_findSuggestions'](_0x2e9df4['getFirstRange'](),'attribute')['find'](_0x5991d3=>'listType'===_0x4aff1b['_getAttributeKey'](_0x5991d3['suggestion']))||(_0x54aba5['removeMarker'](_0x2e9df4['getFirstMarker']()),_0x4a4c83=!0x0));}return _0x4a4c83;})),_0x4aff1b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5decee,'FORMAT_INDENT'));const _0x528de4={'type':'format','content':''};_0x4aff1b['descriptionFactory']['registerDescriptionCallback'](_0x397b8c=>{const {data:_0x5ddae6}=_0x397b8c;if(!_0x5ddae6||'listType'!=_0x5ddae6['key'])return;let _0x3366cb=_0x397b8c['head'];for(;_0x3366cb;){if(_0x3366cb['data']&&(('listStyle'==_0x3366cb['data']['key']||'listMarkerStyle'==_0x3366cb['data']['key'])&&(_0x3366cb['data']['newValue']&&'default'!=_0x3366cb['data']['newValue']||'default'!=_0x3366cb['data']['oldValue']&&!_0x5ddae6['newValue'])||!_0x3895a2&&_0x3366cb['data']['key']==m))return _0x528de4;_0x3366cb=_0x3366cb['next'];}if(null==_0x5ddae6['newValue'])switch(_0x5ddae6['oldValue']){case'bulleted':return _0x3bec3a(o(_0x5decee,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3bec3a(o(_0x5decee,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3bec3a(o(_0x5decee,'ELEMENT_TODO_LIST'));}switch(_0x5ddae6['newValue']){case'bulleted':return _0x151e57(o(_0x5decee,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x151e57(o(_0x5decee,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x151e57(o(_0x5decee,'ELEMENT_TODO_LIST'));}}),_0x4aff1b['descriptionFactory']['registerDescriptionCallback'](_0x4dafe4=>{const {data:_0x451cb6}=_0x4dafe4;if(_0x451cb6&&'listIndent'==_0x451cb6['key'])return null==_0x451cb6['newValue']||null==_0x451cb6['oldValue']&&0x0==_0x451cb6['newValue']?_0x528de4:void 0x0;}),_0x4aff1b['descriptionFactory']['registerDescriptionCallback'](_0x5ae368=>{if('attribute'!=_0x5ae368['type'])return;const {data:_0x2fb236}=_0x5ae368;if(!_0x2fb236||'listItemId'!=_0x2fb236['key'])return;const _0x12804f=Te(_0x5ae368);return'newValue'==_0x12804f?{'type':'format','content':o(_0x5decee,'*Merge:*\x20list\x20item')}:'oldValue'==_0x12804f?{'type':'format','content':o(_0x5decee,'*Split:*\x20list\x20item')}:_0x528de4;}),_0x3a0cc7['model']['document']['registerPostFixer'](_0x3c3db4=>this['listItemIdFixer'](_0x3c3db4)),_0x3a0cc7['model']['document']['registerPostFixer'](_0x4f068c=>this['noTrackChangesFixer'](_0x4f068c)),_0x3a0cc7['model']['document']['on']('change:data',(_0x3dbc58,_0x5d252b)=>{if(_0x5d252b['isUndo']||!_0x5d252b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x19b12b){if(_0x19b12b['batch']['isUndo']||!_0x19b12b['batch']['isLocal'])return!0x1;let _0x3207b4=!0x1;const _0x272f53=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x73d4d5=>_0x73d4d5['data']&&'listItemId'==_0x73d4d5['data']['key'])['filter'](_0x39edbc=>_0x39edbc['data']['newValue']&&_0x39edbc['data']['oldValue']);for(const _0x2a76ca of _0x272f53)Te(_0x2a76ca)||(_0x19b12b['removeMarker'](_0x2a76ca['getFirstMarker']()),_0x3207b4=!0x0);return _0x3207b4;}['noTrackChangesFixer'](_0x47ab91){if(_0x47ab91['batch']['isUndo']||!_0x47ab91['batch']['isLocal'])return!0x1;const _0x2d3df8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2d3df8['trackChangesCommand']['value'])return!0x1;let _0x3c910a=!0x1;const _0x30b1f6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x15c6ad=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3ba784=>'attribute'==_0x3ba784['type'])['filter'](_0x134c5b=>_0x30b1f6['includes'](_0x134c5b['attributeKey']));if(0x0==_0x15c6ad['length'])return _0x3c910a;for(const _0x2894e2 of _0x15c6ad){const _0x1bd334=_0x2d3df8['_findSuggestions'](_0x2894e2['range'],'attribute')['filter'](_0x53b994=>!_0x53b994['meta']['isNextTo'])['map'](_0x489006=>_0x489006['suggestion'])['filter'](_0x1c2ecb=>{const _0x4c6334=_0x2d3df8['_getAttributeKey'](_0x1c2ecb);return _0x30b1f6['includes'](_0x4c6334);});if(_0x1bd334['length']){for(const _0x4e86d3 of _0x1bd334)_0x47ab91['removeMarker'](_0x4e86d3['getFirstMarker']());_0x3c910a=!0x0;}}return _0x3c910a;}['assureChains'](){const _0x441b59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29c2cd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x23ce61;const _0x516b4c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5d3bb7=>{if(_0x5d3bb7['data']['oldRange']||!_0x5d3bb7['data']['newRange'])return null;if(!_0x5d3bb7['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x35a889}=_0x441b59['_splitMarkerName'](_0x5d3bb7['name']);if(!_0x441b59['hasSuggestion'](_0x35a889))return null;const _0x1ece02=_0x441b59['getSuggestion'](_0x35a889);return _0x29c2cd['includes'](_0x1ece02['data']['key']);})['map'](_0x39572d=>{const {id:_0x1a7727}=_0x441b59['_splitMarkerName'](_0x39572d['name']),_0x1d3907=_0x441b59['getSuggestion'](_0x1a7727);return _0x23ce61=_0x1d3907['attributes']['groupId'],_0x1d3907['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x516b4c['size'])return;const _0x14c699=_0x441b59['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14671f=>'attribute'==_0x14671f['type']&&_0x14671f['data']&&_0x29c2cd['includes'](_0x14671f['data']['key'])&&_0x14671f['attributes']['groupId']!=_0x23ce61)['map'](_0x184316=>({'listItem':_0x184316['getFirstRange']()['start']['nodeAfter'],'groupId':_0x184316['attributes']['groupId']})),_0x2cf358=new Set();for(const {groupId:_0x2e04d4,listItem:_0x5f21a4}of _0x14c699)_0x516b4c['has'](_0x5f21a4)&&_0x2cf358['add'](_0x2e04d4);for(const _0x304f71 of _0x441b59['getSuggestions']())_0x2cf358['has'](_0x304f71['attributes']['groupId'])&&_0x304f71['setAttribute']('groupId',_0x23ce61);}['_supportLegacySuggestions'](){const _0x37a077=this['editor'],_0x3f0bf0=_0x37a077['locale'],_0x56f1d6=_0x37a077['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x56f1d6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4d62ad,_0x101fc2){const _0x174362=[];for(let _0x201118 of _0x4d62ad)_0x201118['start']['nodeAfter']===_0x201118['end']['parent']&&(_0x201118=_0x37a077['model']['createRange'](_0x37a077['model']['createPositionAt'](_0x201118['start']['nodeAfter'],0x0))),_0x174362['push'](_0x201118);_0x37a077['model']['change'](_0x388c79=>{const _0x200819=_0x37a077['model']['document']['selection'],_0x5593db=Array['from'](_0x200819['getRanges']())['map'](_0x14386b=>_0x4fb46f['fromRange'](_0x14386b));_0x388c79['setSelection'](_0x174362),_0x37a077['commands']['get'](_0x101fc2['commandName'])['refresh'](),_0x101fc2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x37a077['execute'](_0x101fc2['commandName'],..._0x101fc2['commandParams']),_0x388c79['setSelection'](_0x5593db);for(const _0x393705 of _0x5593db)_0x393705['detach']();});}),_0x56f1d6['descriptionFactory']['registerElementLabel'](function(_0x21241f){const _0x3cfafd=!_0x37a077['model']['schema']['isObject'](_0x21241f),_0x13eee6=_0x21241f['previousSibling'],_0x41f8ec=_0x21241f['nextSibling'],_0x1bb3b4=_0x21241f['getAttribute']('listItemId'),_0x2fcdd9=!_0x13eee6||_0x13eee6['getAttribute']('listItemId')!==_0x1bb3b4,_0x35d54b=!_0x41f8ec||_0x41f8ec['getAttribute']('listItemId')!==_0x1bb3b4;return _0x3cfafd&&Boolean(_0x1bb3b4)&&_0x2fcdd9&&_0x35d54b;},_0x23d4ab=>o(_0x3f0bf0,'ELEMENT_LIST_ITEM',_0x23d4ab));}['_registerLegacyDescription'](){const _0x51f061=this['editor'],_0x4a98e2=_0x51f061['locale'];function _0x330149(_0x1c9e86){const _0x3274cc=_0x51f061['commands']['get']('bulletedList')['value'],_0x559d1d=_0x51f061['commands']['get']('numberedList')['value'];return'numberedList'===_0x1c9e86?_0x3274cc:_0x559d1d;}_0x51f061['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4d1963){if('formatBlock'!=_0x4d1963['type'])return;const {data:_0x1e1b7e}=_0x4d1963;if(!_0x1e1b7e)return;let _0x4667fb,_0x21e83c,_0xc403fb,_0x13953b;switch(_0x1e1b7e['commandName']){case'bulletedList':_0xc403fb=_0x1e1b7e['commandParams'][0x0]['forceValue'],_0x13953b=_0x330149(_0x1e1b7e['commandName']),_0x4667fb=_0xc403fb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x13953b&&_0x51f061['config']['get']('list.multiBlock')||(_0x4667fb='*Change\x20to:*\x20%0'),_0x21e83c={'type':'format','content':o(_0x4a98e2,_0x4667fb,o(_0x4a98e2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xc403fb=_0x1e1b7e['commandParams'][0x0]['forceValue'],_0x13953b=_0x330149(_0x1e1b7e['commandName']),_0x4667fb=_0xc403fb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x13953b&&_0x51f061['config']['get']('list.multiBlock')||(_0x4667fb='*Change\x20to:*\x20%0'),_0x21e83c={'type':'format','content':o(_0x4a98e2,_0x4667fb,o(_0x4a98e2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4667fb='*Indent:*\x20%0',_0x21e83c={'type':'format','content':o(_0x4a98e2,_0x4667fb,o(_0x4a98e2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4667fb=function(_0x1e8ec6){const _0x11e8a7=_0x1e8ec6['getFirstRange']();let _0x407957=_0x11e8a7['start']['nodeAfter'];for(;_0x407957&&_0x11e8a7['containsItem'](_0x407957);){if(_0x407957['getAttribute']('listIndent')>0x0)return!0x1;_0x407957=_0x407957['nextSibling'];}return!0x0;}(_0x4d1963)?o(_0x4a98e2,'*Format:*\x20remove\x20from\x20%0',o(_0x4a98e2,function(_0x1836d8){return'ELEMENT_'+_0x1836d8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4d1963))):o(_0x4a98e2,'*Outdent:*\x20%0',o(_0x4a98e2,'ELEMENT_LIST_ITEM')),_0x21e83c={'type':'format','content':_0x4667fb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1e1b7e['multipleBlocks']&&(_0x4667fb='*Merge:*\x20%0',_0x21e83c={'type':'deletion','content':o(_0x4a98e2,_0x4667fb,o(_0x4a98e2,'ELEMENT_LIST_ITEM'))});}return _0x21e83c;});}}function Te(_0x5e0a63){let _0x2823ac=_0x5e0a63['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2823ac;){const _0x483193=_0x2823ac['getAttribute']('listItemId');if(!_0x483193)return!0x1;if(_0x483193==_0x5e0a63['data']['newValue'])return'newValue';if(_0x483193==_0x5e0a63['data']['oldValue'])return'oldValue';_0x2823ac=_0x2823ac['previousSibling'];}return!0x1;}class ye extends _0x3c70aa{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x249199=this['editor']['config']['get']('list.properties'),_0xc6988f=this['editor']['plugins']['get']('TrackChangesEditing');_0x249199['styles']&&(_0xc6988f['enableDefaultAttributesIntegration']('listStyle'),_0xc6988f['registerBlockAttribute']('listStyle')),_0x249199['reversed']&&(_0xc6988f['enableDefaultAttributesIntegration']('listReversed'),_0xc6988f['registerBlockAttribute']('listReversed')),_0x249199['startIndex']&&(_0xc6988f['enableDefaultAttributesIntegration']('listStart'),_0xc6988f['registerBlockAttribute']('listStart'));const _0x3ac9d8={'type':'format','content':''};_0xc6988f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x29b88c=this['editor']['locale'];_0xc6988f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x29b88c,'FORMAT_LIST_REVERSED')),_0xc6988f['descriptionFactory']['registerDescriptionCallback'](_0x214e33=>{const {data:_0x1aec18}=_0x214e33;if(_0x1aec18&&'listReversed'==_0x1aec18['key'])return null==_0x1aec18['newValue']||0x0==_0x1aec18['newValue']&&null==_0x1aec18['oldValue']?_0x3ac9d8:void 0x0;}),_0xc6988f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x29b88c,'FORMAT_LIST_START')),_0xc6988f['descriptionFactory']['registerDescriptionCallback'](_0x369a62=>{const {data:_0x5d6d90}=_0x369a62;if(_0x5d6d90&&'listStart'==_0x5d6d90['key'])return null==_0x5d6d90['newValue']||0x1==_0x5d6d90['newValue']&&null==_0x5d6d90['oldValue']?_0x3ac9d8:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1daa21=>{if(_0x1daa21['batch']['isUndo'])return!0x1;let _0x56e1ed=!0x1;const _0x1ea193=_0xc6988f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x258225=>{const _0x380d55=_0xc6988f['_getAttributeKey'](_0x258225);return'listStart'==_0x380d55||'listReversed'==_0x380d55;});for(const _0xe3c253 of _0x1ea193){const _0x225f1e=_0xe3c253['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x225f1e||'customNumbered'==_0x225f1e)continue;_0xc6988f['_findSuggestions'](_0xe3c253['getFirstRange'](),'attribute')['find'](_0x1221cd=>'listType'==_0xc6988f['_getAttributeKey'](_0x1221cd['suggestion']))||(_0x1daa21['removeMarker'](_0xe3c253['getFirstMarker']()),_0x56e1ed=!0x0);}return _0x56e1ed;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1c81ba){const _0x2fc56d=this['editor']['locale'],{data:_0xd0cb7d}=_0x1c81ba,_0x473f8b={'type':'format','content':''};if(!_0xd0cb7d||'listStyle'!=_0xd0cb7d['key'])return;if(!_0xd0cb7d['oldValue'])return'default'==_0xd0cb7d['newValue']?_0x473f8b:{'type':'format','content':''+o(_0x2fc56d,'*Set\x20format:*\x20%0',o(_0x2fc56d,this['_getTranslationKeyForListStyle'](_0xd0cb7d['newValue'])))};if(!_0xd0cb7d['newValue']){if('default'==_0xd0cb7d['oldValue'])return _0x473f8b;let _0x2f59d6=_0x1c81ba['head'];for(;_0x2f59d6;){if(_0x2f59d6['data']&&'listType'==_0x2f59d6['data']['key']&&_0x2f59d6['data']['newValue'])return _0x473f8b;_0x2f59d6=_0x2f59d6['next'];}return{'type':'format','content':''+o(_0x2fc56d,'*Remove\x20format:*\x20%0',o(_0x2fc56d,this['_getTranslationKeyForListStyle'](_0xd0cb7d['oldValue'])))};}if('default'!=_0xd0cb7d['newValue'])return{'type':'format','content':''+o(_0x2fc56d,'*Set\x20format:*\x20%0',o(_0x2fc56d,this['_getTranslationKeyForListStyle'](_0xd0cb7d['newValue'])))};let _0x4cb0ce=_0x1c81ba['head'];for(;_0x4cb0ce;){if(_0x4cb0ce['data']&&'listType'==_0x4cb0ce['data']['key']&&_0x4cb0ce['data']['newValue']&&_0x4cb0ce['data']['oldValue'])return _0x473f8b;_0x4cb0ce=_0x4cb0ce['next'];}return{'type':'format','content':o(_0x2fc56d,'*Set\x20format:*\x20%0',o(_0x2fc56d,'ELEMENT_'+_0x1c81ba['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x307e80=this['editor'],_0x5400d1=_0x307e80['locale'];_0x307e80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ea13a=>{if('formatBlock'!=_0x5ea13a['type'])return;const {data:_0x1efaf7}=_0x5ea13a;if(!_0x1efaf7)return;let _0x238cb2,_0x5c2d7e;switch(_0x1efaf7['commandName']){case'listStyle':_0x238cb2='*Change\x20to:*\x20%0',_0x5c2d7e={'type':'format','content':o(_0x5400d1,_0x238cb2,o(_0x5400d1,this['_getTranslationKeyForListStyle'](_0x1efaf7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x238cb2=_0x1efaf7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5c2d7e={'type':'format','content':o(_0x5400d1,_0x238cb2)};break;case'listStart':_0x238cb2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5c2d7e={'type':'format','content':o(_0x5400d1,_0x238cb2,_0x1efaf7['commandParams'][0x0]['startIndex'])};}return _0x5c2d7e;});}['_getTranslationKeyForListStyle'](_0x34eb78){return'ELEMENT_'+function(_0x1a95e1){if(Se['includes'](_0x1a95e1))return'bulleted';if(_e['includes'](_0x1a95e1))return'numbered';return null;}(_0x34eb78)['toUpperCase']()+'_LIST_'+_0x34eb78['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3c70aa{static get['requires'](){return[_0x491ab7];}['init'](){const _0x53c48c=this['editor'],_0x43d78c=_0x53c48c['plugins']['get']('TrackChangesEditing'),_0x586369=_0x53c48c['commands']['get']('enter');_0x43d78c['enableCommand']('enter',()=>{_0x53c48c['model']['change'](_0x543d0b=>{const _0x154f24=_0x53c48c['model']['document']['selection'],_0x3a3a8e=_0x154f24['getFirstPosition'](),_0x2369c8=_0x4fb46f['fromRange'](_0x154f24['getFirstRange']());if(_0x586369['enterBlock'](_0x543d0b)){const _0xa60dec=_0x53c48c['model']['createPositionAt'](_0x3a3a8e['parent']['nextSibling'],0x0),_0x34b539=_0x543d0b['createRange'](_0x3a3a8e,_0xa60dec);_0x43d78c['markInsertion'](_0x34b539);}else _0x543d0b['setSelection'](_0x543d0b['createRange'](_0x2369c8['end']));_0x2369c8['detach'](),_0x586369['fire']('afterExecute',{'writer':_0x543d0b});});}),_0x53c48c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x53c48c,'split'),{'priority':'high'}),_0x53c48c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xbb108b,_0x3e4911,_0x361f16)=>{const _0xa128a5=_0x361f16['mapper']['markerNameToElements'](_0x3e4911['markerName']);if(_0xa128a5){for(const _0x5b771c of _0xa128a5)_0x5b771c['hasClass']('ck-suggestion-marker-split')&&(_0x361f16['mapper']['unbindElementFromMarkerName'](_0x5b771c,_0x3e4911['markerName']),_0x361f16['writer']['remove'](_0x5b771c));}},{'priority':'high'}),_0x53c48c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x54300d,_0x1ddf0e,_0x4093ea)=>{_0x4093ea['options']['showSuggestionHighlights']&&Ne(_0x53c48c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x54300d,_0x1ddf0e,_0x4093ea);},{'priority':'high'});}}class Y extends _0x3c70aa{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1faeea=this['editor']['plugins']['get']('TrackChangesEditing');_0x1faeea['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1faeea['enableCommand']('findNext'),_0x1faeea['enableCommand']('findPrevious'),_0x1faeea['enableCommand']('replace'),_0x1faeea['enableCommand']('replaceAll');}['handleFindCommand'](_0x389923,_0x46cadb,_0x3e734e={}){const _0x5928f2=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x389923(_0xc04054=>{let _0x3cac76=('string'==typeof _0x46cadb?_0x5928f2['findByTextCallback'](_0x46cadb,_0x3e734e):_0x46cadb)(_0xc04054);Array['isArray'](_0x3cac76)&&(_0x3cac76={'results':_0x3cac76,'searchText':'string'==typeof _0x46cadb?_0x46cadb:''});const _0x5ead84=_0x3cac76['results']['filter'](_0x1a6ca9=>!0x1===this['_isInDeletionRange'](_0x1a6ca9,_0xc04054['item']));return{..._0x3cac76,'results':_0x5ead84};},_0x3e734e);}['_isInDeletionRange'](_0x7c0edf,_0x94dc56){const _0x1e62a1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x94dc56,_0x7c0edf['start']),this['editor']['model']['createPositionAt'](_0x94dc56,_0x7c0edf['end']));for(const _0x150c52 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1e62a1['getIntersection'](_0x150c52['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x3c70aa{['afterInit'](){const _0xffa734=this['editor']['locale'],_0x73ad3d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x21b96a,commandName:_0x28158b}of ro)this['editor']['plugins']['has'](_0x21b96a)&&(_0x73ad3d['enableDefaultAttributesIntegration'](_0x28158b),_0x73ad3d['registerInlineAttribute'](_0x28158b));_0x73ad3d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xffa734,'FORMAT_FONT_SIZE')),_0x73ad3d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xffa734,'FORMAT_FONT_FAMILY')),_0x73ad3d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xffa734,'FORMAT_FONT_COLOR')),_0x73ad3d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xffa734,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7edb9f=this['editor'],_0x318a6c=_0x7edb9f['locale'];_0x7edb9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x432db7=>{const _0x3c49c4=_0x318a6c['t'];if('formatInline'!=_0x432db7['type'])return;const {data:_0x5bc5d1}=_0x432db7;if(null!=_0x5bc5d1){if('fontSize'==_0x5bc5d1['commandName']){const _0x1d7a2c=_0x5bc5d1['commandParams'][0x0]['value'];if(_0x1d7a2c){const _0x22cd36=_0x3c49c4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xde177c=>_0xde177c['model']==_0x1d7a2c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x318a6c,'*Set\x20font\x20size:*\x20%0',_0x22cd36)};}return{'type':'format','content':o(_0x318a6c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5bc5d1['commandName']){const _0x1b06c2=_0x5bc5d1['commandParams'][0x0]['value'];return _0x1b06c2?{'type':'format','content':o(_0x318a6c,'*Set\x20font\x20family:*\x20%0',_0x1b06c2)}:{'type':'format','content':o(_0x318a6c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5bc5d1['commandName']){const _0x2ad3a3=_0x5bc5d1['commandParams'][0x0]['value'];if(_0x2ad3a3){const _0x1c181f=_0x17ec29(this['editor']['config']['get']('fontColor.colors'))['find'](_0x516ba8=>_0x516ba8['model']==_0x2ad3a3);let _0x53e116=_0x2ad3a3,_0x5c5f8e='';return _0x1c181f&&(_0x53e116=_0x1c181f['label'],_0x5c5f8e=_0x3c49c4(_0x53e116)['toLowerCase']()),{'type':'format','content':o(_0x318a6c,'*Set\x20font\x20color:*\x20%0',_0x5c5f8e)['trim'](),'color':{'value':_0x2ad3a3,'title':_0x5c5f8e||_0x53e116}};}return{'type':'format','content':o(_0x318a6c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5bc5d1['commandName']){const _0xdcceb1=_0x5bc5d1['commandParams'][0x0]['value'];if(_0xdcceb1){const _0x3cda2a=_0x17ec29(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5b5029=>_0x5b5029['model']==_0xdcceb1);let _0x3dd2e6=_0xdcceb1,_0x4eb809='';return _0x3cda2a&&(_0x3dd2e6=_0x3cda2a['label'],_0x4eb809=_0x3c49c4(_0x3dd2e6)['toLowerCase']()),{'type':'format','content':o(_0x318a6c,'*Set\x20font\x20background\x20color:*\x20%0',_0x4eb809)['trim'](),'color':{'value':_0xdcceb1,'title':_0x4eb809||_0x3dd2e6}};}return{'type':'format','content':o(_0x318a6c,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x3c70aa{['afterInit'](){const _0x4f43fd=this['editor'],_0x2acf33=_0x4f43fd['plugins']['get']('TrackChangesEditing'),_0x5b6033=_0x4f43fd['commands']['get']('copyFormat'),_0x111d36=_0x4f43fd['commands']['get']('pasteFormat');_0x5b6033&&_0x111d36&&(_0x2acf33['enableDefaultAttributesIntegration']('pasteFormat'),_0x2acf33['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x51979a=this['editor'],_0x89168e=_0x51979a['locale'];_0x51979a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x597acb=>{if('formatBlock'!=_0x597acb['type']&&'formatInline'!=_0x597acb['type'])return;const {data:_0x3c4f8b}=_0x597acb;if(_0x3c4f8b&&'pasteFormat'===_0x3c4f8b['commandName']){const _0x4b7000=[],_0x2c8198=_0x3c4f8b['commandParams'][0x0];for(const [_0xfe22aa,_0x32a4c5]of Object['entries'](_0x2c8198))_0x4b7000['push'](so(_0x51979a,_0xfe22aa,_0x32a4c5));return _0x4b7000['length']?{'type':'format','content':o(_0x89168e,'*Set\x20format\x20to:*\x20%0',_0x4b7000['join'](',\x20'))}:{'type':'format','content':o(_0x89168e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x36642e,_0x4473f2,_0xa6a28){const _0x16651f=_0x36642e['locale']['t'],_0x5913d8=_0x4473f2['split'](/(?=[A-Z])/)['join']('\x20'),_0x5041b4=_0x16651f(_0x5913d8['charAt'](0x0)['toUpperCase']()+_0x5913d8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xa6a28)return _0x5041b4;if('fontColor'===_0x4473f2||'fontBackgroundColor'===_0x4473f2){const _0x449641=_0x17ec29(_0x36642e['config']['get']('fontColor.colors'))['find'](_0x219967=>_0x219967['model']==_0xa6a28);return _0x5041b4+'\x20('+(_0x449641?_0x16651f(_0x449641['label'])['toLowerCase']():_0xa6a28)+')';}if('fontSize'===_0x4473f2&&isNaN(parseFloat(_0xa6a28))){const _0x4f6119=_0x36642e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x36642e['config']['get']('fontSize.options'))['find'](_0x7a870=>_0x7a870['model']==_0xa6a28);return _0x5041b4+'\x20('+(_0x4f6119?_0x16651f(_0x4f6119['title'])['toLowerCase']():_0xa6a28)+')';}return _0x5041b4+'\x20('+_0xa6a28+')';}class nt extends _0x3c70aa{['_headingOptions'];['afterInit'](){const _0xd0f93a=this['editor'];if(!_0xd0f93a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xd0f93a['config']['get']('heading.options');const _0x1413a9=_0xd0f93a['locale'],_0x906c13=_0xd0f93a['plugins']['get']('TrackChangesEditing');_0x906c13['enableDefaultAttributesIntegration']('heading');for(const _0x52e5af of this['_headingOptions'])'paragraph'!=_0x52e5af['model']&&_0x906c13['descriptionFactory']['registerElementLabel'](_0x52e5af['model'],_0x10d64c=>{const _0x1032c8=this['_getHeadingLevel'](_0x52e5af['model']);return null!==_0x1032c8?_0x225c00(_0x10d64c,_0x1032c8):_0x3e5c4b(_0x10d64c,_0x52e5af['title']);});function _0x225c00(_0x30ef52,_0x469048){return o(_0x1413a9,'ELEMENT_HEADING',[_0x30ef52,_0x469048]);}function _0x3e5c4b(_0x56c60f,_0x1a0232){return o(_0x1413a9,'ELEMENT_HEADING_CUSTOM',[_0x56c60f,_0x1a0232]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b21e2=this['editor'],_0x5608ee=_0x1b21e2['locale'];function _0x1f7272(_0x5ac7a0,_0x3e7ea2){return o(_0x5608ee,'ELEMENT_HEADING_CUSTOM',[_0x5ac7a0,_0x3e7ea2]);}_0x1b21e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e8aaa=>{if('formatBlock'!=_0x1e8aaa['type'])return;const {data:_0x35ab6c}=_0x1e8aaa;if(_0x35ab6c&&'heading'==_0x35ab6c['commandName']){const _0x5e04e0=_0x35ab6c['commandParams'][0x0]['value'],_0x3f8e05=this['_getHeadingLevel'](_0x5e04e0);if(null!==_0x3f8e05)return{'type':'format','content':o(_0x5608ee,'*Change\x20to:*\x20%0',(_0x14196c=0x1,_0x2e37ae=_0x3f8e05,o(_0x5608ee,'ELEMENT_HEADING',[_0x14196c,_0x2e37ae])))};const _0x87e171=this['_headingOptions']['find'](_0x300f7a=>_0x300f7a['model']===_0x5e04e0)['title'];return{'type':'format','content':o(_0x5608ee,'*Change\x20to:*\x20%0',_0x1f7272(0x1,_0x87e171))};}var _0x14196c,_0x2e37ae;});}['_getHeadingLevel'](_0x19783f){const _0x22c2a9=_0x19783f['match'](/^heading(\d+)/);if(_0x22c2a9)return _0x22c2a9[0x1];const _0x56d279=this['_headingOptions']?.['find'](_0x11a471=>_0x11a471['model']==_0x19783f);if(_0x56d279&&_0x56d279['view']){const _0x64e665=_0x56d279['view'],_0x4199c7=(_0x64e665['name']??_0x64e665)['match'](/^h(\d+)/);if(_0x4199c7)return _0x4199c7[0x1];}return null;}}class it extends _0x3c70aa{['afterInit'](){const _0x4fed66=this['editor'];if(!_0x4fed66['plugins']['has']('HighlightEditing'))return;const _0xe5539=_0x4fed66['plugins']['get']('TrackChangesEditing'),_0x480dd9=_0x4fed66['locale'];_0xe5539['enableDefaultAttributesIntegration']('highlight'),_0xe5539['registerInlineAttribute']('highlight'),_0xe5539['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x480dd9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16968c=this['editor'],_0x1cff72=_0x16968c['locale'];_0x16968c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4782f9=>{if('formatInline'!=_0x4782f9['type'])return;const {data:_0x5a8822}=_0x4782f9;if(_0x5a8822&&'highlight'==_0x5a8822['commandName']){const _0x1a35c1=_0x1cff72['t'],_0x4a8e3e=_0x5a8822['commandParams'][0x0]['value'];if(_0x4a8e3e){const _0x2caa33=_0x16968c['config']['get']('highlight.options')['find'](_0x294154=>_0x294154['model']==_0x4a8e3e),_0x22b8f8=_0x1a35c1(_0x2caa33['title'])['toLowerCase']();return{'type':'format','content':o(_0x1cff72,'*Set\x20highlight:*\x20%0',_0x22b8f8),'color':{'value':_0x2caa33['color'],'title':_0x2caa33['title']}};}return{'type':'format','content':o(_0x1cff72,'*Remove\x20highlight*',o(_0x1cff72,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x3c70aa{['afterInit'](){const _0x3fd665=this['editor'];if(!_0x3fd665['plugins']['has']('HorizontalLineEditing'))return;_0x3fd665['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x203fe6=_0x3fd665['plugins']['get']('TrackChangesEditing'),_0x4228b6=_0x3fd665['locale'];_0x203fe6['descriptionFactory']['registerElementLabel']('horizontalLine',_0x101c15=>o(_0x4228b6,'ELEMENT_HORIZONTAL_LINE',_0x101c15)),_0x3fd665['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4e51c8,{writer:_0x5a74b2,options:_0x4294e4})=>{if(!_0x4294e4['showSuggestionHighlights'])return null;const _0x456b9b=_0x5a74b2['createContainerElement']('div'),_0x436326=_0x5a74b2['createEmptyElement']('hr');return _0x5a74b2['addClass']('ck-horizontal-line',_0x456b9b),_0x5a74b2['insert'](_0x5a74b2['createPositionAt'](_0x456b9b,0x0),_0x436326),_0x456b9b;},'converterPriority':'high'});}}class st extends _0x3c70aa{['afterInit'](){const _0x36b932=this['editor'];if(!_0x36b932['plugins']['has']('HtmlEmbed'))return;const _0x2161a9=_0x36b932['plugins']['get']('TrackChangesEditing'),_0x521bea=_0x36b932['locale'];_0x2161a9['descriptionFactory']['registerElementLabel']('rawHtml',_0x50d5f3=>o(_0x521bea,'ELEMENT_HTML_EMBED',_0x50d5f3)),_0x2161a9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2161a9['registerBlockAttribute']('value'),_0x2161a9['descriptionFactory']['registerDescriptionCallback'](_0x5a2629=>{if('attribute'!=_0x5a2629['type'])return;const {data:_0x4dc3d0}=_0x5a2629;if(_0x4dc3d0&&'value'==_0x4dc3d0['key']&&_0x5a2629['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3cb65b=o(_0x521bea,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x521bea,'*Change\x20%0\x20content*',_0x3cb65b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41e433=this['editor'],_0x4b6a0c=_0x41e433['locale'];_0x41e433['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26b658=>{if('formatBlock'!=_0x26b658['type'])return;const {data:_0x2164f0}=_0x26b658;if(_0x2164f0&&'htmlEmbed'==_0x2164f0['commandName']){const _0x2bd1fd=o(_0x4b6a0c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4b6a0c,'*Change\x20%0\x20content*',_0x2bd1fd)};}});}}class ot extends _0x3c70aa{['afterInit'](){const _0x553302=this['editor'];if(!_0x553302['plugins']['has']('ImageEditing'))return;const _0x133c8b=_0x553302['plugins']['get']('TrackChangesEditing'),_0x583b73=_0x553302['plugins']['get']('ImageUtils'),_0x532004=_0x553302['locale'];_0x133c8b['enableCommand']('insertImage'),_0x133c8b['descriptionFactory']['registerElementLabel']('imageBlock',_0x3500bd=>o(_0x532004,'ELEMENT_IMAGE',_0x3500bd)),_0x133c8b['descriptionFactory']['registerElementLabel']('imageInline',_0x9e456e=>o(_0x532004,'ELEMENT_INLINE_IMAGE',_0x9e456e)),_0x133c8b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x532004,'ELEMENT_CAPTION')),_0x553302['plugins']['has']('ImageUploadEditing')&&_0x133c8b['enableCommand']('uploadImage'),_0x553302['plugins']['has']('ImageBlockEditing')&&_0x553302['plugins']['has']('ImageInlineEditing')&&(_0x133c8b['enableCommand']('imageTypeInline',(_0x5ec528,_0x19c635)=>{const _0x27a91a=_0x583b73['getClosestSelectedImageElement'](_0x553302['model']['document']['selection']);_0x553302['model']['change'](()=>{_0x133c8b['markBlockFormat'](_0x27a91a,{'commandName':'imageTypeInline','commandParams':[_0x19c635]},[],'convertBlockImageToInline');});}),_0x133c8b['enableCommand']('imageTypeBlock',(_0x32ea31,_0x50bb79)=>{_0x553302['model']['change'](_0x22b4b7=>{let _0x39b7c1=_0x583b73['getClosestSelectedImageElement'](_0x553302['model']['document']['selection']),_0xf1b3a0=_0x22b4b7['createRangeOn'](_0x39b7c1);const _0x2f9c76=_0x4537ad['fromPosition'](_0xf1b3a0['start'],'toPrevious'),_0x5114dc=_0x4537ad['fromPosition'](_0xf1b3a0['end'],'toNext');_0x133c8b['forceDefaultExecution'](()=>_0x32ea31(_0x50bb79)),_0x39b7c1=_0x583b73['getClosestSelectedImageElement'](_0x553302['model']['document']['selection']),_0xf1b3a0=_0x22b4b7['createRangeOn'](_0x39b7c1);const _0x244613=_0x22b4b7['createRange'](_0x2f9c76,_0x5114dc);_0x2f9c76['detach'](),_0x5114dc['detach'](),_0x133c8b['markBlockFormat'](_0x39b7c1,{'commandName':'imageTypeInline','commandParams':[_0x50bb79]},[],'convertInlineImageToBlock'),_0x244613['start']['isBefore'](_0xf1b3a0['start'])&&_0x133c8b['markInsertion'](_0x22b4b7['createRange'](_0x244613['start'],_0xf1b3a0['start']),'convertInlineImageToBlock'),_0xf1b3a0['end']['isBefore'](_0x244613['end'])&&_0x133c8b['markInsertion'](_0x22b4b7['createRange'](_0xf1b3a0['end'],_0x244613['end']),'convertInlineImageToBlock');});}),_0x133c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x133c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x133c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x133c8b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x133c8b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x133c8b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x176699])=>{const _0x1507ea=_0x133c8b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3ff8d3=_0x176699['start'],_0x54fb5e=_0x176699['end'];const _0x96306=_0x553302['model']['schema']['getNearestSelectionRange'](_0x3ff8d3,'backward'),_0x11d177=_0x553302['model']['schema']['getNearestSelectionRange'](_0x54fb5e,'forward');_0x96306['isCollapsed']&&(_0x3ff8d3=_0x96306['start']),_0x11d177['isCollapsed']&&(_0x54fb5e=_0x11d177['end']),_0x1507ea([_0x553302['model']['createRange'](_0x3ff8d3,_0x54fb5e)]);}),_0x133c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xd4818),_0x133c8b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xd4818)),_0x553302['plugins']['has']('ImageCaptionEditing')&&(_0x133c8b['enableCommand']('toggleImageCaption',(_0x207e16,_0x3a1c8d)=>{const _0x1713d=_0x553302['plugins']['get']('ImageCaptionUtils');let _0x4e99ba=_0x583b73['getClosestSelectedImageElement'](_0x553302['model']['document']['selection']),_0x149626=_0x1713d['getCaptionFromImageModelElement'](_0x4e99ba);_0x553302['model']['change'](()=>{if(_0x149626)return void _0x133c8b['markDeletion'](_0x553302['model']['createRangeOn'](_0x149626));const _0x41c11=_0x583b73['isBlockImage'](_0x4e99ba);_0x207e16(_0x3a1c8d),_0x4e99ba=_0x583b73['getClosestSelectedImageElement'](_0x553302['model']['document']['selection']),_0x149626=_0x1713d['getCaptionFromImageModelElement'](_0x4e99ba),_0x133c8b['markInsertion'](_0x553302['model']['createRangeOn'](_0x149626),_0x41c11?null:'imageCaption');});}),_0x133c8b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xd4818));const _0x4e0374=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x967dcd(_0x3c3fad,_0x1a52c6){const _0x2f122d=_0x4e0374['findIndex'](({type:_0x10f3dd,subType:_0x366097})=>_0x3c3fad['type']==_0x10f3dd&&_0x3c3fad['subType']==_0x366097),_0xf33376=_0x4e0374['findIndex'](({type:_0x16956e,subType:_0x51105f})=>_0x1a52c6['type']==_0x16956e&&_0x1a52c6['subType']==_0x51105f);if(_0x2f122d<0x0||_0xf33376<0x0)return!0x1;const _0x23d9e8=_0x3c3fad['getFirstRange'](),_0x26ad35=_0x1a52c6['getFirstRange']();if((0x0==_0x2f122d||0x1==_0x2f122d)&&0x2==_0xf33376&&_0x23d9e8['isIntersecting'](_0x26ad35))return!0x0;if(0x2==_0x2f122d&&0x3==_0xf33376){const _0x516d9b=_0x133c8b['_findSuggestions'](_0x23d9e8,'insertion')['filter'](({suggestion:_0x569ceb,meta:_0x24d317})=>_0x24d317['isOwn']&&'convertInlineImageToBlock'==_0x569ceb['subType']);if(_0x516d9b['length']>0x1&&_0x26ad35['end']['isEqual'](_0x23d9e8['start']))return!0x0;if(0x1==_0x516d9b['length']&&(_0x23d9e8['start']['isEqual'](_0x26ad35['end'])||_0x23d9e8['end']['isEqual'](_0x26ad35['start'])))return!0x0;}if(0x3==_0x2f122d&&0x3==_0xf33376&&_0x23d9e8['start']['isBefore'](_0x26ad35['start'])){const _0x46908e=_0x23d9e8['end']['nodeAfter'],_0x1d8fc8=_0x26ad35['start']['nodeBefore'];return _0x583b73['isBlockImage'](_0x46908e)&&_0x46908e===_0x1d8fc8;}return!0x1;}function _0xd4818(_0x14abc0,_0x559112){return _0x967dcd(_0x14abc0,_0x559112)?[_0x14abc0,_0x559112]:_0x967dcd(_0x559112,_0x14abc0)?[_0x559112,_0x14abc0]:null;}_0x553302['plugins']['has']('ImageResize')&&(_0x133c8b['enableDefaultAttributesIntegration']('resizeImage'),_0x133c8b['registerBlockAttribute']('resizedWidth'),_0x133c8b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x532004,'FORMAT_IMAGE_SIZE'))),_0x553302['plugins']['has']('ImageTextAlternativeEditing')&&(_0x133c8b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x133c8b['registerBlockAttribute']('alt')),_0x133c8b['descriptionFactory']['registerDescriptionCallback'](_0x5422bf=>{if(!!_0x4e0374['find'](({type:_0x41a541,subType:_0x4f40f3})=>_0x5422bf['type']==_0x41a541&&_0x5422bf['subType']==_0x4f40f3))return _0x5422bf['previous']?{}:void 0x0;}),_0x133c8b['descriptionFactory']['registerDescriptionCallback'](_0x50fbe4=>{if('insertion'==_0x50fbe4['type']||'deletion'==_0x50fbe4['type']){const _0x1a8722=_0x50fbe4['getContainedElement']();if(_0x1a8722&&_0x1a8722['is']('element','caption'))return{'type':'insertion'==_0x50fbe4['type']?'addObject':'removeObject','element':_0x1a8722,'quantity':0x1};}}),_0x133c8b['descriptionFactory']['registerDescriptionCallback'](_0x3fe781=>'formatBlock'==_0x3fe781['type']&&'convertInlineImageToBlock'==_0x3fe781['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3fe781['type']&&'convertBlockImageToInline'==_0x3fe781['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x133c8b['descriptionFactory']['registerDescriptionCallback'](_0x3572ee=>{if('attribute'!=_0x3572ee['type'])return;const {data:_0x3905fb}=_0x3572ee;if(!_0x3905fb||'alt'!=_0x3905fb['key'])return;const _0x23848f=_0x3905fb['newValue'];return _0x23848f?{'type':'format','content':o(_0x532004,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x23848f+'\x22')}:{'type':'format','content':o(_0x532004,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe880ef=this['editor'],_0x50b679=_0xe880ef['locale'];_0xe880ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb952f4=>{if('formatBlock'!=_0xb952f4['type']&&'formatInline'!=_0xb952f4['type'])return;const {data:_0x1dac57}=_0xb952f4;if(_0x1dac57){if('imageTextAlternative'==_0x1dac57['commandName']){const _0x7227de=_0x1dac57['commandParams'][0x0]['newValue'];return _0x7227de?{'type':'format','content':o(_0x50b679,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x7227de+'\x22')}:{'type':'format','content':o(_0x50b679,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1dac57['commandName']){const _0xe59186=_0x1dac57['commandParams'][0x0]['width'];return _0xe59186?{'type':'format','content':o(_0x50b679,'*Set\x20image\x20width:*\x20%0',_0xe59186)}:{'type':'format','content':o(_0x50b679,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x3c70aa{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4d83e2=this['editor']['locale'],_0x32caf8=this['editor']['plugins']['get']('TrackChangesEditing');_0x32caf8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x32caf8['registerBlockAttribute']('src'),_0x32caf8['descriptionFactory']['registerDescriptionCallback'](_0x183b3f=>{if('attribute'!=_0x183b3f['type'])return;const {data:_0x140a6}=_0x183b3f;return _0x140a6&&'src'==_0x140a6['key']?_0x140a6['newValue']&&_0x140a6['oldValue']?{'type':'format','content':o(_0x4d83e2,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x593ab8=this['editor']['plugins']['get']('TrackChangesEditing');_0x593ab8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x593ab8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x593ab8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x593ab8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x234865=this['editor'],_0x2ef543=_0x234865['locale'];_0x234865['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5058cd=>{if('formatBlock'!=_0x5058cd['type']&&'formatInline'!=_0x5058cd['type'])return;const {data:_0x5bcf6f}=_0x5058cd;if(!_0x5bcf6f||'replaceImageSource'!=_0x5bcf6f['commandName'])return;return{'type':'format','content':o(_0x2ef543,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x3c70aa{['afterInit'](){const _0xd09028=this['editor'];if(!_0xd09028['plugins']['has']('ImageStyleEditing'))return;const _0x6d722d=_0xd09028['plugins']['get']('TrackChangesEditing'),_0x5c98be=_0xd09028['plugins']['get']('ImageUtils'),_0x19da1c={};_0x6d722d['enableCommand']('imageStyle',(_0x20074f,_0x4a6ae6)=>{const _0xcdba03=_0xd09028['plugins']['get']('Users')['me'],_0x23294d=_0xd09028['commands']['get']('imageStyle');let _0x6399ec=_0x5c98be['getClosestSelectedImageElement'](_0xd09028['model']['document']['selection']),_0x3715c5=_0xd09028['model']['createRangeOn'](_0x6399ec),_0x22a9fc=_0x23294d['value'];if(_0x22a9fc==_0x4a6ae6['value'])return;const _0x47625d={'commandName':'imageStyle','commandParams':[_0x4a6ae6],'formatGroupId':_0x1cdff5()};_0xd09028['model']['change'](()=>{if(_0x6d722d['getSuggestions']()['filter'](_0x5a1cd5=>_0x5a1cd5['isInContent']&&_0xcdba03==_0x5a1cd5['author']&&('formatBlock'==_0x5a1cd5['type']||'formatInline'==_0x5a1cd5['type'])&&('imageStylePreApply'==_0x5a1cd5['subType']||'imageStylePostApply'==_0x5a1cd5['subType'])&&_0x5a1cd5['getFirstRange']()['isEqual'](_0x3715c5))['forEach'](_0x2c3011=>_0x6d722d['discardSuggestion'](_0x2c3011['head'])),_0x6399ec=_0x5c98be['getClosestSelectedImageElement'](_0xd09028['model']['document']['selection']),_0x3715c5=_0xd09028['model']['createRangeOn'](_0x6399ec),_0x23294d['refresh'](),_0xd09028['commands']['get']('imageTypeInline')['refresh'](),_0xd09028['commands']['get']('imageTypeBlock')['refresh'](),_0x22a9fc=_0x23294d['value'],_0x22a9fc!=_0x4a6ae6['value'])return _0x5c98be['isInlineImage'](_0x6399ec)&&_0x23294d['shouldConvertImageType'](_0x4a6ae6['value'],_0x6399ec)?(_0x20074f({..._0x4a6ae6,'setImageSizes':!0x1}),_0x6399ec=_0x5c98be['getClosestSelectedImageElement'](_0xd09028['model']['document']['selection']),void _0x6d722d['markBlockFormat'](_0x6399ec,{..._0x47625d,'commandReversedParams':[{'value':_0x22a9fc||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5c98be['isBlockImage'](_0x6399ec)?_0x6d722d['markBlockFormat'](_0x6399ec,_0x47625d,[],'imageStylePostApply'):_0x6d722d['markInlineFormat'](_0x3715c5,_0x47625d,'imageStylePostApply'));});});for(const _0x1c68c3 of _0xd09028['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x19da1c[_0x1c68c3['name']]=_0x1c68c3['title']['toLowerCase']();_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5c5276])=>{_0x5c98be['setImageNaturalSizeAttributes'](_0x5c5276['getContainedElement']());}),_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x51d575,_0xe1dbf7)=>{_0x6d722d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x51d575,{'commandName':_0xe1dbf7['commandName'],'commandParams':_0xe1dbf7['commandReversedParams']});}),_0x6d722d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4282f8,_0xd064ed){if(_0x4bdd21(_0x4282f8,_0xd064ed))return[_0x4282f8,_0xd064ed];if(_0x4bdd21(_0xd064ed,_0x4282f8))return[_0xd064ed,_0x4282f8];return null;});const _0xc2636d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4bdd21(_0x3c536c,_0x26b3f5){const _0x416459=_0xc2636d['findIndex'](({type:_0x475af1,subType:_0x33d41b})=>_0x3c536c['type']==_0x475af1&&_0x3c536c['subType']==_0x33d41b),_0x33a0d3=_0xc2636d['findIndex'](({type:_0x66f1da,subType:_0x2ebc43})=>_0x26b3f5['type']==_0x66f1da&&_0x26b3f5['subType']==_0x2ebc43);if(_0x416459<0x0||_0x33a0d3<0x0)return!0x1;const _0x32753d=_0x3c536c['getFirstRange'](),_0x23c9f7=_0x26b3f5['getFirstRange']();if((0x0==_0x416459||0x1==_0x416459)&&0x2==_0x33a0d3&&_0x32753d['isIntersecting'](_0x23c9f7))return!0x0;if(0x2==_0x416459&&0x3==_0x33a0d3){const _0x2aa5b9=_0x6d722d['_findSuggestions'](_0x32753d,'insertion')['filter'](({suggestion:_0x435170,meta:_0x36e50e})=>_0x36e50e['isOwn']&&'convertInlineImageToBlock'==_0x435170['subType']);if(_0x2aa5b9['length']>0x1&&_0x23c9f7['end']['isEqual'](_0x32753d['start']))return!0x0;if(0x1==_0x2aa5b9['length']&&(_0x32753d['start']['isEqual'](_0x23c9f7['end'])||_0x32753d['end']['isEqual'](_0x23c9f7['start'])))return!0x0;}if(0x3==_0x416459&&0x3==_0x33a0d3&&_0x32753d['start']['isBefore'](_0x23c9f7['start'])){const _0x232d82=_0x32753d['end']['nodeAfter'],_0x1f5913=_0x23c9f7['start']['nodeBefore'];return _0x5c98be['isBlockImage'](_0x232d82)&&_0x232d82===_0x1f5913;}return!0x1;}_0xd09028['model']['document']['registerPostFixer'](()=>{let _0x1204ea=!0x1;const _0x3b2ef7=Array['from'](_0xd09028['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d9604,data:_0x11d983}of _0x3b2ef7){const {group:_0x3470f8,type:_0x149df7,subType:_0x44632e,id:_0x24e78}=_0x6d722d['_splitMarkerName'](_0x2d9604);if('suggestion'==_0x3470f8&&_0x6d722d['hasSuggestion'](_0x24e78)){if('formatBlock'==_0x149df7&&('imageStylePreApply'==_0x44632e||'imageStylePostApply'==_0x44632e)){const _0x107873=_0x6d722d['getSuggestion'](_0x24e78);if(_0x11d983['newRange']){const _0x3e970b=_0x107873['getFirstRange']()['getContainedElement']();if(_0x5c98be['isBlockImage'](_0x3e970b))continue;_0x6d722d['discardSuggestion'](_0x107873),_0x1204ea=!0x0;}}if('insertion'==_0x149df7&&'imageCaption'==_0x44632e&&!_0x11d983['newRange']){const _0x13fd75=_0x6d722d['getSuggestion'](_0x24e78);_0x13fd75['next']&&_0x13fd75['next']['isInContent']&&(_0x6d722d['discardSuggestion'](_0x13fd75['next']),_0x1204ea=!0x0);}}}return _0x1204ea;}),this['_registerLegacyDescription'](_0x19da1c);}['_registerLegacyDescription'](_0x264e0e){const _0x384fac=this['editor'],_0x2c9645=_0x384fac['locale'];_0x384fac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e0dc5=>{if('formatBlock'!=_0x3e0dc5['type']&&'formatInline'!=_0x3e0dc5['type'])return;const {data:_0x5b39d3}=_0x3e0dc5;if(!_0x5b39d3||'imageStyle'!=_0x5b39d3['commandName'])return;const _0x23476c=_0x5b39d3['commandParams'][0x0]['value'];return _0x4055ea('side'===_0x23476c?o(_0x2c9645,'FORMAT_SIDE_IMAGE'):_0x264e0e[_0x23476c]||_0x23476c);function _0x4055ea(_0x109607){return{'type':'format','content':o(_0x2c9645,'*Format:*\x20%0',_0x109607)};}});}}class ct extends _0x3c70aa{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x17d22c){super(_0x17d22c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x21ae21=this['editor'],_0x171861=_0x21ae21['commands']['get']('importWord'),_0x33aab6=_0x21ae21['commands']['get']('trackChanges');_0x171861&&(_0x171861['on']('execute',(_0x4fa0d1,[,_0x10dcf1])=>{this['_trackChangesValueDuringImport']=_0x33aab6['value'],_0x10dcf1['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x171861,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x171861,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x33aab6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x21ae21['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2de807,_0x2f5110){const {suggestions:_0x355026}=_0x2f5110,_0x588ed9=this['editor']['commands']['get']('trackChanges'),_0x33b00c=_0x588ed9['value'];this['_trackChangesValueDuringImport']!==_0x33b00c&&(_0x588ed9['execute'](),this['_trackChangesExecuted']=!0x0),_0x355026&&_0x355026['forEach'](({id:_0x168f32,type:_0x4b04cb,author:_0x7a0603,created_at:_0x4bf89b})=>{const _0x1539f8={'id':_0x168f32,'type':_0x4b04cb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x7a0603,'createdAt':_0x4bf89b?new Date(_0x4bf89b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1539f8);});}}class ut extends _0x3c70aa{['afterInit'](){const _0x93a4df=this['editor'],_0x474551=_0x93a4df['plugins']['get']('TrackChangesEditing');if(_0x93a4df['plugins']['has']('IndentEditing')&&(_0x474551['enableCommand']('indent'),_0x474551['enableCommand']('outdent')),_0x93a4df['plugins']['has']('IndentBlock')){for(const _0x28d215 of['indentBlock','outdentBlock'])_0x474551['enableDefaultAttributesIntegration'](_0x28d215);}const _0x167100=_0x93a4df['locale'];_0x474551['registerBlockAttribute']('blockIndent'),_0x474551['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x167100,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e0264=this['editor'],_0x2d2bc5=_0x3e0264['locale'],_0x42e254=_0x3e0264['plugins']['get']('TrackChangesEditing');_0x42e254['descriptionFactory']['registerDescriptionCallback'](_0x2bc2c7=>{if('formatBlock'!=_0x2bc2c7['type'])return;const {data:_0xb31e89}=_0x2bc2c7;if(!_0xb31e89)return;if('indentBlock'!=_0xb31e89['commandName']&&'outdentBlock'!=_0xb31e89['commandName'])return;const _0x58ae0b=_0x2bc2c7['getItems']()[0x0],_0x553919=_0x42e254['descriptionFactory']['getItemLabel'](_0x58ae0b);return'indentBlock'==_0xb31e89['commandName']?{'type':'format','content':o(_0x2d2bc5,'*Indent:*\x20%0',_0x553919)}:'outdentBlock'==_0xb31e89['commandName']?{'type':'format','content':o(_0x2d2bc5,'*Outdent:*\x20%0',_0x553919)}:void 0x0;});}}class ft extends _0x3c70aa{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x3c70aa{['afterInit'](){const _0x1e7b22=this['editor'];if(!_0x1e7b22['plugins']['has']('LinkEditing'))return;const _0x14b786=_0x1e7b22['plugins']['get']('TrackChangesEditing'),_0x42dbd8=_0x1e7b22['commands']['get']('link');_0x14b786['enableDefaultAttributesIntegration']('link'),_0x14b786['enableDefaultAttributesIntegration']('unlink'),_0x14b786['registerInlineAttribute']('linkHref');for(const _0x5e0d61 of _0x42dbd8['manualDecorators'])_0x14b786['registerInlineAttribute'](_0x5e0d61['id']),_0x14b786['descriptionFactory']['registerAttributeLabel'](_0x5e0d61['id'],'link\x20('+_0x5e0d61['label']['toLowerCase']()+')');_0x14b786['descriptionFactory']['registerDescriptionCallback'](_0x102e22=>{if('attribute'!=_0x102e22['type'])return;const {data:_0x495406}=_0x102e22;if(!_0x495406||'linkHref'!=_0x495406['key'])return;const _0x49bf5d=_0x495406['newValue'],_0x4d2f0e=_0x1e7b22['locale'];return{'type':'format','content':null==_0x49bf5d?o(_0x4d2f0e,'*Remove\x20link*'):o(_0x4d2f0e,'*Set\x20link:*\x20%0','\x22'+_0x49bf5d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3829cd=this['editor'],_0x44aa65=_0x3829cd['locale'];_0x3829cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x308e54=>{if('formatInline'!=_0x308e54['type'])return;const {data:_0x18033b}=_0x308e54;if(_0x18033b){if('link'==_0x18033b['commandName']){const _0xcd3470=_0x18033b['commandParams'][0x0];return{'type':'format','content':o(_0x44aa65,'*Set\x20link:*\x20%0','\x22'+_0xcd3470+'\x22')};}return'unlink'==_0x18033b['commandName']?{'type':'format','content':o(_0x44aa65,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x3c70aa{['afterInit'](){const _0x4dbce4=this['editor'],_0x14c17e=_0x4dbce4['locale'];if(!_0x4dbce4['plugins']['has']('LegacyListEditing'))return;const _0x2ea407=_0x4dbce4['plugins']['get']('TrackChangesEditing'),_0x516ff2=_0x4dbce4['plugins']['has']('LegacyTodoListEditing');function _0x34b8c2(_0x5760d5){return()=>{const _0x2533bd=_0x4dbce4['model']['document']['selection'],_0x3f68f2=_0x4dbce4['commands']['get'](_0x5760d5);if(_0x3f68f2['value'])return void _0x4dbce4['execute']('paragraph',{});const _0x4b3dca=_0x5760d5['slice'](0x0,-0x4),_0x5c7e42=function(_0x1afc6a,_0x3b5b03,_0x266a23){let _0x4f9024=Array['from'](_0x1afc6a)['filter'](_0x7c927d=>function(_0x369f07,_0xab7d3){return _0xab7d3['checkChild'](_0x369f07['parent'],'listItem')&&!_0xab7d3['isObject'](_0x369f07);}(_0x7c927d,_0x266a23));_0x4f9024=_0x4f9024['filter'](_0x1618db=>!_0x1618db['is']('element','listItem')||_0x1618db['getAttribute']('listType')!=_0x3b5b03);const _0x1c134d=new Set();for(const _0x5bf96b of _0x4f9024)_0x5bf96b['is']('element','listItem')?_0x1c134d['add'](Le(_0x5bf96b)):_0x1c134d['add'](_0x5bf96b);return Array['from'](_0x1c134d);}(_0x2533bd['getSelectedBlocks'](),_0x4b3dca,_0x4dbce4['model']['schema']);_0x4dbce4['model']['change'](()=>{for(const _0x9bb1b of _0x5c7e42)_0x2ea407['markBlockFormat'](_0x9bb1b,{'commandName':_0x5760d5,'commandParams':[{'forceValue':!_0x3f68f2['value']}],'formatGroupId':'blockName'},Ee(_0x9bb1b));});};}function _0x563953(_0x1e4c5a){return()=>{const _0x54f164=function(_0x326ad3){let _0x42cb92=Array['from'](_0x326ad3);const _0x5bef1f=_0x42cb92['findIndex'](_0x1de034=>'listItem'!=_0x1de034['name']);return _0x5bef1f>-0x1&&(_0x42cb92=_0x42cb92['slice'](0x0,_0x5bef1f)),_0x42cb92;}(_0x4dbce4['model']['document']['selection']['getSelectedBlocks']()),_0x347cbe=_0x4dbce4['model']['createRange'](_0x4dbce4['model']['createPositionAt'](_0x54f164[0x0],'before'),_0x4dbce4['model']['createPositionAt'](_0x54f164[_0x54f164['length']-0x1],'end'));_0x4dbce4['model']['change'](()=>{_0x2ea407['markBlockFormat'](_0x347cbe,{'commandName':_0x1e4c5a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1fa086){const _0x10fd6e=new Set();for(const _0x126811 of _0x1fa086){let _0x2f1ca4=_0x126811['nextSibling'];for(;_0x2f1ca4&&_0x2f1ca4['getAttribute']('listIndent')>_0x126811['getAttribute']('listIndent');)_0x10fd6e['add'](_0x2f1ca4),_0x2f1ca4=_0x2f1ca4['nextSibling'];}return Array['from'](_0x10fd6e);}(_0x54f164));});};}_0x2ea407['enableCommand']('numberedList',_0x34b8c2('numberedList')),_0x2ea407['enableCommand']('bulletedList',_0x34b8c2('bulletedList')),_0x516ff2&&_0x2ea407['enableCommand']('todoList',_0x34b8c2('todoList')),_0x2ea407['enableCommand']('indentList',_0x563953('indentList')),_0x2ea407['enableCommand']('outdentList',_0x563953('outdentList')),_0x516ff2&&_0x2ea407['enableCommand']('checkTodoList',()=>{const _0x207ab4=_0x4dbce4['commands']['get']('checkTodoList'),_0x40b627=Array['from'](_0x207ab4['_selectedElements']);_0x40b627['filter'](_0x2d7e8e=>_0x2d7e8e['getAttribute']('todoListChecked')!=_0x207ab4['value']),_0x4dbce4['model']['change'](()=>{for(const _0x3f9ee7 of _0x40b627)_0x2ea407['markBlockFormat'](_0x3f9ee7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x207ab4['value']}]});});}),_0x2ea407['descriptionFactory']['registerElementLabel']('listItem',_0x4f8a06=>o(_0x14c17e,'ELEMENT_LIST_ITEM',_0x4f8a06)),_0x2ea407['descriptionFactory']['registerDescriptionCallback'](_0x23f0cf=>{if('formatBlock'!=_0x23f0cf['type']&&'formatInline'!=_0x23f0cf['type'])return;const {data:_0x2225bc}=_0x23f0cf;if(_0x2225bc){if('numberedList'==_0x2225bc['commandName']||'bulletedList'==_0x2225bc['commandName']||'todoList'==_0x2225bc['commandName'])switch(_0x2225bc['commandName']['replace']('List','')){case'bulleted':return _0x9382d7(o(_0x14c17e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9382d7(o(_0x14c17e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9382d7(o(_0x14c17e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2225bc['commandName'])return{'type':'format','content':o(_0x14c17e,'*Indent:*\x20%0',o(_0x14c17e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2225bc['commandName'])return{'type':'format','content':o(_0x14c17e,'*Outdent:*\x20%0',o(_0x14c17e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2225bc['commandName'])return _0x2225bc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x14c17e,'*Check\x20item*')}:{'type':'format','content':o(_0x14c17e,'*Uncheck\x20item*')};}function _0x9382d7(_0x4c9e63){return{'type':'format','content':o(_0x14c17e,'*Change\x20to:*\x20%0',_0x4c9e63)};}});}}function Le(_0x28d299){const _0x442074=_0x28d299['getAttribute']('listIndent');if(0x0==_0x442074)return _0x28d299;let _0x170c6e=_0x28d299;for(;_0x28d299['previousSibling']&&_0x28d299['previousSibling']['is']('element','listItem');){const _0x5476f1=_0x28d299['previousSibling']['getAttribute']('listIndent');if(_0x5476f1==_0x442074)_0x170c6e=_0x28d299['previousSibling'];else{if(_0x5476f1<_0x442074)break;}_0x28d299=_0x28d299['previousSibling'];}return _0x170c6e;}function Ee(_0x2bba20){const _0x502ab8=[];if(_0x2bba20['is']('element','listItem')&&_0x2bba20['getAttribute']('listIndent')>0x0){let _0x59ca1e=_0x2bba20['nextSibling'];for(;_0x59ca1e&&'listItem'==_0x59ca1e['name']&&_0x59ca1e['getAttribute']('listIndent')==_0x2bba20['getAttribute']('listIndent');)_0x502ab8['push'](_0x59ca1e),_0x59ca1e=_0x59ca1e['nextSibling'];}return _0x502ab8;}class Q extends _0x3c70aa{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5101a8=this['editor']['config']['get']('list.properties'),_0x4972de=this['editor']['plugins']['get']('TrackChangesEditing');_0x5101a8['styles']&&_0x4972de['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5101a8['reversed']&&_0x4972de['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5101a8['startIndex']&&_0x4972de['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4972de['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x6812bb,_0x347f7d={}){const _0x186a2e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ec92e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x186a2e['markMultiRangeBlockFormat'](_0x2ec92e,{'commandName':'listStyle','commandParams':[{'type':_0x347f7d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xa51b51,_0x21db1f={}){const _0x1baa00=this['editor']['plugins']['get']('TrackChangesEditing'),_0x184ffc=this['_getSuggestionBlocks'](_0x580779=>_0x580779['is']('element','listItem')&&'numbered'===_0x580779['getAttribute']('listType'));if(_0x184ffc['length']<0x1)return;const _0x5eb14a=_0x184ffc['map'](_0x5d16b8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d16b8,'before'),this['editor']['model']['createPositionAt'](_0x5d16b8,0x0)));this['editor']['model']['change'](()=>{_0x1baa00['markMultiRangeBlockFormat'](_0x5eb14a,{'commandName':'listReversed','commandParams':[{'reversed':_0x21db1f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2448de,_0x2cbd0f={}){const _0x590e8c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x700cbc=this['_getSuggestionBlocks'](_0xfc6253=>_0xfc6253['is']('element','listItem')&&'numbered'===_0xfc6253['getAttribute']('listType'));if(_0x700cbc['length']<0x1)return;const _0x13a84f=_0x700cbc['map'](_0xfd611=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xfd611,'before'),this['editor']['model']['createPositionAt'](_0xfd611,0x0)));this['editor']['model']['change'](()=>{_0x590e8c['markMultiRangeBlockFormat'](_0x13a84f,{'commandName':'listStart','commandParams':[{'startIndex':_0x2cbd0f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x323d3e){if('formatBlock'!=_0x323d3e['type']&&'formatInline'!=_0x323d3e['type'])return;const _0xf1e62d=this['editor']['locale'],{data:_0x32d647}=_0x323d3e;if(!_0x32d647)return;let _0x57213e,_0x256979;switch(_0x32d647['commandName']){case'listStyle':_0x57213e='*Change\x20to:*\x20%0',_0x256979={'type':'format','content':o(_0xf1e62d,_0x57213e,o(_0xf1e62d,this['_getTranslationKeyForListStyle'](_0x32d647['commandParams'][0x0]['type'])))};break;case'listReversed':_0x57213e=_0x32d647['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x256979={'type':'format','content':o(_0xf1e62d,_0x57213e)};break;case'listStart':_0x57213e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x256979={'type':'format','content':o(_0xf1e62d,_0x57213e,_0x32d647['commandParams'][0x0]['startIndex'])};}return _0x256979;}['_getSuggestionBlocksForListStyle'](){const _0x3442b3=this['editor']['plugins']['get']('LegacyListUtils');let _0x481ad1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x481ad1[0x0]?.['is']('element','listItem')&&_0x481ad1['unshift'](..._0x3442b3['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x481ad1[_0x481ad1['length']-0x1]?.['is']('element','listItem')&&_0x481ad1['push'](..._0x3442b3['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x481ad1=[...new Set(_0x481ad1)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x481ad1=_0x481ad1['filter'](_0x36a1d9=>_0x36a1d9['is']('element','listItem'))),_0x481ad1;}['_getSuggestionBlocks'](_0x1ebd68){const _0x44af02=this['editor']['plugins']['get']('LegacyListUtils');let _0x217dbe=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1ebd68)['map'](_0x1fee67=>{const _0x427c47=this['editor']['model']['createPositionAt'](_0x1fee67,0x0);return[..._0x44af02['getSiblingNodes'](_0x427c47,'backward'),..._0x44af02['getSiblingNodes'](_0x427c47,'forward')];})['flat']();return _0x217dbe=[...new Set(_0x217dbe)],_0x217dbe;}['_getTranslationKeyForListStyle'](_0x4dac0b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4dac0b)||'default')['toUpperCase']()+'_LIST_'+_0x4dac0b['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x3c70aa{['afterInit'](){const _0x5719a0=this['editor'];if(!_0x5719a0['plugins']['has']('MediaEmbedEditing'))return;const _0x5c0bc4=_0x5719a0['plugins']['get']('TrackChangesEditing'),_0x1bc4c2=_0x5719a0['locale'];_0x5c0bc4['enableCommand']('mediaEmbed'),_0x5c0bc4['descriptionFactory']['registerElementLabel']('media',_0x3847d3=>o(_0x1bc4c2,'ELEMENT_MEDIA',_0x3847d3)),_0x5719a0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2a6196,{writer:_0x1929b8,options:_0x4d1813})=>{if(_0x4d1813['showSuggestionHighlights'])return _0x1929b8['createEmptyElement']('div');},'converterPriority':'high'}),_0x5719a0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x380023,_0x1f5e11,_0x35dac7)=>{_0x35dac7['options']['showSuggestionHighlights']&&_0x380023['stop']();},{'priority':'high'});}}class mt extends _0x3c70aa{['afterInit'](){const _0x30b15e=this['editor'];_0x30b15e['plugins']['has']('MentionEditing')&&_0x30b15e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x3c70aa{['afterInit'](){const _0x540a33=this['editor'];if(!_0x540a33['plugins']['has']('MergeFieldsEditing'))return;_0x540a33['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x540a33['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0xf03c9e=_0x540a33['plugins']['get']('TrackChangesEditing'),_0x348b1c=_0x540a33['locale'];_0xf03c9e['descriptionFactory']['registerElementLabel']('mergeField',_0x5c1f8f=>o(_0x348b1c,'ELEMENT_MERGE_FIELD',_0x5c1f8f)),_0xf03c9e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5c7186=>o(_0x348b1c,'ELEMENT_MERGE_FIELD',_0x5c7186)),_0xf03c9e['descriptionFactory']['registerDescriptionCallback'](_0x321f48=>{if('insertion'!=_0x321f48['type']&&'deletion'!=_0x321f48['type'])return;const _0x217718=_0x321f48['getContainedElement']();if(null==_0x217718)return;if(!_0x217718['is']('element','mergeField')&&!_0x217718['is']('element','mergeFieldBlock'))return;const _0x3f8fa1=_0x540a33['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x217718['getAttribute']('id'));return'insertion'==_0x321f48['type']?{'type':'insertion','content':o(_0x348b1c,'*Insert:*\x20%0','\x22'+_0x3f8fa1+'\x22\x20'+o(_0x348b1c,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x348b1c,'*Remove:*\x20%0','\x22'+_0x3f8fa1+'\x22\x20'+o(_0x348b1c,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x3c70aa{['afterInit'](){const _0x36738c=this['editor'],_0x25c40d=_0x36738c['plugins']['get']('TrackChangesEditing');_0x36738c['plugins']['has']('MultiLevelList')&&(_0x25c40d['enableDefaultAttributesIntegration']('multiLevelList'),_0x25c40d['registerBlockAttribute']('listMarkerStyle'),_0x25c40d['descriptionFactory']['registerDescriptionCallback'](_0x1ca2c3=>this['handleDescriptions'](_0x1ca2c3)));}['handleDescriptions'](_0x3d3175){const _0x1b36aa=this['editor']['locale'],{data:_0x2f6efd}=_0x3d3175,_0x373f7d={'type':'format','content':''};if(_0x2f6efd&&'listMarkerStyle'==_0x2f6efd['key']){if(!_0x2f6efd['oldValue'])return{'type':'format','content':o(_0x1b36aa,'*Set\x20format:*\x20%0',o(_0x1b36aa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f6efd['newValue']+')'};if(!_0x2f6efd['newValue']){let _0x22c44a=_0x3d3175['head'];for(;_0x22c44a;){if(_0x22c44a['data']&&'listType'==_0x22c44a['data']['key']&&_0x22c44a['data']['newValue'])return _0x373f7d;_0x22c44a=_0x22c44a['next'];}return{'type':'format','content':o(_0x1b36aa,'*Remove\x20format:*\x20%0',o(_0x1b36aa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f6efd['oldValue']+')'};}}}}class kt extends _0x3c70aa{['afterInit'](){const _0x35be02=this['editor'];if(!_0x35be02['plugins']['has']('PageBreakEditing'))return;_0x35be02['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x103947=_0x35be02['plugins']['get']('TrackChangesEditing'),_0xfb643e=_0x35be02['locale'];_0x103947['descriptionFactory']['registerElementLabel']('pageBreak',_0x54eaf7=>o(_0xfb643e,'ELEMENT_PAGE_BREAK',_0x54eaf7));}}class bt extends _0x3c70aa{['afterInit'](){const _0xc2482a=this['editor'];if(!_0xc2482a['plugins']['has']('Paragraph'))return;const _0x24efed=_0xc2482a['locale'],_0x24123c=_0xc2482a['plugins']['get']('TrackChangesEditing');_0x24123c['descriptionFactory']['registerElementLabel']('paragraph',_0x656f67=>o(_0x24efed,'ELEMENT_PARAGRAPH',_0x656f67)),_0x24123c['enableDefaultAttributesIntegration']('paragraph'),_0x24123c['enableCommand']('insertParagraph'),_0xc2482a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xc2482a),{'priority':'highest'}),_0xc2482a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3b4b1e,_0x77f889,_0x1ee201)=>{_0x1ee201['options']['showSuggestionHighlights']&&nr(_0xc2482a,{'showActiveMarker':!0x1})(_0x3b4b1e,_0x77f889,_0x1ee201);},{'priority':'highest'});const _0x27e64f=_0x24123c['descriptionFactory'];_0x27e64f['registerDescriptionCallback'](_0x518cdc=>{if('insertion'!==_0x518cdc['type'])return;const {start:_0x47d439,end:_0x23902d}=_0x518cdc['getFirstRange']();if(!_0x47d439['isTouching'](_0x23902d)||!_0x47d439['nodeAfter'])return;const _0xc949ab=_0xc2482a['model']['schema'],_0x252ecd=_0x47d439['nodeAfter'];return _0xc949ab['isBlock'](_0x252ecd)&&!_0xc949ab['isLimit'](_0x252ecd)&&_0xc949ab['checkChild'](_0x252ecd,'$text')?{'type':'insertion','content':o(_0x24efed,'*Insert:*\x20%0',_0x27e64f['getItemLabel'](_0x252ecd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x457243=this['editor'],_0x43978e=_0x457243['locale'];_0x457243['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x203cee=>{if('formatBlock'!=_0x203cee['type'])return;const {data:_0x51bfb1}=_0x203cee;return _0x51bfb1&&'paragraph'==_0x51bfb1['commandName']?{'type':'format','content':o(_0x43978e,'*Change\x20to:*\x20%0',o(_0x43978e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1e1998,{showActiveMarker:_0x3af4fb=!0x0}={}){return(_0x4a2b2e,_0x26325b,_0x5e721b)=>{const _0x5ca6a4=_0x1e1998['plugins']['get']('TrackChangesEditing'),_0x9d26fc=_0x26325b['markerRange']['start'],_0x9a04f1=_0x26325b['markerRange']['end'],_0x4ffccf=_0x1e1998['model']['schema'];if(!_0x9d26fc['isTouching'](_0x9a04f1)||!_0x9d26fc['nodeAfter'])return;const _0x16e59a=_0x9d26fc['nodeAfter'];if(_0x4ffccf['isBlock'](_0x16e59a)&&!_0x4ffccf['isLimit'](_0x16e59a)&&_0x4ffccf['checkChild'](_0x16e59a,'$text')){if(!_0x5e721b['consumable']['consume'](_0x26325b['markerRange'],_0x4a2b2e['name']))return;const {authorId:_0x52a3f1}=_0x5ca6a4['_splitMarkerName'](_0x26325b['markerName']),_0x331b87=_0x5e721b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x52a3f1}),_0x367408=_0x5e721b['mapper']['toViewPosition'](_0x9a04f1);_0x3af4fb&&_0x5ca6a4['activeMarkers']['includes'](_0x26325b['markerName'])&&_0x5e721b['writer']['addClass']('ck-suggestion-marker--active',_0x331b87),_0x5e721b['writer']['insert'](_0x367408,_0x331b87),_0x5e721b['mapper']['bindElementToMarker'](_0x331b87,_0x26325b['markerName']);}};}class yt extends _0x3c70aa{['afterInit'](){const _0x29a481=this['editor'];if(!_0x29a481['plugins']['has']('RemoveFormatEditing'))return;_0x29a481['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdcafec=this['editor'];_0xdcafec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3173f9=>{if('formatBlock'!=_0x3173f9['type']&&'formatInline'!=_0x3173f9['type'])return;const {data:_0x9b37ae}=_0x3173f9;return _0x9b37ae&&'removeFormat'==_0x9b37ae['commandName']?{'type':'format','content':o(_0xdcafec['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x3c70aa{['afterInit'](){const _0x344b6b=this['editor'];if(!_0x344b6b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x49da31=_0x344b6b['plugins']['get']('TrackChangesEditing');_0x49da31['enableCommand']('goToPreviousRestrictedEditingException'),_0x49da31['enableCommand']('goToNextRestrictedEditingException');const _0x105bf3=_0x344b6b['plugins']['get']('RestrictedEditingModeEditing');_0x105bf3['enableCommand']('trackChanges'),_0x105bf3['enableCommand']('acceptSuggestion'),_0x105bf3['enableCommand']('discardSuggestion'),_0x105bf3['enableCommand']('acceptAllSuggestions'),_0x105bf3['enableCommand']('discardAllSuggestions'),_0x105bf3['enableCommand']('acceptSelectedSuggestions'),_0x105bf3['enableCommand']('discardSelectedSuggestions');}}class St extends _0x3c70aa{static get['requires'](){return[_0x4f65e3];}['init'](){const _0x5ea887=this['editor'],_0x473b05=_0x5ea887['plugins']['get']('TrackChangesEditing');_0x473b05['enableCommand']('shiftEnter'),_0x5ea887['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x5ea887),{'priority':'high'}),_0x5ea887['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x5ea887),{'priority':'high'}),_0x5ea887['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x26de7e,_0x52d0b4,_0x57635d)=>{_0x57635d['options']['showSuggestionHighlights']&&ke(_0x5ea887,{'showActiveMarker':!0x1})(_0x26de7e,_0x52d0b4,_0x57635d);}),_0x473b05['descriptionFactory']['registerElementLabel']('softBreak',_0x1b3d1f=>o(_0x5ea887['locale'],'ELEMENT_LINE_BREAK',_0x1b3d1f));}}function ke(_0x5a7837,{showActiveMarker:_0x5d4736=!0x0}={}){return(_0x46c336,_0x1a8c42,_0x1e1db7)=>{const _0x19f294=_0x5a7837['plugins']['get']('TrackChangesEditing');if(!_0x1e1db7['consumable']['test'](_0x1a8c42['markerRange'],_0x46c336['name']))return;const _0x1f0a2b=_0x5a7837['model'];for(const _0x227058 of _0x1a8c42['markerRange']['getItems']()){if(!_0x227058['is']('element','softBreak'))continue;const _0x5893a9='deletion'==_0x1a8c42['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x53805b}=_0x19f294['_splitMarkerName'](_0x1a8c42['markerName']),_0x511d17=_0x1e1db7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5893a9,'data-author-id':_0x53805b}),_0x298661=_0x1e1db7['mapper']['toViewPosition'](_0x1f0a2b['createPositionBefore'](_0x227058));_0x5d4736&&_0x19f294['activeMarkers']['includes'](_0x1a8c42['markerName'])&&_0x1e1db7['writer']['addClass']('ck-suggestion-marker--active',_0x511d17),_0x1e1db7['writer']['insert'](_0x298661,_0x511d17),_0x1e1db7['mapper']['bindElementToMarker'](_0x511d17,_0x1a8c42['markerName']);}};}class At extends _0x3c70aa{['afterInit'](){const _0x59b5a0=this['editor'],_0x2e6337=_0x59b5a0['model'],_0xb39d39=_0x59b5a0['locale'];if(!_0x59b5a0['plugins']['has']('StandardEditingModeEditing'))return;const _0x518a45=_0x59b5a0['plugins']['get']('TrackChangesEditing'),_0x580397='restrictedEditingException',_0x646ea2=_0x59b5a0['commands']['get'](_0x580397);_0x518a45['enableCommand'](_0x580397,(_0x2338a3,_0x17cf53={})=>{const _0x1834d1=_0x2e6337['document']['selection'];if(_0x1834d1['isCollapsed'])return void _0x2338a3(_0x17cf53);const _0x429795=void 0x0!==_0x17cf53['forceValue']?_0x17cf53['forceValue']:!_0x646ea2['value'];_0x2e6337['change'](()=>{const _0x3e7391=Array['from'](_0x1834d1['getRanges']());for(const _0x405dc8 of _0x3e7391){const _0x4b3094=_0x429795?[_0x405dc8]:io(_0x580397,_0x405dc8,_0x2e6337);for(const _0x3134da of _0x4b3094)_0x518a45['markInlineFormat'](_0x3134da,{'commandName':_0x580397,'commandParams':[{'forceValue':_0x429795}]});}});}),_0x518a45['descriptionFactory']['registerDescriptionCallback'](_0xc4eed=>{if('formatBlock'!=_0xc4eed['type']&&'formatInline'!=_0xc4eed['type'])return;const {data:_0x4ec2c5}=_0xc4eed;return _0x4ec2c5&&_0x4ec2c5['commandName']==_0x580397?_0x4ec2c5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb39d39,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xb39d39,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x3c70aa{['afterInit'](){const _0x20cdad=this['editor'];if(!_0x20cdad['plugins']['has']('Style')||!_0x20cdad['plugins']['has']('DataSchema'))return;const _0x592672=_0x20cdad['plugins']['get']('TrackChangesEditing'),_0x20db88=_0x20cdad['locale'],_0x50a431=_0x20cdad['config']['get']('style')||{},_0x27614a=_0x20cdad['plugins']['get']('GeneralHtmlSupport'),_0x2d664e=_0x20cdad['plugins']['get']('StyleUtils')['normalizeConfig'](_0x20cdad['plugins']['get']('DataSchema'),_0x50a431['definitions']);_0x592672['enableDefaultAttributesIntegration']('style');const _0x4740e6=new Set();for(const _0x490bf5 of _0x2d664e['block']){const _0x3844b6=_0x27614a['getGhsAttributeNameForElement'](_0x490bf5['element']);_0x4740e6['add'](_0x3844b6);}const _0x1116a2=new Set();for(const _0x5f3692 of _0x2d664e['inline']){const _0x2c17cb=_0x27614a['getGhsAttributeNameForElement'](_0x5f3692['element']);_0x1116a2['add'](_0x2c17cb);for(const _0x367e71 of _0x5f3692['ghsAttributes'])_0x1116a2['add'](_0x367e71);}for(const _0x4bebd3 of _0x4740e6)_0x592672['registerBlockAttribute'](_0x4bebd3),_0x592672['descriptionFactory']['registerAttributeLabel'](_0x4bebd3,o(_0x20db88,'FORMAT_STYLE'));for(const _0xd73bf2 of _0x1116a2)_0x592672['registerInlineAttribute'](_0xd73bf2),_0x592672['descriptionFactory']['registerAttributeLabel'](_0xd73bf2,o(_0x20db88,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b0a7e=this['editor'],_0x427c00=_0x5b0a7e['locale'];_0x5b0a7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x185a02=>{if('formatBlock'!=_0x185a02['type']&&'formatInline'!=_0x185a02['type'])return;const {data:_0x4e25ef}=_0x185a02;return _0x4e25ef&&'style'===_0x4e25ef['commandName']?_0x4e25ef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x427c00,'*Set\x20format:*\x20%0',_0x4e25ef['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x427c00,'*Remove\x20format:*\x20%0',_0x4e25ef['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x3c70aa{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3d5ab2){super(_0x3d5ab2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x83c00d=this['editor'],_0x9d34f4=_0x83c00d['model']['document']['selection'];if(!_0x83c00d['plugins']['has']('TableEditing'))return;const _0x1f145a=_0x83c00d['locale'],_0x557fc6=_0x83c00d['plugins']['get']('TrackChangesEditing'),_0x421b6c=_0x83c00d['plugins']['get']('TableUtils');_0x557fc6['descriptionFactory']['registerElementLabel']('table',_0x2c517f=>o(_0x1f145a,'ELEMENT_TABLE',_0x2c517f)),this['_setupColumnsRowsFixing'](),_0x557fc6['enableCommand']('insertTable'),_0x557fc6['enableCommand']('selectTableRow'),_0x557fc6['enableCommand']('selectTableColumn');for(const _0x492c86 of['insertTableRowAbove','insertTableRowBelow']){const _0x467f7d=_0x83c00d['commands']['get'](_0x492c86);_0x557fc6['enableCommand'](_0x492c86,_0x356b03=>{_0x83c00d['model']['change'](_0x548b9e=>{_0x356b03();const _0x1c64a5='above'===_0x467f7d['order'],_0x5eb77e=_0x421b6c['getSelectionAffectedTableCells'](_0x9d34f4),_0x5ed9fd=_0x421b6c['getRowIndexes'](_0x5eb77e),_0x3c803b=_0x1c64a5?_0x5ed9fd['first']-0x1:_0x5ed9fd['last']+0x1,_0x138a5e=_0x5eb77e[0x0]['findAncestor']('table'),_0x435ca4=_0x421b6c['createTableWalker'](_0x138a5e,{'startRow':_0x3c803b,'endRow':_0x3c803b}),_0x20b66b=Array['from'](_0x435ca4)['map'](_0x56d29c=>_0x548b9e['createRangeOn'](_0x56d29c['cell']));_0x557fc6['markMultiRangeInsertion'](_0x20b66b,'tableRow');});});}for(const _0x565727 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4c713e=_0x83c00d['commands']['get'](_0x565727);_0x557fc6['enableCommand'](_0x565727,_0xf12580=>{_0x83c00d['model']['change'](_0x2e7f85=>{_0xf12580();const _0x103c01='left'===_0x4c713e['order'],_0x3b5bf5=_0x421b6c['getSelectionAffectedTableCells'](_0x9d34f4),_0x4c44a5=_0x421b6c['getColumnIndexes'](_0x3b5bf5),_0x4d76c5=_0x103c01?_0x4c44a5['first']-0x1:_0x4c44a5['last']+0x1,_0x5d61ce=_0x3b5bf5[0x0]['findAncestor']('table'),_0x27614d=_0x421b6c['createTableWalker'](_0x5d61ce,{'startRow':0x0,'column':_0x4d76c5,'includeAllSlots':!0x1}),_0x1f7f2e=Array['from'](_0x27614d)['map'](_0x507ccc=>_0x2e7f85['createRangeOn'](_0x507ccc['cell']));_0x557fc6['markMultiRangeInsertion'](_0x1f7f2e,'tableColumn');});});}for(const _0x1cc285 of['removeTableRow','removeTableColumn']){const _0x21ad82=_0x1cc285['substr'](0xb),_0xb16562=_0x21ad82['toLowerCase'](),_0x26e1b5=_0xb16562['substr'](0x0,0x3)+'span',_0x5e71b9='table'+_0x21ad82,_0x473270='min'+_0x21ad82,_0xc92906='max'+_0x21ad82;_0x557fc6['enableCommand'](_0x1cc285,()=>{_0x83c00d['model']['change'](_0x62153b=>{const _0x3efcad=_0x421b6c['getSelectionAffectedTableCells'](_0x9d34f4),_0x5526d6=_0x3efcad[0x0]['findAncestor']('table');let _0xcb9580;if('removeTableRow'==_0x1cc285){const _0x26939d=_0x421b6c['getRowIndexes'](_0x3efcad);_0xcb9580={'startRow':_0x26939d['first'],'endRow':_0x26939d['last'],'includeAllSlots':!0x0};}else{const _0x236d2b=_0x421b6c['getColumnIndexes'](_0x3efcad);_0xcb9580={'startColumn':_0x236d2b['first'],'endColumn':_0x236d2b['last'],'includeAllSlots':!0x0};}const _0x2d8d05=_0x421b6c['createTableWalker'](_0x5526d6,_0xcb9580),_0x145a97=Array['from'](_0x2d8d05)['map'](({cell:_0x4fbd4d})=>_0x4fbd4d),_0x2e33f7=Re(_0x145a97['filter'](_0x234835=>_0x234835['hasAttribute'](_0x26e1b5))),_0x7b22ef=Re(_0x145a97['filter'](_0x2651a8=>!_0x2651a8['hasAttribute'](_0x26e1b5)))['map'](_0x582ab1=>_0x62153b['createRangeOn'](_0x582ab1)),_0x1a668a=_0x557fc6['markMultiRangeDeletion'](_0x7b22ef,_0x5e71b9);if(_0x1a668a&&('tableRow'==_0x1a668a['subType']||'tableColumn'==_0x1a668a['subType'])){const _0x2f4208=this['_getSuggestionCoords'](_0x1a668a);for(const _0x92310b of _0x2e33f7){const _0x9cf49e=_0x62153b['createRangeOn'](_0x92310b),_0x34f772=_0x421b6c['getCellLocation'](_0x92310b),_0x232e9f=_0x92310b['getAttribute'](_0x26e1b5)-0x1,_0x16fbbe=_0x2f4208[_0x473270],_0x195502=_0x2f4208[_0xc92906];_0x16fbbe<=_0x34f772[_0xb16562]&&_0x34f772[_0xb16562]+_0x232e9f<=_0x195502&&_0x1a668a['addRange'](_0x9cf49e);}}});});}function _0x292058(_0x2fb9a2){const _0x661583=Array['from'](_0x9d34f4['getRanges']())['map'](_0x2d933e=>_0x4fb46f['fromRange'](_0x2d933e));_0x83c00d['model']['change'](_0xbe9e68=>{const _0x1c9073=_0xbe9e68['batch'];_0x2fb9a2=_0x2fb9a2['filter'](_0x2d7ecf=>'$graveyard'!=_0x2d7ecf['root']['rootName']),_0xbe9e68['setSelection'](_0x2fb9a2),_0x83c00d['commands']['get']('removeTableRow')['refresh'](),_0x83c00d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x83c00d['model']['enqueueChange'](()=>{_0x83c00d['model']['enqueueChange'](_0x1c9073,_0x41fca6=>{const _0x7d2a25=_0x661583['filter'](_0x4c39f7=>'$graveyard'!=_0x4c39f7['root']['rootName']);_0x7d2a25['length']>0x0&&_0x41fca6['setSelection'](_0x7d2a25);for(const _0x17cbe9 of _0x661583)_0x17cbe9['detach']();});});});}function _0x38f40b(_0x3e78a9){_0x83c00d['model']['change'](_0x45eb3a=>{const _0x34c291=Array['from'](_0x9d34f4['getRanges']())['map'](_0x225f4d=>_0x4fb46f['fromRange'](_0x225f4d)),_0x2a9cc1=[];for(const _0x3a7656 of _0x3e78a9)for(const _0x1d8f16 of _0x3a7656['getItems']({'shallow':!0x0}))_0x2a9cc1['push'](_0x1d8f16);for(const _0x583c95 of _0x2a9cc1)'$graveyard'!=_0x583c95['root']['rootName']&&(_0x45eb3a['setSelection'](_0x45eb3a['createPositionAt'](_0x583c95,0x0)),_0x83c00d['commands']['get']('removeTableColumn')['refresh'](),_0x83c00d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x582708=_0x34c291['filter'](_0x57e427=>'$graveyard'!=_0x57e427['root']['rootName']);_0x582708['length']>0x0&&_0x45eb3a['setSelection'](_0x582708);for(const _0x22fa7e of _0x34c291)_0x22fa7e['detach']();});}function _0x25c67b(_0x29bcee,_0x283039){return _0x283039['every'](_0x388ddc=>_0x29bcee['some'](_0x56acf8=>_0x56acf8['end']['isEqual'](_0x388ddc['start'])||_0x388ddc['end']['isEqual'](_0x56acf8['start'])));}function _0x581db7(_0x1badce,_0x2b56d0){return!_0x1badce['some'](_0xec621=>_0x2b56d0['some'](_0x53cda3=>_0xec621['isIntersecting'](_0x53cda3)))&&_0x1badce['some'](_0xbc3c23=>_0x2b56d0['some'](_0x35fde9=>_0xbc3c23['end']['isTouching'](_0x35fde9['start'])));}_0x83c00d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x50d7a2,_0x47445d,_0x4fa80f)=>{if(!_0x4fa80f['options']['showSuggestionHighlights'])return;const _0x2a82e2=_0x47445d['item'];if(!_0x2a82e2)return;const _0x54759e=_0x4fa80f['mapper']['toViewElement'](_0x2a82e2);function _0x2f0c1b(_0x13aaf7){return Array['isArray'](_0x13aaf7)?_0x13aaf7:[_0x13aaf7];}_0x54759e&&'tableCell'===_0x2a82e2['name']&&_0x504615(_0x54759e,_0x4fa80f['writer'],(_0x2d9dce,_0xb5516d,_0x1fbf3e)=>_0x1fbf3e['addClass'](_0x2f0c1b(_0xb5516d['classes']),_0x2d9dce),(_0x3ebe98,_0x114ffc,_0x59c8e2)=>_0x59c8e2['removeClass'](_0x2f0c1b(_0x114ffc['classes']),_0x3ebe98));},{'priority':'highest'}),_0x557fc6['descriptionFactory']['registerDescriptionCallback'](_0x1e8f5e=>{if('insertion'!=_0x1e8f5e['type']&&'deletion'!=_0x1e8f5e['type'])return;const _0x10f140=_0x1e8f5e['getContainedElement']();if(null!=_0x10f140&&_0x10f140['is']('element','table')){if('insertion'==_0x1e8f5e['type']){const _0x27266f=_0x1e8f5e['getItems']()['filter'](_0x23033a=>_0x23033a['is']('$textProxy'))['map'](_0x544eab=>_0x544eab['data']);if(_0x27266f['length'])return{'type':'insertion','content':o(_0x1f145a,'*Insert:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x27266f['join']('\x20')+'\x22'))};}if('deletion'==_0x1e8f5e['type']){const _0x1b0d0a=_0x1e8f5e['getItems']()['filter'](_0x3ea586=>_0x3ea586['is']('$textProxy'))['map'](_0x352a9c=>_0x352a9c['data']);if(_0x1b0d0a['length'])return{'type':'deletion','content':o(_0x1f145a,'*Remove:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1b0d0a['join']('\x20')+'\x22'))};}}}),_0x557fc6['descriptionFactory']['registerDescriptionCallback'](_0x5797d3=>{if('tableRow'==_0x5797d3['subType']){const _0x57ad05=_0x5797d3['getItems']()['filter'](_0x1db8a3=>_0x1db8a3['is']('$textProxy'))['map'](_0x424f12=>_0x424f12['data']),_0x3c1e4e=this['_getSuggestionCoords'](_0x5797d3),_0xbbd68a=_0x3c1e4e['maxRow']-_0x3c1e4e['minRow']+0x1;if('insertion'==_0x5797d3['type'])return _0x57ad05['length']?{'type':'insertion','content':o(_0x1f145a,'*Insert:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xbbd68a,'\x22'+_0x57ad05['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1f145a,'*Insert:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_ROW',_0xbbd68a))};if('deletion'==_0x5797d3['type'])return _0x57ad05['length']?{'type':'deletion','content':o(_0x1f145a,'*Remove:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xbbd68a,'\x22'+_0x57ad05['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1f145a,'*Remove:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_ROW',_0xbbd68a))};}if('tableColumn'==_0x5797d3['subType']){const _0x59dc59=_0x5797d3['getItems']()['filter'](_0x3ad620=>_0x3ad620['is']('$textProxy'))['map'](_0x35fd7a=>_0x35fd7a['data']),_0x49c007=this['_getSuggestionCoords'](_0x5797d3),_0x1bcb7a=_0x49c007['maxColumn']-_0x49c007['minColumn']+0x1;if('insertion'==_0x5797d3['type'])return _0x59dc59['length']?{'type':'insertion','content':o(_0x1f145a,'*Insert:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1bcb7a,'\x22'+_0x59dc59['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1f145a,'*Insert:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_COLUMN',_0x1bcb7a))};if('deletion'==_0x5797d3['type'])return _0x59dc59['length']?{'type':'deletion','content':o(_0x1f145a,'*Remove:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1bcb7a,'\x22'+_0x59dc59['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1f145a,'*Remove:*\x20%0',o(_0x1f145a,'ELEMENT_TABLE_COLUMN',_0x1bcb7a))};}}),_0x557fc6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x292058),_0x557fc6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x292058),_0x557fc6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x38f40b),_0x557fc6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x38f40b),_0x557fc6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x25c67b),_0x557fc6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x25c67b),_0x557fc6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x581db7),_0x557fc6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x581db7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5bc281=this['editor'],_0x2b9a20=_0x5bc281['model']['document']['selection'];return(_0x23242a,_0x1e9d13)=>{_0x5bc281['model']['change'](_0x18de69=>{const {commandName:_0x136a0d,commandParams:_0x306a22}=_0x1e9d13;let _0xc19757=_0x23242a[0x0]['end']['nodeBefore'];_0x306a22&&_0x306a22[0x0]&&!0x1===_0x306a22[0x0]['forceValue']&&(_0xc19757=_0x23242a[0x0]['start']['nodeAfter']);const _0x51d914=_0x18de69['createRangeIn'](_0xc19757);if('$graveyard'==_0x51d914['root']['rootName'])return;const _0x652420=Array['from'](_0x2b9a20['getRanges']())['map'](_0x44a65e=>_0x4fb46f['fromRange'](_0x44a65e));_0x18de69['setSelection'](_0x51d914),_0x5bc281['commands']['get'](_0x136a0d)['refresh'](),_0x306a22['push']({'forceDefaultExecution':!0x0}),_0x5bc281['execute'](_0x136a0d,..._0x306a22);const _0x3e56bb=_0x652420['filter'](_0x23783c=>'$graveyard'!=_0x23783c['root']['rootName']);_0x3e56bb['length']>0x0&&_0x18de69['setSelection'](_0x3e56bb);for(const _0x421cfd of _0x652420)_0x421cfd['detach']();});};}['_getCoordsForCells'](_0x4c4baa){const _0xc942d5=this['editor']['plugins']['get']('TableUtils');let _0x2b8a3e=Number['MAX_SAFE_INTEGER'],_0x1e0f98=Number['MIN_SAFE_INTEGER'],_0x4eed99=Number['MAX_SAFE_INTEGER'],_0x9cc327=Number['MIN_SAFE_INTEGER'];for(const _0x6e0031 of _0x4c4baa){if('$graveyard'==_0x6e0031['root']['rootName'])continue;const {row:_0x29e7dc,column:_0x379fc5}=_0xc942d5['getCellLocation'](_0x6e0031),_0x36b90d=_0x6e0031['hasAttribute']('rowspan')?_0x6e0031['getAttribute']('rowspan')-0x1:0x0,_0x347a6d=_0x6e0031['hasAttribute']('colspan')?_0x6e0031['getAttribute']('colspan')-0x1:0x0;_0x2b8a3e=_0x29e7dc<_0x2b8a3e?_0x29e7dc:_0x2b8a3e,_0x1e0f98=_0x29e7dc+_0x36b90d>_0x1e0f98?_0x29e7dc+_0x36b90d:_0x1e0f98,_0x4eed99=_0x379fc5<_0x4eed99?_0x379fc5:_0x4eed99,_0x9cc327=_0x379fc5+_0x347a6d>_0x9cc327?_0x379fc5+_0x347a6d:_0x9cc327;}return{'minRow':_0x2b8a3e,'maxRow':_0x1e0f98,'minColumn':_0x4eed99,'maxColumn':_0x9cc327};}['_setupColumnsRowsFixing'](){const _0x155594=this['editor'],_0x4033af=_0x155594['plugins']['get']('TrackChangesEditing'),_0xdb448d=_0x155594['plugins']['get']('TableUtils');_0x155594['model']['document']['on']('change:data',()=>{const _0x1da5a3=Array['from'](_0x155594['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3faead,data:_0x4a0fd2}of _0x1da5a3){const {group:_0x2612c5,id:_0x5a96b5,subType:_0x595f0f}=_0x4033af['_splitMarkerName'](_0x3faead);if('suggestion'!=_0x2612c5)continue;if(null!=_0x4a0fd2['oldRange'])continue;const _0x670e47=_0x4033af['getSuggestion'](_0x5a96b5);this['_tablePostFixingSubtypes']['includes'](_0x595f0f)&&this['_tableSuggestions']['add'](_0x670e47);}},{'priority':'low'});const _0x81683e=(_0x19801f,_0x79d7fc)=>{let _0x1bc345=!0x1;const _0x39b3cc=_0x79d7fc['createRangeOn'](_0x19801f),_0x137cd6=_0x19801f['findAncestor']('table'),_0x417ecb=_0xdb448d['getCellLocation'](_0x19801f);for(const _0x25e575 of this['_tableSuggestions']){const _0x2a60f7=_0x25e575['subType'],_0x2b1560=_0x2a60f7['startsWith']('tablePaste'),_0x2d2fab=_0x2a60f7['substr'](_0x2b1560?0xa:0x5),_0x3e30ef=_0x2d2fab['toLowerCase'](),_0x2cf503=_0x3e30ef['substr'](0x0,0x3)+'span',_0x2c8487='min'+_0x2d2fab,_0x37a08c='max'+_0x2d2fab;if(!_0x25e575['isInContent'])continue;if(_0x137cd6!=_0x25e575['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x25e575['isIntersectingWithRange'](_0x39b3cc))continue;const _0xf7be17=_0x19801f['hasAttribute'](_0x2cf503)?_0x19801f['getAttribute'](_0x2cf503)-0x1:0x0,_0x44536f=this['_getSuggestionCoords'](_0x25e575),_0x2d4334=_0x44536f[_0x2c8487],_0x59a183=_0x44536f[_0x37a08c];_0x2d4334<=_0x417ecb[_0x3e30ef]&&_0x417ecb[_0x3e30ef]+_0xf7be17<=_0x59a183&&(_0x25e575['addRange'](_0x39b3cc),_0x1bc345=!0x0);}return _0x1bc345;};_0x155594['model']['document']['registerPostFixer'](_0xc6a02b=>{let _0x51e77b=!0x1;for(const _0x5a630a of _0x155594['model']['document']['differ']['getChanges']())if('insert'==_0x5a630a['type']){if('tableRow'==_0x5a630a['name']){for(const _0xcb1388 of _0x5a630a['position']['nodeAfter']['getChildren']())_0x51e77b=_0x51e77b||_0x81683e(_0xcb1388,_0xc6a02b);}else'tableCell'==_0x5a630a['name']&&(_0x51e77b=_0x51e77b||_0x81683e(_0x5a630a['position']['nodeAfter'],_0xc6a02b));}return _0x51e77b;});}['_getSuggestionCoords'](_0x284dbe){return this['_getCoordsForCells'](_0x284dbe['getRanges']()['map'](_0x21d6e7=>_0x21d6e7['start']['nodeAfter']));}}function Re(_0x40cb02){return Array['from'](new Set(_0x40cb02)['values']());}class _t extends _0x3c70aa{static get['requires'](){return[vt];}['afterInit'](){const _0x333af5=this['editor'],_0x385b27=_0x333af5['model']['document']['selection'],_0x733ec7=_0x333af5['locale'];if(!_0x333af5['plugins']['has']('TableEditing'))return;const _0x402f05=_0x333af5['plugins']['get']('TrackChangesEditing'),_0x27d73c=_0x333af5['plugins']['get']('TableUtils'),_0x59ba8c=_0x333af5['plugins']['get'](vt);_0x59ba8c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x402f05['enableCommand']('mergeTableCells',()=>{const _0x544044=_0x27d73c['getSelectionAffectedTableCells'](_0x333af5['model']['document']['selection']);_0x333af5['model']['change'](()=>{_0x402f05['markMultiRangeBlockFormat'](_0x544044,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x333af5['commands']['get']('mergeTableCells')['on']('execute',(_0x24d509,_0x3777cb)=>{_0x333af5['commands']['get']('trackChanges')['value']&&(_0x3777cb['length']>0x0&&_0x3777cb[_0x3777cb['length']-0x1]&&_0x3777cb[_0x3777cb['length']-0x1]['forceDefaultExecution']||_0x402f05['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x24d509['stop']());},{'priority':'highest'});for(const _0x1848ad of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x41b49a=_0x333af5['commands']['get'](_0x1848ad);_0x402f05['enableCommand'](_0x1848ad,()=>{const _0x326c0e=_0x333af5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x41e0b0=>_0x41e0b0['is']('element','tableCell')),_0x11d4b7=_0x41b49a['value'];_0x333af5['model']['change'](()=>{_0x402f05['markMultiRangeBlockFormat']([_0x326c0e,_0x11d4b7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xc6b75d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x205fdf=_0x333af5['commands']['get'](_0xc6b75d);_0x402f05['enableCommand'](_0xc6b75d,()=>{const _0x41020f=_0x27d73c['getSelectionAffectedTableCells'](_0x333af5['model']['document']['selection'])[0x0],_0x592ed2=_0x41020f['findAncestor']('table'),{column:_0x297ea9,row:_0x3b90bf}=_0x27d73c['getCellLocation'](_0x41020f);let _0x3d6168=[];if('horizontally'==_0x205fdf['direction']){const _0x2e5a65=_0x27d73c['createTableWalker'](_0x592ed2,{'startRow':_0x3b90bf,'endRow':_0x3b90bf,'includeAllSlots':!0x0});_0x3d6168=Array['from'](_0x2e5a65)['map'](_0x2f00a6=>_0x2f00a6['cell']);}else{const _0x2cd9b1=_0x27d73c['createTableWalker'](_0x592ed2,{'column':_0x297ea9,'includeAllSlots':!0x0});_0x3d6168=Array['from'](_0x2cd9b1)['map'](_0x4e56b4=>_0x4e56b4['cell']);}_0x333af5['model']['change'](_0x6a8cb9=>{_0x402f05['markBlockFormat'](_0x6a8cb9['createRangeOn'](_0x41020f),{'commandName':_0xc6b75d,'commandParams':[]},_0x3d6168,_0xc6b75d);});});}_0x402f05['descriptionFactory']['registerDescriptionCallback'](_0x2ae265=>{if('formatBlock'!=_0x2ae265['type']&&'formatInline'!=_0x2ae265['type'])return;const {data:_0x43d152}=_0x2ae265;return _0x43d152&&'mergeTableCells'==_0x43d152['commandName']?{'type':'format','content':o(_0x733ec7,'*Merge\x20cells*')}:void 0x0;}),_0x402f05['descriptionFactory']['registerDescriptionCallback'](_0x43f65f=>{if('formatBlock'!=_0x43f65f['type']&&'formatInline'!=_0x43f65f['type'])return;const {data:_0x49a352}=_0x43f65f;return _0x49a352?'splitTableCellVertically'==_0x49a352['commandName']?{'type':'format','content':o(_0x733ec7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x49a352['commandName']?{'type':'format','content':o(_0x733ec7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x12a612=_0x59ba8c['_acceptFormatSuggestionCallbackFactory']();for(const _0x48bc86 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x402f05['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x48bc86,'accept',_0x12a612);for(const _0x149e68 of['splitTableCellVertically','splitTableCellHorizontally'])_0x402f05['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x149e68,'accept',_0x12a612);_0x402f05['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x226da5=>{_0x333af5['model']['change'](_0x1dca79=>{const _0x2a3998=Array['from'](_0x385b27['getRanges']())['map'](_0xf30284=>_0x4fb46f['fromRange'](_0xf30284));_0x1dca79['setSelection'](_0x226da5),_0x333af5['commands']['get']('mergeTableCells')['refresh'](),_0x333af5['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x13d37a=_0x2a3998['filter'](_0x1d2c6c=>'$graveyard'!=_0x1d2c6c['root']['rootName']);_0x13d37a['length']>0x0&&_0x1dca79['setSelection'](_0x13d37a);for(const _0x4704a5 of _0x2a3998)_0x4704a5['detach']();});});for(const _0x3e3ec3 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x64d63f=_0x333af5['commands']['get'](_0x3e3ec3);_0x64d63f['on']('set:isEnabled',(_0x282921,_0xa60a27,_0x4cff3f)=>{if(_0x4cff3f){const _0x190610=_0x333af5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2ba5cd=>_0x2ba5cd['is']('element','tableCell'));this['_areMergableCells'](_0x64d63f['value'],_0x190610)||(_0x282921['return']=!0x1,_0x282921['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x497706=this['editor']['commands']['get']('mergeTableCells'),_0x2da67b=this['editor']['plugins']['get']('TableUtils');if(!_0x497706['isEnabled'])return!0x1;const _0x29ee8d=_0x2da67b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x53464c of _0x29ee8d)for(const _0x573dfc of _0x29ee8d)if(_0x53464c!=_0x573dfc&&!this['_areMergableCells'](_0x53464c,_0x573dfc))return!0x1;return!0x0;}['_areMergableCells'](_0x4905f2,_0x5ec5a2){const _0x5afbe6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4220c3=this['editor']['model']['createRangeOn'](_0x4905f2),_0x5a24d5=this['editor']['model']['createRangeOn'](_0x5ec5a2),_0xa8d9dc=new Set(),_0x39c1ec=new Set();for(const _0x136059 of _0x5afbe6['getSuggestions']())if(('insertion'==_0x136059['type']||'deletion'==_0x136059['type']||'mergeTableCells'==_0x136059['subType'])&&_0x136059['isInContent']){for(const _0x1bcd34 of _0x136059['getRanges']())_0x1bcd34['containsRange'](_0x4220c3,!0x0)&&_0xa8d9dc['add'](_0x136059['type']+':'+_0x136059['author']['id']),_0x1bcd34['containsRange'](_0x5a24d5,!0x0)&&_0x39c1ec['add'](_0x136059['type']+':'+_0x136059['author']['id']);}if(_0xa8d9dc['size']!=_0x39c1ec['size'])return!0x1;for(const _0x1c66dc of _0xa8d9dc)if(!_0x39c1ec['has'](_0x1c66dc))return!0x1;return!0x0;}}class Ct extends _0x3c70aa{static get['requires'](){return[vt];}['afterInit'](){const _0x2c1099=this['editor'];if(!_0x2c1099['plugins']['has']('TableEditing'))return;const _0x23430a=_0x2c1099['locale'],_0x2d332e=_0x2c1099['plugins']['get']('TrackChangesEditing');_0x2d332e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2d332e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2d332e['registerBlockAttribute']('headingRows'),_0x2d332e['registerBlockAttribute']('headingColumns'),_0x2d332e['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x23430a,'FORMAT_HEADER_ROW')),_0x2d332e['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x23430a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1b94bf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x395ebe=this['editor']['plugins']['get']('TableUtils'),_0x36456e=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x41b25e({showActiveMarker:_0x269050=!0x0,setDataAttribute:_0x25c0fa=!0x0}={}){return(_0x2543ab,_0x30166f,_0xaa77c4)=>{const {type:_0x3015cf,id:_0x541182}=_0x1b94bf['_splitMarkerName'](_0x30166f['markerName']),_0x2c9bba=_0x1b94bf['getSuggestion'](_0x541182),_0x4ff370=_0x2c9bba['data'];if('formatBlock'!=_0x2c9bba['type']||!_0x4ff370||'setTableColumnHeader'!=_0x4ff370['commandName'])return;if(_0x30166f['item'])return void _0x2543ab['stop']();if(!_0xaa77c4['consumable']['consume'](_0x30166f['markerRange'],_0x2543ab['name']))return;const _0x5c6c40=_0x30166f['markerRange']['start']['nodeAfter'],_0x1f7cbb=_0x30166f['markerRange']['end']['nodeBefore'],_0x5696b2=_0x5c6c40['parent']['parent'],{column:_0x95e233}=_0x395ebe['getCellLocation'](_0x5c6c40),{column:_0x3324a3}=_0x395ebe['getCellLocation'](_0x1f7cbb);for(let _0x878a61=_0x95e233;_0x878a61<=_0x3324a3;_0x878a61++){const _0x3a5535=_0x395ebe['createTableWalker'](_0x5696b2,{'column':_0x878a61,'includeAllSlots':!0x1});for(const _0x2f43ac of _0x3a5535){const _0x5db8d5=_0x2f43ac['cell'],_0x251a63=_0xaa77c4['mapper']['toViewElement'](_0x5db8d5);_0xaa77c4['writer']['addClass']('ck-suggestion-marker-'+_0x3015cf,_0x251a63),_0x25c0fa&&_0xaa77c4['writer']['setAttribute']('data-suggestion',_0x541182,_0x251a63),_0xaa77c4['mapper']['bindElementToMarker'](_0x251a63,_0x30166f['markerName']),_0x269050&&(_0x1b94bf['activeMarkers']['includes'](_0x30166f['markerName'])?_0xaa77c4['writer']['addClass']('ck-suggestion-marker--active',_0x251a63):_0xaa77c4['writer']['removeClass']('ck-suggestion-marker--active',_0x251a63));}}};}_0x1b94bf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x36456e),_0x1b94bf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x36456e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x41b25e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c335b,_0x22eea7,_0x5b5e27)=>{_0x5b5e27['options']['showSuggestionHighlights']&&_0x41b25e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4c335b,_0x22eea7,_0x5b5e27);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xbddf6d,_0x50b68e,_0x389a4b)=>{const {type:_0x297160,id:_0x158409}=_0x1b94bf['_splitMarkerName'](_0x50b68e['markerName']),_0x39c9cf=_0x1b94bf['getSuggestion'](_0x158409),_0x545246=_0x39c9cf['data'];if('formatBlock'!=_0x39c9cf['type']||!_0x545246||'setTableColumnHeader'!=_0x545246['commandName'])return;const _0x14fd68=_0x389a4b['mapper']['markerNameToElements'](_0x50b68e['markerName']);if(_0x14fd68){for(const _0x1985cb of _0x14fd68)_0x389a4b['writer']['removeClass']('ck-suggestion-marker-'+_0x297160,_0x1985cb),_0x389a4b['writer']['removeClass']('ck-suggestion-marker--active',_0x1985cb),_0x389a4b['writer']['removeAttribute']('data-suggestion',_0x1985cb),_0x389a4b['mapper']['unbindElementFromMarkerName'](_0x1985cb,_0x50b68e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57dbe5=this['editor'],_0x240281=_0x57dbe5['locale'];function _0x51392b(_0x420a9){return{'type':'format','content':o(_0x240281,'*Format:*\x20%0',_0x420a9)};}_0x57dbe5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa89217=>{if('formatBlock'!=_0xa89217['type'])return;const {data:_0x320d71}=_0xa89217;if(_0x320d71){if('setTableRowHeader'==_0x320d71['commandName']){const _0x135ccd=_0x320d71['commandParams'][0x0]['forceValue'];return _0x51392b(o(_0x240281,_0x135ccd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x320d71['commandName']){const _0x5615a7=_0x320d71['commandParams'][0x0]['forceValue'];return _0x51392b(o(_0x240281,_0x5615a7?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0xa64975=>[_0xa64975,null]));class Nt extends _0x3c70aa{static get['requires'](){return[vt];}['afterInit'](){const _0x6a36fe=this['editor'];if(!_0x6a36fe['plugins']['has']('TableClipboard'))return;const _0x219c46=_0x6a36fe['plugins']['get']('TrackChangesEditing'),_0x3db237=_0x6a36fe['plugins']['get']('TableUtils'),_0x506dba=_0x6a36fe['plugins']['get'](vt),_0x569205=_0x6a36fe['plugins']['get']('TableClipboard');_0x506dba['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x6a36fe['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x6a36fe['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x42d72b=null;_0x6a36fe['model']['on']('insertContent',(_0x4e14b1,_0x242d54)=>{const [_0x2433d0,_0x4bd0da]=_0x242d54,_0x572cc7=_0x242d54[_0x242d54['length']-0x1];_0x572cc7&&_0x572cc7['forceDefaultExecution']||_0x219c46['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x48c672,_0x44e010,_0x4605d2,_0x4ee8aa,_0x580a85){if(_0x44e010&&!_0x44e010['is']('documentSelection'))return!0x1;const _0x3e1ef7=_0x580a85['getTableIfOnlyTableInContent'](_0x48c672,_0x4605d2);if(!_0x3e1ef7||!Ae(_0x3e1ef7,void 0x0,_0x4ee8aa))return!0x1;const _0x3f7de7=_0x4ee8aa['getSelectionAffectedTableCells'](_0x4605d2['document']['selection']);if(!_0x3f7de7['length'])return!0x1;const _0x43796f=_0x3f7de7[0x0]['findAncestor']('table'),_0x41ad98=_0x4ee8aa['getRowIndexes'](_0x3f7de7),_0x227f17=_0x4ee8aa['getColumnIndexes'](_0x3f7de7),_0x45ddd3={'startRow':_0x41ad98['first'],'endRow':_0x41ad98['last'],'startColumn':_0x227f17['first'],'endColumn':_0x227f17['last']};return 0x1==_0x3f7de7['length']&&(_0x45ddd3['endRow']+=_0x4ee8aa['getRows'](_0x3e1ef7)-0x1,_0x45ddd3['endColumn']+=_0x4ee8aa['getColumns'](_0x3e1ef7)-0x1),Ae(_0x43796f,_0x45ddd3,_0x4ee8aa);}(_0x2433d0,_0x4bd0da,_0x6a36fe['model'],_0x3db237,_0x569205)&&(_0x4e14b1['stop'](),_0x42d72b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x6a36fe['model']['change'](()=>{_0x6a36fe['model']['insertContent'](_0x242d54[0x0],_0x242d54[0x1],_0x242d54[0x2],{'forceDefaultExecution':!0x0});const _0x3e8c1f=_0x1cdff5(),{rowInsertionRanges:_0x4893c4,columnInsertionRanges:_0x3752c7,insertionRanges:_0x46c67f,deletionRanges:_0x41e3ac,cells:_0x13260f}=_0x42d72b;_0x4893c4['length']&&_0x219c46['markMultiRangeInsertion'](_0x4893c4,'tablePasteRow',{'tablePasteChainId':_0x3e8c1f}),_0x3752c7['length']&&_0x219c46['markMultiRangeInsertion'](_0x3752c7,'tablePasteColumn',{'tablePasteChainId':_0x3e8c1f}),_0x46c67f['length']&&(_0x219c46['markMultiRangeInsertion'](_0x46c67f,'tablePaste',{'tablePasteChainId':_0x3e8c1f,'skipNestingCheck':!0x0}),_0x46c67f['forEach'](_0x456033=>_0x456033['detach']?.())),_0x41e3ac['length']&&(_0x219c46['markMultiRangeDeletion'](_0x41e3ac,'tablePaste',{'tablePasteChainId':_0x3e8c1f,'skipNestingCheck':!0x0}),_0x41e3ac['forEach'](_0xba6fe2=>_0xba6fe2['detach']?.()));const _0x210e44=_0x219c46['markMultiRangeBlockFormat'](_0x13260f['map'](({element:_0x3e4124})=>_0x3e4124),{'formatGroupId':_0x1cdff5()},[],'tablePasteCell',{'tablePasteChainId':_0x3e8c1f});if(_0x210e44){const _0x1df6da=_0x210e44['getMarkers'](),_0x208248=[];for(const {element:_0x589bd3,attributes:_0x1c22f6}of _0x13260f){if(!_0x1c22f6)continue;const _0x839f60=_0x6a36fe['model']['createRangeOn'](_0x589bd3),_0x2bedfc=_0x1df6da['find'](_0x5cb31=>_0x5cb31['getRange']()['isEqual'](_0x839f60));_0x2bedfc&&_0x208248['push']([_0x2bedfc['name'],_0x1c22f6]);}_0x208248['length']&&_0x210e44['setAttribute']('markerAttributes',Object['fromEntries'](_0x208248));}_0x42d72b=null;}));},{'priority':_0x2e7237['high']+0xa}),_0x6a36fe['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x400553,_0x24b050)=>{const [_0x171c0d,_0x1fa247,,_0x19b968]=_0x24b050;if(!_0x42d72b)return;_0x400553['stop']();const _0x1a616a=_0x171c0d['cell'],_0x5a4de9=_0x1fa247,_0x1c65a3=je(_0x1a616a),_0x7dee4f=je(_0x5a4de9);_0x400553['return']=_0x1a616a;let _0x7da853=null,_0x418a9f=null;if(_0x7dee4f||_0x1c65a3){if(_0x1c65a3&&!_0x7dee4f){_0x19b968['remove'](_0x1a616a['getChild'](0x0));for(const _0x2e013f of Array['from'](_0x5a4de9['getChildren']()))_0x19b968['insert'](_0x2e013f,_0x1a616a,'end');const _0x291975=_0x42d72b['rowInsertionIndexes']['includes'](_0x171c0d['row']),_0x5b236c=_0x42d72b['columnInsertionIndexes']['includes'](_0x171c0d['column']);_0x291975||_0x5b236c||(_0x7da853=_0x4fb46f['fromRange'](_0x19b968['createRangeIn'](_0x1a616a)));}else _0x7dee4f&&!_0x1c65a3&&(_0x418a9f=_0x19b968['createRangeIn'](_0x1a616a));}else{const _0x3eec32=_0x19b968['createElement']('tableCellSuggestion'),_0x3ae939=_0x19b968['createElement']('tableCellSuggestion');_0x19b968['wrap'](_0x19b968['createRangeIn'](_0x1a616a),_0x3ae939),_0x19b968['insert'](_0x3eec32,_0x1a616a,0x0);for(const _0x205b14 of Array['from'](_0x5a4de9['getChildren']()))_0x19b968['insert'](_0x205b14,_0x3eec32,'end');_0x7da853=_0x4fb46f['fromRange'](_0x19b968['createRangeOn'](_0x3eec32)),_0x418a9f=_0x4fb46f['fromRange'](_0x19b968['createRangeOn'](_0x3ae939));}const _0x294e76=Array['from'](_0x5a4de9['getAttributes']())['filter'](([_0x35f570])=>we['includes'](_0x35f570));_0x42d72b['cells']['push']({'element':_0x1a616a,'attributes':_0x294e76['length']?Object['fromEntries'](_0x294e76):null}),_0x7da853&&_0x42d72b['insertionRanges']['push'](_0x7da853),_0x418a9f&&_0x42d72b['deletionRanges']['push'](_0x418a9f);},{'priority':'high'}),_0x3db237['on']('insertColumns',(_0x59cf90,_0x56f684)=>{const [_0x21c6d1,_0x4eb3c9={}]=_0x56f684;if(!_0x42d72b)return;const _0x3c5c5a=_0x4eb3c9['at']||0x0,_0x4ba6ef=_0x4eb3c9['columns']||0x1;_0x42d72b['columnInsertionIndexes']=new Array(_0x4ba6ef)['fill'](_0x3c5c5a)['map']((_0x1c9c55,_0x30a3c3)=>_0x1c9c55+_0x30a3c3);for(const {cell:_0x52e93e}of _0x3db237['createTableWalker'](_0x21c6d1,{'startColumn':_0x3c5c5a,'endColumn':_0x3c5c5a+_0x4ba6ef-0x1}))_0x42d72b['columnInsertionRanges']['push'](_0x6a36fe['model']['createRangeOn'](_0x52e93e));},{'priority':'low'}),_0x3db237['on']('insertRows',(_0x2bd0aa,_0x23bb43)=>{const [_0x388155,_0x2e49fc={}]=_0x23bb43;if(!_0x42d72b)return;const _0x510479=_0x2e49fc['at']||0x0,_0x1a70a5=_0x2e49fc['rows']||0x1;_0x42d72b['rowInsertionIndexes']=new Array(_0x1a70a5)['fill'](_0x510479)['map']((_0x1fd26f,_0x20ed24)=>_0x1fd26f+_0x20ed24);for(const {cell:_0x2683a8}of _0x3db237['createTableWalker'](_0x388155,{'startRow':_0x510479,'endRow':_0x510479+_0x1a70a5-0x1}))_0x42d72b['rowInsertionRanges']['push'](_0x6a36fe['model']['createRangeOn'](_0x2683a8));},{'priority':'low'}),_0x219c46['descriptionFactory']['registerDescriptionCallback'](_0x2758e8=>{if(_0x2758e8['subType']&&_0x2758e8['subType']['startsWith']('tablePaste'))return _0x2758e8['previous']?{}:{'type':'insertion','content':o(_0x6a36fe['locale'],'*Replace\x20table\x20cells*')};});const _0x56aa49=()=>!0x1;for(const _0x677a5b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x219c46['_suggestionFactory']['registerCustomCallback']('insertion',_0x677a5b,'join',_0x56aa49),_0x219c46['_suggestionFactory']['registerCustomCallback']('deletion',_0x677a5b,'join',_0x56aa49),_0x219c46['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x677a5b,'join',_0x56aa49);_0x219c46['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x56aa49),_0x219c46['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5c6638,_0x459f77,_0xc411d)=>{const _0x175ae7=_0x5c6638['map'](_0x3bc78b=>_0x3bc78b['getContainedElement']())['filter'](_0x5f0bc9=>_0x5f0bc9),_0x113b54=new Map(_0x175ae7['map'](_0x524266=>[_0x524266,null]));if(_0x42d72b){for(const {element:_0x11267d,attributes:_0x3c7c05}of _0x42d72b['cells'])_0x3c7c05&&_0x113b54['set'](_0x11267d,_0x3c7c05);}else{if(_0xc411d&&_0xc411d['markerAttributes'])for(const [_0x14bce6,_0x803811]of Object['entries'](_0xc411d['markerAttributes'])){const _0x18dac9=_0x6a36fe['model']['markers']['get'](_0x14bce6),_0x23ea63=_0x18dac9?_0x18dac9['getRange']()['getContainedElement']():null;_0x23ea63&&_0x113b54['set'](_0x23ea63,_0x803811);}}_0x6a36fe['model']['change'](_0x13bfe0=>{for(const [_0x33d63c,_0x21735c]of _0x113b54)_0x13bfe0['setAttributes']({...ve,..._0x21735c},_0x33d63c);});});const _0x35a3ec=(_0x173402,_0x12db2c)=>{_0x219c46['_suggestionFactory']['registerCustomCallback'](_0x173402,'tablePaste',_0x12db2c,(_0x40a238,_0x407414,_0x320959)=>{_0x6a36fe['model']['change'](_0x31ded5=>{const _0x1baaad=[];for(const _0x124380 of _0x40a238){const _0x23f926=_0x124380['start']['nodeAfter'];_0x23f926['is']('element','tableCellSuggestion')&&_0x1baaad['push'](_0x23f926);}_0x219c46['_suggestionFactory']['getSuggestionCallback'](_0x173402,null,_0x12db2c)(_0x40a238,_0x407414,_0x320959);for(const _0x1b8008 of _0x1baaad)'$graveyard'!=_0x1b8008['root']['rootName']&&_0x31ded5['unwrap'](_0x1b8008);});});};_0x35a3ec('insertion','accept'),_0x35a3ec('insertion','discard'),_0x35a3ec('deletion','accept'),_0x35a3ec('deletion','discard'),_0x219c46['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3f372e=>{const _0x35fc80=_0x3f372e['map'](_0x5bbf36=>_0x5bbf36['getContainedElement']()),_0x569d34=_0x35fc80[0x0]['findAncestor']('table'),{minRow:_0x1b1929,maxRow:_0x159678}=_0x506dba['_getCoordsForCells'](_0x35fc80);_0x3db237['removeRows'](_0x569d34,{'at':_0x1b1929,'rows':_0x159678-_0x1b1929+0x1});}),_0x219c46['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3b70d4=>{const _0x1b5e61=_0x3b70d4['map'](_0x428827=>_0x428827['getContainedElement']()),_0x37b268=_0x1b5e61[0x0]['findAncestor']('table'),{minColumn:_0x3b453a,maxColumn:_0x4a8c00}=_0x506dba['_getCoordsForCells'](_0x1b5e61);_0x3db237['removeColumns'](_0x37b268,{'at':_0x3b453a,'columns':_0x4a8c00-_0x3b453a+0x1});});const _0x35bcfc=(_0x1b7ce4,_0x2e6ea1)=>{if(!_0x2e6ea1['subType']||!_0x2e6ea1['subType']['startsWith']('tablePaste'))return;const _0x2d488d=_0x2e6ea1['attributes']['tablePasteChainId'],_0x16dc05=_0x219c46['getSuggestions']()['filter'](_0x48397b=>_0x48397b['isInContent']&&_0x48397b['attributes']&&_0x48397b['attributes']['tablePasteChainId']==_0x2d488d);_0x16dc05['length']&&_0x2e6ea1['getAllAdjacentSuggestions']()['length']!=_0x16dc05['length']&&_0x16dc05['reduce']((_0x2cfb6b,_0x5cd27a)=>(_0x2cfb6b['next']=_0x5cd27a,_0x5cd27a['previous']=_0x2cfb6b,_0x5cd27a));};function _0x3c5be3(_0x4bd5a9,_0xb1a62=!0x0){const {id:_0x40a590,authorId:_0x2e69f0}=_0x219c46['_splitMarkerName'](_0x4bd5a9['markerName']),_0x33b4ad=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5b6c76=_0x219c46['activeMarkers']['includes'](_0x4bd5a9['markerName']);return _0x5b6c76&&_0x33b4ad['push']('ck-suggestion-marker--active'),{'classes':_0x33b4ad,'attributes':{'data-suggestion':_0x40a590,'data-author-id':_0x2e69f0},'priority':_0x5b6c76&&_0xb1a62?0xbc2:0xbb8};}_0x219c46['on']('suggestionLoaded',_0x35bcfc,{'priority':'high'}),_0x219c46['on']('suggestionUnloaded',_0x35bcfc,{'priority':'high'}),_0x6a36fe['model']['document']['registerPostFixer'](()=>{let _0x5b40a2=!0x1;const _0x2b7b8e=Array['from'](_0x6a36fe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48e318,data:_0x23b864}of _0x2b7b8e){const {group:_0xac20d9,type:_0x86b44,id:_0x4ca7a4}=_0x219c46['_splitMarkerName'](_0x48e318);if('suggestion'!=_0xac20d9||'deletion'!=_0x86b44||_0x23b864['oldRange'])continue;if(!_0x219c46['hasSuggestion'](_0x4ca7a4))continue;const _0x5749cc=_0x219c46['getSuggestion'](_0x4ca7a4)['getRanges'](),_0x5530bc=_0x6a36fe['plugins']['get']('Users')['me'];for(const _0x544c96 of _0x219c46['getSuggestions']()){if(!_0x544c96['isInContent']||_0x544c96['author']!=_0x5530bc)continue;if('formatBlock'!=_0x544c96['type']||'tablePasteCell'!=_0x544c96['subType'])continue;if(_0x544c96['getRanges']()['every'](_0x1f2717=>_0x5749cc['some'](_0x37131e=>_0x37131e['containsRange'](_0x1f2717,!0x0)))){for(const _0x1cdee9 of _0x544c96['getAllAdjacentSuggestions']())_0x1cdee9['isInContent']&&(_0x1cdee9['discard'](),_0x5b40a2=!0x0);}}}return _0x5b40a2;}),_0x6a36fe['model']['document']['registerPostFixer'](_0x188d79=>{const _0x5dd870=_0x6a36fe['commands']['get']('redo');if(!_0x5dd870||!_0x5dd870['_createdBatches']['has'](_0x188d79['batch']))return!0x1;let _0x2f4a1a=!0x1;const _0x4eb3a8=_0x6a36fe['plugins']['get']('Users')['me'],_0x44e42e=_0x6a36fe['model']['document']['differ']['getChanges'](),_0x317a1a=Array['from'](_0x6a36fe['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xc6405a,data:_0xf34eb1})=>{const {group:_0x203a14,subType:_0x56c4f9,authorId:_0x10cf20}=_0x219c46['_splitMarkerName'](_0xc6405a);return'suggestion'==_0x203a14&&'tablePaste'==_0x56c4f9&&_0x10cf20==_0x4eb3a8['id']&&!_0xf34eb1['oldRange'];});for(const _0x1f7419 of _0x44e42e){if('insert'!=_0x1f7419['type']||'tableCellSuggestion'!=_0x1f7419['name']||0x1!=_0x1f7419['length'])continue;const _0x395e6d=_0x188d79['createRange'](_0x1f7419['position'],_0x1f7419['position']['getShiftedBy'](0x1));if(!_0x317a1a['find'](({data:_0x5494f1})=>_0x5494f1['newRange']['isEqual'](_0x395e6d))){for(const {name:_0x35212a,data:_0x406bcc}of _0x317a1a)if(_0x395e6d['containsRange'](_0x406bcc['newRange'])){_0x188d79['updateMarker'](_0x35212a,{'range':_0x395e6d}),_0x2f4a1a=!0x0;break;}}}return _0x2f4a1a;}),_0x6a36fe['model']['document']['registerPostFixer'](_0x472df7=>{let _0x2fa87a=!0x1;const _0x34cf13=_0x6a36fe['plugins']['get']('Users')['me'],_0x1108e3=_0x219c46['getSuggestions']()['filter'](_0x25f3cd=>_0x25f3cd['isInContent']&&_0x25f3cd['author']==_0x34cf13),_0x479e35=new Set(),_0x188006=new Set();for(const _0x5c176b of _0x1108e3)if('tablePaste'==_0x5c176b['subType'])for(const _0x520db5 of _0x5c176b['getMarkers']()){const _0xf0a08d=_0x520db5['getRange']()['getContainedElement']();if(_0xf0a08d){if(_0xf0a08d['is']('element','tableCellSuggestion')&&je(_0xf0a08d)){_0x5c176b['removeMarker'](_0x520db5['name']),_0x479e35['add'](_0xf0a08d),_0x2fa87a=!0x0;const _0x4af753=_0xf0a08d['nextSibling'],_0x141273=_0xf0a08d['previousSibling'],_0x42a7da=_0x4af753&&_0x4af753['is']('element','tableCellSuggestion'),_0x22ac9c=_0x141273&&_0x141273['is']('element','tableCellSuggestion');_0x42a7da&&!_0x479e35['has'](_0x4af753)&&_0x188006['add'](_0x4af753),_0x22ac9c&&!_0x479e35['has'](_0x141273)&&_0x188006['add'](_0x141273);}else _0xf0a08d['is']('element','paragraph')&&_0xf0a08d['isEmpty']&&(_0x5c176b['removeMarker'](_0x520db5['name']),_0x2fa87a=!0x0);}}else{if('tablePasteCell'==_0x5c176b['subType']){if(!_0x5c176b['attributes']||!_0x5c176b['attributes']['tablePasteChainId'])continue;const _0x4d6303=_0x5c176b['attributes']['markerAttributes'];if(_0x4d6303&&Object['keys'](_0x4d6303)['length'])continue;const _0x34ff39=_0x5c176b['attributes']['tablePasteChainId'];let _0x2e0b08=!0x0,_0x3d96c0=!0x0;for(const _0x6bf105 of _0x1108e3)if(_0x6bf105['subType']&&_0x6bf105['subType']['startsWith']('tablePaste')){if(!_0x6bf105['attributes']['tablePasteChainId']){_0x3d96c0=!0x1;break;}if(_0x6bf105['id']!=_0x5c176b['id']&&_0x6bf105['attributes']['tablePasteChainId']==_0x34ff39){_0x2e0b08=!0x1;break;}}_0x3d96c0&&_0x2e0b08&&(_0x5c176b['removeMarkers'](),_0x2fa87a=!0x0);}}for(const _0x5923e9 of _0x479e35)_0x472df7['remove'](_0x5923e9);for(const _0x17bf21 of _0x188006)_0x472df7['unwrap'](_0x17bf21);return _0x2fa87a;}),_0x6a36fe['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x94bc24=>_0x3c5be3(_0x94bc24),'converterPriority':'high'}),_0x6a36fe['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x112305,_0x2472ed)=>_0x2472ed['options']['showSuggestionHighlights']?_0x3c5be3(_0x112305,!0x1):null,'converterPriority':'high'});const _0x57a4e0=_0x6a36fe['editing']['view'];this['listenTo'](_0x57a4e0['document'],'clipboardOutput',(_0x360528,_0xe3ea48)=>{const _0x89bb74=[];for(const _0x1e2117 of _0x57a4e0['createRangeIn'](_0xe3ea48['content'])['getItems']())_0x1e2117['is']('element','suggestion-td')&&_0x89bb74['push'](_0x1e2117);_0x57a4e0['change'](_0x2017d5=>{for(const _0x415fa7 of _0x89bb74)_0x2017d5['move'](_0x2017d5['createRangeIn'](_0x415fa7),_0x2017d5['createPositionBefore'](_0x415fa7)),_0x2017d5['remove'](_0x415fa7);});});}}function je(_0x8d79f9){if(_0x8d79f9['isEmpty'])return!0x0;const _0x1a5421=_0x8d79f9['getChild'](0x0);return _0x1a5421['is']('element','paragraph')&&_0x1a5421['isEmpty'];}function Ae(_0x2a1f66,_0x41d52b={},_0x385f39){for(const {isAnchor:_0x33aa58,cellHeight:_0x2eac8e,cellWidth:_0x2d6657}of _0x385f39['createTableWalker'](_0x2a1f66,{'includeAllSlots':!0x0,..._0x41d52b}))if(!_0x33aa58||0x1!=_0x2eac8e||0x1!=_0x2d6657)return!0x1;return!0x0;}class Dt extends _0x3c70aa{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5056bd=this['editor']['plugins']['get']('TrackChangesEditing');_0x5056bd['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5056bd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5056bd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5056bd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5056bd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5056bd['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5d1960,_0x29a565){const _0x15ade2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a4591=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2ed94f=_0x29a565['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x56aa18=_0x4a4591['getColumnGroupElement'](_0x2ed94f);let _0x3e27d4=_0x56aa18?_0x4a4591['getTableColumnsWidths'](_0x56aa18):null,_0x44e61d=_0x2ed94f['getAttribute']('tableWidth')||null;const _0x257c1b=_0x29a565['tableWidth']||_0x44e61d,_0xfe9fb=_0x29a565['columnWidths']||_0x3e27d4,_0xb56fe3=this['editor']['plugins']['get']('Users')['me'];for(const _0x45fded of _0x15ade2['getSuggestions']()){const _0x30f193=_0x45fded['getContainedElement']();if('resizeTable'===_0x45fded['subType']&&_0x30f193===_0x2ed94f){_0x45fded['author']!==_0xb56fe3&&_0x45fded['discard']();const _0x524653=_0x45fded['data']['commandParams'];_0x44e61d=_0x524653[0x0]['tableWidth'],_0x3e27d4=_0x524653[0x0]['columnWidths'];break;}}_0x5d1960({'table':_0x2ed94f,'tableWidth':_0x257c1b,'columnWidths':_0xfe9fb}),_0x15ade2['markBlockFormat'](_0x2ed94f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x44e61d,'columnWidths':_0x3e27d4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2a971c){if('formatBlock'!=_0x2a971c['type']&&'formatInline'!=_0x2a971c['type'])return;const {data:_0x319aae}=_0x2a971c;if(_0x319aae&&'resizeTable'===_0x319aae['formatGroupId']){const _0x565a4a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x565a4a)};}}}class Mt extends _0x3c70aa{['afterInit'](){const _0x162e78=this['editor'];_0x162e78['plugins']['has']('Template')&&_0x162e78['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x3c70aa{['afterInit'](){const _0x46e9f7=this['editor'];if(!_0x46e9f7['commands']['get']('insertTableOfContents'))return;_0x46e9f7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1e45c3=_0x46e9f7['plugins']['get']('TrackChangesEditing'),_0xdcfcb6=_0x46e9f7['locale'];_0x1e45c3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1ec3a8=>o(_0xdcfcb6,'ELEMENT_TABLE_OF_CONTENTS',_0x1ec3a8));}}class Bt extends _0x3c70aa{['afterInit'](){const _0x2674ae=this['editor'];if(!_0x2674ae['plugins']['has']('Title'))return;const _0x5b3980=_0x2674ae['plugins']['get']('TrackChangesEditing');_0x5b3980['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2674ae['locale'],'ELEMENT_TITLE')),_0x2674ae['model']['document']['registerPostFixer'](_0x28a00e=>{let _0x263e40=!0x1;const _0x2fc797=Array['from'](_0x2674ae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58d22a,data:_0x441e07}of _0x2fc797){const {group:_0x41b356}=_0x5b3980['_splitMarkerName'](_0x58d22a);if('suggestion'!==_0x41b356||!_0x441e07['newRange'])continue;const _0x463929=_0x441e07['newRange'],_0x5acc9d=_0x463929['end']['nodeBefore'];if(!_0x5acc9d||!_0x5acc9d['is']('element','title-content'))continue;if(!_0x463929['start']['isTouching'](_0x463929['end']))continue;const _0x38b832=_0x2674ae['model']['schema']['getNearestSelectionRange'](_0x463929['end'],'forward');if(_0x38b832&&_0x38b832['isCollapsed']){const _0x4195ee=_0x28a00e['createRange'](_0x463929['start'],_0x38b832['start']);_0x4195ee['isEqual'](_0x463929)||(_0x28a00e['updateMarker'](_0x58d22a,{'range':_0x4195ee}),_0x263e40=!0x0);}_0x263e40||(_0x28a00e['removeMarker'](_0x58d22a),_0x263e40=!0x0);}return _0x263e40;});}}class Ot extends _0x3c70aa{['afterInit'](){const _0xab5c80=this['editor'],_0x31764f=_0xab5c80['plugins']['get']('TrackChangesEditing');_0xab5c80['plugins']['has']('UndoEditing')&&(_0x31764f['enableCommand']('undo'),_0x31764f['enableCommand']('redo'));}}class Rt extends _0x3c70aa{static get['requires'](){return[vt];}['afterInit'](){const _0x3f2881=this['editor'];if(!_0x3f2881['plugins']['has']('TableCaptionEditing'))return;_0x3f2881['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x3c70aa{['tableProperties'];['tableCellProperties'];constructor(_0x5d99ba){super(_0x5d99ba),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2ea044=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xa3b446 of this['tableProperties'])_0x2ea044['enableCommand'](_0xa3b446,(_0x2cc0ff,_0xc8f829)=>{const _0x5ed987=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xa3b446,[_0x5ed987],this['tableProperties'],'tableProperties',_0x2cc0ff,_0xc8f829);});_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2ea044['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x218c08,_0x336b20)=>this['handleDiscardAction'](this['tableProperties'],_0x218c08,_0x336b20)),_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x54bb15 of this['tableCellProperties'])_0x2ea044['enableCommand'](_0x54bb15,(_0x2c5b77,_0x5348c2)=>{const _0x71aa71=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x54bb15,_0x71aa71,this['tableCellProperties'],'tableCellProperties',_0x2c5b77,_0x5348c2);});_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2ea044['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4e1883,_0x423f7d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4e1883,_0x423f7d)),_0x2ea044['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2ea044['descriptionFactory']['registerDescriptionCallback'](_0x2fc64a=>this['handleSuggestionDescription'](_0x2fc64a));}['_handlePropertyChange'](_0x2301a9,_0x1c8d73,_0x27adcd,_0x192052,_0x46bd5f,_0x4ac5f4){const _0x19bfe9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4ac5f4['batch'],()=>{for(const _0x14108e of _0x1c8d73){if(this['_getSuggestion'](_0x14108e,_0x192052))_0x46bd5f(_0x4ac5f4);else{const _0xb2a572={};for(const _0x396795 of _0x27adcd){const _0x1eb906=_0x14108e['getAttribute'](_0x396795);void 0x0!==_0x1eb906&&(_0xb2a572[_0x396795]=_0x1eb906);}_0x46bd5f(_0x4ac5f4),_0x19bfe9['markBlockFormat'](_0x14108e,{'commandParams':[_0xb2a572]},[],_0x192052);}}});}['handleDiscardAction'](_0x1c1a0a,_0xe9773b,_0x164cdf){const _0x5b09b5=_0xe9773b[0x0]['start']['nodeAfter'],_0x13a173=_0x164cdf['commandParams'][0x0];this['editor']['model']['change'](_0x28589f=>{for(const _0x254634 of _0x1c1a0a)void 0x0!==_0x13a173[_0x254634]?_0x28589f['setAttribute'](_0x254634,_0x13a173[_0x254634],_0x5b09b5):_0x28589f['removeAttribute'](_0x254634,_0x5b09b5);});}['handleSuggestionDescription'](_0x3e281a){if(_0x3e281a['data'])switch(_0x3e281a['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'](_0x2df2e8,_0x2daf98){const _0x3eff34=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5a3fab of _0x3eff34['getSuggestions']({'skipNotAttached':!0x0})){const _0x20c407=_0x5a3fab['getContainedElement']();if(_0x5a3fab['subType']===_0x2daf98&&_0x20c407===_0x2df2e8)return _0x5a3fab;}return null;}}const m='$elementName';class p extends _0x3c70aa{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x561e78,_0x4b0c5c,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19345e){super(_0x19345e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x510523,_0x570ffc,_0x24b50e,_0x35eba3)=>{this['_model']['change'](()=>{for(const _0x4fa2eb of[..._0x35eba3,..._0x24b50e])this['_model']['markers']['has'](_0x4fa2eb)&&_0x19345e['editing']['reconvertMarker'](_0x4fa2eb);});}),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']=_0x19345e['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(),_0x19345e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x19345e['config']['get']('trackChanges.trackFormatChanges'),_0x19345e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x19345e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x19345e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xed6412=this['editor'],_0x256a59=(_0x4b5e7c,_0x50ec48)=>{if('attribute'!=_0x4b5e7c)return'ck-suggestion-marker-'+_0x4b5e7c;const _0x2916d4=_0x50ec48['split']('|')[0x0];return this['_isBlockAttribute'](_0x2916d4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xed6412['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1ceec6=>{const {id:_0x34f47d,authorId:_0x2ada34,type:_0x1a3479,subType:_0x25b9ca}=this['_splitMarkerName'](_0x1ceec6['markerName']),_0xe1ddd3=['ck-suggestion-marker',_0x256a59(_0x1a3479,_0x25b9ca)];let _0x1b7696=0xbb8;return this['activeMarkers']['includes'](_0x1ceec6['markerName'])&&(_0xe1ddd3['push']('ck-suggestion-marker--active'),_0x1b7696=0xbc2),'deletion'==_0x1a3479&&(_0x1b7696+=0x5),{'classes':_0xe1ddd3,'attributes':{'data-suggestion':_0x34f47d,'data-author-id':_0x2ada34},'priority':_0x1b7696};}}),_0xed6412['conversion']['for']('dataDowncast')['add'](_0x45023a=>{_0x45023a['on']('addMarker:suggestion',(_0x27dd10,_0x5cd1d7,_0x4db6e5)=>{if(!_0x4db6e5['options']['showSuggestionHighlights'])return;const _0x48389e=_0x5cd1d7['item'];if(!_0x48389e)return;const _0x1d9f78=_0x4db6e5['mapper']['toViewElement'](_0x48389e);_0xed6412['model']['schema']['isObject'](_0x48389e)&&_0x1d9f78&&!_0x1d9f78['getCustomProperty']('widget')&&_0x1d9f78['is']('containerElement')&&_0xf63f8c(_0x1d9f78,_0x4db6e5['writer']);},{'priority':'high'});}),_0xed6412['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x23b92c,_0x4f8b32)=>{if(!_0x4f8b32['options']['showSuggestionHighlights'])return null;const {type:_0xa5e26,subType:_0x4ce9ce}=this['_splitMarkerName'](_0x23b92c['markerName']);return{'classes':['ck-suggestion-marker',_0x256a59(_0xa5e26,_0x4ce9ce)],'priority':0xbb8};}});const _0x295a85=({showActiveMarkers:_0x2458e6=!0x0,isAttributeSuggestion:_0x5f58e6=!0x1}={})=>(_0x2865b9,_0xc10443,_0x5a396b)=>{if(!_0xc10443['item'])return;const {id:_0x3eda28,authorId:_0x262371}=this['_splitMarkerName'](_0xc10443['markerName']);if(_0x5f58e6){const _0x2fee3d=this['_suggestions']['get'](_0x3eda28),_0x195d68=this['_getAttributeKey'](_0x2fee3d);if(!this['_isBlockAttribute'](_0x195d68))return;}if(_0xc10443['item']['is']('selection'))return void _0x5a396b['consumable']['consume'](_0xc10443['item'],_0x2865b9['name']);const _0x1e23e5=_0x5a396b['mapper']['toViewElement'](_0xc10443['item']);if(_0xc10443['item']['is']('element')&&_0xed6412['model']['schema']['isBlock'](_0xc10443['item'])&&!_0x1e23e5['getCustomProperty']('addHighlight')){_0x5a396b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1e23e5),_0x5a396b['writer']['setAttribute']('data-suggestion',_0x3eda28,_0x1e23e5),_0x5a396b['writer']['setAttribute']('data-author-id',_0x262371,_0x1e23e5),_0x5a396b['mapper']['bindElementToMarker'](_0x1e23e5,_0xc10443['markerName']),_0x2458e6&&(this['activeMarkers']['includes'](_0xc10443['markerName'])?_0x5a396b['writer']['addClass']('ck-suggestion-marker--active',_0x1e23e5):_0x5a396b['writer']['removeClass']('ck-suggestion-marker--active',_0x1e23e5));for(const _0x4cc2da of _0xed6412['model']['createRangeIn'](_0xc10443['item'])['getItems']())_0x5a396b['consumable']['consume'](_0x4cc2da,_0x2865b9['name']);_0x5a396b['consumable']['consume'](_0xc10443['item'],_0x2865b9['name']);}};_0xed6412['conversion']['for']('dataDowncast')['add'](_0x5c4615=>{_0x5c4615['on']('addMarker:suggestion:formatBlock',(_0x546314,_0x3e5ff2,_0x5e697e)=>{_0x5e697e['options']['showSuggestionHighlights']&&_0x295a85({'showActiveMarkers':!0x1})(_0x546314,_0x3e5ff2,_0x5e697e);},{'priority':'highest'});}),_0xed6412['conversion']['for']('dataDowncast')['add'](_0x2a7e77=>{_0x2a7e77['on']('addMarker:suggestion:attribute',(_0x433553,_0x3fe439,_0x4fd54f)=>{_0x4fd54f['options']['showSuggestionHighlights']&&_0x295a85({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x433553,_0x3fe439,_0x4fd54f);},{'priority':'highest'});}),_0xed6412['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3bf830,_0x2f5de3)=>_0x2f5de3['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3bf830['substr'](0xb)}}),_0xed6412['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3475cd,{writer:_0x1b06ac})=>{let _0x26dc89='suggestion:'+_0x3475cd['getAttribute']('suggestion-type')+':'+_0x3475cd['getAttribute']('id');return _0x3475cd['getAttribute']('marker-count')&&(_0x26dc89+=':'+_0x3475cd['getAttribute']('marker-count')),_0x1b06ac['createElement']('$marker',{'data-name':_0x26dc89});}}),_0xed6412['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xed6412['conversion']['for']('editingDowncast')['add'](_0x5f05f3=>{_0x5f05f3['on']('addMarker:suggestion:formatBlock',_0x295a85(),{'priority':'high'});}),_0xed6412['conversion']['for']('editingDowncast')['add'](_0x414368=>{_0x414368['on']('addMarker:suggestion:attribute',_0x295a85({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xed6412['conversion']['for']('editingDowncast')['add'](_0x51d474=>{_0x51d474['on']('removeMarker:suggestion:formatBlock',(_0x4aaa6b,_0x955a05,_0x212408)=>{const _0x7891be=_0x212408['mapper']['markerNameToElements'](_0x955a05['markerName']);if(_0x7891be){for(const _0x16876e of _0x7891be)_0x16876e['getCustomProperty']('addHighlight')||(_0x212408['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x16876e),_0x212408['writer']['removeAttribute']('data-suggestion',_0x16876e),_0x212408['writer']['removeAttribute']('data-author-id',_0x16876e),_0x212408['mapper']['unbindElementFromMarkerName'](_0x16876e,_0x955a05['markerName']));}},{'priority':'high'});}),_0xed6412['conversion']['for']('editingDowncast')['add'](_0x3d7f28=>{_0x3d7f28['on']('removeMarker:suggestion:attribute',(_0x5a64c7,_0x100b12,_0x2aceb7)=>{const _0x4d345d=_0x2aceb7['mapper']['markerNameToElements'](_0x100b12['markerName']);if(!_0x4d345d)return;const {id:_0x4c015b}=this['_splitMarkerName'](_0x100b12['markerName']),_0x34d389=this['_suggestions']['get'](_0x4c015b),_0x251db3=this['_getAttributeKey'](_0x34d389);if(this['_isBlockAttribute'](_0x251db3)){for(const _0x1feef8 of _0x4d345d)_0x1feef8['getCustomProperty']('addHighlight')||(_0x2aceb7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1feef8),_0x2aceb7['writer']['removeAttribute']('data-suggestion',_0x1feef8),_0x2aceb7['writer']['removeAttribute']('data-author-id',_0x1feef8),_0x2aceb7['mapper']['unbindElementFromMarkerName'](_0x1feef8,_0x100b12['markerName']));}},{'priority':'high'});}),_0xed6412['model']['document']['registerPostFixer'](_0x2c8466=>{let _0x3d3a4c=!0x1;const _0x2f2b89=Array['from'](_0xed6412['model']['document']['differ']['getChangedMarkers']()),_0x51512f=new Set();for(const {name:_0x44c5bf,data:_0x446f9c}of _0x2f2b89){const {group:_0x45d0c4,type:_0x504fa4,subType:_0x3bb70b,id:_0x41d971}=this['_splitMarkerName'](_0x44c5bf);if('suggestion'!==_0x45d0c4)continue;const _0x63963a=this['_suggestions']['get'](_0x41d971);if(null!=_0x446f9c['newRange']){'formatInline'==_0x504fa4&&(_0x3d3a4c=_0x3d3a4c||Pt(_0x446f9c['newRange'],_0x44c5bf,_0x2c8466,_0xed6412['model']['schema']));const _0x47247b='attribute'==_0x504fa4&&this['_isBlockAttribute'](_0x3bb70b['split']('|')[0x0]);if(_0x446f9c['newRange']['isCollapsed']||'$graveyard'==_0x446f9c['newRange']['root']['rootName']||'formatBlock'==_0x504fa4&&!Ft(_0x446f9c['newRange'])||_0x47247b&&!Ft(_0x446f9c['newRange'])||'deletion'==_0x504fa4&&!(!Vt(_0x5cee00=_0x446f9c['newRange'])&&!function(_0x598175){return _0x598175['start']['parent']==_0x598175['end']['nodeBefore']&&_0x598175['start']['isAtEnd'];}(_0x5cee00)))_0x2c8466['removeMarker'](_0x44c5bf),_0x3d3a4c=!0x0;else{if(!_0x63963a||!_0x63963a['isInContent'])continue;if(_0x446f9c['newRange']&&_0x446f9c['oldRange']&&_0x446f9c['newRange']['isEqual'](_0x446f9c['oldRange']))continue;_0x51512f['add'](_0x63963a);}}}var _0x5cee00;return _0x51512f['size']>0x0&&(_0x3d3a4c=!!this['_joinWithAdjacentSuggestions'](_0x51512f)||_0x3d3a4c),_0x3d3a4c;}),_0xed6412['model']['document']['registerPostFixer'](_0x4cd093=>{let _0xfc2cea=!0x1;for(const _0x39fde2 of _0xed6412['model']['document']['differ']['getChanges']())if('insert'==_0x39fde2['type'])for(const _0x12d53c of this['_suggestions']['values']()){if(_0x12d53c['isMultiRange']||!_0x12d53c['isInContent'])continue;const _0x388b72='formatBlock'==_0x12d53c['type'],_0x1d7004=this['_getAttributeKey'](_0x12d53c),_0x183ad6=_0x1d7004&&this['_isBlockAttribute'](_0x1d7004);if(!_0x388b72&&!_0x183ad6)continue;const _0xa2a7ec=_0x12d53c['getFirstRange']();if(_0xa2a7ec['start']['parent']!=_0xa2a7ec['end']['parent']&&!_0xa2a7ec['end']['isAtEnd']){const _0x5b035b=_0xed6412['model']['createPositionAt'](_0xa2a7ec['start']['nodeAfter'],'end'),_0x4ae871=_0xed6412['model']['createRange'](_0xa2a7ec['start'],_0x5b035b);_0x4cd093['updateMarker'](_0x12d53c['getFirstMarker'](),{'range':_0x4ae871}),_0xfc2cea=!0x0;}}return _0xfc2cea;}),_0xed6412['model']['document']['registerPostFixer'](_0x488a68=>this['_processAttributeChanges'](_0x488a68)),_0xed6412['model']['document']['registerPostFixer'](_0x5612c3=>!_0x5612c3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5612c3)),_0xed6412['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xed6412['model']['document']['on']('change:data',(_0x210f53,_0x199f60)=>{if(!_0x199f60['isLocal']||_0x199f60['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x421b5f=_0xed6412['model']['document']['differ']['getChanges']();if(0x0==_0x421b5f['length'])return;const _0x1e0f23=[],_0x3775df=_0x421b5f['filter'](_0x5c3ee5=>'attribute'==_0x5c3ee5['type']),_0xd94426=_0x421b5f['filter'](_0x566ecf=>'insert'==_0x566ecf['type']&&'$text'!=_0x566ecf['name']);for(const _0x19d10c of _0x3775df)this['_isRegisteredAttribute'](_0x19d10c['attributeKey'])&&_0x1e0f23['push']({'key':_0x19d10c['attributeKey'],'newValue':_0x19d10c['attributeNewValue'],'oldValue':_0x19d10c['attributeOldValue'],'range':Lt(_0x19d10c['range'],_0xed6412['model'])});for(const _0x1c9eea of _0xd94426){if('rename'!=_0x1c9eea['action']&&'refresh'!=_0x1c9eea['action'])continue;const _0x318efa=Jt(_0x1c9eea['position']['nodeAfter'],_0xed6412['model']),_0x40159f=_0x1c9eea['before'];'rename'==_0x1c9eea['action']&&_0x1e0f23['push']({'key':m,'newValue':_0x1c9eea['name'],'oldValue':_0x40159f['name'],'range':_0x318efa});for(const [_0x4696c9,_0x28bd1c]of _0x40159f['attributes']){if(!this['_isRegisteredAttribute'](_0x4696c9))continue;const _0x309254=_0x1c9eea['attributes']['get'](_0x4696c9);_0x28bd1c!==_0x309254&&_0x1e0f23['push']({'key':_0x4696c9,'newValue':_0x309254,'oldValue':_0x28bd1c,'range':_0x318efa});}for(const [_0x293a25,_0x21cd15]of _0x1c9eea['attributes'])this['_isRegisteredAttribute'](_0x293a25)&&(_0x40159f['attributes']['has'](_0x293a25)||_0x1e0f23['push']({'key':_0x293a25,'newValue':_0x21cd15,'oldValue':null,'range':_0x318efa}));}0x0!=_0x1e0f23['length']&&_0xed6412['model']['enqueueChange'](_0x199f60,_0x1e2d7b=>{const _0x28164f=_0x1cdff5();for(const {range:_0x30cf90,key:_0x166eb0,oldValue:_0x554612,newValue:_0x1a78e4}of _0x1e0f23)this['markAttributeChange'](_0x30cf90,_0x166eb0,_0x554612,_0x1a78e4,{'groupId':_0x28164f});this['_reduceExistingSuggestions'](_0x1e2d7b,_0x1e0f23);});},{'priority':'lowest'}),_0xed6412['model']['markers']['on']('update:suggestion',(_0x20c532,_0x3b8f30,_0x5889fa)=>{if(null==_0x5889fa){const {id:_0x1fff86}=this['_splitMarkerName'](_0x3b8f30['name']),_0x550259=this['_suggestions']['get'](_0x1fff86);_0x550259&&_0x550259['addMarkerName'](_0x3b8f30['name']);}}),_0xed6412['model']['document']['on']('change:data',()=>{const _0x39f6c6=Array['from'](_0xed6412['model']['document']['differ']['getChangedMarkers']())['filter'](_0x23c36f=>'suggestion'===this['_splitMarkerName'](_0x23c36f['name'])['group']);if(0x0===_0x39f6c6['length'])return;_0x39f6c6['sort']((_0x2d203b,_0x270401)=>{const _0xb20d61=_0x2d203b['data']['oldRange'],_0x3c9069=_0x270401['data']['oldRange'];return null===_0xb20d61&&null===_0x3c9069?0x0:null===_0xb20d61&&null!==_0x3c9069?-0x1:null!==_0xb20d61&&null===_0x3c9069?0x1:_0xb20d61['start']['isBefore'](_0x3c9069['start'])?-0x1:0x1;});const _0x41b42d=new Set(),_0x36c420=new Set();for(const {name:_0x4d20fc,data:_0x2a1788}of _0x39f6c6){const {id:_0x19e314}=this['_splitMarkerName'](_0x4d20fc);if(null===_0x2a1788['oldRange']){const _0x523666=this['_handleNewSuggestionMarker'](_0x4d20fc);_0x36c420['add'](_0x523666);}else{const _0x1023bb=this['_suggestions']['get'](_0x19e314);null!==_0x2a1788['newRange']||_0x1023bb['isInContent']?(_0x41b42d['add'](_0x1023bb['head']),_0x36c420['add'](_0x1023bb)):this['_removeSuggestion'](_0x1023bb);}}_0x36c420['size']>0x0&&this['_refreshSuggestionsChain'](_0x36c420);for(const _0x492357 of _0x41b42d)this['fire']('suggestionChanged',_0x492357);}),_0xed6412['model']['on']('applyOperation',(_0x268d1b,_0x5c2549)=>{const _0x3572c0=_0x5c2549[0x0];if(!this['_suggestions']['size'])return;if(!_0x3572c0['isDocumentOperation'])return;if(_0x3572c0['batch']['isUndo']||!_0x3572c0['batch']['isLocal'])return;let _0x444760,_0x35f97f;switch(_0x3572c0['type']){case'insert':_0x444760=_0xed6412['model']['createPositionAt'](_0x3572c0['position']),_0x35f97f=_0x444760['getShiftedBy'](_0x3572c0['howMany']);break;case'split':_0x444760=_0xed6412['model']['createPositionAt'](_0x3572c0['splitPosition']),_0x35f97f=_0xed6412['model']['createPositionAt'](_0x3572c0['moveTargetPosition']);break;case'move':_0x444760=_0xed6412['model']['createPositionAt'](_0x3572c0['targetPosition']),_0x35f97f=_0x444760['getShiftedBy'](_0x3572c0['howMany']);break;default:return;}const _0x3da030=_0xed6412['model']['createRange'](_0x444760,_0x35f97f);_0xed6412['model']['change'](()=>{for(const {suggestion:_0x3624ed,meta:_0x217104}of this['_findSuggestions'](_0x3da030)){if(_0x3624ed['isMultiRange'])continue;if('formatInline'==_0x3624ed['type'])continue;const _0x5617fc=this['_getAttributeKey'](_0x3624ed);if(_0x5617fc&&this['_isBlockAttribute'](_0x5617fc)&&'split'!=_0x3572c0['type'])continue;const _0x1d3b3f=_0x3624ed['data']&&_0x3624ed['data']['multipleBlocks'];('formatBlock'!=_0x3624ed['type']||'split'==_0x3572c0['type']&&!_0x1d3b3f)&&(_0x217104['containsRangeInObject']||'insertion'==_0x3624ed['type']&&_0x217104['isOwn']||_0x3624ed['getFirstRange']()['containsRange'](_0x3da030)&&this['_breakSuggestionMarker'](_0x3624ed,_0x444760,_0x35f97f));}});},{'priority':'lowest'}),_0xed6412['model']['on']('deleteContent',(_0x40b47a,_0x346853)=>{const _0x116482=_0x346853[0x0],_0xa2d31d=_0x346853[0x1];if(_0xa2d31d&&_0xa2d31d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x116482['isCollapsed'])return;const _0x5fa2fa=_0xed6412['model']['schema'],{start:_0x240f7c,end:_0x3b4fa0}=_0x116482['getFirstRange'](),_0x9ce155=_0x240f7c['nodeAfter']&&_0x5fa2fa['isLimit'](_0x240f7c['nodeAfter'])?null:_0x5fa2fa['getNearestSelectionRange'](_0x240f7c,'forward'),_0x20e2f1=_0x3b4fa0['nodeBefore']&&_0x5fa2fa['isLimit'](_0x3b4fa0['nodeBefore'])?null:_0x5fa2fa['getNearestSelectionRange'](_0x3b4fa0,'backward'),_0x4aa9b0=_0xed6412['model']['createRange'](_0x9ce155?_0x9ce155['start']:_0x240f7c,_0x20e2f1?_0x20e2f1['end']:_0x3b4fa0);_0xed6412['model']['change'](_0x27693a=>{this['markDeletion'](_0x4aa9b0);const _0x546b77=_0xed6412['model']['schema']['getNearestSelectionRange'](_0x4aa9b0['start']);_0x116482['is']('documentSelection')?_0x27693a['setSelection'](_0x546b77):_0x116482['setTo'](_0x546b77);}),_0x40b47a['stop']();},{'priority':_0x2e7237['normal']+0xa}),_0xed6412['model']['on']('insertContent',(_0x285aab,_0x4f80cb)=>{const _0x298d0d=_0x4f80cb[_0x4f80cb['length']-0x1];_0x298d0d&&_0x298d0d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xed6412['model']['change'](()=>{let _0x419512=_0xed6412['model']['insertContent'](_0x4f80cb[0x0],_0x4f80cb[0x1],_0x4f80cb[0x2],{'forceDefaultExecution':!0x0});if(!_0x419512)return;_0x285aab['return']=_0x419512['clone']();const _0x1484f1=_0x419512['end']['nodeBefore'],_0x9c6d45=_0xed6412['model']['schema'];_0x1484f1&&_0x9c6d45['isBlock'](_0x1484f1)&&!_0x9c6d45['isObject'](_0x1484f1)&&(_0x419512=_0xed6412['model']['createRange'](_0x419512['start'],_0xed6412['model']['createPositionAt'](_0x1484f1,'end'))),this['markInsertion'](_0x419512);}),_0x285aab['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xe97679=new O(_0xed6412,this['_suggestions']);_0xed6412['commands']['add']('acceptSuggestion',_0xe97679),this['enableCommand']('acceptSuggestion');const _0x39d207=new R(_0xed6412,this['_suggestions']);_0xed6412['commands']['add']('discardSuggestion',_0x39d207),this['enableCommand']('discardSuggestion'),_0xed6412['commands']['add']('acceptAllSuggestions',new x(_0xed6412,_0xe97679,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xed6412['commands']['add']('discardAllSuggestions',new x(_0xed6412,_0x39d207,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xed6412['commands']['add']('acceptSelectedSuggestions',new E(_0xed6412,_0xe97679,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xed6412['commands']['add']('discardSelectedSuggestions',new E(_0xed6412,_0x39d207,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x205c92=_0xed6412['plugins']['get']('CommentsRepository');this['listenTo'](_0x205c92,'addComment',(_0x1a81c9,{threadId:_0x13eba5})=>{const _0x5ae572=this['_suggestions']['get'](_0x13eba5);_0x5ae572&&_0x5ae572['commentThread']&&0x1===_0x5ae572['commentThread']['length']&&this['_updateSuggestionData'](_0x13eba5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x205c92,'removeComment',(_0x244440,{threadId:_0x22d76b})=>{const _0x34530b=this['_suggestions']['get'](_0x22d76b);_0x34530b&&_0x34530b['commentThread']&&!_0x34530b['commentThread']['length']&&this['_updateSuggestionData'](_0x22d76b,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x19930c){const _0x4da1dc=_0x2c0791([0x6c,0x4e,0x4f,0x47,0x42,0x36,0x49,0x44,0x64,0x46,0x52,0x34,0x5a,0x67,0x79,0x41,0x73,0x6f,0x6d,0x74,0x54,0x68,0x6b,0x4c,0x50,0x59,0x69,0x66,0x55,0x53,0x75,0x39,0x7a,0x58,0x56,0x43,0x6a,0x62,0x51,0x4b,0x35,0x30,0x37,0x31,0x6e,0x4a,0x48,0x57,0x65,0x72,0x33,0x70,0x45,0x78,0x38,0x71,0x63,0x4d,0x77,0x61,0x76,0x32]),_0x466718=0x4b88f532,_0x56399e=0x4b8fac4a^_0x466718,_0xdbd2fa=window[_0x2c0791([0x44,0x61,0x74,0x65])][_0x2c0791([0x6e,0x6f,0x77])](),_0x60285f=_0x19930c[_0x2c0791([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3595e8=new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aa8a6=>{_0x60285f[_0x2c0791([0x6f,0x6e,0x63,0x65])](_0x2c0791([0x72,0x65,0x61,0x64,0x79]),_0x3aa8a6);}),_0x1d21e4={[_0x2c0791([0x6b,0x74,0x79])]:_0x2c0791([0x45,0x43]),[_0x2c0791([0x75,0x73,0x65])]:_0x2c0791([0x73,0x69,0x67]),[_0x2c0791([0x63,0x72,0x76])]:_0x2c0791([0x50,0x2d,0x32,0x35,0x36]),[_0x2c0791([0x78])]:_0x2c0791([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2c0791([0x79])]:_0x2c0791([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2c0791([0x61,0x6c,0x67])]:_0x2c0791([0x45,0x53,0x32,0x35,0x36])},_0x23e2a7=_0x60285f[_0x2c0791([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c0791([0x67,0x65,0x74])](_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c65f8(){let _0x5bd913,_0x184668=null,_0x55b5a1=null;try{if(_0x23e2a7==_0x2c0791([0x47,0x50,0x4c]))return _0x2c0791([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5bd913=_0x481ad6(),!_0x5bd913)return _0x2c0791([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5bd913[_0x2c0791([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55b5a1=_0x5ca42b(_0x5bd913[_0x2c0791([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5bd913[_0x2c0791([0x6a,0x74,0x69])])),await _0x438a1d()?_0x3a86d2()?_0x487540()?_0x2c0791([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x345687()?(_0x5bd913[_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c0791([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x184668=_0x452bff(_0x2c0791([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5bd913[_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c0791([0x74,0x72,0x69,0x61,0x6c])&&(_0x184668=_0x452bff(_0x2c0791([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x5bd913[_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c0791([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x184668=_0x452bff(_0x2c0791([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1103ee()):_0x2c0791([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c0791([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c0791([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x268fc0){return _0x2c0791([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x487540(){const _0x525e7c=[_0x2c0791([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c0791([0x74,0x72,0x69,0x61,0x6c])][_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bd913[_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xdbd2fa/0x3e8:0xe10*_0x56399e;return _0x5bd913[_0x2c0791([0x65,0x78,0x70])]<_0x525e7c;}function _0x3a86d2(){const _0xc8f9a1=_0x5bd913[_0x2c0791([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xc8f9a1)return!0x1;if(_0xc8f9a1[_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0791([0x2a])))return!0x0;if(_0xc8f9a1[_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0791([0x54,0x43])))return!0x0;if(_0xc8f9a1[_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0791([0x52,0x54,0x43]))){if(_0x168c6b())return!0x0;if(_0x4d5ab0()||_0x140544())return!0x0;}return!0x1;}function _0x345687(){const _0x1f916e=_0x5bd913[_0x2c0791([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1f916e||0x0==_0x1f916e[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x107a12}=new URL(window[_0x2c0791([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1f916e[_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x107a12))return!0x0;const _0x675ba2=_0x107a12[_0x2c0791([0x73,0x70,0x6c,0x69,0x74])](_0x2c0791([0x2e]));return _0x1f916e[_0x2c0791([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x276226=>_0x276226[_0x2c0791([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0791([0x2a])))[_0x2c0791([0x6d,0x61,0x70])](_0x5707f2=>_0x5707f2[_0x2c0791([0x73,0x70,0x6c,0x69,0x74])](_0x2c0791([0x2e])))[_0x2c0791([0x73,0x6f,0x6d,0x65])](_0x25bdc4=>_0x675ba2[_0x2c0791([0x65,0x76,0x65,0x72,0x79])]((_0x16c69f,_0x4a9658)=>_0x25bdc4[_0x4a9658]===_0x16c69f||_0x25bdc4[_0x4a9658]===_0x2c0791([0x2a])));}function _0x1103ee(){return _0x184668&&_0x55b5a1?new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbc61b8,_0x2f695d)=>{_0x184668[_0x2c0791([0x74,0x68,0x65,0x6e])](_0xbc61b8,_0x2f695d),_0x55b5a1[_0x2c0791([0x74,0x68,0x65,0x6e])](_0x341c0a=>{_0x341c0a!=_0x2c0791([0x56,0x61,0x6c,0x69,0x64])&&_0xbc61b8(_0x341c0a);},_0x2f695d);}):_0x184668||_0x55b5a1||_0x2c0791([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ca42b(_0x1fe2bb,_0x10e8ed){return new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34f1a9=>{if(_0x2de900())return _0x34f1a9(_0x2c0791([0x56,0x61,0x6c,0x69,0x64]));_0x4b55b6(),_0x60285f[_0x2c0791([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c0791([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4f55fd=!0x1;const _0x140d20=_0x1cdff5();function _0x140e73(_0x58650e){return!!_0x58650e&&(typeof _0x58650e===_0x2c0791([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58650e===_0x2c0791([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58650e[_0x2c0791([0x74,0x68,0x65,0x6e])]===_0x2c0791([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58650e[_0x2c0791([0x63,0x61,0x74,0x63,0x68])]===_0x2c0791([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52961a(_0xc048a){_0x51cc59(_0xc048a)[_0x2c0791([0x74,0x68,0x65,0x6e])](_0x33500d=>{if(!_0x33500d||_0x33500d[_0x2c0791([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c0791([0x6f,0x6b]))return _0x2c0791([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2e10ca(_0x23eef3(_0x140d20+_0x10e8ed))!=_0x33500d[_0x2c0791([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c0791([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c0791([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c0791([0x74,0x68,0x65,0x6e])](_0x3e2730=>(_0x4c9d19(),_0x3e2730),()=>{const _0x282ae1=_0xeadfe4();return null==_0x282ae1?(_0x4c9d19(),_0x2c0791([0x56,0x61,0x6c,0x69,0x64])):_0x2c0791(_0xdbd2fa-_0x282ae1>(0x6f847132^_0x466718)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c0791([0x74,0x68,0x65,0x6e])](_0x34f1a9)[_0x2c0791([0x63,0x61,0x74,0x63,0x68])](()=>{_0x34f1a9(_0x2c0791([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x210d63=0x4bbe1bb2^_0x466718;function _0x4c9d19(){const _0x559b7=_0x2c0791([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e10ca(_0x23eef3(_0x1fe2bb)),_0x52eb3d=_0xe407be(_0x2e10ca(window[_0x2c0791([0x4d,0x61,0x74,0x68])][_0x2c0791([0x63,0x65,0x69,0x6c])](_0xdbd2fa/_0x210d63)));window[_0x2c0791([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c0791([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x559b7,_0x52eb3d);}function _0xeadfe4(){const _0x73294a=_0x2c0791([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e10ca(_0x23eef3(_0x1fe2bb)),_0x4cd893=window[_0x2c0791([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c0791([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x73294a);return _0x4cd893?window[_0x2c0791([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe407be(_0x4cd893),0x10)*_0x210d63:null;}function _0x51cc59(_0x1c6549){return new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xac5152,_0x12192b)=>{_0x1c6549[_0x2c0791([0x74,0x68,0x65,0x6e])](_0xac5152,_0x12192b),window[_0x2c0791([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12192b,0x4b8921f2^_0x466718);});}}_0x60285f[_0x2c0791([0x6f,0x6e])](_0x2c0791([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e54a3,_0x3e7cd3)=>{if(_0x3e7cd3[0x0]!=_0x1fe2bb)return _0x34f1a9(_0x2c0791([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e7cd3[0x1]={..._0x3e7cd3[0x1],[_0x2c0791([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x140d20};},{[_0x2c0791([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c0791([0x68,0x69,0x67,0x68])}),_0x60285f[_0x2c0791([0x6f,0x6e])](_0x2c0791([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4bde0d=>{_0x140e73(_0x4bde0d[_0x2c0791([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4f55fd=!0x0,_0x52961a(_0x4bde0d[_0x2c0791([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c0791([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c0791([0x6c,0x6f,0x77])}),_0x3595e8[_0x2c0791([0x74,0x68,0x65,0x6e])](()=>{_0x4f55fd||_0x34f1a9(_0x2c0791([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2de900(){return _0x60285f[_0x2c0791([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c0791([0x76,0x69,0x65,0x77])][_0x2c0791([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c0791([0x61,0x75,0x74,0x6f]);}function _0x4b55b6(){_0x60285f[_0x2c0791([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c0791([0x76,0x69,0x65,0x77])][_0x2c0791([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c0791([0x61,0x75,0x74,0x6f]);}}function _0x452bff(_0x3375e9){const _0x24daa6=[new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f3061=>setTimeout(_0x2f3061,0x4b81cbfe^_0x466718)),_0x3595e8[_0x2c0791([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22549d=>{let _0x5c5d95=0x0;_0x60285f[_0x2c0791([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c0791([0x6f,0x6e])](_0x2c0791([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x292cc9,_0x7737fa)=>{_0x7737fa[0x0][_0x2c0791([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c5d95++,_0x5c5d95==(0x4b88f4ca^_0x466718)&&(_0x22549d(),_0x292cc9[_0x2c0791([0x6f,0x66,0x66])]());});}))];return window[_0x2c0791([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c0791([0x72,0x61,0x63,0x65])](_0x24daa6)[_0x2c0791([0x74,0x68,0x65,0x6e])](()=>_0x3375e9);}async function _0x3f30b3(){await _0x3595e8,_0x60285f[_0x2c0791([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c0791([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x41e6c2,_0x60285f[_0x2c0791([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c0791([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x41e6c2,_0x60285f[_0x2c0791([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c0791([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x168c6b(){return _0xa31b10(_0x2c0791([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4696bd(_0x2c0791([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2c0791([0x73,0x74,0x61,0x74,0x65])]==_0x2c0791([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4d5ab0(){return _0xa31b10(_0x2c0791([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x140544(){return _0xa31b10(_0x2c0791([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x12fbb9(_0x2fd666){const _0x489a67=_0x42a488();_0x60285f[_0x489a67]=_0x2c0791([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2fd666,_0x2fd666!=_0x2c0791([0x56,0x61,0x6c,0x69,0x64])&&_0x3f30b3();}function _0x42a488(){const _0x58b1e0=window[_0x2c0791([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c0791([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c0791([0x6e,0x6f,0x77])]())[_0x2c0791([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c0791([0x2e]),'');let _0x528494=_0x2c0791([0x6c]);for(let _0x2218db=0x0;_0x2218db<_0x58b1e0[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2218db+=0x2){let _0x9d892f=window[_0x2c0791([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58b1e0[_0x2c0791([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2218db,_0x2218db+0x2));_0x9d892f>=_0x4da1dc[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x9d892f-=_0x4da1dc[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x528494+=_0x4da1dc[_0x9d892f];}return _0x528494;}function _0x481ad6(){const _0x365b46=_0x23e2a7[_0x2c0791([0x73,0x70,0x6c,0x69,0x74])](_0x2c0791([0x2e]));if(0x3!=_0x365b46[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x561bef(_0x365b46[0x1]);function _0x561bef(_0x2c7fa9){const _0x357d59=_0x2a733d(_0x2c7fa9);return _0x357d59&&_0x4dc9c5()?_0x357d59:null;function _0x4dc9c5(){const _0x566b6f=_0x357d59[_0x2c0791([0x6a,0x74,0x69])],_0x297a18=window[_0x2c0791([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x566b6f[_0x2c0791([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x566b6f[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d3755={..._0x357d59,[_0x2c0791([0x6a,0x74,0x69])]:_0x566b6f[_0x2c0791([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x566b6f[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d3755[_0x2c0791([0x76,0x63])],_0x23eef3(_0x1d3755)==_0x297a18;}}}async function _0x438a1d(){let _0xc11f0d=!0x0;try{const _0x261d12=_0x23e2a7[_0x2c0791([0x73,0x70,0x6c,0x69,0x74])](_0x2c0791([0x2e])),[_0x174bbe,_0x531ffe,_0x320c68]=_0x261d12;return _0x2b43d7(_0x174bbe),await _0x101c04(_0x174bbe,_0x531ffe,_0x320c68),_0xc11f0d;}catch(_0x1a1b7a){return!0x1;}function _0x2b43d7(_0x303d27){const _0x6eb725=_0x2a733d(_0x303d27);_0x6eb725&&_0x6eb725[_0x2c0791([0x61,0x6c,0x67])]==_0x2c0791([0x45,0x53,0x32,0x35,0x36])||(_0xc11f0d=!0x1);}async function _0x101c04(_0x30c88b,_0x553d59,_0x593bc0){const _0x35e4a8=window[_0x2c0791([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c0791([0x66,0x72,0x6f,0x6d])](_0x36f5c5(_0x593bc0),_0x1f0780=>_0x1f0780[_0x2c0791([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x234ad9=new window[(_0x2c0791([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c0791([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x30c88b+_0x2c0791([0x2e])+_0x553d59),_0x149c62=window[_0x2c0791([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c0791([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x149c62)return;const _0x4c0a16=await _0x149c62[_0x2c0791([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c0791([0x6a,0x77,0x6b]),_0x1d21e4,{[_0x2c0791([0x6e,0x61,0x6d,0x65])]:_0x2c0791([0x45,0x43,0x44,0x53,0x41]),[_0x2c0791([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c0791([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c0791([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x149c62[_0x2c0791([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c0791([0x6e,0x61,0x6d,0x65])]:_0x2c0791([0x45,0x43,0x44,0x53,0x41]),[_0x2c0791([0x68,0x61,0x73,0x68])]:{[_0x2c0791([0x6e,0x61,0x6d,0x65])]:_0x2c0791([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c0a16,_0x35e4a8,_0x234ad9)||(_0xc11f0d=!0x1);}}function _0x2a733d(_0x46c23c){return _0x46c23c[_0x2c0791([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c0791([0x65,0x79]))?JSON[_0x2c0791([0x70,0x61,0x72,0x73,0x65])](_0x36f5c5(_0x46c23c)):null;}function _0x36f5c5(_0xf3d094){return window[_0x2c0791([0x61,0x74,0x6f,0x62])](_0xf3d094[_0x2c0791([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c0791([0x2b]))[_0x2c0791([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c0791([0x2f])));}function _0x23eef3(_0x42259d){let _0x1576bf=0x1505;function _0x4b553a(_0x5abf35){for(let _0x14a53c=0x0;_0x14a53c<_0x5abf35[_0x2c0791([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14a53c++){const _0x2865d0=_0x5abf35[_0x2c0791([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14a53c);_0x1576bf=(_0x1576bf<<0x5)+_0x1576bf+_0x2865d0,_0x1576bf&=_0x1576bf;}}function _0x3c20cb(_0x11186c){Array[_0x2c0791([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11186c)?_0x11186c[_0x2c0791([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3c20cb):_0x11186c&&typeof _0x11186c==_0x2c0791([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c0791([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11186c)[_0x2c0791([0x73,0x6f,0x72,0x74])]()[_0x2c0791([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5714d1,_0x363224])=>{_0x4b553a(_0x5714d1),_0x3c20cb(_0x363224);}):_0x4b553a(window[_0x2c0791([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11186c));}return _0x3c20cb(_0x42259d),_0x1576bf>>>0x0;}function _0x2e10ca(_0x448d87){return _0x448d87[_0x2c0791([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c0791([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c0791([0x30]));}function _0xe407be(_0x3e0cbd){return _0x3e0cbd[_0x2c0791([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c0791([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c0791([0x6a,0x6f,0x69,0x6e])]('');}function _0xa31b10(_0x406391){return _0x60285f[_0x2c0791([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c0791([0x68,0x61,0x73])](_0x406391);}function _0x4696bd(_0x221557){return _0x60285f[_0x2c0791([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c0791([0x67,0x65,0x74])](_0x221557);}function _0x41e6c2(){}function _0x2c0791(_0x5b5200){return _0x5b5200['map'](_0x2e5a49=>String['fromCharCode'](_0x2e5a49))['join']('');}_0x12fbb9(await _0x2c65f8());}(this);}set['adapter'](_0x59b730){if(this['_adapter'])throw new _0x1c48ec('track-changes-adapter-already-set',this);this['_adapter']=_0x59b730;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4c8a60=!0x1,toJSON:_0x168185=!0x1}={}){const _0xcaa2ca=[];for(const _0x5fa4e8 of this['_suggestions']['values']())_0x4c8a60&&!_0x5fa4e8['isInContent']||_0xcaa2ca['push'](_0x5fa4e8);return _0x168185?_0xcaa2ca['map'](_0x40f2c8=>_0x40f2c8['toJSON']()):_0xcaa2ca;}['getSuggestion'](_0x34c6cb){const _0x225821=this['_suggestions']['get'](_0x34c6cb);if(!_0x225821)throw new _0x1c48ec('track-changes-suggestion-not-found',this);return _0x225821;}['hasSuggestion'](_0x46d78e){return this['_suggestions']['has'](_0x46d78e);}['addSuggestionData'](_0x546f4d){const {authorId:_0x1130dc,id:_0x2e6f00,attributes:_0x235572}=_0x546f4d,[_0x2b7f70,_0x5c7dec]=_0x546f4d['type']['split'](':'),_0x484b41=this['_suggestions']['get'](_0x2e6f00)||this['_createSuggestion'](_0x2b7f70,_0x5c7dec,_0x2e6f00,_0x1130dc,_0x235572);if(this['_addThreadToSuggestion'](_0x484b41),this['_checkSuggestionCorrectness'](_0x484b41,_0x2b7f70,_0x5c7dec||null,_0x1130dc),_0x484b41['createdAt']=_0x546f4d['createdAt'],_0x484b41['_isDataLoaded']=!0x0,_0x235572&&_0x235572['@external']){const _0xcc83af=_0x235572['@external'],_0x4ab7da=this['_getExternalAuthor'](_0xcc83af['authorName']);_0x484b41['authoredAt']=_0xcc83af['createdAt'],_0x484b41['author']=_0x4ab7da,_0x484b41['isExternal']=!0x0;}else _0x484b41['authoredAt']=_0x546f4d['createdAt'];switch(_0x546f4d['data']&&(_0x484b41['data']=_0x546f4d['data']),_0x546f4d['attributes']&&(_0x484b41['attributes']=_0x546f4d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x484b41['_saved']=!0x0),this['_suggestionState']['get'](_0x484b41)){case'notReady':this['_suggestionState']['set'](_0x484b41,'dataReady');break;case'markerReady':_0x484b41['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x484b41])),this['_refreshSuggestionsChain'](new Set([_0x484b41])),this['_suggestionState']['set'](_0x484b41,'ready'),this['fire']('suggestionLoaded',_0x484b41)):this['_suggestionState']['set'](_0x484b41,'removed');}return _0x484b41;}['acceptSuggestion'](_0x109e82){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xb31253 of _0x109e82['getAllAdjacentSuggestions']())_0xb31253['accept']();});});}['discardSuggestion'](_0x3dc9e1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x255cd3 of _0x3dc9e1['getAllAdjacentSuggestions']())_0x255cd3['discard']();});});}['enableCommand'](_0x33caa9,_0x20c6f6){const _0x57158a=this['editor']['commands']['get'](_0x33caa9);if(!_0x57158a)throw new _0x1c48ec('track-changes-command-not-found',this,{'commandName':_0x33caa9});if(this['_enabledCommands']['has'](_0x57158a))throw new _0x1c48ec('track-changes-enable-command-twice',this,{'commandName':_0x33caa9});this['_enabledCommands']['add'](_0x57158a),_0x20c6f6&&_0x57158a['on']('execute',(_0x13f1ee,_0x5417dd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5417dd['length']>0x0&&_0x5417dd[_0x5417dd['length']-0x1]&&_0x5417dd[_0x5417dd['length']-0x1]['forceDefaultExecution']?_0x5417dd['pop']():(_0x13f1ee['return']=_0x20c6f6((..._0x14d168)=>_0x57158a['execute'](..._0x14d168,{'forceDefaultExecution':!0x0}),..._0x5417dd),_0x13f1ee['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x11ba24){let _0x43cea5,_0x3b90e4;const _0xee96c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x43cea5=_0x11ba24();}catch(_0x144e5a){_0x3b90e4=_0x144e5a;}return _0xee96c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3b90e4&&_0x1c48ec['rethrowUnexpectedError'](_0x3b90e4,this),_0x43cea5;}['markInsertion'](_0x5bbf1f,_0x488f34=null,_0x1da845={}){if(_0x5bbf1f['isCollapsed'])return null;const _0x11d3d6=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xa656f7,meta:_0x175d9b}of this['_findSuggestions'](_0x5bbf1f,'insertion'))if(_0x175d9b['isOwn']){if(!_0x175d9b['isNextTo']){if(_0x175d9b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0xa656f7,_0x1da845))continue;return _0xa656f7;}if(zt(_0xa656f7,_0x1da845))return _0xa656f7;this['_breakSuggestionMarker'](_0xa656f7,_0x5bbf1f['start'],_0x5bbf1f['end']);break;}if(_0x488f34==_0xa656f7['subType']&&zt(_0xa656f7,_0x1da845)){const _0x3a9440=_0xa656f7['getFirstRange']();return _0x3a9440['start']['isEqual'](_0x5bbf1f['end'])?this['_setSuggestionRange'](_0xa656f7,this['_model']['createRange'](_0x5bbf1f['start'],_0x3a9440['end'])):this['_setSuggestionRange'](_0xa656f7,this['_model']['createRange'](_0x3a9440['start'],_0x5bbf1f['end'])),_0xa656f7;}}const _0x3e2098=_0x1cdff5(),_0x4426e9=_0x11d3d6['id'],_0x2227cc=_0x488f34?'insertion:'+_0x488f34:'insertion',_0x32d1ca=this['_setSuggestionData']({'id':_0x3e2098,'type':_0x2227cc,'createdAt':new Date(),'authorId':_0x4426e9,'attributes':_0x1da845});return this['_addSuggestionMarker'](_0x2227cc,_0x3e2098,_0x4426e9,_0x5bbf1f),_0x32d1ca;}['markMultiRangeInsertion'](_0x5ed0ce,_0x246a37='multi',_0x3fc192={}){const _0x3f7bf1=this['editor']['plugins']['get']('Users')['me'],_0x2c03df=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x246a37,'join');for(const _0x32abbb of this['getSuggestions']())if(_0x32abbb['author']['id']==_0x3f7bf1['id']&&'insertion'==_0x32abbb['type']&&_0x32abbb['subType']==_0x246a37&&zt(_0x32abbb,_0x3fc192)&&(_0x2c03df(_0x32abbb['getRanges'](),_0x5ed0ce)||_0x2c03df(_0x5ed0ce,_0x32abbb['getRanges']()))){for(const _0x495022 of _0x5ed0ce)_0x32abbb['addRange'](_0x495022);return _0x32abbb;}for(const {suggestion:_0x5196a9,meta:_0x1774e6}of this['_findSuggestions'](_0x5ed0ce,'insertion')){if(!_0x1774e6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1774e6['containsRangeInObject'])continue;if(!zt(_0x5196a9,_0x3fc192))continue;let _0x33200c=!0x0;for(const _0xec7f31 of _0x5196a9['getRanges']())for(const _0x283eab of _0x5ed0ce)if(!_0xec7f31['containsRange'](_0x283eab)){_0x33200c=!0x1;break;}if(_0x33200c)return _0x5196a9;}const _0x450efb=_0x1cdff5(),_0x52c8e8=_0x3f7bf1['id'],_0x2549c4='insertion:'+_0x246a37,_0x1a4fb6=this['_setSuggestionData']({'id':_0x450efb,'type':_0x2549c4,'createdAt':new Date(),'authorId':_0x52c8e8,'attributes':_0x3fc192});for(const _0x37a6aa of _0x5ed0ce)this['_addSuggestionMarker'](_0x2549c4,_0x450efb,_0x52c8e8,_0x37a6aa,u['getMultiRangeId']());return _0x1a4fb6;}['markInlineFormat'](_0x3c8e18,_0x53a3f1,_0x5283b7=null,_0x4083c3={}){if(_0x5283b7=_0x5283b7||Gt(_0x53a3f1),_0x3c8e18['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5b5a50=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5283b7,'accept');return this['forceDefaultExecution'](()=>_0x5b5a50([_0x3c8e18],_0x53a3f1,_0x4083c3)),null;}const _0x3199f2=this['editor']['plugins']['get']('Users')['me'],_0x9d3697=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xf3f96d,meta:_0x45e30c}of this['_findSuggestions'](_0x3c8e18,'insertion'))_0x45e30c['isOwn']&&!_0x45e30c['isInsideObject']&&_0x9d3697['push'](..._0xf3f96d['getRanges']());}const _0x3ac578=function(_0x2d2a05,_0xf184ee){const _0x66a321=[];for(const _0x348996 of _0xf184ee){const _0x3fffdf=_0x2d2a05['getIntersection'](_0x348996);_0x3fffdf&&_0x66a321['push'](_0x3fffdf);}return _0x66a321;}(_0x3c8e18,_0x9d3697),_0xbdb6ba=function(_0x5a9931,_0x210f9d){const _0x425ce5=[_0x5a9931];for(const _0x56cd8b of _0x210f9d){let _0x4d8b40=0x0;for(;_0x4d8b40<_0x425ce5['length'];){const _0x8ed8e2=_0x425ce5[_0x4d8b40]['getDifference'](_0x56cd8b);_0x425ce5['splice'](_0x4d8b40,0x1,..._0x8ed8e2),_0x4d8b40+=_0x8ed8e2['length'];}}return _0x425ce5;}(_0x3c8e18,_0x9d3697);_0x3ac578['length']&&this['_model']['change'](()=>{for(const _0x405fcb of _0x3ac578){const _0x236aad=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5283b7,'accept');this['forceDefaultExecution'](()=>_0x236aad([_0x405fcb],_0x53a3f1,_0x4083c3));}});for(const _0x170b0c of _0xbdb6ba){let _0x3e3db2=null,_0x34dbb9=_0x170b0c['start'],_0x39db31=_0x170b0c['end'];for(const {suggestion:_0x143efd,meta:_0x1739a3}of this['_findSuggestions'](_0x170b0c,'formatInline')){if(!_0x1739a3['isOwn'])continue;if(_0x143efd['subType']!=_0x5283b7)continue;if(!zt(_0x143efd,_0x4083c3))continue;const _0x229c62=_0x143efd['getFirstRange']();if(_0x229c62['containsRange'](_0x170b0c,!0x0))return null;_0x34dbb9=_0x34dbb9['isBefore'](_0x229c62['start'])?_0x34dbb9:_0x229c62['start'],_0x39db31=_0x39db31['isAfter'](_0x229c62['end'])?_0x39db31:_0x229c62['end'],_0x3e3db2?_0x229c62['start']['isBefore'](_0x3e3db2['getFirstRange']()['start'])?(_0x3e3db2['removeMarkers'](),_0x3e3db2=_0x143efd):_0x143efd['removeMarkers']():_0x3e3db2=_0x143efd;}const _0x42f39d=this['_model']['createRange'](_0x34dbb9,_0x39db31);if(_0x3e3db2)this['_setSuggestionRange'](_0x3e3db2,_0x42f39d);else{const _0x579cc9=_0x1cdff5(),_0x545e1d=_0x3199f2['id'];this['_setSuggestionData']({'id':_0x579cc9,'type':'formatInline:'+_0x5283b7,'data':_0x53a3f1,'createdAt':new Date(),'authorId':_0x545e1d,'attributes':_0x4083c3}),this['_addSuggestionMarker']('formatInline:'+_0x5283b7,_0x579cc9,_0x545e1d,_0x42f39d);}}return null;}['markBlockFormat'](_0x35bda8,_0x4a468d,_0x4feb13=[],_0x60980e=null,_0x1488e0={}){_0x4a468d['formatGroupId']||(_0x4a468d['formatGroupId']=_0x4a468d['commandName']),_0x4a468d['multipleBlocks']=_0x35bda8['is']('range'),_0x60980e=_0x60980e||Gt(_0x4a468d);const _0x2b3019=_0x4feb13['map'](_0xa5d92a=>Jt(_0xa5d92a,this['_model'])),_0x44b104=_0x35bda8['is']('range')?_0x35bda8:Jt(_0x35bda8,this['_model']);if('never'===this['_trackFormatChanges']){const _0x321149=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x60980e,'accept');return this['forceDefaultExecution'](()=>_0x321149([_0x44b104],_0x4a468d,_0x1488e0)),null;}_0x2b3019['push'](_0x44b104);let _0x5cfa3f=!0x0;for(const _0x3f17d3 of _0x2b3019)if(!this['_rangeIsInLocalUserInsertion'](_0x3f17d3)){_0x5cfa3f=!0x1;break;}if(_0x5cfa3f&&'always'!==this['_trackFormatChanges']){const _0xc56fe0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x60980e,'accept');return this['forceDefaultExecution'](()=>_0xc56fe0([_0x44b104],_0x4a468d,_0x1488e0)),null;}let _0x22d688=null,_0xefd287=_0x44b104['start'],_0x491eeb=_0x44b104['end'];for(const {suggestion:_0x555976,meta:_0x3e4bfa}of this['_findSuggestions'](_0x44b104,'formatBlock')){if(!_0x3e4bfa['isOwn'])continue;if(_0x3e4bfa['isNextTo']||_0x3e4bfa['containsRangeInObject']||_0x3e4bfa['isInsideObject'])continue;if(_0x555976['data']['formatGroupId']!=_0x4a468d['formatGroupId'])continue;if(!zt(_0x555976,_0x1488e0))continue;const _0x2d4969=_0x555976['getFirstRange']();if(_0x555976['subType']==_0x60980e){if(_0x2d4969['containsRange'](_0x44b104,!0x0))return null;_0xefd287=_0xefd287['isBefore'](_0x2d4969['start'])?_0xefd287:_0x2d4969['start'],_0x491eeb=_0x491eeb['isAfter'](_0x2d4969['end'])?_0x491eeb:_0x2d4969['end'],_0x22d688?_0x2d4969['start']['isBefore'](_0x22d688['getFirstRange']()['start'])?(_0x22d688['removeMarkers'](),_0x22d688=_0x555976):_0x555976['removeMarkers']():_0x22d688=_0x555976;}else{const _0x1b2fae=_0x44b104['getIntersection'](_0x2d4969);this['_cutOutSuggestionMarker'](_0x555976,_0x1b2fae);}}const _0x2e66ca=this['editor']['plugins']['get']('Users')['me'],_0x40f49a=_0x1cdff5(),_0x404532=_0x2e66ca['id'];if(_0x22d688)return this['_setSuggestionRange'](_0x22d688,this['_model']['createRange'](_0xefd287,_0x491eeb)),_0x22d688;{const _0x4b3455=this['_setSuggestionData']({'id':_0x40f49a,'type':'formatBlock:'+_0x60980e,'data':_0x4a468d,'createdAt':new Date(),'authorId':_0x404532,'attributes':_0x1488e0});return this['_addSuggestionMarker']('formatBlock:'+_0x60980e,_0x40f49a,_0x404532,this['_model']['createRange'](_0xefd287,_0x491eeb)),_0x4b3455;}}['markMultiRangeBlockFormat'](_0x301b10,_0x27887a,_0x402a04=[],_0x50b278=null,_0x2a8c3e={}){_0x27887a['formatGroupId']||(_0x27887a['formatGroupId']=_0x27887a['commandName']);const _0x30b5bd=_0x301b10[0x0];_0x27887a['multipleBlocks']=_0x30b5bd['is']('range'),_0x50b278=_0x50b278||Gt(_0x27887a);const _0x49d8fc=_0x402a04['map'](_0x29dd2c=>Jt(_0x29dd2c,this['_model'])),_0xec078b=_0x30b5bd['is']('range')?_0x301b10:_0x301b10['map'](_0x174d0c=>Jt(_0x174d0c,this['_model']));if('never'===this['_trackFormatChanges']){const _0xb37ce4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50b278,'accept');return this['forceDefaultExecution'](()=>_0xb37ce4(_0xec078b,_0x27887a,_0x2a8c3e)),null;}_0x49d8fc['push'](..._0xec078b);let _0x2c930a=!0x0;for(const _0x31a764 of _0x49d8fc)if(!this['_rangeIsInLocalUserInsertion'](_0x31a764)){_0x2c930a=!0x1;break;}if(_0x2c930a&&'always'!==this['_trackFormatChanges']){const _0x249b92=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50b278,'accept');return this['forceDefaultExecution'](()=>_0x249b92(_0xec078b,_0x27887a,_0x2a8c3e)),null;}const _0x46c7ee=this['editor']['plugins']['get']('Users')['me'];for(const _0x5924fd of this['getSuggestions']()){if(_0x5924fd['author']['id']!=_0x46c7ee['id'])continue;if('formatBlock'!=_0x5924fd['type']||_0x5924fd['data']['formatGroupId']!=_0x27887a['formatGroupId'])continue;if(!zt(_0x5924fd,_0x2a8c3e))continue;const _0x45f0e7=_0x5924fd['subType']==_0x50b278;for(let _0xbd8d34=0x0;_0xbd8d34<_0xec078b['length'];_0xbd8d34++){const _0x42b66e=_0xec078b[_0xbd8d34];for(const _0x18f640 of _0x5924fd['getMarkers']()){const _0x4e363e=_0x18f640['getRange']();if(_0x42b66e['isEqual'](_0x4e363e)){_0x45f0e7?(_0xec078b['splice'](_0xbd8d34,0x1),_0xbd8d34--):_0x5924fd['removeMarker'](_0x18f640['name']);break;}}}}if(0x0==_0xec078b['length'])return null;const _0x549419=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50b278,'join');for(const _0x45a0d1 of this['getSuggestions']())if(_0x45a0d1['author']['id']==_0x46c7ee['id']&&'formatBlock'==_0x45a0d1['type']&&_0x45a0d1['data']['formatGroupId']==_0x27887a['formatGroupId']&&_0x45a0d1['subType']==_0x50b278&&zt(_0x45a0d1,_0x2a8c3e)&&(_0x549419(_0x45a0d1['getRanges'](),_0xec078b)||_0x549419(_0xec078b,_0x45a0d1['getRanges']()))){for(const _0x4a9b11 of _0xec078b)_0x45a0d1['addRange'](_0x4a9b11);return _0x45a0d1;}const _0x4b7800=_0x1cdff5(),_0x671faf=_0x46c7ee['id'],_0x41f328='formatBlock:'+_0x50b278,_0x207328=this['_setSuggestionData']({'id':_0x4b7800,'type':_0x41f328,'data':_0x27887a,'createdAt':new Date(),'authorId':_0x671faf,'attributes':_0x2a8c3e});for(const _0x5a1ab7 of _0xec078b)this['_addSuggestionMarker'](_0x41f328,_0x4b7800,_0x671faf,_0x5a1ab7,u['getMultiRangeId']());return _0x207328;}['markDeletion'](_0x559ebe,_0xb5dc6f=null,_0x198970={}){if(_0x559ebe['isCollapsed'])return null;const _0x8ec7a9=this['editor']['plugins']['get']('Users')['me'],_0x3e7d15=new _0x4fb46f(_0x559ebe['start'],_0x559ebe['end']);for(const {suggestion:_0x1e7f09,meta:_0x5a4055}of this['_findSuggestions'](_0x3e7d15,'insertion'))if(_0x5a4055['isOwn']&&!_0x5a4055['isNextTo']){if(_0x1e7f09['isMultiRange']){const _0x24814e=_0x1e7f09['getRanges']()['filter'](_0x2f600d=>'$graveyard'!=_0x2f600d['root']['rootName']);_0x24814e['every'](_0x562ca0=>_0x3e7d15['containsRange'](_0x562ca0,!0x0))&&_0x1e7f09['discard']();if(_0x24814e['some'](_0x5d5110=>_0x5d5110['containsRange'](_0x3e7d15,!0x0))){const _0x27cb49=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xb5dc6f,'accept');return this['forceDefaultExecution'](()=>_0x27cb49([_0x3e7d15],null,_0x198970)),null;}}else{const _0x2f712e=_0x3e7d15['getIntersection'](_0x1e7f09['getFirstRange']());null!==_0x2f712e&&_0x1e7f09['_onDiscard']([_0x2f712e],null,_0x198970);}}if(_0x3e7d15['detach'](),_0x3e7d15['isCollapsed']||'$graveyard'==_0x3e7d15['root']['rootName'])return null;let _0x23950f=null,_0x229818=_0x3e7d15['start'],_0x15984d=_0x3e7d15['end'];const _0x140ea9=this['_findSuggestions'](_0x3e7d15,'deletion');for(const {suggestion:_0x3a8b04,meta:_0x5b6469}of _0x140ea9){const _0x2e09fa=this['_model']['createRange'](_0x229818,_0x15984d);if(_0x5b6469['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5b6469['containsRangeInObject']&&!_0x5b6469['isInsideObject'])){if(_0x3a8b04['isMultiRange']){if(!zt(_0x3a8b04,_0x198970))continue;let _0x291e6a=!0x0;for(const _0x4010fa of _0x3a8b04['getRanges']()){if(_0x4010fa['containsRange'](_0x2e09fa,!0x0))return _0x3a8b04;_0x2e09fa['containsRange'](_0x4010fa)||(_0x291e6a=!0x1);}_0x291e6a&&_0x3a8b04['discard']();}else{const _0x307677=_0x3a8b04['getFirstRange']();if(_0x307677['containsRange'](_0x2e09fa,!0x0))return _0x3a8b04;if(!zt(_0x3a8b04,_0x198970)){_0x2e09fa['containsRange'](_0x307677)?_0x3a8b04['removeMarkers']():_0x307677['containsPosition'](_0x229818)?_0x229818=_0x307677['end']:_0x307677['containsPosition'](_0x15984d)&&(_0x15984d=_0x307677['start']);continue;}_0x229818=_0x229818['isBefore'](_0x307677['start'])?_0x229818:_0x307677['start'],_0x15984d=_0x15984d['isAfter'](_0x307677['end'])?_0x15984d:_0x307677['end'],_0x198970=Object['assign']({},_0x3a8b04['attributes']),_0x23950f?_0x307677['start']['isBefore'](_0x23950f['getFirstRange']()['start'])?(_0x23950f['removeMarkers'](),_0x23950f=_0x3a8b04):_0x3a8b04['removeMarkers']():_0x23950f=_0x3a8b04;}}}if(_0x23950f)return this['_setSuggestionRange'](_0x23950f,this['_model']['createRange'](_0x229818,_0x15984d)),_0x23950f;{const _0x419cc7=_0x1cdff5(),_0x54e23d=this['_model']['createRange'](_0x229818,_0x15984d),_0x59811d=_0x8ec7a9['id'],_0x446344=_0xb5dc6f?'deletion:'+_0xb5dc6f:'deletion',_0x418a77=this['_setSuggestionData']({'id':_0x419cc7,'type':_0x446344,'createdAt':new Date(),'authorId':_0x59811d,'attributes':_0x198970});return this['_addSuggestionMarker'](_0x446344,_0x419cc7,_0x59811d,_0x54e23d),_0x418a77;}}['markMultiRangeDeletion'](_0x4f86e2,_0x25eca8='multi',_0x41640f={}){const _0x45f0cf=this['editor']['plugins']['get']('Users')['me'],_0x3311d6=_0x4f86e2['map'](_0x50a918=>new _0x4fb46f(_0x50a918['start'],_0x50a918['end'])),_0x15f710=new Set();for(const {suggestion:_0x4e0372,meta:_0x4b237e}of this['_findSuggestions'](_0x3311d6,'insertion'))_0x4b237e['isOwn']&&!_0x4b237e['isNextTo']&&_0x15f710['add'](_0x4e0372);for(const _0x1867ac of _0x15f710)if(_0x1867ac['isMultiRange']){const _0x5c15fa=_0x1867ac['getRanges']();(!_0x1867ac['attributes']||!_0x1867ac['attributes']['skipNestingCheck'])&&(_0x5c15fa['every'](_0x22b091=>_0x3311d6['some'](_0x5a16eb=>_0x5a16eb['containsRange'](_0x22b091,!0x0)))&&_0x1867ac['discard']());if(_0x3311d6['every'](_0x53229d=>_0x5c15fa['some'](_0x484386=>_0x484386['containsRange'](_0x53229d,!0x0)))){const _0x325ee2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25eca8,'accept');return this['forceDefaultExecution'](()=>_0x325ee2(_0x4f86e2,null,_0x41640f)),null;}}else{const _0x3455fd=_0x1867ac['getFirstRange']();_0x3311d6['some'](_0x26f267=>_0x26f267['containsRange'](_0x3455fd,!0x0))&&_0x1867ac['discard']();if(_0x3311d6['every'](_0x4c85d8=>_0x3455fd['containsRange'](_0x4c85d8,!0x0))){const _0x1e61be=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25eca8,'accept');return this['forceDefaultExecution'](()=>_0x1e61be(_0x3311d6,null,_0x41640f)),null;}}const _0x5a1f35=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25eca8,'join');let _0x734f80=null;for(const _0x2ce3fa of this['getSuggestions']())if(_0x2ce3fa['author']['id']==_0x45f0cf['id']&&_0x2ce3fa['isInContent']&&'deletion'==_0x2ce3fa['type']&&_0x2ce3fa['subType']==_0x25eca8&&zt(_0x2ce3fa,_0x41640f)&&(_0x5a1f35(_0x2ce3fa['getRanges'](),_0x3311d6)||_0x5a1f35(_0x3311d6,_0x2ce3fa['getRanges']()))){if(_0x734f80){if(_0x2ce3fa['commentThread']&&_0x2ce3fa['commentThread']['length'])continue;for(const _0x1aaa83 of _0x2ce3fa['getRanges']())_0x734f80['isIntersectingWithRange'](_0x1aaa83)||_0x734f80['addRange'](_0x1aaa83);_0x2ce3fa['removeMarkers']();}else{_0x734f80=_0x2ce3fa;for(const _0x4c2bbe of _0x3311d6)_0x2ce3fa['isIntersectingWithRange'](_0x4c2bbe)||_0x2ce3fa['addRange'](_0x4c2bbe);}}if(_0x734f80)return _0x734f80;_0x15f710['clear']();for(const {suggestion:_0x22804e,meta:_0x94c210}of this['_findSuggestions'](_0x3311d6,'deletion'))_0x94c210['isOwn']&&(this['_mergeNestedSuggestions']||!_0x94c210['containsRangeInObject']&&!_0x94c210['isInsideObject'])&&zt(_0x22804e,_0x41640f)&&_0x15f710['add'](_0x22804e);for(const _0x3fc68d of _0x15f710){const _0x23b055=_0x3fc68d['getRanges']();if(!_0x41640f||!_0x41640f['skipNestingCheck']){if(_0x3311d6['every'](_0x1be23c=>_0x23b055['some'](_0x248727=>_0x248727['containsRange'](_0x1be23c,!0x0))))return _0x3fc68d;}(!_0x3fc68d['attributes']||!_0x3fc68d['attributes']['skipNestingCheck'])&&(_0x23b055['every'](_0x30e80a=>_0x3311d6['some'](_0x501d3f=>_0x501d3f['containsRange'](_0x30e80a,!0x0)))&&_0x3fc68d['discard']());}const _0x1994b2=_0x1cdff5(),_0x3170f6=_0x45f0cf['id'],_0x2e0630='deletion:'+_0x25eca8,_0x46c7c3=this['_setSuggestionData']({'id':_0x1994b2,'type':_0x2e0630,'createdAt':new Date(),'authorId':_0x3170f6,'attributes':_0x41640f});for(const _0x2c495f of _0x3311d6)_0x2c495f['detach'](),_0x2c495f['isCollapsed']||'$graveyard'==_0x2c495f['root']['rootName']||this['_addSuggestionMarker'](_0x2e0630,_0x1994b2,_0x3170f6,_0x2c495f,u['getMultiRangeId']());return _0x46c7c3;}['markAttributeChange'](_0x249b00,_0x5200be,_0x425f82,_0x1c274a,_0x221def){if(_0x249b00['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x42fe0b=this['editor']['plugins']['get']('Users')['me']['id'],_0x29c6b8=Array['from'](this['_suggestions']['values']())['filter'](_0xe67716=>'attribute'==_0xe67716['type']&&_0xe67716['data']['key']==_0x5200be&&_0xe67716['isIntersectingWithRange'](_0x249b00));if('default'===this['_trackFormatChanges']){const _0x36a801=this['_findSuggestions'](_0x249b00,'insertion')['filter'](({meta:_0x2f3a97})=>_0x2f3a97['isOwn']&&!_0x2f3a97['isInsideObject']&&!_0x2f3a97['isNextTo'])['map'](({suggestion:_0x6c68e})=>_0x6c68e);_0x29c6b8['unshift'](..._0x36a801);}const _0x5e797e=new Map([[_0x249b00,_0x425f82]]);for(const _0x1cadb0 of _0x29c6b8){const _0x95288f='attribute'==_0x1cadb0['type']?_0x1cadb0['data']['oldValue']:void 0x0,_0x186662=_0x1cadb0['getFirstRange'](),_0x100d04=Array['from'](_0x5e797e['keys']())['find'](_0x1a4e19=>_0x1a4e19['isIntersecting'](_0x186662));if(!_0x100d04)continue;const _0x55177b=_0x100d04['getDifference'](_0x186662);this['_isBlockAttribute'](_0x5200be)&&'insertion'==_0x1cadb0['type']&&0x0!=_0x55177b['length']||(_0x5e797e['delete'](_0x100d04),_0x55177b['forEach'](_0x3466ef=>{_0x5e797e['set'](_0x3466ef,_0x425f82);}),'insertion'!=_0x1cadb0['type']&&_0x95288f!=_0x1c274a&&_0x5e797e['set'](_0x100d04['getIntersection'](_0x186662),_0x95288f));}const _0x39b6ae=[];for(const [_0x4de669,_0x5d68c3]of _0x5e797e){const _0x4ca9e9=_0x1cdff5(),_0x441ecb={'key':_0x5200be,'oldValue':_0x5d68c3,'newValue':_0x1c274a};_0x5200be['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':_0x5200be});const _0x5b2b99=('attribute:'+(_0x5200be+'|'+Gt({'newValue':_0x1c274a})))['substring'](0x0,0x3c),_0x349fd4=this['_setSuggestionData']({'id':_0x4ca9e9,'type':_0x5b2b99,'data':_0x441ecb,'createdAt':new Date(),'authorId':_0x42fe0b,'attributes':_0x221def});_0x39b6ae['push'](_0x349fd4),this['_addSuggestionMarker'](_0x5b2b99,_0x4ca9e9,_0x42fe0b,_0x4de669);}return _0x39b6ae;}['enableDefaultAttributesIntegration'](_0x2d613f){this['enableCommand'](_0x2d613f,(_0x46f0d7,..._0x56b00b)=>{this['_recordAttributeChanges'](()=>{_0x46f0d7(..._0x56b00b);});});}['registerBlockAttribute'](_0x3c093){this['_blockAttributeKeys']['add'](_0x3c093);}['registerInlineAttribute'](_0x3aff8a){this['_inlineAttributeKeys']['add'](_0x3aff8a);}['_getAttributeKey'](_0x14eee9){return'attribute'==_0x14eee9['type']?_0x14eee9['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x431481,_0x484477){const _0x15d73f=_0x431481['getFirstMarker']();this['_model']['change'](_0x3d531a=>{_0x3d531a['updateMarker'](_0x15d73f,{'range':_0x484477});});}['_addThreadToSuggestion'](_0x354635){const _0x4f8591=_0x354635['id'],_0x5455ee=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4f8591)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5455ee,'threadId':_0x4f8591,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x186010=this['_commentsRepository']['getCommentThread'](_0x4f8591);_0x186010['unbind']('isRemovable'),_0x186010['isRemovable']=!0x1,_0x354635['commentThread']=_0x186010;}['_checkSuggestionCorrectness'](_0x11de48,_0x156d1c,_0x543460,_0x38136b){if(_0x11de48['type']!=_0x156d1c||_0x11de48['subType']!=_0x543460||_0x11de48['creator']['id']!=_0x38136b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1c48ec('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x31d3c3,_0x37460a){const _0x4037d7=_0x31d3c3['getFirstRange']();if(_0x37460a['isEqual'](_0x4037d7))_0x31d3c3['removeMarkers']();else{if(_0x4037d7['containsRange'](_0x37460a)){const _0x925784=this['_model']['createPositionAt'](_0x37460a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31d3c3,this['_model']['createRange'](_0x4037d7['start'],_0x925784));const _0x2b53fa=_0x1cdff5(),_0x41ec7c=_0x31d3c3['creator']['id'],_0x35b3f0=_0x31d3c3['type']+':'+_0x31d3c3['subType'];this['_setSuggestionData']({'id':_0x2b53fa,'type':_0x35b3f0,'createdAt':new Date(),'authorId':_0x41ec7c,'data':_0x31d3c3['data'],'attributes':_0x31d3c3['attributes']});const _0x4306bf=this['_model']['createPositionAt'](_0x37460a['end']['parent'],'after'),_0x591560=this['_model']['createRange'](_0x4306bf,_0x4037d7['end']);this['_addSuggestionMarker'](_0x35b3f0,_0x2b53fa,_0x41ec7c,_0x591560);}else{if(_0x4037d7['containsPosition'](_0x37460a['start'])){const _0x63307f=this['_model']['createPositionAt'](_0x37460a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31d3c3,this['_model']['createRange'](_0x4037d7['start'],_0x63307f));}else{const _0x18199c=this['_model']['createPositionAt'](_0x37460a['end']['parent'],'after');this['_setSuggestionRange'](_0x31d3c3,this['_model']['createRange'](_0x18199c,_0x4037d7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x43c8b0){for(const {suggestion:_0x8dc2dd,meta:_0x2fda6e}of this['_findSuggestions'](_0x43c8b0,'insertion')){if(!_0x2fda6e['isOwn'])continue;const _0x127ee3=_0x8dc2dd['getRanges']();for(const _0x4b7246 of _0x127ee3)if(!_0x43c8b0['getDifference'](_0x4b7246)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1dd361){const _0x4bd976=this['editor']['plugins']['get']('Users')['getUser'](_0x1dd361);if(!_0x4bd976)throw new _0x1c48ec('track-changes-user-not-found',this);return _0x4bd976;}['_getExternalAuthor'](_0x53a7df){const _0x341c31=this['editor']['plugins']['get']('Users'),_0x1502cd=_0x48010a('external:'+_0x53a7df),_0x2dbc32=_0x341c31['getUser'](_0x1502cd);return _0x2dbc32||_0x341c31['addUser']({'id':_0x1502cd,'name':_0x53a7df});}['_createSuggestion'](_0x3d0c6d,_0x5ad1cc,_0x4e3f19,_0x5be40c,_0x4d1acf){const _0x1c2344=this['_getAuthorFromId'](_0x5be40c),_0x37f7a5=this['_suggestionFactory']['buildSuggestion'](_0x3d0c6d,_0x5ad1cc,_0x4e3f19,_0x1c2344,_0x4d1acf,_0x1bcb43=>{this['_updateSuggestionData'](_0x4e3f19,{'attributes':_0x1bcb43});const _0x123865=this['getSuggestion'](_0x4e3f19);this['_joinWithAdjacentSuggestions'](new Set([_0x123865])),this['_refreshSuggestionsChain'](new Set([_0x123865]));});return this['listenTo'](_0x37f7a5,'accept',()=>{this['_updateSuggestionData'](_0x4e3f19,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x37f7a5,'discard',()=>{this['_updateSuggestionData'](_0x4e3f19,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4e3f19,_0x37f7a5),this['_suggestionState']['set'](_0x37f7a5,'notReady'),_0x37f7a5;}['_splitMarkerName'](_0xcc943e){const _0x23368f=_0xcc943e['split'](':');return{'group':_0x23368f[0x0],'type':_0x23368f[0x1],'subType':_0x23368f['length']>=0x5?_0x23368f[0x2]:null,'id':_0x23368f['length']<0x5?_0x23368f[0x2]:_0x23368f[0x3],'authorId':_0x23368f['length']<0x5?_0x23368f[0x3]:_0x23368f[0x4],'markerCount':0x6==_0x23368f['length']?_0x23368f[0x5]:null};}['_breakSuggestionMarker'](_0x3297e3,_0x7481b7,_0x8c7e1){const _0x114fb6=_0x3297e3['getFirstRange'](),_0x2f32a9=_0x114fb6['start'],_0x109299=_0x114fb6['end'];this['_setSuggestionRange'](_0x3297e3,this['_model']['createRange'](_0x2f32a9,_0x7481b7));const _0x3a8ec3=_0x1cdff5(),_0xd36ebf=_0x3297e3['creator']['id'],_0x5964b4=_0x3297e3['type']+(_0x3297e3['subType']?':'+_0x3297e3['subType']:'');this['_setSuggestionData']({'id':_0x3a8ec3,'type':_0x5964b4,'createdAt':new Date(),'authorId':_0xd36ebf,'originalSuggestionId':_0x3297e3['id'],'attributes':_0x3297e3['attributes'],'data':_0x3297e3['data']});const _0x5f3f5e=this['_getAttributeKey'](_0x3297e3);('formatBlock'==_0x3297e3['type']||_0x5f3f5e&&this['_isBlockAttribute'](_0x5f3f5e))&&(_0x8c7e1=this['_model']['createPositionBefore'](_0x8c7e1['parent'])),this['_addSuggestionMarker'](_0x5964b4,_0x3a8ec3,_0xd36ebf,this['_model']['createRange'](_0x8c7e1,_0x109299));}['_findSuggestions'](_0x35d9a2,_0x1d2a67=null){const _0x3834f5=[],_0x3dd3a7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x35d9a2)||(_0x35d9a2=[_0x35d9a2]);for(const _0xdde004 of this['getSuggestions']()){if(!_0xdde004['isInContent'])continue;if(_0x1d2a67&&_0xdde004['type']!=_0x1d2a67)continue;let _0x3a4bca=!0x1;for(const _0x409d82 of _0xdde004['getRanges']()){for(const _0x351807 of _0x35d9a2){const _0x27cfb5=_0x351807['start']['isEqual'](_0x409d82['end'])||_0x351807['end']['isEqual'](_0x409d82['start']);if(_0x27cfb5||_0x351807['getIntersection'](_0x409d82)){const _0x43d228=_0x351807['containsRange'](_0x409d82)&&Ut(this['_model']['schema'],_0x409d82['start'],_0x351807),_0x9545bd=_0x409d82['containsRange'](_0x351807)&&Ut(this['_model']['schema'],_0x351807['start'],_0x409d82);_0x3834f5['push']({'suggestion':_0xdde004,'meta':{'isOwn':_0x3dd3a7==_0xdde004['author'],'isNextTo':_0x27cfb5,'isInsideObject':_0x43d228,'containsRangeInObject':_0x9545bd}}),_0x3a4bca=!0x0;break;}}if(_0x3a4bca)break;}}return _0x3834f5;}['_addSuggestionMarker'](_0x264231,_0x44a5af,_0x26f62b,_0x2c0de8,_0xbc114){this['_model']['change'](_0x32ac43=>{let _0x1a0148='suggestion:'+_0x264231+':'+_0x44a5af+':'+_0x26f62b;_0xbc114&&(_0x1a0148=_0x1a0148+':'+_0xbc114),_0x32ac43['addMarker'](_0x1a0148,{'range':_0x2c0de8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1fa04c){const _0xf6b783=_0x1fa04c['previous'],_0x4c40cc=_0x1fa04c['next'];_0x1fa04c['previous']=null,_0x1fa04c['next']=null,null!=_0xf6b783&&_0xf6b783['next']==_0x1fa04c&&(_0xf6b783['next']=_0x4c40cc),null!=_0x4c40cc&&_0x4c40cc['previous']==_0x1fa04c&&(_0x4c40cc['previous']=_0xf6b783),'ready'==this['_suggestionState']['get'](_0x1fa04c)&&(this['_suggestionState']['set'](_0x1fa04c,'removed'),this['fire']('suggestionUnloaded',_0x1fa04c,_0xf6b783,_0x4c40cc));}['_setSuggestionData'](_0x541381){const _0x5b2c7c=_0x541381['id'],_0x24f44a=this['addSuggestionData'](_0x541381);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2591a9=this['editor']['plugins']['get']('PendingActions'),_0x8fa2a5=_0x24f44a['hasComments'],_0x3ebf9d=_0x24f44a['subType']?_0x24f44a['type']+':'+_0x24f44a['subType']:_0x24f44a['type'],_0x118b1c=this['editor']['locale'],_0x1c11c5=_0x2591a9['add'](o(_0x118b1c,'PENDING_ACTION_SUGGESTION')),_0x2ef2f7={'id':_0x5b2c7c,'type':_0x3ebf9d,'hasComments':_0x8fa2a5,'data':_0x541381['data']||null,'originalSuggestionId':_0x541381['originalSuggestionId']||null,'attributes':_0x24f44a['attributes']};this['_adapter']['addSuggestion'](_0x2ef2f7)['then'](_0x2ca9fe=>{_0x24f44a['_saved']=!0x0,_0x2591a9['remove'](_0x1c11c5),_0x2ca9fe&&_0x2ca9fe['createdAt']&&(this['_suggestions']['get'](_0x5b2c7c)['createdAt']=_0x2ca9fe['createdAt']);})['catch'](_0x4a944f=>{throw _0x394b65('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x24f44a['discard']();}),_0x24f44a['stopListening'](),this['_suggestions']['delete'](_0x24f44a['id']),this['_suggestionState']['delete'](_0x24f44a),_0x4a944f;});}return _0x24f44a;}['_isBlockAttribute'](_0x399508){return this['_blockAttributeKeys']['has'](_0x399508);}['_updateSuggestionData'](_0x2957e0,_0xfcf64d){const _0x351e4a=this['editor']['plugins']['get']('PendingActions'),_0x386aa9=this['getSuggestion'](_0x2957e0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x386aa9['_saved']){const _0x21e248=_0x351e4a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2957e0,_0xfcf64d)['then'](()=>{_0x351e4a['remove'](_0x21e248);});}else _0x386aa9['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2957e0,_0xfcf64d);});}}['_getSuggestionData'](_0x22dba5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1c48ec('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x22dba5);}['_handleNewSuggestionMarker'](_0x3b9afd){const {id:_0x198493,type:_0x312ed5,subType:_0x10d2f8,authorId:_0x4c2090}=this['_splitMarkerName'](_0x3b9afd),_0x3d3a14=this['_suggestions']['get'](_0x198493)||this['_createSuggestion'](_0x312ed5,_0x10d2f8,_0x198493,_0x4c2090,{});switch(this['_checkSuggestionCorrectness'](_0x3d3a14,_0x312ed5,_0x10d2f8,_0x4c2090),this['_suggestionState']['get'](_0x3d3a14)){case'notReady':this['_getSuggestionData'](_0x198493)['then'](_0x167751=>{let _0x2a1fc1=Promise['resolve']();_0x167751['hasComments']&&(_0x2a1fc1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x198493})),_0x2a1fc1['then'](()=>{this['addSuggestionData'](_0x167751)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3d3a14,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x198493,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3d3a14,'ready'),this['fire']('suggestionLoaded',_0x3d3a14);break;case'ready':this['fire']('suggestionChanged',_0x3d3a14);}return _0x3d3a14['addMarkerName'](_0x3b9afd),_0x3d3a14;}['_refreshSuggestionsChain'](_0xa506c9){const _0x1656c5=Array['from'](_0xa506c9),_0x5607e7=_0x1656c5['filter'](_0x27779a=>'attribute'==_0x27779a['type']);this['_refreshAttributeSuggestionsChain'](_0x5607e7);const _0x36f529=_0x1656c5['filter'](_0x3dcd9c=>!_0x3dcd9c['isMultiRange']&&'attribute'!=_0x3dcd9c['type']),_0x999c4f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49b804=>!_0x49b804['isMultiRange']&&'attribute'!=_0x49b804['type']),_0x4efcca=_0x999c4f['filter'](_0x6e36db=>!_0xa506c9['has'](_0x6e36db)),_0x204850=new Map(_0x999c4f['map'](_0x13a42f=>[_0x13a42f,this['_suggestionFactory']['getSuggestionCallback'](_0x13a42f['type'],_0x13a42f['subType'],'chain')])),_0x2b1749=new Map(_0x999c4f['map'](_0x342c61=>[_0x342c61,_0x342c61['getFirstRange']()])),_0x3ef277=new Set(),_0x209756=new Set();for(let _0xa7b418=0x0;_0xa7b418<_0x36f529['length'];_0xa7b418++)_0xd3945d(_0x36f529[_0xa7b418],_0x36f529,_0xa7b418+0x1);for(let _0x209e59=0x0;_0x209e59<_0x36f529['length'];_0x209e59++)_0xd3945d(_0x36f529[_0x209e59],_0x4efcca,0x0);const _0x106456=new Set();for(let _0x1812ec=0x0;_0x1812ec<_0x36f529['length'];_0x1812ec++){const _0x23c6d3=_0x36f529[_0x1812ec];!_0x209756['has'](_0x23c6d3)&&_0x23c6d3['previous']&&(_0x106456['add'](_0x23c6d3['previous']),_0x23c6d3['previous']['next']===_0x23c6d3&&(_0x23c6d3['previous']['next']=null),_0x23c6d3['previous']=null),!_0x3ef277['has'](_0x23c6d3)&&_0x23c6d3['next']&&(_0x106456['add'](_0x23c6d3['next']),_0x23c6d3['next']['previous']===_0x23c6d3&&(_0x23c6d3['next']['previous']=null),_0x23c6d3['next']=null);}function _0xd3945d(_0x36726d,_0x3692da,_0x5427bb){for(let _0x187253=_0x5427bb;_0x187253<_0x3692da['length'];_0x187253++){const _0x242ac0=_0x2c9800(_0x36726d,_0x3692da[_0x187253]);_0x242ac0&&(_0x242ac0[0x0]['next']=_0x242ac0[0x1],_0x242ac0[0x1]['previous']=_0x242ac0[0x0],_0x3ef277['add'](_0x242ac0[0x0]),_0x209756['add'](_0x242ac0[0x1]));}}function _0x2c9800(_0x63e218,_0x1420bd){if(_0x63e218['author']['id']!==_0x1420bd['author']['id'])return null;const _0x4562dd=_0x204850['get'](_0x63e218)(_0x63e218,_0x1420bd,_0x2b1749['get'](_0x63e218),_0x2b1749['get'](_0x1420bd));if(!_0x4562dd)return null;return _0x204850['get'](_0x1420bd)(_0x63e218,_0x1420bd,_0x2b1749['get'](_0x63e218),_0x2b1749['get'](_0x1420bd))?_0x4562dd[0x1]['commentThread']&&_0x4562dd[0x1]['commentThread']['length']?null:_0x4562dd:null;}_0x106456['size']&&this['_refreshSuggestionsChain'](_0x106456);}['_refreshAttributeSuggestionsChain'](_0x41a67c){if(0x0==_0x41a67c['length'])return;const _0x2b100b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a75e5=>'attribute'==_0x1a75e5['type']&&_0x1a75e5['_isDataLoaded']),_0x2162a5=[],_0x25731a=new Map();for(const _0x42dd66 of _0x2b100b){const _0x204b2a=_0x48010a(_0x42dd66['attributes']);_0x25731a['has'](_0x204b2a)||(_0x25731a['set'](_0x204b2a,_0x2162a5['length']),_0x2162a5['push']([]));const _0xf998e5=_0x25731a['get'](_0x204b2a);_0x2162a5[_0xf998e5]['push'](_0x42dd66);}!(function(){_0x2162a5['sort']((_0x48718e,_0x44b827)=>{const _0x1d9328=_0x48718e[0x0]['createdAt'],_0x32f9fd=_0x44b827[0x0]['createdAt'];return _0x1d9328==_0x32f9fd?_0x48718e[0x0]['attributes']['groupId']<_0x44b827[0x0]['attributes']['groupId']?-0x1:0x1:_0x1d9328<_0x32f9fd?-0x1:0x1;});for(const _0x4be7ad of _0x2162a5)_0x4be7ad['sort']((_0x400cd8,_0x30d16a)=>_0x400cd8['id']<_0x30d16a['id']?-0x1:0x1);}());for(let _0x2cae11=0x0;_0x2cae11<_0x2162a5['length'];_0x2cae11++){if(0x0==_0x2162a5[_0x2cae11]['length'])continue;const _0x22199e=[];for(let _0x5e0135=_0x2cae11+0x1;_0x5e0135<_0x2162a5['length'];_0x5e0135++)0x0!=_0x2162a5[_0x5e0135]['length']&&_0x4e0a28(_0x2162a5[_0x2cae11],_0x2162a5[_0x5e0135])&&_0x22199e['push'](_0x5e0135);for(const _0x22c8a3 of _0x22199e)_0x2162a5[_0x2cae11]=_0x2162a5[_0x2cae11]['concat'](_0x2162a5[_0x22c8a3]),_0x2162a5[_0x22c8a3]=[];}for(const _0x33bebb of _0x2162a5)for(let _0x187cb2=0x0;_0x187cb2<_0x33bebb['length'];_0x187cb2++){const _0x2932b0=_0x33bebb[_0x187cb2+0x1]||null;_0x33bebb[_0x187cb2]['next']!==_0x2932b0&&(_0x33bebb[_0x187cb2]['next']=_0x2932b0);}for(const _0x4ce7c1 of _0x2162a5)for(let _0x132b33=0x0;_0x132b33<_0x4ce7c1['length'];_0x132b33++){const _0x9c704c=_0x4ce7c1[_0x132b33-0x1]||null;_0x4ce7c1[_0x132b33]['previous']!==_0x9c704c&&(_0x4ce7c1[_0x132b33]['previous']=_0x9c704c);}function _0x4e0a28(_0x2f7a52,_0x1c3f2a){if(_0x2f7a52[0x0]['attributes']['groupId']!==_0x1c3f2a[0x0]['attributes']['groupId']&&_0x2f7a52[0x0]['author']!==_0x1c3f2a[0x0]['author'])return!0x1;if(!function(_0x235b95,_0x47371e){if(!_0x235b95['hasComments']&&!_0x47371e['hasComments'])return!0x0;if(_0x235b95['hasComments']&&_0x47371e['hasComments'])return!0x1;if(_0x235b95['hasComments']&&_0x47371e['createdAt']<_0x235b95['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x47371e['hasComments']&&_0x235b95['createdAt']<_0x47371e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2f7a52[0x0],_0x1c3f2a[0x0]))return!0x1;const _0x30a780=xt(_0x2f7a52[0x0]['attributes'],'groupId'),_0x473dad=xt(_0x1c3f2a[0x0]['attributes'],'groupId');if(!_0x4700ac(_0x30a780,_0x473dad))return!0x1;return!!_0x2f7a52['every'](_0x3d0a0f=>_0x1c3f2a['some'](_0x5bec73=>_0x3d0a0f['getFirstRange']()['isEqual'](_0x5bec73['getFirstRange']())))&&_0x1c3f2a['every'](_0x558313=>_0x2f7a52['some'](_0x359496=>_0x558313['getFirstRange']()['isEqual'](_0x359496['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x7702b7){const _0x3ccb1b=Array['from'](_0x7702b7),_0x32794a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x7370ea=_0x32794a['filter'](_0x5d00c1=>!_0x7702b7['has'](_0x5d00c1)),_0x4446e2=new Map(_0x3ccb1b['map'](_0x3e971a=>[_0x3e971a,this['_suggestionFactory']['getSuggestionCallback'](_0x3e971a['type'],_0x3e971a['subType'],'join')])),_0x4f4000=new Map(_0x32794a['map'](_0x4acd82=>[_0x4acd82,_0x4acd82['getRanges']()]));for(let _0x21a52f=0x0;_0x21a52f<_0x3ccb1b['length'];_0x21a52f++){if(_0x50e10a(this,_0x3ccb1b[_0x21a52f],_0x3ccb1b,_0x21a52f+0x1))return!0x0;}for(let _0x2bbc59=0x0;_0x2bbc59<_0x3ccb1b['length'];_0x2bbc59++){if(_0x50e10a(this,_0x3ccb1b[_0x2bbc59],_0x7370ea,0x0))return!0x0;}return!0x1;function _0x50e10a(_0x1b932d,_0x4d8f7c,_0x168177,_0x74df4e){for(let _0x5d5651=_0x74df4e;_0x5d5651<_0x168177['length'];_0x5d5651++){const _0x3dad04=_0x168177[_0x5d5651];if(_0x3dad04['type']!==_0x4d8f7c['type']||_0x3dad04['author']['id']!==_0x4d8f7c['author']['id']||_0x3dad04['subType']!==_0x4d8f7c['subType'])continue;if(!qt(_0x4d8f7c,_0x3dad04))continue;if('attribute'==_0x4d8f7c['type']&&_0x4d8f7c['data']['oldValue']!=_0x3dad04['data']['oldValue'])continue;if('attribute'==_0x4d8f7c['type']&&_0x1b932d['_isBlockAttribute'](_0x4d8f7c['data']['key']))continue;if('formatBlock'==_0x4d8f7c['type']){const _0x112b89=_0x1b932d['editor']['model'],_0x7006f4=_0x4d8f7c['getContainedElement']();if(_0x7006f4&&(_0x112b89['schema']['isObject'](_0x7006f4)||_0x112b89['schema']['isLimit'](_0x7006f4)))continue;}const _0x5701a2=_0x4446e2['get'](_0x4d8f7c),_0x14e1bb=_0x4f4000['get'](_0x4d8f7c),_0x4cd2e8=_0x4f4000['get'](_0x3dad04),_0x50eda1=_0x4d8f7c['commentThread']&&_0x4d8f7c['commentThread']['length'],_0x38fd20=_0x3dad04['commentThread']&&_0x3dad04['commentThread']['length'];if(!_0x50eda1&&_0x5701a2(_0x4cd2e8,_0x14e1bb))return _0x1b932d['_joinSuggestions'](_0x3dad04,_0x4d8f7c),_0x4f4000['delete'](_0x4d8f7c),!0x0;if(!_0x38fd20&&_0x5701a2(_0x14e1bb,_0x4cd2e8))return _0x1b932d['_joinSuggestions'](_0x4d8f7c,_0x3dad04),_0x4f4000['delete'](_0x3dad04),!0x0;}return!0x1;}}['_joinSuggestions'](_0x37c226,_0x4d6c3c){if(_0x37c226['isMultiRange']){for(const _0x164c1e of _0x4d6c3c['getRanges']())_0x37c226['addRange'](_0x164c1e);}else{const _0x520a3a=_0x4d6c3c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x37c226,this['_model']['createRange'](_0x37c226['getFirstRange']()['start'],_0x520a3a));}_0x4d6c3c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1efc60,_0x29aa6c,_0x52ee99){const _0x21ec5b=_0x1efc60['startsWith']('format')||_0x1efc60['startsWith']('attribute')?'FORMATTING':_0x1efc60['toUpperCase']();return o(this['editor']['locale'],_0x29aa6c+'_'+_0x21ec5b+'_SUGGESTION_ANNOUNCEMENT',_0x52ee99);}['_initAriaMarkerChangeAnnouncements'](){const _0x2f42c9=this['editor'];if(!_0x2f42c9['ui'])return;const {ariaLiveAnnouncer:_0x29c29e}=_0x2f42c9['ui'];_0x452a5d(this['_model'],({left:_0x4dcf38,entered:_0x3446da})=>{for(const _0xb91c89 of _0x4dcf38){const {group:_0x407e08,type:_0x5893dd}=this['_splitMarkerName'](_0xb91c89['name']);if('suggestion'===_0x407e08){_0x29c29e['announce'](this['_getMarkerAnnouncementText'](_0x5893dd,'LEAVE'));break;}}for(const _0x356d2a of _0x3446da){const {group:_0x1c35e7,type:_0x2579e0}=this['_splitMarkerName'](_0x356d2a['name']);if('suggestion'===_0x1c35e7){_0x29c29e['announce'](this['_getMarkerAnnouncementText'](_0x2579e0,'ENTER',_0x353a89(_0x2bee45)));break;}}});}['_processAttributeChanges'](_0x57a2f8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x45cfbd=this['editor'],_0x40a70e=_0x45cfbd['model']['document']['differ']['getChanges']();if(0x0==_0x40a70e['length'])return!0x1;const _0x5dc7ae=[],_0x5a1d01=_0x40a70e['filter'](_0x1b1688=>'attribute'==_0x1b1688['type']),_0x1d11f7=_0x40a70e['filter'](_0x1ab8c4=>'insert'==_0x1ab8c4['type']&&'$text'!=_0x1ab8c4['name']),_0x29bb37=_0x40a70e['filter'](_0x14888b=>'remove'==_0x14888b['type']&&'$text'!=_0x14888b['name']);for(const _0x16b33a of _0x5a1d01)_0x5dc7ae['push']({'key':_0x16b33a['attributeKey'],'newValue':_0x16b33a['attributeNewValue'],'oldValue':_0x16b33a['attributeOldValue'],'range':Lt(_0x16b33a['range'],_0x45cfbd['model'])});for(const _0x34c9cf of _0x1d11f7){const _0x817673=_0x29bb37['find'](_0x2befac=>_0x2befac['position']['isEqual'](_0x34c9cf['position']));_0x817673&&_0x5dc7ae['push']({'key':m,'newValue':_0x34c9cf['name'],'oldValue':_0x817673['name'],'range':_0x45cfbd['model']['createRangeOn'](_0x34c9cf['position']['nodeAfter'])});}return 0x0!=_0x5dc7ae['length']&&this['_reduceExistingSuggestions'](_0x57a2f8,_0x5dc7ae);}['_processAttributeSuggestions'](_0x42b7dd){let _0x2b5006=!0x1;const _0x55d416=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa69023=>_0xa69023['data']['newRange']&&_0xa69023['name']['startsWith']('suggestion:attribute:'));for(const _0x1af1a9 of _0x55d416){const {subType:_0x4907de,id:_0x1269f6}=this['_splitMarkerName'](_0x1af1a9['name']),_0x63c6ac=_0x4907de['split']('|')[0x0];for(const _0x35e247 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x35e247['id']!=_0x1269f6&&'attribute'==_0x35e247['type']&&_0x35e247['data']&&_0x35e247['data']['key']==_0x63c6ac&&_0x35e247['getFirstRange']()['isIntersecting'](_0x1af1a9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x35e247,_0x1af1a9['data']['newRange'],_0x42b7dd),_0x2b5006=!0x0);}return _0x2b5006;}['_recordAttributeChanges'](_0x3b3a5f){this['_recordAttributeSuggestions']=!0x0,_0x3b3a5f();}['_isRegisteredAttribute'](_0x5f429e){const _0x49c9ae=this['_isBlockAttribute'](_0x5f429e),_0x1ae6d7=this['_inlineAttributeKeys']['has'](_0x5f429e);return _0x49c9ae||_0x1ae6d7;}['_reduceExistingSuggestions'](_0x218d32,_0x27149a){if(0x0==_0x27149a['length'])return!0x1;let _0x5dafa8=!0x1;for(const _0x2a30ff of _0x27149a){const _0x5d2c86=this['_findSuggestions'](_0x2a30ff['range'],'attribute')['filter'](_0x3b2cda=>!_0x3b2cda['meta']['isNextTo'])['map'](_0x5aa5fb=>_0x5aa5fb['suggestion']),_0x358b27=_0x48010a({'newValue':_0x2a30ff['newValue']});_0x5d2c86['filter'](_0x35d891=>{const [_0xe1442c,_0x3743ff]=_0x35d891['subType']['split']('|');return _0xe1442c==_0x2a30ff['key']&&_0x3743ff!=_0x358b27;})['forEach'](_0x5a7828=>{this['_reduceSuggestionAttributeRange'](_0x5a7828,_0x2a30ff['range'],_0x218d32),_0x5dafa8=!0x0;});}return _0x5dafa8;}['_reduceSuggestionAttributeRange'](_0x575072,_0x4c81c7,_0x3e1cc8){const _0x2ad648=_0x575072['getFirstRange']()['getDifference'](_0x4c81c7);0x0!==_0x2ad648['length']?0x1!==_0x2ad648['length']?this['_breakSuggestionMarker'](_0x575072,_0x4c81c7['start'],_0x4c81c7['end']):this['_setSuggestionRange'](_0x575072,_0x2ad648[0x0]):_0x3e1cc8['removeMarker'](_0x575072['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x360113){this['_editor']=_0x360113,this['_model']=_0x360113['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1266cd,_0x117148,_0x131e8f,_0xbd1aa4,_0xc3409f,_0x46915e){return new u(this['_model'],{'type':_0x1266cd,'subType':_0x117148,'id':_0x131e8f,'author':_0xbd1aa4,'creator':_0xbd1aa4,'attributes':_0xc3409f,'onAttributesChange':_0x46915e,'onAccept':(..._0x482f71)=>this['getSuggestionCallback'](_0x1266cd,_0x117148,'accept')(..._0x482f71),'onDiscard':(..._0x25d5f5)=>this['getSuggestionCallback'](_0x1266cd,_0x117148,'discard')(..._0x25d5f5)});}['registerCustomCallback'](_0x4adab6,_0xb3a3fc,_0x1f423d,_0x33fbc5){const _0x51e53d=_0x4adab6+':'+_0xb3a3fc+':'+_0x1f423d;this['_customCallbacks']['set'](_0x51e53d,_0x33fbc5);}['getSuggestionCallback'](_0x3a5830,_0x540fa1,_0x527201){const _0x43d493=_0x3a5830+':'+_0x540fa1+':'+_0x527201;return this['_customCallbacks']['get'](_0x43d493)||this['_defaultCallbacks']['get'](_0x3a5830+':'+_0x527201);}['_registerDefaultCallbacks'](){const _0x3f22db=()=>!0x1,_0x144bcf=_0xfc0266=>{_0xfc0266['sort']((_0xc1a1f7,_0x573e6b)=>_0xc1a1f7['start']['isBefore'](_0x573e6b['start'])?0x1:-0x1),this['_model']['change'](_0x50ca02=>{for(const _0x239685 of _0xfc0266){let _0x85be99;_0x85be99=_0x239685['end']['isAtEnd']&&_0x239685['end']['parent']==_0x239685['start']['nodeAfter']?_0x50ca02['createSelection'](_0x239685['start']['nodeAfter'],'on'):_0x50ca02['createSelection'](_0x239685),this['_model']['deleteContent'](_0x85be99,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x421ff2=(_0x145d44,_0x1cf4d3)=>{_0x1cf4d3&&this['_model']['change'](_0x251426=>{const {commandName:_0x623927,commandParams:_0x4d4221=[]}=_0x1cf4d3,_0x3afe3d=_0x145d44['map'](_0x2dac93=>(Vt(_0x2dac93)&&(_0x2dac93=this['_model']['createRange'](_0x2dac93['end'])),_0x2dac93))['filter'](_0x24c256=>'$graveyard'!==_0x24c256['root']['rootName']);if(_0x3afe3d['length']<0x1)return;const _0x38ce2d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x35d6a2=>_0x4fb46f['fromRange'](_0x35d6a2));_0x251426['setSelection'](_0x3afe3d);for(const _0x6150c0 of this['_editor']['commands']['commands']())_0x6150c0['refresh']();_0x4d4221['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x623927,..._0x4d4221);const _0x1e196f=_0x38ce2d['filter'](_0xe1bc6c=>'$graveyard'!=_0xe1bc6c['root']['rootName']);_0x1e196f['length']>0x0&&_0x251426['setSelection'](_0x1e196f);for(const _0x5080f4 of _0x38ce2d)_0x5080f4['detach']();});},_0x2d1def=(_0x46095a,_0x352265)=>0x1==_0x46095a['length']&&0x1==_0x352265['length']&&_0x46095a[0x0]['end']['isEqual'](_0x352265[0x0]['start']),_0x2f0cbc=(_0x3d795d,_0x361f2b,_0xa12641,_0x41d694)=>Ht(_0x3d795d,_0x361f2b,_0xa12641,_0x41d694)?[_0x3d795d,_0x361f2b]:Ht(_0x361f2b,_0x3d795d,_0x41d694,_0xa12641)?[_0x361f2b,_0x3d795d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3f22db),this['_defaultCallbacks']['set']('insertion:discard',_0x144bcf),this['_defaultCallbacks']['set']('insertion:join',_0x2d1def),this['_defaultCallbacks']['set']('insertion:chain',_0x2f0cbc),this['_defaultCallbacks']['set']('deletion:accept',_0x144bcf),this['_defaultCallbacks']['set']('deletion:discard',_0x3f22db),this['_defaultCallbacks']['set']('deletion:join',_0x2d1def),this['_defaultCallbacks']['set']('deletion:chain',_0x2f0cbc),this['_defaultCallbacks']['set']('formatInline:accept',_0x421ff2),this['_defaultCallbacks']['set']('formatInline:discard',_0x3f22db),this['_defaultCallbacks']['set']('formatInline:join',_0x2d1def),this['_defaultCallbacks']['set']('formatInline:chain',_0x3f22db),this['_defaultCallbacks']['set']('formatBlock:accept',_0x421ff2),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3f22db),this['_defaultCallbacks']['set']('formatBlock:join',_0x2d1def),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3f22db),this['_defaultCallbacks']['set']('attribute:accept',_0x3f22db),this['_defaultCallbacks']['set']('attribute:discard',(_0x14fafe,_0x5e1fdb)=>{if(!_0x5e1fdb)return;const _0x548f48=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x281b72=>{if(_0x5e1fdb['key']==m)for(const _0x152186 of _0x14fafe){const _0xe3d7da=_0x152186['start']['nodeAfter'],_0x44e478=_0x5e1fdb['oldValue'];_0x281b72['rename'](_0xe3d7da,_0x44e478);}else{if(_0x548f48['_isBlockAttribute'](_0x5e1fdb['key'])){for(const _0xc3886c of _0x14fafe)void 0x0!==_0x5e1fdb['oldValue']?_0x281b72['setAttribute'](_0x5e1fdb['key'],_0x5e1fdb['oldValue'],_0xc3886c['start']['nodeAfter']):_0x281b72['removeAttribute'](_0x5e1fdb['key'],_0xc3886c['start']['nodeAfter']);}else{for(const _0x1db098 of _0x14fafe)_0x5e1fdb['oldValue']?_0x281b72['setAttribute'](_0x5e1fdb['key'],_0x5e1fdb['oldValue'],_0x1db098):_0x281b72['removeAttribute'](_0x5e1fdb['key'],_0x1db098);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2d1def);}}function Ut(_0x3a533e,_0x206379,_0x24d63d){for(const _0x7510d8 of _0x206379['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x7510d8['root']==_0x7510d8)return!0x1;if(!_0x24d63d['containsItem'](_0x7510d8))return!0x1;if(_0x3a533e['isObject'](_0x7510d8)||_0x3a533e['isLimit'](_0x7510d8))return!0x0;}return!0x1;}function Vt(_0xe17a7d){return _0xe17a7d['end']['parent']==_0xe17a7d['start']['nodeAfter']&&_0xe17a7d['end']['isAtStart'];}function Pt(_0x247dc2,_0x5c6f85,_0x3a241b,_0x1ff3d4){const _0x516b52=_0x21f653=>!_0x21f653['item']['is']('$textProxy')&&!_0x1ff3d4['isObject'](_0x21f653['item']),_0x5e16c2=_0x247dc2['start']['getLastMatchingPosition'](_0x516b52),_0x2d2745=_0x247dc2['end']['getLastMatchingPosition'](_0x516b52,{'direction':'backward'});return(!_0x247dc2['start']['isEqual'](_0x5e16c2)||!_0x247dc2['end']['isEqual'](_0x2d2745))&&(_0x5e16c2['isBefore'](_0x2d2745)?_0x3a241b['updateMarker'](_0x5c6f85,{'range':_0x3a241b['createRange'](_0x5e16c2,_0x2d2745)}):_0x3a241b['removeMarker'](_0x5c6f85),!0x0);}function Gt(_0x2cd278){return _0x48010a(_0x2cd278);}function Ft(_0x3e9c5b){const _0x5c06f8=_0x3e9c5b['start']['nodeAfter'];return _0x5c06f8&&_0x5c06f8['is']('element');}function Lt(_0xffe584,_0x376772){return null==_0xffe584['end']['nodeBefore']&&_0xffe584['end']['parent']==_0xffe584['start']['nodeAfter']?Jt(_0xffe584['start']['nodeAfter'],_0x376772):_0xffe584;}function Jt(_0x2b52ed,_0x10c5dd){const _0x1ce563=_0x10c5dd['schema']['isObject'](_0x2b52ed)||_0x10c5dd['schema']['isSelectable'](_0x2b52ed);return _0x10c5dd['createRange'](_0x10c5dd['createPositionAt'](_0x2b52ed,'before'),_0x1ce563?_0x10c5dd['createPositionAfter'](_0x2b52ed):_0x10c5dd['createPositionAt'](_0x2b52ed,'end'));}function Ht(_0x29e1e5,_0x476dd4,_0x194e1d,_0x49a741){return!!qt(_0x29e1e5,_0x476dd4)&&_0x194e1d['end']['isEqual'](_0x49a741['start']);}function qt(_0x130ef7,_0x33cdb4){if(!_0x130ef7['_isDataLoaded']||!_0x33cdb4['_isDataLoaded'])return!0x1;const _0x3f5d98=new Set(Object['keys'](_0x130ef7['attributes'])),_0x40b670=new Set(Object['keys'](_0x33cdb4['attributes']));if(_0x3f5d98['delete']('groupId'),_0x40b670['delete']('groupId'),0x0==_0x3f5d98['size']&&0x0==_0x40b670['size'])return!0x0;if(_0x3f5d98['size']!=_0x40b670['size'])return!0x1;const _0x20f8ad={..._0x130ef7['attributes']},_0x5eab4d={..._0x33cdb4['attributes']};return delete _0x20f8ad['groupId'],delete _0x5eab4d['groupId'],JSON['stringify'](_0x20f8ad)==JSON['stringify'](_0x5eab4d);}function zt(_0x328ee8,_0x179a5b){const _0xc22eef=Kt(_0x328ee8['attributes']),_0x8837a7=Kt(_0x179a5b);if(!_0x328ee8['_isDataLoaded'])return!0x1;for(const _0x2320e8 of Object['keys'](_0x8837a7))if(!_0x4700ac(_0xc22eef[_0x2320e8],_0x8837a7[_0x2320e8]))return!0x1;return!0x0;}function Kt(_0xf9e87d){const _0x18509f=Object['assign']({},_0xf9e87d);return delete _0x18509f['skipNestingCheck'],delete _0x18509f['tablePasteChainId'],_0x18509f;}class ge extends/* #__PURE__ -- @preserve */
25
- _0x5e240a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x50687b,_0x56ffe3,_0x3606ca,_0x18651d){super(),this['model']=_0x56ffe3,this['view']=_0x3606ca,this['commentThreadController']=_0x18651d,this['_editor']=_0x50687b,this['_acceptCommand']=_0x50687b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x50687b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1c6667,_0x1172cf)=>_0x1c6667||_0x1172cf),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x552361=>_0x552361&&this['_editor']['model']['canEditAt'](_0x56ffe3['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x45e190=>_0x45e190&&this['_editor']['model']['canEditAt'](_0x56ffe3['getRanges']())),this['_pendingAction']=null,_0x3606ca['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3606ca,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3606ca,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3606ca,'change:isDirty',()=>{_0x3606ca['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 _0x4e9d54=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4e9d54);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x1af93f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2b067f,_0xc9ad7b,_0x4754fe,_0x2fbdb2){super(_0x2b067f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2feb91(_0x2b067f,o(_0x2b067f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xc9ad7b['authoredAt']),this['bind']('authoredAt')['to'](_0xc9ad7b),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',_0xc9ad7b,'authoredAt',this,'descriptionParts',(_0xd58536,_0x147c8b,_0x57994b)=>{const _0x1a055d=_0x57994b['map'](_0x6b331a=>ns(_0x6b331a['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xd58536-0x1,_0xc9ad7b['author']['name'],_0x147c8b?_0x2fbdb2['formatDateTime'](_0x147c8b):'',new DOMParser()['parseFromString'](_0x1a055d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5942c5(),this['focusTracker']=new _0x5b425e(),this['keystrokes']=new _0x48adf6(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x22ee13=>_0x22ee13['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xc9ad7b,this['_localUser']=_0x4754fe,this['_config']=_0x2fbdb2,_0x2fbdb2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5a6628(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4d06ce}=this['_config'];this['commentsListView']=new _0x4d06ce(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',_0x3ff132=>_0x3ff132+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4da9b3,_0x400f03)=>_0x4da9b3||!!_0x400f03);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5a029d}=this['_config'],_0x7f690=new _0x5a029d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4567a9=_0x7f690['commentInputView'];return _0x7f690['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4567a9,'value',(_0x4021e0,_0x477721,_0x515e85)=>!!_0x515e85||_0x4021e0&&!_0x477721),_0x4567a9['on']('submit',(_0x4ce6d6,_0xbacc49)=>{this['fire']('addComment',_0xbacc49),_0x4567a9['editor']['setData']('');}),_0x4567a9['on']('cancel',()=>this['focus']()),_0x4567a9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x7f690;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x1781d8,_0x48110f,_0x10374a,_0x17dbdf){super(_0x1781d8,_0x48110f,_0x10374a,_0x17dbdf),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x12b458=>_0x12b458&&_0x12b458[0x0]?_0x12b458[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3711c7,_0x5caea2)=>{let _0x42e97f='';for(const _0x5c6c6b of _0x3711c7)_0x42e97f+='<p>'+ns(_0x5c6c6b['content'],_0x5c6c6b['color'])+'</p>';return _0x5caea2?_0x42e97f:ti(_0x42e97f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x17dbdf['SuggestionView'](_0x1781d8,_0x48110f,{'formatDateTime':_0x17dbdf['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 _0x313659=this['bindTemplate'],_0x4c9ed2=[this['suggestionView']];return this['commentsListView']&&_0x4c9ed2['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4c9ed2['push'](this['commentThreadInputView']),_0x4c9ed2['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x313659['if']('isActive','ck-suggestion-wrapper--active'),_0x313659['to']('type',_0x192137=>'ck-suggestion-'+_0x192137),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':_0x313659['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4c9ed2};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ue extends _0x1af93f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x40e067,_0x45c1b9,_0x829aa4){super(_0x40e067),this['_model']=_0x45c1b9,this['_config']=_0x829aa4,this['set']('description',''),this['bind']('authoredAt')['to'](_0x45c1b9),this['acceptButton']=this['_createButton'](o(_0x40e067,'Accept\x20suggestion'),_0x2c975e['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x40e067,'Discard\x20suggestion'),_0x2c975e['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1a7807(_0x40e067,_0x45c1b9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5942c5([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5b425e(),this['keystrokes']=new _0x48adf6(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1ad6fe=>_0x1ad6fe['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2f57bc=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2f57bc['innerHTML']=this['description'],this['on']('change:description',(_0x490878,_0x476ef0,_0x1b7a52)=>{_0x2f57bc['innerHTML']=_0x1b7a52;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x235684=this['bindTemplate'],_0x456734=[{'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':_0x235684['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x235684['to']('authoredAt',_0x1d4dd6=>this['_config']['formatDateTime'](_0x1d4dd6))}]}]},{'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']&&_0x456734['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':_0x456734}]};}['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'](_0x3108fa,_0x1d5602,_0x48eb0f,_0x2b5e26,_0xbb4bdd){const _0x2d86dd=new _0x48ee80(this['locale']);return _0x2d86dd['set']({'label':_0x3108fa,'icon':_0x1d5602,'tooltip':!0x0,'tooltipPosition':_0xbb4bdd}),_0x2d86dd['extendTemplate']({'attributes':{'class':_0x48eb0f}}),_0x2d86dd['on']('execute',()=>{this['fire'](_0x2b5e26,this['_model']['id']);}),_0x2d86dd;}['_setupKeyboardNavigation'](){const _0x3d6984=this['element'];this['keystrokes']['listenTo'](_0x3d6984);for(const _0x475da7 of this['focusables'])this['focusTracker']['add'](_0x475da7['element']),this['keystrokes']['listenTo'](_0x475da7['element']);this['keystrokes']['set']('enter',(_0x1ef345,_0x1c0d9e)=>{_0x3d6984===_0x1ef345['target']&&(this['focusCycler']['focusFirst'](),_0x1c0d9e());}),this['keystrokes']['set']('esc',(_0x22d0e9,_0x349a7b)=>{_0x3d6984!==_0x22d0e9['target']&&(this['focus'](),_0x349a7b());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x3c70aa{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x561e78,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8a68c7){super(_0x8a68c7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x8df227=this['editor']['config'];_0x8df227['define']('trackChanges.SuggestionThreadView',de),_0x8df227['define']('trackChanges.SuggestionView',ue),_0x8df227['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x8df227['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xe69b6,_0x44fb46){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x41e87e,_0x3c11fc]of this['_handleControllerBuffer']){const _0x2f2ff5=this['_suggestionToController']['has'](_0x41e87e);_0x2f2ff5||_0x3c11fc?_0x2f2ff5&&_0x3c11fc&&this['_destroyController'](_0x41e87e):this['_initializeController'](_0x41e87e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xe69b6,_0x44fb46);}['init'](){const _0x5f4ad8=this['editor'],_0x2c9165=_0x5f4ad8['plugins']['get']('TrackChangesEditing'),_0xcb4866=_0x5f4ad8['plugins']['get']('Annotations'),_0x2e2ba4=_0x5f4ad8['plugins']['get']('EditorAnnotations'),_0x2ff5b8=_0x5f4ad8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2e2ba4['addSourceCollector'](()=>{const _0x54b04c=[];for(const [_0x55a18a,_0x8af340]of Array['from'](this['_suggestionToController'])){const _0x15d3a6=_0x55a18a['getAllAdjacentSuggestions'](),_0x2305ad=[];for(const _0x473a88 of _0x15d3a6){if(!_0x473a88['isInContent'])continue;if(_0x473a88['isMultiRange']){_0x2305ad['push'](..._0x473a88['getRanges']());continue;}const _0x4b229f=_0x473a88['getFirstRange']();if(_0x2305ad['length']>0x0){const _0x228a35=_0x2305ad[0x0]['getJoined'](_0x4b229f);if(_0x228a35){_0x2305ad[0x0]=_0x228a35;continue;}}_0x2305ad['push'](_0x4b229f);}_0x54b04c['push']([_0x8af340['view'],_0x2305ad]);}return _0x54b04c;}),this['listenTo'](_0x2c9165,'suggestionLoaded',(_0x77339a,_0x27dbb4)=>{this['listenTo'](_0x27dbb4,'change:previous',(_0x354b39,_0x2dc5a6,_0x3dad41,_0x324a4d)=>{_0x27dbb4['isInContent']&&(null==_0x3dad41?(this['_updateController'](_0x324a4d['head']),this['_handleSuggestionControllerDelayed'](_0x27dbb4,!0x1)):(this['_updateController'](_0x3dad41['head']),null==_0x324a4d&&this['_handleSuggestionControllerDelayed'](_0x27dbb4,!0x0)));}),null!==_0x27dbb4['previous']?this['_updateController'](_0x27dbb4['head']):this['_handleSuggestionControllerDelayed'](_0x27dbb4,!0x1);}),this['listenTo'](_0x2c9165,'suggestionUnloaded',(_0x473809,_0xba64ed,_0x43d911)=>{this['stopListening'](_0xba64ed,'change:previous'),this['_handleControllerBuffer']['delete'](_0xba64ed),this['_suggestionToController']['has'](_0xba64ed)&&this['_destroyController'](_0xba64ed),_0x43d911&&this['_updateController'](_0x43d911['head']);}),this['listenTo'](_0x2c9165,'suggestionChanged',(_0x6df130,_0x55d039)=>{this['_updateController'](_0x55d039);}),this['listenTo'](_0xcb4866,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2ff5b8,'addComment',(_0x1616cd,{threadId:_0x3fbfa4,isFromAdapter:_0x3dd31d})=>{if(_0x3dd31d||!_0x2c9165['hasSuggestion'](_0x3fbfa4))return;const _0xeb2472=_0x2c9165['getSuggestion'](_0x3fbfa4);this['_suggestionToController']['get'](_0xeb2472)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c4ca5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x10db66;for(const _0x15be4a in _0x3c4ca5){const _0x2af510=_0x15be4a,_0x4a9b70=_0x3c4ca5[_0x2af510];if('trackChangesLicenseKeyValid'==_0x4a9b70||'trackChangesLicenseKeyInvalid'==_0x4a9b70||'trackChangesLicenseKeyExpired'==_0x4a9b70||'trackChangesLicenseKeyDomainLimit'==_0x4a9b70||'trackChangesLicenseKeyNotAllowed'==_0x4a9b70||'trackChangesLicenseKeyEvaluationLimit'==_0x4a9b70||'trackChangesLicenseKeyTrialLimit'==_0x4a9b70||'trackChangesLicenseKeyDevelopmentLimit'==_0x4a9b70||'trackChangesLicenseKeyUsageLimit'==_0x4a9b70){delete _0x3c4ca5[_0x2af510],_0x10db66=_0x4a9b70,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x10db66&&_0x3c4ca5['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x10db66&&_0x3c4ca5['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x10db66&&_0x3c4ca5['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x10db66&&_0x3c4ca5['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x10db66&&_0x3c4ca5['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x10db66&&_0x3c4ca5['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x10db66&&_0x3c4ca5['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x10db66&&_0x3c4ca5['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x27dd76=this['editor']['plugins']['get']('Annotations'),_0x17b47a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59f474=Array['from'](_0x27dd76['activeAnnotations'],_0x3ac933=>_0x3ac933['innerView'])['filter'](_0x30356a=>this['_viewToController']['has'](_0x30356a)),_0x4551b5=[];for(const _0x1f80b1 of _0x59f474){const _0x501a2b=this['_viewToController']['get'](_0x1f80b1)['model']['getAllAdjacentSuggestions']();_0x4551b5['push'](..._0x501a2b['reduce']((_0x439b0f,_0x4b6d64)=>[..._0x439b0f,..._0x4b6d64['getMarkerNames']()],[]));}_0x17b47a['activeMarkers']=_0x4551b5;}['_addUIComponentsToFactory'](){const _0x4e3546=this['editor'],_0x41fe81=_0x4e3546['locale'],_0x7e960=o(_0x41fe81,'Track\x20changes'),_0x16bea7=new _0x4a8f40([{'type':'switchbutton','model':new _0x11d7e2({'withText':!0x0,'isToggleable':!0x0,'label':_0x7e960,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x11d7e2({'withText':!0x0,'label':o(_0x41fe81,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x11d7e2({'withText':!0x0,'label':o(_0x41fe81,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x11d7e2({'withText':!0x0,'label':o(_0x41fe81,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x11d7e2({'withText':!0x0,'label':o(_0x41fe81,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5ec511 of _0x16bea7)if(pe(_0x5ec511)){const _0xefe471=_0x4e3546['commands']['get'](_0x5ec511['model']['commandName']);_0x5ec511['model']['bind']('isOn','isEnabled')['to'](_0xefe471,'value','isEnabled');}_0x4e3546['ui']['componentFactory']['add']('trackChanges',_0x12bbdb=>this['_createToolbarButton'](_0x12bbdb,_0x16bea7,_0x7e960)),_0x4e3546['ui']['componentFactory']['add']('menuBar:trackChanges',_0x39f255=>this['_createMenuBarMenu'](_0x39f255,_0x16bea7,_0x7e960));}['_createToolbarButton'](_0xd54c8e,_0x39bb38,_0x7207a7){const _0x4e07dc=_0x3ca6cc(_0xd54c8e,_0x3de8e3),_0x11b971=this['editor']['commands']['get']('trackChanges');_0x4e07dc['buttonView']['set']({'tooltip':_0x7207a7,'label':_0x7207a7,'icon':Ce}),_0x4e07dc['buttonView']['bind']('isOn')['to'](_0x11b971,'value'),_0x4e07dc['buttonView']['on']('execute',()=>{_0x11b971['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x4e07dc,_0x39bb38,{'role':'menu'});const _0x389a45=[];for(const _0x423210 of _0x39bb38)pe(_0x423210)&&_0x389a45['push'](this['editor']['commands']['get'](_0x423210['model']['commandName']));const _0x36be94=_0x4e07dc['buttonView'];return _0x36be94['actionView']['unbind']('isEnabled'),_0x36be94['arrowView']['unbind']('isEnabled'),_0x36be94['actionView']['bind']('isEnabled')['to'](_0x11b971,'isEnabled'),_0x36be94['arrowView']['bind']('isEnabled')['toMany'](_0x389a45,'isEnabled',(..._0x542f88)=>_0x542f88['some'](_0x39f63a=>_0x39f63a)),_0x4e07dc['on']('execute',_0x264a02=>{this['editor']['execute'](_0x264a02['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e07dc;}['_createMenuBarMenu'](_0x73cdb2,_0x4c7bb5,_0x499f81){const _0x41bb0c=new _0x5f51ed(_0x73cdb2),_0x2dc2f2=this['editor']['commands']['get']('trackChanges');_0x41bb0c['buttonView']['set']({'label':_0x499f81,'icon':Ce});const _0x43ef84=new _0x474c59(_0x73cdb2);for(const _0x2edd9e of _0x4c7bb5){if('separator'==_0x2edd9e['type']){_0x43ef84['items']['add'](new _0x41b63c(_0x73cdb2));continue;}const _0xdca84a=new _0x101cc3(_0x73cdb2,_0x41bb0c),_0x47e967=new _0x356cad(_0x73cdb2),_0x23a1e0=_0x2edd9e['model'];_0x47e967['bind'](...Object['keys'](_0x23a1e0))['to'](_0x23a1e0),_0x47e967['delegate']('execute')['to'](_0x41bb0c),_0x47e967['on']('execute',()=>{this['editor']['execute'](_0x23a1e0['commandName']),this['editor']['editing']['view']['focus']();}),_0xdca84a['children']['add'](_0x47e967),_0x43ef84['items']['add'](_0xdca84a);}return _0x41bb0c['bind']('isEnabled')['to'](_0x2dc2f2,'isEnabled'),_0x41bb0c['panelView']['children']['add'](_0x43ef84),_0x41bb0c;}['_initializeController'](_0x29f768){const _0x40c9c0=this['editor'],_0x3a6422=_0x40c9c0['config'],_0x31dcc3=_0x40c9c0['plugins']['get']('Annotations'),_0x34ed2e=_0x40c9c0['plugins']['get']('CommentsRepository'),_0x1bd00c=_0x40c9c0['plugins']['get']('EditorAnnotations'),_0x9efd1a=_0x40c9c0['plugins']['get'](_0x561e78)['me'],_0xde5f97=_0x3a6422['get']('trackChanges')['SuggestionThreadView'],_0x15731f=_0x3a6422['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x502b07,CommentThreadInputView:_0x143f5e}=_0x40c9c0['plugins']['get']('CommentsUI');let _0x982755,_0x2599ce,_0x260b06;this['_annotationViews']['has'](_0x29f768['id'])?(_0x2599ce=this['_annotationViews']['get'](_0x29f768['id']),_0x982755=_0x2599ce['mainView']):(_0x982755=new _0xde5f97(_0x40c9c0['locale'],_0x29f768,_0x9efd1a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3a6422['get']('comments.editorConfig'),'licenseKey':_0x3a6422['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3a6422['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3a6422['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3a6422['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3f1446(_0x3a6422['get']('locale')),'CommentView':_0x3a6422['get']('comments')['CommentView'],'CommentsListView':_0x502b07,'CommentThreadInputView':_0x143f5e,'SuggestionView':_0x15731f}),_0x982755['suggestionView']['acceptButton']['on']('execute',()=>{_0x40c9c0['editing']['view']['focus']();}),_0x982755['suggestionView']['discardButton']['on']('execute',()=>{_0x40c9c0['editing']['view']['focus']();}),_0x2599ce=_0x31dcc3['createAnnotationView'](this['editor']['locale'],_0x982755),_0x2599ce['bind']('isDirty')['to'](_0x982755,'isDirty'),_0x2599ce['bind']('length')['to'](_0x982755),_0x2599ce['bind']('type')['to'](_0x982755,'type',_0x473ed3=>'suggestion-'+_0x473ed3),_0x982755['on']('escape',()=>{_0x260b06['fire']('escape');}),this['_annotationViews']['set'](_0x29f768['id'],_0x2599ce));const _0x5477de=_0x34ed2e['createCommentThreadController'](_0x29f768['commentThread'],_0x982755),_0x2d9535=new ge(_0x40c9c0,_0x29f768,_0x982755,_0x5477de),_0x596c03=_0x29f768['getAllAdjacentSuggestions']()['filter'](_0x3604b2=>_0x3604b2['isInContent']);_0x982755['descriptionParts']=_0x40c9c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x596c03),this['_suggestionToController']['set'](_0x29f768,_0x2d9535),this['_viewToController']['set'](_0x982755,_0x2d9535),_0x260b06=_0x31dcc3['createAnnotation']({'view':_0x2599ce,'target':()=>{const _0x29d74b=[],_0xecb51b=_0x29f768['getAllAdjacentSuggestions']()['filter'](_0x51f000=>_0x51f000['isInContent']);for(const _0x57d329 of _0xecb51b)_0x29d74b['push'](..._0x57d329['getMarkers']());return _0xd1bf56(_0x40c9c0['editing'],_0x29d74b);},'type':()=>'suggestion-'+_0x2d9535['view']['type']}),_0x34ed2e['_bindAnnotationToEditors'](_0x982755,_0x260b06),_0x31dcc3['add'](_0x260b06),_0x1bd00c['registerAnnotation'](_0x260b06);}['_destroyController'](_0x44fdaa){const _0x31eda2=this['editor']['plugins']['get']('CommentsRepository'),_0x578943=this['editor']['plugins']['get']('Annotations'),_0x1cac03=this['_suggestionToController']['get'](_0x44fdaa),_0x3b0954=_0x1cac03['view'],_0x3587e4=_0x578943['getByInnerView'](_0x3b0954);_0x31eda2['_unbindEditors'](_0x3b0954),_0x3587e4&&_0x578943['remove'](_0x3587e4),this['_suggestionToController']['delete'](_0x44fdaa),this['_viewToController']['delete'](_0x3b0954),_0x1cac03['destroy']();}['_updateController'](_0x2d566f){if(!_0x2d566f['isInContent']||!this['_suggestionToController']['has'](_0x2d566f))return;const _0xf0e9a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4959dd=this['_suggestionToController']['get'](_0x2d566f),_0x2c3f36=_0x2d566f['getAllAdjacentSuggestions']();_0x4959dd['view']['descriptionParts']=_0xf0e9a8['descriptionFactory']['getDescriptions'](_0x2c3f36);}['destroy'](){for(const _0x57d56a of this['_suggestionToController']['keys']())this['_destroyController'](_0x57d56a);for(const _0x3447c3 of this['_annotationViews']['values']())_0x3447c3['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0xfc2268){return'model'in _0xfc2268;}class k extends _0x3c70aa{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x11b206){this['editor']['plugins']['get'](p)['adapter']=_0x11b206;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xfb046){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xfb046);}['getSuggestions']({skipNotAttached:_0x17af5d=!0x1,toJSON:_0x23c387=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x17af5d,'toJSON':_0x23c387});}['getSuggestion'](_0x111dc0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x111dc0);}}const w=['Pagination'];class T extends _0x3c70aa{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x562861=this['editor'];if(_0x562861['config']['define']('trackChangesData.editorCreator',_0xe36a80=>{const _0x5359ed=_0x562861['model']['document']['getRootNames']()['reduce']((_0x1a9a3d,_0x110935)=>(_0x1a9a3d[_0x110935]='',_0x1a9a3d),{});return _0x562861['constructor']['create'](_0x5359ed,_0xe36a80);}),'function'!=typeof _0x562861['config']['get']('trackChangesData')['editorCreator'])throw new _0x1c48ec('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xf320c0){return N(this['editor'],!0x0,_0xf320c0);}['getDataWithDiscardedSuggestions'](_0x28ca7a){return N(this['editor'],!0x1,_0x28ca7a);}}class D extends _0x3c70aa{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21ef87){function _0x3d8319(_0x345dd1){return _0x345dd1['map'](_0x54ff47=>String['fromCharCode'](_0x54ff47))['join']('');}super(_0x21ef87),this['result']='end',_0x21ef87[_0x3d8319([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d8319([0x76,0x69,0x65,0x77])][_0x3d8319([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d8319([0x61,0x75,0x74,0x6f]),_0x21ef87[_0x3d8319([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3d8319([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d8319([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3d8319([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3d8319([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x2bfa2b){return void 0x0!==_0x2bfa2b['getRootsAttributes'];}async function N(_0x315c06,_0x370dae,_0x3f9468){const _0xa7a463=_0x56139c(_0x315c06,w);_0xa7a463['plugins']['push'](p,D),_0xa7a463['rootsAttributes']=v(_0x315c06)?_0x315c06['getRootsAttributes']():void 0x0;const _0x374434=document['createDocumentFragment'](),_0x198879=_0x315c06['config']['get']('trackChangesData')['editorCreator'],_0x4ca637=await _0x198879(_0xa7a463,()=>function(_0x88a254){const _0x3d6599=document['createElement']('div');return _0x88a254['appendChild'](_0x3d6599),_0x3d6599;}(_0x374434));!function(_0x251600,_0x4f240c){const _0x107662=_0x251600['model']['document']['getRootNames']()['reduce']((_0x237791,_0x94daf7)=>(_0x237791[_0x94daf7]=_0x251600['data']['get']({'rootName':_0x94daf7}),_0x237791),{}),_0x27015c=_0x251600['plugins']['get']('Users')['users']['map'](_0x18c978=>({'id':_0x18c978['id'],'name':_0x18c978['name']})),_0x5ce987=_0x251600['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2383a7=_0x251600['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1420df=_0x4f240c['plugins']['get']('Users'),_0x15684e=_0x4f240c['plugins']['get']('TrackChangesEditing'),_0x119fde=_0x4f240c['plugins']['get']('CommentsRepository');for(const _0x2ddb01 of _0x119fde['getCommentThreads']())_0x2ddb01['remove']();for(const _0x528a51 of _0x27015c)_0x1420df['getUser'](_0x528a51['id'])||_0x1420df['addUser'](_0x528a51);_0x1420df['me']||_0x1420df['useAnonymousUser']();for(const _0x4045a9 of _0x2383a7)_0x119fde['addCommentThread'](_0x4045a9);for(const _0x553cf5 of _0x5ce987)_0x15684e['addSuggestionData'](_0x553cf5);_0x4f240c['data']['set'](_0x107662);}(_0x315c06,_0x4ca637),_0x4ca637['execute'](_0x370dae?'acceptAllSuggestions':'discardAllSuggestions');const _0x49aa81=v(_0x4ca637)?_0x4ca637['getFullData'](_0x3f9468):_0x4ca637['data']['get'](_0x3f9468);return await _0x4ca637['destroy'](),_0x49aa81;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as Qt,Plugin as _0xa4c963,PendingActions as _0x594e62,icons as _0x2ec321}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x541450,ObservableMixin as _0x1ceaf8,uid as _0x4fc915,insertToPriorityArray as _0x15524d,priorities as _0x19128a,logWarning as _0x5786f7,getEnvKeystrokeText as _0x1433f3,FocusTracker as _0x4044de,KeystrokeHandler as _0x6eab89,Collection as _0x41cb48}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3e5898,View as _0x442707,ViewCollection as _0x2b4982,FocusCycler as ts,ViewModel as _0x2060e5,createDropdown as _0x2321d0,SplitButtonView as _0x5b609a,addListToDropdown as te,MenuBarMenuView as _0x538430,MenuBarMenuListView as _0xc23e53,ListSeparatorView as _0x519292,MenuBarMenuListItemView as _0x1826aa,MenuBarMenuListItemButtonView as _0x52e206}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x39d8d3,hashObject as _0x385015,surroundingMarkersDetector as _0x42c1d1,FOCUS_ANNOTATION_KEYSTROKE as _0x2e1124,AriaDescriptionView as _0x594c0a,setupThreadKeyboardNavigation as _0x850d6,trimHtml as ti,UserView as _0x336d8b,LateFocusButtonView as _0x1e08f8,getDateTimeFormatter as _0x31f0ea,getAllMarkersDomElementsSorted as _0x35ad2b,sanitizeEditorConfig as _0xac384c}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3d639b,LiveRange as _0xac092f,LivePosition as _0x471760}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x38e485,toWidget as _0x588961}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4b5ae7,set as _0x468606,isEqual as _0x3c26f1,unset as _0x27a739,omit as xt}from'lodash-es';import{Delete as _0x38e18c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1473e0,ShiftEnter as _0x37f999}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x25d475,_0x3d66ab){super(_0x25d475),this['_enabledCommands']=_0x3d66ab,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 _0x18c64f of this['editor']['commands']['commands']())_0x18c64f['affectsData']&&!this['_enabledCommands']['has'](_0x18c64f)&&_0x18c64f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x36dfe0 of this['editor']['commands']['commands']())_0x36dfe0['affectsData']&&!this['_enabledCommands']['has'](_0x36dfe0)&&_0x36dfe0['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x45472b,_0x5c6d72){super(_0x45472b),this['_suggestions']=_0x5c6d72,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xf2e6b){const _0x3abe05=this['_suggestions']['get'](_0xf2e6b);if(!_0x3abe05)throw new _0x541450('track-changes-accept-suggestion-not-found',this);const _0x194d5c=_0x3abe05['getRanges']();this['editor']['model']['canEditAt'](_0x194d5c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3abe05);}}class R extends Qt{['_suggestions'];constructor(_0x4f0fa4,_0x4838ee){super(_0x4f0fa4),this['_suggestions']=_0x4838ee,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x22f332){const _0x38562b=this['_suggestions']['get'](_0x22f332);if(!_0x38562b)throw new _0x541450('track-changes-discard-suggestion-not-found',this);const _0x323cc2=_0x38562b['getRanges']();this['editor']['model']['canEditAt'](_0x323cc2)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x38562b);}}function ns(_0x33eab2,_0x36afb3){let _0x21dd40='';return _0x21dd40+=_0x33eab2['split']('*')['map']((_0x4b6b97,_0x4dd78e)=>_0x4dd78e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4b6b97)+'</span>':nn(_0x4b6b97))['join'](''),_0x36afb3&&(_0x21dd40+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x36afb3['value']+'\x22\x20title=\x22'+_0x36afb3['title']+'\x22></span>'),_0x21dd40;}function nn(_0x33c911){const _0x1874e3=document['createElement']('span');return _0x1874e3['innerText']=_0x33c911,_0x1874e3['innerHTML'];}function Wt(_0x42425b){return _0x42425b['sort']((_0x45e94c,_0x2748b4)=>'deletion'==_0x45e94c['type']&&'deletion'!=_0x2748b4['type']?-0x1:'deletion'!=_0x45e94c['type']&&'deletion'==_0x2748b4['type']?0x1:0x0);}function to(_0x36d705,_0x4f9ba5){let _0xf7d8d7,_0xb89506=0x0;const _0x10ed5f=[],_0x1557ea=_0x4f9ba5['schema'];for(;_0xb89506<_0x36d705['length'];){const _0x1ebd93=_0x36d705[_0xb89506],_0x76c27c=_0x36d705[_0xb89506+0x1];_0xf7d8d7||(_0xf7d8d7=_0x4f9ba5['createPositionBefore'](_0x1ebd93)),on(_0x4f9ba5,_0x1ebd93,_0x76c27c)||(_0x10ed5f['push'](_0x4f9ba5['createRange'](_0xf7d8d7,_0x1557ea['isObject'](_0x1ebd93)?_0x4f9ba5['createPositionAfter'](_0x1ebd93):_0x4f9ba5['createPositionAt'](_0x1ebd93,'end'))),_0xf7d8d7=null),_0xb89506++;}return _0x10ed5f;}function on(_0x2513bc,_0x1862f,_0x12f218){if(!_0x12f218)return!0x1;const _0x51a825=_0x2513bc['createPositionAfter'](_0x1862f),_0x158149=_0x2513bc['createPositionBefore'](_0x12f218);return _0x51a825['isTouching'](_0x158149);}function Xt(_0x47e00f,_0x453a49,_0x147e67){for(;_0x147e67['length'];){const _0x32ad73=_0x147e67['splice'](0x0,0x64);_0x47e00f['change'](()=>{for(const _0x3b57fb of _0x32ad73)_0x3b57fb['isInContent']&&_0x453a49['execute'](_0x3b57fb['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x55f2e0,_0x1796c1,_0x567b1e){super(_0x55f2e0),this['_command']=_0x1796c1,this['_suggestions']=_0x567b1e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xb8e764=Array['from'](this['_suggestions']['values']())['some'](_0x2f31ad=>_0x2f31ad['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xb8e764;}['execute'](){const _0x1f0f60=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x430386 of _0x1f0f60){const _0x2b408e=_0x430386['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2b408e))return;}Xt(this['editor']['model'],this['_command'],_0x1f0f60);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x24c63d,_0x510d38,_0x193fb5){super(_0x24c63d),this['_command']=_0x510d38,this['_suggestions']=_0x193fb5,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x53e5dd=this['editor']['model']['document']['selection'],_0x2ae259=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x249618,_0x2eb9b1){const _0xf50817=Array['from'](_0x249618['getRanges']()),_0x4eff23=new Set();for(const _0x33f573 of _0x2eb9b1)if(_0x33f573['isInContent']){for(const _0x347db8 of _0xf50817)for(const _0x3229ac of _0x33f573['getRanges']())(_0x347db8['isIntersecting'](_0x3229ac)||_0x249618['isCollapsed']&&!_0x33f573['isMultiRange']&&_0x33f573['next']&&_0x3229ac['end']['isTouching'](_0x347db8['start']))&&_0x4eff23['add'](_0x33f573);}return _0x4eff23;}(_0x53e5dd,_0x2ae259),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x528e14=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x24a7d7 of _0x528e14){const _0x55a997=_0x24a7d7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x55a997))return;}Xt(this['editor']['model'],this['_command'],_0x528e14);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x1ceaf8(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x442226,_0x54f3d4){super(),this['id']=_0x54f3d4['id'],this['type']=_0x54f3d4['type'],this['subType']=_0x54f3d4['subType']||null,this['author']=_0x54f3d4['author'],this['creator']=_0x54f3d4['creator']||_0x54f3d4['author'],this['isExternal']=Boolean(_0x54f3d4['attributes']&&_0x54f3d4['attributes']['@external']),this['data']=null,this['_model']=_0x442226,this['_onAccept']=_0x54f3d4['onAccept'],this['_onDiscard']=_0x54f3d4['onDiscard'],this['_onAttributesChange']=_0x54f3d4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x54f3d4['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 _0x2e8d4e=this;for(;_0x2e8d4e['previous'];)_0x2e8d4e=_0x2e8d4e['previous'];return _0x2e8d4e;}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'](_0x420465){this['_markerNames']['add'](_0x420465);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x9570f4=>this['_model']['markers']['get'](_0x9570f4))['filter'](_0x18a95f=>_0x18a95f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5e5765=>{for(const _0xe544a6 of this['getMarkers']())_0x5e5765['removeMarker'](_0xe544a6);}),this['_markerNames']['clear']();}['removeMarker'](_0x8e808d){this['_model']['change'](_0x382f51=>{_0x382f51['removeMarker'](_0x8e808d);}),this['_markerNames']['delete'](_0x8e808d);}['addRange'](_0x1b97ec){const _0x4d08d8='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4d08d8),this['_model']['change'](_0x31bcb7=>{_0x31bcb7['addMarker'](_0x4d08d8,{'range':_0x1b97ec,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x203393){for(const _0x2e40d2 of this['getRanges']())if(_0x2e40d2['isIntersecting'](_0x203393))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x489000=>_0x489000['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x28a5cb,_0x2bec9c)=>[..._0x28a5cb,..._0x2bec9c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x44c7bf=this['getRanges']();if(0x1!=_0x44c7bf['length'])return null;const _0x380c29=_0x44c7bf[0x0],_0x5c28e8=_0x380c29['start']['nodeAfter'],_0x2ce48e=_0x380c29['end']['nodeBefore'];return _0x5c28e8 instanceof _0x3d639b?_0x5c28e8!=_0x2ce48e?null:_0x5c28e8: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 _0x315a85=[];let _0x3a4700=this['head'];for(;_0x3a4700;)_0x315a85['push'](_0x3a4700),_0x3a4700=_0x3a4700['next'];return _0x315a85;}['setAttribute'](_0x58db2a,_0x57d90d){const _0x588797=_0x4b5ae7(this['attributes']);_0x468606(_0x588797,_0x58db2a,_0x57d90d),_0x3c26f1(_0x588797,this['attributes'])||(this['attributes']=_0x588797,this['_onAttributesChange'](_0x588797));}['removeAttribute'](_0x49aa58){const _0x17bf53=_0x4b5ae7(this['attributes']);_0x27a739(_0x17bf53,_0x49aa58),_0x3c26f1(_0x17bf53,this['attributes'])||(this['attributes']=_0x17bf53,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 _0x4fc915()['substr'](0x1,0x5);}}function o(_0x3fe4ab,_0x336659,_0xde44ed){const _0x5f2520=_0x3fe4ab['t'],t=_0x3fe4ab['t'];switch(_0x336659){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',_0xde44ed);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xde44ed);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xde44ed);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xde44ed);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xde44ed);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',_0xde44ed);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xde44ed);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',_0xde44ed);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xde44ed);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xde44ed);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xde44ed);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xde44ed);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xde44ed);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xde44ed);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xde44ed);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xde44ed);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xde44ed);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xde44ed);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xde44ed);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xde44ed);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xde44ed);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xde44ed);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xde44ed);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xde44ed);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'},_0xde44ed);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xde44ed);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xde44ed);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xde44ed);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xde44ed);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xde44ed);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'},_0xde44ed);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xde44ed);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xde44ed);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xde44ed);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xde44ed);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'},_0xde44ed);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xde44ed);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'},_0xde44ed);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'},_0xde44ed);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xde44ed);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'},_0xde44ed);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xde44ed);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'},_0xde44ed);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xde44ed);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xde44ed);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'},_0xde44ed);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xde44ed);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 _0x5f2520({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xde44ed);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5f2520({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xde44ed);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xde44ed);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'},_0xde44ed);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'},_0xde44ed);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'},_0xde44ed);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x336659;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x127a8f,_0x35efcc){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x127a8f,this['_locale']=_0x35efcc;}['getDescriptions'](_0x302248){const _0x331aaf=[],_0x1b5c99=new Set(),_0x572c9a=new Set();for(let _0x3a9fad=0x0;_0x3a9fad<_0x302248['length'];_0x3a9fad++){const _0x5c7fe5=_0x302248[_0x3a9fad];if(!_0x5c7fe5['isInContent'])continue;const _0x53bdd1=this['_handleCustomCallbackDescription'](_0x5c7fe5);if(_0x53bdd1){if(null!=_0x5c7fe5['subType']){if(_0x1b5c99['has'](_0x5c7fe5['subType']))continue;_0x1b5c99['add'](_0x5c7fe5['subType']);}_0x331aaf['push'](_0x53bdd1);}else{if('attribute'!=_0x5c7fe5['type'])'insertion'!=_0x5c7fe5['type']&&'deletion'!=_0x5c7fe5['type']||this['_handleInsertRemoveSuggestionDescription'](_0x331aaf,_0x5c7fe5,_0x302248[_0x3a9fad+0x1]);else{const _0x543125=_0x5c7fe5['data']['key'];if(_0x572c9a['has'](_0x543125))continue;_0x572c9a['add'](_0x5c7fe5['data']['key']),_0x543125==m?this['_handleRenameSuggestionDescription'](_0x331aaf,_0x5c7fe5):this['_handleAttributeSuggestionDescription'](_0x331aaf,_0x5c7fe5);}}}return this['_resolveDescriptionItems'](_0x331aaf);}['registerDescriptionCallback'](_0x59a5f7){this['_customCallbacks']['push'](_0x59a5f7);}['registerElementLabel'](_0x7567ad,_0x47ccce,_0x4215be=_0x19128a['normal']){'function'==typeof _0x7567ad?_0x15524d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x7567ad,'label':_0x47ccce,'priority':_0x4215be}):this['_itemLabels']['set'](_0x7567ad,_0x47ccce);}['registerAttributeLabel'](_0x204271,_0x128d9b){this['_attributeLabels']['set'](_0x204271,_0x128d9b);}['getItemLabel'](_0x577374,_0x4d9588=0x1){let _0x11e2a0;for(const _0x38f582 of this['_itemLabelsCallbacks'])if(_0x38f582['matchingCallback'](_0x577374)){_0x11e2a0=_0x38f582['label'];break;}return _0x11e2a0||(_0x11e2a0=this['_itemLabels']['get'](_0x577374['name'])),_0x11e2a0?_0x11e2a0(_0x4d9588):0x1!==_0x4d9588?_0x4d9588+'\x20'+_0x577374['name']+'s':''+_0x577374['name'];}['_addDescriptionItems'](_0xcf321d,_0x3c84c1){const _0x4f6b1c=_0x3c84c1['getFirstRange']()['getWalker'](),_0x1a5b94='insertion'==_0x3c84c1['type']?'add':'remove';for(const _0x31de44 of _0x4f6b1c){const _0x5cafcc=_0x31de44['item'],_0x5e4b24=_0xcf321d[_0xcf321d['length']-0x1];if(_0x5cafcc['is']('$textProxy'))_0x5e4b24&&_0x5e4b24['type']['indexOf']('Container')>-0x1&&_0xcf321d['pop'](),_0x5e4b24&&'text'==_0x5e4b24['type']?_0x5e4b24[_0x1a5b94]+=_0x5cafcc['data']:_0xcf321d['push']({'type':'text','add':'add'==_0x1a5b94?_0x5cafcc['data']:'','remove':'remove'==_0x1a5b94?_0x5cafcc['data']:''});else{if(this['_schema']['isObject'](_0x5cafcc)){const _0x565dde=_0x5cafcc;if(_0x5e4b24&&_0x5e4b24['type']['indexOf']('Container')>-0x1&&_0xcf321d['pop'](),'elementEnd'==_0x31de44['type'])continue;_0x5e4b24&&_0x5e4b24['type']==_0x1a5b94+'Object'&&_0x5e4b24['element']['name']==_0x565dde['name']?_0x5e4b24['quantity']++:_0xcf321d['push']({'type':_0x1a5b94+'Object','element':_0x565dde,'quantity':0x1}),_0x4f6b1c['skip'](_0x585f19=>!('elementEnd'==_0x585f19['type']&&_0x585f19['item']==_0x5cafcc));}else{if(this['_schema']['checkChild'](_0x5cafcc,'$text')||_0x5cafcc['is']('element','softBreak')){const _0x257c8f=_0x5cafcc;if('add'==_0x1a5b94&&'elementStart'==_0x31de44['type']||'remove'==_0x1a5b94&&'elementEnd'==_0x31de44['type'])continue;if(_0x5e4b24&&-0x1==_0x5e4b24['type']['indexOf']('Container')){'text'==_0x5e4b24['type']&&(_0x5e4b24[_0x1a5b94]+='\x0a');continue;}let _0x3a39c6;if(_0x3a39c6='add'==_0x1a5b94?_0x257c8f['nextSibling']&&!this['_schema']['isObject'](_0x257c8f['nextSibling'])?_0x257c8f['nextSibling']:null:_0x257c8f['previousSibling']&&!this['_schema']['isObject'](_0x257c8f['previousSibling'])?_0x257c8f['previousSibling']:null,_0x257c8f['isEmpty']||_0x3a39c6&&_0x3a39c6['isEmpty']){const _0x969cfe=_0x3a39c6&&_0x3a39c6['isEmpty']?_0x3a39c6:_0x257c8f;_0x5e4b24&&_0x5e4b24['type']==_0x1a5b94+'EmptyContainer'&&_0x5e4b24['element']['name']==_0x969cfe['name']?_0x5e4b24['quantity']++:_0xcf321d['push']({'type':_0x1a5b94+'EmptyContainer','element':_0x969cfe,'quantity':0x1});}else _0xcf321d['push']({'type':_0x1a5b94+'Container','element':_0x257c8f});}}}}}['_resolveDescriptionItems'](_0x52300a){const _0x26a710=this['_locale'],_0x23837e=[],_0x3fd4e9=[],_0x21f454=[];for(const _0x17de0d of _0x52300a)switch(_0x17de0d['type']){case'text':if(_0x17de0d['add']=_0x17de0d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x17de0d['remove']=_0x17de0d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x17de0d['add']&&''!=_0x17de0d['remove']){_0x23837e['push']({'type':'replace','content':o(_0x26a710,'REPLACE_TEXT',['\x22'+_0x17de0d['remove']+'\x22','\x22'+_0x17de0d['add']+'\x22'])});continue;}if(null!=_0x17de0d['add']['match'](/^ +$/)){_0x23837e['push']({'type':'insertion','content':o(_0x26a710,'*Insert:*\x20%0',o(_0x26a710,'ELEMENT_SPACE',_0x17de0d['add']['length']))});continue;}if(null!=_0x17de0d['remove']['match'](/^ +$/)){_0x23837e['push']({'type':'deletion','content':o(_0x26a710,'*Remove:*\x20%0',o(_0x26a710,'ELEMENT_SPACE',_0x17de0d['remove']['length']))});continue;}if(''!=_0x17de0d['add']){_0x23837e['push']({'type':'insertion','content':o(_0x26a710,'*Insert:*\x20%0','\x22'+_0x17de0d['add']+'\x22')});continue;}_0x23837e['push']({'type':'deletion','content':o(_0x26a710,'*Remove:*\x20%0','\x22'+_0x17de0d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x23837e['push']({'type':'insertion','content':o(_0x26a710,'*Insert:*\x20%0',this['getItemLabel'](_0x17de0d['element'],_0x17de0d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x23837e['push']({'type':'deletion','content':o(_0x26a710,'*Remove:*\x20%0',this['getItemLabel'](_0x17de0d['element'],_0x17de0d['quantity']))});continue;case'addContainer':_0x23837e['push']({'type':'insertion','content':o(_0x26a710,'*Split:*\x20%0',this['getItemLabel'](_0x17de0d['element'],_0x17de0d['quantity']))});continue;case'removeContainer':_0x23837e['push']({'type':'deletion','content':o(_0x26a710,'*Merge:*\x20%0',this['getItemLabel'](_0x17de0d['element'],_0x17de0d['quantity']))});continue;case'addFormat':_0x3fd4e9['push'](_0x17de0d['key']);continue;case'removeFormat':_0x21f454['push'](_0x17de0d['key']);continue;default:_0x23837e['push'](_0x17de0d);}if(_0x3fd4e9['length']){const _0x194bd4=_0x3fd4e9['map'](_0x4629ce=>this['_attributeLabels']['has'](_0x4629ce)?this['_attributeLabels']['get'](_0x4629ce):_0x4629ce)['join'](',\x20');_0x23837e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x194bd4)});}if(_0x21f454['length']){const _0x5377da=_0x21f454['map'](_0x1fb47b=>this['_attributeLabels']['has'](_0x1fb47b)?this['_attributeLabels']['get'](_0x1fb47b):_0x1fb47b)['join'](',\x20');_0x23837e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5377da)});}return _0x23837e;}['_handleCustomCallbackDescription'](_0x236365){for(const _0x1bf311 of this['_customCallbacks']){const _0x5d5953=_0x1bf311(_0x236365);if(_0x5d5953&&'type'in _0x5d5953)return _0x5d5953;}}['_handleAttributeSuggestionDescription'](_0x242089,_0x22da34){const _0x19bdd2=_0x22da34['data'],_0xea820a=void 0x0===_0x19bdd2['newValue']?'removeFormat':'addFormat';_0x242089['push']({'type':_0xea820a,'key':_0x19bdd2['key']});}['_handleRenameSuggestionDescription'](_0x340d39,_0x294790){_0x340d39['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x294790['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2c31a8,_0x4f6950,_0x279261){if(this['_addDescriptionItems'](_0x2c31a8,_0x4f6950),_0x279261&&_0x279261['getFirstRange']()&&!_0x4f6950['getFirstRange']()['end']['isEqual'](_0x279261['getFirstRange']()['start'])){const _0x2bd627=_0x2c31a8[_0x2c31a8['length']-0x1],_0x40a4d0='insertion'==_0x4f6950['type']?'add':'remove';_0x2bd627&&'text'==_0x2bd627['type']&&(_0x2bd627[_0x40a4d0]+='\x0a');}}}class U extends _0xa4c963{['afterInit'](){const _0x147c6b=this['editor'],_0x317b79=_0x147c6b['plugins']['get']('TrackChangesEditing');_0x147c6b['commands']['get']('showAIAssistant')&&_0x317b79['enableCommand']('showAIAssistant');}}class V extends _0xa4c963{['afterInit'](){const _0xc852e7=this['editor'],_0x157023=_0xc852e7['locale'];if(!_0xc852e7['plugins']['has']('AlignmentEditing'))return;const _0x10eb7c=_0xc852e7['plugins']['get']('TrackChangesEditing');_0x10eb7c['enableDefaultAttributesIntegration']('alignment'),_0x10eb7c['registerBlockAttribute']('alignment'),_0x10eb7c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x157023,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3be1e8=this['editor'],_0x1dc45a=_0x3be1e8['locale'];_0x3be1e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x184ce4=>{if('formatBlock'!=_0x184ce4['type'])return;const {data:_0x43fd42}=_0x184ce4;if(_0x43fd42&&'alignment'==_0x43fd42['commandName']){const _0x4f9045=_0x43fd42['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1dc45a,'*Format:*\x20%0',function(_0x13a076){switch(_0x13a076){case'left':return o(_0x1dc45a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1dc45a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1dc45a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1dc45a,'FORMAT_JUSTIFY_TEXT');}}(_0x4f9045))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0xa4c963{['afterInit'](){const _0x29ad4d=this['editor'],_0x4adc10=_0x29ad4d['plugins']['get']('TrackChangesEditing'),_0x9ca6=_0x29ad4d['locale'];for(const _0x4a7c34 of Zt){if(!_0x29ad4d['plugins']['has'](_0x4a7c34))continue;const _0x2ddb2=_0x4a7c34['slice'](0x0,-0x7)['toLowerCase'](),_0x472db4='FORMAT_'+_0x2ddb2['toUpperCase']();_0x4adc10['enableDefaultAttributesIntegration'](_0x2ddb2),_0x4adc10['registerInlineAttribute'](_0x2ddb2),_0x4adc10['descriptionFactory']['registerAttributeLabel'](_0x2ddb2,o(_0x9ca6,_0x472db4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x206227=this['editor'],_0x54dccd=_0x206227['locale'],_0xbeb291=_0x206227['plugins']['get']('TrackChangesEditing');function _0x115b1a(_0x2c2ddf,_0x2cd65d){_0xbeb291['descriptionFactory']['registerDescriptionCallback'](_0x46c67b=>{if('formatInline'!=_0x46c67b['type'])return;const {data:_0x324f87}=_0x46c67b;return _0x324f87&&_0x324f87['commandName']===_0x2c2ddf?_0x324f87['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54dccd,'*Format:*\x20%0',_0x2cd65d)}:{'type':'format','content':o(_0x54dccd,'*Remove\x20format:*\x20%0',_0x2cd65d)}:void 0x0;});}_0x115b1a('bold',o(_0x54dccd,'FORMAT_BOLD')),_0x115b1a('italic',o(_0x54dccd,'FORMAT_ITALIC')),_0x115b1a('underline',o(_0x54dccd,'FORMAT_UNDERLINE')),_0x115b1a('code',o(_0x54dccd,'FORMAT_CODE')),_0x115b1a('strikethrough',o(_0x54dccd,'FORMAT_STRIKETHROUGH')),_0x115b1a('subscript',o(_0x54dccd,'FORMAT_SUBSCRIPT')),_0x115b1a('superscript',o(_0x54dccd,'FORMAT_SUPERSCRIPT'));}}class F extends _0xa4c963{['afterInit'](){const _0x2b137f=this['editor'],_0x45f5e0=_0x2b137f['locale'];if(!_0x2b137f['plugins']['has']('BlockQuoteEditing'))return;const _0xd2f28f=_0x2b137f['plugins']['get']('TrackChangesEditing'),_0x120259=this['editor']['commands']['get']('blockQuote');_0xd2f28f['enableCommand']('blockQuote',(_0x3ee351,_0x2e4447={})=>{const _0x42c955=this['editor']['model']['document']['selection'],_0xda86b1=_0x2e4447&&void 0x0!==_0x2e4447['forceValue']?_0x2e4447['forceValue']:!_0x120259['value'];let _0xa67ff9=[];if(_0xda86b1){const _0x484970=Array['from'](_0x42c955['getSelectedBlocks']())['filter'](_0x1676f7=>oo(_0x1676f7)||function(_0x5f1c3a,_0x2e9735){const _0x2434b9=_0x2e9735['checkChild'](_0x5f1c3a['parent'],'blockQuote'),_0x5a9d5f=_0x2e9735['checkChild'](['$root','blockQuote'],_0x5f1c3a);return _0x2434b9&&_0x5a9d5f;}(_0x1676f7,this['editor']['model']['schema']));_0xa67ff9=to(_0x484970,_0x2b137f['model']);}else{const _0x11fd97=Array['from'](_0x42c955['getSelectedBlocks']())['filter'](_0x3cdf87=>oo(_0x3cdf87));_0xa67ff9=to(_0x11fd97,_0x2b137f['model']);}_0x2b137f['model']['change'](()=>{for(const _0x242238 of _0xa67ff9)_0xd2f28f['markBlockFormat'](_0x242238,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xda86b1}]});});}),_0xd2f28f['descriptionFactory']['registerDescriptionCallback'](_0x142737=>{const {data:_0xbd390a}=_0x142737;if(_0xbd390a&&'blockQuote'==_0xbd390a['commandName']){const _0x328862=o(_0x45f5e0,'ELEMENT_BLOCK_QUOTE');return _0xbd390a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x45f5e0,'*Set\x20format:*\x20%0',_0x328862)}:{'type':'format','content':o(_0x45f5e0,'*Remove\x20format:*\x20%0',_0x328862)};}});}}function oo(_0x48651c){return'blockQuote'==_0x48651c['parent']['name'];}class L extends _0xa4c963{['afterInit'](){const _0x30f939=this['editor'],_0x408144=_0x30f939['locale'],_0x2965f4=_0x30f939['plugins']['get']('TrackChangesEditing');_0x30f939['plugins']['has']('BookmarkEditing')&&(_0x2965f4['enableCommand']('insertBookmark'),_0x2965f4['enableDefaultAttributesIntegration']('updateBookmark'),_0x2965f4['registerBlockAttribute']('bookmarkId'),_0x2965f4['descriptionFactory']['registerDescriptionCallback'](_0x55230c=>{if('insertion'!=_0x55230c['type']&&'deletion'!=_0x55230c['type']&&'attribute'!=_0x55230c['type'])return;const _0x3716b8=_0x55230c['getContainedElement']();if(null==_0x3716b8)return;if(!_0x3716b8['is']('element','bookmark'))return;const _0x56b5eb=_0x3716b8['getAttribute']('bookmarkId');if('insertion'==_0x55230c['type'])return{'type':'insertion','content':o(_0x408144,'*Insert:*\x20%0','\x22'+_0x56b5eb+'\x22\x20'+o(_0x408144,'ELEMENT_BOOKMARK'))};if('deletion'==_0x55230c['type'])return{'type':'deletion','content':o(_0x408144,'*Remove:*\x20%0','\x22'+_0x56b5eb+'\x22\x20'+o(_0x408144,'ELEMENT_BOOKMARK'))};const {data:_0xb2743}=_0x55230c;if(!_0xb2743||'bookmarkId'!=_0xb2743['key'])return;return{'type':'format','content':o(_0x408144,'*Set\x20bookmark:*\x20%0','\x22'+_0xb2743['newValue']+'\x22')};}));}}class J extends _0xa4c963{['afterInit'](){const _0x5c4006=this['editor'];_0x5c4006['plugins']['has']('CaseChange')&&(_0x5c4006['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5c4006['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5c4006['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0xa4c963{['afterInit'](){const _0x1e8ce6=this['editor'];_0x1e8ce6['commands']['get']('ckbox')&&_0x1e8ce6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0xa4c963{['afterInit'](){const _0x4a3748=this['editor'];if(!_0x4a3748['plugins']['has']('CodeBlock'))return;const _0x4d59d8=_0x4a3748['plugins']['get']('TrackChangesEditing'),_0x586cea=_0x4a3748['locale'],_0x2210fc=_0x4a3748['config']['get']('codeBlock')['languages'],_0x4cc2b4=_0x4a3748['commands']['get']('codeBlock');_0x4d59d8['enableCommand']('indentCodeBlock'),_0x4d59d8['enableCommand']('outdentCodeBlock'),_0x4d59d8['enableCommand']('codeBlock',(_0x54b504,_0x48c131={})=>{const _0x587426=_0x4a3748['model'],_0x3c4ed5=_0x4a3748['model']['document']['selection'],_0x426011=_0x48c131&&void 0x0!==_0x48c131['forceValue']?_0x48c131['forceValue']:!_0x4cc2b4['value'];let _0x1917c3;_0x48c131['language']||(_0x48c131['language']=_0x2210fc[0x0]['language']),_0x1917c3=_0x426011?Array['from'](_0x3c4ed5['getSelectedBlocks']())['filter'](_0x3d85e2=>eo(_0x3d85e2)||function(_0x4b5697,_0x3d106b){if(_0x4b5697['is']('rootElement')||_0x3d106b['isLimit'](_0x4b5697))return!0x1;return _0x3d106b['checkChild'](_0x4b5697['parent'],'codeBlock');}(_0x3d85e2,_0x587426['schema'])):Array['from'](_0x3c4ed5['getSelectedBlocks']())['filter'](_0x35d6e3=>eo(_0x35d6e3));const _0x280bcc=to(_0x1917c3,_0x587426);_0x587426['change'](()=>{for(const _0x4087a2 of _0x280bcc)_0x4d59d8['markBlockFormat'](_0x4087a2,{'commandName':'codeBlock','commandParams':[{..._0x48c131,'forceValue':_0x426011}],'formatGroupId':'blockName'});});}),(_0x4d59d8['descriptionFactory']['registerElementLabel']('codeBlock',_0x443951=>o(_0x586cea,'ELEMENT_CODE_BLOCK',_0x443951)),_0x4d59d8['descriptionFactory']['registerDescriptionCallback'](_0x176399=>{if('formatBlock'!=_0x176399['type'])return;const _0x3b2acb=_0x586cea['t'],{data:_0x294f69}=_0x176399;if(!_0x294f69||'codeBlock'!=_0x294f69['commandName'])return;const _0x319e57=_0x294f69['commandParams'][0x0]['language'],_0x2d95c3=_0x3b2acb(_0x2210fc['find'](_0x525658=>_0x525658['language']===_0x319e57)['label'])['toLowerCase']();return _0x294f69['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x586cea,'*Set\x20format:*\x20%0',o(_0x586cea,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2d95c3+')')}:{'type':'format','content':o(_0x586cea,'*Remove\x20format:*\x20%0',o(_0x586cea,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4e92d5){return'codeBlock'==_0x4e92d5['name'];}class z extends _0xa4c963{['afterInit'](){const _0x32de7e=this['editor'];if(!_0x32de7e['plugins']['has']('CommentsEditing'))return;_0x32de7e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2c1d47,_0x4aace0,_0xed1c99){const _0x2ffa35=[];for(const _0x287601 of _0x4aace0['getItems']())_0x287601['hasAttribute'](_0x2c1d47)&&_0x2ffa35['push'](_0xed1c99['createRangeOn'](_0x287601));return _0x2ffa35;}function Ne(_0x2edfeb,_0x22cce0,{showActiveMarker:_0x603115=!0x0}={}){const _0x25611d=_0x2edfeb['plugins']['get']('TrackChangesEditing');return(_0xa02b6,_0x3fb0ad,_0x10509c)=>{if(!_0x10509c['consumable']['test'](_0x3fb0ad['markerRange'],_0xa02b6['name']))return;const _0x21e40b=_0x3fb0ad['markerRange']['getWalker'](),_0x3b340d=_0x3fb0ad['markerRange']['start'],_0x343ef7=_0x2edfeb['model']['schema'];let _0x4d34af=null,_0x1b79cb=null,_0x35fd7a=!0x1,_0x4fe767=!0x1;for(const _0x5263ae of _0x21e40b){const _0x4656d8=_0x5263ae['item'];_0x35fd7a=_0x35fd7a||_0x343ef7['isContent'](_0x4656d8);const _0x2d1b81=_0x10509c['mapper']['toViewElement'](_0x4656d8);if(_0x2d1b81&&_0x2d1b81['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5263ae['type']&&(_0x343ef7['isBlock'](_0x4656d8)&&!_0x343ef7['isLimit'](_0x4656d8)&&(_0x4656d8['nextSibling']||_0x3b340d['isAtEnd']?_0x4d34af&&_0x4d34af['parent']==_0x4656d8||(_0x4d34af=_0x4656d8,_0x13a1e7(_0x5263ae['previousPosition']),_0x4fe767=!0x0):_0x1b79cb=_0x1b79cb||_0x5263ae['previousPosition']));}function _0x13a1e7(_0x10ad25){const {authorId:_0x2607ee}=_0x25611d['_splitMarkerName'](_0x3fb0ad['markerName']),_0x12fd0a=_0x10509c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x22cce0,'data-author-id':_0x2607ee}),_0x2a8ebb=_0x10509c['mapper']['toViewPosition'](_0x10ad25);_0x603115&&_0x25611d['activeMarkers']['includes'](_0x3fb0ad['markerName'])&&_0x10509c['writer']['addClass']('ck-suggestion-marker--active',_0x12fd0a),_0x10509c['writer']['insert'](_0x2a8ebb,_0x12fd0a),_0x10509c['mapper']['bindElementToMarker'](_0x12fd0a,_0x3fb0ad['markerName']);}_0x35fd7a||_0x4fe767||!_0x1b79cb||_0x13a1e7(_0x1b79cb);};}class K extends _0xa4c963{static get['requires'](){return[_0x38e18c];}['init'](){const _0x536d06=this['editor'],_0x3c6a15=_0x536d06['plugins']['get']('TrackChangesEditing');_0x3c6a15['enableCommand']('delete');const _0xcbf6cc=_0x536d06['commands']['get']('deleteForward');_0x3c6a15['enableCommand']('deleteForward',(_0x210ced,_0x41f20a={})=>{const _0x5472f7=_0x536d06['model']['createSelection'](_0x536d06['model']['document']['selection']);_0x5472f7['isCollapsed']&&_0x536d06['model']['modifySelection'](_0x5472f7,{'direction':'forward','unit':_0x41f20a['unit']});const _0x301d15=_0x5472f7['getFirstRange'](),_0x5cdf11=_0xac092f['fromRange'](_0x301d15);let _0x3b0c75;_0x210ced(_0x41f20a),_0x3b0c75='$graveyard'==_0x5cdf11['root']['rootName']?_0x536d06['model']['createRange'](_0x301d15['start']):_0x536d06['model']['createRange'](_0x5cdf11['start'],_0x5cdf11['end']),_0x5cdf11['detach'](),_0x536d06['model']['enqueueChange'](_0xcbf6cc['buffer']['batch'],_0x4745c2=>{_0xcbf6cc['buffer']['lock'](),_0x4745c2['setSelection'](_0x4745c2['createRange'](_0x3b0c75['end'])),_0xcbf6cc['buffer']['unlock']();});}),_0x536d06['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x536d06,'merge'),{'priority':'high'}),_0x536d06['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x511965,_0x1a168d,_0x3a149f)=>{_0x3a149f['options']['showSuggestionHighlights']&&Ne(_0x536d06,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x511965,_0x1a168d,_0x3a149f);},{'priority':'high'}),_0x536d06['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4b225f,_0x2ca980,_0x1410d2)=>{const _0x21633b=_0x1410d2['mapper']['markerNameToElements'](_0x2ca980['markerName']);if(_0x21633b){for(const _0x556157 of _0x21633b)_0x556157['is']('uiElement')&&(_0x1410d2['mapper']['unbindElementFromMarkerName'](_0x556157,_0x2ca980['markerName']),_0x1410d2['writer']['remove'](_0x556157));}},{'priority':'high'});}}class W extends _0xa4c963{['afterInit'](){const _0xc88b66=this['editor'];if(!_0xc88b66['plugins']['has']('ListEditing'))return;const _0x234547=_0xc88b66['locale'],_0x133a9d=_0xc88b66['plugins']['get']('TrackChangesEditing'),_0x461935=_0xc88b66['plugins']['has']('TodoListEditing'),_0xcd88a2=!!_0xc88b66['config']['get']('list.multiBlock');function _0x2a5c54(_0x13524a){return{'type':'format','content':''+o(_0x234547,'*Set\x20format:*\x20%0',_0x13524a)};}function _0x18ec5d(_0x46fe63){return{'type':'format','content':''+o(_0x234547,'*Remove\x20format:*\x20%0',_0x46fe63)};}_0x133a9d['enableDefaultAttributesIntegration']('numberedList'),_0x133a9d['enableDefaultAttributesIntegration']('bulletedList'),_0x133a9d['enableDefaultAttributesIntegration']('customNumberedList'),_0x133a9d['enableDefaultAttributesIntegration']('customBulletedList'),_0x133a9d['enableDefaultAttributesIntegration']('indentList'),_0x133a9d['enableDefaultAttributesIntegration']('outdentList'),_0x133a9d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x133a9d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x133a9d['registerBlockAttribute']('listItemId'),_0x133a9d['registerBlockAttribute']('listType'),_0x133a9d['registerBlockAttribute']('listIndent'),_0xcd88a2&&(_0x133a9d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x133a9d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x461935&&(_0x133a9d['enableDefaultAttributesIntegration']('todoList'),_0x133a9d['enableDefaultAttributesIntegration']('checkTodoList'),_0x133a9d['registerBlockAttribute']('todoListChecked'),_0x133a9d['descriptionFactory']['registerDescriptionCallback'](_0x56e0ae=>{const {data:_0x26a4a3}=_0x56e0ae;if(_0x26a4a3&&'todoListChecked'==_0x26a4a3['key'])return{'type':'format','content':_0x26a4a3['newValue']?o(_0x234547,'*Check\x20item*'):o(_0x234547,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4e7218=>{if(_0x4e7218['batch']['isUndo'])return!0x1;let _0x1fbcce=!0x1;const _0x275eb1=_0x133a9d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x451909=>'todoListChecked'===_0x133a9d['_getAttributeKey'](_0x451909));for(const _0x4684cf of _0x275eb1){'todo'!=_0x4684cf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x133a9d['_findSuggestions'](_0x4684cf['getFirstRange'](),'attribute')['find'](_0x1bd877=>'listType'===_0x133a9d['_getAttributeKey'](_0x1bd877['suggestion']))||(_0x4e7218['removeMarker'](_0x4684cf['getFirstMarker']()),_0x1fbcce=!0x0));}return _0x1fbcce;})),_0x133a9d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x234547,'FORMAT_INDENT'));const _0x504fb4={'type':'format','content':''};_0x133a9d['descriptionFactory']['registerDescriptionCallback'](_0x3df518=>{const {data:_0x15476e}=_0x3df518;if(!_0x15476e||'listType'!=_0x15476e['key'])return;let _0x21699e=_0x3df518['head'];for(;_0x21699e;){if(_0x21699e['data']&&(('listStyle'==_0x21699e['data']['key']||'listMarkerStyle'==_0x21699e['data']['key'])&&(_0x21699e['data']['newValue']&&'default'!=_0x21699e['data']['newValue']||'default'!=_0x21699e['data']['oldValue']&&!_0x15476e['newValue'])||!_0xcd88a2&&_0x21699e['data']['key']==m))return _0x504fb4;_0x21699e=_0x21699e['next'];}if(null==_0x15476e['newValue'])switch(_0x15476e['oldValue']){case'bulleted':return _0x18ec5d(o(_0x234547,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x18ec5d(o(_0x234547,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x18ec5d(o(_0x234547,'ELEMENT_TODO_LIST'));}switch(_0x15476e['newValue']){case'bulleted':return _0x2a5c54(o(_0x234547,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2a5c54(o(_0x234547,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2a5c54(o(_0x234547,'ELEMENT_TODO_LIST'));}}),_0x133a9d['descriptionFactory']['registerDescriptionCallback'](_0x3fe984=>{const {data:_0x489ad8}=_0x3fe984;if(_0x489ad8&&'listIndent'==_0x489ad8['key'])return null==_0x489ad8['newValue']||null==_0x489ad8['oldValue']&&0x0==_0x489ad8['newValue']?_0x504fb4:void 0x0;}),_0x133a9d['descriptionFactory']['registerDescriptionCallback'](_0x332ac1=>{if('attribute'!=_0x332ac1['type'])return;const {data:_0x8ad8e2}=_0x332ac1;if(!_0x8ad8e2||'listItemId'!=_0x8ad8e2['key'])return;const _0x26e644=Te(_0x332ac1);return'newValue'==_0x26e644?{'type':'format','content':o(_0x234547,'*Merge:*\x20list\x20item')}:'oldValue'==_0x26e644?{'type':'format','content':o(_0x234547,'*Split:*\x20list\x20item')}:_0x504fb4;}),_0xc88b66['model']['document']['registerPostFixer'](_0x3437eb=>this['listItemIdFixer'](_0x3437eb)),_0xc88b66['model']['document']['registerPostFixer'](_0xda51b6=>this['noTrackChangesFixer'](_0xda51b6)),_0xc88b66['model']['document']['on']('change:data',(_0x2a9799,_0x2d093e)=>{if(_0x2d093e['isUndo']||!_0x2d093e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3d93b0){if(_0x3d93b0['batch']['isUndo']||!_0x3d93b0['batch']['isLocal'])return!0x1;let _0x3562c8=!0x1;const _0x27505e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x61117b=>_0x61117b['data']&&'listItemId'==_0x61117b['data']['key'])['filter'](_0x318db9=>_0x318db9['data']['newValue']&&_0x318db9['data']['oldValue']);for(const _0x28f791 of _0x27505e)Te(_0x28f791)||(_0x3d93b0['removeMarker'](_0x28f791['getFirstMarker']()),_0x3562c8=!0x0);return _0x3562c8;}['noTrackChangesFixer'](_0x86880c){if(_0x86880c['batch']['isUndo']||!_0x86880c['batch']['isLocal'])return!0x1;const _0x2fa0e6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2fa0e6['trackChangesCommand']['value'])return!0x1;let _0x37e460=!0x1;const _0x5b32d8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5818a4=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5bd535=>'attribute'==_0x5bd535['type'])['filter'](_0x11a567=>_0x5b32d8['includes'](_0x11a567['attributeKey']));if(0x0==_0x5818a4['length'])return _0x37e460;for(const _0x52a71d of _0x5818a4){const _0x5965b9=_0x2fa0e6['_findSuggestions'](_0x52a71d['range'],'attribute')['filter'](_0x4edf1b=>!_0x4edf1b['meta']['isNextTo'])['map'](_0x577889=>_0x577889['suggestion'])['filter'](_0x258545=>{const _0x68c358=_0x2fa0e6['_getAttributeKey'](_0x258545);return _0x5b32d8['includes'](_0x68c358);});if(_0x5965b9['length']){for(const _0x5511ba of _0x5965b9)_0x86880c['removeMarker'](_0x5511ba['getFirstMarker']());_0x37e460=!0x0;}}return _0x37e460;}['assureChains'](){const _0x215f2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x208b7d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3a09d4;const _0x268923=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x53f406=>{if(_0x53f406['data']['oldRange']||!_0x53f406['data']['newRange'])return null;if(!_0x53f406['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5a8fa6}=_0x215f2b['_splitMarkerName'](_0x53f406['name']);if(!_0x215f2b['hasSuggestion'](_0x5a8fa6))return null;const _0x32c273=_0x215f2b['getSuggestion'](_0x5a8fa6);return _0x208b7d['includes'](_0x32c273['data']['key']);})['map'](_0x4ca59b=>{const {id:_0x1dea84}=_0x215f2b['_splitMarkerName'](_0x4ca59b['name']),_0xc16594=_0x215f2b['getSuggestion'](_0x1dea84);return _0x3a09d4=_0xc16594['attributes']['groupId'],_0xc16594['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x268923['size'])return;const _0x494989=_0x215f2b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x423d18=>'attribute'==_0x423d18['type']&&_0x423d18['data']&&_0x208b7d['includes'](_0x423d18['data']['key'])&&_0x423d18['attributes']['groupId']!=_0x3a09d4)['map'](_0x36f593=>({'listItem':_0x36f593['getFirstRange']()['start']['nodeAfter'],'groupId':_0x36f593['attributes']['groupId']})),_0x281960=new Set();for(const {groupId:_0x354d67,listItem:_0x595834}of _0x494989)_0x268923['has'](_0x595834)&&_0x281960['add'](_0x354d67);for(const _0x26f01e of _0x215f2b['getSuggestions']())_0x281960['has'](_0x26f01e['attributes']['groupId'])&&_0x26f01e['setAttribute']('groupId',_0x3a09d4);}['_supportLegacySuggestions'](){const _0x317864=this['editor'],_0x11102e=_0x317864['locale'],_0x42fa58=_0x317864['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x42fa58['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2b36df,_0x25be24){const _0x164566=[];for(let _0x3040df of _0x2b36df)_0x3040df['start']['nodeAfter']===_0x3040df['end']['parent']&&(_0x3040df=_0x317864['model']['createRange'](_0x317864['model']['createPositionAt'](_0x3040df['start']['nodeAfter'],0x0))),_0x164566['push'](_0x3040df);_0x317864['model']['change'](_0x3b4cea=>{const _0x40187b=_0x317864['model']['document']['selection'],_0x5ee4b2=Array['from'](_0x40187b['getRanges']())['map'](_0x1eed26=>_0xac092f['fromRange'](_0x1eed26));_0x3b4cea['setSelection'](_0x164566),_0x317864['commands']['get'](_0x25be24['commandName'])['refresh'](),_0x25be24['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x317864['execute'](_0x25be24['commandName'],..._0x25be24['commandParams']),_0x3b4cea['setSelection'](_0x5ee4b2);for(const _0x390d6b of _0x5ee4b2)_0x390d6b['detach']();});}),_0x42fa58['descriptionFactory']['registerElementLabel'](function(_0x63f783){const _0x4e8e6f=!_0x317864['model']['schema']['isObject'](_0x63f783),_0x5b14a1=_0x63f783['previousSibling'],_0x2d8400=_0x63f783['nextSibling'],_0x54b3c9=_0x63f783['getAttribute']('listItemId'),_0xbaa460=!_0x5b14a1||_0x5b14a1['getAttribute']('listItemId')!==_0x54b3c9,_0x548231=!_0x2d8400||_0x2d8400['getAttribute']('listItemId')!==_0x54b3c9;return _0x4e8e6f&&Boolean(_0x54b3c9)&&_0xbaa460&&_0x548231;},_0x5e0652=>o(_0x11102e,'ELEMENT_LIST_ITEM',_0x5e0652));}['_registerLegacyDescription'](){const _0x2ff4aa=this['editor'],_0x2b1015=_0x2ff4aa['locale'];function _0x1d3123(_0x67776b){const _0x3ea5dd=_0x2ff4aa['commands']['get']('bulletedList')['value'],_0x4a52b4=_0x2ff4aa['commands']['get']('numberedList')['value'];return'numberedList'===_0x67776b?_0x3ea5dd:_0x4a52b4;}_0x2ff4aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x48991d){if('formatBlock'!=_0x48991d['type'])return;const {data:_0x3d6dc1}=_0x48991d;if(!_0x3d6dc1)return;let _0x596bf5,_0x9bb1e8,_0x309db7,_0x3f237e;switch(_0x3d6dc1['commandName']){case'bulletedList':_0x309db7=_0x3d6dc1['commandParams'][0x0]['forceValue'],_0x3f237e=_0x1d3123(_0x3d6dc1['commandName']),_0x596bf5=_0x309db7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f237e&&_0x2ff4aa['config']['get']('list.multiBlock')||(_0x596bf5='*Change\x20to:*\x20%0'),_0x9bb1e8={'type':'format','content':o(_0x2b1015,_0x596bf5,o(_0x2b1015,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x309db7=_0x3d6dc1['commandParams'][0x0]['forceValue'],_0x3f237e=_0x1d3123(_0x3d6dc1['commandName']),_0x596bf5=_0x309db7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f237e&&_0x2ff4aa['config']['get']('list.multiBlock')||(_0x596bf5='*Change\x20to:*\x20%0'),_0x9bb1e8={'type':'format','content':o(_0x2b1015,_0x596bf5,o(_0x2b1015,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x596bf5='*Indent:*\x20%0',_0x9bb1e8={'type':'format','content':o(_0x2b1015,_0x596bf5,o(_0x2b1015,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x596bf5=function(_0x58053e){const _0x45cac7=_0x58053e['getFirstRange']();let _0x372a03=_0x45cac7['start']['nodeAfter'];for(;_0x372a03&&_0x45cac7['containsItem'](_0x372a03);){if(_0x372a03['getAttribute']('listIndent')>0x0)return!0x1;_0x372a03=_0x372a03['nextSibling'];}return!0x0;}(_0x48991d)?o(_0x2b1015,'*Format:*\x20remove\x20from\x20%0',o(_0x2b1015,function(_0xb6261e){return'ELEMENT_'+_0xb6261e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x48991d))):o(_0x2b1015,'*Outdent:*\x20%0',o(_0x2b1015,'ELEMENT_LIST_ITEM')),_0x9bb1e8={'type':'format','content':_0x596bf5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3d6dc1['multipleBlocks']&&(_0x596bf5='*Merge:*\x20%0',_0x9bb1e8={'type':'deletion','content':o(_0x2b1015,_0x596bf5,o(_0x2b1015,'ELEMENT_LIST_ITEM'))});}return _0x9bb1e8;});}}function Te(_0x551cb0){let _0x403423=_0x551cb0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x403423;){const _0x37f8ae=_0x403423['getAttribute']('listItemId');if(!_0x37f8ae)return!0x1;if(_0x37f8ae==_0x551cb0['data']['newValue'])return'newValue';if(_0x37f8ae==_0x551cb0['data']['oldValue'])return'oldValue';_0x403423=_0x403423['previousSibling'];}return!0x1;}class ye extends _0xa4c963{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4c9d3f=this['editor']['config']['get']('list.properties'),_0x2a761a=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c9d3f['styles']&&(_0x2a761a['enableDefaultAttributesIntegration']('listStyle'),_0x2a761a['registerBlockAttribute']('listStyle')),_0x4c9d3f['reversed']&&(_0x2a761a['enableDefaultAttributesIntegration']('listReversed'),_0x2a761a['registerBlockAttribute']('listReversed')),_0x4c9d3f['startIndex']&&(_0x2a761a['enableDefaultAttributesIntegration']('listStart'),_0x2a761a['registerBlockAttribute']('listStart'));const _0x351a88={'type':'format','content':''};_0x2a761a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x43e43e=this['editor']['locale'];_0x2a761a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x43e43e,'FORMAT_LIST_REVERSED')),_0x2a761a['descriptionFactory']['registerDescriptionCallback'](_0xe451a3=>{const {data:_0x52de30}=_0xe451a3;if(_0x52de30&&'listReversed'==_0x52de30['key'])return null==_0x52de30['newValue']||0x0==_0x52de30['newValue']&&null==_0x52de30['oldValue']?_0x351a88:void 0x0;}),_0x2a761a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x43e43e,'FORMAT_LIST_START')),_0x2a761a['descriptionFactory']['registerDescriptionCallback'](_0x37f84c=>{const {data:_0x1f87bd}=_0x37f84c;if(_0x1f87bd&&'listStart'==_0x1f87bd['key'])return null==_0x1f87bd['newValue']||0x1==_0x1f87bd['newValue']&&null==_0x1f87bd['oldValue']?_0x351a88:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xc03565=>{if(_0xc03565['batch']['isUndo'])return!0x1;let _0x4839a5=!0x1;const _0x59383f=_0x2a761a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f8db5=>{const _0x334d95=_0x2a761a['_getAttributeKey'](_0x3f8db5);return'listStart'==_0x334d95||'listReversed'==_0x334d95;});for(const _0x59944d of _0x59383f){const _0x12da04=_0x59944d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x12da04||'customNumbered'==_0x12da04)continue;_0x2a761a['_findSuggestions'](_0x59944d['getFirstRange'](),'attribute')['find'](_0x339983=>'listType'==_0x2a761a['_getAttributeKey'](_0x339983['suggestion']))||(_0xc03565['removeMarker'](_0x59944d['getFirstMarker']()),_0x4839a5=!0x0);}return _0x4839a5;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x466826){const _0x333b94=this['editor']['locale'],{data:_0x440f72}=_0x466826,_0x50e417={'type':'format','content':''};if(!_0x440f72||'listStyle'!=_0x440f72['key'])return;if(!_0x440f72['oldValue'])return'default'==_0x440f72['newValue']?_0x50e417:{'type':'format','content':''+o(_0x333b94,'*Set\x20format:*\x20%0',o(_0x333b94,this['_getTranslationKeyForListStyle'](_0x440f72['newValue'])))};if(!_0x440f72['newValue']){if('default'==_0x440f72['oldValue'])return _0x50e417;let _0x2c4c3c=_0x466826['head'];for(;_0x2c4c3c;){if(_0x2c4c3c['data']&&'listType'==_0x2c4c3c['data']['key']&&_0x2c4c3c['data']['newValue'])return _0x50e417;_0x2c4c3c=_0x2c4c3c['next'];}return{'type':'format','content':''+o(_0x333b94,'*Remove\x20format:*\x20%0',o(_0x333b94,this['_getTranslationKeyForListStyle'](_0x440f72['oldValue'])))};}if('default'!=_0x440f72['newValue'])return{'type':'format','content':''+o(_0x333b94,'*Set\x20format:*\x20%0',o(_0x333b94,this['_getTranslationKeyForListStyle'](_0x440f72['newValue'])))};let _0x4bc836=_0x466826['head'];for(;_0x4bc836;){if(_0x4bc836['data']&&'listType'==_0x4bc836['data']['key']&&_0x4bc836['data']['newValue']&&_0x4bc836['data']['oldValue'])return _0x50e417;_0x4bc836=_0x4bc836['next'];}return{'type':'format','content':o(_0x333b94,'*Set\x20format:*\x20%0',o(_0x333b94,'ELEMENT_'+_0x466826['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x26b8c8=this['editor'],_0x5728de=_0x26b8c8['locale'];_0x26b8c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x490c85=>{if('formatBlock'!=_0x490c85['type'])return;const {data:_0x245302}=_0x490c85;if(!_0x245302)return;let _0x52dde3,_0x1b0494;switch(_0x245302['commandName']){case'listStyle':_0x52dde3='*Change\x20to:*\x20%0',_0x1b0494={'type':'format','content':o(_0x5728de,_0x52dde3,o(_0x5728de,this['_getTranslationKeyForListStyle'](_0x245302['commandParams'][0x0]['type'])))};break;case'listReversed':_0x52dde3=_0x245302['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1b0494={'type':'format','content':o(_0x5728de,_0x52dde3)};break;case'listStart':_0x52dde3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1b0494={'type':'format','content':o(_0x5728de,_0x52dde3,_0x245302['commandParams'][0x0]['startIndex'])};}return _0x1b0494;});}['_getTranslationKeyForListStyle'](_0x28a14e){return'ELEMENT_'+function(_0x1552b7){if(Se['includes'](_0x1552b7))return'bulleted';if(_e['includes'](_0x1552b7))return'numbered';return null;}(_0x28a14e)['toUpperCase']()+'_LIST_'+_0x28a14e['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xa4c963{static get['requires'](){return[_0x1473e0];}['init'](){const _0x5a0d03=this['editor'],_0x405a4c=_0x5a0d03['plugins']['get']('TrackChangesEditing'),_0x566f0f=_0x5a0d03['commands']['get']('enter');_0x405a4c['enableCommand']('enter',()=>{_0x5a0d03['model']['change'](_0x3bb279=>{const _0x5c7a32=_0x5a0d03['model']['document']['selection'],_0x126372=_0x5c7a32['getFirstPosition'](),_0x40e36d=_0xac092f['fromRange'](_0x5c7a32['getFirstRange']());if(_0x566f0f['enterBlock'](_0x3bb279)){const _0x3b5d34=_0x5a0d03['model']['createPositionAt'](_0x126372['parent']['nextSibling'],0x0),_0x1535c2=_0x3bb279['createRange'](_0x126372,_0x3b5d34);_0x405a4c['markInsertion'](_0x1535c2);}else _0x3bb279['setSelection'](_0x3bb279['createRange'](_0x40e36d['end']));_0x40e36d['detach'](),_0x566f0f['fire']('afterExecute',{'writer':_0x3bb279});});}),_0x5a0d03['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x5a0d03,'split'),{'priority':'high'}),_0x5a0d03['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5cdf22,_0x5c7bae,_0x59ea80)=>{const _0x3d7a59=_0x59ea80['mapper']['markerNameToElements'](_0x5c7bae['markerName']);if(_0x3d7a59){for(const _0x48baaa of _0x3d7a59)_0x48baaa['hasClass']('ck-suggestion-marker-split')&&(_0x59ea80['mapper']['unbindElementFromMarkerName'](_0x48baaa,_0x5c7bae['markerName']),_0x59ea80['writer']['remove'](_0x48baaa));}},{'priority':'high'}),_0x5a0d03['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3dc6ea,_0x147559,_0x146b07)=>{_0x146b07['options']['showSuggestionHighlights']&&Ne(_0x5a0d03,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3dc6ea,_0x147559,_0x146b07);},{'priority':'high'});}}class Y extends _0xa4c963{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x150673=this['editor']['plugins']['get']('TrackChangesEditing');_0x150673['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x150673['enableCommand']('findNext'),_0x150673['enableCommand']('findPrevious'),_0x150673['enableCommand']('replace'),_0x150673['enableCommand']('replaceAll');}['handleFindCommand'](_0xbbd208,_0x314fce,_0x19134e={}){const _0x29be23=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xbbd208(_0x13b7c5=>{let _0x38d866=('string'==typeof _0x314fce?_0x29be23['findByTextCallback'](_0x314fce,_0x19134e):_0x314fce)(_0x13b7c5);Array['isArray'](_0x38d866)&&(_0x38d866={'results':_0x38d866,'searchText':'string'==typeof _0x314fce?_0x314fce:''});const _0xe553b2=_0x38d866['results']['filter'](_0x20aeb4=>!0x1===this['_isInDeletionRange'](_0x20aeb4,_0x13b7c5['item']));return{..._0x38d866,'results':_0xe553b2};},_0x19134e);}['_isInDeletionRange'](_0xadf7f0,_0xbb7a8){const _0x1fb3dd=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xbb7a8,_0xadf7f0['start']),this['editor']['model']['createPositionAt'](_0xbb7a8,_0xadf7f0['end']));for(const _0x2bf42b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1fb3dd['getIntersection'](_0x2bf42b['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0xa4c963{['afterInit'](){const _0x3f2827=this['editor']['locale'],_0x3e3643=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x16de6a,commandName:_0x30ea43}of ro)this['editor']['plugins']['has'](_0x16de6a)&&(_0x3e3643['enableDefaultAttributesIntegration'](_0x30ea43),_0x3e3643['registerInlineAttribute'](_0x30ea43));_0x3e3643['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3f2827,'FORMAT_FONT_SIZE')),_0x3e3643['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3f2827,'FORMAT_FONT_FAMILY')),_0x3e3643['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3f2827,'FORMAT_FONT_COLOR')),_0x3e3643['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3f2827,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x449e1c=this['editor'],_0x5ac0d9=_0x449e1c['locale'];_0x449e1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c7297=>{const _0xbe9b63=_0x5ac0d9['t'];if('formatInline'!=_0x5c7297['type'])return;const {data:_0x1935c9}=_0x5c7297;if(null!=_0x1935c9){if('fontSize'==_0x1935c9['commandName']){const _0x396cb6=_0x1935c9['commandParams'][0x0]['value'];if(_0x396cb6){const _0x2d883f=_0xbe9b63(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x129dd0=>_0x129dd0['model']==_0x396cb6)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5ac0d9,'*Set\x20font\x20size:*\x20%0',_0x2d883f)};}return{'type':'format','content':o(_0x5ac0d9,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1935c9['commandName']){const _0x526cd4=_0x1935c9['commandParams'][0x0]['value'];return _0x526cd4?{'type':'format','content':o(_0x5ac0d9,'*Set\x20font\x20family:*\x20%0',_0x526cd4)}:{'type':'format','content':o(_0x5ac0d9,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1935c9['commandName']){const _0x1bf68f=_0x1935c9['commandParams'][0x0]['value'];if(_0x1bf68f){const _0x51484b=_0x3e5898(this['editor']['config']['get']('fontColor.colors'))['find'](_0x457e94=>_0x457e94['model']==_0x1bf68f);let _0x51e64e=_0x1bf68f,_0x40b174='';return _0x51484b&&(_0x51e64e=_0x51484b['label'],_0x40b174=_0xbe9b63(_0x51e64e)['toLowerCase']()),{'type':'format','content':o(_0x5ac0d9,'*Set\x20font\x20color:*\x20%0',_0x40b174)['trim'](),'color':{'value':_0x1bf68f,'title':_0x40b174||_0x51e64e}};}return{'type':'format','content':o(_0x5ac0d9,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1935c9['commandName']){const _0x1bc159=_0x1935c9['commandParams'][0x0]['value'];if(_0x1bc159){const _0x2ed811=_0x3e5898(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x44c826=>_0x44c826['model']==_0x1bc159);let _0xefdd7e=_0x1bc159,_0x134b93='';return _0x2ed811&&(_0xefdd7e=_0x2ed811['label'],_0x134b93=_0xbe9b63(_0xefdd7e)['toLowerCase']()),{'type':'format','content':o(_0x5ac0d9,'*Set\x20font\x20background\x20color:*\x20%0',_0x134b93)['trim'](),'color':{'value':_0x1bc159,'title':_0x134b93||_0xefdd7e}};}return{'type':'format','content':o(_0x5ac0d9,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0xa4c963{['afterInit'](){const _0x238312=this['editor'],_0x1356a7=_0x238312['plugins']['get']('TrackChangesEditing'),_0x17b6f4=_0x238312['commands']['get']('copyFormat'),_0x2c44d1=_0x238312['commands']['get']('pasteFormat');_0x17b6f4&&_0x2c44d1&&(_0x1356a7['enableDefaultAttributesIntegration']('pasteFormat'),_0x1356a7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5d3f81=this['editor'],_0x37b5ed=_0x5d3f81['locale'];_0x5d3f81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22ed27=>{if('formatBlock'!=_0x22ed27['type']&&'formatInline'!=_0x22ed27['type'])return;const {data:_0x37ce4d}=_0x22ed27;if(_0x37ce4d&&'pasteFormat'===_0x37ce4d['commandName']){const _0x44d24a=[],_0x3eb94d=_0x37ce4d['commandParams'][0x0];for(const [_0xce81a7,_0x452095]of Object['entries'](_0x3eb94d))_0x44d24a['push'](so(_0x5d3f81,_0xce81a7,_0x452095));return _0x44d24a['length']?{'type':'format','content':o(_0x37b5ed,'*Set\x20format\x20to:*\x20%0',_0x44d24a['join'](',\x20'))}:{'type':'format','content':o(_0x37b5ed,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3f9c9b,_0x35d2f3,_0x392c83){const _0x4e3aac=_0x3f9c9b['locale']['t'],_0x4e7594=_0x35d2f3['split'](/(?=[A-Z])/)['join']('\x20'),_0x1759ec=_0x4e3aac(_0x4e7594['charAt'](0x0)['toUpperCase']()+_0x4e7594['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x392c83)return _0x1759ec;if('fontColor'===_0x35d2f3||'fontBackgroundColor'===_0x35d2f3){const _0x310c9f=_0x3e5898(_0x3f9c9b['config']['get']('fontColor.colors'))['find'](_0x3b77b0=>_0x3b77b0['model']==_0x392c83);return _0x1759ec+'\x20('+(_0x310c9f?_0x4e3aac(_0x310c9f['label'])['toLowerCase']():_0x392c83)+')';}if('fontSize'===_0x35d2f3&&isNaN(parseFloat(_0x392c83))){const _0x487cf3=_0x3f9c9b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3f9c9b['config']['get']('fontSize.options'))['find'](_0x531a67=>_0x531a67['model']==_0x392c83);return _0x1759ec+'\x20('+(_0x487cf3?_0x4e3aac(_0x487cf3['title'])['toLowerCase']():_0x392c83)+')';}return _0x1759ec+'\x20('+_0x392c83+')';}class nt extends _0xa4c963{['_headingOptions'];['afterInit'](){const _0x33dc1b=this['editor'];if(!_0x33dc1b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x33dc1b['config']['get']('heading.options');const _0x34949d=_0x33dc1b['locale'],_0x2e55eb=_0x33dc1b['plugins']['get']('TrackChangesEditing');_0x2e55eb['enableDefaultAttributesIntegration']('heading');for(const _0x894cb4 of this['_headingOptions'])'paragraph'!=_0x894cb4['model']&&_0x2e55eb['descriptionFactory']['registerElementLabel'](_0x894cb4['model'],_0x11e310=>{const _0xfce873=this['_getHeadingLevel'](_0x894cb4['model']);return null!==_0xfce873?_0x37ff39(_0x11e310,_0xfce873):_0x2d9c44(_0x11e310,_0x894cb4['title']);});function _0x37ff39(_0x5cee7f,_0x383b3b){return o(_0x34949d,'ELEMENT_HEADING',[_0x5cee7f,_0x383b3b]);}function _0x2d9c44(_0x1fb8c5,_0x5592db){return o(_0x34949d,'ELEMENT_HEADING_CUSTOM',[_0x1fb8c5,_0x5592db]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f2cf9=this['editor'],_0x56535f=_0x3f2cf9['locale'];function _0x286222(_0x804eb4,_0x578dc5){return o(_0x56535f,'ELEMENT_HEADING_CUSTOM',[_0x804eb4,_0x578dc5]);}_0x3f2cf9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12f01a=>{if('formatBlock'!=_0x12f01a['type'])return;const {data:_0xc0d308}=_0x12f01a;if(_0xc0d308&&'heading'==_0xc0d308['commandName']){const _0x53c1fd=_0xc0d308['commandParams'][0x0]['value'],_0x1712c5=this['_getHeadingLevel'](_0x53c1fd);if(null!==_0x1712c5)return{'type':'format','content':o(_0x56535f,'*Change\x20to:*\x20%0',(_0x1e17c4=0x1,_0xd7da30=_0x1712c5,o(_0x56535f,'ELEMENT_HEADING',[_0x1e17c4,_0xd7da30])))};const _0x1586bf=this['_headingOptions']['find'](_0x4b3288=>_0x4b3288['model']===_0x53c1fd)['title'];return{'type':'format','content':o(_0x56535f,'*Change\x20to:*\x20%0',_0x286222(0x1,_0x1586bf))};}var _0x1e17c4,_0xd7da30;});}['_getHeadingLevel'](_0x5dbe63){const _0x4c631f=_0x5dbe63['match'](/^heading(\d+)/);if(_0x4c631f)return _0x4c631f[0x1];const _0x28e7e4=this['_headingOptions']?.['find'](_0x1efba4=>_0x1efba4['model']==_0x5dbe63);if(_0x28e7e4&&_0x28e7e4['view']){const _0x30bda3=_0x28e7e4['view'],_0x30a7a5=(_0x30bda3['name']??_0x30bda3)['match'](/^h(\d+)/);if(_0x30a7a5)return _0x30a7a5[0x1];}return null;}}class it extends _0xa4c963{['afterInit'](){const _0x18f03d=this['editor'];if(!_0x18f03d['plugins']['has']('HighlightEditing'))return;const _0x5e602f=_0x18f03d['plugins']['get']('TrackChangesEditing'),_0x58ae35=_0x18f03d['locale'];_0x5e602f['enableDefaultAttributesIntegration']('highlight'),_0x5e602f['registerInlineAttribute']('highlight'),_0x5e602f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x58ae35,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f3397=this['editor'],_0x3351c2=_0x5f3397['locale'];_0x5f3397['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30f0ee=>{if('formatInline'!=_0x30f0ee['type'])return;const {data:_0x4c521d}=_0x30f0ee;if(_0x4c521d&&'highlight'==_0x4c521d['commandName']){const _0x51bcb0=_0x3351c2['t'],_0x57e79a=_0x4c521d['commandParams'][0x0]['value'];if(_0x57e79a){const _0x2158dc=_0x5f3397['config']['get']('highlight.options')['find'](_0x3cbf03=>_0x3cbf03['model']==_0x57e79a),_0x1b5f49=_0x51bcb0(_0x2158dc['title'])['toLowerCase']();return{'type':'format','content':o(_0x3351c2,'*Set\x20highlight:*\x20%0',_0x1b5f49),'color':{'value':_0x2158dc['color'],'title':_0x2158dc['title']}};}return{'type':'format','content':o(_0x3351c2,'*Remove\x20highlight*',o(_0x3351c2,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0xa4c963{['afterInit'](){const _0xd58a7f=this['editor'];if(!_0xd58a7f['plugins']['has']('HorizontalLineEditing'))return;_0xd58a7f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4f8df9=_0xd58a7f['plugins']['get']('TrackChangesEditing'),_0x1c33df=_0xd58a7f['locale'];_0x4f8df9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4afabf=>o(_0x1c33df,'ELEMENT_HORIZONTAL_LINE',_0x4afabf)),_0xd58a7f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x15647a,{writer:_0x1c61f1,options:_0x274c53})=>{if(!_0x274c53['showSuggestionHighlights'])return null;const _0x1acd2c=_0x1c61f1['createContainerElement']('div'),_0x2a9247=_0x1c61f1['createEmptyElement']('hr');return _0x1c61f1['addClass']('ck-horizontal-line',_0x1acd2c),_0x1c61f1['insert'](_0x1c61f1['createPositionAt'](_0x1acd2c,0x0),_0x2a9247),_0x1acd2c;},'converterPriority':'high'});}}class st extends _0xa4c963{['afterInit'](){const _0x13ca57=this['editor'];if(!_0x13ca57['plugins']['has']('HtmlEmbed'))return;const _0x47c921=_0x13ca57['plugins']['get']('TrackChangesEditing'),_0x141cbf=_0x13ca57['locale'];_0x47c921['descriptionFactory']['registerElementLabel']('rawHtml',_0x48cdfe=>o(_0x141cbf,'ELEMENT_HTML_EMBED',_0x48cdfe)),_0x47c921['enableDefaultAttributesIntegration']('htmlEmbed'),_0x47c921['registerBlockAttribute']('value'),_0x47c921['descriptionFactory']['registerDescriptionCallback'](_0x319016=>{if('attribute'!=_0x319016['type'])return;const {data:_0x553145}=_0x319016;if(_0x553145&&'value'==_0x553145['key']&&_0x319016['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x33987c=o(_0x141cbf,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x141cbf,'*Change\x20%0\x20content*',_0x33987c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x419893=this['editor'],_0x333364=_0x419893['locale'];_0x419893['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ed268=>{if('formatBlock'!=_0x2ed268['type'])return;const {data:_0x5e4602}=_0x2ed268;if(_0x5e4602&&'htmlEmbed'==_0x5e4602['commandName']){const _0xdb33c6=o(_0x333364,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x333364,'*Change\x20%0\x20content*',_0xdb33c6)};}});}}class ot extends _0xa4c963{['afterInit'](){const _0x2f91ea=this['editor'];if(!_0x2f91ea['plugins']['has']('ImageEditing'))return;const _0x286f75=_0x2f91ea['plugins']['get']('TrackChangesEditing'),_0x3449f7=_0x2f91ea['plugins']['get']('ImageUtils'),_0x51aaa6=_0x2f91ea['locale'];_0x286f75['enableCommand']('insertImage'),_0x286f75['descriptionFactory']['registerElementLabel']('imageBlock',_0x351117=>o(_0x51aaa6,'ELEMENT_IMAGE',_0x351117)),_0x286f75['descriptionFactory']['registerElementLabel']('imageInline',_0x297fea=>o(_0x51aaa6,'ELEMENT_INLINE_IMAGE',_0x297fea)),_0x286f75['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x51aaa6,'ELEMENT_CAPTION')),_0x2f91ea['plugins']['has']('ImageUploadEditing')&&_0x286f75['enableCommand']('uploadImage'),_0x2f91ea['plugins']['has']('ImageBlockEditing')&&_0x2f91ea['plugins']['has']('ImageInlineEditing')&&(_0x286f75['enableCommand']('imageTypeInline',(_0x5c1480,_0x5e6ec2)=>{const _0x2a59c1=_0x3449f7['getClosestSelectedImageElement'](_0x2f91ea['model']['document']['selection']);_0x2f91ea['model']['change'](()=>{_0x286f75['markBlockFormat'](_0x2a59c1,{'commandName':'imageTypeInline','commandParams':[_0x5e6ec2]},[],'convertBlockImageToInline');});}),_0x286f75['enableCommand']('imageTypeBlock',(_0x511f39,_0x2da1c4)=>{_0x2f91ea['model']['change'](_0x1ef9a6=>{let _0x4e1909=_0x3449f7['getClosestSelectedImageElement'](_0x2f91ea['model']['document']['selection']),_0x7afde7=_0x1ef9a6['createRangeOn'](_0x4e1909);const _0x3586a6=_0x471760['fromPosition'](_0x7afde7['start'],'toPrevious'),_0x16b884=_0x471760['fromPosition'](_0x7afde7['end'],'toNext');_0x286f75['forceDefaultExecution'](()=>_0x511f39(_0x2da1c4)),_0x4e1909=_0x3449f7['getClosestSelectedImageElement'](_0x2f91ea['model']['document']['selection']),_0x7afde7=_0x1ef9a6['createRangeOn'](_0x4e1909);const _0x34c12a=_0x1ef9a6['createRange'](_0x3586a6,_0x16b884);_0x3586a6['detach'](),_0x16b884['detach'](),_0x286f75['markBlockFormat'](_0x4e1909,{'commandName':'imageTypeInline','commandParams':[_0x2da1c4]},[],'convertInlineImageToBlock'),_0x34c12a['start']['isBefore'](_0x7afde7['start'])&&_0x286f75['markInsertion'](_0x1ef9a6['createRange'](_0x34c12a['start'],_0x7afde7['start']),'convertInlineImageToBlock'),_0x7afde7['end']['isBefore'](_0x34c12a['end'])&&_0x286f75['markInsertion'](_0x1ef9a6['createRange'](_0x7afde7['end'],_0x34c12a['end']),'convertInlineImageToBlock');});}),_0x286f75['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x286f75['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x286f75['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x286f75['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x286f75['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x286f75['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x14ae7a])=>{const _0x447b67=_0x286f75['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x47290f=_0x14ae7a['start'],_0xc62d8a=_0x14ae7a['end'];const _0xdfe802=_0x2f91ea['model']['schema']['getNearestSelectionRange'](_0x47290f,'backward'),_0x5a8285=_0x2f91ea['model']['schema']['getNearestSelectionRange'](_0xc62d8a,'forward');_0xdfe802['isCollapsed']&&(_0x47290f=_0xdfe802['start']),_0x5a8285['isCollapsed']&&(_0xc62d8a=_0x5a8285['end']),_0x447b67([_0x2f91ea['model']['createRange'](_0x47290f,_0xc62d8a)]);}),_0x286f75['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x17197b),_0x286f75['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x17197b)),_0x2f91ea['plugins']['has']('ImageCaptionEditing')&&(_0x286f75['enableCommand']('toggleImageCaption',(_0x488edd,_0x116026)=>{const _0x20a006=_0x2f91ea['plugins']['get']('ImageCaptionUtils');let _0x4bc832=_0x3449f7['getClosestSelectedImageElement'](_0x2f91ea['model']['document']['selection']),_0xd75077=_0x20a006['getCaptionFromImageModelElement'](_0x4bc832);_0x2f91ea['model']['change'](()=>{if(_0xd75077)return void _0x286f75['markDeletion'](_0x2f91ea['model']['createRangeOn'](_0xd75077));const _0xde267=_0x3449f7['isBlockImage'](_0x4bc832);_0x488edd(_0x116026),_0x4bc832=_0x3449f7['getClosestSelectedImageElement'](_0x2f91ea['model']['document']['selection']),_0xd75077=_0x20a006['getCaptionFromImageModelElement'](_0x4bc832),_0x286f75['markInsertion'](_0x2f91ea['model']['createRangeOn'](_0xd75077),_0xde267?null:'imageCaption');});}),_0x286f75['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x17197b));const _0x2d49aa=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4890f7(_0x51ec64,_0x14bc40){const _0x1e72b5=_0x2d49aa['findIndex'](({type:_0x827fad,subType:_0x28bb10})=>_0x51ec64['type']==_0x827fad&&_0x51ec64['subType']==_0x28bb10),_0x33e768=_0x2d49aa['findIndex'](({type:_0x1fdf40,subType:_0x338bdf})=>_0x14bc40['type']==_0x1fdf40&&_0x14bc40['subType']==_0x338bdf);if(_0x1e72b5<0x0||_0x33e768<0x0)return!0x1;const _0x674a7=_0x51ec64['getFirstRange'](),_0x3ab17b=_0x14bc40['getFirstRange']();if((0x0==_0x1e72b5||0x1==_0x1e72b5)&&0x2==_0x33e768&&_0x674a7['isIntersecting'](_0x3ab17b))return!0x0;if(0x2==_0x1e72b5&&0x3==_0x33e768){const _0x54b63b=_0x286f75['_findSuggestions'](_0x674a7,'insertion')['filter'](({suggestion:_0x305475,meta:_0x2d312e})=>_0x2d312e['isOwn']&&'convertInlineImageToBlock'==_0x305475['subType']);if(_0x54b63b['length']>0x1&&_0x3ab17b['end']['isEqual'](_0x674a7['start']))return!0x0;if(0x1==_0x54b63b['length']&&(_0x674a7['start']['isEqual'](_0x3ab17b['end'])||_0x674a7['end']['isEqual'](_0x3ab17b['start'])))return!0x0;}if(0x3==_0x1e72b5&&0x3==_0x33e768&&_0x674a7['start']['isBefore'](_0x3ab17b['start'])){const _0x8353d8=_0x674a7['end']['nodeAfter'],_0x38f04a=_0x3ab17b['start']['nodeBefore'];return _0x3449f7['isBlockImage'](_0x8353d8)&&_0x8353d8===_0x38f04a;}return!0x1;}function _0x17197b(_0x4ee591,_0x5cbac2){return _0x4890f7(_0x4ee591,_0x5cbac2)?[_0x4ee591,_0x5cbac2]:_0x4890f7(_0x5cbac2,_0x4ee591)?[_0x5cbac2,_0x4ee591]:null;}_0x2f91ea['plugins']['has']('ImageResize')&&(_0x286f75['enableDefaultAttributesIntegration']('resizeImage'),_0x286f75['registerBlockAttribute']('resizedWidth'),_0x286f75['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x51aaa6,'FORMAT_IMAGE_SIZE'))),_0x2f91ea['plugins']['has']('ImageTextAlternativeEditing')&&(_0x286f75['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x286f75['registerBlockAttribute']('alt')),_0x286f75['descriptionFactory']['registerDescriptionCallback'](_0x203367=>{if(!!_0x2d49aa['find'](({type:_0x419975,subType:_0x4534d3})=>_0x203367['type']==_0x419975&&_0x203367['subType']==_0x4534d3))return _0x203367['previous']?{}:void 0x0;}),_0x286f75['descriptionFactory']['registerDescriptionCallback'](_0x5ba27e=>{if('insertion'==_0x5ba27e['type']||'deletion'==_0x5ba27e['type']){const _0x1bbfdc=_0x5ba27e['getContainedElement']();if(_0x1bbfdc&&_0x1bbfdc['is']('element','caption'))return{'type':'insertion'==_0x5ba27e['type']?'addObject':'removeObject','element':_0x1bbfdc,'quantity':0x1};}}),_0x286f75['descriptionFactory']['registerDescriptionCallback'](_0x58e3a8=>'formatBlock'==_0x58e3a8['type']&&'convertInlineImageToBlock'==_0x58e3a8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x58e3a8['type']&&'convertBlockImageToInline'==_0x58e3a8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x286f75['descriptionFactory']['registerDescriptionCallback'](_0x5e00e6=>{if('attribute'!=_0x5e00e6['type'])return;const {data:_0x5775e9}=_0x5e00e6;if(!_0x5775e9||'alt'!=_0x5775e9['key'])return;const _0x306aa1=_0x5775e9['newValue'];return _0x306aa1?{'type':'format','content':o(_0x51aaa6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x306aa1+'\x22')}:{'type':'format','content':o(_0x51aaa6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x525327=this['editor'],_0x1d7a81=_0x525327['locale'];_0x525327['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe4f25e=>{if('formatBlock'!=_0xe4f25e['type']&&'formatInline'!=_0xe4f25e['type'])return;const {data:_0x52f8e7}=_0xe4f25e;if(_0x52f8e7){if('imageTextAlternative'==_0x52f8e7['commandName']){const _0x38cad1=_0x52f8e7['commandParams'][0x0]['newValue'];return _0x38cad1?{'type':'format','content':o(_0x1d7a81,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x38cad1+'\x22')}:{'type':'format','content':o(_0x1d7a81,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x52f8e7['commandName']){const _0x65ad98=_0x52f8e7['commandParams'][0x0]['width'];return _0x65ad98?{'type':'format','content':o(_0x1d7a81,'*Set\x20image\x20width:*\x20%0',_0x65ad98)}:{'type':'format','content':o(_0x1d7a81,'*Reset\x20image\x20width*')};}}});}}class rt extends _0xa4c963{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x360754=this['editor']['locale'],_0x262647=this['editor']['plugins']['get']('TrackChangesEditing');_0x262647['enableDefaultAttributesIntegration']('replaceImageSource'),_0x262647['registerBlockAttribute']('src'),_0x262647['descriptionFactory']['registerDescriptionCallback'](_0x3f9393=>{if('attribute'!=_0x3f9393['type'])return;const {data:_0x2f5935}=_0x3f9393;return _0x2f5935&&'src'==_0x2f5935['key']?_0x2f5935['newValue']&&_0x2f5935['oldValue']?{'type':'format','content':o(_0x360754,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4e3404=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e3404['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4e3404['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e3404['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4e3404['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46426e=this['editor'],_0x2c71ce=_0x46426e['locale'];_0x46426e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d1be1=>{if('formatBlock'!=_0x5d1be1['type']&&'formatInline'!=_0x5d1be1['type'])return;const {data:_0x193f05}=_0x5d1be1;if(!_0x193f05||'replaceImageSource'!=_0x193f05['commandName'])return;return{'type':'format','content':o(_0x2c71ce,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0xa4c963{['afterInit'](){const _0x1a1c58=this['editor'];if(!_0x1a1c58['plugins']['has']('ImageStyleEditing'))return;const _0x54a8f2=_0x1a1c58['plugins']['get']('TrackChangesEditing'),_0x2be325=_0x1a1c58['plugins']['get']('ImageUtils'),_0x11c5dd={};_0x54a8f2['enableCommand']('imageStyle',(_0x4a85f5,_0x3a79a6)=>{const _0x1d7ea4=_0x1a1c58['plugins']['get']('Users')['me'],_0x31d4a9=_0x1a1c58['commands']['get']('imageStyle');let _0x22b5f4=_0x2be325['getClosestSelectedImageElement'](_0x1a1c58['model']['document']['selection']),_0xd56220=_0x1a1c58['model']['createRangeOn'](_0x22b5f4),_0x3ba878=_0x31d4a9['value'];if(_0x3ba878==_0x3a79a6['value'])return;const _0x432312={'commandName':'imageStyle','commandParams':[_0x3a79a6],'formatGroupId':_0x4fc915()};_0x1a1c58['model']['change'](()=>{if(_0x54a8f2['getSuggestions']()['filter'](_0x475998=>_0x475998['isInContent']&&_0x1d7ea4==_0x475998['author']&&('formatBlock'==_0x475998['type']||'formatInline'==_0x475998['type'])&&('imageStylePreApply'==_0x475998['subType']||'imageStylePostApply'==_0x475998['subType'])&&_0x475998['getFirstRange']()['isEqual'](_0xd56220))['forEach'](_0x2dc6f9=>_0x54a8f2['discardSuggestion'](_0x2dc6f9['head'])),_0x22b5f4=_0x2be325['getClosestSelectedImageElement'](_0x1a1c58['model']['document']['selection']),_0xd56220=_0x1a1c58['model']['createRangeOn'](_0x22b5f4),_0x31d4a9['refresh'](),_0x1a1c58['commands']['get']('imageTypeInline')['refresh'](),_0x1a1c58['commands']['get']('imageTypeBlock')['refresh'](),_0x3ba878=_0x31d4a9['value'],_0x3ba878!=_0x3a79a6['value'])return _0x2be325['isInlineImage'](_0x22b5f4)&&_0x31d4a9['shouldConvertImageType'](_0x3a79a6['value'],_0x22b5f4)?(_0x4a85f5({..._0x3a79a6,'setImageSizes':!0x1}),_0x22b5f4=_0x2be325['getClosestSelectedImageElement'](_0x1a1c58['model']['document']['selection']),void _0x54a8f2['markBlockFormat'](_0x22b5f4,{..._0x432312,'commandReversedParams':[{'value':_0x3ba878||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2be325['isBlockImage'](_0x22b5f4)?_0x54a8f2['markBlockFormat'](_0x22b5f4,_0x432312,[],'imageStylePostApply'):_0x54a8f2['markInlineFormat'](_0xd56220,_0x432312,'imageStylePostApply'));});});for(const _0x26c411 of _0x1a1c58['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x11c5dd[_0x26c411['name']]=_0x26c411['title']['toLowerCase']();_0x54a8f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x54a8f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x54a8f2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x54a8f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x392f5c])=>{_0x2be325['setImageNaturalSizeAttributes'](_0x392f5c['getContainedElement']());}),_0x54a8f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2c96cf,_0x5d94dc)=>{_0x54a8f2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2c96cf,{'commandName':_0x5d94dc['commandName'],'commandParams':_0x5d94dc['commandReversedParams']});}),_0x54a8f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x175db4,_0x16d43b){if(_0x391eb8(_0x175db4,_0x16d43b))return[_0x175db4,_0x16d43b];if(_0x391eb8(_0x16d43b,_0x175db4))return[_0x16d43b,_0x175db4];return null;});const _0x179f28=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x391eb8(_0x3efad7,_0x34f964){const _0x156483=_0x179f28['findIndex'](({type:_0x337a40,subType:_0x3f1198})=>_0x3efad7['type']==_0x337a40&&_0x3efad7['subType']==_0x3f1198),_0x151320=_0x179f28['findIndex'](({type:_0x51cf6b,subType:_0x22f48b})=>_0x34f964['type']==_0x51cf6b&&_0x34f964['subType']==_0x22f48b);if(_0x156483<0x0||_0x151320<0x0)return!0x1;const _0x3d390a=_0x3efad7['getFirstRange'](),_0x17177c=_0x34f964['getFirstRange']();if((0x0==_0x156483||0x1==_0x156483)&&0x2==_0x151320&&_0x3d390a['isIntersecting'](_0x17177c))return!0x0;if(0x2==_0x156483&&0x3==_0x151320){const _0x3eacdd=_0x54a8f2['_findSuggestions'](_0x3d390a,'insertion')['filter'](({suggestion:_0x12cc61,meta:_0x528776})=>_0x528776['isOwn']&&'convertInlineImageToBlock'==_0x12cc61['subType']);if(_0x3eacdd['length']>0x1&&_0x17177c['end']['isEqual'](_0x3d390a['start']))return!0x0;if(0x1==_0x3eacdd['length']&&(_0x3d390a['start']['isEqual'](_0x17177c['end'])||_0x3d390a['end']['isEqual'](_0x17177c['start'])))return!0x0;}if(0x3==_0x156483&&0x3==_0x151320&&_0x3d390a['start']['isBefore'](_0x17177c['start'])){const _0x4646e4=_0x3d390a['end']['nodeAfter'],_0x108a69=_0x17177c['start']['nodeBefore'];return _0x2be325['isBlockImage'](_0x4646e4)&&_0x4646e4===_0x108a69;}return!0x1;}_0x1a1c58['model']['document']['registerPostFixer'](()=>{let _0x3e4ecb=!0x1;const _0x4ed82=Array['from'](_0x1a1c58['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x18b7b8,data:_0x571450}of _0x4ed82){const {group:_0x183b83,type:_0x437451,subType:_0x5d3f18,id:_0x2388dc}=_0x54a8f2['_splitMarkerName'](_0x18b7b8);if('suggestion'==_0x183b83&&_0x54a8f2['hasSuggestion'](_0x2388dc)){if('formatBlock'==_0x437451&&('imageStylePreApply'==_0x5d3f18||'imageStylePostApply'==_0x5d3f18)){const _0x3e20c0=_0x54a8f2['getSuggestion'](_0x2388dc);if(_0x571450['newRange']){const _0x53399c=_0x3e20c0['getFirstRange']()['getContainedElement']();if(_0x2be325['isBlockImage'](_0x53399c))continue;_0x54a8f2['discardSuggestion'](_0x3e20c0),_0x3e4ecb=!0x0;}}if('insertion'==_0x437451&&'imageCaption'==_0x5d3f18&&!_0x571450['newRange']){const _0x2ff3f6=_0x54a8f2['getSuggestion'](_0x2388dc);_0x2ff3f6['next']&&_0x2ff3f6['next']['isInContent']&&(_0x54a8f2['discardSuggestion'](_0x2ff3f6['next']),_0x3e4ecb=!0x0);}}}return _0x3e4ecb;}),this['_registerLegacyDescription'](_0x11c5dd);}['_registerLegacyDescription'](_0x3a4da8){const _0x69edfb=this['editor'],_0x1aa770=_0x69edfb['locale'];_0x69edfb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x497172=>{if('formatBlock'!=_0x497172['type']&&'formatInline'!=_0x497172['type'])return;const {data:_0x18697e}=_0x497172;if(!_0x18697e||'imageStyle'!=_0x18697e['commandName'])return;const _0x4f2567=_0x18697e['commandParams'][0x0]['value'];return _0x5eafa9('side'===_0x4f2567?o(_0x1aa770,'FORMAT_SIDE_IMAGE'):_0x3a4da8[_0x4f2567]||_0x4f2567);function _0x5eafa9(_0x2d8e37){return{'type':'format','content':o(_0x1aa770,'*Format:*\x20%0',_0x2d8e37)};}});}}class ct extends _0xa4c963{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x411786){super(_0x411786),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x33f741=this['editor'],_0x1199a5=_0x33f741['commands']['get']('importWord'),_0x5e65ce=_0x33f741['commands']['get']('trackChanges');_0x1199a5&&(_0x1199a5['on']('execute',(_0x116ac0,[,_0x566787])=>{this['_trackChangesValueDuringImport']=_0x5e65ce['value'],_0x566787['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1199a5,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1199a5,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5e65ce['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x33f741['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x466a38,_0x5eef79){const {suggestions:_0x557496}=_0x5eef79,_0x58a1d3=this['editor']['commands']['get']('trackChanges'),_0x1f8790=_0x58a1d3['value'];this['_trackChangesValueDuringImport']!==_0x1f8790&&(_0x58a1d3['execute'](),this['_trackChangesExecuted']=!0x0),_0x557496&&_0x557496['forEach'](({id:_0x3eb2ef,type:_0x558d61,author:_0x131064,created_at:_0x25e6ca})=>{const _0x1bfac8={'id':_0x3eb2ef,'type':_0x558d61,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x131064,'createdAt':_0x25e6ca?new Date(_0x25e6ca):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1bfac8);});}}class ut extends _0xa4c963{['afterInit'](){const _0x7ea49b=this['editor'],_0x578075=_0x7ea49b['plugins']['get']('TrackChangesEditing');if(_0x7ea49b['plugins']['has']('IndentEditing')&&(_0x578075['enableCommand']('indent'),_0x578075['enableCommand']('outdent')),_0x7ea49b['plugins']['has']('IndentBlock')){for(const _0x5414f7 of['indentBlock','outdentBlock'])_0x578075['enableDefaultAttributesIntegration'](_0x5414f7);}const _0x1b3629=_0x7ea49b['locale'];_0x578075['registerBlockAttribute']('blockIndent'),_0x578075['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1b3629,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c6b5a=this['editor'],_0x23f1e8=_0x4c6b5a['locale'],_0x3a27fc=_0x4c6b5a['plugins']['get']('TrackChangesEditing');_0x3a27fc['descriptionFactory']['registerDescriptionCallback'](_0x1af7ba=>{if('formatBlock'!=_0x1af7ba['type'])return;const {data:_0x22a629}=_0x1af7ba;if(!_0x22a629)return;if('indentBlock'!=_0x22a629['commandName']&&'outdentBlock'!=_0x22a629['commandName'])return;const _0x93912c=_0x1af7ba['getItems']()[0x0],_0x581e88=_0x3a27fc['descriptionFactory']['getItemLabel'](_0x93912c);return'indentBlock'==_0x22a629['commandName']?{'type':'format','content':o(_0x23f1e8,'*Indent:*\x20%0',_0x581e88)}:'outdentBlock'==_0x22a629['commandName']?{'type':'format','content':o(_0x23f1e8,'*Outdent:*\x20%0',_0x581e88)}:void 0x0;});}}class ft extends _0xa4c963{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0xa4c963{['afterInit'](){const _0x35f9e4=this['editor'];if(!_0x35f9e4['plugins']['has']('LinkEditing'))return;const _0x59fe19=_0x35f9e4['plugins']['get']('TrackChangesEditing'),_0x5e755f=_0x35f9e4['commands']['get']('link');_0x59fe19['enableDefaultAttributesIntegration']('link'),_0x59fe19['enableDefaultAttributesIntegration']('unlink'),_0x59fe19['registerInlineAttribute']('linkHref');for(const _0x47be7e of _0x5e755f['manualDecorators'])_0x59fe19['registerInlineAttribute'](_0x47be7e['id']),_0x59fe19['descriptionFactory']['registerAttributeLabel'](_0x47be7e['id'],'link\x20('+_0x47be7e['label']['toLowerCase']()+')');_0x59fe19['descriptionFactory']['registerDescriptionCallback'](_0x2b1c0f=>{if('attribute'!=_0x2b1c0f['type'])return;const {data:_0x5ea0ca}=_0x2b1c0f;if(!_0x5ea0ca||'linkHref'!=_0x5ea0ca['key'])return;const _0x3f4ce8=_0x5ea0ca['newValue'],_0x4dfdd5=_0x35f9e4['locale'];return{'type':'format','content':null==_0x3f4ce8?o(_0x4dfdd5,'*Remove\x20link*'):o(_0x4dfdd5,'*Set\x20link:*\x20%0','\x22'+_0x3f4ce8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xeac9a5=this['editor'],_0x442ba2=_0xeac9a5['locale'];_0xeac9a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x400bef=>{if('formatInline'!=_0x400bef['type'])return;const {data:_0x1a3616}=_0x400bef;if(_0x1a3616){if('link'==_0x1a3616['commandName']){const _0x2c6d56=_0x1a3616['commandParams'][0x0];return{'type':'format','content':o(_0x442ba2,'*Set\x20link:*\x20%0','\x22'+_0x2c6d56+'\x22')};}return'unlink'==_0x1a3616['commandName']?{'type':'format','content':o(_0x442ba2,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0xa4c963{['afterInit'](){const _0x37d023=this['editor'],_0x40176c=_0x37d023['locale'];if(!_0x37d023['plugins']['has']('LegacyListEditing'))return;const _0x408749=_0x37d023['plugins']['get']('TrackChangesEditing'),_0x4cb874=_0x37d023['plugins']['has']('LegacyTodoListEditing');function _0x2d9562(_0x2cb891){return()=>{const _0xa3bf5=_0x37d023['model']['document']['selection'],_0x3ea094=_0x37d023['commands']['get'](_0x2cb891);if(_0x3ea094['value'])return void _0x37d023['execute']('paragraph',{});const _0x3ce415=_0x2cb891['slice'](0x0,-0x4),_0x3707a1=function(_0x46aff6,_0x142287,_0xed23c2){let _0x2ec862=Array['from'](_0x46aff6)['filter'](_0x2eb523=>function(_0x9dfcac,_0xeff8f1){return _0xeff8f1['checkChild'](_0x9dfcac['parent'],'listItem')&&!_0xeff8f1['isObject'](_0x9dfcac);}(_0x2eb523,_0xed23c2));_0x2ec862=_0x2ec862['filter'](_0x8f2bc1=>!_0x8f2bc1['is']('element','listItem')||_0x8f2bc1['getAttribute']('listType')!=_0x142287);const _0x16ffdd=new Set();for(const _0xb09fa7 of _0x2ec862)_0xb09fa7['is']('element','listItem')?_0x16ffdd['add'](Le(_0xb09fa7)):_0x16ffdd['add'](_0xb09fa7);return Array['from'](_0x16ffdd);}(_0xa3bf5['getSelectedBlocks'](),_0x3ce415,_0x37d023['model']['schema']);_0x37d023['model']['change'](()=>{for(const _0x45b397 of _0x3707a1)_0x408749['markBlockFormat'](_0x45b397,{'commandName':_0x2cb891,'commandParams':[{'forceValue':!_0x3ea094['value']}],'formatGroupId':'blockName'},Ee(_0x45b397));});};}function _0xced49f(_0x48f98b){return()=>{const _0x12d570=function(_0x2b2138){let _0x924d68=Array['from'](_0x2b2138);const _0x279171=_0x924d68['findIndex'](_0x13d92e=>'listItem'!=_0x13d92e['name']);return _0x279171>-0x1&&(_0x924d68=_0x924d68['slice'](0x0,_0x279171)),_0x924d68;}(_0x37d023['model']['document']['selection']['getSelectedBlocks']()),_0x27f9d5=_0x37d023['model']['createRange'](_0x37d023['model']['createPositionAt'](_0x12d570[0x0],'before'),_0x37d023['model']['createPositionAt'](_0x12d570[_0x12d570['length']-0x1],'end'));_0x37d023['model']['change'](()=>{_0x408749['markBlockFormat'](_0x27f9d5,{'commandName':_0x48f98b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x306805){const _0x1295e6=new Set();for(const _0x2cb19d of _0x306805){let _0x5c228c=_0x2cb19d['nextSibling'];for(;_0x5c228c&&_0x5c228c['getAttribute']('listIndent')>_0x2cb19d['getAttribute']('listIndent');)_0x1295e6['add'](_0x5c228c),_0x5c228c=_0x5c228c['nextSibling'];}return Array['from'](_0x1295e6);}(_0x12d570));});};}_0x408749['enableCommand']('numberedList',_0x2d9562('numberedList')),_0x408749['enableCommand']('bulletedList',_0x2d9562('bulletedList')),_0x4cb874&&_0x408749['enableCommand']('todoList',_0x2d9562('todoList')),_0x408749['enableCommand']('indentList',_0xced49f('indentList')),_0x408749['enableCommand']('outdentList',_0xced49f('outdentList')),_0x4cb874&&_0x408749['enableCommand']('checkTodoList',()=>{const _0x1e36fa=_0x37d023['commands']['get']('checkTodoList'),_0x1de789=Array['from'](_0x1e36fa['_selectedElements']);_0x1de789['filter'](_0x17d7e4=>_0x17d7e4['getAttribute']('todoListChecked')!=_0x1e36fa['value']),_0x37d023['model']['change'](()=>{for(const _0x118ded of _0x1de789)_0x408749['markBlockFormat'](_0x118ded,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1e36fa['value']}]});});}),_0x408749['descriptionFactory']['registerElementLabel']('listItem',_0x15fe40=>o(_0x40176c,'ELEMENT_LIST_ITEM',_0x15fe40)),_0x408749['descriptionFactory']['registerDescriptionCallback'](_0x27010c=>{if('formatBlock'!=_0x27010c['type']&&'formatInline'!=_0x27010c['type'])return;const {data:_0x1ec03b}=_0x27010c;if(_0x1ec03b){if('numberedList'==_0x1ec03b['commandName']||'bulletedList'==_0x1ec03b['commandName']||'todoList'==_0x1ec03b['commandName'])switch(_0x1ec03b['commandName']['replace']('List','')){case'bulleted':return _0xeba7bc(o(_0x40176c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xeba7bc(o(_0x40176c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xeba7bc(o(_0x40176c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1ec03b['commandName'])return{'type':'format','content':o(_0x40176c,'*Indent:*\x20%0',o(_0x40176c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1ec03b['commandName'])return{'type':'format','content':o(_0x40176c,'*Outdent:*\x20%0',o(_0x40176c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1ec03b['commandName'])return _0x1ec03b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40176c,'*Check\x20item*')}:{'type':'format','content':o(_0x40176c,'*Uncheck\x20item*')};}function _0xeba7bc(_0x8d8d2e){return{'type':'format','content':o(_0x40176c,'*Change\x20to:*\x20%0',_0x8d8d2e)};}});}}function Le(_0x5cded8){const _0x892288=_0x5cded8['getAttribute']('listIndent');if(0x0==_0x892288)return _0x5cded8;let _0x400b39=_0x5cded8;for(;_0x5cded8['previousSibling']&&_0x5cded8['previousSibling']['is']('element','listItem');){const _0x5ad7f8=_0x5cded8['previousSibling']['getAttribute']('listIndent');if(_0x5ad7f8==_0x892288)_0x400b39=_0x5cded8['previousSibling'];else{if(_0x5ad7f8<_0x892288)break;}_0x5cded8=_0x5cded8['previousSibling'];}return _0x400b39;}function Ee(_0x3a568b){const _0x2e3696=[];if(_0x3a568b['is']('element','listItem')&&_0x3a568b['getAttribute']('listIndent')>0x0){let _0x48979d=_0x3a568b['nextSibling'];for(;_0x48979d&&'listItem'==_0x48979d['name']&&_0x48979d['getAttribute']('listIndent')==_0x3a568b['getAttribute']('listIndent');)_0x2e3696['push'](_0x48979d),_0x48979d=_0x48979d['nextSibling'];}return _0x2e3696;}class Q extends _0xa4c963{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5456c3=this['editor']['config']['get']('list.properties'),_0x484bc3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5456c3['styles']&&_0x484bc3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5456c3['reversed']&&_0x484bc3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5456c3['startIndex']&&_0x484bc3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x484bc3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x584c97,_0x460af6={}){const _0x10da2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58eee8=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x10da2b['markMultiRangeBlockFormat'](_0x58eee8,{'commandName':'listStyle','commandParams':[{'type':_0x460af6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x52e453,_0x579c07={}){const _0x2634cb=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc6093c=this['_getSuggestionBlocks'](_0x417d18=>_0x417d18['is']('element','listItem')&&'numbered'===_0x417d18['getAttribute']('listType'));if(_0xc6093c['length']<0x1)return;const _0xd43a68=_0xc6093c['map'](_0x24fa8c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24fa8c,'before'),this['editor']['model']['createPositionAt'](_0x24fa8c,0x0)));this['editor']['model']['change'](()=>{_0x2634cb['markMultiRangeBlockFormat'](_0xd43a68,{'commandName':'listReversed','commandParams':[{'reversed':_0x579c07['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3972b7,_0x3ba17d={}){const _0x45ca00=this['editor']['plugins']['get']('TrackChangesEditing'),_0x517314=this['_getSuggestionBlocks'](_0x4bb70d=>_0x4bb70d['is']('element','listItem')&&'numbered'===_0x4bb70d['getAttribute']('listType'));if(_0x517314['length']<0x1)return;const _0x34b510=_0x517314['map'](_0x2ff859=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ff859,'before'),this['editor']['model']['createPositionAt'](_0x2ff859,0x0)));this['editor']['model']['change'](()=>{_0x45ca00['markMultiRangeBlockFormat'](_0x34b510,{'commandName':'listStart','commandParams':[{'startIndex':_0x3ba17d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x37c6db){if('formatBlock'!=_0x37c6db['type']&&'formatInline'!=_0x37c6db['type'])return;const _0x5e0bbf=this['editor']['locale'],{data:_0x2a03f4}=_0x37c6db;if(!_0x2a03f4)return;let _0x3ff74d,_0x36570a;switch(_0x2a03f4['commandName']){case'listStyle':_0x3ff74d='*Change\x20to:*\x20%0',_0x36570a={'type':'format','content':o(_0x5e0bbf,_0x3ff74d,o(_0x5e0bbf,this['_getTranslationKeyForListStyle'](_0x2a03f4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3ff74d=_0x2a03f4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x36570a={'type':'format','content':o(_0x5e0bbf,_0x3ff74d)};break;case'listStart':_0x3ff74d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x36570a={'type':'format','content':o(_0x5e0bbf,_0x3ff74d,_0x2a03f4['commandParams'][0x0]['startIndex'])};}return _0x36570a;}['_getSuggestionBlocksForListStyle'](){const _0xa446d=this['editor']['plugins']['get']('LegacyListUtils');let _0x4d1df4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4d1df4[0x0]?.['is']('element','listItem')&&_0x4d1df4['unshift'](..._0xa446d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4d1df4[_0x4d1df4['length']-0x1]?.['is']('element','listItem')&&_0x4d1df4['push'](..._0xa446d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4d1df4=[...new Set(_0x4d1df4)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4d1df4=_0x4d1df4['filter'](_0x2e54c6=>_0x2e54c6['is']('element','listItem'))),_0x4d1df4;}['_getSuggestionBlocks'](_0x381bd7){const _0x3d6090=this['editor']['plugins']['get']('LegacyListUtils');let _0x2e259d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x381bd7)['map'](_0x4b5c98=>{const _0x24f0ce=this['editor']['model']['createPositionAt'](_0x4b5c98,0x0);return[..._0x3d6090['getSiblingNodes'](_0x24f0ce,'backward'),..._0x3d6090['getSiblingNodes'](_0x24f0ce,'forward')];})['flat']();return _0x2e259d=[...new Set(_0x2e259d)],_0x2e259d;}['_getTranslationKeyForListStyle'](_0x78f712){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x78f712)||'default')['toUpperCase']()+'_LIST_'+_0x78f712['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0xa4c963{['afterInit'](){const _0x592c61=this['editor'];if(!_0x592c61['plugins']['has']('MediaEmbedEditing'))return;const _0x4f6a9c=_0x592c61['plugins']['get']('TrackChangesEditing'),_0x525a77=_0x592c61['locale'];_0x4f6a9c['enableCommand']('mediaEmbed'),_0x4f6a9c['descriptionFactory']['registerElementLabel']('media',_0x6f8093=>o(_0x525a77,'ELEMENT_MEDIA',_0x6f8093)),_0x592c61['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2faa54,{writer:_0x2a2b5d,options:_0x128498})=>{if(_0x128498['showSuggestionHighlights'])return _0x2a2b5d['createEmptyElement']('div');},'converterPriority':'high'}),_0x592c61['data']['downcastDispatcher']['on']('attribute:url:media',(_0x24a120,_0x584221,_0x114e02)=>{_0x114e02['options']['showSuggestionHighlights']&&_0x24a120['stop']();},{'priority':'high'});}}class mt extends _0xa4c963{['afterInit'](){const _0x2a1a68=this['editor'];_0x2a1a68['plugins']['has']('MentionEditing')&&_0x2a1a68['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0xa4c963{['afterInit'](){const _0x537756=this['editor'];if(!_0x537756['plugins']['has']('MergeFieldsEditing'))return;_0x537756['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x537756['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x29a01f=_0x537756['plugins']['get']('TrackChangesEditing'),_0x56c779=_0x537756['locale'];_0x29a01f['descriptionFactory']['registerElementLabel']('mergeField',_0x2b70ec=>o(_0x56c779,'ELEMENT_MERGE_FIELD',_0x2b70ec)),_0x29a01f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1e961c=>o(_0x56c779,'ELEMENT_MERGE_FIELD',_0x1e961c)),_0x29a01f['descriptionFactory']['registerDescriptionCallback'](_0x20efdc=>{if('insertion'!=_0x20efdc['type']&&'deletion'!=_0x20efdc['type'])return;const _0x5267cd=_0x20efdc['getContainedElement']();if(null==_0x5267cd)return;if(!_0x5267cd['is']('element','mergeField')&&!_0x5267cd['is']('element','mergeFieldBlock'))return;const _0x16f38a=_0x537756['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5267cd['getAttribute']('id'));return'insertion'==_0x20efdc['type']?{'type':'insertion','content':o(_0x56c779,'*Insert:*\x20%0','\x22'+_0x16f38a+'\x22\x20'+o(_0x56c779,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x56c779,'*Remove:*\x20%0','\x22'+_0x16f38a+'\x22\x20'+o(_0x56c779,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0xa4c963{['afterInit'](){const _0x1d8df5=this['editor'],_0xfaa014=_0x1d8df5['plugins']['get']('TrackChangesEditing');_0x1d8df5['plugins']['has']('MultiLevelList')&&(_0xfaa014['enableDefaultAttributesIntegration']('multiLevelList'),_0xfaa014['registerBlockAttribute']('listMarkerStyle'),_0xfaa014['descriptionFactory']['registerDescriptionCallback'](_0x15bf5d=>this['handleDescriptions'](_0x15bf5d)));}['handleDescriptions'](_0x405872){const _0x32aed1=this['editor']['locale'],{data:_0x344b1d}=_0x405872,_0x134f18={'type':'format','content':''};if(_0x344b1d&&'listMarkerStyle'==_0x344b1d['key']){if(!_0x344b1d['oldValue'])return{'type':'format','content':o(_0x32aed1,'*Set\x20format:*\x20%0',o(_0x32aed1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x344b1d['newValue']+')'};if(!_0x344b1d['newValue']){let _0x107c7a=_0x405872['head'];for(;_0x107c7a;){if(_0x107c7a['data']&&'listType'==_0x107c7a['data']['key']&&_0x107c7a['data']['newValue'])return _0x134f18;_0x107c7a=_0x107c7a['next'];}return{'type':'format','content':o(_0x32aed1,'*Remove\x20format:*\x20%0',o(_0x32aed1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x344b1d['oldValue']+')'};}}}}class kt extends _0xa4c963{['afterInit'](){const _0x571afd=this['editor'];if(!_0x571afd['plugins']['has']('PageBreakEditing'))return;_0x571afd['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x15bd6c=_0x571afd['plugins']['get']('TrackChangesEditing'),_0x3ea45f=_0x571afd['locale'];_0x15bd6c['descriptionFactory']['registerElementLabel']('pageBreak',_0x4b9df7=>o(_0x3ea45f,'ELEMENT_PAGE_BREAK',_0x4b9df7));}}class bt extends _0xa4c963{['afterInit'](){const _0x1949e9=this['editor'];if(!_0x1949e9['plugins']['has']('Paragraph'))return;const _0x5b4d79=_0x1949e9['locale'],_0x49f135=_0x1949e9['plugins']['get']('TrackChangesEditing');_0x49f135['descriptionFactory']['registerElementLabel']('paragraph',_0x4e3087=>o(_0x5b4d79,'ELEMENT_PARAGRAPH',_0x4e3087)),_0x49f135['enableDefaultAttributesIntegration']('paragraph'),_0x49f135['enableCommand']('insertParagraph'),_0x1949e9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1949e9),{'priority':'highest'}),_0x1949e9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1f3dc6,_0x1966ed,_0x444826)=>{_0x444826['options']['showSuggestionHighlights']&&nr(_0x1949e9,{'showActiveMarker':!0x1})(_0x1f3dc6,_0x1966ed,_0x444826);},{'priority':'highest'});const _0x493dbe=_0x49f135['descriptionFactory'];_0x493dbe['registerDescriptionCallback'](_0x45da30=>{if('insertion'!==_0x45da30['type'])return;const {start:_0x456347,end:_0x54f408}=_0x45da30['getFirstRange']();if(!_0x456347['isTouching'](_0x54f408)||!_0x456347['nodeAfter'])return;const _0x115782=_0x1949e9['model']['schema'],_0x2463e7=_0x456347['nodeAfter'];return _0x115782['isBlock'](_0x2463e7)&&!_0x115782['isLimit'](_0x2463e7)&&_0x115782['checkChild'](_0x2463e7,'$text')?{'type':'insertion','content':o(_0x5b4d79,'*Insert:*\x20%0',_0x493dbe['getItemLabel'](_0x2463e7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc5ce25=this['editor'],_0x19fecf=_0xc5ce25['locale'];_0xc5ce25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc29c99=>{if('formatBlock'!=_0xc29c99['type'])return;const {data:_0x40b34e}=_0xc29c99;return _0x40b34e&&'paragraph'==_0x40b34e['commandName']?{'type':'format','content':o(_0x19fecf,'*Change\x20to:*\x20%0',o(_0x19fecf,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x16c4d0,{showActiveMarker:_0x438a81=!0x0}={}){return(_0x362edf,_0x223fb9,_0x3539be)=>{const _0x86a47=_0x16c4d0['plugins']['get']('TrackChangesEditing'),_0x2fb367=_0x223fb9['markerRange']['start'],_0x588949=_0x223fb9['markerRange']['end'],_0x39fcb3=_0x16c4d0['model']['schema'];if(!_0x2fb367['isTouching'](_0x588949)||!_0x2fb367['nodeAfter'])return;const _0xe06666=_0x2fb367['nodeAfter'];if(_0x39fcb3['isBlock'](_0xe06666)&&!_0x39fcb3['isLimit'](_0xe06666)&&_0x39fcb3['checkChild'](_0xe06666,'$text')){if(!_0x3539be['consumable']['consume'](_0x223fb9['markerRange'],_0x362edf['name']))return;const {authorId:_0x939c5e}=_0x86a47['_splitMarkerName'](_0x223fb9['markerName']),_0x2eeabb=_0x3539be['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x939c5e}),_0x4e8860=_0x3539be['mapper']['toViewPosition'](_0x588949);_0x438a81&&_0x86a47['activeMarkers']['includes'](_0x223fb9['markerName'])&&_0x3539be['writer']['addClass']('ck-suggestion-marker--active',_0x2eeabb),_0x3539be['writer']['insert'](_0x4e8860,_0x2eeabb),_0x3539be['mapper']['bindElementToMarker'](_0x2eeabb,_0x223fb9['markerName']);}};}class yt extends _0xa4c963{['afterInit'](){const _0x257eb4=this['editor'];if(!_0x257eb4['plugins']['has']('RemoveFormatEditing'))return;_0x257eb4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xeae588=this['editor'];_0xeae588['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42cf2f=>{if('formatBlock'!=_0x42cf2f['type']&&'formatInline'!=_0x42cf2f['type'])return;const {data:_0x471762}=_0x42cf2f;return _0x471762&&'removeFormat'==_0x471762['commandName']?{'type':'format','content':o(_0xeae588['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0xa4c963{['afterInit'](){const _0x34dc2b=this['editor'];if(!_0x34dc2b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x38d01e=_0x34dc2b['plugins']['get']('TrackChangesEditing');_0x38d01e['enableCommand']('goToPreviousRestrictedEditingException'),_0x38d01e['enableCommand']('goToNextRestrictedEditingException');const _0x4f09c0=_0x34dc2b['plugins']['get']('RestrictedEditingModeEditing');_0x4f09c0['enableCommand']('trackChanges'),_0x4f09c0['enableCommand']('acceptSuggestion'),_0x4f09c0['enableCommand']('discardSuggestion'),_0x4f09c0['enableCommand']('acceptAllSuggestions'),_0x4f09c0['enableCommand']('discardAllSuggestions'),_0x4f09c0['enableCommand']('acceptSelectedSuggestions'),_0x4f09c0['enableCommand']('discardSelectedSuggestions');}}class St extends _0xa4c963{static get['requires'](){return[_0x37f999];}['init'](){const _0x7a7c69=this['editor'],_0xdaa33e=_0x7a7c69['plugins']['get']('TrackChangesEditing');_0xdaa33e['enableCommand']('shiftEnter'),_0x7a7c69['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x7a7c69),{'priority':'high'}),_0x7a7c69['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x7a7c69),{'priority':'high'}),_0x7a7c69['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24e107,_0x12c33b,_0x2a0ca1)=>{_0x2a0ca1['options']['showSuggestionHighlights']&&ke(_0x7a7c69,{'showActiveMarker':!0x1})(_0x24e107,_0x12c33b,_0x2a0ca1);}),_0xdaa33e['descriptionFactory']['registerElementLabel']('softBreak',_0x2cd6c5=>o(_0x7a7c69['locale'],'ELEMENT_LINE_BREAK',_0x2cd6c5));}}function ke(_0x8f0059,{showActiveMarker:_0x5d7266=!0x0}={}){return(_0x12f2b2,_0x961e16,_0x464d04)=>{const _0x4e6189=_0x8f0059['plugins']['get']('TrackChangesEditing');if(!_0x464d04['consumable']['test'](_0x961e16['markerRange'],_0x12f2b2['name']))return;const _0x1b75c9=_0x8f0059['model'];for(const _0x59cc7b of _0x961e16['markerRange']['getItems']()){if(!_0x59cc7b['is']('element','softBreak'))continue;const _0x267c06='deletion'==_0x961e16['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0xbf4f24}=_0x4e6189['_splitMarkerName'](_0x961e16['markerName']),_0x2eb8c8=_0x464d04['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x267c06,'data-author-id':_0xbf4f24}),_0x4655e4=_0x464d04['mapper']['toViewPosition'](_0x1b75c9['createPositionBefore'](_0x59cc7b));_0x5d7266&&_0x4e6189['activeMarkers']['includes'](_0x961e16['markerName'])&&_0x464d04['writer']['addClass']('ck-suggestion-marker--active',_0x2eb8c8),_0x464d04['writer']['insert'](_0x4655e4,_0x2eb8c8),_0x464d04['mapper']['bindElementToMarker'](_0x2eb8c8,_0x961e16['markerName']);}};}class At extends _0xa4c963{['afterInit'](){const _0xd3893f=this['editor'],_0x12e902=_0xd3893f['model'],_0x17102a=_0xd3893f['locale'];if(!_0xd3893f['plugins']['has']('StandardEditingModeEditing'))return;const _0x226a0b=_0xd3893f['plugins']['get']('TrackChangesEditing'),_0x957522='restrictedEditingException',_0x3cb477=_0xd3893f['commands']['get'](_0x957522);_0x226a0b['enableCommand'](_0x957522,(_0x526f44,_0x589126={})=>{const _0x40aa5f=_0x12e902['document']['selection'];if(_0x40aa5f['isCollapsed'])return void _0x526f44(_0x589126);const _0x572424=void 0x0!==_0x589126['forceValue']?_0x589126['forceValue']:!_0x3cb477['value'];_0x12e902['change'](()=>{const _0x20ebf3=Array['from'](_0x40aa5f['getRanges']());for(const _0x248ae2 of _0x20ebf3){const _0x1382f1=_0x572424?[_0x248ae2]:io(_0x957522,_0x248ae2,_0x12e902);for(const _0x555e22 of _0x1382f1)_0x226a0b['markInlineFormat'](_0x555e22,{'commandName':_0x957522,'commandParams':[{'forceValue':_0x572424}]});}});}),_0x226a0b['descriptionFactory']['registerDescriptionCallback'](_0x3dbd80=>{if('formatBlock'!=_0x3dbd80['type']&&'formatInline'!=_0x3dbd80['type'])return;const {data:_0x6de474}=_0x3dbd80;return _0x6de474&&_0x6de474['commandName']==_0x957522?_0x6de474['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x17102a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x17102a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xa4c963{['afterInit'](){const _0x3fda2a=this['editor'];if(!_0x3fda2a['plugins']['has']('Style')||!_0x3fda2a['plugins']['has']('DataSchema'))return;const _0x218e35=_0x3fda2a['plugins']['get']('TrackChangesEditing'),_0x2c9790=_0x3fda2a['locale'],_0xaefd28=_0x3fda2a['config']['get']('style')||{},_0x58ef2c=_0x3fda2a['plugins']['get']('GeneralHtmlSupport'),_0x967b58=_0x3fda2a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3fda2a['plugins']['get']('DataSchema'),_0xaefd28['definitions']);_0x218e35['enableDefaultAttributesIntegration']('style');const _0x690efb=new Set();for(const _0x2d9bfc of _0x967b58['block']){const _0x312bd7=_0x58ef2c['getGhsAttributeNameForElement'](_0x2d9bfc['element']);_0x690efb['add'](_0x312bd7);}const _0x203414=new Set();for(const _0x452c3b of _0x967b58['inline']){const _0x53cc3f=_0x58ef2c['getGhsAttributeNameForElement'](_0x452c3b['element']);_0x203414['add'](_0x53cc3f);for(const _0x4c1272 of _0x452c3b['ghsAttributes'])_0x203414['add'](_0x4c1272);}for(const _0x4d4d75 of _0x690efb)_0x218e35['registerBlockAttribute'](_0x4d4d75),_0x218e35['descriptionFactory']['registerAttributeLabel'](_0x4d4d75,o(_0x2c9790,'FORMAT_STYLE'));for(const _0x19564a of _0x203414)_0x218e35['registerInlineAttribute'](_0x19564a),_0x218e35['descriptionFactory']['registerAttributeLabel'](_0x19564a,o(_0x2c9790,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc2f59b=this['editor'],_0x125490=_0xc2f59b['locale'];_0xc2f59b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3806ff=>{if('formatBlock'!=_0x3806ff['type']&&'formatInline'!=_0x3806ff['type'])return;const {data:_0x27e1df}=_0x3806ff;return _0x27e1df&&'style'===_0x27e1df['commandName']?_0x27e1df['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x125490,'*Set\x20format:*\x20%0',_0x27e1df['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x125490,'*Remove\x20format:*\x20%0',_0x27e1df['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0xa4c963{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x12c474){super(_0x12c474),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x15ff2e=this['editor'],_0x2b039d=_0x15ff2e['model']['document']['selection'];if(!_0x15ff2e['plugins']['has']('TableEditing'))return;const _0x287122=_0x15ff2e['locale'],_0x219e29=_0x15ff2e['plugins']['get']('TrackChangesEditing'),_0x3b9a71=_0x15ff2e['plugins']['get']('TableUtils');_0x219e29['descriptionFactory']['registerElementLabel']('table',_0x3bd080=>o(_0x287122,'ELEMENT_TABLE',_0x3bd080)),this['_setupColumnsRowsFixing'](),_0x219e29['enableCommand']('insertTable'),_0x219e29['enableCommand']('selectTableRow'),_0x219e29['enableCommand']('selectTableColumn');for(const _0x1fde44 of['insertTableRowAbove','insertTableRowBelow']){const _0x3cbe0c=_0x15ff2e['commands']['get'](_0x1fde44);_0x219e29['enableCommand'](_0x1fde44,_0x508242=>{_0x15ff2e['model']['change'](_0x485a25=>{_0x508242();const _0x333499='above'===_0x3cbe0c['order'],_0x48884e=_0x3b9a71['getSelectionAffectedTableCells'](_0x2b039d),_0x2f5030=_0x3b9a71['getRowIndexes'](_0x48884e),_0x1e8e3e=_0x333499?_0x2f5030['first']-0x1:_0x2f5030['last']+0x1,_0x3356b=_0x48884e[0x0]['findAncestor']('table'),_0x2ca0a5=_0x3b9a71['createTableWalker'](_0x3356b,{'startRow':_0x1e8e3e,'endRow':_0x1e8e3e}),_0xfef772=Array['from'](_0x2ca0a5)['map'](_0x242ecd=>_0x485a25['createRangeOn'](_0x242ecd['cell']));_0x219e29['markMultiRangeInsertion'](_0xfef772,'tableRow');});});}for(const _0x249db5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x569246=_0x15ff2e['commands']['get'](_0x249db5);_0x219e29['enableCommand'](_0x249db5,_0x58bcaa=>{_0x15ff2e['model']['change'](_0x5ca12e=>{_0x58bcaa();const _0x3938b5='left'===_0x569246['order'],_0x197d48=_0x3b9a71['getSelectionAffectedTableCells'](_0x2b039d),_0x395742=_0x3b9a71['getColumnIndexes'](_0x197d48),_0x5320d0=_0x3938b5?_0x395742['first']-0x1:_0x395742['last']+0x1,_0x5a0261=_0x197d48[0x0]['findAncestor']('table'),_0x4bc4b6=_0x3b9a71['createTableWalker'](_0x5a0261,{'startRow':0x0,'column':_0x5320d0,'includeAllSlots':!0x1}),_0x571622=Array['from'](_0x4bc4b6)['map'](_0x552435=>_0x5ca12e['createRangeOn'](_0x552435['cell']));_0x219e29['markMultiRangeInsertion'](_0x571622,'tableColumn');});});}for(const _0x4d7642 of['removeTableRow','removeTableColumn']){const _0x16bf7d=_0x4d7642['substr'](0xb),_0x1dfb38=_0x16bf7d['toLowerCase'](),_0x441a38=_0x1dfb38['substr'](0x0,0x3)+'span',_0xd8194='table'+_0x16bf7d,_0x52ba3a='min'+_0x16bf7d,_0x4d954f='max'+_0x16bf7d;_0x219e29['enableCommand'](_0x4d7642,()=>{_0x15ff2e['model']['change'](_0x524623=>{const _0xa18fba=_0x3b9a71['getSelectionAffectedTableCells'](_0x2b039d),_0x35c689=_0xa18fba[0x0]['findAncestor']('table');let _0x12b6d1;if('removeTableRow'==_0x4d7642){const _0x4e7e27=_0x3b9a71['getRowIndexes'](_0xa18fba);_0x12b6d1={'startRow':_0x4e7e27['first'],'endRow':_0x4e7e27['last'],'includeAllSlots':!0x0};}else{const _0x1ee52d=_0x3b9a71['getColumnIndexes'](_0xa18fba);_0x12b6d1={'startColumn':_0x1ee52d['first'],'endColumn':_0x1ee52d['last'],'includeAllSlots':!0x0};}const _0x399e1b=_0x3b9a71['createTableWalker'](_0x35c689,_0x12b6d1),_0x32aa20=Array['from'](_0x399e1b)['map'](({cell:_0x571941})=>_0x571941),_0x77f198=Re(_0x32aa20['filter'](_0x2e11ab=>_0x2e11ab['hasAttribute'](_0x441a38))),_0xe7de98=Re(_0x32aa20['filter'](_0x3849fc=>!_0x3849fc['hasAttribute'](_0x441a38)))['map'](_0x370e89=>_0x524623['createRangeOn'](_0x370e89)),_0x629aef=_0x219e29['markMultiRangeDeletion'](_0xe7de98,_0xd8194);if(_0x629aef&&('tableRow'==_0x629aef['subType']||'tableColumn'==_0x629aef['subType'])){const _0x1a7b95=this['_getSuggestionCoords'](_0x629aef);for(const _0x11da1a of _0x77f198){const _0x5c5e82=_0x524623['createRangeOn'](_0x11da1a),_0x51a936=_0x3b9a71['getCellLocation'](_0x11da1a),_0x11265a=_0x11da1a['getAttribute'](_0x441a38)-0x1,_0x443cf2=_0x1a7b95[_0x52ba3a],_0x1e6b97=_0x1a7b95[_0x4d954f];_0x443cf2<=_0x51a936[_0x1dfb38]&&_0x51a936[_0x1dfb38]+_0x11265a<=_0x1e6b97&&_0x629aef['addRange'](_0x5c5e82);}}});});}function _0x38050a(_0x5d2604){const _0xe4f88d=Array['from'](_0x2b039d['getRanges']())['map'](_0x20bd04=>_0xac092f['fromRange'](_0x20bd04));_0x15ff2e['model']['change'](_0x33b36f=>{const _0x1668ab=_0x33b36f['batch'];_0x5d2604=_0x5d2604['filter'](_0x189efd=>'$graveyard'!=_0x189efd['root']['rootName']),_0x33b36f['setSelection'](_0x5d2604),_0x15ff2e['commands']['get']('removeTableRow')['refresh'](),_0x15ff2e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x15ff2e['model']['enqueueChange'](()=>{_0x15ff2e['model']['enqueueChange'](_0x1668ab,_0x415b51=>{const _0x27a8a6=_0xe4f88d['filter'](_0x54e4ca=>'$graveyard'!=_0x54e4ca['root']['rootName']);_0x27a8a6['length']>0x0&&_0x415b51['setSelection'](_0x27a8a6);for(const _0x11c587 of _0xe4f88d)_0x11c587['detach']();});});});}function _0x3fb9a2(_0x3f0414){_0x15ff2e['model']['change'](_0xbd90b9=>{const _0x4c9eac=Array['from'](_0x2b039d['getRanges']())['map'](_0x255c3d=>_0xac092f['fromRange'](_0x255c3d)),_0x3d3ecb=[];for(const _0x5bed47 of _0x3f0414)for(const _0x1e80a8 of _0x5bed47['getItems']({'shallow':!0x0}))_0x3d3ecb['push'](_0x1e80a8);for(const _0x4b6726 of _0x3d3ecb)'$graveyard'!=_0x4b6726['root']['rootName']&&(_0xbd90b9['setSelection'](_0xbd90b9['createPositionAt'](_0x4b6726,0x0)),_0x15ff2e['commands']['get']('removeTableColumn')['refresh'](),_0x15ff2e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x55cebd=_0x4c9eac['filter'](_0x154a91=>'$graveyard'!=_0x154a91['root']['rootName']);_0x55cebd['length']>0x0&&_0xbd90b9['setSelection'](_0x55cebd);for(const _0x48a312 of _0x4c9eac)_0x48a312['detach']();});}function _0x3aecc3(_0x225dbc,_0x3fc686){return _0x3fc686['every'](_0x30afe0=>_0x225dbc['some'](_0x19347f=>_0x19347f['end']['isEqual'](_0x30afe0['start'])||_0x30afe0['end']['isEqual'](_0x19347f['start'])));}function _0x53dc2b(_0x16dd0e,_0x21cd26){return!_0x16dd0e['some'](_0x2c65d7=>_0x21cd26['some'](_0x4e1db5=>_0x2c65d7['isIntersecting'](_0x4e1db5)))&&_0x16dd0e['some'](_0x33f471=>_0x21cd26['some'](_0x1f381e=>_0x33f471['end']['isTouching'](_0x1f381e['start'])));}_0x15ff2e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x15aa85,_0x26077b,_0x5ecf9a)=>{if(!_0x5ecf9a['options']['showSuggestionHighlights'])return;const _0x4eb19c=_0x26077b['item'];if(!_0x4eb19c)return;const _0xbb25b4=_0x5ecf9a['mapper']['toViewElement'](_0x4eb19c);function _0x254665(_0x21ee39){return Array['isArray'](_0x21ee39)?_0x21ee39:[_0x21ee39];}_0xbb25b4&&'tableCell'===_0x4eb19c['name']&&_0x38e485(_0xbb25b4,_0x5ecf9a['writer'],(_0x1a1b6d,_0x5aded1,_0x330a42)=>_0x330a42['addClass'](_0x254665(_0x5aded1['classes']),_0x1a1b6d),(_0x23c9fd,_0x29b5e0,_0x42ff98)=>_0x42ff98['removeClass'](_0x254665(_0x29b5e0['classes']),_0x23c9fd));},{'priority':'highest'}),_0x219e29['descriptionFactory']['registerDescriptionCallback'](_0x2b3979=>{if('insertion'!=_0x2b3979['type']&&'deletion'!=_0x2b3979['type'])return;const _0x36606d=_0x2b3979['getContainedElement']();if(null!=_0x36606d&&_0x36606d['is']('element','table')){if('insertion'==_0x2b3979['type']){const _0x4a07b7=_0x2b3979['getItems']()['filter'](_0x18acea=>_0x18acea['is']('$textProxy'))['map'](_0x3c2285=>_0x3c2285['data']);if(_0x4a07b7['length'])return{'type':'insertion','content':o(_0x287122,'*Insert:*\x20%0',o(_0x287122,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4a07b7['join']('\x20')+'\x22'))};}if('deletion'==_0x2b3979['type']){const _0x3d075d=_0x2b3979['getItems']()['filter'](_0x34ad56=>_0x34ad56['is']('$textProxy'))['map'](_0x7b18b4=>_0x7b18b4['data']);if(_0x3d075d['length'])return{'type':'deletion','content':o(_0x287122,'*Remove:*\x20%0',o(_0x287122,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3d075d['join']('\x20')+'\x22'))};}}}),_0x219e29['descriptionFactory']['registerDescriptionCallback'](_0x14f16b=>{if('tableRow'==_0x14f16b['subType']){const _0x579e95=_0x14f16b['getItems']()['filter'](_0x20c935=>_0x20c935['is']('$textProxy'))['map'](_0x49d1bd=>_0x49d1bd['data']),_0x2f0aed=this['_getSuggestionCoords'](_0x14f16b),_0x274602=_0x2f0aed['maxRow']-_0x2f0aed['minRow']+0x1;if('insertion'==_0x14f16b['type'])return _0x579e95['length']?{'type':'insertion','content':o(_0x287122,'*Insert:*\x20%0',o(_0x287122,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x274602,'\x22'+_0x579e95['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x287122,'*Insert:*\x20%0',o(_0x287122,'ELEMENT_TABLE_ROW',_0x274602))};if('deletion'==_0x14f16b['type'])return _0x579e95['length']?{'type':'deletion','content':o(_0x287122,'*Remove:*\x20%0',o(_0x287122,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x274602,'\x22'+_0x579e95['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x287122,'*Remove:*\x20%0',o(_0x287122,'ELEMENT_TABLE_ROW',_0x274602))};}if('tableColumn'==_0x14f16b['subType']){const _0x21e39a=_0x14f16b['getItems']()['filter'](_0x54d032=>_0x54d032['is']('$textProxy'))['map'](_0x1ae282=>_0x1ae282['data']),_0x5bef8b=this['_getSuggestionCoords'](_0x14f16b),_0x50c685=_0x5bef8b['maxColumn']-_0x5bef8b['minColumn']+0x1;if('insertion'==_0x14f16b['type'])return _0x21e39a['length']?{'type':'insertion','content':o(_0x287122,'*Insert:*\x20%0',o(_0x287122,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x50c685,'\x22'+_0x21e39a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x287122,'*Insert:*\x20%0',o(_0x287122,'ELEMENT_TABLE_COLUMN',_0x50c685))};if('deletion'==_0x14f16b['type'])return _0x21e39a['length']?{'type':'deletion','content':o(_0x287122,'*Remove:*\x20%0',o(_0x287122,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x50c685,'\x22'+_0x21e39a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x287122,'*Remove:*\x20%0',o(_0x287122,'ELEMENT_TABLE_COLUMN',_0x50c685))};}}),_0x219e29['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x38050a),_0x219e29['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x38050a),_0x219e29['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3fb9a2),_0x219e29['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3fb9a2),_0x219e29['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3aecc3),_0x219e29['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3aecc3),_0x219e29['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x53dc2b),_0x219e29['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x53dc2b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x53bbcb=this['editor'],_0x108ade=_0x53bbcb['model']['document']['selection'];return(_0x1f089e,_0x24220f)=>{_0x53bbcb['model']['change'](_0x4865fb=>{const {commandName:_0x4e7a0f,commandParams:_0x5b6d12}=_0x24220f;let _0x1faf5f=_0x1f089e[0x0]['end']['nodeBefore'];_0x5b6d12&&_0x5b6d12[0x0]&&!0x1===_0x5b6d12[0x0]['forceValue']&&(_0x1faf5f=_0x1f089e[0x0]['start']['nodeAfter']);const _0x3f19cc=_0x4865fb['createRangeIn'](_0x1faf5f);if('$graveyard'==_0x3f19cc['root']['rootName'])return;const _0x4339ea=Array['from'](_0x108ade['getRanges']())['map'](_0x584bfb=>_0xac092f['fromRange'](_0x584bfb));_0x4865fb['setSelection'](_0x3f19cc),_0x53bbcb['commands']['get'](_0x4e7a0f)['refresh'](),_0x5b6d12['push']({'forceDefaultExecution':!0x0}),_0x53bbcb['execute'](_0x4e7a0f,..._0x5b6d12);const _0x2bfaf8=_0x4339ea['filter'](_0x153931=>'$graveyard'!=_0x153931['root']['rootName']);_0x2bfaf8['length']>0x0&&_0x4865fb['setSelection'](_0x2bfaf8);for(const _0x14b4dc of _0x4339ea)_0x14b4dc['detach']();});};}['_getCoordsForCells'](_0x4ba23b){const _0x45a76a=this['editor']['plugins']['get']('TableUtils');let _0x1d3fd5=Number['MAX_SAFE_INTEGER'],_0x5b8774=Number['MIN_SAFE_INTEGER'],_0x3634f0=Number['MAX_SAFE_INTEGER'],_0x4c73c0=Number['MIN_SAFE_INTEGER'];for(const _0x11a2e0 of _0x4ba23b){if('$graveyard'==_0x11a2e0['root']['rootName'])continue;const {row:_0xbde66a,column:_0x4a3498}=_0x45a76a['getCellLocation'](_0x11a2e0),_0x2648f9=_0x11a2e0['hasAttribute']('rowspan')?_0x11a2e0['getAttribute']('rowspan')-0x1:0x0,_0x434e12=_0x11a2e0['hasAttribute']('colspan')?_0x11a2e0['getAttribute']('colspan')-0x1:0x0;_0x1d3fd5=_0xbde66a<_0x1d3fd5?_0xbde66a:_0x1d3fd5,_0x5b8774=_0xbde66a+_0x2648f9>_0x5b8774?_0xbde66a+_0x2648f9:_0x5b8774,_0x3634f0=_0x4a3498<_0x3634f0?_0x4a3498:_0x3634f0,_0x4c73c0=_0x4a3498+_0x434e12>_0x4c73c0?_0x4a3498+_0x434e12:_0x4c73c0;}return{'minRow':_0x1d3fd5,'maxRow':_0x5b8774,'minColumn':_0x3634f0,'maxColumn':_0x4c73c0};}['_setupColumnsRowsFixing'](){const _0x2f96f5=this['editor'],_0x128654=_0x2f96f5['plugins']['get']('TrackChangesEditing'),_0x2d0690=_0x2f96f5['plugins']['get']('TableUtils');_0x2f96f5['model']['document']['on']('change:data',()=>{const _0x5c2206=Array['from'](_0x2f96f5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24f21e,data:_0x1c63cc}of _0x5c2206){const {group:_0x5409c6,id:_0x586665,subType:_0x47e277}=_0x128654['_splitMarkerName'](_0x24f21e);if('suggestion'!=_0x5409c6)continue;if(null!=_0x1c63cc['oldRange'])continue;const _0x4667d7=_0x128654['getSuggestion'](_0x586665);this['_tablePostFixingSubtypes']['includes'](_0x47e277)&&this['_tableSuggestions']['add'](_0x4667d7);}},{'priority':'low'});const _0x3c7886=(_0xd86b70,_0x343298)=>{let _0x1cdc8a=!0x1;const _0x5908d5=_0x343298['createRangeOn'](_0xd86b70),_0x2a1d02=_0xd86b70['findAncestor']('table'),_0x32b596=_0x2d0690['getCellLocation'](_0xd86b70);for(const _0x38f14c of this['_tableSuggestions']){const _0x20ac1f=_0x38f14c['subType'],_0x1ff97c=_0x20ac1f['startsWith']('tablePaste'),_0x57b144=_0x20ac1f['substr'](_0x1ff97c?0xa:0x5),_0x12f395=_0x57b144['toLowerCase'](),_0xe3fb0c=_0x12f395['substr'](0x0,0x3)+'span',_0x4ccca='min'+_0x57b144,_0x41c7c1='max'+_0x57b144;if(!_0x38f14c['isInContent'])continue;if(_0x2a1d02!=_0x38f14c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x38f14c['isIntersectingWithRange'](_0x5908d5))continue;const _0x2f7570=_0xd86b70['hasAttribute'](_0xe3fb0c)?_0xd86b70['getAttribute'](_0xe3fb0c)-0x1:0x0,_0x5df024=this['_getSuggestionCoords'](_0x38f14c),_0x236f0b=_0x5df024[_0x4ccca],_0xb26332=_0x5df024[_0x41c7c1];_0x236f0b<=_0x32b596[_0x12f395]&&_0x32b596[_0x12f395]+_0x2f7570<=_0xb26332&&(_0x38f14c['addRange'](_0x5908d5),_0x1cdc8a=!0x0);}return _0x1cdc8a;};_0x2f96f5['model']['document']['registerPostFixer'](_0xfbc213=>{let _0x3ab429=!0x1;for(const _0x24713c of _0x2f96f5['model']['document']['differ']['getChanges']())if('insert'==_0x24713c['type']){if('tableRow'==_0x24713c['name']){for(const _0x3de31d of _0x24713c['position']['nodeAfter']['getChildren']())_0x3ab429=_0x3ab429||_0x3c7886(_0x3de31d,_0xfbc213);}else'tableCell'==_0x24713c['name']&&(_0x3ab429=_0x3ab429||_0x3c7886(_0x24713c['position']['nodeAfter'],_0xfbc213));}return _0x3ab429;});}['_getSuggestionCoords'](_0x786130){return this['_getCoordsForCells'](_0x786130['getRanges']()['map'](_0x5d0e85=>_0x5d0e85['start']['nodeAfter']));}}function Re(_0x2652a5){return Array['from'](new Set(_0x2652a5)['values']());}class _t extends _0xa4c963{static get['requires'](){return[vt];}['afterInit'](){const _0x2378c7=this['editor'],_0x2eb372=_0x2378c7['model']['document']['selection'],_0x53d760=_0x2378c7['locale'];if(!_0x2378c7['plugins']['has']('TableEditing'))return;const _0x5c8950=_0x2378c7['plugins']['get']('TrackChangesEditing'),_0x1bdd95=_0x2378c7['plugins']['get']('TableUtils'),_0x703236=_0x2378c7['plugins']['get'](vt);_0x703236['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5c8950['enableCommand']('mergeTableCells',()=>{const _0x15af47=_0x1bdd95['getSelectionAffectedTableCells'](_0x2378c7['model']['document']['selection']);_0x2378c7['model']['change'](()=>{_0x5c8950['markMultiRangeBlockFormat'](_0x15af47,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2378c7['commands']['get']('mergeTableCells')['on']('execute',(_0x497cf6,_0x3aea16)=>{_0x2378c7['commands']['get']('trackChanges')['value']&&(_0x3aea16['length']>0x0&&_0x3aea16[_0x3aea16['length']-0x1]&&_0x3aea16[_0x3aea16['length']-0x1]['forceDefaultExecution']||_0x5c8950['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x497cf6['stop']());},{'priority':'highest'});for(const _0x15d630 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1e06aa=_0x2378c7['commands']['get'](_0x15d630);_0x5c8950['enableCommand'](_0x15d630,()=>{const _0x4f6eee=_0x2378c7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x17ff87=>_0x17ff87['is']('element','tableCell')),_0x105481=_0x1e06aa['value'];_0x2378c7['model']['change'](()=>{_0x5c8950['markMultiRangeBlockFormat']([_0x4f6eee,_0x105481],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2c729a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x14f4cc=_0x2378c7['commands']['get'](_0x2c729a);_0x5c8950['enableCommand'](_0x2c729a,()=>{const _0x342e05=_0x1bdd95['getSelectionAffectedTableCells'](_0x2378c7['model']['document']['selection'])[0x0],_0x2c13db=_0x342e05['findAncestor']('table'),{column:_0x519494,row:_0x52db98}=_0x1bdd95['getCellLocation'](_0x342e05);let _0x47fda9=[];if('horizontally'==_0x14f4cc['direction']){const _0x408fe9=_0x1bdd95['createTableWalker'](_0x2c13db,{'startRow':_0x52db98,'endRow':_0x52db98,'includeAllSlots':!0x0});_0x47fda9=Array['from'](_0x408fe9)['map'](_0x52387b=>_0x52387b['cell']);}else{const _0x5561db=_0x1bdd95['createTableWalker'](_0x2c13db,{'column':_0x519494,'includeAllSlots':!0x0});_0x47fda9=Array['from'](_0x5561db)['map'](_0x586428=>_0x586428['cell']);}_0x2378c7['model']['change'](_0x5a9604=>{_0x5c8950['markBlockFormat'](_0x5a9604['createRangeOn'](_0x342e05),{'commandName':_0x2c729a,'commandParams':[]},_0x47fda9,_0x2c729a);});});}_0x5c8950['descriptionFactory']['registerDescriptionCallback'](_0x3ce902=>{if('formatBlock'!=_0x3ce902['type']&&'formatInline'!=_0x3ce902['type'])return;const {data:_0x549b7f}=_0x3ce902;return _0x549b7f&&'mergeTableCells'==_0x549b7f['commandName']?{'type':'format','content':o(_0x53d760,'*Merge\x20cells*')}:void 0x0;}),_0x5c8950['descriptionFactory']['registerDescriptionCallback'](_0x385992=>{if('formatBlock'!=_0x385992['type']&&'formatInline'!=_0x385992['type'])return;const {data:_0x2c5043}=_0x385992;return _0x2c5043?'splitTableCellVertically'==_0x2c5043['commandName']?{'type':'format','content':o(_0x53d760,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2c5043['commandName']?{'type':'format','content':o(_0x53d760,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x573d77=_0x703236['_acceptFormatSuggestionCallbackFactory']();for(const _0x1bf589 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5c8950['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1bf589,'accept',_0x573d77);for(const _0x52a812 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5c8950['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x52a812,'accept',_0x573d77);_0x5c8950['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x45d2f6=>{_0x2378c7['model']['change'](_0x3ec558=>{const _0x26ba75=Array['from'](_0x2eb372['getRanges']())['map'](_0x105623=>_0xac092f['fromRange'](_0x105623));_0x3ec558['setSelection'](_0x45d2f6),_0x2378c7['commands']['get']('mergeTableCells')['refresh'](),_0x2378c7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1aeee7=_0x26ba75['filter'](_0x452ced=>'$graveyard'!=_0x452ced['root']['rootName']);_0x1aeee7['length']>0x0&&_0x3ec558['setSelection'](_0x1aeee7);for(const _0x224d8e of _0x26ba75)_0x224d8e['detach']();});});for(const _0x4069de of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x56ceb6=_0x2378c7['commands']['get'](_0x4069de);_0x56ceb6['on']('set:isEnabled',(_0x4a55c8,_0x814449,_0x463587)=>{if(_0x463587){const _0x50f8bc=_0x2378c7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x596b19=>_0x596b19['is']('element','tableCell'));this['_areMergableCells'](_0x56ceb6['value'],_0x50f8bc)||(_0x4a55c8['return']=!0x1,_0x4a55c8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x54672e=this['editor']['commands']['get']('mergeTableCells'),_0x427748=this['editor']['plugins']['get']('TableUtils');if(!_0x54672e['isEnabled'])return!0x1;const _0x7556dd=_0x427748['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x429d6f of _0x7556dd)for(const _0x387faa of _0x7556dd)if(_0x429d6f!=_0x387faa&&!this['_areMergableCells'](_0x429d6f,_0x387faa))return!0x1;return!0x0;}['_areMergableCells'](_0x35e0fa,_0x22a228){const _0x2caab8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b199=this['editor']['model']['createRangeOn'](_0x35e0fa),_0x409a7d=this['editor']['model']['createRangeOn'](_0x22a228),_0x365d78=new Set(),_0x5bcacc=new Set();for(const _0x31fb06 of _0x2caab8['getSuggestions']())if(('insertion'==_0x31fb06['type']||'deletion'==_0x31fb06['type']||'mergeTableCells'==_0x31fb06['subType'])&&_0x31fb06['isInContent']){for(const _0x231f87 of _0x31fb06['getRanges']())_0x231f87['containsRange'](_0x5b199,!0x0)&&_0x365d78['add'](_0x31fb06['type']+':'+_0x31fb06['author']['id']),_0x231f87['containsRange'](_0x409a7d,!0x0)&&_0x5bcacc['add'](_0x31fb06['type']+':'+_0x31fb06['author']['id']);}if(_0x365d78['size']!=_0x5bcacc['size'])return!0x1;for(const _0xf57757 of _0x365d78)if(!_0x5bcacc['has'](_0xf57757))return!0x1;return!0x0;}}class Ct extends _0xa4c963{static get['requires'](){return[vt];}['afterInit'](){const _0x502d51=this['editor'];if(!_0x502d51['plugins']['has']('TableEditing'))return;const _0x35c8e6=_0x502d51['locale'],_0x7bef9c=_0x502d51['plugins']['get']('TrackChangesEditing');_0x7bef9c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x7bef9c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x7bef9c['registerBlockAttribute']('headingRows'),_0x7bef9c['registerBlockAttribute']('headingColumns'),_0x7bef9c['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x35c8e6,'FORMAT_HEADER_ROW')),_0x7bef9c['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x35c8e6,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2413b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e8427=this['editor']['plugins']['get']('TableUtils'),_0x5495cd=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x26edb4({showActiveMarker:_0x1da484=!0x0,setDataAttribute:_0x1c484f=!0x0}={}){return(_0x14ad2b,_0x305707,_0x2d24c9)=>{const {type:_0x55da88,id:_0x1061d0}=_0x2413b0['_splitMarkerName'](_0x305707['markerName']),_0x1215a6=_0x2413b0['getSuggestion'](_0x1061d0),_0x354f88=_0x1215a6['data'];if('formatBlock'!=_0x1215a6['type']||!_0x354f88||'setTableColumnHeader'!=_0x354f88['commandName'])return;if(_0x305707['item'])return void _0x14ad2b['stop']();if(!_0x2d24c9['consumable']['consume'](_0x305707['markerRange'],_0x14ad2b['name']))return;const _0x395171=_0x305707['markerRange']['start']['nodeAfter'],_0x5e0209=_0x305707['markerRange']['end']['nodeBefore'],_0xc381c2=_0x395171['parent']['parent'],{column:_0xb60666}=_0x3e8427['getCellLocation'](_0x395171),{column:_0x36513e}=_0x3e8427['getCellLocation'](_0x5e0209);for(let _0x2534cb=_0xb60666;_0x2534cb<=_0x36513e;_0x2534cb++){const _0x47ece4=_0x3e8427['createTableWalker'](_0xc381c2,{'column':_0x2534cb,'includeAllSlots':!0x1});for(const _0x2f54cd of _0x47ece4){const _0x1a8aef=_0x2f54cd['cell'],_0x33814d=_0x2d24c9['mapper']['toViewElement'](_0x1a8aef);_0x2d24c9['writer']['addClass']('ck-suggestion-marker-'+_0x55da88,_0x33814d),_0x1c484f&&_0x2d24c9['writer']['setAttribute']('data-suggestion',_0x1061d0,_0x33814d),_0x2d24c9['mapper']['bindElementToMarker'](_0x33814d,_0x305707['markerName']),_0x1da484&&(_0x2413b0['activeMarkers']['includes'](_0x305707['markerName'])?_0x2d24c9['writer']['addClass']('ck-suggestion-marker--active',_0x33814d):_0x2d24c9['writer']['removeClass']('ck-suggestion-marker--active',_0x33814d));}}};}_0x2413b0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5495cd),_0x2413b0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5495cd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x26edb4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x540572,_0x74634d,_0xcb5cb8)=>{_0xcb5cb8['options']['showSuggestionHighlights']&&_0x26edb4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x540572,_0x74634d,_0xcb5cb8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x84a8a5,_0x31f87a,_0xfcf254)=>{const {type:_0x469746,id:_0x3a933a}=_0x2413b0['_splitMarkerName'](_0x31f87a['markerName']),_0x1157a1=_0x2413b0['getSuggestion'](_0x3a933a),_0x6c2a22=_0x1157a1['data'];if('formatBlock'!=_0x1157a1['type']||!_0x6c2a22||'setTableColumnHeader'!=_0x6c2a22['commandName'])return;const _0x4225b9=_0xfcf254['mapper']['markerNameToElements'](_0x31f87a['markerName']);if(_0x4225b9){for(const _0x4986cd of _0x4225b9)_0xfcf254['writer']['removeClass']('ck-suggestion-marker-'+_0x469746,_0x4986cd),_0xfcf254['writer']['removeClass']('ck-suggestion-marker--active',_0x4986cd),_0xfcf254['writer']['removeAttribute']('data-suggestion',_0x4986cd),_0xfcf254['mapper']['unbindElementFromMarkerName'](_0x4986cd,_0x31f87a['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2311fa=this['editor'],_0xeef80=_0x2311fa['locale'];function _0x5650e3(_0x28e7f1){return{'type':'format','content':o(_0xeef80,'*Format:*\x20%0',_0x28e7f1)};}_0x2311fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c9160=>{if('formatBlock'!=_0x3c9160['type'])return;const {data:_0x257bea}=_0x3c9160;if(_0x257bea){if('setTableRowHeader'==_0x257bea['commandName']){const _0x3be2e4=_0x257bea['commandParams'][0x0]['forceValue'];return _0x5650e3(o(_0xeef80,_0x3be2e4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x257bea['commandName']){const _0x50fdd3=_0x257bea['commandParams'][0x0]['forceValue'];return _0x5650e3(o(_0xeef80,_0x50fdd3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x2f6a03=>[_0x2f6a03,null]));class Nt extends _0xa4c963{static get['requires'](){return[vt];}['afterInit'](){const _0x1d4ab9=this['editor'];if(!_0x1d4ab9['plugins']['has']('TableClipboard'))return;const _0x5c2099=_0x1d4ab9['plugins']['get']('TrackChangesEditing'),_0xcfb1f=_0x1d4ab9['plugins']['get']('TableUtils'),_0x6200cf=_0x1d4ab9['plugins']['get'](vt),_0x3bdf12=_0x1d4ab9['plugins']['get']('TableClipboard');_0x6200cf['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1d4ab9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1d4ab9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3a07f4=null;_0x1d4ab9['model']['on']('insertContent',(_0x136026,_0x38c2de)=>{const [_0x34138f,_0x21cfc7]=_0x38c2de,_0x3d45e1=_0x38c2de[_0x38c2de['length']-0x1];_0x3d45e1&&_0x3d45e1['forceDefaultExecution']||_0x5c2099['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x534034,_0x5174b3,_0x149c57,_0x793510,_0x3a3f1e){if(_0x5174b3&&!_0x5174b3['is']('documentSelection'))return!0x1;const _0x5e28e7=_0x3a3f1e['getTableIfOnlyTableInContent'](_0x534034,_0x149c57);if(!_0x5e28e7||!Ae(_0x5e28e7,void 0x0,_0x793510))return!0x1;const _0x3b8ed3=_0x793510['getSelectionAffectedTableCells'](_0x149c57['document']['selection']);if(!_0x3b8ed3['length'])return!0x1;const _0x26f5fd=_0x3b8ed3[0x0]['findAncestor']('table'),_0x2d67d4=_0x793510['getRowIndexes'](_0x3b8ed3),_0x2dec20=_0x793510['getColumnIndexes'](_0x3b8ed3),_0x1cc9fc={'startRow':_0x2d67d4['first'],'endRow':_0x2d67d4['last'],'startColumn':_0x2dec20['first'],'endColumn':_0x2dec20['last']};return 0x1==_0x3b8ed3['length']&&(_0x1cc9fc['endRow']+=_0x793510['getRows'](_0x5e28e7)-0x1,_0x1cc9fc['endColumn']+=_0x793510['getColumns'](_0x5e28e7)-0x1),Ae(_0x26f5fd,_0x1cc9fc,_0x793510);}(_0x34138f,_0x21cfc7,_0x1d4ab9['model'],_0xcfb1f,_0x3bdf12)&&(_0x136026['stop'](),_0x3a07f4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1d4ab9['model']['change'](()=>{_0x1d4ab9['model']['insertContent'](_0x38c2de[0x0],_0x38c2de[0x1],_0x38c2de[0x2],{'forceDefaultExecution':!0x0});const _0x15264f=_0x4fc915(),{rowInsertionRanges:_0x3d0012,columnInsertionRanges:_0x2353a2,insertionRanges:_0x1871b3,deletionRanges:_0x64630c,cells:_0x762360}=_0x3a07f4;_0x3d0012['length']&&_0x5c2099['markMultiRangeInsertion'](_0x3d0012,'tablePasteRow',{'tablePasteChainId':_0x15264f}),_0x2353a2['length']&&_0x5c2099['markMultiRangeInsertion'](_0x2353a2,'tablePasteColumn',{'tablePasteChainId':_0x15264f}),_0x1871b3['length']&&(_0x5c2099['markMultiRangeInsertion'](_0x1871b3,'tablePaste',{'tablePasteChainId':_0x15264f,'skipNestingCheck':!0x0}),_0x1871b3['forEach'](_0x577d6e=>_0x577d6e['detach']?.())),_0x64630c['length']&&(_0x5c2099['markMultiRangeDeletion'](_0x64630c,'tablePaste',{'tablePasteChainId':_0x15264f,'skipNestingCheck':!0x0}),_0x64630c['forEach'](_0x62c8f0=>_0x62c8f0['detach']?.()));const _0x15cd2a=_0x5c2099['markMultiRangeBlockFormat'](_0x762360['map'](({element:_0x51ff8f})=>_0x51ff8f),{'formatGroupId':_0x4fc915()},[],'tablePasteCell',{'tablePasteChainId':_0x15264f});if(_0x15cd2a){const _0x12ed9d=_0x15cd2a['getMarkers'](),_0x13504a=[];for(const {element:_0x48f9d7,attributes:_0x3145ec}of _0x762360){if(!_0x3145ec)continue;const _0x3032b3=_0x1d4ab9['model']['createRangeOn'](_0x48f9d7),_0x304490=_0x12ed9d['find'](_0xfaa468=>_0xfaa468['getRange']()['isEqual'](_0x3032b3));_0x304490&&_0x13504a['push']([_0x304490['name'],_0x3145ec]);}_0x13504a['length']&&_0x15cd2a['setAttribute']('markerAttributes',Object['fromEntries'](_0x13504a));}_0x3a07f4=null;}));},{'priority':_0x19128a['high']+0xa}),_0x1d4ab9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3a5ae8,_0x97b47f)=>{const [_0x4e45db,_0x3f3cc5,,_0x2bfd74]=_0x97b47f;if(!_0x3a07f4)return;_0x3a5ae8['stop']();const _0x3109ee=_0x4e45db['cell'],_0x42a00d=_0x3f3cc5,_0x4bc92a=je(_0x3109ee),_0x5ea914=je(_0x42a00d);_0x3a5ae8['return']=_0x3109ee;let _0x1f7500=null,_0x347c82=null;if(_0x5ea914||_0x4bc92a){if(_0x4bc92a&&!_0x5ea914){_0x2bfd74['remove'](_0x3109ee['getChild'](0x0));for(const _0x114d37 of Array['from'](_0x42a00d['getChildren']()))_0x2bfd74['insert'](_0x114d37,_0x3109ee,'end');const _0x45741f=_0x3a07f4['rowInsertionIndexes']['includes'](_0x4e45db['row']),_0x60f590=_0x3a07f4['columnInsertionIndexes']['includes'](_0x4e45db['column']);_0x45741f||_0x60f590||(_0x1f7500=_0xac092f['fromRange'](_0x2bfd74['createRangeIn'](_0x3109ee)));}else _0x5ea914&&!_0x4bc92a&&(_0x347c82=_0x2bfd74['createRangeIn'](_0x3109ee));}else{const _0x3328eb=_0x2bfd74['createElement']('tableCellSuggestion'),_0x4dad87=_0x2bfd74['createElement']('tableCellSuggestion');_0x2bfd74['wrap'](_0x2bfd74['createRangeIn'](_0x3109ee),_0x4dad87),_0x2bfd74['insert'](_0x3328eb,_0x3109ee,0x0);for(const _0x10fd58 of Array['from'](_0x42a00d['getChildren']()))_0x2bfd74['insert'](_0x10fd58,_0x3328eb,'end');_0x1f7500=_0xac092f['fromRange'](_0x2bfd74['createRangeOn'](_0x3328eb)),_0x347c82=_0xac092f['fromRange'](_0x2bfd74['createRangeOn'](_0x4dad87));}const _0x2a4aed=Array['from'](_0x42a00d['getAttributes']())['filter'](([_0x3f36d6])=>we['includes'](_0x3f36d6));_0x3a07f4['cells']['push']({'element':_0x3109ee,'attributes':_0x2a4aed['length']?Object['fromEntries'](_0x2a4aed):null}),_0x1f7500&&_0x3a07f4['insertionRanges']['push'](_0x1f7500),_0x347c82&&_0x3a07f4['deletionRanges']['push'](_0x347c82);},{'priority':'high'}),_0xcfb1f['on']('insertColumns',(_0x265dc8,_0x541f24)=>{const [_0x36e4eb,_0x494018={}]=_0x541f24;if(!_0x3a07f4)return;const _0x424182=_0x494018['at']||0x0,_0x1ce076=_0x494018['columns']||0x1;_0x3a07f4['columnInsertionIndexes']=new Array(_0x1ce076)['fill'](_0x424182)['map']((_0x209d45,_0x3023f0)=>_0x209d45+_0x3023f0);for(const {cell:_0x1f6928}of _0xcfb1f['createTableWalker'](_0x36e4eb,{'startColumn':_0x424182,'endColumn':_0x424182+_0x1ce076-0x1}))_0x3a07f4['columnInsertionRanges']['push'](_0x1d4ab9['model']['createRangeOn'](_0x1f6928));},{'priority':'low'}),_0xcfb1f['on']('insertRows',(_0x41fab1,_0x109acd)=>{const [_0x3469c4,_0x56e0b1={}]=_0x109acd;if(!_0x3a07f4)return;const _0x2f10d4=_0x56e0b1['at']||0x0,_0x5b06d9=_0x56e0b1['rows']||0x1;_0x3a07f4['rowInsertionIndexes']=new Array(_0x5b06d9)['fill'](_0x2f10d4)['map']((_0x25e4b3,_0x12f72d)=>_0x25e4b3+_0x12f72d);for(const {cell:_0x4b3229}of _0xcfb1f['createTableWalker'](_0x3469c4,{'startRow':_0x2f10d4,'endRow':_0x2f10d4+_0x5b06d9-0x1}))_0x3a07f4['rowInsertionRanges']['push'](_0x1d4ab9['model']['createRangeOn'](_0x4b3229));},{'priority':'low'}),_0x5c2099['descriptionFactory']['registerDescriptionCallback'](_0x153800=>{if(_0x153800['subType']&&_0x153800['subType']['startsWith']('tablePaste'))return _0x153800['previous']?{}:{'type':'insertion','content':o(_0x1d4ab9['locale'],'*Replace\x20table\x20cells*')};});const _0x36e0b6=()=>!0x1;for(const _0x1f89f9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5c2099['_suggestionFactory']['registerCustomCallback']('insertion',_0x1f89f9,'join',_0x36e0b6),_0x5c2099['_suggestionFactory']['registerCustomCallback']('deletion',_0x1f89f9,'join',_0x36e0b6),_0x5c2099['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f89f9,'join',_0x36e0b6);_0x5c2099['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x36e0b6),_0x5c2099['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x7e2b30,_0x180494,_0x403a5a)=>{const _0x7e8c9e=_0x7e2b30['map'](_0x548228=>_0x548228['getContainedElement']())['filter'](_0x445d43=>_0x445d43),_0x1e8702=new Map(_0x7e8c9e['map'](_0x2434f3=>[_0x2434f3,null]));if(_0x3a07f4){for(const {element:_0x2ad8a5,attributes:_0x23d15c}of _0x3a07f4['cells'])_0x23d15c&&_0x1e8702['set'](_0x2ad8a5,_0x23d15c);}else{if(_0x403a5a&&_0x403a5a['markerAttributes'])for(const [_0x4eb801,_0x122cc6]of Object['entries'](_0x403a5a['markerAttributes'])){const _0x3cb702=_0x1d4ab9['model']['markers']['get'](_0x4eb801),_0x2dc355=_0x3cb702?_0x3cb702['getRange']()['getContainedElement']():null;_0x2dc355&&_0x1e8702['set'](_0x2dc355,_0x122cc6);}}_0x1d4ab9['model']['change'](_0x476e1c=>{for(const [_0x5ecbcd,_0x10c48d]of _0x1e8702)_0x476e1c['setAttributes']({...ve,..._0x10c48d},_0x5ecbcd);});});const _0xcd95d=(_0x50be7e,_0x28ea86)=>{_0x5c2099['_suggestionFactory']['registerCustomCallback'](_0x50be7e,'tablePaste',_0x28ea86,(_0xe6d59,_0x42979b,_0x3fb101)=>{_0x1d4ab9['model']['change'](_0x124d20=>{const _0x393a0f=[];for(const _0x477293 of _0xe6d59){const _0xbabc21=_0x477293['start']['nodeAfter'];_0xbabc21['is']('element','tableCellSuggestion')&&_0x393a0f['push'](_0xbabc21);}_0x5c2099['_suggestionFactory']['getSuggestionCallback'](_0x50be7e,null,_0x28ea86)(_0xe6d59,_0x42979b,_0x3fb101);for(const _0x25cb6f of _0x393a0f)'$graveyard'!=_0x25cb6f['root']['rootName']&&_0x124d20['unwrap'](_0x25cb6f);});});};_0xcd95d('insertion','accept'),_0xcd95d('insertion','discard'),_0xcd95d('deletion','accept'),_0xcd95d('deletion','discard'),_0x5c2099['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1e7a51=>{const _0xda3fb0=_0x1e7a51['map'](_0x343deb=>_0x343deb['getContainedElement']()),_0x2d8c28=_0xda3fb0[0x0]['findAncestor']('table'),{minRow:_0x5e9d5a,maxRow:_0x4da77b}=_0x6200cf['_getCoordsForCells'](_0xda3fb0);_0xcfb1f['removeRows'](_0x2d8c28,{'at':_0x5e9d5a,'rows':_0x4da77b-_0x5e9d5a+0x1});}),_0x5c2099['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5d49ce=>{const _0x3ce70e=_0x5d49ce['map'](_0x517fab=>_0x517fab['getContainedElement']()),_0x100cbe=_0x3ce70e[0x0]['findAncestor']('table'),{minColumn:_0x40a5f0,maxColumn:_0x49cf27}=_0x6200cf['_getCoordsForCells'](_0x3ce70e);_0xcfb1f['removeColumns'](_0x100cbe,{'at':_0x40a5f0,'columns':_0x49cf27-_0x40a5f0+0x1});});const _0x468abf=(_0xd0a0d4,_0x339897)=>{if(!_0x339897['subType']||!_0x339897['subType']['startsWith']('tablePaste'))return;const _0x451d80=_0x339897['attributes']['tablePasteChainId'],_0x394c26=_0x5c2099['getSuggestions']()['filter'](_0x198c26=>_0x198c26['isInContent']&&_0x198c26['attributes']&&_0x198c26['attributes']['tablePasteChainId']==_0x451d80);_0x394c26['length']&&_0x339897['getAllAdjacentSuggestions']()['length']!=_0x394c26['length']&&_0x394c26['reduce']((_0x3d7deb,_0x594f4f)=>(_0x3d7deb['next']=_0x594f4f,_0x594f4f['previous']=_0x3d7deb,_0x594f4f));};function _0x2dc7de(_0x38fd40,_0x15ed00=!0x0){const {id:_0x445616,authorId:_0x2ffe89}=_0x5c2099['_splitMarkerName'](_0x38fd40['markerName']),_0x22a61e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1907b3=_0x5c2099['activeMarkers']['includes'](_0x38fd40['markerName']);return _0x1907b3&&_0x22a61e['push']('ck-suggestion-marker--active'),{'classes':_0x22a61e,'attributes':{'data-suggestion':_0x445616,'data-author-id':_0x2ffe89},'priority':_0x1907b3&&_0x15ed00?0xbc2:0xbb8};}_0x5c2099['on']('suggestionLoaded',_0x468abf,{'priority':'high'}),_0x5c2099['on']('suggestionUnloaded',_0x468abf,{'priority':'high'}),_0x1d4ab9['model']['document']['registerPostFixer'](()=>{let _0x21fdc5=!0x1;const _0x5f6ed8=Array['from'](_0x1d4ab9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x216b3f,data:_0x5a93cc}of _0x5f6ed8){const {group:_0x3d4de8,type:_0x40204d,id:_0x17bc73}=_0x5c2099['_splitMarkerName'](_0x216b3f);if('suggestion'!=_0x3d4de8||'deletion'!=_0x40204d||_0x5a93cc['oldRange'])continue;if(!_0x5c2099['hasSuggestion'](_0x17bc73))continue;const _0x367968=_0x5c2099['getSuggestion'](_0x17bc73)['getRanges'](),_0x51a3ad=_0x1d4ab9['plugins']['get']('Users')['me'];for(const _0x53ba32 of _0x5c2099['getSuggestions']()){if(!_0x53ba32['isInContent']||_0x53ba32['author']!=_0x51a3ad)continue;if('formatBlock'!=_0x53ba32['type']||'tablePasteCell'!=_0x53ba32['subType'])continue;if(_0x53ba32['getRanges']()['every'](_0x510c38=>_0x367968['some'](_0x3fd49a=>_0x3fd49a['containsRange'](_0x510c38,!0x0)))){for(const _0x22965f of _0x53ba32['getAllAdjacentSuggestions']())_0x22965f['isInContent']&&(_0x22965f['discard'](),_0x21fdc5=!0x0);}}}return _0x21fdc5;}),_0x1d4ab9['model']['document']['registerPostFixer'](_0x582739=>{const _0x4fa91f=_0x1d4ab9['commands']['get']('redo');if(!_0x4fa91f||!_0x4fa91f['_createdBatches']['has'](_0x582739['batch']))return!0x1;let _0x327321=!0x1;const _0x2f4cbc=_0x1d4ab9['plugins']['get']('Users')['me'],_0x40e016=_0x1d4ab9['model']['document']['differ']['getChanges'](),_0x31a4aa=Array['from'](_0x1d4ab9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x17c8a6,data:_0xe98d22})=>{const {group:_0x555882,subType:_0x364428,authorId:_0x1ac939}=_0x5c2099['_splitMarkerName'](_0x17c8a6);return'suggestion'==_0x555882&&'tablePaste'==_0x364428&&_0x1ac939==_0x2f4cbc['id']&&!_0xe98d22['oldRange'];});for(const _0x15f4e5 of _0x40e016){if('insert'!=_0x15f4e5['type']||'tableCellSuggestion'!=_0x15f4e5['name']||0x1!=_0x15f4e5['length'])continue;const _0x36943b=_0x582739['createRange'](_0x15f4e5['position'],_0x15f4e5['position']['getShiftedBy'](0x1));if(!_0x31a4aa['find'](({data:_0x1fadd0})=>_0x1fadd0['newRange']['isEqual'](_0x36943b))){for(const {name:_0x2feafa,data:_0x2c4b94}of _0x31a4aa)if(_0x36943b['containsRange'](_0x2c4b94['newRange'])){_0x582739['updateMarker'](_0x2feafa,{'range':_0x36943b}),_0x327321=!0x0;break;}}}return _0x327321;}),_0x1d4ab9['model']['document']['registerPostFixer'](_0x306cca=>{let _0x422047=!0x1;const _0x18787f=_0x1d4ab9['plugins']['get']('Users')['me'],_0x20dbe5=_0x5c2099['getSuggestions']()['filter'](_0x41b882=>_0x41b882['isInContent']&&_0x41b882['author']==_0x18787f),_0x21a407=new Set(),_0x368202=new Set();for(const _0xe75a81 of _0x20dbe5)if('tablePaste'==_0xe75a81['subType'])for(const _0x5f2a93 of _0xe75a81['getMarkers']()){const _0x14b409=_0x5f2a93['getRange']()['getContainedElement']();if(_0x14b409){if(_0x14b409['is']('element','tableCellSuggestion')&&je(_0x14b409)){_0xe75a81['removeMarker'](_0x5f2a93['name']),_0x21a407['add'](_0x14b409),_0x422047=!0x0;const _0x4e47b1=_0x14b409['nextSibling'],_0x122492=_0x14b409['previousSibling'],_0x5343a2=_0x4e47b1&&_0x4e47b1['is']('element','tableCellSuggestion'),_0x1a1610=_0x122492&&_0x122492['is']('element','tableCellSuggestion');_0x5343a2&&!_0x21a407['has'](_0x4e47b1)&&_0x368202['add'](_0x4e47b1),_0x1a1610&&!_0x21a407['has'](_0x122492)&&_0x368202['add'](_0x122492);}else _0x14b409['is']('element','paragraph')&&_0x14b409['isEmpty']&&(_0xe75a81['removeMarker'](_0x5f2a93['name']),_0x422047=!0x0);}}else{if('tablePasteCell'==_0xe75a81['subType']){if(!_0xe75a81['attributes']||!_0xe75a81['attributes']['tablePasteChainId'])continue;const _0x231c4b=_0xe75a81['attributes']['markerAttributes'];if(_0x231c4b&&Object['keys'](_0x231c4b)['length'])continue;const _0xb74b05=_0xe75a81['attributes']['tablePasteChainId'];let _0x3d425e=!0x0,_0x3f575c=!0x0;for(const _0x276ad9 of _0x20dbe5)if(_0x276ad9['subType']&&_0x276ad9['subType']['startsWith']('tablePaste')){if(!_0x276ad9['attributes']['tablePasteChainId']){_0x3f575c=!0x1;break;}if(_0x276ad9['id']!=_0xe75a81['id']&&_0x276ad9['attributes']['tablePasteChainId']==_0xb74b05){_0x3d425e=!0x1;break;}}_0x3f575c&&_0x3d425e&&(_0xe75a81['removeMarkers'](),_0x422047=!0x0);}}for(const _0x21457d of _0x21a407)_0x306cca['remove'](_0x21457d);for(const _0x5c7ecf of _0x368202)_0x306cca['unwrap'](_0x5c7ecf);return _0x422047;}),_0x1d4ab9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x274f8f=>_0x2dc7de(_0x274f8f),'converterPriority':'high'}),_0x1d4ab9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x47fb1d,_0x3b3f3c)=>_0x3b3f3c['options']['showSuggestionHighlights']?_0x2dc7de(_0x47fb1d,!0x1):null,'converterPriority':'high'});const _0xb02aeb=_0x1d4ab9['editing']['view'];this['listenTo'](_0xb02aeb['document'],'clipboardOutput',(_0xcc06d8,_0x39f09e)=>{const _0x4049b3=[];for(const _0x1aa825 of _0xb02aeb['createRangeIn'](_0x39f09e['content'])['getItems']())_0x1aa825['is']('element','suggestion-td')&&_0x4049b3['push'](_0x1aa825);_0xb02aeb['change'](_0x416889=>{for(const _0x16a510 of _0x4049b3)_0x416889['move'](_0x416889['createRangeIn'](_0x16a510),_0x416889['createPositionBefore'](_0x16a510)),_0x416889['remove'](_0x16a510);});});}}function je(_0x1b6dc7){if(_0x1b6dc7['isEmpty'])return!0x0;const _0x17924a=_0x1b6dc7['getChild'](0x0);return _0x17924a['is']('element','paragraph')&&_0x17924a['isEmpty'];}function Ae(_0xb38629,_0xa97cc9={},_0x367fb8){for(const {isAnchor:_0x565e6a,cellHeight:_0x10bbe5,cellWidth:_0x3132c4}of _0x367fb8['createTableWalker'](_0xb38629,{'includeAllSlots':!0x0,..._0xa97cc9}))if(!_0x565e6a||0x1!=_0x10bbe5||0x1!=_0x3132c4)return!0x1;return!0x0;}class Dt extends _0xa4c963{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x494cf1=this['editor']['plugins']['get']('TrackChangesEditing');_0x494cf1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x494cf1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x494cf1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x494cf1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x494cf1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x494cf1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4dafe3,_0x4579d4){const _0x79d087=this['editor']['plugins']['get']('TrackChangesEditing'),_0x323d44=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2afd57=_0x4579d4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5d182c=_0x323d44['getColumnGroupElement'](_0x2afd57);let _0xd7635c=_0x5d182c?_0x323d44['getTableColumnsWidths'](_0x5d182c):null,_0x4dae63=_0x2afd57['getAttribute']('tableWidth')||null;const _0x43100a=_0x4579d4['tableWidth']||_0x4dae63,_0x46a369=_0x4579d4['columnWidths']||_0xd7635c,_0x80f501=this['editor']['plugins']['get']('Users')['me'];for(const _0x10e780 of _0x79d087['getSuggestions']()){const _0x155112=_0x10e780['getContainedElement']();if('resizeTable'===_0x10e780['subType']&&_0x155112===_0x2afd57){_0x10e780['author']!==_0x80f501&&_0x10e780['discard']();const _0x1a9a57=_0x10e780['data']['commandParams'];_0x4dae63=_0x1a9a57[0x0]['tableWidth'],_0xd7635c=_0x1a9a57[0x0]['columnWidths'];break;}}_0x4dafe3({'table':_0x2afd57,'tableWidth':_0x43100a,'columnWidths':_0x46a369}),_0x79d087['markBlockFormat'](_0x2afd57,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4dae63,'columnWidths':_0xd7635c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3aebdd){if('formatBlock'!=_0x3aebdd['type']&&'formatInline'!=_0x3aebdd['type'])return;const {data:_0x19e530}=_0x3aebdd;if(_0x19e530&&'resizeTable'===_0x19e530['formatGroupId']){const _0x1d31d7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1d31d7)};}}}class Mt extends _0xa4c963{['afterInit'](){const _0x79e4fd=this['editor'];_0x79e4fd['plugins']['has']('Template')&&_0x79e4fd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0xa4c963{['afterInit'](){const _0x4e373c=this['editor'];if(!_0x4e373c['commands']['get']('insertTableOfContents'))return;_0x4e373c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x43fb3c=_0x4e373c['plugins']['get']('TrackChangesEditing'),_0x4cdd4d=_0x4e373c['locale'];_0x43fb3c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x53e36e=>o(_0x4cdd4d,'ELEMENT_TABLE_OF_CONTENTS',_0x53e36e));}}class Bt extends _0xa4c963{['afterInit'](){const _0x12708a=this['editor'];if(!_0x12708a['plugins']['has']('Title'))return;const _0x866b7f=_0x12708a['plugins']['get']('TrackChangesEditing');_0x866b7f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x12708a['locale'],'ELEMENT_TITLE')),_0x12708a['model']['document']['registerPostFixer'](_0x380942=>{let _0x8d77aa=!0x1;const _0x4bf2c2=Array['from'](_0x12708a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e37d0,data:_0x354953}of _0x4bf2c2){const {group:_0x57af48}=_0x866b7f['_splitMarkerName'](_0x5e37d0);if('suggestion'!==_0x57af48||!_0x354953['newRange'])continue;const _0x4b3869=_0x354953['newRange'],_0x4775a6=_0x4b3869['end']['nodeBefore'];if(!_0x4775a6||!_0x4775a6['is']('element','title-content'))continue;if(!_0x4b3869['start']['isTouching'](_0x4b3869['end']))continue;const _0x119890=_0x12708a['model']['schema']['getNearestSelectionRange'](_0x4b3869['end'],'forward');if(_0x119890&&_0x119890['isCollapsed']){const _0x4e1891=_0x380942['createRange'](_0x4b3869['start'],_0x119890['start']);_0x4e1891['isEqual'](_0x4b3869)||(_0x380942['updateMarker'](_0x5e37d0,{'range':_0x4e1891}),_0x8d77aa=!0x0);}_0x8d77aa||(_0x380942['removeMarker'](_0x5e37d0),_0x8d77aa=!0x0);}return _0x8d77aa;});}}class Ot extends _0xa4c963{['afterInit'](){const _0x1a7fc6=this['editor'],_0x35cc10=_0x1a7fc6['plugins']['get']('TrackChangesEditing');_0x1a7fc6['plugins']['has']('UndoEditing')&&(_0x35cc10['enableCommand']('undo'),_0x35cc10['enableCommand']('redo'));}}class Rt extends _0xa4c963{static get['requires'](){return[vt];}['afterInit'](){const _0x451a27=this['editor'];if(!_0x451a27['plugins']['has']('TableCaptionEditing'))return;_0x451a27['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0xa4c963{['tableProperties'];['tableCellProperties'];constructor(_0x5cd242){super(_0x5cd242),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x225ed0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4b1502 of this['tableProperties'])_0x225ed0['enableCommand'](_0x4b1502,(_0x1eb576,_0x1c62e2)=>{const _0x1f70e0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4b1502,[_0x1f70e0],this['tableProperties'],'tableProperties',_0x1eb576,_0x1c62e2);});_0x225ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x225ed0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x225ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2ca840,_0x40a3fb)=>this['handleDiscardAction'](this['tableProperties'],_0x2ca840,_0x40a3fb)),_0x225ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x10b2df of this['tableCellProperties'])_0x225ed0['enableCommand'](_0x10b2df,(_0x2b4841,_0x35ac41)=>{const _0xf0b876=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x10b2df,_0xf0b876,this['tableCellProperties'],'tableCellProperties',_0x2b4841,_0x35ac41);});_0x225ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x225ed0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x225ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x23bf3c,_0x2d19a6)=>this['handleDiscardAction'](this['tableCellProperties'],_0x23bf3c,_0x2d19a6)),_0x225ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x225ed0['descriptionFactory']['registerDescriptionCallback'](_0x3b3dc4=>this['handleSuggestionDescription'](_0x3b3dc4));}['_handlePropertyChange'](_0x4374e2,_0x3f8d6a,_0x252229,_0x5af96d,_0x2dbb17,_0x50c001){const _0x50ff2a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x50c001['batch'],()=>{for(const _0x3b5ff1 of _0x3f8d6a){if(this['_getSuggestion'](_0x3b5ff1,_0x5af96d))_0x2dbb17(_0x50c001);else{const _0x563e29={};for(const _0x46cc03 of _0x252229){const _0x409fd3=_0x3b5ff1['getAttribute'](_0x46cc03);void 0x0!==_0x409fd3&&(_0x563e29[_0x46cc03]=_0x409fd3);}_0x2dbb17(_0x50c001),_0x50ff2a['markBlockFormat'](_0x3b5ff1,{'commandParams':[_0x563e29]},[],_0x5af96d);}}});}['handleDiscardAction'](_0x321169,_0x1c2ccd,_0x46536d){const _0x4e4188=_0x1c2ccd[0x0]['start']['nodeAfter'],_0x708a25=_0x46536d['commandParams'][0x0];this['editor']['model']['change'](_0x352559=>{for(const _0x5dea78 of _0x321169)void 0x0!==_0x708a25[_0x5dea78]?_0x352559['setAttribute'](_0x5dea78,_0x708a25[_0x5dea78],_0x4e4188):_0x352559['removeAttribute'](_0x5dea78,_0x4e4188);});}['handleSuggestionDescription'](_0x5d062e){if(_0x5d062e['data'])switch(_0x5d062e['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'](_0x418248,_0x5c476e){const _0x53220d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x473a93 of _0x53220d['getSuggestions']({'skipNotAttached':!0x0})){const _0x3c4893=_0x473a93['getContainedElement']();if(_0x473a93['subType']===_0x5c476e&&_0x3c4893===_0x418248)return _0x473a93;}return null;}}const m='$elementName';class p extends _0xa4c963{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x39d8d3,_0x594e62,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1982f9){super(_0x1982f9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x151d10,_0x5445c0,_0x500842,_0x5919e0)=>{this['_model']['change'](()=>{for(const _0x17e1c3 of[..._0x5919e0,..._0x500842])this['_model']['markers']['has'](_0x17e1c3)&&_0x1982f9['editing']['reconvertMarker'](_0x17e1c3);});}),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']=_0x1982f9['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(),_0x1982f9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1982f9['config']['get']('trackChanges.trackFormatChanges'),_0x1982f9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1982f9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1982f9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2a059e=this['editor'],_0x560517=(_0x445f29,_0x30b812)=>{if('attribute'!=_0x445f29)return'ck-suggestion-marker-'+_0x445f29;const _0x5052f0=_0x30b812['split']('|')[0x0];return this['_isBlockAttribute'](_0x5052f0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2a059e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x19f46c=>{const {id:_0x1b9379,authorId:_0x2aa0c4,type:_0x2fc989,subType:_0x5583a9}=this['_splitMarkerName'](_0x19f46c['markerName']),_0x3bc2a1=['ck-suggestion-marker',_0x560517(_0x2fc989,_0x5583a9)];let _0x1771d8=0xbb8;return this['activeMarkers']['includes'](_0x19f46c['markerName'])&&(_0x3bc2a1['push']('ck-suggestion-marker--active'),_0x1771d8=0xbc2),'deletion'==_0x2fc989&&(_0x1771d8+=0x5),{'classes':_0x3bc2a1,'attributes':{'data-suggestion':_0x1b9379,'data-author-id':_0x2aa0c4},'priority':_0x1771d8};}}),_0x2a059e['conversion']['for']('dataDowncast')['add'](_0x2a7201=>{_0x2a7201['on']('addMarker:suggestion',(_0x11e4ea,_0x46e7a4,_0x28cf68)=>{if(!_0x28cf68['options']['showSuggestionHighlights'])return;const _0x5cd0d7=_0x46e7a4['item'];if(!_0x5cd0d7)return;const _0x5e9ead=_0x28cf68['mapper']['toViewElement'](_0x5cd0d7);_0x2a059e['model']['schema']['isObject'](_0x5cd0d7)&&_0x5e9ead&&!_0x5e9ead['getCustomProperty']('widget')&&_0x5e9ead['is']('containerElement')&&_0x588961(_0x5e9ead,_0x28cf68['writer']);},{'priority':'high'});}),_0x2a059e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5907a6,_0x3b8f9e)=>{if(!_0x3b8f9e['options']['showSuggestionHighlights'])return null;const {type:_0x57e1dd,subType:_0x144205}=this['_splitMarkerName'](_0x5907a6['markerName']);return{'classes':['ck-suggestion-marker',_0x560517(_0x57e1dd,_0x144205)],'priority':0xbb8};}});const _0x5109ad=({showActiveMarkers:_0x1bac21=!0x0,isAttributeSuggestion:_0x5a59d1=!0x1}={})=>(_0x4eaeba,_0x2040aa,_0x2bec5c)=>{if(!_0x2040aa['item'])return;const {id:_0x4420b7,authorId:_0x4a8938}=this['_splitMarkerName'](_0x2040aa['markerName']);if(_0x5a59d1){const _0x55aa22=this['_suggestions']['get'](_0x4420b7),_0xda4efe=this['_getAttributeKey'](_0x55aa22);if(!this['_isBlockAttribute'](_0xda4efe))return;}if(_0x2040aa['item']['is']('selection'))return void _0x2bec5c['consumable']['consume'](_0x2040aa['item'],_0x4eaeba['name']);const _0xe9dfa7=_0x2bec5c['mapper']['toViewElement'](_0x2040aa['item']);if(_0x2040aa['item']['is']('element')&&_0x2a059e['model']['schema']['isBlock'](_0x2040aa['item'])&&!_0xe9dfa7['getCustomProperty']('addHighlight')){_0x2bec5c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xe9dfa7),_0x2bec5c['writer']['setAttribute']('data-suggestion',_0x4420b7,_0xe9dfa7),_0x2bec5c['writer']['setAttribute']('data-author-id',_0x4a8938,_0xe9dfa7),_0x2bec5c['mapper']['bindElementToMarker'](_0xe9dfa7,_0x2040aa['markerName']),_0x1bac21&&(this['activeMarkers']['includes'](_0x2040aa['markerName'])?_0x2bec5c['writer']['addClass']('ck-suggestion-marker--active',_0xe9dfa7):_0x2bec5c['writer']['removeClass']('ck-suggestion-marker--active',_0xe9dfa7));for(const _0xeaddbe of _0x2a059e['model']['createRangeIn'](_0x2040aa['item'])['getItems']())_0x2bec5c['consumable']['consume'](_0xeaddbe,_0x4eaeba['name']);_0x2bec5c['consumable']['consume'](_0x2040aa['item'],_0x4eaeba['name']);}};_0x2a059e['conversion']['for']('dataDowncast')['add'](_0x1f633a=>{_0x1f633a['on']('addMarker:suggestion:formatBlock',(_0x57b695,_0xbc5d68,_0x161d33)=>{_0x161d33['options']['showSuggestionHighlights']&&_0x5109ad({'showActiveMarkers':!0x1})(_0x57b695,_0xbc5d68,_0x161d33);},{'priority':'highest'});}),_0x2a059e['conversion']['for']('dataDowncast')['add'](_0x51f57d=>{_0x51f57d['on']('addMarker:suggestion:attribute',(_0x5f28a3,_0x420a0c,_0x1b516e)=>{_0x1b516e['options']['showSuggestionHighlights']&&_0x5109ad({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5f28a3,_0x420a0c,_0x1b516e);},{'priority':'highest'});}),_0x2a059e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5cb54e,_0x30ebd7)=>_0x30ebd7['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5cb54e['substr'](0xb)}}),_0x2a059e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xb42109,{writer:_0x5be25c})=>{let _0x560828='suggestion:'+_0xb42109['getAttribute']('suggestion-type')+':'+_0xb42109['getAttribute']('id');return _0xb42109['getAttribute']('marker-count')&&(_0x560828+=':'+_0xb42109['getAttribute']('marker-count')),_0x5be25c['createElement']('$marker',{'data-name':_0x560828});}}),_0x2a059e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2a059e['conversion']['for']('editingDowncast')['add'](_0x5f03d7=>{_0x5f03d7['on']('addMarker:suggestion:formatBlock',_0x5109ad(),{'priority':'high'});}),_0x2a059e['conversion']['for']('editingDowncast')['add'](_0x653975=>{_0x653975['on']('addMarker:suggestion:attribute',_0x5109ad({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2a059e['conversion']['for']('editingDowncast')['add'](_0x3dec8f=>{_0x3dec8f['on']('removeMarker:suggestion:formatBlock',(_0x14def7,_0x288ec7,_0x35538c)=>{const _0x1988ad=_0x35538c['mapper']['markerNameToElements'](_0x288ec7['markerName']);if(_0x1988ad){for(const _0x595169 of _0x1988ad)_0x595169['getCustomProperty']('addHighlight')||(_0x35538c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x595169),_0x35538c['writer']['removeAttribute']('data-suggestion',_0x595169),_0x35538c['writer']['removeAttribute']('data-author-id',_0x595169),_0x35538c['mapper']['unbindElementFromMarkerName'](_0x595169,_0x288ec7['markerName']));}},{'priority':'high'});}),_0x2a059e['conversion']['for']('editingDowncast')['add'](_0x60573c=>{_0x60573c['on']('removeMarker:suggestion:attribute',(_0xa08678,_0x381bee,_0x183ea8)=>{const _0x4679e9=_0x183ea8['mapper']['markerNameToElements'](_0x381bee['markerName']);if(!_0x4679e9)return;const {id:_0x2eb044}=this['_splitMarkerName'](_0x381bee['markerName']),_0x298052=this['_suggestions']['get'](_0x2eb044),_0x4708cc=this['_getAttributeKey'](_0x298052);if(this['_isBlockAttribute'](_0x4708cc)){for(const _0x471076 of _0x4679e9)_0x471076['getCustomProperty']('addHighlight')||(_0x183ea8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x471076),_0x183ea8['writer']['removeAttribute']('data-suggestion',_0x471076),_0x183ea8['writer']['removeAttribute']('data-author-id',_0x471076),_0x183ea8['mapper']['unbindElementFromMarkerName'](_0x471076,_0x381bee['markerName']));}},{'priority':'high'});}),_0x2a059e['model']['document']['registerPostFixer'](_0x3574b5=>{let _0x4a2f02=!0x1;const _0x538e15=Array['from'](_0x2a059e['model']['document']['differ']['getChangedMarkers']()),_0x197104=new Set();for(const {name:_0x355c25,data:_0x46260a}of _0x538e15){const {group:_0x453869,type:_0x5a31a0,subType:_0x385e1f,id:_0x272898}=this['_splitMarkerName'](_0x355c25);if('suggestion'!==_0x453869)continue;const _0x13aeab=this['_suggestions']['get'](_0x272898);if(null!=_0x46260a['newRange']){'formatInline'==_0x5a31a0&&(_0x4a2f02=_0x4a2f02||Pt(_0x46260a['newRange'],_0x355c25,_0x3574b5,_0x2a059e['model']['schema']));const _0x5a13e9='attribute'==_0x5a31a0&&this['_isBlockAttribute'](_0x385e1f['split']('|')[0x0]);if(_0x46260a['newRange']['isCollapsed']||'$graveyard'==_0x46260a['newRange']['root']['rootName']||'formatBlock'==_0x5a31a0&&!Ft(_0x46260a['newRange'])||_0x5a13e9&&!Ft(_0x46260a['newRange'])||'deletion'==_0x5a31a0&&!(!Vt(_0x65812e=_0x46260a['newRange'])&&!function(_0x158b89){return _0x158b89['start']['parent']==_0x158b89['end']['nodeBefore']&&_0x158b89['start']['isAtEnd'];}(_0x65812e)))_0x3574b5['removeMarker'](_0x355c25),_0x4a2f02=!0x0;else{if(!_0x13aeab||!_0x13aeab['isInContent'])continue;if(_0x46260a['newRange']&&_0x46260a['oldRange']&&_0x46260a['newRange']['isEqual'](_0x46260a['oldRange']))continue;_0x197104['add'](_0x13aeab);}}}var _0x65812e;return _0x197104['size']>0x0&&(_0x4a2f02=!!this['_joinWithAdjacentSuggestions'](_0x197104)||_0x4a2f02),_0x4a2f02;}),_0x2a059e['model']['document']['registerPostFixer'](_0x3e0004=>{let _0x2d9fe1=!0x1;for(const _0x5495f1 of _0x2a059e['model']['document']['differ']['getChanges']())if('insert'==_0x5495f1['type'])for(const _0x472e26 of this['_suggestions']['values']()){if(_0x472e26['isMultiRange']||!_0x472e26['isInContent'])continue;const _0x332917='formatBlock'==_0x472e26['type'],_0x15966f=this['_getAttributeKey'](_0x472e26),_0x3b23bf=_0x15966f&&this['_isBlockAttribute'](_0x15966f);if(!_0x332917&&!_0x3b23bf)continue;const _0xf429f8=_0x472e26['getFirstRange']();if(_0xf429f8['start']['parent']!=_0xf429f8['end']['parent']&&!_0xf429f8['end']['isAtEnd']){const _0x52996a=_0x2a059e['model']['createPositionAt'](_0xf429f8['start']['nodeAfter'],'end'),_0x6f0cf=_0x2a059e['model']['createRange'](_0xf429f8['start'],_0x52996a);_0x3e0004['updateMarker'](_0x472e26['getFirstMarker'](),{'range':_0x6f0cf}),_0x2d9fe1=!0x0;}}return _0x2d9fe1;}),_0x2a059e['model']['document']['registerPostFixer'](_0x4add4b=>this['_processAttributeChanges'](_0x4add4b)),_0x2a059e['model']['document']['registerPostFixer'](_0x194050=>!_0x194050['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x194050)),_0x2a059e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2a059e['model']['document']['on']('change:data',(_0x41e3bb,_0x40d021)=>{if(!_0x40d021['isLocal']||_0x40d021['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2db434=_0x2a059e['model']['document']['differ']['getChanges']();if(0x0==_0x2db434['length'])return;const _0x15c6e9=[],_0x34b81a=_0x2db434['filter'](_0x4c865c=>'attribute'==_0x4c865c['type']),_0x47a318=_0x2db434['filter'](_0x1431e3=>'insert'==_0x1431e3['type']&&'$text'!=_0x1431e3['name']);for(const _0x337465 of _0x34b81a)this['_isRegisteredAttribute'](_0x337465['attributeKey'])&&_0x15c6e9['push']({'key':_0x337465['attributeKey'],'newValue':_0x337465['attributeNewValue'],'oldValue':_0x337465['attributeOldValue'],'range':Lt(_0x337465['range'],_0x2a059e['model'])});for(const _0x129e85 of _0x47a318){if('rename'!=_0x129e85['action']&&'refresh'!=_0x129e85['action'])continue;const _0x49db49=Jt(_0x129e85['position']['nodeAfter'],_0x2a059e['model']),_0x5487c1=_0x129e85['before'];'rename'==_0x129e85['action']&&_0x15c6e9['push']({'key':m,'newValue':_0x129e85['name'],'oldValue':_0x5487c1['name'],'range':_0x49db49});for(const [_0x5ebdd1,_0x2c6712]of _0x5487c1['attributes']){if(!this['_isRegisteredAttribute'](_0x5ebdd1))continue;const _0x231a56=_0x129e85['attributes']['get'](_0x5ebdd1);_0x2c6712!==_0x231a56&&_0x15c6e9['push']({'key':_0x5ebdd1,'newValue':_0x231a56,'oldValue':_0x2c6712,'range':_0x49db49});}for(const [_0x57be32,_0x12d3aa]of _0x129e85['attributes'])this['_isRegisteredAttribute'](_0x57be32)&&(_0x5487c1['attributes']['has'](_0x57be32)||_0x15c6e9['push']({'key':_0x57be32,'newValue':_0x12d3aa,'oldValue':null,'range':_0x49db49}));}0x0!=_0x15c6e9['length']&&_0x2a059e['model']['enqueueChange'](_0x40d021,_0x77d0dd=>{const _0x3fc29c=_0x4fc915();for(const {range:_0xd5a4,key:_0x1c8adc,oldValue:_0x569d7e,newValue:_0x599747}of _0x15c6e9)this['markAttributeChange'](_0xd5a4,_0x1c8adc,_0x569d7e,_0x599747,{'groupId':_0x3fc29c});this['_reduceExistingSuggestions'](_0x77d0dd,_0x15c6e9);});},{'priority':'lowest'}),_0x2a059e['model']['markers']['on']('update:suggestion',(_0x536ea2,_0x37a6b2,_0x2a594a)=>{if(null==_0x2a594a){const {id:_0x5d3aaa}=this['_splitMarkerName'](_0x37a6b2['name']),_0x1fae81=this['_suggestions']['get'](_0x5d3aaa);_0x1fae81&&_0x1fae81['addMarkerName'](_0x37a6b2['name']);}}),_0x2a059e['model']['document']['on']('change:data',()=>{const _0x5c1983=Array['from'](_0x2a059e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5e1c1a=>'suggestion'===this['_splitMarkerName'](_0x5e1c1a['name'])['group']);if(0x0===_0x5c1983['length'])return;_0x5c1983['sort']((_0x5025e4,_0x4ab1f6)=>{const _0x131a0d=_0x5025e4['data']['oldRange'],_0x224ecc=_0x4ab1f6['data']['oldRange'];return null===_0x131a0d&&null===_0x224ecc?0x0:null===_0x131a0d&&null!==_0x224ecc?-0x1:null!==_0x131a0d&&null===_0x224ecc?0x1:_0x131a0d['start']['isBefore'](_0x224ecc['start'])?-0x1:0x1;});const _0x4d298f=new Set(),_0x316126=new Set();for(const {name:_0x4c855c,data:_0x39a33c}of _0x5c1983){const {id:_0x576063}=this['_splitMarkerName'](_0x4c855c);if(null===_0x39a33c['oldRange']){const _0x1906f4=this['_handleNewSuggestionMarker'](_0x4c855c);_0x316126['add'](_0x1906f4);}else{const _0x10f610=this['_suggestions']['get'](_0x576063);null!==_0x39a33c['newRange']||_0x10f610['isInContent']?(_0x4d298f['add'](_0x10f610['head']),_0x316126['add'](_0x10f610)):this['_removeSuggestion'](_0x10f610);}}_0x316126['size']>0x0&&this['_refreshSuggestionsChain'](_0x316126);for(const _0x572372 of _0x4d298f)this['fire']('suggestionChanged',_0x572372);}),_0x2a059e['model']['on']('applyOperation',(_0x2da669,_0x5d3b3c)=>{const _0x154657=_0x5d3b3c[0x0];if(!this['_suggestions']['size'])return;if(!_0x154657['isDocumentOperation'])return;if(_0x154657['batch']['isUndo']||!_0x154657['batch']['isLocal'])return;let _0x562311,_0x559aed;switch(_0x154657['type']){case'insert':_0x562311=_0x2a059e['model']['createPositionAt'](_0x154657['position']),_0x559aed=_0x562311['getShiftedBy'](_0x154657['howMany']);break;case'split':_0x562311=_0x2a059e['model']['createPositionAt'](_0x154657['splitPosition']),_0x559aed=_0x2a059e['model']['createPositionAt'](_0x154657['moveTargetPosition']);break;case'move':_0x562311=_0x2a059e['model']['createPositionAt'](_0x154657['targetPosition']),_0x559aed=_0x562311['getShiftedBy'](_0x154657['howMany']);break;default:return;}const _0x319612=_0x2a059e['model']['createRange'](_0x562311,_0x559aed);_0x2a059e['model']['change'](()=>{for(const {suggestion:_0x15a1cd,meta:_0xba0f1f}of this['_findSuggestions'](_0x319612)){if(_0x15a1cd['isMultiRange'])continue;if('formatInline'==_0x15a1cd['type'])continue;const _0x1a49ad=this['_getAttributeKey'](_0x15a1cd);if(_0x1a49ad&&this['_isBlockAttribute'](_0x1a49ad)&&'split'!=_0x154657['type'])continue;const _0x4067de=_0x15a1cd['data']&&_0x15a1cd['data']['multipleBlocks'];('formatBlock'!=_0x15a1cd['type']||'split'==_0x154657['type']&&!_0x4067de)&&(_0xba0f1f['containsRangeInObject']||'insertion'==_0x15a1cd['type']&&_0xba0f1f['isOwn']||_0x15a1cd['getFirstRange']()['containsRange'](_0x319612)&&this['_breakSuggestionMarker'](_0x15a1cd,_0x562311,_0x559aed));}});},{'priority':'lowest'}),_0x2a059e['model']['on']('deleteContent',(_0xea44d8,_0x372b5f)=>{const _0x120e7f=_0x372b5f[0x0],_0x3c9654=_0x372b5f[0x1];if(_0x3c9654&&_0x3c9654['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x120e7f['isCollapsed'])return;const _0x276e83=_0x2a059e['model']['schema'],{start:_0x44ad49,end:_0x596e1e}=_0x120e7f['getFirstRange'](),_0x42ba06=_0x44ad49['nodeAfter']&&_0x276e83['isLimit'](_0x44ad49['nodeAfter'])?null:_0x276e83['getNearestSelectionRange'](_0x44ad49,'forward'),_0x219086=_0x596e1e['nodeBefore']&&_0x276e83['isLimit'](_0x596e1e['nodeBefore'])?null:_0x276e83['getNearestSelectionRange'](_0x596e1e,'backward'),_0x41098c=_0x2a059e['model']['createRange'](_0x42ba06?_0x42ba06['start']:_0x44ad49,_0x219086?_0x219086['end']:_0x596e1e);_0x2a059e['model']['change'](_0x1491ac=>{this['markDeletion'](_0x41098c);const _0x394bb6=_0x2a059e['model']['schema']['getNearestSelectionRange'](_0x41098c['start']);_0x120e7f['is']('documentSelection')?_0x1491ac['setSelection'](_0x394bb6):_0x120e7f['setTo'](_0x394bb6);}),_0xea44d8['stop']();},{'priority':_0x19128a['normal']+0xa}),_0x2a059e['model']['on']('insertContent',(_0x4d8e17,_0x4a7ea0)=>{const _0x12c081=_0x4a7ea0[_0x4a7ea0['length']-0x1];_0x12c081&&_0x12c081['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2a059e['model']['change'](()=>{let _0xbc185=_0x2a059e['model']['insertContent'](_0x4a7ea0[0x0],_0x4a7ea0[0x1],_0x4a7ea0[0x2],{'forceDefaultExecution':!0x0});if(!_0xbc185)return;_0x4d8e17['return']=_0xbc185['clone']();const _0x5472aa=_0xbc185['end']['nodeBefore'],_0x24f379=_0x2a059e['model']['schema'];_0x5472aa&&_0x24f379['isBlock'](_0x5472aa)&&!_0x24f379['isObject'](_0x5472aa)&&(_0xbc185=_0x2a059e['model']['createRange'](_0xbc185['start'],_0x2a059e['model']['createPositionAt'](_0x5472aa,'end'))),this['markInsertion'](_0xbc185);}),_0x4d8e17['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x227a1a=new O(_0x2a059e,this['_suggestions']);_0x2a059e['commands']['add']('acceptSuggestion',_0x227a1a),this['enableCommand']('acceptSuggestion');const _0x2d400f=new R(_0x2a059e,this['_suggestions']);_0x2a059e['commands']['add']('discardSuggestion',_0x2d400f),this['enableCommand']('discardSuggestion'),_0x2a059e['commands']['add']('acceptAllSuggestions',new x(_0x2a059e,_0x227a1a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2a059e['commands']['add']('discardAllSuggestions',new x(_0x2a059e,_0x2d400f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2a059e['commands']['add']('acceptSelectedSuggestions',new E(_0x2a059e,_0x227a1a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2a059e['commands']['add']('discardSelectedSuggestions',new E(_0x2a059e,_0x2d400f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x435efa=_0x2a059e['plugins']['get']('CommentsRepository');this['listenTo'](_0x435efa,'addComment',(_0x30baf6,{threadId:_0x3423b1})=>{const _0x2d993b=this['_suggestions']['get'](_0x3423b1);_0x2d993b&&_0x2d993b['commentThread']&&0x1===_0x2d993b['commentThread']['length']&&this['_updateSuggestionData'](_0x3423b1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x435efa,'removeComment',(_0x4f9670,{threadId:_0x5eed3c})=>{const _0x3cbc55=this['_suggestions']['get'](_0x5eed3c);_0x3cbc55&&_0x3cbc55['commentThread']&&!_0x3cbc55['commentThread']['length']&&this['_updateSuggestionData'](_0x5eed3c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x259eaa){const _0x3a925b=_0x237e57([0x71,0x56,0x68,0x45,0x38,0x55,0x35,0x30,0x39,0x79,0x41,0x62,0x48,0x69,0x57,0x32,0x6c,0x67,0x53,0x4a,0x50,0x43,0x44,0x66,0x4f,0x6a,0x73,0x70,0x76,0x65,0x6e,0x6f,0x64,0x6d,0x78,0x52,0x58,0x74,0x37,0x47,0x54,0x31,0x63,0x61,0x49,0x46,0x77,0x51,0x42,0x4e,0x34,0x4b,0x4c,0x6b,0x33,0x59,0x36,0x75,0x72,0x5a,0x7a,0x4d]),_0x17916f=0x498d5e33,_0x572bba=0x498a07a3^_0x17916f,_0x2b6bf6=window[_0x237e57([0x44,0x61,0x74,0x65])][_0x237e57([0x6e,0x6f,0x77])](),_0xb2983e=_0x259eaa[_0x237e57([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x35cb08=new window[(_0x237e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329ae2=>{_0xb2983e[_0x237e57([0x6f,0x6e,0x63,0x65])](_0x237e57([0x72,0x65,0x61,0x64,0x79]),_0x329ae2);}),_0x9cd183={[_0x237e57([0x6b,0x74,0x79])]:_0x237e57([0x45,0x43]),[_0x237e57([0x75,0x73,0x65])]:_0x237e57([0x73,0x69,0x67]),[_0x237e57([0x63,0x72,0x76])]:_0x237e57([0x50,0x2d,0x32,0x35,0x36]),[_0x237e57([0x78])]:_0x237e57([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x237e57([0x79])]:_0x237e57([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x237e57([0x61,0x6c,0x67])]:_0x237e57([0x45,0x53,0x32,0x35,0x36])},_0x6de9f5=_0xb2983e[_0x237e57([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x237e57([0x67,0x65,0x74])](_0x237e57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x157001(){let _0x489ac6,_0x4d4fe6=null,_0x48f2dd=null;try{if(_0x6de9f5==_0x237e57([0x47,0x50,0x4c]))return _0x237e57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x489ac6=_0x3c11f7(),!_0x489ac6)return _0x237e57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x489ac6[_0x237e57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x48f2dd=_0x48d29c(_0x489ac6[_0x237e57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x489ac6[_0x237e57([0x6a,0x74,0x69])])),await _0x2ef7e4()?_0x2d0117()?_0x19962a()?_0x237e57([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x123e53()?(_0x489ac6[_0x237e57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x237e57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d4fe6=_0x257877(_0x237e57([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x489ac6[_0x237e57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x237e57([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d4fe6=_0x257877(_0x237e57([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x489ac6[_0x237e57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x237e57([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4d4fe6=_0x257877(_0x237e57([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3bfc0e()):_0x237e57([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x237e57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x237e57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x492708){return _0x237e57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x19962a(){const _0x4ae01b=[_0x237e57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x237e57([0x74,0x72,0x69,0x61,0x6c])][_0x237e57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489ac6[_0x237e57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2b6bf6/0x3e8:0xe10*_0x572bba;return _0x489ac6[_0x237e57([0x65,0x78,0x70])]<_0x4ae01b;}function _0x2d0117(){const _0x229072=_0x489ac6[_0x237e57([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x229072)return!0x1;if(_0x229072[_0x237e57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x237e57([0x2a])))return!0x0;if(_0x229072[_0x237e57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x237e57([0x54,0x43])))return!0x0;if(_0x229072[_0x237e57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x237e57([0x52,0x54,0x43]))){if(_0x295b07())return!0x0;if(_0xa2dc71()||_0x4c70cf())return!0x0;}return!0x1;}function _0x123e53(){const _0x50b6bc=_0x489ac6[_0x237e57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x50b6bc||0x0==_0x50b6bc[_0x237e57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x184c2d}=new URL(window[_0x237e57([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x50b6bc[_0x237e57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x184c2d))return!0x0;const _0x28bfb1=_0x184c2d[_0x237e57([0x73,0x70,0x6c,0x69,0x74])](_0x237e57([0x2e]));return _0x50b6bc[_0x237e57([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35d4eb=>_0x35d4eb[_0x237e57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x237e57([0x2a])))[_0x237e57([0x6d,0x61,0x70])](_0xc20c59=>_0xc20c59[_0x237e57([0x73,0x70,0x6c,0x69,0x74])](_0x237e57([0x2e])))[_0x237e57([0x73,0x6f,0x6d,0x65])](_0x307ffd=>_0x28bfb1[_0x237e57([0x65,0x76,0x65,0x72,0x79])]((_0x5be2c5,_0x1406d4)=>_0x307ffd[_0x1406d4]===_0x5be2c5||_0x307ffd[_0x1406d4]===_0x237e57([0x2a])));}function _0x3bfc0e(){return _0x4d4fe6&&_0x48f2dd?new window[(_0x237e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f8717,_0x13a005)=>{_0x4d4fe6[_0x237e57([0x74,0x68,0x65,0x6e])](_0x1f8717,_0x13a005),_0x48f2dd[_0x237e57([0x74,0x68,0x65,0x6e])](_0x5c5716=>{_0x5c5716!=_0x237e57([0x56,0x61,0x6c,0x69,0x64])&&_0x1f8717(_0x5c5716);},_0x13a005);}):_0x4d4fe6||_0x48f2dd||_0x237e57([0x56,0x61,0x6c,0x69,0x64]);}}function _0x48d29c(_0x3173dc,_0x1eb4b1){return new window[(_0x237e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32bd66=>{if(_0x438536())return _0x32bd66(_0x237e57([0x56,0x61,0x6c,0x69,0x64]));_0xf62d97(),_0xb2983e[_0x237e57([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x237e57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56d136=!0x1;const _0x2bad9f=_0x4fc915();function _0xfd7871(_0x4f4b3e){return!!_0x4f4b3e&&(typeof _0x4f4b3e===_0x237e57([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f4b3e===_0x237e57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f4b3e[_0x237e57([0x74,0x68,0x65,0x6e])]===_0x237e57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f4b3e[_0x237e57([0x63,0x61,0x74,0x63,0x68])]===_0x237e57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5da3ff(_0x453d08){_0x3a3532(_0x453d08)[_0x237e57([0x74,0x68,0x65,0x6e])](_0x36057b=>{if(!_0x36057b||_0x36057b[_0x237e57([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x237e57([0x6f,0x6b]))return _0x237e57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x425a58(_0x1e5662(_0x2bad9f+_0x1eb4b1))!=_0x36057b[_0x237e57([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x237e57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x237e57([0x56,0x61,0x6c,0x69,0x64]);})[_0x237e57([0x74,0x68,0x65,0x6e])](_0x253ef0=>(_0x540969(),_0x253ef0),()=>{const _0x68c14d=_0x6da73b();return null==_0x68c14d?(_0x540969(),_0x237e57([0x56,0x61,0x6c,0x69,0x64])):_0x237e57(_0x2b6bf6-_0x68c14d>(0x6d81da33^_0x17916f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x237e57([0x74,0x68,0x65,0x6e])](_0x32bd66)[_0x237e57([0x63,0x61,0x74,0x63,0x68])](()=>{_0x32bd66(_0x237e57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3cb1eb=0x49bbb0b3^_0x17916f;function _0x540969(){const _0x20e425=_0x237e57([0x6c,0x6c,0x63,0x74,0x2d])+_0x425a58(_0x1e5662(_0x3173dc)),_0x1cc73d=_0x491e37(_0x425a58(window[_0x237e57([0x4d,0x61,0x74,0x68])][_0x237e57([0x63,0x65,0x69,0x6c])](_0x2b6bf6/_0x3cb1eb)));window[_0x237e57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x237e57([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20e425,_0x1cc73d);}function _0x6da73b(){const _0x3d6b55=_0x237e57([0x6c,0x6c,0x63,0x74,0x2d])+_0x425a58(_0x1e5662(_0x3173dc)),_0x46213b=window[_0x237e57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x237e57([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d6b55);return _0x46213b?window[_0x237e57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x491e37(_0x46213b),0x10)*_0x3cb1eb:null;}function _0x3a3532(_0x1564bd){return new window[(_0x237e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f37f5,_0x574932)=>{_0x1564bd[_0x237e57([0x74,0x68,0x65,0x6e])](_0x4f37f5,_0x574932),window[_0x237e57([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x574932,0x498c8af3^_0x17916f);});}}_0xb2983e[_0x237e57([0x6f,0x6e])](_0x237e57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x24ba4c,_0x4ad923)=>{if(_0x4ad923[0x0]!=_0x3173dc)return _0x32bd66(_0x237e57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ad923[0x1]={..._0x4ad923[0x1],[_0x237e57([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2bad9f};},{[_0x237e57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x237e57([0x68,0x69,0x67,0x68])}),_0xb2983e[_0x237e57([0x6f,0x6e])](_0x237e57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c9deb=>{_0xfd7871(_0x2c9deb[_0x237e57([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56d136=!0x0,_0x5da3ff(_0x2c9deb[_0x237e57([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x237e57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x237e57([0x6c,0x6f,0x77])}),_0x35cb08[_0x237e57([0x74,0x68,0x65,0x6e])](()=>{_0x56d136||_0x32bd66(_0x237e57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x438536(){return _0xb2983e[_0x237e57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x237e57([0x76,0x69,0x65,0x77])][_0x237e57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x237e57([0x61,0x75,0x74,0x6f]);}function _0xf62d97(){_0xb2983e[_0x237e57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x237e57([0x76,0x69,0x65,0x77])][_0x237e57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x237e57([0x61,0x75,0x74,0x6f]);}}function _0x257877(_0x9876ae){const _0x23cde2=[new window[(_0x237e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x582839=>setTimeout(_0x582839,0x498460ff^_0x17916f)),_0x35cb08[_0x237e57([0x74,0x68,0x65,0x6e])](()=>new window[(_0x237e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3570e7=>{let _0x3cfcec=0x0;_0xb2983e[_0x237e57([0x6d,0x6f,0x64,0x65,0x6c])][_0x237e57([0x6f,0x6e])](_0x237e57([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4dd8ea,_0x1bb9f0)=>{_0x1bb9f0[0x0][_0x237e57([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3cfcec++,_0x3cfcec==(0x498d5fcb^_0x17916f)&&(_0x3570e7(),_0x4dd8ea[_0x237e57([0x6f,0x66,0x66])]());});}))];return window[_0x237e57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x237e57([0x72,0x61,0x63,0x65])](_0x23cde2)[_0x237e57([0x74,0x68,0x65,0x6e])](()=>_0x9876ae);}async function _0x264fe2(){await _0x35cb08,_0xb2983e[_0x237e57([0x6d,0x6f,0x64,0x65,0x6c])][_0x237e57([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x14b60b,_0xb2983e[_0x237e57([0x6d,0x6f,0x64,0x65,0x6c])][_0x237e57([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x14b60b,_0xb2983e[_0x237e57([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x237e57([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x295b07(){return _0x5aa4fe(_0x237e57([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x46fbe7(_0x237e57([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x237e57([0x73,0x74,0x61,0x74,0x65])]==_0x237e57([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xa2dc71(){return _0x5aa4fe(_0x237e57([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x4c70cf(){return _0x5aa4fe(_0x237e57([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3ca5b7(_0x531f42){const _0x95b2d2=_0x3fb13b();_0xb2983e[_0x95b2d2]=_0x237e57([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x531f42,_0x531f42!=_0x237e57([0x56,0x61,0x6c,0x69,0x64])&&_0x264fe2();}function _0x3fb13b(){const _0x16b14b=window[_0x237e57([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x237e57([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x237e57([0x6e,0x6f,0x77])]())[_0x237e57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x237e57([0x2e]),'');let _0xac1ec1=_0x237e57([0x71]);for(let _0x56da9b=0x0;_0x56da9b<_0x16b14b[_0x237e57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56da9b+=0x2){let _0xd4029c=window[_0x237e57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16b14b[_0x237e57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56da9b,_0x56da9b+0x2));_0xd4029c>=_0x3a925b[_0x237e57([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xd4029c-=_0x3a925b[_0x237e57([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xac1ec1+=_0x3a925b[_0xd4029c];}return _0xac1ec1;}function _0x3c11f7(){const _0x93a8d1=_0x6de9f5[_0x237e57([0x73,0x70,0x6c,0x69,0x74])](_0x237e57([0x2e]));if(0x3!=_0x93a8d1[_0x237e57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37bf8e(_0x93a8d1[0x1]);function _0x37bf8e(_0xbebfb3){const _0xaebda8=_0x57ac58(_0xbebfb3);return _0xaebda8&&_0x5d3d7d()?_0xaebda8:null;function _0x5d3d7d(){const _0x3750db=_0xaebda8[_0x237e57([0x6a,0x74,0x69])],_0x1993d0=window[_0x237e57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3750db[_0x237e57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3750db[_0x237e57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x32ce7b={..._0xaebda8,[_0x237e57([0x6a,0x74,0x69])]:_0x3750db[_0x237e57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3750db[_0x237e57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x32ce7b[_0x237e57([0x76,0x63])],_0x1e5662(_0x32ce7b)==_0x1993d0;}}}async function _0x2ef7e4(){let _0x1b4045=!0x0;try{const _0x262e41=_0x6de9f5[_0x237e57([0x73,0x70,0x6c,0x69,0x74])](_0x237e57([0x2e])),[_0x30c34e,_0x4853a0,_0x28a435]=_0x262e41;return _0x4bd458(_0x30c34e),await _0x4e3f16(_0x30c34e,_0x4853a0,_0x28a435),_0x1b4045;}catch(_0x5bb392){return!0x1;}function _0x4bd458(_0x4a711d){const _0xc39a36=_0x57ac58(_0x4a711d);_0xc39a36&&_0xc39a36[_0x237e57([0x61,0x6c,0x67])]==_0x237e57([0x45,0x53,0x32,0x35,0x36])||(_0x1b4045=!0x1);}async function _0x4e3f16(_0x44414b,_0xd1ddc3,_0x4e9afa){const _0x2d731a=window[_0x237e57([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x237e57([0x66,0x72,0x6f,0x6d])](_0x705a43(_0x4e9afa),_0x52ba83=>_0x52ba83[_0x237e57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x25307f=new window[(_0x237e57([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x237e57([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x44414b+_0x237e57([0x2e])+_0xd1ddc3),_0x2f837f=window[_0x237e57([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x237e57([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f837f)return;const _0x29009f=await _0x2f837f[_0x237e57([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x237e57([0x6a,0x77,0x6b]),_0x9cd183,{[_0x237e57([0x6e,0x61,0x6d,0x65])]:_0x237e57([0x45,0x43,0x44,0x53,0x41]),[_0x237e57([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x237e57([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x237e57([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f837f[_0x237e57([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x237e57([0x6e,0x61,0x6d,0x65])]:_0x237e57([0x45,0x43,0x44,0x53,0x41]),[_0x237e57([0x68,0x61,0x73,0x68])]:{[_0x237e57([0x6e,0x61,0x6d,0x65])]:_0x237e57([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29009f,_0x2d731a,_0x25307f)||(_0x1b4045=!0x1);}}function _0x57ac58(_0x1cb161){return _0x1cb161[_0x237e57([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x237e57([0x65,0x79]))?JSON[_0x237e57([0x70,0x61,0x72,0x73,0x65])](_0x705a43(_0x1cb161)):null;}function _0x705a43(_0x41a1a3){return window[_0x237e57([0x61,0x74,0x6f,0x62])](_0x41a1a3[_0x237e57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x237e57([0x2b]))[_0x237e57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x237e57([0x2f])));}function _0x1e5662(_0x15a6af){let _0x3f3fc2=0x1505;function _0x54936c(_0x31eb76){for(let _0x42701b=0x0;_0x42701b<_0x31eb76[_0x237e57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42701b++){const _0x57af62=_0x31eb76[_0x237e57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42701b);_0x3f3fc2=(_0x3f3fc2<<0x5)+_0x3f3fc2+_0x57af62,_0x3f3fc2&=_0x3f3fc2;}}function _0x2e7232(_0x5fcdad){Array[_0x237e57([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5fcdad)?_0x5fcdad[_0x237e57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e7232):_0x5fcdad&&typeof _0x5fcdad==_0x237e57([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x237e57([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5fcdad)[_0x237e57([0x73,0x6f,0x72,0x74])]()[_0x237e57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x536824,_0x45be20])=>{_0x54936c(_0x536824),_0x2e7232(_0x45be20);}):_0x54936c(window[_0x237e57([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5fcdad));}return _0x2e7232(_0x15a6af),_0x3f3fc2>>>0x0;}function _0x425a58(_0x1db75d){return _0x1db75d[_0x237e57([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x237e57([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x237e57([0x30]));}function _0x491e37(_0x46bdc2){return _0x46bdc2[_0x237e57([0x73,0x70,0x6c,0x69,0x74])]('')[_0x237e57([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x237e57([0x6a,0x6f,0x69,0x6e])]('');}function _0x5aa4fe(_0x168646){return _0xb2983e[_0x237e57([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x237e57([0x68,0x61,0x73])](_0x168646);}function _0x46fbe7(_0x1db0d7){return _0xb2983e[_0x237e57([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x237e57([0x67,0x65,0x74])](_0x1db0d7);}function _0x14b60b(){}function _0x237e57(_0x3ae79a){return _0x3ae79a['map'](_0x3e86d0=>String['fromCharCode'](_0x3e86d0))['join']('');}_0x3ca5b7(await _0x157001());}(this);}set['adapter'](_0x1fac9e){if(this['_adapter'])throw new _0x541450('track-changes-adapter-already-set',this);this['_adapter']=_0x1fac9e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x42d752=!0x1,toJSON:_0x5e0417=!0x1}={}){const _0x2dd0d2=[];for(const _0x5c1362 of this['_suggestions']['values']())_0x42d752&&!_0x5c1362['isInContent']||_0x2dd0d2['push'](_0x5c1362);return _0x5e0417?_0x2dd0d2['map'](_0x3c9bdf=>_0x3c9bdf['toJSON']()):_0x2dd0d2;}['getSuggestion'](_0x3cfead){const _0x5e9af9=this['_suggestions']['get'](_0x3cfead);if(!_0x5e9af9)throw new _0x541450('track-changes-suggestion-not-found',this);return _0x5e9af9;}['hasSuggestion'](_0x1ee00b){return this['_suggestions']['has'](_0x1ee00b);}['addSuggestionData'](_0x894d32){const {authorId:_0x51f72b,id:_0x1d0643,attributes:_0x24a36e}=_0x894d32,[_0x264e4d,_0xdd81ad]=_0x894d32['type']['split'](':'),_0xf473ab=this['_suggestions']['get'](_0x1d0643)||this['_createSuggestion'](_0x264e4d,_0xdd81ad,_0x1d0643,_0x51f72b,_0x24a36e);if(this['_addThreadToSuggestion'](_0xf473ab),this['_checkSuggestionCorrectness'](_0xf473ab,_0x264e4d,_0xdd81ad||null,_0x51f72b),_0xf473ab['createdAt']=_0x894d32['createdAt'],_0xf473ab['_isDataLoaded']=!0x0,_0x24a36e&&_0x24a36e['@external']){const _0x267d2d=_0x24a36e['@external'],_0x3bf865=this['_getExternalAuthor'](_0x267d2d['authorName']);_0xf473ab['authoredAt']=_0x267d2d['createdAt'],_0xf473ab['author']=_0x3bf865,_0xf473ab['isExternal']=!0x0;}else _0xf473ab['authoredAt']=_0x894d32['createdAt'];switch(_0x894d32['data']&&(_0xf473ab['data']=_0x894d32['data']),_0x894d32['attributes']&&(_0xf473ab['attributes']=_0x894d32['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xf473ab['_saved']=!0x0),this['_suggestionState']['get'](_0xf473ab)){case'notReady':this['_suggestionState']['set'](_0xf473ab,'dataReady');break;case'markerReady':_0xf473ab['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xf473ab])),this['_refreshSuggestionsChain'](new Set([_0xf473ab])),this['_suggestionState']['set'](_0xf473ab,'ready'),this['fire']('suggestionLoaded',_0xf473ab)):this['_suggestionState']['set'](_0xf473ab,'removed');}return _0xf473ab;}['acceptSuggestion'](_0x4ee476){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x42fe92 of _0x4ee476['getAllAdjacentSuggestions']())_0x42fe92['accept']();});});}['discardSuggestion'](_0x38a1f8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x349b6a of _0x38a1f8['getAllAdjacentSuggestions']())_0x349b6a['discard']();});});}['enableCommand'](_0x5876cd,_0x3987e9){const _0x447ed5=this['editor']['commands']['get'](_0x5876cd);if(!_0x447ed5)throw new _0x541450('track-changes-command-not-found',this,{'commandName':_0x5876cd});if(this['_enabledCommands']['has'](_0x447ed5))throw new _0x541450('track-changes-enable-command-twice',this,{'commandName':_0x5876cd});this['_enabledCommands']['add'](_0x447ed5),_0x3987e9&&_0x447ed5['on']('execute',(_0x34754a,_0x14bab3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x14bab3['length']>0x0&&_0x14bab3[_0x14bab3['length']-0x1]&&_0x14bab3[_0x14bab3['length']-0x1]['forceDefaultExecution']?_0x14bab3['pop']():(_0x34754a['return']=_0x3987e9((..._0xcdeb60)=>_0x447ed5['execute'](..._0xcdeb60,{'forceDefaultExecution':!0x0}),..._0x14bab3),_0x34754a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x10a371){let _0x2f7545,_0xeae9d;const _0x524879=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2f7545=_0x10a371();}catch(_0x2f2d29){_0xeae9d=_0x2f2d29;}return _0x524879||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xeae9d&&_0x541450['rethrowUnexpectedError'](_0xeae9d,this),_0x2f7545;}['markInsertion'](_0x19f6b1,_0x12f022=null,_0x126c75={}){if(_0x19f6b1['isCollapsed'])return null;const _0x4c55c3=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x49f1e8,meta:_0x3b84db}of this['_findSuggestions'](_0x19f6b1,'insertion'))if(_0x3b84db['isOwn']){if(!_0x3b84db['isNextTo']){if(_0x3b84db['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x49f1e8,_0x126c75))continue;return _0x49f1e8;}if(zt(_0x49f1e8,_0x126c75))return _0x49f1e8;this['_breakSuggestionMarker'](_0x49f1e8,_0x19f6b1['start'],_0x19f6b1['end']);break;}if(_0x12f022==_0x49f1e8['subType']&&zt(_0x49f1e8,_0x126c75)){const _0x4e4be4=_0x49f1e8['getFirstRange']();return _0x4e4be4['start']['isEqual'](_0x19f6b1['end'])?this['_setSuggestionRange'](_0x49f1e8,this['_model']['createRange'](_0x19f6b1['start'],_0x4e4be4['end'])):this['_setSuggestionRange'](_0x49f1e8,this['_model']['createRange'](_0x4e4be4['start'],_0x19f6b1['end'])),_0x49f1e8;}}const _0x10d2cf=_0x4fc915(),_0x474029=_0x4c55c3['id'],_0x5afded=_0x12f022?'insertion:'+_0x12f022:'insertion',_0x3b17c6=this['_setSuggestionData']({'id':_0x10d2cf,'type':_0x5afded,'createdAt':new Date(),'authorId':_0x474029,'attributes':_0x126c75});return this['_addSuggestionMarker'](_0x5afded,_0x10d2cf,_0x474029,_0x19f6b1),_0x3b17c6;}['markMultiRangeInsertion'](_0x306fec,_0x540bd8='multi',_0x1607b7={}){const _0x5692e8=this['editor']['plugins']['get']('Users')['me'],_0x341eb2=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x540bd8,'join');for(const _0x5b8482 of this['getSuggestions']())if(_0x5b8482['author']['id']==_0x5692e8['id']&&'insertion'==_0x5b8482['type']&&_0x5b8482['subType']==_0x540bd8&&zt(_0x5b8482,_0x1607b7)&&(_0x341eb2(_0x5b8482['getRanges'](),_0x306fec)||_0x341eb2(_0x306fec,_0x5b8482['getRanges']()))){for(const _0x3e24d0 of _0x306fec)_0x5b8482['addRange'](_0x3e24d0);return _0x5b8482;}for(const {suggestion:_0x527641,meta:_0x2a8214}of this['_findSuggestions'](_0x306fec,'insertion')){if(!_0x2a8214['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2a8214['containsRangeInObject'])continue;if(!zt(_0x527641,_0x1607b7))continue;let _0x3d57b0=!0x0;for(const _0x1e45d2 of _0x527641['getRanges']())for(const _0x3cac4a of _0x306fec)if(!_0x1e45d2['containsRange'](_0x3cac4a)){_0x3d57b0=!0x1;break;}if(_0x3d57b0)return _0x527641;}const _0x4dd8e3=_0x4fc915(),_0x282abb=_0x5692e8['id'],_0x541bf1='insertion:'+_0x540bd8,_0x170a7d=this['_setSuggestionData']({'id':_0x4dd8e3,'type':_0x541bf1,'createdAt':new Date(),'authorId':_0x282abb,'attributes':_0x1607b7});for(const _0x5e125d of _0x306fec)this['_addSuggestionMarker'](_0x541bf1,_0x4dd8e3,_0x282abb,_0x5e125d,u['getMultiRangeId']());return _0x170a7d;}['markInlineFormat'](_0xce8aa4,_0x154eaf,_0x29ed68=null,_0x79895c={}){if(_0x29ed68=_0x29ed68||Gt(_0x154eaf),_0xce8aa4['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1ae8d6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29ed68,'accept');return this['forceDefaultExecution'](()=>_0x1ae8d6([_0xce8aa4],_0x154eaf,_0x79895c)),null;}const _0x491633=this['editor']['plugins']['get']('Users')['me'],_0x5464e7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3ba3ae,meta:_0x3d5d40}of this['_findSuggestions'](_0xce8aa4,'insertion'))_0x3d5d40['isOwn']&&!_0x3d5d40['isInsideObject']&&_0x5464e7['push'](..._0x3ba3ae['getRanges']());}const _0x394dbd=function(_0x22ee1c,_0x5ebfd4){const _0x3fff60=[];for(const _0xa0b08a of _0x5ebfd4){const _0x1fdd11=_0x22ee1c['getIntersection'](_0xa0b08a);_0x1fdd11&&_0x3fff60['push'](_0x1fdd11);}return _0x3fff60;}(_0xce8aa4,_0x5464e7),_0x534124=function(_0x1e2685,_0x3c85b5){const _0x11fac8=[_0x1e2685];for(const _0x4a712d of _0x3c85b5){let _0x47d440=0x0;for(;_0x47d440<_0x11fac8['length'];){const _0x14fa20=_0x11fac8[_0x47d440]['getDifference'](_0x4a712d);_0x11fac8['splice'](_0x47d440,0x1,..._0x14fa20),_0x47d440+=_0x14fa20['length'];}}return _0x11fac8;}(_0xce8aa4,_0x5464e7);_0x394dbd['length']&&this['_model']['change'](()=>{for(const _0x513c31 of _0x394dbd){const _0x1fd9e8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29ed68,'accept');this['forceDefaultExecution'](()=>_0x1fd9e8([_0x513c31],_0x154eaf,_0x79895c));}});for(const _0x28089e of _0x534124){let _0xb52a96=null,_0x31d717=_0x28089e['start'],_0x2cf561=_0x28089e['end'];for(const {suggestion:_0x48cc61,meta:_0x111721}of this['_findSuggestions'](_0x28089e,'formatInline')){if(!_0x111721['isOwn'])continue;if(_0x48cc61['subType']!=_0x29ed68)continue;if(!zt(_0x48cc61,_0x79895c))continue;const _0x45beac=_0x48cc61['getFirstRange']();if(_0x45beac['containsRange'](_0x28089e,!0x0))return null;_0x31d717=_0x31d717['isBefore'](_0x45beac['start'])?_0x31d717:_0x45beac['start'],_0x2cf561=_0x2cf561['isAfter'](_0x45beac['end'])?_0x2cf561:_0x45beac['end'],_0xb52a96?_0x45beac['start']['isBefore'](_0xb52a96['getFirstRange']()['start'])?(_0xb52a96['removeMarkers'](),_0xb52a96=_0x48cc61):_0x48cc61['removeMarkers']():_0xb52a96=_0x48cc61;}const _0x4ee06d=this['_model']['createRange'](_0x31d717,_0x2cf561);if(_0xb52a96)this['_setSuggestionRange'](_0xb52a96,_0x4ee06d);else{const _0x28e398=_0x4fc915(),_0x4a63cd=_0x491633['id'];this['_setSuggestionData']({'id':_0x28e398,'type':'formatInline:'+_0x29ed68,'data':_0x154eaf,'createdAt':new Date(),'authorId':_0x4a63cd,'attributes':_0x79895c}),this['_addSuggestionMarker']('formatInline:'+_0x29ed68,_0x28e398,_0x4a63cd,_0x4ee06d);}}return null;}['markBlockFormat'](_0x279c99,_0x4f6c89,_0x25330f=[],_0x3cd6b4=null,_0x3279c5={}){_0x4f6c89['formatGroupId']||(_0x4f6c89['formatGroupId']=_0x4f6c89['commandName']),_0x4f6c89['multipleBlocks']=_0x279c99['is']('range'),_0x3cd6b4=_0x3cd6b4||Gt(_0x4f6c89);const _0xd1cb01=_0x25330f['map'](_0x4694bd=>Jt(_0x4694bd,this['_model'])),_0xb42f3a=_0x279c99['is']('range')?_0x279c99:Jt(_0x279c99,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5df229=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cd6b4,'accept');return this['forceDefaultExecution'](()=>_0x5df229([_0xb42f3a],_0x4f6c89,_0x3279c5)),null;}_0xd1cb01['push'](_0xb42f3a);let _0x38587b=!0x0;for(const _0x527d04 of _0xd1cb01)if(!this['_rangeIsInLocalUserInsertion'](_0x527d04)){_0x38587b=!0x1;break;}if(_0x38587b&&'always'!==this['_trackFormatChanges']){const _0x193b44=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cd6b4,'accept');return this['forceDefaultExecution'](()=>_0x193b44([_0xb42f3a],_0x4f6c89,_0x3279c5)),null;}let _0x1a2e51=null,_0x427570=_0xb42f3a['start'],_0x474b83=_0xb42f3a['end'];for(const {suggestion:_0x249488,meta:_0x339806}of this['_findSuggestions'](_0xb42f3a,'formatBlock')){if(!_0x339806['isOwn'])continue;if(_0x339806['isNextTo']||_0x339806['containsRangeInObject']||_0x339806['isInsideObject'])continue;if(_0x249488['data']['formatGroupId']!=_0x4f6c89['formatGroupId'])continue;if(!zt(_0x249488,_0x3279c5))continue;const _0x543b23=_0x249488['getFirstRange']();if(_0x249488['subType']==_0x3cd6b4){if(_0x543b23['containsRange'](_0xb42f3a,!0x0))return null;_0x427570=_0x427570['isBefore'](_0x543b23['start'])?_0x427570:_0x543b23['start'],_0x474b83=_0x474b83['isAfter'](_0x543b23['end'])?_0x474b83:_0x543b23['end'],_0x1a2e51?_0x543b23['start']['isBefore'](_0x1a2e51['getFirstRange']()['start'])?(_0x1a2e51['removeMarkers'](),_0x1a2e51=_0x249488):_0x249488['removeMarkers']():_0x1a2e51=_0x249488;}else{const _0x44a3ad=_0xb42f3a['getIntersection'](_0x543b23);this['_cutOutSuggestionMarker'](_0x249488,_0x44a3ad);}}const _0x4f9f1d=this['editor']['plugins']['get']('Users')['me'],_0x22f51b=_0x4fc915(),_0x46e409=_0x4f9f1d['id'];if(_0x1a2e51)return this['_setSuggestionRange'](_0x1a2e51,this['_model']['createRange'](_0x427570,_0x474b83)),_0x1a2e51;{const _0x868ed4=this['_setSuggestionData']({'id':_0x22f51b,'type':'formatBlock:'+_0x3cd6b4,'data':_0x4f6c89,'createdAt':new Date(),'authorId':_0x46e409,'attributes':_0x3279c5});return this['_addSuggestionMarker']('formatBlock:'+_0x3cd6b4,_0x22f51b,_0x46e409,this['_model']['createRange'](_0x427570,_0x474b83)),_0x868ed4;}}['markMultiRangeBlockFormat'](_0x43b9b8,_0x27b12b,_0xc321a7=[],_0x4d2d66=null,_0x15e204={}){_0x27b12b['formatGroupId']||(_0x27b12b['formatGroupId']=_0x27b12b['commandName']);const _0x262c80=_0x43b9b8[0x0];_0x27b12b['multipleBlocks']=_0x262c80['is']('range'),_0x4d2d66=_0x4d2d66||Gt(_0x27b12b);const _0x356970=_0xc321a7['map'](_0x3ec07d=>Jt(_0x3ec07d,this['_model'])),_0x2a8b80=_0x262c80['is']('range')?_0x43b9b8:_0x43b9b8['map'](_0x258b2f=>Jt(_0x258b2f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x57d734=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d2d66,'accept');return this['forceDefaultExecution'](()=>_0x57d734(_0x2a8b80,_0x27b12b,_0x15e204)),null;}_0x356970['push'](..._0x2a8b80);let _0x51bdcd=!0x0;for(const _0xdbc2b8 of _0x356970)if(!this['_rangeIsInLocalUserInsertion'](_0xdbc2b8)){_0x51bdcd=!0x1;break;}if(_0x51bdcd&&'always'!==this['_trackFormatChanges']){const _0xe36033=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d2d66,'accept');return this['forceDefaultExecution'](()=>_0xe36033(_0x2a8b80,_0x27b12b,_0x15e204)),null;}const _0x306da7=this['editor']['plugins']['get']('Users')['me'];for(const _0x3b6868 of this['getSuggestions']()){if(_0x3b6868['author']['id']!=_0x306da7['id'])continue;if('formatBlock'!=_0x3b6868['type']||_0x3b6868['data']['formatGroupId']!=_0x27b12b['formatGroupId'])continue;if(!zt(_0x3b6868,_0x15e204))continue;const _0x541cb2=_0x3b6868['subType']==_0x4d2d66;for(let _0x86ae94=0x0;_0x86ae94<_0x2a8b80['length'];_0x86ae94++){const _0x798dfc=_0x2a8b80[_0x86ae94];for(const _0x22c36b of _0x3b6868['getMarkers']()){const _0x502559=_0x22c36b['getRange']();if(_0x798dfc['isEqual'](_0x502559)){_0x541cb2?(_0x2a8b80['splice'](_0x86ae94,0x1),_0x86ae94--):_0x3b6868['removeMarker'](_0x22c36b['name']);break;}}}}if(0x0==_0x2a8b80['length'])return null;const _0x4c7571=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d2d66,'join');for(const _0x519f7f of this['getSuggestions']())if(_0x519f7f['author']['id']==_0x306da7['id']&&'formatBlock'==_0x519f7f['type']&&_0x519f7f['data']['formatGroupId']==_0x27b12b['formatGroupId']&&_0x519f7f['subType']==_0x4d2d66&&zt(_0x519f7f,_0x15e204)&&(_0x4c7571(_0x519f7f['getRanges'](),_0x2a8b80)||_0x4c7571(_0x2a8b80,_0x519f7f['getRanges']()))){for(const _0x32afdb of _0x2a8b80)_0x519f7f['addRange'](_0x32afdb);return _0x519f7f;}const _0x50690f=_0x4fc915(),_0xb0af60=_0x306da7['id'],_0x53d537='formatBlock:'+_0x4d2d66,_0x4b6b24=this['_setSuggestionData']({'id':_0x50690f,'type':_0x53d537,'data':_0x27b12b,'createdAt':new Date(),'authorId':_0xb0af60,'attributes':_0x15e204});for(const _0x810c73 of _0x2a8b80)this['_addSuggestionMarker'](_0x53d537,_0x50690f,_0xb0af60,_0x810c73,u['getMultiRangeId']());return _0x4b6b24;}['markDeletion'](_0x5b2d86,_0x345fe1=null,_0x3fc7fe={}){if(_0x5b2d86['isCollapsed'])return null;const _0x5bbc1b=this['editor']['plugins']['get']('Users')['me'],_0x2cbe14=new _0xac092f(_0x5b2d86['start'],_0x5b2d86['end']);for(const {suggestion:_0x34f34a,meta:_0x4e7be8}of this['_findSuggestions'](_0x2cbe14,'insertion'))if(_0x4e7be8['isOwn']&&!_0x4e7be8['isNextTo']){if(_0x34f34a['isMultiRange']){const _0x2787c8=_0x34f34a['getRanges']()['filter'](_0x214981=>'$graveyard'!=_0x214981['root']['rootName']);_0x2787c8['every'](_0x4d83fa=>_0x2cbe14['containsRange'](_0x4d83fa,!0x0))&&_0x34f34a['discard']();if(_0x2787c8['some'](_0xb8398f=>_0xb8398f['containsRange'](_0x2cbe14,!0x0))){const _0x5714c4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x345fe1,'accept');return this['forceDefaultExecution'](()=>_0x5714c4([_0x2cbe14],null,_0x3fc7fe)),null;}}else{const _0x10690c=_0x2cbe14['getIntersection'](_0x34f34a['getFirstRange']());null!==_0x10690c&&_0x34f34a['_onDiscard']([_0x10690c],null,_0x3fc7fe);}}if(_0x2cbe14['detach'](),_0x2cbe14['isCollapsed']||'$graveyard'==_0x2cbe14['root']['rootName'])return null;let _0x1017fd=null,_0x263454=_0x2cbe14['start'],_0x1d18f3=_0x2cbe14['end'];const _0x1a9d49=this['_findSuggestions'](_0x2cbe14,'deletion');for(const {suggestion:_0x2f86d3,meta:_0x11f1c6}of _0x1a9d49){const _0x2f3dcd=this['_model']['createRange'](_0x263454,_0x1d18f3);if(_0x11f1c6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x11f1c6['containsRangeInObject']&&!_0x11f1c6['isInsideObject'])){if(_0x2f86d3['isMultiRange']){if(!zt(_0x2f86d3,_0x3fc7fe))continue;let _0x4f6f4a=!0x0;for(const _0x5361e1 of _0x2f86d3['getRanges']()){if(_0x5361e1['containsRange'](_0x2f3dcd,!0x0))return _0x2f86d3;_0x2f3dcd['containsRange'](_0x5361e1)||(_0x4f6f4a=!0x1);}_0x4f6f4a&&_0x2f86d3['discard']();}else{const _0x580be3=_0x2f86d3['getFirstRange']();if(_0x580be3['containsRange'](_0x2f3dcd,!0x0))return _0x2f86d3;if(!zt(_0x2f86d3,_0x3fc7fe)){_0x2f3dcd['containsRange'](_0x580be3)?_0x2f86d3['removeMarkers']():_0x580be3['containsPosition'](_0x263454)?_0x263454=_0x580be3['end']:_0x580be3['containsPosition'](_0x1d18f3)&&(_0x1d18f3=_0x580be3['start']);continue;}_0x263454=_0x263454['isBefore'](_0x580be3['start'])?_0x263454:_0x580be3['start'],_0x1d18f3=_0x1d18f3['isAfter'](_0x580be3['end'])?_0x1d18f3:_0x580be3['end'],_0x3fc7fe=Object['assign']({},_0x2f86d3['attributes']),_0x1017fd?_0x580be3['start']['isBefore'](_0x1017fd['getFirstRange']()['start'])?(_0x1017fd['removeMarkers'](),_0x1017fd=_0x2f86d3):_0x2f86d3['removeMarkers']():_0x1017fd=_0x2f86d3;}}}if(_0x1017fd)return this['_setSuggestionRange'](_0x1017fd,this['_model']['createRange'](_0x263454,_0x1d18f3)),_0x1017fd;{const _0x432f40=_0x4fc915(),_0x232067=this['_model']['createRange'](_0x263454,_0x1d18f3),_0x23c98d=_0x5bbc1b['id'],_0x35505e=_0x345fe1?'deletion:'+_0x345fe1:'deletion',_0x438189=this['_setSuggestionData']({'id':_0x432f40,'type':_0x35505e,'createdAt':new Date(),'authorId':_0x23c98d,'attributes':_0x3fc7fe});return this['_addSuggestionMarker'](_0x35505e,_0x432f40,_0x23c98d,_0x232067),_0x438189;}}['markMultiRangeDeletion'](_0x10f684,_0x4e06b1='multi',_0x319f68={}){const _0x22b3a8=this['editor']['plugins']['get']('Users')['me'],_0x175b35=_0x10f684['map'](_0xa1d8d8=>new _0xac092f(_0xa1d8d8['start'],_0xa1d8d8['end'])),_0x2d4ebf=new Set();for(const {suggestion:_0x49d307,meta:_0x120c98}of this['_findSuggestions'](_0x175b35,'insertion'))_0x120c98['isOwn']&&!_0x120c98['isNextTo']&&_0x2d4ebf['add'](_0x49d307);for(const _0x1eb1fa of _0x2d4ebf)if(_0x1eb1fa['isMultiRange']){const _0x1bcf1e=_0x1eb1fa['getRanges']();(!_0x1eb1fa['attributes']||!_0x1eb1fa['attributes']['skipNestingCheck'])&&(_0x1bcf1e['every'](_0x7af146=>_0x175b35['some'](_0xb28aeb=>_0xb28aeb['containsRange'](_0x7af146,!0x0)))&&_0x1eb1fa['discard']());if(_0x175b35['every'](_0x188f8a=>_0x1bcf1e['some'](_0x4f3fd1=>_0x4f3fd1['containsRange'](_0x188f8a,!0x0)))){const _0x271a07=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4e06b1,'accept');return this['forceDefaultExecution'](()=>_0x271a07(_0x10f684,null,_0x319f68)),null;}}else{const _0x28429d=_0x1eb1fa['getFirstRange']();_0x175b35['some'](_0x5413cb=>_0x5413cb['containsRange'](_0x28429d,!0x0))&&_0x1eb1fa['discard']();if(_0x175b35['every'](_0x2d8818=>_0x28429d['containsRange'](_0x2d8818,!0x0))){const _0x268686=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4e06b1,'accept');return this['forceDefaultExecution'](()=>_0x268686(_0x175b35,null,_0x319f68)),null;}}const _0x44b9e6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4e06b1,'join');let _0x40fe3b=null;for(const _0x3a2399 of this['getSuggestions']())if(_0x3a2399['author']['id']==_0x22b3a8['id']&&_0x3a2399['isInContent']&&'deletion'==_0x3a2399['type']&&_0x3a2399['subType']==_0x4e06b1&&zt(_0x3a2399,_0x319f68)&&(_0x44b9e6(_0x3a2399['getRanges'](),_0x175b35)||_0x44b9e6(_0x175b35,_0x3a2399['getRanges']()))){if(_0x40fe3b){if(_0x3a2399['commentThread']&&_0x3a2399['commentThread']['length'])continue;for(const _0x47952d of _0x3a2399['getRanges']())_0x40fe3b['isIntersectingWithRange'](_0x47952d)||_0x40fe3b['addRange'](_0x47952d);_0x3a2399['removeMarkers']();}else{_0x40fe3b=_0x3a2399;for(const _0x4cdded of _0x175b35)_0x3a2399['isIntersectingWithRange'](_0x4cdded)||_0x3a2399['addRange'](_0x4cdded);}}if(_0x40fe3b)return _0x40fe3b;_0x2d4ebf['clear']();for(const {suggestion:_0x3adb0c,meta:_0x5c697c}of this['_findSuggestions'](_0x175b35,'deletion'))_0x5c697c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5c697c['containsRangeInObject']&&!_0x5c697c['isInsideObject'])&&zt(_0x3adb0c,_0x319f68)&&_0x2d4ebf['add'](_0x3adb0c);for(const _0x321c51 of _0x2d4ebf){const _0x223cbf=_0x321c51['getRanges']();if(!_0x319f68||!_0x319f68['skipNestingCheck']){if(_0x175b35['every'](_0x968e25=>_0x223cbf['some'](_0x409df7=>_0x409df7['containsRange'](_0x968e25,!0x0))))return _0x321c51;}(!_0x321c51['attributes']||!_0x321c51['attributes']['skipNestingCheck'])&&(_0x223cbf['every'](_0x7da54e=>_0x175b35['some'](_0x4de183=>_0x4de183['containsRange'](_0x7da54e,!0x0)))&&_0x321c51['discard']());}const _0x583d2=_0x4fc915(),_0x317302=_0x22b3a8['id'],_0x2366f4='deletion:'+_0x4e06b1,_0x4f36aa=this['_setSuggestionData']({'id':_0x583d2,'type':_0x2366f4,'createdAt':new Date(),'authorId':_0x317302,'attributes':_0x319f68});for(const _0x5b4e21 of _0x175b35)_0x5b4e21['detach'](),_0x5b4e21['isCollapsed']||'$graveyard'==_0x5b4e21['root']['rootName']||this['_addSuggestionMarker'](_0x2366f4,_0x583d2,_0x317302,_0x5b4e21,u['getMultiRangeId']());return _0x4f36aa;}['markAttributeChange'](_0x26d4b6,_0x52d68e,_0x5f2bcf,_0x50ab5f,_0x3e0a4a){if(_0x26d4b6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x13a83d=this['editor']['plugins']['get']('Users')['me']['id'],_0x16717f=Array['from'](this['_suggestions']['values']())['filter'](_0x1697fa=>'attribute'==_0x1697fa['type']&&_0x1697fa['data']['key']==_0x52d68e&&_0x1697fa['isIntersectingWithRange'](_0x26d4b6));if('default'===this['_trackFormatChanges']){const _0x5efb69=this['_findSuggestions'](_0x26d4b6,'insertion')['filter'](({meta:_0x3bdadf})=>_0x3bdadf['isOwn']&&!_0x3bdadf['isInsideObject']&&!_0x3bdadf['isNextTo'])['map'](({suggestion:_0x41fa67})=>_0x41fa67);_0x16717f['unshift'](..._0x5efb69);}const _0x47eae2=new Map([[_0x26d4b6,_0x5f2bcf]]);for(const _0x19a201 of _0x16717f){const _0x2d7fdc='attribute'==_0x19a201['type']?_0x19a201['data']['oldValue']:void 0x0,_0x40b91b=_0x19a201['getFirstRange'](),_0x31eb19=Array['from'](_0x47eae2['keys']())['find'](_0x3905a8=>_0x3905a8['isIntersecting'](_0x40b91b));if(!_0x31eb19)continue;const _0x387385=_0x31eb19['getDifference'](_0x40b91b);this['_isBlockAttribute'](_0x52d68e)&&'insertion'==_0x19a201['type']&&0x0!=_0x387385['length']||(_0x47eae2['delete'](_0x31eb19),_0x387385['forEach'](_0x2b23d7=>{_0x47eae2['set'](_0x2b23d7,_0x5f2bcf);}),'insertion'!=_0x19a201['type']&&_0x2d7fdc!=_0x50ab5f&&_0x47eae2['set'](_0x31eb19['getIntersection'](_0x40b91b),_0x2d7fdc));}const _0x304d63=[];for(const [_0x39cb73,_0x54d397]of _0x47eae2){const _0x1a4e8f=_0x4fc915(),_0x5df89e={'key':_0x52d68e,'oldValue':_0x54d397,'newValue':_0x50ab5f};_0x52d68e['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':_0x52d68e});const _0x94d350=('attribute:'+(_0x52d68e+'|'+Gt({'newValue':_0x50ab5f})))['substring'](0x0,0x3c),_0x5921d6=this['_setSuggestionData']({'id':_0x1a4e8f,'type':_0x94d350,'data':_0x5df89e,'createdAt':new Date(),'authorId':_0x13a83d,'attributes':_0x3e0a4a});_0x304d63['push'](_0x5921d6),this['_addSuggestionMarker'](_0x94d350,_0x1a4e8f,_0x13a83d,_0x39cb73);}return _0x304d63;}['enableDefaultAttributesIntegration'](_0x1636da){this['enableCommand'](_0x1636da,(_0x15a868,..._0x3942d7)=>{this['_recordAttributeChanges'](()=>{_0x15a868(..._0x3942d7);});});}['registerBlockAttribute'](_0x21ccec){this['_blockAttributeKeys']['add'](_0x21ccec);}['registerInlineAttribute'](_0x38b07c){this['_inlineAttributeKeys']['add'](_0x38b07c);}['_getAttributeKey'](_0x5e1c31){return'attribute'==_0x5e1c31['type']?_0x5e1c31['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x287555,_0x255a17){const _0x1f8233=_0x287555['getFirstMarker']();this['_model']['change'](_0x2875cf=>{_0x2875cf['updateMarker'](_0x1f8233,{'range':_0x255a17});});}['_addThreadToSuggestion'](_0x5014a3){const _0x29231b=_0x5014a3['id'],_0x563fdb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x29231b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x563fdb,'threadId':_0x29231b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x345aa8=this['_commentsRepository']['getCommentThread'](_0x29231b);_0x345aa8['unbind']('isRemovable'),_0x345aa8['isRemovable']=!0x1,_0x5014a3['commentThread']=_0x345aa8;}['_checkSuggestionCorrectness'](_0x103441,_0x205f0a,_0x582d19,_0x1a7f47){if(_0x103441['type']!=_0x205f0a||_0x103441['subType']!=_0x582d19||_0x103441['creator']['id']!=_0x1a7f47)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x541450('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4b442c,_0x542d34){const _0x1ada9e=_0x4b442c['getFirstRange']();if(_0x542d34['isEqual'](_0x1ada9e))_0x4b442c['removeMarkers']();else{if(_0x1ada9e['containsRange'](_0x542d34)){const _0x48e2a6=this['_model']['createPositionAt'](_0x542d34['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4b442c,this['_model']['createRange'](_0x1ada9e['start'],_0x48e2a6));const _0x1f3f5a=_0x4fc915(),_0x4b1bed=_0x4b442c['creator']['id'],_0x385349=_0x4b442c['type']+':'+_0x4b442c['subType'];this['_setSuggestionData']({'id':_0x1f3f5a,'type':_0x385349,'createdAt':new Date(),'authorId':_0x4b1bed,'data':_0x4b442c['data'],'attributes':_0x4b442c['attributes']});const _0x5e8ed4=this['_model']['createPositionAt'](_0x542d34['end']['parent'],'after'),_0x102b2d=this['_model']['createRange'](_0x5e8ed4,_0x1ada9e['end']);this['_addSuggestionMarker'](_0x385349,_0x1f3f5a,_0x4b1bed,_0x102b2d);}else{if(_0x1ada9e['containsPosition'](_0x542d34['start'])){const _0x4a8f3f=this['_model']['createPositionAt'](_0x542d34['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4b442c,this['_model']['createRange'](_0x1ada9e['start'],_0x4a8f3f));}else{const _0x2c68b7=this['_model']['createPositionAt'](_0x542d34['end']['parent'],'after');this['_setSuggestionRange'](_0x4b442c,this['_model']['createRange'](_0x2c68b7,_0x1ada9e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3682a7){for(const {suggestion:_0x55e1c6,meta:_0x28a3b9}of this['_findSuggestions'](_0x3682a7,'insertion')){if(!_0x28a3b9['isOwn'])continue;const _0x2142de=_0x55e1c6['getRanges']();for(const _0x4d7031 of _0x2142de)if(!_0x3682a7['getDifference'](_0x4d7031)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2de6ae){const _0x314782=this['editor']['plugins']['get']('Users')['getUser'](_0x2de6ae);if(!_0x314782)throw new _0x541450('track-changes-user-not-found',this);return _0x314782;}['_getExternalAuthor'](_0x13a589){const _0x5b875c=this['editor']['plugins']['get']('Users'),_0x3e077b=_0x385015('external:'+_0x13a589),_0x552dec=_0x5b875c['getUser'](_0x3e077b);return _0x552dec||_0x5b875c['addUser']({'id':_0x3e077b,'name':_0x13a589});}['_createSuggestion'](_0x518b7c,_0x2aefa2,_0x3b6de8,_0x3c478e,_0x1a4272){const _0x23c5e7=this['_getAuthorFromId'](_0x3c478e),_0x4f4f41=this['_suggestionFactory']['buildSuggestion'](_0x518b7c,_0x2aefa2,_0x3b6de8,_0x23c5e7,_0x1a4272,_0x5a44dc=>{this['_updateSuggestionData'](_0x3b6de8,{'attributes':_0x5a44dc});const _0x50248d=this['getSuggestion'](_0x3b6de8);this['_joinWithAdjacentSuggestions'](new Set([_0x50248d])),this['_refreshSuggestionsChain'](new Set([_0x50248d]));});return this['listenTo'](_0x4f4f41,'accept',()=>{this['_updateSuggestionData'](_0x3b6de8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4f4f41,'discard',()=>{this['_updateSuggestionData'](_0x3b6de8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3b6de8,_0x4f4f41),this['_suggestionState']['set'](_0x4f4f41,'notReady'),_0x4f4f41;}['_splitMarkerName'](_0x483ee1){const _0x54e32f=_0x483ee1['split'](':');return{'group':_0x54e32f[0x0],'type':_0x54e32f[0x1],'subType':_0x54e32f['length']>=0x5?_0x54e32f[0x2]:null,'id':_0x54e32f['length']<0x5?_0x54e32f[0x2]:_0x54e32f[0x3],'authorId':_0x54e32f['length']<0x5?_0x54e32f[0x3]:_0x54e32f[0x4],'markerCount':0x6==_0x54e32f['length']?_0x54e32f[0x5]:null};}['_breakSuggestionMarker'](_0x4c3f1b,_0x7a9831,_0x1d4291){const _0x32c9d3=_0x4c3f1b['getFirstRange'](),_0x6aee3b=_0x32c9d3['start'],_0x370561=_0x32c9d3['end'];this['_setSuggestionRange'](_0x4c3f1b,this['_model']['createRange'](_0x6aee3b,_0x7a9831));const _0x50dabc=_0x4fc915(),_0x5166df=_0x4c3f1b['creator']['id'],_0x11a2c5=_0x4c3f1b['type']+(_0x4c3f1b['subType']?':'+_0x4c3f1b['subType']:'');this['_setSuggestionData']({'id':_0x50dabc,'type':_0x11a2c5,'createdAt':new Date(),'authorId':_0x5166df,'originalSuggestionId':_0x4c3f1b['id'],'attributes':_0x4c3f1b['attributes'],'data':_0x4c3f1b['data']});const _0xb2232=this['_getAttributeKey'](_0x4c3f1b);('formatBlock'==_0x4c3f1b['type']||_0xb2232&&this['_isBlockAttribute'](_0xb2232))&&(_0x1d4291=this['_model']['createPositionBefore'](_0x1d4291['parent'])),this['_addSuggestionMarker'](_0x11a2c5,_0x50dabc,_0x5166df,this['_model']['createRange'](_0x1d4291,_0x370561));}['_findSuggestions'](_0x583f65,_0x2b0b01=null){const _0x477185=[],_0x16ac7c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x583f65)||(_0x583f65=[_0x583f65]);for(const _0x1afbf7 of this['getSuggestions']()){if(!_0x1afbf7['isInContent'])continue;if(_0x2b0b01&&_0x1afbf7['type']!=_0x2b0b01)continue;let _0x2315ed=!0x1;for(const _0x23d4fa of _0x1afbf7['getRanges']()){for(const _0x1e339c of _0x583f65){const _0x5375fe=_0x1e339c['start']['isEqual'](_0x23d4fa['end'])||_0x1e339c['end']['isEqual'](_0x23d4fa['start']);if(_0x5375fe||_0x1e339c['getIntersection'](_0x23d4fa)){const _0x49a2ff=_0x1e339c['containsRange'](_0x23d4fa)&&Ut(this['_model']['schema'],_0x23d4fa['start'],_0x1e339c),_0x21c48f=_0x23d4fa['containsRange'](_0x1e339c)&&Ut(this['_model']['schema'],_0x1e339c['start'],_0x23d4fa);_0x477185['push']({'suggestion':_0x1afbf7,'meta':{'isOwn':_0x16ac7c==_0x1afbf7['author'],'isNextTo':_0x5375fe,'isInsideObject':_0x49a2ff,'containsRangeInObject':_0x21c48f}}),_0x2315ed=!0x0;break;}}if(_0x2315ed)break;}}return _0x477185;}['_addSuggestionMarker'](_0x162db9,_0x3d1eca,_0x13519c,_0x4c9914,_0x104d8f){this['_model']['change'](_0x53cca0=>{let _0x28d6a7='suggestion:'+_0x162db9+':'+_0x3d1eca+':'+_0x13519c;_0x104d8f&&(_0x28d6a7=_0x28d6a7+':'+_0x104d8f),_0x53cca0['addMarker'](_0x28d6a7,{'range':_0x4c9914,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x51ae2e){const _0x4399a6=_0x51ae2e['previous'],_0x4019e9=_0x51ae2e['next'];_0x51ae2e['previous']=null,_0x51ae2e['next']=null,null!=_0x4399a6&&_0x4399a6['next']==_0x51ae2e&&(_0x4399a6['next']=_0x4019e9),null!=_0x4019e9&&_0x4019e9['previous']==_0x51ae2e&&(_0x4019e9['previous']=_0x4399a6),'ready'==this['_suggestionState']['get'](_0x51ae2e)&&(this['_suggestionState']['set'](_0x51ae2e,'removed'),this['fire']('suggestionUnloaded',_0x51ae2e,_0x4399a6,_0x4019e9));}['_setSuggestionData'](_0x23ff1e){const _0x4caa73=_0x23ff1e['id'],_0x12354a=this['addSuggestionData'](_0x23ff1e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x18b935=this['editor']['plugins']['get']('PendingActions'),_0x20247e=_0x12354a['hasComments'],_0x5b5b5a=_0x12354a['subType']?_0x12354a['type']+':'+_0x12354a['subType']:_0x12354a['type'],_0x39b5e8=this['editor']['locale'],_0x2d834c=_0x18b935['add'](o(_0x39b5e8,'PENDING_ACTION_SUGGESTION')),_0x3f988c={'id':_0x4caa73,'type':_0x5b5b5a,'hasComments':_0x20247e,'data':_0x23ff1e['data']||null,'originalSuggestionId':_0x23ff1e['originalSuggestionId']||null,'attributes':_0x12354a['attributes']};this['_adapter']['addSuggestion'](_0x3f988c)['then'](_0x38a489=>{_0x12354a['_saved']=!0x0,_0x18b935['remove'](_0x2d834c),_0x38a489&&_0x38a489['createdAt']&&(this['_suggestions']['get'](_0x4caa73)['createdAt']=_0x38a489['createdAt']);})['catch'](_0x4e439e=>{throw _0x5786f7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x12354a['discard']();}),_0x12354a['stopListening'](),this['_suggestions']['delete'](_0x12354a['id']),this['_suggestionState']['delete'](_0x12354a),_0x4e439e;});}return _0x12354a;}['_isBlockAttribute'](_0x200e08){return this['_blockAttributeKeys']['has'](_0x200e08);}['_updateSuggestionData'](_0x4768d6,_0x1439eb){const _0x3c5754=this['editor']['plugins']['get']('PendingActions'),_0x293073=this['getSuggestion'](_0x4768d6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x293073['_saved']){const _0x480615=_0x3c5754['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4768d6,_0x1439eb)['then'](()=>{_0x3c5754['remove'](_0x480615);});}else _0x293073['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4768d6,_0x1439eb);});}}['_getSuggestionData'](_0x26a5f3){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x541450('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x26a5f3);}['_handleNewSuggestionMarker'](_0x3f6352){const {id:_0x13687a,type:_0x19e03c,subType:_0xa2392f,authorId:_0x394cba}=this['_splitMarkerName'](_0x3f6352),_0x13dd90=this['_suggestions']['get'](_0x13687a)||this['_createSuggestion'](_0x19e03c,_0xa2392f,_0x13687a,_0x394cba,{});switch(this['_checkSuggestionCorrectness'](_0x13dd90,_0x19e03c,_0xa2392f,_0x394cba),this['_suggestionState']['get'](_0x13dd90)){case'notReady':this['_getSuggestionData'](_0x13687a)['then'](_0x31e8de=>{let _0x429301=Promise['resolve']();_0x31e8de['hasComments']&&(_0x429301=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x13687a})),_0x429301['then'](()=>{this['addSuggestionData'](_0x31e8de)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x13dd90,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x13687a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x13dd90,'ready'),this['fire']('suggestionLoaded',_0x13dd90);break;case'ready':this['fire']('suggestionChanged',_0x13dd90);}return _0x13dd90['addMarkerName'](_0x3f6352),_0x13dd90;}['_refreshSuggestionsChain'](_0x447efe){const _0x576c22=Array['from'](_0x447efe),_0xb1a0b2=_0x576c22['filter'](_0x56e7b3=>'attribute'==_0x56e7b3['type']);this['_refreshAttributeSuggestionsChain'](_0xb1a0b2);const _0x2bd5e9=_0x576c22['filter'](_0x11f329=>!_0x11f329['isMultiRange']&&'attribute'!=_0x11f329['type']),_0x1c1a10=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1621f3=>!_0x1621f3['isMultiRange']&&'attribute'!=_0x1621f3['type']),_0x474cec=_0x1c1a10['filter'](_0x274def=>!_0x447efe['has'](_0x274def)),_0x5774f3=new Map(_0x1c1a10['map'](_0x31fbf7=>[_0x31fbf7,this['_suggestionFactory']['getSuggestionCallback'](_0x31fbf7['type'],_0x31fbf7['subType'],'chain')])),_0x36813c=new Map(_0x1c1a10['map'](_0x111ce2=>[_0x111ce2,_0x111ce2['getFirstRange']()])),_0x373f61=new Set(),_0x30910f=new Set();for(let _0x4abc93=0x0;_0x4abc93<_0x2bd5e9['length'];_0x4abc93++)_0x5427ec(_0x2bd5e9[_0x4abc93],_0x2bd5e9,_0x4abc93+0x1);for(let _0x7b4dc5=0x0;_0x7b4dc5<_0x2bd5e9['length'];_0x7b4dc5++)_0x5427ec(_0x2bd5e9[_0x7b4dc5],_0x474cec,0x0);const _0x40c7a1=new Set();for(let _0x889402=0x0;_0x889402<_0x2bd5e9['length'];_0x889402++){const _0x550ca2=_0x2bd5e9[_0x889402];!_0x30910f['has'](_0x550ca2)&&_0x550ca2['previous']&&(_0x40c7a1['add'](_0x550ca2['previous']),_0x550ca2['previous']['next']===_0x550ca2&&(_0x550ca2['previous']['next']=null),_0x550ca2['previous']=null),!_0x373f61['has'](_0x550ca2)&&_0x550ca2['next']&&(_0x40c7a1['add'](_0x550ca2['next']),_0x550ca2['next']['previous']===_0x550ca2&&(_0x550ca2['next']['previous']=null),_0x550ca2['next']=null);}function _0x5427ec(_0x2eeeba,_0x3f7d8d,_0x22848d){for(let _0x231a5e=_0x22848d;_0x231a5e<_0x3f7d8d['length'];_0x231a5e++){const _0x3d5bdb=_0x1e8445(_0x2eeeba,_0x3f7d8d[_0x231a5e]);_0x3d5bdb&&(_0x3d5bdb[0x0]['next']=_0x3d5bdb[0x1],_0x3d5bdb[0x1]['previous']=_0x3d5bdb[0x0],_0x373f61['add'](_0x3d5bdb[0x0]),_0x30910f['add'](_0x3d5bdb[0x1]));}}function _0x1e8445(_0xa29761,_0x56835a){if(_0xa29761['author']['id']!==_0x56835a['author']['id'])return null;const _0x5356a1=_0x5774f3['get'](_0xa29761)(_0xa29761,_0x56835a,_0x36813c['get'](_0xa29761),_0x36813c['get'](_0x56835a));if(!_0x5356a1)return null;return _0x5774f3['get'](_0x56835a)(_0xa29761,_0x56835a,_0x36813c['get'](_0xa29761),_0x36813c['get'](_0x56835a))?_0x5356a1[0x1]['commentThread']&&_0x5356a1[0x1]['commentThread']['length']?null:_0x5356a1:null;}_0x40c7a1['size']&&this['_refreshSuggestionsChain'](_0x40c7a1);}['_refreshAttributeSuggestionsChain'](_0x421c1c){if(0x0==_0x421c1c['length'])return;const _0x1c0236=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1dbb31=>'attribute'==_0x1dbb31['type']&&_0x1dbb31['_isDataLoaded']),_0x3bee04=[],_0x24fda1=new Map();for(const _0x3bcd07 of _0x1c0236){const _0x2befae=_0x385015(_0x3bcd07['attributes']);_0x24fda1['has'](_0x2befae)||(_0x24fda1['set'](_0x2befae,_0x3bee04['length']),_0x3bee04['push']([]));const _0x1fe0fe=_0x24fda1['get'](_0x2befae);_0x3bee04[_0x1fe0fe]['push'](_0x3bcd07);}!(function(){_0x3bee04['sort']((_0xeed851,_0x47d2eb)=>{const _0x43c9bb=_0xeed851[0x0]['createdAt'],_0x1a2b4c=_0x47d2eb[0x0]['createdAt'];return _0x43c9bb==_0x1a2b4c?_0xeed851[0x0]['attributes']['groupId']<_0x47d2eb[0x0]['attributes']['groupId']?-0x1:0x1:_0x43c9bb<_0x1a2b4c?-0x1:0x1;});for(const _0x1485fe of _0x3bee04)_0x1485fe['sort']((_0x54bba5,_0x3783ca)=>_0x54bba5['id']<_0x3783ca['id']?-0x1:0x1);}());for(let _0x5254d0=0x0;_0x5254d0<_0x3bee04['length'];_0x5254d0++){if(0x0==_0x3bee04[_0x5254d0]['length'])continue;const _0xd9f44a=[];for(let _0x17f536=_0x5254d0+0x1;_0x17f536<_0x3bee04['length'];_0x17f536++)0x0!=_0x3bee04[_0x17f536]['length']&&_0xd7be36(_0x3bee04[_0x5254d0],_0x3bee04[_0x17f536])&&_0xd9f44a['push'](_0x17f536);for(const _0xdbf79f of _0xd9f44a)_0x3bee04[_0x5254d0]=_0x3bee04[_0x5254d0]['concat'](_0x3bee04[_0xdbf79f]),_0x3bee04[_0xdbf79f]=[];}for(const _0x6d4f87 of _0x3bee04)for(let _0x293b98=0x0;_0x293b98<_0x6d4f87['length'];_0x293b98++){const _0x4e63b9=_0x6d4f87[_0x293b98+0x1]||null;_0x6d4f87[_0x293b98]['next']!==_0x4e63b9&&(_0x6d4f87[_0x293b98]['next']=_0x4e63b9);}for(const _0x1f544b of _0x3bee04)for(let _0x27ef3c=0x0;_0x27ef3c<_0x1f544b['length'];_0x27ef3c++){const _0x35486b=_0x1f544b[_0x27ef3c-0x1]||null;_0x1f544b[_0x27ef3c]['previous']!==_0x35486b&&(_0x1f544b[_0x27ef3c]['previous']=_0x35486b);}function _0xd7be36(_0x114f89,_0x2be1b3){if(_0x114f89[0x0]['attributes']['groupId']!==_0x2be1b3[0x0]['attributes']['groupId']&&_0x114f89[0x0]['author']!==_0x2be1b3[0x0]['author'])return!0x1;if(!function(_0x1f50e3,_0x1a82d1){if(!_0x1f50e3['hasComments']&&!_0x1a82d1['hasComments'])return!0x0;if(_0x1f50e3['hasComments']&&_0x1a82d1['hasComments'])return!0x1;if(_0x1f50e3['hasComments']&&_0x1a82d1['createdAt']<_0x1f50e3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1a82d1['hasComments']&&_0x1f50e3['createdAt']<_0x1a82d1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x114f89[0x0],_0x2be1b3[0x0]))return!0x1;const _0x393cc2=xt(_0x114f89[0x0]['attributes'],'groupId'),_0x2bee86=xt(_0x2be1b3[0x0]['attributes'],'groupId');if(!_0x3c26f1(_0x393cc2,_0x2bee86))return!0x1;return!!_0x114f89['every'](_0x53c581=>_0x2be1b3['some'](_0x2a34f6=>_0x53c581['getFirstRange']()['isEqual'](_0x2a34f6['getFirstRange']())))&&_0x2be1b3['every'](_0x28205c=>_0x114f89['some'](_0x5c29af=>_0x28205c['getFirstRange']()['isEqual'](_0x5c29af['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1b533f){const _0x1f53ff=Array['from'](_0x1b533f),_0x52773e=this['getSuggestions']({'skipNotAttached':!0x0}),_0xeccacd=_0x52773e['filter'](_0x371804=>!_0x1b533f['has'](_0x371804)),_0x3688f8=new Map(_0x1f53ff['map'](_0x3d959a=>[_0x3d959a,this['_suggestionFactory']['getSuggestionCallback'](_0x3d959a['type'],_0x3d959a['subType'],'join')])),_0x4fc2a3=new Map(_0x52773e['map'](_0x3d5fe7=>[_0x3d5fe7,_0x3d5fe7['getRanges']()]));for(let _0x268ff7=0x0;_0x268ff7<_0x1f53ff['length'];_0x268ff7++){if(_0x2a1f8b(this,_0x1f53ff[_0x268ff7],_0x1f53ff,_0x268ff7+0x1))return!0x0;}for(let _0x455dee=0x0;_0x455dee<_0x1f53ff['length'];_0x455dee++){if(_0x2a1f8b(this,_0x1f53ff[_0x455dee],_0xeccacd,0x0))return!0x0;}return!0x1;function _0x2a1f8b(_0x1bbc00,_0x12fce0,_0x225f5c,_0x1f1d59){for(let _0x321b3d=_0x1f1d59;_0x321b3d<_0x225f5c['length'];_0x321b3d++){const _0x3aa44b=_0x225f5c[_0x321b3d];if(_0x3aa44b['type']!==_0x12fce0['type']||_0x3aa44b['author']['id']!==_0x12fce0['author']['id']||_0x3aa44b['subType']!==_0x12fce0['subType'])continue;if(!qt(_0x12fce0,_0x3aa44b))continue;if('attribute'==_0x12fce0['type']&&_0x12fce0['data']['oldValue']!=_0x3aa44b['data']['oldValue'])continue;if('attribute'==_0x12fce0['type']&&_0x1bbc00['_isBlockAttribute'](_0x12fce0['data']['key']))continue;if('formatBlock'==_0x12fce0['type']){const _0x20bc87=_0x1bbc00['editor']['model'],_0xf9e1c=_0x12fce0['getContainedElement']();if(_0xf9e1c&&(_0x20bc87['schema']['isObject'](_0xf9e1c)||_0x20bc87['schema']['isLimit'](_0xf9e1c)))continue;}const _0x17f1d5=_0x3688f8['get'](_0x12fce0),_0x507eed=_0x4fc2a3['get'](_0x12fce0),_0x5623aa=_0x4fc2a3['get'](_0x3aa44b),_0x134c3e=_0x12fce0['commentThread']&&_0x12fce0['commentThread']['length'],_0xdb57d=_0x3aa44b['commentThread']&&_0x3aa44b['commentThread']['length'];if(!_0x134c3e&&_0x17f1d5(_0x5623aa,_0x507eed))return _0x1bbc00['_joinSuggestions'](_0x3aa44b,_0x12fce0),_0x4fc2a3['delete'](_0x12fce0),!0x0;if(!_0xdb57d&&_0x17f1d5(_0x507eed,_0x5623aa))return _0x1bbc00['_joinSuggestions'](_0x12fce0,_0x3aa44b),_0x4fc2a3['delete'](_0x3aa44b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5cf3a3,_0x8e9884){if(_0x5cf3a3['isMultiRange']){for(const _0x4bbb7e of _0x8e9884['getRanges']())_0x5cf3a3['addRange'](_0x4bbb7e);}else{const _0x40e4ae=_0x8e9884['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5cf3a3,this['_model']['createRange'](_0x5cf3a3['getFirstRange']()['start'],_0x40e4ae));}_0x8e9884['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2ce937,_0x105d01,_0x38d4cc){const _0x34d2d5=_0x2ce937['startsWith']('format')||_0x2ce937['startsWith']('attribute')?'FORMATTING':_0x2ce937['toUpperCase']();return o(this['editor']['locale'],_0x105d01+'_'+_0x34d2d5+'_SUGGESTION_ANNOUNCEMENT',_0x38d4cc);}['_initAriaMarkerChangeAnnouncements'](){const _0xe1440b=this['editor'];if(!_0xe1440b['ui'])return;const {ariaLiveAnnouncer:_0x5355f1}=_0xe1440b['ui'];_0x42c1d1(this['_model'],({left:_0x1255d0,entered:_0x15337d})=>{for(const _0x346a08 of _0x1255d0){const {group:_0x3ca2bd,type:_0x2d0c20}=this['_splitMarkerName'](_0x346a08['name']);if('suggestion'===_0x3ca2bd){_0x5355f1['announce'](this['_getMarkerAnnouncementText'](_0x2d0c20,'LEAVE'));break;}}for(const _0x4fd8a2 of _0x15337d){const {group:_0x3bedfa,type:_0x22bfa4}=this['_splitMarkerName'](_0x4fd8a2['name']);if('suggestion'===_0x3bedfa){_0x5355f1['announce'](this['_getMarkerAnnouncementText'](_0x22bfa4,'ENTER',_0x1433f3(_0x2e1124)));break;}}});}['_processAttributeChanges'](_0x45451a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x398bf0=this['editor'],_0x5b10e1=_0x398bf0['model']['document']['differ']['getChanges']();if(0x0==_0x5b10e1['length'])return!0x1;const _0x432461=[],_0x23798f=_0x5b10e1['filter'](_0x1e3cf6=>'attribute'==_0x1e3cf6['type']),_0xd25694=_0x5b10e1['filter'](_0x3c9aa6=>'insert'==_0x3c9aa6['type']&&'$text'!=_0x3c9aa6['name']),_0x343bce=_0x5b10e1['filter'](_0x15b82c=>'remove'==_0x15b82c['type']&&'$text'!=_0x15b82c['name']);for(const _0x12b817 of _0x23798f)_0x432461['push']({'key':_0x12b817['attributeKey'],'newValue':_0x12b817['attributeNewValue'],'oldValue':_0x12b817['attributeOldValue'],'range':Lt(_0x12b817['range'],_0x398bf0['model'])});for(const _0x2e39ab of _0xd25694){const _0x4fa155=_0x343bce['find'](_0x38655c=>_0x38655c['position']['isEqual'](_0x2e39ab['position']));_0x4fa155&&_0x432461['push']({'key':m,'newValue':_0x2e39ab['name'],'oldValue':_0x4fa155['name'],'range':_0x398bf0['model']['createRangeOn'](_0x2e39ab['position']['nodeAfter'])});}return 0x0!=_0x432461['length']&&this['_reduceExistingSuggestions'](_0x45451a,_0x432461);}['_processAttributeSuggestions'](_0x1d5385){let _0x2d0ceb=!0x1;const _0x52dcf1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x59ea38=>_0x59ea38['data']['newRange']&&_0x59ea38['name']['startsWith']('suggestion:attribute:'));for(const _0x46516e of _0x52dcf1){const {subType:_0x27e9bb,id:_0x1e9b61}=this['_splitMarkerName'](_0x46516e['name']),_0x304e2f=_0x27e9bb['split']('|')[0x0];for(const _0x4c9d56 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4c9d56['id']!=_0x1e9b61&&'attribute'==_0x4c9d56['type']&&_0x4c9d56['data']&&_0x4c9d56['data']['key']==_0x304e2f&&_0x4c9d56['getFirstRange']()['isIntersecting'](_0x46516e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4c9d56,_0x46516e['data']['newRange'],_0x1d5385),_0x2d0ceb=!0x0);}return _0x2d0ceb;}['_recordAttributeChanges'](_0x59bb01){this['_recordAttributeSuggestions']=!0x0,_0x59bb01();}['_isRegisteredAttribute'](_0x230c40){const _0x229097=this['_isBlockAttribute'](_0x230c40),_0x2cb042=this['_inlineAttributeKeys']['has'](_0x230c40);return _0x229097||_0x2cb042;}['_reduceExistingSuggestions'](_0x22961f,_0x5be314){if(0x0==_0x5be314['length'])return!0x1;let _0x2569f8=!0x1;for(const _0x46cc52 of _0x5be314){const _0x4d6648=this['_findSuggestions'](_0x46cc52['range'],'attribute')['filter'](_0x5f178a=>!_0x5f178a['meta']['isNextTo'])['map'](_0x4f3c86=>_0x4f3c86['suggestion']),_0x3e9821=_0x385015({'newValue':_0x46cc52['newValue']});_0x4d6648['filter'](_0x41da5f=>{const [_0x5fe082,_0x5ef566]=_0x41da5f['subType']['split']('|');return _0x5fe082==_0x46cc52['key']&&_0x5ef566!=_0x3e9821;})['forEach'](_0x5b3bf5=>{this['_reduceSuggestionAttributeRange'](_0x5b3bf5,_0x46cc52['range'],_0x22961f),_0x2569f8=!0x0;});}return _0x2569f8;}['_reduceSuggestionAttributeRange'](_0x3de847,_0x44a459,_0x593032){const _0x56e33c=_0x3de847['getFirstRange']()['getDifference'](_0x44a459);0x0!==_0x56e33c['length']?0x1!==_0x56e33c['length']?this['_breakSuggestionMarker'](_0x3de847,_0x44a459['start'],_0x44a459['end']):this['_setSuggestionRange'](_0x3de847,_0x56e33c[0x0]):_0x593032['removeMarker'](_0x3de847['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x53a7ed){this['_editor']=_0x53a7ed,this['_model']=_0x53a7ed['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x214c8a,_0x327b01,_0xadba13,_0x2d1760,_0x486bc8,_0x17c1da){return new u(this['_model'],{'type':_0x214c8a,'subType':_0x327b01,'id':_0xadba13,'author':_0x2d1760,'creator':_0x2d1760,'attributes':_0x486bc8,'onAttributesChange':_0x17c1da,'onAccept':(..._0x2949e2)=>this['getSuggestionCallback'](_0x214c8a,_0x327b01,'accept')(..._0x2949e2),'onDiscard':(..._0xb69bdf)=>this['getSuggestionCallback'](_0x214c8a,_0x327b01,'discard')(..._0xb69bdf)});}['registerCustomCallback'](_0x35f53c,_0x20f6d2,_0x3de1dd,_0x53dbe0){const _0x343e80=_0x35f53c+':'+_0x20f6d2+':'+_0x3de1dd;this['_customCallbacks']['set'](_0x343e80,_0x53dbe0);}['getSuggestionCallback'](_0x5979a4,_0x1f2690,_0x383b67){const _0x5aea45=_0x5979a4+':'+_0x1f2690+':'+_0x383b67;return this['_customCallbacks']['get'](_0x5aea45)||this['_defaultCallbacks']['get'](_0x5979a4+':'+_0x383b67);}['_registerDefaultCallbacks'](){const _0x387c8e=()=>!0x1,_0x826bad=_0x434eb6=>{_0x434eb6['sort']((_0x5b99a5,_0x575760)=>_0x5b99a5['start']['isBefore'](_0x575760['start'])?0x1:-0x1),this['_model']['change'](_0x54cbb9=>{for(const _0x1ed56d of _0x434eb6){let _0x53241f;_0x53241f=_0x1ed56d['end']['isAtEnd']&&_0x1ed56d['end']['parent']==_0x1ed56d['start']['nodeAfter']?_0x54cbb9['createSelection'](_0x1ed56d['start']['nodeAfter'],'on'):_0x54cbb9['createSelection'](_0x1ed56d),this['_model']['deleteContent'](_0x53241f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x38cba3=(_0x2249ba,_0x281823)=>{_0x281823&&this['_model']['change'](_0x501eac=>{const {commandName:_0x4cd509,commandParams:_0x5251dd=[]}=_0x281823,_0x7392a6=_0x2249ba['map'](_0x4df8c8=>(Vt(_0x4df8c8)&&(_0x4df8c8=this['_model']['createRange'](_0x4df8c8['end'])),_0x4df8c8))['filter'](_0x513913=>'$graveyard'!==_0x513913['root']['rootName']);if(_0x7392a6['length']<0x1)return;const _0x3af507=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5dc5a7=>_0xac092f['fromRange'](_0x5dc5a7));_0x501eac['setSelection'](_0x7392a6);for(const _0x3493e4 of this['_editor']['commands']['commands']())_0x3493e4['refresh']();_0x5251dd['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4cd509,..._0x5251dd);const _0x10a093=_0x3af507['filter'](_0xe7dd0d=>'$graveyard'!=_0xe7dd0d['root']['rootName']);_0x10a093['length']>0x0&&_0x501eac['setSelection'](_0x10a093);for(const _0x1c0036 of _0x3af507)_0x1c0036['detach']();});},_0x7f823a=(_0x397f80,_0x25443f)=>0x1==_0x397f80['length']&&0x1==_0x25443f['length']&&_0x397f80[0x0]['end']['isEqual'](_0x25443f[0x0]['start']),_0x3cb510=(_0x4f103d,_0x330c31,_0x200117,_0x37a46a)=>Ht(_0x4f103d,_0x330c31,_0x200117,_0x37a46a)?[_0x4f103d,_0x330c31]:Ht(_0x330c31,_0x4f103d,_0x37a46a,_0x200117)?[_0x330c31,_0x4f103d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x387c8e),this['_defaultCallbacks']['set']('insertion:discard',_0x826bad),this['_defaultCallbacks']['set']('insertion:join',_0x7f823a),this['_defaultCallbacks']['set']('insertion:chain',_0x3cb510),this['_defaultCallbacks']['set']('deletion:accept',_0x826bad),this['_defaultCallbacks']['set']('deletion:discard',_0x387c8e),this['_defaultCallbacks']['set']('deletion:join',_0x7f823a),this['_defaultCallbacks']['set']('deletion:chain',_0x3cb510),this['_defaultCallbacks']['set']('formatInline:accept',_0x38cba3),this['_defaultCallbacks']['set']('formatInline:discard',_0x387c8e),this['_defaultCallbacks']['set']('formatInline:join',_0x7f823a),this['_defaultCallbacks']['set']('formatInline:chain',_0x387c8e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x38cba3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x387c8e),this['_defaultCallbacks']['set']('formatBlock:join',_0x7f823a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x387c8e),this['_defaultCallbacks']['set']('attribute:accept',_0x387c8e),this['_defaultCallbacks']['set']('attribute:discard',(_0x5b2c09,_0x27fc63)=>{if(!_0x27fc63)return;const _0x57884e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x43dabf=>{if(_0x27fc63['key']==m)for(const _0x504df5 of _0x5b2c09){const _0x5cf3dd=_0x504df5['start']['nodeAfter'],_0x354131=_0x27fc63['oldValue'];_0x43dabf['rename'](_0x5cf3dd,_0x354131);}else{if(_0x57884e['_isBlockAttribute'](_0x27fc63['key'])){for(const _0x2ea343 of _0x5b2c09)void 0x0!==_0x27fc63['oldValue']?_0x43dabf['setAttribute'](_0x27fc63['key'],_0x27fc63['oldValue'],_0x2ea343['start']['nodeAfter']):_0x43dabf['removeAttribute'](_0x27fc63['key'],_0x2ea343['start']['nodeAfter']);}else{for(const _0x1fda88 of _0x5b2c09)_0x27fc63['oldValue']?_0x43dabf['setAttribute'](_0x27fc63['key'],_0x27fc63['oldValue'],_0x1fda88):_0x43dabf['removeAttribute'](_0x27fc63['key'],_0x1fda88);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x7f823a);}}function Ut(_0x3be51c,_0x288c29,_0x297a59){for(const _0x5dbbe9 of _0x288c29['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5dbbe9['root']==_0x5dbbe9)return!0x1;if(!_0x297a59['containsItem'](_0x5dbbe9))return!0x1;if(_0x3be51c['isObject'](_0x5dbbe9)||_0x3be51c['isLimit'](_0x5dbbe9))return!0x0;}return!0x1;}function Vt(_0xdd8af1){return _0xdd8af1['end']['parent']==_0xdd8af1['start']['nodeAfter']&&_0xdd8af1['end']['isAtStart'];}function Pt(_0x441c05,_0x263b70,_0x27d9c7,_0x283ece){const _0x416a5d=_0x4c2acf=>!_0x4c2acf['item']['is']('$textProxy')&&!_0x283ece['isObject'](_0x4c2acf['item']),_0x2a3f09=_0x441c05['start']['getLastMatchingPosition'](_0x416a5d),_0xbbe266=_0x441c05['end']['getLastMatchingPosition'](_0x416a5d,{'direction':'backward'});return(!_0x441c05['start']['isEqual'](_0x2a3f09)||!_0x441c05['end']['isEqual'](_0xbbe266))&&(_0x2a3f09['isBefore'](_0xbbe266)?_0x27d9c7['updateMarker'](_0x263b70,{'range':_0x27d9c7['createRange'](_0x2a3f09,_0xbbe266)}):_0x27d9c7['removeMarker'](_0x263b70),!0x0);}function Gt(_0x1c9e1b){return _0x385015(_0x1c9e1b);}function Ft(_0x9f096c){const _0x488b87=_0x9f096c['start']['nodeAfter'];return _0x488b87&&_0x488b87['is']('element');}function Lt(_0xb2aab7,_0xfb9987){return null==_0xb2aab7['end']['nodeBefore']&&_0xb2aab7['end']['parent']==_0xb2aab7['start']['nodeAfter']?Jt(_0xb2aab7['start']['nodeAfter'],_0xfb9987):_0xb2aab7;}function Jt(_0x39f82d,_0x3a476b){const _0x486c5c=_0x3a476b['schema']['isObject'](_0x39f82d)||_0x3a476b['schema']['isSelectable'](_0x39f82d);return _0x3a476b['createRange'](_0x3a476b['createPositionAt'](_0x39f82d,'before'),_0x486c5c?_0x3a476b['createPositionAfter'](_0x39f82d):_0x3a476b['createPositionAt'](_0x39f82d,'end'));}function Ht(_0x5c3e07,_0xb51dc5,_0x58eee7,_0x45d22b){return!!qt(_0x5c3e07,_0xb51dc5)&&_0x58eee7['end']['isEqual'](_0x45d22b['start']);}function qt(_0x41d79c,_0x58d300){if(!_0x41d79c['_isDataLoaded']||!_0x58d300['_isDataLoaded'])return!0x1;const _0x20c669=new Set(Object['keys'](_0x41d79c['attributes'])),_0x36b20d=new Set(Object['keys'](_0x58d300['attributes']));if(_0x20c669['delete']('groupId'),_0x36b20d['delete']('groupId'),0x0==_0x20c669['size']&&0x0==_0x36b20d['size'])return!0x0;if(_0x20c669['size']!=_0x36b20d['size'])return!0x1;const _0x5efcf7={..._0x41d79c['attributes']},_0x306e7f={..._0x58d300['attributes']};return delete _0x5efcf7['groupId'],delete _0x306e7f['groupId'],JSON['stringify'](_0x5efcf7)==JSON['stringify'](_0x306e7f);}function zt(_0x33f27c,_0x238296){const _0x58f51b=Kt(_0x33f27c['attributes']),_0x2e0e7a=Kt(_0x238296);if(!_0x33f27c['_isDataLoaded'])return!0x1;for(const _0x55a144 of Object['keys'](_0x2e0e7a))if(!_0x3c26f1(_0x58f51b[_0x55a144],_0x2e0e7a[_0x55a144]))return!0x1;return!0x0;}function Kt(_0x2fe274){const _0x215049=Object['assign']({},_0x2fe274);return delete _0x215049['skipNestingCheck'],delete _0x215049['tablePasteChainId'],_0x215049;}class ge extends/* #__PURE__ -- @preserve */
25
+ _0x1ceaf8(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2ecfcd,_0x530d03,_0x5d66d4,_0x424199){super(),this['model']=_0x530d03,this['view']=_0x5d66d4,this['commentThreadController']=_0x424199,this['_editor']=_0x2ecfcd,this['_acceptCommand']=_0x2ecfcd['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2ecfcd['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4c8b85,_0x44a8bf)=>_0x4c8b85||_0x44a8bf),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2899e8=>_0x2899e8&&this['_editor']['model']['canEditAt'](_0x530d03['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3ed2f6=>_0x3ed2f6&&this['_editor']['model']['canEditAt'](_0x530d03['getRanges']())),this['_pendingAction']=null,_0x5d66d4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5d66d4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5d66d4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5d66d4,'change:isDirty',()=>{_0x5d66d4['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 _0x50ce89=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x50ce89);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x442707{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x8da088,_0x5ccf93,_0x40268f,_0x4d9dbf){super(_0x8da088),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x594c0a(_0x8da088,o(_0x8da088,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5ccf93['authoredAt']),this['bind']('authoredAt')['to'](_0x5ccf93),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',_0x5ccf93,'authoredAt',this,'descriptionParts',(_0x5c6a2e,_0x29f3e8,_0x48555f)=>{const _0x17adbd=_0x48555f['map'](_0x14d05d=>ns(_0x14d05d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5c6a2e-0x1,_0x5ccf93['author']['name'],_0x29f3e8?_0x4d9dbf['formatDateTime'](_0x29f3e8):'',new DOMParser()['parseFromString'](_0x17adbd,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2b4982(),this['focusTracker']=new _0x4044de(),this['keystrokes']=new _0x6eab89(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2fbf1d=>_0x2fbf1d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5ccf93,this['_localUser']=_0x40268f,this['_config']=_0x4d9dbf,_0x4d9dbf['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x850d6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5e24ad}=this['_config'];this['commentsListView']=new _0x5e24ad(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',_0x1f05d4=>_0x1f05d4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x171bc4,_0x5b2891)=>_0x171bc4||!!_0x5b2891);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x14200b}=this['_config'],_0x223e16=new _0x14200b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x196ed5=_0x223e16['commentInputView'];return _0x223e16['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x196ed5,'value',(_0x903608,_0x17fac1,_0x4b4ea4)=>!!_0x4b4ea4||_0x903608&&!_0x17fac1),_0x196ed5['on']('submit',(_0x13e426,_0x2414f9)=>{this['fire']('addComment',_0x2414f9),_0x196ed5['editor']['setData']('');}),_0x196ed5['on']('cancel',()=>this['focus']()),_0x196ed5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x223e16;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x2638ec,_0x55123c,_0x3f2993,_0x25b2e0){super(_0x2638ec,_0x55123c,_0x3f2993,_0x25b2e0),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2a22fa=>_0x2a22fa&&_0x2a22fa[0x0]?_0x2a22fa[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2b8341,_0x11a0c2)=>{let _0x3a2af3='';for(const _0x3c9292 of _0x2b8341)_0x3a2af3+='<p>'+ns(_0x3c9292['content'],_0x3c9292['color'])+'</p>';return _0x11a0c2?_0x3a2af3:ti(_0x3a2af3,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x25b2e0['SuggestionView'](_0x2638ec,_0x55123c,{'formatDateTime':_0x25b2e0['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 _0xfeb7e4=this['bindTemplate'],_0x39644f=[this['suggestionView']];return this['commentsListView']&&_0x39644f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x39644f['push'](this['commentThreadInputView']),_0x39644f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xfeb7e4['if']('isActive','ck-suggestion-wrapper--active'),_0xfeb7e4['to']('type',_0x226353=>'ck-suggestion-'+_0x226353),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':_0xfeb7e4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x39644f};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ue extends _0x442707{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x19c83b,_0x1c605f,_0x6aa89c){super(_0x19c83b),this['_model']=_0x1c605f,this['_config']=_0x6aa89c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1c605f),this['acceptButton']=this['_createButton'](o(_0x19c83b,'Accept\x20suggestion'),_0x2ec321['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x19c83b,'Discard\x20suggestion'),_0x2ec321['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x336d8b(_0x19c83b,_0x1c605f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2b4982([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4044de(),this['keystrokes']=new _0x6eab89(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x49a10d=>_0x49a10d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x279837=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x279837['innerHTML']=this['description'],this['on']('change:description',(_0x5e2e8f,_0x3ea026,_0x5806aa)=>{_0x279837['innerHTML']=_0x5806aa;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x20eeb5=this['bindTemplate'],_0x39ec7c=[{'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':_0x20eeb5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x20eeb5['to']('authoredAt',_0x3c8bb7=>this['_config']['formatDateTime'](_0x3c8bb7))}]}]},{'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']&&_0x39ec7c['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':_0x39ec7c}]};}['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'](_0x2ef3a7,_0x70e19a,_0x226746,_0x28d877,_0x3f47e9){const _0x47dfa5=new _0x1e08f8(this['locale']);return _0x47dfa5['set']({'label':_0x2ef3a7,'icon':_0x70e19a,'tooltip':!0x0,'tooltipPosition':_0x3f47e9}),_0x47dfa5['extendTemplate']({'attributes':{'class':_0x226746}}),_0x47dfa5['on']('execute',()=>{this['fire'](_0x28d877,this['_model']['id']);}),_0x47dfa5;}['_setupKeyboardNavigation'](){const _0x3ea02d=this['element'];this['keystrokes']['listenTo'](_0x3ea02d);for(const _0x2c8491 of this['focusables'])this['focusTracker']['add'](_0x2c8491['element']),this['keystrokes']['listenTo'](_0x2c8491['element']);this['keystrokes']['set']('enter',(_0x5160aa,_0x574f8c)=>{_0x3ea02d===_0x5160aa['target']&&(this['focusCycler']['focusFirst'](),_0x574f8c());}),this['keystrokes']['set']('esc',(_0x2e33e6,_0x215a3e)=>{_0x3ea02d!==_0x2e33e6['target']&&(this['focus'](),_0x215a3e());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0xa4c963{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x39d8d3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43e7ea){super(_0x43e7ea),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4d00ee=this['editor']['config'];_0x4d00ee['define']('trackChanges.SuggestionThreadView',de),_0x4d00ee['define']('trackChanges.SuggestionView',ue),_0x4d00ee['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4d00ee['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xb40d68,_0xccac7a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x534565,_0x58a0ca]of this['_handleControllerBuffer']){const _0xdccf73=this['_suggestionToController']['has'](_0x534565);_0xdccf73||_0x58a0ca?_0xdccf73&&_0x58a0ca&&this['_destroyController'](_0x534565):this['_initializeController'](_0x534565);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xb40d68,_0xccac7a);}['init'](){const _0x5f40ff=this['editor'],_0x13d756=_0x5f40ff['plugins']['get']('TrackChangesEditing'),_0x31ad6b=_0x5f40ff['plugins']['get']('Annotations'),_0x592d0e=_0x5f40ff['plugins']['get']('EditorAnnotations'),_0x2fbf00=_0x5f40ff['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x592d0e['addSourceCollector'](()=>{const _0x42197a=[];for(const [_0x42b9ea,_0x543a10]of Array['from'](this['_suggestionToController'])){const _0x515938=_0x42b9ea['getAllAdjacentSuggestions'](),_0x1eb6ad=[];for(const _0x3ce9bc of _0x515938){if(!_0x3ce9bc['isInContent'])continue;if(_0x3ce9bc['isMultiRange']){_0x1eb6ad['push'](..._0x3ce9bc['getRanges']());continue;}const _0xbdb4d2=_0x3ce9bc['getFirstRange']();if(_0x1eb6ad['length']>0x0){const _0x173cf4=_0x1eb6ad[0x0]['getJoined'](_0xbdb4d2);if(_0x173cf4){_0x1eb6ad[0x0]=_0x173cf4;continue;}}_0x1eb6ad['push'](_0xbdb4d2);}_0x42197a['push']([_0x543a10['view'],_0x1eb6ad]);}return _0x42197a;}),this['listenTo'](_0x13d756,'suggestionLoaded',(_0x2d7f4e,_0x32e76e)=>{this['listenTo'](_0x32e76e,'change:previous',(_0x37ae6a,_0xba4cea,_0x52c1d8,_0x287b22)=>{_0x32e76e['isInContent']&&(null==_0x52c1d8?(this['_updateController'](_0x287b22['head']),this['_handleSuggestionControllerDelayed'](_0x32e76e,!0x1)):(this['_updateController'](_0x52c1d8['head']),null==_0x287b22&&this['_handleSuggestionControllerDelayed'](_0x32e76e,!0x0)));}),null!==_0x32e76e['previous']?this['_updateController'](_0x32e76e['head']):this['_handleSuggestionControllerDelayed'](_0x32e76e,!0x1);}),this['listenTo'](_0x13d756,'suggestionUnloaded',(_0x58159e,_0x418d4f,_0x55c78e)=>{this['stopListening'](_0x418d4f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x418d4f),this['_suggestionToController']['has'](_0x418d4f)&&this['_destroyController'](_0x418d4f),_0x55c78e&&this['_updateController'](_0x55c78e['head']);}),this['listenTo'](_0x13d756,'suggestionChanged',(_0x56e898,_0x2260e9)=>{this['_updateController'](_0x2260e9);}),this['listenTo'](_0x31ad6b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2fbf00,'addComment',(_0x2c2cb9,{threadId:_0x53b275,isFromAdapter:_0x19b957})=>{if(_0x19b957||!_0x13d756['hasSuggestion'](_0x53b275))return;const _0x3e2f4a=_0x13d756['getSuggestion'](_0x53b275);this['_suggestionToController']['get'](_0x3e2f4a)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xc63f9b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4d78d7;for(const _0x3d9a41 in _0xc63f9b){const _0x5d8967=_0x3d9a41,_0x402f18=_0xc63f9b[_0x5d8967];if('trackChangesLicenseKeyValid'==_0x402f18||'trackChangesLicenseKeyInvalid'==_0x402f18||'trackChangesLicenseKeyExpired'==_0x402f18||'trackChangesLicenseKeyDomainLimit'==_0x402f18||'trackChangesLicenseKeyNotAllowed'==_0x402f18||'trackChangesLicenseKeyEvaluationLimit'==_0x402f18||'trackChangesLicenseKeyTrialLimit'==_0x402f18||'trackChangesLicenseKeyDevelopmentLimit'==_0x402f18||'trackChangesLicenseKeyUsageLimit'==_0x402f18){delete _0xc63f9b[_0x5d8967],_0x4d78d7=_0x402f18,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4d78d7&&_0xc63f9b['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4d78d7&&_0xc63f9b['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4d78d7&&_0xc63f9b['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4d78d7&&_0xc63f9b['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4d78d7&&_0xc63f9b['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4d78d7&&_0xc63f9b['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x4d78d7&&_0xc63f9b['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4d78d7&&_0xc63f9b['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4b335a=this['editor']['plugins']['get']('Annotations'),_0x449608=this['editor']['plugins']['get']('TrackChangesEditing'),_0x339974=Array['from'](_0x4b335a['activeAnnotations'],_0x26c5bc=>_0x26c5bc['innerView'])['filter'](_0x30f2aa=>this['_viewToController']['has'](_0x30f2aa)),_0x821d83=[];for(const _0x31115b of _0x339974){const _0x1f37eb=this['_viewToController']['get'](_0x31115b)['model']['getAllAdjacentSuggestions']();_0x821d83['push'](..._0x1f37eb['reduce']((_0x5d1bb6,_0xb7ccd1)=>[..._0x5d1bb6,..._0xb7ccd1['getMarkerNames']()],[]));}_0x449608['activeMarkers']=_0x821d83;}['_addUIComponentsToFactory'](){const _0xd68c6f=this['editor'],_0x5aeeea=_0xd68c6f['locale'],_0x3b60bb=o(_0x5aeeea,'Track\x20changes'),_0x4001e9=new _0x41cb48([{'type':'switchbutton','model':new _0x2060e5({'withText':!0x0,'isToggleable':!0x0,'label':_0x3b60bb,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2060e5({'withText':!0x0,'label':o(_0x5aeeea,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2060e5({'withText':!0x0,'label':o(_0x5aeeea,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2060e5({'withText':!0x0,'label':o(_0x5aeeea,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2060e5({'withText':!0x0,'label':o(_0x5aeeea,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x53a768 of _0x4001e9)if(pe(_0x53a768)){const _0x380578=_0xd68c6f['commands']['get'](_0x53a768['model']['commandName']);_0x53a768['model']['bind']('isOn','isEnabled')['to'](_0x380578,'value','isEnabled');}_0xd68c6f['ui']['componentFactory']['add']('trackChanges',_0x37f447=>this['_createToolbarButton'](_0x37f447,_0x4001e9,_0x3b60bb)),_0xd68c6f['ui']['componentFactory']['add']('menuBar:trackChanges',_0xbac5f6=>this['_createMenuBarMenu'](_0xbac5f6,_0x4001e9,_0x3b60bb));}['_createToolbarButton'](_0x16ba64,_0x8269a0,_0x33cfa1){const _0x4ef4be=_0x2321d0(_0x16ba64,_0x5b609a),_0x1b24f8=this['editor']['commands']['get']('trackChanges');_0x4ef4be['buttonView']['set']({'tooltip':_0x33cfa1,'label':_0x33cfa1,'icon':Ce}),_0x4ef4be['buttonView']['bind']('isOn')['to'](_0x1b24f8,'value'),_0x4ef4be['buttonView']['on']('execute',()=>{_0x1b24f8['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x4ef4be,_0x8269a0,{'role':'menu'});const _0xfb48f0=[];for(const _0x5c4fdf of _0x8269a0)pe(_0x5c4fdf)&&_0xfb48f0['push'](this['editor']['commands']['get'](_0x5c4fdf['model']['commandName']));const _0x2a7d92=_0x4ef4be['buttonView'];return _0x2a7d92['actionView']['unbind']('isEnabled'),_0x2a7d92['arrowView']['unbind']('isEnabled'),_0x2a7d92['actionView']['bind']('isEnabled')['to'](_0x1b24f8,'isEnabled'),_0x2a7d92['arrowView']['bind']('isEnabled')['toMany'](_0xfb48f0,'isEnabled',(..._0x22cfd5)=>_0x22cfd5['some'](_0x2401a2=>_0x2401a2)),_0x4ef4be['on']('execute',_0x215b63=>{this['editor']['execute'](_0x215b63['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ef4be;}['_createMenuBarMenu'](_0x4a347e,_0x89c2b4,_0x480006){const _0x1db880=new _0x538430(_0x4a347e),_0xe42156=this['editor']['commands']['get']('trackChanges');_0x1db880['buttonView']['set']({'label':_0x480006,'icon':Ce});const _0x42bd25=new _0xc23e53(_0x4a347e);for(const _0x3917e4 of _0x89c2b4){if('separator'==_0x3917e4['type']){_0x42bd25['items']['add'](new _0x519292(_0x4a347e));continue;}const _0x198c08=new _0x1826aa(_0x4a347e,_0x1db880),_0x5af64d=new _0x52e206(_0x4a347e),_0x45ab80=_0x3917e4['model'];_0x5af64d['bind'](...Object['keys'](_0x45ab80))['to'](_0x45ab80),_0x5af64d['delegate']('execute')['to'](_0x1db880),_0x5af64d['on']('execute',()=>{this['editor']['execute'](_0x45ab80['commandName']),this['editor']['editing']['view']['focus']();}),_0x198c08['children']['add'](_0x5af64d),_0x42bd25['items']['add'](_0x198c08);}return _0x1db880['bind']('isEnabled')['to'](_0xe42156,'isEnabled'),_0x1db880['panelView']['children']['add'](_0x42bd25),_0x1db880;}['_initializeController'](_0x1bebf0){const _0x40de0c=this['editor'],_0x28eebc=_0x40de0c['config'],_0x1a8dee=_0x40de0c['plugins']['get']('Annotations'),_0x42ff89=_0x40de0c['plugins']['get']('CommentsRepository'),_0x351733=_0x40de0c['plugins']['get']('EditorAnnotations'),_0x4afcf0=_0x40de0c['plugins']['get'](_0x39d8d3)['me'],_0x54ec6f=_0x28eebc['get']('trackChanges')['SuggestionThreadView'],_0x31763a=_0x28eebc['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x43d347,CommentThreadInputView:_0x4d5b73}=_0x40de0c['plugins']['get']('CommentsUI');let _0x20e346,_0x42312f,_0x327cd5;this['_annotationViews']['has'](_0x1bebf0['id'])?(_0x42312f=this['_annotationViews']['get'](_0x1bebf0['id']),_0x20e346=_0x42312f['mainView']):(_0x20e346=new _0x54ec6f(_0x40de0c['locale'],_0x1bebf0,_0x4afcf0,{'disableComments':this['_disableComments'],'editorConfig':{..._0x28eebc['get']('comments.editorConfig'),'licenseKey':_0x28eebc['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x28eebc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x28eebc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x28eebc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x31f0ea(_0x28eebc['get']('locale')),'CommentView':_0x28eebc['get']('comments')['CommentView'],'CommentsListView':_0x43d347,'CommentThreadInputView':_0x4d5b73,'SuggestionView':_0x31763a}),_0x20e346['suggestionView']['acceptButton']['on']('execute',()=>{_0x40de0c['editing']['view']['focus']();}),_0x20e346['suggestionView']['discardButton']['on']('execute',()=>{_0x40de0c['editing']['view']['focus']();}),_0x42312f=_0x1a8dee['createAnnotationView'](this['editor']['locale'],_0x20e346),_0x42312f['bind']('isDirty')['to'](_0x20e346,'isDirty'),_0x42312f['bind']('length')['to'](_0x20e346),_0x42312f['bind']('type')['to'](_0x20e346,'type',_0x40159a=>'suggestion-'+_0x40159a),_0x20e346['on']('escape',()=>{_0x327cd5['fire']('escape');}),this['_annotationViews']['set'](_0x1bebf0['id'],_0x42312f));const _0x338740=_0x42ff89['createCommentThreadController'](_0x1bebf0['commentThread'],_0x20e346),_0x21ed50=new ge(_0x40de0c,_0x1bebf0,_0x20e346,_0x338740),_0x300026=_0x1bebf0['getAllAdjacentSuggestions']()['filter'](_0x4906c2=>_0x4906c2['isInContent']);_0x20e346['descriptionParts']=_0x40de0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x300026),this['_suggestionToController']['set'](_0x1bebf0,_0x21ed50),this['_viewToController']['set'](_0x20e346,_0x21ed50),_0x327cd5=_0x1a8dee['createAnnotation']({'view':_0x42312f,'target':()=>{const _0x562dc8=[],_0x1961e8=_0x1bebf0['getAllAdjacentSuggestions']()['filter'](_0x455f9b=>_0x455f9b['isInContent']);for(const _0x1ff2a6 of _0x1961e8)_0x562dc8['push'](..._0x1ff2a6['getMarkers']());return _0x35ad2b(_0x40de0c['editing'],_0x562dc8);},'type':()=>'suggestion-'+_0x21ed50['view']['type']}),_0x42ff89['_bindAnnotationToEditors'](_0x20e346,_0x327cd5),_0x1a8dee['add'](_0x327cd5),_0x351733['registerAnnotation'](_0x327cd5);}['_destroyController'](_0xfad2f){const _0x18d51c=this['editor']['plugins']['get']('CommentsRepository'),_0x3d05f9=this['editor']['plugins']['get']('Annotations'),_0x35eff9=this['_suggestionToController']['get'](_0xfad2f),_0x4f7d32=_0x35eff9['view'],_0x2f5f6f=_0x3d05f9['getByInnerView'](_0x4f7d32);_0x18d51c['_unbindEditors'](_0x4f7d32),_0x2f5f6f&&_0x3d05f9['remove'](_0x2f5f6f),this['_suggestionToController']['delete'](_0xfad2f),this['_viewToController']['delete'](_0x4f7d32),_0x35eff9['destroy']();}['_updateController'](_0x49fa9c){if(!_0x49fa9c['isInContent']||!this['_suggestionToController']['has'](_0x49fa9c))return;const _0x5d41a9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18e20c=this['_suggestionToController']['get'](_0x49fa9c),_0x198a4b=_0x49fa9c['getAllAdjacentSuggestions']();_0x18e20c['view']['descriptionParts']=_0x5d41a9['descriptionFactory']['getDescriptions'](_0x198a4b);}['destroy'](){for(const _0x2fc824 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2fc824);for(const _0x45990d of this['_annotationViews']['values']())_0x45990d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x127ae5){return'model'in _0x127ae5;}class k extends _0xa4c963{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x17ee04){this['editor']['plugins']['get'](p)['adapter']=_0x17ee04;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x22bd92){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x22bd92);}['getSuggestions']({skipNotAttached:_0x4cd191=!0x1,toJSON:_0x5efbf0=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4cd191,'toJSON':_0x5efbf0});}['getSuggestion'](_0x34671e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x34671e);}}const w=['Pagination'];class T extends _0xa4c963{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3979e4=this['editor'];if(_0x3979e4['config']['define']('trackChangesData.editorCreator',_0x3023af=>{const _0x2e6a7a=_0x3979e4['model']['document']['getRootNames']()['reduce']((_0x28e8ce,_0x202005)=>(_0x28e8ce[_0x202005]='',_0x28e8ce),{});return _0x3979e4['constructor']['create'](_0x2e6a7a,_0x3023af);}),'function'!=typeof _0x3979e4['config']['get']('trackChangesData')['editorCreator'])throw new _0x541450('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x67ec9f){return N(this['editor'],!0x0,_0x67ec9f);}['getDataWithDiscardedSuggestions'](_0x29054b){return N(this['editor'],!0x1,_0x29054b);}}class D extends _0xa4c963{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b8a1b){function _0x39b517(_0x57a5f9){return _0x57a5f9['map'](_0x5997cf=>String['fromCharCode'](_0x5997cf))['join']('');}super(_0x5b8a1b),this['result']='end',_0x5b8a1b[_0x39b517([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39b517([0x76,0x69,0x65,0x77])][_0x39b517([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39b517([0x61,0x75,0x74,0x6f]),_0x5b8a1b[_0x39b517([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x39b517([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39b517([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x39b517([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x39b517([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x4d4b7f){return void 0x0!==_0x4d4b7f['getRootsAttributes'];}async function N(_0x547a6c,_0x44d502,_0x11e002){const _0x41f12d=_0xac384c(_0x547a6c,w);_0x41f12d['plugins']['push'](p,D),_0x41f12d['rootsAttributes']=v(_0x547a6c)?_0x547a6c['getRootsAttributes']():void 0x0;const _0x4458a3=document['createDocumentFragment'](),_0x596838=_0x547a6c['config']['get']('trackChangesData')['editorCreator'],_0x2be7fb=await _0x596838(_0x41f12d,()=>function(_0x166b1b){const _0x5c3c21=document['createElement']('div');return _0x166b1b['appendChild'](_0x5c3c21),_0x5c3c21;}(_0x4458a3));!function(_0x34eb11,_0x46fd2e){const _0x435f0c=_0x34eb11['model']['document']['getRootNames']()['reduce']((_0x407576,_0x2f0185)=>(_0x407576[_0x2f0185]=_0x34eb11['data']['get']({'rootName':_0x2f0185}),_0x407576),{}),_0x36dcc1=_0x34eb11['plugins']['get']('Users')['users']['map'](_0x2c8c24=>({'id':_0x2c8c24['id'],'name':_0x2c8c24['name']})),_0x3320fa=_0x34eb11['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xe739ab=_0x34eb11['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x33d13e=_0x46fd2e['plugins']['get']('Users'),_0x1eccd1=_0x46fd2e['plugins']['get']('TrackChangesEditing'),_0xde6183=_0x46fd2e['plugins']['get']('CommentsRepository');for(const _0x5c9d89 of _0xde6183['getCommentThreads']())_0x5c9d89['remove']();for(const _0x10dbb6 of _0x36dcc1)_0x33d13e['getUser'](_0x10dbb6['id'])||_0x33d13e['addUser'](_0x10dbb6);_0x33d13e['me']||_0x33d13e['useAnonymousUser']();for(const _0x24bb01 of _0xe739ab)_0xde6183['addCommentThread'](_0x24bb01);for(const _0x2e2cff of _0x3320fa)_0x1eccd1['addSuggestionData'](_0x2e2cff);_0x46fd2e['data']['set'](_0x435f0c);}(_0x547a6c,_0x2be7fb),_0x2be7fb['execute'](_0x44d502?'acceptAllSuggestions':'discardAllSuggestions');const _0x1d6184=v(_0x2be7fb)?_0x2be7fb['getFullData'](_0x11e002):_0x2be7fb['data']['get'](_0x11e002);return await _0x2be7fb['destroy'](),_0x1d6184;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};