@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250522.0 → 0.0.0-nightly-20250523.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x143623,Plugin as _0x413935,PendingActions as _0x1d495c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x48634c,ObservableMixin as _0x4d2e27,uid as _0x57be53,priorities as _0x17cab7,insertToPriorityArray as _0x1828ab,toArray as _0x1c2cdd,logWarning as _0x173234,getEnvKeystrokeText as _0x33ed2a,FocusTracker as _0x1958ac,KeystrokeHandler as _0xcb77f,Collection as _0x274610}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4c68a1,IconCancel as _0x47cc26,IconTrackChanges as _0x25f6d3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x37865b,View as _0xb906b1,ViewCollection as _0x361d15,FocusCycler as _0xe075f1,ViewModel as _0x3c1030,createDropdown as _0x36fc93,SplitButtonView as _0x4f1e51,addListToDropdown as _0x548e9d,MenuBarMenuView as _0x42abd9,MenuBarMenuListView as _0x537b18,ListSeparatorView as _0x5a2d27,MenuBarMenuListItemView as _0xd57cf6,MenuBarMenuListItemButtonView as _0x73432a,BodyCollection as _0x33f938,Dialog as _0x107377}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3b0e33,hashObject as _0x23039f,surroundingMarkersDetector as _0x453b05,FOCUS_ANNOTATION_KEYSTROKE as _0x48862d,AriaDescriptionView as _0x35aad3,setupThreadKeyboardNavigation as _0x33622a,trimHtml as ti,UserView as _0x1c015e,LateFocusButtonView as _0x3098c3,getDateTimeFormatter as _0x22cba5,getAllMarkersDomElementsSorted as _0xb9d8fa,sanitizeEditorConfig as _0x4299d3}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x50ed32,LiveRange as _0x5bdd0a,LivePosition as _0xee47ba,DowncastWriter as _0x11f5f0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3faa68,toWidget as _0x1d9cba}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xa0f85e,set as _0x4e4cc5,isEqual as _0x15af31,unset as _0x1b65db,omit as Ft}from'es-toolkit/compat';import{Delete as _0x3841d3,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x278f9b}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x131e99}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x143623{['_enabledCommands'];constructor(_0x3513fe,_0x84a484){super(_0x3513fe),this['_enabledCommands']=_0x84a484,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 _0x27d96d of this['editor']['commands']['commands']())_0x27d96d['affectsData']&&!this['_enabledCommands']['has'](_0x27d96d)&&_0x27d96d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2d1058 of this['editor']['commands']['commands']())_0x2d1058['affectsData']&&!this['_enabledCommands']['has'](_0x2d1058)&&_0x2d1058['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x143623{['_suggestions'];constructor(_0x224eb9,_0x55a0cc){super(_0x224eb9),this['_suggestions']=_0x55a0cc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x57e6eb){const _0x37d92e=this['_suggestions']['get'](_0x57e6eb);if(!_0x37d92e)throw new _0x48634c('track-changes-accept-suggestion-not-found',this);const _0x429bc0=_0x37d92e['getRanges']();this['editor']['model']['canEditAt'](_0x429bc0)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x37d92e);}}class O extends _0x143623{['_suggestions'];constructor(_0x3af27f,_0x385b85){super(_0x3af27f),this['_suggestions']=_0x385b85,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4abd0d){const _0x3c3f16=this['_suggestions']['get'](_0x4abd0d);if(!_0x3c3f16)throw new _0x48634c('track-changes-discard-suggestion-not-found',this);const _0x2c623e=_0x3c3f16['getRanges']();this['editor']['model']['canEditAt'](_0x2c623e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3c3f16);}}function ls(_0x27b63b,_0x44a478){let _0x673523='';return _0x673523+=_0x27b63b['split']('*')['map']((_0x294d08,_0x4f51e3)=>_0x4f51e3%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x294d08)+'</span>':nn(_0x294d08))['join'](''),_0x44a478&&(_0x673523+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x44a478['value']+'\x22\x20title=\x22'+_0x44a478['title']+'\x22></span>'),_0x673523;}function nn(_0x3b7ce1){const _0x425d44=document['createElement']('span');return _0x425d44['innerText']=_0x3b7ce1,_0x425d44['innerHTML'];}function ts(_0x35e0bf){return _0x35e0bf['sort']((_0x33fce4,_0x4cb247)=>'deletion'==_0x33fce4['type']&&'deletion'!=_0x4cb247['type']?-0x1:'deletion'!=_0x33fce4['type']&&'deletion'==_0x4cb247['type']?0x1:0x0);}function to(_0x1b8c09,_0x532ac5){let _0x38ead2,_0x531e50=0x0;const _0x3ea06e=[],_0x386deb=_0x532ac5['schema'];for(;_0x531e50<_0x1b8c09['length'];){const _0x9b33a2=_0x1b8c09[_0x531e50],_0x4f2042=_0x1b8c09[_0x531e50+0x1];_0x38ead2||(_0x38ead2=_0x532ac5['createPositionBefore'](_0x9b33a2)),on(_0x532ac5,_0x9b33a2,_0x4f2042)||(_0x3ea06e['push'](_0x532ac5['createRange'](_0x38ead2,_0x386deb['isObject'](_0x9b33a2)?_0x532ac5['createPositionAfter'](_0x9b33a2):_0x532ac5['createPositionAt'](_0x9b33a2,'end'))),_0x38ead2=null),_0x531e50++;}return _0x3ea06e;}function on(_0x3aea9a,_0x588967,_0x5c1f75){if(!_0x5c1f75)return!0x1;const _0x21bb1f=_0x3aea9a['createPositionAfter'](_0x588967),_0x175f67=_0x3aea9a['createPositionBefore'](_0x5c1f75);return _0x21bb1f['isTouching'](_0x175f67);}function rs(_0x3aaf3a,_0x1e5f53,_0x1da983){for(;_0x1da983['length'];){const _0x1e7f36=_0x1da983['splice'](0x0,0x64);_0x3aaf3a['change'](()=>{for(const _0x43449f of _0x1e7f36)_0x43449f['isInContent']&&_0x1e5f53['execute'](_0x43449f['id']);});}}class R extends _0x143623{['_command'];['_suggestions'];constructor(_0x52e094,_0x443592,_0x682b91){super(_0x52e094),this['_command']=_0x443592,this['_suggestions']=_0x682b91,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x391ca2=Array['from'](this['_suggestions']['values']())['some'](_0x487bfe=>_0x487bfe['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x391ca2;}['execute'](){const _0x1b3b9f=ts(Array['from'](this['_suggestions']['values']()));for(const _0x10c55b of _0x1b3b9f){const _0x127a54=_0x10c55b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x127a54))return;}rs(this['editor']['model'],this['_command'],_0x1b3b9f);}}class E extends _0x143623{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4a6f3a,_0x40765c,_0x151fd6){super(_0x4a6f3a),this['_command']=_0x40765c,this['_suggestions']=_0x151fd6,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5d272d=this['editor']['model']['document']['selection'],_0x29aaf6=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x570f5a,_0x160f8b){const _0x50e9d8=Array['from'](_0x570f5a['getRanges']()),_0x5e0a59=new Set();for(const _0x1ae672 of _0x160f8b)if(_0x1ae672['isInContent']){for(const _0x351db1 of _0x50e9d8)for(const _0x1c9772 of _0x1ae672['getRanges']())(_0x351db1['isIntersecting'](_0x1c9772)||_0x570f5a['isCollapsed']&&!_0x1ae672['isMultiRange']&&_0x1ae672['next']&&_0x1c9772['end']['isTouching'](_0x351db1['start']))&&_0x5e0a59['add'](_0x1ae672);}return _0x5e0a59;}(_0x5d272d,_0x29aaf6),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x29be68=ts(Array['from'](this['_selectedSuggestions']));for(const _0x39f7b7 of _0x29be68){const _0x1f6ece=_0x39f7b7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1f6ece))return;}rs(this['editor']['model'],this['_command'],_0x29be68);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x4d2e27(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1b0fe7,_0xd406ba){super(),this['id']=_0xd406ba['id'],this['type']=_0xd406ba['type'],this['subType']=_0xd406ba['subType']||null,this['author']=_0xd406ba['author'],this['creator']=_0xd406ba['creator']||_0xd406ba['author'],this['isExternal']=Boolean(_0xd406ba['attributes']&&_0xd406ba['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xd406ba['originalSuggestionId']||null,this['_model']=_0x1b0fe7,this['_onAccept']=_0xd406ba['onAccept'],this['_onDiscard']=_0xd406ba['onDiscard'],this['_onAttributesChange']=_0xd406ba['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xd406ba['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 _0x17870a=this;for(;_0x17870a['previous'];)_0x17870a=_0x17870a['previous'];return _0x17870a;}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'](_0x51ec31){this['_markerNames']['add'](_0x51ec31);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5016d5=>this['_model']['markers']['get'](_0x5016d5))['filter'](_0x48edb9=>_0x48edb9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1ad9af=>{for(const _0x5d7a27 of this['getMarkers']())_0x1ad9af['removeMarker'](_0x5d7a27);}),this['_markerNames']['clear']();}['removeMarker'](_0x5dba6d){this['_model']['change'](_0x2de61b=>{_0x2de61b['removeMarker'](_0x5dba6d);}),this['_markerNames']['delete'](_0x5dba6d);}['addRange'](_0xfa2eb3){const _0x4e58a3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x4e58a3),this['_model']['change'](_0x458ffe=>{_0x458ffe['addMarker'](_0x4e58a3,{'range':_0xfa2eb3,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x23b3b8){for(const _0x4d3187 of this['getRanges']())if(_0x4d3187['isIntersecting'](_0x23b3b8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x37b0d8=>_0x37b0d8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x53ab5b,_0x451161)=>[..._0x53ab5b,..._0x451161['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5bae0b=this['getRanges']();if(0x1!=_0x5bae0b['length'])return null;const _0x2713b4=_0x5bae0b[0x0],_0x4f31a2=_0x2713b4['start']['nodeAfter'],_0x40ccd8=_0x2713b4['end']['nodeBefore'];return _0x4f31a2 instanceof _0x50ed32?_0x4f31a2!=_0x40ccd8?null:_0x4f31a2: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 _0x3fde84=[];let _0x20ec56=this['head'];for(;_0x20ec56;)_0x3fde84['push'](_0x20ec56),_0x20ec56=_0x20ec56['next'];return _0x3fde84;}['setAttribute'](_0x124631,_0x334827){const _0x5e92b1=_0xa0f85e(this['attributes']);_0x4e4cc5(_0x5e92b1,_0x124631,_0x334827),_0x15af31(_0x5e92b1,this['attributes'])||(this['attributes']=_0x5e92b1,this['_onAttributesChange'](_0x5e92b1));}['removeAttribute'](_0x2e45b3){const _0x5bf091=_0xa0f85e(this['attributes']);_0x1b65db(_0x5bf091,_0x2e45b3),_0x15af31(_0x5bf091,this['attributes'])||(this['attributes']=_0x5bf091,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 _0x57be53()['substr'](0x1,0x5);}}function c(_0x2222a9,_0x179e9f,_0xa0dda8){const _0x2967e1=_0x2222a9['t'],t=_0x2222a9['t'];switch(_0x179e9f){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',_0xa0dda8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xa0dda8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xa0dda8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xa0dda8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xa0dda8);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',_0xa0dda8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xa0dda8);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',_0xa0dda8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xa0dda8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xa0dda8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xa0dda8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xa0dda8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xa0dda8);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xa0dda8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xa0dda8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xa0dda8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xa0dda8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xa0dda8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xa0dda8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xa0dda8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xa0dda8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xa0dda8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xa0dda8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xa0dda8);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xa0dda8);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'},_0xa0dda8);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xa0dda8);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xa0dda8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xa0dda8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xa0dda8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xa0dda8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xa0dda8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xa0dda8);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'},_0xa0dda8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xa0dda8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xa0dda8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xa0dda8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xa0dda8);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'},_0xa0dda8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xa0dda8);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'},_0xa0dda8);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'},_0xa0dda8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xa0dda8);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'},_0xa0dda8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xa0dda8);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'},_0xa0dda8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xa0dda8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xa0dda8);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'},_0xa0dda8);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xa0dda8);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 _0x2967e1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xa0dda8);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2967e1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xa0dda8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xa0dda8);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'},_0xa0dda8);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'},_0xa0dda8);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'},_0xa0dda8);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x179e9f;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xaa291f,_0x22fcf1){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xaa291f,this['_locale']=_0x22fcf1;}['getDescriptions'](_0x40f4fd){const _0x4527cd=[],_0x29c52f=new Set(),_0x5f437d=new Set();for(let _0xf9d0db=0x0;_0xf9d0db<_0x40f4fd['length'];_0xf9d0db++){const _0x3c049a=_0x40f4fd[_0xf9d0db];if(!_0x3c049a['isInContent'])continue;const _0x15c9f4=this['_handleCustomCallbackDescription'](_0x3c049a);if(_0x15c9f4){if(null!=_0x3c049a['subType']){if(_0x29c52f['has'](_0x3c049a['subType']))continue;_0x29c52f['add'](_0x3c049a['subType']);}_0x4527cd['push'](_0x15c9f4);}else{if('attribute'!=_0x3c049a['type'])'insertion'!=_0x3c049a['type']&&'deletion'!=_0x3c049a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4527cd,_0x3c049a,_0x40f4fd[_0xf9d0db+0x1]);else{const _0x31641c=_0x3c049a['data']['key'];if(_0x5f437d['has'](_0x31641c))continue;_0x5f437d['add'](_0x3c049a['data']['key']),_0x31641c==u?this['_handleRenameSuggestionDescription'](_0x4527cd,_0x3c049a):this['_handleAttributeSuggestionDescription'](_0x4527cd,_0x3c049a);}}}return this['_resolveDescriptionItems'](_0x4527cd);}['registerDescriptionCallback'](_0x375669){this['_customCallbacks']['push'](_0x375669);}['registerElementLabel'](_0xab9b0e,_0x1b9399,_0xcb68b9=_0x17cab7['normal']){'function'==typeof _0xab9b0e?_0x1828ab(this['_itemLabelsCallbacks'],{'matchingCallback':_0xab9b0e,'label':_0x1b9399,'priority':_0xcb68b9}):this['_itemLabels']['set'](_0xab9b0e,_0x1b9399);}['registerAttributeLabel'](_0x4d2883,_0x3957e5){this['_attributeLabels']['set'](_0x4d2883,_0x3957e5);}['getItemLabel'](_0x47fe4e,_0x3e524d=0x1){let _0x3f90c7;for(const _0x46c6e8 of this['_itemLabelsCallbacks'])if(_0x46c6e8['matchingCallback'](_0x47fe4e)){_0x3f90c7=_0x46c6e8['label'];break;}return _0x3f90c7||(_0x3f90c7=this['_itemLabels']['get'](_0x47fe4e['name'])),_0x3f90c7?_0x3f90c7(_0x3e524d):0x1!==_0x3e524d?_0x3e524d+'\x20'+_0x47fe4e['name']+'s':''+_0x47fe4e['name'];}['_addDescriptionItems'](_0x5370b6,_0x5072a1){const _0x5905ce=_0x5072a1['getFirstRange']()['getWalker'](),_0x12c384='insertion'==_0x5072a1['type']?'add':'remove';for(const _0x5c184a of _0x5905ce){const _0x49e241=_0x5c184a['item'],_0x46e063=_0x5370b6[_0x5370b6['length']-0x1];if(_0x49e241['is']('$textProxy'))_0x46e063&&_0x46e063['type']['indexOf']('Container')>-0x1&&_0x5370b6['pop'](),_0x46e063&&'text'==_0x46e063['type']?_0x46e063[_0x12c384]+=_0x49e241['data']:_0x5370b6['push']({'type':'text','add':'add'==_0x12c384?_0x49e241['data']:'','remove':'remove'==_0x12c384?_0x49e241['data']:''});else{if(this['_schema']['isObject'](_0x49e241)){const _0x197841=_0x49e241;if(_0x46e063&&_0x46e063['type']['indexOf']('Container')>-0x1&&_0x5370b6['pop'](),'elementEnd'==_0x5c184a['type'])continue;_0x46e063&&_0x46e063['type']==_0x12c384+'Object'&&_0x46e063['element']['name']==_0x197841['name']?_0x46e063['quantity']++:_0x5370b6['push']({'type':_0x12c384+'Object','element':_0x197841,'quantity':0x1}),_0x5905ce['skip'](_0x2eadfb=>!('elementEnd'==_0x2eadfb['type']&&_0x2eadfb['item']==_0x49e241));}else{if(this['_schema']['checkChild'](_0x49e241,'$text')||_0x49e241['is']('element','softBreak')){const _0x2e79c1=_0x49e241;if('add'==_0x12c384&&'elementStart'==_0x5c184a['type']||'remove'==_0x12c384&&'elementEnd'==_0x5c184a['type'])continue;if(_0x46e063&&-0x1==_0x46e063['type']['indexOf']('Container')){'text'==_0x46e063['type']&&(_0x46e063[_0x12c384]+='\x0a');continue;}let _0x3996f0;if(_0x3996f0='add'==_0x12c384?_0x2e79c1['nextSibling']&&!this['_schema']['isObject'](_0x2e79c1['nextSibling'])?_0x2e79c1['nextSibling']:null:_0x2e79c1['previousSibling']&&!this['_schema']['isObject'](_0x2e79c1['previousSibling'])?_0x2e79c1['previousSibling']:null,_0x2e79c1['isEmpty']||_0x3996f0&&_0x3996f0['isEmpty']){const _0x16c2f6=_0x3996f0&&_0x3996f0['isEmpty']?_0x3996f0:_0x2e79c1;_0x46e063&&_0x46e063['type']==_0x12c384+'EmptyContainer'&&_0x46e063['element']['name']==_0x16c2f6['name']?_0x46e063['quantity']++:_0x5370b6['push']({'type':_0x12c384+'EmptyContainer','element':_0x16c2f6,'quantity':0x1});}else _0x5370b6['push']({'type':_0x12c384+'Container','element':_0x2e79c1});}}}}}['_resolveDescriptionItems'](_0x44cbbe){const _0x10c7a6=this['_locale'],_0x1f5264=[],_0x47b1d3=[],_0x1cb517=[];for(const _0x3f744d of _0x44cbbe)switch(_0x3f744d['type']){case'text':if(_0x3f744d['add']=_0x3f744d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3f744d['remove']=_0x3f744d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3f744d['add']&&''!=_0x3f744d['remove']){_0x1f5264['push']({'type':'replace','content':c(_0x10c7a6,'REPLACE_TEXT',['\x22'+_0x3f744d['remove']+'\x22','\x22'+_0x3f744d['add']+'\x22'])});continue;}if(null!=_0x3f744d['add']['match'](/^ +$/)){_0x1f5264['push']({'type':'insertion','content':c(_0x10c7a6,'*Insert:*\x20%0',c(_0x10c7a6,'ELEMENT_SPACE',_0x3f744d['add']['length']))});continue;}if(null!=_0x3f744d['remove']['match'](/^ +$/)){_0x1f5264['push']({'type':'deletion','content':c(_0x10c7a6,'*Remove:*\x20%0',c(_0x10c7a6,'ELEMENT_SPACE',_0x3f744d['remove']['length']))});continue;}if(''!=_0x3f744d['add']){_0x1f5264['push']({'type':'insertion','content':c(_0x10c7a6,'*Insert:*\x20%0','\x22'+_0x3f744d['add']+'\x22')});continue;}_0x1f5264['push']({'type':'deletion','content':c(_0x10c7a6,'*Remove:*\x20%0','\x22'+_0x3f744d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1f5264['push']({'type':'insertion','content':c(_0x10c7a6,'*Insert:*\x20%0',this['getItemLabel'](_0x3f744d['element'],_0x3f744d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1f5264['push']({'type':'deletion','content':c(_0x10c7a6,'*Remove:*\x20%0',this['getItemLabel'](_0x3f744d['element'],_0x3f744d['quantity']))});continue;case'addContainer':_0x1f5264['push']({'type':'insertion','content':c(_0x10c7a6,'*Split:*\x20%0',this['getItemLabel'](_0x3f744d['element'],_0x3f744d['quantity']))});continue;case'removeContainer':_0x1f5264['push']({'type':'deletion','content':c(_0x10c7a6,'*Merge:*\x20%0',this['getItemLabel'](_0x3f744d['element'],_0x3f744d['quantity']))});continue;case'addFormat':_0x47b1d3['push'](_0x3f744d['key']);continue;case'removeFormat':_0x1cb517['push'](_0x3f744d['key']);continue;default:_0x1f5264['push'](_0x3f744d);}if(_0x47b1d3['length']){const _0x2ccb90=_0x47b1d3['map'](_0x2b8abd=>this['_attributeLabels']['has'](_0x2b8abd)?this['_attributeLabels']['get'](_0x2b8abd):_0x2b8abd)['join'](',\x20');_0x1f5264['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x2ccb90)});}if(_0x1cb517['length']){const _0x1842d0=_0x1cb517['map'](_0x1106d6=>this['_attributeLabels']['has'](_0x1106d6)?this['_attributeLabels']['get'](_0x1106d6):_0x1106d6)['join'](',\x20');_0x1f5264['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1842d0)});}return _0x1f5264;}['_handleCustomCallbackDescription'](_0x2b1ab3){for(const _0x201e1c of this['_customCallbacks']){const _0x161871=_0x201e1c(_0x2b1ab3);if(_0x161871&&'type'in _0x161871)return _0x161871;}}['_handleAttributeSuggestionDescription'](_0x583647,_0x5133b6){const _0x572f4f=_0x5133b6['data'],_0x264673=void 0x0===_0x572f4f['newValue']?'removeFormat':'addFormat';_0x583647['push']({'type':_0x264673,'key':_0x572f4f['key']});}['_handleRenameSuggestionDescription'](_0x1dbad9,_0x46929d){_0x1dbad9['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x46929d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x50f3fa,_0x167e48,_0x4b522d){if(this['_addDescriptionItems'](_0x50f3fa,_0x167e48),_0x4b522d&&_0x4b522d['getFirstRange']()&&!_0x167e48['getFirstRange']()['end']['isEqual'](_0x4b522d['getFirstRange']()['start'])){const _0x3b2633=_0x50f3fa[_0x50f3fa['length']-0x1],_0x42d73d='insertion'==_0x167e48['type']?'add':'remove';_0x3b2633&&'text'==_0x3b2633['type']&&(_0x3b2633[_0x42d73d]+='\x0a');}}}class U extends _0x413935{['afterInit'](){const _0xfe0700=this['editor'],_0x508070=_0xfe0700['plugins']['get']('TrackChangesEditing');_0xfe0700['commands']['get']('showAIAssistant')&&_0x508070['enableCommand']('showAIAssistant');}}class V extends _0x413935{['afterInit'](){const _0xa7a20b=this['editor'],_0x257c69=_0xa7a20b['locale'];if(!_0xa7a20b['plugins']['has']('AlignmentEditing'))return;const _0x1b7590=_0xa7a20b['plugins']['get']('TrackChangesEditing');_0x1b7590['enableDefaultAttributesIntegration']('alignment'),_0x1b7590['registerBlockAttribute']('alignment'),_0x1b7590['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x257c69,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1aaa5d=this['editor'],_0x331464=_0x1aaa5d['locale'];_0x1aaa5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ca28c=>{if('formatBlock'!=_0x4ca28c['type'])return;const {data:_0x29d17a}=_0x4ca28c;if(_0x29d17a&&'alignment'==_0x29d17a['commandName']){const _0x5adffd=_0x29d17a['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x331464,'*Format:*\x20%0',function(_0x235e9d){switch(_0x235e9d){case'left':return c(_0x331464,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x331464,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x331464,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x331464,'FORMAT_JUSTIFY_TEXT');}}(_0x5adffd))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x413935{['afterInit'](){const _0x115ae0=this['editor'],_0x1f4e40=_0x115ae0['plugins']['get']('TrackChangesEditing'),_0x1a8d7f=_0x115ae0['locale'];for(const _0x1aad16 of Zt){if(!_0x115ae0['plugins']['has'](_0x1aad16))continue;const _0x2dd277=_0x1aad16['slice'](0x0,-0x7)['toLowerCase'](),_0x3789a3='FORMAT_'+_0x2dd277['toUpperCase']();_0x1f4e40['enableDefaultAttributesIntegration'](_0x2dd277),_0x1f4e40['registerInlineAttribute'](_0x2dd277),_0x1f4e40['descriptionFactory']['registerAttributeLabel'](_0x2dd277,c(_0x1a8d7f,_0x3789a3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x237a44=this['editor'],_0x589866=_0x237a44['locale'],_0x58c797=_0x237a44['plugins']['get']('TrackChangesEditing');function _0x23d39c(_0x161a00,_0x1671e5){_0x58c797['descriptionFactory']['registerDescriptionCallback'](_0x1b545d=>{if('formatInline'!=_0x1b545d['type'])return;const {data:_0x484b3c}=_0x1b545d;return _0x484b3c&&_0x484b3c['commandName']===_0x161a00?_0x484b3c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x589866,'*Format:*\x20%0',_0x1671e5)}:{'type':'format','content':c(_0x589866,'*Remove\x20format:*\x20%0',_0x1671e5)}:void 0x0;});}_0x23d39c('bold',c(_0x589866,'FORMAT_BOLD')),_0x23d39c('italic',c(_0x589866,'FORMAT_ITALIC')),_0x23d39c('underline',c(_0x589866,'FORMAT_UNDERLINE')),_0x23d39c('code',c(_0x589866,'FORMAT_CODE')),_0x23d39c('strikethrough',c(_0x589866,'FORMAT_STRIKETHROUGH')),_0x23d39c('subscript',c(_0x589866,'FORMAT_SUBSCRIPT')),_0x23d39c('superscript',c(_0x589866,'FORMAT_SUPERSCRIPT'));}}class G extends _0x413935{['afterInit'](){const _0x1a5037=this['editor'],_0x26a7e9=_0x1a5037['locale'];if(!_0x1a5037['plugins']['has']('BlockQuoteEditing'))return;const _0x623f15=_0x1a5037['plugins']['get']('TrackChangesEditing'),_0x18cbfd=this['editor']['commands']['get']('blockQuote');_0x623f15['enableCommand']('blockQuote',(_0x1a5550,_0x261600={})=>{const _0x163a9c=this['editor']['model']['document']['selection'],_0x4fc19a=_0x261600&&void 0x0!==_0x261600['forceValue']?_0x261600['forceValue']:!_0x18cbfd['value'];let _0xad8f90=[];if(_0x4fc19a){const _0x208458=Array['from'](_0x163a9c['getSelectedBlocks']())['filter'](_0x28ba39=>oo(_0x28ba39)||function(_0x1c5558,_0x2624c9){const _0x4b1f47=_0x2624c9['checkChild'](_0x1c5558['parent'],'blockQuote'),_0x3b266d=_0x2624c9['checkChild'](['$root','blockQuote'],_0x1c5558);return _0x4b1f47&&_0x3b266d;}(_0x28ba39,this['editor']['model']['schema']));_0xad8f90=to(_0x208458,_0x1a5037['model']);}else{const _0x45e057=Array['from'](_0x163a9c['getSelectedBlocks']())['filter'](_0x59eeb3=>oo(_0x59eeb3));_0xad8f90=to(_0x45e057,_0x1a5037['model']);}_0x1a5037['model']['change'](()=>{for(const _0x1e69d5 of _0xad8f90)_0x623f15['markBlockFormat'](_0x1e69d5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4fc19a}]});});}),_0x623f15['descriptionFactory']['registerDescriptionCallback'](_0x4d9d91=>{const {data:_0x243e7b}=_0x4d9d91;if(_0x243e7b&&'blockQuote'==_0x243e7b['commandName']){const _0x98be41=c(_0x26a7e9,'ELEMENT_BLOCK_QUOTE');return _0x243e7b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x26a7e9,'*Set\x20format:*\x20%0',_0x98be41)}:{'type':'format','content':c(_0x26a7e9,'*Remove\x20format:*\x20%0',_0x98be41)};}});}}function oo(_0x192b52){return'blockQuote'==_0x192b52['parent']['name'];}class L extends _0x413935{['afterInit'](){const _0x1b5e76=this['editor'],_0x403914=_0x1b5e76['locale'],_0x18854d=_0x1b5e76['plugins']['get']('TrackChangesEditing');_0x1b5e76['plugins']['has']('BookmarkEditing')&&(_0x18854d['enableCommand']('insertBookmark'),_0x18854d['enableDefaultAttributesIntegration']('updateBookmark'),_0x18854d['registerBlockAttribute']('bookmarkId'),_0x18854d['descriptionFactory']['registerDescriptionCallback'](_0x16b702=>{if('insertion'!=_0x16b702['type']&&'deletion'!=_0x16b702['type']&&'attribute'!=_0x16b702['type'])return;const _0x37ab0d=_0x16b702['getContainedElement']();if(null==_0x37ab0d)return;if(!_0x37ab0d['is']('element','bookmark'))return;const _0x1b4ff0=_0x37ab0d['getAttribute']('bookmarkId');if('insertion'==_0x16b702['type'])return{'type':'insertion','content':c(_0x403914,'*Insert:*\x20%0','\x22'+_0x1b4ff0+'\x22\x20'+c(_0x403914,'ELEMENT_BOOKMARK'))};if('deletion'==_0x16b702['type'])return{'type':'deletion','content':c(_0x403914,'*Remove:*\x20%0','\x22'+_0x1b4ff0+'\x22\x20'+c(_0x403914,'ELEMENT_BOOKMARK'))};const {data:_0x369159}=_0x16b702;if(!_0x369159||'bookmarkId'!=_0x369159['key'])return;return{'type':'format','content':c(_0x403914,'*Set\x20bookmark:*\x20%0','\x22'+_0x369159['newValue']+'\x22')};}));}}class J extends _0x413935{['afterInit'](){const _0x17ea42=this['editor'];_0x17ea42['plugins']['has']('CaseChange')&&(_0x17ea42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x17ea42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x17ea42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x413935{['afterInit'](){const _0x57fa6a=this['editor'];_0x57fa6a['commands']['get']('ckbox')&&_0x57fa6a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x413935{['afterInit'](){const _0x348337=this['editor'];if(!_0x348337['plugins']['has']('CodeBlock'))return;const _0x3c645f=_0x348337['plugins']['get']('TrackChangesEditing'),_0x5aad47=_0x348337['locale'],_0x5541ad=_0x348337['config']['get']('codeBlock')['languages'],_0x4b22ee=_0x348337['commands']['get']('codeBlock');_0x3c645f['enableCommand']('indentCodeBlock'),_0x3c645f['enableCommand']('outdentCodeBlock'),_0x3c645f['enableCommand']('codeBlock',(_0x15f898,_0x301e5b={})=>{const _0x2f391d=_0x348337['model'],_0x29681f=_0x348337['model']['document']['selection'],_0x43e657=_0x301e5b&&void 0x0!==_0x301e5b['forceValue']?_0x301e5b['forceValue']:!_0x4b22ee['value'];let _0x1859a3;_0x301e5b['language']||(_0x301e5b['language']=_0x5541ad[0x0]['language']),_0x1859a3=_0x43e657?Array['from'](_0x29681f['getSelectedBlocks']())['filter'](_0x2e0dfb=>eo(_0x2e0dfb)||function(_0x436305,_0x32d85b){if(_0x436305['is']('rootElement')||_0x32d85b['isLimit'](_0x436305))return!0x1;return _0x32d85b['checkChild'](_0x436305['parent'],'codeBlock');}(_0x2e0dfb,_0x2f391d['schema'])):Array['from'](_0x29681f['getSelectedBlocks']())['filter'](_0x1c5400=>eo(_0x1c5400));const _0x2ccf03=to(_0x1859a3,_0x2f391d);_0x2f391d['change'](()=>{for(const _0xb50084 of _0x2ccf03)_0x3c645f['markBlockFormat'](_0xb50084,{'commandName':'codeBlock','commandParams':[{..._0x301e5b,'forceValue':_0x43e657}],'formatGroupId':'blockName'});});}),(_0x3c645f['descriptionFactory']['registerElementLabel']('codeBlock',_0x490786=>c(_0x5aad47,'ELEMENT_CODE_BLOCK',_0x490786)),_0x3c645f['descriptionFactory']['registerDescriptionCallback'](_0x1bd688=>{if('formatBlock'!=_0x1bd688['type'])return;const _0x1572f6=_0x5aad47['t'],{data:_0x361d34}=_0x1bd688;if(!_0x361d34||'codeBlock'!=_0x361d34['commandName'])return;const _0x334b5e=_0x361d34['commandParams'][0x0]['language'],_0x6ee960=_0x1572f6(_0x5541ad['find'](_0x1cb8df=>_0x1cb8df['language']===_0x334b5e)['label'])['toLowerCase']();return _0x361d34['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5aad47,'*Set\x20format:*\x20%0',c(_0x5aad47,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x6ee960+')')}:{'type':'format','content':c(_0x5aad47,'*Remove\x20format:*\x20%0',c(_0x5aad47,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1f6e1d){return'codeBlock'==_0x1f6e1d['name'];}class q extends _0x413935{['afterInit'](){const _0x468af4=this['editor'];if(!_0x468af4['plugins']['has']('CommentsEditing'))return;_0x468af4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x206f83,_0x397a80,_0x319512){const _0x456ffa=[];for(const _0x1cfc6e of _0x397a80['getItems']())_0x1cfc6e['hasAttribute'](_0x206f83)&&_0x456ffa['push'](_0x319512['createRangeOn'](_0x1cfc6e));return _0x456ffa;}function Fe(_0x2b4cdf,_0x1cbd64,{showActiveMarker:_0x1ce2ac=!0x0}={}){const _0x2f1ae5=_0x2b4cdf['plugins']['get']('TrackChangesEditing');return(_0x1ecfdd,_0x2823e1,_0x1b2f81)=>{if(!_0x1b2f81['consumable']['test'](_0x2823e1['markerRange'],_0x1ecfdd['name']))return;const _0x4afd7b=_0x2823e1['markerRange']['getWalker'](),_0x149c11=_0x2823e1['markerRange']['start'],_0x50339d=_0x2b4cdf['model']['schema'];let _0x5f1412=null,_0x373819=null,_0x3df76d=!0x1,_0x305d52=!0x1;for(const _0x5ea741 of _0x4afd7b){const _0xefff2a=_0x5ea741['item'];_0x3df76d=_0x3df76d||_0x50339d['isContent'](_0xefff2a);const _0x57eb9e=_0x1b2f81['mapper']['toViewElement'](_0xefff2a);if(_0x57eb9e&&_0x57eb9e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5ea741['type']&&(_0x50339d['isBlock'](_0xefff2a)&&!_0x50339d['isLimit'](_0xefff2a)&&(_0xefff2a['nextSibling']||_0x149c11['isAtEnd']?_0x5f1412&&_0x5f1412['parent']==_0xefff2a||(_0x5f1412=_0xefff2a,_0x5b98da(_0x5ea741['previousPosition']),_0x305d52=!0x0):_0x373819=_0x373819||_0x5ea741['previousPosition']));}function _0x5b98da(_0x329c3b){const {id:_0x1fbfb8,authorId:_0x40ab89}=_0x2f1ae5['_splitMarkerName'](_0x2823e1['markerName']),_0x429137=_0x1b2f81['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1cbd64,'data-suggestion':_0x1fbfb8,'data-author-id':_0x40ab89}),_0x127d65=_0x1b2f81['mapper']['toViewPosition'](_0x329c3b);_0x1ce2ac&&_0x2f1ae5['activeMarkers']['includes'](_0x2823e1['markerName'])&&_0x1b2f81['writer']['addClass']('ck-suggestion-marker--active',_0x429137),_0x1b2f81['writer']['insert'](_0x127d65,_0x429137),_0x1b2f81['mapper']['bindElementToMarker'](_0x429137,_0x2823e1['markerName']);}_0x3df76d||_0x305d52||!_0x373819||_0x5b98da(_0x373819);};}class z extends _0x413935{static get['requires'](){return[_0x3841d3];}['init'](){const _0x1bd08b=this['editor'],_0x5a7b28=_0x1bd08b['plugins']['get']('TrackChangesEditing');_0x5a7b28['enableCommand']('delete');const _0x51e57e=_0x1bd08b['commands']['get']('deleteForward');_0x5a7b28['enableCommand']('deleteForward',(_0x342788,_0x584451={})=>{const _0x15f254=_0x1bd08b['model']['createSelection'](_0x1bd08b['model']['document']['selection']);_0x15f254['isCollapsed']&&_0x1bd08b['model']['modifySelection'](_0x15f254,{'direction':'forward','unit':_0x584451['unit']});const _0x21764f=_0x15f254['getFirstRange'](),_0x20f59c=_0x5bdd0a['fromRange'](_0x21764f);let _0x5269ec;_0x342788(_0x584451),_0x5269ec='$graveyard'==_0x20f59c['root']['rootName']?_0x1bd08b['model']['createRange'](_0x21764f['start']):_0x1bd08b['model']['createRange'](_0x20f59c['start'],_0x20f59c['end']),_0x20f59c['detach'](),_0x1bd08b['model']['enqueueChange'](_0x51e57e['buffer']['batch'],_0x2038cd=>{_0x51e57e['buffer']['lock'](),_0x2038cd['setSelection'](_0x2038cd['createRange'](_0x5269ec['end'])),_0x51e57e['buffer']['unlock']();});}),_0x1bd08b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x1bd08b,'merge'),{'priority':'high'}),_0x1bd08b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1ba0d9,_0xc64e32,_0x50df25)=>{_0x50df25['options']['showSuggestionHighlights']&&Fe(_0x1bd08b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1ba0d9,_0xc64e32,_0x50df25);},{'priority':'high'}),_0x1bd08b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x403a25,_0x378efd,_0x3124d3)=>{const _0x2ca45d=_0x3124d3['mapper']['markerNameToElements'](_0x378efd['markerName']);if(_0x2ca45d){for(const _0x250f77 of _0x2ca45d)_0x250f77['is']('uiElement')&&(_0x3124d3['mapper']['unbindElementFromMarkerName'](_0x250f77,_0x378efd['markerName']),_0x3124d3['writer']['remove'](_0x250f77));}},{'priority':'high'});}}class W extends _0x413935{['afterInit'](){const _0x12dac0=this['editor'];if(!_0x12dac0['plugins']['has']('ListEditing'))return;const _0x4796f3=_0x12dac0['locale'],_0x26f3d8=_0x12dac0['plugins']['get']('TrackChangesEditing'),_0x50b893=_0x12dac0['plugins']['has']('TodoListEditing'),_0x41761e=!!_0x12dac0['config']['get']('list.multiBlock');function _0x5b6900(_0x14b757){return{'type':'format','content':''+c(_0x4796f3,'*Set\x20format:*\x20%0',_0x14b757)};}function _0x38249c(_0x5eab81){return{'type':'format','content':''+c(_0x4796f3,'*Remove\x20format:*\x20%0',_0x5eab81)};}_0x26f3d8['enableDefaultAttributesIntegration']('numberedList'),_0x26f3d8['enableDefaultAttributesIntegration']('bulletedList'),_0x26f3d8['enableDefaultAttributesIntegration']('customNumberedList'),_0x26f3d8['enableDefaultAttributesIntegration']('customBulletedList'),_0x26f3d8['enableDefaultAttributesIntegration']('indentList'),_0x26f3d8['enableDefaultAttributesIntegration']('outdentList'),_0x26f3d8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x26f3d8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x26f3d8['registerBlockAttribute']('listItemId'),_0x26f3d8['registerBlockAttribute']('listType'),_0x26f3d8['registerBlockAttribute']('listIndent'),_0x41761e&&(_0x26f3d8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x26f3d8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x50b893&&(_0x26f3d8['enableDefaultAttributesIntegration']('todoList'),_0x26f3d8['enableDefaultAttributesIntegration']('checkTodoList'),_0x26f3d8['registerBlockAttribute']('todoListChecked'),_0x26f3d8['descriptionFactory']['registerDescriptionCallback'](_0x34aae9=>{const {data:_0x3db805}=_0x34aae9;if(_0x3db805&&'todoListChecked'==_0x3db805['key'])return{'type':'format','content':_0x3db805['newValue']?c(_0x4796f3,'*Check\x20item*'):c(_0x4796f3,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4f692f=>{if(_0x4f692f['batch']['isUndo'])return!0x1;let _0x181b02=!0x1;const _0x3f0cae=_0x26f3d8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b1f59=>'todoListChecked'===_0x26f3d8['_getAttributeKey'](_0x5b1f59));for(const _0x5d7531 of _0x3f0cae){'todo'!=_0x5d7531['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x26f3d8['_findSuggestions'](_0x5d7531['getFirstRange'](),'attribute')['find'](_0x54d4b4=>'listType'===_0x26f3d8['_getAttributeKey'](_0x54d4b4['suggestion']))||(_0x4f692f['removeMarker'](_0x5d7531['getFirstMarker']()),_0x181b02=!0x0));}return _0x181b02;})),_0x26f3d8['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x4796f3,'FORMAT_INDENT'));const _0x429eeb={'type':'format','content':''};_0x26f3d8['descriptionFactory']['registerDescriptionCallback'](_0x552f72=>{const {data:_0x21ff28}=_0x552f72;if(!_0x21ff28||'listType'!=_0x21ff28['key'])return;let _0x22911d=_0x552f72['head'];for(;_0x22911d;){if(_0x22911d['data']&&(('listStyle'==_0x22911d['data']['key']||'listMarkerStyle'==_0x22911d['data']['key'])&&(_0x22911d['data']['newValue']&&'default'!=_0x22911d['data']['newValue']||'default'!=_0x22911d['data']['oldValue']&&!_0x21ff28['newValue'])||!_0x41761e&&_0x22911d['data']['key']==u))return _0x429eeb;_0x22911d=_0x22911d['next'];}if(null==_0x21ff28['newValue'])switch(_0x21ff28['oldValue']){case'bulleted':return _0x38249c(c(_0x4796f3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x38249c(c(_0x4796f3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x38249c(c(_0x4796f3,'ELEMENT_TODO_LIST'));}switch(_0x21ff28['newValue']){case'bulleted':return _0x5b6900(c(_0x4796f3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b6900(c(_0x4796f3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b6900(c(_0x4796f3,'ELEMENT_TODO_LIST'));}}),_0x26f3d8['descriptionFactory']['registerDescriptionCallback'](_0x155081=>{const {data:_0x77daa8}=_0x155081;if(_0x77daa8&&'listIndent'==_0x77daa8['key'])return null==_0x77daa8['newValue']||null==_0x77daa8['oldValue']&&0x0==_0x77daa8['newValue']?_0x429eeb:void 0x0;}),_0x26f3d8['descriptionFactory']['registerDescriptionCallback'](_0x974146=>{if('attribute'!=_0x974146['type'])return;const {data:_0x31bfb8}=_0x974146;if(!_0x31bfb8||'listItemId'!=_0x31bfb8['key'])return;const _0x470302=Te(_0x974146);return'newValue'==_0x470302?{'type':'format','content':c(_0x4796f3,'*Merge:*\x20list\x20item')}:'oldValue'==_0x470302?{'type':'format','content':c(_0x4796f3,'*Split:*\x20list\x20item')}:_0x429eeb;}),_0x12dac0['model']['document']['registerPostFixer'](_0x1d0747=>this['listItemIdFixer'](_0x1d0747)),_0x12dac0['model']['document']['registerPostFixer'](_0x59a327=>this['noTrackChangesFixer'](_0x59a327)),_0x12dac0['model']['document']['on']('change:data',(_0x5d8746,_0x11ac0d)=>{if(_0x11ac0d['isUndo']||!_0x11ac0d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x38408b){if(_0x38408b['batch']['isUndo']||!_0x38408b['batch']['isLocal'])return!0x1;let _0x208866=!0x1;const _0x2a20b2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36bd86=>_0x36bd86['data']&&'listItemId'==_0x36bd86['data']['key'])['filter'](_0x426afb=>_0x426afb['data']['newValue']&&_0x426afb['data']['oldValue']);for(const _0x38d6ef of _0x2a20b2)Te(_0x38d6ef)||(_0x38408b['removeMarker'](_0x38d6ef['getFirstMarker']()),_0x208866=!0x0);return _0x208866;}['noTrackChangesFixer'](_0x4a2caa){if(_0x4a2caa['batch']['isUndo']||!_0x4a2caa['batch']['isLocal'])return!0x1;const _0x568ced=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x568ced['trackChangesCommand']['value'])return!0x1;let _0xd40b3c=!0x1;const _0x5aae36=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3e4f17=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2006be=>'attribute'==_0x2006be['type'])['filter'](_0x390800=>_0x5aae36['includes'](_0x390800['attributeKey']));if(0x0==_0x3e4f17['length'])return _0xd40b3c;for(const _0xcf464a of _0x3e4f17){const _0x1ae5ea=_0x568ced['_findSuggestions'](_0xcf464a['range'],'attribute')['filter'](_0xbfa755=>!_0xbfa755['meta']['isNextTo'])['map'](_0x40810f=>_0x40810f['suggestion'])['filter'](_0x44a5c7=>{const _0x1ce483=_0x568ced['_getAttributeKey'](_0x44a5c7);return _0x5aae36['includes'](_0x1ce483);});if(_0x1ae5ea['length']){for(const _0x781b19 of _0x1ae5ea)_0x4a2caa['removeMarker'](_0x781b19['getFirstMarker']());_0xd40b3c=!0x0;}}return _0xd40b3c;}['assureChains'](){const _0x2ab715=this['editor']['plugins']['get']('TrackChangesEditing'),_0x382e14=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1ab7a0;const _0x17b8fa=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3a4a35=>{if(_0x3a4a35['data']['oldRange']||!_0x3a4a35['data']['newRange'])return null;if(!_0x3a4a35['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x18f339}=_0x2ab715['_splitMarkerName'](_0x3a4a35['name']);if(!_0x2ab715['hasSuggestion'](_0x18f339))return null;const _0x16247a=_0x2ab715['getSuggestion'](_0x18f339);return _0x382e14['includes'](_0x16247a['data']['key']);})['map'](_0x568864=>{const {id:_0x3888b6}=_0x2ab715['_splitMarkerName'](_0x568864['name']),_0x4c8c84=_0x2ab715['getSuggestion'](_0x3888b6);return _0x1ab7a0=_0x4c8c84['attributes']['groupId'],_0x4c8c84['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x17b8fa['size'])return;const _0x350f00=_0x2ab715['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33c679=>'attribute'==_0x33c679['type']&&_0x33c679['data']&&_0x382e14['includes'](_0x33c679['data']['key'])&&_0x33c679['attributes']['groupId']!=_0x1ab7a0)['map'](_0x500a6e=>({'listItem':_0x500a6e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x500a6e['attributes']['groupId']})),_0x52727a=new Set();for(const {groupId:_0x34e223,listItem:_0x406437}of _0x350f00)_0x17b8fa['has'](_0x406437)&&_0x52727a['add'](_0x34e223);for(const _0x3bb7b8 of _0x2ab715['getSuggestions']())_0x52727a['has'](_0x3bb7b8['attributes']['groupId'])&&_0x3bb7b8['setAttribute']('groupId',_0x1ab7a0);}['_supportLegacySuggestions'](){const _0x20c2a5=this['editor'],_0x405b59=_0x20c2a5['locale'],_0x3ef7ef=_0x20c2a5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3ef7ef['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x335427,_0x48f01a){const _0x431da2=[];for(let _0x1e7063 of _0x335427)_0x1e7063['start']['nodeAfter']===_0x1e7063['end']['parent']&&(_0x1e7063=_0x20c2a5['model']['createRange'](_0x20c2a5['model']['createPositionAt'](_0x1e7063['start']['nodeAfter'],0x0))),_0x431da2['push'](_0x1e7063);_0x20c2a5['model']['change'](_0x2999e9=>{const _0xd80ebe=_0x20c2a5['model']['document']['selection'],_0x3048dd=Array['from'](_0xd80ebe['getRanges']())['map'](_0x52459c=>_0x5bdd0a['fromRange'](_0x52459c));_0x2999e9['setSelection'](_0x431da2),_0x20c2a5['commands']['get'](_0x48f01a['commandName'])['refresh'](),_0x48f01a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x20c2a5['execute'](_0x48f01a['commandName'],..._0x48f01a['commandParams']),_0x2999e9['setSelection'](_0x3048dd);for(const _0x48fccc of _0x3048dd)_0x48fccc['detach']();});}),_0x3ef7ef['descriptionFactory']['registerElementLabel'](function(_0x3014e5){const _0x59f650=!_0x20c2a5['model']['schema']['isObject'](_0x3014e5),_0x5434ac=_0x3014e5['previousSibling'],_0x2c5c7c=_0x3014e5['nextSibling'],_0x127e7e=_0x3014e5['getAttribute']('listItemId'),_0x4b8a76=!_0x5434ac||_0x5434ac['getAttribute']('listItemId')!==_0x127e7e,_0x5a7d12=!_0x2c5c7c||_0x2c5c7c['getAttribute']('listItemId')!==_0x127e7e;return _0x59f650&&Boolean(_0x127e7e)&&_0x4b8a76&&_0x5a7d12;},_0x3cb82e=>c(_0x405b59,'ELEMENT_LIST_ITEM',_0x3cb82e));}['_registerLegacyDescription'](){const _0x3733f9=this['editor'],_0x491dce=_0x3733f9['locale'];function _0xa1b7f8(_0x19684d){const _0x2ef88e=_0x3733f9['commands']['get']('bulletedList')['value'],_0x10db0e=_0x3733f9['commands']['get']('numberedList')['value'];return'numberedList'===_0x19684d?_0x2ef88e:_0x10db0e;}_0x3733f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5d282b){if('formatBlock'!=_0x5d282b['type'])return;const {data:_0x5814c3}=_0x5d282b;if(!_0x5814c3)return;let _0x274b2e,_0x54ddcf,_0x5f13e3,_0x446fe3;switch(_0x5814c3['commandName']){case'bulletedList':_0x5f13e3=_0x5814c3['commandParams'][0x0]['forceValue'],_0x446fe3=_0xa1b7f8(_0x5814c3['commandName']),_0x274b2e=_0x5f13e3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x446fe3&&_0x3733f9['config']['get']('list.multiBlock')||(_0x274b2e='*Change\x20to:*\x20%0'),_0x54ddcf={'type':'format','content':c(_0x491dce,_0x274b2e,c(_0x491dce,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5f13e3=_0x5814c3['commandParams'][0x0]['forceValue'],_0x446fe3=_0xa1b7f8(_0x5814c3['commandName']),_0x274b2e=_0x5f13e3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x446fe3&&_0x3733f9['config']['get']('list.multiBlock')||(_0x274b2e='*Change\x20to:*\x20%0'),_0x54ddcf={'type':'format','content':c(_0x491dce,_0x274b2e,c(_0x491dce,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x274b2e='*Indent:*\x20%0',_0x54ddcf={'type':'format','content':c(_0x491dce,_0x274b2e,c(_0x491dce,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x274b2e=function(_0x50384b){const _0x294d88=_0x50384b['getFirstRange']();let _0x3eb99a=_0x294d88['start']['nodeAfter'];for(;_0x3eb99a&&_0x294d88['containsItem'](_0x3eb99a);){if(_0x3eb99a['getAttribute']('listIndent')>0x0)return!0x1;_0x3eb99a=_0x3eb99a['nextSibling'];}return!0x0;}(_0x5d282b)?c(_0x491dce,'*Format:*\x20remove\x20from\x20%0',c(_0x491dce,function(_0x27975d){return'ELEMENT_'+_0x27975d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5d282b))):c(_0x491dce,'*Outdent:*\x20%0',c(_0x491dce,'ELEMENT_LIST_ITEM')),_0x54ddcf={'type':'format','content':_0x274b2e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5814c3['multipleBlocks']&&(_0x274b2e='*Merge:*\x20%0',_0x54ddcf={'type':'deletion','content':c(_0x491dce,_0x274b2e,c(_0x491dce,'ELEMENT_LIST_ITEM'))});}return _0x54ddcf;});}}function Te(_0x2b43e4){let _0x411090=_0x2b43e4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x411090;){const _0x431afa=_0x411090['getAttribute']('listItemId');if(!_0x431afa)return!0x1;if(_0x431afa==_0x2b43e4['data']['newValue'])return'newValue';if(_0x431afa==_0x2b43e4['data']['oldValue'])return'oldValue';_0x411090=_0x411090['previousSibling'];}return!0x1;}class Se extends _0x413935{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5f1119=this['editor']['config']['get']('list.properties'),_0x5bdc46=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f1119['styles']&&(_0x5bdc46['enableDefaultAttributesIntegration']('listStyle'),_0x5bdc46['registerBlockAttribute']('listStyle')),_0x5f1119['reversed']&&(_0x5bdc46['enableDefaultAttributesIntegration']('listReversed'),_0x5bdc46['registerBlockAttribute']('listReversed')),_0x5f1119['startIndex']&&(_0x5bdc46['enableDefaultAttributesIntegration']('listStart'),_0x5bdc46['registerBlockAttribute']('listStart'));const _0x511341={'type':'format','content':''};_0x5bdc46['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xbbfdc=this['editor']['locale'];_0x5bdc46['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0xbbfdc,'FORMAT_LIST_REVERSED')),_0x5bdc46['descriptionFactory']['registerDescriptionCallback'](_0x4f7336=>{const {data:_0x17ddc5}=_0x4f7336;if(_0x17ddc5&&'listReversed'==_0x17ddc5['key'])return null==_0x17ddc5['newValue']||0x0==_0x17ddc5['newValue']&&null==_0x17ddc5['oldValue']?_0x511341:void 0x0;}),_0x5bdc46['descriptionFactory']['registerAttributeLabel']('listStart',c(_0xbbfdc,'FORMAT_LIST_START')),_0x5bdc46['descriptionFactory']['registerDescriptionCallback'](_0x42a947=>{const {data:_0x20f7c1}=_0x42a947;if(_0x20f7c1&&'listStart'==_0x20f7c1['key'])return null==_0x20f7c1['newValue']||0x1==_0x20f7c1['newValue']&&null==_0x20f7c1['oldValue']?_0x511341:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xc41853=>{if(_0xc41853['batch']['isUndo'])return!0x1;let _0xf42db8=!0x1;const _0x5bf18a=_0x5bdc46['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20f524=>{const _0x4bde22=_0x5bdc46['_getAttributeKey'](_0x20f524);return'listStart'==_0x4bde22||'listReversed'==_0x4bde22;});for(const _0x503d7d of _0x5bf18a){const _0x4e4e40=_0x503d7d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4e4e40||'customNumbered'==_0x4e4e40)continue;_0x5bdc46['_findSuggestions'](_0x503d7d['getFirstRange'](),'attribute')['find'](_0xa9eb8c=>'listType'==_0x5bdc46['_getAttributeKey'](_0xa9eb8c['suggestion']))||(_0xc41853['removeMarker'](_0x503d7d['getFirstMarker']()),_0xf42db8=!0x0);}return _0xf42db8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2828e8){const _0x258196=this['editor']['locale'],{data:_0x209820}=_0x2828e8,_0x3e101f={'type':'format','content':''};if(!_0x209820||'listStyle'!=_0x209820['key'])return;if(!_0x209820['oldValue'])return'default'==_0x209820['newValue']?_0x3e101f:{'type':'format','content':''+c(_0x258196,'*Set\x20format:*\x20%0',c(_0x258196,this['_getTranslationKeyForListStyle'](_0x209820['newValue'])))};if(!_0x209820['newValue']){if('default'==_0x209820['oldValue'])return _0x3e101f;let _0x170ac8=_0x2828e8['head'];for(;_0x170ac8;){if(_0x170ac8['data']&&'listType'==_0x170ac8['data']['key']&&_0x170ac8['data']['newValue'])return _0x3e101f;_0x170ac8=_0x170ac8['next'];}return{'type':'format','content':''+c(_0x258196,'*Remove\x20format:*\x20%0',c(_0x258196,this['_getTranslationKeyForListStyle'](_0x209820['oldValue'])))};}if('default'!=_0x209820['newValue'])return{'type':'format','content':''+c(_0x258196,'*Set\x20format:*\x20%0',c(_0x258196,this['_getTranslationKeyForListStyle'](_0x209820['newValue'])))};let _0x595a57=_0x2828e8['head'];for(;_0x595a57;){if(_0x595a57['data']&&'listType'==_0x595a57['data']['key']&&_0x595a57['data']['newValue']&&_0x595a57['data']['oldValue'])return _0x3e101f;_0x595a57=_0x595a57['next'];}return{'type':'format','content':c(_0x258196,'*Set\x20format:*\x20%0',c(_0x258196,'ELEMENT_'+_0x2828e8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x306119=this['editor'],_0x24e8b0=_0x306119['locale'];_0x306119['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xaa18b2=>{if('formatBlock'!=_0xaa18b2['type'])return;const {data:_0x536706}=_0xaa18b2;if(!_0x536706)return;let _0x359289,_0x345ec6;switch(_0x536706['commandName']){case'listStyle':_0x359289='*Change\x20to:*\x20%0',_0x345ec6={'type':'format','content':c(_0x24e8b0,_0x359289,c(_0x24e8b0,this['_getTranslationKeyForListStyle'](_0x536706['commandParams'][0x0]['type'])))};break;case'listReversed':_0x359289=_0x536706['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x345ec6={'type':'format','content':c(_0x24e8b0,_0x359289)};break;case'listStart':_0x359289='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x345ec6={'type':'format','content':c(_0x24e8b0,_0x359289,_0x536706['commandParams'][0x0]['startIndex'])};}return _0x345ec6;});}['_getTranslationKeyForListStyle'](_0x237eca){return'ELEMENT_'+function(_0x2b853d){if(_e['includes'](_0x2b853d))return'bulleted';if(Re['includes'](_0x2b853d))return'numbered';return null;}(_0x237eca)['toUpperCase']()+'_LIST_'+_0x237eca['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x413935{['afterInit'](){const _0x121b1a=this['editor'];_0x121b1a['commands']['get']('emoji')&&_0x121b1a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x413935{static get['requires'](){return[_0x278f9b];}['init'](){const _0x14761e=this['editor'],_0x432ff0=_0x14761e['plugins']['get']('TrackChangesEditing'),_0x34434a=_0x14761e['commands']['get']('enter');_0x432ff0['enableCommand']('enter',()=>{_0x14761e['model']['change'](_0x1b2757=>{const _0x89cd6b=_0x14761e['model']['document']['selection'],_0x4e1878=_0x89cd6b['getFirstPosition'](),_0x1c78f=_0x5bdd0a['fromRange'](_0x89cd6b['getFirstRange']());if(_0x34434a['enterBlock'](_0x1b2757)){const _0x5f47e9=_0x14761e['model']['createPositionAt'](_0x4e1878['parent']['nextSibling'],0x0),_0x53a123=_0x1b2757['createRange'](_0x4e1878,_0x5f47e9);_0x432ff0['markInsertion'](_0x53a123);}else _0x1b2757['setSelection'](_0x1b2757['createRange'](_0x1c78f['end']));_0x1c78f['detach'](),_0x34434a['fire']('afterExecute',{'writer':_0x1b2757});});}),_0x14761e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x14761e,'split'),{'priority':'high'}),_0x14761e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x7cd69,_0x1688de,_0x4aad7b)=>{const _0x310dc0=_0x4aad7b['mapper']['markerNameToElements'](_0x1688de['markerName']);if(_0x310dc0){for(const _0x3ab06c of _0x310dc0)_0x3ab06c['hasClass']('ck-suggestion-marker-split')&&(_0x4aad7b['mapper']['unbindElementFromMarkerName'](_0x3ab06c,_0x1688de['markerName']),_0x4aad7b['writer']['remove'](_0x3ab06c));}},{'priority':'high'}),_0x14761e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x168074,_0x5af8a1,_0x1aae06)=>{_0x1aae06['options']['showSuggestionHighlights']&&Fe(_0x14761e,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x168074,_0x5af8a1,_0x1aae06);},{'priority':'high'});}}class Z extends _0x413935{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xd93af2=this['editor']['plugins']['get']('TrackChangesEditing');_0xd93af2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xd93af2['enableCommand']('findNext'),_0xd93af2['enableCommand']('findPrevious'),_0xd93af2['enableCommand']('replace'),_0xd93af2['enableCommand']('replaceAll');}['handleFindCommand'](_0x2f39e6,_0x30e5dd,_0x37fc88={}){const _0x28a5f8=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2f39e6(_0x1608c3=>{let _0x4eda73=('string'==typeof _0x30e5dd?_0x28a5f8['findByTextCallback'](_0x30e5dd,_0x37fc88):_0x30e5dd)(_0x1608c3);Array['isArray'](_0x4eda73)&&(_0x4eda73={'results':_0x4eda73,'searchText':'string'==typeof _0x30e5dd?_0x30e5dd:''});const _0x3a787b=_0x4eda73['results']['filter'](_0x14d247=>!0x1===this['_isInDeletionRange'](_0x14d247,_0x1608c3['item']));return{..._0x4eda73,'results':_0x3a787b};},_0x37fc88);}['_isInDeletionRange'](_0x4a4a25,_0x42f430){const _0x258093=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x42f430,_0x4a4a25['start']),this['editor']['model']['createPositionAt'](_0x42f430,_0x4a4a25['end']));for(const _0x2fc639 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x258093['getIntersection'](_0x2fc639['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 _0x413935{['afterInit'](){const _0x361190=this['editor']['locale'],_0x4d04e2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5c4e42,commandName:_0x35e7d1}of ro)this['editor']['plugins']['has'](_0x5c4e42)&&(_0x4d04e2['enableDefaultAttributesIntegration'](_0x35e7d1),_0x4d04e2['registerInlineAttribute'](_0x35e7d1));_0x4d04e2['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x361190,'FORMAT_FONT_SIZE')),_0x4d04e2['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x361190,'FORMAT_FONT_FAMILY')),_0x4d04e2['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x361190,'FORMAT_FONT_COLOR')),_0x4d04e2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x361190,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d82cb=this['editor'],_0x4ab417=_0x2d82cb['locale'];_0x2d82cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa76023=>{const _0x42d93c=_0x4ab417['t'];if('formatInline'!=_0xa76023['type'])return;const {data:_0x3ef7f6}=_0xa76023;if(null!=_0x3ef7f6){if('fontSize'==_0x3ef7f6['commandName']){const _0x1b0b2a=_0x3ef7f6['commandParams'][0x0]['value'];if(_0x1b0b2a){const _0x2f02d7=_0x42d93c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5800bf=>_0x5800bf['model']==_0x1b0b2a)['title'])['toLowerCase']();return{'type':'format','content':c(_0x4ab417,'*Set\x20font\x20size:*\x20%0',_0x2f02d7)};}return{'type':'format','content':c(_0x4ab417,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3ef7f6['commandName']){const _0x210fb6=_0x3ef7f6['commandParams'][0x0]['value'];return _0x210fb6?{'type':'format','content':c(_0x4ab417,'*Set\x20font\x20family:*\x20%0',_0x210fb6)}:{'type':'format','content':c(_0x4ab417,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3ef7f6['commandName']){const _0x738744=_0x3ef7f6['commandParams'][0x0]['value'];if(_0x738744){const _0x198a6b=_0x37865b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1e4626=>_0x1e4626['model']==_0x738744);let _0x3beb9a=_0x738744,_0x3d7837='';return _0x198a6b&&(_0x3beb9a=_0x198a6b['label'],_0x3d7837=_0x42d93c(_0x3beb9a)['toLowerCase']()),{'type':'format','content':c(_0x4ab417,'*Set\x20font\x20color:*\x20%0',_0x3d7837)['trim'](),'color':{'value':_0x738744,'title':_0x3d7837||_0x3beb9a}};}return{'type':'format','content':c(_0x4ab417,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3ef7f6['commandName']){const _0x3262e7=_0x3ef7f6['commandParams'][0x0]['value'];if(_0x3262e7){const _0x49f595=_0x37865b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5b2bed=>_0x5b2bed['model']==_0x3262e7);let _0x37b593=_0x3262e7,_0x24e626='';return _0x49f595&&(_0x37b593=_0x49f595['label'],_0x24e626=_0x42d93c(_0x37b593)['toLowerCase']()),{'type':'format','content':c(_0x4ab417,'*Set\x20font\x20background\x20color:*\x20%0',_0x24e626)['trim'](),'color':{'value':_0x3262e7,'title':_0x24e626||_0x37b593}};}return{'type':'format','content':c(_0x4ab417,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x413935{['afterInit'](){const _0x4ead2d=this['editor'],_0x3a5218=_0x4ead2d['plugins']['get']('TrackChangesEditing'),_0x511e9f=_0x4ead2d['commands']['get']('copyFormat'),_0x555921=_0x4ead2d['commands']['get']('pasteFormat');_0x511e9f&&_0x555921&&(_0x3a5218['enableDefaultAttributesIntegration']('pasteFormat'),_0x3a5218['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x16f66b=this['editor'],_0x455319=_0x16f66b['locale'];_0x16f66b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c1fd1=>{if('formatBlock'!=_0x5c1fd1['type']&&'formatInline'!=_0x5c1fd1['type'])return;const {data:_0x5c5b43}=_0x5c1fd1;if(_0x5c5b43&&'pasteFormat'===_0x5c5b43['commandName']){const _0x3e7f9e=[],_0x4070fd=_0x5c5b43['commandParams'][0x0];for(const [_0x3e4ff8,_0x2f80c4]of Object['entries'](_0x4070fd))_0x3e7f9e['push'](so(_0x16f66b,_0x3e4ff8,_0x2f80c4));return _0x3e7f9e['length']?{'type':'format','content':c(_0x455319,'*Set\x20format\x20to:*\x20%0',_0x3e7f9e['join'](',\x20'))}:{'type':'format','content':c(_0x455319,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5b2cc1,_0x22d3c4,_0x3c1c87){const _0x3df554=_0x5b2cc1['locale']['t'],_0x1a1892=_0x22d3c4['split'](/(?=[A-Z])/)['join']('\x20'),_0x2b1842=_0x3df554(_0x1a1892['charAt'](0x0)['toUpperCase']()+_0x1a1892['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3c1c87)return _0x2b1842;if('fontColor'===_0x22d3c4||'fontBackgroundColor'===_0x22d3c4){const _0x2433cd=_0x37865b(_0x5b2cc1['config']['get']('fontColor.colors'))['find'](_0x201a8a=>_0x201a8a['model']==_0x3c1c87);return _0x2b1842+'\x20('+(_0x2433cd?_0x3df554(_0x2433cd['label'])['toLowerCase']():_0x3c1c87)+')';}if('fontSize'===_0x22d3c4&&isNaN(parseFloat(_0x3c1c87))){const _0x11209f=_0x5b2cc1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5b2cc1['config']['get']('fontSize.options'))['find'](_0x3ffce2=>_0x3ffce2['model']==_0x3c1c87);return _0x2b1842+'\x20('+(_0x11209f?_0x3df554(_0x11209f['title'])['toLowerCase']():_0x3c1c87)+')';}return _0x2b1842+'\x20('+_0x3c1c87+')';}class et extends _0x413935{['_headingOptions'];['afterInit'](){const _0x13d866=this['editor'];if(!_0x13d866['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x13d866['config']['get']('heading.options');const _0x1e617a=_0x13d866['locale'],_0x173307=_0x13d866['plugins']['get']('TrackChangesEditing');_0x173307['enableDefaultAttributesIntegration']('heading');for(const _0x476d55 of this['_headingOptions'])'paragraph'!=_0x476d55['model']&&_0x173307['descriptionFactory']['registerElementLabel'](_0x476d55['model'],_0x22ec22=>{const _0xe08a8a=this['_getHeadingLevel'](_0x476d55['model']);return null!==_0xe08a8a?_0x19fe3c(_0x22ec22,_0xe08a8a):_0x56d1e8(_0x22ec22,_0x476d55['title']);});function _0x19fe3c(_0x57b4fe,_0x5666e0){return c(_0x1e617a,'ELEMENT_HEADING',[_0x57b4fe,_0x5666e0]);}function _0x56d1e8(_0xb4fb93,_0x3831fc){return c(_0x1e617a,'ELEMENT_HEADING_CUSTOM',[_0xb4fb93,_0x3831fc]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39895b=this['editor'],_0x34d708=_0x39895b['locale'];function _0x3b82d4(_0x449ad7,_0x3b81ec){return c(_0x34d708,'ELEMENT_HEADING_CUSTOM',[_0x449ad7,_0x3b81ec]);}_0x39895b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x353cc6=>{if('formatBlock'!=_0x353cc6['type'])return;const {data:_0x2fedd2}=_0x353cc6;if(_0x2fedd2&&'heading'==_0x2fedd2['commandName']){const _0x56b599=_0x2fedd2['commandParams'][0x0]['value'],_0x14ee39=this['_getHeadingLevel'](_0x56b599);if(null!==_0x14ee39)return{'type':'format','content':c(_0x34d708,'*Change\x20to:*\x20%0',(_0x3738c4=0x1,_0x1bc1ec=_0x14ee39,c(_0x34d708,'ELEMENT_HEADING',[_0x3738c4,_0x1bc1ec])))};const _0x480ecb=this['_headingOptions']['find'](_0x36872c=>_0x36872c['model']===_0x56b599)['title'];return{'type':'format','content':c(_0x34d708,'*Change\x20to:*\x20%0',_0x3b82d4(0x1,_0x480ecb))};}var _0x3738c4,_0x1bc1ec;});}['_getHeadingLevel'](_0x21b001){const _0x1dbb79=_0x21b001['match'](/^heading(\d+)/);if(_0x1dbb79)return _0x1dbb79[0x1];const _0x39c1c8=this['_headingOptions']?.['find'](_0x483304=>_0x483304['model']==_0x21b001);if(_0x39c1c8&&_0x39c1c8['view']){const _0x186b30=_0x39c1c8['view'],_0x364650=(_0x186b30['name']??_0x186b30)['match'](/^h(\d+)/);if(_0x364650)return _0x364650[0x1];}return null;}}class nt extends _0x413935{['afterInit'](){const _0x49c187=this['editor'];if(!_0x49c187['plugins']['has']('HighlightEditing'))return;const _0xa65da7=_0x49c187['plugins']['get']('TrackChangesEditing'),_0x175d4f=_0x49c187['locale'];_0xa65da7['enableDefaultAttributesIntegration']('highlight'),_0xa65da7['registerInlineAttribute']('highlight'),_0xa65da7['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x175d4f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3670ce=this['editor'],_0x110dc5=_0x3670ce['locale'];_0x3670ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dd813=>{if('formatInline'!=_0x1dd813['type'])return;const {data:_0x53ec09}=_0x1dd813;if(_0x53ec09&&'highlight'==_0x53ec09['commandName']){const _0x2396d4=_0x110dc5['t'],_0x3a928a=_0x53ec09['commandParams'][0x0]['value'];if(_0x3a928a){const _0x46610e=_0x3670ce['config']['get']('highlight.options')['find'](_0x141f1c=>_0x141f1c['model']==_0x3a928a),_0x537333=_0x2396d4(_0x46610e['title'])['toLowerCase']();return{'type':'format','content':c(_0x110dc5,'*Set\x20highlight:*\x20%0',_0x537333),'color':{'value':_0x46610e['color'],'title':_0x46610e['title']}};}return{'type':'format','content':c(_0x110dc5,'*Remove\x20highlight*',c(_0x110dc5,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x413935{['afterInit'](){const _0x296535=this['editor'];if(!_0x296535['plugins']['has']('HorizontalLineEditing'))return;_0x296535['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x449b88=_0x296535['plugins']['get']('TrackChangesEditing'),_0x3b6fc0=_0x296535['locale'];_0x449b88['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3731bb=>c(_0x3b6fc0,'ELEMENT_HORIZONTAL_LINE',_0x3731bb)),_0x296535['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x473d6f,{writer:_0x52e6b7,options:_0x3d51bb})=>{if(!_0x3d51bb['showSuggestionHighlights'])return null;const _0x3130aa=_0x52e6b7['createContainerElement']('div'),_0x3252cb=_0x52e6b7['createEmptyElement']('hr');return _0x52e6b7['addClass']('ck-horizontal-line',_0x3130aa),_0x52e6b7['insert'](_0x52e6b7['createPositionAt'](_0x3130aa,0x0),_0x3252cb),_0x3130aa;},'converterPriority':'high'});}}class ot extends _0x413935{['afterInit'](){const _0x24ecc=this['editor'];if(!_0x24ecc['plugins']['has']('HtmlEmbed'))return;const _0x982635=_0x24ecc['plugins']['get']('TrackChangesEditing'),_0x255929=_0x24ecc['locale'];_0x982635['descriptionFactory']['registerElementLabel']('rawHtml',_0x588e35=>c(_0x255929,'ELEMENT_HTML_EMBED',_0x588e35)),_0x982635['enableDefaultAttributesIntegration']('htmlEmbed'),_0x982635['registerBlockAttribute']('value'),_0x982635['descriptionFactory']['registerDescriptionCallback'](_0x9afaee=>{if('attribute'!=_0x9afaee['type'])return;const {data:_0x1fd797}=_0x9afaee;if(_0x1fd797&&'value'==_0x1fd797['key']&&_0x9afaee['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5f4c93=c(_0x255929,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x255929,'*Change\x20%0\x20content*',_0x5f4c93)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc45df3=this['editor'],_0xfd5e0=_0xc45df3['locale'];_0xc45df3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54ff52=>{if('formatBlock'!=_0x54ff52['type'])return;const {data:_0x1e7381}=_0x54ff52;if(_0x1e7381&&'htmlEmbed'==_0x1e7381['commandName']){const _0x244a72=c(_0xfd5e0,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0xfd5e0,'*Change\x20%0\x20content*',_0x244a72)};}});}}class rt extends _0x413935{['afterInit'](){const _0x12e577=this['editor'];if(!_0x12e577['plugins']['has']('ImageEditing'))return;const _0x6235d2=_0x12e577['plugins']['get']('TrackChangesEditing'),_0x559ceb=_0x12e577['plugins']['get']('ImageUtils'),_0x1621eb=_0x12e577['locale'];_0x6235d2['enableCommand']('insertImage'),_0x6235d2['descriptionFactory']['registerElementLabel']('imageBlock',_0x2891b8=>c(_0x1621eb,'ELEMENT_IMAGE',_0x2891b8)),_0x6235d2['descriptionFactory']['registerElementLabel']('imageInline',_0x408de9=>c(_0x1621eb,'ELEMENT_INLINE_IMAGE',_0x408de9)),_0x6235d2['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x1621eb,'ELEMENT_CAPTION')),_0x12e577['plugins']['has']('ImageUploadEditing')&&_0x6235d2['enableCommand']('uploadImage'),_0x12e577['plugins']['has']('ImageBlockEditing')&&_0x12e577['plugins']['has']('ImageInlineEditing')&&(_0x6235d2['enableCommand']('imageTypeInline',(_0x4fb904,_0x2a839b)=>{const _0x11e7c2=_0x559ceb['getClosestSelectedImageElement'](_0x12e577['model']['document']['selection']);_0x12e577['model']['change'](()=>{_0x6235d2['markBlockFormat'](_0x11e7c2,{'commandName':'imageTypeInline','commandParams':[_0x2a839b]},[],'convertBlockImageToInline');});}),_0x6235d2['enableCommand']('imageTypeBlock',(_0xb55742,_0x145470)=>{_0x12e577['model']['change'](_0x26f611=>{let _0x57fa95=_0x559ceb['getClosestSelectedImageElement'](_0x12e577['model']['document']['selection']),_0x52bc57=_0x26f611['createRangeOn'](_0x57fa95);const _0x31ed84=_0xee47ba['fromPosition'](_0x52bc57['start'],'toPrevious'),_0x52da97=_0xee47ba['fromPosition'](_0x52bc57['end'],'toNext');_0x6235d2['forceDefaultExecution'](()=>_0xb55742(_0x145470)),_0x57fa95=_0x559ceb['getClosestSelectedImageElement'](_0x12e577['model']['document']['selection']),_0x52bc57=_0x26f611['createRangeOn'](_0x57fa95);const _0x3a544e=_0x26f611['createRange'](_0x31ed84,_0x52da97);_0x31ed84['detach'](),_0x52da97['detach'](),_0x6235d2['markBlockFormat'](_0x57fa95,{'commandName':'imageTypeInline','commandParams':[_0x145470]},[],'convertInlineImageToBlock'),_0x3a544e['start']['isBefore'](_0x52bc57['start'])&&_0x6235d2['markInsertion'](_0x26f611['createRange'](_0x3a544e['start'],_0x52bc57['start']),'convertInlineImageToBlock'),_0x52bc57['end']['isBefore'](_0x3a544e['end'])&&_0x6235d2['markInsertion'](_0x26f611['createRange'](_0x52bc57['end'],_0x3a544e['end']),'convertInlineImageToBlock');});}),_0x6235d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x6235d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x6235d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x6235d2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x6235d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x6235d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x564b36])=>{const _0x2e8f91=_0x6235d2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4eb872=_0x564b36['start'],_0x3f06ac=_0x564b36['end'];const _0x737805=_0x12e577['model']['schema']['getNearestSelectionRange'](_0x4eb872,'backward'),_0x27d7c2=_0x12e577['model']['schema']['getNearestSelectionRange'](_0x3f06ac,'forward');_0x737805['isCollapsed']&&(_0x4eb872=_0x737805['start']),_0x27d7c2['isCollapsed']&&(_0x3f06ac=_0x27d7c2['end']),_0x2e8f91([_0x12e577['model']['createRange'](_0x4eb872,_0x3f06ac)]);}),_0x6235d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2f57df),_0x6235d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2f57df)),_0x12e577['plugins']['has']('ImageCaptionEditing')&&(_0x6235d2['enableCommand']('toggleImageCaption',(_0x2fffb1,_0x4a25aa)=>{const _0x478305=_0x12e577['plugins']['get']('ImageCaptionUtils');let _0x147453=_0x559ceb['getClosestSelectedImageElement'](_0x12e577['model']['document']['selection']),_0x2bf633=_0x478305['getCaptionFromImageModelElement'](_0x147453);_0x12e577['model']['change'](()=>{if(_0x2bf633)return void _0x6235d2['markDeletion'](_0x12e577['model']['createRangeOn'](_0x2bf633));const _0x494ced=_0x559ceb['isBlockImage'](_0x147453);_0x2fffb1(_0x4a25aa),_0x147453=_0x559ceb['getClosestSelectedImageElement'](_0x12e577['model']['document']['selection']),_0x2bf633=_0x478305['getCaptionFromImageModelElement'](_0x147453),_0x6235d2['markInsertion'](_0x12e577['model']['createRangeOn'](_0x2bf633),_0x494ced?null:'imageCaption');});}),_0x6235d2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2f57df));const _0x561c1c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x467c3c(_0x19c429,_0x324881){const _0x37daec=_0x561c1c['findIndex'](({type:_0x1099e5,subType:_0x2c9bf3})=>_0x19c429['type']==_0x1099e5&&_0x19c429['subType']==_0x2c9bf3),_0x25ebcd=_0x561c1c['findIndex'](({type:_0x528290,subType:_0x31656b})=>_0x324881['type']==_0x528290&&_0x324881['subType']==_0x31656b);if(_0x37daec<0x0||_0x25ebcd<0x0)return!0x1;const _0x34d148=_0x19c429['getFirstRange'](),_0x15075e=_0x324881['getFirstRange']();if((0x0==_0x37daec||0x1==_0x37daec)&&0x2==_0x25ebcd&&_0x34d148['isIntersecting'](_0x15075e))return!0x0;if(0x2==_0x37daec&&0x3==_0x25ebcd){const _0x5a899b=_0x6235d2['_findSuggestions'](_0x34d148,'insertion')['filter'](({suggestion:_0x464e6d,meta:_0x30899e})=>_0x30899e['isOwn']&&'convertInlineImageToBlock'==_0x464e6d['subType']);if(_0x5a899b['length']>0x1&&_0x15075e['end']['isEqual'](_0x34d148['start']))return!0x0;if(0x1==_0x5a899b['length']&&(_0x34d148['start']['isEqual'](_0x15075e['end'])||_0x34d148['end']['isEqual'](_0x15075e['start'])))return!0x0;}if(0x3==_0x37daec&&0x3==_0x25ebcd&&_0x34d148['start']['isBefore'](_0x15075e['start'])){const _0x44129e=_0x34d148['end']['nodeAfter'],_0x3bf7f6=_0x15075e['start']['nodeBefore'];return _0x559ceb['isBlockImage'](_0x44129e)&&_0x44129e===_0x3bf7f6;}return!0x1;}function _0x2f57df(_0x2cfc02,_0xe2c891){return _0x467c3c(_0x2cfc02,_0xe2c891)?[_0x2cfc02,_0xe2c891]:_0x467c3c(_0xe2c891,_0x2cfc02)?[_0xe2c891,_0x2cfc02]:null;}_0x12e577['plugins']['has']('ImageResize')&&(_0x6235d2['enableDefaultAttributesIntegration']('resizeImage'),_0x6235d2['registerBlockAttribute']('resizedWidth'),_0x6235d2['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x1621eb,'FORMAT_IMAGE_SIZE'))),_0x12e577['plugins']['has']('ImageTextAlternativeEditing')&&(_0x6235d2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x6235d2['registerBlockAttribute']('alt')),_0x12e577['plugins']['has']('PictureEditing')&&(_0x6235d2['registerBlockAttribute']('sources'),_0x6235d2['descriptionFactory']['registerDescriptionCallback'](_0x5cfeaf=>{if('attribute'!=_0x5cfeaf['type'])return;const {data:_0x355c4b}=_0x5cfeaf;return _0x355c4b&&'sources'==_0x355c4b['key']?{'type':'format','content':''}:void 0x0;})),_0x12e577['plugins']['has']('ImageSizeAttributes')&&(_0x6235d2['registerBlockAttribute']('width'),_0x6235d2['registerBlockAttribute']('height'),_0x6235d2['descriptionFactory']['registerDescriptionCallback'](_0x193acc=>{if('attribute'!=_0x193acc['type'])return;const {data:_0x37a665}=_0x193acc;return!_0x37a665||'width'!=_0x37a665['key']&&'height'!=_0x37a665['key']?void 0x0:{'type':'format','content':''};})),_0x6235d2['descriptionFactory']['registerDescriptionCallback'](_0x3386a5=>{if(!!_0x561c1c['find'](({type:_0x1a65f3,subType:_0x409ea4})=>_0x3386a5['type']==_0x1a65f3&&_0x3386a5['subType']==_0x409ea4))return _0x3386a5['previous']?{}:void 0x0;}),_0x6235d2['descriptionFactory']['registerDescriptionCallback'](_0x5dbaca=>{if('insertion'==_0x5dbaca['type']||'deletion'==_0x5dbaca['type']){const _0x42cbbe=_0x5dbaca['getContainedElement']();if(_0x42cbbe&&_0x42cbbe['is']('element','caption'))return{'type':'insertion'==_0x5dbaca['type']?'addObject':'removeObject','element':_0x42cbbe,'quantity':0x1};}}),_0x6235d2['descriptionFactory']['registerDescriptionCallback'](_0x3c81f1=>'formatBlock'==_0x3c81f1['type']&&'convertInlineImageToBlock'==_0x3c81f1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3c81f1['type']&&'convertBlockImageToInline'==_0x3c81f1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x6235d2['descriptionFactory']['registerDescriptionCallback'](_0x2065f0=>{if('attribute'!=_0x2065f0['type'])return;const {data:_0x2e6cb2}=_0x2065f0;if(!_0x2e6cb2||'alt'!=_0x2e6cb2['key'])return;const _0x2743f3=_0x2e6cb2['newValue'];return _0x2743f3?{'type':'format','content':c(_0x1621eb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2743f3+'\x22')}:{'type':'format','content':c(_0x1621eb,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bb064=this['editor'],_0x1fa876=_0x2bb064['locale'];_0x2bb064['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37624c=>{if('formatBlock'!=_0x37624c['type']&&'formatInline'!=_0x37624c['type'])return;const {data:_0x3d1243}=_0x37624c;if(_0x3d1243){if('imageTextAlternative'==_0x3d1243['commandName']){const _0x537f7f=_0x3d1243['commandParams'][0x0]['newValue'];return _0x537f7f?{'type':'format','content':c(_0x1fa876,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x537f7f+'\x22')}:{'type':'format','content':c(_0x1fa876,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3d1243['commandName']){const _0x24e9fb=_0x3d1243['commandParams'][0x0]['width'];return _0x24e9fb?{'type':'format','content':c(_0x1fa876,'*Set\x20image\x20width:*\x20%0',_0x24e9fb)}:{'type':'format','content':c(_0x1fa876,'*Reset\x20image\x20width*')};}}});}}class at extends _0x413935{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x27aa3f=this['editor']['locale'],_0x357183=this['editor']['plugins']['get']('TrackChangesEditing');_0x357183['enableDefaultAttributesIntegration']('replaceImageSource'),_0x357183['registerBlockAttribute']('src'),_0x357183['descriptionFactory']['registerDescriptionCallback'](_0x1cf230=>{if('attribute'!=_0x1cf230['type'])return;const {data:_0x16551a}=_0x1cf230;return _0x16551a&&'src'==_0x16551a['key']?_0x16551a['newValue']&&_0x16551a['oldValue']?{'type':'format','content':c(_0x27aa3f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x559513=this['editor']['plugins']['get']('TrackChangesEditing');_0x559513['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x559513['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x559513['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x559513['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30cde2=this['editor'],_0x32d2a7=_0x30cde2['locale'];_0x30cde2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe1a50d=>{if('formatBlock'!=_0xe1a50d['type']&&'formatInline'!=_0xe1a50d['type'])return;const {data:_0x2fe689}=_0xe1a50d;if(!_0x2fe689||'replaceImageSource'!=_0x2fe689['commandName'])return;return{'type':'format','content':c(_0x32d2a7,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x413935{['afterInit'](){const _0x25f33c=this['editor'];if(!_0x25f33c['plugins']['has']('ImageStyleEditing'))return;const _0x42fe0a=_0x25f33c['plugins']['get']('TrackChangesEditing'),_0x3b1856=_0x25f33c['plugins']['get']('ImageUtils'),_0x5e86ef={};_0x42fe0a['enableCommand']('imageStyle',(_0x338c22,_0x1a9782)=>{const _0xc1a069=_0x25f33c['plugins']['get']('Users')['me'],_0x5eee94=_0x25f33c['commands']['get']('imageStyle');let _0x885e34=_0x3b1856['getClosestSelectedImageElement'](_0x25f33c['model']['document']['selection']),_0x50028e=_0x25f33c['model']['createRangeOn'](_0x885e34),_0x54bab6=_0x5eee94['value'];if(_0x54bab6==_0x1a9782['value'])return;const _0x1da384={'commandName':'imageStyle','commandParams':[_0x1a9782],'formatGroupId':_0x57be53()};_0x25f33c['model']['change'](()=>{if(_0x42fe0a['getSuggestions']()['filter'](_0x14e83b=>_0x14e83b['isInContent']&&_0xc1a069==_0x14e83b['author']&&('formatBlock'==_0x14e83b['type']||'formatInline'==_0x14e83b['type'])&&('imageStylePreApply'==_0x14e83b['subType']||'imageStylePostApply'==_0x14e83b['subType'])&&_0x14e83b['getFirstRange']()['isEqual'](_0x50028e))['forEach'](_0x44ad62=>_0x42fe0a['discardSuggestion'](_0x44ad62['head'])),_0x885e34=_0x3b1856['getClosestSelectedImageElement'](_0x25f33c['model']['document']['selection']),_0x50028e=_0x25f33c['model']['createRangeOn'](_0x885e34),_0x5eee94['refresh'](),_0x25f33c['commands']['get']('imageTypeInline')['refresh'](),_0x25f33c['commands']['get']('imageTypeBlock')['refresh'](),_0x54bab6=_0x5eee94['value'],_0x54bab6!=_0x1a9782['value'])return _0x3b1856['isInlineImage'](_0x885e34)&&_0x5eee94['shouldConvertImageType'](_0x1a9782['value'],_0x885e34)?(_0x338c22({..._0x1a9782,'setImageSizes':!0x1}),_0x885e34=_0x3b1856['getClosestSelectedImageElement'](_0x25f33c['model']['document']['selection']),void _0x42fe0a['markBlockFormat'](_0x885e34,{..._0x1da384,'commandReversedParams':[{'value':_0x54bab6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3b1856['isBlockImage'](_0x885e34)?_0x42fe0a['markBlockFormat'](_0x885e34,_0x1da384,[],'imageStylePostApply'):_0x42fe0a['markInlineFormat'](_0x50028e,_0x1da384,'imageStylePostApply'));});});for(const _0x4bfc28 of _0x25f33c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5e86ef[_0x4bfc28['name']]=_0x4bfc28['title']['toLowerCase']();_0x42fe0a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x42fe0a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x42fe0a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x42fe0a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x6af0c4])=>{_0x3b1856['setImageNaturalSizeAttributes'](_0x6af0c4['getContainedElement']());}),_0x42fe0a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x11cdf0,_0x1344fc)=>{_0x42fe0a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x11cdf0,{'commandName':_0x1344fc['commandName'],'commandParams':_0x1344fc['commandReversedParams']});}),_0x42fe0a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x206af6,_0x4065aa){if(_0x45ecd6(_0x206af6,_0x4065aa))return[_0x206af6,_0x4065aa];if(_0x45ecd6(_0x4065aa,_0x206af6))return[_0x4065aa,_0x206af6];return null;});const _0x3fc5e8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x45ecd6(_0x4eb2c3,_0x3a2e7e){const _0x3ff2a0=_0x3fc5e8['findIndex'](({type:_0x427f0a,subType:_0x4f2b89})=>_0x4eb2c3['type']==_0x427f0a&&_0x4eb2c3['subType']==_0x4f2b89),_0xd9fb36=_0x3fc5e8['findIndex'](({type:_0x2cfd90,subType:_0xedddba})=>_0x3a2e7e['type']==_0x2cfd90&&_0x3a2e7e['subType']==_0xedddba);if(_0x3ff2a0<0x0||_0xd9fb36<0x0)return!0x1;const _0x11ad68=_0x4eb2c3['getFirstRange'](),_0x44a79b=_0x3a2e7e['getFirstRange']();if((0x0==_0x3ff2a0||0x1==_0x3ff2a0)&&0x2==_0xd9fb36&&_0x11ad68['isIntersecting'](_0x44a79b))return!0x0;if(0x2==_0x3ff2a0&&0x3==_0xd9fb36){const _0x39f828=_0x42fe0a['_findSuggestions'](_0x11ad68,'insertion')['filter'](({suggestion:_0x338215,meta:_0x272464})=>_0x272464['isOwn']&&'convertInlineImageToBlock'==_0x338215['subType']);if(_0x39f828['length']>0x1&&_0x44a79b['end']['isEqual'](_0x11ad68['start']))return!0x0;if(0x1==_0x39f828['length']&&(_0x11ad68['start']['isEqual'](_0x44a79b['end'])||_0x11ad68['end']['isEqual'](_0x44a79b['start'])))return!0x0;}if(0x3==_0x3ff2a0&&0x3==_0xd9fb36&&_0x11ad68['start']['isBefore'](_0x44a79b['start'])){const _0x4f1cd2=_0x11ad68['end']['nodeAfter'],_0x3d3d7b=_0x44a79b['start']['nodeBefore'];return _0x3b1856['isBlockImage'](_0x4f1cd2)&&_0x4f1cd2===_0x3d3d7b;}return!0x1;}_0x25f33c['model']['document']['registerPostFixer'](()=>{let _0x2f84fa=!0x1;const _0x51f2f3=Array['from'](_0x25f33c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bc302,data:_0x538c29}of _0x51f2f3){const {group:_0x401ad5,type:_0x2a7c48,subType:_0x4c5f95,id:_0x6e6450}=_0x42fe0a['_splitMarkerName'](_0x2bc302);if('suggestion'==_0x401ad5&&_0x42fe0a['hasSuggestion'](_0x6e6450)){if('formatBlock'==_0x2a7c48&&('imageStylePreApply'==_0x4c5f95||'imageStylePostApply'==_0x4c5f95)){const _0x331a13=_0x42fe0a['getSuggestion'](_0x6e6450);if(_0x538c29['newRange']){const _0x2bdb8a=_0x331a13['getFirstRange']()['getContainedElement']();if(_0x3b1856['isBlockImage'](_0x2bdb8a))continue;_0x42fe0a['discardSuggestion'](_0x331a13),_0x2f84fa=!0x0;}}if('insertion'==_0x2a7c48&&'imageCaption'==_0x4c5f95&&!_0x538c29['newRange']){const _0x149850=_0x42fe0a['getSuggestion'](_0x6e6450);_0x149850['next']&&_0x149850['next']['isInContent']&&(_0x42fe0a['discardSuggestion'](_0x149850['next']),_0x2f84fa=!0x0);}}}return _0x2f84fa;}),this['_registerLegacyDescription'](_0x5e86ef);}['_registerLegacyDescription'](_0xb5105c){const _0x49e316=this['editor'],_0x2fec43=_0x49e316['locale'];_0x49e316['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fdbff=>{if('formatBlock'!=_0x1fdbff['type']&&'formatInline'!=_0x1fdbff['type'])return;const {data:_0x520eba}=_0x1fdbff;if(!_0x520eba||'imageStyle'!=_0x520eba['commandName'])return;const _0x5c5523=_0x520eba['commandParams'][0x0]['value'];return _0x37c5b3('side'===_0x5c5523?c(_0x2fec43,'FORMAT_SIDE_IMAGE'):_0xb5105c[_0x5c5523]||_0x5c5523);function _0x37c5b3(_0x23b832){return{'type':'format','content':c(_0x2fec43,'*Format:*\x20%0',_0x23b832)};}});}}class ut extends _0x413935{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xbe57af){super(_0xbe57af),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x947f5d=this['editor'],_0x49726e=_0x947f5d['commands']['get']('importWord'),_0x56609d=_0x947f5d['commands']['get']('trackChanges');_0x49726e&&(_0x49726e['on']('execute',(_0x156676,[,_0x442493])=>{this['_trackChangesValueDuringImport']=_0x56609d['value'],_0x442493['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x49726e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x49726e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x56609d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x947f5d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x60046f,_0x729c4b){const {suggestions:_0x3c597f}=_0x729c4b,_0x5c41a1=this['editor']['commands']['get']('trackChanges'),_0x3257ba=_0x5c41a1['value'];this['_trackChangesValueDuringImport']!==_0x3257ba&&(_0x5c41a1['execute'](),this['_trackChangesExecuted']=!0x0),_0x3c597f&&_0x3c597f['forEach'](({id:_0xe8e9e7,type:_0x5d1cb6,author:_0x47d62a,created_at:_0x2c80e1})=>{const _0x1b5b0a={'id':_0xe8e9e7,'type':_0x5d1cb6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x47d62a,'createdAt':_0x2c80e1?new Date(_0x2c80e1):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1b5b0a);});}}class ft extends _0x413935{['afterInit'](){const _0x740aa2=this['editor'],_0x4e4687=_0x740aa2['plugins']['get']('TrackChangesEditing');if(_0x740aa2['plugins']['has']('IndentEditing')&&(_0x4e4687['enableCommand']('indent'),_0x4e4687['enableCommand']('outdent')),_0x740aa2['plugins']['has']('IndentBlock')){for(const _0x366113 of['indentBlock','outdentBlock'])_0x4e4687['enableDefaultAttributesIntegration'](_0x366113);}const _0x21b117=_0x740aa2['locale'];_0x4e4687['registerBlockAttribute']('blockIndent'),_0x4e4687['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x21b117,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1efa9d=this['editor'],_0x218a99=_0x1efa9d['locale'],_0x1cb625=_0x1efa9d['plugins']['get']('TrackChangesEditing');_0x1cb625['descriptionFactory']['registerDescriptionCallback'](_0x26f429=>{if('formatBlock'!=_0x26f429['type'])return;const {data:_0x1b6904}=_0x26f429;if(!_0x1b6904)return;if('indentBlock'!=_0x1b6904['commandName']&&'outdentBlock'!=_0x1b6904['commandName'])return;const _0x222a9a=_0x26f429['getItems']()[0x0],_0x2d36bd=_0x1cb625['descriptionFactory']['getItemLabel'](_0x222a9a);return'indentBlock'==_0x1b6904['commandName']?{'type':'format','content':c(_0x218a99,'*Indent:*\x20%0',_0x2d36bd)}:'outdentBlock'==_0x1b6904['commandName']?{'type':'format','content':c(_0x218a99,'*Outdent:*\x20%0',_0x2d36bd)}:void 0x0;});}}class ht extends _0x413935{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x413935{['afterInit'](){const _0x2c0917=this['editor'];if(!_0x2c0917['plugins']['has']('LinkEditing'))return;const _0x53f280=_0x2c0917['plugins']['get']('TrackChangesEditing'),_0x33102f=_0x2c0917['commands']['get']('link');_0x53f280['enableDefaultAttributesIntegration']('link'),_0x53f280['enableDefaultAttributesIntegration']('unlink'),_0x53f280['registerInlineAttribute']('linkHref');for(const _0x1dc784 of _0x33102f['manualDecorators'])_0x53f280['registerInlineAttribute'](_0x1dc784['id']),_0x53f280['descriptionFactory']['registerAttributeLabel'](_0x1dc784['id'],'link\x20('+_0x1dc784['label']['toLowerCase']()+')');_0x53f280['descriptionFactory']['registerDescriptionCallback'](_0x2bf508=>{if('attribute'!=_0x2bf508['type'])return;const {data:_0xfc15b5}=_0x2bf508;if(!_0xfc15b5||'linkHref'!=_0xfc15b5['key'])return;const _0x296e04=_0xfc15b5['newValue'],_0x417a41=_0x2c0917['locale'];return{'type':'format','content':null==_0x296e04?c(_0x417a41,'*Remove\x20link*'):c(_0x417a41,'*Set\x20link:*\x20%0','\x22'+_0x296e04+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fa2d1=this['editor'],_0x3413fb=_0x4fa2d1['locale'];_0x4fa2d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e0d4a=>{if('formatInline'!=_0x5e0d4a['type'])return;const {data:_0x43028c}=_0x5e0d4a;if(_0x43028c){if('link'==_0x43028c['commandName']){const _0x1dd50d=_0x43028c['commandParams'][0x0];return{'type':'format','content':c(_0x3413fb,'*Set\x20link:*\x20%0','\x22'+_0x1dd50d+'\x22')};}return'unlink'==_0x43028c['commandName']?{'type':'format','content':c(_0x3413fb,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x413935{['afterInit'](){const _0x44e837=this['editor'],_0x493744=_0x44e837['locale'];if(!_0x44e837['plugins']['has']('LegacyListEditing'))return;const _0x1dcb16=_0x44e837['plugins']['get']('TrackChangesEditing'),_0x41e174=_0x44e837['plugins']['has']('LegacyTodoListEditing');function _0x1b6a18(_0x1ecec0){return()=>{const _0x6c1fae=_0x44e837['model']['document']['selection'],_0x28e659=_0x44e837['commands']['get'](_0x1ecec0);if(_0x28e659['value'])return void _0x44e837['execute']('paragraph',{});const _0x31a461=_0x1ecec0['slice'](0x0,-0x4),_0x24f48a=function(_0xf4b153,_0x470f18,_0x73dea2){let _0x3ed4eb=Array['from'](_0xf4b153)['filter'](_0xe5ae91=>function(_0x4ffd18,_0x1a3f7a){return _0x1a3f7a['checkChild'](_0x4ffd18['parent'],'listItem')&&!_0x1a3f7a['isObject'](_0x4ffd18);}(_0xe5ae91,_0x73dea2));_0x3ed4eb=_0x3ed4eb['filter'](_0x1fd1d5=>!_0x1fd1d5['is']('element','listItem')||_0x1fd1d5['getAttribute']('listType')!=_0x470f18);const _0x32c287=new Set();for(const _0x58e0a5 of _0x3ed4eb)_0x58e0a5['is']('element','listItem')?_0x32c287['add'](Le(_0x58e0a5)):_0x32c287['add'](_0x58e0a5);return Array['from'](_0x32c287);}(_0x6c1fae['getSelectedBlocks'](),_0x31a461,_0x44e837['model']['schema']);_0x44e837['model']['change'](()=>{for(const _0x486d78 of _0x24f48a)_0x1dcb16['markBlockFormat'](_0x486d78,{'commandName':_0x1ecec0,'commandParams':[{'forceValue':!_0x28e659['value']}],'formatGroupId':'blockName'},Ee(_0x486d78));});};}function _0x4b1544(_0x2b8c32){return()=>{const _0x9e2ee4=function(_0x500a91){let _0x5c5ce0=Array['from'](_0x500a91);const _0x304ad8=_0x5c5ce0['findIndex'](_0x1a3e89=>'listItem'!=_0x1a3e89['name']);return _0x304ad8>-0x1&&(_0x5c5ce0=_0x5c5ce0['slice'](0x0,_0x304ad8)),_0x5c5ce0;}(_0x44e837['model']['document']['selection']['getSelectedBlocks']()),_0x1802e6=_0x44e837['model']['createRange'](_0x44e837['model']['createPositionAt'](_0x9e2ee4[0x0],'before'),_0x44e837['model']['createPositionAt'](_0x9e2ee4[_0x9e2ee4['length']-0x1],'end'));_0x44e837['model']['change'](()=>{_0x1dcb16['markBlockFormat'](_0x1802e6,{'commandName':_0x2b8c32,'commandParams':[],'formatGroupId':'listIndent'},function(_0x21f3a5){const _0x4c8487=new Set();for(const _0x373392 of _0x21f3a5){let _0x2fc9c6=_0x373392['nextSibling'];for(;_0x2fc9c6&&_0x2fc9c6['getAttribute']('listIndent')>_0x373392['getAttribute']('listIndent');)_0x4c8487['add'](_0x2fc9c6),_0x2fc9c6=_0x2fc9c6['nextSibling'];}return Array['from'](_0x4c8487);}(_0x9e2ee4));});};}_0x1dcb16['enableCommand']('numberedList',_0x1b6a18('numberedList')),_0x1dcb16['enableCommand']('bulletedList',_0x1b6a18('bulletedList')),_0x41e174&&_0x1dcb16['enableCommand']('todoList',_0x1b6a18('todoList')),_0x1dcb16['enableCommand']('indentList',_0x4b1544('indentList')),_0x1dcb16['enableCommand']('outdentList',_0x4b1544('outdentList')),_0x41e174&&_0x1dcb16['enableCommand']('checkTodoList',()=>{const _0x320e4c=_0x44e837['commands']['get']('checkTodoList'),_0x5234fa=Array['from'](_0x320e4c['_selectedElements']);_0x5234fa['filter'](_0x4023a7=>_0x4023a7['getAttribute']('todoListChecked')!=_0x320e4c['value']),_0x44e837['model']['change'](()=>{for(const _0x1cab84 of _0x5234fa)_0x1dcb16['markBlockFormat'](_0x1cab84,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x320e4c['value']}]});});}),_0x1dcb16['descriptionFactory']['registerElementLabel']('listItem',_0x3830f9=>c(_0x493744,'ELEMENT_LIST_ITEM',_0x3830f9)),_0x1dcb16['descriptionFactory']['registerDescriptionCallback'](_0x25672b=>{if('formatBlock'!=_0x25672b['type']&&'formatInline'!=_0x25672b['type'])return;const {data:_0x49e9b1}=_0x25672b;if(_0x49e9b1){if('numberedList'==_0x49e9b1['commandName']||'bulletedList'==_0x49e9b1['commandName']||'todoList'==_0x49e9b1['commandName'])switch(_0x49e9b1['commandName']['replace']('List','')){case'bulleted':return _0x4f9392(c(_0x493744,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4f9392(c(_0x493744,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4f9392(c(_0x493744,'ELEMENT_TODO_LIST'));}if('indentList'==_0x49e9b1['commandName'])return{'type':'format','content':c(_0x493744,'*Indent:*\x20%0',c(_0x493744,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x49e9b1['commandName'])return{'type':'format','content':c(_0x493744,'*Outdent:*\x20%0',c(_0x493744,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x49e9b1['commandName'])return _0x49e9b1['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x493744,'*Check\x20item*')}:{'type':'format','content':c(_0x493744,'*Uncheck\x20item*')};}function _0x4f9392(_0x51221b){return{'type':'format','content':c(_0x493744,'*Change\x20to:*\x20%0',_0x51221b)};}});}}function Le(_0x1ceed8){const _0xf2627e=_0x1ceed8['getAttribute']('listIndent');if(0x0==_0xf2627e)return _0x1ceed8;let _0x138cf3=_0x1ceed8;for(;_0x1ceed8['previousSibling']&&_0x1ceed8['previousSibling']['is']('element','listItem');){const _0x498276=_0x1ceed8['previousSibling']['getAttribute']('listIndent');if(_0x498276==_0xf2627e)_0x138cf3=_0x1ceed8['previousSibling'];else{if(_0x498276<_0xf2627e)break;}_0x1ceed8=_0x1ceed8['previousSibling'];}return _0x138cf3;}function Ee(_0x59b126){const _0x41c529=[];if(_0x59b126['is']('element','listItem')&&_0x59b126['getAttribute']('listIndent')>0x0){let _0x234faf=_0x59b126['nextSibling'];for(;_0x234faf&&'listItem'==_0x234faf['name']&&_0x234faf['getAttribute']('listIndent')==_0x59b126['getAttribute']('listIndent');)_0x41c529['push'](_0x234faf),_0x234faf=_0x234faf['nextSibling'];}return _0x41c529;}class Q extends _0x413935{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1d5f55=this['editor']['config']['get']('list.properties'),_0x3f3e07=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d5f55['styles']&&_0x3f3e07['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1d5f55['reversed']&&_0x3f3e07['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1d5f55['startIndex']&&_0x3f3e07['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3f3e07['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x23b437,_0x20a226={}){const _0x562c93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dd604=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x562c93['markMultiRangeBlockFormat'](_0x5dd604,{'commandName':'listStyle','commandParams':[{'type':_0x20a226['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x313b88,_0x340572={}){const _0x4c6d82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d7125=this['_getSuggestionBlocks'](_0x10955b=>_0x10955b['is']('element','listItem')&&'numbered'===_0x10955b['getAttribute']('listType'));if(_0x4d7125['length']<0x1)return;const _0x905662=_0x4d7125['map'](_0x3d1c35=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d1c35,'before'),this['editor']['model']['createPositionAt'](_0x3d1c35,0x0)));this['editor']['model']['change'](()=>{_0x4c6d82['markMultiRangeBlockFormat'](_0x905662,{'commandName':'listReversed','commandParams':[{'reversed':_0x340572['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x45edbd,_0xe7c70b={}){const _0x370483=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9b9a21=this['_getSuggestionBlocks'](_0x3e8924=>_0x3e8924['is']('element','listItem')&&'numbered'===_0x3e8924['getAttribute']('listType'));if(_0x9b9a21['length']<0x1)return;const _0x174790=_0x9b9a21['map'](_0xf24040=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xf24040,'before'),this['editor']['model']['createPositionAt'](_0xf24040,0x0)));this['editor']['model']['change'](()=>{_0x370483['markMultiRangeBlockFormat'](_0x174790,{'commandName':'listStart','commandParams':[{'startIndex':_0xe7c70b['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x20ef07){if('formatBlock'!=_0x20ef07['type']&&'formatInline'!=_0x20ef07['type'])return;const _0x226070=this['editor']['locale'],{data:_0x5957b2}=_0x20ef07;if(!_0x5957b2)return;let _0x2469cb,_0x5469d5;switch(_0x5957b2['commandName']){case'listStyle':_0x2469cb='*Change\x20to:*\x20%0',_0x5469d5={'type':'format','content':c(_0x226070,_0x2469cb,c(_0x226070,this['_getTranslationKeyForListStyle'](_0x5957b2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2469cb=_0x5957b2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5469d5={'type':'format','content':c(_0x226070,_0x2469cb)};break;case'listStart':_0x2469cb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5469d5={'type':'format','content':c(_0x226070,_0x2469cb,_0x5957b2['commandParams'][0x0]['startIndex'])};}return _0x5469d5;}['_getSuggestionBlocksForListStyle'](){const _0xe65c4a=this['editor']['plugins']['get']('LegacyListUtils');let _0x1e162e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1e162e[0x0]?.['is']('element','listItem')&&_0x1e162e['unshift'](..._0xe65c4a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1e162e[_0x1e162e['length']-0x1]?.['is']('element','listItem')&&_0x1e162e['push'](..._0xe65c4a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1e162e=[...new Set(_0x1e162e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1e162e=_0x1e162e['filter'](_0x2c562d=>_0x2c562d['is']('element','listItem'))),_0x1e162e;}['_getSuggestionBlocks'](_0x1a4903){const _0x265bc2=this['editor']['plugins']['get']('LegacyListUtils');let _0x354989=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1a4903)['map'](_0x1dcce0=>{const _0x4763ef=this['editor']['model']['createPositionAt'](_0x1dcce0,0x0);return[..._0x265bc2['getSiblingNodes'](_0x4763ef,'backward'),..._0x265bc2['getSiblingNodes'](_0x4763ef,'forward')];})['flat']();return _0x354989=[...new Set(_0x354989)],_0x354989;}['_getTranslationKeyForListStyle'](_0x4cec02){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4cec02)||'default')['toUpperCase']()+'_LIST_'+_0x4cec02['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x413935{['afterInit'](){const _0x3cc53e=this['editor'];if(!_0x3cc53e['plugins']['has']('MediaEmbedEditing'))return;const _0x48d07a=_0x3cc53e['plugins']['get']('TrackChangesEditing'),_0x32259a=_0x3cc53e['locale'];_0x48d07a['enableCommand']('mediaEmbed'),_0x48d07a['descriptionFactory']['registerElementLabel']('media',_0x50dda0=>c(_0x32259a,'ELEMENT_MEDIA',_0x50dda0)),_0x3cc53e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1c09de,{writer:_0x512a90,options:_0x1b9348})=>{if(_0x1b9348['showSuggestionHighlights'])return _0x512a90['createEmptyElement']('div');},'converterPriority':'high'}),_0x3cc53e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3702bd,_0x5c440a,_0xe84403)=>{_0xe84403['options']['showSuggestionHighlights']&&_0x3702bd['stop']();},{'priority':'high'});}}class pt extends _0x413935{['afterInit'](){const _0x8d130d=this['editor'];_0x8d130d['plugins']['has']('MentionEditing')&&_0x8d130d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x413935{['afterInit'](){const _0x5ae513=this['editor'];if(!_0x5ae513['plugins']['has']('MergeFieldsEditing'))return;const _0x13420b=_0x5ae513['plugins']['get']('TrackChangesEditing'),_0xf784f2=_0x5ae513['locale'];_0x13420b['enableCommand']('insertMergeField'),_0x13420b['enableCommand']('insertMergeFieldBlock'),_0x13420b['enableCommand']('insertMergeFieldImage'),_0x13420b['descriptionFactory']['registerElementLabel']('mergeField',_0xdee3e0=>c(_0xf784f2,'ELEMENT_MERGE_FIELD',_0xdee3e0)),_0x13420b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x586813=>c(_0xf784f2,'ELEMENT_MERGE_FIELD',_0x586813)),_0x13420b['descriptionFactory']['registerDescriptionCallback'](_0x4ea9cf=>{if('insertion'!=_0x4ea9cf['type']&&'deletion'!=_0x4ea9cf['type'])return;const _0x1c868b=_0x4ea9cf['getContainedElement']();if(null==_0x1c868b)return;const _0x153ba7=_0x5ae513['plugins']['get']('MergeFieldsEditing');let _0x2c85b8;switch(_0x153ba7['getMergeFieldType'](_0x1c868b)){case null:return;case'image':{const _0x53b228=_0x153ba7['unwrapAffixes'](_0x1c868b['getAttribute']('src'));_0x2c85b8=_0x153ba7['getLabel'](_0x53b228)||_0x53b228;break;}default:{const _0x2599c6=_0x1c868b['getAttribute']('id');_0x2c85b8=_0x153ba7['getLabel'](_0x2599c6)||_0x2599c6;break;}}return'insertion'==_0x4ea9cf['type']?{'type':'insertion','content':c(_0xf784f2,'*Insert:*\x20%0','\x22'+_0x2c85b8+'\x22\x20'+c(_0xf784f2,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0xf784f2,'*Remove:*\x20%0','\x22'+_0x2c85b8+'\x22\x20'+c(_0xf784f2,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x413935{['afterInit'](){const _0x9d5830=this['editor'],_0x3497a4=_0x9d5830['plugins']['get']('TrackChangesEditing');_0x9d5830['plugins']['has']('MultiLevelList')&&(_0x3497a4['enableDefaultAttributesIntegration']('multiLevelList'),_0x3497a4['registerBlockAttribute']('listMarkerStyle'),_0x3497a4['descriptionFactory']['registerDescriptionCallback'](_0x30d851=>this['handleDescriptions'](_0x30d851)));}['handleDescriptions'](_0x4f0954){const _0x578d27=this['editor']['locale'],{data:_0x5a23d3}=_0x4f0954,_0x4a5f94={'type':'format','content':''};if(_0x5a23d3&&'listMarkerStyle'==_0x5a23d3['key']){if(!_0x5a23d3['oldValue'])return{'type':'format','content':c(_0x578d27,'*Set\x20format:*\x20%0',c(_0x578d27,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a23d3['newValue']+')'};if(!_0x5a23d3['newValue']){let _0x5e038e=_0x4f0954['head'];for(;_0x5e038e;){if(_0x5e038e['data']&&'listType'==_0x5e038e['data']['key']&&_0x5e038e['data']['newValue'])return _0x4a5f94;_0x5e038e=_0x5e038e['next'];}return{'type':'format','content':c(_0x578d27,'*Remove\x20format:*\x20%0',c(_0x578d27,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a23d3['oldValue']+')'};}}}}class bt extends _0x413935{['afterInit'](){const _0x5a9988=this['editor'];if(!_0x5a9988['plugins']['has']('PageBreakEditing'))return;_0x5a9988['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x539523=_0x5a9988['plugins']['get']('TrackChangesEditing'),_0xbf8503=_0x5a9988['locale'];_0x539523['descriptionFactory']['registerElementLabel']('pageBreak',_0x514cae=>c(_0xbf8503,'ELEMENT_PAGE_BREAK',_0x514cae));}}class yt extends _0x413935{['afterInit'](){const _0x7d70f8=this['editor'];if(!_0x7d70f8['plugins']['has']('Paragraph'))return;const _0x517859=_0x7d70f8['locale'],_0x2c183c=_0x7d70f8['plugins']['get']('TrackChangesEditing');_0x2c183c['descriptionFactory']['registerElementLabel']('paragraph',_0x4f7015=>c(_0x517859,'ELEMENT_PARAGRAPH',_0x4f7015)),_0x2c183c['enableDefaultAttributesIntegration']('paragraph'),_0x2c183c['enableCommand']('insertParagraph'),_0x7d70f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x7d70f8),{'priority':'highest'}),_0x7d70f8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3e183b,_0x4ebb5e,_0x212945)=>{_0x212945['options']['showSuggestionHighlights']&&nr(_0x7d70f8,{'showActiveMarker':!0x1})(_0x3e183b,_0x4ebb5e,_0x212945);},{'priority':'highest'});const _0x4a647f=_0x2c183c['descriptionFactory'];_0x4a647f['registerDescriptionCallback'](_0x2d83e3=>{if('insertion'!==_0x2d83e3['type'])return;const {start:_0x2e6f05,end:_0x1a7574}=_0x2d83e3['getFirstRange']();if(!_0x2e6f05['isTouching'](_0x1a7574)||!_0x2e6f05['nodeAfter'])return;const _0x585feb=_0x7d70f8['model']['schema'],_0x1f3f4b=_0x2e6f05['nodeAfter'];return _0x585feb['isBlock'](_0x1f3f4b)&&!_0x585feb['isLimit'](_0x1f3f4b)&&_0x585feb['checkChild'](_0x1f3f4b,'$text')?{'type':'insertion','content':c(_0x517859,'*Insert:*\x20%0',_0x4a647f['getItemLabel'](_0x1f3f4b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41aac9=this['editor'],_0x2c793c=_0x41aac9['locale'];_0x41aac9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43e885=>{if('formatBlock'!=_0x43e885['type'])return;const {data:_0x22b22a}=_0x43e885;return _0x22b22a&&'paragraph'==_0x22b22a['commandName']?{'type':'format','content':c(_0x2c793c,'*Change\x20to:*\x20%0',c(_0x2c793c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xfd52b6,{showActiveMarker:_0x56421d=!0x0}={}){return(_0x1c07dd,_0x182933,_0x3ae7c2)=>{const _0x3d8a3b=_0xfd52b6['plugins']['get']('TrackChangesEditing'),_0x3c28cf=_0x182933['markerRange']['start'],_0x7107a7=_0x182933['markerRange']['end'],_0x559a63=_0xfd52b6['model']['schema'];if(!_0x3c28cf['isTouching'](_0x7107a7)||!_0x3c28cf['nodeAfter'])return;const _0x1ea3b9=_0x3c28cf['nodeAfter'];if(_0x559a63['isBlock'](_0x1ea3b9)&&!_0x559a63['isLimit'](_0x1ea3b9)&&_0x559a63['checkChild'](_0x1ea3b9,'$text')){if(!_0x3ae7c2['consumable']['consume'](_0x182933['markerRange'],_0x1c07dd['name']))return;const {id:_0x326a6e,authorId:_0x46f0d2}=_0x3d8a3b['_splitMarkerName'](_0x182933['markerName']),_0x40bca3=_0x3ae7c2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x326a6e,'data-author-id':_0x46f0d2}),_0xca7b47=_0x3ae7c2['mapper']['toViewPosition'](_0x7107a7);_0x56421d&&_0x3d8a3b['activeMarkers']['includes'](_0x182933['markerName'])&&_0x3ae7c2['writer']['addClass']('ck-suggestion-marker--active',_0x40bca3),_0x3ae7c2['writer']['insert'](_0xca7b47,_0x40bca3),_0x3ae7c2['mapper']['bindElementToMarker'](_0x40bca3,_0x182933['markerName']);}};}class St extends _0x413935{['afterInit'](){const _0x19b71a=this['editor'];_0x19b71a['commands']['get']('replaceSource')&&_0x19b71a['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x413935{['afterInit'](){const _0x27fc38=this['editor'];if(!_0x27fc38['plugins']['has']('RemoveFormatEditing'))return;_0x27fc38['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b4d17=this['editor'];_0x1b4d17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47eb2a=>{if('formatBlock'!=_0x47eb2a['type']&&'formatInline'!=_0x47eb2a['type'])return;const {data:_0x53f0c6}=_0x47eb2a;return _0x53f0c6&&'removeFormat'==_0x53f0c6['commandName']?{'type':'format','content':c(_0x1b4d17['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x413935{['afterInit'](){const _0xab68ef=this['editor'];if(!_0xab68ef['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1a98c6=_0xab68ef['plugins']['get']('TrackChangesEditing');_0x1a98c6['enableCommand']('goToPreviousRestrictedEditingException'),_0x1a98c6['enableCommand']('goToNextRestrictedEditingException');const _0x26c0cc=_0xab68ef['plugins']['get']('RestrictedEditingModeEditing');_0x26c0cc['enableCommand']('trackChanges'),_0x26c0cc['enableCommand']('acceptSuggestion'),_0x26c0cc['enableCommand']('discardSuggestion'),_0x26c0cc['enableCommand']('acceptAllSuggestions'),_0x26c0cc['enableCommand']('discardAllSuggestions'),_0x26c0cc['enableCommand']('acceptSelectedSuggestions'),_0x26c0cc['enableCommand']('discardSelectedSuggestions');}}class At extends _0x413935{['afterInit'](){const _0x54d560=this['editor'];if(!_0x54d560['plugins']['has']('ShiftEnter'))return;const _0x11f699=_0x54d560['plugins']['get']('TrackChangesEditing');_0x11f699['enableCommand']('shiftEnter'),_0x54d560['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x54d560),{'priority':'high'}),_0x54d560['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x54d560),{'priority':'high'}),_0x54d560['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d3a81,_0x77fcfc,_0x29d3ae)=>{_0x29d3ae['options']['showSuggestionHighlights']&&je(_0x54d560,{'showActiveMarker':!0x1})(_0x2d3a81,_0x77fcfc,_0x29d3ae);}),_0x11f699['descriptionFactory']['registerElementLabel']('softBreak',_0x4f2194=>c(_0x54d560['locale'],'ELEMENT_LINE_BREAK',_0x4f2194));}}function je(_0x5c29e8,{showActiveMarker:_0x280e89=!0x0}={}){return(_0x252a41,_0x1a0b8d,_0x550777)=>{const _0xec2fcf=_0x5c29e8['plugins']['get']('TrackChangesEditing');if(!_0x550777['consumable']['test'](_0x1a0b8d['markerRange'],_0x252a41['name']))return;const _0x3ef3ae=_0x5c29e8['model'];for(const _0x5c96f2 of _0x1a0b8d['markerRange']['getItems']()){if(!_0x5c96f2['is']('element','softBreak'))continue;const _0x51530e='deletion'==_0x1a0b8d['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2e33fe,authorId:_0x39fff4}=_0xec2fcf['_splitMarkerName'](_0x1a0b8d['markerName']),_0x51794f=_0x550777['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x51530e,'data-suggestion':_0x2e33fe,'data-author-id':_0x39fff4}),_0x46bd00=_0x550777['mapper']['toViewPosition'](_0x3ef3ae['createPositionBefore'](_0x5c96f2));_0x280e89&&_0xec2fcf['activeMarkers']['includes'](_0x1a0b8d['markerName'])&&_0x550777['writer']['addClass']('ck-suggestion-marker--active',_0x51794f),_0x550777['writer']['insert'](_0x46bd00,_0x51794f),_0x550777['mapper']['bindElementToMarker'](_0x51794f,_0x1a0b8d['markerName']);}};}class _t extends _0x413935{['afterInit'](){const _0x5c3aa6=this['editor'],_0xbbd552=_0x5c3aa6['model'],_0x4178c8=_0x5c3aa6['locale'];if(!_0x5c3aa6['plugins']['has']('StandardEditingModeEditing'))return;const _0x41fa18=_0x5c3aa6['plugins']['get']('TrackChangesEditing'),_0x297a36='restrictedEditingException',_0xa94e4a=_0x5c3aa6['commands']['get'](_0x297a36);_0x41fa18['enableCommand'](_0x297a36,(_0x57af8f,_0x855d4d={})=>{const _0x12475a=_0xbbd552['document']['selection'];if(_0x12475a['isCollapsed'])return void _0x57af8f(_0x855d4d);const _0x131adf=void 0x0!==_0x855d4d['forceValue']?_0x855d4d['forceValue']:!_0xa94e4a['value'];_0xbbd552['change'](()=>{const _0x422ee5=Array['from'](_0x12475a['getRanges']());for(const _0xf9ea5e of _0x422ee5){const _0x5cb307=_0x131adf?[_0xf9ea5e]:io(_0x297a36,_0xf9ea5e,_0xbbd552);for(const _0x45c282 of _0x5cb307)_0x41fa18['markInlineFormat'](_0x45c282,{'commandName':_0x297a36,'commandParams':[{'forceValue':_0x131adf}]});}});}),_0x41fa18['descriptionFactory']['registerDescriptionCallback'](_0x1f6121=>{if('formatBlock'!=_0x1f6121['type']&&'formatInline'!=_0x1f6121['type'])return;const {data:_0x5c8f21}=_0x1f6121;return _0x5c8f21&&_0x5c8f21['commandName']==_0x297a36?_0x5c8f21['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4178c8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x4178c8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x413935{['afterInit'](){const _0x47cbfe=this['editor'];if(!_0x47cbfe['plugins']['has']('Style')||!_0x47cbfe['plugins']['has']('DataSchema'))return;const _0x5500ed=_0x47cbfe['plugins']['get']('TrackChangesEditing'),_0x36dce7=_0x47cbfe['locale'],_0x1cb629=_0x47cbfe['config']['get']('style')||{},_0x422e76=_0x47cbfe['plugins']['get']('GeneralHtmlSupport'),_0x74f62e=_0x47cbfe['plugins']['get']('StyleUtils')['normalizeConfig'](_0x47cbfe['plugins']['get']('DataSchema'),_0x1cb629['definitions']);_0x5500ed['enableDefaultAttributesIntegration']('style');const _0x3e75ba=new Set();for(const _0x21ff9b of _0x74f62e['block']){const _0x52d8d1=_0x422e76['getGhsAttributeNameForElement'](_0x21ff9b['element']);_0x3e75ba['add'](_0x52d8d1);}const _0x1ca29f=new Set();for(const _0x2ed300 of _0x74f62e['inline']){const _0x432c71=_0x422e76['getGhsAttributeNameForElement'](_0x2ed300['element']);_0x1ca29f['add'](_0x432c71);for(const _0x2abf72 of _0x2ed300['ghsAttributes'])_0x1ca29f['add'](_0x2abf72);}for(const _0x13af58 of _0x3e75ba)_0x5500ed['registerBlockAttribute'](_0x13af58),_0x5500ed['descriptionFactory']['registerAttributeLabel'](_0x13af58,c(_0x36dce7,'FORMAT_STYLE'));for(const _0x2d37c6 of _0x1ca29f)_0x5500ed['registerInlineAttribute'](_0x2d37c6),_0x5500ed['descriptionFactory']['registerAttributeLabel'](_0x2d37c6,c(_0x36dce7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20e20a=this['editor'],_0x2f165e=_0x20e20a['locale'];_0x20e20a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9e4b=>{if('formatBlock'!=_0x9e4b['type']&&'formatInline'!=_0x9e4b['type'])return;const {data:_0x1ffe1e}=_0x9e4b;return _0x1ffe1e&&'style'===_0x1ffe1e['commandName']?_0x1ffe1e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2f165e,'*Set\x20format:*\x20%0',_0x1ffe1e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x2f165e,'*Remove\x20format:*\x20%0',_0x1ffe1e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x413935{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x104f70){super(_0x104f70),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1deb67=this['editor'],_0x2f9c11=_0x1deb67['model']['document']['selection'];if(!_0x1deb67['plugins']['has']('TableEditing'))return;const _0x4750ea=_0x1deb67['locale'],_0x1b2983=_0x1deb67['plugins']['get']('TrackChangesEditing'),_0xf61b2e=_0x1deb67['plugins']['get']('TableUtils');_0x1b2983['descriptionFactory']['registerElementLabel']('table',_0xeb3fd1=>c(_0x4750ea,'ELEMENT_TABLE',_0xeb3fd1)),this['_setupColumnsRowsFixing'](),_0x1b2983['enableCommand']('insertTable'),_0x1b2983['enableCommand']('selectTableRow'),_0x1b2983['enableCommand']('selectTableColumn');for(const _0x5057ed of['insertTableRowAbove','insertTableRowBelow']){const _0x108d9c=_0x1deb67['commands']['get'](_0x5057ed);_0x1b2983['enableCommand'](_0x5057ed,_0x2d4e5a=>{_0x1deb67['model']['change'](_0x3229d5=>{_0x2d4e5a();const _0x549f9c='above'===_0x108d9c['order'],_0x43e12b=_0xf61b2e['getSelectionAffectedTableCells'](_0x2f9c11),_0x1bc32a=_0xf61b2e['getRowIndexes'](_0x43e12b),_0x404177=_0x549f9c?_0x1bc32a['first']-0x1:_0x1bc32a['last']+0x1,_0x358b1e=_0x43e12b[0x0]['findAncestor']('table'),_0x3b279a=_0xf61b2e['createTableWalker'](_0x358b1e,{'startRow':_0x404177,'endRow':_0x404177}),_0x761a41=Array['from'](_0x3b279a)['map'](_0x20d60a=>_0x3229d5['createRangeOn'](_0x20d60a['cell']));_0x1b2983['markMultiRangeInsertion'](_0x761a41,'tableRow');});});}for(const _0x2f4fe9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5f42c5=_0x1deb67['commands']['get'](_0x2f4fe9);_0x1b2983['enableCommand'](_0x2f4fe9,_0x417192=>{_0x1deb67['model']['change'](_0x383140=>{_0x417192();const _0xa57ec2='left'===_0x5f42c5['order'],_0x365875=_0xf61b2e['getSelectionAffectedTableCells'](_0x2f9c11),_0x7a4a82=_0xf61b2e['getColumnIndexes'](_0x365875),_0x1c55fe=_0xa57ec2?_0x7a4a82['first']-0x1:_0x7a4a82['last']+0x1,_0x2e593e=_0x365875[0x0]['findAncestor']('table'),_0x1f363e=_0xf61b2e['createTableWalker'](_0x2e593e,{'startRow':0x0,'column':_0x1c55fe,'includeAllSlots':!0x1}),_0x33e6e5=Array['from'](_0x1f363e)['map'](_0x46f056=>_0x383140['createRangeOn'](_0x46f056['cell']));_0x1b2983['markMultiRangeInsertion'](_0x33e6e5,'tableColumn');});});}for(const _0x3737ba of['removeTableRow','removeTableColumn']){const _0xb51a2e=_0x3737ba['substr'](0xb),_0x3b63e8=_0xb51a2e['toLowerCase'](),_0x27d7f6=_0x3b63e8['substr'](0x0,0x3)+'span',_0x50a064='table'+_0xb51a2e,_0x535d24='min'+_0xb51a2e,_0x465b0c='max'+_0xb51a2e;_0x1b2983['enableCommand'](_0x3737ba,()=>{_0x1deb67['model']['change'](_0x5e1dfa=>{const _0x4601d1=_0xf61b2e['getSelectionAffectedTableCells'](_0x2f9c11),_0x20594c=_0x4601d1[0x0]['findAncestor']('table');let _0x969852;if('removeTableRow'==_0x3737ba){const _0x202c15=_0xf61b2e['getRowIndexes'](_0x4601d1);_0x969852={'startRow':_0x202c15['first'],'endRow':_0x202c15['last'],'includeAllSlots':!0x0};}else{const _0x42d054=_0xf61b2e['getColumnIndexes'](_0x4601d1);_0x969852={'startColumn':_0x42d054['first'],'endColumn':_0x42d054['last'],'includeAllSlots':!0x0};}const _0x13ede0=_0xf61b2e['createTableWalker'](_0x20594c,_0x969852),_0x5dcd11=Array['from'](_0x13ede0)['map'](({cell:_0x2373a3})=>_0x2373a3),_0x2c2165=xe(_0x5dcd11['filter'](_0x1e9804=>_0x1e9804['hasAttribute'](_0x27d7f6))),_0x4e8d5e=xe(_0x5dcd11['filter'](_0x4c2dec=>!_0x4c2dec['hasAttribute'](_0x27d7f6)))['map'](_0x29498b=>_0x5e1dfa['createRangeOn'](_0x29498b)),_0x24b59e=_0x1b2983['markMultiRangeDeletion'](_0x4e8d5e,_0x50a064);if(_0x24b59e&&('tableRow'==_0x24b59e['subType']||'tableColumn'==_0x24b59e['subType'])){const _0x59bcec=this['_getSuggestionCoords'](_0x24b59e);for(const _0x3db9d9 of _0x2c2165){const _0x4dced7=_0x5e1dfa['createRangeOn'](_0x3db9d9),_0x44711e=_0xf61b2e['getCellLocation'](_0x3db9d9),_0x4fcf17=_0x3db9d9['getAttribute'](_0x27d7f6)-0x1,_0xc8bcb9=_0x59bcec[_0x535d24],_0x5ba347=_0x59bcec[_0x465b0c];_0xc8bcb9<=_0x44711e[_0x3b63e8]&&_0x44711e[_0x3b63e8]+_0x4fcf17<=_0x5ba347&&_0x24b59e['addRange'](_0x4dced7);}}});});}function _0x2efd6f(_0x173dd8){const _0x49cf0c=Array['from'](_0x2f9c11['getRanges']())['map'](_0x40c554=>_0x5bdd0a['fromRange'](_0x40c554));_0x1deb67['model']['change'](_0x80e369=>{const _0x53af90=_0x80e369['batch'];_0x173dd8=_0x173dd8['filter'](_0x239f4c=>'$graveyard'!=_0x239f4c['root']['rootName']),_0x80e369['setSelection'](_0x173dd8),_0x1deb67['commands']['get']('removeTableRow')['refresh'](),_0x1deb67['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1deb67['model']['enqueueChange'](()=>{_0x1deb67['model']['enqueueChange'](_0x53af90,_0xb8801c=>{const _0x127b9f=_0x49cf0c['filter'](_0x4ce864=>'$graveyard'!=_0x4ce864['root']['rootName']);_0x127b9f['length']>0x0&&_0xb8801c['setSelection'](_0x127b9f);for(const _0x56044b of _0x49cf0c)_0x56044b['detach']();});});});}function _0x8dd6b8(_0x563a58){_0x1deb67['model']['change'](_0x47c0aa=>{const _0x46ccf1=Array['from'](_0x2f9c11['getRanges']())['map'](_0x29f2cc=>_0x5bdd0a['fromRange'](_0x29f2cc)),_0x1c37f4=[];for(const _0x507b5f of _0x563a58)for(const _0x336cb0 of _0x507b5f['getItems']({'shallow':!0x0}))_0x1c37f4['push'](_0x336cb0);for(const _0x1e1deb of _0x1c37f4)'$graveyard'!=_0x1e1deb['root']['rootName']&&(_0x47c0aa['setSelection'](_0x47c0aa['createPositionAt'](_0x1e1deb,0x0)),_0x1deb67['commands']['get']('removeTableColumn')['refresh'](),_0x1deb67['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x12332a=_0x46ccf1['filter'](_0x3c7f4f=>'$graveyard'!=_0x3c7f4f['root']['rootName']);_0x12332a['length']>0x0&&_0x47c0aa['setSelection'](_0x12332a);for(const _0x4e02fa of _0x46ccf1)_0x4e02fa['detach']();});}function _0x58185e(_0x389ce1,_0x107ebf){return _0x107ebf['every'](_0x32db30=>_0x389ce1['some'](_0x4760e0=>_0x4760e0['end']['isEqual'](_0x32db30['start'])||_0x32db30['end']['isEqual'](_0x4760e0['start'])));}function _0xf668e6(_0x47a150,_0x48cb15){return!_0x47a150['some'](_0x5dc599=>_0x48cb15['some'](_0x2012ae=>_0x5dc599['isIntersecting'](_0x2012ae)))&&_0x47a150['some'](_0x379eea=>_0x48cb15['some'](_0x147230=>_0x379eea['end']['isTouching'](_0x147230['start'])));}_0x1deb67['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x55e368,_0x5a3af5,_0x1b0b48)=>{if(!_0x1b0b48['options']['showSuggestionHighlights'])return;const _0x5300f1=_0x5a3af5['item'];if(!_0x5300f1||!_0x5300f1['is']('element','tableCell'))return;const _0x5b82cc=_0x1b0b48['mapper']['toViewElement'](_0x5300f1);if(_0x5b82cc){const {id:_0x6d7496,authorId:_0x52f5d2}=_0x1b2983['_splitMarkerName'](_0x5a3af5['markerName']);_0x3faa68(_0x5b82cc,_0x1b0b48['writer'],(_0x1952a9,_0x256145,_0x5e0c56)=>{_0x5e0c56['addClass'](_0x1c2cdd(_0x256145['classes']),_0x1952a9),_0x5e0c56['setAttribute']('data-suggestion-id',_0x6d7496,_0x1952a9),_0x5e0c56['setAttribute']('data-author-id',_0x52f5d2,_0x1952a9);},(_0x1e3089,_0x10c008,_0x17d50e)=>{_0x17d50e['removeClass'](_0x1c2cdd(_0x10c008['classes']),_0x1e3089),_0x17d50e['removeAttribute']('data-suggestion-id',_0x1e3089),_0x17d50e['removeAttribute']('data-author-id',_0x1e3089);});}},{'priority':'highest'}),_0x1b2983['descriptionFactory']['registerDescriptionCallback'](_0x3efcc5=>{if('insertion'!=_0x3efcc5['type']&&'deletion'!=_0x3efcc5['type'])return;const _0x3239c7=_0x3efcc5['getContainedElement']();if(null!=_0x3239c7&&_0x3239c7['is']('element','table')){if('insertion'==_0x3efcc5['type']){const _0x3847f9=_0x3efcc5['getItems']()['filter'](_0x4fb089=>_0x4fb089['is']('$textProxy'))['map'](_0xe841cc=>_0xe841cc['data']);if(_0x3847f9['length'])return{'type':'insertion','content':c(_0x4750ea,'*Insert:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3847f9['join']('\x20')+'\x22'))};}if('deletion'==_0x3efcc5['type']){const _0x44d6ef=_0x3efcc5['getItems']()['filter'](_0x43bc2b=>_0x43bc2b['is']('$textProxy'))['map'](_0x4bfb8a=>_0x4bfb8a['data']);if(_0x44d6ef['length'])return{'type':'deletion','content':c(_0x4750ea,'*Remove:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x44d6ef['join']('\x20')+'\x22'))};}}}),_0x1b2983['descriptionFactory']['registerDescriptionCallback'](_0xe36c7b=>{if('tableRow'==_0xe36c7b['subType']){const _0x2e93da=_0xe36c7b['getItems']()['filter'](_0x56b267=>_0x56b267['is']('$textProxy'))['map'](_0x30bac9=>_0x30bac9['data']),_0x82d0b9=this['_getSuggestionCoords'](_0xe36c7b),_0x59d180=_0x82d0b9['maxRow']-_0x82d0b9['minRow']+0x1;if('insertion'==_0xe36c7b['type'])return _0x2e93da['length']?{'type':'insertion','content':c(_0x4750ea,'*Insert:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x59d180,'\x22'+_0x2e93da['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4750ea,'*Insert:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_ROW',_0x59d180))};if('deletion'==_0xe36c7b['type'])return _0x2e93da['length']?{'type':'deletion','content':c(_0x4750ea,'*Remove:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x59d180,'\x22'+_0x2e93da['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4750ea,'*Remove:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_ROW',_0x59d180))};}if('tableColumn'==_0xe36c7b['subType']){const _0x53521a=_0xe36c7b['getItems']()['filter'](_0x5e47ad=>_0x5e47ad['is']('$textProxy'))['map'](_0x347ae9=>_0x347ae9['data']),_0x13a71d=this['_getSuggestionCoords'](_0xe36c7b),_0x3ae3f5=_0x13a71d['maxColumn']-_0x13a71d['minColumn']+0x1;if('insertion'==_0xe36c7b['type'])return _0x53521a['length']?{'type':'insertion','content':c(_0x4750ea,'*Insert:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ae3f5,'\x22'+_0x53521a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4750ea,'*Insert:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_COLUMN',_0x3ae3f5))};if('deletion'==_0xe36c7b['type'])return _0x53521a['length']?{'type':'deletion','content':c(_0x4750ea,'*Remove:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ae3f5,'\x22'+_0x53521a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4750ea,'*Remove:*\x20%0',c(_0x4750ea,'ELEMENT_TABLE_COLUMN',_0x3ae3f5))};}}),_0x1b2983['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2efd6f),_0x1b2983['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2efd6f),_0x1b2983['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x8dd6b8),_0x1b2983['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x8dd6b8),_0x1b2983['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x58185e),_0x1b2983['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x58185e),_0x1b2983['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xf668e6),_0x1b2983['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xf668e6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x325255=this['editor'],_0x41f02f=_0x325255['model']['document']['selection'];return(_0x521a66,_0x38a66b)=>{_0x325255['model']['change'](_0x212873=>{const {commandName:_0x38566a,commandParams:_0x36aa95}=_0x38a66b;let _0x506e8c=_0x521a66[0x0]['end']['nodeBefore'];_0x36aa95&&_0x36aa95[0x0]&&!0x1===_0x36aa95[0x0]['forceValue']&&(_0x506e8c=_0x521a66[0x0]['start']['nodeAfter']);const _0x1b15a9=_0x212873['createRangeIn'](_0x506e8c);if('$graveyard'==_0x1b15a9['root']['rootName'])return;const _0x8b6309=Array['from'](_0x41f02f['getRanges']())['map'](_0x138f2b=>_0x5bdd0a['fromRange'](_0x138f2b));_0x212873['setSelection'](_0x1b15a9),_0x325255['commands']['get'](_0x38566a)['refresh'](),_0x36aa95['push']({'forceDefaultExecution':!0x0}),_0x325255['execute'](_0x38566a,..._0x36aa95);const _0x45e962=_0x8b6309['filter'](_0x2d33c9=>'$graveyard'!=_0x2d33c9['root']['rootName']);_0x45e962['length']>0x0&&_0x212873['setSelection'](_0x45e962);for(const _0x1e6d33 of _0x8b6309)_0x1e6d33['detach']();});};}['_getCoordsForCells'](_0x32500e){const _0x2470a6=this['editor']['plugins']['get']('TableUtils');let _0x5bfa17=Number['MAX_SAFE_INTEGER'],_0x1bed05=Number['MIN_SAFE_INTEGER'],_0x43513a=Number['MAX_SAFE_INTEGER'],_0x59c757=Number['MIN_SAFE_INTEGER'];for(const _0xb197b9 of _0x32500e){if('$graveyard'==_0xb197b9['root']['rootName'])continue;const {row:_0x2c8ab6,column:_0x2f7119}=_0x2470a6['getCellLocation'](_0xb197b9),_0x5a5565=_0xb197b9['hasAttribute']('rowspan')?_0xb197b9['getAttribute']('rowspan')-0x1:0x0,_0xdd826b=_0xb197b9['hasAttribute']('colspan')?_0xb197b9['getAttribute']('colspan')-0x1:0x0;_0x5bfa17=_0x2c8ab6<_0x5bfa17?_0x2c8ab6:_0x5bfa17,_0x1bed05=_0x2c8ab6+_0x5a5565>_0x1bed05?_0x2c8ab6+_0x5a5565:_0x1bed05,_0x43513a=_0x2f7119<_0x43513a?_0x2f7119:_0x43513a,_0x59c757=_0x2f7119+_0xdd826b>_0x59c757?_0x2f7119+_0xdd826b:_0x59c757;}return{'minRow':_0x5bfa17,'maxRow':_0x1bed05,'minColumn':_0x43513a,'maxColumn':_0x59c757};}['_setupColumnsRowsFixing'](){const _0x4aad34=this['editor'],_0x5c67c5=_0x4aad34['plugins']['get']('TrackChangesEditing'),_0x271409=_0x4aad34['plugins']['get']('TableUtils');_0x4aad34['model']['document']['on']('change:data',()=>{const _0x5aa9d3=Array['from'](_0x4aad34['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4b6172,data:_0x219513}of _0x5aa9d3){const {group:_0x3726f2,id:_0x21e0cc,subType:_0x5df109}=_0x5c67c5['_splitMarkerName'](_0x4b6172);if('suggestion'!=_0x3726f2)continue;if(null!=_0x219513['oldRange'])continue;const _0x2f7e21=_0x5c67c5['getSuggestion'](_0x21e0cc);this['_tablePostFixingSubtypes']['includes'](_0x5df109)&&this['_tableSuggestions']['add'](_0x2f7e21);}},{'priority':'low'});const _0x564a7c=(_0x545eb3,_0x42c180)=>{let _0x397648=!0x1;const _0x5586d7=_0x42c180['createRangeOn'](_0x545eb3),_0x14f969=_0x545eb3['findAncestor']('table'),_0x20003b=_0x271409['getCellLocation'](_0x545eb3);for(const _0xccda0c of this['_tableSuggestions']){const _0x5cd449=_0xccda0c['subType'],_0x4f1008=_0x5cd449['startsWith']('tablePaste'),_0x417f2b=_0x5cd449['substr'](_0x4f1008?0xa:0x5),_0x512075=_0x417f2b['toLowerCase'](),_0x2a6fcc=_0x512075['substr'](0x0,0x3)+'span',_0x539551='min'+_0x417f2b,_0x13aede='max'+_0x417f2b;if(!_0xccda0c['isInContent'])continue;if(_0x14f969!=_0xccda0c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xccda0c['isIntersectingWithRange'](_0x5586d7))continue;const _0x40f677=_0x545eb3['hasAttribute'](_0x2a6fcc)?_0x545eb3['getAttribute'](_0x2a6fcc)-0x1:0x0,_0x4ecff9=this['_getSuggestionCoords'](_0xccda0c),_0x5e8c97=_0x4ecff9[_0x539551],_0x2c58c3=_0x4ecff9[_0x13aede];_0x5e8c97<=_0x20003b[_0x512075]&&_0x20003b[_0x512075]+_0x40f677<=_0x2c58c3&&(_0xccda0c['addRange'](_0x5586d7),_0x397648=!0x0);}return _0x397648;};_0x4aad34['model']['document']['registerPostFixer'](_0x185213=>{let _0x4b509f=!0x1;for(const _0x40e134 of _0x4aad34['model']['document']['differ']['getChanges']())if('insert'==_0x40e134['type']){if('tableRow'==_0x40e134['name']){for(const _0x2feb82 of _0x40e134['position']['nodeAfter']['getChildren']())_0x4b509f=_0x4b509f||_0x564a7c(_0x2feb82,_0x185213);}else'tableCell'==_0x40e134['name']&&(_0x4b509f=_0x4b509f||_0x564a7c(_0x40e134['position']['nodeAfter'],_0x185213));}return _0x4b509f;});}['_getSuggestionCoords'](_0x1cc95e){return this['_getCoordsForCells'](_0x1cc95e['getRanges']()['map'](_0x3d9789=>_0x3d9789['start']['nodeAfter']));}}function xe(_0x292dfd){return Array['from'](new Set(_0x292dfd)['values']());}class Nt extends _0x413935{static get['requires'](){return[Ct];}['afterInit'](){const _0x3f2925=this['editor'],_0x160a98=_0x3f2925['model']['document']['selection'],_0x3bfa00=_0x3f2925['locale'];if(!_0x3f2925['plugins']['has']('TableEditing'))return;const _0x144026=_0x3f2925['plugins']['get']('TrackChangesEditing'),_0x1f37ad=_0x3f2925['plugins']['get']('TableUtils'),_0x4e824b=_0x3f2925['plugins']['get'](Ct);_0x4e824b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x144026['enableCommand']('mergeTableCells',()=>{const _0x4d0530=_0x1f37ad['getSelectionAffectedTableCells'](_0x3f2925['model']['document']['selection']);_0x3f2925['model']['change'](()=>{_0x144026['markMultiRangeBlockFormat'](_0x4d0530,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3f2925['commands']['get']('mergeTableCells')['on']('execute',(_0x3f4318,_0x1e5665)=>{_0x3f2925['commands']['get']('trackChanges')['value']&&(_0x1e5665['length']>0x0&&_0x1e5665[_0x1e5665['length']-0x1]&&_0x1e5665[_0x1e5665['length']-0x1]['forceDefaultExecution']||_0x144026['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3f4318['stop']());},{'priority':'highest'});for(const _0x36b69f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4863b0=_0x3f2925['commands']['get'](_0x36b69f);_0x144026['enableCommand'](_0x36b69f,()=>{const _0x1cce5c=_0x3f2925['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ac650=>_0x3ac650['is']('element','tableCell')),_0x1acb92=_0x4863b0['value'];_0x3f2925['model']['change'](()=>{_0x144026['markMultiRangeBlockFormat']([_0x1cce5c,_0x1acb92],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1fa0fe of['splitTableCellVertically','splitTableCellHorizontally']){const _0xfeea1f=_0x3f2925['commands']['get'](_0x1fa0fe);_0x144026['enableCommand'](_0x1fa0fe,()=>{const _0x5af94b=_0x1f37ad['getSelectionAffectedTableCells'](_0x3f2925['model']['document']['selection'])[0x0],_0x11d2ad=_0x5af94b['findAncestor']('table'),{column:_0x56c17e,row:_0xd36c76}=_0x1f37ad['getCellLocation'](_0x5af94b);let _0x18113a=[];if('horizontally'==_0xfeea1f['direction']){const _0x3dc609=_0x1f37ad['createTableWalker'](_0x11d2ad,{'startRow':_0xd36c76,'endRow':_0xd36c76,'includeAllSlots':!0x0});_0x18113a=Array['from'](_0x3dc609)['map'](_0x1e09fb=>_0x1e09fb['cell']);}else{const _0x389c41=_0x1f37ad['createTableWalker'](_0x11d2ad,{'column':_0x56c17e,'includeAllSlots':!0x0});_0x18113a=Array['from'](_0x389c41)['map'](_0xfe96fa=>_0xfe96fa['cell']);}_0x3f2925['model']['change'](_0x1a179f=>{_0x144026['markBlockFormat'](_0x1a179f['createRangeOn'](_0x5af94b),{'commandName':_0x1fa0fe,'commandParams':[]},_0x18113a,_0x1fa0fe);});});}_0x144026['descriptionFactory']['registerDescriptionCallback'](_0x3ad24d=>{if('formatBlock'!=_0x3ad24d['type']&&'formatInline'!=_0x3ad24d['type'])return;const {data:_0x3e72c9}=_0x3ad24d;return _0x3e72c9&&'mergeTableCells'==_0x3e72c9['commandName']?{'type':'format','content':c(_0x3bfa00,'*Merge\x20cells*')}:void 0x0;}),_0x144026['descriptionFactory']['registerDescriptionCallback'](_0xdb113a=>{if('formatBlock'!=_0xdb113a['type']&&'formatInline'!=_0xdb113a['type'])return;const {data:_0x24251b}=_0xdb113a;return _0x24251b?'splitTableCellVertically'==_0x24251b['commandName']?{'type':'format','content':c(_0x3bfa00,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x24251b['commandName']?{'type':'format','content':c(_0x3bfa00,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xf7167a=_0x4e824b['_acceptFormatSuggestionCallbackFactory']();for(const _0x61d6e0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x144026['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x61d6e0,'accept',_0xf7167a);for(const _0x4864b7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x144026['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4864b7,'accept',_0xf7167a);_0x144026['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1dfc15=>{_0x3f2925['model']['change'](_0xf16c60=>{const _0x117d5b=Array['from'](_0x160a98['getRanges']())['map'](_0x5c51f4=>_0x5bdd0a['fromRange'](_0x5c51f4));_0xf16c60['setSelection'](_0x1dfc15),_0x3f2925['commands']['get']('mergeTableCells')['refresh'](),_0x3f2925['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x314af5=_0x117d5b['filter'](_0x50a2ad=>'$graveyard'!=_0x50a2ad['root']['rootName']);_0x314af5['length']>0x0&&_0xf16c60['setSelection'](_0x314af5);for(const _0x2b334d of _0x117d5b)_0x2b334d['detach']();});});for(const _0x574ca3 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x56f318=_0x3f2925['commands']['get'](_0x574ca3);_0x56f318['on']('set:isEnabled',(_0x3f0ecd,_0x2f5d60,_0x251c47)=>{if(_0x251c47){const _0xef8ff0=_0x3f2925['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x120d74=>_0x120d74['is']('element','tableCell'));this['_areMergableCells'](_0x56f318['value'],_0xef8ff0)||(_0x3f0ecd['return']=!0x1,_0x3f0ecd['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x259f9f=this['editor']['commands']['get']('mergeTableCells'),_0x2debd3=this['editor']['plugins']['get']('TableUtils');if(!_0x259f9f['isEnabled'])return!0x1;const _0xeaad3c=_0x2debd3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x465f3b of _0xeaad3c)for(const _0x12be4a of _0xeaad3c)if(_0x465f3b!=_0x12be4a&&!this['_areMergableCells'](_0x465f3b,_0x12be4a))return!0x1;return!0x0;}['_areMergableCells'](_0x10d236,_0x1e5a86){const _0x3ece40=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb0e04d=this['editor']['model']['createRangeOn'](_0x10d236),_0x421683=this['editor']['model']['createRangeOn'](_0x1e5a86),_0x11ec06=new Set(),_0x36f0d8=new Set();for(const _0x340f4b of _0x3ece40['getSuggestions']())if(('insertion'==_0x340f4b['type']||'deletion'==_0x340f4b['type']||'mergeTableCells'==_0x340f4b['subType'])&&_0x340f4b['isInContent']){for(const _0x556b6a of _0x340f4b['getRanges']())_0x556b6a['containsRange'](_0xb0e04d,!0x0)&&_0x11ec06['add'](_0x340f4b['type']+':'+_0x340f4b['author']['id']),_0x556b6a['containsRange'](_0x421683,!0x0)&&_0x36f0d8['add'](_0x340f4b['type']+':'+_0x340f4b['author']['id']);}if(_0x11ec06['size']!=_0x36f0d8['size'])return!0x1;for(const _0x263f3e of _0x11ec06)if(!_0x36f0d8['has'](_0x263f3e))return!0x1;return!0x0;}}class Dt extends _0x413935{static get['requires'](){return[Ct];}['afterInit'](){const _0xc830cd=this['editor'];if(!_0xc830cd['plugins']['has']('TableEditing'))return;const _0x1fb609=_0xc830cd['locale'],_0x48f6ba=_0xc830cd['plugins']['get']('TrackChangesEditing');_0x48f6ba['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x48f6ba['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x48f6ba['registerBlockAttribute']('headingRows'),_0x48f6ba['registerBlockAttribute']('headingColumns'),_0x48f6ba['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x1fb609,'FORMAT_HEADER_ROW')),_0x48f6ba['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x1fb609,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x287e8b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44a609=this['editor']['plugins']['get']('TableUtils'),_0x13dac7=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x59b39e({showActiveMarker:_0x321273=!0x0,setDataAttribute:_0x5ebdf8=!0x0}={}){return(_0xbdcf7b,_0x4980a2,_0x493401)=>{const {type:_0x5a5e6c,id:_0x361f8a}=_0x287e8b['_splitMarkerName'](_0x4980a2['markerName']),_0x16141e=_0x287e8b['getSuggestion'](_0x361f8a),_0x5bd185=_0x16141e['data'];if('formatBlock'!=_0x16141e['type']||!_0x5bd185||'setTableColumnHeader'!=_0x5bd185['commandName'])return;if(_0x4980a2['item'])return void _0xbdcf7b['stop']();if(!_0x493401['consumable']['consume'](_0x4980a2['markerRange'],_0xbdcf7b['name']))return;const _0x81511d=_0x4980a2['markerRange']['start']['nodeAfter'],_0x5e7dcc=_0x4980a2['markerRange']['end']['nodeBefore'],_0x1e8e0b=_0x81511d['parent']['parent'],{column:_0x38e72d}=_0x44a609['getCellLocation'](_0x81511d),{column:_0x21ea4f}=_0x44a609['getCellLocation'](_0x5e7dcc);for(let _0x264682=_0x38e72d;_0x264682<=_0x21ea4f;_0x264682++){const _0x14f4f8=_0x44a609['createTableWalker'](_0x1e8e0b,{'column':_0x264682,'includeAllSlots':!0x1});for(const _0x5ccf9a of _0x14f4f8){const _0x225f00=_0x5ccf9a['cell'],_0x2e73fa=_0x493401['mapper']['toViewElement'](_0x225f00);_0x493401['writer']['addClass']('ck-suggestion-marker-'+_0x5a5e6c,_0x2e73fa),_0x5ebdf8&&_0x493401['writer']['setAttribute']('data-suggestion',_0x361f8a,_0x2e73fa),_0x493401['mapper']['bindElementToMarker'](_0x2e73fa,_0x4980a2['markerName']),_0x321273&&(_0x287e8b['activeMarkers']['includes'](_0x4980a2['markerName'])?_0x493401['writer']['addClass']('ck-suggestion-marker--active',_0x2e73fa):_0x493401['writer']['removeClass']('ck-suggestion-marker--active',_0x2e73fa));}}};}_0x287e8b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x13dac7),_0x287e8b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x13dac7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x59b39e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x10b120,_0x868df5,_0x3d09dd)=>{_0x3d09dd['options']['showSuggestionHighlights']&&_0x59b39e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x10b120,_0x868df5,_0x3d09dd);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x53a0b2,_0x16d90d,_0x32a8f0)=>{const {type:_0x3b9d9b,id:_0x518dea}=_0x287e8b['_splitMarkerName'](_0x16d90d['markerName']),_0x10ea68=_0x287e8b['getSuggestion'](_0x518dea),_0xf286ff=_0x10ea68['data'];if('formatBlock'!=_0x10ea68['type']||!_0xf286ff||'setTableColumnHeader'!=_0xf286ff['commandName'])return;const _0x278cbb=_0x32a8f0['mapper']['markerNameToElements'](_0x16d90d['markerName']);if(_0x278cbb){for(const _0x1260dc of _0x278cbb)_0x32a8f0['writer']['removeClass']('ck-suggestion-marker-'+_0x3b9d9b,_0x1260dc),_0x32a8f0['writer']['removeClass']('ck-suggestion-marker--active',_0x1260dc),_0x32a8f0['writer']['removeAttribute']('data-suggestion',_0x1260dc),_0x32a8f0['mapper']['unbindElementFromMarkerName'](_0x1260dc,_0x16d90d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x171166=this['editor'],_0x166122=_0x171166['locale'];function _0x1e7b2d(_0x5ab238){return{'type':'format','content':c(_0x166122,'*Format:*\x20%0',_0x5ab238)};}_0x171166['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11ac84=>{if('formatBlock'!=_0x11ac84['type'])return;const {data:_0x2855be}=_0x11ac84;if(_0x2855be){if('setTableRowHeader'==_0x2855be['commandName']){const _0x203caf=_0x2855be['commandParams'][0x0]['forceValue'];return _0x1e7b2d(c(_0x166122,_0x203caf?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2855be['commandName']){const _0x49c24c=_0x2855be['commandParams'][0x0]['forceValue'];return _0x1e7b2d(c(_0x166122,_0x49c24c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x413935{['afterInit'](){const _0x1ef9a8=this['editor'],_0x5e4d94=_0x1ef9a8['locale'],_0x280faf=_0x1ef9a8['plugins']['get']('TrackChangesEditing');function _0x500f05(_0x39de9a){return{'type':'format','content':''+c(_0x5e4d94,'*Set\x20table\x20type:*\x20%0',_0x39de9a)};}_0x1ef9a8['plugins']['has']('TableLayout')&&(_0x280faf['enableCommand']('insertTableLayout'),_0x280faf['enableDefaultAttributesIntegration']('tableType'),_0x280faf['registerBlockAttribute']('tableType'),_0x280faf['descriptionFactory']['registerElementLabel'](_0x5c6f45=>_0x5c6f45['is']('element','table')&&'layout'===_0x5c6f45['getAttribute']('tableType'),_0x4ac2a7=>c(_0x5e4d94,'ELEMENT_LAYOUT_TABLE',_0x4ac2a7)),_0x280faf['descriptionFactory']['registerDescriptionCallback'](_0x4cb3eb=>{const {data:_0x54b034}=_0x4cb3eb;if(_0x54b034&&'tableType'==_0x54b034['key'])switch(_0x54b034['newValue']){case'layout':return _0x500f05(c(_0x5e4d94,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x500f05(c(_0x5e4d94,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x3b5b4b=>[_0x3b5b4b,null]));class $t extends _0x413935{static get['requires'](){return[Ct];}['afterInit'](){const _0x186230=this['editor'];if(!_0x186230['plugins']['has']('TableClipboard'))return;const _0x43a09a=_0x186230['plugins']['get']('TrackChangesEditing'),_0x52b805=_0x186230['plugins']['get']('TableUtils'),_0x49dc83=_0x186230['plugins']['get'](Ct),_0x20afe5=_0x186230['plugins']['get']('TableClipboard'),_0x58c849=_0x186230['plugins']['get']('TableSelection'),_0x1992fb=_0x186230['plugins']['get'](_0x131e99);_0x49dc83['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x186230['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x186230['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5f2daf=null,_0x47157f=!0x1;_0x1992fb['on']('contentInsertion',(_0x26add3,_0x32ef50)=>{_0x47157f='paste'===_0x32ef50['method'];}),_0x186230['model']['on']('insertContent',(_0x456c7e,_0x19b18f)=>{if(!_0x47157f&&null===_0x58c849['getSelectedTableCells']())return;const [_0x2cc99f,_0x45efb7]=_0x19b18f,_0x5e8049=_0x19b18f[_0x19b18f['length']-0x1];_0x5e8049&&_0x5e8049['forceDefaultExecution']||_0x43a09a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xb1ae76,_0x30799a,_0x4e0be9,_0x573079,_0x33c343){if(_0x30799a&&!_0x30799a['is']('documentSelection'))return!0x1;const _0x1dc9a1=_0x33c343['getTableIfOnlyTableInContent'](_0xb1ae76,_0x4e0be9);if(!_0x1dc9a1||!He(_0x1dc9a1,void 0x0,_0x573079))return!0x1;const _0x4a8afb=_0x573079['getSelectionAffectedTableCells'](_0x4e0be9['document']['selection']);if(!_0x4a8afb['length'])return!0x1;const _0x3842f6=_0x4a8afb[0x0]['findAncestor']('table'),_0x2d6273=_0x573079['getRowIndexes'](_0x4a8afb),_0x2bccfd=_0x573079['getColumnIndexes'](_0x4a8afb),_0x4579bd={'startRow':_0x2d6273['first'],'endRow':_0x2d6273['last'],'startColumn':_0x2bccfd['first'],'endColumn':_0x2bccfd['last']};return 0x1==_0x4a8afb['length']&&(_0x4579bd['endRow']+=_0x573079['getRows'](_0x1dc9a1)-0x1,_0x4579bd['endColumn']+=_0x573079['getColumns'](_0x1dc9a1)-0x1),He(_0x3842f6,_0x4579bd,_0x573079);}(_0x2cc99f,_0x45efb7,_0x186230['model'],_0x52b805,_0x20afe5)&&(_0x456c7e['stop'](),_0x5f2daf={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x186230['model']['change'](()=>{_0x186230['model']['insertContent'](_0x19b18f[0x0],_0x19b18f[0x1],_0x19b18f[0x2],{'forceDefaultExecution':!0x0});const _0x3a9d22=_0x57be53(),{rowInsertionRanges:_0x5f3306,columnInsertionRanges:_0x2dfa14,insertionRanges:_0x3a6e0f,deletionRanges:_0x4079fd,cells:_0x264a31}=_0x5f2daf;_0x5f3306['length']&&_0x43a09a['markMultiRangeInsertion'](_0x5f3306,'tablePasteRow',{'tablePasteChainId':_0x3a9d22}),_0x2dfa14['length']&&_0x43a09a['markMultiRangeInsertion'](_0x2dfa14,'tablePasteColumn',{'tablePasteChainId':_0x3a9d22}),_0x3a6e0f['length']&&(_0x43a09a['markMultiRangeInsertion'](_0x3a6e0f,'tablePaste',{'tablePasteChainId':_0x3a9d22,'skipNestingCheck':!0x0}),_0x3a6e0f['forEach'](_0xd61922=>_0xd61922['detach']?.())),_0x4079fd['length']&&(_0x43a09a['markMultiRangeDeletion'](_0x4079fd,'tablePaste',{'tablePasteChainId':_0x3a9d22,'skipNestingCheck':!0x0}),_0x4079fd['forEach'](_0x269bbb=>_0x269bbb['detach']?.()));const _0x3e2a13=_0x43a09a['markMultiRangeBlockFormat'](_0x264a31['map'](({element:_0x5520b6})=>_0x5520b6),{'formatGroupId':_0x57be53()},[],'tablePasteCell',{'tablePasteChainId':_0x3a9d22});if(_0x3e2a13){const _0x3a5fd0=_0x3e2a13['getMarkers'](),_0x4917b5=[];for(const {element:_0xce4b23,attributes:_0x2cb722}of _0x264a31){if(!_0x2cb722)continue;const _0x234487=_0x186230['model']['createRangeOn'](_0xce4b23),_0x37aa5=_0x3a5fd0['find'](_0x591c25=>_0x591c25['getRange']()['isEqual'](_0x234487));_0x37aa5&&_0x4917b5['push']([_0x37aa5['name'],_0x2cb722]);}_0x4917b5['length']&&_0x3e2a13['setAttribute']('markerAttributes',Object['fromEntries'](_0x4917b5));}_0x5f2daf=null;}));},{'priority':_0x17cab7['high']+0xa}),_0x1992fb['on']('contentInsertion',()=>{_0x47157f=!0x1;},{'priority':'lowest'}),_0x186230['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x57b5e7,_0x83cc4d)=>{const [_0x178391,_0xd24815,,_0x2b95b7]=_0x83cc4d;if(!_0x5f2daf)return;_0x57b5e7['stop']();const _0x187149=_0x178391['cell'],_0x4cbe7e=_0xd24815,_0x4248ec=De(_0x187149),_0x6c7157=De(_0x4cbe7e);_0x57b5e7['return']=_0x187149;let _0x35ff92=null,_0x1c6346=null;if(_0x6c7157||_0x4248ec){if(_0x4248ec&&!_0x6c7157){_0x2b95b7['remove'](_0x187149['getChild'](0x0));for(const _0x39cf22 of Array['from'](_0x4cbe7e['getChildren']()))_0x2b95b7['insert'](_0x39cf22,_0x187149,'end');const _0x53cab5=_0x5f2daf['rowInsertionIndexes']['includes'](_0x178391['row']),_0x5759dc=_0x5f2daf['columnInsertionIndexes']['includes'](_0x178391['column']);_0x53cab5||_0x5759dc||(_0x35ff92=_0x5bdd0a['fromRange'](_0x2b95b7['createRangeIn'](_0x187149)));}else _0x6c7157&&!_0x4248ec&&(_0x1c6346=_0x2b95b7['createRangeIn'](_0x187149));}else{const _0x1cc607=_0x2b95b7['createElement']('tableCellSuggestion'),_0x1d3698=_0x2b95b7['createElement']('tableCellSuggestion');_0x2b95b7['wrap'](_0x2b95b7['createRangeIn'](_0x187149),_0x1d3698),_0x2b95b7['insert'](_0x1cc607,_0x187149,0x0);for(const _0x54e08a of Array['from'](_0x4cbe7e['getChildren']()))_0x2b95b7['insert'](_0x54e08a,_0x1cc607,'end');_0x35ff92=_0x5bdd0a['fromRange'](_0x2b95b7['createRangeOn'](_0x1cc607)),_0x1c6346=_0x5bdd0a['fromRange'](_0x2b95b7['createRangeOn'](_0x1d3698));}const _0x3eddb8=Array['from'](_0x4cbe7e['getAttributes']())['filter'](([_0x1cfbde])=>Oe['includes'](_0x1cfbde));_0x5f2daf['cells']['push']({'element':_0x187149,'attributes':_0x3eddb8['length']?Object['fromEntries'](_0x3eddb8):null}),_0x35ff92&&_0x5f2daf['insertionRanges']['push'](_0x35ff92),_0x1c6346&&_0x5f2daf['deletionRanges']['push'](_0x1c6346);},{'priority':'high'}),_0x52b805['on']('insertColumns',(_0x3d1c89,_0x3f0f8d)=>{const [_0x355250,_0x6e0fdc={}]=_0x3f0f8d;if(!_0x5f2daf)return;const _0x3d06a2=_0x6e0fdc['at']||0x0,_0x454b7e=_0x6e0fdc['columns']||0x1;_0x5f2daf['columnInsertionIndexes']=new Array(_0x454b7e)['fill'](_0x3d06a2)['map']((_0x1c3b25,_0xe419c5)=>_0x1c3b25+_0xe419c5);for(const {cell:_0x477d4}of _0x52b805['createTableWalker'](_0x355250,{'startColumn':_0x3d06a2,'endColumn':_0x3d06a2+_0x454b7e-0x1}))_0x5f2daf['columnInsertionRanges']['push'](_0x186230['model']['createRangeOn'](_0x477d4));},{'priority':'low'}),_0x52b805['on']('insertRows',(_0x49a3c2,_0x4c704b)=>{const [_0x3b3e3d,_0x39a093={}]=_0x4c704b;if(!_0x5f2daf)return;const _0x314b6a=_0x39a093['at']||0x0,_0x37c3e8=_0x39a093['rows']||0x1;_0x5f2daf['rowInsertionIndexes']=new Array(_0x37c3e8)['fill'](_0x314b6a)['map']((_0x3963d4,_0x5ee70d)=>_0x3963d4+_0x5ee70d);for(const {cell:_0x42fe52}of _0x52b805['createTableWalker'](_0x3b3e3d,{'startRow':_0x314b6a,'endRow':_0x314b6a+_0x37c3e8-0x1}))_0x5f2daf['rowInsertionRanges']['push'](_0x186230['model']['createRangeOn'](_0x42fe52));},{'priority':'low'}),_0x43a09a['descriptionFactory']['registerDescriptionCallback'](_0xc4796b=>{if(_0xc4796b['subType']&&_0xc4796b['subType']['startsWith']('tablePaste'))return _0xc4796b['previous']?{}:{'type':'insertion','content':c(_0x186230['locale'],'*Replace\x20table\x20cells*')};});const _0x1d9172=()=>!0x1;for(const _0x1f9898 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x43a09a['_suggestionFactory']['registerCustomCallback']('insertion',_0x1f9898,'join',_0x1d9172),_0x43a09a['_suggestionFactory']['registerCustomCallback']('deletion',_0x1f9898,'join',_0x1d9172),_0x43a09a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f9898,'join',_0x1d9172);_0x43a09a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1d9172),_0x43a09a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x39e1de,_0x1fa3f0,_0x4cb208)=>{const _0x575960=_0x39e1de['map'](_0x3022f6=>_0x3022f6['getContainedElement']())['filter'](_0x94618d=>_0x94618d),_0x6a5596=new Map(_0x575960['map'](_0xcfff04=>[_0xcfff04,null]));if(_0x5f2daf){for(const {element:_0x15badd,attributes:_0x429532}of _0x5f2daf['cells'])_0x429532&&_0x6a5596['set'](_0x15badd,_0x429532);}else{if(_0x4cb208&&_0x4cb208['markerAttributes'])for(const [_0x2222b7,_0x5cea19]of Object['entries'](_0x4cb208['markerAttributes'])){const _0x4c7dd6=_0x186230['model']['markers']['get'](_0x2222b7),_0x37fd6d=_0x4c7dd6?_0x4c7dd6['getRange']()['getContainedElement']():null;_0x37fd6d&&_0x6a5596['set'](_0x37fd6d,_0x5cea19);}}_0x186230['model']['change'](_0x58c8d0=>{for(const [_0x3cc08c,_0x5ee165]of _0x6a5596)_0x58c8d0['setAttributes']({...Ue,..._0x5ee165},_0x3cc08c);});});const _0x4de5dd=(_0x12ed9a,_0x1686da)=>{_0x43a09a['_suggestionFactory']['registerCustomCallback'](_0x12ed9a,'tablePaste',_0x1686da,(_0x24a60c,_0x41eb33,_0x85448a)=>{_0x186230['model']['change'](_0x31375e=>{const _0x4a32f3=[];for(const _0x2666b6 of _0x24a60c){const _0x34a213=_0x2666b6['start']['nodeAfter'];_0x34a213['is']('element','tableCellSuggestion')&&_0x4a32f3['push'](_0x34a213);}_0x43a09a['_suggestionFactory']['getSuggestionCallback'](_0x12ed9a,null,_0x1686da)(_0x24a60c,_0x41eb33,_0x85448a);for(const _0xe9f4b8 of _0x4a32f3)'$graveyard'!=_0xe9f4b8['root']['rootName']&&_0x31375e['unwrap'](_0xe9f4b8);});});};_0x4de5dd('insertion','accept'),_0x4de5dd('insertion','discard'),_0x4de5dd('deletion','accept'),_0x4de5dd('deletion','discard'),_0x43a09a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1cfe92=>{const _0x41958c=_0x1cfe92['map'](_0x44eb20=>_0x44eb20['getContainedElement']()),_0x43069c=_0x41958c[0x0]['findAncestor']('table'),{minRow:_0x53523c,maxRow:_0x74ac4b}=_0x49dc83['_getCoordsForCells'](_0x41958c);_0x52b805['removeRows'](_0x43069c,{'at':_0x53523c,'rows':_0x74ac4b-_0x53523c+0x1});}),_0x43a09a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x41991a=>{const _0x531c6e=_0x41991a['map'](_0x420a97=>_0x420a97['getContainedElement']()),_0x121d7b=_0x531c6e[0x0]['findAncestor']('table'),{minColumn:_0x1c03ca,maxColumn:_0x336213}=_0x49dc83['_getCoordsForCells'](_0x531c6e);_0x52b805['removeColumns'](_0x121d7b,{'at':_0x1c03ca,'columns':_0x336213-_0x1c03ca+0x1});});const _0x9c63ad=(_0x25ad27,_0x3b1a58)=>{if(!_0x3b1a58['subType']||!_0x3b1a58['subType']['startsWith']('tablePaste'))return;const _0x3f66db=_0x3b1a58['attributes']['tablePasteChainId'],_0x278a98=_0x43a09a['getSuggestions']()['filter'](_0x54f33b=>_0x54f33b['isInContent']&&_0x54f33b['attributes']&&_0x54f33b['attributes']['tablePasteChainId']==_0x3f66db);_0x278a98['length']&&_0x3b1a58['getAllAdjacentSuggestions']()['length']!=_0x278a98['length']&&_0x278a98['reduce']((_0x5e4074,_0x45e3d2)=>(_0x5e4074['next']=_0x45e3d2,_0x45e3d2['previous']=_0x5e4074,_0x45e3d2));};function _0x18a159(_0x27e540,_0x9f2e1c=!0x0){const {id:_0x2c17f7,authorId:_0x48d978}=_0x43a09a['_splitMarkerName'](_0x27e540['markerName']),_0x15149a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5f5904=_0x43a09a['activeMarkers']['includes'](_0x27e540['markerName']);return _0x5f5904&&_0x15149a['push']('ck-suggestion-marker--active'),{'classes':_0x15149a,'attributes':{'data-suggestion':_0x2c17f7,'data-author-id':_0x48d978},'priority':_0x5f5904&&_0x9f2e1c?0xbc2:0xbb8};}_0x43a09a['on']('suggestionLoaded',_0x9c63ad,{'priority':'high'}),_0x43a09a['on']('suggestionUnloaded',_0x9c63ad,{'priority':'high'}),_0x186230['model']['document']['registerPostFixer'](()=>{let _0x4d535c=!0x1;const _0xbc6d1d=Array['from'](_0x186230['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4fe102,data:_0x1d8f75}of _0xbc6d1d){const {group:_0x25a40f,type:_0x46cebc,id:_0x270842}=_0x43a09a['_splitMarkerName'](_0x4fe102);if('suggestion'!=_0x25a40f||'deletion'!=_0x46cebc||_0x1d8f75['oldRange'])continue;if(!_0x43a09a['hasSuggestion'](_0x270842))continue;const _0x56f8ba=_0x43a09a['getSuggestion'](_0x270842)['getRanges'](),_0x4b8c9a=_0x186230['plugins']['get']('Users')['me'];for(const _0x1979cc of _0x43a09a['getSuggestions']()){if(!_0x1979cc['isInContent']||_0x1979cc['author']!=_0x4b8c9a)continue;if('formatBlock'!=_0x1979cc['type']||'tablePasteCell'!=_0x1979cc['subType'])continue;if(_0x1979cc['getRanges']()['every'](_0x5b3538=>_0x56f8ba['some'](_0x374625=>_0x374625['containsRange'](_0x5b3538,!0x0)))){for(const _0x4b938b of _0x1979cc['getAllAdjacentSuggestions']())_0x4b938b['isInContent']&&(_0x4b938b['discard'](),_0x4d535c=!0x0);}}}return _0x4d535c;}),_0x186230['model']['document']['registerPostFixer'](_0x2907a9=>{const _0x2c6ffb=_0x186230['commands']['get']('redo');if(!_0x2c6ffb||!_0x2c6ffb['_createdBatches']['has'](_0x2907a9['batch']))return!0x1;let _0x240e4b=!0x1;const _0x1bb00b=_0x186230['plugins']['get']('Users')['me'],_0x8090f9=_0x186230['model']['document']['differ']['getChanges'](),_0x39407d=Array['from'](_0x186230['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xd61307,data:_0x2cfe8a})=>{const {group:_0x13e160,subType:_0x214117,authorId:_0x1063fd}=_0x43a09a['_splitMarkerName'](_0xd61307);return'suggestion'==_0x13e160&&'tablePaste'==_0x214117&&_0x1063fd==_0x1bb00b['id']&&!_0x2cfe8a['oldRange'];});for(const _0x25384d of _0x8090f9){if('insert'!=_0x25384d['type']||'tableCellSuggestion'!=_0x25384d['name']||0x1!=_0x25384d['length'])continue;const _0x4c1971=_0x2907a9['createRange'](_0x25384d['position'],_0x25384d['position']['getShiftedBy'](0x1));if(!_0x39407d['find'](({data:_0x3cf833})=>_0x3cf833['newRange']['isEqual'](_0x4c1971))){for(const {name:_0x13c648,data:_0x3b52eb}of _0x39407d)if(_0x4c1971['containsRange'](_0x3b52eb['newRange'])){_0x2907a9['updateMarker'](_0x13c648,{'range':_0x4c1971}),_0x240e4b=!0x0;break;}}}return _0x240e4b;}),_0x186230['model']['document']['registerPostFixer'](_0x5bec1c=>{let _0x3a9721=!0x1;const _0x5476b5=_0x186230['plugins']['get']('Users')['me'],_0x157976=_0x43a09a['getSuggestions']()['filter'](_0x264f06=>_0x264f06['isInContent']&&_0x264f06['author']==_0x5476b5),_0x47b70f=new Set(),_0x5239cf=new Set();for(const _0x4b591f of _0x157976)if('tablePaste'==_0x4b591f['subType'])for(const _0x2fb67c of _0x4b591f['getMarkers']()){const _0x55fd0d=_0x2fb67c['getRange']()['getContainedElement']();if(_0x55fd0d){if(_0x55fd0d['is']('element','tableCellSuggestion')&&De(_0x55fd0d)){_0x4b591f['removeMarker'](_0x2fb67c['name']),_0x47b70f['add'](_0x55fd0d),_0x3a9721=!0x0;const _0x1f99f3=_0x55fd0d['nextSibling'],_0x30ba1d=_0x55fd0d['previousSibling'],_0x359f78=_0x1f99f3&&_0x1f99f3['is']('element','tableCellSuggestion'),_0x13ef95=_0x30ba1d&&_0x30ba1d['is']('element','tableCellSuggestion');_0x359f78&&!_0x47b70f['has'](_0x1f99f3)&&_0x5239cf['add'](_0x1f99f3),_0x13ef95&&!_0x47b70f['has'](_0x30ba1d)&&_0x5239cf['add'](_0x30ba1d);}else _0x55fd0d['is']('element','paragraph')&&_0x55fd0d['isEmpty']&&(_0x4b591f['removeMarker'](_0x2fb67c['name']),_0x3a9721=!0x0);}}else{if('tablePasteCell'==_0x4b591f['subType']){if(!_0x4b591f['attributes']||!_0x4b591f['attributes']['tablePasteChainId'])continue;const _0x28c734=_0x4b591f['attributes']['markerAttributes'];if(_0x28c734&&Object['keys'](_0x28c734)['length'])continue;const _0x593a44=_0x4b591f['attributes']['tablePasteChainId'];let _0xb7805e=!0x0,_0x41c161=!0x0;for(const _0x3bc89f of _0x157976)if(_0x3bc89f['subType']&&_0x3bc89f['subType']['startsWith']('tablePaste')){if(!_0x3bc89f['attributes']['tablePasteChainId']){_0x41c161=!0x1;break;}if(_0x3bc89f['id']!=_0x4b591f['id']&&_0x3bc89f['attributes']['tablePasteChainId']==_0x593a44){_0xb7805e=!0x1;break;}}_0x41c161&&_0xb7805e&&(_0x4b591f['removeMarkers'](),_0x3a9721=!0x0);}}for(const _0x162b9e of _0x47b70f)_0x5bec1c['remove'](_0x162b9e);for(const _0x38eead of _0x5239cf)_0x5bec1c['unwrap'](_0x38eead);return _0x3a9721;}),_0x186230['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xf0ac80=>_0x18a159(_0xf0ac80),'converterPriority':'high'}),_0x186230['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x36fd84,_0x56840c)=>_0x56840c['options']['showSuggestionHighlights']?_0x18a159(_0x36fd84,!0x1):null,'converterPriority':'high'});const _0x4df5a8=_0x186230['editing']['view'];this['listenTo'](_0x4df5a8['document'],'clipboardOutput',(_0xfaa862,_0x34c67)=>{const _0x26bea7=[];for(const _0x2d7812 of _0x4df5a8['createRangeIn'](_0x34c67['content'])['getItems']())_0x2d7812['is']('element','suggestion-td')&&_0x26bea7['push'](_0x2d7812);_0x4df5a8['change'](_0x2f3888=>{for(const _0x3e6a1c of _0x26bea7)_0x2f3888['move'](_0x2f3888['createRangeIn'](_0x3e6a1c),_0x2f3888['createPositionBefore'](_0x3e6a1c)),_0x2f3888['remove'](_0x3e6a1c);});});}}function De(_0x1fef48){if(_0x1fef48['isEmpty'])return!0x0;const _0x2cc2b0=_0x1fef48['getChild'](0x0);return _0x2cc2b0['is']('element','paragraph')&&_0x2cc2b0['isEmpty'];}function He(_0x156b8a,_0x4ae544={},_0x525811){for(const {isAnchor:_0x9720a9,cellHeight:_0x394339,cellWidth:_0x294320}of _0x525811['createTableWalker'](_0x156b8a,{'includeAllSlots':!0x0,..._0x4ae544}))if(!_0x9720a9||0x1!=_0x394339||0x1!=_0x294320)return!0x1;return!0x0;}class Bt extends _0x413935{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x41297f=this['editor']['plugins']['get']('TrackChangesEditing');_0x41297f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x41297f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x41297f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41297f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x41297f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x41297f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x197e33,_0x2612ed){const _0x24df29=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12f57a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x44b93d=_0x2612ed['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5173e3=_0x12f57a['getColumnGroupElement'](_0x44b93d);let _0x1e0678=_0x5173e3?_0x12f57a['getTableColumnsWidths'](_0x5173e3):null,_0x6b1db3=_0x44b93d['getAttribute']('tableWidth')||null;const _0x388885=_0x2612ed['tableWidth']||_0x6b1db3,_0x21f477=_0x2612ed['columnWidths']||_0x1e0678,_0x1fc92a=this['editor']['plugins']['get']('Users')['me'];for(const _0x6c574 of _0x24df29['getSuggestions']()){const _0x24b142=_0x6c574['getContainedElement']();if('resizeTable'===_0x6c574['subType']&&_0x24b142===_0x44b93d){_0x6c574['author']!==_0x1fc92a&&_0x6c574['discard']();const _0x300392=_0x6c574['data']['commandParams'];_0x6b1db3=_0x300392[0x0]['tableWidth'],_0x1e0678=_0x300392[0x0]['columnWidths'];break;}}_0x197e33({'table':_0x44b93d,'tableWidth':_0x388885,'columnWidths':_0x21f477}),_0x24df29['markBlockFormat'](_0x44b93d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x6b1db3,'columnWidths':_0x1e0678}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x27dcde){if('formatBlock'!=_0x27dcde['type']&&'formatInline'!=_0x27dcde['type'])return;const {data:_0x328265}=_0x27dcde;if(_0x328265&&'resizeTable'===_0x328265['formatGroupId']){const _0x400cac='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x400cac)};}}}class xt extends _0x413935{['afterInit'](){const _0x57d0e5=this['editor'];_0x57d0e5['plugins']['has']('Template')&&_0x57d0e5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x413935{['afterInit'](){const _0x3adf23=this['editor'];if(!_0x3adf23['commands']['get']('insertTableOfContents'))return;_0x3adf23['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x9b7a80=_0x3adf23['plugins']['get']('TrackChangesEditing'),_0x1b5a0f=_0x3adf23['locale'];_0x9b7a80['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1396ea=>c(_0x1b5a0f,'ELEMENT_TABLE_OF_CONTENTS',_0x1396ea));}}class Rt extends _0x413935{['afterInit'](){const _0x78c1c4=this['editor'];if(!_0x78c1c4['plugins']['has']('Title'))return;const _0x5a4ca4=_0x78c1c4['plugins']['get']('TrackChangesEditing');_0x5a4ca4['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x78c1c4['locale'],'ELEMENT_TITLE')),_0x78c1c4['model']['document']['registerPostFixer'](_0x43920a=>{let _0xf889ef=!0x1;const _0x35d780=Array['from'](_0x78c1c4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x403889,data:_0x359236}of _0x35d780){const {group:_0x3506d4}=_0x5a4ca4['_splitMarkerName'](_0x403889);if('suggestion'!==_0x3506d4||!_0x359236['newRange'])continue;const _0x48c8e5=_0x359236['newRange'],_0x188cb2=_0x48c8e5['end']['nodeBefore'];if(!_0x188cb2||!_0x188cb2['is']('element','title-content'))continue;if(!_0x48c8e5['start']['isTouching'](_0x48c8e5['end']))continue;const _0x144640=_0x78c1c4['model']['schema']['getNearestSelectionRange'](_0x48c8e5['end'],'forward');if(_0x144640&&_0x144640['isCollapsed']){const _0x3492bd=_0x43920a['createRange'](_0x48c8e5['start'],_0x144640['start']);_0x3492bd['isEqual'](_0x48c8e5)||(_0x43920a['updateMarker'](_0x403889,{'range':_0x3492bd}),_0xf889ef=!0x0);}_0xf889ef||(_0x43920a['removeMarker'](_0x403889),_0xf889ef=!0x0);}return _0xf889ef;});}}class Tt extends _0x413935{['afterInit'](){const _0x427cfc=this['editor'],_0x1a70ce=_0x427cfc['plugins']['get']('TrackChangesEditing');_0x427cfc['plugins']['has']('Uploadcare')&&(_0x1a70ce['enableCommand']('uploadcare'),_0x427cfc['plugins']['has']('UploadcareImageEdit')&&(_0x1a70ce['enableCommand']('uploadcareImageEdit'),_0x1a70ce['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1a70ce['registerBlockAttribute']('uploadcareImageId'),_0x1a70ce['descriptionFactory']['registerDescriptionCallback'](_0x1e08f2=>{if('attribute'!=_0x1e08f2['type'])return;const {data:_0x19be74}=_0x1e08f2;return _0x19be74&&'uploadcareImageId'==_0x19be74['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x413935{['afterInit'](){const _0x4b50cc=this['editor'],_0x362a9d=_0x4b50cc['plugins']['get']('TrackChangesEditing');_0x4b50cc['plugins']['has']('UndoEditing')&&(_0x362a9d['enableCommand']('undo'),_0x362a9d['enableCommand']('redo'));}}class Ut extends _0x413935{static get['requires'](){return[Ct];}['afterInit'](){const _0x2fc1ef=this['editor'];if(!_0x2fc1ef['plugins']['has']('TableCaptionEditing'))return;_0x2fc1ef['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x413935{['tableProperties'];['tableCellProperties'];constructor(_0x559c35){super(_0x559c35),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 _0x11bcc2=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4309a9 of this['tableProperties'])_0x11bcc2['enableCommand'](_0x4309a9,(_0x2500b2,_0x539aa6)=>{const _0x427395=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4309a9,[_0x427395],this['tableProperties'],'tableProperties',_0x2500b2,_0x539aa6);});_0x11bcc2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x11bcc2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11bcc2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x41beb7,_0x39ef4f)=>this['handleDiscardAction'](this['tableProperties'],_0x41beb7,_0x39ef4f)),_0x11bcc2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5a931e of this['tableCellProperties'])_0x11bcc2['enableCommand'](_0x5a931e,(_0x3e1af5,_0x34189c)=>{const _0x1f369a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5a931e,_0x1f369a,this['tableCellProperties'],'tableCellProperties',_0x3e1af5,_0x34189c);});_0x11bcc2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x11bcc2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11bcc2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3351d4,_0x17a922)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3351d4,_0x17a922)),_0x11bcc2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x11bcc2['descriptionFactory']['registerDescriptionCallback'](_0x33bc1d=>this['handleSuggestionDescription'](_0x33bc1d));}['_handlePropertyChange'](_0x2d692b,_0x2713d0,_0x19d332,_0x2afd2c,_0x2e42c1,_0x210089){const _0x3549df=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x210089['batch'],()=>{for(const _0x503684 of _0x2713d0){if(this['_getSuggestion'](_0x503684,_0x2afd2c))_0x2e42c1(_0x210089);else{const _0x240fcd={};for(const _0x348e61 of _0x19d332){const _0x2e285a=_0x503684['getAttribute'](_0x348e61);void 0x0!==_0x2e285a&&(_0x240fcd[_0x348e61]=_0x2e285a);}_0x2e42c1(_0x210089),_0x3549df['markBlockFormat'](_0x503684,{'commandParams':[_0x240fcd]},[],_0x2afd2c);}}});}['handleDiscardAction'](_0x1705d6,_0x2c731f,_0x149d40){const _0x3a5f24=_0x2c731f[0x0]['start']['nodeAfter'],_0xfd8270=_0x149d40['commandParams'][0x0];this['editor']['model']['change'](_0x110000=>{for(const _0x3aee9d of _0x1705d6)void 0x0!==_0xfd8270[_0x3aee9d]?_0x110000['setAttribute'](_0x3aee9d,_0xfd8270[_0x3aee9d],_0x3a5f24):_0x110000['removeAttribute'](_0x3aee9d,_0x3a5f24);});}['handleSuggestionDescription'](_0x103170){if(_0x103170['data'])switch(_0x103170['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'](_0x1ece7d,_0x7c4792){const _0x23f8a4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x146ba0 of _0x23f8a4['getSuggestions']({'skipNotAttached':!0x0})){const _0x28f7a1=_0x146ba0['getContainedElement']();if(_0x146ba0['subType']===_0x7c4792&&_0x28f7a1===_0x1ece7d)return _0x146ba0;}return null;}}const u='$elementName';class p extends _0x413935{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3b0e33,_0x1d495c,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(_0x3a974c){super(_0x3a974c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x55da06,_0x3a80bd,_0x1de8a0,_0x54005b)=>{this['_model']['change'](()=>{for(const _0x23b1b3 of[..._0x54005b,..._0x1de8a0])this['_model']['markers']['has'](_0x23b1b3)&&_0x3a974c['editing']['reconvertMarker'](_0x23b1b3);});}),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']=_0x3a974c['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(),_0x3a974c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3a974c['config']['get']('trackChanges.trackFormatChanges'),_0x3a974c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3a974c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3a974c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5f332b=this['editor'],_0x2c8aa5=(_0x320112,_0x428380)=>{if('attribute'!=_0x320112)return'ck-suggestion-marker-'+_0x320112;const _0x397670=_0x428380['split']('|')[0x0];return this['_isBlockAttribute'](_0x397670)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5f332b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x160fc7=>{const {id:_0x1360a4,authorId:_0x37cf59,type:_0x2177a3,subType:_0x30af51}=this['_splitMarkerName'](_0x160fc7['markerName']),_0x26f802=['ck-suggestion-marker',_0x2c8aa5(_0x2177a3,_0x30af51)];let _0x1acada=0xbb8;return this['activeMarkers']['includes'](_0x160fc7['markerName'])&&(_0x26f802['push']('ck-suggestion-marker--active'),_0x1acada=0xbc2),'deletion'==_0x2177a3&&(_0x1acada+=0x5),{'classes':_0x26f802,'attributes':{'data-suggestion':_0x1360a4,'data-author-id':_0x37cf59},'priority':_0x1acada};}}),_0x5f332b['conversion']['for']('dataDowncast')['add'](_0x1b1fab=>{_0x1b1fab['on']('addMarker:suggestion',(_0x118841,_0x5c8a59,_0x5d7788)=>{if(!_0x5d7788['options']['showSuggestionHighlights'])return;const _0x1bf32e=_0x5c8a59['item'];if(!_0x1bf32e)return;const _0x1c2809=_0x5d7788['mapper']['toViewElement'](_0x1bf32e);_0x5f332b['model']['schema']['isObject'](_0x1bf32e)&&_0x1c2809&&!_0x1c2809['getCustomProperty']('widget')&&_0x1c2809['is']('containerElement')&&_0x1d9cba(_0x1c2809,_0x5d7788['writer']);},{'priority':'high'});}),_0x5f332b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x475b5a,_0x328ff9)=>{if(!_0x328ff9['options']['showSuggestionHighlights'])return null;const {id:_0x46d1c8,authorId:_0x510dd7,type:_0x1cdec9,subType:_0x39d1b0}=this['_splitMarkerName'](_0x475b5a['markerName']);return{'classes':['ck-suggestion-marker',_0x2c8aa5(_0x1cdec9,_0x39d1b0)],'priority':0xbb8,'attributes':{'data-suggestion':_0x46d1c8,'data-author-id':_0x510dd7}};}});const _0xdecc7d=({showActiveMarkers:_0x2b607a=!0x0,isAttributeSuggestion:_0x2288b7=!0x1}={})=>(_0x177cc7,_0x3fbca9,_0x261353)=>{if(!_0x3fbca9['item'])return;const {id:_0x21bf61,authorId:_0x25ff46}=this['_splitMarkerName'](_0x3fbca9['markerName']);if(_0x2288b7){const _0x475cef=this['_suggestions']['get'](_0x21bf61),_0x3da232=this['_getAttributeKey'](_0x475cef);if(!this['_isBlockAttribute'](_0x3da232))return;}if(_0x3fbca9['item']['is']('selection'))return void _0x261353['consumable']['consume'](_0x3fbca9['item'],_0x177cc7['name']);const _0x45a6fc=_0x261353['mapper']['toViewElement'](_0x3fbca9['item']);if(_0x3fbca9['item']['is']('element')&&_0x5f332b['model']['schema']['isBlock'](_0x3fbca9['item'])&&!_0x45a6fc['getCustomProperty']('addHighlight')){_0x261353['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x45a6fc),_0x261353['writer']['setAttribute']('data-suggestion',_0x21bf61,_0x45a6fc),_0x261353['writer']['setAttribute']('data-author-id',_0x25ff46,_0x45a6fc),_0x261353['mapper']['bindElementToMarker'](_0x45a6fc,_0x3fbca9['markerName']),_0x2b607a&&(this['activeMarkers']['includes'](_0x3fbca9['markerName'])?_0x261353['writer']['addClass']('ck-suggestion-marker--active',_0x45a6fc):_0x261353['writer']['removeClass']('ck-suggestion-marker--active',_0x45a6fc));for(const _0x2e0789 of _0x5f332b['model']['createRangeIn'](_0x3fbca9['item'])['getItems']())_0x261353['consumable']['consume'](_0x2e0789,_0x177cc7['name']);_0x261353['consumable']['consume'](_0x3fbca9['item'],_0x177cc7['name']);}};_0x5f332b['conversion']['for']('dataDowncast')['add'](_0x988053=>{_0x988053['on']('addMarker:suggestion:formatBlock',(_0x40423a,_0x204f08,_0x1924ea)=>{_0x1924ea['options']['showSuggestionHighlights']&&_0xdecc7d({'showActiveMarkers':!0x1})(_0x40423a,_0x204f08,_0x1924ea);},{'priority':'highest'});}),_0x5f332b['conversion']['for']('dataDowncast')['add'](_0x1f2f44=>{_0x1f2f44['on']('addMarker:suggestion:attribute',(_0x5992b9,_0x25c999,_0x44047b)=>{_0x44047b['options']['showSuggestionHighlights']&&_0xdecc7d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5992b9,_0x25c999,_0x44047b);},{'priority':'highest'});}),_0x5f332b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1096c4,_0xce5ab4)=>{if(_0xce5ab4['options']['showSuggestionHighlights']){const {id:_0x2f872c,authorId:_0x1b40ac}=this['_splitMarkerName'](_0x1096c4);return _0x1096c4['includes'](':split')||_0x1096c4['includes'](':merge')?{'group':'suggestion','name':_0x1096c4['substr'](0xb),'attributes':{'data-suggestion':_0x2f872c,'data-author-id':_0x1b40ac}}:null;}return{'group':'suggestion','name':_0x1096c4['substr'](0xb)};}}),_0x5f332b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3b1fed,{writer:_0xa259c2})=>{let _0x752ea2='suggestion:'+_0x3b1fed['getAttribute']('suggestion-type')+':'+_0x3b1fed['getAttribute']('id');return _0x3b1fed['getAttribute']('marker-count')&&(_0x752ea2+=':'+_0x3b1fed['getAttribute']('marker-count')),_0xa259c2['createElement']('$marker',{'data-name':_0x752ea2});}}),_0x5f332b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5f332b['conversion']['for']('editingDowncast')['add'](_0x2699c9=>{_0x2699c9['on']('addMarker:suggestion:formatBlock',_0xdecc7d(),{'priority':'high'});}),_0x5f332b['conversion']['for']('editingDowncast')['add'](_0x7ff99a=>{_0x7ff99a['on']('addMarker:suggestion:attribute',_0xdecc7d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5f332b['conversion']['for']('editingDowncast')['add'](_0x50af9a=>{_0x50af9a['on']('removeMarker:suggestion:formatBlock',(_0x5b5f0b,_0x59b31d,_0x22f493)=>{const _0x2e2121=_0x22f493['mapper']['markerNameToElements'](_0x59b31d['markerName']);if(_0x2e2121){for(const _0x44c6ca of _0x2e2121)_0x44c6ca['getCustomProperty']('addHighlight')||(_0x22f493['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x44c6ca),_0x22f493['writer']['removeAttribute']('data-suggestion',_0x44c6ca),_0x22f493['writer']['removeAttribute']('data-author-id',_0x44c6ca),_0x22f493['mapper']['unbindElementFromMarkerName'](_0x44c6ca,_0x59b31d['markerName']));}},{'priority':'high'});}),_0x5f332b['conversion']['for']('editingDowncast')['add'](_0xfbee3b=>{_0xfbee3b['on']('removeMarker:suggestion:attribute',(_0x185bb1,_0x15a631,_0x5d8149)=>{const _0xcfd3f6=_0x5d8149['mapper']['markerNameToElements'](_0x15a631['markerName']);if(!_0xcfd3f6)return;const {id:_0x28dbaf}=this['_splitMarkerName'](_0x15a631['markerName']),_0x331806=this['_suggestions']['get'](_0x28dbaf),_0x223857=this['_getAttributeKey'](_0x331806);if(this['_isBlockAttribute'](_0x223857)){for(const _0x171ec9 of _0xcfd3f6)_0x171ec9['getCustomProperty']('addHighlight')||(_0x5d8149['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x171ec9),_0x5d8149['writer']['removeAttribute']('data-suggestion',_0x171ec9),_0x5d8149['writer']['removeAttribute']('data-author-id',_0x171ec9),_0x5d8149['mapper']['unbindElementFromMarkerName'](_0x171ec9,_0x15a631['markerName']));}},{'priority':'high'});}),_0x5f332b['model']['document']['registerPostFixer'](_0x45a03d=>{let _0x2d9180=!0x1;const _0x43b3fb=Array['from'](_0x5f332b['model']['document']['differ']['getChangedMarkers']()),_0x5ad570=new Set();for(const {name:_0x5186d3,data:_0x3751cd}of _0x43b3fb){const {group:_0x5e372b,type:_0x3176e6,subType:_0x114a5f,id:_0x3adad6}=this['_splitMarkerName'](_0x5186d3);if('suggestion'!==_0x5e372b)continue;const _0x5e38fb=this['_suggestions']['get'](_0x3adad6);if(null!=_0x3751cd['newRange']){'formatInline'==_0x3176e6&&(_0x2d9180=_0x2d9180||Jt(_0x3751cd['newRange'],_0x5186d3,_0x45a03d,_0x5f332b['model']['schema']));const _0x5984d0='attribute'==_0x3176e6&&this['_isBlockAttribute'](_0x114a5f['split']('|')[0x0]);if(_0x3751cd['newRange']['isCollapsed']||'$graveyard'==_0x3751cd['newRange']['root']['rootName']||'formatBlock'==_0x3176e6&&!Ht(_0x3751cd['newRange'])||_0x5984d0&&!Ht(_0x3751cd['newRange'])||'deletion'==_0x3176e6&&!(!Lt(_0x4e093d=_0x3751cd['newRange'])&&!function(_0x92c96d){return _0x92c96d['start']['parent']==_0x92c96d['end']['nodeBefore']&&_0x92c96d['start']['isAtEnd'];}(_0x4e093d)))_0x45a03d['removeMarker'](_0x5186d3),_0x2d9180=!0x0;else{if(!_0x5e38fb||!_0x5e38fb['isInContent'])continue;if(_0x3751cd['newRange']&&_0x3751cd['oldRange']&&_0x3751cd['newRange']['isEqual'](_0x3751cd['oldRange']))continue;_0x5ad570['add'](_0x5e38fb);}}}var _0x4e093d;return _0x5ad570['size']>0x0&&(_0x2d9180=!!this['_joinWithAdjacentSuggestions'](_0x5ad570)||_0x2d9180),_0x2d9180;}),_0x5f332b['model']['document']['registerPostFixer'](_0x43b8a5=>{let _0x3eeac4=!0x1;for(const _0x4fb0fa of _0x5f332b['model']['document']['differ']['getChanges']())if('insert'==_0x4fb0fa['type'])for(const _0xeb1908 of this['_suggestions']['values']()){if(_0xeb1908['isMultiRange']||!_0xeb1908['isInContent'])continue;const _0x644f6c='formatBlock'==_0xeb1908['type'],_0xdbb15=this['_getAttributeKey'](_0xeb1908),_0x63febf=_0xdbb15&&this['_isBlockAttribute'](_0xdbb15);if(!_0x644f6c&&!_0x63febf)continue;const _0x4aad38=_0xeb1908['getFirstRange']();if(_0x4aad38['start']['parent']!=_0x4aad38['end']['parent']&&!_0x4aad38['end']['isAtEnd']){const _0x207800=_0x5f332b['model']['createPositionAt'](_0x4aad38['start']['nodeAfter'],'end'),_0x2649d6=_0x5f332b['model']['createRange'](_0x4aad38['start'],_0x207800);_0x43b8a5['updateMarker'](_0xeb1908['getFirstMarker'](),{'range':_0x2649d6}),_0x3eeac4=!0x0;}}return _0x3eeac4;}),_0x5f332b['model']['document']['registerPostFixer'](_0x20160e=>this['_processAttributeChanges'](_0x20160e)),_0x5f332b['model']['document']['registerPostFixer'](_0x81f627=>!_0x81f627['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x81f627)),_0x5f332b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5f332b['model']['document']['on']('change:data',(_0x396bc1,_0x118314)=>{if(!_0x118314['isLocal']||_0x118314['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x21e4f0=_0x5f332b['model']['document']['differ']['getChanges']();if(0x0==_0x21e4f0['length'])return;const _0x2e9538=[],_0x2dbdbd=_0x21e4f0['filter'](_0x244379=>'attribute'==_0x244379['type']),_0x36fde3=_0x21e4f0['filter'](_0x4d219c=>'insert'==_0x4d219c['type']&&'$text'!=_0x4d219c['name']);for(const _0x4b8a36 of _0x2dbdbd)this['_isRegisteredAttribute'](_0x4b8a36['attributeKey'])&&_0x2e9538['push']({'key':_0x4b8a36['attributeKey'],'newValue':_0x4b8a36['attributeNewValue'],'oldValue':_0x4b8a36['attributeOldValue'],'range':qt(_0x4b8a36['range'],_0x5f332b['model'])});for(const _0x5ebab2 of _0x36fde3){if('rename'!=_0x5ebab2['action']&&'refresh'!=_0x5ebab2['action'])continue;const _0x505a28=zt(_0x5ebab2['position']['nodeAfter'],_0x5f332b['model']),_0x30cf3=_0x5ebab2['before'];'rename'==_0x5ebab2['action']&&_0x2e9538['push']({'key':u,'newValue':_0x5ebab2['name'],'oldValue':_0x30cf3['name'],'range':_0x505a28});for(const [_0x3eca12,_0x2acb28]of _0x30cf3['attributes']){if(!this['_isRegisteredAttribute'](_0x3eca12))continue;const _0x5eaac9=_0x5ebab2['attributes']['get'](_0x3eca12);_0x2acb28!==_0x5eaac9&&_0x2e9538['push']({'key':_0x3eca12,'newValue':_0x5eaac9,'oldValue':_0x2acb28,'range':_0x505a28});}for(const [_0x50cb42,_0x123f34]of _0x5ebab2['attributes'])this['_isRegisteredAttribute'](_0x50cb42)&&(_0x30cf3['attributes']['has'](_0x50cb42)||_0x2e9538['push']({'key':_0x50cb42,'newValue':_0x123f34,'oldValue':null,'range':_0x505a28}));}0x0!=_0x2e9538['length']&&_0x5f332b['model']['enqueueChange'](_0x118314,_0x56e5fd=>{const _0x56ce4c=_0x57be53();for(const {range:_0x207c3a,key:_0x5f4277,oldValue:_0x4b3fbd,newValue:_0x3d219d}of _0x2e9538)this['markAttributeChange'](_0x207c3a,_0x5f4277,_0x4b3fbd,_0x3d219d,{'groupId':_0x56ce4c});this['_reduceExistingSuggestions'](_0x56e5fd,_0x2e9538);});},{'priority':'lowest'}),_0x5f332b['model']['markers']['on']('update:suggestion',(_0x412fd9,_0x4c6b5d,_0x59d283)=>{if(null==_0x59d283){const {id:_0x58b7ab}=this['_splitMarkerName'](_0x4c6b5d['name']),_0x30158f=this['_suggestions']['get'](_0x58b7ab);_0x30158f&&_0x30158f['addMarkerName'](_0x4c6b5d['name']);}}),_0x5f332b['model']['document']['on']('change:data',()=>{const _0x194eea=Array['from'](_0x5f332b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2ce084=>'suggestion'===this['_splitMarkerName'](_0x2ce084['name'])['group']);if(0x0===_0x194eea['length'])return;_0x194eea['sort']((_0x3ed257,_0x58c50f)=>{const _0x508faf=_0x3ed257['data']['oldRange'],_0x423b70=_0x58c50f['data']['oldRange'];return null===_0x508faf&&null===_0x423b70?0x0:null===_0x508faf&&null!==_0x423b70?-0x1:null!==_0x508faf&&null===_0x423b70?0x1:_0x508faf['start']['isBefore'](_0x423b70['start'])?-0x1:0x1;});const _0x333737=new Set(),_0x284af4=new Set();for(const {name:_0x27bb86,data:_0x2e7718}of _0x194eea){const {id:_0x2fe5ed}=this['_splitMarkerName'](_0x27bb86);if(null===_0x2e7718['oldRange']){const _0x3fcbc5=this['_handleNewSuggestionMarker'](_0x27bb86);_0x284af4['add'](_0x3fcbc5);}else{const _0x1b36ea=this['_suggestions']['get'](_0x2fe5ed);null!==_0x2e7718['newRange']||_0x1b36ea['isInContent']?(_0x333737['add'](_0x1b36ea['head']),_0x284af4['add'](_0x1b36ea)):this['_removeSuggestion'](_0x1b36ea);}}_0x284af4['size']>0x0&&this['_refreshSuggestionsChain'](_0x284af4);for(const _0x21f1c3 of _0x333737)this['fire']('suggestionChanged',_0x21f1c3);}),_0x5f332b['model']['on']('applyOperation',(_0x233152,_0x501696)=>{const _0x2061f7=_0x501696[0x0];if(!this['_suggestions']['size'])return;if(!_0x2061f7['isDocumentOperation'])return;if(_0x2061f7['batch']['isUndo']||!_0x2061f7['batch']['isLocal'])return;let _0x22a178,_0x2f8deb;switch(_0x2061f7['type']){case'insert':_0x22a178=_0x5f332b['model']['createPositionAt'](_0x2061f7['position']),_0x2f8deb=_0x22a178['getShiftedBy'](_0x2061f7['howMany']);break;case'split':_0x22a178=_0x5f332b['model']['createPositionAt'](_0x2061f7['splitPosition']),_0x2f8deb=_0x5f332b['model']['createPositionAt'](_0x2061f7['moveTargetPosition']);break;case'move':_0x22a178=_0x5f332b['model']['createPositionAt'](_0x2061f7['targetPosition']),_0x2f8deb=_0x22a178['getShiftedBy'](_0x2061f7['howMany']);break;default:return;}const _0x15ca9e=_0x5f332b['model']['createRange'](_0x22a178,_0x2f8deb);_0x5f332b['model']['change'](()=>{for(const {suggestion:_0x2d2b7d,meta:_0x3036b2}of this['_findSuggestions'](_0x15ca9e)){if(_0x2d2b7d['isMultiRange'])continue;if('formatInline'==_0x2d2b7d['type'])continue;const _0x2a79c3=this['_getAttributeKey'](_0x2d2b7d);if(_0x2a79c3&&this['_isBlockAttribute'](_0x2a79c3)&&'split'!=_0x2061f7['type'])continue;const _0x43438f=_0x2d2b7d['data']&&_0x2d2b7d['data']['multipleBlocks'];('formatBlock'!=_0x2d2b7d['type']||'split'==_0x2061f7['type']&&!_0x43438f)&&(_0x3036b2['containsRangeInObject']||'insertion'==_0x2d2b7d['type']&&_0x3036b2['isOwn']||_0x2d2b7d['getFirstRange']()['containsRange'](_0x15ca9e)&&this['_breakSuggestionMarker'](_0x2d2b7d,_0x22a178,_0x2f8deb));}});},{'priority':'lowest'}),_0x5f332b['model']['on']('deleteContent',(_0x2df31b,_0x382b59)=>{const _0xd4bf1a=_0x382b59[0x0],_0x39c6e6=_0x382b59[0x1];if(_0x39c6e6&&_0x39c6e6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xd4bf1a['isCollapsed'])return;const _0x17519c=_0x5f332b['model']['schema'],{start:_0x188e65,end:_0x344f96}=_0xd4bf1a['getFirstRange'](),_0xb2bc27=_0x188e65['nodeAfter']&&_0x17519c['isLimit'](_0x188e65['nodeAfter'])?null:_0x17519c['getNearestSelectionRange'](_0x188e65,'forward'),_0x45c353=_0x344f96['nodeBefore']&&_0x17519c['isLimit'](_0x344f96['nodeBefore'])?null:_0x17519c['getNearestSelectionRange'](_0x344f96,'backward'),_0x3c5c86=_0x5f332b['model']['createRange'](_0xb2bc27?_0xb2bc27['start']:_0x188e65,_0x45c353?_0x45c353['end']:_0x344f96);_0x5f332b['model']['change'](_0x147802=>{this['markDeletion'](_0x3c5c86);const _0x2f5899=_0x5f332b['model']['schema']['getNearestSelectionRange'](_0x3c5c86['start']);_0xd4bf1a['is']('documentSelection')?_0x147802['setSelection'](_0x2f5899):_0xd4bf1a['setTo'](_0x2f5899);}),_0x2df31b['stop']();},{'priority':_0x17cab7['normal']+0xa}),_0x5f332b['model']['on']('insertContent',(_0x196a9a,_0x3289f9)=>{const _0xec5713=_0x3289f9[_0x3289f9['length']-0x1];_0xec5713&&_0xec5713['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5f332b['model']['change'](()=>{let _0x3f8b8a=_0x5f332b['model']['insertContent'](_0x3289f9[0x0],_0x3289f9[0x1],_0x3289f9[0x2],{'forceDefaultExecution':!0x0});if(!_0x3f8b8a)return;_0x196a9a['return']=_0x3f8b8a['clone']();const _0x369079=_0x3f8b8a['end']['nodeBefore'],_0x3de781=_0x5f332b['model']['schema'];_0x369079&&_0x3de781['isBlock'](_0x369079)&&!_0x3de781['isObject'](_0x369079)&&(_0x3f8b8a=_0x5f332b['model']['createRange'](_0x3f8b8a['start'],_0x5f332b['model']['createPositionAt'](_0x369079,'end'))),this['markInsertion'](_0x3f8b8a);}),_0x196a9a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x36c2b5=new x(_0x5f332b,this['_suggestions']);_0x5f332b['commands']['add']('acceptSuggestion',_0x36c2b5),this['enableCommand']('acceptSuggestion');const _0x37cad8=new O(_0x5f332b,this['_suggestions']);_0x5f332b['commands']['add']('discardSuggestion',_0x37cad8),this['enableCommand']('discardSuggestion'),_0x5f332b['commands']['add']('acceptAllSuggestions',new R(_0x5f332b,_0x36c2b5,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5f332b['commands']['add']('discardAllSuggestions',new R(_0x5f332b,_0x37cad8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5f332b['commands']['add']('acceptSelectedSuggestions',new E(_0x5f332b,_0x36c2b5,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5f332b['commands']['add']('discardSelectedSuggestions',new E(_0x5f332b,_0x37cad8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5006fe=_0x5f332b['plugins']['get']('CommentsRepository');this['listenTo'](_0x5006fe,'addComment',(_0x54330c,{threadId:_0x4fd78b})=>{const _0x6c63c=this['_suggestions']['get'](_0x4fd78b);_0x6c63c&&_0x6c63c['commentThread']&&0x1===_0x6c63c['commentThread']['length']&&this['_updateSuggestionData'](_0x4fd78b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5006fe,'removeComment',(_0x2246b0,{threadId:_0x5462aa})=>{const _0x244486=this['_suggestions']['get'](_0x5462aa);_0x244486&&_0x244486['commentThread']&&!_0x244486['commentThread']['length']&&this['_updateSuggestionData'](_0x5462aa,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x412d16){const _0x323101=_0x1eeb60([0x76,0x4e,0x6c,0x46,0x5a,0x66,0x33,0x59,0x61,0x39,0x6b,0x31,0x75,0x65,0x52,0x62,0x63,0x35,0x51,0x67,0x56,0x44,0x41,0x72,0x57,0x4c,0x77,0x30,0x79,0x42,0x43,0x4a,0x32,0x34,0x58,0x6a,0x6f,0x6d,0x48,0x7a,0x4d,0x55,0x4f,0x50,0x45,0x74,0x37,0x4b,0x36,0x54,0x71,0x70,0x38,0x53,0x73,0x69,0x49,0x68,0x78,0x64,0x6e,0x47]),_0x499117=0x5624cd96,_0x46c8b0=0x5623a506^_0x499117,_0x349875=window[_0x1eeb60([0x44,0x61,0x74,0x65])][_0x1eeb60([0x6e,0x6f,0x77])](),_0x4b1afc=_0x412d16[_0x1eeb60([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47a06d=new window[(_0x1eeb60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26964e=>{_0x4b1afc[_0x1eeb60([0x6f,0x6e,0x63,0x65])](_0x1eeb60([0x72,0x65,0x61,0x64,0x79]),_0x26964e);}),_0x1f8c13={[_0x1eeb60([0x6b,0x74,0x79])]:_0x1eeb60([0x45,0x43]),[_0x1eeb60([0x75,0x73,0x65])]:_0x1eeb60([0x73,0x69,0x67]),[_0x1eeb60([0x63,0x72,0x76])]:_0x1eeb60([0x50,0x2d,0x32,0x35,0x36]),[_0x1eeb60([0x78])]:_0x1eeb60([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]),[_0x1eeb60([0x79])]:_0x1eeb60([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]),[_0x1eeb60([0x61,0x6c,0x67])]:_0x1eeb60([0x45,0x53,0x32,0x35,0x36])},_0x277dc7=_0x4b1afc[_0x1eeb60([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1eeb60([0x67,0x65,0x74])](_0x1eeb60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1ebe20(){let _0x1bf3e7,_0x1d1a1d=null,_0x2d4f49=null;try{if(_0x277dc7==_0x1eeb60([0x47,0x50,0x4c]))return _0x1eeb60([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1bf3e7=_0x5c64b2(),!_0x1bf3e7)return _0x1eeb60([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1bf3e7[_0x1eeb60([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d4f49=_0x346c56(_0x1bf3e7[_0x1eeb60([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1bf3e7[_0x1eeb60([0x6a,0x74,0x69])])),await _0x53ff41()?_0x231210()?_0x227715()?_0x1eeb60([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdece48()?(_0x1bf3e7[_0x1eeb60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1eeb60([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d1a1d=_0x42d7b8(_0x1eeb60([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1bf3e7[_0x1eeb60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1eeb60([0x74,0x72,0x69,0x61,0x6c])&&(_0x1d1a1d=_0x42d7b8(_0x1eeb60([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1bce41()):_0x1eeb60([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1eeb60([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1eeb60([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x295c11){return _0x1eeb60([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x227715(){const _0x33cf6f=[_0x1eeb60([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1eeb60([0x74,0x72,0x69,0x61,0x6c])][_0x1eeb60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bf3e7[_0x1eeb60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x349875/0x3e8:0xe10*_0x46c8b0;return _0x1bf3e7[_0x1eeb60([0x65,0x78,0x70])]<_0x33cf6f;}function _0x231210(){const _0x5cb63d=_0x1bf3e7[_0x1eeb60([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5cb63d)return!0x1;if(_0x5cb63d[_0x1eeb60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1eeb60([0x2a])))return!0x0;if(_0x5cb63d[_0x1eeb60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1eeb60([0x54,0x43])))return!0x0;if(_0x5cb63d[_0x1eeb60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1eeb60([0x52,0x54,0x43]))){if(_0x346677())return!0x0;if(_0x4bb95d()||_0x579172())return!0x0;}return!0x1;}function _0xdece48(){const _0x3b6c08=_0x1bf3e7[_0x1eeb60([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b6c08||0x0==_0x3b6c08[_0x1eeb60([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5603c9}=new URL(window[_0x1eeb60([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b6c08[_0x1eeb60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5603c9))return!0x0;const _0x567223=_0x5603c9[_0x1eeb60([0x73,0x70,0x6c,0x69,0x74])](_0x1eeb60([0x2e]));return _0x3b6c08[_0x1eeb60([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x115187=>_0x115187[_0x1eeb60([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1eeb60([0x2a])))[_0x1eeb60([0x6d,0x61,0x70])](_0x36bced=>_0x36bced[_0x1eeb60([0x73,0x70,0x6c,0x69,0x74])](_0x1eeb60([0x2e])))[_0x1eeb60([0x73,0x6f,0x6d,0x65])](_0x2fa49a=>_0x567223[_0x1eeb60([0x65,0x76,0x65,0x72,0x79])]((_0x2ab342,_0x1f561c)=>_0x2fa49a[_0x1f561c]===_0x2ab342||_0x2fa49a[_0x1f561c]===_0x1eeb60([0x2a])));}function _0x1bce41(){return _0x1d1a1d&&_0x2d4f49?new window[(_0x1eeb60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ae3d0,_0x25eadd)=>{_0x1d1a1d[_0x1eeb60([0x74,0x68,0x65,0x6e])](_0x4ae3d0,_0x25eadd),_0x2d4f49[_0x1eeb60([0x74,0x68,0x65,0x6e])](_0x1c3a76=>{_0x1c3a76!=_0x1eeb60([0x56,0x61,0x6c,0x69,0x64])&&_0x4ae3d0(_0x1c3a76);},_0x25eadd);}):_0x1d1a1d||_0x2d4f49||_0x1eeb60([0x56,0x61,0x6c,0x69,0x64]);}}function _0x346c56(_0x3b2ab9,_0xa6a1d6){return new window[(_0x1eeb60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5427ab=>{if(_0x71cd3e())return _0x5427ab(_0x1eeb60([0x56,0x61,0x6c,0x69,0x64]));_0x74245d(),_0x4b1afc[_0x1eeb60([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1eeb60([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1ffd26=!0x1;const _0x14777f=_0x57be53();function _0x32242f(_0x525883){return!!_0x525883&&(typeof _0x525883===_0x1eeb60([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x525883===_0x1eeb60([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x525883[_0x1eeb60([0x74,0x68,0x65,0x6e])]===_0x1eeb60([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x525883[_0x1eeb60([0x63,0x61,0x74,0x63,0x68])]===_0x1eeb60([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1eafc0(_0x5a403c){_0x49f284(_0x5a403c)[_0x1eeb60([0x74,0x68,0x65,0x6e])](_0x337be9=>{if(!_0x337be9||_0x337be9[_0x1eeb60([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1eeb60([0x6f,0x6b]))return _0x1eeb60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5975f6(_0x551e95(_0x14777f+_0xa6a1d6))!=_0x337be9[_0x1eeb60([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1eeb60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1eeb60([0x56,0x61,0x6c,0x69,0x64]);})[_0x1eeb60([0x74,0x68,0x65,0x6e])](_0x27b611=>(_0x150134(),_0x27b611),()=>{const _0x24f997=_0x1af2f3();return null==_0x24f997?(_0x150134(),_0x1eeb60([0x56,0x61,0x6c,0x69,0x64])):_0x1eeb60(_0x349875-_0x24f997>(0x72284996^_0x499117)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1eeb60([0x74,0x68,0x65,0x6e])](_0x5427ab)[_0x1eeb60([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5427ab(_0x1eeb60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4b521d=0x56122316^_0x499117;function _0x150134(){const _0x48e7d9=_0x1eeb60([0x6c,0x6c,0x63,0x74,0x2d])+_0x5975f6(_0x551e95(_0x3b2ab9)),_0x5d35fa=_0x931a1e(_0x5975f6(window[_0x1eeb60([0x4d,0x61,0x74,0x68])][_0x1eeb60([0x63,0x65,0x69,0x6c])](_0x349875/_0x4b521d)));window[_0x1eeb60([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1eeb60([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48e7d9,_0x5d35fa);}function _0x1af2f3(){const _0x59df5e=_0x1eeb60([0x6c,0x6c,0x63,0x74,0x2d])+_0x5975f6(_0x551e95(_0x3b2ab9)),_0x371823=window[_0x1eeb60([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1eeb60([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59df5e);return _0x371823?window[_0x1eeb60([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x931a1e(_0x371823),0x10)*_0x4b521d:null;}function _0x49f284(_0xe13d3b){return new window[(_0x1eeb60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8e8fb6,_0x8a9f59)=>{_0xe13d3b[_0x1eeb60([0x74,0x68,0x65,0x6e])](_0x8e8fb6,_0x8a9f59),window[_0x1eeb60([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8a9f59,0x56251956^_0x499117);});}}_0x4b1afc[_0x1eeb60([0x6f,0x6e])](_0x1eeb60([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf8e389,_0x3d33b5)=>{if(_0x3d33b5[0x0]!=_0x3b2ab9)return _0x5427ab(_0x1eeb60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d33b5[0x1]={..._0x3d33b5[0x1],[_0x1eeb60([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14777f};},{[_0x1eeb60([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1eeb60([0x68,0x69,0x67,0x68])}),_0x4b1afc[_0x1eeb60([0x6f,0x6e])](_0x1eeb60([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3c30a9=>{_0x32242f(_0x3c30a9[_0x1eeb60([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1ffd26=!0x0,_0x1eafc0(_0x3c30a9[_0x1eeb60([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1eeb60([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1eeb60([0x6c,0x6f,0x77])}),_0x47a06d[_0x1eeb60([0x74,0x68,0x65,0x6e])](()=>{_0x1ffd26||_0x5427ab(_0x1eeb60([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x71cd3e(){return _0x4b1afc[_0x1eeb60([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1eeb60([0x76,0x69,0x65,0x77])][_0x1eeb60([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1eeb60([0x61,0x75,0x74,0x6f]);}function _0x74245d(){_0x4b1afc[_0x1eeb60([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1eeb60([0x76,0x69,0x65,0x77])][_0x1eeb60([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1eeb60([0x61,0x75,0x74,0x6f]);}}function _0x42d7b8(_0x4fe3a5){const _0x3975be=[new window[(_0x1eeb60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17089=>setTimeout(_0x17089,0x562df35a^_0x499117)),_0x47a06d[_0x1eeb60([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1eeb60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44cbfe=>{let _0x490ffd=0x0;_0x4b1afc[_0x1eeb60([0x6d,0x6f,0x64,0x65,0x6c])][_0x1eeb60([0x6f,0x6e])](_0x1eeb60([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b181a,_0x2c39e9)=>{_0x2c39e9[0x0][_0x1eeb60([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x490ffd++,_0x490ffd==(0x5624cc6e^_0x499117)&&(_0x44cbfe(),_0x1b181a[_0x1eeb60([0x6f,0x66,0x66])]());});}))];return window[_0x1eeb60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1eeb60([0x72,0x61,0x63,0x65])](_0x3975be)[_0x1eeb60([0x74,0x68,0x65,0x6e])](()=>_0x4fe3a5);}async function _0x1f4787(){await _0x47a06d,_0x4b1afc[_0x1eeb60([0x6d,0x6f,0x64,0x65,0x6c])][_0x1eeb60([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xaf7b8c,_0x4b1afc[_0x1eeb60([0x6d,0x6f,0x64,0x65,0x6c])][_0x1eeb60([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xaf7b8c,_0x4b1afc[_0x1eeb60([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1eeb60([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x346677(){return _0x3a2965(_0x1eeb60([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3e8e7c(_0x1eeb60([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1eeb60([0x73,0x74,0x61,0x74,0x65])]==_0x1eeb60([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4bb95d(){return _0x3a2965(_0x1eeb60([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 _0x579172(){return _0x3a2965(_0x1eeb60([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x490ef1(_0x29b296){const _0x3f2ac3=_0x580680();_0x4b1afc[_0x3f2ac3]=_0x1eeb60([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x29b296,_0x29b296!=_0x1eeb60([0x56,0x61,0x6c,0x69,0x64])&&_0x1f4787();}function _0x580680(){const _0x45989c=window[_0x1eeb60([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1eeb60([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1eeb60([0x6e,0x6f,0x77])]())[_0x1eeb60([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1eeb60([0x2e]),'');let _0x3ac68c=_0x1eeb60([0x76]);for(let _0x301f6b=0x0;_0x301f6b<_0x45989c[_0x1eeb60([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x301f6b+=0x2){let _0x35d7ae=window[_0x1eeb60([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45989c[_0x1eeb60([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x301f6b,_0x301f6b+0x2));_0x35d7ae>=_0x323101[_0x1eeb60([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35d7ae-=_0x323101[_0x1eeb60([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ac68c+=_0x323101[_0x35d7ae];}return _0x3ac68c;}function _0x5c64b2(){const _0x2fcf6a=_0x277dc7[_0x1eeb60([0x73,0x70,0x6c,0x69,0x74])](_0x1eeb60([0x2e]));if(0x3!=_0x2fcf6a[_0x1eeb60([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3079da(_0x2fcf6a[0x1]);function _0x3079da(_0x4d0015){const _0x573592=_0x1fd0ec(_0x4d0015);return _0x573592&&_0x5bf92b()?_0x573592:null;function _0x5bf92b(){const _0x4a01e2=_0x573592[_0x1eeb60([0x6a,0x74,0x69])],_0x12e5f8=window[_0x1eeb60([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a01e2[_0x1eeb60([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a01e2[_0x1eeb60([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6be165={..._0x573592,[_0x1eeb60([0x6a,0x74,0x69])]:_0x4a01e2[_0x1eeb60([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a01e2[_0x1eeb60([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6be165[_0x1eeb60([0x76,0x63])],_0x551e95(_0x6be165)==_0x12e5f8;}}}async function _0x53ff41(){let _0xebcb5d=!0x0;try{const _0x13bcf2=_0x277dc7[_0x1eeb60([0x73,0x70,0x6c,0x69,0x74])](_0x1eeb60([0x2e])),[_0x1f268f,_0x1d8fd0,_0x44605c]=_0x13bcf2;return _0x1b8fdb(_0x1f268f),await _0x315518(_0x1f268f,_0x1d8fd0,_0x44605c),_0xebcb5d;}catch(_0x46dfc1){return!0x1;}function _0x1b8fdb(_0x426f83){const _0x3feb60=_0x1fd0ec(_0x426f83);_0x3feb60&&_0x3feb60[_0x1eeb60([0x61,0x6c,0x67])]==_0x1eeb60([0x45,0x53,0x32,0x35,0x36])||(_0xebcb5d=!0x1);}async function _0x315518(_0x54d887,_0x23f972,_0x516bb5){const _0x3ec801=window[_0x1eeb60([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1eeb60([0x66,0x72,0x6f,0x6d])](_0x181749(_0x516bb5),_0x461b82=>_0x461b82[_0x1eeb60([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x983abb=new window[(_0x1eeb60([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1eeb60([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54d887+_0x1eeb60([0x2e])+_0x23f972),_0x78ff92=window[_0x1eeb60([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1eeb60([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x78ff92)return;const _0x12cf2c=await _0x78ff92[_0x1eeb60([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1eeb60([0x6a,0x77,0x6b]),_0x1f8c13,{[_0x1eeb60([0x6e,0x61,0x6d,0x65])]:_0x1eeb60([0x45,0x43,0x44,0x53,0x41]),[_0x1eeb60([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1eeb60([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1eeb60([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x78ff92[_0x1eeb60([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1eeb60([0x6e,0x61,0x6d,0x65])]:_0x1eeb60([0x45,0x43,0x44,0x53,0x41]),[_0x1eeb60([0x68,0x61,0x73,0x68])]:{[_0x1eeb60([0x6e,0x61,0x6d,0x65])]:_0x1eeb60([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x12cf2c,_0x3ec801,_0x983abb)||(_0xebcb5d=!0x1);}}function _0x1fd0ec(_0x221657){return _0x221657[_0x1eeb60([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1eeb60([0x65,0x79]))?JSON[_0x1eeb60([0x70,0x61,0x72,0x73,0x65])](_0x181749(_0x221657)):null;}function _0x181749(_0x23d4ea){return window[_0x1eeb60([0x61,0x74,0x6f,0x62])](_0x23d4ea[_0x1eeb60([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1eeb60([0x2b]))[_0x1eeb60([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1eeb60([0x2f])));}function _0x551e95(_0x3f7cfe){let _0x358d0d=0x1505;function _0x2d2dc2(_0x3ce042){for(let _0x1bb981=0x0;_0x1bb981<_0x3ce042[_0x1eeb60([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bb981++){const _0x4d02e6=_0x3ce042[_0x1eeb60([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1bb981);_0x358d0d=(_0x358d0d<<0x5)+_0x358d0d+_0x4d02e6,_0x358d0d&=_0x358d0d;}}function _0x1fb643(_0xa66fba){Array[_0x1eeb60([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xa66fba)?_0xa66fba[_0x1eeb60([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1fb643):_0xa66fba&&typeof _0xa66fba==_0x1eeb60([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1eeb60([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xa66fba)[_0x1eeb60([0x73,0x6f,0x72,0x74])]()[_0x1eeb60([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5bc661,_0x548057])=>{_0x2d2dc2(_0x5bc661),_0x1fb643(_0x548057);}):_0x2d2dc2(window[_0x1eeb60([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xa66fba));}return _0x1fb643(_0x3f7cfe),_0x358d0d>>>0x0;}function _0x5975f6(_0x5a207f){return _0x5a207f[_0x1eeb60([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1eeb60([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1eeb60([0x30]));}function _0x931a1e(_0x146766){return _0x146766[_0x1eeb60([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1eeb60([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1eeb60([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a2965(_0x22dac6){return _0x4b1afc[_0x1eeb60([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1eeb60([0x68,0x61,0x73])](_0x22dac6);}function _0x3e8e7c(_0x31cd6c){return _0x4b1afc[_0x1eeb60([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1eeb60([0x67,0x65,0x74])](_0x31cd6c);}function _0xaf7b8c(){}function _0x1eeb60(_0x806847){return _0x806847['map'](_0x41f2b8=>String['fromCharCode'](_0x41f2b8))['join']('');}_0x490ef1(await _0x1ebe20());}(this);}set['adapter'](_0x411475){if(this['_adapter'])throw new _0x48634c('track-changes-adapter-already-set',this);this['_adapter']=_0x411475;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1c65fc=!0x1,toJSON:_0x339610=!0x1}={}){const _0x489f4a=[];for(const _0x1838ea of this['_suggestions']['values']())_0x1c65fc&&!_0x1838ea['isInContent']||_0x489f4a['push'](_0x1838ea);return _0x339610?_0x489f4a['map'](_0x4f8f1f=>_0x4f8f1f['toJSON']()):_0x489f4a;}['getSuggestion'](_0x509771){const _0x30cd22=this['_suggestions']['get'](_0x509771);if(!_0x30cd22)throw new _0x48634c('track-changes-suggestion-not-found',this);return _0x30cd22;}['hasSuggestion'](_0x30896a){return this['_suggestions']['has'](_0x30896a);}['addSuggestionData'](_0x364f61){const {authorId:_0x169ba4,id:_0x2adbcc,originalSuggestionId:_0x2c488c,attributes:_0x273fc0}=_0x364f61,[_0x4e39b0,_0x1c9115]=_0x364f61['type']['split'](':'),_0xb36ccf=this['_suggestions']['get'](_0x2adbcc)||this['_createSuggestion'](_0x4e39b0,_0x1c9115,_0x2adbcc,_0x169ba4,_0x273fc0,_0x2c488c);if(this['_addThreadToSuggestion'](_0xb36ccf),this['_checkSuggestionCorrectness'](_0xb36ccf,_0x4e39b0,_0x1c9115||null,_0x169ba4),_0xb36ccf['createdAt']=_0x364f61['createdAt'],_0xb36ccf['_isDataLoaded']=!0x0,_0x273fc0&&_0x273fc0['@external']){const _0x5766d0=_0x273fc0['@external'],_0x4f4374=this['_getExternalAuthor'](_0x5766d0['authorName']);_0xb36ccf['authoredAt']=_0x5766d0['createdAt'],_0xb36ccf['author']=_0x4f4374,_0xb36ccf['isExternal']=!0x0;}else _0xb36ccf['authoredAt']=_0x364f61['createdAt'];switch(_0x364f61['data']&&(_0xb36ccf['data']=_0x364f61['data']),_0x364f61['attributes']&&(_0xb36ccf['attributes']=_0x364f61['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xb36ccf['_saved']=!0x0),this['_suggestionState']['get'](_0xb36ccf)){case'notReady':this['_suggestionState']['set'](_0xb36ccf,'dataReady');break;case'markerReady':_0xb36ccf['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xb36ccf])),this['_refreshSuggestionsChain'](new Set([_0xb36ccf])),this['_suggestionState']['set'](_0xb36ccf,'ready'),this['fire']('suggestionLoaded',_0xb36ccf)):this['_suggestionState']['set'](_0xb36ccf,'removed');}return _0xb36ccf;}['acceptSuggestion'](_0x365651){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x317f22 of _0x365651['getAllAdjacentSuggestions']())_0x317f22['accept']();});});}['discardSuggestion'](_0x52df77){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x14c069 of _0x52df77['getAllAdjacentSuggestions']())_0x14c069['discard']();});});}['enableCommand'](_0xf3347a,_0x2bf8f7){const _0x4cb5ca=this['editor']['commands']['get'](_0xf3347a);if(!_0x4cb5ca)throw new _0x48634c('track-changes-command-not-found',this,{'commandName':_0xf3347a});if(this['_enabledCommands']['has'](_0x4cb5ca))throw new _0x48634c('track-changes-enable-command-twice',this,{'commandName':_0xf3347a});this['_enabledCommands']['add'](_0x4cb5ca),_0x2bf8f7&&_0x4cb5ca['on']('execute',(_0x3e7878,_0x14efe2)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x14efe2['length']>0x0&&_0x14efe2[_0x14efe2['length']-0x1]&&_0x14efe2[_0x14efe2['length']-0x1]['forceDefaultExecution']?_0x14efe2['pop']():(_0x3e7878['return']=_0x2bf8f7((..._0x549065)=>_0x4cb5ca['execute'](..._0x549065,{'forceDefaultExecution':!0x0}),..._0x14efe2),_0x3e7878['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5f6766){let _0x476155,_0x3a8ebe;const _0x495c4a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x476155=_0x5f6766();}catch(_0x5be3bf){_0x3a8ebe=_0x5be3bf;}return _0x495c4a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3a8ebe&&_0x48634c['rethrowUnexpectedError'](_0x3a8ebe,this),_0x476155;}['markInsertion'](_0x1ffbf3,_0x548693=null,_0x756202={}){if(_0x1ffbf3['isCollapsed'])return null;const _0x4d8e47=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x756202['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x53e9b7,meta:_0x21be07}of this['_findSuggestions'](_0x1ffbf3,'insertion'))if(_0x21be07['isOwn']){if(!_0x21be07['isNextTo']){if(_0x21be07['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x53e9b7,_0x756202))continue;return _0x53e9b7;}if(Xt(_0x53e9b7,_0x756202))return _0x53e9b7;this['_breakSuggestionMarker'](_0x53e9b7,_0x1ffbf3['start'],_0x1ffbf3['end']);break;}if(_0x548693==_0x53e9b7['subType']&&Xt(_0x53e9b7,_0x756202)){const _0x2997cf=_0x53e9b7['getFirstRange']();return _0x2997cf['start']['isEqual'](_0x1ffbf3['end'])?this['_setSuggestionRange'](_0x53e9b7,this['_model']['createRange'](_0x1ffbf3['start'],_0x2997cf['end'])):this['_setSuggestionRange'](_0x53e9b7,this['_model']['createRange'](_0x2997cf['start'],_0x1ffbf3['end'])),_0x53e9b7;}}const _0x47425f=_0x57be53(),_0x24a1fe=_0x4d8e47['id'],_0x451f79=_0x548693?'insertion:'+_0x548693:'insertion',_0x3ac231=this['_setSuggestionData']({'id':_0x47425f,'type':_0x451f79,'createdAt':new Date(),'authorId':_0x24a1fe,'attributes':_0x756202});return this['_addSuggestionMarker'](_0x451f79,_0x47425f,_0x24a1fe,_0x1ffbf3),_0x3ac231;}['markMultiRangeInsertion'](_0x18c5a9,_0x126bd5='multi',_0x496f1e={}){const _0xdaa45e=this['editor']['plugins']['get']('Users')['me'],_0x17fa19=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x126bd5,'join');this['_trackingSessionId']&&(_0x496f1e['trackingSessionId']=this['_trackingSessionId']);for(const _0x59c45a of this['getSuggestions']())if(_0x59c45a['author']['id']==_0xdaa45e['id']&&'insertion'==_0x59c45a['type']&&_0x59c45a['subType']==_0x126bd5&&Xt(_0x59c45a,_0x496f1e)&&(_0x17fa19(_0x59c45a['getRanges'](),_0x18c5a9)||_0x17fa19(_0x18c5a9,_0x59c45a['getRanges']()))){for(const _0x5a47db of _0x18c5a9)_0x59c45a['addRange'](_0x5a47db);return _0x59c45a;}for(const {suggestion:_0x2909a5,meta:_0x2541d1}of this['_findSuggestions'](_0x18c5a9,'insertion')){if(!_0x2541d1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2541d1['containsRangeInObject'])continue;if(!Xt(_0x2909a5,_0x496f1e))continue;let _0x1e48c9=!0x0;for(const _0x267612 of _0x2909a5['getRanges']())for(const _0x309962 of _0x18c5a9)if(!_0x267612['containsRange'](_0x309962)){_0x1e48c9=!0x1;break;}if(_0x1e48c9)return _0x2909a5;}const _0x7a5125=_0x57be53(),_0x4cb774=_0xdaa45e['id'],_0x10722d='insertion:'+_0x126bd5,_0x47ecf6=this['_setSuggestionData']({'id':_0x7a5125,'type':_0x10722d,'createdAt':new Date(),'authorId':_0x4cb774,'attributes':_0x496f1e});for(const _0x1452fc of _0x18c5a9)this['_addSuggestionMarker'](_0x10722d,_0x7a5125,_0x4cb774,_0x1452fc,o['getMultiRangeId']());return _0x47ecf6;}['markInlineFormat'](_0x3b20f4,_0x3427a3,_0x339b0f=null,_0x58c85d={}){if(_0x339b0f=_0x339b0f||Kt(_0x3427a3),_0x3b20f4['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x58c85d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x28d5ed=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x339b0f,'accept');return this['forceDefaultExecution'](()=>_0x28d5ed([_0x3b20f4],_0x3427a3,_0x58c85d)),null;}const _0x2f7fd5=this['editor']['plugins']['get']('Users')['me'],_0x25b150=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x549d13,meta:_0x1388c3}of this['_findSuggestions'](_0x3b20f4,'insertion'))_0x1388c3['isOwn']&&!_0x1388c3['isInsideObject']&&_0x25b150['push'](..._0x549d13['getRanges']());}const _0x1626da=function(_0x311531,_0x28c47e){const _0x481ded=[];for(const _0x122050 of _0x28c47e){const _0x32bdc2=_0x311531['getIntersection'](_0x122050);_0x32bdc2&&_0x481ded['push'](_0x32bdc2);}return _0x481ded;}(_0x3b20f4,_0x25b150),_0x57da0e=function(_0x5f3a06,_0x4f18a0){const _0x2901b2=[_0x5f3a06];for(const _0x420589 of _0x4f18a0){let _0x29b855=0x0;for(;_0x29b855<_0x2901b2['length'];){const _0x54e8fb=_0x2901b2[_0x29b855]['getDifference'](_0x420589);_0x2901b2['splice'](_0x29b855,0x1,..._0x54e8fb),_0x29b855+=_0x54e8fb['length'];}}return _0x2901b2;}(_0x3b20f4,_0x25b150);_0x1626da['length']&&this['_model']['change'](()=>{for(const _0x43cde0 of _0x1626da){const _0x337104=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x339b0f,'accept');this['forceDefaultExecution'](()=>_0x337104([_0x43cde0],_0x3427a3,_0x58c85d));}});for(const _0x5a9d00 of _0x57da0e){let _0x2ac543=null,_0x30e74d=_0x5a9d00['start'],_0x4ce74d=_0x5a9d00['end'];for(const {suggestion:_0x462ff7,meta:_0x59e3cb}of this['_findSuggestions'](_0x5a9d00,'formatInline')){if(!_0x59e3cb['isOwn'])continue;if(_0x462ff7['subType']!=_0x339b0f)continue;if(!Xt(_0x462ff7,_0x58c85d))continue;const _0x40f721=_0x462ff7['getFirstRange']();if(_0x40f721['containsRange'](_0x5a9d00,!0x0))return null;_0x30e74d=_0x30e74d['isBefore'](_0x40f721['start'])?_0x30e74d:_0x40f721['start'],_0x4ce74d=_0x4ce74d['isAfter'](_0x40f721['end'])?_0x4ce74d:_0x40f721['end'],_0x2ac543?_0x40f721['start']['isBefore'](_0x2ac543['getFirstRange']()['start'])?(_0x2ac543['removeMarkers'](),_0x2ac543=_0x462ff7):_0x462ff7['removeMarkers']():_0x2ac543=_0x462ff7;}const _0x536b00=this['_model']['createRange'](_0x30e74d,_0x4ce74d);if(_0x2ac543)this['_setSuggestionRange'](_0x2ac543,_0x536b00);else{const _0x4d17f0=_0x57be53(),_0x4a88d3=_0x2f7fd5['id'];this['_setSuggestionData']({'id':_0x4d17f0,'type':'formatInline:'+_0x339b0f,'data':_0x3427a3,'createdAt':new Date(),'authorId':_0x4a88d3,'attributes':_0x58c85d}),this['_addSuggestionMarker']('formatInline:'+_0x339b0f,_0x4d17f0,_0x4a88d3,_0x536b00);}}return null;}['markBlockFormat'](_0x3ba193,_0x56b8a0,_0x356cff=[],_0x424c99=null,_0x2b6b7c={}){_0x56b8a0['formatGroupId']||(_0x56b8a0['formatGroupId']=_0x56b8a0['commandName']),_0x56b8a0['multipleBlocks']=_0x3ba193['is']('range'),_0x424c99=_0x424c99||Kt(_0x56b8a0);const _0x24bafe=_0x356cff['map'](_0x5888c0=>zt(_0x5888c0,this['_model'])),_0x2ce630=_0x3ba193['is']('range')?_0x3ba193:zt(_0x3ba193,this['_model']);if(this['_trackingSessionId']&&(_0x2b6b7c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x538724=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x424c99,'accept');return this['forceDefaultExecution'](()=>_0x538724([_0x2ce630],_0x56b8a0,_0x2b6b7c)),null;}_0x24bafe['push'](_0x2ce630);let _0x4de599=!0x0;for(const _0x21881a of _0x24bafe)if(!this['_rangeIsInLocalUserInsertion'](_0x21881a)){_0x4de599=!0x1;break;}if(_0x4de599&&'always'!==this['_trackFormatChanges']){const _0x18873c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x424c99,'accept');return this['forceDefaultExecution'](()=>_0x18873c([_0x2ce630],_0x56b8a0,_0x2b6b7c)),null;}let _0x5097be=null,_0x49ce36=_0x2ce630['start'],_0x31b9ad=_0x2ce630['end'];for(const {suggestion:_0xe05925,meta:_0x527c04}of this['_findSuggestions'](_0x2ce630,'formatBlock')){if(!_0x527c04['isOwn'])continue;if(_0x527c04['isNextTo']||_0x527c04['containsRangeInObject']||_0x527c04['isInsideObject'])continue;if(_0xe05925['data']['formatGroupId']!=_0x56b8a0['formatGroupId'])continue;if(!Xt(_0xe05925,_0x2b6b7c))continue;const _0x4f93cd=_0xe05925['getFirstRange']();if(_0xe05925['subType']==_0x424c99){if(_0x4f93cd['containsRange'](_0x2ce630,!0x0))return null;_0x49ce36=_0x49ce36['isBefore'](_0x4f93cd['start'])?_0x49ce36:_0x4f93cd['start'],_0x31b9ad=_0x31b9ad['isAfter'](_0x4f93cd['end'])?_0x31b9ad:_0x4f93cd['end'],_0x5097be?_0x4f93cd['start']['isBefore'](_0x5097be['getFirstRange']()['start'])?(_0x5097be['removeMarkers'](),_0x5097be=_0xe05925):_0xe05925['removeMarkers']():_0x5097be=_0xe05925;}else{const _0x30f386=_0x2ce630['getIntersection'](_0x4f93cd);this['_cutOutSuggestionMarker'](_0xe05925,_0x30f386);}}const _0x49b719=this['editor']['plugins']['get']('Users')['me'],_0x19a18b=_0x57be53(),_0x377e0e=_0x49b719['id'];if(_0x5097be)return this['_setSuggestionRange'](_0x5097be,this['_model']['createRange'](_0x49ce36,_0x31b9ad)),_0x5097be;{const _0x4f7013=this['_setSuggestionData']({'id':_0x19a18b,'type':'formatBlock:'+_0x424c99,'data':_0x56b8a0,'createdAt':new Date(),'authorId':_0x377e0e,'attributes':_0x2b6b7c});return this['_addSuggestionMarker']('formatBlock:'+_0x424c99,_0x19a18b,_0x377e0e,this['_model']['createRange'](_0x49ce36,_0x31b9ad)),_0x4f7013;}}['markMultiRangeBlockFormat'](_0xba220a,_0x344231,_0x4c8b6d=[],_0x3ad567=null,_0x22ddb7={}){_0x344231['formatGroupId']||(_0x344231['formatGroupId']=_0x344231['commandName']);const _0x1637a3=_0xba220a[0x0];_0x344231['multipleBlocks']=_0x1637a3['is']('range'),_0x3ad567=_0x3ad567||Kt(_0x344231);const _0x40ce64=_0x4c8b6d['map'](_0x10c293=>zt(_0x10c293,this['_model'])),_0x172e4b=_0x1637a3['is']('range')?_0xba220a:_0xba220a['map'](_0x49d269=>zt(_0x49d269,this['_model']));if(this['_trackingSessionId']&&(_0x22ddb7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c970f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ad567,'accept');return this['forceDefaultExecution'](()=>_0x2c970f(_0x172e4b,_0x344231,_0x22ddb7)),null;}_0x40ce64['push'](..._0x172e4b);let _0x31fe90=!0x0;for(const _0x3a8bf6 of _0x40ce64)if(!this['_rangeIsInLocalUserInsertion'](_0x3a8bf6)){_0x31fe90=!0x1;break;}if(_0x31fe90&&'always'!==this['_trackFormatChanges']){const _0x4ba2e5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ad567,'accept');return this['forceDefaultExecution'](()=>_0x4ba2e5(_0x172e4b,_0x344231,_0x22ddb7)),null;}const _0x35c97c=this['editor']['plugins']['get']('Users')['me'];for(const _0xcf4aae of this['getSuggestions']()){if(_0xcf4aae['author']['id']!=_0x35c97c['id'])continue;if('formatBlock'!=_0xcf4aae['type']||_0xcf4aae['data']['formatGroupId']!=_0x344231['formatGroupId'])continue;if(!Xt(_0xcf4aae,_0x22ddb7))continue;const _0x195ff4=_0xcf4aae['subType']==_0x3ad567;for(let _0x24f367=0x0;_0x24f367<_0x172e4b['length'];_0x24f367++){const _0x5f4eeb=_0x172e4b[_0x24f367];for(const _0xcc9016 of _0xcf4aae['getMarkers']()){const _0x282973=_0xcc9016['getRange']();if(_0x5f4eeb['isEqual'](_0x282973)){_0x195ff4?(_0x172e4b['splice'](_0x24f367,0x1),_0x24f367--):_0xcf4aae['removeMarker'](_0xcc9016['name']);break;}}}}if(0x0==_0x172e4b['length'])return null;const _0x1fe216=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ad567,'join');for(const _0x40b155 of this['getSuggestions']())if(_0x40b155['author']['id']==_0x35c97c['id']&&'formatBlock'==_0x40b155['type']&&_0x40b155['data']['formatGroupId']==_0x344231['formatGroupId']&&_0x40b155['subType']==_0x3ad567&&Xt(_0x40b155,_0x22ddb7)&&(_0x1fe216(_0x40b155['getRanges'](),_0x172e4b)||_0x1fe216(_0x172e4b,_0x40b155['getRanges']()))){for(const _0x4ab948 of _0x172e4b)_0x40b155['addRange'](_0x4ab948);return _0x40b155;}const _0x2df725=_0x57be53(),_0x30949f=_0x35c97c['id'],_0x2aaf4c='formatBlock:'+_0x3ad567,_0x55789a=this['_setSuggestionData']({'id':_0x2df725,'type':_0x2aaf4c,'data':_0x344231,'createdAt':new Date(),'authorId':_0x30949f,'attributes':_0x22ddb7});for(const _0x23a930 of _0x172e4b)this['_addSuggestionMarker'](_0x2aaf4c,_0x2df725,_0x30949f,_0x23a930,o['getMultiRangeId']());return _0x55789a;}['markDeletion'](_0x339c47,_0x44ecd0=null,_0x5ad8a7={}){if(_0x339c47['isCollapsed'])return null;const _0xfd4e54=this['editor']['plugins']['get']('Users')['me'],_0x2a7c80=new _0x5bdd0a(_0x339c47['start'],_0x339c47['end']);this['_trackingSessionId']&&(_0x5ad8a7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1f3556,meta:_0x18092f}of this['_findSuggestions'](_0x2a7c80,'insertion'))if(_0x18092f['isOwn']&&!_0x18092f['isNextTo']){if(_0x1f3556['isMultiRange']){const _0xf216df=_0x1f3556['getRanges']()['filter'](_0x344a62=>'$graveyard'!=_0x344a62['root']['rootName']);_0xf216df['every'](_0x45b851=>_0x2a7c80['containsRange'](_0x45b851,!0x0))&&_0x1f3556['discard']();if(_0xf216df['some'](_0x4e24e8=>_0x4e24e8['containsRange'](_0x2a7c80,!0x0))){const _0x1bead2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x44ecd0,'accept');return this['forceDefaultExecution'](()=>_0x1bead2([_0x2a7c80],null,_0x5ad8a7)),null;}}else{const _0x190bb9=_0x2a7c80['getIntersection'](_0x1f3556['getFirstRange']());null!==_0x190bb9&&_0x1f3556['_onDiscard']([_0x190bb9],null,_0x5ad8a7);}}if(_0x2a7c80['detach'](),_0x2a7c80['isCollapsed']||'$graveyard'==_0x2a7c80['root']['rootName'])return null;let _0x1e01c7=null,_0x591e2e=_0x2a7c80['start'],_0xa16187=_0x2a7c80['end'];const _0x18a77c=this['_findSuggestions'](_0x2a7c80,'deletion');for(const {suggestion:_0x666cb3,meta:_0x198989}of _0x18a77c){const _0x5e2a0f=this['_model']['createRange'](_0x591e2e,_0xa16187);if(_0x198989['isOwn']&&(this['_mergeNestedSuggestions']||!_0x198989['containsRangeInObject']&&!_0x198989['isInsideObject'])){if(_0x666cb3['isMultiRange']){if(!Xt(_0x666cb3,_0x5ad8a7))continue;let _0x3a4334=!0x0;for(const _0x3915c0 of _0x666cb3['getRanges']()){if(_0x3915c0['containsRange'](_0x5e2a0f,!0x0))return _0x666cb3;_0x5e2a0f['containsRange'](_0x3915c0)||(_0x3a4334=!0x1);}_0x3a4334&&_0x666cb3['discard']();}else{const _0x17f310=_0x666cb3['getFirstRange']();if(_0x17f310['containsRange'](_0x5e2a0f,!0x0))return _0x666cb3;if(!Xt(_0x666cb3,_0x5ad8a7)){_0x5e2a0f['containsRange'](_0x17f310)?_0x666cb3['removeMarkers']():_0x17f310['containsPosition'](_0x591e2e)?_0x591e2e=_0x17f310['end']:_0x17f310['containsPosition'](_0xa16187)&&(_0xa16187=_0x17f310['start']);continue;}_0x591e2e=_0x591e2e['isBefore'](_0x17f310['start'])?_0x591e2e:_0x17f310['start'],_0xa16187=_0xa16187['isAfter'](_0x17f310['end'])?_0xa16187:_0x17f310['end'],_0x5ad8a7=Object['assign']({},_0x666cb3['attributes']),_0x1e01c7?_0x17f310['start']['isBefore'](_0x1e01c7['getFirstRange']()['start'])?(_0x1e01c7['removeMarkers'](),_0x1e01c7=_0x666cb3):_0x666cb3['removeMarkers']():_0x1e01c7=_0x666cb3;}}}if(_0x1e01c7)return this['_setSuggestionRange'](_0x1e01c7,this['_model']['createRange'](_0x591e2e,_0xa16187)),_0x1e01c7;{const _0x4237e9=_0x57be53(),_0x3e693b=this['_model']['createRange'](_0x591e2e,_0xa16187),_0xf7b2b1=_0xfd4e54['id'],_0x921cf4=_0x44ecd0?'deletion:'+_0x44ecd0:'deletion',_0x2963e2=this['_setSuggestionData']({'id':_0x4237e9,'type':_0x921cf4,'createdAt':new Date(),'authorId':_0xf7b2b1,'attributes':_0x5ad8a7});return this['_addSuggestionMarker'](_0x921cf4,_0x4237e9,_0xf7b2b1,_0x3e693b),_0x2963e2;}}['markMultiRangeDeletion'](_0xf8d8ab,_0x4b61b6='multi',_0x30a103={}){const _0x46535d=this['editor']['plugins']['get']('Users')['me'],_0xe92da3=_0xf8d8ab['map'](_0x2ba6a2=>new _0x5bdd0a(_0x2ba6a2['start'],_0x2ba6a2['end'])),_0x37a953=new Set();this['_trackingSessionId']&&(_0x30a103['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3fa31d,meta:_0x130d1d}of this['_findSuggestions'](_0xe92da3,'insertion'))_0x130d1d['isOwn']&&!_0x130d1d['isNextTo']&&_0x37a953['add'](_0x3fa31d);for(const _0x1fff0b of _0x37a953)if(_0x1fff0b['isMultiRange']){const _0x2f3c7e=_0x1fff0b['getRanges']();(!_0x1fff0b['attributes']||!_0x1fff0b['attributes']['skipNestingCheck'])&&(_0x2f3c7e['every'](_0xef2a77=>_0xe92da3['some'](_0x4e7dc9=>_0x4e7dc9['containsRange'](_0xef2a77,!0x0)))&&_0x1fff0b['discard']());if(_0xe92da3['every'](_0x1e3c48=>_0x2f3c7e['some'](_0x1e8625=>_0x1e8625['containsRange'](_0x1e3c48,!0x0)))){const _0x4abb14=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b61b6,'accept');return this['forceDefaultExecution'](()=>_0x4abb14(_0xf8d8ab,null,_0x30a103)),null;}}else{const _0xee324f=_0x1fff0b['getFirstRange']();_0xe92da3['some'](_0x49a4b4=>_0x49a4b4['containsRange'](_0xee324f,!0x0))&&_0x1fff0b['discard']();if(_0xe92da3['every'](_0x5e78ac=>_0xee324f['containsRange'](_0x5e78ac,!0x0))){const _0x22cafc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b61b6,'accept');return this['forceDefaultExecution'](()=>_0x22cafc(_0xe92da3,null,_0x30a103)),null;}}const _0x25441a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b61b6,'join');let _0x1e951f=null;for(const _0x21cab7 of this['getSuggestions']())if(_0x21cab7['author']['id']==_0x46535d['id']&&_0x21cab7['isInContent']&&'deletion'==_0x21cab7['type']&&_0x21cab7['subType']==_0x4b61b6&&Xt(_0x21cab7,_0x30a103)&&(_0x25441a(_0x21cab7['getRanges'](),_0xe92da3)||_0x25441a(_0xe92da3,_0x21cab7['getRanges']()))){if(_0x1e951f){if(_0x21cab7['commentThread']&&_0x21cab7['commentThread']['length'])continue;for(const _0x4b4f70 of _0x21cab7['getRanges']())_0x1e951f['isIntersectingWithRange'](_0x4b4f70)||_0x1e951f['addRange'](_0x4b4f70);_0x21cab7['removeMarkers']();}else{_0x1e951f=_0x21cab7;for(const _0x312285 of _0xe92da3)_0x21cab7['isIntersectingWithRange'](_0x312285)||_0x21cab7['addRange'](_0x312285);}}if(_0x1e951f)return _0x1e951f;_0x37a953['clear']();for(const {suggestion:_0x17c683,meta:_0x53f9cc}of this['_findSuggestions'](_0xe92da3,'deletion'))_0x53f9cc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x53f9cc['containsRangeInObject']&&!_0x53f9cc['isInsideObject'])&&Xt(_0x17c683,_0x30a103)&&_0x37a953['add'](_0x17c683);for(const _0x3c16b2 of _0x37a953){const _0x19c2d9=_0x3c16b2['getRanges']();if(!_0x30a103||!_0x30a103['skipNestingCheck']){if(_0xe92da3['every'](_0x239d87=>_0x19c2d9['some'](_0x473df0=>_0x473df0['containsRange'](_0x239d87,!0x0))))return _0x3c16b2;}(!_0x3c16b2['attributes']||!_0x3c16b2['attributes']['skipNestingCheck'])&&(_0x19c2d9['every'](_0x482b89=>_0xe92da3['some'](_0x10a72b=>_0x10a72b['containsRange'](_0x482b89,!0x0)))&&_0x3c16b2['discard']());}const _0x1e13f4=_0x57be53(),_0x1b3b61=_0x46535d['id'],_0x35f61d='deletion:'+_0x4b61b6,_0x182fa6=this['_setSuggestionData']({'id':_0x1e13f4,'type':_0x35f61d,'createdAt':new Date(),'authorId':_0x1b3b61,'attributes':_0x30a103});for(const _0x377548 of _0xe92da3)_0x377548['detach'](),_0x377548['isCollapsed']||'$graveyard'==_0x377548['root']['rootName']||this['_addSuggestionMarker'](_0x35f61d,_0x1e13f4,_0x1b3b61,_0x377548,o['getMultiRangeId']());return _0x182fa6;}['markAttributeChange'](_0x520a2d,_0x1f199b,_0x51006f,_0x526ed5,_0x306947){if(_0x520a2d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x17db25=this['editor']['plugins']['get']('Users')['me']['id'],_0x4324aa=Array['from'](this['_suggestions']['values']())['filter'](_0x48a858=>'attribute'==_0x48a858['type']&&_0x48a858['data']['key']==_0x1f199b&&_0x48a858['isIntersectingWithRange'](_0x520a2d));if(this['_trackingSessionId']&&(_0x306947['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x36e5a6=this['_findSuggestions'](_0x520a2d,'insertion')['filter'](({meta:_0x14a825})=>_0x14a825['isOwn']&&!_0x14a825['isInsideObject']&&!_0x14a825['isNextTo'])['map'](({suggestion:_0x15c956})=>_0x15c956);_0x4324aa['unshift'](..._0x36e5a6);}const _0x4acbdf=new Map([[_0x520a2d,_0x51006f]]);for(const _0x59327d of _0x4324aa){const _0x236817='attribute'==_0x59327d['type']?_0x59327d['data']['oldValue']:void 0x0,_0x23083b=_0x59327d['getFirstRange'](),_0x1a3721=Array['from'](_0x4acbdf['keys']())['find'](_0x5bb537=>_0x5bb537['isIntersecting'](_0x23083b));if(!_0x1a3721)continue;const _0x1de073=_0x1a3721['getDifference'](_0x23083b);this['_isBlockAttribute'](_0x1f199b)&&'insertion'==_0x59327d['type']&&0x0!=_0x1de073['length']||(_0x4acbdf['delete'](_0x1a3721),_0x1de073['forEach'](_0x519c93=>{_0x4acbdf['set'](_0x519c93,_0x51006f);}),'insertion'!=_0x59327d['type']&&_0x236817!=_0x526ed5&&_0x4acbdf['set'](_0x1a3721['getIntersection'](_0x23083b),_0x236817));}const _0x44f2fc=[];for(const [_0x375fbf,_0x12970f]of _0x4acbdf){const _0x35fff8=_0x57be53(),_0x4ab344={'key':_0x1f199b,'oldValue':_0x12970f,'newValue':_0x526ed5};_0x1f199b['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':_0x1f199b});const _0x24db1c=('attribute:'+(_0x1f199b+'|'+Kt({'newValue':_0x526ed5})))['substring'](0x0,0x3c),_0x2c216f=this['_setSuggestionData']({'id':_0x35fff8,'type':_0x24db1c,'data':_0x4ab344,'createdAt':new Date(),'authorId':_0x17db25,'attributes':_0x306947});_0x44f2fc['push'](_0x2c216f),this['_addSuggestionMarker'](_0x24db1c,_0x35fff8,_0x17db25,_0x375fbf);}return _0x44f2fc;}['enableDefaultAttributesIntegration'](_0x5665a0){this['enableCommand'](_0x5665a0,(_0x5a8598,..._0x5bf10c)=>{this['_recordAttributeChanges'](()=>{_0x5a8598(..._0x5bf10c);});});}['registerBlockAttribute'](_0x5e0bf4){this['_blockAttributeKeys']['add'](_0x5e0bf4);}['registerInlineAttribute'](_0x50edd5){this['_inlineAttributeKeys']['add'](_0x50edd5);}['startTrackingSession'](_0x3c540a){return this['_trackingSessionId']=void 0x0!==_0x3c540a?_0x3c540a:_0x57be53(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2563c2){return'attribute'==_0x2563c2['type']?_0x2563c2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xa135a1,_0x4f73ad){const _0x19d97f=_0xa135a1['getFirstMarker']();this['_model']['change'](_0x261ed1=>{_0x261ed1['updateMarker'](_0x19d97f,{'range':_0x4f73ad});});}['_addThreadToSuggestion'](_0x3dcfc7){const _0x248d06=_0x3dcfc7['id'],_0x2097da=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x248d06)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2097da,'threadId':_0x248d06,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x48e362=this['_commentsRepository']['getCommentThread'](_0x248d06);_0x48e362['unbind']('isRemovable'),_0x48e362['isRemovable']=!0x1,_0x3dcfc7['commentThread']=_0x48e362;}['_checkSuggestionCorrectness'](_0x249c9d,_0x1db2e1,_0x35ef45,_0x266287){if(_0x249c9d['type']!=_0x1db2e1||_0x249c9d['subType']!=_0x35ef45||_0x249c9d['creator']['id']!=_0x266287)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x48634c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x28a043,_0x734445){const _0x9bf93f=_0x28a043['getFirstRange']();if(_0x734445['isEqual'](_0x9bf93f))_0x28a043['removeMarkers']();else{if(_0x9bf93f['containsRange'](_0x734445)){const _0x5c0832=this['_model']['createPositionAt'](_0x734445['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x28a043,this['_model']['createRange'](_0x9bf93f['start'],_0x5c0832));const _0xfaa514=_0x57be53(),_0x58c8f7=_0x28a043['creator']['id'],_0x99837f=_0x28a043['type']+':'+_0x28a043['subType'];this['_setSuggestionData']({'id':_0xfaa514,'type':_0x99837f,'createdAt':new Date(),'authorId':_0x58c8f7,'data':_0x28a043['data'],'attributes':_0x28a043['attributes']});const _0xcd4e1c=this['_model']['createPositionAt'](_0x734445['end']['parent'],'after'),_0x3a7dd7=this['_model']['createRange'](_0xcd4e1c,_0x9bf93f['end']);this['_addSuggestionMarker'](_0x99837f,_0xfaa514,_0x58c8f7,_0x3a7dd7);}else{if(_0x9bf93f['containsPosition'](_0x734445['start'])){const _0x8e1a40=this['_model']['createPositionAt'](_0x734445['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x28a043,this['_model']['createRange'](_0x9bf93f['start'],_0x8e1a40));}else{const _0x47dcba=this['_model']['createPositionAt'](_0x734445['end']['parent'],'after');this['_setSuggestionRange'](_0x28a043,this['_model']['createRange'](_0x47dcba,_0x9bf93f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x501243){for(const {suggestion:_0x47b1db,meta:_0x43b1c0}of this['_findSuggestions'](_0x501243,'insertion')){if(!_0x43b1c0['isOwn'])continue;const _0x21ff74=_0x47b1db['getRanges']();for(const _0x422a89 of _0x21ff74)if(!_0x501243['getDifference'](_0x422a89)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x32d757){const _0x1a8196=this['editor']['plugins']['get']('Users')['getUser'](_0x32d757);if(!_0x1a8196)throw new _0x48634c('track-changes-user-not-found',this);return _0x1a8196;}['_getExternalAuthor'](_0x44b62c){const _0x46f850=this['editor']['plugins']['get']('Users'),_0x21a26d=_0x23039f('external:'+_0x44b62c),_0x241a11=_0x46f850['getUser'](_0x21a26d);return _0x241a11||_0x46f850['addUser']({'id':_0x21a26d,'name':_0x44b62c});}['_createSuggestion'](_0x3d8785,_0x2969d6,_0x42d337,_0x45d841,_0x145cbf,_0x2f5ddf){const _0x54d715=this['_getAuthorFromId'](_0x45d841),_0x19a7f0=this['_suggestionFactory']['buildSuggestion'](_0x3d8785,_0x2969d6,_0x42d337,_0x54d715,_0x145cbf,_0x41fc8d=>{this['_updateSuggestionData'](_0x42d337,{'attributes':_0x41fc8d});const _0x554b04=this['getSuggestion'](_0x42d337);this['_joinWithAdjacentSuggestions'](new Set([_0x554b04])),this['_refreshSuggestionsChain'](new Set([_0x554b04]));},_0x2f5ddf);return this['listenTo'](_0x19a7f0,'accept',()=>{this['_updateSuggestionData'](_0x42d337,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x19a7f0,'discard',()=>{this['_updateSuggestionData'](_0x42d337,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x42d337,_0x19a7f0),this['_suggestionState']['set'](_0x19a7f0,'notReady'),_0x19a7f0;}['_splitMarkerName'](_0x72c447){const _0x1dc487=_0x72c447['split'](':');return{'group':_0x1dc487[0x0],'type':_0x1dc487[0x1],'subType':_0x1dc487['length']>=0x5?_0x1dc487[0x2]:null,'id':_0x1dc487['length']<0x5?_0x1dc487[0x2]:_0x1dc487[0x3],'authorId':_0x1dc487['length']<0x5?_0x1dc487[0x3]:_0x1dc487[0x4],'markerCount':0x6==_0x1dc487['length']?_0x1dc487[0x5]:null};}['_breakSuggestionMarker'](_0x2320d4,_0x295f45,_0x39264a){const _0x4f5e9c=_0x2320d4['getFirstRange'](),_0x369085=_0x4f5e9c['start'],_0x2c7100=_0x4f5e9c['end'];this['_setSuggestionRange'](_0x2320d4,this['_model']['createRange'](_0x369085,_0x295f45));const _0xbbf390=_0x57be53(),_0x1ba049=_0x2320d4['creator']['id'],_0x16624d=_0x2320d4['type']+(_0x2320d4['subType']?':'+_0x2320d4['subType']:'');this['_setSuggestionData']({'id':_0xbbf390,'type':_0x16624d,'createdAt':new Date(),'authorId':_0x1ba049,'originalSuggestionId':_0x2320d4['_originalSuggestionId']||_0x2320d4['id'],'attributes':_0x2320d4['attributes'],'data':_0x2320d4['data']});const _0x21c2d2=this['_getAttributeKey'](_0x2320d4);('formatBlock'==_0x2320d4['type']||_0x21c2d2&&this['_isBlockAttribute'](_0x21c2d2))&&(_0x39264a=this['_model']['createPositionBefore'](_0x39264a['parent'])),this['_addSuggestionMarker'](_0x16624d,_0xbbf390,_0x1ba049,this['_model']['createRange'](_0x39264a,_0x2c7100));}['_findSuggestions'](_0x3bb15e,_0xc31543=null){const _0x4b267e=[],_0x5cb57d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3bb15e)||(_0x3bb15e=[_0x3bb15e]);for(const _0x501401 of this['getSuggestions']()){if(!_0x501401['isInContent'])continue;if(_0xc31543&&_0x501401['type']!=_0xc31543)continue;let _0x17f395=!0x1;for(const _0xfad7a4 of _0x501401['getRanges']()){for(const _0xa5ddb9 of _0x3bb15e){const _0x5bc691=_0xa5ddb9['start']['isEqual'](_0xfad7a4['end'])||_0xa5ddb9['end']['isEqual'](_0xfad7a4['start']);if(_0x5bc691||_0xa5ddb9['getIntersection'](_0xfad7a4)){const _0x1305e7=_0xa5ddb9['containsRange'](_0xfad7a4)&&Gt(this['_model']['schema'],_0xfad7a4['start'],_0xa5ddb9),_0x2ea65e=_0xfad7a4['containsRange'](_0xa5ddb9)&&Gt(this['_model']['schema'],_0xa5ddb9['start'],_0xfad7a4);_0x4b267e['push']({'suggestion':_0x501401,'meta':{'isOwn':_0x5cb57d==_0x501401['author'],'isNextTo':_0x5bc691,'isInsideObject':_0x1305e7,'containsRangeInObject':_0x2ea65e}}),_0x17f395=!0x0;break;}}if(_0x17f395)break;}}return _0x4b267e;}['_addSuggestionMarker'](_0x10739c,_0x577e4a,_0x56d52f,_0x22d0a3,_0x1e5137){this['_model']['change'](_0x1ad804=>{let _0x3d43e2='suggestion:'+_0x10739c+':'+_0x577e4a+':'+_0x56d52f;_0x1e5137&&(_0x3d43e2=_0x3d43e2+':'+_0x1e5137),_0x1ad804['addMarker'](_0x3d43e2,{'range':_0x22d0a3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x8b115e){const _0x59326b=_0x8b115e['previous'],_0x27d6e0=_0x8b115e['next'];_0x8b115e['previous']=null,_0x8b115e['next']=null,null!=_0x59326b&&_0x59326b['next']==_0x8b115e&&(_0x59326b['next']=_0x27d6e0),null!=_0x27d6e0&&_0x27d6e0['previous']==_0x8b115e&&(_0x27d6e0['previous']=_0x59326b),'ready'==this['_suggestionState']['get'](_0x8b115e)&&(this['_suggestionState']['set'](_0x8b115e,'removed'),this['fire']('suggestionUnloaded',_0x8b115e,_0x59326b,_0x27d6e0));}['_setSuggestionData'](_0x55fbb5){const _0x2157d0=_0x55fbb5['id'],_0x63371=this['addSuggestionData'](_0x55fbb5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5bf2fb=this['editor']['plugins']['get']('PendingActions'),_0x43bc21=_0x63371['hasComments'],_0x3c67c2=_0x63371['subType']?_0x63371['type']+':'+_0x63371['subType']:_0x63371['type'],_0x339849=this['editor']['locale'],_0xf808be=_0x5bf2fb['add'](c(_0x339849,'PENDING_ACTION_SUGGESTION')),_0x29532b={'id':_0x2157d0,'type':_0x3c67c2,'hasComments':_0x43bc21,'data':_0x55fbb5['data']||null,'originalSuggestionId':_0x55fbb5['originalSuggestionId']||null,'attributes':_0x63371['attributes']};this['_adapter']['addSuggestion'](_0x29532b)['then'](_0x32ecd8=>{_0x63371['_saved']=!0x0,_0x5bf2fb['remove'](_0xf808be),_0x32ecd8&&_0x32ecd8['createdAt']&&(this['_suggestions']['get'](_0x2157d0)['createdAt']=_0x32ecd8['createdAt']);})['catch'](_0x472c1e=>{throw _0x173234('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x63371['discard']();}),_0x63371['stopListening'](),this['_suggestions']['delete'](_0x63371['id']),this['_suggestionState']['delete'](_0x63371),_0x472c1e;});}return _0x63371;}['_isBlockAttribute'](_0x1984e7){return this['_blockAttributeKeys']['has'](_0x1984e7);}['_updateSuggestionData'](_0x3fbbb7,_0x322ad9){const _0x3462d3=this['editor']['plugins']['get']('PendingActions'),_0x292b1e=this['getSuggestion'](_0x3fbbb7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x292b1e['_saved']){const _0x3a11b9=_0x3462d3['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3fbbb7,_0x322ad9)['then'](()=>{_0x3462d3['remove'](_0x3a11b9);});}else _0x292b1e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3fbbb7,_0x322ad9);});}}['_getSuggestionData'](_0x2e74d0){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x48634c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2e74d0);}['_handleNewSuggestionMarker'](_0x1bd2b9){const {id:_0x46bb14,type:_0xa6e83d,subType:_0x382ec5,authorId:_0xe5ab9a}=this['_splitMarkerName'](_0x1bd2b9),_0x356c5f=this['_suggestions']['get'](_0x46bb14)||this['_createSuggestion'](_0xa6e83d,_0x382ec5,_0x46bb14,_0xe5ab9a,{});switch(this['_checkSuggestionCorrectness'](_0x356c5f,_0xa6e83d,_0x382ec5,_0xe5ab9a),this['_suggestionState']['get'](_0x356c5f)){case'notReady':this['_getSuggestionData'](_0x46bb14)['then'](_0x186797=>{let _0x2b2587=Promise['resolve']();_0x186797['hasComments']&&(_0x2b2587=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x46bb14})),_0x2b2587['then'](()=>{this['addSuggestionData'](_0x186797)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x356c5f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x46bb14,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x356c5f,'ready'),this['fire']('suggestionLoaded',_0x356c5f);break;case'ready':this['fire']('suggestionChanged',_0x356c5f);}return _0x356c5f['addMarkerName'](_0x1bd2b9),_0x356c5f;}['_refreshSuggestionsChain'](_0x2a2087){const _0x563e7a=Array['from'](_0x2a2087),_0x2e301b=_0x563e7a['filter'](_0x22f1f8=>'attribute'==_0x22f1f8['type']);this['_refreshAttributeSuggestionsChain'](_0x2e301b);const _0x4bdf73=_0x563e7a['filter'](_0xea8e8b=>!_0xea8e8b['isMultiRange']&&'attribute'!=_0xea8e8b['type']),_0x3a3358=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3905d4=>!_0x3905d4['isMultiRange']&&'attribute'!=_0x3905d4['type']),_0x118c7f=_0x3a3358['filter'](_0x21b2ac=>!_0x2a2087['has'](_0x21b2ac)),_0x6f818b=new Map(_0x3a3358['map'](_0x3dc1c3=>[_0x3dc1c3,this['_suggestionFactory']['getSuggestionCallback'](_0x3dc1c3['type'],_0x3dc1c3['subType'],'chain')])),_0x3d3c11=new Map(_0x3a3358['map'](_0x1b0bb7=>[_0x1b0bb7,_0x1b0bb7['getFirstRange']()])),_0x70204b=new Set(),_0x37cac7=new Set();for(let _0x59dc72=0x0;_0x59dc72<_0x4bdf73['length'];_0x59dc72++)_0x3a4684(_0x4bdf73[_0x59dc72],_0x4bdf73,_0x59dc72+0x1);for(let _0x1e795c=0x0;_0x1e795c<_0x4bdf73['length'];_0x1e795c++)_0x3a4684(_0x4bdf73[_0x1e795c],_0x118c7f,0x0);const _0x3f03b6=new Set();for(let _0x3133e1=0x0;_0x3133e1<_0x4bdf73['length'];_0x3133e1++){const _0xe2e270=_0x4bdf73[_0x3133e1];!_0x37cac7['has'](_0xe2e270)&&_0xe2e270['previous']&&(_0x3f03b6['add'](_0xe2e270['previous']),_0xe2e270['previous']['next']===_0xe2e270&&(_0xe2e270['previous']['next']=null),_0xe2e270['previous']=null),!_0x70204b['has'](_0xe2e270)&&_0xe2e270['next']&&(_0x3f03b6['add'](_0xe2e270['next']),_0xe2e270['next']['previous']===_0xe2e270&&(_0xe2e270['next']['previous']=null),_0xe2e270['next']=null);}function _0x3a4684(_0x49e699,_0x56a068,_0x161879){for(let _0x44e421=_0x161879;_0x44e421<_0x56a068['length'];_0x44e421++){const _0x4f6b6e=_0x50c171(_0x49e699,_0x56a068[_0x44e421]);_0x4f6b6e&&(_0x4f6b6e[0x0]['next']=_0x4f6b6e[0x1],_0x4f6b6e[0x1]['previous']=_0x4f6b6e[0x0],_0x70204b['add'](_0x4f6b6e[0x0]),_0x37cac7['add'](_0x4f6b6e[0x1]));}}function _0x50c171(_0x11b5a8,_0x14c72f){if(_0x11b5a8['author']['id']!==_0x14c72f['author']['id'])return null;const _0x10b4a7=_0x6f818b['get'](_0x11b5a8)(_0x11b5a8,_0x14c72f,_0x3d3c11['get'](_0x11b5a8),_0x3d3c11['get'](_0x14c72f));if(!_0x10b4a7)return null;return _0x6f818b['get'](_0x14c72f)(_0x11b5a8,_0x14c72f,_0x3d3c11['get'](_0x11b5a8),_0x3d3c11['get'](_0x14c72f))?_0x10b4a7[0x1]['commentThread']&&_0x10b4a7[0x1]['commentThread']['length']?null:_0x10b4a7:null;}_0x3f03b6['size']&&this['_refreshSuggestionsChain'](_0x3f03b6);}['_refreshAttributeSuggestionsChain'](_0x26911b){if(0x0==_0x26911b['length'])return;const _0x2b0de8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b36cc=>'attribute'==_0x5b36cc['type']&&_0x5b36cc['_isDataLoaded']),_0x4cfdc7=[],_0x15c38b=new Map();for(const _0x289a49 of _0x2b0de8){const _0x4f3a34=_0x23039f(_0x289a49['attributes']);_0x15c38b['has'](_0x4f3a34)||(_0x15c38b['set'](_0x4f3a34,_0x4cfdc7['length']),_0x4cfdc7['push']([]));const _0x47b96c=_0x15c38b['get'](_0x4f3a34);_0x4cfdc7[_0x47b96c]['push'](_0x289a49);}!(function(){_0x4cfdc7['sort']((_0x374cb8,_0x50616c)=>{const _0x4a528a=_0x374cb8[0x0]['createdAt'],_0x185786=_0x50616c[0x0]['createdAt'];return _0x4a528a==_0x185786?_0x374cb8[0x0]['attributes']['groupId']<_0x50616c[0x0]['attributes']['groupId']?-0x1:0x1:_0x4a528a<_0x185786?-0x1:0x1;});for(const _0x35f467 of _0x4cfdc7)_0x35f467['sort']((_0x5a2ba3,_0xedf780)=>_0x5a2ba3['id']<_0xedf780['id']?-0x1:0x1);}());for(let _0x454811=0x0;_0x454811<_0x4cfdc7['length'];_0x454811++){if(0x0==_0x4cfdc7[_0x454811]['length'])continue;const _0x4f2ec1=[];for(let _0x587df1=_0x454811+0x1;_0x587df1<_0x4cfdc7['length'];_0x587df1++)0x0!=_0x4cfdc7[_0x587df1]['length']&&_0x215293(_0x4cfdc7[_0x454811],_0x4cfdc7[_0x587df1])&&_0x4f2ec1['push'](_0x587df1);for(const _0x2f0e11 of _0x4f2ec1)_0x4cfdc7[_0x454811]=_0x4cfdc7[_0x454811]['concat'](_0x4cfdc7[_0x2f0e11]),_0x4cfdc7[_0x2f0e11]=[];}for(const _0x45efae of _0x4cfdc7)for(let _0x577a01=0x0;_0x577a01<_0x45efae['length'];_0x577a01++){const _0x255a05=_0x45efae[_0x577a01+0x1]||null;_0x45efae[_0x577a01]['next']!==_0x255a05&&(_0x45efae[_0x577a01]['next']=_0x255a05);}for(const _0x293fb2 of _0x4cfdc7)for(let _0x2bb2f6=0x0;_0x2bb2f6<_0x293fb2['length'];_0x2bb2f6++){const _0x1f0de6=_0x293fb2[_0x2bb2f6-0x1]||null;_0x293fb2[_0x2bb2f6]['previous']!==_0x1f0de6&&(_0x293fb2[_0x2bb2f6]['previous']=_0x1f0de6);}function _0x215293(_0x3bce8,_0x18fb5c){if(_0x3bce8[0x0]['attributes']['groupId']!==_0x18fb5c[0x0]['attributes']['groupId']&&_0x3bce8[0x0]['author']!==_0x18fb5c[0x0]['author'])return!0x1;if(!function(_0x179b6f,_0x54a0cc){if(!_0x179b6f['hasComments']&&!_0x54a0cc['hasComments'])return!0x0;if(_0x179b6f['hasComments']&&_0x54a0cc['hasComments'])return!0x1;if(_0x179b6f['hasComments']&&_0x54a0cc['createdAt']<_0x179b6f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x54a0cc['hasComments']&&_0x179b6f['createdAt']<_0x54a0cc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3bce8[0x0],_0x18fb5c[0x0]))return!0x1;const _0xe5d545=Ft(_0x3bce8[0x0]['attributes'],['groupId','trackingSessionId']),_0x112b6b=Ft(_0x18fb5c[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x15af31(_0xe5d545,_0x112b6b))return!0x1;if(_0x3bce8[0x0]['attributes']['groupId']==_0x18fb5c[0x0]['attributes']['groupId'])return!0x0;if(_0x3bce8[0x0]['attributes']['trackingSessionId']!==_0x18fb5c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3bce8['every'](_0x320827=>_0x18fb5c['some'](_0x32c7c4=>_0x320827['getFirstRange']()['isEqual'](_0x32c7c4['getFirstRange']())))&&_0x18fb5c['every'](_0x2c1ff1=>_0x3bce8['some'](_0x48700d=>_0x2c1ff1['getFirstRange']()['isEqual'](_0x48700d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x222304){const _0x1f8a93=Array['from'](_0x222304),_0x24ca42=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3ea7a8=_0x24ca42['filter'](_0x395462=>!_0x222304['has'](_0x395462)),_0x157c61=new Map(_0x1f8a93['map'](_0x1c2ff5=>[_0x1c2ff5,this['_suggestionFactory']['getSuggestionCallback'](_0x1c2ff5['type'],_0x1c2ff5['subType'],'join')])),_0x924246=new Map(_0x24ca42['map'](_0x4ed906=>[_0x4ed906,_0x4ed906['getRanges']()]));for(let _0x38337f=0x0;_0x38337f<_0x1f8a93['length'];_0x38337f++){if(_0x2e2dc9(this,_0x1f8a93[_0x38337f],_0x1f8a93,_0x38337f+0x1))return!0x0;}for(let _0x578819=0x0;_0x578819<_0x1f8a93['length'];_0x578819++){if(_0x2e2dc9(this,_0x1f8a93[_0x578819],_0x3ea7a8,0x0))return!0x0;}return!0x1;function _0x2e2dc9(_0x4c63db,_0x3bb567,_0x405721,_0x466e7b){for(let _0x2f3b61=_0x466e7b;_0x2f3b61<_0x405721['length'];_0x2f3b61++){const _0x5c56ed=_0x405721[_0x2f3b61];if(_0x5c56ed['type']!==_0x3bb567['type']||_0x5c56ed['author']['id']!==_0x3bb567['author']['id']||_0x5c56ed['subType']!==_0x3bb567['subType'])continue;if(!Qt(_0x3bb567,_0x5c56ed))continue;if('attribute'==_0x3bb567['type']&&_0x3bb567['data']['oldValue']!=_0x5c56ed['data']['oldValue'])continue;if('attribute'==_0x3bb567['type']&&_0x4c63db['_isBlockAttribute'](_0x3bb567['data']['key']))continue;if('formatBlock'==_0x3bb567['type']){const _0x4cd42e=_0x4c63db['editor']['model'],_0x3bdbaa=_0x3bb567['getContainedElement']();if(_0x3bdbaa&&(_0x4cd42e['schema']['isObject'](_0x3bdbaa)||_0x4cd42e['schema']['isLimit'](_0x3bdbaa)))continue;}const _0x12712c=_0x157c61['get'](_0x3bb567),_0xae72a6=_0x924246['get'](_0x3bb567),_0x12b98c=_0x924246['get'](_0x5c56ed),_0x3dd05e=_0x3bb567['commentThread']&&_0x3bb567['commentThread']['length'],_0x315338=_0x5c56ed['commentThread']&&_0x5c56ed['commentThread']['length'];if(!_0x3dd05e&&_0x12712c(_0x12b98c,_0xae72a6))return _0x4c63db['_joinSuggestions'](_0x5c56ed,_0x3bb567),_0x924246['delete'](_0x3bb567),!0x0;if(!_0x315338&&_0x12712c(_0xae72a6,_0x12b98c))return _0x4c63db['_joinSuggestions'](_0x3bb567,_0x5c56ed),_0x924246['delete'](_0x5c56ed),!0x0;}return!0x1;}}['_joinSuggestions'](_0x6a2887,_0x180f3c){if(_0x6a2887['isMultiRange']){for(const _0x4c959f of _0x180f3c['getRanges']())_0x6a2887['addRange'](_0x4c959f);}else{const _0x23bc89=_0x180f3c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x6a2887,this['_model']['createRange'](_0x6a2887['getFirstRange']()['start'],_0x23bc89));}_0x180f3c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x177366,_0x1984d9,_0x2204a8){const _0x3059a8=_0x177366['startsWith']('format')||_0x177366['startsWith']('attribute')?'FORMATTING':_0x177366['toUpperCase']();return c(this['editor']['locale'],_0x1984d9+'_'+_0x3059a8+'_SUGGESTION_ANNOUNCEMENT',_0x2204a8);}['_initAriaMarkerChangeAnnouncements'](){const _0x2278b0=this['editor'];if(!_0x2278b0['ui'])return;const {ariaLiveAnnouncer:_0x334e89}=_0x2278b0['ui'];_0x453b05(this['_model'],({left:_0x12d0ed,entered:_0xecca54})=>{for(const _0x507e82 of _0x12d0ed){const {group:_0x53fc1d,type:_0x315fb2}=this['_splitMarkerName'](_0x507e82['name']);if('suggestion'===_0x53fc1d){_0x334e89['announce'](this['_getMarkerAnnouncementText'](_0x315fb2,'LEAVE'));break;}}for(const _0x39c5c0 of _0xecca54){const {group:_0x337195,type:_0x1a10eb}=this['_splitMarkerName'](_0x39c5c0['name']);if('suggestion'===_0x337195){_0x334e89['announce'](this['_getMarkerAnnouncementText'](_0x1a10eb,'ENTER',_0x33ed2a(_0x48862d)));break;}}});}['_processAttributeChanges'](_0x2586b0){if(this['_recordAttributeSuggestions'])return!0x1;const _0xc3c1e2=this['editor'],_0x4485b4=_0xc3c1e2['model']['document']['differ']['getChanges']();if(0x0==_0x4485b4['length'])return!0x1;const _0x2b6fe7=[],_0x7f38b0=_0x4485b4['filter'](_0x4cee2a=>'attribute'==_0x4cee2a['type']),_0x26687b=_0x4485b4['filter'](_0x162da5=>'insert'==_0x162da5['type']&&'$text'!=_0x162da5['name']),_0x3d4c00=_0x4485b4['filter'](_0x5a5bd3=>'remove'==_0x5a5bd3['type']&&'$text'!=_0x5a5bd3['name']);for(const _0x15231f of _0x7f38b0)_0x2b6fe7['push']({'key':_0x15231f['attributeKey'],'newValue':_0x15231f['attributeNewValue'],'oldValue':_0x15231f['attributeOldValue'],'range':qt(_0x15231f['range'],_0xc3c1e2['model'])});for(const _0x2c345b of _0x26687b){const _0x409bfd=_0x3d4c00['find'](_0x203473=>_0x203473['position']['isEqual'](_0x2c345b['position']));_0x409bfd&&_0x2b6fe7['push']({'key':u,'newValue':_0x2c345b['name'],'oldValue':_0x409bfd['name'],'range':_0xc3c1e2['model']['createRangeOn'](_0x2c345b['position']['nodeAfter'])});}return 0x0!=_0x2b6fe7['length']&&this['_reduceExistingSuggestions'](_0x2586b0,_0x2b6fe7);}['_processAttributeSuggestions'](_0xa895fd){let _0x27608b=!0x1;const _0x2b6307=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1cf3ad=>_0x1cf3ad['data']['newRange']&&_0x1cf3ad['name']['startsWith']('suggestion:attribute:'));for(const _0x566077 of _0x2b6307){const {subType:_0x4300ed,id:_0x3f96a0}=this['_splitMarkerName'](_0x566077['name']),_0x11c92d=_0x4300ed['split']('|')[0x0];for(const _0x2d00d1 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2d00d1['id']!=_0x3f96a0&&'attribute'==_0x2d00d1['type']&&_0x2d00d1['data']&&_0x2d00d1['data']['key']==_0x11c92d&&_0x2d00d1['getFirstRange']()['isIntersecting'](_0x566077['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2d00d1,_0x566077['data']['newRange'],_0xa895fd),_0x27608b=!0x0);}return _0x27608b;}['_recordAttributeChanges'](_0x49e090){this['_recordAttributeSuggestions']=!0x0,_0x49e090();}['_isRegisteredAttribute'](_0x2ba775){const _0x315afe=this['_isBlockAttribute'](_0x2ba775),_0x7d6b55=this['_inlineAttributeKeys']['has'](_0x2ba775);return _0x315afe||_0x7d6b55;}['_reduceExistingSuggestions'](_0x400420,_0x257575){if(0x0==_0x257575['length'])return!0x1;let _0x3e0c7e=!0x1;for(const _0x2f7a53 of _0x257575){const _0x28d78c=this['_findSuggestions'](_0x2f7a53['range'],'attribute')['filter'](_0x5d269e=>!_0x5d269e['meta']['isNextTo'])['map'](_0xe147c4=>_0xe147c4['suggestion']),_0x51d071=_0x23039f({'newValue':_0x2f7a53['newValue']});_0x28d78c['filter'](_0x353ce1=>{const [_0x385464,_0x8216b7]=_0x353ce1['subType']['split']('|');return _0x385464==_0x2f7a53['key']&&_0x8216b7!=_0x51d071;})['forEach'](_0x1ade21=>{this['_reduceSuggestionAttributeRange'](_0x1ade21,_0x2f7a53['range'],_0x400420),_0x3e0c7e=!0x0;});}return _0x3e0c7e;}['_reduceSuggestionAttributeRange'](_0x56161d,_0x10040a,_0x3f80f2){const _0x528f12=_0x56161d['getFirstRange']()['getDifference'](_0x10040a);0x0!==_0x528f12['length']?0x1!==_0x528f12['length']?this['_breakSuggestionMarker'](_0x56161d,_0x10040a['start'],_0x10040a['end']):this['_setSuggestionRange'](_0x56161d,_0x528f12[0x0]):_0x3f80f2['removeMarker'](_0x56161d['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x43076d){this['_editor']=_0x43076d,this['_model']=_0x43076d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4a6955,_0x58212f,_0x157573,_0x49c9eb,_0x3730e9,_0x20e2ef,_0x4bb411){return new o(this['_model'],{'type':_0x4a6955,'subType':_0x58212f,'id':_0x157573,'originalSuggestionId':_0x4bb411,'author':_0x49c9eb,'creator':_0x49c9eb,'attributes':_0x3730e9,'onAttributesChange':_0x20e2ef,'onAccept':(..._0x5ab19a)=>this['getSuggestionCallback'](_0x4a6955,_0x58212f,'accept')(..._0x5ab19a),'onDiscard':(..._0x50486a)=>this['getSuggestionCallback'](_0x4a6955,_0x58212f,'discard')(..._0x50486a)});}['registerCustomCallback'](_0x10aa54,_0xd4a712,_0x229eb6,_0x3a8b70){const _0xa054fd=_0x10aa54+':'+_0xd4a712+':'+_0x229eb6;this['_customCallbacks']['set'](_0xa054fd,_0x3a8b70);}['getSuggestionCallback'](_0x671859,_0x293d90,_0x184836){const _0x5e3b4a=_0x671859+':'+_0x293d90+':'+_0x184836;return this['_customCallbacks']['get'](_0x5e3b4a)||this['_defaultCallbacks']['get'](_0x671859+':'+_0x184836);}['_registerDefaultCallbacks'](){const _0x5d6c59=()=>!0x1,_0x181056=_0x1dd4e5=>{_0x1dd4e5['sort']((_0x4ca7c3,_0x304d3b)=>_0x4ca7c3['start']['isBefore'](_0x304d3b['start'])?0x1:-0x1),this['_model']['change'](_0x1461a2=>{for(const _0x418207 of _0x1dd4e5){let _0x168b00;_0x168b00=_0x418207['end']['isAtEnd']&&_0x418207['end']['parent']==_0x418207['start']['nodeAfter']?_0x1461a2['createSelection'](_0x418207['start']['nodeAfter'],'on'):_0x1461a2['createSelection'](_0x418207),this['_model']['deleteContent'](_0x168b00,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0xf7121b=(_0x4a0906,_0x432551)=>{_0x432551&&this['_model']['change'](_0x1964d7=>{const {commandName:_0x1cfec6,commandParams:_0x51b5d1=[]}=_0x432551,_0x191d4e=_0x4a0906['map'](_0x258837=>(Lt(_0x258837)&&(_0x258837=this['_model']['createRange'](_0x258837['end'])),_0x258837))['filter'](_0x11b136=>'$graveyard'!==_0x11b136['root']['rootName']);if(_0x191d4e['length']<0x1)return;const _0x3279be=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x12e121=>_0x5bdd0a['fromRange'](_0x12e121));_0x1964d7['setSelection'](_0x191d4e);for(const _0x1fbc10 of this['_editor']['commands']['commands']())_0x1fbc10['refresh']();_0x51b5d1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1cfec6,..._0x51b5d1);const _0x1f175f=_0x3279be['filter'](_0x48ae9e=>'$graveyard'!=_0x48ae9e['root']['rootName']);_0x1f175f['length']>0x0&&_0x1964d7['setSelection'](_0x1f175f);for(const _0x267251 of _0x3279be)_0x267251['detach']();});},_0x56fdbc=(_0x51b9ca,_0x2d1e79)=>0x1==_0x51b9ca['length']&&0x1==_0x2d1e79['length']&&_0x51b9ca[0x0]['end']['isEqual'](_0x2d1e79[0x0]['start']),_0x71c173=(_0x4d4e0e,_0x30ce22,_0x2d9b3,_0x559e7e)=>Wt(_0x4d4e0e,_0x30ce22,_0x2d9b3,_0x559e7e)?[_0x4d4e0e,_0x30ce22]:Wt(_0x30ce22,_0x4d4e0e,_0x559e7e,_0x2d9b3)?[_0x30ce22,_0x4d4e0e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5d6c59),this['_defaultCallbacks']['set']('insertion:discard',_0x181056),this['_defaultCallbacks']['set']('insertion:join',_0x56fdbc),this['_defaultCallbacks']['set']('insertion:chain',_0x71c173),this['_defaultCallbacks']['set']('deletion:accept',_0x181056),this['_defaultCallbacks']['set']('deletion:discard',_0x5d6c59),this['_defaultCallbacks']['set']('deletion:join',_0x56fdbc),this['_defaultCallbacks']['set']('deletion:chain',_0x71c173),this['_defaultCallbacks']['set']('formatInline:accept',_0xf7121b),this['_defaultCallbacks']['set']('formatInline:discard',_0x5d6c59),this['_defaultCallbacks']['set']('formatInline:join',_0x56fdbc),this['_defaultCallbacks']['set']('formatInline:chain',_0x5d6c59),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf7121b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5d6c59),this['_defaultCallbacks']['set']('formatBlock:join',_0x56fdbc),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5d6c59),this['_defaultCallbacks']['set']('attribute:accept',_0x5d6c59),this['_defaultCallbacks']['set']('attribute:discard',(_0x32467f,_0x4d0399)=>{if(!_0x4d0399)return;const _0x157027=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1af0ea=>{if(_0x4d0399['key']==u)for(const _0x4dbba6 of _0x32467f){const _0x269238=_0x4dbba6['start']['nodeAfter'],_0x2b185f=_0x4d0399['oldValue'];_0x1af0ea['rename'](_0x269238,_0x2b185f);}else{if(_0x157027['_isBlockAttribute'](_0x4d0399['key'])){for(const _0x378a29 of _0x32467f)void 0x0!==_0x4d0399['oldValue']?_0x1af0ea['setAttribute'](_0x4d0399['key'],_0x4d0399['oldValue'],_0x378a29['start']['nodeAfter']):_0x1af0ea['removeAttribute'](_0x4d0399['key'],_0x378a29['start']['nodeAfter']);}else{for(const _0x4433f5 of _0x32467f)_0x4d0399['oldValue']?_0x1af0ea['setAttribute'](_0x4d0399['key'],_0x4d0399['oldValue'],_0x4433f5):_0x1af0ea['removeAttribute'](_0x4d0399['key'],_0x4433f5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x56fdbc);}}function Gt(_0x5ae41e,_0x2c3643,_0x456f23){for(const _0x50c8b7 of _0x2c3643['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x50c8b7['root']==_0x50c8b7)return!0x1;if(!_0x456f23['containsItem'](_0x50c8b7))return!0x1;if(_0x5ae41e['isObject'](_0x50c8b7)||_0x5ae41e['isLimit'](_0x50c8b7))return!0x0;}return!0x1;}function Lt(_0x1f09e3){return _0x1f09e3['end']['parent']==_0x1f09e3['start']['nodeAfter']&&_0x1f09e3['end']['isAtStart'];}function Jt(_0x18fa61,_0x504d87,_0x27daf4,_0x5a54f7){const _0x460519=_0x544403=>!_0x544403['item']['is']('$textProxy')&&!_0x5a54f7['isObject'](_0x544403['item']),_0x5b5895=_0x18fa61['start']['getLastMatchingPosition'](_0x460519),_0x51b413=_0x18fa61['end']['getLastMatchingPosition'](_0x460519,{'direction':'backward'});return(!_0x18fa61['start']['isEqual'](_0x5b5895)||!_0x18fa61['end']['isEqual'](_0x51b413))&&(_0x5b5895['isBefore'](_0x51b413)?_0x27daf4['updateMarker'](_0x504d87,{'range':_0x27daf4['createRange'](_0x5b5895,_0x51b413)}):_0x27daf4['removeMarker'](_0x504d87),!0x0);}function Kt(_0xb4c14){return _0x23039f(_0xb4c14);}function Ht(_0x23be75){const _0x5bb76a=_0x23be75['start']['nodeAfter'];return _0x5bb76a&&_0x5bb76a['is']('element');}function qt(_0x417eb5,_0x2e71d0){return null==_0x417eb5['end']['nodeBefore']&&_0x417eb5['end']['parent']==_0x417eb5['start']['nodeAfter']?zt(_0x417eb5['start']['nodeAfter'],_0x2e71d0):_0x417eb5;}function zt(_0x22144e,_0x2f983d){const _0x21097d=_0x2f983d['schema']['isObject'](_0x22144e)||_0x2f983d['schema']['isSelectable'](_0x22144e);return _0x2f983d['createRange'](_0x2f983d['createPositionAt'](_0x22144e,'before'),_0x21097d?_0x2f983d['createPositionAfter'](_0x22144e):_0x2f983d['createPositionAt'](_0x22144e,'end'));}function Wt(_0x15f8d7,_0x305712,_0x5e7708,_0x41331d){return!!Qt(_0x15f8d7,_0x305712)&&_0x5e7708['end']['isEqual'](_0x41331d['start']);}function Qt(_0x276e03,_0x243fe9){if(!_0x276e03['_isDataLoaded']||!_0x243fe9['_isDataLoaded'])return!0x1;const _0x36878a=new Set(Object['keys'](_0x276e03['attributes'])),_0x1ff8b3=new Set(Object['keys'](_0x243fe9['attributes']));if(_0x36878a['delete']('groupId'),_0x1ff8b3['delete']('groupId'),0x0==_0x36878a['size']&&0x0==_0x1ff8b3['size'])return!0x0;if(_0x36878a['size']!=_0x1ff8b3['size'])return!0x1;const _0x20a400={..._0x276e03['attributes']},_0x5088e8={..._0x243fe9['attributes']};return delete _0x20a400['groupId'],delete _0x5088e8['groupId'],JSON['stringify'](_0x20a400)==JSON['stringify'](_0x5088e8);}function Xt(_0x337621,_0x295ef0){const _0x516edd=Yt(_0x337621['attributes']),_0x31238a=Yt(_0x295ef0);if(!_0x337621['_isDataLoaded'])return!0x1;for(const _0x2ca7d0 of Object['keys'](_0x31238a))if(!_0x15af31(_0x516edd[_0x2ca7d0],_0x31238a[_0x2ca7d0]))return!0x1;return!0x0;}function Yt(_0x4936b3){const _0x3e8baf=Object['assign']({},_0x4936b3);return delete _0x3e8baf['skipNestingCheck'],delete _0x3e8baf['tablePasteChainId'],_0x3e8baf;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x4d2e27(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x54ef86,_0x5ecdd1,_0xe553b4,_0x15180f){super(),this['model']=_0x5ecdd1,this['view']=_0xe553b4,this['commentThreadController']=_0x15180f,this['_editor']=_0x54ef86,this['_acceptCommand']=_0x54ef86['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x54ef86['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4d791d,_0x1d0aa3)=>_0x4d791d||_0x1d0aa3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x7cd7cb=>_0x7cd7cb&&this['_editor']['model']['canEditAt'](_0x5ecdd1['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x204689=>_0x204689&&this['_editor']['model']['canEditAt'](_0x5ecdd1['getRanges']())),this['_pendingAction']=null,_0xe553b4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xe553b4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xe553b4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xe553b4,'change:isDirty',()=>{_0xe553b4['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 _0x4f8130=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4f8130);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0xb906b1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2d3953,_0x55a2cd,_0xf3e31b,_0x3b4c7e){super(_0x2d3953),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x35aad3(_0x2d3953,c(_0x2d3953,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x55a2cd['authoredAt']),this['bind']('authoredAt')['to'](_0x55a2cd),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',_0x55a2cd,'authoredAt',this,'descriptionParts',(_0x4ed6c8,_0x33ac98,_0x3b61be)=>{const _0x5efdf0=_0x3b61be['map'](_0x2cde94=>ls(_0x2cde94['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4ed6c8-0x1,_0x55a2cd['author']['name'],_0x33ac98?_0x3b4c7e['formatDateTime'](_0x33ac98):'',new DOMParser()['parseFromString'](_0x5efdf0,'text/html')['body']['textContent']]);}),this['focusables']=new _0x361d15(),this['focusTracker']=new _0x1958ac(),this['keystrokes']=new _0xcb77f(),this['focusCycler']=new _0xe075f1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x303b39=>_0x303b39['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x55a2cd,this['_localUser']=_0xf3e31b,this['_config']=_0x3b4c7e,_0x3b4c7e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x33622a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4e2704}=this['_config'];this['commentsListView']=new _0x4e2704(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',_0x30f5a8=>_0x30f5a8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5089ac,_0x514f97)=>_0x5089ac||!!_0x514f97);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4966ab}=this['_config'],_0x2cade1=new _0x4966ab(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x318b07=_0x2cade1['commentInputView'];return _0x2cade1['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x318b07,'value',(_0x350c1d,_0x277805,_0x3ebb2d)=>!!_0x3ebb2d||_0x350c1d&&!_0x277805),_0x318b07['on']('submit',(_0x31639d,_0x30e785)=>{this['fire']('addComment',_0x30e785),_0x318b07['editor']['setData']('');}),_0x318b07['on']('cancel',()=>this['focus']()),_0x318b07['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2cade1;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5db0cb,_0x337876,_0x7c043,_0x81b6f5){super(_0x5db0cb,_0x337876,_0x7c043,_0x81b6f5),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x757ae4=>_0x757ae4&&_0x757ae4[0x0]?_0x757ae4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x69c652,_0x3c7eda)=>{let _0x2b6c3a='';for(const _0x591678 of _0x69c652)_0x2b6c3a+='<p>'+ls(_0x591678['content'],_0x591678['color'])+'</p>';return _0x3c7eda?_0x2b6c3a:ti(_0x2b6c3a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x81b6f5['SuggestionView'](_0x5db0cb,_0x337876,{'formatDateTime':_0x81b6f5['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 _0x194687=this['bindTemplate'],_0x25f9e6=[this['suggestionView']];return this['commentsListView']&&_0x25f9e6['push'](this['commentsListView']),this['commentThreadInputView']&&_0x25f9e6['push'](this['commentThreadInputView']),_0x25f9e6['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x194687['if']('isActive','ck-suggestion-wrapper--active'),_0x194687['to']('type',_0x81fc55=>'ck-suggestion-'+_0x81fc55),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':_0x194687['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x25f9e6};}['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 _0xb906b1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1c7e6c,_0x5eacd6,_0x2cc527){super(_0x1c7e6c),this['_model']=_0x5eacd6,this['_config']=_0x2cc527,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5eacd6),this['acceptButton']=this['_createButton'](c(_0x1c7e6c,'Accept\x20suggestion'),_0x4c68a1,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x1c7e6c,'Discard\x20suggestion'),_0x47cc26,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1c015e(_0x1c7e6c,_0x5eacd6['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x361d15([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1958ac(),this['keystrokes']=new _0xcb77f(),this['focusCycler']=new _0xe075f1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x163712=>_0x163712['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1c765e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1c765e['innerHTML']=this['description'],this['on']('change:description',(_0x2944d0,_0x513be7,_0x447121)=>{_0x1c765e['innerHTML']=_0x447121;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5841ae=this['bindTemplate'],_0x429a9b=[{'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':_0x5841ae['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5841ae['to']('authoredAt',_0x1251ee=>this['_config']['formatDateTime'](_0x1251ee))}]}]},{'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']&&_0x429a9b['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':_0x429a9b}]};}['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'](_0x577fbe,_0x40b9d2,_0x469694,_0x1582e6,_0x6ab905){const _0x94ed65=new _0x3098c3(this['locale']);return _0x94ed65['set']({'label':_0x577fbe,'icon':_0x40b9d2,'tooltip':!0x0,'tooltipPosition':_0x6ab905}),_0x94ed65['extendTemplate']({'attributes':{'class':_0x469694}}),_0x94ed65['on']('execute',()=>{this['fire'](_0x1582e6,this['_model']['id']);}),_0x94ed65;}['_setupKeyboardNavigation'](){const _0x48641=this['element'];this['keystrokes']['listenTo'](_0x48641);for(const _0x5eff7a of this['focusables'])this['focusTracker']['add'](_0x5eff7a['element']),this['keystrokes']['listenTo'](_0x5eff7a['element']);this['keystrokes']['set']('enter',(_0x30c0ac,_0x53a7d2)=>{_0x48641===_0x30c0ac['target']&&(this['focusCycler']['focusFirst'](),_0x53a7d2());}),this['keystrokes']['set']('esc',(_0x38a6a9,_0x3170ea)=>{_0x48641!==_0x38a6a9['target']&&(this['focus'](),_0x3170ea());});}}class d extends _0x413935{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3b0e33,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36ec9b){super(_0x36ec9b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1b0088=this['editor']['config'];_0x1b0088['define']('trackChanges.SuggestionThreadView',fe),_0x1b0088['define']('trackChanges.SuggestionView',we),_0x1b0088['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1b0088['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3f2a0d,_0x41401b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x11fb61,_0x983f74]of this['_handleControllerBuffer']){const _0x485d82=this['_suggestionToController']['has'](_0x11fb61);_0x485d82||_0x983f74?_0x485d82&&_0x983f74&&this['_destroyController'](_0x11fb61):this['_initializeController'](_0x11fb61);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3f2a0d,_0x41401b);}['init'](){const _0x44521a=this['editor'],_0x616319=_0x44521a['plugins']['get']('TrackChangesEditing'),_0x5645ca=_0x44521a['plugins']['get']('Annotations'),_0x2f5103=_0x44521a['plugins']['get']('EditorAnnotations'),_0x5ca00d=_0x44521a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2f5103['addSourceCollector'](()=>{const _0x31e016=[];for(const [_0x112cc9,_0x10333a]of Array['from'](this['_suggestionToController'])){const _0x36ba68=_0x112cc9['getAllAdjacentSuggestions'](),_0x161bea=[];for(const _0x282fb6 of _0x36ba68){if(!_0x282fb6['isInContent'])continue;if(_0x282fb6['isMultiRange']){_0x161bea['push'](..._0x282fb6['getRanges']());continue;}const _0x3b7331=_0x282fb6['getFirstRange']();if(_0x161bea['length']>0x0){const _0x508589=_0x161bea[0x0]['getJoined'](_0x3b7331);if(_0x508589){_0x161bea[0x0]=_0x508589;continue;}}_0x161bea['push'](_0x3b7331);}_0x31e016['push']([_0x10333a['view'],_0x161bea]);}return _0x31e016;}),this['listenTo'](_0x616319,'suggestionLoaded',(_0x3ebd3b,_0x5057bf)=>{this['listenTo'](_0x5057bf,'change:previous',(_0x32a8ef,_0x1c665c,_0x5902ff,_0x5c9877)=>{_0x5057bf['isInContent']&&(null==_0x5902ff?(this['_updateController'](_0x5c9877['head']),this['_handleSuggestionControllerDelayed'](_0x5057bf,!0x1)):(this['_updateController'](_0x5902ff['head']),null==_0x5c9877&&this['_handleSuggestionControllerDelayed'](_0x5057bf,!0x0)));}),null!==_0x5057bf['previous']?this['_updateController'](_0x5057bf['head']):this['_handleSuggestionControllerDelayed'](_0x5057bf,!0x1);}),this['listenTo'](_0x616319,'suggestionUnloaded',(_0xc58f30,_0x2ae82f,_0x3fdb27)=>{this['stopListening'](_0x2ae82f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2ae82f),this['_suggestionToController']['has'](_0x2ae82f)&&this['_destroyController'](_0x2ae82f),_0x3fdb27&&this['_updateController'](_0x3fdb27['head']);}),this['listenTo'](_0x616319,'suggestionChanged',(_0x28f81e,_0x5663c0)=>{this['_updateController'](_0x5663c0);}),this['listenTo'](_0x5645ca,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5ca00d,'addComment',(_0x52fa53,{threadId:_0x67d7e3,isFromAdapter:_0x4706ef})=>{if(_0x4706ef||!_0x616319['hasSuggestion'](_0x67d7e3))return;const _0x54f80c=_0x616319['getSuggestion'](_0x67d7e3);this['_suggestionToController']['get'](_0x54f80c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2a75f8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b6739;for(const _0x11a46c in _0x2a75f8){const _0x1d83c0=_0x11a46c,_0x51dc08=_0x2a75f8[_0x1d83c0];if('trackChangesLicenseKeyValid'==_0x51dc08||'trackChangesLicenseKeyInvalid'==_0x51dc08||'trackChangesLicenseKeyExpired'==_0x51dc08||'trackChangesLicenseKeyDomainLimit'==_0x51dc08||'trackChangesLicenseKeyNotAllowed'==_0x51dc08||'trackChangesLicenseKeyEvaluationLimit'==_0x51dc08||'trackChangesLicenseKeyTrialLimit'==_0x51dc08||'trackChangesLicenseKeyUsageLimit'==_0x51dc08){delete _0x2a75f8[_0x1d83c0],_0x4b6739=_0x51dc08,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4b6739&&_0x2a75f8['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4b6739&&_0x2a75f8['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4b6739&&_0x2a75f8['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4b6739&&_0x2a75f8['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4b6739&&_0x2a75f8['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4b6739&&_0x2a75f8['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4b6739&&_0x2a75f8['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x15f4ae=this['editor']['plugins']['get']('Annotations'),_0x1cf244=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1beb4a=Array['from'](_0x15f4ae['activeAnnotations'],_0xb78003=>_0xb78003['innerView'])['filter'](_0x5145b5=>this['_viewToController']['has'](_0x5145b5)),_0x49ac54=[];for(const _0x34ef19 of _0x1beb4a){const _0x3aec06=this['_viewToController']['get'](_0x34ef19)['model']['getAllAdjacentSuggestions']();_0x49ac54['push'](..._0x3aec06['reduce']((_0x40ba30,_0x553154)=>[..._0x40ba30,..._0x553154['getMarkerNames']()],[]));}_0x1cf244['activeMarkers']=_0x49ac54;}['_addUIComponentsToFactory'](){const _0x4f7526=this['editor'],_0x22b8de=_0x4f7526['locale'],_0x210d2f=c(_0x22b8de,'Track\x20changes'),_0x389acb=new _0x274610([{'type':'switchbutton','model':new _0x3c1030({'withText':!0x0,'isToggleable':!0x0,'label':_0x210d2f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3c1030({'withText':!0x0,'label':c(_0x22b8de,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3c1030({'withText':!0x0,'label':c(_0x22b8de,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3c1030({'withText':!0x0,'label':c(_0x22b8de,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3c1030({'withText':!0x0,'label':c(_0x22b8de,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4f7526['plugins']['has']('TrackChangesPreview')&&_0x389acb['addMany']([{'type':'separator'},{'type':'button','model':new _0x3c1030({'withText':!0x0,'label':c(_0x22b8de,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1f0943 of _0x389acb)if(ke(_0x1f0943)){const _0x13bde3=_0x4f7526['commands']['get'](_0x1f0943['model']['commandName']);_0x1f0943['model']['bind']('isOn','isEnabled')['to'](_0x13bde3,'value','isEnabled');}_0x4f7526['ui']['componentFactory']['add']('trackChanges',_0x38a226=>this['_createToolbarButton'](_0x38a226,_0x389acb,_0x210d2f)),_0x4f7526['ui']['componentFactory']['add']('menuBar:trackChanges',_0x34ff0c=>this['_createMenuBarMenu'](_0x34ff0c,_0x389acb,_0x210d2f));}['_createToolbarButton'](_0x2cefa1,_0x57c028,_0x2a8f21){const _0x51553a=_0x36fc93(_0x2cefa1,_0x4f1e51),_0x4f5c2c=this['editor']['commands']['get']('trackChanges');_0x51553a['buttonView']['set']({'tooltip':_0x2a8f21,'label':_0x2a8f21,'icon':_0x25f6d3}),_0x51553a['buttonView']['bind']('isOn')['to'](_0x4f5c2c,'value'),_0x51553a['buttonView']['on']('execute',()=>{_0x4f5c2c['execute'](),this['editor']['editing']['view']['focus']();}),_0x548e9d(_0x51553a,_0x57c028,{'role':'menu'});const _0x34e1a9=[];for(const _0xdc9e09 of _0x57c028)ke(_0xdc9e09)&&_0x34e1a9['push'](this['editor']['commands']['get'](_0xdc9e09['model']['commandName']));const _0x5b0cc5=_0x51553a['buttonView'];return _0x5b0cc5['actionView']['unbind']('isEnabled'),_0x5b0cc5['arrowView']['unbind']('isEnabled'),_0x5b0cc5['actionView']['bind']('isEnabled')['to'](_0x4f5c2c,'isEnabled'),_0x5b0cc5['arrowView']['bind']('isEnabled')['toMany'](_0x34e1a9,'isEnabled',(..._0x3b6181)=>_0x3b6181['some'](_0x4b48c6=>_0x4b48c6)),_0x51553a['on']('execute',_0x180ebd=>{this['editor']['execute'](_0x180ebd['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x51553a;}['_createMenuBarMenu'](_0x1eb606,_0x84a02e,_0xfb22ee){const _0x56a176=new _0x42abd9(_0x1eb606),_0x1b8cad=this['editor']['commands']['get']('trackChanges');_0x56a176['buttonView']['set']({'label':_0xfb22ee,'icon':_0x25f6d3});const _0x22a777=new _0x537b18(_0x1eb606);for(const _0x2a3bdd of _0x84a02e){if('separator'==_0x2a3bdd['type']){_0x22a777['items']['add'](new _0x5a2d27(_0x1eb606));continue;}const _0x3d2bb4=new _0xd57cf6(_0x1eb606,_0x56a176),_0x5ce882=new _0x73432a(_0x1eb606),_0x5c3727=_0x2a3bdd['model'];_0x5ce882['bind'](...Object['keys'](_0x5c3727))['to'](_0x5c3727),_0x5ce882['delegate']('execute')['to'](_0x56a176),_0x5ce882['on']('execute',()=>{this['editor']['execute'](_0x5c3727['commandName']),this['editor']['editing']['view']['focus']();}),_0x3d2bb4['children']['add'](_0x5ce882),_0x22a777['items']['add'](_0x3d2bb4);}return _0x56a176['bind']('isEnabled')['to'](_0x1b8cad,'isEnabled'),_0x56a176['panelView']['children']['add'](_0x22a777),_0x56a176;}['_initializeController'](_0x5665d9){const _0x156c2c=this['editor'],_0x5a70c4=_0x156c2c['config'],_0x5ab8dc=_0x156c2c['plugins']['get']('Annotations'),_0x2c8825=_0x156c2c['plugins']['get']('CommentsRepository'),_0x2653f5=_0x156c2c['plugins']['get']('EditorAnnotations'),_0x2e92a4=_0x156c2c['plugins']['get'](_0x3b0e33)['me'],_0x5b7579=_0x5a70c4['get']('trackChanges')['SuggestionThreadView'],_0x2ef504=_0x5a70c4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2cca9f,CommentThreadInputView:_0x5c20ea}=_0x156c2c['plugins']['get']('CommentsUI');let _0x269719,_0x2b6346,_0x4493d6;this['_annotationViews']['has'](_0x5665d9['id'])?(_0x2b6346=this['_annotationViews']['get'](_0x5665d9['id']),_0x269719=_0x2b6346['mainView']):(_0x269719=new _0x5b7579(_0x156c2c['locale'],_0x5665d9,_0x2e92a4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5a70c4['get']('comments.editorConfig'),'licenseKey':_0x5a70c4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5a70c4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5a70c4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5a70c4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x22cba5(_0x5a70c4['get']('locale'),_0x156c2c['locale']),'CommentView':_0x5a70c4['get']('comments')['CommentView'],'CommentsListView':_0x2cca9f,'CommentThreadInputView':_0x5c20ea,'SuggestionView':_0x2ef504}),_0x269719['suggestionView']['acceptButton']['on']('execute',()=>{_0x156c2c['editing']['view']['focus']();}),_0x269719['suggestionView']['discardButton']['on']('execute',()=>{_0x156c2c['editing']['view']['focus']();}),_0x2b6346=_0x5ab8dc['createAnnotationView'](this['editor']['locale'],_0x269719),_0x2b6346['bind']('isDirty')['to'](_0x269719,'isDirty'),_0x2b6346['bind']('length')['to'](_0x269719),_0x2b6346['bind']('type')['to'](_0x269719,'type',_0x3503e8=>'suggestion-'+_0x3503e8),_0x269719['on']('escape',()=>{_0x4493d6['fire']('escape');}),this['_annotationViews']['set'](_0x5665d9['id'],_0x2b6346));const _0x3fe927=_0x2c8825['createCommentThreadController'](_0x5665d9['commentThread'],_0x269719),_0x5dc50f=new pe(_0x156c2c,_0x5665d9,_0x269719,_0x3fe927),_0x408cac=_0x5665d9['getAllAdjacentSuggestions']()['filter'](_0x359ad5=>_0x359ad5['isInContent']);_0x269719['descriptionParts']=_0x156c2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x408cac),this['_suggestionToController']['set'](_0x5665d9,_0x5dc50f),this['_viewToController']['set'](_0x269719,_0x5dc50f),_0x4493d6=_0x5ab8dc['createAnnotation']({'view':_0x2b6346,'target':()=>{const _0x3ca898=[],_0x4bf9e2=_0x5665d9['getAllAdjacentSuggestions']()['filter'](_0x4e53a0=>_0x4e53a0['isInContent']);for(const _0x5b2fbf of _0x4bf9e2)_0x3ca898['push'](..._0x5b2fbf['getMarkers']());return _0xb9d8fa(_0x156c2c['editing'],_0x3ca898);},'type':()=>'suggestion-'+_0x5dc50f['view']['type']}),_0x2c8825['_bindAnnotationToEditors'](_0x269719,_0x4493d6),_0x5ab8dc['add'](_0x4493d6),_0x2653f5['registerAnnotation'](_0x4493d6);}['_destroyController'](_0x4ab060){const _0x371448=this['editor']['plugins']['get']('CommentsRepository'),_0x245793=this['editor']['plugins']['get']('Annotations'),_0x2ee784=this['_suggestionToController']['get'](_0x4ab060),_0x5e178e=_0x2ee784['view'],_0x47177d=_0x245793['getByInnerView'](_0x5e178e);_0x371448['_unbindEditors'](_0x5e178e),_0x47177d&&_0x245793['remove'](_0x47177d),this['_suggestionToController']['delete'](_0x4ab060),this['_viewToController']['delete'](_0x5e178e),_0x2ee784['destroy']();}['_updateController'](_0x3d9ec8){if(!_0x3d9ec8['isInContent']||!this['_suggestionToController']['has'](_0x3d9ec8))return;const _0x505a2c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47454d=this['_suggestionToController']['get'](_0x3d9ec8),_0x53d2a3=_0x3d9ec8['getAllAdjacentSuggestions']();_0x47454d['view']['descriptionParts']=_0x505a2c['descriptionFactory']['getDescriptions'](_0x53d2a3);}['destroy'](){for(const _0x56cd50 of this['_suggestionToController']['keys']())this['_destroyController'](_0x56cd50);for(const _0x5a6d0 of this['_annotationViews']['values']())_0x5a6d0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x36c095){return'model'in _0x36c095;}class k extends _0x413935{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5a2ce8){this['editor']['plugins']['get'](p)['adapter']=_0x5a2ce8;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1f55e8){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1f55e8);}['getSuggestions']({skipNotAttached:_0x56f8e6=!0x1,toJSON:_0x589947=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x56f8e6,'toJSON':_0x589947});}['getSuggestion'](_0x16aaf1){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x16aaf1);}}const w=['Pagination'];class T extends _0x413935{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2760a4=this['editor'];if(_0x2760a4['config']['define']('trackChangesData.editorCreator',_0xf3f88d=>{const _0x2df253=_0x2760a4['model']['document']['getRootNames']()['reduce']((_0x289c43,_0x36f89c)=>(_0x289c43[_0x36f89c]='',_0x289c43),{});return _0x2760a4['constructor']['create'](_0x2df253,_0xf3f88d);}),'function'!=typeof _0x2760a4['config']['get']('trackChangesData')['editorCreator'])throw new _0x48634c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x20c7ce){return N(this['editor'],!0x0,_0x20c7ce);}['getDataWithDiscardedSuggestions'](_0x2e8e84){return N(this['editor'],!0x1,_0x2e8e84);}}class D extends _0x413935{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b2464){function _0x582d96(_0x5b299c){return _0x5b299c['map'](_0x2498a7=>String['fromCharCode'](_0x2498a7))['join']('');}super(_0x4b2464),this['result']='end',_0x4b2464[_0x582d96([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x582d96([0x76,0x69,0x65,0x77])][_0x582d96([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x582d96([0x61,0x75,0x74,0x6f]),_0x4b2464[_0x582d96([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x582d96([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x582d96([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x582d96([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x582d96([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(_0x36fd36){return void 0x0!==_0x36fd36['getRootsAttributes'];}async function N(_0x8add8e,_0x2ab630,_0x3f2d33){const _0x456bc9=_0x4299d3(_0x8add8e,w);_0x456bc9['plugins']['push'](p,D),_0x456bc9['rootsAttributes']=Ge(_0x8add8e)?_0x8add8e['getRootsAttributes']():void 0x0;const _0x3b8ad3=document['createDocumentFragment'](),_0x40ed1d=_0x8add8e['config']['get']('trackChangesData')['editorCreator'],_0x108bae=await _0x40ed1d(_0x456bc9,()=>function(_0x5b0544){const _0x3cf856=document['createElement']('div');return _0x5b0544['appendChild'](_0x3cf856),_0x3cf856;}(_0x3b8ad3));!function(_0x2edda6,_0x8cdae6){const _0x23f91e=_0x2edda6['model']['document']['getRootNames']()['reduce']((_0x2add7b,_0x1a5047)=>(_0x2add7b[_0x1a5047]=_0x2edda6['data']['get']({'rootName':_0x1a5047}),_0x2add7b),{}),_0x5ae99a=_0x2edda6['plugins']['get']('Users')['users']['map'](_0x8bf326=>({'id':_0x8bf326['id'],'name':_0x8bf326['name']})),_0x41a3a3=_0x2edda6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x306b30=_0x2edda6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x183185=_0x8cdae6['plugins']['get']('Users'),_0x5a2e4a=_0x8cdae6['plugins']['get']('TrackChangesEditing'),_0x3a8cea=_0x8cdae6['plugins']['get']('CommentsRepository');for(const _0x180597 of _0x3a8cea['getCommentThreads']())_0x180597['remove']();for(const _0x103d7b of _0x5ae99a)_0x183185['getUser'](_0x103d7b['id'])||_0x183185['addUser'](_0x103d7b);_0x183185['me']||_0x183185['useAnonymousUser']();for(const _0x475f99 of _0x306b30)_0x3a8cea['addCommentThread'](_0x475f99);for(const _0x1b726c of _0x41a3a3)_0x5a2e4a['addSuggestionData'](_0x1b726c);_0x8cdae6['data']['set'](_0x23f91e);}(_0x8add8e,_0x108bae),_0x108bae['execute'](_0x2ab630?'acceptAllSuggestions':'discardAllSuggestions');const _0xa06469=Ge(_0x108bae)?_0x108bae['getFullData'](_0x3f2d33):_0x108bae['data']['get'](_0x3f2d33);return await _0x108bae['destroy'](),_0xa06469;}class Me extends _0xb906b1{['options'];constructor(_0x1759b6,_0x4c7669){super(_0x1759b6),this['options']=_0x4c7669,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'](_0x1f787d,_0x4c6ba6){if(!this['element'])return;const _0x41f2f3=[];for(const [_0x5d71ce,_0x2a7b49]of _0x1f787d){const _0x3b45c0=document['createElement']('div');_0x3b45c0['setAttribute']('data-ck-root-name',_0x5d71ce),_0x3b45c0['className']=_0x2a7b49['classes']+'\x20ck-track-changes-preview__root-container',_0x3b45c0['innerHTML']=_0x2a7b49['content'],_0x41f2f3['push'](_0x3b45c0);}_0x4c6ba6(this['element'],_0x41f2f3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x143623{constructor(_0x4bfa9b){super(_0x4bfa9b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2f12da=this['editor'],_0x22a966=_0x2f12da['locale'],_0x8780d8=_0x2f12da['plugins']['get']('Dialog');let _0x1f7df7;const _0x3f81b5=function(_0x2010f6){const _0x5299c6={};if('editables'in _0x2010f6['ui']['view']){for(const [_0xe43482,_0x1017e6]of Object['entries'](_0x2010f6['ui']['view']['editables']))_0x5299c6[_0xe43482]=_0x1017e6['element'];}else _0x5299c6[_0x2010f6['model']['document']['getRootNames']()[0x0]]=_0x2010f6['ui']['view']['editable']['element'];return _0x5299c6;}(_0x2f12da),_0x13b25f=function(_0x8f1b78){let _0x9a5adc=0x0;for(const _0x41ce3f of Object['values'](_0x8f1b78))_0x9a5adc=Math['max'](_0x9a5adc,_0x41ce3f['getBoundingClientRect']()['width']);let _0x40063a=0x0;for(const _0x3a1565 of Object['values'](_0x8f1b78))_0x40063a+=_0x3a1565['getBoundingClientRect']()['height'];const _0x5ccb63=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3b611c=Math['min'](_0x40063a,_0x5ccb63);return{'width':_0x9a5adc,'height':_0x3b611c};}(_0x3f81b5);_0x8780d8['show']({'id':'finalContentPreview','title':c(_0x22a966,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x22a966,{'dialogRects':_0x13b25f}),'onHide':()=>{_0x1f7df7['detachFromDom']();},'onShow':()=>{_0x2f12da['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xda2a35=>{const _0x38d15d=this['_standarizeRootsData'](_0xda2a35,_0x2f12da,_0x3f81b5);_0x8780d8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x38d15d,_0x2f12da['config']['get']('trackChanges.preview.renderFunction'));}),_0x1f7df7=new _0x33f938(_0x22a966,[_0x8780d8['view']]),_0x1f7df7['attachToDom'](),_0x1f7df7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2f12da['once']('destroy',()=>{_0x1f7df7['detachFromDom']();});const _0x1cf2ff=_0x8780d8['view']['headerView']['class'];_0x8780d8['view']['headerView']['class']=_0x1cf2ff?_0x1cf2ff+'\x20ck-reset_all':'ck-reset_all',_0x8780d8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x8780d8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x65a9a7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x267019=_0x65a9a7['previewMode'],_0x35fe39={};if('$labels'===_0x267019){for(const _0x93cca of _0x65a9a7['getMergeFieldsIds']())_0x35fe39[_0x93cca]=_0x65a9a7['getLabel'](_0x93cca)||_0x93cca;}else{const _0x46bd46='$defaultValues'===_0x267019?_0x65a9a7['getDefaultValues']():_0x65a9a7['getDataSetValues'](_0x267019,!0x0);for(const _0x28d26c of Object['entries'](_0x46bd46)){const [_0x23ea92,_0x3361e7]=_0x28d26c;_0x35fe39[_0x23ea92]=null!==_0x3361e7?_0x3361e7:_0x65a9a7['getLabel'](_0x23ea92)||_0x23ea92;}}return{'mergeFieldsData':_0x35fe39};}['_standarizeRootsData'](_0x11b67f,_0x4a7e83,_0x4278a5){let _0x4a9a6a;if('string'==typeof _0x11b67f){const _0x2fdcdf=_0x4a7e83['model']['document']['getRootNames']()[0x0];_0x4a9a6a={[_0x2fdcdf]:_0x11b67f};}else _0x4a9a6a=_0x11b67f;const _0x1070de=this['_fixMediaEmbeds'](_0x4a9a6a,_0x4a7e83),_0x3f51ec=function(_0x29c0d9,_0xee17b9){for(const [_0x1ae321,_0x1f582d]of _0x29c0d9)_0x1f582d['classes']=_0xee17b9[_0x1ae321]['classList']['value']['replace']('ck-focused','');return _0x29c0d9;}(this['_sortRoots'](_0x4a7e83)['reduce']((_0x28a3b5,_0x588427)=>(_0x28a3b5['push']([_0x588427,{'content':_0x1070de[_0x588427],'classes':''}]),_0x28a3b5),[]),_0x4278a5);return _0x3f51ec;}['_fixMediaEmbeds'](_0x25d21f,_0x7faa73){if(!_0x7faa73['plugins']['has']('MediaEmbedEditing'))return _0x25d21f;const _0x559e7c=_0x7faa73['plugins']['get']('MediaEmbedEditing');for(const [_0x1bc6de,_0x76ff2f]of Object['entries'](_0x25d21f)){const _0x42284b=document['createElement']('div');_0x42284b['innerHTML']=_0x76ff2f,(_0x42284b['querySelectorAll']('figure.media')['forEach'](_0x3731f8=>{const _0x6bb55=_0x3731f8['querySelector']('oembed');if(_0x6bb55){const _0x36044d=_0x6bb55['getAttribute']('url');if(_0x36044d){const _0x426310=_0x559e7c['registry']['getMediaViewElement'](new _0x11f5f0(_0x7faa73['editing']['view']['document']),_0x36044d,{'elementName':'','renderForEditingView':!0x0}),_0x591983=document['createElement']('div');_0x591983['classList']['add']('ck-media__wrapper'),_0x426310['render'](_0x591983,_0x7faa73['editing']['view']['domConverter']),_0x6bb55['replaceWith'](_0x591983);}}}),_0x25d21f[_0x1bc6de]=_0x42284b['innerHTML']);}return _0x25d21f;}['_sortRoots'](_0x36f206){if(!function(_0x271502){return void 0x0!==_0x271502['getRootsAttributes'];}(_0x36f206))return _0x36f206['model']['document']['getRootNames']();const _0x4cc0a8=[],_0x512e17=new Map();for(const _0xe84f7c of _0x36f206['model']['document']['getRootNames']()){const _0x13638b=_0x36f206['editing']['view']['getDomRoot'](_0xe84f7c)['getClientRects']()['item'](0x0);_0x4cc0a8['push'](_0xe84f7c),_0x512e17['set'](_0xe84f7c,_0x13638b);}return _0x4cc0a8['sort']((_0x3d070b,_0x3a7e78)=>{const _0x421ed2=_0x512e17['get'](_0x3d070b),_0x5b06f0=_0x512e17['get'](_0x3a7e78);return _0x421ed2['y']-_0x5b06f0['y']||_0x421ed2['x']-_0x5b06f0['x'];}),_0x4cc0a8;}}class te extends _0x413935{static get['requires'](){return[T,_0x107377];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1cf26a){super(_0x1cf26a),_0x1cf26a['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1cf26a['config']['define']('trackChanges.preview.renderFunction',(_0x931bae,_0x5f5a08)=>{for(const _0xa48395 of _0x5f5a08)_0x931bae['appendChild'](_0xa48395);});}}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 _0x17308a,Plugin as _0x412245,PendingActions as _0x935d02}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x470bfb,ObservableMixin as _0x534a7f,uid as _0x399ad3,priorities as _0x35e5d1,insertToPriorityArray as _0x5daca5,toArray as _0x3fd122,logWarning as _0x4d9eac,getEnvKeystrokeText as _0x5d2531,FocusTracker as _0x5a88ae,KeystrokeHandler as _0x597b63,Collection as _0x947eb2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x581061,IconCancel as _0x335018,IconTrackChanges as _0x2bc6f0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xadfe1e,View as _0x1dcc4c,ViewCollection as _0x11e774,FocusCycler as _0x261413,ViewModel as _0x213a5d,createDropdown as _0x396fb7,SplitButtonView as _0x5f1458,addListToDropdown as _0x3f70a3,MenuBarMenuView as _0x5af175,MenuBarMenuListView as _0x4c31fd,ListSeparatorView as _0xe82616,MenuBarMenuListItemView as _0x3b8030,MenuBarMenuListItemButtonView as _0xe35425,BodyCollection as _0x5bb527,Dialog as _0x64d40d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2744cc,hashObject as _0x4e5477,surroundingMarkersDetector as _0x309654,FOCUS_ANNOTATION_KEYSTROKE as _0x3e0281,AriaDescriptionView as _0x419526,setupThreadKeyboardNavigation as _0x483bf0,trimHtml as ti,UserView as _0xca6c6d,LateFocusButtonView as _0xf80b6d,getDateTimeFormatter as _0x1fb9ee,getAllMarkersDomElementsSorted as _0x5ec73f,sanitizeEditorConfig as _0x4c8da9}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5e33d8,LiveRange as _0x222fa7,LivePosition as _0x37190b,DowncastWriter as _0x1cf07f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4a0c93,toWidget as _0xc14fbb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x180f60,set as _0x20354a,isEqual as _0x4b5d00,unset as _0x3bcad4,omit as Ft}from'es-toolkit/compat';import{Delete as _0x4ee831,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4c080c}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x57e2f9}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x17308a{['_enabledCommands'];constructor(_0x105b01,_0x2802b4){super(_0x105b01),this['_enabledCommands']=_0x2802b4,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 _0x5d902e of this['editor']['commands']['commands']())_0x5d902e['affectsData']&&!this['_enabledCommands']['has'](_0x5d902e)&&_0x5d902e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x13c455 of this['editor']['commands']['commands']())_0x13c455['affectsData']&&!this['_enabledCommands']['has'](_0x13c455)&&_0x13c455['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x17308a{['_suggestions'];constructor(_0x45cd0a,_0x1eb2ae){super(_0x45cd0a),this['_suggestions']=_0x1eb2ae,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4f4d8f){const _0x554fe4=this['_suggestions']['get'](_0x4f4d8f);if(!_0x554fe4)throw new _0x470bfb('track-changes-accept-suggestion-not-found',this);const _0x1cf485=_0x554fe4['getRanges']();this['editor']['model']['canEditAt'](_0x1cf485)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x554fe4);}}class O extends _0x17308a{['_suggestions'];constructor(_0x442d3e,_0x4d2eb3){super(_0x442d3e),this['_suggestions']=_0x4d2eb3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4d7d7b){const _0x245280=this['_suggestions']['get'](_0x4d7d7b);if(!_0x245280)throw new _0x470bfb('track-changes-discard-suggestion-not-found',this);const _0x3d8f26=_0x245280['getRanges']();this['editor']['model']['canEditAt'](_0x3d8f26)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x245280);}}function ls(_0x4c957d,_0x1e3f50){let _0x80a34a='';return _0x80a34a+=_0x4c957d['split']('*')['map']((_0x790b6d,_0x565866)=>_0x565866%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x790b6d)+'</span>':nn(_0x790b6d))['join'](''),_0x1e3f50&&(_0x80a34a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1e3f50['value']+'\x22\x20title=\x22'+_0x1e3f50['title']+'\x22></span>'),_0x80a34a;}function nn(_0x53502f){const _0x49dec4=document['createElement']('span');return _0x49dec4['innerText']=_0x53502f,_0x49dec4['innerHTML'];}function ts(_0x5bbe44){return _0x5bbe44['sort']((_0x4ce339,_0xa6bdcf)=>'deletion'==_0x4ce339['type']&&'deletion'!=_0xa6bdcf['type']?-0x1:'deletion'!=_0x4ce339['type']&&'deletion'==_0xa6bdcf['type']?0x1:0x0);}function to(_0x3282ea,_0x2c26b3){let _0x4733e9,_0x206f68=0x0;const _0x578181=[],_0x4ed492=_0x2c26b3['schema'];for(;_0x206f68<_0x3282ea['length'];){const _0x50fa12=_0x3282ea[_0x206f68],_0x3df785=_0x3282ea[_0x206f68+0x1];_0x4733e9||(_0x4733e9=_0x2c26b3['createPositionBefore'](_0x50fa12)),on(_0x2c26b3,_0x50fa12,_0x3df785)||(_0x578181['push'](_0x2c26b3['createRange'](_0x4733e9,_0x4ed492['isObject'](_0x50fa12)?_0x2c26b3['createPositionAfter'](_0x50fa12):_0x2c26b3['createPositionAt'](_0x50fa12,'end'))),_0x4733e9=null),_0x206f68++;}return _0x578181;}function on(_0x387f6e,_0x85431d,_0x1bccfc){if(!_0x1bccfc)return!0x1;const _0x19349f=_0x387f6e['createPositionAfter'](_0x85431d),_0x2e29ad=_0x387f6e['createPositionBefore'](_0x1bccfc);return _0x19349f['isTouching'](_0x2e29ad);}function rs(_0x5962ef,_0xc8b743,_0x3562dd){for(;_0x3562dd['length'];){const _0x3e5d01=_0x3562dd['splice'](0x0,0x64);_0x5962ef['change'](()=>{for(const _0x108c5e of _0x3e5d01)_0x108c5e['isInContent']&&_0xc8b743['execute'](_0x108c5e['id']);});}}class R extends _0x17308a{['_command'];['_suggestions'];constructor(_0x5e3630,_0x37c4a3,_0x2a93f2){super(_0x5e3630),this['_command']=_0x37c4a3,this['_suggestions']=_0x2a93f2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x28cf08=Array['from'](this['_suggestions']['values']())['some'](_0x4addf7=>_0x4addf7['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x28cf08;}['execute'](){const _0x58fefb=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3a5fb1 of _0x58fefb){const _0x19b58b=_0x3a5fb1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x19b58b))return;}rs(this['editor']['model'],this['_command'],_0x58fefb);}}class E extends _0x17308a{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x30886e,_0x515d20,_0x29ddb5){super(_0x30886e),this['_command']=_0x515d20,this['_suggestions']=_0x29ddb5,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x150250=this['editor']['model']['document']['selection'],_0x18e8ef=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x55a8bb,_0x30b90f){const _0x42e742=Array['from'](_0x55a8bb['getRanges']()),_0xadcae7=new Set();for(const _0x4e1a3a of _0x30b90f)if(_0x4e1a3a['isInContent']){for(const _0x2896b1 of _0x42e742)for(const _0x25c703 of _0x4e1a3a['getRanges']())(_0x2896b1['isIntersecting'](_0x25c703)||_0x55a8bb['isCollapsed']&&!_0x4e1a3a['isMultiRange']&&_0x4e1a3a['next']&&_0x25c703['end']['isTouching'](_0x2896b1['start']))&&_0xadcae7['add'](_0x4e1a3a);}return _0xadcae7;}(_0x150250,_0x18e8ef),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x930ae4=ts(Array['from'](this['_selectedSuggestions']));for(const _0x40a258 of _0x930ae4){const _0x384156=_0x40a258['getRanges']();if(!this['editor']['model']['canEditAt'](_0x384156))return;}rs(this['editor']['model'],this['_command'],_0x930ae4);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x534a7f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x827da9,_0x49f790){super(),this['id']=_0x49f790['id'],this['type']=_0x49f790['type'],this['subType']=_0x49f790['subType']||null,this['author']=_0x49f790['author'],this['creator']=_0x49f790['creator']||_0x49f790['author'],this['isExternal']=Boolean(_0x49f790['attributes']&&_0x49f790['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x49f790['originalSuggestionId']||null,this['_model']=_0x827da9,this['_onAccept']=_0x49f790['onAccept'],this['_onDiscard']=_0x49f790['onDiscard'],this['_onAttributesChange']=_0x49f790['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x49f790['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 _0x2a9c3c=this;for(;_0x2a9c3c['previous'];)_0x2a9c3c=_0x2a9c3c['previous'];return _0x2a9c3c;}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'](_0x2a72c2){this['_markerNames']['add'](_0x2a72c2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5189c7=>this['_model']['markers']['get'](_0x5189c7))['filter'](_0x3ae9bf=>_0x3ae9bf);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4d47d3=>{for(const _0x4caf3d of this['getMarkers']())_0x4d47d3['removeMarker'](_0x4caf3d);}),this['_markerNames']['clear']();}['removeMarker'](_0x45b1df){this['_model']['change'](_0x5f5019=>{_0x5f5019['removeMarker'](_0x45b1df);}),this['_markerNames']['delete'](_0x45b1df);}['addRange'](_0x1521cd){const _0x2432c7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x2432c7),this['_model']['change'](_0x118bd6=>{_0x118bd6['addMarker'](_0x2432c7,{'range':_0x1521cd,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x373106){for(const _0x3d1371 of this['getRanges']())if(_0x3d1371['isIntersecting'](_0x373106))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x351861=>_0x351861['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1d30e2,_0x36a51b)=>[..._0x1d30e2,..._0x36a51b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2d014d=this['getRanges']();if(0x1!=_0x2d014d['length'])return null;const _0x3c07e0=_0x2d014d[0x0],_0x51ddf1=_0x3c07e0['start']['nodeAfter'],_0x43e381=_0x3c07e0['end']['nodeBefore'];return _0x51ddf1 instanceof _0x5e33d8?_0x51ddf1!=_0x43e381?null:_0x51ddf1: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 _0x16b5be=[];let _0x533b95=this['head'];for(;_0x533b95;)_0x16b5be['push'](_0x533b95),_0x533b95=_0x533b95['next'];return _0x16b5be;}['setAttribute'](_0x390062,_0x2ccb60){const _0x42e3ec=_0x180f60(this['attributes']);_0x20354a(_0x42e3ec,_0x390062,_0x2ccb60),_0x4b5d00(_0x42e3ec,this['attributes'])||(this['attributes']=_0x42e3ec,this['_onAttributesChange'](_0x42e3ec));}['removeAttribute'](_0x5c146f){const _0x13fefb=_0x180f60(this['attributes']);_0x3bcad4(_0x13fefb,_0x5c146f),_0x4b5d00(_0x13fefb,this['attributes'])||(this['attributes']=_0x13fefb,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 _0x399ad3()['substr'](0x1,0x5);}}function c(_0x15a761,_0x584bd7,_0x3774bc){const _0x423300=_0x15a761['t'],t=_0x15a761['t'];switch(_0x584bd7){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',_0x3774bc);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3774bc);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3774bc);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3774bc);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3774bc);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',_0x3774bc);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3774bc);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',_0x3774bc);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3774bc);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3774bc);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3774bc);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3774bc);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3774bc);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3774bc);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3774bc);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3774bc);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3774bc);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3774bc);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3774bc);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3774bc);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3774bc);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3774bc);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3774bc);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3774bc);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3774bc);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'},_0x3774bc);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3774bc);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3774bc);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3774bc);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3774bc);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3774bc);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3774bc);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3774bc);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'},_0x3774bc);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3774bc);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3774bc);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3774bc);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3774bc);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'},_0x3774bc);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3774bc);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'},_0x3774bc);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'},_0x3774bc);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3774bc);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'},_0x3774bc);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3774bc);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'},_0x3774bc);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3774bc);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3774bc);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'},_0x3774bc);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3774bc);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 _0x423300({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3774bc);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x423300({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3774bc);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3774bc);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'},_0x3774bc);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'},_0x3774bc);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'},_0x3774bc);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x584bd7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4d7ce8,_0x188130){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4d7ce8,this['_locale']=_0x188130;}['getDescriptions'](_0xb00a1a){const _0x480192=[],_0x14799c=new Set(),_0x6624ff=new Set();for(let _0x6b2158=0x0;_0x6b2158<_0xb00a1a['length'];_0x6b2158++){const _0x3daabc=_0xb00a1a[_0x6b2158];if(!_0x3daabc['isInContent'])continue;const _0x52601a=this['_handleCustomCallbackDescription'](_0x3daabc);if(_0x52601a){if(null!=_0x3daabc['subType']){if(_0x14799c['has'](_0x3daabc['subType']))continue;_0x14799c['add'](_0x3daabc['subType']);}_0x480192['push'](_0x52601a);}else{if('attribute'!=_0x3daabc['type'])'insertion'!=_0x3daabc['type']&&'deletion'!=_0x3daabc['type']||this['_handleInsertRemoveSuggestionDescription'](_0x480192,_0x3daabc,_0xb00a1a[_0x6b2158+0x1]);else{const _0x5f147b=_0x3daabc['data']['key'];if(_0x6624ff['has'](_0x5f147b))continue;_0x6624ff['add'](_0x3daabc['data']['key']),_0x5f147b==u?this['_handleRenameSuggestionDescription'](_0x480192,_0x3daabc):this['_handleAttributeSuggestionDescription'](_0x480192,_0x3daabc);}}}return this['_resolveDescriptionItems'](_0x480192);}['registerDescriptionCallback'](_0x459065){this['_customCallbacks']['push'](_0x459065);}['registerElementLabel'](_0x5cf430,_0x5babfa,_0x191f3d=_0x35e5d1['normal']){'function'==typeof _0x5cf430?_0x5daca5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5cf430,'label':_0x5babfa,'priority':_0x191f3d}):this['_itemLabels']['set'](_0x5cf430,_0x5babfa);}['registerAttributeLabel'](_0x33cad3,_0x4750f3){this['_attributeLabels']['set'](_0x33cad3,_0x4750f3);}['getItemLabel'](_0xf536dd,_0xd71e94=0x1){let _0x5c5061;for(const _0x3e1322 of this['_itemLabelsCallbacks'])if(_0x3e1322['matchingCallback'](_0xf536dd)){_0x5c5061=_0x3e1322['label'];break;}return _0x5c5061||(_0x5c5061=this['_itemLabels']['get'](_0xf536dd['name'])),_0x5c5061?_0x5c5061(_0xd71e94):0x1!==_0xd71e94?_0xd71e94+'\x20'+_0xf536dd['name']+'s':''+_0xf536dd['name'];}['_addDescriptionItems'](_0x257157,_0x1a1f14){const _0x57dcee=_0x1a1f14['getFirstRange']()['getWalker'](),_0x3ab7f7='insertion'==_0x1a1f14['type']?'add':'remove';for(const _0x234654 of _0x57dcee){const _0x4607dc=_0x234654['item'],_0x15657f=_0x257157[_0x257157['length']-0x1];if(_0x4607dc['is']('$textProxy'))_0x15657f&&_0x15657f['type']['indexOf']('Container')>-0x1&&_0x257157['pop'](),_0x15657f&&'text'==_0x15657f['type']?_0x15657f[_0x3ab7f7]+=_0x4607dc['data']:_0x257157['push']({'type':'text','add':'add'==_0x3ab7f7?_0x4607dc['data']:'','remove':'remove'==_0x3ab7f7?_0x4607dc['data']:''});else{if(this['_schema']['isObject'](_0x4607dc)){const _0x29237a=_0x4607dc;if(_0x15657f&&_0x15657f['type']['indexOf']('Container')>-0x1&&_0x257157['pop'](),'elementEnd'==_0x234654['type'])continue;_0x15657f&&_0x15657f['type']==_0x3ab7f7+'Object'&&_0x15657f['element']['name']==_0x29237a['name']?_0x15657f['quantity']++:_0x257157['push']({'type':_0x3ab7f7+'Object','element':_0x29237a,'quantity':0x1}),_0x57dcee['skip'](_0x17d3c1=>!('elementEnd'==_0x17d3c1['type']&&_0x17d3c1['item']==_0x4607dc));}else{if(this['_schema']['checkChild'](_0x4607dc,'$text')||_0x4607dc['is']('element','softBreak')){const _0x4f4967=_0x4607dc;if('add'==_0x3ab7f7&&'elementStart'==_0x234654['type']||'remove'==_0x3ab7f7&&'elementEnd'==_0x234654['type'])continue;if(_0x15657f&&-0x1==_0x15657f['type']['indexOf']('Container')){'text'==_0x15657f['type']&&(_0x15657f[_0x3ab7f7]+='\x0a');continue;}let _0xd711e2;if(_0xd711e2='add'==_0x3ab7f7?_0x4f4967['nextSibling']&&!this['_schema']['isObject'](_0x4f4967['nextSibling'])?_0x4f4967['nextSibling']:null:_0x4f4967['previousSibling']&&!this['_schema']['isObject'](_0x4f4967['previousSibling'])?_0x4f4967['previousSibling']:null,_0x4f4967['isEmpty']||_0xd711e2&&_0xd711e2['isEmpty']){const _0x549a9b=_0xd711e2&&_0xd711e2['isEmpty']?_0xd711e2:_0x4f4967;_0x15657f&&_0x15657f['type']==_0x3ab7f7+'EmptyContainer'&&_0x15657f['element']['name']==_0x549a9b['name']?_0x15657f['quantity']++:_0x257157['push']({'type':_0x3ab7f7+'EmptyContainer','element':_0x549a9b,'quantity':0x1});}else _0x257157['push']({'type':_0x3ab7f7+'Container','element':_0x4f4967});}}}}}['_resolveDescriptionItems'](_0x2639c6){const _0x5421ca=this['_locale'],_0x252ae8=[],_0x3cc4a0=[],_0x39af78=[];for(const _0xf7bd30 of _0x2639c6)switch(_0xf7bd30['type']){case'text':if(_0xf7bd30['add']=_0xf7bd30['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xf7bd30['remove']=_0xf7bd30['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xf7bd30['add']&&''!=_0xf7bd30['remove']){_0x252ae8['push']({'type':'replace','content':c(_0x5421ca,'REPLACE_TEXT',['\x22'+_0xf7bd30['remove']+'\x22','\x22'+_0xf7bd30['add']+'\x22'])});continue;}if(null!=_0xf7bd30['add']['match'](/^ +$/)){_0x252ae8['push']({'type':'insertion','content':c(_0x5421ca,'*Insert:*\x20%0',c(_0x5421ca,'ELEMENT_SPACE',_0xf7bd30['add']['length']))});continue;}if(null!=_0xf7bd30['remove']['match'](/^ +$/)){_0x252ae8['push']({'type':'deletion','content':c(_0x5421ca,'*Remove:*\x20%0',c(_0x5421ca,'ELEMENT_SPACE',_0xf7bd30['remove']['length']))});continue;}if(''!=_0xf7bd30['add']){_0x252ae8['push']({'type':'insertion','content':c(_0x5421ca,'*Insert:*\x20%0','\x22'+_0xf7bd30['add']+'\x22')});continue;}_0x252ae8['push']({'type':'deletion','content':c(_0x5421ca,'*Remove:*\x20%0','\x22'+_0xf7bd30['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x252ae8['push']({'type':'insertion','content':c(_0x5421ca,'*Insert:*\x20%0',this['getItemLabel'](_0xf7bd30['element'],_0xf7bd30['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x252ae8['push']({'type':'deletion','content':c(_0x5421ca,'*Remove:*\x20%0',this['getItemLabel'](_0xf7bd30['element'],_0xf7bd30['quantity']))});continue;case'addContainer':_0x252ae8['push']({'type':'insertion','content':c(_0x5421ca,'*Split:*\x20%0',this['getItemLabel'](_0xf7bd30['element'],_0xf7bd30['quantity']))});continue;case'removeContainer':_0x252ae8['push']({'type':'deletion','content':c(_0x5421ca,'*Merge:*\x20%0',this['getItemLabel'](_0xf7bd30['element'],_0xf7bd30['quantity']))});continue;case'addFormat':_0x3cc4a0['push'](_0xf7bd30['key']);continue;case'removeFormat':_0x39af78['push'](_0xf7bd30['key']);continue;default:_0x252ae8['push'](_0xf7bd30);}if(_0x3cc4a0['length']){const _0x44aa78=_0x3cc4a0['map'](_0x244916=>this['_attributeLabels']['has'](_0x244916)?this['_attributeLabels']['get'](_0x244916):_0x244916)['join'](',\x20');_0x252ae8['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x44aa78)});}if(_0x39af78['length']){const _0x161cbb=_0x39af78['map'](_0x1b4a74=>this['_attributeLabels']['has'](_0x1b4a74)?this['_attributeLabels']['get'](_0x1b4a74):_0x1b4a74)['join'](',\x20');_0x252ae8['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x161cbb)});}return _0x252ae8;}['_handleCustomCallbackDescription'](_0x4e4215){for(const _0x2694cd of this['_customCallbacks']){const _0x208d36=_0x2694cd(_0x4e4215);if(_0x208d36&&'type'in _0x208d36)return _0x208d36;}}['_handleAttributeSuggestionDescription'](_0x208a44,_0xe0f0f9){const _0x558621=_0xe0f0f9['data'],_0x2e0b0b=void 0x0===_0x558621['newValue']?'removeFormat':'addFormat';_0x208a44['push']({'type':_0x2e0b0b,'key':_0x558621['key']});}['_handleRenameSuggestionDescription'](_0x58f395,_0x4757ee){_0x58f395['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4757ee['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x147dee,_0x5da6bc,_0xcff622){if(this['_addDescriptionItems'](_0x147dee,_0x5da6bc),_0xcff622&&_0xcff622['getFirstRange']()&&!_0x5da6bc['getFirstRange']()['end']['isEqual'](_0xcff622['getFirstRange']()['start'])){const _0x337743=_0x147dee[_0x147dee['length']-0x1],_0x31d68c='insertion'==_0x5da6bc['type']?'add':'remove';_0x337743&&'text'==_0x337743['type']&&(_0x337743[_0x31d68c]+='\x0a');}}}class U extends _0x412245{['afterInit'](){const _0x22b772=this['editor'],_0x3ef716=_0x22b772['plugins']['get']('TrackChangesEditing');_0x22b772['commands']['get']('showAIAssistant')&&_0x3ef716['enableCommand']('showAIAssistant');}}class V extends _0x412245{['afterInit'](){const _0x39b9b8=this['editor'],_0x29f467=_0x39b9b8['locale'];if(!_0x39b9b8['plugins']['has']('AlignmentEditing'))return;const _0x594f8b=_0x39b9b8['plugins']['get']('TrackChangesEditing');_0x594f8b['enableDefaultAttributesIntegration']('alignment'),_0x594f8b['registerBlockAttribute']('alignment'),_0x594f8b['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x29f467,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24f86d=this['editor'],_0x5afde9=_0x24f86d['locale'];_0x24f86d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d899f=>{if('formatBlock'!=_0x2d899f['type'])return;const {data:_0x5b75c7}=_0x2d899f;if(_0x5b75c7&&'alignment'==_0x5b75c7['commandName']){const _0x1f97a8=_0x5b75c7['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x5afde9,'*Format:*\x20%0',function(_0x91314f){switch(_0x91314f){case'left':return c(_0x5afde9,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x5afde9,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x5afde9,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x5afde9,'FORMAT_JUSTIFY_TEXT');}}(_0x1f97a8))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x412245{['afterInit'](){const _0x3d6b9c=this['editor'],_0x3457b7=_0x3d6b9c['plugins']['get']('TrackChangesEditing'),_0x3f8fba=_0x3d6b9c['locale'];for(const _0x13796b of Zt){if(!_0x3d6b9c['plugins']['has'](_0x13796b))continue;const _0x5d82d1=_0x13796b['slice'](0x0,-0x7)['toLowerCase'](),_0x548d94='FORMAT_'+_0x5d82d1['toUpperCase']();_0x3457b7['enableDefaultAttributesIntegration'](_0x5d82d1),_0x3457b7['registerInlineAttribute'](_0x5d82d1),_0x3457b7['descriptionFactory']['registerAttributeLabel'](_0x5d82d1,c(_0x3f8fba,_0x548d94));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b483e=this['editor'],_0xf60184=_0x5b483e['locale'],_0x4164c6=_0x5b483e['plugins']['get']('TrackChangesEditing');function _0x20e9c7(_0x3b0952,_0xa0cf06){_0x4164c6['descriptionFactory']['registerDescriptionCallback'](_0x43a37e=>{if('formatInline'!=_0x43a37e['type'])return;const {data:_0x4af95c}=_0x43a37e;return _0x4af95c&&_0x4af95c['commandName']===_0x3b0952?_0x4af95c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xf60184,'*Format:*\x20%0',_0xa0cf06)}:{'type':'format','content':c(_0xf60184,'*Remove\x20format:*\x20%0',_0xa0cf06)}:void 0x0;});}_0x20e9c7('bold',c(_0xf60184,'FORMAT_BOLD')),_0x20e9c7('italic',c(_0xf60184,'FORMAT_ITALIC')),_0x20e9c7('underline',c(_0xf60184,'FORMAT_UNDERLINE')),_0x20e9c7('code',c(_0xf60184,'FORMAT_CODE')),_0x20e9c7('strikethrough',c(_0xf60184,'FORMAT_STRIKETHROUGH')),_0x20e9c7('subscript',c(_0xf60184,'FORMAT_SUBSCRIPT')),_0x20e9c7('superscript',c(_0xf60184,'FORMAT_SUPERSCRIPT'));}}class G extends _0x412245{['afterInit'](){const _0x592026=this['editor'],_0x47d29e=_0x592026['locale'];if(!_0x592026['plugins']['has']('BlockQuoteEditing'))return;const _0x551e3d=_0x592026['plugins']['get']('TrackChangesEditing'),_0x465d92=this['editor']['commands']['get']('blockQuote');_0x551e3d['enableCommand']('blockQuote',(_0x4a3050,_0x2fb339={})=>{const _0x4db924=this['editor']['model']['document']['selection'],_0xe55fa=_0x2fb339&&void 0x0!==_0x2fb339['forceValue']?_0x2fb339['forceValue']:!_0x465d92['value'];let _0x5401ac=[];if(_0xe55fa){const _0x27a363=Array['from'](_0x4db924['getSelectedBlocks']())['filter'](_0x51f9b2=>oo(_0x51f9b2)||function(_0x455ec3,_0x184394){const _0x2292b0=_0x184394['checkChild'](_0x455ec3['parent'],'blockQuote'),_0x227b3b=_0x184394['checkChild'](['$root','blockQuote'],_0x455ec3);return _0x2292b0&&_0x227b3b;}(_0x51f9b2,this['editor']['model']['schema']));_0x5401ac=to(_0x27a363,_0x592026['model']);}else{const _0x473f14=Array['from'](_0x4db924['getSelectedBlocks']())['filter'](_0x3a3745=>oo(_0x3a3745));_0x5401ac=to(_0x473f14,_0x592026['model']);}_0x592026['model']['change'](()=>{for(const _0x18d7ca of _0x5401ac)_0x551e3d['markBlockFormat'](_0x18d7ca,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xe55fa}]});});}),_0x551e3d['descriptionFactory']['registerDescriptionCallback'](_0x4d0788=>{const {data:_0x2f5416}=_0x4d0788;if(_0x2f5416&&'blockQuote'==_0x2f5416['commandName']){const _0x2f4c59=c(_0x47d29e,'ELEMENT_BLOCK_QUOTE');return _0x2f5416['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x47d29e,'*Set\x20format:*\x20%0',_0x2f4c59)}:{'type':'format','content':c(_0x47d29e,'*Remove\x20format:*\x20%0',_0x2f4c59)};}});}}function oo(_0x57241f){return'blockQuote'==_0x57241f['parent']['name'];}class L extends _0x412245{['afterInit'](){const _0x3d0460=this['editor'],_0x4f134b=_0x3d0460['locale'],_0xd699a2=_0x3d0460['plugins']['get']('TrackChangesEditing');_0x3d0460['plugins']['has']('BookmarkEditing')&&(_0xd699a2['enableCommand']('insertBookmark'),_0xd699a2['enableDefaultAttributesIntegration']('updateBookmark'),_0xd699a2['registerBlockAttribute']('bookmarkId'),_0xd699a2['descriptionFactory']['registerDescriptionCallback'](_0x15097b=>{if('insertion'!=_0x15097b['type']&&'deletion'!=_0x15097b['type']&&'attribute'!=_0x15097b['type'])return;const _0x546fb0=_0x15097b['getContainedElement']();if(null==_0x546fb0)return;if(!_0x546fb0['is']('element','bookmark'))return;const _0x58cb28=_0x546fb0['getAttribute']('bookmarkId');if('insertion'==_0x15097b['type'])return{'type':'insertion','content':c(_0x4f134b,'*Insert:*\x20%0','\x22'+_0x58cb28+'\x22\x20'+c(_0x4f134b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x15097b['type'])return{'type':'deletion','content':c(_0x4f134b,'*Remove:*\x20%0','\x22'+_0x58cb28+'\x22\x20'+c(_0x4f134b,'ELEMENT_BOOKMARK'))};const {data:_0x414131}=_0x15097b;if(!_0x414131||'bookmarkId'!=_0x414131['key'])return;return{'type':'format','content':c(_0x4f134b,'*Set\x20bookmark:*\x20%0','\x22'+_0x414131['newValue']+'\x22')};}));}}class J extends _0x412245{['afterInit'](){const _0x1588b4=this['editor'];_0x1588b4['plugins']['has']('CaseChange')&&(_0x1588b4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1588b4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1588b4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x412245{['afterInit'](){const _0x4f95b8=this['editor'];_0x4f95b8['commands']['get']('ckbox')&&_0x4f95b8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x412245{['afterInit'](){const _0xb06f8b=this['editor'];if(!_0xb06f8b['plugins']['has']('CodeBlock'))return;const _0x1275d4=_0xb06f8b['plugins']['get']('TrackChangesEditing'),_0x556742=_0xb06f8b['locale'],_0x33d505=_0xb06f8b['config']['get']('codeBlock')['languages'],_0x19a3ff=_0xb06f8b['commands']['get']('codeBlock');_0x1275d4['enableCommand']('indentCodeBlock'),_0x1275d4['enableCommand']('outdentCodeBlock'),_0x1275d4['enableCommand']('codeBlock',(_0x2bc270,_0x46babb={})=>{const _0x5f22e7=_0xb06f8b['model'],_0x12a3ea=_0xb06f8b['model']['document']['selection'],_0x3eb10d=_0x46babb&&void 0x0!==_0x46babb['forceValue']?_0x46babb['forceValue']:!_0x19a3ff['value'];let _0x3c5d70;_0x46babb['language']||(_0x46babb['language']=_0x33d505[0x0]['language']),_0x3c5d70=_0x3eb10d?Array['from'](_0x12a3ea['getSelectedBlocks']())['filter'](_0x36a386=>eo(_0x36a386)||function(_0x35822c,_0x533535){if(_0x35822c['is']('rootElement')||_0x533535['isLimit'](_0x35822c))return!0x1;return _0x533535['checkChild'](_0x35822c['parent'],'codeBlock');}(_0x36a386,_0x5f22e7['schema'])):Array['from'](_0x12a3ea['getSelectedBlocks']())['filter'](_0x288e8d=>eo(_0x288e8d));const _0x13bd39=to(_0x3c5d70,_0x5f22e7);_0x5f22e7['change'](()=>{for(const _0x3bb3a7 of _0x13bd39)_0x1275d4['markBlockFormat'](_0x3bb3a7,{'commandName':'codeBlock','commandParams':[{..._0x46babb,'forceValue':_0x3eb10d}],'formatGroupId':'blockName'});});}),(_0x1275d4['descriptionFactory']['registerElementLabel']('codeBlock',_0x535730=>c(_0x556742,'ELEMENT_CODE_BLOCK',_0x535730)),_0x1275d4['descriptionFactory']['registerDescriptionCallback'](_0x41db4a=>{if('formatBlock'!=_0x41db4a['type'])return;const _0x28ce1d=_0x556742['t'],{data:_0x3bbf0a}=_0x41db4a;if(!_0x3bbf0a||'codeBlock'!=_0x3bbf0a['commandName'])return;const _0x37636b=_0x3bbf0a['commandParams'][0x0]['language'],_0x15935e=_0x28ce1d(_0x33d505['find'](_0x56ca89=>_0x56ca89['language']===_0x37636b)['label'])['toLowerCase']();return _0x3bbf0a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x556742,'*Set\x20format:*\x20%0',c(_0x556742,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x15935e+')')}:{'type':'format','content':c(_0x556742,'*Remove\x20format:*\x20%0',c(_0x556742,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3f5a01){return'codeBlock'==_0x3f5a01['name'];}class q extends _0x412245{['afterInit'](){const _0x4bf569=this['editor'];if(!_0x4bf569['plugins']['has']('CommentsEditing'))return;_0x4bf569['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x17bce6,_0x287a1d,_0x3c0dc5){const _0x3b4f9b=[];for(const _0x493782 of _0x287a1d['getItems']())_0x493782['hasAttribute'](_0x17bce6)&&_0x3b4f9b['push'](_0x3c0dc5['createRangeOn'](_0x493782));return _0x3b4f9b;}function Fe(_0x40dac8,_0x34f4e4,{showActiveMarker:_0x2273a7=!0x0}={}){const _0x2fa57f=_0x40dac8['plugins']['get']('TrackChangesEditing');return(_0x3ed6e0,_0x5573cb,_0x47b3a2)=>{if(!_0x47b3a2['consumable']['test'](_0x5573cb['markerRange'],_0x3ed6e0['name']))return;const _0x1fae8c=_0x5573cb['markerRange']['getWalker'](),_0x1bc3f3=_0x5573cb['markerRange']['start'],_0x32ca47=_0x40dac8['model']['schema'];let _0x180bae=null,_0x40ac1d=null,_0x30de7d=!0x1,_0x2233e4=!0x1;for(const _0x5f42c2 of _0x1fae8c){const _0x3cb5f6=_0x5f42c2['item'];_0x30de7d=_0x30de7d||_0x32ca47['isContent'](_0x3cb5f6);const _0x534c21=_0x47b3a2['mapper']['toViewElement'](_0x3cb5f6);if(_0x534c21&&_0x534c21['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5f42c2['type']&&(_0x32ca47['isBlock'](_0x3cb5f6)&&!_0x32ca47['isLimit'](_0x3cb5f6)&&(_0x3cb5f6['nextSibling']||_0x1bc3f3['isAtEnd']?_0x180bae&&_0x180bae['parent']==_0x3cb5f6||(_0x180bae=_0x3cb5f6,_0x559524(_0x5f42c2['previousPosition']),_0x2233e4=!0x0):_0x40ac1d=_0x40ac1d||_0x5f42c2['previousPosition']));}function _0x559524(_0x40d5b2){const {id:_0x5d81c7,authorId:_0x55864d}=_0x2fa57f['_splitMarkerName'](_0x5573cb['markerName']),_0x3a7120=_0x47b3a2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x34f4e4,'data-suggestion':_0x5d81c7,'data-author-id':_0x55864d}),_0x37be25=_0x47b3a2['mapper']['toViewPosition'](_0x40d5b2);_0x2273a7&&_0x2fa57f['activeMarkers']['includes'](_0x5573cb['markerName'])&&_0x47b3a2['writer']['addClass']('ck-suggestion-marker--active',_0x3a7120),_0x47b3a2['writer']['insert'](_0x37be25,_0x3a7120),_0x47b3a2['mapper']['bindElementToMarker'](_0x3a7120,_0x5573cb['markerName']);}_0x30de7d||_0x2233e4||!_0x40ac1d||_0x559524(_0x40ac1d);};}class z extends _0x412245{static get['requires'](){return[_0x4ee831];}['init'](){const _0x19a23d=this['editor'],_0x4d244e=_0x19a23d['plugins']['get']('TrackChangesEditing');_0x4d244e['enableCommand']('delete');const _0x1fbb4e=_0x19a23d['commands']['get']('deleteForward');_0x4d244e['enableCommand']('deleteForward',(_0x476a94,_0x4b4f35={})=>{const _0x16e28b=_0x19a23d['model']['createSelection'](_0x19a23d['model']['document']['selection']);_0x16e28b['isCollapsed']&&_0x19a23d['model']['modifySelection'](_0x16e28b,{'direction':'forward','unit':_0x4b4f35['unit']});const _0xf35b48=_0x16e28b['getFirstRange'](),_0x29f26e=_0x222fa7['fromRange'](_0xf35b48);let _0x15dc42;_0x476a94(_0x4b4f35),_0x15dc42='$graveyard'==_0x29f26e['root']['rootName']?_0x19a23d['model']['createRange'](_0xf35b48['start']):_0x19a23d['model']['createRange'](_0x29f26e['start'],_0x29f26e['end']),_0x29f26e['detach'](),_0x19a23d['model']['enqueueChange'](_0x1fbb4e['buffer']['batch'],_0x271ec4=>{_0x1fbb4e['buffer']['lock'](),_0x271ec4['setSelection'](_0x271ec4['createRange'](_0x15dc42['end'])),_0x1fbb4e['buffer']['unlock']();});}),_0x19a23d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x19a23d,'merge'),{'priority':'high'}),_0x19a23d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2d683d,_0x4a8a70,_0x2d9dad)=>{_0x2d9dad['options']['showSuggestionHighlights']&&Fe(_0x19a23d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2d683d,_0x4a8a70,_0x2d9dad);},{'priority':'high'}),_0x19a23d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x54b955,_0x2d34fd,_0x156ef2)=>{const _0x441bd9=_0x156ef2['mapper']['markerNameToElements'](_0x2d34fd['markerName']);if(_0x441bd9){for(const _0x55a69a of _0x441bd9)_0x55a69a['is']('uiElement')&&(_0x156ef2['mapper']['unbindElementFromMarkerName'](_0x55a69a,_0x2d34fd['markerName']),_0x156ef2['writer']['remove'](_0x55a69a));}},{'priority':'high'});}}class W extends _0x412245{['afterInit'](){const _0x19fe16=this['editor'];if(!_0x19fe16['plugins']['has']('ListEditing'))return;const _0x124426=_0x19fe16['locale'],_0x4cc1a0=_0x19fe16['plugins']['get']('TrackChangesEditing'),_0x42ee69=_0x19fe16['plugins']['has']('TodoListEditing'),_0x121b81=!!_0x19fe16['config']['get']('list.multiBlock');function _0x3b1f38(_0x42c215){return{'type':'format','content':''+c(_0x124426,'*Set\x20format:*\x20%0',_0x42c215)};}function _0x49529a(_0x55bb9c){return{'type':'format','content':''+c(_0x124426,'*Remove\x20format:*\x20%0',_0x55bb9c)};}_0x4cc1a0['enableDefaultAttributesIntegration']('numberedList'),_0x4cc1a0['enableDefaultAttributesIntegration']('bulletedList'),_0x4cc1a0['enableDefaultAttributesIntegration']('customNumberedList'),_0x4cc1a0['enableDefaultAttributesIntegration']('customBulletedList'),_0x4cc1a0['enableDefaultAttributesIntegration']('indentList'),_0x4cc1a0['enableDefaultAttributesIntegration']('outdentList'),_0x4cc1a0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4cc1a0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4cc1a0['registerBlockAttribute']('listItemId'),_0x4cc1a0['registerBlockAttribute']('listType'),_0x4cc1a0['registerBlockAttribute']('listIndent'),_0x121b81&&(_0x4cc1a0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4cc1a0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x42ee69&&(_0x4cc1a0['enableDefaultAttributesIntegration']('todoList'),_0x4cc1a0['enableDefaultAttributesIntegration']('checkTodoList'),_0x4cc1a0['registerBlockAttribute']('todoListChecked'),_0x4cc1a0['descriptionFactory']['registerDescriptionCallback'](_0x3a519e=>{const {data:_0xd262d}=_0x3a519e;if(_0xd262d&&'todoListChecked'==_0xd262d['key'])return{'type':'format','content':_0xd262d['newValue']?c(_0x124426,'*Check\x20item*'):c(_0x124426,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5ef30f=>{if(_0x5ef30f['batch']['isUndo'])return!0x1;let _0x2afadc=!0x1;const _0x42711a=_0x4cc1a0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x281540=>'todoListChecked'===_0x4cc1a0['_getAttributeKey'](_0x281540));for(const _0x11b605 of _0x42711a){'todo'!=_0x11b605['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4cc1a0['_findSuggestions'](_0x11b605['getFirstRange'](),'attribute')['find'](_0x21915f=>'listType'===_0x4cc1a0['_getAttributeKey'](_0x21915f['suggestion']))||(_0x5ef30f['removeMarker'](_0x11b605['getFirstMarker']()),_0x2afadc=!0x0));}return _0x2afadc;})),_0x4cc1a0['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x124426,'FORMAT_INDENT'));const _0x137c3d={'type':'format','content':''};_0x4cc1a0['descriptionFactory']['registerDescriptionCallback'](_0x5a7076=>{const {data:_0x32e2d8}=_0x5a7076;if(!_0x32e2d8||'listType'!=_0x32e2d8['key'])return;let _0x50b538=_0x5a7076['head'];for(;_0x50b538;){if(_0x50b538['data']&&(('listStyle'==_0x50b538['data']['key']||'listMarkerStyle'==_0x50b538['data']['key'])&&(_0x50b538['data']['newValue']&&'default'!=_0x50b538['data']['newValue']||'default'!=_0x50b538['data']['oldValue']&&!_0x32e2d8['newValue'])||!_0x121b81&&_0x50b538['data']['key']==u))return _0x137c3d;_0x50b538=_0x50b538['next'];}if(null==_0x32e2d8['newValue'])switch(_0x32e2d8['oldValue']){case'bulleted':return _0x49529a(c(_0x124426,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49529a(c(_0x124426,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49529a(c(_0x124426,'ELEMENT_TODO_LIST'));}switch(_0x32e2d8['newValue']){case'bulleted':return _0x3b1f38(c(_0x124426,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3b1f38(c(_0x124426,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3b1f38(c(_0x124426,'ELEMENT_TODO_LIST'));}}),_0x4cc1a0['descriptionFactory']['registerDescriptionCallback'](_0x4ce097=>{const {data:_0x165bab}=_0x4ce097;if(_0x165bab&&'listIndent'==_0x165bab['key'])return null==_0x165bab['newValue']||null==_0x165bab['oldValue']&&0x0==_0x165bab['newValue']?_0x137c3d:void 0x0;}),_0x4cc1a0['descriptionFactory']['registerDescriptionCallback'](_0x53c65b=>{if('attribute'!=_0x53c65b['type'])return;const {data:_0xa78596}=_0x53c65b;if(!_0xa78596||'listItemId'!=_0xa78596['key'])return;const _0x496b44=Te(_0x53c65b);return'newValue'==_0x496b44?{'type':'format','content':c(_0x124426,'*Merge:*\x20list\x20item')}:'oldValue'==_0x496b44?{'type':'format','content':c(_0x124426,'*Split:*\x20list\x20item')}:_0x137c3d;}),_0x19fe16['model']['document']['registerPostFixer'](_0x1e1747=>this['listItemIdFixer'](_0x1e1747)),_0x19fe16['model']['document']['registerPostFixer'](_0x164397=>this['noTrackChangesFixer'](_0x164397)),_0x19fe16['model']['document']['on']('change:data',(_0x2131ef,_0x456690)=>{if(_0x456690['isUndo']||!_0x456690['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3a3d8e){if(_0x3a3d8e['batch']['isUndo']||!_0x3a3d8e['batch']['isLocal'])return!0x1;let _0x192bd4=!0x1;const _0x30b63c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x503974=>_0x503974['data']&&'listItemId'==_0x503974['data']['key'])['filter'](_0x1b9190=>_0x1b9190['data']['newValue']&&_0x1b9190['data']['oldValue']);for(const _0x3bb10c of _0x30b63c)Te(_0x3bb10c)||(_0x3a3d8e['removeMarker'](_0x3bb10c['getFirstMarker']()),_0x192bd4=!0x0);return _0x192bd4;}['noTrackChangesFixer'](_0x15fd36){if(_0x15fd36['batch']['isUndo']||!_0x15fd36['batch']['isLocal'])return!0x1;const _0x34a316=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x34a316['trackChangesCommand']['value'])return!0x1;let _0x45fff7=!0x1;const _0x4135c4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x485517=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xad8999=>'attribute'==_0xad8999['type'])['filter'](_0x41a908=>_0x4135c4['includes'](_0x41a908['attributeKey']));if(0x0==_0x485517['length'])return _0x45fff7;for(const _0x1e96b2 of _0x485517){const _0x449935=_0x34a316['_findSuggestions'](_0x1e96b2['range'],'attribute')['filter'](_0x3b11c0=>!_0x3b11c0['meta']['isNextTo'])['map'](_0x1b5622=>_0x1b5622['suggestion'])['filter'](_0x3ff1dc=>{const _0x373e09=_0x34a316['_getAttributeKey'](_0x3ff1dc);return _0x4135c4['includes'](_0x373e09);});if(_0x449935['length']){for(const _0x1c25ff of _0x449935)_0x15fd36['removeMarker'](_0x1c25ff['getFirstMarker']());_0x45fff7=!0x0;}}return _0x45fff7;}['assureChains'](){const _0x101e3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11a85b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x566946;const _0x21667e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xd22638=>{if(_0xd22638['data']['oldRange']||!_0xd22638['data']['newRange'])return null;if(!_0xd22638['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5edc6e}=_0x101e3b['_splitMarkerName'](_0xd22638['name']);if(!_0x101e3b['hasSuggestion'](_0x5edc6e))return null;const _0xaa3d2d=_0x101e3b['getSuggestion'](_0x5edc6e);return _0x11a85b['includes'](_0xaa3d2d['data']['key']);})['map'](_0x3a15ac=>{const {id:_0x16dcfd}=_0x101e3b['_splitMarkerName'](_0x3a15ac['name']),_0x2fcd68=_0x101e3b['getSuggestion'](_0x16dcfd);return _0x566946=_0x2fcd68['attributes']['groupId'],_0x2fcd68['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x21667e['size'])return;const _0x49b776=_0x101e3b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22b824=>'attribute'==_0x22b824['type']&&_0x22b824['data']&&_0x11a85b['includes'](_0x22b824['data']['key'])&&_0x22b824['attributes']['groupId']!=_0x566946)['map'](_0x301761=>({'listItem':_0x301761['getFirstRange']()['start']['nodeAfter'],'groupId':_0x301761['attributes']['groupId']})),_0x530302=new Set();for(const {groupId:_0x5be8ae,listItem:_0x48be97}of _0x49b776)_0x21667e['has'](_0x48be97)&&_0x530302['add'](_0x5be8ae);for(const _0x1a35a8 of _0x101e3b['getSuggestions']())_0x530302['has'](_0x1a35a8['attributes']['groupId'])&&_0x1a35a8['setAttribute']('groupId',_0x566946);}['_supportLegacySuggestions'](){const _0x392248=this['editor'],_0x566fda=_0x392248['locale'],_0x17a722=_0x392248['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x17a722['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1b65f1,_0x10b72f){const _0x2c9385=[];for(let _0x396f7e of _0x1b65f1)_0x396f7e['start']['nodeAfter']===_0x396f7e['end']['parent']&&(_0x396f7e=_0x392248['model']['createRange'](_0x392248['model']['createPositionAt'](_0x396f7e['start']['nodeAfter'],0x0))),_0x2c9385['push'](_0x396f7e);_0x392248['model']['change'](_0x31bfc5=>{const _0x5628bc=_0x392248['model']['document']['selection'],_0x5179c6=Array['from'](_0x5628bc['getRanges']())['map'](_0x46355a=>_0x222fa7['fromRange'](_0x46355a));_0x31bfc5['setSelection'](_0x2c9385),_0x392248['commands']['get'](_0x10b72f['commandName'])['refresh'](),_0x10b72f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x392248['execute'](_0x10b72f['commandName'],..._0x10b72f['commandParams']),_0x31bfc5['setSelection'](_0x5179c6);for(const _0x45fc59 of _0x5179c6)_0x45fc59['detach']();});}),_0x17a722['descriptionFactory']['registerElementLabel'](function(_0x7ee451){const _0x44c230=!_0x392248['model']['schema']['isObject'](_0x7ee451),_0x60ce3a=_0x7ee451['previousSibling'],_0x1a6d6d=_0x7ee451['nextSibling'],_0x51b8d6=_0x7ee451['getAttribute']('listItemId'),_0x29d264=!_0x60ce3a||_0x60ce3a['getAttribute']('listItemId')!==_0x51b8d6,_0x21ad41=!_0x1a6d6d||_0x1a6d6d['getAttribute']('listItemId')!==_0x51b8d6;return _0x44c230&&Boolean(_0x51b8d6)&&_0x29d264&&_0x21ad41;},_0x42ba59=>c(_0x566fda,'ELEMENT_LIST_ITEM',_0x42ba59));}['_registerLegacyDescription'](){const _0xc4234b=this['editor'],_0x59a85a=_0xc4234b['locale'];function _0x19cd31(_0x22d979){const _0x369c24=_0xc4234b['commands']['get']('bulletedList')['value'],_0x12bed8=_0xc4234b['commands']['get']('numberedList')['value'];return'numberedList'===_0x22d979?_0x369c24:_0x12bed8;}_0xc4234b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x486a80){if('formatBlock'!=_0x486a80['type'])return;const {data:_0x41989f}=_0x486a80;if(!_0x41989f)return;let _0x481484,_0x5a705b,_0x2ef52d,_0x2d1e27;switch(_0x41989f['commandName']){case'bulletedList':_0x2ef52d=_0x41989f['commandParams'][0x0]['forceValue'],_0x2d1e27=_0x19cd31(_0x41989f['commandName']),_0x481484=_0x2ef52d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2d1e27&&_0xc4234b['config']['get']('list.multiBlock')||(_0x481484='*Change\x20to:*\x20%0'),_0x5a705b={'type':'format','content':c(_0x59a85a,_0x481484,c(_0x59a85a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2ef52d=_0x41989f['commandParams'][0x0]['forceValue'],_0x2d1e27=_0x19cd31(_0x41989f['commandName']),_0x481484=_0x2ef52d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2d1e27&&_0xc4234b['config']['get']('list.multiBlock')||(_0x481484='*Change\x20to:*\x20%0'),_0x5a705b={'type':'format','content':c(_0x59a85a,_0x481484,c(_0x59a85a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x481484='*Indent:*\x20%0',_0x5a705b={'type':'format','content':c(_0x59a85a,_0x481484,c(_0x59a85a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x481484=function(_0x585374){const _0x53bad9=_0x585374['getFirstRange']();let _0x120e52=_0x53bad9['start']['nodeAfter'];for(;_0x120e52&&_0x53bad9['containsItem'](_0x120e52);){if(_0x120e52['getAttribute']('listIndent')>0x0)return!0x1;_0x120e52=_0x120e52['nextSibling'];}return!0x0;}(_0x486a80)?c(_0x59a85a,'*Format:*\x20remove\x20from\x20%0',c(_0x59a85a,function(_0x5f374e){return'ELEMENT_'+_0x5f374e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x486a80))):c(_0x59a85a,'*Outdent:*\x20%0',c(_0x59a85a,'ELEMENT_LIST_ITEM')),_0x5a705b={'type':'format','content':_0x481484};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x41989f['multipleBlocks']&&(_0x481484='*Merge:*\x20%0',_0x5a705b={'type':'deletion','content':c(_0x59a85a,_0x481484,c(_0x59a85a,'ELEMENT_LIST_ITEM'))});}return _0x5a705b;});}}function Te(_0x12294b){let _0x23e539=_0x12294b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x23e539;){const _0x3657e5=_0x23e539['getAttribute']('listItemId');if(!_0x3657e5)return!0x1;if(_0x3657e5==_0x12294b['data']['newValue'])return'newValue';if(_0x3657e5==_0x12294b['data']['oldValue'])return'oldValue';_0x23e539=_0x23e539['previousSibling'];}return!0x1;}class Se extends _0x412245{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xd04e02=this['editor']['config']['get']('list.properties'),_0x529309=this['editor']['plugins']['get']('TrackChangesEditing');_0xd04e02['styles']&&(_0x529309['enableDefaultAttributesIntegration']('listStyle'),_0x529309['registerBlockAttribute']('listStyle')),_0xd04e02['reversed']&&(_0x529309['enableDefaultAttributesIntegration']('listReversed'),_0x529309['registerBlockAttribute']('listReversed')),_0xd04e02['startIndex']&&(_0x529309['enableDefaultAttributesIntegration']('listStart'),_0x529309['registerBlockAttribute']('listStart'));const _0x19eaf9={'type':'format','content':''};_0x529309['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x11c881=this['editor']['locale'];_0x529309['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x11c881,'FORMAT_LIST_REVERSED')),_0x529309['descriptionFactory']['registerDescriptionCallback'](_0x379f58=>{const {data:_0x43798a}=_0x379f58;if(_0x43798a&&'listReversed'==_0x43798a['key'])return null==_0x43798a['newValue']||0x0==_0x43798a['newValue']&&null==_0x43798a['oldValue']?_0x19eaf9:void 0x0;}),_0x529309['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x11c881,'FORMAT_LIST_START')),_0x529309['descriptionFactory']['registerDescriptionCallback'](_0x115d5a=>{const {data:_0x4eeb69}=_0x115d5a;if(_0x4eeb69&&'listStart'==_0x4eeb69['key'])return null==_0x4eeb69['newValue']||0x1==_0x4eeb69['newValue']&&null==_0x4eeb69['oldValue']?_0x19eaf9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2d22d2=>{if(_0x2d22d2['batch']['isUndo'])return!0x1;let _0x49048b=!0x1;const _0x27f027=_0x529309['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a5134=>{const _0x5e0297=_0x529309['_getAttributeKey'](_0x5a5134);return'listStart'==_0x5e0297||'listReversed'==_0x5e0297;});for(const _0x35d652 of _0x27f027){const _0x47078c=_0x35d652['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x47078c||'customNumbered'==_0x47078c)continue;_0x529309['_findSuggestions'](_0x35d652['getFirstRange'](),'attribute')['find'](_0x2c977e=>'listType'==_0x529309['_getAttributeKey'](_0x2c977e['suggestion']))||(_0x2d22d2['removeMarker'](_0x35d652['getFirstMarker']()),_0x49048b=!0x0);}return _0x49048b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x382ec1){const _0x27f26d=this['editor']['locale'],{data:_0x434c01}=_0x382ec1,_0x45c565={'type':'format','content':''};if(!_0x434c01||'listStyle'!=_0x434c01['key'])return;if(!_0x434c01['oldValue'])return'default'==_0x434c01['newValue']?_0x45c565:{'type':'format','content':''+c(_0x27f26d,'*Set\x20format:*\x20%0',c(_0x27f26d,this['_getTranslationKeyForListStyle'](_0x434c01['newValue'])))};if(!_0x434c01['newValue']){if('default'==_0x434c01['oldValue'])return _0x45c565;let _0x35c29c=_0x382ec1['head'];for(;_0x35c29c;){if(_0x35c29c['data']&&'listType'==_0x35c29c['data']['key']&&_0x35c29c['data']['newValue'])return _0x45c565;_0x35c29c=_0x35c29c['next'];}return{'type':'format','content':''+c(_0x27f26d,'*Remove\x20format:*\x20%0',c(_0x27f26d,this['_getTranslationKeyForListStyle'](_0x434c01['oldValue'])))};}if('default'!=_0x434c01['newValue'])return{'type':'format','content':''+c(_0x27f26d,'*Set\x20format:*\x20%0',c(_0x27f26d,this['_getTranslationKeyForListStyle'](_0x434c01['newValue'])))};let _0x242bec=_0x382ec1['head'];for(;_0x242bec;){if(_0x242bec['data']&&'listType'==_0x242bec['data']['key']&&_0x242bec['data']['newValue']&&_0x242bec['data']['oldValue'])return _0x45c565;_0x242bec=_0x242bec['next'];}return{'type':'format','content':c(_0x27f26d,'*Set\x20format:*\x20%0',c(_0x27f26d,'ELEMENT_'+_0x382ec1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4344f7=this['editor'],_0x12809a=_0x4344f7['locale'];_0x4344f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11cb8e=>{if('formatBlock'!=_0x11cb8e['type'])return;const {data:_0x58d128}=_0x11cb8e;if(!_0x58d128)return;let _0x13c0e7,_0x5a328;switch(_0x58d128['commandName']){case'listStyle':_0x13c0e7='*Change\x20to:*\x20%0',_0x5a328={'type':'format','content':c(_0x12809a,_0x13c0e7,c(_0x12809a,this['_getTranslationKeyForListStyle'](_0x58d128['commandParams'][0x0]['type'])))};break;case'listReversed':_0x13c0e7=_0x58d128['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5a328={'type':'format','content':c(_0x12809a,_0x13c0e7)};break;case'listStart':_0x13c0e7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5a328={'type':'format','content':c(_0x12809a,_0x13c0e7,_0x58d128['commandParams'][0x0]['startIndex'])};}return _0x5a328;});}['_getTranslationKeyForListStyle'](_0x18d495){return'ELEMENT_'+function(_0x232bff){if(_e['includes'](_0x232bff))return'bulleted';if(Re['includes'](_0x232bff))return'numbered';return null;}(_0x18d495)['toUpperCase']()+'_LIST_'+_0x18d495['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x412245{['afterInit'](){const _0x3bfca5=this['editor'];_0x3bfca5['commands']['get']('emoji')&&_0x3bfca5['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x412245{static get['requires'](){return[_0x4c080c];}['init'](){const _0x2744fb=this['editor'],_0x135e69=_0x2744fb['plugins']['get']('TrackChangesEditing'),_0x57117b=_0x2744fb['commands']['get']('enter');_0x135e69['enableCommand']('enter',()=>{_0x2744fb['model']['change'](_0x922f2f=>{const _0x2095fe=_0x2744fb['model']['document']['selection'],_0x258287=_0x2095fe['getFirstPosition'](),_0x59e511=_0x222fa7['fromRange'](_0x2095fe['getFirstRange']());if(_0x57117b['enterBlock'](_0x922f2f)){const _0x462b10=_0x2744fb['model']['createPositionAt'](_0x258287['parent']['nextSibling'],0x0),_0x5eb846=_0x922f2f['createRange'](_0x258287,_0x462b10);_0x135e69['markInsertion'](_0x5eb846);}else _0x922f2f['setSelection'](_0x922f2f['createRange'](_0x59e511['end']));_0x59e511['detach'](),_0x57117b['fire']('afterExecute',{'writer':_0x922f2f});});}),_0x2744fb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x2744fb,'split'),{'priority':'high'}),_0x2744fb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x24c7f7,_0x4e86d5,_0x435ef9)=>{const _0x529e7c=_0x435ef9['mapper']['markerNameToElements'](_0x4e86d5['markerName']);if(_0x529e7c){for(const _0x5f156a of _0x529e7c)_0x5f156a['hasClass']('ck-suggestion-marker-split')&&(_0x435ef9['mapper']['unbindElementFromMarkerName'](_0x5f156a,_0x4e86d5['markerName']),_0x435ef9['writer']['remove'](_0x5f156a));}},{'priority':'high'}),_0x2744fb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x143475,_0x4f8991,_0x43f964)=>{_0x43f964['options']['showSuggestionHighlights']&&Fe(_0x2744fb,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x143475,_0x4f8991,_0x43f964);},{'priority':'high'});}}class Z extends _0x412245{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5e00a1=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e00a1['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5e00a1['enableCommand']('findNext'),_0x5e00a1['enableCommand']('findPrevious'),_0x5e00a1['enableCommand']('replace'),_0x5e00a1['enableCommand']('replaceAll');}['handleFindCommand'](_0x522683,_0x3d2464,_0x183820={}){const _0x5b7dc3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x522683(_0x633c9c=>{let _0x178deb=('string'==typeof _0x3d2464?_0x5b7dc3['findByTextCallback'](_0x3d2464,_0x183820):_0x3d2464)(_0x633c9c);Array['isArray'](_0x178deb)&&(_0x178deb={'results':_0x178deb,'searchText':'string'==typeof _0x3d2464?_0x3d2464:''});const _0xbde354=_0x178deb['results']['filter'](_0x55e3a2=>!0x1===this['_isInDeletionRange'](_0x55e3a2,_0x633c9c['item']));return{..._0x178deb,'results':_0xbde354};},_0x183820);}['_isInDeletionRange'](_0x1b2021,_0x344b24){const _0x4c5cee=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x344b24,_0x1b2021['start']),this['editor']['model']['createPositionAt'](_0x344b24,_0x1b2021['end']));for(const _0x59d504 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4c5cee['getIntersection'](_0x59d504['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 _0x412245{['afterInit'](){const _0x3f092b=this['editor']['locale'],_0x3a6420=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xe14c76,commandName:_0x5ebe7b}of ro)this['editor']['plugins']['has'](_0xe14c76)&&(_0x3a6420['enableDefaultAttributesIntegration'](_0x5ebe7b),_0x3a6420['registerInlineAttribute'](_0x5ebe7b));_0x3a6420['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x3f092b,'FORMAT_FONT_SIZE')),_0x3a6420['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x3f092b,'FORMAT_FONT_FAMILY')),_0x3a6420['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x3f092b,'FORMAT_FONT_COLOR')),_0x3a6420['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x3f092b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cfeff=this['editor'],_0x37258c=_0x3cfeff['locale'];_0x3cfeff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ba1a5=>{const _0x8621ae=_0x37258c['t'];if('formatInline'!=_0x3ba1a5['type'])return;const {data:_0x3bd5c0}=_0x3ba1a5;if(null!=_0x3bd5c0){if('fontSize'==_0x3bd5c0['commandName']){const _0x348696=_0x3bd5c0['commandParams'][0x0]['value'];if(_0x348696){const _0x2f7a5f=_0x8621ae(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x546166=>_0x546166['model']==_0x348696)['title'])['toLowerCase']();return{'type':'format','content':c(_0x37258c,'*Set\x20font\x20size:*\x20%0',_0x2f7a5f)};}return{'type':'format','content':c(_0x37258c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3bd5c0['commandName']){const _0x57a014=_0x3bd5c0['commandParams'][0x0]['value'];return _0x57a014?{'type':'format','content':c(_0x37258c,'*Set\x20font\x20family:*\x20%0',_0x57a014)}:{'type':'format','content':c(_0x37258c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3bd5c0['commandName']){const _0x38865d=_0x3bd5c0['commandParams'][0x0]['value'];if(_0x38865d){const _0x47c4e0=_0xadfe1e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x380b91=>_0x380b91['model']==_0x38865d);let _0x29271a=_0x38865d,_0x992263='';return _0x47c4e0&&(_0x29271a=_0x47c4e0['label'],_0x992263=_0x8621ae(_0x29271a)['toLowerCase']()),{'type':'format','content':c(_0x37258c,'*Set\x20font\x20color:*\x20%0',_0x992263)['trim'](),'color':{'value':_0x38865d,'title':_0x992263||_0x29271a}};}return{'type':'format','content':c(_0x37258c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3bd5c0['commandName']){const _0x4aeac4=_0x3bd5c0['commandParams'][0x0]['value'];if(_0x4aeac4){const _0x2e2a22=_0xadfe1e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4f7a68=>_0x4f7a68['model']==_0x4aeac4);let _0x426a8f=_0x4aeac4,_0xd07acf='';return _0x2e2a22&&(_0x426a8f=_0x2e2a22['label'],_0xd07acf=_0x8621ae(_0x426a8f)['toLowerCase']()),{'type':'format','content':c(_0x37258c,'*Set\x20font\x20background\x20color:*\x20%0',_0xd07acf)['trim'](),'color':{'value':_0x4aeac4,'title':_0xd07acf||_0x426a8f}};}return{'type':'format','content':c(_0x37258c,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x412245{['afterInit'](){const _0x208c62=this['editor'],_0x2c8a29=_0x208c62['plugins']['get']('TrackChangesEditing'),_0x19e97d=_0x208c62['commands']['get']('copyFormat'),_0x5726e8=_0x208c62['commands']['get']('pasteFormat');_0x19e97d&&_0x5726e8&&(_0x2c8a29['enableDefaultAttributesIntegration']('pasteFormat'),_0x2c8a29['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2a08d4=this['editor'],_0x775fe7=_0x2a08d4['locale'];_0x2a08d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1396bf=>{if('formatBlock'!=_0x1396bf['type']&&'formatInline'!=_0x1396bf['type'])return;const {data:_0xd962fd}=_0x1396bf;if(_0xd962fd&&'pasteFormat'===_0xd962fd['commandName']){const _0x2f6221=[],_0x289a99=_0xd962fd['commandParams'][0x0];for(const [_0x41fd78,_0x43c17f]of Object['entries'](_0x289a99))_0x2f6221['push'](so(_0x2a08d4,_0x41fd78,_0x43c17f));return _0x2f6221['length']?{'type':'format','content':c(_0x775fe7,'*Set\x20format\x20to:*\x20%0',_0x2f6221['join'](',\x20'))}:{'type':'format','content':c(_0x775fe7,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3bc3b8,_0x4c08d1,_0x1192da){const _0x4be82b=_0x3bc3b8['locale']['t'],_0x11021c=_0x4c08d1['split'](/(?=[A-Z])/)['join']('\x20'),_0x4bdcac=_0x4be82b(_0x11021c['charAt'](0x0)['toUpperCase']()+_0x11021c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1192da)return _0x4bdcac;if('fontColor'===_0x4c08d1||'fontBackgroundColor'===_0x4c08d1){const _0xb5303d=_0xadfe1e(_0x3bc3b8['config']['get']('fontColor.colors'))['find'](_0x40c1d1=>_0x40c1d1['model']==_0x1192da);return _0x4bdcac+'\x20('+(_0xb5303d?_0x4be82b(_0xb5303d['label'])['toLowerCase']():_0x1192da)+')';}if('fontSize'===_0x4c08d1&&isNaN(parseFloat(_0x1192da))){const _0x4d171d=_0x3bc3b8['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3bc3b8['config']['get']('fontSize.options'))['find'](_0x1fcbf9=>_0x1fcbf9['model']==_0x1192da);return _0x4bdcac+'\x20('+(_0x4d171d?_0x4be82b(_0x4d171d['title'])['toLowerCase']():_0x1192da)+')';}return _0x4bdcac+'\x20('+_0x1192da+')';}class et extends _0x412245{['_headingOptions'];['afterInit'](){const _0x274e2c=this['editor'];if(!_0x274e2c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x274e2c['config']['get']('heading.options');const _0x4c54d4=_0x274e2c['locale'],_0x38bff2=_0x274e2c['plugins']['get']('TrackChangesEditing');_0x38bff2['enableDefaultAttributesIntegration']('heading');for(const _0x1e2310 of this['_headingOptions'])'paragraph'!=_0x1e2310['model']&&_0x38bff2['descriptionFactory']['registerElementLabel'](_0x1e2310['model'],_0x3b67bc=>{const _0x1928bd=this['_getHeadingLevel'](_0x1e2310['model']);return null!==_0x1928bd?_0x53a12c(_0x3b67bc,_0x1928bd):_0x1005f3(_0x3b67bc,_0x1e2310['title']);});function _0x53a12c(_0x3741f5,_0x98ec7b){return c(_0x4c54d4,'ELEMENT_HEADING',[_0x3741f5,_0x98ec7b]);}function _0x1005f3(_0x5f0c58,_0x11f9e6){return c(_0x4c54d4,'ELEMENT_HEADING_CUSTOM',[_0x5f0c58,_0x11f9e6]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55a08e=this['editor'],_0x715edb=_0x55a08e['locale'];function _0x4cd1a0(_0x30275c,_0x44d4eb){return c(_0x715edb,'ELEMENT_HEADING_CUSTOM',[_0x30275c,_0x44d4eb]);}_0x55a08e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c4290=>{if('formatBlock'!=_0x3c4290['type'])return;const {data:_0xca0373}=_0x3c4290;if(_0xca0373&&'heading'==_0xca0373['commandName']){const _0x28d2e1=_0xca0373['commandParams'][0x0]['value'],_0x1c13be=this['_getHeadingLevel'](_0x28d2e1);if(null!==_0x1c13be)return{'type':'format','content':c(_0x715edb,'*Change\x20to:*\x20%0',(_0x3fb09b=0x1,_0x6c8b19=_0x1c13be,c(_0x715edb,'ELEMENT_HEADING',[_0x3fb09b,_0x6c8b19])))};const _0x51c29a=this['_headingOptions']['find'](_0x1f7704=>_0x1f7704['model']===_0x28d2e1)['title'];return{'type':'format','content':c(_0x715edb,'*Change\x20to:*\x20%0',_0x4cd1a0(0x1,_0x51c29a))};}var _0x3fb09b,_0x6c8b19;});}['_getHeadingLevel'](_0xc52e5){const _0x13f679=_0xc52e5['match'](/^heading(\d+)/);if(_0x13f679)return _0x13f679[0x1];const _0x2f9383=this['_headingOptions']?.['find'](_0x25fe71=>_0x25fe71['model']==_0xc52e5);if(_0x2f9383&&_0x2f9383['view']){const _0x11e0d1=_0x2f9383['view'],_0x185236=(_0x11e0d1['name']??_0x11e0d1)['match'](/^h(\d+)/);if(_0x185236)return _0x185236[0x1];}return null;}}class nt extends _0x412245{['afterInit'](){const _0x1a739a=this['editor'];if(!_0x1a739a['plugins']['has']('HighlightEditing'))return;const _0x242314=_0x1a739a['plugins']['get']('TrackChangesEditing'),_0x2fa168=_0x1a739a['locale'];_0x242314['enableDefaultAttributesIntegration']('highlight'),_0x242314['registerInlineAttribute']('highlight'),_0x242314['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x2fa168,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfcef68=this['editor'],_0x31703d=_0xfcef68['locale'];_0xfcef68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe1f18a=>{if('formatInline'!=_0xe1f18a['type'])return;const {data:_0x1af7fb}=_0xe1f18a;if(_0x1af7fb&&'highlight'==_0x1af7fb['commandName']){const _0x2ff714=_0x31703d['t'],_0x5381f4=_0x1af7fb['commandParams'][0x0]['value'];if(_0x5381f4){const _0x4212e2=_0xfcef68['config']['get']('highlight.options')['find'](_0x352159=>_0x352159['model']==_0x5381f4),_0x312cc4=_0x2ff714(_0x4212e2['title'])['toLowerCase']();return{'type':'format','content':c(_0x31703d,'*Set\x20highlight:*\x20%0',_0x312cc4),'color':{'value':_0x4212e2['color'],'title':_0x4212e2['title']}};}return{'type':'format','content':c(_0x31703d,'*Remove\x20highlight*',c(_0x31703d,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x412245{['afterInit'](){const _0x2b2373=this['editor'];if(!_0x2b2373['plugins']['has']('HorizontalLineEditing'))return;_0x2b2373['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x18d3a3=_0x2b2373['plugins']['get']('TrackChangesEditing'),_0x408023=_0x2b2373['locale'];_0x18d3a3['descriptionFactory']['registerElementLabel']('horizontalLine',_0xb3cc7d=>c(_0x408023,'ELEMENT_HORIZONTAL_LINE',_0xb3cc7d)),_0x2b2373['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x157d2c,{writer:_0x33f2c2,options:_0x2ce49c})=>{if(!_0x2ce49c['showSuggestionHighlights'])return null;const _0x27166a=_0x33f2c2['createContainerElement']('div'),_0x583954=_0x33f2c2['createEmptyElement']('hr');return _0x33f2c2['addClass']('ck-horizontal-line',_0x27166a),_0x33f2c2['insert'](_0x33f2c2['createPositionAt'](_0x27166a,0x0),_0x583954),_0x27166a;},'converterPriority':'high'});}}class ot extends _0x412245{['afterInit'](){const _0x57285d=this['editor'];if(!_0x57285d['plugins']['has']('HtmlEmbed'))return;const _0x14a010=_0x57285d['plugins']['get']('TrackChangesEditing'),_0x5b0aa9=_0x57285d['locale'];_0x14a010['descriptionFactory']['registerElementLabel']('rawHtml',_0x57309a=>c(_0x5b0aa9,'ELEMENT_HTML_EMBED',_0x57309a)),_0x14a010['enableDefaultAttributesIntegration']('htmlEmbed'),_0x14a010['registerBlockAttribute']('value'),_0x14a010['descriptionFactory']['registerDescriptionCallback'](_0x513035=>{if('attribute'!=_0x513035['type'])return;const {data:_0x59f514}=_0x513035;if(_0x59f514&&'value'==_0x59f514['key']&&_0x513035['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x6948d7=c(_0x5b0aa9,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5b0aa9,'*Change\x20%0\x20content*',_0x6948d7)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fcfbe=this['editor'],_0x4ac9b9=_0x4fcfbe['locale'];_0x4fcfbe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d8fe9=>{if('formatBlock'!=_0x3d8fe9['type'])return;const {data:_0x411675}=_0x3d8fe9;if(_0x411675&&'htmlEmbed'==_0x411675['commandName']){const _0x47357b=c(_0x4ac9b9,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x4ac9b9,'*Change\x20%0\x20content*',_0x47357b)};}});}}class rt extends _0x412245{['afterInit'](){const _0xb28323=this['editor'];if(!_0xb28323['plugins']['has']('ImageEditing'))return;const _0x20d0f1=_0xb28323['plugins']['get']('TrackChangesEditing'),_0x3567f=_0xb28323['plugins']['get']('ImageUtils'),_0x39df38=_0xb28323['locale'];_0x20d0f1['enableCommand']('insertImage'),_0x20d0f1['descriptionFactory']['registerElementLabel']('imageBlock',_0x61b9e5=>c(_0x39df38,'ELEMENT_IMAGE',_0x61b9e5)),_0x20d0f1['descriptionFactory']['registerElementLabel']('imageInline',_0x5c9ef1=>c(_0x39df38,'ELEMENT_INLINE_IMAGE',_0x5c9ef1)),_0x20d0f1['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x39df38,'ELEMENT_CAPTION')),_0xb28323['plugins']['has']('ImageUploadEditing')&&_0x20d0f1['enableCommand']('uploadImage'),_0xb28323['plugins']['has']('ImageBlockEditing')&&_0xb28323['plugins']['has']('ImageInlineEditing')&&(_0x20d0f1['enableCommand']('imageTypeInline',(_0x2bcd72,_0x438a78)=>{const _0x2fd809=_0x3567f['getClosestSelectedImageElement'](_0xb28323['model']['document']['selection']);_0xb28323['model']['change'](()=>{_0x20d0f1['markBlockFormat'](_0x2fd809,{'commandName':'imageTypeInline','commandParams':[_0x438a78]},[],'convertBlockImageToInline');});}),_0x20d0f1['enableCommand']('imageTypeBlock',(_0x9212d9,_0x18af65)=>{_0xb28323['model']['change'](_0x387f15=>{let _0x291084=_0x3567f['getClosestSelectedImageElement'](_0xb28323['model']['document']['selection']),_0x4df817=_0x387f15['createRangeOn'](_0x291084);const _0x569cfc=_0x37190b['fromPosition'](_0x4df817['start'],'toPrevious'),_0x3abd97=_0x37190b['fromPosition'](_0x4df817['end'],'toNext');_0x20d0f1['forceDefaultExecution'](()=>_0x9212d9(_0x18af65)),_0x291084=_0x3567f['getClosestSelectedImageElement'](_0xb28323['model']['document']['selection']),_0x4df817=_0x387f15['createRangeOn'](_0x291084);const _0x4ef499=_0x387f15['createRange'](_0x569cfc,_0x3abd97);_0x569cfc['detach'](),_0x3abd97['detach'](),_0x20d0f1['markBlockFormat'](_0x291084,{'commandName':'imageTypeInline','commandParams':[_0x18af65]},[],'convertInlineImageToBlock'),_0x4ef499['start']['isBefore'](_0x4df817['start'])&&_0x20d0f1['markInsertion'](_0x387f15['createRange'](_0x4ef499['start'],_0x4df817['start']),'convertInlineImageToBlock'),_0x4df817['end']['isBefore'](_0x4ef499['end'])&&_0x20d0f1['markInsertion'](_0x387f15['createRange'](_0x4df817['end'],_0x4ef499['end']),'convertInlineImageToBlock');});}),_0x20d0f1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x20d0f1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x20d0f1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x20d0f1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x20d0f1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x20d0f1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x57044f])=>{const _0x4372ee=_0x20d0f1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5805f0=_0x57044f['start'],_0x2d8c82=_0x57044f['end'];const _0x33e8aa=_0xb28323['model']['schema']['getNearestSelectionRange'](_0x5805f0,'backward'),_0x1b925f=_0xb28323['model']['schema']['getNearestSelectionRange'](_0x2d8c82,'forward');_0x33e8aa['isCollapsed']&&(_0x5805f0=_0x33e8aa['start']),_0x1b925f['isCollapsed']&&(_0x2d8c82=_0x1b925f['end']),_0x4372ee([_0xb28323['model']['createRange'](_0x5805f0,_0x2d8c82)]);}),_0x20d0f1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3c7cc5),_0x20d0f1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3c7cc5)),_0xb28323['plugins']['has']('ImageCaptionEditing')&&(_0x20d0f1['enableCommand']('toggleImageCaption',(_0xca489f,_0x21a4cd)=>{const _0x638baa=_0xb28323['plugins']['get']('ImageCaptionUtils');let _0x167e80=_0x3567f['getClosestSelectedImageElement'](_0xb28323['model']['document']['selection']),_0x55450a=_0x638baa['getCaptionFromImageModelElement'](_0x167e80);_0xb28323['model']['change'](()=>{if(_0x55450a)return void _0x20d0f1['markDeletion'](_0xb28323['model']['createRangeOn'](_0x55450a));const _0x5af7a7=_0x3567f['isBlockImage'](_0x167e80);_0xca489f(_0x21a4cd),_0x167e80=_0x3567f['getClosestSelectedImageElement'](_0xb28323['model']['document']['selection']),_0x55450a=_0x638baa['getCaptionFromImageModelElement'](_0x167e80),_0x20d0f1['markInsertion'](_0xb28323['model']['createRangeOn'](_0x55450a),_0x5af7a7?null:'imageCaption');});}),_0x20d0f1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3c7cc5));const _0x28bdf0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1717c3(_0x50bf06,_0x3bbb22){const _0x401a1a=_0x28bdf0['findIndex'](({type:_0x2c7b61,subType:_0xd2e5d4})=>_0x50bf06['type']==_0x2c7b61&&_0x50bf06['subType']==_0xd2e5d4),_0x456c9c=_0x28bdf0['findIndex'](({type:_0x31f2b2,subType:_0x5b4c66})=>_0x3bbb22['type']==_0x31f2b2&&_0x3bbb22['subType']==_0x5b4c66);if(_0x401a1a<0x0||_0x456c9c<0x0)return!0x1;const _0xcbd9ef=_0x50bf06['getFirstRange'](),_0x1fec3e=_0x3bbb22['getFirstRange']();if((0x0==_0x401a1a||0x1==_0x401a1a)&&0x2==_0x456c9c&&_0xcbd9ef['isIntersecting'](_0x1fec3e))return!0x0;if(0x2==_0x401a1a&&0x3==_0x456c9c){const _0x146570=_0x20d0f1['_findSuggestions'](_0xcbd9ef,'insertion')['filter'](({suggestion:_0x56af53,meta:_0x421d72})=>_0x421d72['isOwn']&&'convertInlineImageToBlock'==_0x56af53['subType']);if(_0x146570['length']>0x1&&_0x1fec3e['end']['isEqual'](_0xcbd9ef['start']))return!0x0;if(0x1==_0x146570['length']&&(_0xcbd9ef['start']['isEqual'](_0x1fec3e['end'])||_0xcbd9ef['end']['isEqual'](_0x1fec3e['start'])))return!0x0;}if(0x3==_0x401a1a&&0x3==_0x456c9c&&_0xcbd9ef['start']['isBefore'](_0x1fec3e['start'])){const _0x4052f8=_0xcbd9ef['end']['nodeAfter'],_0x1d9ff1=_0x1fec3e['start']['nodeBefore'];return _0x3567f['isBlockImage'](_0x4052f8)&&_0x4052f8===_0x1d9ff1;}return!0x1;}function _0x3c7cc5(_0x5b990d,_0x12b31e){return _0x1717c3(_0x5b990d,_0x12b31e)?[_0x5b990d,_0x12b31e]:_0x1717c3(_0x12b31e,_0x5b990d)?[_0x12b31e,_0x5b990d]:null;}_0xb28323['plugins']['has']('ImageResize')&&(_0x20d0f1['enableDefaultAttributesIntegration']('resizeImage'),_0x20d0f1['registerBlockAttribute']('resizedWidth'),_0x20d0f1['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x39df38,'FORMAT_IMAGE_SIZE'))),_0xb28323['plugins']['has']('ImageTextAlternativeEditing')&&(_0x20d0f1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x20d0f1['registerBlockAttribute']('alt')),_0xb28323['plugins']['has']('PictureEditing')&&(_0x20d0f1['registerBlockAttribute']('sources'),_0x20d0f1['descriptionFactory']['registerDescriptionCallback'](_0x4da6a6=>{if('attribute'!=_0x4da6a6['type'])return;const {data:_0x3e9df9}=_0x4da6a6;return _0x3e9df9&&'sources'==_0x3e9df9['key']?{'type':'format','content':''}:void 0x0;})),_0xb28323['plugins']['has']('ImageSizeAttributes')&&(_0x20d0f1['registerBlockAttribute']('width'),_0x20d0f1['registerBlockAttribute']('height'),_0x20d0f1['descriptionFactory']['registerDescriptionCallback'](_0x19d510=>{if('attribute'!=_0x19d510['type'])return;const {data:_0x202649}=_0x19d510;return!_0x202649||'width'!=_0x202649['key']&&'height'!=_0x202649['key']?void 0x0:{'type':'format','content':''};})),_0x20d0f1['descriptionFactory']['registerDescriptionCallback'](_0x1d6bc5=>{if(!!_0x28bdf0['find'](({type:_0x2f0135,subType:_0x31bae3})=>_0x1d6bc5['type']==_0x2f0135&&_0x1d6bc5['subType']==_0x31bae3))return _0x1d6bc5['previous']?{}:void 0x0;}),_0x20d0f1['descriptionFactory']['registerDescriptionCallback'](_0x9ac2ee=>{if('insertion'==_0x9ac2ee['type']||'deletion'==_0x9ac2ee['type']){const _0x66f8c1=_0x9ac2ee['getContainedElement']();if(_0x66f8c1&&_0x66f8c1['is']('element','caption'))return{'type':'insertion'==_0x9ac2ee['type']?'addObject':'removeObject','element':_0x66f8c1,'quantity':0x1};}}),_0x20d0f1['descriptionFactory']['registerDescriptionCallback'](_0x4e1de0=>'formatBlock'==_0x4e1de0['type']&&'convertInlineImageToBlock'==_0x4e1de0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4e1de0['type']&&'convertBlockImageToInline'==_0x4e1de0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x20d0f1['descriptionFactory']['registerDescriptionCallback'](_0x5468b0=>{if('attribute'!=_0x5468b0['type'])return;const {data:_0xa18294}=_0x5468b0;if(!_0xa18294||'alt'!=_0xa18294['key'])return;const _0x516cd7=_0xa18294['newValue'];return _0x516cd7?{'type':'format','content':c(_0x39df38,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x516cd7+'\x22')}:{'type':'format','content':c(_0x39df38,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52dd2c=this['editor'],_0x72d01b=_0x52dd2c['locale'];_0x52dd2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x463023=>{if('formatBlock'!=_0x463023['type']&&'formatInline'!=_0x463023['type'])return;const {data:_0x20212f}=_0x463023;if(_0x20212f){if('imageTextAlternative'==_0x20212f['commandName']){const _0x48adab=_0x20212f['commandParams'][0x0]['newValue'];return _0x48adab?{'type':'format','content':c(_0x72d01b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x48adab+'\x22')}:{'type':'format','content':c(_0x72d01b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x20212f['commandName']){const _0x5213a3=_0x20212f['commandParams'][0x0]['width'];return _0x5213a3?{'type':'format','content':c(_0x72d01b,'*Set\x20image\x20width:*\x20%0',_0x5213a3)}:{'type':'format','content':c(_0x72d01b,'*Reset\x20image\x20width*')};}}});}}class at extends _0x412245{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x383388=this['editor']['locale'],_0x118f8f=this['editor']['plugins']['get']('TrackChangesEditing');_0x118f8f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x118f8f['registerBlockAttribute']('src'),_0x118f8f['descriptionFactory']['registerDescriptionCallback'](_0x2f336a=>{if('attribute'!=_0x2f336a['type'])return;const {data:_0x2b204b}=_0x2f336a;return _0x2b204b&&'src'==_0x2b204b['key']?_0x2b204b['newValue']&&_0x2b204b['oldValue']?{'type':'format','content':c(_0x383388,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x220f2d=this['editor']['plugins']['get']('TrackChangesEditing');_0x220f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x220f2d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x220f2d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x220f2d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x488184=this['editor'],_0x2ac863=_0x488184['locale'];_0x488184['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22c15d=>{if('formatBlock'!=_0x22c15d['type']&&'formatInline'!=_0x22c15d['type'])return;const {data:_0x433e3d}=_0x22c15d;if(!_0x433e3d||'replaceImageSource'!=_0x433e3d['commandName'])return;return{'type':'format','content':c(_0x2ac863,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x412245{['afterInit'](){const _0x425089=this['editor'];if(!_0x425089['plugins']['has']('ImageStyleEditing'))return;const _0x27f0de=_0x425089['plugins']['get']('TrackChangesEditing'),_0x23c8a=_0x425089['plugins']['get']('ImageUtils'),_0x3b7872={};_0x27f0de['enableCommand']('imageStyle',(_0x76d359,_0x6fc2c1)=>{const _0x50f2d4=_0x425089['plugins']['get']('Users')['me'],_0x3c94e5=_0x425089['commands']['get']('imageStyle');let _0x13bb71=_0x23c8a['getClosestSelectedImageElement'](_0x425089['model']['document']['selection']),_0x15d255=_0x425089['model']['createRangeOn'](_0x13bb71),_0x12f3fb=_0x3c94e5['value'];if(_0x12f3fb==_0x6fc2c1['value'])return;const _0x4f9bfe={'commandName':'imageStyle','commandParams':[_0x6fc2c1],'formatGroupId':_0x399ad3()};_0x425089['model']['change'](()=>{if(_0x27f0de['getSuggestions']()['filter'](_0x42c856=>_0x42c856['isInContent']&&_0x50f2d4==_0x42c856['author']&&('formatBlock'==_0x42c856['type']||'formatInline'==_0x42c856['type'])&&('imageStylePreApply'==_0x42c856['subType']||'imageStylePostApply'==_0x42c856['subType'])&&_0x42c856['getFirstRange']()['isEqual'](_0x15d255))['forEach'](_0x1ea783=>_0x27f0de['discardSuggestion'](_0x1ea783['head'])),_0x13bb71=_0x23c8a['getClosestSelectedImageElement'](_0x425089['model']['document']['selection']),_0x15d255=_0x425089['model']['createRangeOn'](_0x13bb71),_0x3c94e5['refresh'](),_0x425089['commands']['get']('imageTypeInline')['refresh'](),_0x425089['commands']['get']('imageTypeBlock')['refresh'](),_0x12f3fb=_0x3c94e5['value'],_0x12f3fb!=_0x6fc2c1['value'])return _0x23c8a['isInlineImage'](_0x13bb71)&&_0x3c94e5['shouldConvertImageType'](_0x6fc2c1['value'],_0x13bb71)?(_0x76d359({..._0x6fc2c1,'setImageSizes':!0x1}),_0x13bb71=_0x23c8a['getClosestSelectedImageElement'](_0x425089['model']['document']['selection']),void _0x27f0de['markBlockFormat'](_0x13bb71,{..._0x4f9bfe,'commandReversedParams':[{'value':_0x12f3fb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x23c8a['isBlockImage'](_0x13bb71)?_0x27f0de['markBlockFormat'](_0x13bb71,_0x4f9bfe,[],'imageStylePostApply'):_0x27f0de['markInlineFormat'](_0x15d255,_0x4f9bfe,'imageStylePostApply'));});});for(const _0x501ba1 of _0x425089['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3b7872[_0x501ba1['name']]=_0x501ba1['title']['toLowerCase']();_0x27f0de['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x27f0de['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x27f0de['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x27f0de['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1a595b])=>{_0x23c8a['setImageNaturalSizeAttributes'](_0x1a595b['getContainedElement']());}),_0x27f0de['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x452390,_0x2e3ff8)=>{_0x27f0de['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x452390,{'commandName':_0x2e3ff8['commandName'],'commandParams':_0x2e3ff8['commandReversedParams']});}),_0x27f0de['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3b1e71,_0x46e695){if(_0x54a607(_0x3b1e71,_0x46e695))return[_0x3b1e71,_0x46e695];if(_0x54a607(_0x46e695,_0x3b1e71))return[_0x46e695,_0x3b1e71];return null;});const _0x400887=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x54a607(_0x2a69c1,_0x5c9d5d){const _0x1b77a7=_0x400887['findIndex'](({type:_0x3188f3,subType:_0x4bb4c0})=>_0x2a69c1['type']==_0x3188f3&&_0x2a69c1['subType']==_0x4bb4c0),_0x18ce2d=_0x400887['findIndex'](({type:_0x211199,subType:_0x4f046c})=>_0x5c9d5d['type']==_0x211199&&_0x5c9d5d['subType']==_0x4f046c);if(_0x1b77a7<0x0||_0x18ce2d<0x0)return!0x1;const _0x5be472=_0x2a69c1['getFirstRange'](),_0x549b4a=_0x5c9d5d['getFirstRange']();if((0x0==_0x1b77a7||0x1==_0x1b77a7)&&0x2==_0x18ce2d&&_0x5be472['isIntersecting'](_0x549b4a))return!0x0;if(0x2==_0x1b77a7&&0x3==_0x18ce2d){const _0x14e692=_0x27f0de['_findSuggestions'](_0x5be472,'insertion')['filter'](({suggestion:_0x6265f1,meta:_0x1e6f86})=>_0x1e6f86['isOwn']&&'convertInlineImageToBlock'==_0x6265f1['subType']);if(_0x14e692['length']>0x1&&_0x549b4a['end']['isEqual'](_0x5be472['start']))return!0x0;if(0x1==_0x14e692['length']&&(_0x5be472['start']['isEqual'](_0x549b4a['end'])||_0x5be472['end']['isEqual'](_0x549b4a['start'])))return!0x0;}if(0x3==_0x1b77a7&&0x3==_0x18ce2d&&_0x5be472['start']['isBefore'](_0x549b4a['start'])){const _0x4ab8dc=_0x5be472['end']['nodeAfter'],_0x77e4e3=_0x549b4a['start']['nodeBefore'];return _0x23c8a['isBlockImage'](_0x4ab8dc)&&_0x4ab8dc===_0x77e4e3;}return!0x1;}_0x425089['model']['document']['registerPostFixer'](()=>{let _0x49fdc3=!0x1;const _0x55f6b9=Array['from'](_0x425089['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x186ea6,data:_0x30fca1}of _0x55f6b9){const {group:_0x5e6876,type:_0x2d33df,subType:_0x328cfe,id:_0x435a78}=_0x27f0de['_splitMarkerName'](_0x186ea6);if('suggestion'==_0x5e6876&&_0x27f0de['hasSuggestion'](_0x435a78)){if('formatBlock'==_0x2d33df&&('imageStylePreApply'==_0x328cfe||'imageStylePostApply'==_0x328cfe)){const _0x58615c=_0x27f0de['getSuggestion'](_0x435a78);if(_0x30fca1['newRange']){const _0x2021e4=_0x58615c['getFirstRange']()['getContainedElement']();if(_0x23c8a['isBlockImage'](_0x2021e4))continue;_0x27f0de['discardSuggestion'](_0x58615c),_0x49fdc3=!0x0;}}if('insertion'==_0x2d33df&&'imageCaption'==_0x328cfe&&!_0x30fca1['newRange']){const _0x5e9c61=_0x27f0de['getSuggestion'](_0x435a78);_0x5e9c61['next']&&_0x5e9c61['next']['isInContent']&&(_0x27f0de['discardSuggestion'](_0x5e9c61['next']),_0x49fdc3=!0x0);}}}return _0x49fdc3;}),this['_registerLegacyDescription'](_0x3b7872);}['_registerLegacyDescription'](_0x91f4a7){const _0x28dbd2=this['editor'],_0x497041=_0x28dbd2['locale'];_0x28dbd2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5507ab=>{if('formatBlock'!=_0x5507ab['type']&&'formatInline'!=_0x5507ab['type'])return;const {data:_0x498de2}=_0x5507ab;if(!_0x498de2||'imageStyle'!=_0x498de2['commandName'])return;const _0x51cbb3=_0x498de2['commandParams'][0x0]['value'];return _0x5af882('side'===_0x51cbb3?c(_0x497041,'FORMAT_SIDE_IMAGE'):_0x91f4a7[_0x51cbb3]||_0x51cbb3);function _0x5af882(_0x8d6d01){return{'type':'format','content':c(_0x497041,'*Format:*\x20%0',_0x8d6d01)};}});}}class ut extends _0x412245{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3db150){super(_0x3db150),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2455d5=this['editor'],_0x30104c=_0x2455d5['commands']['get']('importWord'),_0x189433=_0x2455d5['commands']['get']('trackChanges');_0x30104c&&(_0x30104c['on']('execute',(_0x5623f0,[,_0x1e2def])=>{this['_trackChangesValueDuringImport']=_0x189433['value'],_0x1e2def['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x30104c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x30104c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x189433['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2455d5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x24699c,_0x1a2200){const {suggestions:_0x409b5b}=_0x1a2200,_0x2289ed=this['editor']['commands']['get']('trackChanges'),_0x535aff=_0x2289ed['value'];this['_trackChangesValueDuringImport']!==_0x535aff&&(_0x2289ed['execute'](),this['_trackChangesExecuted']=!0x0),_0x409b5b&&_0x409b5b['forEach'](({id:_0x2e9bb5,type:_0x2c53e9,author:_0x34f52b,created_at:_0x1a541e})=>{const _0x402768={'id':_0x2e9bb5,'type':_0x2c53e9,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x34f52b,'createdAt':_0x1a541e?new Date(_0x1a541e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x402768);});}}class ft extends _0x412245{['afterInit'](){const _0x4bdaec=this['editor'],_0x6ed705=_0x4bdaec['plugins']['get']('TrackChangesEditing');if(_0x4bdaec['plugins']['has']('IndentEditing')&&(_0x6ed705['enableCommand']('indent'),_0x6ed705['enableCommand']('outdent')),_0x4bdaec['plugins']['has']('IndentBlock')){for(const _0x3438ef of['indentBlock','outdentBlock'])_0x6ed705['enableDefaultAttributesIntegration'](_0x3438ef);}const _0x42c093=_0x4bdaec['locale'];_0x6ed705['registerBlockAttribute']('blockIndent'),_0x6ed705['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x42c093,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe00b94=this['editor'],_0x10855c=_0xe00b94['locale'],_0x505fc0=_0xe00b94['plugins']['get']('TrackChangesEditing');_0x505fc0['descriptionFactory']['registerDescriptionCallback'](_0x8dcd0b=>{if('formatBlock'!=_0x8dcd0b['type'])return;const {data:_0x33de63}=_0x8dcd0b;if(!_0x33de63)return;if('indentBlock'!=_0x33de63['commandName']&&'outdentBlock'!=_0x33de63['commandName'])return;const _0x179831=_0x8dcd0b['getItems']()[0x0],_0x1a98fc=_0x505fc0['descriptionFactory']['getItemLabel'](_0x179831);return'indentBlock'==_0x33de63['commandName']?{'type':'format','content':c(_0x10855c,'*Indent:*\x20%0',_0x1a98fc)}:'outdentBlock'==_0x33de63['commandName']?{'type':'format','content':c(_0x10855c,'*Outdent:*\x20%0',_0x1a98fc)}:void 0x0;});}}class ht extends _0x412245{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x412245{['afterInit'](){const _0x76df2=this['editor'];if(!_0x76df2['plugins']['has']('LinkEditing'))return;const _0x97739b=_0x76df2['plugins']['get']('TrackChangesEditing'),_0x3e240f=_0x76df2['commands']['get']('link');_0x97739b['enableDefaultAttributesIntegration']('link'),_0x97739b['enableDefaultAttributesIntegration']('unlink'),_0x97739b['registerInlineAttribute']('linkHref');for(const _0x5239b9 of _0x3e240f['manualDecorators'])_0x97739b['registerInlineAttribute'](_0x5239b9['id']),_0x97739b['descriptionFactory']['registerAttributeLabel'](_0x5239b9['id'],'link\x20('+_0x5239b9['label']['toLowerCase']()+')');_0x97739b['descriptionFactory']['registerDescriptionCallback'](_0x3f0400=>{if('attribute'!=_0x3f0400['type'])return;const {data:_0xf6ac9}=_0x3f0400;if(!_0xf6ac9||'linkHref'!=_0xf6ac9['key'])return;const _0x64d99c=_0xf6ac9['newValue'],_0x216923=_0x76df2['locale'];return{'type':'format','content':null==_0x64d99c?c(_0x216923,'*Remove\x20link*'):c(_0x216923,'*Set\x20link:*\x20%0','\x22'+_0x64d99c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb07909=this['editor'],_0x2febfb=_0xb07909['locale'];_0xb07909['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e015d=>{if('formatInline'!=_0x4e015d['type'])return;const {data:_0x4b12aa}=_0x4e015d;if(_0x4b12aa){if('link'==_0x4b12aa['commandName']){const _0x83bad2=_0x4b12aa['commandParams'][0x0];return{'type':'format','content':c(_0x2febfb,'*Set\x20link:*\x20%0','\x22'+_0x83bad2+'\x22')};}return'unlink'==_0x4b12aa['commandName']?{'type':'format','content':c(_0x2febfb,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x412245{['afterInit'](){const _0x592949=this['editor'],_0x42e6b7=_0x592949['locale'];if(!_0x592949['plugins']['has']('LegacyListEditing'))return;const _0x1374d7=_0x592949['plugins']['get']('TrackChangesEditing'),_0x1b1fe4=_0x592949['plugins']['has']('LegacyTodoListEditing');function _0x4cee9e(_0x1aff44){return()=>{const _0xe6fbd0=_0x592949['model']['document']['selection'],_0x1d6f29=_0x592949['commands']['get'](_0x1aff44);if(_0x1d6f29['value'])return void _0x592949['execute']('paragraph',{});const _0x5b2e74=_0x1aff44['slice'](0x0,-0x4),_0x29284d=function(_0x252033,_0x283684,_0x43f72a){let _0x21a45c=Array['from'](_0x252033)['filter'](_0x542c2a=>function(_0x306806,_0x4c772d){return _0x4c772d['checkChild'](_0x306806['parent'],'listItem')&&!_0x4c772d['isObject'](_0x306806);}(_0x542c2a,_0x43f72a));_0x21a45c=_0x21a45c['filter'](_0x26b36f=>!_0x26b36f['is']('element','listItem')||_0x26b36f['getAttribute']('listType')!=_0x283684);const _0x4b335e=new Set();for(const _0x96c1e2 of _0x21a45c)_0x96c1e2['is']('element','listItem')?_0x4b335e['add'](Le(_0x96c1e2)):_0x4b335e['add'](_0x96c1e2);return Array['from'](_0x4b335e);}(_0xe6fbd0['getSelectedBlocks'](),_0x5b2e74,_0x592949['model']['schema']);_0x592949['model']['change'](()=>{for(const _0x255a99 of _0x29284d)_0x1374d7['markBlockFormat'](_0x255a99,{'commandName':_0x1aff44,'commandParams':[{'forceValue':!_0x1d6f29['value']}],'formatGroupId':'blockName'},Ee(_0x255a99));});};}function _0x1f2c94(_0x35a32d){return()=>{const _0x52ca16=function(_0x102293){let _0x8de3d5=Array['from'](_0x102293);const _0x5e67e6=_0x8de3d5['findIndex'](_0x4530e4=>'listItem'!=_0x4530e4['name']);return _0x5e67e6>-0x1&&(_0x8de3d5=_0x8de3d5['slice'](0x0,_0x5e67e6)),_0x8de3d5;}(_0x592949['model']['document']['selection']['getSelectedBlocks']()),_0x145623=_0x592949['model']['createRange'](_0x592949['model']['createPositionAt'](_0x52ca16[0x0],'before'),_0x592949['model']['createPositionAt'](_0x52ca16[_0x52ca16['length']-0x1],'end'));_0x592949['model']['change'](()=>{_0x1374d7['markBlockFormat'](_0x145623,{'commandName':_0x35a32d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3edcba){const _0x4565b3=new Set();for(const _0x3bbaab of _0x3edcba){let _0x3811a8=_0x3bbaab['nextSibling'];for(;_0x3811a8&&_0x3811a8['getAttribute']('listIndent')>_0x3bbaab['getAttribute']('listIndent');)_0x4565b3['add'](_0x3811a8),_0x3811a8=_0x3811a8['nextSibling'];}return Array['from'](_0x4565b3);}(_0x52ca16));});};}_0x1374d7['enableCommand']('numberedList',_0x4cee9e('numberedList')),_0x1374d7['enableCommand']('bulletedList',_0x4cee9e('bulletedList')),_0x1b1fe4&&_0x1374d7['enableCommand']('todoList',_0x4cee9e('todoList')),_0x1374d7['enableCommand']('indentList',_0x1f2c94('indentList')),_0x1374d7['enableCommand']('outdentList',_0x1f2c94('outdentList')),_0x1b1fe4&&_0x1374d7['enableCommand']('checkTodoList',()=>{const _0x41efdd=_0x592949['commands']['get']('checkTodoList'),_0x3f4bba=Array['from'](_0x41efdd['_selectedElements']);_0x3f4bba['filter'](_0x2f2abf=>_0x2f2abf['getAttribute']('todoListChecked')!=_0x41efdd['value']),_0x592949['model']['change'](()=>{for(const _0x17c3ee of _0x3f4bba)_0x1374d7['markBlockFormat'](_0x17c3ee,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x41efdd['value']}]});});}),_0x1374d7['descriptionFactory']['registerElementLabel']('listItem',_0x3aac29=>c(_0x42e6b7,'ELEMENT_LIST_ITEM',_0x3aac29)),_0x1374d7['descriptionFactory']['registerDescriptionCallback'](_0x3d478e=>{if('formatBlock'!=_0x3d478e['type']&&'formatInline'!=_0x3d478e['type'])return;const {data:_0x30d380}=_0x3d478e;if(_0x30d380){if('numberedList'==_0x30d380['commandName']||'bulletedList'==_0x30d380['commandName']||'todoList'==_0x30d380['commandName'])switch(_0x30d380['commandName']['replace']('List','')){case'bulleted':return _0x374913(c(_0x42e6b7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x374913(c(_0x42e6b7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x374913(c(_0x42e6b7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x30d380['commandName'])return{'type':'format','content':c(_0x42e6b7,'*Indent:*\x20%0',c(_0x42e6b7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x30d380['commandName'])return{'type':'format','content':c(_0x42e6b7,'*Outdent:*\x20%0',c(_0x42e6b7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x30d380['commandName'])return _0x30d380['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x42e6b7,'*Check\x20item*')}:{'type':'format','content':c(_0x42e6b7,'*Uncheck\x20item*')};}function _0x374913(_0x5bc924){return{'type':'format','content':c(_0x42e6b7,'*Change\x20to:*\x20%0',_0x5bc924)};}});}}function Le(_0x2247a9){const _0x13680b=_0x2247a9['getAttribute']('listIndent');if(0x0==_0x13680b)return _0x2247a9;let _0x3ad0ab=_0x2247a9;for(;_0x2247a9['previousSibling']&&_0x2247a9['previousSibling']['is']('element','listItem');){const _0x1c6dca=_0x2247a9['previousSibling']['getAttribute']('listIndent');if(_0x1c6dca==_0x13680b)_0x3ad0ab=_0x2247a9['previousSibling'];else{if(_0x1c6dca<_0x13680b)break;}_0x2247a9=_0x2247a9['previousSibling'];}return _0x3ad0ab;}function Ee(_0x4b374d){const _0x2327d7=[];if(_0x4b374d['is']('element','listItem')&&_0x4b374d['getAttribute']('listIndent')>0x0){let _0x55ab6e=_0x4b374d['nextSibling'];for(;_0x55ab6e&&'listItem'==_0x55ab6e['name']&&_0x55ab6e['getAttribute']('listIndent')==_0x4b374d['getAttribute']('listIndent');)_0x2327d7['push'](_0x55ab6e),_0x55ab6e=_0x55ab6e['nextSibling'];}return _0x2327d7;}class Q extends _0x412245{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xfddf6f=this['editor']['config']['get']('list.properties'),_0x340edd=this['editor']['plugins']['get']('TrackChangesEditing');_0xfddf6f['styles']&&_0x340edd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xfddf6f['reversed']&&_0x340edd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xfddf6f['startIndex']&&_0x340edd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x340edd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x28c6e7,_0x2513f7={}){const _0x5224c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50b4fc=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5224c['markMultiRangeBlockFormat'](_0x50b4fc,{'commandName':'listStyle','commandParams':[{'type':_0x2513f7['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1a87f6,_0x33eab4={}){const _0x1f545f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19d5fa=this['_getSuggestionBlocks'](_0x3cb672=>_0x3cb672['is']('element','listItem')&&'numbered'===_0x3cb672['getAttribute']('listType'));if(_0x19d5fa['length']<0x1)return;const _0x560d11=_0x19d5fa['map'](_0x157a35=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x157a35,'before'),this['editor']['model']['createPositionAt'](_0x157a35,0x0)));this['editor']['model']['change'](()=>{_0x1f545f['markMultiRangeBlockFormat'](_0x560d11,{'commandName':'listReversed','commandParams':[{'reversed':_0x33eab4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1acc58,_0xb1463d={}){const _0x28984c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3552b7=this['_getSuggestionBlocks'](_0x279ebe=>_0x279ebe['is']('element','listItem')&&'numbered'===_0x279ebe['getAttribute']('listType'));if(_0x3552b7['length']<0x1)return;const _0xa731c0=_0x3552b7['map'](_0x577ded=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x577ded,'before'),this['editor']['model']['createPositionAt'](_0x577ded,0x0)));this['editor']['model']['change'](()=>{_0x28984c['markMultiRangeBlockFormat'](_0xa731c0,{'commandName':'listStart','commandParams':[{'startIndex':_0xb1463d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3c4ebf){if('formatBlock'!=_0x3c4ebf['type']&&'formatInline'!=_0x3c4ebf['type'])return;const _0x2d52f0=this['editor']['locale'],{data:_0x2838c9}=_0x3c4ebf;if(!_0x2838c9)return;let _0x10fead,_0x3b65cd;switch(_0x2838c9['commandName']){case'listStyle':_0x10fead='*Change\x20to:*\x20%0',_0x3b65cd={'type':'format','content':c(_0x2d52f0,_0x10fead,c(_0x2d52f0,this['_getTranslationKeyForListStyle'](_0x2838c9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x10fead=_0x2838c9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3b65cd={'type':'format','content':c(_0x2d52f0,_0x10fead)};break;case'listStart':_0x10fead='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3b65cd={'type':'format','content':c(_0x2d52f0,_0x10fead,_0x2838c9['commandParams'][0x0]['startIndex'])};}return _0x3b65cd;}['_getSuggestionBlocksForListStyle'](){const _0x2f256c=this['editor']['plugins']['get']('LegacyListUtils');let _0x1489fa=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1489fa[0x0]?.['is']('element','listItem')&&_0x1489fa['unshift'](..._0x2f256c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1489fa[_0x1489fa['length']-0x1]?.['is']('element','listItem')&&_0x1489fa['push'](..._0x2f256c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1489fa=[...new Set(_0x1489fa)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1489fa=_0x1489fa['filter'](_0x2e0f3c=>_0x2e0f3c['is']('element','listItem'))),_0x1489fa;}['_getSuggestionBlocks'](_0x1a5e6d){const _0x59b20b=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b4164=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1a5e6d)['map'](_0xf38291=>{const _0x4c4b29=this['editor']['model']['createPositionAt'](_0xf38291,0x0);return[..._0x59b20b['getSiblingNodes'](_0x4c4b29,'backward'),..._0x59b20b['getSiblingNodes'](_0x4c4b29,'forward')];})['flat']();return _0x4b4164=[...new Set(_0x4b4164)],_0x4b4164;}['_getTranslationKeyForListStyle'](_0x515e75){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x515e75)||'default')['toUpperCase']()+'_LIST_'+_0x515e75['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x412245{['afterInit'](){const _0x4df346=this['editor'];if(!_0x4df346['plugins']['has']('MediaEmbedEditing'))return;const _0x5a6b2c=_0x4df346['plugins']['get']('TrackChangesEditing'),_0x57f6ef=_0x4df346['locale'];_0x5a6b2c['enableCommand']('mediaEmbed'),_0x5a6b2c['descriptionFactory']['registerElementLabel']('media',_0x6b1b11=>c(_0x57f6ef,'ELEMENT_MEDIA',_0x6b1b11)),_0x4df346['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x794f64,{writer:_0x2ab998,options:_0x5bc25f})=>{if(_0x5bc25f['showSuggestionHighlights'])return _0x2ab998['createEmptyElement']('div');},'converterPriority':'high'}),_0x4df346['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3dd7c0,_0xb38991,_0x32bba9)=>{_0x32bba9['options']['showSuggestionHighlights']&&_0x3dd7c0['stop']();},{'priority':'high'});}}class pt extends _0x412245{['afterInit'](){const _0x26495d=this['editor'];_0x26495d['plugins']['has']('MentionEditing')&&_0x26495d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x412245{['afterInit'](){const _0x5155f6=this['editor'];if(!_0x5155f6['plugins']['has']('MergeFieldsEditing'))return;const _0x344d89=_0x5155f6['plugins']['get']('TrackChangesEditing'),_0x2e62f1=_0x5155f6['locale'];_0x344d89['enableCommand']('insertMergeField'),_0x344d89['enableCommand']('insertMergeFieldBlock'),_0x344d89['enableCommand']('insertMergeFieldImage'),_0x344d89['descriptionFactory']['registerElementLabel']('mergeField',_0x3f2254=>c(_0x2e62f1,'ELEMENT_MERGE_FIELD',_0x3f2254)),_0x344d89['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2a292f=>c(_0x2e62f1,'ELEMENT_MERGE_FIELD',_0x2a292f)),_0x344d89['descriptionFactory']['registerDescriptionCallback'](_0x302531=>{if('insertion'!=_0x302531['type']&&'deletion'!=_0x302531['type'])return;const _0x3ad56d=_0x302531['getContainedElement']();if(null==_0x3ad56d)return;const _0x91d7e6=_0x5155f6['plugins']['get']('MergeFieldsEditing');let _0x4a506f;switch(_0x91d7e6['getMergeFieldType'](_0x3ad56d)){case null:return;case'image':{const _0x4cf238=_0x91d7e6['unwrapAffixes'](_0x3ad56d['getAttribute']('src'));_0x4a506f=_0x91d7e6['getLabel'](_0x4cf238)||_0x4cf238;break;}default:{const _0x39a81e=_0x3ad56d['getAttribute']('id');_0x4a506f=_0x91d7e6['getLabel'](_0x39a81e)||_0x39a81e;break;}}return'insertion'==_0x302531['type']?{'type':'insertion','content':c(_0x2e62f1,'*Insert:*\x20%0','\x22'+_0x4a506f+'\x22\x20'+c(_0x2e62f1,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x2e62f1,'*Remove:*\x20%0','\x22'+_0x4a506f+'\x22\x20'+c(_0x2e62f1,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x412245{['afterInit'](){const _0x5f0b38=this['editor'],_0x259016=_0x5f0b38['plugins']['get']('TrackChangesEditing');_0x5f0b38['plugins']['has']('MultiLevelList')&&(_0x259016['enableDefaultAttributesIntegration']('multiLevelList'),_0x259016['registerBlockAttribute']('listMarkerStyle'),_0x259016['descriptionFactory']['registerDescriptionCallback'](_0x2af6d4=>this['handleDescriptions'](_0x2af6d4)));}['handleDescriptions'](_0x532ced){const _0x507dd0=this['editor']['locale'],{data:_0xfeb5fa}=_0x532ced,_0xf5685c={'type':'format','content':''};if(_0xfeb5fa&&'listMarkerStyle'==_0xfeb5fa['key']){if(!_0xfeb5fa['oldValue'])return{'type':'format','content':c(_0x507dd0,'*Set\x20format:*\x20%0',c(_0x507dd0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xfeb5fa['newValue']+')'};if(!_0xfeb5fa['newValue']){let _0x5d5992=_0x532ced['head'];for(;_0x5d5992;){if(_0x5d5992['data']&&'listType'==_0x5d5992['data']['key']&&_0x5d5992['data']['newValue'])return _0xf5685c;_0x5d5992=_0x5d5992['next'];}return{'type':'format','content':c(_0x507dd0,'*Remove\x20format:*\x20%0',c(_0x507dd0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xfeb5fa['oldValue']+')'};}}}}class bt extends _0x412245{['afterInit'](){const _0x10a917=this['editor'];if(!_0x10a917['plugins']['has']('PageBreakEditing'))return;_0x10a917['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3c5554=_0x10a917['plugins']['get']('TrackChangesEditing'),_0x330db4=_0x10a917['locale'];_0x3c5554['descriptionFactory']['registerElementLabel']('pageBreak',_0x4d88d9=>c(_0x330db4,'ELEMENT_PAGE_BREAK',_0x4d88d9));}}class yt extends _0x412245{['afterInit'](){const _0x1e8bed=this['editor'];if(!_0x1e8bed['plugins']['has']('Paragraph'))return;const _0x34081f=_0x1e8bed['locale'],_0x4c3937=_0x1e8bed['plugins']['get']('TrackChangesEditing');_0x4c3937['descriptionFactory']['registerElementLabel']('paragraph',_0x5bf572=>c(_0x34081f,'ELEMENT_PARAGRAPH',_0x5bf572)),_0x4c3937['enableDefaultAttributesIntegration']('paragraph'),_0x4c3937['enableCommand']('insertParagraph'),_0x1e8bed['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1e8bed),{'priority':'highest'}),_0x1e8bed['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5b1c9b,_0x27309b,_0x496330)=>{_0x496330['options']['showSuggestionHighlights']&&nr(_0x1e8bed,{'showActiveMarker':!0x1})(_0x5b1c9b,_0x27309b,_0x496330);},{'priority':'highest'});const _0x2518d0=_0x4c3937['descriptionFactory'];_0x2518d0['registerDescriptionCallback'](_0x3e3fc8=>{if('insertion'!==_0x3e3fc8['type'])return;const {start:_0x2ebb97,end:_0x1d043a}=_0x3e3fc8['getFirstRange']();if(!_0x2ebb97['isTouching'](_0x1d043a)||!_0x2ebb97['nodeAfter'])return;const _0x6ef143=_0x1e8bed['model']['schema'],_0x3cab05=_0x2ebb97['nodeAfter'];return _0x6ef143['isBlock'](_0x3cab05)&&!_0x6ef143['isLimit'](_0x3cab05)&&_0x6ef143['checkChild'](_0x3cab05,'$text')?{'type':'insertion','content':c(_0x34081f,'*Insert:*\x20%0',_0x2518d0['getItemLabel'](_0x3cab05,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x498902=this['editor'],_0x56aff4=_0x498902['locale'];_0x498902['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22145c=>{if('formatBlock'!=_0x22145c['type'])return;const {data:_0x5f298}=_0x22145c;return _0x5f298&&'paragraph'==_0x5f298['commandName']?{'type':'format','content':c(_0x56aff4,'*Change\x20to:*\x20%0',c(_0x56aff4,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3de000,{showActiveMarker:_0x27d0f5=!0x0}={}){return(_0x1bf658,_0x2a93a9,_0x548722)=>{const _0x1f663d=_0x3de000['plugins']['get']('TrackChangesEditing'),_0x22edf8=_0x2a93a9['markerRange']['start'],_0x3edc27=_0x2a93a9['markerRange']['end'],_0x540416=_0x3de000['model']['schema'];if(!_0x22edf8['isTouching'](_0x3edc27)||!_0x22edf8['nodeAfter'])return;const _0x136937=_0x22edf8['nodeAfter'];if(_0x540416['isBlock'](_0x136937)&&!_0x540416['isLimit'](_0x136937)&&_0x540416['checkChild'](_0x136937,'$text')){if(!_0x548722['consumable']['consume'](_0x2a93a9['markerRange'],_0x1bf658['name']))return;const {id:_0x516b33,authorId:_0x2d9d80}=_0x1f663d['_splitMarkerName'](_0x2a93a9['markerName']),_0x21fd24=_0x548722['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x516b33,'data-author-id':_0x2d9d80}),_0x2e4516=_0x548722['mapper']['toViewPosition'](_0x3edc27);_0x27d0f5&&_0x1f663d['activeMarkers']['includes'](_0x2a93a9['markerName'])&&_0x548722['writer']['addClass']('ck-suggestion-marker--active',_0x21fd24),_0x548722['writer']['insert'](_0x2e4516,_0x21fd24),_0x548722['mapper']['bindElementToMarker'](_0x21fd24,_0x2a93a9['markerName']);}};}class St extends _0x412245{['afterInit'](){const _0x12f229=this['editor'];_0x12f229['commands']['get']('replaceSource')&&_0x12f229['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x412245{['afterInit'](){const _0xa91543=this['editor'];if(!_0xa91543['plugins']['has']('RemoveFormatEditing'))return;_0xa91543['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8c8fb7=this['editor'];_0x8c8fb7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x187de4=>{if('formatBlock'!=_0x187de4['type']&&'formatInline'!=_0x187de4['type'])return;const {data:_0x5f2e65}=_0x187de4;return _0x5f2e65&&'removeFormat'==_0x5f2e65['commandName']?{'type':'format','content':c(_0x8c8fb7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x412245{['afterInit'](){const _0x5cfce0=this['editor'];if(!_0x5cfce0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3e38be=_0x5cfce0['plugins']['get']('TrackChangesEditing');_0x3e38be['enableCommand']('goToPreviousRestrictedEditingException'),_0x3e38be['enableCommand']('goToNextRestrictedEditingException');const _0x5b2c9b=_0x5cfce0['plugins']['get']('RestrictedEditingModeEditing');_0x5b2c9b['enableCommand']('trackChanges'),_0x5b2c9b['enableCommand']('acceptSuggestion'),_0x5b2c9b['enableCommand']('discardSuggestion'),_0x5b2c9b['enableCommand']('acceptAllSuggestions'),_0x5b2c9b['enableCommand']('discardAllSuggestions'),_0x5b2c9b['enableCommand']('acceptSelectedSuggestions'),_0x5b2c9b['enableCommand']('discardSelectedSuggestions');}}class At extends _0x412245{['afterInit'](){const _0x327710=this['editor'];if(!_0x327710['plugins']['has']('ShiftEnter'))return;const _0x5cc5a3=_0x327710['plugins']['get']('TrackChangesEditing');_0x5cc5a3['enableCommand']('shiftEnter'),_0x327710['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x327710),{'priority':'high'}),_0x327710['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x327710),{'priority':'high'}),_0x327710['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc330fb,_0x5044b7,_0xbaf4e)=>{_0xbaf4e['options']['showSuggestionHighlights']&&je(_0x327710,{'showActiveMarker':!0x1})(_0xc330fb,_0x5044b7,_0xbaf4e);}),_0x5cc5a3['descriptionFactory']['registerElementLabel']('softBreak',_0x5ccc14=>c(_0x327710['locale'],'ELEMENT_LINE_BREAK',_0x5ccc14));}}function je(_0x520c39,{showActiveMarker:_0x3274e4=!0x0}={}){return(_0x3af0ed,_0x47e863,_0x6bb76d)=>{const _0x1a496d=_0x520c39['plugins']['get']('TrackChangesEditing');if(!_0x6bb76d['consumable']['test'](_0x47e863['markerRange'],_0x3af0ed['name']))return;const _0x51c70e=_0x520c39['model'];for(const _0x438d7e of _0x47e863['markerRange']['getItems']()){if(!_0x438d7e['is']('element','softBreak'))continue;const _0x319fca='deletion'==_0x47e863['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1552ac,authorId:_0x4e0ffe}=_0x1a496d['_splitMarkerName'](_0x47e863['markerName']),_0x53642c=_0x6bb76d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x319fca,'data-suggestion':_0x1552ac,'data-author-id':_0x4e0ffe}),_0x92d237=_0x6bb76d['mapper']['toViewPosition'](_0x51c70e['createPositionBefore'](_0x438d7e));_0x3274e4&&_0x1a496d['activeMarkers']['includes'](_0x47e863['markerName'])&&_0x6bb76d['writer']['addClass']('ck-suggestion-marker--active',_0x53642c),_0x6bb76d['writer']['insert'](_0x92d237,_0x53642c),_0x6bb76d['mapper']['bindElementToMarker'](_0x53642c,_0x47e863['markerName']);}};}class _t extends _0x412245{['afterInit'](){const _0x569846=this['editor'],_0x550e85=_0x569846['model'],_0x38d1e3=_0x569846['locale'];if(!_0x569846['plugins']['has']('StandardEditingModeEditing'))return;const _0xa6dc76=_0x569846['plugins']['get']('TrackChangesEditing'),_0x559a40='restrictedEditingException',_0x301bfd=_0x569846['commands']['get'](_0x559a40);_0xa6dc76['enableCommand'](_0x559a40,(_0x3a4802,_0x21817d={})=>{const _0x151bbf=_0x550e85['document']['selection'];if(_0x151bbf['isCollapsed'])return void _0x3a4802(_0x21817d);const _0x18d8a5=void 0x0!==_0x21817d['forceValue']?_0x21817d['forceValue']:!_0x301bfd['value'];_0x550e85['change'](()=>{const _0x104cfc=Array['from'](_0x151bbf['getRanges']());for(const _0x58a52d of _0x104cfc){const _0x2ea9dd=_0x18d8a5?[_0x58a52d]:io(_0x559a40,_0x58a52d,_0x550e85);for(const _0x1c79c6 of _0x2ea9dd)_0xa6dc76['markInlineFormat'](_0x1c79c6,{'commandName':_0x559a40,'commandParams':[{'forceValue':_0x18d8a5}]});}});}),_0xa6dc76['descriptionFactory']['registerDescriptionCallback'](_0x704125=>{if('formatBlock'!=_0x704125['type']&&'formatInline'!=_0x704125['type'])return;const {data:_0x46a5a2}=_0x704125;return _0x46a5a2&&_0x46a5a2['commandName']==_0x559a40?_0x46a5a2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x38d1e3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x38d1e3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x412245{['afterInit'](){const _0x3c11c4=this['editor'];if(!_0x3c11c4['plugins']['has']('Style')||!_0x3c11c4['plugins']['has']('DataSchema'))return;const _0x3086e7=_0x3c11c4['plugins']['get']('TrackChangesEditing'),_0x4c98f7=_0x3c11c4['locale'],_0xce03df=_0x3c11c4['config']['get']('style')||{},_0x94425b=_0x3c11c4['plugins']['get']('GeneralHtmlSupport'),_0x4b93b3=_0x3c11c4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3c11c4['plugins']['get']('DataSchema'),_0xce03df['definitions']);_0x3086e7['enableDefaultAttributesIntegration']('style');const _0x52add6=new Set();for(const _0x5b96ae of _0x4b93b3['block']){const _0x3c3532=_0x94425b['getGhsAttributeNameForElement'](_0x5b96ae['element']);_0x52add6['add'](_0x3c3532);}const _0x372503=new Set();for(const _0x451d46 of _0x4b93b3['inline']){const _0x3521cd=_0x94425b['getGhsAttributeNameForElement'](_0x451d46['element']);_0x372503['add'](_0x3521cd);for(const _0x5ec1e1 of _0x451d46['ghsAttributes'])_0x372503['add'](_0x5ec1e1);}for(const _0x3ffe85 of _0x52add6)_0x3086e7['registerBlockAttribute'](_0x3ffe85),_0x3086e7['descriptionFactory']['registerAttributeLabel'](_0x3ffe85,c(_0x4c98f7,'FORMAT_STYLE'));for(const _0xd83a7f of _0x372503)_0x3086e7['registerInlineAttribute'](_0xd83a7f),_0x3086e7['descriptionFactory']['registerAttributeLabel'](_0xd83a7f,c(_0x4c98f7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ea82e=this['editor'],_0x560807=_0x1ea82e['locale'];_0x1ea82e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b9ad2=>{if('formatBlock'!=_0x1b9ad2['type']&&'formatInline'!=_0x1b9ad2['type'])return;const {data:_0x2472e2}=_0x1b9ad2;return _0x2472e2&&'style'===_0x2472e2['commandName']?_0x2472e2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x560807,'*Set\x20format:*\x20%0',_0x2472e2['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x560807,'*Remove\x20format:*\x20%0',_0x2472e2['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x412245{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2b466e){super(_0x2b466e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xf9e827=this['editor'],_0xff3002=_0xf9e827['model']['document']['selection'];if(!_0xf9e827['plugins']['has']('TableEditing'))return;const _0x33203a=_0xf9e827['locale'],_0x301c89=_0xf9e827['plugins']['get']('TrackChangesEditing'),_0x48b2ae=_0xf9e827['plugins']['get']('TableUtils');_0x301c89['descriptionFactory']['registerElementLabel']('table',_0x17e3ef=>c(_0x33203a,'ELEMENT_TABLE',_0x17e3ef)),this['_setupColumnsRowsFixing'](),_0x301c89['enableCommand']('insertTable'),_0x301c89['enableCommand']('selectTableRow'),_0x301c89['enableCommand']('selectTableColumn');for(const _0x229470 of['insertTableRowAbove','insertTableRowBelow']){const _0x283eaf=_0xf9e827['commands']['get'](_0x229470);_0x301c89['enableCommand'](_0x229470,_0x3e1c7a=>{_0xf9e827['model']['change'](_0x2f332e=>{_0x3e1c7a();const _0x2671ec='above'===_0x283eaf['order'],_0x435e66=_0x48b2ae['getSelectionAffectedTableCells'](_0xff3002),_0xf26e60=_0x48b2ae['getRowIndexes'](_0x435e66),_0x268d28=_0x2671ec?_0xf26e60['first']-0x1:_0xf26e60['last']+0x1,_0x3eae26=_0x435e66[0x0]['findAncestor']('table'),_0x27ed7e=_0x48b2ae['createTableWalker'](_0x3eae26,{'startRow':_0x268d28,'endRow':_0x268d28}),_0x4388fe=Array['from'](_0x27ed7e)['map'](_0x123ff7=>_0x2f332e['createRangeOn'](_0x123ff7['cell']));_0x301c89['markMultiRangeInsertion'](_0x4388fe,'tableRow');});});}for(const _0x48feee of['insertTableColumnLeft','insertTableColumnRight']){const _0x3425a8=_0xf9e827['commands']['get'](_0x48feee);_0x301c89['enableCommand'](_0x48feee,_0x258811=>{_0xf9e827['model']['change'](_0x2d8df0=>{_0x258811();const _0x22218a='left'===_0x3425a8['order'],_0xb02605=_0x48b2ae['getSelectionAffectedTableCells'](_0xff3002),_0x21cb45=_0x48b2ae['getColumnIndexes'](_0xb02605),_0x54d4cc=_0x22218a?_0x21cb45['first']-0x1:_0x21cb45['last']+0x1,_0x533f79=_0xb02605[0x0]['findAncestor']('table'),_0x29e8c5=_0x48b2ae['createTableWalker'](_0x533f79,{'startRow':0x0,'column':_0x54d4cc,'includeAllSlots':!0x1}),_0x3cba04=Array['from'](_0x29e8c5)['map'](_0x5cb10a=>_0x2d8df0['createRangeOn'](_0x5cb10a['cell']));_0x301c89['markMultiRangeInsertion'](_0x3cba04,'tableColumn');});});}for(const _0x4f4855 of['removeTableRow','removeTableColumn']){const _0x5297f7=_0x4f4855['substr'](0xb),_0x26a47b=_0x5297f7['toLowerCase'](),_0x4312f1=_0x26a47b['substr'](0x0,0x3)+'span',_0x478b70='table'+_0x5297f7,_0x2db267='min'+_0x5297f7,_0x3beb94='max'+_0x5297f7;_0x301c89['enableCommand'](_0x4f4855,()=>{_0xf9e827['model']['change'](_0x350959=>{const _0x1d89ec=_0x48b2ae['getSelectionAffectedTableCells'](_0xff3002),_0x72d0d6=_0x1d89ec[0x0]['findAncestor']('table');let _0x51fa8a;if('removeTableRow'==_0x4f4855){const _0x1c87dc=_0x48b2ae['getRowIndexes'](_0x1d89ec);_0x51fa8a={'startRow':_0x1c87dc['first'],'endRow':_0x1c87dc['last'],'includeAllSlots':!0x0};}else{const _0x34319d=_0x48b2ae['getColumnIndexes'](_0x1d89ec);_0x51fa8a={'startColumn':_0x34319d['first'],'endColumn':_0x34319d['last'],'includeAllSlots':!0x0};}const _0x1cb8cc=_0x48b2ae['createTableWalker'](_0x72d0d6,_0x51fa8a),_0x4cd783=Array['from'](_0x1cb8cc)['map'](({cell:_0x50b8ee})=>_0x50b8ee),_0x2b92cd=xe(_0x4cd783['filter'](_0x29bc84=>_0x29bc84['hasAttribute'](_0x4312f1))),_0x122c7d=xe(_0x4cd783['filter'](_0x2ed911=>!_0x2ed911['hasAttribute'](_0x4312f1)))['map'](_0x3198cf=>_0x350959['createRangeOn'](_0x3198cf)),_0x3f86b6=_0x301c89['markMultiRangeDeletion'](_0x122c7d,_0x478b70);if(_0x3f86b6&&('tableRow'==_0x3f86b6['subType']||'tableColumn'==_0x3f86b6['subType'])){const _0x16f0f9=this['_getSuggestionCoords'](_0x3f86b6);for(const _0x368708 of _0x2b92cd){const _0x44f7fa=_0x350959['createRangeOn'](_0x368708),_0x3676d6=_0x48b2ae['getCellLocation'](_0x368708),_0x47b54c=_0x368708['getAttribute'](_0x4312f1)-0x1,_0x35a762=_0x16f0f9[_0x2db267],_0x18cbe0=_0x16f0f9[_0x3beb94];_0x35a762<=_0x3676d6[_0x26a47b]&&_0x3676d6[_0x26a47b]+_0x47b54c<=_0x18cbe0&&_0x3f86b6['addRange'](_0x44f7fa);}}});});}function _0x3a8ad8(_0x15af72){const _0x52499f=Array['from'](_0xff3002['getRanges']())['map'](_0x5282bf=>_0x222fa7['fromRange'](_0x5282bf));_0xf9e827['model']['change'](_0x2d5c61=>{const _0x22e333=_0x2d5c61['batch'];_0x15af72=_0x15af72['filter'](_0x5ee360=>'$graveyard'!=_0x5ee360['root']['rootName']),_0x2d5c61['setSelection'](_0x15af72),_0xf9e827['commands']['get']('removeTableRow')['refresh'](),_0xf9e827['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xf9e827['model']['enqueueChange'](()=>{_0xf9e827['model']['enqueueChange'](_0x22e333,_0x5b9768=>{const _0x5e9a05=_0x52499f['filter'](_0x5499a5=>'$graveyard'!=_0x5499a5['root']['rootName']);_0x5e9a05['length']>0x0&&_0x5b9768['setSelection'](_0x5e9a05);for(const _0x122383 of _0x52499f)_0x122383['detach']();});});});}function _0x31d36b(_0x123d0b){_0xf9e827['model']['change'](_0x91ce88=>{const _0x160862=Array['from'](_0xff3002['getRanges']())['map'](_0x43d8fc=>_0x222fa7['fromRange'](_0x43d8fc)),_0x359e21=[];for(const _0x174ac1 of _0x123d0b)for(const _0x3574cb of _0x174ac1['getItems']({'shallow':!0x0}))_0x359e21['push'](_0x3574cb);for(const _0x308b7b of _0x359e21)'$graveyard'!=_0x308b7b['root']['rootName']&&(_0x91ce88['setSelection'](_0x91ce88['createPositionAt'](_0x308b7b,0x0)),_0xf9e827['commands']['get']('removeTableColumn')['refresh'](),_0xf9e827['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1da219=_0x160862['filter'](_0x228561=>'$graveyard'!=_0x228561['root']['rootName']);_0x1da219['length']>0x0&&_0x91ce88['setSelection'](_0x1da219);for(const _0x254114 of _0x160862)_0x254114['detach']();});}function _0x293d9e(_0x45682f,_0x3380cc){return _0x3380cc['every'](_0xf5c826=>_0x45682f['some'](_0x5ddb38=>_0x5ddb38['end']['isEqual'](_0xf5c826['start'])||_0xf5c826['end']['isEqual'](_0x5ddb38['start'])));}function _0x51be0a(_0xde595a,_0x2ee42b){return!_0xde595a['some'](_0xf531f5=>_0x2ee42b['some'](_0x5a83dc=>_0xf531f5['isIntersecting'](_0x5a83dc)))&&_0xde595a['some'](_0x1121b0=>_0x2ee42b['some'](_0x47fa2b=>_0x1121b0['end']['isTouching'](_0x47fa2b['start'])));}_0xf9e827['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2ea800,_0x1301c8,_0x12e4d2)=>{if(!_0x12e4d2['options']['showSuggestionHighlights'])return;const _0x48b727=_0x1301c8['item'];if(!_0x48b727||!_0x48b727['is']('element','tableCell'))return;const _0xadcd27=_0x12e4d2['mapper']['toViewElement'](_0x48b727);if(_0xadcd27){const {id:_0x2c613b,authorId:_0x19894d}=_0x301c89['_splitMarkerName'](_0x1301c8['markerName']);_0x4a0c93(_0xadcd27,_0x12e4d2['writer'],(_0xc17b7d,_0x36b6fc,_0x25e898)=>{_0x25e898['addClass'](_0x3fd122(_0x36b6fc['classes']),_0xc17b7d),_0x25e898['setAttribute']('data-suggestion-id',_0x2c613b,_0xc17b7d),_0x25e898['setAttribute']('data-author-id',_0x19894d,_0xc17b7d);},(_0x2207dc,_0x33fb09,_0x3be96a)=>{_0x3be96a['removeClass'](_0x3fd122(_0x33fb09['classes']),_0x2207dc),_0x3be96a['removeAttribute']('data-suggestion-id',_0x2207dc),_0x3be96a['removeAttribute']('data-author-id',_0x2207dc);});}},{'priority':'highest'}),_0x301c89['descriptionFactory']['registerDescriptionCallback'](_0x1c216b=>{if('insertion'!=_0x1c216b['type']&&'deletion'!=_0x1c216b['type'])return;const _0x486da9=_0x1c216b['getContainedElement']();if(null!=_0x486da9&&_0x486da9['is']('element','table')){if('insertion'==_0x1c216b['type']){const _0x795e60=_0x1c216b['getItems']()['filter'](_0xebcc1d=>_0xebcc1d['is']('$textProxy'))['map'](_0x49b101=>_0x49b101['data']);if(_0x795e60['length'])return{'type':'insertion','content':c(_0x33203a,'*Insert:*\x20%0',c(_0x33203a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x795e60['join']('\x20')+'\x22'))};}if('deletion'==_0x1c216b['type']){const _0x1ce926=_0x1c216b['getItems']()['filter'](_0x4d4bb2=>_0x4d4bb2['is']('$textProxy'))['map'](_0x476d69=>_0x476d69['data']);if(_0x1ce926['length'])return{'type':'deletion','content':c(_0x33203a,'*Remove:*\x20%0',c(_0x33203a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1ce926['join']('\x20')+'\x22'))};}}}),_0x301c89['descriptionFactory']['registerDescriptionCallback'](_0x4cf77c=>{if('tableRow'==_0x4cf77c['subType']){const _0x5ddd59=_0x4cf77c['getItems']()['filter'](_0x40817c=>_0x40817c['is']('$textProxy'))['map'](_0x14cdd7=>_0x14cdd7['data']),_0x4c3b4f=this['_getSuggestionCoords'](_0x4cf77c),_0x5f341f=_0x4c3b4f['maxRow']-_0x4c3b4f['minRow']+0x1;if('insertion'==_0x4cf77c['type'])return _0x5ddd59['length']?{'type':'insertion','content':c(_0x33203a,'*Insert:*\x20%0',c(_0x33203a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5f341f,'\x22'+_0x5ddd59['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x33203a,'*Insert:*\x20%0',c(_0x33203a,'ELEMENT_TABLE_ROW',_0x5f341f))};if('deletion'==_0x4cf77c['type'])return _0x5ddd59['length']?{'type':'deletion','content':c(_0x33203a,'*Remove:*\x20%0',c(_0x33203a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5f341f,'\x22'+_0x5ddd59['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x33203a,'*Remove:*\x20%0',c(_0x33203a,'ELEMENT_TABLE_ROW',_0x5f341f))};}if('tableColumn'==_0x4cf77c['subType']){const _0x3e8b4c=_0x4cf77c['getItems']()['filter'](_0x1ebe99=>_0x1ebe99['is']('$textProxy'))['map'](_0x35f457=>_0x35f457['data']),_0x5baab7=this['_getSuggestionCoords'](_0x4cf77c),_0x195462=_0x5baab7['maxColumn']-_0x5baab7['minColumn']+0x1;if('insertion'==_0x4cf77c['type'])return _0x3e8b4c['length']?{'type':'insertion','content':c(_0x33203a,'*Insert:*\x20%0',c(_0x33203a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x195462,'\x22'+_0x3e8b4c['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x33203a,'*Insert:*\x20%0',c(_0x33203a,'ELEMENT_TABLE_COLUMN',_0x195462))};if('deletion'==_0x4cf77c['type'])return _0x3e8b4c['length']?{'type':'deletion','content':c(_0x33203a,'*Remove:*\x20%0',c(_0x33203a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x195462,'\x22'+_0x3e8b4c['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x33203a,'*Remove:*\x20%0',c(_0x33203a,'ELEMENT_TABLE_COLUMN',_0x195462))};}}),_0x301c89['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3a8ad8),_0x301c89['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3a8ad8),_0x301c89['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x31d36b),_0x301c89['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x31d36b),_0x301c89['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x293d9e),_0x301c89['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x293d9e),_0x301c89['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x51be0a),_0x301c89['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x51be0a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x438d82=this['editor'],_0x2d75f6=_0x438d82['model']['document']['selection'];return(_0x5a3f10,_0x231f67)=>{_0x438d82['model']['change'](_0x47c840=>{const {commandName:_0x3a2c6d,commandParams:_0x2bf35}=_0x231f67;let _0x537c45=_0x5a3f10[0x0]['end']['nodeBefore'];_0x2bf35&&_0x2bf35[0x0]&&!0x1===_0x2bf35[0x0]['forceValue']&&(_0x537c45=_0x5a3f10[0x0]['start']['nodeAfter']);const _0x48a15c=_0x47c840['createRangeIn'](_0x537c45);if('$graveyard'==_0x48a15c['root']['rootName'])return;const _0x41c276=Array['from'](_0x2d75f6['getRanges']())['map'](_0x1ce14f=>_0x222fa7['fromRange'](_0x1ce14f));_0x47c840['setSelection'](_0x48a15c),_0x438d82['commands']['get'](_0x3a2c6d)['refresh'](),_0x2bf35['push']({'forceDefaultExecution':!0x0}),_0x438d82['execute'](_0x3a2c6d,..._0x2bf35);const _0x5a47e9=_0x41c276['filter'](_0x3d00a8=>'$graveyard'!=_0x3d00a8['root']['rootName']);_0x5a47e9['length']>0x0&&_0x47c840['setSelection'](_0x5a47e9);for(const _0x129465 of _0x41c276)_0x129465['detach']();});};}['_getCoordsForCells'](_0x3d34a6){const _0x4674f4=this['editor']['plugins']['get']('TableUtils');let _0x146408=Number['MAX_SAFE_INTEGER'],_0x2cdca8=Number['MIN_SAFE_INTEGER'],_0x4de0a1=Number['MAX_SAFE_INTEGER'],_0x139a79=Number['MIN_SAFE_INTEGER'];for(const _0x2ad348 of _0x3d34a6){if('$graveyard'==_0x2ad348['root']['rootName'])continue;const {row:_0x38c4de,column:_0xd7d4b7}=_0x4674f4['getCellLocation'](_0x2ad348),_0x2c543b=_0x2ad348['hasAttribute']('rowspan')?_0x2ad348['getAttribute']('rowspan')-0x1:0x0,_0x4a672b=_0x2ad348['hasAttribute']('colspan')?_0x2ad348['getAttribute']('colspan')-0x1:0x0;_0x146408=_0x38c4de<_0x146408?_0x38c4de:_0x146408,_0x2cdca8=_0x38c4de+_0x2c543b>_0x2cdca8?_0x38c4de+_0x2c543b:_0x2cdca8,_0x4de0a1=_0xd7d4b7<_0x4de0a1?_0xd7d4b7:_0x4de0a1,_0x139a79=_0xd7d4b7+_0x4a672b>_0x139a79?_0xd7d4b7+_0x4a672b:_0x139a79;}return{'minRow':_0x146408,'maxRow':_0x2cdca8,'minColumn':_0x4de0a1,'maxColumn':_0x139a79};}['_setupColumnsRowsFixing'](){const _0x1ef1ba=this['editor'],_0x24ff9b=_0x1ef1ba['plugins']['get']('TrackChangesEditing'),_0x8e71ea=_0x1ef1ba['plugins']['get']('TableUtils');_0x1ef1ba['model']['document']['on']('change:data',()=>{const _0x495968=Array['from'](_0x1ef1ba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3dc6c5,data:_0xd2eded}of _0x495968){const {group:_0x4f1da6,id:_0x24e447,subType:_0x3ad02f}=_0x24ff9b['_splitMarkerName'](_0x3dc6c5);if('suggestion'!=_0x4f1da6)continue;if(null!=_0xd2eded['oldRange'])continue;const _0x556fe7=_0x24ff9b['getSuggestion'](_0x24e447);this['_tablePostFixingSubtypes']['includes'](_0x3ad02f)&&this['_tableSuggestions']['add'](_0x556fe7);}},{'priority':'low'});const _0x131f3d=(_0x24c347,_0x2c135f)=>{let _0x2b110b=!0x1;const _0x3e9a74=_0x2c135f['createRangeOn'](_0x24c347),_0x3c0a31=_0x24c347['findAncestor']('table'),_0x355449=_0x8e71ea['getCellLocation'](_0x24c347);for(const _0x2319c0 of this['_tableSuggestions']){const _0x2491a3=_0x2319c0['subType'],_0x21daeb=_0x2491a3['startsWith']('tablePaste'),_0x30fbbd=_0x2491a3['substr'](_0x21daeb?0xa:0x5),_0x5712da=_0x30fbbd['toLowerCase'](),_0x138760=_0x5712da['substr'](0x0,0x3)+'span',_0x1b97d3='min'+_0x30fbbd,_0x3d5695='max'+_0x30fbbd;if(!_0x2319c0['isInContent'])continue;if(_0x3c0a31!=_0x2319c0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2319c0['isIntersectingWithRange'](_0x3e9a74))continue;const _0x3e1898=_0x24c347['hasAttribute'](_0x138760)?_0x24c347['getAttribute'](_0x138760)-0x1:0x0,_0x14e176=this['_getSuggestionCoords'](_0x2319c0),_0x53698f=_0x14e176[_0x1b97d3],_0x357339=_0x14e176[_0x3d5695];_0x53698f<=_0x355449[_0x5712da]&&_0x355449[_0x5712da]+_0x3e1898<=_0x357339&&(_0x2319c0['addRange'](_0x3e9a74),_0x2b110b=!0x0);}return _0x2b110b;};_0x1ef1ba['model']['document']['registerPostFixer'](_0x394297=>{let _0x2700f1=!0x1;for(const _0x33a517 of _0x1ef1ba['model']['document']['differ']['getChanges']())if('insert'==_0x33a517['type']){if('tableRow'==_0x33a517['name']){for(const _0x4848d4 of _0x33a517['position']['nodeAfter']['getChildren']())_0x2700f1=_0x2700f1||_0x131f3d(_0x4848d4,_0x394297);}else'tableCell'==_0x33a517['name']&&(_0x2700f1=_0x2700f1||_0x131f3d(_0x33a517['position']['nodeAfter'],_0x394297));}return _0x2700f1;});}['_getSuggestionCoords'](_0x5ecbfb){return this['_getCoordsForCells'](_0x5ecbfb['getRanges']()['map'](_0x1fb8f9=>_0x1fb8f9['start']['nodeAfter']));}}function xe(_0x3c49a0){return Array['from'](new Set(_0x3c49a0)['values']());}class Nt extends _0x412245{static get['requires'](){return[Ct];}['afterInit'](){const _0x31467c=this['editor'],_0x1d9c27=_0x31467c['model']['document']['selection'],_0x2ab1ec=_0x31467c['locale'];if(!_0x31467c['plugins']['has']('TableEditing'))return;const _0x594602=_0x31467c['plugins']['get']('TrackChangesEditing'),_0xb24ca8=_0x31467c['plugins']['get']('TableUtils'),_0x3af84e=_0x31467c['plugins']['get'](Ct);_0x3af84e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x594602['enableCommand']('mergeTableCells',()=>{const _0x592889=_0xb24ca8['getSelectionAffectedTableCells'](_0x31467c['model']['document']['selection']);_0x31467c['model']['change'](()=>{_0x594602['markMultiRangeBlockFormat'](_0x592889,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x31467c['commands']['get']('mergeTableCells')['on']('execute',(_0x5629b2,_0x18fc5c)=>{_0x31467c['commands']['get']('trackChanges')['value']&&(_0x18fc5c['length']>0x0&&_0x18fc5c[_0x18fc5c['length']-0x1]&&_0x18fc5c[_0x18fc5c['length']-0x1]['forceDefaultExecution']||_0x594602['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5629b2['stop']());},{'priority':'highest'});for(const _0x3c33fe of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5a7503=_0x31467c['commands']['get'](_0x3c33fe);_0x594602['enableCommand'](_0x3c33fe,()=>{const _0x2ae95f=_0x31467c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x568661=>_0x568661['is']('element','tableCell')),_0x371abd=_0x5a7503['value'];_0x31467c['model']['change'](()=>{_0x594602['markMultiRangeBlockFormat']([_0x2ae95f,_0x371abd],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x199bc0 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x15927f=_0x31467c['commands']['get'](_0x199bc0);_0x594602['enableCommand'](_0x199bc0,()=>{const _0xc1049e=_0xb24ca8['getSelectionAffectedTableCells'](_0x31467c['model']['document']['selection'])[0x0],_0x1c50e3=_0xc1049e['findAncestor']('table'),{column:_0x5ace2d,row:_0x3effa1}=_0xb24ca8['getCellLocation'](_0xc1049e);let _0x3bea2b=[];if('horizontally'==_0x15927f['direction']){const _0x5256d3=_0xb24ca8['createTableWalker'](_0x1c50e3,{'startRow':_0x3effa1,'endRow':_0x3effa1,'includeAllSlots':!0x0});_0x3bea2b=Array['from'](_0x5256d3)['map'](_0x25c78b=>_0x25c78b['cell']);}else{const _0x1b8eb8=_0xb24ca8['createTableWalker'](_0x1c50e3,{'column':_0x5ace2d,'includeAllSlots':!0x0});_0x3bea2b=Array['from'](_0x1b8eb8)['map'](_0x500e4d=>_0x500e4d['cell']);}_0x31467c['model']['change'](_0x2c4866=>{_0x594602['markBlockFormat'](_0x2c4866['createRangeOn'](_0xc1049e),{'commandName':_0x199bc0,'commandParams':[]},_0x3bea2b,_0x199bc0);});});}_0x594602['descriptionFactory']['registerDescriptionCallback'](_0x8c6c44=>{if('formatBlock'!=_0x8c6c44['type']&&'formatInline'!=_0x8c6c44['type'])return;const {data:_0x51c83d}=_0x8c6c44;return _0x51c83d&&'mergeTableCells'==_0x51c83d['commandName']?{'type':'format','content':c(_0x2ab1ec,'*Merge\x20cells*')}:void 0x0;}),_0x594602['descriptionFactory']['registerDescriptionCallback'](_0x14be91=>{if('formatBlock'!=_0x14be91['type']&&'formatInline'!=_0x14be91['type'])return;const {data:_0x470ae9}=_0x14be91;return _0x470ae9?'splitTableCellVertically'==_0x470ae9['commandName']?{'type':'format','content':c(_0x2ab1ec,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x470ae9['commandName']?{'type':'format','content':c(_0x2ab1ec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x215859=_0x3af84e['_acceptFormatSuggestionCallbackFactory']();for(const _0x54b9c7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x594602['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x54b9c7,'accept',_0x215859);for(const _0x10a417 of['splitTableCellVertically','splitTableCellHorizontally'])_0x594602['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10a417,'accept',_0x215859);_0x594602['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xbb0a61=>{_0x31467c['model']['change'](_0x412544=>{const _0xdaaad9=Array['from'](_0x1d9c27['getRanges']())['map'](_0x12607f=>_0x222fa7['fromRange'](_0x12607f));_0x412544['setSelection'](_0xbb0a61),_0x31467c['commands']['get']('mergeTableCells')['refresh'](),_0x31467c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1b83b1=_0xdaaad9['filter'](_0x34ee9c=>'$graveyard'!=_0x34ee9c['root']['rootName']);_0x1b83b1['length']>0x0&&_0x412544['setSelection'](_0x1b83b1);for(const _0x5d29e4 of _0xdaaad9)_0x5d29e4['detach']();});});for(const _0x5a7b5b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x40c9e6=_0x31467c['commands']['get'](_0x5a7b5b);_0x40c9e6['on']('set:isEnabled',(_0x498e21,_0x4f64bb,_0x27ef74)=>{if(_0x27ef74){const _0x483c18=_0x31467c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x35de26=>_0x35de26['is']('element','tableCell'));this['_areMergableCells'](_0x40c9e6['value'],_0x483c18)||(_0x498e21['return']=!0x1,_0x498e21['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3074b7=this['editor']['commands']['get']('mergeTableCells'),_0x412114=this['editor']['plugins']['get']('TableUtils');if(!_0x3074b7['isEnabled'])return!0x1;const _0x283068=_0x412114['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1e865d of _0x283068)for(const _0x6fe29c of _0x283068)if(_0x1e865d!=_0x6fe29c&&!this['_areMergableCells'](_0x1e865d,_0x6fe29c))return!0x1;return!0x0;}['_areMergableCells'](_0x56e903,_0x33c6ef){const _0x346004=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48808c=this['editor']['model']['createRangeOn'](_0x56e903),_0x10e562=this['editor']['model']['createRangeOn'](_0x33c6ef),_0x33a8d4=new Set(),_0x271adf=new Set();for(const _0x480038 of _0x346004['getSuggestions']())if(('insertion'==_0x480038['type']||'deletion'==_0x480038['type']||'mergeTableCells'==_0x480038['subType'])&&_0x480038['isInContent']){for(const _0x1a63a5 of _0x480038['getRanges']())_0x1a63a5['containsRange'](_0x48808c,!0x0)&&_0x33a8d4['add'](_0x480038['type']+':'+_0x480038['author']['id']),_0x1a63a5['containsRange'](_0x10e562,!0x0)&&_0x271adf['add'](_0x480038['type']+':'+_0x480038['author']['id']);}if(_0x33a8d4['size']!=_0x271adf['size'])return!0x1;for(const _0x5615f4 of _0x33a8d4)if(!_0x271adf['has'](_0x5615f4))return!0x1;return!0x0;}}class Dt extends _0x412245{static get['requires'](){return[Ct];}['afterInit'](){const _0x3b3f88=this['editor'];if(!_0x3b3f88['plugins']['has']('TableEditing'))return;const _0x3cd8c=_0x3b3f88['locale'],_0x5d60f1=_0x3b3f88['plugins']['get']('TrackChangesEditing');_0x5d60f1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5d60f1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5d60f1['registerBlockAttribute']('headingRows'),_0x5d60f1['registerBlockAttribute']('headingColumns'),_0x5d60f1['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x3cd8c,'FORMAT_HEADER_ROW')),_0x5d60f1['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x3cd8c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x28d358=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b2427=this['editor']['plugins']['get']('TableUtils'),_0x5be4dc=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x335df7({showActiveMarker:_0x36238f=!0x0,setDataAttribute:_0x3f1a85=!0x0}={}){return(_0x10e213,_0x4f46aa,_0xa16505)=>{const {type:_0x325559,id:_0x56f898}=_0x28d358['_splitMarkerName'](_0x4f46aa['markerName']),_0x2e9fc3=_0x28d358['getSuggestion'](_0x56f898),_0x221bd0=_0x2e9fc3['data'];if('formatBlock'!=_0x2e9fc3['type']||!_0x221bd0||'setTableColumnHeader'!=_0x221bd0['commandName'])return;if(_0x4f46aa['item'])return void _0x10e213['stop']();if(!_0xa16505['consumable']['consume'](_0x4f46aa['markerRange'],_0x10e213['name']))return;const _0x3505e0=_0x4f46aa['markerRange']['start']['nodeAfter'],_0x5dc5fd=_0x4f46aa['markerRange']['end']['nodeBefore'],_0x3ff858=_0x3505e0['parent']['parent'],{column:_0x232613}=_0x4b2427['getCellLocation'](_0x3505e0),{column:_0x5c34af}=_0x4b2427['getCellLocation'](_0x5dc5fd);for(let _0x5a45ac=_0x232613;_0x5a45ac<=_0x5c34af;_0x5a45ac++){const _0x3c4a04=_0x4b2427['createTableWalker'](_0x3ff858,{'column':_0x5a45ac,'includeAllSlots':!0x1});for(const _0x299791 of _0x3c4a04){const _0x5127e6=_0x299791['cell'],_0x557b4c=_0xa16505['mapper']['toViewElement'](_0x5127e6);_0xa16505['writer']['addClass']('ck-suggestion-marker-'+_0x325559,_0x557b4c),_0x3f1a85&&_0xa16505['writer']['setAttribute']('data-suggestion',_0x56f898,_0x557b4c),_0xa16505['mapper']['bindElementToMarker'](_0x557b4c,_0x4f46aa['markerName']),_0x36238f&&(_0x28d358['activeMarkers']['includes'](_0x4f46aa['markerName'])?_0xa16505['writer']['addClass']('ck-suggestion-marker--active',_0x557b4c):_0xa16505['writer']['removeClass']('ck-suggestion-marker--active',_0x557b4c));}}};}_0x28d358['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5be4dc),_0x28d358['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5be4dc),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x335df7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xbc73bd,_0xf1b080,_0x38ce33)=>{_0x38ce33['options']['showSuggestionHighlights']&&_0x335df7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xbc73bd,_0xf1b080,_0x38ce33);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1b5a45,_0xcbf000,_0x54dfce)=>{const {type:_0x33daef,id:_0x158405}=_0x28d358['_splitMarkerName'](_0xcbf000['markerName']),_0x322249=_0x28d358['getSuggestion'](_0x158405),_0x47738a=_0x322249['data'];if('formatBlock'!=_0x322249['type']||!_0x47738a||'setTableColumnHeader'!=_0x47738a['commandName'])return;const _0x2d99d7=_0x54dfce['mapper']['markerNameToElements'](_0xcbf000['markerName']);if(_0x2d99d7){for(const _0x5c43fe of _0x2d99d7)_0x54dfce['writer']['removeClass']('ck-suggestion-marker-'+_0x33daef,_0x5c43fe),_0x54dfce['writer']['removeClass']('ck-suggestion-marker--active',_0x5c43fe),_0x54dfce['writer']['removeAttribute']('data-suggestion',_0x5c43fe),_0x54dfce['mapper']['unbindElementFromMarkerName'](_0x5c43fe,_0xcbf000['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfa7e7d=this['editor'],_0x9a7c08=_0xfa7e7d['locale'];function _0x505606(_0x42c57c){return{'type':'format','content':c(_0x9a7c08,'*Format:*\x20%0',_0x42c57c)};}_0xfa7e7d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59edd1=>{if('formatBlock'!=_0x59edd1['type'])return;const {data:_0x11534f}=_0x59edd1;if(_0x11534f){if('setTableRowHeader'==_0x11534f['commandName']){const _0x555380=_0x11534f['commandParams'][0x0]['forceValue'];return _0x505606(c(_0x9a7c08,_0x555380?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x11534f['commandName']){const _0x54666c=_0x11534f['commandParams'][0x0]['forceValue'];return _0x505606(c(_0x9a7c08,_0x54666c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x412245{['afterInit'](){const _0x22e123=this['editor'],_0x3e2b6e=_0x22e123['locale'],_0x59259d=_0x22e123['plugins']['get']('TrackChangesEditing');function _0x406d3b(_0x138254){return{'type':'format','content':''+c(_0x3e2b6e,'*Set\x20table\x20type:*\x20%0',_0x138254)};}_0x22e123['plugins']['has']('TableLayout')&&(_0x59259d['enableCommand']('insertTableLayout'),_0x59259d['enableDefaultAttributesIntegration']('tableType'),_0x59259d['registerBlockAttribute']('tableType'),_0x59259d['descriptionFactory']['registerElementLabel'](_0x226a27=>_0x226a27['is']('element','table')&&'layout'===_0x226a27['getAttribute']('tableType'),_0x4c305a=>c(_0x3e2b6e,'ELEMENT_LAYOUT_TABLE',_0x4c305a)),_0x59259d['descriptionFactory']['registerDescriptionCallback'](_0x3d99f9=>{const {data:_0x2c8b83}=_0x3d99f9;if(_0x2c8b83&&'tableType'==_0x2c8b83['key'])switch(_0x2c8b83['newValue']){case'layout':return _0x406d3b(c(_0x3e2b6e,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x406d3b(c(_0x3e2b6e,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x254487=>[_0x254487,null]));class $t extends _0x412245{static get['requires'](){return[Ct];}['afterInit'](){const _0x5a24d1=this['editor'];if(!_0x5a24d1['plugins']['has']('TableClipboard'))return;const _0x2d9bff=_0x5a24d1['plugins']['get']('TrackChangesEditing'),_0x1f6ff5=_0x5a24d1['plugins']['get']('TableUtils'),_0x552f8b=_0x5a24d1['plugins']['get'](Ct),_0x353e98=_0x5a24d1['plugins']['get']('TableClipboard'),_0xf99304=_0x5a24d1['plugins']['get']('TableSelection'),_0xf29c67=_0x5a24d1['plugins']['get'](_0x57e2f9);_0x552f8b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5a24d1['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5a24d1['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xc59c28=null,_0x4d868b=!0x1;_0xf29c67['on']('contentInsertion',(_0xa59cce,_0x5b85f3)=>{_0x4d868b='paste'===_0x5b85f3['method'];}),_0x5a24d1['model']['on']('insertContent',(_0x109cb8,_0x3dc23f)=>{if(!_0x4d868b&&null===_0xf99304['getSelectedTableCells']())return;const [_0xede9be,_0x4c1caf]=_0x3dc23f,_0x519c6c=_0x3dc23f[_0x3dc23f['length']-0x1];_0x519c6c&&_0x519c6c['forceDefaultExecution']||_0x2d9bff['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3b5ab5,_0x30b57b,_0x2181da,_0x5eef60,_0x148fa2){if(_0x30b57b&&!_0x30b57b['is']('documentSelection'))return!0x1;const _0x12a683=_0x148fa2['getTableIfOnlyTableInContent'](_0x3b5ab5,_0x2181da);if(!_0x12a683||!He(_0x12a683,void 0x0,_0x5eef60))return!0x1;const _0xe14da2=_0x5eef60['getSelectionAffectedTableCells'](_0x2181da['document']['selection']);if(!_0xe14da2['length'])return!0x1;const _0x49c97e=_0xe14da2[0x0]['findAncestor']('table'),_0x2cec4f=_0x5eef60['getRowIndexes'](_0xe14da2),_0x3650a8=_0x5eef60['getColumnIndexes'](_0xe14da2),_0x1aa80f={'startRow':_0x2cec4f['first'],'endRow':_0x2cec4f['last'],'startColumn':_0x3650a8['first'],'endColumn':_0x3650a8['last']};return 0x1==_0xe14da2['length']&&(_0x1aa80f['endRow']+=_0x5eef60['getRows'](_0x12a683)-0x1,_0x1aa80f['endColumn']+=_0x5eef60['getColumns'](_0x12a683)-0x1),He(_0x49c97e,_0x1aa80f,_0x5eef60);}(_0xede9be,_0x4c1caf,_0x5a24d1['model'],_0x1f6ff5,_0x353e98)&&(_0x109cb8['stop'](),_0xc59c28={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5a24d1['model']['change'](()=>{_0x5a24d1['model']['insertContent'](_0x3dc23f[0x0],_0x3dc23f[0x1],_0x3dc23f[0x2],{'forceDefaultExecution':!0x0});const _0x318df7=_0x399ad3(),{rowInsertionRanges:_0x4d2bc1,columnInsertionRanges:_0x4fe58b,insertionRanges:_0x3699e9,deletionRanges:_0x5d9c85,cells:_0x391767}=_0xc59c28;_0x4d2bc1['length']&&_0x2d9bff['markMultiRangeInsertion'](_0x4d2bc1,'tablePasteRow',{'tablePasteChainId':_0x318df7}),_0x4fe58b['length']&&_0x2d9bff['markMultiRangeInsertion'](_0x4fe58b,'tablePasteColumn',{'tablePasteChainId':_0x318df7}),_0x3699e9['length']&&(_0x2d9bff['markMultiRangeInsertion'](_0x3699e9,'tablePaste',{'tablePasteChainId':_0x318df7,'skipNestingCheck':!0x0}),_0x3699e9['forEach'](_0x36ca72=>_0x36ca72['detach']?.())),_0x5d9c85['length']&&(_0x2d9bff['markMultiRangeDeletion'](_0x5d9c85,'tablePaste',{'tablePasteChainId':_0x318df7,'skipNestingCheck':!0x0}),_0x5d9c85['forEach'](_0x2fbef0=>_0x2fbef0['detach']?.()));const _0x27fa94=_0x2d9bff['markMultiRangeBlockFormat'](_0x391767['map'](({element:_0x43fe64})=>_0x43fe64),{'formatGroupId':_0x399ad3()},[],'tablePasteCell',{'tablePasteChainId':_0x318df7});if(_0x27fa94){const _0x545c6e=_0x27fa94['getMarkers'](),_0x354131=[];for(const {element:_0x2047b7,attributes:_0x13d3e9}of _0x391767){if(!_0x13d3e9)continue;const _0xa6eb6c=_0x5a24d1['model']['createRangeOn'](_0x2047b7),_0x9094ee=_0x545c6e['find'](_0x139fa8=>_0x139fa8['getRange']()['isEqual'](_0xa6eb6c));_0x9094ee&&_0x354131['push']([_0x9094ee['name'],_0x13d3e9]);}_0x354131['length']&&_0x27fa94['setAttribute']('markerAttributes',Object['fromEntries'](_0x354131));}_0xc59c28=null;}));},{'priority':_0x35e5d1['high']+0xa}),_0xf29c67['on']('contentInsertion',()=>{_0x4d868b=!0x1;},{'priority':'lowest'}),_0x5a24d1['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x165277,_0x5c9d6c)=>{const [_0x229f35,_0x40e70d,,_0x57eeb6]=_0x5c9d6c;if(!_0xc59c28)return;_0x165277['stop']();const _0x3824f2=_0x229f35['cell'],_0x1a808a=_0x40e70d,_0x285323=De(_0x3824f2),_0x163502=De(_0x1a808a);_0x165277['return']=_0x3824f2;let _0x59743a=null,_0x429caa=null;if(_0x163502||_0x285323){if(_0x285323&&!_0x163502){_0x57eeb6['remove'](_0x3824f2['getChild'](0x0));for(const _0x2bf521 of Array['from'](_0x1a808a['getChildren']()))_0x57eeb6['insert'](_0x2bf521,_0x3824f2,'end');const _0x4e9ad2=_0xc59c28['rowInsertionIndexes']['includes'](_0x229f35['row']),_0x2c3664=_0xc59c28['columnInsertionIndexes']['includes'](_0x229f35['column']);_0x4e9ad2||_0x2c3664||(_0x59743a=_0x222fa7['fromRange'](_0x57eeb6['createRangeIn'](_0x3824f2)));}else _0x163502&&!_0x285323&&(_0x429caa=_0x57eeb6['createRangeIn'](_0x3824f2));}else{const _0x551e01=_0x57eeb6['createElement']('tableCellSuggestion'),_0x1716f7=_0x57eeb6['createElement']('tableCellSuggestion');_0x57eeb6['wrap'](_0x57eeb6['createRangeIn'](_0x3824f2),_0x1716f7),_0x57eeb6['insert'](_0x551e01,_0x3824f2,0x0);for(const _0x31a7f4 of Array['from'](_0x1a808a['getChildren']()))_0x57eeb6['insert'](_0x31a7f4,_0x551e01,'end');_0x59743a=_0x222fa7['fromRange'](_0x57eeb6['createRangeOn'](_0x551e01)),_0x429caa=_0x222fa7['fromRange'](_0x57eeb6['createRangeOn'](_0x1716f7));}const _0x3c0c14=Array['from'](_0x1a808a['getAttributes']())['filter'](([_0xb3772e])=>Oe['includes'](_0xb3772e));_0xc59c28['cells']['push']({'element':_0x3824f2,'attributes':_0x3c0c14['length']?Object['fromEntries'](_0x3c0c14):null}),_0x59743a&&_0xc59c28['insertionRanges']['push'](_0x59743a),_0x429caa&&_0xc59c28['deletionRanges']['push'](_0x429caa);},{'priority':'high'}),_0x1f6ff5['on']('insertColumns',(_0x5dae4a,_0x145c81)=>{const [_0x1018c4,_0x564848={}]=_0x145c81;if(!_0xc59c28)return;const _0x2c1fdd=_0x564848['at']||0x0,_0x378e05=_0x564848['columns']||0x1;_0xc59c28['columnInsertionIndexes']=new Array(_0x378e05)['fill'](_0x2c1fdd)['map']((_0x169e3d,_0x524ce8)=>_0x169e3d+_0x524ce8);for(const {cell:_0x4346ab}of _0x1f6ff5['createTableWalker'](_0x1018c4,{'startColumn':_0x2c1fdd,'endColumn':_0x2c1fdd+_0x378e05-0x1}))_0xc59c28['columnInsertionRanges']['push'](_0x5a24d1['model']['createRangeOn'](_0x4346ab));},{'priority':'low'}),_0x1f6ff5['on']('insertRows',(_0x38736f,_0xf60948)=>{const [_0x476d6f,_0x46a2a8={}]=_0xf60948;if(!_0xc59c28)return;const _0x25a9fe=_0x46a2a8['at']||0x0,_0x4e9363=_0x46a2a8['rows']||0x1;_0xc59c28['rowInsertionIndexes']=new Array(_0x4e9363)['fill'](_0x25a9fe)['map']((_0x37fd1e,_0x22b975)=>_0x37fd1e+_0x22b975);for(const {cell:_0xdf54e8}of _0x1f6ff5['createTableWalker'](_0x476d6f,{'startRow':_0x25a9fe,'endRow':_0x25a9fe+_0x4e9363-0x1}))_0xc59c28['rowInsertionRanges']['push'](_0x5a24d1['model']['createRangeOn'](_0xdf54e8));},{'priority':'low'}),_0x2d9bff['descriptionFactory']['registerDescriptionCallback'](_0x26264d=>{if(_0x26264d['subType']&&_0x26264d['subType']['startsWith']('tablePaste'))return _0x26264d['previous']?{}:{'type':'insertion','content':c(_0x5a24d1['locale'],'*Replace\x20table\x20cells*')};});const _0x3dd054=()=>!0x1;for(const _0x10ab78 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2d9bff['_suggestionFactory']['registerCustomCallback']('insertion',_0x10ab78,'join',_0x3dd054),_0x2d9bff['_suggestionFactory']['registerCustomCallback']('deletion',_0x10ab78,'join',_0x3dd054),_0x2d9bff['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10ab78,'join',_0x3dd054);_0x2d9bff['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3dd054),_0x2d9bff['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x34b55d,_0x44c592,_0x1fba7f)=>{const _0x16d829=_0x34b55d['map'](_0x28bba8=>_0x28bba8['getContainedElement']())['filter'](_0x59a92f=>_0x59a92f),_0x1258f8=new Map(_0x16d829['map'](_0x1376ef=>[_0x1376ef,null]));if(_0xc59c28){for(const {element:_0x36ad4b,attributes:_0x203639}of _0xc59c28['cells'])_0x203639&&_0x1258f8['set'](_0x36ad4b,_0x203639);}else{if(_0x1fba7f&&_0x1fba7f['markerAttributes'])for(const [_0x1331a4,_0x39dd04]of Object['entries'](_0x1fba7f['markerAttributes'])){const _0x1268e1=_0x5a24d1['model']['markers']['get'](_0x1331a4),_0x5ad482=_0x1268e1?_0x1268e1['getRange']()['getContainedElement']():null;_0x5ad482&&_0x1258f8['set'](_0x5ad482,_0x39dd04);}}_0x5a24d1['model']['change'](_0x466553=>{for(const [_0x679a99,_0x116137]of _0x1258f8)_0x466553['setAttributes']({...Ue,..._0x116137},_0x679a99);});});const _0x49dd23=(_0x42f8fb,_0x13fcc4)=>{_0x2d9bff['_suggestionFactory']['registerCustomCallback'](_0x42f8fb,'tablePaste',_0x13fcc4,(_0x3015a1,_0x4abb68,_0x1036df)=>{_0x5a24d1['model']['change'](_0x2392f0=>{const _0xfe17f0=[];for(const _0x954374 of _0x3015a1){const _0x3c8891=_0x954374['start']['nodeAfter'];_0x3c8891['is']('element','tableCellSuggestion')&&_0xfe17f0['push'](_0x3c8891);}_0x2d9bff['_suggestionFactory']['getSuggestionCallback'](_0x42f8fb,null,_0x13fcc4)(_0x3015a1,_0x4abb68,_0x1036df);for(const _0x4aaffc of _0xfe17f0)'$graveyard'!=_0x4aaffc['root']['rootName']&&_0x2392f0['unwrap'](_0x4aaffc);});});};_0x49dd23('insertion','accept'),_0x49dd23('insertion','discard'),_0x49dd23('deletion','accept'),_0x49dd23('deletion','discard'),_0x2d9bff['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x49990e=>{const _0x30c988=_0x49990e['map'](_0x2924a8=>_0x2924a8['getContainedElement']()),_0x417e04=_0x30c988[0x0]['findAncestor']('table'),{minRow:_0x1ece00,maxRow:_0x12a6d4}=_0x552f8b['_getCoordsForCells'](_0x30c988);_0x1f6ff5['removeRows'](_0x417e04,{'at':_0x1ece00,'rows':_0x12a6d4-_0x1ece00+0x1});}),_0x2d9bff['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x38af39=>{const _0x3eb081=_0x38af39['map'](_0x1ae5b2=>_0x1ae5b2['getContainedElement']()),_0x5a6e41=_0x3eb081[0x0]['findAncestor']('table'),{minColumn:_0x53d8a3,maxColumn:_0x3bc8a2}=_0x552f8b['_getCoordsForCells'](_0x3eb081);_0x1f6ff5['removeColumns'](_0x5a6e41,{'at':_0x53d8a3,'columns':_0x3bc8a2-_0x53d8a3+0x1});});const _0x3b5c84=(_0x343a37,_0x310cfe)=>{if(!_0x310cfe['subType']||!_0x310cfe['subType']['startsWith']('tablePaste'))return;const _0x568c9c=_0x310cfe['attributes']['tablePasteChainId'],_0x2d31d3=_0x2d9bff['getSuggestions']()['filter'](_0x5e4e07=>_0x5e4e07['isInContent']&&_0x5e4e07['attributes']&&_0x5e4e07['attributes']['tablePasteChainId']==_0x568c9c);_0x2d31d3['length']&&_0x310cfe['getAllAdjacentSuggestions']()['length']!=_0x2d31d3['length']&&_0x2d31d3['reduce']((_0x1dbcd9,_0x1500c0)=>(_0x1dbcd9['next']=_0x1500c0,_0x1500c0['previous']=_0x1dbcd9,_0x1500c0));};function _0x45bf57(_0x30ec53,_0xdaaa9c=!0x0){const {id:_0x272432,authorId:_0x8fab0e}=_0x2d9bff['_splitMarkerName'](_0x30ec53['markerName']),_0x46bdc0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x20caff=_0x2d9bff['activeMarkers']['includes'](_0x30ec53['markerName']);return _0x20caff&&_0x46bdc0['push']('ck-suggestion-marker--active'),{'classes':_0x46bdc0,'attributes':{'data-suggestion':_0x272432,'data-author-id':_0x8fab0e},'priority':_0x20caff&&_0xdaaa9c?0xbc2:0xbb8};}_0x2d9bff['on']('suggestionLoaded',_0x3b5c84,{'priority':'high'}),_0x2d9bff['on']('suggestionUnloaded',_0x3b5c84,{'priority':'high'}),_0x5a24d1['model']['document']['registerPostFixer'](()=>{let _0xb6be11=!0x1;const _0x4598e1=Array['from'](_0x5a24d1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4564d1,data:_0x2a6042}of _0x4598e1){const {group:_0x573d70,type:_0x3d45bd,id:_0x2c316f}=_0x2d9bff['_splitMarkerName'](_0x4564d1);if('suggestion'!=_0x573d70||'deletion'!=_0x3d45bd||_0x2a6042['oldRange'])continue;if(!_0x2d9bff['hasSuggestion'](_0x2c316f))continue;const _0x59ee37=_0x2d9bff['getSuggestion'](_0x2c316f)['getRanges'](),_0x1b9882=_0x5a24d1['plugins']['get']('Users')['me'];for(const _0x2637c1 of _0x2d9bff['getSuggestions']()){if(!_0x2637c1['isInContent']||_0x2637c1['author']!=_0x1b9882)continue;if('formatBlock'!=_0x2637c1['type']||'tablePasteCell'!=_0x2637c1['subType'])continue;if(_0x2637c1['getRanges']()['every'](_0xe232e8=>_0x59ee37['some'](_0x3ca7cc=>_0x3ca7cc['containsRange'](_0xe232e8,!0x0)))){for(const _0x59861b of _0x2637c1['getAllAdjacentSuggestions']())_0x59861b['isInContent']&&(_0x59861b['discard'](),_0xb6be11=!0x0);}}}return _0xb6be11;}),_0x5a24d1['model']['document']['registerPostFixer'](_0x585198=>{const _0x53111a=_0x5a24d1['commands']['get']('redo');if(!_0x53111a||!_0x53111a['_createdBatches']['has'](_0x585198['batch']))return!0x1;let _0x3d03a1=!0x1;const _0x205107=_0x5a24d1['plugins']['get']('Users')['me'],_0x39deff=_0x5a24d1['model']['document']['differ']['getChanges'](),_0x38aaf4=Array['from'](_0x5a24d1['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2f1c1c,data:_0x6b0d14})=>{const {group:_0x5e8329,subType:_0x199f13,authorId:_0x197f7c}=_0x2d9bff['_splitMarkerName'](_0x2f1c1c);return'suggestion'==_0x5e8329&&'tablePaste'==_0x199f13&&_0x197f7c==_0x205107['id']&&!_0x6b0d14['oldRange'];});for(const _0x4efeba of _0x39deff){if('insert'!=_0x4efeba['type']||'tableCellSuggestion'!=_0x4efeba['name']||0x1!=_0x4efeba['length'])continue;const _0x1d7514=_0x585198['createRange'](_0x4efeba['position'],_0x4efeba['position']['getShiftedBy'](0x1));if(!_0x38aaf4['find'](({data:_0x251385})=>_0x251385['newRange']['isEqual'](_0x1d7514))){for(const {name:_0x326dad,data:_0x210dec}of _0x38aaf4)if(_0x1d7514['containsRange'](_0x210dec['newRange'])){_0x585198['updateMarker'](_0x326dad,{'range':_0x1d7514}),_0x3d03a1=!0x0;break;}}}return _0x3d03a1;}),_0x5a24d1['model']['document']['registerPostFixer'](_0x591a80=>{let _0xff3898=!0x1;const _0x5162a4=_0x5a24d1['plugins']['get']('Users')['me'],_0x5d86b8=_0x2d9bff['getSuggestions']()['filter'](_0x2b3ba1=>_0x2b3ba1['isInContent']&&_0x2b3ba1['author']==_0x5162a4),_0x5c176d=new Set(),_0x40be32=new Set();for(const _0x1f7d79 of _0x5d86b8)if('tablePaste'==_0x1f7d79['subType'])for(const _0x3dd168 of _0x1f7d79['getMarkers']()){const _0x25a651=_0x3dd168['getRange']()['getContainedElement']();if(_0x25a651){if(_0x25a651['is']('element','tableCellSuggestion')&&De(_0x25a651)){_0x1f7d79['removeMarker'](_0x3dd168['name']),_0x5c176d['add'](_0x25a651),_0xff3898=!0x0;const _0x471bb8=_0x25a651['nextSibling'],_0x3785e2=_0x25a651['previousSibling'],_0x253165=_0x471bb8&&_0x471bb8['is']('element','tableCellSuggestion'),_0x4d4baa=_0x3785e2&&_0x3785e2['is']('element','tableCellSuggestion');_0x253165&&!_0x5c176d['has'](_0x471bb8)&&_0x40be32['add'](_0x471bb8),_0x4d4baa&&!_0x5c176d['has'](_0x3785e2)&&_0x40be32['add'](_0x3785e2);}else _0x25a651['is']('element','paragraph')&&_0x25a651['isEmpty']&&(_0x1f7d79['removeMarker'](_0x3dd168['name']),_0xff3898=!0x0);}}else{if('tablePasteCell'==_0x1f7d79['subType']){if(!_0x1f7d79['attributes']||!_0x1f7d79['attributes']['tablePasteChainId'])continue;const _0xc1d039=_0x1f7d79['attributes']['markerAttributes'];if(_0xc1d039&&Object['keys'](_0xc1d039)['length'])continue;const _0x1fbac3=_0x1f7d79['attributes']['tablePasteChainId'];let _0x4a4e23=!0x0,_0x3d8080=!0x0;for(const _0x2106ab of _0x5d86b8)if(_0x2106ab['subType']&&_0x2106ab['subType']['startsWith']('tablePaste')){if(!_0x2106ab['attributes']['tablePasteChainId']){_0x3d8080=!0x1;break;}if(_0x2106ab['id']!=_0x1f7d79['id']&&_0x2106ab['attributes']['tablePasteChainId']==_0x1fbac3){_0x4a4e23=!0x1;break;}}_0x3d8080&&_0x4a4e23&&(_0x1f7d79['removeMarkers'](),_0xff3898=!0x0);}}for(const _0x2c01ac of _0x5c176d)_0x591a80['remove'](_0x2c01ac);for(const _0x3d0e95 of _0x40be32)_0x591a80['unwrap'](_0x3d0e95);return _0xff3898;}),_0x5a24d1['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x51c155=>_0x45bf57(_0x51c155),'converterPriority':'high'}),_0x5a24d1['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3357ab,_0x4f606b)=>_0x4f606b['options']['showSuggestionHighlights']?_0x45bf57(_0x3357ab,!0x1):null,'converterPriority':'high'});const _0x2f1628=_0x5a24d1['editing']['view'];this['listenTo'](_0x2f1628['document'],'clipboardOutput',(_0x44329e,_0x2904a2)=>{const _0x32391d=[];for(const _0x45d157 of _0x2f1628['createRangeIn'](_0x2904a2['content'])['getItems']())_0x45d157['is']('element','suggestion-td')&&_0x32391d['push'](_0x45d157);_0x2f1628['change'](_0x322f6b=>{for(const _0x1a3140 of _0x32391d)_0x322f6b['move'](_0x322f6b['createRangeIn'](_0x1a3140),_0x322f6b['createPositionBefore'](_0x1a3140)),_0x322f6b['remove'](_0x1a3140);});});}}function De(_0x1f4eb5){if(_0x1f4eb5['isEmpty'])return!0x0;const _0x5902ec=_0x1f4eb5['getChild'](0x0);return _0x5902ec['is']('element','paragraph')&&_0x5902ec['isEmpty'];}function He(_0x26fee7,_0x389b55={},_0x36fac3){for(const {isAnchor:_0x560575,cellHeight:_0x153b5,cellWidth:_0xbaa6b6}of _0x36fac3['createTableWalker'](_0x26fee7,{'includeAllSlots':!0x0,..._0x389b55}))if(!_0x560575||0x1!=_0x153b5||0x1!=_0xbaa6b6)return!0x1;return!0x0;}class Bt extends _0x412245{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1a6257=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a6257['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1a6257['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1a6257['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a6257['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1a6257['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1a6257['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x409747,_0x37509a){const _0xfe09da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x193c86=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2447ec=_0x37509a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xaacece=_0x193c86['getColumnGroupElement'](_0x2447ec);let _0x54c739=_0xaacece?_0x193c86['getTableColumnsWidths'](_0xaacece):null,_0x938ce2=_0x2447ec['getAttribute']('tableWidth')||null;const _0x1f5c2d=_0x37509a['tableWidth']||_0x938ce2,_0x48f5d5=_0x37509a['columnWidths']||_0x54c739,_0x312a7a=this['editor']['plugins']['get']('Users')['me'];for(const _0x36fd05 of _0xfe09da['getSuggestions']()){const _0x2f711a=_0x36fd05['getContainedElement']();if('resizeTable'===_0x36fd05['subType']&&_0x2f711a===_0x2447ec){_0x36fd05['author']!==_0x312a7a&&_0x36fd05['discard']();const _0x119a06=_0x36fd05['data']['commandParams'];_0x938ce2=_0x119a06[0x0]['tableWidth'],_0x54c739=_0x119a06[0x0]['columnWidths'];break;}}_0x409747({'table':_0x2447ec,'tableWidth':_0x1f5c2d,'columnWidths':_0x48f5d5}),_0xfe09da['markBlockFormat'](_0x2447ec,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x938ce2,'columnWidths':_0x54c739}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x34515d){if('formatBlock'!=_0x34515d['type']&&'formatInline'!=_0x34515d['type'])return;const {data:_0x2addc5}=_0x34515d;if(_0x2addc5&&'resizeTable'===_0x2addc5['formatGroupId']){const _0x537d0d='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x537d0d)};}}}class xt extends _0x412245{['afterInit'](){const _0x5465a5=this['editor'];_0x5465a5['plugins']['has']('Template')&&_0x5465a5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x412245{['afterInit'](){const _0x14e011=this['editor'];if(!_0x14e011['commands']['get']('insertTableOfContents'))return;_0x14e011['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x55ff15=_0x14e011['plugins']['get']('TrackChangesEditing'),_0x1409ee=_0x14e011['locale'];_0x55ff15['descriptionFactory']['registerElementLabel']('tableOfContents',_0x32266c=>c(_0x1409ee,'ELEMENT_TABLE_OF_CONTENTS',_0x32266c));}}class Rt extends _0x412245{['afterInit'](){const _0x43d0fb=this['editor'];if(!_0x43d0fb['plugins']['has']('Title'))return;const _0x534b15=_0x43d0fb['plugins']['get']('TrackChangesEditing');_0x534b15['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x43d0fb['locale'],'ELEMENT_TITLE')),_0x43d0fb['model']['document']['registerPostFixer'](_0x332538=>{let _0x2628be=!0x1;const _0x49663f=Array['from'](_0x43d0fb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x308f08,data:_0x20821f}of _0x49663f){const {group:_0xb6cb5f}=_0x534b15['_splitMarkerName'](_0x308f08);if('suggestion'!==_0xb6cb5f||!_0x20821f['newRange'])continue;const _0x44b651=_0x20821f['newRange'],_0x3f96e1=_0x44b651['end']['nodeBefore'];if(!_0x3f96e1||!_0x3f96e1['is']('element','title-content'))continue;if(!_0x44b651['start']['isTouching'](_0x44b651['end']))continue;const _0x19b944=_0x43d0fb['model']['schema']['getNearestSelectionRange'](_0x44b651['end'],'forward');if(_0x19b944&&_0x19b944['isCollapsed']){const _0x305a0c=_0x332538['createRange'](_0x44b651['start'],_0x19b944['start']);_0x305a0c['isEqual'](_0x44b651)||(_0x332538['updateMarker'](_0x308f08,{'range':_0x305a0c}),_0x2628be=!0x0);}_0x2628be||(_0x332538['removeMarker'](_0x308f08),_0x2628be=!0x0);}return _0x2628be;});}}class Tt extends _0x412245{['afterInit'](){const _0x5d81bc=this['editor'],_0x3d3098=_0x5d81bc['plugins']['get']('TrackChangesEditing');_0x5d81bc['plugins']['has']('Uploadcare')&&(_0x3d3098['enableCommand']('uploadcare'),_0x5d81bc['plugins']['has']('UploadcareImageEdit')&&(_0x3d3098['enableCommand']('uploadcareImageEdit'),_0x3d3098['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3d3098['registerBlockAttribute']('uploadcareImageId'),_0x3d3098['descriptionFactory']['registerDescriptionCallback'](_0x4b05a2=>{if('attribute'!=_0x4b05a2['type'])return;const {data:_0x14fd3d}=_0x4b05a2;return _0x14fd3d&&'uploadcareImageId'==_0x14fd3d['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x412245{['afterInit'](){const _0x4f25be=this['editor'],_0xbf7ffd=_0x4f25be['plugins']['get']('TrackChangesEditing');_0x4f25be['plugins']['has']('UndoEditing')&&(_0xbf7ffd['enableCommand']('undo'),_0xbf7ffd['enableCommand']('redo'));}}class Ut extends _0x412245{static get['requires'](){return[Ct];}['afterInit'](){const _0x200430=this['editor'];if(!_0x200430['plugins']['has']('TableCaptionEditing'))return;_0x200430['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x412245{['tableProperties'];['tableCellProperties'];constructor(_0x341019){super(_0x341019),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 _0x1e7fc4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x333a0d of this['tableProperties'])_0x1e7fc4['enableCommand'](_0x333a0d,(_0x387acf,_0x5632d4)=>{const _0x27281d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x333a0d,[_0x27281d],this['tableProperties'],'tableProperties',_0x387acf,_0x5632d4);});_0x1e7fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1e7fc4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1e7fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x46b083,_0x12eff4)=>this['handleDiscardAction'](this['tableProperties'],_0x46b083,_0x12eff4)),_0x1e7fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x58523e of this['tableCellProperties'])_0x1e7fc4['enableCommand'](_0x58523e,(_0x5598cf,_0x4f58c1)=>{const _0x2ff76a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x58523e,_0x2ff76a,this['tableCellProperties'],'tableCellProperties',_0x5598cf,_0x4f58c1);});_0x1e7fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1e7fc4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1e7fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x624263,_0x2757f0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x624263,_0x2757f0)),_0x1e7fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1e7fc4['descriptionFactory']['registerDescriptionCallback'](_0x5c787a=>this['handleSuggestionDescription'](_0x5c787a));}['_handlePropertyChange'](_0x10da58,_0x5bc93c,_0xdfe6ec,_0x51a623,_0xf5d88c,_0x5adbe8){const _0x472534=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5adbe8['batch'],()=>{for(const _0x37e958 of _0x5bc93c){if(this['_getSuggestion'](_0x37e958,_0x51a623))_0xf5d88c(_0x5adbe8);else{const _0x1f06aa={};for(const _0x20a58c of _0xdfe6ec){const _0x4ec5ff=_0x37e958['getAttribute'](_0x20a58c);void 0x0!==_0x4ec5ff&&(_0x1f06aa[_0x20a58c]=_0x4ec5ff);}_0xf5d88c(_0x5adbe8),_0x472534['markBlockFormat'](_0x37e958,{'commandParams':[_0x1f06aa]},[],_0x51a623);}}});}['handleDiscardAction'](_0x1bfba4,_0x5d5003,_0x2559ae){const _0x368c6d=_0x5d5003[0x0]['start']['nodeAfter'],_0x2617ea=_0x2559ae['commandParams'][0x0];this['editor']['model']['change'](_0xc38ad5=>{for(const _0x403400 of _0x1bfba4)void 0x0!==_0x2617ea[_0x403400]?_0xc38ad5['setAttribute'](_0x403400,_0x2617ea[_0x403400],_0x368c6d):_0xc38ad5['removeAttribute'](_0x403400,_0x368c6d);});}['handleSuggestionDescription'](_0x5990ce){if(_0x5990ce['data'])switch(_0x5990ce['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'](_0x276045,_0x2257d1){const _0x580e59=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2c8d78 of _0x580e59['getSuggestions']({'skipNotAttached':!0x0})){const _0x4c1a9e=_0x2c8d78['getContainedElement']();if(_0x2c8d78['subType']===_0x2257d1&&_0x4c1a9e===_0x276045)return _0x2c8d78;}return null;}}const u='$elementName';class p extends _0x412245{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x2744cc,_0x935d02,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(_0x32f4c0){super(_0x32f4c0),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x18b65c,_0xab6bf2,_0x3633d4,_0x5c899a)=>{this['_model']['change'](()=>{for(const _0xbd80be of[..._0x5c899a,..._0x3633d4])this['_model']['markers']['has'](_0xbd80be)&&_0x32f4c0['editing']['reconvertMarker'](_0xbd80be);});}),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']=_0x32f4c0['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(),_0x32f4c0['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x32f4c0['config']['get']('trackChanges.trackFormatChanges'),_0x32f4c0['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x32f4c0['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x32f4c0,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2efd05=this['editor'],_0xa4196d=(_0x340d6b,_0x22e11b)=>{if('attribute'!=_0x340d6b)return'ck-suggestion-marker-'+_0x340d6b;const _0xdf31f7=_0x22e11b['split']('|')[0x0];return this['_isBlockAttribute'](_0xdf31f7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2efd05['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4f4d11=>{const {id:_0x505de6,authorId:_0x3fe526,type:_0x4cc3d6,subType:_0x1d14bd}=this['_splitMarkerName'](_0x4f4d11['markerName']),_0x3c0376=['ck-suggestion-marker',_0xa4196d(_0x4cc3d6,_0x1d14bd)];let _0x448a38=0xbb8;return this['activeMarkers']['includes'](_0x4f4d11['markerName'])&&(_0x3c0376['push']('ck-suggestion-marker--active'),_0x448a38=0xbc2),'deletion'==_0x4cc3d6&&(_0x448a38+=0x5),{'classes':_0x3c0376,'attributes':{'data-suggestion':_0x505de6,'data-author-id':_0x3fe526},'priority':_0x448a38};}}),_0x2efd05['conversion']['for']('dataDowncast')['add'](_0x2f8b95=>{_0x2f8b95['on']('addMarker:suggestion',(_0x9c5a00,_0x26f0f9,_0xea839d)=>{if(!_0xea839d['options']['showSuggestionHighlights'])return;const _0x54beae=_0x26f0f9['item'];if(!_0x54beae)return;const _0x256c2e=_0xea839d['mapper']['toViewElement'](_0x54beae);_0x2efd05['model']['schema']['isObject'](_0x54beae)&&_0x256c2e&&!_0x256c2e['getCustomProperty']('widget')&&_0x256c2e['is']('containerElement')&&_0xc14fbb(_0x256c2e,_0xea839d['writer']);},{'priority':'high'});}),_0x2efd05['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x22b9ab,_0x353cb3)=>{if(!_0x353cb3['options']['showSuggestionHighlights'])return null;const {id:_0x36db9c,authorId:_0x93a9fe,type:_0xbb052c,subType:_0x3a0e87}=this['_splitMarkerName'](_0x22b9ab['markerName']);return{'classes':['ck-suggestion-marker',_0xa4196d(_0xbb052c,_0x3a0e87)],'priority':0xbb8,'attributes':{'data-suggestion':_0x36db9c,'data-author-id':_0x93a9fe}};}});const _0x55535b=({showActiveMarkers:_0x335616=!0x0,isAttributeSuggestion:_0x14fec2=!0x1}={})=>(_0x3336a4,_0x2a45d8,_0x2a20f6)=>{if(!_0x2a45d8['item'])return;const {id:_0x577950,authorId:_0x56ba42}=this['_splitMarkerName'](_0x2a45d8['markerName']);if(_0x14fec2){const _0x10e1d6=this['_suggestions']['get'](_0x577950),_0x1f253a=this['_getAttributeKey'](_0x10e1d6);if(!this['_isBlockAttribute'](_0x1f253a))return;}if(_0x2a45d8['item']['is']('selection'))return void _0x2a20f6['consumable']['consume'](_0x2a45d8['item'],_0x3336a4['name']);const _0x916934=_0x2a20f6['mapper']['toViewElement'](_0x2a45d8['item']);if(_0x2a45d8['item']['is']('element')&&_0x2efd05['model']['schema']['isBlock'](_0x2a45d8['item'])&&!_0x916934['getCustomProperty']('addHighlight')){_0x2a20f6['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x916934),_0x2a20f6['writer']['setAttribute']('data-suggestion',_0x577950,_0x916934),_0x2a20f6['writer']['setAttribute']('data-author-id',_0x56ba42,_0x916934),_0x2a20f6['mapper']['bindElementToMarker'](_0x916934,_0x2a45d8['markerName']),_0x335616&&(this['activeMarkers']['includes'](_0x2a45d8['markerName'])?_0x2a20f6['writer']['addClass']('ck-suggestion-marker--active',_0x916934):_0x2a20f6['writer']['removeClass']('ck-suggestion-marker--active',_0x916934));for(const _0x213855 of _0x2efd05['model']['createRangeIn'](_0x2a45d8['item'])['getItems']())_0x2a20f6['consumable']['consume'](_0x213855,_0x3336a4['name']);_0x2a20f6['consumable']['consume'](_0x2a45d8['item'],_0x3336a4['name']);}};_0x2efd05['conversion']['for']('dataDowncast')['add'](_0x1c8545=>{_0x1c8545['on']('addMarker:suggestion:formatBlock',(_0x7fea3f,_0x986d30,_0x128cb4)=>{_0x128cb4['options']['showSuggestionHighlights']&&_0x55535b({'showActiveMarkers':!0x1})(_0x7fea3f,_0x986d30,_0x128cb4);},{'priority':'highest'});}),_0x2efd05['conversion']['for']('dataDowncast')['add'](_0x1a3724=>{_0x1a3724['on']('addMarker:suggestion:attribute',(_0xd84dc2,_0x3feb28,_0x10830a)=>{_0x10830a['options']['showSuggestionHighlights']&&_0x55535b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xd84dc2,_0x3feb28,_0x10830a);},{'priority':'highest'});}),_0x2efd05['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x31849f,_0x16c65e)=>{if(_0x16c65e['options']['showSuggestionHighlights']){const {id:_0x5df823,authorId:_0x5ecc19}=this['_splitMarkerName'](_0x31849f);return _0x31849f['includes'](':split')||_0x31849f['includes'](':merge')?{'group':'suggestion','name':_0x31849f['substr'](0xb),'attributes':{'data-suggestion':_0x5df823,'data-author-id':_0x5ecc19}}:null;}return{'group':'suggestion','name':_0x31849f['substr'](0xb)};}}),_0x2efd05['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x647b38,{writer:_0x539100})=>{let _0x3ff4c0='suggestion:'+_0x647b38['getAttribute']('suggestion-type')+':'+_0x647b38['getAttribute']('id');return _0x647b38['getAttribute']('marker-count')&&(_0x3ff4c0+=':'+_0x647b38['getAttribute']('marker-count')),_0x539100['createElement']('$marker',{'data-name':_0x3ff4c0});}}),_0x2efd05['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2efd05['conversion']['for']('editingDowncast')['add'](_0xaf1f86=>{_0xaf1f86['on']('addMarker:suggestion:formatBlock',_0x55535b(),{'priority':'high'});}),_0x2efd05['conversion']['for']('editingDowncast')['add'](_0x303e6b=>{_0x303e6b['on']('addMarker:suggestion:attribute',_0x55535b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2efd05['conversion']['for']('editingDowncast')['add'](_0x142ed5=>{_0x142ed5['on']('removeMarker:suggestion:formatBlock',(_0x2bdea4,_0x4bfbf9,_0x35526d)=>{const _0x4e8808=_0x35526d['mapper']['markerNameToElements'](_0x4bfbf9['markerName']);if(_0x4e8808){for(const _0x36ea93 of _0x4e8808)_0x36ea93['getCustomProperty']('addHighlight')||(_0x35526d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x36ea93),_0x35526d['writer']['removeAttribute']('data-suggestion',_0x36ea93),_0x35526d['writer']['removeAttribute']('data-author-id',_0x36ea93),_0x35526d['mapper']['unbindElementFromMarkerName'](_0x36ea93,_0x4bfbf9['markerName']));}},{'priority':'high'});}),_0x2efd05['conversion']['for']('editingDowncast')['add'](_0x19a62c=>{_0x19a62c['on']('removeMarker:suggestion:attribute',(_0x5ab51b,_0x5a1d9a,_0x48727f)=>{const _0x1e51a3=_0x48727f['mapper']['markerNameToElements'](_0x5a1d9a['markerName']);if(!_0x1e51a3)return;const {id:_0x2cba9f}=this['_splitMarkerName'](_0x5a1d9a['markerName']),_0x80d0c0=this['_suggestions']['get'](_0x2cba9f),_0x4e19eb=this['_getAttributeKey'](_0x80d0c0);if(this['_isBlockAttribute'](_0x4e19eb)){for(const _0xbf937f of _0x1e51a3)_0xbf937f['getCustomProperty']('addHighlight')||(_0x48727f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xbf937f),_0x48727f['writer']['removeAttribute']('data-suggestion',_0xbf937f),_0x48727f['writer']['removeAttribute']('data-author-id',_0xbf937f),_0x48727f['mapper']['unbindElementFromMarkerName'](_0xbf937f,_0x5a1d9a['markerName']));}},{'priority':'high'});}),_0x2efd05['model']['document']['registerPostFixer'](_0x3901f3=>{let _0x25ddad=!0x1;const _0x25c9f=Array['from'](_0x2efd05['model']['document']['differ']['getChangedMarkers']()),_0xd3328b=new Set();for(const {name:_0x1a51de,data:_0x9b800f}of _0x25c9f){const {group:_0x4b1023,type:_0xb49e8a,subType:_0x2b25d7,id:_0x51086b}=this['_splitMarkerName'](_0x1a51de);if('suggestion'!==_0x4b1023)continue;const _0x109b0c=this['_suggestions']['get'](_0x51086b);if(null!=_0x9b800f['newRange']){'formatInline'==_0xb49e8a&&(_0x25ddad=_0x25ddad||Jt(_0x9b800f['newRange'],_0x1a51de,_0x3901f3,_0x2efd05['model']['schema']));const _0x1c446d='attribute'==_0xb49e8a&&this['_isBlockAttribute'](_0x2b25d7['split']('|')[0x0]);if(_0x9b800f['newRange']['isCollapsed']||'$graveyard'==_0x9b800f['newRange']['root']['rootName']||'formatBlock'==_0xb49e8a&&!Ht(_0x9b800f['newRange'])||_0x1c446d&&!Ht(_0x9b800f['newRange'])||'deletion'==_0xb49e8a&&!(!Lt(_0x4f33e1=_0x9b800f['newRange'])&&!function(_0x2b444f){return _0x2b444f['start']['parent']==_0x2b444f['end']['nodeBefore']&&_0x2b444f['start']['isAtEnd'];}(_0x4f33e1)))_0x3901f3['removeMarker'](_0x1a51de),_0x25ddad=!0x0;else{if(!_0x109b0c||!_0x109b0c['isInContent'])continue;if(_0x9b800f['newRange']&&_0x9b800f['oldRange']&&_0x9b800f['newRange']['isEqual'](_0x9b800f['oldRange']))continue;_0xd3328b['add'](_0x109b0c);}}}var _0x4f33e1;return _0xd3328b['size']>0x0&&(_0x25ddad=!!this['_joinWithAdjacentSuggestions'](_0xd3328b)||_0x25ddad),_0x25ddad;}),_0x2efd05['model']['document']['registerPostFixer'](_0x1085b4=>{let _0x3b2aab=!0x1;for(const _0x2c08c5 of _0x2efd05['model']['document']['differ']['getChanges']())if('insert'==_0x2c08c5['type'])for(const _0x3e5be0 of this['_suggestions']['values']()){if(_0x3e5be0['isMultiRange']||!_0x3e5be0['isInContent'])continue;const _0x57465c='formatBlock'==_0x3e5be0['type'],_0x54d490=this['_getAttributeKey'](_0x3e5be0),_0x340756=_0x54d490&&this['_isBlockAttribute'](_0x54d490);if(!_0x57465c&&!_0x340756)continue;const _0x513622=_0x3e5be0['getFirstRange']();if(_0x513622['start']['parent']!=_0x513622['end']['parent']&&!_0x513622['end']['isAtEnd']){const _0x5e9c78=_0x2efd05['model']['createPositionAt'](_0x513622['start']['nodeAfter'],'end'),_0x4c77f7=_0x2efd05['model']['createRange'](_0x513622['start'],_0x5e9c78);_0x1085b4['updateMarker'](_0x3e5be0['getFirstMarker'](),{'range':_0x4c77f7}),_0x3b2aab=!0x0;}}return _0x3b2aab;}),_0x2efd05['model']['document']['registerPostFixer'](_0x436754=>this['_processAttributeChanges'](_0x436754)),_0x2efd05['model']['document']['registerPostFixer'](_0x457071=>!_0x457071['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x457071)),_0x2efd05['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2efd05['model']['document']['on']('change:data',(_0x2e3b95,_0x27c867)=>{if(!_0x27c867['isLocal']||_0x27c867['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x310f99=_0x2efd05['model']['document']['differ']['getChanges']();if(0x0==_0x310f99['length'])return;const _0x572791=[],_0x174254=_0x310f99['filter'](_0x39128c=>'attribute'==_0x39128c['type']),_0x11a91e=_0x310f99['filter'](_0x1388fe=>'insert'==_0x1388fe['type']&&'$text'!=_0x1388fe['name']);for(const _0x164916 of _0x174254)this['_isRegisteredAttribute'](_0x164916['attributeKey'])&&_0x572791['push']({'key':_0x164916['attributeKey'],'newValue':_0x164916['attributeNewValue'],'oldValue':_0x164916['attributeOldValue'],'range':qt(_0x164916['range'],_0x2efd05['model'])});for(const _0x3fabfc of _0x11a91e){if('rename'!=_0x3fabfc['action']&&'refresh'!=_0x3fabfc['action'])continue;const _0x4de50f=zt(_0x3fabfc['position']['nodeAfter'],_0x2efd05['model']),_0xc961e=_0x3fabfc['before'];'rename'==_0x3fabfc['action']&&_0x572791['push']({'key':u,'newValue':_0x3fabfc['name'],'oldValue':_0xc961e['name'],'range':_0x4de50f});for(const [_0xabbd6,_0x368403]of _0xc961e['attributes']){if(!this['_isRegisteredAttribute'](_0xabbd6))continue;const _0x3f0944=_0x3fabfc['attributes']['get'](_0xabbd6);_0x368403!==_0x3f0944&&_0x572791['push']({'key':_0xabbd6,'newValue':_0x3f0944,'oldValue':_0x368403,'range':_0x4de50f});}for(const [_0xdc04d2,_0x9754ee]of _0x3fabfc['attributes'])this['_isRegisteredAttribute'](_0xdc04d2)&&(_0xc961e['attributes']['has'](_0xdc04d2)||_0x572791['push']({'key':_0xdc04d2,'newValue':_0x9754ee,'oldValue':null,'range':_0x4de50f}));}0x0!=_0x572791['length']&&_0x2efd05['model']['enqueueChange'](_0x27c867,_0x5246b4=>{const _0x30ce58=_0x399ad3();for(const {range:_0x2b3ba7,key:_0x26e3bf,oldValue:_0x5156b7,newValue:_0x123b00}of _0x572791)this['markAttributeChange'](_0x2b3ba7,_0x26e3bf,_0x5156b7,_0x123b00,{'groupId':_0x30ce58});this['_reduceExistingSuggestions'](_0x5246b4,_0x572791);});},{'priority':'lowest'}),_0x2efd05['model']['markers']['on']('update:suggestion',(_0x195795,_0x16e9ef,_0x4f22fa)=>{if(null==_0x4f22fa){const {id:_0x459f55}=this['_splitMarkerName'](_0x16e9ef['name']),_0x57d566=this['_suggestions']['get'](_0x459f55);_0x57d566&&_0x57d566['addMarkerName'](_0x16e9ef['name']);}}),_0x2efd05['model']['document']['on']('change:data',()=>{const _0x2f8ea3=Array['from'](_0x2efd05['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2d972d=>'suggestion'===this['_splitMarkerName'](_0x2d972d['name'])['group']);if(0x0===_0x2f8ea3['length'])return;_0x2f8ea3['sort']((_0x2191d0,_0x3cfc09)=>{const _0x415ce0=_0x2191d0['data']['oldRange'],_0x23e7d1=_0x3cfc09['data']['oldRange'];return null===_0x415ce0&&null===_0x23e7d1?0x0:null===_0x415ce0&&null!==_0x23e7d1?-0x1:null!==_0x415ce0&&null===_0x23e7d1?0x1:_0x415ce0['start']['isBefore'](_0x23e7d1['start'])?-0x1:0x1;});const _0x47300a=new Set(),_0xf88f05=new Set();for(const {name:_0xb5930d,data:_0x294f7d}of _0x2f8ea3){const {id:_0x1fb1a5}=this['_splitMarkerName'](_0xb5930d);if(null===_0x294f7d['oldRange']){const _0x35f899=this['_handleNewSuggestionMarker'](_0xb5930d);_0xf88f05['add'](_0x35f899);}else{const _0x1eb8d0=this['_suggestions']['get'](_0x1fb1a5);null!==_0x294f7d['newRange']||_0x1eb8d0['isInContent']?(_0x47300a['add'](_0x1eb8d0['head']),_0xf88f05['add'](_0x1eb8d0)):this['_removeSuggestion'](_0x1eb8d0);}}_0xf88f05['size']>0x0&&this['_refreshSuggestionsChain'](_0xf88f05);for(const _0x37a6eb of _0x47300a)this['fire']('suggestionChanged',_0x37a6eb);}),_0x2efd05['model']['on']('applyOperation',(_0x23ff82,_0x22759d)=>{const _0x5d3373=_0x22759d[0x0];if(!this['_suggestions']['size'])return;if(!_0x5d3373['isDocumentOperation'])return;if(_0x5d3373['batch']['isUndo']||!_0x5d3373['batch']['isLocal'])return;let _0x590201,_0x1d60fe;switch(_0x5d3373['type']){case'insert':_0x590201=_0x2efd05['model']['createPositionAt'](_0x5d3373['position']),_0x1d60fe=_0x590201['getShiftedBy'](_0x5d3373['howMany']);break;case'split':_0x590201=_0x2efd05['model']['createPositionAt'](_0x5d3373['splitPosition']),_0x1d60fe=_0x2efd05['model']['createPositionAt'](_0x5d3373['moveTargetPosition']);break;case'move':_0x590201=_0x2efd05['model']['createPositionAt'](_0x5d3373['targetPosition']),_0x1d60fe=_0x590201['getShiftedBy'](_0x5d3373['howMany']);break;default:return;}const _0xc0adde=_0x2efd05['model']['createRange'](_0x590201,_0x1d60fe);_0x2efd05['model']['change'](()=>{for(const {suggestion:_0x3719ef,meta:_0x13c405}of this['_findSuggestions'](_0xc0adde)){if(_0x3719ef['isMultiRange'])continue;if('formatInline'==_0x3719ef['type'])continue;const _0x1a8c92=this['_getAttributeKey'](_0x3719ef);if(_0x1a8c92&&this['_isBlockAttribute'](_0x1a8c92)&&'split'!=_0x5d3373['type'])continue;const _0x5abb75=_0x3719ef['data']&&_0x3719ef['data']['multipleBlocks'];('formatBlock'!=_0x3719ef['type']||'split'==_0x5d3373['type']&&!_0x5abb75)&&(_0x13c405['containsRangeInObject']||'insertion'==_0x3719ef['type']&&_0x13c405['isOwn']||_0x3719ef['getFirstRange']()['containsRange'](_0xc0adde)&&this['_breakSuggestionMarker'](_0x3719ef,_0x590201,_0x1d60fe));}});},{'priority':'lowest'}),_0x2efd05['model']['on']('deleteContent',(_0x10a778,_0x2dfff0)=>{const _0x1473a7=_0x2dfff0[0x0],_0x31f49c=_0x2dfff0[0x1];if(_0x31f49c&&_0x31f49c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1473a7['isCollapsed'])return;const _0x139284=_0x2efd05['model']['schema'],{start:_0x413de8,end:_0x40aa5d}=_0x1473a7['getFirstRange'](),_0x428fa4=_0x413de8['nodeAfter']&&_0x139284['isLimit'](_0x413de8['nodeAfter'])?null:_0x139284['getNearestSelectionRange'](_0x413de8,'forward'),_0x1095be=_0x40aa5d['nodeBefore']&&_0x139284['isLimit'](_0x40aa5d['nodeBefore'])?null:_0x139284['getNearestSelectionRange'](_0x40aa5d,'backward'),_0x6892a=_0x2efd05['model']['createRange'](_0x428fa4?_0x428fa4['start']:_0x413de8,_0x1095be?_0x1095be['end']:_0x40aa5d);_0x2efd05['model']['change'](_0x407c63=>{this['markDeletion'](_0x6892a);const _0x471abe=_0x2efd05['model']['schema']['getNearestSelectionRange'](_0x6892a['start']);_0x1473a7['is']('documentSelection')?_0x407c63['setSelection'](_0x471abe):_0x1473a7['setTo'](_0x471abe);}),_0x10a778['stop']();},{'priority':_0x35e5d1['normal']+0xa}),_0x2efd05['model']['on']('insertContent',(_0xb770d9,_0x293380)=>{const _0x385d24=_0x293380[_0x293380['length']-0x1];_0x385d24&&_0x385d24['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2efd05['model']['change'](()=>{let _0x4c977e=_0x2efd05['model']['insertContent'](_0x293380[0x0],_0x293380[0x1],_0x293380[0x2],{'forceDefaultExecution':!0x0});if(!_0x4c977e)return;_0xb770d9['return']=_0x4c977e['clone']();const _0x1e8a53=_0x4c977e['end']['nodeBefore'],_0x4b9af3=_0x2efd05['model']['schema'];_0x1e8a53&&_0x4b9af3['isBlock'](_0x1e8a53)&&!_0x4b9af3['isObject'](_0x1e8a53)&&(_0x4c977e=_0x2efd05['model']['createRange'](_0x4c977e['start'],_0x2efd05['model']['createPositionAt'](_0x1e8a53,'end'))),this['markInsertion'](_0x4c977e);}),_0xb770d9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1a47a1=new x(_0x2efd05,this['_suggestions']);_0x2efd05['commands']['add']('acceptSuggestion',_0x1a47a1),this['enableCommand']('acceptSuggestion');const _0x2ee6b9=new O(_0x2efd05,this['_suggestions']);_0x2efd05['commands']['add']('discardSuggestion',_0x2ee6b9),this['enableCommand']('discardSuggestion'),_0x2efd05['commands']['add']('acceptAllSuggestions',new R(_0x2efd05,_0x1a47a1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2efd05['commands']['add']('discardAllSuggestions',new R(_0x2efd05,_0x2ee6b9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2efd05['commands']['add']('acceptSelectedSuggestions',new E(_0x2efd05,_0x1a47a1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2efd05['commands']['add']('discardSelectedSuggestions',new E(_0x2efd05,_0x2ee6b9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1914e1=_0x2efd05['plugins']['get']('CommentsRepository');this['listenTo'](_0x1914e1,'addComment',(_0x10c125,{threadId:_0x2c801b})=>{const _0x5806c8=this['_suggestions']['get'](_0x2c801b);_0x5806c8&&_0x5806c8['commentThread']&&0x1===_0x5806c8['commentThread']['length']&&this['_updateSuggestionData'](_0x2c801b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1914e1,'removeComment',(_0x822656,{threadId:_0x1e4bcf})=>{const _0x3dad05=this['_suggestions']['get'](_0x1e4bcf);_0x3dad05&&_0x3dad05['commentThread']&&!_0x3dad05['commentThread']['length']&&this['_updateSuggestionData'](_0x1e4bcf,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x326639){const _0x40a1c8=_0x53dfbf([0x71,0x51,0x32,0x58,0x52,0x72,0x6c,0x5a,0x42,0x41,0x78,0x30,0x65,0x45,0x76,0x77,0x6f,0x59,0x53,0x68,0x4d,0x64,0x67,0x31,0x6b,0x44,0x43,0x57,0x4c,0x63,0x74,0x70,0x50,0x37,0x4e,0x6e,0x79,0x7a,0x61,0x6d,0x62,0x49,0x47,0x35,0x39,0x66,0x4b,0x75,0x36,0x6a,0x56,0x69,0x73,0x54,0x34,0x38,0x48,0x4f,0x33,0x4a,0x46,0x55]),_0x102c12=0x58c45c95,_0x210fb9=0x58c3343d^_0x102c12,_0x6e7073=window[_0x53dfbf([0x44,0x61,0x74,0x65])][_0x53dfbf([0x6e,0x6f,0x77])](),_0x45c7cd=_0x326639[_0x53dfbf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x502b9b=new window[(_0x53dfbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a7702=>{_0x45c7cd[_0x53dfbf([0x6f,0x6e,0x63,0x65])](_0x53dfbf([0x72,0x65,0x61,0x64,0x79]),_0x4a7702);}),_0x1428c2={[_0x53dfbf([0x6b,0x74,0x79])]:_0x53dfbf([0x45,0x43]),[_0x53dfbf([0x75,0x73,0x65])]:_0x53dfbf([0x73,0x69,0x67]),[_0x53dfbf([0x63,0x72,0x76])]:_0x53dfbf([0x50,0x2d,0x32,0x35,0x36]),[_0x53dfbf([0x78])]:_0x53dfbf([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]),[_0x53dfbf([0x79])]:_0x53dfbf([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]),[_0x53dfbf([0x61,0x6c,0x67])]:_0x53dfbf([0x45,0x53,0x32,0x35,0x36])},_0x175e21=_0x45c7cd[_0x53dfbf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53dfbf([0x67,0x65,0x74])](_0x53dfbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5115fe(){let _0x11c1b3,_0x173d2d=null,_0x2b0fbe=null;try{if(_0x175e21==_0x53dfbf([0x47,0x50,0x4c]))return _0x53dfbf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11c1b3=_0x3cd0f9(),!_0x11c1b3)return _0x53dfbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11c1b3[_0x53dfbf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b0fbe=_0x5ce2fa(_0x11c1b3[_0x53dfbf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11c1b3[_0x53dfbf([0x6a,0x74,0x69])])),await _0x32cdf2()?_0x51c3b7()?_0x1299c9()?_0x53dfbf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1d5224()?(_0x11c1b3[_0x53dfbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53dfbf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x173d2d=_0xa6989a(_0x53dfbf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11c1b3[_0x53dfbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53dfbf([0x74,0x72,0x69,0x61,0x6c])&&(_0x173d2d=_0xa6989a(_0x53dfbf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1992ac()):_0x53dfbf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53dfbf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53dfbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x133bd3){return _0x53dfbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1299c9(){const _0x1b910a=[_0x53dfbf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53dfbf([0x74,0x72,0x69,0x61,0x6c])][_0x53dfbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11c1b3[_0x53dfbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6e7073/0x3e8:0xe10*_0x210fb9;return _0x11c1b3[_0x53dfbf([0x65,0x78,0x70])]<_0x1b910a;}function _0x51c3b7(){const _0x4d1a08=_0x11c1b3[_0x53dfbf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4d1a08)return!0x1;if(_0x4d1a08[_0x53dfbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53dfbf([0x2a])))return!0x0;if(_0x4d1a08[_0x53dfbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53dfbf([0x54,0x43])))return!0x0;if(_0x4d1a08[_0x53dfbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53dfbf([0x52,0x54,0x43]))){if(_0x1d005a())return!0x0;if(_0x5d2765()||_0xd9c3ae())return!0x0;}return!0x1;}function _0x1d5224(){const _0x17047d=_0x11c1b3[_0x53dfbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x17047d||0x0==_0x17047d[_0x53dfbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x46fbf2}=new URL(window[_0x53dfbf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x17047d[_0x53dfbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46fbf2))return!0x0;const _0x4f1bfa=_0x46fbf2[_0x53dfbf([0x73,0x70,0x6c,0x69,0x74])](_0x53dfbf([0x2e]));return _0x17047d[_0x53dfbf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39dbbf=>_0x39dbbf[_0x53dfbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53dfbf([0x2a])))[_0x53dfbf([0x6d,0x61,0x70])](_0x19c947=>_0x19c947[_0x53dfbf([0x73,0x70,0x6c,0x69,0x74])](_0x53dfbf([0x2e])))[_0x53dfbf([0x73,0x6f,0x6d,0x65])](_0x1f1084=>_0x4f1bfa[_0x53dfbf([0x65,0x76,0x65,0x72,0x79])]((_0x43c538,_0x421fb0)=>_0x1f1084[_0x421fb0]===_0x43c538||_0x1f1084[_0x421fb0]===_0x53dfbf([0x2a])));}function _0x1992ac(){return _0x173d2d&&_0x2b0fbe?new window[(_0x53dfbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34bc2c,_0x455eb7)=>{_0x173d2d[_0x53dfbf([0x74,0x68,0x65,0x6e])](_0x34bc2c,_0x455eb7),_0x2b0fbe[_0x53dfbf([0x74,0x68,0x65,0x6e])](_0x345d6f=>{_0x345d6f!=_0x53dfbf([0x56,0x61,0x6c,0x69,0x64])&&_0x34bc2c(_0x345d6f);},_0x455eb7);}):_0x173d2d||_0x2b0fbe||_0x53dfbf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ce2fa(_0x346993,_0x281eff){return new window[(_0x53dfbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29e4f5=>{if(_0x3e971e())return _0x29e4f5(_0x53dfbf([0x56,0x61,0x6c,0x69,0x64]));_0xdf9088(),_0x45c7cd[_0x53dfbf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53dfbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x614c7f=!0x1;const _0x57106d=_0x399ad3();function _0x4f65a5(_0x21c265){return!!_0x21c265&&(typeof _0x21c265===_0x53dfbf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21c265===_0x53dfbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21c265[_0x53dfbf([0x74,0x68,0x65,0x6e])]===_0x53dfbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21c265[_0x53dfbf([0x63,0x61,0x74,0x63,0x68])]===_0x53dfbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xdb45b1(_0x2f437b){_0x4ba65e(_0x2f437b)[_0x53dfbf([0x74,0x68,0x65,0x6e])](_0x157b03=>{if(!_0x157b03||_0x157b03[_0x53dfbf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53dfbf([0x6f,0x6b]))return _0x53dfbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3664f3(_0x1e7db8(_0x57106d+_0x281eff))!=_0x157b03[_0x53dfbf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53dfbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53dfbf([0x56,0x61,0x6c,0x69,0x64]);})[_0x53dfbf([0x74,0x68,0x65,0x6e])](_0x3fd2ae=>(_0x53b804(),_0x3fd2ae),()=>{const _0x411d67=_0x4ecf04();return null==_0x411d67?(_0x53b804(),_0x53dfbf([0x56,0x61,0x6c,0x69,0x64])):_0x53dfbf(_0x6e7073-_0x411d67>(0x7cc8d895^_0x102c12)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53dfbf([0x74,0x68,0x65,0x6e])](_0x29e4f5)[_0x53dfbf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x29e4f5(_0x53dfbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4326c9=0x58f2b215^_0x102c12;function _0x53b804(){const _0x126289=_0x53dfbf([0x6c,0x6c,0x63,0x74,0x2d])+_0x3664f3(_0x1e7db8(_0x346993)),_0x29e239=_0x4b57a2(_0x3664f3(window[_0x53dfbf([0x4d,0x61,0x74,0x68])][_0x53dfbf([0x63,0x65,0x69,0x6c])](_0x6e7073/_0x4326c9)));window[_0x53dfbf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53dfbf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x126289,_0x29e239);}function _0x4ecf04(){const _0x1ce5ef=_0x53dfbf([0x6c,0x6c,0x63,0x74,0x2d])+_0x3664f3(_0x1e7db8(_0x346993)),_0x424c4a=window[_0x53dfbf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53dfbf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ce5ef);return _0x424c4a?window[_0x53dfbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b57a2(_0x424c4a),0x10)*_0x4326c9:null;}function _0x4ba65e(_0x373679){return new window[(_0x53dfbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d4d2b,_0x313369)=>{_0x373679[_0x53dfbf([0x74,0x68,0x65,0x6e])](_0x4d4d2b,_0x313369),window[_0x53dfbf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x313369,0x58c58855^_0x102c12);});}}_0x45c7cd[_0x53dfbf([0x6f,0x6e])](_0x53dfbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21f840,_0x427ed4)=>{if(_0x427ed4[0x0]!=_0x346993)return _0x29e4f5(_0x53dfbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x427ed4[0x1]={..._0x427ed4[0x1],[_0x53dfbf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x57106d};},{[_0x53dfbf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53dfbf([0x68,0x69,0x67,0x68])}),_0x45c7cd[_0x53dfbf([0x6f,0x6e])](_0x53dfbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4fd588=>{_0x4f65a5(_0x4fd588[_0x53dfbf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x614c7f=!0x0,_0xdb45b1(_0x4fd588[_0x53dfbf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53dfbf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53dfbf([0x6c,0x6f,0x77])}),_0x502b9b[_0x53dfbf([0x74,0x68,0x65,0x6e])](()=>{_0x614c7f||_0x29e4f5(_0x53dfbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e971e(){return _0x45c7cd[_0x53dfbf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53dfbf([0x76,0x69,0x65,0x77])][_0x53dfbf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53dfbf([0x61,0x75,0x74,0x6f]);}function _0xdf9088(){_0x45c7cd[_0x53dfbf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53dfbf([0x76,0x69,0x65,0x77])][_0x53dfbf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53dfbf([0x61,0x75,0x74,0x6f]);}}function _0xa6989a(_0x30f5de){const _0x53ae49=[new window[(_0x53dfbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d4846=>setTimeout(_0x5d4846,0x58cd6259^_0x102c12)),_0x502b9b[_0x53dfbf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53dfbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4473d8=>{let _0x5ed267=0x0;_0x45c7cd[_0x53dfbf([0x6d,0x6f,0x64,0x65,0x6c])][_0x53dfbf([0x6f,0x6e])](_0x53dfbf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b6508,_0x2fca82)=>{_0x2fca82[0x0][_0x53dfbf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5ed267++,_0x5ed267==(0x58c45d6d^_0x102c12)&&(_0x4473d8(),_0x2b6508[_0x53dfbf([0x6f,0x66,0x66])]());});}))];return window[_0x53dfbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53dfbf([0x72,0x61,0x63,0x65])](_0x53ae49)[_0x53dfbf([0x74,0x68,0x65,0x6e])](()=>_0x30f5de);}async function _0x102314(){await _0x502b9b,_0x45c7cd[_0x53dfbf([0x6d,0x6f,0x64,0x65,0x6c])][_0x53dfbf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x9948d3,_0x45c7cd[_0x53dfbf([0x6d,0x6f,0x64,0x65,0x6c])][_0x53dfbf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x9948d3,_0x45c7cd[_0x53dfbf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53dfbf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d005a(){return _0x221a91(_0x53dfbf([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x462028(_0x53dfbf([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x53dfbf([0x73,0x74,0x61,0x74,0x65])]==_0x53dfbf([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5d2765(){return _0x221a91(_0x53dfbf([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 _0xd9c3ae(){return _0x221a91(_0x53dfbf([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2a23be(_0x21f7b4){const _0x16e854=_0x20f1e0();_0x45c7cd[_0x16e854]=_0x53dfbf([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x21f7b4,_0x21f7b4!=_0x53dfbf([0x56,0x61,0x6c,0x69,0x64])&&_0x102314();}function _0x20f1e0(){const _0x255bb5=window[_0x53dfbf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53dfbf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53dfbf([0x6e,0x6f,0x77])]())[_0x53dfbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53dfbf([0x2e]),'');let _0x111170=_0x53dfbf([0x71]);for(let _0x6a71ac=0x0;_0x6a71ac<_0x255bb5[_0x53dfbf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6a71ac+=0x2){let _0x403ab7=window[_0x53dfbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x255bb5[_0x53dfbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6a71ac,_0x6a71ac+0x2));_0x403ab7>=_0x40a1c8[_0x53dfbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x403ab7-=_0x40a1c8[_0x53dfbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x111170+=_0x40a1c8[_0x403ab7];}return _0x111170;}function _0x3cd0f9(){const _0x381625=_0x175e21[_0x53dfbf([0x73,0x70,0x6c,0x69,0x74])](_0x53dfbf([0x2e]));if(0x3!=_0x381625[_0x53dfbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd27e75(_0x381625[0x1]);function _0xd27e75(_0x30ff97){const _0x2da49d=_0x12cb44(_0x30ff97);return _0x2da49d&&_0x41231b()?_0x2da49d:null;function _0x41231b(){const _0x47dd27=_0x2da49d[_0x53dfbf([0x6a,0x74,0x69])],_0x4b6f94=window[_0x53dfbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47dd27[_0x53dfbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47dd27[_0x53dfbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3c6cb5={..._0x2da49d,[_0x53dfbf([0x6a,0x74,0x69])]:_0x47dd27[_0x53dfbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x47dd27[_0x53dfbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3c6cb5[_0x53dfbf([0x76,0x63])],_0x1e7db8(_0x3c6cb5)==_0x4b6f94;}}}async function _0x32cdf2(){let _0x203475=!0x0;try{const _0x18e82c=_0x175e21[_0x53dfbf([0x73,0x70,0x6c,0x69,0x74])](_0x53dfbf([0x2e])),[_0x595435,_0x210d68,_0x224f23]=_0x18e82c;return _0xbb92c2(_0x595435),await _0x2cfeee(_0x595435,_0x210d68,_0x224f23),_0x203475;}catch(_0xeacba1){return!0x1;}function _0xbb92c2(_0x23d06d){const _0x21799f=_0x12cb44(_0x23d06d);_0x21799f&&_0x21799f[_0x53dfbf([0x61,0x6c,0x67])]==_0x53dfbf([0x45,0x53,0x32,0x35,0x36])||(_0x203475=!0x1);}async function _0x2cfeee(_0x5d369f,_0x28add1,_0x2573cc){const _0x278cfb=window[_0x53dfbf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53dfbf([0x66,0x72,0x6f,0x6d])](_0x2eb6d5(_0x2573cc),_0x256e48=>_0x256e48[_0x53dfbf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7a7364=new window[(_0x53dfbf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53dfbf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d369f+_0x53dfbf([0x2e])+_0x28add1),_0x34c4cf=window[_0x53dfbf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53dfbf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x34c4cf)return;const _0x5a8f2d=await _0x34c4cf[_0x53dfbf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53dfbf([0x6a,0x77,0x6b]),_0x1428c2,{[_0x53dfbf([0x6e,0x61,0x6d,0x65])]:_0x53dfbf([0x45,0x43,0x44,0x53,0x41]),[_0x53dfbf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53dfbf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53dfbf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x34c4cf[_0x53dfbf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53dfbf([0x6e,0x61,0x6d,0x65])]:_0x53dfbf([0x45,0x43,0x44,0x53,0x41]),[_0x53dfbf([0x68,0x61,0x73,0x68])]:{[_0x53dfbf([0x6e,0x61,0x6d,0x65])]:_0x53dfbf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a8f2d,_0x278cfb,_0x7a7364)||(_0x203475=!0x1);}}function _0x12cb44(_0x21ab70){return _0x21ab70[_0x53dfbf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53dfbf([0x65,0x79]))?JSON[_0x53dfbf([0x70,0x61,0x72,0x73,0x65])](_0x2eb6d5(_0x21ab70)):null;}function _0x2eb6d5(_0x5bf43b){return window[_0x53dfbf([0x61,0x74,0x6f,0x62])](_0x5bf43b[_0x53dfbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53dfbf([0x2b]))[_0x53dfbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53dfbf([0x2f])));}function _0x1e7db8(_0x416c67){let _0x197bf3=0x1505;function _0x3732c9(_0x3fe325){for(let _0x54de15=0x0;_0x54de15<_0x3fe325[_0x53dfbf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54de15++){const _0x4984d1=_0x3fe325[_0x53dfbf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x54de15);_0x197bf3=(_0x197bf3<<0x5)+_0x197bf3+_0x4984d1,_0x197bf3&=_0x197bf3;}}function _0xb73065(_0x1f1b86){Array[_0x53dfbf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f1b86)?_0x1f1b86[_0x53dfbf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xb73065):_0x1f1b86&&typeof _0x1f1b86==_0x53dfbf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53dfbf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f1b86)[_0x53dfbf([0x73,0x6f,0x72,0x74])]()[_0x53dfbf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4aa00b,_0x1d890f])=>{_0x3732c9(_0x4aa00b),_0xb73065(_0x1d890f);}):_0x3732c9(window[_0x53dfbf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f1b86));}return _0xb73065(_0x416c67),_0x197bf3>>>0x0;}function _0x3664f3(_0x4ca15f){return _0x4ca15f[_0x53dfbf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53dfbf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53dfbf([0x30]));}function _0x4b57a2(_0x4dad4a){return _0x4dad4a[_0x53dfbf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53dfbf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53dfbf([0x6a,0x6f,0x69,0x6e])]('');}function _0x221a91(_0x398969){return _0x45c7cd[_0x53dfbf([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x53dfbf([0x68,0x61,0x73])](_0x398969);}function _0x462028(_0x134352){return _0x45c7cd[_0x53dfbf([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x53dfbf([0x67,0x65,0x74])](_0x134352);}function _0x9948d3(){}function _0x53dfbf(_0x57e646){return _0x57e646['map'](_0x455496=>String['fromCharCode'](_0x455496))['join']('');}_0x2a23be(await _0x5115fe());}(this);}set['adapter'](_0x273060){if(this['_adapter'])throw new _0x470bfb('track-changes-adapter-already-set',this);this['_adapter']=_0x273060;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x57158e=!0x1,toJSON:_0x3658f3=!0x1}={}){const _0x509e98=[];for(const _0x3adc36 of this['_suggestions']['values']())_0x57158e&&!_0x3adc36['isInContent']||_0x509e98['push'](_0x3adc36);return _0x3658f3?_0x509e98['map'](_0x397de9=>_0x397de9['toJSON']()):_0x509e98;}['getSuggestion'](_0x8ab49d){const _0x3fc476=this['_suggestions']['get'](_0x8ab49d);if(!_0x3fc476)throw new _0x470bfb('track-changes-suggestion-not-found',this);return _0x3fc476;}['hasSuggestion'](_0x3295ab){return this['_suggestions']['has'](_0x3295ab);}['addSuggestionData'](_0x484a6f){const {authorId:_0x57fef1,id:_0x906db6,originalSuggestionId:_0xbc05a8,attributes:_0x5eb3c6}=_0x484a6f,[_0x46a8f7,_0x327ac6]=_0x484a6f['type']['split'](':'),_0x3426d7=this['_suggestions']['get'](_0x906db6)||this['_createSuggestion'](_0x46a8f7,_0x327ac6,_0x906db6,_0x57fef1,_0x5eb3c6,_0xbc05a8);if(this['_addThreadToSuggestion'](_0x3426d7),this['_checkSuggestionCorrectness'](_0x3426d7,_0x46a8f7,_0x327ac6||null,_0x57fef1),_0x3426d7['createdAt']=_0x484a6f['createdAt'],_0x3426d7['_isDataLoaded']=!0x0,_0x5eb3c6&&_0x5eb3c6['@external']){const _0x3bffbd=_0x5eb3c6['@external'],_0x2c1cd6=this['_getExternalAuthor'](_0x3bffbd['authorName']);_0x3426d7['authoredAt']=_0x3bffbd['createdAt'],_0x3426d7['author']=_0x2c1cd6,_0x3426d7['isExternal']=!0x0;}else _0x3426d7['authoredAt']=_0x484a6f['createdAt'];switch(_0x484a6f['data']&&(_0x3426d7['data']=_0x484a6f['data']),_0x484a6f['attributes']&&(_0x3426d7['attributes']=_0x484a6f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3426d7['_saved']=!0x0),this['_suggestionState']['get'](_0x3426d7)){case'notReady':this['_suggestionState']['set'](_0x3426d7,'dataReady');break;case'markerReady':_0x3426d7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3426d7])),this['_refreshSuggestionsChain'](new Set([_0x3426d7])),this['_suggestionState']['set'](_0x3426d7,'ready'),this['fire']('suggestionLoaded',_0x3426d7)):this['_suggestionState']['set'](_0x3426d7,'removed');}return _0x3426d7;}['acceptSuggestion'](_0x48eaab){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x6a6b27 of _0x48eaab['getAllAdjacentSuggestions']())_0x6a6b27['accept']();});});}['discardSuggestion'](_0x5aa2e4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x23e8f9 of _0x5aa2e4['getAllAdjacentSuggestions']())_0x23e8f9['discard']();});});}['enableCommand'](_0x4b23c5,_0x13eb84){const _0x1a029a=this['editor']['commands']['get'](_0x4b23c5);if(!_0x1a029a)throw new _0x470bfb('track-changes-command-not-found',this,{'commandName':_0x4b23c5});if(this['_enabledCommands']['has'](_0x1a029a))throw new _0x470bfb('track-changes-enable-command-twice',this,{'commandName':_0x4b23c5});this['_enabledCommands']['add'](_0x1a029a),_0x13eb84&&_0x1a029a['on']('execute',(_0x1fbb51,_0x449002)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x449002['length']>0x0&&_0x449002[_0x449002['length']-0x1]&&_0x449002[_0x449002['length']-0x1]['forceDefaultExecution']?_0x449002['pop']():(_0x1fbb51['return']=_0x13eb84((..._0xd87498)=>_0x1a029a['execute'](..._0xd87498,{'forceDefaultExecution':!0x0}),..._0x449002),_0x1fbb51['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2a22a0){let _0x2d4558,_0x14febe;const _0x3162bf=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2d4558=_0x2a22a0();}catch(_0x52b91d){_0x14febe=_0x52b91d;}return _0x3162bf||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x14febe&&_0x470bfb['rethrowUnexpectedError'](_0x14febe,this),_0x2d4558;}['markInsertion'](_0x498752,_0x3af304=null,_0x1cf221={}){if(_0x498752['isCollapsed'])return null;const _0x52e8f5=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1cf221['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x51f329,meta:_0x4b6cfb}of this['_findSuggestions'](_0x498752,'insertion'))if(_0x4b6cfb['isOwn']){if(!_0x4b6cfb['isNextTo']){if(_0x4b6cfb['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x51f329,_0x1cf221))continue;return _0x51f329;}if(Xt(_0x51f329,_0x1cf221))return _0x51f329;this['_breakSuggestionMarker'](_0x51f329,_0x498752['start'],_0x498752['end']);break;}if(_0x3af304==_0x51f329['subType']&&Xt(_0x51f329,_0x1cf221)){const _0x13811a=_0x51f329['getFirstRange']();return _0x13811a['start']['isEqual'](_0x498752['end'])?this['_setSuggestionRange'](_0x51f329,this['_model']['createRange'](_0x498752['start'],_0x13811a['end'])):this['_setSuggestionRange'](_0x51f329,this['_model']['createRange'](_0x13811a['start'],_0x498752['end'])),_0x51f329;}}const _0x462ff8=_0x399ad3(),_0x381a91=_0x52e8f5['id'],_0x3a6173=_0x3af304?'insertion:'+_0x3af304:'insertion',_0x4c5cc7=this['_setSuggestionData']({'id':_0x462ff8,'type':_0x3a6173,'createdAt':new Date(),'authorId':_0x381a91,'attributes':_0x1cf221});return this['_addSuggestionMarker'](_0x3a6173,_0x462ff8,_0x381a91,_0x498752),_0x4c5cc7;}['markMultiRangeInsertion'](_0x2cab88,_0x213ae1='multi',_0x39bf5b={}){const _0x8e4398=this['editor']['plugins']['get']('Users')['me'],_0x4ae418=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x213ae1,'join');this['_trackingSessionId']&&(_0x39bf5b['trackingSessionId']=this['_trackingSessionId']);for(const _0x79d085 of this['getSuggestions']())if(_0x79d085['author']['id']==_0x8e4398['id']&&'insertion'==_0x79d085['type']&&_0x79d085['subType']==_0x213ae1&&Xt(_0x79d085,_0x39bf5b)&&(_0x4ae418(_0x79d085['getRanges'](),_0x2cab88)||_0x4ae418(_0x2cab88,_0x79d085['getRanges']()))){for(const _0x24beb0 of _0x2cab88)_0x79d085['addRange'](_0x24beb0);return _0x79d085;}for(const {suggestion:_0x845a0e,meta:_0x45eab4}of this['_findSuggestions'](_0x2cab88,'insertion')){if(!_0x45eab4['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x45eab4['containsRangeInObject'])continue;if(!Xt(_0x845a0e,_0x39bf5b))continue;let _0x5476f4=!0x0;for(const _0x249a3c of _0x845a0e['getRanges']())for(const _0x45b08e of _0x2cab88)if(!_0x249a3c['containsRange'](_0x45b08e)){_0x5476f4=!0x1;break;}if(_0x5476f4)return _0x845a0e;}const _0xa4853=_0x399ad3(),_0x252e62=_0x8e4398['id'],_0x5ae526='insertion:'+_0x213ae1,_0x10cf3e=this['_setSuggestionData']({'id':_0xa4853,'type':_0x5ae526,'createdAt':new Date(),'authorId':_0x252e62,'attributes':_0x39bf5b});for(const _0xf55189 of _0x2cab88)this['_addSuggestionMarker'](_0x5ae526,_0xa4853,_0x252e62,_0xf55189,o['getMultiRangeId']());return _0x10cf3e;}['markInlineFormat'](_0x3b6109,_0x1ce559,_0x13d4aa=null,_0x4efd01={}){if(_0x13d4aa=_0x13d4aa||Kt(_0x1ce559),_0x3b6109['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4efd01['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x410c5b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13d4aa,'accept');return this['forceDefaultExecution'](()=>_0x410c5b([_0x3b6109],_0x1ce559,_0x4efd01)),null;}const _0x5f1e3f=this['editor']['plugins']['get']('Users')['me'],_0x4351d8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x332f1e,meta:_0x179bcf}of this['_findSuggestions'](_0x3b6109,'insertion'))_0x179bcf['isOwn']&&!_0x179bcf['isInsideObject']&&_0x4351d8['push'](..._0x332f1e['getRanges']());}const _0x3d69b5=function(_0x321117,_0xc4edde){const _0x10220d=[];for(const _0x19390b of _0xc4edde){const _0x1e797f=_0x321117['getIntersection'](_0x19390b);_0x1e797f&&_0x10220d['push'](_0x1e797f);}return _0x10220d;}(_0x3b6109,_0x4351d8),_0x5e2a9b=function(_0x12c6b1,_0x5bd950){const _0x5383e8=[_0x12c6b1];for(const _0x44ec46 of _0x5bd950){let _0xb9f7c5=0x0;for(;_0xb9f7c5<_0x5383e8['length'];){const _0x57a0fe=_0x5383e8[_0xb9f7c5]['getDifference'](_0x44ec46);_0x5383e8['splice'](_0xb9f7c5,0x1,..._0x57a0fe),_0xb9f7c5+=_0x57a0fe['length'];}}return _0x5383e8;}(_0x3b6109,_0x4351d8);_0x3d69b5['length']&&this['_model']['change'](()=>{for(const _0x4e3b00 of _0x3d69b5){const _0x248263=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13d4aa,'accept');this['forceDefaultExecution'](()=>_0x248263([_0x4e3b00],_0x1ce559,_0x4efd01));}});for(const _0x3d3fa4 of _0x5e2a9b){let _0x20f524=null,_0x292a94=_0x3d3fa4['start'],_0x791428=_0x3d3fa4['end'];for(const {suggestion:_0x3d5854,meta:_0x258f6e}of this['_findSuggestions'](_0x3d3fa4,'formatInline')){if(!_0x258f6e['isOwn'])continue;if(_0x3d5854['subType']!=_0x13d4aa)continue;if(!Xt(_0x3d5854,_0x4efd01))continue;const _0x459ea9=_0x3d5854['getFirstRange']();if(_0x459ea9['containsRange'](_0x3d3fa4,!0x0))return null;_0x292a94=_0x292a94['isBefore'](_0x459ea9['start'])?_0x292a94:_0x459ea9['start'],_0x791428=_0x791428['isAfter'](_0x459ea9['end'])?_0x791428:_0x459ea9['end'],_0x20f524?_0x459ea9['start']['isBefore'](_0x20f524['getFirstRange']()['start'])?(_0x20f524['removeMarkers'](),_0x20f524=_0x3d5854):_0x3d5854['removeMarkers']():_0x20f524=_0x3d5854;}const _0x5eaf3a=this['_model']['createRange'](_0x292a94,_0x791428);if(_0x20f524)this['_setSuggestionRange'](_0x20f524,_0x5eaf3a);else{const _0x4a3c47=_0x399ad3(),_0x504828=_0x5f1e3f['id'];this['_setSuggestionData']({'id':_0x4a3c47,'type':'formatInline:'+_0x13d4aa,'data':_0x1ce559,'createdAt':new Date(),'authorId':_0x504828,'attributes':_0x4efd01}),this['_addSuggestionMarker']('formatInline:'+_0x13d4aa,_0x4a3c47,_0x504828,_0x5eaf3a);}}return null;}['markBlockFormat'](_0x20f024,_0x121572,_0x1ebea5=[],_0x349a32=null,_0x23fec2={}){_0x121572['formatGroupId']||(_0x121572['formatGroupId']=_0x121572['commandName']),_0x121572['multipleBlocks']=_0x20f024['is']('range'),_0x349a32=_0x349a32||Kt(_0x121572);const _0x4ef4e6=_0x1ebea5['map'](_0x1932be=>zt(_0x1932be,this['_model'])),_0x518c23=_0x20f024['is']('range')?_0x20f024:zt(_0x20f024,this['_model']);if(this['_trackingSessionId']&&(_0x23fec2['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2f4e6a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x349a32,'accept');return this['forceDefaultExecution'](()=>_0x2f4e6a([_0x518c23],_0x121572,_0x23fec2)),null;}_0x4ef4e6['push'](_0x518c23);let _0x24644a=!0x0;for(const _0x5396a0 of _0x4ef4e6)if(!this['_rangeIsInLocalUserInsertion'](_0x5396a0)){_0x24644a=!0x1;break;}if(_0x24644a&&'always'!==this['_trackFormatChanges']){const _0x1daadd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x349a32,'accept');return this['forceDefaultExecution'](()=>_0x1daadd([_0x518c23],_0x121572,_0x23fec2)),null;}let _0x3c0e55=null,_0x1058cf=_0x518c23['start'],_0xbde0d5=_0x518c23['end'];for(const {suggestion:_0x5a4dbc,meta:_0x5e42cc}of this['_findSuggestions'](_0x518c23,'formatBlock')){if(!_0x5e42cc['isOwn'])continue;if(_0x5e42cc['isNextTo']||_0x5e42cc['containsRangeInObject']||_0x5e42cc['isInsideObject'])continue;if(_0x5a4dbc['data']['formatGroupId']!=_0x121572['formatGroupId'])continue;if(!Xt(_0x5a4dbc,_0x23fec2))continue;const _0x62019a=_0x5a4dbc['getFirstRange']();if(_0x5a4dbc['subType']==_0x349a32){if(_0x62019a['containsRange'](_0x518c23,!0x0))return null;_0x1058cf=_0x1058cf['isBefore'](_0x62019a['start'])?_0x1058cf:_0x62019a['start'],_0xbde0d5=_0xbde0d5['isAfter'](_0x62019a['end'])?_0xbde0d5:_0x62019a['end'],_0x3c0e55?_0x62019a['start']['isBefore'](_0x3c0e55['getFirstRange']()['start'])?(_0x3c0e55['removeMarkers'](),_0x3c0e55=_0x5a4dbc):_0x5a4dbc['removeMarkers']():_0x3c0e55=_0x5a4dbc;}else{const _0x40dd62=_0x518c23['getIntersection'](_0x62019a);this['_cutOutSuggestionMarker'](_0x5a4dbc,_0x40dd62);}}const _0x47f8cd=this['editor']['plugins']['get']('Users')['me'],_0xabf2c0=_0x399ad3(),_0x403947=_0x47f8cd['id'];if(_0x3c0e55)return this['_setSuggestionRange'](_0x3c0e55,this['_model']['createRange'](_0x1058cf,_0xbde0d5)),_0x3c0e55;{const _0x3c13ac=this['_setSuggestionData']({'id':_0xabf2c0,'type':'formatBlock:'+_0x349a32,'data':_0x121572,'createdAt':new Date(),'authorId':_0x403947,'attributes':_0x23fec2});return this['_addSuggestionMarker']('formatBlock:'+_0x349a32,_0xabf2c0,_0x403947,this['_model']['createRange'](_0x1058cf,_0xbde0d5)),_0x3c13ac;}}['markMultiRangeBlockFormat'](_0xd26650,_0x470fe7,_0x4e601b=[],_0x5afee7=null,_0x56c60d={}){_0x470fe7['formatGroupId']||(_0x470fe7['formatGroupId']=_0x470fe7['commandName']);const _0x57751f=_0xd26650[0x0];_0x470fe7['multipleBlocks']=_0x57751f['is']('range'),_0x5afee7=_0x5afee7||Kt(_0x470fe7);const _0x82d6e2=_0x4e601b['map'](_0x207fa0=>zt(_0x207fa0,this['_model'])),_0xd5df25=_0x57751f['is']('range')?_0xd26650:_0xd26650['map'](_0x283d4c=>zt(_0x283d4c,this['_model']));if(this['_trackingSessionId']&&(_0x56c60d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xa035a8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5afee7,'accept');return this['forceDefaultExecution'](()=>_0xa035a8(_0xd5df25,_0x470fe7,_0x56c60d)),null;}_0x82d6e2['push'](..._0xd5df25);let _0x5d8131=!0x0;for(const _0x5ebe7c of _0x82d6e2)if(!this['_rangeIsInLocalUserInsertion'](_0x5ebe7c)){_0x5d8131=!0x1;break;}if(_0x5d8131&&'always'!==this['_trackFormatChanges']){const _0x2e6bd6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5afee7,'accept');return this['forceDefaultExecution'](()=>_0x2e6bd6(_0xd5df25,_0x470fe7,_0x56c60d)),null;}const _0x527c44=this['editor']['plugins']['get']('Users')['me'];for(const _0x1628ab of this['getSuggestions']()){if(_0x1628ab['author']['id']!=_0x527c44['id'])continue;if('formatBlock'!=_0x1628ab['type']||_0x1628ab['data']['formatGroupId']!=_0x470fe7['formatGroupId'])continue;if(!Xt(_0x1628ab,_0x56c60d))continue;const _0x8a4ca=_0x1628ab['subType']==_0x5afee7;for(let _0x15868c=0x0;_0x15868c<_0xd5df25['length'];_0x15868c++){const _0x39ed55=_0xd5df25[_0x15868c];for(const _0xf25cbd of _0x1628ab['getMarkers']()){const _0xad9442=_0xf25cbd['getRange']();if(_0x39ed55['isEqual'](_0xad9442)){_0x8a4ca?(_0xd5df25['splice'](_0x15868c,0x1),_0x15868c--):_0x1628ab['removeMarker'](_0xf25cbd['name']);break;}}}}if(0x0==_0xd5df25['length'])return null;const _0x1974bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5afee7,'join');for(const _0xaee0c9 of this['getSuggestions']())if(_0xaee0c9['author']['id']==_0x527c44['id']&&'formatBlock'==_0xaee0c9['type']&&_0xaee0c9['data']['formatGroupId']==_0x470fe7['formatGroupId']&&_0xaee0c9['subType']==_0x5afee7&&Xt(_0xaee0c9,_0x56c60d)&&(_0x1974bf(_0xaee0c9['getRanges'](),_0xd5df25)||_0x1974bf(_0xd5df25,_0xaee0c9['getRanges']()))){for(const _0x48ccb0 of _0xd5df25)_0xaee0c9['addRange'](_0x48ccb0);return _0xaee0c9;}const _0x122c9e=_0x399ad3(),_0xa1792a=_0x527c44['id'],_0x525e9c='formatBlock:'+_0x5afee7,_0x27f0e5=this['_setSuggestionData']({'id':_0x122c9e,'type':_0x525e9c,'data':_0x470fe7,'createdAt':new Date(),'authorId':_0xa1792a,'attributes':_0x56c60d});for(const _0x1f2ee4 of _0xd5df25)this['_addSuggestionMarker'](_0x525e9c,_0x122c9e,_0xa1792a,_0x1f2ee4,o['getMultiRangeId']());return _0x27f0e5;}['markDeletion'](_0x4685dd,_0x47a467=null,_0x1f0d6c={}){if(_0x4685dd['isCollapsed'])return null;const _0x21b080=this['editor']['plugins']['get']('Users')['me'],_0x2c4c4a=new _0x222fa7(_0x4685dd['start'],_0x4685dd['end']);this['_trackingSessionId']&&(_0x1f0d6c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x374a4c,meta:_0x983b0f}of this['_findSuggestions'](_0x2c4c4a,'insertion'))if(_0x983b0f['isOwn']&&!_0x983b0f['isNextTo']){if(_0x374a4c['isMultiRange']){const _0x51ab71=_0x374a4c['getRanges']()['filter'](_0x4ffc6d=>'$graveyard'!=_0x4ffc6d['root']['rootName']);_0x51ab71['every'](_0x3553b2=>_0x2c4c4a['containsRange'](_0x3553b2,!0x0))&&_0x374a4c['discard']();if(_0x51ab71['some'](_0x447071=>_0x447071['containsRange'](_0x2c4c4a,!0x0))){const _0x552910=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47a467,'accept');return this['forceDefaultExecution'](()=>_0x552910([_0x2c4c4a],null,_0x1f0d6c)),null;}}else{const _0x22f4a0=_0x2c4c4a['getIntersection'](_0x374a4c['getFirstRange']());null!==_0x22f4a0&&_0x374a4c['_onDiscard']([_0x22f4a0],null,_0x1f0d6c);}}if(_0x2c4c4a['detach'](),_0x2c4c4a['isCollapsed']||'$graveyard'==_0x2c4c4a['root']['rootName'])return null;let _0x3ab63a=null,_0x58f01b=_0x2c4c4a['start'],_0x10cc74=_0x2c4c4a['end'];const _0x3cb038=this['_findSuggestions'](_0x2c4c4a,'deletion');for(const {suggestion:_0x154340,meta:_0x45c0ce}of _0x3cb038){const _0xb15e63=this['_model']['createRange'](_0x58f01b,_0x10cc74);if(_0x45c0ce['isOwn']&&(this['_mergeNestedSuggestions']||!_0x45c0ce['containsRangeInObject']&&!_0x45c0ce['isInsideObject'])){if(_0x154340['isMultiRange']){if(!Xt(_0x154340,_0x1f0d6c))continue;let _0x205b5f=!0x0;for(const _0x52eafe of _0x154340['getRanges']()){if(_0x52eafe['containsRange'](_0xb15e63,!0x0))return _0x154340;_0xb15e63['containsRange'](_0x52eafe)||(_0x205b5f=!0x1);}_0x205b5f&&_0x154340['discard']();}else{const _0x2ef888=_0x154340['getFirstRange']();if(_0x2ef888['containsRange'](_0xb15e63,!0x0))return _0x154340;if(!Xt(_0x154340,_0x1f0d6c)){_0xb15e63['containsRange'](_0x2ef888)?_0x154340['removeMarkers']():_0x2ef888['containsPosition'](_0x58f01b)?_0x58f01b=_0x2ef888['end']:_0x2ef888['containsPosition'](_0x10cc74)&&(_0x10cc74=_0x2ef888['start']);continue;}_0x58f01b=_0x58f01b['isBefore'](_0x2ef888['start'])?_0x58f01b:_0x2ef888['start'],_0x10cc74=_0x10cc74['isAfter'](_0x2ef888['end'])?_0x10cc74:_0x2ef888['end'],_0x1f0d6c=Object['assign']({},_0x154340['attributes']),_0x3ab63a?_0x2ef888['start']['isBefore'](_0x3ab63a['getFirstRange']()['start'])?(_0x3ab63a['removeMarkers'](),_0x3ab63a=_0x154340):_0x154340['removeMarkers']():_0x3ab63a=_0x154340;}}}if(_0x3ab63a)return this['_setSuggestionRange'](_0x3ab63a,this['_model']['createRange'](_0x58f01b,_0x10cc74)),_0x3ab63a;{const _0x5c370a=_0x399ad3(),_0x125c1a=this['_model']['createRange'](_0x58f01b,_0x10cc74),_0x34d5a9=_0x21b080['id'],_0x5086c8=_0x47a467?'deletion:'+_0x47a467:'deletion',_0x3b2c3a=this['_setSuggestionData']({'id':_0x5c370a,'type':_0x5086c8,'createdAt':new Date(),'authorId':_0x34d5a9,'attributes':_0x1f0d6c});return this['_addSuggestionMarker'](_0x5086c8,_0x5c370a,_0x34d5a9,_0x125c1a),_0x3b2c3a;}}['markMultiRangeDeletion'](_0x1a14e3,_0x33af45='multi',_0x1b6e31={}){const _0x4e84a8=this['editor']['plugins']['get']('Users')['me'],_0xa71295=_0x1a14e3['map'](_0xa52bc8=>new _0x222fa7(_0xa52bc8['start'],_0xa52bc8['end'])),_0x2b4bbd=new Set();this['_trackingSessionId']&&(_0x1b6e31['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x39d2f8,meta:_0xd83ea8}of this['_findSuggestions'](_0xa71295,'insertion'))_0xd83ea8['isOwn']&&!_0xd83ea8['isNextTo']&&_0x2b4bbd['add'](_0x39d2f8);for(const _0x27260c of _0x2b4bbd)if(_0x27260c['isMultiRange']){const _0x5ddffa=_0x27260c['getRanges']();(!_0x27260c['attributes']||!_0x27260c['attributes']['skipNestingCheck'])&&(_0x5ddffa['every'](_0x152bcb=>_0xa71295['some'](_0x45cfc2=>_0x45cfc2['containsRange'](_0x152bcb,!0x0)))&&_0x27260c['discard']());if(_0xa71295['every'](_0x2eaa7b=>_0x5ddffa['some'](_0x27997=>_0x27997['containsRange'](_0x2eaa7b,!0x0)))){const _0x2c2699=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33af45,'accept');return this['forceDefaultExecution'](()=>_0x2c2699(_0x1a14e3,null,_0x1b6e31)),null;}}else{const _0x4fd786=_0x27260c['getFirstRange']();_0xa71295['some'](_0x36792a=>_0x36792a['containsRange'](_0x4fd786,!0x0))&&_0x27260c['discard']();if(_0xa71295['every'](_0x505de3=>_0x4fd786['containsRange'](_0x505de3,!0x0))){const _0x2e8150=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33af45,'accept');return this['forceDefaultExecution'](()=>_0x2e8150(_0xa71295,null,_0x1b6e31)),null;}}const _0x50cde5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33af45,'join');let _0x2d79fe=null;for(const _0x3c7935 of this['getSuggestions']())if(_0x3c7935['author']['id']==_0x4e84a8['id']&&_0x3c7935['isInContent']&&'deletion'==_0x3c7935['type']&&_0x3c7935['subType']==_0x33af45&&Xt(_0x3c7935,_0x1b6e31)&&(_0x50cde5(_0x3c7935['getRanges'](),_0xa71295)||_0x50cde5(_0xa71295,_0x3c7935['getRanges']()))){if(_0x2d79fe){if(_0x3c7935['commentThread']&&_0x3c7935['commentThread']['length'])continue;for(const _0x2ee0c2 of _0x3c7935['getRanges']())_0x2d79fe['isIntersectingWithRange'](_0x2ee0c2)||_0x2d79fe['addRange'](_0x2ee0c2);_0x3c7935['removeMarkers']();}else{_0x2d79fe=_0x3c7935;for(const _0x3caa8b of _0xa71295)_0x3c7935['isIntersectingWithRange'](_0x3caa8b)||_0x3c7935['addRange'](_0x3caa8b);}}if(_0x2d79fe)return _0x2d79fe;_0x2b4bbd['clear']();for(const {suggestion:_0x406370,meta:_0x198a89}of this['_findSuggestions'](_0xa71295,'deletion'))_0x198a89['isOwn']&&(this['_mergeNestedSuggestions']||!_0x198a89['containsRangeInObject']&&!_0x198a89['isInsideObject'])&&Xt(_0x406370,_0x1b6e31)&&_0x2b4bbd['add'](_0x406370);for(const _0x43d568 of _0x2b4bbd){const _0x9af3c2=_0x43d568['getRanges']();if(!_0x1b6e31||!_0x1b6e31['skipNestingCheck']){if(_0xa71295['every'](_0x45ce5e=>_0x9af3c2['some'](_0x59ba24=>_0x59ba24['containsRange'](_0x45ce5e,!0x0))))return _0x43d568;}(!_0x43d568['attributes']||!_0x43d568['attributes']['skipNestingCheck'])&&(_0x9af3c2['every'](_0x55d2a0=>_0xa71295['some'](_0x5813ef=>_0x5813ef['containsRange'](_0x55d2a0,!0x0)))&&_0x43d568['discard']());}const _0x26dfac=_0x399ad3(),_0x1855aa=_0x4e84a8['id'],_0x3ea745='deletion:'+_0x33af45,_0x5efac8=this['_setSuggestionData']({'id':_0x26dfac,'type':_0x3ea745,'createdAt':new Date(),'authorId':_0x1855aa,'attributes':_0x1b6e31});for(const _0x1d9dad of _0xa71295)_0x1d9dad['detach'](),_0x1d9dad['isCollapsed']||'$graveyard'==_0x1d9dad['root']['rootName']||this['_addSuggestionMarker'](_0x3ea745,_0x26dfac,_0x1855aa,_0x1d9dad,o['getMultiRangeId']());return _0x5efac8;}['markAttributeChange'](_0x52d775,_0x2c7bab,_0x59dcef,_0x5dcc3e,_0x587775){if(_0x52d775['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2d2ab8=this['editor']['plugins']['get']('Users')['me']['id'],_0x4cf3d0=Array['from'](this['_suggestions']['values']())['filter'](_0x4087ef=>'attribute'==_0x4087ef['type']&&_0x4087ef['data']['key']==_0x2c7bab&&_0x4087ef['isIntersectingWithRange'](_0x52d775));if(this['_trackingSessionId']&&(_0x587775['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4fbf89=this['_findSuggestions'](_0x52d775,'insertion')['filter'](({meta:_0x4c050c})=>_0x4c050c['isOwn']&&!_0x4c050c['isInsideObject']&&!_0x4c050c['isNextTo'])['map'](({suggestion:_0x278b26})=>_0x278b26);_0x4cf3d0['unshift'](..._0x4fbf89);}const _0x1d5f87=new Map([[_0x52d775,_0x59dcef]]);for(const _0x50a491 of _0x4cf3d0){const _0x28994e='attribute'==_0x50a491['type']?_0x50a491['data']['oldValue']:void 0x0,_0x359643=_0x50a491['getFirstRange'](),_0x17a954=Array['from'](_0x1d5f87['keys']())['find'](_0xeb7703=>_0xeb7703['isIntersecting'](_0x359643));if(!_0x17a954)continue;const _0x5a04e2=_0x17a954['getDifference'](_0x359643);this['_isBlockAttribute'](_0x2c7bab)&&'insertion'==_0x50a491['type']&&0x0!=_0x5a04e2['length']||(_0x1d5f87['delete'](_0x17a954),_0x5a04e2['forEach'](_0x1f21ee=>{_0x1d5f87['set'](_0x1f21ee,_0x59dcef);}),'insertion'!=_0x50a491['type']&&_0x28994e!=_0x5dcc3e&&_0x1d5f87['set'](_0x17a954['getIntersection'](_0x359643),_0x28994e));}const _0x422898=[];for(const [_0x39b44d,_0x3c9ca9]of _0x1d5f87){const _0x279a32=_0x399ad3(),_0x530081={'key':_0x2c7bab,'oldValue':_0x3c9ca9,'newValue':_0x5dcc3e};_0x2c7bab['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':_0x2c7bab});const _0x1de85b=('attribute:'+(_0x2c7bab+'|'+Kt({'newValue':_0x5dcc3e})))['substring'](0x0,0x3c),_0x3910c0=this['_setSuggestionData']({'id':_0x279a32,'type':_0x1de85b,'data':_0x530081,'createdAt':new Date(),'authorId':_0x2d2ab8,'attributes':_0x587775});_0x422898['push'](_0x3910c0),this['_addSuggestionMarker'](_0x1de85b,_0x279a32,_0x2d2ab8,_0x39b44d);}return _0x422898;}['enableDefaultAttributesIntegration'](_0x1c7541){this['enableCommand'](_0x1c7541,(_0x318aea,..._0x201ebd)=>{this['_recordAttributeChanges'](()=>{_0x318aea(..._0x201ebd);});});}['registerBlockAttribute'](_0x4d569b){this['_blockAttributeKeys']['add'](_0x4d569b);}['registerInlineAttribute'](_0x429d05){this['_inlineAttributeKeys']['add'](_0x429d05);}['startTrackingSession'](_0x2f3b38){return this['_trackingSessionId']=void 0x0!==_0x2f3b38?_0x2f3b38:_0x399ad3(),this['_trackingSessionId'];}['_getAttributeKey'](_0x58d757){return'attribute'==_0x58d757['type']?_0x58d757['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x52b6e6,_0x41df1d){const _0x1c708e=_0x52b6e6['getFirstMarker']();this['_model']['change'](_0x50f664=>{_0x50f664['updateMarker'](_0x1c708e,{'range':_0x41df1d});});}['_addThreadToSuggestion'](_0xc6772f){const _0x311633=_0xc6772f['id'],_0x31f9d2=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x311633)||this['_commentsRepository']['addCommentThread']({'channelId':_0x31f9d2,'threadId':_0x311633,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x36d65e=this['_commentsRepository']['getCommentThread'](_0x311633);_0x36d65e['unbind']('isRemovable'),_0x36d65e['isRemovable']=!0x1,_0xc6772f['commentThread']=_0x36d65e;}['_checkSuggestionCorrectness'](_0x5c196c,_0x3e44f1,_0x2866af,_0x5a59c0){if(_0x5c196c['type']!=_0x3e44f1||_0x5c196c['subType']!=_0x2866af||_0x5c196c['creator']['id']!=_0x5a59c0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x470bfb('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x570c45,_0x38e0b4){const _0x5732d6=_0x570c45['getFirstRange']();if(_0x38e0b4['isEqual'](_0x5732d6))_0x570c45['removeMarkers']();else{if(_0x5732d6['containsRange'](_0x38e0b4)){const _0x908ea4=this['_model']['createPositionAt'](_0x38e0b4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x570c45,this['_model']['createRange'](_0x5732d6['start'],_0x908ea4));const _0x48e878=_0x399ad3(),_0x357c1b=_0x570c45['creator']['id'],_0x6514f4=_0x570c45['type']+':'+_0x570c45['subType'];this['_setSuggestionData']({'id':_0x48e878,'type':_0x6514f4,'createdAt':new Date(),'authorId':_0x357c1b,'data':_0x570c45['data'],'attributes':_0x570c45['attributes']});const _0x1ddc86=this['_model']['createPositionAt'](_0x38e0b4['end']['parent'],'after'),_0x4ad496=this['_model']['createRange'](_0x1ddc86,_0x5732d6['end']);this['_addSuggestionMarker'](_0x6514f4,_0x48e878,_0x357c1b,_0x4ad496);}else{if(_0x5732d6['containsPosition'](_0x38e0b4['start'])){const _0x4df5a5=this['_model']['createPositionAt'](_0x38e0b4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x570c45,this['_model']['createRange'](_0x5732d6['start'],_0x4df5a5));}else{const _0x3d92f6=this['_model']['createPositionAt'](_0x38e0b4['end']['parent'],'after');this['_setSuggestionRange'](_0x570c45,this['_model']['createRange'](_0x3d92f6,_0x5732d6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3c7319){for(const {suggestion:_0x480163,meta:_0x460520}of this['_findSuggestions'](_0x3c7319,'insertion')){if(!_0x460520['isOwn'])continue;const _0x18e9bb=_0x480163['getRanges']();for(const _0x2f1e72 of _0x18e9bb)if(!_0x3c7319['getDifference'](_0x2f1e72)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3611ff){const _0x37e0de=this['editor']['plugins']['get']('Users')['getUser'](_0x3611ff);if(!_0x37e0de)throw new _0x470bfb('track-changes-user-not-found',this);return _0x37e0de;}['_getExternalAuthor'](_0xfe9152){const _0x3b9952=this['editor']['plugins']['get']('Users'),_0x29f1b7=_0x4e5477('external:'+_0xfe9152),_0x28ed55=_0x3b9952['getUser'](_0x29f1b7);return _0x28ed55||_0x3b9952['addUser']({'id':_0x29f1b7,'name':_0xfe9152});}['_createSuggestion'](_0x291a65,_0x48c231,_0x3feee7,_0x32ec15,_0x11ccc2,_0x9c2f26){const _0x2c8fe7=this['_getAuthorFromId'](_0x32ec15),_0x2c9db1=this['_suggestionFactory']['buildSuggestion'](_0x291a65,_0x48c231,_0x3feee7,_0x2c8fe7,_0x11ccc2,_0x1aa6a7=>{this['_updateSuggestionData'](_0x3feee7,{'attributes':_0x1aa6a7});const _0x3394ef=this['getSuggestion'](_0x3feee7);this['_joinWithAdjacentSuggestions'](new Set([_0x3394ef])),this['_refreshSuggestionsChain'](new Set([_0x3394ef]));},_0x9c2f26);return this['listenTo'](_0x2c9db1,'accept',()=>{this['_updateSuggestionData'](_0x3feee7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2c9db1,'discard',()=>{this['_updateSuggestionData'](_0x3feee7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3feee7,_0x2c9db1),this['_suggestionState']['set'](_0x2c9db1,'notReady'),_0x2c9db1;}['_splitMarkerName'](_0x4dc94d){const _0x5dd023=_0x4dc94d['split'](':');return{'group':_0x5dd023[0x0],'type':_0x5dd023[0x1],'subType':_0x5dd023['length']>=0x5?_0x5dd023[0x2]:null,'id':_0x5dd023['length']<0x5?_0x5dd023[0x2]:_0x5dd023[0x3],'authorId':_0x5dd023['length']<0x5?_0x5dd023[0x3]:_0x5dd023[0x4],'markerCount':0x6==_0x5dd023['length']?_0x5dd023[0x5]:null};}['_breakSuggestionMarker'](_0x302a24,_0x35683f,_0x1dee2d){const _0x30ed30=_0x302a24['getFirstRange'](),_0x4ccbdd=_0x30ed30['start'],_0x20d036=_0x30ed30['end'];this['_setSuggestionRange'](_0x302a24,this['_model']['createRange'](_0x4ccbdd,_0x35683f));const _0x5662bb=_0x399ad3(),_0x307389=_0x302a24['creator']['id'],_0x4f0e23=_0x302a24['type']+(_0x302a24['subType']?':'+_0x302a24['subType']:'');this['_setSuggestionData']({'id':_0x5662bb,'type':_0x4f0e23,'createdAt':new Date(),'authorId':_0x307389,'originalSuggestionId':_0x302a24['_originalSuggestionId']||_0x302a24['id'],'attributes':_0x302a24['attributes'],'data':_0x302a24['data']});const _0x3a8974=this['_getAttributeKey'](_0x302a24);('formatBlock'==_0x302a24['type']||_0x3a8974&&this['_isBlockAttribute'](_0x3a8974))&&(_0x1dee2d=this['_model']['createPositionBefore'](_0x1dee2d['parent'])),this['_addSuggestionMarker'](_0x4f0e23,_0x5662bb,_0x307389,this['_model']['createRange'](_0x1dee2d,_0x20d036));}['_findSuggestions'](_0xbb9b8e,_0x22b9e5=null){const _0x4f470a=[],_0x3ab445=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xbb9b8e)||(_0xbb9b8e=[_0xbb9b8e]);for(const _0x51894e of this['getSuggestions']()){if(!_0x51894e['isInContent'])continue;if(_0x22b9e5&&_0x51894e['type']!=_0x22b9e5)continue;let _0x3d6f7d=!0x1;for(const _0x4913ce of _0x51894e['getRanges']()){for(const _0x1ddfe1 of _0xbb9b8e){const _0x2bb873=_0x1ddfe1['start']['isEqual'](_0x4913ce['end'])||_0x1ddfe1['end']['isEqual'](_0x4913ce['start']);if(_0x2bb873||_0x1ddfe1['getIntersection'](_0x4913ce)){const _0x4abef3=_0x1ddfe1['containsRange'](_0x4913ce)&&Gt(this['_model']['schema'],_0x4913ce['start'],_0x1ddfe1),_0x1ecefe=_0x4913ce['containsRange'](_0x1ddfe1)&&Gt(this['_model']['schema'],_0x1ddfe1['start'],_0x4913ce);_0x4f470a['push']({'suggestion':_0x51894e,'meta':{'isOwn':_0x3ab445==_0x51894e['author'],'isNextTo':_0x2bb873,'isInsideObject':_0x4abef3,'containsRangeInObject':_0x1ecefe}}),_0x3d6f7d=!0x0;break;}}if(_0x3d6f7d)break;}}return _0x4f470a;}['_addSuggestionMarker'](_0x132782,_0x20112b,_0x4dfa69,_0x443448,_0x5bb2f3){this['_model']['change'](_0x2b03f7=>{let _0x4dc3c1='suggestion:'+_0x132782+':'+_0x20112b+':'+_0x4dfa69;_0x5bb2f3&&(_0x4dc3c1=_0x4dc3c1+':'+_0x5bb2f3),_0x2b03f7['addMarker'](_0x4dc3c1,{'range':_0x443448,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x15fbc5){const _0x1ae1be=_0x15fbc5['previous'],_0x577497=_0x15fbc5['next'];_0x15fbc5['previous']=null,_0x15fbc5['next']=null,null!=_0x1ae1be&&_0x1ae1be['next']==_0x15fbc5&&(_0x1ae1be['next']=_0x577497),null!=_0x577497&&_0x577497['previous']==_0x15fbc5&&(_0x577497['previous']=_0x1ae1be),'ready'==this['_suggestionState']['get'](_0x15fbc5)&&(this['_suggestionState']['set'](_0x15fbc5,'removed'),this['fire']('suggestionUnloaded',_0x15fbc5,_0x1ae1be,_0x577497));}['_setSuggestionData'](_0x96f890){const _0x437a0c=_0x96f890['id'],_0x4e48ad=this['addSuggestionData'](_0x96f890);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2c5ce8=this['editor']['plugins']['get']('PendingActions'),_0xc792ce=_0x4e48ad['hasComments'],_0x19b7db=_0x4e48ad['subType']?_0x4e48ad['type']+':'+_0x4e48ad['subType']:_0x4e48ad['type'],_0xbeba3d=this['editor']['locale'],_0x5dbae8=_0x2c5ce8['add'](c(_0xbeba3d,'PENDING_ACTION_SUGGESTION')),_0x49a4cc={'id':_0x437a0c,'type':_0x19b7db,'hasComments':_0xc792ce,'data':_0x96f890['data']||null,'originalSuggestionId':_0x96f890['originalSuggestionId']||null,'attributes':_0x4e48ad['attributes']};this['_adapter']['addSuggestion'](_0x49a4cc)['then'](_0x13d1a9=>{_0x4e48ad['_saved']=!0x0,_0x2c5ce8['remove'](_0x5dbae8),_0x13d1a9&&_0x13d1a9['createdAt']&&(this['_suggestions']['get'](_0x437a0c)['createdAt']=_0x13d1a9['createdAt']);})['catch'](_0x12805c=>{throw _0x4d9eac('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4e48ad['discard']();}),_0x4e48ad['stopListening'](),this['_suggestions']['delete'](_0x4e48ad['id']),this['_suggestionState']['delete'](_0x4e48ad),_0x12805c;});}return _0x4e48ad;}['_isBlockAttribute'](_0x59d78f){return this['_blockAttributeKeys']['has'](_0x59d78f);}['_updateSuggestionData'](_0x5ceb0a,_0x2a80bb){const _0xe3879f=this['editor']['plugins']['get']('PendingActions'),_0xc4ca0a=this['getSuggestion'](_0x5ceb0a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xc4ca0a['_saved']){const _0x3d2a7a=_0xe3879f['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5ceb0a,_0x2a80bb)['then'](()=>{_0xe3879f['remove'](_0x3d2a7a);});}else _0xc4ca0a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5ceb0a,_0x2a80bb);});}}['_getSuggestionData'](_0x3f50b7){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x470bfb('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3f50b7);}['_handleNewSuggestionMarker'](_0x2edf48){const {id:_0x3dc2d6,type:_0x5dc22f,subType:_0x4b7780,authorId:_0x2d0465}=this['_splitMarkerName'](_0x2edf48),_0x654a62=this['_suggestions']['get'](_0x3dc2d6)||this['_createSuggestion'](_0x5dc22f,_0x4b7780,_0x3dc2d6,_0x2d0465,{});switch(this['_checkSuggestionCorrectness'](_0x654a62,_0x5dc22f,_0x4b7780,_0x2d0465),this['_suggestionState']['get'](_0x654a62)){case'notReady':this['_getSuggestionData'](_0x3dc2d6)['then'](_0x3e5698=>{let _0x16f390=Promise['resolve']();_0x3e5698['hasComments']&&(_0x16f390=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3dc2d6})),_0x16f390['then'](()=>{this['addSuggestionData'](_0x3e5698)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x654a62,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3dc2d6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x654a62,'ready'),this['fire']('suggestionLoaded',_0x654a62);break;case'ready':this['fire']('suggestionChanged',_0x654a62);}return _0x654a62['addMarkerName'](_0x2edf48),_0x654a62;}['_refreshSuggestionsChain'](_0xf3068b){const _0x2f0f2d=Array['from'](_0xf3068b),_0x661d10=_0x2f0f2d['filter'](_0x1a3c31=>'attribute'==_0x1a3c31['type']);this['_refreshAttributeSuggestionsChain'](_0x661d10);const _0x3b5910=_0x2f0f2d['filter'](_0x1b28a4=>!_0x1b28a4['isMultiRange']&&'attribute'!=_0x1b28a4['type']),_0x14483a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a08f1=>!_0x2a08f1['isMultiRange']&&'attribute'!=_0x2a08f1['type']),_0x41377a=_0x14483a['filter'](_0x33ad3e=>!_0xf3068b['has'](_0x33ad3e)),_0x5c3b76=new Map(_0x14483a['map'](_0x4619c4=>[_0x4619c4,this['_suggestionFactory']['getSuggestionCallback'](_0x4619c4['type'],_0x4619c4['subType'],'chain')])),_0x2d4068=new Map(_0x14483a['map'](_0x178ed4=>[_0x178ed4,_0x178ed4['getFirstRange']()])),_0x14c082=new Set(),_0x16be2f=new Set();for(let _0x19973c=0x0;_0x19973c<_0x3b5910['length'];_0x19973c++)_0x55473d(_0x3b5910[_0x19973c],_0x3b5910,_0x19973c+0x1);for(let _0x37b295=0x0;_0x37b295<_0x3b5910['length'];_0x37b295++)_0x55473d(_0x3b5910[_0x37b295],_0x41377a,0x0);const _0x293a86=new Set();for(let _0x3f4ab2=0x0;_0x3f4ab2<_0x3b5910['length'];_0x3f4ab2++){const _0x13f6a5=_0x3b5910[_0x3f4ab2];!_0x16be2f['has'](_0x13f6a5)&&_0x13f6a5['previous']&&(_0x293a86['add'](_0x13f6a5['previous']),_0x13f6a5['previous']['next']===_0x13f6a5&&(_0x13f6a5['previous']['next']=null),_0x13f6a5['previous']=null),!_0x14c082['has'](_0x13f6a5)&&_0x13f6a5['next']&&(_0x293a86['add'](_0x13f6a5['next']),_0x13f6a5['next']['previous']===_0x13f6a5&&(_0x13f6a5['next']['previous']=null),_0x13f6a5['next']=null);}function _0x55473d(_0x2c9ae1,_0x3e3456,_0x5e9c64){for(let _0x252fea=_0x5e9c64;_0x252fea<_0x3e3456['length'];_0x252fea++){const _0x39b48e=_0x35ddec(_0x2c9ae1,_0x3e3456[_0x252fea]);_0x39b48e&&(_0x39b48e[0x0]['next']=_0x39b48e[0x1],_0x39b48e[0x1]['previous']=_0x39b48e[0x0],_0x14c082['add'](_0x39b48e[0x0]),_0x16be2f['add'](_0x39b48e[0x1]));}}function _0x35ddec(_0x13b9bb,_0x20d20b){if(_0x13b9bb['author']['id']!==_0x20d20b['author']['id'])return null;const _0x5d99f5=_0x5c3b76['get'](_0x13b9bb)(_0x13b9bb,_0x20d20b,_0x2d4068['get'](_0x13b9bb),_0x2d4068['get'](_0x20d20b));if(!_0x5d99f5)return null;return _0x5c3b76['get'](_0x20d20b)(_0x13b9bb,_0x20d20b,_0x2d4068['get'](_0x13b9bb),_0x2d4068['get'](_0x20d20b))?_0x5d99f5[0x1]['commentThread']&&_0x5d99f5[0x1]['commentThread']['length']?null:_0x5d99f5:null;}_0x293a86['size']&&this['_refreshSuggestionsChain'](_0x293a86);}['_refreshAttributeSuggestionsChain'](_0x4492ee){if(0x0==_0x4492ee['length'])return;const _0x5b30b9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a1878=>'attribute'==_0x2a1878['type']&&_0x2a1878['_isDataLoaded']),_0x331786=[],_0x27de7a=new Map();for(const _0x541e27 of _0x5b30b9){const _0x42ab33=_0x4e5477(_0x541e27['attributes']);_0x27de7a['has'](_0x42ab33)||(_0x27de7a['set'](_0x42ab33,_0x331786['length']),_0x331786['push']([]));const _0x51deac=_0x27de7a['get'](_0x42ab33);_0x331786[_0x51deac]['push'](_0x541e27);}!(function(){_0x331786['sort']((_0x39c998,_0x16edaf)=>{const _0x550dc8=_0x39c998[0x0]['createdAt'],_0x3507e8=_0x16edaf[0x0]['createdAt'];return _0x550dc8==_0x3507e8?_0x39c998[0x0]['attributes']['groupId']<_0x16edaf[0x0]['attributes']['groupId']?-0x1:0x1:_0x550dc8<_0x3507e8?-0x1:0x1;});for(const _0x2e2a81 of _0x331786)_0x2e2a81['sort']((_0x9d04a,_0x4964a0)=>_0x9d04a['id']<_0x4964a0['id']?-0x1:0x1);}());for(let _0x151340=0x0;_0x151340<_0x331786['length'];_0x151340++){if(0x0==_0x331786[_0x151340]['length'])continue;const _0x12d926=[];for(let _0x9ff295=_0x151340+0x1;_0x9ff295<_0x331786['length'];_0x9ff295++)0x0!=_0x331786[_0x9ff295]['length']&&_0x3149d4(_0x331786[_0x151340],_0x331786[_0x9ff295])&&_0x12d926['push'](_0x9ff295);for(const _0x4cd081 of _0x12d926)_0x331786[_0x151340]=_0x331786[_0x151340]['concat'](_0x331786[_0x4cd081]),_0x331786[_0x4cd081]=[];}for(const _0x1b2c7b of _0x331786)for(let _0x329785=0x0;_0x329785<_0x1b2c7b['length'];_0x329785++){const _0x52722a=_0x1b2c7b[_0x329785+0x1]||null;_0x1b2c7b[_0x329785]['next']!==_0x52722a&&(_0x1b2c7b[_0x329785]['next']=_0x52722a);}for(const _0x5865c4 of _0x331786)for(let _0x3ca910=0x0;_0x3ca910<_0x5865c4['length'];_0x3ca910++){const _0x1bc138=_0x5865c4[_0x3ca910-0x1]||null;_0x5865c4[_0x3ca910]['previous']!==_0x1bc138&&(_0x5865c4[_0x3ca910]['previous']=_0x1bc138);}function _0x3149d4(_0x50603e,_0x13869c){if(_0x50603e[0x0]['attributes']['groupId']!==_0x13869c[0x0]['attributes']['groupId']&&_0x50603e[0x0]['author']!==_0x13869c[0x0]['author'])return!0x1;if(!function(_0x266c66,_0x2aad38){if(!_0x266c66['hasComments']&&!_0x2aad38['hasComments'])return!0x0;if(_0x266c66['hasComments']&&_0x2aad38['hasComments'])return!0x1;if(_0x266c66['hasComments']&&_0x2aad38['createdAt']<_0x266c66['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2aad38['hasComments']&&_0x266c66['createdAt']<_0x2aad38['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x50603e[0x0],_0x13869c[0x0]))return!0x1;const _0x389dff=Ft(_0x50603e[0x0]['attributes'],['groupId','trackingSessionId']),_0x475144=Ft(_0x13869c[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4b5d00(_0x389dff,_0x475144))return!0x1;if(_0x50603e[0x0]['attributes']['groupId']==_0x13869c[0x0]['attributes']['groupId'])return!0x0;if(_0x50603e[0x0]['attributes']['trackingSessionId']!==_0x13869c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x50603e['every'](_0x4e4024=>_0x13869c['some'](_0x3e8e32=>_0x4e4024['getFirstRange']()['isEqual'](_0x3e8e32['getFirstRange']())))&&_0x13869c['every'](_0x229a8a=>_0x50603e['some'](_0x260cbe=>_0x229a8a['getFirstRange']()['isEqual'](_0x260cbe['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xe8cc7c){const _0x555f0a=Array['from'](_0xe8cc7c),_0x572836=this['getSuggestions']({'skipNotAttached':!0x0}),_0x40ffaf=_0x572836['filter'](_0x5291b4=>!_0xe8cc7c['has'](_0x5291b4)),_0x5be0fd=new Map(_0x555f0a['map'](_0x388bc4=>[_0x388bc4,this['_suggestionFactory']['getSuggestionCallback'](_0x388bc4['type'],_0x388bc4['subType'],'join')])),_0x2aef7c=new Map(_0x572836['map'](_0x56d490=>[_0x56d490,_0x56d490['getRanges']()]));for(let _0x106b4f=0x0;_0x106b4f<_0x555f0a['length'];_0x106b4f++){if(_0x182c86(this,_0x555f0a[_0x106b4f],_0x555f0a,_0x106b4f+0x1))return!0x0;}for(let _0x1b7d81=0x0;_0x1b7d81<_0x555f0a['length'];_0x1b7d81++){if(_0x182c86(this,_0x555f0a[_0x1b7d81],_0x40ffaf,0x0))return!0x0;}return!0x1;function _0x182c86(_0x346f88,_0x3d64b0,_0x367cb0,_0x4943e4){for(let _0x2fa3ba=_0x4943e4;_0x2fa3ba<_0x367cb0['length'];_0x2fa3ba++){const _0x36f37b=_0x367cb0[_0x2fa3ba];if(_0x36f37b['type']!==_0x3d64b0['type']||_0x36f37b['author']['id']!==_0x3d64b0['author']['id']||_0x36f37b['subType']!==_0x3d64b0['subType'])continue;if(!Qt(_0x3d64b0,_0x36f37b))continue;if('attribute'==_0x3d64b0['type']&&_0x3d64b0['data']['oldValue']!=_0x36f37b['data']['oldValue'])continue;if('attribute'==_0x3d64b0['type']&&_0x346f88['_isBlockAttribute'](_0x3d64b0['data']['key']))continue;if('formatBlock'==_0x3d64b0['type']){const _0x11f63e=_0x346f88['editor']['model'],_0x37e675=_0x3d64b0['getContainedElement']();if(_0x37e675&&(_0x11f63e['schema']['isObject'](_0x37e675)||_0x11f63e['schema']['isLimit'](_0x37e675)))continue;}const _0x159f9b=_0x5be0fd['get'](_0x3d64b0),_0x124b39=_0x2aef7c['get'](_0x3d64b0),_0x5348c2=_0x2aef7c['get'](_0x36f37b),_0x5c012a=_0x3d64b0['commentThread']&&_0x3d64b0['commentThread']['length'],_0x59142d=_0x36f37b['commentThread']&&_0x36f37b['commentThread']['length'];if(!_0x5c012a&&_0x159f9b(_0x5348c2,_0x124b39))return _0x346f88['_joinSuggestions'](_0x36f37b,_0x3d64b0),_0x2aef7c['delete'](_0x3d64b0),!0x0;if(!_0x59142d&&_0x159f9b(_0x124b39,_0x5348c2))return _0x346f88['_joinSuggestions'](_0x3d64b0,_0x36f37b),_0x2aef7c['delete'](_0x36f37b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x513657,_0x1c0a86){if(_0x513657['isMultiRange']){for(const _0x493a5c of _0x1c0a86['getRanges']())_0x513657['addRange'](_0x493a5c);}else{const _0xe57b6c=_0x1c0a86['getFirstRange']()['end'];this['_setSuggestionRange'](_0x513657,this['_model']['createRange'](_0x513657['getFirstRange']()['start'],_0xe57b6c));}_0x1c0a86['removeMarkers']();}['_getMarkerAnnouncementText'](_0x44a34a,_0x1a0059,_0x489dc9){const _0x5bef6f=_0x44a34a['startsWith']('format')||_0x44a34a['startsWith']('attribute')?'FORMATTING':_0x44a34a['toUpperCase']();return c(this['editor']['locale'],_0x1a0059+'_'+_0x5bef6f+'_SUGGESTION_ANNOUNCEMENT',_0x489dc9);}['_initAriaMarkerChangeAnnouncements'](){const _0x509792=this['editor'];if(!_0x509792['ui'])return;const {ariaLiveAnnouncer:_0x1333d6}=_0x509792['ui'];_0x309654(this['_model'],({left:_0x3c96ec,entered:_0x5d7b36})=>{for(const _0x1f192d of _0x3c96ec){const {group:_0x57f5ab,type:_0x5c8719}=this['_splitMarkerName'](_0x1f192d['name']);if('suggestion'===_0x57f5ab){_0x1333d6['announce'](this['_getMarkerAnnouncementText'](_0x5c8719,'LEAVE'));break;}}for(const _0x1f4f01 of _0x5d7b36){const {group:_0x584d73,type:_0x39f07b}=this['_splitMarkerName'](_0x1f4f01['name']);if('suggestion'===_0x584d73){_0x1333d6['announce'](this['_getMarkerAnnouncementText'](_0x39f07b,'ENTER',_0x5d2531(_0x3e0281)));break;}}});}['_processAttributeChanges'](_0x23a465){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5017a2=this['editor'],_0xd9f0af=_0x5017a2['model']['document']['differ']['getChanges']();if(0x0==_0xd9f0af['length'])return!0x1;const _0x18a10e=[],_0x5b8c0b=_0xd9f0af['filter'](_0x3eb716=>'attribute'==_0x3eb716['type']),_0x1e6da0=_0xd9f0af['filter'](_0x217941=>'insert'==_0x217941['type']&&'$text'!=_0x217941['name']),_0x181409=_0xd9f0af['filter'](_0x3ebd94=>'remove'==_0x3ebd94['type']&&'$text'!=_0x3ebd94['name']);for(const _0x4d9328 of _0x5b8c0b)_0x18a10e['push']({'key':_0x4d9328['attributeKey'],'newValue':_0x4d9328['attributeNewValue'],'oldValue':_0x4d9328['attributeOldValue'],'range':qt(_0x4d9328['range'],_0x5017a2['model'])});for(const _0x40da29 of _0x1e6da0){const _0x5cea09=_0x181409['find'](_0x3829b4=>_0x3829b4['position']['isEqual'](_0x40da29['position']));_0x5cea09&&_0x18a10e['push']({'key':u,'newValue':_0x40da29['name'],'oldValue':_0x5cea09['name'],'range':_0x5017a2['model']['createRangeOn'](_0x40da29['position']['nodeAfter'])});}return 0x0!=_0x18a10e['length']&&this['_reduceExistingSuggestions'](_0x23a465,_0x18a10e);}['_processAttributeSuggestions'](_0x4d2b67){let _0x2ec3bd=!0x1;const _0x386cfa=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x48642b=>_0x48642b['data']['newRange']&&_0x48642b['name']['startsWith']('suggestion:attribute:'));for(const _0x3d043f of _0x386cfa){const {subType:_0x117da7,id:_0x32e001}=this['_splitMarkerName'](_0x3d043f['name']),_0x11d40c=_0x117da7['split']('|')[0x0];for(const _0x3ef913 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3ef913['id']!=_0x32e001&&'attribute'==_0x3ef913['type']&&_0x3ef913['data']&&_0x3ef913['data']['key']==_0x11d40c&&_0x3ef913['getFirstRange']()['isIntersecting'](_0x3d043f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3ef913,_0x3d043f['data']['newRange'],_0x4d2b67),_0x2ec3bd=!0x0);}return _0x2ec3bd;}['_recordAttributeChanges'](_0x29a343){this['_recordAttributeSuggestions']=!0x0,_0x29a343();}['_isRegisteredAttribute'](_0x458944){const _0xbf8830=this['_isBlockAttribute'](_0x458944),_0x424c39=this['_inlineAttributeKeys']['has'](_0x458944);return _0xbf8830||_0x424c39;}['_reduceExistingSuggestions'](_0x32575d,_0x46464e){if(0x0==_0x46464e['length'])return!0x1;let _0x2ce708=!0x1;for(const _0x581638 of _0x46464e){const _0x4260e6=this['_findSuggestions'](_0x581638['range'],'attribute')['filter'](_0x3321f0=>!_0x3321f0['meta']['isNextTo'])['map'](_0x4e4ff6=>_0x4e4ff6['suggestion']),_0x9e69bc=_0x4e5477({'newValue':_0x581638['newValue']});_0x4260e6['filter'](_0x1a927b=>{const [_0x616910,_0x3c9b9a]=_0x1a927b['subType']['split']('|');return _0x616910==_0x581638['key']&&_0x3c9b9a!=_0x9e69bc;})['forEach'](_0xa54a0e=>{this['_reduceSuggestionAttributeRange'](_0xa54a0e,_0x581638['range'],_0x32575d),_0x2ce708=!0x0;});}return _0x2ce708;}['_reduceSuggestionAttributeRange'](_0x5c16e5,_0x4f0bf0,_0x3778d5){const _0x16af1e=_0x5c16e5['getFirstRange']()['getDifference'](_0x4f0bf0);0x0!==_0x16af1e['length']?0x1!==_0x16af1e['length']?this['_breakSuggestionMarker'](_0x5c16e5,_0x4f0bf0['start'],_0x4f0bf0['end']):this['_setSuggestionRange'](_0x5c16e5,_0x16af1e[0x0]):_0x3778d5['removeMarker'](_0x5c16e5['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x41572a){this['_editor']=_0x41572a,this['_model']=_0x41572a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4abf9e,_0x3c4fad,_0x334537,_0x101968,_0x29f872,_0x380af3,_0x510904){return new o(this['_model'],{'type':_0x4abf9e,'subType':_0x3c4fad,'id':_0x334537,'originalSuggestionId':_0x510904,'author':_0x101968,'creator':_0x101968,'attributes':_0x29f872,'onAttributesChange':_0x380af3,'onAccept':(..._0x6774b5)=>this['getSuggestionCallback'](_0x4abf9e,_0x3c4fad,'accept')(..._0x6774b5),'onDiscard':(..._0x3b176b)=>this['getSuggestionCallback'](_0x4abf9e,_0x3c4fad,'discard')(..._0x3b176b)});}['registerCustomCallback'](_0x5bd944,_0x24e0f4,_0x75857e,_0x9701eb){const _0x230b4b=_0x5bd944+':'+_0x24e0f4+':'+_0x75857e;this['_customCallbacks']['set'](_0x230b4b,_0x9701eb);}['getSuggestionCallback'](_0x3d56ca,_0x33053f,_0x5b9148){const _0x386d97=_0x3d56ca+':'+_0x33053f+':'+_0x5b9148;return this['_customCallbacks']['get'](_0x386d97)||this['_defaultCallbacks']['get'](_0x3d56ca+':'+_0x5b9148);}['_registerDefaultCallbacks'](){const _0xa65575=()=>!0x1,_0x520ccd=_0x1a4a8b=>{_0x1a4a8b['sort']((_0xde43e1,_0x25f108)=>_0xde43e1['start']['isBefore'](_0x25f108['start'])?0x1:-0x1),this['_model']['change'](_0x48db78=>{for(const _0x567303 of _0x1a4a8b){let _0x58963c;_0x58963c=_0x567303['end']['isAtEnd']&&_0x567303['end']['parent']==_0x567303['start']['nodeAfter']?_0x48db78['createSelection'](_0x567303['start']['nodeAfter'],'on'):_0x48db78['createSelection'](_0x567303),this['_model']['deleteContent'](_0x58963c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x501b59=(_0x53b281,_0x10c5fe)=>{_0x10c5fe&&this['_model']['change'](_0x3afdf2=>{const {commandName:_0x7b3a1c,commandParams:_0x2298af=[]}=_0x10c5fe,_0x158f4d=_0x53b281['map'](_0x19ee57=>(Lt(_0x19ee57)&&(_0x19ee57=this['_model']['createRange'](_0x19ee57['end'])),_0x19ee57))['filter'](_0x24dc12=>'$graveyard'!==_0x24dc12['root']['rootName']);if(_0x158f4d['length']<0x1)return;const _0x2c2238=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x548d16=>_0x222fa7['fromRange'](_0x548d16));_0x3afdf2['setSelection'](_0x158f4d);for(const _0x388a5e of this['_editor']['commands']['commands']())_0x388a5e['refresh']();_0x2298af['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x7b3a1c,..._0x2298af);const _0x2c08a7=_0x2c2238['filter'](_0x12fc9e=>'$graveyard'!=_0x12fc9e['root']['rootName']);_0x2c08a7['length']>0x0&&_0x3afdf2['setSelection'](_0x2c08a7);for(const _0x27945c of _0x2c2238)_0x27945c['detach']();});},_0x1b2085=(_0x294c45,_0x865ac6)=>0x1==_0x294c45['length']&&0x1==_0x865ac6['length']&&_0x294c45[0x0]['end']['isEqual'](_0x865ac6[0x0]['start']),_0x1888a6=(_0x50e936,_0x15a4c3,_0x5b0d9f,_0x200e02)=>Wt(_0x50e936,_0x15a4c3,_0x5b0d9f,_0x200e02)?[_0x50e936,_0x15a4c3]:Wt(_0x15a4c3,_0x50e936,_0x200e02,_0x5b0d9f)?[_0x15a4c3,_0x50e936]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xa65575),this['_defaultCallbacks']['set']('insertion:discard',_0x520ccd),this['_defaultCallbacks']['set']('insertion:join',_0x1b2085),this['_defaultCallbacks']['set']('insertion:chain',_0x1888a6),this['_defaultCallbacks']['set']('deletion:accept',_0x520ccd),this['_defaultCallbacks']['set']('deletion:discard',_0xa65575),this['_defaultCallbacks']['set']('deletion:join',_0x1b2085),this['_defaultCallbacks']['set']('deletion:chain',_0x1888a6),this['_defaultCallbacks']['set']('formatInline:accept',_0x501b59),this['_defaultCallbacks']['set']('formatInline:discard',_0xa65575),this['_defaultCallbacks']['set']('formatInline:join',_0x1b2085),this['_defaultCallbacks']['set']('formatInline:chain',_0xa65575),this['_defaultCallbacks']['set']('formatBlock:accept',_0x501b59),this['_defaultCallbacks']['set']('formatBlock:discard',_0xa65575),this['_defaultCallbacks']['set']('formatBlock:join',_0x1b2085),this['_defaultCallbacks']['set']('formatBlock:chain',_0xa65575),this['_defaultCallbacks']['set']('attribute:accept',_0xa65575),this['_defaultCallbacks']['set']('attribute:discard',(_0x2223c4,_0x5e250b)=>{if(!_0x5e250b)return;const _0xee2436=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4b4bfa=>{if(_0x5e250b['key']==u)for(const _0x3dad58 of _0x2223c4){const _0x55fb0e=_0x3dad58['start']['nodeAfter'],_0x519615=_0x5e250b['oldValue'];_0x4b4bfa['rename'](_0x55fb0e,_0x519615);}else{if(_0xee2436['_isBlockAttribute'](_0x5e250b['key'])){for(const _0x31331a of _0x2223c4)void 0x0!==_0x5e250b['oldValue']?_0x4b4bfa['setAttribute'](_0x5e250b['key'],_0x5e250b['oldValue'],_0x31331a['start']['nodeAfter']):_0x4b4bfa['removeAttribute'](_0x5e250b['key'],_0x31331a['start']['nodeAfter']);}else{for(const _0x296df0 of _0x2223c4)_0x5e250b['oldValue']?_0x4b4bfa['setAttribute'](_0x5e250b['key'],_0x5e250b['oldValue'],_0x296df0):_0x4b4bfa['removeAttribute'](_0x5e250b['key'],_0x296df0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1b2085);}}function Gt(_0x1fe8e8,_0x4920fe,_0x2ec50d){for(const _0x1098f7 of _0x4920fe['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1098f7['root']==_0x1098f7)return!0x1;if(!_0x2ec50d['containsItem'](_0x1098f7))return!0x1;if(_0x1fe8e8['isObject'](_0x1098f7)||_0x1fe8e8['isLimit'](_0x1098f7))return!0x0;}return!0x1;}function Lt(_0x4c8dbb){return _0x4c8dbb['end']['parent']==_0x4c8dbb['start']['nodeAfter']&&_0x4c8dbb['end']['isAtStart'];}function Jt(_0x3a0241,_0x3e40fa,_0x41d7e3,_0x2de9bd){const _0xad80b4=_0x365d40=>!_0x365d40['item']['is']('$textProxy')&&!_0x2de9bd['isObject'](_0x365d40['item']),_0x51998f=_0x3a0241['start']['getLastMatchingPosition'](_0xad80b4),_0x5106f6=_0x3a0241['end']['getLastMatchingPosition'](_0xad80b4,{'direction':'backward'});return(!_0x3a0241['start']['isEqual'](_0x51998f)||!_0x3a0241['end']['isEqual'](_0x5106f6))&&(_0x51998f['isBefore'](_0x5106f6)?_0x41d7e3['updateMarker'](_0x3e40fa,{'range':_0x41d7e3['createRange'](_0x51998f,_0x5106f6)}):_0x41d7e3['removeMarker'](_0x3e40fa),!0x0);}function Kt(_0x1f97ea){return _0x4e5477(_0x1f97ea);}function Ht(_0x38ad55){const _0x1bde45=_0x38ad55['start']['nodeAfter'];return _0x1bde45&&_0x1bde45['is']('element');}function qt(_0x45e740,_0x5ecb7f){return null==_0x45e740['end']['nodeBefore']&&_0x45e740['end']['parent']==_0x45e740['start']['nodeAfter']?zt(_0x45e740['start']['nodeAfter'],_0x5ecb7f):_0x45e740;}function zt(_0x22a1e2,_0xcc5577){const _0x5e6be0=_0xcc5577['schema']['isObject'](_0x22a1e2)||_0xcc5577['schema']['isSelectable'](_0x22a1e2);return _0xcc5577['createRange'](_0xcc5577['createPositionAt'](_0x22a1e2,'before'),_0x5e6be0?_0xcc5577['createPositionAfter'](_0x22a1e2):_0xcc5577['createPositionAt'](_0x22a1e2,'end'));}function Wt(_0x3323a1,_0x52bcc4,_0x20b0ba,_0xe999b8){return!!Qt(_0x3323a1,_0x52bcc4)&&_0x20b0ba['end']['isEqual'](_0xe999b8['start']);}function Qt(_0x4fa46f,_0x1033bb){if(!_0x4fa46f['_isDataLoaded']||!_0x1033bb['_isDataLoaded'])return!0x1;const _0x73b9aa=new Set(Object['keys'](_0x4fa46f['attributes'])),_0x5e9101=new Set(Object['keys'](_0x1033bb['attributes']));if(_0x73b9aa['delete']('groupId'),_0x5e9101['delete']('groupId'),0x0==_0x73b9aa['size']&&0x0==_0x5e9101['size'])return!0x0;if(_0x73b9aa['size']!=_0x5e9101['size'])return!0x1;const _0x2bc2a6={..._0x4fa46f['attributes']},_0x36d563={..._0x1033bb['attributes']};return delete _0x2bc2a6['groupId'],delete _0x36d563['groupId'],JSON['stringify'](_0x2bc2a6)==JSON['stringify'](_0x36d563);}function Xt(_0xe084d8,_0x317d39){const _0x5e5459=Yt(_0xe084d8['attributes']),_0x396715=Yt(_0x317d39);if(!_0xe084d8['_isDataLoaded'])return!0x1;for(const _0xf936f4 of Object['keys'](_0x396715))if(!_0x4b5d00(_0x5e5459[_0xf936f4],_0x396715[_0xf936f4]))return!0x1;return!0x0;}function Yt(_0x49bc73){const _0x47658e=Object['assign']({},_0x49bc73);return delete _0x47658e['skipNestingCheck'],delete _0x47658e['tablePasteChainId'],_0x47658e;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x534a7f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x59ab48,_0xcca87f,_0x17c3b7,_0x9b890){super(),this['model']=_0xcca87f,this['view']=_0x17c3b7,this['commentThreadController']=_0x9b890,this['_editor']=_0x59ab48,this['_acceptCommand']=_0x59ab48['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x59ab48['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x36f650,_0x57e42b)=>_0x36f650||_0x57e42b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4447eb=>_0x4447eb&&this['_editor']['model']['canEditAt'](_0xcca87f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x28ffbd=>_0x28ffbd&&this['_editor']['model']['canEditAt'](_0xcca87f['getRanges']())),this['_pendingAction']=null,_0x17c3b7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x17c3b7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x17c3b7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x17c3b7,'change:isDirty',()=>{_0x17c3b7['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 _0x438539=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x438539);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1dcc4c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x96c912,_0x4e5dfc,_0x1fe297,_0x4f271a){super(_0x96c912),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x419526(_0x96c912,c(_0x96c912,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4e5dfc['authoredAt']),this['bind']('authoredAt')['to'](_0x4e5dfc),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',_0x4e5dfc,'authoredAt',this,'descriptionParts',(_0x2c2e7c,_0x25b3ff,_0x306cd2)=>{const _0x47b87a=_0x306cd2['map'](_0x6ff9b7=>ls(_0x6ff9b7['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2c2e7c-0x1,_0x4e5dfc['author']['name'],_0x25b3ff?_0x4f271a['formatDateTime'](_0x25b3ff):'',new DOMParser()['parseFromString'](_0x47b87a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x11e774(),this['focusTracker']=new _0x5a88ae(),this['keystrokes']=new _0x597b63(),this['focusCycler']=new _0x261413({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x532832=>_0x532832['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4e5dfc,this['_localUser']=_0x1fe297,this['_config']=_0x4f271a,_0x4f271a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x483bf0(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x54a167}=this['_config'];this['commentsListView']=new _0x54a167(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',_0x54aa26=>_0x54aa26+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xc27505,_0x444a4a)=>_0xc27505||!!_0x444a4a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x53cdf1}=this['_config'],_0x1462ef=new _0x53cdf1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x150caf=_0x1462ef['commentInputView'];return _0x1462ef['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x150caf,'value',(_0x2ab886,_0x1a9860,_0x1c6734)=>!!_0x1c6734||_0x2ab886&&!_0x1a9860),_0x150caf['on']('submit',(_0xf2970b,_0x31fc4b)=>{this['fire']('addComment',_0x31fc4b),_0x150caf['editor']['setData']('');}),_0x150caf['on']('cancel',()=>this['focus']()),_0x150caf['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1462ef;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x2b1c8a,_0x4b18de,_0x553623,_0x1f1671){super(_0x2b1c8a,_0x4b18de,_0x553623,_0x1f1671),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1750bb=>_0x1750bb&&_0x1750bb[0x0]?_0x1750bb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x426cd7,_0x768ab6)=>{let _0x972234='';for(const _0x3a5d54 of _0x426cd7)_0x972234+='<p>'+ls(_0x3a5d54['content'],_0x3a5d54['color'])+'</p>';return _0x768ab6?_0x972234:ti(_0x972234,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1f1671['SuggestionView'](_0x2b1c8a,_0x4b18de,{'formatDateTime':_0x1f1671['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 _0x6880bd=this['bindTemplate'],_0x2cd0e3=[this['suggestionView']];return this['commentsListView']&&_0x2cd0e3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2cd0e3['push'](this['commentThreadInputView']),_0x2cd0e3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x6880bd['if']('isActive','ck-suggestion-wrapper--active'),_0x6880bd['to']('type',_0x15b7a3=>'ck-suggestion-'+_0x15b7a3),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':_0x6880bd['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2cd0e3};}['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 _0x1dcc4c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4a7ee2,_0x236c59,_0xaa1911){super(_0x4a7ee2),this['_model']=_0x236c59,this['_config']=_0xaa1911,this['set']('description',''),this['bind']('authoredAt')['to'](_0x236c59),this['acceptButton']=this['_createButton'](c(_0x4a7ee2,'Accept\x20suggestion'),_0x581061,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4a7ee2,'Discard\x20suggestion'),_0x335018,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xca6c6d(_0x4a7ee2,_0x236c59['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x11e774([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5a88ae(),this['keystrokes']=new _0x597b63(),this['focusCycler']=new _0x261413({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1b8fb5=>_0x1b8fb5['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x40e692=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x40e692['innerHTML']=this['description'],this['on']('change:description',(_0x1664b7,_0x232a59,_0x628d37)=>{_0x40e692['innerHTML']=_0x628d37;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x21a4d0=this['bindTemplate'],_0x2bcda8=[{'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':_0x21a4d0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x21a4d0['to']('authoredAt',_0x381c66=>this['_config']['formatDateTime'](_0x381c66))}]}]},{'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']&&_0x2bcda8['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':_0x2bcda8}]};}['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'](_0x1058ab,_0x5a8460,_0x17a04d,_0x523457,_0x38b56c){const _0x254d7e=new _0xf80b6d(this['locale']);return _0x254d7e['set']({'label':_0x1058ab,'icon':_0x5a8460,'tooltip':!0x0,'tooltipPosition':_0x38b56c}),_0x254d7e['extendTemplate']({'attributes':{'class':_0x17a04d}}),_0x254d7e['on']('execute',()=>{this['fire'](_0x523457,this['_model']['id']);}),_0x254d7e;}['_setupKeyboardNavigation'](){const _0x457053=this['element'];this['keystrokes']['listenTo'](_0x457053);for(const _0x493120 of this['focusables'])this['focusTracker']['add'](_0x493120['element']),this['keystrokes']['listenTo'](_0x493120['element']);this['keystrokes']['set']('enter',(_0x14bcdc,_0x2265d3)=>{_0x457053===_0x14bcdc['target']&&(this['focusCycler']['focusFirst'](),_0x2265d3());}),this['keystrokes']['set']('esc',(_0x5ca67,_0x348589)=>{_0x457053!==_0x5ca67['target']&&(this['focus'](),_0x348589());});}}class d extends _0x412245{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2744cc,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xc95388){super(_0xc95388),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5d9641=this['editor']['config'];_0x5d9641['define']('trackChanges.SuggestionThreadView',fe),_0x5d9641['define']('trackChanges.SuggestionView',we),_0x5d9641['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5d9641['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4739a7,_0x217de1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x44cb39,_0x1799b7]of this['_handleControllerBuffer']){const _0x3ef339=this['_suggestionToController']['has'](_0x44cb39);_0x3ef339||_0x1799b7?_0x3ef339&&_0x1799b7&&this['_destroyController'](_0x44cb39):this['_initializeController'](_0x44cb39);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4739a7,_0x217de1);}['init'](){const _0x407d11=this['editor'],_0x155c01=_0x407d11['plugins']['get']('TrackChangesEditing'),_0x54ff8d=_0x407d11['plugins']['get']('Annotations'),_0x31bb8f=_0x407d11['plugins']['get']('EditorAnnotations'),_0x274ccd=_0x407d11['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x31bb8f['addSourceCollector'](()=>{const _0x5416ce=[];for(const [_0x423ced,_0x1b2e5a]of Array['from'](this['_suggestionToController'])){const _0x41e7b9=_0x423ced['getAllAdjacentSuggestions'](),_0x2d08e5=[];for(const _0x33a5ec of _0x41e7b9){if(!_0x33a5ec['isInContent'])continue;if(_0x33a5ec['isMultiRange']){_0x2d08e5['push'](..._0x33a5ec['getRanges']());continue;}const _0x43ac30=_0x33a5ec['getFirstRange']();if(_0x2d08e5['length']>0x0){const _0xd16800=_0x2d08e5[0x0]['getJoined'](_0x43ac30);if(_0xd16800){_0x2d08e5[0x0]=_0xd16800;continue;}}_0x2d08e5['push'](_0x43ac30);}_0x5416ce['push']([_0x1b2e5a['view'],_0x2d08e5]);}return _0x5416ce;}),this['listenTo'](_0x155c01,'suggestionLoaded',(_0x485912,_0x33e10b)=>{this['listenTo'](_0x33e10b,'change:previous',(_0x371256,_0x26b4bf,_0x410013,_0x56f0ca)=>{_0x33e10b['isInContent']&&(null==_0x410013?(this['_updateController'](_0x56f0ca['head']),this['_handleSuggestionControllerDelayed'](_0x33e10b,!0x1)):(this['_updateController'](_0x410013['head']),null==_0x56f0ca&&this['_handleSuggestionControllerDelayed'](_0x33e10b,!0x0)));}),null!==_0x33e10b['previous']?this['_updateController'](_0x33e10b['head']):this['_handleSuggestionControllerDelayed'](_0x33e10b,!0x1);}),this['listenTo'](_0x155c01,'suggestionUnloaded',(_0x488078,_0x33aa33,_0x3f8d58)=>{this['stopListening'](_0x33aa33,'change:previous'),this['_handleControllerBuffer']['delete'](_0x33aa33),this['_suggestionToController']['has'](_0x33aa33)&&this['_destroyController'](_0x33aa33),_0x3f8d58&&this['_updateController'](_0x3f8d58['head']);}),this['listenTo'](_0x155c01,'suggestionChanged',(_0x11b74a,_0x531c5a)=>{this['_updateController'](_0x531c5a);}),this['listenTo'](_0x54ff8d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x274ccd,'addComment',(_0x2ff1e1,{threadId:_0x440efd,isFromAdapter:_0x2278a0})=>{if(_0x2278a0||!_0x155c01['hasSuggestion'](_0x440efd))return;const _0x365b6c=_0x155c01['getSuggestion'](_0x440efd);this['_suggestionToController']['get'](_0x365b6c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5c3f20=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4f977b;for(const _0x4d958a in _0x5c3f20){const _0x5da4d4=_0x4d958a,_0x5c6189=_0x5c3f20[_0x5da4d4];if('trackChangesLicenseKeyValid'==_0x5c6189||'trackChangesLicenseKeyInvalid'==_0x5c6189||'trackChangesLicenseKeyExpired'==_0x5c6189||'trackChangesLicenseKeyDomainLimit'==_0x5c6189||'trackChangesLicenseKeyNotAllowed'==_0x5c6189||'trackChangesLicenseKeyEvaluationLimit'==_0x5c6189||'trackChangesLicenseKeyTrialLimit'==_0x5c6189||'trackChangesLicenseKeyUsageLimit'==_0x5c6189){delete _0x5c3f20[_0x5da4d4],_0x4f977b=_0x5c6189,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4f977b&&_0x5c3f20['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4f977b&&_0x5c3f20['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4f977b&&_0x5c3f20['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4f977b&&_0x5c3f20['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4f977b&&_0x5c3f20['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4f977b&&_0x5c3f20['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4f977b&&_0x5c3f20['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xb0e090=this['editor']['plugins']['get']('Annotations'),_0x3c03b6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56c382=Array['from'](_0xb0e090['activeAnnotations'],_0x51df30=>_0x51df30['innerView'])['filter'](_0x563e5d=>this['_viewToController']['has'](_0x563e5d)),_0x11ac3c=[];for(const _0x13d677 of _0x56c382){const _0xd4dcf8=this['_viewToController']['get'](_0x13d677)['model']['getAllAdjacentSuggestions']();_0x11ac3c['push'](..._0xd4dcf8['reduce']((_0xf698ae,_0x3fd347)=>[..._0xf698ae,..._0x3fd347['getMarkerNames']()],[]));}_0x3c03b6['activeMarkers']=_0x11ac3c;}['_addUIComponentsToFactory'](){const _0xcac455=this['editor'],_0x285626=_0xcac455['locale'],_0x1cdf49=c(_0x285626,'Track\x20changes'),_0x314877=new _0x947eb2([{'type':'switchbutton','model':new _0x213a5d({'withText':!0x0,'isToggleable':!0x0,'label':_0x1cdf49,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x213a5d({'withText':!0x0,'label':c(_0x285626,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x213a5d({'withText':!0x0,'label':c(_0x285626,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x213a5d({'withText':!0x0,'label':c(_0x285626,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x213a5d({'withText':!0x0,'label':c(_0x285626,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xcac455['plugins']['has']('TrackChangesPreview')&&_0x314877['addMany']([{'type':'separator'},{'type':'button','model':new _0x213a5d({'withText':!0x0,'label':c(_0x285626,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xe905a5 of _0x314877)if(ke(_0xe905a5)){const _0x103872=_0xcac455['commands']['get'](_0xe905a5['model']['commandName']);_0xe905a5['model']['bind']('isOn','isEnabled')['to'](_0x103872,'value','isEnabled');}_0xcac455['ui']['componentFactory']['add']('trackChanges',_0x5f53c2=>this['_createToolbarButton'](_0x5f53c2,_0x314877,_0x1cdf49)),_0xcac455['ui']['componentFactory']['add']('menuBar:trackChanges',_0x25295e=>this['_createMenuBarMenu'](_0x25295e,_0x314877,_0x1cdf49));}['_createToolbarButton'](_0x21b4b3,_0x572692,_0x3caf86){const _0x21d801=_0x396fb7(_0x21b4b3,_0x5f1458),_0x569e88=this['editor']['commands']['get']('trackChanges');_0x21d801['buttonView']['set']({'tooltip':_0x3caf86,'label':_0x3caf86,'icon':_0x2bc6f0}),_0x21d801['buttonView']['bind']('isOn')['to'](_0x569e88,'value'),_0x21d801['buttonView']['on']('execute',()=>{_0x569e88['execute'](),this['editor']['editing']['view']['focus']();}),_0x3f70a3(_0x21d801,_0x572692,{'role':'menu'});const _0x3d833d=[];for(const _0xe4d3ec of _0x572692)ke(_0xe4d3ec)&&_0x3d833d['push'](this['editor']['commands']['get'](_0xe4d3ec['model']['commandName']));const _0x4ec969=_0x21d801['buttonView'];return _0x4ec969['actionView']['unbind']('isEnabled'),_0x4ec969['arrowView']['unbind']('isEnabled'),_0x4ec969['actionView']['bind']('isEnabled')['to'](_0x569e88,'isEnabled'),_0x4ec969['arrowView']['bind']('isEnabled')['toMany'](_0x3d833d,'isEnabled',(..._0x5098d1)=>_0x5098d1['some'](_0x3bb548=>_0x3bb548)),_0x21d801['on']('execute',_0x4c24cc=>{this['editor']['execute'](_0x4c24cc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x21d801;}['_createMenuBarMenu'](_0x6fd12c,_0xbab1fb,_0x1ab840){const _0x4dbeed=new _0x5af175(_0x6fd12c),_0x134919=this['editor']['commands']['get']('trackChanges');_0x4dbeed['buttonView']['set']({'label':_0x1ab840,'icon':_0x2bc6f0});const _0x50ea28=new _0x4c31fd(_0x6fd12c);for(const _0x5bc683 of _0xbab1fb){if('separator'==_0x5bc683['type']){_0x50ea28['items']['add'](new _0xe82616(_0x6fd12c));continue;}const _0xb605e8=new _0x3b8030(_0x6fd12c,_0x4dbeed),_0x296884=new _0xe35425(_0x6fd12c),_0x34412d=_0x5bc683['model'];_0x296884['bind'](...Object['keys'](_0x34412d))['to'](_0x34412d),_0x296884['delegate']('execute')['to'](_0x4dbeed),_0x296884['on']('execute',()=>{this['editor']['execute'](_0x34412d['commandName']),this['editor']['editing']['view']['focus']();}),_0xb605e8['children']['add'](_0x296884),_0x50ea28['items']['add'](_0xb605e8);}return _0x4dbeed['bind']('isEnabled')['to'](_0x134919,'isEnabled'),_0x4dbeed['panelView']['children']['add'](_0x50ea28),_0x4dbeed;}['_initializeController'](_0x157ad7){const _0x96af71=this['editor'],_0x2c1f99=_0x96af71['config'],_0x2b337b=_0x96af71['plugins']['get']('Annotations'),_0x51d38d=_0x96af71['plugins']['get']('CommentsRepository'),_0x3bfe64=_0x96af71['plugins']['get']('EditorAnnotations'),_0x49c2f0=_0x96af71['plugins']['get'](_0x2744cc)['me'],_0x483d2e=_0x2c1f99['get']('trackChanges')['SuggestionThreadView'],_0x1c9d7f=_0x2c1f99['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x382319,CommentThreadInputView:_0x4b0347}=_0x96af71['plugins']['get']('CommentsUI');let _0x1e6e0a,_0x12e345,_0x18b0e5;this['_annotationViews']['has'](_0x157ad7['id'])?(_0x12e345=this['_annotationViews']['get'](_0x157ad7['id']),_0x1e6e0a=_0x12e345['mainView']):(_0x1e6e0a=new _0x483d2e(_0x96af71['locale'],_0x157ad7,_0x49c2f0,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2c1f99['get']('comments.editorConfig'),'licenseKey':_0x2c1f99['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2c1f99['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2c1f99['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2c1f99['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1fb9ee(_0x2c1f99['get']('locale'),_0x96af71['locale']),'CommentView':_0x2c1f99['get']('comments')['CommentView'],'CommentsListView':_0x382319,'CommentThreadInputView':_0x4b0347,'SuggestionView':_0x1c9d7f}),_0x1e6e0a['suggestionView']['acceptButton']['on']('execute',()=>{_0x96af71['editing']['view']['focus']();}),_0x1e6e0a['suggestionView']['discardButton']['on']('execute',()=>{_0x96af71['editing']['view']['focus']();}),_0x12e345=_0x2b337b['createAnnotationView'](this['editor']['locale'],_0x1e6e0a),_0x12e345['bind']('isDirty')['to'](_0x1e6e0a,'isDirty'),_0x12e345['bind']('length')['to'](_0x1e6e0a),_0x12e345['bind']('type')['to'](_0x1e6e0a,'type',_0x58127a=>'suggestion-'+_0x58127a),_0x1e6e0a['on']('escape',()=>{_0x18b0e5['fire']('escape');}),this['_annotationViews']['set'](_0x157ad7['id'],_0x12e345));const _0x4f0cfb=_0x51d38d['createCommentThreadController'](_0x157ad7['commentThread'],_0x1e6e0a),_0x5d8cdd=new pe(_0x96af71,_0x157ad7,_0x1e6e0a,_0x4f0cfb),_0x255e74=_0x157ad7['getAllAdjacentSuggestions']()['filter'](_0x1afef4=>_0x1afef4['isInContent']);_0x1e6e0a['descriptionParts']=_0x96af71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x255e74),this['_suggestionToController']['set'](_0x157ad7,_0x5d8cdd),this['_viewToController']['set'](_0x1e6e0a,_0x5d8cdd),_0x18b0e5=_0x2b337b['createAnnotation']({'view':_0x12e345,'target':()=>{const _0x25cf75=[],_0x54f113=_0x157ad7['getAllAdjacentSuggestions']()['filter'](_0x348216=>_0x348216['isInContent']);for(const _0x4863b2 of _0x54f113)_0x25cf75['push'](..._0x4863b2['getMarkers']());return _0x5ec73f(_0x96af71['editing'],_0x25cf75);},'type':()=>'suggestion-'+_0x5d8cdd['view']['type']}),_0x51d38d['_bindAnnotationToEditors'](_0x1e6e0a,_0x18b0e5),_0x2b337b['add'](_0x18b0e5),_0x3bfe64['registerAnnotation'](_0x18b0e5);}['_destroyController'](_0x3d719b){const _0x14a639=this['editor']['plugins']['get']('CommentsRepository'),_0x1644bf=this['editor']['plugins']['get']('Annotations'),_0x566f31=this['_suggestionToController']['get'](_0x3d719b),_0xb279ec=_0x566f31['view'],_0x483b68=_0x1644bf['getByInnerView'](_0xb279ec);_0x14a639['_unbindEditors'](_0xb279ec),_0x483b68&&_0x1644bf['remove'](_0x483b68),this['_suggestionToController']['delete'](_0x3d719b),this['_viewToController']['delete'](_0xb279ec),_0x566f31['destroy']();}['_updateController'](_0x5afd3d){if(!_0x5afd3d['isInContent']||!this['_suggestionToController']['has'](_0x5afd3d))return;const _0x322339=this['editor']['plugins']['get']('TrackChangesEditing'),_0x475990=this['_suggestionToController']['get'](_0x5afd3d),_0x243ecf=_0x5afd3d['getAllAdjacentSuggestions']();_0x475990['view']['descriptionParts']=_0x322339['descriptionFactory']['getDescriptions'](_0x243ecf);}['destroy'](){for(const _0x431bc4 of this['_suggestionToController']['keys']())this['_destroyController'](_0x431bc4);for(const _0x4c6095 of this['_annotationViews']['values']())_0x4c6095['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5b4541){return'model'in _0x5b4541;}class k extends _0x412245{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x83bb27){this['editor']['plugins']['get'](p)['adapter']=_0x83bb27;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4511d4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4511d4);}['getSuggestions']({skipNotAttached:_0x932981=!0x1,toJSON:_0xf1b395=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x932981,'toJSON':_0xf1b395});}['getSuggestion'](_0x5a4a2c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5a4a2c);}}const w=['Pagination'];class T extends _0x412245{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x37f9b5=this['editor'];if(_0x37f9b5['config']['define']('trackChangesData.editorCreator',_0x4de459=>{const _0x453fa9=_0x37f9b5['model']['document']['getRootNames']()['reduce']((_0x5a2f19,_0x14651a)=>(_0x5a2f19[_0x14651a]='',_0x5a2f19),{});return _0x37f9b5['constructor']['create'](_0x453fa9,_0x4de459);}),'function'!=typeof _0x37f9b5['config']['get']('trackChangesData')['editorCreator'])throw new _0x470bfb('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4c859a){return N(this['editor'],!0x0,_0x4c859a);}['getDataWithDiscardedSuggestions'](_0x58e8b2){return N(this['editor'],!0x1,_0x58e8b2);}}class D extends _0x412245{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb9982a){function _0x548c94(_0x179fdf){return _0x179fdf['map'](_0x370a47=>String['fromCharCode'](_0x370a47))['join']('');}super(_0xb9982a),this['result']='end',_0xb9982a[_0x548c94([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x548c94([0x76,0x69,0x65,0x77])][_0x548c94([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x548c94([0x61,0x75,0x74,0x6f]),_0xb9982a[_0x548c94([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x548c94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x548c94([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x548c94([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x548c94([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(_0x40c01c){return void 0x0!==_0x40c01c['getRootsAttributes'];}async function N(_0x14b688,_0x41db05,_0x21fca1){const _0xf5f6fd=_0x4c8da9(_0x14b688,w);_0xf5f6fd['plugins']['push'](p,D),_0xf5f6fd['rootsAttributes']=Ge(_0x14b688)?_0x14b688['getRootsAttributes']():void 0x0;const _0xbe347=document['createDocumentFragment'](),_0x3d9acf=_0x14b688['config']['get']('trackChangesData')['editorCreator'],_0x2ca3ca=await _0x3d9acf(_0xf5f6fd,()=>function(_0x5cae27){const _0x48c5aa=document['createElement']('div');return _0x5cae27['appendChild'](_0x48c5aa),_0x48c5aa;}(_0xbe347));!function(_0x28e5cb,_0x1bfeef){const _0x17888e=_0x28e5cb['model']['document']['getRootNames']()['reduce']((_0xc29086,_0x3a7561)=>(_0xc29086[_0x3a7561]=_0x28e5cb['data']['get']({'rootName':_0x3a7561}),_0xc29086),{}),_0x1c8e50=_0x28e5cb['plugins']['get']('Users')['users']['map'](_0x5dc398=>({'id':_0x5dc398['id'],'name':_0x5dc398['name']})),_0x4ff1b5=_0x28e5cb['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2d7960=_0x28e5cb['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5191e9=_0x1bfeef['plugins']['get']('Users'),_0x1a58f3=_0x1bfeef['plugins']['get']('TrackChangesEditing'),_0x22a1c9=_0x1bfeef['plugins']['get']('CommentsRepository');for(const _0x445646 of _0x22a1c9['getCommentThreads']())_0x445646['remove']();for(const _0xd59323 of _0x1c8e50)_0x5191e9['getUser'](_0xd59323['id'])||_0x5191e9['addUser'](_0xd59323);_0x5191e9['me']||_0x5191e9['useAnonymousUser']();for(const _0x4c9805 of _0x2d7960)_0x22a1c9['addCommentThread'](_0x4c9805);for(const _0x4bde28 of _0x4ff1b5)_0x1a58f3['addSuggestionData'](_0x4bde28);_0x1bfeef['data']['set'](_0x17888e);}(_0x14b688,_0x2ca3ca),_0x2ca3ca['execute'](_0x41db05?'acceptAllSuggestions':'discardAllSuggestions');const _0x589653=Ge(_0x2ca3ca)?_0x2ca3ca['getFullData'](_0x21fca1):_0x2ca3ca['data']['get'](_0x21fca1);return await _0x2ca3ca['destroy'](),_0x589653;}class Me extends _0x1dcc4c{['options'];constructor(_0x5439fb,_0x5aa114){super(_0x5439fb),this['options']=_0x5aa114,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'](_0x2c2508,_0x5eba2b){if(!this['element'])return;const _0x5a9715=[];for(const [_0x3345b4,_0x5af65f]of _0x2c2508){const _0x51e875=document['createElement']('div');_0x51e875['setAttribute']('data-ck-root-name',_0x3345b4),_0x51e875['className']=_0x5af65f['classes']+'\x20ck-track-changes-preview__root-container',_0x51e875['innerHTML']=_0x5af65f['content'],_0x5a9715['push'](_0x51e875);}_0x5eba2b(this['element'],_0x5a9715),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x17308a{constructor(_0x5f5b1d){super(_0x5f5b1d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1d1bea=this['editor'],_0x541523=_0x1d1bea['locale'],_0x2e06be=_0x1d1bea['plugins']['get']('Dialog');let _0x1e7ef2;const _0xaf8b3b=function(_0x2941bd){const _0x38e021={};if('editables'in _0x2941bd['ui']['view']){for(const [_0x271d00,_0x16b994]of Object['entries'](_0x2941bd['ui']['view']['editables']))_0x38e021[_0x271d00]=_0x16b994['element'];}else _0x38e021[_0x2941bd['model']['document']['getRootNames']()[0x0]]=_0x2941bd['ui']['view']['editable']['element'];return _0x38e021;}(_0x1d1bea),_0x1adc0d=function(_0x5adb7c){let _0x2a36de=0x0;for(const _0x12dc2c of Object['values'](_0x5adb7c))_0x2a36de=Math['max'](_0x2a36de,_0x12dc2c['getBoundingClientRect']()['width']);let _0x55d0ae=0x0;for(const _0x4f21a5 of Object['values'](_0x5adb7c))_0x55d0ae+=_0x4f21a5['getBoundingClientRect']()['height'];const _0x420571=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x34fe54=Math['min'](_0x55d0ae,_0x420571);return{'width':_0x2a36de,'height':_0x34fe54};}(_0xaf8b3b);_0x2e06be['show']({'id':'finalContentPreview','title':c(_0x541523,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x541523,{'dialogRects':_0x1adc0d}),'onHide':()=>{_0x1e7ef2['detachFromDom']();},'onShow':()=>{_0x1d1bea['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x502e33=>{const _0x2648cc=this['_standarizeRootsData'](_0x502e33,_0x1d1bea,_0xaf8b3b);_0x2e06be['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2648cc,_0x1d1bea['config']['get']('trackChanges.preview.renderFunction'));}),_0x1e7ef2=new _0x5bb527(_0x541523,[_0x2e06be['view']]),_0x1e7ef2['attachToDom'](),_0x1e7ef2['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1d1bea['once']('destroy',()=>{_0x1e7ef2['detachFromDom']();});const _0x44080c=_0x2e06be['view']['headerView']['class'];_0x2e06be['view']['headerView']['class']=_0x44080c?_0x44080c+'\x20ck-reset_all':'ck-reset_all',_0x2e06be['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2e06be['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1e1ca3=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x169a3b=_0x1e1ca3['previewMode'],_0x773995={};if('$labels'===_0x169a3b){for(const _0x17a9e1 of _0x1e1ca3['getMergeFieldsIds']())_0x773995[_0x17a9e1]=_0x1e1ca3['getLabel'](_0x17a9e1)||_0x17a9e1;}else{const _0x5e2179='$defaultValues'===_0x169a3b?_0x1e1ca3['getDefaultValues']():_0x1e1ca3['getDataSetValues'](_0x169a3b,!0x0);for(const _0x2f22f6 of Object['entries'](_0x5e2179)){const [_0x2e7ff8,_0x1bcc39]=_0x2f22f6;_0x773995[_0x2e7ff8]=null!==_0x1bcc39?_0x1bcc39:_0x1e1ca3['getLabel'](_0x2e7ff8)||_0x2e7ff8;}}return{'mergeFieldsData':_0x773995};}['_standarizeRootsData'](_0x3d879d,_0x2f9e35,_0xed6013){let _0x2c463c;if('string'==typeof _0x3d879d){const _0x219a78=_0x2f9e35['model']['document']['getRootNames']()[0x0];_0x2c463c={[_0x219a78]:_0x3d879d};}else _0x2c463c=_0x3d879d;const _0x2e026c=this['_fixMediaEmbeds'](_0x2c463c,_0x2f9e35),_0x4f7163=function(_0x438035,_0x3fce76){for(const [_0x235925,_0x2bfc23]of _0x438035)_0x2bfc23['classes']=_0x3fce76[_0x235925]['classList']['value']['replace']('ck-focused','');return _0x438035;}(this['_sortRoots'](_0x2f9e35)['reduce']((_0x6b63c2,_0x48bd36)=>(_0x6b63c2['push']([_0x48bd36,{'content':_0x2e026c[_0x48bd36],'classes':''}]),_0x6b63c2),[]),_0xed6013);return _0x4f7163;}['_fixMediaEmbeds'](_0x19404f,_0x447e72){if(!_0x447e72['plugins']['has']('MediaEmbedEditing'))return _0x19404f;const _0x5343ff=_0x447e72['plugins']['get']('MediaEmbedEditing');for(const [_0x2922ab,_0x371f02]of Object['entries'](_0x19404f)){const _0x57f4dd=document['createElement']('div');_0x57f4dd['innerHTML']=_0x371f02,(_0x57f4dd['querySelectorAll']('figure.media')['forEach'](_0x3bec3d=>{const _0x39d3d7=_0x3bec3d['querySelector']('oembed');if(_0x39d3d7){const _0x1ab9a5=_0x39d3d7['getAttribute']('url');if(_0x1ab9a5){const _0x394b73=_0x5343ff['registry']['getMediaViewElement'](new _0x1cf07f(_0x447e72['editing']['view']['document']),_0x1ab9a5,{'elementName':'','renderForEditingView':!0x0}),_0x59f273=document['createElement']('div');_0x59f273['classList']['add']('ck-media__wrapper'),_0x394b73['render'](_0x59f273,_0x447e72['editing']['view']['domConverter']),_0x39d3d7['replaceWith'](_0x59f273);}}}),_0x19404f[_0x2922ab]=_0x57f4dd['innerHTML']);}return _0x19404f;}['_sortRoots'](_0x3809f2){if(!function(_0x2689d5){return void 0x0!==_0x2689d5['getRootsAttributes'];}(_0x3809f2))return _0x3809f2['model']['document']['getRootNames']();const _0x5effd1=[],_0x5a6cdc=new Map();for(const _0x5c0be6 of _0x3809f2['model']['document']['getRootNames']()){const _0x2747a8=_0x3809f2['editing']['view']['getDomRoot'](_0x5c0be6)['getClientRects']()['item'](0x0);_0x5effd1['push'](_0x5c0be6),_0x5a6cdc['set'](_0x5c0be6,_0x2747a8);}return _0x5effd1['sort']((_0x288766,_0x1029db)=>{const _0x188729=_0x5a6cdc['get'](_0x288766),_0x44b5ac=_0x5a6cdc['get'](_0x1029db);return _0x188729['y']-_0x44b5ac['y']||_0x188729['x']-_0x44b5ac['x'];}),_0x5effd1;}}class te extends _0x412245{static get['requires'](){return[T,_0x64d40d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf7146f){super(_0xf7146f),_0xf7146f['commands']['add']('previewFinalContent',new re(this['editor'])),_0xf7146f['config']['define']('trackChanges.preview.renderFunction',(_0x28cb2d,_0x3e2c50)=>{for(const _0x527fb3 of _0x3e2c50)_0x28cb2d['appendChild'](_0x527fb3);});}}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};