@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250507.0 → 0.0.0-nightly-20250508.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 _0x4c839a,Plugin as _0x5be5ff,PendingActions as _0x4ca60e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3f6d59,ObservableMixin as _0x56e37d,uid as _0x2be420,priorities as _0x57b8ca,insertToPriorityArray as _0x4dc59b,toArray as _0x46308f,logWarning as _0x2b24ea,getEnvKeystrokeText as _0x34560d,FocusTracker as _0x194625,KeystrokeHandler as _0x29d578,Collection as _0x48dfbd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1bc9bc,IconCancel as _0x624163,IconTrackChanges as _0x4ef40a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x55577f,View as _0x27afbd,ViewCollection as _0x1cef02,FocusCycler as _0x20b6e2,ViewModel as _0x590937,createDropdown as _0xb365de,SplitButtonView as _0x3e9807,addListToDropdown as _0x246ba6,MenuBarMenuView as _0x460a4,MenuBarMenuListView as _0x18dc34,ListSeparatorView as _0x44f473,MenuBarMenuListItemView as _0x35dee4,MenuBarMenuListItemButtonView as _0x2409c6,BodyCollection as _0x34e115,Dialog as _0x1aa0d1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4baace,hashObject as _0x259155,surroundingMarkersDetector as _0x1864a5,FOCUS_ANNOTATION_KEYSTROKE as _0x2008a8,AriaDescriptionView as _0xf99e10,setupThreadKeyboardNavigation as _0x1962db,trimHtml as ti,UserView as _0xba4a38,LateFocusButtonView as _0x51328b,getDateTimeFormatter as _0x25bee6,getAllMarkersDomElementsSorted as _0x315f48,sanitizeEditorConfig as _0x1539f4}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x56ddd6,LiveRange as _0x33976f,LivePosition as _0x12ff42,DowncastWriter as _0x527b69}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xf27f48,toWidget as _0x1ef6a4}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1bd92b,set as _0x346377,isEqual as _0x1daf30,unset as _0x4d7ad8,omit as Ft}from'es-toolkit/compat';import{Delete as _0x8cc0f2,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x431703}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x19c455}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x4c839a{['_enabledCommands'];constructor(_0x36375f,_0x47ce98){super(_0x36375f),this['_enabledCommands']=_0x47ce98,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 _0x25f69d of this['editor']['commands']['commands']())_0x25f69d['affectsData']&&!this['_enabledCommands']['has'](_0x25f69d)&&_0x25f69d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x537bb2 of this['editor']['commands']['commands']())_0x537bb2['affectsData']&&!this['_enabledCommands']['has'](_0x537bb2)&&_0x537bb2['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x4c839a{['_suggestions'];constructor(_0x1ce19e,_0x2bb519){super(_0x1ce19e),this['_suggestions']=_0x2bb519,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1717c7){const _0x382f4b=this['_suggestions']['get'](_0x1717c7);if(!_0x382f4b)throw new _0x3f6d59('track-changes-accept-suggestion-not-found',this);const _0x52ef7c=_0x382f4b['getRanges']();this['editor']['model']['canEditAt'](_0x52ef7c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x382f4b);}}class O extends _0x4c839a{['_suggestions'];constructor(_0x475ba9,_0x325a6e){super(_0x475ba9),this['_suggestions']=_0x325a6e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x33b5db){const _0x289984=this['_suggestions']['get'](_0x33b5db);if(!_0x289984)throw new _0x3f6d59('track-changes-discard-suggestion-not-found',this);const _0x450e8c=_0x289984['getRanges']();this['editor']['model']['canEditAt'](_0x450e8c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x289984);}}function ls(_0x2f6ec3,_0x5a834b){let _0x29c00f='';return _0x29c00f+=_0x2f6ec3['split']('*')['map']((_0x451c6a,_0x5ae057)=>_0x5ae057%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x451c6a)+'</span>':nn(_0x451c6a))['join'](''),_0x5a834b&&(_0x29c00f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5a834b['value']+'\x22\x20title=\x22'+_0x5a834b['title']+'\x22></span>'),_0x29c00f;}function nn(_0x452f9a){const _0x4c750c=document['createElement']('span');return _0x4c750c['innerText']=_0x452f9a,_0x4c750c['innerHTML'];}function ts(_0x2cbad2){return _0x2cbad2['sort']((_0x3722e9,_0x2d2758)=>'deletion'==_0x3722e9['type']&&'deletion'!=_0x2d2758['type']?-0x1:'deletion'!=_0x3722e9['type']&&'deletion'==_0x2d2758['type']?0x1:0x0);}function to(_0x4f7230,_0x17467d){let _0x4600c4,_0x5c4d84=0x0;const _0x527e87=[],_0x5c6e8c=_0x17467d['schema'];for(;_0x5c4d84<_0x4f7230['length'];){const _0x33690b=_0x4f7230[_0x5c4d84],_0x16ed86=_0x4f7230[_0x5c4d84+0x1];_0x4600c4||(_0x4600c4=_0x17467d['createPositionBefore'](_0x33690b)),on(_0x17467d,_0x33690b,_0x16ed86)||(_0x527e87['push'](_0x17467d['createRange'](_0x4600c4,_0x5c6e8c['isObject'](_0x33690b)?_0x17467d['createPositionAfter'](_0x33690b):_0x17467d['createPositionAt'](_0x33690b,'end'))),_0x4600c4=null),_0x5c4d84++;}return _0x527e87;}function on(_0xda378a,_0x2e7ba9,_0x580408){if(!_0x580408)return!0x1;const _0x4638ba=_0xda378a['createPositionAfter'](_0x2e7ba9),_0x363934=_0xda378a['createPositionBefore'](_0x580408);return _0x4638ba['isTouching'](_0x363934);}function rs(_0x49961a,_0x18c92e,_0x531569){for(;_0x531569['length'];){const _0x2717fd=_0x531569['splice'](0x0,0x64);_0x49961a['change'](()=>{for(const _0x820e67 of _0x2717fd)_0x820e67['isInContent']&&_0x18c92e['execute'](_0x820e67['id']);});}}class R extends _0x4c839a{['_command'];['_suggestions'];constructor(_0x5b0c64,_0x4abda4,_0x4cdd38){super(_0x5b0c64),this['_command']=_0x4abda4,this['_suggestions']=_0x4cdd38,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3161ae=Array['from'](this['_suggestions']['values']())['some'](_0x188f14=>_0x188f14['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3161ae;}['execute'](){const _0xd82326=ts(Array['from'](this['_suggestions']['values']()));for(const _0x592d75 of _0xd82326){const _0x236877=_0x592d75['getRanges']();if(!this['editor']['model']['canEditAt'](_0x236877))return;}rs(this['editor']['model'],this['_command'],_0xd82326);}}class E extends _0x4c839a{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xf9d320,_0x3104b8,_0x275ed9){super(_0xf9d320),this['_command']=_0x3104b8,this['_suggestions']=_0x275ed9,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x589a08=this['editor']['model']['document']['selection'],_0x47778d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3b783e,_0x45d1a9){const _0x3b33e0=Array['from'](_0x3b783e['getRanges']()),_0x4d5943=new Set();for(const _0x1fad90 of _0x45d1a9)if(_0x1fad90['isInContent']){for(const _0x4c88f4 of _0x3b33e0)for(const _0x3d9a1e of _0x1fad90['getRanges']())(_0x4c88f4['isIntersecting'](_0x3d9a1e)||_0x3b783e['isCollapsed']&&!_0x1fad90['isMultiRange']&&_0x1fad90['next']&&_0x3d9a1e['end']['isTouching'](_0x4c88f4['start']))&&_0x4d5943['add'](_0x1fad90);}return _0x4d5943;}(_0x589a08,_0x47778d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x39dc78=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3d0a31 of _0x39dc78){const _0x3e06e5=_0x3d0a31['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3e06e5))return;}rs(this['editor']['model'],this['_command'],_0x39dc78);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x56e37d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x231463,_0x353135){super(),this['id']=_0x353135['id'],this['type']=_0x353135['type'],this['subType']=_0x353135['subType']||null,this['author']=_0x353135['author'],this['creator']=_0x353135['creator']||_0x353135['author'],this['isExternal']=Boolean(_0x353135['attributes']&&_0x353135['attributes']['@external']),this['data']=null,this['_model']=_0x231463,this['_onAccept']=_0x353135['onAccept'],this['_onDiscard']=_0x353135['onDiscard'],this['_onAttributesChange']=_0x353135['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x353135['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 _0x26dee6=this;for(;_0x26dee6['previous'];)_0x26dee6=_0x26dee6['previous'];return _0x26dee6;}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'](_0x285554){this['_markerNames']['add'](_0x285554);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x524e93=>this['_model']['markers']['get'](_0x524e93))['filter'](_0x4e99c8=>_0x4e99c8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xea9a12=>{for(const _0x58bd3e of this['getMarkers']())_0xea9a12['removeMarker'](_0x58bd3e);}),this['_markerNames']['clear']();}['removeMarker'](_0x43e652){this['_model']['change'](_0x3198f3=>{_0x3198f3['removeMarker'](_0x43e652);}),this['_markerNames']['delete'](_0x43e652);}['addRange'](_0x36350f){const _0x573230='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x573230),this['_model']['change'](_0xc2b3c9=>{_0xc2b3c9['addMarker'](_0x573230,{'range':_0x36350f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2040aa){for(const _0x3c1b9d of this['getRanges']())if(_0x3c1b9d['isIntersecting'](_0x2040aa))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5ac6e1=>_0x5ac6e1['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x39100a,_0x15efee)=>[..._0x39100a,..._0x15efee['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x17a782=this['getRanges']();if(0x1!=_0x17a782['length'])return null;const _0x102b36=_0x17a782[0x0],_0xc4a768=_0x102b36['start']['nodeAfter'],_0x5a6fca=_0x102b36['end']['nodeBefore'];return _0xc4a768 instanceof _0x56ddd6?_0xc4a768!=_0x5a6fca?null:_0xc4a768: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 _0x1b42f9=[];let _0x140edf=this['head'];for(;_0x140edf;)_0x1b42f9['push'](_0x140edf),_0x140edf=_0x140edf['next'];return _0x1b42f9;}['setAttribute'](_0x236271,_0x5e07b2){const _0x7befb=_0x1bd92b(this['attributes']);_0x346377(_0x7befb,_0x236271,_0x5e07b2),_0x1daf30(_0x7befb,this['attributes'])||(this['attributes']=_0x7befb,this['_onAttributesChange'](_0x7befb));}['removeAttribute'](_0x1b704a){const _0x418157=_0x1bd92b(this['attributes']);_0x4d7ad8(_0x418157,_0x1b704a),_0x1daf30(_0x418157,this['attributes'])||(this['attributes']=_0x418157,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 _0x2be420()['substr'](0x1,0x5);}}function c(_0x3b0ddf,_0x4fb3f8,_0x27bc39){const _0x54585c=_0x3b0ddf['t'],t=_0x3b0ddf['t'];switch(_0x4fb3f8){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',_0x27bc39);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x27bc39);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x27bc39);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x27bc39);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x27bc39);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',_0x27bc39);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x27bc39);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',_0x27bc39);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x27bc39);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x27bc39);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x27bc39);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x27bc39);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x27bc39);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x27bc39);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x27bc39);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x27bc39);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x27bc39);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x27bc39);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x27bc39);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x27bc39);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x27bc39);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x27bc39);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x27bc39);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x27bc39);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x27bc39);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'},_0x27bc39);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x27bc39);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x27bc39);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x27bc39);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x27bc39);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x27bc39);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x27bc39);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x27bc39);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'},_0x27bc39);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x27bc39);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x27bc39);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x27bc39);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x27bc39);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'},_0x27bc39);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x27bc39);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'},_0x27bc39);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'},_0x27bc39);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x27bc39);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'},_0x27bc39);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x27bc39);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'},_0x27bc39);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x27bc39);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x27bc39);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'},_0x27bc39);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x27bc39);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 _0x54585c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x27bc39);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x54585c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x27bc39);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x27bc39);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'},_0x27bc39);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'},_0x27bc39);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'},_0x27bc39);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4fb3f8;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x90aea,_0x276f34){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x90aea,this['_locale']=_0x276f34;}['getDescriptions'](_0x329b9d){const _0x3c4588=[],_0x1f792e=new Set(),_0x532769=new Set();for(let _0x303181=0x0;_0x303181<_0x329b9d['length'];_0x303181++){const _0x6ba0f1=_0x329b9d[_0x303181];if(!_0x6ba0f1['isInContent'])continue;const _0x57791d=this['_handleCustomCallbackDescription'](_0x6ba0f1);if(_0x57791d){if(null!=_0x6ba0f1['subType']){if(_0x1f792e['has'](_0x6ba0f1['subType']))continue;_0x1f792e['add'](_0x6ba0f1['subType']);}_0x3c4588['push'](_0x57791d);}else{if('attribute'!=_0x6ba0f1['type'])'insertion'!=_0x6ba0f1['type']&&'deletion'!=_0x6ba0f1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3c4588,_0x6ba0f1,_0x329b9d[_0x303181+0x1]);else{const _0x5cdeaf=_0x6ba0f1['data']['key'];if(_0x532769['has'](_0x5cdeaf))continue;_0x532769['add'](_0x6ba0f1['data']['key']),_0x5cdeaf==u?this['_handleRenameSuggestionDescription'](_0x3c4588,_0x6ba0f1):this['_handleAttributeSuggestionDescription'](_0x3c4588,_0x6ba0f1);}}}return this['_resolveDescriptionItems'](_0x3c4588);}['registerDescriptionCallback'](_0x4db0ec){this['_customCallbacks']['push'](_0x4db0ec);}['registerElementLabel'](_0x11ef8c,_0x3f346f,_0x3163d3=_0x57b8ca['normal']){'function'==typeof _0x11ef8c?_0x4dc59b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x11ef8c,'label':_0x3f346f,'priority':_0x3163d3}):this['_itemLabels']['set'](_0x11ef8c,_0x3f346f);}['registerAttributeLabel'](_0x144e96,_0x2fb276){this['_attributeLabels']['set'](_0x144e96,_0x2fb276);}['getItemLabel'](_0x5ddb25,_0x55f686=0x1){let _0x4ee901;for(const _0x311f9c of this['_itemLabelsCallbacks'])if(_0x311f9c['matchingCallback'](_0x5ddb25)){_0x4ee901=_0x311f9c['label'];break;}return _0x4ee901||(_0x4ee901=this['_itemLabels']['get'](_0x5ddb25['name'])),_0x4ee901?_0x4ee901(_0x55f686):0x1!==_0x55f686?_0x55f686+'\x20'+_0x5ddb25['name']+'s':''+_0x5ddb25['name'];}['_addDescriptionItems'](_0x209862,_0x1c277d){const _0x3d8585=_0x1c277d['getFirstRange']()['getWalker'](),_0x1b3c4b='insertion'==_0x1c277d['type']?'add':'remove';for(const _0x382f17 of _0x3d8585){const _0x28842e=_0x382f17['item'],_0x358934=_0x209862[_0x209862['length']-0x1];if(_0x28842e['is']('$textProxy'))_0x358934&&_0x358934['type']['indexOf']('Container')>-0x1&&_0x209862['pop'](),_0x358934&&'text'==_0x358934['type']?_0x358934[_0x1b3c4b]+=_0x28842e['data']:_0x209862['push']({'type':'text','add':'add'==_0x1b3c4b?_0x28842e['data']:'','remove':'remove'==_0x1b3c4b?_0x28842e['data']:''});else{if(this['_schema']['isObject'](_0x28842e)){const _0x25a6ac=_0x28842e;if(_0x358934&&_0x358934['type']['indexOf']('Container')>-0x1&&_0x209862['pop'](),'elementEnd'==_0x382f17['type'])continue;_0x358934&&_0x358934['type']==_0x1b3c4b+'Object'&&_0x358934['element']['name']==_0x25a6ac['name']?_0x358934['quantity']++:_0x209862['push']({'type':_0x1b3c4b+'Object','element':_0x25a6ac,'quantity':0x1}),_0x3d8585['skip'](_0x5e6d11=>!('elementEnd'==_0x5e6d11['type']&&_0x5e6d11['item']==_0x28842e));}else{if(this['_schema']['checkChild'](_0x28842e,'$text')||_0x28842e['is']('element','softBreak')){const _0x45c0f3=_0x28842e;if('add'==_0x1b3c4b&&'elementStart'==_0x382f17['type']||'remove'==_0x1b3c4b&&'elementEnd'==_0x382f17['type'])continue;if(_0x358934&&-0x1==_0x358934['type']['indexOf']('Container')){'text'==_0x358934['type']&&(_0x358934[_0x1b3c4b]+='\x0a');continue;}let _0x14f282;if(_0x14f282='add'==_0x1b3c4b?_0x45c0f3['nextSibling']&&!this['_schema']['isObject'](_0x45c0f3['nextSibling'])?_0x45c0f3['nextSibling']:null:_0x45c0f3['previousSibling']&&!this['_schema']['isObject'](_0x45c0f3['previousSibling'])?_0x45c0f3['previousSibling']:null,_0x45c0f3['isEmpty']||_0x14f282&&_0x14f282['isEmpty']){const _0x4585db=_0x14f282&&_0x14f282['isEmpty']?_0x14f282:_0x45c0f3;_0x358934&&_0x358934['type']==_0x1b3c4b+'EmptyContainer'&&_0x358934['element']['name']==_0x4585db['name']?_0x358934['quantity']++:_0x209862['push']({'type':_0x1b3c4b+'EmptyContainer','element':_0x4585db,'quantity':0x1});}else _0x209862['push']({'type':_0x1b3c4b+'Container','element':_0x45c0f3});}}}}}['_resolveDescriptionItems'](_0x4e01f7){const _0xcfe208=this['_locale'],_0x4297e2=[],_0x14c4cc=[],_0x431187=[];for(const _0xabfc09 of _0x4e01f7)switch(_0xabfc09['type']){case'text':if(_0xabfc09['add']=_0xabfc09['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xabfc09['remove']=_0xabfc09['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xabfc09['add']&&''!=_0xabfc09['remove']){_0x4297e2['push']({'type':'replace','content':c(_0xcfe208,'REPLACE_TEXT',['\x22'+_0xabfc09['remove']+'\x22','\x22'+_0xabfc09['add']+'\x22'])});continue;}if(null!=_0xabfc09['add']['match'](/^ +$/)){_0x4297e2['push']({'type':'insertion','content':c(_0xcfe208,'*Insert:*\x20%0',c(_0xcfe208,'ELEMENT_SPACE',_0xabfc09['add']['length']))});continue;}if(null!=_0xabfc09['remove']['match'](/^ +$/)){_0x4297e2['push']({'type':'deletion','content':c(_0xcfe208,'*Remove:*\x20%0',c(_0xcfe208,'ELEMENT_SPACE',_0xabfc09['remove']['length']))});continue;}if(''!=_0xabfc09['add']){_0x4297e2['push']({'type':'insertion','content':c(_0xcfe208,'*Insert:*\x20%0','\x22'+_0xabfc09['add']+'\x22')});continue;}_0x4297e2['push']({'type':'deletion','content':c(_0xcfe208,'*Remove:*\x20%0','\x22'+_0xabfc09['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4297e2['push']({'type':'insertion','content':c(_0xcfe208,'*Insert:*\x20%0',this['getItemLabel'](_0xabfc09['element'],_0xabfc09['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4297e2['push']({'type':'deletion','content':c(_0xcfe208,'*Remove:*\x20%0',this['getItemLabel'](_0xabfc09['element'],_0xabfc09['quantity']))});continue;case'addContainer':_0x4297e2['push']({'type':'insertion','content':c(_0xcfe208,'*Split:*\x20%0',this['getItemLabel'](_0xabfc09['element'],_0xabfc09['quantity']))});continue;case'removeContainer':_0x4297e2['push']({'type':'deletion','content':c(_0xcfe208,'*Merge:*\x20%0',this['getItemLabel'](_0xabfc09['element'],_0xabfc09['quantity']))});continue;case'addFormat':_0x14c4cc['push'](_0xabfc09['key']);continue;case'removeFormat':_0x431187['push'](_0xabfc09['key']);continue;default:_0x4297e2['push'](_0xabfc09);}if(_0x14c4cc['length']){const _0x46202e=_0x14c4cc['map'](_0x26c05c=>this['_attributeLabels']['has'](_0x26c05c)?this['_attributeLabels']['get'](_0x26c05c):_0x26c05c)['join'](',\x20');_0x4297e2['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x46202e)});}if(_0x431187['length']){const _0x5bea8e=_0x431187['map'](_0x3bdea4=>this['_attributeLabels']['has'](_0x3bdea4)?this['_attributeLabels']['get'](_0x3bdea4):_0x3bdea4)['join'](',\x20');_0x4297e2['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x5bea8e)});}return _0x4297e2;}['_handleCustomCallbackDescription'](_0x1495f5){for(const _0x4d0378 of this['_customCallbacks']){const _0xa5bec8=_0x4d0378(_0x1495f5);if(_0xa5bec8&&'type'in _0xa5bec8)return _0xa5bec8;}}['_handleAttributeSuggestionDescription'](_0x2be612,_0x1020db){const _0x2bc0d5=_0x1020db['data'],_0x12e73b=void 0x0===_0x2bc0d5['newValue']?'removeFormat':'addFormat';_0x2be612['push']({'type':_0x12e73b,'key':_0x2bc0d5['key']});}['_handleRenameSuggestionDescription'](_0x497fa2,_0x1fbb43){_0x497fa2['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1fbb43['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x317eca,_0x318c4f,_0x2ce962){if(this['_addDescriptionItems'](_0x317eca,_0x318c4f),_0x2ce962&&_0x2ce962['getFirstRange']()&&!_0x318c4f['getFirstRange']()['end']['isEqual'](_0x2ce962['getFirstRange']()['start'])){const _0x2b757e=_0x317eca[_0x317eca['length']-0x1],_0xc1c51d='insertion'==_0x318c4f['type']?'add':'remove';_0x2b757e&&'text'==_0x2b757e['type']&&(_0x2b757e[_0xc1c51d]+='\x0a');}}}class U extends _0x5be5ff{['afterInit'](){const _0x3d7715=this['editor'],_0x28bbd0=_0x3d7715['plugins']['get']('TrackChangesEditing');_0x3d7715['commands']['get']('showAIAssistant')&&_0x28bbd0['enableCommand']('showAIAssistant');}}class V extends _0x5be5ff{['afterInit'](){const _0x538e42=this['editor'],_0x1bc2f3=_0x538e42['locale'];if(!_0x538e42['plugins']['has']('AlignmentEditing'))return;const _0x3b6ffd=_0x538e42['plugins']['get']('TrackChangesEditing');_0x3b6ffd['enableDefaultAttributesIntegration']('alignment'),_0x3b6ffd['registerBlockAttribute']('alignment'),_0x3b6ffd['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x1bc2f3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23a85a=this['editor'],_0xc5e50d=_0x23a85a['locale'];_0x23a85a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23e9ba=>{if('formatBlock'!=_0x23e9ba['type'])return;const {data:_0x214a7b}=_0x23e9ba;if(_0x214a7b&&'alignment'==_0x214a7b['commandName']){const _0x51e2bb=_0x214a7b['commandParams'][0x0]['value'];return{'type':'format','content':c(_0xc5e50d,'*Format:*\x20%0',function(_0x302c31){switch(_0x302c31){case'left':return c(_0xc5e50d,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0xc5e50d,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0xc5e50d,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0xc5e50d,'FORMAT_JUSTIFY_TEXT');}}(_0x51e2bb))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x5be5ff{['afterInit'](){const _0x3a9f59=this['editor'],_0x3b86c7=_0x3a9f59['plugins']['get']('TrackChangesEditing'),_0x544e68=_0x3a9f59['locale'];for(const _0x2ca4fe of Zt){if(!_0x3a9f59['plugins']['has'](_0x2ca4fe))continue;const _0x393a19=_0x2ca4fe['slice'](0x0,-0x7)['toLowerCase'](),_0x3b1713='FORMAT_'+_0x393a19['toUpperCase']();_0x3b86c7['enableDefaultAttributesIntegration'](_0x393a19),_0x3b86c7['registerInlineAttribute'](_0x393a19),_0x3b86c7['descriptionFactory']['registerAttributeLabel'](_0x393a19,c(_0x544e68,_0x3b1713));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ddc98=this['editor'],_0x1ac495=_0x5ddc98['locale'],_0x5343de=_0x5ddc98['plugins']['get']('TrackChangesEditing');function _0x5f5b5f(_0x313ae1,_0x26271f){_0x5343de['descriptionFactory']['registerDescriptionCallback'](_0x5223eb=>{if('formatInline'!=_0x5223eb['type'])return;const {data:_0x2db506}=_0x5223eb;return _0x2db506&&_0x2db506['commandName']===_0x313ae1?_0x2db506['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1ac495,'*Format:*\x20%0',_0x26271f)}:{'type':'format','content':c(_0x1ac495,'*Remove\x20format:*\x20%0',_0x26271f)}:void 0x0;});}_0x5f5b5f('bold',c(_0x1ac495,'FORMAT_BOLD')),_0x5f5b5f('italic',c(_0x1ac495,'FORMAT_ITALIC')),_0x5f5b5f('underline',c(_0x1ac495,'FORMAT_UNDERLINE')),_0x5f5b5f('code',c(_0x1ac495,'FORMAT_CODE')),_0x5f5b5f('strikethrough',c(_0x1ac495,'FORMAT_STRIKETHROUGH')),_0x5f5b5f('subscript',c(_0x1ac495,'FORMAT_SUBSCRIPT')),_0x5f5b5f('superscript',c(_0x1ac495,'FORMAT_SUPERSCRIPT'));}}class G extends _0x5be5ff{['afterInit'](){const _0x3d31aa=this['editor'],_0x2fb096=_0x3d31aa['locale'];if(!_0x3d31aa['plugins']['has']('BlockQuoteEditing'))return;const _0x4ca1a4=_0x3d31aa['plugins']['get']('TrackChangesEditing'),_0xdcaf56=this['editor']['commands']['get']('blockQuote');_0x4ca1a4['enableCommand']('blockQuote',(_0x931bd8,_0x49f1dc={})=>{const _0xa15dc6=this['editor']['model']['document']['selection'],_0x1e09d3=_0x49f1dc&&void 0x0!==_0x49f1dc['forceValue']?_0x49f1dc['forceValue']:!_0xdcaf56['value'];let _0x13cf10=[];if(_0x1e09d3){const _0x37f375=Array['from'](_0xa15dc6['getSelectedBlocks']())['filter'](_0x19b941=>oo(_0x19b941)||function(_0x4bccf0,_0x57f148){const _0x8d7a04=_0x57f148['checkChild'](_0x4bccf0['parent'],'blockQuote'),_0x16dd58=_0x57f148['checkChild'](['$root','blockQuote'],_0x4bccf0);return _0x8d7a04&&_0x16dd58;}(_0x19b941,this['editor']['model']['schema']));_0x13cf10=to(_0x37f375,_0x3d31aa['model']);}else{const _0x256de0=Array['from'](_0xa15dc6['getSelectedBlocks']())['filter'](_0x328217=>oo(_0x328217));_0x13cf10=to(_0x256de0,_0x3d31aa['model']);}_0x3d31aa['model']['change'](()=>{for(const _0xce7666 of _0x13cf10)_0x4ca1a4['markBlockFormat'](_0xce7666,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1e09d3}]});});}),_0x4ca1a4['descriptionFactory']['registerDescriptionCallback'](_0xd73a41=>{const {data:_0x1a27a2}=_0xd73a41;if(_0x1a27a2&&'blockQuote'==_0x1a27a2['commandName']){const _0x1aebaf=c(_0x2fb096,'ELEMENT_BLOCK_QUOTE');return _0x1a27a2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2fb096,'*Set\x20format:*\x20%0',_0x1aebaf)}:{'type':'format','content':c(_0x2fb096,'*Remove\x20format:*\x20%0',_0x1aebaf)};}});}}function oo(_0x69eaed){return'blockQuote'==_0x69eaed['parent']['name'];}class L extends _0x5be5ff{['afterInit'](){const _0x2848a6=this['editor'],_0x8c61fe=_0x2848a6['locale'],_0x4e8153=_0x2848a6['plugins']['get']('TrackChangesEditing');_0x2848a6['plugins']['has']('BookmarkEditing')&&(_0x4e8153['enableCommand']('insertBookmark'),_0x4e8153['enableDefaultAttributesIntegration']('updateBookmark'),_0x4e8153['registerBlockAttribute']('bookmarkId'),_0x4e8153['descriptionFactory']['registerDescriptionCallback'](_0x241f24=>{if('insertion'!=_0x241f24['type']&&'deletion'!=_0x241f24['type']&&'attribute'!=_0x241f24['type'])return;const _0x2df8ef=_0x241f24['getContainedElement']();if(null==_0x2df8ef)return;if(!_0x2df8ef['is']('element','bookmark'))return;const _0x28c338=_0x2df8ef['getAttribute']('bookmarkId');if('insertion'==_0x241f24['type'])return{'type':'insertion','content':c(_0x8c61fe,'*Insert:*\x20%0','\x22'+_0x28c338+'\x22\x20'+c(_0x8c61fe,'ELEMENT_BOOKMARK'))};if('deletion'==_0x241f24['type'])return{'type':'deletion','content':c(_0x8c61fe,'*Remove:*\x20%0','\x22'+_0x28c338+'\x22\x20'+c(_0x8c61fe,'ELEMENT_BOOKMARK'))};const {data:_0x11831d}=_0x241f24;if(!_0x11831d||'bookmarkId'!=_0x11831d['key'])return;return{'type':'format','content':c(_0x8c61fe,'*Set\x20bookmark:*\x20%0','\x22'+_0x11831d['newValue']+'\x22')};}));}}class J extends _0x5be5ff{['afterInit'](){const _0x254538=this['editor'];_0x254538['plugins']['has']('CaseChange')&&(_0x254538['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x254538['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x254538['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x5be5ff{['afterInit'](){const _0x37b94a=this['editor'];_0x37b94a['commands']['get']('ckbox')&&_0x37b94a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x5be5ff{['afterInit'](){const _0x3b1074=this['editor'];if(!_0x3b1074['plugins']['has']('CodeBlock'))return;const _0x168e36=_0x3b1074['plugins']['get']('TrackChangesEditing'),_0x320a40=_0x3b1074['locale'],_0x294341=_0x3b1074['config']['get']('codeBlock')['languages'],_0x5bad11=_0x3b1074['commands']['get']('codeBlock');_0x168e36['enableCommand']('indentCodeBlock'),_0x168e36['enableCommand']('outdentCodeBlock'),_0x168e36['enableCommand']('codeBlock',(_0x41ba3f,_0x4f471f={})=>{const _0x1095ba=_0x3b1074['model'],_0x126b23=_0x3b1074['model']['document']['selection'],_0x2029c3=_0x4f471f&&void 0x0!==_0x4f471f['forceValue']?_0x4f471f['forceValue']:!_0x5bad11['value'];let _0xc3263e;_0x4f471f['language']||(_0x4f471f['language']=_0x294341[0x0]['language']),_0xc3263e=_0x2029c3?Array['from'](_0x126b23['getSelectedBlocks']())['filter'](_0x19a41d=>eo(_0x19a41d)||function(_0x1492c0,_0x4d667d){if(_0x1492c0['is']('rootElement')||_0x4d667d['isLimit'](_0x1492c0))return!0x1;return _0x4d667d['checkChild'](_0x1492c0['parent'],'codeBlock');}(_0x19a41d,_0x1095ba['schema'])):Array['from'](_0x126b23['getSelectedBlocks']())['filter'](_0x3cf513=>eo(_0x3cf513));const _0x3e496a=to(_0xc3263e,_0x1095ba);_0x1095ba['change'](()=>{for(const _0x19b803 of _0x3e496a)_0x168e36['markBlockFormat'](_0x19b803,{'commandName':'codeBlock','commandParams':[{..._0x4f471f,'forceValue':_0x2029c3}],'formatGroupId':'blockName'});});}),(_0x168e36['descriptionFactory']['registerElementLabel']('codeBlock',_0x29e182=>c(_0x320a40,'ELEMENT_CODE_BLOCK',_0x29e182)),_0x168e36['descriptionFactory']['registerDescriptionCallback'](_0x450f0a=>{if('formatBlock'!=_0x450f0a['type'])return;const _0x39755f=_0x320a40['t'],{data:_0x1341d4}=_0x450f0a;if(!_0x1341d4||'codeBlock'!=_0x1341d4['commandName'])return;const _0x85c64=_0x1341d4['commandParams'][0x0]['language'],_0xae0eeb=_0x39755f(_0x294341['find'](_0x3f4be0=>_0x3f4be0['language']===_0x85c64)['label'])['toLowerCase']();return _0x1341d4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x320a40,'*Set\x20format:*\x20%0',c(_0x320a40,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xae0eeb+')')}:{'type':'format','content':c(_0x320a40,'*Remove\x20format:*\x20%0',c(_0x320a40,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2b6eb5){return'codeBlock'==_0x2b6eb5['name'];}class q extends _0x5be5ff{['afterInit'](){const _0x1896e4=this['editor'];if(!_0x1896e4['plugins']['has']('CommentsEditing'))return;_0x1896e4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x22d32c,_0xff83c7,_0x53a127){const _0x11e28b=[];for(const _0x4e2b29 of _0xff83c7['getItems']())_0x4e2b29['hasAttribute'](_0x22d32c)&&_0x11e28b['push'](_0x53a127['createRangeOn'](_0x4e2b29));return _0x11e28b;}function Fe(_0x5086ba,_0x4ceab7,{showActiveMarker:_0x2c38f3=!0x0}={}){const _0x439261=_0x5086ba['plugins']['get']('TrackChangesEditing');return(_0x528a81,_0x43062c,_0x3fa8d9)=>{if(!_0x3fa8d9['consumable']['test'](_0x43062c['markerRange'],_0x528a81['name']))return;const _0x331ff5=_0x43062c['markerRange']['getWalker'](),_0x23b748=_0x43062c['markerRange']['start'],_0x3408de=_0x5086ba['model']['schema'];let _0x279e72=null,_0x5e3a41=null,_0x501085=!0x1,_0x57eab8=!0x1;for(const _0x395f6a of _0x331ff5){const _0x58d1ba=_0x395f6a['item'];_0x501085=_0x501085||_0x3408de['isContent'](_0x58d1ba);const _0x21b483=_0x3fa8d9['mapper']['toViewElement'](_0x58d1ba);if(_0x21b483&&_0x21b483['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x395f6a['type']&&(_0x3408de['isBlock'](_0x58d1ba)&&!_0x3408de['isLimit'](_0x58d1ba)&&(_0x58d1ba['nextSibling']||_0x23b748['isAtEnd']?_0x279e72&&_0x279e72['parent']==_0x58d1ba||(_0x279e72=_0x58d1ba,_0x324590(_0x395f6a['previousPosition']),_0x57eab8=!0x0):_0x5e3a41=_0x5e3a41||_0x395f6a['previousPosition']));}function _0x324590(_0x1ec82e){const {id:_0x2ca43f,authorId:_0x378d92}=_0x439261['_splitMarkerName'](_0x43062c['markerName']),_0x17c5ef=_0x3fa8d9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ceab7,'data-suggestion':_0x2ca43f,'data-author-id':_0x378d92}),_0x2823b7=_0x3fa8d9['mapper']['toViewPosition'](_0x1ec82e);_0x2c38f3&&_0x439261['activeMarkers']['includes'](_0x43062c['markerName'])&&_0x3fa8d9['writer']['addClass']('ck-suggestion-marker--active',_0x17c5ef),_0x3fa8d9['writer']['insert'](_0x2823b7,_0x17c5ef),_0x3fa8d9['mapper']['bindElementToMarker'](_0x17c5ef,_0x43062c['markerName']);}_0x501085||_0x57eab8||!_0x5e3a41||_0x324590(_0x5e3a41);};}class z extends _0x5be5ff{static get['requires'](){return[_0x8cc0f2];}['init'](){const _0x5e5355=this['editor'],_0x39ee42=_0x5e5355['plugins']['get']('TrackChangesEditing');_0x39ee42['enableCommand']('delete');const _0x14b778=_0x5e5355['commands']['get']('deleteForward');_0x39ee42['enableCommand']('deleteForward',(_0x1c3959,_0x377b40={})=>{const _0x3a4e91=_0x5e5355['model']['createSelection'](_0x5e5355['model']['document']['selection']);_0x3a4e91['isCollapsed']&&_0x5e5355['model']['modifySelection'](_0x3a4e91,{'direction':'forward','unit':_0x377b40['unit']});const _0x462b63=_0x3a4e91['getFirstRange'](),_0x393264=_0x33976f['fromRange'](_0x462b63);let _0x56a818;_0x1c3959(_0x377b40),_0x56a818='$graveyard'==_0x393264['root']['rootName']?_0x5e5355['model']['createRange'](_0x462b63['start']):_0x5e5355['model']['createRange'](_0x393264['start'],_0x393264['end']),_0x393264['detach'](),_0x5e5355['model']['enqueueChange'](_0x14b778['buffer']['batch'],_0x26b232=>{_0x14b778['buffer']['lock'](),_0x26b232['setSelection'](_0x26b232['createRange'](_0x56a818['end'])),_0x14b778['buffer']['unlock']();});}),_0x5e5355['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x5e5355,'merge'),{'priority':'high'}),_0x5e5355['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x162d06,_0x3d6f4d,_0x30e458)=>{_0x30e458['options']['showSuggestionHighlights']&&Fe(_0x5e5355,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x162d06,_0x3d6f4d,_0x30e458);},{'priority':'high'}),_0x5e5355['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1f4a4e,_0x588713,_0x5821e6)=>{const _0x2ddb0f=_0x5821e6['mapper']['markerNameToElements'](_0x588713['markerName']);if(_0x2ddb0f){for(const _0xd595ab of _0x2ddb0f)_0xd595ab['is']('uiElement')&&(_0x5821e6['mapper']['unbindElementFromMarkerName'](_0xd595ab,_0x588713['markerName']),_0x5821e6['writer']['remove'](_0xd595ab));}},{'priority':'high'});}}class W extends _0x5be5ff{['afterInit'](){const _0x31cd50=this['editor'];if(!_0x31cd50['plugins']['has']('ListEditing'))return;const _0x5329ee=_0x31cd50['locale'],_0xec29f0=_0x31cd50['plugins']['get']('TrackChangesEditing'),_0x263157=_0x31cd50['plugins']['has']('TodoListEditing'),_0x196582=!!_0x31cd50['config']['get']('list.multiBlock');function _0x5d5751(_0x162409){return{'type':'format','content':''+c(_0x5329ee,'*Set\x20format:*\x20%0',_0x162409)};}function _0x5df8bb(_0x331328){return{'type':'format','content':''+c(_0x5329ee,'*Remove\x20format:*\x20%0',_0x331328)};}_0xec29f0['enableDefaultAttributesIntegration']('numberedList'),_0xec29f0['enableDefaultAttributesIntegration']('bulletedList'),_0xec29f0['enableDefaultAttributesIntegration']('customNumberedList'),_0xec29f0['enableDefaultAttributesIntegration']('customBulletedList'),_0xec29f0['enableDefaultAttributesIntegration']('indentList'),_0xec29f0['enableDefaultAttributesIntegration']('outdentList'),_0xec29f0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xec29f0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xec29f0['registerBlockAttribute']('listItemId'),_0xec29f0['registerBlockAttribute']('listType'),_0xec29f0['registerBlockAttribute']('listIndent'),_0x196582&&(_0xec29f0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xec29f0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x263157&&(_0xec29f0['enableDefaultAttributesIntegration']('todoList'),_0xec29f0['enableDefaultAttributesIntegration']('checkTodoList'),_0xec29f0['registerBlockAttribute']('todoListChecked'),_0xec29f0['descriptionFactory']['registerDescriptionCallback'](_0x565485=>{const {data:_0xec4e5c}=_0x565485;if(_0xec4e5c&&'todoListChecked'==_0xec4e5c['key'])return{'type':'format','content':_0xec4e5c['newValue']?c(_0x5329ee,'*Check\x20item*'):c(_0x5329ee,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x205bfc=>{if(_0x205bfc['batch']['isUndo'])return!0x1;let _0x3a9189=!0x1;const _0x5c1cab=_0xec29f0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d3dc4=>'todoListChecked'===_0xec29f0['_getAttributeKey'](_0x1d3dc4));for(const _0x48f1df of _0x5c1cab){'todo'!=_0x48f1df['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xec29f0['_findSuggestions'](_0x48f1df['getFirstRange'](),'attribute')['find'](_0x26db30=>'listType'===_0xec29f0['_getAttributeKey'](_0x26db30['suggestion']))||(_0x205bfc['removeMarker'](_0x48f1df['getFirstMarker']()),_0x3a9189=!0x0));}return _0x3a9189;})),_0xec29f0['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x5329ee,'FORMAT_INDENT'));const _0x413985={'type':'format','content':''};_0xec29f0['descriptionFactory']['registerDescriptionCallback'](_0x56e0d7=>{const {data:_0x2ba92c}=_0x56e0d7;if(!_0x2ba92c||'listType'!=_0x2ba92c['key'])return;let _0x3535eb=_0x56e0d7['head'];for(;_0x3535eb;){if(_0x3535eb['data']&&(('listStyle'==_0x3535eb['data']['key']||'listMarkerStyle'==_0x3535eb['data']['key'])&&(_0x3535eb['data']['newValue']&&'default'!=_0x3535eb['data']['newValue']||'default'!=_0x3535eb['data']['oldValue']&&!_0x2ba92c['newValue'])||!_0x196582&&_0x3535eb['data']['key']==u))return _0x413985;_0x3535eb=_0x3535eb['next'];}if(null==_0x2ba92c['newValue'])switch(_0x2ba92c['oldValue']){case'bulleted':return _0x5df8bb(c(_0x5329ee,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5df8bb(c(_0x5329ee,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5df8bb(c(_0x5329ee,'ELEMENT_TODO_LIST'));}switch(_0x2ba92c['newValue']){case'bulleted':return _0x5d5751(c(_0x5329ee,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5d5751(c(_0x5329ee,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5d5751(c(_0x5329ee,'ELEMENT_TODO_LIST'));}}),_0xec29f0['descriptionFactory']['registerDescriptionCallback'](_0xf85871=>{const {data:_0x474370}=_0xf85871;if(_0x474370&&'listIndent'==_0x474370['key'])return null==_0x474370['newValue']||null==_0x474370['oldValue']&&0x0==_0x474370['newValue']?_0x413985:void 0x0;}),_0xec29f0['descriptionFactory']['registerDescriptionCallback'](_0x5ea21c=>{if('attribute'!=_0x5ea21c['type'])return;const {data:_0x2e7901}=_0x5ea21c;if(!_0x2e7901||'listItemId'!=_0x2e7901['key'])return;const _0x4e0dd2=Te(_0x5ea21c);return'newValue'==_0x4e0dd2?{'type':'format','content':c(_0x5329ee,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4e0dd2?{'type':'format','content':c(_0x5329ee,'*Split:*\x20list\x20item')}:_0x413985;}),_0x31cd50['model']['document']['registerPostFixer'](_0x384da1=>this['listItemIdFixer'](_0x384da1)),_0x31cd50['model']['document']['registerPostFixer'](_0x1568b0=>this['noTrackChangesFixer'](_0x1568b0)),_0x31cd50['model']['document']['on']('change:data',(_0x473130,_0x1c026d)=>{if(_0x1c026d['isUndo']||!_0x1c026d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x528627){if(_0x528627['batch']['isUndo']||!_0x528627['batch']['isLocal'])return!0x1;let _0x510558=!0x1;const _0x49ed44=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x459d8b=>_0x459d8b['data']&&'listItemId'==_0x459d8b['data']['key'])['filter'](_0xad6b8f=>_0xad6b8f['data']['newValue']&&_0xad6b8f['data']['oldValue']);for(const _0x4ef4d3 of _0x49ed44)Te(_0x4ef4d3)||(_0x528627['removeMarker'](_0x4ef4d3['getFirstMarker']()),_0x510558=!0x0);return _0x510558;}['noTrackChangesFixer'](_0x349f39){if(_0x349f39['batch']['isUndo']||!_0x349f39['batch']['isLocal'])return!0x1;const _0x456afb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x456afb['trackChangesCommand']['value'])return!0x1;let _0x55c86d=!0x1;const _0x5da319=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5e3679=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4d2839=>'attribute'==_0x4d2839['type'])['filter'](_0x384a97=>_0x5da319['includes'](_0x384a97['attributeKey']));if(0x0==_0x5e3679['length'])return _0x55c86d;for(const _0x38ec86 of _0x5e3679){const _0x17f2a2=_0x456afb['_findSuggestions'](_0x38ec86['range'],'attribute')['filter'](_0x18ddb2=>!_0x18ddb2['meta']['isNextTo'])['map'](_0x536dbd=>_0x536dbd['suggestion'])['filter'](_0x319208=>{const _0x3c325b=_0x456afb['_getAttributeKey'](_0x319208);return _0x5da319['includes'](_0x3c325b);});if(_0x17f2a2['length']){for(const _0xb3cd56 of _0x17f2a2)_0x349f39['removeMarker'](_0xb3cd56['getFirstMarker']());_0x55c86d=!0x0;}}return _0x55c86d;}['assureChains'](){const _0x2490f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0xef6db6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x557846;const _0x354c8e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x10265c=>{if(_0x10265c['data']['oldRange']||!_0x10265c['data']['newRange'])return null;if(!_0x10265c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4d9ba8}=_0x2490f6['_splitMarkerName'](_0x10265c['name']);if(!_0x2490f6['hasSuggestion'](_0x4d9ba8))return null;const _0xd6c0e2=_0x2490f6['getSuggestion'](_0x4d9ba8);return _0xef6db6['includes'](_0xd6c0e2['data']['key']);})['map'](_0x1e230d=>{const {id:_0x482d37}=_0x2490f6['_splitMarkerName'](_0x1e230d['name']),_0x567ec1=_0x2490f6['getSuggestion'](_0x482d37);return _0x557846=_0x567ec1['attributes']['groupId'],_0x567ec1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x354c8e['size'])return;const _0x5d4ae1=_0x2490f6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34314b=>'attribute'==_0x34314b['type']&&_0x34314b['data']&&_0xef6db6['includes'](_0x34314b['data']['key'])&&_0x34314b['attributes']['groupId']!=_0x557846)['map'](_0x30e157=>({'listItem':_0x30e157['getFirstRange']()['start']['nodeAfter'],'groupId':_0x30e157['attributes']['groupId']})),_0x453c6b=new Set();for(const {groupId:_0x5366e7,listItem:_0x9d71c0}of _0x5d4ae1)_0x354c8e['has'](_0x9d71c0)&&_0x453c6b['add'](_0x5366e7);for(const _0x4379bb of _0x2490f6['getSuggestions']())_0x453c6b['has'](_0x4379bb['attributes']['groupId'])&&_0x4379bb['setAttribute']('groupId',_0x557846);}['_supportLegacySuggestions'](){const _0x408093=this['editor'],_0x2abc9a=_0x408093['locale'],_0x12a67e=_0x408093['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x12a67e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5dc8ba,_0x39ffbe){const _0x51e6d0=[];for(let _0x4152bf of _0x5dc8ba)_0x4152bf['start']['nodeAfter']===_0x4152bf['end']['parent']&&(_0x4152bf=_0x408093['model']['createRange'](_0x408093['model']['createPositionAt'](_0x4152bf['start']['nodeAfter'],0x0))),_0x51e6d0['push'](_0x4152bf);_0x408093['model']['change'](_0x112c48=>{const _0x28ef21=_0x408093['model']['document']['selection'],_0x100d6b=Array['from'](_0x28ef21['getRanges']())['map'](_0x702cc7=>_0x33976f['fromRange'](_0x702cc7));_0x112c48['setSelection'](_0x51e6d0),_0x408093['commands']['get'](_0x39ffbe['commandName'])['refresh'](),_0x39ffbe['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x408093['execute'](_0x39ffbe['commandName'],..._0x39ffbe['commandParams']),_0x112c48['setSelection'](_0x100d6b);for(const _0x12f28 of _0x100d6b)_0x12f28['detach']();});}),_0x12a67e['descriptionFactory']['registerElementLabel'](function(_0x3f61a7){const _0x2c5e50=!_0x408093['model']['schema']['isObject'](_0x3f61a7),_0x461ab3=_0x3f61a7['previousSibling'],_0x12289c=_0x3f61a7['nextSibling'],_0x13411c=_0x3f61a7['getAttribute']('listItemId'),_0x1096ed=!_0x461ab3||_0x461ab3['getAttribute']('listItemId')!==_0x13411c,_0x49d6da=!_0x12289c||_0x12289c['getAttribute']('listItemId')!==_0x13411c;return _0x2c5e50&&Boolean(_0x13411c)&&_0x1096ed&&_0x49d6da;},_0x34567c=>c(_0x2abc9a,'ELEMENT_LIST_ITEM',_0x34567c));}['_registerLegacyDescription'](){const _0x3ca13a=this['editor'],_0x26180a=_0x3ca13a['locale'];function _0x1c1d3c(_0x1d23b){const _0xa3edf2=_0x3ca13a['commands']['get']('bulletedList')['value'],_0x4be376=_0x3ca13a['commands']['get']('numberedList')['value'];return'numberedList'===_0x1d23b?_0xa3edf2:_0x4be376;}_0x3ca13a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x103787){if('formatBlock'!=_0x103787['type'])return;const {data:_0x2cede2}=_0x103787;if(!_0x2cede2)return;let _0x1b0bc4,_0xb1b9,_0xda74f7,_0x17259f;switch(_0x2cede2['commandName']){case'bulletedList':_0xda74f7=_0x2cede2['commandParams'][0x0]['forceValue'],_0x17259f=_0x1c1d3c(_0x2cede2['commandName']),_0x1b0bc4=_0xda74f7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x17259f&&_0x3ca13a['config']['get']('list.multiBlock')||(_0x1b0bc4='*Change\x20to:*\x20%0'),_0xb1b9={'type':'format','content':c(_0x26180a,_0x1b0bc4,c(_0x26180a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xda74f7=_0x2cede2['commandParams'][0x0]['forceValue'],_0x17259f=_0x1c1d3c(_0x2cede2['commandName']),_0x1b0bc4=_0xda74f7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x17259f&&_0x3ca13a['config']['get']('list.multiBlock')||(_0x1b0bc4='*Change\x20to:*\x20%0'),_0xb1b9={'type':'format','content':c(_0x26180a,_0x1b0bc4,c(_0x26180a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1b0bc4='*Indent:*\x20%0',_0xb1b9={'type':'format','content':c(_0x26180a,_0x1b0bc4,c(_0x26180a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1b0bc4=function(_0x136dfc){const _0x17510e=_0x136dfc['getFirstRange']();let _0x401fa4=_0x17510e['start']['nodeAfter'];for(;_0x401fa4&&_0x17510e['containsItem'](_0x401fa4);){if(_0x401fa4['getAttribute']('listIndent')>0x0)return!0x1;_0x401fa4=_0x401fa4['nextSibling'];}return!0x0;}(_0x103787)?c(_0x26180a,'*Format:*\x20remove\x20from\x20%0',c(_0x26180a,function(_0xde3d5c){return'ELEMENT_'+_0xde3d5c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x103787))):c(_0x26180a,'*Outdent:*\x20%0',c(_0x26180a,'ELEMENT_LIST_ITEM')),_0xb1b9={'type':'format','content':_0x1b0bc4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2cede2['multipleBlocks']&&(_0x1b0bc4='*Merge:*\x20%0',_0xb1b9={'type':'deletion','content':c(_0x26180a,_0x1b0bc4,c(_0x26180a,'ELEMENT_LIST_ITEM'))});}return _0xb1b9;});}}function Te(_0x7e5132){let _0x104b40=_0x7e5132['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x104b40;){const _0xa6c7e=_0x104b40['getAttribute']('listItemId');if(!_0xa6c7e)return!0x1;if(_0xa6c7e==_0x7e5132['data']['newValue'])return'newValue';if(_0xa6c7e==_0x7e5132['data']['oldValue'])return'oldValue';_0x104b40=_0x104b40['previousSibling'];}return!0x1;}class Se extends _0x5be5ff{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x20f5df=this['editor']['config']['get']('list.properties'),_0x35f561=this['editor']['plugins']['get']('TrackChangesEditing');_0x20f5df['styles']&&(_0x35f561['enableDefaultAttributesIntegration']('listStyle'),_0x35f561['registerBlockAttribute']('listStyle')),_0x20f5df['reversed']&&(_0x35f561['enableDefaultAttributesIntegration']('listReversed'),_0x35f561['registerBlockAttribute']('listReversed')),_0x20f5df['startIndex']&&(_0x35f561['enableDefaultAttributesIntegration']('listStart'),_0x35f561['registerBlockAttribute']('listStart'));const _0x116ca5={'type':'format','content':''};_0x35f561['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1ba7da=this['editor']['locale'];_0x35f561['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x1ba7da,'FORMAT_LIST_REVERSED')),_0x35f561['descriptionFactory']['registerDescriptionCallback'](_0x872663=>{const {data:_0x5639d3}=_0x872663;if(_0x5639d3&&'listReversed'==_0x5639d3['key'])return null==_0x5639d3['newValue']||0x0==_0x5639d3['newValue']&&null==_0x5639d3['oldValue']?_0x116ca5:void 0x0;}),_0x35f561['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x1ba7da,'FORMAT_LIST_START')),_0x35f561['descriptionFactory']['registerDescriptionCallback'](_0x24f4cb=>{const {data:_0x162ab3}=_0x24f4cb;if(_0x162ab3&&'listStart'==_0x162ab3['key'])return null==_0x162ab3['newValue']||0x1==_0x162ab3['newValue']&&null==_0x162ab3['oldValue']?_0x116ca5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x242567=>{if(_0x242567['batch']['isUndo'])return!0x1;let _0x2934fe=!0x1;const _0x3626a8=_0x35f561['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x194230=>{const _0x5883b3=_0x35f561['_getAttributeKey'](_0x194230);return'listStart'==_0x5883b3||'listReversed'==_0x5883b3;});for(const _0x3d4814 of _0x3626a8){const _0x1d8552=_0x3d4814['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1d8552||'customNumbered'==_0x1d8552)continue;_0x35f561['_findSuggestions'](_0x3d4814['getFirstRange'](),'attribute')['find'](_0x462c40=>'listType'==_0x35f561['_getAttributeKey'](_0x462c40['suggestion']))||(_0x242567['removeMarker'](_0x3d4814['getFirstMarker']()),_0x2934fe=!0x0);}return _0x2934fe;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4f490b){const _0x50d5a4=this['editor']['locale'],{data:_0x2d46f6}=_0x4f490b,_0x462e1f={'type':'format','content':''};if(!_0x2d46f6||'listStyle'!=_0x2d46f6['key'])return;if(!_0x2d46f6['oldValue'])return'default'==_0x2d46f6['newValue']?_0x462e1f:{'type':'format','content':''+c(_0x50d5a4,'*Set\x20format:*\x20%0',c(_0x50d5a4,this['_getTranslationKeyForListStyle'](_0x2d46f6['newValue'])))};if(!_0x2d46f6['newValue']){if('default'==_0x2d46f6['oldValue'])return _0x462e1f;let _0x41ee17=_0x4f490b['head'];for(;_0x41ee17;){if(_0x41ee17['data']&&'listType'==_0x41ee17['data']['key']&&_0x41ee17['data']['newValue'])return _0x462e1f;_0x41ee17=_0x41ee17['next'];}return{'type':'format','content':''+c(_0x50d5a4,'*Remove\x20format:*\x20%0',c(_0x50d5a4,this['_getTranslationKeyForListStyle'](_0x2d46f6['oldValue'])))};}if('default'!=_0x2d46f6['newValue'])return{'type':'format','content':''+c(_0x50d5a4,'*Set\x20format:*\x20%0',c(_0x50d5a4,this['_getTranslationKeyForListStyle'](_0x2d46f6['newValue'])))};let _0x41b3c5=_0x4f490b['head'];for(;_0x41b3c5;){if(_0x41b3c5['data']&&'listType'==_0x41b3c5['data']['key']&&_0x41b3c5['data']['newValue']&&_0x41b3c5['data']['oldValue'])return _0x462e1f;_0x41b3c5=_0x41b3c5['next'];}return{'type':'format','content':c(_0x50d5a4,'*Set\x20format:*\x20%0',c(_0x50d5a4,'ELEMENT_'+_0x4f490b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x503a5a=this['editor'],_0x3121da=_0x503a5a['locale'];_0x503a5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34b425=>{if('formatBlock'!=_0x34b425['type'])return;const {data:_0x44b122}=_0x34b425;if(!_0x44b122)return;let _0x176999,_0x3606f0;switch(_0x44b122['commandName']){case'listStyle':_0x176999='*Change\x20to:*\x20%0',_0x3606f0={'type':'format','content':c(_0x3121da,_0x176999,c(_0x3121da,this['_getTranslationKeyForListStyle'](_0x44b122['commandParams'][0x0]['type'])))};break;case'listReversed':_0x176999=_0x44b122['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3606f0={'type':'format','content':c(_0x3121da,_0x176999)};break;case'listStart':_0x176999='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3606f0={'type':'format','content':c(_0x3121da,_0x176999,_0x44b122['commandParams'][0x0]['startIndex'])};}return _0x3606f0;});}['_getTranslationKeyForListStyle'](_0x3afb4a){return'ELEMENT_'+function(_0x4d1ef1){if(_e['includes'](_0x4d1ef1))return'bulleted';if(Re['includes'](_0x4d1ef1))return'numbered';return null;}(_0x3afb4a)['toUpperCase']()+'_LIST_'+_0x3afb4a['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5be5ff{['afterInit'](){const _0x1aa593=this['editor'];_0x1aa593['commands']['get']('emoji')&&_0x1aa593['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x5be5ff{static get['requires'](){return[_0x431703];}['init'](){const _0x296eff=this['editor'],_0x2094f5=_0x296eff['plugins']['get']('TrackChangesEditing'),_0x42a5d9=_0x296eff['commands']['get']('enter');_0x2094f5['enableCommand']('enter',()=>{_0x296eff['model']['change'](_0x633d24=>{const _0x20881b=_0x296eff['model']['document']['selection'],_0x3ff286=_0x20881b['getFirstPosition'](),_0x414ad6=_0x33976f['fromRange'](_0x20881b['getFirstRange']());if(_0x42a5d9['enterBlock'](_0x633d24)){const _0x500080=_0x296eff['model']['createPositionAt'](_0x3ff286['parent']['nextSibling'],0x0),_0x551527=_0x633d24['createRange'](_0x3ff286,_0x500080);_0x2094f5['markInsertion'](_0x551527);}else _0x633d24['setSelection'](_0x633d24['createRange'](_0x414ad6['end']));_0x414ad6['detach'](),_0x42a5d9['fire']('afterExecute',{'writer':_0x633d24});});}),_0x296eff['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x296eff,'split'),{'priority':'high'}),_0x296eff['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3721a5,_0x56cee1,_0x1ca280)=>{const _0x23ec67=_0x1ca280['mapper']['markerNameToElements'](_0x56cee1['markerName']);if(_0x23ec67){for(const _0x4a3ba5 of _0x23ec67)_0x4a3ba5['hasClass']('ck-suggestion-marker-split')&&(_0x1ca280['mapper']['unbindElementFromMarkerName'](_0x4a3ba5,_0x56cee1['markerName']),_0x1ca280['writer']['remove'](_0x4a3ba5));}},{'priority':'high'}),_0x296eff['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x91fbf3,_0x207657,_0x5a48cd)=>{_0x5a48cd['options']['showSuggestionHighlights']&&Fe(_0x296eff,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x91fbf3,_0x207657,_0x5a48cd);},{'priority':'high'});}}class Z extends _0x5be5ff{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x433e3a=this['editor']['plugins']['get']('TrackChangesEditing');_0x433e3a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x433e3a['enableCommand']('findNext'),_0x433e3a['enableCommand']('findPrevious'),_0x433e3a['enableCommand']('replace'),_0x433e3a['enableCommand']('replaceAll');}['handleFindCommand'](_0x46b4e6,_0x218546,_0x4fc883={}){const _0x1a03a0=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x46b4e6(_0x5dbe59=>{let _0xf9cfd9=('string'==typeof _0x218546?_0x1a03a0['findByTextCallback'](_0x218546,_0x4fc883):_0x218546)(_0x5dbe59);Array['isArray'](_0xf9cfd9)&&(_0xf9cfd9={'results':_0xf9cfd9,'searchText':'string'==typeof _0x218546?_0x218546:''});const _0x1885d7=_0xf9cfd9['results']['filter'](_0x489995=>!0x1===this['_isInDeletionRange'](_0x489995,_0x5dbe59['item']));return{..._0xf9cfd9,'results':_0x1885d7};},_0x4fc883);}['_isInDeletionRange'](_0x2c41e0,_0x5129c6){const _0x5bbc1b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5129c6,_0x2c41e0['start']),this['editor']['model']['createPositionAt'](_0x5129c6,_0x2c41e0['end']));for(const _0x477200 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5bbc1b['getIntersection'](_0x477200['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 _0x5be5ff{['afterInit'](){const _0x1a3af2=this['editor']['locale'],_0x16db7d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2a4360,commandName:_0x455102}of ro)this['editor']['plugins']['has'](_0x2a4360)&&(_0x16db7d['enableDefaultAttributesIntegration'](_0x455102),_0x16db7d['registerInlineAttribute'](_0x455102));_0x16db7d['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x1a3af2,'FORMAT_FONT_SIZE')),_0x16db7d['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x1a3af2,'FORMAT_FONT_FAMILY')),_0x16db7d['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x1a3af2,'FORMAT_FONT_COLOR')),_0x16db7d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x1a3af2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a5b36=this['editor'],_0x1c3c03=_0x4a5b36['locale'];_0x4a5b36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3975d6=>{const _0x1b1ff9=_0x1c3c03['t'];if('formatInline'!=_0x3975d6['type'])return;const {data:_0x22321c}=_0x3975d6;if(null!=_0x22321c){if('fontSize'==_0x22321c['commandName']){const _0x798bb=_0x22321c['commandParams'][0x0]['value'];if(_0x798bb){const _0x2c17f9=_0x1b1ff9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4a2f97=>_0x4a2f97['model']==_0x798bb)['title'])['toLowerCase']();return{'type':'format','content':c(_0x1c3c03,'*Set\x20font\x20size:*\x20%0',_0x2c17f9)};}return{'type':'format','content':c(_0x1c3c03,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x22321c['commandName']){const _0x4d0d7a=_0x22321c['commandParams'][0x0]['value'];return _0x4d0d7a?{'type':'format','content':c(_0x1c3c03,'*Set\x20font\x20family:*\x20%0',_0x4d0d7a)}:{'type':'format','content':c(_0x1c3c03,'*Reset\x20font\x20family*')};}if('fontColor'==_0x22321c['commandName']){const _0x7cb274=_0x22321c['commandParams'][0x0]['value'];if(_0x7cb274){const _0x47a5ff=_0x55577f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4f2361=>_0x4f2361['model']==_0x7cb274);let _0x1532f9=_0x7cb274,_0x581b6f='';return _0x47a5ff&&(_0x1532f9=_0x47a5ff['label'],_0x581b6f=_0x1b1ff9(_0x1532f9)['toLowerCase']()),{'type':'format','content':c(_0x1c3c03,'*Set\x20font\x20color:*\x20%0',_0x581b6f)['trim'](),'color':{'value':_0x7cb274,'title':_0x581b6f||_0x1532f9}};}return{'type':'format','content':c(_0x1c3c03,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x22321c['commandName']){const _0x192f91=_0x22321c['commandParams'][0x0]['value'];if(_0x192f91){const _0x321a3e=_0x55577f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x57602f=>_0x57602f['model']==_0x192f91);let _0x1a00f8=_0x192f91,_0x500581='';return _0x321a3e&&(_0x1a00f8=_0x321a3e['label'],_0x500581=_0x1b1ff9(_0x1a00f8)['toLowerCase']()),{'type':'format','content':c(_0x1c3c03,'*Set\x20font\x20background\x20color:*\x20%0',_0x500581)['trim'](),'color':{'value':_0x192f91,'title':_0x500581||_0x1a00f8}};}return{'type':'format','content':c(_0x1c3c03,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x5be5ff{['afterInit'](){const _0x4f1152=this['editor'],_0x165aa1=_0x4f1152['plugins']['get']('TrackChangesEditing'),_0x5ea4e3=_0x4f1152['commands']['get']('copyFormat'),_0x5d6da7=_0x4f1152['commands']['get']('pasteFormat');_0x5ea4e3&&_0x5d6da7&&(_0x165aa1['enableDefaultAttributesIntegration']('pasteFormat'),_0x165aa1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xcf46c6=this['editor'],_0x1958d7=_0xcf46c6['locale'];_0xcf46c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e02a2=>{if('formatBlock'!=_0x2e02a2['type']&&'formatInline'!=_0x2e02a2['type'])return;const {data:_0x46bf55}=_0x2e02a2;if(_0x46bf55&&'pasteFormat'===_0x46bf55['commandName']){const _0x37a706=[],_0x4e8c18=_0x46bf55['commandParams'][0x0];for(const [_0x13fd7b,_0x5be142]of Object['entries'](_0x4e8c18))_0x37a706['push'](so(_0xcf46c6,_0x13fd7b,_0x5be142));return _0x37a706['length']?{'type':'format','content':c(_0x1958d7,'*Set\x20format\x20to:*\x20%0',_0x37a706['join'](',\x20'))}:{'type':'format','content':c(_0x1958d7,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4938c3,_0x3811f7,_0x19dbcb){const _0x6496c9=_0x4938c3['locale']['t'],_0x2ac21=_0x3811f7['split'](/(?=[A-Z])/)['join']('\x20'),_0x77df1e=_0x6496c9(_0x2ac21['charAt'](0x0)['toUpperCase']()+_0x2ac21['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x19dbcb)return _0x77df1e;if('fontColor'===_0x3811f7||'fontBackgroundColor'===_0x3811f7){const _0x68901d=_0x55577f(_0x4938c3['config']['get']('fontColor.colors'))['find'](_0x25bde5=>_0x25bde5['model']==_0x19dbcb);return _0x77df1e+'\x20('+(_0x68901d?_0x6496c9(_0x68901d['label'])['toLowerCase']():_0x19dbcb)+')';}if('fontSize'===_0x3811f7&&isNaN(parseFloat(_0x19dbcb))){const _0xfbdab4=_0x4938c3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4938c3['config']['get']('fontSize.options'))['find'](_0x3b432c=>_0x3b432c['model']==_0x19dbcb);return _0x77df1e+'\x20('+(_0xfbdab4?_0x6496c9(_0xfbdab4['title'])['toLowerCase']():_0x19dbcb)+')';}return _0x77df1e+'\x20('+_0x19dbcb+')';}class et extends _0x5be5ff{['_headingOptions'];['afterInit'](){const _0x18f700=this['editor'];if(!_0x18f700['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x18f700['config']['get']('heading.options');const _0x3ac957=_0x18f700['locale'],_0x1bcfad=_0x18f700['plugins']['get']('TrackChangesEditing');_0x1bcfad['enableDefaultAttributesIntegration']('heading');for(const _0x34722b of this['_headingOptions'])'paragraph'!=_0x34722b['model']&&_0x1bcfad['descriptionFactory']['registerElementLabel'](_0x34722b['model'],_0x5ee02b=>{const _0xd9e12b=this['_getHeadingLevel'](_0x34722b['model']);return null!==_0xd9e12b?_0x245de9(_0x5ee02b,_0xd9e12b):_0x227714(_0x5ee02b,_0x34722b['title']);});function _0x245de9(_0x25284d,_0x55c550){return c(_0x3ac957,'ELEMENT_HEADING',[_0x25284d,_0x55c550]);}function _0x227714(_0x474db1,_0xe7a5e1){return c(_0x3ac957,'ELEMENT_HEADING_CUSTOM',[_0x474db1,_0xe7a5e1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10e56b=this['editor'],_0x34eda2=_0x10e56b['locale'];function _0x3faf8f(_0x33d2c5,_0x16f827){return c(_0x34eda2,'ELEMENT_HEADING_CUSTOM',[_0x33d2c5,_0x16f827]);}_0x10e56b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11f28b=>{if('formatBlock'!=_0x11f28b['type'])return;const {data:_0x576ecd}=_0x11f28b;if(_0x576ecd&&'heading'==_0x576ecd['commandName']){const _0x52f5cb=_0x576ecd['commandParams'][0x0]['value'],_0x9d42db=this['_getHeadingLevel'](_0x52f5cb);if(null!==_0x9d42db)return{'type':'format','content':c(_0x34eda2,'*Change\x20to:*\x20%0',(_0x1a6e2c=0x1,_0x44e55f=_0x9d42db,c(_0x34eda2,'ELEMENT_HEADING',[_0x1a6e2c,_0x44e55f])))};const _0x3d30a6=this['_headingOptions']['find'](_0x382147=>_0x382147['model']===_0x52f5cb)['title'];return{'type':'format','content':c(_0x34eda2,'*Change\x20to:*\x20%0',_0x3faf8f(0x1,_0x3d30a6))};}var _0x1a6e2c,_0x44e55f;});}['_getHeadingLevel'](_0x3883d7){const _0x57457c=_0x3883d7['match'](/^heading(\d+)/);if(_0x57457c)return _0x57457c[0x1];const _0x621ce7=this['_headingOptions']?.['find'](_0x2f0ce0=>_0x2f0ce0['model']==_0x3883d7);if(_0x621ce7&&_0x621ce7['view']){const _0x45726f=_0x621ce7['view'],_0x335cd2=(_0x45726f['name']??_0x45726f)['match'](/^h(\d+)/);if(_0x335cd2)return _0x335cd2[0x1];}return null;}}class nt extends _0x5be5ff{['afterInit'](){const _0x16f877=this['editor'];if(!_0x16f877['plugins']['has']('HighlightEditing'))return;const _0x214248=_0x16f877['plugins']['get']('TrackChangesEditing'),_0x1038fd=_0x16f877['locale'];_0x214248['enableDefaultAttributesIntegration']('highlight'),_0x214248['registerInlineAttribute']('highlight'),_0x214248['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x1038fd,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20d588=this['editor'],_0x3fefcc=_0x20d588['locale'];_0x20d588['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f411a=>{if('formatInline'!=_0x4f411a['type'])return;const {data:_0x30033c}=_0x4f411a;if(_0x30033c&&'highlight'==_0x30033c['commandName']){const _0x1524a2=_0x3fefcc['t'],_0x4e7905=_0x30033c['commandParams'][0x0]['value'];if(_0x4e7905){const _0x59e2d9=_0x20d588['config']['get']('highlight.options')['find'](_0x551d35=>_0x551d35['model']==_0x4e7905),_0x5c6fbc=_0x1524a2(_0x59e2d9['title'])['toLowerCase']();return{'type':'format','content':c(_0x3fefcc,'*Set\x20highlight:*\x20%0',_0x5c6fbc),'color':{'value':_0x59e2d9['color'],'title':_0x59e2d9['title']}};}return{'type':'format','content':c(_0x3fefcc,'*Remove\x20highlight*',c(_0x3fefcc,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5be5ff{['afterInit'](){const _0x2b750f=this['editor'];if(!_0x2b750f['plugins']['has']('HorizontalLineEditing'))return;_0x2b750f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xea08f9=_0x2b750f['plugins']['get']('TrackChangesEditing'),_0x5da1e4=_0x2b750f['locale'];_0xea08f9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5e4a82=>c(_0x5da1e4,'ELEMENT_HORIZONTAL_LINE',_0x5e4a82)),_0x2b750f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x24cdce,{writer:_0x194a71,options:_0x3d164a})=>{if(!_0x3d164a['showSuggestionHighlights'])return null;const _0x585262=_0x194a71['createContainerElement']('div'),_0x2f7f28=_0x194a71['createEmptyElement']('hr');return _0x194a71['addClass']('ck-horizontal-line',_0x585262),_0x194a71['insert'](_0x194a71['createPositionAt'](_0x585262,0x0),_0x2f7f28),_0x585262;},'converterPriority':'high'});}}class ot extends _0x5be5ff{['afterInit'](){const _0x44f55b=this['editor'];if(!_0x44f55b['plugins']['has']('HtmlEmbed'))return;const _0xa4a0e=_0x44f55b['plugins']['get']('TrackChangesEditing'),_0x1577dc=_0x44f55b['locale'];_0xa4a0e['descriptionFactory']['registerElementLabel']('rawHtml',_0x27b1aa=>c(_0x1577dc,'ELEMENT_HTML_EMBED',_0x27b1aa)),_0xa4a0e['enableDefaultAttributesIntegration']('htmlEmbed'),_0xa4a0e['registerBlockAttribute']('value'),_0xa4a0e['descriptionFactory']['registerDescriptionCallback'](_0x2fc443=>{if('attribute'!=_0x2fc443['type'])return;const {data:_0x4b22e6}=_0x2fc443;if(_0x4b22e6&&'value'==_0x4b22e6['key']&&_0x2fc443['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x569ea8=c(_0x1577dc,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1577dc,'*Change\x20%0\x20content*',_0x569ea8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a9e87=this['editor'],_0x4a21cd=_0x4a9e87['locale'];_0x4a9e87['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8a9e5e=>{if('formatBlock'!=_0x8a9e5e['type'])return;const {data:_0x5a737b}=_0x8a9e5e;if(_0x5a737b&&'htmlEmbed'==_0x5a737b['commandName']){const _0x3e0ea3=c(_0x4a21cd,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x4a21cd,'*Change\x20%0\x20content*',_0x3e0ea3)};}});}}class rt extends _0x5be5ff{['afterInit'](){const _0x3c9744=this['editor'];if(!_0x3c9744['plugins']['has']('ImageEditing'))return;const _0x2231a0=_0x3c9744['plugins']['get']('TrackChangesEditing'),_0x35ac63=_0x3c9744['plugins']['get']('ImageUtils'),_0x2a9cab=_0x3c9744['locale'];_0x2231a0['enableCommand']('insertImage'),_0x2231a0['descriptionFactory']['registerElementLabel']('imageBlock',_0xce0823=>c(_0x2a9cab,'ELEMENT_IMAGE',_0xce0823)),_0x2231a0['descriptionFactory']['registerElementLabel']('imageInline',_0xdeca77=>c(_0x2a9cab,'ELEMENT_INLINE_IMAGE',_0xdeca77)),_0x2231a0['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x2a9cab,'ELEMENT_CAPTION')),_0x3c9744['plugins']['has']('ImageUploadEditing')&&_0x2231a0['enableCommand']('uploadImage'),_0x3c9744['plugins']['has']('ImageBlockEditing')&&_0x3c9744['plugins']['has']('ImageInlineEditing')&&(_0x2231a0['enableCommand']('imageTypeInline',(_0x49cb51,_0xf1791c)=>{const _0x2a16a5=_0x35ac63['getClosestSelectedImageElement'](_0x3c9744['model']['document']['selection']);_0x3c9744['model']['change'](()=>{_0x2231a0['markBlockFormat'](_0x2a16a5,{'commandName':'imageTypeInline','commandParams':[_0xf1791c]},[],'convertBlockImageToInline');});}),_0x2231a0['enableCommand']('imageTypeBlock',(_0x37094f,_0x845677)=>{_0x3c9744['model']['change'](_0x2ee2d9=>{let _0x582635=_0x35ac63['getClosestSelectedImageElement'](_0x3c9744['model']['document']['selection']),_0x19c223=_0x2ee2d9['createRangeOn'](_0x582635);const _0xc25e55=_0x12ff42['fromPosition'](_0x19c223['start'],'toPrevious'),_0x52f817=_0x12ff42['fromPosition'](_0x19c223['end'],'toNext');_0x2231a0['forceDefaultExecution'](()=>_0x37094f(_0x845677)),_0x582635=_0x35ac63['getClosestSelectedImageElement'](_0x3c9744['model']['document']['selection']),_0x19c223=_0x2ee2d9['createRangeOn'](_0x582635);const _0x3a0853=_0x2ee2d9['createRange'](_0xc25e55,_0x52f817);_0xc25e55['detach'](),_0x52f817['detach'](),_0x2231a0['markBlockFormat'](_0x582635,{'commandName':'imageTypeInline','commandParams':[_0x845677]},[],'convertInlineImageToBlock'),_0x3a0853['start']['isBefore'](_0x19c223['start'])&&_0x2231a0['markInsertion'](_0x2ee2d9['createRange'](_0x3a0853['start'],_0x19c223['start']),'convertInlineImageToBlock'),_0x19c223['end']['isBefore'](_0x3a0853['end'])&&_0x2231a0['markInsertion'](_0x2ee2d9['createRange'](_0x19c223['end'],_0x3a0853['end']),'convertInlineImageToBlock');});}),_0x2231a0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2231a0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2231a0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2231a0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2231a0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2231a0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x30192a])=>{const _0x240f84=_0x2231a0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x54f09b=_0x30192a['start'],_0x28c971=_0x30192a['end'];const _0x61d769=_0x3c9744['model']['schema']['getNearestSelectionRange'](_0x54f09b,'backward'),_0x589f63=_0x3c9744['model']['schema']['getNearestSelectionRange'](_0x28c971,'forward');_0x61d769['isCollapsed']&&(_0x54f09b=_0x61d769['start']),_0x589f63['isCollapsed']&&(_0x28c971=_0x589f63['end']),_0x240f84([_0x3c9744['model']['createRange'](_0x54f09b,_0x28c971)]);}),_0x2231a0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x525567),_0x2231a0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x525567)),_0x3c9744['plugins']['has']('ImageCaptionEditing')&&(_0x2231a0['enableCommand']('toggleImageCaption',(_0x592981,_0x49de7d)=>{const _0x2850fe=_0x3c9744['plugins']['get']('ImageCaptionUtils');let _0x417700=_0x35ac63['getClosestSelectedImageElement'](_0x3c9744['model']['document']['selection']),_0x4d3d88=_0x2850fe['getCaptionFromImageModelElement'](_0x417700);_0x3c9744['model']['change'](()=>{if(_0x4d3d88)return void _0x2231a0['markDeletion'](_0x3c9744['model']['createRangeOn'](_0x4d3d88));const _0x57fd9a=_0x35ac63['isBlockImage'](_0x417700);_0x592981(_0x49de7d),_0x417700=_0x35ac63['getClosestSelectedImageElement'](_0x3c9744['model']['document']['selection']),_0x4d3d88=_0x2850fe['getCaptionFromImageModelElement'](_0x417700),_0x2231a0['markInsertion'](_0x3c9744['model']['createRangeOn'](_0x4d3d88),_0x57fd9a?null:'imageCaption');});}),_0x2231a0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x525567));const _0x424737=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x28785c(_0x136bdb,_0xa827fa){const _0x4e065d=_0x424737['findIndex'](({type:_0x4dbe45,subType:_0x45d6e6})=>_0x136bdb['type']==_0x4dbe45&&_0x136bdb['subType']==_0x45d6e6),_0x3ba320=_0x424737['findIndex'](({type:_0x44f62e,subType:_0x4dc094})=>_0xa827fa['type']==_0x44f62e&&_0xa827fa['subType']==_0x4dc094);if(_0x4e065d<0x0||_0x3ba320<0x0)return!0x1;const _0x42bb0a=_0x136bdb['getFirstRange'](),_0x1e95aa=_0xa827fa['getFirstRange']();if((0x0==_0x4e065d||0x1==_0x4e065d)&&0x2==_0x3ba320&&_0x42bb0a['isIntersecting'](_0x1e95aa))return!0x0;if(0x2==_0x4e065d&&0x3==_0x3ba320){const _0x53f49b=_0x2231a0['_findSuggestions'](_0x42bb0a,'insertion')['filter'](({suggestion:_0x42b708,meta:_0x29caa6})=>_0x29caa6['isOwn']&&'convertInlineImageToBlock'==_0x42b708['subType']);if(_0x53f49b['length']>0x1&&_0x1e95aa['end']['isEqual'](_0x42bb0a['start']))return!0x0;if(0x1==_0x53f49b['length']&&(_0x42bb0a['start']['isEqual'](_0x1e95aa['end'])||_0x42bb0a['end']['isEqual'](_0x1e95aa['start'])))return!0x0;}if(0x3==_0x4e065d&&0x3==_0x3ba320&&_0x42bb0a['start']['isBefore'](_0x1e95aa['start'])){const _0x22f919=_0x42bb0a['end']['nodeAfter'],_0x502807=_0x1e95aa['start']['nodeBefore'];return _0x35ac63['isBlockImage'](_0x22f919)&&_0x22f919===_0x502807;}return!0x1;}function _0x525567(_0x204ce2,_0x3dcfd6){return _0x28785c(_0x204ce2,_0x3dcfd6)?[_0x204ce2,_0x3dcfd6]:_0x28785c(_0x3dcfd6,_0x204ce2)?[_0x3dcfd6,_0x204ce2]:null;}_0x3c9744['plugins']['has']('ImageResize')&&(_0x2231a0['enableDefaultAttributesIntegration']('resizeImage'),_0x2231a0['registerBlockAttribute']('resizedWidth'),_0x2231a0['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x2a9cab,'FORMAT_IMAGE_SIZE'))),_0x3c9744['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2231a0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2231a0['registerBlockAttribute']('alt')),_0x3c9744['plugins']['has']('PictureEditing')&&(_0x2231a0['registerBlockAttribute']('sources'),_0x2231a0['descriptionFactory']['registerDescriptionCallback'](_0xd989e8=>{if('attribute'!=_0xd989e8['type'])return;const {data:_0x6e4738}=_0xd989e8;return _0x6e4738&&'sources'==_0x6e4738['key']?{'type':'format','content':''}:void 0x0;})),_0x3c9744['plugins']['has']('ImageSizeAttributes')&&(_0x2231a0['registerBlockAttribute']('width'),_0x2231a0['registerBlockAttribute']('height'),_0x2231a0['descriptionFactory']['registerDescriptionCallback'](_0x1e60e8=>{if('attribute'!=_0x1e60e8['type'])return;const {data:_0x2c56e0}=_0x1e60e8;return!_0x2c56e0||'width'!=_0x2c56e0['key']&&'height'!=_0x2c56e0['key']?void 0x0:{'type':'format','content':''};})),_0x2231a0['descriptionFactory']['registerDescriptionCallback'](_0x22ceb0=>{if(!!_0x424737['find'](({type:_0x1277e5,subType:_0x3a34e2})=>_0x22ceb0['type']==_0x1277e5&&_0x22ceb0['subType']==_0x3a34e2))return _0x22ceb0['previous']?{}:void 0x0;}),_0x2231a0['descriptionFactory']['registerDescriptionCallback'](_0x36d260=>{if('insertion'==_0x36d260['type']||'deletion'==_0x36d260['type']){const _0x1d9231=_0x36d260['getContainedElement']();if(_0x1d9231&&_0x1d9231['is']('element','caption'))return{'type':'insertion'==_0x36d260['type']?'addObject':'removeObject','element':_0x1d9231,'quantity':0x1};}}),_0x2231a0['descriptionFactory']['registerDescriptionCallback'](_0x5dda75=>'formatBlock'==_0x5dda75['type']&&'convertInlineImageToBlock'==_0x5dda75['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5dda75['type']&&'convertBlockImageToInline'==_0x5dda75['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2231a0['descriptionFactory']['registerDescriptionCallback'](_0x5993c2=>{if('attribute'!=_0x5993c2['type'])return;const {data:_0x4a2929}=_0x5993c2;if(!_0x4a2929||'alt'!=_0x4a2929['key'])return;const _0x2ccb79=_0x4a2929['newValue'];return _0x2ccb79?{'type':'format','content':c(_0x2a9cab,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2ccb79+'\x22')}:{'type':'format','content':c(_0x2a9cab,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ba474=this['editor'],_0x3d23ec=_0x4ba474['locale'];_0x4ba474['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25e4be=>{if('formatBlock'!=_0x25e4be['type']&&'formatInline'!=_0x25e4be['type'])return;const {data:_0xbeabb7}=_0x25e4be;if(_0xbeabb7){if('imageTextAlternative'==_0xbeabb7['commandName']){const _0x1ccace=_0xbeabb7['commandParams'][0x0]['newValue'];return _0x1ccace?{'type':'format','content':c(_0x3d23ec,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1ccace+'\x22')}:{'type':'format','content':c(_0x3d23ec,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xbeabb7['commandName']){const _0x40bd48=_0xbeabb7['commandParams'][0x0]['width'];return _0x40bd48?{'type':'format','content':c(_0x3d23ec,'*Set\x20image\x20width:*\x20%0',_0x40bd48)}:{'type':'format','content':c(_0x3d23ec,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5be5ff{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x26d20e=this['editor']['locale'],_0x149145=this['editor']['plugins']['get']('TrackChangesEditing');_0x149145['enableDefaultAttributesIntegration']('replaceImageSource'),_0x149145['registerBlockAttribute']('src'),_0x149145['descriptionFactory']['registerDescriptionCallback'](_0xa22e72=>{if('attribute'!=_0xa22e72['type'])return;const {data:_0x1fe607}=_0xa22e72;return _0x1fe607&&'src'==_0x1fe607['key']?_0x1fe607['newValue']&&_0x1fe607['oldValue']?{'type':'format','content':c(_0x26d20e,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4a4301=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a4301['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4a4301['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a4301['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4a4301['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5296a3=this['editor'],_0x4be651=_0x5296a3['locale'];_0x5296a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1795db=>{if('formatBlock'!=_0x1795db['type']&&'formatInline'!=_0x1795db['type'])return;const {data:_0x38c96c}=_0x1795db;if(!_0x38c96c||'replaceImageSource'!=_0x38c96c['commandName'])return;return{'type':'format','content':c(_0x4be651,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5be5ff{['afterInit'](){const _0x3d7122=this['editor'];if(!_0x3d7122['plugins']['has']('ImageStyleEditing'))return;const _0xbc3655=_0x3d7122['plugins']['get']('TrackChangesEditing'),_0x52c296=_0x3d7122['plugins']['get']('ImageUtils'),_0x24d541={};_0xbc3655['enableCommand']('imageStyle',(_0x5a6683,_0x38f4ef)=>{const _0x29c9b1=_0x3d7122['plugins']['get']('Users')['me'],_0x47d910=_0x3d7122['commands']['get']('imageStyle');let _0x27812a=_0x52c296['getClosestSelectedImageElement'](_0x3d7122['model']['document']['selection']),_0x2df569=_0x3d7122['model']['createRangeOn'](_0x27812a),_0x5c5761=_0x47d910['value'];if(_0x5c5761==_0x38f4ef['value'])return;const _0x12eb7b={'commandName':'imageStyle','commandParams':[_0x38f4ef],'formatGroupId':_0x2be420()};_0x3d7122['model']['change'](()=>{if(_0xbc3655['getSuggestions']()['filter'](_0x25e060=>_0x25e060['isInContent']&&_0x29c9b1==_0x25e060['author']&&('formatBlock'==_0x25e060['type']||'formatInline'==_0x25e060['type'])&&('imageStylePreApply'==_0x25e060['subType']||'imageStylePostApply'==_0x25e060['subType'])&&_0x25e060['getFirstRange']()['isEqual'](_0x2df569))['forEach'](_0x3225da=>_0xbc3655['discardSuggestion'](_0x3225da['head'])),_0x27812a=_0x52c296['getClosestSelectedImageElement'](_0x3d7122['model']['document']['selection']),_0x2df569=_0x3d7122['model']['createRangeOn'](_0x27812a),_0x47d910['refresh'](),_0x3d7122['commands']['get']('imageTypeInline')['refresh'](),_0x3d7122['commands']['get']('imageTypeBlock')['refresh'](),_0x5c5761=_0x47d910['value'],_0x5c5761!=_0x38f4ef['value'])return _0x52c296['isInlineImage'](_0x27812a)&&_0x47d910['shouldConvertImageType'](_0x38f4ef['value'],_0x27812a)?(_0x5a6683({..._0x38f4ef,'setImageSizes':!0x1}),_0x27812a=_0x52c296['getClosestSelectedImageElement'](_0x3d7122['model']['document']['selection']),void _0xbc3655['markBlockFormat'](_0x27812a,{..._0x12eb7b,'commandReversedParams':[{'value':_0x5c5761||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x52c296['isBlockImage'](_0x27812a)?_0xbc3655['markBlockFormat'](_0x27812a,_0x12eb7b,[],'imageStylePostApply'):_0xbc3655['markInlineFormat'](_0x2df569,_0x12eb7b,'imageStylePostApply'));});});for(const _0x3e79b3 of _0x3d7122['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x24d541[_0x3e79b3['name']]=_0x3e79b3['title']['toLowerCase']();_0xbc3655['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xbc3655['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xbc3655['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xbc3655['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2adf81])=>{_0x52c296['setImageNaturalSizeAttributes'](_0x2adf81['getContainedElement']());}),_0xbc3655['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4cbe2c,_0x29b733)=>{_0xbc3655['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4cbe2c,{'commandName':_0x29b733['commandName'],'commandParams':_0x29b733['commandReversedParams']});}),_0xbc3655['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4ca635,_0xb8a772){if(_0x198f87(_0x4ca635,_0xb8a772))return[_0x4ca635,_0xb8a772];if(_0x198f87(_0xb8a772,_0x4ca635))return[_0xb8a772,_0x4ca635];return null;});const _0x5d02e1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x198f87(_0x41269,_0x4c2497){const _0x27e403=_0x5d02e1['findIndex'](({type:_0x173988,subType:_0x126a60})=>_0x41269['type']==_0x173988&&_0x41269['subType']==_0x126a60),_0x481404=_0x5d02e1['findIndex'](({type:_0x50ad26,subType:_0x463884})=>_0x4c2497['type']==_0x50ad26&&_0x4c2497['subType']==_0x463884);if(_0x27e403<0x0||_0x481404<0x0)return!0x1;const _0x1f262f=_0x41269['getFirstRange'](),_0x2aca80=_0x4c2497['getFirstRange']();if((0x0==_0x27e403||0x1==_0x27e403)&&0x2==_0x481404&&_0x1f262f['isIntersecting'](_0x2aca80))return!0x0;if(0x2==_0x27e403&&0x3==_0x481404){const _0x59c0ac=_0xbc3655['_findSuggestions'](_0x1f262f,'insertion')['filter'](({suggestion:_0x1656e3,meta:_0xccf21})=>_0xccf21['isOwn']&&'convertInlineImageToBlock'==_0x1656e3['subType']);if(_0x59c0ac['length']>0x1&&_0x2aca80['end']['isEqual'](_0x1f262f['start']))return!0x0;if(0x1==_0x59c0ac['length']&&(_0x1f262f['start']['isEqual'](_0x2aca80['end'])||_0x1f262f['end']['isEqual'](_0x2aca80['start'])))return!0x0;}if(0x3==_0x27e403&&0x3==_0x481404&&_0x1f262f['start']['isBefore'](_0x2aca80['start'])){const _0x184f24=_0x1f262f['end']['nodeAfter'],_0x4577e4=_0x2aca80['start']['nodeBefore'];return _0x52c296['isBlockImage'](_0x184f24)&&_0x184f24===_0x4577e4;}return!0x1;}_0x3d7122['model']['document']['registerPostFixer'](()=>{let _0x553f6d=!0x1;const _0x50793b=Array['from'](_0x3d7122['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c0de2,data:_0xde2ffe}of _0x50793b){const {group:_0x225a57,type:_0x122c9e,subType:_0x55642a,id:_0x99d3c2}=_0xbc3655['_splitMarkerName'](_0x2c0de2);if('suggestion'==_0x225a57&&_0xbc3655['hasSuggestion'](_0x99d3c2)){if('formatBlock'==_0x122c9e&&('imageStylePreApply'==_0x55642a||'imageStylePostApply'==_0x55642a)){const _0x3dd00c=_0xbc3655['getSuggestion'](_0x99d3c2);if(_0xde2ffe['newRange']){const _0x53e663=_0x3dd00c['getFirstRange']()['getContainedElement']();if(_0x52c296['isBlockImage'](_0x53e663))continue;_0xbc3655['discardSuggestion'](_0x3dd00c),_0x553f6d=!0x0;}}if('insertion'==_0x122c9e&&'imageCaption'==_0x55642a&&!_0xde2ffe['newRange']){const _0x27f864=_0xbc3655['getSuggestion'](_0x99d3c2);_0x27f864['next']&&_0x27f864['next']['isInContent']&&(_0xbc3655['discardSuggestion'](_0x27f864['next']),_0x553f6d=!0x0);}}}return _0x553f6d;}),this['_registerLegacyDescription'](_0x24d541);}['_registerLegacyDescription'](_0x3b0d10){const _0x323149=this['editor'],_0x708714=_0x323149['locale'];_0x323149['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x359cc3=>{if('formatBlock'!=_0x359cc3['type']&&'formatInline'!=_0x359cc3['type'])return;const {data:_0x19beca}=_0x359cc3;if(!_0x19beca||'imageStyle'!=_0x19beca['commandName'])return;const _0x3d9044=_0x19beca['commandParams'][0x0]['value'];return _0x4fc311('side'===_0x3d9044?c(_0x708714,'FORMAT_SIDE_IMAGE'):_0x3b0d10[_0x3d9044]||_0x3d9044);function _0x4fc311(_0x18dc63){return{'type':'format','content':c(_0x708714,'*Format:*\x20%0',_0x18dc63)};}});}}class ut extends _0x5be5ff{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4b26c2){super(_0x4b26c2),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1f7196=this['editor'],_0xeeb820=_0x1f7196['commands']['get']('importWord'),_0x5703ca=_0x1f7196['commands']['get']('trackChanges');_0xeeb820&&(_0xeeb820['on']('execute',(_0x2e4f4c,[,_0x4fde99])=>{this['_trackChangesValueDuringImport']=_0x5703ca['value'],_0x4fde99['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xeeb820,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xeeb820,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5703ca['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1f7196['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x552c50,_0x57d2b7){const {suggestions:_0x1d3ab4}=_0x57d2b7,_0x5c585a=this['editor']['commands']['get']('trackChanges'),_0x1e6b3f=_0x5c585a['value'];this['_trackChangesValueDuringImport']!==_0x1e6b3f&&(_0x5c585a['execute'](),this['_trackChangesExecuted']=!0x0),_0x1d3ab4&&_0x1d3ab4['forEach'](({id:_0x45bdd8,type:_0x454e01,author:_0xd37c1a,created_at:_0x44fa32})=>{const _0x1d3377={'id':_0x45bdd8,'type':_0x454e01,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xd37c1a,'createdAt':_0x44fa32?new Date(_0x44fa32):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1d3377);});}}class ft extends _0x5be5ff{['afterInit'](){const _0x12393a=this['editor'],_0x29ece3=_0x12393a['plugins']['get']('TrackChangesEditing');if(_0x12393a['plugins']['has']('IndentEditing')&&(_0x29ece3['enableCommand']('indent'),_0x29ece3['enableCommand']('outdent')),_0x12393a['plugins']['has']('IndentBlock')){for(const _0x5914cd of['indentBlock','outdentBlock'])_0x29ece3['enableDefaultAttributesIntegration'](_0x5914cd);}const _0x989231=_0x12393a['locale'];_0x29ece3['registerBlockAttribute']('blockIndent'),_0x29ece3['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x989231,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6f540f=this['editor'],_0x15e346=_0x6f540f['locale'],_0x38c8b6=_0x6f540f['plugins']['get']('TrackChangesEditing');_0x38c8b6['descriptionFactory']['registerDescriptionCallback'](_0x21fe8e=>{if('formatBlock'!=_0x21fe8e['type'])return;const {data:_0x1f3580}=_0x21fe8e;if(!_0x1f3580)return;if('indentBlock'!=_0x1f3580['commandName']&&'outdentBlock'!=_0x1f3580['commandName'])return;const _0x5aaa29=_0x21fe8e['getItems']()[0x0],_0x4d6e52=_0x38c8b6['descriptionFactory']['getItemLabel'](_0x5aaa29);return'indentBlock'==_0x1f3580['commandName']?{'type':'format','content':c(_0x15e346,'*Indent:*\x20%0',_0x4d6e52)}:'outdentBlock'==_0x1f3580['commandName']?{'type':'format','content':c(_0x15e346,'*Outdent:*\x20%0',_0x4d6e52)}:void 0x0;});}}class ht extends _0x5be5ff{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x5be5ff{['afterInit'](){const _0x1fc873=this['editor'];if(!_0x1fc873['plugins']['has']('LinkEditing'))return;const _0x30db61=_0x1fc873['plugins']['get']('TrackChangesEditing'),_0x3f6f63=_0x1fc873['commands']['get']('link');_0x30db61['enableDefaultAttributesIntegration']('link'),_0x30db61['enableDefaultAttributesIntegration']('unlink'),_0x30db61['registerInlineAttribute']('linkHref');for(const _0x773439 of _0x3f6f63['manualDecorators'])_0x30db61['registerInlineAttribute'](_0x773439['id']),_0x30db61['descriptionFactory']['registerAttributeLabel'](_0x773439['id'],'link\x20('+_0x773439['label']['toLowerCase']()+')');_0x30db61['descriptionFactory']['registerDescriptionCallback'](_0x3490d9=>{if('attribute'!=_0x3490d9['type'])return;const {data:_0x2cf28c}=_0x3490d9;if(!_0x2cf28c||'linkHref'!=_0x2cf28c['key'])return;const _0x4d40f2=_0x2cf28c['newValue'],_0x34f183=_0x1fc873['locale'];return{'type':'format','content':null==_0x4d40f2?c(_0x34f183,'*Remove\x20link*'):c(_0x34f183,'*Set\x20link:*\x20%0','\x22'+_0x4d40f2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x143a3b=this['editor'],_0x3a245e=_0x143a3b['locale'];_0x143a3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x429942=>{if('formatInline'!=_0x429942['type'])return;const {data:_0x1ed167}=_0x429942;if(_0x1ed167){if('link'==_0x1ed167['commandName']){const _0x5200d9=_0x1ed167['commandParams'][0x0];return{'type':'format','content':c(_0x3a245e,'*Set\x20link:*\x20%0','\x22'+_0x5200d9+'\x22')};}return'unlink'==_0x1ed167['commandName']?{'type':'format','content':c(_0x3a245e,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x5be5ff{['afterInit'](){const _0x188f38=this['editor'],_0x4db5d7=_0x188f38['locale'];if(!_0x188f38['plugins']['has']('LegacyListEditing'))return;const _0x1d377b=_0x188f38['plugins']['get']('TrackChangesEditing'),_0x52d77b=_0x188f38['plugins']['has']('LegacyTodoListEditing');function _0x4eaa05(_0x46b338){return()=>{const _0x234140=_0x188f38['model']['document']['selection'],_0x3dbc35=_0x188f38['commands']['get'](_0x46b338);if(_0x3dbc35['value'])return void _0x188f38['execute']('paragraph',{});const _0x31f5f4=_0x46b338['slice'](0x0,-0x4),_0x228a28=function(_0x33d6c4,_0xae6314,_0x447a96){let _0x569173=Array['from'](_0x33d6c4)['filter'](_0x2b0238=>function(_0x3fa860,_0xb539b){return _0xb539b['checkChild'](_0x3fa860['parent'],'listItem')&&!_0xb539b['isObject'](_0x3fa860);}(_0x2b0238,_0x447a96));_0x569173=_0x569173['filter'](_0x332a7f=>!_0x332a7f['is']('element','listItem')||_0x332a7f['getAttribute']('listType')!=_0xae6314);const _0x352f60=new Set();for(const _0x136dbf of _0x569173)_0x136dbf['is']('element','listItem')?_0x352f60['add'](Le(_0x136dbf)):_0x352f60['add'](_0x136dbf);return Array['from'](_0x352f60);}(_0x234140['getSelectedBlocks'](),_0x31f5f4,_0x188f38['model']['schema']);_0x188f38['model']['change'](()=>{for(const _0xe47dc2 of _0x228a28)_0x1d377b['markBlockFormat'](_0xe47dc2,{'commandName':_0x46b338,'commandParams':[{'forceValue':!_0x3dbc35['value']}],'formatGroupId':'blockName'},Ee(_0xe47dc2));});};}function _0x591378(_0x3cc877){return()=>{const _0x4dfaa5=function(_0x381470){let _0x53e903=Array['from'](_0x381470);const _0x350e05=_0x53e903['findIndex'](_0x9f7755=>'listItem'!=_0x9f7755['name']);return _0x350e05>-0x1&&(_0x53e903=_0x53e903['slice'](0x0,_0x350e05)),_0x53e903;}(_0x188f38['model']['document']['selection']['getSelectedBlocks']()),_0x470e57=_0x188f38['model']['createRange'](_0x188f38['model']['createPositionAt'](_0x4dfaa5[0x0],'before'),_0x188f38['model']['createPositionAt'](_0x4dfaa5[_0x4dfaa5['length']-0x1],'end'));_0x188f38['model']['change'](()=>{_0x1d377b['markBlockFormat'](_0x470e57,{'commandName':_0x3cc877,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1efcc3){const _0x4926d8=new Set();for(const _0x4588f7 of _0x1efcc3){let _0x2d08be=_0x4588f7['nextSibling'];for(;_0x2d08be&&_0x2d08be['getAttribute']('listIndent')>_0x4588f7['getAttribute']('listIndent');)_0x4926d8['add'](_0x2d08be),_0x2d08be=_0x2d08be['nextSibling'];}return Array['from'](_0x4926d8);}(_0x4dfaa5));});};}_0x1d377b['enableCommand']('numberedList',_0x4eaa05('numberedList')),_0x1d377b['enableCommand']('bulletedList',_0x4eaa05('bulletedList')),_0x52d77b&&_0x1d377b['enableCommand']('todoList',_0x4eaa05('todoList')),_0x1d377b['enableCommand']('indentList',_0x591378('indentList')),_0x1d377b['enableCommand']('outdentList',_0x591378('outdentList')),_0x52d77b&&_0x1d377b['enableCommand']('checkTodoList',()=>{const _0xc29c54=_0x188f38['commands']['get']('checkTodoList'),_0x3a8ef7=Array['from'](_0xc29c54['_selectedElements']);_0x3a8ef7['filter'](_0x5730c8=>_0x5730c8['getAttribute']('todoListChecked')!=_0xc29c54['value']),_0x188f38['model']['change'](()=>{for(const _0x25dd1c of _0x3a8ef7)_0x1d377b['markBlockFormat'](_0x25dd1c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xc29c54['value']}]});});}),_0x1d377b['descriptionFactory']['registerElementLabel']('listItem',_0x4622fc=>c(_0x4db5d7,'ELEMENT_LIST_ITEM',_0x4622fc)),_0x1d377b['descriptionFactory']['registerDescriptionCallback'](_0x2597e2=>{if('formatBlock'!=_0x2597e2['type']&&'formatInline'!=_0x2597e2['type'])return;const {data:_0x4ffb13}=_0x2597e2;if(_0x4ffb13){if('numberedList'==_0x4ffb13['commandName']||'bulletedList'==_0x4ffb13['commandName']||'todoList'==_0x4ffb13['commandName'])switch(_0x4ffb13['commandName']['replace']('List','')){case'bulleted':return _0x275ecc(c(_0x4db5d7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x275ecc(c(_0x4db5d7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x275ecc(c(_0x4db5d7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4ffb13['commandName'])return{'type':'format','content':c(_0x4db5d7,'*Indent:*\x20%0',c(_0x4db5d7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4ffb13['commandName'])return{'type':'format','content':c(_0x4db5d7,'*Outdent:*\x20%0',c(_0x4db5d7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4ffb13['commandName'])return _0x4ffb13['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4db5d7,'*Check\x20item*')}:{'type':'format','content':c(_0x4db5d7,'*Uncheck\x20item*')};}function _0x275ecc(_0x21cd9a){return{'type':'format','content':c(_0x4db5d7,'*Change\x20to:*\x20%0',_0x21cd9a)};}});}}function Le(_0x3c5f27){const _0x4ef0bc=_0x3c5f27['getAttribute']('listIndent');if(0x0==_0x4ef0bc)return _0x3c5f27;let _0xce44b6=_0x3c5f27;for(;_0x3c5f27['previousSibling']&&_0x3c5f27['previousSibling']['is']('element','listItem');){const _0x41d345=_0x3c5f27['previousSibling']['getAttribute']('listIndent');if(_0x41d345==_0x4ef0bc)_0xce44b6=_0x3c5f27['previousSibling'];else{if(_0x41d345<_0x4ef0bc)break;}_0x3c5f27=_0x3c5f27['previousSibling'];}return _0xce44b6;}function Ee(_0x5b6165){const _0xb9b6cd=[];if(_0x5b6165['is']('element','listItem')&&_0x5b6165['getAttribute']('listIndent')>0x0){let _0xbedcb4=_0x5b6165['nextSibling'];for(;_0xbedcb4&&'listItem'==_0xbedcb4['name']&&_0xbedcb4['getAttribute']('listIndent')==_0x5b6165['getAttribute']('listIndent');)_0xb9b6cd['push'](_0xbedcb4),_0xbedcb4=_0xbedcb4['nextSibling'];}return _0xb9b6cd;}class Q extends _0x5be5ff{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x18792f=this['editor']['config']['get']('list.properties'),_0x1c8e1e=this['editor']['plugins']['get']('TrackChangesEditing');_0x18792f['styles']&&_0x1c8e1e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x18792f['reversed']&&_0x1c8e1e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x18792f['startIndex']&&_0x1c8e1e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1c8e1e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x54c0b5,_0x385151={}){const _0x1f6614=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe398f0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1f6614['markMultiRangeBlockFormat'](_0xe398f0,{'commandName':'listStyle','commandParams':[{'type':_0x385151['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x433f87,_0x338a33={}){const _0x2a4067=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58ba31=this['_getSuggestionBlocks'](_0x500239=>_0x500239['is']('element','listItem')&&'numbered'===_0x500239['getAttribute']('listType'));if(_0x58ba31['length']<0x1)return;const _0x557be1=_0x58ba31['map'](_0x7299de=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x7299de,'before'),this['editor']['model']['createPositionAt'](_0x7299de,0x0)));this['editor']['model']['change'](()=>{_0x2a4067['markMultiRangeBlockFormat'](_0x557be1,{'commandName':'listReversed','commandParams':[{'reversed':_0x338a33['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x216ab0,_0x4a7d5c={}){const _0x1c4265=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25d9fa=this['_getSuggestionBlocks'](_0x265e29=>_0x265e29['is']('element','listItem')&&'numbered'===_0x265e29['getAttribute']('listType'));if(_0x25d9fa['length']<0x1)return;const _0x208b54=_0x25d9fa['map'](_0x2cb673=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2cb673,'before'),this['editor']['model']['createPositionAt'](_0x2cb673,0x0)));this['editor']['model']['change'](()=>{_0x1c4265['markMultiRangeBlockFormat'](_0x208b54,{'commandName':'listStart','commandParams':[{'startIndex':_0x4a7d5c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x53d999){if('formatBlock'!=_0x53d999['type']&&'formatInline'!=_0x53d999['type'])return;const _0x59609a=this['editor']['locale'],{data:_0x49882}=_0x53d999;if(!_0x49882)return;let _0x3bcdb0,_0x27f417;switch(_0x49882['commandName']){case'listStyle':_0x3bcdb0='*Change\x20to:*\x20%0',_0x27f417={'type':'format','content':c(_0x59609a,_0x3bcdb0,c(_0x59609a,this['_getTranslationKeyForListStyle'](_0x49882['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3bcdb0=_0x49882['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x27f417={'type':'format','content':c(_0x59609a,_0x3bcdb0)};break;case'listStart':_0x3bcdb0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x27f417={'type':'format','content':c(_0x59609a,_0x3bcdb0,_0x49882['commandParams'][0x0]['startIndex'])};}return _0x27f417;}['_getSuggestionBlocksForListStyle'](){const _0xf5e2ca=this['editor']['plugins']['get']('LegacyListUtils');let _0x45d714=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x45d714[0x0]?.['is']('element','listItem')&&_0x45d714['unshift'](..._0xf5e2ca['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x45d714[_0x45d714['length']-0x1]?.['is']('element','listItem')&&_0x45d714['push'](..._0xf5e2ca['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x45d714=[...new Set(_0x45d714)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x45d714=_0x45d714['filter'](_0x584ae9=>_0x584ae9['is']('element','listItem'))),_0x45d714;}['_getSuggestionBlocks'](_0x1bacbe){const _0x5c0b9d=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ac963=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1bacbe)['map'](_0x359136=>{const _0x1a5688=this['editor']['model']['createPositionAt'](_0x359136,0x0);return[..._0x5c0b9d['getSiblingNodes'](_0x1a5688,'backward'),..._0x5c0b9d['getSiblingNodes'](_0x1a5688,'forward')];})['flat']();return _0x3ac963=[...new Set(_0x3ac963)],_0x3ac963;}['_getTranslationKeyForListStyle'](_0x288508){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x288508)||'default')['toUpperCase']()+'_LIST_'+_0x288508['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x5be5ff{['afterInit'](){const _0xa4fe38=this['editor'];if(!_0xa4fe38['plugins']['has']('MediaEmbedEditing'))return;const _0x27cb90=_0xa4fe38['plugins']['get']('TrackChangesEditing'),_0x288f17=_0xa4fe38['locale'];_0x27cb90['enableCommand']('mediaEmbed'),_0x27cb90['descriptionFactory']['registerElementLabel']('media',_0x5eecfc=>c(_0x288f17,'ELEMENT_MEDIA',_0x5eecfc)),_0xa4fe38['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x269886,{writer:_0x33dd3d,options:_0x23c146})=>{if(_0x23c146['showSuggestionHighlights'])return _0x33dd3d['createEmptyElement']('div');},'converterPriority':'high'}),_0xa4fe38['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2b6c34,_0x1f9994,_0x56a511)=>{_0x56a511['options']['showSuggestionHighlights']&&_0x2b6c34['stop']();},{'priority':'high'});}}class pt extends _0x5be5ff{['afterInit'](){const _0x14cc5b=this['editor'];_0x14cc5b['plugins']['has']('MentionEditing')&&_0x14cc5b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x5be5ff{['afterInit'](){const _0x3cbf54=this['editor'];if(!_0x3cbf54['plugins']['has']('MergeFieldsEditing'))return;const _0x500370=_0x3cbf54['plugins']['get']('TrackChangesEditing'),_0x3580f5=_0x3cbf54['locale'];_0x500370['enableCommand']('insertMergeField'),_0x500370['enableCommand']('insertMergeFieldBlock'),_0x500370['enableCommand']('insertMergeFieldImage'),_0x500370['descriptionFactory']['registerElementLabel']('mergeField',_0x53dcaa=>c(_0x3580f5,'ELEMENT_MERGE_FIELD',_0x53dcaa)),_0x500370['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5bd3fb=>c(_0x3580f5,'ELEMENT_MERGE_FIELD',_0x5bd3fb)),_0x500370['descriptionFactory']['registerDescriptionCallback'](_0x1fc583=>{if('insertion'!=_0x1fc583['type']&&'deletion'!=_0x1fc583['type'])return;const _0x32e54c=_0x1fc583['getContainedElement']();if(null==_0x32e54c)return;const _0x3867d3=_0x3cbf54['plugins']['get']('MergeFieldsEditing');let _0x1fb3c4;switch(_0x3867d3['getMergeFieldType'](_0x32e54c)){case null:return;case'image':{const _0x125f1a=_0x3867d3['unwrapAffixes'](_0x32e54c['getAttribute']('src'));_0x1fb3c4=_0x3867d3['getLabel'](_0x125f1a)||_0x125f1a;break;}default:{const _0x307153=_0x32e54c['getAttribute']('id');_0x1fb3c4=_0x3867d3['getLabel'](_0x307153)||_0x307153;break;}}return'insertion'==_0x1fc583['type']?{'type':'insertion','content':c(_0x3580f5,'*Insert:*\x20%0','\x22'+_0x1fb3c4+'\x22\x20'+c(_0x3580f5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3580f5,'*Remove:*\x20%0','\x22'+_0x1fb3c4+'\x22\x20'+c(_0x3580f5,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x5be5ff{['afterInit'](){const _0x5ad080=this['editor'],_0x4ef21a=_0x5ad080['plugins']['get']('TrackChangesEditing');_0x5ad080['plugins']['has']('MultiLevelList')&&(_0x4ef21a['enableDefaultAttributesIntegration']('multiLevelList'),_0x4ef21a['registerBlockAttribute']('listMarkerStyle'),_0x4ef21a['descriptionFactory']['registerDescriptionCallback'](_0xc54448=>this['handleDescriptions'](_0xc54448)));}['handleDescriptions'](_0x4cf4ca){const _0x87360b=this['editor']['locale'],{data:_0x4f4061}=_0x4cf4ca,_0x3b4c02={'type':'format','content':''};if(_0x4f4061&&'listMarkerStyle'==_0x4f4061['key']){if(!_0x4f4061['oldValue'])return{'type':'format','content':c(_0x87360b,'*Set\x20format:*\x20%0',c(_0x87360b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f4061['newValue']+')'};if(!_0x4f4061['newValue']){let _0x4e96f9=_0x4cf4ca['head'];for(;_0x4e96f9;){if(_0x4e96f9['data']&&'listType'==_0x4e96f9['data']['key']&&_0x4e96f9['data']['newValue'])return _0x3b4c02;_0x4e96f9=_0x4e96f9['next'];}return{'type':'format','content':c(_0x87360b,'*Remove\x20format:*\x20%0',c(_0x87360b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f4061['oldValue']+')'};}}}}class bt extends _0x5be5ff{['afterInit'](){const _0x6a185e=this['editor'];if(!_0x6a185e['plugins']['has']('PageBreakEditing'))return;_0x6a185e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xc33014=_0x6a185e['plugins']['get']('TrackChangesEditing'),_0xab7c00=_0x6a185e['locale'];_0xc33014['descriptionFactory']['registerElementLabel']('pageBreak',_0xedd91d=>c(_0xab7c00,'ELEMENT_PAGE_BREAK',_0xedd91d));}}class yt extends _0x5be5ff{['afterInit'](){const _0x25ada9=this['editor'];if(!_0x25ada9['plugins']['has']('Paragraph'))return;const _0x541c25=_0x25ada9['locale'],_0x109cf0=_0x25ada9['plugins']['get']('TrackChangesEditing');_0x109cf0['descriptionFactory']['registerElementLabel']('paragraph',_0x340394=>c(_0x541c25,'ELEMENT_PARAGRAPH',_0x340394)),_0x109cf0['enableDefaultAttributesIntegration']('paragraph'),_0x109cf0['enableCommand']('insertParagraph'),_0x25ada9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x25ada9),{'priority':'highest'}),_0x25ada9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d633a,_0xc31a01,_0x33789e)=>{_0x33789e['options']['showSuggestionHighlights']&&nr(_0x25ada9,{'showActiveMarker':!0x1})(_0x5d633a,_0xc31a01,_0x33789e);},{'priority':'highest'});const _0x3a5c98=_0x109cf0['descriptionFactory'];_0x3a5c98['registerDescriptionCallback'](_0x60f418=>{if('insertion'!==_0x60f418['type'])return;const {start:_0x2599f6,end:_0x28defa}=_0x60f418['getFirstRange']();if(!_0x2599f6['isTouching'](_0x28defa)||!_0x2599f6['nodeAfter'])return;const _0x33574f=_0x25ada9['model']['schema'],_0x1b3eb5=_0x2599f6['nodeAfter'];return _0x33574f['isBlock'](_0x1b3eb5)&&!_0x33574f['isLimit'](_0x1b3eb5)&&_0x33574f['checkChild'](_0x1b3eb5,'$text')?{'type':'insertion','content':c(_0x541c25,'*Insert:*\x20%0',_0x3a5c98['getItemLabel'](_0x1b3eb5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x349424=this['editor'],_0x25433b=_0x349424['locale'];_0x349424['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d3b9b=>{if('formatBlock'!=_0x3d3b9b['type'])return;const {data:_0x4005f4}=_0x3d3b9b;return _0x4005f4&&'paragraph'==_0x4005f4['commandName']?{'type':'format','content':c(_0x25433b,'*Change\x20to:*\x20%0',c(_0x25433b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4b1479,{showActiveMarker:_0x59180f=!0x0}={}){return(_0x33d633,_0x4cc9cb,_0x18faff)=>{const _0x3e9465=_0x4b1479['plugins']['get']('TrackChangesEditing'),_0x476a6e=_0x4cc9cb['markerRange']['start'],_0x43c816=_0x4cc9cb['markerRange']['end'],_0x24d1b9=_0x4b1479['model']['schema'];if(!_0x476a6e['isTouching'](_0x43c816)||!_0x476a6e['nodeAfter'])return;const _0x56365c=_0x476a6e['nodeAfter'];if(_0x24d1b9['isBlock'](_0x56365c)&&!_0x24d1b9['isLimit'](_0x56365c)&&_0x24d1b9['checkChild'](_0x56365c,'$text')){if(!_0x18faff['consumable']['consume'](_0x4cc9cb['markerRange'],_0x33d633['name']))return;const {id:_0x3963b4,authorId:_0x3216d1}=_0x3e9465['_splitMarkerName'](_0x4cc9cb['markerName']),_0x1226b0=_0x18faff['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x3963b4,'data-author-id':_0x3216d1}),_0x30cba1=_0x18faff['mapper']['toViewPosition'](_0x43c816);_0x59180f&&_0x3e9465['activeMarkers']['includes'](_0x4cc9cb['markerName'])&&_0x18faff['writer']['addClass']('ck-suggestion-marker--active',_0x1226b0),_0x18faff['writer']['insert'](_0x30cba1,_0x1226b0),_0x18faff['mapper']['bindElementToMarker'](_0x1226b0,_0x4cc9cb['markerName']);}};}class jt extends _0x5be5ff{['afterInit'](){const _0x54cff5=this['editor'];_0x54cff5['commands']['get']('replaceSource')&&_0x54cff5['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x5be5ff{['afterInit'](){const _0x9b4100=this['editor'];if(!_0x9b4100['plugins']['has']('RemoveFormatEditing'))return;_0x9b4100['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x322b9c=this['editor'];_0x322b9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd0540a=>{if('formatBlock'!=_0xd0540a['type']&&'formatInline'!=_0xd0540a['type'])return;const {data:_0xff5d9c}=_0xd0540a;return _0xff5d9c&&'removeFormat'==_0xff5d9c['commandName']?{'type':'format','content':c(_0x322b9c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x5be5ff{['afterInit'](){const _0x9a9583=this['editor'];if(!_0x9a9583['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x106db9=_0x9a9583['plugins']['get']('TrackChangesEditing');_0x106db9['enableCommand']('goToPreviousRestrictedEditingException'),_0x106db9['enableCommand']('goToNextRestrictedEditingException');const _0x30a77c=_0x9a9583['plugins']['get']('RestrictedEditingModeEditing');_0x30a77c['enableCommand']('trackChanges'),_0x30a77c['enableCommand']('acceptSuggestion'),_0x30a77c['enableCommand']('discardSuggestion'),_0x30a77c['enableCommand']('acceptAllSuggestions'),_0x30a77c['enableCommand']('discardAllSuggestions'),_0x30a77c['enableCommand']('acceptSelectedSuggestions'),_0x30a77c['enableCommand']('discardSelectedSuggestions');}}class It extends _0x5be5ff{['afterInit'](){const _0x3b0aa5=this['editor'];if(!_0x3b0aa5['plugins']['has']('ShiftEnter'))return;const _0x21bbea=_0x3b0aa5['plugins']['get']('TrackChangesEditing');_0x21bbea['enableCommand']('shiftEnter'),_0x3b0aa5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3b0aa5),{'priority':'high'}),_0x3b0aa5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3b0aa5),{'priority':'high'}),_0x3b0aa5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xbf7376,_0x4ddfd1,_0x3105fd)=>{_0x3105fd['options']['showSuggestionHighlights']&&je(_0x3b0aa5,{'showActiveMarker':!0x1})(_0xbf7376,_0x4ddfd1,_0x3105fd);}),_0x21bbea['descriptionFactory']['registerElementLabel']('softBreak',_0x443071=>c(_0x3b0aa5['locale'],'ELEMENT_LINE_BREAK',_0x443071));}}function je(_0x2d6e6c,{showActiveMarker:_0x1f3c30=!0x0}={}){return(_0xbe8b15,_0x28c711,_0x3ad092)=>{const _0x1d5f8f=_0x2d6e6c['plugins']['get']('TrackChangesEditing');if(!_0x3ad092['consumable']['test'](_0x28c711['markerRange'],_0xbe8b15['name']))return;const _0x18c373=_0x2d6e6c['model'];for(const _0x157fcb of _0x28c711['markerRange']['getItems']()){if(!_0x157fcb['is']('element','softBreak'))continue;const _0x37318b='deletion'==_0x28c711['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x419c01,authorId:_0x5d68fb}=_0x1d5f8f['_splitMarkerName'](_0x28c711['markerName']),_0x267567=_0x3ad092['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x37318b,'data-suggestion':_0x419c01,'data-author-id':_0x5d68fb}),_0x4730e9=_0x3ad092['mapper']['toViewPosition'](_0x18c373['createPositionBefore'](_0x157fcb));_0x1f3c30&&_0x1d5f8f['activeMarkers']['includes'](_0x28c711['markerName'])&&_0x3ad092['writer']['addClass']('ck-suggestion-marker--active',_0x267567),_0x3ad092['writer']['insert'](_0x4730e9,_0x267567),_0x3ad092['mapper']['bindElementToMarker'](_0x267567,_0x28c711['markerName']);}};}class _t extends _0x5be5ff{['afterInit'](){const _0x12a345=this['editor'],_0x3e080f=_0x12a345['model'],_0x3dd921=_0x12a345['locale'];if(!_0x12a345['plugins']['has']('StandardEditingModeEditing'))return;const _0xaf3deb=_0x12a345['plugins']['get']('TrackChangesEditing'),_0x21863a='restrictedEditingException',_0x271d5e=_0x12a345['commands']['get'](_0x21863a);_0xaf3deb['enableCommand'](_0x21863a,(_0x5da904,_0x221544={})=>{const _0x3eacdd=_0x3e080f['document']['selection'];if(_0x3eacdd['isCollapsed'])return void _0x5da904(_0x221544);const _0x1ba824=void 0x0!==_0x221544['forceValue']?_0x221544['forceValue']:!_0x271d5e['value'];_0x3e080f['change'](()=>{const _0x36052a=Array['from'](_0x3eacdd['getRanges']());for(const _0x33c5f4 of _0x36052a){const _0x582f1d=_0x1ba824?[_0x33c5f4]:io(_0x21863a,_0x33c5f4,_0x3e080f);for(const _0x521e07 of _0x582f1d)_0xaf3deb['markInlineFormat'](_0x521e07,{'commandName':_0x21863a,'commandParams':[{'forceValue':_0x1ba824}]});}});}),_0xaf3deb['descriptionFactory']['registerDescriptionCallback'](_0x3ddd0b=>{if('formatBlock'!=_0x3ddd0b['type']&&'formatInline'!=_0x3ddd0b['type'])return;const {data:_0x3136b8}=_0x3ddd0b;return _0x3136b8&&_0x3136b8['commandName']==_0x21863a?_0x3136b8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3dd921,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x3dd921,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x5be5ff{['afterInit'](){const _0x52ec8e=this['editor'];if(!_0x52ec8e['plugins']['has']('Style')||!_0x52ec8e['plugins']['has']('DataSchema'))return;const _0x299377=_0x52ec8e['plugins']['get']('TrackChangesEditing'),_0xf38468=_0x52ec8e['locale'],_0x2e5435=_0x52ec8e['config']['get']('style')||{},_0x4e23b7=_0x52ec8e['plugins']['get']('GeneralHtmlSupport'),_0x5ec454=_0x52ec8e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x52ec8e['plugins']['get']('DataSchema'),_0x2e5435['definitions']);_0x299377['enableDefaultAttributesIntegration']('style');const _0x593fe2=new Set();for(const _0x3187b5 of _0x5ec454['block']){const _0x4bd710=_0x4e23b7['getGhsAttributeNameForElement'](_0x3187b5['element']);_0x593fe2['add'](_0x4bd710);}const _0x52c82a=new Set();for(const _0x17c0c9 of _0x5ec454['inline']){const _0x899f9c=_0x4e23b7['getGhsAttributeNameForElement'](_0x17c0c9['element']);_0x52c82a['add'](_0x899f9c);for(const _0x4cbc78 of _0x17c0c9['ghsAttributes'])_0x52c82a['add'](_0x4cbc78);}for(const _0x41eaa4 of _0x593fe2)_0x299377['registerBlockAttribute'](_0x41eaa4),_0x299377['descriptionFactory']['registerAttributeLabel'](_0x41eaa4,c(_0xf38468,'FORMAT_STYLE'));for(const _0x1e8d17 of _0x52c82a)_0x299377['registerInlineAttribute'](_0x1e8d17),_0x299377['descriptionFactory']['registerAttributeLabel'](_0x1e8d17,c(_0xf38468,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39bc74=this['editor'],_0x3be443=_0x39bc74['locale'];_0x39bc74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35d28d=>{if('formatBlock'!=_0x35d28d['type']&&'formatInline'!=_0x35d28d['type'])return;const {data:_0x7c7253}=_0x35d28d;return _0x7c7253&&'style'===_0x7c7253['commandName']?_0x7c7253['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3be443,'*Set\x20format:*\x20%0',_0x7c7253['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x3be443,'*Remove\x20format:*\x20%0',_0x7c7253['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x5be5ff{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2b0287){super(_0x2b0287),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4afe1e=this['editor'],_0x1bf07a=_0x4afe1e['model']['document']['selection'];if(!_0x4afe1e['plugins']['has']('TableEditing'))return;const _0x49251a=_0x4afe1e['locale'],_0x31f208=_0x4afe1e['plugins']['get']('TrackChangesEditing'),_0x1c2118=_0x4afe1e['plugins']['get']('TableUtils');_0x31f208['descriptionFactory']['registerElementLabel']('table',_0x9ded8b=>c(_0x49251a,'ELEMENT_TABLE',_0x9ded8b)),this['_setupColumnsRowsFixing'](),_0x31f208['enableCommand']('insertTable'),_0x31f208['enableCommand']('selectTableRow'),_0x31f208['enableCommand']('selectTableColumn');for(const _0x313320 of['insertTableRowAbove','insertTableRowBelow']){const _0x279855=_0x4afe1e['commands']['get'](_0x313320);_0x31f208['enableCommand'](_0x313320,_0x2b4bcc=>{_0x4afe1e['model']['change'](_0xf1f39d=>{_0x2b4bcc();const _0x25013d='above'===_0x279855['order'],_0x47eed2=_0x1c2118['getSelectionAffectedTableCells'](_0x1bf07a),_0x55a38c=_0x1c2118['getRowIndexes'](_0x47eed2),_0x2d74ba=_0x25013d?_0x55a38c['first']-0x1:_0x55a38c['last']+0x1,_0x458d52=_0x47eed2[0x0]['findAncestor']('table'),_0x1e7e7f=_0x1c2118['createTableWalker'](_0x458d52,{'startRow':_0x2d74ba,'endRow':_0x2d74ba}),_0x116620=Array['from'](_0x1e7e7f)['map'](_0x32f901=>_0xf1f39d['createRangeOn'](_0x32f901['cell']));_0x31f208['markMultiRangeInsertion'](_0x116620,'tableRow');});});}for(const _0x34c358 of['insertTableColumnLeft','insertTableColumnRight']){const _0x212c09=_0x4afe1e['commands']['get'](_0x34c358);_0x31f208['enableCommand'](_0x34c358,_0x6f59fa=>{_0x4afe1e['model']['change'](_0x3a704c=>{_0x6f59fa();const _0x1fcc64='left'===_0x212c09['order'],_0x279447=_0x1c2118['getSelectionAffectedTableCells'](_0x1bf07a),_0x1776f4=_0x1c2118['getColumnIndexes'](_0x279447),_0x32f8c4=_0x1fcc64?_0x1776f4['first']-0x1:_0x1776f4['last']+0x1,_0x1596bc=_0x279447[0x0]['findAncestor']('table'),_0x508a71=_0x1c2118['createTableWalker'](_0x1596bc,{'startRow':0x0,'column':_0x32f8c4,'includeAllSlots':!0x1}),_0x1dac9e=Array['from'](_0x508a71)['map'](_0x4a3c26=>_0x3a704c['createRangeOn'](_0x4a3c26['cell']));_0x31f208['markMultiRangeInsertion'](_0x1dac9e,'tableColumn');});});}for(const _0x4b34bc of['removeTableRow','removeTableColumn']){const _0x483f2f=_0x4b34bc['substr'](0xb),_0x209664=_0x483f2f['toLowerCase'](),_0x59d95f=_0x209664['substr'](0x0,0x3)+'span',_0x249806='table'+_0x483f2f,_0x1d1288='min'+_0x483f2f,_0xee2b54='max'+_0x483f2f;_0x31f208['enableCommand'](_0x4b34bc,()=>{_0x4afe1e['model']['change'](_0x16bb0b=>{const _0x5c8e2d=_0x1c2118['getSelectionAffectedTableCells'](_0x1bf07a),_0x2c88ea=_0x5c8e2d[0x0]['findAncestor']('table');let _0x107826;if('removeTableRow'==_0x4b34bc){const _0x3d9c0c=_0x1c2118['getRowIndexes'](_0x5c8e2d);_0x107826={'startRow':_0x3d9c0c['first'],'endRow':_0x3d9c0c['last'],'includeAllSlots':!0x0};}else{const _0x1b4e02=_0x1c2118['getColumnIndexes'](_0x5c8e2d);_0x107826={'startColumn':_0x1b4e02['first'],'endColumn':_0x1b4e02['last'],'includeAllSlots':!0x0};}const _0x1db7f1=_0x1c2118['createTableWalker'](_0x2c88ea,_0x107826),_0x523dee=Array['from'](_0x1db7f1)['map'](({cell:_0x3ddce8})=>_0x3ddce8),_0x577b5a=xe(_0x523dee['filter'](_0x59a92f=>_0x59a92f['hasAttribute'](_0x59d95f))),_0x4e9201=xe(_0x523dee['filter'](_0x3154a8=>!_0x3154a8['hasAttribute'](_0x59d95f)))['map'](_0x41b715=>_0x16bb0b['createRangeOn'](_0x41b715)),_0x461517=_0x31f208['markMultiRangeDeletion'](_0x4e9201,_0x249806);if(_0x461517&&('tableRow'==_0x461517['subType']||'tableColumn'==_0x461517['subType'])){const _0x544e5a=this['_getSuggestionCoords'](_0x461517);for(const _0x44b780 of _0x577b5a){const _0x312ee3=_0x16bb0b['createRangeOn'](_0x44b780),_0x2fddb0=_0x1c2118['getCellLocation'](_0x44b780),_0x2e7f8b=_0x44b780['getAttribute'](_0x59d95f)-0x1,_0x44caee=_0x544e5a[_0x1d1288],_0x34ca8f=_0x544e5a[_0xee2b54];_0x44caee<=_0x2fddb0[_0x209664]&&_0x2fddb0[_0x209664]+_0x2e7f8b<=_0x34ca8f&&_0x461517['addRange'](_0x312ee3);}}});});}function _0x358aed(_0x4b8053){const _0x22956a=Array['from'](_0x1bf07a['getRanges']())['map'](_0x3ab340=>_0x33976f['fromRange'](_0x3ab340));_0x4afe1e['model']['change'](_0x52b5e8=>{const _0x190a02=_0x52b5e8['batch'];_0x4b8053=_0x4b8053['filter'](_0x3e62c1=>'$graveyard'!=_0x3e62c1['root']['rootName']),_0x52b5e8['setSelection'](_0x4b8053),_0x4afe1e['commands']['get']('removeTableRow')['refresh'](),_0x4afe1e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4afe1e['model']['enqueueChange'](()=>{_0x4afe1e['model']['enqueueChange'](_0x190a02,_0x213368=>{const _0x471eba=_0x22956a['filter'](_0x330a54=>'$graveyard'!=_0x330a54['root']['rootName']);_0x471eba['length']>0x0&&_0x213368['setSelection'](_0x471eba);for(const _0x5e254d of _0x22956a)_0x5e254d['detach']();});});});}function _0x2f4428(_0x179435){_0x4afe1e['model']['change'](_0x473e85=>{const _0x44cc09=Array['from'](_0x1bf07a['getRanges']())['map'](_0x3e6500=>_0x33976f['fromRange'](_0x3e6500)),_0x5b9b19=[];for(const _0x2629f6 of _0x179435)for(const _0x24f4e9 of _0x2629f6['getItems']({'shallow':!0x0}))_0x5b9b19['push'](_0x24f4e9);for(const _0x1a548c of _0x5b9b19)'$graveyard'!=_0x1a548c['root']['rootName']&&(_0x473e85['setSelection'](_0x473e85['createPositionAt'](_0x1a548c,0x0)),_0x4afe1e['commands']['get']('removeTableColumn')['refresh'](),_0x4afe1e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2bdf9f=_0x44cc09['filter'](_0x2a5aee=>'$graveyard'!=_0x2a5aee['root']['rootName']);_0x2bdf9f['length']>0x0&&_0x473e85['setSelection'](_0x2bdf9f);for(const _0x52dc5b of _0x44cc09)_0x52dc5b['detach']();});}function _0x13a473(_0x939ec4,_0x405205){return _0x405205['every'](_0x1f7dbf=>_0x939ec4['some'](_0x21df69=>_0x21df69['end']['isEqual'](_0x1f7dbf['start'])||_0x1f7dbf['end']['isEqual'](_0x21df69['start'])));}function _0x53eb68(_0x416c8a,_0x3936e2){return!_0x416c8a['some'](_0x10cb9d=>_0x3936e2['some'](_0x450073=>_0x10cb9d['isIntersecting'](_0x450073)))&&_0x416c8a['some'](_0x5c2384=>_0x3936e2['some'](_0x456124=>_0x5c2384['end']['isTouching'](_0x456124['start'])));}_0x4afe1e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3f2125,_0x20100e,_0x5d4fce)=>{if(!_0x5d4fce['options']['showSuggestionHighlights'])return;const _0x27d082=_0x20100e['item'];if(!_0x27d082||!_0x27d082['is']('element','tableCell'))return;const _0x2e7440=_0x5d4fce['mapper']['toViewElement'](_0x27d082);if(_0x2e7440){const {id:_0x3272e5,authorId:_0x11147c}=_0x31f208['_splitMarkerName'](_0x20100e['markerName']);_0xf27f48(_0x2e7440,_0x5d4fce['writer'],(_0x5ad333,_0x23af78,_0xd17fc3)=>{_0xd17fc3['addClass'](_0x46308f(_0x23af78['classes']),_0x5ad333),_0xd17fc3['setAttribute']('data-suggestion-id',_0x3272e5,_0x5ad333),_0xd17fc3['setAttribute']('data-author-id',_0x11147c,_0x5ad333);},(_0x5d57ea,_0x3ef57f,_0x344161)=>{_0x344161['removeClass'](_0x46308f(_0x3ef57f['classes']),_0x5d57ea),_0x344161['removeAttribute']('data-suggestion-id',_0x5d57ea),_0x344161['removeAttribute']('data-author-id',_0x5d57ea);});}},{'priority':'highest'}),_0x31f208['descriptionFactory']['registerDescriptionCallback'](_0x4c9940=>{if('insertion'!=_0x4c9940['type']&&'deletion'!=_0x4c9940['type'])return;const _0xa99b1a=_0x4c9940['getContainedElement']();if(null!=_0xa99b1a&&_0xa99b1a['is']('element','table')){if('insertion'==_0x4c9940['type']){const _0x207398=_0x4c9940['getItems']()['filter'](_0x2a9ef3=>_0x2a9ef3['is']('$textProxy'))['map'](_0x37acb5=>_0x37acb5['data']);if(_0x207398['length'])return{'type':'insertion','content':c(_0x49251a,'*Insert:*\x20%0',c(_0x49251a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x207398['join']('\x20')+'\x22'))};}if('deletion'==_0x4c9940['type']){const _0x253cba=_0x4c9940['getItems']()['filter'](_0x4e62bf=>_0x4e62bf['is']('$textProxy'))['map'](_0xf287c1=>_0xf287c1['data']);if(_0x253cba['length'])return{'type':'deletion','content':c(_0x49251a,'*Remove:*\x20%0',c(_0x49251a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x253cba['join']('\x20')+'\x22'))};}}}),_0x31f208['descriptionFactory']['registerDescriptionCallback'](_0x30af5b=>{if('tableRow'==_0x30af5b['subType']){const _0x117b3c=_0x30af5b['getItems']()['filter'](_0x2a0fda=>_0x2a0fda['is']('$textProxy'))['map'](_0x29c1dd=>_0x29c1dd['data']),_0x17277e=this['_getSuggestionCoords'](_0x30af5b),_0x2af0a1=_0x17277e['maxRow']-_0x17277e['minRow']+0x1;if('insertion'==_0x30af5b['type'])return _0x117b3c['length']?{'type':'insertion','content':c(_0x49251a,'*Insert:*\x20%0',c(_0x49251a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2af0a1,'\x22'+_0x117b3c['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x49251a,'*Insert:*\x20%0',c(_0x49251a,'ELEMENT_TABLE_ROW',_0x2af0a1))};if('deletion'==_0x30af5b['type'])return _0x117b3c['length']?{'type':'deletion','content':c(_0x49251a,'*Remove:*\x20%0',c(_0x49251a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2af0a1,'\x22'+_0x117b3c['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x49251a,'*Remove:*\x20%0',c(_0x49251a,'ELEMENT_TABLE_ROW',_0x2af0a1))};}if('tableColumn'==_0x30af5b['subType']){const _0x4372f7=_0x30af5b['getItems']()['filter'](_0x16b269=>_0x16b269['is']('$textProxy'))['map'](_0x9649f8=>_0x9649f8['data']),_0x6dd325=this['_getSuggestionCoords'](_0x30af5b),_0x465db9=_0x6dd325['maxColumn']-_0x6dd325['minColumn']+0x1;if('insertion'==_0x30af5b['type'])return _0x4372f7['length']?{'type':'insertion','content':c(_0x49251a,'*Insert:*\x20%0',c(_0x49251a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x465db9,'\x22'+_0x4372f7['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x49251a,'*Insert:*\x20%0',c(_0x49251a,'ELEMENT_TABLE_COLUMN',_0x465db9))};if('deletion'==_0x30af5b['type'])return _0x4372f7['length']?{'type':'deletion','content':c(_0x49251a,'*Remove:*\x20%0',c(_0x49251a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x465db9,'\x22'+_0x4372f7['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x49251a,'*Remove:*\x20%0',c(_0x49251a,'ELEMENT_TABLE_COLUMN',_0x465db9))};}}),_0x31f208['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x358aed),_0x31f208['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x358aed),_0x31f208['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2f4428),_0x31f208['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2f4428),_0x31f208['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x13a473),_0x31f208['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x13a473),_0x31f208['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x53eb68),_0x31f208['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x53eb68);}['_acceptFormatSuggestionCallbackFactory'](){const _0x28a11b=this['editor'],_0x220216=_0x28a11b['model']['document']['selection'];return(_0x1f5fb3,_0x402518)=>{_0x28a11b['model']['change'](_0x1da12d=>{const {commandName:_0x1461c1,commandParams:_0x3b6c33}=_0x402518;let _0x12d48b=_0x1f5fb3[0x0]['end']['nodeBefore'];_0x3b6c33&&_0x3b6c33[0x0]&&!0x1===_0x3b6c33[0x0]['forceValue']&&(_0x12d48b=_0x1f5fb3[0x0]['start']['nodeAfter']);const _0x3abaaf=_0x1da12d['createRangeIn'](_0x12d48b);if('$graveyard'==_0x3abaaf['root']['rootName'])return;const _0x5e6680=Array['from'](_0x220216['getRanges']())['map'](_0x34b4fa=>_0x33976f['fromRange'](_0x34b4fa));_0x1da12d['setSelection'](_0x3abaaf),_0x28a11b['commands']['get'](_0x1461c1)['refresh'](),_0x3b6c33['push']({'forceDefaultExecution':!0x0}),_0x28a11b['execute'](_0x1461c1,..._0x3b6c33);const _0x2177e5=_0x5e6680['filter'](_0x5b4193=>'$graveyard'!=_0x5b4193['root']['rootName']);_0x2177e5['length']>0x0&&_0x1da12d['setSelection'](_0x2177e5);for(const _0x13f01d of _0x5e6680)_0x13f01d['detach']();});};}['_getCoordsForCells'](_0x48368e){const _0x127fb9=this['editor']['plugins']['get']('TableUtils');let _0x1257e2=Number['MAX_SAFE_INTEGER'],_0x4e7ce0=Number['MIN_SAFE_INTEGER'],_0x22d56a=Number['MAX_SAFE_INTEGER'],_0x8e6f42=Number['MIN_SAFE_INTEGER'];for(const _0x21db29 of _0x48368e){if('$graveyard'==_0x21db29['root']['rootName'])continue;const {row:_0x43ca86,column:_0x2e4b3a}=_0x127fb9['getCellLocation'](_0x21db29),_0x56f093=_0x21db29['hasAttribute']('rowspan')?_0x21db29['getAttribute']('rowspan')-0x1:0x0,_0x33aadd=_0x21db29['hasAttribute']('colspan')?_0x21db29['getAttribute']('colspan')-0x1:0x0;_0x1257e2=_0x43ca86<_0x1257e2?_0x43ca86:_0x1257e2,_0x4e7ce0=_0x43ca86+_0x56f093>_0x4e7ce0?_0x43ca86+_0x56f093:_0x4e7ce0,_0x22d56a=_0x2e4b3a<_0x22d56a?_0x2e4b3a:_0x22d56a,_0x8e6f42=_0x2e4b3a+_0x33aadd>_0x8e6f42?_0x2e4b3a+_0x33aadd:_0x8e6f42;}return{'minRow':_0x1257e2,'maxRow':_0x4e7ce0,'minColumn':_0x22d56a,'maxColumn':_0x8e6f42};}['_setupColumnsRowsFixing'](){const _0x5b0769=this['editor'],_0x29b682=_0x5b0769['plugins']['get']('TrackChangesEditing'),_0x121bfb=_0x5b0769['plugins']['get']('TableUtils');_0x5b0769['model']['document']['on']('change:data',()=>{const _0x38b817=Array['from'](_0x5b0769['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23dd19,data:_0x36184d}of _0x38b817){const {group:_0x5beda7,id:_0x5ac8f8,subType:_0x56a037}=_0x29b682['_splitMarkerName'](_0x23dd19);if('suggestion'!=_0x5beda7)continue;if(null!=_0x36184d['oldRange'])continue;const _0xd1bde8=_0x29b682['getSuggestion'](_0x5ac8f8);this['_tablePostFixingSubtypes']['includes'](_0x56a037)&&this['_tableSuggestions']['add'](_0xd1bde8);}},{'priority':'low'});const _0x5b3c02=(_0x1c05ec,_0x31b40b)=>{let _0x447ec4=!0x1;const _0x88a47b=_0x31b40b['createRangeOn'](_0x1c05ec),_0x2536e0=_0x1c05ec['findAncestor']('table'),_0x5e0171=_0x121bfb['getCellLocation'](_0x1c05ec);for(const _0x3f1208 of this['_tableSuggestions']){const _0x483778=_0x3f1208['subType'],_0x4e0523=_0x483778['startsWith']('tablePaste'),_0x1454ab=_0x483778['substr'](_0x4e0523?0xa:0x5),_0x5988dc=_0x1454ab['toLowerCase'](),_0x3e583a=_0x5988dc['substr'](0x0,0x3)+'span',_0x5695ba='min'+_0x1454ab,_0x4b46be='max'+_0x1454ab;if(!_0x3f1208['isInContent'])continue;if(_0x2536e0!=_0x3f1208['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3f1208['isIntersectingWithRange'](_0x88a47b))continue;const _0x38112b=_0x1c05ec['hasAttribute'](_0x3e583a)?_0x1c05ec['getAttribute'](_0x3e583a)-0x1:0x0,_0x40d5c7=this['_getSuggestionCoords'](_0x3f1208),_0x175069=_0x40d5c7[_0x5695ba],_0x10c29d=_0x40d5c7[_0x4b46be];_0x175069<=_0x5e0171[_0x5988dc]&&_0x5e0171[_0x5988dc]+_0x38112b<=_0x10c29d&&(_0x3f1208['addRange'](_0x88a47b),_0x447ec4=!0x0);}return _0x447ec4;};_0x5b0769['model']['document']['registerPostFixer'](_0x3b9f81=>{let _0x2eb21b=!0x1;for(const _0x16a001 of _0x5b0769['model']['document']['differ']['getChanges']())if('insert'==_0x16a001['type']){if('tableRow'==_0x16a001['name']){for(const _0x524b86 of _0x16a001['position']['nodeAfter']['getChildren']())_0x2eb21b=_0x2eb21b||_0x5b3c02(_0x524b86,_0x3b9f81);}else'tableCell'==_0x16a001['name']&&(_0x2eb21b=_0x2eb21b||_0x5b3c02(_0x16a001['position']['nodeAfter'],_0x3b9f81));}return _0x2eb21b;});}['_getSuggestionCoords'](_0x4c2dcd){return this['_getCoordsForCells'](_0x4c2dcd['getRanges']()['map'](_0x3df9ac=>_0x3df9ac['start']['nodeAfter']));}}function xe(_0x4a6d99){return Array['from'](new Set(_0x4a6d99)['values']());}class Nt extends _0x5be5ff{static get['requires'](){return[Ct];}['afterInit'](){const _0x57375d=this['editor'],_0x37bfe8=_0x57375d['model']['document']['selection'],_0x4102d8=_0x57375d['locale'];if(!_0x57375d['plugins']['has']('TableEditing'))return;const _0xb30c9a=_0x57375d['plugins']['get']('TrackChangesEditing'),_0x202c78=_0x57375d['plugins']['get']('TableUtils'),_0x1d28c8=_0x57375d['plugins']['get'](Ct);_0x1d28c8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xb30c9a['enableCommand']('mergeTableCells',()=>{const _0x4e537c=_0x202c78['getSelectionAffectedTableCells'](_0x57375d['model']['document']['selection']);_0x57375d['model']['change'](()=>{_0xb30c9a['markMultiRangeBlockFormat'](_0x4e537c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x57375d['commands']['get']('mergeTableCells')['on']('execute',(_0x26ea5,_0x4de906)=>{_0x57375d['commands']['get']('trackChanges')['value']&&(_0x4de906['length']>0x0&&_0x4de906[_0x4de906['length']-0x1]&&_0x4de906[_0x4de906['length']-0x1]['forceDefaultExecution']||_0xb30c9a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x26ea5['stop']());},{'priority':'highest'});for(const _0x27119d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1bd11e=_0x57375d['commands']['get'](_0x27119d);_0xb30c9a['enableCommand'](_0x27119d,()=>{const _0x5393d0=_0x57375d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x582559=>_0x582559['is']('element','tableCell')),_0x56feca=_0x1bd11e['value'];_0x57375d['model']['change'](()=>{_0xb30c9a['markMultiRangeBlockFormat']([_0x5393d0,_0x56feca],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x558526 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x160e3d=_0x57375d['commands']['get'](_0x558526);_0xb30c9a['enableCommand'](_0x558526,()=>{const _0x12987f=_0x202c78['getSelectionAffectedTableCells'](_0x57375d['model']['document']['selection'])[0x0],_0x562230=_0x12987f['findAncestor']('table'),{column:_0x3f57b4,row:_0x1585f5}=_0x202c78['getCellLocation'](_0x12987f);let _0x1a402c=[];if('horizontally'==_0x160e3d['direction']){const _0x55b785=_0x202c78['createTableWalker'](_0x562230,{'startRow':_0x1585f5,'endRow':_0x1585f5,'includeAllSlots':!0x0});_0x1a402c=Array['from'](_0x55b785)['map'](_0x56d373=>_0x56d373['cell']);}else{const _0x42648e=_0x202c78['createTableWalker'](_0x562230,{'column':_0x3f57b4,'includeAllSlots':!0x0});_0x1a402c=Array['from'](_0x42648e)['map'](_0x3c214f=>_0x3c214f['cell']);}_0x57375d['model']['change'](_0x412a07=>{_0xb30c9a['markBlockFormat'](_0x412a07['createRangeOn'](_0x12987f),{'commandName':_0x558526,'commandParams':[]},_0x1a402c,_0x558526);});});}_0xb30c9a['descriptionFactory']['registerDescriptionCallback'](_0x2a2bd0=>{if('formatBlock'!=_0x2a2bd0['type']&&'formatInline'!=_0x2a2bd0['type'])return;const {data:_0x5cf448}=_0x2a2bd0;return _0x5cf448&&'mergeTableCells'==_0x5cf448['commandName']?{'type':'format','content':c(_0x4102d8,'*Merge\x20cells*')}:void 0x0;}),_0xb30c9a['descriptionFactory']['registerDescriptionCallback'](_0x10ffca=>{if('formatBlock'!=_0x10ffca['type']&&'formatInline'!=_0x10ffca['type'])return;const {data:_0x639f7d}=_0x10ffca;return _0x639f7d?'splitTableCellVertically'==_0x639f7d['commandName']?{'type':'format','content':c(_0x4102d8,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x639f7d['commandName']?{'type':'format','content':c(_0x4102d8,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x35429d=_0x1d28c8['_acceptFormatSuggestionCallbackFactory']();for(const _0x22346a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xb30c9a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x22346a,'accept',_0x35429d);for(const _0xfdba09 of['splitTableCellVertically','splitTableCellHorizontally'])_0xb30c9a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xfdba09,'accept',_0x35429d);_0xb30c9a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x562736=>{_0x57375d['model']['change'](_0x412193=>{const _0x4835d4=Array['from'](_0x37bfe8['getRanges']())['map'](_0x3ca4e2=>_0x33976f['fromRange'](_0x3ca4e2));_0x412193['setSelection'](_0x562736),_0x57375d['commands']['get']('mergeTableCells')['refresh'](),_0x57375d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x180c45=_0x4835d4['filter'](_0x3f4eca=>'$graveyard'!=_0x3f4eca['root']['rootName']);_0x180c45['length']>0x0&&_0x412193['setSelection'](_0x180c45);for(const _0x3bcc14 of _0x4835d4)_0x3bcc14['detach']();});});for(const _0x200cb7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x344d22=_0x57375d['commands']['get'](_0x200cb7);_0x344d22['on']('set:isEnabled',(_0x4027ad,_0x54883c,_0x17e46c)=>{if(_0x17e46c){const _0x49b420=_0x57375d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x51d876=>_0x51d876['is']('element','tableCell'));this['_areMergableCells'](_0x344d22['value'],_0x49b420)||(_0x4027ad['return']=!0x1,_0x4027ad['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x18ff9f=this['editor']['commands']['get']('mergeTableCells'),_0x3be8d6=this['editor']['plugins']['get']('TableUtils');if(!_0x18ff9f['isEnabled'])return!0x1;const _0x4c9799=_0x3be8d6['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1880e6 of _0x4c9799)for(const _0x3acf02 of _0x4c9799)if(_0x1880e6!=_0x3acf02&&!this['_areMergableCells'](_0x1880e6,_0x3acf02))return!0x1;return!0x0;}['_areMergableCells'](_0x287493,_0x755c04){const _0x528e2f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x568804=this['editor']['model']['createRangeOn'](_0x287493),_0x5cb41f=this['editor']['model']['createRangeOn'](_0x755c04),_0x212307=new Set(),_0x437acc=new Set();for(const _0x30c67 of _0x528e2f['getSuggestions']())if(('insertion'==_0x30c67['type']||'deletion'==_0x30c67['type']||'mergeTableCells'==_0x30c67['subType'])&&_0x30c67['isInContent']){for(const _0xa08d73 of _0x30c67['getRanges']())_0xa08d73['containsRange'](_0x568804,!0x0)&&_0x212307['add'](_0x30c67['type']+':'+_0x30c67['author']['id']),_0xa08d73['containsRange'](_0x5cb41f,!0x0)&&_0x437acc['add'](_0x30c67['type']+':'+_0x30c67['author']['id']);}if(_0x212307['size']!=_0x437acc['size'])return!0x1;for(const _0xbdd691 of _0x212307)if(!_0x437acc['has'](_0xbdd691))return!0x1;return!0x0;}}class Dt extends _0x5be5ff{static get['requires'](){return[Ct];}['afterInit'](){const _0x32fd3b=this['editor'];if(!_0x32fd3b['plugins']['has']('TableEditing'))return;const _0x21d6b3=_0x32fd3b['locale'],_0xd4f86a=_0x32fd3b['plugins']['get']('TrackChangesEditing');_0xd4f86a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xd4f86a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xd4f86a['registerBlockAttribute']('headingRows'),_0xd4f86a['registerBlockAttribute']('headingColumns'),_0xd4f86a['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x21d6b3,'FORMAT_HEADER_ROW')),_0xd4f86a['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x21d6b3,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x596650=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4406a4=this['editor']['plugins']['get']('TableUtils'),_0xa72a3c=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x38dbdd({showActiveMarker:_0x14c8b5=!0x0,setDataAttribute:_0x4644f3=!0x0}={}){return(_0x931de1,_0x57cf79,_0x293c25)=>{const {type:_0x5953db,id:_0xa474f0}=_0x596650['_splitMarkerName'](_0x57cf79['markerName']),_0x2c1fa4=_0x596650['getSuggestion'](_0xa474f0),_0x4b6a54=_0x2c1fa4['data'];if('formatBlock'!=_0x2c1fa4['type']||!_0x4b6a54||'setTableColumnHeader'!=_0x4b6a54['commandName'])return;if(_0x57cf79['item'])return void _0x931de1['stop']();if(!_0x293c25['consumable']['consume'](_0x57cf79['markerRange'],_0x931de1['name']))return;const _0xd32ae7=_0x57cf79['markerRange']['start']['nodeAfter'],_0x5268f4=_0x57cf79['markerRange']['end']['nodeBefore'],_0x3bb48a=_0xd32ae7['parent']['parent'],{column:_0x1e6e81}=_0x4406a4['getCellLocation'](_0xd32ae7),{column:_0x31b5b5}=_0x4406a4['getCellLocation'](_0x5268f4);for(let _0xf01b3e=_0x1e6e81;_0xf01b3e<=_0x31b5b5;_0xf01b3e++){const _0x1ab632=_0x4406a4['createTableWalker'](_0x3bb48a,{'column':_0xf01b3e,'includeAllSlots':!0x1});for(const _0x29cf62 of _0x1ab632){const _0x32bb66=_0x29cf62['cell'],_0x29212a=_0x293c25['mapper']['toViewElement'](_0x32bb66);_0x293c25['writer']['addClass']('ck-suggestion-marker-'+_0x5953db,_0x29212a),_0x4644f3&&_0x293c25['writer']['setAttribute']('data-suggestion',_0xa474f0,_0x29212a),_0x293c25['mapper']['bindElementToMarker'](_0x29212a,_0x57cf79['markerName']),_0x14c8b5&&(_0x596650['activeMarkers']['includes'](_0x57cf79['markerName'])?_0x293c25['writer']['addClass']('ck-suggestion-marker--active',_0x29212a):_0x293c25['writer']['removeClass']('ck-suggestion-marker--active',_0x29212a));}}};}_0x596650['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xa72a3c),_0x596650['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xa72a3c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x38dbdd(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x53cda9,_0x522b41,_0x10c113)=>{_0x10c113['options']['showSuggestionHighlights']&&_0x38dbdd({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x53cda9,_0x522b41,_0x10c113);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x15111e,_0x4728a1,_0x3f3401)=>{const {type:_0x44d60d,id:_0x2a0b66}=_0x596650['_splitMarkerName'](_0x4728a1['markerName']),_0x1ce2b2=_0x596650['getSuggestion'](_0x2a0b66),_0x4bec35=_0x1ce2b2['data'];if('formatBlock'!=_0x1ce2b2['type']||!_0x4bec35||'setTableColumnHeader'!=_0x4bec35['commandName'])return;const _0x175c80=_0x3f3401['mapper']['markerNameToElements'](_0x4728a1['markerName']);if(_0x175c80){for(const _0x376b4d of _0x175c80)_0x3f3401['writer']['removeClass']('ck-suggestion-marker-'+_0x44d60d,_0x376b4d),_0x3f3401['writer']['removeClass']('ck-suggestion-marker--active',_0x376b4d),_0x3f3401['writer']['removeAttribute']('data-suggestion',_0x376b4d),_0x3f3401['mapper']['unbindElementFromMarkerName'](_0x376b4d,_0x4728a1['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c9ca9=this['editor'],_0x149b33=_0x3c9ca9['locale'];function _0x5b0f5b(_0x373f2c){return{'type':'format','content':c(_0x149b33,'*Format:*\x20%0',_0x373f2c)};}_0x3c9ca9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17af7f=>{if('formatBlock'!=_0x17af7f['type'])return;const {data:_0x5a2c9c}=_0x17af7f;if(_0x5a2c9c){if('setTableRowHeader'==_0x5a2c9c['commandName']){const _0x51850c=_0x5a2c9c['commandParams'][0x0]['forceValue'];return _0x5b0f5b(c(_0x149b33,_0x51850c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5a2c9c['commandName']){const _0x5b76d4=_0x5a2c9c['commandParams'][0x0]['forceValue'];return _0x5b0f5b(c(_0x149b33,_0x5b76d4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x5be5ff{['afterInit'](){const _0x4841d5=this['editor'],_0x1c456b=_0x4841d5['locale'],_0x34c217=_0x4841d5['plugins']['get']('TrackChangesEditing');function _0x2ae4fc(_0x4fb9bb){return{'type':'format','content':''+c(_0x1c456b,'*Set\x20table\x20type:*\x20%0',_0x4fb9bb)};}_0x4841d5['plugins']['has']('TableLayout')&&(_0x34c217['enableCommand']('insertTableLayout'),_0x34c217['enableDefaultAttributesIntegration']('tableType'),_0x34c217['registerBlockAttribute']('tableType'),_0x34c217['descriptionFactory']['registerElementLabel'](_0x4891ea=>_0x4891ea['is']('element','table')&&'layout'===_0x4891ea['getAttribute']('tableType'),_0x2fff07=>c(_0x1c456b,'ELEMENT_LAYOUT_TABLE',_0x2fff07)),_0x34c217['descriptionFactory']['registerDescriptionCallback'](_0xde3434=>{const {data:_0x121359}=_0xde3434;if(_0x121359&&'tableType'==_0x121359['key'])switch(_0x121359['newValue']){case'layout':return _0x2ae4fc(c(_0x1c456b,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2ae4fc(c(_0x1c456b,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x4ce619=>[_0x4ce619,null]));class $t extends _0x5be5ff{static get['requires'](){return[Ct];}['afterInit'](){const _0x22e691=this['editor'];if(!_0x22e691['plugins']['has']('TableClipboard'))return;const _0x58c16b=_0x22e691['plugins']['get']('TrackChangesEditing'),_0x298ae2=_0x22e691['plugins']['get']('TableUtils'),_0x3eded2=_0x22e691['plugins']['get'](Ct),_0x34b53c=_0x22e691['plugins']['get']('TableClipboard'),_0x34bfb2=_0x22e691['plugins']['get']('TableSelection'),_0x4291c3=_0x22e691['plugins']['get'](_0x19c455);_0x3eded2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x22e691['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x22e691['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x594954=null,_0x281f98=!0x1;_0x4291c3['on']('contentInsertion',(_0x3cd4b7,_0x2bb4bb)=>{_0x281f98='paste'===_0x2bb4bb['method'];}),_0x22e691['model']['on']('insertContent',(_0x2d62e9,_0x3bdaa4)=>{if(!_0x281f98&&null===_0x34bfb2['getSelectedTableCells']())return;const [_0x332352,_0x3a294c]=_0x3bdaa4,_0x31e2b0=_0x3bdaa4[_0x3bdaa4['length']-0x1];_0x31e2b0&&_0x31e2b0['forceDefaultExecution']||_0x58c16b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4eaed0,_0x3ab57d,_0x264b06,_0x365780,_0x1c4c10){if(_0x3ab57d&&!_0x3ab57d['is']('documentSelection'))return!0x1;const _0x763f01=_0x1c4c10['getTableIfOnlyTableInContent'](_0x4eaed0,_0x264b06);if(!_0x763f01||!He(_0x763f01,void 0x0,_0x365780))return!0x1;const _0x1b3a6a=_0x365780['getSelectionAffectedTableCells'](_0x264b06['document']['selection']);if(!_0x1b3a6a['length'])return!0x1;const _0x2f19b0=_0x1b3a6a[0x0]['findAncestor']('table'),_0x4123e5=_0x365780['getRowIndexes'](_0x1b3a6a),_0x4bcc24=_0x365780['getColumnIndexes'](_0x1b3a6a),_0x49bf9f={'startRow':_0x4123e5['first'],'endRow':_0x4123e5['last'],'startColumn':_0x4bcc24['first'],'endColumn':_0x4bcc24['last']};return 0x1==_0x1b3a6a['length']&&(_0x49bf9f['endRow']+=_0x365780['getRows'](_0x763f01)-0x1,_0x49bf9f['endColumn']+=_0x365780['getColumns'](_0x763f01)-0x1),He(_0x2f19b0,_0x49bf9f,_0x365780);}(_0x332352,_0x3a294c,_0x22e691['model'],_0x298ae2,_0x34b53c)&&(_0x2d62e9['stop'](),_0x594954={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x22e691['model']['change'](()=>{_0x22e691['model']['insertContent'](_0x3bdaa4[0x0],_0x3bdaa4[0x1],_0x3bdaa4[0x2],{'forceDefaultExecution':!0x0});const _0x24311b=_0x2be420(),{rowInsertionRanges:_0x2dd66e,columnInsertionRanges:_0x32aad7,insertionRanges:_0x47c8ca,deletionRanges:_0x237608,cells:_0x5e3ab0}=_0x594954;_0x2dd66e['length']&&_0x58c16b['markMultiRangeInsertion'](_0x2dd66e,'tablePasteRow',{'tablePasteChainId':_0x24311b}),_0x32aad7['length']&&_0x58c16b['markMultiRangeInsertion'](_0x32aad7,'tablePasteColumn',{'tablePasteChainId':_0x24311b}),_0x47c8ca['length']&&(_0x58c16b['markMultiRangeInsertion'](_0x47c8ca,'tablePaste',{'tablePasteChainId':_0x24311b,'skipNestingCheck':!0x0}),_0x47c8ca['forEach'](_0x2d9d7d=>_0x2d9d7d['detach']?.())),_0x237608['length']&&(_0x58c16b['markMultiRangeDeletion'](_0x237608,'tablePaste',{'tablePasteChainId':_0x24311b,'skipNestingCheck':!0x0}),_0x237608['forEach'](_0x53302b=>_0x53302b['detach']?.()));const _0x42fc9d=_0x58c16b['markMultiRangeBlockFormat'](_0x5e3ab0['map'](({element:_0x35935b})=>_0x35935b),{'formatGroupId':_0x2be420()},[],'tablePasteCell',{'tablePasteChainId':_0x24311b});if(_0x42fc9d){const _0x17bcff=_0x42fc9d['getMarkers'](),_0xba0d02=[];for(const {element:_0x282033,attributes:_0x3af772}of _0x5e3ab0){if(!_0x3af772)continue;const _0x226cfd=_0x22e691['model']['createRangeOn'](_0x282033),_0x5b4583=_0x17bcff['find'](_0x48f748=>_0x48f748['getRange']()['isEqual'](_0x226cfd));_0x5b4583&&_0xba0d02['push']([_0x5b4583['name'],_0x3af772]);}_0xba0d02['length']&&_0x42fc9d['setAttribute']('markerAttributes',Object['fromEntries'](_0xba0d02));}_0x594954=null;}));},{'priority':_0x57b8ca['high']+0xa}),_0x4291c3['on']('contentInsertion',()=>{_0x281f98=!0x1;},{'priority':'lowest'}),_0x22e691['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x550c18,_0xdba88b)=>{const [_0x5594c9,_0x30c4ce,,_0x2b413d]=_0xdba88b;if(!_0x594954)return;_0x550c18['stop']();const _0x5c9a31=_0x5594c9['cell'],_0x539ce6=_0x30c4ce,_0x138864=De(_0x5c9a31),_0x1701a8=De(_0x539ce6);_0x550c18['return']=_0x5c9a31;let _0x7fa58=null,_0x397f70=null;if(_0x1701a8||_0x138864){if(_0x138864&&!_0x1701a8){_0x2b413d['remove'](_0x5c9a31['getChild'](0x0));for(const _0x2ef125 of Array['from'](_0x539ce6['getChildren']()))_0x2b413d['insert'](_0x2ef125,_0x5c9a31,'end');const _0x31656f=_0x594954['rowInsertionIndexes']['includes'](_0x5594c9['row']),_0x25bee0=_0x594954['columnInsertionIndexes']['includes'](_0x5594c9['column']);_0x31656f||_0x25bee0||(_0x7fa58=_0x33976f['fromRange'](_0x2b413d['createRangeIn'](_0x5c9a31)));}else _0x1701a8&&!_0x138864&&(_0x397f70=_0x2b413d['createRangeIn'](_0x5c9a31));}else{const _0xddb660=_0x2b413d['createElement']('tableCellSuggestion'),_0x3fd3a8=_0x2b413d['createElement']('tableCellSuggestion');_0x2b413d['wrap'](_0x2b413d['createRangeIn'](_0x5c9a31),_0x3fd3a8),_0x2b413d['insert'](_0xddb660,_0x5c9a31,0x0);for(const _0x4db145 of Array['from'](_0x539ce6['getChildren']()))_0x2b413d['insert'](_0x4db145,_0xddb660,'end');_0x7fa58=_0x33976f['fromRange'](_0x2b413d['createRangeOn'](_0xddb660)),_0x397f70=_0x33976f['fromRange'](_0x2b413d['createRangeOn'](_0x3fd3a8));}const _0x1a9b93=Array['from'](_0x539ce6['getAttributes']())['filter'](([_0x5a6c86])=>Oe['includes'](_0x5a6c86));_0x594954['cells']['push']({'element':_0x5c9a31,'attributes':_0x1a9b93['length']?Object['fromEntries'](_0x1a9b93):null}),_0x7fa58&&_0x594954['insertionRanges']['push'](_0x7fa58),_0x397f70&&_0x594954['deletionRanges']['push'](_0x397f70);},{'priority':'high'}),_0x298ae2['on']('insertColumns',(_0x51bee2,_0x1b9025)=>{const [_0x49ea95,_0x3aaef7={}]=_0x1b9025;if(!_0x594954)return;const _0x74b5d1=_0x3aaef7['at']||0x0,_0x4eb2b0=_0x3aaef7['columns']||0x1;_0x594954['columnInsertionIndexes']=new Array(_0x4eb2b0)['fill'](_0x74b5d1)['map']((_0x22611c,_0x2afd95)=>_0x22611c+_0x2afd95);for(const {cell:_0x14ecb9}of _0x298ae2['createTableWalker'](_0x49ea95,{'startColumn':_0x74b5d1,'endColumn':_0x74b5d1+_0x4eb2b0-0x1}))_0x594954['columnInsertionRanges']['push'](_0x22e691['model']['createRangeOn'](_0x14ecb9));},{'priority':'low'}),_0x298ae2['on']('insertRows',(_0x122a1d,_0x4c300b)=>{const [_0x26f6e0,_0xbcd9c1={}]=_0x4c300b;if(!_0x594954)return;const _0x336ddb=_0xbcd9c1['at']||0x0,_0x17ea23=_0xbcd9c1['rows']||0x1;_0x594954['rowInsertionIndexes']=new Array(_0x17ea23)['fill'](_0x336ddb)['map']((_0x19f3de,_0x24ab45)=>_0x19f3de+_0x24ab45);for(const {cell:_0x2ab964}of _0x298ae2['createTableWalker'](_0x26f6e0,{'startRow':_0x336ddb,'endRow':_0x336ddb+_0x17ea23-0x1}))_0x594954['rowInsertionRanges']['push'](_0x22e691['model']['createRangeOn'](_0x2ab964));},{'priority':'low'}),_0x58c16b['descriptionFactory']['registerDescriptionCallback'](_0x3f5c8f=>{if(_0x3f5c8f['subType']&&_0x3f5c8f['subType']['startsWith']('tablePaste'))return _0x3f5c8f['previous']?{}:{'type':'insertion','content':c(_0x22e691['locale'],'*Replace\x20table\x20cells*')};});const _0x648198=()=>!0x1;for(const _0x13fff4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x58c16b['_suggestionFactory']['registerCustomCallback']('insertion',_0x13fff4,'join',_0x648198),_0x58c16b['_suggestionFactory']['registerCustomCallback']('deletion',_0x13fff4,'join',_0x648198),_0x58c16b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x13fff4,'join',_0x648198);_0x58c16b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x648198),_0x58c16b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x32d2c4,_0x3561fa,_0x2727f5)=>{const _0x414d35=_0x32d2c4['map'](_0x23fec4=>_0x23fec4['getContainedElement']())['filter'](_0x3a703a=>_0x3a703a),_0x1b63e7=new Map(_0x414d35['map'](_0x479369=>[_0x479369,null]));if(_0x594954){for(const {element:_0x23f7e5,attributes:_0x558d7b}of _0x594954['cells'])_0x558d7b&&_0x1b63e7['set'](_0x23f7e5,_0x558d7b);}else{if(_0x2727f5&&_0x2727f5['markerAttributes'])for(const [_0x414731,_0xf5b57e]of Object['entries'](_0x2727f5['markerAttributes'])){const _0x50a8e9=_0x22e691['model']['markers']['get'](_0x414731),_0x2039a6=_0x50a8e9?_0x50a8e9['getRange']()['getContainedElement']():null;_0x2039a6&&_0x1b63e7['set'](_0x2039a6,_0xf5b57e);}}_0x22e691['model']['change'](_0x173043=>{for(const [_0x50ed02,_0xa313b5]of _0x1b63e7)_0x173043['setAttributes']({...Ue,..._0xa313b5},_0x50ed02);});});const _0x30baf1=(_0x5bb8d9,_0x131d03)=>{_0x58c16b['_suggestionFactory']['registerCustomCallback'](_0x5bb8d9,'tablePaste',_0x131d03,(_0x49ba4b,_0x276abf,_0x2a3e01)=>{_0x22e691['model']['change'](_0x6f6aa1=>{const _0x104883=[];for(const _0x367e3a of _0x49ba4b){const _0x4cb73f=_0x367e3a['start']['nodeAfter'];_0x4cb73f['is']('element','tableCellSuggestion')&&_0x104883['push'](_0x4cb73f);}_0x58c16b['_suggestionFactory']['getSuggestionCallback'](_0x5bb8d9,null,_0x131d03)(_0x49ba4b,_0x276abf,_0x2a3e01);for(const _0x13a828 of _0x104883)'$graveyard'!=_0x13a828['root']['rootName']&&_0x6f6aa1['unwrap'](_0x13a828);});});};_0x30baf1('insertion','accept'),_0x30baf1('insertion','discard'),_0x30baf1('deletion','accept'),_0x30baf1('deletion','discard'),_0x58c16b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1276b8=>{const _0x20b829=_0x1276b8['map'](_0x3dffe6=>_0x3dffe6['getContainedElement']()),_0x1ae9a8=_0x20b829[0x0]['findAncestor']('table'),{minRow:_0x5a386a,maxRow:_0x2cca52}=_0x3eded2['_getCoordsForCells'](_0x20b829);_0x298ae2['removeRows'](_0x1ae9a8,{'at':_0x5a386a,'rows':_0x2cca52-_0x5a386a+0x1});}),_0x58c16b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x433372=>{const _0x583f0a=_0x433372['map'](_0x187c99=>_0x187c99['getContainedElement']()),_0x1dd893=_0x583f0a[0x0]['findAncestor']('table'),{minColumn:_0x275643,maxColumn:_0x33e4b4}=_0x3eded2['_getCoordsForCells'](_0x583f0a);_0x298ae2['removeColumns'](_0x1dd893,{'at':_0x275643,'columns':_0x33e4b4-_0x275643+0x1});});const _0x3ac2de=(_0x188a2c,_0xcacd2b)=>{if(!_0xcacd2b['subType']||!_0xcacd2b['subType']['startsWith']('tablePaste'))return;const _0x192b31=_0xcacd2b['attributes']['tablePasteChainId'],_0x5cddba=_0x58c16b['getSuggestions']()['filter'](_0x237ef7=>_0x237ef7['isInContent']&&_0x237ef7['attributes']&&_0x237ef7['attributes']['tablePasteChainId']==_0x192b31);_0x5cddba['length']&&_0xcacd2b['getAllAdjacentSuggestions']()['length']!=_0x5cddba['length']&&_0x5cddba['reduce']((_0x5c0213,_0x4d7262)=>(_0x5c0213['next']=_0x4d7262,_0x4d7262['previous']=_0x5c0213,_0x4d7262));};function _0x36479d(_0x1380e7,_0x42b868=!0x0){const {id:_0x3954b2,authorId:_0x4efa8f}=_0x58c16b['_splitMarkerName'](_0x1380e7['markerName']),_0xf058b9=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x44a622=_0x58c16b['activeMarkers']['includes'](_0x1380e7['markerName']);return _0x44a622&&_0xf058b9['push']('ck-suggestion-marker--active'),{'classes':_0xf058b9,'attributes':{'data-suggestion':_0x3954b2,'data-author-id':_0x4efa8f},'priority':_0x44a622&&_0x42b868?0xbc2:0xbb8};}_0x58c16b['on']('suggestionLoaded',_0x3ac2de,{'priority':'high'}),_0x58c16b['on']('suggestionUnloaded',_0x3ac2de,{'priority':'high'}),_0x22e691['model']['document']['registerPostFixer'](()=>{let _0xc58b28=!0x1;const _0x24c2a3=Array['from'](_0x22e691['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x214dec,data:_0x562757}of _0x24c2a3){const {group:_0x57d542,type:_0x221c2b,id:_0x554afe}=_0x58c16b['_splitMarkerName'](_0x214dec);if('suggestion'!=_0x57d542||'deletion'!=_0x221c2b||_0x562757['oldRange'])continue;if(!_0x58c16b['hasSuggestion'](_0x554afe))continue;const _0x269739=_0x58c16b['getSuggestion'](_0x554afe)['getRanges'](),_0x4c495b=_0x22e691['plugins']['get']('Users')['me'];for(const _0x2b96c2 of _0x58c16b['getSuggestions']()){if(!_0x2b96c2['isInContent']||_0x2b96c2['author']!=_0x4c495b)continue;if('formatBlock'!=_0x2b96c2['type']||'tablePasteCell'!=_0x2b96c2['subType'])continue;if(_0x2b96c2['getRanges']()['every'](_0x5c9322=>_0x269739['some'](_0x1bc635=>_0x1bc635['containsRange'](_0x5c9322,!0x0)))){for(const _0x48f68b of _0x2b96c2['getAllAdjacentSuggestions']())_0x48f68b['isInContent']&&(_0x48f68b['discard'](),_0xc58b28=!0x0);}}}return _0xc58b28;}),_0x22e691['model']['document']['registerPostFixer'](_0x50cce2=>{const _0x2d95fd=_0x22e691['commands']['get']('redo');if(!_0x2d95fd||!_0x2d95fd['_createdBatches']['has'](_0x50cce2['batch']))return!0x1;let _0xbc3d2a=!0x1;const _0x26bc9f=_0x22e691['plugins']['get']('Users')['me'],_0x2e3263=_0x22e691['model']['document']['differ']['getChanges'](),_0x480d5a=Array['from'](_0x22e691['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4ff364,data:_0x1b4a4a})=>{const {group:_0x41584f,subType:_0x112dfa,authorId:_0x3cd9d3}=_0x58c16b['_splitMarkerName'](_0x4ff364);return'suggestion'==_0x41584f&&'tablePaste'==_0x112dfa&&_0x3cd9d3==_0x26bc9f['id']&&!_0x1b4a4a['oldRange'];});for(const _0x1e7d1f of _0x2e3263){if('insert'!=_0x1e7d1f['type']||'tableCellSuggestion'!=_0x1e7d1f['name']||0x1!=_0x1e7d1f['length'])continue;const _0x2f6304=_0x50cce2['createRange'](_0x1e7d1f['position'],_0x1e7d1f['position']['getShiftedBy'](0x1));if(!_0x480d5a['find'](({data:_0x164338})=>_0x164338['newRange']['isEqual'](_0x2f6304))){for(const {name:_0x4fd72b,data:_0x277643}of _0x480d5a)if(_0x2f6304['containsRange'](_0x277643['newRange'])){_0x50cce2['updateMarker'](_0x4fd72b,{'range':_0x2f6304}),_0xbc3d2a=!0x0;break;}}}return _0xbc3d2a;}),_0x22e691['model']['document']['registerPostFixer'](_0x53430c=>{let _0x48bca4=!0x1;const _0x88d386=_0x22e691['plugins']['get']('Users')['me'],_0x3d7295=_0x58c16b['getSuggestions']()['filter'](_0x3243e8=>_0x3243e8['isInContent']&&_0x3243e8['author']==_0x88d386),_0x162190=new Set(),_0x4c07e7=new Set();for(const _0xb58f15 of _0x3d7295)if('tablePaste'==_0xb58f15['subType'])for(const _0x437457 of _0xb58f15['getMarkers']()){const _0x3dc84d=_0x437457['getRange']()['getContainedElement']();if(_0x3dc84d){if(_0x3dc84d['is']('element','tableCellSuggestion')&&De(_0x3dc84d)){_0xb58f15['removeMarker'](_0x437457['name']),_0x162190['add'](_0x3dc84d),_0x48bca4=!0x0;const _0x5109d5=_0x3dc84d['nextSibling'],_0x3c0c0f=_0x3dc84d['previousSibling'],_0x37fd08=_0x5109d5&&_0x5109d5['is']('element','tableCellSuggestion'),_0x5a4b74=_0x3c0c0f&&_0x3c0c0f['is']('element','tableCellSuggestion');_0x37fd08&&!_0x162190['has'](_0x5109d5)&&_0x4c07e7['add'](_0x5109d5),_0x5a4b74&&!_0x162190['has'](_0x3c0c0f)&&_0x4c07e7['add'](_0x3c0c0f);}else _0x3dc84d['is']('element','paragraph')&&_0x3dc84d['isEmpty']&&(_0xb58f15['removeMarker'](_0x437457['name']),_0x48bca4=!0x0);}}else{if('tablePasteCell'==_0xb58f15['subType']){if(!_0xb58f15['attributes']||!_0xb58f15['attributes']['tablePasteChainId'])continue;const _0x1e9a6e=_0xb58f15['attributes']['markerAttributes'];if(_0x1e9a6e&&Object['keys'](_0x1e9a6e)['length'])continue;const _0x2771c1=_0xb58f15['attributes']['tablePasteChainId'];let _0x5fca9=!0x0,_0x5d8e1c=!0x0;for(const _0x2e4dcb of _0x3d7295)if(_0x2e4dcb['subType']&&_0x2e4dcb['subType']['startsWith']('tablePaste')){if(!_0x2e4dcb['attributes']['tablePasteChainId']){_0x5d8e1c=!0x1;break;}if(_0x2e4dcb['id']!=_0xb58f15['id']&&_0x2e4dcb['attributes']['tablePasteChainId']==_0x2771c1){_0x5fca9=!0x1;break;}}_0x5d8e1c&&_0x5fca9&&(_0xb58f15['removeMarkers'](),_0x48bca4=!0x0);}}for(const _0x566a60 of _0x162190)_0x53430c['remove'](_0x566a60);for(const _0x2a1a61 of _0x4c07e7)_0x53430c['unwrap'](_0x2a1a61);return _0x48bca4;}),_0x22e691['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1e0b5c=>_0x36479d(_0x1e0b5c),'converterPriority':'high'}),_0x22e691['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3558ae,_0x2e87c2)=>_0x2e87c2['options']['showSuggestionHighlights']?_0x36479d(_0x3558ae,!0x1):null,'converterPriority':'high'});const _0x389105=_0x22e691['editing']['view'];this['listenTo'](_0x389105['document'],'clipboardOutput',(_0x271400,_0x3abce8)=>{const _0x2fc98b=[];for(const _0x1a5809 of _0x389105['createRangeIn'](_0x3abce8['content'])['getItems']())_0x1a5809['is']('element','suggestion-td')&&_0x2fc98b['push'](_0x1a5809);_0x389105['change'](_0xeaac0=>{for(const _0x3777dc of _0x2fc98b)_0xeaac0['move'](_0xeaac0['createRangeIn'](_0x3777dc),_0xeaac0['createPositionBefore'](_0x3777dc)),_0xeaac0['remove'](_0x3777dc);});});}}function De(_0x4f0e0c){if(_0x4f0e0c['isEmpty'])return!0x0;const _0x273d2b=_0x4f0e0c['getChild'](0x0);return _0x273d2b['is']('element','paragraph')&&_0x273d2b['isEmpty'];}function He(_0x388c2b,_0xc7fc69={},_0x52de6f){for(const {isAnchor:_0x142b55,cellHeight:_0x54d7e0,cellWidth:_0x5bdc95}of _0x52de6f['createTableWalker'](_0x388c2b,{'includeAllSlots':!0x0,..._0xc7fc69}))if(!_0x142b55||0x1!=_0x54d7e0||0x1!=_0x5bdc95)return!0x1;return!0x0;}class Bt extends _0x5be5ff{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x366310=this['editor']['plugins']['get']('TrackChangesEditing');_0x366310['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x366310['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x366310['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x366310['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x366310['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x366310['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x463af5,_0x207172){const _0x53e17f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xae585d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2b5c6b=_0x207172['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x579cbd=_0xae585d['getColumnGroupElement'](_0x2b5c6b);let _0x5b2fe5=_0x579cbd?_0xae585d['getTableColumnsWidths'](_0x579cbd):null,_0x3795c1=_0x2b5c6b['getAttribute']('tableWidth')||null;const _0x347704=_0x207172['tableWidth']||_0x3795c1,_0x2e6be1=_0x207172['columnWidths']||_0x5b2fe5,_0x357c51=this['editor']['plugins']['get']('Users')['me'];for(const _0x49dfb9 of _0x53e17f['getSuggestions']()){const _0x269982=_0x49dfb9['getContainedElement']();if('resizeTable'===_0x49dfb9['subType']&&_0x269982===_0x2b5c6b){_0x49dfb9['author']!==_0x357c51&&_0x49dfb9['discard']();const _0x5801cf=_0x49dfb9['data']['commandParams'];_0x3795c1=_0x5801cf[0x0]['tableWidth'],_0x5b2fe5=_0x5801cf[0x0]['columnWidths'];break;}}_0x463af5({'table':_0x2b5c6b,'tableWidth':_0x347704,'columnWidths':_0x2e6be1}),_0x53e17f['markBlockFormat'](_0x2b5c6b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3795c1,'columnWidths':_0x5b2fe5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2367ee){if('formatBlock'!=_0x2367ee['type']&&'formatInline'!=_0x2367ee['type'])return;const {data:_0x466761}=_0x2367ee;if(_0x466761&&'resizeTable'===_0x466761['formatGroupId']){const _0x41e520='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x41e520)};}}}class xt extends _0x5be5ff{['afterInit'](){const _0x2acdc3=this['editor'];_0x2acdc3['plugins']['has']('Template')&&_0x2acdc3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x5be5ff{['afterInit'](){const _0x3e6d9e=this['editor'];if(!_0x3e6d9e['commands']['get']('insertTableOfContents'))return;_0x3e6d9e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x26fa2e=_0x3e6d9e['plugins']['get']('TrackChangesEditing'),_0x556d26=_0x3e6d9e['locale'];_0x26fa2e['descriptionFactory']['registerElementLabel']('tableOfContents',_0xbdeb47=>c(_0x556d26,'ELEMENT_TABLE_OF_CONTENTS',_0xbdeb47));}}class Rt extends _0x5be5ff{['afterInit'](){const _0x473c25=this['editor'];if(!_0x473c25['plugins']['has']('Title'))return;const _0xe14d18=_0x473c25['plugins']['get']('TrackChangesEditing');_0xe14d18['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x473c25['locale'],'ELEMENT_TITLE')),_0x473c25['model']['document']['registerPostFixer'](_0x53bd3a=>{let _0x2cfcf6=!0x1;const _0x266bfa=Array['from'](_0x473c25['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x468880,data:_0x3f6ce3}of _0x266bfa){const {group:_0x252551}=_0xe14d18['_splitMarkerName'](_0x468880);if('suggestion'!==_0x252551||!_0x3f6ce3['newRange'])continue;const _0x500bd5=_0x3f6ce3['newRange'],_0x1aa707=_0x500bd5['end']['nodeBefore'];if(!_0x1aa707||!_0x1aa707['is']('element','title-content'))continue;if(!_0x500bd5['start']['isTouching'](_0x500bd5['end']))continue;const _0x4be3b7=_0x473c25['model']['schema']['getNearestSelectionRange'](_0x500bd5['end'],'forward');if(_0x4be3b7&&_0x4be3b7['isCollapsed']){const _0x378143=_0x53bd3a['createRange'](_0x500bd5['start'],_0x4be3b7['start']);_0x378143['isEqual'](_0x500bd5)||(_0x53bd3a['updateMarker'](_0x468880,{'range':_0x378143}),_0x2cfcf6=!0x0);}_0x2cfcf6||(_0x53bd3a['removeMarker'](_0x468880),_0x2cfcf6=!0x0);}return _0x2cfcf6;});}}class Tt extends _0x5be5ff{['afterInit'](){const _0x36d91c=this['editor'],_0xeeda86=_0x36d91c['plugins']['get']('TrackChangesEditing');_0x36d91c['plugins']['has']('Uploadcare')&&(_0xeeda86['enableCommand']('uploadcare'),_0x36d91c['plugins']['has']('UploadcareImageEdit')&&(_0xeeda86['enableCommand']('uploadcareImageEdit'),_0xeeda86['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xeeda86['registerBlockAttribute']('uploadcareImageId'),_0xeeda86['descriptionFactory']['registerDescriptionCallback'](_0x3c6a22=>{if('attribute'!=_0x3c6a22['type'])return;const {data:_0x504e70}=_0x3c6a22;return _0x504e70&&'uploadcareImageId'==_0x504e70['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x5be5ff{['afterInit'](){const _0x259e69=this['editor'],_0x8d92b3=_0x259e69['plugins']['get']('TrackChangesEditing');_0x259e69['plugins']['has']('UndoEditing')&&(_0x8d92b3['enableCommand']('undo'),_0x8d92b3['enableCommand']('redo'));}}class Ut extends _0x5be5ff{static get['requires'](){return[Ct];}['afterInit'](){const _0x109d2b=this['editor'];if(!_0x109d2b['plugins']['has']('TableCaptionEditing'))return;_0x109d2b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x5be5ff{['tableProperties'];['tableCellProperties'];constructor(_0x22e4b3){super(_0x22e4b3),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 _0xb855c3=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x570807 of this['tableProperties'])_0xb855c3['enableCommand'](_0x570807,(_0x3c187d,_0xb323ca)=>{const _0x320974=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x570807,[_0x320974],this['tableProperties'],'tableProperties',_0x3c187d,_0xb323ca);});_0xb855c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xb855c3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb855c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x99b1d3,_0x2b7295)=>this['handleDiscardAction'](this['tableProperties'],_0x99b1d3,_0x2b7295)),_0xb855c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2f26a3 of this['tableCellProperties'])_0xb855c3['enableCommand'](_0x2f26a3,(_0x1072e6,_0x5886f7)=>{const _0x173470=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2f26a3,_0x173470,this['tableCellProperties'],'tableCellProperties',_0x1072e6,_0x5886f7);});_0xb855c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xb855c3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb855c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x226931,_0x4c5426)=>this['handleDiscardAction'](this['tableCellProperties'],_0x226931,_0x4c5426)),_0xb855c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xb855c3['descriptionFactory']['registerDescriptionCallback'](_0x32a2df=>this['handleSuggestionDescription'](_0x32a2df));}['_handlePropertyChange'](_0x3cd1ef,_0x478179,_0x18f34f,_0x212482,_0x2353fc,_0x52a500){const _0x2516b7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x52a500['batch'],()=>{for(const _0xa35d07 of _0x478179){if(this['_getSuggestion'](_0xa35d07,_0x212482))_0x2353fc(_0x52a500);else{const _0x268471={};for(const _0x4938a5 of _0x18f34f){const _0x3e6ebd=_0xa35d07['getAttribute'](_0x4938a5);void 0x0!==_0x3e6ebd&&(_0x268471[_0x4938a5]=_0x3e6ebd);}_0x2353fc(_0x52a500),_0x2516b7['markBlockFormat'](_0xa35d07,{'commandParams':[_0x268471]},[],_0x212482);}}});}['handleDiscardAction'](_0x30775f,_0x3c0307,_0x164252){const _0x5e33cf=_0x3c0307[0x0]['start']['nodeAfter'],_0x704452=_0x164252['commandParams'][0x0];this['editor']['model']['change'](_0x1db23a=>{for(const _0x59ac23 of _0x30775f)void 0x0!==_0x704452[_0x59ac23]?_0x1db23a['setAttribute'](_0x59ac23,_0x704452[_0x59ac23],_0x5e33cf):_0x1db23a['removeAttribute'](_0x59ac23,_0x5e33cf);});}['handleSuggestionDescription'](_0x3145e7){if(_0x3145e7['data'])switch(_0x3145e7['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'](_0x5102ce,_0x4f8f28){const _0x5058ef=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x432ebf of _0x5058ef['getSuggestions']({'skipNotAttached':!0x0})){const _0xf8d1c1=_0x432ebf['getContainedElement']();if(_0x432ebf['subType']===_0x4f8f28&&_0xf8d1c1===_0x5102ce)return _0x432ebf;}return null;}}const u='$elementName';class p extends _0x5be5ff{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x4baace,_0x4ca60e,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,gt,Q,wt,lt,W,Se,mt,pt,kt,bt,yt,jt,St,At,It,_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(_0x382097){super(_0x382097),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3ed6cd,_0x403e86,_0x636084,_0x1b721e)=>{this['_model']['change'](()=>{for(const _0x4b3cdb of[..._0x1b721e,..._0x636084])this['_model']['markers']['has'](_0x4b3cdb)&&_0x382097['editing']['reconvertMarker'](_0x4b3cdb);});}),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']=_0x382097['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(),_0x382097['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x382097['config']['get']('trackChanges.trackFormatChanges'),_0x382097['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x382097['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x382097,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x110e19=this['editor'],_0x2b7a10=(_0x1cb6f7,_0x506c3b)=>{if('attribute'!=_0x1cb6f7)return'ck-suggestion-marker-'+_0x1cb6f7;const _0x1cdf13=_0x506c3b['split']('|')[0x0];return this['_isBlockAttribute'](_0x1cdf13)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x110e19['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5b4095=>{const {id:_0x48e7fa,authorId:_0x4e9715,type:_0x50e319,subType:_0x201b68}=this['_splitMarkerName'](_0x5b4095['markerName']),_0x4de1d0=['ck-suggestion-marker',_0x2b7a10(_0x50e319,_0x201b68)];let _0x523d9a=0xbb8;return this['activeMarkers']['includes'](_0x5b4095['markerName'])&&(_0x4de1d0['push']('ck-suggestion-marker--active'),_0x523d9a=0xbc2),'deletion'==_0x50e319&&(_0x523d9a+=0x5),{'classes':_0x4de1d0,'attributes':{'data-suggestion':_0x48e7fa,'data-author-id':_0x4e9715},'priority':_0x523d9a};}}),_0x110e19['conversion']['for']('dataDowncast')['add'](_0x29aa90=>{_0x29aa90['on']('addMarker:suggestion',(_0x9ff5d8,_0x3ced5b,_0xbaaa31)=>{if(!_0xbaaa31['options']['showSuggestionHighlights'])return;const _0x3f886c=_0x3ced5b['item'];if(!_0x3f886c)return;const _0x173a13=_0xbaaa31['mapper']['toViewElement'](_0x3f886c);_0x110e19['model']['schema']['isObject'](_0x3f886c)&&_0x173a13&&!_0x173a13['getCustomProperty']('widget')&&_0x173a13['is']('containerElement')&&_0x1ef6a4(_0x173a13,_0xbaaa31['writer']);},{'priority':'high'});}),_0x110e19['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3a7b67,_0x13677a)=>{if(!_0x13677a['options']['showSuggestionHighlights'])return null;const {id:_0xeb2f13,authorId:_0x572456,type:_0x4c0c21,subType:_0x5d8a27}=this['_splitMarkerName'](_0x3a7b67['markerName']);return{'classes':['ck-suggestion-marker',_0x2b7a10(_0x4c0c21,_0x5d8a27)],'priority':0xbb8,'attributes':{'data-suggestion':_0xeb2f13,'data-author-id':_0x572456}};}});const _0x2cb2d0=({showActiveMarkers:_0x4a58d5=!0x0,isAttributeSuggestion:_0x402c36=!0x1}={})=>(_0x1f89ba,_0x376300,_0x66c140)=>{if(!_0x376300['item'])return;const {id:_0x492025,authorId:_0x30ea04}=this['_splitMarkerName'](_0x376300['markerName']);if(_0x402c36){const _0xe06f9f=this['_suggestions']['get'](_0x492025),_0x43795d=this['_getAttributeKey'](_0xe06f9f);if(!this['_isBlockAttribute'](_0x43795d))return;}if(_0x376300['item']['is']('selection'))return void _0x66c140['consumable']['consume'](_0x376300['item'],_0x1f89ba['name']);const _0x4d145b=_0x66c140['mapper']['toViewElement'](_0x376300['item']);if(_0x376300['item']['is']('element')&&_0x110e19['model']['schema']['isBlock'](_0x376300['item'])&&!_0x4d145b['getCustomProperty']('addHighlight')){_0x66c140['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4d145b),_0x66c140['writer']['setAttribute']('data-suggestion',_0x492025,_0x4d145b),_0x66c140['writer']['setAttribute']('data-author-id',_0x30ea04,_0x4d145b),_0x66c140['mapper']['bindElementToMarker'](_0x4d145b,_0x376300['markerName']),_0x4a58d5&&(this['activeMarkers']['includes'](_0x376300['markerName'])?_0x66c140['writer']['addClass']('ck-suggestion-marker--active',_0x4d145b):_0x66c140['writer']['removeClass']('ck-suggestion-marker--active',_0x4d145b));for(const _0x454818 of _0x110e19['model']['createRangeIn'](_0x376300['item'])['getItems']())_0x66c140['consumable']['consume'](_0x454818,_0x1f89ba['name']);_0x66c140['consumable']['consume'](_0x376300['item'],_0x1f89ba['name']);}};_0x110e19['conversion']['for']('dataDowncast')['add'](_0x271897=>{_0x271897['on']('addMarker:suggestion:formatBlock',(_0xf01013,_0x290965,_0x53456c)=>{_0x53456c['options']['showSuggestionHighlights']&&_0x2cb2d0({'showActiveMarkers':!0x1})(_0xf01013,_0x290965,_0x53456c);},{'priority':'highest'});}),_0x110e19['conversion']['for']('dataDowncast')['add'](_0x17b61f=>{_0x17b61f['on']('addMarker:suggestion:attribute',(_0x178759,_0x137ba6,_0x58367c)=>{_0x58367c['options']['showSuggestionHighlights']&&_0x2cb2d0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x178759,_0x137ba6,_0x58367c);},{'priority':'highest'});}),_0x110e19['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xcabf10,_0x366ff4)=>{if(_0x366ff4['options']['showSuggestionHighlights']){const {id:_0x12ae76,authorId:_0x47621f}=this['_splitMarkerName'](_0xcabf10);return _0xcabf10['includes'](':split')||_0xcabf10['includes'](':merge')?{'group':'suggestion','name':_0xcabf10['substr'](0xb),'attributes':{'data-suggestion':_0x12ae76,'data-author-id':_0x47621f}}:null;}return{'group':'suggestion','name':_0xcabf10['substr'](0xb)};}}),_0x110e19['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x20b32a,{writer:_0x29c693})=>{let _0x5bef0e='suggestion:'+_0x20b32a['getAttribute']('suggestion-type')+':'+_0x20b32a['getAttribute']('id');return _0x20b32a['getAttribute']('marker-count')&&(_0x5bef0e+=':'+_0x20b32a['getAttribute']('marker-count')),_0x29c693['createElement']('$marker',{'data-name':_0x5bef0e});}}),_0x110e19['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x110e19['conversion']['for']('editingDowncast')['add'](_0x2d8736=>{_0x2d8736['on']('addMarker:suggestion:formatBlock',_0x2cb2d0(),{'priority':'high'});}),_0x110e19['conversion']['for']('editingDowncast')['add'](_0x1115b3=>{_0x1115b3['on']('addMarker:suggestion:attribute',_0x2cb2d0({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x110e19['conversion']['for']('editingDowncast')['add'](_0x58aa73=>{_0x58aa73['on']('removeMarker:suggestion:formatBlock',(_0xda0134,_0x4272b4,_0x6ffd80)=>{const _0x216bde=_0x6ffd80['mapper']['markerNameToElements'](_0x4272b4['markerName']);if(_0x216bde){for(const _0x548f20 of _0x216bde)_0x548f20['getCustomProperty']('addHighlight')||(_0x6ffd80['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x548f20),_0x6ffd80['writer']['removeAttribute']('data-suggestion',_0x548f20),_0x6ffd80['writer']['removeAttribute']('data-author-id',_0x548f20),_0x6ffd80['mapper']['unbindElementFromMarkerName'](_0x548f20,_0x4272b4['markerName']));}},{'priority':'high'});}),_0x110e19['conversion']['for']('editingDowncast')['add'](_0x1ac17a=>{_0x1ac17a['on']('removeMarker:suggestion:attribute',(_0x50e0d1,_0x3b10be,_0x576f55)=>{const _0x44f58a=_0x576f55['mapper']['markerNameToElements'](_0x3b10be['markerName']);if(!_0x44f58a)return;const {id:_0xceec5f}=this['_splitMarkerName'](_0x3b10be['markerName']),_0x264131=this['_suggestions']['get'](_0xceec5f),_0x2703b2=this['_getAttributeKey'](_0x264131);if(this['_isBlockAttribute'](_0x2703b2)){for(const _0x35f9f2 of _0x44f58a)_0x35f9f2['getCustomProperty']('addHighlight')||(_0x576f55['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x35f9f2),_0x576f55['writer']['removeAttribute']('data-suggestion',_0x35f9f2),_0x576f55['writer']['removeAttribute']('data-author-id',_0x35f9f2),_0x576f55['mapper']['unbindElementFromMarkerName'](_0x35f9f2,_0x3b10be['markerName']));}},{'priority':'high'});}),_0x110e19['model']['document']['registerPostFixer'](_0x4e501b=>{let _0x5946bb=!0x1;const _0x47ed48=Array['from'](_0x110e19['model']['document']['differ']['getChangedMarkers']()),_0x453c76=new Set();for(const {name:_0x516dd3,data:_0x59ae61}of _0x47ed48){const {group:_0x434a9b,type:_0x1ec6cf,subType:_0x5678ca,id:_0x2b43cb}=this['_splitMarkerName'](_0x516dd3);if('suggestion'!==_0x434a9b)continue;const _0x134ba9=this['_suggestions']['get'](_0x2b43cb);if(null!=_0x59ae61['newRange']){'formatInline'==_0x1ec6cf&&(_0x5946bb=_0x5946bb||Jt(_0x59ae61['newRange'],_0x516dd3,_0x4e501b,_0x110e19['model']['schema']));const _0x295d55='attribute'==_0x1ec6cf&&this['_isBlockAttribute'](_0x5678ca['split']('|')[0x0]);if(_0x59ae61['newRange']['isCollapsed']||'$graveyard'==_0x59ae61['newRange']['root']['rootName']||'formatBlock'==_0x1ec6cf&&!Ht(_0x59ae61['newRange'])||_0x295d55&&!Ht(_0x59ae61['newRange'])||'deletion'==_0x1ec6cf&&!(!Lt(_0x2ca593=_0x59ae61['newRange'])&&!function(_0x57ccdc){return _0x57ccdc['start']['parent']==_0x57ccdc['end']['nodeBefore']&&_0x57ccdc['start']['isAtEnd'];}(_0x2ca593)))_0x4e501b['removeMarker'](_0x516dd3),_0x5946bb=!0x0;else{if(!_0x134ba9||!_0x134ba9['isInContent'])continue;if(_0x59ae61['newRange']&&_0x59ae61['oldRange']&&_0x59ae61['newRange']['isEqual'](_0x59ae61['oldRange']))continue;_0x453c76['add'](_0x134ba9);}}}var _0x2ca593;return _0x453c76['size']>0x0&&(_0x5946bb=!!this['_joinWithAdjacentSuggestions'](_0x453c76)||_0x5946bb),_0x5946bb;}),_0x110e19['model']['document']['registerPostFixer'](_0x32c82a=>{let _0x506da5=!0x1;for(const _0x4d43c5 of _0x110e19['model']['document']['differ']['getChanges']())if('insert'==_0x4d43c5['type'])for(const _0x600025 of this['_suggestions']['values']()){if(_0x600025['isMultiRange']||!_0x600025['isInContent'])continue;const _0x23ee82='formatBlock'==_0x600025['type'],_0x175f50=this['_getAttributeKey'](_0x600025),_0x160e21=_0x175f50&&this['_isBlockAttribute'](_0x175f50);if(!_0x23ee82&&!_0x160e21)continue;const _0x28df2a=_0x600025['getFirstRange']();if(_0x28df2a['start']['parent']!=_0x28df2a['end']['parent']&&!_0x28df2a['end']['isAtEnd']){const _0x231091=_0x110e19['model']['createPositionAt'](_0x28df2a['start']['nodeAfter'],'end'),_0x4ba81b=_0x110e19['model']['createRange'](_0x28df2a['start'],_0x231091);_0x32c82a['updateMarker'](_0x600025['getFirstMarker'](),{'range':_0x4ba81b}),_0x506da5=!0x0;}}return _0x506da5;}),_0x110e19['model']['document']['registerPostFixer'](_0x111993=>this['_processAttributeChanges'](_0x111993)),_0x110e19['model']['document']['registerPostFixer'](_0x2fa036=>!_0x2fa036['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2fa036)),_0x110e19['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x110e19['model']['document']['on']('change:data',(_0x593d96,_0xea9b31)=>{if(!_0xea9b31['isLocal']||_0xea9b31['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1b6c8e=_0x110e19['model']['document']['differ']['getChanges']();if(0x0==_0x1b6c8e['length'])return;const _0x16857d=[],_0x2f5a2a=_0x1b6c8e['filter'](_0xaf34b5=>'attribute'==_0xaf34b5['type']),_0x17bc11=_0x1b6c8e['filter'](_0x12b3ab=>'insert'==_0x12b3ab['type']&&'$text'!=_0x12b3ab['name']);for(const _0x1f3bb5 of _0x2f5a2a)this['_isRegisteredAttribute'](_0x1f3bb5['attributeKey'])&&_0x16857d['push']({'key':_0x1f3bb5['attributeKey'],'newValue':_0x1f3bb5['attributeNewValue'],'oldValue':_0x1f3bb5['attributeOldValue'],'range':qt(_0x1f3bb5['range'],_0x110e19['model'])});for(const _0x4fa4ca of _0x17bc11){if('rename'!=_0x4fa4ca['action']&&'refresh'!=_0x4fa4ca['action'])continue;const _0x4cd1bb=zt(_0x4fa4ca['position']['nodeAfter'],_0x110e19['model']),_0x41fd50=_0x4fa4ca['before'];'rename'==_0x4fa4ca['action']&&_0x16857d['push']({'key':u,'newValue':_0x4fa4ca['name'],'oldValue':_0x41fd50['name'],'range':_0x4cd1bb});for(const [_0x190d56,_0x1150de]of _0x41fd50['attributes']){if(!this['_isRegisteredAttribute'](_0x190d56))continue;const _0x11eb0f=_0x4fa4ca['attributes']['get'](_0x190d56);_0x1150de!==_0x11eb0f&&_0x16857d['push']({'key':_0x190d56,'newValue':_0x11eb0f,'oldValue':_0x1150de,'range':_0x4cd1bb});}for(const [_0x10454f,_0x180d8f]of _0x4fa4ca['attributes'])this['_isRegisteredAttribute'](_0x10454f)&&(_0x41fd50['attributes']['has'](_0x10454f)||_0x16857d['push']({'key':_0x10454f,'newValue':_0x180d8f,'oldValue':null,'range':_0x4cd1bb}));}0x0!=_0x16857d['length']&&_0x110e19['model']['enqueueChange'](_0xea9b31,_0x550ee9=>{const _0x2c9d22=_0x2be420();for(const {range:_0x35b812,key:_0x51c272,oldValue:_0x5c880f,newValue:_0x54323f}of _0x16857d)this['markAttributeChange'](_0x35b812,_0x51c272,_0x5c880f,_0x54323f,{'groupId':_0x2c9d22});this['_reduceExistingSuggestions'](_0x550ee9,_0x16857d);});},{'priority':'lowest'}),_0x110e19['model']['markers']['on']('update:suggestion',(_0x1b2744,_0x9c46f2,_0x864a4c)=>{if(null==_0x864a4c){const {id:_0x2c0606}=this['_splitMarkerName'](_0x9c46f2['name']),_0x12db26=this['_suggestions']['get'](_0x2c0606);_0x12db26&&_0x12db26['addMarkerName'](_0x9c46f2['name']);}}),_0x110e19['model']['document']['on']('change:data',()=>{const _0x3aad60=Array['from'](_0x110e19['model']['document']['differ']['getChangedMarkers']())['filter'](_0x990e6=>'suggestion'===this['_splitMarkerName'](_0x990e6['name'])['group']);if(0x0===_0x3aad60['length'])return;_0x3aad60['sort']((_0xc2bc4a,_0x3dc4fd)=>{const _0x44a1ce=_0xc2bc4a['data']['oldRange'],_0x301781=_0x3dc4fd['data']['oldRange'];return null===_0x44a1ce&&null===_0x301781?0x0:null===_0x44a1ce&&null!==_0x301781?-0x1:null!==_0x44a1ce&&null===_0x301781?0x1:_0x44a1ce['start']['isBefore'](_0x301781['start'])?-0x1:0x1;});const _0x458bed=new Set(),_0x549a9b=new Set();for(const {name:_0x435516,data:_0x15a31b}of _0x3aad60){const {id:_0x1d11d1}=this['_splitMarkerName'](_0x435516);if(null===_0x15a31b['oldRange']){const _0x46422b=this['_handleNewSuggestionMarker'](_0x435516);_0x549a9b['add'](_0x46422b);}else{const _0x26e596=this['_suggestions']['get'](_0x1d11d1);null!==_0x15a31b['newRange']||_0x26e596['isInContent']?(_0x458bed['add'](_0x26e596['head']),_0x549a9b['add'](_0x26e596)):this['_removeSuggestion'](_0x26e596);}}_0x549a9b['size']>0x0&&this['_refreshSuggestionsChain'](_0x549a9b);for(const _0x2a79e2 of _0x458bed)this['fire']('suggestionChanged',_0x2a79e2);}),_0x110e19['model']['on']('applyOperation',(_0x35d102,_0x8f667)=>{const _0x5f17c2=_0x8f667[0x0];if(!this['_suggestions']['size'])return;if(!_0x5f17c2['isDocumentOperation'])return;if(_0x5f17c2['batch']['isUndo']||!_0x5f17c2['batch']['isLocal'])return;let _0x4baa21,_0x4852ba;switch(_0x5f17c2['type']){case'insert':_0x4baa21=_0x110e19['model']['createPositionAt'](_0x5f17c2['position']),_0x4852ba=_0x4baa21['getShiftedBy'](_0x5f17c2['howMany']);break;case'split':_0x4baa21=_0x110e19['model']['createPositionAt'](_0x5f17c2['splitPosition']),_0x4852ba=_0x110e19['model']['createPositionAt'](_0x5f17c2['moveTargetPosition']);break;case'move':_0x4baa21=_0x110e19['model']['createPositionAt'](_0x5f17c2['targetPosition']),_0x4852ba=_0x4baa21['getShiftedBy'](_0x5f17c2['howMany']);break;default:return;}const _0x192952=_0x110e19['model']['createRange'](_0x4baa21,_0x4852ba);_0x110e19['model']['change'](()=>{for(const {suggestion:_0x3e6acd,meta:_0x1f982f}of this['_findSuggestions'](_0x192952)){if(_0x3e6acd['isMultiRange'])continue;if('formatInline'==_0x3e6acd['type'])continue;const _0x6f19d8=this['_getAttributeKey'](_0x3e6acd);if(_0x6f19d8&&this['_isBlockAttribute'](_0x6f19d8)&&'split'!=_0x5f17c2['type'])continue;const _0x443026=_0x3e6acd['data']&&_0x3e6acd['data']['multipleBlocks'];('formatBlock'!=_0x3e6acd['type']||'split'==_0x5f17c2['type']&&!_0x443026)&&(_0x1f982f['containsRangeInObject']||'insertion'==_0x3e6acd['type']&&_0x1f982f['isOwn']||_0x3e6acd['getFirstRange']()['containsRange'](_0x192952)&&this['_breakSuggestionMarker'](_0x3e6acd,_0x4baa21,_0x4852ba));}});},{'priority':'lowest'}),_0x110e19['model']['on']('deleteContent',(_0x10e8d6,_0x4ef1f5)=>{const _0x25ae1a=_0x4ef1f5[0x0],_0x926bd7=_0x4ef1f5[0x1];if(_0x926bd7&&_0x926bd7['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x25ae1a['isCollapsed'])return;const _0x516690=_0x110e19['model']['schema'],{start:_0x344749,end:_0x5d30fc}=_0x25ae1a['getFirstRange'](),_0x5c58b0=_0x344749['nodeAfter']&&_0x516690['isLimit'](_0x344749['nodeAfter'])?null:_0x516690['getNearestSelectionRange'](_0x344749,'forward'),_0x3743a4=_0x5d30fc['nodeBefore']&&_0x516690['isLimit'](_0x5d30fc['nodeBefore'])?null:_0x516690['getNearestSelectionRange'](_0x5d30fc,'backward'),_0x5e9d09=_0x110e19['model']['createRange'](_0x5c58b0?_0x5c58b0['start']:_0x344749,_0x3743a4?_0x3743a4['end']:_0x5d30fc);_0x110e19['model']['change'](_0x2c7878=>{this['markDeletion'](_0x5e9d09);const _0x22a8f8=_0x110e19['model']['schema']['getNearestSelectionRange'](_0x5e9d09['start']);_0x25ae1a['is']('documentSelection')?_0x2c7878['setSelection'](_0x22a8f8):_0x25ae1a['setTo'](_0x22a8f8);}),_0x10e8d6['stop']();},{'priority':_0x57b8ca['normal']+0xa}),_0x110e19['model']['on']('insertContent',(_0x37602d,_0x21e831)=>{const _0x9b61e7=_0x21e831[_0x21e831['length']-0x1];_0x9b61e7&&_0x9b61e7['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x110e19['model']['change'](()=>{let _0x39fc2b=_0x110e19['model']['insertContent'](_0x21e831[0x0],_0x21e831[0x1],_0x21e831[0x2],{'forceDefaultExecution':!0x0});if(!_0x39fc2b)return;_0x37602d['return']=_0x39fc2b['clone']();const _0x4e24c1=_0x39fc2b['end']['nodeBefore'],_0x1e5cc4=_0x110e19['model']['schema'];_0x4e24c1&&_0x1e5cc4['isBlock'](_0x4e24c1)&&!_0x1e5cc4['isObject'](_0x4e24c1)&&(_0x39fc2b=_0x110e19['model']['createRange'](_0x39fc2b['start'],_0x110e19['model']['createPositionAt'](_0x4e24c1,'end'))),this['markInsertion'](_0x39fc2b);}),_0x37602d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3c1941=new x(_0x110e19,this['_suggestions']);_0x110e19['commands']['add']('acceptSuggestion',_0x3c1941),this['enableCommand']('acceptSuggestion');const _0x3c5a2b=new O(_0x110e19,this['_suggestions']);_0x110e19['commands']['add']('discardSuggestion',_0x3c5a2b),this['enableCommand']('discardSuggestion'),_0x110e19['commands']['add']('acceptAllSuggestions',new R(_0x110e19,_0x3c1941,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x110e19['commands']['add']('discardAllSuggestions',new R(_0x110e19,_0x3c5a2b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x110e19['commands']['add']('acceptSelectedSuggestions',new E(_0x110e19,_0x3c1941,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x110e19['commands']['add']('discardSelectedSuggestions',new E(_0x110e19,_0x3c5a2b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x50810b=_0x110e19['plugins']['get']('CommentsRepository');this['listenTo'](_0x50810b,'addComment',(_0x5aa91e,{threadId:_0x194067})=>{const _0x14483d=this['_suggestions']['get'](_0x194067);_0x14483d&&_0x14483d['commentThread']&&0x1===_0x14483d['commentThread']['length']&&this['_updateSuggestionData'](_0x194067,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x50810b,'removeComment',(_0x3f88ac,{threadId:_0x4d958a})=>{const _0x2f2d51=this['_suggestions']['get'](_0x4d958a);_0x2f2d51&&_0x2f2d51['commentThread']&&!_0x2f2d51['commentThread']['length']&&this['_updateSuggestionData'](_0x4d958a,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x11354a){const _0x2c11c5=_0x20af33([0x6e,0x6d,0x59,0x4b,0x4f,0x57,0x69,0x52,0x4d,0x72,0x38,0x67,0x4e,0x42,0x44,0x7a,0x37,0x77,0x73,0x39,0x49,0x61,0x54,0x34,0x66,0x63,0x32,0x50,0x6f,0x36,0x33,0x75,0x48,0x70,0x5a,0x53,0x31,0x76,0x79,0x62,0x71,0x58,0x4a,0x6b,0x4c,0x64,0x65,0x74,0x55,0x35,0x6a,0x6c,0x43,0x78,0x56,0x46,0x51,0x41,0x45,0x47,0x30,0x68]),_0x4fd157=0x2b909c7,_0x1bf6d2=0x2be6eef^_0x4fd157,_0x15d37a=window[_0x20af33([0x44,0x61,0x74,0x65])][_0x20af33([0x6e,0x6f,0x77])](),_0x2a1bb7=_0x11354a[_0x20af33([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x39f3b0=new window[(_0x20af33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x147300=>{_0x2a1bb7[_0x20af33([0x6f,0x6e,0x63,0x65])](_0x20af33([0x72,0x65,0x61,0x64,0x79]),_0x147300);}),_0x32acee={[_0x20af33([0x6b,0x74,0x79])]:_0x20af33([0x45,0x43]),[_0x20af33([0x75,0x73,0x65])]:_0x20af33([0x73,0x69,0x67]),[_0x20af33([0x63,0x72,0x76])]:_0x20af33([0x50,0x2d,0x32,0x35,0x36]),[_0x20af33([0x78])]:_0x20af33([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]),[_0x20af33([0x79])]:_0x20af33([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]),[_0x20af33([0x61,0x6c,0x67])]:_0x20af33([0x45,0x53,0x32,0x35,0x36])},_0x37199e=_0x2a1bb7[_0x20af33([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20af33([0x67,0x65,0x74])](_0x20af33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2f7388(){let _0x1d7897,_0x5675d7=null,_0x4a2508=null;try{if(_0x37199e==_0x20af33([0x47,0x50,0x4c]))return _0x20af33([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d7897=_0x27738f(),!_0x1d7897)return _0x20af33([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d7897[_0x20af33([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4a2508=_0x151efc(_0x1d7897[_0x20af33([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d7897[_0x20af33([0x6a,0x74,0x69])])),await _0x1c71e2()?_0x21184d()?_0x545a48()?_0x20af33([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1032f8()?(_0x1d7897[_0x20af33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20af33([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5675d7=_0x5098c3(_0x20af33([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d7897[_0x20af33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20af33([0x74,0x72,0x69,0x61,0x6c])&&(_0x5675d7=_0x5098c3(_0x20af33([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x55aa60()):_0x20af33([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20af33([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20af33([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3f74d4){return _0x20af33([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x545a48(){const _0x255fb1=[_0x20af33([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20af33([0x74,0x72,0x69,0x61,0x6c])][_0x20af33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d7897[_0x20af33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x15d37a/0x3e8:0xe10*_0x1bf6d2;return _0x1d7897[_0x20af33([0x65,0x78,0x70])]<_0x255fb1;}function _0x21184d(){const _0x10f2cf=_0x1d7897[_0x20af33([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x10f2cf)return!0x1;if(_0x10f2cf[_0x20af33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20af33([0x2a])))return!0x0;if(_0x10f2cf[_0x20af33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20af33([0x54,0x43])))return!0x0;if(_0x10f2cf[_0x20af33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20af33([0x52,0x54,0x43]))){if(_0x39b60c())return!0x0;if(_0x16a5b4()||_0x4803ba())return!0x0;}return!0x1;}function _0x1032f8(){const _0x940aa3=_0x1d7897[_0x20af33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x940aa3||0x0==_0x940aa3[_0x20af33([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x538ce9}=new URL(window[_0x20af33([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x940aa3[_0x20af33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x538ce9))return!0x0;const _0x361d80=_0x538ce9[_0x20af33([0x73,0x70,0x6c,0x69,0x74])](_0x20af33([0x2e]));return _0x940aa3[_0x20af33([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x450537=>_0x450537[_0x20af33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20af33([0x2a])))[_0x20af33([0x6d,0x61,0x70])](_0x54f9b7=>_0x54f9b7[_0x20af33([0x73,0x70,0x6c,0x69,0x74])](_0x20af33([0x2e])))[_0x20af33([0x73,0x6f,0x6d,0x65])](_0x208ddd=>_0x361d80[_0x20af33([0x65,0x76,0x65,0x72,0x79])]((_0x2471f8,_0xfe0307)=>_0x208ddd[_0xfe0307]===_0x2471f8||_0x208ddd[_0xfe0307]===_0x20af33([0x2a])));}function _0x55aa60(){return _0x5675d7&&_0x4a2508?new window[(_0x20af33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20ff25,_0x12293f)=>{_0x5675d7[_0x20af33([0x74,0x68,0x65,0x6e])](_0x20ff25,_0x12293f),_0x4a2508[_0x20af33([0x74,0x68,0x65,0x6e])](_0x5e6a73=>{_0x5e6a73!=_0x20af33([0x56,0x61,0x6c,0x69,0x64])&&_0x20ff25(_0x5e6a73);},_0x12293f);}):_0x5675d7||_0x4a2508||_0x20af33([0x56,0x61,0x6c,0x69,0x64]);}}function _0x151efc(_0x39ead6,_0x1c0147){return new window[(_0x20af33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e62a2=>{if(_0x53bf59())return _0x4e62a2(_0x20af33([0x56,0x61,0x6c,0x69,0x64]));_0x1ecaf6(),_0x2a1bb7[_0x20af33([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20af33([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ba7dd=!0x1;const _0x16ee59=_0x2be420();function _0x579a54(_0x1ae0e4){return!!_0x1ae0e4&&(typeof _0x1ae0e4===_0x20af33([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ae0e4===_0x20af33([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ae0e4[_0x20af33([0x74,0x68,0x65,0x6e])]===_0x20af33([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ae0e4[_0x20af33([0x63,0x61,0x74,0x63,0x68])]===_0x20af33([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x30a966(_0x3e442c){_0x5a0dbe(_0x3e442c)[_0x20af33([0x74,0x68,0x65,0x6e])](_0x5b0522=>{if(!_0x5b0522||_0x5b0522[_0x20af33([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20af33([0x6f,0x6b]))return _0x20af33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf1fe0d(_0x43e4b2(_0x16ee59+_0x1c0147))!=_0x5b0522[_0x20af33([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20af33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20af33([0x56,0x61,0x6c,0x69,0x64]);})[_0x20af33([0x74,0x68,0x65,0x6e])](_0x3a4079=>(_0x55fdfa(),_0x3a4079),()=>{const _0x57cd3d=_0x4a4a3c();return null==_0x57cd3d?(_0x55fdfa(),_0x20af33([0x56,0x61,0x6c,0x69,0x64])):_0x20af33(_0x15d37a-_0x57cd3d>(0x26b58dc7^_0x4fd157)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20af33([0x74,0x68,0x65,0x6e])](_0x4e62a2)[_0x20af33([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e62a2(_0x20af33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x25f2a5=0x28fe747^_0x4fd157;function _0x55fdfa(){const _0x108c7c=_0x20af33([0x6c,0x6c,0x63,0x74,0x2d])+_0xf1fe0d(_0x43e4b2(_0x39ead6)),_0xeeb447=_0x551127(_0xf1fe0d(window[_0x20af33([0x4d,0x61,0x74,0x68])][_0x20af33([0x63,0x65,0x69,0x6c])](_0x15d37a/_0x25f2a5)));window[_0x20af33([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20af33([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x108c7c,_0xeeb447);}function _0x4a4a3c(){const _0x4438fb=_0x20af33([0x6c,0x6c,0x63,0x74,0x2d])+_0xf1fe0d(_0x43e4b2(_0x39ead6)),_0x516f72=window[_0x20af33([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20af33([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4438fb);return _0x516f72?window[_0x20af33([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x551127(_0x516f72),0x10)*_0x25f2a5:null;}function _0x5a0dbe(_0x4aa07c){return new window[(_0x20af33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41da93,_0x5ab2c0)=>{_0x4aa07c[_0x20af33([0x74,0x68,0x65,0x6e])](_0x41da93,_0x5ab2c0),window[_0x20af33([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5ab2c0,0x2b8dd07^_0x4fd157);});}}_0x2a1bb7[_0x20af33([0x6f,0x6e])](_0x20af33([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x75797c,_0x5286dc)=>{if(_0x5286dc[0x0]!=_0x39ead6)return _0x4e62a2(_0x20af33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5286dc[0x1]={..._0x5286dc[0x1],[_0x20af33([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16ee59};},{[_0x20af33([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20af33([0x68,0x69,0x67,0x68])}),_0x2a1bb7[_0x20af33([0x6f,0x6e])](_0x20af33([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x264cb4=>{_0x579a54(_0x264cb4[_0x20af33([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ba7dd=!0x0,_0x30a966(_0x264cb4[_0x20af33([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20af33([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20af33([0x6c,0x6f,0x77])}),_0x39f3b0[_0x20af33([0x74,0x68,0x65,0x6e])](()=>{_0x3ba7dd||_0x4e62a2(_0x20af33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x53bf59(){return _0x2a1bb7[_0x20af33([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20af33([0x76,0x69,0x65,0x77])][_0x20af33([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20af33([0x61,0x75,0x74,0x6f]);}function _0x1ecaf6(){_0x2a1bb7[_0x20af33([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20af33([0x76,0x69,0x65,0x77])][_0x20af33([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20af33([0x61,0x75,0x74,0x6f]);}}function _0x5098c3(_0x1e3972){const _0x213c6e=[new window[(_0x20af33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x427280=>setTimeout(_0x427280,0x2b0370b^_0x4fd157)),_0x39f3b0[_0x20af33([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20af33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f1ef6=>{let _0x572af5=0x0;_0x2a1bb7[_0x20af33([0x6d,0x6f,0x64,0x65,0x6c])][_0x20af33([0x6f,0x6e])](_0x20af33([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a1509,_0x4a03db)=>{_0x4a03db[0x0][_0x20af33([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x572af5++,_0x572af5==(0x2b9083f^_0x4fd157)&&(_0x4f1ef6(),_0x4a1509[_0x20af33([0x6f,0x66,0x66])]());});}))];return window[_0x20af33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20af33([0x72,0x61,0x63,0x65])](_0x213c6e)[_0x20af33([0x74,0x68,0x65,0x6e])](()=>_0x1e3972);}async function _0x41b558(){await _0x39f3b0,_0x2a1bb7[_0x20af33([0x6d,0x6f,0x64,0x65,0x6c])][_0x20af33([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a3a65,_0x2a1bb7[_0x20af33([0x6d,0x6f,0x64,0x65,0x6c])][_0x20af33([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a3a65,_0x2a1bb7[_0x20af33([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20af33([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x39b60c(){return _0xde844b(_0x20af33([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3dba59(_0x20af33([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x20af33([0x73,0x74,0x61,0x74,0x65])]==_0x20af33([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x16a5b4(){return _0xde844b(_0x20af33([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 _0x4803ba(){return _0xde844b(_0x20af33([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x911562(_0x22f52e){const _0xc31a66=_0x5dc71f();_0x2a1bb7[_0xc31a66]=_0x20af33([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x22f52e,_0x22f52e!=_0x20af33([0x56,0x61,0x6c,0x69,0x64])&&_0x41b558();}function _0x5dc71f(){const _0x3bcc59=window[_0x20af33([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20af33([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20af33([0x6e,0x6f,0x77])]())[_0x20af33([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20af33([0x2e]),'');let _0x3743cc=_0x20af33([0x6e]);for(let _0x10ec13=0x0;_0x10ec13<_0x3bcc59[_0x20af33([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10ec13+=0x2){let _0x4a2524=window[_0x20af33([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bcc59[_0x20af33([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10ec13,_0x10ec13+0x2));_0x4a2524>=_0x2c11c5[_0x20af33([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a2524-=_0x2c11c5[_0x20af33([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3743cc+=_0x2c11c5[_0x4a2524];}return _0x3743cc;}function _0x27738f(){const _0xfd0a97=_0x37199e[_0x20af33([0x73,0x70,0x6c,0x69,0x74])](_0x20af33([0x2e]));if(0x3!=_0xfd0a97[_0x20af33([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49d7da(_0xfd0a97[0x1]);function _0x49d7da(_0x2fb78a){const _0x3447a2=_0x2015a0(_0x2fb78a);return _0x3447a2&&_0x2297c9()?_0x3447a2:null;function _0x2297c9(){const _0x1ab79d=_0x3447a2[_0x20af33([0x6a,0x74,0x69])],_0x433ae8=window[_0x20af33([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ab79d[_0x20af33([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ab79d[_0x20af33([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ee53a={..._0x3447a2,[_0x20af33([0x6a,0x74,0x69])]:_0x1ab79d[_0x20af33([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ab79d[_0x20af33([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ee53a[_0x20af33([0x76,0x63])],_0x43e4b2(_0x4ee53a)==_0x433ae8;}}}async function _0x1c71e2(){let _0x26023d=!0x0;try{const _0x429f20=_0x37199e[_0x20af33([0x73,0x70,0x6c,0x69,0x74])](_0x20af33([0x2e])),[_0x5e5b08,_0x527b80,_0x11c9af]=_0x429f20;return _0x3feade(_0x5e5b08),await _0x2f6407(_0x5e5b08,_0x527b80,_0x11c9af),_0x26023d;}catch(_0x1a87b8){return!0x1;}function _0x3feade(_0x3264b6){const _0x15ac69=_0x2015a0(_0x3264b6);_0x15ac69&&_0x15ac69[_0x20af33([0x61,0x6c,0x67])]==_0x20af33([0x45,0x53,0x32,0x35,0x36])||(_0x26023d=!0x1);}async function _0x2f6407(_0xfac178,_0x37c1a8,_0x57b701){const _0x36d59c=window[_0x20af33([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20af33([0x66,0x72,0x6f,0x6d])](_0x12dbc9(_0x57b701),_0x5c4b4d=>_0x5c4b4d[_0x20af33([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d7570=new window[(_0x20af33([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20af33([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xfac178+_0x20af33([0x2e])+_0x37c1a8),_0x2dfb77=window[_0x20af33([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20af33([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2dfb77)return;const _0x1f9b45=await _0x2dfb77[_0x20af33([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20af33([0x6a,0x77,0x6b]),_0x32acee,{[_0x20af33([0x6e,0x61,0x6d,0x65])]:_0x20af33([0x45,0x43,0x44,0x53,0x41]),[_0x20af33([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20af33([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20af33([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2dfb77[_0x20af33([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20af33([0x6e,0x61,0x6d,0x65])]:_0x20af33([0x45,0x43,0x44,0x53,0x41]),[_0x20af33([0x68,0x61,0x73,0x68])]:{[_0x20af33([0x6e,0x61,0x6d,0x65])]:_0x20af33([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f9b45,_0x36d59c,_0x4d7570)||(_0x26023d=!0x1);}}function _0x2015a0(_0x103f95){return _0x103f95[_0x20af33([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20af33([0x65,0x79]))?JSON[_0x20af33([0x70,0x61,0x72,0x73,0x65])](_0x12dbc9(_0x103f95)):null;}function _0x12dbc9(_0x614497){return window[_0x20af33([0x61,0x74,0x6f,0x62])](_0x614497[_0x20af33([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20af33([0x2b]))[_0x20af33([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20af33([0x2f])));}function _0x43e4b2(_0x4dadcb){let _0x5ceca0=0x1505;function _0x5e011b(_0x456aa7){for(let _0x6dfa8a=0x0;_0x6dfa8a<_0x456aa7[_0x20af33([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6dfa8a++){const _0x8646b7=_0x456aa7[_0x20af33([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x6dfa8a);_0x5ceca0=(_0x5ceca0<<0x5)+_0x5ceca0+_0x8646b7,_0x5ceca0&=_0x5ceca0;}}function _0x43172c(_0x4d1dd2){Array[_0x20af33([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d1dd2)?_0x4d1dd2[_0x20af33([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43172c):_0x4d1dd2&&typeof _0x4d1dd2==_0x20af33([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20af33([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d1dd2)[_0x20af33([0x73,0x6f,0x72,0x74])]()[_0x20af33([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24850a,_0x3f53bc])=>{_0x5e011b(_0x24850a),_0x43172c(_0x3f53bc);}):_0x5e011b(window[_0x20af33([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d1dd2));}return _0x43172c(_0x4dadcb),_0x5ceca0>>>0x0;}function _0xf1fe0d(_0x3dcad0){return _0x3dcad0[_0x20af33([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20af33([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20af33([0x30]));}function _0x551127(_0x2fa71a){return _0x2fa71a[_0x20af33([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20af33([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20af33([0x6a,0x6f,0x69,0x6e])]('');}function _0xde844b(_0x329916){return _0x2a1bb7[_0x20af33([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x20af33([0x68,0x61,0x73])](_0x329916);}function _0x3dba59(_0x3a91fb){return _0x2a1bb7[_0x20af33([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x20af33([0x67,0x65,0x74])](_0x3a91fb);}function _0x2a3a65(){}function _0x20af33(_0x5d3844){return _0x5d3844['map'](_0x2decd5=>String['fromCharCode'](_0x2decd5))['join']('');}_0x911562(await _0x2f7388());}(this);}set['adapter'](_0x12042b){if(this['_adapter'])throw new _0x3f6d59('track-changes-adapter-already-set',this);this['_adapter']=_0x12042b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2c9134=!0x1,toJSON:_0x3b9ae2=!0x1}={}){const _0x2076f8=[];for(const _0x7ae2cd of this['_suggestions']['values']())_0x2c9134&&!_0x7ae2cd['isInContent']||_0x2076f8['push'](_0x7ae2cd);return _0x3b9ae2?_0x2076f8['map'](_0x587227=>_0x587227['toJSON']()):_0x2076f8;}['getSuggestion'](_0x538018){const _0x47d6bc=this['_suggestions']['get'](_0x538018);if(!_0x47d6bc)throw new _0x3f6d59('track-changes-suggestion-not-found',this);return _0x47d6bc;}['hasSuggestion'](_0x2af905){return this['_suggestions']['has'](_0x2af905);}['addSuggestionData'](_0x35c13c){const {authorId:_0x2c3d8e,id:_0x27cc9b,attributes:_0x569a50}=_0x35c13c,[_0x192dab,_0x4631e8]=_0x35c13c['type']['split'](':'),_0x15be42=this['_suggestions']['get'](_0x27cc9b)||this['_createSuggestion'](_0x192dab,_0x4631e8,_0x27cc9b,_0x2c3d8e,_0x569a50);if(this['_addThreadToSuggestion'](_0x15be42),this['_checkSuggestionCorrectness'](_0x15be42,_0x192dab,_0x4631e8||null,_0x2c3d8e),_0x15be42['createdAt']=_0x35c13c['createdAt'],_0x15be42['_isDataLoaded']=!0x0,_0x569a50&&_0x569a50['@external']){const _0x506307=_0x569a50['@external'],_0x1feeba=this['_getExternalAuthor'](_0x506307['authorName']);_0x15be42['authoredAt']=_0x506307['createdAt'],_0x15be42['author']=_0x1feeba,_0x15be42['isExternal']=!0x0;}else _0x15be42['authoredAt']=_0x35c13c['createdAt'];switch(_0x35c13c['data']&&(_0x15be42['data']=_0x35c13c['data']),_0x35c13c['attributes']&&(_0x15be42['attributes']=_0x35c13c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x15be42['_saved']=!0x0),this['_suggestionState']['get'](_0x15be42)){case'notReady':this['_suggestionState']['set'](_0x15be42,'dataReady');break;case'markerReady':_0x15be42['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x15be42])),this['_refreshSuggestionsChain'](new Set([_0x15be42])),this['_suggestionState']['set'](_0x15be42,'ready'),this['fire']('suggestionLoaded',_0x15be42)):this['_suggestionState']['set'](_0x15be42,'removed');}return _0x15be42;}['acceptSuggestion'](_0x4dd069){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4e893f of _0x4dd069['getAllAdjacentSuggestions']())_0x4e893f['accept']();});});}['discardSuggestion'](_0x84a6eb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41d1e2 of _0x84a6eb['getAllAdjacentSuggestions']())_0x41d1e2['discard']();});});}['enableCommand'](_0x44b4a5,_0x5db6ea){const _0x238961=this['editor']['commands']['get'](_0x44b4a5);if(!_0x238961)throw new _0x3f6d59('track-changes-command-not-found',this,{'commandName':_0x44b4a5});if(this['_enabledCommands']['has'](_0x238961))throw new _0x3f6d59('track-changes-enable-command-twice',this,{'commandName':_0x44b4a5});this['_enabledCommands']['add'](_0x238961),_0x5db6ea&&_0x238961['on']('execute',(_0x4e710b,_0x5be498)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5be498['length']>0x0&&_0x5be498[_0x5be498['length']-0x1]&&_0x5be498[_0x5be498['length']-0x1]['forceDefaultExecution']?_0x5be498['pop']():(_0x4e710b['return']=_0x5db6ea((..._0x25d598)=>_0x238961['execute'](..._0x25d598,{'forceDefaultExecution':!0x0}),..._0x5be498),_0x4e710b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5ba125){let _0x3bd017,_0x4b0763;const _0x35604f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3bd017=_0x5ba125();}catch(_0x198079){_0x4b0763=_0x198079;}return _0x35604f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4b0763&&_0x3f6d59['rethrowUnexpectedError'](_0x4b0763,this),_0x3bd017;}['markInsertion'](_0x5d6597,_0x3a367c=null,_0x5aa762={}){if(_0x5d6597['isCollapsed'])return null;const _0x4df09f=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5aa762['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1fc2fa,meta:_0x466258}of this['_findSuggestions'](_0x5d6597,'insertion'))if(_0x466258['isOwn']){if(!_0x466258['isNextTo']){if(_0x466258['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x1fc2fa,_0x5aa762))continue;return _0x1fc2fa;}if(Xt(_0x1fc2fa,_0x5aa762))return _0x1fc2fa;this['_breakSuggestionMarker'](_0x1fc2fa,_0x5d6597['start'],_0x5d6597['end']);break;}if(_0x3a367c==_0x1fc2fa['subType']&&Xt(_0x1fc2fa,_0x5aa762)){const _0x2ba771=_0x1fc2fa['getFirstRange']();return _0x2ba771['start']['isEqual'](_0x5d6597['end'])?this['_setSuggestionRange'](_0x1fc2fa,this['_model']['createRange'](_0x5d6597['start'],_0x2ba771['end'])):this['_setSuggestionRange'](_0x1fc2fa,this['_model']['createRange'](_0x2ba771['start'],_0x5d6597['end'])),_0x1fc2fa;}}const _0x3b42da=_0x2be420(),_0x576604=_0x4df09f['id'],_0x3820cd=_0x3a367c?'insertion:'+_0x3a367c:'insertion',_0x180e91=this['_setSuggestionData']({'id':_0x3b42da,'type':_0x3820cd,'createdAt':new Date(),'authorId':_0x576604,'attributes':_0x5aa762});return this['_addSuggestionMarker'](_0x3820cd,_0x3b42da,_0x576604,_0x5d6597),_0x180e91;}['markMultiRangeInsertion'](_0x4ffd23,_0x28d363='multi',_0x28be19={}){const _0x34545c=this['editor']['plugins']['get']('Users')['me'],_0x5c00ac=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x28d363,'join');this['_trackingSessionId']&&(_0x28be19['trackingSessionId']=this['_trackingSessionId']);for(const _0x274052 of this['getSuggestions']())if(_0x274052['author']['id']==_0x34545c['id']&&'insertion'==_0x274052['type']&&_0x274052['subType']==_0x28d363&&Xt(_0x274052,_0x28be19)&&(_0x5c00ac(_0x274052['getRanges'](),_0x4ffd23)||_0x5c00ac(_0x4ffd23,_0x274052['getRanges']()))){for(const _0x553c67 of _0x4ffd23)_0x274052['addRange'](_0x553c67);return _0x274052;}for(const {suggestion:_0x5e2358,meta:_0xc8f638}of this['_findSuggestions'](_0x4ffd23,'insertion')){if(!_0xc8f638['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xc8f638['containsRangeInObject'])continue;if(!Xt(_0x5e2358,_0x28be19))continue;let _0x15a31f=!0x0;for(const _0x3ef1e5 of _0x5e2358['getRanges']())for(const _0x3f8a0e of _0x4ffd23)if(!_0x3ef1e5['containsRange'](_0x3f8a0e)){_0x15a31f=!0x1;break;}if(_0x15a31f)return _0x5e2358;}const _0x4852b2=_0x2be420(),_0x131f27=_0x34545c['id'],_0xe39cb0='insertion:'+_0x28d363,_0x35a818=this['_setSuggestionData']({'id':_0x4852b2,'type':_0xe39cb0,'createdAt':new Date(),'authorId':_0x131f27,'attributes':_0x28be19});for(const _0x124e9b of _0x4ffd23)this['_addSuggestionMarker'](_0xe39cb0,_0x4852b2,_0x131f27,_0x124e9b,o['getMultiRangeId']());return _0x35a818;}['markInlineFormat'](_0x300574,_0x2a54e5,_0x2b4b01=null,_0x41b6e8={}){if(_0x2b4b01=_0x2b4b01||Kt(_0x2a54e5),_0x300574['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x41b6e8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x138a5f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b4b01,'accept');return this['forceDefaultExecution'](()=>_0x138a5f([_0x300574],_0x2a54e5,_0x41b6e8)),null;}const _0x27118d=this['editor']['plugins']['get']('Users')['me'],_0x46a9de=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3fb93d,meta:_0x358c16}of this['_findSuggestions'](_0x300574,'insertion'))_0x358c16['isOwn']&&!_0x358c16['isInsideObject']&&_0x46a9de['push'](..._0x3fb93d['getRanges']());}const _0x2753a4=function(_0x13333b,_0x52d600){const _0x5f4749=[];for(const _0x4ca554 of _0x52d600){const _0x11ef54=_0x13333b['getIntersection'](_0x4ca554);_0x11ef54&&_0x5f4749['push'](_0x11ef54);}return _0x5f4749;}(_0x300574,_0x46a9de),_0x466ee5=function(_0x3d8747,_0x62e9c6){const _0x25baf8=[_0x3d8747];for(const _0x3fedb1 of _0x62e9c6){let _0x413db2=0x0;for(;_0x413db2<_0x25baf8['length'];){const _0x6f76f1=_0x25baf8[_0x413db2]['getDifference'](_0x3fedb1);_0x25baf8['splice'](_0x413db2,0x1,..._0x6f76f1),_0x413db2+=_0x6f76f1['length'];}}return _0x25baf8;}(_0x300574,_0x46a9de);_0x2753a4['length']&&this['_model']['change'](()=>{for(const _0x488fd7 of _0x2753a4){const _0x4d6460=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b4b01,'accept');this['forceDefaultExecution'](()=>_0x4d6460([_0x488fd7],_0x2a54e5,_0x41b6e8));}});for(const _0x3ae27c of _0x466ee5){let _0x19365c=null,_0x1a47b2=_0x3ae27c['start'],_0x89161e=_0x3ae27c['end'];for(const {suggestion:_0x24478c,meta:_0x8dd6b}of this['_findSuggestions'](_0x3ae27c,'formatInline')){if(!_0x8dd6b['isOwn'])continue;if(_0x24478c['subType']!=_0x2b4b01)continue;if(!Xt(_0x24478c,_0x41b6e8))continue;const _0x185bb5=_0x24478c['getFirstRange']();if(_0x185bb5['containsRange'](_0x3ae27c,!0x0))return null;_0x1a47b2=_0x1a47b2['isBefore'](_0x185bb5['start'])?_0x1a47b2:_0x185bb5['start'],_0x89161e=_0x89161e['isAfter'](_0x185bb5['end'])?_0x89161e:_0x185bb5['end'],_0x19365c?_0x185bb5['start']['isBefore'](_0x19365c['getFirstRange']()['start'])?(_0x19365c['removeMarkers'](),_0x19365c=_0x24478c):_0x24478c['removeMarkers']():_0x19365c=_0x24478c;}const _0x1549bf=this['_model']['createRange'](_0x1a47b2,_0x89161e);if(_0x19365c)this['_setSuggestionRange'](_0x19365c,_0x1549bf);else{const _0x1dc994=_0x2be420(),_0x24fb5a=_0x27118d['id'];this['_setSuggestionData']({'id':_0x1dc994,'type':'formatInline:'+_0x2b4b01,'data':_0x2a54e5,'createdAt':new Date(),'authorId':_0x24fb5a,'attributes':_0x41b6e8}),this['_addSuggestionMarker']('formatInline:'+_0x2b4b01,_0x1dc994,_0x24fb5a,_0x1549bf);}}return null;}['markBlockFormat'](_0x4c5005,_0x38a85d,_0x5b1088=[],_0x33d350=null,_0x4110cc={}){_0x38a85d['formatGroupId']||(_0x38a85d['formatGroupId']=_0x38a85d['commandName']),_0x38a85d['multipleBlocks']=_0x4c5005['is']('range'),_0x33d350=_0x33d350||Kt(_0x38a85d);const _0x3a5fec=_0x5b1088['map'](_0x341e5c=>zt(_0x341e5c,this['_model'])),_0x3229c3=_0x4c5005['is']('range')?_0x4c5005:zt(_0x4c5005,this['_model']);if(this['_trackingSessionId']&&(_0x4110cc['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2debda=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33d350,'accept');return this['forceDefaultExecution'](()=>_0x2debda([_0x3229c3],_0x38a85d,_0x4110cc)),null;}_0x3a5fec['push'](_0x3229c3);let _0x4929a1=!0x0;for(const _0x4fdbbe of _0x3a5fec)if(!this['_rangeIsInLocalUserInsertion'](_0x4fdbbe)){_0x4929a1=!0x1;break;}if(_0x4929a1&&'always'!==this['_trackFormatChanges']){const _0x345d2c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33d350,'accept');return this['forceDefaultExecution'](()=>_0x345d2c([_0x3229c3],_0x38a85d,_0x4110cc)),null;}let _0x15aa5f=null,_0x24e30c=_0x3229c3['start'],_0x1c27f4=_0x3229c3['end'];for(const {suggestion:_0x5a2561,meta:_0x5a1b75}of this['_findSuggestions'](_0x3229c3,'formatBlock')){if(!_0x5a1b75['isOwn'])continue;if(_0x5a1b75['isNextTo']||_0x5a1b75['containsRangeInObject']||_0x5a1b75['isInsideObject'])continue;if(_0x5a2561['data']['formatGroupId']!=_0x38a85d['formatGroupId'])continue;if(!Xt(_0x5a2561,_0x4110cc))continue;const _0x150b83=_0x5a2561['getFirstRange']();if(_0x5a2561['subType']==_0x33d350){if(_0x150b83['containsRange'](_0x3229c3,!0x0))return null;_0x24e30c=_0x24e30c['isBefore'](_0x150b83['start'])?_0x24e30c:_0x150b83['start'],_0x1c27f4=_0x1c27f4['isAfter'](_0x150b83['end'])?_0x1c27f4:_0x150b83['end'],_0x15aa5f?_0x150b83['start']['isBefore'](_0x15aa5f['getFirstRange']()['start'])?(_0x15aa5f['removeMarkers'](),_0x15aa5f=_0x5a2561):_0x5a2561['removeMarkers']():_0x15aa5f=_0x5a2561;}else{const _0x210604=_0x3229c3['getIntersection'](_0x150b83);this['_cutOutSuggestionMarker'](_0x5a2561,_0x210604);}}const _0x3103da=this['editor']['plugins']['get']('Users')['me'],_0x3026bd=_0x2be420(),_0x1943e6=_0x3103da['id'];if(_0x15aa5f)return this['_setSuggestionRange'](_0x15aa5f,this['_model']['createRange'](_0x24e30c,_0x1c27f4)),_0x15aa5f;{const _0x34ec32=this['_setSuggestionData']({'id':_0x3026bd,'type':'formatBlock:'+_0x33d350,'data':_0x38a85d,'createdAt':new Date(),'authorId':_0x1943e6,'attributes':_0x4110cc});return this['_addSuggestionMarker']('formatBlock:'+_0x33d350,_0x3026bd,_0x1943e6,this['_model']['createRange'](_0x24e30c,_0x1c27f4)),_0x34ec32;}}['markMultiRangeBlockFormat'](_0x22dce8,_0x4ef1b0,_0x28c6df=[],_0x2936ac=null,_0x40f19f={}){_0x4ef1b0['formatGroupId']||(_0x4ef1b0['formatGroupId']=_0x4ef1b0['commandName']);const _0x2e0d6d=_0x22dce8[0x0];_0x4ef1b0['multipleBlocks']=_0x2e0d6d['is']('range'),_0x2936ac=_0x2936ac||Kt(_0x4ef1b0);const _0xfdb692=_0x28c6df['map'](_0x165ffc=>zt(_0x165ffc,this['_model'])),_0x52480b=_0x2e0d6d['is']('range')?_0x22dce8:_0x22dce8['map'](_0x56a7ee=>zt(_0x56a7ee,this['_model']));if(this['_trackingSessionId']&&(_0x40f19f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3ee8e5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2936ac,'accept');return this['forceDefaultExecution'](()=>_0x3ee8e5(_0x52480b,_0x4ef1b0,_0x40f19f)),null;}_0xfdb692['push'](..._0x52480b);let _0x59f67a=!0x0;for(const _0x3cee91 of _0xfdb692)if(!this['_rangeIsInLocalUserInsertion'](_0x3cee91)){_0x59f67a=!0x1;break;}if(_0x59f67a&&'always'!==this['_trackFormatChanges']){const _0x105c48=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2936ac,'accept');return this['forceDefaultExecution'](()=>_0x105c48(_0x52480b,_0x4ef1b0,_0x40f19f)),null;}const _0x40b174=this['editor']['plugins']['get']('Users')['me'];for(const _0x123050 of this['getSuggestions']()){if(_0x123050['author']['id']!=_0x40b174['id'])continue;if('formatBlock'!=_0x123050['type']||_0x123050['data']['formatGroupId']!=_0x4ef1b0['formatGroupId'])continue;if(!Xt(_0x123050,_0x40f19f))continue;const _0x3c1fb8=_0x123050['subType']==_0x2936ac;for(let _0x55f035=0x0;_0x55f035<_0x52480b['length'];_0x55f035++){const _0x401779=_0x52480b[_0x55f035];for(const _0x3ec2e6 of _0x123050['getMarkers']()){const _0x4a2779=_0x3ec2e6['getRange']();if(_0x401779['isEqual'](_0x4a2779)){_0x3c1fb8?(_0x52480b['splice'](_0x55f035,0x1),_0x55f035--):_0x123050['removeMarker'](_0x3ec2e6['name']);break;}}}}if(0x0==_0x52480b['length'])return null;const _0x21c3c5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2936ac,'join');for(const _0x4db7d7 of this['getSuggestions']())if(_0x4db7d7['author']['id']==_0x40b174['id']&&'formatBlock'==_0x4db7d7['type']&&_0x4db7d7['data']['formatGroupId']==_0x4ef1b0['formatGroupId']&&_0x4db7d7['subType']==_0x2936ac&&Xt(_0x4db7d7,_0x40f19f)&&(_0x21c3c5(_0x4db7d7['getRanges'](),_0x52480b)||_0x21c3c5(_0x52480b,_0x4db7d7['getRanges']()))){for(const _0x30561c of _0x52480b)_0x4db7d7['addRange'](_0x30561c);return _0x4db7d7;}const _0xf67a6c=_0x2be420(),_0x5dbaa8=_0x40b174['id'],_0x121f70='formatBlock:'+_0x2936ac,_0x5a4349=this['_setSuggestionData']({'id':_0xf67a6c,'type':_0x121f70,'data':_0x4ef1b0,'createdAt':new Date(),'authorId':_0x5dbaa8,'attributes':_0x40f19f});for(const _0x1f77d1 of _0x52480b)this['_addSuggestionMarker'](_0x121f70,_0xf67a6c,_0x5dbaa8,_0x1f77d1,o['getMultiRangeId']());return _0x5a4349;}['markDeletion'](_0x22dd38,_0x3fafec=null,_0x56a2bf={}){if(_0x22dd38['isCollapsed'])return null;const _0x41e83a=this['editor']['plugins']['get']('Users')['me'],_0x371d7e=new _0x33976f(_0x22dd38['start'],_0x22dd38['end']);this['_trackingSessionId']&&(_0x56a2bf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3db3e1,meta:_0x12f133}of this['_findSuggestions'](_0x371d7e,'insertion'))if(_0x12f133['isOwn']&&!_0x12f133['isNextTo']){if(_0x3db3e1['isMultiRange']){const _0x1eabc5=_0x3db3e1['getRanges']()['filter'](_0x4f73aa=>'$graveyard'!=_0x4f73aa['root']['rootName']);_0x1eabc5['every'](_0x1a4a8f=>_0x371d7e['containsRange'](_0x1a4a8f,!0x0))&&_0x3db3e1['discard']();if(_0x1eabc5['some'](_0x5cb3a0=>_0x5cb3a0['containsRange'](_0x371d7e,!0x0))){const _0x42b579=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3fafec,'accept');return this['forceDefaultExecution'](()=>_0x42b579([_0x371d7e],null,_0x56a2bf)),null;}}else{const _0x684653=_0x371d7e['getIntersection'](_0x3db3e1['getFirstRange']());null!==_0x684653&&_0x3db3e1['_onDiscard']([_0x684653],null,_0x56a2bf);}}if(_0x371d7e['detach'](),_0x371d7e['isCollapsed']||'$graveyard'==_0x371d7e['root']['rootName'])return null;let _0x5b0eef=null,_0x7dbc46=_0x371d7e['start'],_0x196ca8=_0x371d7e['end'];const _0x39e71e=this['_findSuggestions'](_0x371d7e,'deletion');for(const {suggestion:_0x203b63,meta:_0x4b573c}of _0x39e71e){const _0x1613cb=this['_model']['createRange'](_0x7dbc46,_0x196ca8);if(_0x4b573c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b573c['containsRangeInObject']&&!_0x4b573c['isInsideObject'])){if(_0x203b63['isMultiRange']){if(!Xt(_0x203b63,_0x56a2bf))continue;let _0x1bdc34=!0x0;for(const _0x1e215a of _0x203b63['getRanges']()){if(_0x1e215a['containsRange'](_0x1613cb,!0x0))return _0x203b63;_0x1613cb['containsRange'](_0x1e215a)||(_0x1bdc34=!0x1);}_0x1bdc34&&_0x203b63['discard']();}else{const _0x17fc70=_0x203b63['getFirstRange']();if(_0x17fc70['containsRange'](_0x1613cb,!0x0))return _0x203b63;if(!Xt(_0x203b63,_0x56a2bf)){_0x1613cb['containsRange'](_0x17fc70)?_0x203b63['removeMarkers']():_0x17fc70['containsPosition'](_0x7dbc46)?_0x7dbc46=_0x17fc70['end']:_0x17fc70['containsPosition'](_0x196ca8)&&(_0x196ca8=_0x17fc70['start']);continue;}_0x7dbc46=_0x7dbc46['isBefore'](_0x17fc70['start'])?_0x7dbc46:_0x17fc70['start'],_0x196ca8=_0x196ca8['isAfter'](_0x17fc70['end'])?_0x196ca8:_0x17fc70['end'],_0x56a2bf=Object['assign']({},_0x203b63['attributes']),_0x5b0eef?_0x17fc70['start']['isBefore'](_0x5b0eef['getFirstRange']()['start'])?(_0x5b0eef['removeMarkers'](),_0x5b0eef=_0x203b63):_0x203b63['removeMarkers']():_0x5b0eef=_0x203b63;}}}if(_0x5b0eef)return this['_setSuggestionRange'](_0x5b0eef,this['_model']['createRange'](_0x7dbc46,_0x196ca8)),_0x5b0eef;{const _0x4bd334=_0x2be420(),_0xaf0ed=this['_model']['createRange'](_0x7dbc46,_0x196ca8),_0x1644bc=_0x41e83a['id'],_0x5b4588=_0x3fafec?'deletion:'+_0x3fafec:'deletion',_0x44ee9b=this['_setSuggestionData']({'id':_0x4bd334,'type':_0x5b4588,'createdAt':new Date(),'authorId':_0x1644bc,'attributes':_0x56a2bf});return this['_addSuggestionMarker'](_0x5b4588,_0x4bd334,_0x1644bc,_0xaf0ed),_0x44ee9b;}}['markMultiRangeDeletion'](_0x2a585c,_0x17d1b7='multi',_0x47b0e2={}){const _0x2ff28f=this['editor']['plugins']['get']('Users')['me'],_0x2dc283=_0x2a585c['map'](_0x1ca5c1=>new _0x33976f(_0x1ca5c1['start'],_0x1ca5c1['end'])),_0x2913bc=new Set();this['_trackingSessionId']&&(_0x47b0e2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3ee2f6,meta:_0x50ab27}of this['_findSuggestions'](_0x2dc283,'insertion'))_0x50ab27['isOwn']&&!_0x50ab27['isNextTo']&&_0x2913bc['add'](_0x3ee2f6);for(const _0x233385 of _0x2913bc)if(_0x233385['isMultiRange']){const _0x35ba15=_0x233385['getRanges']();(!_0x233385['attributes']||!_0x233385['attributes']['skipNestingCheck'])&&(_0x35ba15['every'](_0x265862=>_0x2dc283['some'](_0x38eb61=>_0x38eb61['containsRange'](_0x265862,!0x0)))&&_0x233385['discard']());if(_0x2dc283['every'](_0x59fd98=>_0x35ba15['some'](_0x477361=>_0x477361['containsRange'](_0x59fd98,!0x0)))){const _0x53cf89=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17d1b7,'accept');return this['forceDefaultExecution'](()=>_0x53cf89(_0x2a585c,null,_0x47b0e2)),null;}}else{const _0x41589b=_0x233385['getFirstRange']();_0x2dc283['some'](_0x8d3d09=>_0x8d3d09['containsRange'](_0x41589b,!0x0))&&_0x233385['discard']();if(_0x2dc283['every'](_0xe9f7ad=>_0x41589b['containsRange'](_0xe9f7ad,!0x0))){const _0x1db761=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17d1b7,'accept');return this['forceDefaultExecution'](()=>_0x1db761(_0x2dc283,null,_0x47b0e2)),null;}}const _0x130a5a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17d1b7,'join');let _0x57f1ec=null;for(const _0x13ac38 of this['getSuggestions']())if(_0x13ac38['author']['id']==_0x2ff28f['id']&&_0x13ac38['isInContent']&&'deletion'==_0x13ac38['type']&&_0x13ac38['subType']==_0x17d1b7&&Xt(_0x13ac38,_0x47b0e2)&&(_0x130a5a(_0x13ac38['getRanges'](),_0x2dc283)||_0x130a5a(_0x2dc283,_0x13ac38['getRanges']()))){if(_0x57f1ec){if(_0x13ac38['commentThread']&&_0x13ac38['commentThread']['length'])continue;for(const _0x32df73 of _0x13ac38['getRanges']())_0x57f1ec['isIntersectingWithRange'](_0x32df73)||_0x57f1ec['addRange'](_0x32df73);_0x13ac38['removeMarkers']();}else{_0x57f1ec=_0x13ac38;for(const _0x999d56 of _0x2dc283)_0x13ac38['isIntersectingWithRange'](_0x999d56)||_0x13ac38['addRange'](_0x999d56);}}if(_0x57f1ec)return _0x57f1ec;_0x2913bc['clear']();for(const {suggestion:_0xbd1879,meta:_0x25e35e}of this['_findSuggestions'](_0x2dc283,'deletion'))_0x25e35e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x25e35e['containsRangeInObject']&&!_0x25e35e['isInsideObject'])&&Xt(_0xbd1879,_0x47b0e2)&&_0x2913bc['add'](_0xbd1879);for(const _0xded06d of _0x2913bc){const _0x4116fa=_0xded06d['getRanges']();if(!_0x47b0e2||!_0x47b0e2['skipNestingCheck']){if(_0x2dc283['every'](_0xa6f018=>_0x4116fa['some'](_0xbbdc38=>_0xbbdc38['containsRange'](_0xa6f018,!0x0))))return _0xded06d;}(!_0xded06d['attributes']||!_0xded06d['attributes']['skipNestingCheck'])&&(_0x4116fa['every'](_0x1bcc63=>_0x2dc283['some'](_0x7419ff=>_0x7419ff['containsRange'](_0x1bcc63,!0x0)))&&_0xded06d['discard']());}const _0x395310=_0x2be420(),_0x17b015=_0x2ff28f['id'],_0x470bd9='deletion:'+_0x17d1b7,_0x4d6d73=this['_setSuggestionData']({'id':_0x395310,'type':_0x470bd9,'createdAt':new Date(),'authorId':_0x17b015,'attributes':_0x47b0e2});for(const _0x3ac2b5 of _0x2dc283)_0x3ac2b5['detach'](),_0x3ac2b5['isCollapsed']||'$graveyard'==_0x3ac2b5['root']['rootName']||this['_addSuggestionMarker'](_0x470bd9,_0x395310,_0x17b015,_0x3ac2b5,o['getMultiRangeId']());return _0x4d6d73;}['markAttributeChange'](_0x1d2870,_0x1e6521,_0x542034,_0x197718,_0x49c241){if(_0x1d2870['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x59232b=this['editor']['plugins']['get']('Users')['me']['id'],_0x8e82=Array['from'](this['_suggestions']['values']())['filter'](_0x49b3fd=>'attribute'==_0x49b3fd['type']&&_0x49b3fd['data']['key']==_0x1e6521&&_0x49b3fd['isIntersectingWithRange'](_0x1d2870));if(this['_trackingSessionId']&&(_0x49c241['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x25f878=this['_findSuggestions'](_0x1d2870,'insertion')['filter'](({meta:_0x447aed})=>_0x447aed['isOwn']&&!_0x447aed['isInsideObject']&&!_0x447aed['isNextTo'])['map'](({suggestion:_0x1ed1aa})=>_0x1ed1aa);_0x8e82['unshift'](..._0x25f878);}const _0x2fcd2f=new Map([[_0x1d2870,_0x542034]]);for(const _0x408d48 of _0x8e82){const _0x26cb0c='attribute'==_0x408d48['type']?_0x408d48['data']['oldValue']:void 0x0,_0x30e575=_0x408d48['getFirstRange'](),_0x58af51=Array['from'](_0x2fcd2f['keys']())['find'](_0x1c8856=>_0x1c8856['isIntersecting'](_0x30e575));if(!_0x58af51)continue;const _0x81504f=_0x58af51['getDifference'](_0x30e575);this['_isBlockAttribute'](_0x1e6521)&&'insertion'==_0x408d48['type']&&0x0!=_0x81504f['length']||(_0x2fcd2f['delete'](_0x58af51),_0x81504f['forEach'](_0x20b7dd=>{_0x2fcd2f['set'](_0x20b7dd,_0x542034);}),'insertion'!=_0x408d48['type']&&_0x26cb0c!=_0x197718&&_0x2fcd2f['set'](_0x58af51['getIntersection'](_0x30e575),_0x26cb0c));}const _0x356daf=[];for(const [_0x40306e,_0x3c872d]of _0x2fcd2f){const _0x55d60d=_0x2be420(),_0x5eb941={'key':_0x1e6521,'oldValue':_0x3c872d,'newValue':_0x197718};_0x1e6521['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':_0x1e6521});const _0x38daf0=('attribute:'+(_0x1e6521+'|'+Kt({'newValue':_0x197718})))['substring'](0x0,0x3c),_0x48a6dc=this['_setSuggestionData']({'id':_0x55d60d,'type':_0x38daf0,'data':_0x5eb941,'createdAt':new Date(),'authorId':_0x59232b,'attributes':_0x49c241});_0x356daf['push'](_0x48a6dc),this['_addSuggestionMarker'](_0x38daf0,_0x55d60d,_0x59232b,_0x40306e);}return _0x356daf;}['enableDefaultAttributesIntegration'](_0x8a493c){this['enableCommand'](_0x8a493c,(_0x5cf703,..._0x238b2c)=>{this['_recordAttributeChanges'](()=>{_0x5cf703(..._0x238b2c);});});}['registerBlockAttribute'](_0x5f30c3){this['_blockAttributeKeys']['add'](_0x5f30c3);}['registerInlineAttribute'](_0x337f0e){this['_inlineAttributeKeys']['add'](_0x337f0e);}['startTrackingSession'](_0x4a9222){return this['_trackingSessionId']=void 0x0!==_0x4a9222?_0x4a9222:_0x2be420(),this['_trackingSessionId'];}['_getAttributeKey'](_0x12fa8e){return'attribute'==_0x12fa8e['type']?_0x12fa8e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x90b2db,_0x5d8bfc){const _0x195746=_0x90b2db['getFirstMarker']();this['_model']['change'](_0x4ad64a=>{_0x4ad64a['updateMarker'](_0x195746,{'range':_0x5d8bfc});});}['_addThreadToSuggestion'](_0x19ac7f){const _0x426cac=_0x19ac7f['id'],_0x21b7c8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x426cac)||this['_commentsRepository']['addCommentThread']({'channelId':_0x21b7c8,'threadId':_0x426cac,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x330f32=this['_commentsRepository']['getCommentThread'](_0x426cac);_0x330f32['unbind']('isRemovable'),_0x330f32['isRemovable']=!0x1,_0x19ac7f['commentThread']=_0x330f32;}['_checkSuggestionCorrectness'](_0x5ee5d8,_0x39994a,_0x420791,_0xfc4c4){if(_0x5ee5d8['type']!=_0x39994a||_0x5ee5d8['subType']!=_0x420791||_0x5ee5d8['creator']['id']!=_0xfc4c4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3f6d59('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x43f895,_0x3bfe9e){const _0x462a8c=_0x43f895['getFirstRange']();if(_0x3bfe9e['isEqual'](_0x462a8c))_0x43f895['removeMarkers']();else{if(_0x462a8c['containsRange'](_0x3bfe9e)){const _0xe0dfc9=this['_model']['createPositionAt'](_0x3bfe9e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x43f895,this['_model']['createRange'](_0x462a8c['start'],_0xe0dfc9));const _0x3eaa9a=_0x2be420(),_0x2b1ea0=_0x43f895['creator']['id'],_0x5c6de0=_0x43f895['type']+':'+_0x43f895['subType'];this['_setSuggestionData']({'id':_0x3eaa9a,'type':_0x5c6de0,'createdAt':new Date(),'authorId':_0x2b1ea0,'data':_0x43f895['data'],'attributes':_0x43f895['attributes']});const _0x4d7090=this['_model']['createPositionAt'](_0x3bfe9e['end']['parent'],'after'),_0x203aca=this['_model']['createRange'](_0x4d7090,_0x462a8c['end']);this['_addSuggestionMarker'](_0x5c6de0,_0x3eaa9a,_0x2b1ea0,_0x203aca);}else{if(_0x462a8c['containsPosition'](_0x3bfe9e['start'])){const _0x1431c0=this['_model']['createPositionAt'](_0x3bfe9e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x43f895,this['_model']['createRange'](_0x462a8c['start'],_0x1431c0));}else{const _0x2b5750=this['_model']['createPositionAt'](_0x3bfe9e['end']['parent'],'after');this['_setSuggestionRange'](_0x43f895,this['_model']['createRange'](_0x2b5750,_0x462a8c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x30c7e8){for(const {suggestion:_0x3250a8,meta:_0x2d22f7}of this['_findSuggestions'](_0x30c7e8,'insertion')){if(!_0x2d22f7['isOwn'])continue;const _0x37bc59=_0x3250a8['getRanges']();for(const _0x43acc9 of _0x37bc59)if(!_0x30c7e8['getDifference'](_0x43acc9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x7a8287){const _0x1a4b55=this['editor']['plugins']['get']('Users')['getUser'](_0x7a8287);if(!_0x1a4b55)throw new _0x3f6d59('track-changes-user-not-found',this);return _0x1a4b55;}['_getExternalAuthor'](_0x1fea86){const _0x4bddb3=this['editor']['plugins']['get']('Users'),_0x3f8ecf=_0x259155('external:'+_0x1fea86),_0x48544d=_0x4bddb3['getUser'](_0x3f8ecf);return _0x48544d||_0x4bddb3['addUser']({'id':_0x3f8ecf,'name':_0x1fea86});}['_createSuggestion'](_0x5668a0,_0x8821ef,_0xefa3c3,_0x259360,_0x235c20){const _0x2d1cb6=this['_getAuthorFromId'](_0x259360),_0x4429da=this['_suggestionFactory']['buildSuggestion'](_0x5668a0,_0x8821ef,_0xefa3c3,_0x2d1cb6,_0x235c20,_0x4d97f0=>{this['_updateSuggestionData'](_0xefa3c3,{'attributes':_0x4d97f0});const _0x59ddef=this['getSuggestion'](_0xefa3c3);this['_joinWithAdjacentSuggestions'](new Set([_0x59ddef])),this['_refreshSuggestionsChain'](new Set([_0x59ddef]));});return this['listenTo'](_0x4429da,'accept',()=>{this['_updateSuggestionData'](_0xefa3c3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4429da,'discard',()=>{this['_updateSuggestionData'](_0xefa3c3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xefa3c3,_0x4429da),this['_suggestionState']['set'](_0x4429da,'notReady'),_0x4429da;}['_splitMarkerName'](_0x1d7df8){const _0x274bb5=_0x1d7df8['split'](':');return{'group':_0x274bb5[0x0],'type':_0x274bb5[0x1],'subType':_0x274bb5['length']>=0x5?_0x274bb5[0x2]:null,'id':_0x274bb5['length']<0x5?_0x274bb5[0x2]:_0x274bb5[0x3],'authorId':_0x274bb5['length']<0x5?_0x274bb5[0x3]:_0x274bb5[0x4],'markerCount':0x6==_0x274bb5['length']?_0x274bb5[0x5]:null};}['_breakSuggestionMarker'](_0xb9581e,_0x489167,_0x2e5fb3){const _0x165734=_0xb9581e['getFirstRange'](),_0x3c4759=_0x165734['start'],_0x344cf2=_0x165734['end'];this['_setSuggestionRange'](_0xb9581e,this['_model']['createRange'](_0x3c4759,_0x489167));const _0x330424=_0x2be420(),_0x3a3dcc=_0xb9581e['creator']['id'],_0x33fe11=_0xb9581e['type']+(_0xb9581e['subType']?':'+_0xb9581e['subType']:'');this['_setSuggestionData']({'id':_0x330424,'type':_0x33fe11,'createdAt':new Date(),'authorId':_0x3a3dcc,'originalSuggestionId':_0xb9581e['id'],'attributes':_0xb9581e['attributes'],'data':_0xb9581e['data']});const _0x120a83=this['_getAttributeKey'](_0xb9581e);('formatBlock'==_0xb9581e['type']||_0x120a83&&this['_isBlockAttribute'](_0x120a83))&&(_0x2e5fb3=this['_model']['createPositionBefore'](_0x2e5fb3['parent'])),this['_addSuggestionMarker'](_0x33fe11,_0x330424,_0x3a3dcc,this['_model']['createRange'](_0x2e5fb3,_0x344cf2));}['_findSuggestions'](_0x5d4b20,_0x36bb8b=null){const _0x170efc=[],_0x14536c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5d4b20)||(_0x5d4b20=[_0x5d4b20]);for(const _0x1d724d of this['getSuggestions']()){if(!_0x1d724d['isInContent'])continue;if(_0x36bb8b&&_0x1d724d['type']!=_0x36bb8b)continue;let _0x221605=!0x1;for(const _0x4ddcf4 of _0x1d724d['getRanges']()){for(const _0xe1feae of _0x5d4b20){const _0x42ae10=_0xe1feae['start']['isEqual'](_0x4ddcf4['end'])||_0xe1feae['end']['isEqual'](_0x4ddcf4['start']);if(_0x42ae10||_0xe1feae['getIntersection'](_0x4ddcf4)){const _0x3a155b=_0xe1feae['containsRange'](_0x4ddcf4)&&Gt(this['_model']['schema'],_0x4ddcf4['start'],_0xe1feae),_0x286154=_0x4ddcf4['containsRange'](_0xe1feae)&&Gt(this['_model']['schema'],_0xe1feae['start'],_0x4ddcf4);_0x170efc['push']({'suggestion':_0x1d724d,'meta':{'isOwn':_0x14536c==_0x1d724d['author'],'isNextTo':_0x42ae10,'isInsideObject':_0x3a155b,'containsRangeInObject':_0x286154}}),_0x221605=!0x0;break;}}if(_0x221605)break;}}return _0x170efc;}['_addSuggestionMarker'](_0x3da7d4,_0x1e6351,_0x506909,_0x424f24,_0x3eed49){this['_model']['change'](_0xb5ff1d=>{let _0x55ff50='suggestion:'+_0x3da7d4+':'+_0x1e6351+':'+_0x506909;_0x3eed49&&(_0x55ff50=_0x55ff50+':'+_0x3eed49),_0xb5ff1d['addMarker'](_0x55ff50,{'range':_0x424f24,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2d8399){const _0x564827=_0x2d8399['previous'],_0x18cc38=_0x2d8399['next'];_0x2d8399['previous']=null,_0x2d8399['next']=null,null!=_0x564827&&_0x564827['next']==_0x2d8399&&(_0x564827['next']=_0x18cc38),null!=_0x18cc38&&_0x18cc38['previous']==_0x2d8399&&(_0x18cc38['previous']=_0x564827),'ready'==this['_suggestionState']['get'](_0x2d8399)&&(this['_suggestionState']['set'](_0x2d8399,'removed'),this['fire']('suggestionUnloaded',_0x2d8399,_0x564827,_0x18cc38));}['_setSuggestionData'](_0x594ac5){const _0xa2d1c7=_0x594ac5['id'],_0x1042a9=this['addSuggestionData'](_0x594ac5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4ce34a=this['editor']['plugins']['get']('PendingActions'),_0x10547a=_0x1042a9['hasComments'],_0x2d5716=_0x1042a9['subType']?_0x1042a9['type']+':'+_0x1042a9['subType']:_0x1042a9['type'],_0x477951=this['editor']['locale'],_0x5b00df=_0x4ce34a['add'](c(_0x477951,'PENDING_ACTION_SUGGESTION')),_0x1a56fc={'id':_0xa2d1c7,'type':_0x2d5716,'hasComments':_0x10547a,'data':_0x594ac5['data']||null,'originalSuggestionId':_0x594ac5['originalSuggestionId']||null,'attributes':_0x1042a9['attributes']};this['_adapter']['addSuggestion'](_0x1a56fc)['then'](_0x4830e1=>{_0x1042a9['_saved']=!0x0,_0x4ce34a['remove'](_0x5b00df),_0x4830e1&&_0x4830e1['createdAt']&&(this['_suggestions']['get'](_0xa2d1c7)['createdAt']=_0x4830e1['createdAt']);})['catch'](_0x3e133e=>{throw _0x2b24ea('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1042a9['discard']();}),_0x1042a9['stopListening'](),this['_suggestions']['delete'](_0x1042a9['id']),this['_suggestionState']['delete'](_0x1042a9),_0x3e133e;});}return _0x1042a9;}['_isBlockAttribute'](_0x25968a){return this['_blockAttributeKeys']['has'](_0x25968a);}['_updateSuggestionData'](_0x9ed6a0,_0x204b03){const _0x1da380=this['editor']['plugins']['get']('PendingActions'),_0x2488b7=this['getSuggestion'](_0x9ed6a0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2488b7['_saved']){const _0x1b04c9=_0x1da380['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x9ed6a0,_0x204b03)['then'](()=>{_0x1da380['remove'](_0x1b04c9);});}else _0x2488b7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x9ed6a0,_0x204b03);});}}['_getSuggestionData'](_0x1ffe55){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3f6d59('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1ffe55);}['_handleNewSuggestionMarker'](_0x5ad69a){const {id:_0x211a13,type:_0x6a5ec1,subType:_0x181e4d,authorId:_0x3fcb6c}=this['_splitMarkerName'](_0x5ad69a),_0x140cc0=this['_suggestions']['get'](_0x211a13)||this['_createSuggestion'](_0x6a5ec1,_0x181e4d,_0x211a13,_0x3fcb6c,{});switch(this['_checkSuggestionCorrectness'](_0x140cc0,_0x6a5ec1,_0x181e4d,_0x3fcb6c),this['_suggestionState']['get'](_0x140cc0)){case'notReady':this['_getSuggestionData'](_0x211a13)['then'](_0x3156fa=>{let _0x9a911c=Promise['resolve']();_0x3156fa['hasComments']&&(_0x9a911c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x211a13})),_0x9a911c['then'](()=>{this['addSuggestionData'](_0x3156fa)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x140cc0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x211a13,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x140cc0,'ready'),this['fire']('suggestionLoaded',_0x140cc0);break;case'ready':this['fire']('suggestionChanged',_0x140cc0);}return _0x140cc0['addMarkerName'](_0x5ad69a),_0x140cc0;}['_refreshSuggestionsChain'](_0x40dc41){const _0x2dfb2f=Array['from'](_0x40dc41),_0x12ce78=_0x2dfb2f['filter'](_0x4759b0=>'attribute'==_0x4759b0['type']);this['_refreshAttributeSuggestionsChain'](_0x12ce78);const _0x193ea1=_0x2dfb2f['filter'](_0x3f573b=>!_0x3f573b['isMultiRange']&&'attribute'!=_0x3f573b['type']),_0x4164d1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a38fa=>!_0x2a38fa['isMultiRange']&&'attribute'!=_0x2a38fa['type']),_0xff7c51=_0x4164d1['filter'](_0x43cbec=>!_0x40dc41['has'](_0x43cbec)),_0x15809a=new Map(_0x4164d1['map'](_0x1a1ffc=>[_0x1a1ffc,this['_suggestionFactory']['getSuggestionCallback'](_0x1a1ffc['type'],_0x1a1ffc['subType'],'chain')])),_0x242cc9=new Map(_0x4164d1['map'](_0x36c6c7=>[_0x36c6c7,_0x36c6c7['getFirstRange']()])),_0xc9f33b=new Set(),_0x384643=new Set();for(let _0x462445=0x0;_0x462445<_0x193ea1['length'];_0x462445++)_0x316aca(_0x193ea1[_0x462445],_0x193ea1,_0x462445+0x1);for(let _0x21a347=0x0;_0x21a347<_0x193ea1['length'];_0x21a347++)_0x316aca(_0x193ea1[_0x21a347],_0xff7c51,0x0);const _0x3a5275=new Set();for(let _0xe45774=0x0;_0xe45774<_0x193ea1['length'];_0xe45774++){const _0x4ac2bb=_0x193ea1[_0xe45774];!_0x384643['has'](_0x4ac2bb)&&_0x4ac2bb['previous']&&(_0x3a5275['add'](_0x4ac2bb['previous']),_0x4ac2bb['previous']['next']===_0x4ac2bb&&(_0x4ac2bb['previous']['next']=null),_0x4ac2bb['previous']=null),!_0xc9f33b['has'](_0x4ac2bb)&&_0x4ac2bb['next']&&(_0x3a5275['add'](_0x4ac2bb['next']),_0x4ac2bb['next']['previous']===_0x4ac2bb&&(_0x4ac2bb['next']['previous']=null),_0x4ac2bb['next']=null);}function _0x316aca(_0x470337,_0xc3a63b,_0x6f8515){for(let _0x9ac50c=_0x6f8515;_0x9ac50c<_0xc3a63b['length'];_0x9ac50c++){const _0x401ec7=_0x39b932(_0x470337,_0xc3a63b[_0x9ac50c]);_0x401ec7&&(_0x401ec7[0x0]['next']=_0x401ec7[0x1],_0x401ec7[0x1]['previous']=_0x401ec7[0x0],_0xc9f33b['add'](_0x401ec7[0x0]),_0x384643['add'](_0x401ec7[0x1]));}}function _0x39b932(_0x3e78c6,_0x1cbe44){if(_0x3e78c6['author']['id']!==_0x1cbe44['author']['id'])return null;const _0x32a335=_0x15809a['get'](_0x3e78c6)(_0x3e78c6,_0x1cbe44,_0x242cc9['get'](_0x3e78c6),_0x242cc9['get'](_0x1cbe44));if(!_0x32a335)return null;return _0x15809a['get'](_0x1cbe44)(_0x3e78c6,_0x1cbe44,_0x242cc9['get'](_0x3e78c6),_0x242cc9['get'](_0x1cbe44))?_0x32a335[0x1]['commentThread']&&_0x32a335[0x1]['commentThread']['length']?null:_0x32a335:null;}_0x3a5275['size']&&this['_refreshSuggestionsChain'](_0x3a5275);}['_refreshAttributeSuggestionsChain'](_0x1f7736){if(0x0==_0x1f7736['length'])return;const _0x57b98a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1406d3=>'attribute'==_0x1406d3['type']&&_0x1406d3['_isDataLoaded']),_0x13c2b6=[],_0x1c8e66=new Map();for(const _0x300e64 of _0x57b98a){const _0x68ac07=_0x259155(_0x300e64['attributes']);_0x1c8e66['has'](_0x68ac07)||(_0x1c8e66['set'](_0x68ac07,_0x13c2b6['length']),_0x13c2b6['push']([]));const _0x431ab3=_0x1c8e66['get'](_0x68ac07);_0x13c2b6[_0x431ab3]['push'](_0x300e64);}!(function(){_0x13c2b6['sort']((_0x373120,_0x47c437)=>{const _0xacea54=_0x373120[0x0]['createdAt'],_0x13097f=_0x47c437[0x0]['createdAt'];return _0xacea54==_0x13097f?_0x373120[0x0]['attributes']['groupId']<_0x47c437[0x0]['attributes']['groupId']?-0x1:0x1:_0xacea54<_0x13097f?-0x1:0x1;});for(const _0x37dafe of _0x13c2b6)_0x37dafe['sort']((_0x44e518,_0x572177)=>_0x44e518['id']<_0x572177['id']?-0x1:0x1);}());for(let _0x52a4f8=0x0;_0x52a4f8<_0x13c2b6['length'];_0x52a4f8++){if(0x0==_0x13c2b6[_0x52a4f8]['length'])continue;const _0x23936c=[];for(let _0x23bd11=_0x52a4f8+0x1;_0x23bd11<_0x13c2b6['length'];_0x23bd11++)0x0!=_0x13c2b6[_0x23bd11]['length']&&_0x49bf17(_0x13c2b6[_0x52a4f8],_0x13c2b6[_0x23bd11])&&_0x23936c['push'](_0x23bd11);for(const _0x3decdc of _0x23936c)_0x13c2b6[_0x52a4f8]=_0x13c2b6[_0x52a4f8]['concat'](_0x13c2b6[_0x3decdc]),_0x13c2b6[_0x3decdc]=[];}for(const _0x225bcc of _0x13c2b6)for(let _0x39388c=0x0;_0x39388c<_0x225bcc['length'];_0x39388c++){const _0x33abc6=_0x225bcc[_0x39388c+0x1]||null;_0x225bcc[_0x39388c]['next']!==_0x33abc6&&(_0x225bcc[_0x39388c]['next']=_0x33abc6);}for(const _0x3da6e8 of _0x13c2b6)for(let _0x16daf1=0x0;_0x16daf1<_0x3da6e8['length'];_0x16daf1++){const _0x2b74a4=_0x3da6e8[_0x16daf1-0x1]||null;_0x3da6e8[_0x16daf1]['previous']!==_0x2b74a4&&(_0x3da6e8[_0x16daf1]['previous']=_0x2b74a4);}function _0x49bf17(_0x3c356f,_0x470555){if(_0x3c356f[0x0]['attributes']['groupId']!==_0x470555[0x0]['attributes']['groupId']&&_0x3c356f[0x0]['author']!==_0x470555[0x0]['author'])return!0x1;if(!function(_0x55f6aa,_0x115491){if(!_0x55f6aa['hasComments']&&!_0x115491['hasComments'])return!0x0;if(_0x55f6aa['hasComments']&&_0x115491['hasComments'])return!0x1;if(_0x55f6aa['hasComments']&&_0x115491['createdAt']<_0x55f6aa['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x115491['hasComments']&&_0x55f6aa['createdAt']<_0x115491['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3c356f[0x0],_0x470555[0x0]))return!0x1;const _0x215e03=Ft(_0x3c356f[0x0]['attributes'],['groupId','trackingSessionId']),_0xa7bbfd=Ft(_0x470555[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1daf30(_0x215e03,_0xa7bbfd))return!0x1;if(_0x3c356f[0x0]['attributes']['groupId']==_0x470555[0x0]['attributes']['groupId'])return!0x0;if(_0x3c356f[0x0]['attributes']['trackingSessionId']!==_0x470555[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3c356f['every'](_0x3cb3f6=>_0x470555['some'](_0x5937ee=>_0x3cb3f6['getFirstRange']()['isEqual'](_0x5937ee['getFirstRange']())))&&_0x470555['every'](_0x53b6eb=>_0x3c356f['some'](_0x3b3231=>_0x53b6eb['getFirstRange']()['isEqual'](_0x3b3231['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x18bcb5){const _0x45697b=Array['from'](_0x18bcb5),_0x3d0129=this['getSuggestions']({'skipNotAttached':!0x0}),_0x24d1b7=_0x3d0129['filter'](_0x55e4a0=>!_0x18bcb5['has'](_0x55e4a0)),_0x31492a=new Map(_0x45697b['map'](_0x1bb1ad=>[_0x1bb1ad,this['_suggestionFactory']['getSuggestionCallback'](_0x1bb1ad['type'],_0x1bb1ad['subType'],'join')])),_0x4c189f=new Map(_0x3d0129['map'](_0x10d7cb=>[_0x10d7cb,_0x10d7cb['getRanges']()]));for(let _0x48d3c7=0x0;_0x48d3c7<_0x45697b['length'];_0x48d3c7++){if(_0x471e62(this,_0x45697b[_0x48d3c7],_0x45697b,_0x48d3c7+0x1))return!0x0;}for(let _0x33b6af=0x0;_0x33b6af<_0x45697b['length'];_0x33b6af++){if(_0x471e62(this,_0x45697b[_0x33b6af],_0x24d1b7,0x0))return!0x0;}return!0x1;function _0x471e62(_0x23d9a6,_0x4517ee,_0x35e041,_0x33c31d){for(let _0xefa83=_0x33c31d;_0xefa83<_0x35e041['length'];_0xefa83++){const _0x3490c4=_0x35e041[_0xefa83];if(_0x3490c4['type']!==_0x4517ee['type']||_0x3490c4['author']['id']!==_0x4517ee['author']['id']||_0x3490c4['subType']!==_0x4517ee['subType'])continue;if(!Qt(_0x4517ee,_0x3490c4))continue;if('attribute'==_0x4517ee['type']&&_0x4517ee['data']['oldValue']!=_0x3490c4['data']['oldValue'])continue;if('attribute'==_0x4517ee['type']&&_0x23d9a6['_isBlockAttribute'](_0x4517ee['data']['key']))continue;if('formatBlock'==_0x4517ee['type']){const _0x316af9=_0x23d9a6['editor']['model'],_0x22d6ba=_0x4517ee['getContainedElement']();if(_0x22d6ba&&(_0x316af9['schema']['isObject'](_0x22d6ba)||_0x316af9['schema']['isLimit'](_0x22d6ba)))continue;}const _0x1c3eab=_0x31492a['get'](_0x4517ee),_0x383921=_0x4c189f['get'](_0x4517ee),_0x10287f=_0x4c189f['get'](_0x3490c4),_0x2e972b=_0x4517ee['commentThread']&&_0x4517ee['commentThread']['length'],_0x2dabf9=_0x3490c4['commentThread']&&_0x3490c4['commentThread']['length'];if(!_0x2e972b&&_0x1c3eab(_0x10287f,_0x383921))return _0x23d9a6['_joinSuggestions'](_0x3490c4,_0x4517ee),_0x4c189f['delete'](_0x4517ee),!0x0;if(!_0x2dabf9&&_0x1c3eab(_0x383921,_0x10287f))return _0x23d9a6['_joinSuggestions'](_0x4517ee,_0x3490c4),_0x4c189f['delete'](_0x3490c4),!0x0;}return!0x1;}}['_joinSuggestions'](_0x33391c,_0x199619){if(_0x33391c['isMultiRange']){for(const _0x68fb9d of _0x199619['getRanges']())_0x33391c['addRange'](_0x68fb9d);}else{const _0x406c86=_0x199619['getFirstRange']()['end'];this['_setSuggestionRange'](_0x33391c,this['_model']['createRange'](_0x33391c['getFirstRange']()['start'],_0x406c86));}_0x199619['removeMarkers']();}['_getMarkerAnnouncementText'](_0x119c0c,_0x8d793e,_0x232767){const _0x55b0cf=_0x119c0c['startsWith']('format')||_0x119c0c['startsWith']('attribute')?'FORMATTING':_0x119c0c['toUpperCase']();return c(this['editor']['locale'],_0x8d793e+'_'+_0x55b0cf+'_SUGGESTION_ANNOUNCEMENT',_0x232767);}['_initAriaMarkerChangeAnnouncements'](){const _0x5a2378=this['editor'];if(!_0x5a2378['ui'])return;const {ariaLiveAnnouncer:_0x202314}=_0x5a2378['ui'];_0x1864a5(this['_model'],({left:_0x51529d,entered:_0x1ba88b})=>{for(const _0x20fb44 of _0x51529d){const {group:_0x1b67dc,type:_0x570525}=this['_splitMarkerName'](_0x20fb44['name']);if('suggestion'===_0x1b67dc){_0x202314['announce'](this['_getMarkerAnnouncementText'](_0x570525,'LEAVE'));break;}}for(const _0x3057f7 of _0x1ba88b){const {group:_0x555942,type:_0xf0da56}=this['_splitMarkerName'](_0x3057f7['name']);if('suggestion'===_0x555942){_0x202314['announce'](this['_getMarkerAnnouncementText'](_0xf0da56,'ENTER',_0x34560d(_0x2008a8)));break;}}});}['_processAttributeChanges'](_0x128cf3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x596760=this['editor'],_0x22ad8b=_0x596760['model']['document']['differ']['getChanges']();if(0x0==_0x22ad8b['length'])return!0x1;const _0x5aadcd=[],_0x5b9e30=_0x22ad8b['filter'](_0xb52aee=>'attribute'==_0xb52aee['type']),_0x394345=_0x22ad8b['filter'](_0x4c2efb=>'insert'==_0x4c2efb['type']&&'$text'!=_0x4c2efb['name']),_0x354457=_0x22ad8b['filter'](_0x47ea97=>'remove'==_0x47ea97['type']&&'$text'!=_0x47ea97['name']);for(const _0x25a7c of _0x5b9e30)_0x5aadcd['push']({'key':_0x25a7c['attributeKey'],'newValue':_0x25a7c['attributeNewValue'],'oldValue':_0x25a7c['attributeOldValue'],'range':qt(_0x25a7c['range'],_0x596760['model'])});for(const _0x3cb740 of _0x394345){const _0x291db9=_0x354457['find'](_0x26d426=>_0x26d426['position']['isEqual'](_0x3cb740['position']));_0x291db9&&_0x5aadcd['push']({'key':u,'newValue':_0x3cb740['name'],'oldValue':_0x291db9['name'],'range':_0x596760['model']['createRangeOn'](_0x3cb740['position']['nodeAfter'])});}return 0x0!=_0x5aadcd['length']&&this['_reduceExistingSuggestions'](_0x128cf3,_0x5aadcd);}['_processAttributeSuggestions'](_0x329798){let _0x1c5bbe=!0x1;const _0x251f26=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b6132=>_0x1b6132['data']['newRange']&&_0x1b6132['name']['startsWith']('suggestion:attribute:'));for(const _0x1a53b0 of _0x251f26){const {subType:_0x3056f0,id:_0x4b2cf7}=this['_splitMarkerName'](_0x1a53b0['name']),_0x2cc32=_0x3056f0['split']('|')[0x0];for(const _0x17f7b0 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x17f7b0['id']!=_0x4b2cf7&&'attribute'==_0x17f7b0['type']&&_0x17f7b0['data']&&_0x17f7b0['data']['key']==_0x2cc32&&_0x17f7b0['getFirstRange']()['isIntersecting'](_0x1a53b0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x17f7b0,_0x1a53b0['data']['newRange'],_0x329798),_0x1c5bbe=!0x0);}return _0x1c5bbe;}['_recordAttributeChanges'](_0x23d207){this['_recordAttributeSuggestions']=!0x0,_0x23d207();}['_isRegisteredAttribute'](_0x39a8b0){const _0x4cc9c2=this['_isBlockAttribute'](_0x39a8b0),_0x5a5d3c=this['_inlineAttributeKeys']['has'](_0x39a8b0);return _0x4cc9c2||_0x5a5d3c;}['_reduceExistingSuggestions'](_0x54c41d,_0x34ff58){if(0x0==_0x34ff58['length'])return!0x1;let _0x432d80=!0x1;for(const _0x11b4e0 of _0x34ff58){const _0x2f67df=this['_findSuggestions'](_0x11b4e0['range'],'attribute')['filter'](_0x40c00f=>!_0x40c00f['meta']['isNextTo'])['map'](_0x2b071=>_0x2b071['suggestion']),_0x56b1b2=_0x259155({'newValue':_0x11b4e0['newValue']});_0x2f67df['filter'](_0x555174=>{const [_0x590b9a,_0x857064]=_0x555174['subType']['split']('|');return _0x590b9a==_0x11b4e0['key']&&_0x857064!=_0x56b1b2;})['forEach'](_0x20b76c=>{this['_reduceSuggestionAttributeRange'](_0x20b76c,_0x11b4e0['range'],_0x54c41d),_0x432d80=!0x0;});}return _0x432d80;}['_reduceSuggestionAttributeRange'](_0x329c3e,_0x5b2785,_0x1d72b5){const _0x12e081=_0x329c3e['getFirstRange']()['getDifference'](_0x5b2785);0x0!==_0x12e081['length']?0x1!==_0x12e081['length']?this['_breakSuggestionMarker'](_0x329c3e,_0x5b2785['start'],_0x5b2785['end']):this['_setSuggestionRange'](_0x329c3e,_0x12e081[0x0]):_0x1d72b5['removeMarker'](_0x329c3e['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x21c212){this['_editor']=_0x21c212,this['_model']=_0x21c212['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xb777d,_0x9c58d2,_0x4b96b8,_0x3d208e,_0x63bd5d,_0x2042d7){return new o(this['_model'],{'type':_0xb777d,'subType':_0x9c58d2,'id':_0x4b96b8,'author':_0x3d208e,'creator':_0x3d208e,'attributes':_0x63bd5d,'onAttributesChange':_0x2042d7,'onAccept':(..._0x1cf54a)=>this['getSuggestionCallback'](_0xb777d,_0x9c58d2,'accept')(..._0x1cf54a),'onDiscard':(..._0x4d4326)=>this['getSuggestionCallback'](_0xb777d,_0x9c58d2,'discard')(..._0x4d4326)});}['registerCustomCallback'](_0x1519a0,_0x14952d,_0x5527b8,_0x98f54){const _0x260f23=_0x1519a0+':'+_0x14952d+':'+_0x5527b8;this['_customCallbacks']['set'](_0x260f23,_0x98f54);}['getSuggestionCallback'](_0x18aab4,_0x453d0c,_0x446cf0){const _0x5b372f=_0x18aab4+':'+_0x453d0c+':'+_0x446cf0;return this['_customCallbacks']['get'](_0x5b372f)||this['_defaultCallbacks']['get'](_0x18aab4+':'+_0x446cf0);}['_registerDefaultCallbacks'](){const _0xffddd3=()=>!0x1,_0xa57ed9=_0x1ea53b=>{_0x1ea53b['sort']((_0x5de3e2,_0x4778f3)=>_0x5de3e2['start']['isBefore'](_0x4778f3['start'])?0x1:-0x1),this['_model']['change'](_0x105502=>{for(const _0x53c04e of _0x1ea53b){let _0x40de48;_0x40de48=_0x53c04e['end']['isAtEnd']&&_0x53c04e['end']['parent']==_0x53c04e['start']['nodeAfter']?_0x105502['createSelection'](_0x53c04e['start']['nodeAfter'],'on'):_0x105502['createSelection'](_0x53c04e),this['_model']['deleteContent'](_0x40de48,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x311dfb=(_0x533230,_0x4bdb77)=>{_0x4bdb77&&this['_model']['change'](_0xf12008=>{const {commandName:_0x425ed1,commandParams:_0x3e489a=[]}=_0x4bdb77,_0x2f0d03=_0x533230['map'](_0x21f829=>(Lt(_0x21f829)&&(_0x21f829=this['_model']['createRange'](_0x21f829['end'])),_0x21f829))['filter'](_0x105585=>'$graveyard'!==_0x105585['root']['rootName']);if(_0x2f0d03['length']<0x1)return;const _0x4ec699=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x34e7dc=>_0x33976f['fromRange'](_0x34e7dc));_0xf12008['setSelection'](_0x2f0d03);for(const _0x41df27 of this['_editor']['commands']['commands']())_0x41df27['refresh']();_0x3e489a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x425ed1,..._0x3e489a);const _0x42ba42=_0x4ec699['filter'](_0x4627ce=>'$graveyard'!=_0x4627ce['root']['rootName']);_0x42ba42['length']>0x0&&_0xf12008['setSelection'](_0x42ba42);for(const _0x27b0c9 of _0x4ec699)_0x27b0c9['detach']();});},_0x245e89=(_0x412b43,_0x3257c4)=>0x1==_0x412b43['length']&&0x1==_0x3257c4['length']&&_0x412b43[0x0]['end']['isEqual'](_0x3257c4[0x0]['start']),_0x278da7=(_0x51b9da,_0x1833a9,_0xaf79aa,_0x44e23e)=>Wt(_0x51b9da,_0x1833a9,_0xaf79aa,_0x44e23e)?[_0x51b9da,_0x1833a9]:Wt(_0x1833a9,_0x51b9da,_0x44e23e,_0xaf79aa)?[_0x1833a9,_0x51b9da]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xffddd3),this['_defaultCallbacks']['set']('insertion:discard',_0xa57ed9),this['_defaultCallbacks']['set']('insertion:join',_0x245e89),this['_defaultCallbacks']['set']('insertion:chain',_0x278da7),this['_defaultCallbacks']['set']('deletion:accept',_0xa57ed9),this['_defaultCallbacks']['set']('deletion:discard',_0xffddd3),this['_defaultCallbacks']['set']('deletion:join',_0x245e89),this['_defaultCallbacks']['set']('deletion:chain',_0x278da7),this['_defaultCallbacks']['set']('formatInline:accept',_0x311dfb),this['_defaultCallbacks']['set']('formatInline:discard',_0xffddd3),this['_defaultCallbacks']['set']('formatInline:join',_0x245e89),this['_defaultCallbacks']['set']('formatInline:chain',_0xffddd3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x311dfb),this['_defaultCallbacks']['set']('formatBlock:discard',_0xffddd3),this['_defaultCallbacks']['set']('formatBlock:join',_0x245e89),this['_defaultCallbacks']['set']('formatBlock:chain',_0xffddd3),this['_defaultCallbacks']['set']('attribute:accept',_0xffddd3),this['_defaultCallbacks']['set']('attribute:discard',(_0x540d1f,_0x34f09e)=>{if(!_0x34f09e)return;const _0x481e5b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2ebfd7=>{if(_0x34f09e['key']==u)for(const _0x3df9b8 of _0x540d1f){const _0x3b7f88=_0x3df9b8['start']['nodeAfter'],_0x1e0e4e=_0x34f09e['oldValue'];_0x2ebfd7['rename'](_0x3b7f88,_0x1e0e4e);}else{if(_0x481e5b['_isBlockAttribute'](_0x34f09e['key'])){for(const _0x2a3386 of _0x540d1f)void 0x0!==_0x34f09e['oldValue']?_0x2ebfd7['setAttribute'](_0x34f09e['key'],_0x34f09e['oldValue'],_0x2a3386['start']['nodeAfter']):_0x2ebfd7['removeAttribute'](_0x34f09e['key'],_0x2a3386['start']['nodeAfter']);}else{for(const _0x29c26b of _0x540d1f)_0x34f09e['oldValue']?_0x2ebfd7['setAttribute'](_0x34f09e['key'],_0x34f09e['oldValue'],_0x29c26b):_0x2ebfd7['removeAttribute'](_0x34f09e['key'],_0x29c26b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x245e89);}}function Gt(_0x44b5bc,_0x52a297,_0x380a2c){for(const _0x5b2cea of _0x52a297['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5b2cea['root']==_0x5b2cea)return!0x1;if(!_0x380a2c['containsItem'](_0x5b2cea))return!0x1;if(_0x44b5bc['isObject'](_0x5b2cea)||_0x44b5bc['isLimit'](_0x5b2cea))return!0x0;}return!0x1;}function Lt(_0x5c4d22){return _0x5c4d22['end']['parent']==_0x5c4d22['start']['nodeAfter']&&_0x5c4d22['end']['isAtStart'];}function Jt(_0x5ec986,_0x29e669,_0x3692cc,_0x2db879){const _0x345cc0=_0x57bdc4=>!_0x57bdc4['item']['is']('$textProxy')&&!_0x2db879['isObject'](_0x57bdc4['item']),_0xa0f31=_0x5ec986['start']['getLastMatchingPosition'](_0x345cc0),_0x5b090a=_0x5ec986['end']['getLastMatchingPosition'](_0x345cc0,{'direction':'backward'});return(!_0x5ec986['start']['isEqual'](_0xa0f31)||!_0x5ec986['end']['isEqual'](_0x5b090a))&&(_0xa0f31['isBefore'](_0x5b090a)?_0x3692cc['updateMarker'](_0x29e669,{'range':_0x3692cc['createRange'](_0xa0f31,_0x5b090a)}):_0x3692cc['removeMarker'](_0x29e669),!0x0);}function Kt(_0x5d0485){return _0x259155(_0x5d0485);}function Ht(_0x252484){const _0x399554=_0x252484['start']['nodeAfter'];return _0x399554&&_0x399554['is']('element');}function qt(_0x2c1385,_0x5457d7){return null==_0x2c1385['end']['nodeBefore']&&_0x2c1385['end']['parent']==_0x2c1385['start']['nodeAfter']?zt(_0x2c1385['start']['nodeAfter'],_0x5457d7):_0x2c1385;}function zt(_0x3fb4ef,_0x1188fe){const _0x434766=_0x1188fe['schema']['isObject'](_0x3fb4ef)||_0x1188fe['schema']['isSelectable'](_0x3fb4ef);return _0x1188fe['createRange'](_0x1188fe['createPositionAt'](_0x3fb4ef,'before'),_0x434766?_0x1188fe['createPositionAfter'](_0x3fb4ef):_0x1188fe['createPositionAt'](_0x3fb4ef,'end'));}function Wt(_0x5792b8,_0x2db7a1,_0x2f4187,_0x5a5222){return!!Qt(_0x5792b8,_0x2db7a1)&&_0x2f4187['end']['isEqual'](_0x5a5222['start']);}function Qt(_0x4ff9ab,_0x59815){if(!_0x4ff9ab['_isDataLoaded']||!_0x59815['_isDataLoaded'])return!0x1;const _0x319c7a=new Set(Object['keys'](_0x4ff9ab['attributes'])),_0x3925ed=new Set(Object['keys'](_0x59815['attributes']));if(_0x319c7a['delete']('groupId'),_0x3925ed['delete']('groupId'),0x0==_0x319c7a['size']&&0x0==_0x3925ed['size'])return!0x0;if(_0x319c7a['size']!=_0x3925ed['size'])return!0x1;const _0x56f92c={..._0x4ff9ab['attributes']},_0x51b9cb={..._0x59815['attributes']};return delete _0x56f92c['groupId'],delete _0x51b9cb['groupId'],JSON['stringify'](_0x56f92c)==JSON['stringify'](_0x51b9cb);}function Xt(_0x21d605,_0x241d24){const _0x4ec077=Yt(_0x21d605['attributes']),_0x3538cb=Yt(_0x241d24);if(!_0x21d605['_isDataLoaded'])return!0x1;for(const _0x200d70 of Object['keys'](_0x3538cb))if(!_0x1daf30(_0x4ec077[_0x200d70],_0x3538cb[_0x200d70]))return!0x1;return!0x0;}function Yt(_0x46eadd){const _0x47b7a9=Object['assign']({},_0x46eadd);return delete _0x47b7a9['skipNestingCheck'],delete _0x47b7a9['tablePasteChainId'],_0x47b7a9;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x56e37d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3b2997,_0x11afaf,_0x2b994c,_0x43b461){super(),this['model']=_0x11afaf,this['view']=_0x2b994c,this['commentThreadController']=_0x43b461,this['_editor']=_0x3b2997,this['_acceptCommand']=_0x3b2997['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3b2997['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x428a93,_0x1dcc6a)=>_0x428a93||_0x1dcc6a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5e99ef=>_0x5e99ef&&this['_editor']['model']['canEditAt'](_0x11afaf['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x46f371=>_0x46f371&&this['_editor']['model']['canEditAt'](_0x11afaf['getRanges']())),this['_pendingAction']=null,_0x2b994c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2b994c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2b994c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2b994c,'change:isDirty',()=>{_0x2b994c['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 _0x156174=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x156174);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x27afbd{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x308b1b,_0x5588a7,_0x70dccc,_0x20b94d){super(_0x308b1b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xf99e10(_0x308b1b,c(_0x308b1b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5588a7['authoredAt']),this['bind']('authoredAt')['to'](_0x5588a7),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',_0x5588a7,'authoredAt',this,'descriptionParts',(_0x3ead9f,_0x1b93e3,_0x2c4ef0)=>{const _0x4c1b9c=_0x2c4ef0['map'](_0x40ba14=>ls(_0x40ba14['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3ead9f-0x1,_0x5588a7['author']['name'],_0x1b93e3?_0x20b94d['formatDateTime'](_0x1b93e3):'',new DOMParser()['parseFromString'](_0x4c1b9c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1cef02(),this['focusTracker']=new _0x194625(),this['keystrokes']=new _0x29d578(),this['focusCycler']=new _0x20b6e2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2e4ebd=>_0x2e4ebd['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5588a7,this['_localUser']=_0x70dccc,this['_config']=_0x20b94d,_0x20b94d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1962db(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x32e1ef}=this['_config'];this['commentsListView']=new _0x32e1ef(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',_0x4b7662=>_0x4b7662+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x7bb35e,_0x97a13a)=>_0x7bb35e||!!_0x97a13a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x80b13}=this['_config'],_0x163a8f=new _0x80b13(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x408b7f=_0x163a8f['commentInputView'];return _0x163a8f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x408b7f,'value',(_0x5a07a7,_0x35f55f,_0x2b060f)=>!!_0x2b060f||_0x5a07a7&&!_0x35f55f),_0x408b7f['on']('submit',(_0x3af100,_0x155ad6)=>{this['fire']('addComment',_0x155ad6),_0x408b7f['editor']['setData']('');}),_0x408b7f['on']('cancel',()=>this['focus']()),_0x408b7f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x163a8f;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0xd9a589,_0x1551e0,_0x6debae,_0x5b33b3){super(_0xd9a589,_0x1551e0,_0x6debae,_0x5b33b3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3a3c62=>_0x3a3c62&&_0x3a3c62[0x0]?_0x3a3c62[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3124ba,_0x3b1143)=>{let _0x1dd992='';for(const _0x344c9b of _0x3124ba)_0x1dd992+='<p>'+ls(_0x344c9b['content'],_0x344c9b['color'])+'</p>';return _0x3b1143?_0x1dd992:ti(_0x1dd992,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5b33b3['SuggestionView'](_0xd9a589,_0x1551e0,{'formatDateTime':_0x5b33b3['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 _0x9896a5=this['bindTemplate'],_0x25eebf=[this['suggestionView']];return this['commentsListView']&&_0x25eebf['push'](this['commentsListView']),this['commentThreadInputView']&&_0x25eebf['push'](this['commentThreadInputView']),_0x25eebf['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x9896a5['if']('isActive','ck-suggestion-wrapper--active'),_0x9896a5['to']('type',_0x5ccbd9=>'ck-suggestion-'+_0x5ccbd9),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':_0x9896a5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x25eebf};}['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 _0x27afbd{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x524b17,_0x4814cd,_0x9d8324){super(_0x524b17),this['_model']=_0x4814cd,this['_config']=_0x9d8324,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4814cd),this['acceptButton']=this['_createButton'](c(_0x524b17,'Accept\x20suggestion'),_0x1bc9bc,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x524b17,'Discard\x20suggestion'),_0x624163,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xba4a38(_0x524b17,_0x4814cd['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1cef02([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x194625(),this['keystrokes']=new _0x29d578(),this['focusCycler']=new _0x20b6e2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x432e13=>_0x432e13['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x19a042=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x19a042['innerHTML']=this['description'],this['on']('change:description',(_0x2faf73,_0x14b5d1,_0x347f56)=>{_0x19a042['innerHTML']=_0x347f56;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x27b04a=this['bindTemplate'],_0x4d8aba=[{'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':_0x27b04a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x27b04a['to']('authoredAt',_0x51889c=>this['_config']['formatDateTime'](_0x51889c))}]}]},{'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']&&_0x4d8aba['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':_0x4d8aba}]};}['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'](_0x29b9aa,_0x28bb3a,_0x5592a,_0x16eee8,_0x5ad9f8){const _0x1b33b8=new _0x51328b(this['locale']);return _0x1b33b8['set']({'label':_0x29b9aa,'icon':_0x28bb3a,'tooltip':!0x0,'tooltipPosition':_0x5ad9f8}),_0x1b33b8['extendTemplate']({'attributes':{'class':_0x5592a}}),_0x1b33b8['on']('execute',()=>{this['fire'](_0x16eee8,this['_model']['id']);}),_0x1b33b8;}['_setupKeyboardNavigation'](){const _0x4fcca7=this['element'];this['keystrokes']['listenTo'](_0x4fcca7);for(const _0x6cdbf2 of this['focusables'])this['focusTracker']['add'](_0x6cdbf2['element']),this['keystrokes']['listenTo'](_0x6cdbf2['element']);this['keystrokes']['set']('enter',(_0x23ea4e,_0x2936c1)=>{_0x4fcca7===_0x23ea4e['target']&&(this['focusCycler']['focusFirst'](),_0x2936c1());}),this['keystrokes']['set']('esc',(_0x12d4ef,_0x28eebd)=>{_0x4fcca7!==_0x12d4ef['target']&&(this['focus'](),_0x28eebd());});}}class d extends _0x5be5ff{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4baace,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52816d){super(_0x52816d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1cf7ae=this['editor']['config'];_0x1cf7ae['define']('trackChanges.SuggestionThreadView',fe),_0x1cf7ae['define']('trackChanges.SuggestionView',we),_0x1cf7ae['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1cf7ae['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3ce89a,_0x5ee8d7){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x39f0e6,_0x25e521]of this['_handleControllerBuffer']){const _0x29c6f2=this['_suggestionToController']['has'](_0x39f0e6);_0x29c6f2||_0x25e521?_0x29c6f2&&_0x25e521&&this['_destroyController'](_0x39f0e6):this['_initializeController'](_0x39f0e6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3ce89a,_0x5ee8d7);}['init'](){const _0x15b9ce=this['editor'],_0x59efbf=_0x15b9ce['plugins']['get']('TrackChangesEditing'),_0xdd9ae7=_0x15b9ce['plugins']['get']('Annotations'),_0x7c8637=_0x15b9ce['plugins']['get']('EditorAnnotations'),_0x3e07ca=_0x15b9ce['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x7c8637['addSourceCollector'](()=>{const _0x5adf8b=[];for(const [_0x148ed7,_0x1bded8]of Array['from'](this['_suggestionToController'])){const _0x65431b=_0x148ed7['getAllAdjacentSuggestions'](),_0x19448a=[];for(const _0x60fc51 of _0x65431b){if(!_0x60fc51['isInContent'])continue;if(_0x60fc51['isMultiRange']){_0x19448a['push'](..._0x60fc51['getRanges']());continue;}const _0x14be68=_0x60fc51['getFirstRange']();if(_0x19448a['length']>0x0){const _0xbf8e4c=_0x19448a[0x0]['getJoined'](_0x14be68);if(_0xbf8e4c){_0x19448a[0x0]=_0xbf8e4c;continue;}}_0x19448a['push'](_0x14be68);}_0x5adf8b['push']([_0x1bded8['view'],_0x19448a]);}return _0x5adf8b;}),this['listenTo'](_0x59efbf,'suggestionLoaded',(_0x5f4cdd,_0x2dfc15)=>{this['listenTo'](_0x2dfc15,'change:previous',(_0x457787,_0x3e5dac,_0x457038,_0x2e47f7)=>{_0x2dfc15['isInContent']&&(null==_0x457038?(this['_updateController'](_0x2e47f7['head']),this['_handleSuggestionControllerDelayed'](_0x2dfc15,!0x1)):(this['_updateController'](_0x457038['head']),null==_0x2e47f7&&this['_handleSuggestionControllerDelayed'](_0x2dfc15,!0x0)));}),null!==_0x2dfc15['previous']?this['_updateController'](_0x2dfc15['head']):this['_handleSuggestionControllerDelayed'](_0x2dfc15,!0x1);}),this['listenTo'](_0x59efbf,'suggestionUnloaded',(_0x259f60,_0x271d44,_0x3af744)=>{this['stopListening'](_0x271d44,'change:previous'),this['_handleControllerBuffer']['delete'](_0x271d44),this['_suggestionToController']['has'](_0x271d44)&&this['_destroyController'](_0x271d44),_0x3af744&&this['_updateController'](_0x3af744['head']);}),this['listenTo'](_0x59efbf,'suggestionChanged',(_0x4f6bf9,_0x281788)=>{this['_updateController'](_0x281788);}),this['listenTo'](_0xdd9ae7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3e07ca,'addComment',(_0x232e12,{threadId:_0xdb56e3,isFromAdapter:_0x1ecfb0})=>{if(_0x1ecfb0||!_0x59efbf['hasSuggestion'](_0xdb56e3))return;const _0x4da129=_0x59efbf['getSuggestion'](_0xdb56e3);this['_suggestionToController']['get'](_0x4da129)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2899cb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xaf7c11;for(const _0x5d4e18 in _0x2899cb){const _0x261b1b=_0x5d4e18,_0x1c4272=_0x2899cb[_0x261b1b];if('trackChangesLicenseKeyValid'==_0x1c4272||'trackChangesLicenseKeyInvalid'==_0x1c4272||'trackChangesLicenseKeyExpired'==_0x1c4272||'trackChangesLicenseKeyDomainLimit'==_0x1c4272||'trackChangesLicenseKeyNotAllowed'==_0x1c4272||'trackChangesLicenseKeyEvaluationLimit'==_0x1c4272||'trackChangesLicenseKeyTrialLimit'==_0x1c4272||'trackChangesLicenseKeyUsageLimit'==_0x1c4272){delete _0x2899cb[_0x261b1b],_0xaf7c11=_0x1c4272,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xaf7c11&&_0x2899cb['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xaf7c11&&_0x2899cb['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xaf7c11&&_0x2899cb['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xaf7c11&&_0x2899cb['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xaf7c11&&_0x2899cb['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xaf7c11&&_0x2899cb['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xaf7c11&&_0x2899cb['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x119eca=this['editor']['plugins']['get']('Annotations'),_0x258db3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x265e76=Array['from'](_0x119eca['activeAnnotations'],_0x1a8f63=>_0x1a8f63['innerView'])['filter'](_0x107cce=>this['_viewToController']['has'](_0x107cce)),_0x51d2c0=[];for(const _0x23871e of _0x265e76){const _0x5ae730=this['_viewToController']['get'](_0x23871e)['model']['getAllAdjacentSuggestions']();_0x51d2c0['push'](..._0x5ae730['reduce']((_0x191550,_0x235374)=>[..._0x191550,..._0x235374['getMarkerNames']()],[]));}_0x258db3['activeMarkers']=_0x51d2c0;}['_addUIComponentsToFactory'](){const _0x18e581=this['editor'],_0x29d3a7=_0x18e581['locale'],_0x48ebf7=c(_0x29d3a7,'Track\x20changes'),_0x5a93c8=new _0x48dfbd([{'type':'switchbutton','model':new _0x590937({'withText':!0x0,'isToggleable':!0x0,'label':_0x48ebf7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x590937({'withText':!0x0,'label':c(_0x29d3a7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x590937({'withText':!0x0,'label':c(_0x29d3a7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x590937({'withText':!0x0,'label':c(_0x29d3a7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x590937({'withText':!0x0,'label':c(_0x29d3a7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x18e581['plugins']['has']('TrackChangesPreview')&&_0x5a93c8['addMany']([{'type':'separator'},{'type':'button','model':new _0x590937({'withText':!0x0,'label':c(_0x29d3a7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x47409b of _0x5a93c8)if(ke(_0x47409b)){const _0x39d0f2=_0x18e581['commands']['get'](_0x47409b['model']['commandName']);_0x47409b['model']['bind']('isOn','isEnabled')['to'](_0x39d0f2,'value','isEnabled');}_0x18e581['ui']['componentFactory']['add']('trackChanges',_0x2fa92d=>this['_createToolbarButton'](_0x2fa92d,_0x5a93c8,_0x48ebf7)),_0x18e581['ui']['componentFactory']['add']('menuBar:trackChanges',_0x195a4e=>this['_createMenuBarMenu'](_0x195a4e,_0x5a93c8,_0x48ebf7));}['_createToolbarButton'](_0x625273,_0x100a4b,_0x5ab7fc){const _0x20f99d=_0xb365de(_0x625273,_0x3e9807),_0xfcd41b=this['editor']['commands']['get']('trackChanges');_0x20f99d['buttonView']['set']({'tooltip':_0x5ab7fc,'label':_0x5ab7fc,'icon':_0x4ef40a}),_0x20f99d['buttonView']['bind']('isOn')['to'](_0xfcd41b,'value'),_0x20f99d['buttonView']['on']('execute',()=>{_0xfcd41b['execute'](),this['editor']['editing']['view']['focus']();}),_0x246ba6(_0x20f99d,_0x100a4b,{'role':'menu'});const _0x1ae145=[];for(const _0x18add5 of _0x100a4b)ke(_0x18add5)&&_0x1ae145['push'](this['editor']['commands']['get'](_0x18add5['model']['commandName']));const _0x3c9d79=_0x20f99d['buttonView'];return _0x3c9d79['actionView']['unbind']('isEnabled'),_0x3c9d79['arrowView']['unbind']('isEnabled'),_0x3c9d79['actionView']['bind']('isEnabled')['to'](_0xfcd41b,'isEnabled'),_0x3c9d79['arrowView']['bind']('isEnabled')['toMany'](_0x1ae145,'isEnabled',(..._0x70d021)=>_0x70d021['some'](_0x49cad2=>_0x49cad2)),_0x20f99d['on']('execute',_0x475be7=>{this['editor']['execute'](_0x475be7['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x20f99d;}['_createMenuBarMenu'](_0x28bb03,_0x19025f,_0x175d63){const _0x450921=new _0x460a4(_0x28bb03),_0x11745a=this['editor']['commands']['get']('trackChanges');_0x450921['buttonView']['set']({'label':_0x175d63,'icon':_0x4ef40a});const _0xab15fa=new _0x18dc34(_0x28bb03);for(const _0x35c8af of _0x19025f){if('separator'==_0x35c8af['type']){_0xab15fa['items']['add'](new _0x44f473(_0x28bb03));continue;}const _0x289ce5=new _0x35dee4(_0x28bb03,_0x450921),_0x19a00a=new _0x2409c6(_0x28bb03),_0x43b5af=_0x35c8af['model'];_0x19a00a['bind'](...Object['keys'](_0x43b5af))['to'](_0x43b5af),_0x19a00a['delegate']('execute')['to'](_0x450921),_0x19a00a['on']('execute',()=>{this['editor']['execute'](_0x43b5af['commandName']),this['editor']['editing']['view']['focus']();}),_0x289ce5['children']['add'](_0x19a00a),_0xab15fa['items']['add'](_0x289ce5);}return _0x450921['bind']('isEnabled')['to'](_0x11745a,'isEnabled'),_0x450921['panelView']['children']['add'](_0xab15fa),_0x450921;}['_initializeController'](_0x17c7a3){const _0x381a50=this['editor'],_0x586200=_0x381a50['config'],_0x1a1c79=_0x381a50['plugins']['get']('Annotations'),_0xc0903e=_0x381a50['plugins']['get']('CommentsRepository'),_0xc89093=_0x381a50['plugins']['get']('EditorAnnotations'),_0x5644f9=_0x381a50['plugins']['get'](_0x4baace)['me'],_0x1a711a=_0x586200['get']('trackChanges')['SuggestionThreadView'],_0x15fcbc=_0x586200['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1cf63f,CommentThreadInputView:_0x1a71bc}=_0x381a50['plugins']['get']('CommentsUI');let _0x380553,_0x3baf13,_0x4a3502;this['_annotationViews']['has'](_0x17c7a3['id'])?(_0x3baf13=this['_annotationViews']['get'](_0x17c7a3['id']),_0x380553=_0x3baf13['mainView']):(_0x380553=new _0x1a711a(_0x381a50['locale'],_0x17c7a3,_0x5644f9,{'disableComments':this['_disableComments'],'editorConfig':{..._0x586200['get']('comments.editorConfig'),'licenseKey':_0x586200['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x586200['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x586200['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x586200['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x25bee6(_0x586200['get']('locale'),_0x381a50['locale']),'CommentView':_0x586200['get']('comments')['CommentView'],'CommentsListView':_0x1cf63f,'CommentThreadInputView':_0x1a71bc,'SuggestionView':_0x15fcbc}),_0x380553['suggestionView']['acceptButton']['on']('execute',()=>{_0x381a50['editing']['view']['focus']();}),_0x380553['suggestionView']['discardButton']['on']('execute',()=>{_0x381a50['editing']['view']['focus']();}),_0x3baf13=_0x1a1c79['createAnnotationView'](this['editor']['locale'],_0x380553),_0x3baf13['bind']('isDirty')['to'](_0x380553,'isDirty'),_0x3baf13['bind']('length')['to'](_0x380553),_0x3baf13['bind']('type')['to'](_0x380553,'type',_0x1c9223=>'suggestion-'+_0x1c9223),_0x380553['on']('escape',()=>{_0x4a3502['fire']('escape');}),this['_annotationViews']['set'](_0x17c7a3['id'],_0x3baf13));const _0x3bda0f=_0xc0903e['createCommentThreadController'](_0x17c7a3['commentThread'],_0x380553),_0x5da08b=new pe(_0x381a50,_0x17c7a3,_0x380553,_0x3bda0f),_0x29ddb5=_0x17c7a3['getAllAdjacentSuggestions']()['filter'](_0x1fe9f4=>_0x1fe9f4['isInContent']);_0x380553['descriptionParts']=_0x381a50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x29ddb5),this['_suggestionToController']['set'](_0x17c7a3,_0x5da08b),this['_viewToController']['set'](_0x380553,_0x5da08b),_0x4a3502=_0x1a1c79['createAnnotation']({'view':_0x3baf13,'target':()=>{const _0x1270f0=[],_0x4811fe=_0x17c7a3['getAllAdjacentSuggestions']()['filter'](_0x28a82a=>_0x28a82a['isInContent']);for(const _0x27ad7a of _0x4811fe)_0x1270f0['push'](..._0x27ad7a['getMarkers']());return _0x315f48(_0x381a50['editing'],_0x1270f0);},'type':()=>'suggestion-'+_0x5da08b['view']['type']}),_0xc0903e['_bindAnnotationToEditors'](_0x380553,_0x4a3502),_0x1a1c79['add'](_0x4a3502),_0xc89093['registerAnnotation'](_0x4a3502);}['_destroyController'](_0x39ea39){const _0x36f372=this['editor']['plugins']['get']('CommentsRepository'),_0x1670d5=this['editor']['plugins']['get']('Annotations'),_0xd0636e=this['_suggestionToController']['get'](_0x39ea39),_0x408da4=_0xd0636e['view'],_0x34de7e=_0x1670d5['getByInnerView'](_0x408da4);_0x36f372['_unbindEditors'](_0x408da4),_0x34de7e&&_0x1670d5['remove'](_0x34de7e),this['_suggestionToController']['delete'](_0x39ea39),this['_viewToController']['delete'](_0x408da4),_0xd0636e['destroy']();}['_updateController'](_0x24b7e1){if(!_0x24b7e1['isInContent']||!this['_suggestionToController']['has'](_0x24b7e1))return;const _0x5a9084=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb72db8=this['_suggestionToController']['get'](_0x24b7e1),_0xac6ce0=_0x24b7e1['getAllAdjacentSuggestions']();_0xb72db8['view']['descriptionParts']=_0x5a9084['descriptionFactory']['getDescriptions'](_0xac6ce0);}['destroy'](){for(const _0x8d7c03 of this['_suggestionToController']['keys']())this['_destroyController'](_0x8d7c03);for(const _0x232f93 of this['_annotationViews']['values']())_0x232f93['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4747cd){return'model'in _0x4747cd;}class k extends _0x5be5ff{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1576e4){this['editor']['plugins']['get'](p)['adapter']=_0x1576e4;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4c7fe4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4c7fe4);}['getSuggestions']({skipNotAttached:_0x4a2f36=!0x1,toJSON:_0x3ee3bb=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4a2f36,'toJSON':_0x3ee3bb});}['getSuggestion'](_0x44a92f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x44a92f);}}const w=['Pagination'];class T extends _0x5be5ff{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5a0966=this['editor'];if(_0x5a0966['config']['define']('trackChangesData.editorCreator',_0x29a867=>{const _0x2ba359=_0x5a0966['model']['document']['getRootNames']()['reduce']((_0x98bd2a,_0x224cf2)=>(_0x98bd2a[_0x224cf2]='',_0x98bd2a),{});return _0x5a0966['constructor']['create'](_0x2ba359,_0x29a867);}),'function'!=typeof _0x5a0966['config']['get']('trackChangesData')['editorCreator'])throw new _0x3f6d59('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x82531d){return N(this['editor'],!0x0,_0x82531d);}['getDataWithDiscardedSuggestions'](_0x462237){return N(this['editor'],!0x1,_0x462237);}}class D extends _0x5be5ff{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a26a4){function _0x2fa315(_0x3d9e2a){return _0x3d9e2a['map'](_0x3a3fb1=>String['fromCharCode'](_0x3a3fb1))['join']('');}super(_0x1a26a4),this['result']='end',_0x1a26a4[_0x2fa315([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fa315([0x76,0x69,0x65,0x77])][_0x2fa315([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fa315([0x61,0x75,0x74,0x6f]),_0x1a26a4[_0x2fa315([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2fa315([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fa315([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2fa315([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2fa315([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(_0x533bcf){return void 0x0!==_0x533bcf['getRootsAttributes'];}async function N(_0x21aa81,_0x2d222e,_0x203db1){const _0x17397d=_0x1539f4(_0x21aa81,w);_0x17397d['plugins']['push'](p,D),_0x17397d['rootsAttributes']=Ge(_0x21aa81)?_0x21aa81['getRootsAttributes']():void 0x0;const _0x3234dc=document['createDocumentFragment'](),_0x4a644a=_0x21aa81['config']['get']('trackChangesData')['editorCreator'],_0x3bf9ac=await _0x4a644a(_0x17397d,()=>function(_0x4a64ee){const _0x133d97=document['createElement']('div');return _0x4a64ee['appendChild'](_0x133d97),_0x133d97;}(_0x3234dc));!function(_0x46a0d9,_0x3339d4){const _0x118d4f=_0x46a0d9['model']['document']['getRootNames']()['reduce']((_0x533ea8,_0x3306ee)=>(_0x533ea8[_0x3306ee]=_0x46a0d9['data']['get']({'rootName':_0x3306ee}),_0x533ea8),{}),_0x57c914=_0x46a0d9['plugins']['get']('Users')['users']['map'](_0x12d6f4=>({'id':_0x12d6f4['id'],'name':_0x12d6f4['name']})),_0x95273=_0x46a0d9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1b8bd7=_0x46a0d9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x595e08=_0x3339d4['plugins']['get']('Users'),_0x26e824=_0x3339d4['plugins']['get']('TrackChangesEditing'),_0x30bb7d=_0x3339d4['plugins']['get']('CommentsRepository');for(const _0x54bdbc of _0x30bb7d['getCommentThreads']())_0x54bdbc['remove']();for(const _0x5cde78 of _0x57c914)_0x595e08['getUser'](_0x5cde78['id'])||_0x595e08['addUser'](_0x5cde78);_0x595e08['me']||_0x595e08['useAnonymousUser']();for(const _0xd6838b of _0x1b8bd7)_0x30bb7d['addCommentThread'](_0xd6838b);for(const _0x5648fb of _0x95273)_0x26e824['addSuggestionData'](_0x5648fb);_0x3339d4['data']['set'](_0x118d4f);}(_0x21aa81,_0x3bf9ac),_0x3bf9ac['execute'](_0x2d222e?'acceptAllSuggestions':'discardAllSuggestions');const _0x3ba08a=Ge(_0x3bf9ac)?_0x3bf9ac['getFullData'](_0x203db1):_0x3bf9ac['data']['get'](_0x203db1);return await _0x3bf9ac['destroy'](),_0x3ba08a;}class Me extends _0x27afbd{['options'];constructor(_0x12de13,_0xbe561a){super(_0x12de13),this['options']=_0xbe561a,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'](_0x4bd487,_0x46c173){if(!this['element'])return;const _0x1a7e7a=[];for(const [_0x5c77e3,_0x5309d9]of _0x4bd487){const _0x5c582f=document['createElement']('div');_0x5c582f['setAttribute']('data-ck-root-name',_0x5c77e3),_0x5c582f['className']=_0x5309d9['classes']+'\x20ck-track-changes-preview__root-container',_0x5c582f['innerHTML']=_0x5309d9['content'],_0x1a7e7a['push'](_0x5c582f);}_0x46c173(this['element'],_0x1a7e7a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x4c839a{constructor(_0x2a2eef){super(_0x2a2eef),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x45113e=this['editor'],_0x3b218b=_0x45113e['locale'],_0x425ba4=_0x45113e['plugins']['get']('Dialog');let _0x2c303f;const _0x1a9cfe=function(_0x503216){const _0x53a861={};if('editables'in _0x503216['ui']['view']){for(const [_0x4083c1,_0x588a3d]of Object['entries'](_0x503216['ui']['view']['editables']))_0x53a861[_0x4083c1]=_0x588a3d['element'];}else _0x53a861[_0x503216['model']['document']['getRootNames']()[0x0]]=_0x503216['ui']['view']['editable']['element'];return _0x53a861;}(_0x45113e),_0x4b6825=function(_0x388217){let _0x5e138a=0x0;for(const _0x1d8271 of Object['values'](_0x388217))_0x5e138a=Math['max'](_0x5e138a,_0x1d8271['getBoundingClientRect']()['width']);let _0x53c8ff=0x0;for(const _0x1acb0a of Object['values'](_0x388217))_0x53c8ff+=_0x1acb0a['getBoundingClientRect']()['height'];const _0x36ee43=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x110abb=Math['min'](_0x53c8ff,_0x36ee43);return{'width':_0x5e138a,'height':_0x110abb};}(_0x1a9cfe);_0x425ba4['show']({'id':'finalContentPreview','title':c(_0x3b218b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3b218b,{'dialogRects':_0x4b6825}),'onHide':()=>{_0x2c303f['detachFromDom']();},'onShow':()=>{_0x45113e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4e4bc3=>{const _0x431803=this['_standarizeRootsData'](_0x4e4bc3,_0x45113e,_0x1a9cfe);_0x425ba4['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x431803,_0x45113e['config']['get']('trackChanges.preview.renderFunction'));}),_0x2c303f=new _0x34e115(_0x3b218b,[_0x425ba4['view']]),_0x2c303f['attachToDom'](),_0x2c303f['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x45113e['once']('destroy',()=>{_0x2c303f['detachFromDom']();});const _0x1fe90e=_0x425ba4['view']['headerView']['class'];_0x425ba4['view']['headerView']['class']=_0x1fe90e?_0x1fe90e+'\x20ck-reset_all':'ck-reset_all',_0x425ba4['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x425ba4['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x41884c=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x56cb73=_0x41884c['previewMode'],_0x274582={};if('$labels'===_0x56cb73){for(const _0x3f4b0c of _0x41884c['getMergeFieldsIds']())_0x274582[_0x3f4b0c]=_0x41884c['getLabel'](_0x3f4b0c)||_0x3f4b0c;}else{const _0x5e1b69='$defaultValues'===_0x56cb73?_0x41884c['getDefaultValues']():_0x41884c['getDataSetValues'](_0x56cb73,!0x0);for(const _0x1c576d of Object['entries'](_0x5e1b69)){const [_0x2488b4,_0x158823]=_0x1c576d;_0x274582[_0x2488b4]=null!==_0x158823?_0x158823:_0x41884c['getLabel'](_0x2488b4)||_0x2488b4;}}return{'mergeFieldsData':_0x274582};}['_standarizeRootsData'](_0x489cec,_0x3f2aa7,_0x498c44){let _0x2d6222;if('string'==typeof _0x489cec){const _0x303033=_0x3f2aa7['model']['document']['getRootNames']()[0x0];_0x2d6222={[_0x303033]:_0x489cec};}else _0x2d6222=_0x489cec;const _0x1b8675=this['_fixMediaEmbeds'](_0x2d6222,_0x3f2aa7),_0x2ded8b=function(_0xf19b98,_0x3b933b){for(const [_0x2b3da1,_0x2e2381]of _0xf19b98)_0x2e2381['classes']=_0x3b933b[_0x2b3da1]['classList']['value']['replace']('ck-focused','');return _0xf19b98;}(this['_sortRoots'](_0x3f2aa7)['reduce']((_0xf4d65d,_0x53aca4)=>(_0xf4d65d['push']([_0x53aca4,{'content':_0x1b8675[_0x53aca4],'classes':''}]),_0xf4d65d),[]),_0x498c44);return _0x2ded8b;}['_fixMediaEmbeds'](_0xb7fe36,_0x56ad91){if(!_0x56ad91['plugins']['has']('MediaEmbedEditing'))return _0xb7fe36;const _0x87b380=_0x56ad91['plugins']['get']('MediaEmbedEditing');for(const [_0x3671c1,_0x2e17bc]of Object['entries'](_0xb7fe36)){const _0x29424d=document['createElement']('div');_0x29424d['innerHTML']=_0x2e17bc,(_0x29424d['querySelectorAll']('figure.media')['forEach'](_0x4078d0=>{const _0x42b6e0=_0x4078d0['querySelector']('oembed');if(_0x42b6e0){const _0x55e310=_0x42b6e0['getAttribute']('url');if(_0x55e310){const _0x4e6dd3=_0x87b380['registry']['getMediaViewElement'](new _0x527b69(_0x56ad91['editing']['view']['document']),_0x55e310,{'elementName':'','renderForEditingView':!0x0}),_0x2f6bcb=document['createElement']('div');_0x2f6bcb['classList']['add']('ck-media__wrapper'),_0x4e6dd3['render'](_0x2f6bcb,_0x56ad91['editing']['view']['domConverter']),_0x42b6e0['replaceWith'](_0x2f6bcb);}}}),_0xb7fe36[_0x3671c1]=_0x29424d['innerHTML']);}return _0xb7fe36;}['_sortRoots'](_0x4460c3){if(!function(_0x1e1d17){return void 0x0!==_0x1e1d17['getRootsAttributes'];}(_0x4460c3))return _0x4460c3['model']['document']['getRootNames']();const _0x5b897d=[],_0x2e9243=new Map();for(const _0x2d621c of _0x4460c3['model']['document']['getRootNames']()){const _0x997521=_0x4460c3['editing']['view']['getDomRoot'](_0x2d621c)['getClientRects']()['item'](0x0);_0x5b897d['push'](_0x2d621c),_0x2e9243['set'](_0x2d621c,_0x997521);}return _0x5b897d['sort']((_0x14fe93,_0x364a17)=>{const _0x5d69fb=_0x2e9243['get'](_0x14fe93),_0x56dd62=_0x2e9243['get'](_0x364a17);return _0x5d69fb['y']-_0x56dd62['y']||_0x5d69fb['x']-_0x56dd62['x'];}),_0x5b897d;}}class te extends _0x5be5ff{static get['requires'](){return[T,_0x1aa0d1];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd0c26d){super(_0xd0c26d),_0xd0c26d['commands']['add']('previewFinalContent',new re(this['editor'])),_0xd0c26d['config']['define']('trackChanges.preview.renderFunction',(_0x54a5e9,_0x430d75)=>{for(const _0x30e141 of _0x430d75)_0x54a5e9['appendChild'](_0x30e141);});}}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 _0x300a5e,Plugin as _0xcf6495,PendingActions as _0x41e2ba}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x561ad9,ObservableMixin as _0x29e98a,uid as _0x2db65b,priorities as _0x3c811d,insertToPriorityArray as _0x484793,toArray as _0x5b0719,logWarning as _0x2e496d,getEnvKeystrokeText as _0x21f300,FocusTracker as _0x26af47,KeystrokeHandler as _0x17036a,Collection as _0x4376a0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x387c07,IconCancel as _0x1a8e09,IconTrackChanges as _0x4c9fcd}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2a815d,View as _0x4d198f,ViewCollection as _0x46a819,FocusCycler as _0x480eab,ViewModel as _0x412730,createDropdown as _0x241414,SplitButtonView as _0x366e57,addListToDropdown as _0xa466d0,MenuBarMenuView as _0x16eb64,MenuBarMenuListView as _0x3c8fc5,ListSeparatorView as _0x3ece44,MenuBarMenuListItemView as _0x21f962,MenuBarMenuListItemButtonView as _0x8d11dc,BodyCollection as _0x33f05a,Dialog as _0x3650b3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x30d1d1,hashObject as _0x5f1f53,surroundingMarkersDetector as _0x57b766,FOCUS_ANNOTATION_KEYSTROKE as _0x744858,AriaDescriptionView as _0x416678,setupThreadKeyboardNavigation as _0x52c450,trimHtml as ti,UserView as _0x31ac2a,LateFocusButtonView as _0x45dc97,getDateTimeFormatter as _0x11fa02,getAllMarkersDomElementsSorted as _0x22a887,sanitizeEditorConfig as _0x45de1d}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xbdd9d4,LiveRange as _0x487116,LivePosition as _0x1cc4f8,DowncastWriter as _0x44522e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2e42e5,toWidget as _0x57c051}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x117d6f,set as _0x4f0eb6,isEqual as _0xe9d34d,unset as _0x13b8fd,omit as Ft}from'es-toolkit/compat';import{Delete as _0x18d4b4,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3e4c79}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x138767}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x300a5e{['_enabledCommands'];constructor(_0x16639b,_0x537b5a){super(_0x16639b),this['_enabledCommands']=_0x537b5a,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 _0x1fa8b5 of this['editor']['commands']['commands']())_0x1fa8b5['affectsData']&&!this['_enabledCommands']['has'](_0x1fa8b5)&&_0x1fa8b5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3bfa86 of this['editor']['commands']['commands']())_0x3bfa86['affectsData']&&!this['_enabledCommands']['has'](_0x3bfa86)&&_0x3bfa86['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x300a5e{['_suggestions'];constructor(_0x5b4678,_0x5a74bb){super(_0x5b4678),this['_suggestions']=_0x5a74bb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4e192c){const _0x16ea94=this['_suggestions']['get'](_0x4e192c);if(!_0x16ea94)throw new _0x561ad9('track-changes-accept-suggestion-not-found',this);const _0x5f49cc=_0x16ea94['getRanges']();this['editor']['model']['canEditAt'](_0x5f49cc)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x16ea94);}}class O extends _0x300a5e{['_suggestions'];constructor(_0x14386b,_0x4e30ac){super(_0x14386b),this['_suggestions']=_0x4e30ac,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3893f8){const _0x291bb2=this['_suggestions']['get'](_0x3893f8);if(!_0x291bb2)throw new _0x561ad9('track-changes-discard-suggestion-not-found',this);const _0x37cba8=_0x291bb2['getRanges']();this['editor']['model']['canEditAt'](_0x37cba8)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x291bb2);}}function ls(_0x456bd2,_0x3abee7){let _0x11f408='';return _0x11f408+=_0x456bd2['split']('*')['map']((_0x1b8bc2,_0x4ee2cf)=>_0x4ee2cf%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1b8bc2)+'</span>':nn(_0x1b8bc2))['join'](''),_0x3abee7&&(_0x11f408+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3abee7['value']+'\x22\x20title=\x22'+_0x3abee7['title']+'\x22></span>'),_0x11f408;}function nn(_0x2d2474){const _0x2cef48=document['createElement']('span');return _0x2cef48['innerText']=_0x2d2474,_0x2cef48['innerHTML'];}function ts(_0x1519f1){return _0x1519f1['sort']((_0x2e25ae,_0x1a0b15)=>'deletion'==_0x2e25ae['type']&&'deletion'!=_0x1a0b15['type']?-0x1:'deletion'!=_0x2e25ae['type']&&'deletion'==_0x1a0b15['type']?0x1:0x0);}function to(_0x15d1b8,_0x1b107c){let _0x53bb1a,_0x5c1588=0x0;const _0x42968c=[],_0x34801d=_0x1b107c['schema'];for(;_0x5c1588<_0x15d1b8['length'];){const _0x3c3638=_0x15d1b8[_0x5c1588],_0x177d99=_0x15d1b8[_0x5c1588+0x1];_0x53bb1a||(_0x53bb1a=_0x1b107c['createPositionBefore'](_0x3c3638)),on(_0x1b107c,_0x3c3638,_0x177d99)||(_0x42968c['push'](_0x1b107c['createRange'](_0x53bb1a,_0x34801d['isObject'](_0x3c3638)?_0x1b107c['createPositionAfter'](_0x3c3638):_0x1b107c['createPositionAt'](_0x3c3638,'end'))),_0x53bb1a=null),_0x5c1588++;}return _0x42968c;}function on(_0x4c05fe,_0x24860a,_0xab1e03){if(!_0xab1e03)return!0x1;const _0x3264cc=_0x4c05fe['createPositionAfter'](_0x24860a),_0x431fa8=_0x4c05fe['createPositionBefore'](_0xab1e03);return _0x3264cc['isTouching'](_0x431fa8);}function rs(_0x1a3d7e,_0x5ef5d8,_0x40ea15){for(;_0x40ea15['length'];){const _0x71e819=_0x40ea15['splice'](0x0,0x64);_0x1a3d7e['change'](()=>{for(const _0x4e95fa of _0x71e819)_0x4e95fa['isInContent']&&_0x5ef5d8['execute'](_0x4e95fa['id']);});}}class R extends _0x300a5e{['_command'];['_suggestions'];constructor(_0x410c82,_0x1932b2,_0x596e02){super(_0x410c82),this['_command']=_0x1932b2,this['_suggestions']=_0x596e02,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x40bf8f=Array['from'](this['_suggestions']['values']())['some'](_0x180c0c=>_0x180c0c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x40bf8f;}['execute'](){const _0x23a14a=ts(Array['from'](this['_suggestions']['values']()));for(const _0x14b9e3 of _0x23a14a){const _0x578b56=_0x14b9e3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x578b56))return;}rs(this['editor']['model'],this['_command'],_0x23a14a);}}class E extends _0x300a5e{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1a8f92,_0x391fb9,_0x39cb8f){super(_0x1a8f92),this['_command']=_0x391fb9,this['_suggestions']=_0x39cb8f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xa8c847=this['editor']['model']['document']['selection'],_0x44db22=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xd6c1e4,_0x26bd94){const _0x42b90d=Array['from'](_0xd6c1e4['getRanges']()),_0x55b2a8=new Set();for(const _0x21303c of _0x26bd94)if(_0x21303c['isInContent']){for(const _0x344574 of _0x42b90d)for(const _0x15485e of _0x21303c['getRanges']())(_0x344574['isIntersecting'](_0x15485e)||_0xd6c1e4['isCollapsed']&&!_0x21303c['isMultiRange']&&_0x21303c['next']&&_0x15485e['end']['isTouching'](_0x344574['start']))&&_0x55b2a8['add'](_0x21303c);}return _0x55b2a8;}(_0xa8c847,_0x44db22),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2c94a0=ts(Array['from'](this['_selectedSuggestions']));for(const _0x162f1f of _0x2c94a0){const _0xba014=_0x162f1f['getRanges']();if(!this['editor']['model']['canEditAt'](_0xba014))return;}rs(this['editor']['model'],this['_command'],_0x2c94a0);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x29e98a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x31a24e,_0x39f483){super(),this['id']=_0x39f483['id'],this['type']=_0x39f483['type'],this['subType']=_0x39f483['subType']||null,this['author']=_0x39f483['author'],this['creator']=_0x39f483['creator']||_0x39f483['author'],this['isExternal']=Boolean(_0x39f483['attributes']&&_0x39f483['attributes']['@external']),this['data']=null,this['_model']=_0x31a24e,this['_onAccept']=_0x39f483['onAccept'],this['_onDiscard']=_0x39f483['onDiscard'],this['_onAttributesChange']=_0x39f483['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x39f483['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 _0x24d976=this;for(;_0x24d976['previous'];)_0x24d976=_0x24d976['previous'];return _0x24d976;}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'](_0x8f3322){this['_markerNames']['add'](_0x8f3322);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5a484b=>this['_model']['markers']['get'](_0x5a484b))['filter'](_0x485fff=>_0x485fff);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x464676=>{for(const _0x17052d of this['getMarkers']())_0x464676['removeMarker'](_0x17052d);}),this['_markerNames']['clear']();}['removeMarker'](_0x3bad15){this['_model']['change'](_0x298ca7=>{_0x298ca7['removeMarker'](_0x3bad15);}),this['_markerNames']['delete'](_0x3bad15);}['addRange'](_0x11f74b){const _0x267cef='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x267cef),this['_model']['change'](_0x3c5dab=>{_0x3c5dab['addMarker'](_0x267cef,{'range':_0x11f74b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2bb1a2){for(const _0x36dfea of this['getRanges']())if(_0x36dfea['isIntersecting'](_0x2bb1a2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x57bffb=>_0x57bffb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x18f45a,_0x556c25)=>[..._0x18f45a,..._0x556c25['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x366265=this['getRanges']();if(0x1!=_0x366265['length'])return null;const _0x22c5c3=_0x366265[0x0],_0x5b7159=_0x22c5c3['start']['nodeAfter'],_0x492c2e=_0x22c5c3['end']['nodeBefore'];return _0x5b7159 instanceof _0xbdd9d4?_0x5b7159!=_0x492c2e?null:_0x5b7159: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 _0x20ef23=[];let _0x49347a=this['head'];for(;_0x49347a;)_0x20ef23['push'](_0x49347a),_0x49347a=_0x49347a['next'];return _0x20ef23;}['setAttribute'](_0x770d5e,_0xef07b0){const _0x4e8b7a=_0x117d6f(this['attributes']);_0x4f0eb6(_0x4e8b7a,_0x770d5e,_0xef07b0),_0xe9d34d(_0x4e8b7a,this['attributes'])||(this['attributes']=_0x4e8b7a,this['_onAttributesChange'](_0x4e8b7a));}['removeAttribute'](_0x3c6cd7){const _0x291df6=_0x117d6f(this['attributes']);_0x13b8fd(_0x291df6,_0x3c6cd7),_0xe9d34d(_0x291df6,this['attributes'])||(this['attributes']=_0x291df6,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 _0x2db65b()['substr'](0x1,0x5);}}function c(_0x16bdd4,_0x26ea2b,_0x4e34fe){const _0x5e7248=_0x16bdd4['t'],t=_0x16bdd4['t'];switch(_0x26ea2b){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',_0x4e34fe);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4e34fe);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4e34fe);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4e34fe);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4e34fe);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',_0x4e34fe);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4e34fe);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',_0x4e34fe);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4e34fe);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4e34fe);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4e34fe);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4e34fe);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4e34fe);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4e34fe);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4e34fe);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4e34fe);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4e34fe);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4e34fe);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4e34fe);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4e34fe);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4e34fe);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4e34fe);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4e34fe);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4e34fe);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4e34fe);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'},_0x4e34fe);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4e34fe);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4e34fe);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4e34fe);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4e34fe);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4e34fe);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4e34fe);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4e34fe);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'},_0x4e34fe);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4e34fe);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4e34fe);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4e34fe);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4e34fe);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'},_0x4e34fe);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4e34fe);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'},_0x4e34fe);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'},_0x4e34fe);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4e34fe);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'},_0x4e34fe);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4e34fe);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'},_0x4e34fe);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4e34fe);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4e34fe);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'},_0x4e34fe);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4e34fe);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 _0x5e7248({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4e34fe);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5e7248({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4e34fe);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4e34fe);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'},_0x4e34fe);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'},_0x4e34fe);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'},_0x4e34fe);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x26ea2b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x27f1e1,_0x3e45cc){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x27f1e1,this['_locale']=_0x3e45cc;}['getDescriptions'](_0x495950){const _0x49b161=[],_0x32831a=new Set(),_0x106860=new Set();for(let _0x21c83b=0x0;_0x21c83b<_0x495950['length'];_0x21c83b++){const _0x1c5e70=_0x495950[_0x21c83b];if(!_0x1c5e70['isInContent'])continue;const _0x4bcfbf=this['_handleCustomCallbackDescription'](_0x1c5e70);if(_0x4bcfbf){if(null!=_0x1c5e70['subType']){if(_0x32831a['has'](_0x1c5e70['subType']))continue;_0x32831a['add'](_0x1c5e70['subType']);}_0x49b161['push'](_0x4bcfbf);}else{if('attribute'!=_0x1c5e70['type'])'insertion'!=_0x1c5e70['type']&&'deletion'!=_0x1c5e70['type']||this['_handleInsertRemoveSuggestionDescription'](_0x49b161,_0x1c5e70,_0x495950[_0x21c83b+0x1]);else{const _0x250bc9=_0x1c5e70['data']['key'];if(_0x106860['has'](_0x250bc9))continue;_0x106860['add'](_0x1c5e70['data']['key']),_0x250bc9==u?this['_handleRenameSuggestionDescription'](_0x49b161,_0x1c5e70):this['_handleAttributeSuggestionDescription'](_0x49b161,_0x1c5e70);}}}return this['_resolveDescriptionItems'](_0x49b161);}['registerDescriptionCallback'](_0x356522){this['_customCallbacks']['push'](_0x356522);}['registerElementLabel'](_0x1bbaa2,_0x5c8f98,_0x1d9bdf=_0x3c811d['normal']){'function'==typeof _0x1bbaa2?_0x484793(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1bbaa2,'label':_0x5c8f98,'priority':_0x1d9bdf}):this['_itemLabels']['set'](_0x1bbaa2,_0x5c8f98);}['registerAttributeLabel'](_0x40a0ba,_0x48f9e5){this['_attributeLabels']['set'](_0x40a0ba,_0x48f9e5);}['getItemLabel'](_0x345cfd,_0x3ab972=0x1){let _0x472239;for(const _0x58b7fa of this['_itemLabelsCallbacks'])if(_0x58b7fa['matchingCallback'](_0x345cfd)){_0x472239=_0x58b7fa['label'];break;}return _0x472239||(_0x472239=this['_itemLabels']['get'](_0x345cfd['name'])),_0x472239?_0x472239(_0x3ab972):0x1!==_0x3ab972?_0x3ab972+'\x20'+_0x345cfd['name']+'s':''+_0x345cfd['name'];}['_addDescriptionItems'](_0x325c0f,_0x3aee9c){const _0x3d8393=_0x3aee9c['getFirstRange']()['getWalker'](),_0x2ef19c='insertion'==_0x3aee9c['type']?'add':'remove';for(const _0x1fcc52 of _0x3d8393){const _0x5f4ac5=_0x1fcc52['item'],_0x5d8b74=_0x325c0f[_0x325c0f['length']-0x1];if(_0x5f4ac5['is']('$textProxy'))_0x5d8b74&&_0x5d8b74['type']['indexOf']('Container')>-0x1&&_0x325c0f['pop'](),_0x5d8b74&&'text'==_0x5d8b74['type']?_0x5d8b74[_0x2ef19c]+=_0x5f4ac5['data']:_0x325c0f['push']({'type':'text','add':'add'==_0x2ef19c?_0x5f4ac5['data']:'','remove':'remove'==_0x2ef19c?_0x5f4ac5['data']:''});else{if(this['_schema']['isObject'](_0x5f4ac5)){const _0x9141bd=_0x5f4ac5;if(_0x5d8b74&&_0x5d8b74['type']['indexOf']('Container')>-0x1&&_0x325c0f['pop'](),'elementEnd'==_0x1fcc52['type'])continue;_0x5d8b74&&_0x5d8b74['type']==_0x2ef19c+'Object'&&_0x5d8b74['element']['name']==_0x9141bd['name']?_0x5d8b74['quantity']++:_0x325c0f['push']({'type':_0x2ef19c+'Object','element':_0x9141bd,'quantity':0x1}),_0x3d8393['skip'](_0x284ec9=>!('elementEnd'==_0x284ec9['type']&&_0x284ec9['item']==_0x5f4ac5));}else{if(this['_schema']['checkChild'](_0x5f4ac5,'$text')||_0x5f4ac5['is']('element','softBreak')){const _0x44c173=_0x5f4ac5;if('add'==_0x2ef19c&&'elementStart'==_0x1fcc52['type']||'remove'==_0x2ef19c&&'elementEnd'==_0x1fcc52['type'])continue;if(_0x5d8b74&&-0x1==_0x5d8b74['type']['indexOf']('Container')){'text'==_0x5d8b74['type']&&(_0x5d8b74[_0x2ef19c]+='\x0a');continue;}let _0x340425;if(_0x340425='add'==_0x2ef19c?_0x44c173['nextSibling']&&!this['_schema']['isObject'](_0x44c173['nextSibling'])?_0x44c173['nextSibling']:null:_0x44c173['previousSibling']&&!this['_schema']['isObject'](_0x44c173['previousSibling'])?_0x44c173['previousSibling']:null,_0x44c173['isEmpty']||_0x340425&&_0x340425['isEmpty']){const _0x219aee=_0x340425&&_0x340425['isEmpty']?_0x340425:_0x44c173;_0x5d8b74&&_0x5d8b74['type']==_0x2ef19c+'EmptyContainer'&&_0x5d8b74['element']['name']==_0x219aee['name']?_0x5d8b74['quantity']++:_0x325c0f['push']({'type':_0x2ef19c+'EmptyContainer','element':_0x219aee,'quantity':0x1});}else _0x325c0f['push']({'type':_0x2ef19c+'Container','element':_0x44c173});}}}}}['_resolveDescriptionItems'](_0x502925){const _0x2c6200=this['_locale'],_0x28f67c=[],_0x3e3ec3=[],_0x250a30=[];for(const _0x2ac682 of _0x502925)switch(_0x2ac682['type']){case'text':if(_0x2ac682['add']=_0x2ac682['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2ac682['remove']=_0x2ac682['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2ac682['add']&&''!=_0x2ac682['remove']){_0x28f67c['push']({'type':'replace','content':c(_0x2c6200,'REPLACE_TEXT',['\x22'+_0x2ac682['remove']+'\x22','\x22'+_0x2ac682['add']+'\x22'])});continue;}if(null!=_0x2ac682['add']['match'](/^ +$/)){_0x28f67c['push']({'type':'insertion','content':c(_0x2c6200,'*Insert:*\x20%0',c(_0x2c6200,'ELEMENT_SPACE',_0x2ac682['add']['length']))});continue;}if(null!=_0x2ac682['remove']['match'](/^ +$/)){_0x28f67c['push']({'type':'deletion','content':c(_0x2c6200,'*Remove:*\x20%0',c(_0x2c6200,'ELEMENT_SPACE',_0x2ac682['remove']['length']))});continue;}if(''!=_0x2ac682['add']){_0x28f67c['push']({'type':'insertion','content':c(_0x2c6200,'*Insert:*\x20%0','\x22'+_0x2ac682['add']+'\x22')});continue;}_0x28f67c['push']({'type':'deletion','content':c(_0x2c6200,'*Remove:*\x20%0','\x22'+_0x2ac682['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x28f67c['push']({'type':'insertion','content':c(_0x2c6200,'*Insert:*\x20%0',this['getItemLabel'](_0x2ac682['element'],_0x2ac682['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x28f67c['push']({'type':'deletion','content':c(_0x2c6200,'*Remove:*\x20%0',this['getItemLabel'](_0x2ac682['element'],_0x2ac682['quantity']))});continue;case'addContainer':_0x28f67c['push']({'type':'insertion','content':c(_0x2c6200,'*Split:*\x20%0',this['getItemLabel'](_0x2ac682['element'],_0x2ac682['quantity']))});continue;case'removeContainer':_0x28f67c['push']({'type':'deletion','content':c(_0x2c6200,'*Merge:*\x20%0',this['getItemLabel'](_0x2ac682['element'],_0x2ac682['quantity']))});continue;case'addFormat':_0x3e3ec3['push'](_0x2ac682['key']);continue;case'removeFormat':_0x250a30['push'](_0x2ac682['key']);continue;default:_0x28f67c['push'](_0x2ac682);}if(_0x3e3ec3['length']){const _0x5dc5dd=_0x3e3ec3['map'](_0x210f7b=>this['_attributeLabels']['has'](_0x210f7b)?this['_attributeLabels']['get'](_0x210f7b):_0x210f7b)['join'](',\x20');_0x28f67c['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x5dc5dd)});}if(_0x250a30['length']){const _0x330a2d=_0x250a30['map'](_0x51b414=>this['_attributeLabels']['has'](_0x51b414)?this['_attributeLabels']['get'](_0x51b414):_0x51b414)['join'](',\x20');_0x28f67c['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x330a2d)});}return _0x28f67c;}['_handleCustomCallbackDescription'](_0x210165){for(const _0x232773 of this['_customCallbacks']){const _0x541787=_0x232773(_0x210165);if(_0x541787&&'type'in _0x541787)return _0x541787;}}['_handleAttributeSuggestionDescription'](_0x57268e,_0x3d204e){const _0x5f3f3e=_0x3d204e['data'],_0x412a86=void 0x0===_0x5f3f3e['newValue']?'removeFormat':'addFormat';_0x57268e['push']({'type':_0x412a86,'key':_0x5f3f3e['key']});}['_handleRenameSuggestionDescription'](_0x52f979,_0x1e1e1f){_0x52f979['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1e1e1f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x26ca8a,_0x47bb17,_0x3e3753){if(this['_addDescriptionItems'](_0x26ca8a,_0x47bb17),_0x3e3753&&_0x3e3753['getFirstRange']()&&!_0x47bb17['getFirstRange']()['end']['isEqual'](_0x3e3753['getFirstRange']()['start'])){const _0x253a4f=_0x26ca8a[_0x26ca8a['length']-0x1],_0x31586a='insertion'==_0x47bb17['type']?'add':'remove';_0x253a4f&&'text'==_0x253a4f['type']&&(_0x253a4f[_0x31586a]+='\x0a');}}}class U extends _0xcf6495{['afterInit'](){const _0x4af38c=this['editor'],_0x2fcff2=_0x4af38c['plugins']['get']('TrackChangesEditing');_0x4af38c['commands']['get']('showAIAssistant')&&_0x2fcff2['enableCommand']('showAIAssistant');}}class V extends _0xcf6495{['afterInit'](){const _0x3425c0=this['editor'],_0x26bd91=_0x3425c0['locale'];if(!_0x3425c0['plugins']['has']('AlignmentEditing'))return;const _0x56711a=_0x3425c0['plugins']['get']('TrackChangesEditing');_0x56711a['enableDefaultAttributesIntegration']('alignment'),_0x56711a['registerBlockAttribute']('alignment'),_0x56711a['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x26bd91,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4703c7=this['editor'],_0x677aff=_0x4703c7['locale'];_0x4703c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e8c06=>{if('formatBlock'!=_0x3e8c06['type'])return;const {data:_0x16a28f}=_0x3e8c06;if(_0x16a28f&&'alignment'==_0x16a28f['commandName']){const _0xe3b26=_0x16a28f['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x677aff,'*Format:*\x20%0',function(_0x384ee0){switch(_0x384ee0){case'left':return c(_0x677aff,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x677aff,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x677aff,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x677aff,'FORMAT_JUSTIFY_TEXT');}}(_0xe3b26))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0xcf6495{['afterInit'](){const _0x16d71e=this['editor'],_0x26521f=_0x16d71e['plugins']['get']('TrackChangesEditing'),_0x54ab5a=_0x16d71e['locale'];for(const _0x344dec of Zt){if(!_0x16d71e['plugins']['has'](_0x344dec))continue;const _0x39c62d=_0x344dec['slice'](0x0,-0x7)['toLowerCase'](),_0x11b8a9='FORMAT_'+_0x39c62d['toUpperCase']();_0x26521f['enableDefaultAttributesIntegration'](_0x39c62d),_0x26521f['registerInlineAttribute'](_0x39c62d),_0x26521f['descriptionFactory']['registerAttributeLabel'](_0x39c62d,c(_0x54ab5a,_0x11b8a9));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x514d3c=this['editor'],_0x527e2e=_0x514d3c['locale'],_0x3a7af7=_0x514d3c['plugins']['get']('TrackChangesEditing');function _0x521c0b(_0x29d860,_0x3564d2){_0x3a7af7['descriptionFactory']['registerDescriptionCallback'](_0x387ba7=>{if('formatInline'!=_0x387ba7['type'])return;const {data:_0x39b477}=_0x387ba7;return _0x39b477&&_0x39b477['commandName']===_0x29d860?_0x39b477['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x527e2e,'*Format:*\x20%0',_0x3564d2)}:{'type':'format','content':c(_0x527e2e,'*Remove\x20format:*\x20%0',_0x3564d2)}:void 0x0;});}_0x521c0b('bold',c(_0x527e2e,'FORMAT_BOLD')),_0x521c0b('italic',c(_0x527e2e,'FORMAT_ITALIC')),_0x521c0b('underline',c(_0x527e2e,'FORMAT_UNDERLINE')),_0x521c0b('code',c(_0x527e2e,'FORMAT_CODE')),_0x521c0b('strikethrough',c(_0x527e2e,'FORMAT_STRIKETHROUGH')),_0x521c0b('subscript',c(_0x527e2e,'FORMAT_SUBSCRIPT')),_0x521c0b('superscript',c(_0x527e2e,'FORMAT_SUPERSCRIPT'));}}class G extends _0xcf6495{['afterInit'](){const _0x4011fa=this['editor'],_0x31fdea=_0x4011fa['locale'];if(!_0x4011fa['plugins']['has']('BlockQuoteEditing'))return;const _0x383ca2=_0x4011fa['plugins']['get']('TrackChangesEditing'),_0x4e01ac=this['editor']['commands']['get']('blockQuote');_0x383ca2['enableCommand']('blockQuote',(_0x59c958,_0x3abdff={})=>{const _0xa3bbca=this['editor']['model']['document']['selection'],_0x30cc4c=_0x3abdff&&void 0x0!==_0x3abdff['forceValue']?_0x3abdff['forceValue']:!_0x4e01ac['value'];let _0x5af509=[];if(_0x30cc4c){const _0x238fd5=Array['from'](_0xa3bbca['getSelectedBlocks']())['filter'](_0x271a71=>oo(_0x271a71)||function(_0x58cbdc,_0x579dd0){const _0x5ef7ec=_0x579dd0['checkChild'](_0x58cbdc['parent'],'blockQuote'),_0x1ecbb1=_0x579dd0['checkChild'](['$root','blockQuote'],_0x58cbdc);return _0x5ef7ec&&_0x1ecbb1;}(_0x271a71,this['editor']['model']['schema']));_0x5af509=to(_0x238fd5,_0x4011fa['model']);}else{const _0x567f26=Array['from'](_0xa3bbca['getSelectedBlocks']())['filter'](_0x327201=>oo(_0x327201));_0x5af509=to(_0x567f26,_0x4011fa['model']);}_0x4011fa['model']['change'](()=>{for(const _0xd6e4e3 of _0x5af509)_0x383ca2['markBlockFormat'](_0xd6e4e3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x30cc4c}]});});}),_0x383ca2['descriptionFactory']['registerDescriptionCallback'](_0x797966=>{const {data:_0x51af72}=_0x797966;if(_0x51af72&&'blockQuote'==_0x51af72['commandName']){const _0x4612fa=c(_0x31fdea,'ELEMENT_BLOCK_QUOTE');return _0x51af72['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x31fdea,'*Set\x20format:*\x20%0',_0x4612fa)}:{'type':'format','content':c(_0x31fdea,'*Remove\x20format:*\x20%0',_0x4612fa)};}});}}function oo(_0x58077a){return'blockQuote'==_0x58077a['parent']['name'];}class L extends _0xcf6495{['afterInit'](){const _0x3e145c=this['editor'],_0x55eb24=_0x3e145c['locale'],_0x212728=_0x3e145c['plugins']['get']('TrackChangesEditing');_0x3e145c['plugins']['has']('BookmarkEditing')&&(_0x212728['enableCommand']('insertBookmark'),_0x212728['enableDefaultAttributesIntegration']('updateBookmark'),_0x212728['registerBlockAttribute']('bookmarkId'),_0x212728['descriptionFactory']['registerDescriptionCallback'](_0x5ee061=>{if('insertion'!=_0x5ee061['type']&&'deletion'!=_0x5ee061['type']&&'attribute'!=_0x5ee061['type'])return;const _0x168768=_0x5ee061['getContainedElement']();if(null==_0x168768)return;if(!_0x168768['is']('element','bookmark'))return;const _0x31a531=_0x168768['getAttribute']('bookmarkId');if('insertion'==_0x5ee061['type'])return{'type':'insertion','content':c(_0x55eb24,'*Insert:*\x20%0','\x22'+_0x31a531+'\x22\x20'+c(_0x55eb24,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5ee061['type'])return{'type':'deletion','content':c(_0x55eb24,'*Remove:*\x20%0','\x22'+_0x31a531+'\x22\x20'+c(_0x55eb24,'ELEMENT_BOOKMARK'))};const {data:_0x42f755}=_0x5ee061;if(!_0x42f755||'bookmarkId'!=_0x42f755['key'])return;return{'type':'format','content':c(_0x55eb24,'*Set\x20bookmark:*\x20%0','\x22'+_0x42f755['newValue']+'\x22')};}));}}class J extends _0xcf6495{['afterInit'](){const _0x913f41=this['editor'];_0x913f41['plugins']['has']('CaseChange')&&(_0x913f41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x913f41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x913f41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0xcf6495{['afterInit'](){const _0x458faf=this['editor'];_0x458faf['commands']['get']('ckbox')&&_0x458faf['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0xcf6495{['afterInit'](){const _0x5f0ae4=this['editor'];if(!_0x5f0ae4['plugins']['has']('CodeBlock'))return;const _0x41cf27=_0x5f0ae4['plugins']['get']('TrackChangesEditing'),_0xb82761=_0x5f0ae4['locale'],_0x15e158=_0x5f0ae4['config']['get']('codeBlock')['languages'],_0x123a2c=_0x5f0ae4['commands']['get']('codeBlock');_0x41cf27['enableCommand']('indentCodeBlock'),_0x41cf27['enableCommand']('outdentCodeBlock'),_0x41cf27['enableCommand']('codeBlock',(_0xff72a5,_0x4f3290={})=>{const _0x1e8d28=_0x5f0ae4['model'],_0x1d3cd8=_0x5f0ae4['model']['document']['selection'],_0x58f91c=_0x4f3290&&void 0x0!==_0x4f3290['forceValue']?_0x4f3290['forceValue']:!_0x123a2c['value'];let _0x319694;_0x4f3290['language']||(_0x4f3290['language']=_0x15e158[0x0]['language']),_0x319694=_0x58f91c?Array['from'](_0x1d3cd8['getSelectedBlocks']())['filter'](_0x422aaf=>eo(_0x422aaf)||function(_0x4e0d8f,_0x403d32){if(_0x4e0d8f['is']('rootElement')||_0x403d32['isLimit'](_0x4e0d8f))return!0x1;return _0x403d32['checkChild'](_0x4e0d8f['parent'],'codeBlock');}(_0x422aaf,_0x1e8d28['schema'])):Array['from'](_0x1d3cd8['getSelectedBlocks']())['filter'](_0x437feb=>eo(_0x437feb));const _0x9e4b1b=to(_0x319694,_0x1e8d28);_0x1e8d28['change'](()=>{for(const _0x4db0a2 of _0x9e4b1b)_0x41cf27['markBlockFormat'](_0x4db0a2,{'commandName':'codeBlock','commandParams':[{..._0x4f3290,'forceValue':_0x58f91c}],'formatGroupId':'blockName'});});}),(_0x41cf27['descriptionFactory']['registerElementLabel']('codeBlock',_0x100457=>c(_0xb82761,'ELEMENT_CODE_BLOCK',_0x100457)),_0x41cf27['descriptionFactory']['registerDescriptionCallback'](_0x28b71e=>{if('formatBlock'!=_0x28b71e['type'])return;const _0x19b071=_0xb82761['t'],{data:_0x29f97a}=_0x28b71e;if(!_0x29f97a||'codeBlock'!=_0x29f97a['commandName'])return;const _0x2bfa8c=_0x29f97a['commandParams'][0x0]['language'],_0x5d60df=_0x19b071(_0x15e158['find'](_0x5225bd=>_0x5225bd['language']===_0x2bfa8c)['label'])['toLowerCase']();return _0x29f97a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xb82761,'*Set\x20format:*\x20%0',c(_0xb82761,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5d60df+')')}:{'type':'format','content':c(_0xb82761,'*Remove\x20format:*\x20%0',c(_0xb82761,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4ef4d9){return'codeBlock'==_0x4ef4d9['name'];}class q extends _0xcf6495{['afterInit'](){const _0x1a3998=this['editor'];if(!_0x1a3998['plugins']['has']('CommentsEditing'))return;_0x1a3998['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3be307,_0x2aa46d,_0x1f51d7){const _0x473551=[];for(const _0x105650 of _0x2aa46d['getItems']())_0x105650['hasAttribute'](_0x3be307)&&_0x473551['push'](_0x1f51d7['createRangeOn'](_0x105650));return _0x473551;}function Fe(_0xe852d6,_0x35a889,{showActiveMarker:_0x2f4300=!0x0}={}){const _0x585a04=_0xe852d6['plugins']['get']('TrackChangesEditing');return(_0x54a0c4,_0x4898cf,_0x5ac042)=>{if(!_0x5ac042['consumable']['test'](_0x4898cf['markerRange'],_0x54a0c4['name']))return;const _0x58b8b8=_0x4898cf['markerRange']['getWalker'](),_0xec9653=_0x4898cf['markerRange']['start'],_0x3e9c5c=_0xe852d6['model']['schema'];let _0x2752d6=null,_0xbca2a8=null,_0xc1ff29=!0x1,_0x338025=!0x1;for(const _0x348b3d of _0x58b8b8){const _0x17ddef=_0x348b3d['item'];_0xc1ff29=_0xc1ff29||_0x3e9c5c['isContent'](_0x17ddef);const _0x20290f=_0x5ac042['mapper']['toViewElement'](_0x17ddef);if(_0x20290f&&_0x20290f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x348b3d['type']&&(_0x3e9c5c['isBlock'](_0x17ddef)&&!_0x3e9c5c['isLimit'](_0x17ddef)&&(_0x17ddef['nextSibling']||_0xec9653['isAtEnd']?_0x2752d6&&_0x2752d6['parent']==_0x17ddef||(_0x2752d6=_0x17ddef,_0x46a851(_0x348b3d['previousPosition']),_0x338025=!0x0):_0xbca2a8=_0xbca2a8||_0x348b3d['previousPosition']));}function _0x46a851(_0x4d9a99){const {id:_0x33b4a7,authorId:_0x2e6004}=_0x585a04['_splitMarkerName'](_0x4898cf['markerName']),_0x514225=_0x5ac042['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x35a889,'data-suggestion':_0x33b4a7,'data-author-id':_0x2e6004}),_0xb3a3c=_0x5ac042['mapper']['toViewPosition'](_0x4d9a99);_0x2f4300&&_0x585a04['activeMarkers']['includes'](_0x4898cf['markerName'])&&_0x5ac042['writer']['addClass']('ck-suggestion-marker--active',_0x514225),_0x5ac042['writer']['insert'](_0xb3a3c,_0x514225),_0x5ac042['mapper']['bindElementToMarker'](_0x514225,_0x4898cf['markerName']);}_0xc1ff29||_0x338025||!_0xbca2a8||_0x46a851(_0xbca2a8);};}class z extends _0xcf6495{static get['requires'](){return[_0x18d4b4];}['init'](){const _0x264801=this['editor'],_0x172b7a=_0x264801['plugins']['get']('TrackChangesEditing');_0x172b7a['enableCommand']('delete');const _0x37c14a=_0x264801['commands']['get']('deleteForward');_0x172b7a['enableCommand']('deleteForward',(_0x4980c8,_0x1a00a1={})=>{const _0x2cbfad=_0x264801['model']['createSelection'](_0x264801['model']['document']['selection']);_0x2cbfad['isCollapsed']&&_0x264801['model']['modifySelection'](_0x2cbfad,{'direction':'forward','unit':_0x1a00a1['unit']});const _0x313fd6=_0x2cbfad['getFirstRange'](),_0x5205b0=_0x487116['fromRange'](_0x313fd6);let _0x515fd0;_0x4980c8(_0x1a00a1),_0x515fd0='$graveyard'==_0x5205b0['root']['rootName']?_0x264801['model']['createRange'](_0x313fd6['start']):_0x264801['model']['createRange'](_0x5205b0['start'],_0x5205b0['end']),_0x5205b0['detach'](),_0x264801['model']['enqueueChange'](_0x37c14a['buffer']['batch'],_0x307bc5=>{_0x37c14a['buffer']['lock'](),_0x307bc5['setSelection'](_0x307bc5['createRange'](_0x515fd0['end'])),_0x37c14a['buffer']['unlock']();});}),_0x264801['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x264801,'merge'),{'priority':'high'}),_0x264801['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x130361,_0x564e3e,_0x47b6cf)=>{_0x47b6cf['options']['showSuggestionHighlights']&&Fe(_0x264801,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x130361,_0x564e3e,_0x47b6cf);},{'priority':'high'}),_0x264801['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1e6ddb,_0x4be7a7,_0x3466b1)=>{const _0x10b95a=_0x3466b1['mapper']['markerNameToElements'](_0x4be7a7['markerName']);if(_0x10b95a){for(const _0x49e605 of _0x10b95a)_0x49e605['is']('uiElement')&&(_0x3466b1['mapper']['unbindElementFromMarkerName'](_0x49e605,_0x4be7a7['markerName']),_0x3466b1['writer']['remove'](_0x49e605));}},{'priority':'high'});}}class W extends _0xcf6495{['afterInit'](){const _0x1657d4=this['editor'];if(!_0x1657d4['plugins']['has']('ListEditing'))return;const _0x4084e1=_0x1657d4['locale'],_0x24e9e6=_0x1657d4['plugins']['get']('TrackChangesEditing'),_0x1da50d=_0x1657d4['plugins']['has']('TodoListEditing'),_0x2d0c48=!!_0x1657d4['config']['get']('list.multiBlock');function _0xa30e14(_0x4a9606){return{'type':'format','content':''+c(_0x4084e1,'*Set\x20format:*\x20%0',_0x4a9606)};}function _0x5aa36b(_0x291948){return{'type':'format','content':''+c(_0x4084e1,'*Remove\x20format:*\x20%0',_0x291948)};}_0x24e9e6['enableDefaultAttributesIntegration']('numberedList'),_0x24e9e6['enableDefaultAttributesIntegration']('bulletedList'),_0x24e9e6['enableDefaultAttributesIntegration']('customNumberedList'),_0x24e9e6['enableDefaultAttributesIntegration']('customBulletedList'),_0x24e9e6['enableDefaultAttributesIntegration']('indentList'),_0x24e9e6['enableDefaultAttributesIntegration']('outdentList'),_0x24e9e6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x24e9e6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x24e9e6['registerBlockAttribute']('listItemId'),_0x24e9e6['registerBlockAttribute']('listType'),_0x24e9e6['registerBlockAttribute']('listIndent'),_0x2d0c48&&(_0x24e9e6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x24e9e6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1da50d&&(_0x24e9e6['enableDefaultAttributesIntegration']('todoList'),_0x24e9e6['enableDefaultAttributesIntegration']('checkTodoList'),_0x24e9e6['registerBlockAttribute']('todoListChecked'),_0x24e9e6['descriptionFactory']['registerDescriptionCallback'](_0x514fe3=>{const {data:_0x1094b3}=_0x514fe3;if(_0x1094b3&&'todoListChecked'==_0x1094b3['key'])return{'type':'format','content':_0x1094b3['newValue']?c(_0x4084e1,'*Check\x20item*'):c(_0x4084e1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xfffe1a=>{if(_0xfffe1a['batch']['isUndo'])return!0x1;let _0x4c0b09=!0x1;const _0x1331ab=_0x24e9e6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c9ab5=>'todoListChecked'===_0x24e9e6['_getAttributeKey'](_0x2c9ab5));for(const _0x512a8e of _0x1331ab){'todo'!=_0x512a8e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x24e9e6['_findSuggestions'](_0x512a8e['getFirstRange'](),'attribute')['find'](_0x37c79b=>'listType'===_0x24e9e6['_getAttributeKey'](_0x37c79b['suggestion']))||(_0xfffe1a['removeMarker'](_0x512a8e['getFirstMarker']()),_0x4c0b09=!0x0));}return _0x4c0b09;})),_0x24e9e6['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x4084e1,'FORMAT_INDENT'));const _0x4c4c8a={'type':'format','content':''};_0x24e9e6['descriptionFactory']['registerDescriptionCallback'](_0x105251=>{const {data:_0x1c190e}=_0x105251;if(!_0x1c190e||'listType'!=_0x1c190e['key'])return;let _0x3afda6=_0x105251['head'];for(;_0x3afda6;){if(_0x3afda6['data']&&(('listStyle'==_0x3afda6['data']['key']||'listMarkerStyle'==_0x3afda6['data']['key'])&&(_0x3afda6['data']['newValue']&&'default'!=_0x3afda6['data']['newValue']||'default'!=_0x3afda6['data']['oldValue']&&!_0x1c190e['newValue'])||!_0x2d0c48&&_0x3afda6['data']['key']==u))return _0x4c4c8a;_0x3afda6=_0x3afda6['next'];}if(null==_0x1c190e['newValue'])switch(_0x1c190e['oldValue']){case'bulleted':return _0x5aa36b(c(_0x4084e1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5aa36b(c(_0x4084e1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5aa36b(c(_0x4084e1,'ELEMENT_TODO_LIST'));}switch(_0x1c190e['newValue']){case'bulleted':return _0xa30e14(c(_0x4084e1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa30e14(c(_0x4084e1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa30e14(c(_0x4084e1,'ELEMENT_TODO_LIST'));}}),_0x24e9e6['descriptionFactory']['registerDescriptionCallback'](_0x2eb1bc=>{const {data:_0x19c161}=_0x2eb1bc;if(_0x19c161&&'listIndent'==_0x19c161['key'])return null==_0x19c161['newValue']||null==_0x19c161['oldValue']&&0x0==_0x19c161['newValue']?_0x4c4c8a:void 0x0;}),_0x24e9e6['descriptionFactory']['registerDescriptionCallback'](_0x2cfa7a=>{if('attribute'!=_0x2cfa7a['type'])return;const {data:_0x40b7b1}=_0x2cfa7a;if(!_0x40b7b1||'listItemId'!=_0x40b7b1['key'])return;const _0x4dac29=Te(_0x2cfa7a);return'newValue'==_0x4dac29?{'type':'format','content':c(_0x4084e1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4dac29?{'type':'format','content':c(_0x4084e1,'*Split:*\x20list\x20item')}:_0x4c4c8a;}),_0x1657d4['model']['document']['registerPostFixer'](_0xa70cb0=>this['listItemIdFixer'](_0xa70cb0)),_0x1657d4['model']['document']['registerPostFixer'](_0x533a72=>this['noTrackChangesFixer'](_0x533a72)),_0x1657d4['model']['document']['on']('change:data',(_0x3ab2ee,_0xa461d1)=>{if(_0xa461d1['isUndo']||!_0xa461d1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x66a27c){if(_0x66a27c['batch']['isUndo']||!_0x66a27c['batch']['isLocal'])return!0x1;let _0x48b6e9=!0x1;const _0x36e1dc=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x132707=>_0x132707['data']&&'listItemId'==_0x132707['data']['key'])['filter'](_0x34bc5b=>_0x34bc5b['data']['newValue']&&_0x34bc5b['data']['oldValue']);for(const _0x4e797a of _0x36e1dc)Te(_0x4e797a)||(_0x66a27c['removeMarker'](_0x4e797a['getFirstMarker']()),_0x48b6e9=!0x0);return _0x48b6e9;}['noTrackChangesFixer'](_0x34c8b8){if(_0x34c8b8['batch']['isUndo']||!_0x34c8b8['batch']['isLocal'])return!0x1;const _0x1e2cf4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1e2cf4['trackChangesCommand']['value'])return!0x1;let _0x42c76c=!0x1;const _0x569c58=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xd68a07=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x407309=>'attribute'==_0x407309['type'])['filter'](_0x146955=>_0x569c58['includes'](_0x146955['attributeKey']));if(0x0==_0xd68a07['length'])return _0x42c76c;for(const _0x32ac65 of _0xd68a07){const _0x52cc8c=_0x1e2cf4['_findSuggestions'](_0x32ac65['range'],'attribute')['filter'](_0x55cc0f=>!_0x55cc0f['meta']['isNextTo'])['map'](_0x528ea8=>_0x528ea8['suggestion'])['filter'](_0xaea80=>{const _0x47db1d=_0x1e2cf4['_getAttributeKey'](_0xaea80);return _0x569c58['includes'](_0x47db1d);});if(_0x52cc8c['length']){for(const _0x2a50f9 of _0x52cc8c)_0x34c8b8['removeMarker'](_0x2a50f9['getFirstMarker']());_0x42c76c=!0x0;}}return _0x42c76c;}['assureChains'](){const _0x56e660=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25dfd1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x54ff5f;const _0x58a7ce=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x11b559=>{if(_0x11b559['data']['oldRange']||!_0x11b559['data']['newRange'])return null;if(!_0x11b559['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xe8e914}=_0x56e660['_splitMarkerName'](_0x11b559['name']);if(!_0x56e660['hasSuggestion'](_0xe8e914))return null;const _0x254870=_0x56e660['getSuggestion'](_0xe8e914);return _0x25dfd1['includes'](_0x254870['data']['key']);})['map'](_0x1c95f5=>{const {id:_0x218d95}=_0x56e660['_splitMarkerName'](_0x1c95f5['name']),_0x1ef613=_0x56e660['getSuggestion'](_0x218d95);return _0x54ff5f=_0x1ef613['attributes']['groupId'],_0x1ef613['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x58a7ce['size'])return;const _0xa4b3f0=_0x56e660['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b9950=>'attribute'==_0x4b9950['type']&&_0x4b9950['data']&&_0x25dfd1['includes'](_0x4b9950['data']['key'])&&_0x4b9950['attributes']['groupId']!=_0x54ff5f)['map'](_0x11ae24=>({'listItem':_0x11ae24['getFirstRange']()['start']['nodeAfter'],'groupId':_0x11ae24['attributes']['groupId']})),_0x356a88=new Set();for(const {groupId:_0x585528,listItem:_0xb59be}of _0xa4b3f0)_0x58a7ce['has'](_0xb59be)&&_0x356a88['add'](_0x585528);for(const _0x1baa31 of _0x56e660['getSuggestions']())_0x356a88['has'](_0x1baa31['attributes']['groupId'])&&_0x1baa31['setAttribute']('groupId',_0x54ff5f);}['_supportLegacySuggestions'](){const _0x45307b=this['editor'],_0x10c248=_0x45307b['locale'],_0x43c152=_0x45307b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x43c152['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x21351d,_0x50a77b){const _0x315377=[];for(let _0x43c199 of _0x21351d)_0x43c199['start']['nodeAfter']===_0x43c199['end']['parent']&&(_0x43c199=_0x45307b['model']['createRange'](_0x45307b['model']['createPositionAt'](_0x43c199['start']['nodeAfter'],0x0))),_0x315377['push'](_0x43c199);_0x45307b['model']['change'](_0x50375e=>{const _0x4644b6=_0x45307b['model']['document']['selection'],_0x599b30=Array['from'](_0x4644b6['getRanges']())['map'](_0x7c1665=>_0x487116['fromRange'](_0x7c1665));_0x50375e['setSelection'](_0x315377),_0x45307b['commands']['get'](_0x50a77b['commandName'])['refresh'](),_0x50a77b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x45307b['execute'](_0x50a77b['commandName'],..._0x50a77b['commandParams']),_0x50375e['setSelection'](_0x599b30);for(const _0xeca7b3 of _0x599b30)_0xeca7b3['detach']();});}),_0x43c152['descriptionFactory']['registerElementLabel'](function(_0x4394a4){const _0x35ca72=!_0x45307b['model']['schema']['isObject'](_0x4394a4),_0x15bd69=_0x4394a4['previousSibling'],_0x1c06a7=_0x4394a4['nextSibling'],_0x1fc29b=_0x4394a4['getAttribute']('listItemId'),_0x295a38=!_0x15bd69||_0x15bd69['getAttribute']('listItemId')!==_0x1fc29b,_0x436040=!_0x1c06a7||_0x1c06a7['getAttribute']('listItemId')!==_0x1fc29b;return _0x35ca72&&Boolean(_0x1fc29b)&&_0x295a38&&_0x436040;},_0xb94c12=>c(_0x10c248,'ELEMENT_LIST_ITEM',_0xb94c12));}['_registerLegacyDescription'](){const _0x4bde33=this['editor'],_0x1229c0=_0x4bde33['locale'];function _0x5e9438(_0x50eb40){const _0x3f577e=_0x4bde33['commands']['get']('bulletedList')['value'],_0xb8d2ac=_0x4bde33['commands']['get']('numberedList')['value'];return'numberedList'===_0x50eb40?_0x3f577e:_0xb8d2ac;}_0x4bde33['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2a6c0d){if('formatBlock'!=_0x2a6c0d['type'])return;const {data:_0x1b68dc}=_0x2a6c0d;if(!_0x1b68dc)return;let _0x662bc3,_0x3e4be2,_0x32c2d9,_0x19314b;switch(_0x1b68dc['commandName']){case'bulletedList':_0x32c2d9=_0x1b68dc['commandParams'][0x0]['forceValue'],_0x19314b=_0x5e9438(_0x1b68dc['commandName']),_0x662bc3=_0x32c2d9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x19314b&&_0x4bde33['config']['get']('list.multiBlock')||(_0x662bc3='*Change\x20to:*\x20%0'),_0x3e4be2={'type':'format','content':c(_0x1229c0,_0x662bc3,c(_0x1229c0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x32c2d9=_0x1b68dc['commandParams'][0x0]['forceValue'],_0x19314b=_0x5e9438(_0x1b68dc['commandName']),_0x662bc3=_0x32c2d9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x19314b&&_0x4bde33['config']['get']('list.multiBlock')||(_0x662bc3='*Change\x20to:*\x20%0'),_0x3e4be2={'type':'format','content':c(_0x1229c0,_0x662bc3,c(_0x1229c0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x662bc3='*Indent:*\x20%0',_0x3e4be2={'type':'format','content':c(_0x1229c0,_0x662bc3,c(_0x1229c0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x662bc3=function(_0xe91160){const _0x55de94=_0xe91160['getFirstRange']();let _0x56e398=_0x55de94['start']['nodeAfter'];for(;_0x56e398&&_0x55de94['containsItem'](_0x56e398);){if(_0x56e398['getAttribute']('listIndent')>0x0)return!0x1;_0x56e398=_0x56e398['nextSibling'];}return!0x0;}(_0x2a6c0d)?c(_0x1229c0,'*Format:*\x20remove\x20from\x20%0',c(_0x1229c0,function(_0x22af57){return'ELEMENT_'+_0x22af57['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2a6c0d))):c(_0x1229c0,'*Outdent:*\x20%0',c(_0x1229c0,'ELEMENT_LIST_ITEM')),_0x3e4be2={'type':'format','content':_0x662bc3};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1b68dc['multipleBlocks']&&(_0x662bc3='*Merge:*\x20%0',_0x3e4be2={'type':'deletion','content':c(_0x1229c0,_0x662bc3,c(_0x1229c0,'ELEMENT_LIST_ITEM'))});}return _0x3e4be2;});}}function Te(_0x3a638f){let _0x2b3b34=_0x3a638f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2b3b34;){const _0x28a8fc=_0x2b3b34['getAttribute']('listItemId');if(!_0x28a8fc)return!0x1;if(_0x28a8fc==_0x3a638f['data']['newValue'])return'newValue';if(_0x28a8fc==_0x3a638f['data']['oldValue'])return'oldValue';_0x2b3b34=_0x2b3b34['previousSibling'];}return!0x1;}class Se extends _0xcf6495{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x297e93=this['editor']['config']['get']('list.properties'),_0x396d9e=this['editor']['plugins']['get']('TrackChangesEditing');_0x297e93['styles']&&(_0x396d9e['enableDefaultAttributesIntegration']('listStyle'),_0x396d9e['registerBlockAttribute']('listStyle')),_0x297e93['reversed']&&(_0x396d9e['enableDefaultAttributesIntegration']('listReversed'),_0x396d9e['registerBlockAttribute']('listReversed')),_0x297e93['startIndex']&&(_0x396d9e['enableDefaultAttributesIntegration']('listStart'),_0x396d9e['registerBlockAttribute']('listStart'));const _0x41b4de={'type':'format','content':''};_0x396d9e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x25d8c6=this['editor']['locale'];_0x396d9e['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x25d8c6,'FORMAT_LIST_REVERSED')),_0x396d9e['descriptionFactory']['registerDescriptionCallback'](_0x3b4650=>{const {data:_0x3be7de}=_0x3b4650;if(_0x3be7de&&'listReversed'==_0x3be7de['key'])return null==_0x3be7de['newValue']||0x0==_0x3be7de['newValue']&&null==_0x3be7de['oldValue']?_0x41b4de:void 0x0;}),_0x396d9e['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x25d8c6,'FORMAT_LIST_START')),_0x396d9e['descriptionFactory']['registerDescriptionCallback'](_0x51fdbb=>{const {data:_0x664037}=_0x51fdbb;if(_0x664037&&'listStart'==_0x664037['key'])return null==_0x664037['newValue']||0x1==_0x664037['newValue']&&null==_0x664037['oldValue']?_0x41b4de:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x48d8da=>{if(_0x48d8da['batch']['isUndo'])return!0x1;let _0x537b66=!0x1;const _0x211fbe=_0x396d9e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40ef37=>{const _0x23d19f=_0x396d9e['_getAttributeKey'](_0x40ef37);return'listStart'==_0x23d19f||'listReversed'==_0x23d19f;});for(const _0x143e9f of _0x211fbe){const _0x26a79d=_0x143e9f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x26a79d||'customNumbered'==_0x26a79d)continue;_0x396d9e['_findSuggestions'](_0x143e9f['getFirstRange'](),'attribute')['find'](_0x81a99d=>'listType'==_0x396d9e['_getAttributeKey'](_0x81a99d['suggestion']))||(_0x48d8da['removeMarker'](_0x143e9f['getFirstMarker']()),_0x537b66=!0x0);}return _0x537b66;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x21df06){const _0x1006d6=this['editor']['locale'],{data:_0x182062}=_0x21df06,_0x575d66={'type':'format','content':''};if(!_0x182062||'listStyle'!=_0x182062['key'])return;if(!_0x182062['oldValue'])return'default'==_0x182062['newValue']?_0x575d66:{'type':'format','content':''+c(_0x1006d6,'*Set\x20format:*\x20%0',c(_0x1006d6,this['_getTranslationKeyForListStyle'](_0x182062['newValue'])))};if(!_0x182062['newValue']){if('default'==_0x182062['oldValue'])return _0x575d66;let _0x1478cf=_0x21df06['head'];for(;_0x1478cf;){if(_0x1478cf['data']&&'listType'==_0x1478cf['data']['key']&&_0x1478cf['data']['newValue'])return _0x575d66;_0x1478cf=_0x1478cf['next'];}return{'type':'format','content':''+c(_0x1006d6,'*Remove\x20format:*\x20%0',c(_0x1006d6,this['_getTranslationKeyForListStyle'](_0x182062['oldValue'])))};}if('default'!=_0x182062['newValue'])return{'type':'format','content':''+c(_0x1006d6,'*Set\x20format:*\x20%0',c(_0x1006d6,this['_getTranslationKeyForListStyle'](_0x182062['newValue'])))};let _0x1cd35c=_0x21df06['head'];for(;_0x1cd35c;){if(_0x1cd35c['data']&&'listType'==_0x1cd35c['data']['key']&&_0x1cd35c['data']['newValue']&&_0x1cd35c['data']['oldValue'])return _0x575d66;_0x1cd35c=_0x1cd35c['next'];}return{'type':'format','content':c(_0x1006d6,'*Set\x20format:*\x20%0',c(_0x1006d6,'ELEMENT_'+_0x21df06['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4e8c3c=this['editor'],_0x2f7cb0=_0x4e8c3c['locale'];_0x4e8c3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1abc4b=>{if('formatBlock'!=_0x1abc4b['type'])return;const {data:_0x198114}=_0x1abc4b;if(!_0x198114)return;let _0xf83a24,_0x436f86;switch(_0x198114['commandName']){case'listStyle':_0xf83a24='*Change\x20to:*\x20%0',_0x436f86={'type':'format','content':c(_0x2f7cb0,_0xf83a24,c(_0x2f7cb0,this['_getTranslationKeyForListStyle'](_0x198114['commandParams'][0x0]['type'])))};break;case'listReversed':_0xf83a24=_0x198114['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x436f86={'type':'format','content':c(_0x2f7cb0,_0xf83a24)};break;case'listStart':_0xf83a24='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x436f86={'type':'format','content':c(_0x2f7cb0,_0xf83a24,_0x198114['commandParams'][0x0]['startIndex'])};}return _0x436f86;});}['_getTranslationKeyForListStyle'](_0x2bafe3){return'ELEMENT_'+function(_0x3e89ec){if(_e['includes'](_0x3e89ec))return'bulleted';if(Re['includes'](_0x3e89ec))return'numbered';return null;}(_0x2bafe3)['toUpperCase']()+'_LIST_'+_0x2bafe3['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xcf6495{['afterInit'](){const _0x1ba392=this['editor'];_0x1ba392['commands']['get']('emoji')&&_0x1ba392['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0xcf6495{static get['requires'](){return[_0x3e4c79];}['init'](){const _0x916bb5=this['editor'],_0x4fa66e=_0x916bb5['plugins']['get']('TrackChangesEditing'),_0x1954d3=_0x916bb5['commands']['get']('enter');_0x4fa66e['enableCommand']('enter',()=>{_0x916bb5['model']['change'](_0x3a5e08=>{const _0xaa2795=_0x916bb5['model']['document']['selection'],_0x44a814=_0xaa2795['getFirstPosition'](),_0x210e19=_0x487116['fromRange'](_0xaa2795['getFirstRange']());if(_0x1954d3['enterBlock'](_0x3a5e08)){const _0x4a8b68=_0x916bb5['model']['createPositionAt'](_0x44a814['parent']['nextSibling'],0x0),_0x4f186b=_0x3a5e08['createRange'](_0x44a814,_0x4a8b68);_0x4fa66e['markInsertion'](_0x4f186b);}else _0x3a5e08['setSelection'](_0x3a5e08['createRange'](_0x210e19['end']));_0x210e19['detach'](),_0x1954d3['fire']('afterExecute',{'writer':_0x3a5e08});});}),_0x916bb5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x916bb5,'split'),{'priority':'high'}),_0x916bb5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x283c83,_0x5ba6db,_0xae0e83)=>{const _0x528626=_0xae0e83['mapper']['markerNameToElements'](_0x5ba6db['markerName']);if(_0x528626){for(const _0x5476a6 of _0x528626)_0x5476a6['hasClass']('ck-suggestion-marker-split')&&(_0xae0e83['mapper']['unbindElementFromMarkerName'](_0x5476a6,_0x5ba6db['markerName']),_0xae0e83['writer']['remove'](_0x5476a6));}},{'priority':'high'}),_0x916bb5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2895cc,_0x5f0068,_0x5d4344)=>{_0x5d4344['options']['showSuggestionHighlights']&&Fe(_0x916bb5,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2895cc,_0x5f0068,_0x5d4344);},{'priority':'high'});}}class Z extends _0xcf6495{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3740e0=this['editor']['plugins']['get']('TrackChangesEditing');_0x3740e0['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3740e0['enableCommand']('findNext'),_0x3740e0['enableCommand']('findPrevious'),_0x3740e0['enableCommand']('replace'),_0x3740e0['enableCommand']('replaceAll');}['handleFindCommand'](_0x2f4a3e,_0x5072e2,_0x4336aa={}){const _0x3a1f4a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2f4a3e(_0x31710e=>{let _0x17c9da=('string'==typeof _0x5072e2?_0x3a1f4a['findByTextCallback'](_0x5072e2,_0x4336aa):_0x5072e2)(_0x31710e);Array['isArray'](_0x17c9da)&&(_0x17c9da={'results':_0x17c9da,'searchText':'string'==typeof _0x5072e2?_0x5072e2:''});const _0x2454ca=_0x17c9da['results']['filter'](_0x308b82=>!0x1===this['_isInDeletionRange'](_0x308b82,_0x31710e['item']));return{..._0x17c9da,'results':_0x2454ca};},_0x4336aa);}['_isInDeletionRange'](_0x29c9d6,_0x4b5435){const _0x3bdcac=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4b5435,_0x29c9d6['start']),this['editor']['model']['createPositionAt'](_0x4b5435,_0x29c9d6['end']));for(const _0x2eabd5 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3bdcac['getIntersection'](_0x2eabd5['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 _0xcf6495{['afterInit'](){const _0x2cae42=this['editor']['locale'],_0x4d2cff=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x321cce,commandName:_0x1a1a7}of ro)this['editor']['plugins']['has'](_0x321cce)&&(_0x4d2cff['enableDefaultAttributesIntegration'](_0x1a1a7),_0x4d2cff['registerInlineAttribute'](_0x1a1a7));_0x4d2cff['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x2cae42,'FORMAT_FONT_SIZE')),_0x4d2cff['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x2cae42,'FORMAT_FONT_FAMILY')),_0x4d2cff['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x2cae42,'FORMAT_FONT_COLOR')),_0x4d2cff['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x2cae42,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32506e=this['editor'],_0x27b579=_0x32506e['locale'];_0x32506e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x233567=>{const _0x554810=_0x27b579['t'];if('formatInline'!=_0x233567['type'])return;const {data:_0x61f36c}=_0x233567;if(null!=_0x61f36c){if('fontSize'==_0x61f36c['commandName']){const _0x728452=_0x61f36c['commandParams'][0x0]['value'];if(_0x728452){const _0x4fbe8d=_0x554810(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2d5be4=>_0x2d5be4['model']==_0x728452)['title'])['toLowerCase']();return{'type':'format','content':c(_0x27b579,'*Set\x20font\x20size:*\x20%0',_0x4fbe8d)};}return{'type':'format','content':c(_0x27b579,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x61f36c['commandName']){const _0x51c776=_0x61f36c['commandParams'][0x0]['value'];return _0x51c776?{'type':'format','content':c(_0x27b579,'*Set\x20font\x20family:*\x20%0',_0x51c776)}:{'type':'format','content':c(_0x27b579,'*Reset\x20font\x20family*')};}if('fontColor'==_0x61f36c['commandName']){const _0x135898=_0x61f36c['commandParams'][0x0]['value'];if(_0x135898){const _0x5bb70b=_0x2a815d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x102864=>_0x102864['model']==_0x135898);let _0x47bc17=_0x135898,_0x1f4395='';return _0x5bb70b&&(_0x47bc17=_0x5bb70b['label'],_0x1f4395=_0x554810(_0x47bc17)['toLowerCase']()),{'type':'format','content':c(_0x27b579,'*Set\x20font\x20color:*\x20%0',_0x1f4395)['trim'](),'color':{'value':_0x135898,'title':_0x1f4395||_0x47bc17}};}return{'type':'format','content':c(_0x27b579,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x61f36c['commandName']){const _0x31fb16=_0x61f36c['commandParams'][0x0]['value'];if(_0x31fb16){const _0x2274a2=_0x2a815d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x699b72=>_0x699b72['model']==_0x31fb16);let _0x332f00=_0x31fb16,_0x15f632='';return _0x2274a2&&(_0x332f00=_0x2274a2['label'],_0x15f632=_0x554810(_0x332f00)['toLowerCase']()),{'type':'format','content':c(_0x27b579,'*Set\x20font\x20background\x20color:*\x20%0',_0x15f632)['trim'](),'color':{'value':_0x31fb16,'title':_0x15f632||_0x332f00}};}return{'type':'format','content':c(_0x27b579,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0xcf6495{['afterInit'](){const _0x1917e4=this['editor'],_0xeff6ef=_0x1917e4['plugins']['get']('TrackChangesEditing'),_0x36f283=_0x1917e4['commands']['get']('copyFormat'),_0x4c5934=_0x1917e4['commands']['get']('pasteFormat');_0x36f283&&_0x4c5934&&(_0xeff6ef['enableDefaultAttributesIntegration']('pasteFormat'),_0xeff6ef['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x501921=this['editor'],_0x1487c2=_0x501921['locale'];_0x501921['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x349398=>{if('formatBlock'!=_0x349398['type']&&'formatInline'!=_0x349398['type'])return;const {data:_0x34a425}=_0x349398;if(_0x34a425&&'pasteFormat'===_0x34a425['commandName']){const _0x105103=[],_0x43aca5=_0x34a425['commandParams'][0x0];for(const [_0x3034c5,_0x496e20]of Object['entries'](_0x43aca5))_0x105103['push'](so(_0x501921,_0x3034c5,_0x496e20));return _0x105103['length']?{'type':'format','content':c(_0x1487c2,'*Set\x20format\x20to:*\x20%0',_0x105103['join'](',\x20'))}:{'type':'format','content':c(_0x1487c2,'*Remove\x20all\x20formatting*')};}});}}function so(_0x30a0ab,_0x240945,_0xef9f6e){const _0x4b662a=_0x30a0ab['locale']['t'],_0x27be32=_0x240945['split'](/(?=[A-Z])/)['join']('\x20'),_0x3cdf1d=_0x4b662a(_0x27be32['charAt'](0x0)['toUpperCase']()+_0x27be32['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xef9f6e)return _0x3cdf1d;if('fontColor'===_0x240945||'fontBackgroundColor'===_0x240945){const _0x4c3ee2=_0x2a815d(_0x30a0ab['config']['get']('fontColor.colors'))['find'](_0x5ae2b1=>_0x5ae2b1['model']==_0xef9f6e);return _0x3cdf1d+'\x20('+(_0x4c3ee2?_0x4b662a(_0x4c3ee2['label'])['toLowerCase']():_0xef9f6e)+')';}if('fontSize'===_0x240945&&isNaN(parseFloat(_0xef9f6e))){const _0x4dc582=_0x30a0ab['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x30a0ab['config']['get']('fontSize.options'))['find'](_0x50b578=>_0x50b578['model']==_0xef9f6e);return _0x3cdf1d+'\x20('+(_0x4dc582?_0x4b662a(_0x4dc582['title'])['toLowerCase']():_0xef9f6e)+')';}return _0x3cdf1d+'\x20('+_0xef9f6e+')';}class et extends _0xcf6495{['_headingOptions'];['afterInit'](){const _0x1cfeed=this['editor'];if(!_0x1cfeed['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1cfeed['config']['get']('heading.options');const _0x90a0b1=_0x1cfeed['locale'],_0x71c55d=_0x1cfeed['plugins']['get']('TrackChangesEditing');_0x71c55d['enableDefaultAttributesIntegration']('heading');for(const _0x433875 of this['_headingOptions'])'paragraph'!=_0x433875['model']&&_0x71c55d['descriptionFactory']['registerElementLabel'](_0x433875['model'],_0x46fde2=>{const _0x4ff0c6=this['_getHeadingLevel'](_0x433875['model']);return null!==_0x4ff0c6?_0x335623(_0x46fde2,_0x4ff0c6):_0x143125(_0x46fde2,_0x433875['title']);});function _0x335623(_0x4955aa,_0x5f3aec){return c(_0x90a0b1,'ELEMENT_HEADING',[_0x4955aa,_0x5f3aec]);}function _0x143125(_0x269b1a,_0x538ab6){return c(_0x90a0b1,'ELEMENT_HEADING_CUSTOM',[_0x269b1a,_0x538ab6]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d76d7=this['editor'],_0x3da5de=_0x3d76d7['locale'];function _0x10b101(_0x53114e,_0x388c26){return c(_0x3da5de,'ELEMENT_HEADING_CUSTOM',[_0x53114e,_0x388c26]);}_0x3d76d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c1bf2=>{if('formatBlock'!=_0x4c1bf2['type'])return;const {data:_0xbf6d91}=_0x4c1bf2;if(_0xbf6d91&&'heading'==_0xbf6d91['commandName']){const _0x5c828d=_0xbf6d91['commandParams'][0x0]['value'],_0x330550=this['_getHeadingLevel'](_0x5c828d);if(null!==_0x330550)return{'type':'format','content':c(_0x3da5de,'*Change\x20to:*\x20%0',(_0x474103=0x1,_0x5167c2=_0x330550,c(_0x3da5de,'ELEMENT_HEADING',[_0x474103,_0x5167c2])))};const _0x3b3e26=this['_headingOptions']['find'](_0x1bef14=>_0x1bef14['model']===_0x5c828d)['title'];return{'type':'format','content':c(_0x3da5de,'*Change\x20to:*\x20%0',_0x10b101(0x1,_0x3b3e26))};}var _0x474103,_0x5167c2;});}['_getHeadingLevel'](_0x215395){const _0x3aae89=_0x215395['match'](/^heading(\d+)/);if(_0x3aae89)return _0x3aae89[0x1];const _0x1dc7fb=this['_headingOptions']?.['find'](_0xbd248d=>_0xbd248d['model']==_0x215395);if(_0x1dc7fb&&_0x1dc7fb['view']){const _0x29340d=_0x1dc7fb['view'],_0x3042dd=(_0x29340d['name']??_0x29340d)['match'](/^h(\d+)/);if(_0x3042dd)return _0x3042dd[0x1];}return null;}}class nt extends _0xcf6495{['afterInit'](){const _0x1fe406=this['editor'];if(!_0x1fe406['plugins']['has']('HighlightEditing'))return;const _0x19f24c=_0x1fe406['plugins']['get']('TrackChangesEditing'),_0x2cc9e7=_0x1fe406['locale'];_0x19f24c['enableDefaultAttributesIntegration']('highlight'),_0x19f24c['registerInlineAttribute']('highlight'),_0x19f24c['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x2cc9e7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b0788=this['editor'],_0x77eca8=_0x4b0788['locale'];_0x4b0788['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39683c=>{if('formatInline'!=_0x39683c['type'])return;const {data:_0x57c20e}=_0x39683c;if(_0x57c20e&&'highlight'==_0x57c20e['commandName']){const _0x3a37ee=_0x77eca8['t'],_0x20ebe9=_0x57c20e['commandParams'][0x0]['value'];if(_0x20ebe9){const _0x1164c1=_0x4b0788['config']['get']('highlight.options')['find'](_0x3bb6cd=>_0x3bb6cd['model']==_0x20ebe9),_0x38fef1=_0x3a37ee(_0x1164c1['title'])['toLowerCase']();return{'type':'format','content':c(_0x77eca8,'*Set\x20highlight:*\x20%0',_0x38fef1),'color':{'value':_0x1164c1['color'],'title':_0x1164c1['title']}};}return{'type':'format','content':c(_0x77eca8,'*Remove\x20highlight*',c(_0x77eca8,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0xcf6495{['afterInit'](){const _0x28bb36=this['editor'];if(!_0x28bb36['plugins']['has']('HorizontalLineEditing'))return;_0x28bb36['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1790a3=_0x28bb36['plugins']['get']('TrackChangesEditing'),_0x5aa7e0=_0x28bb36['locale'];_0x1790a3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x407f11=>c(_0x5aa7e0,'ELEMENT_HORIZONTAL_LINE',_0x407f11)),_0x28bb36['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2246e5,{writer:_0x1de5bf,options:_0x37df44})=>{if(!_0x37df44['showSuggestionHighlights'])return null;const _0x28d696=_0x1de5bf['createContainerElement']('div'),_0x153950=_0x1de5bf['createEmptyElement']('hr');return _0x1de5bf['addClass']('ck-horizontal-line',_0x28d696),_0x1de5bf['insert'](_0x1de5bf['createPositionAt'](_0x28d696,0x0),_0x153950),_0x28d696;},'converterPriority':'high'});}}class ot extends _0xcf6495{['afterInit'](){const _0x46d5e3=this['editor'];if(!_0x46d5e3['plugins']['has']('HtmlEmbed'))return;const _0xded703=_0x46d5e3['plugins']['get']('TrackChangesEditing'),_0x8f6790=_0x46d5e3['locale'];_0xded703['descriptionFactory']['registerElementLabel']('rawHtml',_0x5c898b=>c(_0x8f6790,'ELEMENT_HTML_EMBED',_0x5c898b)),_0xded703['enableDefaultAttributesIntegration']('htmlEmbed'),_0xded703['registerBlockAttribute']('value'),_0xded703['descriptionFactory']['registerDescriptionCallback'](_0x4449a8=>{if('attribute'!=_0x4449a8['type'])return;const {data:_0xabec72}=_0x4449a8;if(_0xabec72&&'value'==_0xabec72['key']&&_0x4449a8['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x31f445=c(_0x8f6790,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x8f6790,'*Change\x20%0\x20content*',_0x31f445)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34b02a=this['editor'],_0xbb0912=_0x34b02a['locale'];_0x34b02a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57bff6=>{if('formatBlock'!=_0x57bff6['type'])return;const {data:_0x101890}=_0x57bff6;if(_0x101890&&'htmlEmbed'==_0x101890['commandName']){const _0x5e58b8=c(_0xbb0912,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0xbb0912,'*Change\x20%0\x20content*',_0x5e58b8)};}});}}class rt extends _0xcf6495{['afterInit'](){const _0x2ad3c7=this['editor'];if(!_0x2ad3c7['plugins']['has']('ImageEditing'))return;const _0x18570c=_0x2ad3c7['plugins']['get']('TrackChangesEditing'),_0x114df2=_0x2ad3c7['plugins']['get']('ImageUtils'),_0x30ced5=_0x2ad3c7['locale'];_0x18570c['enableCommand']('insertImage'),_0x18570c['descriptionFactory']['registerElementLabel']('imageBlock',_0x4be872=>c(_0x30ced5,'ELEMENT_IMAGE',_0x4be872)),_0x18570c['descriptionFactory']['registerElementLabel']('imageInline',_0x2fac15=>c(_0x30ced5,'ELEMENT_INLINE_IMAGE',_0x2fac15)),_0x18570c['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x30ced5,'ELEMENT_CAPTION')),_0x2ad3c7['plugins']['has']('ImageUploadEditing')&&_0x18570c['enableCommand']('uploadImage'),_0x2ad3c7['plugins']['has']('ImageBlockEditing')&&_0x2ad3c7['plugins']['has']('ImageInlineEditing')&&(_0x18570c['enableCommand']('imageTypeInline',(_0x1f7a52,_0x23faca)=>{const _0x4f7b6e=_0x114df2['getClosestSelectedImageElement'](_0x2ad3c7['model']['document']['selection']);_0x2ad3c7['model']['change'](()=>{_0x18570c['markBlockFormat'](_0x4f7b6e,{'commandName':'imageTypeInline','commandParams':[_0x23faca]},[],'convertBlockImageToInline');});}),_0x18570c['enableCommand']('imageTypeBlock',(_0x3292e7,_0x57885d)=>{_0x2ad3c7['model']['change'](_0x4f25ca=>{let _0x150de7=_0x114df2['getClosestSelectedImageElement'](_0x2ad3c7['model']['document']['selection']),_0x4a6cb6=_0x4f25ca['createRangeOn'](_0x150de7);const _0x321a6a=_0x1cc4f8['fromPosition'](_0x4a6cb6['start'],'toPrevious'),_0x83f8a5=_0x1cc4f8['fromPosition'](_0x4a6cb6['end'],'toNext');_0x18570c['forceDefaultExecution'](()=>_0x3292e7(_0x57885d)),_0x150de7=_0x114df2['getClosestSelectedImageElement'](_0x2ad3c7['model']['document']['selection']),_0x4a6cb6=_0x4f25ca['createRangeOn'](_0x150de7);const _0x516ffe=_0x4f25ca['createRange'](_0x321a6a,_0x83f8a5);_0x321a6a['detach'](),_0x83f8a5['detach'](),_0x18570c['markBlockFormat'](_0x150de7,{'commandName':'imageTypeInline','commandParams':[_0x57885d]},[],'convertInlineImageToBlock'),_0x516ffe['start']['isBefore'](_0x4a6cb6['start'])&&_0x18570c['markInsertion'](_0x4f25ca['createRange'](_0x516ffe['start'],_0x4a6cb6['start']),'convertInlineImageToBlock'),_0x4a6cb6['end']['isBefore'](_0x516ffe['end'])&&_0x18570c['markInsertion'](_0x4f25ca['createRange'](_0x4a6cb6['end'],_0x516ffe['end']),'convertInlineImageToBlock');});}),_0x18570c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x18570c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x18570c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x18570c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x18570c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x18570c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4da7bc])=>{const _0x5d0c60=_0x18570c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5a3ec3=_0x4da7bc['start'],_0x19b207=_0x4da7bc['end'];const _0x3766da=_0x2ad3c7['model']['schema']['getNearestSelectionRange'](_0x5a3ec3,'backward'),_0x1a7a2d=_0x2ad3c7['model']['schema']['getNearestSelectionRange'](_0x19b207,'forward');_0x3766da['isCollapsed']&&(_0x5a3ec3=_0x3766da['start']),_0x1a7a2d['isCollapsed']&&(_0x19b207=_0x1a7a2d['end']),_0x5d0c60([_0x2ad3c7['model']['createRange'](_0x5a3ec3,_0x19b207)]);}),_0x18570c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1806cc),_0x18570c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1806cc)),_0x2ad3c7['plugins']['has']('ImageCaptionEditing')&&(_0x18570c['enableCommand']('toggleImageCaption',(_0x3358e6,_0x292d7b)=>{const _0x434965=_0x2ad3c7['plugins']['get']('ImageCaptionUtils');let _0x275b08=_0x114df2['getClosestSelectedImageElement'](_0x2ad3c7['model']['document']['selection']),_0xa4c603=_0x434965['getCaptionFromImageModelElement'](_0x275b08);_0x2ad3c7['model']['change'](()=>{if(_0xa4c603)return void _0x18570c['markDeletion'](_0x2ad3c7['model']['createRangeOn'](_0xa4c603));const _0x3b5cbf=_0x114df2['isBlockImage'](_0x275b08);_0x3358e6(_0x292d7b),_0x275b08=_0x114df2['getClosestSelectedImageElement'](_0x2ad3c7['model']['document']['selection']),_0xa4c603=_0x434965['getCaptionFromImageModelElement'](_0x275b08),_0x18570c['markInsertion'](_0x2ad3c7['model']['createRangeOn'](_0xa4c603),_0x3b5cbf?null:'imageCaption');});}),_0x18570c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1806cc));const _0x481ed2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x56d7ef(_0x5adcd4,_0x371e74){const _0x1b3db3=_0x481ed2['findIndex'](({type:_0x390202,subType:_0x4526ab})=>_0x5adcd4['type']==_0x390202&&_0x5adcd4['subType']==_0x4526ab),_0x4ec5fc=_0x481ed2['findIndex'](({type:_0x40eb20,subType:_0x40eb09})=>_0x371e74['type']==_0x40eb20&&_0x371e74['subType']==_0x40eb09);if(_0x1b3db3<0x0||_0x4ec5fc<0x0)return!0x1;const _0x4324cb=_0x5adcd4['getFirstRange'](),_0x3e39c1=_0x371e74['getFirstRange']();if((0x0==_0x1b3db3||0x1==_0x1b3db3)&&0x2==_0x4ec5fc&&_0x4324cb['isIntersecting'](_0x3e39c1))return!0x0;if(0x2==_0x1b3db3&&0x3==_0x4ec5fc){const _0xadec14=_0x18570c['_findSuggestions'](_0x4324cb,'insertion')['filter'](({suggestion:_0xd4de62,meta:_0x581369})=>_0x581369['isOwn']&&'convertInlineImageToBlock'==_0xd4de62['subType']);if(_0xadec14['length']>0x1&&_0x3e39c1['end']['isEqual'](_0x4324cb['start']))return!0x0;if(0x1==_0xadec14['length']&&(_0x4324cb['start']['isEqual'](_0x3e39c1['end'])||_0x4324cb['end']['isEqual'](_0x3e39c1['start'])))return!0x0;}if(0x3==_0x1b3db3&&0x3==_0x4ec5fc&&_0x4324cb['start']['isBefore'](_0x3e39c1['start'])){const _0x5a3661=_0x4324cb['end']['nodeAfter'],_0x2b766c=_0x3e39c1['start']['nodeBefore'];return _0x114df2['isBlockImage'](_0x5a3661)&&_0x5a3661===_0x2b766c;}return!0x1;}function _0x1806cc(_0x167dad,_0x13f158){return _0x56d7ef(_0x167dad,_0x13f158)?[_0x167dad,_0x13f158]:_0x56d7ef(_0x13f158,_0x167dad)?[_0x13f158,_0x167dad]:null;}_0x2ad3c7['plugins']['has']('ImageResize')&&(_0x18570c['enableDefaultAttributesIntegration']('resizeImage'),_0x18570c['registerBlockAttribute']('resizedWidth'),_0x18570c['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x30ced5,'FORMAT_IMAGE_SIZE'))),_0x2ad3c7['plugins']['has']('ImageTextAlternativeEditing')&&(_0x18570c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x18570c['registerBlockAttribute']('alt')),_0x2ad3c7['plugins']['has']('PictureEditing')&&(_0x18570c['registerBlockAttribute']('sources'),_0x18570c['descriptionFactory']['registerDescriptionCallback'](_0x3ff22a=>{if('attribute'!=_0x3ff22a['type'])return;const {data:_0x2e8cde}=_0x3ff22a;return _0x2e8cde&&'sources'==_0x2e8cde['key']?{'type':'format','content':''}:void 0x0;})),_0x2ad3c7['plugins']['has']('ImageSizeAttributes')&&(_0x18570c['registerBlockAttribute']('width'),_0x18570c['registerBlockAttribute']('height'),_0x18570c['descriptionFactory']['registerDescriptionCallback'](_0x1f626a=>{if('attribute'!=_0x1f626a['type'])return;const {data:_0x372650}=_0x1f626a;return!_0x372650||'width'!=_0x372650['key']&&'height'!=_0x372650['key']?void 0x0:{'type':'format','content':''};})),_0x18570c['descriptionFactory']['registerDescriptionCallback'](_0x4f77a7=>{if(!!_0x481ed2['find'](({type:_0x2df6c8,subType:_0x3c588a})=>_0x4f77a7['type']==_0x2df6c8&&_0x4f77a7['subType']==_0x3c588a))return _0x4f77a7['previous']?{}:void 0x0;}),_0x18570c['descriptionFactory']['registerDescriptionCallback'](_0x7367cb=>{if('insertion'==_0x7367cb['type']||'deletion'==_0x7367cb['type']){const _0x268c50=_0x7367cb['getContainedElement']();if(_0x268c50&&_0x268c50['is']('element','caption'))return{'type':'insertion'==_0x7367cb['type']?'addObject':'removeObject','element':_0x268c50,'quantity':0x1};}}),_0x18570c['descriptionFactory']['registerDescriptionCallback'](_0x31a616=>'formatBlock'==_0x31a616['type']&&'convertInlineImageToBlock'==_0x31a616['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x31a616['type']&&'convertBlockImageToInline'==_0x31a616['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x18570c['descriptionFactory']['registerDescriptionCallback'](_0x250673=>{if('attribute'!=_0x250673['type'])return;const {data:_0x53ba91}=_0x250673;if(!_0x53ba91||'alt'!=_0x53ba91['key'])return;const _0x4a5e71=_0x53ba91['newValue'];return _0x4a5e71?{'type':'format','content':c(_0x30ced5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a5e71+'\x22')}:{'type':'format','content':c(_0x30ced5,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa78ab4=this['editor'],_0x179a99=_0xa78ab4['locale'];_0xa78ab4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1490aa=>{if('formatBlock'!=_0x1490aa['type']&&'formatInline'!=_0x1490aa['type'])return;const {data:_0x5d04f6}=_0x1490aa;if(_0x5d04f6){if('imageTextAlternative'==_0x5d04f6['commandName']){const _0x3c8d9c=_0x5d04f6['commandParams'][0x0]['newValue'];return _0x3c8d9c?{'type':'format','content':c(_0x179a99,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3c8d9c+'\x22')}:{'type':'format','content':c(_0x179a99,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5d04f6['commandName']){const _0x8cefd=_0x5d04f6['commandParams'][0x0]['width'];return _0x8cefd?{'type':'format','content':c(_0x179a99,'*Set\x20image\x20width:*\x20%0',_0x8cefd)}:{'type':'format','content':c(_0x179a99,'*Reset\x20image\x20width*')};}}});}}class at extends _0xcf6495{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3c7eaf=this['editor']['locale'],_0x24cf9e=this['editor']['plugins']['get']('TrackChangesEditing');_0x24cf9e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x24cf9e['registerBlockAttribute']('src'),_0x24cf9e['descriptionFactory']['registerDescriptionCallback'](_0x4c906b=>{if('attribute'!=_0x4c906b['type'])return;const {data:_0x1477aa}=_0x4c906b;return _0x1477aa&&'src'==_0x1477aa['key']?_0x1477aa['newValue']&&_0x1477aa['oldValue']?{'type':'format','content':c(_0x3c7eaf,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x550b1e=this['editor']['plugins']['get']('TrackChangesEditing');_0x550b1e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x550b1e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x550b1e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x550b1e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34ab0f=this['editor'],_0x1a4b62=_0x34ab0f['locale'];_0x34ab0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33337f=>{if('formatBlock'!=_0x33337f['type']&&'formatInline'!=_0x33337f['type'])return;const {data:_0x3e458d}=_0x33337f;if(!_0x3e458d||'replaceImageSource'!=_0x3e458d['commandName'])return;return{'type':'format','content':c(_0x1a4b62,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0xcf6495{['afterInit'](){const _0x74666b=this['editor'];if(!_0x74666b['plugins']['has']('ImageStyleEditing'))return;const _0x1efd37=_0x74666b['plugins']['get']('TrackChangesEditing'),_0x69e6fe=_0x74666b['plugins']['get']('ImageUtils'),_0x2aa605={};_0x1efd37['enableCommand']('imageStyle',(_0x27015e,_0x2a8f91)=>{const _0x26a4d9=_0x74666b['plugins']['get']('Users')['me'],_0x3e186d=_0x74666b['commands']['get']('imageStyle');let _0x319360=_0x69e6fe['getClosestSelectedImageElement'](_0x74666b['model']['document']['selection']),_0xd87c94=_0x74666b['model']['createRangeOn'](_0x319360),_0x2013c2=_0x3e186d['value'];if(_0x2013c2==_0x2a8f91['value'])return;const _0x38b7e4={'commandName':'imageStyle','commandParams':[_0x2a8f91],'formatGroupId':_0x2db65b()};_0x74666b['model']['change'](()=>{if(_0x1efd37['getSuggestions']()['filter'](_0x57aa39=>_0x57aa39['isInContent']&&_0x26a4d9==_0x57aa39['author']&&('formatBlock'==_0x57aa39['type']||'formatInline'==_0x57aa39['type'])&&('imageStylePreApply'==_0x57aa39['subType']||'imageStylePostApply'==_0x57aa39['subType'])&&_0x57aa39['getFirstRange']()['isEqual'](_0xd87c94))['forEach'](_0x8dd4b3=>_0x1efd37['discardSuggestion'](_0x8dd4b3['head'])),_0x319360=_0x69e6fe['getClosestSelectedImageElement'](_0x74666b['model']['document']['selection']),_0xd87c94=_0x74666b['model']['createRangeOn'](_0x319360),_0x3e186d['refresh'](),_0x74666b['commands']['get']('imageTypeInline')['refresh'](),_0x74666b['commands']['get']('imageTypeBlock')['refresh'](),_0x2013c2=_0x3e186d['value'],_0x2013c2!=_0x2a8f91['value'])return _0x69e6fe['isInlineImage'](_0x319360)&&_0x3e186d['shouldConvertImageType'](_0x2a8f91['value'],_0x319360)?(_0x27015e({..._0x2a8f91,'setImageSizes':!0x1}),_0x319360=_0x69e6fe['getClosestSelectedImageElement'](_0x74666b['model']['document']['selection']),void _0x1efd37['markBlockFormat'](_0x319360,{..._0x38b7e4,'commandReversedParams':[{'value':_0x2013c2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x69e6fe['isBlockImage'](_0x319360)?_0x1efd37['markBlockFormat'](_0x319360,_0x38b7e4,[],'imageStylePostApply'):_0x1efd37['markInlineFormat'](_0xd87c94,_0x38b7e4,'imageStylePostApply'));});});for(const _0x11a035 of _0x74666b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2aa605[_0x11a035['name']]=_0x11a035['title']['toLowerCase']();_0x1efd37['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1efd37['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1efd37['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1efd37['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x17c817])=>{_0x69e6fe['setImageNaturalSizeAttributes'](_0x17c817['getContainedElement']());}),_0x1efd37['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x50e216,_0x51a4ee)=>{_0x1efd37['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x50e216,{'commandName':_0x51a4ee['commandName'],'commandParams':_0x51a4ee['commandReversedParams']});}),_0x1efd37['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3db406,_0x4730b0){if(_0x4fa230(_0x3db406,_0x4730b0))return[_0x3db406,_0x4730b0];if(_0x4fa230(_0x4730b0,_0x3db406))return[_0x4730b0,_0x3db406];return null;});const _0x77b54e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4fa230(_0x5b2ee3,_0x52fc6e){const _0x270ff6=_0x77b54e['findIndex'](({type:_0x430464,subType:_0x4af373})=>_0x5b2ee3['type']==_0x430464&&_0x5b2ee3['subType']==_0x4af373),_0x16a9e4=_0x77b54e['findIndex'](({type:_0x272a36,subType:_0x9b8bd6})=>_0x52fc6e['type']==_0x272a36&&_0x52fc6e['subType']==_0x9b8bd6);if(_0x270ff6<0x0||_0x16a9e4<0x0)return!0x1;const _0x30f1e8=_0x5b2ee3['getFirstRange'](),_0x3b0430=_0x52fc6e['getFirstRange']();if((0x0==_0x270ff6||0x1==_0x270ff6)&&0x2==_0x16a9e4&&_0x30f1e8['isIntersecting'](_0x3b0430))return!0x0;if(0x2==_0x270ff6&&0x3==_0x16a9e4){const _0x5ef4ba=_0x1efd37['_findSuggestions'](_0x30f1e8,'insertion')['filter'](({suggestion:_0x17804a,meta:_0x1329d2})=>_0x1329d2['isOwn']&&'convertInlineImageToBlock'==_0x17804a['subType']);if(_0x5ef4ba['length']>0x1&&_0x3b0430['end']['isEqual'](_0x30f1e8['start']))return!0x0;if(0x1==_0x5ef4ba['length']&&(_0x30f1e8['start']['isEqual'](_0x3b0430['end'])||_0x30f1e8['end']['isEqual'](_0x3b0430['start'])))return!0x0;}if(0x3==_0x270ff6&&0x3==_0x16a9e4&&_0x30f1e8['start']['isBefore'](_0x3b0430['start'])){const _0x5ba92b=_0x30f1e8['end']['nodeAfter'],_0x4bf3a3=_0x3b0430['start']['nodeBefore'];return _0x69e6fe['isBlockImage'](_0x5ba92b)&&_0x5ba92b===_0x4bf3a3;}return!0x1;}_0x74666b['model']['document']['registerPostFixer'](()=>{let _0x1d3d7e=!0x1;const _0x1dfdfe=Array['from'](_0x74666b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b7ece,data:_0x2dbd26}of _0x1dfdfe){const {group:_0x5df8a4,type:_0x1c668a,subType:_0x274e38,id:_0x5b97b6}=_0x1efd37['_splitMarkerName'](_0x5b7ece);if('suggestion'==_0x5df8a4&&_0x1efd37['hasSuggestion'](_0x5b97b6)){if('formatBlock'==_0x1c668a&&('imageStylePreApply'==_0x274e38||'imageStylePostApply'==_0x274e38)){const _0x39549b=_0x1efd37['getSuggestion'](_0x5b97b6);if(_0x2dbd26['newRange']){const _0x341d23=_0x39549b['getFirstRange']()['getContainedElement']();if(_0x69e6fe['isBlockImage'](_0x341d23))continue;_0x1efd37['discardSuggestion'](_0x39549b),_0x1d3d7e=!0x0;}}if('insertion'==_0x1c668a&&'imageCaption'==_0x274e38&&!_0x2dbd26['newRange']){const _0x17d535=_0x1efd37['getSuggestion'](_0x5b97b6);_0x17d535['next']&&_0x17d535['next']['isInContent']&&(_0x1efd37['discardSuggestion'](_0x17d535['next']),_0x1d3d7e=!0x0);}}}return _0x1d3d7e;}),this['_registerLegacyDescription'](_0x2aa605);}['_registerLegacyDescription'](_0x50b702){const _0x30429a=this['editor'],_0x5a56d3=_0x30429a['locale'];_0x30429a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x232c87=>{if('formatBlock'!=_0x232c87['type']&&'formatInline'!=_0x232c87['type'])return;const {data:_0x5379d1}=_0x232c87;if(!_0x5379d1||'imageStyle'!=_0x5379d1['commandName'])return;const _0x31212d=_0x5379d1['commandParams'][0x0]['value'];return _0x255114('side'===_0x31212d?c(_0x5a56d3,'FORMAT_SIDE_IMAGE'):_0x50b702[_0x31212d]||_0x31212d);function _0x255114(_0x1c7b90){return{'type':'format','content':c(_0x5a56d3,'*Format:*\x20%0',_0x1c7b90)};}});}}class ut extends _0xcf6495{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2ecd26){super(_0x2ecd26),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3f5f0c=this['editor'],_0x40601f=_0x3f5f0c['commands']['get']('importWord'),_0x107c97=_0x3f5f0c['commands']['get']('trackChanges');_0x40601f&&(_0x40601f['on']('execute',(_0x2e43f4,[,_0x918a57])=>{this['_trackChangesValueDuringImport']=_0x107c97['value'],_0x918a57['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x40601f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x40601f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x107c97['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3f5f0c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x225263,_0x3d79ac){const {suggestions:_0xba1bb9}=_0x3d79ac,_0x1e7136=this['editor']['commands']['get']('trackChanges'),_0x5da96b=_0x1e7136['value'];this['_trackChangesValueDuringImport']!==_0x5da96b&&(_0x1e7136['execute'](),this['_trackChangesExecuted']=!0x0),_0xba1bb9&&_0xba1bb9['forEach'](({id:_0x5a59a7,type:_0x346a35,author:_0x251ebc,created_at:_0x243d39})=>{const _0x15a4f2={'id':_0x5a59a7,'type':_0x346a35,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x251ebc,'createdAt':_0x243d39?new Date(_0x243d39):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x15a4f2);});}}class ft extends _0xcf6495{['afterInit'](){const _0x1a1588=this['editor'],_0x16f8f1=_0x1a1588['plugins']['get']('TrackChangesEditing');if(_0x1a1588['plugins']['has']('IndentEditing')&&(_0x16f8f1['enableCommand']('indent'),_0x16f8f1['enableCommand']('outdent')),_0x1a1588['plugins']['has']('IndentBlock')){for(const _0x344ec9 of['indentBlock','outdentBlock'])_0x16f8f1['enableDefaultAttributesIntegration'](_0x344ec9);}const _0x2b8bb5=_0x1a1588['locale'];_0x16f8f1['registerBlockAttribute']('blockIndent'),_0x16f8f1['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x2b8bb5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x312f15=this['editor'],_0x4e65f0=_0x312f15['locale'],_0x4acd81=_0x312f15['plugins']['get']('TrackChangesEditing');_0x4acd81['descriptionFactory']['registerDescriptionCallback'](_0x11e453=>{if('formatBlock'!=_0x11e453['type'])return;const {data:_0x1e6634}=_0x11e453;if(!_0x1e6634)return;if('indentBlock'!=_0x1e6634['commandName']&&'outdentBlock'!=_0x1e6634['commandName'])return;const _0x22b2d1=_0x11e453['getItems']()[0x0],_0x19cc5b=_0x4acd81['descriptionFactory']['getItemLabel'](_0x22b2d1);return'indentBlock'==_0x1e6634['commandName']?{'type':'format','content':c(_0x4e65f0,'*Indent:*\x20%0',_0x19cc5b)}:'outdentBlock'==_0x1e6634['commandName']?{'type':'format','content':c(_0x4e65f0,'*Outdent:*\x20%0',_0x19cc5b)}:void 0x0;});}}class ht extends _0xcf6495{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0xcf6495{['afterInit'](){const _0x5e26cf=this['editor'];if(!_0x5e26cf['plugins']['has']('LinkEditing'))return;const _0x23049a=_0x5e26cf['plugins']['get']('TrackChangesEditing'),_0x5c3b61=_0x5e26cf['commands']['get']('link');_0x23049a['enableDefaultAttributesIntegration']('link'),_0x23049a['enableDefaultAttributesIntegration']('unlink'),_0x23049a['registerInlineAttribute']('linkHref');for(const _0x2b8a47 of _0x5c3b61['manualDecorators'])_0x23049a['registerInlineAttribute'](_0x2b8a47['id']),_0x23049a['descriptionFactory']['registerAttributeLabel'](_0x2b8a47['id'],'link\x20('+_0x2b8a47['label']['toLowerCase']()+')');_0x23049a['descriptionFactory']['registerDescriptionCallback'](_0x563606=>{if('attribute'!=_0x563606['type'])return;const {data:_0x3d423f}=_0x563606;if(!_0x3d423f||'linkHref'!=_0x3d423f['key'])return;const _0x56d9fe=_0x3d423f['newValue'],_0x5af774=_0x5e26cf['locale'];return{'type':'format','content':null==_0x56d9fe?c(_0x5af774,'*Remove\x20link*'):c(_0x5af774,'*Set\x20link:*\x20%0','\x22'+_0x56d9fe+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26fff6=this['editor'],_0x3c7c7c=_0x26fff6['locale'];_0x26fff6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48e2ce=>{if('formatInline'!=_0x48e2ce['type'])return;const {data:_0x87add}=_0x48e2ce;if(_0x87add){if('link'==_0x87add['commandName']){const _0x1afc94=_0x87add['commandParams'][0x0];return{'type':'format','content':c(_0x3c7c7c,'*Set\x20link:*\x20%0','\x22'+_0x1afc94+'\x22')};}return'unlink'==_0x87add['commandName']?{'type':'format','content':c(_0x3c7c7c,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0xcf6495{['afterInit'](){const _0x528668=this['editor'],_0x37981b=_0x528668['locale'];if(!_0x528668['plugins']['has']('LegacyListEditing'))return;const _0x1dcd29=_0x528668['plugins']['get']('TrackChangesEditing'),_0x2c6251=_0x528668['plugins']['has']('LegacyTodoListEditing');function _0x38c347(_0x5d344d){return()=>{const _0x43a401=_0x528668['model']['document']['selection'],_0x2ad4e0=_0x528668['commands']['get'](_0x5d344d);if(_0x2ad4e0['value'])return void _0x528668['execute']('paragraph',{});const _0x86aa58=_0x5d344d['slice'](0x0,-0x4),_0x2188ed=function(_0x505df7,_0x583b08,_0x1a724b){let _0x328c19=Array['from'](_0x505df7)['filter'](_0x116b45=>function(_0x3ca067,_0x59137b){return _0x59137b['checkChild'](_0x3ca067['parent'],'listItem')&&!_0x59137b['isObject'](_0x3ca067);}(_0x116b45,_0x1a724b));_0x328c19=_0x328c19['filter'](_0x16e475=>!_0x16e475['is']('element','listItem')||_0x16e475['getAttribute']('listType')!=_0x583b08);const _0x3d154d=new Set();for(const _0x5bb854 of _0x328c19)_0x5bb854['is']('element','listItem')?_0x3d154d['add'](Le(_0x5bb854)):_0x3d154d['add'](_0x5bb854);return Array['from'](_0x3d154d);}(_0x43a401['getSelectedBlocks'](),_0x86aa58,_0x528668['model']['schema']);_0x528668['model']['change'](()=>{for(const _0x45bb70 of _0x2188ed)_0x1dcd29['markBlockFormat'](_0x45bb70,{'commandName':_0x5d344d,'commandParams':[{'forceValue':!_0x2ad4e0['value']}],'formatGroupId':'blockName'},Ee(_0x45bb70));});};}function _0x2a39fe(_0x48941e){return()=>{const _0x1d3272=function(_0x17a2b0){let _0x32a99b=Array['from'](_0x17a2b0);const _0x368f15=_0x32a99b['findIndex'](_0x432a34=>'listItem'!=_0x432a34['name']);return _0x368f15>-0x1&&(_0x32a99b=_0x32a99b['slice'](0x0,_0x368f15)),_0x32a99b;}(_0x528668['model']['document']['selection']['getSelectedBlocks']()),_0x162a15=_0x528668['model']['createRange'](_0x528668['model']['createPositionAt'](_0x1d3272[0x0],'before'),_0x528668['model']['createPositionAt'](_0x1d3272[_0x1d3272['length']-0x1],'end'));_0x528668['model']['change'](()=>{_0x1dcd29['markBlockFormat'](_0x162a15,{'commandName':_0x48941e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2c5053){const _0x93269c=new Set();for(const _0x34ee23 of _0x2c5053){let _0x34249d=_0x34ee23['nextSibling'];for(;_0x34249d&&_0x34249d['getAttribute']('listIndent')>_0x34ee23['getAttribute']('listIndent');)_0x93269c['add'](_0x34249d),_0x34249d=_0x34249d['nextSibling'];}return Array['from'](_0x93269c);}(_0x1d3272));});};}_0x1dcd29['enableCommand']('numberedList',_0x38c347('numberedList')),_0x1dcd29['enableCommand']('bulletedList',_0x38c347('bulletedList')),_0x2c6251&&_0x1dcd29['enableCommand']('todoList',_0x38c347('todoList')),_0x1dcd29['enableCommand']('indentList',_0x2a39fe('indentList')),_0x1dcd29['enableCommand']('outdentList',_0x2a39fe('outdentList')),_0x2c6251&&_0x1dcd29['enableCommand']('checkTodoList',()=>{const _0xe74c4=_0x528668['commands']['get']('checkTodoList'),_0x3b713e=Array['from'](_0xe74c4['_selectedElements']);_0x3b713e['filter'](_0x5ce5c4=>_0x5ce5c4['getAttribute']('todoListChecked')!=_0xe74c4['value']),_0x528668['model']['change'](()=>{for(const _0x332b41 of _0x3b713e)_0x1dcd29['markBlockFormat'](_0x332b41,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xe74c4['value']}]});});}),_0x1dcd29['descriptionFactory']['registerElementLabel']('listItem',_0x4dec60=>c(_0x37981b,'ELEMENT_LIST_ITEM',_0x4dec60)),_0x1dcd29['descriptionFactory']['registerDescriptionCallback'](_0x29de3b=>{if('formatBlock'!=_0x29de3b['type']&&'formatInline'!=_0x29de3b['type'])return;const {data:_0xde5ec}=_0x29de3b;if(_0xde5ec){if('numberedList'==_0xde5ec['commandName']||'bulletedList'==_0xde5ec['commandName']||'todoList'==_0xde5ec['commandName'])switch(_0xde5ec['commandName']['replace']('List','')){case'bulleted':return _0x32766c(c(_0x37981b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x32766c(c(_0x37981b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x32766c(c(_0x37981b,'ELEMENT_TODO_LIST'));}if('indentList'==_0xde5ec['commandName'])return{'type':'format','content':c(_0x37981b,'*Indent:*\x20%0',c(_0x37981b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xde5ec['commandName'])return{'type':'format','content':c(_0x37981b,'*Outdent:*\x20%0',c(_0x37981b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xde5ec['commandName'])return _0xde5ec['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x37981b,'*Check\x20item*')}:{'type':'format','content':c(_0x37981b,'*Uncheck\x20item*')};}function _0x32766c(_0x104340){return{'type':'format','content':c(_0x37981b,'*Change\x20to:*\x20%0',_0x104340)};}});}}function Le(_0xaa4214){const _0x3e0923=_0xaa4214['getAttribute']('listIndent');if(0x0==_0x3e0923)return _0xaa4214;let _0x54a410=_0xaa4214;for(;_0xaa4214['previousSibling']&&_0xaa4214['previousSibling']['is']('element','listItem');){const _0x3ff96f=_0xaa4214['previousSibling']['getAttribute']('listIndent');if(_0x3ff96f==_0x3e0923)_0x54a410=_0xaa4214['previousSibling'];else{if(_0x3ff96f<_0x3e0923)break;}_0xaa4214=_0xaa4214['previousSibling'];}return _0x54a410;}function Ee(_0x1acf25){const _0xa99e19=[];if(_0x1acf25['is']('element','listItem')&&_0x1acf25['getAttribute']('listIndent')>0x0){let _0x1c9539=_0x1acf25['nextSibling'];for(;_0x1c9539&&'listItem'==_0x1c9539['name']&&_0x1c9539['getAttribute']('listIndent')==_0x1acf25['getAttribute']('listIndent');)_0xa99e19['push'](_0x1c9539),_0x1c9539=_0x1c9539['nextSibling'];}return _0xa99e19;}class Q extends _0xcf6495{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x47adb5=this['editor']['config']['get']('list.properties'),_0x39b975=this['editor']['plugins']['get']('TrackChangesEditing');_0x47adb5['styles']&&_0x39b975['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x47adb5['reversed']&&_0x39b975['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x47adb5['startIndex']&&_0x39b975['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x39b975['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2b079f,_0x55d643={}){const _0x5d287b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b6963=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5d287b['markMultiRangeBlockFormat'](_0x1b6963,{'commandName':'listStyle','commandParams':[{'type':_0x55d643['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5b0411,_0x2d9057={}){const _0x2abe84=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45d78d=this['_getSuggestionBlocks'](_0x4fdfd1=>_0x4fdfd1['is']('element','listItem')&&'numbered'===_0x4fdfd1['getAttribute']('listType'));if(_0x45d78d['length']<0x1)return;const _0x241269=_0x45d78d['map'](_0x1daffa=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1daffa,'before'),this['editor']['model']['createPositionAt'](_0x1daffa,0x0)));this['editor']['model']['change'](()=>{_0x2abe84['markMultiRangeBlockFormat'](_0x241269,{'commandName':'listReversed','commandParams':[{'reversed':_0x2d9057['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x445c7b,_0x38d63d={}){const _0x4c8e59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24f96d=this['_getSuggestionBlocks'](_0x216def=>_0x216def['is']('element','listItem')&&'numbered'===_0x216def['getAttribute']('listType'));if(_0x24f96d['length']<0x1)return;const _0x4bae3f=_0x24f96d['map'](_0x1ce11b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1ce11b,'before'),this['editor']['model']['createPositionAt'](_0x1ce11b,0x0)));this['editor']['model']['change'](()=>{_0x4c8e59['markMultiRangeBlockFormat'](_0x4bae3f,{'commandName':'listStart','commandParams':[{'startIndex':_0x38d63d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x547b35){if('formatBlock'!=_0x547b35['type']&&'formatInline'!=_0x547b35['type'])return;const _0x3d74bc=this['editor']['locale'],{data:_0x16fb03}=_0x547b35;if(!_0x16fb03)return;let _0x12ebad,_0x3f6bc4;switch(_0x16fb03['commandName']){case'listStyle':_0x12ebad='*Change\x20to:*\x20%0',_0x3f6bc4={'type':'format','content':c(_0x3d74bc,_0x12ebad,c(_0x3d74bc,this['_getTranslationKeyForListStyle'](_0x16fb03['commandParams'][0x0]['type'])))};break;case'listReversed':_0x12ebad=_0x16fb03['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3f6bc4={'type':'format','content':c(_0x3d74bc,_0x12ebad)};break;case'listStart':_0x12ebad='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3f6bc4={'type':'format','content':c(_0x3d74bc,_0x12ebad,_0x16fb03['commandParams'][0x0]['startIndex'])};}return _0x3f6bc4;}['_getSuggestionBlocksForListStyle'](){const _0x138b01=this['editor']['plugins']['get']('LegacyListUtils');let _0x2f0fe2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2f0fe2[0x0]?.['is']('element','listItem')&&_0x2f0fe2['unshift'](..._0x138b01['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2f0fe2[_0x2f0fe2['length']-0x1]?.['is']('element','listItem')&&_0x2f0fe2['push'](..._0x138b01['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2f0fe2=[...new Set(_0x2f0fe2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2f0fe2=_0x2f0fe2['filter'](_0x5e97dd=>_0x5e97dd['is']('element','listItem'))),_0x2f0fe2;}['_getSuggestionBlocks'](_0x206e68){const _0x576cd8=this['editor']['plugins']['get']('LegacyListUtils');let _0xa29ddf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x206e68)['map'](_0x32a974=>{const _0x504fe4=this['editor']['model']['createPositionAt'](_0x32a974,0x0);return[..._0x576cd8['getSiblingNodes'](_0x504fe4,'backward'),..._0x576cd8['getSiblingNodes'](_0x504fe4,'forward')];})['flat']();return _0xa29ddf=[...new Set(_0xa29ddf)],_0xa29ddf;}['_getTranslationKeyForListStyle'](_0xd51501){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xd51501)||'default')['toUpperCase']()+'_LIST_'+_0xd51501['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0xcf6495{['afterInit'](){const _0x35f794=this['editor'];if(!_0x35f794['plugins']['has']('MediaEmbedEditing'))return;const _0x4c4c17=_0x35f794['plugins']['get']('TrackChangesEditing'),_0x528b85=_0x35f794['locale'];_0x4c4c17['enableCommand']('mediaEmbed'),_0x4c4c17['descriptionFactory']['registerElementLabel']('media',_0x143382=>c(_0x528b85,'ELEMENT_MEDIA',_0x143382)),_0x35f794['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x7f9436,{writer:_0x3c158d,options:_0x3083b1})=>{if(_0x3083b1['showSuggestionHighlights'])return _0x3c158d['createEmptyElement']('div');},'converterPriority':'high'}),_0x35f794['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3ea300,_0x1861ad,_0x14217e)=>{_0x14217e['options']['showSuggestionHighlights']&&_0x3ea300['stop']();},{'priority':'high'});}}class pt extends _0xcf6495{['afterInit'](){const _0x270b3d=this['editor'];_0x270b3d['plugins']['has']('MentionEditing')&&_0x270b3d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0xcf6495{['afterInit'](){const _0x597e19=this['editor'];if(!_0x597e19['plugins']['has']('MergeFieldsEditing'))return;const _0x4fe855=_0x597e19['plugins']['get']('TrackChangesEditing'),_0x5e5a6b=_0x597e19['locale'];_0x4fe855['enableCommand']('insertMergeField'),_0x4fe855['enableCommand']('insertMergeFieldBlock'),_0x4fe855['enableCommand']('insertMergeFieldImage'),_0x4fe855['descriptionFactory']['registerElementLabel']('mergeField',_0x267635=>c(_0x5e5a6b,'ELEMENT_MERGE_FIELD',_0x267635)),_0x4fe855['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2da597=>c(_0x5e5a6b,'ELEMENT_MERGE_FIELD',_0x2da597)),_0x4fe855['descriptionFactory']['registerDescriptionCallback'](_0x29431b=>{if('insertion'!=_0x29431b['type']&&'deletion'!=_0x29431b['type'])return;const _0x48a73c=_0x29431b['getContainedElement']();if(null==_0x48a73c)return;const _0x15c9fe=_0x597e19['plugins']['get']('MergeFieldsEditing');let _0x51fa1b;switch(_0x15c9fe['getMergeFieldType'](_0x48a73c)){case null:return;case'image':{const _0x9bfeed=_0x15c9fe['unwrapAffixes'](_0x48a73c['getAttribute']('src'));_0x51fa1b=_0x15c9fe['getLabel'](_0x9bfeed)||_0x9bfeed;break;}default:{const _0x48eed5=_0x48a73c['getAttribute']('id');_0x51fa1b=_0x15c9fe['getLabel'](_0x48eed5)||_0x48eed5;break;}}return'insertion'==_0x29431b['type']?{'type':'insertion','content':c(_0x5e5a6b,'*Insert:*\x20%0','\x22'+_0x51fa1b+'\x22\x20'+c(_0x5e5a6b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x5e5a6b,'*Remove:*\x20%0','\x22'+_0x51fa1b+'\x22\x20'+c(_0x5e5a6b,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0xcf6495{['afterInit'](){const _0x47e9de=this['editor'],_0x2d82de=_0x47e9de['plugins']['get']('TrackChangesEditing');_0x47e9de['plugins']['has']('MultiLevelList')&&(_0x2d82de['enableDefaultAttributesIntegration']('multiLevelList'),_0x2d82de['registerBlockAttribute']('listMarkerStyle'),_0x2d82de['descriptionFactory']['registerDescriptionCallback'](_0x4030ff=>this['handleDescriptions'](_0x4030ff)));}['handleDescriptions'](_0x4f4c70){const _0x2c8235=this['editor']['locale'],{data:_0x323891}=_0x4f4c70,_0x38bb8b={'type':'format','content':''};if(_0x323891&&'listMarkerStyle'==_0x323891['key']){if(!_0x323891['oldValue'])return{'type':'format','content':c(_0x2c8235,'*Set\x20format:*\x20%0',c(_0x2c8235,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x323891['newValue']+')'};if(!_0x323891['newValue']){let _0x1af75b=_0x4f4c70['head'];for(;_0x1af75b;){if(_0x1af75b['data']&&'listType'==_0x1af75b['data']['key']&&_0x1af75b['data']['newValue'])return _0x38bb8b;_0x1af75b=_0x1af75b['next'];}return{'type':'format','content':c(_0x2c8235,'*Remove\x20format:*\x20%0',c(_0x2c8235,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x323891['oldValue']+')'};}}}}class bt extends _0xcf6495{['afterInit'](){const _0x23c5e5=this['editor'];if(!_0x23c5e5['plugins']['has']('PageBreakEditing'))return;_0x23c5e5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1a64d2=_0x23c5e5['plugins']['get']('TrackChangesEditing'),_0x4c5485=_0x23c5e5['locale'];_0x1a64d2['descriptionFactory']['registerElementLabel']('pageBreak',_0x458403=>c(_0x4c5485,'ELEMENT_PAGE_BREAK',_0x458403));}}class yt extends _0xcf6495{['afterInit'](){const _0xb1495c=this['editor'];if(!_0xb1495c['plugins']['has']('Paragraph'))return;const _0x139d07=_0xb1495c['locale'],_0x32da74=_0xb1495c['plugins']['get']('TrackChangesEditing');_0x32da74['descriptionFactory']['registerElementLabel']('paragraph',_0x1686a6=>c(_0x139d07,'ELEMENT_PARAGRAPH',_0x1686a6)),_0x32da74['enableDefaultAttributesIntegration']('paragraph'),_0x32da74['enableCommand']('insertParagraph'),_0xb1495c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xb1495c),{'priority':'highest'}),_0xb1495c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xf85ab3,_0x354399,_0x39951a)=>{_0x39951a['options']['showSuggestionHighlights']&&nr(_0xb1495c,{'showActiveMarker':!0x1})(_0xf85ab3,_0x354399,_0x39951a);},{'priority':'highest'});const _0x175814=_0x32da74['descriptionFactory'];_0x175814['registerDescriptionCallback'](_0xefb9c7=>{if('insertion'!==_0xefb9c7['type'])return;const {start:_0x2476f2,end:_0x247ffb}=_0xefb9c7['getFirstRange']();if(!_0x2476f2['isTouching'](_0x247ffb)||!_0x2476f2['nodeAfter'])return;const _0x1687f7=_0xb1495c['model']['schema'],_0x1756f8=_0x2476f2['nodeAfter'];return _0x1687f7['isBlock'](_0x1756f8)&&!_0x1687f7['isLimit'](_0x1756f8)&&_0x1687f7['checkChild'](_0x1756f8,'$text')?{'type':'insertion','content':c(_0x139d07,'*Insert:*\x20%0',_0x175814['getItemLabel'](_0x1756f8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2206a4=this['editor'],_0x49f64b=_0x2206a4['locale'];_0x2206a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d9dfd=>{if('formatBlock'!=_0x1d9dfd['type'])return;const {data:_0x52bf57}=_0x1d9dfd;return _0x52bf57&&'paragraph'==_0x52bf57['commandName']?{'type':'format','content':c(_0x49f64b,'*Change\x20to:*\x20%0',c(_0x49f64b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5191c0,{showActiveMarker:_0x2c0346=!0x0}={}){return(_0x55b3a9,_0x5290cf,_0x4c8187)=>{const _0x4ae528=_0x5191c0['plugins']['get']('TrackChangesEditing'),_0x4c8215=_0x5290cf['markerRange']['start'],_0x166511=_0x5290cf['markerRange']['end'],_0x26aab2=_0x5191c0['model']['schema'];if(!_0x4c8215['isTouching'](_0x166511)||!_0x4c8215['nodeAfter'])return;const _0x367ab4=_0x4c8215['nodeAfter'];if(_0x26aab2['isBlock'](_0x367ab4)&&!_0x26aab2['isLimit'](_0x367ab4)&&_0x26aab2['checkChild'](_0x367ab4,'$text')){if(!_0x4c8187['consumable']['consume'](_0x5290cf['markerRange'],_0x55b3a9['name']))return;const {id:_0x50ce7f,authorId:_0x3cf1c5}=_0x4ae528['_splitMarkerName'](_0x5290cf['markerName']),_0x1eb0f9=_0x4c8187['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x50ce7f,'data-author-id':_0x3cf1c5}),_0x11469c=_0x4c8187['mapper']['toViewPosition'](_0x166511);_0x2c0346&&_0x4ae528['activeMarkers']['includes'](_0x5290cf['markerName'])&&_0x4c8187['writer']['addClass']('ck-suggestion-marker--active',_0x1eb0f9),_0x4c8187['writer']['insert'](_0x11469c,_0x1eb0f9),_0x4c8187['mapper']['bindElementToMarker'](_0x1eb0f9,_0x5290cf['markerName']);}};}class jt extends _0xcf6495{['afterInit'](){const _0x3a5d98=this['editor'];_0x3a5d98['commands']['get']('replaceSource')&&_0x3a5d98['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0xcf6495{['afterInit'](){const _0x75dfde=this['editor'];if(!_0x75dfde['plugins']['has']('RemoveFormatEditing'))return;_0x75dfde['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45713a=this['editor'];_0x45713a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e1395=>{if('formatBlock'!=_0x5e1395['type']&&'formatInline'!=_0x5e1395['type'])return;const {data:_0x151e2c}=_0x5e1395;return _0x151e2c&&'removeFormat'==_0x151e2c['commandName']?{'type':'format','content':c(_0x45713a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0xcf6495{['afterInit'](){const _0xec94a1=this['editor'];if(!_0xec94a1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5841e7=_0xec94a1['plugins']['get']('TrackChangesEditing');_0x5841e7['enableCommand']('goToPreviousRestrictedEditingException'),_0x5841e7['enableCommand']('goToNextRestrictedEditingException');const _0x2d0249=_0xec94a1['plugins']['get']('RestrictedEditingModeEditing');_0x2d0249['enableCommand']('trackChanges'),_0x2d0249['enableCommand']('acceptSuggestion'),_0x2d0249['enableCommand']('discardSuggestion'),_0x2d0249['enableCommand']('acceptAllSuggestions'),_0x2d0249['enableCommand']('discardAllSuggestions'),_0x2d0249['enableCommand']('acceptSelectedSuggestions'),_0x2d0249['enableCommand']('discardSelectedSuggestions');}}class It extends _0xcf6495{['afterInit'](){const _0x4b9995=this['editor'];if(!_0x4b9995['plugins']['has']('ShiftEnter'))return;const _0x29bc2d=_0x4b9995['plugins']['get']('TrackChangesEditing');_0x29bc2d['enableCommand']('shiftEnter'),_0x4b9995['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4b9995),{'priority':'high'}),_0x4b9995['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4b9995),{'priority':'high'}),_0x4b9995['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b4be8,_0x29dc20,_0x2453b4)=>{_0x2453b4['options']['showSuggestionHighlights']&&je(_0x4b9995,{'showActiveMarker':!0x1})(_0x2b4be8,_0x29dc20,_0x2453b4);}),_0x29bc2d['descriptionFactory']['registerElementLabel']('softBreak',_0x13aab8=>c(_0x4b9995['locale'],'ELEMENT_LINE_BREAK',_0x13aab8));}}function je(_0x2daafa,{showActiveMarker:_0x34666c=!0x0}={}){return(_0x2883e2,_0x550ea2,_0x210443)=>{const _0x59ddca=_0x2daafa['plugins']['get']('TrackChangesEditing');if(!_0x210443['consumable']['test'](_0x550ea2['markerRange'],_0x2883e2['name']))return;const _0x467f31=_0x2daafa['model'];for(const _0x497613 of _0x550ea2['markerRange']['getItems']()){if(!_0x497613['is']('element','softBreak'))continue;const _0x21e347='deletion'==_0x550ea2['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3515e2,authorId:_0x5e3168}=_0x59ddca['_splitMarkerName'](_0x550ea2['markerName']),_0x2660ca=_0x210443['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x21e347,'data-suggestion':_0x3515e2,'data-author-id':_0x5e3168}),_0x21e3a2=_0x210443['mapper']['toViewPosition'](_0x467f31['createPositionBefore'](_0x497613));_0x34666c&&_0x59ddca['activeMarkers']['includes'](_0x550ea2['markerName'])&&_0x210443['writer']['addClass']('ck-suggestion-marker--active',_0x2660ca),_0x210443['writer']['insert'](_0x21e3a2,_0x2660ca),_0x210443['mapper']['bindElementToMarker'](_0x2660ca,_0x550ea2['markerName']);}};}class _t extends _0xcf6495{['afterInit'](){const _0x426ca5=this['editor'],_0x5afabf=_0x426ca5['model'],_0x4f8bcb=_0x426ca5['locale'];if(!_0x426ca5['plugins']['has']('StandardEditingModeEditing'))return;const _0x5a4164=_0x426ca5['plugins']['get']('TrackChangesEditing'),_0x1ba9bf='restrictedEditingException',_0x2bfd0e=_0x426ca5['commands']['get'](_0x1ba9bf);_0x5a4164['enableCommand'](_0x1ba9bf,(_0x2db17f,_0x69e587={})=>{const _0x1ec0c1=_0x5afabf['document']['selection'];if(_0x1ec0c1['isCollapsed'])return void _0x2db17f(_0x69e587);const _0x29e730=void 0x0!==_0x69e587['forceValue']?_0x69e587['forceValue']:!_0x2bfd0e['value'];_0x5afabf['change'](()=>{const _0x6dec8a=Array['from'](_0x1ec0c1['getRanges']());for(const _0x351e46 of _0x6dec8a){const _0x1f69e3=_0x29e730?[_0x351e46]:io(_0x1ba9bf,_0x351e46,_0x5afabf);for(const _0xa3510d of _0x1f69e3)_0x5a4164['markInlineFormat'](_0xa3510d,{'commandName':_0x1ba9bf,'commandParams':[{'forceValue':_0x29e730}]});}});}),_0x5a4164['descriptionFactory']['registerDescriptionCallback'](_0x2b6b9c=>{if('formatBlock'!=_0x2b6b9c['type']&&'formatInline'!=_0x2b6b9c['type'])return;const {data:_0x12cb3c}=_0x2b6b9c;return _0x12cb3c&&_0x12cb3c['commandName']==_0x1ba9bf?_0x12cb3c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4f8bcb,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x4f8bcb,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0xcf6495{['afterInit'](){const _0x179720=this['editor'];if(!_0x179720['plugins']['has']('Style')||!_0x179720['plugins']['has']('DataSchema'))return;const _0x246b77=_0x179720['plugins']['get']('TrackChangesEditing'),_0xfcadea=_0x179720['locale'],_0x29f018=_0x179720['config']['get']('style')||{},_0x2f6b12=_0x179720['plugins']['get']('GeneralHtmlSupport'),_0x3ae095=_0x179720['plugins']['get']('StyleUtils')['normalizeConfig'](_0x179720['plugins']['get']('DataSchema'),_0x29f018['definitions']);_0x246b77['enableDefaultAttributesIntegration']('style');const _0x1ad86d=new Set();for(const _0x241d75 of _0x3ae095['block']){const _0x2ca42d=_0x2f6b12['getGhsAttributeNameForElement'](_0x241d75['element']);_0x1ad86d['add'](_0x2ca42d);}const _0x325374=new Set();for(const _0x33f842 of _0x3ae095['inline']){const _0x458d43=_0x2f6b12['getGhsAttributeNameForElement'](_0x33f842['element']);_0x325374['add'](_0x458d43);for(const _0x3cc5dd of _0x33f842['ghsAttributes'])_0x325374['add'](_0x3cc5dd);}for(const _0x1d0345 of _0x1ad86d)_0x246b77['registerBlockAttribute'](_0x1d0345),_0x246b77['descriptionFactory']['registerAttributeLabel'](_0x1d0345,c(_0xfcadea,'FORMAT_STYLE'));for(const _0x132e42 of _0x325374)_0x246b77['registerInlineAttribute'](_0x132e42),_0x246b77['descriptionFactory']['registerAttributeLabel'](_0x132e42,c(_0xfcadea,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ca49b=this['editor'],_0x54d160=_0x2ca49b['locale'];_0x2ca49b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dadfe=>{if('formatBlock'!=_0x3dadfe['type']&&'formatInline'!=_0x3dadfe['type'])return;const {data:_0x553089}=_0x3dadfe;return _0x553089&&'style'===_0x553089['commandName']?_0x553089['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x54d160,'*Set\x20format:*\x20%0',_0x553089['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x54d160,'*Remove\x20format:*\x20%0',_0x553089['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0xcf6495{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x28d40c){super(_0x28d40c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4bb92a=this['editor'],_0x16e418=_0x4bb92a['model']['document']['selection'];if(!_0x4bb92a['plugins']['has']('TableEditing'))return;const _0x4fcf11=_0x4bb92a['locale'],_0x294c77=_0x4bb92a['plugins']['get']('TrackChangesEditing'),_0x1773fe=_0x4bb92a['plugins']['get']('TableUtils');_0x294c77['descriptionFactory']['registerElementLabel']('table',_0x16aa8b=>c(_0x4fcf11,'ELEMENT_TABLE',_0x16aa8b)),this['_setupColumnsRowsFixing'](),_0x294c77['enableCommand']('insertTable'),_0x294c77['enableCommand']('selectTableRow'),_0x294c77['enableCommand']('selectTableColumn');for(const _0xb936c4 of['insertTableRowAbove','insertTableRowBelow']){const _0x5df381=_0x4bb92a['commands']['get'](_0xb936c4);_0x294c77['enableCommand'](_0xb936c4,_0x2653d2=>{_0x4bb92a['model']['change'](_0x367e28=>{_0x2653d2();const _0x297b49='above'===_0x5df381['order'],_0x32b1a8=_0x1773fe['getSelectionAffectedTableCells'](_0x16e418),_0x345756=_0x1773fe['getRowIndexes'](_0x32b1a8),_0x409ed1=_0x297b49?_0x345756['first']-0x1:_0x345756['last']+0x1,_0x4e73a1=_0x32b1a8[0x0]['findAncestor']('table'),_0x288945=_0x1773fe['createTableWalker'](_0x4e73a1,{'startRow':_0x409ed1,'endRow':_0x409ed1}),_0xa4f921=Array['from'](_0x288945)['map'](_0xb88e32=>_0x367e28['createRangeOn'](_0xb88e32['cell']));_0x294c77['markMultiRangeInsertion'](_0xa4f921,'tableRow');});});}for(const _0x4716e8 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5d0c29=_0x4bb92a['commands']['get'](_0x4716e8);_0x294c77['enableCommand'](_0x4716e8,_0x525185=>{_0x4bb92a['model']['change'](_0x37d05f=>{_0x525185();const _0x42dbfe='left'===_0x5d0c29['order'],_0x16c45c=_0x1773fe['getSelectionAffectedTableCells'](_0x16e418),_0x2fd298=_0x1773fe['getColumnIndexes'](_0x16c45c),_0x4e6cbb=_0x42dbfe?_0x2fd298['first']-0x1:_0x2fd298['last']+0x1,_0x144c48=_0x16c45c[0x0]['findAncestor']('table'),_0x150c5d=_0x1773fe['createTableWalker'](_0x144c48,{'startRow':0x0,'column':_0x4e6cbb,'includeAllSlots':!0x1}),_0x3d9d5d=Array['from'](_0x150c5d)['map'](_0x204b5a=>_0x37d05f['createRangeOn'](_0x204b5a['cell']));_0x294c77['markMultiRangeInsertion'](_0x3d9d5d,'tableColumn');});});}for(const _0x4be295 of['removeTableRow','removeTableColumn']){const _0x3cac33=_0x4be295['substr'](0xb),_0xbfd006=_0x3cac33['toLowerCase'](),_0x1e1a3b=_0xbfd006['substr'](0x0,0x3)+'span',_0x21bd6e='table'+_0x3cac33,_0x370de5='min'+_0x3cac33,_0x44f8b3='max'+_0x3cac33;_0x294c77['enableCommand'](_0x4be295,()=>{_0x4bb92a['model']['change'](_0x4f6a3a=>{const _0x3f056d=_0x1773fe['getSelectionAffectedTableCells'](_0x16e418),_0x2d8032=_0x3f056d[0x0]['findAncestor']('table');let _0x162e91;if('removeTableRow'==_0x4be295){const _0x2c4cd4=_0x1773fe['getRowIndexes'](_0x3f056d);_0x162e91={'startRow':_0x2c4cd4['first'],'endRow':_0x2c4cd4['last'],'includeAllSlots':!0x0};}else{const _0x28623f=_0x1773fe['getColumnIndexes'](_0x3f056d);_0x162e91={'startColumn':_0x28623f['first'],'endColumn':_0x28623f['last'],'includeAllSlots':!0x0};}const _0x3ff9ce=_0x1773fe['createTableWalker'](_0x2d8032,_0x162e91),_0x43a7a6=Array['from'](_0x3ff9ce)['map'](({cell:_0x45ae81})=>_0x45ae81),_0x1e6773=xe(_0x43a7a6['filter'](_0x549a18=>_0x549a18['hasAttribute'](_0x1e1a3b))),_0x3c2731=xe(_0x43a7a6['filter'](_0x39e2cc=>!_0x39e2cc['hasAttribute'](_0x1e1a3b)))['map'](_0xd5be85=>_0x4f6a3a['createRangeOn'](_0xd5be85)),_0x29bf4a=_0x294c77['markMultiRangeDeletion'](_0x3c2731,_0x21bd6e);if(_0x29bf4a&&('tableRow'==_0x29bf4a['subType']||'tableColumn'==_0x29bf4a['subType'])){const _0x29ec7e=this['_getSuggestionCoords'](_0x29bf4a);for(const _0x60655d of _0x1e6773){const _0x521a1f=_0x4f6a3a['createRangeOn'](_0x60655d),_0x198841=_0x1773fe['getCellLocation'](_0x60655d),_0x61620d=_0x60655d['getAttribute'](_0x1e1a3b)-0x1,_0x2f3752=_0x29ec7e[_0x370de5],_0x45505f=_0x29ec7e[_0x44f8b3];_0x2f3752<=_0x198841[_0xbfd006]&&_0x198841[_0xbfd006]+_0x61620d<=_0x45505f&&_0x29bf4a['addRange'](_0x521a1f);}}});});}function _0x160f4a(_0x2700a9){const _0x37487a=Array['from'](_0x16e418['getRanges']())['map'](_0x4a6de8=>_0x487116['fromRange'](_0x4a6de8));_0x4bb92a['model']['change'](_0x12d657=>{const _0x24a6f5=_0x12d657['batch'];_0x2700a9=_0x2700a9['filter'](_0xda9bc1=>'$graveyard'!=_0xda9bc1['root']['rootName']),_0x12d657['setSelection'](_0x2700a9),_0x4bb92a['commands']['get']('removeTableRow')['refresh'](),_0x4bb92a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4bb92a['model']['enqueueChange'](()=>{_0x4bb92a['model']['enqueueChange'](_0x24a6f5,_0x21c421=>{const _0x2752b2=_0x37487a['filter'](_0x38041b=>'$graveyard'!=_0x38041b['root']['rootName']);_0x2752b2['length']>0x0&&_0x21c421['setSelection'](_0x2752b2);for(const _0x2189ee of _0x37487a)_0x2189ee['detach']();});});});}function _0x1bf77b(_0x2286a1){_0x4bb92a['model']['change'](_0x100388=>{const _0xe6a6c5=Array['from'](_0x16e418['getRanges']())['map'](_0x5359cd=>_0x487116['fromRange'](_0x5359cd)),_0x30c8b3=[];for(const _0x2e1d35 of _0x2286a1)for(const _0x3a4019 of _0x2e1d35['getItems']({'shallow':!0x0}))_0x30c8b3['push'](_0x3a4019);for(const _0x309093 of _0x30c8b3)'$graveyard'!=_0x309093['root']['rootName']&&(_0x100388['setSelection'](_0x100388['createPositionAt'](_0x309093,0x0)),_0x4bb92a['commands']['get']('removeTableColumn')['refresh'](),_0x4bb92a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2c13e9=_0xe6a6c5['filter'](_0x2d93e1=>'$graveyard'!=_0x2d93e1['root']['rootName']);_0x2c13e9['length']>0x0&&_0x100388['setSelection'](_0x2c13e9);for(const _0x2e5065 of _0xe6a6c5)_0x2e5065['detach']();});}function _0x3829b2(_0x16bf9d,_0x3f9ab7){return _0x3f9ab7['every'](_0x6e98cb=>_0x16bf9d['some'](_0x1acac1=>_0x1acac1['end']['isEqual'](_0x6e98cb['start'])||_0x6e98cb['end']['isEqual'](_0x1acac1['start'])));}function _0x20f4a8(_0x3d6376,_0xb99a92){return!_0x3d6376['some'](_0x44ff36=>_0xb99a92['some'](_0x3f4e0e=>_0x44ff36['isIntersecting'](_0x3f4e0e)))&&_0x3d6376['some'](_0x2f3f62=>_0xb99a92['some'](_0x5f41c9=>_0x2f3f62['end']['isTouching'](_0x5f41c9['start'])));}_0x4bb92a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xab4c80,_0x5b14ad,_0x15abf8)=>{if(!_0x15abf8['options']['showSuggestionHighlights'])return;const _0x21c0ea=_0x5b14ad['item'];if(!_0x21c0ea||!_0x21c0ea['is']('element','tableCell'))return;const _0x47b8e0=_0x15abf8['mapper']['toViewElement'](_0x21c0ea);if(_0x47b8e0){const {id:_0x1ba1ab,authorId:_0x1acba3}=_0x294c77['_splitMarkerName'](_0x5b14ad['markerName']);_0x2e42e5(_0x47b8e0,_0x15abf8['writer'],(_0x2c7afa,_0x2aad1f,_0x12e754)=>{_0x12e754['addClass'](_0x5b0719(_0x2aad1f['classes']),_0x2c7afa),_0x12e754['setAttribute']('data-suggestion-id',_0x1ba1ab,_0x2c7afa),_0x12e754['setAttribute']('data-author-id',_0x1acba3,_0x2c7afa);},(_0x459d0b,_0x3b00e8,_0x2bc3a3)=>{_0x2bc3a3['removeClass'](_0x5b0719(_0x3b00e8['classes']),_0x459d0b),_0x2bc3a3['removeAttribute']('data-suggestion-id',_0x459d0b),_0x2bc3a3['removeAttribute']('data-author-id',_0x459d0b);});}},{'priority':'highest'}),_0x294c77['descriptionFactory']['registerDescriptionCallback'](_0xdd83c4=>{if('insertion'!=_0xdd83c4['type']&&'deletion'!=_0xdd83c4['type'])return;const _0x40ded3=_0xdd83c4['getContainedElement']();if(null!=_0x40ded3&&_0x40ded3['is']('element','table')){if('insertion'==_0xdd83c4['type']){const _0x5d039f=_0xdd83c4['getItems']()['filter'](_0x2fbda0=>_0x2fbda0['is']('$textProxy'))['map'](_0x5cdab6=>_0x5cdab6['data']);if(_0x5d039f['length'])return{'type':'insertion','content':c(_0x4fcf11,'*Insert:*\x20%0',c(_0x4fcf11,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5d039f['join']('\x20')+'\x22'))};}if('deletion'==_0xdd83c4['type']){const _0x588944=_0xdd83c4['getItems']()['filter'](_0x11355a=>_0x11355a['is']('$textProxy'))['map'](_0x4d8f7c=>_0x4d8f7c['data']);if(_0x588944['length'])return{'type':'deletion','content':c(_0x4fcf11,'*Remove:*\x20%0',c(_0x4fcf11,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x588944['join']('\x20')+'\x22'))};}}}),_0x294c77['descriptionFactory']['registerDescriptionCallback'](_0x595547=>{if('tableRow'==_0x595547['subType']){const _0x57e61c=_0x595547['getItems']()['filter'](_0xe6173f=>_0xe6173f['is']('$textProxy'))['map'](_0x317f0e=>_0x317f0e['data']),_0x47c00d=this['_getSuggestionCoords'](_0x595547),_0x4d9bbf=_0x47c00d['maxRow']-_0x47c00d['minRow']+0x1;if('insertion'==_0x595547['type'])return _0x57e61c['length']?{'type':'insertion','content':c(_0x4fcf11,'*Insert:*\x20%0',c(_0x4fcf11,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4d9bbf,'\x22'+_0x57e61c['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4fcf11,'*Insert:*\x20%0',c(_0x4fcf11,'ELEMENT_TABLE_ROW',_0x4d9bbf))};if('deletion'==_0x595547['type'])return _0x57e61c['length']?{'type':'deletion','content':c(_0x4fcf11,'*Remove:*\x20%0',c(_0x4fcf11,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4d9bbf,'\x22'+_0x57e61c['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4fcf11,'*Remove:*\x20%0',c(_0x4fcf11,'ELEMENT_TABLE_ROW',_0x4d9bbf))};}if('tableColumn'==_0x595547['subType']){const _0x5d15b0=_0x595547['getItems']()['filter'](_0x4501db=>_0x4501db['is']('$textProxy'))['map'](_0x6e3f58=>_0x6e3f58['data']),_0x5c673a=this['_getSuggestionCoords'](_0x595547),_0x1dcec8=_0x5c673a['maxColumn']-_0x5c673a['minColumn']+0x1;if('insertion'==_0x595547['type'])return _0x5d15b0['length']?{'type':'insertion','content':c(_0x4fcf11,'*Insert:*\x20%0',c(_0x4fcf11,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1dcec8,'\x22'+_0x5d15b0['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4fcf11,'*Insert:*\x20%0',c(_0x4fcf11,'ELEMENT_TABLE_COLUMN',_0x1dcec8))};if('deletion'==_0x595547['type'])return _0x5d15b0['length']?{'type':'deletion','content':c(_0x4fcf11,'*Remove:*\x20%0',c(_0x4fcf11,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1dcec8,'\x22'+_0x5d15b0['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4fcf11,'*Remove:*\x20%0',c(_0x4fcf11,'ELEMENT_TABLE_COLUMN',_0x1dcec8))};}}),_0x294c77['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x160f4a),_0x294c77['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x160f4a),_0x294c77['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1bf77b),_0x294c77['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1bf77b),_0x294c77['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3829b2),_0x294c77['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3829b2),_0x294c77['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x20f4a8),_0x294c77['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x20f4a8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x27c396=this['editor'],_0x3386cb=_0x27c396['model']['document']['selection'];return(_0x48fb23,_0x223850)=>{_0x27c396['model']['change'](_0x3e5bf2=>{const {commandName:_0x4bbc55,commandParams:_0x1a2f9d}=_0x223850;let _0x526d47=_0x48fb23[0x0]['end']['nodeBefore'];_0x1a2f9d&&_0x1a2f9d[0x0]&&!0x1===_0x1a2f9d[0x0]['forceValue']&&(_0x526d47=_0x48fb23[0x0]['start']['nodeAfter']);const _0x2cf85b=_0x3e5bf2['createRangeIn'](_0x526d47);if('$graveyard'==_0x2cf85b['root']['rootName'])return;const _0x479618=Array['from'](_0x3386cb['getRanges']())['map'](_0x261dfd=>_0x487116['fromRange'](_0x261dfd));_0x3e5bf2['setSelection'](_0x2cf85b),_0x27c396['commands']['get'](_0x4bbc55)['refresh'](),_0x1a2f9d['push']({'forceDefaultExecution':!0x0}),_0x27c396['execute'](_0x4bbc55,..._0x1a2f9d);const _0x28e1f2=_0x479618['filter'](_0x490081=>'$graveyard'!=_0x490081['root']['rootName']);_0x28e1f2['length']>0x0&&_0x3e5bf2['setSelection'](_0x28e1f2);for(const _0x41cb96 of _0x479618)_0x41cb96['detach']();});};}['_getCoordsForCells'](_0x23605e){const _0x2ccb8b=this['editor']['plugins']['get']('TableUtils');let _0x978bc2=Number['MAX_SAFE_INTEGER'],_0x3918cb=Number['MIN_SAFE_INTEGER'],_0x165266=Number['MAX_SAFE_INTEGER'],_0x8c0a8e=Number['MIN_SAFE_INTEGER'];for(const _0x421705 of _0x23605e){if('$graveyard'==_0x421705['root']['rootName'])continue;const {row:_0x1ab6bc,column:_0x45a395}=_0x2ccb8b['getCellLocation'](_0x421705),_0x38706b=_0x421705['hasAttribute']('rowspan')?_0x421705['getAttribute']('rowspan')-0x1:0x0,_0x3cf46f=_0x421705['hasAttribute']('colspan')?_0x421705['getAttribute']('colspan')-0x1:0x0;_0x978bc2=_0x1ab6bc<_0x978bc2?_0x1ab6bc:_0x978bc2,_0x3918cb=_0x1ab6bc+_0x38706b>_0x3918cb?_0x1ab6bc+_0x38706b:_0x3918cb,_0x165266=_0x45a395<_0x165266?_0x45a395:_0x165266,_0x8c0a8e=_0x45a395+_0x3cf46f>_0x8c0a8e?_0x45a395+_0x3cf46f:_0x8c0a8e;}return{'minRow':_0x978bc2,'maxRow':_0x3918cb,'minColumn':_0x165266,'maxColumn':_0x8c0a8e};}['_setupColumnsRowsFixing'](){const _0x21b703=this['editor'],_0x11a7d3=_0x21b703['plugins']['get']('TrackChangesEditing'),_0x54069f=_0x21b703['plugins']['get']('TableUtils');_0x21b703['model']['document']['on']('change:data',()=>{const _0xd8cc04=Array['from'](_0x21b703['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c9eea,data:_0x5b8007}of _0xd8cc04){const {group:_0x4ae5d8,id:_0x4020a2,subType:_0x4e7bc2}=_0x11a7d3['_splitMarkerName'](_0x4c9eea);if('suggestion'!=_0x4ae5d8)continue;if(null!=_0x5b8007['oldRange'])continue;const _0x57d125=_0x11a7d3['getSuggestion'](_0x4020a2);this['_tablePostFixingSubtypes']['includes'](_0x4e7bc2)&&this['_tableSuggestions']['add'](_0x57d125);}},{'priority':'low'});const _0x4106b0=(_0xc12625,_0x145271)=>{let _0x5311e4=!0x1;const _0x3296b7=_0x145271['createRangeOn'](_0xc12625),_0x2ac7e9=_0xc12625['findAncestor']('table'),_0x979b69=_0x54069f['getCellLocation'](_0xc12625);for(const _0x177fa4 of this['_tableSuggestions']){const _0x5bc2d1=_0x177fa4['subType'],_0x1ea9f=_0x5bc2d1['startsWith']('tablePaste'),_0x3c0588=_0x5bc2d1['substr'](_0x1ea9f?0xa:0x5),_0x2de4f5=_0x3c0588['toLowerCase'](),_0x279fdf=_0x2de4f5['substr'](0x0,0x3)+'span',_0x18c9f8='min'+_0x3c0588,_0x220f30='max'+_0x3c0588;if(!_0x177fa4['isInContent'])continue;if(_0x2ac7e9!=_0x177fa4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x177fa4['isIntersectingWithRange'](_0x3296b7))continue;const _0x3e9223=_0xc12625['hasAttribute'](_0x279fdf)?_0xc12625['getAttribute'](_0x279fdf)-0x1:0x0,_0x3b3208=this['_getSuggestionCoords'](_0x177fa4),_0x17895c=_0x3b3208[_0x18c9f8],_0x1738dd=_0x3b3208[_0x220f30];_0x17895c<=_0x979b69[_0x2de4f5]&&_0x979b69[_0x2de4f5]+_0x3e9223<=_0x1738dd&&(_0x177fa4['addRange'](_0x3296b7),_0x5311e4=!0x0);}return _0x5311e4;};_0x21b703['model']['document']['registerPostFixer'](_0x4062c0=>{let _0x286d3b=!0x1;for(const _0x256fac of _0x21b703['model']['document']['differ']['getChanges']())if('insert'==_0x256fac['type']){if('tableRow'==_0x256fac['name']){for(const _0x7d43b2 of _0x256fac['position']['nodeAfter']['getChildren']())_0x286d3b=_0x286d3b||_0x4106b0(_0x7d43b2,_0x4062c0);}else'tableCell'==_0x256fac['name']&&(_0x286d3b=_0x286d3b||_0x4106b0(_0x256fac['position']['nodeAfter'],_0x4062c0));}return _0x286d3b;});}['_getSuggestionCoords'](_0xd90b53){return this['_getCoordsForCells'](_0xd90b53['getRanges']()['map'](_0x5a7bb4=>_0x5a7bb4['start']['nodeAfter']));}}function xe(_0x33f754){return Array['from'](new Set(_0x33f754)['values']());}class Nt extends _0xcf6495{static get['requires'](){return[Ct];}['afterInit'](){const _0x645393=this['editor'],_0x2a275b=_0x645393['model']['document']['selection'],_0x33b3de=_0x645393['locale'];if(!_0x645393['plugins']['has']('TableEditing'))return;const _0x163094=_0x645393['plugins']['get']('TrackChangesEditing'),_0x46c99c=_0x645393['plugins']['get']('TableUtils'),_0x45e74b=_0x645393['plugins']['get'](Ct);_0x45e74b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x163094['enableCommand']('mergeTableCells',()=>{const _0x450aad=_0x46c99c['getSelectionAffectedTableCells'](_0x645393['model']['document']['selection']);_0x645393['model']['change'](()=>{_0x163094['markMultiRangeBlockFormat'](_0x450aad,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x645393['commands']['get']('mergeTableCells')['on']('execute',(_0x42390b,_0x5da64b)=>{_0x645393['commands']['get']('trackChanges')['value']&&(_0x5da64b['length']>0x0&&_0x5da64b[_0x5da64b['length']-0x1]&&_0x5da64b[_0x5da64b['length']-0x1]['forceDefaultExecution']||_0x163094['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x42390b['stop']());},{'priority':'highest'});for(const _0x54116f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x6ec734=_0x645393['commands']['get'](_0x54116f);_0x163094['enableCommand'](_0x54116f,()=>{const _0x3ba767=_0x645393['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x896d73=>_0x896d73['is']('element','tableCell')),_0x19bcbc=_0x6ec734['value'];_0x645393['model']['change'](()=>{_0x163094['markMultiRangeBlockFormat']([_0x3ba767,_0x19bcbc],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x378f4b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3c5ecc=_0x645393['commands']['get'](_0x378f4b);_0x163094['enableCommand'](_0x378f4b,()=>{const _0x56b370=_0x46c99c['getSelectionAffectedTableCells'](_0x645393['model']['document']['selection'])[0x0],_0x221ea9=_0x56b370['findAncestor']('table'),{column:_0x3cdb9f,row:_0x5387ea}=_0x46c99c['getCellLocation'](_0x56b370);let _0x9a1826=[];if('horizontally'==_0x3c5ecc['direction']){const _0x18c70f=_0x46c99c['createTableWalker'](_0x221ea9,{'startRow':_0x5387ea,'endRow':_0x5387ea,'includeAllSlots':!0x0});_0x9a1826=Array['from'](_0x18c70f)['map'](_0x43cc49=>_0x43cc49['cell']);}else{const _0x3211b0=_0x46c99c['createTableWalker'](_0x221ea9,{'column':_0x3cdb9f,'includeAllSlots':!0x0});_0x9a1826=Array['from'](_0x3211b0)['map'](_0x26d105=>_0x26d105['cell']);}_0x645393['model']['change'](_0x5842ba=>{_0x163094['markBlockFormat'](_0x5842ba['createRangeOn'](_0x56b370),{'commandName':_0x378f4b,'commandParams':[]},_0x9a1826,_0x378f4b);});});}_0x163094['descriptionFactory']['registerDescriptionCallback'](_0xc99b48=>{if('formatBlock'!=_0xc99b48['type']&&'formatInline'!=_0xc99b48['type'])return;const {data:_0x2458b0}=_0xc99b48;return _0x2458b0&&'mergeTableCells'==_0x2458b0['commandName']?{'type':'format','content':c(_0x33b3de,'*Merge\x20cells*')}:void 0x0;}),_0x163094['descriptionFactory']['registerDescriptionCallback'](_0x341999=>{if('formatBlock'!=_0x341999['type']&&'formatInline'!=_0x341999['type'])return;const {data:_0x4cab5b}=_0x341999;return _0x4cab5b?'splitTableCellVertically'==_0x4cab5b['commandName']?{'type':'format','content':c(_0x33b3de,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4cab5b['commandName']?{'type':'format','content':c(_0x33b3de,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x45e707=_0x45e74b['_acceptFormatSuggestionCallbackFactory']();for(const _0x27f017 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x163094['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x27f017,'accept',_0x45e707);for(const _0x3e016f of['splitTableCellVertically','splitTableCellHorizontally'])_0x163094['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e016f,'accept',_0x45e707);_0x163094['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x378dbb=>{_0x645393['model']['change'](_0x923cf3=>{const _0x2d19b6=Array['from'](_0x2a275b['getRanges']())['map'](_0x51b507=>_0x487116['fromRange'](_0x51b507));_0x923cf3['setSelection'](_0x378dbb),_0x645393['commands']['get']('mergeTableCells')['refresh'](),_0x645393['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x7ec34a=_0x2d19b6['filter'](_0x3d5c29=>'$graveyard'!=_0x3d5c29['root']['rootName']);_0x7ec34a['length']>0x0&&_0x923cf3['setSelection'](_0x7ec34a);for(const _0xc135b3 of _0x2d19b6)_0xc135b3['detach']();});});for(const _0x3d8f41 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x446cae=_0x645393['commands']['get'](_0x3d8f41);_0x446cae['on']('set:isEnabled',(_0x22d727,_0x52d203,_0x253758)=>{if(_0x253758){const _0x2327dc=_0x645393['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3befc6=>_0x3befc6['is']('element','tableCell'));this['_areMergableCells'](_0x446cae['value'],_0x2327dc)||(_0x22d727['return']=!0x1,_0x22d727['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x43677a=this['editor']['commands']['get']('mergeTableCells'),_0x297f69=this['editor']['plugins']['get']('TableUtils');if(!_0x43677a['isEnabled'])return!0x1;const _0x194416=_0x297f69['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1bff76 of _0x194416)for(const _0x4eaa0c of _0x194416)if(_0x1bff76!=_0x4eaa0c&&!this['_areMergableCells'](_0x1bff76,_0x4eaa0c))return!0x1;return!0x0;}['_areMergableCells'](_0xac2215,_0x3117ee){const _0x1f1c6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f24a9=this['editor']['model']['createRangeOn'](_0xac2215),_0x135917=this['editor']['model']['createRangeOn'](_0x3117ee),_0x280649=new Set(),_0x1f2ee4=new Set();for(const _0x1a0196 of _0x1f1c6b['getSuggestions']())if(('insertion'==_0x1a0196['type']||'deletion'==_0x1a0196['type']||'mergeTableCells'==_0x1a0196['subType'])&&_0x1a0196['isInContent']){for(const _0x45531d of _0x1a0196['getRanges']())_0x45531d['containsRange'](_0x4f24a9,!0x0)&&_0x280649['add'](_0x1a0196['type']+':'+_0x1a0196['author']['id']),_0x45531d['containsRange'](_0x135917,!0x0)&&_0x1f2ee4['add'](_0x1a0196['type']+':'+_0x1a0196['author']['id']);}if(_0x280649['size']!=_0x1f2ee4['size'])return!0x1;for(const _0x4a6537 of _0x280649)if(!_0x1f2ee4['has'](_0x4a6537))return!0x1;return!0x0;}}class Dt extends _0xcf6495{static get['requires'](){return[Ct];}['afterInit'](){const _0x3d0904=this['editor'];if(!_0x3d0904['plugins']['has']('TableEditing'))return;const _0x3d9caf=_0x3d0904['locale'],_0x3e6871=_0x3d0904['plugins']['get']('TrackChangesEditing');_0x3e6871['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3e6871['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3e6871['registerBlockAttribute']('headingRows'),_0x3e6871['registerBlockAttribute']('headingColumns'),_0x3e6871['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x3d9caf,'FORMAT_HEADER_ROW')),_0x3e6871['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x3d9caf,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x50ded5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x103d85=this['editor']['plugins']['get']('TableUtils'),_0xc4ed8f=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x48fd03({showActiveMarker:_0x3a28d6=!0x0,setDataAttribute:_0x23d956=!0x0}={}){return(_0x586562,_0x254e0a,_0x118fb7)=>{const {type:_0x43b371,id:_0x2a75bc}=_0x50ded5['_splitMarkerName'](_0x254e0a['markerName']),_0x208b18=_0x50ded5['getSuggestion'](_0x2a75bc),_0x26ccdd=_0x208b18['data'];if('formatBlock'!=_0x208b18['type']||!_0x26ccdd||'setTableColumnHeader'!=_0x26ccdd['commandName'])return;if(_0x254e0a['item'])return void _0x586562['stop']();if(!_0x118fb7['consumable']['consume'](_0x254e0a['markerRange'],_0x586562['name']))return;const _0x498897=_0x254e0a['markerRange']['start']['nodeAfter'],_0x9c47a3=_0x254e0a['markerRange']['end']['nodeBefore'],_0x3d4f28=_0x498897['parent']['parent'],{column:_0x49bf78}=_0x103d85['getCellLocation'](_0x498897),{column:_0x38fcc5}=_0x103d85['getCellLocation'](_0x9c47a3);for(let _0x121a9c=_0x49bf78;_0x121a9c<=_0x38fcc5;_0x121a9c++){const _0x3ef2cd=_0x103d85['createTableWalker'](_0x3d4f28,{'column':_0x121a9c,'includeAllSlots':!0x1});for(const _0x63e705 of _0x3ef2cd){const _0x23303c=_0x63e705['cell'],_0x544892=_0x118fb7['mapper']['toViewElement'](_0x23303c);_0x118fb7['writer']['addClass']('ck-suggestion-marker-'+_0x43b371,_0x544892),_0x23d956&&_0x118fb7['writer']['setAttribute']('data-suggestion',_0x2a75bc,_0x544892),_0x118fb7['mapper']['bindElementToMarker'](_0x544892,_0x254e0a['markerName']),_0x3a28d6&&(_0x50ded5['activeMarkers']['includes'](_0x254e0a['markerName'])?_0x118fb7['writer']['addClass']('ck-suggestion-marker--active',_0x544892):_0x118fb7['writer']['removeClass']('ck-suggestion-marker--active',_0x544892));}}};}_0x50ded5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xc4ed8f),_0x50ded5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xc4ed8f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x48fd03(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4b068b,_0x6c31ed,_0x3b020c)=>{_0x3b020c['options']['showSuggestionHighlights']&&_0x48fd03({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4b068b,_0x6c31ed,_0x3b020c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x544014,_0x2dcf86,_0x5266a3)=>{const {type:_0xe5481,id:_0x1f496f}=_0x50ded5['_splitMarkerName'](_0x2dcf86['markerName']),_0x56aba0=_0x50ded5['getSuggestion'](_0x1f496f),_0x41e72d=_0x56aba0['data'];if('formatBlock'!=_0x56aba0['type']||!_0x41e72d||'setTableColumnHeader'!=_0x41e72d['commandName'])return;const _0x32f516=_0x5266a3['mapper']['markerNameToElements'](_0x2dcf86['markerName']);if(_0x32f516){for(const _0x5e9335 of _0x32f516)_0x5266a3['writer']['removeClass']('ck-suggestion-marker-'+_0xe5481,_0x5e9335),_0x5266a3['writer']['removeClass']('ck-suggestion-marker--active',_0x5e9335),_0x5266a3['writer']['removeAttribute']('data-suggestion',_0x5e9335),_0x5266a3['mapper']['unbindElementFromMarkerName'](_0x5e9335,_0x2dcf86['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ef8f9=this['editor'],_0x5cc766=_0x4ef8f9['locale'];function _0x4d651d(_0x756cff){return{'type':'format','content':c(_0x5cc766,'*Format:*\x20%0',_0x756cff)};}_0x4ef8f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x141926=>{if('formatBlock'!=_0x141926['type'])return;const {data:_0xad6463}=_0x141926;if(_0xad6463){if('setTableRowHeader'==_0xad6463['commandName']){const _0x396a2a=_0xad6463['commandParams'][0x0]['forceValue'];return _0x4d651d(c(_0x5cc766,_0x396a2a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xad6463['commandName']){const _0x52bbcd=_0xad6463['commandParams'][0x0]['forceValue'];return _0x4d651d(c(_0x5cc766,_0x52bbcd?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0xcf6495{['afterInit'](){const _0x392eda=this['editor'],_0x45eb68=_0x392eda['locale'],_0x3c91b4=_0x392eda['plugins']['get']('TrackChangesEditing');function _0x303d51(_0x46f81b){return{'type':'format','content':''+c(_0x45eb68,'*Set\x20table\x20type:*\x20%0',_0x46f81b)};}_0x392eda['plugins']['has']('TableLayout')&&(_0x3c91b4['enableCommand']('insertTableLayout'),_0x3c91b4['enableDefaultAttributesIntegration']('tableType'),_0x3c91b4['registerBlockAttribute']('tableType'),_0x3c91b4['descriptionFactory']['registerElementLabel'](_0x287641=>_0x287641['is']('element','table')&&'layout'===_0x287641['getAttribute']('tableType'),_0x4a4ab3=>c(_0x45eb68,'ELEMENT_LAYOUT_TABLE',_0x4a4ab3)),_0x3c91b4['descriptionFactory']['registerDescriptionCallback'](_0x279e3e=>{const {data:_0x3cacc6}=_0x279e3e;if(_0x3cacc6&&'tableType'==_0x3cacc6['key'])switch(_0x3cacc6['newValue']){case'layout':return _0x303d51(c(_0x45eb68,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x303d51(c(_0x45eb68,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x3d6c77=>[_0x3d6c77,null]));class $t extends _0xcf6495{static get['requires'](){return[Ct];}['afterInit'](){const _0x18c12a=this['editor'];if(!_0x18c12a['plugins']['has']('TableClipboard'))return;const _0x3eecab=_0x18c12a['plugins']['get']('TrackChangesEditing'),_0x4c8f39=_0x18c12a['plugins']['get']('TableUtils'),_0x2a3e74=_0x18c12a['plugins']['get'](Ct),_0x36b159=_0x18c12a['plugins']['get']('TableClipboard'),_0x577d9e=_0x18c12a['plugins']['get']('TableSelection'),_0x385c9f=_0x18c12a['plugins']['get'](_0x138767);_0x2a3e74['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x18c12a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x18c12a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x71528e=null,_0x2bdb47=!0x1;_0x385c9f['on']('contentInsertion',(_0x3f7920,_0x460b1e)=>{_0x2bdb47='paste'===_0x460b1e['method'];}),_0x18c12a['model']['on']('insertContent',(_0x13195b,_0x291674)=>{if(!_0x2bdb47&&null===_0x577d9e['getSelectedTableCells']())return;const [_0x17de2c,_0x2ce0a6]=_0x291674,_0x3d41ce=_0x291674[_0x291674['length']-0x1];_0x3d41ce&&_0x3d41ce['forceDefaultExecution']||_0x3eecab['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2ac1fd,_0x2fafc9,_0x3ccb62,_0xf6237c,_0x50db89){if(_0x2fafc9&&!_0x2fafc9['is']('documentSelection'))return!0x1;const _0x4c7c75=_0x50db89['getTableIfOnlyTableInContent'](_0x2ac1fd,_0x3ccb62);if(!_0x4c7c75||!He(_0x4c7c75,void 0x0,_0xf6237c))return!0x1;const _0x327519=_0xf6237c['getSelectionAffectedTableCells'](_0x3ccb62['document']['selection']);if(!_0x327519['length'])return!0x1;const _0x3f42b5=_0x327519[0x0]['findAncestor']('table'),_0x5255d2=_0xf6237c['getRowIndexes'](_0x327519),_0x545bde=_0xf6237c['getColumnIndexes'](_0x327519),_0x510793={'startRow':_0x5255d2['first'],'endRow':_0x5255d2['last'],'startColumn':_0x545bde['first'],'endColumn':_0x545bde['last']};return 0x1==_0x327519['length']&&(_0x510793['endRow']+=_0xf6237c['getRows'](_0x4c7c75)-0x1,_0x510793['endColumn']+=_0xf6237c['getColumns'](_0x4c7c75)-0x1),He(_0x3f42b5,_0x510793,_0xf6237c);}(_0x17de2c,_0x2ce0a6,_0x18c12a['model'],_0x4c8f39,_0x36b159)&&(_0x13195b['stop'](),_0x71528e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x18c12a['model']['change'](()=>{_0x18c12a['model']['insertContent'](_0x291674[0x0],_0x291674[0x1],_0x291674[0x2],{'forceDefaultExecution':!0x0});const _0x58ca85=_0x2db65b(),{rowInsertionRanges:_0x455071,columnInsertionRanges:_0xaf5eb8,insertionRanges:_0x258cae,deletionRanges:_0x5d0dac,cells:_0x551283}=_0x71528e;_0x455071['length']&&_0x3eecab['markMultiRangeInsertion'](_0x455071,'tablePasteRow',{'tablePasteChainId':_0x58ca85}),_0xaf5eb8['length']&&_0x3eecab['markMultiRangeInsertion'](_0xaf5eb8,'tablePasteColumn',{'tablePasteChainId':_0x58ca85}),_0x258cae['length']&&(_0x3eecab['markMultiRangeInsertion'](_0x258cae,'tablePaste',{'tablePasteChainId':_0x58ca85,'skipNestingCheck':!0x0}),_0x258cae['forEach'](_0x100e79=>_0x100e79['detach']?.())),_0x5d0dac['length']&&(_0x3eecab['markMultiRangeDeletion'](_0x5d0dac,'tablePaste',{'tablePasteChainId':_0x58ca85,'skipNestingCheck':!0x0}),_0x5d0dac['forEach'](_0x175c00=>_0x175c00['detach']?.()));const _0x2de50a=_0x3eecab['markMultiRangeBlockFormat'](_0x551283['map'](({element:_0x63766b})=>_0x63766b),{'formatGroupId':_0x2db65b()},[],'tablePasteCell',{'tablePasteChainId':_0x58ca85});if(_0x2de50a){const _0x2a0559=_0x2de50a['getMarkers'](),_0x41576f=[];for(const {element:_0x44aef7,attributes:_0x490f26}of _0x551283){if(!_0x490f26)continue;const _0x15cfed=_0x18c12a['model']['createRangeOn'](_0x44aef7),_0x3edac6=_0x2a0559['find'](_0x4771a4=>_0x4771a4['getRange']()['isEqual'](_0x15cfed));_0x3edac6&&_0x41576f['push']([_0x3edac6['name'],_0x490f26]);}_0x41576f['length']&&_0x2de50a['setAttribute']('markerAttributes',Object['fromEntries'](_0x41576f));}_0x71528e=null;}));},{'priority':_0x3c811d['high']+0xa}),_0x385c9f['on']('contentInsertion',()=>{_0x2bdb47=!0x1;},{'priority':'lowest'}),_0x18c12a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x83780,_0x1643ae)=>{const [_0x2be5a,_0x4488ad,,_0x274b68]=_0x1643ae;if(!_0x71528e)return;_0x83780['stop']();const _0x121319=_0x2be5a['cell'],_0x4de844=_0x4488ad,_0x6417f0=De(_0x121319),_0x4c233a=De(_0x4de844);_0x83780['return']=_0x121319;let _0x10730c=null,_0x443d7f=null;if(_0x4c233a||_0x6417f0){if(_0x6417f0&&!_0x4c233a){_0x274b68['remove'](_0x121319['getChild'](0x0));for(const _0x4fd570 of Array['from'](_0x4de844['getChildren']()))_0x274b68['insert'](_0x4fd570,_0x121319,'end');const _0x4f33b9=_0x71528e['rowInsertionIndexes']['includes'](_0x2be5a['row']),_0x3c7038=_0x71528e['columnInsertionIndexes']['includes'](_0x2be5a['column']);_0x4f33b9||_0x3c7038||(_0x10730c=_0x487116['fromRange'](_0x274b68['createRangeIn'](_0x121319)));}else _0x4c233a&&!_0x6417f0&&(_0x443d7f=_0x274b68['createRangeIn'](_0x121319));}else{const _0x29ff24=_0x274b68['createElement']('tableCellSuggestion'),_0x14129c=_0x274b68['createElement']('tableCellSuggestion');_0x274b68['wrap'](_0x274b68['createRangeIn'](_0x121319),_0x14129c),_0x274b68['insert'](_0x29ff24,_0x121319,0x0);for(const _0x3e9f7d of Array['from'](_0x4de844['getChildren']()))_0x274b68['insert'](_0x3e9f7d,_0x29ff24,'end');_0x10730c=_0x487116['fromRange'](_0x274b68['createRangeOn'](_0x29ff24)),_0x443d7f=_0x487116['fromRange'](_0x274b68['createRangeOn'](_0x14129c));}const _0x1ee2ad=Array['from'](_0x4de844['getAttributes']())['filter'](([_0x2ab025])=>Oe['includes'](_0x2ab025));_0x71528e['cells']['push']({'element':_0x121319,'attributes':_0x1ee2ad['length']?Object['fromEntries'](_0x1ee2ad):null}),_0x10730c&&_0x71528e['insertionRanges']['push'](_0x10730c),_0x443d7f&&_0x71528e['deletionRanges']['push'](_0x443d7f);},{'priority':'high'}),_0x4c8f39['on']('insertColumns',(_0x3cb583,_0x2ea477)=>{const [_0x572e8d,_0x41b117={}]=_0x2ea477;if(!_0x71528e)return;const _0x3d484f=_0x41b117['at']||0x0,_0x4438ab=_0x41b117['columns']||0x1;_0x71528e['columnInsertionIndexes']=new Array(_0x4438ab)['fill'](_0x3d484f)['map']((_0xe3edc2,_0x41dd52)=>_0xe3edc2+_0x41dd52);for(const {cell:_0x213576}of _0x4c8f39['createTableWalker'](_0x572e8d,{'startColumn':_0x3d484f,'endColumn':_0x3d484f+_0x4438ab-0x1}))_0x71528e['columnInsertionRanges']['push'](_0x18c12a['model']['createRangeOn'](_0x213576));},{'priority':'low'}),_0x4c8f39['on']('insertRows',(_0x28d3d1,_0x5386ab)=>{const [_0x21bda0,_0xd7c810={}]=_0x5386ab;if(!_0x71528e)return;const _0x49b159=_0xd7c810['at']||0x0,_0x2c47f0=_0xd7c810['rows']||0x1;_0x71528e['rowInsertionIndexes']=new Array(_0x2c47f0)['fill'](_0x49b159)['map']((_0x5e500b,_0xa078d)=>_0x5e500b+_0xa078d);for(const {cell:_0xd9d521}of _0x4c8f39['createTableWalker'](_0x21bda0,{'startRow':_0x49b159,'endRow':_0x49b159+_0x2c47f0-0x1}))_0x71528e['rowInsertionRanges']['push'](_0x18c12a['model']['createRangeOn'](_0xd9d521));},{'priority':'low'}),_0x3eecab['descriptionFactory']['registerDescriptionCallback'](_0x223cc9=>{if(_0x223cc9['subType']&&_0x223cc9['subType']['startsWith']('tablePaste'))return _0x223cc9['previous']?{}:{'type':'insertion','content':c(_0x18c12a['locale'],'*Replace\x20table\x20cells*')};});const _0x303c0c=()=>!0x1;for(const _0x4bc30e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3eecab['_suggestionFactory']['registerCustomCallback']('insertion',_0x4bc30e,'join',_0x303c0c),_0x3eecab['_suggestionFactory']['registerCustomCallback']('deletion',_0x4bc30e,'join',_0x303c0c),_0x3eecab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4bc30e,'join',_0x303c0c);_0x3eecab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x303c0c),_0x3eecab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x587a2a,_0x21fc20,_0x5e5abe)=>{const _0x47fd1f=_0x587a2a['map'](_0x31d5d9=>_0x31d5d9['getContainedElement']())['filter'](_0x32b57c=>_0x32b57c),_0x3acd34=new Map(_0x47fd1f['map'](_0x45e0c9=>[_0x45e0c9,null]));if(_0x71528e){for(const {element:_0x5c579b,attributes:_0x3843a9}of _0x71528e['cells'])_0x3843a9&&_0x3acd34['set'](_0x5c579b,_0x3843a9);}else{if(_0x5e5abe&&_0x5e5abe['markerAttributes'])for(const [_0x3e744d,_0x4cd3f3]of Object['entries'](_0x5e5abe['markerAttributes'])){const _0x176ca6=_0x18c12a['model']['markers']['get'](_0x3e744d),_0x8cd3f0=_0x176ca6?_0x176ca6['getRange']()['getContainedElement']():null;_0x8cd3f0&&_0x3acd34['set'](_0x8cd3f0,_0x4cd3f3);}}_0x18c12a['model']['change'](_0x5c2ee3=>{for(const [_0x4f4818,_0x549d9b]of _0x3acd34)_0x5c2ee3['setAttributes']({...Ue,..._0x549d9b},_0x4f4818);});});const _0x142345=(_0x8322ce,_0x1a7ea2)=>{_0x3eecab['_suggestionFactory']['registerCustomCallback'](_0x8322ce,'tablePaste',_0x1a7ea2,(_0xd0748f,_0x133dc0,_0x4a3bc5)=>{_0x18c12a['model']['change'](_0x247afd=>{const _0x3a6a95=[];for(const _0x1f097d of _0xd0748f){const _0x32801=_0x1f097d['start']['nodeAfter'];_0x32801['is']('element','tableCellSuggestion')&&_0x3a6a95['push'](_0x32801);}_0x3eecab['_suggestionFactory']['getSuggestionCallback'](_0x8322ce,null,_0x1a7ea2)(_0xd0748f,_0x133dc0,_0x4a3bc5);for(const _0x58fe42 of _0x3a6a95)'$graveyard'!=_0x58fe42['root']['rootName']&&_0x247afd['unwrap'](_0x58fe42);});});};_0x142345('insertion','accept'),_0x142345('insertion','discard'),_0x142345('deletion','accept'),_0x142345('deletion','discard'),_0x3eecab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4f6521=>{const _0x3624e8=_0x4f6521['map'](_0x326437=>_0x326437['getContainedElement']()),_0x175daa=_0x3624e8[0x0]['findAncestor']('table'),{minRow:_0x20a133,maxRow:_0x2f6488}=_0x2a3e74['_getCoordsForCells'](_0x3624e8);_0x4c8f39['removeRows'](_0x175daa,{'at':_0x20a133,'rows':_0x2f6488-_0x20a133+0x1});}),_0x3eecab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x421a8a=>{const _0x937c1=_0x421a8a['map'](_0x13ab6a=>_0x13ab6a['getContainedElement']()),_0x12b796=_0x937c1[0x0]['findAncestor']('table'),{minColumn:_0xa9ae8a,maxColumn:_0x53b70d}=_0x2a3e74['_getCoordsForCells'](_0x937c1);_0x4c8f39['removeColumns'](_0x12b796,{'at':_0xa9ae8a,'columns':_0x53b70d-_0xa9ae8a+0x1});});const _0x7d33a9=(_0x382d79,_0x195a14)=>{if(!_0x195a14['subType']||!_0x195a14['subType']['startsWith']('tablePaste'))return;const _0x17a3a3=_0x195a14['attributes']['tablePasteChainId'],_0x31e4b6=_0x3eecab['getSuggestions']()['filter'](_0x375c9a=>_0x375c9a['isInContent']&&_0x375c9a['attributes']&&_0x375c9a['attributes']['tablePasteChainId']==_0x17a3a3);_0x31e4b6['length']&&_0x195a14['getAllAdjacentSuggestions']()['length']!=_0x31e4b6['length']&&_0x31e4b6['reduce']((_0x58936b,_0x390b4d)=>(_0x58936b['next']=_0x390b4d,_0x390b4d['previous']=_0x58936b,_0x390b4d));};function _0x227af6(_0x3c46a2,_0x27c010=!0x0){const {id:_0x57fc9b,authorId:_0x363736}=_0x3eecab['_splitMarkerName'](_0x3c46a2['markerName']),_0x172011=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x57669f=_0x3eecab['activeMarkers']['includes'](_0x3c46a2['markerName']);return _0x57669f&&_0x172011['push']('ck-suggestion-marker--active'),{'classes':_0x172011,'attributes':{'data-suggestion':_0x57fc9b,'data-author-id':_0x363736},'priority':_0x57669f&&_0x27c010?0xbc2:0xbb8};}_0x3eecab['on']('suggestionLoaded',_0x7d33a9,{'priority':'high'}),_0x3eecab['on']('suggestionUnloaded',_0x7d33a9,{'priority':'high'}),_0x18c12a['model']['document']['registerPostFixer'](()=>{let _0x3dac0e=!0x1;const _0x3ee174=Array['from'](_0x18c12a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15e13e,data:_0x216b00}of _0x3ee174){const {group:_0x144542,type:_0x506629,id:_0x53a822}=_0x3eecab['_splitMarkerName'](_0x15e13e);if('suggestion'!=_0x144542||'deletion'!=_0x506629||_0x216b00['oldRange'])continue;if(!_0x3eecab['hasSuggestion'](_0x53a822))continue;const _0xc81fbf=_0x3eecab['getSuggestion'](_0x53a822)['getRanges'](),_0x39ac0f=_0x18c12a['plugins']['get']('Users')['me'];for(const _0x54dea7 of _0x3eecab['getSuggestions']()){if(!_0x54dea7['isInContent']||_0x54dea7['author']!=_0x39ac0f)continue;if('formatBlock'!=_0x54dea7['type']||'tablePasteCell'!=_0x54dea7['subType'])continue;if(_0x54dea7['getRanges']()['every'](_0x568b37=>_0xc81fbf['some'](_0x1d626c=>_0x1d626c['containsRange'](_0x568b37,!0x0)))){for(const _0x2b81ab of _0x54dea7['getAllAdjacentSuggestions']())_0x2b81ab['isInContent']&&(_0x2b81ab['discard'](),_0x3dac0e=!0x0);}}}return _0x3dac0e;}),_0x18c12a['model']['document']['registerPostFixer'](_0x3dd39f=>{const _0x39ad15=_0x18c12a['commands']['get']('redo');if(!_0x39ad15||!_0x39ad15['_createdBatches']['has'](_0x3dd39f['batch']))return!0x1;let _0x2b964c=!0x1;const _0x56ba73=_0x18c12a['plugins']['get']('Users')['me'],_0x111974=_0x18c12a['model']['document']['differ']['getChanges'](),_0x26dc19=Array['from'](_0x18c12a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3183f3,data:_0xecbab0})=>{const {group:_0x3b1418,subType:_0xeb2f1f,authorId:_0xa3e7bd}=_0x3eecab['_splitMarkerName'](_0x3183f3);return'suggestion'==_0x3b1418&&'tablePaste'==_0xeb2f1f&&_0xa3e7bd==_0x56ba73['id']&&!_0xecbab0['oldRange'];});for(const _0x442874 of _0x111974){if('insert'!=_0x442874['type']||'tableCellSuggestion'!=_0x442874['name']||0x1!=_0x442874['length'])continue;const _0x26ba44=_0x3dd39f['createRange'](_0x442874['position'],_0x442874['position']['getShiftedBy'](0x1));if(!_0x26dc19['find'](({data:_0x34d51f})=>_0x34d51f['newRange']['isEqual'](_0x26ba44))){for(const {name:_0x1fb5ac,data:_0x47fc06}of _0x26dc19)if(_0x26ba44['containsRange'](_0x47fc06['newRange'])){_0x3dd39f['updateMarker'](_0x1fb5ac,{'range':_0x26ba44}),_0x2b964c=!0x0;break;}}}return _0x2b964c;}),_0x18c12a['model']['document']['registerPostFixer'](_0x30ff76=>{let _0x5e1015=!0x1;const _0x5c2a67=_0x18c12a['plugins']['get']('Users')['me'],_0x2ac77d=_0x3eecab['getSuggestions']()['filter'](_0x302fcb=>_0x302fcb['isInContent']&&_0x302fcb['author']==_0x5c2a67),_0x58cc22=new Set(),_0x1f5128=new Set();for(const _0x24f3e4 of _0x2ac77d)if('tablePaste'==_0x24f3e4['subType'])for(const _0x49d817 of _0x24f3e4['getMarkers']()){const _0x1cfb2c=_0x49d817['getRange']()['getContainedElement']();if(_0x1cfb2c){if(_0x1cfb2c['is']('element','tableCellSuggestion')&&De(_0x1cfb2c)){_0x24f3e4['removeMarker'](_0x49d817['name']),_0x58cc22['add'](_0x1cfb2c),_0x5e1015=!0x0;const _0x38c5cb=_0x1cfb2c['nextSibling'],_0x29dfb9=_0x1cfb2c['previousSibling'],_0x5429a7=_0x38c5cb&&_0x38c5cb['is']('element','tableCellSuggestion'),_0x2acb79=_0x29dfb9&&_0x29dfb9['is']('element','tableCellSuggestion');_0x5429a7&&!_0x58cc22['has'](_0x38c5cb)&&_0x1f5128['add'](_0x38c5cb),_0x2acb79&&!_0x58cc22['has'](_0x29dfb9)&&_0x1f5128['add'](_0x29dfb9);}else _0x1cfb2c['is']('element','paragraph')&&_0x1cfb2c['isEmpty']&&(_0x24f3e4['removeMarker'](_0x49d817['name']),_0x5e1015=!0x0);}}else{if('tablePasteCell'==_0x24f3e4['subType']){if(!_0x24f3e4['attributes']||!_0x24f3e4['attributes']['tablePasteChainId'])continue;const _0x23e287=_0x24f3e4['attributes']['markerAttributes'];if(_0x23e287&&Object['keys'](_0x23e287)['length'])continue;const _0x555812=_0x24f3e4['attributes']['tablePasteChainId'];let _0x1d85ad=!0x0,_0x1a1265=!0x0;for(const _0x3af3f5 of _0x2ac77d)if(_0x3af3f5['subType']&&_0x3af3f5['subType']['startsWith']('tablePaste')){if(!_0x3af3f5['attributes']['tablePasteChainId']){_0x1a1265=!0x1;break;}if(_0x3af3f5['id']!=_0x24f3e4['id']&&_0x3af3f5['attributes']['tablePasteChainId']==_0x555812){_0x1d85ad=!0x1;break;}}_0x1a1265&&_0x1d85ad&&(_0x24f3e4['removeMarkers'](),_0x5e1015=!0x0);}}for(const _0x2af8cd of _0x58cc22)_0x30ff76['remove'](_0x2af8cd);for(const _0x374b3d of _0x1f5128)_0x30ff76['unwrap'](_0x374b3d);return _0x5e1015;}),_0x18c12a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4beb99=>_0x227af6(_0x4beb99),'converterPriority':'high'}),_0x18c12a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x59140a,_0x10306e)=>_0x10306e['options']['showSuggestionHighlights']?_0x227af6(_0x59140a,!0x1):null,'converterPriority':'high'});const _0x5540b1=_0x18c12a['editing']['view'];this['listenTo'](_0x5540b1['document'],'clipboardOutput',(_0x5941f2,_0x48522f)=>{const _0x499408=[];for(const _0x2105d7 of _0x5540b1['createRangeIn'](_0x48522f['content'])['getItems']())_0x2105d7['is']('element','suggestion-td')&&_0x499408['push'](_0x2105d7);_0x5540b1['change'](_0x4dfd84=>{for(const _0x5e3597 of _0x499408)_0x4dfd84['move'](_0x4dfd84['createRangeIn'](_0x5e3597),_0x4dfd84['createPositionBefore'](_0x5e3597)),_0x4dfd84['remove'](_0x5e3597);});});}}function De(_0x1f7882){if(_0x1f7882['isEmpty'])return!0x0;const _0x9d3d29=_0x1f7882['getChild'](0x0);return _0x9d3d29['is']('element','paragraph')&&_0x9d3d29['isEmpty'];}function He(_0x15f083,_0x3da66c={},_0x3f73ba){for(const {isAnchor:_0x522be1,cellHeight:_0xf3b66f,cellWidth:_0x1d87d2}of _0x3f73ba['createTableWalker'](_0x15f083,{'includeAllSlots':!0x0,..._0x3da66c}))if(!_0x522be1||0x1!=_0xf3b66f||0x1!=_0x1d87d2)return!0x1;return!0x0;}class Bt extends _0xcf6495{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4f797f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f797f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4f797f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4f797f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f797f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4f797f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4f797f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x25d58b,_0x2a7b9a){const _0x256033=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dbf96=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1f982d=_0x2a7b9a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x192e25=_0x5dbf96['getColumnGroupElement'](_0x1f982d);let _0x5bb8f2=_0x192e25?_0x5dbf96['getTableColumnsWidths'](_0x192e25):null,_0x12782d=_0x1f982d['getAttribute']('tableWidth')||null;const _0x4bc67d=_0x2a7b9a['tableWidth']||_0x12782d,_0x25df55=_0x2a7b9a['columnWidths']||_0x5bb8f2,_0xa2d1a9=this['editor']['plugins']['get']('Users')['me'];for(const _0x56d8c4 of _0x256033['getSuggestions']()){const _0x485883=_0x56d8c4['getContainedElement']();if('resizeTable'===_0x56d8c4['subType']&&_0x485883===_0x1f982d){_0x56d8c4['author']!==_0xa2d1a9&&_0x56d8c4['discard']();const _0x27c252=_0x56d8c4['data']['commandParams'];_0x12782d=_0x27c252[0x0]['tableWidth'],_0x5bb8f2=_0x27c252[0x0]['columnWidths'];break;}}_0x25d58b({'table':_0x1f982d,'tableWidth':_0x4bc67d,'columnWidths':_0x25df55}),_0x256033['markBlockFormat'](_0x1f982d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x12782d,'columnWidths':_0x5bb8f2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x50a058){if('formatBlock'!=_0x50a058['type']&&'formatInline'!=_0x50a058['type'])return;const {data:_0x584ea0}=_0x50a058;if(_0x584ea0&&'resizeTable'===_0x584ea0['formatGroupId']){const _0xc8fe7d='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0xc8fe7d)};}}}class xt extends _0xcf6495{['afterInit'](){const _0x3751b2=this['editor'];_0x3751b2['plugins']['has']('Template')&&_0x3751b2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0xcf6495{['afterInit'](){const _0x4d905d=this['editor'];if(!_0x4d905d['commands']['get']('insertTableOfContents'))return;_0x4d905d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4e85f7=_0x4d905d['plugins']['get']('TrackChangesEditing'),_0xb6cdc9=_0x4d905d['locale'];_0x4e85f7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x36012c=>c(_0xb6cdc9,'ELEMENT_TABLE_OF_CONTENTS',_0x36012c));}}class Rt extends _0xcf6495{['afterInit'](){const _0x507eea=this['editor'];if(!_0x507eea['plugins']['has']('Title'))return;const _0x31b7f7=_0x507eea['plugins']['get']('TrackChangesEditing');_0x31b7f7['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x507eea['locale'],'ELEMENT_TITLE')),_0x507eea['model']['document']['registerPostFixer'](_0x33cefb=>{let _0x419871=!0x1;const _0x319d4a=Array['from'](_0x507eea['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5afd04,data:_0x157400}of _0x319d4a){const {group:_0x5c1ccd}=_0x31b7f7['_splitMarkerName'](_0x5afd04);if('suggestion'!==_0x5c1ccd||!_0x157400['newRange'])continue;const _0x2ef519=_0x157400['newRange'],_0x35ea9f=_0x2ef519['end']['nodeBefore'];if(!_0x35ea9f||!_0x35ea9f['is']('element','title-content'))continue;if(!_0x2ef519['start']['isTouching'](_0x2ef519['end']))continue;const _0x5a4402=_0x507eea['model']['schema']['getNearestSelectionRange'](_0x2ef519['end'],'forward');if(_0x5a4402&&_0x5a4402['isCollapsed']){const _0x2b18c3=_0x33cefb['createRange'](_0x2ef519['start'],_0x5a4402['start']);_0x2b18c3['isEqual'](_0x2ef519)||(_0x33cefb['updateMarker'](_0x5afd04,{'range':_0x2b18c3}),_0x419871=!0x0);}_0x419871||(_0x33cefb['removeMarker'](_0x5afd04),_0x419871=!0x0);}return _0x419871;});}}class Tt extends _0xcf6495{['afterInit'](){const _0x1d927c=this['editor'],_0x5acc60=_0x1d927c['plugins']['get']('TrackChangesEditing');_0x1d927c['plugins']['has']('Uploadcare')&&(_0x5acc60['enableCommand']('uploadcare'),_0x1d927c['plugins']['has']('UploadcareImageEdit')&&(_0x5acc60['enableCommand']('uploadcareImageEdit'),_0x5acc60['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5acc60['registerBlockAttribute']('uploadcareImageId'),_0x5acc60['descriptionFactory']['registerDescriptionCallback'](_0x1b8486=>{if('attribute'!=_0x1b8486['type'])return;const {data:_0x263953}=_0x1b8486;return _0x263953&&'uploadcareImageId'==_0x263953['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0xcf6495{['afterInit'](){const _0x4eec6f=this['editor'],_0x3d398c=_0x4eec6f['plugins']['get']('TrackChangesEditing');_0x4eec6f['plugins']['has']('UndoEditing')&&(_0x3d398c['enableCommand']('undo'),_0x3d398c['enableCommand']('redo'));}}class Ut extends _0xcf6495{static get['requires'](){return[Ct];}['afterInit'](){const _0x5ed6dd=this['editor'];if(!_0x5ed6dd['plugins']['has']('TableCaptionEditing'))return;_0x5ed6dd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0xcf6495{['tableProperties'];['tableCellProperties'];constructor(_0x29007a){super(_0x29007a),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 _0x1fe7e7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5d34fe of this['tableProperties'])_0x1fe7e7['enableCommand'](_0x5d34fe,(_0xb2f9f9,_0x54cc82)=>{const _0x6de2bd=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5d34fe,[_0x6de2bd],this['tableProperties'],'tableProperties',_0xb2f9f9,_0x54cc82);});_0x1fe7e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1fe7e7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1fe7e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x191a92,_0x673b41)=>this['handleDiscardAction'](this['tableProperties'],_0x191a92,_0x673b41)),_0x1fe7e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x10627f of this['tableCellProperties'])_0x1fe7e7['enableCommand'](_0x10627f,(_0x6b6360,_0x45f96d)=>{const _0x487afa=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x10627f,_0x487afa,this['tableCellProperties'],'tableCellProperties',_0x6b6360,_0x45f96d);});_0x1fe7e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1fe7e7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1fe7e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5d6dfc,_0x31a0a5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5d6dfc,_0x31a0a5)),_0x1fe7e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1fe7e7['descriptionFactory']['registerDescriptionCallback'](_0x19d20d=>this['handleSuggestionDescription'](_0x19d20d));}['_handlePropertyChange'](_0x59fbfb,_0x407c85,_0x20464c,_0x13dfcd,_0x3edcb4,_0x39fe29){const _0x68a399=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x39fe29['batch'],()=>{for(const _0x345adc of _0x407c85){if(this['_getSuggestion'](_0x345adc,_0x13dfcd))_0x3edcb4(_0x39fe29);else{const _0x28e0c6={};for(const _0x2142ea of _0x20464c){const _0x19a595=_0x345adc['getAttribute'](_0x2142ea);void 0x0!==_0x19a595&&(_0x28e0c6[_0x2142ea]=_0x19a595);}_0x3edcb4(_0x39fe29),_0x68a399['markBlockFormat'](_0x345adc,{'commandParams':[_0x28e0c6]},[],_0x13dfcd);}}});}['handleDiscardAction'](_0x4e0d55,_0x492848,_0xaef955){const _0x4ab824=_0x492848[0x0]['start']['nodeAfter'],_0x248051=_0xaef955['commandParams'][0x0];this['editor']['model']['change'](_0xb57dc7=>{for(const _0x40e02a of _0x4e0d55)void 0x0!==_0x248051[_0x40e02a]?_0xb57dc7['setAttribute'](_0x40e02a,_0x248051[_0x40e02a],_0x4ab824):_0xb57dc7['removeAttribute'](_0x40e02a,_0x4ab824);});}['handleSuggestionDescription'](_0x3125bc){if(_0x3125bc['data'])switch(_0x3125bc['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'](_0x1dfc3b,_0x1e00d9){const _0x77bf73=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xe97d1f of _0x77bf73['getSuggestions']({'skipNotAttached':!0x0})){const _0x50c6c7=_0xe97d1f['getContainedElement']();if(_0xe97d1f['subType']===_0x1e00d9&&_0x50c6c7===_0x1dfc3b)return _0xe97d1f;}return null;}}const u='$elementName';class p extends _0xcf6495{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x30d1d1,_0x41e2ba,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,gt,Q,wt,lt,W,Se,mt,pt,kt,bt,yt,jt,St,At,It,_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(_0x5257b5){super(_0x5257b5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4bef0d,_0x55feb3,_0x349658,_0x489233)=>{this['_model']['change'](()=>{for(const _0x5c79bf of[..._0x489233,..._0x349658])this['_model']['markers']['has'](_0x5c79bf)&&_0x5257b5['editing']['reconvertMarker'](_0x5c79bf);});}),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']=_0x5257b5['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(),_0x5257b5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5257b5['config']['get']('trackChanges.trackFormatChanges'),_0x5257b5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5257b5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5257b5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4a7304=this['editor'],_0x16c8a5=(_0x1700a1,_0x2ca9f4)=>{if('attribute'!=_0x1700a1)return'ck-suggestion-marker-'+_0x1700a1;const _0x2669c0=_0x2ca9f4['split']('|')[0x0];return this['_isBlockAttribute'](_0x2669c0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4a7304['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3f7a8b=>{const {id:_0x541f03,authorId:_0x7a7d7c,type:_0xe35ac7,subType:_0x5eb910}=this['_splitMarkerName'](_0x3f7a8b['markerName']),_0x16f05d=['ck-suggestion-marker',_0x16c8a5(_0xe35ac7,_0x5eb910)];let _0x22e99a=0xbb8;return this['activeMarkers']['includes'](_0x3f7a8b['markerName'])&&(_0x16f05d['push']('ck-suggestion-marker--active'),_0x22e99a=0xbc2),'deletion'==_0xe35ac7&&(_0x22e99a+=0x5),{'classes':_0x16f05d,'attributes':{'data-suggestion':_0x541f03,'data-author-id':_0x7a7d7c},'priority':_0x22e99a};}}),_0x4a7304['conversion']['for']('dataDowncast')['add'](_0x236181=>{_0x236181['on']('addMarker:suggestion',(_0x2f1439,_0x14e60f,_0x2f8740)=>{if(!_0x2f8740['options']['showSuggestionHighlights'])return;const _0x1ae1ed=_0x14e60f['item'];if(!_0x1ae1ed)return;const _0x39bf85=_0x2f8740['mapper']['toViewElement'](_0x1ae1ed);_0x4a7304['model']['schema']['isObject'](_0x1ae1ed)&&_0x39bf85&&!_0x39bf85['getCustomProperty']('widget')&&_0x39bf85['is']('containerElement')&&_0x57c051(_0x39bf85,_0x2f8740['writer']);},{'priority':'high'});}),_0x4a7304['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x23fc57,_0x17dca0)=>{if(!_0x17dca0['options']['showSuggestionHighlights'])return null;const {id:_0x5dca84,authorId:_0x3720c5,type:_0x4db0bd,subType:_0x3b8b20}=this['_splitMarkerName'](_0x23fc57['markerName']);return{'classes':['ck-suggestion-marker',_0x16c8a5(_0x4db0bd,_0x3b8b20)],'priority':0xbb8,'attributes':{'data-suggestion':_0x5dca84,'data-author-id':_0x3720c5}};}});const _0x4a590d=({showActiveMarkers:_0xbb763c=!0x0,isAttributeSuggestion:_0x21a615=!0x1}={})=>(_0x5ab230,_0x460081,_0x153bb9)=>{if(!_0x460081['item'])return;const {id:_0xaf5c04,authorId:_0x442dd1}=this['_splitMarkerName'](_0x460081['markerName']);if(_0x21a615){const _0x3661c8=this['_suggestions']['get'](_0xaf5c04),_0x2353b1=this['_getAttributeKey'](_0x3661c8);if(!this['_isBlockAttribute'](_0x2353b1))return;}if(_0x460081['item']['is']('selection'))return void _0x153bb9['consumable']['consume'](_0x460081['item'],_0x5ab230['name']);const _0x7f1600=_0x153bb9['mapper']['toViewElement'](_0x460081['item']);if(_0x460081['item']['is']('element')&&_0x4a7304['model']['schema']['isBlock'](_0x460081['item'])&&!_0x7f1600['getCustomProperty']('addHighlight')){_0x153bb9['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x7f1600),_0x153bb9['writer']['setAttribute']('data-suggestion',_0xaf5c04,_0x7f1600),_0x153bb9['writer']['setAttribute']('data-author-id',_0x442dd1,_0x7f1600),_0x153bb9['mapper']['bindElementToMarker'](_0x7f1600,_0x460081['markerName']),_0xbb763c&&(this['activeMarkers']['includes'](_0x460081['markerName'])?_0x153bb9['writer']['addClass']('ck-suggestion-marker--active',_0x7f1600):_0x153bb9['writer']['removeClass']('ck-suggestion-marker--active',_0x7f1600));for(const _0x4f7e72 of _0x4a7304['model']['createRangeIn'](_0x460081['item'])['getItems']())_0x153bb9['consumable']['consume'](_0x4f7e72,_0x5ab230['name']);_0x153bb9['consumable']['consume'](_0x460081['item'],_0x5ab230['name']);}};_0x4a7304['conversion']['for']('dataDowncast')['add'](_0x25b8fc=>{_0x25b8fc['on']('addMarker:suggestion:formatBlock',(_0x1099de,_0x1a09d0,_0x62d107)=>{_0x62d107['options']['showSuggestionHighlights']&&_0x4a590d({'showActiveMarkers':!0x1})(_0x1099de,_0x1a09d0,_0x62d107);},{'priority':'highest'});}),_0x4a7304['conversion']['for']('dataDowncast')['add'](_0x5f1393=>{_0x5f1393['on']('addMarker:suggestion:attribute',(_0x26ed0f,_0x51a06b,_0x2d3ac8)=>{_0x2d3ac8['options']['showSuggestionHighlights']&&_0x4a590d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x26ed0f,_0x51a06b,_0x2d3ac8);},{'priority':'highest'});}),_0x4a7304['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xeb3bc8,_0x3547ba)=>{if(_0x3547ba['options']['showSuggestionHighlights']){const {id:_0x32c25e,authorId:_0x4fb6d9}=this['_splitMarkerName'](_0xeb3bc8);return _0xeb3bc8['includes'](':split')||_0xeb3bc8['includes'](':merge')?{'group':'suggestion','name':_0xeb3bc8['substr'](0xb),'attributes':{'data-suggestion':_0x32c25e,'data-author-id':_0x4fb6d9}}:null;}return{'group':'suggestion','name':_0xeb3bc8['substr'](0xb)};}}),_0x4a7304['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x358071,{writer:_0x54ce28})=>{let _0x5ac017='suggestion:'+_0x358071['getAttribute']('suggestion-type')+':'+_0x358071['getAttribute']('id');return _0x358071['getAttribute']('marker-count')&&(_0x5ac017+=':'+_0x358071['getAttribute']('marker-count')),_0x54ce28['createElement']('$marker',{'data-name':_0x5ac017});}}),_0x4a7304['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4a7304['conversion']['for']('editingDowncast')['add'](_0x7d8f4c=>{_0x7d8f4c['on']('addMarker:suggestion:formatBlock',_0x4a590d(),{'priority':'high'});}),_0x4a7304['conversion']['for']('editingDowncast')['add'](_0xebd42f=>{_0xebd42f['on']('addMarker:suggestion:attribute',_0x4a590d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4a7304['conversion']['for']('editingDowncast')['add'](_0x284c19=>{_0x284c19['on']('removeMarker:suggestion:formatBlock',(_0x209d80,_0x2aa622,_0xff9ca9)=>{const _0x3c6413=_0xff9ca9['mapper']['markerNameToElements'](_0x2aa622['markerName']);if(_0x3c6413){for(const _0x40b33e of _0x3c6413)_0x40b33e['getCustomProperty']('addHighlight')||(_0xff9ca9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x40b33e),_0xff9ca9['writer']['removeAttribute']('data-suggestion',_0x40b33e),_0xff9ca9['writer']['removeAttribute']('data-author-id',_0x40b33e),_0xff9ca9['mapper']['unbindElementFromMarkerName'](_0x40b33e,_0x2aa622['markerName']));}},{'priority':'high'});}),_0x4a7304['conversion']['for']('editingDowncast')['add'](_0x218fa8=>{_0x218fa8['on']('removeMarker:suggestion:attribute',(_0x407699,_0x38dc75,_0x257516)=>{const _0x2998cf=_0x257516['mapper']['markerNameToElements'](_0x38dc75['markerName']);if(!_0x2998cf)return;const {id:_0x18086d}=this['_splitMarkerName'](_0x38dc75['markerName']),_0x21ff56=this['_suggestions']['get'](_0x18086d),_0x52805f=this['_getAttributeKey'](_0x21ff56);if(this['_isBlockAttribute'](_0x52805f)){for(const _0x6acc5a of _0x2998cf)_0x6acc5a['getCustomProperty']('addHighlight')||(_0x257516['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x6acc5a),_0x257516['writer']['removeAttribute']('data-suggestion',_0x6acc5a),_0x257516['writer']['removeAttribute']('data-author-id',_0x6acc5a),_0x257516['mapper']['unbindElementFromMarkerName'](_0x6acc5a,_0x38dc75['markerName']));}},{'priority':'high'});}),_0x4a7304['model']['document']['registerPostFixer'](_0x22b4c9=>{let _0x3da941=!0x1;const _0x5d6fe4=Array['from'](_0x4a7304['model']['document']['differ']['getChangedMarkers']()),_0x24a2cb=new Set();for(const {name:_0x334fab,data:_0x1793a1}of _0x5d6fe4){const {group:_0x3bf4c8,type:_0x4d6faa,subType:_0x5f5c0e,id:_0x5be593}=this['_splitMarkerName'](_0x334fab);if('suggestion'!==_0x3bf4c8)continue;const _0x181c2c=this['_suggestions']['get'](_0x5be593);if(null!=_0x1793a1['newRange']){'formatInline'==_0x4d6faa&&(_0x3da941=_0x3da941||Jt(_0x1793a1['newRange'],_0x334fab,_0x22b4c9,_0x4a7304['model']['schema']));const _0x3f7e1b='attribute'==_0x4d6faa&&this['_isBlockAttribute'](_0x5f5c0e['split']('|')[0x0]);if(_0x1793a1['newRange']['isCollapsed']||'$graveyard'==_0x1793a1['newRange']['root']['rootName']||'formatBlock'==_0x4d6faa&&!Ht(_0x1793a1['newRange'])||_0x3f7e1b&&!Ht(_0x1793a1['newRange'])||'deletion'==_0x4d6faa&&!(!Lt(_0x16e61c=_0x1793a1['newRange'])&&!function(_0x54bfb8){return _0x54bfb8['start']['parent']==_0x54bfb8['end']['nodeBefore']&&_0x54bfb8['start']['isAtEnd'];}(_0x16e61c)))_0x22b4c9['removeMarker'](_0x334fab),_0x3da941=!0x0;else{if(!_0x181c2c||!_0x181c2c['isInContent'])continue;if(_0x1793a1['newRange']&&_0x1793a1['oldRange']&&_0x1793a1['newRange']['isEqual'](_0x1793a1['oldRange']))continue;_0x24a2cb['add'](_0x181c2c);}}}var _0x16e61c;return _0x24a2cb['size']>0x0&&(_0x3da941=!!this['_joinWithAdjacentSuggestions'](_0x24a2cb)||_0x3da941),_0x3da941;}),_0x4a7304['model']['document']['registerPostFixer'](_0x8ed0a9=>{let _0x35027b=!0x1;for(const _0x3e4c34 of _0x4a7304['model']['document']['differ']['getChanges']())if('insert'==_0x3e4c34['type'])for(const _0x876b79 of this['_suggestions']['values']()){if(_0x876b79['isMultiRange']||!_0x876b79['isInContent'])continue;const _0x4c2c97='formatBlock'==_0x876b79['type'],_0x587022=this['_getAttributeKey'](_0x876b79),_0x2f5da2=_0x587022&&this['_isBlockAttribute'](_0x587022);if(!_0x4c2c97&&!_0x2f5da2)continue;const _0x34c1ea=_0x876b79['getFirstRange']();if(_0x34c1ea['start']['parent']!=_0x34c1ea['end']['parent']&&!_0x34c1ea['end']['isAtEnd']){const _0x21d5a8=_0x4a7304['model']['createPositionAt'](_0x34c1ea['start']['nodeAfter'],'end'),_0x1689ad=_0x4a7304['model']['createRange'](_0x34c1ea['start'],_0x21d5a8);_0x8ed0a9['updateMarker'](_0x876b79['getFirstMarker'](),{'range':_0x1689ad}),_0x35027b=!0x0;}}return _0x35027b;}),_0x4a7304['model']['document']['registerPostFixer'](_0x3442e6=>this['_processAttributeChanges'](_0x3442e6)),_0x4a7304['model']['document']['registerPostFixer'](_0x32b1a6=>!_0x32b1a6['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x32b1a6)),_0x4a7304['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4a7304['model']['document']['on']('change:data',(_0x49fe92,_0x2aa1dc)=>{if(!_0x2aa1dc['isLocal']||_0x2aa1dc['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x6a8d14=_0x4a7304['model']['document']['differ']['getChanges']();if(0x0==_0x6a8d14['length'])return;const _0x464a75=[],_0x46decd=_0x6a8d14['filter'](_0x4e1518=>'attribute'==_0x4e1518['type']),_0x25437f=_0x6a8d14['filter'](_0x14e9d4=>'insert'==_0x14e9d4['type']&&'$text'!=_0x14e9d4['name']);for(const _0xc1afd1 of _0x46decd)this['_isRegisteredAttribute'](_0xc1afd1['attributeKey'])&&_0x464a75['push']({'key':_0xc1afd1['attributeKey'],'newValue':_0xc1afd1['attributeNewValue'],'oldValue':_0xc1afd1['attributeOldValue'],'range':qt(_0xc1afd1['range'],_0x4a7304['model'])});for(const _0x105f90 of _0x25437f){if('rename'!=_0x105f90['action']&&'refresh'!=_0x105f90['action'])continue;const _0x1396ff=zt(_0x105f90['position']['nodeAfter'],_0x4a7304['model']),_0x19d017=_0x105f90['before'];'rename'==_0x105f90['action']&&_0x464a75['push']({'key':u,'newValue':_0x105f90['name'],'oldValue':_0x19d017['name'],'range':_0x1396ff});for(const [_0xf2d313,_0x19a63d]of _0x19d017['attributes']){if(!this['_isRegisteredAttribute'](_0xf2d313))continue;const _0x4c2259=_0x105f90['attributes']['get'](_0xf2d313);_0x19a63d!==_0x4c2259&&_0x464a75['push']({'key':_0xf2d313,'newValue':_0x4c2259,'oldValue':_0x19a63d,'range':_0x1396ff});}for(const [_0x17744d,_0x51b2d1]of _0x105f90['attributes'])this['_isRegisteredAttribute'](_0x17744d)&&(_0x19d017['attributes']['has'](_0x17744d)||_0x464a75['push']({'key':_0x17744d,'newValue':_0x51b2d1,'oldValue':null,'range':_0x1396ff}));}0x0!=_0x464a75['length']&&_0x4a7304['model']['enqueueChange'](_0x2aa1dc,_0x2adcc9=>{const _0x2df3c2=_0x2db65b();for(const {range:_0x5441af,key:_0x43e126,oldValue:_0x949410,newValue:_0x4cf503}of _0x464a75)this['markAttributeChange'](_0x5441af,_0x43e126,_0x949410,_0x4cf503,{'groupId':_0x2df3c2});this['_reduceExistingSuggestions'](_0x2adcc9,_0x464a75);});},{'priority':'lowest'}),_0x4a7304['model']['markers']['on']('update:suggestion',(_0x5b8837,_0x238dd8,_0xebcc78)=>{if(null==_0xebcc78){const {id:_0x19493c}=this['_splitMarkerName'](_0x238dd8['name']),_0x8fc10f=this['_suggestions']['get'](_0x19493c);_0x8fc10f&&_0x8fc10f['addMarkerName'](_0x238dd8['name']);}}),_0x4a7304['model']['document']['on']('change:data',()=>{const _0x6e583a=Array['from'](_0x4a7304['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1cbbb4=>'suggestion'===this['_splitMarkerName'](_0x1cbbb4['name'])['group']);if(0x0===_0x6e583a['length'])return;_0x6e583a['sort']((_0x5bccf,_0x3f7e6f)=>{const _0x217b31=_0x5bccf['data']['oldRange'],_0x4e8b98=_0x3f7e6f['data']['oldRange'];return null===_0x217b31&&null===_0x4e8b98?0x0:null===_0x217b31&&null!==_0x4e8b98?-0x1:null!==_0x217b31&&null===_0x4e8b98?0x1:_0x217b31['start']['isBefore'](_0x4e8b98['start'])?-0x1:0x1;});const _0x46f35b=new Set(),_0x4ee012=new Set();for(const {name:_0x32d375,data:_0x4c6ac3}of _0x6e583a){const {id:_0x3512b4}=this['_splitMarkerName'](_0x32d375);if(null===_0x4c6ac3['oldRange']){const _0x44df1d=this['_handleNewSuggestionMarker'](_0x32d375);_0x4ee012['add'](_0x44df1d);}else{const _0x52b202=this['_suggestions']['get'](_0x3512b4);null!==_0x4c6ac3['newRange']||_0x52b202['isInContent']?(_0x46f35b['add'](_0x52b202['head']),_0x4ee012['add'](_0x52b202)):this['_removeSuggestion'](_0x52b202);}}_0x4ee012['size']>0x0&&this['_refreshSuggestionsChain'](_0x4ee012);for(const _0x7ed6ff of _0x46f35b)this['fire']('suggestionChanged',_0x7ed6ff);}),_0x4a7304['model']['on']('applyOperation',(_0xdeae26,_0x5b0f1c)=>{const _0xaa78f=_0x5b0f1c[0x0];if(!this['_suggestions']['size'])return;if(!_0xaa78f['isDocumentOperation'])return;if(_0xaa78f['batch']['isUndo']||!_0xaa78f['batch']['isLocal'])return;let _0x14f2e3,_0x3dc9f1;switch(_0xaa78f['type']){case'insert':_0x14f2e3=_0x4a7304['model']['createPositionAt'](_0xaa78f['position']),_0x3dc9f1=_0x14f2e3['getShiftedBy'](_0xaa78f['howMany']);break;case'split':_0x14f2e3=_0x4a7304['model']['createPositionAt'](_0xaa78f['splitPosition']),_0x3dc9f1=_0x4a7304['model']['createPositionAt'](_0xaa78f['moveTargetPosition']);break;case'move':_0x14f2e3=_0x4a7304['model']['createPositionAt'](_0xaa78f['targetPosition']),_0x3dc9f1=_0x14f2e3['getShiftedBy'](_0xaa78f['howMany']);break;default:return;}const _0x596c8d=_0x4a7304['model']['createRange'](_0x14f2e3,_0x3dc9f1);_0x4a7304['model']['change'](()=>{for(const {suggestion:_0x213088,meta:_0x3a1ab7}of this['_findSuggestions'](_0x596c8d)){if(_0x213088['isMultiRange'])continue;if('formatInline'==_0x213088['type'])continue;const _0x14730a=this['_getAttributeKey'](_0x213088);if(_0x14730a&&this['_isBlockAttribute'](_0x14730a)&&'split'!=_0xaa78f['type'])continue;const _0x8a760d=_0x213088['data']&&_0x213088['data']['multipleBlocks'];('formatBlock'!=_0x213088['type']||'split'==_0xaa78f['type']&&!_0x8a760d)&&(_0x3a1ab7['containsRangeInObject']||'insertion'==_0x213088['type']&&_0x3a1ab7['isOwn']||_0x213088['getFirstRange']()['containsRange'](_0x596c8d)&&this['_breakSuggestionMarker'](_0x213088,_0x14f2e3,_0x3dc9f1));}});},{'priority':'lowest'}),_0x4a7304['model']['on']('deleteContent',(_0x3e6bd6,_0x22ff17)=>{const _0x47285e=_0x22ff17[0x0],_0x2f2175=_0x22ff17[0x1];if(_0x2f2175&&_0x2f2175['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x47285e['isCollapsed'])return;const _0x32a053=_0x4a7304['model']['schema'],{start:_0x30d66f,end:_0x163444}=_0x47285e['getFirstRange'](),_0x5d2091=_0x30d66f['nodeAfter']&&_0x32a053['isLimit'](_0x30d66f['nodeAfter'])?null:_0x32a053['getNearestSelectionRange'](_0x30d66f,'forward'),_0x2508f3=_0x163444['nodeBefore']&&_0x32a053['isLimit'](_0x163444['nodeBefore'])?null:_0x32a053['getNearestSelectionRange'](_0x163444,'backward'),_0x29f4d5=_0x4a7304['model']['createRange'](_0x5d2091?_0x5d2091['start']:_0x30d66f,_0x2508f3?_0x2508f3['end']:_0x163444);_0x4a7304['model']['change'](_0x57cd6b=>{this['markDeletion'](_0x29f4d5);const _0x42d78a=_0x4a7304['model']['schema']['getNearestSelectionRange'](_0x29f4d5['start']);_0x47285e['is']('documentSelection')?_0x57cd6b['setSelection'](_0x42d78a):_0x47285e['setTo'](_0x42d78a);}),_0x3e6bd6['stop']();},{'priority':_0x3c811d['normal']+0xa}),_0x4a7304['model']['on']('insertContent',(_0x9659ab,_0x172b2a)=>{const _0x19d3a4=_0x172b2a[_0x172b2a['length']-0x1];_0x19d3a4&&_0x19d3a4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4a7304['model']['change'](()=>{let _0x387e5b=_0x4a7304['model']['insertContent'](_0x172b2a[0x0],_0x172b2a[0x1],_0x172b2a[0x2],{'forceDefaultExecution':!0x0});if(!_0x387e5b)return;_0x9659ab['return']=_0x387e5b['clone']();const _0x5030cc=_0x387e5b['end']['nodeBefore'],_0x149156=_0x4a7304['model']['schema'];_0x5030cc&&_0x149156['isBlock'](_0x5030cc)&&!_0x149156['isObject'](_0x5030cc)&&(_0x387e5b=_0x4a7304['model']['createRange'](_0x387e5b['start'],_0x4a7304['model']['createPositionAt'](_0x5030cc,'end'))),this['markInsertion'](_0x387e5b);}),_0x9659ab['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x545ea0=new x(_0x4a7304,this['_suggestions']);_0x4a7304['commands']['add']('acceptSuggestion',_0x545ea0),this['enableCommand']('acceptSuggestion');const _0x2f9d5d=new O(_0x4a7304,this['_suggestions']);_0x4a7304['commands']['add']('discardSuggestion',_0x2f9d5d),this['enableCommand']('discardSuggestion'),_0x4a7304['commands']['add']('acceptAllSuggestions',new R(_0x4a7304,_0x545ea0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4a7304['commands']['add']('discardAllSuggestions',new R(_0x4a7304,_0x2f9d5d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4a7304['commands']['add']('acceptSelectedSuggestions',new E(_0x4a7304,_0x545ea0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4a7304['commands']['add']('discardSelectedSuggestions',new E(_0x4a7304,_0x2f9d5d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3bcbac=_0x4a7304['plugins']['get']('CommentsRepository');this['listenTo'](_0x3bcbac,'addComment',(_0x30e9e0,{threadId:_0x287ef1})=>{const _0x5ea436=this['_suggestions']['get'](_0x287ef1);_0x5ea436&&_0x5ea436['commentThread']&&0x1===_0x5ea436['commentThread']['length']&&this['_updateSuggestionData'](_0x287ef1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3bcbac,'removeComment',(_0x3e86cf,{threadId:_0x4de96f})=>{const _0x34a149=this['_suggestions']['get'](_0x4de96f);_0x34a149&&_0x34a149['commentThread']&&!_0x34a149['commentThread']['length']&&this['_updateSuggestionData'](_0x4de96f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x116deb){const _0x7aea04=_0x5f094d([0x5a,0x78,0x6b,0x68,0x58,0x72,0x63,0x49,0x56,0x34,0x4f,0x51,0x48,0x52,0x41,0x36,0x6f,0x62,0x6a,0x47,0x4d,0x38,0x7a,0x73,0x67,0x6c,0x59,0x35,0x42,0x61,0x70,0x43,0x54,0x46,0x44,0x50,0x39,0x71,0x77,0x69,0x30,0x57,0x64,0x4b,0x76,0x6d,0x37,0x6e,0x75,0x45,0x4a,0x33,0x32,0x53,0x31,0x4e,0x79,0x4c,0x74,0x66,0x65,0x55]),_0xc3a3ad=0x164f87d4,_0x430d79=0x1648e094^_0xc3a3ad,_0x281e4b=window[_0x5f094d([0x44,0x61,0x74,0x65])][_0x5f094d([0x6e,0x6f,0x77])](),_0x1f60ec=_0x116deb[_0x5f094d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48bdca=new window[(_0x5f094d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x475f31=>{_0x1f60ec[_0x5f094d([0x6f,0x6e,0x63,0x65])](_0x5f094d([0x72,0x65,0x61,0x64,0x79]),_0x475f31);}),_0x357567={[_0x5f094d([0x6b,0x74,0x79])]:_0x5f094d([0x45,0x43]),[_0x5f094d([0x75,0x73,0x65])]:_0x5f094d([0x73,0x69,0x67]),[_0x5f094d([0x63,0x72,0x76])]:_0x5f094d([0x50,0x2d,0x32,0x35,0x36]),[_0x5f094d([0x78])]:_0x5f094d([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]),[_0x5f094d([0x79])]:_0x5f094d([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]),[_0x5f094d([0x61,0x6c,0x67])]:_0x5f094d([0x45,0x53,0x32,0x35,0x36])},_0x4effb8=_0x1f60ec[_0x5f094d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f094d([0x67,0x65,0x74])](_0x5f094d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4eac42(){let _0x224f95,_0x3ff248=null,_0x41b76f=null;try{if(_0x4effb8==_0x5f094d([0x47,0x50,0x4c]))return _0x5f094d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x224f95=_0x569132(),!_0x224f95)return _0x5f094d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x224f95[_0x5f094d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x41b76f=_0x2fdca4(_0x224f95[_0x5f094d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x224f95[_0x5f094d([0x6a,0x74,0x69])])),await _0x5244e8()?_0x5135c8()?_0xe26b5()?_0x5f094d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34e377()?(_0x224f95[_0x5f094d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f094d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3ff248=_0x43e1cc(_0x5f094d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x224f95[_0x5f094d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f094d([0x74,0x72,0x69,0x61,0x6c])&&(_0x3ff248=_0x43e1cc(_0x5f094d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x571c5b()):_0x5f094d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f094d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f094d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x19f09e){return _0x5f094d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe26b5(){const _0x33a9b8=[_0x5f094d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f094d([0x74,0x72,0x69,0x61,0x6c])][_0x5f094d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x224f95[_0x5f094d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x281e4b/0x3e8:0xe10*_0x430d79;return _0x224f95[_0x5f094d([0x65,0x78,0x70])]<_0x33a9b8;}function _0x5135c8(){const _0x5bd9a4=_0x224f95[_0x5f094d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5bd9a4)return!0x1;if(_0x5bd9a4[_0x5f094d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f094d([0x2a])))return!0x0;if(_0x5bd9a4[_0x5f094d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f094d([0x54,0x43])))return!0x0;if(_0x5bd9a4[_0x5f094d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f094d([0x52,0x54,0x43]))){if(_0x43c2ed())return!0x0;if(_0x5b4528()||_0x49efa3())return!0x0;}return!0x1;}function _0x34e377(){const _0xfb3fb4=_0x224f95[_0x5f094d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xfb3fb4||0x0==_0xfb3fb4[_0x5f094d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2811a1}=new URL(window[_0x5f094d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xfb3fb4[_0x5f094d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2811a1))return!0x0;const _0x544504=_0x2811a1[_0x5f094d([0x73,0x70,0x6c,0x69,0x74])](_0x5f094d([0x2e]));return _0xfb3fb4[_0x5f094d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ccd15=>_0x2ccd15[_0x5f094d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f094d([0x2a])))[_0x5f094d([0x6d,0x61,0x70])](_0x495144=>_0x495144[_0x5f094d([0x73,0x70,0x6c,0x69,0x74])](_0x5f094d([0x2e])))[_0x5f094d([0x73,0x6f,0x6d,0x65])](_0x33a516=>_0x544504[_0x5f094d([0x65,0x76,0x65,0x72,0x79])]((_0x5a2bdf,_0x36b7b1)=>_0x33a516[_0x36b7b1]===_0x5a2bdf||_0x33a516[_0x36b7b1]===_0x5f094d([0x2a])));}function _0x571c5b(){return _0x3ff248&&_0x41b76f?new window[(_0x5f094d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f9ce6,_0x10fb41)=>{_0x3ff248[_0x5f094d([0x74,0x68,0x65,0x6e])](_0x4f9ce6,_0x10fb41),_0x41b76f[_0x5f094d([0x74,0x68,0x65,0x6e])](_0x2c8a10=>{_0x2c8a10!=_0x5f094d([0x56,0x61,0x6c,0x69,0x64])&&_0x4f9ce6(_0x2c8a10);},_0x10fb41);}):_0x3ff248||_0x41b76f||_0x5f094d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2fdca4(_0x559cf2,_0xff0465){return new window[(_0x5f094d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c6aa0=>{if(_0x1e19a0())return _0x4c6aa0(_0x5f094d([0x56,0x61,0x6c,0x69,0x64]));_0x5504fa(),_0x1f60ec[_0x5f094d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f094d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x59b27b=!0x1;const _0x145ab8=_0x2db65b();function _0x17726e(_0x360d78){return!!_0x360d78&&(typeof _0x360d78===_0x5f094d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x360d78===_0x5f094d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x360d78[_0x5f094d([0x74,0x68,0x65,0x6e])]===_0x5f094d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x360d78[_0x5f094d([0x63,0x61,0x74,0x63,0x68])]===_0x5f094d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d7edb(_0x5b0f94){_0x92ba34(_0x5b0f94)[_0x5f094d([0x74,0x68,0x65,0x6e])](_0xabe8da=>{if(!_0xabe8da||_0xabe8da[_0x5f094d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f094d([0x6f,0x6b]))return _0x5f094d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x304207(_0x1d61c0(_0x145ab8+_0xff0465))!=_0xabe8da[_0x5f094d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f094d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f094d([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f094d([0x74,0x68,0x65,0x6e])](_0x2e7841=>(_0x2cef36(),_0x2e7841),()=>{const _0x4e75ab=_0xd78d92();return null==_0x4e75ab?(_0x2cef36(),_0x5f094d([0x56,0x61,0x6c,0x69,0x64])):_0x5f094d(_0x281e4b-_0x4e75ab>(0x324303d4^_0xc3a3ad)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f094d([0x74,0x68,0x65,0x6e])](_0x4c6aa0)[_0x5f094d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c6aa0(_0x5f094d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a3235=0x16796954^_0xc3a3ad;function _0x2cef36(){const _0x36d19d=_0x5f094d([0x6c,0x6c,0x63,0x74,0x2d])+_0x304207(_0x1d61c0(_0x559cf2)),_0x1f0949=_0x5255b8(_0x304207(window[_0x5f094d([0x4d,0x61,0x74,0x68])][_0x5f094d([0x63,0x65,0x69,0x6c])](_0x281e4b/_0x1a3235)));window[_0x5f094d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f094d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36d19d,_0x1f0949);}function _0xd78d92(){const _0x8769e2=_0x5f094d([0x6c,0x6c,0x63,0x74,0x2d])+_0x304207(_0x1d61c0(_0x559cf2)),_0xa42cad=window[_0x5f094d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f094d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8769e2);return _0xa42cad?window[_0x5f094d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5255b8(_0xa42cad),0x10)*_0x1a3235:null;}function _0x92ba34(_0x268bf0){return new window[(_0x5f094d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x544914,_0x5b04ce)=>{_0x268bf0[_0x5f094d([0x74,0x68,0x65,0x6e])](_0x544914,_0x5b04ce),window[_0x5f094d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b04ce,0x164e5314^_0xc3a3ad);});}}_0x1f60ec[_0x5f094d([0x6f,0x6e])](_0x5f094d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x344ed0,_0x33d144)=>{if(_0x33d144[0x0]!=_0x559cf2)return _0x4c6aa0(_0x5f094d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x33d144[0x1]={..._0x33d144[0x1],[_0x5f094d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x145ab8};},{[_0x5f094d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f094d([0x68,0x69,0x67,0x68])}),_0x1f60ec[_0x5f094d([0x6f,0x6e])](_0x5f094d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x349047=>{_0x17726e(_0x349047[_0x5f094d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x59b27b=!0x0,_0x2d7edb(_0x349047[_0x5f094d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f094d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f094d([0x6c,0x6f,0x77])}),_0x48bdca[_0x5f094d([0x74,0x68,0x65,0x6e])](()=>{_0x59b27b||_0x4c6aa0(_0x5f094d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e19a0(){return _0x1f60ec[_0x5f094d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f094d([0x76,0x69,0x65,0x77])][_0x5f094d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f094d([0x61,0x75,0x74,0x6f]);}function _0x5504fa(){_0x1f60ec[_0x5f094d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f094d([0x76,0x69,0x65,0x77])][_0x5f094d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f094d([0x61,0x75,0x74,0x6f]);}}function _0x43e1cc(_0x846df6){const _0x3bd823=[new window[(_0x5f094d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27842d=>setTimeout(_0x27842d,0x1646b918^_0xc3a3ad)),_0x48bdca[_0x5f094d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f094d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18a020=>{let _0x35f9e0=0x0;_0x1f60ec[_0x5f094d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f094d([0x6f,0x6e])](_0x5f094d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x324fe2,_0x404a52)=>{_0x404a52[0x0][_0x5f094d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x35f9e0++,_0x35f9e0==(0x164f862c^_0xc3a3ad)&&(_0x18a020(),_0x324fe2[_0x5f094d([0x6f,0x66,0x66])]());});}))];return window[_0x5f094d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f094d([0x72,0x61,0x63,0x65])](_0x3bd823)[_0x5f094d([0x74,0x68,0x65,0x6e])](()=>_0x846df6);}async function _0x255ead(){await _0x48bdca,_0x1f60ec[_0x5f094d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f094d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ea6f4,_0x1f60ec[_0x5f094d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f094d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ea6f4,_0x1f60ec[_0x5f094d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f094d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x43c2ed(){return _0x565588(_0x5f094d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x366957(_0x5f094d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5f094d([0x73,0x74,0x61,0x74,0x65])]==_0x5f094d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5b4528(){return _0x565588(_0x5f094d([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 _0x49efa3(){return _0x565588(_0x5f094d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4afeac(_0x18b271){const _0x3a5e26=_0x3f0151();_0x1f60ec[_0x3a5e26]=_0x5f094d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x18b271,_0x18b271!=_0x5f094d([0x56,0x61,0x6c,0x69,0x64])&&_0x255ead();}function _0x3f0151(){const _0x518d36=window[_0x5f094d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f094d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f094d([0x6e,0x6f,0x77])]())[_0x5f094d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f094d([0x2e]),'');let _0x26d290=_0x5f094d([0x5a]);for(let _0x43c049=0x0;_0x43c049<_0x518d36[_0x5f094d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43c049+=0x2){let _0x473e7d=window[_0x5f094d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x518d36[_0x5f094d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43c049,_0x43c049+0x2));_0x473e7d>=_0x7aea04[_0x5f094d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x473e7d-=_0x7aea04[_0x5f094d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26d290+=_0x7aea04[_0x473e7d];}return _0x26d290;}function _0x569132(){const _0x42f734=_0x4effb8[_0x5f094d([0x73,0x70,0x6c,0x69,0x74])](_0x5f094d([0x2e]));if(0x3!=_0x42f734[_0x5f094d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1892af(_0x42f734[0x1]);function _0x1892af(_0x43ccc5){const _0x4b265c=_0x3f08bc(_0x43ccc5);return _0x4b265c&&_0x392b19()?_0x4b265c:null;function _0x392b19(){const _0x5c6a28=_0x4b265c[_0x5f094d([0x6a,0x74,0x69])],_0x2f6327=window[_0x5f094d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c6a28[_0x5f094d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c6a28[_0x5f094d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x164a9b={..._0x4b265c,[_0x5f094d([0x6a,0x74,0x69])]:_0x5c6a28[_0x5f094d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5c6a28[_0x5f094d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x164a9b[_0x5f094d([0x76,0x63])],_0x1d61c0(_0x164a9b)==_0x2f6327;}}}async function _0x5244e8(){let _0x48df5b=!0x0;try{const _0x5011cf=_0x4effb8[_0x5f094d([0x73,0x70,0x6c,0x69,0x74])](_0x5f094d([0x2e])),[_0x2d05e3,_0x1e3bee,_0x2971ed]=_0x5011cf;return _0x130a82(_0x2d05e3),await _0x5f0fd8(_0x2d05e3,_0x1e3bee,_0x2971ed),_0x48df5b;}catch(_0x55a484){return!0x1;}function _0x130a82(_0x3103c4){const _0x4fd513=_0x3f08bc(_0x3103c4);_0x4fd513&&_0x4fd513[_0x5f094d([0x61,0x6c,0x67])]==_0x5f094d([0x45,0x53,0x32,0x35,0x36])||(_0x48df5b=!0x1);}async function _0x5f0fd8(_0x5ab409,_0x52e973,_0x4b344c){const _0x83694f=window[_0x5f094d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f094d([0x66,0x72,0x6f,0x6d])](_0x2add5a(_0x4b344c),_0x48c322=>_0x48c322[_0x5f094d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3c665d=new window[(_0x5f094d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f094d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5ab409+_0x5f094d([0x2e])+_0x52e973),_0x28901b=window[_0x5f094d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f094d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x28901b)return;const _0x451bd4=await _0x28901b[_0x5f094d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f094d([0x6a,0x77,0x6b]),_0x357567,{[_0x5f094d([0x6e,0x61,0x6d,0x65])]:_0x5f094d([0x45,0x43,0x44,0x53,0x41]),[_0x5f094d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f094d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f094d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x28901b[_0x5f094d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f094d([0x6e,0x61,0x6d,0x65])]:_0x5f094d([0x45,0x43,0x44,0x53,0x41]),[_0x5f094d([0x68,0x61,0x73,0x68])]:{[_0x5f094d([0x6e,0x61,0x6d,0x65])]:_0x5f094d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x451bd4,_0x83694f,_0x3c665d)||(_0x48df5b=!0x1);}}function _0x3f08bc(_0xeeee14){return _0xeeee14[_0x5f094d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f094d([0x65,0x79]))?JSON[_0x5f094d([0x70,0x61,0x72,0x73,0x65])](_0x2add5a(_0xeeee14)):null;}function _0x2add5a(_0x5ada14){return window[_0x5f094d([0x61,0x74,0x6f,0x62])](_0x5ada14[_0x5f094d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f094d([0x2b]))[_0x5f094d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f094d([0x2f])));}function _0x1d61c0(_0x134322){let _0x3bb5e3=0x1505;function _0x4233e2(_0x5e24f5){for(let _0x3319d7=0x0;_0x3319d7<_0x5e24f5[_0x5f094d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3319d7++){const _0xeb6713=_0x5e24f5[_0x5f094d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3319d7);_0x3bb5e3=(_0x3bb5e3<<0x5)+_0x3bb5e3+_0xeb6713,_0x3bb5e3&=_0x3bb5e3;}}function _0x36e191(_0x4cb4f6){Array[_0x5f094d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4cb4f6)?_0x4cb4f6[_0x5f094d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36e191):_0x4cb4f6&&typeof _0x4cb4f6==_0x5f094d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f094d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4cb4f6)[_0x5f094d([0x73,0x6f,0x72,0x74])]()[_0x5f094d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x311353,_0x509252])=>{_0x4233e2(_0x311353),_0x36e191(_0x509252);}):_0x4233e2(window[_0x5f094d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4cb4f6));}return _0x36e191(_0x134322),_0x3bb5e3>>>0x0;}function _0x304207(_0x330abc){return _0x330abc[_0x5f094d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f094d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f094d([0x30]));}function _0x5255b8(_0x5dc266){return _0x5dc266[_0x5f094d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f094d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f094d([0x6a,0x6f,0x69,0x6e])]('');}function _0x565588(_0xbc3211){return _0x1f60ec[_0x5f094d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f094d([0x68,0x61,0x73])](_0xbc3211);}function _0x366957(_0x32ba41){return _0x1f60ec[_0x5f094d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f094d([0x67,0x65,0x74])](_0x32ba41);}function _0x3ea6f4(){}function _0x5f094d(_0xc28d66){return _0xc28d66['map'](_0x509542=>String['fromCharCode'](_0x509542))['join']('');}_0x4afeac(await _0x4eac42());}(this);}set['adapter'](_0x664f6b){if(this['_adapter'])throw new _0x561ad9('track-changes-adapter-already-set',this);this['_adapter']=_0x664f6b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4f7246=!0x1,toJSON:_0x2dafc4=!0x1}={}){const _0x253302=[];for(const _0x5daff6 of this['_suggestions']['values']())_0x4f7246&&!_0x5daff6['isInContent']||_0x253302['push'](_0x5daff6);return _0x2dafc4?_0x253302['map'](_0x2fe023=>_0x2fe023['toJSON']()):_0x253302;}['getSuggestion'](_0x2822dd){const _0x4159b3=this['_suggestions']['get'](_0x2822dd);if(!_0x4159b3)throw new _0x561ad9('track-changes-suggestion-not-found',this);return _0x4159b3;}['hasSuggestion'](_0xeddac8){return this['_suggestions']['has'](_0xeddac8);}['addSuggestionData'](_0xbc8bc4){const {authorId:_0x414103,id:_0x57fd79,attributes:_0x1e175d}=_0xbc8bc4,[_0x524d7c,_0x398883]=_0xbc8bc4['type']['split'](':'),_0x4de617=this['_suggestions']['get'](_0x57fd79)||this['_createSuggestion'](_0x524d7c,_0x398883,_0x57fd79,_0x414103,_0x1e175d);if(this['_addThreadToSuggestion'](_0x4de617),this['_checkSuggestionCorrectness'](_0x4de617,_0x524d7c,_0x398883||null,_0x414103),_0x4de617['createdAt']=_0xbc8bc4['createdAt'],_0x4de617['_isDataLoaded']=!0x0,_0x1e175d&&_0x1e175d['@external']){const _0x276a04=_0x1e175d['@external'],_0x47dfae=this['_getExternalAuthor'](_0x276a04['authorName']);_0x4de617['authoredAt']=_0x276a04['createdAt'],_0x4de617['author']=_0x47dfae,_0x4de617['isExternal']=!0x0;}else _0x4de617['authoredAt']=_0xbc8bc4['createdAt'];switch(_0xbc8bc4['data']&&(_0x4de617['data']=_0xbc8bc4['data']),_0xbc8bc4['attributes']&&(_0x4de617['attributes']=_0xbc8bc4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4de617['_saved']=!0x0),this['_suggestionState']['get'](_0x4de617)){case'notReady':this['_suggestionState']['set'](_0x4de617,'dataReady');break;case'markerReady':_0x4de617['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4de617])),this['_refreshSuggestionsChain'](new Set([_0x4de617])),this['_suggestionState']['set'](_0x4de617,'ready'),this['fire']('suggestionLoaded',_0x4de617)):this['_suggestionState']['set'](_0x4de617,'removed');}return _0x4de617;}['acceptSuggestion'](_0x399a7d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf5ad69 of _0x399a7d['getAllAdjacentSuggestions']())_0xf5ad69['accept']();});});}['discardSuggestion'](_0x1df1fe){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5b1b50 of _0x1df1fe['getAllAdjacentSuggestions']())_0x5b1b50['discard']();});});}['enableCommand'](_0x5b7e6e,_0x277e4f){const _0x42e417=this['editor']['commands']['get'](_0x5b7e6e);if(!_0x42e417)throw new _0x561ad9('track-changes-command-not-found',this,{'commandName':_0x5b7e6e});if(this['_enabledCommands']['has'](_0x42e417))throw new _0x561ad9('track-changes-enable-command-twice',this,{'commandName':_0x5b7e6e});this['_enabledCommands']['add'](_0x42e417),_0x277e4f&&_0x42e417['on']('execute',(_0x57d3fc,_0x3b42cd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3b42cd['length']>0x0&&_0x3b42cd[_0x3b42cd['length']-0x1]&&_0x3b42cd[_0x3b42cd['length']-0x1]['forceDefaultExecution']?_0x3b42cd['pop']():(_0x57d3fc['return']=_0x277e4f((..._0x12d7ad)=>_0x42e417['execute'](..._0x12d7ad,{'forceDefaultExecution':!0x0}),..._0x3b42cd),_0x57d3fc['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x35187c){let _0x2a3b37,_0x16a1a3;const _0x2c96e1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2a3b37=_0x35187c();}catch(_0x384238){_0x16a1a3=_0x384238;}return _0x2c96e1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x16a1a3&&_0x561ad9['rethrowUnexpectedError'](_0x16a1a3,this),_0x2a3b37;}['markInsertion'](_0x5be9d0,_0x34db69=null,_0x892a36={}){if(_0x5be9d0['isCollapsed'])return null;const _0x18e381=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x892a36['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x68d753,meta:_0x2ede7c}of this['_findSuggestions'](_0x5be9d0,'insertion'))if(_0x2ede7c['isOwn']){if(!_0x2ede7c['isNextTo']){if(_0x2ede7c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x68d753,_0x892a36))continue;return _0x68d753;}if(Xt(_0x68d753,_0x892a36))return _0x68d753;this['_breakSuggestionMarker'](_0x68d753,_0x5be9d0['start'],_0x5be9d0['end']);break;}if(_0x34db69==_0x68d753['subType']&&Xt(_0x68d753,_0x892a36)){const _0x5d8d16=_0x68d753['getFirstRange']();return _0x5d8d16['start']['isEqual'](_0x5be9d0['end'])?this['_setSuggestionRange'](_0x68d753,this['_model']['createRange'](_0x5be9d0['start'],_0x5d8d16['end'])):this['_setSuggestionRange'](_0x68d753,this['_model']['createRange'](_0x5d8d16['start'],_0x5be9d0['end'])),_0x68d753;}}const _0x13e4e4=_0x2db65b(),_0x161624=_0x18e381['id'],_0x33f46f=_0x34db69?'insertion:'+_0x34db69:'insertion',_0x52fc99=this['_setSuggestionData']({'id':_0x13e4e4,'type':_0x33f46f,'createdAt':new Date(),'authorId':_0x161624,'attributes':_0x892a36});return this['_addSuggestionMarker'](_0x33f46f,_0x13e4e4,_0x161624,_0x5be9d0),_0x52fc99;}['markMultiRangeInsertion'](_0x4548a0,_0x10c893='multi',_0x3de927={}){const _0x5ad086=this['editor']['plugins']['get']('Users')['me'],_0x3e0ca3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x10c893,'join');this['_trackingSessionId']&&(_0x3de927['trackingSessionId']=this['_trackingSessionId']);for(const _0x54e7b1 of this['getSuggestions']())if(_0x54e7b1['author']['id']==_0x5ad086['id']&&'insertion'==_0x54e7b1['type']&&_0x54e7b1['subType']==_0x10c893&&Xt(_0x54e7b1,_0x3de927)&&(_0x3e0ca3(_0x54e7b1['getRanges'](),_0x4548a0)||_0x3e0ca3(_0x4548a0,_0x54e7b1['getRanges']()))){for(const _0x3f67d3 of _0x4548a0)_0x54e7b1['addRange'](_0x3f67d3);return _0x54e7b1;}for(const {suggestion:_0x3ebcb3,meta:_0x2f8db1}of this['_findSuggestions'](_0x4548a0,'insertion')){if(!_0x2f8db1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2f8db1['containsRangeInObject'])continue;if(!Xt(_0x3ebcb3,_0x3de927))continue;let _0x219794=!0x0;for(const _0x5cb6e4 of _0x3ebcb3['getRanges']())for(const _0x44fe47 of _0x4548a0)if(!_0x5cb6e4['containsRange'](_0x44fe47)){_0x219794=!0x1;break;}if(_0x219794)return _0x3ebcb3;}const _0x2945b9=_0x2db65b(),_0x45dc70=_0x5ad086['id'],_0x17b823='insertion:'+_0x10c893,_0x2afb9f=this['_setSuggestionData']({'id':_0x2945b9,'type':_0x17b823,'createdAt':new Date(),'authorId':_0x45dc70,'attributes':_0x3de927});for(const _0x35971e of _0x4548a0)this['_addSuggestionMarker'](_0x17b823,_0x2945b9,_0x45dc70,_0x35971e,o['getMultiRangeId']());return _0x2afb9f;}['markInlineFormat'](_0x19ccaf,_0x22d99d,_0x3f348a=null,_0x98de9a={}){if(_0x3f348a=_0x3f348a||Kt(_0x22d99d),_0x19ccaf['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x98de9a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x475a27=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3f348a,'accept');return this['forceDefaultExecution'](()=>_0x475a27([_0x19ccaf],_0x22d99d,_0x98de9a)),null;}const _0x21efe5=this['editor']['plugins']['get']('Users')['me'],_0x48cf3f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2df221,meta:_0x552c24}of this['_findSuggestions'](_0x19ccaf,'insertion'))_0x552c24['isOwn']&&!_0x552c24['isInsideObject']&&_0x48cf3f['push'](..._0x2df221['getRanges']());}const _0x2bfe1a=function(_0x28ffce,_0x386288){const _0x5ed780=[];for(const _0x246c88 of _0x386288){const _0x2eba21=_0x28ffce['getIntersection'](_0x246c88);_0x2eba21&&_0x5ed780['push'](_0x2eba21);}return _0x5ed780;}(_0x19ccaf,_0x48cf3f),_0x330a2e=function(_0x3eee4a,_0x440449){const _0x96bc48=[_0x3eee4a];for(const _0x2bff5d of _0x440449){let _0x579c95=0x0;for(;_0x579c95<_0x96bc48['length'];){const _0x594964=_0x96bc48[_0x579c95]['getDifference'](_0x2bff5d);_0x96bc48['splice'](_0x579c95,0x1,..._0x594964),_0x579c95+=_0x594964['length'];}}return _0x96bc48;}(_0x19ccaf,_0x48cf3f);_0x2bfe1a['length']&&this['_model']['change'](()=>{for(const _0x42784f of _0x2bfe1a){const _0x152aa2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3f348a,'accept');this['forceDefaultExecution'](()=>_0x152aa2([_0x42784f],_0x22d99d,_0x98de9a));}});for(const _0x4cb214 of _0x330a2e){let _0x37d14b=null,_0xf88272=_0x4cb214['start'],_0x5542f4=_0x4cb214['end'];for(const {suggestion:_0xc16036,meta:_0x168302}of this['_findSuggestions'](_0x4cb214,'formatInline')){if(!_0x168302['isOwn'])continue;if(_0xc16036['subType']!=_0x3f348a)continue;if(!Xt(_0xc16036,_0x98de9a))continue;const _0x6ad91e=_0xc16036['getFirstRange']();if(_0x6ad91e['containsRange'](_0x4cb214,!0x0))return null;_0xf88272=_0xf88272['isBefore'](_0x6ad91e['start'])?_0xf88272:_0x6ad91e['start'],_0x5542f4=_0x5542f4['isAfter'](_0x6ad91e['end'])?_0x5542f4:_0x6ad91e['end'],_0x37d14b?_0x6ad91e['start']['isBefore'](_0x37d14b['getFirstRange']()['start'])?(_0x37d14b['removeMarkers'](),_0x37d14b=_0xc16036):_0xc16036['removeMarkers']():_0x37d14b=_0xc16036;}const _0x2357dc=this['_model']['createRange'](_0xf88272,_0x5542f4);if(_0x37d14b)this['_setSuggestionRange'](_0x37d14b,_0x2357dc);else{const _0x296e0d=_0x2db65b(),_0x2a9453=_0x21efe5['id'];this['_setSuggestionData']({'id':_0x296e0d,'type':'formatInline:'+_0x3f348a,'data':_0x22d99d,'createdAt':new Date(),'authorId':_0x2a9453,'attributes':_0x98de9a}),this['_addSuggestionMarker']('formatInline:'+_0x3f348a,_0x296e0d,_0x2a9453,_0x2357dc);}}return null;}['markBlockFormat'](_0x33dce1,_0x1a20c7,_0x46c353=[],_0x35b7bd=null,_0xbf3200={}){_0x1a20c7['formatGroupId']||(_0x1a20c7['formatGroupId']=_0x1a20c7['commandName']),_0x1a20c7['multipleBlocks']=_0x33dce1['is']('range'),_0x35b7bd=_0x35b7bd||Kt(_0x1a20c7);const _0x22bb2b=_0x46c353['map'](_0x27eece=>zt(_0x27eece,this['_model'])),_0x53846f=_0x33dce1['is']('range')?_0x33dce1:zt(_0x33dce1,this['_model']);if(this['_trackingSessionId']&&(_0xbf3200['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x20ce7a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35b7bd,'accept');return this['forceDefaultExecution'](()=>_0x20ce7a([_0x53846f],_0x1a20c7,_0xbf3200)),null;}_0x22bb2b['push'](_0x53846f);let _0x28a011=!0x0;for(const _0x321de2 of _0x22bb2b)if(!this['_rangeIsInLocalUserInsertion'](_0x321de2)){_0x28a011=!0x1;break;}if(_0x28a011&&'always'!==this['_trackFormatChanges']){const _0x3deb78=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35b7bd,'accept');return this['forceDefaultExecution'](()=>_0x3deb78([_0x53846f],_0x1a20c7,_0xbf3200)),null;}let _0x424c73=null,_0x56958c=_0x53846f['start'],_0x442765=_0x53846f['end'];for(const {suggestion:_0x3136d0,meta:_0x15adee}of this['_findSuggestions'](_0x53846f,'formatBlock')){if(!_0x15adee['isOwn'])continue;if(_0x15adee['isNextTo']||_0x15adee['containsRangeInObject']||_0x15adee['isInsideObject'])continue;if(_0x3136d0['data']['formatGroupId']!=_0x1a20c7['formatGroupId'])continue;if(!Xt(_0x3136d0,_0xbf3200))continue;const _0xa4b076=_0x3136d0['getFirstRange']();if(_0x3136d0['subType']==_0x35b7bd){if(_0xa4b076['containsRange'](_0x53846f,!0x0))return null;_0x56958c=_0x56958c['isBefore'](_0xa4b076['start'])?_0x56958c:_0xa4b076['start'],_0x442765=_0x442765['isAfter'](_0xa4b076['end'])?_0x442765:_0xa4b076['end'],_0x424c73?_0xa4b076['start']['isBefore'](_0x424c73['getFirstRange']()['start'])?(_0x424c73['removeMarkers'](),_0x424c73=_0x3136d0):_0x3136d0['removeMarkers']():_0x424c73=_0x3136d0;}else{const _0x6c961=_0x53846f['getIntersection'](_0xa4b076);this['_cutOutSuggestionMarker'](_0x3136d0,_0x6c961);}}const _0xf487b6=this['editor']['plugins']['get']('Users')['me'],_0x56f73f=_0x2db65b(),_0x3c85af=_0xf487b6['id'];if(_0x424c73)return this['_setSuggestionRange'](_0x424c73,this['_model']['createRange'](_0x56958c,_0x442765)),_0x424c73;{const _0x31ca60=this['_setSuggestionData']({'id':_0x56f73f,'type':'formatBlock:'+_0x35b7bd,'data':_0x1a20c7,'createdAt':new Date(),'authorId':_0x3c85af,'attributes':_0xbf3200});return this['_addSuggestionMarker']('formatBlock:'+_0x35b7bd,_0x56f73f,_0x3c85af,this['_model']['createRange'](_0x56958c,_0x442765)),_0x31ca60;}}['markMultiRangeBlockFormat'](_0x3095c1,_0x3927f8,_0x2c363c=[],_0xf9fd89=null,_0x44f9f5={}){_0x3927f8['formatGroupId']||(_0x3927f8['formatGroupId']=_0x3927f8['commandName']);const _0x1081ce=_0x3095c1[0x0];_0x3927f8['multipleBlocks']=_0x1081ce['is']('range'),_0xf9fd89=_0xf9fd89||Kt(_0x3927f8);const _0xee47d2=_0x2c363c['map'](_0x3656fe=>zt(_0x3656fe,this['_model'])),_0x130dfa=_0x1081ce['is']('range')?_0x3095c1:_0x3095c1['map'](_0x45e2b9=>zt(_0x45e2b9,this['_model']));if(this['_trackingSessionId']&&(_0x44f9f5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x261342=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf9fd89,'accept');return this['forceDefaultExecution'](()=>_0x261342(_0x130dfa,_0x3927f8,_0x44f9f5)),null;}_0xee47d2['push'](..._0x130dfa);let _0x2b9a14=!0x0;for(const _0x79fdcf of _0xee47d2)if(!this['_rangeIsInLocalUserInsertion'](_0x79fdcf)){_0x2b9a14=!0x1;break;}if(_0x2b9a14&&'always'!==this['_trackFormatChanges']){const _0x57c3e1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf9fd89,'accept');return this['forceDefaultExecution'](()=>_0x57c3e1(_0x130dfa,_0x3927f8,_0x44f9f5)),null;}const _0x21f89f=this['editor']['plugins']['get']('Users')['me'];for(const _0x45a9d5 of this['getSuggestions']()){if(_0x45a9d5['author']['id']!=_0x21f89f['id'])continue;if('formatBlock'!=_0x45a9d5['type']||_0x45a9d5['data']['formatGroupId']!=_0x3927f8['formatGroupId'])continue;if(!Xt(_0x45a9d5,_0x44f9f5))continue;const _0x3db44d=_0x45a9d5['subType']==_0xf9fd89;for(let _0x3feee6=0x0;_0x3feee6<_0x130dfa['length'];_0x3feee6++){const _0x1c3aef=_0x130dfa[_0x3feee6];for(const _0x377703 of _0x45a9d5['getMarkers']()){const _0x4ac4e9=_0x377703['getRange']();if(_0x1c3aef['isEqual'](_0x4ac4e9)){_0x3db44d?(_0x130dfa['splice'](_0x3feee6,0x1),_0x3feee6--):_0x45a9d5['removeMarker'](_0x377703['name']);break;}}}}if(0x0==_0x130dfa['length'])return null;const _0x378303=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf9fd89,'join');for(const _0x4380e6 of this['getSuggestions']())if(_0x4380e6['author']['id']==_0x21f89f['id']&&'formatBlock'==_0x4380e6['type']&&_0x4380e6['data']['formatGroupId']==_0x3927f8['formatGroupId']&&_0x4380e6['subType']==_0xf9fd89&&Xt(_0x4380e6,_0x44f9f5)&&(_0x378303(_0x4380e6['getRanges'](),_0x130dfa)||_0x378303(_0x130dfa,_0x4380e6['getRanges']()))){for(const _0x102445 of _0x130dfa)_0x4380e6['addRange'](_0x102445);return _0x4380e6;}const _0x65acf4=_0x2db65b(),_0x1ff39c=_0x21f89f['id'],_0x499253='formatBlock:'+_0xf9fd89,_0x25ddd4=this['_setSuggestionData']({'id':_0x65acf4,'type':_0x499253,'data':_0x3927f8,'createdAt':new Date(),'authorId':_0x1ff39c,'attributes':_0x44f9f5});for(const _0x2e9172 of _0x130dfa)this['_addSuggestionMarker'](_0x499253,_0x65acf4,_0x1ff39c,_0x2e9172,o['getMultiRangeId']());return _0x25ddd4;}['markDeletion'](_0x2d3cab,_0x11c7d2=null,_0x4653a2={}){if(_0x2d3cab['isCollapsed'])return null;const _0x2e2618=this['editor']['plugins']['get']('Users')['me'],_0x20b065=new _0x487116(_0x2d3cab['start'],_0x2d3cab['end']);this['_trackingSessionId']&&(_0x4653a2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2a239b,meta:_0x11b90f}of this['_findSuggestions'](_0x20b065,'insertion'))if(_0x11b90f['isOwn']&&!_0x11b90f['isNextTo']){if(_0x2a239b['isMultiRange']){const _0x7eb784=_0x2a239b['getRanges']()['filter'](_0x42f214=>'$graveyard'!=_0x42f214['root']['rootName']);_0x7eb784['every'](_0x34258b=>_0x20b065['containsRange'](_0x34258b,!0x0))&&_0x2a239b['discard']();if(_0x7eb784['some'](_0x516273=>_0x516273['containsRange'](_0x20b065,!0x0))){const _0xb18dd2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x11c7d2,'accept');return this['forceDefaultExecution'](()=>_0xb18dd2([_0x20b065],null,_0x4653a2)),null;}}else{const _0x53ee71=_0x20b065['getIntersection'](_0x2a239b['getFirstRange']());null!==_0x53ee71&&_0x2a239b['_onDiscard']([_0x53ee71],null,_0x4653a2);}}if(_0x20b065['detach'](),_0x20b065['isCollapsed']||'$graveyard'==_0x20b065['root']['rootName'])return null;let _0x3daa24=null,_0x472d06=_0x20b065['start'],_0x3a7891=_0x20b065['end'];const _0x388534=this['_findSuggestions'](_0x20b065,'deletion');for(const {suggestion:_0x109e0b,meta:_0x5be107}of _0x388534){const _0x4170a3=this['_model']['createRange'](_0x472d06,_0x3a7891);if(_0x5be107['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5be107['containsRangeInObject']&&!_0x5be107['isInsideObject'])){if(_0x109e0b['isMultiRange']){if(!Xt(_0x109e0b,_0x4653a2))continue;let _0x2c4851=!0x0;for(const _0x83c887 of _0x109e0b['getRanges']()){if(_0x83c887['containsRange'](_0x4170a3,!0x0))return _0x109e0b;_0x4170a3['containsRange'](_0x83c887)||(_0x2c4851=!0x1);}_0x2c4851&&_0x109e0b['discard']();}else{const _0xac7258=_0x109e0b['getFirstRange']();if(_0xac7258['containsRange'](_0x4170a3,!0x0))return _0x109e0b;if(!Xt(_0x109e0b,_0x4653a2)){_0x4170a3['containsRange'](_0xac7258)?_0x109e0b['removeMarkers']():_0xac7258['containsPosition'](_0x472d06)?_0x472d06=_0xac7258['end']:_0xac7258['containsPosition'](_0x3a7891)&&(_0x3a7891=_0xac7258['start']);continue;}_0x472d06=_0x472d06['isBefore'](_0xac7258['start'])?_0x472d06:_0xac7258['start'],_0x3a7891=_0x3a7891['isAfter'](_0xac7258['end'])?_0x3a7891:_0xac7258['end'],_0x4653a2=Object['assign']({},_0x109e0b['attributes']),_0x3daa24?_0xac7258['start']['isBefore'](_0x3daa24['getFirstRange']()['start'])?(_0x3daa24['removeMarkers'](),_0x3daa24=_0x109e0b):_0x109e0b['removeMarkers']():_0x3daa24=_0x109e0b;}}}if(_0x3daa24)return this['_setSuggestionRange'](_0x3daa24,this['_model']['createRange'](_0x472d06,_0x3a7891)),_0x3daa24;{const _0x4d3397=_0x2db65b(),_0x3c5266=this['_model']['createRange'](_0x472d06,_0x3a7891),_0x67b107=_0x2e2618['id'],_0xf7808e=_0x11c7d2?'deletion:'+_0x11c7d2:'deletion',_0x18c738=this['_setSuggestionData']({'id':_0x4d3397,'type':_0xf7808e,'createdAt':new Date(),'authorId':_0x67b107,'attributes':_0x4653a2});return this['_addSuggestionMarker'](_0xf7808e,_0x4d3397,_0x67b107,_0x3c5266),_0x18c738;}}['markMultiRangeDeletion'](_0x15886d,_0x40cf2a='multi',_0x3c8401={}){const _0x2868f9=this['editor']['plugins']['get']('Users')['me'],_0x18e198=_0x15886d['map'](_0x440cc4=>new _0x487116(_0x440cc4['start'],_0x440cc4['end'])),_0x53e89b=new Set();this['_trackingSessionId']&&(_0x3c8401['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x507547,meta:_0x30530c}of this['_findSuggestions'](_0x18e198,'insertion'))_0x30530c['isOwn']&&!_0x30530c['isNextTo']&&_0x53e89b['add'](_0x507547);for(const _0x2302ef of _0x53e89b)if(_0x2302ef['isMultiRange']){const _0x3ad4a2=_0x2302ef['getRanges']();(!_0x2302ef['attributes']||!_0x2302ef['attributes']['skipNestingCheck'])&&(_0x3ad4a2['every'](_0x14fd81=>_0x18e198['some'](_0x141357=>_0x141357['containsRange'](_0x14fd81,!0x0)))&&_0x2302ef['discard']());if(_0x18e198['every'](_0x1f1178=>_0x3ad4a2['some'](_0x3883f7=>_0x3883f7['containsRange'](_0x1f1178,!0x0)))){const _0x1c3d5c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40cf2a,'accept');return this['forceDefaultExecution'](()=>_0x1c3d5c(_0x15886d,null,_0x3c8401)),null;}}else{const _0x57c8e5=_0x2302ef['getFirstRange']();_0x18e198['some'](_0x30caaf=>_0x30caaf['containsRange'](_0x57c8e5,!0x0))&&_0x2302ef['discard']();if(_0x18e198['every'](_0x21bb68=>_0x57c8e5['containsRange'](_0x21bb68,!0x0))){const _0x548023=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40cf2a,'accept');return this['forceDefaultExecution'](()=>_0x548023(_0x18e198,null,_0x3c8401)),null;}}const _0x413fbf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40cf2a,'join');let _0x26be5c=null;for(const _0x38b4e3 of this['getSuggestions']())if(_0x38b4e3['author']['id']==_0x2868f9['id']&&_0x38b4e3['isInContent']&&'deletion'==_0x38b4e3['type']&&_0x38b4e3['subType']==_0x40cf2a&&Xt(_0x38b4e3,_0x3c8401)&&(_0x413fbf(_0x38b4e3['getRanges'](),_0x18e198)||_0x413fbf(_0x18e198,_0x38b4e3['getRanges']()))){if(_0x26be5c){if(_0x38b4e3['commentThread']&&_0x38b4e3['commentThread']['length'])continue;for(const _0x2b3dfa of _0x38b4e3['getRanges']())_0x26be5c['isIntersectingWithRange'](_0x2b3dfa)||_0x26be5c['addRange'](_0x2b3dfa);_0x38b4e3['removeMarkers']();}else{_0x26be5c=_0x38b4e3;for(const _0x2e4d62 of _0x18e198)_0x38b4e3['isIntersectingWithRange'](_0x2e4d62)||_0x38b4e3['addRange'](_0x2e4d62);}}if(_0x26be5c)return _0x26be5c;_0x53e89b['clear']();for(const {suggestion:_0x4c29de,meta:_0x2c4ff1}of this['_findSuggestions'](_0x18e198,'deletion'))_0x2c4ff1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2c4ff1['containsRangeInObject']&&!_0x2c4ff1['isInsideObject'])&&Xt(_0x4c29de,_0x3c8401)&&_0x53e89b['add'](_0x4c29de);for(const _0x59bac2 of _0x53e89b){const _0x1e2f53=_0x59bac2['getRanges']();if(!_0x3c8401||!_0x3c8401['skipNestingCheck']){if(_0x18e198['every'](_0x1b4e66=>_0x1e2f53['some'](_0x101a76=>_0x101a76['containsRange'](_0x1b4e66,!0x0))))return _0x59bac2;}(!_0x59bac2['attributes']||!_0x59bac2['attributes']['skipNestingCheck'])&&(_0x1e2f53['every'](_0x1bb1f8=>_0x18e198['some'](_0x8c2b8d=>_0x8c2b8d['containsRange'](_0x1bb1f8,!0x0)))&&_0x59bac2['discard']());}const _0x5c492a=_0x2db65b(),_0x520cc5=_0x2868f9['id'],_0x36167e='deletion:'+_0x40cf2a,_0x34bac3=this['_setSuggestionData']({'id':_0x5c492a,'type':_0x36167e,'createdAt':new Date(),'authorId':_0x520cc5,'attributes':_0x3c8401});for(const _0x277ef4 of _0x18e198)_0x277ef4['detach'](),_0x277ef4['isCollapsed']||'$graveyard'==_0x277ef4['root']['rootName']||this['_addSuggestionMarker'](_0x36167e,_0x5c492a,_0x520cc5,_0x277ef4,o['getMultiRangeId']());return _0x34bac3;}['markAttributeChange'](_0x25cf0e,_0x194458,_0x319593,_0x284ae2,_0xea0b5c){if(_0x25cf0e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x313d95=this['editor']['plugins']['get']('Users')['me']['id'],_0x582128=Array['from'](this['_suggestions']['values']())['filter'](_0xe02bb3=>'attribute'==_0xe02bb3['type']&&_0xe02bb3['data']['key']==_0x194458&&_0xe02bb3['isIntersectingWithRange'](_0x25cf0e));if(this['_trackingSessionId']&&(_0xea0b5c['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5b711a=this['_findSuggestions'](_0x25cf0e,'insertion')['filter'](({meta:_0x4b9587})=>_0x4b9587['isOwn']&&!_0x4b9587['isInsideObject']&&!_0x4b9587['isNextTo'])['map'](({suggestion:_0x66f065})=>_0x66f065);_0x582128['unshift'](..._0x5b711a);}const _0x736703=new Map([[_0x25cf0e,_0x319593]]);for(const _0x407fb2 of _0x582128){const _0x5eab46='attribute'==_0x407fb2['type']?_0x407fb2['data']['oldValue']:void 0x0,_0x38a8f5=_0x407fb2['getFirstRange'](),_0x3f0f5f=Array['from'](_0x736703['keys']())['find'](_0xf66e09=>_0xf66e09['isIntersecting'](_0x38a8f5));if(!_0x3f0f5f)continue;const _0x197e7e=_0x3f0f5f['getDifference'](_0x38a8f5);this['_isBlockAttribute'](_0x194458)&&'insertion'==_0x407fb2['type']&&0x0!=_0x197e7e['length']||(_0x736703['delete'](_0x3f0f5f),_0x197e7e['forEach'](_0x238b9b=>{_0x736703['set'](_0x238b9b,_0x319593);}),'insertion'!=_0x407fb2['type']&&_0x5eab46!=_0x284ae2&&_0x736703['set'](_0x3f0f5f['getIntersection'](_0x38a8f5),_0x5eab46));}const _0xda6a0f=[];for(const [_0x8c1104,_0x4a34c0]of _0x736703){const _0x2ded74=_0x2db65b(),_0x3bbb61={'key':_0x194458,'oldValue':_0x4a34c0,'newValue':_0x284ae2};_0x194458['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':_0x194458});const _0xb3663a=('attribute:'+(_0x194458+'|'+Kt({'newValue':_0x284ae2})))['substring'](0x0,0x3c),_0x549bb8=this['_setSuggestionData']({'id':_0x2ded74,'type':_0xb3663a,'data':_0x3bbb61,'createdAt':new Date(),'authorId':_0x313d95,'attributes':_0xea0b5c});_0xda6a0f['push'](_0x549bb8),this['_addSuggestionMarker'](_0xb3663a,_0x2ded74,_0x313d95,_0x8c1104);}return _0xda6a0f;}['enableDefaultAttributesIntegration'](_0x1bb608){this['enableCommand'](_0x1bb608,(_0x203031,..._0x1d0327)=>{this['_recordAttributeChanges'](()=>{_0x203031(..._0x1d0327);});});}['registerBlockAttribute'](_0x26e0f7){this['_blockAttributeKeys']['add'](_0x26e0f7);}['registerInlineAttribute'](_0x2768b6){this['_inlineAttributeKeys']['add'](_0x2768b6);}['startTrackingSession'](_0x4f552c){return this['_trackingSessionId']=void 0x0!==_0x4f552c?_0x4f552c:_0x2db65b(),this['_trackingSessionId'];}['_getAttributeKey'](_0xbfde44){return'attribute'==_0xbfde44['type']?_0xbfde44['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2f6314,_0x3d026d){const _0x3d2a19=_0x2f6314['getFirstMarker']();this['_model']['change'](_0x45df73=>{_0x45df73['updateMarker'](_0x3d2a19,{'range':_0x3d026d});});}['_addThreadToSuggestion'](_0x2dd6de){const _0x4948be=_0x2dd6de['id'],_0x34281a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4948be)||this['_commentsRepository']['addCommentThread']({'channelId':_0x34281a,'threadId':_0x4948be,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x515607=this['_commentsRepository']['getCommentThread'](_0x4948be);_0x515607['unbind']('isRemovable'),_0x515607['isRemovable']=!0x1,_0x2dd6de['commentThread']=_0x515607;}['_checkSuggestionCorrectness'](_0x536755,_0x4ee332,_0x265bca,_0x5170c7){if(_0x536755['type']!=_0x4ee332||_0x536755['subType']!=_0x265bca||_0x536755['creator']['id']!=_0x5170c7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x561ad9('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x20e4a2,_0x479c93){const _0x485610=_0x20e4a2['getFirstRange']();if(_0x479c93['isEqual'](_0x485610))_0x20e4a2['removeMarkers']();else{if(_0x485610['containsRange'](_0x479c93)){const _0xad7c46=this['_model']['createPositionAt'](_0x479c93['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x20e4a2,this['_model']['createRange'](_0x485610['start'],_0xad7c46));const _0x200cfd=_0x2db65b(),_0x533f64=_0x20e4a2['creator']['id'],_0x291a42=_0x20e4a2['type']+':'+_0x20e4a2['subType'];this['_setSuggestionData']({'id':_0x200cfd,'type':_0x291a42,'createdAt':new Date(),'authorId':_0x533f64,'data':_0x20e4a2['data'],'attributes':_0x20e4a2['attributes']});const _0x3d7ec0=this['_model']['createPositionAt'](_0x479c93['end']['parent'],'after'),_0x4f70c7=this['_model']['createRange'](_0x3d7ec0,_0x485610['end']);this['_addSuggestionMarker'](_0x291a42,_0x200cfd,_0x533f64,_0x4f70c7);}else{if(_0x485610['containsPosition'](_0x479c93['start'])){const _0x4ec017=this['_model']['createPositionAt'](_0x479c93['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x20e4a2,this['_model']['createRange'](_0x485610['start'],_0x4ec017));}else{const _0x34e83f=this['_model']['createPositionAt'](_0x479c93['end']['parent'],'after');this['_setSuggestionRange'](_0x20e4a2,this['_model']['createRange'](_0x34e83f,_0x485610['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x336e4e){for(const {suggestion:_0x4e74a2,meta:_0x3a6185}of this['_findSuggestions'](_0x336e4e,'insertion')){if(!_0x3a6185['isOwn'])continue;const _0x54943f=_0x4e74a2['getRanges']();for(const _0x4092f1 of _0x54943f)if(!_0x336e4e['getDifference'](_0x4092f1)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5e7eb4){const _0x367944=this['editor']['plugins']['get']('Users')['getUser'](_0x5e7eb4);if(!_0x367944)throw new _0x561ad9('track-changes-user-not-found',this);return _0x367944;}['_getExternalAuthor'](_0x1612f9){const _0x1f5b0c=this['editor']['plugins']['get']('Users'),_0x3ce2ed=_0x5f1f53('external:'+_0x1612f9),_0x360966=_0x1f5b0c['getUser'](_0x3ce2ed);return _0x360966||_0x1f5b0c['addUser']({'id':_0x3ce2ed,'name':_0x1612f9});}['_createSuggestion'](_0x34eb4d,_0x4e8e78,_0x551b08,_0x116815,_0xb2a235){const _0x4cff02=this['_getAuthorFromId'](_0x116815),_0x39a97c=this['_suggestionFactory']['buildSuggestion'](_0x34eb4d,_0x4e8e78,_0x551b08,_0x4cff02,_0xb2a235,_0xf89a5a=>{this['_updateSuggestionData'](_0x551b08,{'attributes':_0xf89a5a});const _0x1c0709=this['getSuggestion'](_0x551b08);this['_joinWithAdjacentSuggestions'](new Set([_0x1c0709])),this['_refreshSuggestionsChain'](new Set([_0x1c0709]));});return this['listenTo'](_0x39a97c,'accept',()=>{this['_updateSuggestionData'](_0x551b08,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x39a97c,'discard',()=>{this['_updateSuggestionData'](_0x551b08,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x551b08,_0x39a97c),this['_suggestionState']['set'](_0x39a97c,'notReady'),_0x39a97c;}['_splitMarkerName'](_0xdbd870){const _0x28d25d=_0xdbd870['split'](':');return{'group':_0x28d25d[0x0],'type':_0x28d25d[0x1],'subType':_0x28d25d['length']>=0x5?_0x28d25d[0x2]:null,'id':_0x28d25d['length']<0x5?_0x28d25d[0x2]:_0x28d25d[0x3],'authorId':_0x28d25d['length']<0x5?_0x28d25d[0x3]:_0x28d25d[0x4],'markerCount':0x6==_0x28d25d['length']?_0x28d25d[0x5]:null};}['_breakSuggestionMarker'](_0x132282,_0x39cad2,_0x25a971){const _0x46f09d=_0x132282['getFirstRange'](),_0xb5cac4=_0x46f09d['start'],_0x1015ee=_0x46f09d['end'];this['_setSuggestionRange'](_0x132282,this['_model']['createRange'](_0xb5cac4,_0x39cad2));const _0x4fd97a=_0x2db65b(),_0x47d2b6=_0x132282['creator']['id'],_0x217aba=_0x132282['type']+(_0x132282['subType']?':'+_0x132282['subType']:'');this['_setSuggestionData']({'id':_0x4fd97a,'type':_0x217aba,'createdAt':new Date(),'authorId':_0x47d2b6,'originalSuggestionId':_0x132282['id'],'attributes':_0x132282['attributes'],'data':_0x132282['data']});const _0x12fd81=this['_getAttributeKey'](_0x132282);('formatBlock'==_0x132282['type']||_0x12fd81&&this['_isBlockAttribute'](_0x12fd81))&&(_0x25a971=this['_model']['createPositionBefore'](_0x25a971['parent'])),this['_addSuggestionMarker'](_0x217aba,_0x4fd97a,_0x47d2b6,this['_model']['createRange'](_0x25a971,_0x1015ee));}['_findSuggestions'](_0x541d27,_0x48a0e6=null){const _0x392eb8=[],_0x4da3c5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x541d27)||(_0x541d27=[_0x541d27]);for(const _0x121d84 of this['getSuggestions']()){if(!_0x121d84['isInContent'])continue;if(_0x48a0e6&&_0x121d84['type']!=_0x48a0e6)continue;let _0x55bf94=!0x1;for(const _0x2e9154 of _0x121d84['getRanges']()){for(const _0x40bb82 of _0x541d27){const _0xcf58c1=_0x40bb82['start']['isEqual'](_0x2e9154['end'])||_0x40bb82['end']['isEqual'](_0x2e9154['start']);if(_0xcf58c1||_0x40bb82['getIntersection'](_0x2e9154)){const _0x553e39=_0x40bb82['containsRange'](_0x2e9154)&&Gt(this['_model']['schema'],_0x2e9154['start'],_0x40bb82),_0x4597cf=_0x2e9154['containsRange'](_0x40bb82)&&Gt(this['_model']['schema'],_0x40bb82['start'],_0x2e9154);_0x392eb8['push']({'suggestion':_0x121d84,'meta':{'isOwn':_0x4da3c5==_0x121d84['author'],'isNextTo':_0xcf58c1,'isInsideObject':_0x553e39,'containsRangeInObject':_0x4597cf}}),_0x55bf94=!0x0;break;}}if(_0x55bf94)break;}}return _0x392eb8;}['_addSuggestionMarker'](_0x3e2072,_0x32a2db,_0x22a86f,_0x1dc9e2,_0x6760b2){this['_model']['change'](_0x13fe24=>{let _0x5affb6='suggestion:'+_0x3e2072+':'+_0x32a2db+':'+_0x22a86f;_0x6760b2&&(_0x5affb6=_0x5affb6+':'+_0x6760b2),_0x13fe24['addMarker'](_0x5affb6,{'range':_0x1dc9e2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x330a58){const _0x3d5d52=_0x330a58['previous'],_0x56eeb4=_0x330a58['next'];_0x330a58['previous']=null,_0x330a58['next']=null,null!=_0x3d5d52&&_0x3d5d52['next']==_0x330a58&&(_0x3d5d52['next']=_0x56eeb4),null!=_0x56eeb4&&_0x56eeb4['previous']==_0x330a58&&(_0x56eeb4['previous']=_0x3d5d52),'ready'==this['_suggestionState']['get'](_0x330a58)&&(this['_suggestionState']['set'](_0x330a58,'removed'),this['fire']('suggestionUnloaded',_0x330a58,_0x3d5d52,_0x56eeb4));}['_setSuggestionData'](_0x5b3070){const _0x184f91=_0x5b3070['id'],_0x4dc643=this['addSuggestionData'](_0x5b3070);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x32d736=this['editor']['plugins']['get']('PendingActions'),_0x5cea0f=_0x4dc643['hasComments'],_0x109b6b=_0x4dc643['subType']?_0x4dc643['type']+':'+_0x4dc643['subType']:_0x4dc643['type'],_0x1261bf=this['editor']['locale'],_0x35c38e=_0x32d736['add'](c(_0x1261bf,'PENDING_ACTION_SUGGESTION')),_0x5262be={'id':_0x184f91,'type':_0x109b6b,'hasComments':_0x5cea0f,'data':_0x5b3070['data']||null,'originalSuggestionId':_0x5b3070['originalSuggestionId']||null,'attributes':_0x4dc643['attributes']};this['_adapter']['addSuggestion'](_0x5262be)['then'](_0x255c8a=>{_0x4dc643['_saved']=!0x0,_0x32d736['remove'](_0x35c38e),_0x255c8a&&_0x255c8a['createdAt']&&(this['_suggestions']['get'](_0x184f91)['createdAt']=_0x255c8a['createdAt']);})['catch'](_0x2cb26a=>{throw _0x2e496d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4dc643['discard']();}),_0x4dc643['stopListening'](),this['_suggestions']['delete'](_0x4dc643['id']),this['_suggestionState']['delete'](_0x4dc643),_0x2cb26a;});}return _0x4dc643;}['_isBlockAttribute'](_0x3938e0){return this['_blockAttributeKeys']['has'](_0x3938e0);}['_updateSuggestionData'](_0x4cea54,_0x505baf){const _0x455b16=this['editor']['plugins']['get']('PendingActions'),_0xb4b2b2=this['getSuggestion'](_0x4cea54);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xb4b2b2['_saved']){const _0x48c1dc=_0x455b16['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4cea54,_0x505baf)['then'](()=>{_0x455b16['remove'](_0x48c1dc);});}else _0xb4b2b2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4cea54,_0x505baf);});}}['_getSuggestionData'](_0x323364){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x561ad9('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x323364);}['_handleNewSuggestionMarker'](_0x24cec2){const {id:_0x4f64eb,type:_0x24d8b7,subType:_0x3c8c79,authorId:_0x47829a}=this['_splitMarkerName'](_0x24cec2),_0x877005=this['_suggestions']['get'](_0x4f64eb)||this['_createSuggestion'](_0x24d8b7,_0x3c8c79,_0x4f64eb,_0x47829a,{});switch(this['_checkSuggestionCorrectness'](_0x877005,_0x24d8b7,_0x3c8c79,_0x47829a),this['_suggestionState']['get'](_0x877005)){case'notReady':this['_getSuggestionData'](_0x4f64eb)['then'](_0x29d4ac=>{let _0x24223a=Promise['resolve']();_0x29d4ac['hasComments']&&(_0x24223a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4f64eb})),_0x24223a['then'](()=>{this['addSuggestionData'](_0x29d4ac)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x877005,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4f64eb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x877005,'ready'),this['fire']('suggestionLoaded',_0x877005);break;case'ready':this['fire']('suggestionChanged',_0x877005);}return _0x877005['addMarkerName'](_0x24cec2),_0x877005;}['_refreshSuggestionsChain'](_0x4b5f11){const _0x336981=Array['from'](_0x4b5f11),_0x5a8553=_0x336981['filter'](_0xdbc3c9=>'attribute'==_0xdbc3c9['type']);this['_refreshAttributeSuggestionsChain'](_0x5a8553);const _0x1d35a6=_0x336981['filter'](_0x21238c=>!_0x21238c['isMultiRange']&&'attribute'!=_0x21238c['type']),_0x3bd2fb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55a339=>!_0x55a339['isMultiRange']&&'attribute'!=_0x55a339['type']),_0x6df239=_0x3bd2fb['filter'](_0x142ada=>!_0x4b5f11['has'](_0x142ada)),_0x48b4fc=new Map(_0x3bd2fb['map'](_0x432aa1=>[_0x432aa1,this['_suggestionFactory']['getSuggestionCallback'](_0x432aa1['type'],_0x432aa1['subType'],'chain')])),_0x139e79=new Map(_0x3bd2fb['map'](_0x48a2db=>[_0x48a2db,_0x48a2db['getFirstRange']()])),_0x976b08=new Set(),_0xa2077f=new Set();for(let _0x2ea88f=0x0;_0x2ea88f<_0x1d35a6['length'];_0x2ea88f++)_0x30b38c(_0x1d35a6[_0x2ea88f],_0x1d35a6,_0x2ea88f+0x1);for(let _0x78d5e9=0x0;_0x78d5e9<_0x1d35a6['length'];_0x78d5e9++)_0x30b38c(_0x1d35a6[_0x78d5e9],_0x6df239,0x0);const _0x4ae4c5=new Set();for(let _0x20b262=0x0;_0x20b262<_0x1d35a6['length'];_0x20b262++){const _0x3b8cc5=_0x1d35a6[_0x20b262];!_0xa2077f['has'](_0x3b8cc5)&&_0x3b8cc5['previous']&&(_0x4ae4c5['add'](_0x3b8cc5['previous']),_0x3b8cc5['previous']['next']===_0x3b8cc5&&(_0x3b8cc5['previous']['next']=null),_0x3b8cc5['previous']=null),!_0x976b08['has'](_0x3b8cc5)&&_0x3b8cc5['next']&&(_0x4ae4c5['add'](_0x3b8cc5['next']),_0x3b8cc5['next']['previous']===_0x3b8cc5&&(_0x3b8cc5['next']['previous']=null),_0x3b8cc5['next']=null);}function _0x30b38c(_0x2fa0a6,_0x1b4e2b,_0x213da){for(let _0x5563dd=_0x213da;_0x5563dd<_0x1b4e2b['length'];_0x5563dd++){const _0x447b5d=_0x2a9cd8(_0x2fa0a6,_0x1b4e2b[_0x5563dd]);_0x447b5d&&(_0x447b5d[0x0]['next']=_0x447b5d[0x1],_0x447b5d[0x1]['previous']=_0x447b5d[0x0],_0x976b08['add'](_0x447b5d[0x0]),_0xa2077f['add'](_0x447b5d[0x1]));}}function _0x2a9cd8(_0x114bc7,_0x321f3d){if(_0x114bc7['author']['id']!==_0x321f3d['author']['id'])return null;const _0x119bff=_0x48b4fc['get'](_0x114bc7)(_0x114bc7,_0x321f3d,_0x139e79['get'](_0x114bc7),_0x139e79['get'](_0x321f3d));if(!_0x119bff)return null;return _0x48b4fc['get'](_0x321f3d)(_0x114bc7,_0x321f3d,_0x139e79['get'](_0x114bc7),_0x139e79['get'](_0x321f3d))?_0x119bff[0x1]['commentThread']&&_0x119bff[0x1]['commentThread']['length']?null:_0x119bff:null;}_0x4ae4c5['size']&&this['_refreshSuggestionsChain'](_0x4ae4c5);}['_refreshAttributeSuggestionsChain'](_0x482174){if(0x0==_0x482174['length'])return;const _0x4de40c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35404a=>'attribute'==_0x35404a['type']&&_0x35404a['_isDataLoaded']),_0xe00f90=[],_0x533c08=new Map();for(const _0x5e5777 of _0x4de40c){const _0x170c06=_0x5f1f53(_0x5e5777['attributes']);_0x533c08['has'](_0x170c06)||(_0x533c08['set'](_0x170c06,_0xe00f90['length']),_0xe00f90['push']([]));const _0x38e9dd=_0x533c08['get'](_0x170c06);_0xe00f90[_0x38e9dd]['push'](_0x5e5777);}!(function(){_0xe00f90['sort']((_0x41bd2e,_0x17786b)=>{const _0x29f7de=_0x41bd2e[0x0]['createdAt'],_0x54e49b=_0x17786b[0x0]['createdAt'];return _0x29f7de==_0x54e49b?_0x41bd2e[0x0]['attributes']['groupId']<_0x17786b[0x0]['attributes']['groupId']?-0x1:0x1:_0x29f7de<_0x54e49b?-0x1:0x1;});for(const _0x2f9606 of _0xe00f90)_0x2f9606['sort']((_0x465c97,_0x53ceae)=>_0x465c97['id']<_0x53ceae['id']?-0x1:0x1);}());for(let _0x56662f=0x0;_0x56662f<_0xe00f90['length'];_0x56662f++){if(0x0==_0xe00f90[_0x56662f]['length'])continue;const _0x44ce7f=[];for(let _0x5b661c=_0x56662f+0x1;_0x5b661c<_0xe00f90['length'];_0x5b661c++)0x0!=_0xe00f90[_0x5b661c]['length']&&_0x22fb3b(_0xe00f90[_0x56662f],_0xe00f90[_0x5b661c])&&_0x44ce7f['push'](_0x5b661c);for(const _0x485e0b of _0x44ce7f)_0xe00f90[_0x56662f]=_0xe00f90[_0x56662f]['concat'](_0xe00f90[_0x485e0b]),_0xe00f90[_0x485e0b]=[];}for(const _0x39697b of _0xe00f90)for(let _0x23acc5=0x0;_0x23acc5<_0x39697b['length'];_0x23acc5++){const _0x424128=_0x39697b[_0x23acc5+0x1]||null;_0x39697b[_0x23acc5]['next']!==_0x424128&&(_0x39697b[_0x23acc5]['next']=_0x424128);}for(const _0x3c14da of _0xe00f90)for(let _0x437fbc=0x0;_0x437fbc<_0x3c14da['length'];_0x437fbc++){const _0x229204=_0x3c14da[_0x437fbc-0x1]||null;_0x3c14da[_0x437fbc]['previous']!==_0x229204&&(_0x3c14da[_0x437fbc]['previous']=_0x229204);}function _0x22fb3b(_0x400ac2,_0x3ef5e1){if(_0x400ac2[0x0]['attributes']['groupId']!==_0x3ef5e1[0x0]['attributes']['groupId']&&_0x400ac2[0x0]['author']!==_0x3ef5e1[0x0]['author'])return!0x1;if(!function(_0x5c675e,_0x42fa57){if(!_0x5c675e['hasComments']&&!_0x42fa57['hasComments'])return!0x0;if(_0x5c675e['hasComments']&&_0x42fa57['hasComments'])return!0x1;if(_0x5c675e['hasComments']&&_0x42fa57['createdAt']<_0x5c675e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x42fa57['hasComments']&&_0x5c675e['createdAt']<_0x42fa57['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x400ac2[0x0],_0x3ef5e1[0x0]))return!0x1;const _0xf15368=Ft(_0x400ac2[0x0]['attributes'],['groupId','trackingSessionId']),_0x30a542=Ft(_0x3ef5e1[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xe9d34d(_0xf15368,_0x30a542))return!0x1;if(_0x400ac2[0x0]['attributes']['groupId']==_0x3ef5e1[0x0]['attributes']['groupId'])return!0x0;if(_0x400ac2[0x0]['attributes']['trackingSessionId']!==_0x3ef5e1[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x400ac2['every'](_0x4c233e=>_0x3ef5e1['some'](_0x205f91=>_0x4c233e['getFirstRange']()['isEqual'](_0x205f91['getFirstRange']())))&&_0x3ef5e1['every'](_0x226920=>_0x400ac2['some'](_0x4367c7=>_0x226920['getFirstRange']()['isEqual'](_0x4367c7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2692e7){const _0x53c20c=Array['from'](_0x2692e7),_0x52a1bc=this['getSuggestions']({'skipNotAttached':!0x0}),_0x486973=_0x52a1bc['filter'](_0x1458fe=>!_0x2692e7['has'](_0x1458fe)),_0x2193e1=new Map(_0x53c20c['map'](_0x24b763=>[_0x24b763,this['_suggestionFactory']['getSuggestionCallback'](_0x24b763['type'],_0x24b763['subType'],'join')])),_0xf91345=new Map(_0x52a1bc['map'](_0x4c88ef=>[_0x4c88ef,_0x4c88ef['getRanges']()]));for(let _0x4c52ec=0x0;_0x4c52ec<_0x53c20c['length'];_0x4c52ec++){if(_0x5b4285(this,_0x53c20c[_0x4c52ec],_0x53c20c,_0x4c52ec+0x1))return!0x0;}for(let _0x24e81a=0x0;_0x24e81a<_0x53c20c['length'];_0x24e81a++){if(_0x5b4285(this,_0x53c20c[_0x24e81a],_0x486973,0x0))return!0x0;}return!0x1;function _0x5b4285(_0x414884,_0x513313,_0x474445,_0xf7ae90){for(let _0x442198=_0xf7ae90;_0x442198<_0x474445['length'];_0x442198++){const _0x523401=_0x474445[_0x442198];if(_0x523401['type']!==_0x513313['type']||_0x523401['author']['id']!==_0x513313['author']['id']||_0x523401['subType']!==_0x513313['subType'])continue;if(!Qt(_0x513313,_0x523401))continue;if('attribute'==_0x513313['type']&&_0x513313['data']['oldValue']!=_0x523401['data']['oldValue'])continue;if('attribute'==_0x513313['type']&&_0x414884['_isBlockAttribute'](_0x513313['data']['key']))continue;if('formatBlock'==_0x513313['type']){const _0x3cfe28=_0x414884['editor']['model'],_0x553948=_0x513313['getContainedElement']();if(_0x553948&&(_0x3cfe28['schema']['isObject'](_0x553948)||_0x3cfe28['schema']['isLimit'](_0x553948)))continue;}const _0x51b7f5=_0x2193e1['get'](_0x513313),_0x2f987e=_0xf91345['get'](_0x513313),_0x792e72=_0xf91345['get'](_0x523401),_0xd1ac35=_0x513313['commentThread']&&_0x513313['commentThread']['length'],_0x198b96=_0x523401['commentThread']&&_0x523401['commentThread']['length'];if(!_0xd1ac35&&_0x51b7f5(_0x792e72,_0x2f987e))return _0x414884['_joinSuggestions'](_0x523401,_0x513313),_0xf91345['delete'](_0x513313),!0x0;if(!_0x198b96&&_0x51b7f5(_0x2f987e,_0x792e72))return _0x414884['_joinSuggestions'](_0x513313,_0x523401),_0xf91345['delete'](_0x523401),!0x0;}return!0x1;}}['_joinSuggestions'](_0x40bbfc,_0x291524){if(_0x40bbfc['isMultiRange']){for(const _0x5b7253 of _0x291524['getRanges']())_0x40bbfc['addRange'](_0x5b7253);}else{const _0x4c4e7f=_0x291524['getFirstRange']()['end'];this['_setSuggestionRange'](_0x40bbfc,this['_model']['createRange'](_0x40bbfc['getFirstRange']()['start'],_0x4c4e7f));}_0x291524['removeMarkers']();}['_getMarkerAnnouncementText'](_0x730611,_0x4ac711,_0x3448bf){const _0x568b09=_0x730611['startsWith']('format')||_0x730611['startsWith']('attribute')?'FORMATTING':_0x730611['toUpperCase']();return c(this['editor']['locale'],_0x4ac711+'_'+_0x568b09+'_SUGGESTION_ANNOUNCEMENT',_0x3448bf);}['_initAriaMarkerChangeAnnouncements'](){const _0x3edb27=this['editor'];if(!_0x3edb27['ui'])return;const {ariaLiveAnnouncer:_0xbfd6f6}=_0x3edb27['ui'];_0x57b766(this['_model'],({left:_0x3529d1,entered:_0x5415a6})=>{for(const _0x35adf0 of _0x3529d1){const {group:_0x4381dd,type:_0x570dd8}=this['_splitMarkerName'](_0x35adf0['name']);if('suggestion'===_0x4381dd){_0xbfd6f6['announce'](this['_getMarkerAnnouncementText'](_0x570dd8,'LEAVE'));break;}}for(const _0x463f13 of _0x5415a6){const {group:_0x4b6ee9,type:_0x21a956}=this['_splitMarkerName'](_0x463f13['name']);if('suggestion'===_0x4b6ee9){_0xbfd6f6['announce'](this['_getMarkerAnnouncementText'](_0x21a956,'ENTER',_0x21f300(_0x744858)));break;}}});}['_processAttributeChanges'](_0x10e9aa){if(this['_recordAttributeSuggestions'])return!0x1;const _0x37e80c=this['editor'],_0x5d0fbe=_0x37e80c['model']['document']['differ']['getChanges']();if(0x0==_0x5d0fbe['length'])return!0x1;const _0x5d2fca=[],_0x4efd6b=_0x5d0fbe['filter'](_0x23c833=>'attribute'==_0x23c833['type']),_0x1c0e64=_0x5d0fbe['filter'](_0x2561b6=>'insert'==_0x2561b6['type']&&'$text'!=_0x2561b6['name']),_0xc5cd14=_0x5d0fbe['filter'](_0x13db86=>'remove'==_0x13db86['type']&&'$text'!=_0x13db86['name']);for(const _0x54750f of _0x4efd6b)_0x5d2fca['push']({'key':_0x54750f['attributeKey'],'newValue':_0x54750f['attributeNewValue'],'oldValue':_0x54750f['attributeOldValue'],'range':qt(_0x54750f['range'],_0x37e80c['model'])});for(const _0x14f7d5 of _0x1c0e64){const _0x307613=_0xc5cd14['find'](_0x166120=>_0x166120['position']['isEqual'](_0x14f7d5['position']));_0x307613&&_0x5d2fca['push']({'key':u,'newValue':_0x14f7d5['name'],'oldValue':_0x307613['name'],'range':_0x37e80c['model']['createRangeOn'](_0x14f7d5['position']['nodeAfter'])});}return 0x0!=_0x5d2fca['length']&&this['_reduceExistingSuggestions'](_0x10e9aa,_0x5d2fca);}['_processAttributeSuggestions'](_0x110a1b){let _0x3ac394=!0x1;const _0x80b916=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x8e6b17=>_0x8e6b17['data']['newRange']&&_0x8e6b17['name']['startsWith']('suggestion:attribute:'));for(const _0x208dd2 of _0x80b916){const {subType:_0x309ed3,id:_0x3d64bf}=this['_splitMarkerName'](_0x208dd2['name']),_0x20f488=_0x309ed3['split']('|')[0x0];for(const _0xde7063 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xde7063['id']!=_0x3d64bf&&'attribute'==_0xde7063['type']&&_0xde7063['data']&&_0xde7063['data']['key']==_0x20f488&&_0xde7063['getFirstRange']()['isIntersecting'](_0x208dd2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xde7063,_0x208dd2['data']['newRange'],_0x110a1b),_0x3ac394=!0x0);}return _0x3ac394;}['_recordAttributeChanges'](_0x17d637){this['_recordAttributeSuggestions']=!0x0,_0x17d637();}['_isRegisteredAttribute'](_0x2b435d){const _0x36256d=this['_isBlockAttribute'](_0x2b435d),_0x2a04d6=this['_inlineAttributeKeys']['has'](_0x2b435d);return _0x36256d||_0x2a04d6;}['_reduceExistingSuggestions'](_0x274ef0,_0x3aeead){if(0x0==_0x3aeead['length'])return!0x1;let _0x1a00bb=!0x1;for(const _0x28dd0e of _0x3aeead){const _0x141ae0=this['_findSuggestions'](_0x28dd0e['range'],'attribute')['filter'](_0x2f9680=>!_0x2f9680['meta']['isNextTo'])['map'](_0x71dbc2=>_0x71dbc2['suggestion']),_0x5f3c49=_0x5f1f53({'newValue':_0x28dd0e['newValue']});_0x141ae0['filter'](_0x1c4256=>{const [_0x101c31,_0x399d53]=_0x1c4256['subType']['split']('|');return _0x101c31==_0x28dd0e['key']&&_0x399d53!=_0x5f3c49;})['forEach'](_0x13c0c0=>{this['_reduceSuggestionAttributeRange'](_0x13c0c0,_0x28dd0e['range'],_0x274ef0),_0x1a00bb=!0x0;});}return _0x1a00bb;}['_reduceSuggestionAttributeRange'](_0x4ca1de,_0x328769,_0x4e8ac7){const _0x384854=_0x4ca1de['getFirstRange']()['getDifference'](_0x328769);0x0!==_0x384854['length']?0x1!==_0x384854['length']?this['_breakSuggestionMarker'](_0x4ca1de,_0x328769['start'],_0x328769['end']):this['_setSuggestionRange'](_0x4ca1de,_0x384854[0x0]):_0x4e8ac7['removeMarker'](_0x4ca1de['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5ebfd6){this['_editor']=_0x5ebfd6,this['_model']=_0x5ebfd6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4179c7,_0xac2b53,_0x174e48,_0x572c4f,_0x1649d7,_0xf53af8){return new o(this['_model'],{'type':_0x4179c7,'subType':_0xac2b53,'id':_0x174e48,'author':_0x572c4f,'creator':_0x572c4f,'attributes':_0x1649d7,'onAttributesChange':_0xf53af8,'onAccept':(..._0x4e552e)=>this['getSuggestionCallback'](_0x4179c7,_0xac2b53,'accept')(..._0x4e552e),'onDiscard':(..._0x45cc63)=>this['getSuggestionCallback'](_0x4179c7,_0xac2b53,'discard')(..._0x45cc63)});}['registerCustomCallback'](_0x373c66,_0x4467bb,_0x2fd452,_0x1ab247){const _0xd8aa22=_0x373c66+':'+_0x4467bb+':'+_0x2fd452;this['_customCallbacks']['set'](_0xd8aa22,_0x1ab247);}['getSuggestionCallback'](_0x2542e7,_0x4f8bfd,_0x6c8e23){const _0x24cef2=_0x2542e7+':'+_0x4f8bfd+':'+_0x6c8e23;return this['_customCallbacks']['get'](_0x24cef2)||this['_defaultCallbacks']['get'](_0x2542e7+':'+_0x6c8e23);}['_registerDefaultCallbacks'](){const _0x59a466=()=>!0x1,_0x2c2639=_0x1c2b7a=>{_0x1c2b7a['sort']((_0xd7baea,_0x3caa82)=>_0xd7baea['start']['isBefore'](_0x3caa82['start'])?0x1:-0x1),this['_model']['change'](_0x3ae055=>{for(const _0x3a8f4a of _0x1c2b7a){let _0x5fa5c5;_0x5fa5c5=_0x3a8f4a['end']['isAtEnd']&&_0x3a8f4a['end']['parent']==_0x3a8f4a['start']['nodeAfter']?_0x3ae055['createSelection'](_0x3a8f4a['start']['nodeAfter'],'on'):_0x3ae055['createSelection'](_0x3a8f4a),this['_model']['deleteContent'](_0x5fa5c5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5c005d=(_0x51e5b6,_0x280ca3)=>{_0x280ca3&&this['_model']['change'](_0x2428a6=>{const {commandName:_0x46575f,commandParams:_0x57b59f=[]}=_0x280ca3,_0x4d6570=_0x51e5b6['map'](_0x295ab7=>(Lt(_0x295ab7)&&(_0x295ab7=this['_model']['createRange'](_0x295ab7['end'])),_0x295ab7))['filter'](_0x1fe1ba=>'$graveyard'!==_0x1fe1ba['root']['rootName']);if(_0x4d6570['length']<0x1)return;const _0x4044ed=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x25f9df=>_0x487116['fromRange'](_0x25f9df));_0x2428a6['setSelection'](_0x4d6570);for(const _0x1437bb of this['_editor']['commands']['commands']())_0x1437bb['refresh']();_0x57b59f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x46575f,..._0x57b59f);const _0x3d5b6c=_0x4044ed['filter'](_0x3d9c8e=>'$graveyard'!=_0x3d9c8e['root']['rootName']);_0x3d5b6c['length']>0x0&&_0x2428a6['setSelection'](_0x3d5b6c);for(const _0x410b52 of _0x4044ed)_0x410b52['detach']();});},_0x14b483=(_0x2da300,_0x2fe01f)=>0x1==_0x2da300['length']&&0x1==_0x2fe01f['length']&&_0x2da300[0x0]['end']['isEqual'](_0x2fe01f[0x0]['start']),_0x32f1d4=(_0x35cf6b,_0x123d69,_0x3b7605,_0x3a77e6)=>Wt(_0x35cf6b,_0x123d69,_0x3b7605,_0x3a77e6)?[_0x35cf6b,_0x123d69]:Wt(_0x123d69,_0x35cf6b,_0x3a77e6,_0x3b7605)?[_0x123d69,_0x35cf6b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x59a466),this['_defaultCallbacks']['set']('insertion:discard',_0x2c2639),this['_defaultCallbacks']['set']('insertion:join',_0x14b483),this['_defaultCallbacks']['set']('insertion:chain',_0x32f1d4),this['_defaultCallbacks']['set']('deletion:accept',_0x2c2639),this['_defaultCallbacks']['set']('deletion:discard',_0x59a466),this['_defaultCallbacks']['set']('deletion:join',_0x14b483),this['_defaultCallbacks']['set']('deletion:chain',_0x32f1d4),this['_defaultCallbacks']['set']('formatInline:accept',_0x5c005d),this['_defaultCallbacks']['set']('formatInline:discard',_0x59a466),this['_defaultCallbacks']['set']('formatInline:join',_0x14b483),this['_defaultCallbacks']['set']('formatInline:chain',_0x59a466),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5c005d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x59a466),this['_defaultCallbacks']['set']('formatBlock:join',_0x14b483),this['_defaultCallbacks']['set']('formatBlock:chain',_0x59a466),this['_defaultCallbacks']['set']('attribute:accept',_0x59a466),this['_defaultCallbacks']['set']('attribute:discard',(_0x2df73d,_0x52643e)=>{if(!_0x52643e)return;const _0x6d6057=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2c03ef=>{if(_0x52643e['key']==u)for(const _0x437a65 of _0x2df73d){const _0x3ae697=_0x437a65['start']['nodeAfter'],_0x2865a3=_0x52643e['oldValue'];_0x2c03ef['rename'](_0x3ae697,_0x2865a3);}else{if(_0x6d6057['_isBlockAttribute'](_0x52643e['key'])){for(const _0x4fac9f of _0x2df73d)void 0x0!==_0x52643e['oldValue']?_0x2c03ef['setAttribute'](_0x52643e['key'],_0x52643e['oldValue'],_0x4fac9f['start']['nodeAfter']):_0x2c03ef['removeAttribute'](_0x52643e['key'],_0x4fac9f['start']['nodeAfter']);}else{for(const _0x57f7c5 of _0x2df73d)_0x52643e['oldValue']?_0x2c03ef['setAttribute'](_0x52643e['key'],_0x52643e['oldValue'],_0x57f7c5):_0x2c03ef['removeAttribute'](_0x52643e['key'],_0x57f7c5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x14b483);}}function Gt(_0x2a6295,_0x14936b,_0x336c2f){for(const _0x2919f6 of _0x14936b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2919f6['root']==_0x2919f6)return!0x1;if(!_0x336c2f['containsItem'](_0x2919f6))return!0x1;if(_0x2a6295['isObject'](_0x2919f6)||_0x2a6295['isLimit'](_0x2919f6))return!0x0;}return!0x1;}function Lt(_0xf98678){return _0xf98678['end']['parent']==_0xf98678['start']['nodeAfter']&&_0xf98678['end']['isAtStart'];}function Jt(_0x38bbf7,_0x27c589,_0x1e70b2,_0x2257c2){const _0x4f5d60=_0xbf4aa4=>!_0xbf4aa4['item']['is']('$textProxy')&&!_0x2257c2['isObject'](_0xbf4aa4['item']),_0x35eb2b=_0x38bbf7['start']['getLastMatchingPosition'](_0x4f5d60),_0x24bee2=_0x38bbf7['end']['getLastMatchingPosition'](_0x4f5d60,{'direction':'backward'});return(!_0x38bbf7['start']['isEqual'](_0x35eb2b)||!_0x38bbf7['end']['isEqual'](_0x24bee2))&&(_0x35eb2b['isBefore'](_0x24bee2)?_0x1e70b2['updateMarker'](_0x27c589,{'range':_0x1e70b2['createRange'](_0x35eb2b,_0x24bee2)}):_0x1e70b2['removeMarker'](_0x27c589),!0x0);}function Kt(_0x5b74d8){return _0x5f1f53(_0x5b74d8);}function Ht(_0x2fcd05){const _0x2159d3=_0x2fcd05['start']['nodeAfter'];return _0x2159d3&&_0x2159d3['is']('element');}function qt(_0x28c17b,_0x418673){return null==_0x28c17b['end']['nodeBefore']&&_0x28c17b['end']['parent']==_0x28c17b['start']['nodeAfter']?zt(_0x28c17b['start']['nodeAfter'],_0x418673):_0x28c17b;}function zt(_0x32e082,_0x2334ab){const _0x421752=_0x2334ab['schema']['isObject'](_0x32e082)||_0x2334ab['schema']['isSelectable'](_0x32e082);return _0x2334ab['createRange'](_0x2334ab['createPositionAt'](_0x32e082,'before'),_0x421752?_0x2334ab['createPositionAfter'](_0x32e082):_0x2334ab['createPositionAt'](_0x32e082,'end'));}function Wt(_0x5c06f3,_0x2021bc,_0x1c5c0e,_0x43626f){return!!Qt(_0x5c06f3,_0x2021bc)&&_0x1c5c0e['end']['isEqual'](_0x43626f['start']);}function Qt(_0x364f6f,_0x59cc6d){if(!_0x364f6f['_isDataLoaded']||!_0x59cc6d['_isDataLoaded'])return!0x1;const _0x127419=new Set(Object['keys'](_0x364f6f['attributes'])),_0x2009a0=new Set(Object['keys'](_0x59cc6d['attributes']));if(_0x127419['delete']('groupId'),_0x2009a0['delete']('groupId'),0x0==_0x127419['size']&&0x0==_0x2009a0['size'])return!0x0;if(_0x127419['size']!=_0x2009a0['size'])return!0x1;const _0x2899b6={..._0x364f6f['attributes']},_0x369d8b={..._0x59cc6d['attributes']};return delete _0x2899b6['groupId'],delete _0x369d8b['groupId'],JSON['stringify'](_0x2899b6)==JSON['stringify'](_0x369d8b);}function Xt(_0x408ce2,_0x5da821){const _0x18b595=Yt(_0x408ce2['attributes']),_0x3ccb80=Yt(_0x5da821);if(!_0x408ce2['_isDataLoaded'])return!0x1;for(const _0xb35fc2 of Object['keys'](_0x3ccb80))if(!_0xe9d34d(_0x18b595[_0xb35fc2],_0x3ccb80[_0xb35fc2]))return!0x1;return!0x0;}function Yt(_0x42633e){const _0x2938d2=Object['assign']({},_0x42633e);return delete _0x2938d2['skipNestingCheck'],delete _0x2938d2['tablePasteChainId'],_0x2938d2;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x29e98a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3d29bb,_0x272bc0,_0x316509,_0x2aa4cf){super(),this['model']=_0x272bc0,this['view']=_0x316509,this['commentThreadController']=_0x2aa4cf,this['_editor']=_0x3d29bb,this['_acceptCommand']=_0x3d29bb['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3d29bb['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x324b27,_0x99adb9)=>_0x324b27||_0x99adb9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x55764c=>_0x55764c&&this['_editor']['model']['canEditAt'](_0x272bc0['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xd9c8af=>_0xd9c8af&&this['_editor']['model']['canEditAt'](_0x272bc0['getRanges']())),this['_pendingAction']=null,_0x316509['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x316509,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x316509,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x316509,'change:isDirty',()=>{_0x316509['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 _0x2a9d79=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2a9d79);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4d198f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x48eb0e,_0x4516b0,_0x2661a7,_0x256c76){super(_0x48eb0e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x416678(_0x48eb0e,c(_0x48eb0e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4516b0['authoredAt']),this['bind']('authoredAt')['to'](_0x4516b0),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',_0x4516b0,'authoredAt',this,'descriptionParts',(_0x5ef567,_0x59ef29,_0x11d882)=>{const _0x4328fb=_0x11d882['map'](_0x3a1e18=>ls(_0x3a1e18['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5ef567-0x1,_0x4516b0['author']['name'],_0x59ef29?_0x256c76['formatDateTime'](_0x59ef29):'',new DOMParser()['parseFromString'](_0x4328fb,'text/html')['body']['textContent']]);}),this['focusables']=new _0x46a819(),this['focusTracker']=new _0x26af47(),this['keystrokes']=new _0x17036a(),this['focusCycler']=new _0x480eab({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5312ce=>_0x5312ce['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4516b0,this['_localUser']=_0x2661a7,this['_config']=_0x256c76,_0x256c76['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x52c450(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x163c60}=this['_config'];this['commentsListView']=new _0x163c60(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',_0xedcd9d=>_0xedcd9d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1071c5,_0x90e34e)=>_0x1071c5||!!_0x90e34e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4fb5b7}=this['_config'],_0xbeed9b=new _0x4fb5b7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x348d75=_0xbeed9b['commentInputView'];return _0xbeed9b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x348d75,'value',(_0x1f9174,_0x1b4606,_0x112e9b)=>!!_0x112e9b||_0x1f9174&&!_0x1b4606),_0x348d75['on']('submit',(_0xe7035e,_0x4d4d8d)=>{this['fire']('addComment',_0x4d4d8d),_0x348d75['editor']['setData']('');}),_0x348d75['on']('cancel',()=>this['focus']()),_0x348d75['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xbeed9b;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x17ffb0,_0x3807e8,_0x428c2f,_0x1cbc93){super(_0x17ffb0,_0x3807e8,_0x428c2f,_0x1cbc93),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2aa165=>_0x2aa165&&_0x2aa165[0x0]?_0x2aa165[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x78fca1,_0x25211d)=>{let _0x180814='';for(const _0x17557d of _0x78fca1)_0x180814+='<p>'+ls(_0x17557d['content'],_0x17557d['color'])+'</p>';return _0x25211d?_0x180814:ti(_0x180814,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1cbc93['SuggestionView'](_0x17ffb0,_0x3807e8,{'formatDateTime':_0x1cbc93['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 _0x4fa895=this['bindTemplate'],_0x289abc=[this['suggestionView']];return this['commentsListView']&&_0x289abc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x289abc['push'](this['commentThreadInputView']),_0x289abc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4fa895['if']('isActive','ck-suggestion-wrapper--active'),_0x4fa895['to']('type',_0x122b3c=>'ck-suggestion-'+_0x122b3c),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':_0x4fa895['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x289abc};}['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 _0x4d198f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x502f88,_0x15cada,_0x4683d5){super(_0x502f88),this['_model']=_0x15cada,this['_config']=_0x4683d5,this['set']('description',''),this['bind']('authoredAt')['to'](_0x15cada),this['acceptButton']=this['_createButton'](c(_0x502f88,'Accept\x20suggestion'),_0x387c07,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x502f88,'Discard\x20suggestion'),_0x1a8e09,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x31ac2a(_0x502f88,_0x15cada['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x46a819([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x26af47(),this['keystrokes']=new _0x17036a(),this['focusCycler']=new _0x480eab({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x18ced8=>_0x18ced8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x58644e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x58644e['innerHTML']=this['description'],this['on']('change:description',(_0x3025a8,_0x3c0ddd,_0x15327a)=>{_0x58644e['innerHTML']=_0x15327a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5d7914=this['bindTemplate'],_0x58c4e3=[{'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':_0x5d7914['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5d7914['to']('authoredAt',_0x41d1ac=>this['_config']['formatDateTime'](_0x41d1ac))}]}]},{'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']&&_0x58c4e3['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':_0x58c4e3}]};}['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'](_0x13d668,_0x58482c,_0x1ed4d4,_0x26c77e,_0x416b97){const _0x346cc4=new _0x45dc97(this['locale']);return _0x346cc4['set']({'label':_0x13d668,'icon':_0x58482c,'tooltip':!0x0,'tooltipPosition':_0x416b97}),_0x346cc4['extendTemplate']({'attributes':{'class':_0x1ed4d4}}),_0x346cc4['on']('execute',()=>{this['fire'](_0x26c77e,this['_model']['id']);}),_0x346cc4;}['_setupKeyboardNavigation'](){const _0x69c499=this['element'];this['keystrokes']['listenTo'](_0x69c499);for(const _0x3ede29 of this['focusables'])this['focusTracker']['add'](_0x3ede29['element']),this['keystrokes']['listenTo'](_0x3ede29['element']);this['keystrokes']['set']('enter',(_0x3da1cb,_0x3fe9d5)=>{_0x69c499===_0x3da1cb['target']&&(this['focusCycler']['focusFirst'](),_0x3fe9d5());}),this['keystrokes']['set']('esc',(_0x22474e,_0x4c9d85)=>{_0x69c499!==_0x22474e['target']&&(this['focus'](),_0x4c9d85());});}}class d extends _0xcf6495{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x30d1d1,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2cc22a){super(_0x2cc22a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1b0883=this['editor']['config'];_0x1b0883['define']('trackChanges.SuggestionThreadView',fe),_0x1b0883['define']('trackChanges.SuggestionView',we),_0x1b0883['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1b0883['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x23cf90,_0x558c7a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x45c9f7,_0x1aa482]of this['_handleControllerBuffer']){const _0x1e9788=this['_suggestionToController']['has'](_0x45c9f7);_0x1e9788||_0x1aa482?_0x1e9788&&_0x1aa482&&this['_destroyController'](_0x45c9f7):this['_initializeController'](_0x45c9f7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x23cf90,_0x558c7a);}['init'](){const _0x556097=this['editor'],_0xbf1d15=_0x556097['plugins']['get']('TrackChangesEditing'),_0x1513cb=_0x556097['plugins']['get']('Annotations'),_0x47fb62=_0x556097['plugins']['get']('EditorAnnotations'),_0x5b4766=_0x556097['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x47fb62['addSourceCollector'](()=>{const _0x342269=[];for(const [_0x56f599,_0x25d396]of Array['from'](this['_suggestionToController'])){const _0x3c67f1=_0x56f599['getAllAdjacentSuggestions'](),_0x2598b8=[];for(const _0x3739ea of _0x3c67f1){if(!_0x3739ea['isInContent'])continue;if(_0x3739ea['isMultiRange']){_0x2598b8['push'](..._0x3739ea['getRanges']());continue;}const _0x5b3f00=_0x3739ea['getFirstRange']();if(_0x2598b8['length']>0x0){const _0x17386f=_0x2598b8[0x0]['getJoined'](_0x5b3f00);if(_0x17386f){_0x2598b8[0x0]=_0x17386f;continue;}}_0x2598b8['push'](_0x5b3f00);}_0x342269['push']([_0x25d396['view'],_0x2598b8]);}return _0x342269;}),this['listenTo'](_0xbf1d15,'suggestionLoaded',(_0x3ea659,_0x4c4efd)=>{this['listenTo'](_0x4c4efd,'change:previous',(_0x4fbead,_0x47f959,_0x31b421,_0x253036)=>{_0x4c4efd['isInContent']&&(null==_0x31b421?(this['_updateController'](_0x253036['head']),this['_handleSuggestionControllerDelayed'](_0x4c4efd,!0x1)):(this['_updateController'](_0x31b421['head']),null==_0x253036&&this['_handleSuggestionControllerDelayed'](_0x4c4efd,!0x0)));}),null!==_0x4c4efd['previous']?this['_updateController'](_0x4c4efd['head']):this['_handleSuggestionControllerDelayed'](_0x4c4efd,!0x1);}),this['listenTo'](_0xbf1d15,'suggestionUnloaded',(_0x536932,_0x33e6ae,_0x246a8d)=>{this['stopListening'](_0x33e6ae,'change:previous'),this['_handleControllerBuffer']['delete'](_0x33e6ae),this['_suggestionToController']['has'](_0x33e6ae)&&this['_destroyController'](_0x33e6ae),_0x246a8d&&this['_updateController'](_0x246a8d['head']);}),this['listenTo'](_0xbf1d15,'suggestionChanged',(_0x1d0b5e,_0x16d82e)=>{this['_updateController'](_0x16d82e);}),this['listenTo'](_0x1513cb,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5b4766,'addComment',(_0x27fc8e,{threadId:_0x563e3d,isFromAdapter:_0x1a7ba8})=>{if(_0x1a7ba8||!_0xbf1d15['hasSuggestion'](_0x563e3d))return;const _0x2bb2e5=_0xbf1d15['getSuggestion'](_0x563e3d);this['_suggestionToController']['get'](_0x2bb2e5)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5632dd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d4dc5;for(const _0x873544 in _0x5632dd){const _0x4bb0af=_0x873544,_0x2a76ea=_0x5632dd[_0x4bb0af];if('trackChangesLicenseKeyValid'==_0x2a76ea||'trackChangesLicenseKeyInvalid'==_0x2a76ea||'trackChangesLicenseKeyExpired'==_0x2a76ea||'trackChangesLicenseKeyDomainLimit'==_0x2a76ea||'trackChangesLicenseKeyNotAllowed'==_0x2a76ea||'trackChangesLicenseKeyEvaluationLimit'==_0x2a76ea||'trackChangesLicenseKeyTrialLimit'==_0x2a76ea||'trackChangesLicenseKeyUsageLimit'==_0x2a76ea){delete _0x5632dd[_0x4bb0af],_0x3d4dc5=_0x2a76ea,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3d4dc5&&_0x5632dd['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3d4dc5&&_0x5632dd['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3d4dc5&&_0x5632dd['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3d4dc5&&_0x5632dd['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3d4dc5&&_0x5632dd['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3d4dc5&&_0x5632dd['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3d4dc5&&_0x5632dd['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2f5e47=this['editor']['plugins']['get']('Annotations'),_0x1afdb9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x551731=Array['from'](_0x2f5e47['activeAnnotations'],_0x49f6ce=>_0x49f6ce['innerView'])['filter'](_0x282777=>this['_viewToController']['has'](_0x282777)),_0x445b8b=[];for(const _0x297cd7 of _0x551731){const _0x7c5551=this['_viewToController']['get'](_0x297cd7)['model']['getAllAdjacentSuggestions']();_0x445b8b['push'](..._0x7c5551['reduce']((_0x25820a,_0x12b877)=>[..._0x25820a,..._0x12b877['getMarkerNames']()],[]));}_0x1afdb9['activeMarkers']=_0x445b8b;}['_addUIComponentsToFactory'](){const _0xf54319=this['editor'],_0x288640=_0xf54319['locale'],_0x3928fc=c(_0x288640,'Track\x20changes'),_0x3dc7cc=new _0x4376a0([{'type':'switchbutton','model':new _0x412730({'withText':!0x0,'isToggleable':!0x0,'label':_0x3928fc,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x412730({'withText':!0x0,'label':c(_0x288640,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x412730({'withText':!0x0,'label':c(_0x288640,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x412730({'withText':!0x0,'label':c(_0x288640,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x412730({'withText':!0x0,'label':c(_0x288640,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xf54319['plugins']['has']('TrackChangesPreview')&&_0x3dc7cc['addMany']([{'type':'separator'},{'type':'button','model':new _0x412730({'withText':!0x0,'label':c(_0x288640,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x25e596 of _0x3dc7cc)if(ke(_0x25e596)){const _0x2cd8fc=_0xf54319['commands']['get'](_0x25e596['model']['commandName']);_0x25e596['model']['bind']('isOn','isEnabled')['to'](_0x2cd8fc,'value','isEnabled');}_0xf54319['ui']['componentFactory']['add']('trackChanges',_0x1f58b7=>this['_createToolbarButton'](_0x1f58b7,_0x3dc7cc,_0x3928fc)),_0xf54319['ui']['componentFactory']['add']('menuBar:trackChanges',_0x334f11=>this['_createMenuBarMenu'](_0x334f11,_0x3dc7cc,_0x3928fc));}['_createToolbarButton'](_0x536d71,_0x201037,_0x3f9f97){const _0x536714=_0x241414(_0x536d71,_0x366e57),_0x7f7212=this['editor']['commands']['get']('trackChanges');_0x536714['buttonView']['set']({'tooltip':_0x3f9f97,'label':_0x3f9f97,'icon':_0x4c9fcd}),_0x536714['buttonView']['bind']('isOn')['to'](_0x7f7212,'value'),_0x536714['buttonView']['on']('execute',()=>{_0x7f7212['execute'](),this['editor']['editing']['view']['focus']();}),_0xa466d0(_0x536714,_0x201037,{'role':'menu'});const _0x294b64=[];for(const _0x45e9ca of _0x201037)ke(_0x45e9ca)&&_0x294b64['push'](this['editor']['commands']['get'](_0x45e9ca['model']['commandName']));const _0x36ad18=_0x536714['buttonView'];return _0x36ad18['actionView']['unbind']('isEnabled'),_0x36ad18['arrowView']['unbind']('isEnabled'),_0x36ad18['actionView']['bind']('isEnabled')['to'](_0x7f7212,'isEnabled'),_0x36ad18['arrowView']['bind']('isEnabled')['toMany'](_0x294b64,'isEnabled',(..._0x12471d)=>_0x12471d['some'](_0x356e95=>_0x356e95)),_0x536714['on']('execute',_0x110c26=>{this['editor']['execute'](_0x110c26['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x536714;}['_createMenuBarMenu'](_0x1c6ed9,_0x5688e6,_0x1571f6){const _0x2f6062=new _0x16eb64(_0x1c6ed9),_0x5f6a6b=this['editor']['commands']['get']('trackChanges');_0x2f6062['buttonView']['set']({'label':_0x1571f6,'icon':_0x4c9fcd});const _0x578cdc=new _0x3c8fc5(_0x1c6ed9);for(const _0x206ef6 of _0x5688e6){if('separator'==_0x206ef6['type']){_0x578cdc['items']['add'](new _0x3ece44(_0x1c6ed9));continue;}const _0x33d75c=new _0x21f962(_0x1c6ed9,_0x2f6062),_0x1f5b2c=new _0x8d11dc(_0x1c6ed9),_0x17ddd1=_0x206ef6['model'];_0x1f5b2c['bind'](...Object['keys'](_0x17ddd1))['to'](_0x17ddd1),_0x1f5b2c['delegate']('execute')['to'](_0x2f6062),_0x1f5b2c['on']('execute',()=>{this['editor']['execute'](_0x17ddd1['commandName']),this['editor']['editing']['view']['focus']();}),_0x33d75c['children']['add'](_0x1f5b2c),_0x578cdc['items']['add'](_0x33d75c);}return _0x2f6062['bind']('isEnabled')['to'](_0x5f6a6b,'isEnabled'),_0x2f6062['panelView']['children']['add'](_0x578cdc),_0x2f6062;}['_initializeController'](_0x82c5e8){const _0xfb010d=this['editor'],_0x27a058=_0xfb010d['config'],_0x3cebb9=_0xfb010d['plugins']['get']('Annotations'),_0x189c3b=_0xfb010d['plugins']['get']('CommentsRepository'),_0x72d079=_0xfb010d['plugins']['get']('EditorAnnotations'),_0x59a40f=_0xfb010d['plugins']['get'](_0x30d1d1)['me'],_0x5064a5=_0x27a058['get']('trackChanges')['SuggestionThreadView'],_0x1e7ad7=_0x27a058['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1a9004,CommentThreadInputView:_0x2dd7b0}=_0xfb010d['plugins']['get']('CommentsUI');let _0x2b1fa4,_0x2e4909,_0x2d3c0b;this['_annotationViews']['has'](_0x82c5e8['id'])?(_0x2e4909=this['_annotationViews']['get'](_0x82c5e8['id']),_0x2b1fa4=_0x2e4909['mainView']):(_0x2b1fa4=new _0x5064a5(_0xfb010d['locale'],_0x82c5e8,_0x59a40f,{'disableComments':this['_disableComments'],'editorConfig':{..._0x27a058['get']('comments.editorConfig'),'licenseKey':_0x27a058['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x27a058['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x27a058['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x27a058['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x11fa02(_0x27a058['get']('locale'),_0xfb010d['locale']),'CommentView':_0x27a058['get']('comments')['CommentView'],'CommentsListView':_0x1a9004,'CommentThreadInputView':_0x2dd7b0,'SuggestionView':_0x1e7ad7}),_0x2b1fa4['suggestionView']['acceptButton']['on']('execute',()=>{_0xfb010d['editing']['view']['focus']();}),_0x2b1fa4['suggestionView']['discardButton']['on']('execute',()=>{_0xfb010d['editing']['view']['focus']();}),_0x2e4909=_0x3cebb9['createAnnotationView'](this['editor']['locale'],_0x2b1fa4),_0x2e4909['bind']('isDirty')['to'](_0x2b1fa4,'isDirty'),_0x2e4909['bind']('length')['to'](_0x2b1fa4),_0x2e4909['bind']('type')['to'](_0x2b1fa4,'type',_0x512c0d=>'suggestion-'+_0x512c0d),_0x2b1fa4['on']('escape',()=>{_0x2d3c0b['fire']('escape');}),this['_annotationViews']['set'](_0x82c5e8['id'],_0x2e4909));const _0x35c988=_0x189c3b['createCommentThreadController'](_0x82c5e8['commentThread'],_0x2b1fa4),_0x48b600=new pe(_0xfb010d,_0x82c5e8,_0x2b1fa4,_0x35c988),_0x45343e=_0x82c5e8['getAllAdjacentSuggestions']()['filter'](_0x65b02b=>_0x65b02b['isInContent']);_0x2b1fa4['descriptionParts']=_0xfb010d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x45343e),this['_suggestionToController']['set'](_0x82c5e8,_0x48b600),this['_viewToController']['set'](_0x2b1fa4,_0x48b600),_0x2d3c0b=_0x3cebb9['createAnnotation']({'view':_0x2e4909,'target':()=>{const _0xb09e6a=[],_0x11f428=_0x82c5e8['getAllAdjacentSuggestions']()['filter'](_0x932561=>_0x932561['isInContent']);for(const _0xaaca54 of _0x11f428)_0xb09e6a['push'](..._0xaaca54['getMarkers']());return _0x22a887(_0xfb010d['editing'],_0xb09e6a);},'type':()=>'suggestion-'+_0x48b600['view']['type']}),_0x189c3b['_bindAnnotationToEditors'](_0x2b1fa4,_0x2d3c0b),_0x3cebb9['add'](_0x2d3c0b),_0x72d079['registerAnnotation'](_0x2d3c0b);}['_destroyController'](_0x3fcd65){const _0x1afdf6=this['editor']['plugins']['get']('CommentsRepository'),_0xfdfaf6=this['editor']['plugins']['get']('Annotations'),_0x569de7=this['_suggestionToController']['get'](_0x3fcd65),_0x353b43=_0x569de7['view'],_0x49addf=_0xfdfaf6['getByInnerView'](_0x353b43);_0x1afdf6['_unbindEditors'](_0x353b43),_0x49addf&&_0xfdfaf6['remove'](_0x49addf),this['_suggestionToController']['delete'](_0x3fcd65),this['_viewToController']['delete'](_0x353b43),_0x569de7['destroy']();}['_updateController'](_0x5ba466){if(!_0x5ba466['isInContent']||!this['_suggestionToController']['has'](_0x5ba466))return;const _0x4c2b1f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e826c=this['_suggestionToController']['get'](_0x5ba466),_0x2f9a47=_0x5ba466['getAllAdjacentSuggestions']();_0x4e826c['view']['descriptionParts']=_0x4c2b1f['descriptionFactory']['getDescriptions'](_0x2f9a47);}['destroy'](){for(const _0x40c406 of this['_suggestionToController']['keys']())this['_destroyController'](_0x40c406);for(const _0x433446 of this['_annotationViews']['values']())_0x433446['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4fff4b){return'model'in _0x4fff4b;}class k extends _0xcf6495{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x33fb06){this['editor']['plugins']['get'](p)['adapter']=_0x33fb06;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4f3494){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4f3494);}['getSuggestions']({skipNotAttached:_0x41ff63=!0x1,toJSON:_0x1b1695=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x41ff63,'toJSON':_0x1b1695});}['getSuggestion'](_0x5cb9fb){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5cb9fb);}}const w=['Pagination'];class T extends _0xcf6495{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x362c3b=this['editor'];if(_0x362c3b['config']['define']('trackChangesData.editorCreator',_0x24f8c4=>{const _0x5ad976=_0x362c3b['model']['document']['getRootNames']()['reduce']((_0x1d428a,_0x2d07c1)=>(_0x1d428a[_0x2d07c1]='',_0x1d428a),{});return _0x362c3b['constructor']['create'](_0x5ad976,_0x24f8c4);}),'function'!=typeof _0x362c3b['config']['get']('trackChangesData')['editorCreator'])throw new _0x561ad9('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x236e41){return N(this['editor'],!0x0,_0x236e41);}['getDataWithDiscardedSuggestions'](_0xaab7b8){return N(this['editor'],!0x1,_0xaab7b8);}}class D extends _0xcf6495{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56d121){function _0x3fbc47(_0x4d9115){return _0x4d9115['map'](_0xa320b4=>String['fromCharCode'](_0xa320b4))['join']('');}super(_0x56d121),this['result']='end',_0x56d121[_0x3fbc47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fbc47([0x76,0x69,0x65,0x77])][_0x3fbc47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3fbc47([0x61,0x75,0x74,0x6f]),_0x56d121[_0x3fbc47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3fbc47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3fbc47([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3fbc47([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3fbc47([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(_0x52bb91){return void 0x0!==_0x52bb91['getRootsAttributes'];}async function N(_0x625403,_0x4a46a8,_0x2e0fc7){const _0x2c1efa=_0x45de1d(_0x625403,w);_0x2c1efa['plugins']['push'](p,D),_0x2c1efa['rootsAttributes']=Ge(_0x625403)?_0x625403['getRootsAttributes']():void 0x0;const _0x268c42=document['createDocumentFragment'](),_0x5647a0=_0x625403['config']['get']('trackChangesData')['editorCreator'],_0x9bc96b=await _0x5647a0(_0x2c1efa,()=>function(_0x1cd619){const _0x4cc7f3=document['createElement']('div');return _0x1cd619['appendChild'](_0x4cc7f3),_0x4cc7f3;}(_0x268c42));!function(_0x477c94,_0x4129bc){const _0x35e82f=_0x477c94['model']['document']['getRootNames']()['reduce']((_0x102883,_0x7c7d30)=>(_0x102883[_0x7c7d30]=_0x477c94['data']['get']({'rootName':_0x7c7d30}),_0x102883),{}),_0x373160=_0x477c94['plugins']['get']('Users')['users']['map'](_0x34f035=>({'id':_0x34f035['id'],'name':_0x34f035['name']})),_0x541494=_0x477c94['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xa74832=_0x477c94['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3b3540=_0x4129bc['plugins']['get']('Users'),_0x3ab8c4=_0x4129bc['plugins']['get']('TrackChangesEditing'),_0x35f129=_0x4129bc['plugins']['get']('CommentsRepository');for(const _0x442767 of _0x35f129['getCommentThreads']())_0x442767['remove']();for(const _0x1aedf2 of _0x373160)_0x3b3540['getUser'](_0x1aedf2['id'])||_0x3b3540['addUser'](_0x1aedf2);_0x3b3540['me']||_0x3b3540['useAnonymousUser']();for(const _0x46a6eb of _0xa74832)_0x35f129['addCommentThread'](_0x46a6eb);for(const _0x21b5d8 of _0x541494)_0x3ab8c4['addSuggestionData'](_0x21b5d8);_0x4129bc['data']['set'](_0x35e82f);}(_0x625403,_0x9bc96b),_0x9bc96b['execute'](_0x4a46a8?'acceptAllSuggestions':'discardAllSuggestions');const _0x3b7807=Ge(_0x9bc96b)?_0x9bc96b['getFullData'](_0x2e0fc7):_0x9bc96b['data']['get'](_0x2e0fc7);return await _0x9bc96b['destroy'](),_0x3b7807;}class Me extends _0x4d198f{['options'];constructor(_0x170318,_0x8eecd9){super(_0x170318),this['options']=_0x8eecd9,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'](_0x3f121b,_0x154b94){if(!this['element'])return;const _0x4c4501=[];for(const [_0x38c0b1,_0x32ddca]of _0x3f121b){const _0x462f20=document['createElement']('div');_0x462f20['setAttribute']('data-ck-root-name',_0x38c0b1),_0x462f20['className']=_0x32ddca['classes']+'\x20ck-track-changes-preview__root-container',_0x462f20['innerHTML']=_0x32ddca['content'],_0x4c4501['push'](_0x462f20);}_0x154b94(this['element'],_0x4c4501),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x300a5e{constructor(_0x2abd4b){super(_0x2abd4b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x271442=this['editor'],_0x4f07cf=_0x271442['locale'],_0x55f31f=_0x271442['plugins']['get']('Dialog');let _0x3f0988;const _0x40b9fd=function(_0x47514c){const _0x512d2a={};if('editables'in _0x47514c['ui']['view']){for(const [_0x16628d,_0x1e61d8]of Object['entries'](_0x47514c['ui']['view']['editables']))_0x512d2a[_0x16628d]=_0x1e61d8['element'];}else _0x512d2a[_0x47514c['model']['document']['getRootNames']()[0x0]]=_0x47514c['ui']['view']['editable']['element'];return _0x512d2a;}(_0x271442),_0x52f930=function(_0x4ae7c0){let _0x2fa650=0x0;for(const _0x2d6b83 of Object['values'](_0x4ae7c0))_0x2fa650=Math['max'](_0x2fa650,_0x2d6b83['getBoundingClientRect']()['width']);let _0x5b77a8=0x0;for(const _0x36065f of Object['values'](_0x4ae7c0))_0x5b77a8+=_0x36065f['getBoundingClientRect']()['height'];const _0x259450=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x319993=Math['min'](_0x5b77a8,_0x259450);return{'width':_0x2fa650,'height':_0x319993};}(_0x40b9fd);_0x55f31f['show']({'id':'finalContentPreview','title':c(_0x4f07cf,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x4f07cf,{'dialogRects':_0x52f930}),'onHide':()=>{_0x3f0988['detachFromDom']();},'onShow':()=>{_0x271442['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3d0f1d=>{const _0xdb6aa9=this['_standarizeRootsData'](_0x3d0f1d,_0x271442,_0x40b9fd);_0x55f31f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xdb6aa9,_0x271442['config']['get']('trackChanges.preview.renderFunction'));}),_0x3f0988=new _0x33f05a(_0x4f07cf,[_0x55f31f['view']]),_0x3f0988['attachToDom'](),_0x3f0988['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x271442['once']('destroy',()=>{_0x3f0988['detachFromDom']();});const _0x5c3509=_0x55f31f['view']['headerView']['class'];_0x55f31f['view']['headerView']['class']=_0x5c3509?_0x5c3509+'\x20ck-reset_all':'ck-reset_all',_0x55f31f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x55f31f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2152f9=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xd69636=_0x2152f9['previewMode'],_0x3091f8={};if('$labels'===_0xd69636){for(const _0x86e339 of _0x2152f9['getMergeFieldsIds']())_0x3091f8[_0x86e339]=_0x2152f9['getLabel'](_0x86e339)||_0x86e339;}else{const _0x4fe31f='$defaultValues'===_0xd69636?_0x2152f9['getDefaultValues']():_0x2152f9['getDataSetValues'](_0xd69636,!0x0);for(const _0x53758a of Object['entries'](_0x4fe31f)){const [_0x264762,_0x45a6b2]=_0x53758a;_0x3091f8[_0x264762]=null!==_0x45a6b2?_0x45a6b2:_0x2152f9['getLabel'](_0x264762)||_0x264762;}}return{'mergeFieldsData':_0x3091f8};}['_standarizeRootsData'](_0xef3089,_0x51befd,_0x2d41d4){let _0x14a47b;if('string'==typeof _0xef3089){const _0x15d132=_0x51befd['model']['document']['getRootNames']()[0x0];_0x14a47b={[_0x15d132]:_0xef3089};}else _0x14a47b=_0xef3089;const _0x4fd327=this['_fixMediaEmbeds'](_0x14a47b,_0x51befd),_0x4a2985=function(_0x45b7c6,_0x1e6ee2){for(const [_0x2c7ca4,_0x427297]of _0x45b7c6)_0x427297['classes']=_0x1e6ee2[_0x2c7ca4]['classList']['value']['replace']('ck-focused','');return _0x45b7c6;}(this['_sortRoots'](_0x51befd)['reduce']((_0xb69e9f,_0x335554)=>(_0xb69e9f['push']([_0x335554,{'content':_0x4fd327[_0x335554],'classes':''}]),_0xb69e9f),[]),_0x2d41d4);return _0x4a2985;}['_fixMediaEmbeds'](_0x5a3c7c,_0x29a7c8){if(!_0x29a7c8['plugins']['has']('MediaEmbedEditing'))return _0x5a3c7c;const _0x239b29=_0x29a7c8['plugins']['get']('MediaEmbedEditing');for(const [_0x5ca798,_0x443c79]of Object['entries'](_0x5a3c7c)){const _0x20bc17=document['createElement']('div');_0x20bc17['innerHTML']=_0x443c79,(_0x20bc17['querySelectorAll']('figure.media')['forEach'](_0xaf5a70=>{const _0x5654ba=_0xaf5a70['querySelector']('oembed');if(_0x5654ba){const _0x24cd6a=_0x5654ba['getAttribute']('url');if(_0x24cd6a){const _0x45a9ab=_0x239b29['registry']['getMediaViewElement'](new _0x44522e(_0x29a7c8['editing']['view']['document']),_0x24cd6a,{'elementName':'','renderForEditingView':!0x0}),_0x53d6d5=document['createElement']('div');_0x53d6d5['classList']['add']('ck-media__wrapper'),_0x45a9ab['render'](_0x53d6d5,_0x29a7c8['editing']['view']['domConverter']),_0x5654ba['replaceWith'](_0x53d6d5);}}}),_0x5a3c7c[_0x5ca798]=_0x20bc17['innerHTML']);}return _0x5a3c7c;}['_sortRoots'](_0x26f4a6){if(!function(_0x401739){return void 0x0!==_0x401739['getRootsAttributes'];}(_0x26f4a6))return _0x26f4a6['model']['document']['getRootNames']();const _0x2a6544=[],_0x177e97=new Map();for(const _0x479cce of _0x26f4a6['model']['document']['getRootNames']()){const _0x28314c=_0x26f4a6['editing']['view']['getDomRoot'](_0x479cce)['getClientRects']()['item'](0x0);_0x2a6544['push'](_0x479cce),_0x177e97['set'](_0x479cce,_0x28314c);}return _0x2a6544['sort']((_0x5760ac,_0x587340)=>{const _0x493c7f=_0x177e97['get'](_0x5760ac),_0xf1e199=_0x177e97['get'](_0x587340);return _0x493c7f['y']-_0xf1e199['y']||_0x493c7f['x']-_0xf1e199['x'];}),_0x2a6544;}}class te extends _0xcf6495{static get['requires'](){return[T,_0x3650b3];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x557013){super(_0x557013),_0x557013['commands']['add']('previewFinalContent',new re(this['editor'])),_0x557013['config']['define']('trackChanges.preview.renderFunction',(_0xf58e4a,_0x33ab19)=>{for(const _0x346165 of _0x33ab19)_0xf58e4a['appendChild'](_0x346165);});}}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};