@ckeditor/ckeditor5-track-changes 45.0.0-alpha.3 → 45.0.0-alpha.4

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 _0x231de4,Plugin as _0x1667de,PendingActions as _0x4418c8}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2ca3b1,ObservableMixin as _0x2ec9e0,uid as _0x2397a2,priorities as _0x1a62d1,insertToPriorityArray as _0xf30c45,logWarning as _0x5e8bbd,getEnvKeystrokeText as _0x6d3983,FocusTracker as _0x5ca9fb,KeystrokeHandler as _0x21432a,Collection as _0xfd1210}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4e5e81,IconCancel as _0x58d14c,IconTrackChanges as _0x35e69d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x22fa3b,View as _0x57a473,ViewCollection as _0x38f3f2,FocusCycler as _0x1c4f3e,ViewModel as _0x2640de,createDropdown as _0x33a6ac,SplitButtonView as _0x40bfed,addListToDropdown as _0x3d4d36,MenuBarMenuView as _0x4a6465,MenuBarMenuListView as _0x2c851c,ListSeparatorView as _0x545f52,MenuBarMenuListItemView as _0x1b25ed,MenuBarMenuListItemButtonView as _0x4af394,BodyCollection as _0x348679,Dialog as _0x128a63}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xd58653,hashObject as _0x2455b2,surroundingMarkersDetector as _0x4ba154,FOCUS_ANNOTATION_KEYSTROKE as _0x3be5b7,AriaDescriptionView as _0x36c758,setupThreadKeyboardNavigation as _0x93c7f5,trimHtml as ti,UserView as _0x5130aa,LateFocusButtonView as _0x35a2f9,getDateTimeFormatter as _0x34dfb2,getAllMarkersDomElementsSorted as _0x468f08,sanitizeEditorConfig as _0x20caf3}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3c242c,LiveRange as _0x112647,LivePosition as _0x252bfd,DowncastWriter as _0xd34c45}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x172b91,toWidget as _0x380b84}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4006cb,set as _0x4ce143,isEqual as _0x3e9ffc,unset as _0x441703,omit as Ft}from'es-toolkit/compat';import{Delete as _0x2220cc,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x412c11}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x15c7c2}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x231de4{['_enabledCommands'];constructor(_0x240a2e,_0x2e68ba){super(_0x240a2e),this['_enabledCommands']=_0x2e68ba,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 _0x1c5ba8 of this['editor']['commands']['commands']())_0x1c5ba8['affectsData']&&!this['_enabledCommands']['has'](_0x1c5ba8)&&_0x1c5ba8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3cbd66 of this['editor']['commands']['commands']())_0x3cbd66['affectsData']&&!this['_enabledCommands']['has'](_0x3cbd66)&&_0x3cbd66['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x231de4{['_suggestions'];constructor(_0x32113b,_0x493162){super(_0x32113b),this['_suggestions']=_0x493162,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x565a8e){const _0x2ce9cd=this['_suggestions']['get'](_0x565a8e);if(!_0x2ce9cd)throw new _0x2ca3b1('track-changes-accept-suggestion-not-found',this);const _0x230249=_0x2ce9cd['getRanges']();this['editor']['model']['canEditAt'](_0x230249)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2ce9cd);}}class R extends _0x231de4{['_suggestions'];constructor(_0x131dcf,_0x1d94f6){super(_0x131dcf),this['_suggestions']=_0x1d94f6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x27848d){const _0x341f05=this['_suggestions']['get'](_0x27848d);if(!_0x341f05)throw new _0x2ca3b1('track-changes-discard-suggestion-not-found',this);const _0x429c83=_0x341f05['getRanges']();this['editor']['model']['canEditAt'](_0x429c83)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x341f05);}}function ls(_0x5c4389,_0x30fcd6){let _0x11768a='';return _0x11768a+=_0x5c4389['split']('*')['map']((_0x36c43b,_0xe97dd5)=>_0xe97dd5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x36c43b)+'</span>':nn(_0x36c43b))['join'](''),_0x30fcd6&&(_0x11768a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x30fcd6['value']+'\x22\x20title=\x22'+_0x30fcd6['title']+'\x22></span>'),_0x11768a;}function nn(_0x21214c){const _0x1da534=document['createElement']('span');return _0x1da534['innerText']=_0x21214c,_0x1da534['innerHTML'];}function ts(_0x52a38b){return _0x52a38b['sort']((_0xbd141f,_0xba5288)=>'deletion'==_0xbd141f['type']&&'deletion'!=_0xba5288['type']?-0x1:'deletion'!=_0xbd141f['type']&&'deletion'==_0xba5288['type']?0x1:0x0);}function to(_0xe49c77,_0x5f5655){let _0x2404ab,_0x269ee6=0x0;const _0x2064fb=[],_0x55cec8=_0x5f5655['schema'];for(;_0x269ee6<_0xe49c77['length'];){const _0x3e1da8=_0xe49c77[_0x269ee6],_0x4c700f=_0xe49c77[_0x269ee6+0x1];_0x2404ab||(_0x2404ab=_0x5f5655['createPositionBefore'](_0x3e1da8)),on(_0x5f5655,_0x3e1da8,_0x4c700f)||(_0x2064fb['push'](_0x5f5655['createRange'](_0x2404ab,_0x55cec8['isObject'](_0x3e1da8)?_0x5f5655['createPositionAfter'](_0x3e1da8):_0x5f5655['createPositionAt'](_0x3e1da8,'end'))),_0x2404ab=null),_0x269ee6++;}return _0x2064fb;}function on(_0x1fa13e,_0x55ef08,_0x16b410){if(!_0x16b410)return!0x1;const _0x1cca76=_0x1fa13e['createPositionAfter'](_0x55ef08),_0x337449=_0x1fa13e['createPositionBefore'](_0x16b410);return _0x1cca76['isTouching'](_0x337449);}function rs(_0x5bf895,_0x19c831,_0x5b145c){for(;_0x5b145c['length'];){const _0x201b46=_0x5b145c['splice'](0x0,0x64);_0x5bf895['change'](()=>{for(const _0xc669e8 of _0x201b46)_0xc669e8['isInContent']&&_0x19c831['execute'](_0xc669e8['id']);});}}class x extends _0x231de4{['_command'];['_suggestions'];constructor(_0x1d2aa4,_0x247001,_0x18bb1b){super(_0x1d2aa4),this['_command']=_0x247001,this['_suggestions']=_0x18bb1b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x59d85d=Array['from'](this['_suggestions']['values']())['some'](_0x51b958=>_0x51b958['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x59d85d;}['execute'](){const _0x2adfe5=ts(Array['from'](this['_suggestions']['values']()));for(const _0xc6afc6 of _0x2adfe5){const _0x2bb1c1=_0xc6afc6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2bb1c1))return;}rs(this['editor']['model'],this['_command'],_0x2adfe5);}}class E extends _0x231de4{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x30aee2,_0x4180e6,_0x484b39){super(_0x30aee2),this['_command']=_0x4180e6,this['_suggestions']=_0x484b39,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x92b23c=this['editor']['model']['document']['selection'],_0x3e8af0=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5c8229,_0x2e7092){const _0x6dc8fa=Array['from'](_0x5c8229['getRanges']()),_0x189532=new Set();for(const _0x102139 of _0x2e7092)if(_0x102139['isInContent']){for(const _0xf7bbd1 of _0x6dc8fa)for(const _0x371e35 of _0x102139['getRanges']())(_0xf7bbd1['isIntersecting'](_0x371e35)||_0x5c8229['isCollapsed']&&!_0x102139['isMultiRange']&&_0x102139['next']&&_0x371e35['end']['isTouching'](_0xf7bbd1['start']))&&_0x189532['add'](_0x102139);}return _0x189532;}(_0x92b23c,_0x3e8af0),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x14d2f7=ts(Array['from'](this['_selectedSuggestions']));for(const _0x40af13 of _0x14d2f7){const _0x48559e=_0x40af13['getRanges']();if(!this['editor']['model']['canEditAt'](_0x48559e))return;}rs(this['editor']['model'],this['_command'],_0x14d2f7);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x2ec9e0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2df218,_0x2689d1){super(),this['id']=_0x2689d1['id'],this['type']=_0x2689d1['type'],this['subType']=_0x2689d1['subType']||null,this['author']=_0x2689d1['author'],this['creator']=_0x2689d1['creator']||_0x2689d1['author'],this['isExternal']=Boolean(_0x2689d1['attributes']&&_0x2689d1['attributes']['@external']),this['data']=null,this['_model']=_0x2df218,this['_onAccept']=_0x2689d1['onAccept'],this['_onDiscard']=_0x2689d1['onDiscard'],this['_onAttributesChange']=_0x2689d1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2689d1['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 _0x114f78=this;for(;_0x114f78['previous'];)_0x114f78=_0x114f78['previous'];return _0x114f78;}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'](_0x503f77){this['_markerNames']['add'](_0x503f77);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x50998e=>this['_model']['markers']['get'](_0x50998e))['filter'](_0x246e32=>_0x246e32);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xe482cc=>{for(const _0x52c92f of this['getMarkers']())_0xe482cc['removeMarker'](_0x52c92f);}),this['_markerNames']['clear']();}['removeMarker'](_0x8588ab){this['_model']['change'](_0x1b6a71=>{_0x1b6a71['removeMarker'](_0x8588ab);}),this['_markerNames']['delete'](_0x8588ab);}['addRange'](_0x59e58c){const _0x9ce662='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x9ce662),this['_model']['change'](_0x5a4078=>{_0x5a4078['addMarker'](_0x9ce662,{'range':_0x59e58c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1f5276){for(const _0x4e9e89 of this['getRanges']())if(_0x4e9e89['isIntersecting'](_0x1f5276))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5a3d8c=>_0x5a3d8c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3bf81f,_0x5e442d)=>[..._0x3bf81f,..._0x5e442d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x342cf5=this['getRanges']();if(0x1!=_0x342cf5['length'])return null;const _0x52f7c7=_0x342cf5[0x0],_0x5ced18=_0x52f7c7['start']['nodeAfter'],_0x290689=_0x52f7c7['end']['nodeBefore'];return _0x5ced18 instanceof _0x3c242c?_0x5ced18!=_0x290689?null:_0x5ced18: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 _0x4e1e63=[];let _0x93212b=this['head'];for(;_0x93212b;)_0x4e1e63['push'](_0x93212b),_0x93212b=_0x93212b['next'];return _0x4e1e63;}['setAttribute'](_0x461301,_0x1b363d){const _0x2c4560=_0x4006cb(this['attributes']);_0x4ce143(_0x2c4560,_0x461301,_0x1b363d),_0x3e9ffc(_0x2c4560,this['attributes'])||(this['attributes']=_0x2c4560,this['_onAttributesChange'](_0x2c4560));}['removeAttribute'](_0x44f2c2){const _0x31ae76=_0x4006cb(this['attributes']);_0x441703(_0x31ae76,_0x44f2c2),_0x3e9ffc(_0x31ae76,this['attributes'])||(this['attributes']=_0x31ae76,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 _0x2397a2()['substr'](0x1,0x5);}}function c(_0x35ab2d,_0x47cc2d,_0x4e1cdc){const _0x4ed9fd=_0x35ab2d['t'],t=_0x35ab2d['t'];switch(_0x47cc2d){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x4e1cdc);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4e1cdc);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4e1cdc);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4e1cdc);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4e1cdc);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',_0x4e1cdc);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4e1cdc);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4e1cdc);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4e1cdc);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4e1cdc);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4e1cdc);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4e1cdc);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4e1cdc);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4e1cdc);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4e1cdc);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4e1cdc);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4e1cdc);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4e1cdc);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4e1cdc);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4e1cdc);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4e1cdc);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4e1cdc);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4e1cdc);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4e1cdc);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4e1cdc);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'},_0x4e1cdc);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4e1cdc);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4e1cdc);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4e1cdc);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4e1cdc);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4e1cdc);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4e1cdc);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4e1cdc);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'},_0x4e1cdc);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4e1cdc);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4e1cdc);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4e1cdc);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4e1cdc);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'},_0x4e1cdc);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4e1cdc);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'},_0x4e1cdc);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'},_0x4e1cdc);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4e1cdc);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'},_0x4e1cdc);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4e1cdc);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'},_0x4e1cdc);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4e1cdc);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4e1cdc);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'},_0x4e1cdc);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4e1cdc);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 _0x4ed9fd({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4e1cdc);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4ed9fd({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4e1cdc);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4e1cdc);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'},_0x4e1cdc);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'},_0x4e1cdc);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'},_0x4e1cdc);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x47cc2d;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5619b1,_0xa8bca8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5619b1,this['_locale']=_0xa8bca8;}['getDescriptions'](_0x50917f){const _0x57371b=[],_0x2ce068=new Set(),_0x4a921c=new Set();for(let _0x2da971=0x0;_0x2da971<_0x50917f['length'];_0x2da971++){const _0x2a5554=_0x50917f[_0x2da971];if(!_0x2a5554['isInContent'])continue;const _0x56f1df=this['_handleCustomCallbackDescription'](_0x2a5554);if(_0x56f1df){if(null!=_0x2a5554['subType']){if(_0x2ce068['has'](_0x2a5554['subType']))continue;_0x2ce068['add'](_0x2a5554['subType']);}_0x57371b['push'](_0x56f1df);}else{if('attribute'!=_0x2a5554['type'])'insertion'!=_0x2a5554['type']&&'deletion'!=_0x2a5554['type']||this['_handleInsertRemoveSuggestionDescription'](_0x57371b,_0x2a5554,_0x50917f[_0x2da971+0x1]);else{const _0x38b493=_0x2a5554['data']['key'];if(_0x4a921c['has'](_0x38b493))continue;_0x4a921c['add'](_0x2a5554['data']['key']),_0x38b493==u?this['_handleRenameSuggestionDescription'](_0x57371b,_0x2a5554):this['_handleAttributeSuggestionDescription'](_0x57371b,_0x2a5554);}}}return this['_resolveDescriptionItems'](_0x57371b);}['registerDescriptionCallback'](_0x30a59e){this['_customCallbacks']['push'](_0x30a59e);}['registerElementLabel'](_0xecade5,_0x51c667,_0x299575=_0x1a62d1['normal']){'function'==typeof _0xecade5?_0xf30c45(this['_itemLabelsCallbacks'],{'matchingCallback':_0xecade5,'label':_0x51c667,'priority':_0x299575}):this['_itemLabels']['set'](_0xecade5,_0x51c667);}['registerAttributeLabel'](_0x7837b6,_0x1c51a0){this['_attributeLabels']['set'](_0x7837b6,_0x1c51a0);}['getItemLabel'](_0x3352fc,_0xbe799b=0x1){let _0x2e8060;for(const _0x155637 of this['_itemLabelsCallbacks'])if(_0x155637['matchingCallback'](_0x3352fc)){_0x2e8060=_0x155637['label'];break;}return _0x2e8060||(_0x2e8060=this['_itemLabels']['get'](_0x3352fc['name'])),_0x2e8060?_0x2e8060(_0xbe799b):0x1!==_0xbe799b?_0xbe799b+'\x20'+_0x3352fc['name']+'s':''+_0x3352fc['name'];}['_addDescriptionItems'](_0x205cce,_0x56ffcc){const _0x4d8a96=_0x56ffcc['getFirstRange']()['getWalker'](),_0xacfab1='insertion'==_0x56ffcc['type']?'add':'remove';for(const _0x181486 of _0x4d8a96){const _0x3c9007=_0x181486['item'],_0x3bcca0=_0x205cce[_0x205cce['length']-0x1];if(_0x3c9007['is']('$textProxy'))_0x3bcca0&&_0x3bcca0['type']['indexOf']('Container')>-0x1&&_0x205cce['pop'](),_0x3bcca0&&'text'==_0x3bcca0['type']?_0x3bcca0[_0xacfab1]+=_0x3c9007['data']:_0x205cce['push']({'type':'text','add':'add'==_0xacfab1?_0x3c9007['data']:'','remove':'remove'==_0xacfab1?_0x3c9007['data']:''});else{if(this['_schema']['isObject'](_0x3c9007)){const _0x2618da=_0x3c9007;if(_0x3bcca0&&_0x3bcca0['type']['indexOf']('Container')>-0x1&&_0x205cce['pop'](),'elementEnd'==_0x181486['type'])continue;_0x3bcca0&&_0x3bcca0['type']==_0xacfab1+'Object'&&_0x3bcca0['element']['name']==_0x2618da['name']?_0x3bcca0['quantity']++:_0x205cce['push']({'type':_0xacfab1+'Object','element':_0x2618da,'quantity':0x1}),_0x4d8a96['skip'](_0x1cd714=>!('elementEnd'==_0x1cd714['type']&&_0x1cd714['item']==_0x3c9007));}else{if(this['_schema']['checkChild'](_0x3c9007,'$text')||_0x3c9007['is']('element','softBreak')){const _0x3f6d66=_0x3c9007;if('add'==_0xacfab1&&'elementStart'==_0x181486['type']||'remove'==_0xacfab1&&'elementEnd'==_0x181486['type'])continue;if(_0x3bcca0&&-0x1==_0x3bcca0['type']['indexOf']('Container')){'text'==_0x3bcca0['type']&&(_0x3bcca0[_0xacfab1]+='\x0a');continue;}let _0x47cfd6;if(_0x47cfd6='add'==_0xacfab1?_0x3f6d66['nextSibling']&&!this['_schema']['isObject'](_0x3f6d66['nextSibling'])?_0x3f6d66['nextSibling']:null:_0x3f6d66['previousSibling']&&!this['_schema']['isObject'](_0x3f6d66['previousSibling'])?_0x3f6d66['previousSibling']:null,_0x3f6d66['isEmpty']||_0x47cfd6&&_0x47cfd6['isEmpty']){const _0x22b399=_0x47cfd6&&_0x47cfd6['isEmpty']?_0x47cfd6:_0x3f6d66;_0x3bcca0&&_0x3bcca0['type']==_0xacfab1+'EmptyContainer'&&_0x3bcca0['element']['name']==_0x22b399['name']?_0x3bcca0['quantity']++:_0x205cce['push']({'type':_0xacfab1+'EmptyContainer','element':_0x22b399,'quantity':0x1});}else _0x205cce['push']({'type':_0xacfab1+'Container','element':_0x3f6d66});}}}}}['_resolveDescriptionItems'](_0x52f3d0){const _0x2d803c=this['_locale'],_0x1fe9a0=[],_0x1689b1=[],_0x42e99c=[];for(const _0x33fa3c of _0x52f3d0)switch(_0x33fa3c['type']){case'text':if(_0x33fa3c['add']=_0x33fa3c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x33fa3c['remove']=_0x33fa3c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x33fa3c['add']&&''!=_0x33fa3c['remove']){_0x1fe9a0['push']({'type':'replace','content':c(_0x2d803c,'REPLACE_TEXT',['\x22'+_0x33fa3c['remove']+'\x22','\x22'+_0x33fa3c['add']+'\x22'])});continue;}if(null!=_0x33fa3c['add']['match'](/^ +$/)){_0x1fe9a0['push']({'type':'insertion','content':c(_0x2d803c,'*Insert:*\x20%0',c(_0x2d803c,'ELEMENT_SPACE',_0x33fa3c['add']['length']))});continue;}if(null!=_0x33fa3c['remove']['match'](/^ +$/)){_0x1fe9a0['push']({'type':'deletion','content':c(_0x2d803c,'*Remove:*\x20%0',c(_0x2d803c,'ELEMENT_SPACE',_0x33fa3c['remove']['length']))});continue;}if(''!=_0x33fa3c['add']){_0x1fe9a0['push']({'type':'insertion','content':c(_0x2d803c,'*Insert:*\x20%0','\x22'+_0x33fa3c['add']+'\x22')});continue;}_0x1fe9a0['push']({'type':'deletion','content':c(_0x2d803c,'*Remove:*\x20%0','\x22'+_0x33fa3c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1fe9a0['push']({'type':'insertion','content':c(_0x2d803c,'*Insert:*\x20%0',this['getItemLabel'](_0x33fa3c['element'],_0x33fa3c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1fe9a0['push']({'type':'deletion','content':c(_0x2d803c,'*Remove:*\x20%0',this['getItemLabel'](_0x33fa3c['element'],_0x33fa3c['quantity']))});continue;case'addContainer':_0x1fe9a0['push']({'type':'insertion','content':c(_0x2d803c,'*Split:*\x20%0',this['getItemLabel'](_0x33fa3c['element'],_0x33fa3c['quantity']))});continue;case'removeContainer':_0x1fe9a0['push']({'type':'deletion','content':c(_0x2d803c,'*Merge:*\x20%0',this['getItemLabel'](_0x33fa3c['element'],_0x33fa3c['quantity']))});continue;case'addFormat':_0x1689b1['push'](_0x33fa3c['key']);continue;case'removeFormat':_0x42e99c['push'](_0x33fa3c['key']);continue;default:_0x1fe9a0['push'](_0x33fa3c);}if(_0x1689b1['length']){const _0x45a38d=_0x1689b1['map'](_0x578696=>this['_attributeLabels']['has'](_0x578696)?this['_attributeLabels']['get'](_0x578696):_0x578696)['join'](',\x20');_0x1fe9a0['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x45a38d)});}if(_0x42e99c['length']){const _0x537aa9=_0x42e99c['map'](_0x5d2607=>this['_attributeLabels']['has'](_0x5d2607)?this['_attributeLabels']['get'](_0x5d2607):_0x5d2607)['join'](',\x20');_0x1fe9a0['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x537aa9)});}return _0x1fe9a0;}['_handleCustomCallbackDescription'](_0x37d0c5){for(const _0x4c1572 of this['_customCallbacks']){const _0x401eeb=_0x4c1572(_0x37d0c5);if(_0x401eeb&&'type'in _0x401eeb)return _0x401eeb;}}['_handleAttributeSuggestionDescription'](_0x49007b,_0x2a5794){const _0x69bfc7=_0x2a5794['data'],_0x7597a1=void 0x0===_0x69bfc7['newValue']?'removeFormat':'addFormat';_0x49007b['push']({'type':_0x7597a1,'key':_0x69bfc7['key']});}['_handleRenameSuggestionDescription'](_0x5e3d3b,_0x22199c){_0x5e3d3b['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x22199c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1b3c18,_0x57d4a4,_0x4af803){if(this['_addDescriptionItems'](_0x1b3c18,_0x57d4a4),_0x4af803&&_0x4af803['getFirstRange']()&&!_0x57d4a4['getFirstRange']()['end']['isEqual'](_0x4af803['getFirstRange']()['start'])){const _0x20f57b=_0x1b3c18[_0x1b3c18['length']-0x1],_0x323dc9='insertion'==_0x57d4a4['type']?'add':'remove';_0x20f57b&&'text'==_0x20f57b['type']&&(_0x20f57b[_0x323dc9]+='\x0a');}}}class U extends _0x1667de{['afterInit'](){const _0x55d47c=this['editor'],_0x4c35e9=_0x55d47c['plugins']['get']('TrackChangesEditing');_0x55d47c['commands']['get']('showAIAssistant')&&_0x4c35e9['enableCommand']('showAIAssistant');}}class V extends _0x1667de{['afterInit'](){const _0xba4c55=this['editor'],_0x4e896f=_0xba4c55['locale'];if(!_0xba4c55['plugins']['has']('AlignmentEditing'))return;const _0xddb5d4=_0xba4c55['plugins']['get']('TrackChangesEditing');_0xddb5d4['enableDefaultAttributesIntegration']('alignment'),_0xddb5d4['registerBlockAttribute']('alignment'),_0xddb5d4['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4e896f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c595c=this['editor'],_0x28f251=_0x1c595c['locale'];_0x1c595c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fe5bc=>{if('formatBlock'!=_0x1fe5bc['type'])return;const {data:_0x23ba46}=_0x1fe5bc;if(_0x23ba46&&'alignment'==_0x23ba46['commandName']){const _0x43ea7e=_0x23ba46['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x28f251,'*Format:*\x20%0',function(_0x57c828){switch(_0x57c828){case'left':return c(_0x28f251,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x28f251,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x28f251,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x28f251,'FORMAT_JUSTIFY_TEXT');}}(_0x43ea7e))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x1667de{['afterInit'](){const _0x121f8b=this['editor'],_0x41326a=_0x121f8b['plugins']['get']('TrackChangesEditing'),_0x440bf3=_0x121f8b['locale'];for(const _0x5647fb of Zt){if(!_0x121f8b['plugins']['has'](_0x5647fb))continue;const _0x4f414e=_0x5647fb['slice'](0x0,-0x7)['toLowerCase'](),_0x3b7045='FORMAT_'+_0x4f414e['toUpperCase']();_0x41326a['enableDefaultAttributesIntegration'](_0x4f414e),_0x41326a['registerInlineAttribute'](_0x4f414e),_0x41326a['descriptionFactory']['registerAttributeLabel'](_0x4f414e,c(_0x440bf3,_0x3b7045));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ef92c=this['editor'],_0x3f49fd=_0x4ef92c['locale'],_0x337771=_0x4ef92c['plugins']['get']('TrackChangesEditing');function _0x4d6c1e(_0x18f210,_0x1ba34b){_0x337771['descriptionFactory']['registerDescriptionCallback'](_0x35f257=>{if('formatInline'!=_0x35f257['type'])return;const {data:_0x1dad31}=_0x35f257;return _0x1dad31&&_0x1dad31['commandName']===_0x18f210?_0x1dad31['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3f49fd,'*Format:*\x20%0',_0x1ba34b)}:{'type':'format','content':c(_0x3f49fd,'*Remove\x20format:*\x20%0',_0x1ba34b)}:void 0x0;});}_0x4d6c1e('bold',c(_0x3f49fd,'FORMAT_BOLD')),_0x4d6c1e('italic',c(_0x3f49fd,'FORMAT_ITALIC')),_0x4d6c1e('underline',c(_0x3f49fd,'FORMAT_UNDERLINE')),_0x4d6c1e('code',c(_0x3f49fd,'FORMAT_CODE')),_0x4d6c1e('strikethrough',c(_0x3f49fd,'FORMAT_STRIKETHROUGH')),_0x4d6c1e('subscript',c(_0x3f49fd,'FORMAT_SUBSCRIPT')),_0x4d6c1e('superscript',c(_0x3f49fd,'FORMAT_SUPERSCRIPT'));}}class G extends _0x1667de{['afterInit'](){const _0x1453b9=this['editor'],_0x4dc2eb=_0x1453b9['locale'];if(!_0x1453b9['plugins']['has']('BlockQuoteEditing'))return;const _0x470695=_0x1453b9['plugins']['get']('TrackChangesEditing'),_0x470c68=this['editor']['commands']['get']('blockQuote');_0x470695['enableCommand']('blockQuote',(_0x40a3e0,_0x111ea5={})=>{const _0x451935=this['editor']['model']['document']['selection'],_0x66259=_0x111ea5&&void 0x0!==_0x111ea5['forceValue']?_0x111ea5['forceValue']:!_0x470c68['value'];let _0x43d458=[];if(_0x66259){const _0x2c4e8b=Array['from'](_0x451935['getSelectedBlocks']())['filter'](_0x4b8887=>oo(_0x4b8887)||function(_0x5aa7b5,_0x1f074a){const _0x2c6e9c=_0x1f074a['checkChild'](_0x5aa7b5['parent'],'blockQuote'),_0x3222ec=_0x1f074a['checkChild'](['$root','blockQuote'],_0x5aa7b5);return _0x2c6e9c&&_0x3222ec;}(_0x4b8887,this['editor']['model']['schema']));_0x43d458=to(_0x2c4e8b,_0x1453b9['model']);}else{const _0x4cb49e=Array['from'](_0x451935['getSelectedBlocks']())['filter'](_0x46f42c=>oo(_0x46f42c));_0x43d458=to(_0x4cb49e,_0x1453b9['model']);}_0x1453b9['model']['change'](()=>{for(const _0x445981 of _0x43d458)_0x470695['markBlockFormat'](_0x445981,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x66259}]});});}),_0x470695['descriptionFactory']['registerDescriptionCallback'](_0x5e8dbb=>{const {data:_0x4c8216}=_0x5e8dbb;if(_0x4c8216&&'blockQuote'==_0x4c8216['commandName']){const _0x1ad1fe=c(_0x4dc2eb,'ELEMENT_BLOCK_QUOTE');return _0x4c8216['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4dc2eb,'*Set\x20format:*\x20%0',_0x1ad1fe)}:{'type':'format','content':c(_0x4dc2eb,'*Remove\x20format:*\x20%0',_0x1ad1fe)};}});}}function oo(_0x4a66d4){return'blockQuote'==_0x4a66d4['parent']['name'];}class L extends _0x1667de{['afterInit'](){const _0x41575e=this['editor'],_0x23d2c2=_0x41575e['locale'],_0x564d65=_0x41575e['plugins']['get']('TrackChangesEditing');_0x41575e['plugins']['has']('BookmarkEditing')&&(_0x564d65['enableCommand']('insertBookmark'),_0x564d65['enableDefaultAttributesIntegration']('updateBookmark'),_0x564d65['registerBlockAttribute']('bookmarkId'),_0x564d65['descriptionFactory']['registerDescriptionCallback'](_0x4dc482=>{if('insertion'!=_0x4dc482['type']&&'deletion'!=_0x4dc482['type']&&'attribute'!=_0x4dc482['type'])return;const _0x1e3c54=_0x4dc482['getContainedElement']();if(null==_0x1e3c54)return;if(!_0x1e3c54['is']('element','bookmark'))return;const _0x5b6ef5=_0x1e3c54['getAttribute']('bookmarkId');if('insertion'==_0x4dc482['type'])return{'type':'insertion','content':c(_0x23d2c2,'*Insert:*\x20%0','\x22'+_0x5b6ef5+'\x22\x20'+c(_0x23d2c2,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4dc482['type'])return{'type':'deletion','content':c(_0x23d2c2,'*Remove:*\x20%0','\x22'+_0x5b6ef5+'\x22\x20'+c(_0x23d2c2,'ELEMENT_BOOKMARK'))};const {data:_0x22c806}=_0x4dc482;if(!_0x22c806||'bookmarkId'!=_0x22c806['key'])return;return{'type':'format','content':c(_0x23d2c2,'*Set\x20bookmark:*\x20%0','\x22'+_0x22c806['newValue']+'\x22')};}));}}class J extends _0x1667de{['afterInit'](){const _0x1dcd4e=this['editor'];_0x1dcd4e['plugins']['has']('CaseChange')&&(_0x1dcd4e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1dcd4e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1dcd4e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x1667de{['afterInit'](){const _0x1000fe=this['editor'];_0x1000fe['commands']['get']('ckbox')&&_0x1000fe['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x1667de{['afterInit'](){const _0x4e73a0=this['editor'];if(!_0x4e73a0['plugins']['has']('CodeBlock'))return;const _0x3d3e06=_0x4e73a0['plugins']['get']('TrackChangesEditing'),_0x59e949=_0x4e73a0['locale'],_0x1df9ea=_0x4e73a0['config']['get']('codeBlock')['languages'],_0x414231=_0x4e73a0['commands']['get']('codeBlock');_0x3d3e06['enableCommand']('indentCodeBlock'),_0x3d3e06['enableCommand']('outdentCodeBlock'),_0x3d3e06['enableCommand']('codeBlock',(_0x572146,_0x4d19de={})=>{const _0x378484=_0x4e73a0['model'],_0x262a21=_0x4e73a0['model']['document']['selection'],_0x138914=_0x4d19de&&void 0x0!==_0x4d19de['forceValue']?_0x4d19de['forceValue']:!_0x414231['value'];let _0x7fd15e;_0x4d19de['language']||(_0x4d19de['language']=_0x1df9ea[0x0]['language']),_0x7fd15e=_0x138914?Array['from'](_0x262a21['getSelectedBlocks']())['filter'](_0x45ad10=>eo(_0x45ad10)||function(_0x1ccdf6,_0x8f66b5){if(_0x1ccdf6['is']('rootElement')||_0x8f66b5['isLimit'](_0x1ccdf6))return!0x1;return _0x8f66b5['checkChild'](_0x1ccdf6['parent'],'codeBlock');}(_0x45ad10,_0x378484['schema'])):Array['from'](_0x262a21['getSelectedBlocks']())['filter'](_0x21506a=>eo(_0x21506a));const _0x2fbd05=to(_0x7fd15e,_0x378484);_0x378484['change'](()=>{for(const _0x2ae8e4 of _0x2fbd05)_0x3d3e06['markBlockFormat'](_0x2ae8e4,{'commandName':'codeBlock','commandParams':[{..._0x4d19de,'forceValue':_0x138914}],'formatGroupId':'blockName'});});}),(_0x3d3e06['descriptionFactory']['registerElementLabel']('codeBlock',_0x967b67=>c(_0x59e949,'ELEMENT_CODE_BLOCK',_0x967b67)),_0x3d3e06['descriptionFactory']['registerDescriptionCallback'](_0x2eac23=>{if('formatBlock'!=_0x2eac23['type'])return;const _0x39215c=_0x59e949['t'],{data:_0x5d19fc}=_0x2eac23;if(!_0x5d19fc||'codeBlock'!=_0x5d19fc['commandName'])return;const _0x50a649=_0x5d19fc['commandParams'][0x0]['language'],_0x28c7a8=_0x39215c(_0x1df9ea['find'](_0x520d3c=>_0x520d3c['language']===_0x50a649)['label'])['toLowerCase']();return _0x5d19fc['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x59e949,'*Set\x20format:*\x20%0',c(_0x59e949,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x28c7a8+')')}:{'type':'format','content':c(_0x59e949,'*Remove\x20format:*\x20%0',c(_0x59e949,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x287443){return'codeBlock'==_0x287443['name'];}class q extends _0x1667de{['afterInit'](){const _0x6a8721=this['editor'];if(!_0x6a8721['plugins']['has']('CommentsEditing'))return;_0x6a8721['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x34940a,_0x474251,_0x525474){const _0x3a4dd=[];for(const _0x40aead of _0x474251['getItems']())_0x40aead['hasAttribute'](_0x34940a)&&_0x3a4dd['push'](_0x525474['createRangeOn'](_0x40aead));return _0x3a4dd;}function Fe(_0x2f69a3,_0x54ddb4,{showActiveMarker:_0x431d52=!0x0}={}){const _0x2fb0ea=_0x2f69a3['plugins']['get']('TrackChangesEditing');return(_0x5a6573,_0x40adb8,_0x3b482f)=>{if(!_0x3b482f['consumable']['test'](_0x40adb8['markerRange'],_0x5a6573['name']))return;const _0x4d2496=_0x40adb8['markerRange']['getWalker'](),_0x391c70=_0x40adb8['markerRange']['start'],_0x1cddd9=_0x2f69a3['model']['schema'];let _0x81615e=null,_0x1728ba=null,_0x507aed=!0x1,_0x213aa1=!0x1;for(const _0x422f3c of _0x4d2496){const _0x40d7a4=_0x422f3c['item'];_0x507aed=_0x507aed||_0x1cddd9['isContent'](_0x40d7a4);const _0x13e12b=_0x3b482f['mapper']['toViewElement'](_0x40d7a4);if(_0x13e12b&&_0x13e12b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x422f3c['type']&&(_0x1cddd9['isBlock'](_0x40d7a4)&&!_0x1cddd9['isLimit'](_0x40d7a4)&&(_0x40d7a4['nextSibling']||_0x391c70['isAtEnd']?_0x81615e&&_0x81615e['parent']==_0x40d7a4||(_0x81615e=_0x40d7a4,_0x161ff3(_0x422f3c['previousPosition']),_0x213aa1=!0x0):_0x1728ba=_0x1728ba||_0x422f3c['previousPosition']));}function _0x161ff3(_0x101d51){const {authorId:_0x5a2cf7}=_0x2fb0ea['_splitMarkerName'](_0x40adb8['markerName']),_0x28e974=_0x3b482f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54ddb4,'data-author-id':_0x5a2cf7}),_0x1f1b3b=_0x3b482f['mapper']['toViewPosition'](_0x101d51);_0x431d52&&_0x2fb0ea['activeMarkers']['includes'](_0x40adb8['markerName'])&&_0x3b482f['writer']['addClass']('ck-suggestion-marker--active',_0x28e974),_0x3b482f['writer']['insert'](_0x1f1b3b,_0x28e974),_0x3b482f['mapper']['bindElementToMarker'](_0x28e974,_0x40adb8['markerName']);}_0x507aed||_0x213aa1||!_0x1728ba||_0x161ff3(_0x1728ba);};}class z extends _0x1667de{static get['requires'](){return[_0x2220cc];}['init'](){const _0x2e30d5=this['editor'],_0x48cdf6=_0x2e30d5['plugins']['get']('TrackChangesEditing');_0x48cdf6['enableCommand']('delete');const _0x20ecd5=_0x2e30d5['commands']['get']('deleteForward');_0x48cdf6['enableCommand']('deleteForward',(_0x50c1ce,_0x20a668={})=>{const _0x7f3b5c=_0x2e30d5['model']['createSelection'](_0x2e30d5['model']['document']['selection']);_0x7f3b5c['isCollapsed']&&_0x2e30d5['model']['modifySelection'](_0x7f3b5c,{'direction':'forward','unit':_0x20a668['unit']});const _0x2cdb47=_0x7f3b5c['getFirstRange'](),_0x4249fc=_0x112647['fromRange'](_0x2cdb47);let _0x7d521f;_0x50c1ce(_0x20a668),_0x7d521f='$graveyard'==_0x4249fc['root']['rootName']?_0x2e30d5['model']['createRange'](_0x2cdb47['start']):_0x2e30d5['model']['createRange'](_0x4249fc['start'],_0x4249fc['end']),_0x4249fc['detach'](),_0x2e30d5['model']['enqueueChange'](_0x20ecd5['buffer']['batch'],_0x40029c=>{_0x20ecd5['buffer']['lock'](),_0x40029c['setSelection'](_0x40029c['createRange'](_0x7d521f['end'])),_0x20ecd5['buffer']['unlock']();});}),_0x2e30d5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x2e30d5,'merge'),{'priority':'high'}),_0x2e30d5['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5686a8,_0x413bd7,_0x3190b9)=>{_0x3190b9['options']['showSuggestionHighlights']&&Fe(_0x2e30d5,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5686a8,_0x413bd7,_0x3190b9);},{'priority':'high'}),_0x2e30d5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x554470,_0x5122e4,_0x681833)=>{const _0x2bd391=_0x681833['mapper']['markerNameToElements'](_0x5122e4['markerName']);if(_0x2bd391){for(const _0x594dc1 of _0x2bd391)_0x594dc1['is']('uiElement')&&(_0x681833['mapper']['unbindElementFromMarkerName'](_0x594dc1,_0x5122e4['markerName']),_0x681833['writer']['remove'](_0x594dc1));}},{'priority':'high'});}}class W extends _0x1667de{['afterInit'](){const _0x54e4e8=this['editor'];if(!_0x54e4e8['plugins']['has']('ListEditing'))return;const _0x2c4301=_0x54e4e8['locale'],_0x54c18d=_0x54e4e8['plugins']['get']('TrackChangesEditing'),_0x5ae716=_0x54e4e8['plugins']['has']('TodoListEditing'),_0x19a70b=!!_0x54e4e8['config']['get']('list.multiBlock');function _0x22497d(_0x5d6eb7){return{'type':'format','content':''+c(_0x2c4301,'*Set\x20format:*\x20%0',_0x5d6eb7)};}function _0x34009d(_0x53b6fd){return{'type':'format','content':''+c(_0x2c4301,'*Remove\x20format:*\x20%0',_0x53b6fd)};}_0x54c18d['enableDefaultAttributesIntegration']('numberedList'),_0x54c18d['enableDefaultAttributesIntegration']('bulletedList'),_0x54c18d['enableDefaultAttributesIntegration']('customNumberedList'),_0x54c18d['enableDefaultAttributesIntegration']('customBulletedList'),_0x54c18d['enableDefaultAttributesIntegration']('indentList'),_0x54c18d['enableDefaultAttributesIntegration']('outdentList'),_0x54c18d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x54c18d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x54c18d['registerBlockAttribute']('listItemId'),_0x54c18d['registerBlockAttribute']('listType'),_0x54c18d['registerBlockAttribute']('listIndent'),_0x19a70b&&(_0x54c18d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x54c18d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5ae716&&(_0x54c18d['enableDefaultAttributesIntegration']('todoList'),_0x54c18d['enableDefaultAttributesIntegration']('checkTodoList'),_0x54c18d['registerBlockAttribute']('todoListChecked'),_0x54c18d['descriptionFactory']['registerDescriptionCallback'](_0x2c89de=>{const {data:_0x21a295}=_0x2c89de;if(_0x21a295&&'todoListChecked'==_0x21a295['key'])return{'type':'format','content':_0x21a295['newValue']?c(_0x2c4301,'*Check\x20item*'):c(_0x2c4301,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x59f953=>{if(_0x59f953['batch']['isUndo'])return!0x1;let _0x1a17d9=!0x1;const _0x2716e9=_0x54c18d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ac77a=>'todoListChecked'===_0x54c18d['_getAttributeKey'](_0x3ac77a));for(const _0x39e30e of _0x2716e9){'todo'!=_0x39e30e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x54c18d['_findSuggestions'](_0x39e30e['getFirstRange'](),'attribute')['find'](_0x325617=>'listType'===_0x54c18d['_getAttributeKey'](_0x325617['suggestion']))||(_0x59f953['removeMarker'](_0x39e30e['getFirstMarker']()),_0x1a17d9=!0x0));}return _0x1a17d9;})),_0x54c18d['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x2c4301,'FORMAT_INDENT'));const _0x4fb245={'type':'format','content':''};_0x54c18d['descriptionFactory']['registerDescriptionCallback'](_0x2761e8=>{const {data:_0x5abe7c}=_0x2761e8;if(!_0x5abe7c||'listType'!=_0x5abe7c['key'])return;let _0x18cf97=_0x2761e8['head'];for(;_0x18cf97;){if(_0x18cf97['data']&&(('listStyle'==_0x18cf97['data']['key']||'listMarkerStyle'==_0x18cf97['data']['key'])&&(_0x18cf97['data']['newValue']&&'default'!=_0x18cf97['data']['newValue']||'default'!=_0x18cf97['data']['oldValue']&&!_0x5abe7c['newValue'])||!_0x19a70b&&_0x18cf97['data']['key']==u))return _0x4fb245;_0x18cf97=_0x18cf97['next'];}if(null==_0x5abe7c['newValue'])switch(_0x5abe7c['oldValue']){case'bulleted':return _0x34009d(c(_0x2c4301,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34009d(c(_0x2c4301,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34009d(c(_0x2c4301,'ELEMENT_TODO_LIST'));}switch(_0x5abe7c['newValue']){case'bulleted':return _0x22497d(c(_0x2c4301,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x22497d(c(_0x2c4301,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x22497d(c(_0x2c4301,'ELEMENT_TODO_LIST'));}}),_0x54c18d['descriptionFactory']['registerDescriptionCallback'](_0x3d109e=>{const {data:_0x129efe}=_0x3d109e;if(_0x129efe&&'listIndent'==_0x129efe['key'])return null==_0x129efe['newValue']||null==_0x129efe['oldValue']&&0x0==_0x129efe['newValue']?_0x4fb245:void 0x0;}),_0x54c18d['descriptionFactory']['registerDescriptionCallback'](_0x45e42f=>{if('attribute'!=_0x45e42f['type'])return;const {data:_0x141094}=_0x45e42f;if(!_0x141094||'listItemId'!=_0x141094['key'])return;const _0x271ff8=Te(_0x45e42f);return'newValue'==_0x271ff8?{'type':'format','content':c(_0x2c4301,'*Merge:*\x20list\x20item')}:'oldValue'==_0x271ff8?{'type':'format','content':c(_0x2c4301,'*Split:*\x20list\x20item')}:_0x4fb245;}),_0x54e4e8['model']['document']['registerPostFixer'](_0x489ab8=>this['listItemIdFixer'](_0x489ab8)),_0x54e4e8['model']['document']['registerPostFixer'](_0x385045=>this['noTrackChangesFixer'](_0x385045)),_0x54e4e8['model']['document']['on']('change:data',(_0x1f3e61,_0x200e81)=>{if(_0x200e81['isUndo']||!_0x200e81['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x35d305){if(_0x35d305['batch']['isUndo']||!_0x35d305['batch']['isLocal'])return!0x1;let _0xc8d7ed=!0x1;const _0x239fdf=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd59b9f=>_0xd59b9f['data']&&'listItemId'==_0xd59b9f['data']['key'])['filter'](_0x5d79df=>_0x5d79df['data']['newValue']&&_0x5d79df['data']['oldValue']);for(const _0x19fa5e of _0x239fdf)Te(_0x19fa5e)||(_0x35d305['removeMarker'](_0x19fa5e['getFirstMarker']()),_0xc8d7ed=!0x0);return _0xc8d7ed;}['noTrackChangesFixer'](_0x1822c5){if(_0x1822c5['batch']['isUndo']||!_0x1822c5['batch']['isLocal'])return!0x1;const _0x28aa94=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x28aa94['trackChangesCommand']['value'])return!0x1;let _0x909f69=!0x1;const _0x451b51=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3edd8f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x9c1ea5=>'attribute'==_0x9c1ea5['type'])['filter'](_0x551931=>_0x451b51['includes'](_0x551931['attributeKey']));if(0x0==_0x3edd8f['length'])return _0x909f69;for(const _0x4fc0e8 of _0x3edd8f){const _0x161dc4=_0x28aa94['_findSuggestions'](_0x4fc0e8['range'],'attribute')['filter'](_0x352359=>!_0x352359['meta']['isNextTo'])['map'](_0x18f356=>_0x18f356['suggestion'])['filter'](_0x421656=>{const _0x2512df=_0x28aa94['_getAttributeKey'](_0x421656);return _0x451b51['includes'](_0x2512df);});if(_0x161dc4['length']){for(const _0x22f097 of _0x161dc4)_0x1822c5['removeMarker'](_0x22f097['getFirstMarker']());_0x909f69=!0x0;}}return _0x909f69;}['assureChains'](){const _0x15115e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b1e8f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x44ed1e;const _0x53a481=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x540563=>{if(_0x540563['data']['oldRange']||!_0x540563['data']['newRange'])return null;if(!_0x540563['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3d9999}=_0x15115e['_splitMarkerName'](_0x540563['name']);if(!_0x15115e['hasSuggestion'](_0x3d9999))return null;const _0x1c230d=_0x15115e['getSuggestion'](_0x3d9999);return _0x3b1e8f['includes'](_0x1c230d['data']['key']);})['map'](_0x4bec0c=>{const {id:_0x4180d5}=_0x15115e['_splitMarkerName'](_0x4bec0c['name']),_0x23a812=_0x15115e['getSuggestion'](_0x4180d5);return _0x44ed1e=_0x23a812['attributes']['groupId'],_0x23a812['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x53a481['size'])return;const _0x3bba9e=_0x15115e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c6541=>'attribute'==_0x3c6541['type']&&_0x3c6541['data']&&_0x3b1e8f['includes'](_0x3c6541['data']['key'])&&_0x3c6541['attributes']['groupId']!=_0x44ed1e)['map'](_0x3e8d35=>({'listItem':_0x3e8d35['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3e8d35['attributes']['groupId']})),_0x5616f6=new Set();for(const {groupId:_0xdcb0c0,listItem:_0x58aa4b}of _0x3bba9e)_0x53a481['has'](_0x58aa4b)&&_0x5616f6['add'](_0xdcb0c0);for(const _0x2a2930 of _0x15115e['getSuggestions']())_0x5616f6['has'](_0x2a2930['attributes']['groupId'])&&_0x2a2930['setAttribute']('groupId',_0x44ed1e);}['_supportLegacySuggestions'](){const _0x29b59d=this['editor'],_0x1da8ff=_0x29b59d['locale'],_0x5c8293=_0x29b59d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5c8293['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x7757d4,_0x50a277){const _0x437865=[];for(let _0x5a2630 of _0x7757d4)_0x5a2630['start']['nodeAfter']===_0x5a2630['end']['parent']&&(_0x5a2630=_0x29b59d['model']['createRange'](_0x29b59d['model']['createPositionAt'](_0x5a2630['start']['nodeAfter'],0x0))),_0x437865['push'](_0x5a2630);_0x29b59d['model']['change'](_0x44e7c3=>{const _0x47ea18=_0x29b59d['model']['document']['selection'],_0x25c604=Array['from'](_0x47ea18['getRanges']())['map'](_0x24e46a=>_0x112647['fromRange'](_0x24e46a));_0x44e7c3['setSelection'](_0x437865),_0x29b59d['commands']['get'](_0x50a277['commandName'])['refresh'](),_0x50a277['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x29b59d['execute'](_0x50a277['commandName'],..._0x50a277['commandParams']),_0x44e7c3['setSelection'](_0x25c604);for(const _0x4121c1 of _0x25c604)_0x4121c1['detach']();});}),_0x5c8293['descriptionFactory']['registerElementLabel'](function(_0x4b6902){const _0x449f94=!_0x29b59d['model']['schema']['isObject'](_0x4b6902),_0x5128e6=_0x4b6902['previousSibling'],_0x58d9e1=_0x4b6902['nextSibling'],_0x51bd6d=_0x4b6902['getAttribute']('listItemId'),_0x58d353=!_0x5128e6||_0x5128e6['getAttribute']('listItemId')!==_0x51bd6d,_0x112a1a=!_0x58d9e1||_0x58d9e1['getAttribute']('listItemId')!==_0x51bd6d;return _0x449f94&&Boolean(_0x51bd6d)&&_0x58d353&&_0x112a1a;},_0xb6b836=>c(_0x1da8ff,'ELEMENT_LIST_ITEM',_0xb6b836));}['_registerLegacyDescription'](){const _0x11b78f=this['editor'],_0x5dca86=_0x11b78f['locale'];function _0x48e67d(_0x368259){const _0x562d92=_0x11b78f['commands']['get']('bulletedList')['value'],_0x1d65cb=_0x11b78f['commands']['get']('numberedList')['value'];return'numberedList'===_0x368259?_0x562d92:_0x1d65cb;}_0x11b78f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x372803){if('formatBlock'!=_0x372803['type'])return;const {data:_0x35a9cf}=_0x372803;if(!_0x35a9cf)return;let _0x3540e1,_0x103bf1,_0x568354,_0x1946c3;switch(_0x35a9cf['commandName']){case'bulletedList':_0x568354=_0x35a9cf['commandParams'][0x0]['forceValue'],_0x1946c3=_0x48e67d(_0x35a9cf['commandName']),_0x3540e1=_0x568354?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1946c3&&_0x11b78f['config']['get']('list.multiBlock')||(_0x3540e1='*Change\x20to:*\x20%0'),_0x103bf1={'type':'format','content':c(_0x5dca86,_0x3540e1,c(_0x5dca86,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x568354=_0x35a9cf['commandParams'][0x0]['forceValue'],_0x1946c3=_0x48e67d(_0x35a9cf['commandName']),_0x3540e1=_0x568354?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1946c3&&_0x11b78f['config']['get']('list.multiBlock')||(_0x3540e1='*Change\x20to:*\x20%0'),_0x103bf1={'type':'format','content':c(_0x5dca86,_0x3540e1,c(_0x5dca86,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3540e1='*Indent:*\x20%0',_0x103bf1={'type':'format','content':c(_0x5dca86,_0x3540e1,c(_0x5dca86,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3540e1=function(_0x2b8a44){const _0x3129ce=_0x2b8a44['getFirstRange']();let _0x443061=_0x3129ce['start']['nodeAfter'];for(;_0x443061&&_0x3129ce['containsItem'](_0x443061);){if(_0x443061['getAttribute']('listIndent')>0x0)return!0x1;_0x443061=_0x443061['nextSibling'];}return!0x0;}(_0x372803)?c(_0x5dca86,'*Format:*\x20remove\x20from\x20%0',c(_0x5dca86,function(_0x240b88){return'ELEMENT_'+_0x240b88['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x372803))):c(_0x5dca86,'*Outdent:*\x20%0',c(_0x5dca86,'ELEMENT_LIST_ITEM')),_0x103bf1={'type':'format','content':_0x3540e1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x35a9cf['multipleBlocks']&&(_0x3540e1='*Merge:*\x20%0',_0x103bf1={'type':'deletion','content':c(_0x5dca86,_0x3540e1,c(_0x5dca86,'ELEMENT_LIST_ITEM'))});}return _0x103bf1;});}}function Te(_0x290e6a){let _0x4a8acc=_0x290e6a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4a8acc;){const _0x352c84=_0x4a8acc['getAttribute']('listItemId');if(!_0x352c84)return!0x1;if(_0x352c84==_0x290e6a['data']['newValue'])return'newValue';if(_0x352c84==_0x290e6a['data']['oldValue'])return'oldValue';_0x4a8acc=_0x4a8acc['previousSibling'];}return!0x1;}class Se extends _0x1667de{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x8a560f=this['editor']['config']['get']('list.properties'),_0x51c540=this['editor']['plugins']['get']('TrackChangesEditing');_0x8a560f['styles']&&(_0x51c540['enableDefaultAttributesIntegration']('listStyle'),_0x51c540['registerBlockAttribute']('listStyle')),_0x8a560f['reversed']&&(_0x51c540['enableDefaultAttributesIntegration']('listReversed'),_0x51c540['registerBlockAttribute']('listReversed')),_0x8a560f['startIndex']&&(_0x51c540['enableDefaultAttributesIntegration']('listStart'),_0x51c540['registerBlockAttribute']('listStart'));const _0x548c39={'type':'format','content':''};_0x51c540['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4c5458=this['editor']['locale'];_0x51c540['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x4c5458,'FORMAT_LIST_REVERSED')),_0x51c540['descriptionFactory']['registerDescriptionCallback'](_0x166a9f=>{const {data:_0x2eab03}=_0x166a9f;if(_0x2eab03&&'listReversed'==_0x2eab03['key'])return null==_0x2eab03['newValue']||0x0==_0x2eab03['newValue']&&null==_0x2eab03['oldValue']?_0x548c39:void 0x0;}),_0x51c540['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x4c5458,'FORMAT_LIST_START')),_0x51c540['descriptionFactory']['registerDescriptionCallback'](_0x5b520c=>{const {data:_0xb29a73}=_0x5b520c;if(_0xb29a73&&'listStart'==_0xb29a73['key'])return null==_0xb29a73['newValue']||0x1==_0xb29a73['newValue']&&null==_0xb29a73['oldValue']?_0x548c39:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3a0da8=>{if(_0x3a0da8['batch']['isUndo'])return!0x1;let _0x48e308=!0x1;const _0x50a2c4=_0x51c540['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c77b3=>{const _0x3d23ab=_0x51c540['_getAttributeKey'](_0x4c77b3);return'listStart'==_0x3d23ab||'listReversed'==_0x3d23ab;});for(const _0x329583 of _0x50a2c4){const _0xf61ea=_0x329583['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xf61ea||'customNumbered'==_0xf61ea)continue;_0x51c540['_findSuggestions'](_0x329583['getFirstRange'](),'attribute')['find'](_0x4153d6=>'listType'==_0x51c540['_getAttributeKey'](_0x4153d6['suggestion']))||(_0x3a0da8['removeMarker'](_0x329583['getFirstMarker']()),_0x48e308=!0x0);}return _0x48e308;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x13bd95){const _0x1cc4b3=this['editor']['locale'],{data:_0x3a5cd0}=_0x13bd95,_0x10a427={'type':'format','content':''};if(!_0x3a5cd0||'listStyle'!=_0x3a5cd0['key'])return;if(!_0x3a5cd0['oldValue'])return'default'==_0x3a5cd0['newValue']?_0x10a427:{'type':'format','content':''+c(_0x1cc4b3,'*Set\x20format:*\x20%0',c(_0x1cc4b3,this['_getTranslationKeyForListStyle'](_0x3a5cd0['newValue'])))};if(!_0x3a5cd0['newValue']){if('default'==_0x3a5cd0['oldValue'])return _0x10a427;let _0x1e7f03=_0x13bd95['head'];for(;_0x1e7f03;){if(_0x1e7f03['data']&&'listType'==_0x1e7f03['data']['key']&&_0x1e7f03['data']['newValue'])return _0x10a427;_0x1e7f03=_0x1e7f03['next'];}return{'type':'format','content':''+c(_0x1cc4b3,'*Remove\x20format:*\x20%0',c(_0x1cc4b3,this['_getTranslationKeyForListStyle'](_0x3a5cd0['oldValue'])))};}if('default'!=_0x3a5cd0['newValue'])return{'type':'format','content':''+c(_0x1cc4b3,'*Set\x20format:*\x20%0',c(_0x1cc4b3,this['_getTranslationKeyForListStyle'](_0x3a5cd0['newValue'])))};let _0x271042=_0x13bd95['head'];for(;_0x271042;){if(_0x271042['data']&&'listType'==_0x271042['data']['key']&&_0x271042['data']['newValue']&&_0x271042['data']['oldValue'])return _0x10a427;_0x271042=_0x271042['next'];}return{'type':'format','content':c(_0x1cc4b3,'*Set\x20format:*\x20%0',c(_0x1cc4b3,'ELEMENT_'+_0x13bd95['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4b2455=this['editor'],_0x4dc5e9=_0x4b2455['locale'];_0x4b2455['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x401a96=>{if('formatBlock'!=_0x401a96['type'])return;const {data:_0x37b706}=_0x401a96;if(!_0x37b706)return;let _0x14c7ec,_0x1962d3;switch(_0x37b706['commandName']){case'listStyle':_0x14c7ec='*Change\x20to:*\x20%0',_0x1962d3={'type':'format','content':c(_0x4dc5e9,_0x14c7ec,c(_0x4dc5e9,this['_getTranslationKeyForListStyle'](_0x37b706['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14c7ec=_0x37b706['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1962d3={'type':'format','content':c(_0x4dc5e9,_0x14c7ec)};break;case'listStart':_0x14c7ec='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1962d3={'type':'format','content':c(_0x4dc5e9,_0x14c7ec,_0x37b706['commandParams'][0x0]['startIndex'])};}return _0x1962d3;});}['_getTranslationKeyForListStyle'](_0x413270){return'ELEMENT_'+function(_0x5712d4){if(_e['includes'](_0x5712d4))return'bulleted';if(Re['includes'](_0x5712d4))return'numbered';return null;}(_0x413270)['toUpperCase']()+'_LIST_'+_0x413270['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x1667de{['afterInit'](){const _0x2dfc3a=this['editor'];_0x2dfc3a['commands']['get']('emoji')&&_0x2dfc3a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x1667de{static get['requires'](){return[_0x412c11];}['init'](){const _0x1357df=this['editor'],_0xfab3ee=_0x1357df['plugins']['get']('TrackChangesEditing'),_0x1c20f1=_0x1357df['commands']['get']('enter');_0xfab3ee['enableCommand']('enter',()=>{_0x1357df['model']['change'](_0x1aa466=>{const _0x58575f=_0x1357df['model']['document']['selection'],_0x36601c=_0x58575f['getFirstPosition'](),_0x3ee15c=_0x112647['fromRange'](_0x58575f['getFirstRange']());if(_0x1c20f1['enterBlock'](_0x1aa466)){const _0x119f95=_0x1357df['model']['createPositionAt'](_0x36601c['parent']['nextSibling'],0x0),_0x4d832f=_0x1aa466['createRange'](_0x36601c,_0x119f95);_0xfab3ee['markInsertion'](_0x4d832f);}else _0x1aa466['setSelection'](_0x1aa466['createRange'](_0x3ee15c['end']));_0x3ee15c['detach'](),_0x1c20f1['fire']('afterExecute',{'writer':_0x1aa466});});}),_0x1357df['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x1357df,'split'),{'priority':'high'}),_0x1357df['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1c8504,_0x1a4d59,_0x23e539)=>{const _0x1328bf=_0x23e539['mapper']['markerNameToElements'](_0x1a4d59['markerName']);if(_0x1328bf){for(const _0x33f735 of _0x1328bf)_0x33f735['hasClass']('ck-suggestion-marker-split')&&(_0x23e539['mapper']['unbindElementFromMarkerName'](_0x33f735,_0x1a4d59['markerName']),_0x23e539['writer']['remove'](_0x33f735));}},{'priority':'high'}),_0x1357df['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x52b084,_0x395c05,_0x57b601)=>{_0x57b601['options']['showSuggestionHighlights']&&Fe(_0x1357df,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x52b084,_0x395c05,_0x57b601);},{'priority':'high'});}}class Z extends _0x1667de{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3cbc2b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3cbc2b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3cbc2b['enableCommand']('findNext'),_0x3cbc2b['enableCommand']('findPrevious'),_0x3cbc2b['enableCommand']('replace'),_0x3cbc2b['enableCommand']('replaceAll');}['handleFindCommand'](_0x4b38d3,_0x5b6a6c,_0x102ab3={}){const _0x389691=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4b38d3(_0xb95176=>{let _0x5081cc=('string'==typeof _0x5b6a6c?_0x389691['findByTextCallback'](_0x5b6a6c,_0x102ab3):_0x5b6a6c)(_0xb95176);Array['isArray'](_0x5081cc)&&(_0x5081cc={'results':_0x5081cc,'searchText':'string'==typeof _0x5b6a6c?_0x5b6a6c:''});const _0x5309ef=_0x5081cc['results']['filter'](_0xbc1d0a=>!0x1===this['_isInDeletionRange'](_0xbc1d0a,_0xb95176['item']));return{..._0x5081cc,'results':_0x5309ef};},_0x102ab3);}['_isInDeletionRange'](_0x520311,_0xa7c69e){const _0x1e9bb6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa7c69e,_0x520311['start']),this['editor']['model']['createPositionAt'](_0xa7c69e,_0x520311['end']));for(const _0x12e933 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1e9bb6['getIntersection'](_0x12e933['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x1667de{['afterInit'](){const _0x2b1fb5=this['editor']['locale'],_0xfff721=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xf509fc,commandName:_0x2b86e2}of ro)this['editor']['plugins']['has'](_0xf509fc)&&(_0xfff721['enableDefaultAttributesIntegration'](_0x2b86e2),_0xfff721['registerInlineAttribute'](_0x2b86e2));_0xfff721['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x2b1fb5,'FORMAT_FONT_SIZE')),_0xfff721['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x2b1fb5,'FORMAT_FONT_FAMILY')),_0xfff721['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x2b1fb5,'FORMAT_FONT_COLOR')),_0xfff721['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x2b1fb5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39b61b=this['editor'],_0x21ff4a=_0x39b61b['locale'];_0x39b61b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ea5ea=>{const _0x1ecffd=_0x21ff4a['t'];if('formatInline'!=_0x4ea5ea['type'])return;const {data:_0x21cfe8}=_0x4ea5ea;if(null!=_0x21cfe8){if('fontSize'==_0x21cfe8['commandName']){const _0x4ce239=_0x21cfe8['commandParams'][0x0]['value'];if(_0x4ce239){const _0x574f99=_0x1ecffd(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5c48a0=>_0x5c48a0['model']==_0x4ce239)['title'])['toLowerCase']();return{'type':'format','content':c(_0x21ff4a,'*Set\x20font\x20size:*\x20%0',_0x574f99)};}return{'type':'format','content':c(_0x21ff4a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x21cfe8['commandName']){const _0x357485=_0x21cfe8['commandParams'][0x0]['value'];return _0x357485?{'type':'format','content':c(_0x21ff4a,'*Set\x20font\x20family:*\x20%0',_0x357485)}:{'type':'format','content':c(_0x21ff4a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x21cfe8['commandName']){const _0x436a93=_0x21cfe8['commandParams'][0x0]['value'];if(_0x436a93){const _0x58f7a7=_0x22fa3b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x40f254=>_0x40f254['model']==_0x436a93);let _0x4d6039=_0x436a93,_0x2140c5='';return _0x58f7a7&&(_0x4d6039=_0x58f7a7['label'],_0x2140c5=_0x1ecffd(_0x4d6039)['toLowerCase']()),{'type':'format','content':c(_0x21ff4a,'*Set\x20font\x20color:*\x20%0',_0x2140c5)['trim'](),'color':{'value':_0x436a93,'title':_0x2140c5||_0x4d6039}};}return{'type':'format','content':c(_0x21ff4a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x21cfe8['commandName']){const _0x5f0e07=_0x21cfe8['commandParams'][0x0]['value'];if(_0x5f0e07){const _0x250ed5=_0x22fa3b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2ce837=>_0x2ce837['model']==_0x5f0e07);let _0x3b661a=_0x5f0e07,_0x3112cc='';return _0x250ed5&&(_0x3b661a=_0x250ed5['label'],_0x3112cc=_0x1ecffd(_0x3b661a)['toLowerCase']()),{'type':'format','content':c(_0x21ff4a,'*Set\x20font\x20background\x20color:*\x20%0',_0x3112cc)['trim'](),'color':{'value':_0x5f0e07,'title':_0x3112cc||_0x3b661a}};}return{'type':'format','content':c(_0x21ff4a,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x1667de{['afterInit'](){const _0x223eca=this['editor'],_0x9a3f7e=_0x223eca['plugins']['get']('TrackChangesEditing'),_0x5d285f=_0x223eca['commands']['get']('copyFormat'),_0x37756d=_0x223eca['commands']['get']('pasteFormat');_0x5d285f&&_0x37756d&&(_0x9a3f7e['enableDefaultAttributesIntegration']('pasteFormat'),_0x9a3f7e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x24267a=this['editor'],_0x5a6884=_0x24267a['locale'];_0x24267a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11d88a=>{if('formatBlock'!=_0x11d88a['type']&&'formatInline'!=_0x11d88a['type'])return;const {data:_0xc50dcf}=_0x11d88a;if(_0xc50dcf&&'pasteFormat'===_0xc50dcf['commandName']){const _0x50c716=[],_0x2d2eee=_0xc50dcf['commandParams'][0x0];for(const [_0x4151d4,_0xa5009e]of Object['entries'](_0x2d2eee))_0x50c716['push'](so(_0x24267a,_0x4151d4,_0xa5009e));return _0x50c716['length']?{'type':'format','content':c(_0x5a6884,'*Set\x20format\x20to:*\x20%0',_0x50c716['join'](',\x20'))}:{'type':'format','content':c(_0x5a6884,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1f96ad,_0x2e9d03,_0xc7d507){const _0x5d48ae=_0x1f96ad['locale']['t'],_0x1f67f5=_0x2e9d03['split'](/(?=[A-Z])/)['join']('\x20'),_0x3b87ee=_0x5d48ae(_0x1f67f5['charAt'](0x0)['toUpperCase']()+_0x1f67f5['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xc7d507)return _0x3b87ee;if('fontColor'===_0x2e9d03||'fontBackgroundColor'===_0x2e9d03){const _0x51da0c=_0x22fa3b(_0x1f96ad['config']['get']('fontColor.colors'))['find'](_0x4ca3f1=>_0x4ca3f1['model']==_0xc7d507);return _0x3b87ee+'\x20('+(_0x51da0c?_0x5d48ae(_0x51da0c['label'])['toLowerCase']():_0xc7d507)+')';}if('fontSize'===_0x2e9d03&&isNaN(parseFloat(_0xc7d507))){const _0x4c474e=_0x1f96ad['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1f96ad['config']['get']('fontSize.options'))['find'](_0x2e31f0=>_0x2e31f0['model']==_0xc7d507);return _0x3b87ee+'\x20('+(_0x4c474e?_0x5d48ae(_0x4c474e['title'])['toLowerCase']():_0xc7d507)+')';}return _0x3b87ee+'\x20('+_0xc7d507+')';}class nt extends _0x1667de{['_headingOptions'];['afterInit'](){const _0x29d46d=this['editor'];if(!_0x29d46d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x29d46d['config']['get']('heading.options');const _0x375e8e=_0x29d46d['locale'],_0x185852=_0x29d46d['plugins']['get']('TrackChangesEditing');_0x185852['enableDefaultAttributesIntegration']('heading');for(const _0x35472f of this['_headingOptions'])'paragraph'!=_0x35472f['model']&&_0x185852['descriptionFactory']['registerElementLabel'](_0x35472f['model'],_0x2300ff=>{const _0x46e9f8=this['_getHeadingLevel'](_0x35472f['model']);return null!==_0x46e9f8?_0x234829(_0x2300ff,_0x46e9f8):_0x4eefcf(_0x2300ff,_0x35472f['title']);});function _0x234829(_0x54f218,_0x41e782){return c(_0x375e8e,'ELEMENT_HEADING',[_0x54f218,_0x41e782]);}function _0x4eefcf(_0x492fda,_0x1297c7){return c(_0x375e8e,'ELEMENT_HEADING_CUSTOM',[_0x492fda,_0x1297c7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x566d07=this['editor'],_0x477b34=_0x566d07['locale'];function _0x2e2a74(_0x983d30,_0x47f0ac){return c(_0x477b34,'ELEMENT_HEADING_CUSTOM',[_0x983d30,_0x47f0ac]);}_0x566d07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc1eeba=>{if('formatBlock'!=_0xc1eeba['type'])return;const {data:_0x6e388a}=_0xc1eeba;if(_0x6e388a&&'heading'==_0x6e388a['commandName']){const _0x1edfb4=_0x6e388a['commandParams'][0x0]['value'],_0x12e23c=this['_getHeadingLevel'](_0x1edfb4);if(null!==_0x12e23c)return{'type':'format','content':c(_0x477b34,'*Change\x20to:*\x20%0',(_0x306109=0x1,_0x331b98=_0x12e23c,c(_0x477b34,'ELEMENT_HEADING',[_0x306109,_0x331b98])))};const _0x65cf31=this['_headingOptions']['find'](_0x4ce5e8=>_0x4ce5e8['model']===_0x1edfb4)['title'];return{'type':'format','content':c(_0x477b34,'*Change\x20to:*\x20%0',_0x2e2a74(0x1,_0x65cf31))};}var _0x306109,_0x331b98;});}['_getHeadingLevel'](_0x317813){const _0x39f2b0=_0x317813['match'](/^heading(\d+)/);if(_0x39f2b0)return _0x39f2b0[0x1];const _0x4b776e=this['_headingOptions']?.['find'](_0x376298=>_0x376298['model']==_0x317813);if(_0x4b776e&&_0x4b776e['view']){const _0x1eca98=_0x4b776e['view'],_0x5293ef=(_0x1eca98['name']??_0x1eca98)['match'](/^h(\d+)/);if(_0x5293ef)return _0x5293ef[0x1];}return null;}}class it extends _0x1667de{['afterInit'](){const _0x287ee4=this['editor'];if(!_0x287ee4['plugins']['has']('HighlightEditing'))return;const _0xe33655=_0x287ee4['plugins']['get']('TrackChangesEditing'),_0x5640ac=_0x287ee4['locale'];_0xe33655['enableDefaultAttributesIntegration']('highlight'),_0xe33655['registerInlineAttribute']('highlight'),_0xe33655['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x5640ac,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e0049=this['editor'],_0x4de4f3=_0x1e0049['locale'];_0x1e0049['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5411d6=>{if('formatInline'!=_0x5411d6['type'])return;const {data:_0x217e98}=_0x5411d6;if(_0x217e98&&'highlight'==_0x217e98['commandName']){const _0x47efce=_0x4de4f3['t'],_0x50426f=_0x217e98['commandParams'][0x0]['value'];if(_0x50426f){const _0x15ca19=_0x1e0049['config']['get']('highlight.options')['find'](_0x7a0ac2=>_0x7a0ac2['model']==_0x50426f),_0x15fffc=_0x47efce(_0x15ca19['title'])['toLowerCase']();return{'type':'format','content':c(_0x4de4f3,'*Set\x20highlight:*\x20%0',_0x15fffc),'color':{'value':_0x15ca19['color'],'title':_0x15ca19['title']}};}return{'type':'format','content':c(_0x4de4f3,'*Remove\x20highlight*',c(_0x4de4f3,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x1667de{['afterInit'](){const _0x1a7a65=this['editor'];if(!_0x1a7a65['plugins']['has']('HorizontalLineEditing'))return;_0x1a7a65['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x35d5dd=_0x1a7a65['plugins']['get']('TrackChangesEditing'),_0x2d1102=_0x1a7a65['locale'];_0x35d5dd['descriptionFactory']['registerElementLabel']('horizontalLine',_0x243d72=>c(_0x2d1102,'ELEMENT_HORIZONTAL_LINE',_0x243d72)),_0x1a7a65['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x299b48,{writer:_0xa60155,options:_0x2d15ab})=>{if(!_0x2d15ab['showSuggestionHighlights'])return null;const _0x2ddd72=_0xa60155['createContainerElement']('div'),_0x11f9cc=_0xa60155['createEmptyElement']('hr');return _0xa60155['addClass']('ck-horizontal-line',_0x2ddd72),_0xa60155['insert'](_0xa60155['createPositionAt'](_0x2ddd72,0x0),_0x11f9cc),_0x2ddd72;},'converterPriority':'high'});}}class ot extends _0x1667de{['afterInit'](){const _0x147803=this['editor'];if(!_0x147803['plugins']['has']('HtmlEmbed'))return;const _0xdf892e=_0x147803['plugins']['get']('TrackChangesEditing'),_0x3fbc3e=_0x147803['locale'];_0xdf892e['descriptionFactory']['registerElementLabel']('rawHtml',_0x588622=>c(_0x3fbc3e,'ELEMENT_HTML_EMBED',_0x588622)),_0xdf892e['enableDefaultAttributesIntegration']('htmlEmbed'),_0xdf892e['registerBlockAttribute']('value'),_0xdf892e['descriptionFactory']['registerDescriptionCallback'](_0xf4580c=>{if('attribute'!=_0xf4580c['type'])return;const {data:_0x6d1b36}=_0xf4580c;if(_0x6d1b36&&'value'==_0x6d1b36['key']&&_0xf4580c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2b59a2=c(_0x3fbc3e,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x3fbc3e,'*Change\x20%0\x20content*',_0x2b59a2)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ea1f1=this['editor'],_0x27d366=_0x3ea1f1['locale'];_0x3ea1f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21ca48=>{if('formatBlock'!=_0x21ca48['type'])return;const {data:_0x248e8c}=_0x21ca48;if(_0x248e8c&&'htmlEmbed'==_0x248e8c['commandName']){const _0x25bf9f=c(_0x27d366,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x27d366,'*Change\x20%0\x20content*',_0x25bf9f)};}});}}class rt extends _0x1667de{['afterInit'](){const _0x5f3dfa=this['editor'];if(!_0x5f3dfa['plugins']['has']('ImageEditing'))return;const _0x377a18=_0x5f3dfa['plugins']['get']('TrackChangesEditing'),_0x212d68=_0x5f3dfa['plugins']['get']('ImageUtils'),_0x53a6da=_0x5f3dfa['locale'];_0x377a18['enableCommand']('insertImage'),_0x377a18['descriptionFactory']['registerElementLabel']('imageBlock',_0x23d670=>c(_0x53a6da,'ELEMENT_IMAGE',_0x23d670)),_0x377a18['descriptionFactory']['registerElementLabel']('imageInline',_0x2610cf=>c(_0x53a6da,'ELEMENT_INLINE_IMAGE',_0x2610cf)),_0x377a18['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x53a6da,'ELEMENT_CAPTION')),_0x5f3dfa['plugins']['has']('ImageUploadEditing')&&_0x377a18['enableCommand']('uploadImage'),_0x5f3dfa['plugins']['has']('ImageBlockEditing')&&_0x5f3dfa['plugins']['has']('ImageInlineEditing')&&(_0x377a18['enableCommand']('imageTypeInline',(_0x24604a,_0x410ef9)=>{const _0x4afd96=_0x212d68['getClosestSelectedImageElement'](_0x5f3dfa['model']['document']['selection']);_0x5f3dfa['model']['change'](()=>{_0x377a18['markBlockFormat'](_0x4afd96,{'commandName':'imageTypeInline','commandParams':[_0x410ef9]},[],'convertBlockImageToInline');});}),_0x377a18['enableCommand']('imageTypeBlock',(_0x20179e,_0xd1608)=>{_0x5f3dfa['model']['change'](_0x52cd37=>{let _0x42910e=_0x212d68['getClosestSelectedImageElement'](_0x5f3dfa['model']['document']['selection']),_0xef1466=_0x52cd37['createRangeOn'](_0x42910e);const _0x59a367=_0x252bfd['fromPosition'](_0xef1466['start'],'toPrevious'),_0x1c904c=_0x252bfd['fromPosition'](_0xef1466['end'],'toNext');_0x377a18['forceDefaultExecution'](()=>_0x20179e(_0xd1608)),_0x42910e=_0x212d68['getClosestSelectedImageElement'](_0x5f3dfa['model']['document']['selection']),_0xef1466=_0x52cd37['createRangeOn'](_0x42910e);const _0x37df3b=_0x52cd37['createRange'](_0x59a367,_0x1c904c);_0x59a367['detach'](),_0x1c904c['detach'](),_0x377a18['markBlockFormat'](_0x42910e,{'commandName':'imageTypeInline','commandParams':[_0xd1608]},[],'convertInlineImageToBlock'),_0x37df3b['start']['isBefore'](_0xef1466['start'])&&_0x377a18['markInsertion'](_0x52cd37['createRange'](_0x37df3b['start'],_0xef1466['start']),'convertInlineImageToBlock'),_0xef1466['end']['isBefore'](_0x37df3b['end'])&&_0x377a18['markInsertion'](_0x52cd37['createRange'](_0xef1466['end'],_0x37df3b['end']),'convertInlineImageToBlock');});}),_0x377a18['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x377a18['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x377a18['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x377a18['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x377a18['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x377a18['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2a1ae2])=>{const _0x331aa5=_0x377a18['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5e574f=_0x2a1ae2['start'],_0x53ae15=_0x2a1ae2['end'];const _0x543a8b=_0x5f3dfa['model']['schema']['getNearestSelectionRange'](_0x5e574f,'backward'),_0x3f6e77=_0x5f3dfa['model']['schema']['getNearestSelectionRange'](_0x53ae15,'forward');_0x543a8b['isCollapsed']&&(_0x5e574f=_0x543a8b['start']),_0x3f6e77['isCollapsed']&&(_0x53ae15=_0x3f6e77['end']),_0x331aa5([_0x5f3dfa['model']['createRange'](_0x5e574f,_0x53ae15)]);}),_0x377a18['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x35c679),_0x377a18['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x35c679)),_0x5f3dfa['plugins']['has']('ImageCaptionEditing')&&(_0x377a18['enableCommand']('toggleImageCaption',(_0x5e028d,_0xd644)=>{const _0x37601f=_0x5f3dfa['plugins']['get']('ImageCaptionUtils');let _0x43e195=_0x212d68['getClosestSelectedImageElement'](_0x5f3dfa['model']['document']['selection']),_0x4081fe=_0x37601f['getCaptionFromImageModelElement'](_0x43e195);_0x5f3dfa['model']['change'](()=>{if(_0x4081fe)return void _0x377a18['markDeletion'](_0x5f3dfa['model']['createRangeOn'](_0x4081fe));const _0x157d51=_0x212d68['isBlockImage'](_0x43e195);_0x5e028d(_0xd644),_0x43e195=_0x212d68['getClosestSelectedImageElement'](_0x5f3dfa['model']['document']['selection']),_0x4081fe=_0x37601f['getCaptionFromImageModelElement'](_0x43e195),_0x377a18['markInsertion'](_0x5f3dfa['model']['createRangeOn'](_0x4081fe),_0x157d51?null:'imageCaption');});}),_0x377a18['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x35c679));const _0x5afde7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1337cf(_0x4dc676,_0x38f2fc){const _0x10e7f6=_0x5afde7['findIndex'](({type:_0x28c17a,subType:_0x5ee5bf})=>_0x4dc676['type']==_0x28c17a&&_0x4dc676['subType']==_0x5ee5bf),_0x4caaba=_0x5afde7['findIndex'](({type:_0x36329b,subType:_0x28e8b1})=>_0x38f2fc['type']==_0x36329b&&_0x38f2fc['subType']==_0x28e8b1);if(_0x10e7f6<0x0||_0x4caaba<0x0)return!0x1;const _0x226cee=_0x4dc676['getFirstRange'](),_0x22bd81=_0x38f2fc['getFirstRange']();if((0x0==_0x10e7f6||0x1==_0x10e7f6)&&0x2==_0x4caaba&&_0x226cee['isIntersecting'](_0x22bd81))return!0x0;if(0x2==_0x10e7f6&&0x3==_0x4caaba){const _0x3a7c62=_0x377a18['_findSuggestions'](_0x226cee,'insertion')['filter'](({suggestion:_0x22d2d7,meta:_0x5bde97})=>_0x5bde97['isOwn']&&'convertInlineImageToBlock'==_0x22d2d7['subType']);if(_0x3a7c62['length']>0x1&&_0x22bd81['end']['isEqual'](_0x226cee['start']))return!0x0;if(0x1==_0x3a7c62['length']&&(_0x226cee['start']['isEqual'](_0x22bd81['end'])||_0x226cee['end']['isEqual'](_0x22bd81['start'])))return!0x0;}if(0x3==_0x10e7f6&&0x3==_0x4caaba&&_0x226cee['start']['isBefore'](_0x22bd81['start'])){const _0x1b7058=_0x226cee['end']['nodeAfter'],_0x366869=_0x22bd81['start']['nodeBefore'];return _0x212d68['isBlockImage'](_0x1b7058)&&_0x1b7058===_0x366869;}return!0x1;}function _0x35c679(_0x55e3b2,_0x1e32f8){return _0x1337cf(_0x55e3b2,_0x1e32f8)?[_0x55e3b2,_0x1e32f8]:_0x1337cf(_0x1e32f8,_0x55e3b2)?[_0x1e32f8,_0x55e3b2]:null;}_0x5f3dfa['plugins']['has']('ImageResize')&&(_0x377a18['enableDefaultAttributesIntegration']('resizeImage'),_0x377a18['registerBlockAttribute']('resizedWidth'),_0x377a18['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x53a6da,'FORMAT_IMAGE_SIZE'))),_0x5f3dfa['plugins']['has']('ImageTextAlternativeEditing')&&(_0x377a18['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x377a18['registerBlockAttribute']('alt')),_0x5f3dfa['plugins']['has']('PictureEditing')&&(_0x377a18['registerBlockAttribute']('sources'),_0x377a18['descriptionFactory']['registerDescriptionCallback'](_0xcf692a=>{if('attribute'!=_0xcf692a['type'])return;const {data:_0x2ab609}=_0xcf692a;return _0x2ab609&&'sources'==_0x2ab609['key']?{'type':'format','content':''}:void 0x0;})),_0x5f3dfa['plugins']['has']('ImageSizeAttributes')&&(_0x377a18['registerBlockAttribute']('width'),_0x377a18['registerBlockAttribute']('height'),_0x377a18['descriptionFactory']['registerDescriptionCallback'](_0x2223cf=>{if('attribute'!=_0x2223cf['type'])return;const {data:_0x3283b6}=_0x2223cf;return!_0x3283b6||'width'!=_0x3283b6['key']&&'height'!=_0x3283b6['key']?void 0x0:{'type':'format','content':''};})),_0x377a18['descriptionFactory']['registerDescriptionCallback'](_0x3eb1eb=>{if(!!_0x5afde7['find'](({type:_0x16c76d,subType:_0x204d7a})=>_0x3eb1eb['type']==_0x16c76d&&_0x3eb1eb['subType']==_0x204d7a))return _0x3eb1eb['previous']?{}:void 0x0;}),_0x377a18['descriptionFactory']['registerDescriptionCallback'](_0x24f360=>{if('insertion'==_0x24f360['type']||'deletion'==_0x24f360['type']){const _0x1453da=_0x24f360['getContainedElement']();if(_0x1453da&&_0x1453da['is']('element','caption'))return{'type':'insertion'==_0x24f360['type']?'addObject':'removeObject','element':_0x1453da,'quantity':0x1};}}),_0x377a18['descriptionFactory']['registerDescriptionCallback'](_0x5be6b0=>'formatBlock'==_0x5be6b0['type']&&'convertInlineImageToBlock'==_0x5be6b0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5be6b0['type']&&'convertBlockImageToInline'==_0x5be6b0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x377a18['descriptionFactory']['registerDescriptionCallback'](_0x11b91d=>{if('attribute'!=_0x11b91d['type'])return;const {data:_0xe3c436}=_0x11b91d;if(!_0xe3c436||'alt'!=_0xe3c436['key'])return;const _0x3f5925=_0xe3c436['newValue'];return _0x3f5925?{'type':'format','content':c(_0x53a6da,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3f5925+'\x22')}:{'type':'format','content':c(_0x53a6da,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16a3fe=this['editor'],_0x35dcf6=_0x16a3fe['locale'];_0x16a3fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x339317=>{if('formatBlock'!=_0x339317['type']&&'formatInline'!=_0x339317['type'])return;const {data:_0x5e585d}=_0x339317;if(_0x5e585d){if('imageTextAlternative'==_0x5e585d['commandName']){const _0x4a4dbe=_0x5e585d['commandParams'][0x0]['newValue'];return _0x4a4dbe?{'type':'format','content':c(_0x35dcf6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a4dbe+'\x22')}:{'type':'format','content':c(_0x35dcf6,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5e585d['commandName']){const _0x49bda6=_0x5e585d['commandParams'][0x0]['width'];return _0x49bda6?{'type':'format','content':c(_0x35dcf6,'*Set\x20image\x20width:*\x20%0',_0x49bda6)}:{'type':'format','content':c(_0x35dcf6,'*Reset\x20image\x20width*')};}}});}}class at extends _0x1667de{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x14d97f=this['editor']['locale'],_0x53d886=this['editor']['plugins']['get']('TrackChangesEditing');_0x53d886['enableDefaultAttributesIntegration']('replaceImageSource'),_0x53d886['registerBlockAttribute']('src'),_0x53d886['descriptionFactory']['registerDescriptionCallback'](_0x5d5ca3=>{if('attribute'!=_0x5d5ca3['type'])return;const {data:_0x5417ab}=_0x5d5ca3;return _0x5417ab&&'src'==_0x5417ab['key']?_0x5417ab['newValue']&&_0x5417ab['oldValue']?{'type':'format','content':c(_0x14d97f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x340d0a=this['editor']['plugins']['get']('TrackChangesEditing');_0x340d0a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x340d0a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x340d0a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x340d0a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b671e=this['editor'],_0x4959b3=_0x2b671e['locale'];_0x2b671e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53f7d1=>{if('formatBlock'!=_0x53f7d1['type']&&'formatInline'!=_0x53f7d1['type'])return;const {data:_0x20b55a}=_0x53f7d1;if(!_0x20b55a||'replaceImageSource'!=_0x20b55a['commandName'])return;return{'type':'format','content':c(_0x4959b3,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x1667de{['afterInit'](){const _0x4c2bb4=this['editor'];if(!_0x4c2bb4['plugins']['has']('ImageStyleEditing'))return;const _0x18ab02=_0x4c2bb4['plugins']['get']('TrackChangesEditing'),_0x49c26d=_0x4c2bb4['plugins']['get']('ImageUtils'),_0x39f602={};_0x18ab02['enableCommand']('imageStyle',(_0x47fa17,_0x588eb5)=>{const _0x1beec9=_0x4c2bb4['plugins']['get']('Users')['me'],_0x5e218d=_0x4c2bb4['commands']['get']('imageStyle');let _0x2083da=_0x49c26d['getClosestSelectedImageElement'](_0x4c2bb4['model']['document']['selection']),_0x28e5cc=_0x4c2bb4['model']['createRangeOn'](_0x2083da),_0x5db23b=_0x5e218d['value'];if(_0x5db23b==_0x588eb5['value'])return;const _0x4c5b2f={'commandName':'imageStyle','commandParams':[_0x588eb5],'formatGroupId':_0x2397a2()};_0x4c2bb4['model']['change'](()=>{if(_0x18ab02['getSuggestions']()['filter'](_0x17f031=>_0x17f031['isInContent']&&_0x1beec9==_0x17f031['author']&&('formatBlock'==_0x17f031['type']||'formatInline'==_0x17f031['type'])&&('imageStylePreApply'==_0x17f031['subType']||'imageStylePostApply'==_0x17f031['subType'])&&_0x17f031['getFirstRange']()['isEqual'](_0x28e5cc))['forEach'](_0x2136bb=>_0x18ab02['discardSuggestion'](_0x2136bb['head'])),_0x2083da=_0x49c26d['getClosestSelectedImageElement'](_0x4c2bb4['model']['document']['selection']),_0x28e5cc=_0x4c2bb4['model']['createRangeOn'](_0x2083da),_0x5e218d['refresh'](),_0x4c2bb4['commands']['get']('imageTypeInline')['refresh'](),_0x4c2bb4['commands']['get']('imageTypeBlock')['refresh'](),_0x5db23b=_0x5e218d['value'],_0x5db23b!=_0x588eb5['value'])return _0x49c26d['isInlineImage'](_0x2083da)&&_0x5e218d['shouldConvertImageType'](_0x588eb5['value'],_0x2083da)?(_0x47fa17({..._0x588eb5,'setImageSizes':!0x1}),_0x2083da=_0x49c26d['getClosestSelectedImageElement'](_0x4c2bb4['model']['document']['selection']),void _0x18ab02['markBlockFormat'](_0x2083da,{..._0x4c5b2f,'commandReversedParams':[{'value':_0x5db23b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x49c26d['isBlockImage'](_0x2083da)?_0x18ab02['markBlockFormat'](_0x2083da,_0x4c5b2f,[],'imageStylePostApply'):_0x18ab02['markInlineFormat'](_0x28e5cc,_0x4c5b2f,'imageStylePostApply'));});});for(const _0x4b9e8 of _0x4c2bb4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x39f602[_0x4b9e8['name']]=_0x4b9e8['title']['toLowerCase']();_0x18ab02['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x18ab02['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x18ab02['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x18ab02['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x454f9a])=>{_0x49c26d['setImageNaturalSizeAttributes'](_0x454f9a['getContainedElement']());}),_0x18ab02['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x18804b,_0x48277c)=>{_0x18ab02['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x18804b,{'commandName':_0x48277c['commandName'],'commandParams':_0x48277c['commandReversedParams']});}),_0x18ab02['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x12f1a6,_0x52e8e4){if(_0x2f65f3(_0x12f1a6,_0x52e8e4))return[_0x12f1a6,_0x52e8e4];if(_0x2f65f3(_0x52e8e4,_0x12f1a6))return[_0x52e8e4,_0x12f1a6];return null;});const _0xd82886=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2f65f3(_0x4a2746,_0x4e4d5b){const _0x57e2b3=_0xd82886['findIndex'](({type:_0x2f7303,subType:_0x305995})=>_0x4a2746['type']==_0x2f7303&&_0x4a2746['subType']==_0x305995),_0x35aeac=_0xd82886['findIndex'](({type:_0x686f3,subType:_0x2d1fdb})=>_0x4e4d5b['type']==_0x686f3&&_0x4e4d5b['subType']==_0x2d1fdb);if(_0x57e2b3<0x0||_0x35aeac<0x0)return!0x1;const _0xe4680=_0x4a2746['getFirstRange'](),_0x326667=_0x4e4d5b['getFirstRange']();if((0x0==_0x57e2b3||0x1==_0x57e2b3)&&0x2==_0x35aeac&&_0xe4680['isIntersecting'](_0x326667))return!0x0;if(0x2==_0x57e2b3&&0x3==_0x35aeac){const _0x297f5b=_0x18ab02['_findSuggestions'](_0xe4680,'insertion')['filter'](({suggestion:_0x1f12e3,meta:_0x256791})=>_0x256791['isOwn']&&'convertInlineImageToBlock'==_0x1f12e3['subType']);if(_0x297f5b['length']>0x1&&_0x326667['end']['isEqual'](_0xe4680['start']))return!0x0;if(0x1==_0x297f5b['length']&&(_0xe4680['start']['isEqual'](_0x326667['end'])||_0xe4680['end']['isEqual'](_0x326667['start'])))return!0x0;}if(0x3==_0x57e2b3&&0x3==_0x35aeac&&_0xe4680['start']['isBefore'](_0x326667['start'])){const _0x5830a9=_0xe4680['end']['nodeAfter'],_0x2ee1fd=_0x326667['start']['nodeBefore'];return _0x49c26d['isBlockImage'](_0x5830a9)&&_0x5830a9===_0x2ee1fd;}return!0x1;}_0x4c2bb4['model']['document']['registerPostFixer'](()=>{let _0xd7d7f7=!0x1;const _0x26acff=Array['from'](_0x4c2bb4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x363fac,data:_0x307b4b}of _0x26acff){const {group:_0x5073ce,type:_0x3c387b,subType:_0x3d5a30,id:_0x2703aa}=_0x18ab02['_splitMarkerName'](_0x363fac);if('suggestion'==_0x5073ce&&_0x18ab02['hasSuggestion'](_0x2703aa)){if('formatBlock'==_0x3c387b&&('imageStylePreApply'==_0x3d5a30||'imageStylePostApply'==_0x3d5a30)){const _0x46bb3b=_0x18ab02['getSuggestion'](_0x2703aa);if(_0x307b4b['newRange']){const _0x1b39f8=_0x46bb3b['getFirstRange']()['getContainedElement']();if(_0x49c26d['isBlockImage'](_0x1b39f8))continue;_0x18ab02['discardSuggestion'](_0x46bb3b),_0xd7d7f7=!0x0;}}if('insertion'==_0x3c387b&&'imageCaption'==_0x3d5a30&&!_0x307b4b['newRange']){const _0x4ceca2=_0x18ab02['getSuggestion'](_0x2703aa);_0x4ceca2['next']&&_0x4ceca2['next']['isInContent']&&(_0x18ab02['discardSuggestion'](_0x4ceca2['next']),_0xd7d7f7=!0x0);}}}return _0xd7d7f7;}),this['_registerLegacyDescription'](_0x39f602);}['_registerLegacyDescription'](_0x173105){const _0x23d63f=this['editor'],_0x43f0d0=_0x23d63f['locale'];_0x23d63f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41878f=>{if('formatBlock'!=_0x41878f['type']&&'formatInline'!=_0x41878f['type'])return;const {data:_0x402cd5}=_0x41878f;if(!_0x402cd5||'imageStyle'!=_0x402cd5['commandName'])return;const _0x1991cf=_0x402cd5['commandParams'][0x0]['value'];return _0x6e75ef('side'===_0x1991cf?c(_0x43f0d0,'FORMAT_SIDE_IMAGE'):_0x173105[_0x1991cf]||_0x1991cf);function _0x6e75ef(_0x83095c){return{'type':'format','content':c(_0x43f0d0,'*Format:*\x20%0',_0x83095c)};}});}}class ut extends _0x1667de{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x17184f){super(_0x17184f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4e5a64=this['editor'],_0x43b078=_0x4e5a64['commands']['get']('importWord'),_0x479da2=_0x4e5a64['commands']['get']('trackChanges');_0x43b078&&(_0x43b078['on']('execute',(_0x27f9d7,[,_0x2e853b])=>{this['_trackChangesValueDuringImport']=_0x479da2['value'],_0x2e853b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x43b078,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x43b078,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x479da2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4e5a64['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x27eb56,_0x276e37){const {suggestions:_0x1c3e47}=_0x276e37,_0x1391e9=this['editor']['commands']['get']('trackChanges'),_0x549180=_0x1391e9['value'];this['_trackChangesValueDuringImport']!==_0x549180&&(_0x1391e9['execute'](),this['_trackChangesExecuted']=!0x0),_0x1c3e47&&_0x1c3e47['forEach'](({id:_0x2e514b,type:_0x19d4d5,author:_0x292a8b,created_at:_0x2ffbe6})=>{const _0x1fc989={'id':_0x2e514b,'type':_0x19d4d5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x292a8b,'createdAt':_0x2ffbe6?new Date(_0x2ffbe6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1fc989);});}}class ft extends _0x1667de{['afterInit'](){const _0x2808b5=this['editor'],_0x1f806c=_0x2808b5['plugins']['get']('TrackChangesEditing');if(_0x2808b5['plugins']['has']('IndentEditing')&&(_0x1f806c['enableCommand']('indent'),_0x1f806c['enableCommand']('outdent')),_0x2808b5['plugins']['has']('IndentBlock')){for(const _0x2331cf of['indentBlock','outdentBlock'])_0x1f806c['enableDefaultAttributesIntegration'](_0x2331cf);}const _0x5033d2=_0x2808b5['locale'];_0x1f806c['registerBlockAttribute']('blockIndent'),_0x1f806c['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5033d2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x370a08=this['editor'],_0x28c903=_0x370a08['locale'],_0x3d238e=_0x370a08['plugins']['get']('TrackChangesEditing');_0x3d238e['descriptionFactory']['registerDescriptionCallback'](_0x40b79f=>{if('formatBlock'!=_0x40b79f['type'])return;const {data:_0x459b6a}=_0x40b79f;if(!_0x459b6a)return;if('indentBlock'!=_0x459b6a['commandName']&&'outdentBlock'!=_0x459b6a['commandName'])return;const _0x1a28ce=_0x40b79f['getItems']()[0x0],_0x75bb4=_0x3d238e['descriptionFactory']['getItemLabel'](_0x1a28ce);return'indentBlock'==_0x459b6a['commandName']?{'type':'format','content':c(_0x28c903,'*Indent:*\x20%0',_0x75bb4)}:'outdentBlock'==_0x459b6a['commandName']?{'type':'format','content':c(_0x28c903,'*Outdent:*\x20%0',_0x75bb4)}:void 0x0;});}}class ht extends _0x1667de{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x1667de{['afterInit'](){const _0x5c4e0b=this['editor'];if(!_0x5c4e0b['plugins']['has']('LinkEditing'))return;const _0x254d62=_0x5c4e0b['plugins']['get']('TrackChangesEditing'),_0x48c95c=_0x5c4e0b['commands']['get']('link');_0x254d62['enableDefaultAttributesIntegration']('link'),_0x254d62['enableDefaultAttributesIntegration']('unlink'),_0x254d62['registerInlineAttribute']('linkHref');for(const _0x503015 of _0x48c95c['manualDecorators'])_0x254d62['registerInlineAttribute'](_0x503015['id']),_0x254d62['descriptionFactory']['registerAttributeLabel'](_0x503015['id'],'link\x20('+_0x503015['label']['toLowerCase']()+')');_0x254d62['descriptionFactory']['registerDescriptionCallback'](_0x36a413=>{if('attribute'!=_0x36a413['type'])return;const {data:_0x56f63a}=_0x36a413;if(!_0x56f63a||'linkHref'!=_0x56f63a['key'])return;const _0x1b58e5=_0x56f63a['newValue'],_0x41033d=_0x5c4e0b['locale'];return{'type':'format','content':null==_0x1b58e5?c(_0x41033d,'*Remove\x20link*'):c(_0x41033d,'*Set\x20link:*\x20%0','\x22'+_0x1b58e5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b440b=this['editor'],_0x2858fb=_0x5b440b['locale'];_0x5b440b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x385dcd=>{if('formatInline'!=_0x385dcd['type'])return;const {data:_0x29467c}=_0x385dcd;if(_0x29467c){if('link'==_0x29467c['commandName']){const _0x1bdc26=_0x29467c['commandParams'][0x0];return{'type':'format','content':c(_0x2858fb,'*Set\x20link:*\x20%0','\x22'+_0x1bdc26+'\x22')};}return'unlink'==_0x29467c['commandName']?{'type':'format','content':c(_0x2858fb,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x1667de{['afterInit'](){const _0x88d4fc=this['editor'],_0x4b1419=_0x88d4fc['locale'];if(!_0x88d4fc['plugins']['has']('LegacyListEditing'))return;const _0x4046c7=_0x88d4fc['plugins']['get']('TrackChangesEditing'),_0x4026aa=_0x88d4fc['plugins']['has']('LegacyTodoListEditing');function _0x2458a1(_0x4132a2){return()=>{const _0x4fca20=_0x88d4fc['model']['document']['selection'],_0x512364=_0x88d4fc['commands']['get'](_0x4132a2);if(_0x512364['value'])return void _0x88d4fc['execute']('paragraph',{});const _0x35dee1=_0x4132a2['slice'](0x0,-0x4),_0x275f1d=function(_0x290a10,_0x56bebf,_0x49daa3){let _0x2ffada=Array['from'](_0x290a10)['filter'](_0x4fad03=>function(_0x4e4df4,_0x597b68){return _0x597b68['checkChild'](_0x4e4df4['parent'],'listItem')&&!_0x597b68['isObject'](_0x4e4df4);}(_0x4fad03,_0x49daa3));_0x2ffada=_0x2ffada['filter'](_0x294a78=>!_0x294a78['is']('element','listItem')||_0x294a78['getAttribute']('listType')!=_0x56bebf);const _0x1d14ae=new Set();for(const _0x285406 of _0x2ffada)_0x285406['is']('element','listItem')?_0x1d14ae['add'](Le(_0x285406)):_0x1d14ae['add'](_0x285406);return Array['from'](_0x1d14ae);}(_0x4fca20['getSelectedBlocks'](),_0x35dee1,_0x88d4fc['model']['schema']);_0x88d4fc['model']['change'](()=>{for(const _0xf61411 of _0x275f1d)_0x4046c7['markBlockFormat'](_0xf61411,{'commandName':_0x4132a2,'commandParams':[{'forceValue':!_0x512364['value']}],'formatGroupId':'blockName'},Ee(_0xf61411));});};}function _0x487835(_0x5ac83b){return()=>{const _0xbccabd=function(_0x723cd2){let _0x209fc2=Array['from'](_0x723cd2);const _0x560a35=_0x209fc2['findIndex'](_0x2fd834=>'listItem'!=_0x2fd834['name']);return _0x560a35>-0x1&&(_0x209fc2=_0x209fc2['slice'](0x0,_0x560a35)),_0x209fc2;}(_0x88d4fc['model']['document']['selection']['getSelectedBlocks']()),_0x53cbbc=_0x88d4fc['model']['createRange'](_0x88d4fc['model']['createPositionAt'](_0xbccabd[0x0],'before'),_0x88d4fc['model']['createPositionAt'](_0xbccabd[_0xbccabd['length']-0x1],'end'));_0x88d4fc['model']['change'](()=>{_0x4046c7['markBlockFormat'](_0x53cbbc,{'commandName':_0x5ac83b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x57ee07){const _0x332dc6=new Set();for(const _0x4209f3 of _0x57ee07){let _0x3d3baa=_0x4209f3['nextSibling'];for(;_0x3d3baa&&_0x3d3baa['getAttribute']('listIndent')>_0x4209f3['getAttribute']('listIndent');)_0x332dc6['add'](_0x3d3baa),_0x3d3baa=_0x3d3baa['nextSibling'];}return Array['from'](_0x332dc6);}(_0xbccabd));});};}_0x4046c7['enableCommand']('numberedList',_0x2458a1('numberedList')),_0x4046c7['enableCommand']('bulletedList',_0x2458a1('bulletedList')),_0x4026aa&&_0x4046c7['enableCommand']('todoList',_0x2458a1('todoList')),_0x4046c7['enableCommand']('indentList',_0x487835('indentList')),_0x4046c7['enableCommand']('outdentList',_0x487835('outdentList')),_0x4026aa&&_0x4046c7['enableCommand']('checkTodoList',()=>{const _0x50a3fc=_0x88d4fc['commands']['get']('checkTodoList'),_0x2026eb=Array['from'](_0x50a3fc['_selectedElements']);_0x2026eb['filter'](_0x228c5d=>_0x228c5d['getAttribute']('todoListChecked')!=_0x50a3fc['value']),_0x88d4fc['model']['change'](()=>{for(const _0x1dbb2b of _0x2026eb)_0x4046c7['markBlockFormat'](_0x1dbb2b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x50a3fc['value']}]});});}),_0x4046c7['descriptionFactory']['registerElementLabel']('listItem',_0x20c0c6=>c(_0x4b1419,'ELEMENT_LIST_ITEM',_0x20c0c6)),_0x4046c7['descriptionFactory']['registerDescriptionCallback'](_0x46f173=>{if('formatBlock'!=_0x46f173['type']&&'formatInline'!=_0x46f173['type'])return;const {data:_0x5f439d}=_0x46f173;if(_0x5f439d){if('numberedList'==_0x5f439d['commandName']||'bulletedList'==_0x5f439d['commandName']||'todoList'==_0x5f439d['commandName'])switch(_0x5f439d['commandName']['replace']('List','')){case'bulleted':return _0x424bd8(c(_0x4b1419,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x424bd8(c(_0x4b1419,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x424bd8(c(_0x4b1419,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5f439d['commandName'])return{'type':'format','content':c(_0x4b1419,'*Indent:*\x20%0',c(_0x4b1419,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5f439d['commandName'])return{'type':'format','content':c(_0x4b1419,'*Outdent:*\x20%0',c(_0x4b1419,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5f439d['commandName'])return _0x5f439d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4b1419,'*Check\x20item*')}:{'type':'format','content':c(_0x4b1419,'*Uncheck\x20item*')};}function _0x424bd8(_0x3bd0b8){return{'type':'format','content':c(_0x4b1419,'*Change\x20to:*\x20%0',_0x3bd0b8)};}});}}function Le(_0x25b87c){const _0x2689fc=_0x25b87c['getAttribute']('listIndent');if(0x0==_0x2689fc)return _0x25b87c;let _0x514126=_0x25b87c;for(;_0x25b87c['previousSibling']&&_0x25b87c['previousSibling']['is']('element','listItem');){const _0x5161c5=_0x25b87c['previousSibling']['getAttribute']('listIndent');if(_0x5161c5==_0x2689fc)_0x514126=_0x25b87c['previousSibling'];else{if(_0x5161c5<_0x2689fc)break;}_0x25b87c=_0x25b87c['previousSibling'];}return _0x514126;}function Ee(_0x4477e9){const _0x3c4e7b=[];if(_0x4477e9['is']('element','listItem')&&_0x4477e9['getAttribute']('listIndent')>0x0){let _0x4237dd=_0x4477e9['nextSibling'];for(;_0x4237dd&&'listItem'==_0x4237dd['name']&&_0x4237dd['getAttribute']('listIndent')==_0x4477e9['getAttribute']('listIndent');)_0x3c4e7b['push'](_0x4237dd),_0x4237dd=_0x4237dd['nextSibling'];}return _0x3c4e7b;}class Q extends _0x1667de{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x50bddf=this['editor']['config']['get']('list.properties'),_0x471317=this['editor']['plugins']['get']('TrackChangesEditing');_0x50bddf['styles']&&_0x471317['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x50bddf['reversed']&&_0x471317['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x50bddf['startIndex']&&_0x471317['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x471317['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1ca3f6,_0x1bb763={}){const _0x2b6d3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a0e66=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2b6d3b['markMultiRangeBlockFormat'](_0x3a0e66,{'commandName':'listStyle','commandParams':[{'type':_0x1bb763['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4576e8,_0x558637={}){const _0x4956ec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1164ac=this['_getSuggestionBlocks'](_0x2913cc=>_0x2913cc['is']('element','listItem')&&'numbered'===_0x2913cc['getAttribute']('listType'));if(_0x1164ac['length']<0x1)return;const _0x2afc6e=_0x1164ac['map'](_0x7d2127=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x7d2127,'before'),this['editor']['model']['createPositionAt'](_0x7d2127,0x0)));this['editor']['model']['change'](()=>{_0x4956ec['markMultiRangeBlockFormat'](_0x2afc6e,{'commandName':'listReversed','commandParams':[{'reversed':_0x558637['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x44b11a,_0x29dc39={}){const _0x268939=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b29c5=this['_getSuggestionBlocks'](_0x1c0940=>_0x1c0940['is']('element','listItem')&&'numbered'===_0x1c0940['getAttribute']('listType'));if(_0x4b29c5['length']<0x1)return;const _0x7b2293=_0x4b29c5['map'](_0x1874f6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1874f6,'before'),this['editor']['model']['createPositionAt'](_0x1874f6,0x0)));this['editor']['model']['change'](()=>{_0x268939['markMultiRangeBlockFormat'](_0x7b2293,{'commandName':'listStart','commandParams':[{'startIndex':_0x29dc39['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4ea841){if('formatBlock'!=_0x4ea841['type']&&'formatInline'!=_0x4ea841['type'])return;const _0x3eec94=this['editor']['locale'],{data:_0x30be83}=_0x4ea841;if(!_0x30be83)return;let _0x5131a3,_0x3b7a5b;switch(_0x30be83['commandName']){case'listStyle':_0x5131a3='*Change\x20to:*\x20%0',_0x3b7a5b={'type':'format','content':c(_0x3eec94,_0x5131a3,c(_0x3eec94,this['_getTranslationKeyForListStyle'](_0x30be83['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5131a3=_0x30be83['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3b7a5b={'type':'format','content':c(_0x3eec94,_0x5131a3)};break;case'listStart':_0x5131a3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3b7a5b={'type':'format','content':c(_0x3eec94,_0x5131a3,_0x30be83['commandParams'][0x0]['startIndex'])};}return _0x3b7a5b;}['_getSuggestionBlocksForListStyle'](){const _0x2d7a90=this['editor']['plugins']['get']('LegacyListUtils');let _0x176534=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x176534[0x0]?.['is']('element','listItem')&&_0x176534['unshift'](..._0x2d7a90['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x176534[_0x176534['length']-0x1]?.['is']('element','listItem')&&_0x176534['push'](..._0x2d7a90['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x176534=[...new Set(_0x176534)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x176534=_0x176534['filter'](_0x30ef6d=>_0x30ef6d['is']('element','listItem'))),_0x176534;}['_getSuggestionBlocks'](_0x70241b){const _0x246576=this['editor']['plugins']['get']('LegacyListUtils');let _0x58f9fe=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x70241b)['map'](_0x218870=>{const _0x4242a3=this['editor']['model']['createPositionAt'](_0x218870,0x0);return[..._0x246576['getSiblingNodes'](_0x4242a3,'backward'),..._0x246576['getSiblingNodes'](_0x4242a3,'forward')];})['flat']();return _0x58f9fe=[...new Set(_0x58f9fe)],_0x58f9fe;}['_getTranslationKeyForListStyle'](_0x359a64){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x359a64)||'default')['toUpperCase']()+'_LIST_'+_0x359a64['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x1667de{['afterInit'](){const _0x593c7f=this['editor'];if(!_0x593c7f['plugins']['has']('MediaEmbedEditing'))return;const _0x3bc759=_0x593c7f['plugins']['get']('TrackChangesEditing'),_0x56c3eb=_0x593c7f['locale'];_0x3bc759['enableCommand']('mediaEmbed'),_0x3bc759['descriptionFactory']['registerElementLabel']('media',_0x6180d=>c(_0x56c3eb,'ELEMENT_MEDIA',_0x6180d)),_0x593c7f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5cce21,{writer:_0x56c2ef,options:_0x32c03f})=>{if(_0x32c03f['showSuggestionHighlights'])return _0x56c2ef['createEmptyElement']('div');},'converterPriority':'high'}),_0x593c7f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x367ffb,_0x458bc3,_0x4cb1d7)=>{_0x4cb1d7['options']['showSuggestionHighlights']&&_0x367ffb['stop']();},{'priority':'high'});}}class pt extends _0x1667de{['afterInit'](){const _0x524b0d=this['editor'];_0x524b0d['plugins']['has']('MentionEditing')&&_0x524b0d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x1667de{['afterInit'](){const _0x158793=this['editor'];if(!_0x158793['plugins']['has']('MergeFieldsEditing'))return;const _0x3da165=_0x158793['plugins']['get']('TrackChangesEditing'),_0x54565b=_0x158793['locale'];_0x3da165['enableCommand']('insertMergeField'),_0x3da165['enableCommand']('insertMergeFieldBlock'),_0x3da165['enableCommand']('insertMergeFieldImage'),_0x3da165['descriptionFactory']['registerElementLabel']('mergeField',_0x55e27b=>c(_0x54565b,'ELEMENT_MERGE_FIELD',_0x55e27b)),_0x3da165['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x53ed18=>c(_0x54565b,'ELEMENT_MERGE_FIELD',_0x53ed18)),_0x3da165['descriptionFactory']['registerDescriptionCallback'](_0x18e634=>{if('insertion'!=_0x18e634['type']&&'deletion'!=_0x18e634['type'])return;const _0x2b53e1=_0x18e634['getContainedElement']();if(null==_0x2b53e1)return;const _0x34f097=_0x158793['plugins']['get']('MergeFieldsEditing');let _0x29be5c;switch(_0x34f097['getMergeFieldType'](_0x2b53e1)){case null:return;case'image':{const _0x1dd480=_0x34f097['unwrapAffixes'](_0x2b53e1['getAttribute']('src'));_0x29be5c=_0x34f097['getLabel'](_0x1dd480)||_0x1dd480;break;}default:{const _0x544842=_0x2b53e1['getAttribute']('id');_0x29be5c=_0x34f097['getLabel'](_0x544842)||_0x544842;break;}}return'insertion'==_0x18e634['type']?{'type':'insertion','content':c(_0x54565b,'*Insert:*\x20%0','\x22'+_0x29be5c+'\x22\x20'+c(_0x54565b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x54565b,'*Remove:*\x20%0','\x22'+_0x29be5c+'\x22\x20'+c(_0x54565b,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x1667de{['afterInit'](){const _0x677984=this['editor'],_0x3e7dac=_0x677984['plugins']['get']('TrackChangesEditing');_0x677984['plugins']['has']('MultiLevelList')&&(_0x3e7dac['enableDefaultAttributesIntegration']('multiLevelList'),_0x3e7dac['registerBlockAttribute']('listMarkerStyle'),_0x3e7dac['descriptionFactory']['registerDescriptionCallback'](_0x580d29=>this['handleDescriptions'](_0x580d29)));}['handleDescriptions'](_0x5451ed){const _0x12b1f7=this['editor']['locale'],{data:_0x53f5f0}=_0x5451ed,_0x234ab1={'type':'format','content':''};if(_0x53f5f0&&'listMarkerStyle'==_0x53f5f0['key']){if(!_0x53f5f0['oldValue'])return{'type':'format','content':c(_0x12b1f7,'*Set\x20format:*\x20%0',c(_0x12b1f7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53f5f0['newValue']+')'};if(!_0x53f5f0['newValue']){let _0x40f324=_0x5451ed['head'];for(;_0x40f324;){if(_0x40f324['data']&&'listType'==_0x40f324['data']['key']&&_0x40f324['data']['newValue'])return _0x234ab1;_0x40f324=_0x40f324['next'];}return{'type':'format','content':c(_0x12b1f7,'*Remove\x20format:*\x20%0',c(_0x12b1f7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53f5f0['oldValue']+')'};}}}}class bt extends _0x1667de{['afterInit'](){const _0x3a21da=this['editor'];if(!_0x3a21da['plugins']['has']('PageBreakEditing'))return;_0x3a21da['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x50782d=_0x3a21da['plugins']['get']('TrackChangesEditing'),_0x19eb08=_0x3a21da['locale'];_0x50782d['descriptionFactory']['registerElementLabel']('pageBreak',_0x38f03e=>c(_0x19eb08,'ELEMENT_PAGE_BREAK',_0x38f03e));}}class yt extends _0x1667de{['afterInit'](){const _0x132b5f=this['editor'];if(!_0x132b5f['plugins']['has']('Paragraph'))return;const _0x57474b=_0x132b5f['locale'],_0x5155ff=_0x132b5f['plugins']['get']('TrackChangesEditing');_0x5155ff['descriptionFactory']['registerElementLabel']('paragraph',_0x430631=>c(_0x57474b,'ELEMENT_PARAGRAPH',_0x430631)),_0x5155ff['enableDefaultAttributesIntegration']('paragraph'),_0x5155ff['enableCommand']('insertParagraph'),_0x132b5f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x132b5f),{'priority':'highest'}),_0x132b5f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1ddee4,_0x5e3060,_0xb79989)=>{_0xb79989['options']['showSuggestionHighlights']&&nr(_0x132b5f,{'showActiveMarker':!0x1})(_0x1ddee4,_0x5e3060,_0xb79989);},{'priority':'highest'});const _0x418bfa=_0x5155ff['descriptionFactory'];_0x418bfa['registerDescriptionCallback'](_0x18f41e=>{if('insertion'!==_0x18f41e['type'])return;const {start:_0x5bfa4b,end:_0x2df30d}=_0x18f41e['getFirstRange']();if(!_0x5bfa4b['isTouching'](_0x2df30d)||!_0x5bfa4b['nodeAfter'])return;const _0x1b046c=_0x132b5f['model']['schema'],_0x210d9b=_0x5bfa4b['nodeAfter'];return _0x1b046c['isBlock'](_0x210d9b)&&!_0x1b046c['isLimit'](_0x210d9b)&&_0x1b046c['checkChild'](_0x210d9b,'$text')?{'type':'insertion','content':c(_0x57474b,'*Insert:*\x20%0',_0x418bfa['getItemLabel'](_0x210d9b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a559f=this['editor'],_0x4d8e5a=_0x2a559f['locale'];_0x2a559f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40622a=>{if('formatBlock'!=_0x40622a['type'])return;const {data:_0x325785}=_0x40622a;return _0x325785&&'paragraph'==_0x325785['commandName']?{'type':'format','content':c(_0x4d8e5a,'*Change\x20to:*\x20%0',c(_0x4d8e5a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4cbb80,{showActiveMarker:_0x5287d1=!0x0}={}){return(_0x58abfe,_0x45be59,_0x23250a)=>{const _0x3235f4=_0x4cbb80['plugins']['get']('TrackChangesEditing'),_0x391ca9=_0x45be59['markerRange']['start'],_0x582394=_0x45be59['markerRange']['end'],_0x4b2a83=_0x4cbb80['model']['schema'];if(!_0x391ca9['isTouching'](_0x582394)||!_0x391ca9['nodeAfter'])return;const _0x823230=_0x391ca9['nodeAfter'];if(_0x4b2a83['isBlock'](_0x823230)&&!_0x4b2a83['isLimit'](_0x823230)&&_0x4b2a83['checkChild'](_0x823230,'$text')){if(!_0x23250a['consumable']['consume'](_0x45be59['markerRange'],_0x58abfe['name']))return;const {authorId:_0x2b6b85}=_0x3235f4['_splitMarkerName'](_0x45be59['markerName']),_0x2b03c5=_0x23250a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2b6b85}),_0x4bcd8c=_0x23250a['mapper']['toViewPosition'](_0x582394);_0x5287d1&&_0x3235f4['activeMarkers']['includes'](_0x45be59['markerName'])&&_0x23250a['writer']['addClass']('ck-suggestion-marker--active',_0x2b03c5),_0x23250a['writer']['insert'](_0x4bcd8c,_0x2b03c5),_0x23250a['mapper']['bindElementToMarker'](_0x2b03c5,_0x45be59['markerName']);}};}class jt extends _0x1667de{['afterInit'](){const _0x5b0bfc=this['editor'];_0x5b0bfc['commands']['get']('replaceSource')&&_0x5b0bfc['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x1667de{['afterInit'](){const _0x11d8ef=this['editor'];if(!_0x11d8ef['plugins']['has']('RemoveFormatEditing'))return;_0x11d8ef['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c7dad=this['editor'];_0x5c7dad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a7d08=>{if('formatBlock'!=_0x2a7d08['type']&&'formatInline'!=_0x2a7d08['type'])return;const {data:_0x4dd4ef}=_0x2a7d08;return _0x4dd4ef&&'removeFormat'==_0x4dd4ef['commandName']?{'type':'format','content':c(_0x5c7dad['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x1667de{['afterInit'](){const _0xe512c1=this['editor'];if(!_0xe512c1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x37b743=_0xe512c1['plugins']['get']('TrackChangesEditing');_0x37b743['enableCommand']('goToPreviousRestrictedEditingException'),_0x37b743['enableCommand']('goToNextRestrictedEditingException');const _0x239835=_0xe512c1['plugins']['get']('RestrictedEditingModeEditing');_0x239835['enableCommand']('trackChanges'),_0x239835['enableCommand']('acceptSuggestion'),_0x239835['enableCommand']('discardSuggestion'),_0x239835['enableCommand']('acceptAllSuggestions'),_0x239835['enableCommand']('discardAllSuggestions'),_0x239835['enableCommand']('acceptSelectedSuggestions'),_0x239835['enableCommand']('discardSelectedSuggestions');}}class It extends _0x1667de{['afterInit'](){const _0x4f28a8=this['editor'];if(!_0x4f28a8['plugins']['has']('ShiftEnter'))return;const _0x3a8958=_0x4f28a8['plugins']['get']('TrackChangesEditing');_0x3a8958['enableCommand']('shiftEnter'),_0x4f28a8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4f28a8),{'priority':'high'}),_0x4f28a8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4f28a8),{'priority':'high'}),_0x4f28a8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1979c8,_0x46a6e4,_0x3cc258)=>{_0x3cc258['options']['showSuggestionHighlights']&&je(_0x4f28a8,{'showActiveMarker':!0x1})(_0x1979c8,_0x46a6e4,_0x3cc258);}),_0x3a8958['descriptionFactory']['registerElementLabel']('softBreak',_0x52a917=>c(_0x4f28a8['locale'],'ELEMENT_LINE_BREAK',_0x52a917));}}function je(_0x54228c,{showActiveMarker:_0x4bf2a6=!0x0}={}){return(_0x243226,_0x48a763,_0x1f040c)=>{const _0x3e091e=_0x54228c['plugins']['get']('TrackChangesEditing');if(!_0x1f040c['consumable']['test'](_0x48a763['markerRange'],_0x243226['name']))return;const _0x1d25d4=_0x54228c['model'];for(const _0x4c055e of _0x48a763['markerRange']['getItems']()){if(!_0x4c055e['is']('element','softBreak'))continue;const _0x528231='deletion'==_0x48a763['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3f466c}=_0x3e091e['_splitMarkerName'](_0x48a763['markerName']),_0x228bad=_0x1f040c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x528231,'data-author-id':_0x3f466c}),_0x580fa7=_0x1f040c['mapper']['toViewPosition'](_0x1d25d4['createPositionBefore'](_0x4c055e));_0x4bf2a6&&_0x3e091e['activeMarkers']['includes'](_0x48a763['markerName'])&&_0x1f040c['writer']['addClass']('ck-suggestion-marker--active',_0x228bad),_0x1f040c['writer']['insert'](_0x580fa7,_0x228bad),_0x1f040c['mapper']['bindElementToMarker'](_0x228bad,_0x48a763['markerName']);}};}class _t extends _0x1667de{['afterInit'](){const _0x8ebf85=this['editor'],_0x385b3d=_0x8ebf85['model'],_0x11d6c9=_0x8ebf85['locale'];if(!_0x8ebf85['plugins']['has']('StandardEditingModeEditing'))return;const _0x59ccd6=_0x8ebf85['plugins']['get']('TrackChangesEditing'),_0x349c78='restrictedEditingException',_0x4e9de6=_0x8ebf85['commands']['get'](_0x349c78);_0x59ccd6['enableCommand'](_0x349c78,(_0x18bd8,_0x1dc60f={})=>{const _0xf47698=_0x385b3d['document']['selection'];if(_0xf47698['isCollapsed'])return void _0x18bd8(_0x1dc60f);const _0x5c55e9=void 0x0!==_0x1dc60f['forceValue']?_0x1dc60f['forceValue']:!_0x4e9de6['value'];_0x385b3d['change'](()=>{const _0x1a8170=Array['from'](_0xf47698['getRanges']());for(const _0x2c49b2 of _0x1a8170){const _0x286fbc=_0x5c55e9?[_0x2c49b2]:io(_0x349c78,_0x2c49b2,_0x385b3d);for(const _0x1cc708 of _0x286fbc)_0x59ccd6['markInlineFormat'](_0x1cc708,{'commandName':_0x349c78,'commandParams':[{'forceValue':_0x5c55e9}]});}});}),_0x59ccd6['descriptionFactory']['registerDescriptionCallback'](_0x3a145b=>{if('formatBlock'!=_0x3a145b['type']&&'formatInline'!=_0x3a145b['type'])return;const {data:_0x1811f0}=_0x3a145b;return _0x1811f0&&_0x1811f0['commandName']==_0x349c78?_0x1811f0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x11d6c9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x11d6c9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x1667de{['afterInit'](){const _0x26a7cd=this['editor'];if(!_0x26a7cd['plugins']['has']('Style')||!_0x26a7cd['plugins']['has']('DataSchema'))return;const _0x307aa2=_0x26a7cd['plugins']['get']('TrackChangesEditing'),_0x5ddf8b=_0x26a7cd['locale'],_0x5cfc30=_0x26a7cd['config']['get']('style')||{},_0x18a9df=_0x26a7cd['plugins']['get']('GeneralHtmlSupport'),_0x195dff=_0x26a7cd['plugins']['get']('StyleUtils')['normalizeConfig'](_0x26a7cd['plugins']['get']('DataSchema'),_0x5cfc30['definitions']);_0x307aa2['enableDefaultAttributesIntegration']('style');const _0x4fb615=new Set();for(const _0x197eeb of _0x195dff['block']){const _0x5f0ee6=_0x18a9df['getGhsAttributeNameForElement'](_0x197eeb['element']);_0x4fb615['add'](_0x5f0ee6);}const _0x2360f7=new Set();for(const _0x237b97 of _0x195dff['inline']){const _0x5848c3=_0x18a9df['getGhsAttributeNameForElement'](_0x237b97['element']);_0x2360f7['add'](_0x5848c3);for(const _0x59a18a of _0x237b97['ghsAttributes'])_0x2360f7['add'](_0x59a18a);}for(const _0x3648df of _0x4fb615)_0x307aa2['registerBlockAttribute'](_0x3648df),_0x307aa2['descriptionFactory']['registerAttributeLabel'](_0x3648df,c(_0x5ddf8b,'FORMAT_STYLE'));for(const _0x4a932c of _0x2360f7)_0x307aa2['registerInlineAttribute'](_0x4a932c),_0x307aa2['descriptionFactory']['registerAttributeLabel'](_0x4a932c,c(_0x5ddf8b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40b3f6=this['editor'],_0x5c74e9=_0x40b3f6['locale'];_0x40b3f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eb56b=>{if('formatBlock'!=_0x2eb56b['type']&&'formatInline'!=_0x2eb56b['type'])return;const {data:_0x1c16a4}=_0x2eb56b;return _0x1c16a4&&'style'===_0x1c16a4['commandName']?_0x1c16a4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5c74e9,'*Set\x20format:*\x20%0',_0x1c16a4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5c74e9,'*Remove\x20format:*\x20%0',_0x1c16a4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x1667de{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5e2853){super(_0x5e2853),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xa3d974=this['editor'],_0x37deae=_0xa3d974['model']['document']['selection'];if(!_0xa3d974['plugins']['has']('TableEditing'))return;const _0x4ed609=_0xa3d974['locale'],_0x21f86e=_0xa3d974['plugins']['get']('TrackChangesEditing'),_0x16d08d=_0xa3d974['plugins']['get']('TableUtils');_0x21f86e['descriptionFactory']['registerElementLabel']('table',_0x4a7031=>c(_0x4ed609,'ELEMENT_TABLE',_0x4a7031)),this['_setupColumnsRowsFixing'](),_0x21f86e['enableCommand']('insertTable'),_0x21f86e['enableCommand']('selectTableRow'),_0x21f86e['enableCommand']('selectTableColumn');for(const _0x584866 of['insertTableRowAbove','insertTableRowBelow']){const _0x129d84=_0xa3d974['commands']['get'](_0x584866);_0x21f86e['enableCommand'](_0x584866,_0x499dab=>{_0xa3d974['model']['change'](_0x266f3e=>{_0x499dab();const _0x184eac='above'===_0x129d84['order'],_0x8a960=_0x16d08d['getSelectionAffectedTableCells'](_0x37deae),_0xaf073d=_0x16d08d['getRowIndexes'](_0x8a960),_0x1bd13a=_0x184eac?_0xaf073d['first']-0x1:_0xaf073d['last']+0x1,_0x1a7709=_0x8a960[0x0]['findAncestor']('table'),_0x585b16=_0x16d08d['createTableWalker'](_0x1a7709,{'startRow':_0x1bd13a,'endRow':_0x1bd13a}),_0x4771c1=Array['from'](_0x585b16)['map'](_0xfec51d=>_0x266f3e['createRangeOn'](_0xfec51d['cell']));_0x21f86e['markMultiRangeInsertion'](_0x4771c1,'tableRow');});});}for(const _0x50b5be of['insertTableColumnLeft','insertTableColumnRight']){const _0xd4d171=_0xa3d974['commands']['get'](_0x50b5be);_0x21f86e['enableCommand'](_0x50b5be,_0x3dd694=>{_0xa3d974['model']['change'](_0x1337ee=>{_0x3dd694();const _0x562b2c='left'===_0xd4d171['order'],_0x57390c=_0x16d08d['getSelectionAffectedTableCells'](_0x37deae),_0x5fdf85=_0x16d08d['getColumnIndexes'](_0x57390c),_0x34b258=_0x562b2c?_0x5fdf85['first']-0x1:_0x5fdf85['last']+0x1,_0x15dee9=_0x57390c[0x0]['findAncestor']('table'),_0x568353=_0x16d08d['createTableWalker'](_0x15dee9,{'startRow':0x0,'column':_0x34b258,'includeAllSlots':!0x1}),_0x1762ef=Array['from'](_0x568353)['map'](_0x2a1f72=>_0x1337ee['createRangeOn'](_0x2a1f72['cell']));_0x21f86e['markMultiRangeInsertion'](_0x1762ef,'tableColumn');});});}for(const _0xe5bdb3 of['removeTableRow','removeTableColumn']){const _0x3f4682=_0xe5bdb3['substr'](0xb),_0x287d34=_0x3f4682['toLowerCase'](),_0x328216=_0x287d34['substr'](0x0,0x3)+'span',_0x2ebf74='table'+_0x3f4682,_0x210132='min'+_0x3f4682,_0x3b9323='max'+_0x3f4682;_0x21f86e['enableCommand'](_0xe5bdb3,()=>{_0xa3d974['model']['change'](_0x2d13e4=>{const _0xd6a1bc=_0x16d08d['getSelectionAffectedTableCells'](_0x37deae),_0x5cda67=_0xd6a1bc[0x0]['findAncestor']('table');let _0x4b8529;if('removeTableRow'==_0xe5bdb3){const _0x570384=_0x16d08d['getRowIndexes'](_0xd6a1bc);_0x4b8529={'startRow':_0x570384['first'],'endRow':_0x570384['last'],'includeAllSlots':!0x0};}else{const _0x2e9ea5=_0x16d08d['getColumnIndexes'](_0xd6a1bc);_0x4b8529={'startColumn':_0x2e9ea5['first'],'endColumn':_0x2e9ea5['last'],'includeAllSlots':!0x0};}const _0x7e4ab4=_0x16d08d['createTableWalker'](_0x5cda67,_0x4b8529),_0x137562=Array['from'](_0x7e4ab4)['map'](({cell:_0x4117f1})=>_0x4117f1),_0x3c61c8=Ne(_0x137562['filter'](_0x55bd06=>_0x55bd06['hasAttribute'](_0x328216))),_0x2f6647=Ne(_0x137562['filter'](_0x17266b=>!_0x17266b['hasAttribute'](_0x328216)))['map'](_0x592f42=>_0x2d13e4['createRangeOn'](_0x592f42)),_0x32f9a=_0x21f86e['markMultiRangeDeletion'](_0x2f6647,_0x2ebf74);if(_0x32f9a&&('tableRow'==_0x32f9a['subType']||'tableColumn'==_0x32f9a['subType'])){const _0x408367=this['_getSuggestionCoords'](_0x32f9a);for(const _0x2fcf2e of _0x3c61c8){const _0x3a3175=_0x2d13e4['createRangeOn'](_0x2fcf2e),_0x21de82=_0x16d08d['getCellLocation'](_0x2fcf2e),_0x4d2337=_0x2fcf2e['getAttribute'](_0x328216)-0x1,_0x41d600=_0x408367[_0x210132],_0x253994=_0x408367[_0x3b9323];_0x41d600<=_0x21de82[_0x287d34]&&_0x21de82[_0x287d34]+_0x4d2337<=_0x253994&&_0x32f9a['addRange'](_0x3a3175);}}});});}function _0x3dff72(_0x40e0a0){const _0x417a6e=Array['from'](_0x37deae['getRanges']())['map'](_0xc7525e=>_0x112647['fromRange'](_0xc7525e));_0xa3d974['model']['change'](_0x1b47a6=>{const _0x379775=_0x1b47a6['batch'];_0x40e0a0=_0x40e0a0['filter'](_0x1b6bab=>'$graveyard'!=_0x1b6bab['root']['rootName']),_0x1b47a6['setSelection'](_0x40e0a0),_0xa3d974['commands']['get']('removeTableRow')['refresh'](),_0xa3d974['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xa3d974['model']['enqueueChange'](()=>{_0xa3d974['model']['enqueueChange'](_0x379775,_0x57b964=>{const _0xe794dc=_0x417a6e['filter'](_0x36a2bb=>'$graveyard'!=_0x36a2bb['root']['rootName']);_0xe794dc['length']>0x0&&_0x57b964['setSelection'](_0xe794dc);for(const _0x563678 of _0x417a6e)_0x563678['detach']();});});});}function _0x3cfab9(_0x21c696){_0xa3d974['model']['change'](_0x5dc8d5=>{const _0x4861fe=Array['from'](_0x37deae['getRanges']())['map'](_0x43745a=>_0x112647['fromRange'](_0x43745a)),_0x1836f2=[];for(const _0x1c5182 of _0x21c696)for(const _0x1f475d of _0x1c5182['getItems']({'shallow':!0x0}))_0x1836f2['push'](_0x1f475d);for(const _0x2d564f of _0x1836f2)'$graveyard'!=_0x2d564f['root']['rootName']&&(_0x5dc8d5['setSelection'](_0x5dc8d5['createPositionAt'](_0x2d564f,0x0)),_0xa3d974['commands']['get']('removeTableColumn')['refresh'](),_0xa3d974['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1ccd10=_0x4861fe['filter'](_0xb87ec6=>'$graveyard'!=_0xb87ec6['root']['rootName']);_0x1ccd10['length']>0x0&&_0x5dc8d5['setSelection'](_0x1ccd10);for(const _0x5a2bd9 of _0x4861fe)_0x5a2bd9['detach']();});}function _0xc30496(_0x588035,_0x2c2b81){return _0x2c2b81['every'](_0x183d99=>_0x588035['some'](_0x5f35f7=>_0x5f35f7['end']['isEqual'](_0x183d99['start'])||_0x183d99['end']['isEqual'](_0x5f35f7['start'])));}function _0x16ac32(_0x13565e,_0xb41eab){return!_0x13565e['some'](_0x8bee23=>_0xb41eab['some'](_0x3f7f96=>_0x8bee23['isIntersecting'](_0x3f7f96)))&&_0x13565e['some'](_0x44b09f=>_0xb41eab['some'](_0x188f1a=>_0x44b09f['end']['isTouching'](_0x188f1a['start'])));}_0xa3d974['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xccc9db,_0x2d670f,_0x2b2076)=>{if(!_0x2b2076['options']['showSuggestionHighlights'])return;const _0x41fb91=_0x2d670f['item'];if(!_0x41fb91)return;const _0x53eae7=_0x2b2076['mapper']['toViewElement'](_0x41fb91);function _0x1ebdd9(_0x56f197){return Array['isArray'](_0x56f197)?_0x56f197:[_0x56f197];}_0x53eae7&&'tableCell'===_0x41fb91['name']&&_0x172b91(_0x53eae7,_0x2b2076['writer'],(_0x2ec548,_0x500fea,_0x2ce2db)=>_0x2ce2db['addClass'](_0x1ebdd9(_0x500fea['classes']),_0x2ec548),(_0x4030e2,_0x12cf41,_0x596d41)=>_0x596d41['removeClass'](_0x1ebdd9(_0x12cf41['classes']),_0x4030e2));},{'priority':'highest'}),_0x21f86e['descriptionFactory']['registerDescriptionCallback'](_0xf68f32=>{if('insertion'!=_0xf68f32['type']&&'deletion'!=_0xf68f32['type'])return;const _0x307252=_0xf68f32['getContainedElement']();if(null!=_0x307252&&_0x307252['is']('element','table')){if('insertion'==_0xf68f32['type']){const _0x362d93=_0xf68f32['getItems']()['filter'](_0x5c0aec=>_0x5c0aec['is']('$textProxy'))['map'](_0x5bfce1=>_0x5bfce1['data']);if(_0x362d93['length'])return{'type':'insertion','content':c(_0x4ed609,'*Insert:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x362d93['join']('\x20')+'\x22'))};}if('deletion'==_0xf68f32['type']){const _0x104ac0=_0xf68f32['getItems']()['filter'](_0x2452fe=>_0x2452fe['is']('$textProxy'))['map'](_0x408047=>_0x408047['data']);if(_0x104ac0['length'])return{'type':'deletion','content':c(_0x4ed609,'*Remove:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x104ac0['join']('\x20')+'\x22'))};}}}),_0x21f86e['descriptionFactory']['registerDescriptionCallback'](_0x496b06=>{if('tableRow'==_0x496b06['subType']){const _0x445c91=_0x496b06['getItems']()['filter'](_0x133399=>_0x133399['is']('$textProxy'))['map'](_0x44e7d7=>_0x44e7d7['data']),_0x510e0e=this['_getSuggestionCoords'](_0x496b06),_0x424afe=_0x510e0e['maxRow']-_0x510e0e['minRow']+0x1;if('insertion'==_0x496b06['type'])return _0x445c91['length']?{'type':'insertion','content':c(_0x4ed609,'*Insert:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x424afe,'\x22'+_0x445c91['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4ed609,'*Insert:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_ROW',_0x424afe))};if('deletion'==_0x496b06['type'])return _0x445c91['length']?{'type':'deletion','content':c(_0x4ed609,'*Remove:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x424afe,'\x22'+_0x445c91['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4ed609,'*Remove:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_ROW',_0x424afe))};}if('tableColumn'==_0x496b06['subType']){const _0x721366=_0x496b06['getItems']()['filter'](_0x4c9f52=>_0x4c9f52['is']('$textProxy'))['map'](_0x3ae713=>_0x3ae713['data']),_0x39e3f4=this['_getSuggestionCoords'](_0x496b06),_0x180fd2=_0x39e3f4['maxColumn']-_0x39e3f4['minColumn']+0x1;if('insertion'==_0x496b06['type'])return _0x721366['length']?{'type':'insertion','content':c(_0x4ed609,'*Insert:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x180fd2,'\x22'+_0x721366['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4ed609,'*Insert:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_COLUMN',_0x180fd2))};if('deletion'==_0x496b06['type'])return _0x721366['length']?{'type':'deletion','content':c(_0x4ed609,'*Remove:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x180fd2,'\x22'+_0x721366['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4ed609,'*Remove:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_COLUMN',_0x180fd2))};}}),_0x21f86e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3dff72),_0x21f86e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3dff72),_0x21f86e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3cfab9),_0x21f86e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3cfab9),_0x21f86e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xc30496),_0x21f86e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xc30496),_0x21f86e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x16ac32),_0x21f86e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x16ac32);}['_acceptFormatSuggestionCallbackFactory'](){const _0x184e1b=this['editor'],_0x4bfede=_0x184e1b['model']['document']['selection'];return(_0xa04a27,_0x5cc6fe)=>{_0x184e1b['model']['change'](_0x540d51=>{const {commandName:_0x2d3d6b,commandParams:_0x2a50f8}=_0x5cc6fe;let _0x746007=_0xa04a27[0x0]['end']['nodeBefore'];_0x2a50f8&&_0x2a50f8[0x0]&&!0x1===_0x2a50f8[0x0]['forceValue']&&(_0x746007=_0xa04a27[0x0]['start']['nodeAfter']);const _0x4e91bd=_0x540d51['createRangeIn'](_0x746007);if('$graveyard'==_0x4e91bd['root']['rootName'])return;const _0x528f1b=Array['from'](_0x4bfede['getRanges']())['map'](_0x3522df=>_0x112647['fromRange'](_0x3522df));_0x540d51['setSelection'](_0x4e91bd),_0x184e1b['commands']['get'](_0x2d3d6b)['refresh'](),_0x2a50f8['push']({'forceDefaultExecution':!0x0}),_0x184e1b['execute'](_0x2d3d6b,..._0x2a50f8);const _0x1bb808=_0x528f1b['filter'](_0x40f118=>'$graveyard'!=_0x40f118['root']['rootName']);_0x1bb808['length']>0x0&&_0x540d51['setSelection'](_0x1bb808);for(const _0x561577 of _0x528f1b)_0x561577['detach']();});};}['_getCoordsForCells'](_0xe3d5d){const _0x13effc=this['editor']['plugins']['get']('TableUtils');let _0x1eb7ed=Number['MAX_SAFE_INTEGER'],_0x35f69c=Number['MIN_SAFE_INTEGER'],_0x30e2df=Number['MAX_SAFE_INTEGER'],_0x1b7e4a=Number['MIN_SAFE_INTEGER'];for(const _0x54b852 of _0xe3d5d){if('$graveyard'==_0x54b852['root']['rootName'])continue;const {row:_0x58cff2,column:_0x103391}=_0x13effc['getCellLocation'](_0x54b852),_0x2d0e96=_0x54b852['hasAttribute']('rowspan')?_0x54b852['getAttribute']('rowspan')-0x1:0x0,_0xcc2a06=_0x54b852['hasAttribute']('colspan')?_0x54b852['getAttribute']('colspan')-0x1:0x0;_0x1eb7ed=_0x58cff2<_0x1eb7ed?_0x58cff2:_0x1eb7ed,_0x35f69c=_0x58cff2+_0x2d0e96>_0x35f69c?_0x58cff2+_0x2d0e96:_0x35f69c,_0x30e2df=_0x103391<_0x30e2df?_0x103391:_0x30e2df,_0x1b7e4a=_0x103391+_0xcc2a06>_0x1b7e4a?_0x103391+_0xcc2a06:_0x1b7e4a;}return{'minRow':_0x1eb7ed,'maxRow':_0x35f69c,'minColumn':_0x30e2df,'maxColumn':_0x1b7e4a};}['_setupColumnsRowsFixing'](){const _0x2f3023=this['editor'],_0x2b8ec7=_0x2f3023['plugins']['get']('TrackChangesEditing'),_0x4db0cb=_0x2f3023['plugins']['get']('TableUtils');_0x2f3023['model']['document']['on']('change:data',()=>{const _0x50df13=Array['from'](_0x2f3023['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x532c69,data:_0x216aaf}of _0x50df13){const {group:_0x95eb2,id:_0x3e424b,subType:_0x3dbbf9}=_0x2b8ec7['_splitMarkerName'](_0x532c69);if('suggestion'!=_0x95eb2)continue;if(null!=_0x216aaf['oldRange'])continue;const _0x2a5377=_0x2b8ec7['getSuggestion'](_0x3e424b);this['_tablePostFixingSubtypes']['includes'](_0x3dbbf9)&&this['_tableSuggestions']['add'](_0x2a5377);}},{'priority':'low'});const _0x4f2cf7=(_0x2594fa,_0x1447e8)=>{let _0x216d65=!0x1;const _0x3345e0=_0x1447e8['createRangeOn'](_0x2594fa),_0x370356=_0x2594fa['findAncestor']('table'),_0xd728d5=_0x4db0cb['getCellLocation'](_0x2594fa);for(const _0x10555b of this['_tableSuggestions']){const _0x18716f=_0x10555b['subType'],_0x3de036=_0x18716f['startsWith']('tablePaste'),_0x3ffd80=_0x18716f['substr'](_0x3de036?0xa:0x5),_0x647f54=_0x3ffd80['toLowerCase'](),_0x5e7686=_0x647f54['substr'](0x0,0x3)+'span',_0x462a34='min'+_0x3ffd80,_0x5068a8='max'+_0x3ffd80;if(!_0x10555b['isInContent'])continue;if(_0x370356!=_0x10555b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x10555b['isIntersectingWithRange'](_0x3345e0))continue;const _0x120049=_0x2594fa['hasAttribute'](_0x5e7686)?_0x2594fa['getAttribute'](_0x5e7686)-0x1:0x0,_0x4a5f1b=this['_getSuggestionCoords'](_0x10555b),_0x4738f1=_0x4a5f1b[_0x462a34],_0x21fe09=_0x4a5f1b[_0x5068a8];_0x4738f1<=_0xd728d5[_0x647f54]&&_0xd728d5[_0x647f54]+_0x120049<=_0x21fe09&&(_0x10555b['addRange'](_0x3345e0),_0x216d65=!0x0);}return _0x216d65;};_0x2f3023['model']['document']['registerPostFixer'](_0x25a8dc=>{let _0x2af1a3=!0x1;for(const _0x2de3c8 of _0x2f3023['model']['document']['differ']['getChanges']())if('insert'==_0x2de3c8['type']){if('tableRow'==_0x2de3c8['name']){for(const _0x555ce7 of _0x2de3c8['position']['nodeAfter']['getChildren']())_0x2af1a3=_0x2af1a3||_0x4f2cf7(_0x555ce7,_0x25a8dc);}else'tableCell'==_0x2de3c8['name']&&(_0x2af1a3=_0x2af1a3||_0x4f2cf7(_0x2de3c8['position']['nodeAfter'],_0x25a8dc));}return _0x2af1a3;});}['_getSuggestionCoords'](_0xae8d41){return this['_getCoordsForCells'](_0xae8d41['getRanges']()['map'](_0x50ac78=>_0x50ac78['start']['nodeAfter']));}}function Ne(_0x279f6e){return Array['from'](new Set(_0x279f6e)['values']());}class Nt extends _0x1667de{static get['requires'](){return[Ct];}['afterInit'](){const _0x2ee1fa=this['editor'],_0x5e626c=_0x2ee1fa['model']['document']['selection'],_0x31aa70=_0x2ee1fa['locale'];if(!_0x2ee1fa['plugins']['has']('TableEditing'))return;const _0x39f404=_0x2ee1fa['plugins']['get']('TrackChangesEditing'),_0x19c51d=_0x2ee1fa['plugins']['get']('TableUtils'),_0x5dd8e1=_0x2ee1fa['plugins']['get'](Ct);_0x5dd8e1['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x39f404['enableCommand']('mergeTableCells',()=>{const _0x2536c0=_0x19c51d['getSelectionAffectedTableCells'](_0x2ee1fa['model']['document']['selection']);_0x2ee1fa['model']['change'](()=>{_0x39f404['markMultiRangeBlockFormat'](_0x2536c0,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2ee1fa['commands']['get']('mergeTableCells')['on']('execute',(_0x16e55e,_0x2a02f1)=>{_0x2ee1fa['commands']['get']('trackChanges')['value']&&(_0x2a02f1['length']>0x0&&_0x2a02f1[_0x2a02f1['length']-0x1]&&_0x2a02f1[_0x2a02f1['length']-0x1]['forceDefaultExecution']||_0x39f404['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x16e55e['stop']());},{'priority':'highest'});for(const _0x115be0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4dc101=_0x2ee1fa['commands']['get'](_0x115be0);_0x39f404['enableCommand'](_0x115be0,()=>{const _0x133dd7=_0x2ee1fa['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x171cdf=>_0x171cdf['is']('element','tableCell')),_0x2decb1=_0x4dc101['value'];_0x2ee1fa['model']['change'](()=>{_0x39f404['markMultiRangeBlockFormat']([_0x133dd7,_0x2decb1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x37f541 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x57511d=_0x2ee1fa['commands']['get'](_0x37f541);_0x39f404['enableCommand'](_0x37f541,()=>{const _0x4110b9=_0x19c51d['getSelectionAffectedTableCells'](_0x2ee1fa['model']['document']['selection'])[0x0],_0x3efcc1=_0x4110b9['findAncestor']('table'),{column:_0x233fb1,row:_0x504df0}=_0x19c51d['getCellLocation'](_0x4110b9);let _0x271a1d=[];if('horizontally'==_0x57511d['direction']){const _0x1c34ad=_0x19c51d['createTableWalker'](_0x3efcc1,{'startRow':_0x504df0,'endRow':_0x504df0,'includeAllSlots':!0x0});_0x271a1d=Array['from'](_0x1c34ad)['map'](_0x28a36d=>_0x28a36d['cell']);}else{const _0x26f5c5=_0x19c51d['createTableWalker'](_0x3efcc1,{'column':_0x233fb1,'includeAllSlots':!0x0});_0x271a1d=Array['from'](_0x26f5c5)['map'](_0x37e5ba=>_0x37e5ba['cell']);}_0x2ee1fa['model']['change'](_0x4f7687=>{_0x39f404['markBlockFormat'](_0x4f7687['createRangeOn'](_0x4110b9),{'commandName':_0x37f541,'commandParams':[]},_0x271a1d,_0x37f541);});});}_0x39f404['descriptionFactory']['registerDescriptionCallback'](_0x127f8a=>{if('formatBlock'!=_0x127f8a['type']&&'formatInline'!=_0x127f8a['type'])return;const {data:_0x20bb0}=_0x127f8a;return _0x20bb0&&'mergeTableCells'==_0x20bb0['commandName']?{'type':'format','content':c(_0x31aa70,'*Merge\x20cells*')}:void 0x0;}),_0x39f404['descriptionFactory']['registerDescriptionCallback'](_0x5f4182=>{if('formatBlock'!=_0x5f4182['type']&&'formatInline'!=_0x5f4182['type'])return;const {data:_0x23326d}=_0x5f4182;return _0x23326d?'splitTableCellVertically'==_0x23326d['commandName']?{'type':'format','content':c(_0x31aa70,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x23326d['commandName']?{'type':'format','content':c(_0x31aa70,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x322b63=_0x5dd8e1['_acceptFormatSuggestionCallbackFactory']();for(const _0x2edc95 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x39f404['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2edc95,'accept',_0x322b63);for(const _0x288023 of['splitTableCellVertically','splitTableCellHorizontally'])_0x39f404['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x288023,'accept',_0x322b63);_0x39f404['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4a1039=>{_0x2ee1fa['model']['change'](_0x277e43=>{const _0x27b163=Array['from'](_0x5e626c['getRanges']())['map'](_0x4e3815=>_0x112647['fromRange'](_0x4e3815));_0x277e43['setSelection'](_0x4a1039),_0x2ee1fa['commands']['get']('mergeTableCells')['refresh'](),_0x2ee1fa['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x34f94f=_0x27b163['filter'](_0x29b89f=>'$graveyard'!=_0x29b89f['root']['rootName']);_0x34f94f['length']>0x0&&_0x277e43['setSelection'](_0x34f94f);for(const _0x17a927 of _0x27b163)_0x17a927['detach']();});});for(const _0x258cfd of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2a5a42=_0x2ee1fa['commands']['get'](_0x258cfd);_0x2a5a42['on']('set:isEnabled',(_0x11cde4,_0x251217,_0x671372)=>{if(_0x671372){const _0x2b8ad3=_0x2ee1fa['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x245d94=>_0x245d94['is']('element','tableCell'));this['_areMergableCells'](_0x2a5a42['value'],_0x2b8ad3)||(_0x11cde4['return']=!0x1,_0x11cde4['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5369b0=this['editor']['commands']['get']('mergeTableCells'),_0x268b16=this['editor']['plugins']['get']('TableUtils');if(!_0x5369b0['isEnabled'])return!0x1;const _0x14ab7a=_0x268b16['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x46599e of _0x14ab7a)for(const _0x37db79 of _0x14ab7a)if(_0x46599e!=_0x37db79&&!this['_areMergableCells'](_0x46599e,_0x37db79))return!0x1;return!0x0;}['_areMergableCells'](_0x1ac451,_0x3dcd1e){const _0x393857=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40d9ec=this['editor']['model']['createRangeOn'](_0x1ac451),_0x9cb37e=this['editor']['model']['createRangeOn'](_0x3dcd1e),_0x5bb3b0=new Set(),_0x29a562=new Set();for(const _0x3f98e6 of _0x393857['getSuggestions']())if(('insertion'==_0x3f98e6['type']||'deletion'==_0x3f98e6['type']||'mergeTableCells'==_0x3f98e6['subType'])&&_0x3f98e6['isInContent']){for(const _0x28a98c of _0x3f98e6['getRanges']())_0x28a98c['containsRange'](_0x40d9ec,!0x0)&&_0x5bb3b0['add'](_0x3f98e6['type']+':'+_0x3f98e6['author']['id']),_0x28a98c['containsRange'](_0x9cb37e,!0x0)&&_0x29a562['add'](_0x3f98e6['type']+':'+_0x3f98e6['author']['id']);}if(_0x5bb3b0['size']!=_0x29a562['size'])return!0x1;for(const _0x269983 of _0x5bb3b0)if(!_0x29a562['has'](_0x269983))return!0x1;return!0x0;}}class Dt extends _0x1667de{static get['requires'](){return[Ct];}['afterInit'](){const _0x5cf63d=this['editor'];if(!_0x5cf63d['plugins']['has']('TableEditing'))return;const _0x96a21=_0x5cf63d['locale'],_0x465f83=_0x5cf63d['plugins']['get']('TrackChangesEditing');_0x465f83['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x465f83['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x465f83['registerBlockAttribute']('headingRows'),_0x465f83['registerBlockAttribute']('headingColumns'),_0x465f83['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x96a21,'FORMAT_HEADER_ROW')),_0x465f83['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x96a21,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x52bba9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cbc11=this['editor']['plugins']['get']('TableUtils'),_0x8d0c4c=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x33d49f({showActiveMarker:_0x485eef=!0x0,setDataAttribute:_0x478f9f=!0x0}={}){return(_0x217545,_0x4f2739,_0xa86777)=>{const {type:_0x4e3b97,id:_0x5218ff}=_0x52bba9['_splitMarkerName'](_0x4f2739['markerName']),_0x1f3bdf=_0x52bba9['getSuggestion'](_0x5218ff),_0x265c0a=_0x1f3bdf['data'];if('formatBlock'!=_0x1f3bdf['type']||!_0x265c0a||'setTableColumnHeader'!=_0x265c0a['commandName'])return;if(_0x4f2739['item'])return void _0x217545['stop']();if(!_0xa86777['consumable']['consume'](_0x4f2739['markerRange'],_0x217545['name']))return;const _0x3f306f=_0x4f2739['markerRange']['start']['nodeAfter'],_0x4e8fd8=_0x4f2739['markerRange']['end']['nodeBefore'],_0x575f89=_0x3f306f['parent']['parent'],{column:_0x51e19f}=_0x2cbc11['getCellLocation'](_0x3f306f),{column:_0x1639c3}=_0x2cbc11['getCellLocation'](_0x4e8fd8);for(let _0x59c177=_0x51e19f;_0x59c177<=_0x1639c3;_0x59c177++){const _0x47000b=_0x2cbc11['createTableWalker'](_0x575f89,{'column':_0x59c177,'includeAllSlots':!0x1});for(const _0x248637 of _0x47000b){const _0x1cff2d=_0x248637['cell'],_0x1fecd6=_0xa86777['mapper']['toViewElement'](_0x1cff2d);_0xa86777['writer']['addClass']('ck-suggestion-marker-'+_0x4e3b97,_0x1fecd6),_0x478f9f&&_0xa86777['writer']['setAttribute']('data-suggestion',_0x5218ff,_0x1fecd6),_0xa86777['mapper']['bindElementToMarker'](_0x1fecd6,_0x4f2739['markerName']),_0x485eef&&(_0x52bba9['activeMarkers']['includes'](_0x4f2739['markerName'])?_0xa86777['writer']['addClass']('ck-suggestion-marker--active',_0x1fecd6):_0xa86777['writer']['removeClass']('ck-suggestion-marker--active',_0x1fecd6));}}};}_0x52bba9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x8d0c4c),_0x52bba9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x8d0c4c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x33d49f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x243130,_0xc593d8,_0xf374e3)=>{_0xf374e3['options']['showSuggestionHighlights']&&_0x33d49f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x243130,_0xc593d8,_0xf374e3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x403d62,_0xf6b045,_0x449459)=>{const {type:_0x339372,id:_0x4dcc7f}=_0x52bba9['_splitMarkerName'](_0xf6b045['markerName']),_0x51031a=_0x52bba9['getSuggestion'](_0x4dcc7f),_0x45eb6d=_0x51031a['data'];if('formatBlock'!=_0x51031a['type']||!_0x45eb6d||'setTableColumnHeader'!=_0x45eb6d['commandName'])return;const _0x28c602=_0x449459['mapper']['markerNameToElements'](_0xf6b045['markerName']);if(_0x28c602){for(const _0x4aabb4 of _0x28c602)_0x449459['writer']['removeClass']('ck-suggestion-marker-'+_0x339372,_0x4aabb4),_0x449459['writer']['removeClass']('ck-suggestion-marker--active',_0x4aabb4),_0x449459['writer']['removeAttribute']('data-suggestion',_0x4aabb4),_0x449459['mapper']['unbindElementFromMarkerName'](_0x4aabb4,_0xf6b045['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b8082=this['editor'],_0x200344=_0x4b8082['locale'];function _0x395c63(_0x4a3d18){return{'type':'format','content':c(_0x200344,'*Format:*\x20%0',_0x4a3d18)};}_0x4b8082['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5afe40=>{if('formatBlock'!=_0x5afe40['type'])return;const {data:_0x3e4431}=_0x5afe40;if(_0x3e4431){if('setTableRowHeader'==_0x3e4431['commandName']){const _0x515844=_0x3e4431['commandParams'][0x0]['forceValue'];return _0x395c63(c(_0x200344,_0x515844?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3e4431['commandName']){const _0x39526c=_0x3e4431['commandParams'][0x0]['forceValue'];return _0x395c63(c(_0x200344,_0x39526c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x1667de{['afterInit'](){const _0x16cf4b=this['editor'],_0x1aac2a=_0x16cf4b['locale'],_0x3fb39d=_0x16cf4b['plugins']['get']('TrackChangesEditing');function _0xf7a96e(_0x577af8){return{'type':'format','content':''+c(_0x1aac2a,'*Set\x20table\x20type:*\x20%0',_0x577af8)};}_0x16cf4b['plugins']['has']('TableLayout')&&(_0x3fb39d['enableCommand']('insertTableLayout'),_0x3fb39d['enableDefaultAttributesIntegration']('tableType'),_0x3fb39d['registerBlockAttribute']('tableType'),_0x3fb39d['descriptionFactory']['registerElementLabel'](_0x15589c=>_0x15589c['is']('element','table')&&'layout'===_0x15589c['getAttribute']('tableType'),_0x417e97=>c(_0x1aac2a,'ELEMENT_LAYOUT_TABLE',_0x417e97)),_0x3fb39d['descriptionFactory']['registerDescriptionCallback'](_0x38ddc9=>{const {data:_0x5ced7f}=_0x38ddc9;if(_0x5ced7f&&'tableType'==_0x5ced7f['key'])switch(_0x5ced7f['newValue']){case'layout':return _0xf7a96e(c(_0x1aac2a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xf7a96e(c(_0x1aac2a,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x53048a=>[_0x53048a,null]));class $t extends _0x1667de{static get['requires'](){return[Ct];}['afterInit'](){const _0x209e78=this['editor'];if(!_0x209e78['plugins']['has']('TableClipboard'))return;const _0x32b830=_0x209e78['plugins']['get']('TrackChangesEditing'),_0x5223c0=_0x209e78['plugins']['get']('TableUtils'),_0xc51ef8=_0x209e78['plugins']['get'](Ct),_0x2c2727=_0x209e78['plugins']['get']('TableClipboard'),_0x29ec2c=_0x209e78['plugins']['get']('TableSelection'),_0x2084eb=_0x209e78['plugins']['get'](_0x15c7c2);_0xc51ef8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x209e78['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x209e78['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x351563=null,_0x3b012c=!0x1;_0x2084eb['on']('contentInsertion',(_0x43336f,_0x43b70f)=>{_0x3b012c='paste'===_0x43b70f['method'];}),_0x209e78['model']['on']('insertContent',(_0x4bb9f8,_0x1d6147)=>{if(!_0x3b012c&&null===_0x29ec2c['getSelectedTableCells']())return;const [_0x38d35,_0x222bb5]=_0x1d6147,_0x2c7693=_0x1d6147[_0x1d6147['length']-0x1];_0x2c7693&&_0x2c7693['forceDefaultExecution']||_0x32b830['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x49028c,_0x4594b7,_0x20994d,_0x9a61c4,_0x1d642c){if(_0x4594b7&&!_0x4594b7['is']('documentSelection'))return!0x1;const _0x5f39e1=_0x1d642c['getTableIfOnlyTableInContent'](_0x49028c,_0x20994d);if(!_0x5f39e1||!De(_0x5f39e1,void 0x0,_0x9a61c4))return!0x1;const _0xeb764c=_0x9a61c4['getSelectionAffectedTableCells'](_0x20994d['document']['selection']);if(!_0xeb764c['length'])return!0x1;const _0x4b87f4=_0xeb764c[0x0]['findAncestor']('table'),_0x4edfd3=_0x9a61c4['getRowIndexes'](_0xeb764c),_0x429bc2=_0x9a61c4['getColumnIndexes'](_0xeb764c),_0x52810b={'startRow':_0x4edfd3['first'],'endRow':_0x4edfd3['last'],'startColumn':_0x429bc2['first'],'endColumn':_0x429bc2['last']};return 0x1==_0xeb764c['length']&&(_0x52810b['endRow']+=_0x9a61c4['getRows'](_0x5f39e1)-0x1,_0x52810b['endColumn']+=_0x9a61c4['getColumns'](_0x5f39e1)-0x1),De(_0x4b87f4,_0x52810b,_0x9a61c4);}(_0x38d35,_0x222bb5,_0x209e78['model'],_0x5223c0,_0x2c2727)&&(_0x4bb9f8['stop'](),_0x351563={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x209e78['model']['change'](()=>{_0x209e78['model']['insertContent'](_0x1d6147[0x0],_0x1d6147[0x1],_0x1d6147[0x2],{'forceDefaultExecution':!0x0});const _0x9fc73a=_0x2397a2(),{rowInsertionRanges:_0x400bd2,columnInsertionRanges:_0x389121,insertionRanges:_0x28116e,deletionRanges:_0xee61c9,cells:_0x248840}=_0x351563;_0x400bd2['length']&&_0x32b830['markMultiRangeInsertion'](_0x400bd2,'tablePasteRow',{'tablePasteChainId':_0x9fc73a}),_0x389121['length']&&_0x32b830['markMultiRangeInsertion'](_0x389121,'tablePasteColumn',{'tablePasteChainId':_0x9fc73a}),_0x28116e['length']&&(_0x32b830['markMultiRangeInsertion'](_0x28116e,'tablePaste',{'tablePasteChainId':_0x9fc73a,'skipNestingCheck':!0x0}),_0x28116e['forEach'](_0x188eed=>_0x188eed['detach']?.())),_0xee61c9['length']&&(_0x32b830['markMultiRangeDeletion'](_0xee61c9,'tablePaste',{'tablePasteChainId':_0x9fc73a,'skipNestingCheck':!0x0}),_0xee61c9['forEach'](_0x52e0f8=>_0x52e0f8['detach']?.()));const _0x248799=_0x32b830['markMultiRangeBlockFormat'](_0x248840['map'](({element:_0x19d6cd})=>_0x19d6cd),{'formatGroupId':_0x2397a2()},[],'tablePasteCell',{'tablePasteChainId':_0x9fc73a});if(_0x248799){const _0x7475b0=_0x248799['getMarkers'](),_0x34050a=[];for(const {element:_0x9fa4a6,attributes:_0x4d6e18}of _0x248840){if(!_0x4d6e18)continue;const _0x2a66ec=_0x209e78['model']['createRangeOn'](_0x9fa4a6),_0x41cc7b=_0x7475b0['find'](_0x33045a=>_0x33045a['getRange']()['isEqual'](_0x2a66ec));_0x41cc7b&&_0x34050a['push']([_0x41cc7b['name'],_0x4d6e18]);}_0x34050a['length']&&_0x248799['setAttribute']('markerAttributes',Object['fromEntries'](_0x34050a));}_0x351563=null;}));},{'priority':_0x1a62d1['high']+0xa}),_0x2084eb['on']('contentInsertion',()=>{_0x3b012c=!0x1;},{'priority':'lowest'}),_0x209e78['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x33cccb,_0xc77013)=>{const [_0x253a40,_0x1e30c6,,_0x133cf5]=_0xc77013;if(!_0x351563)return;_0x33cccb['stop']();const _0xeaaed6=_0x253a40['cell'],_0x3913ac=_0x1e30c6,_0x11c033=Ue(_0xeaaed6),_0x151dc5=Ue(_0x3913ac);_0x33cccb['return']=_0xeaaed6;let _0x1d337b=null,_0x7560e2=null;if(_0x151dc5||_0x11c033){if(_0x11c033&&!_0x151dc5){_0x133cf5['remove'](_0xeaaed6['getChild'](0x0));for(const _0x130476 of Array['from'](_0x3913ac['getChildren']()))_0x133cf5['insert'](_0x130476,_0xeaaed6,'end');const _0x460b74=_0x351563['rowInsertionIndexes']['includes'](_0x253a40['row']),_0x207d05=_0x351563['columnInsertionIndexes']['includes'](_0x253a40['column']);_0x460b74||_0x207d05||(_0x1d337b=_0x112647['fromRange'](_0x133cf5['createRangeIn'](_0xeaaed6)));}else _0x151dc5&&!_0x11c033&&(_0x7560e2=_0x133cf5['createRangeIn'](_0xeaaed6));}else{const _0x2b9c88=_0x133cf5['createElement']('tableCellSuggestion'),_0x28e6e6=_0x133cf5['createElement']('tableCellSuggestion');_0x133cf5['wrap'](_0x133cf5['createRangeIn'](_0xeaaed6),_0x28e6e6),_0x133cf5['insert'](_0x2b9c88,_0xeaaed6,0x0);for(const _0x9bb0c7 of Array['from'](_0x3913ac['getChildren']()))_0x133cf5['insert'](_0x9bb0c7,_0x2b9c88,'end');_0x1d337b=_0x112647['fromRange'](_0x133cf5['createRangeOn'](_0x2b9c88)),_0x7560e2=_0x112647['fromRange'](_0x133cf5['createRangeOn'](_0x28e6e6));}const _0x5518d5=Array['from'](_0x3913ac['getAttributes']())['filter'](([_0x7ab416])=>xe['includes'](_0x7ab416));_0x351563['cells']['push']({'element':_0xeaaed6,'attributes':_0x5518d5['length']?Object['fromEntries'](_0x5518d5):null}),_0x1d337b&&_0x351563['insertionRanges']['push'](_0x1d337b),_0x7560e2&&_0x351563['deletionRanges']['push'](_0x7560e2);},{'priority':'high'}),_0x5223c0['on']('insertColumns',(_0x3125c9,_0x56e1e6)=>{const [_0x115b4e,_0x494c9e={}]=_0x56e1e6;if(!_0x351563)return;const _0x5e6628=_0x494c9e['at']||0x0,_0x1d265b=_0x494c9e['columns']||0x1;_0x351563['columnInsertionIndexes']=new Array(_0x1d265b)['fill'](_0x5e6628)['map']((_0x39991e,_0x5212c0)=>_0x39991e+_0x5212c0);for(const {cell:_0x19e330}of _0x5223c0['createTableWalker'](_0x115b4e,{'startColumn':_0x5e6628,'endColumn':_0x5e6628+_0x1d265b-0x1}))_0x351563['columnInsertionRanges']['push'](_0x209e78['model']['createRangeOn'](_0x19e330));},{'priority':'low'}),_0x5223c0['on']('insertRows',(_0x494485,_0x6b0a1d)=>{const [_0x788540,_0x29d060={}]=_0x6b0a1d;if(!_0x351563)return;const _0x1fa497=_0x29d060['at']||0x0,_0x368879=_0x29d060['rows']||0x1;_0x351563['rowInsertionIndexes']=new Array(_0x368879)['fill'](_0x1fa497)['map']((_0x37e478,_0x297c55)=>_0x37e478+_0x297c55);for(const {cell:_0x37362d}of _0x5223c0['createTableWalker'](_0x788540,{'startRow':_0x1fa497,'endRow':_0x1fa497+_0x368879-0x1}))_0x351563['rowInsertionRanges']['push'](_0x209e78['model']['createRangeOn'](_0x37362d));},{'priority':'low'}),_0x32b830['descriptionFactory']['registerDescriptionCallback'](_0x2a1b2e=>{if(_0x2a1b2e['subType']&&_0x2a1b2e['subType']['startsWith']('tablePaste'))return _0x2a1b2e['previous']?{}:{'type':'insertion','content':c(_0x209e78['locale'],'*Replace\x20table\x20cells*')};});const _0x29a95d=()=>!0x1;for(const _0x2f19a5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x32b830['_suggestionFactory']['registerCustomCallback']('insertion',_0x2f19a5,'join',_0x29a95d),_0x32b830['_suggestionFactory']['registerCustomCallback']('deletion',_0x2f19a5,'join',_0x29a95d),_0x32b830['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2f19a5,'join',_0x29a95d);_0x32b830['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x29a95d),_0x32b830['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x58afe2,_0x44c01e,_0x4ea007)=>{const _0x339125=_0x58afe2['map'](_0x4acaed=>_0x4acaed['getContainedElement']())['filter'](_0x2a5b2a=>_0x2a5b2a),_0x439377=new Map(_0x339125['map'](_0x27376f=>[_0x27376f,null]));if(_0x351563){for(const {element:_0x98ced7,attributes:_0x6bcff8}of _0x351563['cells'])_0x6bcff8&&_0x439377['set'](_0x98ced7,_0x6bcff8);}else{if(_0x4ea007&&_0x4ea007['markerAttributes'])for(const [_0x3ce44f,_0xb4ba8b]of Object['entries'](_0x4ea007['markerAttributes'])){const _0x17617a=_0x209e78['model']['markers']['get'](_0x3ce44f),_0x3b41e2=_0x17617a?_0x17617a['getRange']()['getContainedElement']():null;_0x3b41e2&&_0x439377['set'](_0x3b41e2,_0xb4ba8b);}}_0x209e78['model']['change'](_0x4613ec=>{for(const [_0x40ee89,_0x4024ce]of _0x439377)_0x4613ec['setAttributes']({...Oe,..._0x4024ce},_0x40ee89);});});const _0x514796=(_0x26ef81,_0x18a088)=>{_0x32b830['_suggestionFactory']['registerCustomCallback'](_0x26ef81,'tablePaste',_0x18a088,(_0x220e7d,_0x191523,_0x35712c)=>{_0x209e78['model']['change'](_0x413846=>{const _0x23af7b=[];for(const _0x3d13b8 of _0x220e7d){const _0x8f57e5=_0x3d13b8['start']['nodeAfter'];_0x8f57e5['is']('element','tableCellSuggestion')&&_0x23af7b['push'](_0x8f57e5);}_0x32b830['_suggestionFactory']['getSuggestionCallback'](_0x26ef81,null,_0x18a088)(_0x220e7d,_0x191523,_0x35712c);for(const _0x37efcd of _0x23af7b)'$graveyard'!=_0x37efcd['root']['rootName']&&_0x413846['unwrap'](_0x37efcd);});});};_0x514796('insertion','accept'),_0x514796('insertion','discard'),_0x514796('deletion','accept'),_0x514796('deletion','discard'),_0x32b830['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x28732e=>{const _0xe2e949=_0x28732e['map'](_0x231358=>_0x231358['getContainedElement']()),_0x54a213=_0xe2e949[0x0]['findAncestor']('table'),{minRow:_0x29f5c6,maxRow:_0x3d5979}=_0xc51ef8['_getCoordsForCells'](_0xe2e949);_0x5223c0['removeRows'](_0x54a213,{'at':_0x29f5c6,'rows':_0x3d5979-_0x29f5c6+0x1});}),_0x32b830['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x507af1=>{const _0xd3b4f4=_0x507af1['map'](_0x5e9640=>_0x5e9640['getContainedElement']()),_0x193833=_0xd3b4f4[0x0]['findAncestor']('table'),{minColumn:_0x22922f,maxColumn:_0x18b0ee}=_0xc51ef8['_getCoordsForCells'](_0xd3b4f4);_0x5223c0['removeColumns'](_0x193833,{'at':_0x22922f,'columns':_0x18b0ee-_0x22922f+0x1});});const _0x3fea77=(_0x271ac7,_0x45f27c)=>{if(!_0x45f27c['subType']||!_0x45f27c['subType']['startsWith']('tablePaste'))return;const _0x7c273c=_0x45f27c['attributes']['tablePasteChainId'],_0x3cd95f=_0x32b830['getSuggestions']()['filter'](_0xa8faef=>_0xa8faef['isInContent']&&_0xa8faef['attributes']&&_0xa8faef['attributes']['tablePasteChainId']==_0x7c273c);_0x3cd95f['length']&&_0x45f27c['getAllAdjacentSuggestions']()['length']!=_0x3cd95f['length']&&_0x3cd95f['reduce']((_0xc6985b,_0x3810fc)=>(_0xc6985b['next']=_0x3810fc,_0x3810fc['previous']=_0xc6985b,_0x3810fc));};function _0xa47dec(_0x1d7f06,_0x26fa5e=!0x0){const {id:_0x4ddadd,authorId:_0x5a56f6}=_0x32b830['_splitMarkerName'](_0x1d7f06['markerName']),_0xff9db8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x509256=_0x32b830['activeMarkers']['includes'](_0x1d7f06['markerName']);return _0x509256&&_0xff9db8['push']('ck-suggestion-marker--active'),{'classes':_0xff9db8,'attributes':{'data-suggestion':_0x4ddadd,'data-author-id':_0x5a56f6},'priority':_0x509256&&_0x26fa5e?0xbc2:0xbb8};}_0x32b830['on']('suggestionLoaded',_0x3fea77,{'priority':'high'}),_0x32b830['on']('suggestionUnloaded',_0x3fea77,{'priority':'high'}),_0x209e78['model']['document']['registerPostFixer'](()=>{let _0x318c6f=!0x1;const _0x1caf21=Array['from'](_0x209e78['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xdca368,data:_0xf29bf7}of _0x1caf21){const {group:_0x1224d1,type:_0x52264e,id:_0x54aeb4}=_0x32b830['_splitMarkerName'](_0xdca368);if('suggestion'!=_0x1224d1||'deletion'!=_0x52264e||_0xf29bf7['oldRange'])continue;if(!_0x32b830['hasSuggestion'](_0x54aeb4))continue;const _0x2c8c92=_0x32b830['getSuggestion'](_0x54aeb4)['getRanges'](),_0xc48f5d=_0x209e78['plugins']['get']('Users')['me'];for(const _0x5e07ff of _0x32b830['getSuggestions']()){if(!_0x5e07ff['isInContent']||_0x5e07ff['author']!=_0xc48f5d)continue;if('formatBlock'!=_0x5e07ff['type']||'tablePasteCell'!=_0x5e07ff['subType'])continue;if(_0x5e07ff['getRanges']()['every'](_0x380622=>_0x2c8c92['some'](_0x5417f5=>_0x5417f5['containsRange'](_0x380622,!0x0)))){for(const _0x578651 of _0x5e07ff['getAllAdjacentSuggestions']())_0x578651['isInContent']&&(_0x578651['discard'](),_0x318c6f=!0x0);}}}return _0x318c6f;}),_0x209e78['model']['document']['registerPostFixer'](_0x495b8e=>{const _0x20766d=_0x209e78['commands']['get']('redo');if(!_0x20766d||!_0x20766d['_createdBatches']['has'](_0x495b8e['batch']))return!0x1;let _0x34a724=!0x1;const _0x1b3ac9=_0x209e78['plugins']['get']('Users')['me'],_0xf2ff02=_0x209e78['model']['document']['differ']['getChanges'](),_0x5dcbb8=Array['from'](_0x209e78['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x35a0d3,data:_0x1523f2})=>{const {group:_0x21e949,subType:_0x7e7daa,authorId:_0x3275d2}=_0x32b830['_splitMarkerName'](_0x35a0d3);return'suggestion'==_0x21e949&&'tablePaste'==_0x7e7daa&&_0x3275d2==_0x1b3ac9['id']&&!_0x1523f2['oldRange'];});for(const _0x1414a0 of _0xf2ff02){if('insert'!=_0x1414a0['type']||'tableCellSuggestion'!=_0x1414a0['name']||0x1!=_0x1414a0['length'])continue;const _0x56e853=_0x495b8e['createRange'](_0x1414a0['position'],_0x1414a0['position']['getShiftedBy'](0x1));if(!_0x5dcbb8['find'](({data:_0xc1ad6})=>_0xc1ad6['newRange']['isEqual'](_0x56e853))){for(const {name:_0x1653c8,data:_0x2a8645}of _0x5dcbb8)if(_0x56e853['containsRange'](_0x2a8645['newRange'])){_0x495b8e['updateMarker'](_0x1653c8,{'range':_0x56e853}),_0x34a724=!0x0;break;}}}return _0x34a724;}),_0x209e78['model']['document']['registerPostFixer'](_0x24f42e=>{let _0x5946b4=!0x1;const _0x273ba7=_0x209e78['plugins']['get']('Users')['me'],_0xf8bab9=_0x32b830['getSuggestions']()['filter'](_0x206d4a=>_0x206d4a['isInContent']&&_0x206d4a['author']==_0x273ba7),_0x364c90=new Set(),_0x1e6301=new Set();for(const _0x2122fb of _0xf8bab9)if('tablePaste'==_0x2122fb['subType'])for(const _0x5ca5fb of _0x2122fb['getMarkers']()){const _0x2131d4=_0x5ca5fb['getRange']()['getContainedElement']();if(_0x2131d4){if(_0x2131d4['is']('element','tableCellSuggestion')&&Ue(_0x2131d4)){_0x2122fb['removeMarker'](_0x5ca5fb['name']),_0x364c90['add'](_0x2131d4),_0x5946b4=!0x0;const _0x5af278=_0x2131d4['nextSibling'],_0x72c99=_0x2131d4['previousSibling'],_0x6ebb5a=_0x5af278&&_0x5af278['is']('element','tableCellSuggestion'),_0x3e6bac=_0x72c99&&_0x72c99['is']('element','tableCellSuggestion');_0x6ebb5a&&!_0x364c90['has'](_0x5af278)&&_0x1e6301['add'](_0x5af278),_0x3e6bac&&!_0x364c90['has'](_0x72c99)&&_0x1e6301['add'](_0x72c99);}else _0x2131d4['is']('element','paragraph')&&_0x2131d4['isEmpty']&&(_0x2122fb['removeMarker'](_0x5ca5fb['name']),_0x5946b4=!0x0);}}else{if('tablePasteCell'==_0x2122fb['subType']){if(!_0x2122fb['attributes']||!_0x2122fb['attributes']['tablePasteChainId'])continue;const _0x4fb619=_0x2122fb['attributes']['markerAttributes'];if(_0x4fb619&&Object['keys'](_0x4fb619)['length'])continue;const _0x331b34=_0x2122fb['attributes']['tablePasteChainId'];let _0x7ced50=!0x0,_0x845c7d=!0x0;for(const _0x34acda of _0xf8bab9)if(_0x34acda['subType']&&_0x34acda['subType']['startsWith']('tablePaste')){if(!_0x34acda['attributes']['tablePasteChainId']){_0x845c7d=!0x1;break;}if(_0x34acda['id']!=_0x2122fb['id']&&_0x34acda['attributes']['tablePasteChainId']==_0x331b34){_0x7ced50=!0x1;break;}}_0x845c7d&&_0x7ced50&&(_0x2122fb['removeMarkers'](),_0x5946b4=!0x0);}}for(const _0x4ced52 of _0x364c90)_0x24f42e['remove'](_0x4ced52);for(const _0x370d96 of _0x1e6301)_0x24f42e['unwrap'](_0x370d96);return _0x5946b4;}),_0x209e78['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x8bee39=>_0xa47dec(_0x8bee39),'converterPriority':'high'}),_0x209e78['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5c327c,_0x179983)=>_0x179983['options']['showSuggestionHighlights']?_0xa47dec(_0x5c327c,!0x1):null,'converterPriority':'high'});const _0x37d3c7=_0x209e78['editing']['view'];this['listenTo'](_0x37d3c7['document'],'clipboardOutput',(_0x577ca0,_0x391e86)=>{const _0x31973e=[];for(const _0x1256de of _0x37d3c7['createRangeIn'](_0x391e86['content'])['getItems']())_0x1256de['is']('element','suggestion-td')&&_0x31973e['push'](_0x1256de);_0x37d3c7['change'](_0x120651=>{for(const _0x45919d of _0x31973e)_0x120651['move'](_0x120651['createRangeIn'](_0x45919d),_0x120651['createPositionBefore'](_0x45919d)),_0x120651['remove'](_0x45919d);});});}}function Ue(_0x5a0197){if(_0x5a0197['isEmpty'])return!0x0;const _0xcaa209=_0x5a0197['getChild'](0x0);return _0xcaa209['is']('element','paragraph')&&_0xcaa209['isEmpty'];}function De(_0x1276cd,_0x5aa203={},_0x2ad54c){for(const {isAnchor:_0x558e31,cellHeight:_0x55be15,cellWidth:_0x4a4ee8}of _0x2ad54c['createTableWalker'](_0x1276cd,{'includeAllSlots':!0x0,..._0x5aa203}))if(!_0x558e31||0x1!=_0x55be15||0x1!=_0x4a4ee8)return!0x1;return!0x0;}class Bt extends _0x1667de{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x26ed26=this['editor']['plugins']['get']('TrackChangesEditing');_0x26ed26['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x26ed26['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x26ed26['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x26ed26['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x26ed26['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x26ed26['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4b1b11,_0x379687){const _0x31a45b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x590127=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xee991e=_0x379687['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3ce205=_0x590127['getColumnGroupElement'](_0xee991e);let _0x33556f=_0x3ce205?_0x590127['getTableColumnsWidths'](_0x3ce205):null,_0x54d9bc=_0xee991e['getAttribute']('tableWidth')||null;const _0x3c159e=_0x379687['tableWidth']||_0x54d9bc,_0xce725f=_0x379687['columnWidths']||_0x33556f,_0x7be831=this['editor']['plugins']['get']('Users')['me'];for(const _0x339a35 of _0x31a45b['getSuggestions']()){const _0x1e2b49=_0x339a35['getContainedElement']();if('resizeTable'===_0x339a35['subType']&&_0x1e2b49===_0xee991e){_0x339a35['author']!==_0x7be831&&_0x339a35['discard']();const _0x521216=_0x339a35['data']['commandParams'];_0x54d9bc=_0x521216[0x0]['tableWidth'],_0x33556f=_0x521216[0x0]['columnWidths'];break;}}_0x4b1b11({'table':_0xee991e,'tableWidth':_0x3c159e,'columnWidths':_0xce725f}),_0x31a45b['markBlockFormat'](_0xee991e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x54d9bc,'columnWidths':_0x33556f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x160e0b){if('formatBlock'!=_0x160e0b['type']&&'formatInline'!=_0x160e0b['type'])return;const {data:_0x8db26b}=_0x160e0b;if(_0x8db26b&&'resizeTable'===_0x8db26b['formatGroupId']){const _0x96c997='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x96c997)};}}}class Ot extends _0x1667de{['afterInit'](){const _0x2c8133=this['editor'];_0x2c8133['plugins']['has']('Template')&&_0x2c8133['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x1667de{['afterInit'](){const _0xed74ae=this['editor'];if(!_0xed74ae['commands']['get']('insertTableOfContents'))return;_0xed74ae['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3c2747=_0xed74ae['plugins']['get']('TrackChangesEditing'),_0x3b9fec=_0xed74ae['locale'];_0x3c2747['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3a5d74=>c(_0x3b9fec,'ELEMENT_TABLE_OF_CONTENTS',_0x3a5d74));}}class xt extends _0x1667de{['afterInit'](){const _0x13a8d8=this['editor'];if(!_0x13a8d8['plugins']['has']('Title'))return;const _0x1e73f9=_0x13a8d8['plugins']['get']('TrackChangesEditing');_0x1e73f9['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x13a8d8['locale'],'ELEMENT_TITLE')),_0x13a8d8['model']['document']['registerPostFixer'](_0x2da6a4=>{let _0x5d58bd=!0x1;const _0x3aa302=Array['from'](_0x13a8d8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x351dd2,data:_0x6009ff}of _0x3aa302){const {group:_0x2183aa}=_0x1e73f9['_splitMarkerName'](_0x351dd2);if('suggestion'!==_0x2183aa||!_0x6009ff['newRange'])continue;const _0x43bc40=_0x6009ff['newRange'],_0x2fbe2d=_0x43bc40['end']['nodeBefore'];if(!_0x2fbe2d||!_0x2fbe2d['is']('element','title-content'))continue;if(!_0x43bc40['start']['isTouching'](_0x43bc40['end']))continue;const _0x288df4=_0x13a8d8['model']['schema']['getNearestSelectionRange'](_0x43bc40['end'],'forward');if(_0x288df4&&_0x288df4['isCollapsed']){const _0x2c5779=_0x2da6a4['createRange'](_0x43bc40['start'],_0x288df4['start']);_0x2c5779['isEqual'](_0x43bc40)||(_0x2da6a4['updateMarker'](_0x351dd2,{'range':_0x2c5779}),_0x5d58bd=!0x0);}_0x5d58bd||(_0x2da6a4['removeMarker'](_0x351dd2),_0x5d58bd=!0x0);}return _0x5d58bd;});}}class Tt extends _0x1667de{['afterInit'](){const _0x535236=this['editor'],_0x23f160=_0x535236['plugins']['get']('TrackChangesEditing');_0x535236['plugins']['has']('Uploadcare')&&(_0x23f160['enableCommand']('uploadcare'),_0x535236['plugins']['has']('UploadcareImageEdit')&&(_0x23f160['enableCommand']('uploadcareImageEdit'),_0x23f160['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x23f160['registerBlockAttribute']('uploadcareImageId'),_0x23f160['descriptionFactory']['registerDescriptionCallback'](_0x4bc7d1=>{if('attribute'!=_0x4bc7d1['type'])return;const {data:_0x17c27a}=_0x4bc7d1;return _0x17c27a&&'uploadcareImageId'==_0x17c27a['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x1667de{['afterInit'](){const _0x4e14ca=this['editor'],_0x3df9ca=_0x4e14ca['plugins']['get']('TrackChangesEditing');_0x4e14ca['plugins']['has']('UndoEditing')&&(_0x3df9ca['enableCommand']('undo'),_0x3df9ca['enableCommand']('redo'));}}class Ut extends _0x1667de{static get['requires'](){return[Ct];}['afterInit'](){const _0x1f8ffd=this['editor'];if(!_0x1f8ffd['plugins']['has']('TableCaptionEditing'))return;_0x1f8ffd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x1667de{['tableProperties'];['tableCellProperties'];constructor(_0x54d612){super(_0x54d612),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 _0x46c9bd=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x561b1d of this['tableProperties'])_0x46c9bd['enableCommand'](_0x561b1d,(_0xcb8bee,_0x22ac97)=>{const _0x5786d1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x561b1d,[_0x5786d1],this['tableProperties'],'tableProperties',_0xcb8bee,_0x22ac97);});_0x46c9bd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x46c9bd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x46c9bd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4b8801,_0x470008)=>this['handleDiscardAction'](this['tableProperties'],_0x4b8801,_0x470008)),_0x46c9bd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3676cd of this['tableCellProperties'])_0x46c9bd['enableCommand'](_0x3676cd,(_0x41b292,_0x35d979)=>{const _0x267341=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3676cd,_0x267341,this['tableCellProperties'],'tableCellProperties',_0x41b292,_0x35d979);});_0x46c9bd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x46c9bd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x46c9bd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x217fc0,_0x2b6122)=>this['handleDiscardAction'](this['tableCellProperties'],_0x217fc0,_0x2b6122)),_0x46c9bd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x46c9bd['descriptionFactory']['registerDescriptionCallback'](_0x398c2e=>this['handleSuggestionDescription'](_0x398c2e));}['_handlePropertyChange'](_0x1c232a,_0x567f85,_0x107113,_0x551135,_0x3668d8,_0x2c1abf){const _0x5be677=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2c1abf['batch'],()=>{for(const _0x586998 of _0x567f85){if(this['_getSuggestion'](_0x586998,_0x551135))_0x3668d8(_0x2c1abf);else{const _0x49dc95={};for(const _0x4f5917 of _0x107113){const _0x5084ce=_0x586998['getAttribute'](_0x4f5917);void 0x0!==_0x5084ce&&(_0x49dc95[_0x4f5917]=_0x5084ce);}_0x3668d8(_0x2c1abf),_0x5be677['markBlockFormat'](_0x586998,{'commandParams':[_0x49dc95]},[],_0x551135);}}});}['handleDiscardAction'](_0x13854c,_0x6177b0,_0x1e7886){const _0x4754c9=_0x6177b0[0x0]['start']['nodeAfter'],_0x4a745a=_0x1e7886['commandParams'][0x0];this['editor']['model']['change'](_0x48889f=>{for(const _0x5d8c4f of _0x13854c)void 0x0!==_0x4a745a[_0x5d8c4f]?_0x48889f['setAttribute'](_0x5d8c4f,_0x4a745a[_0x5d8c4f],_0x4754c9):_0x48889f['removeAttribute'](_0x5d8c4f,_0x4754c9);});}['handleSuggestionDescription'](_0x10d713){if(_0x10d713['data'])switch(_0x10d713['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x54809d,_0x4e2bdd){const _0x3c7378=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xab5482 of _0x3c7378['getSuggestions']({'skipNotAttached':!0x0})){const _0x51dc22=_0xab5482['getContainedElement']();if(_0xab5482['subType']===_0x4e2bdd&&_0x51dc22===_0x54809d)return _0xab5482;}return null;}}const u='$elementName';class p extends _0x1667de{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xd58653,_0x4418c8,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14ac2c){super(_0x14ac2c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2fd110,_0x280d83,_0x1c3624,_0x399a9b)=>{this['_model']['change'](()=>{for(const _0x365df9 of[..._0x399a9b,..._0x1c3624])this['_model']['markers']['has'](_0x365df9)&&_0x14ac2c['editing']['reconvertMarker'](_0x365df9);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x14ac2c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x14ac2c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x14ac2c['config']['get']('trackChanges.trackFormatChanges'),_0x14ac2c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x14ac2c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x14ac2c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2844dd=this['editor'],_0x3ba6db=(_0x34f52e,_0x27f6d6)=>{if('attribute'!=_0x34f52e)return'ck-suggestion-marker-'+_0x34f52e;const _0x30b4f5=_0x27f6d6['split']('|')[0x0];return this['_isBlockAttribute'](_0x30b4f5)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2844dd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4e70b=>{const {id:_0x50f4b6,authorId:_0x1933d9,type:_0x487b21,subType:_0x2af035}=this['_splitMarkerName'](_0x4e70b['markerName']),_0x564b88=['ck-suggestion-marker',_0x3ba6db(_0x487b21,_0x2af035)];let _0x2c3182=0xbb8;return this['activeMarkers']['includes'](_0x4e70b['markerName'])&&(_0x564b88['push']('ck-suggestion-marker--active'),_0x2c3182=0xbc2),'deletion'==_0x487b21&&(_0x2c3182+=0x5),{'classes':_0x564b88,'attributes':{'data-suggestion':_0x50f4b6,'data-author-id':_0x1933d9},'priority':_0x2c3182};}}),_0x2844dd['conversion']['for']('dataDowncast')['add'](_0xcfc660=>{_0xcfc660['on']('addMarker:suggestion',(_0x578f50,_0x3b7f0f,_0x239f6b)=>{if(!_0x239f6b['options']['showSuggestionHighlights'])return;const _0x1f53df=_0x3b7f0f['item'];if(!_0x1f53df)return;const _0x42e0c6=_0x239f6b['mapper']['toViewElement'](_0x1f53df);_0x2844dd['model']['schema']['isObject'](_0x1f53df)&&_0x42e0c6&&!_0x42e0c6['getCustomProperty']('widget')&&_0x42e0c6['is']('containerElement')&&_0x380b84(_0x42e0c6,_0x239f6b['writer']);},{'priority':'high'});}),_0x2844dd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x46370a,_0x1ce4e6)=>{if(!_0x1ce4e6['options']['showSuggestionHighlights'])return null;const {type:_0x1023a5,subType:_0xbc0d48}=this['_splitMarkerName'](_0x46370a['markerName']);return{'classes':['ck-suggestion-marker',_0x3ba6db(_0x1023a5,_0xbc0d48)],'priority':0xbb8};}});const _0x652095=({showActiveMarkers:_0x38cc7e=!0x0,isAttributeSuggestion:_0x2c0a15=!0x1}={})=>(_0x217633,_0x1135d3,_0x544882)=>{if(!_0x1135d3['item'])return;const {id:_0xd777bf,authorId:_0x865c18}=this['_splitMarkerName'](_0x1135d3['markerName']);if(_0x2c0a15){const _0x3944c3=this['_suggestions']['get'](_0xd777bf),_0x402db3=this['_getAttributeKey'](_0x3944c3);if(!this['_isBlockAttribute'](_0x402db3))return;}if(_0x1135d3['item']['is']('selection'))return void _0x544882['consumable']['consume'](_0x1135d3['item'],_0x217633['name']);const _0x7bedb2=_0x544882['mapper']['toViewElement'](_0x1135d3['item']);if(_0x1135d3['item']['is']('element')&&_0x2844dd['model']['schema']['isBlock'](_0x1135d3['item'])&&!_0x7bedb2['getCustomProperty']('addHighlight')){_0x544882['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x7bedb2),_0x544882['writer']['setAttribute']('data-suggestion',_0xd777bf,_0x7bedb2),_0x544882['writer']['setAttribute']('data-author-id',_0x865c18,_0x7bedb2),_0x544882['mapper']['bindElementToMarker'](_0x7bedb2,_0x1135d3['markerName']),_0x38cc7e&&(this['activeMarkers']['includes'](_0x1135d3['markerName'])?_0x544882['writer']['addClass']('ck-suggestion-marker--active',_0x7bedb2):_0x544882['writer']['removeClass']('ck-suggestion-marker--active',_0x7bedb2));for(const _0x3e7934 of _0x2844dd['model']['createRangeIn'](_0x1135d3['item'])['getItems']())_0x544882['consumable']['consume'](_0x3e7934,_0x217633['name']);_0x544882['consumable']['consume'](_0x1135d3['item'],_0x217633['name']);}};_0x2844dd['conversion']['for']('dataDowncast')['add'](_0x234813=>{_0x234813['on']('addMarker:suggestion:formatBlock',(_0x577c66,_0x4057f9,_0x346609)=>{_0x346609['options']['showSuggestionHighlights']&&_0x652095({'showActiveMarkers':!0x1})(_0x577c66,_0x4057f9,_0x346609);},{'priority':'highest'});}),_0x2844dd['conversion']['for']('dataDowncast')['add'](_0x114a13=>{_0x114a13['on']('addMarker:suggestion:attribute',(_0x3dbb1f,_0x3bda18,_0x3cfea3)=>{_0x3cfea3['options']['showSuggestionHighlights']&&_0x652095({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3dbb1f,_0x3bda18,_0x3cfea3);},{'priority':'highest'});}),_0x2844dd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x143b38,_0x4741f1)=>_0x4741f1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x143b38['substr'](0xb)}}),_0x2844dd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x196c4b,{writer:_0x35d708})=>{let _0x2753e6='suggestion:'+_0x196c4b['getAttribute']('suggestion-type')+':'+_0x196c4b['getAttribute']('id');return _0x196c4b['getAttribute']('marker-count')&&(_0x2753e6+=':'+_0x196c4b['getAttribute']('marker-count')),_0x35d708['createElement']('$marker',{'data-name':_0x2753e6});}}),_0x2844dd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2844dd['conversion']['for']('editingDowncast')['add'](_0x599a00=>{_0x599a00['on']('addMarker:suggestion:formatBlock',_0x652095(),{'priority':'high'});}),_0x2844dd['conversion']['for']('editingDowncast')['add'](_0x42d1cb=>{_0x42d1cb['on']('addMarker:suggestion:attribute',_0x652095({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2844dd['conversion']['for']('editingDowncast')['add'](_0x11d98c=>{_0x11d98c['on']('removeMarker:suggestion:formatBlock',(_0x172431,_0x3eefd6,_0x502796)=>{const _0x57e611=_0x502796['mapper']['markerNameToElements'](_0x3eefd6['markerName']);if(_0x57e611){for(const _0x3c0ede of _0x57e611)_0x3c0ede['getCustomProperty']('addHighlight')||(_0x502796['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c0ede),_0x502796['writer']['removeAttribute']('data-suggestion',_0x3c0ede),_0x502796['writer']['removeAttribute']('data-author-id',_0x3c0ede),_0x502796['mapper']['unbindElementFromMarkerName'](_0x3c0ede,_0x3eefd6['markerName']));}},{'priority':'high'});}),_0x2844dd['conversion']['for']('editingDowncast')['add'](_0x368b86=>{_0x368b86['on']('removeMarker:suggestion:attribute',(_0x42ea66,_0x41e775,_0x9cedf4)=>{const _0xbe21ac=_0x9cedf4['mapper']['markerNameToElements'](_0x41e775['markerName']);if(!_0xbe21ac)return;const {id:_0x42b784}=this['_splitMarkerName'](_0x41e775['markerName']),_0xd2f1a7=this['_suggestions']['get'](_0x42b784),_0x2823ba=this['_getAttributeKey'](_0xd2f1a7);if(this['_isBlockAttribute'](_0x2823ba)){for(const _0x59adfa of _0xbe21ac)_0x59adfa['getCustomProperty']('addHighlight')||(_0x9cedf4['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x59adfa),_0x9cedf4['writer']['removeAttribute']('data-suggestion',_0x59adfa),_0x9cedf4['writer']['removeAttribute']('data-author-id',_0x59adfa),_0x9cedf4['mapper']['unbindElementFromMarkerName'](_0x59adfa,_0x41e775['markerName']));}},{'priority':'high'});}),_0x2844dd['model']['document']['registerPostFixer'](_0x109880=>{let _0x196506=!0x1;const _0x249fc8=Array['from'](_0x2844dd['model']['document']['differ']['getChangedMarkers']()),_0x20e266=new Set();for(const {name:_0x1f5cea,data:_0x2de5c9}of _0x249fc8){const {group:_0x378b80,type:_0x5ca808,subType:_0x1b7f76,id:_0xdfff57}=this['_splitMarkerName'](_0x1f5cea);if('suggestion'!==_0x378b80)continue;const _0x2f383f=this['_suggestions']['get'](_0xdfff57);if(null!=_0x2de5c9['newRange']){'formatInline'==_0x5ca808&&(_0x196506=_0x196506||Jt(_0x2de5c9['newRange'],_0x1f5cea,_0x109880,_0x2844dd['model']['schema']));const _0x3085a5='attribute'==_0x5ca808&&this['_isBlockAttribute'](_0x1b7f76['split']('|')[0x0]);if(_0x2de5c9['newRange']['isCollapsed']||'$graveyard'==_0x2de5c9['newRange']['root']['rootName']||'formatBlock'==_0x5ca808&&!Ht(_0x2de5c9['newRange'])||_0x3085a5&&!Ht(_0x2de5c9['newRange'])||'deletion'==_0x5ca808&&!(!Lt(_0x55fcbf=_0x2de5c9['newRange'])&&!function(_0x14e731){return _0x14e731['start']['parent']==_0x14e731['end']['nodeBefore']&&_0x14e731['start']['isAtEnd'];}(_0x55fcbf)))_0x109880['removeMarker'](_0x1f5cea),_0x196506=!0x0;else{if(!_0x2f383f||!_0x2f383f['isInContent'])continue;if(_0x2de5c9['newRange']&&_0x2de5c9['oldRange']&&_0x2de5c9['newRange']['isEqual'](_0x2de5c9['oldRange']))continue;_0x20e266['add'](_0x2f383f);}}}var _0x55fcbf;return _0x20e266['size']>0x0&&(_0x196506=!!this['_joinWithAdjacentSuggestions'](_0x20e266)||_0x196506),_0x196506;}),_0x2844dd['model']['document']['registerPostFixer'](_0x177897=>{let _0x40e52a=!0x1;for(const _0x31ef76 of _0x2844dd['model']['document']['differ']['getChanges']())if('insert'==_0x31ef76['type'])for(const _0xc3e019 of this['_suggestions']['values']()){if(_0xc3e019['isMultiRange']||!_0xc3e019['isInContent'])continue;const _0x1dc2a5='formatBlock'==_0xc3e019['type'],_0x5e899d=this['_getAttributeKey'](_0xc3e019),_0x50948d=_0x5e899d&&this['_isBlockAttribute'](_0x5e899d);if(!_0x1dc2a5&&!_0x50948d)continue;const _0x4a3ade=_0xc3e019['getFirstRange']();if(_0x4a3ade['start']['parent']!=_0x4a3ade['end']['parent']&&!_0x4a3ade['end']['isAtEnd']){const _0x3dec36=_0x2844dd['model']['createPositionAt'](_0x4a3ade['start']['nodeAfter'],'end'),_0x50197e=_0x2844dd['model']['createRange'](_0x4a3ade['start'],_0x3dec36);_0x177897['updateMarker'](_0xc3e019['getFirstMarker'](),{'range':_0x50197e}),_0x40e52a=!0x0;}}return _0x40e52a;}),_0x2844dd['model']['document']['registerPostFixer'](_0x6d0ec8=>this['_processAttributeChanges'](_0x6d0ec8)),_0x2844dd['model']['document']['registerPostFixer'](_0x229d21=>!_0x229d21['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x229d21)),_0x2844dd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2844dd['model']['document']['on']('change:data',(_0x1e03f6,_0x2cc46f)=>{if(!_0x2cc46f['isLocal']||_0x2cc46f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2dfd9e=_0x2844dd['model']['document']['differ']['getChanges']();if(0x0==_0x2dfd9e['length'])return;const _0x47c89c=[],_0x57500d=_0x2dfd9e['filter'](_0x5d0dea=>'attribute'==_0x5d0dea['type']),_0x221755=_0x2dfd9e['filter'](_0x12a422=>'insert'==_0x12a422['type']&&'$text'!=_0x12a422['name']);for(const _0x56236d of _0x57500d)this['_isRegisteredAttribute'](_0x56236d['attributeKey'])&&_0x47c89c['push']({'key':_0x56236d['attributeKey'],'newValue':_0x56236d['attributeNewValue'],'oldValue':_0x56236d['attributeOldValue'],'range':qt(_0x56236d['range'],_0x2844dd['model'])});for(const _0x427ea6 of _0x221755){if('rename'!=_0x427ea6['action']&&'refresh'!=_0x427ea6['action'])continue;const _0x35f784=zt(_0x427ea6['position']['nodeAfter'],_0x2844dd['model']),_0xbd8cf6=_0x427ea6['before'];'rename'==_0x427ea6['action']&&_0x47c89c['push']({'key':u,'newValue':_0x427ea6['name'],'oldValue':_0xbd8cf6['name'],'range':_0x35f784});for(const [_0x573ffd,_0xaf6373]of _0xbd8cf6['attributes']){if(!this['_isRegisteredAttribute'](_0x573ffd))continue;const _0x4252b7=_0x427ea6['attributes']['get'](_0x573ffd);_0xaf6373!==_0x4252b7&&_0x47c89c['push']({'key':_0x573ffd,'newValue':_0x4252b7,'oldValue':_0xaf6373,'range':_0x35f784});}for(const [_0x2bb200,_0x552d17]of _0x427ea6['attributes'])this['_isRegisteredAttribute'](_0x2bb200)&&(_0xbd8cf6['attributes']['has'](_0x2bb200)||_0x47c89c['push']({'key':_0x2bb200,'newValue':_0x552d17,'oldValue':null,'range':_0x35f784}));}0x0!=_0x47c89c['length']&&_0x2844dd['model']['enqueueChange'](_0x2cc46f,_0xccda04=>{const _0x3fb759=_0x2397a2();for(const {range:_0x56ab56,key:_0xe05d68,oldValue:_0x1dd208,newValue:_0x509942}of _0x47c89c)this['markAttributeChange'](_0x56ab56,_0xe05d68,_0x1dd208,_0x509942,{'groupId':_0x3fb759});this['_reduceExistingSuggestions'](_0xccda04,_0x47c89c);});},{'priority':'lowest'}),_0x2844dd['model']['markers']['on']('update:suggestion',(_0x593e86,_0x1dda14,_0x1c8db7)=>{if(null==_0x1c8db7){const {id:_0x26567d}=this['_splitMarkerName'](_0x1dda14['name']),_0x23d585=this['_suggestions']['get'](_0x26567d);_0x23d585&&_0x23d585['addMarkerName'](_0x1dda14['name']);}}),_0x2844dd['model']['document']['on']('change:data',()=>{const _0xc79f55=Array['from'](_0x2844dd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x56369=>'suggestion'===this['_splitMarkerName'](_0x56369['name'])['group']);if(0x0===_0xc79f55['length'])return;_0xc79f55['sort']((_0x29829b,_0x1561e0)=>{const _0x3f2aff=_0x29829b['data']['oldRange'],_0x1f5d26=_0x1561e0['data']['oldRange'];return null===_0x3f2aff&&null===_0x1f5d26?0x0:null===_0x3f2aff&&null!==_0x1f5d26?-0x1:null!==_0x3f2aff&&null===_0x1f5d26?0x1:_0x3f2aff['start']['isBefore'](_0x1f5d26['start'])?-0x1:0x1;});const _0x1a685d=new Set(),_0x405652=new Set();for(const {name:_0x2e451d,data:_0x348136}of _0xc79f55){const {id:_0x5acff9}=this['_splitMarkerName'](_0x2e451d);if(null===_0x348136['oldRange']){const _0x1e5a14=this['_handleNewSuggestionMarker'](_0x2e451d);_0x405652['add'](_0x1e5a14);}else{const _0x5010c7=this['_suggestions']['get'](_0x5acff9);null!==_0x348136['newRange']||_0x5010c7['isInContent']?(_0x1a685d['add'](_0x5010c7['head']),_0x405652['add'](_0x5010c7)):this['_removeSuggestion'](_0x5010c7);}}_0x405652['size']>0x0&&this['_refreshSuggestionsChain'](_0x405652);for(const _0x3ecfe6 of _0x1a685d)this['fire']('suggestionChanged',_0x3ecfe6);}),_0x2844dd['model']['on']('applyOperation',(_0xcf925f,_0x4c93d3)=>{const _0x43295f=_0x4c93d3[0x0];if(!this['_suggestions']['size'])return;if(!_0x43295f['isDocumentOperation'])return;if(_0x43295f['batch']['isUndo']||!_0x43295f['batch']['isLocal'])return;let _0x5cb8dd,_0x546018;switch(_0x43295f['type']){case'insert':_0x5cb8dd=_0x2844dd['model']['createPositionAt'](_0x43295f['position']),_0x546018=_0x5cb8dd['getShiftedBy'](_0x43295f['howMany']);break;case'split':_0x5cb8dd=_0x2844dd['model']['createPositionAt'](_0x43295f['splitPosition']),_0x546018=_0x2844dd['model']['createPositionAt'](_0x43295f['moveTargetPosition']);break;case'move':_0x5cb8dd=_0x2844dd['model']['createPositionAt'](_0x43295f['targetPosition']),_0x546018=_0x5cb8dd['getShiftedBy'](_0x43295f['howMany']);break;default:return;}const _0x28f421=_0x2844dd['model']['createRange'](_0x5cb8dd,_0x546018);_0x2844dd['model']['change'](()=>{for(const {suggestion:_0x5378c5,meta:_0x98d24}of this['_findSuggestions'](_0x28f421)){if(_0x5378c5['isMultiRange'])continue;if('formatInline'==_0x5378c5['type'])continue;const _0x8f4850=this['_getAttributeKey'](_0x5378c5);if(_0x8f4850&&this['_isBlockAttribute'](_0x8f4850)&&'split'!=_0x43295f['type'])continue;const _0x4faf1c=_0x5378c5['data']&&_0x5378c5['data']['multipleBlocks'];('formatBlock'!=_0x5378c5['type']||'split'==_0x43295f['type']&&!_0x4faf1c)&&(_0x98d24['containsRangeInObject']||'insertion'==_0x5378c5['type']&&_0x98d24['isOwn']||_0x5378c5['getFirstRange']()['containsRange'](_0x28f421)&&this['_breakSuggestionMarker'](_0x5378c5,_0x5cb8dd,_0x546018));}});},{'priority':'lowest'}),_0x2844dd['model']['on']('deleteContent',(_0xc49592,_0x19fa68)=>{const _0x37d3d3=_0x19fa68[0x0],_0x1576f4=_0x19fa68[0x1];if(_0x1576f4&&_0x1576f4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x37d3d3['isCollapsed'])return;const _0x53bb8a=_0x2844dd['model']['schema'],{start:_0x236d19,end:_0x50b8ea}=_0x37d3d3['getFirstRange'](),_0x5ebfbf=_0x236d19['nodeAfter']&&_0x53bb8a['isLimit'](_0x236d19['nodeAfter'])?null:_0x53bb8a['getNearestSelectionRange'](_0x236d19,'forward'),_0x226cd5=_0x50b8ea['nodeBefore']&&_0x53bb8a['isLimit'](_0x50b8ea['nodeBefore'])?null:_0x53bb8a['getNearestSelectionRange'](_0x50b8ea,'backward'),_0x182245=_0x2844dd['model']['createRange'](_0x5ebfbf?_0x5ebfbf['start']:_0x236d19,_0x226cd5?_0x226cd5['end']:_0x50b8ea);_0x2844dd['model']['change'](_0x272590=>{this['markDeletion'](_0x182245);const _0x10a7ce=_0x2844dd['model']['schema']['getNearestSelectionRange'](_0x182245['start']);_0x37d3d3['is']('documentSelection')?_0x272590['setSelection'](_0x10a7ce):_0x37d3d3['setTo'](_0x10a7ce);}),_0xc49592['stop']();},{'priority':_0x1a62d1['normal']+0xa}),_0x2844dd['model']['on']('insertContent',(_0x4847a5,_0x473639)=>{const _0xa5cc23=_0x473639[_0x473639['length']-0x1];_0xa5cc23&&_0xa5cc23['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2844dd['model']['change'](()=>{let _0x18e18a=_0x2844dd['model']['insertContent'](_0x473639[0x0],_0x473639[0x1],_0x473639[0x2],{'forceDefaultExecution':!0x0});if(!_0x18e18a)return;_0x4847a5['return']=_0x18e18a['clone']();const _0x1edfef=_0x18e18a['end']['nodeBefore'],_0x1b4806=_0x2844dd['model']['schema'];_0x1edfef&&_0x1b4806['isBlock'](_0x1edfef)&&!_0x1b4806['isObject'](_0x1edfef)&&(_0x18e18a=_0x2844dd['model']['createRange'](_0x18e18a['start'],_0x2844dd['model']['createPositionAt'](_0x1edfef,'end'))),this['markInsertion'](_0x18e18a);}),_0x4847a5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4206a7=new O(_0x2844dd,this['_suggestions']);_0x2844dd['commands']['add']('acceptSuggestion',_0x4206a7),this['enableCommand']('acceptSuggestion');const _0x4347af=new R(_0x2844dd,this['_suggestions']);_0x2844dd['commands']['add']('discardSuggestion',_0x4347af),this['enableCommand']('discardSuggestion'),_0x2844dd['commands']['add']('acceptAllSuggestions',new x(_0x2844dd,_0x4206a7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2844dd['commands']['add']('discardAllSuggestions',new x(_0x2844dd,_0x4347af,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2844dd['commands']['add']('acceptSelectedSuggestions',new E(_0x2844dd,_0x4206a7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2844dd['commands']['add']('discardSelectedSuggestions',new E(_0x2844dd,_0x4347af,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xe30e22=_0x2844dd['plugins']['get']('CommentsRepository');this['listenTo'](_0xe30e22,'addComment',(_0x1f352e,{threadId:_0x1c2d8e})=>{const _0x1f11e4=this['_suggestions']['get'](_0x1c2d8e);_0x1f11e4&&_0x1f11e4['commentThread']&&0x1===_0x1f11e4['commentThread']['length']&&this['_updateSuggestionData'](_0x1c2d8e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xe30e22,'removeComment',(_0x3894be,{threadId:_0xb85828})=>{const _0x3bca51=this['_suggestions']['get'](_0xb85828);_0x3bca51&&_0x3bca51['commentThread']&&!_0x3bca51['commentThread']['length']&&this['_updateSuggestionData'](_0xb85828,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3dc826){const _0x20052d=_0x5331b6([0x4e,0x58,0x33,0x38,0x52,0x71,0x4b,0x78,0x43,0x53,0x72,0x32,0x5a,0x54,0x64,0x7a,0x41,0x47,0x61,0x37,0x67,0x48,0x68,0x4f,0x59,0x42,0x31,0x44,0x4c,0x51,0x75,0x70,0x6d,0x6c,0x55,0x57,0x77,0x45,0x6f,0x34,0x46,0x36,0x76,0x69,0x35,0x65,0x73,0x39,0x63,0x74,0x6a,0x62,0x66,0x50,0x4d,0x4a,0x30,0x6e,0x56,0x6b,0x49,0x79]),_0xb5971b=0x7818b91e,_0x137a34=0x781fda9e^_0xb5971b,_0x4a08a9=window[_0x5331b6([0x44,0x61,0x74,0x65])][_0x5331b6([0x6e,0x6f,0x77])](),_0x4ffbc8=_0x3dc826[_0x5331b6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3eb371=new window[(_0x5331b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40cb4f=>{_0x4ffbc8[_0x5331b6([0x6f,0x6e,0x63,0x65])](_0x5331b6([0x72,0x65,0x61,0x64,0x79]),_0x40cb4f);}),_0x4d1413={[_0x5331b6([0x6b,0x74,0x79])]:_0x5331b6([0x45,0x43]),[_0x5331b6([0x75,0x73,0x65])]:_0x5331b6([0x73,0x69,0x67]),[_0x5331b6([0x63,0x72,0x76])]:_0x5331b6([0x50,0x2d,0x32,0x35,0x36]),[_0x5331b6([0x78])]:_0x5331b6([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]),[_0x5331b6([0x79])]:_0x5331b6([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]),[_0x5331b6([0x61,0x6c,0x67])]:_0x5331b6([0x45,0x53,0x32,0x35,0x36])},_0xd9fe2e=_0x4ffbc8[_0x5331b6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5331b6([0x67,0x65,0x74])](_0x5331b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31b1b7(){let _0x23ebd5,_0x51bf0d=null,_0x3c999a=null;try{if(_0xd9fe2e==_0x5331b6([0x47,0x50,0x4c]))return _0x5331b6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x23ebd5=_0x421b26(),!_0x23ebd5)return _0x5331b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x23ebd5[_0x5331b6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3c999a=_0x249cf1(_0x23ebd5[_0x5331b6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x23ebd5[_0x5331b6([0x6a,0x74,0x69])])),await _0x2be94a()?_0x28a945()?_0x4e5819()?_0x5331b6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xfc4bb1()?(_0x23ebd5[_0x5331b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5331b6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x51bf0d=_0x27989d(_0x5331b6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x23ebd5[_0x5331b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5331b6([0x74,0x72,0x69,0x61,0x6c])&&(_0x51bf0d=_0x27989d(_0x5331b6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x338158()):_0x5331b6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5331b6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5331b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2975b0){return _0x5331b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e5819(){const _0x128857=[_0x5331b6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5331b6([0x74,0x72,0x69,0x61,0x6c])][_0x5331b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23ebd5[_0x5331b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a08a9/0x3e8:0xe10*_0x137a34;return _0x23ebd5[_0x5331b6([0x65,0x78,0x70])]<_0x128857;}function _0x28a945(){const _0x118f07=_0x23ebd5[_0x5331b6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x118f07)return!0x1;if(_0x118f07[_0x5331b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5331b6([0x2a])))return!0x0;if(_0x118f07[_0x5331b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5331b6([0x54,0x43])))return!0x0;if(_0x118f07[_0x5331b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5331b6([0x52,0x54,0x43]))){if(_0x162d12())return!0x0;if(_0x35bdeb()||_0x2910a5())return!0x0;}return!0x1;}function _0xfc4bb1(){const _0x20fc39=_0x23ebd5[_0x5331b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20fc39||0x0==_0x20fc39[_0x5331b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21057b}=new URL(window[_0x5331b6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20fc39[_0x5331b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21057b))return!0x0;const _0x26cfde=_0x21057b[_0x5331b6([0x73,0x70,0x6c,0x69,0x74])](_0x5331b6([0x2e]));return _0x20fc39[_0x5331b6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9bed68=>_0x9bed68[_0x5331b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5331b6([0x2a])))[_0x5331b6([0x6d,0x61,0x70])](_0x36f66f=>_0x36f66f[_0x5331b6([0x73,0x70,0x6c,0x69,0x74])](_0x5331b6([0x2e])))[_0x5331b6([0x73,0x6f,0x6d,0x65])](_0x419f28=>_0x26cfde[_0x5331b6([0x65,0x76,0x65,0x72,0x79])]((_0x3f5d6b,_0x3a43dc)=>_0x419f28[_0x3a43dc]===_0x3f5d6b||_0x419f28[_0x3a43dc]===_0x5331b6([0x2a])));}function _0x338158(){return _0x51bf0d&&_0x3c999a?new window[(_0x5331b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x320d7f,_0x45378d)=>{_0x51bf0d[_0x5331b6([0x74,0x68,0x65,0x6e])](_0x320d7f,_0x45378d),_0x3c999a[_0x5331b6([0x74,0x68,0x65,0x6e])](_0x5a6459=>{_0x5a6459!=_0x5331b6([0x56,0x61,0x6c,0x69,0x64])&&_0x320d7f(_0x5a6459);},_0x45378d);}):_0x51bf0d||_0x3c999a||_0x5331b6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x249cf1(_0x4d18c6,_0x192223){return new window[(_0x5331b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cb9e9=>{if(_0x4e5b7a())return _0x3cb9e9(_0x5331b6([0x56,0x61,0x6c,0x69,0x64]));_0x529ebe(),_0x4ffbc8[_0x5331b6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5331b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d532d=!0x1;const _0x114f64=_0x2397a2();function _0x521997(_0x37deed){return!!_0x37deed&&(typeof _0x37deed===_0x5331b6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x37deed===_0x5331b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x37deed[_0x5331b6([0x74,0x68,0x65,0x6e])]===_0x5331b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x37deed[_0x5331b6([0x63,0x61,0x74,0x63,0x68])]===_0x5331b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4552a2(_0x2bbc3c){_0x341fde(_0x2bbc3c)[_0x5331b6([0x74,0x68,0x65,0x6e])](_0x3dd209=>{if(!_0x3dd209||_0x3dd209[_0x5331b6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5331b6([0x6f,0x6b]))return _0x5331b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b1e92(_0x1b9236(_0x114f64+_0x192223))!=_0x3dd209[_0x5331b6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5331b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5331b6([0x56,0x61,0x6c,0x69,0x64]);})[_0x5331b6([0x74,0x68,0x65,0x6e])](_0x3e7b3c=>(_0x1ab6d4(),_0x3e7b3c),()=>{const _0x286a44=_0x1e29cc();return null==_0x286a44?(_0x1ab6d4(),_0x5331b6([0x56,0x61,0x6c,0x69,0x64])):_0x5331b6(_0x4a08a9-_0x286a44>(0x5c143d1e^_0xb5971b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5331b6([0x74,0x68,0x65,0x6e])](_0x3cb9e9)[_0x5331b6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3cb9e9(_0x5331b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d8919=0x782e579e^_0xb5971b;function _0x1ab6d4(){const _0x4f1589=_0x5331b6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b1e92(_0x1b9236(_0x4d18c6)),_0x56e4de=_0x33810e(_0x4b1e92(window[_0x5331b6([0x4d,0x61,0x74,0x68])][_0x5331b6([0x63,0x65,0x69,0x6c])](_0x4a08a9/_0x4d8919)));window[_0x5331b6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5331b6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f1589,_0x56e4de);}function _0x1e29cc(){const _0x78d5cd=_0x5331b6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b1e92(_0x1b9236(_0x4d18c6)),_0x1ae2da=window[_0x5331b6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5331b6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x78d5cd);return _0x1ae2da?window[_0x5331b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33810e(_0x1ae2da),0x10)*_0x4d8919:null;}function _0x341fde(_0x23071a){return new window[(_0x5331b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4144f0,_0x2f7b57)=>{_0x23071a[_0x5331b6([0x74,0x68,0x65,0x6e])](_0x4144f0,_0x2f7b57),window[_0x5331b6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f7b57,0x78196dde^_0xb5971b);});}}_0x4ffbc8[_0x5331b6([0x6f,0x6e])](_0x5331b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x229bc9,_0x309b5b)=>{if(_0x309b5b[0x0]!=_0x4d18c6)return _0x3cb9e9(_0x5331b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x309b5b[0x1]={..._0x309b5b[0x1],[_0x5331b6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x114f64};},{[_0x5331b6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5331b6([0x68,0x69,0x67,0x68])}),_0x4ffbc8[_0x5331b6([0x6f,0x6e])](_0x5331b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45fb3f=>{_0x521997(_0x45fb3f[_0x5331b6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d532d=!0x0,_0x4552a2(_0x45fb3f[_0x5331b6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5331b6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5331b6([0x6c,0x6f,0x77])}),_0x3eb371[_0x5331b6([0x74,0x68,0x65,0x6e])](()=>{_0x5d532d||_0x3cb9e9(_0x5331b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e5b7a(){return _0x4ffbc8[_0x5331b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5331b6([0x76,0x69,0x65,0x77])][_0x5331b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5331b6([0x61,0x75,0x74,0x6f]);}function _0x529ebe(){_0x4ffbc8[_0x5331b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5331b6([0x76,0x69,0x65,0x77])][_0x5331b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5331b6([0x61,0x75,0x74,0x6f]);}}function _0x27989d(_0x442a17){const _0x3c937c=[new window[(_0x5331b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1772b4=>setTimeout(_0x1772b4,0x781187d2^_0xb5971b)),_0x3eb371[_0x5331b6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5331b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36893f=>{let _0x187a86=0x0;_0x4ffbc8[_0x5331b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5331b6([0x6f,0x6e])](_0x5331b6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26367d,_0x365fce)=>{_0x365fce[0x0][_0x5331b6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x187a86++,_0x187a86==(0x7818b8e6^_0xb5971b)&&(_0x36893f(),_0x26367d[_0x5331b6([0x6f,0x66,0x66])]());});}))];return window[_0x5331b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5331b6([0x72,0x61,0x63,0x65])](_0x3c937c)[_0x5331b6([0x74,0x68,0x65,0x6e])](()=>_0x442a17);}async function _0x16eac0(){await _0x3eb371,_0x4ffbc8[_0x5331b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5331b6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf1ba1b,_0x4ffbc8[_0x5331b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5331b6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf1ba1b,_0x4ffbc8[_0x5331b6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5331b6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x162d12(){return _0x1db2c1(_0x5331b6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x24c5be(_0x5331b6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5331b6([0x73,0x74,0x61,0x74,0x65])]==_0x5331b6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x35bdeb(){return _0x1db2c1(_0x5331b6([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 _0x2910a5(){return _0x1db2c1(_0x5331b6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3b97c7(_0x20611e){const _0x20bb89=_0x5ddaa3();_0x4ffbc8[_0x20bb89]=_0x5331b6([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x20611e,_0x20611e!=_0x5331b6([0x56,0x61,0x6c,0x69,0x64])&&_0x16eac0();}function _0x5ddaa3(){const _0x3af429=window[_0x5331b6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5331b6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5331b6([0x6e,0x6f,0x77])]())[_0x5331b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5331b6([0x2e]),'');let _0x55a9d7=_0x5331b6([0x4e]);for(let _0x158196=0x0;_0x158196<_0x3af429[_0x5331b6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x158196+=0x2){let _0x2a9b0e=window[_0x5331b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3af429[_0x5331b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x158196,_0x158196+0x2));_0x2a9b0e>=_0x20052d[_0x5331b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2a9b0e-=_0x20052d[_0x5331b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x55a9d7+=_0x20052d[_0x2a9b0e];}return _0x55a9d7;}function _0x421b26(){const _0x285c2e=_0xd9fe2e[_0x5331b6([0x73,0x70,0x6c,0x69,0x74])](_0x5331b6([0x2e]));if(0x3!=_0x285c2e[_0x5331b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd6165a(_0x285c2e[0x1]);function _0xd6165a(_0x5e1b36){const _0x5dbc16=_0x3a6210(_0x5e1b36);return _0x5dbc16&&_0xcec9ed()?_0x5dbc16:null;function _0xcec9ed(){const _0xf7c62f=_0x5dbc16[_0x5331b6([0x6a,0x74,0x69])],_0xa95efb=window[_0x5331b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf7c62f[_0x5331b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf7c62f[_0x5331b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x320ee8={..._0x5dbc16,[_0x5331b6([0x6a,0x74,0x69])]:_0xf7c62f[_0x5331b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf7c62f[_0x5331b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x320ee8[_0x5331b6([0x76,0x63])],_0x1b9236(_0x320ee8)==_0xa95efb;}}}async function _0x2be94a(){let _0x21df99=!0x0;try{const _0x405ad5=_0xd9fe2e[_0x5331b6([0x73,0x70,0x6c,0x69,0x74])](_0x5331b6([0x2e])),[_0x19e689,_0x2cc1a1,_0x2a21a7]=_0x405ad5;return _0x3fd15f(_0x19e689),await _0x1d1f30(_0x19e689,_0x2cc1a1,_0x2a21a7),_0x21df99;}catch(_0xcbe364){return!0x1;}function _0x3fd15f(_0x46c7a9){const _0x50a8ac=_0x3a6210(_0x46c7a9);_0x50a8ac&&_0x50a8ac[_0x5331b6([0x61,0x6c,0x67])]==_0x5331b6([0x45,0x53,0x32,0x35,0x36])||(_0x21df99=!0x1);}async function _0x1d1f30(_0x37da39,_0x4994cd,_0x2dab47){const _0x24219a=window[_0x5331b6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5331b6([0x66,0x72,0x6f,0x6d])](_0x959729(_0x2dab47),_0x33d732=>_0x33d732[_0x5331b6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x525ad1=new window[(_0x5331b6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5331b6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x37da39+_0x5331b6([0x2e])+_0x4994cd),_0x99d8a1=window[_0x5331b6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5331b6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x99d8a1)return;const _0x34ead7=await _0x99d8a1[_0x5331b6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5331b6([0x6a,0x77,0x6b]),_0x4d1413,{[_0x5331b6([0x6e,0x61,0x6d,0x65])]:_0x5331b6([0x45,0x43,0x44,0x53,0x41]),[_0x5331b6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5331b6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5331b6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x99d8a1[_0x5331b6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5331b6([0x6e,0x61,0x6d,0x65])]:_0x5331b6([0x45,0x43,0x44,0x53,0x41]),[_0x5331b6([0x68,0x61,0x73,0x68])]:{[_0x5331b6([0x6e,0x61,0x6d,0x65])]:_0x5331b6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34ead7,_0x24219a,_0x525ad1)||(_0x21df99=!0x1);}}function _0x3a6210(_0x25fced){return _0x25fced[_0x5331b6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5331b6([0x65,0x79]))?JSON[_0x5331b6([0x70,0x61,0x72,0x73,0x65])](_0x959729(_0x25fced)):null;}function _0x959729(_0x4ddcb4){return window[_0x5331b6([0x61,0x74,0x6f,0x62])](_0x4ddcb4[_0x5331b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5331b6([0x2b]))[_0x5331b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5331b6([0x2f])));}function _0x1b9236(_0x2cdda){let _0x14487e=0x1505;function _0x933794(_0x3fcd91){for(let _0x556b43=0x0;_0x556b43<_0x3fcd91[_0x5331b6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x556b43++){const _0x1618b6=_0x3fcd91[_0x5331b6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x556b43);_0x14487e=(_0x14487e<<0x5)+_0x14487e+_0x1618b6,_0x14487e&=_0x14487e;}}function _0x31d742(_0x41f16f){Array[_0x5331b6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41f16f)?_0x41f16f[_0x5331b6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31d742):_0x41f16f&&typeof _0x41f16f==_0x5331b6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5331b6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41f16f)[_0x5331b6([0x73,0x6f,0x72,0x74])]()[_0x5331b6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x42f71f,_0x1e005c])=>{_0x933794(_0x42f71f),_0x31d742(_0x1e005c);}):_0x933794(window[_0x5331b6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41f16f));}return _0x31d742(_0x2cdda),_0x14487e>>>0x0;}function _0x4b1e92(_0x47d2a4){return _0x47d2a4[_0x5331b6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5331b6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5331b6([0x30]));}function _0x33810e(_0x449b10){return _0x449b10[_0x5331b6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5331b6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5331b6([0x6a,0x6f,0x69,0x6e])]('');}function _0x1db2c1(_0x571e33){return _0x4ffbc8[_0x5331b6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5331b6([0x68,0x61,0x73])](_0x571e33);}function _0x24c5be(_0x43b191){return _0x4ffbc8[_0x5331b6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5331b6([0x67,0x65,0x74])](_0x43b191);}function _0xf1ba1b(){}function _0x5331b6(_0xdc2750){return _0xdc2750['map'](_0x487302=>String['fromCharCode'](_0x487302))['join']('');}_0x3b97c7(await _0x31b1b7());}(this);}set['adapter'](_0x1dbb51){if(this['_adapter'])throw new _0x2ca3b1('track-changes-adapter-already-set',this);this['_adapter']=_0x1dbb51;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2d4355=!0x1,toJSON:_0x33b62b=!0x1}={}){const _0x1afcc5=[];for(const _0x30b7f8 of this['_suggestions']['values']())_0x2d4355&&!_0x30b7f8['isInContent']||_0x1afcc5['push'](_0x30b7f8);return _0x33b62b?_0x1afcc5['map'](_0x790160=>_0x790160['toJSON']()):_0x1afcc5;}['getSuggestion'](_0x2f829d){const _0x14714a=this['_suggestions']['get'](_0x2f829d);if(!_0x14714a)throw new _0x2ca3b1('track-changes-suggestion-not-found',this);return _0x14714a;}['hasSuggestion'](_0x23e980){return this['_suggestions']['has'](_0x23e980);}['addSuggestionData'](_0xf5651c){const {authorId:_0x361932,id:_0x210292,attributes:_0x1ec1d8}=_0xf5651c,[_0x2048ed,_0x220f5]=_0xf5651c['type']['split'](':'),_0xdc17cb=this['_suggestions']['get'](_0x210292)||this['_createSuggestion'](_0x2048ed,_0x220f5,_0x210292,_0x361932,_0x1ec1d8);if(this['_addThreadToSuggestion'](_0xdc17cb),this['_checkSuggestionCorrectness'](_0xdc17cb,_0x2048ed,_0x220f5||null,_0x361932),_0xdc17cb['createdAt']=_0xf5651c['createdAt'],_0xdc17cb['_isDataLoaded']=!0x0,_0x1ec1d8&&_0x1ec1d8['@external']){const _0x1220de=_0x1ec1d8['@external'],_0x48c051=this['_getExternalAuthor'](_0x1220de['authorName']);_0xdc17cb['authoredAt']=_0x1220de['createdAt'],_0xdc17cb['author']=_0x48c051,_0xdc17cb['isExternal']=!0x0;}else _0xdc17cb['authoredAt']=_0xf5651c['createdAt'];switch(_0xf5651c['data']&&(_0xdc17cb['data']=_0xf5651c['data']),_0xf5651c['attributes']&&(_0xdc17cb['attributes']=_0xf5651c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xdc17cb['_saved']=!0x0),this['_suggestionState']['get'](_0xdc17cb)){case'notReady':this['_suggestionState']['set'](_0xdc17cb,'dataReady');break;case'markerReady':_0xdc17cb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xdc17cb])),this['_refreshSuggestionsChain'](new Set([_0xdc17cb])),this['_suggestionState']['set'](_0xdc17cb,'ready'),this['fire']('suggestionLoaded',_0xdc17cb)):this['_suggestionState']['set'](_0xdc17cb,'removed');}return _0xdc17cb;}['acceptSuggestion'](_0x192773){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x414dd6 of _0x192773['getAllAdjacentSuggestions']())_0x414dd6['accept']();});});}['discardSuggestion'](_0x3b44b7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x15e5e2 of _0x3b44b7['getAllAdjacentSuggestions']())_0x15e5e2['discard']();});});}['enableCommand'](_0x3a3f3c,_0x11a21c){const _0x40639e=this['editor']['commands']['get'](_0x3a3f3c);if(!_0x40639e)throw new _0x2ca3b1('track-changes-command-not-found',this,{'commandName':_0x3a3f3c});if(this['_enabledCommands']['has'](_0x40639e))throw new _0x2ca3b1('track-changes-enable-command-twice',this,{'commandName':_0x3a3f3c});this['_enabledCommands']['add'](_0x40639e),_0x11a21c&&_0x40639e['on']('execute',(_0x17ffec,_0x30ec8d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x30ec8d['length']>0x0&&_0x30ec8d[_0x30ec8d['length']-0x1]&&_0x30ec8d[_0x30ec8d['length']-0x1]['forceDefaultExecution']?_0x30ec8d['pop']():(_0x17ffec['return']=_0x11a21c((..._0x4e8387)=>_0x40639e['execute'](..._0x4e8387,{'forceDefaultExecution':!0x0}),..._0x30ec8d),_0x17ffec['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a5423){let _0x54c92a,_0x4075d2;const _0x3f6af0=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x54c92a=_0x4a5423();}catch(_0x5dcfb9){_0x4075d2=_0x5dcfb9;}return _0x3f6af0||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4075d2&&_0x2ca3b1['rethrowUnexpectedError'](_0x4075d2,this),_0x54c92a;}['markInsertion'](_0x3b05a3,_0x233d2f=null,_0x56e956={}){if(_0x3b05a3['isCollapsed'])return null;const _0x1ef284=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x529cd5,meta:_0x3cf60d}of this['_findSuggestions'](_0x3b05a3,'insertion'))if(_0x3cf60d['isOwn']){if(!_0x3cf60d['isNextTo']){if(_0x3cf60d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x529cd5,_0x56e956))continue;return _0x529cd5;}if(Xt(_0x529cd5,_0x56e956))return _0x529cd5;this['_breakSuggestionMarker'](_0x529cd5,_0x3b05a3['start'],_0x3b05a3['end']);break;}if(_0x233d2f==_0x529cd5['subType']&&Xt(_0x529cd5,_0x56e956)){const _0x458e3f=_0x529cd5['getFirstRange']();return _0x458e3f['start']['isEqual'](_0x3b05a3['end'])?this['_setSuggestionRange'](_0x529cd5,this['_model']['createRange'](_0x3b05a3['start'],_0x458e3f['end'])):this['_setSuggestionRange'](_0x529cd5,this['_model']['createRange'](_0x458e3f['start'],_0x3b05a3['end'])),_0x529cd5;}}const _0x4c6611=_0x2397a2(),_0x573de4=_0x1ef284['id'],_0x5954d8=_0x233d2f?'insertion:'+_0x233d2f:'insertion',_0x427fec=this['_setSuggestionData']({'id':_0x4c6611,'type':_0x5954d8,'createdAt':new Date(),'authorId':_0x573de4,'attributes':_0x56e956});return this['_addSuggestionMarker'](_0x5954d8,_0x4c6611,_0x573de4,_0x3b05a3),_0x427fec;}['markMultiRangeInsertion'](_0x135d53,_0x2675c6='multi',_0x4797cb={}){const _0x3fc6c6=this['editor']['plugins']['get']('Users')['me'],_0x3e87f8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2675c6,'join');for(const _0x4aedb2 of this['getSuggestions']())if(_0x4aedb2['author']['id']==_0x3fc6c6['id']&&'insertion'==_0x4aedb2['type']&&_0x4aedb2['subType']==_0x2675c6&&Xt(_0x4aedb2,_0x4797cb)&&(_0x3e87f8(_0x4aedb2['getRanges'](),_0x135d53)||_0x3e87f8(_0x135d53,_0x4aedb2['getRanges']()))){for(const _0x5ecbeb of _0x135d53)_0x4aedb2['addRange'](_0x5ecbeb);return _0x4aedb2;}for(const {suggestion:_0x38f4e9,meta:_0x3af07a}of this['_findSuggestions'](_0x135d53,'insertion')){if(!_0x3af07a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3af07a['containsRangeInObject'])continue;if(!Xt(_0x38f4e9,_0x4797cb))continue;let _0x33a5dc=!0x0;for(const _0x2ff6f9 of _0x38f4e9['getRanges']())for(const _0x866939 of _0x135d53)if(!_0x2ff6f9['containsRange'](_0x866939)){_0x33a5dc=!0x1;break;}if(_0x33a5dc)return _0x38f4e9;}const _0x5e5ade=_0x2397a2(),_0x3746b3=_0x3fc6c6['id'],_0x406b8a='insertion:'+_0x2675c6,_0x29c236=this['_setSuggestionData']({'id':_0x5e5ade,'type':_0x406b8a,'createdAt':new Date(),'authorId':_0x3746b3,'attributes':_0x4797cb});for(const _0xc17228 of _0x135d53)this['_addSuggestionMarker'](_0x406b8a,_0x5e5ade,_0x3746b3,_0xc17228,o['getMultiRangeId']());return _0x29c236;}['markInlineFormat'](_0x555eea,_0x5c34a3,_0x3fecce=null,_0x4e82ec={}){if(_0x3fecce=_0x3fecce||Kt(_0x5c34a3),_0x555eea['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x43fd67=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3fecce,'accept');return this['forceDefaultExecution'](()=>_0x43fd67([_0x555eea],_0x5c34a3,_0x4e82ec)),null;}const _0x439aee=this['editor']['plugins']['get']('Users')['me'],_0x5351ab=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x57ac29,meta:_0x42ea00}of this['_findSuggestions'](_0x555eea,'insertion'))_0x42ea00['isOwn']&&!_0x42ea00['isInsideObject']&&_0x5351ab['push'](..._0x57ac29['getRanges']());}const _0xe0cbaa=function(_0x2e18d0,_0x5987bb){const _0x4f3686=[];for(const _0x21273b of _0x5987bb){const _0xb184d4=_0x2e18d0['getIntersection'](_0x21273b);_0xb184d4&&_0x4f3686['push'](_0xb184d4);}return _0x4f3686;}(_0x555eea,_0x5351ab),_0x2fddc0=function(_0x3e6e86,_0x3168aa){const _0x35b67b=[_0x3e6e86];for(const _0x43dd02 of _0x3168aa){let _0x7cba35=0x0;for(;_0x7cba35<_0x35b67b['length'];){const _0xa91ad6=_0x35b67b[_0x7cba35]['getDifference'](_0x43dd02);_0x35b67b['splice'](_0x7cba35,0x1,..._0xa91ad6),_0x7cba35+=_0xa91ad6['length'];}}return _0x35b67b;}(_0x555eea,_0x5351ab);_0xe0cbaa['length']&&this['_model']['change'](()=>{for(const _0x1d460f of _0xe0cbaa){const _0x2751de=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3fecce,'accept');this['forceDefaultExecution'](()=>_0x2751de([_0x1d460f],_0x5c34a3,_0x4e82ec));}});for(const _0xe95491 of _0x2fddc0){let _0x3e68ea=null,_0x573547=_0xe95491['start'],_0x54762d=_0xe95491['end'];for(const {suggestion:_0x5da356,meta:_0x337a40}of this['_findSuggestions'](_0xe95491,'formatInline')){if(!_0x337a40['isOwn'])continue;if(_0x5da356['subType']!=_0x3fecce)continue;if(!Xt(_0x5da356,_0x4e82ec))continue;const _0x3e07db=_0x5da356['getFirstRange']();if(_0x3e07db['containsRange'](_0xe95491,!0x0))return null;_0x573547=_0x573547['isBefore'](_0x3e07db['start'])?_0x573547:_0x3e07db['start'],_0x54762d=_0x54762d['isAfter'](_0x3e07db['end'])?_0x54762d:_0x3e07db['end'],_0x3e68ea?_0x3e07db['start']['isBefore'](_0x3e68ea['getFirstRange']()['start'])?(_0x3e68ea['removeMarkers'](),_0x3e68ea=_0x5da356):_0x5da356['removeMarkers']():_0x3e68ea=_0x5da356;}const _0x4f8e57=this['_model']['createRange'](_0x573547,_0x54762d);if(_0x3e68ea)this['_setSuggestionRange'](_0x3e68ea,_0x4f8e57);else{const _0x3332b0=_0x2397a2(),_0x83651a=_0x439aee['id'];this['_setSuggestionData']({'id':_0x3332b0,'type':'formatInline:'+_0x3fecce,'data':_0x5c34a3,'createdAt':new Date(),'authorId':_0x83651a,'attributes':_0x4e82ec}),this['_addSuggestionMarker']('formatInline:'+_0x3fecce,_0x3332b0,_0x83651a,_0x4f8e57);}}return null;}['markBlockFormat'](_0x44c9f8,_0x5b9a1b,_0x3e620b=[],_0x52c617=null,_0x321d93={}){_0x5b9a1b['formatGroupId']||(_0x5b9a1b['formatGroupId']=_0x5b9a1b['commandName']),_0x5b9a1b['multipleBlocks']=_0x44c9f8['is']('range'),_0x52c617=_0x52c617||Kt(_0x5b9a1b);const _0x3eb610=_0x3e620b['map'](_0x5bf22f=>zt(_0x5bf22f,this['_model'])),_0x4256e2=_0x44c9f8['is']('range')?_0x44c9f8:zt(_0x44c9f8,this['_model']);if('never'===this['_trackFormatChanges']){const _0x312557=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x52c617,'accept');return this['forceDefaultExecution'](()=>_0x312557([_0x4256e2],_0x5b9a1b,_0x321d93)),null;}_0x3eb610['push'](_0x4256e2);let _0x10b566=!0x0;for(const _0x59665f of _0x3eb610)if(!this['_rangeIsInLocalUserInsertion'](_0x59665f)){_0x10b566=!0x1;break;}if(_0x10b566&&'always'!==this['_trackFormatChanges']){const _0x4804a1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x52c617,'accept');return this['forceDefaultExecution'](()=>_0x4804a1([_0x4256e2],_0x5b9a1b,_0x321d93)),null;}let _0x348f8b=null,_0x3d61d4=_0x4256e2['start'],_0x1bf54a=_0x4256e2['end'];for(const {suggestion:_0x590c40,meta:_0x52f4c7}of this['_findSuggestions'](_0x4256e2,'formatBlock')){if(!_0x52f4c7['isOwn'])continue;if(_0x52f4c7['isNextTo']||_0x52f4c7['containsRangeInObject']||_0x52f4c7['isInsideObject'])continue;if(_0x590c40['data']['formatGroupId']!=_0x5b9a1b['formatGroupId'])continue;if(!Xt(_0x590c40,_0x321d93))continue;const _0xea4909=_0x590c40['getFirstRange']();if(_0x590c40['subType']==_0x52c617){if(_0xea4909['containsRange'](_0x4256e2,!0x0))return null;_0x3d61d4=_0x3d61d4['isBefore'](_0xea4909['start'])?_0x3d61d4:_0xea4909['start'],_0x1bf54a=_0x1bf54a['isAfter'](_0xea4909['end'])?_0x1bf54a:_0xea4909['end'],_0x348f8b?_0xea4909['start']['isBefore'](_0x348f8b['getFirstRange']()['start'])?(_0x348f8b['removeMarkers'](),_0x348f8b=_0x590c40):_0x590c40['removeMarkers']():_0x348f8b=_0x590c40;}else{const _0x2a1c0f=_0x4256e2['getIntersection'](_0xea4909);this['_cutOutSuggestionMarker'](_0x590c40,_0x2a1c0f);}}const _0x58f3e4=this['editor']['plugins']['get']('Users')['me'],_0x3a28d8=_0x2397a2(),_0x136caa=_0x58f3e4['id'];if(_0x348f8b)return this['_setSuggestionRange'](_0x348f8b,this['_model']['createRange'](_0x3d61d4,_0x1bf54a)),_0x348f8b;{const _0x2b8a9d=this['_setSuggestionData']({'id':_0x3a28d8,'type':'formatBlock:'+_0x52c617,'data':_0x5b9a1b,'createdAt':new Date(),'authorId':_0x136caa,'attributes':_0x321d93});return this['_addSuggestionMarker']('formatBlock:'+_0x52c617,_0x3a28d8,_0x136caa,this['_model']['createRange'](_0x3d61d4,_0x1bf54a)),_0x2b8a9d;}}['markMultiRangeBlockFormat'](_0x40aaa3,_0x3ff1cf,_0x5b701f=[],_0x414ce2=null,_0x4baff6={}){_0x3ff1cf['formatGroupId']||(_0x3ff1cf['formatGroupId']=_0x3ff1cf['commandName']);const _0x361ec9=_0x40aaa3[0x0];_0x3ff1cf['multipleBlocks']=_0x361ec9['is']('range'),_0x414ce2=_0x414ce2||Kt(_0x3ff1cf);const _0x3e7f13=_0x5b701f['map'](_0x1150b6=>zt(_0x1150b6,this['_model'])),_0x7b4df7=_0x361ec9['is']('range')?_0x40aaa3:_0x40aaa3['map'](_0xdfa3f0=>zt(_0xdfa3f0,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3beecc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x414ce2,'accept');return this['forceDefaultExecution'](()=>_0x3beecc(_0x7b4df7,_0x3ff1cf,_0x4baff6)),null;}_0x3e7f13['push'](..._0x7b4df7);let _0xddc709=!0x0;for(const _0x3b9216 of _0x3e7f13)if(!this['_rangeIsInLocalUserInsertion'](_0x3b9216)){_0xddc709=!0x1;break;}if(_0xddc709&&'always'!==this['_trackFormatChanges']){const _0x4f7ea8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x414ce2,'accept');return this['forceDefaultExecution'](()=>_0x4f7ea8(_0x7b4df7,_0x3ff1cf,_0x4baff6)),null;}const _0x13196d=this['editor']['plugins']['get']('Users')['me'];for(const _0x1aad8b of this['getSuggestions']()){if(_0x1aad8b['author']['id']!=_0x13196d['id'])continue;if('formatBlock'!=_0x1aad8b['type']||_0x1aad8b['data']['formatGroupId']!=_0x3ff1cf['formatGroupId'])continue;if(!Xt(_0x1aad8b,_0x4baff6))continue;const _0x11e5fd=_0x1aad8b['subType']==_0x414ce2;for(let _0xd3c003=0x0;_0xd3c003<_0x7b4df7['length'];_0xd3c003++){const _0x307c19=_0x7b4df7[_0xd3c003];for(const _0x4fa2dd of _0x1aad8b['getMarkers']()){const _0x72e708=_0x4fa2dd['getRange']();if(_0x307c19['isEqual'](_0x72e708)){_0x11e5fd?(_0x7b4df7['splice'](_0xd3c003,0x1),_0xd3c003--):_0x1aad8b['removeMarker'](_0x4fa2dd['name']);break;}}}}if(0x0==_0x7b4df7['length'])return null;const _0x400646=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x414ce2,'join');for(const _0x40e83d of this['getSuggestions']())if(_0x40e83d['author']['id']==_0x13196d['id']&&'formatBlock'==_0x40e83d['type']&&_0x40e83d['data']['formatGroupId']==_0x3ff1cf['formatGroupId']&&_0x40e83d['subType']==_0x414ce2&&Xt(_0x40e83d,_0x4baff6)&&(_0x400646(_0x40e83d['getRanges'](),_0x7b4df7)||_0x400646(_0x7b4df7,_0x40e83d['getRanges']()))){for(const _0x5d781e of _0x7b4df7)_0x40e83d['addRange'](_0x5d781e);return _0x40e83d;}const _0x3a8670=_0x2397a2(),_0x1a0b41=_0x13196d['id'],_0x4e56ef='formatBlock:'+_0x414ce2,_0x2d12a3=this['_setSuggestionData']({'id':_0x3a8670,'type':_0x4e56ef,'data':_0x3ff1cf,'createdAt':new Date(),'authorId':_0x1a0b41,'attributes':_0x4baff6});for(const _0x43d20a of _0x7b4df7)this['_addSuggestionMarker'](_0x4e56ef,_0x3a8670,_0x1a0b41,_0x43d20a,o['getMultiRangeId']());return _0x2d12a3;}['markDeletion'](_0x527462,_0x3257cb=null,_0x40e270={}){if(_0x527462['isCollapsed'])return null;const _0x4621e4=this['editor']['plugins']['get']('Users')['me'],_0x1b61aa=new _0x112647(_0x527462['start'],_0x527462['end']);for(const {suggestion:_0x1acde8,meta:_0x2cc987}of this['_findSuggestions'](_0x1b61aa,'insertion'))if(_0x2cc987['isOwn']&&!_0x2cc987['isNextTo']){if(_0x1acde8['isMultiRange']){const _0x38a8b5=_0x1acde8['getRanges']()['filter'](_0x364863=>'$graveyard'!=_0x364863['root']['rootName']);_0x38a8b5['every'](_0x18891a=>_0x1b61aa['containsRange'](_0x18891a,!0x0))&&_0x1acde8['discard']();if(_0x38a8b5['some'](_0x1b5448=>_0x1b5448['containsRange'](_0x1b61aa,!0x0))){const _0x29bf13=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3257cb,'accept');return this['forceDefaultExecution'](()=>_0x29bf13([_0x1b61aa],null,_0x40e270)),null;}}else{const _0x3f68c4=_0x1b61aa['getIntersection'](_0x1acde8['getFirstRange']());null!==_0x3f68c4&&_0x1acde8['_onDiscard']([_0x3f68c4],null,_0x40e270);}}if(_0x1b61aa['detach'](),_0x1b61aa['isCollapsed']||'$graveyard'==_0x1b61aa['root']['rootName'])return null;let _0x286bc7=null,_0x2fcb98=_0x1b61aa['start'],_0x67ce63=_0x1b61aa['end'];const _0x51aa7d=this['_findSuggestions'](_0x1b61aa,'deletion');for(const {suggestion:_0xd9def0,meta:_0x46dcfb}of _0x51aa7d){const _0x2176ae=this['_model']['createRange'](_0x2fcb98,_0x67ce63);if(_0x46dcfb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x46dcfb['containsRangeInObject']&&!_0x46dcfb['isInsideObject'])){if(_0xd9def0['isMultiRange']){if(!Xt(_0xd9def0,_0x40e270))continue;let _0x4e27e4=!0x0;for(const _0x18c178 of _0xd9def0['getRanges']()){if(_0x18c178['containsRange'](_0x2176ae,!0x0))return _0xd9def0;_0x2176ae['containsRange'](_0x18c178)||(_0x4e27e4=!0x1);}_0x4e27e4&&_0xd9def0['discard']();}else{const _0x5c64e5=_0xd9def0['getFirstRange']();if(_0x5c64e5['containsRange'](_0x2176ae,!0x0))return _0xd9def0;if(!Xt(_0xd9def0,_0x40e270)){_0x2176ae['containsRange'](_0x5c64e5)?_0xd9def0['removeMarkers']():_0x5c64e5['containsPosition'](_0x2fcb98)?_0x2fcb98=_0x5c64e5['end']:_0x5c64e5['containsPosition'](_0x67ce63)&&(_0x67ce63=_0x5c64e5['start']);continue;}_0x2fcb98=_0x2fcb98['isBefore'](_0x5c64e5['start'])?_0x2fcb98:_0x5c64e5['start'],_0x67ce63=_0x67ce63['isAfter'](_0x5c64e5['end'])?_0x67ce63:_0x5c64e5['end'],_0x40e270=Object['assign']({},_0xd9def0['attributes']),_0x286bc7?_0x5c64e5['start']['isBefore'](_0x286bc7['getFirstRange']()['start'])?(_0x286bc7['removeMarkers'](),_0x286bc7=_0xd9def0):_0xd9def0['removeMarkers']():_0x286bc7=_0xd9def0;}}}if(_0x286bc7)return this['_setSuggestionRange'](_0x286bc7,this['_model']['createRange'](_0x2fcb98,_0x67ce63)),_0x286bc7;{const _0x4239bb=_0x2397a2(),_0x27a803=this['_model']['createRange'](_0x2fcb98,_0x67ce63),_0x1d9e1d=_0x4621e4['id'],_0x527ee2=_0x3257cb?'deletion:'+_0x3257cb:'deletion',_0x36c5b7=this['_setSuggestionData']({'id':_0x4239bb,'type':_0x527ee2,'createdAt':new Date(),'authorId':_0x1d9e1d,'attributes':_0x40e270});return this['_addSuggestionMarker'](_0x527ee2,_0x4239bb,_0x1d9e1d,_0x27a803),_0x36c5b7;}}['markMultiRangeDeletion'](_0x59ddf1,_0x334c26='multi',_0x5cd153={}){const _0x5e67f4=this['editor']['plugins']['get']('Users')['me'],_0x628b47=_0x59ddf1['map'](_0x37fa48=>new _0x112647(_0x37fa48['start'],_0x37fa48['end'])),_0x23a3c6=new Set();for(const {suggestion:_0x49276b,meta:_0x211cb0}of this['_findSuggestions'](_0x628b47,'insertion'))_0x211cb0['isOwn']&&!_0x211cb0['isNextTo']&&_0x23a3c6['add'](_0x49276b);for(const _0x3b199b of _0x23a3c6)if(_0x3b199b['isMultiRange']){const _0x18ee98=_0x3b199b['getRanges']();(!_0x3b199b['attributes']||!_0x3b199b['attributes']['skipNestingCheck'])&&(_0x18ee98['every'](_0x10c681=>_0x628b47['some'](_0x28eef0=>_0x28eef0['containsRange'](_0x10c681,!0x0)))&&_0x3b199b['discard']());if(_0x628b47['every'](_0xf74ae6=>_0x18ee98['some'](_0x347b61=>_0x347b61['containsRange'](_0xf74ae6,!0x0)))){const _0x4a334a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x334c26,'accept');return this['forceDefaultExecution'](()=>_0x4a334a(_0x59ddf1,null,_0x5cd153)),null;}}else{const _0x313f9c=_0x3b199b['getFirstRange']();_0x628b47['some'](_0x1bf513=>_0x1bf513['containsRange'](_0x313f9c,!0x0))&&_0x3b199b['discard']();if(_0x628b47['every'](_0x38d881=>_0x313f9c['containsRange'](_0x38d881,!0x0))){const _0x19a8c0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x334c26,'accept');return this['forceDefaultExecution'](()=>_0x19a8c0(_0x628b47,null,_0x5cd153)),null;}}const _0x1fec83=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x334c26,'join');let _0x1b39ec=null;for(const _0x457186 of this['getSuggestions']())if(_0x457186['author']['id']==_0x5e67f4['id']&&_0x457186['isInContent']&&'deletion'==_0x457186['type']&&_0x457186['subType']==_0x334c26&&Xt(_0x457186,_0x5cd153)&&(_0x1fec83(_0x457186['getRanges'](),_0x628b47)||_0x1fec83(_0x628b47,_0x457186['getRanges']()))){if(_0x1b39ec){if(_0x457186['commentThread']&&_0x457186['commentThread']['length'])continue;for(const _0x192840 of _0x457186['getRanges']())_0x1b39ec['isIntersectingWithRange'](_0x192840)||_0x1b39ec['addRange'](_0x192840);_0x457186['removeMarkers']();}else{_0x1b39ec=_0x457186;for(const _0x3d0e42 of _0x628b47)_0x457186['isIntersectingWithRange'](_0x3d0e42)||_0x457186['addRange'](_0x3d0e42);}}if(_0x1b39ec)return _0x1b39ec;_0x23a3c6['clear']();for(const {suggestion:_0x3d568d,meta:_0x4a0c89}of this['_findSuggestions'](_0x628b47,'deletion'))_0x4a0c89['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a0c89['containsRangeInObject']&&!_0x4a0c89['isInsideObject'])&&Xt(_0x3d568d,_0x5cd153)&&_0x23a3c6['add'](_0x3d568d);for(const _0x39cc94 of _0x23a3c6){const _0x163a36=_0x39cc94['getRanges']();if(!_0x5cd153||!_0x5cd153['skipNestingCheck']){if(_0x628b47['every'](_0x4cd46d=>_0x163a36['some'](_0x1e9ecc=>_0x1e9ecc['containsRange'](_0x4cd46d,!0x0))))return _0x39cc94;}(!_0x39cc94['attributes']||!_0x39cc94['attributes']['skipNestingCheck'])&&(_0x163a36['every'](_0x51e012=>_0x628b47['some'](_0x11998a=>_0x11998a['containsRange'](_0x51e012,!0x0)))&&_0x39cc94['discard']());}const _0x172b2d=_0x2397a2(),_0x1d9388=_0x5e67f4['id'],_0x5beb75='deletion:'+_0x334c26,_0x2c5468=this['_setSuggestionData']({'id':_0x172b2d,'type':_0x5beb75,'createdAt':new Date(),'authorId':_0x1d9388,'attributes':_0x5cd153});for(const _0x40b86d of _0x628b47)_0x40b86d['detach'](),_0x40b86d['isCollapsed']||'$graveyard'==_0x40b86d['root']['rootName']||this['_addSuggestionMarker'](_0x5beb75,_0x172b2d,_0x1d9388,_0x40b86d,o['getMultiRangeId']());return _0x2c5468;}['markAttributeChange'](_0x157474,_0x27d251,_0x2398a2,_0x13616f,_0x5aec5e){if(_0x157474['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x71309d=this['editor']['plugins']['get']('Users')['me']['id'],_0x126627=Array['from'](this['_suggestions']['values']())['filter'](_0x22f795=>'attribute'==_0x22f795['type']&&_0x22f795['data']['key']==_0x27d251&&_0x22f795['isIntersectingWithRange'](_0x157474));if('default'===this['_trackFormatChanges']){const _0x4ce68d=this['_findSuggestions'](_0x157474,'insertion')['filter'](({meta:_0x789b89})=>_0x789b89['isOwn']&&!_0x789b89['isInsideObject']&&!_0x789b89['isNextTo'])['map'](({suggestion:_0x77d512})=>_0x77d512);_0x126627['unshift'](..._0x4ce68d);}const _0x11afa9=new Map([[_0x157474,_0x2398a2]]);for(const _0x19d2a1 of _0x126627){const _0x2c1566='attribute'==_0x19d2a1['type']?_0x19d2a1['data']['oldValue']:void 0x0,_0x5355ad=_0x19d2a1['getFirstRange'](),_0x283273=Array['from'](_0x11afa9['keys']())['find'](_0x1bc47e=>_0x1bc47e['isIntersecting'](_0x5355ad));if(!_0x283273)continue;const _0x294600=_0x283273['getDifference'](_0x5355ad);this['_isBlockAttribute'](_0x27d251)&&'insertion'==_0x19d2a1['type']&&0x0!=_0x294600['length']||(_0x11afa9['delete'](_0x283273),_0x294600['forEach'](_0x4d4981=>{_0x11afa9['set'](_0x4d4981,_0x2398a2);}),'insertion'!=_0x19d2a1['type']&&_0x2c1566!=_0x13616f&&_0x11afa9['set'](_0x283273['getIntersection'](_0x5355ad),_0x2c1566));}const _0x46b5fd=[];for(const [_0x4fb25b,_0x1a7e77]of _0x11afa9){const _0x39d405=_0x2397a2(),_0x52cc18={'key':_0x27d251,'oldValue':_0x1a7e77,'newValue':_0x13616f};_0x27d251['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':_0x27d251});const _0xd12937=('attribute:'+(_0x27d251+'|'+Kt({'newValue':_0x13616f})))['substring'](0x0,0x3c),_0x37ea93=this['_setSuggestionData']({'id':_0x39d405,'type':_0xd12937,'data':_0x52cc18,'createdAt':new Date(),'authorId':_0x71309d,'attributes':_0x5aec5e});_0x46b5fd['push'](_0x37ea93),this['_addSuggestionMarker'](_0xd12937,_0x39d405,_0x71309d,_0x4fb25b);}return _0x46b5fd;}['enableDefaultAttributesIntegration'](_0x265b94){this['enableCommand'](_0x265b94,(_0x40203f,..._0x24a751)=>{this['_recordAttributeChanges'](()=>{_0x40203f(..._0x24a751);});});}['registerBlockAttribute'](_0x52d97f){this['_blockAttributeKeys']['add'](_0x52d97f);}['registerInlineAttribute'](_0x55739b){this['_inlineAttributeKeys']['add'](_0x55739b);}['_getAttributeKey'](_0x44772f){return'attribute'==_0x44772f['type']?_0x44772f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2e442b,_0x3864b2){const _0x19ec88=_0x2e442b['getFirstMarker']();this['_model']['change'](_0x41b3e3=>{_0x41b3e3['updateMarker'](_0x19ec88,{'range':_0x3864b2});});}['_addThreadToSuggestion'](_0x3a58ea){const _0x20dcbb=_0x3a58ea['id'],_0x12e195=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x20dcbb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x12e195,'threadId':_0x20dcbb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x272498=this['_commentsRepository']['getCommentThread'](_0x20dcbb);_0x272498['unbind']('isRemovable'),_0x272498['isRemovable']=!0x1,_0x3a58ea['commentThread']=_0x272498;}['_checkSuggestionCorrectness'](_0x5e4bc1,_0x5907ee,_0xcaf8c,_0x496a16){if(_0x5e4bc1['type']!=_0x5907ee||_0x5e4bc1['subType']!=_0xcaf8c||_0x5e4bc1['creator']['id']!=_0x496a16)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2ca3b1('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1db627,_0x5da427){const _0x10cbc1=_0x1db627['getFirstRange']();if(_0x5da427['isEqual'](_0x10cbc1))_0x1db627['removeMarkers']();else{if(_0x10cbc1['containsRange'](_0x5da427)){const _0x62a30c=this['_model']['createPositionAt'](_0x5da427['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1db627,this['_model']['createRange'](_0x10cbc1['start'],_0x62a30c));const _0x4179c8=_0x2397a2(),_0x56735a=_0x1db627['creator']['id'],_0x5dcb6c=_0x1db627['type']+':'+_0x1db627['subType'];this['_setSuggestionData']({'id':_0x4179c8,'type':_0x5dcb6c,'createdAt':new Date(),'authorId':_0x56735a,'data':_0x1db627['data'],'attributes':_0x1db627['attributes']});const _0x33b872=this['_model']['createPositionAt'](_0x5da427['end']['parent'],'after'),_0x2e8567=this['_model']['createRange'](_0x33b872,_0x10cbc1['end']);this['_addSuggestionMarker'](_0x5dcb6c,_0x4179c8,_0x56735a,_0x2e8567);}else{if(_0x10cbc1['containsPosition'](_0x5da427['start'])){const _0x500b2b=this['_model']['createPositionAt'](_0x5da427['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1db627,this['_model']['createRange'](_0x10cbc1['start'],_0x500b2b));}else{const _0x1b1f22=this['_model']['createPositionAt'](_0x5da427['end']['parent'],'after');this['_setSuggestionRange'](_0x1db627,this['_model']['createRange'](_0x1b1f22,_0x10cbc1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x553cee){for(const {suggestion:_0x420666,meta:_0x44307f}of this['_findSuggestions'](_0x553cee,'insertion')){if(!_0x44307f['isOwn'])continue;const _0x1b1e39=_0x420666['getRanges']();for(const _0x44eb3a of _0x1b1e39)if(!_0x553cee['getDifference'](_0x44eb3a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5ef8c4){const _0x5b2f2d=this['editor']['plugins']['get']('Users')['getUser'](_0x5ef8c4);if(!_0x5b2f2d)throw new _0x2ca3b1('track-changes-user-not-found',this);return _0x5b2f2d;}['_getExternalAuthor'](_0x3b6e76){const _0x1077de=this['editor']['plugins']['get']('Users'),_0xa8b5ee=_0x2455b2('external:'+_0x3b6e76),_0x3bcb53=_0x1077de['getUser'](_0xa8b5ee);return _0x3bcb53||_0x1077de['addUser']({'id':_0xa8b5ee,'name':_0x3b6e76});}['_createSuggestion'](_0x720ef9,_0x100b4a,_0x507deb,_0x4a8464,_0x1dafe6){const _0x252f01=this['_getAuthorFromId'](_0x4a8464),_0x53cbf3=this['_suggestionFactory']['buildSuggestion'](_0x720ef9,_0x100b4a,_0x507deb,_0x252f01,_0x1dafe6,_0x127f69=>{this['_updateSuggestionData'](_0x507deb,{'attributes':_0x127f69});const _0x17c440=this['getSuggestion'](_0x507deb);this['_joinWithAdjacentSuggestions'](new Set([_0x17c440])),this['_refreshSuggestionsChain'](new Set([_0x17c440]));});return this['listenTo'](_0x53cbf3,'accept',()=>{this['_updateSuggestionData'](_0x507deb,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x53cbf3,'discard',()=>{this['_updateSuggestionData'](_0x507deb,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x507deb,_0x53cbf3),this['_suggestionState']['set'](_0x53cbf3,'notReady'),_0x53cbf3;}['_splitMarkerName'](_0x1f3cd1){const _0x1e677e=_0x1f3cd1['split'](':');return{'group':_0x1e677e[0x0],'type':_0x1e677e[0x1],'subType':_0x1e677e['length']>=0x5?_0x1e677e[0x2]:null,'id':_0x1e677e['length']<0x5?_0x1e677e[0x2]:_0x1e677e[0x3],'authorId':_0x1e677e['length']<0x5?_0x1e677e[0x3]:_0x1e677e[0x4],'markerCount':0x6==_0x1e677e['length']?_0x1e677e[0x5]:null};}['_breakSuggestionMarker'](_0x4fcbe6,_0x4334a2,_0x10f30f){const _0x35467a=_0x4fcbe6['getFirstRange'](),_0x161f33=_0x35467a['start'],_0x454278=_0x35467a['end'];this['_setSuggestionRange'](_0x4fcbe6,this['_model']['createRange'](_0x161f33,_0x4334a2));const _0xeda58a=_0x2397a2(),_0x4ee5a5=_0x4fcbe6['creator']['id'],_0x197fa2=_0x4fcbe6['type']+(_0x4fcbe6['subType']?':'+_0x4fcbe6['subType']:'');this['_setSuggestionData']({'id':_0xeda58a,'type':_0x197fa2,'createdAt':new Date(),'authorId':_0x4ee5a5,'originalSuggestionId':_0x4fcbe6['id'],'attributes':_0x4fcbe6['attributes'],'data':_0x4fcbe6['data']});const _0x3a7fa6=this['_getAttributeKey'](_0x4fcbe6);('formatBlock'==_0x4fcbe6['type']||_0x3a7fa6&&this['_isBlockAttribute'](_0x3a7fa6))&&(_0x10f30f=this['_model']['createPositionBefore'](_0x10f30f['parent'])),this['_addSuggestionMarker'](_0x197fa2,_0xeda58a,_0x4ee5a5,this['_model']['createRange'](_0x10f30f,_0x454278));}['_findSuggestions'](_0x3b94da,_0x5e99af=null){const _0x2b7df7=[],_0x18c456=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3b94da)||(_0x3b94da=[_0x3b94da]);for(const _0x59fbd1 of this['getSuggestions']()){if(!_0x59fbd1['isInContent'])continue;if(_0x5e99af&&_0x59fbd1['type']!=_0x5e99af)continue;let _0xfc223a=!0x1;for(const _0x4e7992 of _0x59fbd1['getRanges']()){for(const _0x96dff2 of _0x3b94da){const _0x5bb1ed=_0x96dff2['start']['isEqual'](_0x4e7992['end'])||_0x96dff2['end']['isEqual'](_0x4e7992['start']);if(_0x5bb1ed||_0x96dff2['getIntersection'](_0x4e7992)){const _0xf12416=_0x96dff2['containsRange'](_0x4e7992)&&Gt(this['_model']['schema'],_0x4e7992['start'],_0x96dff2),_0x20c76d=_0x4e7992['containsRange'](_0x96dff2)&&Gt(this['_model']['schema'],_0x96dff2['start'],_0x4e7992);_0x2b7df7['push']({'suggestion':_0x59fbd1,'meta':{'isOwn':_0x18c456==_0x59fbd1['author'],'isNextTo':_0x5bb1ed,'isInsideObject':_0xf12416,'containsRangeInObject':_0x20c76d}}),_0xfc223a=!0x0;break;}}if(_0xfc223a)break;}}return _0x2b7df7;}['_addSuggestionMarker'](_0x13f1fe,_0x4bfb58,_0x2854e2,_0x5b5028,_0x43adda){this['_model']['change'](_0x158912=>{let _0x2a26a3='suggestion:'+_0x13f1fe+':'+_0x4bfb58+':'+_0x2854e2;_0x43adda&&(_0x2a26a3=_0x2a26a3+':'+_0x43adda),_0x158912['addMarker'](_0x2a26a3,{'range':_0x5b5028,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3d57b0){const _0x524869=_0x3d57b0['previous'],_0x340b0b=_0x3d57b0['next'];_0x3d57b0['previous']=null,_0x3d57b0['next']=null,null!=_0x524869&&_0x524869['next']==_0x3d57b0&&(_0x524869['next']=_0x340b0b),null!=_0x340b0b&&_0x340b0b['previous']==_0x3d57b0&&(_0x340b0b['previous']=_0x524869),'ready'==this['_suggestionState']['get'](_0x3d57b0)&&(this['_suggestionState']['set'](_0x3d57b0,'removed'),this['fire']('suggestionUnloaded',_0x3d57b0,_0x524869,_0x340b0b));}['_setSuggestionData'](_0x5bfcaf){const _0x121ff2=_0x5bfcaf['id'],_0x1456c0=this['addSuggestionData'](_0x5bfcaf);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x199778=this['editor']['plugins']['get']('PendingActions'),_0x6a4288=_0x1456c0['hasComments'],_0x4db067=_0x1456c0['subType']?_0x1456c0['type']+':'+_0x1456c0['subType']:_0x1456c0['type'],_0x1fd0a9=this['editor']['locale'],_0x2fcd8f=_0x199778['add'](c(_0x1fd0a9,'PENDING_ACTION_SUGGESTION')),_0x256f75={'id':_0x121ff2,'type':_0x4db067,'hasComments':_0x6a4288,'data':_0x5bfcaf['data']||null,'originalSuggestionId':_0x5bfcaf['originalSuggestionId']||null,'attributes':_0x1456c0['attributes']};this['_adapter']['addSuggestion'](_0x256f75)['then'](_0x569b76=>{_0x1456c0['_saved']=!0x0,_0x199778['remove'](_0x2fcd8f),_0x569b76&&_0x569b76['createdAt']&&(this['_suggestions']['get'](_0x121ff2)['createdAt']=_0x569b76['createdAt']);})['catch'](_0x3227e4=>{throw _0x5e8bbd('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1456c0['discard']();}),_0x1456c0['stopListening'](),this['_suggestions']['delete'](_0x1456c0['id']),this['_suggestionState']['delete'](_0x1456c0),_0x3227e4;});}return _0x1456c0;}['_isBlockAttribute'](_0x9c4fe6){return this['_blockAttributeKeys']['has'](_0x9c4fe6);}['_updateSuggestionData'](_0x4b3a4e,_0x4870fe){const _0x17d74c=this['editor']['plugins']['get']('PendingActions'),_0x369b42=this['getSuggestion'](_0x4b3a4e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x369b42['_saved']){const _0xc5a946=_0x17d74c['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4b3a4e,_0x4870fe)['then'](()=>{_0x17d74c['remove'](_0xc5a946);});}else _0x369b42['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4b3a4e,_0x4870fe);});}}['_getSuggestionData'](_0x2d7a89){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2ca3b1('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d7a89);}['_handleNewSuggestionMarker'](_0x321be1){const {id:_0x179184,type:_0x3c60d8,subType:_0x506f95,authorId:_0x506c67}=this['_splitMarkerName'](_0x321be1),_0x4da8ad=this['_suggestions']['get'](_0x179184)||this['_createSuggestion'](_0x3c60d8,_0x506f95,_0x179184,_0x506c67,{});switch(this['_checkSuggestionCorrectness'](_0x4da8ad,_0x3c60d8,_0x506f95,_0x506c67),this['_suggestionState']['get'](_0x4da8ad)){case'notReady':this['_getSuggestionData'](_0x179184)['then'](_0x104630=>{let _0x5c7e53=Promise['resolve']();_0x104630['hasComments']&&(_0x5c7e53=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x179184})),_0x5c7e53['then'](()=>{this['addSuggestionData'](_0x104630)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4da8ad,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x179184,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4da8ad,'ready'),this['fire']('suggestionLoaded',_0x4da8ad);break;case'ready':this['fire']('suggestionChanged',_0x4da8ad);}return _0x4da8ad['addMarkerName'](_0x321be1),_0x4da8ad;}['_refreshSuggestionsChain'](_0x47e335){const _0x494861=Array['from'](_0x47e335),_0x2bb0da=_0x494861['filter'](_0x2e1cfc=>'attribute'==_0x2e1cfc['type']);this['_refreshAttributeSuggestionsChain'](_0x2bb0da);const _0x193a5e=_0x494861['filter'](_0x213f3f=>!_0x213f3f['isMultiRange']&&'attribute'!=_0x213f3f['type']),_0x443cfb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f0dea=>!_0x3f0dea['isMultiRange']&&'attribute'!=_0x3f0dea['type']),_0x16925e=_0x443cfb['filter'](_0xf7cd93=>!_0x47e335['has'](_0xf7cd93)),_0x2bdfb4=new Map(_0x443cfb['map'](_0x2cf850=>[_0x2cf850,this['_suggestionFactory']['getSuggestionCallback'](_0x2cf850['type'],_0x2cf850['subType'],'chain')])),_0x322bdc=new Map(_0x443cfb['map'](_0x14ff10=>[_0x14ff10,_0x14ff10['getFirstRange']()])),_0x4c35a9=new Set(),_0x295b64=new Set();for(let _0x338a1=0x0;_0x338a1<_0x193a5e['length'];_0x338a1++)_0x16f83b(_0x193a5e[_0x338a1],_0x193a5e,_0x338a1+0x1);for(let _0x49adf3=0x0;_0x49adf3<_0x193a5e['length'];_0x49adf3++)_0x16f83b(_0x193a5e[_0x49adf3],_0x16925e,0x0);const _0x426a8b=new Set();for(let _0x2cb67c=0x0;_0x2cb67c<_0x193a5e['length'];_0x2cb67c++){const _0xc9862=_0x193a5e[_0x2cb67c];!_0x295b64['has'](_0xc9862)&&_0xc9862['previous']&&(_0x426a8b['add'](_0xc9862['previous']),_0xc9862['previous']['next']===_0xc9862&&(_0xc9862['previous']['next']=null),_0xc9862['previous']=null),!_0x4c35a9['has'](_0xc9862)&&_0xc9862['next']&&(_0x426a8b['add'](_0xc9862['next']),_0xc9862['next']['previous']===_0xc9862&&(_0xc9862['next']['previous']=null),_0xc9862['next']=null);}function _0x16f83b(_0x1d5994,_0x2d4a11,_0x12f1be){for(let _0x1f3e34=_0x12f1be;_0x1f3e34<_0x2d4a11['length'];_0x1f3e34++){const _0xbf32b0=_0x420ca0(_0x1d5994,_0x2d4a11[_0x1f3e34]);_0xbf32b0&&(_0xbf32b0[0x0]['next']=_0xbf32b0[0x1],_0xbf32b0[0x1]['previous']=_0xbf32b0[0x0],_0x4c35a9['add'](_0xbf32b0[0x0]),_0x295b64['add'](_0xbf32b0[0x1]));}}function _0x420ca0(_0x130135,_0x57b8b2){if(_0x130135['author']['id']!==_0x57b8b2['author']['id'])return null;const _0x532087=_0x2bdfb4['get'](_0x130135)(_0x130135,_0x57b8b2,_0x322bdc['get'](_0x130135),_0x322bdc['get'](_0x57b8b2));if(!_0x532087)return null;return _0x2bdfb4['get'](_0x57b8b2)(_0x130135,_0x57b8b2,_0x322bdc['get'](_0x130135),_0x322bdc['get'](_0x57b8b2))?_0x532087[0x1]['commentThread']&&_0x532087[0x1]['commentThread']['length']?null:_0x532087:null;}_0x426a8b['size']&&this['_refreshSuggestionsChain'](_0x426a8b);}['_refreshAttributeSuggestionsChain'](_0x1c1c6a){if(0x0==_0x1c1c6a['length'])return;const _0x5b8f01=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x97f8a4=>'attribute'==_0x97f8a4['type']&&_0x97f8a4['_isDataLoaded']),_0x2ebaa1=[],_0x5c60ea=new Map();for(const _0x386822 of _0x5b8f01){const _0x436479=_0x2455b2(_0x386822['attributes']);_0x5c60ea['has'](_0x436479)||(_0x5c60ea['set'](_0x436479,_0x2ebaa1['length']),_0x2ebaa1['push']([]));const _0x464cfd=_0x5c60ea['get'](_0x436479);_0x2ebaa1[_0x464cfd]['push'](_0x386822);}!(function(){_0x2ebaa1['sort']((_0x54fbfc,_0x40e922)=>{const _0x4c9770=_0x54fbfc[0x0]['createdAt'],_0x292a61=_0x40e922[0x0]['createdAt'];return _0x4c9770==_0x292a61?_0x54fbfc[0x0]['attributes']['groupId']<_0x40e922[0x0]['attributes']['groupId']?-0x1:0x1:_0x4c9770<_0x292a61?-0x1:0x1;});for(const _0x2204d9 of _0x2ebaa1)_0x2204d9['sort']((_0x488e22,_0xc8fcc9)=>_0x488e22['id']<_0xc8fcc9['id']?-0x1:0x1);}());for(let _0x25a333=0x0;_0x25a333<_0x2ebaa1['length'];_0x25a333++){if(0x0==_0x2ebaa1[_0x25a333]['length'])continue;const _0x29e548=[];for(let _0x3c7b9a=_0x25a333+0x1;_0x3c7b9a<_0x2ebaa1['length'];_0x3c7b9a++)0x0!=_0x2ebaa1[_0x3c7b9a]['length']&&_0x4750c8(_0x2ebaa1[_0x25a333],_0x2ebaa1[_0x3c7b9a])&&_0x29e548['push'](_0x3c7b9a);for(const _0xced431 of _0x29e548)_0x2ebaa1[_0x25a333]=_0x2ebaa1[_0x25a333]['concat'](_0x2ebaa1[_0xced431]),_0x2ebaa1[_0xced431]=[];}for(const _0x15e625 of _0x2ebaa1)for(let _0x12c07e=0x0;_0x12c07e<_0x15e625['length'];_0x12c07e++){const _0x2c63d3=_0x15e625[_0x12c07e+0x1]||null;_0x15e625[_0x12c07e]['next']!==_0x2c63d3&&(_0x15e625[_0x12c07e]['next']=_0x2c63d3);}for(const _0x7581f6 of _0x2ebaa1)for(let _0x34a7e2=0x0;_0x34a7e2<_0x7581f6['length'];_0x34a7e2++){const _0x4edc54=_0x7581f6[_0x34a7e2-0x1]||null;_0x7581f6[_0x34a7e2]['previous']!==_0x4edc54&&(_0x7581f6[_0x34a7e2]['previous']=_0x4edc54);}function _0x4750c8(_0x3bd5da,_0x37dbf8){if(_0x3bd5da[0x0]['attributes']['groupId']!==_0x37dbf8[0x0]['attributes']['groupId']&&_0x3bd5da[0x0]['author']!==_0x37dbf8[0x0]['author'])return!0x1;if(!function(_0x2e3e1b,_0x4ae32d){if(!_0x2e3e1b['hasComments']&&!_0x4ae32d['hasComments'])return!0x0;if(_0x2e3e1b['hasComments']&&_0x4ae32d['hasComments'])return!0x1;if(_0x2e3e1b['hasComments']&&_0x4ae32d['createdAt']<_0x2e3e1b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4ae32d['hasComments']&&_0x2e3e1b['createdAt']<_0x4ae32d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3bd5da[0x0],_0x37dbf8[0x0]))return!0x1;const _0x18743f=Ft(_0x3bd5da[0x0]['attributes'],'groupId'),_0x1c4fac=Ft(_0x37dbf8[0x0]['attributes'],'groupId');if(!_0x3e9ffc(_0x18743f,_0x1c4fac))return!0x1;return!!_0x3bd5da['every'](_0x5f0a7e=>_0x37dbf8['some'](_0x3f432d=>_0x5f0a7e['getFirstRange']()['isEqual'](_0x3f432d['getFirstRange']())))&&_0x37dbf8['every'](_0x50f438=>_0x3bd5da['some'](_0x28ebc1=>_0x50f438['getFirstRange']()['isEqual'](_0x28ebc1['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1fb695){const _0x3b6e6a=Array['from'](_0x1fb695),_0x23f6bf=this['getSuggestions']({'skipNotAttached':!0x0}),_0x290ca7=_0x23f6bf['filter'](_0x434352=>!_0x1fb695['has'](_0x434352)),_0x3af62d=new Map(_0x3b6e6a['map'](_0x51d7ad=>[_0x51d7ad,this['_suggestionFactory']['getSuggestionCallback'](_0x51d7ad['type'],_0x51d7ad['subType'],'join')])),_0x1b50d2=new Map(_0x23f6bf['map'](_0x14d157=>[_0x14d157,_0x14d157['getRanges']()]));for(let _0x48bb7b=0x0;_0x48bb7b<_0x3b6e6a['length'];_0x48bb7b++){if(_0x2a3fb8(this,_0x3b6e6a[_0x48bb7b],_0x3b6e6a,_0x48bb7b+0x1))return!0x0;}for(let _0x336386=0x0;_0x336386<_0x3b6e6a['length'];_0x336386++){if(_0x2a3fb8(this,_0x3b6e6a[_0x336386],_0x290ca7,0x0))return!0x0;}return!0x1;function _0x2a3fb8(_0x30762e,_0x206ee7,_0x2967af,_0xaad692){for(let _0x4c781c=_0xaad692;_0x4c781c<_0x2967af['length'];_0x4c781c++){const _0xbed830=_0x2967af[_0x4c781c];if(_0xbed830['type']!==_0x206ee7['type']||_0xbed830['author']['id']!==_0x206ee7['author']['id']||_0xbed830['subType']!==_0x206ee7['subType'])continue;if(!Qt(_0x206ee7,_0xbed830))continue;if('attribute'==_0x206ee7['type']&&_0x206ee7['data']['oldValue']!=_0xbed830['data']['oldValue'])continue;if('attribute'==_0x206ee7['type']&&_0x30762e['_isBlockAttribute'](_0x206ee7['data']['key']))continue;if('formatBlock'==_0x206ee7['type']){const _0x5eac0c=_0x30762e['editor']['model'],_0x243d86=_0x206ee7['getContainedElement']();if(_0x243d86&&(_0x5eac0c['schema']['isObject'](_0x243d86)||_0x5eac0c['schema']['isLimit'](_0x243d86)))continue;}const _0x5d748c=_0x3af62d['get'](_0x206ee7),_0x284570=_0x1b50d2['get'](_0x206ee7),_0x351c4e=_0x1b50d2['get'](_0xbed830),_0x3bcdc6=_0x206ee7['commentThread']&&_0x206ee7['commentThread']['length'],_0x850be3=_0xbed830['commentThread']&&_0xbed830['commentThread']['length'];if(!_0x3bcdc6&&_0x5d748c(_0x351c4e,_0x284570))return _0x30762e['_joinSuggestions'](_0xbed830,_0x206ee7),_0x1b50d2['delete'](_0x206ee7),!0x0;if(!_0x850be3&&_0x5d748c(_0x284570,_0x351c4e))return _0x30762e['_joinSuggestions'](_0x206ee7,_0xbed830),_0x1b50d2['delete'](_0xbed830),!0x0;}return!0x1;}}['_joinSuggestions'](_0x457c7b,_0x5a29b3){if(_0x457c7b['isMultiRange']){for(const _0x58ca3d of _0x5a29b3['getRanges']())_0x457c7b['addRange'](_0x58ca3d);}else{const _0x16ab0c=_0x5a29b3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x457c7b,this['_model']['createRange'](_0x457c7b['getFirstRange']()['start'],_0x16ab0c));}_0x5a29b3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x16b05f,_0x14357d,_0x3a4ac1){const _0x287a21=_0x16b05f['startsWith']('format')||_0x16b05f['startsWith']('attribute')?'FORMATTING':_0x16b05f['toUpperCase']();return c(this['editor']['locale'],_0x14357d+'_'+_0x287a21+'_SUGGESTION_ANNOUNCEMENT',_0x3a4ac1);}['_initAriaMarkerChangeAnnouncements'](){const _0x38d4d4=this['editor'];if(!_0x38d4d4['ui'])return;const {ariaLiveAnnouncer:_0xde0c2e}=_0x38d4d4['ui'];_0x4ba154(this['_model'],({left:_0x214c9c,entered:_0x2fa08a})=>{for(const _0x1e1d8a of _0x214c9c){const {group:_0x4bdd22,type:_0x2bc8e3}=this['_splitMarkerName'](_0x1e1d8a['name']);if('suggestion'===_0x4bdd22){_0xde0c2e['announce'](this['_getMarkerAnnouncementText'](_0x2bc8e3,'LEAVE'));break;}}for(const _0x43ba09 of _0x2fa08a){const {group:_0x217dff,type:_0x32e154}=this['_splitMarkerName'](_0x43ba09['name']);if('suggestion'===_0x217dff){_0xde0c2e['announce'](this['_getMarkerAnnouncementText'](_0x32e154,'ENTER',_0x6d3983(_0x3be5b7)));break;}}});}['_processAttributeChanges'](_0x3953fc){if(this['_recordAttributeSuggestions'])return!0x1;const _0xb888cf=this['editor'],_0x20d592=_0xb888cf['model']['document']['differ']['getChanges']();if(0x0==_0x20d592['length'])return!0x1;const _0x489c3d=[],_0x5b8cf8=_0x20d592['filter'](_0x3f066b=>'attribute'==_0x3f066b['type']),_0x25e51a=_0x20d592['filter'](_0x4215f6=>'insert'==_0x4215f6['type']&&'$text'!=_0x4215f6['name']),_0x48ddab=_0x20d592['filter'](_0x4d3184=>'remove'==_0x4d3184['type']&&'$text'!=_0x4d3184['name']);for(const _0x71a9a7 of _0x5b8cf8)_0x489c3d['push']({'key':_0x71a9a7['attributeKey'],'newValue':_0x71a9a7['attributeNewValue'],'oldValue':_0x71a9a7['attributeOldValue'],'range':qt(_0x71a9a7['range'],_0xb888cf['model'])});for(const _0x20c77c of _0x25e51a){const _0x3c8316=_0x48ddab['find'](_0x70cac9=>_0x70cac9['position']['isEqual'](_0x20c77c['position']));_0x3c8316&&_0x489c3d['push']({'key':u,'newValue':_0x20c77c['name'],'oldValue':_0x3c8316['name'],'range':_0xb888cf['model']['createRangeOn'](_0x20c77c['position']['nodeAfter'])});}return 0x0!=_0x489c3d['length']&&this['_reduceExistingSuggestions'](_0x3953fc,_0x489c3d);}['_processAttributeSuggestions'](_0x21a477){let _0x3841a0=!0x1;const _0x562a00=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e9bb3=>_0x3e9bb3['data']['newRange']&&_0x3e9bb3['name']['startsWith']('suggestion:attribute:'));for(const _0x15d8e0 of _0x562a00){const {subType:_0x4a63ef,id:_0x10a888}=this['_splitMarkerName'](_0x15d8e0['name']),_0x2b45a4=_0x4a63ef['split']('|')[0x0];for(const _0x568427 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x568427['id']!=_0x10a888&&'attribute'==_0x568427['type']&&_0x568427['data']&&_0x568427['data']['key']==_0x2b45a4&&_0x568427['getFirstRange']()['isIntersecting'](_0x15d8e0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x568427,_0x15d8e0['data']['newRange'],_0x21a477),_0x3841a0=!0x0);}return _0x3841a0;}['_recordAttributeChanges'](_0x30dfc5){this['_recordAttributeSuggestions']=!0x0,_0x30dfc5();}['_isRegisteredAttribute'](_0x1fd928){const _0x112039=this['_isBlockAttribute'](_0x1fd928),_0x44959b=this['_inlineAttributeKeys']['has'](_0x1fd928);return _0x112039||_0x44959b;}['_reduceExistingSuggestions'](_0x21c558,_0x763619){if(0x0==_0x763619['length'])return!0x1;let _0x1f65ff=!0x1;for(const _0x535be5 of _0x763619){const _0x382902=this['_findSuggestions'](_0x535be5['range'],'attribute')['filter'](_0x56f43d=>!_0x56f43d['meta']['isNextTo'])['map'](_0x517fd5=>_0x517fd5['suggestion']),_0x5297db=_0x2455b2({'newValue':_0x535be5['newValue']});_0x382902['filter'](_0x48b5aa=>{const [_0x2ce18e,_0x3f9d7f]=_0x48b5aa['subType']['split']('|');return _0x2ce18e==_0x535be5['key']&&_0x3f9d7f!=_0x5297db;})['forEach'](_0x354bd7=>{this['_reduceSuggestionAttributeRange'](_0x354bd7,_0x535be5['range'],_0x21c558),_0x1f65ff=!0x0;});}return _0x1f65ff;}['_reduceSuggestionAttributeRange'](_0x4409cb,_0x4cf66d,_0x386109){const _0x5a85d3=_0x4409cb['getFirstRange']()['getDifference'](_0x4cf66d);0x0!==_0x5a85d3['length']?0x1!==_0x5a85d3['length']?this['_breakSuggestionMarker'](_0x4409cb,_0x4cf66d['start'],_0x4cf66d['end']):this['_setSuggestionRange'](_0x4409cb,_0x5a85d3[0x0]):_0x386109['removeMarker'](_0x4409cb['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xe8c5fe){this['_editor']=_0xe8c5fe,this['_model']=_0xe8c5fe['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2ecddc,_0x37e3c6,_0x23c099,_0x33066d,_0x941c1b,_0x195f6e){return new o(this['_model'],{'type':_0x2ecddc,'subType':_0x37e3c6,'id':_0x23c099,'author':_0x33066d,'creator':_0x33066d,'attributes':_0x941c1b,'onAttributesChange':_0x195f6e,'onAccept':(..._0x17f868)=>this['getSuggestionCallback'](_0x2ecddc,_0x37e3c6,'accept')(..._0x17f868),'onDiscard':(..._0x37c410)=>this['getSuggestionCallback'](_0x2ecddc,_0x37e3c6,'discard')(..._0x37c410)});}['registerCustomCallback'](_0x374c1a,_0x53f240,_0x4a11c2,_0xbe0ee0){const _0x51c9f8=_0x374c1a+':'+_0x53f240+':'+_0x4a11c2;this['_customCallbacks']['set'](_0x51c9f8,_0xbe0ee0);}['getSuggestionCallback'](_0x11c765,_0x3810c0,_0x3e118f){const _0x2bd4f0=_0x11c765+':'+_0x3810c0+':'+_0x3e118f;return this['_customCallbacks']['get'](_0x2bd4f0)||this['_defaultCallbacks']['get'](_0x11c765+':'+_0x3e118f);}['_registerDefaultCallbacks'](){const _0x4b65a6=()=>!0x1,_0x4027b3=_0x1b4dd6=>{_0x1b4dd6['sort']((_0x27a673,_0x1f811c)=>_0x27a673['start']['isBefore'](_0x1f811c['start'])?0x1:-0x1),this['_model']['change'](_0x41f532=>{for(const _0x104300 of _0x1b4dd6){let _0x25c460;_0x25c460=_0x104300['end']['isAtEnd']&&_0x104300['end']['parent']==_0x104300['start']['nodeAfter']?_0x41f532['createSelection'](_0x104300['start']['nodeAfter'],'on'):_0x41f532['createSelection'](_0x104300),this['_model']['deleteContent'](_0x25c460,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2025bb=(_0xbf8a9,_0x41c151)=>{_0x41c151&&this['_model']['change'](_0x4e5f3d=>{const {commandName:_0x393ff6,commandParams:_0x1ed82f=[]}=_0x41c151,_0x460105=_0xbf8a9['map'](_0x24d46d=>(Lt(_0x24d46d)&&(_0x24d46d=this['_model']['createRange'](_0x24d46d['end'])),_0x24d46d))['filter'](_0x15bc67=>'$graveyard'!==_0x15bc67['root']['rootName']);if(_0x460105['length']<0x1)return;const _0x1c3596=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3496ea=>_0x112647['fromRange'](_0x3496ea));_0x4e5f3d['setSelection'](_0x460105);for(const _0x485e1c of this['_editor']['commands']['commands']())_0x485e1c['refresh']();_0x1ed82f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x393ff6,..._0x1ed82f);const _0x553739=_0x1c3596['filter'](_0x5c4af4=>'$graveyard'!=_0x5c4af4['root']['rootName']);_0x553739['length']>0x0&&_0x4e5f3d['setSelection'](_0x553739);for(const _0x5bc07f of _0x1c3596)_0x5bc07f['detach']();});},_0x5b2b65=(_0xb3dd12,_0x1cbcd4)=>0x1==_0xb3dd12['length']&&0x1==_0x1cbcd4['length']&&_0xb3dd12[0x0]['end']['isEqual'](_0x1cbcd4[0x0]['start']),_0x3f394c=(_0x52c77a,_0x1d0792,_0x3b2096,_0x41da7f)=>Wt(_0x52c77a,_0x1d0792,_0x3b2096,_0x41da7f)?[_0x52c77a,_0x1d0792]:Wt(_0x1d0792,_0x52c77a,_0x41da7f,_0x3b2096)?[_0x1d0792,_0x52c77a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4b65a6),this['_defaultCallbacks']['set']('insertion:discard',_0x4027b3),this['_defaultCallbacks']['set']('insertion:join',_0x5b2b65),this['_defaultCallbacks']['set']('insertion:chain',_0x3f394c),this['_defaultCallbacks']['set']('deletion:accept',_0x4027b3),this['_defaultCallbacks']['set']('deletion:discard',_0x4b65a6),this['_defaultCallbacks']['set']('deletion:join',_0x5b2b65),this['_defaultCallbacks']['set']('deletion:chain',_0x3f394c),this['_defaultCallbacks']['set']('formatInline:accept',_0x2025bb),this['_defaultCallbacks']['set']('formatInline:discard',_0x4b65a6),this['_defaultCallbacks']['set']('formatInline:join',_0x5b2b65),this['_defaultCallbacks']['set']('formatInline:chain',_0x4b65a6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2025bb),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4b65a6),this['_defaultCallbacks']['set']('formatBlock:join',_0x5b2b65),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4b65a6),this['_defaultCallbacks']['set']('attribute:accept',_0x4b65a6),this['_defaultCallbacks']['set']('attribute:discard',(_0x3c88bf,_0x56fead)=>{if(!_0x56fead)return;const _0x453796=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3910ef=>{if(_0x56fead['key']==u)for(const _0x407fd5 of _0x3c88bf){const _0x108449=_0x407fd5['start']['nodeAfter'],_0x179dd6=_0x56fead['oldValue'];_0x3910ef['rename'](_0x108449,_0x179dd6);}else{if(_0x453796['_isBlockAttribute'](_0x56fead['key'])){for(const _0x30bbcf of _0x3c88bf)void 0x0!==_0x56fead['oldValue']?_0x3910ef['setAttribute'](_0x56fead['key'],_0x56fead['oldValue'],_0x30bbcf['start']['nodeAfter']):_0x3910ef['removeAttribute'](_0x56fead['key'],_0x30bbcf['start']['nodeAfter']);}else{for(const _0x34efa9 of _0x3c88bf)_0x56fead['oldValue']?_0x3910ef['setAttribute'](_0x56fead['key'],_0x56fead['oldValue'],_0x34efa9):_0x3910ef['removeAttribute'](_0x56fead['key'],_0x34efa9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5b2b65);}}function Gt(_0x1b34cb,_0x2fc4ff,_0x31cd9e){for(const _0x5b2d02 of _0x2fc4ff['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5b2d02['root']==_0x5b2d02)return!0x1;if(!_0x31cd9e['containsItem'](_0x5b2d02))return!0x1;if(_0x1b34cb['isObject'](_0x5b2d02)||_0x1b34cb['isLimit'](_0x5b2d02))return!0x0;}return!0x1;}function Lt(_0x3c7c11){return _0x3c7c11['end']['parent']==_0x3c7c11['start']['nodeAfter']&&_0x3c7c11['end']['isAtStart'];}function Jt(_0x3b6607,_0x2541fb,_0x33bbc1,_0x5c6403){const _0x2af220=_0x2ae23f=>!_0x2ae23f['item']['is']('$textProxy')&&!_0x5c6403['isObject'](_0x2ae23f['item']),_0x3313e9=_0x3b6607['start']['getLastMatchingPosition'](_0x2af220),_0x2d85ba=_0x3b6607['end']['getLastMatchingPosition'](_0x2af220,{'direction':'backward'});return(!_0x3b6607['start']['isEqual'](_0x3313e9)||!_0x3b6607['end']['isEqual'](_0x2d85ba))&&(_0x3313e9['isBefore'](_0x2d85ba)?_0x33bbc1['updateMarker'](_0x2541fb,{'range':_0x33bbc1['createRange'](_0x3313e9,_0x2d85ba)}):_0x33bbc1['removeMarker'](_0x2541fb),!0x0);}function Kt(_0x5aaeba){return _0x2455b2(_0x5aaeba);}function Ht(_0x53f485){const _0x424f4f=_0x53f485['start']['nodeAfter'];return _0x424f4f&&_0x424f4f['is']('element');}function qt(_0x2860ad,_0xbfb26a){return null==_0x2860ad['end']['nodeBefore']&&_0x2860ad['end']['parent']==_0x2860ad['start']['nodeAfter']?zt(_0x2860ad['start']['nodeAfter'],_0xbfb26a):_0x2860ad;}function zt(_0x2fa1de,_0x2dc052){const _0xf4ccbf=_0x2dc052['schema']['isObject'](_0x2fa1de)||_0x2dc052['schema']['isSelectable'](_0x2fa1de);return _0x2dc052['createRange'](_0x2dc052['createPositionAt'](_0x2fa1de,'before'),_0xf4ccbf?_0x2dc052['createPositionAfter'](_0x2fa1de):_0x2dc052['createPositionAt'](_0x2fa1de,'end'));}function Wt(_0x280227,_0x1b6be0,_0x529e7c,_0x69d696){return!!Qt(_0x280227,_0x1b6be0)&&_0x529e7c['end']['isEqual'](_0x69d696['start']);}function Qt(_0x19a882,_0x552c88){if(!_0x19a882['_isDataLoaded']||!_0x552c88['_isDataLoaded'])return!0x1;const _0x40325a=new Set(Object['keys'](_0x19a882['attributes'])),_0x1fc2d3=new Set(Object['keys'](_0x552c88['attributes']));if(_0x40325a['delete']('groupId'),_0x1fc2d3['delete']('groupId'),0x0==_0x40325a['size']&&0x0==_0x1fc2d3['size'])return!0x0;if(_0x40325a['size']!=_0x1fc2d3['size'])return!0x1;const _0xbe4815={..._0x19a882['attributes']},_0x451719={..._0x552c88['attributes']};return delete _0xbe4815['groupId'],delete _0x451719['groupId'],JSON['stringify'](_0xbe4815)==JSON['stringify'](_0x451719);}function Xt(_0x2fbe1e,_0x58fb93){const _0x1ccb8a=Yt(_0x2fbe1e['attributes']),_0x432325=Yt(_0x58fb93);if(!_0x2fbe1e['_isDataLoaded'])return!0x1;for(const _0x53c0e3 of Object['keys'](_0x432325))if(!_0x3e9ffc(_0x1ccb8a[_0x53c0e3],_0x432325[_0x53c0e3]))return!0x1;return!0x0;}function Yt(_0x2e470d){const _0x2f30dc=Object['assign']({},_0x2e470d);return delete _0x2f30dc['skipNestingCheck'],delete _0x2f30dc['tablePasteChainId'],_0x2f30dc;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x2ec9e0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x297d2a,_0x497186,_0x198985,_0x49fa14){super(),this['model']=_0x497186,this['view']=_0x198985,this['commentThreadController']=_0x49fa14,this['_editor']=_0x297d2a,this['_acceptCommand']=_0x297d2a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x297d2a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x296f3d,_0x4de0ac)=>_0x296f3d||_0x4de0ac),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5eb214=>_0x5eb214&&this['_editor']['model']['canEditAt'](_0x497186['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x56cde3=>_0x56cde3&&this['_editor']['model']['canEditAt'](_0x497186['getRanges']())),this['_pendingAction']=null,_0x198985['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x198985,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x198985,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x198985,'change:isDirty',()=>{_0x198985['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 _0x1435b3=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1435b3);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x57a473{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1884fa,_0x4dc0c8,_0xd2ebc1,_0x17199b){super(_0x1884fa),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x36c758(_0x1884fa,c(_0x1884fa,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4dc0c8['authoredAt']),this['bind']('authoredAt')['to'](_0x4dc0c8),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',_0x4dc0c8,'authoredAt',this,'descriptionParts',(_0x1dfc23,_0x97d2f,_0x294668)=>{const _0x174413=_0x294668['map'](_0x4180c4=>ls(_0x4180c4['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1dfc23-0x1,_0x4dc0c8['author']['name'],_0x97d2f?_0x17199b['formatDateTime'](_0x97d2f):'',new DOMParser()['parseFromString'](_0x174413,'text/html')['body']['textContent']]);}),this['focusables']=new _0x38f3f2(),this['focusTracker']=new _0x5ca9fb(),this['keystrokes']=new _0x21432a(),this['focusCycler']=new _0x1c4f3e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xea3f86=>_0xea3f86['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4dc0c8,this['_localUser']=_0xd2ebc1,this['_config']=_0x17199b,_0x17199b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x93c7f5(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2a05d3}=this['_config'];this['commentsListView']=new _0x2a05d3(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',_0x665494=>_0x665494+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2d3201,_0x2edbe0)=>_0x2d3201||!!_0x2edbe0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5ba31d}=this['_config'],_0x9c849e=new _0x5ba31d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x20117e=_0x9c849e['commentInputView'];return _0x9c849e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x20117e,'value',(_0x39e4af,_0x646b65,_0x101161)=>!!_0x101161||_0x39e4af&&!_0x646b65),_0x20117e['on']('submit',(_0x3faa45,_0x10762d)=>{this['fire']('addComment',_0x10762d),_0x20117e['editor']['setData']('');}),_0x20117e['on']('cancel',()=>this['focus']()),_0x20117e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x9c849e;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x158aaf,_0x170ba2,_0x4ab5e2,_0x2b5280){super(_0x158aaf,_0x170ba2,_0x4ab5e2,_0x2b5280),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1bd1cf=>_0x1bd1cf&&_0x1bd1cf[0x0]?_0x1bd1cf[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5c879a,_0x3682ff)=>{let _0x24fee6='';for(const _0x87cd7c of _0x5c879a)_0x24fee6+='<p>'+ls(_0x87cd7c['content'],_0x87cd7c['color'])+'</p>';return _0x3682ff?_0x24fee6:ti(_0x24fee6,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2b5280['SuggestionView'](_0x158aaf,_0x170ba2,{'formatDateTime':_0x2b5280['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 _0x36b92b=this['bindTemplate'],_0x5ce10f=[this['suggestionView']];return this['commentsListView']&&_0x5ce10f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5ce10f['push'](this['commentThreadInputView']),_0x5ce10f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x36b92b['if']('isActive','ck-suggestion-wrapper--active'),_0x36b92b['to']('type',_0x4db349=>'ck-suggestion-'+_0x4db349),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':_0x36b92b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5ce10f};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x57a473{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x255324,_0x1437e3,_0x3f31b9){super(_0x255324),this['_model']=_0x1437e3,this['_config']=_0x3f31b9,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1437e3),this['acceptButton']=this['_createButton'](c(_0x255324,'Accept\x20suggestion'),_0x4e5e81,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x255324,'Discard\x20suggestion'),_0x58d14c,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5130aa(_0x255324,_0x1437e3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x38f3f2([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5ca9fb(),this['keystrokes']=new _0x21432a(),this['focusCycler']=new _0x1c4f3e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x172e4a=>_0x172e4a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5b9715=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5b9715['innerHTML']=this['description'],this['on']('change:description',(_0x15f500,_0x53dd1d,_0x15f1a4)=>{_0x5b9715['innerHTML']=_0x15f1a4;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x162734=this['bindTemplate'],_0x10e4fc=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x162734['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x162734['to']('authoredAt',_0x2eb0d1=>this['_config']['formatDateTime'](_0x2eb0d1))}]}]},{'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']&&_0x10e4fc['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':_0x10e4fc}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4fa84b,_0x4135fb,_0x5cede0,_0x21fed2,_0x44ca0f){const _0x4eece2=new _0x35a2f9(this['locale']);return _0x4eece2['set']({'label':_0x4fa84b,'icon':_0x4135fb,'tooltip':!0x0,'tooltipPosition':_0x44ca0f}),_0x4eece2['extendTemplate']({'attributes':{'class':_0x5cede0}}),_0x4eece2['on']('execute',()=>{this['fire'](_0x21fed2,this['_model']['id']);}),_0x4eece2;}['_setupKeyboardNavigation'](){const _0x33b5d2=this['element'];this['keystrokes']['listenTo'](_0x33b5d2);for(const _0x91f95 of this['focusables'])this['focusTracker']['add'](_0x91f95['element']),this['keystrokes']['listenTo'](_0x91f95['element']);this['keystrokes']['set']('enter',(_0x234e7c,_0x5838f2)=>{_0x33b5d2===_0x234e7c['target']&&(this['focusCycler']['focusFirst'](),_0x5838f2());}),this['keystrokes']['set']('esc',(_0x4834e7,_0x1819e6)=>{_0x33b5d2!==_0x4834e7['target']&&(this['focus'](),_0x1819e6());});}}class d extends _0x1667de{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xd58653,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12341d){super(_0x12341d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xcde075=this['editor']['config'];_0xcde075['define']('trackChanges.SuggestionThreadView',fe),_0xcde075['define']('trackChanges.SuggestionView',we),_0xcde075['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xcde075['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x106ad5,_0x52481b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xd85d4a,_0x3f698d]of this['_handleControllerBuffer']){const _0x511bce=this['_suggestionToController']['has'](_0xd85d4a);_0x511bce||_0x3f698d?_0x511bce&&_0x3f698d&&this['_destroyController'](_0xd85d4a):this['_initializeController'](_0xd85d4a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x106ad5,_0x52481b);}['init'](){const _0x3ece3d=this['editor'],_0x227e83=_0x3ece3d['plugins']['get']('TrackChangesEditing'),_0x4ad711=_0x3ece3d['plugins']['get']('Annotations'),_0x35c72a=_0x3ece3d['plugins']['get']('EditorAnnotations'),_0x3cbc40=_0x3ece3d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x35c72a['addSourceCollector'](()=>{const _0x585a57=[];for(const [_0x378f3f,_0x1c21a4]of Array['from'](this['_suggestionToController'])){const _0x2a78e4=_0x378f3f['getAllAdjacentSuggestions'](),_0x4aceb5=[];for(const _0x215d07 of _0x2a78e4){if(!_0x215d07['isInContent'])continue;if(_0x215d07['isMultiRange']){_0x4aceb5['push'](..._0x215d07['getRanges']());continue;}const _0x54df72=_0x215d07['getFirstRange']();if(_0x4aceb5['length']>0x0){const _0xaa0579=_0x4aceb5[0x0]['getJoined'](_0x54df72);if(_0xaa0579){_0x4aceb5[0x0]=_0xaa0579;continue;}}_0x4aceb5['push'](_0x54df72);}_0x585a57['push']([_0x1c21a4['view'],_0x4aceb5]);}return _0x585a57;}),this['listenTo'](_0x227e83,'suggestionLoaded',(_0x8ddef5,_0x21b456)=>{this['listenTo'](_0x21b456,'change:previous',(_0x215327,_0x4dadf6,_0x920894,_0xa26bec)=>{_0x21b456['isInContent']&&(null==_0x920894?(this['_updateController'](_0xa26bec['head']),this['_handleSuggestionControllerDelayed'](_0x21b456,!0x1)):(this['_updateController'](_0x920894['head']),null==_0xa26bec&&this['_handleSuggestionControllerDelayed'](_0x21b456,!0x0)));}),null!==_0x21b456['previous']?this['_updateController'](_0x21b456['head']):this['_handleSuggestionControllerDelayed'](_0x21b456,!0x1);}),this['listenTo'](_0x227e83,'suggestionUnloaded',(_0x8eb93c,_0x19fcc7,_0x3eed84)=>{this['stopListening'](_0x19fcc7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x19fcc7),this['_suggestionToController']['has'](_0x19fcc7)&&this['_destroyController'](_0x19fcc7),_0x3eed84&&this['_updateController'](_0x3eed84['head']);}),this['listenTo'](_0x227e83,'suggestionChanged',(_0x4eaf1e,_0x57f80a)=>{this['_updateController'](_0x57f80a);}),this['listenTo'](_0x4ad711,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3cbc40,'addComment',(_0xd9e817,{threadId:_0x122cc6,isFromAdapter:_0x2ece84})=>{if(_0x2ece84||!_0x227e83['hasSuggestion'](_0x122cc6))return;const _0x147306=_0x227e83['getSuggestion'](_0x122cc6);this['_suggestionToController']['get'](_0x147306)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x363ef3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x462af1;for(const _0x3076ab in _0x363ef3){const _0x2d3597=_0x3076ab,_0x584862=_0x363ef3[_0x2d3597];if('trackChangesLicenseKeyValid'==_0x584862||'trackChangesLicenseKeyInvalid'==_0x584862||'trackChangesLicenseKeyExpired'==_0x584862||'trackChangesLicenseKeyDomainLimit'==_0x584862||'trackChangesLicenseKeyNotAllowed'==_0x584862||'trackChangesLicenseKeyEvaluationLimit'==_0x584862||'trackChangesLicenseKeyTrialLimit'==_0x584862||'trackChangesLicenseKeyUsageLimit'==_0x584862){delete _0x363ef3[_0x2d3597],_0x462af1=_0x584862,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x462af1&&_0x363ef3['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x462af1&&_0x363ef3['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x462af1&&_0x363ef3['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x462af1&&_0x363ef3['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x462af1&&_0x363ef3['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x462af1&&_0x363ef3['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x462af1&&_0x363ef3['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2c2c5d=this['editor']['plugins']['get']('Annotations'),_0x411251=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2066b0=Array['from'](_0x2c2c5d['activeAnnotations'],_0x526dcb=>_0x526dcb['innerView'])['filter'](_0x47ca8e=>this['_viewToController']['has'](_0x47ca8e)),_0x36f88e=[];for(const _0x167496 of _0x2066b0){const _0x3279c8=this['_viewToController']['get'](_0x167496)['model']['getAllAdjacentSuggestions']();_0x36f88e['push'](..._0x3279c8['reduce']((_0x3621b7,_0x31afa3)=>[..._0x3621b7,..._0x31afa3['getMarkerNames']()],[]));}_0x411251['activeMarkers']=_0x36f88e;}['_addUIComponentsToFactory'](){const _0x373597=this['editor'],_0x16c3c7=_0x373597['locale'],_0x1d8e74=c(_0x16c3c7,'Track\x20changes'),_0x3b862c=new _0xfd1210([{'type':'switchbutton','model':new _0x2640de({'withText':!0x0,'isToggleable':!0x0,'label':_0x1d8e74,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2640de({'withText':!0x0,'label':c(_0x16c3c7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2640de({'withText':!0x0,'label':c(_0x16c3c7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2640de({'withText':!0x0,'label':c(_0x16c3c7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2640de({'withText':!0x0,'label':c(_0x16c3c7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x373597['plugins']['has']('TrackChangesPreview')&&_0x3b862c['addMany']([{'type':'separator'},{'type':'button','model':new _0x2640de({'withText':!0x0,'label':c(_0x16c3c7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5ea3a9 of _0x3b862c)if(ke(_0x5ea3a9)){const _0xb1f086=_0x373597['commands']['get'](_0x5ea3a9['model']['commandName']);_0x5ea3a9['model']['bind']('isOn','isEnabled')['to'](_0xb1f086,'value','isEnabled');}_0x373597['ui']['componentFactory']['add']('trackChanges',_0x4f2e7f=>this['_createToolbarButton'](_0x4f2e7f,_0x3b862c,_0x1d8e74)),_0x373597['ui']['componentFactory']['add']('menuBar:trackChanges',_0x30bc95=>this['_createMenuBarMenu'](_0x30bc95,_0x3b862c,_0x1d8e74));}['_createToolbarButton'](_0x4163b7,_0x1ab1ff,_0x102918){const _0x4872a7=_0x33a6ac(_0x4163b7,_0x40bfed),_0x38418f=this['editor']['commands']['get']('trackChanges');_0x4872a7['buttonView']['set']({'tooltip':_0x102918,'label':_0x102918,'icon':_0x35e69d}),_0x4872a7['buttonView']['bind']('isOn')['to'](_0x38418f,'value'),_0x4872a7['buttonView']['on']('execute',()=>{_0x38418f['execute'](),this['editor']['editing']['view']['focus']();}),_0x3d4d36(_0x4872a7,_0x1ab1ff,{'role':'menu'});const _0x44741b=[];for(const _0x3069d6 of _0x1ab1ff)ke(_0x3069d6)&&_0x44741b['push'](this['editor']['commands']['get'](_0x3069d6['model']['commandName']));const _0x3f2c80=_0x4872a7['buttonView'];return _0x3f2c80['actionView']['unbind']('isEnabled'),_0x3f2c80['arrowView']['unbind']('isEnabled'),_0x3f2c80['actionView']['bind']('isEnabled')['to'](_0x38418f,'isEnabled'),_0x3f2c80['arrowView']['bind']('isEnabled')['toMany'](_0x44741b,'isEnabled',(..._0x3bb3ac)=>_0x3bb3ac['some'](_0x5cc5ef=>_0x5cc5ef)),_0x4872a7['on']('execute',_0x533882=>{this['editor']['execute'](_0x533882['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4872a7;}['_createMenuBarMenu'](_0xaaaa87,_0x4d5b7a,_0x2494d1){const _0x20f602=new _0x4a6465(_0xaaaa87),_0x207f92=this['editor']['commands']['get']('trackChanges');_0x20f602['buttonView']['set']({'label':_0x2494d1,'icon':_0x35e69d});const _0x4d0142=new _0x2c851c(_0xaaaa87);for(const _0x4ce725 of _0x4d5b7a){if('separator'==_0x4ce725['type']){_0x4d0142['items']['add'](new _0x545f52(_0xaaaa87));continue;}const _0x238923=new _0x1b25ed(_0xaaaa87,_0x20f602),_0x2255bf=new _0x4af394(_0xaaaa87),_0x1a4a25=_0x4ce725['model'];_0x2255bf['bind'](...Object['keys'](_0x1a4a25))['to'](_0x1a4a25),_0x2255bf['delegate']('execute')['to'](_0x20f602),_0x2255bf['on']('execute',()=>{this['editor']['execute'](_0x1a4a25['commandName']),this['editor']['editing']['view']['focus']();}),_0x238923['children']['add'](_0x2255bf),_0x4d0142['items']['add'](_0x238923);}return _0x20f602['bind']('isEnabled')['to'](_0x207f92,'isEnabled'),_0x20f602['panelView']['children']['add'](_0x4d0142),_0x20f602;}['_initializeController'](_0x1a81a4){const _0x58b285=this['editor'],_0x4c0bae=_0x58b285['config'],_0x16e087=_0x58b285['plugins']['get']('Annotations'),_0x4736d9=_0x58b285['plugins']['get']('CommentsRepository'),_0x38a9ce=_0x58b285['plugins']['get']('EditorAnnotations'),_0x46c042=_0x58b285['plugins']['get'](_0xd58653)['me'],_0x480e50=_0x4c0bae['get']('trackChanges')['SuggestionThreadView'],_0x5c35cc=_0x4c0bae['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x59ec35,CommentThreadInputView:_0xf40898}=_0x58b285['plugins']['get']('CommentsUI');let _0xf79259,_0x236aba,_0xef7a5f;this['_annotationViews']['has'](_0x1a81a4['id'])?(_0x236aba=this['_annotationViews']['get'](_0x1a81a4['id']),_0xf79259=_0x236aba['mainView']):(_0xf79259=new _0x480e50(_0x58b285['locale'],_0x1a81a4,_0x46c042,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4c0bae['get']('comments.editorConfig'),'licenseKey':_0x4c0bae['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4c0bae['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4c0bae['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4c0bae['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x34dfb2(_0x4c0bae['get']('locale'),_0x58b285['locale']),'CommentView':_0x4c0bae['get']('comments')['CommentView'],'CommentsListView':_0x59ec35,'CommentThreadInputView':_0xf40898,'SuggestionView':_0x5c35cc}),_0xf79259['suggestionView']['acceptButton']['on']('execute',()=>{_0x58b285['editing']['view']['focus']();}),_0xf79259['suggestionView']['discardButton']['on']('execute',()=>{_0x58b285['editing']['view']['focus']();}),_0x236aba=_0x16e087['createAnnotationView'](this['editor']['locale'],_0xf79259),_0x236aba['bind']('isDirty')['to'](_0xf79259,'isDirty'),_0x236aba['bind']('length')['to'](_0xf79259),_0x236aba['bind']('type')['to'](_0xf79259,'type',_0xfc585a=>'suggestion-'+_0xfc585a),_0xf79259['on']('escape',()=>{_0xef7a5f['fire']('escape');}),this['_annotationViews']['set'](_0x1a81a4['id'],_0x236aba));const _0x1b0c92=_0x4736d9['createCommentThreadController'](_0x1a81a4['commentThread'],_0xf79259),_0x62770c=new pe(_0x58b285,_0x1a81a4,_0xf79259,_0x1b0c92),_0x401a11=_0x1a81a4['getAllAdjacentSuggestions']()['filter'](_0x458d7a=>_0x458d7a['isInContent']);_0xf79259['descriptionParts']=_0x58b285['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x401a11),this['_suggestionToController']['set'](_0x1a81a4,_0x62770c),this['_viewToController']['set'](_0xf79259,_0x62770c),_0xef7a5f=_0x16e087['createAnnotation']({'view':_0x236aba,'target':()=>{const _0x25d149=[],_0x51243c=_0x1a81a4['getAllAdjacentSuggestions']()['filter'](_0xb6f4ef=>_0xb6f4ef['isInContent']);for(const _0x9c88db of _0x51243c)_0x25d149['push'](..._0x9c88db['getMarkers']());return _0x468f08(_0x58b285['editing'],_0x25d149);},'type':()=>'suggestion-'+_0x62770c['view']['type']}),_0x4736d9['_bindAnnotationToEditors'](_0xf79259,_0xef7a5f),_0x16e087['add'](_0xef7a5f),_0x38a9ce['registerAnnotation'](_0xef7a5f);}['_destroyController'](_0x218399){const _0x4b0847=this['editor']['plugins']['get']('CommentsRepository'),_0x511f04=this['editor']['plugins']['get']('Annotations'),_0x315fb4=this['_suggestionToController']['get'](_0x218399),_0x4c0179=_0x315fb4['view'],_0x2f2201=_0x511f04['getByInnerView'](_0x4c0179);_0x4b0847['_unbindEditors'](_0x4c0179),_0x2f2201&&_0x511f04['remove'](_0x2f2201),this['_suggestionToController']['delete'](_0x218399),this['_viewToController']['delete'](_0x4c0179),_0x315fb4['destroy']();}['_updateController'](_0x550f0c){if(!_0x550f0c['isInContent']||!this['_suggestionToController']['has'](_0x550f0c))return;const _0x5910dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e5d15=this['_suggestionToController']['get'](_0x550f0c),_0x5506ab=_0x550f0c['getAllAdjacentSuggestions']();_0x2e5d15['view']['descriptionParts']=_0x5910dd['descriptionFactory']['getDescriptions'](_0x5506ab);}['destroy'](){for(const _0x399edc of this['_suggestionToController']['keys']())this['_destroyController'](_0x399edc);for(const _0x237399 of this['_annotationViews']['values']())_0x237399['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x15315a){return'model'in _0x15315a;}class k extends _0x1667de{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x51a013){this['editor']['plugins']['get'](p)['adapter']=_0x51a013;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x50828b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x50828b);}['getSuggestions']({skipNotAttached:_0x1bd307=!0x1,toJSON:_0x184a07=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1bd307,'toJSON':_0x184a07});}['getSuggestion'](_0x57aa3c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x57aa3c);}}const w=['Pagination'];class T extends _0x1667de{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x47c21c=this['editor'];if(_0x47c21c['config']['define']('trackChangesData.editorCreator',_0x15fd58=>{const _0x549b96=_0x47c21c['model']['document']['getRootNames']()['reduce']((_0x1663b6,_0x4b81b1)=>(_0x1663b6[_0x4b81b1]='',_0x1663b6),{});return _0x47c21c['constructor']['create'](_0x549b96,_0x15fd58);}),'function'!=typeof _0x47c21c['config']['get']('trackChangesData')['editorCreator'])throw new _0x2ca3b1('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x47fdde){return N(this['editor'],!0x0,_0x47fdde);}['getDataWithDiscardedSuggestions'](_0x1a56a6){return N(this['editor'],!0x1,_0x1a56a6);}}class D extends _0x1667de{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2bbf14){function _0x26ce06(_0x1f46dc){return _0x1f46dc['map'](_0x56900c=>String['fromCharCode'](_0x56900c))['join']('');}super(_0x2bbf14),this['result']='end',_0x2bbf14[_0x26ce06([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26ce06([0x76,0x69,0x65,0x77])][_0x26ce06([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26ce06([0x61,0x75,0x74,0x6f]),_0x2bbf14[_0x26ce06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x26ce06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26ce06([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x26ce06([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x26ce06([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 Ge(_0x5d1669){return void 0x0!==_0x5d1669['getRootsAttributes'];}async function N(_0x23f9fb,_0xa21857,_0x34b56e){const _0x29bc1b=_0x20caf3(_0x23f9fb,w);_0x29bc1b['plugins']['push'](p,D),_0x29bc1b['rootsAttributes']=Ge(_0x23f9fb)?_0x23f9fb['getRootsAttributes']():void 0x0;const _0x296565=document['createDocumentFragment'](),_0x5bad59=_0x23f9fb['config']['get']('trackChangesData')['editorCreator'],_0x5769f4=await _0x5bad59(_0x29bc1b,()=>function(_0x39be13){const _0x31329f=document['createElement']('div');return _0x39be13['appendChild'](_0x31329f),_0x31329f;}(_0x296565));!function(_0x743d1,_0x19670c){const _0xb038c9=_0x743d1['model']['document']['getRootNames']()['reduce']((_0x19abf2,_0x152799)=>(_0x19abf2[_0x152799]=_0x743d1['data']['get']({'rootName':_0x152799}),_0x19abf2),{}),_0x2852b0=_0x743d1['plugins']['get']('Users')['users']['map'](_0x5674a1=>({'id':_0x5674a1['id'],'name':_0x5674a1['name']})),_0x3bb70d=_0x743d1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4e5241=_0x743d1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x362776=_0x19670c['plugins']['get']('Users'),_0x38fd5d=_0x19670c['plugins']['get']('TrackChangesEditing'),_0x10c388=_0x19670c['plugins']['get']('CommentsRepository');for(const _0x29f974 of _0x10c388['getCommentThreads']())_0x29f974['remove']();for(const _0x23cafd of _0x2852b0)_0x362776['getUser'](_0x23cafd['id'])||_0x362776['addUser'](_0x23cafd);_0x362776['me']||_0x362776['useAnonymousUser']();for(const _0x45b754 of _0x4e5241)_0x10c388['addCommentThread'](_0x45b754);for(const _0x1bbdb5 of _0x3bb70d)_0x38fd5d['addSuggestionData'](_0x1bbdb5);_0x19670c['data']['set'](_0xb038c9);}(_0x23f9fb,_0x5769f4),_0x5769f4['execute'](_0xa21857?'acceptAllSuggestions':'discardAllSuggestions');const _0x2d9194=Ge(_0x5769f4)?_0x5769f4['getFullData'](_0x34b56e):_0x5769f4['data']['get'](_0x34b56e);return await _0x5769f4['destroy'](),_0x2d9194;}class Me extends _0x57a473{['options'];constructor(_0x2e3b3b,_0x306dcb){super(_0x2e3b3b),this['options']=_0x306dcb,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x457344,_0x549359){if(!this['element'])return;const _0xbe2549=[];for(const [_0x30c81d,_0x3f1274]of _0x457344){const _0x484b6d=document['createElement']('div');_0x484b6d['setAttribute']('data-ck-root-name',_0x30c81d),_0x484b6d['className']=_0x3f1274['classes']+'\x20ck-track-changes-preview__root-container',_0x484b6d['innerHTML']=_0x3f1274['content'],_0xbe2549['push'](_0x484b6d);}_0x549359(this['element'],_0xbe2549),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x231de4{constructor(_0x45f907){super(_0x45f907),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2572ae=this['editor'],_0xc9ae1e=_0x2572ae['locale'],_0x75f67d=_0x2572ae['plugins']['get']('Dialog');let _0x580cf4;const _0x293997=function(_0x367a07){const _0x462168={};if('editables'in _0x367a07['ui']['view']){for(const [_0x34d104,_0x5ba0ed]of Object['entries'](_0x367a07['ui']['view']['editables']))_0x462168[_0x34d104]=_0x5ba0ed['element'];}else _0x462168[_0x367a07['model']['document']['getRootNames']()[0x0]]=_0x367a07['ui']['view']['editable']['element'];return _0x462168;}(_0x2572ae),_0x7c3dc1=function(_0x37eb1f){let _0x3aab7e=0x0;for(const _0x6faf6d of Object['values'](_0x37eb1f))_0x3aab7e=Math['max'](_0x3aab7e,_0x6faf6d['getBoundingClientRect']()['width']);let _0x24feab=0x0;for(const _0x398ab3 of Object['values'](_0x37eb1f))_0x24feab+=_0x398ab3['getBoundingClientRect']()['height'];const _0x49b499=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2b9459=Math['min'](_0x24feab,_0x49b499);return{'width':_0x3aab7e,'height':_0x2b9459};}(_0x293997);_0x75f67d['show']({'id':'finalContentPreview','title':c(_0xc9ae1e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xc9ae1e,{'dialogRects':_0x7c3dc1}),'onHide':()=>{_0x580cf4['detachFromDom']();},'onShow':()=>{_0x2572ae['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4bdc87=>{const _0x3df9bc=this['_standarizeRootsData'](_0x4bdc87,_0x2572ae,_0x293997);_0x75f67d['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3df9bc,_0x2572ae['config']['get']('trackChanges.preview.renderFunction'));}),_0x580cf4=new _0x348679(_0xc9ae1e,[_0x75f67d['view']]),_0x580cf4['attachToDom'](),_0x580cf4['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2572ae['once']('destroy',()=>{_0x580cf4['detachFromDom']();});const _0x610123=_0x75f67d['view']['headerView']['class'];_0x75f67d['view']['headerView']['class']=_0x610123?_0x610123+'\x20ck-reset_all':'ck-reset_all',_0x75f67d['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x75f67d['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xf36c98=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2c5dec=_0xf36c98['previewMode'],_0x4e8dcb={};if('$labels'===_0x2c5dec){for(const _0x25f20e of _0xf36c98['getMergeFieldsIds']())_0x4e8dcb[_0x25f20e]=_0xf36c98['getLabel'](_0x25f20e)||_0x25f20e;}else{const _0x1fb4b6='$defaultValues'===_0x2c5dec?_0xf36c98['getDefaultValues']():_0xf36c98['getDataSetValues'](_0x2c5dec,!0x0);for(const _0x37f81e of Object['entries'](_0x1fb4b6)){const [_0x264b85,_0x3b472c]=_0x37f81e;_0x4e8dcb[_0x264b85]=null!==_0x3b472c?_0x3b472c:_0xf36c98['getLabel'](_0x264b85)||_0x264b85;}}return{'mergeFieldsData':_0x4e8dcb};}['_standarizeRootsData'](_0x2338bf,_0x36b72b,_0x2392ec){let _0x16cd7f;if('string'==typeof _0x2338bf){const _0x48e814=_0x36b72b['model']['document']['getRootNames']()[0x0];_0x16cd7f={[_0x48e814]:_0x2338bf};}else _0x16cd7f=_0x2338bf;const _0x3840b7=this['_fixMediaEmbeds'](_0x16cd7f,_0x36b72b),_0x470162=function(_0x57999b,_0x27a2de){for(const [_0xf1fcb9,_0x38e0ac]of _0x57999b)_0x38e0ac['classes']=_0x27a2de[_0xf1fcb9]['classList']['value']['replace']('ck-focused','');return _0x57999b;}(this['_sortRoots'](_0x36b72b)['reduce']((_0x5d1e94,_0x1fc2d7)=>(_0x5d1e94['push']([_0x1fc2d7,{'content':_0x3840b7[_0x1fc2d7],'classes':''}]),_0x5d1e94),[]),_0x2392ec);return _0x470162;}['_fixMediaEmbeds'](_0x22e4d3,_0x38c097){if(!_0x38c097['plugins']['has']('MediaEmbedEditing'))return _0x22e4d3;const _0x442e68=_0x38c097['plugins']['get']('MediaEmbedEditing');for(const [_0x13a5aa,_0x59ea0f]of Object['entries'](_0x22e4d3)){const _0x3460f9=document['createElement']('div');_0x3460f9['innerHTML']=_0x59ea0f,(_0x3460f9['querySelectorAll']('figure.media')['forEach'](_0x1e49c1=>{const _0x5ce7b7=_0x1e49c1['querySelector']('oembed');if(_0x5ce7b7){const _0xb415f8=_0x5ce7b7['getAttribute']('url');if(_0xb415f8){const _0x44acb5=_0x442e68['registry']['getMediaViewElement'](new _0xd34c45(_0x38c097['editing']['view']['document']),_0xb415f8,{'elementName':'','renderForEditingView':!0x0}),_0x4ecba1=document['createElement']('div');_0x4ecba1['classList']['add']('ck-media__wrapper'),_0x44acb5['render'](_0x4ecba1,_0x38c097['editing']['view']['domConverter']),_0x5ce7b7['replaceWith'](_0x4ecba1);}}}),_0x22e4d3[_0x13a5aa]=_0x3460f9['innerHTML']);}return _0x22e4d3;}['_sortRoots'](_0x52805d){if(!function(_0x4697ea){return void 0x0!==_0x4697ea['getRootsAttributes'];}(_0x52805d))return _0x52805d['model']['document']['getRootNames']();const _0x4ce3cc=[],_0x1dc845=new Map();for(const _0x15d2ff of _0x52805d['model']['document']['getRootNames']()){const _0x2ff722=_0x52805d['editing']['view']['getDomRoot'](_0x15d2ff)['getClientRects']()['item'](0x0);_0x4ce3cc['push'](_0x15d2ff),_0x1dc845['set'](_0x15d2ff,_0x2ff722);}return _0x4ce3cc['sort']((_0x1a8f1b,_0x466b37)=>{const _0x196154=_0x1dc845['get'](_0x1a8f1b),_0x1d34c6=_0x1dc845['get'](_0x466b37);return _0x196154['y']-_0x1d34c6['y']||_0x196154['x']-_0x1d34c6['x'];}),_0x4ce3cc;}}class te extends _0x1667de{static get['requires'](){return[T,_0x128a63];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x383d3d){super(_0x383d3d),_0x383d3d['commands']['add']('previewFinalContent',new re(this['editor'])),_0x383d3d['config']['define']('trackChanges.preview.renderFunction',(_0x10d60b,_0x35339f)=>{for(const _0x381dee of _0x35339f)_0x10d60b['appendChild'](_0x381dee);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x5b0c44,Plugin as _0x55fa68,PendingActions as _0x49601d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x50045d,ObservableMixin as _0x36705e,uid as _0x5e3891,priorities as _0x2c6b22,insertToPriorityArray as _0xd6d196,logWarning as _0x2e7b4f,getEnvKeystrokeText as _0x34513e,FocusTracker as _0x791790,KeystrokeHandler as _0x3e2044,Collection as _0x173380}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1baade,IconCancel as _0x4bef77,IconTrackChanges as _0x368711}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x24a279,View as _0x16e147,ViewCollection as _0x505895,FocusCycler as _0x1bab99,ViewModel as _0x2e2fe1,createDropdown as _0xe5a2c0,SplitButtonView as _0x305cf4,addListToDropdown as _0x125b97,MenuBarMenuView as _0x109a0c,MenuBarMenuListView as _0x2e585f,ListSeparatorView as _0x298b31,MenuBarMenuListItemView as _0x3d01b7,MenuBarMenuListItemButtonView as _0x3bad57,BodyCollection as _0x58d2d9,Dialog as _0x16e211}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2aa14c,hashObject as _0x116cc7,surroundingMarkersDetector as _0x3dfa8a,FOCUS_ANNOTATION_KEYSTROKE as _0x16a039,AriaDescriptionView as _0x186e5b,setupThreadKeyboardNavigation as _0x51b150,trimHtml as ti,UserView as _0xdd5bd2,LateFocusButtonView as _0x4604b9,getDateTimeFormatter as _0x8c2a2e,getAllMarkersDomElementsSorted as _0x149208,sanitizeEditorConfig as _0x5b869d}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x6e72f7,LiveRange as _0x3932e8,LivePosition as _0x48085b,DowncastWriter as _0x24579b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3c936c,toWidget as _0x27b0d2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4df157,set as _0x535920,isEqual as _0x54a863,unset as _0x3ba914,omit as Ft}from'es-toolkit/compat';import{Delete as _0x60e2d4,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x496c38}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3f99e5}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5b0c44{['_enabledCommands'];constructor(_0x1882ac,_0x1abde6){super(_0x1882ac),this['_enabledCommands']=_0x1abde6,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 _0x472627 of this['editor']['commands']['commands']())_0x472627['affectsData']&&!this['_enabledCommands']['has'](_0x472627)&&_0x472627['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3cbba6 of this['editor']['commands']['commands']())_0x3cbba6['affectsData']&&!this['_enabledCommands']['has'](_0x3cbba6)&&_0x3cbba6['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x5b0c44{['_suggestions'];constructor(_0x2f2264,_0xc94891){super(_0x2f2264),this['_suggestions']=_0xc94891,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4e281f){const _0x233e2c=this['_suggestions']['get'](_0x4e281f);if(!_0x233e2c)throw new _0x50045d('track-changes-accept-suggestion-not-found',this);const _0x3bbbb0=_0x233e2c['getRanges']();this['editor']['model']['canEditAt'](_0x3bbbb0)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x233e2c);}}class R extends _0x5b0c44{['_suggestions'];constructor(_0x344f8d,_0x524f0e){super(_0x344f8d),this['_suggestions']=_0x524f0e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x495466){const _0x459f43=this['_suggestions']['get'](_0x495466);if(!_0x459f43)throw new _0x50045d('track-changes-discard-suggestion-not-found',this);const _0x30be0c=_0x459f43['getRanges']();this['editor']['model']['canEditAt'](_0x30be0c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x459f43);}}function ls(_0x397af9,_0xef92f7){let _0x140b93='';return _0x140b93+=_0x397af9['split']('*')['map']((_0x8ec5bb,_0x592ef4)=>_0x592ef4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x8ec5bb)+'</span>':nn(_0x8ec5bb))['join'](''),_0xef92f7&&(_0x140b93+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xef92f7['value']+'\x22\x20title=\x22'+_0xef92f7['title']+'\x22></span>'),_0x140b93;}function nn(_0x34a013){const _0x279d44=document['createElement']('span');return _0x279d44['innerText']=_0x34a013,_0x279d44['innerHTML'];}function ts(_0x58a735){return _0x58a735['sort']((_0x40ed3a,_0x5d91f4)=>'deletion'==_0x40ed3a['type']&&'deletion'!=_0x5d91f4['type']?-0x1:'deletion'!=_0x40ed3a['type']&&'deletion'==_0x5d91f4['type']?0x1:0x0);}function to(_0x2b8711,_0x489b3b){let _0xe986f7,_0x57346b=0x0;const _0x3fe465=[],_0x849aba=_0x489b3b['schema'];for(;_0x57346b<_0x2b8711['length'];){const _0x24de64=_0x2b8711[_0x57346b],_0x1275ad=_0x2b8711[_0x57346b+0x1];_0xe986f7||(_0xe986f7=_0x489b3b['createPositionBefore'](_0x24de64)),on(_0x489b3b,_0x24de64,_0x1275ad)||(_0x3fe465['push'](_0x489b3b['createRange'](_0xe986f7,_0x849aba['isObject'](_0x24de64)?_0x489b3b['createPositionAfter'](_0x24de64):_0x489b3b['createPositionAt'](_0x24de64,'end'))),_0xe986f7=null),_0x57346b++;}return _0x3fe465;}function on(_0x2d2d86,_0x1b7cc2,_0x55a5f2){if(!_0x55a5f2)return!0x1;const _0x42f337=_0x2d2d86['createPositionAfter'](_0x1b7cc2),_0x44f164=_0x2d2d86['createPositionBefore'](_0x55a5f2);return _0x42f337['isTouching'](_0x44f164);}function rs(_0x3da71e,_0x507199,_0x362dba){for(;_0x362dba['length'];){const _0x374609=_0x362dba['splice'](0x0,0x64);_0x3da71e['change'](()=>{for(const _0x451f55 of _0x374609)_0x451f55['isInContent']&&_0x507199['execute'](_0x451f55['id']);});}}class x extends _0x5b0c44{['_command'];['_suggestions'];constructor(_0x239de4,_0x3d992b,_0x3ecd4c){super(_0x239de4),this['_command']=_0x3d992b,this['_suggestions']=_0x3ecd4c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x460f1a=Array['from'](this['_suggestions']['values']())['some'](_0xd450d2=>_0xd450d2['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x460f1a;}['execute'](){const _0x257a98=ts(Array['from'](this['_suggestions']['values']()));for(const _0x5a9d22 of _0x257a98){const _0x27b937=_0x5a9d22['getRanges']();if(!this['editor']['model']['canEditAt'](_0x27b937))return;}rs(this['editor']['model'],this['_command'],_0x257a98);}}class E extends _0x5b0c44{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x77e45,_0x2029b9,_0x1aecba){super(_0x77e45),this['_command']=_0x2029b9,this['_suggestions']=_0x1aecba,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x56b0e6=this['editor']['model']['document']['selection'],_0x467437=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1936fa,_0x260a10){const _0x369225=Array['from'](_0x1936fa['getRanges']()),_0xca8bbc=new Set();for(const _0x3a1c42 of _0x260a10)if(_0x3a1c42['isInContent']){for(const _0x8933e of _0x369225)for(const _0x489bc7 of _0x3a1c42['getRanges']())(_0x8933e['isIntersecting'](_0x489bc7)||_0x1936fa['isCollapsed']&&!_0x3a1c42['isMultiRange']&&_0x3a1c42['next']&&_0x489bc7['end']['isTouching'](_0x8933e['start']))&&_0xca8bbc['add'](_0x3a1c42);}return _0xca8bbc;}(_0x56b0e6,_0x467437),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x381d73=ts(Array['from'](this['_selectedSuggestions']));for(const _0x56681e of _0x381d73){const _0x2caa13=_0x56681e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2caa13))return;}rs(this['editor']['model'],this['_command'],_0x381d73);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x36705e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2b7869,_0x5ec738){super(),this['id']=_0x5ec738['id'],this['type']=_0x5ec738['type'],this['subType']=_0x5ec738['subType']||null,this['author']=_0x5ec738['author'],this['creator']=_0x5ec738['creator']||_0x5ec738['author'],this['isExternal']=Boolean(_0x5ec738['attributes']&&_0x5ec738['attributes']['@external']),this['data']=null,this['_model']=_0x2b7869,this['_onAccept']=_0x5ec738['onAccept'],this['_onDiscard']=_0x5ec738['onDiscard'],this['_onAttributesChange']=_0x5ec738['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5ec738['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 _0x126a50=this;for(;_0x126a50['previous'];)_0x126a50=_0x126a50['previous'];return _0x126a50;}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'](_0x1e4ed7){this['_markerNames']['add'](_0x1e4ed7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xd67778=>this['_model']['markers']['get'](_0xd67778))['filter'](_0x1e62f1=>_0x1e62f1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2e159d=>{for(const _0x195080 of this['getMarkers']())_0x2e159d['removeMarker'](_0x195080);}),this['_markerNames']['clear']();}['removeMarker'](_0x18c163){this['_model']['change'](_0x572899=>{_0x572899['removeMarker'](_0x18c163);}),this['_markerNames']['delete'](_0x18c163);}['addRange'](_0xc5c1aa){const _0xfc2d2c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0xfc2d2c),this['_model']['change'](_0x451458=>{_0x451458['addMarker'](_0xfc2d2c,{'range':_0xc5c1aa,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4aad65){for(const _0x5cf457 of this['getRanges']())if(_0x5cf457['isIntersecting'](_0x4aad65))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x184d86=>_0x184d86['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5795d3,_0x568c0b)=>[..._0x5795d3,..._0x568c0b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3ef047=this['getRanges']();if(0x1!=_0x3ef047['length'])return null;const _0x14ce94=_0x3ef047[0x0],_0x80974d=_0x14ce94['start']['nodeAfter'],_0xd7b690=_0x14ce94['end']['nodeBefore'];return _0x80974d instanceof _0x6e72f7?_0x80974d!=_0xd7b690?null:_0x80974d: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 _0x1fe879=[];let _0x47004a=this['head'];for(;_0x47004a;)_0x1fe879['push'](_0x47004a),_0x47004a=_0x47004a['next'];return _0x1fe879;}['setAttribute'](_0x5a5c6a,_0x138c1c){const _0x1fc6a9=_0x4df157(this['attributes']);_0x535920(_0x1fc6a9,_0x5a5c6a,_0x138c1c),_0x54a863(_0x1fc6a9,this['attributes'])||(this['attributes']=_0x1fc6a9,this['_onAttributesChange'](_0x1fc6a9));}['removeAttribute'](_0x4bea39){const _0x20b51f=_0x4df157(this['attributes']);_0x3ba914(_0x20b51f,_0x4bea39),_0x54a863(_0x20b51f,this['attributes'])||(this['attributes']=_0x20b51f,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 _0x5e3891()['substr'](0x1,0x5);}}function c(_0x22327e,_0x35d514,_0x2124a4){const _0x1951b0=_0x22327e['t'],t=_0x22327e['t'];switch(_0x35d514){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x2124a4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2124a4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2124a4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2124a4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2124a4);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',_0x2124a4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2124a4);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2124a4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2124a4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2124a4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2124a4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2124a4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2124a4);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2124a4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2124a4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2124a4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2124a4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2124a4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2124a4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2124a4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2124a4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2124a4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2124a4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2124a4);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2124a4);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'},_0x2124a4);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2124a4);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2124a4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2124a4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2124a4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2124a4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2124a4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2124a4);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'},_0x2124a4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2124a4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2124a4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2124a4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2124a4);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'},_0x2124a4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2124a4);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'},_0x2124a4);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'},_0x2124a4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2124a4);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'},_0x2124a4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2124a4);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'},_0x2124a4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2124a4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2124a4);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'},_0x2124a4);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2124a4);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 _0x1951b0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2124a4);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1951b0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2124a4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2124a4);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'},_0x2124a4);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'},_0x2124a4);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'},_0x2124a4);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x35d514;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x32f43e,_0xa1fc6b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x32f43e,this['_locale']=_0xa1fc6b;}['getDescriptions'](_0x2df0c1){const _0x3e07ff=[],_0x1c6354=new Set(),_0x5984d5=new Set();for(let _0xff462f=0x0;_0xff462f<_0x2df0c1['length'];_0xff462f++){const _0x501486=_0x2df0c1[_0xff462f];if(!_0x501486['isInContent'])continue;const _0x34e6cc=this['_handleCustomCallbackDescription'](_0x501486);if(_0x34e6cc){if(null!=_0x501486['subType']){if(_0x1c6354['has'](_0x501486['subType']))continue;_0x1c6354['add'](_0x501486['subType']);}_0x3e07ff['push'](_0x34e6cc);}else{if('attribute'!=_0x501486['type'])'insertion'!=_0x501486['type']&&'deletion'!=_0x501486['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3e07ff,_0x501486,_0x2df0c1[_0xff462f+0x1]);else{const _0x5a0122=_0x501486['data']['key'];if(_0x5984d5['has'](_0x5a0122))continue;_0x5984d5['add'](_0x501486['data']['key']),_0x5a0122==u?this['_handleRenameSuggestionDescription'](_0x3e07ff,_0x501486):this['_handleAttributeSuggestionDescription'](_0x3e07ff,_0x501486);}}}return this['_resolveDescriptionItems'](_0x3e07ff);}['registerDescriptionCallback'](_0x1d976d){this['_customCallbacks']['push'](_0x1d976d);}['registerElementLabel'](_0x46d7cf,_0x5c3481,_0x534baa=_0x2c6b22['normal']){'function'==typeof _0x46d7cf?_0xd6d196(this['_itemLabelsCallbacks'],{'matchingCallback':_0x46d7cf,'label':_0x5c3481,'priority':_0x534baa}):this['_itemLabels']['set'](_0x46d7cf,_0x5c3481);}['registerAttributeLabel'](_0x3513ec,_0x496e99){this['_attributeLabels']['set'](_0x3513ec,_0x496e99);}['getItemLabel'](_0x29e13e,_0x1afd96=0x1){let _0x232eb4;for(const _0x419c4d of this['_itemLabelsCallbacks'])if(_0x419c4d['matchingCallback'](_0x29e13e)){_0x232eb4=_0x419c4d['label'];break;}return _0x232eb4||(_0x232eb4=this['_itemLabels']['get'](_0x29e13e['name'])),_0x232eb4?_0x232eb4(_0x1afd96):0x1!==_0x1afd96?_0x1afd96+'\x20'+_0x29e13e['name']+'s':''+_0x29e13e['name'];}['_addDescriptionItems'](_0x42b697,_0x5cc2ad){const _0x3e9bd2=_0x5cc2ad['getFirstRange']()['getWalker'](),_0x196974='insertion'==_0x5cc2ad['type']?'add':'remove';for(const _0x112e65 of _0x3e9bd2){const _0x2b74d8=_0x112e65['item'],_0x469dae=_0x42b697[_0x42b697['length']-0x1];if(_0x2b74d8['is']('$textProxy'))_0x469dae&&_0x469dae['type']['indexOf']('Container')>-0x1&&_0x42b697['pop'](),_0x469dae&&'text'==_0x469dae['type']?_0x469dae[_0x196974]+=_0x2b74d8['data']:_0x42b697['push']({'type':'text','add':'add'==_0x196974?_0x2b74d8['data']:'','remove':'remove'==_0x196974?_0x2b74d8['data']:''});else{if(this['_schema']['isObject'](_0x2b74d8)){const _0x214fa0=_0x2b74d8;if(_0x469dae&&_0x469dae['type']['indexOf']('Container')>-0x1&&_0x42b697['pop'](),'elementEnd'==_0x112e65['type'])continue;_0x469dae&&_0x469dae['type']==_0x196974+'Object'&&_0x469dae['element']['name']==_0x214fa0['name']?_0x469dae['quantity']++:_0x42b697['push']({'type':_0x196974+'Object','element':_0x214fa0,'quantity':0x1}),_0x3e9bd2['skip'](_0x54569a=>!('elementEnd'==_0x54569a['type']&&_0x54569a['item']==_0x2b74d8));}else{if(this['_schema']['checkChild'](_0x2b74d8,'$text')||_0x2b74d8['is']('element','softBreak')){const _0x51e740=_0x2b74d8;if('add'==_0x196974&&'elementStart'==_0x112e65['type']||'remove'==_0x196974&&'elementEnd'==_0x112e65['type'])continue;if(_0x469dae&&-0x1==_0x469dae['type']['indexOf']('Container')){'text'==_0x469dae['type']&&(_0x469dae[_0x196974]+='\x0a');continue;}let _0x2d6c0a;if(_0x2d6c0a='add'==_0x196974?_0x51e740['nextSibling']&&!this['_schema']['isObject'](_0x51e740['nextSibling'])?_0x51e740['nextSibling']:null:_0x51e740['previousSibling']&&!this['_schema']['isObject'](_0x51e740['previousSibling'])?_0x51e740['previousSibling']:null,_0x51e740['isEmpty']||_0x2d6c0a&&_0x2d6c0a['isEmpty']){const _0xd2d769=_0x2d6c0a&&_0x2d6c0a['isEmpty']?_0x2d6c0a:_0x51e740;_0x469dae&&_0x469dae['type']==_0x196974+'EmptyContainer'&&_0x469dae['element']['name']==_0xd2d769['name']?_0x469dae['quantity']++:_0x42b697['push']({'type':_0x196974+'EmptyContainer','element':_0xd2d769,'quantity':0x1});}else _0x42b697['push']({'type':_0x196974+'Container','element':_0x51e740});}}}}}['_resolveDescriptionItems'](_0x20856d){const _0x10c5de=this['_locale'],_0x20868b=[],_0x254657=[],_0x1459b4=[];for(const _0x4ce76c of _0x20856d)switch(_0x4ce76c['type']){case'text':if(_0x4ce76c['add']=_0x4ce76c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4ce76c['remove']=_0x4ce76c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4ce76c['add']&&''!=_0x4ce76c['remove']){_0x20868b['push']({'type':'replace','content':c(_0x10c5de,'REPLACE_TEXT',['\x22'+_0x4ce76c['remove']+'\x22','\x22'+_0x4ce76c['add']+'\x22'])});continue;}if(null!=_0x4ce76c['add']['match'](/^ +$/)){_0x20868b['push']({'type':'insertion','content':c(_0x10c5de,'*Insert:*\x20%0',c(_0x10c5de,'ELEMENT_SPACE',_0x4ce76c['add']['length']))});continue;}if(null!=_0x4ce76c['remove']['match'](/^ +$/)){_0x20868b['push']({'type':'deletion','content':c(_0x10c5de,'*Remove:*\x20%0',c(_0x10c5de,'ELEMENT_SPACE',_0x4ce76c['remove']['length']))});continue;}if(''!=_0x4ce76c['add']){_0x20868b['push']({'type':'insertion','content':c(_0x10c5de,'*Insert:*\x20%0','\x22'+_0x4ce76c['add']+'\x22')});continue;}_0x20868b['push']({'type':'deletion','content':c(_0x10c5de,'*Remove:*\x20%0','\x22'+_0x4ce76c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x20868b['push']({'type':'insertion','content':c(_0x10c5de,'*Insert:*\x20%0',this['getItemLabel'](_0x4ce76c['element'],_0x4ce76c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x20868b['push']({'type':'deletion','content':c(_0x10c5de,'*Remove:*\x20%0',this['getItemLabel'](_0x4ce76c['element'],_0x4ce76c['quantity']))});continue;case'addContainer':_0x20868b['push']({'type':'insertion','content':c(_0x10c5de,'*Split:*\x20%0',this['getItemLabel'](_0x4ce76c['element'],_0x4ce76c['quantity']))});continue;case'removeContainer':_0x20868b['push']({'type':'deletion','content':c(_0x10c5de,'*Merge:*\x20%0',this['getItemLabel'](_0x4ce76c['element'],_0x4ce76c['quantity']))});continue;case'addFormat':_0x254657['push'](_0x4ce76c['key']);continue;case'removeFormat':_0x1459b4['push'](_0x4ce76c['key']);continue;default:_0x20868b['push'](_0x4ce76c);}if(_0x254657['length']){const _0xdff4cb=_0x254657['map'](_0x5411e5=>this['_attributeLabels']['has'](_0x5411e5)?this['_attributeLabels']['get'](_0x5411e5):_0x5411e5)['join'](',\x20');_0x20868b['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0xdff4cb)});}if(_0x1459b4['length']){const _0x179146=_0x1459b4['map'](_0x1ab406=>this['_attributeLabels']['has'](_0x1ab406)?this['_attributeLabels']['get'](_0x1ab406):_0x1ab406)['join'](',\x20');_0x20868b['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x179146)});}return _0x20868b;}['_handleCustomCallbackDescription'](_0x2e4709){for(const _0x1e4a3d of this['_customCallbacks']){const _0x3d4b3c=_0x1e4a3d(_0x2e4709);if(_0x3d4b3c&&'type'in _0x3d4b3c)return _0x3d4b3c;}}['_handleAttributeSuggestionDescription'](_0x52faaa,_0x38226d){const _0x1f268e=_0x38226d['data'],_0x328de8=void 0x0===_0x1f268e['newValue']?'removeFormat':'addFormat';_0x52faaa['push']({'type':_0x328de8,'key':_0x1f268e['key']});}['_handleRenameSuggestionDescription'](_0x5027d5,_0x2ec039){_0x5027d5['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2ec039['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1cfc93,_0x590235,_0x1195c1){if(this['_addDescriptionItems'](_0x1cfc93,_0x590235),_0x1195c1&&_0x1195c1['getFirstRange']()&&!_0x590235['getFirstRange']()['end']['isEqual'](_0x1195c1['getFirstRange']()['start'])){const _0x56b5da=_0x1cfc93[_0x1cfc93['length']-0x1],_0x2219dc='insertion'==_0x590235['type']?'add':'remove';_0x56b5da&&'text'==_0x56b5da['type']&&(_0x56b5da[_0x2219dc]+='\x0a');}}}class U extends _0x55fa68{['afterInit'](){const _0x452eb4=this['editor'],_0x4b4905=_0x452eb4['plugins']['get']('TrackChangesEditing');_0x452eb4['commands']['get']('showAIAssistant')&&_0x4b4905['enableCommand']('showAIAssistant');}}class V extends _0x55fa68{['afterInit'](){const _0x27e449=this['editor'],_0xf410ed=_0x27e449['locale'];if(!_0x27e449['plugins']['has']('AlignmentEditing'))return;const _0x27884a=_0x27e449['plugins']['get']('TrackChangesEditing');_0x27884a['enableDefaultAttributesIntegration']('alignment'),_0x27884a['registerBlockAttribute']('alignment'),_0x27884a['descriptionFactory']['registerAttributeLabel']('alignment',c(_0xf410ed,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21d13d=this['editor'],_0x2e3a93=_0x21d13d['locale'];_0x21d13d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cbd9e=>{if('formatBlock'!=_0x5cbd9e['type'])return;const {data:_0xd6d889}=_0x5cbd9e;if(_0xd6d889&&'alignment'==_0xd6d889['commandName']){const _0xf97437=_0xd6d889['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x2e3a93,'*Format:*\x20%0',function(_0x3d8918){switch(_0x3d8918){case'left':return c(_0x2e3a93,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x2e3a93,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x2e3a93,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x2e3a93,'FORMAT_JUSTIFY_TEXT');}}(_0xf97437))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x55fa68{['afterInit'](){const _0x513675=this['editor'],_0x2e6efd=_0x513675['plugins']['get']('TrackChangesEditing'),_0xa20c5c=_0x513675['locale'];for(const _0x5f1e4c of Zt){if(!_0x513675['plugins']['has'](_0x5f1e4c))continue;const _0x2b05f5=_0x5f1e4c['slice'](0x0,-0x7)['toLowerCase'](),_0x335361='FORMAT_'+_0x2b05f5['toUpperCase']();_0x2e6efd['enableDefaultAttributesIntegration'](_0x2b05f5),_0x2e6efd['registerInlineAttribute'](_0x2b05f5),_0x2e6efd['descriptionFactory']['registerAttributeLabel'](_0x2b05f5,c(_0xa20c5c,_0x335361));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2318c9=this['editor'],_0x4b9784=_0x2318c9['locale'],_0x3eac1b=_0x2318c9['plugins']['get']('TrackChangesEditing');function _0x10c62c(_0x2b9e70,_0x17773b){_0x3eac1b['descriptionFactory']['registerDescriptionCallback'](_0x393f3e=>{if('formatInline'!=_0x393f3e['type'])return;const {data:_0x50911e}=_0x393f3e;return _0x50911e&&_0x50911e['commandName']===_0x2b9e70?_0x50911e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4b9784,'*Format:*\x20%0',_0x17773b)}:{'type':'format','content':c(_0x4b9784,'*Remove\x20format:*\x20%0',_0x17773b)}:void 0x0;});}_0x10c62c('bold',c(_0x4b9784,'FORMAT_BOLD')),_0x10c62c('italic',c(_0x4b9784,'FORMAT_ITALIC')),_0x10c62c('underline',c(_0x4b9784,'FORMAT_UNDERLINE')),_0x10c62c('code',c(_0x4b9784,'FORMAT_CODE')),_0x10c62c('strikethrough',c(_0x4b9784,'FORMAT_STRIKETHROUGH')),_0x10c62c('subscript',c(_0x4b9784,'FORMAT_SUBSCRIPT')),_0x10c62c('superscript',c(_0x4b9784,'FORMAT_SUPERSCRIPT'));}}class G extends _0x55fa68{['afterInit'](){const _0x30a489=this['editor'],_0x64207b=_0x30a489['locale'];if(!_0x30a489['plugins']['has']('BlockQuoteEditing'))return;const _0x3231dd=_0x30a489['plugins']['get']('TrackChangesEditing'),_0x9db1df=this['editor']['commands']['get']('blockQuote');_0x3231dd['enableCommand']('blockQuote',(_0x44fb47,_0x2977f8={})=>{const _0x4df603=this['editor']['model']['document']['selection'],_0x308044=_0x2977f8&&void 0x0!==_0x2977f8['forceValue']?_0x2977f8['forceValue']:!_0x9db1df['value'];let _0x258f49=[];if(_0x308044){const _0x58b68f=Array['from'](_0x4df603['getSelectedBlocks']())['filter'](_0x6730f7=>oo(_0x6730f7)||function(_0x34672e,_0x3b57af){const _0x4b3ad3=_0x3b57af['checkChild'](_0x34672e['parent'],'blockQuote'),_0x4f49d3=_0x3b57af['checkChild'](['$root','blockQuote'],_0x34672e);return _0x4b3ad3&&_0x4f49d3;}(_0x6730f7,this['editor']['model']['schema']));_0x258f49=to(_0x58b68f,_0x30a489['model']);}else{const _0x4303fc=Array['from'](_0x4df603['getSelectedBlocks']())['filter'](_0x4e362b=>oo(_0x4e362b));_0x258f49=to(_0x4303fc,_0x30a489['model']);}_0x30a489['model']['change'](()=>{for(const _0x33b18c of _0x258f49)_0x3231dd['markBlockFormat'](_0x33b18c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x308044}]});});}),_0x3231dd['descriptionFactory']['registerDescriptionCallback'](_0x23ba6c=>{const {data:_0x26a00b}=_0x23ba6c;if(_0x26a00b&&'blockQuote'==_0x26a00b['commandName']){const _0x2cd8ed=c(_0x64207b,'ELEMENT_BLOCK_QUOTE');return _0x26a00b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x64207b,'*Set\x20format:*\x20%0',_0x2cd8ed)}:{'type':'format','content':c(_0x64207b,'*Remove\x20format:*\x20%0',_0x2cd8ed)};}});}}function oo(_0x453852){return'blockQuote'==_0x453852['parent']['name'];}class L extends _0x55fa68{['afterInit'](){const _0x2fca57=this['editor'],_0x44ab2f=_0x2fca57['locale'],_0x4dd101=_0x2fca57['plugins']['get']('TrackChangesEditing');_0x2fca57['plugins']['has']('BookmarkEditing')&&(_0x4dd101['enableCommand']('insertBookmark'),_0x4dd101['enableDefaultAttributesIntegration']('updateBookmark'),_0x4dd101['registerBlockAttribute']('bookmarkId'),_0x4dd101['descriptionFactory']['registerDescriptionCallback'](_0x368a1d=>{if('insertion'!=_0x368a1d['type']&&'deletion'!=_0x368a1d['type']&&'attribute'!=_0x368a1d['type'])return;const _0x106389=_0x368a1d['getContainedElement']();if(null==_0x106389)return;if(!_0x106389['is']('element','bookmark'))return;const _0x926dd9=_0x106389['getAttribute']('bookmarkId');if('insertion'==_0x368a1d['type'])return{'type':'insertion','content':c(_0x44ab2f,'*Insert:*\x20%0','\x22'+_0x926dd9+'\x22\x20'+c(_0x44ab2f,'ELEMENT_BOOKMARK'))};if('deletion'==_0x368a1d['type'])return{'type':'deletion','content':c(_0x44ab2f,'*Remove:*\x20%0','\x22'+_0x926dd9+'\x22\x20'+c(_0x44ab2f,'ELEMENT_BOOKMARK'))};const {data:_0x14eca9}=_0x368a1d;if(!_0x14eca9||'bookmarkId'!=_0x14eca9['key'])return;return{'type':'format','content':c(_0x44ab2f,'*Set\x20bookmark:*\x20%0','\x22'+_0x14eca9['newValue']+'\x22')};}));}}class J extends _0x55fa68{['afterInit'](){const _0x43e286=this['editor'];_0x43e286['plugins']['has']('CaseChange')&&(_0x43e286['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x43e286['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x43e286['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x55fa68{['afterInit'](){const _0x59e9e8=this['editor'];_0x59e9e8['commands']['get']('ckbox')&&_0x59e9e8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x55fa68{['afterInit'](){const _0x5e1835=this['editor'];if(!_0x5e1835['plugins']['has']('CodeBlock'))return;const _0x3b2f7f=_0x5e1835['plugins']['get']('TrackChangesEditing'),_0x2aff95=_0x5e1835['locale'],_0x28ee32=_0x5e1835['config']['get']('codeBlock')['languages'],_0x22c582=_0x5e1835['commands']['get']('codeBlock');_0x3b2f7f['enableCommand']('indentCodeBlock'),_0x3b2f7f['enableCommand']('outdentCodeBlock'),_0x3b2f7f['enableCommand']('codeBlock',(_0x4e53ae,_0xb7d178={})=>{const _0x11141f=_0x5e1835['model'],_0x9761a4=_0x5e1835['model']['document']['selection'],_0x5511ea=_0xb7d178&&void 0x0!==_0xb7d178['forceValue']?_0xb7d178['forceValue']:!_0x22c582['value'];let _0x546c30;_0xb7d178['language']||(_0xb7d178['language']=_0x28ee32[0x0]['language']),_0x546c30=_0x5511ea?Array['from'](_0x9761a4['getSelectedBlocks']())['filter'](_0x2d9958=>eo(_0x2d9958)||function(_0x608abd,_0x242a48){if(_0x608abd['is']('rootElement')||_0x242a48['isLimit'](_0x608abd))return!0x1;return _0x242a48['checkChild'](_0x608abd['parent'],'codeBlock');}(_0x2d9958,_0x11141f['schema'])):Array['from'](_0x9761a4['getSelectedBlocks']())['filter'](_0x492b25=>eo(_0x492b25));const _0x7fcb4a=to(_0x546c30,_0x11141f);_0x11141f['change'](()=>{for(const _0x2fe69e of _0x7fcb4a)_0x3b2f7f['markBlockFormat'](_0x2fe69e,{'commandName':'codeBlock','commandParams':[{..._0xb7d178,'forceValue':_0x5511ea}],'formatGroupId':'blockName'});});}),(_0x3b2f7f['descriptionFactory']['registerElementLabel']('codeBlock',_0x167e7d=>c(_0x2aff95,'ELEMENT_CODE_BLOCK',_0x167e7d)),_0x3b2f7f['descriptionFactory']['registerDescriptionCallback'](_0x4ef8ae=>{if('formatBlock'!=_0x4ef8ae['type'])return;const _0x21ba27=_0x2aff95['t'],{data:_0x61172c}=_0x4ef8ae;if(!_0x61172c||'codeBlock'!=_0x61172c['commandName'])return;const _0xf6497a=_0x61172c['commandParams'][0x0]['language'],_0x1c9801=_0x21ba27(_0x28ee32['find'](_0x1598be=>_0x1598be['language']===_0xf6497a)['label'])['toLowerCase']();return _0x61172c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2aff95,'*Set\x20format:*\x20%0',c(_0x2aff95,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1c9801+')')}:{'type':'format','content':c(_0x2aff95,'*Remove\x20format:*\x20%0',c(_0x2aff95,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4b968e){return'codeBlock'==_0x4b968e['name'];}class q extends _0x55fa68{['afterInit'](){const _0x1022ba=this['editor'];if(!_0x1022ba['plugins']['has']('CommentsEditing'))return;_0x1022ba['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x59ae41,_0x4ac431,_0xe67c03){const _0x7eed51=[];for(const _0x257b8f of _0x4ac431['getItems']())_0x257b8f['hasAttribute'](_0x59ae41)&&_0x7eed51['push'](_0xe67c03['createRangeOn'](_0x257b8f));return _0x7eed51;}function Fe(_0x2b2b8d,_0x5786c3,{showActiveMarker:_0x5a93b3=!0x0}={}){const _0x5a4b61=_0x2b2b8d['plugins']['get']('TrackChangesEditing');return(_0x7e33b2,_0x23e427,_0x546361)=>{if(!_0x546361['consumable']['test'](_0x23e427['markerRange'],_0x7e33b2['name']))return;const _0x1e1f3a=_0x23e427['markerRange']['getWalker'](),_0x440f91=_0x23e427['markerRange']['start'],_0xeb67bc=_0x2b2b8d['model']['schema'];let _0x4ea0ea=null,_0x4cecd1=null,_0x3db64f=!0x1,_0xa09b45=!0x1;for(const _0x412191 of _0x1e1f3a){const _0x11f439=_0x412191['item'];_0x3db64f=_0x3db64f||_0xeb67bc['isContent'](_0x11f439);const _0x5cb230=_0x546361['mapper']['toViewElement'](_0x11f439);if(_0x5cb230&&_0x5cb230['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x412191['type']&&(_0xeb67bc['isBlock'](_0x11f439)&&!_0xeb67bc['isLimit'](_0x11f439)&&(_0x11f439['nextSibling']||_0x440f91['isAtEnd']?_0x4ea0ea&&_0x4ea0ea['parent']==_0x11f439||(_0x4ea0ea=_0x11f439,_0x315c6d(_0x412191['previousPosition']),_0xa09b45=!0x0):_0x4cecd1=_0x4cecd1||_0x412191['previousPosition']));}function _0x315c6d(_0x1ecd01){const {authorId:_0x1a4428}=_0x5a4b61['_splitMarkerName'](_0x23e427['markerName']),_0x427d4b=_0x546361['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5786c3,'data-author-id':_0x1a4428}),_0x7928ec=_0x546361['mapper']['toViewPosition'](_0x1ecd01);_0x5a93b3&&_0x5a4b61['activeMarkers']['includes'](_0x23e427['markerName'])&&_0x546361['writer']['addClass']('ck-suggestion-marker--active',_0x427d4b),_0x546361['writer']['insert'](_0x7928ec,_0x427d4b),_0x546361['mapper']['bindElementToMarker'](_0x427d4b,_0x23e427['markerName']);}_0x3db64f||_0xa09b45||!_0x4cecd1||_0x315c6d(_0x4cecd1);};}class z extends _0x55fa68{static get['requires'](){return[_0x60e2d4];}['init'](){const _0x23ae9b=this['editor'],_0x4a2e8a=_0x23ae9b['plugins']['get']('TrackChangesEditing');_0x4a2e8a['enableCommand']('delete');const _0x51c416=_0x23ae9b['commands']['get']('deleteForward');_0x4a2e8a['enableCommand']('deleteForward',(_0x163a10,_0x5799d2={})=>{const _0x2bb7ca=_0x23ae9b['model']['createSelection'](_0x23ae9b['model']['document']['selection']);_0x2bb7ca['isCollapsed']&&_0x23ae9b['model']['modifySelection'](_0x2bb7ca,{'direction':'forward','unit':_0x5799d2['unit']});const _0x1d8299=_0x2bb7ca['getFirstRange'](),_0x452fe1=_0x3932e8['fromRange'](_0x1d8299);let _0x1215df;_0x163a10(_0x5799d2),_0x1215df='$graveyard'==_0x452fe1['root']['rootName']?_0x23ae9b['model']['createRange'](_0x1d8299['start']):_0x23ae9b['model']['createRange'](_0x452fe1['start'],_0x452fe1['end']),_0x452fe1['detach'](),_0x23ae9b['model']['enqueueChange'](_0x51c416['buffer']['batch'],_0x4f1aad=>{_0x51c416['buffer']['lock'](),_0x4f1aad['setSelection'](_0x4f1aad['createRange'](_0x1215df['end'])),_0x51c416['buffer']['unlock']();});}),_0x23ae9b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x23ae9b,'merge'),{'priority':'high'}),_0x23ae9b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x58568d,_0x4cd07a,_0x112631)=>{_0x112631['options']['showSuggestionHighlights']&&Fe(_0x23ae9b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x58568d,_0x4cd07a,_0x112631);},{'priority':'high'}),_0x23ae9b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x251b8c,_0x1f75a3,_0x368125)=>{const _0x11d9bc=_0x368125['mapper']['markerNameToElements'](_0x1f75a3['markerName']);if(_0x11d9bc){for(const _0x29ec52 of _0x11d9bc)_0x29ec52['is']('uiElement')&&(_0x368125['mapper']['unbindElementFromMarkerName'](_0x29ec52,_0x1f75a3['markerName']),_0x368125['writer']['remove'](_0x29ec52));}},{'priority':'high'});}}class W extends _0x55fa68{['afterInit'](){const _0x28c3b7=this['editor'];if(!_0x28c3b7['plugins']['has']('ListEditing'))return;const _0x321829=_0x28c3b7['locale'],_0x59f305=_0x28c3b7['plugins']['get']('TrackChangesEditing'),_0x12f11e=_0x28c3b7['plugins']['has']('TodoListEditing'),_0x538d4e=!!_0x28c3b7['config']['get']('list.multiBlock');function _0x10cfd7(_0x7692d9){return{'type':'format','content':''+c(_0x321829,'*Set\x20format:*\x20%0',_0x7692d9)};}function _0x35b063(_0x2dea6d){return{'type':'format','content':''+c(_0x321829,'*Remove\x20format:*\x20%0',_0x2dea6d)};}_0x59f305['enableDefaultAttributesIntegration']('numberedList'),_0x59f305['enableDefaultAttributesIntegration']('bulletedList'),_0x59f305['enableDefaultAttributesIntegration']('customNumberedList'),_0x59f305['enableDefaultAttributesIntegration']('customBulletedList'),_0x59f305['enableDefaultAttributesIntegration']('indentList'),_0x59f305['enableDefaultAttributesIntegration']('outdentList'),_0x59f305['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x59f305['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x59f305['registerBlockAttribute']('listItemId'),_0x59f305['registerBlockAttribute']('listType'),_0x59f305['registerBlockAttribute']('listIndent'),_0x538d4e&&(_0x59f305['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x59f305['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x12f11e&&(_0x59f305['enableDefaultAttributesIntegration']('todoList'),_0x59f305['enableDefaultAttributesIntegration']('checkTodoList'),_0x59f305['registerBlockAttribute']('todoListChecked'),_0x59f305['descriptionFactory']['registerDescriptionCallback'](_0x1fcd06=>{const {data:_0x57bb56}=_0x1fcd06;if(_0x57bb56&&'todoListChecked'==_0x57bb56['key'])return{'type':'format','content':_0x57bb56['newValue']?c(_0x321829,'*Check\x20item*'):c(_0x321829,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x23f40a=>{if(_0x23f40a['batch']['isUndo'])return!0x1;let _0x44f983=!0x1;const _0x74511b=_0x59f305['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ba97c=>'todoListChecked'===_0x59f305['_getAttributeKey'](_0x5ba97c));for(const _0x3a0629 of _0x74511b){'todo'!=_0x3a0629['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x59f305['_findSuggestions'](_0x3a0629['getFirstRange'](),'attribute')['find'](_0x3b9921=>'listType'===_0x59f305['_getAttributeKey'](_0x3b9921['suggestion']))||(_0x23f40a['removeMarker'](_0x3a0629['getFirstMarker']()),_0x44f983=!0x0));}return _0x44f983;})),_0x59f305['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x321829,'FORMAT_INDENT'));const _0x2e3dae={'type':'format','content':''};_0x59f305['descriptionFactory']['registerDescriptionCallback'](_0x2880c9=>{const {data:_0x1e1454}=_0x2880c9;if(!_0x1e1454||'listType'!=_0x1e1454['key'])return;let _0x402978=_0x2880c9['head'];for(;_0x402978;){if(_0x402978['data']&&(('listStyle'==_0x402978['data']['key']||'listMarkerStyle'==_0x402978['data']['key'])&&(_0x402978['data']['newValue']&&'default'!=_0x402978['data']['newValue']||'default'!=_0x402978['data']['oldValue']&&!_0x1e1454['newValue'])||!_0x538d4e&&_0x402978['data']['key']==u))return _0x2e3dae;_0x402978=_0x402978['next'];}if(null==_0x1e1454['newValue'])switch(_0x1e1454['oldValue']){case'bulleted':return _0x35b063(c(_0x321829,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x35b063(c(_0x321829,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x35b063(c(_0x321829,'ELEMENT_TODO_LIST'));}switch(_0x1e1454['newValue']){case'bulleted':return _0x10cfd7(c(_0x321829,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x10cfd7(c(_0x321829,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x10cfd7(c(_0x321829,'ELEMENT_TODO_LIST'));}}),_0x59f305['descriptionFactory']['registerDescriptionCallback'](_0x33f49e=>{const {data:_0x14b368}=_0x33f49e;if(_0x14b368&&'listIndent'==_0x14b368['key'])return null==_0x14b368['newValue']||null==_0x14b368['oldValue']&&0x0==_0x14b368['newValue']?_0x2e3dae:void 0x0;}),_0x59f305['descriptionFactory']['registerDescriptionCallback'](_0x32ddc0=>{if('attribute'!=_0x32ddc0['type'])return;const {data:_0x266bef}=_0x32ddc0;if(!_0x266bef||'listItemId'!=_0x266bef['key'])return;const _0x4e4f4f=Te(_0x32ddc0);return'newValue'==_0x4e4f4f?{'type':'format','content':c(_0x321829,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4e4f4f?{'type':'format','content':c(_0x321829,'*Split:*\x20list\x20item')}:_0x2e3dae;}),_0x28c3b7['model']['document']['registerPostFixer'](_0x4f6977=>this['listItemIdFixer'](_0x4f6977)),_0x28c3b7['model']['document']['registerPostFixer'](_0x3e1ece=>this['noTrackChangesFixer'](_0x3e1ece)),_0x28c3b7['model']['document']['on']('change:data',(_0x2acf37,_0x201b42)=>{if(_0x201b42['isUndo']||!_0x201b42['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2add9f){if(_0x2add9f['batch']['isUndo']||!_0x2add9f['batch']['isLocal'])return!0x1;let _0x19c753=!0x1;const _0x51afc0=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x165ef9=>_0x165ef9['data']&&'listItemId'==_0x165ef9['data']['key'])['filter'](_0x4801ab=>_0x4801ab['data']['newValue']&&_0x4801ab['data']['oldValue']);for(const _0x268209 of _0x51afc0)Te(_0x268209)||(_0x2add9f['removeMarker'](_0x268209['getFirstMarker']()),_0x19c753=!0x0);return _0x19c753;}['noTrackChangesFixer'](_0x51e83f){if(_0x51e83f['batch']['isUndo']||!_0x51e83f['batch']['isLocal'])return!0x1;const _0x319c05=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x319c05['trackChangesCommand']['value'])return!0x1;let _0x3b39c9=!0x1;const _0x33dea7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x480e2d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3f3955=>'attribute'==_0x3f3955['type'])['filter'](_0x1a57bf=>_0x33dea7['includes'](_0x1a57bf['attributeKey']));if(0x0==_0x480e2d['length'])return _0x3b39c9;for(const _0x4ba049 of _0x480e2d){const _0x1a2526=_0x319c05['_findSuggestions'](_0x4ba049['range'],'attribute')['filter'](_0x4456ca=>!_0x4456ca['meta']['isNextTo'])['map'](_0x266976=>_0x266976['suggestion'])['filter'](_0x430ce4=>{const _0x3a0132=_0x319c05['_getAttributeKey'](_0x430ce4);return _0x33dea7['includes'](_0x3a0132);});if(_0x1a2526['length']){for(const _0x530170 of _0x1a2526)_0x51e83f['removeMarker'](_0x530170['getFirstMarker']());_0x3b39c9=!0x0;}}return _0x3b39c9;}['assureChains'](){const _0x453af0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa52a7a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x53c6d3;const _0x310018=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x454395=>{if(_0x454395['data']['oldRange']||!_0x454395['data']['newRange'])return null;if(!_0x454395['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xe2c73}=_0x453af0['_splitMarkerName'](_0x454395['name']);if(!_0x453af0['hasSuggestion'](_0xe2c73))return null;const _0x91947d=_0x453af0['getSuggestion'](_0xe2c73);return _0xa52a7a['includes'](_0x91947d['data']['key']);})['map'](_0x44c8e0=>{const {id:_0x4b16d1}=_0x453af0['_splitMarkerName'](_0x44c8e0['name']),_0x1f97f6=_0x453af0['getSuggestion'](_0x4b16d1);return _0x53c6d3=_0x1f97f6['attributes']['groupId'],_0x1f97f6['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x310018['size'])return;const _0x1d55ce=_0x453af0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x446214=>'attribute'==_0x446214['type']&&_0x446214['data']&&_0xa52a7a['includes'](_0x446214['data']['key'])&&_0x446214['attributes']['groupId']!=_0x53c6d3)['map'](_0x290cb4=>({'listItem':_0x290cb4['getFirstRange']()['start']['nodeAfter'],'groupId':_0x290cb4['attributes']['groupId']})),_0x262ad4=new Set();for(const {groupId:_0x1bfde0,listItem:_0x2e37a5}of _0x1d55ce)_0x310018['has'](_0x2e37a5)&&_0x262ad4['add'](_0x1bfde0);for(const _0x14d143 of _0x453af0['getSuggestions']())_0x262ad4['has'](_0x14d143['attributes']['groupId'])&&_0x14d143['setAttribute']('groupId',_0x53c6d3);}['_supportLegacySuggestions'](){const _0x59d363=this['editor'],_0xc6deff=_0x59d363['locale'],_0x211170=_0x59d363['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x211170['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x8885ab,_0x53d51a){const _0x24cc15=[];for(let _0x306aea of _0x8885ab)_0x306aea['start']['nodeAfter']===_0x306aea['end']['parent']&&(_0x306aea=_0x59d363['model']['createRange'](_0x59d363['model']['createPositionAt'](_0x306aea['start']['nodeAfter'],0x0))),_0x24cc15['push'](_0x306aea);_0x59d363['model']['change'](_0x567e87=>{const _0x39fed7=_0x59d363['model']['document']['selection'],_0x38c35e=Array['from'](_0x39fed7['getRanges']())['map'](_0x33d2f7=>_0x3932e8['fromRange'](_0x33d2f7));_0x567e87['setSelection'](_0x24cc15),_0x59d363['commands']['get'](_0x53d51a['commandName'])['refresh'](),_0x53d51a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x59d363['execute'](_0x53d51a['commandName'],..._0x53d51a['commandParams']),_0x567e87['setSelection'](_0x38c35e);for(const _0x4640b8 of _0x38c35e)_0x4640b8['detach']();});}),_0x211170['descriptionFactory']['registerElementLabel'](function(_0x302c83){const _0x116bb5=!_0x59d363['model']['schema']['isObject'](_0x302c83),_0x24d1b9=_0x302c83['previousSibling'],_0x32d1b2=_0x302c83['nextSibling'],_0x8187c0=_0x302c83['getAttribute']('listItemId'),_0x1c3be8=!_0x24d1b9||_0x24d1b9['getAttribute']('listItemId')!==_0x8187c0,_0xd1c04a=!_0x32d1b2||_0x32d1b2['getAttribute']('listItemId')!==_0x8187c0;return _0x116bb5&&Boolean(_0x8187c0)&&_0x1c3be8&&_0xd1c04a;},_0x2dc0de=>c(_0xc6deff,'ELEMENT_LIST_ITEM',_0x2dc0de));}['_registerLegacyDescription'](){const _0x588c2d=this['editor'],_0x164ce4=_0x588c2d['locale'];function _0x3eb126(_0x1c8df9){const _0x4e54bc=_0x588c2d['commands']['get']('bulletedList')['value'],_0x5e4996=_0x588c2d['commands']['get']('numberedList')['value'];return'numberedList'===_0x1c8df9?_0x4e54bc:_0x5e4996;}_0x588c2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x36d061){if('formatBlock'!=_0x36d061['type'])return;const {data:_0x2240ac}=_0x36d061;if(!_0x2240ac)return;let _0x37de21,_0x3d04c8,_0x5d4447,_0x47470b;switch(_0x2240ac['commandName']){case'bulletedList':_0x5d4447=_0x2240ac['commandParams'][0x0]['forceValue'],_0x47470b=_0x3eb126(_0x2240ac['commandName']),_0x37de21=_0x5d4447?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x47470b&&_0x588c2d['config']['get']('list.multiBlock')||(_0x37de21='*Change\x20to:*\x20%0'),_0x3d04c8={'type':'format','content':c(_0x164ce4,_0x37de21,c(_0x164ce4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5d4447=_0x2240ac['commandParams'][0x0]['forceValue'],_0x47470b=_0x3eb126(_0x2240ac['commandName']),_0x37de21=_0x5d4447?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x47470b&&_0x588c2d['config']['get']('list.multiBlock')||(_0x37de21='*Change\x20to:*\x20%0'),_0x3d04c8={'type':'format','content':c(_0x164ce4,_0x37de21,c(_0x164ce4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x37de21='*Indent:*\x20%0',_0x3d04c8={'type':'format','content':c(_0x164ce4,_0x37de21,c(_0x164ce4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x37de21=function(_0x376473){const _0x4b5ccc=_0x376473['getFirstRange']();let _0x4da68f=_0x4b5ccc['start']['nodeAfter'];for(;_0x4da68f&&_0x4b5ccc['containsItem'](_0x4da68f);){if(_0x4da68f['getAttribute']('listIndent')>0x0)return!0x1;_0x4da68f=_0x4da68f['nextSibling'];}return!0x0;}(_0x36d061)?c(_0x164ce4,'*Format:*\x20remove\x20from\x20%0',c(_0x164ce4,function(_0xc9a625){return'ELEMENT_'+_0xc9a625['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x36d061))):c(_0x164ce4,'*Outdent:*\x20%0',c(_0x164ce4,'ELEMENT_LIST_ITEM')),_0x3d04c8={'type':'format','content':_0x37de21};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2240ac['multipleBlocks']&&(_0x37de21='*Merge:*\x20%0',_0x3d04c8={'type':'deletion','content':c(_0x164ce4,_0x37de21,c(_0x164ce4,'ELEMENT_LIST_ITEM'))});}return _0x3d04c8;});}}function Te(_0x252701){let _0x3cfb0d=_0x252701['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3cfb0d;){const _0xd6bcca=_0x3cfb0d['getAttribute']('listItemId');if(!_0xd6bcca)return!0x1;if(_0xd6bcca==_0x252701['data']['newValue'])return'newValue';if(_0xd6bcca==_0x252701['data']['oldValue'])return'oldValue';_0x3cfb0d=_0x3cfb0d['previousSibling'];}return!0x1;}class Se extends _0x55fa68{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x34e04c=this['editor']['config']['get']('list.properties'),_0x3d752b=this['editor']['plugins']['get']('TrackChangesEditing');_0x34e04c['styles']&&(_0x3d752b['enableDefaultAttributesIntegration']('listStyle'),_0x3d752b['registerBlockAttribute']('listStyle')),_0x34e04c['reversed']&&(_0x3d752b['enableDefaultAttributesIntegration']('listReversed'),_0x3d752b['registerBlockAttribute']('listReversed')),_0x34e04c['startIndex']&&(_0x3d752b['enableDefaultAttributesIntegration']('listStart'),_0x3d752b['registerBlockAttribute']('listStart'));const _0x295944={'type':'format','content':''};_0x3d752b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x455582=this['editor']['locale'];_0x3d752b['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x455582,'FORMAT_LIST_REVERSED')),_0x3d752b['descriptionFactory']['registerDescriptionCallback'](_0x35ca77=>{const {data:_0x3442b1}=_0x35ca77;if(_0x3442b1&&'listReversed'==_0x3442b1['key'])return null==_0x3442b1['newValue']||0x0==_0x3442b1['newValue']&&null==_0x3442b1['oldValue']?_0x295944:void 0x0;}),_0x3d752b['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x455582,'FORMAT_LIST_START')),_0x3d752b['descriptionFactory']['registerDescriptionCallback'](_0x491c77=>{const {data:_0x46086f}=_0x491c77;if(_0x46086f&&'listStart'==_0x46086f['key'])return null==_0x46086f['newValue']||0x1==_0x46086f['newValue']&&null==_0x46086f['oldValue']?_0x295944:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x371f96=>{if(_0x371f96['batch']['isUndo'])return!0x1;let _0x311e2a=!0x1;const _0x5215a5=_0x3d752b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x445aaf=>{const _0x5b0c38=_0x3d752b['_getAttributeKey'](_0x445aaf);return'listStart'==_0x5b0c38||'listReversed'==_0x5b0c38;});for(const _0x46ce96 of _0x5215a5){const _0x8a4acb=_0x46ce96['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x8a4acb||'customNumbered'==_0x8a4acb)continue;_0x3d752b['_findSuggestions'](_0x46ce96['getFirstRange'](),'attribute')['find'](_0x370872=>'listType'==_0x3d752b['_getAttributeKey'](_0x370872['suggestion']))||(_0x371f96['removeMarker'](_0x46ce96['getFirstMarker']()),_0x311e2a=!0x0);}return _0x311e2a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x37126a){const _0x3acd6f=this['editor']['locale'],{data:_0x1b60f1}=_0x37126a,_0x321c1c={'type':'format','content':''};if(!_0x1b60f1||'listStyle'!=_0x1b60f1['key'])return;if(!_0x1b60f1['oldValue'])return'default'==_0x1b60f1['newValue']?_0x321c1c:{'type':'format','content':''+c(_0x3acd6f,'*Set\x20format:*\x20%0',c(_0x3acd6f,this['_getTranslationKeyForListStyle'](_0x1b60f1['newValue'])))};if(!_0x1b60f1['newValue']){if('default'==_0x1b60f1['oldValue'])return _0x321c1c;let _0x54d372=_0x37126a['head'];for(;_0x54d372;){if(_0x54d372['data']&&'listType'==_0x54d372['data']['key']&&_0x54d372['data']['newValue'])return _0x321c1c;_0x54d372=_0x54d372['next'];}return{'type':'format','content':''+c(_0x3acd6f,'*Remove\x20format:*\x20%0',c(_0x3acd6f,this['_getTranslationKeyForListStyle'](_0x1b60f1['oldValue'])))};}if('default'!=_0x1b60f1['newValue'])return{'type':'format','content':''+c(_0x3acd6f,'*Set\x20format:*\x20%0',c(_0x3acd6f,this['_getTranslationKeyForListStyle'](_0x1b60f1['newValue'])))};let _0x1d241d=_0x37126a['head'];for(;_0x1d241d;){if(_0x1d241d['data']&&'listType'==_0x1d241d['data']['key']&&_0x1d241d['data']['newValue']&&_0x1d241d['data']['oldValue'])return _0x321c1c;_0x1d241d=_0x1d241d['next'];}return{'type':'format','content':c(_0x3acd6f,'*Set\x20format:*\x20%0',c(_0x3acd6f,'ELEMENT_'+_0x37126a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2bbd0f=this['editor'],_0x335fe3=_0x2bbd0f['locale'];_0x2bbd0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fbd73=>{if('formatBlock'!=_0x1fbd73['type'])return;const {data:_0xce11b8}=_0x1fbd73;if(!_0xce11b8)return;let _0x5086d4,_0xd5482e;switch(_0xce11b8['commandName']){case'listStyle':_0x5086d4='*Change\x20to:*\x20%0',_0xd5482e={'type':'format','content':c(_0x335fe3,_0x5086d4,c(_0x335fe3,this['_getTranslationKeyForListStyle'](_0xce11b8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5086d4=_0xce11b8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xd5482e={'type':'format','content':c(_0x335fe3,_0x5086d4)};break;case'listStart':_0x5086d4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xd5482e={'type':'format','content':c(_0x335fe3,_0x5086d4,_0xce11b8['commandParams'][0x0]['startIndex'])};}return _0xd5482e;});}['_getTranslationKeyForListStyle'](_0xa79d5f){return'ELEMENT_'+function(_0x3be98c){if(_e['includes'](_0x3be98c))return'bulleted';if(Re['includes'](_0x3be98c))return'numbered';return null;}(_0xa79d5f)['toUpperCase']()+'_LIST_'+_0xa79d5f['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x55fa68{['afterInit'](){const _0x5afea5=this['editor'];_0x5afea5['commands']['get']('emoji')&&_0x5afea5['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x55fa68{static get['requires'](){return[_0x496c38];}['init'](){const _0x3afc4f=this['editor'],_0x34711a=_0x3afc4f['plugins']['get']('TrackChangesEditing'),_0xbbcaea=_0x3afc4f['commands']['get']('enter');_0x34711a['enableCommand']('enter',()=>{_0x3afc4f['model']['change'](_0x19b503=>{const _0x323229=_0x3afc4f['model']['document']['selection'],_0x5c8ca1=_0x323229['getFirstPosition'](),_0x55c06c=_0x3932e8['fromRange'](_0x323229['getFirstRange']());if(_0xbbcaea['enterBlock'](_0x19b503)){const _0x47ecd0=_0x3afc4f['model']['createPositionAt'](_0x5c8ca1['parent']['nextSibling'],0x0),_0x240d74=_0x19b503['createRange'](_0x5c8ca1,_0x47ecd0);_0x34711a['markInsertion'](_0x240d74);}else _0x19b503['setSelection'](_0x19b503['createRange'](_0x55c06c['end']));_0x55c06c['detach'](),_0xbbcaea['fire']('afterExecute',{'writer':_0x19b503});});}),_0x3afc4f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x3afc4f,'split'),{'priority':'high'}),_0x3afc4f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x13bd33,_0x2454c2,_0x2db968)=>{const _0x156808=_0x2db968['mapper']['markerNameToElements'](_0x2454c2['markerName']);if(_0x156808){for(const _0x2cdf25 of _0x156808)_0x2cdf25['hasClass']('ck-suggestion-marker-split')&&(_0x2db968['mapper']['unbindElementFromMarkerName'](_0x2cdf25,_0x2454c2['markerName']),_0x2db968['writer']['remove'](_0x2cdf25));}},{'priority':'high'}),_0x3afc4f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x59b9f5,_0x5608b8,_0x52bb26)=>{_0x52bb26['options']['showSuggestionHighlights']&&Fe(_0x3afc4f,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x59b9f5,_0x5608b8,_0x52bb26);},{'priority':'high'});}}class Z extends _0x55fa68{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x58e9ed=this['editor']['plugins']['get']('TrackChangesEditing');_0x58e9ed['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x58e9ed['enableCommand']('findNext'),_0x58e9ed['enableCommand']('findPrevious'),_0x58e9ed['enableCommand']('replace'),_0x58e9ed['enableCommand']('replaceAll');}['handleFindCommand'](_0x4d8635,_0x3407d2,_0x3c4cc2={}){const _0x7cf5bb=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4d8635(_0x3cc566=>{let _0x3e69ef=('string'==typeof _0x3407d2?_0x7cf5bb['findByTextCallback'](_0x3407d2,_0x3c4cc2):_0x3407d2)(_0x3cc566);Array['isArray'](_0x3e69ef)&&(_0x3e69ef={'results':_0x3e69ef,'searchText':'string'==typeof _0x3407d2?_0x3407d2:''});const _0x5e498b=_0x3e69ef['results']['filter'](_0x4f8715=>!0x1===this['_isInDeletionRange'](_0x4f8715,_0x3cc566['item']));return{..._0x3e69ef,'results':_0x5e498b};},_0x3c4cc2);}['_isInDeletionRange'](_0x2013d0,_0x50e421){const _0x2baf21=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x50e421,_0x2013d0['start']),this['editor']['model']['createPositionAt'](_0x50e421,_0x2013d0['end']));for(const _0x5b9543 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2baf21['getIntersection'](_0x5b9543['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x55fa68{['afterInit'](){const _0xf66661=this['editor']['locale'],_0xcf2dc7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1f551b,commandName:_0x5de06f}of ro)this['editor']['plugins']['has'](_0x1f551b)&&(_0xcf2dc7['enableDefaultAttributesIntegration'](_0x5de06f),_0xcf2dc7['registerInlineAttribute'](_0x5de06f));_0xcf2dc7['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0xf66661,'FORMAT_FONT_SIZE')),_0xcf2dc7['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0xf66661,'FORMAT_FONT_FAMILY')),_0xcf2dc7['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0xf66661,'FORMAT_FONT_COLOR')),_0xcf2dc7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0xf66661,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x532976=this['editor'],_0x50f266=_0x532976['locale'];_0x532976['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11240=>{const _0x4ce35b=_0x50f266['t'];if('formatInline'!=_0x11240['type'])return;const {data:_0x9c140}=_0x11240;if(null!=_0x9c140){if('fontSize'==_0x9c140['commandName']){const _0x58a121=_0x9c140['commandParams'][0x0]['value'];if(_0x58a121){const _0x44ceff=_0x4ce35b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x141fcf=>_0x141fcf['model']==_0x58a121)['title'])['toLowerCase']();return{'type':'format','content':c(_0x50f266,'*Set\x20font\x20size:*\x20%0',_0x44ceff)};}return{'type':'format','content':c(_0x50f266,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x9c140['commandName']){const _0x36b064=_0x9c140['commandParams'][0x0]['value'];return _0x36b064?{'type':'format','content':c(_0x50f266,'*Set\x20font\x20family:*\x20%0',_0x36b064)}:{'type':'format','content':c(_0x50f266,'*Reset\x20font\x20family*')};}if('fontColor'==_0x9c140['commandName']){const _0x33d25b=_0x9c140['commandParams'][0x0]['value'];if(_0x33d25b){const _0x34169f=_0x24a279(this['editor']['config']['get']('fontColor.colors'))['find'](_0x14cca7=>_0x14cca7['model']==_0x33d25b);let _0x30cb99=_0x33d25b,_0x4a7779='';return _0x34169f&&(_0x30cb99=_0x34169f['label'],_0x4a7779=_0x4ce35b(_0x30cb99)['toLowerCase']()),{'type':'format','content':c(_0x50f266,'*Set\x20font\x20color:*\x20%0',_0x4a7779)['trim'](),'color':{'value':_0x33d25b,'title':_0x4a7779||_0x30cb99}};}return{'type':'format','content':c(_0x50f266,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x9c140['commandName']){const _0x4f1b7b=_0x9c140['commandParams'][0x0]['value'];if(_0x4f1b7b){const _0x5d7317=_0x24a279(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x198c72=>_0x198c72['model']==_0x4f1b7b);let _0x5d2883=_0x4f1b7b,_0xd0769f='';return _0x5d7317&&(_0x5d2883=_0x5d7317['label'],_0xd0769f=_0x4ce35b(_0x5d2883)['toLowerCase']()),{'type':'format','content':c(_0x50f266,'*Set\x20font\x20background\x20color:*\x20%0',_0xd0769f)['trim'](),'color':{'value':_0x4f1b7b,'title':_0xd0769f||_0x5d2883}};}return{'type':'format','content':c(_0x50f266,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x55fa68{['afterInit'](){const _0x1321f1=this['editor'],_0x214992=_0x1321f1['plugins']['get']('TrackChangesEditing'),_0x50e044=_0x1321f1['commands']['get']('copyFormat'),_0x1e5972=_0x1321f1['commands']['get']('pasteFormat');_0x50e044&&_0x1e5972&&(_0x214992['enableDefaultAttributesIntegration']('pasteFormat'),_0x214992['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x283bf8=this['editor'],_0x281cbc=_0x283bf8['locale'];_0x283bf8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x599607=>{if('formatBlock'!=_0x599607['type']&&'formatInline'!=_0x599607['type'])return;const {data:_0x11c3b4}=_0x599607;if(_0x11c3b4&&'pasteFormat'===_0x11c3b4['commandName']){const _0x1cd2a9=[],_0x39b7a7=_0x11c3b4['commandParams'][0x0];for(const [_0x3564ad,_0x10e3b0]of Object['entries'](_0x39b7a7))_0x1cd2a9['push'](so(_0x283bf8,_0x3564ad,_0x10e3b0));return _0x1cd2a9['length']?{'type':'format','content':c(_0x281cbc,'*Set\x20format\x20to:*\x20%0',_0x1cd2a9['join'](',\x20'))}:{'type':'format','content':c(_0x281cbc,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1c6459,_0x3dc846,_0x2a4ef3){const _0xc9a54e=_0x1c6459['locale']['t'],_0x4a75d6=_0x3dc846['split'](/(?=[A-Z])/)['join']('\x20'),_0x393b44=_0xc9a54e(_0x4a75d6['charAt'](0x0)['toUpperCase']()+_0x4a75d6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2a4ef3)return _0x393b44;if('fontColor'===_0x3dc846||'fontBackgroundColor'===_0x3dc846){const _0x5d06f4=_0x24a279(_0x1c6459['config']['get']('fontColor.colors'))['find'](_0xe77f4=>_0xe77f4['model']==_0x2a4ef3);return _0x393b44+'\x20('+(_0x5d06f4?_0xc9a54e(_0x5d06f4['label'])['toLowerCase']():_0x2a4ef3)+')';}if('fontSize'===_0x3dc846&&isNaN(parseFloat(_0x2a4ef3))){const _0x4d525c=_0x1c6459['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1c6459['config']['get']('fontSize.options'))['find'](_0x2d7f6e=>_0x2d7f6e['model']==_0x2a4ef3);return _0x393b44+'\x20('+(_0x4d525c?_0xc9a54e(_0x4d525c['title'])['toLowerCase']():_0x2a4ef3)+')';}return _0x393b44+'\x20('+_0x2a4ef3+')';}class nt extends _0x55fa68{['_headingOptions'];['afterInit'](){const _0x11e1b4=this['editor'];if(!_0x11e1b4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x11e1b4['config']['get']('heading.options');const _0x47db7f=_0x11e1b4['locale'],_0x1b3206=_0x11e1b4['plugins']['get']('TrackChangesEditing');_0x1b3206['enableDefaultAttributesIntegration']('heading');for(const _0x4811be of this['_headingOptions'])'paragraph'!=_0x4811be['model']&&_0x1b3206['descriptionFactory']['registerElementLabel'](_0x4811be['model'],_0x2314b6=>{const _0x1731bc=this['_getHeadingLevel'](_0x4811be['model']);return null!==_0x1731bc?_0x2b8f03(_0x2314b6,_0x1731bc):_0x464b82(_0x2314b6,_0x4811be['title']);});function _0x2b8f03(_0x23f9e8,_0x1b0ef6){return c(_0x47db7f,'ELEMENT_HEADING',[_0x23f9e8,_0x1b0ef6]);}function _0x464b82(_0x30d673,_0x30eef){return c(_0x47db7f,'ELEMENT_HEADING_CUSTOM',[_0x30d673,_0x30eef]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54e5b5=this['editor'],_0x1ec383=_0x54e5b5['locale'];function _0x1afee3(_0x16a1e7,_0x13d869){return c(_0x1ec383,'ELEMENT_HEADING_CUSTOM',[_0x16a1e7,_0x13d869]);}_0x54e5b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x556f5e=>{if('formatBlock'!=_0x556f5e['type'])return;const {data:_0x290abe}=_0x556f5e;if(_0x290abe&&'heading'==_0x290abe['commandName']){const _0x282ec9=_0x290abe['commandParams'][0x0]['value'],_0x50f025=this['_getHeadingLevel'](_0x282ec9);if(null!==_0x50f025)return{'type':'format','content':c(_0x1ec383,'*Change\x20to:*\x20%0',(_0xfaa1ed=0x1,_0x580934=_0x50f025,c(_0x1ec383,'ELEMENT_HEADING',[_0xfaa1ed,_0x580934])))};const _0x477b11=this['_headingOptions']['find'](_0x381c33=>_0x381c33['model']===_0x282ec9)['title'];return{'type':'format','content':c(_0x1ec383,'*Change\x20to:*\x20%0',_0x1afee3(0x1,_0x477b11))};}var _0xfaa1ed,_0x580934;});}['_getHeadingLevel'](_0x35d6fb){const _0x1ba550=_0x35d6fb['match'](/^heading(\d+)/);if(_0x1ba550)return _0x1ba550[0x1];const _0x35d197=this['_headingOptions']?.['find'](_0xee7080=>_0xee7080['model']==_0x35d6fb);if(_0x35d197&&_0x35d197['view']){const _0x1368dc=_0x35d197['view'],_0x1c9f97=(_0x1368dc['name']??_0x1368dc)['match'](/^h(\d+)/);if(_0x1c9f97)return _0x1c9f97[0x1];}return null;}}class it extends _0x55fa68{['afterInit'](){const _0x120733=this['editor'];if(!_0x120733['plugins']['has']('HighlightEditing'))return;const _0x4c1988=_0x120733['plugins']['get']('TrackChangesEditing'),_0x5f4e7d=_0x120733['locale'];_0x4c1988['enableDefaultAttributesIntegration']('highlight'),_0x4c1988['registerInlineAttribute']('highlight'),_0x4c1988['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x5f4e7d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26dfe8=this['editor'],_0x3a0488=_0x26dfe8['locale'];_0x26dfe8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35fbde=>{if('formatInline'!=_0x35fbde['type'])return;const {data:_0x14c3be}=_0x35fbde;if(_0x14c3be&&'highlight'==_0x14c3be['commandName']){const _0x2c5c73=_0x3a0488['t'],_0x2f46b0=_0x14c3be['commandParams'][0x0]['value'];if(_0x2f46b0){const _0x23b7e6=_0x26dfe8['config']['get']('highlight.options')['find'](_0x28c7af=>_0x28c7af['model']==_0x2f46b0),_0x4acfd2=_0x2c5c73(_0x23b7e6['title'])['toLowerCase']();return{'type':'format','content':c(_0x3a0488,'*Set\x20highlight:*\x20%0',_0x4acfd2),'color':{'value':_0x23b7e6['color'],'title':_0x23b7e6['title']}};}return{'type':'format','content':c(_0x3a0488,'*Remove\x20highlight*',c(_0x3a0488,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x55fa68{['afterInit'](){const _0x12d945=this['editor'];if(!_0x12d945['plugins']['has']('HorizontalLineEditing'))return;_0x12d945['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4a65e7=_0x12d945['plugins']['get']('TrackChangesEditing'),_0x3c6b83=_0x12d945['locale'];_0x4a65e7['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4d14dc=>c(_0x3c6b83,'ELEMENT_HORIZONTAL_LINE',_0x4d14dc)),_0x12d945['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x626e8f,{writer:_0x2a07da,options:_0x1fa04b})=>{if(!_0x1fa04b['showSuggestionHighlights'])return null;const _0x15309c=_0x2a07da['createContainerElement']('div'),_0x5d1543=_0x2a07da['createEmptyElement']('hr');return _0x2a07da['addClass']('ck-horizontal-line',_0x15309c),_0x2a07da['insert'](_0x2a07da['createPositionAt'](_0x15309c,0x0),_0x5d1543),_0x15309c;},'converterPriority':'high'});}}class ot extends _0x55fa68{['afterInit'](){const _0x3b9e4a=this['editor'];if(!_0x3b9e4a['plugins']['has']('HtmlEmbed'))return;const _0x589deb=_0x3b9e4a['plugins']['get']('TrackChangesEditing'),_0x213b9b=_0x3b9e4a['locale'];_0x589deb['descriptionFactory']['registerElementLabel']('rawHtml',_0x5e4188=>c(_0x213b9b,'ELEMENT_HTML_EMBED',_0x5e4188)),_0x589deb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x589deb['registerBlockAttribute']('value'),_0x589deb['descriptionFactory']['registerDescriptionCallback'](_0x56a186=>{if('attribute'!=_0x56a186['type'])return;const {data:_0x157b4c}=_0x56a186;if(_0x157b4c&&'value'==_0x157b4c['key']&&_0x56a186['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3ec516=c(_0x213b9b,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x213b9b,'*Change\x20%0\x20content*',_0x3ec516)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35f7b5=this['editor'],_0x3fb281=_0x35f7b5['locale'];_0x35f7b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xafe84d=>{if('formatBlock'!=_0xafe84d['type'])return;const {data:_0x49049f}=_0xafe84d;if(_0x49049f&&'htmlEmbed'==_0x49049f['commandName']){const _0x32a211=c(_0x3fb281,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x3fb281,'*Change\x20%0\x20content*',_0x32a211)};}});}}class rt extends _0x55fa68{['afterInit'](){const _0x3e714d=this['editor'];if(!_0x3e714d['plugins']['has']('ImageEditing'))return;const _0x518d09=_0x3e714d['plugins']['get']('TrackChangesEditing'),_0xced9cc=_0x3e714d['plugins']['get']('ImageUtils'),_0x4ece7f=_0x3e714d['locale'];_0x518d09['enableCommand']('insertImage'),_0x518d09['descriptionFactory']['registerElementLabel']('imageBlock',_0x3cd09a=>c(_0x4ece7f,'ELEMENT_IMAGE',_0x3cd09a)),_0x518d09['descriptionFactory']['registerElementLabel']('imageInline',_0x5e592a=>c(_0x4ece7f,'ELEMENT_INLINE_IMAGE',_0x5e592a)),_0x518d09['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x4ece7f,'ELEMENT_CAPTION')),_0x3e714d['plugins']['has']('ImageUploadEditing')&&_0x518d09['enableCommand']('uploadImage'),_0x3e714d['plugins']['has']('ImageBlockEditing')&&_0x3e714d['plugins']['has']('ImageInlineEditing')&&(_0x518d09['enableCommand']('imageTypeInline',(_0xb4250a,_0x37f455)=>{const _0x2fb6d7=_0xced9cc['getClosestSelectedImageElement'](_0x3e714d['model']['document']['selection']);_0x3e714d['model']['change'](()=>{_0x518d09['markBlockFormat'](_0x2fb6d7,{'commandName':'imageTypeInline','commandParams':[_0x37f455]},[],'convertBlockImageToInline');});}),_0x518d09['enableCommand']('imageTypeBlock',(_0xae5fa7,_0x2da27b)=>{_0x3e714d['model']['change'](_0x57246c=>{let _0x31d10e=_0xced9cc['getClosestSelectedImageElement'](_0x3e714d['model']['document']['selection']),_0x54db01=_0x57246c['createRangeOn'](_0x31d10e);const _0x347365=_0x48085b['fromPosition'](_0x54db01['start'],'toPrevious'),_0x43d324=_0x48085b['fromPosition'](_0x54db01['end'],'toNext');_0x518d09['forceDefaultExecution'](()=>_0xae5fa7(_0x2da27b)),_0x31d10e=_0xced9cc['getClosestSelectedImageElement'](_0x3e714d['model']['document']['selection']),_0x54db01=_0x57246c['createRangeOn'](_0x31d10e);const _0x25de5d=_0x57246c['createRange'](_0x347365,_0x43d324);_0x347365['detach'](),_0x43d324['detach'](),_0x518d09['markBlockFormat'](_0x31d10e,{'commandName':'imageTypeInline','commandParams':[_0x2da27b]},[],'convertInlineImageToBlock'),_0x25de5d['start']['isBefore'](_0x54db01['start'])&&_0x518d09['markInsertion'](_0x57246c['createRange'](_0x25de5d['start'],_0x54db01['start']),'convertInlineImageToBlock'),_0x54db01['end']['isBefore'](_0x25de5d['end'])&&_0x518d09['markInsertion'](_0x57246c['createRange'](_0x54db01['end'],_0x25de5d['end']),'convertInlineImageToBlock');});}),_0x518d09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x518d09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x518d09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x518d09['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x518d09['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x518d09['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x243d50])=>{const _0x132782=_0x518d09['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x45c3a0=_0x243d50['start'],_0x589b8a=_0x243d50['end'];const _0x5ce633=_0x3e714d['model']['schema']['getNearestSelectionRange'](_0x45c3a0,'backward'),_0x4e2c80=_0x3e714d['model']['schema']['getNearestSelectionRange'](_0x589b8a,'forward');_0x5ce633['isCollapsed']&&(_0x45c3a0=_0x5ce633['start']),_0x4e2c80['isCollapsed']&&(_0x589b8a=_0x4e2c80['end']),_0x132782([_0x3e714d['model']['createRange'](_0x45c3a0,_0x589b8a)]);}),_0x518d09['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xcd8df1),_0x518d09['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xcd8df1)),_0x3e714d['plugins']['has']('ImageCaptionEditing')&&(_0x518d09['enableCommand']('toggleImageCaption',(_0x4cd9d1,_0x553795)=>{const _0xc9dd0a=_0x3e714d['plugins']['get']('ImageCaptionUtils');let _0x33e737=_0xced9cc['getClosestSelectedImageElement'](_0x3e714d['model']['document']['selection']),_0x37834f=_0xc9dd0a['getCaptionFromImageModelElement'](_0x33e737);_0x3e714d['model']['change'](()=>{if(_0x37834f)return void _0x518d09['markDeletion'](_0x3e714d['model']['createRangeOn'](_0x37834f));const _0x48af4b=_0xced9cc['isBlockImage'](_0x33e737);_0x4cd9d1(_0x553795),_0x33e737=_0xced9cc['getClosestSelectedImageElement'](_0x3e714d['model']['document']['selection']),_0x37834f=_0xc9dd0a['getCaptionFromImageModelElement'](_0x33e737),_0x518d09['markInsertion'](_0x3e714d['model']['createRangeOn'](_0x37834f),_0x48af4b?null:'imageCaption');});}),_0x518d09['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xcd8df1));const _0x49f704=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x49147e(_0x5e50ac,_0x1dc373){const _0x1f00da=_0x49f704['findIndex'](({type:_0x4bc391,subType:_0x5c6db3})=>_0x5e50ac['type']==_0x4bc391&&_0x5e50ac['subType']==_0x5c6db3),_0x2aec47=_0x49f704['findIndex'](({type:_0x4ccce2,subType:_0x1f7932})=>_0x1dc373['type']==_0x4ccce2&&_0x1dc373['subType']==_0x1f7932);if(_0x1f00da<0x0||_0x2aec47<0x0)return!0x1;const _0x46184a=_0x5e50ac['getFirstRange'](),_0x43a14b=_0x1dc373['getFirstRange']();if((0x0==_0x1f00da||0x1==_0x1f00da)&&0x2==_0x2aec47&&_0x46184a['isIntersecting'](_0x43a14b))return!0x0;if(0x2==_0x1f00da&&0x3==_0x2aec47){const _0x433314=_0x518d09['_findSuggestions'](_0x46184a,'insertion')['filter'](({suggestion:_0xd27b9d,meta:_0x864500})=>_0x864500['isOwn']&&'convertInlineImageToBlock'==_0xd27b9d['subType']);if(_0x433314['length']>0x1&&_0x43a14b['end']['isEqual'](_0x46184a['start']))return!0x0;if(0x1==_0x433314['length']&&(_0x46184a['start']['isEqual'](_0x43a14b['end'])||_0x46184a['end']['isEqual'](_0x43a14b['start'])))return!0x0;}if(0x3==_0x1f00da&&0x3==_0x2aec47&&_0x46184a['start']['isBefore'](_0x43a14b['start'])){const _0x2bcef8=_0x46184a['end']['nodeAfter'],_0x249db7=_0x43a14b['start']['nodeBefore'];return _0xced9cc['isBlockImage'](_0x2bcef8)&&_0x2bcef8===_0x249db7;}return!0x1;}function _0xcd8df1(_0x4407c8,_0x29f12e){return _0x49147e(_0x4407c8,_0x29f12e)?[_0x4407c8,_0x29f12e]:_0x49147e(_0x29f12e,_0x4407c8)?[_0x29f12e,_0x4407c8]:null;}_0x3e714d['plugins']['has']('ImageResize')&&(_0x518d09['enableDefaultAttributesIntegration']('resizeImage'),_0x518d09['registerBlockAttribute']('resizedWidth'),_0x518d09['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x4ece7f,'FORMAT_IMAGE_SIZE'))),_0x3e714d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x518d09['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x518d09['registerBlockAttribute']('alt')),_0x3e714d['plugins']['has']('PictureEditing')&&(_0x518d09['registerBlockAttribute']('sources'),_0x518d09['descriptionFactory']['registerDescriptionCallback'](_0x502b4d=>{if('attribute'!=_0x502b4d['type'])return;const {data:_0x57eed5}=_0x502b4d;return _0x57eed5&&'sources'==_0x57eed5['key']?{'type':'format','content':''}:void 0x0;})),_0x3e714d['plugins']['has']('ImageSizeAttributes')&&(_0x518d09['registerBlockAttribute']('width'),_0x518d09['registerBlockAttribute']('height'),_0x518d09['descriptionFactory']['registerDescriptionCallback'](_0x58e236=>{if('attribute'!=_0x58e236['type'])return;const {data:_0x2b380b}=_0x58e236;return!_0x2b380b||'width'!=_0x2b380b['key']&&'height'!=_0x2b380b['key']?void 0x0:{'type':'format','content':''};})),_0x518d09['descriptionFactory']['registerDescriptionCallback'](_0x4d40f7=>{if(!!_0x49f704['find'](({type:_0x46ac03,subType:_0x436135})=>_0x4d40f7['type']==_0x46ac03&&_0x4d40f7['subType']==_0x436135))return _0x4d40f7['previous']?{}:void 0x0;}),_0x518d09['descriptionFactory']['registerDescriptionCallback'](_0x40205d=>{if('insertion'==_0x40205d['type']||'deletion'==_0x40205d['type']){const _0x315ae0=_0x40205d['getContainedElement']();if(_0x315ae0&&_0x315ae0['is']('element','caption'))return{'type':'insertion'==_0x40205d['type']?'addObject':'removeObject','element':_0x315ae0,'quantity':0x1};}}),_0x518d09['descriptionFactory']['registerDescriptionCallback'](_0x5aa36f=>'formatBlock'==_0x5aa36f['type']&&'convertInlineImageToBlock'==_0x5aa36f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5aa36f['type']&&'convertBlockImageToInline'==_0x5aa36f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x518d09['descriptionFactory']['registerDescriptionCallback'](_0x140989=>{if('attribute'!=_0x140989['type'])return;const {data:_0x5b5621}=_0x140989;if(!_0x5b5621||'alt'!=_0x5b5621['key'])return;const _0x2a2a53=_0x5b5621['newValue'];return _0x2a2a53?{'type':'format','content':c(_0x4ece7f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2a2a53+'\x22')}:{'type':'format','content':c(_0x4ece7f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a4db3=this['editor'],_0x1d499c=_0x3a4db3['locale'];_0x3a4db3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ac4d1=>{if('formatBlock'!=_0x1ac4d1['type']&&'formatInline'!=_0x1ac4d1['type'])return;const {data:_0x100e5f}=_0x1ac4d1;if(_0x100e5f){if('imageTextAlternative'==_0x100e5f['commandName']){const _0x4238c4=_0x100e5f['commandParams'][0x0]['newValue'];return _0x4238c4?{'type':'format','content':c(_0x1d499c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4238c4+'\x22')}:{'type':'format','content':c(_0x1d499c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x100e5f['commandName']){const _0x1b3050=_0x100e5f['commandParams'][0x0]['width'];return _0x1b3050?{'type':'format','content':c(_0x1d499c,'*Set\x20image\x20width:*\x20%0',_0x1b3050)}:{'type':'format','content':c(_0x1d499c,'*Reset\x20image\x20width*')};}}});}}class at extends _0x55fa68{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x228619=this['editor']['locale'],_0x4743a2=this['editor']['plugins']['get']('TrackChangesEditing');_0x4743a2['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4743a2['registerBlockAttribute']('src'),_0x4743a2['descriptionFactory']['registerDescriptionCallback'](_0x4374f8=>{if('attribute'!=_0x4374f8['type'])return;const {data:_0x5a12e3}=_0x4374f8;return _0x5a12e3&&'src'==_0x5a12e3['key']?_0x5a12e3['newValue']&&_0x5a12e3['oldValue']?{'type':'format','content':c(_0x228619,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3b4bd6=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b4bd6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3b4bd6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b4bd6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3b4bd6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f4c64=this['editor'],_0x54e346=_0x5f4c64['locale'];_0x5f4c64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x443e6c=>{if('formatBlock'!=_0x443e6c['type']&&'formatInline'!=_0x443e6c['type'])return;const {data:_0x3932d9}=_0x443e6c;if(!_0x3932d9||'replaceImageSource'!=_0x3932d9['commandName'])return;return{'type':'format','content':c(_0x54e346,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x55fa68{['afterInit'](){const _0x5b4eaa=this['editor'];if(!_0x5b4eaa['plugins']['has']('ImageStyleEditing'))return;const _0x24e75a=_0x5b4eaa['plugins']['get']('TrackChangesEditing'),_0x2dd361=_0x5b4eaa['plugins']['get']('ImageUtils'),_0x407fd3={};_0x24e75a['enableCommand']('imageStyle',(_0x483aae,_0x31001d)=>{const _0x48b11b=_0x5b4eaa['plugins']['get']('Users')['me'],_0x4bee5b=_0x5b4eaa['commands']['get']('imageStyle');let _0x2b4adc=_0x2dd361['getClosestSelectedImageElement'](_0x5b4eaa['model']['document']['selection']),_0xe3af2e=_0x5b4eaa['model']['createRangeOn'](_0x2b4adc),_0x33f9bd=_0x4bee5b['value'];if(_0x33f9bd==_0x31001d['value'])return;const _0x330d5a={'commandName':'imageStyle','commandParams':[_0x31001d],'formatGroupId':_0x5e3891()};_0x5b4eaa['model']['change'](()=>{if(_0x24e75a['getSuggestions']()['filter'](_0x5007b7=>_0x5007b7['isInContent']&&_0x48b11b==_0x5007b7['author']&&('formatBlock'==_0x5007b7['type']||'formatInline'==_0x5007b7['type'])&&('imageStylePreApply'==_0x5007b7['subType']||'imageStylePostApply'==_0x5007b7['subType'])&&_0x5007b7['getFirstRange']()['isEqual'](_0xe3af2e))['forEach'](_0x30821c=>_0x24e75a['discardSuggestion'](_0x30821c['head'])),_0x2b4adc=_0x2dd361['getClosestSelectedImageElement'](_0x5b4eaa['model']['document']['selection']),_0xe3af2e=_0x5b4eaa['model']['createRangeOn'](_0x2b4adc),_0x4bee5b['refresh'](),_0x5b4eaa['commands']['get']('imageTypeInline')['refresh'](),_0x5b4eaa['commands']['get']('imageTypeBlock')['refresh'](),_0x33f9bd=_0x4bee5b['value'],_0x33f9bd!=_0x31001d['value'])return _0x2dd361['isInlineImage'](_0x2b4adc)&&_0x4bee5b['shouldConvertImageType'](_0x31001d['value'],_0x2b4adc)?(_0x483aae({..._0x31001d,'setImageSizes':!0x1}),_0x2b4adc=_0x2dd361['getClosestSelectedImageElement'](_0x5b4eaa['model']['document']['selection']),void _0x24e75a['markBlockFormat'](_0x2b4adc,{..._0x330d5a,'commandReversedParams':[{'value':_0x33f9bd||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2dd361['isBlockImage'](_0x2b4adc)?_0x24e75a['markBlockFormat'](_0x2b4adc,_0x330d5a,[],'imageStylePostApply'):_0x24e75a['markInlineFormat'](_0xe3af2e,_0x330d5a,'imageStylePostApply'));});});for(const _0x5073ee of _0x5b4eaa['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x407fd3[_0x5073ee['name']]=_0x5073ee['title']['toLowerCase']();_0x24e75a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x24e75a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x24e75a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x24e75a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x57c32e])=>{_0x2dd361['setImageNaturalSizeAttributes'](_0x57c32e['getContainedElement']());}),_0x24e75a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2ae31e,_0x4489b6)=>{_0x24e75a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2ae31e,{'commandName':_0x4489b6['commandName'],'commandParams':_0x4489b6['commandReversedParams']});}),_0x24e75a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x661483,_0xc9967b){if(_0x4a8e13(_0x661483,_0xc9967b))return[_0x661483,_0xc9967b];if(_0x4a8e13(_0xc9967b,_0x661483))return[_0xc9967b,_0x661483];return null;});const _0x3111f5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4a8e13(_0x2d8eb3,_0x50db22){const _0xc4cd5e=_0x3111f5['findIndex'](({type:_0x51d4a7,subType:_0x47d6dd})=>_0x2d8eb3['type']==_0x51d4a7&&_0x2d8eb3['subType']==_0x47d6dd),_0x5d7153=_0x3111f5['findIndex'](({type:_0x5649cd,subType:_0x32afa1})=>_0x50db22['type']==_0x5649cd&&_0x50db22['subType']==_0x32afa1);if(_0xc4cd5e<0x0||_0x5d7153<0x0)return!0x1;const _0x2d6576=_0x2d8eb3['getFirstRange'](),_0x23176=_0x50db22['getFirstRange']();if((0x0==_0xc4cd5e||0x1==_0xc4cd5e)&&0x2==_0x5d7153&&_0x2d6576['isIntersecting'](_0x23176))return!0x0;if(0x2==_0xc4cd5e&&0x3==_0x5d7153){const _0x5f2095=_0x24e75a['_findSuggestions'](_0x2d6576,'insertion')['filter'](({suggestion:_0x5284ff,meta:_0x11a916})=>_0x11a916['isOwn']&&'convertInlineImageToBlock'==_0x5284ff['subType']);if(_0x5f2095['length']>0x1&&_0x23176['end']['isEqual'](_0x2d6576['start']))return!0x0;if(0x1==_0x5f2095['length']&&(_0x2d6576['start']['isEqual'](_0x23176['end'])||_0x2d6576['end']['isEqual'](_0x23176['start'])))return!0x0;}if(0x3==_0xc4cd5e&&0x3==_0x5d7153&&_0x2d6576['start']['isBefore'](_0x23176['start'])){const _0x1c9f3b=_0x2d6576['end']['nodeAfter'],_0x4cb331=_0x23176['start']['nodeBefore'];return _0x2dd361['isBlockImage'](_0x1c9f3b)&&_0x1c9f3b===_0x4cb331;}return!0x1;}_0x5b4eaa['model']['document']['registerPostFixer'](()=>{let _0x31bb69=!0x1;const _0x3f1bfb=Array['from'](_0x5b4eaa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32745e,data:_0x16e9ec}of _0x3f1bfb){const {group:_0x5e0ab6,type:_0x5d1def,subType:_0x35ac72,id:_0x18903f}=_0x24e75a['_splitMarkerName'](_0x32745e);if('suggestion'==_0x5e0ab6&&_0x24e75a['hasSuggestion'](_0x18903f)){if('formatBlock'==_0x5d1def&&('imageStylePreApply'==_0x35ac72||'imageStylePostApply'==_0x35ac72)){const _0x1f21c9=_0x24e75a['getSuggestion'](_0x18903f);if(_0x16e9ec['newRange']){const _0x75e422=_0x1f21c9['getFirstRange']()['getContainedElement']();if(_0x2dd361['isBlockImage'](_0x75e422))continue;_0x24e75a['discardSuggestion'](_0x1f21c9),_0x31bb69=!0x0;}}if('insertion'==_0x5d1def&&'imageCaption'==_0x35ac72&&!_0x16e9ec['newRange']){const _0x362a48=_0x24e75a['getSuggestion'](_0x18903f);_0x362a48['next']&&_0x362a48['next']['isInContent']&&(_0x24e75a['discardSuggestion'](_0x362a48['next']),_0x31bb69=!0x0);}}}return _0x31bb69;}),this['_registerLegacyDescription'](_0x407fd3);}['_registerLegacyDescription'](_0x28dedb){const _0x2480ad=this['editor'],_0x205e40=_0x2480ad['locale'];_0x2480ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x593598=>{if('formatBlock'!=_0x593598['type']&&'formatInline'!=_0x593598['type'])return;const {data:_0x4c580e}=_0x593598;if(!_0x4c580e||'imageStyle'!=_0x4c580e['commandName'])return;const _0x5ba2bf=_0x4c580e['commandParams'][0x0]['value'];return _0x3d65c5('side'===_0x5ba2bf?c(_0x205e40,'FORMAT_SIDE_IMAGE'):_0x28dedb[_0x5ba2bf]||_0x5ba2bf);function _0x3d65c5(_0x5a4024){return{'type':'format','content':c(_0x205e40,'*Format:*\x20%0',_0x5a4024)};}});}}class ut extends _0x55fa68{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x544811){super(_0x544811),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x25ad58=this['editor'],_0x23e8eb=_0x25ad58['commands']['get']('importWord'),_0x48e6d1=_0x25ad58['commands']['get']('trackChanges');_0x23e8eb&&(_0x23e8eb['on']('execute',(_0x454e85,[,_0x4fdaf1])=>{this['_trackChangesValueDuringImport']=_0x48e6d1['value'],_0x4fdaf1['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x23e8eb,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x23e8eb,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x48e6d1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x25ad58['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3f9e09,_0x2ad0cd){const {suggestions:_0x367699}=_0x2ad0cd,_0x1c6453=this['editor']['commands']['get']('trackChanges'),_0x4872c9=_0x1c6453['value'];this['_trackChangesValueDuringImport']!==_0x4872c9&&(_0x1c6453['execute'](),this['_trackChangesExecuted']=!0x0),_0x367699&&_0x367699['forEach'](({id:_0x349932,type:_0x1e6f85,author:_0x4478ca,created_at:_0x3d98fb})=>{const _0x30c3d3={'id':_0x349932,'type':_0x1e6f85,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4478ca,'createdAt':_0x3d98fb?new Date(_0x3d98fb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x30c3d3);});}}class ft extends _0x55fa68{['afterInit'](){const _0x5c811f=this['editor'],_0x5eec09=_0x5c811f['plugins']['get']('TrackChangesEditing');if(_0x5c811f['plugins']['has']('IndentEditing')&&(_0x5eec09['enableCommand']('indent'),_0x5eec09['enableCommand']('outdent')),_0x5c811f['plugins']['has']('IndentBlock')){for(const _0x556b4a of['indentBlock','outdentBlock'])_0x5eec09['enableDefaultAttributesIntegration'](_0x556b4a);}const _0x1faa12=_0x5c811f['locale'];_0x5eec09['registerBlockAttribute']('blockIndent'),_0x5eec09['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x1faa12,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2acb2a=this['editor'],_0x4fddf9=_0x2acb2a['locale'],_0x2e864a=_0x2acb2a['plugins']['get']('TrackChangesEditing');_0x2e864a['descriptionFactory']['registerDescriptionCallback'](_0x121865=>{if('formatBlock'!=_0x121865['type'])return;const {data:_0x270dc4}=_0x121865;if(!_0x270dc4)return;if('indentBlock'!=_0x270dc4['commandName']&&'outdentBlock'!=_0x270dc4['commandName'])return;const _0xffb51d=_0x121865['getItems']()[0x0],_0x10a331=_0x2e864a['descriptionFactory']['getItemLabel'](_0xffb51d);return'indentBlock'==_0x270dc4['commandName']?{'type':'format','content':c(_0x4fddf9,'*Indent:*\x20%0',_0x10a331)}:'outdentBlock'==_0x270dc4['commandName']?{'type':'format','content':c(_0x4fddf9,'*Outdent:*\x20%0',_0x10a331)}:void 0x0;});}}class ht extends _0x55fa68{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x55fa68{['afterInit'](){const _0x383829=this['editor'];if(!_0x383829['plugins']['has']('LinkEditing'))return;const _0x5d0787=_0x383829['plugins']['get']('TrackChangesEditing'),_0x3f48f4=_0x383829['commands']['get']('link');_0x5d0787['enableDefaultAttributesIntegration']('link'),_0x5d0787['enableDefaultAttributesIntegration']('unlink'),_0x5d0787['registerInlineAttribute']('linkHref');for(const _0x30f70a of _0x3f48f4['manualDecorators'])_0x5d0787['registerInlineAttribute'](_0x30f70a['id']),_0x5d0787['descriptionFactory']['registerAttributeLabel'](_0x30f70a['id'],'link\x20('+_0x30f70a['label']['toLowerCase']()+')');_0x5d0787['descriptionFactory']['registerDescriptionCallback'](_0x49346c=>{if('attribute'!=_0x49346c['type'])return;const {data:_0x6bfbf9}=_0x49346c;if(!_0x6bfbf9||'linkHref'!=_0x6bfbf9['key'])return;const _0x13fca4=_0x6bfbf9['newValue'],_0xcf30f9=_0x383829['locale'];return{'type':'format','content':null==_0x13fca4?c(_0xcf30f9,'*Remove\x20link*'):c(_0xcf30f9,'*Set\x20link:*\x20%0','\x22'+_0x13fca4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26cddc=this['editor'],_0x1ebf4a=_0x26cddc['locale'];_0x26cddc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c752f=>{if('formatInline'!=_0x2c752f['type'])return;const {data:_0x59ecd0}=_0x2c752f;if(_0x59ecd0){if('link'==_0x59ecd0['commandName']){const _0x28e6db=_0x59ecd0['commandParams'][0x0];return{'type':'format','content':c(_0x1ebf4a,'*Set\x20link:*\x20%0','\x22'+_0x28e6db+'\x22')};}return'unlink'==_0x59ecd0['commandName']?{'type':'format','content':c(_0x1ebf4a,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x55fa68{['afterInit'](){const _0x215d16=this['editor'],_0x128c11=_0x215d16['locale'];if(!_0x215d16['plugins']['has']('LegacyListEditing'))return;const _0x139825=_0x215d16['plugins']['get']('TrackChangesEditing'),_0x52c007=_0x215d16['plugins']['has']('LegacyTodoListEditing');function _0x9e711(_0x546a76){return()=>{const _0x427a06=_0x215d16['model']['document']['selection'],_0x503db0=_0x215d16['commands']['get'](_0x546a76);if(_0x503db0['value'])return void _0x215d16['execute']('paragraph',{});const _0x2ca820=_0x546a76['slice'](0x0,-0x4),_0x5be98f=function(_0x4fdf00,_0xc29ded,_0x22e094){let _0x128393=Array['from'](_0x4fdf00)['filter'](_0x67f106=>function(_0x1e62cf,_0x354914){return _0x354914['checkChild'](_0x1e62cf['parent'],'listItem')&&!_0x354914['isObject'](_0x1e62cf);}(_0x67f106,_0x22e094));_0x128393=_0x128393['filter'](_0x1526c4=>!_0x1526c4['is']('element','listItem')||_0x1526c4['getAttribute']('listType')!=_0xc29ded);const _0x5869d5=new Set();for(const _0x2b0077 of _0x128393)_0x2b0077['is']('element','listItem')?_0x5869d5['add'](Le(_0x2b0077)):_0x5869d5['add'](_0x2b0077);return Array['from'](_0x5869d5);}(_0x427a06['getSelectedBlocks'](),_0x2ca820,_0x215d16['model']['schema']);_0x215d16['model']['change'](()=>{for(const _0x918dc of _0x5be98f)_0x139825['markBlockFormat'](_0x918dc,{'commandName':_0x546a76,'commandParams':[{'forceValue':!_0x503db0['value']}],'formatGroupId':'blockName'},Ee(_0x918dc));});};}function _0xa5d039(_0x5aaeb7){return()=>{const _0x770910=function(_0x2b5317){let _0x3554df=Array['from'](_0x2b5317);const _0x3ba54e=_0x3554df['findIndex'](_0x52291d=>'listItem'!=_0x52291d['name']);return _0x3ba54e>-0x1&&(_0x3554df=_0x3554df['slice'](0x0,_0x3ba54e)),_0x3554df;}(_0x215d16['model']['document']['selection']['getSelectedBlocks']()),_0x56e656=_0x215d16['model']['createRange'](_0x215d16['model']['createPositionAt'](_0x770910[0x0],'before'),_0x215d16['model']['createPositionAt'](_0x770910[_0x770910['length']-0x1],'end'));_0x215d16['model']['change'](()=>{_0x139825['markBlockFormat'](_0x56e656,{'commandName':_0x5aaeb7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1cf22c){const _0x59a06a=new Set();for(const _0x582143 of _0x1cf22c){let _0x33f48d=_0x582143['nextSibling'];for(;_0x33f48d&&_0x33f48d['getAttribute']('listIndent')>_0x582143['getAttribute']('listIndent');)_0x59a06a['add'](_0x33f48d),_0x33f48d=_0x33f48d['nextSibling'];}return Array['from'](_0x59a06a);}(_0x770910));});};}_0x139825['enableCommand']('numberedList',_0x9e711('numberedList')),_0x139825['enableCommand']('bulletedList',_0x9e711('bulletedList')),_0x52c007&&_0x139825['enableCommand']('todoList',_0x9e711('todoList')),_0x139825['enableCommand']('indentList',_0xa5d039('indentList')),_0x139825['enableCommand']('outdentList',_0xa5d039('outdentList')),_0x52c007&&_0x139825['enableCommand']('checkTodoList',()=>{const _0x2fe043=_0x215d16['commands']['get']('checkTodoList'),_0x13654d=Array['from'](_0x2fe043['_selectedElements']);_0x13654d['filter'](_0x15753a=>_0x15753a['getAttribute']('todoListChecked')!=_0x2fe043['value']),_0x215d16['model']['change'](()=>{for(const _0x38cff2 of _0x13654d)_0x139825['markBlockFormat'](_0x38cff2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2fe043['value']}]});});}),_0x139825['descriptionFactory']['registerElementLabel']('listItem',_0x22ac5c=>c(_0x128c11,'ELEMENT_LIST_ITEM',_0x22ac5c)),_0x139825['descriptionFactory']['registerDescriptionCallback'](_0x242f6d=>{if('formatBlock'!=_0x242f6d['type']&&'formatInline'!=_0x242f6d['type'])return;const {data:_0x425b0d}=_0x242f6d;if(_0x425b0d){if('numberedList'==_0x425b0d['commandName']||'bulletedList'==_0x425b0d['commandName']||'todoList'==_0x425b0d['commandName'])switch(_0x425b0d['commandName']['replace']('List','')){case'bulleted':return _0x5c3eb6(c(_0x128c11,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c3eb6(c(_0x128c11,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c3eb6(c(_0x128c11,'ELEMENT_TODO_LIST'));}if('indentList'==_0x425b0d['commandName'])return{'type':'format','content':c(_0x128c11,'*Indent:*\x20%0',c(_0x128c11,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x425b0d['commandName'])return{'type':'format','content':c(_0x128c11,'*Outdent:*\x20%0',c(_0x128c11,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x425b0d['commandName'])return _0x425b0d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x128c11,'*Check\x20item*')}:{'type':'format','content':c(_0x128c11,'*Uncheck\x20item*')};}function _0x5c3eb6(_0x367830){return{'type':'format','content':c(_0x128c11,'*Change\x20to:*\x20%0',_0x367830)};}});}}function Le(_0x57995f){const _0x45fa80=_0x57995f['getAttribute']('listIndent');if(0x0==_0x45fa80)return _0x57995f;let _0x191eb6=_0x57995f;for(;_0x57995f['previousSibling']&&_0x57995f['previousSibling']['is']('element','listItem');){const _0x570bf1=_0x57995f['previousSibling']['getAttribute']('listIndent');if(_0x570bf1==_0x45fa80)_0x191eb6=_0x57995f['previousSibling'];else{if(_0x570bf1<_0x45fa80)break;}_0x57995f=_0x57995f['previousSibling'];}return _0x191eb6;}function Ee(_0x40cf55){const _0x490d9c=[];if(_0x40cf55['is']('element','listItem')&&_0x40cf55['getAttribute']('listIndent')>0x0){let _0x32eb7a=_0x40cf55['nextSibling'];for(;_0x32eb7a&&'listItem'==_0x32eb7a['name']&&_0x32eb7a['getAttribute']('listIndent')==_0x40cf55['getAttribute']('listIndent');)_0x490d9c['push'](_0x32eb7a),_0x32eb7a=_0x32eb7a['nextSibling'];}return _0x490d9c;}class Q extends _0x55fa68{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xb48df9=this['editor']['config']['get']('list.properties'),_0x58175b=this['editor']['plugins']['get']('TrackChangesEditing');_0xb48df9['styles']&&_0x58175b['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xb48df9['reversed']&&_0x58175b['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xb48df9['startIndex']&&_0x58175b['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x58175b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1f6d46,_0x1383ac={}){const _0x142345=this['editor']['plugins']['get']('TrackChangesEditing'),_0x383480=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x142345['markMultiRangeBlockFormat'](_0x383480,{'commandName':'listStyle','commandParams':[{'type':_0x1383ac['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5d9824,_0x4ce421={}){const _0x7af558=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c0880=this['_getSuggestionBlocks'](_0x34664e=>_0x34664e['is']('element','listItem')&&'numbered'===_0x34664e['getAttribute']('listType'));if(_0x5c0880['length']<0x1)return;const _0x407d38=_0x5c0880['map'](_0x3d27f7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d27f7,'before'),this['editor']['model']['createPositionAt'](_0x3d27f7,0x0)));this['editor']['model']['change'](()=>{_0x7af558['markMultiRangeBlockFormat'](_0x407d38,{'commandName':'listReversed','commandParams':[{'reversed':_0x4ce421['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x28a3e1,_0x5d6466={}){const _0x47b773=this['editor']['plugins']['get']('TrackChangesEditing'),_0x574b08=this['_getSuggestionBlocks'](_0x34b8bb=>_0x34b8bb['is']('element','listItem')&&'numbered'===_0x34b8bb['getAttribute']('listType'));if(_0x574b08['length']<0x1)return;const _0x4ed761=_0x574b08['map'](_0x32f6b8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32f6b8,'before'),this['editor']['model']['createPositionAt'](_0x32f6b8,0x0)));this['editor']['model']['change'](()=>{_0x47b773['markMultiRangeBlockFormat'](_0x4ed761,{'commandName':'listStart','commandParams':[{'startIndex':_0x5d6466['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5d3844){if('formatBlock'!=_0x5d3844['type']&&'formatInline'!=_0x5d3844['type'])return;const _0x27170f=this['editor']['locale'],{data:_0x58381d}=_0x5d3844;if(!_0x58381d)return;let _0x18fe71,_0x11f93d;switch(_0x58381d['commandName']){case'listStyle':_0x18fe71='*Change\x20to:*\x20%0',_0x11f93d={'type':'format','content':c(_0x27170f,_0x18fe71,c(_0x27170f,this['_getTranslationKeyForListStyle'](_0x58381d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x18fe71=_0x58381d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x11f93d={'type':'format','content':c(_0x27170f,_0x18fe71)};break;case'listStart':_0x18fe71='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x11f93d={'type':'format','content':c(_0x27170f,_0x18fe71,_0x58381d['commandParams'][0x0]['startIndex'])};}return _0x11f93d;}['_getSuggestionBlocksForListStyle'](){const _0x49aa4f=this['editor']['plugins']['get']('LegacyListUtils');let _0x2b2eb2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2b2eb2[0x0]?.['is']('element','listItem')&&_0x2b2eb2['unshift'](..._0x49aa4f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2b2eb2[_0x2b2eb2['length']-0x1]?.['is']('element','listItem')&&_0x2b2eb2['push'](..._0x49aa4f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2b2eb2=[...new Set(_0x2b2eb2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2b2eb2=_0x2b2eb2['filter'](_0x3805da=>_0x3805da['is']('element','listItem'))),_0x2b2eb2;}['_getSuggestionBlocks'](_0x22ccfe){const _0x4177e6=this['editor']['plugins']['get']('LegacyListUtils');let _0xabf619=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x22ccfe)['map'](_0x38c8e8=>{const _0x3d7682=this['editor']['model']['createPositionAt'](_0x38c8e8,0x0);return[..._0x4177e6['getSiblingNodes'](_0x3d7682,'backward'),..._0x4177e6['getSiblingNodes'](_0x3d7682,'forward')];})['flat']();return _0xabf619=[...new Set(_0xabf619)],_0xabf619;}['_getTranslationKeyForListStyle'](_0x55ed62){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x55ed62)||'default')['toUpperCase']()+'_LIST_'+_0x55ed62['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x55fa68{['afterInit'](){const _0x217194=this['editor'];if(!_0x217194['plugins']['has']('MediaEmbedEditing'))return;const _0x40df6b=_0x217194['plugins']['get']('TrackChangesEditing'),_0x501531=_0x217194['locale'];_0x40df6b['enableCommand']('mediaEmbed'),_0x40df6b['descriptionFactory']['registerElementLabel']('media',_0x32b9c0=>c(_0x501531,'ELEMENT_MEDIA',_0x32b9c0)),_0x217194['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4248a3,{writer:_0x10aa1a,options:_0x388b34})=>{if(_0x388b34['showSuggestionHighlights'])return _0x10aa1a['createEmptyElement']('div');},'converterPriority':'high'}),_0x217194['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3665ab,_0x26ccae,_0x244f12)=>{_0x244f12['options']['showSuggestionHighlights']&&_0x3665ab['stop']();},{'priority':'high'});}}class pt extends _0x55fa68{['afterInit'](){const _0x5dc1a2=this['editor'];_0x5dc1a2['plugins']['has']('MentionEditing')&&_0x5dc1a2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x55fa68{['afterInit'](){const _0x7222e7=this['editor'];if(!_0x7222e7['plugins']['has']('MergeFieldsEditing'))return;const _0x123709=_0x7222e7['plugins']['get']('TrackChangesEditing'),_0x41c03c=_0x7222e7['locale'];_0x123709['enableCommand']('insertMergeField'),_0x123709['enableCommand']('insertMergeFieldBlock'),_0x123709['enableCommand']('insertMergeFieldImage'),_0x123709['descriptionFactory']['registerElementLabel']('mergeField',_0x720d1b=>c(_0x41c03c,'ELEMENT_MERGE_FIELD',_0x720d1b)),_0x123709['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2e7dd2=>c(_0x41c03c,'ELEMENT_MERGE_FIELD',_0x2e7dd2)),_0x123709['descriptionFactory']['registerDescriptionCallback'](_0x2bfc31=>{if('insertion'!=_0x2bfc31['type']&&'deletion'!=_0x2bfc31['type'])return;const _0x1fd031=_0x2bfc31['getContainedElement']();if(null==_0x1fd031)return;const _0x27ae9a=_0x7222e7['plugins']['get']('MergeFieldsEditing');let _0x589a01;switch(_0x27ae9a['getMergeFieldType'](_0x1fd031)){case null:return;case'image':{const _0x54a25e=_0x27ae9a['unwrapAffixes'](_0x1fd031['getAttribute']('src'));_0x589a01=_0x27ae9a['getLabel'](_0x54a25e)||_0x54a25e;break;}default:{const _0x13bbec=_0x1fd031['getAttribute']('id');_0x589a01=_0x27ae9a['getLabel'](_0x13bbec)||_0x13bbec;break;}}return'insertion'==_0x2bfc31['type']?{'type':'insertion','content':c(_0x41c03c,'*Insert:*\x20%0','\x22'+_0x589a01+'\x22\x20'+c(_0x41c03c,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x41c03c,'*Remove:*\x20%0','\x22'+_0x589a01+'\x22\x20'+c(_0x41c03c,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x55fa68{['afterInit'](){const _0x267bc7=this['editor'],_0x553f84=_0x267bc7['plugins']['get']('TrackChangesEditing');_0x267bc7['plugins']['has']('MultiLevelList')&&(_0x553f84['enableDefaultAttributesIntegration']('multiLevelList'),_0x553f84['registerBlockAttribute']('listMarkerStyle'),_0x553f84['descriptionFactory']['registerDescriptionCallback'](_0x3f3e24=>this['handleDescriptions'](_0x3f3e24)));}['handleDescriptions'](_0x53edbf){const _0x303265=this['editor']['locale'],{data:_0x5c9b08}=_0x53edbf,_0x1f53d7={'type':'format','content':''};if(_0x5c9b08&&'listMarkerStyle'==_0x5c9b08['key']){if(!_0x5c9b08['oldValue'])return{'type':'format','content':c(_0x303265,'*Set\x20format:*\x20%0',c(_0x303265,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5c9b08['newValue']+')'};if(!_0x5c9b08['newValue']){let _0x8ec2e0=_0x53edbf['head'];for(;_0x8ec2e0;){if(_0x8ec2e0['data']&&'listType'==_0x8ec2e0['data']['key']&&_0x8ec2e0['data']['newValue'])return _0x1f53d7;_0x8ec2e0=_0x8ec2e0['next'];}return{'type':'format','content':c(_0x303265,'*Remove\x20format:*\x20%0',c(_0x303265,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5c9b08['oldValue']+')'};}}}}class bt extends _0x55fa68{['afterInit'](){const _0x4d7868=this['editor'];if(!_0x4d7868['plugins']['has']('PageBreakEditing'))return;_0x4d7868['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x317661=_0x4d7868['plugins']['get']('TrackChangesEditing'),_0x25c02d=_0x4d7868['locale'];_0x317661['descriptionFactory']['registerElementLabel']('pageBreak',_0x31fb0f=>c(_0x25c02d,'ELEMENT_PAGE_BREAK',_0x31fb0f));}}class yt extends _0x55fa68{['afterInit'](){const _0x3619c1=this['editor'];if(!_0x3619c1['plugins']['has']('Paragraph'))return;const _0x482ddd=_0x3619c1['locale'],_0x4cb7a1=_0x3619c1['plugins']['get']('TrackChangesEditing');_0x4cb7a1['descriptionFactory']['registerElementLabel']('paragraph',_0x563303=>c(_0x482ddd,'ELEMENT_PARAGRAPH',_0x563303)),_0x4cb7a1['enableDefaultAttributesIntegration']('paragraph'),_0x4cb7a1['enableCommand']('insertParagraph'),_0x3619c1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3619c1),{'priority':'highest'}),_0x3619c1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5b2c9b,_0xe8873d,_0x43f30d)=>{_0x43f30d['options']['showSuggestionHighlights']&&nr(_0x3619c1,{'showActiveMarker':!0x1})(_0x5b2c9b,_0xe8873d,_0x43f30d);},{'priority':'highest'});const _0x3bb02a=_0x4cb7a1['descriptionFactory'];_0x3bb02a['registerDescriptionCallback'](_0x34a43d=>{if('insertion'!==_0x34a43d['type'])return;const {start:_0x1a323e,end:_0x87c9e4}=_0x34a43d['getFirstRange']();if(!_0x1a323e['isTouching'](_0x87c9e4)||!_0x1a323e['nodeAfter'])return;const _0x3186e8=_0x3619c1['model']['schema'],_0x5308d6=_0x1a323e['nodeAfter'];return _0x3186e8['isBlock'](_0x5308d6)&&!_0x3186e8['isLimit'](_0x5308d6)&&_0x3186e8['checkChild'](_0x5308d6,'$text')?{'type':'insertion','content':c(_0x482ddd,'*Insert:*\x20%0',_0x3bb02a['getItemLabel'](_0x5308d6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f980d=this['editor'],_0x3caa19=_0x2f980d['locale'];_0x2f980d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37cd3c=>{if('formatBlock'!=_0x37cd3c['type'])return;const {data:_0x3f8d01}=_0x37cd3c;return _0x3f8d01&&'paragraph'==_0x3f8d01['commandName']?{'type':'format','content':c(_0x3caa19,'*Change\x20to:*\x20%0',c(_0x3caa19,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x24abdb,{showActiveMarker:_0x425bb2=!0x0}={}){return(_0x2dcfbf,_0x3bfa64,_0x32e7a7)=>{const _0xe5c758=_0x24abdb['plugins']['get']('TrackChangesEditing'),_0x3798df=_0x3bfa64['markerRange']['start'],_0x7c990c=_0x3bfa64['markerRange']['end'],_0x4c7fce=_0x24abdb['model']['schema'];if(!_0x3798df['isTouching'](_0x7c990c)||!_0x3798df['nodeAfter'])return;const _0x10ea46=_0x3798df['nodeAfter'];if(_0x4c7fce['isBlock'](_0x10ea46)&&!_0x4c7fce['isLimit'](_0x10ea46)&&_0x4c7fce['checkChild'](_0x10ea46,'$text')){if(!_0x32e7a7['consumable']['consume'](_0x3bfa64['markerRange'],_0x2dcfbf['name']))return;const {authorId:_0x57a222}=_0xe5c758['_splitMarkerName'](_0x3bfa64['markerName']),_0x67fe54=_0x32e7a7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x57a222}),_0x4929e2=_0x32e7a7['mapper']['toViewPosition'](_0x7c990c);_0x425bb2&&_0xe5c758['activeMarkers']['includes'](_0x3bfa64['markerName'])&&_0x32e7a7['writer']['addClass']('ck-suggestion-marker--active',_0x67fe54),_0x32e7a7['writer']['insert'](_0x4929e2,_0x67fe54),_0x32e7a7['mapper']['bindElementToMarker'](_0x67fe54,_0x3bfa64['markerName']);}};}class jt extends _0x55fa68{['afterInit'](){const _0x2791cf=this['editor'];_0x2791cf['commands']['get']('replaceSource')&&_0x2791cf['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x55fa68{['afterInit'](){const _0x3b15d7=this['editor'];if(!_0x3b15d7['plugins']['has']('RemoveFormatEditing'))return;_0x3b15d7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13affa=this['editor'];_0x13affa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17ef97=>{if('formatBlock'!=_0x17ef97['type']&&'formatInline'!=_0x17ef97['type'])return;const {data:_0x3d7d62}=_0x17ef97;return _0x3d7d62&&'removeFormat'==_0x3d7d62['commandName']?{'type':'format','content':c(_0x13affa['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x55fa68{['afterInit'](){const _0x39bfb5=this['editor'];if(!_0x39bfb5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x51cf57=_0x39bfb5['plugins']['get']('TrackChangesEditing');_0x51cf57['enableCommand']('goToPreviousRestrictedEditingException'),_0x51cf57['enableCommand']('goToNextRestrictedEditingException');const _0x2f8bf3=_0x39bfb5['plugins']['get']('RestrictedEditingModeEditing');_0x2f8bf3['enableCommand']('trackChanges'),_0x2f8bf3['enableCommand']('acceptSuggestion'),_0x2f8bf3['enableCommand']('discardSuggestion'),_0x2f8bf3['enableCommand']('acceptAllSuggestions'),_0x2f8bf3['enableCommand']('discardAllSuggestions'),_0x2f8bf3['enableCommand']('acceptSelectedSuggestions'),_0x2f8bf3['enableCommand']('discardSelectedSuggestions');}}class It extends _0x55fa68{['afterInit'](){const _0x26e999=this['editor'];if(!_0x26e999['plugins']['has']('ShiftEnter'))return;const _0x20f77a=_0x26e999['plugins']['get']('TrackChangesEditing');_0x20f77a['enableCommand']('shiftEnter'),_0x26e999['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x26e999),{'priority':'high'}),_0x26e999['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x26e999),{'priority':'high'}),_0x26e999['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x46d8f2,_0x3022be,_0xee6961)=>{_0xee6961['options']['showSuggestionHighlights']&&je(_0x26e999,{'showActiveMarker':!0x1})(_0x46d8f2,_0x3022be,_0xee6961);}),_0x20f77a['descriptionFactory']['registerElementLabel']('softBreak',_0x2481ea=>c(_0x26e999['locale'],'ELEMENT_LINE_BREAK',_0x2481ea));}}function je(_0x20b1f5,{showActiveMarker:_0x26b1d3=!0x0}={}){return(_0x45ceac,_0x1c2865,_0x2be3f5)=>{const _0x50ba61=_0x20b1f5['plugins']['get']('TrackChangesEditing');if(!_0x2be3f5['consumable']['test'](_0x1c2865['markerRange'],_0x45ceac['name']))return;const _0x376783=_0x20b1f5['model'];for(const _0x5d4d27 of _0x1c2865['markerRange']['getItems']()){if(!_0x5d4d27['is']('element','softBreak'))continue;const _0x15a908='deletion'==_0x1c2865['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x873050}=_0x50ba61['_splitMarkerName'](_0x1c2865['markerName']),_0x115b1d=_0x2be3f5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x15a908,'data-author-id':_0x873050}),_0x557bb2=_0x2be3f5['mapper']['toViewPosition'](_0x376783['createPositionBefore'](_0x5d4d27));_0x26b1d3&&_0x50ba61['activeMarkers']['includes'](_0x1c2865['markerName'])&&_0x2be3f5['writer']['addClass']('ck-suggestion-marker--active',_0x115b1d),_0x2be3f5['writer']['insert'](_0x557bb2,_0x115b1d),_0x2be3f5['mapper']['bindElementToMarker'](_0x115b1d,_0x1c2865['markerName']);}};}class _t extends _0x55fa68{['afterInit'](){const _0x2c5427=this['editor'],_0x2cc529=_0x2c5427['model'],_0x1ecd5a=_0x2c5427['locale'];if(!_0x2c5427['plugins']['has']('StandardEditingModeEditing'))return;const _0x1712bb=_0x2c5427['plugins']['get']('TrackChangesEditing'),_0x21a34e='restrictedEditingException',_0x1f67b6=_0x2c5427['commands']['get'](_0x21a34e);_0x1712bb['enableCommand'](_0x21a34e,(_0x47ffa4,_0x4ceeb1={})=>{const _0x50de0a=_0x2cc529['document']['selection'];if(_0x50de0a['isCollapsed'])return void _0x47ffa4(_0x4ceeb1);const _0x32c4c9=void 0x0!==_0x4ceeb1['forceValue']?_0x4ceeb1['forceValue']:!_0x1f67b6['value'];_0x2cc529['change'](()=>{const _0x154a21=Array['from'](_0x50de0a['getRanges']());for(const _0x56d480 of _0x154a21){const _0x285e39=_0x32c4c9?[_0x56d480]:io(_0x21a34e,_0x56d480,_0x2cc529);for(const _0x194310 of _0x285e39)_0x1712bb['markInlineFormat'](_0x194310,{'commandName':_0x21a34e,'commandParams':[{'forceValue':_0x32c4c9}]});}});}),_0x1712bb['descriptionFactory']['registerDescriptionCallback'](_0x39b9b0=>{if('formatBlock'!=_0x39b9b0['type']&&'formatInline'!=_0x39b9b0['type'])return;const {data:_0x445998}=_0x39b9b0;return _0x445998&&_0x445998['commandName']==_0x21a34e?_0x445998['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1ecd5a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x1ecd5a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x55fa68{['afterInit'](){const _0x2d10ed=this['editor'];if(!_0x2d10ed['plugins']['has']('Style')||!_0x2d10ed['plugins']['has']('DataSchema'))return;const _0x5dfeee=_0x2d10ed['plugins']['get']('TrackChangesEditing'),_0x42764d=_0x2d10ed['locale'],_0x11d117=_0x2d10ed['config']['get']('style')||{},_0x440fd2=_0x2d10ed['plugins']['get']('GeneralHtmlSupport'),_0x5b98de=_0x2d10ed['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2d10ed['plugins']['get']('DataSchema'),_0x11d117['definitions']);_0x5dfeee['enableDefaultAttributesIntegration']('style');const _0x121275=new Set();for(const _0x16ef14 of _0x5b98de['block']){const _0x374800=_0x440fd2['getGhsAttributeNameForElement'](_0x16ef14['element']);_0x121275['add'](_0x374800);}const _0x3b0211=new Set();for(const _0x45eed4 of _0x5b98de['inline']){const _0x49acc9=_0x440fd2['getGhsAttributeNameForElement'](_0x45eed4['element']);_0x3b0211['add'](_0x49acc9);for(const _0x1fcc8f of _0x45eed4['ghsAttributes'])_0x3b0211['add'](_0x1fcc8f);}for(const _0x9ed12d of _0x121275)_0x5dfeee['registerBlockAttribute'](_0x9ed12d),_0x5dfeee['descriptionFactory']['registerAttributeLabel'](_0x9ed12d,c(_0x42764d,'FORMAT_STYLE'));for(const _0x4fddb6 of _0x3b0211)_0x5dfeee['registerInlineAttribute'](_0x4fddb6),_0x5dfeee['descriptionFactory']['registerAttributeLabel'](_0x4fddb6,c(_0x42764d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4953e2=this['editor'],_0x59a751=_0x4953e2['locale'];_0x4953e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2219f1=>{if('formatBlock'!=_0x2219f1['type']&&'formatInline'!=_0x2219f1['type'])return;const {data:_0x567d3e}=_0x2219f1;return _0x567d3e&&'style'===_0x567d3e['commandName']?_0x567d3e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x59a751,'*Set\x20format:*\x20%0',_0x567d3e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x59a751,'*Remove\x20format:*\x20%0',_0x567d3e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x55fa68{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4b8d8a){super(_0x4b8d8a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4c8a01=this['editor'],_0x3bdfc9=_0x4c8a01['model']['document']['selection'];if(!_0x4c8a01['plugins']['has']('TableEditing'))return;const _0x36e9f7=_0x4c8a01['locale'],_0xe21bfa=_0x4c8a01['plugins']['get']('TrackChangesEditing'),_0x336e67=_0x4c8a01['plugins']['get']('TableUtils');_0xe21bfa['descriptionFactory']['registerElementLabel']('table',_0x12370a=>c(_0x36e9f7,'ELEMENT_TABLE',_0x12370a)),this['_setupColumnsRowsFixing'](),_0xe21bfa['enableCommand']('insertTable'),_0xe21bfa['enableCommand']('selectTableRow'),_0xe21bfa['enableCommand']('selectTableColumn');for(const _0xe467e1 of['insertTableRowAbove','insertTableRowBelow']){const _0x5b9808=_0x4c8a01['commands']['get'](_0xe467e1);_0xe21bfa['enableCommand'](_0xe467e1,_0x583f95=>{_0x4c8a01['model']['change'](_0xea4538=>{_0x583f95();const _0x45f46d='above'===_0x5b9808['order'],_0x445e2d=_0x336e67['getSelectionAffectedTableCells'](_0x3bdfc9),_0x439dae=_0x336e67['getRowIndexes'](_0x445e2d),_0x508147=_0x45f46d?_0x439dae['first']-0x1:_0x439dae['last']+0x1,_0x16144a=_0x445e2d[0x0]['findAncestor']('table'),_0x496402=_0x336e67['createTableWalker'](_0x16144a,{'startRow':_0x508147,'endRow':_0x508147}),_0x5f5142=Array['from'](_0x496402)['map'](_0x5e2c33=>_0xea4538['createRangeOn'](_0x5e2c33['cell']));_0xe21bfa['markMultiRangeInsertion'](_0x5f5142,'tableRow');});});}for(const _0x31a5f6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x299e7f=_0x4c8a01['commands']['get'](_0x31a5f6);_0xe21bfa['enableCommand'](_0x31a5f6,_0x2be6de=>{_0x4c8a01['model']['change'](_0x129f0b=>{_0x2be6de();const _0x5006e8='left'===_0x299e7f['order'],_0x421ac2=_0x336e67['getSelectionAffectedTableCells'](_0x3bdfc9),_0x2652cb=_0x336e67['getColumnIndexes'](_0x421ac2),_0x5924b1=_0x5006e8?_0x2652cb['first']-0x1:_0x2652cb['last']+0x1,_0x8eae7b=_0x421ac2[0x0]['findAncestor']('table'),_0x5d0760=_0x336e67['createTableWalker'](_0x8eae7b,{'startRow':0x0,'column':_0x5924b1,'includeAllSlots':!0x1}),_0x5ae071=Array['from'](_0x5d0760)['map'](_0x4969b6=>_0x129f0b['createRangeOn'](_0x4969b6['cell']));_0xe21bfa['markMultiRangeInsertion'](_0x5ae071,'tableColumn');});});}for(const _0x403d71 of['removeTableRow','removeTableColumn']){const _0x53e704=_0x403d71['substr'](0xb),_0x38e384=_0x53e704['toLowerCase'](),_0x450202=_0x38e384['substr'](0x0,0x3)+'span',_0x326299='table'+_0x53e704,_0x1efc1b='min'+_0x53e704,_0x4a47bb='max'+_0x53e704;_0xe21bfa['enableCommand'](_0x403d71,()=>{_0x4c8a01['model']['change'](_0x211651=>{const _0x3678da=_0x336e67['getSelectionAffectedTableCells'](_0x3bdfc9),_0x53dd05=_0x3678da[0x0]['findAncestor']('table');let _0x5a28b2;if('removeTableRow'==_0x403d71){const _0x3cfce6=_0x336e67['getRowIndexes'](_0x3678da);_0x5a28b2={'startRow':_0x3cfce6['first'],'endRow':_0x3cfce6['last'],'includeAllSlots':!0x0};}else{const _0x4936e5=_0x336e67['getColumnIndexes'](_0x3678da);_0x5a28b2={'startColumn':_0x4936e5['first'],'endColumn':_0x4936e5['last'],'includeAllSlots':!0x0};}const _0x1e459d=_0x336e67['createTableWalker'](_0x53dd05,_0x5a28b2),_0x17f81b=Array['from'](_0x1e459d)['map'](({cell:_0xb294ef})=>_0xb294ef),_0x55c71f=Ne(_0x17f81b['filter'](_0x24d9ac=>_0x24d9ac['hasAttribute'](_0x450202))),_0x3b849b=Ne(_0x17f81b['filter'](_0x511adb=>!_0x511adb['hasAttribute'](_0x450202)))['map'](_0x48ebf0=>_0x211651['createRangeOn'](_0x48ebf0)),_0x21e0c1=_0xe21bfa['markMultiRangeDeletion'](_0x3b849b,_0x326299);if(_0x21e0c1&&('tableRow'==_0x21e0c1['subType']||'tableColumn'==_0x21e0c1['subType'])){const _0xb5f0a=this['_getSuggestionCoords'](_0x21e0c1);for(const _0x40645d of _0x55c71f){const _0x4238ff=_0x211651['createRangeOn'](_0x40645d),_0xa3e971=_0x336e67['getCellLocation'](_0x40645d),_0x1c962e=_0x40645d['getAttribute'](_0x450202)-0x1,_0x349dda=_0xb5f0a[_0x1efc1b],_0x25f4fc=_0xb5f0a[_0x4a47bb];_0x349dda<=_0xa3e971[_0x38e384]&&_0xa3e971[_0x38e384]+_0x1c962e<=_0x25f4fc&&_0x21e0c1['addRange'](_0x4238ff);}}});});}function _0x49c419(_0x4756de){const _0x1b7e9a=Array['from'](_0x3bdfc9['getRanges']())['map'](_0x1ffd02=>_0x3932e8['fromRange'](_0x1ffd02));_0x4c8a01['model']['change'](_0x556686=>{const _0x4f6792=_0x556686['batch'];_0x4756de=_0x4756de['filter'](_0x44c76e=>'$graveyard'!=_0x44c76e['root']['rootName']),_0x556686['setSelection'](_0x4756de),_0x4c8a01['commands']['get']('removeTableRow')['refresh'](),_0x4c8a01['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4c8a01['model']['enqueueChange'](()=>{_0x4c8a01['model']['enqueueChange'](_0x4f6792,_0xdc3115=>{const _0x99601e=_0x1b7e9a['filter'](_0x54a253=>'$graveyard'!=_0x54a253['root']['rootName']);_0x99601e['length']>0x0&&_0xdc3115['setSelection'](_0x99601e);for(const _0x497de9 of _0x1b7e9a)_0x497de9['detach']();});});});}function _0x5b484a(_0x5850f1){_0x4c8a01['model']['change'](_0x1de14b=>{const _0x509bc2=Array['from'](_0x3bdfc9['getRanges']())['map'](_0x3a6674=>_0x3932e8['fromRange'](_0x3a6674)),_0x1d54d5=[];for(const _0x3f2c59 of _0x5850f1)for(const _0x31e387 of _0x3f2c59['getItems']({'shallow':!0x0}))_0x1d54d5['push'](_0x31e387);for(const _0x2e6a01 of _0x1d54d5)'$graveyard'!=_0x2e6a01['root']['rootName']&&(_0x1de14b['setSelection'](_0x1de14b['createPositionAt'](_0x2e6a01,0x0)),_0x4c8a01['commands']['get']('removeTableColumn')['refresh'](),_0x4c8a01['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5d771e=_0x509bc2['filter'](_0x190f62=>'$graveyard'!=_0x190f62['root']['rootName']);_0x5d771e['length']>0x0&&_0x1de14b['setSelection'](_0x5d771e);for(const _0x55f4d9 of _0x509bc2)_0x55f4d9['detach']();});}function _0x1ae480(_0x1c9fef,_0x3cd058){return _0x3cd058['every'](_0x49809f=>_0x1c9fef['some'](_0x24f82a=>_0x24f82a['end']['isEqual'](_0x49809f['start'])||_0x49809f['end']['isEqual'](_0x24f82a['start'])));}function _0x4a4965(_0x39a87b,_0x197595){return!_0x39a87b['some'](_0x2356b1=>_0x197595['some'](_0xbf847f=>_0x2356b1['isIntersecting'](_0xbf847f)))&&_0x39a87b['some'](_0x43061b=>_0x197595['some'](_0x3f4df3=>_0x43061b['end']['isTouching'](_0x3f4df3['start'])));}_0x4c8a01['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x661226,_0x306d72,_0x149966)=>{if(!_0x149966['options']['showSuggestionHighlights'])return;const _0x4c3261=_0x306d72['item'];if(!_0x4c3261)return;const _0x2e539=_0x149966['mapper']['toViewElement'](_0x4c3261);function _0x185490(_0x42f01e){return Array['isArray'](_0x42f01e)?_0x42f01e:[_0x42f01e];}_0x2e539&&'tableCell'===_0x4c3261['name']&&_0x3c936c(_0x2e539,_0x149966['writer'],(_0xe21d68,_0x2a14eb,_0x20d5ef)=>_0x20d5ef['addClass'](_0x185490(_0x2a14eb['classes']),_0xe21d68),(_0x23c355,_0x22b0e8,_0x4c0429)=>_0x4c0429['removeClass'](_0x185490(_0x22b0e8['classes']),_0x23c355));},{'priority':'highest'}),_0xe21bfa['descriptionFactory']['registerDescriptionCallback'](_0x599b53=>{if('insertion'!=_0x599b53['type']&&'deletion'!=_0x599b53['type'])return;const _0x431d3f=_0x599b53['getContainedElement']();if(null!=_0x431d3f&&_0x431d3f['is']('element','table')){if('insertion'==_0x599b53['type']){const _0x1ab52a=_0x599b53['getItems']()['filter'](_0x206f23=>_0x206f23['is']('$textProxy'))['map'](_0x10a758=>_0x10a758['data']);if(_0x1ab52a['length'])return{'type':'insertion','content':c(_0x36e9f7,'*Insert:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1ab52a['join']('\x20')+'\x22'))};}if('deletion'==_0x599b53['type']){const _0x20e070=_0x599b53['getItems']()['filter'](_0x134ab9=>_0x134ab9['is']('$textProxy'))['map'](_0x3f4488=>_0x3f4488['data']);if(_0x20e070['length'])return{'type':'deletion','content':c(_0x36e9f7,'*Remove:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x20e070['join']('\x20')+'\x22'))};}}}),_0xe21bfa['descriptionFactory']['registerDescriptionCallback'](_0x104b56=>{if('tableRow'==_0x104b56['subType']){const _0x5d9187=_0x104b56['getItems']()['filter'](_0x2ef421=>_0x2ef421['is']('$textProxy'))['map'](_0x4b132c=>_0x4b132c['data']),_0xad9295=this['_getSuggestionCoords'](_0x104b56),_0x2602b6=_0xad9295['maxRow']-_0xad9295['minRow']+0x1;if('insertion'==_0x104b56['type'])return _0x5d9187['length']?{'type':'insertion','content':c(_0x36e9f7,'*Insert:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2602b6,'\x22'+_0x5d9187['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x36e9f7,'*Insert:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_ROW',_0x2602b6))};if('deletion'==_0x104b56['type'])return _0x5d9187['length']?{'type':'deletion','content':c(_0x36e9f7,'*Remove:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2602b6,'\x22'+_0x5d9187['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x36e9f7,'*Remove:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_ROW',_0x2602b6))};}if('tableColumn'==_0x104b56['subType']){const _0x5c960=_0x104b56['getItems']()['filter'](_0x2e0549=>_0x2e0549['is']('$textProxy'))['map'](_0x4dd5ed=>_0x4dd5ed['data']),_0x5ac586=this['_getSuggestionCoords'](_0x104b56),_0x683d=_0x5ac586['maxColumn']-_0x5ac586['minColumn']+0x1;if('insertion'==_0x104b56['type'])return _0x5c960['length']?{'type':'insertion','content':c(_0x36e9f7,'*Insert:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x683d,'\x22'+_0x5c960['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x36e9f7,'*Insert:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_COLUMN',_0x683d))};if('deletion'==_0x104b56['type'])return _0x5c960['length']?{'type':'deletion','content':c(_0x36e9f7,'*Remove:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x683d,'\x22'+_0x5c960['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x36e9f7,'*Remove:*\x20%0',c(_0x36e9f7,'ELEMENT_TABLE_COLUMN',_0x683d))};}}),_0xe21bfa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x49c419),_0xe21bfa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x49c419),_0xe21bfa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5b484a),_0xe21bfa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5b484a),_0xe21bfa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1ae480),_0xe21bfa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1ae480),_0xe21bfa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4a4965),_0xe21bfa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4a4965);}['_acceptFormatSuggestionCallbackFactory'](){const _0x51559e=this['editor'],_0x26ee40=_0x51559e['model']['document']['selection'];return(_0x52f621,_0x535309)=>{_0x51559e['model']['change'](_0x51d05a=>{const {commandName:_0x2f6f09,commandParams:_0x19d7e9}=_0x535309;let _0x2a0388=_0x52f621[0x0]['end']['nodeBefore'];_0x19d7e9&&_0x19d7e9[0x0]&&!0x1===_0x19d7e9[0x0]['forceValue']&&(_0x2a0388=_0x52f621[0x0]['start']['nodeAfter']);const _0x72b893=_0x51d05a['createRangeIn'](_0x2a0388);if('$graveyard'==_0x72b893['root']['rootName'])return;const _0x576636=Array['from'](_0x26ee40['getRanges']())['map'](_0x4db535=>_0x3932e8['fromRange'](_0x4db535));_0x51d05a['setSelection'](_0x72b893),_0x51559e['commands']['get'](_0x2f6f09)['refresh'](),_0x19d7e9['push']({'forceDefaultExecution':!0x0}),_0x51559e['execute'](_0x2f6f09,..._0x19d7e9);const _0x5895fa=_0x576636['filter'](_0x34b5fe=>'$graveyard'!=_0x34b5fe['root']['rootName']);_0x5895fa['length']>0x0&&_0x51d05a['setSelection'](_0x5895fa);for(const _0x5fec9 of _0x576636)_0x5fec9['detach']();});};}['_getCoordsForCells'](_0x1a218d){const _0x3aea52=this['editor']['plugins']['get']('TableUtils');let _0x27b5eb=Number['MAX_SAFE_INTEGER'],_0x2ed053=Number['MIN_SAFE_INTEGER'],_0x28e56a=Number['MAX_SAFE_INTEGER'],_0x35d02f=Number['MIN_SAFE_INTEGER'];for(const _0x4f35bb of _0x1a218d){if('$graveyard'==_0x4f35bb['root']['rootName'])continue;const {row:_0x1b9e06,column:_0x100fce}=_0x3aea52['getCellLocation'](_0x4f35bb),_0x1e6d6f=_0x4f35bb['hasAttribute']('rowspan')?_0x4f35bb['getAttribute']('rowspan')-0x1:0x0,_0xb55cb5=_0x4f35bb['hasAttribute']('colspan')?_0x4f35bb['getAttribute']('colspan')-0x1:0x0;_0x27b5eb=_0x1b9e06<_0x27b5eb?_0x1b9e06:_0x27b5eb,_0x2ed053=_0x1b9e06+_0x1e6d6f>_0x2ed053?_0x1b9e06+_0x1e6d6f:_0x2ed053,_0x28e56a=_0x100fce<_0x28e56a?_0x100fce:_0x28e56a,_0x35d02f=_0x100fce+_0xb55cb5>_0x35d02f?_0x100fce+_0xb55cb5:_0x35d02f;}return{'minRow':_0x27b5eb,'maxRow':_0x2ed053,'minColumn':_0x28e56a,'maxColumn':_0x35d02f};}['_setupColumnsRowsFixing'](){const _0x5a7ee3=this['editor'],_0x546a1e=_0x5a7ee3['plugins']['get']('TrackChangesEditing'),_0x192670=_0x5a7ee3['plugins']['get']('TableUtils');_0x5a7ee3['model']['document']['on']('change:data',()=>{const _0x17f8e8=Array['from'](_0x5a7ee3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3aabb6,data:_0x114ecb}of _0x17f8e8){const {group:_0x602b7b,id:_0x34c25f,subType:_0x3a6d03}=_0x546a1e['_splitMarkerName'](_0x3aabb6);if('suggestion'!=_0x602b7b)continue;if(null!=_0x114ecb['oldRange'])continue;const _0xd48f30=_0x546a1e['getSuggestion'](_0x34c25f);this['_tablePostFixingSubtypes']['includes'](_0x3a6d03)&&this['_tableSuggestions']['add'](_0xd48f30);}},{'priority':'low'});const _0xfd6653=(_0xeeecff,_0xfba966)=>{let _0x597986=!0x1;const _0xaf8a53=_0xfba966['createRangeOn'](_0xeeecff),_0x5b96b6=_0xeeecff['findAncestor']('table'),_0x58244a=_0x192670['getCellLocation'](_0xeeecff);for(const _0x96004f of this['_tableSuggestions']){const _0x429dfb=_0x96004f['subType'],_0x4b5c18=_0x429dfb['startsWith']('tablePaste'),_0x1c83cb=_0x429dfb['substr'](_0x4b5c18?0xa:0x5),_0x51f279=_0x1c83cb['toLowerCase'](),_0x549d37=_0x51f279['substr'](0x0,0x3)+'span',_0x446fb7='min'+_0x1c83cb,_0x35cf65='max'+_0x1c83cb;if(!_0x96004f['isInContent'])continue;if(_0x5b96b6!=_0x96004f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x96004f['isIntersectingWithRange'](_0xaf8a53))continue;const _0x285a7f=_0xeeecff['hasAttribute'](_0x549d37)?_0xeeecff['getAttribute'](_0x549d37)-0x1:0x0,_0x3c239f=this['_getSuggestionCoords'](_0x96004f),_0x534b20=_0x3c239f[_0x446fb7],_0x4f2770=_0x3c239f[_0x35cf65];_0x534b20<=_0x58244a[_0x51f279]&&_0x58244a[_0x51f279]+_0x285a7f<=_0x4f2770&&(_0x96004f['addRange'](_0xaf8a53),_0x597986=!0x0);}return _0x597986;};_0x5a7ee3['model']['document']['registerPostFixer'](_0x26fc9a=>{let _0x233eb0=!0x1;for(const _0x25058b of _0x5a7ee3['model']['document']['differ']['getChanges']())if('insert'==_0x25058b['type']){if('tableRow'==_0x25058b['name']){for(const _0x133194 of _0x25058b['position']['nodeAfter']['getChildren']())_0x233eb0=_0x233eb0||_0xfd6653(_0x133194,_0x26fc9a);}else'tableCell'==_0x25058b['name']&&(_0x233eb0=_0x233eb0||_0xfd6653(_0x25058b['position']['nodeAfter'],_0x26fc9a));}return _0x233eb0;});}['_getSuggestionCoords'](_0x287640){return this['_getCoordsForCells'](_0x287640['getRanges']()['map'](_0x641593=>_0x641593['start']['nodeAfter']));}}function Ne(_0xdb589e){return Array['from'](new Set(_0xdb589e)['values']());}class Nt extends _0x55fa68{static get['requires'](){return[Ct];}['afterInit'](){const _0x2b5c0c=this['editor'],_0x4e2076=_0x2b5c0c['model']['document']['selection'],_0x522279=_0x2b5c0c['locale'];if(!_0x2b5c0c['plugins']['has']('TableEditing'))return;const _0x4dbc62=_0x2b5c0c['plugins']['get']('TrackChangesEditing'),_0x1aa165=_0x2b5c0c['plugins']['get']('TableUtils'),_0x3bdf00=_0x2b5c0c['plugins']['get'](Ct);_0x3bdf00['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4dbc62['enableCommand']('mergeTableCells',()=>{const _0x2b949f=_0x1aa165['getSelectionAffectedTableCells'](_0x2b5c0c['model']['document']['selection']);_0x2b5c0c['model']['change'](()=>{_0x4dbc62['markMultiRangeBlockFormat'](_0x2b949f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2b5c0c['commands']['get']('mergeTableCells')['on']('execute',(_0x5cae80,_0xcf82d5)=>{_0x2b5c0c['commands']['get']('trackChanges')['value']&&(_0xcf82d5['length']>0x0&&_0xcf82d5[_0xcf82d5['length']-0x1]&&_0xcf82d5[_0xcf82d5['length']-0x1]['forceDefaultExecution']||_0x4dbc62['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5cae80['stop']());},{'priority':'highest'});for(const _0x45babf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x411221=_0x2b5c0c['commands']['get'](_0x45babf);_0x4dbc62['enableCommand'](_0x45babf,()=>{const _0x436b14=_0x2b5c0c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3650db=>_0x3650db['is']('element','tableCell')),_0x366cf5=_0x411221['value'];_0x2b5c0c['model']['change'](()=>{_0x4dbc62['markMultiRangeBlockFormat']([_0x436b14,_0x366cf5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x41355d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x35645f=_0x2b5c0c['commands']['get'](_0x41355d);_0x4dbc62['enableCommand'](_0x41355d,()=>{const _0x19eae6=_0x1aa165['getSelectionAffectedTableCells'](_0x2b5c0c['model']['document']['selection'])[0x0],_0x33194a=_0x19eae6['findAncestor']('table'),{column:_0x35ec82,row:_0x34df70}=_0x1aa165['getCellLocation'](_0x19eae6);let _0x4521e2=[];if('horizontally'==_0x35645f['direction']){const _0x314106=_0x1aa165['createTableWalker'](_0x33194a,{'startRow':_0x34df70,'endRow':_0x34df70,'includeAllSlots':!0x0});_0x4521e2=Array['from'](_0x314106)['map'](_0x340615=>_0x340615['cell']);}else{const _0x500aab=_0x1aa165['createTableWalker'](_0x33194a,{'column':_0x35ec82,'includeAllSlots':!0x0});_0x4521e2=Array['from'](_0x500aab)['map'](_0x360b0b=>_0x360b0b['cell']);}_0x2b5c0c['model']['change'](_0x16f3d7=>{_0x4dbc62['markBlockFormat'](_0x16f3d7['createRangeOn'](_0x19eae6),{'commandName':_0x41355d,'commandParams':[]},_0x4521e2,_0x41355d);});});}_0x4dbc62['descriptionFactory']['registerDescriptionCallback'](_0x3c9957=>{if('formatBlock'!=_0x3c9957['type']&&'formatInline'!=_0x3c9957['type'])return;const {data:_0x439378}=_0x3c9957;return _0x439378&&'mergeTableCells'==_0x439378['commandName']?{'type':'format','content':c(_0x522279,'*Merge\x20cells*')}:void 0x0;}),_0x4dbc62['descriptionFactory']['registerDescriptionCallback'](_0x2a15c4=>{if('formatBlock'!=_0x2a15c4['type']&&'formatInline'!=_0x2a15c4['type'])return;const {data:_0x2943f3}=_0x2a15c4;return _0x2943f3?'splitTableCellVertically'==_0x2943f3['commandName']?{'type':'format','content':c(_0x522279,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2943f3['commandName']?{'type':'format','content':c(_0x522279,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x432115=_0x3bdf00['_acceptFormatSuggestionCallbackFactory']();for(const _0x1aaf8a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4dbc62['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1aaf8a,'accept',_0x432115);for(const _0x30bbf7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4dbc62['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x30bbf7,'accept',_0x432115);_0x4dbc62['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4e3159=>{_0x2b5c0c['model']['change'](_0x21d993=>{const _0x5ab999=Array['from'](_0x4e2076['getRanges']())['map'](_0x22fb2e=>_0x3932e8['fromRange'](_0x22fb2e));_0x21d993['setSelection'](_0x4e3159),_0x2b5c0c['commands']['get']('mergeTableCells')['refresh'](),_0x2b5c0c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x156be1=_0x5ab999['filter'](_0x289676=>'$graveyard'!=_0x289676['root']['rootName']);_0x156be1['length']>0x0&&_0x21d993['setSelection'](_0x156be1);for(const _0x19e19a of _0x5ab999)_0x19e19a['detach']();});});for(const _0x309907 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x536a68=_0x2b5c0c['commands']['get'](_0x309907);_0x536a68['on']('set:isEnabled',(_0x4cbf56,_0x411d8f,_0x2f8f02)=>{if(_0x2f8f02){const _0x412e62=_0x2b5c0c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xac8dcd=>_0xac8dcd['is']('element','tableCell'));this['_areMergableCells'](_0x536a68['value'],_0x412e62)||(_0x4cbf56['return']=!0x1,_0x4cbf56['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5271b1=this['editor']['commands']['get']('mergeTableCells'),_0x514352=this['editor']['plugins']['get']('TableUtils');if(!_0x5271b1['isEnabled'])return!0x1;const _0x55f043=_0x514352['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x40a452 of _0x55f043)for(const _0x104997 of _0x55f043)if(_0x40a452!=_0x104997&&!this['_areMergableCells'](_0x40a452,_0x104997))return!0x1;return!0x0;}['_areMergableCells'](_0x2ce940,_0x3e2447){const _0x3f1f29=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1552c2=this['editor']['model']['createRangeOn'](_0x2ce940),_0x41f6fc=this['editor']['model']['createRangeOn'](_0x3e2447),_0x6e770c=new Set(),_0x2ccd4c=new Set();for(const _0x4bfb6d of _0x3f1f29['getSuggestions']())if(('insertion'==_0x4bfb6d['type']||'deletion'==_0x4bfb6d['type']||'mergeTableCells'==_0x4bfb6d['subType'])&&_0x4bfb6d['isInContent']){for(const _0x1de60f of _0x4bfb6d['getRanges']())_0x1de60f['containsRange'](_0x1552c2,!0x0)&&_0x6e770c['add'](_0x4bfb6d['type']+':'+_0x4bfb6d['author']['id']),_0x1de60f['containsRange'](_0x41f6fc,!0x0)&&_0x2ccd4c['add'](_0x4bfb6d['type']+':'+_0x4bfb6d['author']['id']);}if(_0x6e770c['size']!=_0x2ccd4c['size'])return!0x1;for(const _0xf7ffb0 of _0x6e770c)if(!_0x2ccd4c['has'](_0xf7ffb0))return!0x1;return!0x0;}}class Dt extends _0x55fa68{static get['requires'](){return[Ct];}['afterInit'](){const _0x235645=this['editor'];if(!_0x235645['plugins']['has']('TableEditing'))return;const _0x92e4eb=_0x235645['locale'],_0x57f1c6=_0x235645['plugins']['get']('TrackChangesEditing');_0x57f1c6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x57f1c6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x57f1c6['registerBlockAttribute']('headingRows'),_0x57f1c6['registerBlockAttribute']('headingColumns'),_0x57f1c6['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x92e4eb,'FORMAT_HEADER_ROW')),_0x57f1c6['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x92e4eb,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x19ad6c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52567d=this['editor']['plugins']['get']('TableUtils'),_0x4b3a2a=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x21362b({showActiveMarker:_0x192948=!0x0,setDataAttribute:_0x16d639=!0x0}={}){return(_0x4d65cb,_0x1c3a34,_0x3a00de)=>{const {type:_0x2dd228,id:_0x1a52ab}=_0x19ad6c['_splitMarkerName'](_0x1c3a34['markerName']),_0x38cc9c=_0x19ad6c['getSuggestion'](_0x1a52ab),_0x5da4c8=_0x38cc9c['data'];if('formatBlock'!=_0x38cc9c['type']||!_0x5da4c8||'setTableColumnHeader'!=_0x5da4c8['commandName'])return;if(_0x1c3a34['item'])return void _0x4d65cb['stop']();if(!_0x3a00de['consumable']['consume'](_0x1c3a34['markerRange'],_0x4d65cb['name']))return;const _0xb2a742=_0x1c3a34['markerRange']['start']['nodeAfter'],_0x385db7=_0x1c3a34['markerRange']['end']['nodeBefore'],_0x2c0652=_0xb2a742['parent']['parent'],{column:_0x36814c}=_0x52567d['getCellLocation'](_0xb2a742),{column:_0x41f71b}=_0x52567d['getCellLocation'](_0x385db7);for(let _0x57888b=_0x36814c;_0x57888b<=_0x41f71b;_0x57888b++){const _0x1a4bc4=_0x52567d['createTableWalker'](_0x2c0652,{'column':_0x57888b,'includeAllSlots':!0x1});for(const _0x231c08 of _0x1a4bc4){const _0x1b3c2a=_0x231c08['cell'],_0x123fd7=_0x3a00de['mapper']['toViewElement'](_0x1b3c2a);_0x3a00de['writer']['addClass']('ck-suggestion-marker-'+_0x2dd228,_0x123fd7),_0x16d639&&_0x3a00de['writer']['setAttribute']('data-suggestion',_0x1a52ab,_0x123fd7),_0x3a00de['mapper']['bindElementToMarker'](_0x123fd7,_0x1c3a34['markerName']),_0x192948&&(_0x19ad6c['activeMarkers']['includes'](_0x1c3a34['markerName'])?_0x3a00de['writer']['addClass']('ck-suggestion-marker--active',_0x123fd7):_0x3a00de['writer']['removeClass']('ck-suggestion-marker--active',_0x123fd7));}}};}_0x19ad6c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4b3a2a),_0x19ad6c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4b3a2a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x21362b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x37e62b,_0xb64ac4,_0x46b579)=>{_0x46b579['options']['showSuggestionHighlights']&&_0x21362b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x37e62b,_0xb64ac4,_0x46b579);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x144a95,_0x1ff23e,_0x5b434e)=>{const {type:_0x2e885c,id:_0x285ef8}=_0x19ad6c['_splitMarkerName'](_0x1ff23e['markerName']),_0x3c67ae=_0x19ad6c['getSuggestion'](_0x285ef8),_0x593564=_0x3c67ae['data'];if('formatBlock'!=_0x3c67ae['type']||!_0x593564||'setTableColumnHeader'!=_0x593564['commandName'])return;const _0x31e4de=_0x5b434e['mapper']['markerNameToElements'](_0x1ff23e['markerName']);if(_0x31e4de){for(const _0x2e6306 of _0x31e4de)_0x5b434e['writer']['removeClass']('ck-suggestion-marker-'+_0x2e885c,_0x2e6306),_0x5b434e['writer']['removeClass']('ck-suggestion-marker--active',_0x2e6306),_0x5b434e['writer']['removeAttribute']('data-suggestion',_0x2e6306),_0x5b434e['mapper']['unbindElementFromMarkerName'](_0x2e6306,_0x1ff23e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ef196=this['editor'],_0x11d231=_0x2ef196['locale'];function _0x35dc09(_0x44c419){return{'type':'format','content':c(_0x11d231,'*Format:*\x20%0',_0x44c419)};}_0x2ef196['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ed6bf=>{if('formatBlock'!=_0x5ed6bf['type'])return;const {data:_0x4e61b8}=_0x5ed6bf;if(_0x4e61b8){if('setTableRowHeader'==_0x4e61b8['commandName']){const _0x1c3768=_0x4e61b8['commandParams'][0x0]['forceValue'];return _0x35dc09(c(_0x11d231,_0x1c3768?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4e61b8['commandName']){const _0x144a84=_0x4e61b8['commandParams'][0x0]['forceValue'];return _0x35dc09(c(_0x11d231,_0x144a84?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x55fa68{['afterInit'](){const _0x5c5cca=this['editor'],_0x511875=_0x5c5cca['locale'],_0x2221d6=_0x5c5cca['plugins']['get']('TrackChangesEditing');function _0x55b922(_0x2596e3){return{'type':'format','content':''+c(_0x511875,'*Set\x20table\x20type:*\x20%0',_0x2596e3)};}_0x5c5cca['plugins']['has']('TableLayout')&&(_0x2221d6['enableCommand']('insertTableLayout'),_0x2221d6['enableDefaultAttributesIntegration']('tableType'),_0x2221d6['registerBlockAttribute']('tableType'),_0x2221d6['descriptionFactory']['registerElementLabel'](_0x31160f=>_0x31160f['is']('element','table')&&'layout'===_0x31160f['getAttribute']('tableType'),_0x794793=>c(_0x511875,'ELEMENT_LAYOUT_TABLE',_0x794793)),_0x2221d6['descriptionFactory']['registerDescriptionCallback'](_0x5bb2af=>{const {data:_0x3b60a5}=_0x5bb2af;if(_0x3b60a5&&'tableType'==_0x3b60a5['key'])switch(_0x3b60a5['newValue']){case'layout':return _0x55b922(c(_0x511875,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x55b922(c(_0x511875,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0xf88933=>[_0xf88933,null]));class $t extends _0x55fa68{static get['requires'](){return[Ct];}['afterInit'](){const _0x4c8f2b=this['editor'];if(!_0x4c8f2b['plugins']['has']('TableClipboard'))return;const _0x5b72fa=_0x4c8f2b['plugins']['get']('TrackChangesEditing'),_0xa3b797=_0x4c8f2b['plugins']['get']('TableUtils'),_0x48fa99=_0x4c8f2b['plugins']['get'](Ct),_0x1e15ba=_0x4c8f2b['plugins']['get']('TableClipboard'),_0x7aa2b3=_0x4c8f2b['plugins']['get']('TableSelection'),_0x248cc5=_0x4c8f2b['plugins']['get'](_0x3f99e5);_0x48fa99['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4c8f2b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4c8f2b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5ddc2b=null,_0x4dac62=!0x1;_0x248cc5['on']('contentInsertion',(_0x32fe24,_0x43a8b4)=>{_0x4dac62='paste'===_0x43a8b4['method'];}),_0x4c8f2b['model']['on']('insertContent',(_0x441b0f,_0x12c8f0)=>{if(!_0x4dac62&&null===_0x7aa2b3['getSelectedTableCells']())return;const [_0x12f40d,_0x2ce3b6]=_0x12c8f0,_0x29d7df=_0x12c8f0[_0x12c8f0['length']-0x1];_0x29d7df&&_0x29d7df['forceDefaultExecution']||_0x5b72fa['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x78806d,_0x26cd54,_0x2f6558,_0x2caf1c,_0x4d5481){if(_0x26cd54&&!_0x26cd54['is']('documentSelection'))return!0x1;const _0x2ff09c=_0x4d5481['getTableIfOnlyTableInContent'](_0x78806d,_0x2f6558);if(!_0x2ff09c||!De(_0x2ff09c,void 0x0,_0x2caf1c))return!0x1;const _0x3814b5=_0x2caf1c['getSelectionAffectedTableCells'](_0x2f6558['document']['selection']);if(!_0x3814b5['length'])return!0x1;const _0x515faf=_0x3814b5[0x0]['findAncestor']('table'),_0x5874e3=_0x2caf1c['getRowIndexes'](_0x3814b5),_0xc18b7c=_0x2caf1c['getColumnIndexes'](_0x3814b5),_0x2f62a3={'startRow':_0x5874e3['first'],'endRow':_0x5874e3['last'],'startColumn':_0xc18b7c['first'],'endColumn':_0xc18b7c['last']};return 0x1==_0x3814b5['length']&&(_0x2f62a3['endRow']+=_0x2caf1c['getRows'](_0x2ff09c)-0x1,_0x2f62a3['endColumn']+=_0x2caf1c['getColumns'](_0x2ff09c)-0x1),De(_0x515faf,_0x2f62a3,_0x2caf1c);}(_0x12f40d,_0x2ce3b6,_0x4c8f2b['model'],_0xa3b797,_0x1e15ba)&&(_0x441b0f['stop'](),_0x5ddc2b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4c8f2b['model']['change'](()=>{_0x4c8f2b['model']['insertContent'](_0x12c8f0[0x0],_0x12c8f0[0x1],_0x12c8f0[0x2],{'forceDefaultExecution':!0x0});const _0x2f71ca=_0x5e3891(),{rowInsertionRanges:_0x31cb12,columnInsertionRanges:_0x514fb8,insertionRanges:_0x4211e4,deletionRanges:_0x5539dd,cells:_0x338bb3}=_0x5ddc2b;_0x31cb12['length']&&_0x5b72fa['markMultiRangeInsertion'](_0x31cb12,'tablePasteRow',{'tablePasteChainId':_0x2f71ca}),_0x514fb8['length']&&_0x5b72fa['markMultiRangeInsertion'](_0x514fb8,'tablePasteColumn',{'tablePasteChainId':_0x2f71ca}),_0x4211e4['length']&&(_0x5b72fa['markMultiRangeInsertion'](_0x4211e4,'tablePaste',{'tablePasteChainId':_0x2f71ca,'skipNestingCheck':!0x0}),_0x4211e4['forEach'](_0xdadc47=>_0xdadc47['detach']?.())),_0x5539dd['length']&&(_0x5b72fa['markMultiRangeDeletion'](_0x5539dd,'tablePaste',{'tablePasteChainId':_0x2f71ca,'skipNestingCheck':!0x0}),_0x5539dd['forEach'](_0x21bf6d=>_0x21bf6d['detach']?.()));const _0x4cc25c=_0x5b72fa['markMultiRangeBlockFormat'](_0x338bb3['map'](({element:_0x1d9921})=>_0x1d9921),{'formatGroupId':_0x5e3891()},[],'tablePasteCell',{'tablePasteChainId':_0x2f71ca});if(_0x4cc25c){const _0x5c8510=_0x4cc25c['getMarkers'](),_0x4d11e3=[];for(const {element:_0xe55318,attributes:_0x55e6a5}of _0x338bb3){if(!_0x55e6a5)continue;const _0x5a3555=_0x4c8f2b['model']['createRangeOn'](_0xe55318),_0x4a08b0=_0x5c8510['find'](_0x31cb07=>_0x31cb07['getRange']()['isEqual'](_0x5a3555));_0x4a08b0&&_0x4d11e3['push']([_0x4a08b0['name'],_0x55e6a5]);}_0x4d11e3['length']&&_0x4cc25c['setAttribute']('markerAttributes',Object['fromEntries'](_0x4d11e3));}_0x5ddc2b=null;}));},{'priority':_0x2c6b22['high']+0xa}),_0x248cc5['on']('contentInsertion',()=>{_0x4dac62=!0x1;},{'priority':'lowest'}),_0x4c8f2b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4e7b41,_0x2ba250)=>{const [_0x18551c,_0x21cbb8,,_0x5816cc]=_0x2ba250;if(!_0x5ddc2b)return;_0x4e7b41['stop']();const _0x582582=_0x18551c['cell'],_0x1a849b=_0x21cbb8,_0x3d08ee=Ue(_0x582582),_0x56e547=Ue(_0x1a849b);_0x4e7b41['return']=_0x582582;let _0xf222ba=null,_0x4f2802=null;if(_0x56e547||_0x3d08ee){if(_0x3d08ee&&!_0x56e547){_0x5816cc['remove'](_0x582582['getChild'](0x0));for(const _0x2d918e of Array['from'](_0x1a849b['getChildren']()))_0x5816cc['insert'](_0x2d918e,_0x582582,'end');const _0x13878b=_0x5ddc2b['rowInsertionIndexes']['includes'](_0x18551c['row']),_0x2f1a1e=_0x5ddc2b['columnInsertionIndexes']['includes'](_0x18551c['column']);_0x13878b||_0x2f1a1e||(_0xf222ba=_0x3932e8['fromRange'](_0x5816cc['createRangeIn'](_0x582582)));}else _0x56e547&&!_0x3d08ee&&(_0x4f2802=_0x5816cc['createRangeIn'](_0x582582));}else{const _0x25b12e=_0x5816cc['createElement']('tableCellSuggestion'),_0x2af296=_0x5816cc['createElement']('tableCellSuggestion');_0x5816cc['wrap'](_0x5816cc['createRangeIn'](_0x582582),_0x2af296),_0x5816cc['insert'](_0x25b12e,_0x582582,0x0);for(const _0x4d4d62 of Array['from'](_0x1a849b['getChildren']()))_0x5816cc['insert'](_0x4d4d62,_0x25b12e,'end');_0xf222ba=_0x3932e8['fromRange'](_0x5816cc['createRangeOn'](_0x25b12e)),_0x4f2802=_0x3932e8['fromRange'](_0x5816cc['createRangeOn'](_0x2af296));}const _0x21e700=Array['from'](_0x1a849b['getAttributes']())['filter'](([_0x354799])=>xe['includes'](_0x354799));_0x5ddc2b['cells']['push']({'element':_0x582582,'attributes':_0x21e700['length']?Object['fromEntries'](_0x21e700):null}),_0xf222ba&&_0x5ddc2b['insertionRanges']['push'](_0xf222ba),_0x4f2802&&_0x5ddc2b['deletionRanges']['push'](_0x4f2802);},{'priority':'high'}),_0xa3b797['on']('insertColumns',(_0x51b2b7,_0x197ead)=>{const [_0x55babf,_0x3b092d={}]=_0x197ead;if(!_0x5ddc2b)return;const _0x40af15=_0x3b092d['at']||0x0,_0x35388b=_0x3b092d['columns']||0x1;_0x5ddc2b['columnInsertionIndexes']=new Array(_0x35388b)['fill'](_0x40af15)['map']((_0x39132a,_0x4b1d39)=>_0x39132a+_0x4b1d39);for(const {cell:_0x5d3b85}of _0xa3b797['createTableWalker'](_0x55babf,{'startColumn':_0x40af15,'endColumn':_0x40af15+_0x35388b-0x1}))_0x5ddc2b['columnInsertionRanges']['push'](_0x4c8f2b['model']['createRangeOn'](_0x5d3b85));},{'priority':'low'}),_0xa3b797['on']('insertRows',(_0x2076bf,_0x40db20)=>{const [_0x1271a2,_0x152a5a={}]=_0x40db20;if(!_0x5ddc2b)return;const _0x36777d=_0x152a5a['at']||0x0,_0x3b76bb=_0x152a5a['rows']||0x1;_0x5ddc2b['rowInsertionIndexes']=new Array(_0x3b76bb)['fill'](_0x36777d)['map']((_0x2a6e1f,_0xacf695)=>_0x2a6e1f+_0xacf695);for(const {cell:_0x477f32}of _0xa3b797['createTableWalker'](_0x1271a2,{'startRow':_0x36777d,'endRow':_0x36777d+_0x3b76bb-0x1}))_0x5ddc2b['rowInsertionRanges']['push'](_0x4c8f2b['model']['createRangeOn'](_0x477f32));},{'priority':'low'}),_0x5b72fa['descriptionFactory']['registerDescriptionCallback'](_0x36e2e0=>{if(_0x36e2e0['subType']&&_0x36e2e0['subType']['startsWith']('tablePaste'))return _0x36e2e0['previous']?{}:{'type':'insertion','content':c(_0x4c8f2b['locale'],'*Replace\x20table\x20cells*')};});const _0x4f3686=()=>!0x1;for(const _0x5c082f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5b72fa['_suggestionFactory']['registerCustomCallback']('insertion',_0x5c082f,'join',_0x4f3686),_0x5b72fa['_suggestionFactory']['registerCustomCallback']('deletion',_0x5c082f,'join',_0x4f3686),_0x5b72fa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5c082f,'join',_0x4f3686);_0x5b72fa['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4f3686),_0x5b72fa['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x93333d,_0x1d942b,_0x4ad1ea)=>{const _0xbcd108=_0x93333d['map'](_0x56f857=>_0x56f857['getContainedElement']())['filter'](_0x58b408=>_0x58b408),_0x38cac9=new Map(_0xbcd108['map'](_0x357e90=>[_0x357e90,null]));if(_0x5ddc2b){for(const {element:_0x50af8f,attributes:_0x3b6aab}of _0x5ddc2b['cells'])_0x3b6aab&&_0x38cac9['set'](_0x50af8f,_0x3b6aab);}else{if(_0x4ad1ea&&_0x4ad1ea['markerAttributes'])for(const [_0x1487e1,_0xfef86f]of Object['entries'](_0x4ad1ea['markerAttributes'])){const _0x49b18c=_0x4c8f2b['model']['markers']['get'](_0x1487e1),_0x427033=_0x49b18c?_0x49b18c['getRange']()['getContainedElement']():null;_0x427033&&_0x38cac9['set'](_0x427033,_0xfef86f);}}_0x4c8f2b['model']['change'](_0x11f085=>{for(const [_0x3ac077,_0xfb9d1]of _0x38cac9)_0x11f085['setAttributes']({...Oe,..._0xfb9d1},_0x3ac077);});});const _0x573fa5=(_0x283200,_0x2d918d)=>{_0x5b72fa['_suggestionFactory']['registerCustomCallback'](_0x283200,'tablePaste',_0x2d918d,(_0x3df791,_0x22893b,_0x510515)=>{_0x4c8f2b['model']['change'](_0xb8d50d=>{const _0xf9d719=[];for(const _0x20ddac of _0x3df791){const _0x1b6424=_0x20ddac['start']['nodeAfter'];_0x1b6424['is']('element','tableCellSuggestion')&&_0xf9d719['push'](_0x1b6424);}_0x5b72fa['_suggestionFactory']['getSuggestionCallback'](_0x283200,null,_0x2d918d)(_0x3df791,_0x22893b,_0x510515);for(const _0x519db4 of _0xf9d719)'$graveyard'!=_0x519db4['root']['rootName']&&_0xb8d50d['unwrap'](_0x519db4);});});};_0x573fa5('insertion','accept'),_0x573fa5('insertion','discard'),_0x573fa5('deletion','accept'),_0x573fa5('deletion','discard'),_0x5b72fa['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x26c83b=>{const _0x4602a1=_0x26c83b['map'](_0x37eb48=>_0x37eb48['getContainedElement']()),_0xac6b4a=_0x4602a1[0x0]['findAncestor']('table'),{minRow:_0x92c241,maxRow:_0x12cf0f}=_0x48fa99['_getCoordsForCells'](_0x4602a1);_0xa3b797['removeRows'](_0xac6b4a,{'at':_0x92c241,'rows':_0x12cf0f-_0x92c241+0x1});}),_0x5b72fa['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1e807d=>{const _0x3dfcfd=_0x1e807d['map'](_0x4390d4=>_0x4390d4['getContainedElement']()),_0x3845f8=_0x3dfcfd[0x0]['findAncestor']('table'),{minColumn:_0x23e6dc,maxColumn:_0x44b460}=_0x48fa99['_getCoordsForCells'](_0x3dfcfd);_0xa3b797['removeColumns'](_0x3845f8,{'at':_0x23e6dc,'columns':_0x44b460-_0x23e6dc+0x1});});const _0x2d505e=(_0x4b3f42,_0x6119b0)=>{if(!_0x6119b0['subType']||!_0x6119b0['subType']['startsWith']('tablePaste'))return;const _0x5e0238=_0x6119b0['attributes']['tablePasteChainId'],_0x49edb3=_0x5b72fa['getSuggestions']()['filter'](_0x272ff6=>_0x272ff6['isInContent']&&_0x272ff6['attributes']&&_0x272ff6['attributes']['tablePasteChainId']==_0x5e0238);_0x49edb3['length']&&_0x6119b0['getAllAdjacentSuggestions']()['length']!=_0x49edb3['length']&&_0x49edb3['reduce']((_0x48c89a,_0x2808fb)=>(_0x48c89a['next']=_0x2808fb,_0x2808fb['previous']=_0x48c89a,_0x2808fb));};function _0x132fa4(_0x48aa90,_0x524ec3=!0x0){const {id:_0x4db9c7,authorId:_0x2c1578}=_0x5b72fa['_splitMarkerName'](_0x48aa90['markerName']),_0x1ad96e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x410e60=_0x5b72fa['activeMarkers']['includes'](_0x48aa90['markerName']);return _0x410e60&&_0x1ad96e['push']('ck-suggestion-marker--active'),{'classes':_0x1ad96e,'attributes':{'data-suggestion':_0x4db9c7,'data-author-id':_0x2c1578},'priority':_0x410e60&&_0x524ec3?0xbc2:0xbb8};}_0x5b72fa['on']('suggestionLoaded',_0x2d505e,{'priority':'high'}),_0x5b72fa['on']('suggestionUnloaded',_0x2d505e,{'priority':'high'}),_0x4c8f2b['model']['document']['registerPostFixer'](()=>{let _0x533b62=!0x1;const _0x5e45e3=Array['from'](_0x4c8f2b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x36e5d2,data:_0x18bf23}of _0x5e45e3){const {group:_0x1cc663,type:_0x36f592,id:_0x45e5ff}=_0x5b72fa['_splitMarkerName'](_0x36e5d2);if('suggestion'!=_0x1cc663||'deletion'!=_0x36f592||_0x18bf23['oldRange'])continue;if(!_0x5b72fa['hasSuggestion'](_0x45e5ff))continue;const _0x5d8dda=_0x5b72fa['getSuggestion'](_0x45e5ff)['getRanges'](),_0x321a9f=_0x4c8f2b['plugins']['get']('Users')['me'];for(const _0x213f1f of _0x5b72fa['getSuggestions']()){if(!_0x213f1f['isInContent']||_0x213f1f['author']!=_0x321a9f)continue;if('formatBlock'!=_0x213f1f['type']||'tablePasteCell'!=_0x213f1f['subType'])continue;if(_0x213f1f['getRanges']()['every'](_0x258628=>_0x5d8dda['some'](_0x1e62ce=>_0x1e62ce['containsRange'](_0x258628,!0x0)))){for(const _0x3360f9 of _0x213f1f['getAllAdjacentSuggestions']())_0x3360f9['isInContent']&&(_0x3360f9['discard'](),_0x533b62=!0x0);}}}return _0x533b62;}),_0x4c8f2b['model']['document']['registerPostFixer'](_0x24cc01=>{const _0x677c33=_0x4c8f2b['commands']['get']('redo');if(!_0x677c33||!_0x677c33['_createdBatches']['has'](_0x24cc01['batch']))return!0x1;let _0x403694=!0x1;const _0xe1b19b=_0x4c8f2b['plugins']['get']('Users')['me'],_0x3b68fa=_0x4c8f2b['model']['document']['differ']['getChanges'](),_0x477b1a=Array['from'](_0x4c8f2b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1c5317,data:_0x3a76ab})=>{const {group:_0x3e88f2,subType:_0x305dc8,authorId:_0x21e318}=_0x5b72fa['_splitMarkerName'](_0x1c5317);return'suggestion'==_0x3e88f2&&'tablePaste'==_0x305dc8&&_0x21e318==_0xe1b19b['id']&&!_0x3a76ab['oldRange'];});for(const _0x45e940 of _0x3b68fa){if('insert'!=_0x45e940['type']||'tableCellSuggestion'!=_0x45e940['name']||0x1!=_0x45e940['length'])continue;const _0x46c55a=_0x24cc01['createRange'](_0x45e940['position'],_0x45e940['position']['getShiftedBy'](0x1));if(!_0x477b1a['find'](({data:_0x456365})=>_0x456365['newRange']['isEqual'](_0x46c55a))){for(const {name:_0x1b8e94,data:_0x232c0f}of _0x477b1a)if(_0x46c55a['containsRange'](_0x232c0f['newRange'])){_0x24cc01['updateMarker'](_0x1b8e94,{'range':_0x46c55a}),_0x403694=!0x0;break;}}}return _0x403694;}),_0x4c8f2b['model']['document']['registerPostFixer'](_0x4320b7=>{let _0x561a0f=!0x1;const _0x329a74=_0x4c8f2b['plugins']['get']('Users')['me'],_0x4fdc98=_0x5b72fa['getSuggestions']()['filter'](_0x28b1b5=>_0x28b1b5['isInContent']&&_0x28b1b5['author']==_0x329a74),_0x3deb37=new Set(),_0x1b9619=new Set();for(const _0x25f8fc of _0x4fdc98)if('tablePaste'==_0x25f8fc['subType'])for(const _0x4d1bf3 of _0x25f8fc['getMarkers']()){const _0x37cbfd=_0x4d1bf3['getRange']()['getContainedElement']();if(_0x37cbfd){if(_0x37cbfd['is']('element','tableCellSuggestion')&&Ue(_0x37cbfd)){_0x25f8fc['removeMarker'](_0x4d1bf3['name']),_0x3deb37['add'](_0x37cbfd),_0x561a0f=!0x0;const _0x16e856=_0x37cbfd['nextSibling'],_0x1dcac0=_0x37cbfd['previousSibling'],_0x2f6a93=_0x16e856&&_0x16e856['is']('element','tableCellSuggestion'),_0x4fae1b=_0x1dcac0&&_0x1dcac0['is']('element','tableCellSuggestion');_0x2f6a93&&!_0x3deb37['has'](_0x16e856)&&_0x1b9619['add'](_0x16e856),_0x4fae1b&&!_0x3deb37['has'](_0x1dcac0)&&_0x1b9619['add'](_0x1dcac0);}else _0x37cbfd['is']('element','paragraph')&&_0x37cbfd['isEmpty']&&(_0x25f8fc['removeMarker'](_0x4d1bf3['name']),_0x561a0f=!0x0);}}else{if('tablePasteCell'==_0x25f8fc['subType']){if(!_0x25f8fc['attributes']||!_0x25f8fc['attributes']['tablePasteChainId'])continue;const _0x565173=_0x25f8fc['attributes']['markerAttributes'];if(_0x565173&&Object['keys'](_0x565173)['length'])continue;const _0x49fb1a=_0x25f8fc['attributes']['tablePasteChainId'];let _0x114e27=!0x0,_0x58c2ab=!0x0;for(const _0x3e40c9 of _0x4fdc98)if(_0x3e40c9['subType']&&_0x3e40c9['subType']['startsWith']('tablePaste')){if(!_0x3e40c9['attributes']['tablePasteChainId']){_0x58c2ab=!0x1;break;}if(_0x3e40c9['id']!=_0x25f8fc['id']&&_0x3e40c9['attributes']['tablePasteChainId']==_0x49fb1a){_0x114e27=!0x1;break;}}_0x58c2ab&&_0x114e27&&(_0x25f8fc['removeMarkers'](),_0x561a0f=!0x0);}}for(const _0x16cfb9 of _0x3deb37)_0x4320b7['remove'](_0x16cfb9);for(const _0x31d3b0 of _0x1b9619)_0x4320b7['unwrap'](_0x31d3b0);return _0x561a0f;}),_0x4c8f2b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x14a8a1=>_0x132fa4(_0x14a8a1),'converterPriority':'high'}),_0x4c8f2b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x20bb27,_0x2e446b)=>_0x2e446b['options']['showSuggestionHighlights']?_0x132fa4(_0x20bb27,!0x1):null,'converterPriority':'high'});const _0x5971fd=_0x4c8f2b['editing']['view'];this['listenTo'](_0x5971fd['document'],'clipboardOutput',(_0x321fdd,_0x5a5586)=>{const _0x215b6d=[];for(const _0x20a3a9 of _0x5971fd['createRangeIn'](_0x5a5586['content'])['getItems']())_0x20a3a9['is']('element','suggestion-td')&&_0x215b6d['push'](_0x20a3a9);_0x5971fd['change'](_0x4a2d9f=>{for(const _0x6da6ef of _0x215b6d)_0x4a2d9f['move'](_0x4a2d9f['createRangeIn'](_0x6da6ef),_0x4a2d9f['createPositionBefore'](_0x6da6ef)),_0x4a2d9f['remove'](_0x6da6ef);});});}}function Ue(_0x18fe83){if(_0x18fe83['isEmpty'])return!0x0;const _0x2f3969=_0x18fe83['getChild'](0x0);return _0x2f3969['is']('element','paragraph')&&_0x2f3969['isEmpty'];}function De(_0xb188a5,_0x5acc41={},_0x1eb410){for(const {isAnchor:_0x457ff9,cellHeight:_0x3ee7c0,cellWidth:_0x1fec7b}of _0x1eb410['createTableWalker'](_0xb188a5,{'includeAllSlots':!0x0,..._0x5acc41}))if(!_0x457ff9||0x1!=_0x3ee7c0||0x1!=_0x1fec7b)return!0x1;return!0x0;}class Bt extends _0x55fa68{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4cd7c1=this['editor']['plugins']['get']('TrackChangesEditing');_0x4cd7c1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4cd7c1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4cd7c1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4cd7c1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4cd7c1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4cd7c1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4e7999,_0x1fca26){const _0xe5735a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf82a35=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4eb01a=_0x1fca26['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4f498c=_0xf82a35['getColumnGroupElement'](_0x4eb01a);let _0x237b2f=_0x4f498c?_0xf82a35['getTableColumnsWidths'](_0x4f498c):null,_0x3ea190=_0x4eb01a['getAttribute']('tableWidth')||null;const _0x504216=_0x1fca26['tableWidth']||_0x3ea190,_0x1239b5=_0x1fca26['columnWidths']||_0x237b2f,_0x2a336a=this['editor']['plugins']['get']('Users')['me'];for(const _0x4837ef of _0xe5735a['getSuggestions']()){const _0x568d1f=_0x4837ef['getContainedElement']();if('resizeTable'===_0x4837ef['subType']&&_0x568d1f===_0x4eb01a){_0x4837ef['author']!==_0x2a336a&&_0x4837ef['discard']();const _0x3652e9=_0x4837ef['data']['commandParams'];_0x3ea190=_0x3652e9[0x0]['tableWidth'],_0x237b2f=_0x3652e9[0x0]['columnWidths'];break;}}_0x4e7999({'table':_0x4eb01a,'tableWidth':_0x504216,'columnWidths':_0x1239b5}),_0xe5735a['markBlockFormat'](_0x4eb01a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3ea190,'columnWidths':_0x237b2f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x460092){if('formatBlock'!=_0x460092['type']&&'formatInline'!=_0x460092['type'])return;const {data:_0x1fe120}=_0x460092;if(_0x1fe120&&'resizeTable'===_0x1fe120['formatGroupId']){const _0x4b0dbf='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x4b0dbf)};}}}class Ot extends _0x55fa68{['afterInit'](){const _0x4175c4=this['editor'];_0x4175c4['plugins']['has']('Template')&&_0x4175c4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x55fa68{['afterInit'](){const _0x1910fa=this['editor'];if(!_0x1910fa['commands']['get']('insertTableOfContents'))return;_0x1910fa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x330d01=_0x1910fa['plugins']['get']('TrackChangesEditing'),_0x2bd3f7=_0x1910fa['locale'];_0x330d01['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4e4dfd=>c(_0x2bd3f7,'ELEMENT_TABLE_OF_CONTENTS',_0x4e4dfd));}}class xt extends _0x55fa68{['afterInit'](){const _0x367f4d=this['editor'];if(!_0x367f4d['plugins']['has']('Title'))return;const _0x486f2c=_0x367f4d['plugins']['get']('TrackChangesEditing');_0x486f2c['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x367f4d['locale'],'ELEMENT_TITLE')),_0x367f4d['model']['document']['registerPostFixer'](_0x5865ee=>{let _0x3d206f=!0x1;const _0xfc36f1=Array['from'](_0x367f4d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c4b99,data:_0x10a4ef}of _0xfc36f1){const {group:_0x2a5a9e}=_0x486f2c['_splitMarkerName'](_0x1c4b99);if('suggestion'!==_0x2a5a9e||!_0x10a4ef['newRange'])continue;const _0x111623=_0x10a4ef['newRange'],_0x610aa4=_0x111623['end']['nodeBefore'];if(!_0x610aa4||!_0x610aa4['is']('element','title-content'))continue;if(!_0x111623['start']['isTouching'](_0x111623['end']))continue;const _0x166f36=_0x367f4d['model']['schema']['getNearestSelectionRange'](_0x111623['end'],'forward');if(_0x166f36&&_0x166f36['isCollapsed']){const _0x18bf08=_0x5865ee['createRange'](_0x111623['start'],_0x166f36['start']);_0x18bf08['isEqual'](_0x111623)||(_0x5865ee['updateMarker'](_0x1c4b99,{'range':_0x18bf08}),_0x3d206f=!0x0);}_0x3d206f||(_0x5865ee['removeMarker'](_0x1c4b99),_0x3d206f=!0x0);}return _0x3d206f;});}}class Tt extends _0x55fa68{['afterInit'](){const _0x23ec34=this['editor'],_0x2b0e0a=_0x23ec34['plugins']['get']('TrackChangesEditing');_0x23ec34['plugins']['has']('Uploadcare')&&(_0x2b0e0a['enableCommand']('uploadcare'),_0x23ec34['plugins']['has']('UploadcareImageEdit')&&(_0x2b0e0a['enableCommand']('uploadcareImageEdit'),_0x2b0e0a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2b0e0a['registerBlockAttribute']('uploadcareImageId'),_0x2b0e0a['descriptionFactory']['registerDescriptionCallback'](_0x596334=>{if('attribute'!=_0x596334['type'])return;const {data:_0x449ad3}=_0x596334;return _0x449ad3&&'uploadcareImageId'==_0x449ad3['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x55fa68{['afterInit'](){const _0x8bbcba=this['editor'],_0x13000f=_0x8bbcba['plugins']['get']('TrackChangesEditing');_0x8bbcba['plugins']['has']('UndoEditing')&&(_0x13000f['enableCommand']('undo'),_0x13000f['enableCommand']('redo'));}}class Ut extends _0x55fa68{static get['requires'](){return[Ct];}['afterInit'](){const _0x29a6a1=this['editor'];if(!_0x29a6a1['plugins']['has']('TableCaptionEditing'))return;_0x29a6a1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x55fa68{['tableProperties'];['tableCellProperties'];constructor(_0x5ce83c){super(_0x5ce83c),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 _0x4532b4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4abb51 of this['tableProperties'])_0x4532b4['enableCommand'](_0x4abb51,(_0x4b6dec,_0x21cfda)=>{const _0x44c5b5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4abb51,[_0x44c5b5],this['tableProperties'],'tableProperties',_0x4b6dec,_0x21cfda);});_0x4532b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4532b4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4532b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x50b256,_0x4a3e09)=>this['handleDiscardAction'](this['tableProperties'],_0x50b256,_0x4a3e09)),_0x4532b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2ebce5 of this['tableCellProperties'])_0x4532b4['enableCommand'](_0x2ebce5,(_0x32a839,_0x16982f)=>{const _0x2f9f14=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2ebce5,_0x2f9f14,this['tableCellProperties'],'tableCellProperties',_0x32a839,_0x16982f);});_0x4532b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4532b4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4532b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x367f72,_0x57e1ed)=>this['handleDiscardAction'](this['tableCellProperties'],_0x367f72,_0x57e1ed)),_0x4532b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4532b4['descriptionFactory']['registerDescriptionCallback'](_0xae8c05=>this['handleSuggestionDescription'](_0xae8c05));}['_handlePropertyChange'](_0x26059e,_0x42c1be,_0x3dd7e0,_0x23eaf4,_0x306345,_0x20cb72){const _0x5d3ff8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x20cb72['batch'],()=>{for(const _0x29b63b of _0x42c1be){if(this['_getSuggestion'](_0x29b63b,_0x23eaf4))_0x306345(_0x20cb72);else{const _0x121e86={};for(const _0x24f0fc of _0x3dd7e0){const _0x48475c=_0x29b63b['getAttribute'](_0x24f0fc);void 0x0!==_0x48475c&&(_0x121e86[_0x24f0fc]=_0x48475c);}_0x306345(_0x20cb72),_0x5d3ff8['markBlockFormat'](_0x29b63b,{'commandParams':[_0x121e86]},[],_0x23eaf4);}}});}['handleDiscardAction'](_0x414219,_0x318666,_0x3584db){const _0xce954b=_0x318666[0x0]['start']['nodeAfter'],_0x52e19d=_0x3584db['commandParams'][0x0];this['editor']['model']['change'](_0x3a9b8b=>{for(const _0x4cc168 of _0x414219)void 0x0!==_0x52e19d[_0x4cc168]?_0x3a9b8b['setAttribute'](_0x4cc168,_0x52e19d[_0x4cc168],_0xce954b):_0x3a9b8b['removeAttribute'](_0x4cc168,_0xce954b);});}['handleSuggestionDescription'](_0x42d341){if(_0x42d341['data'])switch(_0x42d341['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x33cfa9,_0x5c5191){const _0x1e194a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x28a739 of _0x1e194a['getSuggestions']({'skipNotAttached':!0x0})){const _0x588a00=_0x28a739['getContainedElement']();if(_0x28a739['subType']===_0x5c5191&&_0x588a00===_0x33cfa9)return _0x28a739;}return null;}}const u='$elementName';class p extends _0x55fa68{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2aa14c,_0x49601d,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2625a6){super(_0x2625a6),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x57d0b6,_0x3a929a,_0x2ecc45,_0x4fb0c2)=>{this['_model']['change'](()=>{for(const _0x49e492 of[..._0x4fb0c2,..._0x2ecc45])this['_model']['markers']['has'](_0x49e492)&&_0x2625a6['editing']['reconvertMarker'](_0x49e492);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2625a6['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x2625a6['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2625a6['config']['get']('trackChanges.trackFormatChanges'),_0x2625a6['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2625a6['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2625a6,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x593300=this['editor'],_0x41259c=(_0xca644d,_0x249f51)=>{if('attribute'!=_0xca644d)return'ck-suggestion-marker-'+_0xca644d;const _0x1d1333=_0x249f51['split']('|')[0x0];return this['_isBlockAttribute'](_0x1d1333)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x593300['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2188c0=>{const {id:_0x16e445,authorId:_0x533b01,type:_0x49f785,subType:_0x5621b1}=this['_splitMarkerName'](_0x2188c0['markerName']),_0x50f98f=['ck-suggestion-marker',_0x41259c(_0x49f785,_0x5621b1)];let _0x32e4ec=0xbb8;return this['activeMarkers']['includes'](_0x2188c0['markerName'])&&(_0x50f98f['push']('ck-suggestion-marker--active'),_0x32e4ec=0xbc2),'deletion'==_0x49f785&&(_0x32e4ec+=0x5),{'classes':_0x50f98f,'attributes':{'data-suggestion':_0x16e445,'data-author-id':_0x533b01},'priority':_0x32e4ec};}}),_0x593300['conversion']['for']('dataDowncast')['add'](_0x393f76=>{_0x393f76['on']('addMarker:suggestion',(_0x5c9f5f,_0x18c8e1,_0xd42bbf)=>{if(!_0xd42bbf['options']['showSuggestionHighlights'])return;const _0x588bca=_0x18c8e1['item'];if(!_0x588bca)return;const _0x189dc=_0xd42bbf['mapper']['toViewElement'](_0x588bca);_0x593300['model']['schema']['isObject'](_0x588bca)&&_0x189dc&&!_0x189dc['getCustomProperty']('widget')&&_0x189dc['is']('containerElement')&&_0x27b0d2(_0x189dc,_0xd42bbf['writer']);},{'priority':'high'});}),_0x593300['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x23e5bc,_0x10c8b0)=>{if(!_0x10c8b0['options']['showSuggestionHighlights'])return null;const {type:_0x173a32,subType:_0x978824}=this['_splitMarkerName'](_0x23e5bc['markerName']);return{'classes':['ck-suggestion-marker',_0x41259c(_0x173a32,_0x978824)],'priority':0xbb8};}});const _0x341319=({showActiveMarkers:_0x684364=!0x0,isAttributeSuggestion:_0x593471=!0x1}={})=>(_0x5cd998,_0x2a3b5f,_0x167832)=>{if(!_0x2a3b5f['item'])return;const {id:_0x29c172,authorId:_0x7d6225}=this['_splitMarkerName'](_0x2a3b5f['markerName']);if(_0x593471){const _0x4c4c18=this['_suggestions']['get'](_0x29c172),_0x4afc93=this['_getAttributeKey'](_0x4c4c18);if(!this['_isBlockAttribute'](_0x4afc93))return;}if(_0x2a3b5f['item']['is']('selection'))return void _0x167832['consumable']['consume'](_0x2a3b5f['item'],_0x5cd998['name']);const _0x5be26d=_0x167832['mapper']['toViewElement'](_0x2a3b5f['item']);if(_0x2a3b5f['item']['is']('element')&&_0x593300['model']['schema']['isBlock'](_0x2a3b5f['item'])&&!_0x5be26d['getCustomProperty']('addHighlight')){_0x167832['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5be26d),_0x167832['writer']['setAttribute']('data-suggestion',_0x29c172,_0x5be26d),_0x167832['writer']['setAttribute']('data-author-id',_0x7d6225,_0x5be26d),_0x167832['mapper']['bindElementToMarker'](_0x5be26d,_0x2a3b5f['markerName']),_0x684364&&(this['activeMarkers']['includes'](_0x2a3b5f['markerName'])?_0x167832['writer']['addClass']('ck-suggestion-marker--active',_0x5be26d):_0x167832['writer']['removeClass']('ck-suggestion-marker--active',_0x5be26d));for(const _0x29c20a of _0x593300['model']['createRangeIn'](_0x2a3b5f['item'])['getItems']())_0x167832['consumable']['consume'](_0x29c20a,_0x5cd998['name']);_0x167832['consumable']['consume'](_0x2a3b5f['item'],_0x5cd998['name']);}};_0x593300['conversion']['for']('dataDowncast')['add'](_0x28f6fc=>{_0x28f6fc['on']('addMarker:suggestion:formatBlock',(_0x5a66bd,_0x1201d0,_0x3b9e32)=>{_0x3b9e32['options']['showSuggestionHighlights']&&_0x341319({'showActiveMarkers':!0x1})(_0x5a66bd,_0x1201d0,_0x3b9e32);},{'priority':'highest'});}),_0x593300['conversion']['for']('dataDowncast')['add'](_0x3f4e9a=>{_0x3f4e9a['on']('addMarker:suggestion:attribute',(_0x475d99,_0x336e4b,_0x347265)=>{_0x347265['options']['showSuggestionHighlights']&&_0x341319({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x475d99,_0x336e4b,_0x347265);},{'priority':'highest'});}),_0x593300['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x111bd1,_0x42aa13)=>_0x42aa13['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x111bd1['substr'](0xb)}}),_0x593300['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2ea25f,{writer:_0x44f1fe})=>{let _0x402e0b='suggestion:'+_0x2ea25f['getAttribute']('suggestion-type')+':'+_0x2ea25f['getAttribute']('id');return _0x2ea25f['getAttribute']('marker-count')&&(_0x402e0b+=':'+_0x2ea25f['getAttribute']('marker-count')),_0x44f1fe['createElement']('$marker',{'data-name':_0x402e0b});}}),_0x593300['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x593300['conversion']['for']('editingDowncast')['add'](_0x3e6f19=>{_0x3e6f19['on']('addMarker:suggestion:formatBlock',_0x341319(),{'priority':'high'});}),_0x593300['conversion']['for']('editingDowncast')['add'](_0x184f7d=>{_0x184f7d['on']('addMarker:suggestion:attribute',_0x341319({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x593300['conversion']['for']('editingDowncast')['add'](_0x130a76=>{_0x130a76['on']('removeMarker:suggestion:formatBlock',(_0x1069a4,_0x1bea90,_0x1aafa4)=>{const _0x58ee19=_0x1aafa4['mapper']['markerNameToElements'](_0x1bea90['markerName']);if(_0x58ee19){for(const _0x4b1a23 of _0x58ee19)_0x4b1a23['getCustomProperty']('addHighlight')||(_0x1aafa4['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4b1a23),_0x1aafa4['writer']['removeAttribute']('data-suggestion',_0x4b1a23),_0x1aafa4['writer']['removeAttribute']('data-author-id',_0x4b1a23),_0x1aafa4['mapper']['unbindElementFromMarkerName'](_0x4b1a23,_0x1bea90['markerName']));}},{'priority':'high'});}),_0x593300['conversion']['for']('editingDowncast')['add'](_0x9543aa=>{_0x9543aa['on']('removeMarker:suggestion:attribute',(_0x5d97c3,_0x42a558,_0x267023)=>{const _0x5527c4=_0x267023['mapper']['markerNameToElements'](_0x42a558['markerName']);if(!_0x5527c4)return;const {id:_0x1ec5dd}=this['_splitMarkerName'](_0x42a558['markerName']),_0x457d09=this['_suggestions']['get'](_0x1ec5dd),_0x5f526c=this['_getAttributeKey'](_0x457d09);if(this['_isBlockAttribute'](_0x5f526c)){for(const _0x42081e of _0x5527c4)_0x42081e['getCustomProperty']('addHighlight')||(_0x267023['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x42081e),_0x267023['writer']['removeAttribute']('data-suggestion',_0x42081e),_0x267023['writer']['removeAttribute']('data-author-id',_0x42081e),_0x267023['mapper']['unbindElementFromMarkerName'](_0x42081e,_0x42a558['markerName']));}},{'priority':'high'});}),_0x593300['model']['document']['registerPostFixer'](_0xa2ccdd=>{let _0x426c7f=!0x1;const _0x1b5a88=Array['from'](_0x593300['model']['document']['differ']['getChangedMarkers']()),_0x96f374=new Set();for(const {name:_0x1a4336,data:_0x395fc8}of _0x1b5a88){const {group:_0x4d5132,type:_0x2de291,subType:_0x1ad254,id:_0x16322c}=this['_splitMarkerName'](_0x1a4336);if('suggestion'!==_0x4d5132)continue;const _0x391815=this['_suggestions']['get'](_0x16322c);if(null!=_0x395fc8['newRange']){'formatInline'==_0x2de291&&(_0x426c7f=_0x426c7f||Jt(_0x395fc8['newRange'],_0x1a4336,_0xa2ccdd,_0x593300['model']['schema']));const _0x21d3b5='attribute'==_0x2de291&&this['_isBlockAttribute'](_0x1ad254['split']('|')[0x0]);if(_0x395fc8['newRange']['isCollapsed']||'$graveyard'==_0x395fc8['newRange']['root']['rootName']||'formatBlock'==_0x2de291&&!Ht(_0x395fc8['newRange'])||_0x21d3b5&&!Ht(_0x395fc8['newRange'])||'deletion'==_0x2de291&&!(!Lt(_0x314994=_0x395fc8['newRange'])&&!function(_0x361084){return _0x361084['start']['parent']==_0x361084['end']['nodeBefore']&&_0x361084['start']['isAtEnd'];}(_0x314994)))_0xa2ccdd['removeMarker'](_0x1a4336),_0x426c7f=!0x0;else{if(!_0x391815||!_0x391815['isInContent'])continue;if(_0x395fc8['newRange']&&_0x395fc8['oldRange']&&_0x395fc8['newRange']['isEqual'](_0x395fc8['oldRange']))continue;_0x96f374['add'](_0x391815);}}}var _0x314994;return _0x96f374['size']>0x0&&(_0x426c7f=!!this['_joinWithAdjacentSuggestions'](_0x96f374)||_0x426c7f),_0x426c7f;}),_0x593300['model']['document']['registerPostFixer'](_0x5b8272=>{let _0xcce039=!0x1;for(const _0x8a66d6 of _0x593300['model']['document']['differ']['getChanges']())if('insert'==_0x8a66d6['type'])for(const _0x42a13a of this['_suggestions']['values']()){if(_0x42a13a['isMultiRange']||!_0x42a13a['isInContent'])continue;const _0x412d4d='formatBlock'==_0x42a13a['type'],_0x23779e=this['_getAttributeKey'](_0x42a13a),_0x206155=_0x23779e&&this['_isBlockAttribute'](_0x23779e);if(!_0x412d4d&&!_0x206155)continue;const _0x278063=_0x42a13a['getFirstRange']();if(_0x278063['start']['parent']!=_0x278063['end']['parent']&&!_0x278063['end']['isAtEnd']){const _0x2f23cf=_0x593300['model']['createPositionAt'](_0x278063['start']['nodeAfter'],'end'),_0x502431=_0x593300['model']['createRange'](_0x278063['start'],_0x2f23cf);_0x5b8272['updateMarker'](_0x42a13a['getFirstMarker'](),{'range':_0x502431}),_0xcce039=!0x0;}}return _0xcce039;}),_0x593300['model']['document']['registerPostFixer'](_0x444364=>this['_processAttributeChanges'](_0x444364)),_0x593300['model']['document']['registerPostFixer'](_0x4ecef1=>!_0x4ecef1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4ecef1)),_0x593300['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x593300['model']['document']['on']('change:data',(_0x2f9b2f,_0xd55cbd)=>{if(!_0xd55cbd['isLocal']||_0xd55cbd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1cec42=_0x593300['model']['document']['differ']['getChanges']();if(0x0==_0x1cec42['length'])return;const _0x1ee719=[],_0xd7eccf=_0x1cec42['filter'](_0x27060f=>'attribute'==_0x27060f['type']),_0x4a6d80=_0x1cec42['filter'](_0x4a3a6a=>'insert'==_0x4a3a6a['type']&&'$text'!=_0x4a3a6a['name']);for(const _0x443a36 of _0xd7eccf)this['_isRegisteredAttribute'](_0x443a36['attributeKey'])&&_0x1ee719['push']({'key':_0x443a36['attributeKey'],'newValue':_0x443a36['attributeNewValue'],'oldValue':_0x443a36['attributeOldValue'],'range':qt(_0x443a36['range'],_0x593300['model'])});for(const _0x5ed77d of _0x4a6d80){if('rename'!=_0x5ed77d['action']&&'refresh'!=_0x5ed77d['action'])continue;const _0x5b1677=zt(_0x5ed77d['position']['nodeAfter'],_0x593300['model']),_0x2330a8=_0x5ed77d['before'];'rename'==_0x5ed77d['action']&&_0x1ee719['push']({'key':u,'newValue':_0x5ed77d['name'],'oldValue':_0x2330a8['name'],'range':_0x5b1677});for(const [_0xd70b44,_0x136716]of _0x2330a8['attributes']){if(!this['_isRegisteredAttribute'](_0xd70b44))continue;const _0x3d4850=_0x5ed77d['attributes']['get'](_0xd70b44);_0x136716!==_0x3d4850&&_0x1ee719['push']({'key':_0xd70b44,'newValue':_0x3d4850,'oldValue':_0x136716,'range':_0x5b1677});}for(const [_0x3dda69,_0x3ebd47]of _0x5ed77d['attributes'])this['_isRegisteredAttribute'](_0x3dda69)&&(_0x2330a8['attributes']['has'](_0x3dda69)||_0x1ee719['push']({'key':_0x3dda69,'newValue':_0x3ebd47,'oldValue':null,'range':_0x5b1677}));}0x0!=_0x1ee719['length']&&_0x593300['model']['enqueueChange'](_0xd55cbd,_0x46c105=>{const _0x116bdd=_0x5e3891();for(const {range:_0x411fe2,key:_0x2151fd,oldValue:_0x58ff5a,newValue:_0x4421fd}of _0x1ee719)this['markAttributeChange'](_0x411fe2,_0x2151fd,_0x58ff5a,_0x4421fd,{'groupId':_0x116bdd});this['_reduceExistingSuggestions'](_0x46c105,_0x1ee719);});},{'priority':'lowest'}),_0x593300['model']['markers']['on']('update:suggestion',(_0x5a4fe8,_0x25e86d,_0x31c8aa)=>{if(null==_0x31c8aa){const {id:_0x35f331}=this['_splitMarkerName'](_0x25e86d['name']),_0x2193c1=this['_suggestions']['get'](_0x35f331);_0x2193c1&&_0x2193c1['addMarkerName'](_0x25e86d['name']);}}),_0x593300['model']['document']['on']('change:data',()=>{const _0x3764a2=Array['from'](_0x593300['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1b037c=>'suggestion'===this['_splitMarkerName'](_0x1b037c['name'])['group']);if(0x0===_0x3764a2['length'])return;_0x3764a2['sort']((_0x4c9d36,_0x1cb4cc)=>{const _0x5b2f9c=_0x4c9d36['data']['oldRange'],_0x23abfe=_0x1cb4cc['data']['oldRange'];return null===_0x5b2f9c&&null===_0x23abfe?0x0:null===_0x5b2f9c&&null!==_0x23abfe?-0x1:null!==_0x5b2f9c&&null===_0x23abfe?0x1:_0x5b2f9c['start']['isBefore'](_0x23abfe['start'])?-0x1:0x1;});const _0xf64ae6=new Set(),_0x39b0fb=new Set();for(const {name:_0x3a3878,data:_0x1520ab}of _0x3764a2){const {id:_0x595656}=this['_splitMarkerName'](_0x3a3878);if(null===_0x1520ab['oldRange']){const _0x32142a=this['_handleNewSuggestionMarker'](_0x3a3878);_0x39b0fb['add'](_0x32142a);}else{const _0x2d2454=this['_suggestions']['get'](_0x595656);null!==_0x1520ab['newRange']||_0x2d2454['isInContent']?(_0xf64ae6['add'](_0x2d2454['head']),_0x39b0fb['add'](_0x2d2454)):this['_removeSuggestion'](_0x2d2454);}}_0x39b0fb['size']>0x0&&this['_refreshSuggestionsChain'](_0x39b0fb);for(const _0x2dd0bd of _0xf64ae6)this['fire']('suggestionChanged',_0x2dd0bd);}),_0x593300['model']['on']('applyOperation',(_0x3a1c6b,_0x222e76)=>{const _0x30178e=_0x222e76[0x0];if(!this['_suggestions']['size'])return;if(!_0x30178e['isDocumentOperation'])return;if(_0x30178e['batch']['isUndo']||!_0x30178e['batch']['isLocal'])return;let _0x46b299,_0x104676;switch(_0x30178e['type']){case'insert':_0x46b299=_0x593300['model']['createPositionAt'](_0x30178e['position']),_0x104676=_0x46b299['getShiftedBy'](_0x30178e['howMany']);break;case'split':_0x46b299=_0x593300['model']['createPositionAt'](_0x30178e['splitPosition']),_0x104676=_0x593300['model']['createPositionAt'](_0x30178e['moveTargetPosition']);break;case'move':_0x46b299=_0x593300['model']['createPositionAt'](_0x30178e['targetPosition']),_0x104676=_0x46b299['getShiftedBy'](_0x30178e['howMany']);break;default:return;}const _0x317d6b=_0x593300['model']['createRange'](_0x46b299,_0x104676);_0x593300['model']['change'](()=>{for(const {suggestion:_0x59e521,meta:_0x7127ed}of this['_findSuggestions'](_0x317d6b)){if(_0x59e521['isMultiRange'])continue;if('formatInline'==_0x59e521['type'])continue;const _0x2636b3=this['_getAttributeKey'](_0x59e521);if(_0x2636b3&&this['_isBlockAttribute'](_0x2636b3)&&'split'!=_0x30178e['type'])continue;const _0x218091=_0x59e521['data']&&_0x59e521['data']['multipleBlocks'];('formatBlock'!=_0x59e521['type']||'split'==_0x30178e['type']&&!_0x218091)&&(_0x7127ed['containsRangeInObject']||'insertion'==_0x59e521['type']&&_0x7127ed['isOwn']||_0x59e521['getFirstRange']()['containsRange'](_0x317d6b)&&this['_breakSuggestionMarker'](_0x59e521,_0x46b299,_0x104676));}});},{'priority':'lowest'}),_0x593300['model']['on']('deleteContent',(_0x2192e1,_0x5420cc)=>{const _0x372df0=_0x5420cc[0x0],_0x47a969=_0x5420cc[0x1];if(_0x47a969&&_0x47a969['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x372df0['isCollapsed'])return;const _0x2d572f=_0x593300['model']['schema'],{start:_0x5bffd2,end:_0x1ffd52}=_0x372df0['getFirstRange'](),_0x591b2e=_0x5bffd2['nodeAfter']&&_0x2d572f['isLimit'](_0x5bffd2['nodeAfter'])?null:_0x2d572f['getNearestSelectionRange'](_0x5bffd2,'forward'),_0x3d761e=_0x1ffd52['nodeBefore']&&_0x2d572f['isLimit'](_0x1ffd52['nodeBefore'])?null:_0x2d572f['getNearestSelectionRange'](_0x1ffd52,'backward'),_0x491766=_0x593300['model']['createRange'](_0x591b2e?_0x591b2e['start']:_0x5bffd2,_0x3d761e?_0x3d761e['end']:_0x1ffd52);_0x593300['model']['change'](_0xff0d57=>{this['markDeletion'](_0x491766);const _0x2de6f7=_0x593300['model']['schema']['getNearestSelectionRange'](_0x491766['start']);_0x372df0['is']('documentSelection')?_0xff0d57['setSelection'](_0x2de6f7):_0x372df0['setTo'](_0x2de6f7);}),_0x2192e1['stop']();},{'priority':_0x2c6b22['normal']+0xa}),_0x593300['model']['on']('insertContent',(_0x31dece,_0x772f0f)=>{const _0x534c66=_0x772f0f[_0x772f0f['length']-0x1];_0x534c66&&_0x534c66['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x593300['model']['change'](()=>{let _0x5a514d=_0x593300['model']['insertContent'](_0x772f0f[0x0],_0x772f0f[0x1],_0x772f0f[0x2],{'forceDefaultExecution':!0x0});if(!_0x5a514d)return;_0x31dece['return']=_0x5a514d['clone']();const _0x412a74=_0x5a514d['end']['nodeBefore'],_0x1963b6=_0x593300['model']['schema'];_0x412a74&&_0x1963b6['isBlock'](_0x412a74)&&!_0x1963b6['isObject'](_0x412a74)&&(_0x5a514d=_0x593300['model']['createRange'](_0x5a514d['start'],_0x593300['model']['createPositionAt'](_0x412a74,'end'))),this['markInsertion'](_0x5a514d);}),_0x31dece['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf14df2=new O(_0x593300,this['_suggestions']);_0x593300['commands']['add']('acceptSuggestion',_0xf14df2),this['enableCommand']('acceptSuggestion');const _0x380bdc=new R(_0x593300,this['_suggestions']);_0x593300['commands']['add']('discardSuggestion',_0x380bdc),this['enableCommand']('discardSuggestion'),_0x593300['commands']['add']('acceptAllSuggestions',new x(_0x593300,_0xf14df2,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x593300['commands']['add']('discardAllSuggestions',new x(_0x593300,_0x380bdc,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x593300['commands']['add']('acceptSelectedSuggestions',new E(_0x593300,_0xf14df2,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x593300['commands']['add']('discardSelectedSuggestions',new E(_0x593300,_0x380bdc,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x22c16c=_0x593300['plugins']['get']('CommentsRepository');this['listenTo'](_0x22c16c,'addComment',(_0x1adaca,{threadId:_0xf3f5a0})=>{const _0x188801=this['_suggestions']['get'](_0xf3f5a0);_0x188801&&_0x188801['commentThread']&&0x1===_0x188801['commentThread']['length']&&this['_updateSuggestionData'](_0xf3f5a0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x22c16c,'removeComment',(_0x55e9f4,{threadId:_0xc3d821})=>{const _0x1d58c8=this['_suggestions']['get'](_0xc3d821);_0x1d58c8&&_0x1d58c8['commentThread']&&!_0x1d58c8['commentThread']['length']&&this['_updateSuggestionData'](_0xc3d821,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2f94ac){const _0x321138=_0x13db74([0x75,0x43,0x45,0x6e,0x32,0x58,0x35,0x4d,0x33,0x6d,0x6c,0x69,0x48,0x41,0x4b,0x30,0x76,0x6f,0x5a,0x73,0x66,0x42,0x55,0x62,0x70,0x7a,0x54,0x51,0x36,0x72,0x4a,0x4f,0x52,0x68,0x6b,0x6a,0x38,0x57,0x50,0x46,0x78,0x53,0x49,0x39,0x79,0x56,0x67,0x63,0x44,0x47,0x4e,0x74,0x71,0x77,0x65,0x4c,0x34,0x37,0x59,0x61,0x31,0x64]),_0x41b076=0x60dd9c56,_0x2d31db=0x60daffce^_0x41b076,_0x4dd2bc=window[_0x13db74([0x44,0x61,0x74,0x65])][_0x13db74([0x6e,0x6f,0x77])](),_0x4c51f2=_0x2f94ac[_0x13db74([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x318010=new window[(_0x13db74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x91c0b3=>{_0x4c51f2[_0x13db74([0x6f,0x6e,0x63,0x65])](_0x13db74([0x72,0x65,0x61,0x64,0x79]),_0x91c0b3);}),_0x19cf66={[_0x13db74([0x6b,0x74,0x79])]:_0x13db74([0x45,0x43]),[_0x13db74([0x75,0x73,0x65])]:_0x13db74([0x73,0x69,0x67]),[_0x13db74([0x63,0x72,0x76])]:_0x13db74([0x50,0x2d,0x32,0x35,0x36]),[_0x13db74([0x78])]:_0x13db74([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]),[_0x13db74([0x79])]:_0x13db74([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]),[_0x13db74([0x61,0x6c,0x67])]:_0x13db74([0x45,0x53,0x32,0x35,0x36])},_0x168def=_0x4c51f2[_0x13db74([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13db74([0x67,0x65,0x74])](_0x13db74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x43747e(){let _0x460b9e,_0x3979e6=null,_0x195a0d=null;try{if(_0x168def==_0x13db74([0x47,0x50,0x4c]))return _0x13db74([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x460b9e=_0x155967(),!_0x460b9e)return _0x13db74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x460b9e[_0x13db74([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x195a0d=_0x2248c0(_0x460b9e[_0x13db74([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x460b9e[_0x13db74([0x6a,0x74,0x69])])),await _0x542cc9()?_0x10ff1e()?_0x3456a2()?_0x13db74([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4b3eea()?(_0x460b9e[_0x13db74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13db74([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3979e6=_0x551503(_0x13db74([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x460b9e[_0x13db74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13db74([0x74,0x72,0x69,0x61,0x6c])&&(_0x3979e6=_0x551503(_0x13db74([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1d4919()):_0x13db74([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13db74([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13db74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1eccda){return _0x13db74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3456a2(){const _0x29201c=[_0x13db74([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13db74([0x74,0x72,0x69,0x61,0x6c])][_0x13db74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x460b9e[_0x13db74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4dd2bc/0x3e8:0xe10*_0x2d31db;return _0x460b9e[_0x13db74([0x65,0x78,0x70])]<_0x29201c;}function _0x10ff1e(){const _0x2801e8=_0x460b9e[_0x13db74([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2801e8)return!0x1;if(_0x2801e8[_0x13db74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13db74([0x2a])))return!0x0;if(_0x2801e8[_0x13db74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13db74([0x54,0x43])))return!0x0;if(_0x2801e8[_0x13db74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13db74([0x52,0x54,0x43]))){if(_0x4256e3())return!0x0;if(_0x95e9a5()||_0x4270f2())return!0x0;}return!0x1;}function _0x4b3eea(){const _0x1191a1=_0x460b9e[_0x13db74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1191a1||0x0==_0x1191a1[_0x13db74([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x259c8a}=new URL(window[_0x13db74([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1191a1[_0x13db74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x259c8a))return!0x0;const _0x47aefd=_0x259c8a[_0x13db74([0x73,0x70,0x6c,0x69,0x74])](_0x13db74([0x2e]));return _0x1191a1[_0x13db74([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19ad31=>_0x19ad31[_0x13db74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13db74([0x2a])))[_0x13db74([0x6d,0x61,0x70])](_0x26c3a1=>_0x26c3a1[_0x13db74([0x73,0x70,0x6c,0x69,0x74])](_0x13db74([0x2e])))[_0x13db74([0x73,0x6f,0x6d,0x65])](_0x237bf1=>_0x47aefd[_0x13db74([0x65,0x76,0x65,0x72,0x79])]((_0x374bc0,_0xcc8520)=>_0x237bf1[_0xcc8520]===_0x374bc0||_0x237bf1[_0xcc8520]===_0x13db74([0x2a])));}function _0x1d4919(){return _0x3979e6&&_0x195a0d?new window[(_0x13db74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x113927,_0x417e33)=>{_0x3979e6[_0x13db74([0x74,0x68,0x65,0x6e])](_0x113927,_0x417e33),_0x195a0d[_0x13db74([0x74,0x68,0x65,0x6e])](_0x21ffa0=>{_0x21ffa0!=_0x13db74([0x56,0x61,0x6c,0x69,0x64])&&_0x113927(_0x21ffa0);},_0x417e33);}):_0x3979e6||_0x195a0d||_0x13db74([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2248c0(_0x162135,_0x23aea8){return new window[(_0x13db74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e898c=>{if(_0x2079c2())return _0x5e898c(_0x13db74([0x56,0x61,0x6c,0x69,0x64]));_0x1072fe(),_0x4c51f2[_0x13db74([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13db74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b0963=!0x1;const _0x369ff6=_0x5e3891();function _0x374570(_0x8bff29){return!!_0x8bff29&&(typeof _0x8bff29===_0x13db74([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x8bff29===_0x13db74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x8bff29[_0x13db74([0x74,0x68,0x65,0x6e])]===_0x13db74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x8bff29[_0x13db74([0x63,0x61,0x74,0x63,0x68])]===_0x13db74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x269fb4(_0x16e37c){_0x4a5c5d(_0x16e37c)[_0x13db74([0x74,0x68,0x65,0x6e])](_0x5db311=>{if(!_0x5db311||_0x5db311[_0x13db74([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13db74([0x6f,0x6b]))return _0x13db74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x18655a(_0x35f7e0(_0x369ff6+_0x23aea8))!=_0x5db311[_0x13db74([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13db74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13db74([0x56,0x61,0x6c,0x69,0x64]);})[_0x13db74([0x74,0x68,0x65,0x6e])](_0xd8a815=>(_0xee7af7(),_0xd8a815),()=>{const _0x28d475=_0x26f99f();return null==_0x28d475?(_0xee7af7(),_0x13db74([0x56,0x61,0x6c,0x69,0x64])):_0x13db74(_0x4dd2bc-_0x28d475>(0x44d11856^_0x41b076)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13db74([0x74,0x68,0x65,0x6e])](_0x5e898c)[_0x13db74([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5e898c(_0x13db74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35c5d1=0x60eb72d6^_0x41b076;function _0xee7af7(){const _0x39650e=_0x13db74([0x6c,0x6c,0x63,0x74,0x2d])+_0x18655a(_0x35f7e0(_0x162135)),_0x1c96d5=_0x1cbd17(_0x18655a(window[_0x13db74([0x4d,0x61,0x74,0x68])][_0x13db74([0x63,0x65,0x69,0x6c])](_0x4dd2bc/_0x35c5d1)));window[_0x13db74([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13db74([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39650e,_0x1c96d5);}function _0x26f99f(){const _0x504ad8=_0x13db74([0x6c,0x6c,0x63,0x74,0x2d])+_0x18655a(_0x35f7e0(_0x162135)),_0x3b54a5=window[_0x13db74([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13db74([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x504ad8);return _0x3b54a5?window[_0x13db74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cbd17(_0x3b54a5),0x10)*_0x35c5d1:null;}function _0x4a5c5d(_0x200c3a){return new window[(_0x13db74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x265193,_0x23451c)=>{_0x200c3a[_0x13db74([0x74,0x68,0x65,0x6e])](_0x265193,_0x23451c),window[_0x13db74([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x23451c,0x60dc4896^_0x41b076);});}}_0x4c51f2[_0x13db74([0x6f,0x6e])](_0x13db74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa9935f,_0x4ecf27)=>{if(_0x4ecf27[0x0]!=_0x162135)return _0x5e898c(_0x13db74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ecf27[0x1]={..._0x4ecf27[0x1],[_0x13db74([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x369ff6};},{[_0x13db74([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13db74([0x68,0x69,0x67,0x68])}),_0x4c51f2[_0x13db74([0x6f,0x6e])](_0x13db74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e3c7f=>{_0x374570(_0x1e3c7f[_0x13db74([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b0963=!0x0,_0x269fb4(_0x1e3c7f[_0x13db74([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13db74([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13db74([0x6c,0x6f,0x77])}),_0x318010[_0x13db74([0x74,0x68,0x65,0x6e])](()=>{_0x2b0963||_0x5e898c(_0x13db74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2079c2(){return _0x4c51f2[_0x13db74([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13db74([0x76,0x69,0x65,0x77])][_0x13db74([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13db74([0x61,0x75,0x74,0x6f]);}function _0x1072fe(){_0x4c51f2[_0x13db74([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13db74([0x76,0x69,0x65,0x77])][_0x13db74([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13db74([0x61,0x75,0x74,0x6f]);}}function _0x551503(_0x3e9bbd){const _0x1fdc89=[new window[(_0x13db74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e5432=>setTimeout(_0x3e5432,0x60d4a29a^_0x41b076)),_0x318010[_0x13db74([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13db74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e5505=>{let _0x116e28=0x0;_0x4c51f2[_0x13db74([0x6d,0x6f,0x64,0x65,0x6c])][_0x13db74([0x6f,0x6e])](_0x13db74([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x539e25,_0x536185)=>{_0x536185[0x0][_0x13db74([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x116e28++,_0x116e28==(0x60dd9dae^_0x41b076)&&(_0x2e5505(),_0x539e25[_0x13db74([0x6f,0x66,0x66])]());});}))];return window[_0x13db74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13db74([0x72,0x61,0x63,0x65])](_0x1fdc89)[_0x13db74([0x74,0x68,0x65,0x6e])](()=>_0x3e9bbd);}async function _0x159df6(){await _0x318010,_0x4c51f2[_0x13db74([0x6d,0x6f,0x64,0x65,0x6c])][_0x13db74([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xfddc19,_0x4c51f2[_0x13db74([0x6d,0x6f,0x64,0x65,0x6c])][_0x13db74([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xfddc19,_0x4c51f2[_0x13db74([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13db74([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4256e3(){return _0xe21cc2(_0x13db74([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3e1e13(_0x13db74([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x13db74([0x73,0x74,0x61,0x74,0x65])]==_0x13db74([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x95e9a5(){return _0xe21cc2(_0x13db74([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 _0x4270f2(){return _0xe21cc2(_0x13db74([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1a44a0(_0x4ef115){const _0x120317=_0x5ac817();_0x4c51f2[_0x120317]=_0x13db74([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ef115,_0x4ef115!=_0x13db74([0x56,0x61,0x6c,0x69,0x64])&&_0x159df6();}function _0x5ac817(){const _0x28e206=window[_0x13db74([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13db74([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13db74([0x6e,0x6f,0x77])]())[_0x13db74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13db74([0x2e]),'');let _0x58322b=_0x13db74([0x75]);for(let _0x17225e=0x0;_0x17225e<_0x28e206[_0x13db74([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17225e+=0x2){let _0x577670=window[_0x13db74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28e206[_0x13db74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17225e,_0x17225e+0x2));_0x577670>=_0x321138[_0x13db74([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x577670-=_0x321138[_0x13db74([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58322b+=_0x321138[_0x577670];}return _0x58322b;}function _0x155967(){const _0x2b763c=_0x168def[_0x13db74([0x73,0x70,0x6c,0x69,0x74])](_0x13db74([0x2e]));if(0x3!=_0x2b763c[_0x13db74([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40a1d9(_0x2b763c[0x1]);function _0x40a1d9(_0x1d18d6){const _0x2d753e=_0x2e4a77(_0x1d18d6);return _0x2d753e&&_0x5cc26f()?_0x2d753e:null;function _0x5cc26f(){const _0x159446=_0x2d753e[_0x13db74([0x6a,0x74,0x69])],_0x2f3847=window[_0x13db74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x159446[_0x13db74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x159446[_0x13db74([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e3c5d={..._0x2d753e,[_0x13db74([0x6a,0x74,0x69])]:_0x159446[_0x13db74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x159446[_0x13db74([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e3c5d[_0x13db74([0x76,0x63])],_0x35f7e0(_0x1e3c5d)==_0x2f3847;}}}async function _0x542cc9(){let _0x145d46=!0x0;try{const _0xe34fc2=_0x168def[_0x13db74([0x73,0x70,0x6c,0x69,0x74])](_0x13db74([0x2e])),[_0x41d77b,_0x1157e9,_0x3a6cde]=_0xe34fc2;return _0x2b9d37(_0x41d77b),await _0x52a54b(_0x41d77b,_0x1157e9,_0x3a6cde),_0x145d46;}catch(_0x7b91ab){return!0x1;}function _0x2b9d37(_0x4dfe02){const _0x145963=_0x2e4a77(_0x4dfe02);_0x145963&&_0x145963[_0x13db74([0x61,0x6c,0x67])]==_0x13db74([0x45,0x53,0x32,0x35,0x36])||(_0x145d46=!0x1);}async function _0x52a54b(_0x3dd165,_0x311915,_0x563e5b){const _0x3c83ea=window[_0x13db74([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13db74([0x66,0x72,0x6f,0x6d])](_0x3620fc(_0x563e5b),_0x3374c0=>_0x3374c0[_0x13db74([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d7c7f=new window[(_0x13db74([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13db74([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3dd165+_0x13db74([0x2e])+_0x311915),_0x3bdc8d=window[_0x13db74([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13db74([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3bdc8d)return;const _0x466343=await _0x3bdc8d[_0x13db74([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13db74([0x6a,0x77,0x6b]),_0x19cf66,{[_0x13db74([0x6e,0x61,0x6d,0x65])]:_0x13db74([0x45,0x43,0x44,0x53,0x41]),[_0x13db74([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13db74([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13db74([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3bdc8d[_0x13db74([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13db74([0x6e,0x61,0x6d,0x65])]:_0x13db74([0x45,0x43,0x44,0x53,0x41]),[_0x13db74([0x68,0x61,0x73,0x68])]:{[_0x13db74([0x6e,0x61,0x6d,0x65])]:_0x13db74([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x466343,_0x3c83ea,_0x1d7c7f)||(_0x145d46=!0x1);}}function _0x2e4a77(_0x3d7101){return _0x3d7101[_0x13db74([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13db74([0x65,0x79]))?JSON[_0x13db74([0x70,0x61,0x72,0x73,0x65])](_0x3620fc(_0x3d7101)):null;}function _0x3620fc(_0x317fe3){return window[_0x13db74([0x61,0x74,0x6f,0x62])](_0x317fe3[_0x13db74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13db74([0x2b]))[_0x13db74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13db74([0x2f])));}function _0x35f7e0(_0x20fea4){let _0x524026=0x1505;function _0x342229(_0x193c8a){for(let _0x42c765=0x0;_0x42c765<_0x193c8a[_0x13db74([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42c765++){const _0x5bc8d0=_0x193c8a[_0x13db74([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42c765);_0x524026=(_0x524026<<0x5)+_0x524026+_0x5bc8d0,_0x524026&=_0x524026;}}function _0x2e2d71(_0x330585){Array[_0x13db74([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x330585)?_0x330585[_0x13db74([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e2d71):_0x330585&&typeof _0x330585==_0x13db74([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13db74([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x330585)[_0x13db74([0x73,0x6f,0x72,0x74])]()[_0x13db74([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x82ce4f,_0x4f0551])=>{_0x342229(_0x82ce4f),_0x2e2d71(_0x4f0551);}):_0x342229(window[_0x13db74([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x330585));}return _0x2e2d71(_0x20fea4),_0x524026>>>0x0;}function _0x18655a(_0x5b1e92){return _0x5b1e92[_0x13db74([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13db74([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13db74([0x30]));}function _0x1cbd17(_0x311dd7){return _0x311dd7[_0x13db74([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13db74([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13db74([0x6a,0x6f,0x69,0x6e])]('');}function _0xe21cc2(_0x7cca4b){return _0x4c51f2[_0x13db74([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x13db74([0x68,0x61,0x73])](_0x7cca4b);}function _0x3e1e13(_0x9d5859){return _0x4c51f2[_0x13db74([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x13db74([0x67,0x65,0x74])](_0x9d5859);}function _0xfddc19(){}function _0x13db74(_0x50bbab){return _0x50bbab['map'](_0x3b6f4c=>String['fromCharCode'](_0x3b6f4c))['join']('');}_0x1a44a0(await _0x43747e());}(this);}set['adapter'](_0x107de6){if(this['_adapter'])throw new _0x50045d('track-changes-adapter-already-set',this);this['_adapter']=_0x107de6;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4ee885=!0x1,toJSON:_0x55f027=!0x1}={}){const _0x13ce22=[];for(const _0xf2c87f of this['_suggestions']['values']())_0x4ee885&&!_0xf2c87f['isInContent']||_0x13ce22['push'](_0xf2c87f);return _0x55f027?_0x13ce22['map'](_0x200693=>_0x200693['toJSON']()):_0x13ce22;}['getSuggestion'](_0x177d10){const _0x21fea8=this['_suggestions']['get'](_0x177d10);if(!_0x21fea8)throw new _0x50045d('track-changes-suggestion-not-found',this);return _0x21fea8;}['hasSuggestion'](_0x3dd5d6){return this['_suggestions']['has'](_0x3dd5d6);}['addSuggestionData'](_0x860cd5){const {authorId:_0x234e34,id:_0xf8dcde,attributes:_0xbcb4a6}=_0x860cd5,[_0x10037b,_0x19a488]=_0x860cd5['type']['split'](':'),_0x5a9f08=this['_suggestions']['get'](_0xf8dcde)||this['_createSuggestion'](_0x10037b,_0x19a488,_0xf8dcde,_0x234e34,_0xbcb4a6);if(this['_addThreadToSuggestion'](_0x5a9f08),this['_checkSuggestionCorrectness'](_0x5a9f08,_0x10037b,_0x19a488||null,_0x234e34),_0x5a9f08['createdAt']=_0x860cd5['createdAt'],_0x5a9f08['_isDataLoaded']=!0x0,_0xbcb4a6&&_0xbcb4a6['@external']){const _0x51ef73=_0xbcb4a6['@external'],_0x114e38=this['_getExternalAuthor'](_0x51ef73['authorName']);_0x5a9f08['authoredAt']=_0x51ef73['createdAt'],_0x5a9f08['author']=_0x114e38,_0x5a9f08['isExternal']=!0x0;}else _0x5a9f08['authoredAt']=_0x860cd5['createdAt'];switch(_0x860cd5['data']&&(_0x5a9f08['data']=_0x860cd5['data']),_0x860cd5['attributes']&&(_0x5a9f08['attributes']=_0x860cd5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5a9f08['_saved']=!0x0),this['_suggestionState']['get'](_0x5a9f08)){case'notReady':this['_suggestionState']['set'](_0x5a9f08,'dataReady');break;case'markerReady':_0x5a9f08['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5a9f08])),this['_refreshSuggestionsChain'](new Set([_0x5a9f08])),this['_suggestionState']['set'](_0x5a9f08,'ready'),this['fire']('suggestionLoaded',_0x5a9f08)):this['_suggestionState']['set'](_0x5a9f08,'removed');}return _0x5a9f08;}['acceptSuggestion'](_0x3e988a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4ff93c of _0x3e988a['getAllAdjacentSuggestions']())_0x4ff93c['accept']();});});}['discardSuggestion'](_0x4d5d3a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x32b1ce of _0x4d5d3a['getAllAdjacentSuggestions']())_0x32b1ce['discard']();});});}['enableCommand'](_0x2a92c8,_0x12d85a){const _0x498b89=this['editor']['commands']['get'](_0x2a92c8);if(!_0x498b89)throw new _0x50045d('track-changes-command-not-found',this,{'commandName':_0x2a92c8});if(this['_enabledCommands']['has'](_0x498b89))throw new _0x50045d('track-changes-enable-command-twice',this,{'commandName':_0x2a92c8});this['_enabledCommands']['add'](_0x498b89),_0x12d85a&&_0x498b89['on']('execute',(_0x2d5141,_0x31a5a8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x31a5a8['length']>0x0&&_0x31a5a8[_0x31a5a8['length']-0x1]&&_0x31a5a8[_0x31a5a8['length']-0x1]['forceDefaultExecution']?_0x31a5a8['pop']():(_0x2d5141['return']=_0x12d85a((..._0x56b46f)=>_0x498b89['execute'](..._0x56b46f,{'forceDefaultExecution':!0x0}),..._0x31a5a8),_0x2d5141['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x20949b){let _0xb71d00,_0x265188;const _0x3bd3d4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xb71d00=_0x20949b();}catch(_0x1ea884){_0x265188=_0x1ea884;}return _0x3bd3d4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x265188&&_0x50045d['rethrowUnexpectedError'](_0x265188,this),_0xb71d00;}['markInsertion'](_0xf32b0,_0x3129a9=null,_0x4dd47a={}){if(_0xf32b0['isCollapsed'])return null;const _0xd6b2ed=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x13e3c7,meta:_0x1571fb}of this['_findSuggestions'](_0xf32b0,'insertion'))if(_0x1571fb['isOwn']){if(!_0x1571fb['isNextTo']){if(_0x1571fb['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x13e3c7,_0x4dd47a))continue;return _0x13e3c7;}if(Xt(_0x13e3c7,_0x4dd47a))return _0x13e3c7;this['_breakSuggestionMarker'](_0x13e3c7,_0xf32b0['start'],_0xf32b0['end']);break;}if(_0x3129a9==_0x13e3c7['subType']&&Xt(_0x13e3c7,_0x4dd47a)){const _0x569830=_0x13e3c7['getFirstRange']();return _0x569830['start']['isEqual'](_0xf32b0['end'])?this['_setSuggestionRange'](_0x13e3c7,this['_model']['createRange'](_0xf32b0['start'],_0x569830['end'])):this['_setSuggestionRange'](_0x13e3c7,this['_model']['createRange'](_0x569830['start'],_0xf32b0['end'])),_0x13e3c7;}}const _0x36db12=_0x5e3891(),_0x17860a=_0xd6b2ed['id'],_0x5ebf8e=_0x3129a9?'insertion:'+_0x3129a9:'insertion',_0x2001fc=this['_setSuggestionData']({'id':_0x36db12,'type':_0x5ebf8e,'createdAt':new Date(),'authorId':_0x17860a,'attributes':_0x4dd47a});return this['_addSuggestionMarker'](_0x5ebf8e,_0x36db12,_0x17860a,_0xf32b0),_0x2001fc;}['markMultiRangeInsertion'](_0x39f418,_0x2fd6e1='multi',_0x36e64a={}){const _0x1c459f=this['editor']['plugins']['get']('Users')['me'],_0x141baf=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2fd6e1,'join');for(const _0x340a48 of this['getSuggestions']())if(_0x340a48['author']['id']==_0x1c459f['id']&&'insertion'==_0x340a48['type']&&_0x340a48['subType']==_0x2fd6e1&&Xt(_0x340a48,_0x36e64a)&&(_0x141baf(_0x340a48['getRanges'](),_0x39f418)||_0x141baf(_0x39f418,_0x340a48['getRanges']()))){for(const _0x123757 of _0x39f418)_0x340a48['addRange'](_0x123757);return _0x340a48;}for(const {suggestion:_0x1853f8,meta:_0x322cda}of this['_findSuggestions'](_0x39f418,'insertion')){if(!_0x322cda['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x322cda['containsRangeInObject'])continue;if(!Xt(_0x1853f8,_0x36e64a))continue;let _0x2dbd92=!0x0;for(const _0x1aed03 of _0x1853f8['getRanges']())for(const _0x100ddb of _0x39f418)if(!_0x1aed03['containsRange'](_0x100ddb)){_0x2dbd92=!0x1;break;}if(_0x2dbd92)return _0x1853f8;}const _0x18e8e1=_0x5e3891(),_0x3e6612=_0x1c459f['id'],_0x41738e='insertion:'+_0x2fd6e1,_0x157d94=this['_setSuggestionData']({'id':_0x18e8e1,'type':_0x41738e,'createdAt':new Date(),'authorId':_0x3e6612,'attributes':_0x36e64a});for(const _0x2aa18e of _0x39f418)this['_addSuggestionMarker'](_0x41738e,_0x18e8e1,_0x3e6612,_0x2aa18e,o['getMultiRangeId']());return _0x157d94;}['markInlineFormat'](_0x5b9fbb,_0x2469a6,_0x44c855=null,_0x457ce0={}){if(_0x44c855=_0x44c855||Kt(_0x2469a6),_0x5b9fbb['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4dd883=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44c855,'accept');return this['forceDefaultExecution'](()=>_0x4dd883([_0x5b9fbb],_0x2469a6,_0x457ce0)),null;}const _0x31b86f=this['editor']['plugins']['get']('Users')['me'],_0x288578=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x246062,meta:_0x1867c7}of this['_findSuggestions'](_0x5b9fbb,'insertion'))_0x1867c7['isOwn']&&!_0x1867c7['isInsideObject']&&_0x288578['push'](..._0x246062['getRanges']());}const _0x539bf6=function(_0xe65a44,_0x45568a){const _0xb40f33=[];for(const _0x3a0bb8 of _0x45568a){const _0x2cb101=_0xe65a44['getIntersection'](_0x3a0bb8);_0x2cb101&&_0xb40f33['push'](_0x2cb101);}return _0xb40f33;}(_0x5b9fbb,_0x288578),_0x214543=function(_0x59b009,_0x4f4402){const _0x28f1a2=[_0x59b009];for(const _0x398c36 of _0x4f4402){let _0xb37ae8=0x0;for(;_0xb37ae8<_0x28f1a2['length'];){const _0x3ed7de=_0x28f1a2[_0xb37ae8]['getDifference'](_0x398c36);_0x28f1a2['splice'](_0xb37ae8,0x1,..._0x3ed7de),_0xb37ae8+=_0x3ed7de['length'];}}return _0x28f1a2;}(_0x5b9fbb,_0x288578);_0x539bf6['length']&&this['_model']['change'](()=>{for(const _0x28843f of _0x539bf6){const _0x403a36=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44c855,'accept');this['forceDefaultExecution'](()=>_0x403a36([_0x28843f],_0x2469a6,_0x457ce0));}});for(const _0x1bbb5f of _0x214543){let _0x38a525=null,_0x372c10=_0x1bbb5f['start'],_0x59d89b=_0x1bbb5f['end'];for(const {suggestion:_0x1f8de6,meta:_0x15caa5}of this['_findSuggestions'](_0x1bbb5f,'formatInline')){if(!_0x15caa5['isOwn'])continue;if(_0x1f8de6['subType']!=_0x44c855)continue;if(!Xt(_0x1f8de6,_0x457ce0))continue;const _0x38284d=_0x1f8de6['getFirstRange']();if(_0x38284d['containsRange'](_0x1bbb5f,!0x0))return null;_0x372c10=_0x372c10['isBefore'](_0x38284d['start'])?_0x372c10:_0x38284d['start'],_0x59d89b=_0x59d89b['isAfter'](_0x38284d['end'])?_0x59d89b:_0x38284d['end'],_0x38a525?_0x38284d['start']['isBefore'](_0x38a525['getFirstRange']()['start'])?(_0x38a525['removeMarkers'](),_0x38a525=_0x1f8de6):_0x1f8de6['removeMarkers']():_0x38a525=_0x1f8de6;}const _0x151e12=this['_model']['createRange'](_0x372c10,_0x59d89b);if(_0x38a525)this['_setSuggestionRange'](_0x38a525,_0x151e12);else{const _0x1d8d41=_0x5e3891(),_0x2aa3e2=_0x31b86f['id'];this['_setSuggestionData']({'id':_0x1d8d41,'type':'formatInline:'+_0x44c855,'data':_0x2469a6,'createdAt':new Date(),'authorId':_0x2aa3e2,'attributes':_0x457ce0}),this['_addSuggestionMarker']('formatInline:'+_0x44c855,_0x1d8d41,_0x2aa3e2,_0x151e12);}}return null;}['markBlockFormat'](_0x2d319c,_0x9694cf,_0x570e5d=[],_0x4b288f=null,_0x58f52b={}){_0x9694cf['formatGroupId']||(_0x9694cf['formatGroupId']=_0x9694cf['commandName']),_0x9694cf['multipleBlocks']=_0x2d319c['is']('range'),_0x4b288f=_0x4b288f||Kt(_0x9694cf);const _0x16c8d7=_0x570e5d['map'](_0x23f409=>zt(_0x23f409,this['_model'])),_0x3213e5=_0x2d319c['is']('range')?_0x2d319c:zt(_0x2d319c,this['_model']);if('never'===this['_trackFormatChanges']){const _0x30d4d1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b288f,'accept');return this['forceDefaultExecution'](()=>_0x30d4d1([_0x3213e5],_0x9694cf,_0x58f52b)),null;}_0x16c8d7['push'](_0x3213e5);let _0x1a57e9=!0x0;for(const _0x5e2fbe of _0x16c8d7)if(!this['_rangeIsInLocalUserInsertion'](_0x5e2fbe)){_0x1a57e9=!0x1;break;}if(_0x1a57e9&&'always'!==this['_trackFormatChanges']){const _0x412a3d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b288f,'accept');return this['forceDefaultExecution'](()=>_0x412a3d([_0x3213e5],_0x9694cf,_0x58f52b)),null;}let _0x1dacc2=null,_0x39ac90=_0x3213e5['start'],_0x73fb33=_0x3213e5['end'];for(const {suggestion:_0x228d01,meta:_0x1d801c}of this['_findSuggestions'](_0x3213e5,'formatBlock')){if(!_0x1d801c['isOwn'])continue;if(_0x1d801c['isNextTo']||_0x1d801c['containsRangeInObject']||_0x1d801c['isInsideObject'])continue;if(_0x228d01['data']['formatGroupId']!=_0x9694cf['formatGroupId'])continue;if(!Xt(_0x228d01,_0x58f52b))continue;const _0x1a8bd9=_0x228d01['getFirstRange']();if(_0x228d01['subType']==_0x4b288f){if(_0x1a8bd9['containsRange'](_0x3213e5,!0x0))return null;_0x39ac90=_0x39ac90['isBefore'](_0x1a8bd9['start'])?_0x39ac90:_0x1a8bd9['start'],_0x73fb33=_0x73fb33['isAfter'](_0x1a8bd9['end'])?_0x73fb33:_0x1a8bd9['end'],_0x1dacc2?_0x1a8bd9['start']['isBefore'](_0x1dacc2['getFirstRange']()['start'])?(_0x1dacc2['removeMarkers'](),_0x1dacc2=_0x228d01):_0x228d01['removeMarkers']():_0x1dacc2=_0x228d01;}else{const _0x3db09c=_0x3213e5['getIntersection'](_0x1a8bd9);this['_cutOutSuggestionMarker'](_0x228d01,_0x3db09c);}}const _0x4b117f=this['editor']['plugins']['get']('Users')['me'],_0x2f9c34=_0x5e3891(),_0x12733d=_0x4b117f['id'];if(_0x1dacc2)return this['_setSuggestionRange'](_0x1dacc2,this['_model']['createRange'](_0x39ac90,_0x73fb33)),_0x1dacc2;{const _0x5df0d7=this['_setSuggestionData']({'id':_0x2f9c34,'type':'formatBlock:'+_0x4b288f,'data':_0x9694cf,'createdAt':new Date(),'authorId':_0x12733d,'attributes':_0x58f52b});return this['_addSuggestionMarker']('formatBlock:'+_0x4b288f,_0x2f9c34,_0x12733d,this['_model']['createRange'](_0x39ac90,_0x73fb33)),_0x5df0d7;}}['markMultiRangeBlockFormat'](_0x33ddcd,_0x3e0525,_0x44427a=[],_0x355393=null,_0x1a08bf={}){_0x3e0525['formatGroupId']||(_0x3e0525['formatGroupId']=_0x3e0525['commandName']);const _0x4c81f1=_0x33ddcd[0x0];_0x3e0525['multipleBlocks']=_0x4c81f1['is']('range'),_0x355393=_0x355393||Kt(_0x3e0525);const _0x3c4b04=_0x44427a['map'](_0x49a091=>zt(_0x49a091,this['_model'])),_0x5a8715=_0x4c81f1['is']('range')?_0x33ddcd:_0x33ddcd['map'](_0x43f002=>zt(_0x43f002,this['_model']));if('never'===this['_trackFormatChanges']){const _0x13ed4f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x355393,'accept');return this['forceDefaultExecution'](()=>_0x13ed4f(_0x5a8715,_0x3e0525,_0x1a08bf)),null;}_0x3c4b04['push'](..._0x5a8715);let _0x42b700=!0x0;for(const _0x396bf1 of _0x3c4b04)if(!this['_rangeIsInLocalUserInsertion'](_0x396bf1)){_0x42b700=!0x1;break;}if(_0x42b700&&'always'!==this['_trackFormatChanges']){const _0x53acab=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x355393,'accept');return this['forceDefaultExecution'](()=>_0x53acab(_0x5a8715,_0x3e0525,_0x1a08bf)),null;}const _0xe2b98a=this['editor']['plugins']['get']('Users')['me'];for(const _0x125289 of this['getSuggestions']()){if(_0x125289['author']['id']!=_0xe2b98a['id'])continue;if('formatBlock'!=_0x125289['type']||_0x125289['data']['formatGroupId']!=_0x3e0525['formatGroupId'])continue;if(!Xt(_0x125289,_0x1a08bf))continue;const _0x3d84d8=_0x125289['subType']==_0x355393;for(let _0x238249=0x0;_0x238249<_0x5a8715['length'];_0x238249++){const _0x3011db=_0x5a8715[_0x238249];for(const _0x40a922 of _0x125289['getMarkers']()){const _0x30a5fd=_0x40a922['getRange']();if(_0x3011db['isEqual'](_0x30a5fd)){_0x3d84d8?(_0x5a8715['splice'](_0x238249,0x1),_0x238249--):_0x125289['removeMarker'](_0x40a922['name']);break;}}}}if(0x0==_0x5a8715['length'])return null;const _0x5f1a94=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x355393,'join');for(const _0x240f2e of this['getSuggestions']())if(_0x240f2e['author']['id']==_0xe2b98a['id']&&'formatBlock'==_0x240f2e['type']&&_0x240f2e['data']['formatGroupId']==_0x3e0525['formatGroupId']&&_0x240f2e['subType']==_0x355393&&Xt(_0x240f2e,_0x1a08bf)&&(_0x5f1a94(_0x240f2e['getRanges'](),_0x5a8715)||_0x5f1a94(_0x5a8715,_0x240f2e['getRanges']()))){for(const _0x1ac636 of _0x5a8715)_0x240f2e['addRange'](_0x1ac636);return _0x240f2e;}const _0x4cba02=_0x5e3891(),_0x3a9edf=_0xe2b98a['id'],_0x4b5c55='formatBlock:'+_0x355393,_0x4be576=this['_setSuggestionData']({'id':_0x4cba02,'type':_0x4b5c55,'data':_0x3e0525,'createdAt':new Date(),'authorId':_0x3a9edf,'attributes':_0x1a08bf});for(const _0x5e9cd8 of _0x5a8715)this['_addSuggestionMarker'](_0x4b5c55,_0x4cba02,_0x3a9edf,_0x5e9cd8,o['getMultiRangeId']());return _0x4be576;}['markDeletion'](_0x42f2b0,_0x30f74a=null,_0x28a40f={}){if(_0x42f2b0['isCollapsed'])return null;const _0x10f2f1=this['editor']['plugins']['get']('Users')['me'],_0xa72024=new _0x3932e8(_0x42f2b0['start'],_0x42f2b0['end']);for(const {suggestion:_0x21e739,meta:_0x4c7e3d}of this['_findSuggestions'](_0xa72024,'insertion'))if(_0x4c7e3d['isOwn']&&!_0x4c7e3d['isNextTo']){if(_0x21e739['isMultiRange']){const _0x59be7c=_0x21e739['getRanges']()['filter'](_0x54b057=>'$graveyard'!=_0x54b057['root']['rootName']);_0x59be7c['every'](_0x937a3a=>_0xa72024['containsRange'](_0x937a3a,!0x0))&&_0x21e739['discard']();if(_0x59be7c['some'](_0x319ca1=>_0x319ca1['containsRange'](_0xa72024,!0x0))){const _0x32ba76=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30f74a,'accept');return this['forceDefaultExecution'](()=>_0x32ba76([_0xa72024],null,_0x28a40f)),null;}}else{const _0x129d53=_0xa72024['getIntersection'](_0x21e739['getFirstRange']());null!==_0x129d53&&_0x21e739['_onDiscard']([_0x129d53],null,_0x28a40f);}}if(_0xa72024['detach'](),_0xa72024['isCollapsed']||'$graveyard'==_0xa72024['root']['rootName'])return null;let _0x2fe7c7=null,_0x1f39d5=_0xa72024['start'],_0x578fae=_0xa72024['end'];const _0x5a9862=this['_findSuggestions'](_0xa72024,'deletion');for(const {suggestion:_0x4f0db2,meta:_0x1f2600}of _0x5a9862){const _0x3aeac4=this['_model']['createRange'](_0x1f39d5,_0x578fae);if(_0x1f2600['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f2600['containsRangeInObject']&&!_0x1f2600['isInsideObject'])){if(_0x4f0db2['isMultiRange']){if(!Xt(_0x4f0db2,_0x28a40f))continue;let _0x1505f8=!0x0;for(const _0xa5f1af of _0x4f0db2['getRanges']()){if(_0xa5f1af['containsRange'](_0x3aeac4,!0x0))return _0x4f0db2;_0x3aeac4['containsRange'](_0xa5f1af)||(_0x1505f8=!0x1);}_0x1505f8&&_0x4f0db2['discard']();}else{const _0x1262bf=_0x4f0db2['getFirstRange']();if(_0x1262bf['containsRange'](_0x3aeac4,!0x0))return _0x4f0db2;if(!Xt(_0x4f0db2,_0x28a40f)){_0x3aeac4['containsRange'](_0x1262bf)?_0x4f0db2['removeMarkers']():_0x1262bf['containsPosition'](_0x1f39d5)?_0x1f39d5=_0x1262bf['end']:_0x1262bf['containsPosition'](_0x578fae)&&(_0x578fae=_0x1262bf['start']);continue;}_0x1f39d5=_0x1f39d5['isBefore'](_0x1262bf['start'])?_0x1f39d5:_0x1262bf['start'],_0x578fae=_0x578fae['isAfter'](_0x1262bf['end'])?_0x578fae:_0x1262bf['end'],_0x28a40f=Object['assign']({},_0x4f0db2['attributes']),_0x2fe7c7?_0x1262bf['start']['isBefore'](_0x2fe7c7['getFirstRange']()['start'])?(_0x2fe7c7['removeMarkers'](),_0x2fe7c7=_0x4f0db2):_0x4f0db2['removeMarkers']():_0x2fe7c7=_0x4f0db2;}}}if(_0x2fe7c7)return this['_setSuggestionRange'](_0x2fe7c7,this['_model']['createRange'](_0x1f39d5,_0x578fae)),_0x2fe7c7;{const _0x4c1a51=_0x5e3891(),_0xd6e959=this['_model']['createRange'](_0x1f39d5,_0x578fae),_0x20e0ef=_0x10f2f1['id'],_0xd73226=_0x30f74a?'deletion:'+_0x30f74a:'deletion',_0x5e0922=this['_setSuggestionData']({'id':_0x4c1a51,'type':_0xd73226,'createdAt':new Date(),'authorId':_0x20e0ef,'attributes':_0x28a40f});return this['_addSuggestionMarker'](_0xd73226,_0x4c1a51,_0x20e0ef,_0xd6e959),_0x5e0922;}}['markMultiRangeDeletion'](_0x286d7e,_0x4165ce='multi',_0xa3d824={}){const _0x1adf28=this['editor']['plugins']['get']('Users')['me'],_0x5b5e88=_0x286d7e['map'](_0x496863=>new _0x3932e8(_0x496863['start'],_0x496863['end'])),_0xf35b2b=new Set();for(const {suggestion:_0x213000,meta:_0x489078}of this['_findSuggestions'](_0x5b5e88,'insertion'))_0x489078['isOwn']&&!_0x489078['isNextTo']&&_0xf35b2b['add'](_0x213000);for(const _0x275bc0 of _0xf35b2b)if(_0x275bc0['isMultiRange']){const _0x854694=_0x275bc0['getRanges']();(!_0x275bc0['attributes']||!_0x275bc0['attributes']['skipNestingCheck'])&&(_0x854694['every'](_0xc87583=>_0x5b5e88['some'](_0x1f9c19=>_0x1f9c19['containsRange'](_0xc87583,!0x0)))&&_0x275bc0['discard']());if(_0x5b5e88['every'](_0x118d76=>_0x854694['some'](_0x36f02f=>_0x36f02f['containsRange'](_0x118d76,!0x0)))){const _0x5dc729=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4165ce,'accept');return this['forceDefaultExecution'](()=>_0x5dc729(_0x286d7e,null,_0xa3d824)),null;}}else{const _0x215471=_0x275bc0['getFirstRange']();_0x5b5e88['some'](_0x1d6a37=>_0x1d6a37['containsRange'](_0x215471,!0x0))&&_0x275bc0['discard']();if(_0x5b5e88['every'](_0x1f7987=>_0x215471['containsRange'](_0x1f7987,!0x0))){const _0x158a15=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4165ce,'accept');return this['forceDefaultExecution'](()=>_0x158a15(_0x5b5e88,null,_0xa3d824)),null;}}const _0x351319=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4165ce,'join');let _0x724d9=null;for(const _0x4b321e of this['getSuggestions']())if(_0x4b321e['author']['id']==_0x1adf28['id']&&_0x4b321e['isInContent']&&'deletion'==_0x4b321e['type']&&_0x4b321e['subType']==_0x4165ce&&Xt(_0x4b321e,_0xa3d824)&&(_0x351319(_0x4b321e['getRanges'](),_0x5b5e88)||_0x351319(_0x5b5e88,_0x4b321e['getRanges']()))){if(_0x724d9){if(_0x4b321e['commentThread']&&_0x4b321e['commentThread']['length'])continue;for(const _0x4605b6 of _0x4b321e['getRanges']())_0x724d9['isIntersectingWithRange'](_0x4605b6)||_0x724d9['addRange'](_0x4605b6);_0x4b321e['removeMarkers']();}else{_0x724d9=_0x4b321e;for(const _0x10314b of _0x5b5e88)_0x4b321e['isIntersectingWithRange'](_0x10314b)||_0x4b321e['addRange'](_0x10314b);}}if(_0x724d9)return _0x724d9;_0xf35b2b['clear']();for(const {suggestion:_0x517a06,meta:_0x119ad6}of this['_findSuggestions'](_0x5b5e88,'deletion'))_0x119ad6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x119ad6['containsRangeInObject']&&!_0x119ad6['isInsideObject'])&&Xt(_0x517a06,_0xa3d824)&&_0xf35b2b['add'](_0x517a06);for(const _0x1eb180 of _0xf35b2b){const _0x1557a3=_0x1eb180['getRanges']();if(!_0xa3d824||!_0xa3d824['skipNestingCheck']){if(_0x5b5e88['every'](_0x127dd8=>_0x1557a3['some'](_0x36a332=>_0x36a332['containsRange'](_0x127dd8,!0x0))))return _0x1eb180;}(!_0x1eb180['attributes']||!_0x1eb180['attributes']['skipNestingCheck'])&&(_0x1557a3['every'](_0x1a9097=>_0x5b5e88['some'](_0x4c220a=>_0x4c220a['containsRange'](_0x1a9097,!0x0)))&&_0x1eb180['discard']());}const _0x11df99=_0x5e3891(),_0x1f1a38=_0x1adf28['id'],_0x412cb7='deletion:'+_0x4165ce,_0x5b10c5=this['_setSuggestionData']({'id':_0x11df99,'type':_0x412cb7,'createdAt':new Date(),'authorId':_0x1f1a38,'attributes':_0xa3d824});for(const _0x3450f8 of _0x5b5e88)_0x3450f8['detach'](),_0x3450f8['isCollapsed']||'$graveyard'==_0x3450f8['root']['rootName']||this['_addSuggestionMarker'](_0x412cb7,_0x11df99,_0x1f1a38,_0x3450f8,o['getMultiRangeId']());return _0x5b10c5;}['markAttributeChange'](_0x5744ec,_0x815de8,_0x36f73a,_0x4a7da1,_0x71e3b8){if(_0x5744ec['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x499113=this['editor']['plugins']['get']('Users')['me']['id'],_0x45bb6f=Array['from'](this['_suggestions']['values']())['filter'](_0x4ebeb5=>'attribute'==_0x4ebeb5['type']&&_0x4ebeb5['data']['key']==_0x815de8&&_0x4ebeb5['isIntersectingWithRange'](_0x5744ec));if('default'===this['_trackFormatChanges']){const _0x49d8d9=this['_findSuggestions'](_0x5744ec,'insertion')['filter'](({meta:_0xa19c21})=>_0xa19c21['isOwn']&&!_0xa19c21['isInsideObject']&&!_0xa19c21['isNextTo'])['map'](({suggestion:_0x530f74})=>_0x530f74);_0x45bb6f['unshift'](..._0x49d8d9);}const _0x166878=new Map([[_0x5744ec,_0x36f73a]]);for(const _0x2c3f55 of _0x45bb6f){const _0x44fb5e='attribute'==_0x2c3f55['type']?_0x2c3f55['data']['oldValue']:void 0x0,_0x320742=_0x2c3f55['getFirstRange'](),_0x470c09=Array['from'](_0x166878['keys']())['find'](_0x497342=>_0x497342['isIntersecting'](_0x320742));if(!_0x470c09)continue;const _0x5245c8=_0x470c09['getDifference'](_0x320742);this['_isBlockAttribute'](_0x815de8)&&'insertion'==_0x2c3f55['type']&&0x0!=_0x5245c8['length']||(_0x166878['delete'](_0x470c09),_0x5245c8['forEach'](_0x173c0d=>{_0x166878['set'](_0x173c0d,_0x36f73a);}),'insertion'!=_0x2c3f55['type']&&_0x44fb5e!=_0x4a7da1&&_0x166878['set'](_0x470c09['getIntersection'](_0x320742),_0x44fb5e));}const _0x540f40=[];for(const [_0x2bf4b4,_0x708016]of _0x166878){const _0x3894e8=_0x5e3891(),_0x855745={'key':_0x815de8,'oldValue':_0x708016,'newValue':_0x4a7da1};_0x815de8['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':_0x815de8});const _0x3499dd=('attribute:'+(_0x815de8+'|'+Kt({'newValue':_0x4a7da1})))['substring'](0x0,0x3c),_0x161f7d=this['_setSuggestionData']({'id':_0x3894e8,'type':_0x3499dd,'data':_0x855745,'createdAt':new Date(),'authorId':_0x499113,'attributes':_0x71e3b8});_0x540f40['push'](_0x161f7d),this['_addSuggestionMarker'](_0x3499dd,_0x3894e8,_0x499113,_0x2bf4b4);}return _0x540f40;}['enableDefaultAttributesIntegration'](_0x21ef8f){this['enableCommand'](_0x21ef8f,(_0x35d77d,..._0x22c6ca)=>{this['_recordAttributeChanges'](()=>{_0x35d77d(..._0x22c6ca);});});}['registerBlockAttribute'](_0x5394b3){this['_blockAttributeKeys']['add'](_0x5394b3);}['registerInlineAttribute'](_0x390d53){this['_inlineAttributeKeys']['add'](_0x390d53);}['_getAttributeKey'](_0x2d65c2){return'attribute'==_0x2d65c2['type']?_0x2d65c2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5a7328,_0x41d5d3){const _0x44dd35=_0x5a7328['getFirstMarker']();this['_model']['change'](_0x3f3295=>{_0x3f3295['updateMarker'](_0x44dd35,{'range':_0x41d5d3});});}['_addThreadToSuggestion'](_0x2aead5){const _0xa4b369=_0x2aead5['id'],_0x49131e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xa4b369)||this['_commentsRepository']['addCommentThread']({'channelId':_0x49131e,'threadId':_0xa4b369,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x48328c=this['_commentsRepository']['getCommentThread'](_0xa4b369);_0x48328c['unbind']('isRemovable'),_0x48328c['isRemovable']=!0x1,_0x2aead5['commentThread']=_0x48328c;}['_checkSuggestionCorrectness'](_0x49ef32,_0x5b67cb,_0x588c9d,_0x5d87c7){if(_0x49ef32['type']!=_0x5b67cb||_0x49ef32['subType']!=_0x588c9d||_0x49ef32['creator']['id']!=_0x5d87c7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x50045d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x37143b,_0x268b8a){const _0x1ae421=_0x37143b['getFirstRange']();if(_0x268b8a['isEqual'](_0x1ae421))_0x37143b['removeMarkers']();else{if(_0x1ae421['containsRange'](_0x268b8a)){const _0x478148=this['_model']['createPositionAt'](_0x268b8a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x37143b,this['_model']['createRange'](_0x1ae421['start'],_0x478148));const _0x3de1d3=_0x5e3891(),_0x3a73d1=_0x37143b['creator']['id'],_0x57731f=_0x37143b['type']+':'+_0x37143b['subType'];this['_setSuggestionData']({'id':_0x3de1d3,'type':_0x57731f,'createdAt':new Date(),'authorId':_0x3a73d1,'data':_0x37143b['data'],'attributes':_0x37143b['attributes']});const _0x31f118=this['_model']['createPositionAt'](_0x268b8a['end']['parent'],'after'),_0x303d35=this['_model']['createRange'](_0x31f118,_0x1ae421['end']);this['_addSuggestionMarker'](_0x57731f,_0x3de1d3,_0x3a73d1,_0x303d35);}else{if(_0x1ae421['containsPosition'](_0x268b8a['start'])){const _0xbc1a01=this['_model']['createPositionAt'](_0x268b8a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x37143b,this['_model']['createRange'](_0x1ae421['start'],_0xbc1a01));}else{const _0x2089a4=this['_model']['createPositionAt'](_0x268b8a['end']['parent'],'after');this['_setSuggestionRange'](_0x37143b,this['_model']['createRange'](_0x2089a4,_0x1ae421['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3d5f33){for(const {suggestion:_0x1213ab,meta:_0x624313}of this['_findSuggestions'](_0x3d5f33,'insertion')){if(!_0x624313['isOwn'])continue;const _0x3cd2ed=_0x1213ab['getRanges']();for(const _0x22276b of _0x3cd2ed)if(!_0x3d5f33['getDifference'](_0x22276b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xff6f92){const _0x1c914e=this['editor']['plugins']['get']('Users')['getUser'](_0xff6f92);if(!_0x1c914e)throw new _0x50045d('track-changes-user-not-found',this);return _0x1c914e;}['_getExternalAuthor'](_0x3a3884){const _0x39eea2=this['editor']['plugins']['get']('Users'),_0x5b6d98=_0x116cc7('external:'+_0x3a3884),_0x11fd36=_0x39eea2['getUser'](_0x5b6d98);return _0x11fd36||_0x39eea2['addUser']({'id':_0x5b6d98,'name':_0x3a3884});}['_createSuggestion'](_0x3c1308,_0x47cb52,_0x5b01db,_0x46d077,_0x1f2a85){const _0x3d75e4=this['_getAuthorFromId'](_0x46d077),_0x49e9fa=this['_suggestionFactory']['buildSuggestion'](_0x3c1308,_0x47cb52,_0x5b01db,_0x3d75e4,_0x1f2a85,_0x3a73fc=>{this['_updateSuggestionData'](_0x5b01db,{'attributes':_0x3a73fc});const _0x225d04=this['getSuggestion'](_0x5b01db);this['_joinWithAdjacentSuggestions'](new Set([_0x225d04])),this['_refreshSuggestionsChain'](new Set([_0x225d04]));});return this['listenTo'](_0x49e9fa,'accept',()=>{this['_updateSuggestionData'](_0x5b01db,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x49e9fa,'discard',()=>{this['_updateSuggestionData'](_0x5b01db,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5b01db,_0x49e9fa),this['_suggestionState']['set'](_0x49e9fa,'notReady'),_0x49e9fa;}['_splitMarkerName'](_0x1d27ca){const _0x555b3f=_0x1d27ca['split'](':');return{'group':_0x555b3f[0x0],'type':_0x555b3f[0x1],'subType':_0x555b3f['length']>=0x5?_0x555b3f[0x2]:null,'id':_0x555b3f['length']<0x5?_0x555b3f[0x2]:_0x555b3f[0x3],'authorId':_0x555b3f['length']<0x5?_0x555b3f[0x3]:_0x555b3f[0x4],'markerCount':0x6==_0x555b3f['length']?_0x555b3f[0x5]:null};}['_breakSuggestionMarker'](_0x6244a1,_0x2ee968,_0x134009){const _0x3fca61=_0x6244a1['getFirstRange'](),_0xe73ff9=_0x3fca61['start'],_0x3eba29=_0x3fca61['end'];this['_setSuggestionRange'](_0x6244a1,this['_model']['createRange'](_0xe73ff9,_0x2ee968));const _0x34d34b=_0x5e3891(),_0x48ae4c=_0x6244a1['creator']['id'],_0x2a543d=_0x6244a1['type']+(_0x6244a1['subType']?':'+_0x6244a1['subType']:'');this['_setSuggestionData']({'id':_0x34d34b,'type':_0x2a543d,'createdAt':new Date(),'authorId':_0x48ae4c,'originalSuggestionId':_0x6244a1['id'],'attributes':_0x6244a1['attributes'],'data':_0x6244a1['data']});const _0x3fea1f=this['_getAttributeKey'](_0x6244a1);('formatBlock'==_0x6244a1['type']||_0x3fea1f&&this['_isBlockAttribute'](_0x3fea1f))&&(_0x134009=this['_model']['createPositionBefore'](_0x134009['parent'])),this['_addSuggestionMarker'](_0x2a543d,_0x34d34b,_0x48ae4c,this['_model']['createRange'](_0x134009,_0x3eba29));}['_findSuggestions'](_0x4d7255,_0x1fbfae=null){const _0x5a33a6=[],_0xb94494=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4d7255)||(_0x4d7255=[_0x4d7255]);for(const _0x2704e2 of this['getSuggestions']()){if(!_0x2704e2['isInContent'])continue;if(_0x1fbfae&&_0x2704e2['type']!=_0x1fbfae)continue;let _0x1013e4=!0x1;for(const _0x4c0ade of _0x2704e2['getRanges']()){for(const _0xf8e25a of _0x4d7255){const _0x87cee2=_0xf8e25a['start']['isEqual'](_0x4c0ade['end'])||_0xf8e25a['end']['isEqual'](_0x4c0ade['start']);if(_0x87cee2||_0xf8e25a['getIntersection'](_0x4c0ade)){const _0x31b6ab=_0xf8e25a['containsRange'](_0x4c0ade)&&Gt(this['_model']['schema'],_0x4c0ade['start'],_0xf8e25a),_0x99df35=_0x4c0ade['containsRange'](_0xf8e25a)&&Gt(this['_model']['schema'],_0xf8e25a['start'],_0x4c0ade);_0x5a33a6['push']({'suggestion':_0x2704e2,'meta':{'isOwn':_0xb94494==_0x2704e2['author'],'isNextTo':_0x87cee2,'isInsideObject':_0x31b6ab,'containsRangeInObject':_0x99df35}}),_0x1013e4=!0x0;break;}}if(_0x1013e4)break;}}return _0x5a33a6;}['_addSuggestionMarker'](_0x5737d4,_0x5049c2,_0x52c541,_0x15da6a,_0x217e48){this['_model']['change'](_0x3aed85=>{let _0x2f210f='suggestion:'+_0x5737d4+':'+_0x5049c2+':'+_0x52c541;_0x217e48&&(_0x2f210f=_0x2f210f+':'+_0x217e48),_0x3aed85['addMarker'](_0x2f210f,{'range':_0x15da6a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2aebcd){const _0x503d4b=_0x2aebcd['previous'],_0x304598=_0x2aebcd['next'];_0x2aebcd['previous']=null,_0x2aebcd['next']=null,null!=_0x503d4b&&_0x503d4b['next']==_0x2aebcd&&(_0x503d4b['next']=_0x304598),null!=_0x304598&&_0x304598['previous']==_0x2aebcd&&(_0x304598['previous']=_0x503d4b),'ready'==this['_suggestionState']['get'](_0x2aebcd)&&(this['_suggestionState']['set'](_0x2aebcd,'removed'),this['fire']('suggestionUnloaded',_0x2aebcd,_0x503d4b,_0x304598));}['_setSuggestionData'](_0x1f0acd){const _0x1e5009=_0x1f0acd['id'],_0x2b593d=this['addSuggestionData'](_0x1f0acd);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x460764=this['editor']['plugins']['get']('PendingActions'),_0x3cf55e=_0x2b593d['hasComments'],_0x445fb8=_0x2b593d['subType']?_0x2b593d['type']+':'+_0x2b593d['subType']:_0x2b593d['type'],_0x57e980=this['editor']['locale'],_0x45815d=_0x460764['add'](c(_0x57e980,'PENDING_ACTION_SUGGESTION')),_0x2c4e9c={'id':_0x1e5009,'type':_0x445fb8,'hasComments':_0x3cf55e,'data':_0x1f0acd['data']||null,'originalSuggestionId':_0x1f0acd['originalSuggestionId']||null,'attributes':_0x2b593d['attributes']};this['_adapter']['addSuggestion'](_0x2c4e9c)['then'](_0x3eddb2=>{_0x2b593d['_saved']=!0x0,_0x460764['remove'](_0x45815d),_0x3eddb2&&_0x3eddb2['createdAt']&&(this['_suggestions']['get'](_0x1e5009)['createdAt']=_0x3eddb2['createdAt']);})['catch'](_0x397a39=>{throw _0x2e7b4f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2b593d['discard']();}),_0x2b593d['stopListening'](),this['_suggestions']['delete'](_0x2b593d['id']),this['_suggestionState']['delete'](_0x2b593d),_0x397a39;});}return _0x2b593d;}['_isBlockAttribute'](_0x590668){return this['_blockAttributeKeys']['has'](_0x590668);}['_updateSuggestionData'](_0x5ec6cf,_0x3a73ae){const _0x247db6=this['editor']['plugins']['get']('PendingActions'),_0xfca62a=this['getSuggestion'](_0x5ec6cf);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xfca62a['_saved']){const _0x292e78=_0x247db6['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5ec6cf,_0x3a73ae)['then'](()=>{_0x247db6['remove'](_0x292e78);});}else _0xfca62a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5ec6cf,_0x3a73ae);});}}['_getSuggestionData'](_0x1a4f7e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x50045d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1a4f7e);}['_handleNewSuggestionMarker'](_0x36ad4a){const {id:_0x58856d,type:_0xead133,subType:_0xa75f85,authorId:_0x32c6c5}=this['_splitMarkerName'](_0x36ad4a),_0x553607=this['_suggestions']['get'](_0x58856d)||this['_createSuggestion'](_0xead133,_0xa75f85,_0x58856d,_0x32c6c5,{});switch(this['_checkSuggestionCorrectness'](_0x553607,_0xead133,_0xa75f85,_0x32c6c5),this['_suggestionState']['get'](_0x553607)){case'notReady':this['_getSuggestionData'](_0x58856d)['then'](_0x584c00=>{let _0x3b1f74=Promise['resolve']();_0x584c00['hasComments']&&(_0x3b1f74=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x58856d})),_0x3b1f74['then'](()=>{this['addSuggestionData'](_0x584c00)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x553607,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x58856d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x553607,'ready'),this['fire']('suggestionLoaded',_0x553607);break;case'ready':this['fire']('suggestionChanged',_0x553607);}return _0x553607['addMarkerName'](_0x36ad4a),_0x553607;}['_refreshSuggestionsChain'](_0x6e1ec4){const _0x327dad=Array['from'](_0x6e1ec4),_0x28fd29=_0x327dad['filter'](_0x4a4db5=>'attribute'==_0x4a4db5['type']);this['_refreshAttributeSuggestionsChain'](_0x28fd29);const _0x1acdac=_0x327dad['filter'](_0x1af589=>!_0x1af589['isMultiRange']&&'attribute'!=_0x1af589['type']),_0x545146=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2daf26=>!_0x2daf26['isMultiRange']&&'attribute'!=_0x2daf26['type']),_0x2b76d4=_0x545146['filter'](_0x4c7986=>!_0x6e1ec4['has'](_0x4c7986)),_0x12c86f=new Map(_0x545146['map'](_0x2bb448=>[_0x2bb448,this['_suggestionFactory']['getSuggestionCallback'](_0x2bb448['type'],_0x2bb448['subType'],'chain')])),_0x184c33=new Map(_0x545146['map'](_0x13e5ba=>[_0x13e5ba,_0x13e5ba['getFirstRange']()])),_0x3ef898=new Set(),_0x5105a0=new Set();for(let _0x30c0dd=0x0;_0x30c0dd<_0x1acdac['length'];_0x30c0dd++)_0x3b4711(_0x1acdac[_0x30c0dd],_0x1acdac,_0x30c0dd+0x1);for(let _0x5c4ee1=0x0;_0x5c4ee1<_0x1acdac['length'];_0x5c4ee1++)_0x3b4711(_0x1acdac[_0x5c4ee1],_0x2b76d4,0x0);const _0x27bdd5=new Set();for(let _0x1fa0e9=0x0;_0x1fa0e9<_0x1acdac['length'];_0x1fa0e9++){const _0x5d3702=_0x1acdac[_0x1fa0e9];!_0x5105a0['has'](_0x5d3702)&&_0x5d3702['previous']&&(_0x27bdd5['add'](_0x5d3702['previous']),_0x5d3702['previous']['next']===_0x5d3702&&(_0x5d3702['previous']['next']=null),_0x5d3702['previous']=null),!_0x3ef898['has'](_0x5d3702)&&_0x5d3702['next']&&(_0x27bdd5['add'](_0x5d3702['next']),_0x5d3702['next']['previous']===_0x5d3702&&(_0x5d3702['next']['previous']=null),_0x5d3702['next']=null);}function _0x3b4711(_0x1574be,_0xf6cd1f,_0x3fe7d0){for(let _0x49a2a2=_0x3fe7d0;_0x49a2a2<_0xf6cd1f['length'];_0x49a2a2++){const _0x40a869=_0x2885dd(_0x1574be,_0xf6cd1f[_0x49a2a2]);_0x40a869&&(_0x40a869[0x0]['next']=_0x40a869[0x1],_0x40a869[0x1]['previous']=_0x40a869[0x0],_0x3ef898['add'](_0x40a869[0x0]),_0x5105a0['add'](_0x40a869[0x1]));}}function _0x2885dd(_0x5a6c42,_0x898e0e){if(_0x5a6c42['author']['id']!==_0x898e0e['author']['id'])return null;const _0x42df71=_0x12c86f['get'](_0x5a6c42)(_0x5a6c42,_0x898e0e,_0x184c33['get'](_0x5a6c42),_0x184c33['get'](_0x898e0e));if(!_0x42df71)return null;return _0x12c86f['get'](_0x898e0e)(_0x5a6c42,_0x898e0e,_0x184c33['get'](_0x5a6c42),_0x184c33['get'](_0x898e0e))?_0x42df71[0x1]['commentThread']&&_0x42df71[0x1]['commentThread']['length']?null:_0x42df71:null;}_0x27bdd5['size']&&this['_refreshSuggestionsChain'](_0x27bdd5);}['_refreshAttributeSuggestionsChain'](_0x23b934){if(0x0==_0x23b934['length'])return;const _0x21345f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43608f=>'attribute'==_0x43608f['type']&&_0x43608f['_isDataLoaded']),_0x1ff7a2=[],_0x365415=new Map();for(const _0x2d284d of _0x21345f){const _0x169687=_0x116cc7(_0x2d284d['attributes']);_0x365415['has'](_0x169687)||(_0x365415['set'](_0x169687,_0x1ff7a2['length']),_0x1ff7a2['push']([]));const _0x109a6f=_0x365415['get'](_0x169687);_0x1ff7a2[_0x109a6f]['push'](_0x2d284d);}!(function(){_0x1ff7a2['sort']((_0x408323,_0x2b2eb9)=>{const _0x45dd1b=_0x408323[0x0]['createdAt'],_0x2312a1=_0x2b2eb9[0x0]['createdAt'];return _0x45dd1b==_0x2312a1?_0x408323[0x0]['attributes']['groupId']<_0x2b2eb9[0x0]['attributes']['groupId']?-0x1:0x1:_0x45dd1b<_0x2312a1?-0x1:0x1;});for(const _0x420c6a of _0x1ff7a2)_0x420c6a['sort']((_0x5a9e58,_0x24f88a)=>_0x5a9e58['id']<_0x24f88a['id']?-0x1:0x1);}());for(let _0x387acc=0x0;_0x387acc<_0x1ff7a2['length'];_0x387acc++){if(0x0==_0x1ff7a2[_0x387acc]['length'])continue;const _0x2a8075=[];for(let _0x4e3f45=_0x387acc+0x1;_0x4e3f45<_0x1ff7a2['length'];_0x4e3f45++)0x0!=_0x1ff7a2[_0x4e3f45]['length']&&_0x5a8897(_0x1ff7a2[_0x387acc],_0x1ff7a2[_0x4e3f45])&&_0x2a8075['push'](_0x4e3f45);for(const _0x2c7904 of _0x2a8075)_0x1ff7a2[_0x387acc]=_0x1ff7a2[_0x387acc]['concat'](_0x1ff7a2[_0x2c7904]),_0x1ff7a2[_0x2c7904]=[];}for(const _0x62aee4 of _0x1ff7a2)for(let _0x713750=0x0;_0x713750<_0x62aee4['length'];_0x713750++){const _0x27d74d=_0x62aee4[_0x713750+0x1]||null;_0x62aee4[_0x713750]['next']!==_0x27d74d&&(_0x62aee4[_0x713750]['next']=_0x27d74d);}for(const _0x323b77 of _0x1ff7a2)for(let _0x304a46=0x0;_0x304a46<_0x323b77['length'];_0x304a46++){const _0x1b604f=_0x323b77[_0x304a46-0x1]||null;_0x323b77[_0x304a46]['previous']!==_0x1b604f&&(_0x323b77[_0x304a46]['previous']=_0x1b604f);}function _0x5a8897(_0x529205,_0x3175cb){if(_0x529205[0x0]['attributes']['groupId']!==_0x3175cb[0x0]['attributes']['groupId']&&_0x529205[0x0]['author']!==_0x3175cb[0x0]['author'])return!0x1;if(!function(_0x740b87,_0x1587a9){if(!_0x740b87['hasComments']&&!_0x1587a9['hasComments'])return!0x0;if(_0x740b87['hasComments']&&_0x1587a9['hasComments'])return!0x1;if(_0x740b87['hasComments']&&_0x1587a9['createdAt']<_0x740b87['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1587a9['hasComments']&&_0x740b87['createdAt']<_0x1587a9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x529205[0x0],_0x3175cb[0x0]))return!0x1;const _0x35bf8d=Ft(_0x529205[0x0]['attributes'],'groupId'),_0x2bf982=Ft(_0x3175cb[0x0]['attributes'],'groupId');if(!_0x54a863(_0x35bf8d,_0x2bf982))return!0x1;return!!_0x529205['every'](_0x3fe5af=>_0x3175cb['some'](_0x22323b=>_0x3fe5af['getFirstRange']()['isEqual'](_0x22323b['getFirstRange']())))&&_0x3175cb['every'](_0x33406e=>_0x529205['some'](_0x285cf3=>_0x33406e['getFirstRange']()['isEqual'](_0x285cf3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x292b5b){const _0x585e1c=Array['from'](_0x292b5b),_0x3aaa1e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x851a7e=_0x3aaa1e['filter'](_0x15381f=>!_0x292b5b['has'](_0x15381f)),_0xa2f210=new Map(_0x585e1c['map'](_0x1ec67e=>[_0x1ec67e,this['_suggestionFactory']['getSuggestionCallback'](_0x1ec67e['type'],_0x1ec67e['subType'],'join')])),_0x48592f=new Map(_0x3aaa1e['map'](_0x392e4e=>[_0x392e4e,_0x392e4e['getRanges']()]));for(let _0x25681e=0x0;_0x25681e<_0x585e1c['length'];_0x25681e++){if(_0x115f81(this,_0x585e1c[_0x25681e],_0x585e1c,_0x25681e+0x1))return!0x0;}for(let _0x1eeecb=0x0;_0x1eeecb<_0x585e1c['length'];_0x1eeecb++){if(_0x115f81(this,_0x585e1c[_0x1eeecb],_0x851a7e,0x0))return!0x0;}return!0x1;function _0x115f81(_0x185c19,_0x2dad69,_0xea203,_0x1820b5){for(let _0x1824fd=_0x1820b5;_0x1824fd<_0xea203['length'];_0x1824fd++){const _0x31027f=_0xea203[_0x1824fd];if(_0x31027f['type']!==_0x2dad69['type']||_0x31027f['author']['id']!==_0x2dad69['author']['id']||_0x31027f['subType']!==_0x2dad69['subType'])continue;if(!Qt(_0x2dad69,_0x31027f))continue;if('attribute'==_0x2dad69['type']&&_0x2dad69['data']['oldValue']!=_0x31027f['data']['oldValue'])continue;if('attribute'==_0x2dad69['type']&&_0x185c19['_isBlockAttribute'](_0x2dad69['data']['key']))continue;if('formatBlock'==_0x2dad69['type']){const _0x4d905a=_0x185c19['editor']['model'],_0x5957f2=_0x2dad69['getContainedElement']();if(_0x5957f2&&(_0x4d905a['schema']['isObject'](_0x5957f2)||_0x4d905a['schema']['isLimit'](_0x5957f2)))continue;}const _0x1a8722=_0xa2f210['get'](_0x2dad69),_0x1eff0a=_0x48592f['get'](_0x2dad69),_0x2b79e5=_0x48592f['get'](_0x31027f),_0x22a813=_0x2dad69['commentThread']&&_0x2dad69['commentThread']['length'],_0x537b63=_0x31027f['commentThread']&&_0x31027f['commentThread']['length'];if(!_0x22a813&&_0x1a8722(_0x2b79e5,_0x1eff0a))return _0x185c19['_joinSuggestions'](_0x31027f,_0x2dad69),_0x48592f['delete'](_0x2dad69),!0x0;if(!_0x537b63&&_0x1a8722(_0x1eff0a,_0x2b79e5))return _0x185c19['_joinSuggestions'](_0x2dad69,_0x31027f),_0x48592f['delete'](_0x31027f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x10a367,_0x16fb02){if(_0x10a367['isMultiRange']){for(const _0x6b06f7 of _0x16fb02['getRanges']())_0x10a367['addRange'](_0x6b06f7);}else{const _0x371d6c=_0x16fb02['getFirstRange']()['end'];this['_setSuggestionRange'](_0x10a367,this['_model']['createRange'](_0x10a367['getFirstRange']()['start'],_0x371d6c));}_0x16fb02['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1ac5f4,_0x360065,_0x368037){const _0x194f12=_0x1ac5f4['startsWith']('format')||_0x1ac5f4['startsWith']('attribute')?'FORMATTING':_0x1ac5f4['toUpperCase']();return c(this['editor']['locale'],_0x360065+'_'+_0x194f12+'_SUGGESTION_ANNOUNCEMENT',_0x368037);}['_initAriaMarkerChangeAnnouncements'](){const _0x271f6e=this['editor'];if(!_0x271f6e['ui'])return;const {ariaLiveAnnouncer:_0x528579}=_0x271f6e['ui'];_0x3dfa8a(this['_model'],({left:_0x54f444,entered:_0x963eeb})=>{for(const _0x459ebf of _0x54f444){const {group:_0x41ce5c,type:_0xd0ef8c}=this['_splitMarkerName'](_0x459ebf['name']);if('suggestion'===_0x41ce5c){_0x528579['announce'](this['_getMarkerAnnouncementText'](_0xd0ef8c,'LEAVE'));break;}}for(const _0x975d2d of _0x963eeb){const {group:_0x22396f,type:_0x23c0fd}=this['_splitMarkerName'](_0x975d2d['name']);if('suggestion'===_0x22396f){_0x528579['announce'](this['_getMarkerAnnouncementText'](_0x23c0fd,'ENTER',_0x34513e(_0x16a039)));break;}}});}['_processAttributeChanges'](_0xb326ed){if(this['_recordAttributeSuggestions'])return!0x1;const _0x237697=this['editor'],_0x328295=_0x237697['model']['document']['differ']['getChanges']();if(0x0==_0x328295['length'])return!0x1;const _0x370487=[],_0x39a749=_0x328295['filter'](_0x14ff36=>'attribute'==_0x14ff36['type']),_0x262ee3=_0x328295['filter'](_0x52dede=>'insert'==_0x52dede['type']&&'$text'!=_0x52dede['name']),_0x8f5e6a=_0x328295['filter'](_0x2e60b4=>'remove'==_0x2e60b4['type']&&'$text'!=_0x2e60b4['name']);for(const _0x4d899a of _0x39a749)_0x370487['push']({'key':_0x4d899a['attributeKey'],'newValue':_0x4d899a['attributeNewValue'],'oldValue':_0x4d899a['attributeOldValue'],'range':qt(_0x4d899a['range'],_0x237697['model'])});for(const _0x56864e of _0x262ee3){const _0x186446=_0x8f5e6a['find'](_0x53c74c=>_0x53c74c['position']['isEqual'](_0x56864e['position']));_0x186446&&_0x370487['push']({'key':u,'newValue':_0x56864e['name'],'oldValue':_0x186446['name'],'range':_0x237697['model']['createRangeOn'](_0x56864e['position']['nodeAfter'])});}return 0x0!=_0x370487['length']&&this['_reduceExistingSuggestions'](_0xb326ed,_0x370487);}['_processAttributeSuggestions'](_0x22357a){let _0x1e5b94=!0x1;const _0x17af89=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x21a1e5=>_0x21a1e5['data']['newRange']&&_0x21a1e5['name']['startsWith']('suggestion:attribute:'));for(const _0xc5fbf7 of _0x17af89){const {subType:_0x1d6240,id:_0x48658d}=this['_splitMarkerName'](_0xc5fbf7['name']),_0xef4f3=_0x1d6240['split']('|')[0x0];for(const _0x1888f5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1888f5['id']!=_0x48658d&&'attribute'==_0x1888f5['type']&&_0x1888f5['data']&&_0x1888f5['data']['key']==_0xef4f3&&_0x1888f5['getFirstRange']()['isIntersecting'](_0xc5fbf7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1888f5,_0xc5fbf7['data']['newRange'],_0x22357a),_0x1e5b94=!0x0);}return _0x1e5b94;}['_recordAttributeChanges'](_0x9ae54b){this['_recordAttributeSuggestions']=!0x0,_0x9ae54b();}['_isRegisteredAttribute'](_0x4cfeb4){const _0x4b07e2=this['_isBlockAttribute'](_0x4cfeb4),_0x11674e=this['_inlineAttributeKeys']['has'](_0x4cfeb4);return _0x4b07e2||_0x11674e;}['_reduceExistingSuggestions'](_0x4debb1,_0x4e5647){if(0x0==_0x4e5647['length'])return!0x1;let _0x993ec3=!0x1;for(const _0x480f75 of _0x4e5647){const _0x2ca0ff=this['_findSuggestions'](_0x480f75['range'],'attribute')['filter'](_0x3594ff=>!_0x3594ff['meta']['isNextTo'])['map'](_0x38584d=>_0x38584d['suggestion']),_0x2f3ba1=_0x116cc7({'newValue':_0x480f75['newValue']});_0x2ca0ff['filter'](_0x4138c3=>{const [_0x44d717,_0x3625af]=_0x4138c3['subType']['split']('|');return _0x44d717==_0x480f75['key']&&_0x3625af!=_0x2f3ba1;})['forEach'](_0x2f9136=>{this['_reduceSuggestionAttributeRange'](_0x2f9136,_0x480f75['range'],_0x4debb1),_0x993ec3=!0x0;});}return _0x993ec3;}['_reduceSuggestionAttributeRange'](_0x39ea7d,_0x3bb5e0,_0x4c7c62){const _0x46bfde=_0x39ea7d['getFirstRange']()['getDifference'](_0x3bb5e0);0x0!==_0x46bfde['length']?0x1!==_0x46bfde['length']?this['_breakSuggestionMarker'](_0x39ea7d,_0x3bb5e0['start'],_0x3bb5e0['end']):this['_setSuggestionRange'](_0x39ea7d,_0x46bfde[0x0]):_0x4c7c62['removeMarker'](_0x39ea7d['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1aabd4){this['_editor']=_0x1aabd4,this['_model']=_0x1aabd4['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x404d82,_0x4db4b6,_0x217933,_0x2efc1e,_0x210e29,_0x511e56){return new o(this['_model'],{'type':_0x404d82,'subType':_0x4db4b6,'id':_0x217933,'author':_0x2efc1e,'creator':_0x2efc1e,'attributes':_0x210e29,'onAttributesChange':_0x511e56,'onAccept':(..._0x26bbdb)=>this['getSuggestionCallback'](_0x404d82,_0x4db4b6,'accept')(..._0x26bbdb),'onDiscard':(..._0x30c9bb)=>this['getSuggestionCallback'](_0x404d82,_0x4db4b6,'discard')(..._0x30c9bb)});}['registerCustomCallback'](_0x5db4b8,_0x732809,_0x4b46c2,_0x26d5af){const _0x24352f=_0x5db4b8+':'+_0x732809+':'+_0x4b46c2;this['_customCallbacks']['set'](_0x24352f,_0x26d5af);}['getSuggestionCallback'](_0x4bc1f8,_0x5af641,_0x1e4b23){const _0x23bd7e=_0x4bc1f8+':'+_0x5af641+':'+_0x1e4b23;return this['_customCallbacks']['get'](_0x23bd7e)||this['_defaultCallbacks']['get'](_0x4bc1f8+':'+_0x1e4b23);}['_registerDefaultCallbacks'](){const _0x23f7c2=()=>!0x1,_0x31fac7=_0x324813=>{_0x324813['sort']((_0x2c3261,_0x28e358)=>_0x2c3261['start']['isBefore'](_0x28e358['start'])?0x1:-0x1),this['_model']['change'](_0x1a8607=>{for(const _0x41811e of _0x324813){let _0x5c8135;_0x5c8135=_0x41811e['end']['isAtEnd']&&_0x41811e['end']['parent']==_0x41811e['start']['nodeAfter']?_0x1a8607['createSelection'](_0x41811e['start']['nodeAfter'],'on'):_0x1a8607['createSelection'](_0x41811e),this['_model']['deleteContent'](_0x5c8135,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x317878=(_0x596b71,_0xfbf5c4)=>{_0xfbf5c4&&this['_model']['change'](_0x16b693=>{const {commandName:_0x20eb5d,commandParams:_0x4e9689=[]}=_0xfbf5c4,_0x26cf65=_0x596b71['map'](_0x40009c=>(Lt(_0x40009c)&&(_0x40009c=this['_model']['createRange'](_0x40009c['end'])),_0x40009c))['filter'](_0x28a2e6=>'$graveyard'!==_0x28a2e6['root']['rootName']);if(_0x26cf65['length']<0x1)return;const _0x292faa=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5af3dd=>_0x3932e8['fromRange'](_0x5af3dd));_0x16b693['setSelection'](_0x26cf65);for(const _0x37fcf6 of this['_editor']['commands']['commands']())_0x37fcf6['refresh']();_0x4e9689['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x20eb5d,..._0x4e9689);const _0x459dfa=_0x292faa['filter'](_0x148e8a=>'$graveyard'!=_0x148e8a['root']['rootName']);_0x459dfa['length']>0x0&&_0x16b693['setSelection'](_0x459dfa);for(const _0x69f8df of _0x292faa)_0x69f8df['detach']();});},_0x20d10f=(_0x75c331,_0x3ad6c8)=>0x1==_0x75c331['length']&&0x1==_0x3ad6c8['length']&&_0x75c331[0x0]['end']['isEqual'](_0x3ad6c8[0x0]['start']),_0x5e7243=(_0x32434c,_0x524da9,_0x198439,_0x396b96)=>Wt(_0x32434c,_0x524da9,_0x198439,_0x396b96)?[_0x32434c,_0x524da9]:Wt(_0x524da9,_0x32434c,_0x396b96,_0x198439)?[_0x524da9,_0x32434c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x23f7c2),this['_defaultCallbacks']['set']('insertion:discard',_0x31fac7),this['_defaultCallbacks']['set']('insertion:join',_0x20d10f),this['_defaultCallbacks']['set']('insertion:chain',_0x5e7243),this['_defaultCallbacks']['set']('deletion:accept',_0x31fac7),this['_defaultCallbacks']['set']('deletion:discard',_0x23f7c2),this['_defaultCallbacks']['set']('deletion:join',_0x20d10f),this['_defaultCallbacks']['set']('deletion:chain',_0x5e7243),this['_defaultCallbacks']['set']('formatInline:accept',_0x317878),this['_defaultCallbacks']['set']('formatInline:discard',_0x23f7c2),this['_defaultCallbacks']['set']('formatInline:join',_0x20d10f),this['_defaultCallbacks']['set']('formatInline:chain',_0x23f7c2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x317878),this['_defaultCallbacks']['set']('formatBlock:discard',_0x23f7c2),this['_defaultCallbacks']['set']('formatBlock:join',_0x20d10f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x23f7c2),this['_defaultCallbacks']['set']('attribute:accept',_0x23f7c2),this['_defaultCallbacks']['set']('attribute:discard',(_0x5391aa,_0x25f089)=>{if(!_0x25f089)return;const _0x2be5cc=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x47496d=>{if(_0x25f089['key']==u)for(const _0x197a5c of _0x5391aa){const _0x56bb70=_0x197a5c['start']['nodeAfter'],_0xa21f6c=_0x25f089['oldValue'];_0x47496d['rename'](_0x56bb70,_0xa21f6c);}else{if(_0x2be5cc['_isBlockAttribute'](_0x25f089['key'])){for(const _0xfafd0e of _0x5391aa)void 0x0!==_0x25f089['oldValue']?_0x47496d['setAttribute'](_0x25f089['key'],_0x25f089['oldValue'],_0xfafd0e['start']['nodeAfter']):_0x47496d['removeAttribute'](_0x25f089['key'],_0xfafd0e['start']['nodeAfter']);}else{for(const _0x4c6979 of _0x5391aa)_0x25f089['oldValue']?_0x47496d['setAttribute'](_0x25f089['key'],_0x25f089['oldValue'],_0x4c6979):_0x47496d['removeAttribute'](_0x25f089['key'],_0x4c6979);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x20d10f);}}function Gt(_0x1a36be,_0x4f63a9,_0x22b54e){for(const _0x18144e of _0x4f63a9['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x18144e['root']==_0x18144e)return!0x1;if(!_0x22b54e['containsItem'](_0x18144e))return!0x1;if(_0x1a36be['isObject'](_0x18144e)||_0x1a36be['isLimit'](_0x18144e))return!0x0;}return!0x1;}function Lt(_0xea2002){return _0xea2002['end']['parent']==_0xea2002['start']['nodeAfter']&&_0xea2002['end']['isAtStart'];}function Jt(_0x3edfd4,_0x19b9de,_0x1f23c4,_0x507aee){const _0x27bc1e=_0x1354bd=>!_0x1354bd['item']['is']('$textProxy')&&!_0x507aee['isObject'](_0x1354bd['item']),_0x23977f=_0x3edfd4['start']['getLastMatchingPosition'](_0x27bc1e),_0x2d0c8e=_0x3edfd4['end']['getLastMatchingPosition'](_0x27bc1e,{'direction':'backward'});return(!_0x3edfd4['start']['isEqual'](_0x23977f)||!_0x3edfd4['end']['isEqual'](_0x2d0c8e))&&(_0x23977f['isBefore'](_0x2d0c8e)?_0x1f23c4['updateMarker'](_0x19b9de,{'range':_0x1f23c4['createRange'](_0x23977f,_0x2d0c8e)}):_0x1f23c4['removeMarker'](_0x19b9de),!0x0);}function Kt(_0x4839c5){return _0x116cc7(_0x4839c5);}function Ht(_0x9c1995){const _0x1607d5=_0x9c1995['start']['nodeAfter'];return _0x1607d5&&_0x1607d5['is']('element');}function qt(_0x3b8d90,_0x238b14){return null==_0x3b8d90['end']['nodeBefore']&&_0x3b8d90['end']['parent']==_0x3b8d90['start']['nodeAfter']?zt(_0x3b8d90['start']['nodeAfter'],_0x238b14):_0x3b8d90;}function zt(_0x1aa2a0,_0x2a7ce2){const _0x561cd4=_0x2a7ce2['schema']['isObject'](_0x1aa2a0)||_0x2a7ce2['schema']['isSelectable'](_0x1aa2a0);return _0x2a7ce2['createRange'](_0x2a7ce2['createPositionAt'](_0x1aa2a0,'before'),_0x561cd4?_0x2a7ce2['createPositionAfter'](_0x1aa2a0):_0x2a7ce2['createPositionAt'](_0x1aa2a0,'end'));}function Wt(_0x4b6792,_0x5bb585,_0x3fa9de,_0x3c177c){return!!Qt(_0x4b6792,_0x5bb585)&&_0x3fa9de['end']['isEqual'](_0x3c177c['start']);}function Qt(_0x20b205,_0x523e6d){if(!_0x20b205['_isDataLoaded']||!_0x523e6d['_isDataLoaded'])return!0x1;const _0x27a1c8=new Set(Object['keys'](_0x20b205['attributes'])),_0x3574ce=new Set(Object['keys'](_0x523e6d['attributes']));if(_0x27a1c8['delete']('groupId'),_0x3574ce['delete']('groupId'),0x0==_0x27a1c8['size']&&0x0==_0x3574ce['size'])return!0x0;if(_0x27a1c8['size']!=_0x3574ce['size'])return!0x1;const _0x3df6ec={..._0x20b205['attributes']},_0x2d64c3={..._0x523e6d['attributes']};return delete _0x3df6ec['groupId'],delete _0x2d64c3['groupId'],JSON['stringify'](_0x3df6ec)==JSON['stringify'](_0x2d64c3);}function Xt(_0x4bc786,_0x380835){const _0x2d9b2b=Yt(_0x4bc786['attributes']),_0x2acd59=Yt(_0x380835);if(!_0x4bc786['_isDataLoaded'])return!0x1;for(const _0x3a2c99 of Object['keys'](_0x2acd59))if(!_0x54a863(_0x2d9b2b[_0x3a2c99],_0x2acd59[_0x3a2c99]))return!0x1;return!0x0;}function Yt(_0x5337d6){const _0x425ffc=Object['assign']({},_0x5337d6);return delete _0x425ffc['skipNestingCheck'],delete _0x425ffc['tablePasteChainId'],_0x425ffc;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x36705e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5ac607,_0x2667a0,_0x22688c,_0x17904d){super(),this['model']=_0x2667a0,this['view']=_0x22688c,this['commentThreadController']=_0x17904d,this['_editor']=_0x5ac607,this['_acceptCommand']=_0x5ac607['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5ac607['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4f36c5,_0x576d6b)=>_0x4f36c5||_0x576d6b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x396741=>_0x396741&&this['_editor']['model']['canEditAt'](_0x2667a0['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4527a9=>_0x4527a9&&this['_editor']['model']['canEditAt'](_0x2667a0['getRanges']())),this['_pendingAction']=null,_0x22688c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x22688c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x22688c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x22688c,'change:isDirty',()=>{_0x22688c['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 _0x2d7d42=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2d7d42);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x16e147{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4def5b,_0x398ce8,_0x6f6d20,_0x6fc655){super(_0x4def5b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x186e5b(_0x4def5b,c(_0x4def5b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x398ce8['authoredAt']),this['bind']('authoredAt')['to'](_0x398ce8),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',_0x398ce8,'authoredAt',this,'descriptionParts',(_0x2c974e,_0x38fa4b,_0x4f25e8)=>{const _0x29e870=_0x4f25e8['map'](_0x17ba6a=>ls(_0x17ba6a['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2c974e-0x1,_0x398ce8['author']['name'],_0x38fa4b?_0x6fc655['formatDateTime'](_0x38fa4b):'',new DOMParser()['parseFromString'](_0x29e870,'text/html')['body']['textContent']]);}),this['focusables']=new _0x505895(),this['focusTracker']=new _0x791790(),this['keystrokes']=new _0x3e2044(),this['focusCycler']=new _0x1bab99({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x34771=>_0x34771['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x398ce8,this['_localUser']=_0x6f6d20,this['_config']=_0x6fc655,_0x6fc655['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x51b150(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x310fd2}=this['_config'];this['commentsListView']=new _0x310fd2(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',_0xa6dd33=>_0xa6dd33+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x26a380,_0x498fb6)=>_0x26a380||!!_0x498fb6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1d7a1a}=this['_config'],_0x1480ab=new _0x1d7a1a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x9636cb=_0x1480ab['commentInputView'];return _0x1480ab['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x9636cb,'value',(_0x3134b1,_0xc35c2e,_0x4c4209)=>!!_0x4c4209||_0x3134b1&&!_0xc35c2e),_0x9636cb['on']('submit',(_0x3473f7,_0x1863de)=>{this['fire']('addComment',_0x1863de),_0x9636cb['editor']['setData']('');}),_0x9636cb['on']('cancel',()=>this['focus']()),_0x9636cb['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1480ab;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x4f7994,_0x471639,_0x57284b,_0x3e72f7){super(_0x4f7994,_0x471639,_0x57284b,_0x3e72f7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4eb435=>_0x4eb435&&_0x4eb435[0x0]?_0x4eb435[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x460b64,_0x4bf71a)=>{let _0x1c3360='';for(const _0x278630 of _0x460b64)_0x1c3360+='<p>'+ls(_0x278630['content'],_0x278630['color'])+'</p>';return _0x4bf71a?_0x1c3360:ti(_0x1c3360,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3e72f7['SuggestionView'](_0x4f7994,_0x471639,{'formatDateTime':_0x3e72f7['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 _0x5bd0a0=this['bindTemplate'],_0x1dc84d=[this['suggestionView']];return this['commentsListView']&&_0x1dc84d['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1dc84d['push'](this['commentThreadInputView']),_0x1dc84d['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5bd0a0['if']('isActive','ck-suggestion-wrapper--active'),_0x5bd0a0['to']('type',_0x438ddc=>'ck-suggestion-'+_0x438ddc),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':_0x5bd0a0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1dc84d};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x16e147{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xab6473,_0x195856,_0x159eb7){super(_0xab6473),this['_model']=_0x195856,this['_config']=_0x159eb7,this['set']('description',''),this['bind']('authoredAt')['to'](_0x195856),this['acceptButton']=this['_createButton'](c(_0xab6473,'Accept\x20suggestion'),_0x1baade,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0xab6473,'Discard\x20suggestion'),_0x4bef77,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xdd5bd2(_0xab6473,_0x195856['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x505895([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x791790(),this['keystrokes']=new _0x3e2044(),this['focusCycler']=new _0x1bab99({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x19cffe=>_0x19cffe['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xc53295=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xc53295['innerHTML']=this['description'],this['on']('change:description',(_0x5130bc,_0x2f0b82,_0x2056ce)=>{_0xc53295['innerHTML']=_0x2056ce;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x484dac=this['bindTemplate'],_0x5247a3=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x484dac['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x484dac['to']('authoredAt',_0x4c62be=>this['_config']['formatDateTime'](_0x4c62be))}]}]},{'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']&&_0x5247a3['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':_0x5247a3}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xc8ece3,_0x1befa7,_0x3c15ca,_0x580b62,_0x11166e){const _0x4f069a=new _0x4604b9(this['locale']);return _0x4f069a['set']({'label':_0xc8ece3,'icon':_0x1befa7,'tooltip':!0x0,'tooltipPosition':_0x11166e}),_0x4f069a['extendTemplate']({'attributes':{'class':_0x3c15ca}}),_0x4f069a['on']('execute',()=>{this['fire'](_0x580b62,this['_model']['id']);}),_0x4f069a;}['_setupKeyboardNavigation'](){const _0x1df78f=this['element'];this['keystrokes']['listenTo'](_0x1df78f);for(const _0xa39f7c of this['focusables'])this['focusTracker']['add'](_0xa39f7c['element']),this['keystrokes']['listenTo'](_0xa39f7c['element']);this['keystrokes']['set']('enter',(_0x48bcda,_0x3d5350)=>{_0x1df78f===_0x48bcda['target']&&(this['focusCycler']['focusFirst'](),_0x3d5350());}),this['keystrokes']['set']('esc',(_0xd7b691,_0x1ba424)=>{_0x1df78f!==_0xd7b691['target']&&(this['focus'](),_0x1ba424());});}}class d extends _0x55fa68{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2aa14c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37b173){super(_0x37b173),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4e8d5c=this['editor']['config'];_0x4e8d5c['define']('trackChanges.SuggestionThreadView',fe),_0x4e8d5c['define']('trackChanges.SuggestionView',we),_0x4e8d5c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4e8d5c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2d16b6,_0x3b4600){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x190b42,_0x3419a8]of this['_handleControllerBuffer']){const _0x361ed5=this['_suggestionToController']['has'](_0x190b42);_0x361ed5||_0x3419a8?_0x361ed5&&_0x3419a8&&this['_destroyController'](_0x190b42):this['_initializeController'](_0x190b42);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2d16b6,_0x3b4600);}['init'](){const _0x206987=this['editor'],_0x2f2c2b=_0x206987['plugins']['get']('TrackChangesEditing'),_0x166509=_0x206987['plugins']['get']('Annotations'),_0x24f79f=_0x206987['plugins']['get']('EditorAnnotations'),_0x43e14c=_0x206987['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x24f79f['addSourceCollector'](()=>{const _0x23ab0c=[];for(const [_0x4798d9,_0x47b9c8]of Array['from'](this['_suggestionToController'])){const _0x421f11=_0x4798d9['getAllAdjacentSuggestions'](),_0x586e40=[];for(const _0x5c6a93 of _0x421f11){if(!_0x5c6a93['isInContent'])continue;if(_0x5c6a93['isMultiRange']){_0x586e40['push'](..._0x5c6a93['getRanges']());continue;}const _0x27a57b=_0x5c6a93['getFirstRange']();if(_0x586e40['length']>0x0){const _0xfce390=_0x586e40[0x0]['getJoined'](_0x27a57b);if(_0xfce390){_0x586e40[0x0]=_0xfce390;continue;}}_0x586e40['push'](_0x27a57b);}_0x23ab0c['push']([_0x47b9c8['view'],_0x586e40]);}return _0x23ab0c;}),this['listenTo'](_0x2f2c2b,'suggestionLoaded',(_0x5ba42f,_0x808bb6)=>{this['listenTo'](_0x808bb6,'change:previous',(_0xc07618,_0x4917b4,_0x8c0e45,_0x2d256b)=>{_0x808bb6['isInContent']&&(null==_0x8c0e45?(this['_updateController'](_0x2d256b['head']),this['_handleSuggestionControllerDelayed'](_0x808bb6,!0x1)):(this['_updateController'](_0x8c0e45['head']),null==_0x2d256b&&this['_handleSuggestionControllerDelayed'](_0x808bb6,!0x0)));}),null!==_0x808bb6['previous']?this['_updateController'](_0x808bb6['head']):this['_handleSuggestionControllerDelayed'](_0x808bb6,!0x1);}),this['listenTo'](_0x2f2c2b,'suggestionUnloaded',(_0x53ded8,_0x493207,_0x113677)=>{this['stopListening'](_0x493207,'change:previous'),this['_handleControllerBuffer']['delete'](_0x493207),this['_suggestionToController']['has'](_0x493207)&&this['_destroyController'](_0x493207),_0x113677&&this['_updateController'](_0x113677['head']);}),this['listenTo'](_0x2f2c2b,'suggestionChanged',(_0x31b0c4,_0xb29e5b)=>{this['_updateController'](_0xb29e5b);}),this['listenTo'](_0x166509,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x43e14c,'addComment',(_0x4af668,{threadId:_0x4ef2a8,isFromAdapter:_0x309984})=>{if(_0x309984||!_0x2f2c2b['hasSuggestion'](_0x4ef2a8))return;const _0x29026a=_0x2f2c2b['getSuggestion'](_0x4ef2a8);this['_suggestionToController']['get'](_0x29026a)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xf9495d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c93df;for(const _0x2ec0a3 in _0xf9495d){const _0x181660=_0x2ec0a3,_0x403c49=_0xf9495d[_0x181660];if('trackChangesLicenseKeyValid'==_0x403c49||'trackChangesLicenseKeyInvalid'==_0x403c49||'trackChangesLicenseKeyExpired'==_0x403c49||'trackChangesLicenseKeyDomainLimit'==_0x403c49||'trackChangesLicenseKeyNotAllowed'==_0x403c49||'trackChangesLicenseKeyEvaluationLimit'==_0x403c49||'trackChangesLicenseKeyTrialLimit'==_0x403c49||'trackChangesLicenseKeyUsageLimit'==_0x403c49){delete _0xf9495d[_0x181660],_0x1c93df=_0x403c49,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1c93df&&_0xf9495d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1c93df&&_0xf9495d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1c93df&&_0xf9495d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1c93df&&_0xf9495d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1c93df&&_0xf9495d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1c93df&&_0xf9495d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1c93df&&_0xf9495d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4d923b=this['editor']['plugins']['get']('Annotations'),_0x203c4b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56a26c=Array['from'](_0x4d923b['activeAnnotations'],_0x22eb50=>_0x22eb50['innerView'])['filter'](_0x35491e=>this['_viewToController']['has'](_0x35491e)),_0xe327a4=[];for(const _0x25b0c2 of _0x56a26c){const _0x11ea71=this['_viewToController']['get'](_0x25b0c2)['model']['getAllAdjacentSuggestions']();_0xe327a4['push'](..._0x11ea71['reduce']((_0x19c787,_0x3fe857)=>[..._0x19c787,..._0x3fe857['getMarkerNames']()],[]));}_0x203c4b['activeMarkers']=_0xe327a4;}['_addUIComponentsToFactory'](){const _0x35cf73=this['editor'],_0x930da2=_0x35cf73['locale'],_0x1d9c91=c(_0x930da2,'Track\x20changes'),_0x320bdb=new _0x173380([{'type':'switchbutton','model':new _0x2e2fe1({'withText':!0x0,'isToggleable':!0x0,'label':_0x1d9c91,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2e2fe1({'withText':!0x0,'label':c(_0x930da2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e2fe1({'withText':!0x0,'label':c(_0x930da2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e2fe1({'withText':!0x0,'label':c(_0x930da2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e2fe1({'withText':!0x0,'label':c(_0x930da2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x35cf73['plugins']['has']('TrackChangesPreview')&&_0x320bdb['addMany']([{'type':'separator'},{'type':'button','model':new _0x2e2fe1({'withText':!0x0,'label':c(_0x930da2,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x25341c of _0x320bdb)if(ke(_0x25341c)){const _0x59f92a=_0x35cf73['commands']['get'](_0x25341c['model']['commandName']);_0x25341c['model']['bind']('isOn','isEnabled')['to'](_0x59f92a,'value','isEnabled');}_0x35cf73['ui']['componentFactory']['add']('trackChanges',_0x371877=>this['_createToolbarButton'](_0x371877,_0x320bdb,_0x1d9c91)),_0x35cf73['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2210f6=>this['_createMenuBarMenu'](_0x2210f6,_0x320bdb,_0x1d9c91));}['_createToolbarButton'](_0x50dc2c,_0x43d474,_0x24d6b4){const _0x3a8129=_0xe5a2c0(_0x50dc2c,_0x305cf4),_0x13e0be=this['editor']['commands']['get']('trackChanges');_0x3a8129['buttonView']['set']({'tooltip':_0x24d6b4,'label':_0x24d6b4,'icon':_0x368711}),_0x3a8129['buttonView']['bind']('isOn')['to'](_0x13e0be,'value'),_0x3a8129['buttonView']['on']('execute',()=>{_0x13e0be['execute'](),this['editor']['editing']['view']['focus']();}),_0x125b97(_0x3a8129,_0x43d474,{'role':'menu'});const _0x33e855=[];for(const _0x55d975 of _0x43d474)ke(_0x55d975)&&_0x33e855['push'](this['editor']['commands']['get'](_0x55d975['model']['commandName']));const _0x2ab67f=_0x3a8129['buttonView'];return _0x2ab67f['actionView']['unbind']('isEnabled'),_0x2ab67f['arrowView']['unbind']('isEnabled'),_0x2ab67f['actionView']['bind']('isEnabled')['to'](_0x13e0be,'isEnabled'),_0x2ab67f['arrowView']['bind']('isEnabled')['toMany'](_0x33e855,'isEnabled',(..._0x55abb9)=>_0x55abb9['some'](_0x1d2d53=>_0x1d2d53)),_0x3a8129['on']('execute',_0x1fa5de=>{this['editor']['execute'](_0x1fa5de['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3a8129;}['_createMenuBarMenu'](_0x183db2,_0x26d73a,_0x3f0b81){const _0x440ef6=new _0x109a0c(_0x183db2),_0x418478=this['editor']['commands']['get']('trackChanges');_0x440ef6['buttonView']['set']({'label':_0x3f0b81,'icon':_0x368711});const _0x1ea97c=new _0x2e585f(_0x183db2);for(const _0xfa4c7a of _0x26d73a){if('separator'==_0xfa4c7a['type']){_0x1ea97c['items']['add'](new _0x298b31(_0x183db2));continue;}const _0x29e875=new _0x3d01b7(_0x183db2,_0x440ef6),_0x388155=new _0x3bad57(_0x183db2),_0x14cc46=_0xfa4c7a['model'];_0x388155['bind'](...Object['keys'](_0x14cc46))['to'](_0x14cc46),_0x388155['delegate']('execute')['to'](_0x440ef6),_0x388155['on']('execute',()=>{this['editor']['execute'](_0x14cc46['commandName']),this['editor']['editing']['view']['focus']();}),_0x29e875['children']['add'](_0x388155),_0x1ea97c['items']['add'](_0x29e875);}return _0x440ef6['bind']('isEnabled')['to'](_0x418478,'isEnabled'),_0x440ef6['panelView']['children']['add'](_0x1ea97c),_0x440ef6;}['_initializeController'](_0x5b4e13){const _0x8c8c07=this['editor'],_0x548322=_0x8c8c07['config'],_0x50f4ba=_0x8c8c07['plugins']['get']('Annotations'),_0x5eefca=_0x8c8c07['plugins']['get']('CommentsRepository'),_0x1b1588=_0x8c8c07['plugins']['get']('EditorAnnotations'),_0x4998b2=_0x8c8c07['plugins']['get'](_0x2aa14c)['me'],_0x16b1df=_0x548322['get']('trackChanges')['SuggestionThreadView'],_0x187aad=_0x548322['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4a3589,CommentThreadInputView:_0x17f7bc}=_0x8c8c07['plugins']['get']('CommentsUI');let _0x4bc867,_0x1e9ef8,_0x322d75;this['_annotationViews']['has'](_0x5b4e13['id'])?(_0x1e9ef8=this['_annotationViews']['get'](_0x5b4e13['id']),_0x4bc867=_0x1e9ef8['mainView']):(_0x4bc867=new _0x16b1df(_0x8c8c07['locale'],_0x5b4e13,_0x4998b2,{'disableComments':this['_disableComments'],'editorConfig':{..._0x548322['get']('comments.editorConfig'),'licenseKey':_0x548322['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x548322['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x548322['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x548322['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x8c2a2e(_0x548322['get']('locale'),_0x8c8c07['locale']),'CommentView':_0x548322['get']('comments')['CommentView'],'CommentsListView':_0x4a3589,'CommentThreadInputView':_0x17f7bc,'SuggestionView':_0x187aad}),_0x4bc867['suggestionView']['acceptButton']['on']('execute',()=>{_0x8c8c07['editing']['view']['focus']();}),_0x4bc867['suggestionView']['discardButton']['on']('execute',()=>{_0x8c8c07['editing']['view']['focus']();}),_0x1e9ef8=_0x50f4ba['createAnnotationView'](this['editor']['locale'],_0x4bc867),_0x1e9ef8['bind']('isDirty')['to'](_0x4bc867,'isDirty'),_0x1e9ef8['bind']('length')['to'](_0x4bc867),_0x1e9ef8['bind']('type')['to'](_0x4bc867,'type',_0x29e801=>'suggestion-'+_0x29e801),_0x4bc867['on']('escape',()=>{_0x322d75['fire']('escape');}),this['_annotationViews']['set'](_0x5b4e13['id'],_0x1e9ef8));const _0x43d976=_0x5eefca['createCommentThreadController'](_0x5b4e13['commentThread'],_0x4bc867),_0x4a79aa=new pe(_0x8c8c07,_0x5b4e13,_0x4bc867,_0x43d976),_0x19d70b=_0x5b4e13['getAllAdjacentSuggestions']()['filter'](_0x38308b=>_0x38308b['isInContent']);_0x4bc867['descriptionParts']=_0x8c8c07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x19d70b),this['_suggestionToController']['set'](_0x5b4e13,_0x4a79aa),this['_viewToController']['set'](_0x4bc867,_0x4a79aa),_0x322d75=_0x50f4ba['createAnnotation']({'view':_0x1e9ef8,'target':()=>{const _0x42f0e0=[],_0x586007=_0x5b4e13['getAllAdjacentSuggestions']()['filter'](_0x124a50=>_0x124a50['isInContent']);for(const _0x56c61e of _0x586007)_0x42f0e0['push'](..._0x56c61e['getMarkers']());return _0x149208(_0x8c8c07['editing'],_0x42f0e0);},'type':()=>'suggestion-'+_0x4a79aa['view']['type']}),_0x5eefca['_bindAnnotationToEditors'](_0x4bc867,_0x322d75),_0x50f4ba['add'](_0x322d75),_0x1b1588['registerAnnotation'](_0x322d75);}['_destroyController'](_0x3bd43b){const _0x1aa90d=this['editor']['plugins']['get']('CommentsRepository'),_0x2edb3e=this['editor']['plugins']['get']('Annotations'),_0x12b755=this['_suggestionToController']['get'](_0x3bd43b),_0x1e5074=_0x12b755['view'],_0x57294b=_0x2edb3e['getByInnerView'](_0x1e5074);_0x1aa90d['_unbindEditors'](_0x1e5074),_0x57294b&&_0x2edb3e['remove'](_0x57294b),this['_suggestionToController']['delete'](_0x3bd43b),this['_viewToController']['delete'](_0x1e5074),_0x12b755['destroy']();}['_updateController'](_0x253e87){if(!_0x253e87['isInContent']||!this['_suggestionToController']['has'](_0x253e87))return;const _0x3aa3e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x536fd3=this['_suggestionToController']['get'](_0x253e87),_0x19a8ab=_0x253e87['getAllAdjacentSuggestions']();_0x536fd3['view']['descriptionParts']=_0x3aa3e4['descriptionFactory']['getDescriptions'](_0x19a8ab);}['destroy'](){for(const _0x43ed62 of this['_suggestionToController']['keys']())this['_destroyController'](_0x43ed62);for(const _0x49582c of this['_annotationViews']['values']())_0x49582c['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x536d40){return'model'in _0x536d40;}class k extends _0x55fa68{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3833cc){this['editor']['plugins']['get'](p)['adapter']=_0x3833cc;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x94a355){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x94a355);}['getSuggestions']({skipNotAttached:_0x481294=!0x1,toJSON:_0x2aa71d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x481294,'toJSON':_0x2aa71d});}['getSuggestion'](_0x5c3696){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5c3696);}}const w=['Pagination'];class T extends _0x55fa68{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4a2471=this['editor'];if(_0x4a2471['config']['define']('trackChangesData.editorCreator',_0x1e7986=>{const _0x39c3b1=_0x4a2471['model']['document']['getRootNames']()['reduce']((_0x295073,_0x2be5a1)=>(_0x295073[_0x2be5a1]='',_0x295073),{});return _0x4a2471['constructor']['create'](_0x39c3b1,_0x1e7986);}),'function'!=typeof _0x4a2471['config']['get']('trackChangesData')['editorCreator'])throw new _0x50045d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1b7106){return N(this['editor'],!0x0,_0x1b7106);}['getDataWithDiscardedSuggestions'](_0x33e0d4){return N(this['editor'],!0x1,_0x33e0d4);}}class D extends _0x55fa68{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a4650){function _0x5deaed(_0x162da9){return _0x162da9['map'](_0x28edfe=>String['fromCharCode'](_0x28edfe))['join']('');}super(_0x2a4650),this['result']='end',_0x2a4650[_0x5deaed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5deaed([0x76,0x69,0x65,0x77])][_0x5deaed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5deaed([0x61,0x75,0x74,0x6f]),_0x2a4650[_0x5deaed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5deaed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5deaed([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5deaed([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5deaed([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 Ge(_0x1f0d1f){return void 0x0!==_0x1f0d1f['getRootsAttributes'];}async function N(_0x3e8e3b,_0x52ac6d,_0x172747){const _0x12720f=_0x5b869d(_0x3e8e3b,w);_0x12720f['plugins']['push'](p,D),_0x12720f['rootsAttributes']=Ge(_0x3e8e3b)?_0x3e8e3b['getRootsAttributes']():void 0x0;const _0x455736=document['createDocumentFragment'](),_0x232315=_0x3e8e3b['config']['get']('trackChangesData')['editorCreator'],_0x314439=await _0x232315(_0x12720f,()=>function(_0x2b6e8a){const _0x555453=document['createElement']('div');return _0x2b6e8a['appendChild'](_0x555453),_0x555453;}(_0x455736));!function(_0xbdd7a4,_0x4b6d9b){const _0x476b13=_0xbdd7a4['model']['document']['getRootNames']()['reduce']((_0x48be47,_0x13e00e)=>(_0x48be47[_0x13e00e]=_0xbdd7a4['data']['get']({'rootName':_0x13e00e}),_0x48be47),{}),_0x13c179=_0xbdd7a4['plugins']['get']('Users')['users']['map'](_0xabfa82=>({'id':_0xabfa82['id'],'name':_0xabfa82['name']})),_0x6e8ffa=_0xbdd7a4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2defdc=_0xbdd7a4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x34e17d=_0x4b6d9b['plugins']['get']('Users'),_0x59ec93=_0x4b6d9b['plugins']['get']('TrackChangesEditing'),_0x48b7f0=_0x4b6d9b['plugins']['get']('CommentsRepository');for(const _0x220ee5 of _0x48b7f0['getCommentThreads']())_0x220ee5['remove']();for(const _0x33f45e of _0x13c179)_0x34e17d['getUser'](_0x33f45e['id'])||_0x34e17d['addUser'](_0x33f45e);_0x34e17d['me']||_0x34e17d['useAnonymousUser']();for(const _0xe36442 of _0x2defdc)_0x48b7f0['addCommentThread'](_0xe36442);for(const _0x355cd1 of _0x6e8ffa)_0x59ec93['addSuggestionData'](_0x355cd1);_0x4b6d9b['data']['set'](_0x476b13);}(_0x3e8e3b,_0x314439),_0x314439['execute'](_0x52ac6d?'acceptAllSuggestions':'discardAllSuggestions');const _0x520fc2=Ge(_0x314439)?_0x314439['getFullData'](_0x172747):_0x314439['data']['get'](_0x172747);return await _0x314439['destroy'](),_0x520fc2;}class Me extends _0x16e147{['options'];constructor(_0x1794d5,_0x58a8e6){super(_0x1794d5),this['options']=_0x58a8e6,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x23d378,_0x55ae0e){if(!this['element'])return;const _0x1666b8=[];for(const [_0x4ef9ca,_0x20b655]of _0x23d378){const _0x17f3df=document['createElement']('div');_0x17f3df['setAttribute']('data-ck-root-name',_0x4ef9ca),_0x17f3df['className']=_0x20b655['classes']+'\x20ck-track-changes-preview__root-container',_0x17f3df['innerHTML']=_0x20b655['content'],_0x1666b8['push'](_0x17f3df);}_0x55ae0e(this['element'],_0x1666b8),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5b0c44{constructor(_0x3b5d21){super(_0x3b5d21),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4077ce=this['editor'],_0x549b5d=_0x4077ce['locale'],_0x2296de=_0x4077ce['plugins']['get']('Dialog');let _0x9f5168;const _0x5c0eef=function(_0x5127e0){const _0x21b43c={};if('editables'in _0x5127e0['ui']['view']){for(const [_0x403581,_0x2c7c30]of Object['entries'](_0x5127e0['ui']['view']['editables']))_0x21b43c[_0x403581]=_0x2c7c30['element'];}else _0x21b43c[_0x5127e0['model']['document']['getRootNames']()[0x0]]=_0x5127e0['ui']['view']['editable']['element'];return _0x21b43c;}(_0x4077ce),_0x57fd43=function(_0x379e45){let _0x13cc18=0x0;for(const _0x2ca7c1 of Object['values'](_0x379e45))_0x13cc18=Math['max'](_0x13cc18,_0x2ca7c1['getBoundingClientRect']()['width']);let _0x4f4660=0x0;for(const _0x42a7c2 of Object['values'](_0x379e45))_0x4f4660+=_0x42a7c2['getBoundingClientRect']()['height'];const _0x2d6580=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x259214=Math['min'](_0x4f4660,_0x2d6580);return{'width':_0x13cc18,'height':_0x259214};}(_0x5c0eef);_0x2296de['show']({'id':'finalContentPreview','title':c(_0x549b5d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x549b5d,{'dialogRects':_0x57fd43}),'onHide':()=>{_0x9f5168['detachFromDom']();},'onShow':()=>{_0x4077ce['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1cdb09=>{const _0x9e5642=this['_standarizeRootsData'](_0x1cdb09,_0x4077ce,_0x5c0eef);_0x2296de['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x9e5642,_0x4077ce['config']['get']('trackChanges.preview.renderFunction'));}),_0x9f5168=new _0x58d2d9(_0x549b5d,[_0x2296de['view']]),_0x9f5168['attachToDom'](),_0x9f5168['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4077ce['once']('destroy',()=>{_0x9f5168['detachFromDom']();});const _0x17b1c3=_0x2296de['view']['headerView']['class'];_0x2296de['view']['headerView']['class']=_0x17b1c3?_0x17b1c3+'\x20ck-reset_all':'ck-reset_all',_0x2296de['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2296de['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x534d61=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2419a7=_0x534d61['previewMode'],_0x4d65b5={};if('$labels'===_0x2419a7){for(const _0x124c00 of _0x534d61['getMergeFieldsIds']())_0x4d65b5[_0x124c00]=_0x534d61['getLabel'](_0x124c00)||_0x124c00;}else{const _0x49a598='$defaultValues'===_0x2419a7?_0x534d61['getDefaultValues']():_0x534d61['getDataSetValues'](_0x2419a7,!0x0);for(const _0x29e7cb of Object['entries'](_0x49a598)){const [_0x35d043,_0x35029b]=_0x29e7cb;_0x4d65b5[_0x35d043]=null!==_0x35029b?_0x35029b:_0x534d61['getLabel'](_0x35d043)||_0x35d043;}}return{'mergeFieldsData':_0x4d65b5};}['_standarizeRootsData'](_0x490c2f,_0x14841c,_0x3c8021){let _0x154bdd;if('string'==typeof _0x490c2f){const _0x26b9d6=_0x14841c['model']['document']['getRootNames']()[0x0];_0x154bdd={[_0x26b9d6]:_0x490c2f};}else _0x154bdd=_0x490c2f;const _0x1fcfa0=this['_fixMediaEmbeds'](_0x154bdd,_0x14841c),_0x49670e=function(_0x26ca92,_0x3b66a5){for(const [_0x4c386a,_0xbcd73a]of _0x26ca92)_0xbcd73a['classes']=_0x3b66a5[_0x4c386a]['classList']['value']['replace']('ck-focused','');return _0x26ca92;}(this['_sortRoots'](_0x14841c)['reduce']((_0x50976f,_0x3cf4ed)=>(_0x50976f['push']([_0x3cf4ed,{'content':_0x1fcfa0[_0x3cf4ed],'classes':''}]),_0x50976f),[]),_0x3c8021);return _0x49670e;}['_fixMediaEmbeds'](_0x1722ff,_0x5d4def){if(!_0x5d4def['plugins']['has']('MediaEmbedEditing'))return _0x1722ff;const _0x390039=_0x5d4def['plugins']['get']('MediaEmbedEditing');for(const [_0x3b063a,_0x378473]of Object['entries'](_0x1722ff)){const _0x136af1=document['createElement']('div');_0x136af1['innerHTML']=_0x378473,(_0x136af1['querySelectorAll']('figure.media')['forEach'](_0x143352=>{const _0x1f1649=_0x143352['querySelector']('oembed');if(_0x1f1649){const _0x4dc7fd=_0x1f1649['getAttribute']('url');if(_0x4dc7fd){const _0x280ddb=_0x390039['registry']['getMediaViewElement'](new _0x24579b(_0x5d4def['editing']['view']['document']),_0x4dc7fd,{'elementName':'','renderForEditingView':!0x0}),_0x510a5a=document['createElement']('div');_0x510a5a['classList']['add']('ck-media__wrapper'),_0x280ddb['render'](_0x510a5a,_0x5d4def['editing']['view']['domConverter']),_0x1f1649['replaceWith'](_0x510a5a);}}}),_0x1722ff[_0x3b063a]=_0x136af1['innerHTML']);}return _0x1722ff;}['_sortRoots'](_0x3aba96){if(!function(_0x3a6854){return void 0x0!==_0x3a6854['getRootsAttributes'];}(_0x3aba96))return _0x3aba96['model']['document']['getRootNames']();const _0x47e710=[],_0x269c2f=new Map();for(const _0x346727 of _0x3aba96['model']['document']['getRootNames']()){const _0x25c22b=_0x3aba96['editing']['view']['getDomRoot'](_0x346727)['getClientRects']()['item'](0x0);_0x47e710['push'](_0x346727),_0x269c2f['set'](_0x346727,_0x25c22b);}return _0x47e710['sort']((_0xbb1111,_0x5d0d01)=>{const _0x274b59=_0x269c2f['get'](_0xbb1111),_0x5d7f0a=_0x269c2f['get'](_0x5d0d01);return _0x274b59['y']-_0x5d7f0a['y']||_0x274b59['x']-_0x5d7f0a['x'];}),_0x47e710;}}class te extends _0x55fa68{static get['requires'](){return[T,_0x16e211];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57e6b9){super(_0x57e6b9),_0x57e6b9['commands']['add']('previewFinalContent',new re(this['editor'])),_0x57e6b9['config']['define']('trackChanges.preview.renderFunction',(_0x2a5e28,_0x179f94)=>{for(const _0x425ecf of _0x179f94)_0x2a5e28['appendChild'](_0x425ecf);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};