@ckeditor/ckeditor5-track-changes 45.2.1-alpha.5 → 45.2.1-alpha.6

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 _0x5ce001,Plugin as _0x3b7b17,PendingActions as _0xd08589}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2ff5bb,ObservableMixin as _0x392217,uid as _0x145d91,priorities as _0x2a48aa,insertToPriorityArray as _0x41a221,toArray as _0x4deedd,logWarning as _0x50a716,getEnvKeystrokeText as _0x596155,FocusTracker as _0x154d70,KeystrokeHandler as _0x3c0c63,Collection as _0x569b00}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xf48063,IconCancel as _0x3d8301,IconTrackChanges as _0x351586}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x30d2e2,View as _0x564b64,ViewCollection as _0x669556,FocusCycler as _0x3c3dec,ViewModel as _0x8d1626,createDropdown as _0x1e3e80,SplitButtonView as _0x1be649,addListToDropdown as _0x3936e1,MenuBarMenuView as _0x4c37c4,MenuBarMenuListView as _0x311ed1,ListSeparatorView as _0x4d2682,MenuBarMenuListItemView as _0x3c3247,MenuBarMenuListItemButtonView as _0x352b5a,BodyCollection as _0x74cf6a,Dialog as _0x4cc463}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3f47f0,hashObject as _0x277fad,surroundingMarkersDetector as _0x268fc9,FOCUS_ANNOTATION_KEYSTROKE as _0x692b0e,AriaDescriptionView as _0xde0aa6,setupThreadKeyboardNavigation as _0x96e750,trimHtml as _0x527a31,UserView as _0x284f92,LateFocusButtonView as _0x5ad22c,getDateTimeFormatter as _0x3f01e5,getAllMarkersDomElementsSorted as _0x2729e0,sanitizeEditorConfig as _0x201bd5}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x31b420,LiveRange as _0x1f6f9b,LivePosition as _0x58954e,DowncastWriter as _0x2676fd}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5eced9,toWidget as _0x19dbd2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x314ea1,set as _0x3c8e61,isEqual as _0xdf7095,unset as _0x20f8ce,omit as Ft}from'es-toolkit/compat';import{Delete as _0x2ba1e3,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x360f0e}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1ab1df}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5ce001{['_enabledCommands'];constructor(_0x38d220,_0x46632e){super(_0x38d220),this['_enabledCommands']=_0x46632e,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 _0x1bd8c6 of this['editor']['commands']['commands']())_0x1bd8c6['affectsData']&&!this['_enabledCommands']['has'](_0x1bd8c6)&&_0x1bd8c6['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1263e5 of this['editor']['commands']['commands']())_0x1263e5['affectsData']&&!this['_enabledCommands']['has'](_0x1263e5)&&_0x1263e5['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x5ce001{['_suggestions'];constructor(_0x27ea99,_0x28961a){super(_0x27ea99),this['_suggestions']=_0x28961a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4063f0){const _0x21a38b=this['_suggestions']['get'](_0x4063f0);if(!_0x21a38b)throw new _0x2ff5bb('track-changes-accept-suggestion-not-found',this);const _0x2da02d=_0x21a38b['getRanges']();this['editor']['model']['canEditAt'](_0x2da02d)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x21a38b);}}class O extends _0x5ce001{['_suggestions'];constructor(_0x4782e1,_0x16eb51){super(_0x4782e1),this['_suggestions']=_0x16eb51,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x31c36a){const _0x5bf495=this['_suggestions']['get'](_0x31c36a);if(!_0x5bf495)throw new _0x2ff5bb('track-changes-discard-suggestion-not-found',this);const _0x2cc332=_0x5bf495['getRanges']();this['editor']['model']['canEditAt'](_0x2cc332)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5bf495);}}function ls(_0x41a0af,_0x210003){let _0x484404='';return _0x484404+=_0x41a0af['split']('*')['map']((_0x507a68,_0x14fb6d)=>_0x14fb6d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x507a68)+'</span>':nn(_0x507a68))['join'](''),_0x210003&&(_0x484404+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x210003['value']+'\x22\x20title=\x22'+_0x210003['title']+'\x22></span>'),_0x484404;}function nn(_0x2cb4c4){const _0x2c7529=document['createElement']('span');return _0x2c7529['innerText']=_0x2cb4c4,_0x2c7529['innerHTML'];}function ts(_0x7c3290){return _0x7c3290['sort']((_0x3b9a90,_0x23928a)=>'deletion'==_0x3b9a90['type']&&'deletion'!=_0x23928a['type']?-0x1:'deletion'!=_0x3b9a90['type']&&'deletion'==_0x23928a['type']?0x1:0x0);}function to(_0x568b92,_0x27a922){let _0x3ab3d1,_0x3e1ef8=0x0;const _0x2a7459=[],_0xf3657b=_0x27a922['schema'];for(;_0x3e1ef8<_0x568b92['length'];){const _0xfaa8ac=_0x568b92[_0x3e1ef8],_0x4450b7=_0x568b92[_0x3e1ef8+0x1];_0x3ab3d1||(_0x3ab3d1=_0x27a922['createPositionBefore'](_0xfaa8ac)),on(_0x27a922,_0xfaa8ac,_0x4450b7)||(_0x2a7459['push'](_0x27a922['createRange'](_0x3ab3d1,_0xf3657b['isObject'](_0xfaa8ac)?_0x27a922['createPositionAfter'](_0xfaa8ac):_0x27a922['createPositionAt'](_0xfaa8ac,'end'))),_0x3ab3d1=null),_0x3e1ef8++;}return _0x2a7459;}function on(_0x5dd94a,_0x5474c7,_0x32836c){if(!_0x32836c)return!0x1;const _0x5e0d45=_0x5dd94a['createPositionAfter'](_0x5474c7),_0x51e3c1=_0x5dd94a['createPositionBefore'](_0x32836c);return _0x5e0d45['isTouching'](_0x51e3c1);}function rs(_0x52b5ce,_0x1df228,_0x236591){for(;_0x236591['length'];){const _0x466944=_0x236591['splice'](0x0,0x64);_0x52b5ce['change'](()=>{for(const _0x23b17a of _0x466944)_0x23b17a['isInContent']&&_0x1df228['execute'](_0x23b17a['id']);});}}class R extends _0x5ce001{['_command'];['_suggestions'];constructor(_0x279cf7,_0x77cb7a,_0x42ce47){super(_0x279cf7),this['_command']=_0x77cb7a,this['_suggestions']=_0x42ce47,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x304ff6=Array['from'](this['_suggestions']['values']())['some'](_0x380383=>_0x380383['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x304ff6;}['execute'](){const _0x4b200d=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2bf8ec of _0x4b200d){const _0x25d0e2=_0x2bf8ec['getRanges']();if(!this['editor']['model']['canEditAt'](_0x25d0e2))return;}rs(this['editor']['model'],this['_command'],_0x4b200d);}}class E extends _0x5ce001{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x377e4f,_0x2f5155,_0xda6a51){super(_0x377e4f),this['_command']=_0x2f5155,this['_suggestions']=_0xda6a51,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x510088=this['editor']['model']['document']['selection'],_0x478e55=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x9e8229,_0x5d3334){const _0x2659bc=Array['from'](_0x9e8229['getRanges']()),_0x238320=new Set();for(const _0x3f241e of _0x5d3334)if(_0x3f241e['isInContent']){for(const _0x2dac0c of _0x2659bc)for(const _0x134504 of _0x3f241e['getRanges']())(_0x2dac0c['isIntersecting'](_0x134504)||_0x9e8229['isCollapsed']&&!_0x3f241e['isMultiRange']&&_0x3f241e['next']&&_0x134504['end']['isTouching'](_0x2dac0c['start']))&&_0x238320['add'](_0x3f241e);}return _0x238320;}(_0x510088,_0x478e55),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2ff069=ts(Array['from'](this['_selectedSuggestions']));for(const _0x5e6974 of _0x2ff069){const _0x2601c5=_0x5e6974['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2601c5))return;}rs(this['editor']['model'],this['_command'],_0x2ff069);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x392217(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3eda48,_0x5b9ba9){super(),this['id']=_0x5b9ba9['id'],this['type']=_0x5b9ba9['type'],this['subType']=_0x5b9ba9['subType']||null,this['author']=_0x5b9ba9['author'],this['creator']=_0x5b9ba9['creator']||_0x5b9ba9['author'],this['isExternal']=Boolean(_0x5b9ba9['attributes']&&_0x5b9ba9['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5b9ba9['originalSuggestionId']||null,this['_model']=_0x3eda48,this['_onAccept']=_0x5b9ba9['onAccept'],this['_onDiscard']=_0x5b9ba9['onDiscard'],this['_onAttributesChange']=_0x5b9ba9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5b9ba9['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 _0x2e7480=this;for(;_0x2e7480['previous'];)_0x2e7480=_0x2e7480['previous'];return _0x2e7480;}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'](_0x1d28d5){this['_markerNames']['add'](_0x1d28d5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x447804=>this['_model']['markers']['get'](_0x447804))['filter'](_0x2c20ac=>_0x2c20ac);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5d629e=>{for(const _0x2c6997 of this['getMarkers']())_0x5d629e['removeMarker'](_0x2c6997);}),this['_markerNames']['clear']();}['removeMarker'](_0x5e1ce5){this['_model']['change'](_0x3d91e6=>{_0x3d91e6['removeMarker'](_0x5e1ce5);}),this['_markerNames']['delete'](_0x5e1ce5);}['addRange'](_0xb73cd2){const _0x2721ba='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x2721ba),this['_model']['change'](_0x2583d4=>{_0x2583d4['addMarker'](_0x2721ba,{'range':_0xb73cd2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x430cd7){for(const _0x4efb6e of this['getRanges']())if(_0x4efb6e['isIntersecting'](_0x430cd7))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x562599=>_0x562599['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x10a02d,_0x3e145d)=>[..._0x10a02d,..._0x3e145d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4f54e2=this['getRanges']();if(0x1!=_0x4f54e2['length'])return null;const _0x399cc7=_0x4f54e2[0x0],_0x4fde5d=_0x399cc7['start']['nodeAfter'],_0x306468=_0x399cc7['end']['nodeBefore'];return _0x4fde5d instanceof _0x31b420?_0x4fde5d!=_0x306468?null:_0x4fde5d: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 _0x5d9d82=[];let _0x248153=this['head'];for(;_0x248153;)_0x5d9d82['push'](_0x248153),_0x248153=_0x248153['next'];return _0x5d9d82;}['setAttribute'](_0x9c225f,_0xd1d7f0){const _0x376e11=_0x314ea1(this['attributes']);_0x3c8e61(_0x376e11,_0x9c225f,_0xd1d7f0),_0xdf7095(_0x376e11,this['attributes'])||(this['attributes']=_0x376e11,this['_onAttributesChange'](_0x376e11));}['removeAttribute'](_0x3c2b52){const _0xceaa54=_0x314ea1(this['attributes']);_0x20f8ce(_0xceaa54,_0x3c2b52),_0xdf7095(_0xceaa54,this['attributes'])||(this['attributes']=_0xceaa54,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 _0x145d91()['substr'](0x1,0x5);}}function c(_0x524000,_0x3e4df8,_0x23643b){const _0x246708=_0x524000['t'],t=_0x524000['t'];switch(_0x3e4df8){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',_0x23643b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x23643b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x23643b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x23643b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x23643b);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',_0x23643b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x23643b);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',_0x23643b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x23643b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x23643b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x23643b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x23643b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x23643b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x23643b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x23643b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x23643b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x23643b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x23643b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x23643b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x23643b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x23643b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x23643b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x23643b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x23643b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x23643b);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'},_0x23643b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x23643b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x23643b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x23643b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x23643b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x23643b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x23643b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x23643b);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'},_0x23643b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x23643b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x23643b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x23643b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x23643b);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'},_0x23643b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x23643b);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'},_0x23643b);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'},_0x23643b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x23643b);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'},_0x23643b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x23643b);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'},_0x23643b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x23643b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x23643b);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'},_0x23643b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x23643b);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 _0x246708({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x23643b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x246708({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x23643b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x23643b);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'},_0x23643b);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'},_0x23643b);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'},_0x23643b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3e4df8;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x319e5c,_0x55f3d2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x319e5c,this['_locale']=_0x55f3d2;}['getDescriptions'](_0x28db28){const _0x433db7=[],_0x592839=new Set(),_0x4bd9bc=new Set();for(let _0x8c2a77=0x0;_0x8c2a77<_0x28db28['length'];_0x8c2a77++){const _0x18b0c8=_0x28db28[_0x8c2a77];if(!_0x18b0c8['isInContent'])continue;const _0x17eb38=this['_handleCustomCallbackDescription'](_0x18b0c8);if(_0x17eb38){if(null!=_0x18b0c8['subType']){if(_0x592839['has'](_0x18b0c8['subType']))continue;_0x592839['add'](_0x18b0c8['subType']);}_0x433db7['push'](_0x17eb38);}else{if('attribute'!=_0x18b0c8['type'])'insertion'!=_0x18b0c8['type']&&'deletion'!=_0x18b0c8['type']||this['_handleInsertRemoveSuggestionDescription'](_0x433db7,_0x18b0c8,_0x28db28[_0x8c2a77+0x1]);else{const _0x3370a8=_0x18b0c8['data']['key'];if(_0x4bd9bc['has'](_0x3370a8))continue;_0x4bd9bc['add'](_0x18b0c8['data']['key']),_0x3370a8==u?this['_handleRenameSuggestionDescription'](_0x433db7,_0x18b0c8):this['_handleAttributeSuggestionDescription'](_0x433db7,_0x18b0c8);}}}return this['_resolveDescriptionItems'](_0x433db7);}['registerDescriptionCallback'](_0x27a264){this['_customCallbacks']['push'](_0x27a264);}['registerElementLabel'](_0x452408,_0x3c805b,_0x5f4e2b=_0x2a48aa['normal']){'function'==typeof _0x452408?_0x41a221(this['_itemLabelsCallbacks'],{'matchingCallback':_0x452408,'label':_0x3c805b,'priority':_0x5f4e2b}):this['_itemLabels']['set'](_0x452408,_0x3c805b);}['registerAttributeLabel'](_0x28652f,_0x36ec0b){this['_attributeLabels']['set'](_0x28652f,_0x36ec0b);}['getItemLabel'](_0x1ea908,_0x44d456=0x1){let _0x27a566;for(const _0xf7dbe0 of this['_itemLabelsCallbacks'])if(_0xf7dbe0['matchingCallback'](_0x1ea908)){_0x27a566=_0xf7dbe0['label'];break;}return _0x27a566||(_0x27a566=this['_itemLabels']['get'](_0x1ea908['name'])),_0x27a566?_0x27a566(_0x44d456):0x1!==_0x44d456?_0x44d456+'\x20'+_0x1ea908['name']+'s':''+_0x1ea908['name'];}['_addDescriptionItems'](_0x6b5126,_0x3e8fbc){const _0x2e5205=_0x3e8fbc['getFirstRange']()['getWalker'](),_0x2a1d31='insertion'==_0x3e8fbc['type']?'add':'remove';for(const _0xfe0777 of _0x2e5205){const _0x42b7fa=_0xfe0777['item'],_0x31726a=_0x6b5126[_0x6b5126['length']-0x1];if(_0x42b7fa['is']('$textProxy'))_0x31726a&&_0x31726a['type']['indexOf']('Container')>-0x1&&_0x6b5126['pop'](),_0x31726a&&'text'==_0x31726a['type']?_0x31726a[_0x2a1d31]+=_0x42b7fa['data']:_0x6b5126['push']({'type':'text','add':'add'==_0x2a1d31?_0x42b7fa['data']:'','remove':'remove'==_0x2a1d31?_0x42b7fa['data']:''});else{if(this['_schema']['isObject'](_0x42b7fa)){const _0x516624=_0x42b7fa;if(_0x31726a&&_0x31726a['type']['indexOf']('Container')>-0x1&&_0x6b5126['pop'](),'elementEnd'==_0xfe0777['type'])continue;_0x31726a&&_0x31726a['type']==_0x2a1d31+'Object'&&_0x31726a['element']['name']==_0x516624['name']?_0x31726a['quantity']++:_0x6b5126['push']({'type':_0x2a1d31+'Object','element':_0x516624,'quantity':0x1}),_0x2e5205['skip'](_0x167ecf=>!('elementEnd'==_0x167ecf['type']&&_0x167ecf['item']==_0x42b7fa));}else{if(this['_schema']['checkChild'](_0x42b7fa,'$text')||_0x42b7fa['is']('element','softBreak')){const _0x429338=_0x42b7fa;if('add'==_0x2a1d31&&'elementStart'==_0xfe0777['type']||'remove'==_0x2a1d31&&'elementEnd'==_0xfe0777['type'])continue;if(_0x31726a&&-0x1==_0x31726a['type']['indexOf']('Container')){'text'==_0x31726a['type']&&(_0x31726a[_0x2a1d31]+='\x0a');continue;}let _0x310cd8;if(_0x310cd8='add'==_0x2a1d31?_0x429338['nextSibling']&&!this['_schema']['isObject'](_0x429338['nextSibling'])?_0x429338['nextSibling']:null:_0x429338['previousSibling']&&!this['_schema']['isObject'](_0x429338['previousSibling'])?_0x429338['previousSibling']:null,_0x429338['isEmpty']||_0x310cd8&&_0x310cd8['isEmpty']){const _0x173a11=_0x310cd8&&_0x310cd8['isEmpty']?_0x310cd8:_0x429338;_0x31726a&&_0x31726a['type']==_0x2a1d31+'EmptyContainer'&&_0x31726a['element']['name']==_0x173a11['name']?_0x31726a['quantity']++:_0x6b5126['push']({'type':_0x2a1d31+'EmptyContainer','element':_0x173a11,'quantity':0x1});}else _0x6b5126['push']({'type':_0x2a1d31+'Container','element':_0x429338});}}}}}['_resolveDescriptionItems'](_0x2f3828){const _0x59ce37=this['_locale'],_0xebbbbd=[],_0x2bbda0=[],_0x22c761=[];for(const _0x1be4e7 of _0x2f3828)switch(_0x1be4e7['type']){case'text':if(_0x1be4e7['add']=_0x1be4e7['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1be4e7['remove']=_0x1be4e7['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1be4e7['add']&&''!=_0x1be4e7['remove']){_0xebbbbd['push']({'type':'replace','content':c(_0x59ce37,'REPLACE_TEXT',['\x22'+_0x1be4e7['remove']+'\x22','\x22'+_0x1be4e7['add']+'\x22'])});continue;}if(null!=_0x1be4e7['add']['match'](/^ +$/)){_0xebbbbd['push']({'type':'insertion','content':c(_0x59ce37,'*Insert:*\x20%0',c(_0x59ce37,'ELEMENT_SPACE',_0x1be4e7['add']['length']))});continue;}if(null!=_0x1be4e7['remove']['match'](/^ +$/)){_0xebbbbd['push']({'type':'deletion','content':c(_0x59ce37,'*Remove:*\x20%0',c(_0x59ce37,'ELEMENT_SPACE',_0x1be4e7['remove']['length']))});continue;}if(''!=_0x1be4e7['add']){_0xebbbbd['push']({'type':'insertion','content':c(_0x59ce37,'*Insert:*\x20%0','\x22'+_0x1be4e7['add']+'\x22')});continue;}_0xebbbbd['push']({'type':'deletion','content':c(_0x59ce37,'*Remove:*\x20%0','\x22'+_0x1be4e7['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xebbbbd['push']({'type':'insertion','content':c(_0x59ce37,'*Insert:*\x20%0',this['getItemLabel'](_0x1be4e7['element'],_0x1be4e7['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xebbbbd['push']({'type':'deletion','content':c(_0x59ce37,'*Remove:*\x20%0',this['getItemLabel'](_0x1be4e7['element'],_0x1be4e7['quantity']))});continue;case'addContainer':_0xebbbbd['push']({'type':'insertion','content':c(_0x59ce37,'*Split:*\x20%0',this['getItemLabel'](_0x1be4e7['element'],_0x1be4e7['quantity']))});continue;case'removeContainer':_0xebbbbd['push']({'type':'deletion','content':c(_0x59ce37,'*Merge:*\x20%0',this['getItemLabel'](_0x1be4e7['element'],_0x1be4e7['quantity']))});continue;case'addFormat':_0x2bbda0['push'](_0x1be4e7['key']);continue;case'removeFormat':_0x22c761['push'](_0x1be4e7['key']);continue;default:_0xebbbbd['push'](_0x1be4e7);}if(_0x2bbda0['length']){const _0x4758e0=_0x2bbda0['map'](_0x1dfd69=>this['_attributeLabels']['has'](_0x1dfd69)?this['_attributeLabels']['get'](_0x1dfd69):_0x1dfd69)['join'](',\x20');_0xebbbbd['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x4758e0)});}if(_0x22c761['length']){const _0x228b1c=_0x22c761['map'](_0x26ec12=>this['_attributeLabels']['has'](_0x26ec12)?this['_attributeLabels']['get'](_0x26ec12):_0x26ec12)['join'](',\x20');_0xebbbbd['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x228b1c)});}return _0xebbbbd;}['_handleCustomCallbackDescription'](_0x16d9e8){for(const _0x47ac66 of this['_customCallbacks']){const _0x5cf7a7=_0x47ac66(_0x16d9e8);if(_0x5cf7a7&&'type'in _0x5cf7a7)return _0x5cf7a7;}}['_handleAttributeSuggestionDescription'](_0x19e191,_0x4db3f7){const _0x163e3f=_0x4db3f7['data'],_0x19815e=void 0x0===_0x163e3f['newValue']?'removeFormat':'addFormat';_0x19e191['push']({'type':_0x19815e,'key':_0x163e3f['key']});}['_handleRenameSuggestionDescription'](_0x1221bc,_0x35f429){_0x1221bc['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x35f429['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x393d01,_0x16ce3c,_0xcb2b95){if(this['_addDescriptionItems'](_0x393d01,_0x16ce3c),_0xcb2b95&&_0xcb2b95['getFirstRange']()&&!_0x16ce3c['getFirstRange']()['end']['isEqual'](_0xcb2b95['getFirstRange']()['start'])){const _0x3b93ba=_0x393d01[_0x393d01['length']-0x1],_0x1184e3='insertion'==_0x16ce3c['type']?'add':'remove';_0x3b93ba&&'text'==_0x3b93ba['type']&&(_0x3b93ba[_0x1184e3]+='\x0a');}}}class U extends _0x3b7b17{['afterInit'](){const _0x1f14a5=this['editor'],_0x44fbf5=_0x1f14a5['plugins']['get']('TrackChangesEditing');_0x1f14a5['commands']['get']('showAIAssistant')&&_0x44fbf5['enableCommand']('showAIAssistant');}}class V extends _0x3b7b17{['afterInit'](){const _0x4b5558=this['editor'],_0x3c6877=_0x4b5558['locale'];if(!_0x4b5558['plugins']['has']('AlignmentEditing'))return;const _0x2bc6f1=_0x4b5558['plugins']['get']('TrackChangesEditing');_0x2bc6f1['enableDefaultAttributesIntegration']('alignment'),_0x2bc6f1['registerBlockAttribute']('alignment'),_0x2bc6f1['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x3c6877,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b9358=this['editor'],_0xc78814=_0x2b9358['locale'];_0x2b9358['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29c930=>{if('formatBlock'!=_0x29c930['type'])return;const {data:_0x47e8e0}=_0x29c930;if(_0x47e8e0&&'alignment'==_0x47e8e0['commandName']){const _0x1a173d=_0x47e8e0['commandParams'][0x0]['value'];return{'type':'format','content':c(_0xc78814,'*Format:*\x20%0',function(_0x3c33d4){switch(_0x3c33d4){case'left':return c(_0xc78814,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0xc78814,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0xc78814,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0xc78814,'FORMAT_JUSTIFY_TEXT');}}(_0x1a173d))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x3b7b17{['afterInit'](){const _0x41438c=this['editor'],_0x1f761d=_0x41438c['plugins']['get']('TrackChangesEditing'),_0x1c0767=_0x41438c['locale'];for(const _0x52dff9 of ti){if(!_0x41438c['plugins']['has'](_0x52dff9))continue;const _0x1863c1=_0x52dff9['slice'](0x0,-0x7)['toLowerCase'](),_0x59b365='FORMAT_'+_0x1863c1['toUpperCase']();_0x1f761d['enableDefaultAttributesIntegration'](_0x1863c1),_0x1f761d['registerInlineAttribute'](_0x1863c1),_0x1f761d['descriptionFactory']['registerAttributeLabel'](_0x1863c1,c(_0x1c0767,_0x59b365));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d6141=this['editor'],_0x5c532f=_0x2d6141['locale'],_0x462926=_0x2d6141['plugins']['get']('TrackChangesEditing');function _0xe3476e(_0x55e73c,_0x394a84){_0x462926['descriptionFactory']['registerDescriptionCallback'](_0x34fcfe=>{if('formatInline'!=_0x34fcfe['type'])return;const {data:_0x5c1101}=_0x34fcfe;return _0x5c1101&&_0x5c1101['commandName']===_0x55e73c?_0x5c1101['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5c532f,'*Format:*\x20%0',_0x394a84)}:{'type':'format','content':c(_0x5c532f,'*Remove\x20format:*\x20%0',_0x394a84)}:void 0x0;});}_0xe3476e('bold',c(_0x5c532f,'FORMAT_BOLD')),_0xe3476e('italic',c(_0x5c532f,'FORMAT_ITALIC')),_0xe3476e('underline',c(_0x5c532f,'FORMAT_UNDERLINE')),_0xe3476e('code',c(_0x5c532f,'FORMAT_CODE')),_0xe3476e('strikethrough',c(_0x5c532f,'FORMAT_STRIKETHROUGH')),_0xe3476e('subscript',c(_0x5c532f,'FORMAT_SUBSCRIPT')),_0xe3476e('superscript',c(_0x5c532f,'FORMAT_SUPERSCRIPT'));}}class G extends _0x3b7b17{['afterInit'](){const _0x12700f=this['editor'],_0x3b2c68=_0x12700f['locale'];if(!_0x12700f['plugins']['has']('BlockQuoteEditing'))return;const _0x56c7e3=_0x12700f['plugins']['get']('TrackChangesEditing'),_0x50e610=this['editor']['commands']['get']('blockQuote');_0x56c7e3['enableCommand']('blockQuote',(_0x3469f8,_0x26b168={})=>{const _0x31a011=this['editor']['model']['document']['selection'],_0x4a5e0a=_0x26b168&&void 0x0!==_0x26b168['forceValue']?_0x26b168['forceValue']:!_0x50e610['value'];let _0x23d0d5=[];if(_0x4a5e0a){const _0xb54440=Array['from'](_0x31a011['getSelectedBlocks']())['filter'](_0x3409cd=>oo(_0x3409cd)||function(_0x45b212,_0x4fa08b){const _0x5d50c6=_0x4fa08b['checkChild'](_0x45b212['parent'],'blockQuote'),_0x4ebf43=_0x4fa08b['checkChild'](['$root','blockQuote'],_0x45b212);return _0x5d50c6&&_0x4ebf43;}(_0x3409cd,this['editor']['model']['schema']));_0x23d0d5=to(_0xb54440,_0x12700f['model']);}else{const _0x531df6=Array['from'](_0x31a011['getSelectedBlocks']())['filter'](_0x1af3d6=>oo(_0x1af3d6));_0x23d0d5=to(_0x531df6,_0x12700f['model']);}_0x12700f['model']['change'](()=>{for(const _0x1c4419 of _0x23d0d5)_0x56c7e3['markBlockFormat'](_0x1c4419,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4a5e0a}]});});}),_0x56c7e3['descriptionFactory']['registerDescriptionCallback'](_0x4a6b57=>{const {data:_0x3be54e}=_0x4a6b57;if(_0x3be54e&&'blockQuote'==_0x3be54e['commandName']){const _0x216003=c(_0x3b2c68,'ELEMENT_BLOCK_QUOTE');return _0x3be54e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3b2c68,'*Set\x20format:*\x20%0',_0x216003)}:{'type':'format','content':c(_0x3b2c68,'*Remove\x20format:*\x20%0',_0x216003)};}});}}function oo(_0x486d2c){return'blockQuote'==_0x486d2c['parent']['name'];}class L extends _0x3b7b17{['afterInit'](){const _0x101fcf=this['editor'],_0x59bfb4=_0x101fcf['locale'],_0x3dc172=_0x101fcf['plugins']['get']('TrackChangesEditing');_0x101fcf['plugins']['has']('BookmarkEditing')&&(_0x3dc172['enableCommand']('insertBookmark'),_0x3dc172['enableDefaultAttributesIntegration']('updateBookmark'),_0x3dc172['registerBlockAttribute']('bookmarkId'),_0x3dc172['descriptionFactory']['registerDescriptionCallback'](_0xb52f6c=>{if('insertion'!=_0xb52f6c['type']&&'deletion'!=_0xb52f6c['type']&&'attribute'!=_0xb52f6c['type'])return;const _0x1cf26e=_0xb52f6c['getContainedElement']();if(null==_0x1cf26e)return;if(!_0x1cf26e['is']('element','bookmark'))return;const _0x2566fe=_0x1cf26e['getAttribute']('bookmarkId');if('insertion'==_0xb52f6c['type'])return{'type':'insertion','content':c(_0x59bfb4,'*Insert:*\x20%0','\x22'+_0x2566fe+'\x22\x20'+c(_0x59bfb4,'ELEMENT_BOOKMARK'))};if('deletion'==_0xb52f6c['type'])return{'type':'deletion','content':c(_0x59bfb4,'*Remove:*\x20%0','\x22'+_0x2566fe+'\x22\x20'+c(_0x59bfb4,'ELEMENT_BOOKMARK'))};const {data:_0x329a50}=_0xb52f6c;if(!_0x329a50||'bookmarkId'!=_0x329a50['key'])return;return{'type':'format','content':c(_0x59bfb4,'*Set\x20bookmark:*\x20%0','\x22'+_0x329a50['newValue']+'\x22')};}));}}class J extends _0x3b7b17{['afterInit'](){const _0x2f6b4e=this['editor'];_0x2f6b4e['plugins']['has']('CaseChange')&&(_0x2f6b4e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2f6b4e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2f6b4e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x3b7b17{['afterInit'](){const _0x280a32=this['editor'];_0x280a32['commands']['get']('ckbox')&&_0x280a32['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x3b7b17{['afterInit'](){const _0x41def6=this['editor'];if(!_0x41def6['plugins']['has']('CodeBlock'))return;const _0x24906a=_0x41def6['plugins']['get']('TrackChangesEditing'),_0x3b8fe6=_0x41def6['locale'],_0xf5573=_0x41def6['config']['get']('codeBlock')['languages'],_0x4a9b95=_0x41def6['commands']['get']('codeBlock');_0x24906a['enableCommand']('indentCodeBlock'),_0x24906a['enableCommand']('outdentCodeBlock'),_0x24906a['enableCommand']('codeBlock',(_0x1cb0f,_0x8f8911={})=>{const _0x2e45=_0x41def6['model'],_0x5083d0=_0x41def6['model']['document']['selection'],_0x47494c=_0x8f8911&&void 0x0!==_0x8f8911['forceValue']?_0x8f8911['forceValue']:!_0x4a9b95['value'];let _0x2d6b02;_0x8f8911['language']||(_0x8f8911['language']=_0xf5573[0x0]['language']),_0x2d6b02=_0x47494c?Array['from'](_0x5083d0['getSelectedBlocks']())['filter'](_0x455459=>eo(_0x455459)||function(_0x2eab83,_0xf2592b){if(_0x2eab83['is']('rootElement')||_0xf2592b['isLimit'](_0x2eab83))return!0x1;return _0xf2592b['checkChild'](_0x2eab83['parent'],'codeBlock');}(_0x455459,_0x2e45['schema'])):Array['from'](_0x5083d0['getSelectedBlocks']())['filter'](_0x2882cf=>eo(_0x2882cf));const _0x3707b6=to(_0x2d6b02,_0x2e45);_0x2e45['change'](()=>{for(const _0x48df00 of _0x3707b6)_0x24906a['markBlockFormat'](_0x48df00,{'commandName':'codeBlock','commandParams':[{..._0x8f8911,'forceValue':_0x47494c}],'formatGroupId':'blockName'});});}),(_0x24906a['descriptionFactory']['registerElementLabel']('codeBlock',_0x1a7df6=>c(_0x3b8fe6,'ELEMENT_CODE_BLOCK',_0x1a7df6)),_0x24906a['descriptionFactory']['registerDescriptionCallback'](_0x3663ec=>{if('formatBlock'!=_0x3663ec['type'])return;const _0x2aadb5=_0x3b8fe6['t'],{data:_0x3dda60}=_0x3663ec;if(!_0x3dda60||'codeBlock'!=_0x3dda60['commandName'])return;const _0x4702a5=_0x3dda60['commandParams'][0x0]['language'],_0x3f4cda=_0x2aadb5(_0xf5573['find'](_0x74e2e0=>_0x74e2e0['language']===_0x4702a5)['label'])['toLowerCase']();return _0x3dda60['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3b8fe6,'*Set\x20format:*\x20%0',c(_0x3b8fe6,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3f4cda+')')}:{'type':'format','content':c(_0x3b8fe6,'*Remove\x20format:*\x20%0',c(_0x3b8fe6,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x20bbc7){return'codeBlock'==_0x20bbc7['name'];}class q extends _0x3b7b17{['afterInit'](){const _0x2d494a=this['editor'];if(!_0x2d494a['plugins']['has']('CommentsEditing'))return;_0x2d494a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3a6f70,_0x1d616d,_0x1ad31d){const _0x24a996=[];for(const _0x55f307 of _0x1d616d['getItems']())_0x55f307['hasAttribute'](_0x3a6f70)&&_0x24a996['push'](_0x1ad31d['createRangeOn'](_0x55f307));return _0x24a996;}function Fe(_0x4df4b6,_0xea1389,{showActiveMarker:_0x35543b=!0x0}={}){const _0x5e16c5=_0x4df4b6['plugins']['get']('TrackChangesEditing');return(_0x40a341,_0x2eebf9,_0x458f60)=>{if(!_0x458f60['consumable']['test'](_0x2eebf9['markerRange'],_0x40a341['name']))return;const _0x2b88ea=_0x2eebf9['markerRange']['getWalker'](),_0x180d38=_0x2eebf9['markerRange']['start'],_0x128f6f=_0x4df4b6['model']['schema'];let _0x4b2dbe=null,_0xb2b124=null,_0x2d7b6f=!0x1,_0x10c8ce=!0x1;for(const _0x13edb6 of _0x2b88ea){const _0x34b643=_0x13edb6['item'];_0x2d7b6f=_0x2d7b6f||_0x128f6f['isContent'](_0x34b643);const _0x17b74c=_0x458f60['mapper']['toViewElement'](_0x34b643);if(_0x17b74c&&_0x17b74c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x13edb6['type']&&(_0x128f6f['isBlock'](_0x34b643)&&!_0x128f6f['isLimit'](_0x34b643)&&(_0x34b643['nextSibling']||_0x180d38['isAtEnd']?_0x4b2dbe&&_0x4b2dbe['parent']==_0x34b643||(_0x4b2dbe=_0x34b643,_0x101744(_0x13edb6['previousPosition']),_0x10c8ce=!0x0):_0xb2b124=_0xb2b124||_0x13edb6['previousPosition']));}function _0x101744(_0xbb3d02){const {id:_0x4f270c,authorId:_0x2b929e}=_0x5e16c5['_splitMarkerName'](_0x2eebf9['markerName']),_0xbb016a=_0x458f60['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xea1389,'data-suggestion':_0x4f270c,'data-author-id':_0x2b929e}),_0x297505=_0x458f60['mapper']['toViewPosition'](_0xbb3d02);_0x35543b&&_0x5e16c5['activeMarkers']['includes'](_0x2eebf9['markerName'])&&_0x458f60['writer']['addClass']('ck-suggestion-marker--active',_0xbb016a),_0x458f60['writer']['insert'](_0x297505,_0xbb016a),_0x458f60['mapper']['bindElementToMarker'](_0xbb016a,_0x2eebf9['markerName']);}_0x2d7b6f||_0x10c8ce||!_0xb2b124||_0x101744(_0xb2b124);};}class z extends _0x3b7b17{static get['requires'](){return[_0x2ba1e3];}['init'](){const _0x3d2aed=this['editor'],_0x457f03=_0x3d2aed['plugins']['get']('TrackChangesEditing');_0x457f03['enableCommand']('delete');const _0x48874b=_0x3d2aed['commands']['get']('deleteForward');_0x457f03['enableCommand']('deleteForward',(_0x7e36a0,_0x16fdbc={})=>{const _0xfefc1f=_0x3d2aed['model']['createSelection'](_0x3d2aed['model']['document']['selection']);_0xfefc1f['isCollapsed']&&_0x3d2aed['model']['modifySelection'](_0xfefc1f,{'direction':'forward','unit':_0x16fdbc['unit']});const _0x52cce4=_0xfefc1f['getFirstRange'](),_0xc5e7d5=_0x1f6f9b['fromRange'](_0x52cce4);let _0x29f441;_0x7e36a0(_0x16fdbc),_0x29f441='$graveyard'==_0xc5e7d5['root']['rootName']?_0x3d2aed['model']['createRange'](_0x52cce4['start']):_0x3d2aed['model']['createRange'](_0xc5e7d5['start'],_0xc5e7d5['end']),_0xc5e7d5['detach'](),_0x3d2aed['model']['enqueueChange'](_0x48874b['buffer']['batch'],_0x4b4153=>{_0x48874b['buffer']['lock'](),_0x4b4153['setSelection'](_0x4b4153['createRange'](_0x29f441['end'])),_0x48874b['buffer']['unlock']();});}),_0x3d2aed['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x3d2aed,'merge'),{'priority':'high'}),_0x3d2aed['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x49c46a,_0x8928fe,_0x291290)=>{_0x291290['options']['showSuggestionHighlights']&&Fe(_0x3d2aed,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x49c46a,_0x8928fe,_0x291290);},{'priority':'high'}),_0x3d2aed['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x287b10,_0x14e197,_0x9e9ceb)=>{const _0x38662d=_0x9e9ceb['mapper']['markerNameToElements'](_0x14e197['markerName']);if(_0x38662d){for(const _0x4a89d7 of _0x38662d)_0x4a89d7['is']('uiElement')&&(_0x9e9ceb['mapper']['unbindElementFromMarkerName'](_0x4a89d7,_0x14e197['markerName']),_0x9e9ceb['writer']['remove'](_0x4a89d7));}},{'priority':'high'});}}class W extends _0x3b7b17{['afterInit'](){const _0x2e3cc2=this['editor'];if(!_0x2e3cc2['plugins']['has']('ListEditing'))return;const _0x93b97a=_0x2e3cc2['locale'],_0x55f102=_0x2e3cc2['plugins']['get']('TrackChangesEditing'),_0x58e2f2=_0x2e3cc2['plugins']['has']('TodoListEditing'),_0x28fa91=!!_0x2e3cc2['config']['get']('list.multiBlock');function _0x2d53e1(_0x591790){return{'type':'format','content':''+c(_0x93b97a,'*Set\x20format:*\x20%0',_0x591790)};}function _0x308730(_0x355b23){return{'type':'format','content':''+c(_0x93b97a,'*Remove\x20format:*\x20%0',_0x355b23)};}_0x55f102['enableDefaultAttributesIntegration']('numberedList'),_0x55f102['enableDefaultAttributesIntegration']('bulletedList'),_0x55f102['enableDefaultAttributesIntegration']('customNumberedList'),_0x55f102['enableDefaultAttributesIntegration']('customBulletedList'),_0x55f102['enableDefaultAttributesIntegration']('indentList'),_0x55f102['enableDefaultAttributesIntegration']('outdentList'),_0x55f102['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x55f102['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x55f102['registerBlockAttribute']('listItemId'),_0x55f102['registerBlockAttribute']('listType'),_0x55f102['registerBlockAttribute']('listIndent'),_0x28fa91&&(_0x55f102['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x55f102['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x58e2f2&&(_0x55f102['enableDefaultAttributesIntegration']('todoList'),_0x55f102['enableDefaultAttributesIntegration']('checkTodoList'),_0x55f102['registerBlockAttribute']('todoListChecked'),_0x55f102['descriptionFactory']['registerDescriptionCallback'](_0x811e65=>{const {data:_0x5bada3}=_0x811e65;if(_0x5bada3&&'todoListChecked'==_0x5bada3['key'])return{'type':'format','content':_0x5bada3['newValue']?c(_0x93b97a,'*Check\x20item*'):c(_0x93b97a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x39bfba=>{if(_0x39bfba['batch']['isUndo'])return!0x1;let _0x2b1a90=!0x1;const _0x1ae205=_0x55f102['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2829a6=>'todoListChecked'===_0x55f102['_getAttributeKey'](_0x2829a6));for(const _0x4aaf73 of _0x1ae205){'todo'!=_0x4aaf73['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x55f102['_findSuggestions'](_0x4aaf73['getFirstRange'](),'attribute')['find'](_0xb884de=>'listType'===_0x55f102['_getAttributeKey'](_0xb884de['suggestion']))||(_0x39bfba['removeMarker'](_0x4aaf73['getFirstMarker']()),_0x2b1a90=!0x0));}return _0x2b1a90;})),_0x55f102['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x93b97a,'FORMAT_INDENT'));const _0x5bf0ef={'type':'format','content':''};_0x55f102['descriptionFactory']['registerDescriptionCallback'](_0x1792dd=>{const {data:_0x75db67}=_0x1792dd;if(!_0x75db67||'listType'!=_0x75db67['key'])return;let _0x3cc250=_0x1792dd['head'];for(;_0x3cc250;){if(_0x3cc250['data']&&(('listStyle'==_0x3cc250['data']['key']||'listMarkerStyle'==_0x3cc250['data']['key'])&&(_0x3cc250['data']['newValue']&&'default'!=_0x3cc250['data']['newValue']||'default'!=_0x3cc250['data']['oldValue']&&!_0x75db67['newValue'])||!_0x28fa91&&_0x3cc250['data']['key']==u))return _0x5bf0ef;_0x3cc250=_0x3cc250['next'];}if(null==_0x75db67['newValue'])switch(_0x75db67['oldValue']){case'bulleted':return _0x308730(c(_0x93b97a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x308730(c(_0x93b97a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x308730(c(_0x93b97a,'ELEMENT_TODO_LIST'));}switch(_0x75db67['newValue']){case'bulleted':return _0x2d53e1(c(_0x93b97a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2d53e1(c(_0x93b97a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2d53e1(c(_0x93b97a,'ELEMENT_TODO_LIST'));}}),_0x55f102['descriptionFactory']['registerDescriptionCallback'](_0x5ad455=>{const {data:_0x168f8f}=_0x5ad455;if(_0x168f8f&&'listIndent'==_0x168f8f['key'])return null==_0x168f8f['newValue']||null==_0x168f8f['oldValue']&&0x0==_0x168f8f['newValue']?_0x5bf0ef:void 0x0;}),_0x55f102['descriptionFactory']['registerDescriptionCallback'](_0x5768e7=>{if('attribute'!=_0x5768e7['type'])return;const {data:_0x39502e}=_0x5768e7;if(!_0x39502e||'listItemId'!=_0x39502e['key'])return;const _0x5d89e1=Te(_0x5768e7);return'newValue'==_0x5d89e1?{'type':'format','content':c(_0x93b97a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5d89e1?{'type':'format','content':c(_0x93b97a,'*Split:*\x20list\x20item')}:_0x5bf0ef;}),_0x2e3cc2['model']['document']['registerPostFixer'](_0x55ad41=>this['listItemIdFixer'](_0x55ad41)),_0x2e3cc2['model']['document']['registerPostFixer'](_0x5a7464=>this['noTrackChangesFixer'](_0x5a7464)),_0x2e3cc2['model']['document']['on']('change:data',(_0x7005c5,_0x389193)=>{if(_0x389193['isUndo']||!_0x389193['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x45f3f8){if(_0x45f3f8['batch']['isUndo']||!_0x45f3f8['batch']['isLocal'])return!0x1;let _0x5f3d26=!0x1;const _0x27e86c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dc6e0=>_0x5dc6e0['data']&&'listItemId'==_0x5dc6e0['data']['key'])['filter'](_0x1f07ff=>_0x1f07ff['data']['newValue']&&_0x1f07ff['data']['oldValue']);for(const _0x87fba0 of _0x27e86c)Te(_0x87fba0)||(_0x45f3f8['removeMarker'](_0x87fba0['getFirstMarker']()),_0x5f3d26=!0x0);return _0x5f3d26;}['noTrackChangesFixer'](_0x41057a){if(_0x41057a['batch']['isUndo']||!_0x41057a['batch']['isLocal'])return!0x1;const _0x377a8e=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x377a8e['trackChangesCommand']['value'])return!0x1;let _0x3a44ce=!0x1;const _0x4c4218=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xb49b3e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x45c6fd=>'attribute'==_0x45c6fd['type'])['filter'](_0x366726=>_0x4c4218['includes'](_0x366726['attributeKey']));if(0x0==_0xb49b3e['length'])return _0x3a44ce;for(const _0x121485 of _0xb49b3e){const _0x2701cc=_0x377a8e['_findSuggestions'](_0x121485['range'],'attribute')['filter'](_0x54643e=>!_0x54643e['meta']['isNextTo'])['map'](_0x3c6cff=>_0x3c6cff['suggestion'])['filter'](_0x2cb3b0=>{const _0x12f1b5=_0x377a8e['_getAttributeKey'](_0x2cb3b0);return _0x4c4218['includes'](_0x12f1b5);});if(_0x2701cc['length']){for(const _0xeeb771 of _0x2701cc)_0x41057a['removeMarker'](_0xeeb771['getFirstMarker']());_0x3a44ce=!0x0;}}return _0x3a44ce;}['assureChains'](){const _0x1ba5a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14e97c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1051a7;const _0x70abfe=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x35dd5a=>{if(_0x35dd5a['data']['oldRange']||!_0x35dd5a['data']['newRange'])return null;if(!_0x35dd5a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4f056e}=_0x1ba5a1['_splitMarkerName'](_0x35dd5a['name']);if(!_0x1ba5a1['hasSuggestion'](_0x4f056e))return null;const _0x561a20=_0x1ba5a1['getSuggestion'](_0x4f056e);return _0x14e97c['includes'](_0x561a20['data']['key']);})['map'](_0x38e271=>{const {id:_0x39db1c}=_0x1ba5a1['_splitMarkerName'](_0x38e271['name']),_0x423ecb=_0x1ba5a1['getSuggestion'](_0x39db1c);return _0x1051a7=_0x423ecb['attributes']['groupId'],_0x423ecb['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x70abfe['size'])return;const _0x1da8f1=_0x1ba5a1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xeaff87=>'attribute'==_0xeaff87['type']&&_0xeaff87['data']&&_0x14e97c['includes'](_0xeaff87['data']['key'])&&_0xeaff87['attributes']['groupId']!=_0x1051a7)['map'](_0x430b7b=>({'listItem':_0x430b7b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x430b7b['attributes']['groupId']})),_0x5c68f8=new Set();for(const {groupId:_0x14f26f,listItem:_0x22e6f1}of _0x1da8f1)_0x70abfe['has'](_0x22e6f1)&&_0x5c68f8['add'](_0x14f26f);for(const _0x5f4290 of _0x1ba5a1['getSuggestions']())_0x5c68f8['has'](_0x5f4290['attributes']['groupId'])&&_0x5f4290['setAttribute']('groupId',_0x1051a7);}['_supportLegacySuggestions'](){const _0xdc4d0f=this['editor'],_0x528e35=_0xdc4d0f['locale'],_0x5bf0eb=_0xdc4d0f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5bf0eb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4f4be7,_0x56ddaf){const _0x2f4ffa=[];for(let _0x5efa80 of _0x4f4be7)_0x5efa80['start']['nodeAfter']===_0x5efa80['end']['parent']&&(_0x5efa80=_0xdc4d0f['model']['createRange'](_0xdc4d0f['model']['createPositionAt'](_0x5efa80['start']['nodeAfter'],0x0))),_0x2f4ffa['push'](_0x5efa80);_0xdc4d0f['model']['change'](_0x37c689=>{const _0x1652f5=_0xdc4d0f['model']['document']['selection'],_0x19d3db=Array['from'](_0x1652f5['getRanges']())['map'](_0x1fa05a=>_0x1f6f9b['fromRange'](_0x1fa05a));_0x37c689['setSelection'](_0x2f4ffa),_0xdc4d0f['commands']['get'](_0x56ddaf['commandName'])['refresh'](),_0x56ddaf['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xdc4d0f['execute'](_0x56ddaf['commandName'],..._0x56ddaf['commandParams']),_0x37c689['setSelection'](_0x19d3db);for(const _0x53093c of _0x19d3db)_0x53093c['detach']();});}),_0x5bf0eb['descriptionFactory']['registerElementLabel'](function(_0x3d344c){const _0x3b2dc7=!_0xdc4d0f['model']['schema']['isObject'](_0x3d344c),_0x3e9ba9=_0x3d344c['previousSibling'],_0x4d0cac=_0x3d344c['nextSibling'],_0x388624=_0x3d344c['getAttribute']('listItemId'),_0x4b59a6=!_0x3e9ba9||_0x3e9ba9['getAttribute']('listItemId')!==_0x388624,_0x167f5c=!_0x4d0cac||_0x4d0cac['getAttribute']('listItemId')!==_0x388624;return _0x3b2dc7&&Boolean(_0x388624)&&_0x4b59a6&&_0x167f5c;},_0x1224e4=>c(_0x528e35,'ELEMENT_LIST_ITEM',_0x1224e4));}['_registerLegacyDescription'](){const _0x1c20af=this['editor'],_0x3c587e=_0x1c20af['locale'];function _0x1c12cb(_0x366da6){const _0x334cd4=_0x1c20af['commands']['get']('bulletedList')['value'],_0x2b07f0=_0x1c20af['commands']['get']('numberedList')['value'];return'numberedList'===_0x366da6?_0x334cd4:_0x2b07f0;}_0x1c20af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4cdf79){if('formatBlock'!=_0x4cdf79['type'])return;const {data:_0x3bfdd1}=_0x4cdf79;if(!_0x3bfdd1)return;let _0x27ee99,_0x6a14d3,_0x5a298c,_0x502c40;switch(_0x3bfdd1['commandName']){case'bulletedList':_0x5a298c=_0x3bfdd1['commandParams'][0x0]['forceValue'],_0x502c40=_0x1c12cb(_0x3bfdd1['commandName']),_0x27ee99=_0x5a298c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x502c40&&_0x1c20af['config']['get']('list.multiBlock')||(_0x27ee99='*Change\x20to:*\x20%0'),_0x6a14d3={'type':'format','content':c(_0x3c587e,_0x27ee99,c(_0x3c587e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5a298c=_0x3bfdd1['commandParams'][0x0]['forceValue'],_0x502c40=_0x1c12cb(_0x3bfdd1['commandName']),_0x27ee99=_0x5a298c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x502c40&&_0x1c20af['config']['get']('list.multiBlock')||(_0x27ee99='*Change\x20to:*\x20%0'),_0x6a14d3={'type':'format','content':c(_0x3c587e,_0x27ee99,c(_0x3c587e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x27ee99='*Indent:*\x20%0',_0x6a14d3={'type':'format','content':c(_0x3c587e,_0x27ee99,c(_0x3c587e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x27ee99=function(_0xe526b9){const _0x433f11=_0xe526b9['getFirstRange']();let _0x3c052a=_0x433f11['start']['nodeAfter'];for(;_0x3c052a&&_0x433f11['containsItem'](_0x3c052a);){if(_0x3c052a['getAttribute']('listIndent')>0x0)return!0x1;_0x3c052a=_0x3c052a['nextSibling'];}return!0x0;}(_0x4cdf79)?c(_0x3c587e,'*Format:*\x20remove\x20from\x20%0',c(_0x3c587e,function(_0x5ddfd5){return'ELEMENT_'+_0x5ddfd5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4cdf79))):c(_0x3c587e,'*Outdent:*\x20%0',c(_0x3c587e,'ELEMENT_LIST_ITEM')),_0x6a14d3={'type':'format','content':_0x27ee99};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3bfdd1['multipleBlocks']&&(_0x27ee99='*Merge:*\x20%0',_0x6a14d3={'type':'deletion','content':c(_0x3c587e,_0x27ee99,c(_0x3c587e,'ELEMENT_LIST_ITEM'))});}return _0x6a14d3;});}}function Te(_0x144bb5){let _0x2c0f88=_0x144bb5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2c0f88;){const _0x510f23=_0x2c0f88['getAttribute']('listItemId');if(!_0x510f23)return!0x1;if(_0x510f23==_0x144bb5['data']['newValue'])return'newValue';if(_0x510f23==_0x144bb5['data']['oldValue'])return'oldValue';_0x2c0f88=_0x2c0f88['previousSibling'];}return!0x1;}class Se extends _0x3b7b17{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xea0696=this['editor']['config']['get']('list.properties'),_0x1615f1=this['editor']['plugins']['get']('TrackChangesEditing');_0xea0696['styles']&&(_0x1615f1['enableDefaultAttributesIntegration']('listStyle'),_0x1615f1['registerBlockAttribute']('listStyle')),_0xea0696['reversed']&&(_0x1615f1['enableDefaultAttributesIntegration']('listReversed'),_0x1615f1['registerBlockAttribute']('listReversed')),_0xea0696['startIndex']&&(_0x1615f1['enableDefaultAttributesIntegration']('listStart'),_0x1615f1['registerBlockAttribute']('listStart'));const _0x17d7a7={'type':'format','content':''};_0x1615f1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3d02e4=this['editor']['locale'];_0x1615f1['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3d02e4,'FORMAT_LIST_REVERSED')),_0x1615f1['descriptionFactory']['registerDescriptionCallback'](_0x205e54=>{const {data:_0x4501ba}=_0x205e54;if(_0x4501ba&&'listReversed'==_0x4501ba['key'])return null==_0x4501ba['newValue']||0x0==_0x4501ba['newValue']&&null==_0x4501ba['oldValue']?_0x17d7a7:void 0x0;}),_0x1615f1['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3d02e4,'FORMAT_LIST_START')),_0x1615f1['descriptionFactory']['registerDescriptionCallback'](_0x30e623=>{const {data:_0x133c23}=_0x30e623;if(_0x133c23&&'listStart'==_0x133c23['key'])return null==_0x133c23['newValue']||0x1==_0x133c23['newValue']&&null==_0x133c23['oldValue']?_0x17d7a7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3edb7a=>{if(_0x3edb7a['batch']['isUndo'])return!0x1;let _0x203162=!0x1;const _0x4fafa4=_0x1615f1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x415b66=>{const _0x481049=_0x1615f1['_getAttributeKey'](_0x415b66);return'listStart'==_0x481049||'listReversed'==_0x481049;});for(const _0x4ece78 of _0x4fafa4){const _0x46e194=_0x4ece78['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x46e194||'customNumbered'==_0x46e194)continue;_0x1615f1['_findSuggestions'](_0x4ece78['getFirstRange'](),'attribute')['find'](_0x1ecbb4=>'listType'==_0x1615f1['_getAttributeKey'](_0x1ecbb4['suggestion']))||(_0x3edb7a['removeMarker'](_0x4ece78['getFirstMarker']()),_0x203162=!0x0);}return _0x203162;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x112c70){const _0x2688cf=this['editor']['locale'],{data:_0xe9849a}=_0x112c70,_0x5c29da={'type':'format','content':''};if(!_0xe9849a||'listStyle'!=_0xe9849a['key'])return;if(!_0xe9849a['oldValue'])return'default'==_0xe9849a['newValue']?_0x5c29da:{'type':'format','content':''+c(_0x2688cf,'*Set\x20format:*\x20%0',c(_0x2688cf,this['_getTranslationKeyForListStyle'](_0xe9849a['newValue'])))};if(!_0xe9849a['newValue']){if('default'==_0xe9849a['oldValue'])return _0x5c29da;let _0x301eb2=_0x112c70['head'];for(;_0x301eb2;){if(_0x301eb2['data']&&'listType'==_0x301eb2['data']['key']&&_0x301eb2['data']['newValue'])return _0x5c29da;_0x301eb2=_0x301eb2['next'];}return{'type':'format','content':''+c(_0x2688cf,'*Remove\x20format:*\x20%0',c(_0x2688cf,this['_getTranslationKeyForListStyle'](_0xe9849a['oldValue'])))};}if('default'!=_0xe9849a['newValue'])return{'type':'format','content':''+c(_0x2688cf,'*Set\x20format:*\x20%0',c(_0x2688cf,this['_getTranslationKeyForListStyle'](_0xe9849a['newValue'])))};let _0x198a94=_0x112c70['head'];for(;_0x198a94;){if(_0x198a94['data']&&'listType'==_0x198a94['data']['key']&&_0x198a94['data']['newValue']&&_0x198a94['data']['oldValue'])return _0x5c29da;_0x198a94=_0x198a94['next'];}return{'type':'format','content':c(_0x2688cf,'*Set\x20format:*\x20%0',c(_0x2688cf,'ELEMENT_'+_0x112c70['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x228cf7=this['editor'],_0x43c5fd=_0x228cf7['locale'];_0x228cf7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x315712=>{if('formatBlock'!=_0x315712['type'])return;const {data:_0x3db3c7}=_0x315712;if(!_0x3db3c7)return;let _0x366e9f,_0x49b0a7;switch(_0x3db3c7['commandName']){case'listStyle':_0x366e9f='*Change\x20to:*\x20%0',_0x49b0a7={'type':'format','content':c(_0x43c5fd,_0x366e9f,c(_0x43c5fd,this['_getTranslationKeyForListStyle'](_0x3db3c7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x366e9f=_0x3db3c7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x49b0a7={'type':'format','content':c(_0x43c5fd,_0x366e9f)};break;case'listStart':_0x366e9f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x49b0a7={'type':'format','content':c(_0x43c5fd,_0x366e9f,_0x3db3c7['commandParams'][0x0]['startIndex'])};}return _0x49b0a7;});}['_getTranslationKeyForListStyle'](_0x302e6d){return'ELEMENT_'+function(_0x3f4875){if(_e['includes'](_0x3f4875))return'bulleted';if(Re['includes'](_0x3f4875))return'numbered';return null;}(_0x302e6d)['toUpperCase']()+'_LIST_'+_0x302e6d['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3b7b17{['afterInit'](){const _0x53e0f3=this['editor'];_0x53e0f3['commands']['get']('emoji')&&_0x53e0f3['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3b7b17{static get['requires'](){return[_0x360f0e];}['init'](){const _0x341982=this['editor'],_0x1467b9=_0x341982['plugins']['get']('TrackChangesEditing'),_0x3f1a33=_0x341982['commands']['get']('enter');_0x1467b9['enableCommand']('enter',()=>{_0x341982['model']['change'](_0x38edec=>{const _0x420e7a=_0x341982['model']['document']['selection'],_0x35351f=_0x420e7a['getFirstPosition'](),_0x4bc190=_0x1f6f9b['fromRange'](_0x420e7a['getFirstRange']());if(_0x3f1a33['enterBlock'](_0x38edec)){const _0x5db9dd=_0x341982['model']['createPositionAt'](_0x35351f['parent']['nextSibling'],0x0),_0x1861b1=_0x38edec['createRange'](_0x35351f,_0x5db9dd);_0x1467b9['markInsertion'](_0x1861b1);}else _0x38edec['setSelection'](_0x38edec['createRange'](_0x4bc190['end']));_0x4bc190['detach'](),_0x3f1a33['fire']('afterExecute',{'writer':_0x38edec});});}),_0x341982['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x341982,'split'),{'priority':'high'}),_0x341982['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1fc651,_0x1f2ad,_0x1de92a)=>{const _0x290c11=_0x1de92a['mapper']['markerNameToElements'](_0x1f2ad['markerName']);if(_0x290c11){for(const _0x565b6b of _0x290c11)_0x565b6b['hasClass']('ck-suggestion-marker-split')&&(_0x1de92a['mapper']['unbindElementFromMarkerName'](_0x565b6b,_0x1f2ad['markerName']),_0x1de92a['writer']['remove'](_0x565b6b));}},{'priority':'high'}),_0x341982['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3c4861,_0x400050,_0x1744a0)=>{_0x1744a0['options']['showSuggestionHighlights']&&Fe(_0x341982,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3c4861,_0x400050,_0x1744a0);},{'priority':'high'});}}class Z extends _0x3b7b17{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2e8fdb=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e8fdb['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2e8fdb['enableCommand']('findNext'),_0x2e8fdb['enableCommand']('findPrevious'),_0x2e8fdb['enableCommand']('replace'),_0x2e8fdb['enableCommand']('replaceAll');}['handleFindCommand'](_0x396b25,_0xf967b8,_0x1b29c7={}){const _0x16666f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x396b25(_0x1c9243=>{let _0x5157b8=('string'==typeof _0xf967b8?_0x16666f['findByTextCallback'](_0xf967b8,_0x1b29c7):_0xf967b8)(_0x1c9243);Array['isArray'](_0x5157b8)&&(_0x5157b8={'results':_0x5157b8,'searchText':'string'==typeof _0xf967b8?_0xf967b8:''});const _0x419a72=_0x5157b8['results']['filter'](_0x382f6b=>!0x1===this['_isInDeletionRange'](_0x382f6b,_0x1c9243['item']));return{..._0x5157b8,'results':_0x419a72};},_0x1b29c7);}['_isInDeletionRange'](_0xa2099,_0xc79c38){const _0xecde7c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xc79c38,_0xa2099['start']),this['editor']['model']['createPositionAt'](_0xc79c38,_0xa2099['end']));for(const _0x39b08f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xecde7c['getIntersection'](_0x39b08f['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 _0x3b7b17{['afterInit'](){const _0x9626c7=this['editor']['locale'],_0x46bf4d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x13a0cb,commandName:_0x33e871}of ro)this['editor']['plugins']['has'](_0x13a0cb)&&(_0x46bf4d['enableDefaultAttributesIntegration'](_0x33e871),_0x46bf4d['registerInlineAttribute'](_0x33e871));_0x46bf4d['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x9626c7,'FORMAT_FONT_SIZE')),_0x46bf4d['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x9626c7,'FORMAT_FONT_FAMILY')),_0x46bf4d['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x9626c7,'FORMAT_FONT_COLOR')),_0x46bf4d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x9626c7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33af7e=this['editor'],_0x435305=_0x33af7e['locale'];_0x33af7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x214209=>{const _0x5bd8db=_0x435305['t'];if('formatInline'!=_0x214209['type'])return;const {data:_0x3dd804}=_0x214209;if(null!=_0x3dd804){if('fontSize'==_0x3dd804['commandName']){const _0x2c3ff2=_0x3dd804['commandParams'][0x0]['value'];if(_0x2c3ff2){const _0x19c3b6=_0x5bd8db(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x255b13=>_0x255b13['model']==_0x2c3ff2)['title'])['toLowerCase']();return{'type':'format','content':c(_0x435305,'*Set\x20font\x20size:*\x20%0',_0x19c3b6)};}return{'type':'format','content':c(_0x435305,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3dd804['commandName']){const _0x5a5df7=_0x3dd804['commandParams'][0x0]['value'];return _0x5a5df7?{'type':'format','content':c(_0x435305,'*Set\x20font\x20family:*\x20%0',_0x5a5df7)}:{'type':'format','content':c(_0x435305,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3dd804['commandName']){const _0x69bafb=_0x3dd804['commandParams'][0x0]['value'];if(_0x69bafb){const _0x25794d=_0x30d2e2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2555da=>_0x2555da['model']==_0x69bafb);let _0x4d41a1=_0x69bafb,_0x11369d='';return _0x25794d&&(_0x4d41a1=_0x25794d['label'],_0x11369d=_0x5bd8db(_0x4d41a1)['toLowerCase']()),{'type':'format','content':c(_0x435305,'*Set\x20font\x20color:*\x20%0',_0x11369d)['trim'](),'color':{'value':_0x69bafb,'title':_0x11369d||_0x4d41a1}};}return{'type':'format','content':c(_0x435305,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3dd804['commandName']){const _0x273ad8=_0x3dd804['commandParams'][0x0]['value'];if(_0x273ad8){const _0x28c37e=_0x30d2e2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xbd051a=>_0xbd051a['model']==_0x273ad8);let _0x56849f=_0x273ad8,_0x537fb9='';return _0x28c37e&&(_0x56849f=_0x28c37e['label'],_0x537fb9=_0x5bd8db(_0x56849f)['toLowerCase']()),{'type':'format','content':c(_0x435305,'*Set\x20font\x20background\x20color:*\x20%0',_0x537fb9)['trim'](),'color':{'value':_0x273ad8,'title':_0x537fb9||_0x56849f}};}return{'type':'format','content':c(_0x435305,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x3b7b17{['afterInit'](){const _0x2eb346=this['editor'],_0x41ae48=_0x2eb346['plugins']['get']('TrackChangesEditing'),_0x15b330=_0x2eb346['commands']['get']('copyFormat'),_0x1a191d=_0x2eb346['commands']['get']('pasteFormat');_0x15b330&&_0x1a191d&&(_0x41ae48['enableDefaultAttributesIntegration']('pasteFormat'),_0x41ae48['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x18908a=this['editor'],_0x4fd0a1=_0x18908a['locale'];_0x18908a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x391f46=>{if('formatBlock'!=_0x391f46['type']&&'formatInline'!=_0x391f46['type'])return;const {data:_0x4018b9}=_0x391f46;if(_0x4018b9&&'pasteFormat'===_0x4018b9['commandName']){const _0x4094d5=[],_0x49c5d8=_0x4018b9['commandParams'][0x0];for(const [_0x15ce15,_0x4edd44]of Object['entries'](_0x49c5d8))_0x4094d5['push'](so(_0x18908a,_0x15ce15,_0x4edd44));return _0x4094d5['length']?{'type':'format','content':c(_0x4fd0a1,'*Set\x20format\x20to:*\x20%0',_0x4094d5['join'](',\x20'))}:{'type':'format','content':c(_0x4fd0a1,'*Remove\x20all\x20formatting*')};}});}}function so(_0xb49989,_0xeacdfd,_0x526a7e){const _0x304655=_0xb49989['locale']['t'],_0x1c2bdb=_0xeacdfd['split'](/(?=[A-Z])/)['join']('\x20'),_0x5982b2=_0x304655(_0x1c2bdb['charAt'](0x0)['toUpperCase']()+_0x1c2bdb['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x526a7e)return _0x5982b2;if('fontColor'===_0xeacdfd||'fontBackgroundColor'===_0xeacdfd){const _0x1f8c57=_0x30d2e2(_0xb49989['config']['get']('fontColor.colors'))['find'](_0x597d02=>_0x597d02['model']==_0x526a7e);return _0x5982b2+'\x20('+(_0x1f8c57?_0x304655(_0x1f8c57['label'])['toLowerCase']():_0x526a7e)+')';}if('fontSize'===_0xeacdfd&&isNaN(parseFloat(_0x526a7e))){const _0x47f2c1=_0xb49989['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xb49989['config']['get']('fontSize.options'))['find'](_0x37e9cd=>_0x37e9cd['model']==_0x526a7e);return _0x5982b2+'\x20('+(_0x47f2c1?_0x304655(_0x47f2c1['title'])['toLowerCase']():_0x526a7e)+')';}return _0x5982b2+'\x20('+_0x526a7e+')';}class et extends _0x3b7b17{['_headingOptions'];['afterInit'](){const _0x39c4fb=this['editor'];if(!_0x39c4fb['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x39c4fb['config']['get']('heading.options');const _0x48b546=_0x39c4fb['locale'],_0x2a558b=_0x39c4fb['plugins']['get']('TrackChangesEditing');_0x2a558b['enableDefaultAttributesIntegration']('heading');for(const _0x438e68 of this['_headingOptions'])'paragraph'!=_0x438e68['model']&&_0x2a558b['descriptionFactory']['registerElementLabel'](_0x438e68['model'],_0x20ef87=>{const _0x1908ab=this['_getHeadingLevel'](_0x438e68['model']);return null!==_0x1908ab?_0xb04999(_0x20ef87,_0x1908ab):_0x1324f1(_0x20ef87,_0x438e68['title']);});function _0xb04999(_0x432f3d,_0x58e635){return c(_0x48b546,'ELEMENT_HEADING',[_0x432f3d,_0x58e635]);}function _0x1324f1(_0x54e124,_0x2657b){return c(_0x48b546,'ELEMENT_HEADING_CUSTOM',[_0x54e124,_0x2657b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xada426=this['editor'],_0x4c07ca=_0xada426['locale'];function _0x2c54e1(_0x352496,_0x33ecaf){return c(_0x4c07ca,'ELEMENT_HEADING_CUSTOM',[_0x352496,_0x33ecaf]);}_0xada426['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18fcb0=>{if('formatBlock'!=_0x18fcb0['type'])return;const {data:_0x304506}=_0x18fcb0;if(_0x304506&&'heading'==_0x304506['commandName']){const _0x1af439=_0x304506['commandParams'][0x0]['value'],_0x41cce5=this['_getHeadingLevel'](_0x1af439);if(null!==_0x41cce5)return{'type':'format','content':c(_0x4c07ca,'*Change\x20to:*\x20%0',(_0x385741=0x1,_0x5abee7=_0x41cce5,c(_0x4c07ca,'ELEMENT_HEADING',[_0x385741,_0x5abee7])))};const _0x3039ad=this['_headingOptions']['find'](_0x2aa6e5=>_0x2aa6e5['model']===_0x1af439)['title'];return{'type':'format','content':c(_0x4c07ca,'*Change\x20to:*\x20%0',_0x2c54e1(0x1,_0x3039ad))};}var _0x385741,_0x5abee7;});}['_getHeadingLevel'](_0x21ef59){const _0x433e2c=_0x21ef59['match'](/^heading(\d+)/);if(_0x433e2c)return _0x433e2c[0x1];const _0x2cdc83=this['_headingOptions']?.['find'](_0xa9ca61=>_0xa9ca61['model']==_0x21ef59);if(_0x2cdc83&&_0x2cdc83['view']){const _0x5c7857=_0x2cdc83['view'],_0x5a6c10=(_0x5c7857['name']??_0x5c7857)['match'](/^h(\d+)/);if(_0x5a6c10)return _0x5a6c10[0x1];}return null;}}class nt extends _0x3b7b17{['afterInit'](){const _0x4258a6=this['editor'];if(!_0x4258a6['plugins']['has']('HighlightEditing'))return;const _0x19da07=_0x4258a6['plugins']['get']('TrackChangesEditing'),_0x2f8ffe=_0x4258a6['locale'];_0x19da07['enableDefaultAttributesIntegration']('highlight'),_0x19da07['registerInlineAttribute']('highlight'),_0x19da07['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x2f8ffe,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37a6e4=this['editor'],_0x203675=_0x37a6e4['locale'];_0x37a6e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e496d=>{if('formatInline'!=_0x3e496d['type'])return;const {data:_0x2cb088}=_0x3e496d;if(_0x2cb088&&'highlight'==_0x2cb088['commandName']){const _0x31ef1b=_0x203675['t'],_0x4a04ad=_0x2cb088['commandParams'][0x0]['value'];if(_0x4a04ad){const _0x4e7bb5=_0x37a6e4['config']['get']('highlight.options')['find'](_0x50a8a5=>_0x50a8a5['model']==_0x4a04ad),_0x3ea44b=_0x31ef1b(_0x4e7bb5['title'])['toLowerCase']();return{'type':'format','content':c(_0x203675,'*Set\x20highlight:*\x20%0',_0x3ea44b),'color':{'value':_0x4e7bb5['color'],'title':_0x4e7bb5['title']}};}return{'type':'format','content':c(_0x203675,'*Remove\x20highlight*',c(_0x203675,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3b7b17{['afterInit'](){const _0x52ad69=this['editor'];if(!_0x52ad69['plugins']['has']('HorizontalLineEditing'))return;_0x52ad69['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x31d135=_0x52ad69['plugins']['get']('TrackChangesEditing'),_0x14ea19=_0x52ad69['locale'];_0x31d135['descriptionFactory']['registerElementLabel']('horizontalLine',_0x227894=>c(_0x14ea19,'ELEMENT_HORIZONTAL_LINE',_0x227894)),_0x52ad69['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x223d33,{writer:_0x2c54c4,options:_0x15e541})=>{if(!_0x15e541['showSuggestionHighlights'])return null;const _0x4ebae4=_0x2c54c4['createContainerElement']('div'),_0x578880=_0x2c54c4['createEmptyElement']('hr');return _0x2c54c4['addClass']('ck-horizontal-line',_0x4ebae4),_0x2c54c4['insert'](_0x2c54c4['createPositionAt'](_0x4ebae4,0x0),_0x578880),_0x4ebae4;},'converterPriority':'high'});}}class ot extends _0x3b7b17{['afterInit'](){const _0x333f70=this['editor'];if(!_0x333f70['plugins']['has']('HtmlEmbed'))return;const _0x36e4fa=_0x333f70['plugins']['get']('TrackChangesEditing'),_0x3d2748=_0x333f70['locale'];_0x36e4fa['descriptionFactory']['registerElementLabel']('rawHtml',_0x4a983e=>c(_0x3d2748,'ELEMENT_HTML_EMBED',_0x4a983e)),_0x36e4fa['enableDefaultAttributesIntegration']('htmlEmbed'),_0x36e4fa['registerBlockAttribute']('value'),_0x36e4fa['descriptionFactory']['registerDescriptionCallback'](_0xaca7f4=>{if('attribute'!=_0xaca7f4['type'])return;const {data:_0x23fb9e}=_0xaca7f4;if(_0x23fb9e&&'value'==_0x23fb9e['key']&&_0xaca7f4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2fe2bb=c(_0x3d2748,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x3d2748,'*Change\x20%0\x20content*',_0x2fe2bb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24422b=this['editor'],_0x531f76=_0x24422b['locale'];_0x24422b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e085e=>{if('formatBlock'!=_0x3e085e['type'])return;const {data:_0x281c98}=_0x3e085e;if(_0x281c98&&'htmlEmbed'==_0x281c98['commandName']){const _0x17e0b1=c(_0x531f76,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x531f76,'*Change\x20%0\x20content*',_0x17e0b1)};}});}}class rt extends _0x3b7b17{['afterInit'](){const _0x2cf630=this['editor'];if(!_0x2cf630['plugins']['has']('ImageEditing'))return;const _0x5e5e8b=_0x2cf630['plugins']['get']('TrackChangesEditing'),_0x402bcf=_0x2cf630['plugins']['get']('ImageUtils'),_0x408b44=_0x2cf630['locale'];_0x5e5e8b['enableCommand']('insertImage'),_0x5e5e8b['descriptionFactory']['registerElementLabel']('imageBlock',_0x240660=>c(_0x408b44,'ELEMENT_IMAGE',_0x240660)),_0x5e5e8b['descriptionFactory']['registerElementLabel']('imageInline',_0x34b2d6=>c(_0x408b44,'ELEMENT_INLINE_IMAGE',_0x34b2d6)),_0x5e5e8b['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x408b44,'ELEMENT_CAPTION')),_0x2cf630['plugins']['has']('ImageUploadEditing')&&_0x5e5e8b['enableCommand']('uploadImage'),_0x2cf630['plugins']['has']('ImageBlockEditing')&&_0x2cf630['plugins']['has']('ImageInlineEditing')&&(_0x5e5e8b['enableCommand']('imageTypeInline',(_0x310e81,_0xf7fe45)=>{const _0x3b3bc2=_0x402bcf['getClosestSelectedImageElement'](_0x2cf630['model']['document']['selection']);_0x2cf630['model']['change'](()=>{_0x5e5e8b['markBlockFormat'](_0x3b3bc2,{'commandName':'imageTypeInline','commandParams':[_0xf7fe45]},[],'convertBlockImageToInline');});}),_0x5e5e8b['enableCommand']('imageTypeBlock',(_0x444cad,_0x116c12)=>{_0x2cf630['model']['change'](_0x295094=>{let _0xba891f=_0x402bcf['getClosestSelectedImageElement'](_0x2cf630['model']['document']['selection']),_0x4c632d=_0x295094['createRangeOn'](_0xba891f);const _0x542ab2=_0x58954e['fromPosition'](_0x4c632d['start'],'toPrevious'),_0x2dfd77=_0x58954e['fromPosition'](_0x4c632d['end'],'toNext');_0x5e5e8b['forceDefaultExecution'](()=>_0x444cad(_0x116c12)),_0xba891f=_0x402bcf['getClosestSelectedImageElement'](_0x2cf630['model']['document']['selection']),_0x4c632d=_0x295094['createRangeOn'](_0xba891f);const _0x407ae7=_0x295094['createRange'](_0x542ab2,_0x2dfd77);_0x542ab2['detach'](),_0x2dfd77['detach'](),_0x5e5e8b['markBlockFormat'](_0xba891f,{'commandName':'imageTypeInline','commandParams':[_0x116c12]},[],'convertInlineImageToBlock'),_0x407ae7['start']['isBefore'](_0x4c632d['start'])&&_0x5e5e8b['markInsertion'](_0x295094['createRange'](_0x407ae7['start'],_0x4c632d['start']),'convertInlineImageToBlock'),_0x4c632d['end']['isBefore'](_0x407ae7['end'])&&_0x5e5e8b['markInsertion'](_0x295094['createRange'](_0x4c632d['end'],_0x407ae7['end']),'convertInlineImageToBlock');});}),_0x5e5e8b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e5e8b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e5e8b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e5e8b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e5e8b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e5e8b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4d3a3a])=>{const _0x5a3d46=_0x5e5e8b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x11aa99=_0x4d3a3a['start'],_0x513660=_0x4d3a3a['end'];const _0x14eb02=_0x2cf630['model']['schema']['getNearestSelectionRange'](_0x11aa99,'backward'),_0x285d9b=_0x2cf630['model']['schema']['getNearestSelectionRange'](_0x513660,'forward');_0x14eb02['isCollapsed']&&(_0x11aa99=_0x14eb02['start']),_0x285d9b['isCollapsed']&&(_0x513660=_0x285d9b['end']),_0x5a3d46([_0x2cf630['model']['createRange'](_0x11aa99,_0x513660)]);}),_0x5e5e8b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1246f6),_0x5e5e8b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1246f6)),_0x2cf630['plugins']['has']('ImageCaptionEditing')&&(_0x5e5e8b['enableCommand']('toggleImageCaption',(_0x4c298a,_0x414da7)=>{const _0x4ed94e=_0x2cf630['plugins']['get']('ImageCaptionUtils');let _0xeb3e11=_0x402bcf['getClosestSelectedImageElement'](_0x2cf630['model']['document']['selection']),_0x16c3c7=_0x4ed94e['getCaptionFromImageModelElement'](_0xeb3e11);_0x2cf630['model']['change'](()=>{if(_0x16c3c7)return void _0x5e5e8b['markDeletion'](_0x2cf630['model']['createRangeOn'](_0x16c3c7));const _0x330588=_0x402bcf['isBlockImage'](_0xeb3e11);_0x4c298a(_0x414da7),_0xeb3e11=_0x402bcf['getClosestSelectedImageElement'](_0x2cf630['model']['document']['selection']),_0x16c3c7=_0x4ed94e['getCaptionFromImageModelElement'](_0xeb3e11),_0x5e5e8b['markInsertion'](_0x2cf630['model']['createRangeOn'](_0x16c3c7),_0x330588?null:'imageCaption');});}),_0x5e5e8b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1246f6));const _0x5175e5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1b3aeb(_0x53350c,_0x57d6ab){const _0x41b798=_0x5175e5['findIndex'](({type:_0x32b1b3,subType:_0x38d61c})=>_0x53350c['type']==_0x32b1b3&&_0x53350c['subType']==_0x38d61c),_0xc2b8f1=_0x5175e5['findIndex'](({type:_0x5b61fe,subType:_0x1c6b2c})=>_0x57d6ab['type']==_0x5b61fe&&_0x57d6ab['subType']==_0x1c6b2c);if(_0x41b798<0x0||_0xc2b8f1<0x0)return!0x1;const _0x313f7a=_0x53350c['getFirstRange'](),_0x564d2d=_0x57d6ab['getFirstRange']();if((0x0==_0x41b798||0x1==_0x41b798)&&0x2==_0xc2b8f1&&_0x313f7a['isIntersecting'](_0x564d2d))return!0x0;if(0x2==_0x41b798&&0x3==_0xc2b8f1){const _0x2175d0=_0x5e5e8b['_findSuggestions'](_0x313f7a,'insertion')['filter'](({suggestion:_0x2cbd75,meta:_0x486f22})=>_0x486f22['isOwn']&&'convertInlineImageToBlock'==_0x2cbd75['subType']);if(_0x2175d0['length']>0x1&&_0x564d2d['end']['isEqual'](_0x313f7a['start']))return!0x0;if(0x1==_0x2175d0['length']&&(_0x313f7a['start']['isEqual'](_0x564d2d['end'])||_0x313f7a['end']['isEqual'](_0x564d2d['start'])))return!0x0;}if(0x3==_0x41b798&&0x3==_0xc2b8f1&&_0x313f7a['start']['isBefore'](_0x564d2d['start'])){const _0x13bd48=_0x313f7a['end']['nodeAfter'],_0x59adc2=_0x564d2d['start']['nodeBefore'];return _0x402bcf['isBlockImage'](_0x13bd48)&&_0x13bd48===_0x59adc2;}return!0x1;}function _0x1246f6(_0x231c30,_0x22ff55){return _0x1b3aeb(_0x231c30,_0x22ff55)?[_0x231c30,_0x22ff55]:_0x1b3aeb(_0x22ff55,_0x231c30)?[_0x22ff55,_0x231c30]:null;}_0x2cf630['plugins']['has']('ImageResize')&&(_0x5e5e8b['enableDefaultAttributesIntegration']('resizeImage'),_0x5e5e8b['registerBlockAttribute']('resizedWidth'),_0x5e5e8b['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x408b44,'FORMAT_IMAGE_SIZE'))),_0x2cf630['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5e5e8b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5e5e8b['registerBlockAttribute']('alt')),_0x2cf630['plugins']['has']('PictureEditing')&&(_0x5e5e8b['registerBlockAttribute']('sources'),_0x5e5e8b['descriptionFactory']['registerDescriptionCallback'](_0x19935a=>{if('attribute'!=_0x19935a['type'])return;const {data:_0x102341}=_0x19935a;return _0x102341&&'sources'==_0x102341['key']?{'type':'format','content':''}:void 0x0;})),_0x2cf630['plugins']['has']('ImageSizeAttributes')&&(_0x5e5e8b['registerBlockAttribute']('width'),_0x5e5e8b['registerBlockAttribute']('height'),_0x5e5e8b['descriptionFactory']['registerDescriptionCallback'](_0x50b79=>{if('attribute'!=_0x50b79['type'])return;const {data:_0x511fd6}=_0x50b79;return!_0x511fd6||'width'!=_0x511fd6['key']&&'height'!=_0x511fd6['key']?void 0x0:{'type':'format','content':''};})),_0x5e5e8b['descriptionFactory']['registerDescriptionCallback'](_0x76646d=>{if(!!_0x5175e5['find'](({type:_0x23ca7b,subType:_0x14f565})=>_0x76646d['type']==_0x23ca7b&&_0x76646d['subType']==_0x14f565))return _0x76646d['previous']?{}:void 0x0;}),_0x5e5e8b['descriptionFactory']['registerDescriptionCallback'](_0x27ae36=>{if('insertion'==_0x27ae36['type']||'deletion'==_0x27ae36['type']){const _0x223755=_0x27ae36['getContainedElement']();if(_0x223755&&_0x223755['is']('element','caption'))return{'type':'insertion'==_0x27ae36['type']?'addObject':'removeObject','element':_0x223755,'quantity':0x1};}}),_0x5e5e8b['descriptionFactory']['registerDescriptionCallback'](_0x44ae34=>'formatBlock'==_0x44ae34['type']&&'convertInlineImageToBlock'==_0x44ae34['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x44ae34['type']&&'convertBlockImageToInline'==_0x44ae34['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e5e8b['descriptionFactory']['registerDescriptionCallback'](_0xf61f31=>{if('attribute'!=_0xf61f31['type'])return;const {data:_0x21e4eb}=_0xf61f31;if(!_0x21e4eb||'alt'!=_0x21e4eb['key'])return;const _0x36cccb=_0x21e4eb['newValue'];return _0x36cccb?{'type':'format','content':c(_0x408b44,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x36cccb+'\x22')}:{'type':'format','content':c(_0x408b44,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45706d=this['editor'],_0x55a19d=_0x45706d['locale'];_0x45706d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8aeef8=>{if('formatBlock'!=_0x8aeef8['type']&&'formatInline'!=_0x8aeef8['type'])return;const {data:_0x12e0d9}=_0x8aeef8;if(_0x12e0d9){if('imageTextAlternative'==_0x12e0d9['commandName']){const _0x39f718=_0x12e0d9['commandParams'][0x0]['newValue'];return _0x39f718?{'type':'format','content':c(_0x55a19d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x39f718+'\x22')}:{'type':'format','content':c(_0x55a19d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x12e0d9['commandName']){const _0x46ed28=_0x12e0d9['commandParams'][0x0]['width'];return _0x46ed28?{'type':'format','content':c(_0x55a19d,'*Set\x20image\x20width:*\x20%0',_0x46ed28)}:{'type':'format','content':c(_0x55a19d,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3b7b17{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1fa11a=this['editor']['locale'],_0x262bb3=this['editor']['plugins']['get']('TrackChangesEditing');_0x262bb3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x262bb3['registerBlockAttribute']('src'),_0x262bb3['descriptionFactory']['registerDescriptionCallback'](_0x2b427f=>{if('attribute'!=_0x2b427f['type'])return;const {data:_0x1d77c8}=_0x2b427f;return _0x1d77c8&&'src'==_0x1d77c8['key']?_0x1d77c8['newValue']&&_0x1d77c8['oldValue']?{'type':'format','content':c(_0x1fa11a,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x45f275=this['editor']['plugins']['get']('TrackChangesEditing');_0x45f275['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x45f275['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45f275['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x45f275['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x392fae=this['editor'],_0x250ddc=_0x392fae['locale'];_0x392fae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x701ece=>{if('formatBlock'!=_0x701ece['type']&&'formatInline'!=_0x701ece['type'])return;const {data:_0x20a24f}=_0x701ece;if(!_0x20a24f||'replaceImageSource'!=_0x20a24f['commandName'])return;return{'type':'format','content':c(_0x250ddc,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3b7b17{['afterInit'](){const _0x4ad861=this['editor'];if(!_0x4ad861['plugins']['has']('ImageStyleEditing'))return;const _0x1dcaba=_0x4ad861['plugins']['get']('TrackChangesEditing'),_0x4f7c47=_0x4ad861['plugins']['get']('ImageUtils'),_0xbab70c={};_0x1dcaba['enableCommand']('imageStyle',(_0x1d79bb,_0x532bbf)=>{const _0x536357=_0x4ad861['plugins']['get']('Users')['me'],_0x41ddd4=_0x4ad861['commands']['get']('imageStyle');let _0x15d092=_0x4f7c47['getClosestSelectedImageElement'](_0x4ad861['model']['document']['selection']),_0x1dceea=_0x4ad861['model']['createRangeOn'](_0x15d092),_0xfad159=_0x41ddd4['value'];if(_0xfad159==_0x532bbf['value'])return;const _0x50cc2a={'commandName':'imageStyle','commandParams':[_0x532bbf],'formatGroupId':_0x145d91()};_0x4ad861['model']['change'](()=>{if(_0x1dcaba['getSuggestions']()['filter'](_0x243cb2=>_0x243cb2['isInContent']&&_0x536357==_0x243cb2['author']&&('formatBlock'==_0x243cb2['type']||'formatInline'==_0x243cb2['type'])&&('imageStylePreApply'==_0x243cb2['subType']||'imageStylePostApply'==_0x243cb2['subType'])&&_0x243cb2['getFirstRange']()['isEqual'](_0x1dceea))['forEach'](_0x23e50b=>_0x1dcaba['discardSuggestion'](_0x23e50b['head'])),_0x15d092=_0x4f7c47['getClosestSelectedImageElement'](_0x4ad861['model']['document']['selection']),_0x1dceea=_0x4ad861['model']['createRangeOn'](_0x15d092),_0x41ddd4['refresh'](),_0x4ad861['commands']['get']('imageTypeInline')['refresh'](),_0x4ad861['commands']['get']('imageTypeBlock')['refresh'](),_0xfad159=_0x41ddd4['value'],_0xfad159!=_0x532bbf['value'])return _0x4f7c47['isInlineImage'](_0x15d092)&&_0x41ddd4['shouldConvertImageType'](_0x532bbf['value'],_0x15d092)?(_0x1d79bb({..._0x532bbf,'setImageSizes':!0x1}),_0x15d092=_0x4f7c47['getClosestSelectedImageElement'](_0x4ad861['model']['document']['selection']),void _0x1dcaba['markBlockFormat'](_0x15d092,{..._0x50cc2a,'commandReversedParams':[{'value':_0xfad159||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4f7c47['isBlockImage'](_0x15d092)?_0x1dcaba['markBlockFormat'](_0x15d092,_0x50cc2a,[],'imageStylePostApply'):_0x1dcaba['markInlineFormat'](_0x1dceea,_0x50cc2a,'imageStylePostApply'));});});for(const _0x56bfec of _0x4ad861['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xbab70c[_0x56bfec['name']]=_0x56bfec['title']['toLowerCase']();_0x1dcaba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1dcaba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1dcaba['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1dcaba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x409da7])=>{_0x4f7c47['setImageNaturalSizeAttributes'](_0x409da7['getContainedElement']());}),_0x1dcaba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x492698,_0x3e7a53)=>{_0x1dcaba['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x492698,{'commandName':_0x3e7a53['commandName'],'commandParams':_0x3e7a53['commandReversedParams']});}),_0x1dcaba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4f0a41,_0x4b881c){if(_0x46e9b3(_0x4f0a41,_0x4b881c))return[_0x4f0a41,_0x4b881c];if(_0x46e9b3(_0x4b881c,_0x4f0a41))return[_0x4b881c,_0x4f0a41];return null;});const _0x40d864=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x46e9b3(_0x1092b0,_0x396df1){const _0x218530=_0x40d864['findIndex'](({type:_0x350024,subType:_0x41ae51})=>_0x1092b0['type']==_0x350024&&_0x1092b0['subType']==_0x41ae51),_0x1f7850=_0x40d864['findIndex'](({type:_0x3228c3,subType:_0x1235c4})=>_0x396df1['type']==_0x3228c3&&_0x396df1['subType']==_0x1235c4);if(_0x218530<0x0||_0x1f7850<0x0)return!0x1;const _0x49fab3=_0x1092b0['getFirstRange'](),_0x6ea13=_0x396df1['getFirstRange']();if((0x0==_0x218530||0x1==_0x218530)&&0x2==_0x1f7850&&_0x49fab3['isIntersecting'](_0x6ea13))return!0x0;if(0x2==_0x218530&&0x3==_0x1f7850){const _0x3ab5f3=_0x1dcaba['_findSuggestions'](_0x49fab3,'insertion')['filter'](({suggestion:_0x81718e,meta:_0x161e70})=>_0x161e70['isOwn']&&'convertInlineImageToBlock'==_0x81718e['subType']);if(_0x3ab5f3['length']>0x1&&_0x6ea13['end']['isEqual'](_0x49fab3['start']))return!0x0;if(0x1==_0x3ab5f3['length']&&(_0x49fab3['start']['isEqual'](_0x6ea13['end'])||_0x49fab3['end']['isEqual'](_0x6ea13['start'])))return!0x0;}if(0x3==_0x218530&&0x3==_0x1f7850&&_0x49fab3['start']['isBefore'](_0x6ea13['start'])){const _0x737a62=_0x49fab3['end']['nodeAfter'],_0x5194e9=_0x6ea13['start']['nodeBefore'];return _0x4f7c47['isBlockImage'](_0x737a62)&&_0x737a62===_0x5194e9;}return!0x1;}_0x4ad861['model']['document']['registerPostFixer'](()=>{let _0x4b8212=!0x1;const _0x3acbe8=Array['from'](_0x4ad861['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x458e6a,data:_0x54f804}of _0x3acbe8){const {group:_0x26bab1,type:_0x491f19,subType:_0x46d8f8,id:_0x7807f5}=_0x1dcaba['_splitMarkerName'](_0x458e6a);if('suggestion'==_0x26bab1&&_0x1dcaba['hasSuggestion'](_0x7807f5)){if('formatBlock'==_0x491f19&&('imageStylePreApply'==_0x46d8f8||'imageStylePostApply'==_0x46d8f8)){const _0x264a47=_0x1dcaba['getSuggestion'](_0x7807f5);if(_0x54f804['newRange']){const _0x344d4b=_0x264a47['getFirstRange']()['getContainedElement']();if(_0x4f7c47['isBlockImage'](_0x344d4b))continue;_0x1dcaba['discardSuggestion'](_0x264a47),_0x4b8212=!0x0;}}if('insertion'==_0x491f19&&'imageCaption'==_0x46d8f8&&!_0x54f804['newRange']){const _0x540a5d=_0x1dcaba['getSuggestion'](_0x7807f5);_0x540a5d['next']&&_0x540a5d['next']['isInContent']&&(_0x1dcaba['discardSuggestion'](_0x540a5d['next']),_0x4b8212=!0x0);}}}return _0x4b8212;}),this['_registerLegacyDescription'](_0xbab70c);}['_registerLegacyDescription'](_0x2f136b){const _0x57ca1f=this['editor'],_0x54a98e=_0x57ca1f['locale'];_0x57ca1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x207248=>{if('formatBlock'!=_0x207248['type']&&'formatInline'!=_0x207248['type'])return;const {data:_0x55175d}=_0x207248;if(!_0x55175d||'imageStyle'!=_0x55175d['commandName'])return;const _0x58e03c=_0x55175d['commandParams'][0x0]['value'];return _0x10e887('side'===_0x58e03c?c(_0x54a98e,'FORMAT_SIDE_IMAGE'):_0x2f136b[_0x58e03c]||_0x58e03c);function _0x10e887(_0x5730fd){return{'type':'format','content':c(_0x54a98e,'*Format:*\x20%0',_0x5730fd)};}});}}class ut extends _0x3b7b17{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2f1dcb){super(_0x2f1dcb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x246b34=this['editor'],_0x53c10b=_0x246b34['commands']['get']('importWord'),_0x27776e=_0x246b34['commands']['get']('trackChanges');_0x53c10b&&(_0x53c10b['on']('execute',(_0x2cd9af,[,_0x4b0cdd])=>{this['_trackChangesValueDuringImport']=_0x27776e['value'],_0x4b0cdd['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x53c10b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x53c10b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x27776e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x246b34['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3cedd0,_0xb43c1){const {suggestions:_0x2c7ed4}=_0xb43c1,_0x550795=this['editor']['commands']['get']('trackChanges'),_0x103d86=_0x550795['value'];this['_trackChangesValueDuringImport']!==_0x103d86&&(_0x550795['execute'](),this['_trackChangesExecuted']=!0x0),_0x2c7ed4&&_0x2c7ed4['forEach'](({id:_0x492f2c,type:_0x5c57f8,author:_0x139e30,created_at:_0x1b3018})=>{const _0x423613={'id':_0x492f2c,'type':_0x5c57f8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x139e30,'createdAt':_0x1b3018?new Date(_0x1b3018):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x423613);});}}class ft extends _0x3b7b17{['afterInit'](){const _0x2d19b2=this['editor'],_0x3a77bd=_0x2d19b2['plugins']['get']('TrackChangesEditing');if(_0x2d19b2['plugins']['has']('IndentEditing')&&(_0x3a77bd['enableCommand']('indent'),_0x3a77bd['enableCommand']('outdent')),_0x2d19b2['plugins']['has']('IndentBlock')){for(const _0x3aa27b of['indentBlock','outdentBlock'])_0x3a77bd['enableDefaultAttributesIntegration'](_0x3aa27b);}const _0x55d46e=_0x2d19b2['locale'];_0x3a77bd['registerBlockAttribute']('blockIndent'),_0x3a77bd['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x55d46e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59bf27=this['editor'],_0x481a11=_0x59bf27['locale'],_0x3a366e=_0x59bf27['plugins']['get']('TrackChangesEditing');_0x3a366e['descriptionFactory']['registerDescriptionCallback'](_0x232ebf=>{if('formatBlock'!=_0x232ebf['type'])return;const {data:_0x87e9e9}=_0x232ebf;if(!_0x87e9e9)return;if('indentBlock'!=_0x87e9e9['commandName']&&'outdentBlock'!=_0x87e9e9['commandName'])return;const _0x1e14d0=_0x232ebf['getItems']()[0x0],_0x3b22cb=_0x3a366e['descriptionFactory']['getItemLabel'](_0x1e14d0);return'indentBlock'==_0x87e9e9['commandName']?{'type':'format','content':c(_0x481a11,'*Indent:*\x20%0',_0x3b22cb)}:'outdentBlock'==_0x87e9e9['commandName']?{'type':'format','content':c(_0x481a11,'*Outdent:*\x20%0',_0x3b22cb)}:void 0x0;});}}class ht extends _0x3b7b17{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x3b7b17{['afterInit'](){const _0x4a4715=this['editor'];if(!_0x4a4715['plugins']['has']('LinkEditing'))return;const _0x1cb9bc=_0x4a4715['plugins']['get']('TrackChangesEditing'),_0x91a016=_0x4a4715['commands']['get']('link');_0x1cb9bc['enableDefaultAttributesIntegration']('link'),_0x1cb9bc['enableDefaultAttributesIntegration']('unlink'),_0x1cb9bc['registerInlineAttribute']('linkHref');for(const _0x3f8133 of _0x91a016['manualDecorators'])_0x1cb9bc['registerInlineAttribute'](_0x3f8133['id']),_0x1cb9bc['descriptionFactory']['registerAttributeLabel'](_0x3f8133['id'],'link\x20('+_0x3f8133['label']['toLowerCase']()+')');_0x1cb9bc['descriptionFactory']['registerDescriptionCallback'](_0x516a64=>{if('attribute'!=_0x516a64['type'])return;const {data:_0x3367d1}=_0x516a64;if(!_0x3367d1||'linkHref'!=_0x3367d1['key'])return;const _0x4ebad6=_0x3367d1['newValue'],_0x59ed96=_0x4a4715['locale'];return{'type':'format','content':null==_0x4ebad6?c(_0x59ed96,'*Remove\x20link*'):c(_0x59ed96,'*Set\x20link:*\x20%0','\x22'+_0x4ebad6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d30eb=this['editor'],_0x4c66a7=_0x4d30eb['locale'];_0x4d30eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23a0fc=>{if('formatInline'!=_0x23a0fc['type'])return;const {data:_0x544240}=_0x23a0fc;if(_0x544240){if('link'==_0x544240['commandName']){const _0x39d27a=_0x544240['commandParams'][0x0];return{'type':'format','content':c(_0x4c66a7,'*Set\x20link:*\x20%0','\x22'+_0x39d27a+'\x22')};}return'unlink'==_0x544240['commandName']?{'type':'format','content':c(_0x4c66a7,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x3b7b17{['afterInit'](){const _0x4fd27a=this['editor'],_0x578a37=_0x4fd27a['locale'];if(!_0x4fd27a['plugins']['has']('LegacyListEditing'))return;const _0x5df058=_0x4fd27a['plugins']['get']('TrackChangesEditing'),_0xfb4970=_0x4fd27a['plugins']['has']('LegacyTodoListEditing');function _0x317304(_0xc70e44){return()=>{const _0x5656a9=_0x4fd27a['model']['document']['selection'],_0x2fc81b=_0x4fd27a['commands']['get'](_0xc70e44);if(_0x2fc81b['value'])return void _0x4fd27a['execute']('paragraph',{});const _0xf8e2e5=_0xc70e44['slice'](0x0,-0x4),_0x2619cb=function(_0x2aa9b2,_0x25d13a,_0x2b5f83){let _0x4d48a1=Array['from'](_0x2aa9b2)['filter'](_0xfedcd9=>function(_0x42c273,_0x1344e0){return _0x1344e0['checkChild'](_0x42c273['parent'],'listItem')&&!_0x1344e0['isObject'](_0x42c273);}(_0xfedcd9,_0x2b5f83));_0x4d48a1=_0x4d48a1['filter'](_0xdaad66=>!_0xdaad66['is']('element','listItem')||_0xdaad66['getAttribute']('listType')!=_0x25d13a);const _0x27149e=new Set();for(const _0x49f310 of _0x4d48a1)_0x49f310['is']('element','listItem')?_0x27149e['add'](Le(_0x49f310)):_0x27149e['add'](_0x49f310);return Array['from'](_0x27149e);}(_0x5656a9['getSelectedBlocks'](),_0xf8e2e5,_0x4fd27a['model']['schema']);_0x4fd27a['model']['change'](()=>{for(const _0x1da0b6 of _0x2619cb)_0x5df058['markBlockFormat'](_0x1da0b6,{'commandName':_0xc70e44,'commandParams':[{'forceValue':!_0x2fc81b['value']}],'formatGroupId':'blockName'},Ee(_0x1da0b6));});};}function _0x21c5f8(_0x2f7c80){return()=>{const _0x458162=function(_0x3742f5){let _0x2fa7b2=Array['from'](_0x3742f5);const _0x2aa6e2=_0x2fa7b2['findIndex'](_0x546ce4=>'listItem'!=_0x546ce4['name']);return _0x2aa6e2>-0x1&&(_0x2fa7b2=_0x2fa7b2['slice'](0x0,_0x2aa6e2)),_0x2fa7b2;}(_0x4fd27a['model']['document']['selection']['getSelectedBlocks']()),_0x5a6903=_0x4fd27a['model']['createRange'](_0x4fd27a['model']['createPositionAt'](_0x458162[0x0],'before'),_0x4fd27a['model']['createPositionAt'](_0x458162[_0x458162['length']-0x1],'end'));_0x4fd27a['model']['change'](()=>{_0x5df058['markBlockFormat'](_0x5a6903,{'commandName':_0x2f7c80,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5f38b2){const _0x1aa6f0=new Set();for(const _0x4154af of _0x5f38b2){let _0xe2416d=_0x4154af['nextSibling'];for(;_0xe2416d&&_0xe2416d['getAttribute']('listIndent')>_0x4154af['getAttribute']('listIndent');)_0x1aa6f0['add'](_0xe2416d),_0xe2416d=_0xe2416d['nextSibling'];}return Array['from'](_0x1aa6f0);}(_0x458162));});};}_0x5df058['enableCommand']('numberedList',_0x317304('numberedList')),_0x5df058['enableCommand']('bulletedList',_0x317304('bulletedList')),_0xfb4970&&_0x5df058['enableCommand']('todoList',_0x317304('todoList')),_0x5df058['enableCommand']('indentList',_0x21c5f8('indentList')),_0x5df058['enableCommand']('outdentList',_0x21c5f8('outdentList')),_0xfb4970&&_0x5df058['enableCommand']('checkTodoList',()=>{const _0x406cbc=_0x4fd27a['commands']['get']('checkTodoList'),_0x1388b1=Array['from'](_0x406cbc['_selectedElements']);_0x1388b1['filter'](_0x54ed48=>_0x54ed48['getAttribute']('todoListChecked')!=_0x406cbc['value']),_0x4fd27a['model']['change'](()=>{for(const _0x44e136 of _0x1388b1)_0x5df058['markBlockFormat'](_0x44e136,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x406cbc['value']}]});});}),_0x5df058['descriptionFactory']['registerElementLabel']('listItem',_0x21cfef=>c(_0x578a37,'ELEMENT_LIST_ITEM',_0x21cfef)),_0x5df058['descriptionFactory']['registerDescriptionCallback'](_0x216910=>{if('formatBlock'!=_0x216910['type']&&'formatInline'!=_0x216910['type'])return;const {data:_0x7a782c}=_0x216910;if(_0x7a782c){if('numberedList'==_0x7a782c['commandName']||'bulletedList'==_0x7a782c['commandName']||'todoList'==_0x7a782c['commandName'])switch(_0x7a782c['commandName']['replace']('List','')){case'bulleted':return _0x34b5bd(c(_0x578a37,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34b5bd(c(_0x578a37,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34b5bd(c(_0x578a37,'ELEMENT_TODO_LIST'));}if('indentList'==_0x7a782c['commandName'])return{'type':'format','content':c(_0x578a37,'*Indent:*\x20%0',c(_0x578a37,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x7a782c['commandName'])return{'type':'format','content':c(_0x578a37,'*Outdent:*\x20%0',c(_0x578a37,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x7a782c['commandName'])return _0x7a782c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x578a37,'*Check\x20item*')}:{'type':'format','content':c(_0x578a37,'*Uncheck\x20item*')};}function _0x34b5bd(_0x51b830){return{'type':'format','content':c(_0x578a37,'*Change\x20to:*\x20%0',_0x51b830)};}});}}function Le(_0x8edde0){const _0x3dbffe=_0x8edde0['getAttribute']('listIndent');if(0x0==_0x3dbffe)return _0x8edde0;let _0x30d2be=_0x8edde0;for(;_0x8edde0['previousSibling']&&_0x8edde0['previousSibling']['is']('element','listItem');){const _0x3059dc=_0x8edde0['previousSibling']['getAttribute']('listIndent');if(_0x3059dc==_0x3dbffe)_0x30d2be=_0x8edde0['previousSibling'];else{if(_0x3059dc<_0x3dbffe)break;}_0x8edde0=_0x8edde0['previousSibling'];}return _0x30d2be;}function Ee(_0x48a88d){const _0x56867f=[];if(_0x48a88d['is']('element','listItem')&&_0x48a88d['getAttribute']('listIndent')>0x0){let _0x2add55=_0x48a88d['nextSibling'];for(;_0x2add55&&'listItem'==_0x2add55['name']&&_0x2add55['getAttribute']('listIndent')==_0x48a88d['getAttribute']('listIndent');)_0x56867f['push'](_0x2add55),_0x2add55=_0x2add55['nextSibling'];}return _0x56867f;}class Q extends _0x3b7b17{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x57d821=this['editor']['config']['get']('list.properties'),_0x43c80c=this['editor']['plugins']['get']('TrackChangesEditing');_0x57d821['styles']&&_0x43c80c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x57d821['reversed']&&_0x43c80c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x57d821['startIndex']&&_0x43c80c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x43c80c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x24f054,_0x22e2a2={}){const _0x1bc741=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c4146=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1bc741['markMultiRangeBlockFormat'](_0x4c4146,{'commandName':'listStyle','commandParams':[{'type':_0x22e2a2['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x18f49f,_0x5e4975={}){const _0x281ab6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x222b57=this['_getSuggestionBlocks'](_0x3d9482=>_0x3d9482['is']('element','listItem')&&'numbered'===_0x3d9482['getAttribute']('listType'));if(_0x222b57['length']<0x1)return;const _0x144741=_0x222b57['map'](_0x4d0641=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4d0641,'before'),this['editor']['model']['createPositionAt'](_0x4d0641,0x0)));this['editor']['model']['change'](()=>{_0x281ab6['markMultiRangeBlockFormat'](_0x144741,{'commandName':'listReversed','commandParams':[{'reversed':_0x5e4975['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x174fd7,_0x4bde00={}){const _0x36c4c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c6d91=this['_getSuggestionBlocks'](_0x15ba61=>_0x15ba61['is']('element','listItem')&&'numbered'===_0x15ba61['getAttribute']('listType'));if(_0x4c6d91['length']<0x1)return;const _0x687eff=_0x4c6d91['map'](_0x2521d6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2521d6,'before'),this['editor']['model']['createPositionAt'](_0x2521d6,0x0)));this['editor']['model']['change'](()=>{_0x36c4c1['markMultiRangeBlockFormat'](_0x687eff,{'commandName':'listStart','commandParams':[{'startIndex':_0x4bde00['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x10b6f3){if('formatBlock'!=_0x10b6f3['type']&&'formatInline'!=_0x10b6f3['type'])return;const _0x2dc368=this['editor']['locale'],{data:_0x4f254f}=_0x10b6f3;if(!_0x4f254f)return;let _0x4d0f32,_0x4d4ae5;switch(_0x4f254f['commandName']){case'listStyle':_0x4d0f32='*Change\x20to:*\x20%0',_0x4d4ae5={'type':'format','content':c(_0x2dc368,_0x4d0f32,c(_0x2dc368,this['_getTranslationKeyForListStyle'](_0x4f254f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4d0f32=_0x4f254f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4d4ae5={'type':'format','content':c(_0x2dc368,_0x4d0f32)};break;case'listStart':_0x4d0f32='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4d4ae5={'type':'format','content':c(_0x2dc368,_0x4d0f32,_0x4f254f['commandParams'][0x0]['startIndex'])};}return _0x4d4ae5;}['_getSuggestionBlocksForListStyle'](){const _0xafa07d=this['editor']['plugins']['get']('LegacyListUtils');let _0x1c60d8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1c60d8[0x0]?.['is']('element','listItem')&&_0x1c60d8['unshift'](..._0xafa07d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1c60d8[_0x1c60d8['length']-0x1]?.['is']('element','listItem')&&_0x1c60d8['push'](..._0xafa07d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1c60d8=[...new Set(_0x1c60d8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1c60d8=_0x1c60d8['filter'](_0x1c055b=>_0x1c055b['is']('element','listItem'))),_0x1c60d8;}['_getSuggestionBlocks'](_0x2f7b44){const _0x5c941e=this['editor']['plugins']['get']('LegacyListUtils');let _0x33c645=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2f7b44)['map'](_0x4309b0=>{const _0x496f67=this['editor']['model']['createPositionAt'](_0x4309b0,0x0);return[..._0x5c941e['getSiblingNodes'](_0x496f67,'backward'),..._0x5c941e['getSiblingNodes'](_0x496f67,'forward')];})['flat']();return _0x33c645=[...new Set(_0x33c645)],_0x33c645;}['_getTranslationKeyForListStyle'](_0x41107e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x41107e)||'default')['toUpperCase']()+'_LIST_'+_0x41107e['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x3b7b17{['afterInit'](){const _0x840ea3=this['editor'];if(!_0x840ea3['plugins']['has']('MediaEmbedEditing'))return;const _0x53c2f8=_0x840ea3['plugins']['get']('TrackChangesEditing'),_0x3555b9=_0x840ea3['locale'];_0x53c2f8['enableCommand']('mediaEmbed'),_0x53c2f8['descriptionFactory']['registerElementLabel']('media',_0x34b116=>c(_0x3555b9,'ELEMENT_MEDIA',_0x34b116)),_0x840ea3['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x392ce1,{writer:_0x3346ec,options:_0x4d23b8})=>{if(_0x4d23b8['showSuggestionHighlights'])return _0x3346ec['createEmptyElement']('div');},'converterPriority':'high'}),_0x840ea3['data']['downcastDispatcher']['on']('attribute:url:media',(_0x32609d,_0x7f0fb7,_0x4c0bc9)=>{_0x4c0bc9['options']['showSuggestionHighlights']&&_0x32609d['stop']();},{'priority':'high'});}}class pt extends _0x3b7b17{['afterInit'](){const _0x180ac6=this['editor'];_0x180ac6['plugins']['has']('MentionEditing')&&_0x180ac6['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x3b7b17{['afterInit'](){const _0x18900a=this['editor'];if(!_0x18900a['plugins']['has']('MergeFieldsEditing'))return;const _0x4e1190=_0x18900a['plugins']['get']('TrackChangesEditing'),_0x9aafb4=_0x18900a['locale'];_0x4e1190['enableCommand']('insertMergeField'),_0x4e1190['enableCommand']('insertMergeFieldBlock'),_0x4e1190['enableCommand']('insertMergeFieldImage'),_0x4e1190['descriptionFactory']['registerElementLabel']('mergeField',_0x10a32e=>c(_0x9aafb4,'ELEMENT_MERGE_FIELD',_0x10a32e)),_0x4e1190['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1ae47e=>c(_0x9aafb4,'ELEMENT_MERGE_FIELD',_0x1ae47e)),_0x4e1190['descriptionFactory']['registerDescriptionCallback'](_0x432181=>{if('insertion'!=_0x432181['type']&&'deletion'!=_0x432181['type'])return;const _0x123927=_0x432181['getContainedElement']();if(null==_0x123927)return;const _0x711bf1=_0x18900a['plugins']['get']('MergeFieldsEditing');let _0x5c8b4b;switch(_0x711bf1['getMergeFieldType'](_0x123927)){case null:return;case'image':{const _0x1b2db0=_0x711bf1['unwrapAffixes'](_0x123927['getAttribute']('src'));_0x5c8b4b=_0x711bf1['getLabel'](_0x1b2db0)||_0x1b2db0;break;}default:{const _0x32516b=_0x123927['getAttribute']('id');_0x5c8b4b=_0x711bf1['getLabel'](_0x32516b)||_0x32516b;break;}}return'insertion'==_0x432181['type']?{'type':'insertion','content':c(_0x9aafb4,'*Insert:*\x20%0','\x22'+_0x5c8b4b+'\x22\x20'+c(_0x9aafb4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x9aafb4,'*Remove:*\x20%0','\x22'+_0x5c8b4b+'\x22\x20'+c(_0x9aafb4,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x3b7b17{['afterInit'](){const _0x4789ff=this['editor'],_0x35bef5=_0x4789ff['plugins']['get']('TrackChangesEditing');_0x4789ff['plugins']['has']('MultiLevelList')&&(_0x35bef5['enableDefaultAttributesIntegration']('multiLevelList'),_0x35bef5['registerBlockAttribute']('listMarkerStyle'),_0x35bef5['descriptionFactory']['registerDescriptionCallback'](_0x22c6f4=>this['handleDescriptions'](_0x22c6f4)));}['handleDescriptions'](_0x219884){const _0x3d2cca=this['editor']['locale'],{data:_0xb111f2}=_0x219884,_0x3b115d={'type':'format','content':''};if(_0xb111f2&&'listMarkerStyle'==_0xb111f2['key']){if(!_0xb111f2['oldValue'])return{'type':'format','content':c(_0x3d2cca,'*Set\x20format:*\x20%0',c(_0x3d2cca,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xb111f2['newValue']+')'};if(!_0xb111f2['newValue']){let _0x3bcbcf=_0x219884['head'];for(;_0x3bcbcf;){if(_0x3bcbcf['data']&&'listType'==_0x3bcbcf['data']['key']&&_0x3bcbcf['data']['newValue'])return _0x3b115d;_0x3bcbcf=_0x3bcbcf['next'];}return{'type':'format','content':c(_0x3d2cca,'*Remove\x20format:*\x20%0',c(_0x3d2cca,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xb111f2['oldValue']+')'};}}}}class bt extends _0x3b7b17{['afterInit'](){const _0x2eed92=this['editor'];if(!_0x2eed92['plugins']['has']('PageBreakEditing'))return;_0x2eed92['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x30e13c=_0x2eed92['plugins']['get']('TrackChangesEditing'),_0x5c8c33=_0x2eed92['locale'];_0x30e13c['descriptionFactory']['registerElementLabel']('pageBreak',_0x245d36=>c(_0x5c8c33,'ELEMENT_PAGE_BREAK',_0x245d36));}}class yt extends _0x3b7b17{['afterInit'](){const _0x4b6699=this['editor'];if(!_0x4b6699['plugins']['has']('Paragraph'))return;const _0x1d467f=_0x4b6699['locale'],_0x496949=_0x4b6699['plugins']['get']('TrackChangesEditing');_0x496949['descriptionFactory']['registerElementLabel']('paragraph',_0x586947=>c(_0x1d467f,'ELEMENT_PARAGRAPH',_0x586947)),_0x496949['enableDefaultAttributesIntegration']('paragraph'),_0x496949['enableCommand']('insertParagraph'),_0x4b6699['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4b6699),{'priority':'highest'}),_0x4b6699['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2cb622,_0x1ff8fa,_0xcb90e6)=>{_0xcb90e6['options']['showSuggestionHighlights']&&nr(_0x4b6699,{'showActiveMarker':!0x1})(_0x2cb622,_0x1ff8fa,_0xcb90e6);},{'priority':'highest'});const _0x4aa825=_0x496949['descriptionFactory'];_0x4aa825['registerDescriptionCallback'](_0x1f09b2=>{if('insertion'!==_0x1f09b2['type'])return;const {start:_0x180ade,end:_0x4799fc}=_0x1f09b2['getFirstRange']();if(!_0x180ade['isTouching'](_0x4799fc)||!_0x180ade['nodeAfter'])return;const _0x55a2f4=_0x4b6699['model']['schema'],_0x16ff88=_0x180ade['nodeAfter'];return _0x55a2f4['isBlock'](_0x16ff88)&&!_0x55a2f4['isLimit'](_0x16ff88)&&_0x55a2f4['checkChild'](_0x16ff88,'$text')?{'type':'insertion','content':c(_0x1d467f,'*Insert:*\x20%0',_0x4aa825['getItemLabel'](_0x16ff88,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a7a03=this['editor'],_0x3a99fe=_0x1a7a03['locale'];_0x1a7a03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d2be4=>{if('formatBlock'!=_0x1d2be4['type'])return;const {data:_0x552e8c}=_0x1d2be4;return _0x552e8c&&'paragraph'==_0x552e8c['commandName']?{'type':'format','content':c(_0x3a99fe,'*Change\x20to:*\x20%0',c(_0x3a99fe,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4ef38d,{showActiveMarker:_0x4bc1d4=!0x0}={}){return(_0x5af35e,_0x301e26,_0x2295ac)=>{const _0x41a7de=_0x4ef38d['plugins']['get']('TrackChangesEditing'),_0x16af00=_0x301e26['markerRange']['start'],_0x563864=_0x301e26['markerRange']['end'],_0x452840=_0x4ef38d['model']['schema'];if(!_0x16af00['isTouching'](_0x563864)||!_0x16af00['nodeAfter'])return;const _0x2a1351=_0x16af00['nodeAfter'];if(_0x452840['isBlock'](_0x2a1351)&&!_0x452840['isLimit'](_0x2a1351)&&_0x452840['checkChild'](_0x2a1351,'$text')){if(!_0x2295ac['consumable']['consume'](_0x301e26['markerRange'],_0x5af35e['name']))return;const {id:_0x535125,authorId:_0x5b82c7}=_0x41a7de['_splitMarkerName'](_0x301e26['markerName']),_0xd0bd7a=_0x2295ac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x535125,'data-author-id':_0x5b82c7}),_0x935593=_0x2295ac['mapper']['toViewPosition'](_0x563864);_0x4bc1d4&&_0x41a7de['activeMarkers']['includes'](_0x301e26['markerName'])&&_0x2295ac['writer']['addClass']('ck-suggestion-marker--active',_0xd0bd7a),_0x2295ac['writer']['insert'](_0x935593,_0xd0bd7a),_0x2295ac['mapper']['bindElementToMarker'](_0xd0bd7a,_0x301e26['markerName']);}};}class St extends _0x3b7b17{['afterInit'](){const _0x1d809d=this['editor'];_0x1d809d['commands']['get']('replaceSource')&&_0x1d809d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x3b7b17{['afterInit'](){const _0x10db25=this['editor'];if(!_0x10db25['plugins']['has']('RemoveFormatEditing'))return;_0x10db25['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x210f2b=this['editor'];_0x210f2b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b87ca=>{if('formatBlock'!=_0x2b87ca['type']&&'formatInline'!=_0x2b87ca['type'])return;const {data:_0x1c2adb}=_0x2b87ca;return _0x1c2adb&&'removeFormat'==_0x1c2adb['commandName']?{'type':'format','content':c(_0x210f2b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x3b7b17{['afterInit'](){const _0x549eff=this['editor'];if(!_0x549eff['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x374192=_0x549eff['plugins']['get']('TrackChangesEditing');_0x374192['enableCommand']('goToPreviousRestrictedEditingException'),_0x374192['enableCommand']('goToNextRestrictedEditingException');const _0x424955=_0x549eff['plugins']['get']('RestrictedEditingModeEditing');_0x424955['enableCommand']('trackChanges'),_0x424955['enableCommand']('acceptSuggestion'),_0x424955['enableCommand']('discardSuggestion'),_0x424955['enableCommand']('acceptAllSuggestions'),_0x424955['enableCommand']('discardAllSuggestions'),_0x424955['enableCommand']('acceptSelectedSuggestions'),_0x424955['enableCommand']('discardSelectedSuggestions');}}class At extends _0x3b7b17{['afterInit'](){const _0x916643=this['editor'];if(!_0x916643['plugins']['has']('ShiftEnter'))return;const _0xd3bfc4=_0x916643['plugins']['get']('TrackChangesEditing');_0xd3bfc4['enableCommand']('shiftEnter'),_0x916643['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x916643),{'priority':'high'}),_0x916643['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x916643),{'priority':'high'}),_0x916643['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4a9683,_0xd4c755,_0x1c0808)=>{_0x1c0808['options']['showSuggestionHighlights']&&je(_0x916643,{'showActiveMarker':!0x1})(_0x4a9683,_0xd4c755,_0x1c0808);}),_0xd3bfc4['descriptionFactory']['registerElementLabel']('softBreak',_0x410392=>c(_0x916643['locale'],'ELEMENT_LINE_BREAK',_0x410392));}}function je(_0x3b63f4,{showActiveMarker:_0x1216f5=!0x0}={}){return(_0x1a203b,_0xee49d6,_0x4fb81b)=>{const _0x458412=_0x3b63f4['plugins']['get']('TrackChangesEditing');if(!_0x4fb81b['consumable']['test'](_0xee49d6['markerRange'],_0x1a203b['name']))return;const _0x4158f1=_0x3b63f4['model'];for(const _0x22ed1d of _0xee49d6['markerRange']['getItems']()){if(!_0x22ed1d['is']('element','softBreak'))continue;const _0x432f2c='deletion'==_0xee49d6['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5fe451,authorId:_0x401e7d}=_0x458412['_splitMarkerName'](_0xee49d6['markerName']),_0x210947=_0x4fb81b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x432f2c,'data-suggestion':_0x5fe451,'data-author-id':_0x401e7d}),_0x737c30=_0x4fb81b['mapper']['toViewPosition'](_0x4158f1['createPositionBefore'](_0x22ed1d));_0x1216f5&&_0x458412['activeMarkers']['includes'](_0xee49d6['markerName'])&&_0x4fb81b['writer']['addClass']('ck-suggestion-marker--active',_0x210947),_0x4fb81b['writer']['insert'](_0x737c30,_0x210947),_0x4fb81b['mapper']['bindElementToMarker'](_0x210947,_0xee49d6['markerName']);}};}class _t extends _0x3b7b17{['afterInit'](){const _0x52ebe8=this['editor'],_0x4103a9=_0x52ebe8['model'],_0x119ed1=_0x52ebe8['locale'];if(!_0x52ebe8['plugins']['has']('StandardEditingModeEditing'))return;const _0x4b4818=_0x52ebe8['plugins']['get']('TrackChangesEditing'),_0x5b27f3='restrictedEditingException',_0xbb23f8=_0x52ebe8['commands']['get'](_0x5b27f3);_0x4b4818['enableCommand'](_0x5b27f3,(_0x4b31d0,_0x29f96b={})=>{const _0x39d93a=_0x4103a9['document']['selection'];if(_0x39d93a['isCollapsed'])return void _0x4b31d0(_0x29f96b);const _0x596922=void 0x0!==_0x29f96b['forceValue']?_0x29f96b['forceValue']:!_0xbb23f8['value'];_0x4103a9['change'](()=>{const _0x469942=Array['from'](_0x39d93a['getRanges']());for(const _0x285526 of _0x469942){const _0x45cfaa=_0x596922?[_0x285526]:io(_0x5b27f3,_0x285526,_0x4103a9);for(const _0x2bfe57 of _0x45cfaa)_0x4b4818['markInlineFormat'](_0x2bfe57,{'commandName':_0x5b27f3,'commandParams':[{'forceValue':_0x596922}]});}});}),_0x4b4818['descriptionFactory']['registerDescriptionCallback'](_0xc14d48=>{if('formatBlock'!=_0xc14d48['type']&&'formatInline'!=_0xc14d48['type'])return;const {data:_0x2c8548}=_0xc14d48;return _0x2c8548&&_0x2c8548['commandName']==_0x5b27f3?_0x2c8548['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x119ed1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x119ed1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x3b7b17{['afterInit'](){const _0x30944f=this['editor'];if(!_0x30944f['plugins']['has']('Style')||!_0x30944f['plugins']['has']('DataSchema'))return;const _0x31c118=_0x30944f['plugins']['get']('TrackChangesEditing'),_0x1e9501=_0x30944f['locale'],_0xe78101=_0x30944f['config']['get']('style')||{},_0x1dc008=_0x30944f['plugins']['get']('GeneralHtmlSupport'),_0xb36f0e=_0x30944f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x30944f['plugins']['get']('DataSchema'),_0xe78101['definitions']);_0x31c118['enableDefaultAttributesIntegration']('style');const _0x43f409=new Set();for(const _0x2c04d2 of _0xb36f0e['block']){const _0x2d0226=_0x1dc008['getGhsAttributeNameForElement'](_0x2c04d2['element']);_0x43f409['add'](_0x2d0226);}const _0x4b1ddf=new Set();for(const _0x757e37 of _0xb36f0e['inline']){const _0x1fe940=_0x1dc008['getGhsAttributeNameForElement'](_0x757e37['element']);_0x4b1ddf['add'](_0x1fe940);for(const _0x2e8628 of _0x757e37['ghsAttributes'])_0x4b1ddf['add'](_0x2e8628);}for(const _0x58832e of _0x43f409)_0x31c118['registerBlockAttribute'](_0x58832e),_0x31c118['descriptionFactory']['registerAttributeLabel'](_0x58832e,c(_0x1e9501,'FORMAT_STYLE'));for(const _0x33f64b of _0x4b1ddf)_0x31c118['registerInlineAttribute'](_0x33f64b),_0x31c118['descriptionFactory']['registerAttributeLabel'](_0x33f64b,c(_0x1e9501,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x297fed=this['editor'],_0x5e6dad=_0x297fed['locale'];_0x297fed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fd4e8=>{if('formatBlock'!=_0x2fd4e8['type']&&'formatInline'!=_0x2fd4e8['type'])return;const {data:_0x267264}=_0x2fd4e8;return _0x267264&&'style'===_0x267264['commandName']?_0x267264['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5e6dad,'*Set\x20format:*\x20%0',_0x267264['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5e6dad,'*Remove\x20format:*\x20%0',_0x267264['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3b7b17{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x55c0e9){super(_0x55c0e9),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x9db3f2=this['editor'],_0x5181f4=_0x9db3f2['model']['document']['selection'];if(!_0x9db3f2['plugins']['has']('TableEditing'))return;const _0x1ddd37=_0x9db3f2['locale'],_0x4c7590=_0x9db3f2['plugins']['get']('TrackChangesEditing'),_0x1230d6=_0x9db3f2['plugins']['get']('TableUtils');_0x4c7590['descriptionFactory']['registerElementLabel']('table',_0x5d7ad3=>c(_0x1ddd37,'ELEMENT_TABLE',_0x5d7ad3)),this['_setupColumnsRowsFixing'](),_0x4c7590['enableCommand']('insertTable'),_0x4c7590['enableCommand']('selectTableRow'),_0x4c7590['enableCommand']('selectTableColumn');for(const _0x2fe100 of['insertTableRowAbove','insertTableRowBelow']){const _0x40b890=_0x9db3f2['commands']['get'](_0x2fe100);_0x4c7590['enableCommand'](_0x2fe100,_0x139cb7=>{_0x9db3f2['model']['change'](_0x53b930=>{_0x139cb7();const _0x52f182='above'===_0x40b890['order'],_0x39ed8e=_0x1230d6['getSelectionAffectedTableCells'](_0x5181f4),_0x131a4a=_0x1230d6['getRowIndexes'](_0x39ed8e),_0x5af485=_0x52f182?_0x131a4a['first']-0x1:_0x131a4a['last']+0x1,_0x2bdc26=_0x39ed8e[0x0]['findAncestor']('table'),_0x555841=_0x1230d6['createTableWalker'](_0x2bdc26,{'startRow':_0x5af485,'endRow':_0x5af485}),_0x36eb9b=Array['from'](_0x555841)['map'](_0x11732f=>_0x53b930['createRangeOn'](_0x11732f['cell']));_0x4c7590['markMultiRangeInsertion'](_0x36eb9b,'tableRow');});});}for(const _0x542f19 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5df2b5=_0x9db3f2['commands']['get'](_0x542f19);_0x4c7590['enableCommand'](_0x542f19,_0x58f4cf=>{_0x9db3f2['model']['change'](_0x4a7ee0=>{_0x58f4cf();const _0x1592a5='left'===_0x5df2b5['order'],_0x2e1f6e=_0x1230d6['getSelectionAffectedTableCells'](_0x5181f4),_0x59bb59=_0x1230d6['getColumnIndexes'](_0x2e1f6e),_0x83a632=_0x1592a5?_0x59bb59['first']-0x1:_0x59bb59['last']+0x1,_0x4176c4=_0x2e1f6e[0x0]['findAncestor']('table'),_0x51c336=_0x1230d6['createTableWalker'](_0x4176c4,{'startRow':0x0,'column':_0x83a632,'includeAllSlots':!0x1}),_0x1d848c=Array['from'](_0x51c336)['map'](_0x4f0009=>_0x4a7ee0['createRangeOn'](_0x4f0009['cell']));_0x4c7590['markMultiRangeInsertion'](_0x1d848c,'tableColumn');});});}for(const _0xf06051 of['removeTableRow','removeTableColumn']){const _0x53d4d0=_0xf06051['substr'](0xb),_0x328356=_0x53d4d0['toLowerCase'](),_0x29f248=_0x328356['substr'](0x0,0x3)+'span',_0x317c59='table'+_0x53d4d0,_0x4e981c='min'+_0x53d4d0,_0x1826b0='max'+_0x53d4d0;_0x4c7590['enableCommand'](_0xf06051,()=>{_0x9db3f2['model']['change'](_0xf1de8b=>{const _0x49ff5b=_0x1230d6['getSelectionAffectedTableCells'](_0x5181f4),_0x277d69=_0x49ff5b[0x0]['findAncestor']('table');let _0x3b8284;if('removeTableRow'==_0xf06051){const _0x6086b7=_0x1230d6['getRowIndexes'](_0x49ff5b);_0x3b8284={'startRow':_0x6086b7['first'],'endRow':_0x6086b7['last'],'includeAllSlots':!0x0};}else{const _0x2bde68=_0x1230d6['getColumnIndexes'](_0x49ff5b);_0x3b8284={'startColumn':_0x2bde68['first'],'endColumn':_0x2bde68['last'],'includeAllSlots':!0x0};}const _0x9f84e5=_0x1230d6['createTableWalker'](_0x277d69,_0x3b8284),_0x41d219=Array['from'](_0x9f84e5)['map'](({cell:_0x3a3200})=>_0x3a3200),_0x3c7204=xe(_0x41d219['filter'](_0x499d02=>_0x499d02['hasAttribute'](_0x29f248))),_0x3184ba=xe(_0x41d219['filter'](_0x11d5fa=>!_0x11d5fa['hasAttribute'](_0x29f248)))['map'](_0x3b58de=>_0xf1de8b['createRangeOn'](_0x3b58de)),_0x4fca19=_0x4c7590['markMultiRangeDeletion'](_0x3184ba,_0x317c59);if(_0x4fca19&&('tableRow'==_0x4fca19['subType']||'tableColumn'==_0x4fca19['subType'])){const _0x5372dd=this['_getSuggestionCoords'](_0x4fca19);for(const _0x380213 of _0x3c7204){const _0x48f935=_0xf1de8b['createRangeOn'](_0x380213),_0x1836af=_0x1230d6['getCellLocation'](_0x380213),_0x75b32=_0x380213['getAttribute'](_0x29f248)-0x1,_0x191ec1=_0x5372dd[_0x4e981c],_0x4c9fcb=_0x5372dd[_0x1826b0];_0x191ec1<=_0x1836af[_0x328356]&&_0x1836af[_0x328356]+_0x75b32<=_0x4c9fcb&&_0x4fca19['addRange'](_0x48f935);}}});});}function _0x497848(_0x25264c){const _0x1ec3c8=Array['from'](_0x5181f4['getRanges']())['map'](_0x529b47=>_0x1f6f9b['fromRange'](_0x529b47));_0x9db3f2['model']['change'](_0x349027=>{const _0x5c55e0=_0x349027['batch'];_0x25264c=_0x25264c['filter'](_0x1128cc=>'$graveyard'!=_0x1128cc['root']['rootName']),_0x349027['setSelection'](_0x25264c),_0x9db3f2['commands']['get']('removeTableRow')['refresh'](),_0x9db3f2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x9db3f2['model']['enqueueChange'](()=>{_0x9db3f2['model']['enqueueChange'](_0x5c55e0,_0x303b6b=>{const _0x55b86b=_0x1ec3c8['filter'](_0x1fd916=>'$graveyard'!=_0x1fd916['root']['rootName']);_0x55b86b['length']>0x0&&_0x303b6b['setSelection'](_0x55b86b);for(const _0x4515b1 of _0x1ec3c8)_0x4515b1['detach']();});});});}function _0x25ca4d(_0x251459){_0x9db3f2['model']['change'](_0x2f48bb=>{const _0x54b2f0=Array['from'](_0x5181f4['getRanges']())['map'](_0x1b188c=>_0x1f6f9b['fromRange'](_0x1b188c)),_0x14a694=[];for(const _0x1e7841 of _0x251459)for(const _0x231715 of _0x1e7841['getItems']({'shallow':!0x0}))_0x14a694['push'](_0x231715);for(const _0x172819 of _0x14a694)'$graveyard'!=_0x172819['root']['rootName']&&(_0x2f48bb['setSelection'](_0x2f48bb['createPositionAt'](_0x172819,0x0)),_0x9db3f2['commands']['get']('removeTableColumn')['refresh'](),_0x9db3f2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1fa02c=_0x54b2f0['filter'](_0x3d8908=>'$graveyard'!=_0x3d8908['root']['rootName']);_0x1fa02c['length']>0x0&&_0x2f48bb['setSelection'](_0x1fa02c);for(const _0x360356 of _0x54b2f0)_0x360356['detach']();});}function _0x2a6c48(_0x24a7d5,_0x5cd48c){return _0x5cd48c['every'](_0x16fb55=>_0x24a7d5['some'](_0x53e89a=>_0x53e89a['end']['isEqual'](_0x16fb55['start'])||_0x16fb55['end']['isEqual'](_0x53e89a['start'])));}function _0x19491d(_0x21550a,_0x1071af){return!_0x21550a['some'](_0x57ca44=>_0x1071af['some'](_0xbabd7a=>_0x57ca44['isIntersecting'](_0xbabd7a)))&&_0x21550a['some'](_0x13fcc4=>_0x1071af['some'](_0x415bb9=>_0x13fcc4['end']['isTouching'](_0x415bb9['start'])));}_0x9db3f2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x252c3a,_0x2a77f2,_0x1c8ee9)=>{if(!_0x1c8ee9['options']['showSuggestionHighlights'])return;const _0x4d58d8=_0x2a77f2['item'];if(!_0x4d58d8||!_0x4d58d8['is']('element','tableCell'))return;const _0x4e3dc9=_0x1c8ee9['mapper']['toViewElement'](_0x4d58d8);if(_0x4e3dc9){const {id:_0xcabd12,authorId:_0x45b8e0}=_0x4c7590['_splitMarkerName'](_0x2a77f2['markerName']);_0x5eced9(_0x4e3dc9,_0x1c8ee9['writer'],(_0x45f72d,_0xb3f71f,_0x46a911)=>{_0x46a911['addClass'](_0x4deedd(_0xb3f71f['classes']),_0x45f72d),_0x46a911['setAttribute']('data-suggestion-id',_0xcabd12,_0x45f72d),_0x46a911['setAttribute']('data-author-id',_0x45b8e0,_0x45f72d);},(_0x5af4d7,_0x144886,_0xf9bf8f)=>{_0xf9bf8f['removeClass'](_0x4deedd(_0x144886['classes']),_0x5af4d7),_0xf9bf8f['removeAttribute']('data-suggestion-id',_0x5af4d7),_0xf9bf8f['removeAttribute']('data-author-id',_0x5af4d7);});}},{'priority':'highest'}),_0x4c7590['descriptionFactory']['registerDescriptionCallback'](_0x5e33de=>{if('insertion'!=_0x5e33de['type']&&'deletion'!=_0x5e33de['type'])return;const _0x2266d3=_0x5e33de['getContainedElement']();if(null!=_0x2266d3&&_0x2266d3['is']('element','table')){if('insertion'==_0x5e33de['type']){const _0x56fb9a=_0x5e33de['getItems']()['filter'](_0xd242f9=>_0xd242f9['is']('$textProxy'))['map'](_0x59cbdf=>_0x59cbdf['data']);if(_0x56fb9a['length'])return{'type':'insertion','content':c(_0x1ddd37,'*Insert:*\x20%0',c(_0x1ddd37,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x56fb9a['join']('\x20')+'\x22'))};}if('deletion'==_0x5e33de['type']){const _0x11c1f1=_0x5e33de['getItems']()['filter'](_0x115077=>_0x115077['is']('$textProxy'))['map'](_0x5e577c=>_0x5e577c['data']);if(_0x11c1f1['length'])return{'type':'deletion','content':c(_0x1ddd37,'*Remove:*\x20%0',c(_0x1ddd37,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x11c1f1['join']('\x20')+'\x22'))};}}}),_0x4c7590['descriptionFactory']['registerDescriptionCallback'](_0x32e32a=>{if('tableRow'==_0x32e32a['subType']){const _0x6afa53=_0x32e32a['getItems']()['filter'](_0x2b60de=>_0x2b60de['is']('$textProxy'))['map'](_0x1b5c71=>_0x1b5c71['data']),_0x33c35f=this['_getSuggestionCoords'](_0x32e32a),_0x41ee93=_0x33c35f['maxRow']-_0x33c35f['minRow']+0x1;if('insertion'==_0x32e32a['type'])return _0x6afa53['length']?{'type':'insertion','content':c(_0x1ddd37,'*Insert:*\x20%0',c(_0x1ddd37,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x41ee93,'\x22'+_0x6afa53['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1ddd37,'*Insert:*\x20%0',c(_0x1ddd37,'ELEMENT_TABLE_ROW',_0x41ee93))};if('deletion'==_0x32e32a['type'])return _0x6afa53['length']?{'type':'deletion','content':c(_0x1ddd37,'*Remove:*\x20%0',c(_0x1ddd37,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x41ee93,'\x22'+_0x6afa53['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1ddd37,'*Remove:*\x20%0',c(_0x1ddd37,'ELEMENT_TABLE_ROW',_0x41ee93))};}if('tableColumn'==_0x32e32a['subType']){const _0x25ee6e=_0x32e32a['getItems']()['filter'](_0x19e31a=>_0x19e31a['is']('$textProxy'))['map'](_0x21a137=>_0x21a137['data']),_0x306e03=this['_getSuggestionCoords'](_0x32e32a),_0x25969c=_0x306e03['maxColumn']-_0x306e03['minColumn']+0x1;if('insertion'==_0x32e32a['type'])return _0x25ee6e['length']?{'type':'insertion','content':c(_0x1ddd37,'*Insert:*\x20%0',c(_0x1ddd37,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x25969c,'\x22'+_0x25ee6e['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1ddd37,'*Insert:*\x20%0',c(_0x1ddd37,'ELEMENT_TABLE_COLUMN',_0x25969c))};if('deletion'==_0x32e32a['type'])return _0x25ee6e['length']?{'type':'deletion','content':c(_0x1ddd37,'*Remove:*\x20%0',c(_0x1ddd37,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x25969c,'\x22'+_0x25ee6e['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1ddd37,'*Remove:*\x20%0',c(_0x1ddd37,'ELEMENT_TABLE_COLUMN',_0x25969c))};}}),_0x4c7590['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x497848),_0x4c7590['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x497848),_0x4c7590['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x25ca4d),_0x4c7590['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x25ca4d),_0x4c7590['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2a6c48),_0x4c7590['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2a6c48),_0x4c7590['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x19491d),_0x4c7590['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x19491d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x307fda=this['editor'],_0x3c572e=_0x307fda['model']['document']['selection'];return(_0x28d984,_0x3995d4)=>{_0x307fda['model']['change'](_0x2fc250=>{const {commandName:_0x4c645a,commandParams:_0x5435d9}=_0x3995d4;let _0x44d452=_0x28d984[0x0]['end']['nodeBefore'];_0x5435d9&&_0x5435d9[0x0]&&!0x1===_0x5435d9[0x0]['forceValue']&&(_0x44d452=_0x28d984[0x0]['start']['nodeAfter']);const _0x4499f2=_0x2fc250['createRangeIn'](_0x44d452);if('$graveyard'==_0x4499f2['root']['rootName'])return;const _0x590214=Array['from'](_0x3c572e['getRanges']())['map'](_0x5e3112=>_0x1f6f9b['fromRange'](_0x5e3112));_0x2fc250['setSelection'](_0x4499f2),_0x307fda['commands']['get'](_0x4c645a)['refresh'](),_0x5435d9['push']({'forceDefaultExecution':!0x0}),_0x307fda['execute'](_0x4c645a,..._0x5435d9);const _0x5f5031=_0x590214['filter'](_0x479466=>'$graveyard'!=_0x479466['root']['rootName']);_0x5f5031['length']>0x0&&_0x2fc250['setSelection'](_0x5f5031);for(const _0x599146 of _0x590214)_0x599146['detach']();});};}['_getCoordsForCells'](_0x3d499e){const _0x2a88a0=this['editor']['plugins']['get']('TableUtils');let _0x263963=Number['MAX_SAFE_INTEGER'],_0x7daded=Number['MIN_SAFE_INTEGER'],_0x86199e=Number['MAX_SAFE_INTEGER'],_0x5f4d4b=Number['MIN_SAFE_INTEGER'];for(const _0x2798bc of _0x3d499e){if('$graveyard'==_0x2798bc['root']['rootName'])continue;const {row:_0xf5dd57,column:_0x5d12}=_0x2a88a0['getCellLocation'](_0x2798bc),_0x18bbaf=_0x2798bc['hasAttribute']('rowspan')?_0x2798bc['getAttribute']('rowspan')-0x1:0x0,_0x559c40=_0x2798bc['hasAttribute']('colspan')?_0x2798bc['getAttribute']('colspan')-0x1:0x0;_0x263963=_0xf5dd57<_0x263963?_0xf5dd57:_0x263963,_0x7daded=_0xf5dd57+_0x18bbaf>_0x7daded?_0xf5dd57+_0x18bbaf:_0x7daded,_0x86199e=_0x5d12<_0x86199e?_0x5d12:_0x86199e,_0x5f4d4b=_0x5d12+_0x559c40>_0x5f4d4b?_0x5d12+_0x559c40:_0x5f4d4b;}return{'minRow':_0x263963,'maxRow':_0x7daded,'minColumn':_0x86199e,'maxColumn':_0x5f4d4b};}['_setupColumnsRowsFixing'](){const _0x2ebd45=this['editor'],_0x5f0c37=_0x2ebd45['plugins']['get']('TrackChangesEditing'),_0x5e17e9=_0x2ebd45['plugins']['get']('TableUtils');_0x2ebd45['model']['document']['on']('change:data',()=>{const _0x31a5bc=Array['from'](_0x2ebd45['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x11ee7f,data:_0x1342a6}of _0x31a5bc){const {group:_0x59d1eb,id:_0xd2aa88,subType:_0x347515}=_0x5f0c37['_splitMarkerName'](_0x11ee7f);if('suggestion'!=_0x59d1eb)continue;if(null!=_0x1342a6['oldRange'])continue;const _0x5b3d44=_0x5f0c37['getSuggestion'](_0xd2aa88);this['_tablePostFixingSubtypes']['includes'](_0x347515)&&this['_tableSuggestions']['add'](_0x5b3d44);}},{'priority':'low'});const _0x407854=(_0x151255,_0xa5615f)=>{let _0x1c6389=!0x1;const _0x3cbdea=_0xa5615f['createRangeOn'](_0x151255),_0x12177a=_0x151255['findAncestor']('table'),_0x26a49c=_0x5e17e9['getCellLocation'](_0x151255);for(const _0x2eb2af of this['_tableSuggestions']){const _0x1f5c26=_0x2eb2af['subType'],_0x50907d=_0x1f5c26['startsWith']('tablePaste'),_0x5ef3e0=_0x1f5c26['substr'](_0x50907d?0xa:0x5),_0x52222a=_0x5ef3e0['toLowerCase'](),_0x5e704b=_0x52222a['substr'](0x0,0x3)+'span',_0x28ffef='min'+_0x5ef3e0,_0x473f5b='max'+_0x5ef3e0;if(!_0x2eb2af['isInContent'])continue;if(_0x12177a!=_0x2eb2af['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2eb2af['isIntersectingWithRange'](_0x3cbdea))continue;const _0x1848fe=_0x151255['hasAttribute'](_0x5e704b)?_0x151255['getAttribute'](_0x5e704b)-0x1:0x0,_0x48f768=this['_getSuggestionCoords'](_0x2eb2af),_0x51ddef=_0x48f768[_0x28ffef],_0x5a9498=_0x48f768[_0x473f5b];_0x51ddef<=_0x26a49c[_0x52222a]&&_0x26a49c[_0x52222a]+_0x1848fe<=_0x5a9498&&(_0x2eb2af['addRange'](_0x3cbdea),_0x1c6389=!0x0);}return _0x1c6389;};_0x2ebd45['model']['document']['registerPostFixer'](_0x35de4f=>{let _0xc55a0f=!0x1;for(const _0x8bb46c of _0x2ebd45['model']['document']['differ']['getChanges']())if('insert'==_0x8bb46c['type']){if('tableRow'==_0x8bb46c['name']){for(const _0x1e674c of _0x8bb46c['position']['nodeAfter']['getChildren']())_0xc55a0f=_0xc55a0f||_0x407854(_0x1e674c,_0x35de4f);}else'tableCell'==_0x8bb46c['name']&&(_0xc55a0f=_0xc55a0f||_0x407854(_0x8bb46c['position']['nodeAfter'],_0x35de4f));}return _0xc55a0f;});}['_getSuggestionCoords'](_0x2686ce){return this['_getCoordsForCells'](_0x2686ce['getRanges']()['map'](_0x164310=>_0x164310['start']['nodeAfter']));}}function xe(_0x3445ed){return Array['from'](new Set(_0x3445ed)['values']());}class Nt extends _0x3b7b17{static get['requires'](){return[Ct];}['afterInit'](){const _0x452565=this['editor'],_0x533747=_0x452565['model']['document']['selection'],_0x4637d6=_0x452565['locale'];if(!_0x452565['plugins']['has']('TableEditing'))return;const _0x7e4e0c=_0x452565['plugins']['get']('TrackChangesEditing'),_0x5aea4e=_0x452565['plugins']['get']('TableUtils'),_0x18180f=_0x452565['plugins']['get'](Ct);_0x18180f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x7e4e0c['enableCommand']('mergeTableCells',()=>{const _0x15a5f9=_0x5aea4e['getSelectionAffectedTableCells'](_0x452565['model']['document']['selection']);_0x452565['model']['change'](()=>{_0x7e4e0c['markMultiRangeBlockFormat'](_0x15a5f9,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x452565['commands']['get']('mergeTableCells')['on']('execute',(_0x3f9739,_0x167e9a)=>{_0x452565['commands']['get']('trackChanges')['value']&&(_0x167e9a['length']>0x0&&_0x167e9a[_0x167e9a['length']-0x1]&&_0x167e9a[_0x167e9a['length']-0x1]['forceDefaultExecution']||_0x7e4e0c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3f9739['stop']());},{'priority':'highest'});for(const _0x5b6b41 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x56d23f=_0x452565['commands']['get'](_0x5b6b41);_0x7e4e0c['enableCommand'](_0x5b6b41,()=>{const _0x4cb871=_0x452565['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2fd2c0=>_0x2fd2c0['is']('element','tableCell')),_0x360b4a=_0x56d23f['value'];_0x452565['model']['change'](()=>{_0x7e4e0c['markMultiRangeBlockFormat']([_0x4cb871,_0x360b4a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5a653c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x447f0b=_0x452565['commands']['get'](_0x5a653c);_0x7e4e0c['enableCommand'](_0x5a653c,()=>{const _0x341e39=_0x5aea4e['getSelectionAffectedTableCells'](_0x452565['model']['document']['selection'])[0x0],_0x43b492=_0x341e39['findAncestor']('table'),{column:_0xb596c2,row:_0x7314d9}=_0x5aea4e['getCellLocation'](_0x341e39);let _0x58afa2=[];if('horizontally'==_0x447f0b['direction']){const _0x4b582c=_0x5aea4e['createTableWalker'](_0x43b492,{'startRow':_0x7314d9,'endRow':_0x7314d9,'includeAllSlots':!0x0});_0x58afa2=Array['from'](_0x4b582c)['map'](_0x4a960b=>_0x4a960b['cell']);}else{const _0x29495a=_0x5aea4e['createTableWalker'](_0x43b492,{'column':_0xb596c2,'includeAllSlots':!0x0});_0x58afa2=Array['from'](_0x29495a)['map'](_0x13774a=>_0x13774a['cell']);}_0x452565['model']['change'](_0x305355=>{_0x7e4e0c['markBlockFormat'](_0x305355['createRangeOn'](_0x341e39),{'commandName':_0x5a653c,'commandParams':[]},_0x58afa2,_0x5a653c);});});}_0x7e4e0c['descriptionFactory']['registerDescriptionCallback'](_0x3c7dc7=>{if('formatBlock'!=_0x3c7dc7['type']&&'formatInline'!=_0x3c7dc7['type'])return;const {data:_0x33c0f8}=_0x3c7dc7;return _0x33c0f8&&'mergeTableCells'==_0x33c0f8['commandName']?{'type':'format','content':c(_0x4637d6,'*Merge\x20cells*')}:void 0x0;}),_0x7e4e0c['descriptionFactory']['registerDescriptionCallback'](_0x2003d4=>{if('formatBlock'!=_0x2003d4['type']&&'formatInline'!=_0x2003d4['type'])return;const {data:_0x5d189b}=_0x2003d4;return _0x5d189b?'splitTableCellVertically'==_0x5d189b['commandName']?{'type':'format','content':c(_0x4637d6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5d189b['commandName']?{'type':'format','content':c(_0x4637d6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x392010=_0x18180f['_acceptFormatSuggestionCallbackFactory']();for(const _0x1a14ae of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x7e4e0c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1a14ae,'accept',_0x392010);for(const _0x5321c2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x7e4e0c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5321c2,'accept',_0x392010);_0x7e4e0c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4f1d58=>{_0x452565['model']['change'](_0x142ea3=>{const _0x103a11=Array['from'](_0x533747['getRanges']())['map'](_0x511e0c=>_0x1f6f9b['fromRange'](_0x511e0c));_0x142ea3['setSelection'](_0x4f1d58),_0x452565['commands']['get']('mergeTableCells')['refresh'](),_0x452565['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x421b19=_0x103a11['filter'](_0x6c0eef=>'$graveyard'!=_0x6c0eef['root']['rootName']);_0x421b19['length']>0x0&&_0x142ea3['setSelection'](_0x421b19);for(const _0x532b07 of _0x103a11)_0x532b07['detach']();});});for(const _0x518946 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3c3b9f=_0x452565['commands']['get'](_0x518946);_0x3c3b9f['on']('set:isEnabled',(_0x1358d4,_0x38298a,_0x446c78)=>{if(_0x446c78){const _0x1a5479=_0x452565['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x7cd152=>_0x7cd152['is']('element','tableCell'));this['_areMergableCells'](_0x3c3b9f['value'],_0x1a5479)||(_0x1358d4['return']=!0x1,_0x1358d4['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3ec28e=this['editor']['commands']['get']('mergeTableCells'),_0x1ec82e=this['editor']['plugins']['get']('TableUtils');if(!_0x3ec28e['isEnabled'])return!0x1;const _0x349d36=_0x1ec82e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x34fe46 of _0x349d36)for(const _0x1c7073 of _0x349d36)if(_0x34fe46!=_0x1c7073&&!this['_areMergableCells'](_0x34fe46,_0x1c7073))return!0x1;return!0x0;}['_areMergableCells'](_0x27982a,_0x448d49){const _0x288cbb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x201edc=this['editor']['model']['createRangeOn'](_0x27982a),_0x4674ed=this['editor']['model']['createRangeOn'](_0x448d49),_0x4e5992=new Set(),_0x3d4cbe=new Set();for(const _0x5f2964 of _0x288cbb['getSuggestions']())if(('insertion'==_0x5f2964['type']||'deletion'==_0x5f2964['type']||'mergeTableCells'==_0x5f2964['subType'])&&_0x5f2964['isInContent']){for(const _0x4f79f5 of _0x5f2964['getRanges']())_0x4f79f5['containsRange'](_0x201edc,!0x0)&&_0x4e5992['add'](_0x5f2964['type']+':'+_0x5f2964['author']['id']),_0x4f79f5['containsRange'](_0x4674ed,!0x0)&&_0x3d4cbe['add'](_0x5f2964['type']+':'+_0x5f2964['author']['id']);}if(_0x4e5992['size']!=_0x3d4cbe['size'])return!0x1;for(const _0x43abf2 of _0x4e5992)if(!_0x3d4cbe['has'](_0x43abf2))return!0x1;return!0x0;}}class Dt extends _0x3b7b17{static get['requires'](){return[Ct];}['afterInit'](){const _0x564508=this['editor'];if(!_0x564508['plugins']['has']('TableEditing'))return;const _0x3952da=_0x564508['locale'],_0x404e34=_0x564508['plugins']['get']('TrackChangesEditing');_0x404e34['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x404e34['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x404e34['registerBlockAttribute']('headingRows'),_0x404e34['registerBlockAttribute']('headingColumns'),_0x404e34['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x3952da,'FORMAT_HEADER_ROW')),_0x404e34['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x3952da,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x515d94=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e9c89=this['editor']['plugins']['get']('TableUtils'),_0x197f2c=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3ed96e({showActiveMarker:_0x353d26=!0x0,setDataAttribute:_0x484e7a=!0x0}={}){return(_0x225254,_0x208183,_0x4f2e3b)=>{const {type:_0x5332cd,id:_0x4b4738}=_0x515d94['_splitMarkerName'](_0x208183['markerName']),_0x5c6938=_0x515d94['getSuggestion'](_0x4b4738),_0xd8813d=_0x5c6938['data'];if('formatBlock'!=_0x5c6938['type']||!_0xd8813d||'setTableColumnHeader'!=_0xd8813d['commandName'])return;if(_0x208183['item'])return void _0x225254['stop']();if(!_0x4f2e3b['consumable']['consume'](_0x208183['markerRange'],_0x225254['name']))return;const _0x3959a1=_0x208183['markerRange']['start']['nodeAfter'],_0x341d2c=_0x208183['markerRange']['end']['nodeBefore'],_0x578424=_0x3959a1['parent']['parent'],{column:_0x1d6533}=_0x3e9c89['getCellLocation'](_0x3959a1),{column:_0x5e5928}=_0x3e9c89['getCellLocation'](_0x341d2c);for(let _0x4a84bc=_0x1d6533;_0x4a84bc<=_0x5e5928;_0x4a84bc++){const _0x70a0e7=_0x3e9c89['createTableWalker'](_0x578424,{'column':_0x4a84bc,'includeAllSlots':!0x1});for(const _0x3d9514 of _0x70a0e7){const _0x146c8c=_0x3d9514['cell'],_0x4c4add=_0x4f2e3b['mapper']['toViewElement'](_0x146c8c);_0x4f2e3b['writer']['addClass']('ck-suggestion-marker-'+_0x5332cd,_0x4c4add),_0x484e7a&&_0x4f2e3b['writer']['setAttribute']('data-suggestion',_0x4b4738,_0x4c4add),_0x4f2e3b['mapper']['bindElementToMarker'](_0x4c4add,_0x208183['markerName']),_0x353d26&&(_0x515d94['activeMarkers']['includes'](_0x208183['markerName'])?_0x4f2e3b['writer']['addClass']('ck-suggestion-marker--active',_0x4c4add):_0x4f2e3b['writer']['removeClass']('ck-suggestion-marker--active',_0x4c4add));}}};}_0x515d94['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x197f2c),_0x515d94['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x197f2c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3ed96e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x21805f,_0x110d30,_0x5ea73a)=>{_0x5ea73a['options']['showSuggestionHighlights']&&_0x3ed96e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x21805f,_0x110d30,_0x5ea73a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x28fa4e,_0x4066d8,_0x2a5f00)=>{const {type:_0xb946d1,id:_0x5696f1}=_0x515d94['_splitMarkerName'](_0x4066d8['markerName']),_0x468b5b=_0x515d94['getSuggestion'](_0x5696f1),_0x541260=_0x468b5b['data'];if('formatBlock'!=_0x468b5b['type']||!_0x541260||'setTableColumnHeader'!=_0x541260['commandName'])return;const _0x2c9720=_0x2a5f00['mapper']['markerNameToElements'](_0x4066d8['markerName']);if(_0x2c9720){for(const _0xdcc36e of _0x2c9720)_0x2a5f00['writer']['removeClass']('ck-suggestion-marker-'+_0xb946d1,_0xdcc36e),_0x2a5f00['writer']['removeClass']('ck-suggestion-marker--active',_0xdcc36e),_0x2a5f00['writer']['removeAttribute']('data-suggestion',_0xdcc36e),_0x2a5f00['mapper']['unbindElementFromMarkerName'](_0xdcc36e,_0x4066d8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4be198=this['editor'],_0x12a3ed=_0x4be198['locale'];function _0x505685(_0x1698d2){return{'type':'format','content':c(_0x12a3ed,'*Format:*\x20%0',_0x1698d2)};}_0x4be198['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bb748=>{if('formatBlock'!=_0x3bb748['type'])return;const {data:_0x26ab82}=_0x3bb748;if(_0x26ab82){if('setTableRowHeader'==_0x26ab82['commandName']){const _0x2f5751=_0x26ab82['commandParams'][0x0]['forceValue'];return _0x505685(c(_0x12a3ed,_0x2f5751?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x26ab82['commandName']){const _0x41bdee=_0x26ab82['commandParams'][0x0]['forceValue'];return _0x505685(c(_0x12a3ed,_0x41bdee?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x3b7b17{['afterInit'](){const _0x250351=this['editor'],_0x1ed055=_0x250351['locale'],_0xdb5b15=_0x250351['plugins']['get']('TrackChangesEditing');function _0x5765c8(_0x522218){return{'type':'format','content':''+c(_0x1ed055,'*Set\x20table\x20type:*\x20%0',_0x522218)};}_0x250351['plugins']['has']('TableLayout')&&(_0xdb5b15['enableCommand']('insertTableLayout'),_0xdb5b15['enableDefaultAttributesIntegration']('tableType'),_0xdb5b15['registerBlockAttribute']('tableType'),_0xdb5b15['descriptionFactory']['registerElementLabel'](_0xbdd2de=>_0xbdd2de['is']('element','table')&&'layout'===_0xbdd2de['getAttribute']('tableType'),_0x266c71=>c(_0x1ed055,'ELEMENT_LAYOUT_TABLE',_0x266c71)),_0xdb5b15['descriptionFactory']['registerDescriptionCallback'](_0x388512=>{const {data:_0x1c8930}=_0x388512;if(_0x1c8930&&'tableType'==_0x1c8930['key'])switch(_0x1c8930['newValue']){case'layout':return _0x5765c8(c(_0x1ed055,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5765c8(c(_0x1ed055,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x1bc9ab=>[_0x1bc9ab,null]));class $t extends _0x3b7b17{static get['requires'](){return[Ct];}['afterInit'](){const _0x4734c9=this['editor'];if(!_0x4734c9['plugins']['has']('TableClipboard'))return;const _0x1056be=_0x4734c9['plugins']['get']('TrackChangesEditing'),_0x53abfa=_0x4734c9['plugins']['get']('TableUtils'),_0x5a1acf=_0x4734c9['plugins']['get'](Ct),_0x481f7a=_0x4734c9['plugins']['get']('TableClipboard'),_0x5cba52=_0x4734c9['plugins']['get']('TableSelection'),_0x548f6d=_0x4734c9['plugins']['get'](_0x1ab1df);_0x5a1acf['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4734c9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4734c9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2ad1bf=null,_0x2b9efa=!0x1;_0x548f6d['on']('contentInsertion',(_0x129817,_0x13dc45)=>{_0x2b9efa='paste'===_0x13dc45['method'];}),_0x4734c9['model']['on']('insertContent',(_0x23d4c2,_0x1d3978)=>{if(!_0x2b9efa&&null===_0x5cba52['getSelectedTableCells']())return;const [_0x13fcc2,_0x170efc]=_0x1d3978,_0x369085=_0x1d3978[_0x1d3978['length']-0x1];_0x369085&&_0x369085['forceDefaultExecution']||_0x1056be['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3d2a84,_0xe4fb2,_0x4787fc,_0x568a40,_0x13a831){if(_0xe4fb2&&!_0xe4fb2['is']('documentSelection'))return!0x1;const _0x422f83=_0x13a831['getTableIfOnlyTableInContent'](_0x3d2a84,_0x4787fc);if(!_0x422f83||!He(_0x422f83,void 0x0,_0x568a40))return!0x1;const _0x150e92=_0x568a40['getSelectionAffectedTableCells'](_0x4787fc['document']['selection']);if(!_0x150e92['length'])return!0x1;const _0x5f8622=_0x150e92[0x0]['findAncestor']('table'),_0x277ea7=_0x568a40['getRowIndexes'](_0x150e92),_0x1ac1ba=_0x568a40['getColumnIndexes'](_0x150e92),_0x57248f={'startRow':_0x277ea7['first'],'endRow':_0x277ea7['last'],'startColumn':_0x1ac1ba['first'],'endColumn':_0x1ac1ba['last']};return 0x1==_0x150e92['length']&&(_0x57248f['endRow']+=_0x568a40['getRows'](_0x422f83)-0x1,_0x57248f['endColumn']+=_0x568a40['getColumns'](_0x422f83)-0x1),He(_0x5f8622,_0x57248f,_0x568a40);}(_0x13fcc2,_0x170efc,_0x4734c9['model'],_0x53abfa,_0x481f7a)&&(_0x23d4c2['stop'](),_0x2ad1bf={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4734c9['model']['change'](()=>{_0x4734c9['model']['insertContent'](_0x1d3978[0x0],_0x1d3978[0x1],_0x1d3978[0x2],{'forceDefaultExecution':!0x0});const _0x316c8d=_0x145d91(),{rowInsertionRanges:_0x5bd0d9,columnInsertionRanges:_0x5bcf46,insertionRanges:_0x3c4018,deletionRanges:_0x8a81ed,cells:_0x4b741f}=_0x2ad1bf;_0x5bd0d9['length']&&_0x1056be['markMultiRangeInsertion'](_0x5bd0d9,'tablePasteRow',{'tablePasteChainId':_0x316c8d}),_0x5bcf46['length']&&_0x1056be['markMultiRangeInsertion'](_0x5bcf46,'tablePasteColumn',{'tablePasteChainId':_0x316c8d}),_0x3c4018['length']&&(_0x1056be['markMultiRangeInsertion'](_0x3c4018,'tablePaste',{'tablePasteChainId':_0x316c8d,'skipNestingCheck':!0x0}),_0x3c4018['forEach'](_0x462566=>_0x462566['detach']?.())),_0x8a81ed['length']&&(_0x1056be['markMultiRangeDeletion'](_0x8a81ed,'tablePaste',{'tablePasteChainId':_0x316c8d,'skipNestingCheck':!0x0}),_0x8a81ed['forEach'](_0x2a131f=>_0x2a131f['detach']?.()));const _0x5db4a1=_0x1056be['markMultiRangeBlockFormat'](_0x4b741f['map'](({element:_0x148d48})=>_0x148d48),{'formatGroupId':_0x145d91()},[],'tablePasteCell',{'tablePasteChainId':_0x316c8d});if(_0x5db4a1){const _0x5c45ce=_0x5db4a1['getMarkers'](),_0x2517b5=[];for(const {element:_0x418d84,attributes:_0x3f82e8}of _0x4b741f){if(!_0x3f82e8)continue;const _0x34b1f4=_0x4734c9['model']['createRangeOn'](_0x418d84),_0x2f3ff5=_0x5c45ce['find'](_0x2945e1=>_0x2945e1['getRange']()['isEqual'](_0x34b1f4));_0x2f3ff5&&_0x2517b5['push']([_0x2f3ff5['name'],_0x3f82e8]);}_0x2517b5['length']&&_0x5db4a1['setAttribute']('markerAttributes',Object['fromEntries'](_0x2517b5));}_0x2ad1bf=null;}));},{'priority':_0x2a48aa['high']+0xa}),_0x548f6d['on']('contentInsertion',()=>{_0x2b9efa=!0x1;},{'priority':'lowest'}),_0x4734c9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x42be9a,_0x793856)=>{const [_0x47e8bf,_0x126552,,_0x3e3676]=_0x793856;if(!_0x2ad1bf)return;_0x42be9a['stop']();const _0x43f570=_0x47e8bf['cell'],_0x5d7f66=_0x126552,_0x2b14a1=De(_0x43f570),_0x3e92af=De(_0x5d7f66);_0x42be9a['return']=_0x43f570;let _0xc4e9e4=null,_0x4cfd8b=null;if(_0x3e92af||_0x2b14a1){if(_0x2b14a1&&!_0x3e92af){_0x3e3676['remove'](_0x43f570['getChild'](0x0));for(const _0x129960 of Array['from'](_0x5d7f66['getChildren']()))_0x3e3676['insert'](_0x129960,_0x43f570,'end');const _0x2b41f5=_0x2ad1bf['rowInsertionIndexes']['includes'](_0x47e8bf['row']),_0x34bd15=_0x2ad1bf['columnInsertionIndexes']['includes'](_0x47e8bf['column']);_0x2b41f5||_0x34bd15||(_0xc4e9e4=_0x1f6f9b['fromRange'](_0x3e3676['createRangeIn'](_0x43f570)));}else _0x3e92af&&!_0x2b14a1&&(_0x4cfd8b=_0x3e3676['createRangeIn'](_0x43f570));}else{const _0x57eff5=_0x3e3676['createElement']('tableCellSuggestion'),_0x355804=_0x3e3676['createElement']('tableCellSuggestion');_0x3e3676['wrap'](_0x3e3676['createRangeIn'](_0x43f570),_0x355804),_0x3e3676['insert'](_0x57eff5,_0x43f570,0x0);for(const _0x3fc6de of Array['from'](_0x5d7f66['getChildren']()))_0x3e3676['insert'](_0x3fc6de,_0x57eff5,'end');_0xc4e9e4=_0x1f6f9b['fromRange'](_0x3e3676['createRangeOn'](_0x57eff5)),_0x4cfd8b=_0x1f6f9b['fromRange'](_0x3e3676['createRangeOn'](_0x355804));}const _0x2954d0=Array['from'](_0x5d7f66['getAttributes']())['filter'](([_0xe4c445])=>Oe['includes'](_0xe4c445));_0x2ad1bf['cells']['push']({'element':_0x43f570,'attributes':_0x2954d0['length']?Object['fromEntries'](_0x2954d0):null}),_0xc4e9e4&&_0x2ad1bf['insertionRanges']['push'](_0xc4e9e4),_0x4cfd8b&&_0x2ad1bf['deletionRanges']['push'](_0x4cfd8b);},{'priority':'high'}),_0x53abfa['on']('insertColumns',(_0x4e767d,_0x528116)=>{const [_0x1058a0,_0x191559={}]=_0x528116;if(!_0x2ad1bf)return;const _0x313820=_0x191559['at']||0x0,_0x3e8f11=_0x191559['columns']||0x1;_0x2ad1bf['columnInsertionIndexes']=new Array(_0x3e8f11)['fill'](_0x313820)['map']((_0x1f0455,_0x5ab48a)=>_0x1f0455+_0x5ab48a);for(const {cell:_0x39b8d1}of _0x53abfa['createTableWalker'](_0x1058a0,{'startColumn':_0x313820,'endColumn':_0x313820+_0x3e8f11-0x1}))_0x2ad1bf['columnInsertionRanges']['push'](_0x4734c9['model']['createRangeOn'](_0x39b8d1));},{'priority':'low'}),_0x53abfa['on']('insertRows',(_0x2d6c91,_0x5d3c57)=>{const [_0x3a9cbe,_0x578770={}]=_0x5d3c57;if(!_0x2ad1bf)return;const _0x599a5e=_0x578770['at']||0x0,_0x3f5880=_0x578770['rows']||0x1;_0x2ad1bf['rowInsertionIndexes']=new Array(_0x3f5880)['fill'](_0x599a5e)['map']((_0x5e6b97,_0x5bba54)=>_0x5e6b97+_0x5bba54);for(const {cell:_0x3eef10}of _0x53abfa['createTableWalker'](_0x3a9cbe,{'startRow':_0x599a5e,'endRow':_0x599a5e+_0x3f5880-0x1}))_0x2ad1bf['rowInsertionRanges']['push'](_0x4734c9['model']['createRangeOn'](_0x3eef10));},{'priority':'low'}),_0x1056be['descriptionFactory']['registerDescriptionCallback'](_0x5d7eec=>{if(_0x5d7eec['subType']&&_0x5d7eec['subType']['startsWith']('tablePaste'))return _0x5d7eec['previous']?{}:{'type':'insertion','content':c(_0x4734c9['locale'],'*Replace\x20table\x20cells*')};});const _0xca299=()=>!0x1;for(const _0x5ce3a0 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1056be['_suggestionFactory']['registerCustomCallback']('insertion',_0x5ce3a0,'join',_0xca299),_0x1056be['_suggestionFactory']['registerCustomCallback']('deletion',_0x5ce3a0,'join',_0xca299),_0x1056be['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ce3a0,'join',_0xca299);_0x1056be['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xca299),_0x1056be['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4f4007,_0x406c5b,_0x5c6495)=>{const _0x42a37e=_0x4f4007['map'](_0x57bef0=>_0x57bef0['getContainedElement']())['filter'](_0x551902=>_0x551902),_0x1cefd9=new Map(_0x42a37e['map'](_0xc1cc1d=>[_0xc1cc1d,null]));if(_0x2ad1bf){for(const {element:_0x480e67,attributes:_0x3b31ef}of _0x2ad1bf['cells'])_0x3b31ef&&_0x1cefd9['set'](_0x480e67,_0x3b31ef);}else{if(_0x5c6495&&_0x5c6495['markerAttributes'])for(const [_0x2d6a22,_0x4e70cf]of Object['entries'](_0x5c6495['markerAttributes'])){const _0x46de36=_0x4734c9['model']['markers']['get'](_0x2d6a22),_0x7d5e15=_0x46de36?_0x46de36['getRange']()['getContainedElement']():null;_0x7d5e15&&_0x1cefd9['set'](_0x7d5e15,_0x4e70cf);}}_0x4734c9['model']['change'](_0x3b199e=>{for(const [_0x236779,_0x15ad0e]of _0x1cefd9)_0x3b199e['setAttributes']({...Ue,..._0x15ad0e},_0x236779);});});const _0x4ddfcf=(_0x1a3337,_0x4cafce)=>{_0x1056be['_suggestionFactory']['registerCustomCallback'](_0x1a3337,'tablePaste',_0x4cafce,(_0x2fce58,_0x164b50,_0x49208e)=>{_0x4734c9['model']['change'](_0x4b3891=>{const _0x345134=[];for(const _0x57be52 of _0x2fce58){const _0x29fc37=_0x57be52['start']['nodeAfter'];_0x29fc37['is']('element','tableCellSuggestion')&&_0x345134['push'](_0x29fc37);}_0x1056be['_suggestionFactory']['getSuggestionCallback'](_0x1a3337,null,_0x4cafce)(_0x2fce58,_0x164b50,_0x49208e);for(const _0x44eaef of _0x345134)'$graveyard'!=_0x44eaef['root']['rootName']&&_0x4b3891['unwrap'](_0x44eaef);});});};_0x4ddfcf('insertion','accept'),_0x4ddfcf('insertion','discard'),_0x4ddfcf('deletion','accept'),_0x4ddfcf('deletion','discard'),_0x1056be['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x468b46=>{const _0x24a9f2=_0x468b46['map'](_0x3255e7=>_0x3255e7['getContainedElement']()),_0x44691e=_0x24a9f2[0x0]['findAncestor']('table'),{minRow:_0x3b7a91,maxRow:_0x8ca375}=_0x5a1acf['_getCoordsForCells'](_0x24a9f2);_0x53abfa['removeRows'](_0x44691e,{'at':_0x3b7a91,'rows':_0x8ca375-_0x3b7a91+0x1});}),_0x1056be['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3e5d1d=>{const _0x571dc3=_0x3e5d1d['map'](_0x411a85=>_0x411a85['getContainedElement']()),_0x49b600=_0x571dc3[0x0]['findAncestor']('table'),{minColumn:_0xe69a2b,maxColumn:_0x5f5b6f}=_0x5a1acf['_getCoordsForCells'](_0x571dc3);_0x53abfa['removeColumns'](_0x49b600,{'at':_0xe69a2b,'columns':_0x5f5b6f-_0xe69a2b+0x1});});const _0x890046=(_0x7dc271,_0x36a249)=>{if(!_0x36a249['subType']||!_0x36a249['subType']['startsWith']('tablePaste'))return;const _0x37a503=_0x36a249['attributes']['tablePasteChainId'],_0x3f9f31=_0x1056be['getSuggestions']()['filter'](_0x112c80=>_0x112c80['isInContent']&&_0x112c80['attributes']&&_0x112c80['attributes']['tablePasteChainId']==_0x37a503);_0x3f9f31['length']&&_0x36a249['getAllAdjacentSuggestions']()['length']!=_0x3f9f31['length']&&_0x3f9f31['reduce']((_0x348bde,_0x351e09)=>(_0x348bde['next']=_0x351e09,_0x351e09['previous']=_0x348bde,_0x351e09));};function _0x26bece(_0x38625c,_0x4e0260=!0x0){const {id:_0x154a48,authorId:_0x4e817c}=_0x1056be['_splitMarkerName'](_0x38625c['markerName']),_0x3e6a24=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x43ece0=_0x1056be['activeMarkers']['includes'](_0x38625c['markerName']);return _0x43ece0&&_0x3e6a24['push']('ck-suggestion-marker--active'),{'classes':_0x3e6a24,'attributes':{'data-suggestion':_0x154a48,'data-author-id':_0x4e817c},'priority':_0x43ece0&&_0x4e0260?0xbc2:0xbb8};}_0x1056be['on']('suggestionLoaded',_0x890046,{'priority':'high'}),_0x1056be['on']('suggestionUnloaded',_0x890046,{'priority':'high'}),_0x4734c9['model']['document']['registerPostFixer'](()=>{let _0x3c2661=!0x1;const _0x270ff3=Array['from'](_0x4734c9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x41305b,data:_0xd52d48}of _0x270ff3){const {group:_0x3e1060,type:_0x225653,id:_0x51b69e}=_0x1056be['_splitMarkerName'](_0x41305b);if('suggestion'!=_0x3e1060||'deletion'!=_0x225653||_0xd52d48['oldRange'])continue;if(!_0x1056be['hasSuggestion'](_0x51b69e))continue;const _0x5cba9f=_0x1056be['getSuggestion'](_0x51b69e)['getRanges'](),_0x2c821d=_0x4734c9['plugins']['get']('Users')['me'];for(const _0x2f451c of _0x1056be['getSuggestions']()){if(!_0x2f451c['isInContent']||_0x2f451c['author']!=_0x2c821d)continue;if('formatBlock'!=_0x2f451c['type']||'tablePasteCell'!=_0x2f451c['subType'])continue;if(_0x2f451c['getRanges']()['every'](_0x565da5=>_0x5cba9f['some'](_0x3f7dc6=>_0x3f7dc6['containsRange'](_0x565da5,!0x0)))){for(const _0x1c15f2 of _0x2f451c['getAllAdjacentSuggestions']())_0x1c15f2['isInContent']&&(_0x1c15f2['discard'](),_0x3c2661=!0x0);}}}return _0x3c2661;}),_0x4734c9['model']['document']['registerPostFixer'](_0x3b653c=>{const _0x1e587d=_0x4734c9['commands']['get']('redo');if(!_0x1e587d||!_0x1e587d['_createdBatches']['has'](_0x3b653c['batch']))return!0x1;let _0x59dd83=!0x1;const _0x2ac574=_0x4734c9['plugins']['get']('Users')['me'],_0x4eeb08=_0x4734c9['model']['document']['differ']['getChanges'](),_0x2a9e88=Array['from'](_0x4734c9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2a906d,data:_0x219017})=>{const {group:_0x5cbdf9,subType:_0x54e97d,authorId:_0x556a3d}=_0x1056be['_splitMarkerName'](_0x2a906d);return'suggestion'==_0x5cbdf9&&'tablePaste'==_0x54e97d&&_0x556a3d==_0x2ac574['id']&&!_0x219017['oldRange'];});for(const _0x358d3f of _0x4eeb08){if('insert'!=_0x358d3f['type']||'tableCellSuggestion'!=_0x358d3f['name']||0x1!=_0x358d3f['length'])continue;const _0x473de8=_0x3b653c['createRange'](_0x358d3f['position'],_0x358d3f['position']['getShiftedBy'](0x1));if(!_0x2a9e88['find'](({data:_0xeaf4b9})=>_0xeaf4b9['newRange']['isEqual'](_0x473de8))){for(const {name:_0x1c3102,data:_0x18ecd3}of _0x2a9e88)if(_0x473de8['containsRange'](_0x18ecd3['newRange'])){_0x3b653c['updateMarker'](_0x1c3102,{'range':_0x473de8}),_0x59dd83=!0x0;break;}}}return _0x59dd83;}),_0x4734c9['model']['document']['registerPostFixer'](_0x4bc63f=>{let _0x31a073=!0x1;const _0x4d2368=_0x4734c9['plugins']['get']('Users')['me'],_0x61bdea=_0x1056be['getSuggestions']()['filter'](_0x1b88c3=>_0x1b88c3['isInContent']&&_0x1b88c3['author']==_0x4d2368),_0x5245fd=new Set(),_0x57b00c=new Set();for(const _0x3f5478 of _0x61bdea)if('tablePaste'==_0x3f5478['subType'])for(const _0x6f5b41 of _0x3f5478['getMarkers']()){const _0x3a43ab=_0x6f5b41['getRange']()['getContainedElement']();if(_0x3a43ab){if(_0x3a43ab['is']('element','tableCellSuggestion')&&De(_0x3a43ab)){_0x3f5478['removeMarker'](_0x6f5b41['name']),_0x5245fd['add'](_0x3a43ab),_0x31a073=!0x0;const _0x1324ae=_0x3a43ab['nextSibling'],_0xae6b78=_0x3a43ab['previousSibling'],_0x49ff52=_0x1324ae&&_0x1324ae['is']('element','tableCellSuggestion'),_0x11c0ab=_0xae6b78&&_0xae6b78['is']('element','tableCellSuggestion');_0x49ff52&&!_0x5245fd['has'](_0x1324ae)&&_0x57b00c['add'](_0x1324ae),_0x11c0ab&&!_0x5245fd['has'](_0xae6b78)&&_0x57b00c['add'](_0xae6b78);}else _0x3a43ab['is']('element','paragraph')&&_0x3a43ab['isEmpty']&&(_0x3f5478['removeMarker'](_0x6f5b41['name']),_0x31a073=!0x0);}}else{if('tablePasteCell'==_0x3f5478['subType']){if(!_0x3f5478['attributes']||!_0x3f5478['attributes']['tablePasteChainId'])continue;const _0x397a88=_0x3f5478['attributes']['markerAttributes'];if(_0x397a88&&Object['keys'](_0x397a88)['length'])continue;const _0x10857e=_0x3f5478['attributes']['tablePasteChainId'];let _0x40b7db=!0x0,_0xdc66cb=!0x0;for(const _0x48e738 of _0x61bdea)if(_0x48e738['subType']&&_0x48e738['subType']['startsWith']('tablePaste')){if(!_0x48e738['attributes']['tablePasteChainId']){_0xdc66cb=!0x1;break;}if(_0x48e738['id']!=_0x3f5478['id']&&_0x48e738['attributes']['tablePasteChainId']==_0x10857e){_0x40b7db=!0x1;break;}}_0xdc66cb&&_0x40b7db&&(_0x3f5478['removeMarkers'](),_0x31a073=!0x0);}}for(const _0x5b1c91 of _0x5245fd)_0x4bc63f['remove'](_0x5b1c91);for(const _0x4c1ea9 of _0x57b00c)_0x4bc63f['unwrap'](_0x4c1ea9);return _0x31a073;}),_0x4734c9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x14a511=>_0x26bece(_0x14a511),'converterPriority':'high'}),_0x4734c9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xef30e1,_0x806820)=>_0x806820['options']['showSuggestionHighlights']?_0x26bece(_0xef30e1,!0x1):null,'converterPriority':'high'});const _0x383214=_0x4734c9['editing']['view'];this['listenTo'](_0x383214['document'],'clipboardOutput',(_0x5aeaeb,_0x46f7e9)=>{const _0x3b36e1=[];for(const _0x1fc60a of _0x383214['createRangeIn'](_0x46f7e9['content'])['getItems']())_0x1fc60a['is']('element','suggestion-td')&&_0x3b36e1['push'](_0x1fc60a);_0x383214['change'](_0x5681e1=>{for(const _0x48d7c0 of _0x3b36e1)_0x5681e1['move'](_0x5681e1['createRangeIn'](_0x48d7c0),_0x5681e1['createPositionBefore'](_0x48d7c0)),_0x5681e1['remove'](_0x48d7c0);});});}}function De(_0x4fd7c9){if(_0x4fd7c9['isEmpty'])return!0x0;const _0x519012=_0x4fd7c9['getChild'](0x0);return _0x519012['is']('element','paragraph')&&_0x519012['isEmpty'];}function He(_0x27831d,_0x472f93={},_0x1cf5f0){for(const {isAnchor:_0x2ebc4d,cellHeight:_0xfbb485,cellWidth:_0x2b5cf6}of _0x1cf5f0['createTableWalker'](_0x27831d,{'includeAllSlots':!0x0,..._0x472f93}))if(!_0x2ebc4d||0x1!=_0xfbb485||0x1!=_0x2b5cf6)return!0x1;return!0x0;}class Bt extends _0x3b7b17{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x123fa5=this['editor']['plugins']['get']('TrackChangesEditing');_0x123fa5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x123fa5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x123fa5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x123fa5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x123fa5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x123fa5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x35c0db,_0x470b04){const _0x23f5d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4aa73f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5bc36b=_0x470b04['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4ebc39=_0x4aa73f['getColumnGroupElement'](_0x5bc36b);let _0x3a332c=_0x4ebc39?_0x4aa73f['getTableColumnsWidths'](_0x4ebc39):null,_0x589ac1=_0x5bc36b['getAttribute']('tableWidth')||null;const _0x1d7cdf=_0x470b04['tableWidth']||_0x589ac1,_0x2adce6=_0x470b04['columnWidths']||_0x3a332c,_0x11a0aa=this['editor']['plugins']['get']('Users')['me'];for(const _0x439db9 of _0x23f5d0['getSuggestions']()){const _0x255f13=_0x439db9['getContainedElement']();if('resizeTable'===_0x439db9['subType']&&_0x255f13===_0x5bc36b){_0x439db9['author']!==_0x11a0aa&&_0x439db9['discard']();const _0x76979c=_0x439db9['data']['commandParams'];_0x589ac1=_0x76979c[0x0]['tableWidth'],_0x3a332c=_0x76979c[0x0]['columnWidths'];break;}}_0x35c0db({'table':_0x5bc36b,'tableWidth':_0x1d7cdf,'columnWidths':_0x2adce6}),_0x23f5d0['markBlockFormat'](_0x5bc36b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x589ac1,'columnWidths':_0x3a332c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4d74a7){if('formatBlock'!=_0x4d74a7['type']&&'formatInline'!=_0x4d74a7['type'])return;const {data:_0x12824f}=_0x4d74a7;if(_0x12824f&&'resizeTable'===_0x12824f['formatGroupId']){const _0x25f325='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x25f325)};}}}class xt extends _0x3b7b17{['afterInit'](){const _0x422fb9=this['editor'];_0x422fb9['plugins']['has']('Template')&&_0x422fb9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3b7b17{['afterInit'](){const _0x13c897=this['editor'];if(!_0x13c897['commands']['get']('insertTableOfContents'))return;_0x13c897['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x10453f=_0x13c897['plugins']['get']('TrackChangesEditing'),_0x2cbb4b=_0x13c897['locale'];_0x10453f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4f07d8=>c(_0x2cbb4b,'ELEMENT_TABLE_OF_CONTENTS',_0x4f07d8));}}class Rt extends _0x3b7b17{['afterInit'](){const _0x4845eb=this['editor'];if(!_0x4845eb['plugins']['has']('Title'))return;const _0x52be4d=_0x4845eb['plugins']['get']('TrackChangesEditing');_0x52be4d['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x4845eb['locale'],'ELEMENT_TITLE')),_0x4845eb['model']['document']['registerPostFixer'](_0x1384cf=>{let _0x4b092b=!0x1;const _0x4eeef1=Array['from'](_0x4845eb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51dd94,data:_0xb5687c}of _0x4eeef1){const {group:_0x4d67f2}=_0x52be4d['_splitMarkerName'](_0x51dd94);if('suggestion'!==_0x4d67f2||!_0xb5687c['newRange'])continue;const _0x220bcf=_0xb5687c['newRange'],_0x3aec95=_0x220bcf['end']['nodeBefore'];if(!_0x3aec95||!_0x3aec95['is']('element','title-content'))continue;if(!_0x220bcf['start']['isTouching'](_0x220bcf['end']))continue;const _0xbde7a0=_0x4845eb['model']['schema']['getNearestSelectionRange'](_0x220bcf['end'],'forward');if(_0xbde7a0&&_0xbde7a0['isCollapsed']){const _0x44b711=_0x1384cf['createRange'](_0x220bcf['start'],_0xbde7a0['start']);_0x44b711['isEqual'](_0x220bcf)||(_0x1384cf['updateMarker'](_0x51dd94,{'range':_0x44b711}),_0x4b092b=!0x0);}_0x4b092b||(_0x1384cf['removeMarker'](_0x51dd94),_0x4b092b=!0x0);}return _0x4b092b;});}}class Tt extends _0x3b7b17{['afterInit'](){const _0x15542f=this['editor'],_0x170f32=_0x15542f['plugins']['get']('TrackChangesEditing');_0x15542f['plugins']['has']('Uploadcare')&&(_0x170f32['enableCommand']('uploadcare'),_0x15542f['plugins']['has']('UploadcareImageEdit')&&(_0x170f32['enableCommand']('uploadcareImageEdit'),_0x170f32['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x170f32['registerBlockAttribute']('uploadcareImageId'),_0x170f32['descriptionFactory']['registerDescriptionCallback'](_0x3a3786=>{if('attribute'!=_0x3a3786['type'])return;const {data:_0x144587}=_0x3a3786;return _0x144587&&'uploadcareImageId'==_0x144587['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x3b7b17{['afterInit'](){const _0x268296=this['editor'],_0x20b5e1=_0x268296['plugins']['get']('TrackChangesEditing');_0x268296['plugins']['has']('UndoEditing')&&(_0x20b5e1['enableCommand']('undo'),_0x20b5e1['enableCommand']('redo'));}}class Ut extends _0x3b7b17{static get['requires'](){return[Ct];}['afterInit'](){const _0x1bda12=this['editor'];if(!_0x1bda12['plugins']['has']('TableCaptionEditing'))return;_0x1bda12['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x3b7b17{['tableProperties'];['tableCellProperties'];constructor(_0x758dc8){super(_0x758dc8),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 _0x4d7f13=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x40cb15 of this['tableProperties'])_0x4d7f13['enableCommand'](_0x40cb15,(_0x2274d2,_0x28d98f)=>{const _0x2c7170=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x40cb15,[_0x2c7170],this['tableProperties'],'tableProperties',_0x2274d2,_0x28d98f);});_0x4d7f13['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4d7f13['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d7f13['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x366c15,_0x27237a)=>this['handleDiscardAction'](this['tableProperties'],_0x366c15,_0x27237a)),_0x4d7f13['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x530df5 of this['tableCellProperties'])_0x4d7f13['enableCommand'](_0x530df5,(_0x212842,_0x554c1e)=>{const _0x118a57=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x530df5,_0x118a57,this['tableCellProperties'],'tableCellProperties',_0x212842,_0x554c1e);});_0x4d7f13['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4d7f13['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d7f13['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1ac928,_0x4706ba)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1ac928,_0x4706ba)),_0x4d7f13['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4d7f13['descriptionFactory']['registerDescriptionCallback'](_0x35a7e1=>this['handleSuggestionDescription'](_0x35a7e1));}['_handlePropertyChange'](_0x4580f9,_0x3339e1,_0x2dcd14,_0x2da40c,_0x204a6b,_0x5ab915){const _0x5278f8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5ab915['batch'],()=>{for(const _0x253c5a of _0x3339e1){if(this['_getSuggestion'](_0x253c5a,_0x2da40c))_0x204a6b(_0x5ab915);else{const _0x294d0f={};for(const _0x7d046b of _0x2dcd14){const _0x4e31a4=_0x253c5a['getAttribute'](_0x7d046b);void 0x0!==_0x4e31a4&&(_0x294d0f[_0x7d046b]=_0x4e31a4);}_0x204a6b(_0x5ab915),_0x5278f8['markBlockFormat'](_0x253c5a,{'commandParams':[_0x294d0f]},[],_0x2da40c);}}});}['handleDiscardAction'](_0x8823e4,_0x2d0f0e,_0x2720cf){const _0x107d27=_0x2d0f0e[0x0]['start']['nodeAfter'],_0xc55895=_0x2720cf['commandParams'][0x0];this['editor']['model']['change'](_0x4da23d=>{for(const _0x2df708 of _0x8823e4)void 0x0!==_0xc55895[_0x2df708]?_0x4da23d['setAttribute'](_0x2df708,_0xc55895[_0x2df708],_0x107d27):_0x4da23d['removeAttribute'](_0x2df708,_0x107d27);});}['handleSuggestionDescription'](_0x4f962f){if(_0x4f962f['data'])switch(_0x4f962f['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'](_0x558f4a,_0x5e8e3f){const _0x41fa4e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x391395 of _0x41fa4e['getSuggestions']({'skipNotAttached':!0x0})){const _0x60dbac=_0x391395['getContainedElement']();if(_0x391395['subType']===_0x5e8e3f&&_0x60dbac===_0x558f4a)return _0x391395;}return null;}}const u='$elementName';class p extends _0x3b7b17{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3f47f0,_0xd08589,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x53579c){super(_0x53579c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x285d84,_0x4579fb,_0x15af3f,_0x1a3031)=>{this['_model']['change'](()=>{for(const _0x5e4be3 of[..._0x1a3031,..._0x15af3f])this['_model']['markers']['has'](_0x5e4be3)&&_0x53579c['editing']['reconvertMarker'](_0x5e4be3);});}),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']=_0x53579c['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(),_0x53579c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x53579c['config']['get']('trackChanges.trackFormatChanges'),_0x53579c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x53579c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x53579c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4a3c09=this['editor'],_0x4de8b9=(_0x3fb9d4,_0x3d70c7)=>{if('attribute'!=_0x3fb9d4)return'ck-suggestion-marker-'+_0x3fb9d4;const _0x2a3533=_0x3d70c7['split']('|')[0x0];return this['_isBlockAttribute'](_0x2a3533)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4a3c09['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x451583=>{const {id:_0x7ccf98,authorId:_0x5bf5b3,type:_0x55127e,subType:_0x32edea}=this['_splitMarkerName'](_0x451583['markerName']),_0x3475d9=['ck-suggestion-marker',_0x4de8b9(_0x55127e,_0x32edea)];let _0x2a0126=0xbb8;return this['activeMarkers']['includes'](_0x451583['markerName'])&&(_0x3475d9['push']('ck-suggestion-marker--active'),_0x2a0126=0xbc2),'deletion'==_0x55127e&&(_0x2a0126+=0x5),{'classes':_0x3475d9,'attributes':{'data-suggestion':_0x7ccf98,'data-author-id':_0x5bf5b3},'priority':_0x2a0126};}}),_0x4a3c09['conversion']['for']('dataDowncast')['add'](_0xef8168=>{_0xef8168['on']('addMarker:suggestion',(_0x3e50fc,_0x186794,_0x17154f)=>{if(!_0x17154f['options']['showSuggestionHighlights'])return;const _0x512074=_0x186794['item'];if(!_0x512074)return;const _0x4c133a=_0x17154f['mapper']['toViewElement'](_0x512074);_0x4a3c09['model']['schema']['isObject'](_0x512074)&&_0x4c133a&&!_0x4c133a['getCustomProperty']('widget')&&_0x4c133a['is']('containerElement')&&_0x19dbd2(_0x4c133a,_0x17154f['writer']);},{'priority':'high'});}),_0x4a3c09['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2432c5,_0x2693db)=>{if(!_0x2693db['options']['showSuggestionHighlights'])return null;const {id:_0x1d31e8,authorId:_0xf4e122,type:_0x55ff62,subType:_0x305508}=this['_splitMarkerName'](_0x2432c5['markerName']);return{'classes':['ck-suggestion-marker',_0x4de8b9(_0x55ff62,_0x305508)],'priority':0xbb8,'attributes':{'data-suggestion':_0x1d31e8,'data-author-id':_0xf4e122}};}});const _0x425f43=({showActiveMarkers:_0x125890=!0x0,isAttributeSuggestion:_0x5494f5=!0x1}={})=>(_0x1d919a,_0x357b9b,_0x19038e)=>{if(!_0x357b9b['item'])return;const {id:_0x208604,authorId:_0x47130d}=this['_splitMarkerName'](_0x357b9b['markerName']);if(_0x5494f5){const _0xccf4da=this['_suggestions']['get'](_0x208604),_0x4573bd=this['_getAttributeKey'](_0xccf4da);if(!this['_isBlockAttribute'](_0x4573bd))return;}if(_0x357b9b['item']['is']('selection'))return void _0x19038e['consumable']['consume'](_0x357b9b['item'],_0x1d919a['name']);const _0x59e4e5=_0x19038e['mapper']['toViewElement'](_0x357b9b['item']);if(_0x357b9b['item']['is']('element')&&_0x4a3c09['model']['schema']['isBlock'](_0x357b9b['item'])&&!_0x59e4e5['getCustomProperty']('addHighlight')){_0x19038e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x59e4e5),_0x19038e['writer']['setAttribute']('data-suggestion',_0x208604,_0x59e4e5),_0x19038e['writer']['setAttribute']('data-author-id',_0x47130d,_0x59e4e5),_0x19038e['mapper']['bindElementToMarker'](_0x59e4e5,_0x357b9b['markerName']),_0x125890&&(this['activeMarkers']['includes'](_0x357b9b['markerName'])?_0x19038e['writer']['addClass']('ck-suggestion-marker--active',_0x59e4e5):_0x19038e['writer']['removeClass']('ck-suggestion-marker--active',_0x59e4e5));for(const _0x462ce8 of _0x4a3c09['model']['createRangeIn'](_0x357b9b['item'])['getItems']())_0x19038e['consumable']['consume'](_0x462ce8,_0x1d919a['name']);_0x19038e['consumable']['consume'](_0x357b9b['item'],_0x1d919a['name']);}};_0x4a3c09['conversion']['for']('dataDowncast')['add'](_0x1b7a13=>{_0x1b7a13['on']('addMarker:suggestion:formatBlock',(_0x38396a,_0x2f0d10,_0x251fb2)=>{_0x251fb2['options']['showSuggestionHighlights']&&_0x425f43({'showActiveMarkers':!0x1})(_0x38396a,_0x2f0d10,_0x251fb2);},{'priority':'highest'});}),_0x4a3c09['conversion']['for']('dataDowncast')['add'](_0x533005=>{_0x533005['on']('addMarker:suggestion:attribute',(_0x4e906a,_0x11adca,_0x3e8e6d)=>{_0x3e8e6d['options']['showSuggestionHighlights']&&_0x425f43({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4e906a,_0x11adca,_0x3e8e6d);},{'priority':'highest'});}),_0x4a3c09['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3d0274,_0x745a16)=>{if(_0x745a16['options']['showSuggestionHighlights']){const {id:_0x221b96,authorId:_0x45e97c}=this['_splitMarkerName'](_0x3d0274);return _0x3d0274['includes'](':split')||_0x3d0274['includes'](':merge')?{'group':'suggestion','name':_0x3d0274['substr'](0xb),'attributes':{'data-suggestion':_0x221b96,'data-author-id':_0x45e97c}}:null;}return{'group':'suggestion','name':_0x3d0274['substr'](0xb)};}}),_0x4a3c09['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e519c,{writer:_0x569024})=>{let _0x5b41b8='suggestion:'+_0x4e519c['getAttribute']('suggestion-type')+':'+_0x4e519c['getAttribute']('id');return _0x4e519c['getAttribute']('marker-count')&&(_0x5b41b8+=':'+_0x4e519c['getAttribute']('marker-count')),_0x569024['createElement']('$marker',{'data-name':_0x5b41b8});}}),_0x4a3c09['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4a3c09['conversion']['for']('editingDowncast')['add'](_0x32e6f8=>{_0x32e6f8['on']('addMarker:suggestion:formatBlock',_0x425f43(),{'priority':'high'});}),_0x4a3c09['conversion']['for']('editingDowncast')['add'](_0x1ba152=>{_0x1ba152['on']('addMarker:suggestion:attribute',_0x425f43({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4a3c09['conversion']['for']('editingDowncast')['add'](_0x3c8d4e=>{_0x3c8d4e['on']('removeMarker:suggestion:formatBlock',(_0x316f23,_0xa376d4,_0x5820b8)=>{const _0x1c4f58=_0x5820b8['mapper']['markerNameToElements'](_0xa376d4['markerName']);if(_0x1c4f58){for(const _0x419655 of _0x1c4f58)_0x419655['getCustomProperty']('addHighlight')||(_0x5820b8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x419655),_0x5820b8['writer']['removeAttribute']('data-suggestion',_0x419655),_0x5820b8['writer']['removeAttribute']('data-author-id',_0x419655),_0x5820b8['mapper']['unbindElementFromMarkerName'](_0x419655,_0xa376d4['markerName']));}},{'priority':'high'});}),_0x4a3c09['conversion']['for']('editingDowncast')['add'](_0x30b3ac=>{_0x30b3ac['on']('removeMarker:suggestion:attribute',(_0x1d6704,_0xcedb9e,_0x2e1ae2)=>{const _0x4f5884=_0x2e1ae2['mapper']['markerNameToElements'](_0xcedb9e['markerName']);if(!_0x4f5884)return;const {id:_0x38928c}=this['_splitMarkerName'](_0xcedb9e['markerName']),_0x1df73c=this['_suggestions']['get'](_0x38928c),_0x3e0538=this['_getAttributeKey'](_0x1df73c);if(this['_isBlockAttribute'](_0x3e0538)){for(const _0x4b6a6f of _0x4f5884)_0x4b6a6f['getCustomProperty']('addHighlight')||(_0x2e1ae2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4b6a6f),_0x2e1ae2['writer']['removeAttribute']('data-suggestion',_0x4b6a6f),_0x2e1ae2['writer']['removeAttribute']('data-author-id',_0x4b6a6f),_0x2e1ae2['mapper']['unbindElementFromMarkerName'](_0x4b6a6f,_0xcedb9e['markerName']));}},{'priority':'high'});}),_0x4a3c09['model']['document']['registerPostFixer'](_0x4ecb57=>{let _0x93c157=!0x1;const _0x436b60=Array['from'](_0x4a3c09['model']['document']['differ']['getChangedMarkers']()),_0x5ca275=new Set();for(const {name:_0x1aebdf,data:_0x209cf4}of _0x436b60){const {group:_0x382538,type:_0x310fe8,subType:_0x5c9f9d,id:_0x114a33}=this['_splitMarkerName'](_0x1aebdf);if('suggestion'!==_0x382538)continue;const _0x387af8=this['_suggestions']['get'](_0x114a33);if(null!=_0x209cf4['newRange']){'formatInline'==_0x310fe8&&(_0x93c157=_0x93c157||Jt(_0x209cf4['newRange'],_0x1aebdf,_0x4ecb57,_0x4a3c09['model']['schema']));const _0x32f169='attribute'==_0x310fe8&&this['_isBlockAttribute'](_0x5c9f9d['split']('|')[0x0]);if(_0x209cf4['newRange']['isCollapsed']||'$graveyard'==_0x209cf4['newRange']['root']['rootName']||'formatBlock'==_0x310fe8&&!Ht(_0x209cf4['newRange'])||_0x32f169&&!Ht(_0x209cf4['newRange'])||'deletion'==_0x310fe8&&!qt(_0x209cf4['newRange']))_0x4ecb57['removeMarker'](_0x1aebdf),_0x93c157=!0x0;else{if(!_0x387af8||!_0x387af8['isInContent'])continue;if(_0x209cf4['newRange']&&_0x209cf4['oldRange']&&_0x209cf4['newRange']['isEqual'](_0x209cf4['oldRange']))continue;_0x5ca275['add'](_0x387af8);}}}return _0x5ca275['size']>0x0&&(_0x93c157=!!this['_joinWithAdjacentSuggestions'](_0x5ca275)||_0x93c157),_0x93c157;}),_0x4a3c09['model']['document']['registerPostFixer'](_0x52f830=>{let _0x241549=!0x1;for(const _0x2cdead of _0x4a3c09['model']['document']['differ']['getChanges']())if('insert'==_0x2cdead['type'])for(const _0x2e6ef6 of this['_suggestions']['values']()){if(_0x2e6ef6['isMultiRange']||!_0x2e6ef6['isInContent'])continue;const _0xe6d8ed='formatBlock'==_0x2e6ef6['type'],_0x5d2eda=this['_getAttributeKey'](_0x2e6ef6),_0x556156=_0x5d2eda&&this['_isBlockAttribute'](_0x5d2eda);if(!_0xe6d8ed&&!_0x556156)continue;const _0x1c734e=_0x2e6ef6['getFirstRange']();if(_0x1c734e['start']['parent']!=_0x1c734e['end']['parent']&&!_0x1c734e['end']['isAtEnd']){const _0x445c6b=_0x4a3c09['model']['createPositionAt'](_0x1c734e['start']['nodeAfter'],'end'),_0x1ca3bb=_0x4a3c09['model']['createRange'](_0x1c734e['start'],_0x445c6b);_0x52f830['updateMarker'](_0x2e6ef6['getFirstMarker'](),{'range':_0x1ca3bb}),_0x241549=!0x0;}}return _0x241549;}),_0x4a3c09['model']['document']['registerPostFixer'](_0x49f0e7=>this['_processAttributeChanges'](_0x49f0e7)),_0x4a3c09['model']['document']['registerPostFixer'](_0x38cd17=>!_0x38cd17['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x38cd17)),_0x4a3c09['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4a3c09['model']['document']['on']('change:data',(_0x599db1,_0x3693de)=>{if(!_0x3693de['isLocal']||_0x3693de['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xd2d758=_0x4a3c09['model']['document']['differ']['getChanges']();if(0x0==_0xd2d758['length'])return;const _0xbd9902=[],_0x306c4b=_0xd2d758['filter'](_0x216ee0=>'attribute'==_0x216ee0['type']),_0x542f9d=_0xd2d758['filter'](_0x165fc4=>'insert'==_0x165fc4['type']&&'$text'!=_0x165fc4['name']);for(const _0x59bc5e of _0x306c4b)this['_isRegisteredAttribute'](_0x59bc5e['attributeKey'])&&_0xbd9902['push']({'key':_0x59bc5e['attributeKey'],'newValue':_0x59bc5e['attributeNewValue'],'oldValue':_0x59bc5e['attributeOldValue'],'range':zt(_0x59bc5e['range'],_0x4a3c09['model'])});for(const _0x2e5410 of _0x542f9d){if('rename'!=_0x2e5410['action']&&'refresh'!=_0x2e5410['action'])continue;const _0x31a539=Wt(_0x2e5410['position']['nodeAfter'],_0x4a3c09['model']),_0x1afb45=_0x2e5410['before'];'rename'==_0x2e5410['action']&&_0xbd9902['push']({'key':u,'newValue':_0x2e5410['name'],'oldValue':_0x1afb45['name'],'range':_0x31a539});for(const [_0x50b3a5,_0x227ea9]of _0x1afb45['attributes']){if(!this['_isRegisteredAttribute'](_0x50b3a5))continue;const _0x5a2533=_0x2e5410['attributes']['get'](_0x50b3a5);_0x227ea9!==_0x5a2533&&_0xbd9902['push']({'key':_0x50b3a5,'newValue':_0x5a2533,'oldValue':_0x227ea9,'range':_0x31a539});}for(const [_0x1f82bd,_0x594731]of _0x2e5410['attributes'])this['_isRegisteredAttribute'](_0x1f82bd)&&(_0x1afb45['attributes']['has'](_0x1f82bd)||_0xbd9902['push']({'key':_0x1f82bd,'newValue':_0x594731,'oldValue':null,'range':_0x31a539}));}0x0!=_0xbd9902['length']&&_0x4a3c09['model']['enqueueChange'](_0x3693de,_0x2ad074=>{const _0x53ea7f=_0x145d91();for(const {range:_0x3bd489,key:_0x258f82,oldValue:_0xbc481,newValue:_0x3a0148}of _0xbd9902)this['markAttributeChange'](_0x3bd489,_0x258f82,_0xbc481,_0x3a0148,{'groupId':_0x53ea7f});this['_reduceExistingSuggestions'](_0x2ad074,_0xbd9902);});},{'priority':'lowest'}),_0x4a3c09['model']['markers']['on']('update:suggestion',(_0x561943,_0x5a2aa9,_0x35e1c1)=>{if(null==_0x35e1c1){const {id:_0x5da9f8}=this['_splitMarkerName'](_0x5a2aa9['name']),_0xafc4ae=this['_suggestions']['get'](_0x5da9f8);_0xafc4ae&&_0xafc4ae['addMarkerName'](_0x5a2aa9['name']);}}),_0x4a3c09['model']['document']['on']('change:data',()=>{const _0x32f0e9=Array['from'](_0x4a3c09['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2b2fc7=>'suggestion'===this['_splitMarkerName'](_0x2b2fc7['name'])['group']);if(0x0===_0x32f0e9['length'])return;_0x32f0e9['sort']((_0x3c43bd,_0x525825)=>{const _0x196a78=_0x3c43bd['data']['oldRange'],_0x103b85=_0x525825['data']['oldRange'];return null===_0x196a78&&null===_0x103b85?0x0:null===_0x196a78&&null!==_0x103b85?-0x1:null!==_0x196a78&&null===_0x103b85?0x1:_0x196a78['start']['isBefore'](_0x103b85['start'])?-0x1:0x1;});const _0x40bc8c=new Set(),_0x1b30ef=new Set();for(const {name:_0x2527a3,data:_0x346b00}of _0x32f0e9){const {id:_0x1f317}=this['_splitMarkerName'](_0x2527a3);if(null===_0x346b00['oldRange']){const _0x30105a=this['_handleNewSuggestionMarker'](_0x2527a3);_0x1b30ef['add'](_0x30105a);}else{const _0x5ead98=this['_suggestions']['get'](_0x1f317);null!==_0x346b00['newRange']||_0x5ead98['isInContent']?(_0x40bc8c['add'](_0x5ead98['head']),_0x1b30ef['add'](_0x5ead98)):this['_removeSuggestion'](_0x5ead98);}}_0x1b30ef['size']>0x0&&this['_refreshSuggestionsChain'](_0x1b30ef);for(const _0x20a652 of _0x40bc8c)this['fire']('suggestionChanged',_0x20a652);}),_0x4a3c09['model']['on']('applyOperation',(_0x2b7f04,_0x239a2f)=>{const _0x5c8a3d=_0x239a2f[0x0];if(!this['_suggestions']['size'])return;if(!_0x5c8a3d['isDocumentOperation'])return;if(_0x5c8a3d['batch']['isUndo']||!_0x5c8a3d['batch']['isLocal'])return;let _0x1eae9f,_0x189792;switch(_0x5c8a3d['type']){case'insert':_0x1eae9f=_0x4a3c09['model']['createPositionAt'](_0x5c8a3d['position']),_0x189792=_0x1eae9f['getShiftedBy'](_0x5c8a3d['howMany']);break;case'split':_0x1eae9f=_0x4a3c09['model']['createPositionAt'](_0x5c8a3d['splitPosition']),_0x189792=_0x4a3c09['model']['createPositionAt'](_0x5c8a3d['moveTargetPosition']);break;case'move':_0x1eae9f=_0x4a3c09['model']['createPositionAt'](_0x5c8a3d['targetPosition']),_0x189792=_0x1eae9f['getShiftedBy'](_0x5c8a3d['howMany']);break;default:return;}const _0x407697=_0x4a3c09['model']['createRange'](_0x1eae9f,_0x189792);_0x4a3c09['model']['change'](()=>{for(const {suggestion:_0x4aa7e5,meta:_0x4bd882}of this['_findSuggestions'](_0x407697)){if(_0x4aa7e5['isMultiRange'])continue;if('formatInline'==_0x4aa7e5['type'])continue;const _0xff5fcb=this['_getAttributeKey'](_0x4aa7e5);if(_0xff5fcb&&this['_isBlockAttribute'](_0xff5fcb)&&'split'!=_0x5c8a3d['type'])continue;const _0x37da9c=_0x4aa7e5['data']&&_0x4aa7e5['data']['multipleBlocks'];('formatBlock'!=_0x4aa7e5['type']||'split'==_0x5c8a3d['type']&&!_0x37da9c)&&(_0x4bd882['containsRangeInObject']||'insertion'==_0x4aa7e5['type']&&_0x4bd882['isOwn']||_0x4aa7e5['getFirstRange']()['containsRange'](_0x407697)&&this['_breakSuggestionMarker'](_0x4aa7e5,_0x1eae9f,_0x189792));}});},{'priority':'lowest'}),_0x4a3c09['model']['on']('deleteContent',(_0x5b9b4a,_0x136acb)=>{const _0x416345=_0x136acb[0x0],_0x1c8ead=_0x136acb[0x1];if(_0x1c8ead&&_0x1c8ead['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x416345['isCollapsed'])return;const _0x514c5d=_0x4a3c09['model']['schema'],{start:_0x4f6504,end:_0x261194}=_0x416345['getFirstRange'](),_0xdfa738=_0x4f6504['nodeAfter']&&_0x514c5d['isLimit'](_0x4f6504['nodeAfter'])?null:_0x514c5d['getNearestSelectionRange'](_0x4f6504,'forward'),_0x4a0ac2=_0x261194['nodeBefore']&&_0x514c5d['isLimit'](_0x261194['nodeBefore'])?null:_0x514c5d['getNearestSelectionRange'](_0x261194,'backward'),_0x197944=_0x4a3c09['model']['createRange'](_0xdfa738?_0xdfa738['start']:_0x4f6504,_0x4a0ac2?_0x4a0ac2['end']:_0x261194);_0x4a3c09['model']['change'](_0x394f5c=>{this['markDeletion'](_0x197944);const _0x5ecc94=_0x4a3c09['model']['schema']['getNearestSelectionRange'](_0x197944['start']);_0x416345['is']('documentSelection')?_0x394f5c['setSelection'](_0x5ecc94):_0x416345['setTo'](_0x5ecc94);}),_0x5b9b4a['stop']();},{'priority':_0x2a48aa['normal']+0xa}),_0x4a3c09['model']['on']('insertContent',(_0x141384,_0x13bab8)=>{const _0x53b34=_0x13bab8[_0x13bab8['length']-0x1];_0x53b34&&_0x53b34['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4a3c09['model']['change'](()=>{let _0x378f2a=_0x4a3c09['model']['insertContent'](_0x13bab8[0x0],_0x13bab8[0x1],_0x13bab8[0x2],{'forceDefaultExecution':!0x0});if(!_0x378f2a)return;_0x141384['return']=_0x378f2a['clone']();const _0xc6b498=_0x378f2a['end']['nodeBefore'],_0x4414ff=_0x4a3c09['model']['schema'];_0xc6b498&&_0x4414ff['isBlock'](_0xc6b498)&&!_0x4414ff['isObject'](_0xc6b498)&&(_0x378f2a=_0x4a3c09['model']['createRange'](_0x378f2a['start'],_0x4a3c09['model']['createPositionAt'](_0xc6b498,'end'))),this['markInsertion'](_0x378f2a);}),_0x141384['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x429ae7=new x(_0x4a3c09,this['_suggestions']);_0x4a3c09['commands']['add']('acceptSuggestion',_0x429ae7),this['enableCommand']('acceptSuggestion');const _0x31554f=new O(_0x4a3c09,this['_suggestions']);_0x4a3c09['commands']['add']('discardSuggestion',_0x31554f),this['enableCommand']('discardSuggestion'),_0x4a3c09['commands']['add']('acceptAllSuggestions',new R(_0x4a3c09,_0x429ae7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4a3c09['commands']['add']('discardAllSuggestions',new R(_0x4a3c09,_0x31554f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4a3c09['commands']['add']('acceptSelectedSuggestions',new E(_0x4a3c09,_0x429ae7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4a3c09['commands']['add']('discardSelectedSuggestions',new E(_0x4a3c09,_0x31554f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x131a7b=_0x4a3c09['plugins']['get']('CommentsRepository');this['listenTo'](_0x131a7b,'addComment',(_0x21cf05,{threadId:_0x1b7661})=>{const _0x29ab9c=this['_suggestions']['get'](_0x1b7661);_0x29ab9c&&_0x29ab9c['commentThread']&&0x1===_0x29ab9c['commentThread']['length']&&this['_updateSuggestionData'](_0x1b7661,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x131a7b,'removeComment',(_0x286aa5,{threadId:_0x1758f8})=>{const _0x368391=this['_suggestions']['get'](_0x1758f8);_0x368391&&_0x368391['commentThread']&&!_0x368391['commentThread']['length']&&this['_updateSuggestionData'](_0x1758f8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x265a43){const _0x3c1ca6=_0x166b9e([0x37,0x52,0x49,0x58,0x6c,0x77,0x75,0x4c,0x65,0x51,0x41,0x7a,0x47,0x32,0x69,0x5a,0x4d,0x59,0x71,0x36,0x30,0x6f,0x42,0x62,0x46,0x38,0x61,0x48,0x31,0x50,0x68,0x57,0x79,0x4a,0x34,0x53,0x78,0x74,0x54,0x76,0x6d,0x45,0x35,0x33,0x4b,0x43,0x55,0x63,0x73,0x6b,0x44,0x4e,0x72,0x56,0x67,0x66,0x6e,0x6a,0x39,0x4f,0x64,0x70]),_0xe2a920=0x126ab519,_0x411151=0x126dde29^_0xe2a920,_0x299c4a=window[_0x166b9e([0x44,0x61,0x74,0x65])][_0x166b9e([0x6e,0x6f,0x77])](),_0x453ef3=_0x265a43[_0x166b9e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2756c8=new window[(_0x166b9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a1eee=>{_0x453ef3[_0x166b9e([0x6f,0x6e,0x63,0x65])](_0x166b9e([0x72,0x65,0x61,0x64,0x79]),_0x5a1eee);}),_0x2c810c={[_0x166b9e([0x6b,0x74,0x79])]:_0x166b9e([0x45,0x43]),[_0x166b9e([0x75,0x73,0x65])]:_0x166b9e([0x73,0x69,0x67]),[_0x166b9e([0x63,0x72,0x76])]:_0x166b9e([0x50,0x2d,0x32,0x35,0x36]),[_0x166b9e([0x78])]:_0x166b9e([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]),[_0x166b9e([0x79])]:_0x166b9e([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]),[_0x166b9e([0x61,0x6c,0x67])]:_0x166b9e([0x45,0x53,0x32,0x35,0x36])},_0xd320af=_0x453ef3[_0x166b9e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x166b9e([0x67,0x65,0x74])](_0x166b9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x315be3(){let _0x5d3a0f,_0x4170bc=null,_0x333de6=null;try{if(_0xd320af==_0x166b9e([0x47,0x50,0x4c]))return _0x166b9e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5d3a0f=_0x274f05(),!_0x5d3a0f)return _0x166b9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5d3a0f[_0x166b9e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x333de6=_0x55b206(_0x5d3a0f[_0x166b9e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5d3a0f[_0x166b9e([0x6a,0x74,0x69])])),await _0x7dcf53()?_0x426d66()?_0x1017c7()?_0x166b9e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2678b5()?(_0x5d3a0f[_0x166b9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x166b9e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4170bc=_0x402751(_0x166b9e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5d3a0f[_0x166b9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x166b9e([0x74,0x72,0x69,0x61,0x6c])&&(_0x4170bc=_0x402751(_0x166b9e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x134856()):_0x166b9e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x166b9e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x166b9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x166b9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1017c7(){const _0x20d65a=[_0x166b9e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x166b9e([0x74,0x72,0x69,0x61,0x6c])][_0x166b9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d3a0f[_0x166b9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x299c4a/0x3e8:0xe10*_0x411151;return _0x5d3a0f[_0x166b9e([0x65,0x78,0x70])]<_0x20d65a;}function _0x426d66(){const _0x369f74=_0x5d3a0f[_0x166b9e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x369f74)return!0x1;if(_0x369f74[_0x166b9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x166b9e([0x2a])))return!0x0;if(_0x369f74[_0x166b9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x166b9e([0x54,0x43])))return!0x0;if(_0x369f74[_0x166b9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x166b9e([0x52,0x54,0x43]))){if(_0x32e386())return!0x0;if(_0x413c78()||_0x28808f())return!0x0;}return!0x1;}function _0x2678b5(){const _0x459fd3=_0x5d3a0f[_0x166b9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x459fd3||0x0==_0x459fd3[_0x166b9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x437c6c}=new URL(window[_0x166b9e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x459fd3[_0x166b9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x437c6c))return!0x0;const _0x15886c=_0x437c6c[_0x166b9e([0x73,0x70,0x6c,0x69,0x74])](_0x166b9e([0x2e]));return _0x459fd3[_0x166b9e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3432b1=>_0x3432b1[_0x166b9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x166b9e([0x2a])))[_0x166b9e([0x6d,0x61,0x70])](_0x2965f9=>_0x2965f9[_0x166b9e([0x73,0x70,0x6c,0x69,0x74])](_0x166b9e([0x2e])))[_0x166b9e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f6612=>_0x2f6612[_0x166b9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x15886c[_0x166b9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x166b9e([0x6d,0x61,0x70])](_0x1ca2c0=>Array(_0x15886c[_0x166b9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1ca2c0[_0x166b9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x166b9e([0x66,0x69,0x6c,0x6c])](_0x1ca2c0[0x0]===_0x166b9e([0x2a])?_0x166b9e([0x2a]):'')[_0x166b9e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1ca2c0))[_0x166b9e([0x73,0x6f,0x6d,0x65])](_0x31f3ac=>_0x15886c[_0x166b9e([0x65,0x76,0x65,0x72,0x79])]((_0x1b31c6,_0x59534a)=>_0x31f3ac[_0x59534a]===_0x1b31c6||_0x31f3ac[_0x59534a]===_0x166b9e([0x2a])));}function _0x134856(){return _0x4170bc&&_0x333de6?new window[(_0x166b9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a3b77,_0x5b9d9c)=>{_0x4170bc[_0x166b9e([0x74,0x68,0x65,0x6e])](_0x3a3b77,_0x5b9d9c),_0x333de6[_0x166b9e([0x74,0x68,0x65,0x6e])](_0x47a69d=>{_0x47a69d!=_0x166b9e([0x56,0x61,0x6c,0x69,0x64])&&_0x3a3b77(_0x47a69d);},_0x5b9d9c);}):_0x4170bc||_0x333de6||_0x166b9e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55b206(_0x1e8024,_0x4961b1){return new window[(_0x166b9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf937a8=>{if(_0x5b39a2())return _0xf937a8(_0x166b9e([0x56,0x61,0x6c,0x69,0x64]));_0x46aaa0(),_0x453ef3[_0x166b9e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x166b9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x806b98=!0x1;const _0x1cc947=_0x145d91();function _0x3a5c39(_0xfb245d){return!!_0xfb245d&&(typeof _0xfb245d===_0x166b9e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xfb245d===_0x166b9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xfb245d[_0x166b9e([0x74,0x68,0x65,0x6e])]===_0x166b9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xfb245d[_0x166b9e([0x63,0x61,0x74,0x63,0x68])]===_0x166b9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53e490(_0x3ad8c3){_0x4c5758(_0x3ad8c3)[_0x166b9e([0x74,0x68,0x65,0x6e])](_0x4eede5=>{if(!_0x4eede5||_0x4eede5[_0x166b9e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x166b9e([0x6f,0x6b]))return _0x166b9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf06b42(_0xfda863(_0x1cc947+_0x4961b1))!=_0x4eede5[_0x166b9e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x166b9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x166b9e([0x56,0x61,0x6c,0x69,0x64]);})[_0x166b9e([0x74,0x68,0x65,0x6e])](_0x385115=>(_0x164fd9(),_0x385115),()=>{const _0x397ca1=_0x4b1c86();return null==_0x397ca1?(_0x164fd9(),_0x166b9e([0x56,0x61,0x6c,0x69,0x64])):_0x166b9e(_0x299c4a-_0x397ca1>(0x36663119^_0xe2a920)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x166b9e([0x74,0x68,0x65,0x6e])](_0xf937a8)[_0x166b9e([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf937a8(_0x166b9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x154dab=0x125c5b99^_0xe2a920;function _0x164fd9(){const _0x5e8fb4=_0x166b9e([0x6c,0x6c,0x63,0x74,0x2d])+_0xf06b42(_0xfda863(_0x1e8024)),_0x2da8e0=_0x1d28ea(_0xf06b42(window[_0x166b9e([0x4d,0x61,0x74,0x68])][_0x166b9e([0x63,0x65,0x69,0x6c])](_0x299c4a/_0x154dab)));window[_0x166b9e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x166b9e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e8fb4,_0x2da8e0);}function _0x4b1c86(){const _0xcf7ba2=_0x166b9e([0x6c,0x6c,0x63,0x74,0x2d])+_0xf06b42(_0xfda863(_0x1e8024)),_0x5b218a=window[_0x166b9e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x166b9e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcf7ba2);return _0x5b218a?window[_0x166b9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d28ea(_0x5b218a),0x10)*_0x154dab:null;}function _0x4c5758(_0x182c76){return new window[(_0x166b9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2275a1,_0x4758ac)=>{_0x182c76[_0x166b9e([0x74,0x68,0x65,0x6e])](_0x2275a1,_0x4758ac),window[_0x166b9e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4758ac,0x126b61d9^_0xe2a920);});}}_0x453ef3[_0x166b9e([0x6f,0x6e])](_0x166b9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x237ca1,_0x5ecf28)=>{if(_0x5ecf28[0x0]!=_0x1e8024)return _0xf937a8(_0x166b9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5ecf28[0x1]={..._0x5ecf28[0x1],[_0x166b9e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1cc947};},{[_0x166b9e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x166b9e([0x68,0x69,0x67,0x68])}),_0x453ef3[_0x166b9e([0x6f,0x6e])](_0x166b9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53973c=>{_0x3a5c39(_0x53973c[_0x166b9e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x806b98=!0x0,_0x53e490(_0x53973c[_0x166b9e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x166b9e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x166b9e([0x6c,0x6f,0x77])}),_0x2756c8[_0x166b9e([0x74,0x68,0x65,0x6e])](()=>{_0x806b98||_0xf937a8(_0x166b9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b39a2(){return _0x453ef3[_0x166b9e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x166b9e([0x76,0x69,0x65,0x77])][_0x166b9e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x166b9e([0x61,0x75,0x74,0x6f]);}function _0x46aaa0(){_0x453ef3[_0x166b9e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x166b9e([0x76,0x69,0x65,0x77])][_0x166b9e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x166b9e([0x61,0x75,0x74,0x6f]);}}function _0x402751(_0x5b5795){const _0x26973d=[new window[(_0x166b9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x186c41=>setTimeout(_0x186c41,0x12638bd5^_0xe2a920)),_0x2756c8[_0x166b9e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x166b9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x392f51=>{let _0x53b5ae=0x0;_0x453ef3[_0x166b9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x166b9e([0x6f,0x6e])](_0x166b9e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5f38d5,_0x54c70e)=>{_0x54c70e[0x0][_0x166b9e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x53b5ae++,_0x53b5ae==(0x126ab4e1^_0xe2a920)&&(_0x392f51(),_0x5f38d5[_0x166b9e([0x6f,0x66,0x66])]());});}))];return window[_0x166b9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x166b9e([0x72,0x61,0x63,0x65])](_0x26973d)[_0x166b9e([0x74,0x68,0x65,0x6e])](()=>_0x5b5795);}async function _0x2eed1c(){await _0x2756c8,_0x453ef3[_0x166b9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x166b9e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x46a680,_0x453ef3[_0x166b9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x166b9e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x46a680,_0x453ef3[_0x166b9e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x166b9e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x32e386(){return _0x50bc26(_0x166b9e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x290637(_0x166b9e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x166b9e([0x73,0x74,0x61,0x74,0x65])]==_0x166b9e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x413c78(){return _0x50bc26(_0x166b9e([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 _0x28808f(){return _0x50bc26(_0x166b9e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x568eb0(_0x5e608e){const _0x44ce5f=_0x5ccabc();_0x453ef3[_0x44ce5f]=_0x166b9e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e608e,_0x5e608e!=_0x166b9e([0x56,0x61,0x6c,0x69,0x64])&&_0x2eed1c();}function _0x5ccabc(){const _0x4f83cf=window[_0x166b9e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x166b9e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x166b9e([0x6e,0x6f,0x77])]())[_0x166b9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x166b9e([0x2e]),'');let _0x25a9ca=_0x166b9e([0x52]);for(let _0x499db3=0x0;_0x499db3<_0x4f83cf[_0x166b9e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x499db3+=0x2){let _0x244a78=window[_0x166b9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f83cf[_0x166b9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x499db3,_0x499db3+0x2));_0x244a78>=_0x3c1ca6[_0x166b9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x244a78-=_0x3c1ca6[_0x166b9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x25a9ca+=_0x3c1ca6[_0x244a78];}return _0x25a9ca;}function _0x274f05(){const _0x4d7f75=_0xd320af[_0x166b9e([0x73,0x70,0x6c,0x69,0x74])](_0x166b9e([0x2e]));if(0x3!=_0x4d7f75[_0x166b9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4cbc51(_0x4d7f75[0x1]);function _0x4cbc51(_0x14435d){const _0x31f320=_0x16d3dc(_0x14435d);return _0x31f320&&_0x19af8b()?_0x31f320:null;function _0x19af8b(){const _0x2e976d=_0x31f320[_0x166b9e([0x6a,0x74,0x69])],_0x394028=window[_0x166b9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e976d[_0x166b9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e976d[_0x166b9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f2245={..._0x31f320,[_0x166b9e([0x6a,0x74,0x69])]:_0x2e976d[_0x166b9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e976d[_0x166b9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f2245[_0x166b9e([0x76,0x63])],_0xfda863(_0x2f2245)==_0x394028;}}}async function _0x7dcf53(){let _0x5cd002=!0x0;try{const _0x12dd15=_0xd320af[_0x166b9e([0x73,0x70,0x6c,0x69,0x74])](_0x166b9e([0x2e])),[_0xbb2be1,_0x3c7b87,_0x529194]=_0x12dd15;return _0x270725(_0xbb2be1),await _0x125235(_0xbb2be1,_0x3c7b87,_0x529194),_0x5cd002;}catch{return!0x1;}function _0x270725(_0xd4dedb){const _0x2147c1=_0x16d3dc(_0xd4dedb);_0x2147c1&&_0x2147c1[_0x166b9e([0x61,0x6c,0x67])]==_0x166b9e([0x45,0x53,0x32,0x35,0x36])||(_0x5cd002=!0x1);}async function _0x125235(_0x2a1661,_0x1cb663,_0x4ea4c5){const _0x253fd9=window[_0x166b9e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x166b9e([0x66,0x72,0x6f,0x6d])](_0x598f39(_0x4ea4c5),_0x258024=>_0x258024[_0x166b9e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x31f392=new window[(_0x166b9e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x166b9e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a1661+_0x166b9e([0x2e])+_0x1cb663),_0x381db4=window[_0x166b9e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x166b9e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x381db4)return;const _0x9161fb=await _0x381db4[_0x166b9e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x166b9e([0x6a,0x77,0x6b]),_0x2c810c,{[_0x166b9e([0x6e,0x61,0x6d,0x65])]:_0x166b9e([0x45,0x43,0x44,0x53,0x41]),[_0x166b9e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x166b9e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x166b9e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x381db4[_0x166b9e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x166b9e([0x6e,0x61,0x6d,0x65])]:_0x166b9e([0x45,0x43,0x44,0x53,0x41]),[_0x166b9e([0x68,0x61,0x73,0x68])]:{[_0x166b9e([0x6e,0x61,0x6d,0x65])]:_0x166b9e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9161fb,_0x253fd9,_0x31f392)||(_0x5cd002=!0x1);}}function _0x16d3dc(_0x491815){return _0x491815[_0x166b9e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x166b9e([0x65,0x79]))?JSON[_0x166b9e([0x70,0x61,0x72,0x73,0x65])](_0x598f39(_0x491815)):null;}function _0x598f39(_0x4599ad){return window[_0x166b9e([0x61,0x74,0x6f,0x62])](_0x4599ad[_0x166b9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x166b9e([0x2b]))[_0x166b9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x166b9e([0x2f])));}function _0xfda863(_0x4612ab){let _0x3c386b=0x1505;function _0x430b92(_0x2e23a3){for(let _0x24c072=0x0;_0x24c072<_0x2e23a3[_0x166b9e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24c072++){const _0x2627f2=_0x2e23a3[_0x166b9e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24c072);_0x3c386b=(_0x3c386b<<0x5)+_0x3c386b+_0x2627f2,_0x3c386b&=_0x3c386b;}}function _0x48c68b(_0xfff280){Array[_0x166b9e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfff280)?_0xfff280[_0x166b9e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48c68b):_0xfff280&&typeof _0xfff280==_0x166b9e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x166b9e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfff280)[_0x166b9e([0x73,0x6f,0x72,0x74])]()[_0x166b9e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3bc7a4,_0xc41b0b])=>{_0x430b92(_0x3bc7a4),_0x48c68b(_0xc41b0b);}):_0x430b92(window[_0x166b9e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfff280));}return _0x48c68b(_0x4612ab),_0x3c386b>>>0x0;}function _0xf06b42(_0x14c8f0){return _0x14c8f0[_0x166b9e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x166b9e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x166b9e([0x30]));}function _0x1d28ea(_0x1c989f){return _0x1c989f[_0x166b9e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x166b9e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x166b9e([0x6a,0x6f,0x69,0x6e])]('');}function _0x50bc26(_0x4eb450){return _0x453ef3[_0x166b9e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x166b9e([0x68,0x61,0x73])](_0x4eb450);}function _0x290637(_0x80b2ed){return _0x453ef3[_0x166b9e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x166b9e([0x67,0x65,0x74])](_0x80b2ed);}function _0x46a680(){}function _0x166b9e(_0x39836b){return _0x39836b['map'](_0x28dca6=>String['fromCharCode'](_0x28dca6))['join']('');}_0x568eb0(await _0x315be3());}(this);}set['adapter'](_0x33b17d){if(this['_adapter'])throw new _0x2ff5bb('track-changes-adapter-already-set',this);this['_adapter']=_0x33b17d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x54fe1a=!0x1,toJSON:_0x44ee00=!0x1}={}){const _0x539dd3=[];for(const _0x2ef2b7 of this['_suggestions']['values']())_0x54fe1a&&!_0x2ef2b7['isInContent']||_0x539dd3['push'](_0x2ef2b7);return _0x44ee00?_0x539dd3['map'](_0x5b53a6=>_0x5b53a6['toJSON']()):_0x539dd3;}['getSuggestion'](_0x175c5a){const _0x2616c9=this['_suggestions']['get'](_0x175c5a);if(!_0x2616c9)throw new _0x2ff5bb('track-changes-suggestion-not-found',this);return _0x2616c9;}['hasSuggestion'](_0xdc79a1){return this['_suggestions']['has'](_0xdc79a1);}['addSuggestionData'](_0x92f40){const {authorId:_0x160eec,id:_0x2a09ee,originalSuggestionId:_0x8b95c3,attributes:_0x3a29db}=_0x92f40,[_0x1bc962,_0x102b5f]=_0x92f40['type']['split'](':'),_0x28ebed=this['_suggestions']['get'](_0x2a09ee)||this['_createSuggestion'](_0x1bc962,_0x102b5f,_0x2a09ee,_0x160eec,_0x3a29db,_0x8b95c3);if(this['_addThreadToSuggestion'](_0x28ebed),this['_checkSuggestionCorrectness'](_0x28ebed,_0x1bc962,_0x102b5f||null,_0x160eec),_0x28ebed['createdAt']=_0x92f40['createdAt'],_0x28ebed['_isDataLoaded']=!0x0,_0x3a29db&&_0x3a29db['@external']){const _0x24c090=_0x3a29db['@external'],_0x23a343=this['_getExternalAuthor'](_0x24c090['authorName']);_0x28ebed['authoredAt']=_0x24c090['createdAt'],_0x28ebed['author']=_0x23a343,_0x28ebed['isExternal']=!0x0;}else _0x28ebed['authoredAt']=_0x92f40['createdAt'];switch(_0x92f40['data']&&(_0x28ebed['data']=_0x92f40['data']),_0x92f40['attributes']&&(_0x28ebed['attributes']=_0x92f40['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x28ebed['_saved']=!0x0),this['_suggestionState']['get'](_0x28ebed)){case'notReady':this['_suggestionState']['set'](_0x28ebed,'dataReady');break;case'markerReady':_0x28ebed['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x28ebed])),this['_refreshSuggestionsChain'](new Set([_0x28ebed])),this['_suggestionState']['set'](_0x28ebed,'ready'),this['fire']('suggestionLoaded',_0x28ebed)):this['_suggestionState']['set'](_0x28ebed,'removed');}return _0x28ebed;}['acceptSuggestion'](_0x83e828){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1b2922 of _0x83e828['getAllAdjacentSuggestions']())_0x1b2922['accept']();});});}['discardSuggestion'](_0x2f18fe){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x38c9ec of _0x2f18fe['getAllAdjacentSuggestions']())_0x38c9ec['discard']();});});}['enableCommand'](_0x4b3357,_0x391cb5){const _0x13f18b=this['editor']['commands']['get'](_0x4b3357);if(!_0x13f18b)throw new _0x2ff5bb('track-changes-command-not-found',this,{'commandName':_0x4b3357});if(this['_enabledCommands']['has'](_0x13f18b))throw new _0x2ff5bb('track-changes-enable-command-twice',this,{'commandName':_0x4b3357});this['_enabledCommands']['add'](_0x13f18b),_0x391cb5&&_0x13f18b['on']('execute',(_0x17c44f,_0x403083)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x403083['length']>0x0&&_0x403083[_0x403083['length']-0x1]&&_0x403083[_0x403083['length']-0x1]['forceDefaultExecution']?_0x403083['pop']():(_0x17c44f['return']=_0x391cb5((..._0x41b92e)=>_0x13f18b['execute'](..._0x41b92e,{'forceDefaultExecution':!0x0}),..._0x403083),_0x17c44f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x472574){let _0x5562d0,_0x350448;const _0x1a13bc=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5562d0=_0x472574();}catch(_0x1d8738){_0x350448=_0x1d8738;}return _0x1a13bc||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x350448&&_0x2ff5bb['rethrowUnexpectedError'](_0x350448,this),_0x5562d0;}['markInsertion'](_0x27e9a9,_0x5b67d3=null,_0x4bafac={}){if(_0x27e9a9['isCollapsed'])return null;const _0x19fbeb=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4bafac['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1b16bb,meta:_0x458804}of this['_findSuggestions'](_0x27e9a9,'insertion'))if(_0x458804['isOwn']){if(!_0x458804['isNextTo']){if(_0x458804['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Yt(_0x1b16bb,_0x4bafac))continue;return _0x1b16bb;}if(Yt(_0x1b16bb,_0x4bafac))return _0x1b16bb;this['_breakSuggestionMarker'](_0x1b16bb,_0x27e9a9['start'],_0x27e9a9['end']);break;}if(_0x5b67d3==_0x1b16bb['subType']&&Yt(_0x1b16bb,_0x4bafac)){const _0x400780=_0x1b16bb['getFirstRange']();return _0x400780['start']['isEqual'](_0x27e9a9['end'])?this['_setSuggestionRange'](_0x1b16bb,this['_model']['createRange'](_0x27e9a9['start'],_0x400780['end'])):this['_setSuggestionRange'](_0x1b16bb,this['_model']['createRange'](_0x400780['start'],_0x27e9a9['end'])),_0x1b16bb;}}const _0x5c9871=_0x145d91(),_0x5e1fdc=_0x19fbeb['id'],_0x46b5d7=_0x5b67d3?'insertion:'+_0x5b67d3:'insertion',_0x2cbadc=this['_setSuggestionData']({'id':_0x5c9871,'type':_0x46b5d7,'createdAt':new Date(),'authorId':_0x5e1fdc,'attributes':_0x4bafac});return this['_addSuggestionMarker'](_0x46b5d7,_0x5c9871,_0x5e1fdc,_0x27e9a9),_0x2cbadc;}['markMultiRangeInsertion'](_0x14923a,_0x349bb4='multi',_0x477e28={}){const _0x147322=this['editor']['plugins']['get']('Users')['me'],_0x1e589f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x349bb4,'join');this['_trackingSessionId']&&(_0x477e28['trackingSessionId']=this['_trackingSessionId']);for(const _0x3b8626 of this['getSuggestions']())if(_0x3b8626['author']['id']==_0x147322['id']&&'insertion'==_0x3b8626['type']&&_0x3b8626['subType']==_0x349bb4&&Yt(_0x3b8626,_0x477e28)&&(_0x1e589f(_0x3b8626['getRanges'](),_0x14923a)||_0x1e589f(_0x14923a,_0x3b8626['getRanges']()))){for(const _0x3ff38a of _0x14923a)_0x3b8626['addRange'](_0x3ff38a);return _0x3b8626;}for(const {suggestion:_0x50119d,meta:_0x1d92ba}of this['_findSuggestions'](_0x14923a,'insertion')){if(!_0x1d92ba['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1d92ba['containsRangeInObject'])continue;if(!Yt(_0x50119d,_0x477e28))continue;let _0x503cb4=!0x0;for(const _0x1cb0dd of _0x50119d['getRanges']())for(const _0x1cfc14 of _0x14923a)if(!_0x1cb0dd['containsRange'](_0x1cfc14)){_0x503cb4=!0x1;break;}if(_0x503cb4)return _0x50119d;}const _0x3b4ad7=_0x145d91(),_0x21d7eb=_0x147322['id'],_0x1cc85b='insertion:'+_0x349bb4,_0x3ace85=this['_setSuggestionData']({'id':_0x3b4ad7,'type':_0x1cc85b,'createdAt':new Date(),'authorId':_0x21d7eb,'attributes':_0x477e28});for(const _0x56fa97 of _0x14923a)this['_addSuggestionMarker'](_0x1cc85b,_0x3b4ad7,_0x21d7eb,_0x56fa97,o['getMultiRangeId']());return _0x3ace85;}['markInlineFormat'](_0x6465cb,_0x2883c9,_0x33983d=null,_0x391b07={}){if(_0x33983d=_0x33983d||Kt(_0x2883c9),_0x6465cb['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x391b07['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3c7760=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x33983d,'accept');return this['forceDefaultExecution'](()=>_0x3c7760([_0x6465cb],_0x2883c9,_0x391b07)),null;}const _0x30b1ff=this['editor']['plugins']['get']('Users')['me'],_0x32a5c7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x403ae6,meta:_0x467ec0}of this['_findSuggestions'](_0x6465cb,'insertion'))_0x467ec0['isOwn']&&!_0x467ec0['isInsideObject']&&_0x32a5c7['push'](..._0x403ae6['getRanges']());}const _0x18787e=function(_0x15e6a3,_0x8d34a4){const _0x56de4c=[];for(const _0x1b2b66 of _0x8d34a4){const _0x1b10f1=_0x15e6a3['getIntersection'](_0x1b2b66);_0x1b10f1&&_0x56de4c['push'](_0x1b10f1);}return _0x56de4c;}(_0x6465cb,_0x32a5c7),_0x24dfc5=function(_0x51de11,_0x6d4264){const _0x5d8d30=[_0x51de11];for(const _0x25bc20 of _0x6d4264){let _0x110308=0x0;for(;_0x110308<_0x5d8d30['length'];){const _0x22928b=_0x5d8d30[_0x110308]['getDifference'](_0x25bc20);_0x5d8d30['splice'](_0x110308,0x1,..._0x22928b),_0x110308+=_0x22928b['length'];}}return _0x5d8d30;}(_0x6465cb,_0x32a5c7);_0x18787e['length']&&this['_model']['change'](()=>{for(const _0x4950c5 of _0x18787e){const _0x55cd99=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x33983d,'accept');this['forceDefaultExecution'](()=>_0x55cd99([_0x4950c5],_0x2883c9,_0x391b07));}});for(const _0x5a4c5e of _0x24dfc5){let _0x17c1bd=null,_0xce23cb=_0x5a4c5e['start'],_0x57c25d=_0x5a4c5e['end'];for(const {suggestion:_0x5c6ccc,meta:_0x2a4337}of this['_findSuggestions'](_0x5a4c5e,'formatInline')){if(!_0x2a4337['isOwn'])continue;if(_0x5c6ccc['subType']!=_0x33983d)continue;if(!Yt(_0x5c6ccc,_0x391b07))continue;const _0x4f35b6=_0x5c6ccc['getFirstRange']();if(_0x4f35b6['containsRange'](_0x5a4c5e,!0x0))return null;_0xce23cb=_0xce23cb['isBefore'](_0x4f35b6['start'])?_0xce23cb:_0x4f35b6['start'],_0x57c25d=_0x57c25d['isAfter'](_0x4f35b6['end'])?_0x57c25d:_0x4f35b6['end'],_0x17c1bd?_0x4f35b6['start']['isBefore'](_0x17c1bd['getFirstRange']()['start'])?(_0x17c1bd['removeMarkers'](),_0x17c1bd=_0x5c6ccc):_0x5c6ccc['removeMarkers']():_0x17c1bd=_0x5c6ccc;}const _0x8451da=this['_model']['createRange'](_0xce23cb,_0x57c25d);if(_0x17c1bd)this['_setSuggestionRange'](_0x17c1bd,_0x8451da);else{const _0x4b856a=_0x145d91(),_0x206873=_0x30b1ff['id'];this['_setSuggestionData']({'id':_0x4b856a,'type':'formatInline:'+_0x33983d,'data':_0x2883c9,'createdAt':new Date(),'authorId':_0x206873,'attributes':_0x391b07}),this['_addSuggestionMarker']('formatInline:'+_0x33983d,_0x4b856a,_0x206873,_0x8451da);}}return null;}['markBlockFormat'](_0x139b17,_0x3f980a,_0x496fd2=[],_0x1e7a3a=null,_0x255412={}){_0x3f980a['formatGroupId']||(_0x3f980a['formatGroupId']=_0x3f980a['commandName']),_0x3f980a['multipleBlocks']=_0x139b17['is']('range'),_0x1e7a3a=_0x1e7a3a||Kt(_0x3f980a);const _0x500020=_0x496fd2['map'](_0x2c87ee=>Wt(_0x2c87ee,this['_model'])),_0x4ee648=_0x139b17['is']('range')?_0x139b17:Wt(_0x139b17,this['_model']);if(this['_trackingSessionId']&&(_0x255412['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xafdeb0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e7a3a,'accept');return this['forceDefaultExecution'](()=>_0xafdeb0([_0x4ee648],_0x3f980a,_0x255412)),null;}_0x500020['push'](_0x4ee648);let _0x452258=!0x0;for(const _0x1aa1f4 of _0x500020)if(!this['_rangeIsInLocalUserInsertion'](_0x1aa1f4)){_0x452258=!0x1;break;}if(_0x452258&&'always'!==this['_trackFormatChanges']){const _0x395be9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e7a3a,'accept');return this['forceDefaultExecution'](()=>_0x395be9([_0x4ee648],_0x3f980a,_0x255412)),null;}let _0x20be15=null,_0x4fe5b5=_0x4ee648['start'],_0x3bee44=_0x4ee648['end'];for(const {suggestion:_0x524855,meta:_0x5a852c}of this['_findSuggestions'](_0x4ee648,'formatBlock')){if(!_0x5a852c['isOwn'])continue;if(_0x5a852c['isNextTo']||_0x5a852c['containsRangeInObject']||_0x5a852c['isInsideObject'])continue;if(_0x524855['data']['formatGroupId']!=_0x3f980a['formatGroupId'])continue;if(!Yt(_0x524855,_0x255412))continue;const _0x5b8ead=_0x524855['getFirstRange']();if(_0x524855['subType']==_0x1e7a3a){if(_0x5b8ead['containsRange'](_0x4ee648,!0x0))return null;_0x4fe5b5=_0x4fe5b5['isBefore'](_0x5b8ead['start'])?_0x4fe5b5:_0x5b8ead['start'],_0x3bee44=_0x3bee44['isAfter'](_0x5b8ead['end'])?_0x3bee44:_0x5b8ead['end'],_0x20be15?_0x5b8ead['start']['isBefore'](_0x20be15['getFirstRange']()['start'])?(_0x20be15['removeMarkers'](),_0x20be15=_0x524855):_0x524855['removeMarkers']():_0x20be15=_0x524855;}else{const _0x18b572=_0x4ee648['getIntersection'](_0x5b8ead);this['_cutOutSuggestionMarker'](_0x524855,_0x18b572);}}const _0x5dce1f=this['editor']['plugins']['get']('Users')['me'],_0x1cc226=_0x145d91(),_0x3e9bd5=_0x5dce1f['id'];if(_0x20be15)return this['_setSuggestionRange'](_0x20be15,this['_model']['createRange'](_0x4fe5b5,_0x3bee44)),_0x20be15;{const _0x35c3c7=this['_setSuggestionData']({'id':_0x1cc226,'type':'formatBlock:'+_0x1e7a3a,'data':_0x3f980a,'createdAt':new Date(),'authorId':_0x3e9bd5,'attributes':_0x255412});return this['_addSuggestionMarker']('formatBlock:'+_0x1e7a3a,_0x1cc226,_0x3e9bd5,this['_model']['createRange'](_0x4fe5b5,_0x3bee44)),_0x35c3c7;}}['markMultiRangeBlockFormat'](_0x3370a7,_0xc5b061,_0x1f832a=[],_0x29712b=null,_0x17dd47={}){_0xc5b061['formatGroupId']||(_0xc5b061['formatGroupId']=_0xc5b061['commandName']);const _0x2e1cd1=_0x3370a7[0x0];_0xc5b061['multipleBlocks']=_0x2e1cd1['is']('range'),_0x29712b=_0x29712b||Kt(_0xc5b061);const _0x59359d=_0x1f832a['map'](_0x4a4bea=>Wt(_0x4a4bea,this['_model'])),_0x284df3=_0x2e1cd1['is']('range')?_0x3370a7:_0x3370a7['map'](_0x480917=>Wt(_0x480917,this['_model']));if(this['_trackingSessionId']&&(_0x17dd47['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4be8c8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29712b,'accept');return this['forceDefaultExecution'](()=>_0x4be8c8(_0x284df3,_0xc5b061,_0x17dd47)),null;}_0x59359d['push'](..._0x284df3);let _0xf892f5=!0x0;for(const _0x4aac9e of _0x59359d)if(!this['_rangeIsInLocalUserInsertion'](_0x4aac9e)){_0xf892f5=!0x1;break;}if(_0xf892f5&&'always'!==this['_trackFormatChanges']){const _0x1d6b0d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29712b,'accept');return this['forceDefaultExecution'](()=>_0x1d6b0d(_0x284df3,_0xc5b061,_0x17dd47)),null;}const _0x516450=this['editor']['plugins']['get']('Users')['me'];for(const _0x12539f of this['getSuggestions']()){if(_0x12539f['author']['id']!=_0x516450['id'])continue;if('formatBlock'!=_0x12539f['type']||_0x12539f['data']['formatGroupId']!=_0xc5b061['formatGroupId'])continue;if(!Yt(_0x12539f,_0x17dd47))continue;const _0x1dd08a=_0x12539f['subType']==_0x29712b;for(let _0x36d021=0x0;_0x36d021<_0x284df3['length'];_0x36d021++){const _0xbc0345=_0x284df3[_0x36d021];for(const _0x50ca22 of _0x12539f['getMarkers']()){const _0x51508a=_0x50ca22['getRange']();if(_0xbc0345['isEqual'](_0x51508a)){_0x1dd08a?(_0x284df3['splice'](_0x36d021,0x1),_0x36d021--):_0x12539f['removeMarker'](_0x50ca22['name']);break;}}}}if(0x0==_0x284df3['length'])return null;const _0x35b245=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29712b,'join');for(const _0x135da5 of this['getSuggestions']())if(_0x135da5['author']['id']==_0x516450['id']&&'formatBlock'==_0x135da5['type']&&_0x135da5['data']['formatGroupId']==_0xc5b061['formatGroupId']&&_0x135da5['subType']==_0x29712b&&Yt(_0x135da5,_0x17dd47)&&(_0x35b245(_0x135da5['getRanges'](),_0x284df3)||_0x35b245(_0x284df3,_0x135da5['getRanges']()))){for(const _0x1f9efd of _0x284df3)_0x135da5['addRange'](_0x1f9efd);return _0x135da5;}const _0x200204=_0x145d91(),_0x2c3dce=_0x516450['id'],_0x2a2b5f='formatBlock:'+_0x29712b,_0x3aaa8c=this['_setSuggestionData']({'id':_0x200204,'type':_0x2a2b5f,'data':_0xc5b061,'createdAt':new Date(),'authorId':_0x2c3dce,'attributes':_0x17dd47});for(const _0x470878 of _0x284df3)this['_addSuggestionMarker'](_0x2a2b5f,_0x200204,_0x2c3dce,_0x470878,o['getMultiRangeId']());return _0x3aaa8c;}['markDeletion'](_0x485965,_0x1174c6=null,_0x582eec={}){if(_0x485965['isCollapsed'])return null;const _0x251177=this['editor']['plugins']['get']('Users')['me'],_0x5482d5=new _0x1f6f9b(_0x485965['start'],_0x485965['end']);this['_trackingSessionId']&&(_0x582eec['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x130a6b,meta:_0x25ca51}of this['_findSuggestions'](_0x5482d5,'insertion'))if(_0x25ca51['isOwn']&&!_0x25ca51['isNextTo']){if(_0x130a6b['isMultiRange']){const _0x4136c7=_0x130a6b['getRanges']()['filter'](_0x4d35bb=>'$graveyard'!=_0x4d35bb['root']['rootName']);_0x4136c7['every'](_0xa6fe0c=>_0x5482d5['containsRange'](_0xa6fe0c,!0x0))&&_0x130a6b['discard']();if(_0x4136c7['some'](_0x481445=>_0x481445['containsRange'](_0x5482d5,!0x0))){const _0x465a66=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1174c6,'accept');return this['forceDefaultExecution'](()=>_0x465a66([_0x5482d5],null,_0x582eec)),null;}}else{const _0x5cebd4=_0x5482d5['getIntersection'](_0x130a6b['getFirstRange']());null!==_0x5cebd4&&_0x130a6b['_onDiscard']([_0x5cebd4],null,_0x582eec);}}if(_0x5482d5['detach'](),_0x5482d5['isCollapsed']||'$graveyard'==_0x5482d5['root']['rootName'])return null;let _0x58833d=null,_0x4e7a88=_0x5482d5['start'],_0x358f9d=_0x5482d5['end'];const _0xcbfe03=this['_findSuggestions'](_0x5482d5,'deletion');for(const {suggestion:_0x3e746c,meta:_0xee36f1}of _0xcbfe03){const _0x5b170b=this['_model']['createRange'](_0x4e7a88,_0x358f9d);if(_0xee36f1['isOwn']&&(this['_mergeNestedSuggestions']||!_0xee36f1['containsRangeInObject']&&!_0xee36f1['isInsideObject'])){if(_0x3e746c['isMultiRange']){if(!Yt(_0x3e746c,_0x582eec))continue;let _0x5e23d7=!0x0;for(const _0x388b03 of _0x3e746c['getRanges']()){if(_0x388b03['containsRange'](_0x5b170b,!0x0))return _0x3e746c;_0x5b170b['containsRange'](_0x388b03)||(_0x5e23d7=!0x1);}_0x5e23d7&&_0x3e746c['discard']();}else{const _0x1663ca=_0x3e746c['getFirstRange']();if(_0x1663ca['containsRange'](_0x5b170b,!0x0))return _0x3e746c;if(!Yt(_0x3e746c,_0x582eec)){_0x5b170b['containsRange'](_0x1663ca)?_0x3e746c['removeMarkers']():_0x1663ca['containsPosition'](_0x4e7a88)?_0x4e7a88=_0x1663ca['end']:_0x1663ca['containsPosition'](_0x358f9d)&&(_0x358f9d=_0x1663ca['start']);continue;}_0x4e7a88=_0x4e7a88['isBefore'](_0x1663ca['start'])?_0x4e7a88:_0x1663ca['start'],_0x358f9d=_0x358f9d['isAfter'](_0x1663ca['end'])?_0x358f9d:_0x1663ca['end'],_0x582eec=Object['assign']({},_0x3e746c['attributes']),_0x58833d?_0x1663ca['start']['isBefore'](_0x58833d['getFirstRange']()['start'])?(_0x58833d['removeMarkers'](),_0x58833d=_0x3e746c):_0x3e746c['removeMarkers']():_0x58833d=_0x3e746c;}}}if(_0x58833d)return this['_setSuggestionRange'](_0x58833d,this['_model']['createRange'](_0x4e7a88,_0x358f9d)),_0x58833d;{const _0x564e84=_0x145d91(),_0x2edfc3=this['_model']['createRange'](_0x4e7a88,_0x358f9d),_0x1fab2e=_0x251177['id'],_0x14d937=_0x1174c6?'deletion:'+_0x1174c6:'deletion',_0x16f6f9=this['_setSuggestionData']({'id':_0x564e84,'type':_0x14d937,'createdAt':new Date(),'authorId':_0x1fab2e,'attributes':_0x582eec});return this['_addSuggestionMarker'](_0x14d937,_0x564e84,_0x1fab2e,_0x2edfc3),_0x16f6f9;}}['markMultiRangeDeletion'](_0x3061cc,_0x419c68='multi',_0x2b1f7={}){const _0x1c7955=this['editor']['plugins']['get']('Users')['me'],_0x5c0217=_0x3061cc['map'](_0x3c0c26=>new _0x1f6f9b(_0x3c0c26['start'],_0x3c0c26['end'])),_0x4185af=new Set();this['_trackingSessionId']&&(_0x2b1f7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x56f44d,meta:_0x41d5e1}of this['_findSuggestions'](_0x5c0217,'insertion'))_0x41d5e1['isOwn']&&!_0x41d5e1['isNextTo']&&_0x4185af['add'](_0x56f44d);for(const _0x3ee3dd of _0x4185af)if(_0x3ee3dd['isMultiRange']){const _0x97027c=_0x3ee3dd['getRanges']();(!_0x3ee3dd['attributes']||!_0x3ee3dd['attributes']['skipNestingCheck'])&&(_0x97027c['every'](_0x4d00dc=>_0x5c0217['some'](_0x10a0af=>_0x10a0af['containsRange'](_0x4d00dc,!0x0)))&&_0x3ee3dd['discard']());if(_0x5c0217['every'](_0x4e08be=>_0x97027c['some'](_0x58ecf3=>_0x58ecf3['containsRange'](_0x4e08be,!0x0)))){const _0x534064=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x419c68,'accept');return this['forceDefaultExecution'](()=>_0x534064(_0x3061cc,null,_0x2b1f7)),null;}}else{const _0x42a744=_0x3ee3dd['getFirstRange']();_0x5c0217['some'](_0x29d675=>_0x29d675['containsRange'](_0x42a744,!0x0))&&_0x3ee3dd['discard']();if(_0x5c0217['every'](_0x111de5=>_0x42a744['containsRange'](_0x111de5,!0x0))){const _0x37676d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x419c68,'accept');return this['forceDefaultExecution'](()=>_0x37676d(_0x5c0217,null,_0x2b1f7)),null;}}const _0x1693eb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x419c68,'join');let _0x429dce=null;for(const _0x4d16c7 of this['getSuggestions']())if(_0x4d16c7['author']['id']==_0x1c7955['id']&&_0x4d16c7['isInContent']&&'deletion'==_0x4d16c7['type']&&_0x4d16c7['subType']==_0x419c68&&Yt(_0x4d16c7,_0x2b1f7)&&(_0x1693eb(_0x4d16c7['getRanges'](),_0x5c0217)||_0x1693eb(_0x5c0217,_0x4d16c7['getRanges']()))){if(_0x429dce){if(_0x4d16c7['commentThread']&&_0x4d16c7['commentThread']['length'])continue;for(const _0x486df2 of _0x4d16c7['getRanges']())_0x429dce['isIntersectingWithRange'](_0x486df2)||_0x429dce['addRange'](_0x486df2);_0x4d16c7['removeMarkers']();}else{_0x429dce=_0x4d16c7;for(const _0x262586 of _0x5c0217)_0x4d16c7['isIntersectingWithRange'](_0x262586)||_0x4d16c7['addRange'](_0x262586);}}if(_0x429dce)return _0x429dce;_0x4185af['clear']();for(const {suggestion:_0x470972,meta:_0x151d4c}of this['_findSuggestions'](_0x5c0217,'deletion'))_0x151d4c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x151d4c['containsRangeInObject']&&!_0x151d4c['isInsideObject'])&&Yt(_0x470972,_0x2b1f7)&&_0x4185af['add'](_0x470972);for(const _0x5e11d9 of _0x4185af){const _0x510171=_0x5e11d9['getRanges']();if(!_0x2b1f7||!_0x2b1f7['skipNestingCheck']){if(_0x5c0217['every'](_0x4643d0=>_0x510171['some'](_0x225d31=>_0x225d31['containsRange'](_0x4643d0,!0x0))))return _0x5e11d9;}(!_0x5e11d9['attributes']||!_0x5e11d9['attributes']['skipNestingCheck'])&&(_0x510171['every'](_0x17562b=>_0x5c0217['some'](_0x526c12=>_0x526c12['containsRange'](_0x17562b,!0x0)))&&_0x5e11d9['discard']());}const _0x1e2c3e=_0x145d91(),_0x4bb8d6=_0x1c7955['id'],_0x540a51='deletion:'+_0x419c68,_0x15541b=this['_setSuggestionData']({'id':_0x1e2c3e,'type':_0x540a51,'createdAt':new Date(),'authorId':_0x4bb8d6,'attributes':_0x2b1f7});for(const _0x308701 of _0x5c0217)_0x308701['detach'](),_0x308701['isCollapsed']||'$graveyard'==_0x308701['root']['rootName']||this['_addSuggestionMarker'](_0x540a51,_0x1e2c3e,_0x4bb8d6,_0x308701,o['getMultiRangeId']());return _0x15541b;}['markAttributeChange'](_0x71f5cf,_0x1d4713,_0x1b20df,_0x3dd492,_0x43c32b){if(_0x71f5cf['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5484b0=this['editor']['plugins']['get']('Users')['me']['id'],_0x2fa71c=Array['from'](this['_suggestions']['values']())['filter'](_0x4ce141=>'attribute'==_0x4ce141['type']&&_0x4ce141['data']['key']==_0x1d4713&&_0x4ce141['isIntersectingWithRange'](_0x71f5cf));if(this['_trackingSessionId']&&(_0x43c32b['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5f49a2=this['_findSuggestions'](_0x71f5cf,'insertion')['filter'](({meta:_0x245035})=>_0x245035['isOwn']&&!_0x245035['isInsideObject']&&!_0x245035['isNextTo'])['map'](({suggestion:_0x1d550c})=>_0x1d550c);_0x2fa71c['unshift'](..._0x5f49a2);}const _0x1e1e5f=new Map([[_0x71f5cf,_0x1b20df]]);for(const _0x2aeae0 of _0x2fa71c){const _0x596560='attribute'==_0x2aeae0['type']?_0x2aeae0['data']['oldValue']:void 0x0,_0x4a4285=_0x2aeae0['getFirstRange'](),_0x3fede3=Array['from'](_0x1e1e5f['keys']())['find'](_0x2b3bd5=>_0x2b3bd5['isIntersecting'](_0x4a4285));if(!_0x3fede3)continue;const _0x10ac00=_0x3fede3['getDifference'](_0x4a4285);this['_isBlockAttribute'](_0x1d4713)&&'insertion'==_0x2aeae0['type']&&0x0!=_0x10ac00['length']||(_0x1e1e5f['delete'](_0x3fede3),_0x10ac00['forEach'](_0x1b36ca=>{_0x1e1e5f['set'](_0x1b36ca,_0x1b20df);}),'insertion'!=_0x2aeae0['type']&&_0x596560!=_0x3dd492&&_0x1e1e5f['set'](_0x3fede3['getIntersection'](_0x4a4285),_0x596560));}const _0x577e12=[];for(const [_0x3ea747,_0x9d5880]of _0x1e1e5f){const _0x3f6557=_0x145d91(),_0x3df515={'key':_0x1d4713,'oldValue':_0x9d5880,'newValue':_0x3dd492};_0x1d4713['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':_0x1d4713});const _0x4ebcde=('attribute:'+(_0x1d4713+'|'+Kt({'newValue':_0x3dd492})))['substring'](0x0,0x3c),_0x1e15c4=this['_setSuggestionData']({'id':_0x3f6557,'type':_0x4ebcde,'data':_0x3df515,'createdAt':new Date(),'authorId':_0x5484b0,'attributes':_0x43c32b});_0x577e12['push'](_0x1e15c4),this['_addSuggestionMarker'](_0x4ebcde,_0x3f6557,_0x5484b0,_0x3ea747);}return _0x577e12;}['enableDefaultAttributesIntegration'](_0x11a923){this['enableCommand'](_0x11a923,(_0x229edd,..._0x87a590)=>{this['_recordAttributeChanges'](()=>{_0x229edd(..._0x87a590);});});}['registerBlockAttribute'](_0x2bc314){this['_blockAttributeKeys']['add'](_0x2bc314);}['registerInlineAttribute'](_0x3e9e4f){this['_inlineAttributeKeys']['add'](_0x3e9e4f);}['startTrackingSession'](_0x521a85){return this['_trackingSessionId']=void 0x0!==_0x521a85?_0x521a85:_0x145d91(),this['_trackingSessionId'];}['_getAttributeKey'](_0x135c27){return'attribute'==_0x135c27['type']?_0x135c27['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5ed3f0,_0x1c310d){const _0xbb7b4f=_0x5ed3f0['getFirstMarker']();this['_model']['change'](_0x409798=>{_0x409798['updateMarker'](_0xbb7b4f,{'range':_0x1c310d});});}['_addThreadToSuggestion'](_0x527b3b){const _0x5788cd=_0x527b3b['id'],_0x4b76b6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5788cd)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4b76b6,'threadId':_0x5788cd,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x49624c=this['_commentsRepository']['getCommentThread'](_0x5788cd);_0x49624c['unbind']('isRemovable'),_0x49624c['isRemovable']=!0x1,_0x527b3b['commentThread']=_0x49624c;}['_checkSuggestionCorrectness'](_0x1b1652,_0x123d55,_0x28a95f,_0x5dd8c5){if(_0x1b1652['type']!=_0x123d55||_0x1b1652['subType']!=_0x28a95f||_0x1b1652['creator']['id']!=_0x5dd8c5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2ff5bb('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1fd434,_0x2601f6){const _0x2468d1=_0x1fd434['getFirstRange']();if(_0x2601f6['isEqual'](_0x2468d1))_0x1fd434['removeMarkers']();else{if(_0x2468d1['containsRange'](_0x2601f6)){const _0x803894=this['_model']['createPositionAt'](_0x2601f6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1fd434,this['_model']['createRange'](_0x2468d1['start'],_0x803894));const _0x28cea9=_0x145d91(),_0x58e0b3=_0x1fd434['creator']['id'],_0x5cbe61=_0x1fd434['type']+':'+_0x1fd434['subType'];this['_setSuggestionData']({'id':_0x28cea9,'type':_0x5cbe61,'createdAt':new Date(),'authorId':_0x58e0b3,'data':_0x1fd434['data'],'attributes':_0x1fd434['attributes']});const _0x21ff98=this['_model']['createPositionAt'](_0x2601f6['end']['parent'],'after'),_0xb59be6=this['_model']['createRange'](_0x21ff98,_0x2468d1['end']);this['_addSuggestionMarker'](_0x5cbe61,_0x28cea9,_0x58e0b3,_0xb59be6);}else{if(_0x2468d1['containsPosition'](_0x2601f6['start'])){const _0x4c8ac9=this['_model']['createPositionAt'](_0x2601f6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1fd434,this['_model']['createRange'](_0x2468d1['start'],_0x4c8ac9));}else{const _0x402318=this['_model']['createPositionAt'](_0x2601f6['end']['parent'],'after');this['_setSuggestionRange'](_0x1fd434,this['_model']['createRange'](_0x402318,_0x2468d1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5abd0c){for(const {suggestion:_0x25b1d6,meta:_0x318603}of this['_findSuggestions'](_0x5abd0c,'insertion')){if(!_0x318603['isOwn'])continue;const _0x267023=_0x25b1d6['getRanges']();for(const _0x1007c3 of _0x267023)if(!_0x5abd0c['getDifference'](_0x1007c3)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x13f263){const _0x28c15c=this['editor']['plugins']['get']('Users')['getUser'](_0x13f263);if(!_0x28c15c)throw new _0x2ff5bb('track-changes-user-not-found',this);return _0x28c15c;}['_getExternalAuthor'](_0xebff09){const _0x25159e=this['editor']['plugins']['get']('Users'),_0x34775c=_0x277fad('external:'+_0xebff09),_0xb58b5d=_0x25159e['getUser'](_0x34775c);return _0xb58b5d||_0x25159e['addUser']({'id':_0x34775c,'name':_0xebff09});}['_createSuggestion'](_0x44c66d,_0x54052d,_0x4a88c9,_0x1d8060,_0x19f86d,_0x1221ae){const _0x5b7282=this['_getAuthorFromId'](_0x1d8060),_0x4f975d=this['_suggestionFactory']['buildSuggestion'](_0x44c66d,_0x54052d,_0x4a88c9,_0x5b7282,_0x19f86d,_0x1811df=>{this['_updateSuggestionData'](_0x4a88c9,{'attributes':_0x1811df});const _0x57fd22=this['getSuggestion'](_0x4a88c9);this['_joinWithAdjacentSuggestions'](new Set([_0x57fd22])),this['_refreshSuggestionsChain'](new Set([_0x57fd22]));},_0x1221ae);return this['listenTo'](_0x4f975d,'accept',()=>{this['_updateSuggestionData'](_0x4a88c9,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4f975d,'discard',()=>{this['_updateSuggestionData'](_0x4a88c9,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4a88c9,_0x4f975d),this['_suggestionState']['set'](_0x4f975d,'notReady'),_0x4f975d;}['_splitMarkerName'](_0x23711f){const _0x32465c=_0x23711f['split'](':');return{'group':_0x32465c[0x0],'type':_0x32465c[0x1],'subType':_0x32465c['length']>=0x5?_0x32465c[0x2]:null,'id':_0x32465c['length']<0x5?_0x32465c[0x2]:_0x32465c[0x3],'authorId':_0x32465c['length']<0x5?_0x32465c[0x3]:_0x32465c[0x4],'markerCount':0x6==_0x32465c['length']?_0x32465c[0x5]:null};}['_breakSuggestionMarker'](_0x46fe3c,_0x23cd97,_0x2efe23){const _0x7faa39=_0x46fe3c['getFirstRange'](),_0x528e3f=_0x7faa39['start'],_0x383b65=_0x7faa39['end'];this['_setSuggestionRange'](_0x46fe3c,this['_model']['createRange'](_0x528e3f,_0x23cd97));const _0x252181=_0x145d91(),_0x260354=_0x46fe3c['creator']['id'],_0x3488c5=_0x46fe3c['type']+(_0x46fe3c['subType']?':'+_0x46fe3c['subType']:'');this['_setSuggestionData']({'id':_0x252181,'type':_0x3488c5,'createdAt':new Date(),'authorId':_0x260354,'originalSuggestionId':_0x46fe3c['_originalSuggestionId']||_0x46fe3c['id'],'attributes':_0x46fe3c['attributes'],'data':_0x46fe3c['data']});const _0x5ec46f=this['_getAttributeKey'](_0x46fe3c);('formatBlock'==_0x46fe3c['type']||_0x5ec46f&&this['_isBlockAttribute'](_0x5ec46f))&&(_0x2efe23=this['_model']['createPositionBefore'](_0x2efe23['parent'])),this['_addSuggestionMarker'](_0x3488c5,_0x252181,_0x260354,this['_model']['createRange'](_0x2efe23,_0x383b65));}['_findSuggestions'](_0x5201f0,_0x147702=null){const _0x49de76=[],_0x1d0c5c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5201f0)||(_0x5201f0=[_0x5201f0]);for(const _0x560ada of this['getSuggestions']()){if(!_0x560ada['isInContent'])continue;if(_0x147702&&_0x560ada['type']!=_0x147702)continue;let _0x2ad1e6=!0x1;for(const _0x1e9eed of _0x560ada['getRanges']()){for(const _0x1d2a94 of _0x5201f0){const _0x27713c=_0x1d2a94['start']['isEqual'](_0x1e9eed['end'])||_0x1d2a94['end']['isEqual'](_0x1e9eed['start']);if(_0x27713c||_0x1d2a94['getIntersection'](_0x1e9eed)){const _0x4114a2=_0x1d2a94['containsRange'](_0x1e9eed)&&Gt(this['_model']['schema'],_0x1e9eed['start'],_0x1d2a94),_0x320fef=_0x1e9eed['containsRange'](_0x1d2a94)&&Gt(this['_model']['schema'],_0x1d2a94['start'],_0x1e9eed);_0x49de76['push']({'suggestion':_0x560ada,'meta':{'isOwn':_0x1d0c5c==_0x560ada['author'],'isNextTo':_0x27713c,'isInsideObject':_0x4114a2,'containsRangeInObject':_0x320fef}}),_0x2ad1e6=!0x0;break;}}if(_0x2ad1e6)break;}}return _0x49de76;}['_addSuggestionMarker'](_0x5688b1,_0x449bea,_0x4e1167,_0x38b6dd,_0x487e96){this['_model']['change'](_0x209029=>{let _0x2b6c5d='suggestion:'+_0x5688b1+':'+_0x449bea+':'+_0x4e1167;_0x487e96&&(_0x2b6c5d=_0x2b6c5d+':'+_0x487e96),_0x209029['addMarker'](_0x2b6c5d,{'range':_0x38b6dd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4afd36){const _0xff4518=_0x4afd36['previous'],_0x22e2f6=_0x4afd36['next'];_0x4afd36['previous']=null,_0x4afd36['next']=null,null!=_0xff4518&&_0xff4518['next']==_0x4afd36&&(_0xff4518['next']=_0x22e2f6),null!=_0x22e2f6&&_0x22e2f6['previous']==_0x4afd36&&(_0x22e2f6['previous']=_0xff4518),'ready'==this['_suggestionState']['get'](_0x4afd36)&&(this['_suggestionState']['set'](_0x4afd36,'removed'),this['fire']('suggestionUnloaded',_0x4afd36,_0xff4518,_0x22e2f6));}['_setSuggestionData'](_0x50121c){const _0x553dbc=_0x50121c['id'],_0x3f9309=this['addSuggestionData'](_0x50121c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x190cd3=this['editor']['plugins']['get']('PendingActions'),_0x24b296=_0x3f9309['hasComments'],_0x402ebf=_0x3f9309['subType']?_0x3f9309['type']+':'+_0x3f9309['subType']:_0x3f9309['type'],_0x57e6af=this['editor']['locale'],_0xf215b9=_0x190cd3['add'](c(_0x57e6af,'PENDING_ACTION_SUGGESTION')),_0x47091d={'id':_0x553dbc,'type':_0x402ebf,'hasComments':_0x24b296,'data':_0x50121c['data']||null,'originalSuggestionId':_0x50121c['originalSuggestionId']||null,'attributes':_0x3f9309['attributes']};this['_adapter']['addSuggestion'](_0x47091d)['then'](_0x1ff35d=>{_0x3f9309['_saved']=!0x0,_0x190cd3['remove'](_0xf215b9),_0x1ff35d&&_0x1ff35d['createdAt']&&(this['_suggestions']['get'](_0x553dbc)['createdAt']=_0x1ff35d['createdAt']);})['catch'](_0x49ec89=>{throw _0x50a716('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3f9309['discard']();}),_0x3f9309['stopListening'](),this['_suggestions']['delete'](_0x3f9309['id']),this['_suggestionState']['delete'](_0x3f9309),_0x49ec89;});}return _0x3f9309;}['_isBlockAttribute'](_0x106675){return this['_blockAttributeKeys']['has'](_0x106675);}['_updateSuggestionData'](_0xcf8bfd,_0x34e852){const _0x29fc0b=this['editor']['plugins']['get']('PendingActions'),_0xab73b0=this['getSuggestion'](_0xcf8bfd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xab73b0['_saved']){const _0x16a81e=_0x29fc0b['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xcf8bfd,_0x34e852)['then'](()=>{_0x29fc0b['remove'](_0x16a81e);});}else _0xab73b0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xcf8bfd,_0x34e852);});}}['_getSuggestionData'](_0x2fbe96){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2ff5bb('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2fbe96);}['_handleNewSuggestionMarker'](_0x2e3472){const {id:_0x5a8adc,type:_0xfcb2d7,subType:_0xc18e93,authorId:_0x194d73}=this['_splitMarkerName'](_0x2e3472),_0x3c87d9=this['_suggestions']['get'](_0x5a8adc)||this['_createSuggestion'](_0xfcb2d7,_0xc18e93,_0x5a8adc,_0x194d73,{});switch(this['_checkSuggestionCorrectness'](_0x3c87d9,_0xfcb2d7,_0xc18e93,_0x194d73),this['_suggestionState']['get'](_0x3c87d9)){case'notReady':this['_getSuggestionData'](_0x5a8adc)['then'](_0x13769f=>{let _0x515995=Promise['resolve']();_0x13769f['hasComments']&&(_0x515995=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a8adc})),_0x515995['then'](()=>{this['addSuggestionData'](_0x13769f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3c87d9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a8adc,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3c87d9,'ready'),this['fire']('suggestionLoaded',_0x3c87d9);break;case'ready':this['fire']('suggestionChanged',_0x3c87d9);}return _0x3c87d9['addMarkerName'](_0x2e3472),_0x3c87d9;}['_refreshSuggestionsChain'](_0x41332b){const _0x568c6e=Array['from'](_0x41332b),_0x498280=_0x568c6e['filter'](_0x3736d6=>'attribute'==_0x3736d6['type']);this['_refreshAttributeSuggestionsChain'](_0x498280);const _0x48bb14=_0x568c6e['filter'](_0x269065=>!_0x269065['isMultiRange']&&'attribute'!=_0x269065['type']),_0x4f53d1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59bd11=>!_0x59bd11['isMultiRange']&&'attribute'!=_0x59bd11['type']),_0x256364=_0x4f53d1['filter'](_0x3f2cb0=>!_0x41332b['has'](_0x3f2cb0)),_0x3a6bc6=new Map(_0x4f53d1['map'](_0x352e6a=>[_0x352e6a,this['_suggestionFactory']['getSuggestionCallback'](_0x352e6a['type'],_0x352e6a['subType'],'chain')])),_0x29b4d2=new Map(_0x4f53d1['map'](_0x16bd70=>[_0x16bd70,_0x16bd70['getFirstRange']()])),_0x5b661e=new Set(),_0x20860f=new Set();for(let _0x29cd27=0x0;_0x29cd27<_0x48bb14['length'];_0x29cd27++)_0xc7774a(_0x48bb14[_0x29cd27],_0x48bb14,_0x29cd27+0x1);for(let _0x10bc49=0x0;_0x10bc49<_0x48bb14['length'];_0x10bc49++)_0xc7774a(_0x48bb14[_0x10bc49],_0x256364,0x0);const _0x22983a=new Set();for(let _0x2c15e7=0x0;_0x2c15e7<_0x48bb14['length'];_0x2c15e7++){const _0x2cbec8=_0x48bb14[_0x2c15e7];!_0x20860f['has'](_0x2cbec8)&&_0x2cbec8['previous']&&(_0x22983a['add'](_0x2cbec8['previous']),_0x2cbec8['previous']['next']===_0x2cbec8&&(_0x2cbec8['previous']['next']=null),_0x2cbec8['previous']=null),!_0x5b661e['has'](_0x2cbec8)&&_0x2cbec8['next']&&(_0x22983a['add'](_0x2cbec8['next']),_0x2cbec8['next']['previous']===_0x2cbec8&&(_0x2cbec8['next']['previous']=null),_0x2cbec8['next']=null);}function _0xc7774a(_0x1f84d5,_0x103459,_0x51adb3){for(let _0x3e9975=_0x51adb3;_0x3e9975<_0x103459['length'];_0x3e9975++){const _0x1ae89c=_0x3b309b(_0x1f84d5,_0x103459[_0x3e9975]);_0x1ae89c&&(_0x1ae89c[0x0]['next']=_0x1ae89c[0x1],_0x1ae89c[0x1]['previous']=_0x1ae89c[0x0],_0x5b661e['add'](_0x1ae89c[0x0]),_0x20860f['add'](_0x1ae89c[0x1]));}}function _0x3b309b(_0x3bfaf0,_0x3bd8b5){if(_0x3bfaf0['author']['id']!==_0x3bd8b5['author']['id'])return null;const _0x4a0c0a=_0x3a6bc6['get'](_0x3bfaf0)(_0x3bfaf0,_0x3bd8b5,_0x29b4d2['get'](_0x3bfaf0),_0x29b4d2['get'](_0x3bd8b5));if(!_0x4a0c0a)return null;return _0x3a6bc6['get'](_0x3bd8b5)(_0x3bfaf0,_0x3bd8b5,_0x29b4d2['get'](_0x3bfaf0),_0x29b4d2['get'](_0x3bd8b5))?_0x4a0c0a[0x1]['commentThread']&&_0x4a0c0a[0x1]['commentThread']['length']?null:_0x4a0c0a:null;}_0x22983a['size']&&this['_refreshSuggestionsChain'](_0x22983a);}['_refreshAttributeSuggestionsChain'](_0x395dda){if(0x0==_0x395dda['length'])return;const _0x3abfe5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b02d7=>'attribute'==_0x2b02d7['type']&&_0x2b02d7['_isDataLoaded']),_0x1ba0f0=[],_0x37603c=new Map();for(const _0x4d56a0 of _0x3abfe5){const _0x298517=_0x277fad(_0x4d56a0['attributes']);_0x37603c['has'](_0x298517)||(_0x37603c['set'](_0x298517,_0x1ba0f0['length']),_0x1ba0f0['push']([]));const _0x275395=_0x37603c['get'](_0x298517);_0x1ba0f0[_0x275395]['push'](_0x4d56a0);}!(function(){_0x1ba0f0['sort']((_0x49ea5f,_0x3890d6)=>{const _0x541727=_0x49ea5f[0x0]['createdAt'],_0x53fa94=_0x3890d6[0x0]['createdAt'];return _0x541727==_0x53fa94?_0x49ea5f[0x0]['attributes']['groupId']<_0x3890d6[0x0]['attributes']['groupId']?-0x1:0x1:_0x541727<_0x53fa94?-0x1:0x1;});for(const _0x36de37 of _0x1ba0f0)_0x36de37['sort']((_0x9729b5,_0x304cf3)=>_0x9729b5['id']<_0x304cf3['id']?-0x1:0x1);}());for(let _0x144801=0x0;_0x144801<_0x1ba0f0['length'];_0x144801++){if(0x0==_0x1ba0f0[_0x144801]['length'])continue;const _0x11b60c=[];for(let _0x2313cf=_0x144801+0x1;_0x2313cf<_0x1ba0f0['length'];_0x2313cf++)0x0!=_0x1ba0f0[_0x2313cf]['length']&&_0xe4c844(_0x1ba0f0[_0x144801],_0x1ba0f0[_0x2313cf])&&_0x11b60c['push'](_0x2313cf);for(const _0x3fb1ab of _0x11b60c)_0x1ba0f0[_0x144801]=_0x1ba0f0[_0x144801]['concat'](_0x1ba0f0[_0x3fb1ab]),_0x1ba0f0[_0x3fb1ab]=[];}for(const _0x84e991 of _0x1ba0f0)for(let _0x149e7a=0x0;_0x149e7a<_0x84e991['length'];_0x149e7a++){const _0x2cb973=_0x84e991[_0x149e7a+0x1]||null;_0x84e991[_0x149e7a]['next']!==_0x2cb973&&(_0x84e991[_0x149e7a]['next']=_0x2cb973);}for(const _0x1b34ef of _0x1ba0f0)for(let _0x31fd77=0x0;_0x31fd77<_0x1b34ef['length'];_0x31fd77++){const _0x2c4c91=_0x1b34ef[_0x31fd77-0x1]||null;_0x1b34ef[_0x31fd77]['previous']!==_0x2c4c91&&(_0x1b34ef[_0x31fd77]['previous']=_0x2c4c91);}function _0xe4c844(_0x306634,_0x14bed7){if(_0x306634[0x0]['attributes']['groupId']!==_0x14bed7[0x0]['attributes']['groupId']&&_0x306634[0x0]['author']!==_0x14bed7[0x0]['author'])return!0x1;if(!function(_0x293232,_0x28ffd7){if(!_0x293232['hasComments']&&!_0x28ffd7['hasComments'])return!0x0;if(_0x293232['hasComments']&&_0x28ffd7['hasComments'])return!0x1;if(_0x293232['hasComments']&&_0x28ffd7['createdAt']<_0x293232['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x28ffd7['hasComments']&&_0x293232['createdAt']<_0x28ffd7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x306634[0x0],_0x14bed7[0x0]))return!0x1;const _0x192145=Ft(_0x306634[0x0]['attributes'],['groupId','trackingSessionId']),_0x5baef1=Ft(_0x14bed7[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xdf7095(_0x192145,_0x5baef1))return!0x1;if(_0x306634[0x0]['attributes']['groupId']==_0x14bed7[0x0]['attributes']['groupId'])return!0x0;if(_0x306634[0x0]['attributes']['trackingSessionId']!==_0x14bed7[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x306634['every'](_0x4bb30a=>_0x14bed7['some'](_0xc2e7be=>_0x4bb30a['getFirstRange']()['isEqual'](_0xc2e7be['getFirstRange']())))&&_0x14bed7['every'](_0x14707f=>_0x306634['some'](_0x275a21=>_0x14707f['getFirstRange']()['isEqual'](_0x275a21['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xe9eb11){const _0x3ab196=Array['from'](_0xe9eb11),_0x1c84a1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x328164=_0x1c84a1['filter'](_0x323445=>!_0xe9eb11['has'](_0x323445)),_0x5da766=new Map(_0x3ab196['map'](_0x49207b=>[_0x49207b,this['_suggestionFactory']['getSuggestionCallback'](_0x49207b['type'],_0x49207b['subType'],'join')])),_0x4c1eda=new Map(_0x1c84a1['map'](_0x30f49e=>[_0x30f49e,_0x30f49e['getRanges']()]));for(let _0x33772b=0x0;_0x33772b<_0x3ab196['length'];_0x33772b++){if(_0xb3e751(this,_0x3ab196[_0x33772b],_0x3ab196,_0x33772b+0x1))return!0x0;}for(let _0x9aa0cb=0x0;_0x9aa0cb<_0x3ab196['length'];_0x9aa0cb++){if(_0xb3e751(this,_0x3ab196[_0x9aa0cb],_0x328164,0x0))return!0x0;}return!0x1;function _0xb3e751(_0x5af69b,_0x39a555,_0x2b6238,_0xd357a8){for(let _0x42cab7=_0xd357a8;_0x42cab7<_0x2b6238['length'];_0x42cab7++){const _0x29f08f=_0x2b6238[_0x42cab7];if(_0x29f08f['type']!==_0x39a555['type']||_0x29f08f['author']['id']!==_0x39a555['author']['id']||_0x29f08f['subType']!==_0x39a555['subType'])continue;if(!Xt(_0x39a555,_0x29f08f))continue;if('attribute'==_0x39a555['type']&&_0x39a555['data']['oldValue']!=_0x29f08f['data']['oldValue'])continue;if('attribute'==_0x39a555['type']&&_0x5af69b['_isBlockAttribute'](_0x39a555['data']['key']))continue;if('formatBlock'==_0x39a555['type']){const _0x2b8f7a=_0x5af69b['editor']['model'],_0x1f6274=_0x39a555['getContainedElement']();if(_0x1f6274&&(_0x2b8f7a['schema']['isObject'](_0x1f6274)||_0x2b8f7a['schema']['isLimit'](_0x1f6274)))continue;}const _0x3fc4ae=_0x5da766['get'](_0x39a555),_0x4c8655=_0x4c1eda['get'](_0x39a555),_0x585e40=_0x4c1eda['get'](_0x29f08f),_0x570407=_0x39a555['commentThread']&&_0x39a555['commentThread']['length'],_0x37174e=_0x29f08f['commentThread']&&_0x29f08f['commentThread']['length'];if(!_0x570407&&_0x3fc4ae(_0x585e40,_0x4c8655))return _0x5af69b['_joinSuggestions'](_0x29f08f,_0x39a555),_0x4c1eda['delete'](_0x39a555),!0x0;if(!_0x37174e&&_0x3fc4ae(_0x4c8655,_0x585e40))return _0x5af69b['_joinSuggestions'](_0x39a555,_0x29f08f),_0x4c1eda['delete'](_0x29f08f),!0x0;}return!0x1;}}['_joinSuggestions'](_0xf2eb16,_0x3e951a){if(_0xf2eb16['isMultiRange']){for(const _0x500821 of _0x3e951a['getRanges']())_0xf2eb16['addRange'](_0x500821);}else{const _0x4d1097=_0x3e951a['getFirstRange']()['end'];this['_setSuggestionRange'](_0xf2eb16,this['_model']['createRange'](_0xf2eb16['getFirstRange']()['start'],_0x4d1097));}_0x3e951a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3ef3a8,_0x2babf4,_0x27dd74){const _0x337b87=_0x3ef3a8['startsWith']('format')||_0x3ef3a8['startsWith']('attribute')?'FORMATTING':_0x3ef3a8['toUpperCase']();return c(this['editor']['locale'],_0x2babf4+'_'+_0x337b87+'_SUGGESTION_ANNOUNCEMENT',_0x27dd74);}['_initAriaMarkerChangeAnnouncements'](){const _0x256198=this['editor'];if(!_0x256198['ui'])return;const {ariaLiveAnnouncer:_0x3df689}=_0x256198['ui'];_0x268fc9(this['_model'],({left:_0x1b6091,entered:_0x132886})=>{for(const _0x520500 of _0x1b6091){const {group:_0x3d6230,type:_0x501f9d}=this['_splitMarkerName'](_0x520500['name']);if('suggestion'===_0x3d6230){_0x3df689['announce'](this['_getMarkerAnnouncementText'](_0x501f9d,'LEAVE'));break;}}for(const _0x8e6b3c of _0x132886){const {group:_0x33112e,type:_0x140b9c}=this['_splitMarkerName'](_0x8e6b3c['name']);if('suggestion'===_0x33112e){_0x3df689['announce'](this['_getMarkerAnnouncementText'](_0x140b9c,'ENTER',_0x596155(_0x692b0e)));break;}}});}['_processAttributeChanges'](_0x3ec479){if(this['_recordAttributeSuggestions'])return!0x1;const _0x113a3a=this['editor'],_0x3dbad5=_0x113a3a['model']['document']['differ']['getChanges']();if(0x0==_0x3dbad5['length'])return!0x1;const _0x11ade8=[],_0x5af55a=_0x3dbad5['filter'](_0xc04bd=>'attribute'==_0xc04bd['type']),_0x2ed024=_0x3dbad5['filter'](_0x13f955=>'insert'==_0x13f955['type']&&'$text'!=_0x13f955['name']),_0x5ef99b=_0x3dbad5['filter'](_0x2967ce=>'remove'==_0x2967ce['type']&&'$text'!=_0x2967ce['name']);for(const _0x3af4b7 of _0x5af55a)_0x11ade8['push']({'key':_0x3af4b7['attributeKey'],'newValue':_0x3af4b7['attributeNewValue'],'oldValue':_0x3af4b7['attributeOldValue'],'range':zt(_0x3af4b7['range'],_0x113a3a['model'])});for(const _0x512657 of _0x2ed024){const _0x2f9432=_0x5ef99b['find'](_0x264aba=>_0x264aba['position']['isEqual'](_0x512657['position']));_0x2f9432&&_0x11ade8['push']({'key':u,'newValue':_0x512657['name'],'oldValue':_0x2f9432['name'],'range':_0x113a3a['model']['createRangeOn'](_0x512657['position']['nodeAfter'])});}return 0x0!=_0x11ade8['length']&&this['_reduceExistingSuggestions'](_0x3ec479,_0x11ade8);}['_processAttributeSuggestions'](_0x16f315){let _0x1656d8=!0x1;const _0x194b5b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x320b2c=>_0x320b2c['data']['newRange']&&_0x320b2c['name']['startsWith']('suggestion:attribute:'));for(const _0x5b1cf3 of _0x194b5b){const {subType:_0x58d8e4,id:_0x1fad6d}=this['_splitMarkerName'](_0x5b1cf3['name']),_0x5710bf=_0x58d8e4['split']('|')[0x0];for(const _0x274fcc of this['getSuggestions']({'skipNotAttached':!0x0}))_0x274fcc['id']!=_0x1fad6d&&'attribute'==_0x274fcc['type']&&_0x274fcc['data']&&_0x274fcc['data']['key']==_0x5710bf&&_0x274fcc['getFirstRange']()['isIntersecting'](_0x5b1cf3['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x274fcc,_0x5b1cf3['data']['newRange'],_0x16f315),_0x1656d8=!0x0);}return _0x1656d8;}['_recordAttributeChanges'](_0x246463){this['_recordAttributeSuggestions']=!0x0,_0x246463();}['_isRegisteredAttribute'](_0x55709d){const _0x4f0ab5=this['_isBlockAttribute'](_0x55709d),_0x2a7ab6=this['_inlineAttributeKeys']['has'](_0x55709d);return _0x4f0ab5||_0x2a7ab6;}['_reduceExistingSuggestions'](_0x2a6cc4,_0x5574a2){if(0x0==_0x5574a2['length'])return!0x1;let _0x39cfe8=!0x1;for(const _0x566656 of _0x5574a2){const _0x1879c3=this['_findSuggestions'](_0x566656['range'],'attribute')['filter'](_0x352fd3=>!_0x352fd3['meta']['isNextTo'])['map'](_0xf213e1=>_0xf213e1['suggestion']),_0x1e26b8=_0x277fad({'newValue':_0x566656['newValue']});_0x1879c3['filter'](_0x29744d=>{const [_0x8771e0,_0x54e167]=_0x29744d['subType']['split']('|');return _0x8771e0==_0x566656['key']&&_0x54e167!=_0x1e26b8;})['forEach'](_0x530a02=>{this['_reduceSuggestionAttributeRange'](_0x530a02,_0x566656['range'],_0x2a6cc4),_0x39cfe8=!0x0;});}return _0x39cfe8;}['_reduceSuggestionAttributeRange'](_0x13f403,_0x487ae9,_0x34c23f){const _0x15450c=_0x13f403['getFirstRange']()['getDifference'](_0x487ae9);0x0!==_0x15450c['length']?0x1!==_0x15450c['length']?this['_breakSuggestionMarker'](_0x13f403,_0x487ae9['start'],_0x487ae9['end']):this['_setSuggestionRange'](_0x13f403,_0x15450c[0x0]):_0x34c23f['removeMarker'](_0x13f403['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3711fb){this['_editor']=_0x3711fb,this['_model']=_0x3711fb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x8168e1,_0x3e6279,_0x562254,_0x282635,_0x5d13e7,_0x3fd233,_0x43f4cc){return new o(this['_model'],{'type':_0x8168e1,'subType':_0x3e6279,'id':_0x562254,'originalSuggestionId':_0x43f4cc,'author':_0x282635,'creator':_0x282635,'attributes':_0x5d13e7,'onAttributesChange':_0x3fd233,'onAccept':(..._0x1ff977)=>this['getSuggestionCallback'](_0x8168e1,_0x3e6279,'accept')(..._0x1ff977),'onDiscard':(..._0x42f7c4)=>this['getSuggestionCallback'](_0x8168e1,_0x3e6279,'discard')(..._0x42f7c4)});}['registerCustomCallback'](_0x592ce9,_0x4ea7c6,_0x46ad08,_0x527c90){const _0x25a789=_0x592ce9+':'+_0x4ea7c6+':'+_0x46ad08;this['_customCallbacks']['set'](_0x25a789,_0x527c90);}['getSuggestionCallback'](_0x49f73d,_0x1123c7,_0x36647d){const _0x260f94=_0x49f73d+':'+_0x1123c7+':'+_0x36647d;return this['_customCallbacks']['get'](_0x260f94)||this['_defaultCallbacks']['get'](_0x49f73d+':'+_0x36647d);}['_registerDefaultCallbacks'](){const _0x2c718f=()=>!0x1,_0x10f868=_0x54d883=>{_0x54d883['sort']((_0x3f15c8,_0x5ebf99)=>_0x3f15c8['start']['isBefore'](_0x5ebf99['start'])?0x1:-0x1),this['_model']['change'](_0x13760d=>{for(const _0x19650d of _0x54d883){let _0x5693ed;_0x5693ed=_0x19650d['end']['isAtEnd']&&_0x19650d['end']['parent']==_0x19650d['start']['nodeAfter']?_0x13760d['createSelection'](_0x19650d['start']['nodeAfter'],'on'):_0x13760d['createSelection'](_0x19650d),this['_model']['deleteContent'](_0x5693ed,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2c611d=(_0xd88b62,_0x5c0fb6)=>{_0x5c0fb6&&this['_model']['change'](_0x296c7a=>{const {commandName:_0x5a7336,commandParams:_0xa479a7=[]}=_0x5c0fb6,_0x141549=_0xd88b62['map'](_0x135e2a=>(Lt(_0x135e2a)&&(_0x135e2a=this['_model']['createRange'](_0x135e2a['end'])),_0x135e2a))['filter'](_0x372ce3=>'$graveyard'!==_0x372ce3['root']['rootName']);if(_0x141549['length']<0x1)return;const _0x5695fa=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x550ec2=>_0x1f6f9b['fromRange'](_0x550ec2));_0x296c7a['setSelection'](_0x141549);for(const _0x20b4fe of this['_editor']['commands']['commands']())_0x20b4fe['refresh']();_0xa479a7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5a7336,..._0xa479a7);const _0x2c9f1e=_0x5695fa['filter'](_0x369ac9=>'$graveyard'!=_0x369ac9['root']['rootName']);_0x2c9f1e['length']>0x0&&_0x296c7a['setSelection'](_0x2c9f1e);for(const _0x5aad30 of _0x5695fa)_0x5aad30['detach']();});},_0xa93c54=(_0x40b2e8,_0x3e0e53)=>0x1==_0x40b2e8['length']&&0x1==_0x3e0e53['length']&&_0x40b2e8[0x0]['end']['isEqual'](_0x3e0e53[0x0]['start']),_0x3f81ee=(_0x8d7702,_0x20e473,_0x544760,_0x3f6dec)=>Qt(_0x8d7702,_0x20e473,_0x544760,_0x3f6dec)?[_0x8d7702,_0x20e473]:Qt(_0x20e473,_0x8d7702,_0x3f6dec,_0x544760)?[_0x20e473,_0x8d7702]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2c718f),this['_defaultCallbacks']['set']('insertion:discard',_0x10f868),this['_defaultCallbacks']['set']('insertion:join',_0xa93c54),this['_defaultCallbacks']['set']('insertion:chain',_0x3f81ee),this['_defaultCallbacks']['set']('deletion:accept',_0x10f868),this['_defaultCallbacks']['set']('deletion:discard',_0x2c718f),this['_defaultCallbacks']['set']('deletion:join',_0xa93c54),this['_defaultCallbacks']['set']('deletion:chain',_0x3f81ee),this['_defaultCallbacks']['set']('formatInline:accept',_0x2c611d),this['_defaultCallbacks']['set']('formatInline:discard',_0x2c718f),this['_defaultCallbacks']['set']('formatInline:join',_0xa93c54),this['_defaultCallbacks']['set']('formatInline:chain',_0x2c718f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2c611d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2c718f),this['_defaultCallbacks']['set']('formatBlock:join',_0xa93c54),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2c718f),this['_defaultCallbacks']['set']('attribute:accept',_0x2c718f),this['_defaultCallbacks']['set']('attribute:discard',(_0x359696,_0x369b6d)=>{if(!_0x369b6d)return;const _0x23e595=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1f64b8=>{if(_0x369b6d['key']==u)for(const _0x4ea503 of _0x359696){const _0x160807=_0x4ea503['start']['nodeAfter'],_0x13c94d=_0x369b6d['oldValue'];_0x1f64b8['rename'](_0x160807,_0x13c94d);}else{if(_0x23e595['_isBlockAttribute'](_0x369b6d['key'])){for(const _0x4e1f27 of _0x359696)void 0x0!==_0x369b6d['oldValue']?_0x1f64b8['setAttribute'](_0x369b6d['key'],_0x369b6d['oldValue'],_0x4e1f27['start']['nodeAfter']):_0x1f64b8['removeAttribute'](_0x369b6d['key'],_0x4e1f27['start']['nodeAfter']);}else{for(const _0xa9d1bd of _0x359696)_0x369b6d['oldValue']?_0x1f64b8['setAttribute'](_0x369b6d['key'],_0x369b6d['oldValue'],_0xa9d1bd):_0x1f64b8['removeAttribute'](_0x369b6d['key'],_0xa9d1bd);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xa93c54);}}function Gt(_0x56661d,_0x3e91b6,_0x49f53a){for(const _0x2971f0 of _0x3e91b6['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2971f0['root']==_0x2971f0)return!0x1;if(!_0x49f53a['containsItem'](_0x2971f0))return!0x1;if(_0x56661d['isObject'](_0x2971f0)||_0x56661d['isLimit'](_0x2971f0))return!0x0;}return!0x1;}function Lt(_0x4a65be){return _0x4a65be['end']['parent']==_0x4a65be['start']['nodeAfter']&&_0x4a65be['end']['isAtStart'];}function Jt(_0x412183,_0x47beb6,_0x348f75,_0x23debc){const _0x135cf7=_0x3d0c49=>!_0x3d0c49['item']['is']('$textProxy')&&!_0x23debc['isObject'](_0x3d0c49['item']),_0x27f38b=_0x412183['start']['getLastMatchingPosition'](_0x135cf7),_0x285c05=_0x412183['end']['getLastMatchingPosition'](_0x135cf7,{'direction':'backward'});return(!_0x412183['start']['isEqual'](_0x27f38b)||!_0x412183['end']['isEqual'](_0x285c05))&&(_0x27f38b['isBefore'](_0x285c05)?_0x348f75['updateMarker'](_0x47beb6,{'range':_0x348f75['createRange'](_0x27f38b,_0x285c05)}):_0x348f75['removeMarker'](_0x47beb6),!0x0);}function Kt(_0x78435f){return _0x277fad(_0x78435f);}function Ht(_0x1bd6ef){const _0x4c721a=_0x1bd6ef['start']['nodeAfter'];return _0x4c721a&&_0x4c721a['is']('element');}function qt(_0x10c930){return!Lt(_0x10c930)&&!function(_0xf560ef){return _0xf560ef['start']['parent']==_0xf560ef['end']['nodeBefore']&&_0xf560ef['start']['isAtEnd'];}(_0x10c930);}function zt(_0x580c2b,_0x31b0e0){return null==_0x580c2b['end']['nodeBefore']&&_0x580c2b['end']['parent']==_0x580c2b['start']['nodeAfter']?Wt(_0x580c2b['start']['nodeAfter'],_0x31b0e0):_0x580c2b;}function Wt(_0xd7ff3f,_0x5210d0){const _0x231d00=_0x5210d0['schema']['isObject'](_0xd7ff3f)||_0x5210d0['schema']['isSelectable'](_0xd7ff3f);return _0x5210d0['createRange'](_0x5210d0['createPositionAt'](_0xd7ff3f,'before'),_0x231d00?_0x5210d0['createPositionAfter'](_0xd7ff3f):_0x5210d0['createPositionAt'](_0xd7ff3f,'end'));}function Qt(_0x7a3b1,_0x3e5703,_0xb59ab0,_0x4c2386){return!!Xt(_0x7a3b1,_0x3e5703)&&_0xb59ab0['end']['isEqual'](_0x4c2386['start']);}function Xt(_0xc725fe,_0x34ffc3){if(!_0xc725fe['_isDataLoaded']||!_0x34ffc3['_isDataLoaded'])return!0x1;const _0x2d9444=new Set(Object['keys'](_0xc725fe['attributes'])),_0x437e8b=new Set(Object['keys'](_0x34ffc3['attributes']));if(_0x2d9444['delete']('groupId'),_0x437e8b['delete']('groupId'),0x0==_0x2d9444['size']&&0x0==_0x437e8b['size'])return!0x0;if(_0x2d9444['size']!=_0x437e8b['size'])return!0x1;const _0x2f7622={..._0xc725fe['attributes']},_0x5eb156={..._0x34ffc3['attributes']};return delete _0x2f7622['groupId'],delete _0x5eb156['groupId'],JSON['stringify'](_0x2f7622)==JSON['stringify'](_0x5eb156);}function Yt(_0x307f97,_0x1f0c9f){const _0x534082=Zt(_0x307f97['attributes']),_0x1aef60=Zt(_0x1f0c9f);if(!_0x307f97['_isDataLoaded'])return!0x1;for(const _0x190309 of Object['keys'](_0x1aef60))if(!_0xdf7095(_0x534082[_0x190309],_0x1aef60[_0x190309]))return!0x1;return!0x0;}function Zt(_0x4838df){const _0x3add1d=Object['assign']({},_0x4838df);return delete _0x3add1d['skipNestingCheck'],delete _0x3add1d['tablePasteChainId'],_0x3add1d;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x392217(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5c5729,_0x31a18b,_0x30c1d8,_0x83fde5){super(),this['model']=_0x31a18b,this['view']=_0x30c1d8,this['commentThreadController']=_0x83fde5,this['_editor']=_0x5c5729,this['_acceptCommand']=_0x5c5729['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5c5729['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x91854d,_0x2bd058)=>_0x91854d||_0x2bd058),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x42fcea=>_0x42fcea&&this['_editor']['model']['canEditAt'](_0x31a18b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xf47727=>_0xf47727&&this['_editor']['model']['canEditAt'](_0x31a18b['getRanges']())),this['_pendingAction']=null,_0x30c1d8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x30c1d8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x30c1d8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x30c1d8,'change:isDirty',()=>{_0x30c1d8['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 _0x2dafc1=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2dafc1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x564b64{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x54a506,_0x4f9f73,_0x1a6cc3,_0x1270a1){super(_0x54a506),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xde0aa6(_0x54a506,c(_0x54a506,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4f9f73['authoredAt']),this['bind']('authoredAt')['to'](_0x4f9f73),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',_0x4f9f73,'authoredAt',this,'descriptionParts',(_0x3ef40b,_0x13949e,_0x248ada)=>{const _0x10e3d9=_0x248ada['map'](_0xa2cea3=>ls(_0xa2cea3['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3ef40b-0x1,_0x4f9f73['author']['name'],_0x13949e?_0x1270a1['formatDateTime'](_0x13949e):'',new DOMParser()['parseFromString'](_0x10e3d9,'text/html')['body']['textContent']]);}),this['focusables']=new _0x669556(),this['focusTracker']=new _0x154d70(),this['keystrokes']=new _0x3c0c63(),this['focusCycler']=new _0x3c3dec({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x501daf=>_0x501daf['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4f9f73,this['_localUser']=_0x1a6cc3,this['_config']=_0x1270a1,_0x1270a1['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x96e750(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5d4e63}=this['_config'];this['commentsListView']=new _0x5d4e63(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',_0xe6d309=>_0xe6d309+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xce6ae1,_0x1affb8)=>_0xce6ae1||!!_0x1affb8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x59e9ff}=this['_config'],_0x47b595=new _0x59e9ff(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1ffa7e=_0x47b595['commentInputView'];return _0x47b595['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1ffa7e,'value',(_0xca48d5,_0x3cbce1,_0x4a2371)=>!!_0x4a2371||_0xca48d5&&!_0x3cbce1),_0x1ffa7e['on']('submit',(_0x3ca4f7,_0xcd9ce8)=>{this['fire']('addComment',_0xcd9ce8),_0x1ffa7e['editor']['setData']('');}),_0x1ffa7e['on']('cancel',()=>this['focus']()),_0x1ffa7e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x47b595;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5ad125,_0x2e314d,_0x5e6b18,_0x806d9c){super(_0x5ad125,_0x2e314d,_0x5e6b18,_0x806d9c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2dc634=>_0x2dc634&&_0x2dc634[0x0]?_0x2dc634[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x462056,_0x39c46c)=>{let _0x4c6e25='';for(const _0x2bba4d of _0x462056)_0x4c6e25+='<p>'+ls(_0x2bba4d['content'],_0x2bba4d['color'])+'</p>';return _0x39c46c?_0x4c6e25:_0x527a31(_0x4c6e25,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x806d9c['SuggestionView'](_0x5ad125,_0x2e314d,{'formatDateTime':_0x806d9c['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 _0x3315c7=this['bindTemplate'],_0x862fe6=[this['suggestionView']];return this['commentsListView']&&_0x862fe6['push'](this['commentsListView']),this['commentThreadInputView']&&_0x862fe6['push'](this['commentThreadInputView']),_0x862fe6['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3315c7['if']('isActive','ck-suggestion-wrapper--active'),_0x3315c7['to']('type',_0x221a0d=>'ck-suggestion-'+_0x221a0d),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':_0x3315c7['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x862fe6};}['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 _0x564b64{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3c964c,_0x52bec4,_0x58f2bb){super(_0x3c964c),this['_model']=_0x52bec4,this['_config']=_0x58f2bb,this['set']('description',''),this['bind']('authoredAt')['to'](_0x52bec4),this['acceptButton']=this['_createButton'](c(_0x3c964c,'Accept\x20suggestion'),_0xf48063,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x3c964c,'Discard\x20suggestion'),_0x3d8301,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x284f92(_0x3c964c,_0x52bec4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x669556([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x154d70(),this['keystrokes']=new _0x3c0c63(),this['focusCycler']=new _0x3c3dec({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x299259=>_0x299259['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1a975e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1a975e['innerHTML']=this['description'],this['on']('change:description',(_0x53b7c5,_0x129574,_0x5ad9c7)=>{_0x1a975e['innerHTML']=_0x5ad9c7;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x6035b2=this['bindTemplate'],_0x87680e=[{'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':_0x6035b2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x6035b2['to']('authoredAt',_0x50ac15=>this['_config']['formatDateTime'](_0x50ac15))}]}]},{'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']&&_0x87680e['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':_0x87680e}]};}['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'](_0x3fa9a6,_0x271750,_0x5ad243,_0x1a158a,_0x1c97b0){const _0x34e5b2=new _0x5ad22c(this['locale']);return _0x34e5b2['set']({'label':_0x3fa9a6,'icon':_0x271750,'tooltip':!0x0,'tooltipPosition':_0x1c97b0}),_0x34e5b2['extendTemplate']({'attributes':{'class':_0x5ad243}}),_0x34e5b2['on']('execute',()=>{this['fire'](_0x1a158a,this['_model']['id']);}),_0x34e5b2;}['_setupKeyboardNavigation'](){const _0x52d322=this['element'];this['keystrokes']['listenTo'](_0x52d322);for(const _0x93c42b of this['focusables'])this['focusTracker']['add'](_0x93c42b['element']),this['keystrokes']['listenTo'](_0x93c42b['element']);this['keystrokes']['set']('enter',(_0x2d450e,_0x47477f)=>{_0x52d322===_0x2d450e['target']&&(this['focusCycler']['focusFirst'](),_0x47477f());}),this['keystrokes']['set']('esc',(_0x505327,_0x462925)=>{_0x52d322!==_0x505327['target']&&(this['focus'](),_0x462925());});}}class d extends _0x3b7b17{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3f47f0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1fe655){super(_0x1fe655),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x235c04=this['editor']['config'];_0x235c04['define']('trackChanges.SuggestionThreadView',fe),_0x235c04['define']('trackChanges.SuggestionView',we),_0x235c04['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x235c04['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4b0f31,_0x28df9e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x573a4b,_0x56acaa]of this['_handleControllerBuffer']){const _0x43385d=this['_suggestionToController']['has'](_0x573a4b);_0x43385d||_0x56acaa?_0x43385d&&_0x56acaa&&this['_destroyController'](_0x573a4b):this['_initializeController'](_0x573a4b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4b0f31,_0x28df9e);}['init'](){const _0x103693=this['editor'],_0x14eecd=_0x103693['plugins']['get']('TrackChangesEditing'),_0x7e4bb5=_0x103693['plugins']['get']('Annotations'),_0x592a04=_0x103693['plugins']['get']('EditorAnnotations'),_0x3e6bf6=_0x103693['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x592a04['addSourceCollector'](()=>{const _0x283181=[];for(const [_0x7555ec,_0x29ac35]of Array['from'](this['_suggestionToController'])){const _0x290c37=_0x7555ec['getAllAdjacentSuggestions'](),_0x1b4c11=[];for(const _0x426f64 of _0x290c37){if(!_0x426f64['isInContent'])continue;if(_0x426f64['isMultiRange']){_0x1b4c11['push'](..._0x426f64['getRanges']());continue;}const _0x199481=_0x426f64['getFirstRange']();if(_0x1b4c11['length']>0x0){const _0x1acbbc=_0x1b4c11[0x0]['getJoined'](_0x199481);if(_0x1acbbc){_0x1b4c11[0x0]=_0x1acbbc;continue;}}_0x1b4c11['push'](_0x199481);}_0x283181['push']([_0x29ac35['view'],_0x1b4c11]);}return _0x283181;}),this['listenTo'](_0x14eecd,'suggestionLoaded',(_0x5861b6,_0x44962a)=>{this['listenTo'](_0x44962a,'change:previous',(_0x177a1c,_0x599dc1,_0x51d63d,_0x5376dc)=>{_0x44962a['isInContent']&&(null==_0x51d63d?(this['_updateController'](_0x5376dc['head']),this['_handleSuggestionControllerDelayed'](_0x44962a,!0x1)):(this['_updateController'](_0x51d63d['head']),null==_0x5376dc&&this['_handleSuggestionControllerDelayed'](_0x44962a,!0x0)));}),null!==_0x44962a['previous']?this['_updateController'](_0x44962a['head']):this['_handleSuggestionControllerDelayed'](_0x44962a,!0x1);}),this['listenTo'](_0x14eecd,'suggestionUnloaded',(_0x20e2f2,_0x55f398,_0x2c2728)=>{this['stopListening'](_0x55f398,'change:previous'),this['_handleControllerBuffer']['delete'](_0x55f398),this['_suggestionToController']['has'](_0x55f398)&&this['_destroyController'](_0x55f398),_0x2c2728&&this['_updateController'](_0x2c2728['head']);}),this['listenTo'](_0x14eecd,'suggestionChanged',(_0x1281e0,_0x453bdb)=>{this['_updateController'](_0x453bdb);}),this['listenTo'](_0x7e4bb5,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3e6bf6,'addComment',(_0x125236,{threadId:_0x398240,isFromAdapter:_0x546256})=>{if(_0x546256||!_0x14eecd['hasSuggestion'](_0x398240))return;const _0x406745=_0x14eecd['getSuggestion'](_0x398240);this['_suggestionToController']['get'](_0x406745)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4f945b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x339aea;for(const _0x4b6354 in _0x4f945b){const _0x2abf98=_0x4b6354,_0x3a243e=_0x4f945b[_0x2abf98];if('trackChangesLicenseKeyValid'==_0x3a243e||'trackChangesLicenseKeyInvalid'==_0x3a243e||'trackChangesLicenseKeyExpired'==_0x3a243e||'trackChangesLicenseKeyDomainLimit'==_0x3a243e||'trackChangesLicenseKeyNotAllowed'==_0x3a243e||'trackChangesLicenseKeyEvaluationLimit'==_0x3a243e||'trackChangesLicenseKeyTrialLimit'==_0x3a243e||'trackChangesLicenseKeyUsageLimit'==_0x3a243e){delete _0x4f945b[_0x2abf98],_0x339aea=_0x3a243e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x339aea&&_0x4f945b['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x339aea&&_0x4f945b['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x339aea&&_0x4f945b['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x339aea&&_0x4f945b['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x339aea&&_0x4f945b['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x339aea&&_0x4f945b['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x339aea&&_0x4f945b['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2de6a3=this['editor']['plugins']['get']('Annotations'),_0x2234aa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x356d1b=Array['from'](_0x2de6a3['activeAnnotations'],_0x35be82=>_0x35be82['innerView'])['filter'](_0x1ec507=>this['_viewToController']['has'](_0x1ec507)),_0xdddec=[];for(const _0x5dfe83 of _0x356d1b){const _0x2afeed=this['_viewToController']['get'](_0x5dfe83)['model']['getAllAdjacentSuggestions']();_0xdddec['push'](..._0x2afeed['reduce']((_0xe6f597,_0x2223e8)=>[..._0xe6f597,..._0x2223e8['getMarkerNames']()],[]));}_0x2234aa['activeMarkers']=_0xdddec;}['_addUIComponentsToFactory'](){const _0x5daa1d=this['editor'],_0x3162f6=_0x5daa1d['locale'],_0x3b90d4=c(_0x3162f6,'Track\x20changes'),_0x5a2c76=new _0x569b00([{'type':'switchbutton','model':new _0x8d1626({'withText':!0x0,'isToggleable':!0x0,'label':_0x3b90d4,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x8d1626({'withText':!0x0,'label':c(_0x3162f6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x8d1626({'withText':!0x0,'label':c(_0x3162f6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x8d1626({'withText':!0x0,'label':c(_0x3162f6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x8d1626({'withText':!0x0,'label':c(_0x3162f6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5daa1d['plugins']['has']('TrackChangesPreview')&&_0x5a2c76['addMany']([{'type':'separator'},{'type':'button','model':new _0x8d1626({'withText':!0x0,'label':c(_0x3162f6,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x268c1a of _0x5a2c76)if(ke(_0x268c1a)){const _0x47adde=_0x5daa1d['commands']['get'](_0x268c1a['model']['commandName']);_0x268c1a['model']['bind']('isOn','isEnabled')['to'](_0x47adde,'value','isEnabled');}_0x5daa1d['ui']['componentFactory']['add']('trackChanges',_0x2d618b=>this['_createToolbarButton'](_0x2d618b,_0x5a2c76,_0x3b90d4)),_0x5daa1d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1b7e29=>this['_createMenuBarMenu'](_0x1b7e29,_0x5a2c76,_0x3b90d4));}['_createToolbarButton'](_0x72eeb3,_0x3e9381,_0x2bc0c8){const _0x30246f=_0x1e3e80(_0x72eeb3,_0x1be649),_0x2f64e0=this['editor']['commands']['get']('trackChanges');_0x30246f['buttonView']['set']({'tooltip':_0x2bc0c8,'label':_0x2bc0c8,'icon':_0x351586}),_0x30246f['buttonView']['bind']('isOn')['to'](_0x2f64e0,'value'),_0x30246f['buttonView']['on']('execute',()=>{_0x2f64e0['execute'](),this['editor']['editing']['view']['focus']();}),_0x3936e1(_0x30246f,_0x3e9381,{'role':'menu'});const _0x3afdba=[];for(const _0x3fa8aa of _0x3e9381)ke(_0x3fa8aa)&&_0x3afdba['push'](this['editor']['commands']['get'](_0x3fa8aa['model']['commandName']));const _0x1be00c=_0x30246f['buttonView'];return _0x1be00c['actionView']['unbind']('isEnabled'),_0x1be00c['arrowView']['unbind']('isEnabled'),_0x1be00c['actionView']['bind']('isEnabled')['to'](_0x2f64e0,'isEnabled'),_0x1be00c['arrowView']['bind']('isEnabled')['toMany'](_0x3afdba,'isEnabled',(..._0x224df2)=>_0x224df2['some'](_0x656841=>_0x656841)),_0x30246f['on']('execute',_0x1dc5a6=>{this['editor']['execute'](_0x1dc5a6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x30246f;}['_createMenuBarMenu'](_0x2b15f1,_0x1271c2,_0x26eace){const _0x1082d5=new _0x4c37c4(_0x2b15f1),_0x3cabe9=this['editor']['commands']['get']('trackChanges');_0x1082d5['buttonView']['set']({'label':_0x26eace,'icon':_0x351586});const _0x49131f=new _0x311ed1(_0x2b15f1);for(const _0x235b8b of _0x1271c2){if('separator'==_0x235b8b['type']){_0x49131f['items']['add'](new _0x4d2682(_0x2b15f1));continue;}const _0x2e2144=new _0x3c3247(_0x2b15f1,_0x1082d5),_0x3789ec=new _0x352b5a(_0x2b15f1),_0x4b1e78=_0x235b8b['model'];_0x3789ec['bind'](...Object['keys'](_0x4b1e78))['to'](_0x4b1e78),_0x3789ec['delegate']('execute')['to'](_0x1082d5),_0x3789ec['on']('execute',()=>{this['editor']['execute'](_0x4b1e78['commandName']),this['editor']['editing']['view']['focus']();}),_0x2e2144['children']['add'](_0x3789ec),_0x49131f['items']['add'](_0x2e2144);}return _0x1082d5['bind']('isEnabled')['to'](_0x3cabe9,'isEnabled'),_0x1082d5['panelView']['children']['add'](_0x49131f),_0x1082d5;}['_initializeController'](_0x15989d){const _0x39f023=this['editor'],_0x1ba6d5=_0x39f023['config'],_0x1a85fe=_0x39f023['plugins']['get']('Annotations'),_0x3f21bd=_0x39f023['plugins']['get']('CommentsRepository'),_0x365c0b=_0x39f023['plugins']['get']('EditorAnnotations'),_0x4dcc83=_0x39f023['plugins']['get'](_0x3f47f0)['me'],_0xa7826f=_0x1ba6d5['get']('trackChanges')['SuggestionThreadView'],_0x5e5b03=_0x1ba6d5['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4d845e,CommentThreadInputView:_0x4f5a12}=_0x39f023['plugins']['get']('CommentsUI');let _0x3fd249,_0x365f31,_0x356251;this['_annotationViews']['has'](_0x15989d['id'])?(_0x365f31=this['_annotationViews']['get'](_0x15989d['id']),_0x3fd249=_0x365f31['mainView']):(_0x3fd249=new _0xa7826f(_0x39f023['locale'],_0x15989d,_0x4dcc83,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1ba6d5['get']('comments.editorConfig'),'licenseKey':_0x1ba6d5['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1ba6d5['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1ba6d5['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1ba6d5['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3f01e5(_0x1ba6d5['get']('locale'),_0x39f023['locale']),'CommentView':_0x1ba6d5['get']('comments')['CommentView'],'CommentsListView':_0x4d845e,'CommentThreadInputView':_0x4f5a12,'SuggestionView':_0x5e5b03}),_0x3fd249['suggestionView']['acceptButton']['on']('execute',()=>{_0x39f023['editing']['view']['focus']();}),_0x3fd249['suggestionView']['discardButton']['on']('execute',()=>{_0x39f023['editing']['view']['focus']();}),_0x365f31=_0x1a85fe['createAnnotationView'](this['editor']['locale'],_0x3fd249),_0x365f31['bind']('isDirty')['to'](_0x3fd249,'isDirty'),_0x365f31['bind']('length')['to'](_0x3fd249),_0x365f31['bind']('type')['to'](_0x3fd249,'type',_0x3189fd=>'suggestion-'+_0x3189fd),_0x3fd249['on']('escape',()=>{_0x356251['fire']('escape');}),this['_annotationViews']['set'](_0x15989d['id'],_0x365f31));const _0x21e580=_0x3f21bd['createCommentThreadController'](_0x15989d['commentThread'],_0x3fd249),_0xbe527=new pe(_0x39f023,_0x15989d,_0x3fd249,_0x21e580),_0x2349eb=_0x15989d['getAllAdjacentSuggestions']()['filter'](_0x306579=>_0x306579['isInContent']);_0x3fd249['descriptionParts']=_0x39f023['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2349eb),this['_suggestionToController']['set'](_0x15989d,_0xbe527),this['_viewToController']['set'](_0x3fd249,_0xbe527),_0x356251=_0x1a85fe['createAnnotation']({'view':_0x365f31,'target':()=>{const _0x1d593a=[],_0x1afeb8=_0x15989d['getAllAdjacentSuggestions']()['filter'](_0x414d75=>_0x414d75['isInContent']);for(const _0x57ff1c of _0x1afeb8)_0x1d593a['push'](..._0x57ff1c['getMarkers']());return _0x2729e0(_0x39f023['editing'],_0x1d593a);},'type':()=>'suggestion-'+_0xbe527['view']['type']}),_0x3f21bd['_bindAnnotationToEditors'](_0x3fd249,_0x356251),_0x1a85fe['add'](_0x356251),_0x365c0b['registerAnnotation'](_0x356251);}['_destroyController'](_0x56d276){const _0x16ef69=this['editor']['plugins']['get']('CommentsRepository'),_0x53a888=this['editor']['plugins']['get']('Annotations'),_0x5899fa=this['_suggestionToController']['get'](_0x56d276),_0x4bfcb8=_0x5899fa['view'],_0x4e94f8=_0x53a888['getByInnerView'](_0x4bfcb8);_0x16ef69['_unbindEditors'](_0x4bfcb8),_0x4e94f8&&_0x53a888['remove'](_0x4e94f8),this['_suggestionToController']['delete'](_0x56d276),this['_viewToController']['delete'](_0x4bfcb8),_0x5899fa['destroy']();}['_updateController'](_0x3b39ea){if(!_0x3b39ea['isInContent']||!this['_suggestionToController']['has'](_0x3b39ea))return;const _0x391a55=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20ea29=this['_suggestionToController']['get'](_0x3b39ea),_0x220ecd=_0x3b39ea['getAllAdjacentSuggestions']();_0x20ea29['view']['descriptionParts']=_0x391a55['descriptionFactory']['getDescriptions'](_0x220ecd);}['destroy'](){for(const _0x217fc7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x217fc7);for(const _0x1fed4b of this['_annotationViews']['values']())_0x1fed4b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x23439f){return'model'in _0x23439f;}class k extends _0x3b7b17{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x213fda){this['editor']['plugins']['get'](p)['adapter']=_0x213fda;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4868f8){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4868f8);}['getSuggestions']({skipNotAttached:_0x5f3ee8=!0x1,toJSON:_0x58fc64=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5f3ee8,'toJSON':_0x58fc64});}['getSuggestion'](_0x2c07fc){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2c07fc);}}const w=['Pagination'];class T extends _0x3b7b17{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x23bbc9=this['editor'];if(_0x23bbc9['config']['define']('trackChangesData.editorCreator',_0x51900b=>{const _0x482447=_0x23bbc9['model']['document']['getRootNames']()['reduce']((_0x48353b,_0x5ff59b)=>(_0x48353b[_0x5ff59b]='',_0x48353b),{});return _0x23bbc9['constructor']['create'](_0x482447,_0x51900b);}),'function'!=typeof _0x23bbc9['config']['get']('trackChangesData')['editorCreator'])throw new _0x2ff5bb('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2d7683){return N(this['editor'],!0x0,_0x2d7683);}['getDataWithDiscardedSuggestions'](_0x3af63e){return N(this['editor'],!0x1,_0x3af63e);}}class D extends _0x3b7b17{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36fdb7){function _0x30a025(_0x358d0e){return _0x358d0e['map'](_0x49a44b=>String['fromCharCode'](_0x49a44b))['join']('');}super(_0x36fdb7),this['result']='end',_0x36fdb7[_0x30a025([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30a025([0x76,0x69,0x65,0x77])][_0x30a025([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30a025([0x61,0x75,0x74,0x6f]),_0x36fdb7[_0x30a025([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x30a025([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30a025([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x30a025([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x30a025([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(_0x51999a){return void 0x0!==_0x51999a['getRootsAttributes'];}async function N(_0x5db3a6,_0x220803,_0xd75515){const _0x2a5918=_0x201bd5(_0x5db3a6,w);_0x2a5918['plugins']['push'](p,D),_0x2a5918['rootsAttributes']=Ge(_0x5db3a6)?_0x5db3a6['getRootsAttributes']():void 0x0;const _0x34cd2b=document['createDocumentFragment'](),_0x4d3150=_0x5db3a6['config']['get']('trackChangesData')['editorCreator'],_0x1ee3af=await _0x4d3150(_0x2a5918,()=>function(_0xfcaed2){const _0x142836=document['createElement']('div');return _0xfcaed2['appendChild'](_0x142836),_0x142836;}(_0x34cd2b));!function(_0x12f578,_0x4f293c){const _0x19d6cb=_0x12f578['model']['document']['getRootNames']()['reduce']((_0x2c76c7,_0x591f32)=>(_0x2c76c7[_0x591f32]=_0x12f578['data']['get']({'rootName':_0x591f32}),_0x2c76c7),{}),_0x255e38=_0x12f578['plugins']['get']('Users')['users']['map'](_0x3628b3=>({'id':_0x3628b3['id'],'name':_0x3628b3['name']})),_0x22456a=_0x12f578['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x41b2bc=_0x12f578['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x33cd21=_0x4f293c['plugins']['get']('Users'),_0x167491=_0x4f293c['plugins']['get']('TrackChangesEditing'),_0x467bed=_0x4f293c['plugins']['get']('CommentsRepository');for(const _0x3ebca9 of _0x467bed['getCommentThreads']())_0x3ebca9['remove']();for(const _0x493b52 of _0x255e38)_0x33cd21['getUser'](_0x493b52['id'])||_0x33cd21['addUser'](_0x493b52);_0x33cd21['me']||_0x33cd21['useAnonymousUser']();for(const _0x5b7ae2 of _0x41b2bc)_0x467bed['addCommentThread'](_0x5b7ae2);for(const _0xdc54b8 of _0x22456a)_0x167491['addSuggestionData'](_0xdc54b8);_0x4f293c['data']['set'](_0x19d6cb);}(_0x5db3a6,_0x1ee3af),_0x1ee3af['execute'](_0x220803?'acceptAllSuggestions':'discardAllSuggestions');const _0x171510=Ge(_0x1ee3af)?_0x1ee3af['getFullData'](_0xd75515):_0x1ee3af['data']['get'](_0xd75515);return await _0x1ee3af['destroy'](),_0x171510;}class Me extends _0x564b64{['options'];constructor(_0x5f2a05,_0x25b1ad){super(_0x5f2a05),this['options']=_0x25b1ad,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'](_0x3bfc20,_0x594f51){if(!this['element'])return;const _0x2c7de8=[];for(const [_0x291fbb,_0x4e3ad1]of _0x3bfc20){const _0x468d29=document['createElement']('div');_0x468d29['setAttribute']('data-ck-root-name',_0x291fbb),_0x468d29['className']=_0x4e3ad1['classes']+'\x20ck-track-changes-preview__root-container',_0x468d29['innerHTML']=_0x4e3ad1['content'],_0x2c7de8['push'](_0x468d29);}_0x594f51(this['element'],_0x2c7de8),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5ce001{constructor(_0x526856){super(_0x526856),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x226cf4=this['editor'],_0x5a22b5=_0x226cf4['locale'],_0x413ebd=_0x226cf4['plugins']['get']('Dialog');let _0x5a35ff;const _0x527518=function(_0x299e7a){const _0x4eeddf={};if('editables'in _0x299e7a['ui']['view']){for(const [_0x5eafc0,_0x5281eb]of Object['entries'](_0x299e7a['ui']['view']['editables']))_0x4eeddf[_0x5eafc0]=_0x5281eb['element'];}else _0x4eeddf[_0x299e7a['model']['document']['getRootNames']()[0x0]]=_0x299e7a['ui']['view']['editable']['element'];return _0x4eeddf;}(_0x226cf4),_0x42cdb7=function(_0x520186){let _0x3e2323=0x0;for(const _0x8d84b of Object['values'](_0x520186))_0x3e2323=Math['max'](_0x3e2323,_0x8d84b['getBoundingClientRect']()['width']);let _0x77d8f3=0x0;for(const _0x17eeff of Object['values'](_0x520186))_0x77d8f3+=_0x17eeff['getBoundingClientRect']()['height'];const _0x44c410=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x119252=Math['min'](_0x77d8f3,_0x44c410);return{'width':_0x3e2323,'height':_0x119252};}(_0x527518);_0x413ebd['show']({'id':'finalContentPreview','title':c(_0x5a22b5,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5a22b5,{'dialogRects':_0x42cdb7}),'onHide':()=>{_0x5a35ff['detachFromDom']();},'onShow':()=>{_0x226cf4['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x44b525=>{const _0x54e1ae=this['_standarizeRootsData'](_0x44b525,_0x226cf4,_0x527518);_0x413ebd['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x54e1ae,_0x226cf4['config']['get']('trackChanges.preview.renderFunction'));}),_0x5a35ff=new _0x74cf6a(_0x5a22b5,[_0x413ebd['view']]),_0x5a35ff['attachToDom'](),_0x5a35ff['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x226cf4['once']('destroy',()=>{_0x5a35ff['detachFromDom']();});const _0x215682=_0x413ebd['view']['headerView']['class'];_0x413ebd['view']['headerView']['class']=_0x215682?_0x215682+'\x20ck-reset_all':'ck-reset_all',_0x413ebd['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x413ebd['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x8b2348=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x415616=_0x8b2348['previewMode'],_0x24b730={};if('$labels'===_0x415616){for(const _0x535370 of _0x8b2348['getMergeFieldsIds']())_0x24b730[_0x535370]=_0x8b2348['getLabel'](_0x535370)||_0x535370;}else{const _0x596931='$defaultValues'===_0x415616?_0x8b2348['getDefaultValues']():_0x8b2348['getDataSetValues'](_0x415616,!0x0);for(const _0xd7b2fd of Object['entries'](_0x596931)){const [_0x390bb4,_0x624c29]=_0xd7b2fd;_0x24b730[_0x390bb4]=null!==_0x624c29?_0x624c29:_0x8b2348['getLabel'](_0x390bb4)||_0x390bb4;}}return{'mergeFieldsData':_0x24b730};}['_standarizeRootsData'](_0x515518,_0x50124a,_0xadd266){let _0x3c1b6f;if('string'==typeof _0x515518){const _0x298d07=_0x50124a['model']['document']['getRootNames']()[0x0];_0x3c1b6f={[_0x298d07]:_0x515518};}else _0x3c1b6f=_0x515518;const _0x43941b=this['_fixMediaEmbeds'](_0x3c1b6f,_0x50124a),_0x584b96=function(_0x551716,_0x322fc1){for(const [_0xe17c0c,_0x547221]of _0x551716)_0x547221['classes']=_0x322fc1[_0xe17c0c]['classList']['value']['replace']('ck-focused','');return _0x551716;}(this['_sortRoots'](_0x50124a)['reduce']((_0x58d561,_0x274fdd)=>(_0x58d561['push']([_0x274fdd,{'content':_0x43941b[_0x274fdd],'classes':''}]),_0x58d561),[]),_0xadd266);return _0x584b96;}['_fixMediaEmbeds'](_0x4d5f27,_0x20be72){if(!_0x20be72['plugins']['has']('MediaEmbedEditing'))return _0x4d5f27;const _0x19400a=_0x20be72['plugins']['get']('MediaEmbedEditing');for(const [_0x5516d4,_0x2110e7]of Object['entries'](_0x4d5f27)){const _0x490181=document['createElement']('div');_0x490181['innerHTML']=_0x2110e7,(_0x490181['querySelectorAll']('figure.media')['forEach'](_0x5e884c=>{const _0x301fae=_0x5e884c['querySelector']('oembed');if(_0x301fae){const _0x5758f2=_0x301fae['getAttribute']('url');if(_0x5758f2){const _0x184b77=_0x19400a['registry']['getMediaViewElement'](new _0x2676fd(_0x20be72['editing']['view']['document']),_0x5758f2,{'elementName':'','renderForEditingView':!0x0}),_0x1367e4=document['createElement']('div');_0x1367e4['classList']['add']('ck-media__wrapper'),_0x184b77['render'](_0x1367e4,_0x20be72['editing']['view']['domConverter']),_0x301fae['replaceWith'](_0x1367e4);}}}),_0x4d5f27[_0x5516d4]=_0x490181['innerHTML']);}return _0x4d5f27;}['_sortRoots'](_0x9e3b2e){if(!function(_0x277b35){return void 0x0!==_0x277b35['getRootsAttributes'];}(_0x9e3b2e))return _0x9e3b2e['model']['document']['getRootNames']();const _0x5c1f7c=[],_0x258468=new Map();for(const _0x34209a of _0x9e3b2e['model']['document']['getRootNames']()){const _0x2b7918=_0x9e3b2e['editing']['view']['getDomRoot'](_0x34209a)['getClientRects']()['item'](0x0);_0x5c1f7c['push'](_0x34209a),_0x258468['set'](_0x34209a,_0x2b7918);}return _0x5c1f7c['sort']((_0x240b77,_0x15600f)=>{const _0x1f6c33=_0x258468['get'](_0x240b77),_0x2366a3=_0x258468['get'](_0x15600f);return _0x1f6c33['y']-_0x2366a3['y']||_0x1f6c33['x']-_0x2366a3['x'];}),_0x5c1f7c;}}class te extends _0x3b7b17{static get['requires'](){return[T,_0x4cc463];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x575cce){super(_0x575cce),_0x575cce['commands']['add']('previewFinalContent',new re(this['editor'])),_0x575cce['config']['define']('trackChanges.preview.renderFunction',(_0xaf25aa,_0x46df8b)=>{for(const _0x40113d of _0x46df8b)_0xaf25aa['appendChild'](_0x40113d);});}}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 _0x3735c6,Plugin as _0x3525e7,PendingActions as _0x4a7e78}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1de5c6,ObservableMixin as _0x46b4f9,uid as _0x38b19c,priorities as _0x4c334b,insertToPriorityArray as _0xb0c78c,toArray as _0x468678,logWarning as _0x4270e9,getEnvKeystrokeText as _0x2d997e,FocusTracker as _0x63194,KeystrokeHandler as _0x199b14,Collection as _0x32445d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2ecfc2,IconCancel as _0x4eaca1,IconTrackChanges as _0x2aebbe}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xf432ad,View as _0x46d72b,ViewCollection as _0x587789,FocusCycler as _0xaa06c8,ViewModel as _0x529149,createDropdown as _0xee9e52,SplitButtonView as _0x23ee1b,addListToDropdown as _0x81cc5c,MenuBarMenuView as _0x2083f1,MenuBarMenuListView as _0x5caa07,ListSeparatorView as _0x208497,MenuBarMenuListItemView as _0x141ff1,MenuBarMenuListItemButtonView as _0x12cc37,BodyCollection as _0x5c98a4,Dialog as _0x141c18}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5f401e,hashObject as _0x1b1f05,surroundingMarkersDetector as _0x2bb003,FOCUS_ANNOTATION_KEYSTROKE as _0x6f61cb,AriaDescriptionView as _0x584eeb,setupThreadKeyboardNavigation as _0x31c3b4,trimHtml as _0x2df10f,UserView as _0x15f7fd,LateFocusButtonView as _0x1c8ce9,getDateTimeFormatter as _0x4fc58f,getAllMarkersDomElementsSorted as _0x89d251,sanitizeEditorConfig as _0x2c03d1}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x8d5a34,LiveRange as _0x5d59ab,LivePosition as _0x107e0e,DowncastWriter as _0x270407}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xfc4611,toWidget as _0x25bc5a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x41ba95,set as _0x300c40,isEqual as _0x312846,unset as _0x35fa8c,omit as Ft}from'es-toolkit/compat';import{Delete as _0x442774,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1e9d9d}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4e8bdd}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x3735c6{['_enabledCommands'];constructor(_0x425ba4,_0x20a9ea){super(_0x425ba4),this['_enabledCommands']=_0x20a9ea,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 _0xf91f17 of this['editor']['commands']['commands']())_0xf91f17['affectsData']&&!this['_enabledCommands']['has'](_0xf91f17)&&_0xf91f17['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1ac997 of this['editor']['commands']['commands']())_0x1ac997['affectsData']&&!this['_enabledCommands']['has'](_0x1ac997)&&_0x1ac997['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x3735c6{['_suggestions'];constructor(_0x373cbc,_0x335e07){super(_0x373cbc),this['_suggestions']=_0x335e07,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x47aae2){const _0x5757f0=this['_suggestions']['get'](_0x47aae2);if(!_0x5757f0)throw new _0x1de5c6('track-changes-accept-suggestion-not-found',this);const _0x4b9de0=_0x5757f0['getRanges']();this['editor']['model']['canEditAt'](_0x4b9de0)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5757f0);}}class O extends _0x3735c6{['_suggestions'];constructor(_0x17a06b,_0x203296){super(_0x17a06b),this['_suggestions']=_0x203296,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x344e83){const _0x44c34f=this['_suggestions']['get'](_0x344e83);if(!_0x44c34f)throw new _0x1de5c6('track-changes-discard-suggestion-not-found',this);const _0x5691bc=_0x44c34f['getRanges']();this['editor']['model']['canEditAt'](_0x5691bc)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x44c34f);}}function ls(_0x4fe701,_0x3e512b){let _0xdf6c96='';return _0xdf6c96+=_0x4fe701['split']('*')['map']((_0x4ff3d1,_0x2ffb84)=>_0x2ffb84%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4ff3d1)+'</span>':nn(_0x4ff3d1))['join'](''),_0x3e512b&&(_0xdf6c96+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3e512b['value']+'\x22\x20title=\x22'+_0x3e512b['title']+'\x22></span>'),_0xdf6c96;}function nn(_0x3d49c1){const _0x3e7dc1=document['createElement']('span');return _0x3e7dc1['innerText']=_0x3d49c1,_0x3e7dc1['innerHTML'];}function ts(_0x5a2be1){return _0x5a2be1['sort']((_0x3f9839,_0x162eb8)=>'deletion'==_0x3f9839['type']&&'deletion'!=_0x162eb8['type']?-0x1:'deletion'!=_0x3f9839['type']&&'deletion'==_0x162eb8['type']?0x1:0x0);}function to(_0x1fd031,_0x5888bd){let _0x477517,_0x1cfdd3=0x0;const _0x4220c8=[],_0x169b50=_0x5888bd['schema'];for(;_0x1cfdd3<_0x1fd031['length'];){const _0x475dcd=_0x1fd031[_0x1cfdd3],_0x5f4827=_0x1fd031[_0x1cfdd3+0x1];_0x477517||(_0x477517=_0x5888bd['createPositionBefore'](_0x475dcd)),on(_0x5888bd,_0x475dcd,_0x5f4827)||(_0x4220c8['push'](_0x5888bd['createRange'](_0x477517,_0x169b50['isObject'](_0x475dcd)?_0x5888bd['createPositionAfter'](_0x475dcd):_0x5888bd['createPositionAt'](_0x475dcd,'end'))),_0x477517=null),_0x1cfdd3++;}return _0x4220c8;}function on(_0x53eba9,_0x43c66b,_0x50d2d9){if(!_0x50d2d9)return!0x1;const _0x2d97f2=_0x53eba9['createPositionAfter'](_0x43c66b),_0x4c9bc2=_0x53eba9['createPositionBefore'](_0x50d2d9);return _0x2d97f2['isTouching'](_0x4c9bc2);}function rs(_0x6e74f5,_0x3bd358,_0x645e2c){for(;_0x645e2c['length'];){const _0x1816a7=_0x645e2c['splice'](0x0,0x64);_0x6e74f5['change'](()=>{for(const _0x3026ae of _0x1816a7)_0x3026ae['isInContent']&&_0x3bd358['execute'](_0x3026ae['id']);});}}class R extends _0x3735c6{['_command'];['_suggestions'];constructor(_0x46bbe,_0x95021a,_0x22324c){super(_0x46bbe),this['_command']=_0x95021a,this['_suggestions']=_0x22324c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2b5645=Array['from'](this['_suggestions']['values']())['some'](_0x3bdf4f=>_0x3bdf4f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2b5645;}['execute'](){const _0x123dc2=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3e585d of _0x123dc2){const _0x4ab55d=_0x3e585d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4ab55d))return;}rs(this['editor']['model'],this['_command'],_0x123dc2);}}class E extends _0x3735c6{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3ddac3,_0xfaeae3,_0x16c281){super(_0x3ddac3),this['_command']=_0xfaeae3,this['_suggestions']=_0x16c281,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1fd6da=this['editor']['model']['document']['selection'],_0x3b7893=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3e6920,_0x5eb71d){const _0x4cca5d=Array['from'](_0x3e6920['getRanges']()),_0x3e370c=new Set();for(const _0x4c73b3 of _0x5eb71d)if(_0x4c73b3['isInContent']){for(const _0x65d5b2 of _0x4cca5d)for(const _0x33679d of _0x4c73b3['getRanges']())(_0x65d5b2['isIntersecting'](_0x33679d)||_0x3e6920['isCollapsed']&&!_0x4c73b3['isMultiRange']&&_0x4c73b3['next']&&_0x33679d['end']['isTouching'](_0x65d5b2['start']))&&_0x3e370c['add'](_0x4c73b3);}return _0x3e370c;}(_0x1fd6da,_0x3b7893),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1707d8=ts(Array['from'](this['_selectedSuggestions']));for(const _0x449ce4 of _0x1707d8){const _0x4c8968=_0x449ce4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4c8968))return;}rs(this['editor']['model'],this['_command'],_0x1707d8);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x46b4f9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x16b143,_0x33089d){super(),this['id']=_0x33089d['id'],this['type']=_0x33089d['type'],this['subType']=_0x33089d['subType']||null,this['author']=_0x33089d['author'],this['creator']=_0x33089d['creator']||_0x33089d['author'],this['isExternal']=Boolean(_0x33089d['attributes']&&_0x33089d['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x33089d['originalSuggestionId']||null,this['_model']=_0x16b143,this['_onAccept']=_0x33089d['onAccept'],this['_onDiscard']=_0x33089d['onDiscard'],this['_onAttributesChange']=_0x33089d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x33089d['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 _0x14899c=this;for(;_0x14899c['previous'];)_0x14899c=_0x14899c['previous'];return _0x14899c;}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'](_0x6b1442){this['_markerNames']['add'](_0x6b1442);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4590f1=>this['_model']['markers']['get'](_0x4590f1))['filter'](_0x5d13ba=>_0x5d13ba);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x22c8d1=>{for(const _0x4332a0 of this['getMarkers']())_0x22c8d1['removeMarker'](_0x4332a0);}),this['_markerNames']['clear']();}['removeMarker'](_0x21231a){this['_model']['change'](_0x196c75=>{_0x196c75['removeMarker'](_0x21231a);}),this['_markerNames']['delete'](_0x21231a);}['addRange'](_0x283fe4){const _0x2d676a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x2d676a),this['_model']['change'](_0x38c050=>{_0x38c050['addMarker'](_0x2d676a,{'range':_0x283fe4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1b9ea9){for(const _0x3a3d6d of this['getRanges']())if(_0x3a3d6d['isIntersecting'](_0x1b9ea9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4ef22b=>_0x4ef22b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5297f3,_0x56ce45)=>[..._0x5297f3,..._0x56ce45['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x575411=this['getRanges']();if(0x1!=_0x575411['length'])return null;const _0x294e01=_0x575411[0x0],_0x26ea63=_0x294e01['start']['nodeAfter'],_0x279388=_0x294e01['end']['nodeBefore'];return _0x26ea63 instanceof _0x8d5a34?_0x26ea63!=_0x279388?null:_0x26ea63: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 _0x2dce03=[];let _0x55a540=this['head'];for(;_0x55a540;)_0x2dce03['push'](_0x55a540),_0x55a540=_0x55a540['next'];return _0x2dce03;}['setAttribute'](_0xa12f48,_0x513c8b){const _0x534492=_0x41ba95(this['attributes']);_0x300c40(_0x534492,_0xa12f48,_0x513c8b),_0x312846(_0x534492,this['attributes'])||(this['attributes']=_0x534492,this['_onAttributesChange'](_0x534492));}['removeAttribute'](_0x15e07b){const _0x3df45d=_0x41ba95(this['attributes']);_0x35fa8c(_0x3df45d,_0x15e07b),_0x312846(_0x3df45d,this['attributes'])||(this['attributes']=_0x3df45d,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 _0x38b19c()['substr'](0x1,0x5);}}function c(_0x20e70d,_0x38be83,_0x538755){const _0x55c813=_0x20e70d['t'],t=_0x20e70d['t'];switch(_0x38be83){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',_0x538755);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x538755);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x538755);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x538755);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x538755);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',_0x538755);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x538755);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',_0x538755);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x538755);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x538755);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x538755);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x538755);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x538755);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x538755);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x538755);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x538755);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x538755);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x538755);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x538755);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x538755);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x538755);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x538755);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x538755);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x538755);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x538755);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'},_0x538755);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x538755);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x538755);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x538755);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x538755);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x538755);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x538755);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x538755);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'},_0x538755);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x538755);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x538755);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x538755);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x538755);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'},_0x538755);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x538755);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'},_0x538755);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'},_0x538755);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x538755);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'},_0x538755);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x538755);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'},_0x538755);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x538755);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x538755);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'},_0x538755);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x538755);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 _0x55c813({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x538755);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x55c813({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x538755);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x538755);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'},_0x538755);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'},_0x538755);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'},_0x538755);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x38be83;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x446cf2,_0x5d6212){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x446cf2,this['_locale']=_0x5d6212;}['getDescriptions'](_0x493aa8){const _0x36e8ec=[],_0x28312c=new Set(),_0x45fa49=new Set();for(let _0x4c0008=0x0;_0x4c0008<_0x493aa8['length'];_0x4c0008++){const _0x13450a=_0x493aa8[_0x4c0008];if(!_0x13450a['isInContent'])continue;const _0x1443e3=this['_handleCustomCallbackDescription'](_0x13450a);if(_0x1443e3){if(null!=_0x13450a['subType']){if(_0x28312c['has'](_0x13450a['subType']))continue;_0x28312c['add'](_0x13450a['subType']);}_0x36e8ec['push'](_0x1443e3);}else{if('attribute'==_0x13450a['type']){const _0x28cdcb=_0x13450a['data']['key'];if(_0x45fa49['has'](_0x28cdcb))continue;_0x45fa49['add'](_0x13450a['data']['key']),_0x28cdcb==u?this['_handleRenameSuggestionDescription'](_0x36e8ec,_0x13450a):this['_handleAttributeSuggestionDescription'](_0x36e8ec,_0x13450a);continue;}'insertion'!=_0x13450a['type']&&'deletion'!=_0x13450a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x36e8ec,_0x13450a,_0x493aa8[_0x4c0008+0x1]);}}return this['_resolveDescriptionItems'](_0x36e8ec);}['registerDescriptionCallback'](_0x1c8d4e){this['_customCallbacks']['push'](_0x1c8d4e);}['registerElementLabel'](_0x3081da,_0x4b47e5,_0x4016f5=_0x4c334b['normal']){'function'==typeof _0x3081da?_0xb0c78c(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3081da,'label':_0x4b47e5,'priority':_0x4016f5}):this['_itemLabels']['set'](_0x3081da,_0x4b47e5);}['registerAttributeLabel'](_0x5274ec,_0x1e7f28){this['_attributeLabels']['set'](_0x5274ec,_0x1e7f28);}['getItemLabel'](_0x37c85c,_0x24a556=0x1){let _0xa2f725;for(const _0x5bf198 of this['_itemLabelsCallbacks'])if(_0x5bf198['matchingCallback'](_0x37c85c)){_0xa2f725=_0x5bf198['label'];break;}return _0xa2f725||(_0xa2f725=this['_itemLabels']['get'](_0x37c85c['name'])),_0xa2f725?_0xa2f725(_0x24a556):0x1!==_0x24a556?_0x24a556+'\x20'+_0x37c85c['name']+'s':''+_0x37c85c['name'];}['_addDescriptionItems'](_0x22f23e,_0x550031){const _0x24f79f=_0x550031['getFirstRange']()['getWalker'](),_0x177d21='insertion'==_0x550031['type']?'add':'remove';for(const _0x48a732 of _0x24f79f){const _0x9d898f=_0x48a732['item'],_0x285cdd=_0x22f23e[_0x22f23e['length']-0x1];if(_0x9d898f['is']('$textProxy'))_0x285cdd&&_0x285cdd['type']['indexOf']('Container')>-0x1&&_0x22f23e['pop'](),_0x285cdd&&'text'==_0x285cdd['type']?_0x285cdd[_0x177d21]+=_0x9d898f['data']:_0x22f23e['push']({'type':'text','add':'add'==_0x177d21?_0x9d898f['data']:'','remove':'remove'==_0x177d21?_0x9d898f['data']:''});else{if(this['_schema']['isObject'](_0x9d898f)){const _0x2a0f45=_0x9d898f;if(_0x285cdd&&_0x285cdd['type']['indexOf']('Container')>-0x1&&_0x22f23e['pop'](),'elementEnd'==_0x48a732['type'])continue;_0x285cdd&&_0x285cdd['type']==_0x177d21+'Object'&&_0x285cdd['element']['name']==_0x2a0f45['name']?_0x285cdd['quantity']++:_0x22f23e['push']({'type':_0x177d21+'Object','element':_0x2a0f45,'quantity':0x1}),_0x24f79f['skip'](_0x2f31f4=>!('elementEnd'==_0x2f31f4['type']&&_0x2f31f4['item']==_0x9d898f));}else{if(this['_schema']['checkChild'](_0x9d898f,'$text')||_0x9d898f['is']('element','softBreak')){const _0x5ecd05=_0x9d898f;if('add'==_0x177d21&&'elementStart'==_0x48a732['type']||'remove'==_0x177d21&&'elementEnd'==_0x48a732['type'])continue;if(_0x285cdd&&-0x1==_0x285cdd['type']['indexOf']('Container')){'text'==_0x285cdd['type']&&(_0x285cdd[_0x177d21]+='\x0a');continue;}let _0x6ada11;if(_0x6ada11='add'==_0x177d21?_0x5ecd05['nextSibling']&&!this['_schema']['isObject'](_0x5ecd05['nextSibling'])?_0x5ecd05['nextSibling']:null:_0x5ecd05['previousSibling']&&!this['_schema']['isObject'](_0x5ecd05['previousSibling'])?_0x5ecd05['previousSibling']:null,_0x5ecd05['isEmpty']||_0x6ada11&&_0x6ada11['isEmpty']){const _0x90c3d4=_0x6ada11&&_0x6ada11['isEmpty']?_0x6ada11:_0x5ecd05;_0x285cdd&&_0x285cdd['type']==_0x177d21+'EmptyContainer'&&_0x285cdd['element']['name']==_0x90c3d4['name']?_0x285cdd['quantity']++:_0x22f23e['push']({'type':_0x177d21+'EmptyContainer','element':_0x90c3d4,'quantity':0x1});}else _0x22f23e['push']({'type':_0x177d21+'Container','element':_0x5ecd05});}}}}}['_resolveDescriptionItems'](_0x9807d7){const _0x3f9d0d=this['_locale'],_0x11287e=[],_0x196841=[],_0x579480=[];for(const _0x4c0cb9 of _0x9807d7)switch(_0x4c0cb9['type']){case'text':if(_0x4c0cb9['add']=_0x4c0cb9['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4c0cb9['remove']=_0x4c0cb9['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4c0cb9['add']&&''!=_0x4c0cb9['remove']){_0x11287e['push']({'type':'replace','content':c(_0x3f9d0d,'REPLACE_TEXT',['\x22'+_0x4c0cb9['remove']+'\x22','\x22'+_0x4c0cb9['add']+'\x22'])});continue;}if(null!=_0x4c0cb9['add']['match'](/^ +$/)){_0x11287e['push']({'type':'insertion','content':c(_0x3f9d0d,'*Insert:*\x20%0',c(_0x3f9d0d,'ELEMENT_SPACE',_0x4c0cb9['add']['length']))});continue;}if(null!=_0x4c0cb9['remove']['match'](/^ +$/)){_0x11287e['push']({'type':'deletion','content':c(_0x3f9d0d,'*Remove:*\x20%0',c(_0x3f9d0d,'ELEMENT_SPACE',_0x4c0cb9['remove']['length']))});continue;}if(''!=_0x4c0cb9['add']){_0x11287e['push']({'type':'insertion','content':c(_0x3f9d0d,'*Insert:*\x20%0','\x22'+_0x4c0cb9['add']+'\x22')});continue;}_0x11287e['push']({'type':'deletion','content':c(_0x3f9d0d,'*Remove:*\x20%0','\x22'+_0x4c0cb9['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x11287e['push']({'type':'insertion','content':c(_0x3f9d0d,'*Insert:*\x20%0',this['getItemLabel'](_0x4c0cb9['element'],_0x4c0cb9['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x11287e['push']({'type':'deletion','content':c(_0x3f9d0d,'*Remove:*\x20%0',this['getItemLabel'](_0x4c0cb9['element'],_0x4c0cb9['quantity']))});continue;case'addContainer':_0x11287e['push']({'type':'insertion','content':c(_0x3f9d0d,'*Split:*\x20%0',this['getItemLabel'](_0x4c0cb9['element'],_0x4c0cb9['quantity']))});continue;case'removeContainer':_0x11287e['push']({'type':'deletion','content':c(_0x3f9d0d,'*Merge:*\x20%0',this['getItemLabel'](_0x4c0cb9['element'],_0x4c0cb9['quantity']))});continue;case'addFormat':_0x196841['push'](_0x4c0cb9['key']);continue;case'removeFormat':_0x579480['push'](_0x4c0cb9['key']);continue;default:_0x11287e['push'](_0x4c0cb9);}if(_0x196841['length']){const _0x140fff=_0x196841['map'](_0x4316e7=>this['_attributeLabels']['has'](_0x4316e7)?this['_attributeLabels']['get'](_0x4316e7):_0x4316e7)['join'](',\x20');_0x11287e['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x140fff)});}if(_0x579480['length']){const _0x47c478=_0x579480['map'](_0x131d41=>this['_attributeLabels']['has'](_0x131d41)?this['_attributeLabels']['get'](_0x131d41):_0x131d41)['join'](',\x20');_0x11287e['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x47c478)});}return _0x11287e;}['_handleCustomCallbackDescription'](_0x28c969){for(const _0x259c8d of this['_customCallbacks']){const _0x51e2ae=_0x259c8d(_0x28c969);if(_0x51e2ae&&'type'in _0x51e2ae)return _0x51e2ae;}}['_handleAttributeSuggestionDescription'](_0xf0ef28,_0x487b86){const _0x753ac9=_0x487b86['data'],_0xdb140b=void 0x0===_0x753ac9['newValue']?'removeFormat':'addFormat';_0xf0ef28['push']({'type':_0xdb140b,'key':_0x753ac9['key']});}['_handleRenameSuggestionDescription'](_0x554d69,_0x4548bb){_0x554d69['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4548bb['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2627b2,_0x5f57ca,_0x42ff7d){if(this['_addDescriptionItems'](_0x2627b2,_0x5f57ca),_0x42ff7d&&_0x42ff7d['getFirstRange']()&&!_0x5f57ca['getFirstRange']()['end']['isEqual'](_0x42ff7d['getFirstRange']()['start'])){const _0xb50ec4=_0x2627b2[_0x2627b2['length']-0x1],_0x4ab272='insertion'==_0x5f57ca['type']?'add':'remove';_0xb50ec4&&'text'==_0xb50ec4['type']&&(_0xb50ec4[_0x4ab272]+='\x0a');}}}class U extends _0x3525e7{['afterInit'](){const _0x6c7be4=this['editor'],_0x8fb144=_0x6c7be4['plugins']['get']('TrackChangesEditing');_0x6c7be4['commands']['get']('showAIAssistant')&&_0x8fb144['enableCommand']('showAIAssistant');}}class V extends _0x3525e7{['afterInit'](){const _0x5bca99=this['editor'],_0x3e5804=_0x5bca99['locale'];if(!_0x5bca99['plugins']['has']('AlignmentEditing'))return;const _0x40af75=_0x5bca99['plugins']['get']('TrackChangesEditing');_0x40af75['enableDefaultAttributesIntegration']('alignment'),_0x40af75['registerBlockAttribute']('alignment'),_0x40af75['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x3e5804,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x547f2a=this['editor'],_0x3e0e6a=_0x547f2a['locale'];_0x547f2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4551f9=>{if('formatBlock'!=_0x4551f9['type'])return;const {data:_0x5e49ee}=_0x4551f9;if(_0x5e49ee&&'alignment'==_0x5e49ee['commandName']){const _0x220722=_0x5e49ee['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x3e0e6a,'*Format:*\x20%0',function(_0x2b0b1c){switch(_0x2b0b1c){case'left':return c(_0x3e0e6a,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x3e0e6a,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x3e0e6a,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x3e0e6a,'FORMAT_JUSTIFY_TEXT');}}(_0x220722))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x3525e7{['afterInit'](){const _0x3ad570=this['editor'],_0x3c594d=_0x3ad570['plugins']['get']('TrackChangesEditing'),_0x18bdd0=_0x3ad570['locale'];for(const _0xfb4ba1 of ti){if(!_0x3ad570['plugins']['has'](_0xfb4ba1))continue;const _0x35af8a=_0xfb4ba1['slice'](0x0,-0x7)['toLowerCase'](),_0x3b58ba='FORMAT_'+_0x35af8a['toUpperCase']();_0x3c594d['enableDefaultAttributesIntegration'](_0x35af8a),_0x3c594d['registerInlineAttribute'](_0x35af8a),_0x3c594d['descriptionFactory']['registerAttributeLabel'](_0x35af8a,c(_0x18bdd0,_0x3b58ba));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ddc4a=this['editor'],_0x84473d=_0x5ddc4a['locale'],_0x31e6f1=_0x5ddc4a['plugins']['get']('TrackChangesEditing');function _0x16e9e9(_0x1f60b9,_0x5ce4b5){_0x31e6f1['descriptionFactory']['registerDescriptionCallback'](_0x48a2c0=>{if('formatInline'!=_0x48a2c0['type'])return;const {data:_0x343dec}=_0x48a2c0;return _0x343dec&&_0x343dec['commandName']===_0x1f60b9?_0x343dec['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x84473d,'*Format:*\x20%0',_0x5ce4b5)}:{'type':'format','content':c(_0x84473d,'*Remove\x20format:*\x20%0',_0x5ce4b5)}:void 0x0;});}_0x16e9e9('bold',c(_0x84473d,'FORMAT_BOLD')),_0x16e9e9('italic',c(_0x84473d,'FORMAT_ITALIC')),_0x16e9e9('underline',c(_0x84473d,'FORMAT_UNDERLINE')),_0x16e9e9('code',c(_0x84473d,'FORMAT_CODE')),_0x16e9e9('strikethrough',c(_0x84473d,'FORMAT_STRIKETHROUGH')),_0x16e9e9('subscript',c(_0x84473d,'FORMAT_SUBSCRIPT')),_0x16e9e9('superscript',c(_0x84473d,'FORMAT_SUPERSCRIPT'));}}class G extends _0x3525e7{['afterInit'](){const _0x148cce=this['editor'],_0x458c06=_0x148cce['locale'];if(!_0x148cce['plugins']['has']('BlockQuoteEditing'))return;const _0x3abfe5=_0x148cce['plugins']['get']('TrackChangesEditing'),_0x4e61c6=this['editor']['commands']['get']('blockQuote');_0x3abfe5['enableCommand']('blockQuote',(_0x3c8401,_0x25cf7b={})=>{const _0x545dd5=this['editor']['model']['document']['selection'],_0x20548a=_0x25cf7b&&void 0x0!==_0x25cf7b['forceValue']?_0x25cf7b['forceValue']:!_0x4e61c6['value'];let _0x1f3f37=[];if(_0x20548a){const _0x41b798=Array['from'](_0x545dd5['getSelectedBlocks']())['filter'](_0x5e791d=>oo(_0x5e791d)||function(_0x54db01,_0x148c3c){const _0x4a57a3=_0x148c3c['checkChild'](_0x54db01['parent'],'blockQuote'),_0x53d6dc=_0x148c3c['checkChild'](['$root','blockQuote'],_0x54db01);return _0x4a57a3&&_0x53d6dc;}(_0x5e791d,this['editor']['model']['schema']));_0x1f3f37=to(_0x41b798,_0x148cce['model']);}else{const _0x27e59c=Array['from'](_0x545dd5['getSelectedBlocks']())['filter'](_0x281c8d=>oo(_0x281c8d));_0x1f3f37=to(_0x27e59c,_0x148cce['model']);}_0x148cce['model']['change'](()=>{for(const _0x554092 of _0x1f3f37)_0x3abfe5['markBlockFormat'](_0x554092,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x20548a}]});});}),_0x3abfe5['descriptionFactory']['registerDescriptionCallback'](_0x155021=>{const {data:_0x481e55}=_0x155021;if(_0x481e55&&'blockQuote'==_0x481e55['commandName']){const _0x22639d=c(_0x458c06,'ELEMENT_BLOCK_QUOTE');return _0x481e55['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x458c06,'*Set\x20format:*\x20%0',_0x22639d)}:{'type':'format','content':c(_0x458c06,'*Remove\x20format:*\x20%0',_0x22639d)};}});}}function oo(_0x54ceb2){return'blockQuote'==_0x54ceb2['parent']['name'];}class L extends _0x3525e7{['afterInit'](){const _0x17c50b=this['editor'],_0x3688f7=_0x17c50b['locale'],_0x5ad2c0=_0x17c50b['plugins']['get']('TrackChangesEditing');_0x17c50b['plugins']['has']('BookmarkEditing')&&(_0x5ad2c0['enableCommand']('insertBookmark'),_0x5ad2c0['enableDefaultAttributesIntegration']('updateBookmark'),_0x5ad2c0['registerBlockAttribute']('bookmarkId'),_0x5ad2c0['descriptionFactory']['registerDescriptionCallback'](_0x55794d=>{if('insertion'!=_0x55794d['type']&&'deletion'!=_0x55794d['type']&&'attribute'!=_0x55794d['type'])return;const _0x22f37d=_0x55794d['getContainedElement']();if(null==_0x22f37d)return;if(!_0x22f37d['is']('element','bookmark'))return;const _0x21f6fc=_0x22f37d['getAttribute']('bookmarkId');if('insertion'==_0x55794d['type'])return{'type':'insertion','content':c(_0x3688f7,'*Insert:*\x20%0','\x22'+_0x21f6fc+'\x22\x20'+c(_0x3688f7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x55794d['type'])return{'type':'deletion','content':c(_0x3688f7,'*Remove:*\x20%0','\x22'+_0x21f6fc+'\x22\x20'+c(_0x3688f7,'ELEMENT_BOOKMARK'))};const {data:_0x2bb198}=_0x55794d;if(!_0x2bb198||'bookmarkId'!=_0x2bb198['key'])return;return{'type':'format','content':c(_0x3688f7,'*Set\x20bookmark:*\x20%0','\x22'+_0x2bb198['newValue']+'\x22')};}));}}class J extends _0x3525e7{['afterInit'](){const _0xaec751=this['editor'];_0xaec751['plugins']['has']('CaseChange')&&(_0xaec751['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xaec751['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xaec751['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x3525e7{['afterInit'](){const _0xce27a8=this['editor'];_0xce27a8['commands']['get']('ckbox')&&_0xce27a8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x3525e7{['afterInit'](){const _0x1e0774=this['editor'];if(!_0x1e0774['plugins']['has']('CodeBlock'))return;const _0x529a81=_0x1e0774['plugins']['get']('TrackChangesEditing'),_0x4b0d7e=_0x1e0774['locale'],_0xa97e88=_0x1e0774['config']['get']('codeBlock')['languages'],_0x38f646=_0x1e0774['commands']['get']('codeBlock');_0x529a81['enableCommand']('indentCodeBlock'),_0x529a81['enableCommand']('outdentCodeBlock'),_0x529a81['enableCommand']('codeBlock',(_0x3dba8c,_0x154891={})=>{const _0x30e37f=_0x1e0774['model'],_0x12eca7=_0x1e0774['model']['document']['selection'],_0x1201a6=_0x154891&&void 0x0!==_0x154891['forceValue']?_0x154891['forceValue']:!_0x38f646['value'];let _0x14fa4b;_0x154891['language']||(_0x154891['language']=_0xa97e88[0x0]['language']),_0x14fa4b=_0x1201a6?Array['from'](_0x12eca7['getSelectedBlocks']())['filter'](_0x1bb66a=>eo(_0x1bb66a)||function(_0x131dfd,_0x208e82){if(_0x131dfd['is']('rootElement')||_0x208e82['isLimit'](_0x131dfd))return!0x1;return _0x208e82['checkChild'](_0x131dfd['parent'],'codeBlock');}(_0x1bb66a,_0x30e37f['schema'])):Array['from'](_0x12eca7['getSelectedBlocks']())['filter'](_0x32a09d=>eo(_0x32a09d));const _0xe10e69=to(_0x14fa4b,_0x30e37f);_0x30e37f['change'](()=>{for(const _0x4ea127 of _0xe10e69)_0x529a81['markBlockFormat'](_0x4ea127,{'commandName':'codeBlock','commandParams':[{..._0x154891,'forceValue':_0x1201a6}],'formatGroupId':'blockName'});});}),(_0x529a81['descriptionFactory']['registerElementLabel']('codeBlock',_0x599af6=>c(_0x4b0d7e,'ELEMENT_CODE_BLOCK',_0x599af6)),_0x529a81['descriptionFactory']['registerDescriptionCallback'](_0x1a0f14=>{if('formatBlock'!=_0x1a0f14['type'])return;const _0x1e7e81=_0x4b0d7e['t'],{data:_0x44d28f}=_0x1a0f14;if(!_0x44d28f||'codeBlock'!=_0x44d28f['commandName'])return;const _0x242dba=_0x44d28f['commandParams'][0x0]['language'],_0x3674d3=_0x1e7e81(_0xa97e88['find'](_0x8505ff=>_0x8505ff['language']===_0x242dba)['label'])['toLowerCase']();return _0x44d28f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4b0d7e,'*Set\x20format:*\x20%0',c(_0x4b0d7e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3674d3+')')}:{'type':'format','content':c(_0x4b0d7e,'*Remove\x20format:*\x20%0',c(_0x4b0d7e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x459e10){return'codeBlock'==_0x459e10['name'];}class q extends _0x3525e7{['afterInit'](){const _0xc8631c=this['editor'];if(!_0xc8631c['plugins']['has']('CommentsEditing'))return;_0xc8631c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x256589,_0x1789fe,_0x25f699){const _0x1ea8dc=[];for(const _0x40e3b0 of _0x1789fe['getItems']())_0x40e3b0['hasAttribute'](_0x256589)&&_0x1ea8dc['push'](_0x25f699['createRangeOn'](_0x40e3b0));return _0x1ea8dc;}function Fe(_0x5d67b6,_0xd3a05d,{showActiveMarker:_0x4d9f94=!0x0}={}){const _0x240a6d=_0x5d67b6['plugins']['get']('TrackChangesEditing');return(_0x1b86f3,_0x124121,_0x16ed7e)=>{if(!_0x16ed7e['consumable']['test'](_0x124121['markerRange'],_0x1b86f3['name']))return;const _0x3f800d=_0x124121['markerRange']['getWalker'](),_0x3f5c84=_0x124121['markerRange']['start'],_0x1b260d=_0x5d67b6['model']['schema'];let _0x3e0fc0=null,_0x85c49d=null,_0x24f930=!0x1,_0x2056e5=!0x1;for(const _0x399f52 of _0x3f800d){const _0x55704=_0x399f52['item'];_0x24f930=_0x24f930||_0x1b260d['isContent'](_0x55704);const _0x5cb395=_0x16ed7e['mapper']['toViewElement'](_0x55704);if(_0x5cb395&&_0x5cb395['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x399f52['type']&&(_0x1b260d['isBlock'](_0x55704)&&!_0x1b260d['isLimit'](_0x55704)&&(_0x55704['nextSibling']||_0x3f5c84['isAtEnd']?_0x3e0fc0&&_0x3e0fc0['parent']==_0x55704||(_0x3e0fc0=_0x55704,_0x138b46(_0x399f52['previousPosition']),_0x2056e5=!0x0):_0x85c49d=_0x85c49d||_0x399f52['previousPosition']));}function _0x138b46(_0x47f5c0){const {id:_0x52ca29,authorId:_0x231cab}=_0x240a6d['_splitMarkerName'](_0x124121['markerName']),_0x1d6a8f=_0x16ed7e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xd3a05d,'data-suggestion':_0x52ca29,'data-author-id':_0x231cab}),_0x45bc49=_0x16ed7e['mapper']['toViewPosition'](_0x47f5c0);_0x4d9f94&&_0x240a6d['activeMarkers']['includes'](_0x124121['markerName'])&&_0x16ed7e['writer']['addClass']('ck-suggestion-marker--active',_0x1d6a8f),_0x16ed7e['writer']['insert'](_0x45bc49,_0x1d6a8f),_0x16ed7e['mapper']['bindElementToMarker'](_0x1d6a8f,_0x124121['markerName']);}_0x24f930||_0x2056e5||!_0x85c49d||_0x138b46(_0x85c49d);};}class z extends _0x3525e7{static get['requires'](){return[_0x442774];}['init'](){const _0x43f0f5=this['editor'],_0x44947e=_0x43f0f5['plugins']['get']('TrackChangesEditing');_0x44947e['enableCommand']('delete');const _0x8d0842=_0x43f0f5['commands']['get']('deleteForward');_0x44947e['enableCommand']('deleteForward',(_0x1137f6,_0x18cfed={})=>{const _0x24562c=_0x43f0f5['model']['createSelection'](_0x43f0f5['model']['document']['selection']);_0x24562c['isCollapsed']&&_0x43f0f5['model']['modifySelection'](_0x24562c,{'direction':'forward','unit':_0x18cfed['unit']});const _0x3b89ba=_0x24562c['getFirstRange'](),_0x5c57e5=_0x5d59ab['fromRange'](_0x3b89ba);let _0x1de343;_0x1137f6(_0x18cfed),_0x1de343='$graveyard'==_0x5c57e5['root']['rootName']?_0x43f0f5['model']['createRange'](_0x3b89ba['start']):_0x43f0f5['model']['createRange'](_0x5c57e5['start'],_0x5c57e5['end']),_0x5c57e5['detach'](),_0x43f0f5['model']['enqueueChange'](_0x8d0842['buffer']['batch'],_0x3f2f44=>{_0x8d0842['buffer']['lock'](),_0x3f2f44['setSelection'](_0x3f2f44['createRange'](_0x1de343['end'])),_0x8d0842['buffer']['unlock']();});}),_0x43f0f5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x43f0f5,'merge'),{'priority':'high'}),_0x43f0f5['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x51d62a,_0x2c286c,_0x5e1c53)=>{_0x5e1c53['options']['showSuggestionHighlights']&&Fe(_0x43f0f5,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x51d62a,_0x2c286c,_0x5e1c53);},{'priority':'high'}),_0x43f0f5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x165cec,_0x389c2d,_0x11d233)=>{const _0x5decf2=_0x11d233['mapper']['markerNameToElements'](_0x389c2d['markerName']);if(_0x5decf2){for(const _0x3e4e33 of _0x5decf2)_0x3e4e33['is']('uiElement')&&(_0x11d233['mapper']['unbindElementFromMarkerName'](_0x3e4e33,_0x389c2d['markerName']),_0x11d233['writer']['remove'](_0x3e4e33));}},{'priority':'high'});}}class W extends _0x3525e7{['afterInit'](){const _0x3ab38a=this['editor'];if(!_0x3ab38a['plugins']['has']('ListEditing'))return;const _0x1a86f7=_0x3ab38a['locale'],_0x5b8146=_0x3ab38a['plugins']['get']('TrackChangesEditing'),_0x28ba81=_0x3ab38a['plugins']['has']('TodoListEditing'),_0x8002ce=!!_0x3ab38a['config']['get']('list.multiBlock');function _0x333b91(_0x369503){return{'type':'format','content':''+c(_0x1a86f7,'*Set\x20format:*\x20%0',_0x369503)};}function _0x4b683b(_0x5281d1){return{'type':'format','content':''+c(_0x1a86f7,'*Remove\x20format:*\x20%0',_0x5281d1)};}_0x5b8146['enableDefaultAttributesIntegration']('numberedList'),_0x5b8146['enableDefaultAttributesIntegration']('bulletedList'),_0x5b8146['enableDefaultAttributesIntegration']('customNumberedList'),_0x5b8146['enableDefaultAttributesIntegration']('customBulletedList'),_0x5b8146['enableDefaultAttributesIntegration']('indentList'),_0x5b8146['enableDefaultAttributesIntegration']('outdentList'),_0x5b8146['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5b8146['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5b8146['registerBlockAttribute']('listItemId'),_0x5b8146['registerBlockAttribute']('listType'),_0x5b8146['registerBlockAttribute']('listIndent'),_0x8002ce&&(_0x5b8146['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5b8146['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x28ba81&&(_0x5b8146['enableDefaultAttributesIntegration']('todoList'),_0x5b8146['enableDefaultAttributesIntegration']('checkTodoList'),_0x5b8146['registerBlockAttribute']('todoListChecked'),_0x5b8146['descriptionFactory']['registerDescriptionCallback'](_0x16da75=>{const {data:_0x357bff}=_0x16da75;if(_0x357bff&&'todoListChecked'==_0x357bff['key'])return{'type':'format','content':_0x357bff['newValue']?c(_0x1a86f7,'*Check\x20item*'):c(_0x1a86f7,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x586d4b=>{if(_0x586d4b['batch']['isUndo'])return!0x1;let _0x1f92f1=!0x1;const _0x56a8f8=_0x5b8146['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42140a=>'todoListChecked'===_0x5b8146['_getAttributeKey'](_0x42140a));for(const _0x1bc9f9 of _0x56a8f8){'todo'!=_0x1bc9f9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5b8146['_findSuggestions'](_0x1bc9f9['getFirstRange'](),'attribute')['find'](_0x4bd2ea=>'listType'===_0x5b8146['_getAttributeKey'](_0x4bd2ea['suggestion']))||(_0x586d4b['removeMarker'](_0x1bc9f9['getFirstMarker']()),_0x1f92f1=!0x0));}return _0x1f92f1;})),_0x5b8146['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x1a86f7,'FORMAT_INDENT'));const _0x132816={'type':'format','content':''};_0x5b8146['descriptionFactory']['registerDescriptionCallback'](_0x4ece7f=>{const {data:_0x320346}=_0x4ece7f;if(!_0x320346||'listType'!=_0x320346['key'])return;let _0x7329d1=_0x4ece7f['head'];for(;_0x7329d1;){if(_0x7329d1['data']&&(('listStyle'==_0x7329d1['data']['key']||'listMarkerStyle'==_0x7329d1['data']['key'])&&(_0x7329d1['data']['newValue']&&'default'!=_0x7329d1['data']['newValue']||'default'!=_0x7329d1['data']['oldValue']&&!_0x320346['newValue'])||!_0x8002ce&&_0x7329d1['data']['key']==u))return _0x132816;_0x7329d1=_0x7329d1['next'];}if(null==_0x320346['newValue'])switch(_0x320346['oldValue']){case'bulleted':return _0x4b683b(c(_0x1a86f7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b683b(c(_0x1a86f7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b683b(c(_0x1a86f7,'ELEMENT_TODO_LIST'));}switch(_0x320346['newValue']){case'bulleted':return _0x333b91(c(_0x1a86f7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x333b91(c(_0x1a86f7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x333b91(c(_0x1a86f7,'ELEMENT_TODO_LIST'));}}),_0x5b8146['descriptionFactory']['registerDescriptionCallback'](_0x221026=>{const {data:_0x2ca16e}=_0x221026;if(_0x2ca16e&&'listIndent'==_0x2ca16e['key'])return null==_0x2ca16e['newValue']||null==_0x2ca16e['oldValue']&&0x0==_0x2ca16e['newValue']?_0x132816:void 0x0;}),_0x5b8146['descriptionFactory']['registerDescriptionCallback'](_0xc14601=>{if('attribute'!=_0xc14601['type'])return;const {data:_0x1af1b3}=_0xc14601;if(!_0x1af1b3||'listItemId'!=_0x1af1b3['key'])return;const _0x14ab70=Te(_0xc14601);return'newValue'==_0x14ab70?{'type':'format','content':c(_0x1a86f7,'*Merge:*\x20list\x20item')}:'oldValue'==_0x14ab70?{'type':'format','content':c(_0x1a86f7,'*Split:*\x20list\x20item')}:_0x132816;}),_0x3ab38a['model']['document']['registerPostFixer'](_0x461b76=>this['listItemIdFixer'](_0x461b76)),_0x3ab38a['model']['document']['registerPostFixer'](_0x16ed1b=>this['noTrackChangesFixer'](_0x16ed1b)),_0x3ab38a['model']['document']['on']('change:data',(_0x9f7bf8,_0x1c8a21)=>{if(_0x1c8a21['isUndo']||!_0x1c8a21['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x13da1c){if(_0x13da1c['batch']['isUndo']||!_0x13da1c['batch']['isLocal'])return!0x1;let _0x2a2e77=!0x1;const _0x36c3f4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19bca4=>_0x19bca4['data']&&'listItemId'==_0x19bca4['data']['key'])['filter'](_0x50e780=>_0x50e780['data']['newValue']&&_0x50e780['data']['oldValue']);for(const _0x466435 of _0x36c3f4)Te(_0x466435)||(_0x13da1c['removeMarker'](_0x466435['getFirstMarker']()),_0x2a2e77=!0x0);return _0x2a2e77;}['noTrackChangesFixer'](_0xb5071d){if(_0xb5071d['batch']['isUndo']||!_0xb5071d['batch']['isLocal'])return!0x1;const _0x53d6e4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x53d6e4['trackChangesCommand']['value'])return!0x1;let _0x69acde=!0x1;const _0x3a8b06=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3ffc82=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x21b09d=>'attribute'==_0x21b09d['type'])['filter'](_0xfa976e=>_0x3a8b06['includes'](_0xfa976e['attributeKey']));if(0x0==_0x3ffc82['length'])return _0x69acde;for(const _0x47deb of _0x3ffc82){const _0x1e5f92=_0x53d6e4['_findSuggestions'](_0x47deb['range'],'attribute')['filter'](_0x4f4cc0=>!_0x4f4cc0['meta']['isNextTo'])['map'](_0x59494c=>_0x59494c['suggestion'])['filter'](_0x5681f6=>{const _0xf915ce=_0x53d6e4['_getAttributeKey'](_0x5681f6);return _0x3a8b06['includes'](_0xf915ce);});if(_0x1e5f92['length']){for(const _0xe674f5 of _0x1e5f92)_0xb5071d['removeMarker'](_0xe674f5['getFirstMarker']());_0x69acde=!0x0;}}return _0x69acde;}['assureChains'](){const _0x3914cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x218f27=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x498087;const _0x590422=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x17bd2e=>{if(_0x17bd2e['data']['oldRange']||!_0x17bd2e['data']['newRange'])return null;if(!_0x17bd2e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x58f6f5}=_0x3914cf['_splitMarkerName'](_0x17bd2e['name']);if(!_0x3914cf['hasSuggestion'](_0x58f6f5))return null;const _0x597af2=_0x3914cf['getSuggestion'](_0x58f6f5);return _0x218f27['includes'](_0x597af2['data']['key']);})['map'](_0x1349bc=>{const {id:_0x54cf0d}=_0x3914cf['_splitMarkerName'](_0x1349bc['name']),_0x5b4258=_0x3914cf['getSuggestion'](_0x54cf0d);return _0x498087=_0x5b4258['attributes']['groupId'],_0x5b4258['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x590422['size'])return;const _0x4cb5d3=_0x3914cf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa5438e=>'attribute'==_0xa5438e['type']&&_0xa5438e['data']&&_0x218f27['includes'](_0xa5438e['data']['key'])&&_0xa5438e['attributes']['groupId']!=_0x498087)['map'](_0x2a8cfc=>({'listItem':_0x2a8cfc['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2a8cfc['attributes']['groupId']})),_0x5eff2e=new Set();for(const {groupId:_0x39be80,listItem:_0x13aab6}of _0x4cb5d3)_0x590422['has'](_0x13aab6)&&_0x5eff2e['add'](_0x39be80);for(const _0x51a828 of _0x3914cf['getSuggestions']())_0x5eff2e['has'](_0x51a828['attributes']['groupId'])&&_0x51a828['setAttribute']('groupId',_0x498087);}['_supportLegacySuggestions'](){const _0x4f11af=this['editor'],_0x98035e=_0x4f11af['locale'],_0x1a8919=_0x4f11af['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1a8919['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1cc9bd,_0x56c1d7){const _0x28d1e7=[];for(let _0x6d344a of _0x1cc9bd)_0x6d344a['start']['nodeAfter']===_0x6d344a['end']['parent']&&(_0x6d344a=_0x4f11af['model']['createRange'](_0x4f11af['model']['createPositionAt'](_0x6d344a['start']['nodeAfter'],0x0))),_0x28d1e7['push'](_0x6d344a);_0x4f11af['model']['change'](_0x5a5f99=>{const _0x55774c=_0x4f11af['model']['document']['selection'],_0x2f8695=Array['from'](_0x55774c['getRanges']())['map'](_0x431817=>_0x5d59ab['fromRange'](_0x431817));_0x5a5f99['setSelection'](_0x28d1e7),_0x4f11af['commands']['get'](_0x56c1d7['commandName'])['refresh'](),_0x56c1d7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4f11af['execute'](_0x56c1d7['commandName'],..._0x56c1d7['commandParams']),_0x5a5f99['setSelection'](_0x2f8695);for(const _0x372688 of _0x2f8695)_0x372688['detach']();});}),_0x1a8919['descriptionFactory']['registerElementLabel'](function(_0x3726e6){const _0x2697b9=!_0x4f11af['model']['schema']['isObject'](_0x3726e6),_0x104b26=_0x3726e6['previousSibling'],_0x2b9f87=_0x3726e6['nextSibling'],_0x22b134=_0x3726e6['getAttribute']('listItemId'),_0x3a3275=!_0x104b26||_0x104b26['getAttribute']('listItemId')!==_0x22b134,_0x1892a7=!_0x2b9f87||_0x2b9f87['getAttribute']('listItemId')!==_0x22b134;return _0x2697b9&&Boolean(_0x22b134)&&_0x3a3275&&_0x1892a7;},_0x3f7b1f=>c(_0x98035e,'ELEMENT_LIST_ITEM',_0x3f7b1f));}['_registerLegacyDescription'](){const _0x584f3b=this['editor'],_0x404e9b=_0x584f3b['locale'];function _0x33392a(_0x414955){const _0x5e655c=_0x584f3b['commands']['get']('bulletedList')['value'],_0xaf122d=_0x584f3b['commands']['get']('numberedList')['value'];return'numberedList'===_0x414955?_0x5e655c:_0xaf122d;}_0x584f3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xffcab4){if('formatBlock'!=_0xffcab4['type'])return;const {data:_0x410c38}=_0xffcab4;if(!_0x410c38)return;let _0x4c024c,_0x398bac,_0x143a35,_0xb9ded8;switch(_0x410c38['commandName']){case'bulletedList':_0x143a35=_0x410c38['commandParams'][0x0]['forceValue'],_0xb9ded8=_0x33392a(_0x410c38['commandName']),_0x4c024c=_0x143a35?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb9ded8&&_0x584f3b['config']['get']('list.multiBlock')||(_0x4c024c='*Change\x20to:*\x20%0'),_0x398bac={'type':'format','content':c(_0x404e9b,_0x4c024c,c(_0x404e9b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x143a35=_0x410c38['commandParams'][0x0]['forceValue'],_0xb9ded8=_0x33392a(_0x410c38['commandName']),_0x4c024c=_0x143a35?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb9ded8&&_0x584f3b['config']['get']('list.multiBlock')||(_0x4c024c='*Change\x20to:*\x20%0'),_0x398bac={'type':'format','content':c(_0x404e9b,_0x4c024c,c(_0x404e9b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4c024c='*Indent:*\x20%0',_0x398bac={'type':'format','content':c(_0x404e9b,_0x4c024c,c(_0x404e9b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4c024c=function(_0x5c3a59){const _0xe9219d=_0x5c3a59['getFirstRange']();let _0x48e19e=_0xe9219d['start']['nodeAfter'];for(;_0x48e19e&&_0xe9219d['containsItem'](_0x48e19e);){if(_0x48e19e['getAttribute']('listIndent')>0x0)return!0x1;_0x48e19e=_0x48e19e['nextSibling'];}return!0x0;}(_0xffcab4)?c(_0x404e9b,'*Format:*\x20remove\x20from\x20%0',c(_0x404e9b,function(_0x7b8fd1){return'ELEMENT_'+_0x7b8fd1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xffcab4))):c(_0x404e9b,'*Outdent:*\x20%0',c(_0x404e9b,'ELEMENT_LIST_ITEM')),_0x398bac={'type':'format','content':_0x4c024c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x410c38['multipleBlocks']&&(_0x4c024c='*Merge:*\x20%0',_0x398bac={'type':'deletion','content':c(_0x404e9b,_0x4c024c,c(_0x404e9b,'ELEMENT_LIST_ITEM'))});}return _0x398bac;});}}function Te(_0x8ee4d5){let _0x1872cb=_0x8ee4d5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1872cb;){const _0x2711bc=_0x1872cb['getAttribute']('listItemId');if(!_0x2711bc)return!0x1;if(_0x2711bc==_0x8ee4d5['data']['newValue'])return'newValue';if(_0x2711bc==_0x8ee4d5['data']['oldValue'])return'oldValue';_0x1872cb=_0x1872cb['previousSibling'];}return!0x1;}class Se extends _0x3525e7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xd47145=this['editor']['config']['get']('list.properties'),_0x1d91d9=this['editor']['plugins']['get']('TrackChangesEditing');_0xd47145['styles']&&(_0x1d91d9['enableDefaultAttributesIntegration']('listStyle'),_0x1d91d9['registerBlockAttribute']('listStyle')),_0xd47145['reversed']&&(_0x1d91d9['enableDefaultAttributesIntegration']('listReversed'),_0x1d91d9['registerBlockAttribute']('listReversed')),_0xd47145['startIndex']&&(_0x1d91d9['enableDefaultAttributesIntegration']('listStart'),_0x1d91d9['registerBlockAttribute']('listStart'));const _0x1c3268={'type':'format','content':''};_0x1d91d9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x53f8ea=this['editor']['locale'];_0x1d91d9['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x53f8ea,'FORMAT_LIST_REVERSED')),_0x1d91d9['descriptionFactory']['registerDescriptionCallback'](_0x2be821=>{const {data:_0x55b89b}=_0x2be821;if(_0x55b89b&&'listReversed'==_0x55b89b['key'])return null==_0x55b89b['newValue']||0x0==_0x55b89b['newValue']&&null==_0x55b89b['oldValue']?_0x1c3268:void 0x0;}),_0x1d91d9['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x53f8ea,'FORMAT_LIST_START')),_0x1d91d9['descriptionFactory']['registerDescriptionCallback'](_0x41a15d=>{const {data:_0x2a2c0b}=_0x41a15d;if(_0x2a2c0b&&'listStart'==_0x2a2c0b['key'])return null==_0x2a2c0b['newValue']||0x1==_0x2a2c0b['newValue']&&null==_0x2a2c0b['oldValue']?_0x1c3268:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1d323a=>{if(_0x1d323a['batch']['isUndo'])return!0x1;let _0xd7e8a1=!0x1;const _0x509dda=_0x1d91d9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf583b7=>{const _0x3f08d0=_0x1d91d9['_getAttributeKey'](_0xf583b7);return'listStart'==_0x3f08d0||'listReversed'==_0x3f08d0;});for(const _0x43e1d of _0x509dda){const _0x42a6dd=_0x43e1d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x42a6dd||'customNumbered'==_0x42a6dd)continue;_0x1d91d9['_findSuggestions'](_0x43e1d['getFirstRange'](),'attribute')['find'](_0x5043e0=>'listType'==_0x1d91d9['_getAttributeKey'](_0x5043e0['suggestion']))||(_0x1d323a['removeMarker'](_0x43e1d['getFirstMarker']()),_0xd7e8a1=!0x0);}return _0xd7e8a1;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4f23f5){const _0xe9fa45=this['editor']['locale'],{data:_0x1c1f16}=_0x4f23f5,_0x22df80={'type':'format','content':''};if(!_0x1c1f16||'listStyle'!=_0x1c1f16['key'])return;if(!_0x1c1f16['oldValue'])return'default'==_0x1c1f16['newValue']?_0x22df80:{'type':'format','content':''+c(_0xe9fa45,'*Set\x20format:*\x20%0',c(_0xe9fa45,this['_getTranslationKeyForListStyle'](_0x1c1f16['newValue'])))};if(!_0x1c1f16['newValue']){if('default'==_0x1c1f16['oldValue'])return _0x22df80;let _0x151004=_0x4f23f5['head'];for(;_0x151004;){if(_0x151004['data']&&'listType'==_0x151004['data']['key']&&_0x151004['data']['newValue'])return _0x22df80;_0x151004=_0x151004['next'];}return{'type':'format','content':''+c(_0xe9fa45,'*Remove\x20format:*\x20%0',c(_0xe9fa45,this['_getTranslationKeyForListStyle'](_0x1c1f16['oldValue'])))};}if('default'!=_0x1c1f16['newValue'])return{'type':'format','content':''+c(_0xe9fa45,'*Set\x20format:*\x20%0',c(_0xe9fa45,this['_getTranslationKeyForListStyle'](_0x1c1f16['newValue'])))};let _0x4a5e47=_0x4f23f5['head'];for(;_0x4a5e47;){if(_0x4a5e47['data']&&'listType'==_0x4a5e47['data']['key']&&_0x4a5e47['data']['newValue']&&_0x4a5e47['data']['oldValue'])return _0x22df80;_0x4a5e47=_0x4a5e47['next'];}return{'type':'format','content':c(_0xe9fa45,'*Set\x20format:*\x20%0',c(_0xe9fa45,'ELEMENT_'+_0x4f23f5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x39456e=this['editor'],_0x57745b=_0x39456e['locale'];_0x39456e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe5771c=>{if('formatBlock'!=_0xe5771c['type'])return;const {data:_0x5ef526}=_0xe5771c;if(!_0x5ef526)return;let _0x45990b,_0x1a6cb2;switch(_0x5ef526['commandName']){case'listStyle':_0x45990b='*Change\x20to:*\x20%0',_0x1a6cb2={'type':'format','content':c(_0x57745b,_0x45990b,c(_0x57745b,this['_getTranslationKeyForListStyle'](_0x5ef526['commandParams'][0x0]['type'])))};break;case'listReversed':_0x45990b=_0x5ef526['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1a6cb2={'type':'format','content':c(_0x57745b,_0x45990b)};break;case'listStart':_0x45990b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a6cb2={'type':'format','content':c(_0x57745b,_0x45990b,_0x5ef526['commandParams'][0x0]['startIndex'])};}return _0x1a6cb2;});}['_getTranslationKeyForListStyle'](_0x26d4e8){return'ELEMENT_'+function(_0x3d943c){if(_e['includes'](_0x3d943c))return'bulleted';if(Re['includes'](_0x3d943c))return'numbered';return null;}(_0x26d4e8)['toUpperCase']()+'_LIST_'+_0x26d4e8['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3525e7{['afterInit'](){const _0x203ed4=this['editor'];_0x203ed4['commands']['get']('emoji')&&_0x203ed4['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3525e7{static get['requires'](){return[_0x1e9d9d];}['init'](){const _0x10b934=this['editor'],_0x52ff6c=_0x10b934['plugins']['get']('TrackChangesEditing'),_0x7ef840=_0x10b934['commands']['get']('enter');_0x52ff6c['enableCommand']('enter',()=>{_0x10b934['model']['change'](_0x6efc27=>{const _0x1dc87e=_0x10b934['model']['document']['selection'],_0x26dc76=_0x1dc87e['getFirstPosition'](),_0x1bf348=_0x5d59ab['fromRange'](_0x1dc87e['getFirstRange']());if(_0x7ef840['enterBlock'](_0x6efc27)){const _0x30ff0d=_0x10b934['model']['createPositionAt'](_0x26dc76['parent']['nextSibling'],0x0),_0x180193=_0x6efc27['createRange'](_0x26dc76,_0x30ff0d);_0x52ff6c['markInsertion'](_0x180193);}else _0x6efc27['setSelection'](_0x6efc27['createRange'](_0x1bf348['end']));_0x1bf348['detach'](),_0x7ef840['fire']('afterExecute',{'writer':_0x6efc27});});}),_0x10b934['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x10b934,'split'),{'priority':'high'}),_0x10b934['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2c0c4e,_0x1a58ed,_0x50df5a)=>{const _0x4bd1a6=_0x50df5a['mapper']['markerNameToElements'](_0x1a58ed['markerName']);if(_0x4bd1a6){for(const _0x134501 of _0x4bd1a6)_0x134501['hasClass']('ck-suggestion-marker-split')&&(_0x50df5a['mapper']['unbindElementFromMarkerName'](_0x134501,_0x1a58ed['markerName']),_0x50df5a['writer']['remove'](_0x134501));}},{'priority':'high'}),_0x10b934['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x19d45f,_0x13d1ca,_0x330710)=>{_0x330710['options']['showSuggestionHighlights']&&Fe(_0x10b934,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x19d45f,_0x13d1ca,_0x330710);},{'priority':'high'});}}class Z extends _0x3525e7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5d60a7=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d60a7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5d60a7['enableCommand']('findNext'),_0x5d60a7['enableCommand']('findPrevious'),_0x5d60a7['enableCommand']('replace'),_0x5d60a7['enableCommand']('replaceAll');}['handleFindCommand'](_0x339eb7,_0x20dbea,_0x595b69={}){const _0x5d599e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x339eb7(_0x254164=>{let _0x1eb658=('string'==typeof _0x20dbea?_0x5d599e['findByTextCallback'](_0x20dbea,_0x595b69):_0x20dbea)(_0x254164);Array['isArray'](_0x1eb658)&&(_0x1eb658={'results':_0x1eb658,'searchText':'string'==typeof _0x20dbea?_0x20dbea:''});const _0x229c31=_0x1eb658['results']['filter'](_0x136633=>!0x1===this['_isInDeletionRange'](_0x136633,_0x254164['item']));return{..._0x1eb658,'results':_0x229c31};},_0x595b69);}['_isInDeletionRange'](_0x1f0095,_0x431466){const _0x21474b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x431466,_0x1f0095['start']),this['editor']['model']['createPositionAt'](_0x431466,_0x1f0095['end']));for(const _0x2f9d88 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x21474b['getIntersection'](_0x2f9d88['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 _0x3525e7{['afterInit'](){const _0x208030=this['editor']['locale'],_0x2c6d18=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x48da90,commandName:_0x44dab9}of ro)this['editor']['plugins']['has'](_0x48da90)&&(_0x2c6d18['enableDefaultAttributesIntegration'](_0x44dab9),_0x2c6d18['registerInlineAttribute'](_0x44dab9));_0x2c6d18['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x208030,'FORMAT_FONT_SIZE')),_0x2c6d18['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x208030,'FORMAT_FONT_FAMILY')),_0x2c6d18['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x208030,'FORMAT_FONT_COLOR')),_0x2c6d18['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x208030,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dbe32=this['editor'],_0x33c47b=_0x5dbe32['locale'];_0x5dbe32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bee85=>{const _0x48c3ab=_0x33c47b['t'];if('formatInline'!=_0x1bee85['type'])return;const {data:_0x4cd208}=_0x1bee85;if(null!=_0x4cd208){if('fontSize'==_0x4cd208['commandName']){const _0x2dd5b4=_0x4cd208['commandParams'][0x0]['value'];if(_0x2dd5b4){const _0x5daaee=_0x48c3ab(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x517b92=>_0x517b92['model']==_0x2dd5b4)['title'])['toLowerCase']();return{'type':'format','content':c(_0x33c47b,'*Set\x20font\x20size:*\x20%0',_0x5daaee)};}return{'type':'format','content':c(_0x33c47b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4cd208['commandName']){const _0xd9f1d9=_0x4cd208['commandParams'][0x0]['value'];return _0xd9f1d9?{'type':'format','content':c(_0x33c47b,'*Set\x20font\x20family:*\x20%0',_0xd9f1d9)}:{'type':'format','content':c(_0x33c47b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4cd208['commandName']){const _0x10d5d3=_0x4cd208['commandParams'][0x0]['value'];if(_0x10d5d3){const _0xd28bfa=_0xf432ad(this['editor']['config']['get']('fontColor.colors'))['find'](_0x481f31=>_0x481f31['model']==_0x10d5d3);let _0x4a02a9=_0x10d5d3,_0x1a63ac='';return _0xd28bfa&&(_0x4a02a9=_0xd28bfa['label'],_0x1a63ac=_0x48c3ab(_0x4a02a9)['toLowerCase']()),{'type':'format','content':c(_0x33c47b,'*Set\x20font\x20color:*\x20%0',_0x1a63ac)['trim'](),'color':{'value':_0x10d5d3,'title':_0x1a63ac||_0x4a02a9}};}return{'type':'format','content':c(_0x33c47b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4cd208['commandName']){const _0x846721=_0x4cd208['commandParams'][0x0]['value'];if(_0x846721){const _0x33fdb8=_0xf432ad(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2716c8=>_0x2716c8['model']==_0x846721);let _0x2576e3=_0x846721,_0x248786='';return _0x33fdb8&&(_0x2576e3=_0x33fdb8['label'],_0x248786=_0x48c3ab(_0x2576e3)['toLowerCase']()),{'type':'format','content':c(_0x33c47b,'*Set\x20font\x20background\x20color:*\x20%0',_0x248786)['trim'](),'color':{'value':_0x846721,'title':_0x248786||_0x2576e3}};}return{'type':'format','content':c(_0x33c47b,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x3525e7{['afterInit'](){const _0x5088b6=this['editor'],_0x5a73da=_0x5088b6['plugins']['get']('TrackChangesEditing'),_0x28b82c=_0x5088b6['commands']['get']('copyFormat'),_0x399473=_0x5088b6['commands']['get']('pasteFormat');_0x28b82c&&_0x399473&&(_0x5a73da['enableDefaultAttributesIntegration']('pasteFormat'),_0x5a73da['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3d5e0d=this['editor'],_0x267454=_0x3d5e0d['locale'];_0x3d5e0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52712b=>{if('formatBlock'!=_0x52712b['type']&&'formatInline'!=_0x52712b['type'])return;const {data:_0x48306f}=_0x52712b;if(_0x48306f&&'pasteFormat'===_0x48306f['commandName']){const _0x10ee4d=[],_0x562d2f=_0x48306f['commandParams'][0x0];for(const [_0x40cf46,_0x1be26b]of Object['entries'](_0x562d2f))_0x10ee4d['push'](so(_0x3d5e0d,_0x40cf46,_0x1be26b));return _0x10ee4d['length']?{'type':'format','content':c(_0x267454,'*Set\x20format\x20to:*\x20%0',_0x10ee4d['join'](',\x20'))}:{'type':'format','content':c(_0x267454,'*Remove\x20all\x20formatting*')};}});}}function so(_0x33326a,_0x3c8324,_0x53967c){const _0x51803a=_0x33326a['locale']['t'],_0x176314=_0x3c8324['split'](/(?=[A-Z])/)['join']('\x20'),_0x3c10e0=_0x51803a(_0x176314['charAt'](0x0)['toUpperCase']()+_0x176314['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x53967c)return _0x3c10e0;if('fontColor'===_0x3c8324||'fontBackgroundColor'===_0x3c8324){const _0x270810=_0xf432ad(_0x33326a['config']['get']('fontColor.colors'))['find'](_0x408839=>_0x408839['model']==_0x53967c);return _0x3c10e0+'\x20('+(_0x270810?_0x51803a(_0x270810['label'])['toLowerCase']():_0x53967c)+')';}if('fontSize'===_0x3c8324&&isNaN(parseFloat(_0x53967c))){const _0x1eafb5=_0x33326a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x33326a['config']['get']('fontSize.options'))['find'](_0x2fdd75=>_0x2fdd75['model']==_0x53967c);return _0x3c10e0+'\x20('+(_0x1eafb5?_0x51803a(_0x1eafb5['title'])['toLowerCase']():_0x53967c)+')';}return _0x3c10e0+'\x20('+_0x53967c+')';}class et extends _0x3525e7{['_headingOptions'];['afterInit'](){const _0x58802a=this['editor'];if(!_0x58802a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x58802a['config']['get']('heading.options');const _0x30b13a=_0x58802a['locale'],_0x4db25a=_0x58802a['plugins']['get']('TrackChangesEditing');_0x4db25a['enableDefaultAttributesIntegration']('heading');for(const _0x1e931b of this['_headingOptions'])'paragraph'!=_0x1e931b['model']&&_0x4db25a['descriptionFactory']['registerElementLabel'](_0x1e931b['model'],_0x124e34=>{const _0x1b96b6=this['_getHeadingLevel'](_0x1e931b['model']);return null!==_0x1b96b6?_0x37079c(_0x124e34,_0x1b96b6):_0x4c7808(_0x124e34,_0x1e931b['title']);});function _0x37079c(_0x215d97,_0x2a2020){return c(_0x30b13a,'ELEMENT_HEADING',[_0x215d97,_0x2a2020]);}function _0x4c7808(_0x4367df,_0x2326e8){return c(_0x30b13a,'ELEMENT_HEADING_CUSTOM',[_0x4367df,_0x2326e8]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2718f8=this['editor'],_0x1e14f4=_0x2718f8['locale'];function _0x32b4c8(_0x4873a8,_0x1bd6fd){return c(_0x1e14f4,'ELEMENT_HEADING_CUSTOM',[_0x4873a8,_0x1bd6fd]);}_0x2718f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x417d6f=>{if('formatBlock'!=_0x417d6f['type'])return;const {data:_0x5ecbe7}=_0x417d6f;if(_0x5ecbe7&&'heading'==_0x5ecbe7['commandName']){const _0xe24aa2=_0x5ecbe7['commandParams'][0x0]['value'],_0x22e4fe=this['_getHeadingLevel'](_0xe24aa2);if(null!==_0x22e4fe)return{'type':'format','content':c(_0x1e14f4,'*Change\x20to:*\x20%0',(_0x5da9fa=0x1,_0x436af9=_0x22e4fe,c(_0x1e14f4,'ELEMENT_HEADING',[_0x5da9fa,_0x436af9])))};const _0x4349a1=this['_headingOptions']['find'](_0x44c77e=>_0x44c77e['model']===_0xe24aa2)['title'];return{'type':'format','content':c(_0x1e14f4,'*Change\x20to:*\x20%0',_0x32b4c8(0x1,_0x4349a1))};}var _0x5da9fa,_0x436af9;});}['_getHeadingLevel'](_0x455718){const _0x2177ca=_0x455718['match'](/^heading(\d+)/);if(_0x2177ca)return _0x2177ca[0x1];const _0x3ee433=this['_headingOptions']?.['find'](_0x447d06=>_0x447d06['model']==_0x455718);if(_0x3ee433&&_0x3ee433['view']){const _0xd8d5=_0x3ee433['view'],_0x566daa=(_0xd8d5['name']??_0xd8d5)['match'](/^h(\d+)/);if(_0x566daa)return _0x566daa[0x1];}return null;}}class nt extends _0x3525e7{['afterInit'](){const _0x221094=this['editor'];if(!_0x221094['plugins']['has']('HighlightEditing'))return;const _0x17a8f0=_0x221094['plugins']['get']('TrackChangesEditing'),_0x35fa96=_0x221094['locale'];_0x17a8f0['enableDefaultAttributesIntegration']('highlight'),_0x17a8f0['registerInlineAttribute']('highlight'),_0x17a8f0['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x35fa96,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25c084=this['editor'],_0x624dd=_0x25c084['locale'];_0x25c084['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x928d38=>{if('formatInline'!=_0x928d38['type'])return;const {data:_0x5d0dc7}=_0x928d38;if(_0x5d0dc7&&'highlight'==_0x5d0dc7['commandName']){const _0xdb3e35=_0x624dd['t'],_0x33e9a2=_0x5d0dc7['commandParams'][0x0]['value'];if(_0x33e9a2){const _0x3a0355=_0x25c084['config']['get']('highlight.options')['find'](_0x1589f4=>_0x1589f4['model']==_0x33e9a2),_0x137b32=_0xdb3e35(_0x3a0355['title'])['toLowerCase']();return{'type':'format','content':c(_0x624dd,'*Set\x20highlight:*\x20%0',_0x137b32),'color':{'value':_0x3a0355['color'],'title':_0x3a0355['title']}};}return{'type':'format','content':c(_0x624dd,'*Remove\x20highlight*',c(_0x624dd,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3525e7{['afterInit'](){const _0xa022ac=this['editor'];if(!_0xa022ac['plugins']['has']('HorizontalLineEditing'))return;_0xa022ac['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4cfd83=_0xa022ac['plugins']['get']('TrackChangesEditing'),_0x40c870=_0xa022ac['locale'];_0x4cfd83['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4485c4=>c(_0x40c870,'ELEMENT_HORIZONTAL_LINE',_0x4485c4)),_0xa022ac['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2e2b49,{writer:_0x530173,options:_0x53249c})=>{if(!_0x53249c['showSuggestionHighlights'])return null;const _0x5d514f=_0x530173['createContainerElement']('div'),_0x43b7e9=_0x530173['createEmptyElement']('hr');return _0x530173['addClass']('ck-horizontal-line',_0x5d514f),_0x530173['insert'](_0x530173['createPositionAt'](_0x5d514f,0x0),_0x43b7e9),_0x5d514f;},'converterPriority':'high'});}}class ot extends _0x3525e7{['afterInit'](){const _0x3b1087=this['editor'];if(!_0x3b1087['plugins']['has']('HtmlEmbed'))return;const _0x1729c0=_0x3b1087['plugins']['get']('TrackChangesEditing'),_0x42e4c8=_0x3b1087['locale'];_0x1729c0['descriptionFactory']['registerElementLabel']('rawHtml',_0x1c7015=>c(_0x42e4c8,'ELEMENT_HTML_EMBED',_0x1c7015)),_0x1729c0['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1729c0['registerBlockAttribute']('value'),_0x1729c0['descriptionFactory']['registerDescriptionCallback'](_0x561202=>{if('attribute'!=_0x561202['type'])return;const {data:_0x319dfa}=_0x561202;if(_0x319dfa&&'value'==_0x319dfa['key']&&_0x561202['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x45b793=c(_0x42e4c8,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x42e4c8,'*Change\x20%0\x20content*',_0x45b793)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e37c9=this['editor'],_0x454790=_0x2e37c9['locale'];_0x2e37c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x593feb=>{if('formatBlock'!=_0x593feb['type'])return;const {data:_0x36b2b8}=_0x593feb;if(_0x36b2b8&&'htmlEmbed'==_0x36b2b8['commandName']){const _0x10fa1d=c(_0x454790,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x454790,'*Change\x20%0\x20content*',_0x10fa1d)};}});}}class rt extends _0x3525e7{['afterInit'](){const _0xd3d627=this['editor'];if(!_0xd3d627['plugins']['has']('ImageEditing'))return;const _0x38bf1f=_0xd3d627['plugins']['get']('TrackChangesEditing'),_0x2ab503=_0xd3d627['plugins']['get']('ImageUtils'),_0x3c94d9=_0xd3d627['locale'];_0x38bf1f['enableCommand']('insertImage'),_0x38bf1f['descriptionFactory']['registerElementLabel']('imageBlock',_0x5edfc5=>c(_0x3c94d9,'ELEMENT_IMAGE',_0x5edfc5)),_0x38bf1f['descriptionFactory']['registerElementLabel']('imageInline',_0x45c08a=>c(_0x3c94d9,'ELEMENT_INLINE_IMAGE',_0x45c08a)),_0x38bf1f['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x3c94d9,'ELEMENT_CAPTION')),_0xd3d627['plugins']['has']('ImageUploadEditing')&&_0x38bf1f['enableCommand']('uploadImage'),_0xd3d627['plugins']['has']('ImageBlockEditing')&&_0xd3d627['plugins']['has']('ImageInlineEditing')&&(_0x38bf1f['enableCommand']('imageTypeInline',(_0x43fcce,_0x3cee59)=>{const _0x27d3d9=_0x2ab503['getClosestSelectedImageElement'](_0xd3d627['model']['document']['selection']);_0xd3d627['model']['change'](()=>{_0x38bf1f['markBlockFormat'](_0x27d3d9,{'commandName':'imageTypeInline','commandParams':[_0x3cee59]},[],'convertBlockImageToInline');});}),_0x38bf1f['enableCommand']('imageTypeBlock',(_0x498a28,_0x466e17)=>{_0xd3d627['model']['change'](_0x399ca3=>{let _0x39bd44=_0x2ab503['getClosestSelectedImageElement'](_0xd3d627['model']['document']['selection']),_0x4bcf36=_0x399ca3['createRangeOn'](_0x39bd44);const _0x5947bf=_0x107e0e['fromPosition'](_0x4bcf36['start'],'toPrevious'),_0x39131c=_0x107e0e['fromPosition'](_0x4bcf36['end'],'toNext');_0x38bf1f['forceDefaultExecution'](()=>_0x498a28(_0x466e17)),_0x39bd44=_0x2ab503['getClosestSelectedImageElement'](_0xd3d627['model']['document']['selection']),_0x4bcf36=_0x399ca3['createRangeOn'](_0x39bd44);const _0x20520b=_0x399ca3['createRange'](_0x5947bf,_0x39131c);_0x5947bf['detach'](),_0x39131c['detach'](),_0x38bf1f['markBlockFormat'](_0x39bd44,{'commandName':'imageTypeInline','commandParams':[_0x466e17]},[],'convertInlineImageToBlock'),_0x20520b['start']['isBefore'](_0x4bcf36['start'])&&_0x38bf1f['markInsertion'](_0x399ca3['createRange'](_0x20520b['start'],_0x4bcf36['start']),'convertInlineImageToBlock'),_0x4bcf36['end']['isBefore'](_0x20520b['end'])&&_0x38bf1f['markInsertion'](_0x399ca3['createRange'](_0x4bcf36['end'],_0x20520b['end']),'convertInlineImageToBlock');});}),_0x38bf1f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x38bf1f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x38bf1f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x38bf1f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x38bf1f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x38bf1f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2d7620])=>{const _0x4a7a83=_0x38bf1f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5b9eed=_0x2d7620['start'],_0x5a9617=_0x2d7620['end'];const _0x2d70d4=_0xd3d627['model']['schema']['getNearestSelectionRange'](_0x5b9eed,'backward'),_0x13a243=_0xd3d627['model']['schema']['getNearestSelectionRange'](_0x5a9617,'forward');_0x2d70d4['isCollapsed']&&(_0x5b9eed=_0x2d70d4['start']),_0x13a243['isCollapsed']&&(_0x5a9617=_0x13a243['end']),_0x4a7a83([_0xd3d627['model']['createRange'](_0x5b9eed,_0x5a9617)]);}),_0x38bf1f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x53a92c),_0x38bf1f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x53a92c)),_0xd3d627['plugins']['has']('ImageCaptionEditing')&&(_0x38bf1f['enableCommand']('toggleImageCaption',(_0x1c341b,_0xc28d0a)=>{const _0x5b8650=_0xd3d627['plugins']['get']('ImageCaptionUtils');let _0x28c6db=_0x2ab503['getClosestSelectedImageElement'](_0xd3d627['model']['document']['selection']),_0x48314e=_0x5b8650['getCaptionFromImageModelElement'](_0x28c6db);_0xd3d627['model']['change'](()=>{if(_0x48314e)return void _0x38bf1f['markDeletion'](_0xd3d627['model']['createRangeOn'](_0x48314e));const _0x4f77ad=_0x2ab503['isBlockImage'](_0x28c6db);_0x1c341b(_0xc28d0a),_0x28c6db=_0x2ab503['getClosestSelectedImageElement'](_0xd3d627['model']['document']['selection']),_0x48314e=_0x5b8650['getCaptionFromImageModelElement'](_0x28c6db),_0x38bf1f['markInsertion'](_0xd3d627['model']['createRangeOn'](_0x48314e),_0x4f77ad?null:'imageCaption');});}),_0x38bf1f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x53a92c));const _0x4e40ac=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1d305e(_0x43055e,_0x240e6b){const _0x575740=_0x4e40ac['findIndex'](({type:_0x5355e4,subType:_0x3d6e32})=>_0x43055e['type']==_0x5355e4&&_0x43055e['subType']==_0x3d6e32),_0x2e5486=_0x4e40ac['findIndex'](({type:_0x5b9b98,subType:_0x1bf7ab})=>_0x240e6b['type']==_0x5b9b98&&_0x240e6b['subType']==_0x1bf7ab);if(_0x575740<0x0||_0x2e5486<0x0)return!0x1;const _0x664eb7=_0x43055e['getFirstRange'](),_0x35f9eb=_0x240e6b['getFirstRange']();if((0x0==_0x575740||0x1==_0x575740)&&0x2==_0x2e5486&&_0x664eb7['isIntersecting'](_0x35f9eb))return!0x0;if(0x2==_0x575740&&0x3==_0x2e5486){const _0x4ab113=_0x38bf1f['_findSuggestions'](_0x664eb7,'insertion')['filter'](({suggestion:_0x1f7a23,meta:_0x1c076e})=>_0x1c076e['isOwn']&&'convertInlineImageToBlock'==_0x1f7a23['subType']);if(_0x4ab113['length']>0x1&&_0x35f9eb['end']['isEqual'](_0x664eb7['start']))return!0x0;if(0x1==_0x4ab113['length']&&(_0x664eb7['start']['isEqual'](_0x35f9eb['end'])||_0x664eb7['end']['isEqual'](_0x35f9eb['start'])))return!0x0;}if(0x3==_0x575740&&0x3==_0x2e5486&&_0x664eb7['start']['isBefore'](_0x35f9eb['start'])){const _0x9d6815=_0x664eb7['end']['nodeAfter'],_0x35427e=_0x35f9eb['start']['nodeBefore'];return _0x2ab503['isBlockImage'](_0x9d6815)&&_0x9d6815===_0x35427e;}return!0x1;}function _0x53a92c(_0x3fc709,_0x1a701a){return _0x1d305e(_0x3fc709,_0x1a701a)?[_0x3fc709,_0x1a701a]:_0x1d305e(_0x1a701a,_0x3fc709)?[_0x1a701a,_0x3fc709]:null;}_0xd3d627['plugins']['has']('ImageResize')&&(_0x38bf1f['enableDefaultAttributesIntegration']('resizeImage'),_0x38bf1f['registerBlockAttribute']('resizedWidth'),_0x38bf1f['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x3c94d9,'FORMAT_IMAGE_SIZE'))),_0xd3d627['plugins']['has']('ImageTextAlternativeEditing')&&(_0x38bf1f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x38bf1f['registerBlockAttribute']('alt')),_0xd3d627['plugins']['has']('PictureEditing')&&(_0x38bf1f['registerBlockAttribute']('sources'),_0x38bf1f['descriptionFactory']['registerDescriptionCallback'](_0x2755dd=>{if('attribute'!=_0x2755dd['type'])return;const {data:_0xfadc64}=_0x2755dd;return _0xfadc64&&'sources'==_0xfadc64['key']?{'type':'format','content':''}:void 0x0;})),_0xd3d627['plugins']['has']('ImageSizeAttributes')&&(_0x38bf1f['registerBlockAttribute']('width'),_0x38bf1f['registerBlockAttribute']('height'),_0x38bf1f['descriptionFactory']['registerDescriptionCallback'](_0x455409=>{if('attribute'!=_0x455409['type'])return;const {data:_0x4f0314}=_0x455409;return!_0x4f0314||'width'!=_0x4f0314['key']&&'height'!=_0x4f0314['key']?void 0x0:{'type':'format','content':''};})),_0x38bf1f['descriptionFactory']['registerDescriptionCallback'](_0x351151=>{if(!!_0x4e40ac['find'](({type:_0x62358b,subType:_0x5eafc2})=>_0x351151['type']==_0x62358b&&_0x351151['subType']==_0x5eafc2))return _0x351151['previous']?{}:void 0x0;}),_0x38bf1f['descriptionFactory']['registerDescriptionCallback'](_0x3fc95c=>{if('insertion'==_0x3fc95c['type']||'deletion'==_0x3fc95c['type']){const _0x3254ad=_0x3fc95c['getContainedElement']();if(_0x3254ad&&_0x3254ad['is']('element','caption'))return{'type':'insertion'==_0x3fc95c['type']?'addObject':'removeObject','element':_0x3254ad,'quantity':0x1};}}),_0x38bf1f['descriptionFactory']['registerDescriptionCallback'](_0x26e629=>'formatBlock'==_0x26e629['type']&&'convertInlineImageToBlock'==_0x26e629['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x26e629['type']&&'convertBlockImageToInline'==_0x26e629['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x38bf1f['descriptionFactory']['registerDescriptionCallback'](_0x141831=>{if('attribute'!=_0x141831['type'])return;const {data:_0x2d6c48}=_0x141831;if(!_0x2d6c48||'alt'!=_0x2d6c48['key'])return;const _0x57770e=_0x2d6c48['newValue'];return _0x57770e?{'type':'format','content':c(_0x3c94d9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x57770e+'\x22')}:{'type':'format','content':c(_0x3c94d9,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4534c4=this['editor'],_0x691fcb=_0x4534c4['locale'];_0x4534c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36d467=>{if('formatBlock'!=_0x36d467['type']&&'formatInline'!=_0x36d467['type'])return;const {data:_0x423d80}=_0x36d467;if(_0x423d80){if('imageTextAlternative'==_0x423d80['commandName']){const _0x9acedf=_0x423d80['commandParams'][0x0]['newValue'];return _0x9acedf?{'type':'format','content':c(_0x691fcb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x9acedf+'\x22')}:{'type':'format','content':c(_0x691fcb,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x423d80['commandName']){const _0x13dae8=_0x423d80['commandParams'][0x0]['width'];return _0x13dae8?{'type':'format','content':c(_0x691fcb,'*Set\x20image\x20width:*\x20%0',_0x13dae8)}:{'type':'format','content':c(_0x691fcb,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3525e7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x105ce5=this['editor']['locale'],_0x85ae49=this['editor']['plugins']['get']('TrackChangesEditing');_0x85ae49['enableDefaultAttributesIntegration']('replaceImageSource'),_0x85ae49['registerBlockAttribute']('src'),_0x85ae49['descriptionFactory']['registerDescriptionCallback'](_0x53d0a6=>{if('attribute'!=_0x53d0a6['type'])return;const {data:_0x4dcccf}=_0x53d0a6;return _0x4dcccf&&'src'==_0x4dcccf['key']?_0x4dcccf['newValue']&&_0x4dcccf['oldValue']?{'type':'format','content':c(_0x105ce5,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x47903a=this['editor']['plugins']['get']('TrackChangesEditing');_0x47903a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x47903a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47903a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x47903a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c7bc4=this['editor'],_0xf0b0fd=_0x2c7bc4['locale'];_0x2c7bc4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41389c=>{if('formatBlock'!=_0x41389c['type']&&'formatInline'!=_0x41389c['type'])return;const {data:_0x429f75}=_0x41389c;if(!_0x429f75||'replaceImageSource'!=_0x429f75['commandName'])return;return{'type':'format','content':c(_0xf0b0fd,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3525e7{['afterInit'](){const _0x28c71d=this['editor'];if(!_0x28c71d['plugins']['has']('ImageStyleEditing'))return;const _0x548b21=_0x28c71d['plugins']['get']('TrackChangesEditing'),_0x2fc2f3=_0x28c71d['plugins']['get']('ImageUtils'),_0x76221f={};_0x548b21['enableCommand']('imageStyle',(_0xd5ea01,_0xd8080)=>{const _0x2d82ad=_0x28c71d['plugins']['get']('Users')['me'],_0x3ea83f=_0x28c71d['commands']['get']('imageStyle');let _0x558072=_0x2fc2f3['getClosestSelectedImageElement'](_0x28c71d['model']['document']['selection']),_0x4c2d66=_0x28c71d['model']['createRangeOn'](_0x558072),_0x5daa54=_0x3ea83f['value'];if(_0x5daa54==_0xd8080['value'])return;const _0x26f974={'commandName':'imageStyle','commandParams':[_0xd8080],'formatGroupId':_0x38b19c()};_0x28c71d['model']['change'](()=>{if(_0x548b21['getSuggestions']()['filter'](_0x253c59=>_0x253c59['isInContent']&&_0x2d82ad==_0x253c59['author']&&('formatBlock'==_0x253c59['type']||'formatInline'==_0x253c59['type'])&&('imageStylePreApply'==_0x253c59['subType']||'imageStylePostApply'==_0x253c59['subType'])&&_0x253c59['getFirstRange']()['isEqual'](_0x4c2d66))['forEach'](_0x3ae91a=>_0x548b21['discardSuggestion'](_0x3ae91a['head'])),_0x558072=_0x2fc2f3['getClosestSelectedImageElement'](_0x28c71d['model']['document']['selection']),_0x4c2d66=_0x28c71d['model']['createRangeOn'](_0x558072),_0x3ea83f['refresh'](),_0x28c71d['commands']['get']('imageTypeInline')['refresh'](),_0x28c71d['commands']['get']('imageTypeBlock')['refresh'](),_0x5daa54=_0x3ea83f['value'],_0x5daa54!=_0xd8080['value'])return _0x2fc2f3['isInlineImage'](_0x558072)&&_0x3ea83f['shouldConvertImageType'](_0xd8080['value'],_0x558072)?(_0xd5ea01({..._0xd8080,'setImageSizes':!0x1}),_0x558072=_0x2fc2f3['getClosestSelectedImageElement'](_0x28c71d['model']['document']['selection']),void _0x548b21['markBlockFormat'](_0x558072,{..._0x26f974,'commandReversedParams':[{'value':_0x5daa54||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2fc2f3['isBlockImage'](_0x558072)?_0x548b21['markBlockFormat'](_0x558072,_0x26f974,[],'imageStylePostApply'):_0x548b21['markInlineFormat'](_0x4c2d66,_0x26f974,'imageStylePostApply'));});});for(const _0x2ac9c6 of _0x28c71d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x76221f[_0x2ac9c6['name']]=_0x2ac9c6['title']['toLowerCase']();_0x548b21['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x548b21['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x548b21['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x548b21['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4280ef])=>{_0x2fc2f3['setImageNaturalSizeAttributes'](_0x4280ef['getContainedElement']());}),_0x548b21['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x135d1b,_0x15e49f)=>{_0x548b21['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x135d1b,{'commandName':_0x15e49f['commandName'],'commandParams':_0x15e49f['commandReversedParams']});}),_0x548b21['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1290ad,_0x510beb){if(_0x71d5e0(_0x1290ad,_0x510beb))return[_0x1290ad,_0x510beb];if(_0x71d5e0(_0x510beb,_0x1290ad))return[_0x510beb,_0x1290ad];return null;});const _0xb4d30c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x71d5e0(_0x6e22e4,_0x328c60){const _0x1a8dbc=_0xb4d30c['findIndex'](({type:_0x51e773,subType:_0x122fe6})=>_0x6e22e4['type']==_0x51e773&&_0x6e22e4['subType']==_0x122fe6),_0x1e4d92=_0xb4d30c['findIndex'](({type:_0x4f4a5a,subType:_0x453f4a})=>_0x328c60['type']==_0x4f4a5a&&_0x328c60['subType']==_0x453f4a);if(_0x1a8dbc<0x0||_0x1e4d92<0x0)return!0x1;const _0xe2f4e5=_0x6e22e4['getFirstRange'](),_0x2d2d22=_0x328c60['getFirstRange']();if((0x0==_0x1a8dbc||0x1==_0x1a8dbc)&&0x2==_0x1e4d92&&_0xe2f4e5['isIntersecting'](_0x2d2d22))return!0x0;if(0x2==_0x1a8dbc&&0x3==_0x1e4d92){const _0x4cf96c=_0x548b21['_findSuggestions'](_0xe2f4e5,'insertion')['filter'](({suggestion:_0x263ee0,meta:_0x5b767b})=>_0x5b767b['isOwn']&&'convertInlineImageToBlock'==_0x263ee0['subType']);if(_0x4cf96c['length']>0x1&&_0x2d2d22['end']['isEqual'](_0xe2f4e5['start']))return!0x0;if(0x1==_0x4cf96c['length']&&(_0xe2f4e5['start']['isEqual'](_0x2d2d22['end'])||_0xe2f4e5['end']['isEqual'](_0x2d2d22['start'])))return!0x0;}if(0x3==_0x1a8dbc&&0x3==_0x1e4d92&&_0xe2f4e5['start']['isBefore'](_0x2d2d22['start'])){const _0x189866=_0xe2f4e5['end']['nodeAfter'],_0x3c3083=_0x2d2d22['start']['nodeBefore'];return _0x2fc2f3['isBlockImage'](_0x189866)&&_0x189866===_0x3c3083;}return!0x1;}_0x28c71d['model']['document']['registerPostFixer'](()=>{let _0x531f6f=!0x1;const _0x292c4e=Array['from'](_0x28c71d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c5194,data:_0x121943}of _0x292c4e){const {group:_0x3ecd0a,type:_0x1266d2,subType:_0x28bded,id:_0x2b61b3}=_0x548b21['_splitMarkerName'](_0x3c5194);if('suggestion'==_0x3ecd0a&&_0x548b21['hasSuggestion'](_0x2b61b3)){if('formatBlock'==_0x1266d2&&('imageStylePreApply'==_0x28bded||'imageStylePostApply'==_0x28bded)){const _0x79d43c=_0x548b21['getSuggestion'](_0x2b61b3);if(_0x121943['newRange']){const _0x5e1f59=_0x79d43c['getFirstRange']()['getContainedElement']();if(_0x2fc2f3['isBlockImage'](_0x5e1f59))continue;_0x548b21['discardSuggestion'](_0x79d43c),_0x531f6f=!0x0;}}if('insertion'==_0x1266d2&&'imageCaption'==_0x28bded&&!_0x121943['newRange']){const _0x1e8f8d=_0x548b21['getSuggestion'](_0x2b61b3);_0x1e8f8d['next']&&_0x1e8f8d['next']['isInContent']&&(_0x548b21['discardSuggestion'](_0x1e8f8d['next']),_0x531f6f=!0x0);}}}return _0x531f6f;}),this['_registerLegacyDescription'](_0x76221f);}['_registerLegacyDescription'](_0x1e89a5){const _0x125c06=this['editor'],_0x5b2e5e=_0x125c06['locale'];_0x125c06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43e051=>{if('formatBlock'!=_0x43e051['type']&&'formatInline'!=_0x43e051['type'])return;const {data:_0x314bf6}=_0x43e051;if(!_0x314bf6||'imageStyle'!=_0x314bf6['commandName'])return;const _0x121bb9=_0x314bf6['commandParams'][0x0]['value'];return _0x4597d2('side'===_0x121bb9?c(_0x5b2e5e,'FORMAT_SIDE_IMAGE'):_0x1e89a5[_0x121bb9]||_0x121bb9);function _0x4597d2(_0x4be38c){return{'type':'format','content':c(_0x5b2e5e,'*Format:*\x20%0',_0x4be38c)};}});}}class ut extends _0x3525e7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x50277c){super(_0x50277c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xf9c9c1=this['editor'],_0x6d7da2=_0xf9c9c1['commands']['get']('importWord'),_0x4c4cc5=_0xf9c9c1['commands']['get']('trackChanges');_0x6d7da2&&(_0x6d7da2['on']('execute',(_0x3810ec,[,_0x744573])=>{this['_trackChangesValueDuringImport']=_0x4c4cc5['value'],_0x744573['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x6d7da2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x6d7da2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4c4cc5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xf9c9c1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1fee77,_0x801f8a){const {suggestions:_0x33e61c}=_0x801f8a,_0x50f837=this['editor']['commands']['get']('trackChanges'),_0x2801f7=_0x50f837['value'];this['_trackChangesValueDuringImport']!==_0x2801f7&&(_0x50f837['execute'](),this['_trackChangesExecuted']=!0x0),_0x33e61c&&_0x33e61c['forEach'](({id:_0x5631c4,type:_0x181c65,author:_0x166d37,created_at:_0x246b2a})=>{const _0x3beee1={'id':_0x5631c4,'type':_0x181c65,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x166d37,'createdAt':_0x246b2a?new Date(_0x246b2a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3beee1);});}}class ft extends _0x3525e7{['afterInit'](){const _0x13b5d4=this['editor'],_0x2cf862=_0x13b5d4['plugins']['get']('TrackChangesEditing');if(_0x13b5d4['plugins']['has']('IndentEditing')&&(_0x2cf862['enableCommand']('indent'),_0x2cf862['enableCommand']('outdent')),_0x13b5d4['plugins']['has']('IndentBlock')){for(const _0x2648ce of['indentBlock','outdentBlock'])_0x2cf862['enableDefaultAttributesIntegration'](_0x2648ce);}const _0x53c486=_0x13b5d4['locale'];_0x2cf862['registerBlockAttribute']('blockIndent'),_0x2cf862['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x53c486,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x595a5e=this['editor'],_0x38307e=_0x595a5e['locale'],_0x2e4516=_0x595a5e['plugins']['get']('TrackChangesEditing');_0x2e4516['descriptionFactory']['registerDescriptionCallback'](_0x20f07c=>{if('formatBlock'!=_0x20f07c['type'])return;const {data:_0x1c6b52}=_0x20f07c;if(!_0x1c6b52)return;if('indentBlock'!=_0x1c6b52['commandName']&&'outdentBlock'!=_0x1c6b52['commandName'])return;const _0x8ad933=_0x20f07c['getItems']()[0x0],_0x5c8abe=_0x2e4516['descriptionFactory']['getItemLabel'](_0x8ad933);return'indentBlock'==_0x1c6b52['commandName']?{'type':'format','content':c(_0x38307e,'*Indent:*\x20%0',_0x5c8abe)}:'outdentBlock'==_0x1c6b52['commandName']?{'type':'format','content':c(_0x38307e,'*Outdent:*\x20%0',_0x5c8abe)}:void 0x0;});}}class ht extends _0x3525e7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x3525e7{['afterInit'](){const _0x1ce1fe=this['editor'];if(!_0x1ce1fe['plugins']['has']('LinkEditing'))return;const _0x511226=_0x1ce1fe['plugins']['get']('TrackChangesEditing'),_0x2c9cae=_0x1ce1fe['commands']['get']('link');_0x511226['enableDefaultAttributesIntegration']('link'),_0x511226['enableDefaultAttributesIntegration']('unlink'),_0x511226['registerInlineAttribute']('linkHref');for(const _0x4e8ebd of _0x2c9cae['manualDecorators'])_0x511226['registerInlineAttribute'](_0x4e8ebd['id']),_0x511226['descriptionFactory']['registerAttributeLabel'](_0x4e8ebd['id'],'link\x20('+_0x4e8ebd['label']['toLowerCase']()+')');_0x511226['descriptionFactory']['registerDescriptionCallback'](_0x54fc6e=>{if('attribute'!=_0x54fc6e['type'])return;const {data:_0x7507cc}=_0x54fc6e;if(!_0x7507cc||'linkHref'!=_0x7507cc['key'])return;const _0x30f73e=_0x7507cc['newValue'],_0x48c6dc=_0x1ce1fe['locale'];return{'type':'format','content':null==_0x30f73e?c(_0x48c6dc,'*Remove\x20link*'):c(_0x48c6dc,'*Set\x20link:*\x20%0','\x22'+_0x30f73e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2328c9=this['editor'],_0x5b52cf=_0x2328c9['locale'];_0x2328c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d92c9=>{if('formatInline'!=_0x3d92c9['type'])return;const {data:_0xc64a77}=_0x3d92c9;if(_0xc64a77){if('link'==_0xc64a77['commandName']){const _0x4c78b0=_0xc64a77['commandParams'][0x0];return{'type':'format','content':c(_0x5b52cf,'*Set\x20link:*\x20%0','\x22'+_0x4c78b0+'\x22')};}return'unlink'==_0xc64a77['commandName']?{'type':'format','content':c(_0x5b52cf,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x3525e7{['afterInit'](){const _0x568ea6=this['editor'],_0x32b9b6=_0x568ea6['locale'];if(!_0x568ea6['plugins']['has']('LegacyListEditing'))return;const _0x3685f6=_0x568ea6['plugins']['get']('TrackChangesEditing'),_0x404e52=_0x568ea6['plugins']['has']('LegacyTodoListEditing');function _0x27ffdd(_0x20f54d){return()=>{const _0x3da9fd=_0x568ea6['model']['document']['selection'],_0x49aad9=_0x568ea6['commands']['get'](_0x20f54d);if(_0x49aad9['value'])return void _0x568ea6['execute']('paragraph',{});const _0x26db41=_0x20f54d['slice'](0x0,-0x4),_0x44a417=function(_0x2f9380,_0x52b563,_0x3e0c4c){let _0x5bd6a3=Array['from'](_0x2f9380)['filter'](_0x33d510=>function(_0x52400d,_0x31bf77){return _0x31bf77['checkChild'](_0x52400d['parent'],'listItem')&&!_0x31bf77['isObject'](_0x52400d);}(_0x33d510,_0x3e0c4c));_0x5bd6a3=_0x5bd6a3['filter'](_0x3a84e1=>!_0x3a84e1['is']('element','listItem')||_0x3a84e1['getAttribute']('listType')!=_0x52b563);const _0x2e3539=new Set();for(const _0x5c382d of _0x5bd6a3)_0x5c382d['is']('element','listItem')?_0x2e3539['add'](Le(_0x5c382d)):_0x2e3539['add'](_0x5c382d);return Array['from'](_0x2e3539);}(_0x3da9fd['getSelectedBlocks'](),_0x26db41,_0x568ea6['model']['schema']);_0x568ea6['model']['change'](()=>{for(const _0x6ff382 of _0x44a417)_0x3685f6['markBlockFormat'](_0x6ff382,{'commandName':_0x20f54d,'commandParams':[{'forceValue':!_0x49aad9['value']}],'formatGroupId':'blockName'},Ee(_0x6ff382));});};}function _0x32df29(_0x453647){return()=>{const _0x3f8123=function(_0x506c3f){let _0x3797ab=Array['from'](_0x506c3f);const _0x498342=_0x3797ab['findIndex'](_0x1f8805=>'listItem'!=_0x1f8805['name']);return _0x498342>-0x1&&(_0x3797ab=_0x3797ab['slice'](0x0,_0x498342)),_0x3797ab;}(_0x568ea6['model']['document']['selection']['getSelectedBlocks']()),_0x478c33=_0x568ea6['model']['createRange'](_0x568ea6['model']['createPositionAt'](_0x3f8123[0x0],'before'),_0x568ea6['model']['createPositionAt'](_0x3f8123[_0x3f8123['length']-0x1],'end'));_0x568ea6['model']['change'](()=>{_0x3685f6['markBlockFormat'](_0x478c33,{'commandName':_0x453647,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4a241e){const _0x39ae59=new Set();for(const _0xb8872f of _0x4a241e){let _0x5f0fc1=_0xb8872f['nextSibling'];for(;_0x5f0fc1&&_0x5f0fc1['getAttribute']('listIndent')>_0xb8872f['getAttribute']('listIndent');)_0x39ae59['add'](_0x5f0fc1),_0x5f0fc1=_0x5f0fc1['nextSibling'];}return Array['from'](_0x39ae59);}(_0x3f8123));});};}_0x3685f6['enableCommand']('numberedList',_0x27ffdd('numberedList')),_0x3685f6['enableCommand']('bulletedList',_0x27ffdd('bulletedList')),_0x404e52&&_0x3685f6['enableCommand']('todoList',_0x27ffdd('todoList')),_0x3685f6['enableCommand']('indentList',_0x32df29('indentList')),_0x3685f6['enableCommand']('outdentList',_0x32df29('outdentList')),_0x404e52&&_0x3685f6['enableCommand']('checkTodoList',()=>{const _0x2d5076=_0x568ea6['commands']['get']('checkTodoList'),_0xea0650=Array['from'](_0x2d5076['_selectedElements']);_0xea0650['filter'](_0xb062c=>_0xb062c['getAttribute']('todoListChecked')!=_0x2d5076['value']),_0x568ea6['model']['change'](()=>{for(const _0x172603 of _0xea0650)_0x3685f6['markBlockFormat'](_0x172603,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2d5076['value']}]});});}),_0x3685f6['descriptionFactory']['registerElementLabel']('listItem',_0x221f4f=>c(_0x32b9b6,'ELEMENT_LIST_ITEM',_0x221f4f)),_0x3685f6['descriptionFactory']['registerDescriptionCallback'](_0x297f85=>{if('formatBlock'!=_0x297f85['type']&&'formatInline'!=_0x297f85['type'])return;const {data:_0x53f5d7}=_0x297f85;if(_0x53f5d7){if('numberedList'==_0x53f5d7['commandName']||'bulletedList'==_0x53f5d7['commandName']||'todoList'==_0x53f5d7['commandName'])switch(_0x53f5d7['commandName']['replace']('List','')){case'bulleted':return _0x39d31c(c(_0x32b9b6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x39d31c(c(_0x32b9b6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x39d31c(c(_0x32b9b6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x53f5d7['commandName'])return{'type':'format','content':c(_0x32b9b6,'*Indent:*\x20%0',c(_0x32b9b6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x53f5d7['commandName'])return{'type':'format','content':c(_0x32b9b6,'*Outdent:*\x20%0',c(_0x32b9b6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x53f5d7['commandName'])return _0x53f5d7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x32b9b6,'*Check\x20item*')}:{'type':'format','content':c(_0x32b9b6,'*Uncheck\x20item*')};}function _0x39d31c(_0x5f419b){return{'type':'format','content':c(_0x32b9b6,'*Change\x20to:*\x20%0',_0x5f419b)};}});}}function Le(_0x45a046){const _0x4f92b8=_0x45a046['getAttribute']('listIndent');if(0x0==_0x4f92b8)return _0x45a046;let _0x4d63fd=_0x45a046;for(;_0x45a046['previousSibling']&&_0x45a046['previousSibling']['is']('element','listItem');){const _0x5756bc=_0x45a046['previousSibling']['getAttribute']('listIndent');if(_0x5756bc==_0x4f92b8)_0x4d63fd=_0x45a046['previousSibling'];else{if(_0x5756bc<_0x4f92b8)break;}_0x45a046=_0x45a046['previousSibling'];}return _0x4d63fd;}function Ee(_0x5b9af1){const _0x23b705=[];if(_0x5b9af1['is']('element','listItem')&&_0x5b9af1['getAttribute']('listIndent')>0x0){let _0x569e86=_0x5b9af1['nextSibling'];for(;_0x569e86&&'listItem'==_0x569e86['name']&&_0x569e86['getAttribute']('listIndent')==_0x5b9af1['getAttribute']('listIndent');)_0x23b705['push'](_0x569e86),_0x569e86=_0x569e86['nextSibling'];}return _0x23b705;}class Q extends _0x3525e7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1ffb97=this['editor']['config']['get']('list.properties'),_0x48401d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ffb97['styles']&&_0x48401d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1ffb97['reversed']&&_0x48401d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1ffb97['startIndex']&&_0x48401d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x48401d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xeac643,_0x24cc5b={}){const _0x15771d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x190b50=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x15771d['markMultiRangeBlockFormat'](_0x190b50,{'commandName':'listStyle','commandParams':[{'type':_0x24cc5b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x19fb2f,_0x3cdf91={}){const _0x358316=this['editor']['plugins']['get']('TrackChangesEditing'),_0x459331=this['_getSuggestionBlocks'](_0x48ec2b=>_0x48ec2b['is']('element','listItem')&&'numbered'===_0x48ec2b['getAttribute']('listType'));if(_0x459331['length']<0x1)return;const _0x4374bc=_0x459331['map'](_0x5a18ed=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a18ed,'before'),this['editor']['model']['createPositionAt'](_0x5a18ed,0x0)));this['editor']['model']['change'](()=>{_0x358316['markMultiRangeBlockFormat'](_0x4374bc,{'commandName':'listReversed','commandParams':[{'reversed':_0x3cdf91['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x573ab8,_0x40df6e={}){const _0x532ec4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2657e2=this['_getSuggestionBlocks'](_0x52b114=>_0x52b114['is']('element','listItem')&&'numbered'===_0x52b114['getAttribute']('listType'));if(_0x2657e2['length']<0x1)return;const _0x5d80a8=_0x2657e2['map'](_0x1b4570=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b4570,'before'),this['editor']['model']['createPositionAt'](_0x1b4570,0x0)));this['editor']['model']['change'](()=>{_0x532ec4['markMultiRangeBlockFormat'](_0x5d80a8,{'commandName':'listStart','commandParams':[{'startIndex':_0x40df6e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x190356){if('formatBlock'!=_0x190356['type']&&'formatInline'!=_0x190356['type'])return;const _0x50479c=this['editor']['locale'],{data:_0x54bced}=_0x190356;if(!_0x54bced)return;let _0x2eab3e,_0x1c5d1a;switch(_0x54bced['commandName']){case'listStyle':_0x2eab3e='*Change\x20to:*\x20%0',_0x1c5d1a={'type':'format','content':c(_0x50479c,_0x2eab3e,c(_0x50479c,this['_getTranslationKeyForListStyle'](_0x54bced['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2eab3e=_0x54bced['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1c5d1a={'type':'format','content':c(_0x50479c,_0x2eab3e)};break;case'listStart':_0x2eab3e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1c5d1a={'type':'format','content':c(_0x50479c,_0x2eab3e,_0x54bced['commandParams'][0x0]['startIndex'])};}return _0x1c5d1a;}['_getSuggestionBlocksForListStyle'](){const _0xa16a5b=this['editor']['plugins']['get']('LegacyListUtils');let _0x29dc9a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x29dc9a[0x0]?.['is']('element','listItem')&&_0x29dc9a['unshift'](..._0xa16a5b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x29dc9a[_0x29dc9a['length']-0x1]?.['is']('element','listItem')&&_0x29dc9a['push'](..._0xa16a5b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x29dc9a=[...new Set(_0x29dc9a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x29dc9a=_0x29dc9a['filter'](_0xdd23a1=>_0xdd23a1['is']('element','listItem'))),_0x29dc9a;}['_getSuggestionBlocks'](_0x833701){const _0x77becd=this['editor']['plugins']['get']('LegacyListUtils');let _0x251881=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x833701)['map'](_0x2933d4=>{const _0x918194=this['editor']['model']['createPositionAt'](_0x2933d4,0x0);return[..._0x77becd['getSiblingNodes'](_0x918194,'backward'),..._0x77becd['getSiblingNodes'](_0x918194,'forward')];})['flat']();return _0x251881=[...new Set(_0x251881)],_0x251881;}['_getTranslationKeyForListStyle'](_0x53301b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x53301b)||'default')['toUpperCase']()+'_LIST_'+_0x53301b['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x3525e7{['afterInit'](){const _0x4f264e=this['editor'];if(!_0x4f264e['plugins']['has']('MediaEmbedEditing'))return;const _0x5a21cf=_0x4f264e['plugins']['get']('TrackChangesEditing'),_0x2aa8a=_0x4f264e['locale'];_0x5a21cf['enableCommand']('mediaEmbed'),_0x5a21cf['descriptionFactory']['registerElementLabel']('media',_0xbd903e=>c(_0x2aa8a,'ELEMENT_MEDIA',_0xbd903e)),_0x4f264e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2be3ba,{writer:_0x3da117,options:_0x8a5dfa})=>{if(_0x8a5dfa['showSuggestionHighlights'])return _0x3da117['createEmptyElement']('div');},'converterPriority':'high'}),_0x4f264e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5ef80b,_0x3ae99a,_0x8d57ad)=>{_0x8d57ad['options']['showSuggestionHighlights']&&_0x5ef80b['stop']();},{'priority':'high'});}}class pt extends _0x3525e7{['afterInit'](){const _0x379e28=this['editor'];_0x379e28['plugins']['has']('MentionEditing')&&_0x379e28['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x3525e7{['afterInit'](){const _0x344baf=this['editor'];if(!_0x344baf['plugins']['has']('MergeFieldsEditing'))return;const _0x406e99=_0x344baf['plugins']['get']('TrackChangesEditing'),_0x3e3aec=_0x344baf['locale'];_0x406e99['enableCommand']('insertMergeField'),_0x406e99['enableCommand']('insertMergeFieldBlock'),_0x406e99['enableCommand']('insertMergeFieldImage'),_0x406e99['descriptionFactory']['registerElementLabel']('mergeField',_0x100895=>c(_0x3e3aec,'ELEMENT_MERGE_FIELD',_0x100895)),_0x406e99['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2b69cb=>c(_0x3e3aec,'ELEMENT_MERGE_FIELD',_0x2b69cb)),_0x406e99['descriptionFactory']['registerDescriptionCallback'](_0x2cebec=>{if('insertion'!=_0x2cebec['type']&&'deletion'!=_0x2cebec['type'])return;const _0x5ca838=_0x2cebec['getContainedElement']();if(null==_0x5ca838)return;const _0x1139c4=_0x344baf['plugins']['get']('MergeFieldsEditing');let _0x156a7e;switch(_0x1139c4['getMergeFieldType'](_0x5ca838)){case null:return;case'image':{const _0xbaa386=_0x1139c4['unwrapAffixes'](_0x5ca838['getAttribute']('src'));_0x156a7e=_0x1139c4['getLabel'](_0xbaa386)||_0xbaa386;break;}default:{const _0xd97222=_0x5ca838['getAttribute']('id');_0x156a7e=_0x1139c4['getLabel'](_0xd97222)||_0xd97222;break;}}return'insertion'==_0x2cebec['type']?{'type':'insertion','content':c(_0x3e3aec,'*Insert:*\x20%0','\x22'+_0x156a7e+'\x22\x20'+c(_0x3e3aec,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3e3aec,'*Remove:*\x20%0','\x22'+_0x156a7e+'\x22\x20'+c(_0x3e3aec,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x3525e7{['afterInit'](){const _0x51d3ae=this['editor'],_0x49876a=_0x51d3ae['plugins']['get']('TrackChangesEditing');_0x51d3ae['plugins']['has']('MultiLevelList')&&(_0x49876a['enableDefaultAttributesIntegration']('multiLevelList'),_0x49876a['registerBlockAttribute']('listMarkerStyle'),_0x49876a['descriptionFactory']['registerDescriptionCallback'](_0x41734f=>this['handleDescriptions'](_0x41734f)));}['handleDescriptions'](_0x3003f6){const _0x2dd669=this['editor']['locale'],{data:_0xc0ddbd}=_0x3003f6,_0x118858={'type':'format','content':''};if(_0xc0ddbd&&'listMarkerStyle'==_0xc0ddbd['key']){if(!_0xc0ddbd['oldValue'])return{'type':'format','content':c(_0x2dd669,'*Set\x20format:*\x20%0',c(_0x2dd669,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc0ddbd['newValue']+')'};if(!_0xc0ddbd['newValue']){let _0x5ad980=_0x3003f6['head'];for(;_0x5ad980;){if(_0x5ad980['data']&&'listType'==_0x5ad980['data']['key']&&_0x5ad980['data']['newValue'])return _0x118858;_0x5ad980=_0x5ad980['next'];}return{'type':'format','content':c(_0x2dd669,'*Remove\x20format:*\x20%0',c(_0x2dd669,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc0ddbd['oldValue']+')'};}}}}class bt extends _0x3525e7{['afterInit'](){const _0x4b1ff9=this['editor'];if(!_0x4b1ff9['plugins']['has']('PageBreakEditing'))return;_0x4b1ff9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x50837d=_0x4b1ff9['plugins']['get']('TrackChangesEditing'),_0x387855=_0x4b1ff9['locale'];_0x50837d['descriptionFactory']['registerElementLabel']('pageBreak',_0x2ca478=>c(_0x387855,'ELEMENT_PAGE_BREAK',_0x2ca478));}}class yt extends _0x3525e7{['afterInit'](){const _0x17ad2b=this['editor'];if(!_0x17ad2b['plugins']['has']('Paragraph'))return;const _0x53d3da=_0x17ad2b['locale'],_0x50a533=_0x17ad2b['plugins']['get']('TrackChangesEditing');_0x50a533['descriptionFactory']['registerElementLabel']('paragraph',_0x2651a5=>c(_0x53d3da,'ELEMENT_PARAGRAPH',_0x2651a5)),_0x50a533['enableDefaultAttributesIntegration']('paragraph'),_0x50a533['enableCommand']('insertParagraph'),_0x17ad2b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x17ad2b),{'priority':'highest'}),_0x17ad2b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x919fcb,_0x2eb465,_0x247c37)=>{_0x247c37['options']['showSuggestionHighlights']&&nr(_0x17ad2b,{'showActiveMarker':!0x1})(_0x919fcb,_0x2eb465,_0x247c37);},{'priority':'highest'});const _0x3bcbe5=_0x50a533['descriptionFactory'];_0x3bcbe5['registerDescriptionCallback'](_0x5454d2=>{if('insertion'!==_0x5454d2['type'])return;const {start:_0x53ccdb,end:_0xbcaa59}=_0x5454d2['getFirstRange']();if(!_0x53ccdb['isTouching'](_0xbcaa59)||!_0x53ccdb['nodeAfter'])return;const _0x456075=_0x17ad2b['model']['schema'],_0x1c862e=_0x53ccdb['nodeAfter'];return _0x456075['isBlock'](_0x1c862e)&&!_0x456075['isLimit'](_0x1c862e)&&_0x456075['checkChild'](_0x1c862e,'$text')?{'type':'insertion','content':c(_0x53d3da,'*Insert:*\x20%0',_0x3bcbe5['getItemLabel'](_0x1c862e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b4f47=this['editor'],_0x482d67=_0x3b4f47['locale'];_0x3b4f47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ee0de=>{if('formatBlock'!=_0x3ee0de['type'])return;const {data:_0x544b71}=_0x3ee0de;return _0x544b71&&'paragraph'==_0x544b71['commandName']?{'type':'format','content':c(_0x482d67,'*Change\x20to:*\x20%0',c(_0x482d67,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x193c7c,{showActiveMarker:_0x1ae584=!0x0}={}){return(_0x1c1c3c,_0x46e158,_0x9d0703)=>{const _0x6afa97=_0x193c7c['plugins']['get']('TrackChangesEditing'),_0x466ddd=_0x46e158['markerRange']['start'],_0x242c67=_0x46e158['markerRange']['end'],_0x250a0d=_0x193c7c['model']['schema'];if(!_0x466ddd['isTouching'](_0x242c67)||!_0x466ddd['nodeAfter'])return;const _0x34a967=_0x466ddd['nodeAfter'];if(_0x250a0d['isBlock'](_0x34a967)&&!_0x250a0d['isLimit'](_0x34a967)&&_0x250a0d['checkChild'](_0x34a967,'$text')){if(!_0x9d0703['consumable']['consume'](_0x46e158['markerRange'],_0x1c1c3c['name']))return;const {id:_0x27c946,authorId:_0x3ac286}=_0x6afa97['_splitMarkerName'](_0x46e158['markerName']),_0x4ddc98=_0x9d0703['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x27c946,'data-author-id':_0x3ac286}),_0x243d1f=_0x9d0703['mapper']['toViewPosition'](_0x242c67);_0x1ae584&&_0x6afa97['activeMarkers']['includes'](_0x46e158['markerName'])&&_0x9d0703['writer']['addClass']('ck-suggestion-marker--active',_0x4ddc98),_0x9d0703['writer']['insert'](_0x243d1f,_0x4ddc98),_0x9d0703['mapper']['bindElementToMarker'](_0x4ddc98,_0x46e158['markerName']);}};}class St extends _0x3525e7{['afterInit'](){const _0x1bb83b=this['editor'];_0x1bb83b['commands']['get']('replaceSource')&&_0x1bb83b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x3525e7{['afterInit'](){const _0x4150a6=this['editor'];if(!_0x4150a6['plugins']['has']('RemoveFormatEditing'))return;_0x4150a6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30f82d=this['editor'];_0x30f82d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b88a1=>{if('formatBlock'!=_0x5b88a1['type']&&'formatInline'!=_0x5b88a1['type'])return;const {data:_0x40c2f3}=_0x5b88a1;return _0x40c2f3&&'removeFormat'==_0x40c2f3['commandName']?{'type':'format','content':c(_0x30f82d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x3525e7{['afterInit'](){const _0x178655=this['editor'];if(!_0x178655['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xa1ca84=_0x178655['plugins']['get']('TrackChangesEditing');_0xa1ca84['enableCommand']('goToPreviousRestrictedEditingException'),_0xa1ca84['enableCommand']('goToNextRestrictedEditingException');const _0x235499=_0x178655['plugins']['get']('RestrictedEditingModeEditing');_0x235499['enableCommand']('trackChanges'),_0x235499['enableCommand']('acceptSuggestion'),_0x235499['enableCommand']('discardSuggestion'),_0x235499['enableCommand']('acceptAllSuggestions'),_0x235499['enableCommand']('discardAllSuggestions'),_0x235499['enableCommand']('acceptSelectedSuggestions'),_0x235499['enableCommand']('discardSelectedSuggestions');}}class At extends _0x3525e7{['afterInit'](){const _0x5f4265=this['editor'];if(!_0x5f4265['plugins']['has']('ShiftEnter'))return;const _0x47cc97=_0x5f4265['plugins']['get']('TrackChangesEditing');_0x47cc97['enableCommand']('shiftEnter'),_0x5f4265['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5f4265),{'priority':'high'}),_0x5f4265['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5f4265),{'priority':'high'}),_0x5f4265['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29cb3d,_0x59b2f9,_0x5a71b9)=>{_0x5a71b9['options']['showSuggestionHighlights']&&je(_0x5f4265,{'showActiveMarker':!0x1})(_0x29cb3d,_0x59b2f9,_0x5a71b9);}),_0x47cc97['descriptionFactory']['registerElementLabel']('softBreak',_0x1ec472=>c(_0x5f4265['locale'],'ELEMENT_LINE_BREAK',_0x1ec472));}}function je(_0x1ac9dd,{showActiveMarker:_0xbf3140=!0x0}={}){return(_0x4c1651,_0x457fc9,_0x166906)=>{const _0x2830c5=_0x1ac9dd['plugins']['get']('TrackChangesEditing');if(!_0x166906['consumable']['test'](_0x457fc9['markerRange'],_0x4c1651['name']))return;const _0x46579d=_0x1ac9dd['model'];for(const _0x24caa3 of _0x457fc9['markerRange']['getItems']()){if(!_0x24caa3['is']('element','softBreak'))continue;const _0x20aa5a='deletion'==_0x457fc9['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xe6664a,authorId:_0x1023a7}=_0x2830c5['_splitMarkerName'](_0x457fc9['markerName']),_0x3b41f4=_0x166906['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x20aa5a,'data-suggestion':_0xe6664a,'data-author-id':_0x1023a7}),_0x283526=_0x166906['mapper']['toViewPosition'](_0x46579d['createPositionBefore'](_0x24caa3));_0xbf3140&&_0x2830c5['activeMarkers']['includes'](_0x457fc9['markerName'])&&_0x166906['writer']['addClass']('ck-suggestion-marker--active',_0x3b41f4),_0x166906['writer']['insert'](_0x283526,_0x3b41f4),_0x166906['mapper']['bindElementToMarker'](_0x3b41f4,_0x457fc9['markerName']);}};}class _t extends _0x3525e7{['afterInit'](){const _0x47df4c=this['editor'],_0x11b857=_0x47df4c['model'],_0x425e20=_0x47df4c['locale'];if(!_0x47df4c['plugins']['has']('StandardEditingModeEditing'))return;const _0x21501b=_0x47df4c['plugins']['get']('TrackChangesEditing'),_0x321adb='restrictedEditingException',_0x306b97=_0x47df4c['commands']['get'](_0x321adb);_0x21501b['enableCommand'](_0x321adb,(_0x36c060,_0x17b768={})=>{const _0x1753d0=_0x11b857['document']['selection'];if(_0x1753d0['isCollapsed'])return void _0x36c060(_0x17b768);const _0x17a168=void 0x0!==_0x17b768['forceValue']?_0x17b768['forceValue']:!_0x306b97['value'];_0x11b857['change'](()=>{const _0x3119ea=Array['from'](_0x1753d0['getRanges']());for(const _0x13da63 of _0x3119ea){const _0x29f8b7=_0x17a168?[_0x13da63]:io(_0x321adb,_0x13da63,_0x11b857);for(const _0x23ed2a of _0x29f8b7)_0x21501b['markInlineFormat'](_0x23ed2a,{'commandName':_0x321adb,'commandParams':[{'forceValue':_0x17a168}]});}});}),_0x21501b['descriptionFactory']['registerDescriptionCallback'](_0x5ba0c7=>{if('formatBlock'!=_0x5ba0c7['type']&&'formatInline'!=_0x5ba0c7['type'])return;const {data:_0x3c5d87}=_0x5ba0c7;return _0x3c5d87&&_0x3c5d87['commandName']==_0x321adb?_0x3c5d87['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x425e20,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x425e20,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x3525e7{['afterInit'](){const _0x664a95=this['editor'];if(!_0x664a95['plugins']['has']('Style')||!_0x664a95['plugins']['has']('DataSchema'))return;const _0x2bdb45=_0x664a95['plugins']['get']('TrackChangesEditing'),_0x3349f0=_0x664a95['locale'],_0x465066=_0x664a95['config']['get']('style')||{},_0x49a9d1=_0x664a95['plugins']['get']('GeneralHtmlSupport'),_0x4f9bfd=_0x664a95['plugins']['get']('StyleUtils')['normalizeConfig'](_0x664a95['plugins']['get']('DataSchema'),_0x465066['definitions']);_0x2bdb45['enableDefaultAttributesIntegration']('style');const _0x24ddf7=new Set();for(const _0x547a0a of _0x4f9bfd['block']){const _0xf30513=_0x49a9d1['getGhsAttributeNameForElement'](_0x547a0a['element']);_0x24ddf7['add'](_0xf30513);}const _0x3ce6c6=new Set();for(const _0x9d8e2c of _0x4f9bfd['inline']){const _0x41de41=_0x49a9d1['getGhsAttributeNameForElement'](_0x9d8e2c['element']);_0x3ce6c6['add'](_0x41de41);for(const _0x4c26bf of _0x9d8e2c['ghsAttributes'])_0x3ce6c6['add'](_0x4c26bf);}for(const _0x75703b of _0x24ddf7)_0x2bdb45['registerBlockAttribute'](_0x75703b),_0x2bdb45['descriptionFactory']['registerAttributeLabel'](_0x75703b,c(_0x3349f0,'FORMAT_STYLE'));for(const _0x3c7fde of _0x3ce6c6)_0x2bdb45['registerInlineAttribute'](_0x3c7fde),_0x2bdb45['descriptionFactory']['registerAttributeLabel'](_0x3c7fde,c(_0x3349f0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c09d6=this['editor'],_0x47bf4a=_0x5c09d6['locale'];_0x5c09d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3abba6=>{if('formatBlock'!=_0x3abba6['type']&&'formatInline'!=_0x3abba6['type'])return;const {data:_0x1c30e4}=_0x3abba6;return _0x1c30e4&&'style'===_0x1c30e4['commandName']?_0x1c30e4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x47bf4a,'*Set\x20format:*\x20%0',_0x1c30e4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x47bf4a,'*Remove\x20format:*\x20%0',_0x1c30e4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3525e7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1a048a){super(_0x1a048a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x67e7f3=this['editor'],_0x8ead03=_0x67e7f3['model']['document']['selection'];if(!_0x67e7f3['plugins']['has']('TableEditing'))return;const _0x2114d7=_0x67e7f3['locale'],_0x377f90=_0x67e7f3['plugins']['get']('TrackChangesEditing'),_0x2ee583=_0x67e7f3['plugins']['get']('TableUtils');_0x377f90['descriptionFactory']['registerElementLabel']('table',_0x4cf2f9=>c(_0x2114d7,'ELEMENT_TABLE',_0x4cf2f9)),this['_setupColumnsRowsFixing'](),_0x377f90['enableCommand']('insertTable'),_0x377f90['enableCommand']('selectTableRow'),_0x377f90['enableCommand']('selectTableColumn');for(const _0xaaa638 of['insertTableRowAbove','insertTableRowBelow']){const _0x445b00=_0x67e7f3['commands']['get'](_0xaaa638);_0x377f90['enableCommand'](_0xaaa638,_0x47c7c6=>{_0x67e7f3['model']['change'](_0x4a6e39=>{_0x47c7c6();const _0x21e189='above'===_0x445b00['order'],_0x53b19d=_0x2ee583['getSelectionAffectedTableCells'](_0x8ead03),_0x24e3ce=_0x2ee583['getRowIndexes'](_0x53b19d),_0x261714=_0x21e189?_0x24e3ce['first']-0x1:_0x24e3ce['last']+0x1,_0x35dac1=_0x53b19d[0x0]['findAncestor']('table'),_0x4ecd07=_0x2ee583['createTableWalker'](_0x35dac1,{'startRow':_0x261714,'endRow':_0x261714}),_0x276ec2=Array['from'](_0x4ecd07)['map'](_0x320d07=>_0x4a6e39['createRangeOn'](_0x320d07['cell']));_0x377f90['markMultiRangeInsertion'](_0x276ec2,'tableRow');});});}for(const _0x5ba777 of['insertTableColumnLeft','insertTableColumnRight']){const _0x10f048=_0x67e7f3['commands']['get'](_0x5ba777);_0x377f90['enableCommand'](_0x5ba777,_0x118a77=>{_0x67e7f3['model']['change'](_0x2f5473=>{_0x118a77();const _0x1ea7b0='left'===_0x10f048['order'],_0x30c3a1=_0x2ee583['getSelectionAffectedTableCells'](_0x8ead03),_0x2c08c1=_0x2ee583['getColumnIndexes'](_0x30c3a1),_0x342aef=_0x1ea7b0?_0x2c08c1['first']-0x1:_0x2c08c1['last']+0x1,_0x506016=_0x30c3a1[0x0]['findAncestor']('table'),_0x25ee1e=_0x2ee583['createTableWalker'](_0x506016,{'startRow':0x0,'column':_0x342aef,'includeAllSlots':!0x1}),_0x5950ff=Array['from'](_0x25ee1e)['map'](_0x3c6c80=>_0x2f5473['createRangeOn'](_0x3c6c80['cell']));_0x377f90['markMultiRangeInsertion'](_0x5950ff,'tableColumn');});});}for(const _0x1edd51 of['removeTableRow','removeTableColumn']){const _0x17d029=_0x1edd51['substr'](0xb),_0x3a41cf=_0x17d029['toLowerCase'](),_0x484f13=_0x3a41cf['substr'](0x0,0x3)+'span',_0x3ee1b3='table'+_0x17d029,_0x9f2d04='min'+_0x17d029,_0x385db4='max'+_0x17d029;_0x377f90['enableCommand'](_0x1edd51,()=>{_0x67e7f3['model']['change'](_0x139249=>{const _0x57c44f=_0x2ee583['getSelectionAffectedTableCells'](_0x8ead03),_0x2dc222=_0x57c44f[0x0]['findAncestor']('table');let _0x5052fb;if('removeTableRow'==_0x1edd51){const _0x3efd56=_0x2ee583['getRowIndexes'](_0x57c44f);_0x5052fb={'startRow':_0x3efd56['first'],'endRow':_0x3efd56['last'],'includeAllSlots':!0x0};}else{const _0x234beb=_0x2ee583['getColumnIndexes'](_0x57c44f);_0x5052fb={'startColumn':_0x234beb['first'],'endColumn':_0x234beb['last'],'includeAllSlots':!0x0};}const _0x203313=_0x2ee583['createTableWalker'](_0x2dc222,_0x5052fb),_0x558a53=Array['from'](_0x203313)['map'](({cell:_0x515976})=>_0x515976),_0x3e1c2c=xe(_0x558a53['filter'](_0x4cfc38=>_0x4cfc38['hasAttribute'](_0x484f13))),_0x59fd0b=xe(_0x558a53['filter'](_0x21365a=>!_0x21365a['hasAttribute'](_0x484f13)))['map'](_0x25afe0=>_0x139249['createRangeOn'](_0x25afe0)),_0x2c9944=_0x377f90['markMultiRangeDeletion'](_0x59fd0b,_0x3ee1b3);if(_0x2c9944&&('tableRow'==_0x2c9944['subType']||'tableColumn'==_0x2c9944['subType'])){const _0x31506e=this['_getSuggestionCoords'](_0x2c9944);for(const _0xc48734 of _0x3e1c2c){const _0x37fdc5=_0x139249['createRangeOn'](_0xc48734),_0x484712=_0x2ee583['getCellLocation'](_0xc48734),_0x427f44=_0xc48734['getAttribute'](_0x484f13)-0x1,_0x2b562a=_0x31506e[_0x9f2d04],_0x4f3aee=_0x31506e[_0x385db4];_0x2b562a<=_0x484712[_0x3a41cf]&&_0x484712[_0x3a41cf]+_0x427f44<=_0x4f3aee&&_0x2c9944['addRange'](_0x37fdc5);}}});});}function _0x4c6b6a(_0x546ebb){const _0x23232e=Array['from'](_0x8ead03['getRanges']())['map'](_0x207738=>_0x5d59ab['fromRange'](_0x207738));_0x67e7f3['model']['change'](_0x2b9536=>{const _0x2596be=_0x2b9536['batch'];_0x546ebb=_0x546ebb['filter'](_0x595667=>'$graveyard'!=_0x595667['root']['rootName']),_0x2b9536['setSelection'](_0x546ebb),_0x67e7f3['commands']['get']('removeTableRow')['refresh'](),_0x67e7f3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x67e7f3['model']['enqueueChange'](()=>{_0x67e7f3['model']['enqueueChange'](_0x2596be,_0x56897c=>{const _0x2a6236=_0x23232e['filter'](_0x4ccc64=>'$graveyard'!=_0x4ccc64['root']['rootName']);_0x2a6236['length']>0x0&&_0x56897c['setSelection'](_0x2a6236);for(const _0x2729cf of _0x23232e)_0x2729cf['detach']();});});});}function _0x16ce13(_0x36d61c){_0x67e7f3['model']['change'](_0x2db445=>{const _0x4709b5=Array['from'](_0x8ead03['getRanges']())['map'](_0x1152b5=>_0x5d59ab['fromRange'](_0x1152b5)),_0x3a0952=[];for(const _0x14df2d of _0x36d61c)for(const _0x4a7388 of _0x14df2d['getItems']({'shallow':!0x0}))_0x3a0952['push'](_0x4a7388);for(const _0x4c7754 of _0x3a0952)'$graveyard'!=_0x4c7754['root']['rootName']&&(_0x2db445['setSelection'](_0x2db445['createPositionAt'](_0x4c7754,0x0)),_0x67e7f3['commands']['get']('removeTableColumn')['refresh'](),_0x67e7f3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x17726e=_0x4709b5['filter'](_0x501fcf=>'$graveyard'!=_0x501fcf['root']['rootName']);_0x17726e['length']>0x0&&_0x2db445['setSelection'](_0x17726e);for(const _0x10a661 of _0x4709b5)_0x10a661['detach']();});}function _0x493635(_0x29fd18,_0x4e36f9){return _0x4e36f9['every'](_0x3110d9=>_0x29fd18['some'](_0x13812c=>_0x13812c['end']['isEqual'](_0x3110d9['start'])||_0x3110d9['end']['isEqual'](_0x13812c['start'])));}function _0x2a39b5(_0x471bf1,_0x243863){return!_0x471bf1['some'](_0x44c449=>_0x243863['some'](_0x1f94ba=>_0x44c449['isIntersecting'](_0x1f94ba)))&&_0x471bf1['some'](_0x32888a=>_0x243863['some'](_0x15b3d3=>_0x32888a['end']['isTouching'](_0x15b3d3['start'])));}_0x67e7f3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5eaec3,_0x639126,_0x37ee29)=>{if(!_0x37ee29['options']['showSuggestionHighlights'])return;const _0x44f3e5=_0x639126['item'];if(!_0x44f3e5||!_0x44f3e5['is']('element','tableCell'))return;const _0x4b0a26=_0x37ee29['mapper']['toViewElement'](_0x44f3e5);if(_0x4b0a26){const {id:_0x1ff661,authorId:_0x47bfe4}=_0x377f90['_splitMarkerName'](_0x639126['markerName']);_0xfc4611(_0x4b0a26,_0x37ee29['writer'],(_0x53ca5f,_0xadaf59,_0x49d1b9)=>{_0x49d1b9['addClass'](_0x468678(_0xadaf59['classes']),_0x53ca5f),_0x49d1b9['setAttribute']('data-suggestion-id',_0x1ff661,_0x53ca5f),_0x49d1b9['setAttribute']('data-author-id',_0x47bfe4,_0x53ca5f);},(_0x5293a9,_0x5227bc,_0x522d07)=>{_0x522d07['removeClass'](_0x468678(_0x5227bc['classes']),_0x5293a9),_0x522d07['removeAttribute']('data-suggestion-id',_0x5293a9),_0x522d07['removeAttribute']('data-author-id',_0x5293a9);});}},{'priority':'highest'}),_0x377f90['descriptionFactory']['registerDescriptionCallback'](_0x48a485=>{if('insertion'!=_0x48a485['type']&&'deletion'!=_0x48a485['type'])return;const _0x4b6c6a=_0x48a485['getContainedElement']();if(null!=_0x4b6c6a&&_0x4b6c6a['is']('element','table')){if('insertion'==_0x48a485['type']){const _0x190858=_0x48a485['getItems']()['filter'](_0x25ff9f=>_0x25ff9f['is']('$textProxy'))['map'](_0xb08730=>_0xb08730['data']);if(_0x190858['length'])return{'type':'insertion','content':c(_0x2114d7,'*Insert:*\x20%0',c(_0x2114d7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x190858['join']('\x20')+'\x22'))};}if('deletion'==_0x48a485['type']){const _0x59ae5e=_0x48a485['getItems']()['filter'](_0x34f868=>_0x34f868['is']('$textProxy'))['map'](_0x319bbe=>_0x319bbe['data']);if(_0x59ae5e['length'])return{'type':'deletion','content':c(_0x2114d7,'*Remove:*\x20%0',c(_0x2114d7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x59ae5e['join']('\x20')+'\x22'))};}}}),_0x377f90['descriptionFactory']['registerDescriptionCallback'](_0x49a2a0=>{if('tableRow'==_0x49a2a0['subType']){const _0x49e4a4=_0x49a2a0['getItems']()['filter'](_0x54e8ec=>_0x54e8ec['is']('$textProxy'))['map'](_0x1bfbdd=>_0x1bfbdd['data']),_0x20dda4=this['_getSuggestionCoords'](_0x49a2a0),_0x2807b3=_0x20dda4['maxRow']-_0x20dda4['minRow']+0x1;if('insertion'==_0x49a2a0['type'])return _0x49e4a4['length']?{'type':'insertion','content':c(_0x2114d7,'*Insert:*\x20%0',c(_0x2114d7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2807b3,'\x22'+_0x49e4a4['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2114d7,'*Insert:*\x20%0',c(_0x2114d7,'ELEMENT_TABLE_ROW',_0x2807b3))};if('deletion'==_0x49a2a0['type'])return _0x49e4a4['length']?{'type':'deletion','content':c(_0x2114d7,'*Remove:*\x20%0',c(_0x2114d7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2807b3,'\x22'+_0x49e4a4['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2114d7,'*Remove:*\x20%0',c(_0x2114d7,'ELEMENT_TABLE_ROW',_0x2807b3))};}if('tableColumn'==_0x49a2a0['subType']){const _0x393c02=_0x49a2a0['getItems']()['filter'](_0x20980e=>_0x20980e['is']('$textProxy'))['map'](_0x26b56c=>_0x26b56c['data']),_0x31db18=this['_getSuggestionCoords'](_0x49a2a0),_0x1b1a56=_0x31db18['maxColumn']-_0x31db18['minColumn']+0x1;if('insertion'==_0x49a2a0['type'])return _0x393c02['length']?{'type':'insertion','content':c(_0x2114d7,'*Insert:*\x20%0',c(_0x2114d7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b1a56,'\x22'+_0x393c02['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2114d7,'*Insert:*\x20%0',c(_0x2114d7,'ELEMENT_TABLE_COLUMN',_0x1b1a56))};if('deletion'==_0x49a2a0['type'])return _0x393c02['length']?{'type':'deletion','content':c(_0x2114d7,'*Remove:*\x20%0',c(_0x2114d7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b1a56,'\x22'+_0x393c02['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2114d7,'*Remove:*\x20%0',c(_0x2114d7,'ELEMENT_TABLE_COLUMN',_0x1b1a56))};}}),_0x377f90['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4c6b6a),_0x377f90['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4c6b6a),_0x377f90['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x16ce13),_0x377f90['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x16ce13),_0x377f90['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x493635),_0x377f90['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x493635),_0x377f90['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2a39b5),_0x377f90['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2a39b5);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3ed144=this['editor'],_0x2465e7=_0x3ed144['model']['document']['selection'];return(_0x12b627,_0x3f46dd)=>{_0x3ed144['model']['change'](_0x5cc501=>{const {commandName:_0xdca631,commandParams:_0x15c2c3}=_0x3f46dd;let _0x2eb359=_0x12b627[0x0]['end']['nodeBefore'];_0x15c2c3&&_0x15c2c3[0x0]&&!0x1===_0x15c2c3[0x0]['forceValue']&&(_0x2eb359=_0x12b627[0x0]['start']['nodeAfter']);const _0x4ae450=_0x5cc501['createRangeIn'](_0x2eb359);if('$graveyard'==_0x4ae450['root']['rootName'])return;const _0x12f4f5=Array['from'](_0x2465e7['getRanges']())['map'](_0x3f649b=>_0x5d59ab['fromRange'](_0x3f649b));_0x5cc501['setSelection'](_0x4ae450),_0x3ed144['commands']['get'](_0xdca631)['refresh'](),_0x15c2c3['push']({'forceDefaultExecution':!0x0}),_0x3ed144['execute'](_0xdca631,..._0x15c2c3);const _0x3e5cf8=_0x12f4f5['filter'](_0x307c19=>'$graveyard'!=_0x307c19['root']['rootName']);_0x3e5cf8['length']>0x0&&_0x5cc501['setSelection'](_0x3e5cf8);for(const _0x152905 of _0x12f4f5)_0x152905['detach']();});};}['_getCoordsForCells'](_0x15240b){const _0x5dc707=this['editor']['plugins']['get']('TableUtils');let _0x1a12e3=Number['MAX_SAFE_INTEGER'],_0x55bc56=Number['MIN_SAFE_INTEGER'],_0x5a6614=Number['MAX_SAFE_INTEGER'],_0x299867=Number['MIN_SAFE_INTEGER'];for(const _0x377613 of _0x15240b){if('$graveyard'==_0x377613['root']['rootName'])continue;const {row:_0x4f36db,column:_0x4b95c9}=_0x5dc707['getCellLocation'](_0x377613),_0x302377=_0x377613['hasAttribute']('rowspan')?_0x377613['getAttribute']('rowspan')-0x1:0x0,_0x2c1d87=_0x377613['hasAttribute']('colspan')?_0x377613['getAttribute']('colspan')-0x1:0x0;_0x1a12e3=_0x4f36db<_0x1a12e3?_0x4f36db:_0x1a12e3,_0x55bc56=_0x4f36db+_0x302377>_0x55bc56?_0x4f36db+_0x302377:_0x55bc56,_0x5a6614=_0x4b95c9<_0x5a6614?_0x4b95c9:_0x5a6614,_0x299867=_0x4b95c9+_0x2c1d87>_0x299867?_0x4b95c9+_0x2c1d87:_0x299867;}return{'minRow':_0x1a12e3,'maxRow':_0x55bc56,'minColumn':_0x5a6614,'maxColumn':_0x299867};}['_setupColumnsRowsFixing'](){const _0x4c0e55=this['editor'],_0x17caf1=_0x4c0e55['plugins']['get']('TrackChangesEditing'),_0x122bdf=_0x4c0e55['plugins']['get']('TableUtils');_0x4c0e55['model']['document']['on']('change:data',()=>{const _0x5d6509=Array['from'](_0x4c0e55['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x243773,data:_0x42cf6e}of _0x5d6509){const {group:_0x5e81c5,id:_0x4b68c0,subType:_0x3cf7cb}=_0x17caf1['_splitMarkerName'](_0x243773);if('suggestion'!=_0x5e81c5)continue;if(null!=_0x42cf6e['oldRange'])continue;const _0x16a70b=_0x17caf1['getSuggestion'](_0x4b68c0);this['_tablePostFixingSubtypes']['includes'](_0x3cf7cb)&&this['_tableSuggestions']['add'](_0x16a70b);}},{'priority':'low'});const _0xcd6491=(_0x3ec7ab,_0x5c6889)=>{let _0x5733e0=!0x1;const _0x436f00=_0x5c6889['createRangeOn'](_0x3ec7ab),_0x57a28a=_0x3ec7ab['findAncestor']('table'),_0x331a56=_0x122bdf['getCellLocation'](_0x3ec7ab);for(const _0x3091db of this['_tableSuggestions']){const _0x4d97ae=_0x3091db['subType'],_0x53f9e4=_0x4d97ae['startsWith']('tablePaste'),_0x449658=_0x4d97ae['substr'](_0x53f9e4?0xa:0x5),_0x4c8997=_0x449658['toLowerCase'](),_0x1a6065=_0x4c8997['substr'](0x0,0x3)+'span',_0x2bb4ec='min'+_0x449658,_0x1316fa='max'+_0x449658;if(!_0x3091db['isInContent'])continue;if(_0x57a28a!=_0x3091db['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3091db['isIntersectingWithRange'](_0x436f00))continue;const _0x495d2c=_0x3ec7ab['hasAttribute'](_0x1a6065)?_0x3ec7ab['getAttribute'](_0x1a6065)-0x1:0x0,_0x2ac2f6=this['_getSuggestionCoords'](_0x3091db),_0x59d9dd=_0x2ac2f6[_0x2bb4ec],_0x3b473a=_0x2ac2f6[_0x1316fa];_0x59d9dd<=_0x331a56[_0x4c8997]&&_0x331a56[_0x4c8997]+_0x495d2c<=_0x3b473a&&(_0x3091db['addRange'](_0x436f00),_0x5733e0=!0x0);}return _0x5733e0;};_0x4c0e55['model']['document']['registerPostFixer'](_0x4af795=>{let _0x124e89=!0x1;for(const _0x20e66b of _0x4c0e55['model']['document']['differ']['getChanges']())if('insert'==_0x20e66b['type']){if('tableRow'==_0x20e66b['name']){for(const _0x1bc7fd of _0x20e66b['position']['nodeAfter']['getChildren']())_0x124e89=_0x124e89||_0xcd6491(_0x1bc7fd,_0x4af795);}else'tableCell'==_0x20e66b['name']&&(_0x124e89=_0x124e89||_0xcd6491(_0x20e66b['position']['nodeAfter'],_0x4af795));}return _0x124e89;});}['_getSuggestionCoords'](_0x1edeeb){return this['_getCoordsForCells'](_0x1edeeb['getRanges']()['map'](_0x2aa3e4=>_0x2aa3e4['start']['nodeAfter']));}}function xe(_0x39d135){return Array['from'](new Set(_0x39d135)['values']());}class Nt extends _0x3525e7{static get['requires'](){return[Ct];}['afterInit'](){const _0x16244d=this['editor'],_0x1b7492=_0x16244d['model']['document']['selection'],_0x5f5824=_0x16244d['locale'];if(!_0x16244d['plugins']['has']('TableEditing'))return;const _0x5f5725=_0x16244d['plugins']['get']('TrackChangesEditing'),_0x1ec146=_0x16244d['plugins']['get']('TableUtils'),_0x5940c4=_0x16244d['plugins']['get'](Ct);_0x5940c4['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5f5725['enableCommand']('mergeTableCells',()=>{const _0x135d93=_0x1ec146['getSelectionAffectedTableCells'](_0x16244d['model']['document']['selection']);_0x16244d['model']['change'](()=>{_0x5f5725['markMultiRangeBlockFormat'](_0x135d93,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x16244d['commands']['get']('mergeTableCells')['on']('execute',(_0x1c3319,_0x5b601a)=>{_0x16244d['commands']['get']('trackChanges')['value']&&(_0x5b601a['length']>0x0&&_0x5b601a[_0x5b601a['length']-0x1]&&_0x5b601a[_0x5b601a['length']-0x1]['forceDefaultExecution']||_0x5f5725['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1c3319['stop']());},{'priority':'highest'});for(const _0x3e4c29 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x10caf8=_0x16244d['commands']['get'](_0x3e4c29);_0x5f5725['enableCommand'](_0x3e4c29,()=>{const _0x3990cc=_0x16244d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x114e96=>_0x114e96['is']('element','tableCell')),_0x2391fa=_0x10caf8['value'];_0x16244d['model']['change'](()=>{_0x5f5725['markMultiRangeBlockFormat']([_0x3990cc,_0x2391fa],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x147757 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5a05e6=_0x16244d['commands']['get'](_0x147757);_0x5f5725['enableCommand'](_0x147757,()=>{const _0x44128c=_0x1ec146['getSelectionAffectedTableCells'](_0x16244d['model']['document']['selection'])[0x0],_0x5dd4cd=_0x44128c['findAncestor']('table'),{column:_0x58daef,row:_0xf19be7}=_0x1ec146['getCellLocation'](_0x44128c);let _0x5a5d31=[];if('horizontally'==_0x5a05e6['direction']){const _0x3b4071=_0x1ec146['createTableWalker'](_0x5dd4cd,{'startRow':_0xf19be7,'endRow':_0xf19be7,'includeAllSlots':!0x0});_0x5a5d31=Array['from'](_0x3b4071)['map'](_0x489407=>_0x489407['cell']);}else{const _0x53aa06=_0x1ec146['createTableWalker'](_0x5dd4cd,{'column':_0x58daef,'includeAllSlots':!0x0});_0x5a5d31=Array['from'](_0x53aa06)['map'](_0x56ddee=>_0x56ddee['cell']);}_0x16244d['model']['change'](_0x9ffc55=>{_0x5f5725['markBlockFormat'](_0x9ffc55['createRangeOn'](_0x44128c),{'commandName':_0x147757,'commandParams':[]},_0x5a5d31,_0x147757);});});}_0x5f5725['descriptionFactory']['registerDescriptionCallback'](_0xff604b=>{if('formatBlock'!=_0xff604b['type']&&'formatInline'!=_0xff604b['type'])return;const {data:_0x2b632f}=_0xff604b;return _0x2b632f&&'mergeTableCells'==_0x2b632f['commandName']?{'type':'format','content':c(_0x5f5824,'*Merge\x20cells*')}:void 0x0;}),_0x5f5725['descriptionFactory']['registerDescriptionCallback'](_0x12aa9c=>{if('formatBlock'!=_0x12aa9c['type']&&'formatInline'!=_0x12aa9c['type'])return;const {data:_0x47657a}=_0x12aa9c;return _0x47657a?'splitTableCellVertically'==_0x47657a['commandName']?{'type':'format','content':c(_0x5f5824,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x47657a['commandName']?{'type':'format','content':c(_0x5f5824,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x43b0e0=_0x5940c4['_acceptFormatSuggestionCallbackFactory']();for(const _0x266e05 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5f5725['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x266e05,'accept',_0x43b0e0);for(const _0x30ad32 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5f5725['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x30ad32,'accept',_0x43b0e0);_0x5f5725['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xecb595=>{_0x16244d['model']['change'](_0x25dc16=>{const _0x3f52af=Array['from'](_0x1b7492['getRanges']())['map'](_0x151295=>_0x5d59ab['fromRange'](_0x151295));_0x25dc16['setSelection'](_0xecb595),_0x16244d['commands']['get']('mergeTableCells')['refresh'](),_0x16244d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xd343cb=_0x3f52af['filter'](_0x1d673e=>'$graveyard'!=_0x1d673e['root']['rootName']);_0xd343cb['length']>0x0&&_0x25dc16['setSelection'](_0xd343cb);for(const _0x37773f of _0x3f52af)_0x37773f['detach']();});});for(const _0x5c8b85 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x125c74=_0x16244d['commands']['get'](_0x5c8b85);_0x125c74['on']('set:isEnabled',(_0x11beb8,_0x117e83,_0x4e6620)=>{if(_0x4e6620){const _0xac0d6=_0x16244d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x10ae41=>_0x10ae41['is']('element','tableCell'));this['_areMergableCells'](_0x125c74['value'],_0xac0d6)||(_0x11beb8['return']=!0x1,_0x11beb8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x23304=this['editor']['commands']['get']('mergeTableCells'),_0x9a3eb2=this['editor']['plugins']['get']('TableUtils');if(!_0x23304['isEnabled'])return!0x1;const _0x17dbe1=_0x9a3eb2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x16fa67 of _0x17dbe1)for(const _0x547476 of _0x17dbe1)if(_0x16fa67!=_0x547476&&!this['_areMergableCells'](_0x16fa67,_0x547476))return!0x1;return!0x0;}['_areMergableCells'](_0x2c32fe,_0x506a7c){const _0x5e28d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a1c0c=this['editor']['model']['createRangeOn'](_0x2c32fe),_0x3a3a15=this['editor']['model']['createRangeOn'](_0x506a7c),_0x241798=new Set(),_0x2c38fe=new Set();for(const _0x5beb59 of _0x5e28d6['getSuggestions']())if(('insertion'==_0x5beb59['type']||'deletion'==_0x5beb59['type']||'mergeTableCells'==_0x5beb59['subType'])&&_0x5beb59['isInContent']){for(const _0x415e34 of _0x5beb59['getRanges']())_0x415e34['containsRange'](_0x3a1c0c,!0x0)&&_0x241798['add'](_0x5beb59['type']+':'+_0x5beb59['author']['id']),_0x415e34['containsRange'](_0x3a3a15,!0x0)&&_0x2c38fe['add'](_0x5beb59['type']+':'+_0x5beb59['author']['id']);}if(_0x241798['size']!=_0x2c38fe['size'])return!0x1;for(const _0xbb627f of _0x241798)if(!_0x2c38fe['has'](_0xbb627f))return!0x1;return!0x0;}}class Dt extends _0x3525e7{static get['requires'](){return[Ct];}['afterInit'](){const _0x574232=this['editor'];if(!_0x574232['plugins']['has']('TableEditing'))return;const _0x470f2a=_0x574232['locale'],_0x167e05=_0x574232['plugins']['get']('TrackChangesEditing');_0x167e05['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x167e05['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x167e05['registerBlockAttribute']('headingRows'),_0x167e05['registerBlockAttribute']('headingColumns'),_0x167e05['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x470f2a,'FORMAT_HEADER_ROW')),_0x167e05['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x470f2a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x29bb6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ecbea=this['editor']['plugins']['get']('TableUtils'),_0x42250f=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5ee3af({showActiveMarker:_0x21a18a=!0x0,setDataAttribute:_0x5e4ffe=!0x0}={}){return(_0x2c6a93,_0x577f1f,_0x4dc39a)=>{const {type:_0x116127,id:_0x51cdde}=_0x29bb6b['_splitMarkerName'](_0x577f1f['markerName']),_0x381bc8=_0x29bb6b['getSuggestion'](_0x51cdde),_0x138bd5=_0x381bc8['data'];if('formatBlock'!=_0x381bc8['type']||!_0x138bd5||'setTableColumnHeader'!=_0x138bd5['commandName'])return;if(_0x577f1f['item'])return void _0x2c6a93['stop']();if(!_0x4dc39a['consumable']['consume'](_0x577f1f['markerRange'],_0x2c6a93['name']))return;const _0x46d380=_0x577f1f['markerRange']['start']['nodeAfter'],_0x5a850f=_0x577f1f['markerRange']['end']['nodeBefore'],_0x1eb429=_0x46d380['parent']['parent'],{column:_0x3caf5f}=_0x2ecbea['getCellLocation'](_0x46d380),{column:_0x302cae}=_0x2ecbea['getCellLocation'](_0x5a850f);for(let _0x17cca1=_0x3caf5f;_0x17cca1<=_0x302cae;_0x17cca1++){const _0xf86dc1=_0x2ecbea['createTableWalker'](_0x1eb429,{'column':_0x17cca1,'includeAllSlots':!0x1});for(const _0x4e9b67 of _0xf86dc1){const _0x2b4c56=_0x4e9b67['cell'],_0x11ebdb=_0x4dc39a['mapper']['toViewElement'](_0x2b4c56);_0x4dc39a['writer']['addClass']('ck-suggestion-marker-'+_0x116127,_0x11ebdb),_0x5e4ffe&&_0x4dc39a['writer']['setAttribute']('data-suggestion',_0x51cdde,_0x11ebdb),_0x4dc39a['mapper']['bindElementToMarker'](_0x11ebdb,_0x577f1f['markerName']),_0x21a18a&&(_0x29bb6b['activeMarkers']['includes'](_0x577f1f['markerName'])?_0x4dc39a['writer']['addClass']('ck-suggestion-marker--active',_0x11ebdb):_0x4dc39a['writer']['removeClass']('ck-suggestion-marker--active',_0x11ebdb));}}};}_0x29bb6b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x42250f),_0x29bb6b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x42250f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5ee3af(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x30ad67,_0x1adad7,_0x31e19a)=>{_0x31e19a['options']['showSuggestionHighlights']&&_0x5ee3af({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x30ad67,_0x1adad7,_0x31e19a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5a7d7d,_0x2e93d3,_0x4c51c2)=>{const {type:_0x3858e0,id:_0x49123f}=_0x29bb6b['_splitMarkerName'](_0x2e93d3['markerName']),_0x24ae3d=_0x29bb6b['getSuggestion'](_0x49123f),_0x4a6115=_0x24ae3d['data'];if('formatBlock'!=_0x24ae3d['type']||!_0x4a6115||'setTableColumnHeader'!=_0x4a6115['commandName'])return;const _0x44827e=_0x4c51c2['mapper']['markerNameToElements'](_0x2e93d3['markerName']);if(_0x44827e){for(const _0x568d54 of _0x44827e)_0x4c51c2['writer']['removeClass']('ck-suggestion-marker-'+_0x3858e0,_0x568d54),_0x4c51c2['writer']['removeClass']('ck-suggestion-marker--active',_0x568d54),_0x4c51c2['writer']['removeAttribute']('data-suggestion',_0x568d54),_0x4c51c2['mapper']['unbindElementFromMarkerName'](_0x568d54,_0x2e93d3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3050d0=this['editor'],_0x2fa23c=_0x3050d0['locale'];function _0x28a84a(_0x5e42c2){return{'type':'format','content':c(_0x2fa23c,'*Format:*\x20%0',_0x5e42c2)};}_0x3050d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ac21c=>{if('formatBlock'!=_0x4ac21c['type'])return;const {data:_0x182cdb}=_0x4ac21c;if(_0x182cdb){if('setTableRowHeader'==_0x182cdb['commandName']){const _0x3b0b76=_0x182cdb['commandParams'][0x0]['forceValue'];return _0x28a84a(c(_0x2fa23c,_0x3b0b76?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x182cdb['commandName']){const _0x4554c4=_0x182cdb['commandParams'][0x0]['forceValue'];return _0x28a84a(c(_0x2fa23c,_0x4554c4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x3525e7{['afterInit'](){const _0x3299be=this['editor'],_0x2a8d54=_0x3299be['locale'],_0x22acf3=_0x3299be['plugins']['get']('TrackChangesEditing');function _0x27a79e(_0x37d68b){return{'type':'format','content':''+c(_0x2a8d54,'*Set\x20table\x20type:*\x20%0',_0x37d68b)};}_0x3299be['plugins']['has']('TableLayout')&&(_0x22acf3['enableCommand']('insertTableLayout'),_0x22acf3['enableDefaultAttributesIntegration']('tableType'),_0x22acf3['registerBlockAttribute']('tableType'),_0x22acf3['descriptionFactory']['registerElementLabel'](_0x1e746b=>_0x1e746b['is']('element','table')&&'layout'===_0x1e746b['getAttribute']('tableType'),_0x49a13b=>c(_0x2a8d54,'ELEMENT_LAYOUT_TABLE',_0x49a13b)),_0x22acf3['descriptionFactory']['registerDescriptionCallback'](_0x387822=>{const {data:_0x28355e}=_0x387822;if(_0x28355e&&'tableType'==_0x28355e['key'])switch(_0x28355e['newValue']){case'layout':return _0x27a79e(c(_0x2a8d54,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x27a79e(c(_0x2a8d54,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x331d85=>[_0x331d85,null]));class $t extends _0x3525e7{static get['requires'](){return[Ct];}['afterInit'](){const _0x2f3db3=this['editor'];if(!_0x2f3db3['plugins']['has']('TableClipboard'))return;const _0x2a8841=_0x2f3db3['plugins']['get']('TrackChangesEditing'),_0x3dbc51=_0x2f3db3['plugins']['get']('TableUtils'),_0x4048a=_0x2f3db3['plugins']['get'](Ct),_0x1b0248=_0x2f3db3['plugins']['get']('TableClipboard'),_0x43a5be=_0x2f3db3['plugins']['get']('TableSelection'),_0x405937=_0x2f3db3['plugins']['get'](_0x4e8bdd);_0x4048a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2f3db3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2f3db3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4cc03a=null,_0x59e35c=!0x1;_0x405937['on']('contentInsertion',(_0x78eb93,_0x3e2513)=>{_0x59e35c='paste'===_0x3e2513['method'];}),_0x2f3db3['model']['on']('insertContent',(_0x376311,_0x22e873)=>{if(!_0x59e35c&&null===_0x43a5be['getSelectedTableCells']())return;const [_0x41eefe,_0x5860c1]=_0x22e873,_0x391468=_0x22e873[_0x22e873['length']-0x1];_0x391468&&_0x391468['forceDefaultExecution']||_0x2a8841['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x7a8d8e,_0x236466,_0x23f93d,_0x2517dc,_0x5b86f4){if(_0x236466&&!_0x236466['is']('documentSelection'))return!0x1;const _0x349052=_0x5b86f4['getTableIfOnlyTableInContent'](_0x7a8d8e,_0x23f93d);if(!_0x349052||!He(_0x349052,void 0x0,_0x2517dc))return!0x1;const _0x12a79d=_0x2517dc['getSelectionAffectedTableCells'](_0x23f93d['document']['selection']);if(!_0x12a79d['length'])return!0x1;const _0x12c670=_0x12a79d[0x0]['findAncestor']('table'),_0x146114=_0x2517dc['getRowIndexes'](_0x12a79d),_0x5470f0=_0x2517dc['getColumnIndexes'](_0x12a79d),_0x4e46d5={'startRow':_0x146114['first'],'endRow':_0x146114['last'],'startColumn':_0x5470f0['first'],'endColumn':_0x5470f0['last']};return 0x1==_0x12a79d['length']&&(_0x4e46d5['endRow']+=_0x2517dc['getRows'](_0x349052)-0x1,_0x4e46d5['endColumn']+=_0x2517dc['getColumns'](_0x349052)-0x1),He(_0x12c670,_0x4e46d5,_0x2517dc);}(_0x41eefe,_0x5860c1,_0x2f3db3['model'],_0x3dbc51,_0x1b0248)&&(_0x376311['stop'](),_0x4cc03a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2f3db3['model']['change'](()=>{_0x2f3db3['model']['insertContent'](_0x22e873[0x0],_0x22e873[0x1],_0x22e873[0x2],{'forceDefaultExecution':!0x0});const _0x4dc236=_0x38b19c(),{rowInsertionRanges:_0x1444f8,columnInsertionRanges:_0x51d2b5,insertionRanges:_0x5c2643,deletionRanges:_0x786a87,cells:_0x1e08c7}=_0x4cc03a;_0x1444f8['length']&&_0x2a8841['markMultiRangeInsertion'](_0x1444f8,'tablePasteRow',{'tablePasteChainId':_0x4dc236}),_0x51d2b5['length']&&_0x2a8841['markMultiRangeInsertion'](_0x51d2b5,'tablePasteColumn',{'tablePasteChainId':_0x4dc236}),_0x5c2643['length']&&(_0x2a8841['markMultiRangeInsertion'](_0x5c2643,'tablePaste',{'tablePasteChainId':_0x4dc236,'skipNestingCheck':!0x0}),_0x5c2643['forEach'](_0x19a3ab=>_0x19a3ab['detach']?.())),_0x786a87['length']&&(_0x2a8841['markMultiRangeDeletion'](_0x786a87,'tablePaste',{'tablePasteChainId':_0x4dc236,'skipNestingCheck':!0x0}),_0x786a87['forEach'](_0x16b9be=>_0x16b9be['detach']?.()));const _0x165b19=_0x2a8841['markMultiRangeBlockFormat'](_0x1e08c7['map'](({element:_0x47d86f})=>_0x47d86f),{'formatGroupId':_0x38b19c()},[],'tablePasteCell',{'tablePasteChainId':_0x4dc236});if(_0x165b19){const _0x491c31=_0x165b19['getMarkers'](),_0x214e54=[];for(const {element:_0x1e0477,attributes:_0x54c2d7}of _0x1e08c7){if(!_0x54c2d7)continue;const _0x362d32=_0x2f3db3['model']['createRangeOn'](_0x1e0477),_0x3424ed=_0x491c31['find'](_0x114948=>_0x114948['getRange']()['isEqual'](_0x362d32));_0x3424ed&&_0x214e54['push']([_0x3424ed['name'],_0x54c2d7]);}_0x214e54['length']&&_0x165b19['setAttribute']('markerAttributes',Object['fromEntries'](_0x214e54));}_0x4cc03a=null;}));},{'priority':_0x4c334b['high']+0xa}),_0x405937['on']('contentInsertion',()=>{_0x59e35c=!0x1;},{'priority':'lowest'}),_0x2f3db3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x49a294,_0x468a6c)=>{const [_0xc50f2b,_0x5adca7,,_0x17e1ae]=_0x468a6c;if(!_0x4cc03a)return;_0x49a294['stop']();const _0x805057=_0xc50f2b['cell'],_0x24e6b5=_0x5adca7,_0x49222a=De(_0x805057),_0x2da7bc=De(_0x24e6b5);_0x49a294['return']=_0x805057;let _0x4fc500=null,_0x29c31f=null;if(_0x2da7bc||_0x49222a){if(_0x49222a&&!_0x2da7bc){_0x17e1ae['remove'](_0x805057['getChild'](0x0));for(const _0x2f5db8 of Array['from'](_0x24e6b5['getChildren']()))_0x17e1ae['insert'](_0x2f5db8,_0x805057,'end');const _0x516a2b=_0x4cc03a['rowInsertionIndexes']['includes'](_0xc50f2b['row']),_0x1f8362=_0x4cc03a['columnInsertionIndexes']['includes'](_0xc50f2b['column']);_0x516a2b||_0x1f8362||(_0x4fc500=_0x5d59ab['fromRange'](_0x17e1ae['createRangeIn'](_0x805057)));}else _0x2da7bc&&!_0x49222a&&(_0x29c31f=_0x17e1ae['createRangeIn'](_0x805057));}else{const _0x5ee298=_0x17e1ae['createElement']('tableCellSuggestion'),_0x46c185=_0x17e1ae['createElement']('tableCellSuggestion');_0x17e1ae['wrap'](_0x17e1ae['createRangeIn'](_0x805057),_0x46c185),_0x17e1ae['insert'](_0x5ee298,_0x805057,0x0);for(const _0x500b61 of Array['from'](_0x24e6b5['getChildren']()))_0x17e1ae['insert'](_0x500b61,_0x5ee298,'end');_0x4fc500=_0x5d59ab['fromRange'](_0x17e1ae['createRangeOn'](_0x5ee298)),_0x29c31f=_0x5d59ab['fromRange'](_0x17e1ae['createRangeOn'](_0x46c185));}const _0x597e8d=Array['from'](_0x24e6b5['getAttributes']())['filter'](([_0xf9d610])=>Oe['includes'](_0xf9d610));_0x4cc03a['cells']['push']({'element':_0x805057,'attributes':_0x597e8d['length']?Object['fromEntries'](_0x597e8d):null}),_0x4fc500&&_0x4cc03a['insertionRanges']['push'](_0x4fc500),_0x29c31f&&_0x4cc03a['deletionRanges']['push'](_0x29c31f);},{'priority':'high'}),_0x3dbc51['on']('insertColumns',(_0x143e0b,_0x530275)=>{const [_0x765c48,_0x14ccc8={}]=_0x530275;if(!_0x4cc03a)return;const _0x709bc2=_0x14ccc8['at']||0x0,_0x36aa75=_0x14ccc8['columns']||0x1;_0x4cc03a['columnInsertionIndexes']=new Array(_0x36aa75)['fill'](_0x709bc2)['map']((_0x59c3d7,_0x2d2947)=>_0x59c3d7+_0x2d2947);for(const {cell:_0xe22924}of _0x3dbc51['createTableWalker'](_0x765c48,{'startColumn':_0x709bc2,'endColumn':_0x709bc2+_0x36aa75-0x1}))_0x4cc03a['columnInsertionRanges']['push'](_0x2f3db3['model']['createRangeOn'](_0xe22924));},{'priority':'low'}),_0x3dbc51['on']('insertRows',(_0x4ba8e2,_0x40ef5c)=>{const [_0x22282a,_0x47db84={}]=_0x40ef5c;if(!_0x4cc03a)return;const _0x3f047a=_0x47db84['at']||0x0,_0x53e2af=_0x47db84['rows']||0x1;_0x4cc03a['rowInsertionIndexes']=new Array(_0x53e2af)['fill'](_0x3f047a)['map']((_0x2bd876,_0x5b202f)=>_0x2bd876+_0x5b202f);for(const {cell:_0x157f5d}of _0x3dbc51['createTableWalker'](_0x22282a,{'startRow':_0x3f047a,'endRow':_0x3f047a+_0x53e2af-0x1}))_0x4cc03a['rowInsertionRanges']['push'](_0x2f3db3['model']['createRangeOn'](_0x157f5d));},{'priority':'low'}),_0x2a8841['descriptionFactory']['registerDescriptionCallback'](_0x511dfc=>{if(_0x511dfc['subType']&&_0x511dfc['subType']['startsWith']('tablePaste'))return _0x511dfc['previous']?{}:{'type':'insertion','content':c(_0x2f3db3['locale'],'*Replace\x20table\x20cells*')};});const _0x3cc4c3=()=>!0x1;for(const _0x52dc08 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2a8841['_suggestionFactory']['registerCustomCallback']('insertion',_0x52dc08,'join',_0x3cc4c3),_0x2a8841['_suggestionFactory']['registerCustomCallback']('deletion',_0x52dc08,'join',_0x3cc4c3),_0x2a8841['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x52dc08,'join',_0x3cc4c3);_0x2a8841['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3cc4c3),_0x2a8841['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3d6bb4,_0x8243dc,_0x344949)=>{const _0x17ea0f=_0x3d6bb4['map'](_0x33f4ea=>_0x33f4ea['getContainedElement']())['filter'](_0x5604a1=>_0x5604a1),_0x4c2399=new Map(_0x17ea0f['map'](_0x42d56e=>[_0x42d56e,null]));if(_0x4cc03a){for(const {element:_0x29f37d,attributes:_0x6a658f}of _0x4cc03a['cells'])_0x6a658f&&_0x4c2399['set'](_0x29f37d,_0x6a658f);}else{if(_0x344949&&_0x344949['markerAttributes'])for(const [_0x132c12,_0x1623a7]of Object['entries'](_0x344949['markerAttributes'])){const _0xfd57ea=_0x2f3db3['model']['markers']['get'](_0x132c12),_0x112915=_0xfd57ea?_0xfd57ea['getRange']()['getContainedElement']():null;_0x112915&&_0x4c2399['set'](_0x112915,_0x1623a7);}}_0x2f3db3['model']['change'](_0x37e94e=>{for(const [_0x4de897,_0x3a1cf3]of _0x4c2399)_0x37e94e['setAttributes']({...Ue,..._0x3a1cf3},_0x4de897);});});const _0x33275e=(_0x862b75,_0x20f29d)=>{_0x2a8841['_suggestionFactory']['registerCustomCallback'](_0x862b75,'tablePaste',_0x20f29d,(_0x1a3f3b,_0x45edc9,_0xb94fa7)=>{_0x2f3db3['model']['change'](_0x5a3bb1=>{const _0xf30d87=[];for(const _0x382730 of _0x1a3f3b){const _0x315fc7=_0x382730['start']['nodeAfter'];_0x315fc7['is']('element','tableCellSuggestion')&&_0xf30d87['push'](_0x315fc7);}_0x2a8841['_suggestionFactory']['getSuggestionCallback'](_0x862b75,null,_0x20f29d)(_0x1a3f3b,_0x45edc9,_0xb94fa7);for(const _0x4af3ea of _0xf30d87)'$graveyard'!=_0x4af3ea['root']['rootName']&&_0x5a3bb1['unwrap'](_0x4af3ea);});});};_0x33275e('insertion','accept'),_0x33275e('insertion','discard'),_0x33275e('deletion','accept'),_0x33275e('deletion','discard'),_0x2a8841['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x242611=>{const _0x4495ed=_0x242611['map'](_0x29c256=>_0x29c256['getContainedElement']()),_0x3e1971=_0x4495ed[0x0]['findAncestor']('table'),{minRow:_0x155277,maxRow:_0x94d0ff}=_0x4048a['_getCoordsForCells'](_0x4495ed);_0x3dbc51['removeRows'](_0x3e1971,{'at':_0x155277,'rows':_0x94d0ff-_0x155277+0x1});}),_0x2a8841['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3fa8ae=>{const _0x5ba282=_0x3fa8ae['map'](_0x17c340=>_0x17c340['getContainedElement']()),_0x3d81cd=_0x5ba282[0x0]['findAncestor']('table'),{minColumn:_0x13c7f4,maxColumn:_0x358340}=_0x4048a['_getCoordsForCells'](_0x5ba282);_0x3dbc51['removeColumns'](_0x3d81cd,{'at':_0x13c7f4,'columns':_0x358340-_0x13c7f4+0x1});});const _0x320262=(_0x41a354,_0x3ff8c5)=>{if(!_0x3ff8c5['subType']||!_0x3ff8c5['subType']['startsWith']('tablePaste'))return;const _0x140af5=_0x3ff8c5['attributes']['tablePasteChainId'],_0x5830cd=_0x2a8841['getSuggestions']()['filter'](_0x1bd60e=>_0x1bd60e['isInContent']&&_0x1bd60e['attributes']&&_0x1bd60e['attributes']['tablePasteChainId']==_0x140af5);_0x5830cd['length']&&_0x3ff8c5['getAllAdjacentSuggestions']()['length']!=_0x5830cd['length']&&_0x5830cd['reduce']((_0x44f2ad,_0x518571)=>(_0x44f2ad['next']=_0x518571,_0x518571['previous']=_0x44f2ad,_0x518571));};function _0x2266d0(_0x5d4ae7,_0x258ea3=!0x0){const {id:_0x1054cc,authorId:_0x395157}=_0x2a8841['_splitMarkerName'](_0x5d4ae7['markerName']),_0x4830dd=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3ec1c7=_0x2a8841['activeMarkers']['includes'](_0x5d4ae7['markerName']);return _0x3ec1c7&&_0x4830dd['push']('ck-suggestion-marker--active'),{'classes':_0x4830dd,'attributes':{'data-suggestion':_0x1054cc,'data-author-id':_0x395157},'priority':_0x3ec1c7&&_0x258ea3?0xbc2:0xbb8};}_0x2a8841['on']('suggestionLoaded',_0x320262,{'priority':'high'}),_0x2a8841['on']('suggestionUnloaded',_0x320262,{'priority':'high'}),_0x2f3db3['model']['document']['registerPostFixer'](()=>{let _0x4a05ef=!0x1;const _0xdb9f24=Array['from'](_0x2f3db3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x57ee36,data:_0x4adef7}of _0xdb9f24){const {group:_0x1068ed,type:_0x5d4d86,id:_0x3ae769}=_0x2a8841['_splitMarkerName'](_0x57ee36);if('suggestion'!=_0x1068ed||'deletion'!=_0x5d4d86||_0x4adef7['oldRange'])continue;if(!_0x2a8841['hasSuggestion'](_0x3ae769))continue;const _0x1b9db9=_0x2a8841['getSuggestion'](_0x3ae769)['getRanges'](),_0x2f4cc0=_0x2f3db3['plugins']['get']('Users')['me'];for(const _0x26cd18 of _0x2a8841['getSuggestions']()){if(!_0x26cd18['isInContent']||_0x26cd18['author']!=_0x2f4cc0)continue;if('formatBlock'!=_0x26cd18['type']||'tablePasteCell'!=_0x26cd18['subType'])continue;if(_0x26cd18['getRanges']()['every'](_0x2150ea=>_0x1b9db9['some'](_0x3eea0b=>_0x3eea0b['containsRange'](_0x2150ea,!0x0)))){for(const _0x1e08d7 of _0x26cd18['getAllAdjacentSuggestions']())_0x1e08d7['isInContent']&&(_0x1e08d7['discard'](),_0x4a05ef=!0x0);}}}return _0x4a05ef;}),_0x2f3db3['model']['document']['registerPostFixer'](_0x2e0273=>{const _0x1e9723=_0x2f3db3['commands']['get']('redo');if(!_0x1e9723||!_0x1e9723['_createdBatches']['has'](_0x2e0273['batch']))return!0x1;let _0x4a7d94=!0x1;const _0x447df3=_0x2f3db3['plugins']['get']('Users')['me'],_0x5b5319=_0x2f3db3['model']['document']['differ']['getChanges'](),_0x237875=Array['from'](_0x2f3db3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x24e982,data:_0xf43ca7})=>{const {group:_0x3deb9d,subType:_0x324d23,authorId:_0x575cea}=_0x2a8841['_splitMarkerName'](_0x24e982);return'suggestion'==_0x3deb9d&&'tablePaste'==_0x324d23&&_0x575cea==_0x447df3['id']&&!_0xf43ca7['oldRange'];});for(const _0x1cd3ea of _0x5b5319){if('insert'!=_0x1cd3ea['type']||'tableCellSuggestion'!=_0x1cd3ea['name']||0x1!=_0x1cd3ea['length'])continue;const _0x3f3483=_0x2e0273['createRange'](_0x1cd3ea['position'],_0x1cd3ea['position']['getShiftedBy'](0x1));if(!_0x237875['find'](({data:_0x35f296})=>_0x35f296['newRange']['isEqual'](_0x3f3483))){for(const {name:_0x2bcd77,data:_0x5f149c}of _0x237875)if(_0x3f3483['containsRange'](_0x5f149c['newRange'])){_0x2e0273['updateMarker'](_0x2bcd77,{'range':_0x3f3483}),_0x4a7d94=!0x0;break;}}}return _0x4a7d94;}),_0x2f3db3['model']['document']['registerPostFixer'](_0x52bbdc=>{let _0x37b28e=!0x1;const _0x2a3b01=_0x2f3db3['plugins']['get']('Users')['me'],_0x33debc=_0x2a8841['getSuggestions']()['filter'](_0x4c0403=>_0x4c0403['isInContent']&&_0x4c0403['author']==_0x2a3b01),_0x34a203=new Set(),_0xb3c529=new Set();for(const _0x87c7a2 of _0x33debc)if('tablePaste'==_0x87c7a2['subType'])for(const _0x1c81b2 of _0x87c7a2['getMarkers']()){const _0x18b3f4=_0x1c81b2['getRange']()['getContainedElement']();if(_0x18b3f4){if(_0x18b3f4['is']('element','tableCellSuggestion')&&De(_0x18b3f4)){_0x87c7a2['removeMarker'](_0x1c81b2['name']),_0x34a203['add'](_0x18b3f4),_0x37b28e=!0x0;const _0x168ed5=_0x18b3f4['nextSibling'],_0x316263=_0x18b3f4['previousSibling'],_0x33fd8a=_0x168ed5&&_0x168ed5['is']('element','tableCellSuggestion'),_0x299f46=_0x316263&&_0x316263['is']('element','tableCellSuggestion');_0x33fd8a&&!_0x34a203['has'](_0x168ed5)&&_0xb3c529['add'](_0x168ed5),_0x299f46&&!_0x34a203['has'](_0x316263)&&_0xb3c529['add'](_0x316263);}else _0x18b3f4['is']('element','paragraph')&&_0x18b3f4['isEmpty']&&(_0x87c7a2['removeMarker'](_0x1c81b2['name']),_0x37b28e=!0x0);}}else{if('tablePasteCell'==_0x87c7a2['subType']){if(!_0x87c7a2['attributes']||!_0x87c7a2['attributes']['tablePasteChainId'])continue;const _0x4cca62=_0x87c7a2['attributes']['markerAttributes'];if(_0x4cca62&&Object['keys'](_0x4cca62)['length'])continue;const _0x2f2863=_0x87c7a2['attributes']['tablePasteChainId'];let _0x33c846=!0x0,_0x3a6feb=!0x0;for(const _0x5729ed of _0x33debc)if(_0x5729ed['subType']&&_0x5729ed['subType']['startsWith']('tablePaste')){if(!_0x5729ed['attributes']['tablePasteChainId']){_0x3a6feb=!0x1;break;}if(_0x5729ed['id']!=_0x87c7a2['id']&&_0x5729ed['attributes']['tablePasteChainId']==_0x2f2863){_0x33c846=!0x1;break;}}_0x3a6feb&&_0x33c846&&(_0x87c7a2['removeMarkers'](),_0x37b28e=!0x0);}}for(const _0x47f55a of _0x34a203)_0x52bbdc['remove'](_0x47f55a);for(const _0x39f24e of _0xb3c529)_0x52bbdc['unwrap'](_0x39f24e);return _0x37b28e;}),_0x2f3db3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5bac68=>_0x2266d0(_0x5bac68),'converterPriority':'high'}),_0x2f3db3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x526af8,_0x5b652f)=>_0x5b652f['options']['showSuggestionHighlights']?_0x2266d0(_0x526af8,!0x1):null,'converterPriority':'high'});const _0x1427dc=_0x2f3db3['editing']['view'];this['listenTo'](_0x1427dc['document'],'clipboardOutput',(_0x4d7560,_0x30b9c8)=>{const _0xb2bdc7=[];for(const _0x2eb766 of _0x1427dc['createRangeIn'](_0x30b9c8['content'])['getItems']())_0x2eb766['is']('element','suggestion-td')&&_0xb2bdc7['push'](_0x2eb766);_0x1427dc['change'](_0x139364=>{for(const _0x1b70ee of _0xb2bdc7)_0x139364['move'](_0x139364['createRangeIn'](_0x1b70ee),_0x139364['createPositionBefore'](_0x1b70ee)),_0x139364['remove'](_0x1b70ee);});});}}function De(_0x5925bb){if(_0x5925bb['isEmpty'])return!0x0;const _0x48e01c=_0x5925bb['getChild'](0x0);return _0x48e01c['is']('element','paragraph')&&_0x48e01c['isEmpty'];}function He(_0x5c1c09,_0x338cff={},_0x161458){for(const {isAnchor:_0x55cf0f,cellHeight:_0x2f3a72,cellWidth:_0x48b1d1}of _0x161458['createTableWalker'](_0x5c1c09,{'includeAllSlots':!0x0,..._0x338cff}))if(!_0x55cf0f||0x1!=_0x2f3a72||0x1!=_0x48b1d1)return!0x1;return!0x0;}class Bt extends _0x3525e7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x20bf98=this['editor']['plugins']['get']('TrackChangesEditing');_0x20bf98['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x20bf98['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x20bf98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x20bf98['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x20bf98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x20bf98['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x496250,_0x43ccac){const _0x489773=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21634f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5afa7f=_0x43ccac['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4fda2b=_0x21634f['getColumnGroupElement'](_0x5afa7f);let _0x44ef80=_0x4fda2b?_0x21634f['getTableColumnsWidths'](_0x4fda2b):null,_0x3c22de=_0x5afa7f['getAttribute']('tableWidth')||null;const _0x1782f9=_0x43ccac['tableWidth']||_0x3c22de,_0x8db6c6=_0x43ccac['columnWidths']||_0x44ef80,_0x27f27b=this['editor']['plugins']['get']('Users')['me'];for(const _0x13b0f4 of _0x489773['getSuggestions']()){const _0x5a384c=_0x13b0f4['getContainedElement']();if('resizeTable'===_0x13b0f4['subType']&&_0x5a384c===_0x5afa7f){_0x13b0f4['author']!==_0x27f27b&&_0x13b0f4['discard']();const _0x43ab88=_0x13b0f4['data']['commandParams'];_0x3c22de=_0x43ab88[0x0]['tableWidth'],_0x44ef80=_0x43ab88[0x0]['columnWidths'];break;}}_0x496250({'table':_0x5afa7f,'tableWidth':_0x1782f9,'columnWidths':_0x8db6c6}),_0x489773['markBlockFormat'](_0x5afa7f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3c22de,'columnWidths':_0x44ef80}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4e47d5){if('formatBlock'!=_0x4e47d5['type']&&'formatInline'!=_0x4e47d5['type'])return;const {data:_0x279651}=_0x4e47d5;if(_0x279651&&'resizeTable'===_0x279651['formatGroupId']){const _0xe65393='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0xe65393)};}}}class xt extends _0x3525e7{['afterInit'](){const _0x342ac5=this['editor'];_0x342ac5['plugins']['has']('Template')&&_0x342ac5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3525e7{['afterInit'](){const _0x50eb31=this['editor'];if(!_0x50eb31['commands']['get']('insertTableOfContents'))return;_0x50eb31['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x6ea8ec=_0x50eb31['plugins']['get']('TrackChangesEditing'),_0x16eb4c=_0x50eb31['locale'];_0x6ea8ec['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4e7f78=>c(_0x16eb4c,'ELEMENT_TABLE_OF_CONTENTS',_0x4e7f78));}}class Rt extends _0x3525e7{['afterInit'](){const _0x3882ef=this['editor'];if(!_0x3882ef['plugins']['has']('Title'))return;const _0xcef1fe=_0x3882ef['plugins']['get']('TrackChangesEditing');_0xcef1fe['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x3882ef['locale'],'ELEMENT_TITLE')),_0x3882ef['model']['document']['registerPostFixer'](_0x18c2a3=>{let _0x28afa5=!0x1;const _0x580911=Array['from'](_0x3882ef['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14394a,data:_0x54cd75}of _0x580911){const {group:_0x4401}=_0xcef1fe['_splitMarkerName'](_0x14394a);if('suggestion'!==_0x4401||!_0x54cd75['newRange'])continue;const _0x5ccf39=_0x54cd75['newRange'],_0x5c787f=_0x5ccf39['end']['nodeBefore'];if(!_0x5c787f||!_0x5c787f['is']('element','title-content'))continue;if(!_0x5ccf39['start']['isTouching'](_0x5ccf39['end']))continue;const _0x3af7d3=_0x3882ef['model']['schema']['getNearestSelectionRange'](_0x5ccf39['end'],'forward');if(_0x3af7d3&&_0x3af7d3['isCollapsed']){const _0x3caa14=_0x18c2a3['createRange'](_0x5ccf39['start'],_0x3af7d3['start']);_0x3caa14['isEqual'](_0x5ccf39)||(_0x18c2a3['updateMarker'](_0x14394a,{'range':_0x3caa14}),_0x28afa5=!0x0);}_0x28afa5||(_0x18c2a3['removeMarker'](_0x14394a),_0x28afa5=!0x0);}return _0x28afa5;});}}class Tt extends _0x3525e7{['afterInit'](){const _0x376486=this['editor'],_0x3064c3=_0x376486['plugins']['get']('TrackChangesEditing');_0x376486['plugins']['has']('Uploadcare')&&(_0x3064c3['enableCommand']('uploadcare'),_0x376486['plugins']['has']('UploadcareImageEdit')&&(_0x3064c3['enableCommand']('uploadcareImageEdit'),_0x3064c3['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3064c3['registerBlockAttribute']('uploadcareImageId'),_0x3064c3['descriptionFactory']['registerDescriptionCallback'](_0x3460ae=>{if('attribute'!=_0x3460ae['type'])return;const {data:_0x13bb19}=_0x3460ae;return _0x13bb19&&'uploadcareImageId'==_0x13bb19['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x3525e7{['afterInit'](){const _0x39650e=this['editor'],_0x208183=_0x39650e['plugins']['get']('TrackChangesEditing');_0x39650e['plugins']['has']('UndoEditing')&&(_0x208183['enableCommand']('undo'),_0x208183['enableCommand']('redo'));}}class Ut extends _0x3525e7{static get['requires'](){return[Ct];}['afterInit'](){const _0x485ba2=this['editor'];if(!_0x485ba2['plugins']['has']('TableCaptionEditing'))return;_0x485ba2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x3525e7{['tableProperties'];['tableCellProperties'];constructor(_0x71fdff){super(_0x71fdff),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 _0x2a8c4d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x36d553 of this['tableProperties'])_0x2a8c4d['enableCommand'](_0x36d553,(_0xde9351,_0x103ae4)=>{const _0x1acaec=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x36d553,[_0x1acaec],this['tableProperties'],'tableProperties',_0xde9351,_0x103ae4);});_0x2a8c4d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2a8c4d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a8c4d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2703d7,_0x2f24b2)=>this['handleDiscardAction'](this['tableProperties'],_0x2703d7,_0x2f24b2)),_0x2a8c4d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x45b69f of this['tableCellProperties'])_0x2a8c4d['enableCommand'](_0x45b69f,(_0x4eb708,_0x99dbcf)=>{const _0x142ccc=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x45b69f,_0x142ccc,this['tableCellProperties'],'tableCellProperties',_0x4eb708,_0x99dbcf);});_0x2a8c4d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2a8c4d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a8c4d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x331c19,_0x324097)=>this['handleDiscardAction'](this['tableCellProperties'],_0x331c19,_0x324097)),_0x2a8c4d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2a8c4d['descriptionFactory']['registerDescriptionCallback'](_0x1f532e=>this['handleSuggestionDescription'](_0x1f532e));}['_handlePropertyChange'](_0x3f5a68,_0x4923f7,_0x381eda,_0x42b9fc,_0x2db3bb,_0x5b0cdc){const _0x4a9824=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5b0cdc['batch'],()=>{for(const _0x3f2a65 of _0x4923f7){if(this['_getSuggestion'](_0x3f2a65,_0x42b9fc))_0x2db3bb(_0x5b0cdc);else{const _0x2ad147={};for(const _0xfc390d of _0x381eda){const _0x55e93f=_0x3f2a65['getAttribute'](_0xfc390d);void 0x0!==_0x55e93f&&(_0x2ad147[_0xfc390d]=_0x55e93f);}_0x2db3bb(_0x5b0cdc),_0x4a9824['markBlockFormat'](_0x3f2a65,{'commandParams':[_0x2ad147]},[],_0x42b9fc);}}});}['handleDiscardAction'](_0x23b367,_0x358c7c,_0x1b3fe8){const _0x1ad620=_0x358c7c[0x0]['start']['nodeAfter'],_0x158d6b=_0x1b3fe8['commandParams'][0x0];this['editor']['model']['change'](_0x49bc01=>{for(const _0xa5baf2 of _0x23b367)void 0x0!==_0x158d6b[_0xa5baf2]?_0x49bc01['setAttribute'](_0xa5baf2,_0x158d6b[_0xa5baf2],_0x1ad620):_0x49bc01['removeAttribute'](_0xa5baf2,_0x1ad620);});}['handleSuggestionDescription'](_0xb892ee){if(_0xb892ee['data'])switch(_0xb892ee['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'](_0x142074,_0x23f89f){const _0x139faf=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x114a82 of _0x139faf['getSuggestions']({'skipNotAttached':!0x0})){const _0x4a17dc=_0x114a82['getContainedElement']();if(_0x114a82['subType']===_0x23f89f&&_0x4a17dc===_0x142074)return _0x114a82;}return null;}}const u='$elementName';class p extends _0x3525e7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x5f401e,_0x4a7e78,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3844ca){super(_0x3844ca),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x328970,_0x274005,_0x111836,_0x51b753)=>{this['_model']['change'](()=>{for(const _0x3ebea8 of[..._0x51b753,..._0x111836])this['_model']['markers']['has'](_0x3ebea8)&&_0x3844ca['editing']['reconvertMarker'](_0x3ebea8);});}),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']=_0x3844ca['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(),_0x3844ca['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3844ca['config']['get']('trackChanges.trackFormatChanges'),_0x3844ca['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3844ca['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3844ca,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1b950f=this['editor'],_0x7cdda1=(_0x4f313e,_0x6aeb08)=>{if('attribute'!=_0x4f313e)return'ck-suggestion-marker-'+_0x4f313e;const _0x43d36f=_0x6aeb08['split']('|')[0x0];return this['_isBlockAttribute'](_0x43d36f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1b950f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x9015f0=>{const {id:_0x205ac2,authorId:_0x211c32,type:_0x48ca63,subType:_0x414793}=this['_splitMarkerName'](_0x9015f0['markerName']),_0x4890d9=['ck-suggestion-marker',_0x7cdda1(_0x48ca63,_0x414793)];let _0x519543=0xbb8;return this['activeMarkers']['includes'](_0x9015f0['markerName'])&&(_0x4890d9['push']('ck-suggestion-marker--active'),_0x519543=0xbc2),'deletion'==_0x48ca63&&(_0x519543+=0x5),{'classes':_0x4890d9,'attributes':{'data-suggestion':_0x205ac2,'data-author-id':_0x211c32},'priority':_0x519543};}}),_0x1b950f['conversion']['for']('dataDowncast')['add'](_0x3a0693=>{_0x3a0693['on']('addMarker:suggestion',(_0x5f1db3,_0x7d8d86,_0x2f599f)=>{if(!_0x2f599f['options']['showSuggestionHighlights'])return;const _0x34c72d=_0x7d8d86['item'];if(!_0x34c72d)return;const _0x820c8e=_0x2f599f['mapper']['toViewElement'](_0x34c72d);_0x1b950f['model']['schema']['isObject'](_0x34c72d)&&_0x820c8e&&!_0x820c8e['getCustomProperty']('widget')&&_0x820c8e['is']('containerElement')&&_0x25bc5a(_0x820c8e,_0x2f599f['writer']);},{'priority':'high'});}),_0x1b950f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2627f9,_0x5f3fb4)=>{if(!_0x5f3fb4['options']['showSuggestionHighlights'])return null;const {id:_0x3d54b9,authorId:_0x2e6bb5,type:_0x1da5c9,subType:_0x6f0e6d}=this['_splitMarkerName'](_0x2627f9['markerName']);return{'classes':['ck-suggestion-marker',_0x7cdda1(_0x1da5c9,_0x6f0e6d)],'priority':0xbb8,'attributes':{'data-suggestion':_0x3d54b9,'data-author-id':_0x2e6bb5}};}});const _0x7948d6=({showActiveMarkers:_0x39d499=!0x0,isAttributeSuggestion:_0x553e8c=!0x1}={})=>(_0x3ba0cf,_0x39d510,_0x9bda18)=>{if(!_0x39d510['item'])return;const {id:_0x1b5ed0,authorId:_0x408bb5}=this['_splitMarkerName'](_0x39d510['markerName']);if(_0x553e8c){const _0x3ee75c=this['_suggestions']['get'](_0x1b5ed0),_0x175a0b=this['_getAttributeKey'](_0x3ee75c);if(!this['_isBlockAttribute'](_0x175a0b))return;}if(_0x39d510['item']['is']('selection'))return void _0x9bda18['consumable']['consume'](_0x39d510['item'],_0x3ba0cf['name']);const _0x49f2dd=_0x9bda18['mapper']['toViewElement'](_0x39d510['item']);if(_0x39d510['item']['is']('element')&&_0x1b950f['model']['schema']['isBlock'](_0x39d510['item'])&&!_0x49f2dd['getCustomProperty']('addHighlight')){_0x9bda18['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x49f2dd),_0x9bda18['writer']['setAttribute']('data-suggestion',_0x1b5ed0,_0x49f2dd),_0x9bda18['writer']['setAttribute']('data-author-id',_0x408bb5,_0x49f2dd),_0x9bda18['mapper']['bindElementToMarker'](_0x49f2dd,_0x39d510['markerName']),_0x39d499&&(this['activeMarkers']['includes'](_0x39d510['markerName'])?_0x9bda18['writer']['addClass']('ck-suggestion-marker--active',_0x49f2dd):_0x9bda18['writer']['removeClass']('ck-suggestion-marker--active',_0x49f2dd));for(const _0x2a5d8f of _0x1b950f['model']['createRangeIn'](_0x39d510['item'])['getItems']())_0x9bda18['consumable']['consume'](_0x2a5d8f,_0x3ba0cf['name']);_0x9bda18['consumable']['consume'](_0x39d510['item'],_0x3ba0cf['name']);}};_0x1b950f['conversion']['for']('dataDowncast')['add'](_0x4b1191=>{_0x4b1191['on']('addMarker:suggestion:formatBlock',(_0xd1da81,_0x412efc,_0x104a10)=>{_0x104a10['options']['showSuggestionHighlights']&&_0x7948d6({'showActiveMarkers':!0x1})(_0xd1da81,_0x412efc,_0x104a10);},{'priority':'highest'});}),_0x1b950f['conversion']['for']('dataDowncast')['add'](_0x11503a=>{_0x11503a['on']('addMarker:suggestion:attribute',(_0x20feab,_0x50d1e9,_0x3e9233)=>{_0x3e9233['options']['showSuggestionHighlights']&&_0x7948d6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x20feab,_0x50d1e9,_0x3e9233);},{'priority':'highest'});}),_0x1b950f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2b93c6,_0x1afa42)=>{if(_0x1afa42['options']['showSuggestionHighlights']){const {id:_0x388f5b,authorId:_0x303a37}=this['_splitMarkerName'](_0x2b93c6);return _0x2b93c6['includes'](':split')||_0x2b93c6['includes'](':merge')?{'group':'suggestion','name':_0x2b93c6['substr'](0xb),'attributes':{'data-suggestion':_0x388f5b,'data-author-id':_0x303a37}}:null;}return{'group':'suggestion','name':_0x2b93c6['substr'](0xb)};}}),_0x1b950f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x522e60,{writer:_0x93999})=>{let _0x1a9f5b='suggestion:'+_0x522e60['getAttribute']('suggestion-type')+':'+_0x522e60['getAttribute']('id');return _0x522e60['getAttribute']('marker-count')&&(_0x1a9f5b+=':'+_0x522e60['getAttribute']('marker-count')),_0x93999['createElement']('$marker',{'data-name':_0x1a9f5b});}}),_0x1b950f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1b950f['conversion']['for']('editingDowncast')['add'](_0x519978=>{_0x519978['on']('addMarker:suggestion:formatBlock',_0x7948d6(),{'priority':'high'});}),_0x1b950f['conversion']['for']('editingDowncast')['add'](_0x122cea=>{_0x122cea['on']('addMarker:suggestion:attribute',_0x7948d6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1b950f['conversion']['for']('editingDowncast')['add'](_0x458d00=>{_0x458d00['on']('removeMarker:suggestion:formatBlock',(_0x191d2a,_0x47faee,_0x49b90b)=>{const _0x1a1fc8=_0x49b90b['mapper']['markerNameToElements'](_0x47faee['markerName']);if(_0x1a1fc8){for(const _0x1c6574 of _0x1a1fc8)_0x1c6574['getCustomProperty']('addHighlight')||(_0x49b90b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1c6574),_0x49b90b['writer']['removeAttribute']('data-suggestion',_0x1c6574),_0x49b90b['writer']['removeAttribute']('data-author-id',_0x1c6574),_0x49b90b['mapper']['unbindElementFromMarkerName'](_0x1c6574,_0x47faee['markerName']));}},{'priority':'high'});}),_0x1b950f['conversion']['for']('editingDowncast')['add'](_0x2546d5=>{_0x2546d5['on']('removeMarker:suggestion:attribute',(_0x45bec5,_0x107165,_0x4d8ef6)=>{const _0x1e9924=_0x4d8ef6['mapper']['markerNameToElements'](_0x107165['markerName']);if(!_0x1e9924)return;const {id:_0x301091}=this['_splitMarkerName'](_0x107165['markerName']),_0x2cb8b3=this['_suggestions']['get'](_0x301091),_0x4c84f2=this['_getAttributeKey'](_0x2cb8b3);if(this['_isBlockAttribute'](_0x4c84f2)){for(const _0x4a0cf6 of _0x1e9924)_0x4a0cf6['getCustomProperty']('addHighlight')||(_0x4d8ef6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4a0cf6),_0x4d8ef6['writer']['removeAttribute']('data-suggestion',_0x4a0cf6),_0x4d8ef6['writer']['removeAttribute']('data-author-id',_0x4a0cf6),_0x4d8ef6['mapper']['unbindElementFromMarkerName'](_0x4a0cf6,_0x107165['markerName']));}},{'priority':'high'});}),_0x1b950f['model']['document']['registerPostFixer'](_0x5182f1=>{let _0x498314=!0x1;const _0x29c4da=Array['from'](_0x1b950f['model']['document']['differ']['getChangedMarkers']()),_0x800fdc=new Set();for(const {name:_0x4b408c,data:_0x3ba207}of _0x29c4da){const {group:_0x2958a8,type:_0x2c099d,subType:_0x135c52,id:_0x493a28}=this['_splitMarkerName'](_0x4b408c);if('suggestion'!==_0x2958a8)continue;const _0x18e86c=this['_suggestions']['get'](_0x493a28);if(null!=_0x3ba207['newRange']){'formatInline'==_0x2c099d&&(_0x498314=_0x498314||Jt(_0x3ba207['newRange'],_0x4b408c,_0x5182f1,_0x1b950f['model']['schema']));const _0xb79121='attribute'==_0x2c099d&&this['_isBlockAttribute'](_0x135c52['split']('|')[0x0]);if(_0x3ba207['newRange']['isCollapsed']||'$graveyard'==_0x3ba207['newRange']['root']['rootName']||'formatBlock'==_0x2c099d&&!Ht(_0x3ba207['newRange'])||_0xb79121&&!Ht(_0x3ba207['newRange'])||'deletion'==_0x2c099d&&!qt(_0x3ba207['newRange']))_0x5182f1['removeMarker'](_0x4b408c),_0x498314=!0x0;else{if(!_0x18e86c||!_0x18e86c['isInContent'])continue;if(_0x3ba207['newRange']&&_0x3ba207['oldRange']&&_0x3ba207['newRange']['isEqual'](_0x3ba207['oldRange']))continue;_0x800fdc['add'](_0x18e86c);}}}return _0x800fdc['size']>0x0&&(_0x498314=!!this['_joinWithAdjacentSuggestions'](_0x800fdc)||_0x498314),_0x498314;}),_0x1b950f['model']['document']['registerPostFixer'](_0x1c44e0=>{let _0x41eeec=!0x1;for(const _0x1deb79 of _0x1b950f['model']['document']['differ']['getChanges']())if('insert'==_0x1deb79['type'])for(const _0x22c7b8 of this['_suggestions']['values']()){if(_0x22c7b8['isMultiRange']||!_0x22c7b8['isInContent'])continue;const _0x4eea8f='formatBlock'==_0x22c7b8['type'],_0xeb6306=this['_getAttributeKey'](_0x22c7b8),_0x876a36=_0xeb6306&&this['_isBlockAttribute'](_0xeb6306);if(!_0x4eea8f&&!_0x876a36)continue;const _0x517b31=_0x22c7b8['getFirstRange']();if(_0x517b31['start']['parent']!=_0x517b31['end']['parent']&&!_0x517b31['end']['isAtEnd']){const _0x43762b=_0x1b950f['model']['createPositionAt'](_0x517b31['start']['nodeAfter'],'end'),_0x19ca46=_0x1b950f['model']['createRange'](_0x517b31['start'],_0x43762b);_0x1c44e0['updateMarker'](_0x22c7b8['getFirstMarker'](),{'range':_0x19ca46}),_0x41eeec=!0x0;}}return _0x41eeec;}),_0x1b950f['model']['document']['registerPostFixer'](_0x4d40da=>this['_processAttributeChanges'](_0x4d40da)),_0x1b950f['model']['document']['registerPostFixer'](_0x56119b=>!_0x56119b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x56119b)),_0x1b950f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1b950f['model']['document']['on']('change:data',(_0x39da43,_0x1d9e7d)=>{if(!_0x1d9e7d['isLocal']||_0x1d9e7d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5e4d8c=_0x1b950f['model']['document']['differ']['getChanges']();if(0x0==_0x5e4d8c['length'])return;const _0x3ea21a=[],_0x465aaa=_0x5e4d8c['filter'](_0xf31d97=>'attribute'==_0xf31d97['type']),_0x92d214=_0x5e4d8c['filter'](_0x572062=>'insert'==_0x572062['type']&&'$text'!=_0x572062['name']);for(const _0x5585be of _0x465aaa)this['_isRegisteredAttribute'](_0x5585be['attributeKey'])&&_0x3ea21a['push']({'key':_0x5585be['attributeKey'],'newValue':_0x5585be['attributeNewValue'],'oldValue':_0x5585be['attributeOldValue'],'range':zt(_0x5585be['range'],_0x1b950f['model'])});for(const _0x49739f of _0x92d214){if('rename'!=_0x49739f['action']&&'refresh'!=_0x49739f['action'])continue;const _0x320ba8=Wt(_0x49739f['position']['nodeAfter'],_0x1b950f['model']),_0x5a3819=_0x49739f['before'];'rename'==_0x49739f['action']&&_0x3ea21a['push']({'key':u,'newValue':_0x49739f['name'],'oldValue':_0x5a3819['name'],'range':_0x320ba8});for(const [_0x56c776,_0x1303d0]of _0x5a3819['attributes']){if(!this['_isRegisteredAttribute'](_0x56c776))continue;const _0x3d046d=_0x49739f['attributes']['get'](_0x56c776);_0x1303d0!==_0x3d046d&&_0x3ea21a['push']({'key':_0x56c776,'newValue':_0x3d046d,'oldValue':_0x1303d0,'range':_0x320ba8});}for(const [_0x3e58ec,_0x2e02bf]of _0x49739f['attributes'])this['_isRegisteredAttribute'](_0x3e58ec)&&(_0x5a3819['attributes']['has'](_0x3e58ec)||_0x3ea21a['push']({'key':_0x3e58ec,'newValue':_0x2e02bf,'oldValue':null,'range':_0x320ba8}));}0x0!=_0x3ea21a['length']&&_0x1b950f['model']['enqueueChange'](_0x1d9e7d,_0x17b5c6=>{const _0x374706=_0x38b19c();for(const {range:_0x107e61,key:_0x1f3e60,oldValue:_0x19db26,newValue:_0x4afc25}of _0x3ea21a)this['markAttributeChange'](_0x107e61,_0x1f3e60,_0x19db26,_0x4afc25,{'groupId':_0x374706});this['_reduceExistingSuggestions'](_0x17b5c6,_0x3ea21a);});},{'priority':'lowest'}),_0x1b950f['model']['markers']['on']('update:suggestion',(_0xba9c0,_0x4341af,_0x387f96)=>{if(null==_0x387f96){const {id:_0x5f4c38}=this['_splitMarkerName'](_0x4341af['name']),_0x2a8c5e=this['_suggestions']['get'](_0x5f4c38);_0x2a8c5e&&_0x2a8c5e['addMarkerName'](_0x4341af['name']);}}),_0x1b950f['model']['document']['on']('change:data',()=>{const _0x510187=Array['from'](_0x1b950f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x24d516=>'suggestion'===this['_splitMarkerName'](_0x24d516['name'])['group']);if(0x0===_0x510187['length'])return;_0x510187['sort']((_0x33bac3,_0x51734e)=>{const _0x50c967=_0x33bac3['data']['oldRange'],_0xb59c8b=_0x51734e['data']['oldRange'];return null===_0x50c967&&null===_0xb59c8b?0x0:null===_0x50c967&&null!==_0xb59c8b?-0x1:null!==_0x50c967&&null===_0xb59c8b?0x1:_0x50c967['start']['isBefore'](_0xb59c8b['start'])?-0x1:0x1;});const _0x384d32=new Set(),_0x4751ea=new Set();for(const {name:_0x5a0824,data:_0x299275}of _0x510187){const {id:_0x2381b8}=this['_splitMarkerName'](_0x5a0824);if(null===_0x299275['oldRange']){const _0x5e1081=this['_handleNewSuggestionMarker'](_0x5a0824);_0x4751ea['add'](_0x5e1081);}else{const _0x3388bc=this['_suggestions']['get'](_0x2381b8);null!==_0x299275['newRange']||_0x3388bc['isInContent']?(_0x384d32['add'](_0x3388bc['head']),_0x4751ea['add'](_0x3388bc)):this['_removeSuggestion'](_0x3388bc);}}_0x4751ea['size']>0x0&&this['_refreshSuggestionsChain'](_0x4751ea);for(const _0x37edfb of _0x384d32)this['fire']('suggestionChanged',_0x37edfb);}),_0x1b950f['model']['on']('applyOperation',(_0x1240d2,_0x5648fb)=>{const _0x4d69ca=_0x5648fb[0x0];if(!this['_suggestions']['size'])return;if(!_0x4d69ca['isDocumentOperation'])return;if(_0x4d69ca['batch']['isUndo']||!_0x4d69ca['batch']['isLocal'])return;let _0x22d390,_0xb317de;switch(_0x4d69ca['type']){case'insert':_0x22d390=_0x1b950f['model']['createPositionAt'](_0x4d69ca['position']),_0xb317de=_0x22d390['getShiftedBy'](_0x4d69ca['howMany']);break;case'split':_0x22d390=_0x1b950f['model']['createPositionAt'](_0x4d69ca['splitPosition']),_0xb317de=_0x1b950f['model']['createPositionAt'](_0x4d69ca['moveTargetPosition']);break;case'move':_0x22d390=_0x1b950f['model']['createPositionAt'](_0x4d69ca['targetPosition']),_0xb317de=_0x22d390['getShiftedBy'](_0x4d69ca['howMany']);break;default:return;}const _0x282e82=_0x1b950f['model']['createRange'](_0x22d390,_0xb317de);_0x1b950f['model']['change'](()=>{for(const {suggestion:_0x56bfbf,meta:_0xab907c}of this['_findSuggestions'](_0x282e82)){if(_0x56bfbf['isMultiRange'])continue;if('formatInline'==_0x56bfbf['type'])continue;const _0x55c090=this['_getAttributeKey'](_0x56bfbf);if(_0x55c090&&this['_isBlockAttribute'](_0x55c090)&&'split'!=_0x4d69ca['type'])continue;const _0x33989b=_0x56bfbf['data']&&_0x56bfbf['data']['multipleBlocks'];('formatBlock'!=_0x56bfbf['type']||'split'==_0x4d69ca['type']&&!_0x33989b)&&(_0xab907c['containsRangeInObject']||'insertion'==_0x56bfbf['type']&&_0xab907c['isOwn']||_0x56bfbf['getFirstRange']()['containsRange'](_0x282e82)&&this['_breakSuggestionMarker'](_0x56bfbf,_0x22d390,_0xb317de));}});},{'priority':'lowest'}),_0x1b950f['model']['on']('deleteContent',(_0x502956,_0x4beff5)=>{const _0x2c53ad=_0x4beff5[0x0],_0x48282a=_0x4beff5[0x1];if(_0x48282a&&_0x48282a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2c53ad['isCollapsed'])return;const _0x27c204=_0x1b950f['model']['schema'],{start:_0x274957,end:_0x3bc29e}=_0x2c53ad['getFirstRange'](),_0x5d1c90=_0x274957['nodeAfter']&&_0x27c204['isLimit'](_0x274957['nodeAfter'])?null:_0x27c204['getNearestSelectionRange'](_0x274957,'forward'),_0x1bb33f=_0x3bc29e['nodeBefore']&&_0x27c204['isLimit'](_0x3bc29e['nodeBefore'])?null:_0x27c204['getNearestSelectionRange'](_0x3bc29e,'backward'),_0x3f486f=_0x1b950f['model']['createRange'](_0x5d1c90?_0x5d1c90['start']:_0x274957,_0x1bb33f?_0x1bb33f['end']:_0x3bc29e);_0x1b950f['model']['change'](_0x1f2d8a=>{this['markDeletion'](_0x3f486f);const _0x2d276f=_0x1b950f['model']['schema']['getNearestSelectionRange'](_0x3f486f['start']);_0x2c53ad['is']('documentSelection')?_0x1f2d8a['setSelection'](_0x2d276f):_0x2c53ad['setTo'](_0x2d276f);}),_0x502956['stop']();},{'priority':_0x4c334b['normal']+0xa}),_0x1b950f['model']['on']('insertContent',(_0x15bf33,_0x457d45)=>{const _0x491112=_0x457d45[_0x457d45['length']-0x1];_0x491112&&_0x491112['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1b950f['model']['change'](()=>{let _0x53a0bf=_0x1b950f['model']['insertContent'](_0x457d45[0x0],_0x457d45[0x1],_0x457d45[0x2],{'forceDefaultExecution':!0x0});if(!_0x53a0bf)return;_0x15bf33['return']=_0x53a0bf['clone']();const _0x3ba34d=_0x53a0bf['end']['nodeBefore'],_0x26812e=_0x1b950f['model']['schema'];_0x3ba34d&&_0x26812e['isBlock'](_0x3ba34d)&&!_0x26812e['isObject'](_0x3ba34d)&&(_0x53a0bf=_0x1b950f['model']['createRange'](_0x53a0bf['start'],_0x1b950f['model']['createPositionAt'](_0x3ba34d,'end'))),this['markInsertion'](_0x53a0bf);}),_0x15bf33['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf88338=new x(_0x1b950f,this['_suggestions']);_0x1b950f['commands']['add']('acceptSuggestion',_0xf88338),this['enableCommand']('acceptSuggestion');const _0x3ce45a=new O(_0x1b950f,this['_suggestions']);_0x1b950f['commands']['add']('discardSuggestion',_0x3ce45a),this['enableCommand']('discardSuggestion'),_0x1b950f['commands']['add']('acceptAllSuggestions',new R(_0x1b950f,_0xf88338,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1b950f['commands']['add']('discardAllSuggestions',new R(_0x1b950f,_0x3ce45a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1b950f['commands']['add']('acceptSelectedSuggestions',new E(_0x1b950f,_0xf88338,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1b950f['commands']['add']('discardSelectedSuggestions',new E(_0x1b950f,_0x3ce45a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4657bb=_0x1b950f['plugins']['get']('CommentsRepository');this['listenTo'](_0x4657bb,'addComment',(_0x498cd2,{threadId:_0x123260})=>{const _0x30d02d=this['_suggestions']['get'](_0x123260);_0x30d02d&&_0x30d02d['commentThread']&&0x1===_0x30d02d['commentThread']['length']&&this['_updateSuggestionData'](_0x123260,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4657bb,'removeComment',(_0xa7d905,{threadId:_0x3099e5})=>{const _0x3056fd=this['_suggestions']['get'](_0x3099e5);_0x3056fd&&_0x3056fd['commentThread']&&!_0x3056fd['commentThread']['length']&&this['_updateSuggestionData'](_0x3099e5,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x183582){const _0xdd7754=_0x4cf8b2([0x77,0x35,0x41,0x73,0x4e,0x56,0x55,0x4d,0x68,0x38,0x75,0x67,0x51,0x62,0x45,0x50,0x52,0x46,0x71,0x63,0x36,0x43,0x4f,0x4c,0x69,0x6a,0x70,0x30,0x31,0x49,0x54,0x34,0x7a,0x66,0x33,0x47,0x37,0x6d,0x58,0x57,0x65,0x44,0x32,0x4b,0x42,0x79,0x74,0x39,0x6e,0x64,0x78,0x6c,0x72,0x59,0x6f,0x5a,0x6b,0x4a,0x48,0x76,0x61,0x53]),_0x4470ad=0x1ee25b87,_0x54a1e5=0x1ee530cf^_0x4470ad,_0x96163b=window[_0x4cf8b2([0x44,0x61,0x74,0x65])][_0x4cf8b2([0x6e,0x6f,0x77])](),_0x6613a2=_0x183582[_0x4cf8b2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1eb2f4=new window[(_0x4cf8b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x65a6d0=>{_0x6613a2[_0x4cf8b2([0x6f,0x6e,0x63,0x65])](_0x4cf8b2([0x72,0x65,0x61,0x64,0x79]),_0x65a6d0);}),_0x2ef79e={[_0x4cf8b2([0x6b,0x74,0x79])]:_0x4cf8b2([0x45,0x43]),[_0x4cf8b2([0x75,0x73,0x65])]:_0x4cf8b2([0x73,0x69,0x67]),[_0x4cf8b2([0x63,0x72,0x76])]:_0x4cf8b2([0x50,0x2d,0x32,0x35,0x36]),[_0x4cf8b2([0x78])]:_0x4cf8b2([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]),[_0x4cf8b2([0x79])]:_0x4cf8b2([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]),[_0x4cf8b2([0x61,0x6c,0x67])]:_0x4cf8b2([0x45,0x53,0x32,0x35,0x36])},_0xc89605=_0x6613a2[_0x4cf8b2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4cf8b2([0x67,0x65,0x74])](_0x4cf8b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x118206(){let _0x3e9afd,_0x30ef21=null,_0x2aafba=null;try{if(_0xc89605==_0x4cf8b2([0x47,0x50,0x4c]))return _0x4cf8b2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e9afd=_0x3a009e(),!_0x3e9afd)return _0x4cf8b2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e9afd[_0x4cf8b2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2aafba=_0x1e21fd(_0x3e9afd[_0x4cf8b2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e9afd[_0x4cf8b2([0x6a,0x74,0x69])])),await _0x23eedc()?_0x486950()?_0x25832d()?_0x4cf8b2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x42ed90()?(_0x3e9afd[_0x4cf8b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4cf8b2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30ef21=_0x435ef1(_0x4cf8b2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e9afd[_0x4cf8b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4cf8b2([0x74,0x72,0x69,0x61,0x6c])&&(_0x30ef21=_0x435ef1(_0x4cf8b2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c8f3e()):_0x4cf8b2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4cf8b2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4cf8b2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4cf8b2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x25832d(){const _0xceb966=[_0x4cf8b2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4cf8b2([0x74,0x72,0x69,0x61,0x6c])][_0x4cf8b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e9afd[_0x4cf8b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x96163b/0x3e8:0xe10*_0x54a1e5;return _0x3e9afd[_0x4cf8b2([0x65,0x78,0x70])]<_0xceb966;}function _0x486950(){const _0x513b7e=_0x3e9afd[_0x4cf8b2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x513b7e)return!0x1;if(_0x513b7e[_0x4cf8b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cf8b2([0x2a])))return!0x0;if(_0x513b7e[_0x4cf8b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cf8b2([0x54,0x43])))return!0x0;if(_0x513b7e[_0x4cf8b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cf8b2([0x52,0x54,0x43]))){if(_0x2fb06f())return!0x0;if(_0x4ca40c()||_0x5e202e())return!0x0;}return!0x1;}function _0x42ed90(){const _0x47e9e0=_0x3e9afd[_0x4cf8b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47e9e0||0x0==_0x47e9e0[_0x4cf8b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55f38a}=new URL(window[_0x4cf8b2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x47e9e0[_0x4cf8b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55f38a))return!0x0;const _0xd7aa3f=_0x55f38a[_0x4cf8b2([0x73,0x70,0x6c,0x69,0x74])](_0x4cf8b2([0x2e]));return _0x47e9e0[_0x4cf8b2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d29bd=>_0x1d29bd[_0x4cf8b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cf8b2([0x2a])))[_0x4cf8b2([0x6d,0x61,0x70])](_0x4468fe=>_0x4468fe[_0x4cf8b2([0x73,0x70,0x6c,0x69,0x74])](_0x4cf8b2([0x2e])))[_0x4cf8b2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fe8d3=>_0x4fe8d3[_0x4cf8b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd7aa3f[_0x4cf8b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4cf8b2([0x6d,0x61,0x70])](_0x47650a=>Array(_0xd7aa3f[_0x4cf8b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x47650a[_0x4cf8b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4cf8b2([0x66,0x69,0x6c,0x6c])](_0x47650a[0x0]===_0x4cf8b2([0x2a])?_0x4cf8b2([0x2a]):'')[_0x4cf8b2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x47650a))[_0x4cf8b2([0x73,0x6f,0x6d,0x65])](_0x10a966=>_0xd7aa3f[_0x4cf8b2([0x65,0x76,0x65,0x72,0x79])]((_0x4c4b26,_0x3ad8af)=>_0x10a966[_0x3ad8af]===_0x4c4b26||_0x10a966[_0x3ad8af]===_0x4cf8b2([0x2a])));}function _0x3c8f3e(){return _0x30ef21&&_0x2aafba?new window[(_0x4cf8b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x137b2e,_0x14403c)=>{_0x30ef21[_0x4cf8b2([0x74,0x68,0x65,0x6e])](_0x137b2e,_0x14403c),_0x2aafba[_0x4cf8b2([0x74,0x68,0x65,0x6e])](_0x3c756b=>{_0x3c756b!=_0x4cf8b2([0x56,0x61,0x6c,0x69,0x64])&&_0x137b2e(_0x3c756b);},_0x14403c);}):_0x30ef21||_0x2aafba||_0x4cf8b2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e21fd(_0x5f2cc3,_0xdd15b8){return new window[(_0x4cf8b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53be70=>{if(_0x24faab())return _0x53be70(_0x4cf8b2([0x56,0x61,0x6c,0x69,0x64]));_0x5c5b66(),_0x6613a2[_0x4cf8b2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4cf8b2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x55f3af=!0x1;const _0x5ae3f1=_0x38b19c();function _0xf86cf2(_0xa459c2){return!!_0xa459c2&&(typeof _0xa459c2===_0x4cf8b2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa459c2===_0x4cf8b2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa459c2[_0x4cf8b2([0x74,0x68,0x65,0x6e])]===_0x4cf8b2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa459c2[_0x4cf8b2([0x63,0x61,0x74,0x63,0x68])]===_0x4cf8b2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x727e6d(_0x51a831){_0xcfa31f(_0x51a831)[_0x4cf8b2([0x74,0x68,0x65,0x6e])](_0x5bb88f=>{if(!_0x5bb88f||_0x5bb88f[_0x4cf8b2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4cf8b2([0x6f,0x6b]))return _0x4cf8b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x128b04(_0x21de03(_0x5ae3f1+_0xdd15b8))!=_0x5bb88f[_0x4cf8b2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4cf8b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4cf8b2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4cf8b2([0x74,0x68,0x65,0x6e])](_0x58661b=>(_0x4f23a2(),_0x58661b),()=>{const _0x3451a9=_0x111dac();return null==_0x3451a9?(_0x4f23a2(),_0x4cf8b2([0x56,0x61,0x6c,0x69,0x64])):_0x4cf8b2(_0x96163b-_0x3451a9>(0x3aeedf87^_0x4470ad)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4cf8b2([0x74,0x68,0x65,0x6e])](_0x53be70)[_0x4cf8b2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x53be70(_0x4cf8b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x46aa41=0x1ed4b507^_0x4470ad;function _0x4f23a2(){const _0x2cd9cd=_0x4cf8b2([0x6c,0x6c,0x63,0x74,0x2d])+_0x128b04(_0x21de03(_0x5f2cc3)),_0xdd92dc=_0x2ec126(_0x128b04(window[_0x4cf8b2([0x4d,0x61,0x74,0x68])][_0x4cf8b2([0x63,0x65,0x69,0x6c])](_0x96163b/_0x46aa41)));window[_0x4cf8b2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4cf8b2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cd9cd,_0xdd92dc);}function _0x111dac(){const _0xab3a89=_0x4cf8b2([0x6c,0x6c,0x63,0x74,0x2d])+_0x128b04(_0x21de03(_0x5f2cc3)),_0x11fd08=window[_0x4cf8b2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4cf8b2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xab3a89);return _0x11fd08?window[_0x4cf8b2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ec126(_0x11fd08),0x10)*_0x46aa41:null;}function _0xcfa31f(_0x1aa81f){return new window[(_0x4cf8b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a23e8,_0x217157)=>{_0x1aa81f[_0x4cf8b2([0x74,0x68,0x65,0x6e])](_0x3a23e8,_0x217157),window[_0x4cf8b2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x217157,0x1ee38f47^_0x4470ad);});}}_0x6613a2[_0x4cf8b2([0x6f,0x6e])](_0x4cf8b2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14290c,_0x26ca81)=>{if(_0x26ca81[0x0]!=_0x5f2cc3)return _0x53be70(_0x4cf8b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26ca81[0x1]={..._0x26ca81[0x1],[_0x4cf8b2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ae3f1};},{[_0x4cf8b2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4cf8b2([0x68,0x69,0x67,0x68])}),_0x6613a2[_0x4cf8b2([0x6f,0x6e])](_0x4cf8b2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4d68f7=>{_0xf86cf2(_0x4d68f7[_0x4cf8b2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x55f3af=!0x0,_0x727e6d(_0x4d68f7[_0x4cf8b2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4cf8b2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4cf8b2([0x6c,0x6f,0x77])}),_0x1eb2f4[_0x4cf8b2([0x74,0x68,0x65,0x6e])](()=>{_0x55f3af||_0x53be70(_0x4cf8b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x24faab(){return _0x6613a2[_0x4cf8b2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4cf8b2([0x76,0x69,0x65,0x77])][_0x4cf8b2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4cf8b2([0x61,0x75,0x74,0x6f]);}function _0x5c5b66(){_0x6613a2[_0x4cf8b2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4cf8b2([0x76,0x69,0x65,0x77])][_0x4cf8b2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4cf8b2([0x61,0x75,0x74,0x6f]);}}function _0x435ef1(_0x4af4e8){const _0x5c05f9=[new window[(_0x4cf8b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329f2b=>setTimeout(_0x329f2b,0x1eeb654b^_0x4470ad)),_0x1eb2f4[_0x4cf8b2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4cf8b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f2c20=>{let _0x344db4=0x0;_0x6613a2[_0x4cf8b2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4cf8b2([0x6f,0x6e])](_0x4cf8b2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4901fb,_0x7a27f2)=>{_0x7a27f2[0x0][_0x4cf8b2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x344db4++,_0x344db4==(0x1ee25a7f^_0x4470ad)&&(_0x4f2c20(),_0x4901fb[_0x4cf8b2([0x6f,0x66,0x66])]());});}))];return window[_0x4cf8b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4cf8b2([0x72,0x61,0x63,0x65])](_0x5c05f9)[_0x4cf8b2([0x74,0x68,0x65,0x6e])](()=>_0x4af4e8);}async function _0x1689e0(){await _0x1eb2f4,_0x6613a2[_0x4cf8b2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4cf8b2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x290791,_0x6613a2[_0x4cf8b2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4cf8b2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x290791,_0x6613a2[_0x4cf8b2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4cf8b2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2fb06f(){return _0x443567(_0x4cf8b2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5a1979(_0x4cf8b2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4cf8b2([0x73,0x74,0x61,0x74,0x65])]==_0x4cf8b2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4ca40c(){return _0x443567(_0x4cf8b2([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 _0x5e202e(){return _0x443567(_0x4cf8b2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1c62e7(_0x40a772){const _0x47255c=_0x47db78();_0x6613a2[_0x47255c]=_0x4cf8b2([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x40a772,_0x40a772!=_0x4cf8b2([0x56,0x61,0x6c,0x69,0x64])&&_0x1689e0();}function _0x47db78(){const _0xf4838f=window[_0x4cf8b2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4cf8b2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4cf8b2([0x6e,0x6f,0x77])]())[_0x4cf8b2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4cf8b2([0x2e]),'');let _0x2344e8=_0x4cf8b2([0x77]);for(let _0x42e1d0=0x0;_0x42e1d0<_0xf4838f[_0x4cf8b2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42e1d0+=0x2){let _0x50045c=window[_0x4cf8b2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf4838f[_0x4cf8b2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42e1d0,_0x42e1d0+0x2));_0x50045c>=_0xdd7754[_0x4cf8b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x50045c-=_0xdd7754[_0x4cf8b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2344e8+=_0xdd7754[_0x50045c];}return _0x2344e8;}function _0x3a009e(){const _0x4cca6=_0xc89605[_0x4cf8b2([0x73,0x70,0x6c,0x69,0x74])](_0x4cf8b2([0x2e]));if(0x3!=_0x4cca6[_0x4cf8b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3e9f64(_0x4cca6[0x1]);function _0x3e9f64(_0x4e1b00){const _0x575c40=_0x185214(_0x4e1b00);return _0x575c40&&_0x88685()?_0x575c40:null;function _0x88685(){const _0x330419=_0x575c40[_0x4cf8b2([0x6a,0x74,0x69])],_0x3fc3c4=window[_0x4cf8b2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x330419[_0x4cf8b2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x330419[_0x4cf8b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f65ed={..._0x575c40,[_0x4cf8b2([0x6a,0x74,0x69])]:_0x330419[_0x4cf8b2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x330419[_0x4cf8b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f65ed[_0x4cf8b2([0x76,0x63])],_0x21de03(_0x2f65ed)==_0x3fc3c4;}}}async function _0x23eedc(){let _0x156d1a=!0x0;try{const _0x20dc1a=_0xc89605[_0x4cf8b2([0x73,0x70,0x6c,0x69,0x74])](_0x4cf8b2([0x2e])),[_0x531dc1,_0x22d731,_0x214bd2]=_0x20dc1a;return _0x301b1e(_0x531dc1),await _0x486602(_0x531dc1,_0x22d731,_0x214bd2),_0x156d1a;}catch{return!0x1;}function _0x301b1e(_0x344857){const _0x5e8ec2=_0x185214(_0x344857);_0x5e8ec2&&_0x5e8ec2[_0x4cf8b2([0x61,0x6c,0x67])]==_0x4cf8b2([0x45,0x53,0x32,0x35,0x36])||(_0x156d1a=!0x1);}async function _0x486602(_0x42517,_0x102ee3,_0x291e1a){const _0x3e119d=window[_0x4cf8b2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4cf8b2([0x66,0x72,0x6f,0x6d])](_0x26f0c4(_0x291e1a),_0x5d8422=>_0x5d8422[_0x4cf8b2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e5d50=new window[(_0x4cf8b2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4cf8b2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x42517+_0x4cf8b2([0x2e])+_0x102ee3),_0x4f1319=window[_0x4cf8b2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4cf8b2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f1319)return;const _0x319fcd=await _0x4f1319[_0x4cf8b2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4cf8b2([0x6a,0x77,0x6b]),_0x2ef79e,{[_0x4cf8b2([0x6e,0x61,0x6d,0x65])]:_0x4cf8b2([0x45,0x43,0x44,0x53,0x41]),[_0x4cf8b2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4cf8b2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4cf8b2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f1319[_0x4cf8b2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4cf8b2([0x6e,0x61,0x6d,0x65])]:_0x4cf8b2([0x45,0x43,0x44,0x53,0x41]),[_0x4cf8b2([0x68,0x61,0x73,0x68])]:{[_0x4cf8b2([0x6e,0x61,0x6d,0x65])]:_0x4cf8b2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x319fcd,_0x3e119d,_0x3e5d50)||(_0x156d1a=!0x1);}}function _0x185214(_0x522f15){return _0x522f15[_0x4cf8b2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4cf8b2([0x65,0x79]))?JSON[_0x4cf8b2([0x70,0x61,0x72,0x73,0x65])](_0x26f0c4(_0x522f15)):null;}function _0x26f0c4(_0x58065e){return window[_0x4cf8b2([0x61,0x74,0x6f,0x62])](_0x58065e[_0x4cf8b2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4cf8b2([0x2b]))[_0x4cf8b2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4cf8b2([0x2f])));}function _0x21de03(_0x31ddb5){let _0x1205d3=0x1505;function _0x228e0d(_0x326cf6){for(let _0x44f92d=0x0;_0x44f92d<_0x326cf6[_0x4cf8b2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44f92d++){const _0x22304e=_0x326cf6[_0x4cf8b2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x44f92d);_0x1205d3=(_0x1205d3<<0x5)+_0x1205d3+_0x22304e,_0x1205d3&=_0x1205d3;}}function _0x11293b(_0x23719e){Array[_0x4cf8b2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x23719e)?_0x23719e[_0x4cf8b2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x11293b):_0x23719e&&typeof _0x23719e==_0x4cf8b2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4cf8b2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x23719e)[_0x4cf8b2([0x73,0x6f,0x72,0x74])]()[_0x4cf8b2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3edc50,_0x5423d0])=>{_0x228e0d(_0x3edc50),_0x11293b(_0x5423d0);}):_0x228e0d(window[_0x4cf8b2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x23719e));}return _0x11293b(_0x31ddb5),_0x1205d3>>>0x0;}function _0x128b04(_0x559171){return _0x559171[_0x4cf8b2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4cf8b2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4cf8b2([0x30]));}function _0x2ec126(_0xa33f77){return _0xa33f77[_0x4cf8b2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4cf8b2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4cf8b2([0x6a,0x6f,0x69,0x6e])]('');}function _0x443567(_0x4b8aca){return _0x6613a2[_0x4cf8b2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4cf8b2([0x68,0x61,0x73])](_0x4b8aca);}function _0x5a1979(_0x97a77c){return _0x6613a2[_0x4cf8b2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4cf8b2([0x67,0x65,0x74])](_0x97a77c);}function _0x290791(){}function _0x4cf8b2(_0x29ef19){return _0x29ef19['map'](_0x458600=>String['fromCharCode'](_0x458600))['join']('');}_0x1c62e7(await _0x118206());}(this);}set['adapter'](_0x5eda4a){if(this['_adapter'])throw new _0x1de5c6('track-changes-adapter-already-set',this);this['_adapter']=_0x5eda4a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xc67fca=!0x1,toJSON:_0x12fd66=!0x1}={}){const _0x4846cc=[];for(const _0x4e1eed of this['_suggestions']['values']())_0xc67fca&&!_0x4e1eed['isInContent']||_0x4846cc['push'](_0x4e1eed);return _0x12fd66?_0x4846cc['map'](_0x464f00=>_0x464f00['toJSON']()):_0x4846cc;}['getSuggestion'](_0x22ee77){const _0x170aa0=this['_suggestions']['get'](_0x22ee77);if(!_0x170aa0)throw new _0x1de5c6('track-changes-suggestion-not-found',this);return _0x170aa0;}['hasSuggestion'](_0x1506ce){return this['_suggestions']['has'](_0x1506ce);}['addSuggestionData'](_0x2fe89c){const {authorId:_0x54fc05,id:_0x14ce95,originalSuggestionId:_0xcf5f75,attributes:_0x396612}=_0x2fe89c,[_0x24879a,_0x572582]=_0x2fe89c['type']['split'](':'),_0x524887=this['_suggestions']['get'](_0x14ce95)||this['_createSuggestion'](_0x24879a,_0x572582,_0x14ce95,_0x54fc05,_0x396612,_0xcf5f75);if(this['_addThreadToSuggestion'](_0x524887),this['_checkSuggestionCorrectness'](_0x524887,_0x24879a,_0x572582||null,_0x54fc05),_0x524887['createdAt']=_0x2fe89c['createdAt'],_0x524887['_isDataLoaded']=!0x0,_0x396612&&_0x396612['@external']){const _0x21baf7=_0x396612['@external'],_0x2c7ab2=this['_getExternalAuthor'](_0x21baf7['authorName']);_0x524887['authoredAt']=_0x21baf7['createdAt'],_0x524887['author']=_0x2c7ab2,_0x524887['isExternal']=!0x0;}else _0x524887['authoredAt']=_0x2fe89c['createdAt'];switch(_0x2fe89c['data']&&(_0x524887['data']=_0x2fe89c['data']),_0x2fe89c['attributes']&&(_0x524887['attributes']=_0x2fe89c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x524887['_saved']=!0x0),this['_suggestionState']['get'](_0x524887)){case'notReady':this['_suggestionState']['set'](_0x524887,'dataReady');break;case'markerReady':_0x524887['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x524887])),this['_refreshSuggestionsChain'](new Set([_0x524887])),this['_suggestionState']['set'](_0x524887,'ready'),this['fire']('suggestionLoaded',_0x524887)):this['_suggestionState']['set'](_0x524887,'removed');}return _0x524887;}['acceptSuggestion'](_0x5cc550){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x43bbd6 of _0x5cc550['getAllAdjacentSuggestions']())_0x43bbd6['accept']();});});}['discardSuggestion'](_0x138294){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x725d3a of _0x138294['getAllAdjacentSuggestions']())_0x725d3a['discard']();});});}['enableCommand'](_0x4f3dab,_0x5292a9){const _0x49aece=this['editor']['commands']['get'](_0x4f3dab);if(!_0x49aece)throw new _0x1de5c6('track-changes-command-not-found',this,{'commandName':_0x4f3dab});if(this['_enabledCommands']['has'](_0x49aece))throw new _0x1de5c6('track-changes-enable-command-twice',this,{'commandName':_0x4f3dab});this['_enabledCommands']['add'](_0x49aece),_0x5292a9&&_0x49aece['on']('execute',(_0x17f52a,_0x765018)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x765018['length']>0x0&&_0x765018[_0x765018['length']-0x1]&&_0x765018[_0x765018['length']-0x1]['forceDefaultExecution']?_0x765018['pop']():(_0x17f52a['return']=_0x5292a9((..._0x2bc6c3)=>_0x49aece['execute'](..._0x2bc6c3,{'forceDefaultExecution':!0x0}),..._0x765018),_0x17f52a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x44c717){let _0x130e4c,_0x3ad16c;const _0x276cd0=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x130e4c=_0x44c717();}catch(_0x5ed4bb){_0x3ad16c=_0x5ed4bb;}return _0x276cd0||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3ad16c&&_0x1de5c6['rethrowUnexpectedError'](_0x3ad16c,this),_0x130e4c;}['markInsertion'](_0x1c2939,_0x928f42=null,_0x5f5385={}){if(_0x1c2939['isCollapsed'])return null;const _0x2386f2=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5f5385['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5195b9,meta:_0x4088bb}of this['_findSuggestions'](_0x1c2939,'insertion'))if(_0x4088bb['isOwn']){if(!_0x4088bb['isNextTo']){if(_0x4088bb['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Yt(_0x5195b9,_0x5f5385))continue;return _0x5195b9;}if(Yt(_0x5195b9,_0x5f5385))return _0x5195b9;this['_breakSuggestionMarker'](_0x5195b9,_0x1c2939['start'],_0x1c2939['end']);break;}if(_0x928f42==_0x5195b9['subType']&&Yt(_0x5195b9,_0x5f5385)){const _0x5efb20=_0x5195b9['getFirstRange']();return _0x5efb20['start']['isEqual'](_0x1c2939['end'])?this['_setSuggestionRange'](_0x5195b9,this['_model']['createRange'](_0x1c2939['start'],_0x5efb20['end'])):this['_setSuggestionRange'](_0x5195b9,this['_model']['createRange'](_0x5efb20['start'],_0x1c2939['end'])),_0x5195b9;}}const _0x439334=_0x38b19c(),_0x53d257=_0x2386f2['id'],_0x434f46=_0x928f42?'insertion:'+_0x928f42:'insertion',_0x4aed54=this['_setSuggestionData']({'id':_0x439334,'type':_0x434f46,'createdAt':new Date(),'authorId':_0x53d257,'attributes':_0x5f5385});return this['_addSuggestionMarker'](_0x434f46,_0x439334,_0x53d257,_0x1c2939),_0x4aed54;}['markMultiRangeInsertion'](_0x3f2129,_0x523c3c='multi',_0x3e5389={}){const _0x5f143e=this['editor']['plugins']['get']('Users')['me'],_0x169722=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x523c3c,'join');this['_trackingSessionId']&&(_0x3e5389['trackingSessionId']=this['_trackingSessionId']);for(const _0x22acf4 of this['getSuggestions']())if(_0x22acf4['author']['id']==_0x5f143e['id']&&'insertion'==_0x22acf4['type']&&_0x22acf4['subType']==_0x523c3c&&Yt(_0x22acf4,_0x3e5389)&&(_0x169722(_0x22acf4['getRanges'](),_0x3f2129)||_0x169722(_0x3f2129,_0x22acf4['getRanges']()))){for(const _0x20f976 of _0x3f2129)_0x22acf4['addRange'](_0x20f976);return _0x22acf4;}for(const {suggestion:_0x34f109,meta:_0x4ba7eb}of this['_findSuggestions'](_0x3f2129,'insertion')){if(!_0x4ba7eb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4ba7eb['containsRangeInObject'])continue;if(!Yt(_0x34f109,_0x3e5389))continue;let _0x3add6e=!0x0;for(const _0x3f3204 of _0x34f109['getRanges']())for(const _0x5ed48e of _0x3f2129)if(!_0x3f3204['containsRange'](_0x5ed48e)){_0x3add6e=!0x1;break;}if(_0x3add6e)return _0x34f109;}const _0x40be36=_0x38b19c(),_0x1335e5=_0x5f143e['id'],_0x319e93='insertion:'+_0x523c3c,_0x37bde6=this['_setSuggestionData']({'id':_0x40be36,'type':_0x319e93,'createdAt':new Date(),'authorId':_0x1335e5,'attributes':_0x3e5389});for(const _0x2c7774 of _0x3f2129)this['_addSuggestionMarker'](_0x319e93,_0x40be36,_0x1335e5,_0x2c7774,o['getMultiRangeId']());return _0x37bde6;}['markInlineFormat'](_0x2db5db,_0x46ef6d,_0xe8722b=null,_0x53ebbd={}){if(_0xe8722b=_0xe8722b||Kt(_0x46ef6d),_0x2db5db['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x53ebbd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x237c9f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe8722b,'accept');return this['forceDefaultExecution'](()=>_0x237c9f([_0x2db5db],_0x46ef6d,_0x53ebbd)),null;}const _0x232551=this['editor']['plugins']['get']('Users')['me'],_0x5b0a58=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xfd80b7,meta:_0x33ae14}of this['_findSuggestions'](_0x2db5db,'insertion'))_0x33ae14['isOwn']&&!_0x33ae14['isInsideObject']&&_0x5b0a58['push'](..._0xfd80b7['getRanges']());}const _0x3906b1=function(_0x2636d4,_0xb4a82){const _0x3c6376=[];for(const _0xd61832 of _0xb4a82){const _0x1b5f9a=_0x2636d4['getIntersection'](_0xd61832);_0x1b5f9a&&_0x3c6376['push'](_0x1b5f9a);}return _0x3c6376;}(_0x2db5db,_0x5b0a58),_0x1f856b=function(_0x463dda,_0x24de27){const _0xfed5b5=[_0x463dda];for(const _0x5d1a44 of _0x24de27){let _0x1bec5e=0x0;for(;_0x1bec5e<_0xfed5b5['length'];){const _0x2871c7=_0xfed5b5[_0x1bec5e]['getDifference'](_0x5d1a44);_0xfed5b5['splice'](_0x1bec5e,0x1,..._0x2871c7),_0x1bec5e+=_0x2871c7['length'];}}return _0xfed5b5;}(_0x2db5db,_0x5b0a58);_0x3906b1['length']&&this['_model']['change'](()=>{for(const _0x4b9950 of _0x3906b1){const _0x416704=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe8722b,'accept');this['forceDefaultExecution'](()=>_0x416704([_0x4b9950],_0x46ef6d,_0x53ebbd));}});for(const _0x1d6738 of _0x1f856b){let _0x20b179=null,_0x3fbdd9=_0x1d6738['start'],_0x5e90bf=_0x1d6738['end'];for(const {suggestion:_0x3ccebb,meta:_0x58cc0c}of this['_findSuggestions'](_0x1d6738,'formatInline')){if(!_0x58cc0c['isOwn'])continue;if(_0x3ccebb['subType']!=_0xe8722b)continue;if(!Yt(_0x3ccebb,_0x53ebbd))continue;const _0x5ac052=_0x3ccebb['getFirstRange']();if(_0x5ac052['containsRange'](_0x1d6738,!0x0))return null;_0x3fbdd9=_0x3fbdd9['isBefore'](_0x5ac052['start'])?_0x3fbdd9:_0x5ac052['start'],_0x5e90bf=_0x5e90bf['isAfter'](_0x5ac052['end'])?_0x5e90bf:_0x5ac052['end'],_0x20b179?_0x5ac052['start']['isBefore'](_0x20b179['getFirstRange']()['start'])?(_0x20b179['removeMarkers'](),_0x20b179=_0x3ccebb):_0x3ccebb['removeMarkers']():_0x20b179=_0x3ccebb;}const _0x3947b9=this['_model']['createRange'](_0x3fbdd9,_0x5e90bf);if(_0x20b179)this['_setSuggestionRange'](_0x20b179,_0x3947b9);else{const _0x4d8390=_0x38b19c(),_0x4d1c01=_0x232551['id'];this['_setSuggestionData']({'id':_0x4d8390,'type':'formatInline:'+_0xe8722b,'data':_0x46ef6d,'createdAt':new Date(),'authorId':_0x4d1c01,'attributes':_0x53ebbd}),this['_addSuggestionMarker']('formatInline:'+_0xe8722b,_0x4d8390,_0x4d1c01,_0x3947b9);}}return null;}['markBlockFormat'](_0xab4a38,_0x5193c8,_0x5bda90=[],_0x26d272=null,_0x378696={}){_0x5193c8['formatGroupId']||(_0x5193c8['formatGroupId']=_0x5193c8['commandName']),_0x5193c8['multipleBlocks']=_0xab4a38['is']('range'),_0x26d272=_0x26d272||Kt(_0x5193c8);const _0x55fdca=_0x5bda90['map'](_0x5d2498=>Wt(_0x5d2498,this['_model'])),_0x4585ea=_0xab4a38['is']('range')?_0xab4a38:Wt(_0xab4a38,this['_model']);if(this['_trackingSessionId']&&(_0x378696['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4a703d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26d272,'accept');return this['forceDefaultExecution'](()=>_0x4a703d([_0x4585ea],_0x5193c8,_0x378696)),null;}_0x55fdca['push'](_0x4585ea);let _0x2f1240=!0x0;for(const _0x592440 of _0x55fdca)if(!this['_rangeIsInLocalUserInsertion'](_0x592440)){_0x2f1240=!0x1;break;}if(_0x2f1240&&'always'!==this['_trackFormatChanges']){const _0x51b975=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26d272,'accept');return this['forceDefaultExecution'](()=>_0x51b975([_0x4585ea],_0x5193c8,_0x378696)),null;}let _0x1ea418=null,_0xebc487=_0x4585ea['start'],_0x1184ac=_0x4585ea['end'];for(const {suggestion:_0x3751c2,meta:_0x51451e}of this['_findSuggestions'](_0x4585ea,'formatBlock')){if(!_0x51451e['isOwn'])continue;if(_0x51451e['isNextTo']||_0x51451e['containsRangeInObject']||_0x51451e['isInsideObject'])continue;if(_0x3751c2['data']['formatGroupId']!=_0x5193c8['formatGroupId'])continue;if(!Yt(_0x3751c2,_0x378696))continue;const _0x256542=_0x3751c2['getFirstRange']();if(_0x3751c2['subType']==_0x26d272){if(_0x256542['containsRange'](_0x4585ea,!0x0))return null;_0xebc487=_0xebc487['isBefore'](_0x256542['start'])?_0xebc487:_0x256542['start'],_0x1184ac=_0x1184ac['isAfter'](_0x256542['end'])?_0x1184ac:_0x256542['end'],_0x1ea418?_0x256542['start']['isBefore'](_0x1ea418['getFirstRange']()['start'])?(_0x1ea418['removeMarkers'](),_0x1ea418=_0x3751c2):_0x3751c2['removeMarkers']():_0x1ea418=_0x3751c2;}else{const _0x62424d=_0x4585ea['getIntersection'](_0x256542);this['_cutOutSuggestionMarker'](_0x3751c2,_0x62424d);}}const _0x381c9e=this['editor']['plugins']['get']('Users')['me'],_0x25d99e=_0x38b19c(),_0x87d1d1=_0x381c9e['id'];if(_0x1ea418)return this['_setSuggestionRange'](_0x1ea418,this['_model']['createRange'](_0xebc487,_0x1184ac)),_0x1ea418;{const _0x54b569=this['_setSuggestionData']({'id':_0x25d99e,'type':'formatBlock:'+_0x26d272,'data':_0x5193c8,'createdAt':new Date(),'authorId':_0x87d1d1,'attributes':_0x378696});return this['_addSuggestionMarker']('formatBlock:'+_0x26d272,_0x25d99e,_0x87d1d1,this['_model']['createRange'](_0xebc487,_0x1184ac)),_0x54b569;}}['markMultiRangeBlockFormat'](_0x32b2ad,_0x53e0d2,_0x174adf=[],_0x311efd=null,_0x19961d={}){_0x53e0d2['formatGroupId']||(_0x53e0d2['formatGroupId']=_0x53e0d2['commandName']);const _0x5f329b=_0x32b2ad[0x0];_0x53e0d2['multipleBlocks']=_0x5f329b['is']('range'),_0x311efd=_0x311efd||Kt(_0x53e0d2);const _0x26452b=_0x174adf['map'](_0x29b461=>Wt(_0x29b461,this['_model'])),_0x57c37c=_0x5f329b['is']('range')?_0x32b2ad:_0x32b2ad['map'](_0x1f8b92=>Wt(_0x1f8b92,this['_model']));if(this['_trackingSessionId']&&(_0x19961d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x40ecb7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x311efd,'accept');return this['forceDefaultExecution'](()=>_0x40ecb7(_0x57c37c,_0x53e0d2,_0x19961d)),null;}_0x26452b['push'](..._0x57c37c);let _0x5c5138=!0x0;for(const _0x59fa02 of _0x26452b)if(!this['_rangeIsInLocalUserInsertion'](_0x59fa02)){_0x5c5138=!0x1;break;}if(_0x5c5138&&'always'!==this['_trackFormatChanges']){const _0x42a06d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x311efd,'accept');return this['forceDefaultExecution'](()=>_0x42a06d(_0x57c37c,_0x53e0d2,_0x19961d)),null;}const _0x4bdf9f=this['editor']['plugins']['get']('Users')['me'];for(const _0x457979 of this['getSuggestions']()){if(_0x457979['author']['id']!=_0x4bdf9f['id'])continue;if('formatBlock'!=_0x457979['type']||_0x457979['data']['formatGroupId']!=_0x53e0d2['formatGroupId'])continue;if(!Yt(_0x457979,_0x19961d))continue;const _0x1d35ea=_0x457979['subType']==_0x311efd;for(let _0x3df3ad=0x0;_0x3df3ad<_0x57c37c['length'];_0x3df3ad++){const _0x390357=_0x57c37c[_0x3df3ad];for(const _0x346968 of _0x457979['getMarkers']()){const _0x289d8d=_0x346968['getRange']();if(_0x390357['isEqual'](_0x289d8d)){_0x1d35ea?(_0x57c37c['splice'](_0x3df3ad,0x1),_0x3df3ad--):_0x457979['removeMarker'](_0x346968['name']);break;}}}}if(0x0==_0x57c37c['length'])return null;const _0x425a67=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x311efd,'join');for(const _0x372861 of this['getSuggestions']())if(_0x372861['author']['id']==_0x4bdf9f['id']&&'formatBlock'==_0x372861['type']&&_0x372861['data']['formatGroupId']==_0x53e0d2['formatGroupId']&&_0x372861['subType']==_0x311efd&&Yt(_0x372861,_0x19961d)&&(_0x425a67(_0x372861['getRanges'](),_0x57c37c)||_0x425a67(_0x57c37c,_0x372861['getRanges']()))){for(const _0x5cf27f of _0x57c37c)_0x372861['addRange'](_0x5cf27f);return _0x372861;}const _0x9dab4b=_0x38b19c(),_0x3711d3=_0x4bdf9f['id'],_0x19c81f='formatBlock:'+_0x311efd,_0x5c87e7=this['_setSuggestionData']({'id':_0x9dab4b,'type':_0x19c81f,'data':_0x53e0d2,'createdAt':new Date(),'authorId':_0x3711d3,'attributes':_0x19961d});for(const _0x4b5182 of _0x57c37c)this['_addSuggestionMarker'](_0x19c81f,_0x9dab4b,_0x3711d3,_0x4b5182,o['getMultiRangeId']());return _0x5c87e7;}['markDeletion'](_0x323719,_0x434131=null,_0x3c3423={}){if(_0x323719['isCollapsed'])return null;const _0x4e880e=this['editor']['plugins']['get']('Users')['me'],_0x176eb6=new _0x5d59ab(_0x323719['start'],_0x323719['end']);this['_trackingSessionId']&&(_0x3c3423['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x48c8bd,meta:_0x559944}of this['_findSuggestions'](_0x176eb6,'insertion'))if(_0x559944['isOwn']&&!_0x559944['isNextTo']){if(_0x48c8bd['isMultiRange']){const _0x82b046=_0x48c8bd['getRanges']()['filter'](_0x2bdf43=>'$graveyard'!=_0x2bdf43['root']['rootName']);_0x82b046['every'](_0x120392=>_0x176eb6['containsRange'](_0x120392,!0x0))&&_0x48c8bd['discard']();if(_0x82b046['some'](_0x33cab3=>_0x33cab3['containsRange'](_0x176eb6,!0x0))){const _0x514250=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x434131,'accept');return this['forceDefaultExecution'](()=>_0x514250([_0x176eb6],null,_0x3c3423)),null;}}else{const _0x132941=_0x176eb6['getIntersection'](_0x48c8bd['getFirstRange']());null!==_0x132941&&_0x48c8bd['_onDiscard']([_0x132941],null,_0x3c3423);}}if(_0x176eb6['detach'](),_0x176eb6['isCollapsed']||'$graveyard'==_0x176eb6['root']['rootName'])return null;let _0x123411=null,_0x35ac29=_0x176eb6['start'],_0x599030=_0x176eb6['end'];const _0x41f5ae=this['_findSuggestions'](_0x176eb6,'deletion');for(const {suggestion:_0x4c3b83,meta:_0x229817}of _0x41f5ae){const _0x4cd0df=this['_model']['createRange'](_0x35ac29,_0x599030);if(_0x229817['isOwn']&&(this['_mergeNestedSuggestions']||!_0x229817['containsRangeInObject']&&!_0x229817['isInsideObject'])){if(_0x4c3b83['isMultiRange']){if(!Yt(_0x4c3b83,_0x3c3423))continue;let _0x72173c=!0x0;for(const _0x45d427 of _0x4c3b83['getRanges']()){if(_0x45d427['containsRange'](_0x4cd0df,!0x0))return _0x4c3b83;_0x4cd0df['containsRange'](_0x45d427)||(_0x72173c=!0x1);}_0x72173c&&_0x4c3b83['discard']();}else{const _0x437eba=_0x4c3b83['getFirstRange']();if(_0x437eba['containsRange'](_0x4cd0df,!0x0))return _0x4c3b83;if(!Yt(_0x4c3b83,_0x3c3423)){_0x4cd0df['containsRange'](_0x437eba)?_0x4c3b83['removeMarkers']():_0x437eba['containsPosition'](_0x35ac29)?_0x35ac29=_0x437eba['end']:_0x437eba['containsPosition'](_0x599030)&&(_0x599030=_0x437eba['start']);continue;}_0x35ac29=_0x35ac29['isBefore'](_0x437eba['start'])?_0x35ac29:_0x437eba['start'],_0x599030=_0x599030['isAfter'](_0x437eba['end'])?_0x599030:_0x437eba['end'],_0x3c3423=Object['assign']({},_0x4c3b83['attributes']),_0x123411?_0x437eba['start']['isBefore'](_0x123411['getFirstRange']()['start'])?(_0x123411['removeMarkers'](),_0x123411=_0x4c3b83):_0x4c3b83['removeMarkers']():_0x123411=_0x4c3b83;}}}if(_0x123411)return this['_setSuggestionRange'](_0x123411,this['_model']['createRange'](_0x35ac29,_0x599030)),_0x123411;{const _0x225b2d=_0x38b19c(),_0x54ace7=this['_model']['createRange'](_0x35ac29,_0x599030),_0x118a42=_0x4e880e['id'],_0x4e53f6=_0x434131?'deletion:'+_0x434131:'deletion',_0x1f3e05=this['_setSuggestionData']({'id':_0x225b2d,'type':_0x4e53f6,'createdAt':new Date(),'authorId':_0x118a42,'attributes':_0x3c3423});return this['_addSuggestionMarker'](_0x4e53f6,_0x225b2d,_0x118a42,_0x54ace7),_0x1f3e05;}}['markMultiRangeDeletion'](_0xb9aa03,_0x31fe70='multi',_0x4474cf={}){const _0xf8ddfc=this['editor']['plugins']['get']('Users')['me'],_0x4d9bd2=_0xb9aa03['map'](_0x4d5be4=>new _0x5d59ab(_0x4d5be4['start'],_0x4d5be4['end'])),_0x53fb11=new Set();this['_trackingSessionId']&&(_0x4474cf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x29fa35,meta:_0x316f69}of this['_findSuggestions'](_0x4d9bd2,'insertion'))_0x316f69['isOwn']&&!_0x316f69['isNextTo']&&_0x53fb11['add'](_0x29fa35);for(const _0x31575d of _0x53fb11)if(_0x31575d['isMultiRange']){const _0x484025=_0x31575d['getRanges']();(!_0x31575d['attributes']||!_0x31575d['attributes']['skipNestingCheck'])&&(_0x484025['every'](_0x372c20=>_0x4d9bd2['some'](_0x5043df=>_0x5043df['containsRange'](_0x372c20,!0x0)))&&_0x31575d['discard']());if(_0x4d9bd2['every'](_0x1a714d=>_0x484025['some'](_0x5cdbff=>_0x5cdbff['containsRange'](_0x1a714d,!0x0)))){const _0x306090=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31fe70,'accept');return this['forceDefaultExecution'](()=>_0x306090(_0xb9aa03,null,_0x4474cf)),null;}}else{const _0x33f2cd=_0x31575d['getFirstRange']();_0x4d9bd2['some'](_0x5246d1=>_0x5246d1['containsRange'](_0x33f2cd,!0x0))&&_0x31575d['discard']();if(_0x4d9bd2['every'](_0x416c7a=>_0x33f2cd['containsRange'](_0x416c7a,!0x0))){const _0x4c218b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31fe70,'accept');return this['forceDefaultExecution'](()=>_0x4c218b(_0x4d9bd2,null,_0x4474cf)),null;}}const _0x4eaa24=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31fe70,'join');let _0x1c2b76=null;for(const _0x4f46f8 of this['getSuggestions']())if(_0x4f46f8['author']['id']==_0xf8ddfc['id']&&_0x4f46f8['isInContent']&&'deletion'==_0x4f46f8['type']&&_0x4f46f8['subType']==_0x31fe70&&Yt(_0x4f46f8,_0x4474cf)&&(_0x4eaa24(_0x4f46f8['getRanges'](),_0x4d9bd2)||_0x4eaa24(_0x4d9bd2,_0x4f46f8['getRanges']()))){if(_0x1c2b76){if(_0x4f46f8['commentThread']&&_0x4f46f8['commentThread']['length'])continue;for(const _0x69f807 of _0x4f46f8['getRanges']())_0x1c2b76['isIntersectingWithRange'](_0x69f807)||_0x1c2b76['addRange'](_0x69f807);_0x4f46f8['removeMarkers']();}else{_0x1c2b76=_0x4f46f8;for(const _0x5bda30 of _0x4d9bd2)_0x4f46f8['isIntersectingWithRange'](_0x5bda30)||_0x4f46f8['addRange'](_0x5bda30);}}if(_0x1c2b76)return _0x1c2b76;_0x53fb11['clear']();for(const {suggestion:_0x230f13,meta:_0x1e1a1c}of this['_findSuggestions'](_0x4d9bd2,'deletion'))_0x1e1a1c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1e1a1c['containsRangeInObject']&&!_0x1e1a1c['isInsideObject'])&&Yt(_0x230f13,_0x4474cf)&&_0x53fb11['add'](_0x230f13);for(const _0x40eb99 of _0x53fb11){const _0x23149c=_0x40eb99['getRanges']();if(!_0x4474cf||!_0x4474cf['skipNestingCheck']){if(_0x4d9bd2['every'](_0x277fb4=>_0x23149c['some'](_0x139450=>_0x139450['containsRange'](_0x277fb4,!0x0))))return _0x40eb99;}(!_0x40eb99['attributes']||!_0x40eb99['attributes']['skipNestingCheck'])&&(_0x23149c['every'](_0x1a8cd3=>_0x4d9bd2['some'](_0x55a074=>_0x55a074['containsRange'](_0x1a8cd3,!0x0)))&&_0x40eb99['discard']());}const _0x4c609a=_0x38b19c(),_0xf53bdd=_0xf8ddfc['id'],_0x16f92d='deletion:'+_0x31fe70,_0x2a35d9=this['_setSuggestionData']({'id':_0x4c609a,'type':_0x16f92d,'createdAt':new Date(),'authorId':_0xf53bdd,'attributes':_0x4474cf});for(const _0x584598 of _0x4d9bd2)_0x584598['detach'](),_0x584598['isCollapsed']||'$graveyard'==_0x584598['root']['rootName']||this['_addSuggestionMarker'](_0x16f92d,_0x4c609a,_0xf53bdd,_0x584598,o['getMultiRangeId']());return _0x2a35d9;}['markAttributeChange'](_0x49e86e,_0x166eac,_0x3448d2,_0x52ca42,_0x2a5dfd){if(_0x49e86e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x42d49c=this['editor']['plugins']['get']('Users')['me']['id'],_0x5c0271=Array['from'](this['_suggestions']['values']())['filter'](_0x59d140=>'attribute'==_0x59d140['type']&&_0x59d140['data']['key']==_0x166eac&&_0x59d140['isIntersectingWithRange'](_0x49e86e));if(this['_trackingSessionId']&&(_0x2a5dfd['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x48bb30=this['_findSuggestions'](_0x49e86e,'insertion')['filter'](({meta:_0x249294})=>_0x249294['isOwn']&&!_0x249294['isInsideObject']&&!_0x249294['isNextTo'])['map'](({suggestion:_0x981351})=>_0x981351);_0x5c0271['unshift'](..._0x48bb30);}const _0x193bb2=new Map([[_0x49e86e,_0x3448d2]]);for(const _0x22fbc1 of _0x5c0271){const _0x179dbf='attribute'==_0x22fbc1['type']?_0x22fbc1['data']['oldValue']:void 0x0,_0x5c3784=_0x22fbc1['getFirstRange'](),_0x3442a1=Array['from'](_0x193bb2['keys']())['find'](_0x324561=>_0x324561['isIntersecting'](_0x5c3784));if(!_0x3442a1)continue;const _0x4d8e52=_0x3442a1['getDifference'](_0x5c3784);this['_isBlockAttribute'](_0x166eac)&&'insertion'==_0x22fbc1['type']&&0x0!=_0x4d8e52['length']||(_0x193bb2['delete'](_0x3442a1),_0x4d8e52['forEach'](_0x3652d5=>{_0x193bb2['set'](_0x3652d5,_0x3448d2);}),'insertion'!=_0x22fbc1['type']&&_0x179dbf!=_0x52ca42&&_0x193bb2['set'](_0x3442a1['getIntersection'](_0x5c3784),_0x179dbf));}const _0x5ca99a=[];for(const [_0x193976,_0x576d48]of _0x193bb2){const _0x173ade=_0x38b19c(),_0x213e2e={'key':_0x166eac,'oldValue':_0x576d48,'newValue':_0x52ca42};_0x166eac['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':_0x166eac});const _0x5c5e1b=('attribute:'+(_0x166eac+'|'+Kt({'newValue':_0x52ca42})))['substring'](0x0,0x3c),_0x5aa22d=this['_setSuggestionData']({'id':_0x173ade,'type':_0x5c5e1b,'data':_0x213e2e,'createdAt':new Date(),'authorId':_0x42d49c,'attributes':_0x2a5dfd});_0x5ca99a['push'](_0x5aa22d),this['_addSuggestionMarker'](_0x5c5e1b,_0x173ade,_0x42d49c,_0x193976);}return _0x5ca99a;}['enableDefaultAttributesIntegration'](_0x2d7cb6){this['enableCommand'](_0x2d7cb6,(_0x527107,..._0x2cb9f3)=>{this['_recordAttributeChanges'](()=>{_0x527107(..._0x2cb9f3);});});}['registerBlockAttribute'](_0x36dd98){this['_blockAttributeKeys']['add'](_0x36dd98);}['registerInlineAttribute'](_0x5d3185){this['_inlineAttributeKeys']['add'](_0x5d3185);}['startTrackingSession'](_0x48a0b5){return this['_trackingSessionId']=void 0x0!==_0x48a0b5?_0x48a0b5:_0x38b19c(),this['_trackingSessionId'];}['_getAttributeKey'](_0x16f79c){return'attribute'==_0x16f79c['type']?_0x16f79c['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x14ab82,_0x44b4e8){const _0x2dc607=_0x14ab82['getFirstMarker']();this['_model']['change'](_0xdfd238=>{_0xdfd238['updateMarker'](_0x2dc607,{'range':_0x44b4e8});});}['_addThreadToSuggestion'](_0x4a81b5){const _0x403273=_0x4a81b5['id'],_0xb8fcd1=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x403273)||this['_commentsRepository']['addCommentThread']({'channelId':_0xb8fcd1,'threadId':_0x403273,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x187ba2=this['_commentsRepository']['getCommentThread'](_0x403273);_0x187ba2['unbind']('isRemovable'),_0x187ba2['isRemovable']=!0x1,_0x4a81b5['commentThread']=_0x187ba2;}['_checkSuggestionCorrectness'](_0x4463d2,_0x3fe126,_0x5aad6a,_0x4e732d){if(_0x4463d2['type']!=_0x3fe126||_0x4463d2['subType']!=_0x5aad6a||_0x4463d2['creator']['id']!=_0x4e732d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1de5c6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xcc0cf3,_0x10ec2f){const _0x3c37b2=_0xcc0cf3['getFirstRange']();if(_0x10ec2f['isEqual'](_0x3c37b2))_0xcc0cf3['removeMarkers']();else{if(_0x3c37b2['containsRange'](_0x10ec2f)){const _0x516d2d=this['_model']['createPositionAt'](_0x10ec2f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xcc0cf3,this['_model']['createRange'](_0x3c37b2['start'],_0x516d2d));const _0x3e7479=_0x38b19c(),_0x247981=_0xcc0cf3['creator']['id'],_0x5a38d7=_0xcc0cf3['type']+':'+_0xcc0cf3['subType'];this['_setSuggestionData']({'id':_0x3e7479,'type':_0x5a38d7,'createdAt':new Date(),'authorId':_0x247981,'data':_0xcc0cf3['data'],'attributes':_0xcc0cf3['attributes']});const _0x3b1242=this['_model']['createPositionAt'](_0x10ec2f['end']['parent'],'after'),_0x48b538=this['_model']['createRange'](_0x3b1242,_0x3c37b2['end']);this['_addSuggestionMarker'](_0x5a38d7,_0x3e7479,_0x247981,_0x48b538);}else{if(_0x3c37b2['containsPosition'](_0x10ec2f['start'])){const _0xb65b24=this['_model']['createPositionAt'](_0x10ec2f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xcc0cf3,this['_model']['createRange'](_0x3c37b2['start'],_0xb65b24));}else{const _0x2b77a6=this['_model']['createPositionAt'](_0x10ec2f['end']['parent'],'after');this['_setSuggestionRange'](_0xcc0cf3,this['_model']['createRange'](_0x2b77a6,_0x3c37b2['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1c3da5){for(const {suggestion:_0xf6916b,meta:_0x61248e}of this['_findSuggestions'](_0x1c3da5,'insertion')){if(!_0x61248e['isOwn'])continue;const _0x2a655d=_0xf6916b['getRanges']();for(const _0x100548 of _0x2a655d)if(!_0x1c3da5['getDifference'](_0x100548)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4470a2){const _0x4a2157=this['editor']['plugins']['get']('Users')['getUser'](_0x4470a2);if(!_0x4a2157)throw new _0x1de5c6('track-changes-user-not-found',this);return _0x4a2157;}['_getExternalAuthor'](_0x40aab5){const _0x6820f7=this['editor']['plugins']['get']('Users'),_0x4b336e=_0x1b1f05('external:'+_0x40aab5),_0x42449d=_0x6820f7['getUser'](_0x4b336e);return _0x42449d||_0x6820f7['addUser']({'id':_0x4b336e,'name':_0x40aab5});}['_createSuggestion'](_0x302ce5,_0x800479,_0x1a3fda,_0x1826dd,_0x31b3af,_0x56dc86){const _0x52c1dc=this['_getAuthorFromId'](_0x1826dd),_0x3f7641=this['_suggestionFactory']['buildSuggestion'](_0x302ce5,_0x800479,_0x1a3fda,_0x52c1dc,_0x31b3af,_0x5ccb17=>{this['_updateSuggestionData'](_0x1a3fda,{'attributes':_0x5ccb17});const _0x3541c3=this['getSuggestion'](_0x1a3fda);this['_joinWithAdjacentSuggestions'](new Set([_0x3541c3])),this['_refreshSuggestionsChain'](new Set([_0x3541c3]));},_0x56dc86);return this['listenTo'](_0x3f7641,'accept',()=>{this['_updateSuggestionData'](_0x1a3fda,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3f7641,'discard',()=>{this['_updateSuggestionData'](_0x1a3fda,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1a3fda,_0x3f7641),this['_suggestionState']['set'](_0x3f7641,'notReady'),_0x3f7641;}['_splitMarkerName'](_0x5a8367){const _0x4ab222=_0x5a8367['split'](':');return{'group':_0x4ab222[0x0],'type':_0x4ab222[0x1],'subType':_0x4ab222['length']>=0x5?_0x4ab222[0x2]:null,'id':_0x4ab222['length']<0x5?_0x4ab222[0x2]:_0x4ab222[0x3],'authorId':_0x4ab222['length']<0x5?_0x4ab222[0x3]:_0x4ab222[0x4],'markerCount':0x6==_0x4ab222['length']?_0x4ab222[0x5]:null};}['_breakSuggestionMarker'](_0xd9bbe2,_0x3e1eef,_0x14724e){const _0x125d5c=_0xd9bbe2['getFirstRange'](),_0x453954=_0x125d5c['start'],_0x50fc1d=_0x125d5c['end'];this['_setSuggestionRange'](_0xd9bbe2,this['_model']['createRange'](_0x453954,_0x3e1eef));const _0xdd78b0=_0x38b19c(),_0x49ed46=_0xd9bbe2['creator']['id'],_0x4f3306=_0xd9bbe2['type']+(_0xd9bbe2['subType']?':'+_0xd9bbe2['subType']:'');this['_setSuggestionData']({'id':_0xdd78b0,'type':_0x4f3306,'createdAt':new Date(),'authorId':_0x49ed46,'originalSuggestionId':_0xd9bbe2['_originalSuggestionId']||_0xd9bbe2['id'],'attributes':_0xd9bbe2['attributes'],'data':_0xd9bbe2['data']});const _0x431fdf=this['_getAttributeKey'](_0xd9bbe2);('formatBlock'==_0xd9bbe2['type']||_0x431fdf&&this['_isBlockAttribute'](_0x431fdf))&&(_0x14724e=this['_model']['createPositionBefore'](_0x14724e['parent'])),this['_addSuggestionMarker'](_0x4f3306,_0xdd78b0,_0x49ed46,this['_model']['createRange'](_0x14724e,_0x50fc1d));}['_findSuggestions'](_0x4f1d4a,_0x4aa2c1=null){const _0x29db81=[],_0x423d93=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4f1d4a)||(_0x4f1d4a=[_0x4f1d4a]);for(const _0x1320a3 of this['getSuggestions']()){if(!_0x1320a3['isInContent'])continue;if(_0x4aa2c1&&_0x1320a3['type']!=_0x4aa2c1)continue;let _0x480329=!0x1;for(const _0x2a002e of _0x1320a3['getRanges']()){for(const _0x4e4f25 of _0x4f1d4a){const _0x310ae0=_0x4e4f25['start']['isEqual'](_0x2a002e['end'])||_0x4e4f25['end']['isEqual'](_0x2a002e['start']);if(_0x310ae0||_0x4e4f25['getIntersection'](_0x2a002e)){const _0x2b04f9=_0x4e4f25['containsRange'](_0x2a002e)&&Gt(this['_model']['schema'],_0x2a002e['start'],_0x4e4f25),_0x3008b5=_0x2a002e['containsRange'](_0x4e4f25)&&Gt(this['_model']['schema'],_0x4e4f25['start'],_0x2a002e);_0x29db81['push']({'suggestion':_0x1320a3,'meta':{'isOwn':_0x423d93==_0x1320a3['author'],'isNextTo':_0x310ae0,'isInsideObject':_0x2b04f9,'containsRangeInObject':_0x3008b5}}),_0x480329=!0x0;break;}}if(_0x480329)break;}}return _0x29db81;}['_addSuggestionMarker'](_0x9a35c0,_0x1e26a2,_0x5dca2b,_0x54257a,_0x362b18){this['_model']['change'](_0x27c9bd=>{let _0x10237e='suggestion:'+_0x9a35c0+':'+_0x1e26a2+':'+_0x5dca2b;_0x362b18&&(_0x10237e=_0x10237e+':'+_0x362b18),_0x27c9bd['addMarker'](_0x10237e,{'range':_0x54257a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x130c82){const _0x5e2a60=_0x130c82['previous'],_0xa0d766=_0x130c82['next'];_0x130c82['previous']=null,_0x130c82['next']=null,null!=_0x5e2a60&&_0x5e2a60['next']==_0x130c82&&(_0x5e2a60['next']=_0xa0d766),null!=_0xa0d766&&_0xa0d766['previous']==_0x130c82&&(_0xa0d766['previous']=_0x5e2a60),'ready'==this['_suggestionState']['get'](_0x130c82)&&(this['_suggestionState']['set'](_0x130c82,'removed'),this['fire']('suggestionUnloaded',_0x130c82,_0x5e2a60,_0xa0d766));}['_setSuggestionData'](_0xfb0d6b){const _0x4e4c8c=_0xfb0d6b['id'],_0x565033=this['addSuggestionData'](_0xfb0d6b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3f2814=this['editor']['plugins']['get']('PendingActions'),_0x20a974=_0x565033['hasComments'],_0x419464=_0x565033['subType']?_0x565033['type']+':'+_0x565033['subType']:_0x565033['type'],_0x20321a=this['editor']['locale'],_0x446748=_0x3f2814['add'](c(_0x20321a,'PENDING_ACTION_SUGGESTION')),_0x4fb9c2={'id':_0x4e4c8c,'type':_0x419464,'hasComments':_0x20a974,'data':_0xfb0d6b['data']||null,'originalSuggestionId':_0xfb0d6b['originalSuggestionId']||null,'attributes':_0x565033['attributes']};this['_adapter']['addSuggestion'](_0x4fb9c2)['then'](_0x573995=>{_0x565033['_saved']=!0x0,_0x3f2814['remove'](_0x446748),_0x573995&&_0x573995['createdAt']&&(this['_suggestions']['get'](_0x4e4c8c)['createdAt']=_0x573995['createdAt']);})['catch'](_0x361e25=>{throw _0x4270e9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x565033['discard']();}),_0x565033['stopListening'](),this['_suggestions']['delete'](_0x565033['id']),this['_suggestionState']['delete'](_0x565033),_0x361e25;});}return _0x565033;}['_isBlockAttribute'](_0x5c630f){return this['_blockAttributeKeys']['has'](_0x5c630f);}['_updateSuggestionData'](_0x1d81d5,_0x3173c6){const _0x4be58e=this['editor']['plugins']['get']('PendingActions'),_0x5708c2=this['getSuggestion'](_0x1d81d5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5708c2['_saved']){const _0x31dcea=_0x4be58e['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1d81d5,_0x3173c6)['then'](()=>{_0x4be58e['remove'](_0x31dcea);});}else _0x5708c2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1d81d5,_0x3173c6);});}}['_getSuggestionData'](_0x4754f0){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1de5c6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4754f0);}['_handleNewSuggestionMarker'](_0x34da19){const {id:_0x4097a7,type:_0x15ebb5,subType:_0xbada1b,authorId:_0x7df6e5}=this['_splitMarkerName'](_0x34da19),_0x629e8b=this['_suggestions']['get'](_0x4097a7)||this['_createSuggestion'](_0x15ebb5,_0xbada1b,_0x4097a7,_0x7df6e5,{});switch(this['_checkSuggestionCorrectness'](_0x629e8b,_0x15ebb5,_0xbada1b,_0x7df6e5),this['_suggestionState']['get'](_0x629e8b)){case'notReady':this['_getSuggestionData'](_0x4097a7)['then'](_0x4bb792=>{let _0x3efabd=Promise['resolve']();_0x4bb792['hasComments']&&(_0x3efabd=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4097a7})),_0x3efabd['then'](()=>{this['addSuggestionData'](_0x4bb792)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x629e8b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4097a7,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x629e8b,'ready'),this['fire']('suggestionLoaded',_0x629e8b);break;case'ready':this['fire']('suggestionChanged',_0x629e8b);}return _0x629e8b['addMarkerName'](_0x34da19),_0x629e8b;}['_refreshSuggestionsChain'](_0x5aef5f){const _0x244784=Array['from'](_0x5aef5f),_0x1ce0b7=_0x244784['filter'](_0x281759=>'attribute'==_0x281759['type']);this['_refreshAttributeSuggestionsChain'](_0x1ce0b7);const _0x373f86=_0x244784['filter'](_0x2ab244=>!_0x2ab244['isMultiRange']&&'attribute'!=_0x2ab244['type']),_0x2d7a18=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13a162=>!_0x13a162['isMultiRange']&&'attribute'!=_0x13a162['type']),_0x227814=_0x2d7a18['filter'](_0xac14c=>!_0x5aef5f['has'](_0xac14c)),_0x5f051a=new Map(_0x2d7a18['map'](_0x2ebe33=>[_0x2ebe33,this['_suggestionFactory']['getSuggestionCallback'](_0x2ebe33['type'],_0x2ebe33['subType'],'chain')])),_0x18881f=new Map(_0x2d7a18['map'](_0x330802=>[_0x330802,_0x330802['getFirstRange']()])),_0x1a6386=new Set(),_0x1e901f=new Set();for(let _0x2f3844=0x0;_0x2f3844<_0x373f86['length'];_0x2f3844++)_0x396740(_0x373f86[_0x2f3844],_0x373f86,_0x2f3844+0x1);for(let _0x186aa3=0x0;_0x186aa3<_0x373f86['length'];_0x186aa3++)_0x396740(_0x373f86[_0x186aa3],_0x227814,0x0);const _0x1a8269=new Set();for(let _0x2f4aff=0x0;_0x2f4aff<_0x373f86['length'];_0x2f4aff++){const _0x54141e=_0x373f86[_0x2f4aff];!_0x1e901f['has'](_0x54141e)&&_0x54141e['previous']&&(_0x1a8269['add'](_0x54141e['previous']),_0x54141e['previous']['next']===_0x54141e&&(_0x54141e['previous']['next']=null),_0x54141e['previous']=null),!_0x1a6386['has'](_0x54141e)&&_0x54141e['next']&&(_0x1a8269['add'](_0x54141e['next']),_0x54141e['next']['previous']===_0x54141e&&(_0x54141e['next']['previous']=null),_0x54141e['next']=null);}function _0x396740(_0x26677c,_0xc74d7e,_0x51b801){for(let _0x3c7a5a=_0x51b801;_0x3c7a5a<_0xc74d7e['length'];_0x3c7a5a++){const _0x4a188e=_0x5de4eb(_0x26677c,_0xc74d7e[_0x3c7a5a]);_0x4a188e&&(_0x4a188e[0x0]['next']=_0x4a188e[0x1],_0x4a188e[0x1]['previous']=_0x4a188e[0x0],_0x1a6386['add'](_0x4a188e[0x0]),_0x1e901f['add'](_0x4a188e[0x1]));}}function _0x5de4eb(_0x5593b8,_0x13edfa){if(_0x5593b8['author']['id']!==_0x13edfa['author']['id'])return null;const _0x7f9ae7=_0x5f051a['get'](_0x5593b8)(_0x5593b8,_0x13edfa,_0x18881f['get'](_0x5593b8),_0x18881f['get'](_0x13edfa));if(!_0x7f9ae7)return null;return _0x5f051a['get'](_0x13edfa)(_0x5593b8,_0x13edfa,_0x18881f['get'](_0x5593b8),_0x18881f['get'](_0x13edfa))?_0x7f9ae7[0x1]['commentThread']&&_0x7f9ae7[0x1]['commentThread']['length']?null:_0x7f9ae7:null;}_0x1a8269['size']&&this['_refreshSuggestionsChain'](_0x1a8269);}['_refreshAttributeSuggestionsChain'](_0x210c28){if(0x0==_0x210c28['length'])return;const _0x1cf282=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x203f35=>'attribute'==_0x203f35['type']&&_0x203f35['_isDataLoaded']),_0x5a7f66=[],_0x2a7614=new Map();for(const _0x591b35 of _0x1cf282){const _0xe81dbc=_0x1b1f05(_0x591b35['attributes']);_0x2a7614['has'](_0xe81dbc)||(_0x2a7614['set'](_0xe81dbc,_0x5a7f66['length']),_0x5a7f66['push']([]));const _0x513c20=_0x2a7614['get'](_0xe81dbc);_0x5a7f66[_0x513c20]['push'](_0x591b35);}!(function(){_0x5a7f66['sort']((_0x19c855,_0x251310)=>{const _0x1c7f68=_0x19c855[0x0]['createdAt'],_0x3ba53b=_0x251310[0x0]['createdAt'];return _0x1c7f68==_0x3ba53b?_0x19c855[0x0]['attributes']['groupId']<_0x251310[0x0]['attributes']['groupId']?-0x1:0x1:_0x1c7f68<_0x3ba53b?-0x1:0x1;});for(const _0x53c56c of _0x5a7f66)_0x53c56c['sort']((_0xcdcd02,_0x21e3d8)=>_0xcdcd02['id']<_0x21e3d8['id']?-0x1:0x1);}());for(let _0x3e7619=0x0;_0x3e7619<_0x5a7f66['length'];_0x3e7619++){if(0x0==_0x5a7f66[_0x3e7619]['length'])continue;const _0x363874=[];for(let _0x17f1bf=_0x3e7619+0x1;_0x17f1bf<_0x5a7f66['length'];_0x17f1bf++)0x0!=_0x5a7f66[_0x17f1bf]['length']&&_0x86d7db(_0x5a7f66[_0x3e7619],_0x5a7f66[_0x17f1bf])&&_0x363874['push'](_0x17f1bf);for(const _0x3d3267 of _0x363874)_0x5a7f66[_0x3e7619]=_0x5a7f66[_0x3e7619]['concat'](_0x5a7f66[_0x3d3267]),_0x5a7f66[_0x3d3267]=[];}for(const _0x58c6d5 of _0x5a7f66)for(let _0x39e2ac=0x0;_0x39e2ac<_0x58c6d5['length'];_0x39e2ac++){const _0x359989=_0x58c6d5[_0x39e2ac+0x1]||null;_0x58c6d5[_0x39e2ac]['next']!==_0x359989&&(_0x58c6d5[_0x39e2ac]['next']=_0x359989);}for(const _0x1aa180 of _0x5a7f66)for(let _0x2282fb=0x0;_0x2282fb<_0x1aa180['length'];_0x2282fb++){const _0x28131a=_0x1aa180[_0x2282fb-0x1]||null;_0x1aa180[_0x2282fb]['previous']!==_0x28131a&&(_0x1aa180[_0x2282fb]['previous']=_0x28131a);}function _0x86d7db(_0x3dab47,_0x5f443d){if(_0x3dab47[0x0]['attributes']['groupId']!==_0x5f443d[0x0]['attributes']['groupId']&&_0x3dab47[0x0]['author']!==_0x5f443d[0x0]['author'])return!0x1;if(!function(_0x1d0fb5,_0xbf920b){if(!_0x1d0fb5['hasComments']&&!_0xbf920b['hasComments'])return!0x0;if(_0x1d0fb5['hasComments']&&_0xbf920b['hasComments'])return!0x1;if(_0x1d0fb5['hasComments']&&_0xbf920b['createdAt']<_0x1d0fb5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xbf920b['hasComments']&&_0x1d0fb5['createdAt']<_0xbf920b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3dab47[0x0],_0x5f443d[0x0]))return!0x1;const _0x2efed6=Ft(_0x3dab47[0x0]['attributes'],['groupId','trackingSessionId']),_0x4a2e62=Ft(_0x5f443d[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x312846(_0x2efed6,_0x4a2e62))return!0x1;if(_0x3dab47[0x0]['attributes']['groupId']==_0x5f443d[0x0]['attributes']['groupId'])return!0x0;if(_0x3dab47[0x0]['attributes']['trackingSessionId']!==_0x5f443d[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3dab47['every'](_0xbc45cc=>_0x5f443d['some'](_0x3ecc55=>_0xbc45cc['getFirstRange']()['isEqual'](_0x3ecc55['getFirstRange']())))&&_0x5f443d['every'](_0xfa964c=>_0x3dab47['some'](_0x1c56a8=>_0xfa964c['getFirstRange']()['isEqual'](_0x1c56a8['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2fbe06){const _0x17698c=Array['from'](_0x2fbe06),_0x49a7a4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x410228=_0x49a7a4['filter'](_0x3dcea4=>!_0x2fbe06['has'](_0x3dcea4)),_0x2f84e6=new Map(_0x17698c['map'](_0x4a6db7=>[_0x4a6db7,this['_suggestionFactory']['getSuggestionCallback'](_0x4a6db7['type'],_0x4a6db7['subType'],'join')])),_0x31c29d=new Map(_0x49a7a4['map'](_0x16ae42=>[_0x16ae42,_0x16ae42['getRanges']()]));for(let _0x2da878=0x0;_0x2da878<_0x17698c['length'];_0x2da878++){if(_0x499a0a(this,_0x17698c[_0x2da878],_0x17698c,_0x2da878+0x1))return!0x0;}for(let _0x384a2e=0x0;_0x384a2e<_0x17698c['length'];_0x384a2e++){if(_0x499a0a(this,_0x17698c[_0x384a2e],_0x410228,0x0))return!0x0;}return!0x1;function _0x499a0a(_0x688282,_0x170ba4,_0x4a8779,_0xf4599c){for(let _0x496332=_0xf4599c;_0x496332<_0x4a8779['length'];_0x496332++){const _0x4e3010=_0x4a8779[_0x496332];if(_0x4e3010['type']!==_0x170ba4['type']||_0x4e3010['author']['id']!==_0x170ba4['author']['id']||_0x4e3010['subType']!==_0x170ba4['subType'])continue;if(!Xt(_0x170ba4,_0x4e3010))continue;if('attribute'==_0x170ba4['type']&&_0x170ba4['data']['oldValue']!=_0x4e3010['data']['oldValue'])continue;if('attribute'==_0x170ba4['type']&&_0x688282['_isBlockAttribute'](_0x170ba4['data']['key']))continue;if('formatBlock'==_0x170ba4['type']){const _0x5634a5=_0x688282['editor']['model'],_0x4040a4=_0x170ba4['getContainedElement']();if(_0x4040a4&&(_0x5634a5['schema']['isObject'](_0x4040a4)||_0x5634a5['schema']['isLimit'](_0x4040a4)))continue;}const _0x5b976b=_0x2f84e6['get'](_0x170ba4),_0x88c9d4=_0x31c29d['get'](_0x170ba4),_0x3f5336=_0x31c29d['get'](_0x4e3010),_0x5d62ad=_0x170ba4['commentThread']&&_0x170ba4['commentThread']['length'],_0x51a129=_0x4e3010['commentThread']&&_0x4e3010['commentThread']['length'];if(!_0x5d62ad&&_0x5b976b(_0x3f5336,_0x88c9d4))return _0x688282['_joinSuggestions'](_0x4e3010,_0x170ba4),_0x31c29d['delete'](_0x170ba4),!0x0;if(!_0x51a129&&_0x5b976b(_0x88c9d4,_0x3f5336))return _0x688282['_joinSuggestions'](_0x170ba4,_0x4e3010),_0x31c29d['delete'](_0x4e3010),!0x0;}return!0x1;}}['_joinSuggestions'](_0x13521e,_0x5aa51c){if(_0x13521e['isMultiRange']){for(const _0x3c9f99 of _0x5aa51c['getRanges']())_0x13521e['addRange'](_0x3c9f99);}else{const _0x4e5218=_0x5aa51c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x13521e,this['_model']['createRange'](_0x13521e['getFirstRange']()['start'],_0x4e5218));}_0x5aa51c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x289bf2,_0x1ed4f1,_0x5b9f32){const _0x559b40=_0x289bf2['startsWith']('format')||_0x289bf2['startsWith']('attribute')?'FORMATTING':_0x289bf2['toUpperCase']();return c(this['editor']['locale'],_0x1ed4f1+'_'+_0x559b40+'_SUGGESTION_ANNOUNCEMENT',_0x5b9f32);}['_initAriaMarkerChangeAnnouncements'](){const _0x5aeb93=this['editor'];if(!_0x5aeb93['ui'])return;const {ariaLiveAnnouncer:_0x5806fd}=_0x5aeb93['ui'];_0x2bb003(this['_model'],({left:_0x4eacee,entered:_0x1a0af0})=>{for(const _0x47c393 of _0x4eacee){const {group:_0x2e5592,type:_0xbcc6e}=this['_splitMarkerName'](_0x47c393['name']);if('suggestion'===_0x2e5592){_0x5806fd['announce'](this['_getMarkerAnnouncementText'](_0xbcc6e,'LEAVE'));break;}}for(const _0x2adcac of _0x1a0af0){const {group:_0x56e813,type:_0x5de33e}=this['_splitMarkerName'](_0x2adcac['name']);if('suggestion'===_0x56e813){_0x5806fd['announce'](this['_getMarkerAnnouncementText'](_0x5de33e,'ENTER',_0x2d997e(_0x6f61cb)));break;}}});}['_processAttributeChanges'](_0x4f1d11){if(this['_recordAttributeSuggestions'])return!0x1;const _0x407bc2=this['editor'],_0x3f7bde=_0x407bc2['model']['document']['differ']['getChanges']();if(0x0==_0x3f7bde['length'])return!0x1;const _0x108aac=[],_0x82e4c5=_0x3f7bde['filter'](_0x2652c8=>'attribute'==_0x2652c8['type']),_0x402692=_0x3f7bde['filter'](_0x1dc4fe=>'insert'==_0x1dc4fe['type']&&'$text'!=_0x1dc4fe['name']),_0x4bed18=_0x3f7bde['filter'](_0x23a7fd=>'remove'==_0x23a7fd['type']&&'$text'!=_0x23a7fd['name']);for(const _0x13ebe7 of _0x82e4c5)_0x108aac['push']({'key':_0x13ebe7['attributeKey'],'newValue':_0x13ebe7['attributeNewValue'],'oldValue':_0x13ebe7['attributeOldValue'],'range':zt(_0x13ebe7['range'],_0x407bc2['model'])});for(const _0x3103d5 of _0x402692){const _0x4f3c83=_0x4bed18['find'](_0x1269a7=>_0x1269a7['position']['isEqual'](_0x3103d5['position']));_0x4f3c83&&_0x108aac['push']({'key':u,'newValue':_0x3103d5['name'],'oldValue':_0x4f3c83['name'],'range':_0x407bc2['model']['createRangeOn'](_0x3103d5['position']['nodeAfter'])});}return 0x0!=_0x108aac['length']&&this['_reduceExistingSuggestions'](_0x4f1d11,_0x108aac);}['_processAttributeSuggestions'](_0x28663c){let _0x3f8380=!0x1;const _0xe2bbfc=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4b3eba=>_0x4b3eba['data']['newRange']&&_0x4b3eba['name']['startsWith']('suggestion:attribute:'));for(const _0x1ca588 of _0xe2bbfc){const {subType:_0x428b2b,id:_0x5d5818}=this['_splitMarkerName'](_0x1ca588['name']),_0x439752=_0x428b2b['split']('|')[0x0];for(const _0x360c9d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x360c9d['id']!=_0x5d5818&&'attribute'==_0x360c9d['type']&&_0x360c9d['data']&&_0x360c9d['data']['key']==_0x439752&&_0x360c9d['getFirstRange']()['isIntersecting'](_0x1ca588['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x360c9d,_0x1ca588['data']['newRange'],_0x28663c),_0x3f8380=!0x0);}return _0x3f8380;}['_recordAttributeChanges'](_0x91be){this['_recordAttributeSuggestions']=!0x0,_0x91be();}['_isRegisteredAttribute'](_0xf70e9e){const _0x6bad14=this['_isBlockAttribute'](_0xf70e9e),_0x53d41e=this['_inlineAttributeKeys']['has'](_0xf70e9e);return _0x6bad14||_0x53d41e;}['_reduceExistingSuggestions'](_0x16b512,_0x48c012){if(0x0==_0x48c012['length'])return!0x1;let _0x98d730=!0x1;for(const _0x2b9b9d of _0x48c012){const _0x5f5134=this['_findSuggestions'](_0x2b9b9d['range'],'attribute')['filter'](_0x264eea=>!_0x264eea['meta']['isNextTo'])['map'](_0x40bf17=>_0x40bf17['suggestion']),_0x2f0055=_0x1b1f05({'newValue':_0x2b9b9d['newValue']});_0x5f5134['filter'](_0x462d52=>{const [_0xbb8903,_0xf30e8d]=_0x462d52['subType']['split']('|');return _0xbb8903==_0x2b9b9d['key']&&_0xf30e8d!=_0x2f0055;})['forEach'](_0x227182=>{this['_reduceSuggestionAttributeRange'](_0x227182,_0x2b9b9d['range'],_0x16b512),_0x98d730=!0x0;});}return _0x98d730;}['_reduceSuggestionAttributeRange'](_0x5548a3,_0x3356c0,_0x4ef917){const _0x162204=_0x5548a3['getFirstRange']()['getDifference'](_0x3356c0);0x0!==_0x162204['length']?0x1!==_0x162204['length']?this['_breakSuggestionMarker'](_0x5548a3,_0x3356c0['start'],_0x3356c0['end']):this['_setSuggestionRange'](_0x5548a3,_0x162204[0x0]):_0x4ef917['removeMarker'](_0x5548a3['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4cb331){this['_editor']=_0x4cb331,this['_model']=_0x4cb331['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x287639,_0x15d6ae,_0x3b06b2,_0x4136ae,_0x1468df,_0x37b694,_0x58f809){return new o(this['_model'],{'type':_0x287639,'subType':_0x15d6ae,'id':_0x3b06b2,'originalSuggestionId':_0x58f809,'author':_0x4136ae,'creator':_0x4136ae,'attributes':_0x1468df,'onAttributesChange':_0x37b694,'onAccept':(..._0x2bacc1)=>this['getSuggestionCallback'](_0x287639,_0x15d6ae,'accept')(..._0x2bacc1),'onDiscard':(..._0x4aeb05)=>this['getSuggestionCallback'](_0x287639,_0x15d6ae,'discard')(..._0x4aeb05)});}['registerCustomCallback'](_0x20129f,_0xab43b2,_0x13d4b4,_0x18bd61){const _0x1a194a=_0x20129f+':'+_0xab43b2+':'+_0x13d4b4;this['_customCallbacks']['set'](_0x1a194a,_0x18bd61);}['getSuggestionCallback'](_0x322c8c,_0x25c250,_0x809a6e){const _0x586f98=_0x322c8c+':'+_0x25c250+':'+_0x809a6e;return this['_customCallbacks']['get'](_0x586f98)||this['_defaultCallbacks']['get'](_0x322c8c+':'+_0x809a6e);}['_registerDefaultCallbacks'](){const _0x1956de=()=>!0x1,_0x2721a7=_0x31fa75=>{_0x31fa75['sort']((_0x333f44,_0x3f1823)=>_0x333f44['start']['isBefore'](_0x3f1823['start'])?0x1:-0x1),this['_model']['change'](_0x1fcd73=>{for(const _0x10de4 of _0x31fa75){let _0x1bd591;_0x1bd591=_0x10de4['end']['isAtEnd']&&_0x10de4['end']['parent']==_0x10de4['start']['nodeAfter']?_0x1fcd73['createSelection'](_0x10de4['start']['nodeAfter'],'on'):_0x1fcd73['createSelection'](_0x10de4),this['_model']['deleteContent'](_0x1bd591,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4604ee=(_0x49c404,_0x597b0f)=>{_0x597b0f&&this['_model']['change'](_0x375bfd=>{const {commandName:_0xdf9fef,commandParams:_0x3e7546=[]}=_0x597b0f,_0x9dd2aa=_0x49c404['map'](_0x2e71ab=>(Lt(_0x2e71ab)&&(_0x2e71ab=this['_model']['createRange'](_0x2e71ab['end'])),_0x2e71ab))['filter'](_0x3878fb=>'$graveyard'!==_0x3878fb['root']['rootName']);if(_0x9dd2aa['length']<0x1)return;const _0x2831eb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4ab61b=>_0x5d59ab['fromRange'](_0x4ab61b));_0x375bfd['setSelection'](_0x9dd2aa);for(const _0x284fe0 of this['_editor']['commands']['commands']())_0x284fe0['refresh']();_0x3e7546['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xdf9fef,..._0x3e7546);const _0x488a19=_0x2831eb['filter'](_0x1ea5db=>'$graveyard'!=_0x1ea5db['root']['rootName']);_0x488a19['length']>0x0&&_0x375bfd['setSelection'](_0x488a19);for(const _0x1bb06c of _0x2831eb)_0x1bb06c['detach']();});},_0x13ffbe=(_0x4cecc4,_0xc68648)=>0x1==_0x4cecc4['length']&&0x1==_0xc68648['length']&&_0x4cecc4[0x0]['end']['isEqual'](_0xc68648[0x0]['start']),_0x12ef89=(_0x1f803b,_0x269fad,_0x3d51d0,_0x103680)=>Qt(_0x1f803b,_0x269fad,_0x3d51d0,_0x103680)?[_0x1f803b,_0x269fad]:Qt(_0x269fad,_0x1f803b,_0x103680,_0x3d51d0)?[_0x269fad,_0x1f803b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1956de),this['_defaultCallbacks']['set']('insertion:discard',_0x2721a7),this['_defaultCallbacks']['set']('insertion:join',_0x13ffbe),this['_defaultCallbacks']['set']('insertion:chain',_0x12ef89),this['_defaultCallbacks']['set']('deletion:accept',_0x2721a7),this['_defaultCallbacks']['set']('deletion:discard',_0x1956de),this['_defaultCallbacks']['set']('deletion:join',_0x13ffbe),this['_defaultCallbacks']['set']('deletion:chain',_0x12ef89),this['_defaultCallbacks']['set']('formatInline:accept',_0x4604ee),this['_defaultCallbacks']['set']('formatInline:discard',_0x1956de),this['_defaultCallbacks']['set']('formatInline:join',_0x13ffbe),this['_defaultCallbacks']['set']('formatInline:chain',_0x1956de),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4604ee),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1956de),this['_defaultCallbacks']['set']('formatBlock:join',_0x13ffbe),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1956de),this['_defaultCallbacks']['set']('attribute:accept',_0x1956de),this['_defaultCallbacks']['set']('attribute:discard',(_0xf675b9,_0x7678aa)=>{if(!_0x7678aa)return;const _0x1e4d74=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x37dccf=>{if(_0x7678aa['key']==u)for(const _0x23a18f of _0xf675b9){const _0x409d40=_0x23a18f['start']['nodeAfter'],_0x2b67a7=_0x7678aa['oldValue'];_0x37dccf['rename'](_0x409d40,_0x2b67a7);}else{if(_0x1e4d74['_isBlockAttribute'](_0x7678aa['key'])){for(const _0x239c36 of _0xf675b9)void 0x0!==_0x7678aa['oldValue']?_0x37dccf['setAttribute'](_0x7678aa['key'],_0x7678aa['oldValue'],_0x239c36['start']['nodeAfter']):_0x37dccf['removeAttribute'](_0x7678aa['key'],_0x239c36['start']['nodeAfter']);}else{for(const _0x2c34aa of _0xf675b9)_0x7678aa['oldValue']?_0x37dccf['setAttribute'](_0x7678aa['key'],_0x7678aa['oldValue'],_0x2c34aa):_0x37dccf['removeAttribute'](_0x7678aa['key'],_0x2c34aa);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x13ffbe);}}function Gt(_0x50a60e,_0x16bd04,_0x269411){for(const _0x249ac4 of _0x16bd04['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x249ac4['root']==_0x249ac4)return!0x1;if(!_0x269411['containsItem'](_0x249ac4))return!0x1;if(_0x50a60e['isObject'](_0x249ac4)||_0x50a60e['isLimit'](_0x249ac4))return!0x0;}return!0x1;}function Lt(_0x268cc3){return _0x268cc3['end']['parent']==_0x268cc3['start']['nodeAfter']&&_0x268cc3['end']['isAtStart'];}function Jt(_0x448f13,_0x454670,_0x4209a1,_0x52e24d){const _0x14e3b8=_0x30dde1=>!_0x30dde1['item']['is']('$textProxy')&&!_0x52e24d['isObject'](_0x30dde1['item']),_0x4d402d=_0x448f13['start']['getLastMatchingPosition'](_0x14e3b8),_0x2159af=_0x448f13['end']['getLastMatchingPosition'](_0x14e3b8,{'direction':'backward'});return(!_0x448f13['start']['isEqual'](_0x4d402d)||!_0x448f13['end']['isEqual'](_0x2159af))&&(_0x4d402d['isBefore'](_0x2159af)?_0x4209a1['updateMarker'](_0x454670,{'range':_0x4209a1['createRange'](_0x4d402d,_0x2159af)}):_0x4209a1['removeMarker'](_0x454670),!0x0);}function Kt(_0x182800){return _0x1b1f05(_0x182800);}function Ht(_0x94e871){const _0x3ddf46=_0x94e871['start']['nodeAfter'];return _0x3ddf46&&_0x3ddf46['is']('element');}function qt(_0x42ebc4){return!Lt(_0x42ebc4)&&!function(_0x36d259){return _0x36d259['start']['parent']==_0x36d259['end']['nodeBefore']&&_0x36d259['start']['isAtEnd'];}(_0x42ebc4);}function zt(_0x139db5,_0x3eeaac){return null==_0x139db5['end']['nodeBefore']&&_0x139db5['end']['parent']==_0x139db5['start']['nodeAfter']?Wt(_0x139db5['start']['nodeAfter'],_0x3eeaac):_0x139db5;}function Wt(_0x4ff441,_0x3197b6){const _0x592a24=_0x3197b6['schema']['isObject'](_0x4ff441)||_0x3197b6['schema']['isSelectable'](_0x4ff441);return _0x3197b6['createRange'](_0x3197b6['createPositionAt'](_0x4ff441,'before'),_0x592a24?_0x3197b6['createPositionAfter'](_0x4ff441):_0x3197b6['createPositionAt'](_0x4ff441,'end'));}function Qt(_0x1eb6d5,_0x352b7a,_0x2e8190,_0x5a60e0){return!!Xt(_0x1eb6d5,_0x352b7a)&&_0x2e8190['end']['isEqual'](_0x5a60e0['start']);}function Xt(_0x2b9424,_0x2d141b){if(!_0x2b9424['_isDataLoaded']||!_0x2d141b['_isDataLoaded'])return!0x1;const _0x502fd4=new Set(Object['keys'](_0x2b9424['attributes'])),_0x47399c=new Set(Object['keys'](_0x2d141b['attributes']));if(_0x502fd4['delete']('groupId'),_0x47399c['delete']('groupId'),0x0==_0x502fd4['size']&&0x0==_0x47399c['size'])return!0x0;if(_0x502fd4['size']!=_0x47399c['size'])return!0x1;const _0x53ab5f={..._0x2b9424['attributes']},_0x2ac59b={..._0x2d141b['attributes']};return delete _0x53ab5f['groupId'],delete _0x2ac59b['groupId'],JSON['stringify'](_0x53ab5f)==JSON['stringify'](_0x2ac59b);}function Yt(_0x1b5a0d,_0xb26cd){const _0x2265c1=Zt(_0x1b5a0d['attributes']),_0x21f0a3=Zt(_0xb26cd);if(!_0x1b5a0d['_isDataLoaded'])return!0x1;for(const _0x265128 of Object['keys'](_0x21f0a3))if(!_0x312846(_0x2265c1[_0x265128],_0x21f0a3[_0x265128]))return!0x1;return!0x0;}function Zt(_0x2e067a){const _0x44f4c3=Object['assign']({},_0x2e067a);return delete _0x44f4c3['skipNestingCheck'],delete _0x44f4c3['tablePasteChainId'],_0x44f4c3;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x46b4f9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4562fb,_0x3096cd,_0x313d88,_0x469a53){super(),this['model']=_0x3096cd,this['view']=_0x313d88,this['commentThreadController']=_0x469a53,this['_editor']=_0x4562fb,this['_acceptCommand']=_0x4562fb['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4562fb['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xb1757a,_0x4842ce)=>_0xb1757a||_0x4842ce),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x57f98d=>_0x57f98d&&this['_editor']['model']['canEditAt'](_0x3096cd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1f14ef=>_0x1f14ef&&this['_editor']['model']['canEditAt'](_0x3096cd['getRanges']())),this['_pendingAction']=null,_0x313d88['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x313d88,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x313d88,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x313d88,'change:isDirty',()=>{_0x313d88['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 _0x1fb975=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1fb975);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x46d72b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3df375,_0x222d44,_0x4c5fb0,_0x173839){super(_0x3df375),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x584eeb(_0x3df375,c(_0x3df375,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x222d44['authoredAt']),this['bind']('authoredAt')['to'](_0x222d44),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',_0x222d44,'authoredAt',this,'descriptionParts',(_0x3d77a8,_0xd41bb4,_0x4b86c5)=>{const _0x2c531f=_0x4b86c5['map'](_0x368bfa=>ls(_0x368bfa['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3d77a8-0x1,_0x222d44['author']['name'],_0xd41bb4?_0x173839['formatDateTime'](_0xd41bb4):'',new DOMParser()['parseFromString'](_0x2c531f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x587789(),this['focusTracker']=new _0x63194(),this['keystrokes']=new _0x199b14(),this['focusCycler']=new _0xaa06c8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4f5102=>_0x4f5102['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x222d44,this['_localUser']=_0x4c5fb0,this['_config']=_0x173839,_0x173839['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x31c3b4(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x148d00}=this['_config'];this['commentsListView']=new _0x148d00(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',_0x32aa38=>_0x32aa38+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1346c2,_0x5e3ef1)=>_0x1346c2||!!_0x5e3ef1);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x37d2e7}=this['_config'],_0x18a823=new _0x37d2e7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4b877a=_0x18a823['commentInputView'];return _0x18a823['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4b877a,'value',(_0x5e937f,_0x8c5a27,_0x255d22)=>!!_0x255d22||_0x5e937f&&!_0x8c5a27),_0x4b877a['on']('submit',(_0x2a81ab,_0x136630)=>{this['fire']('addComment',_0x136630),_0x4b877a['editor']['setData']('');}),_0x4b877a['on']('cancel',()=>this['focus']()),_0x4b877a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x18a823;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x4d23c7,_0x3309c5,_0x58b369,_0x5308ca){super(_0x4d23c7,_0x3309c5,_0x58b369,_0x5308ca),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xceddc0=>_0xceddc0&&_0xceddc0[0x0]?_0xceddc0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4a6cdf,_0x404001)=>{let _0x2fc663='';for(const _0x531c83 of _0x4a6cdf)_0x2fc663+='<p>'+ls(_0x531c83['content'],_0x531c83['color'])+'</p>';return _0x404001?_0x2fc663:_0x2df10f(_0x2fc663,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5308ca['SuggestionView'](_0x4d23c7,_0x3309c5,{'formatDateTime':_0x5308ca['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 _0x4f4045=this['bindTemplate'],_0x55635e=[this['suggestionView']];return this['commentsListView']&&_0x55635e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x55635e['push'](this['commentThreadInputView']),_0x55635e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4f4045['if']('isActive','ck-suggestion-wrapper--active'),_0x4f4045['to']('type',_0x1c3f4f=>'ck-suggestion-'+_0x1c3f4f),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':_0x4f4045['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x55635e};}['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 _0x46d72b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x25798e,_0x11c8c3,_0x73d7dd){super(_0x25798e),this['_model']=_0x11c8c3,this['_config']=_0x73d7dd,this['set']('description',''),this['bind']('authoredAt')['to'](_0x11c8c3),this['acceptButton']=this['_createButton'](c(_0x25798e,'Accept\x20suggestion'),_0x2ecfc2,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x25798e,'Discard\x20suggestion'),_0x4eaca1,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x15f7fd(_0x25798e,_0x11c8c3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x587789([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x63194(),this['keystrokes']=new _0x199b14(),this['focusCycler']=new _0xaa06c8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x563fab=>_0x563fab['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4c330a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4c330a['innerHTML']=this['description'],this['on']('change:description',(_0x3c04dd,_0x5ad065,_0xf45199)=>{_0x4c330a['innerHTML']=_0xf45199;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x469147=this['bindTemplate'],_0x4f4121=[{'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':_0x469147['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x469147['to']('authoredAt',_0x119658=>this['_config']['formatDateTime'](_0x119658))}]}]},{'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']&&_0x4f4121['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':_0x4f4121}]};}['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'](_0x28aef4,_0x40d985,_0x5f1663,_0x127705,_0x3d0b34){const _0x3c28aa=new _0x1c8ce9(this['locale']);return _0x3c28aa['set']({'label':_0x28aef4,'icon':_0x40d985,'tooltip':!0x0,'tooltipPosition':_0x3d0b34}),_0x3c28aa['extendTemplate']({'attributes':{'class':_0x5f1663}}),_0x3c28aa['on']('execute',()=>{this['fire'](_0x127705,this['_model']['id']);}),_0x3c28aa;}['_setupKeyboardNavigation'](){const _0x358708=this['element'];this['keystrokes']['listenTo'](_0x358708);for(const _0x2ba6ca of this['focusables'])this['focusTracker']['add'](_0x2ba6ca['element']),this['keystrokes']['listenTo'](_0x2ba6ca['element']);this['keystrokes']['set']('enter',(_0x17363c,_0x44d36c)=>{_0x358708===_0x17363c['target']&&(this['focusCycler']['focusFirst'](),_0x44d36c());}),this['keystrokes']['set']('esc',(_0x54ba76,_0x3732aa)=>{_0x358708!==_0x54ba76['target']&&(this['focus'](),_0x3732aa());});}}class d extends _0x3525e7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5f401e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x169b99){super(_0x169b99),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2eb524=this['editor']['config'];_0x2eb524['define']('trackChanges.SuggestionThreadView',fe),_0x2eb524['define']('trackChanges.SuggestionView',we),_0x2eb524['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2eb524['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5d7a53,_0x19131e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x30eb43,_0x592128]of this['_handleControllerBuffer']){const _0x4ff7e1=this['_suggestionToController']['has'](_0x30eb43);_0x4ff7e1||_0x592128?_0x4ff7e1&&_0x592128&&this['_destroyController'](_0x30eb43):this['_initializeController'](_0x30eb43);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5d7a53,_0x19131e);}['init'](){const _0x3d6364=this['editor'],_0xb80a80=_0x3d6364['plugins']['get']('TrackChangesEditing'),_0x4ffc6a=_0x3d6364['plugins']['get']('Annotations'),_0x4fa33e=_0x3d6364['plugins']['get']('EditorAnnotations'),_0x1e339e=_0x3d6364['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4fa33e['addSourceCollector'](()=>{const _0x2316ee=[];for(const [_0x1ab1c8,_0x11db0c]of Array['from'](this['_suggestionToController'])){const _0x328e76=_0x1ab1c8['getAllAdjacentSuggestions'](),_0x3468f2=[];for(const _0x32115b of _0x328e76){if(!_0x32115b['isInContent'])continue;if(_0x32115b['isMultiRange']){_0x3468f2['push'](..._0x32115b['getRanges']());continue;}const _0x5f0fc7=_0x32115b['getFirstRange']();if(_0x3468f2['length']>0x0){const _0x2b02fc=_0x3468f2[0x0]['getJoined'](_0x5f0fc7);if(_0x2b02fc){_0x3468f2[0x0]=_0x2b02fc;continue;}}_0x3468f2['push'](_0x5f0fc7);}_0x2316ee['push']([_0x11db0c['view'],_0x3468f2]);}return _0x2316ee;}),this['listenTo'](_0xb80a80,'suggestionLoaded',(_0x55ba80,_0x4fb773)=>{this['listenTo'](_0x4fb773,'change:previous',(_0x5c056b,_0x218615,_0x4411e8,_0x2b71ba)=>{_0x4fb773['isInContent']&&(null==_0x4411e8?(this['_updateController'](_0x2b71ba['head']),this['_handleSuggestionControllerDelayed'](_0x4fb773,!0x1)):(this['_updateController'](_0x4411e8['head']),null==_0x2b71ba&&this['_handleSuggestionControllerDelayed'](_0x4fb773,!0x0)));}),null!==_0x4fb773['previous']?this['_updateController'](_0x4fb773['head']):this['_handleSuggestionControllerDelayed'](_0x4fb773,!0x1);}),this['listenTo'](_0xb80a80,'suggestionUnloaded',(_0x55e0e0,_0x19df2f,_0x798cfd)=>{this['stopListening'](_0x19df2f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x19df2f),this['_suggestionToController']['has'](_0x19df2f)&&this['_destroyController'](_0x19df2f),_0x798cfd&&this['_updateController'](_0x798cfd['head']);}),this['listenTo'](_0xb80a80,'suggestionChanged',(_0x216811,_0x45c8bb)=>{this['_updateController'](_0x45c8bb);}),this['listenTo'](_0x4ffc6a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1e339e,'addComment',(_0x4718e8,{threadId:_0x39fdce,isFromAdapter:_0x1b92be})=>{if(_0x1b92be||!_0xb80a80['hasSuggestion'](_0x39fdce))return;const _0x4a96b8=_0xb80a80['getSuggestion'](_0x39fdce);this['_suggestionToController']['get'](_0x4a96b8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ce565=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5cd85b;for(const _0x5ed741 in _0x4ce565){const _0x9896d7=_0x5ed741,_0x1e7c26=_0x4ce565[_0x9896d7];if('trackChangesLicenseKeyValid'==_0x1e7c26||'trackChangesLicenseKeyInvalid'==_0x1e7c26||'trackChangesLicenseKeyExpired'==_0x1e7c26||'trackChangesLicenseKeyDomainLimit'==_0x1e7c26||'trackChangesLicenseKeyNotAllowed'==_0x1e7c26||'trackChangesLicenseKeyEvaluationLimit'==_0x1e7c26||'trackChangesLicenseKeyTrialLimit'==_0x1e7c26||'trackChangesLicenseKeyUsageLimit'==_0x1e7c26){delete _0x4ce565[_0x9896d7],_0x5cd85b=_0x1e7c26,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5cd85b&&_0x4ce565['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5cd85b&&_0x4ce565['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5cd85b&&_0x4ce565['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5cd85b&&_0x4ce565['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5cd85b&&_0x4ce565['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5cd85b&&_0x4ce565['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5cd85b&&_0x4ce565['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x228c2c=this['editor']['plugins']['get']('Annotations'),_0x573edd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54a6a0=Array['from'](_0x228c2c['activeAnnotations'],_0x3d1317=>_0x3d1317['innerView'])['filter'](_0x9d1da6=>this['_viewToController']['has'](_0x9d1da6)),_0x450224=[];for(const _0x3bf7af of _0x54a6a0){const _0x278464=this['_viewToController']['get'](_0x3bf7af)['model']['getAllAdjacentSuggestions']();_0x450224['push'](..._0x278464['reduce']((_0x20edfb,_0x4a4b10)=>[..._0x20edfb,..._0x4a4b10['getMarkerNames']()],[]));}_0x573edd['activeMarkers']=_0x450224;}['_addUIComponentsToFactory'](){const _0x36288f=this['editor'],_0x59c1c4=_0x36288f['locale'],_0x5c6e20=c(_0x59c1c4,'Track\x20changes'),_0x34c904=new _0x32445d([{'type':'switchbutton','model':new _0x529149({'withText':!0x0,'isToggleable':!0x0,'label':_0x5c6e20,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x529149({'withText':!0x0,'label':c(_0x59c1c4,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x529149({'withText':!0x0,'label':c(_0x59c1c4,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x529149({'withText':!0x0,'label':c(_0x59c1c4,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x529149({'withText':!0x0,'label':c(_0x59c1c4,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x36288f['plugins']['has']('TrackChangesPreview')&&_0x34c904['addMany']([{'type':'separator'},{'type':'button','model':new _0x529149({'withText':!0x0,'label':c(_0x59c1c4,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4a8c78 of _0x34c904)if(ke(_0x4a8c78)){const _0x1bdbb1=_0x36288f['commands']['get'](_0x4a8c78['model']['commandName']);_0x4a8c78['model']['bind']('isOn','isEnabled')['to'](_0x1bdbb1,'value','isEnabled');}_0x36288f['ui']['componentFactory']['add']('trackChanges',_0x18df6d=>this['_createToolbarButton'](_0x18df6d,_0x34c904,_0x5c6e20)),_0x36288f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x134dd1=>this['_createMenuBarMenu'](_0x134dd1,_0x34c904,_0x5c6e20));}['_createToolbarButton'](_0x5a99ee,_0x918c71,_0x38354c){const _0x36ea54=_0xee9e52(_0x5a99ee,_0x23ee1b),_0x2f5ecc=this['editor']['commands']['get']('trackChanges');_0x36ea54['buttonView']['set']({'tooltip':_0x38354c,'label':_0x38354c,'icon':_0x2aebbe}),_0x36ea54['buttonView']['bind']('isOn')['to'](_0x2f5ecc,'value'),_0x36ea54['buttonView']['on']('execute',()=>{_0x2f5ecc['execute'](),this['editor']['editing']['view']['focus']();}),_0x81cc5c(_0x36ea54,_0x918c71,{'role':'menu'});const _0x480c75=[];for(const _0x1a1ba5 of _0x918c71)ke(_0x1a1ba5)&&_0x480c75['push'](this['editor']['commands']['get'](_0x1a1ba5['model']['commandName']));const _0x34c8c5=_0x36ea54['buttonView'];return _0x34c8c5['actionView']['unbind']('isEnabled'),_0x34c8c5['arrowView']['unbind']('isEnabled'),_0x34c8c5['actionView']['bind']('isEnabled')['to'](_0x2f5ecc,'isEnabled'),_0x34c8c5['arrowView']['bind']('isEnabled')['toMany'](_0x480c75,'isEnabled',(..._0x47e91b)=>_0x47e91b['some'](_0x2658f1=>_0x2658f1)),_0x36ea54['on']('execute',_0x4b8e09=>{this['editor']['execute'](_0x4b8e09['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x36ea54;}['_createMenuBarMenu'](_0x286e0a,_0x459434,_0x4f562e){const _0x553115=new _0x2083f1(_0x286e0a),_0x4b6d2e=this['editor']['commands']['get']('trackChanges');_0x553115['buttonView']['set']({'label':_0x4f562e,'icon':_0x2aebbe});const _0x33ba85=new _0x5caa07(_0x286e0a);for(const _0x102978 of _0x459434){if('separator'==_0x102978['type']){_0x33ba85['items']['add'](new _0x208497(_0x286e0a));continue;}const _0x2e06f7=new _0x141ff1(_0x286e0a,_0x553115),_0x254827=new _0x12cc37(_0x286e0a),_0x4effc7=_0x102978['model'];_0x254827['bind'](...Object['keys'](_0x4effc7))['to'](_0x4effc7),_0x254827['delegate']('execute')['to'](_0x553115),_0x254827['on']('execute',()=>{this['editor']['execute'](_0x4effc7['commandName']),this['editor']['editing']['view']['focus']();}),_0x2e06f7['children']['add'](_0x254827),_0x33ba85['items']['add'](_0x2e06f7);}return _0x553115['bind']('isEnabled')['to'](_0x4b6d2e,'isEnabled'),_0x553115['panelView']['children']['add'](_0x33ba85),_0x553115;}['_initializeController'](_0x495c57){const _0x338e65=this['editor'],_0x535287=_0x338e65['config'],_0x4bbfae=_0x338e65['plugins']['get']('Annotations'),_0x4b85c9=_0x338e65['plugins']['get']('CommentsRepository'),_0x2835cf=_0x338e65['plugins']['get']('EditorAnnotations'),_0x26228a=_0x338e65['plugins']['get'](_0x5f401e)['me'],_0x1e44e7=_0x535287['get']('trackChanges')['SuggestionThreadView'],_0x59712c=_0x535287['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3788c1,CommentThreadInputView:_0x3ad29f}=_0x338e65['plugins']['get']('CommentsUI');let _0x3a7d1f,_0x3d6893,_0x39dba9;this['_annotationViews']['has'](_0x495c57['id'])?(_0x3d6893=this['_annotationViews']['get'](_0x495c57['id']),_0x3a7d1f=_0x3d6893['mainView']):(_0x3a7d1f=new _0x1e44e7(_0x338e65['locale'],_0x495c57,_0x26228a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x535287['get']('comments.editorConfig'),'licenseKey':_0x535287['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x535287['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x535287['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x535287['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4fc58f(_0x535287['get']('locale'),_0x338e65['locale']),'CommentView':_0x535287['get']('comments')['CommentView'],'CommentsListView':_0x3788c1,'CommentThreadInputView':_0x3ad29f,'SuggestionView':_0x59712c}),_0x3a7d1f['suggestionView']['acceptButton']['on']('execute',()=>{_0x338e65['editing']['view']['focus']();}),_0x3a7d1f['suggestionView']['discardButton']['on']('execute',()=>{_0x338e65['editing']['view']['focus']();}),_0x3d6893=_0x4bbfae['createAnnotationView'](this['editor']['locale'],_0x3a7d1f),_0x3d6893['bind']('isDirty')['to'](_0x3a7d1f,'isDirty'),_0x3d6893['bind']('length')['to'](_0x3a7d1f),_0x3d6893['bind']('type')['to'](_0x3a7d1f,'type',_0x1f9e20=>'suggestion-'+_0x1f9e20),_0x3a7d1f['on']('escape',()=>{_0x39dba9['fire']('escape');}),this['_annotationViews']['set'](_0x495c57['id'],_0x3d6893));const _0x3afb66=_0x4b85c9['createCommentThreadController'](_0x495c57['commentThread'],_0x3a7d1f),_0x3bba6a=new pe(_0x338e65,_0x495c57,_0x3a7d1f,_0x3afb66),_0x2fd784=_0x495c57['getAllAdjacentSuggestions']()['filter'](_0x58ac08=>_0x58ac08['isInContent']);_0x3a7d1f['descriptionParts']=_0x338e65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2fd784),this['_suggestionToController']['set'](_0x495c57,_0x3bba6a),this['_viewToController']['set'](_0x3a7d1f,_0x3bba6a),_0x39dba9=_0x4bbfae['createAnnotation']({'view':_0x3d6893,'target':()=>{const _0x1525ac=[],_0x49ee57=_0x495c57['getAllAdjacentSuggestions']()['filter'](_0x526485=>_0x526485['isInContent']);for(const _0xb23c44 of _0x49ee57)_0x1525ac['push'](..._0xb23c44['getMarkers']());return _0x89d251(_0x338e65['editing'],_0x1525ac);},'type':()=>'suggestion-'+_0x3bba6a['view']['type']}),_0x4b85c9['_bindAnnotationToEditors'](_0x3a7d1f,_0x39dba9),_0x4bbfae['add'](_0x39dba9),_0x2835cf['registerAnnotation'](_0x39dba9);}['_destroyController'](_0x1aaa8d){const _0x625652=this['editor']['plugins']['get']('CommentsRepository'),_0x3ebc7d=this['editor']['plugins']['get']('Annotations'),_0xd0184a=this['_suggestionToController']['get'](_0x1aaa8d),_0x45c093=_0xd0184a['view'],_0x197e01=_0x3ebc7d['getByInnerView'](_0x45c093);_0x625652['_unbindEditors'](_0x45c093),_0x197e01&&_0x3ebc7d['remove'](_0x197e01),this['_suggestionToController']['delete'](_0x1aaa8d),this['_viewToController']['delete'](_0x45c093),_0xd0184a['destroy']();}['_updateController'](_0x220c2d){if(!_0x220c2d['isInContent']||!this['_suggestionToController']['has'](_0x220c2d))return;const _0x30487e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bd8bf=this['_suggestionToController']['get'](_0x220c2d),_0xb3d452=_0x220c2d['getAllAdjacentSuggestions']();_0x2bd8bf['view']['descriptionParts']=_0x30487e['descriptionFactory']['getDescriptions'](_0xb3d452);}['destroy'](){for(const _0x15f7eb of this['_suggestionToController']['keys']())this['_destroyController'](_0x15f7eb);for(const _0x46a35d of this['_annotationViews']['values']())_0x46a35d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xebd9cf){return'model'in _0xebd9cf;}class k extends _0x3525e7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x103cba){this['editor']['plugins']['get'](p)['adapter']=_0x103cba;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4b3923){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4b3923);}['getSuggestions']({skipNotAttached:_0x787b89=!0x1,toJSON:_0x5422e3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x787b89,'toJSON':_0x5422e3});}['getSuggestion'](_0x2a1c73){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2a1c73);}}const w=['Pagination'];class T extends _0x3525e7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x7ce2fe=this['editor'];if(_0x7ce2fe['config']['define']('trackChangesData.editorCreator',_0x54c5cc=>{const _0x189553=_0x7ce2fe['model']['document']['getRootNames']()['reduce']((_0x4ebaa0,_0x5da0db)=>(_0x4ebaa0[_0x5da0db]='',_0x4ebaa0),{});return _0x7ce2fe['constructor']['create'](_0x189553,_0x54c5cc);}),'function'!=typeof _0x7ce2fe['config']['get']('trackChangesData')['editorCreator'])throw new _0x1de5c6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x242778){return N(this['editor'],!0x0,_0x242778);}['getDataWithDiscardedSuggestions'](_0x2bd2eb){return N(this['editor'],!0x1,_0x2bd2eb);}}class D extends _0x3525e7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5610a0){function _0x4acf1e(_0x2f6cd6){return _0x2f6cd6['map'](_0x45c0bb=>String['fromCharCode'](_0x45c0bb))['join']('');}super(_0x5610a0),this['result']='end',_0x5610a0[_0x4acf1e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4acf1e([0x76,0x69,0x65,0x77])][_0x4acf1e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4acf1e([0x61,0x75,0x74,0x6f]),_0x5610a0[_0x4acf1e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4acf1e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4acf1e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4acf1e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4acf1e([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(_0x486871){return void 0x0!==_0x486871['getRootsAttributes'];}async function N(_0x5bc557,_0x5529c0,_0x40fab9){const _0x25297c=_0x2c03d1(_0x5bc557,w);_0x25297c['plugins']['push'](p,D),_0x25297c['rootsAttributes']=Ge(_0x5bc557)?_0x5bc557['getRootsAttributes']():void 0x0;const _0x4cb9d7=document['createDocumentFragment'](),_0x3755b9=_0x5bc557['config']['get']('trackChangesData')['editorCreator'],_0x2656d7=await _0x3755b9(_0x25297c,()=>function(_0x4fc2ea){const _0x20e075=document['createElement']('div');return _0x4fc2ea['appendChild'](_0x20e075),_0x20e075;}(_0x4cb9d7));!function(_0x3d43ac,_0x298d30){const _0x1a1919=_0x3d43ac['model']['document']['getRootNames']()['reduce']((_0x2c94dd,_0x22ed94)=>(_0x2c94dd[_0x22ed94]=_0x3d43ac['data']['get']({'rootName':_0x22ed94}),_0x2c94dd),{}),_0x28d439=_0x3d43ac['plugins']['get']('Users')['users']['map'](_0x73af61=>({'id':_0x73af61['id'],'name':_0x73af61['name']})),_0x20873e=_0x3d43ac['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x255bf8=_0x3d43ac['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1a2cd2=_0x298d30['plugins']['get']('Users'),_0x11c7d2=_0x298d30['plugins']['get']('TrackChangesEditing'),_0xc0bd30=_0x298d30['plugins']['get']('CommentsRepository');for(const _0x641c1f of _0xc0bd30['getCommentThreads']())_0x641c1f['remove']();for(const _0x4fd38a of _0x28d439)_0x1a2cd2['getUser'](_0x4fd38a['id'])||_0x1a2cd2['addUser'](_0x4fd38a);_0x1a2cd2['me']||_0x1a2cd2['useAnonymousUser']();for(const _0x476857 of _0x255bf8)_0xc0bd30['addCommentThread'](_0x476857);for(const _0x16b191 of _0x20873e)_0x11c7d2['addSuggestionData'](_0x16b191);_0x298d30['data']['set'](_0x1a1919);}(_0x5bc557,_0x2656d7),_0x2656d7['execute'](_0x5529c0?'acceptAllSuggestions':'discardAllSuggestions');const _0x2ebf3e=Ge(_0x2656d7)?_0x2656d7['getFullData'](_0x40fab9):_0x2656d7['data']['get'](_0x40fab9);return await _0x2656d7['destroy'](),_0x2ebf3e;}class Me extends _0x46d72b{['options'];constructor(_0x573758,_0x3e0ab5){super(_0x573758),this['options']=_0x3e0ab5,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'](_0x5d1ec8,_0x3e1dfe){if(!this['element'])return;const _0x56f52e=[];for(const [_0x537e06,_0x3eb4f2]of _0x5d1ec8){const _0x44f8b9=document['createElement']('div');_0x44f8b9['setAttribute']('data-ck-root-name',_0x537e06),_0x44f8b9['className']=_0x3eb4f2['classes']+'\x20ck-track-changes-preview__root-container',_0x44f8b9['innerHTML']=_0x3eb4f2['content'],_0x56f52e['push'](_0x44f8b9);}_0x3e1dfe(this['element'],_0x56f52e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x3735c6{constructor(_0x41d5d){super(_0x41d5d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x25257a=this['editor'],_0x5a8638=_0x25257a['locale'],_0xe0ef74=_0x25257a['plugins']['get']('Dialog');let _0x55e96e;const _0x523426=function(_0x562e3e){const _0xe247fd={};if('editables'in _0x562e3e['ui']['view']){for(const [_0x5abcd5,_0x5b01c9]of Object['entries'](_0x562e3e['ui']['view']['editables']))_0xe247fd[_0x5abcd5]=_0x5b01c9['element'];}else _0xe247fd[_0x562e3e['model']['document']['getRootNames']()[0x0]]=_0x562e3e['ui']['view']['editable']['element'];return _0xe247fd;}(_0x25257a),_0x538fd6=function(_0x38cfcb){let _0x580f6b=0x0;for(const _0x356cb5 of Object['values'](_0x38cfcb))_0x580f6b=Math['max'](_0x580f6b,_0x356cb5['getBoundingClientRect']()['width']);let _0x2d31ea=0x0;for(const _0x5967eb of Object['values'](_0x38cfcb))_0x2d31ea+=_0x5967eb['getBoundingClientRect']()['height'];const _0x1b30ce=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x176bbc=Math['min'](_0x2d31ea,_0x1b30ce);return{'width':_0x580f6b,'height':_0x176bbc};}(_0x523426);_0xe0ef74['show']({'id':'finalContentPreview','title':c(_0x5a8638,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5a8638,{'dialogRects':_0x538fd6}),'onHide':()=>{_0x55e96e['detachFromDom']();},'onShow':()=>{_0x25257a['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1628db=>{const _0x311bf8=this['_standarizeRootsData'](_0x1628db,_0x25257a,_0x523426);_0xe0ef74['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x311bf8,_0x25257a['config']['get']('trackChanges.preview.renderFunction'));}),_0x55e96e=new _0x5c98a4(_0x5a8638,[_0xe0ef74['view']]),_0x55e96e['attachToDom'](),_0x55e96e['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x25257a['once']('destroy',()=>{_0x55e96e['detachFromDom']();});const _0x2ee4ff=_0xe0ef74['view']['headerView']['class'];_0xe0ef74['view']['headerView']['class']=_0x2ee4ff?_0x2ee4ff+'\x20ck-reset_all':'ck-reset_all',_0xe0ef74['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xe0ef74['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x49cee8=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x345c90=_0x49cee8['previewMode'],_0x2f65d9={};if('$labels'===_0x345c90){for(const _0x52788f of _0x49cee8['getMergeFieldsIds']())_0x2f65d9[_0x52788f]=_0x49cee8['getLabel'](_0x52788f)||_0x52788f;}else{const _0x407dd8='$defaultValues'===_0x345c90?_0x49cee8['getDefaultValues']():_0x49cee8['getDataSetValues'](_0x345c90,!0x0);for(const _0x5b3cd9 of Object['entries'](_0x407dd8)){const [_0xb2ac9c,_0x4474c5]=_0x5b3cd9;_0x2f65d9[_0xb2ac9c]=null!==_0x4474c5?_0x4474c5:_0x49cee8['getLabel'](_0xb2ac9c)||_0xb2ac9c;}}return{'mergeFieldsData':_0x2f65d9};}['_standarizeRootsData'](_0x3d6ffc,_0x5db8b6,_0x3ee1de){let _0x2432fe;if('string'==typeof _0x3d6ffc){const _0x232919=_0x5db8b6['model']['document']['getRootNames']()[0x0];_0x2432fe={[_0x232919]:_0x3d6ffc};}else _0x2432fe=_0x3d6ffc;const _0x1e047c=this['_fixMediaEmbeds'](_0x2432fe,_0x5db8b6),_0x3dfab7=function(_0x374e6b,_0xc8acd5){for(const [_0x28310b,_0x3529f5]of _0x374e6b)_0x3529f5['classes']=_0xc8acd5[_0x28310b]['classList']['value']['replace']('ck-focused','');return _0x374e6b;}(this['_sortRoots'](_0x5db8b6)['reduce']((_0x2c0a53,_0x2c6c85)=>(_0x2c0a53['push']([_0x2c6c85,{'content':_0x1e047c[_0x2c6c85],'classes':''}]),_0x2c0a53),[]),_0x3ee1de);return _0x3dfab7;}['_fixMediaEmbeds'](_0x132e64,_0x25b541){if(!_0x25b541['plugins']['has']('MediaEmbedEditing'))return _0x132e64;const _0x8a7b2f=_0x25b541['plugins']['get']('MediaEmbedEditing');for(const [_0xffceea,_0x50c48e]of Object['entries'](_0x132e64)){const _0x42e1e2=document['createElement']('div');_0x42e1e2['innerHTML']=_0x50c48e,(_0x42e1e2['querySelectorAll']('figure.media')['forEach'](_0x569faa=>{const _0x3954d2=_0x569faa['querySelector']('oembed');if(_0x3954d2){const _0x57fd9f=_0x3954d2['getAttribute']('url');if(_0x57fd9f){const _0x4b7658=_0x8a7b2f['registry']['getMediaViewElement'](new _0x270407(_0x25b541['editing']['view']['document']),_0x57fd9f,{'elementName':'','renderForEditingView':!0x0}),_0x1d7eee=document['createElement']('div');_0x1d7eee['classList']['add']('ck-media__wrapper'),_0x4b7658['render'](_0x1d7eee,_0x25b541['editing']['view']['domConverter']),_0x3954d2['replaceWith'](_0x1d7eee);}}}),_0x132e64[_0xffceea]=_0x42e1e2['innerHTML']);}return _0x132e64;}['_sortRoots'](_0x165e92){if(!function(_0x7c51e7){return void 0x0!==_0x7c51e7['getRootsAttributes'];}(_0x165e92))return _0x165e92['model']['document']['getRootNames']();const _0x4da1c1=[],_0xf9048e=new Map();for(const _0xc130c4 of _0x165e92['model']['document']['getRootNames']()){const _0xe00d0d=_0x165e92['editing']['view']['getDomRoot'](_0xc130c4)['getClientRects']()['item'](0x0);_0x4da1c1['push'](_0xc130c4),_0xf9048e['set'](_0xc130c4,_0xe00d0d);}return _0x4da1c1['sort']((_0x12cf2a,_0x4dde1e)=>{const _0x555420=_0xf9048e['get'](_0x12cf2a),_0x69924e=_0xf9048e['get'](_0x4dde1e);return _0x555420['y']-_0x69924e['y']||_0x555420['x']-_0x69924e['x'];}),_0x4da1c1;}}class te extends _0x3525e7{static get['requires'](){return[T,_0x141c18];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x506037){super(_0x506037),_0x506037['commands']['add']('previewFinalContent',new re(this['editor'])),_0x506037['config']['define']('trackChanges.preview.renderFunction',(_0x58d8ad,_0x2451d4)=>{for(const _0x45c3bc of _0x2451d4)_0x58d8ad['appendChild'](_0x45c3bc);});}}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};