@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250328.0 → 0.0.0-nightly-20250329.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 _0x1cf1d8,Plugin as _0xc188f5,PendingActions as _0xa02684}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5b8507,ObservableMixin as _0x59a73e,uid as _0x543158,priorities as _0x1e4238,insertToPriorityArray as _0x5a9994,logWarning as _0x3f55c6,getEnvKeystrokeText as _0xa8769e,FocusTracker as _0x101b2d,KeystrokeHandler as _0x514720,Collection as _0x29d7f8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x53679a,IconCancel as _0x22d25d,IconTrackChanges as _0xca119}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x137a11,View as _0x318208,ViewCollection as _0x2e5133,FocusCycler as _0x3a281e,ViewModel as _0x471719,createDropdown as _0x26cd9b,SplitButtonView as _0xc16298,addListToDropdown as _0x38f58b,MenuBarMenuView as _0x46ef68,MenuBarMenuListView as _0x3b7ea8,ListSeparatorView as _0x7ad159,MenuBarMenuListItemView as _0x107293,MenuBarMenuListItemButtonView as _0x5789b8,BodyCollection as _0x146592,Dialog as _0xd30797}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x546bdd,hashObject as _0x15682d,surroundingMarkersDetector as _0x224907,FOCUS_ANNOTATION_KEYSTROKE as _0x5853fa,AriaDescriptionView as _0x287eb4,setupThreadKeyboardNavigation as _0x392308,trimHtml as ti,UserView as _0x272be7,LateFocusButtonView as _0x2ad798,getDateTimeFormatter as _0x1d0cb8,getAllMarkersDomElementsSorted as _0x2f266a,sanitizeEditorConfig as _0x2a8de1}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x580ca2,LiveRange as _0x27d8bc,LivePosition as _0x216c64,DowncastWriter as _0x4c64e6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xf7f7ae,toWidget as _0x1795d6}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4852ac,set as _0x988eac,isEqual as _0x222265,unset as _0x168038,omit as Ft}from'es-toolkit/compat';import{Delete as _0x11ae3c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x271c2f}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3716ff}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x1cf1d8{['_enabledCommands'];constructor(_0x554c00,_0x5b6a57){super(_0x554c00),this['_enabledCommands']=_0x5b6a57,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 _0x1d2fb2 of this['editor']['commands']['commands']())_0x1d2fb2['affectsData']&&!this['_enabledCommands']['has'](_0x1d2fb2)&&_0x1d2fb2['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x59f47e of this['editor']['commands']['commands']())_0x59f47e['affectsData']&&!this['_enabledCommands']['has'](_0x59f47e)&&_0x59f47e['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x1cf1d8{['_suggestions'];constructor(_0x427a1f,_0x23c438){super(_0x427a1f),this['_suggestions']=_0x23c438,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5f0c38){const _0x2ad84d=this['_suggestions']['get'](_0x5f0c38);if(!_0x2ad84d)throw new _0x5b8507('track-changes-accept-suggestion-not-found',this);const _0x2cf3c1=_0x2ad84d['getRanges']();this['editor']['model']['canEditAt'](_0x2cf3c1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2ad84d);}}class R extends _0x1cf1d8{['_suggestions'];constructor(_0x2f2543,_0x5730cf){super(_0x2f2543),this['_suggestions']=_0x5730cf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x316342){const _0x41bc2e=this['_suggestions']['get'](_0x316342);if(!_0x41bc2e)throw new _0x5b8507('track-changes-discard-suggestion-not-found',this);const _0x555e55=_0x41bc2e['getRanges']();this['editor']['model']['canEditAt'](_0x555e55)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x41bc2e);}}function ls(_0x2a4711,_0x1f903b){let _0x455565='';return _0x455565+=_0x2a4711['split']('*')['map']((_0x75625b,_0x58302a)=>_0x58302a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x75625b)+'</span>':nn(_0x75625b))['join'](''),_0x1f903b&&(_0x455565+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1f903b['value']+'\x22\x20title=\x22'+_0x1f903b['title']+'\x22></span>'),_0x455565;}function nn(_0x168284){const _0x59ae84=document['createElement']('span');return _0x59ae84['innerText']=_0x168284,_0x59ae84['innerHTML'];}function ts(_0x4822a4){return _0x4822a4['sort']((_0xcbaba6,_0x24d3ec)=>'deletion'==_0xcbaba6['type']&&'deletion'!=_0x24d3ec['type']?-0x1:'deletion'!=_0xcbaba6['type']&&'deletion'==_0x24d3ec['type']?0x1:0x0);}function to(_0x3eecde,_0x40c564){let _0x5e96ff,_0x1f3f14=0x0;const _0x18fb30=[],_0x9f3500=_0x40c564['schema'];for(;_0x1f3f14<_0x3eecde['length'];){const _0x304357=_0x3eecde[_0x1f3f14],_0x1cbe6c=_0x3eecde[_0x1f3f14+0x1];_0x5e96ff||(_0x5e96ff=_0x40c564['createPositionBefore'](_0x304357)),on(_0x40c564,_0x304357,_0x1cbe6c)||(_0x18fb30['push'](_0x40c564['createRange'](_0x5e96ff,_0x9f3500['isObject'](_0x304357)?_0x40c564['createPositionAfter'](_0x304357):_0x40c564['createPositionAt'](_0x304357,'end'))),_0x5e96ff=null),_0x1f3f14++;}return _0x18fb30;}function on(_0x3bb7eb,_0x4142a0,_0xb565d7){if(!_0xb565d7)return!0x1;const _0xa03260=_0x3bb7eb['createPositionAfter'](_0x4142a0),_0x53fca7=_0x3bb7eb['createPositionBefore'](_0xb565d7);return _0xa03260['isTouching'](_0x53fca7);}function rs(_0x271d19,_0x296c0d,_0xd670d3){for(;_0xd670d3['length'];){const _0x4d7b2d=_0xd670d3['splice'](0x0,0x64);_0x271d19['change'](()=>{for(const _0x287f37 of _0x4d7b2d)_0x287f37['isInContent']&&_0x296c0d['execute'](_0x287f37['id']);});}}class x extends _0x1cf1d8{['_command'];['_suggestions'];constructor(_0x2bf4c3,_0x117046,_0x1ab06c){super(_0x2bf4c3),this['_command']=_0x117046,this['_suggestions']=_0x1ab06c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4291fb=Array['from'](this['_suggestions']['values']())['some'](_0x191e80=>_0x191e80['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4291fb;}['execute'](){const _0x5ac300=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3a73a2 of _0x5ac300){const _0x2c36b2=_0x3a73a2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2c36b2))return;}rs(this['editor']['model'],this['_command'],_0x5ac300);}}class E extends _0x1cf1d8{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1f1b5e,_0x394ab0,_0xecfcb4){super(_0x1f1b5e),this['_command']=_0x394ab0,this['_suggestions']=_0xecfcb4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x358943=this['editor']['model']['document']['selection'],_0x70b6ca=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x11a860,_0xdba130){const _0x1ba1ed=Array['from'](_0x11a860['getRanges']()),_0x4cc612=new Set();for(const _0x32adcf of _0xdba130)if(_0x32adcf['isInContent']){for(const _0x3d7b4d of _0x1ba1ed)for(const _0x438fe6 of _0x32adcf['getRanges']())(_0x3d7b4d['isIntersecting'](_0x438fe6)||_0x11a860['isCollapsed']&&!_0x32adcf['isMultiRange']&&_0x32adcf['next']&&_0x438fe6['end']['isTouching'](_0x3d7b4d['start']))&&_0x4cc612['add'](_0x32adcf);}return _0x4cc612;}(_0x358943,_0x70b6ca),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4dd958=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3fa982 of _0x4dd958){const _0x18255a=_0x3fa982['getRanges']();if(!this['editor']['model']['canEditAt'](_0x18255a))return;}rs(this['editor']['model'],this['_command'],_0x4dd958);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x59a73e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2f2342,_0x4f4341){super(),this['id']=_0x4f4341['id'],this['type']=_0x4f4341['type'],this['subType']=_0x4f4341['subType']||null,this['author']=_0x4f4341['author'],this['creator']=_0x4f4341['creator']||_0x4f4341['author'],this['isExternal']=Boolean(_0x4f4341['attributes']&&_0x4f4341['attributes']['@external']),this['data']=null,this['_model']=_0x2f2342,this['_onAccept']=_0x4f4341['onAccept'],this['_onDiscard']=_0x4f4341['onDiscard'],this['_onAttributesChange']=_0x4f4341['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4f4341['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 _0x53a579=this;for(;_0x53a579['previous'];)_0x53a579=_0x53a579['previous'];return _0x53a579;}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'](_0x2b57c4){this['_markerNames']['add'](_0x2b57c4);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5bdb3b=>this['_model']['markers']['get'](_0x5bdb3b))['filter'](_0x1fa444=>_0x1fa444);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4d39a2=>{for(const _0x21bd73 of this['getMarkers']())_0x4d39a2['removeMarker'](_0x21bd73);}),this['_markerNames']['clear']();}['removeMarker'](_0x1ef39b){this['_model']['change'](_0x2ab0bc=>{_0x2ab0bc['removeMarker'](_0x1ef39b);}),this['_markerNames']['delete'](_0x1ef39b);}['addRange'](_0x425807){const _0x1f0370='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1f0370),this['_model']['change'](_0x23948d=>{_0x23948d['addMarker'](_0x1f0370,{'range':_0x425807,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5be8f8){for(const _0x3e1636 of this['getRanges']())if(_0x3e1636['isIntersecting'](_0x5be8f8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x32d681=>_0x32d681['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4dcef5,_0x195b61)=>[..._0x4dcef5,..._0x195b61['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x200d55=this['getRanges']();if(0x1!=_0x200d55['length'])return null;const _0x692831=_0x200d55[0x0],_0x10f538=_0x692831['start']['nodeAfter'],_0x2a474d=_0x692831['end']['nodeBefore'];return _0x10f538 instanceof _0x580ca2?_0x10f538!=_0x2a474d?null:_0x10f538: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 _0x102469=[];let _0x4c2aa4=this['head'];for(;_0x4c2aa4;)_0x102469['push'](_0x4c2aa4),_0x4c2aa4=_0x4c2aa4['next'];return _0x102469;}['setAttribute'](_0x26e3a9,_0x27a5ac){const _0x4c49fd=_0x4852ac(this['attributes']);_0x988eac(_0x4c49fd,_0x26e3a9,_0x27a5ac),_0x222265(_0x4c49fd,this['attributes'])||(this['attributes']=_0x4c49fd,this['_onAttributesChange'](_0x4c49fd));}['removeAttribute'](_0x407157){const _0x10718c=_0x4852ac(this['attributes']);_0x168038(_0x10718c,_0x407157),_0x222265(_0x10718c,this['attributes'])||(this['attributes']=_0x10718c,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 _0x543158()['substr'](0x1,0x5);}}function c(_0x1f6fc8,_0x264799,_0x5001bb){const _0x54f3ec=_0x1f6fc8['t'],t=_0x1f6fc8['t'];switch(_0x264799){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',_0x5001bb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5001bb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5001bb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5001bb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5001bb);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',_0x5001bb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5001bb);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',_0x5001bb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5001bb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5001bb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5001bb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5001bb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5001bb);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5001bb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5001bb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5001bb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5001bb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5001bb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5001bb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5001bb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5001bb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5001bb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5001bb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5001bb);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5001bb);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'},_0x5001bb);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5001bb);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5001bb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5001bb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5001bb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5001bb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5001bb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5001bb);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'},_0x5001bb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5001bb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5001bb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5001bb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5001bb);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'},_0x5001bb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5001bb);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'},_0x5001bb);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'},_0x5001bb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5001bb);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'},_0x5001bb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5001bb);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'},_0x5001bb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5001bb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5001bb);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'},_0x5001bb);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5001bb);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 _0x54f3ec({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5001bb);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x54f3ec({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5001bb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5001bb);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'},_0x5001bb);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'},_0x5001bb);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'},_0x5001bb);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x264799;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4e34dd,_0x21b66e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4e34dd,this['_locale']=_0x21b66e;}['getDescriptions'](_0x420b93){const _0x4a2958=[],_0x3084d9=new Set(),_0x222226=new Set();for(let _0x4da4e0=0x0;_0x4da4e0<_0x420b93['length'];_0x4da4e0++){const _0x4a80dd=_0x420b93[_0x4da4e0];if(!_0x4a80dd['isInContent'])continue;const _0x1b6a6e=this['_handleCustomCallbackDescription'](_0x4a80dd);if(_0x1b6a6e){if(null!=_0x4a80dd['subType']){if(_0x3084d9['has'](_0x4a80dd['subType']))continue;_0x3084d9['add'](_0x4a80dd['subType']);}_0x4a2958['push'](_0x1b6a6e);}else{if('attribute'!=_0x4a80dd['type'])'insertion'!=_0x4a80dd['type']&&'deletion'!=_0x4a80dd['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4a2958,_0x4a80dd,_0x420b93[_0x4da4e0+0x1]);else{const _0x44e8d5=_0x4a80dd['data']['key'];if(_0x222226['has'](_0x44e8d5))continue;_0x222226['add'](_0x4a80dd['data']['key']),_0x44e8d5==u?this['_handleRenameSuggestionDescription'](_0x4a2958,_0x4a80dd):this['_handleAttributeSuggestionDescription'](_0x4a2958,_0x4a80dd);}}}return this['_resolveDescriptionItems'](_0x4a2958);}['registerDescriptionCallback'](_0x2485a5){this['_customCallbacks']['push'](_0x2485a5);}['registerElementLabel'](_0x37e901,_0x3028a2,_0x1d081f=_0x1e4238['normal']){'function'==typeof _0x37e901?_0x5a9994(this['_itemLabelsCallbacks'],{'matchingCallback':_0x37e901,'label':_0x3028a2,'priority':_0x1d081f}):this['_itemLabels']['set'](_0x37e901,_0x3028a2);}['registerAttributeLabel'](_0x1b4b77,_0x4c3b59){this['_attributeLabels']['set'](_0x1b4b77,_0x4c3b59);}['getItemLabel'](_0x18b73f,_0x4a5964=0x1){let _0x3dce12;for(const _0x35a45f of this['_itemLabelsCallbacks'])if(_0x35a45f['matchingCallback'](_0x18b73f)){_0x3dce12=_0x35a45f['label'];break;}return _0x3dce12||(_0x3dce12=this['_itemLabels']['get'](_0x18b73f['name'])),_0x3dce12?_0x3dce12(_0x4a5964):0x1!==_0x4a5964?_0x4a5964+'\x20'+_0x18b73f['name']+'s':''+_0x18b73f['name'];}['_addDescriptionItems'](_0x2ef9ae,_0x688644){const _0x40a8b4=_0x688644['getFirstRange']()['getWalker'](),_0x1ea5be='insertion'==_0x688644['type']?'add':'remove';for(const _0x45ebba of _0x40a8b4){const _0x205692=_0x45ebba['item'],_0x2e16ee=_0x2ef9ae[_0x2ef9ae['length']-0x1];if(_0x205692['is']('$textProxy'))_0x2e16ee&&_0x2e16ee['type']['indexOf']('Container')>-0x1&&_0x2ef9ae['pop'](),_0x2e16ee&&'text'==_0x2e16ee['type']?_0x2e16ee[_0x1ea5be]+=_0x205692['data']:_0x2ef9ae['push']({'type':'text','add':'add'==_0x1ea5be?_0x205692['data']:'','remove':'remove'==_0x1ea5be?_0x205692['data']:''});else{if(this['_schema']['isObject'](_0x205692)){const _0x562cea=_0x205692;if(_0x2e16ee&&_0x2e16ee['type']['indexOf']('Container')>-0x1&&_0x2ef9ae['pop'](),'elementEnd'==_0x45ebba['type'])continue;_0x2e16ee&&_0x2e16ee['type']==_0x1ea5be+'Object'&&_0x2e16ee['element']['name']==_0x562cea['name']?_0x2e16ee['quantity']++:_0x2ef9ae['push']({'type':_0x1ea5be+'Object','element':_0x562cea,'quantity':0x1}),_0x40a8b4['skip'](_0x4253e2=>!('elementEnd'==_0x4253e2['type']&&_0x4253e2['item']==_0x205692));}else{if(this['_schema']['checkChild'](_0x205692,'$text')||_0x205692['is']('element','softBreak')){const _0x4b2b4d=_0x205692;if('add'==_0x1ea5be&&'elementStart'==_0x45ebba['type']||'remove'==_0x1ea5be&&'elementEnd'==_0x45ebba['type'])continue;if(_0x2e16ee&&-0x1==_0x2e16ee['type']['indexOf']('Container')){'text'==_0x2e16ee['type']&&(_0x2e16ee[_0x1ea5be]+='\x0a');continue;}let _0x33a698;if(_0x33a698='add'==_0x1ea5be?_0x4b2b4d['nextSibling']&&!this['_schema']['isObject'](_0x4b2b4d['nextSibling'])?_0x4b2b4d['nextSibling']:null:_0x4b2b4d['previousSibling']&&!this['_schema']['isObject'](_0x4b2b4d['previousSibling'])?_0x4b2b4d['previousSibling']:null,_0x4b2b4d['isEmpty']||_0x33a698&&_0x33a698['isEmpty']){const _0x1bfc88=_0x33a698&&_0x33a698['isEmpty']?_0x33a698:_0x4b2b4d;_0x2e16ee&&_0x2e16ee['type']==_0x1ea5be+'EmptyContainer'&&_0x2e16ee['element']['name']==_0x1bfc88['name']?_0x2e16ee['quantity']++:_0x2ef9ae['push']({'type':_0x1ea5be+'EmptyContainer','element':_0x1bfc88,'quantity':0x1});}else _0x2ef9ae['push']({'type':_0x1ea5be+'Container','element':_0x4b2b4d});}}}}}['_resolveDescriptionItems'](_0x10a6de){const _0xe394=this['_locale'],_0x13d425=[],_0x18967d=[],_0x502a60=[];for(const _0x184305 of _0x10a6de)switch(_0x184305['type']){case'text':if(_0x184305['add']=_0x184305['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x184305['remove']=_0x184305['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x184305['add']&&''!=_0x184305['remove']){_0x13d425['push']({'type':'replace','content':c(_0xe394,'REPLACE_TEXT',['\x22'+_0x184305['remove']+'\x22','\x22'+_0x184305['add']+'\x22'])});continue;}if(null!=_0x184305['add']['match'](/^ +$/)){_0x13d425['push']({'type':'insertion','content':c(_0xe394,'*Insert:*\x20%0',c(_0xe394,'ELEMENT_SPACE',_0x184305['add']['length']))});continue;}if(null!=_0x184305['remove']['match'](/^ +$/)){_0x13d425['push']({'type':'deletion','content':c(_0xe394,'*Remove:*\x20%0',c(_0xe394,'ELEMENT_SPACE',_0x184305['remove']['length']))});continue;}if(''!=_0x184305['add']){_0x13d425['push']({'type':'insertion','content':c(_0xe394,'*Insert:*\x20%0','\x22'+_0x184305['add']+'\x22')});continue;}_0x13d425['push']({'type':'deletion','content':c(_0xe394,'*Remove:*\x20%0','\x22'+_0x184305['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x13d425['push']({'type':'insertion','content':c(_0xe394,'*Insert:*\x20%0',this['getItemLabel'](_0x184305['element'],_0x184305['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x13d425['push']({'type':'deletion','content':c(_0xe394,'*Remove:*\x20%0',this['getItemLabel'](_0x184305['element'],_0x184305['quantity']))});continue;case'addContainer':_0x13d425['push']({'type':'insertion','content':c(_0xe394,'*Split:*\x20%0',this['getItemLabel'](_0x184305['element'],_0x184305['quantity']))});continue;case'removeContainer':_0x13d425['push']({'type':'deletion','content':c(_0xe394,'*Merge:*\x20%0',this['getItemLabel'](_0x184305['element'],_0x184305['quantity']))});continue;case'addFormat':_0x18967d['push'](_0x184305['key']);continue;case'removeFormat':_0x502a60['push'](_0x184305['key']);continue;default:_0x13d425['push'](_0x184305);}if(_0x18967d['length']){const _0x3dea02=_0x18967d['map'](_0x1809a9=>this['_attributeLabels']['has'](_0x1809a9)?this['_attributeLabels']['get'](_0x1809a9):_0x1809a9)['join'](',\x20');_0x13d425['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x3dea02)});}if(_0x502a60['length']){const _0x51071d=_0x502a60['map'](_0x34d7f2=>this['_attributeLabels']['has'](_0x34d7f2)?this['_attributeLabels']['get'](_0x34d7f2):_0x34d7f2)['join'](',\x20');_0x13d425['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x51071d)});}return _0x13d425;}['_handleCustomCallbackDescription'](_0x1a3ed3){for(const _0x5ec321 of this['_customCallbacks']){const _0x358806=_0x5ec321(_0x1a3ed3);if(_0x358806&&'type'in _0x358806)return _0x358806;}}['_handleAttributeSuggestionDescription'](_0x31e52b,_0xc89dae){const _0x275d99=_0xc89dae['data'],_0x4fbe28=void 0x0===_0x275d99['newValue']?'removeFormat':'addFormat';_0x31e52b['push']({'type':_0x4fbe28,'key':_0x275d99['key']});}['_handleRenameSuggestionDescription'](_0x5cf81e,_0x321424){_0x5cf81e['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x321424['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1803b4,_0x2f4139,_0x45d7eb){if(this['_addDescriptionItems'](_0x1803b4,_0x2f4139),_0x45d7eb&&_0x45d7eb['getFirstRange']()&&!_0x2f4139['getFirstRange']()['end']['isEqual'](_0x45d7eb['getFirstRange']()['start'])){const _0x3ff7a0=_0x1803b4[_0x1803b4['length']-0x1],_0x2a14c8='insertion'==_0x2f4139['type']?'add':'remove';_0x3ff7a0&&'text'==_0x3ff7a0['type']&&(_0x3ff7a0[_0x2a14c8]+='\x0a');}}}class U extends _0xc188f5{['afterInit'](){const _0x2c24ca=this['editor'],_0x2394f8=_0x2c24ca['plugins']['get']('TrackChangesEditing');_0x2c24ca['commands']['get']('showAIAssistant')&&_0x2394f8['enableCommand']('showAIAssistant');}}class V extends _0xc188f5{['afterInit'](){const _0x4eb238=this['editor'],_0x53a721=_0x4eb238['locale'];if(!_0x4eb238['plugins']['has']('AlignmentEditing'))return;const _0x3698d5=_0x4eb238['plugins']['get']('TrackChangesEditing');_0x3698d5['enableDefaultAttributesIntegration']('alignment'),_0x3698d5['registerBlockAttribute']('alignment'),_0x3698d5['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x53a721,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x573133=this['editor'],_0x49d072=_0x573133['locale'];_0x573133['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a70e0=>{if('formatBlock'!=_0x2a70e0['type'])return;const {data:_0xea2c03}=_0x2a70e0;if(_0xea2c03&&'alignment'==_0xea2c03['commandName']){const _0x35fd65=_0xea2c03['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x49d072,'*Format:*\x20%0',function(_0x37672b){switch(_0x37672b){case'left':return c(_0x49d072,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x49d072,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x49d072,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x49d072,'FORMAT_JUSTIFY_TEXT');}}(_0x35fd65))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0xc188f5{['afterInit'](){const _0x3fd46e=this['editor'],_0x2989d0=_0x3fd46e['plugins']['get']('TrackChangesEditing'),_0x2b5691=_0x3fd46e['locale'];for(const _0x1959b7 of Zt){if(!_0x3fd46e['plugins']['has'](_0x1959b7))continue;const _0xa9d2a7=_0x1959b7['slice'](0x0,-0x7)['toLowerCase'](),_0x60efe0='FORMAT_'+_0xa9d2a7['toUpperCase']();_0x2989d0['enableDefaultAttributesIntegration'](_0xa9d2a7),_0x2989d0['registerInlineAttribute'](_0xa9d2a7),_0x2989d0['descriptionFactory']['registerAttributeLabel'](_0xa9d2a7,c(_0x2b5691,_0x60efe0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9ae0a7=this['editor'],_0x2f75f2=_0x9ae0a7['locale'],_0x1fcc11=_0x9ae0a7['plugins']['get']('TrackChangesEditing');function _0x3a6d72(_0x262a7d,_0x561fc0){_0x1fcc11['descriptionFactory']['registerDescriptionCallback'](_0x519bb4=>{if('formatInline'!=_0x519bb4['type'])return;const {data:_0x57dcc3}=_0x519bb4;return _0x57dcc3&&_0x57dcc3['commandName']===_0x262a7d?_0x57dcc3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2f75f2,'*Format:*\x20%0',_0x561fc0)}:{'type':'format','content':c(_0x2f75f2,'*Remove\x20format:*\x20%0',_0x561fc0)}:void 0x0;});}_0x3a6d72('bold',c(_0x2f75f2,'FORMAT_BOLD')),_0x3a6d72('italic',c(_0x2f75f2,'FORMAT_ITALIC')),_0x3a6d72('underline',c(_0x2f75f2,'FORMAT_UNDERLINE')),_0x3a6d72('code',c(_0x2f75f2,'FORMAT_CODE')),_0x3a6d72('strikethrough',c(_0x2f75f2,'FORMAT_STRIKETHROUGH')),_0x3a6d72('subscript',c(_0x2f75f2,'FORMAT_SUBSCRIPT')),_0x3a6d72('superscript',c(_0x2f75f2,'FORMAT_SUPERSCRIPT'));}}class G extends _0xc188f5{['afterInit'](){const _0xbce1b9=this['editor'],_0x3c8d66=_0xbce1b9['locale'];if(!_0xbce1b9['plugins']['has']('BlockQuoteEditing'))return;const _0x2e64bf=_0xbce1b9['plugins']['get']('TrackChangesEditing'),_0x133ba1=this['editor']['commands']['get']('blockQuote');_0x2e64bf['enableCommand']('blockQuote',(_0x4602fc,_0x2064f5={})=>{const _0x7edd9e=this['editor']['model']['document']['selection'],_0x3f6c0f=_0x2064f5&&void 0x0!==_0x2064f5['forceValue']?_0x2064f5['forceValue']:!_0x133ba1['value'];let _0x2cb33d=[];if(_0x3f6c0f){const _0x480370=Array['from'](_0x7edd9e['getSelectedBlocks']())['filter'](_0x47a224=>oo(_0x47a224)||function(_0x3f3c5c,_0xf4c8b9){const _0x7bd162=_0xf4c8b9['checkChild'](_0x3f3c5c['parent'],'blockQuote'),_0x2114ac=_0xf4c8b9['checkChild'](['$root','blockQuote'],_0x3f3c5c);return _0x7bd162&&_0x2114ac;}(_0x47a224,this['editor']['model']['schema']));_0x2cb33d=to(_0x480370,_0xbce1b9['model']);}else{const _0x8285f1=Array['from'](_0x7edd9e['getSelectedBlocks']())['filter'](_0x5255d7=>oo(_0x5255d7));_0x2cb33d=to(_0x8285f1,_0xbce1b9['model']);}_0xbce1b9['model']['change'](()=>{for(const _0x445797 of _0x2cb33d)_0x2e64bf['markBlockFormat'](_0x445797,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3f6c0f}]});});}),_0x2e64bf['descriptionFactory']['registerDescriptionCallback'](_0x1e2406=>{const {data:_0x3d4735}=_0x1e2406;if(_0x3d4735&&'blockQuote'==_0x3d4735['commandName']){const _0x573cfe=c(_0x3c8d66,'ELEMENT_BLOCK_QUOTE');return _0x3d4735['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3c8d66,'*Set\x20format:*\x20%0',_0x573cfe)}:{'type':'format','content':c(_0x3c8d66,'*Remove\x20format:*\x20%0',_0x573cfe)};}});}}function oo(_0x2bcee1){return'blockQuote'==_0x2bcee1['parent']['name'];}class L extends _0xc188f5{['afterInit'](){const _0x548196=this['editor'],_0x12c119=_0x548196['locale'],_0x3d396a=_0x548196['plugins']['get']('TrackChangesEditing');_0x548196['plugins']['has']('BookmarkEditing')&&(_0x3d396a['enableCommand']('insertBookmark'),_0x3d396a['enableDefaultAttributesIntegration']('updateBookmark'),_0x3d396a['registerBlockAttribute']('bookmarkId'),_0x3d396a['descriptionFactory']['registerDescriptionCallback'](_0x1c2e49=>{if('insertion'!=_0x1c2e49['type']&&'deletion'!=_0x1c2e49['type']&&'attribute'!=_0x1c2e49['type'])return;const _0x51c4c1=_0x1c2e49['getContainedElement']();if(null==_0x51c4c1)return;if(!_0x51c4c1['is']('element','bookmark'))return;const _0x3581d1=_0x51c4c1['getAttribute']('bookmarkId');if('insertion'==_0x1c2e49['type'])return{'type':'insertion','content':c(_0x12c119,'*Insert:*\x20%0','\x22'+_0x3581d1+'\x22\x20'+c(_0x12c119,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1c2e49['type'])return{'type':'deletion','content':c(_0x12c119,'*Remove:*\x20%0','\x22'+_0x3581d1+'\x22\x20'+c(_0x12c119,'ELEMENT_BOOKMARK'))};const {data:_0x37f359}=_0x1c2e49;if(!_0x37f359||'bookmarkId'!=_0x37f359['key'])return;return{'type':'format','content':c(_0x12c119,'*Set\x20bookmark:*\x20%0','\x22'+_0x37f359['newValue']+'\x22')};}));}}class J extends _0xc188f5{['afterInit'](){const _0x1362a0=this['editor'];_0x1362a0['plugins']['has']('CaseChange')&&(_0x1362a0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1362a0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1362a0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0xc188f5{['afterInit'](){const _0xaaee96=this['editor'];_0xaaee96['commands']['get']('ckbox')&&_0xaaee96['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0xc188f5{['afterInit'](){const _0x32161a=this['editor'];if(!_0x32161a['plugins']['has']('CodeBlock'))return;const _0x4d87c6=_0x32161a['plugins']['get']('TrackChangesEditing'),_0x53ed11=_0x32161a['locale'],_0x365946=_0x32161a['config']['get']('codeBlock')['languages'],_0x23c684=_0x32161a['commands']['get']('codeBlock');_0x4d87c6['enableCommand']('indentCodeBlock'),_0x4d87c6['enableCommand']('outdentCodeBlock'),_0x4d87c6['enableCommand']('codeBlock',(_0x54b2df,_0x7916f={})=>{const _0x5a5bc0=_0x32161a['model'],_0x16f88e=_0x32161a['model']['document']['selection'],_0x254b69=_0x7916f&&void 0x0!==_0x7916f['forceValue']?_0x7916f['forceValue']:!_0x23c684['value'];let _0x3753f6;_0x7916f['language']||(_0x7916f['language']=_0x365946[0x0]['language']),_0x3753f6=_0x254b69?Array['from'](_0x16f88e['getSelectedBlocks']())['filter'](_0x2b83ab=>eo(_0x2b83ab)||function(_0x2917a3,_0x382474){if(_0x2917a3['is']('rootElement')||_0x382474['isLimit'](_0x2917a3))return!0x1;return _0x382474['checkChild'](_0x2917a3['parent'],'codeBlock');}(_0x2b83ab,_0x5a5bc0['schema'])):Array['from'](_0x16f88e['getSelectedBlocks']())['filter'](_0x7f4025=>eo(_0x7f4025));const _0x273f38=to(_0x3753f6,_0x5a5bc0);_0x5a5bc0['change'](()=>{for(const _0xf0550a of _0x273f38)_0x4d87c6['markBlockFormat'](_0xf0550a,{'commandName':'codeBlock','commandParams':[{..._0x7916f,'forceValue':_0x254b69}],'formatGroupId':'blockName'});});}),(_0x4d87c6['descriptionFactory']['registerElementLabel']('codeBlock',_0x4339b6=>c(_0x53ed11,'ELEMENT_CODE_BLOCK',_0x4339b6)),_0x4d87c6['descriptionFactory']['registerDescriptionCallback'](_0x4e0e3f=>{if('formatBlock'!=_0x4e0e3f['type'])return;const _0x1ddc2a=_0x53ed11['t'],{data:_0x20c43b}=_0x4e0e3f;if(!_0x20c43b||'codeBlock'!=_0x20c43b['commandName'])return;const _0x2ae8cb=_0x20c43b['commandParams'][0x0]['language'],_0x135764=_0x1ddc2a(_0x365946['find'](_0x106475=>_0x106475['language']===_0x2ae8cb)['label'])['toLowerCase']();return _0x20c43b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x53ed11,'*Set\x20format:*\x20%0',c(_0x53ed11,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x135764+')')}:{'type':'format','content':c(_0x53ed11,'*Remove\x20format:*\x20%0',c(_0x53ed11,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3f73c4){return'codeBlock'==_0x3f73c4['name'];}class q extends _0xc188f5{['afterInit'](){const _0x28eafc=this['editor'];if(!_0x28eafc['plugins']['has']('CommentsEditing'))return;_0x28eafc['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xc89e61,_0xa41465,_0x47f7ae){const _0x203c37=[];for(const _0x21cd43 of _0xa41465['getItems']())_0x21cd43['hasAttribute'](_0xc89e61)&&_0x203c37['push'](_0x47f7ae['createRangeOn'](_0x21cd43));return _0x203c37;}function Fe(_0xbfca8,_0x421d08,{showActiveMarker:_0x4078ac=!0x0}={}){const _0x89289a=_0xbfca8['plugins']['get']('TrackChangesEditing');return(_0x2a7077,_0x3c18ee,_0x362e77)=>{if(!_0x362e77['consumable']['test'](_0x3c18ee['markerRange'],_0x2a7077['name']))return;const _0x3f5f36=_0x3c18ee['markerRange']['getWalker'](),_0x2580bc=_0x3c18ee['markerRange']['start'],_0x15828d=_0xbfca8['model']['schema'];let _0x2697f0=null,_0x4e41b8=null,_0xe115e7=!0x1,_0x38a82f=!0x1;for(const _0x415272 of _0x3f5f36){const _0x1c5992=_0x415272['item'];_0xe115e7=_0xe115e7||_0x15828d['isContent'](_0x1c5992);const _0xa4f54=_0x362e77['mapper']['toViewElement'](_0x1c5992);if(_0xa4f54&&_0xa4f54['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x415272['type']&&(_0x15828d['isBlock'](_0x1c5992)&&!_0x15828d['isLimit'](_0x1c5992)&&(_0x1c5992['nextSibling']||_0x2580bc['isAtEnd']?_0x2697f0&&_0x2697f0['parent']==_0x1c5992||(_0x2697f0=_0x1c5992,_0x21b6dc(_0x415272['previousPosition']),_0x38a82f=!0x0):_0x4e41b8=_0x4e41b8||_0x415272['previousPosition']));}function _0x21b6dc(_0x4cb35a){const {authorId:_0xa613d4}=_0x89289a['_splitMarkerName'](_0x3c18ee['markerName']),_0x7f29aa=_0x362e77['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x421d08,'data-author-id':_0xa613d4}),_0x50a111=_0x362e77['mapper']['toViewPosition'](_0x4cb35a);_0x4078ac&&_0x89289a['activeMarkers']['includes'](_0x3c18ee['markerName'])&&_0x362e77['writer']['addClass']('ck-suggestion-marker--active',_0x7f29aa),_0x362e77['writer']['insert'](_0x50a111,_0x7f29aa),_0x362e77['mapper']['bindElementToMarker'](_0x7f29aa,_0x3c18ee['markerName']);}_0xe115e7||_0x38a82f||!_0x4e41b8||_0x21b6dc(_0x4e41b8);};}class z extends _0xc188f5{static get['requires'](){return[_0x11ae3c];}['init'](){const _0x28870e=this['editor'],_0x57686d=_0x28870e['plugins']['get']('TrackChangesEditing');_0x57686d['enableCommand']('delete');const _0x14b439=_0x28870e['commands']['get']('deleteForward');_0x57686d['enableCommand']('deleteForward',(_0x27d9ee,_0x27d263={})=>{const _0x355e58=_0x28870e['model']['createSelection'](_0x28870e['model']['document']['selection']);_0x355e58['isCollapsed']&&_0x28870e['model']['modifySelection'](_0x355e58,{'direction':'forward','unit':_0x27d263['unit']});const _0x24ed51=_0x355e58['getFirstRange'](),_0xa29b90=_0x27d8bc['fromRange'](_0x24ed51);let _0x465599;_0x27d9ee(_0x27d263),_0x465599='$graveyard'==_0xa29b90['root']['rootName']?_0x28870e['model']['createRange'](_0x24ed51['start']):_0x28870e['model']['createRange'](_0xa29b90['start'],_0xa29b90['end']),_0xa29b90['detach'](),_0x28870e['model']['enqueueChange'](_0x14b439['buffer']['batch'],_0x530d5c=>{_0x14b439['buffer']['lock'](),_0x530d5c['setSelection'](_0x530d5c['createRange'](_0x465599['end'])),_0x14b439['buffer']['unlock']();});}),_0x28870e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x28870e,'merge'),{'priority':'high'}),_0x28870e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4ee053,_0x5609bf,_0x4bbc29)=>{_0x4bbc29['options']['showSuggestionHighlights']&&Fe(_0x28870e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4ee053,_0x5609bf,_0x4bbc29);},{'priority':'high'}),_0x28870e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x136288,_0x21038c,_0x4f2189)=>{const _0x275e06=_0x4f2189['mapper']['markerNameToElements'](_0x21038c['markerName']);if(_0x275e06){for(const _0x52c3b0 of _0x275e06)_0x52c3b0['is']('uiElement')&&(_0x4f2189['mapper']['unbindElementFromMarkerName'](_0x52c3b0,_0x21038c['markerName']),_0x4f2189['writer']['remove'](_0x52c3b0));}},{'priority':'high'});}}class W extends _0xc188f5{['afterInit'](){const _0x3c2197=this['editor'];if(!_0x3c2197['plugins']['has']('ListEditing'))return;const _0x53eaa9=_0x3c2197['locale'],_0x3e61c6=_0x3c2197['plugins']['get']('TrackChangesEditing'),_0x159c79=_0x3c2197['plugins']['has']('TodoListEditing'),_0x1e5f33=!!_0x3c2197['config']['get']('list.multiBlock');function _0x2e97bf(_0x31a204){return{'type':'format','content':''+c(_0x53eaa9,'*Set\x20format:*\x20%0',_0x31a204)};}function _0x12d476(_0x11fcac){return{'type':'format','content':''+c(_0x53eaa9,'*Remove\x20format:*\x20%0',_0x11fcac)};}_0x3e61c6['enableDefaultAttributesIntegration']('numberedList'),_0x3e61c6['enableDefaultAttributesIntegration']('bulletedList'),_0x3e61c6['enableDefaultAttributesIntegration']('customNumberedList'),_0x3e61c6['enableDefaultAttributesIntegration']('customBulletedList'),_0x3e61c6['enableDefaultAttributesIntegration']('indentList'),_0x3e61c6['enableDefaultAttributesIntegration']('outdentList'),_0x3e61c6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3e61c6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3e61c6['registerBlockAttribute']('listItemId'),_0x3e61c6['registerBlockAttribute']('listType'),_0x3e61c6['registerBlockAttribute']('listIndent'),_0x1e5f33&&(_0x3e61c6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3e61c6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x159c79&&(_0x3e61c6['enableDefaultAttributesIntegration']('todoList'),_0x3e61c6['enableDefaultAttributesIntegration']('checkTodoList'),_0x3e61c6['registerBlockAttribute']('todoListChecked'),_0x3e61c6['descriptionFactory']['registerDescriptionCallback'](_0x100012=>{const {data:_0x20633a}=_0x100012;if(_0x20633a&&'todoListChecked'==_0x20633a['key'])return{'type':'format','content':_0x20633a['newValue']?c(_0x53eaa9,'*Check\x20item*'):c(_0x53eaa9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x28caae=>{if(_0x28caae['batch']['isUndo'])return!0x1;let _0x526db6=!0x1;const _0x282683=_0x3e61c6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d5a1b=>'todoListChecked'===_0x3e61c6['_getAttributeKey'](_0x3d5a1b));for(const _0xa06469 of _0x282683){'todo'!=_0xa06469['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3e61c6['_findSuggestions'](_0xa06469['getFirstRange'](),'attribute')['find'](_0x2b006b=>'listType'===_0x3e61c6['_getAttributeKey'](_0x2b006b['suggestion']))||(_0x28caae['removeMarker'](_0xa06469['getFirstMarker']()),_0x526db6=!0x0));}return _0x526db6;})),_0x3e61c6['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x53eaa9,'FORMAT_INDENT'));const _0x20e732={'type':'format','content':''};_0x3e61c6['descriptionFactory']['registerDescriptionCallback'](_0xe655db=>{const {data:_0x101c3c}=_0xe655db;if(!_0x101c3c||'listType'!=_0x101c3c['key'])return;let _0x53801=_0xe655db['head'];for(;_0x53801;){if(_0x53801['data']&&(('listStyle'==_0x53801['data']['key']||'listMarkerStyle'==_0x53801['data']['key'])&&(_0x53801['data']['newValue']&&'default'!=_0x53801['data']['newValue']||'default'!=_0x53801['data']['oldValue']&&!_0x101c3c['newValue'])||!_0x1e5f33&&_0x53801['data']['key']==u))return _0x20e732;_0x53801=_0x53801['next'];}if(null==_0x101c3c['newValue'])switch(_0x101c3c['oldValue']){case'bulleted':return _0x12d476(c(_0x53eaa9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x12d476(c(_0x53eaa9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x12d476(c(_0x53eaa9,'ELEMENT_TODO_LIST'));}switch(_0x101c3c['newValue']){case'bulleted':return _0x2e97bf(c(_0x53eaa9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e97bf(c(_0x53eaa9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e97bf(c(_0x53eaa9,'ELEMENT_TODO_LIST'));}}),_0x3e61c6['descriptionFactory']['registerDescriptionCallback'](_0x7897aa=>{const {data:_0x483757}=_0x7897aa;if(_0x483757&&'listIndent'==_0x483757['key'])return null==_0x483757['newValue']||null==_0x483757['oldValue']&&0x0==_0x483757['newValue']?_0x20e732:void 0x0;}),_0x3e61c6['descriptionFactory']['registerDescriptionCallback'](_0xef6e6f=>{if('attribute'!=_0xef6e6f['type'])return;const {data:_0x12d29e}=_0xef6e6f;if(!_0x12d29e||'listItemId'!=_0x12d29e['key'])return;const _0x57df23=Te(_0xef6e6f);return'newValue'==_0x57df23?{'type':'format','content':c(_0x53eaa9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x57df23?{'type':'format','content':c(_0x53eaa9,'*Split:*\x20list\x20item')}:_0x20e732;}),_0x3c2197['model']['document']['registerPostFixer'](_0x5574c6=>this['listItemIdFixer'](_0x5574c6)),_0x3c2197['model']['document']['registerPostFixer'](_0x3988a=>this['noTrackChangesFixer'](_0x3988a)),_0x3c2197['model']['document']['on']('change:data',(_0x4ffa4b,_0x3c45e3)=>{if(_0x3c45e3['isUndo']||!_0x3c45e3['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4a55b9){if(_0x4a55b9['batch']['isUndo']||!_0x4a55b9['batch']['isLocal'])return!0x1;let _0x19bac5=!0x1;const _0x6cdc75=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33b963=>_0x33b963['data']&&'listItemId'==_0x33b963['data']['key'])['filter'](_0x433935=>_0x433935['data']['newValue']&&_0x433935['data']['oldValue']);for(const _0x1a4967 of _0x6cdc75)Te(_0x1a4967)||(_0x4a55b9['removeMarker'](_0x1a4967['getFirstMarker']()),_0x19bac5=!0x0);return _0x19bac5;}['noTrackChangesFixer'](_0x3b00f4){if(_0x3b00f4['batch']['isUndo']||!_0x3b00f4['batch']['isLocal'])return!0x1;const _0xab65b4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xab65b4['trackChangesCommand']['value'])return!0x1;let _0x3f420e=!0x1;const _0x558fcf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3f100e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x306592=>'attribute'==_0x306592['type'])['filter'](_0xa87211=>_0x558fcf['includes'](_0xa87211['attributeKey']));if(0x0==_0x3f100e['length'])return _0x3f420e;for(const _0x2d0175 of _0x3f100e){const _0x15a700=_0xab65b4['_findSuggestions'](_0x2d0175['range'],'attribute')['filter'](_0x2ee795=>!_0x2ee795['meta']['isNextTo'])['map'](_0x17e724=>_0x17e724['suggestion'])['filter'](_0x4a5b2e=>{const _0x385af2=_0xab65b4['_getAttributeKey'](_0x4a5b2e);return _0x558fcf['includes'](_0x385af2);});if(_0x15a700['length']){for(const _0x5779ad of _0x15a700)_0x3b00f4['removeMarker'](_0x5779ad['getFirstMarker']());_0x3f420e=!0x0;}}return _0x3f420e;}['assureChains'](){const _0x53f115=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d73c7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x35ea77;const _0x3b77fc=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x47f16b=>{if(_0x47f16b['data']['oldRange']||!_0x47f16b['data']['newRange'])return null;if(!_0x47f16b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x135d72}=_0x53f115['_splitMarkerName'](_0x47f16b['name']);if(!_0x53f115['hasSuggestion'](_0x135d72))return null;const _0x48f37b=_0x53f115['getSuggestion'](_0x135d72);return _0x5d73c7['includes'](_0x48f37b['data']['key']);})['map'](_0x18eb69=>{const {id:_0x3f237b}=_0x53f115['_splitMarkerName'](_0x18eb69['name']),_0x5f2064=_0x53f115['getSuggestion'](_0x3f237b);return _0x35ea77=_0x5f2064['attributes']['groupId'],_0x5f2064['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3b77fc['size'])return;const _0x42c2bf=_0x53f115['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb55518=>'attribute'==_0xb55518['type']&&_0xb55518['data']&&_0x5d73c7['includes'](_0xb55518['data']['key'])&&_0xb55518['attributes']['groupId']!=_0x35ea77)['map'](_0x396606=>({'listItem':_0x396606['getFirstRange']()['start']['nodeAfter'],'groupId':_0x396606['attributes']['groupId']})),_0x51a258=new Set();for(const {groupId:_0x1422ea,listItem:_0x277c6a}of _0x42c2bf)_0x3b77fc['has'](_0x277c6a)&&_0x51a258['add'](_0x1422ea);for(const _0x558ef1 of _0x53f115['getSuggestions']())_0x51a258['has'](_0x558ef1['attributes']['groupId'])&&_0x558ef1['setAttribute']('groupId',_0x35ea77);}['_supportLegacySuggestions'](){const _0x36c9f1=this['editor'],_0x10c852=_0x36c9f1['locale'],_0x2d28c8=_0x36c9f1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2d28c8['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1f9388,_0x413030){const _0x33b100=[];for(let _0x3e2f98 of _0x1f9388)_0x3e2f98['start']['nodeAfter']===_0x3e2f98['end']['parent']&&(_0x3e2f98=_0x36c9f1['model']['createRange'](_0x36c9f1['model']['createPositionAt'](_0x3e2f98['start']['nodeAfter'],0x0))),_0x33b100['push'](_0x3e2f98);_0x36c9f1['model']['change'](_0x4fbb6d=>{const _0x1074eb=_0x36c9f1['model']['document']['selection'],_0x1f60ee=Array['from'](_0x1074eb['getRanges']())['map'](_0x1f8451=>_0x27d8bc['fromRange'](_0x1f8451));_0x4fbb6d['setSelection'](_0x33b100),_0x36c9f1['commands']['get'](_0x413030['commandName'])['refresh'](),_0x413030['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x36c9f1['execute'](_0x413030['commandName'],..._0x413030['commandParams']),_0x4fbb6d['setSelection'](_0x1f60ee);for(const _0x41cc51 of _0x1f60ee)_0x41cc51['detach']();});}),_0x2d28c8['descriptionFactory']['registerElementLabel'](function(_0x536298){const _0x13dce7=!_0x36c9f1['model']['schema']['isObject'](_0x536298),_0x37b51c=_0x536298['previousSibling'],_0x1bed10=_0x536298['nextSibling'],_0x9af842=_0x536298['getAttribute']('listItemId'),_0x5a0259=!_0x37b51c||_0x37b51c['getAttribute']('listItemId')!==_0x9af842,_0x16493a=!_0x1bed10||_0x1bed10['getAttribute']('listItemId')!==_0x9af842;return _0x13dce7&&Boolean(_0x9af842)&&_0x5a0259&&_0x16493a;},_0x559be2=>c(_0x10c852,'ELEMENT_LIST_ITEM',_0x559be2));}['_registerLegacyDescription'](){const _0x1416b0=this['editor'],_0xad515=_0x1416b0['locale'];function _0xef531e(_0x5bfba8){const _0x53ff6c=_0x1416b0['commands']['get']('bulletedList')['value'],_0x4f870b=_0x1416b0['commands']['get']('numberedList')['value'];return'numberedList'===_0x5bfba8?_0x53ff6c:_0x4f870b;}_0x1416b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2c3bf4){if('formatBlock'!=_0x2c3bf4['type'])return;const {data:_0x2dcbdd}=_0x2c3bf4;if(!_0x2dcbdd)return;let _0x370bce,_0x1c9a4a,_0x5c7253,_0x754c0c;switch(_0x2dcbdd['commandName']){case'bulletedList':_0x5c7253=_0x2dcbdd['commandParams'][0x0]['forceValue'],_0x754c0c=_0xef531e(_0x2dcbdd['commandName']),_0x370bce=_0x5c7253?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x754c0c&&_0x1416b0['config']['get']('list.multiBlock')||(_0x370bce='*Change\x20to:*\x20%0'),_0x1c9a4a={'type':'format','content':c(_0xad515,_0x370bce,c(_0xad515,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5c7253=_0x2dcbdd['commandParams'][0x0]['forceValue'],_0x754c0c=_0xef531e(_0x2dcbdd['commandName']),_0x370bce=_0x5c7253?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x754c0c&&_0x1416b0['config']['get']('list.multiBlock')||(_0x370bce='*Change\x20to:*\x20%0'),_0x1c9a4a={'type':'format','content':c(_0xad515,_0x370bce,c(_0xad515,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x370bce='*Indent:*\x20%0',_0x1c9a4a={'type':'format','content':c(_0xad515,_0x370bce,c(_0xad515,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x370bce=function(_0x11b214){const _0x2f4e45=_0x11b214['getFirstRange']();let _0x21823f=_0x2f4e45['start']['nodeAfter'];for(;_0x21823f&&_0x2f4e45['containsItem'](_0x21823f);){if(_0x21823f['getAttribute']('listIndent')>0x0)return!0x1;_0x21823f=_0x21823f['nextSibling'];}return!0x0;}(_0x2c3bf4)?c(_0xad515,'*Format:*\x20remove\x20from\x20%0',c(_0xad515,function(_0x56125f){return'ELEMENT_'+_0x56125f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2c3bf4))):c(_0xad515,'*Outdent:*\x20%0',c(_0xad515,'ELEMENT_LIST_ITEM')),_0x1c9a4a={'type':'format','content':_0x370bce};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2dcbdd['multipleBlocks']&&(_0x370bce='*Merge:*\x20%0',_0x1c9a4a={'type':'deletion','content':c(_0xad515,_0x370bce,c(_0xad515,'ELEMENT_LIST_ITEM'))});}return _0x1c9a4a;});}}function Te(_0x3bab03){let _0x39cd42=_0x3bab03['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x39cd42;){const _0x5e5b7b=_0x39cd42['getAttribute']('listItemId');if(!_0x5e5b7b)return!0x1;if(_0x5e5b7b==_0x3bab03['data']['newValue'])return'newValue';if(_0x5e5b7b==_0x3bab03['data']['oldValue'])return'oldValue';_0x39cd42=_0x39cd42['previousSibling'];}return!0x1;}class Se extends _0xc188f5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4f1d3b=this['editor']['config']['get']('list.properties'),_0x1153ab=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f1d3b['styles']&&(_0x1153ab['enableDefaultAttributesIntegration']('listStyle'),_0x1153ab['registerBlockAttribute']('listStyle')),_0x4f1d3b['reversed']&&(_0x1153ab['enableDefaultAttributesIntegration']('listReversed'),_0x1153ab['registerBlockAttribute']('listReversed')),_0x4f1d3b['startIndex']&&(_0x1153ab['enableDefaultAttributesIntegration']('listStart'),_0x1153ab['registerBlockAttribute']('listStart'));const _0x252079={'type':'format','content':''};_0x1153ab['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3a8a74=this['editor']['locale'];_0x1153ab['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3a8a74,'FORMAT_LIST_REVERSED')),_0x1153ab['descriptionFactory']['registerDescriptionCallback'](_0x29adfc=>{const {data:_0x11da31}=_0x29adfc;if(_0x11da31&&'listReversed'==_0x11da31['key'])return null==_0x11da31['newValue']||0x0==_0x11da31['newValue']&&null==_0x11da31['oldValue']?_0x252079:void 0x0;}),_0x1153ab['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3a8a74,'FORMAT_LIST_START')),_0x1153ab['descriptionFactory']['registerDescriptionCallback'](_0x180cde=>{const {data:_0x4d10e3}=_0x180cde;if(_0x4d10e3&&'listStart'==_0x4d10e3['key'])return null==_0x4d10e3['newValue']||0x1==_0x4d10e3['newValue']&&null==_0x4d10e3['oldValue']?_0x252079:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5d1a95=>{if(_0x5d1a95['batch']['isUndo'])return!0x1;let _0x5554e7=!0x1;const _0x2c7b66=_0x1153ab['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x157124=>{const _0x10e1a3=_0x1153ab['_getAttributeKey'](_0x157124);return'listStart'==_0x10e1a3||'listReversed'==_0x10e1a3;});for(const _0xf3d27c of _0x2c7b66){const _0xefec2=_0xf3d27c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xefec2||'customNumbered'==_0xefec2)continue;_0x1153ab['_findSuggestions'](_0xf3d27c['getFirstRange'](),'attribute')['find'](_0x6074e0=>'listType'==_0x1153ab['_getAttributeKey'](_0x6074e0['suggestion']))||(_0x5d1a95['removeMarker'](_0xf3d27c['getFirstMarker']()),_0x5554e7=!0x0);}return _0x5554e7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xa10a5d){const _0x290918=this['editor']['locale'],{data:_0x2d86be}=_0xa10a5d,_0x38a749={'type':'format','content':''};if(!_0x2d86be||'listStyle'!=_0x2d86be['key'])return;if(!_0x2d86be['oldValue'])return'default'==_0x2d86be['newValue']?_0x38a749:{'type':'format','content':''+c(_0x290918,'*Set\x20format:*\x20%0',c(_0x290918,this['_getTranslationKeyForListStyle'](_0x2d86be['newValue'])))};if(!_0x2d86be['newValue']){if('default'==_0x2d86be['oldValue'])return _0x38a749;let _0x21f6f5=_0xa10a5d['head'];for(;_0x21f6f5;){if(_0x21f6f5['data']&&'listType'==_0x21f6f5['data']['key']&&_0x21f6f5['data']['newValue'])return _0x38a749;_0x21f6f5=_0x21f6f5['next'];}return{'type':'format','content':''+c(_0x290918,'*Remove\x20format:*\x20%0',c(_0x290918,this['_getTranslationKeyForListStyle'](_0x2d86be['oldValue'])))};}if('default'!=_0x2d86be['newValue'])return{'type':'format','content':''+c(_0x290918,'*Set\x20format:*\x20%0',c(_0x290918,this['_getTranslationKeyForListStyle'](_0x2d86be['newValue'])))};let _0x59800d=_0xa10a5d['head'];for(;_0x59800d;){if(_0x59800d['data']&&'listType'==_0x59800d['data']['key']&&_0x59800d['data']['newValue']&&_0x59800d['data']['oldValue'])return _0x38a749;_0x59800d=_0x59800d['next'];}return{'type':'format','content':c(_0x290918,'*Set\x20format:*\x20%0',c(_0x290918,'ELEMENT_'+_0xa10a5d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x314ba3=this['editor'],_0x3e9760=_0x314ba3['locale'];_0x314ba3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cd8ec=>{if('formatBlock'!=_0x1cd8ec['type'])return;const {data:_0x120385}=_0x1cd8ec;if(!_0x120385)return;let _0x9637b7,_0x28d008;switch(_0x120385['commandName']){case'listStyle':_0x9637b7='*Change\x20to:*\x20%0',_0x28d008={'type':'format','content':c(_0x3e9760,_0x9637b7,c(_0x3e9760,this['_getTranslationKeyForListStyle'](_0x120385['commandParams'][0x0]['type'])))};break;case'listReversed':_0x9637b7=_0x120385['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x28d008={'type':'format','content':c(_0x3e9760,_0x9637b7)};break;case'listStart':_0x9637b7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x28d008={'type':'format','content':c(_0x3e9760,_0x9637b7,_0x120385['commandParams'][0x0]['startIndex'])};}return _0x28d008;});}['_getTranslationKeyForListStyle'](_0x18e30e){return'ELEMENT_'+function(_0x56846c){if(_e['includes'](_0x56846c))return'bulleted';if(Re['includes'](_0x56846c))return'numbered';return null;}(_0x18e30e)['toUpperCase']()+'_LIST_'+_0x18e30e['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xc188f5{['afterInit'](){const _0x146cfc=this['editor'];_0x146cfc['commands']['get']('emoji')&&_0x146cfc['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0xc188f5{static get['requires'](){return[_0x271c2f];}['init'](){const _0x22c256=this['editor'],_0x5dd823=_0x22c256['plugins']['get']('TrackChangesEditing'),_0x2c8591=_0x22c256['commands']['get']('enter');_0x5dd823['enableCommand']('enter',()=>{_0x22c256['model']['change'](_0x484dd9=>{const _0x33ac37=_0x22c256['model']['document']['selection'],_0x481913=_0x33ac37['getFirstPosition'](),_0x1fbcd3=_0x27d8bc['fromRange'](_0x33ac37['getFirstRange']());if(_0x2c8591['enterBlock'](_0x484dd9)){const _0x1af6b5=_0x22c256['model']['createPositionAt'](_0x481913['parent']['nextSibling'],0x0),_0x5b687d=_0x484dd9['createRange'](_0x481913,_0x1af6b5);_0x5dd823['markInsertion'](_0x5b687d);}else _0x484dd9['setSelection'](_0x484dd9['createRange'](_0x1fbcd3['end']));_0x1fbcd3['detach'](),_0x2c8591['fire']('afterExecute',{'writer':_0x484dd9});});}),_0x22c256['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x22c256,'split'),{'priority':'high'}),_0x22c256['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1c559f,_0x26ab62,_0xc1f360)=>{const _0x36999d=_0xc1f360['mapper']['markerNameToElements'](_0x26ab62['markerName']);if(_0x36999d){for(const _0x2bf500 of _0x36999d)_0x2bf500['hasClass']('ck-suggestion-marker-split')&&(_0xc1f360['mapper']['unbindElementFromMarkerName'](_0x2bf500,_0x26ab62['markerName']),_0xc1f360['writer']['remove'](_0x2bf500));}},{'priority':'high'}),_0x22c256['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1c272c,_0x4a7f7c,_0x51444f)=>{_0x51444f['options']['showSuggestionHighlights']&&Fe(_0x22c256,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1c272c,_0x4a7f7c,_0x51444f);},{'priority':'high'});}}class Z extends _0xc188f5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xdf4693=this['editor']['plugins']['get']('TrackChangesEditing');_0xdf4693['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xdf4693['enableCommand']('findNext'),_0xdf4693['enableCommand']('findPrevious'),_0xdf4693['enableCommand']('replace'),_0xdf4693['enableCommand']('replaceAll');}['handleFindCommand'](_0x26cd28,_0x3f770d,_0x1beadc={}){const _0x3882d7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x26cd28(_0x26fee8=>{let _0x2dc6ff=('string'==typeof _0x3f770d?_0x3882d7['findByTextCallback'](_0x3f770d,_0x1beadc):_0x3f770d)(_0x26fee8);Array['isArray'](_0x2dc6ff)&&(_0x2dc6ff={'results':_0x2dc6ff,'searchText':'string'==typeof _0x3f770d?_0x3f770d:''});const _0x2ed002=_0x2dc6ff['results']['filter'](_0x10bb1d=>!0x1===this['_isInDeletionRange'](_0x10bb1d,_0x26fee8['item']));return{..._0x2dc6ff,'results':_0x2ed002};},_0x1beadc);}['_isInDeletionRange'](_0xb63fee,_0x549076){const _0x2c9a53=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x549076,_0xb63fee['start']),this['editor']['model']['createPositionAt'](_0x549076,_0xb63fee['end']));for(const _0x3ee79 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2c9a53['getIntersection'](_0x3ee79['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 _0xc188f5{['afterInit'](){const _0x30c6c8=this['editor']['locale'],_0x46faf2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x54cb5c,commandName:_0x3fd691}of ro)this['editor']['plugins']['has'](_0x54cb5c)&&(_0x46faf2['enableDefaultAttributesIntegration'](_0x3fd691),_0x46faf2['registerInlineAttribute'](_0x3fd691));_0x46faf2['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x30c6c8,'FORMAT_FONT_SIZE')),_0x46faf2['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x30c6c8,'FORMAT_FONT_FAMILY')),_0x46faf2['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x30c6c8,'FORMAT_FONT_COLOR')),_0x46faf2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x30c6c8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x227045=this['editor'],_0x27e90b=_0x227045['locale'];_0x227045['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x548f7f=>{const _0x39a061=_0x27e90b['t'];if('formatInline'!=_0x548f7f['type'])return;const {data:_0x27174a}=_0x548f7f;if(null!=_0x27174a){if('fontSize'==_0x27174a['commandName']){const _0x5f3fb6=_0x27174a['commandParams'][0x0]['value'];if(_0x5f3fb6){const _0x4f615a=_0x39a061(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x192d1d=>_0x192d1d['model']==_0x5f3fb6)['title'])['toLowerCase']();return{'type':'format','content':c(_0x27e90b,'*Set\x20font\x20size:*\x20%0',_0x4f615a)};}return{'type':'format','content':c(_0x27e90b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x27174a['commandName']){const _0x2d3e23=_0x27174a['commandParams'][0x0]['value'];return _0x2d3e23?{'type':'format','content':c(_0x27e90b,'*Set\x20font\x20family:*\x20%0',_0x2d3e23)}:{'type':'format','content':c(_0x27e90b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x27174a['commandName']){const _0x525a66=_0x27174a['commandParams'][0x0]['value'];if(_0x525a66){const _0xeb8255=_0x137a11(this['editor']['config']['get']('fontColor.colors'))['find'](_0x461bd9=>_0x461bd9['model']==_0x525a66);let _0x3aecfa=_0x525a66,_0x44f4cc='';return _0xeb8255&&(_0x3aecfa=_0xeb8255['label'],_0x44f4cc=_0x39a061(_0x3aecfa)['toLowerCase']()),{'type':'format','content':c(_0x27e90b,'*Set\x20font\x20color:*\x20%0',_0x44f4cc)['trim'](),'color':{'value':_0x525a66,'title':_0x44f4cc||_0x3aecfa}};}return{'type':'format','content':c(_0x27e90b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x27174a['commandName']){const _0x107273=_0x27174a['commandParams'][0x0]['value'];if(_0x107273){const _0x352a35=_0x137a11(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2c9ce8=>_0x2c9ce8['model']==_0x107273);let _0x1dcfe4=_0x107273,_0x5bfdf6='';return _0x352a35&&(_0x1dcfe4=_0x352a35['label'],_0x5bfdf6=_0x39a061(_0x1dcfe4)['toLowerCase']()),{'type':'format','content':c(_0x27e90b,'*Set\x20font\x20background\x20color:*\x20%0',_0x5bfdf6)['trim'](),'color':{'value':_0x107273,'title':_0x5bfdf6||_0x1dcfe4}};}return{'type':'format','content':c(_0x27e90b,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0xc188f5{['afterInit'](){const _0x5444c1=this['editor'],_0x419044=_0x5444c1['plugins']['get']('TrackChangesEditing'),_0x2808c7=_0x5444c1['commands']['get']('copyFormat'),_0x1ead9e=_0x5444c1['commands']['get']('pasteFormat');_0x2808c7&&_0x1ead9e&&(_0x419044['enableDefaultAttributesIntegration']('pasteFormat'),_0x419044['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2e299a=this['editor'],_0x34f797=_0x2e299a['locale'];_0x2e299a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x219396=>{if('formatBlock'!=_0x219396['type']&&'formatInline'!=_0x219396['type'])return;const {data:_0x32dacd}=_0x219396;if(_0x32dacd&&'pasteFormat'===_0x32dacd['commandName']){const _0x2f403a=[],_0x3cb4c0=_0x32dacd['commandParams'][0x0];for(const [_0x5c4f94,_0x271939]of Object['entries'](_0x3cb4c0))_0x2f403a['push'](so(_0x2e299a,_0x5c4f94,_0x271939));return _0x2f403a['length']?{'type':'format','content':c(_0x34f797,'*Set\x20format\x20to:*\x20%0',_0x2f403a['join'](',\x20'))}:{'type':'format','content':c(_0x34f797,'*Remove\x20all\x20formatting*')};}});}}function so(_0x481efc,_0x164432,_0x22a881){const _0x3e579b=_0x481efc['locale']['t'],_0x458ad4=_0x164432['split'](/(?=[A-Z])/)['join']('\x20'),_0x4cb312=_0x3e579b(_0x458ad4['charAt'](0x0)['toUpperCase']()+_0x458ad4['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x22a881)return _0x4cb312;if('fontColor'===_0x164432||'fontBackgroundColor'===_0x164432){const _0x3f62aa=_0x137a11(_0x481efc['config']['get']('fontColor.colors'))['find'](_0xba87e3=>_0xba87e3['model']==_0x22a881);return _0x4cb312+'\x20('+(_0x3f62aa?_0x3e579b(_0x3f62aa['label'])['toLowerCase']():_0x22a881)+')';}if('fontSize'===_0x164432&&isNaN(parseFloat(_0x22a881))){const _0x394db2=_0x481efc['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x481efc['config']['get']('fontSize.options'))['find'](_0x2c3f66=>_0x2c3f66['model']==_0x22a881);return _0x4cb312+'\x20('+(_0x394db2?_0x3e579b(_0x394db2['title'])['toLowerCase']():_0x22a881)+')';}return _0x4cb312+'\x20('+_0x22a881+')';}class nt extends _0xc188f5{['_headingOptions'];['afterInit'](){const _0x5eb258=this['editor'];if(!_0x5eb258['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5eb258['config']['get']('heading.options');const _0x437c47=_0x5eb258['locale'],_0x531678=_0x5eb258['plugins']['get']('TrackChangesEditing');_0x531678['enableDefaultAttributesIntegration']('heading');for(const _0x2d3061 of this['_headingOptions'])'paragraph'!=_0x2d3061['model']&&_0x531678['descriptionFactory']['registerElementLabel'](_0x2d3061['model'],_0x223302=>{const _0x3e1819=this['_getHeadingLevel'](_0x2d3061['model']);return null!==_0x3e1819?_0x1bb3a7(_0x223302,_0x3e1819):_0x389563(_0x223302,_0x2d3061['title']);});function _0x1bb3a7(_0x14e5de,_0x3864d8){return c(_0x437c47,'ELEMENT_HEADING',[_0x14e5de,_0x3864d8]);}function _0x389563(_0x2cf82c,_0x1cd44b){return c(_0x437c47,'ELEMENT_HEADING_CUSTOM',[_0x2cf82c,_0x1cd44b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x223467=this['editor'],_0x1f6c9d=_0x223467['locale'];function _0x2e558d(_0x15b79d,_0xecebc6){return c(_0x1f6c9d,'ELEMENT_HEADING_CUSTOM',[_0x15b79d,_0xecebc6]);}_0x223467['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19f06b=>{if('formatBlock'!=_0x19f06b['type'])return;const {data:_0x15b37b}=_0x19f06b;if(_0x15b37b&&'heading'==_0x15b37b['commandName']){const _0x5088c8=_0x15b37b['commandParams'][0x0]['value'],_0x4d048c=this['_getHeadingLevel'](_0x5088c8);if(null!==_0x4d048c)return{'type':'format','content':c(_0x1f6c9d,'*Change\x20to:*\x20%0',(_0x15bab2=0x1,_0x47d07c=_0x4d048c,c(_0x1f6c9d,'ELEMENT_HEADING',[_0x15bab2,_0x47d07c])))};const _0x154e5f=this['_headingOptions']['find'](_0x3180af=>_0x3180af['model']===_0x5088c8)['title'];return{'type':'format','content':c(_0x1f6c9d,'*Change\x20to:*\x20%0',_0x2e558d(0x1,_0x154e5f))};}var _0x15bab2,_0x47d07c;});}['_getHeadingLevel'](_0x2b4cee){const _0x12ac11=_0x2b4cee['match'](/^heading(\d+)/);if(_0x12ac11)return _0x12ac11[0x1];const _0xd6f252=this['_headingOptions']?.['find'](_0x48f35d=>_0x48f35d['model']==_0x2b4cee);if(_0xd6f252&&_0xd6f252['view']){const _0x51d8b4=_0xd6f252['view'],_0xfd8f7d=(_0x51d8b4['name']??_0x51d8b4)['match'](/^h(\d+)/);if(_0xfd8f7d)return _0xfd8f7d[0x1];}return null;}}class it extends _0xc188f5{['afterInit'](){const _0x55e2b9=this['editor'];if(!_0x55e2b9['plugins']['has']('HighlightEditing'))return;const _0x19f429=_0x55e2b9['plugins']['get']('TrackChangesEditing'),_0x24187a=_0x55e2b9['locale'];_0x19f429['enableDefaultAttributesIntegration']('highlight'),_0x19f429['registerInlineAttribute']('highlight'),_0x19f429['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x24187a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc1489=this['editor'],_0x264b49=_0xc1489['locale'];_0xc1489['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1044b0=>{if('formatInline'!=_0x1044b0['type'])return;const {data:_0x1edba2}=_0x1044b0;if(_0x1edba2&&'highlight'==_0x1edba2['commandName']){const _0x1a4810=_0x264b49['t'],_0xdd7d98=_0x1edba2['commandParams'][0x0]['value'];if(_0xdd7d98){const _0x18066c=_0xc1489['config']['get']('highlight.options')['find'](_0x552f6b=>_0x552f6b['model']==_0xdd7d98),_0x46b593=_0x1a4810(_0x18066c['title'])['toLowerCase']();return{'type':'format','content':c(_0x264b49,'*Set\x20highlight:*\x20%0',_0x46b593),'color':{'value':_0x18066c['color'],'title':_0x18066c['title']}};}return{'type':'format','content':c(_0x264b49,'*Remove\x20highlight*',c(_0x264b49,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0xc188f5{['afterInit'](){const _0x22eb3f=this['editor'];if(!_0x22eb3f['plugins']['has']('HorizontalLineEditing'))return;_0x22eb3f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x27e6e1=_0x22eb3f['plugins']['get']('TrackChangesEditing'),_0x1d48bb=_0x22eb3f['locale'];_0x27e6e1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x53858f=>c(_0x1d48bb,'ELEMENT_HORIZONTAL_LINE',_0x53858f)),_0x22eb3f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x431d24,{writer:_0x580e78,options:_0x3abfef})=>{if(!_0x3abfef['showSuggestionHighlights'])return null;const _0x57c7e5=_0x580e78['createContainerElement']('div'),_0x461e02=_0x580e78['createEmptyElement']('hr');return _0x580e78['addClass']('ck-horizontal-line',_0x57c7e5),_0x580e78['insert'](_0x580e78['createPositionAt'](_0x57c7e5,0x0),_0x461e02),_0x57c7e5;},'converterPriority':'high'});}}class ot extends _0xc188f5{['afterInit'](){const _0x275061=this['editor'];if(!_0x275061['plugins']['has']('HtmlEmbed'))return;const _0x233a16=_0x275061['plugins']['get']('TrackChangesEditing'),_0x2df1c2=_0x275061['locale'];_0x233a16['descriptionFactory']['registerElementLabel']('rawHtml',_0x30b058=>c(_0x2df1c2,'ELEMENT_HTML_EMBED',_0x30b058)),_0x233a16['enableDefaultAttributesIntegration']('htmlEmbed'),_0x233a16['registerBlockAttribute']('value'),_0x233a16['descriptionFactory']['registerDescriptionCallback'](_0x32ce2b=>{if('attribute'!=_0x32ce2b['type'])return;const {data:_0x2dad6f}=_0x32ce2b;if(_0x2dad6f&&'value'==_0x2dad6f['key']&&_0x32ce2b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4671ce=c(_0x2df1c2,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2df1c2,'*Change\x20%0\x20content*',_0x4671ce)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x334f3a=this['editor'],_0x71eaf3=_0x334f3a['locale'];_0x334f3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ca5a9=>{if('formatBlock'!=_0x4ca5a9['type'])return;const {data:_0x13f1f3}=_0x4ca5a9;if(_0x13f1f3&&'htmlEmbed'==_0x13f1f3['commandName']){const _0x5b0b73=c(_0x71eaf3,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x71eaf3,'*Change\x20%0\x20content*',_0x5b0b73)};}});}}class rt extends _0xc188f5{['afterInit'](){const _0xfcfe20=this['editor'];if(!_0xfcfe20['plugins']['has']('ImageEditing'))return;const _0x1c051c=_0xfcfe20['plugins']['get']('TrackChangesEditing'),_0x31146e=_0xfcfe20['plugins']['get']('ImageUtils'),_0x6b39e7=_0xfcfe20['locale'];_0x1c051c['enableCommand']('insertImage'),_0x1c051c['descriptionFactory']['registerElementLabel']('imageBlock',_0x660f59=>c(_0x6b39e7,'ELEMENT_IMAGE',_0x660f59)),_0x1c051c['descriptionFactory']['registerElementLabel']('imageInline',_0x1c20c5=>c(_0x6b39e7,'ELEMENT_INLINE_IMAGE',_0x1c20c5)),_0x1c051c['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x6b39e7,'ELEMENT_CAPTION')),_0xfcfe20['plugins']['has']('ImageUploadEditing')&&_0x1c051c['enableCommand']('uploadImage'),_0xfcfe20['plugins']['has']('ImageBlockEditing')&&_0xfcfe20['plugins']['has']('ImageInlineEditing')&&(_0x1c051c['enableCommand']('imageTypeInline',(_0x5617db,_0x46f3c6)=>{const _0x557389=_0x31146e['getClosestSelectedImageElement'](_0xfcfe20['model']['document']['selection']);_0xfcfe20['model']['change'](()=>{_0x1c051c['markBlockFormat'](_0x557389,{'commandName':'imageTypeInline','commandParams':[_0x46f3c6]},[],'convertBlockImageToInline');});}),_0x1c051c['enableCommand']('imageTypeBlock',(_0x27026d,_0x1ce31d)=>{_0xfcfe20['model']['change'](_0x5b9e38=>{let _0x104912=_0x31146e['getClosestSelectedImageElement'](_0xfcfe20['model']['document']['selection']),_0x5cbf81=_0x5b9e38['createRangeOn'](_0x104912);const _0x1d00ed=_0x216c64['fromPosition'](_0x5cbf81['start'],'toPrevious'),_0x46ce84=_0x216c64['fromPosition'](_0x5cbf81['end'],'toNext');_0x1c051c['forceDefaultExecution'](()=>_0x27026d(_0x1ce31d)),_0x104912=_0x31146e['getClosestSelectedImageElement'](_0xfcfe20['model']['document']['selection']),_0x5cbf81=_0x5b9e38['createRangeOn'](_0x104912);const _0x57e33a=_0x5b9e38['createRange'](_0x1d00ed,_0x46ce84);_0x1d00ed['detach'](),_0x46ce84['detach'](),_0x1c051c['markBlockFormat'](_0x104912,{'commandName':'imageTypeInline','commandParams':[_0x1ce31d]},[],'convertInlineImageToBlock'),_0x57e33a['start']['isBefore'](_0x5cbf81['start'])&&_0x1c051c['markInsertion'](_0x5b9e38['createRange'](_0x57e33a['start'],_0x5cbf81['start']),'convertInlineImageToBlock'),_0x5cbf81['end']['isBefore'](_0x57e33a['end'])&&_0x1c051c['markInsertion'](_0x5b9e38['createRange'](_0x5cbf81['end'],_0x57e33a['end']),'convertInlineImageToBlock');});}),_0x1c051c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1c051c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1c051c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1c051c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1c051c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1c051c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3b96d6])=>{const _0x115206=_0x1c051c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x386ee2=_0x3b96d6['start'],_0x2ea14e=_0x3b96d6['end'];const _0x48b8b0=_0xfcfe20['model']['schema']['getNearestSelectionRange'](_0x386ee2,'backward'),_0x3f72bb=_0xfcfe20['model']['schema']['getNearestSelectionRange'](_0x2ea14e,'forward');_0x48b8b0['isCollapsed']&&(_0x386ee2=_0x48b8b0['start']),_0x3f72bb['isCollapsed']&&(_0x2ea14e=_0x3f72bb['end']),_0x115206([_0xfcfe20['model']['createRange'](_0x386ee2,_0x2ea14e)]);}),_0x1c051c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x14e241),_0x1c051c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x14e241)),_0xfcfe20['plugins']['has']('ImageCaptionEditing')&&(_0x1c051c['enableCommand']('toggleImageCaption',(_0x2b2454,_0x3d909b)=>{const _0x3dd126=_0xfcfe20['plugins']['get']('ImageCaptionUtils');let _0x1d125e=_0x31146e['getClosestSelectedImageElement'](_0xfcfe20['model']['document']['selection']),_0x2455d1=_0x3dd126['getCaptionFromImageModelElement'](_0x1d125e);_0xfcfe20['model']['change'](()=>{if(_0x2455d1)return void _0x1c051c['markDeletion'](_0xfcfe20['model']['createRangeOn'](_0x2455d1));const _0x4fff8a=_0x31146e['isBlockImage'](_0x1d125e);_0x2b2454(_0x3d909b),_0x1d125e=_0x31146e['getClosestSelectedImageElement'](_0xfcfe20['model']['document']['selection']),_0x2455d1=_0x3dd126['getCaptionFromImageModelElement'](_0x1d125e),_0x1c051c['markInsertion'](_0xfcfe20['model']['createRangeOn'](_0x2455d1),_0x4fff8a?null:'imageCaption');});}),_0x1c051c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x14e241));const _0x147f43=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x238666(_0xa03428,_0x26ecd2){const _0x22b472=_0x147f43['findIndex'](({type:_0x2a5be2,subType:_0x2d1541})=>_0xa03428['type']==_0x2a5be2&&_0xa03428['subType']==_0x2d1541),_0x303061=_0x147f43['findIndex'](({type:_0x132d02,subType:_0x3f5c05})=>_0x26ecd2['type']==_0x132d02&&_0x26ecd2['subType']==_0x3f5c05);if(_0x22b472<0x0||_0x303061<0x0)return!0x1;const _0x86ba99=_0xa03428['getFirstRange'](),_0x351fab=_0x26ecd2['getFirstRange']();if((0x0==_0x22b472||0x1==_0x22b472)&&0x2==_0x303061&&_0x86ba99['isIntersecting'](_0x351fab))return!0x0;if(0x2==_0x22b472&&0x3==_0x303061){const _0x5b69f9=_0x1c051c['_findSuggestions'](_0x86ba99,'insertion')['filter'](({suggestion:_0x5bcc9a,meta:_0x1ac9b3})=>_0x1ac9b3['isOwn']&&'convertInlineImageToBlock'==_0x5bcc9a['subType']);if(_0x5b69f9['length']>0x1&&_0x351fab['end']['isEqual'](_0x86ba99['start']))return!0x0;if(0x1==_0x5b69f9['length']&&(_0x86ba99['start']['isEqual'](_0x351fab['end'])||_0x86ba99['end']['isEqual'](_0x351fab['start'])))return!0x0;}if(0x3==_0x22b472&&0x3==_0x303061&&_0x86ba99['start']['isBefore'](_0x351fab['start'])){const _0x3aa883=_0x86ba99['end']['nodeAfter'],_0x200245=_0x351fab['start']['nodeBefore'];return _0x31146e['isBlockImage'](_0x3aa883)&&_0x3aa883===_0x200245;}return!0x1;}function _0x14e241(_0x41b0ee,_0x14efd0){return _0x238666(_0x41b0ee,_0x14efd0)?[_0x41b0ee,_0x14efd0]:_0x238666(_0x14efd0,_0x41b0ee)?[_0x14efd0,_0x41b0ee]:null;}_0xfcfe20['plugins']['has']('ImageResize')&&(_0x1c051c['enableDefaultAttributesIntegration']('resizeImage'),_0x1c051c['registerBlockAttribute']('resizedWidth'),_0x1c051c['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x6b39e7,'FORMAT_IMAGE_SIZE'))),_0xfcfe20['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1c051c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1c051c['registerBlockAttribute']('alt')),_0xfcfe20['plugins']['has']('PictureEditing')&&(_0x1c051c['registerBlockAttribute']('sources'),_0x1c051c['descriptionFactory']['registerDescriptionCallback'](_0x1e94c3=>{if('attribute'!=_0x1e94c3['type'])return;const {data:_0x776ad2}=_0x1e94c3;return _0x776ad2&&'sources'==_0x776ad2['key']?{'type':'format','content':''}:void 0x0;})),_0xfcfe20['plugins']['has']('ImageSizeAttributes')&&(_0x1c051c['registerBlockAttribute']('width'),_0x1c051c['registerBlockAttribute']('height'),_0x1c051c['descriptionFactory']['registerDescriptionCallback'](_0x178ec7=>{if('attribute'!=_0x178ec7['type'])return;const {data:_0xd61f4c}=_0x178ec7;return!_0xd61f4c||'width'!=_0xd61f4c['key']&&'height'!=_0xd61f4c['key']?void 0x0:{'type':'format','content':''};})),_0x1c051c['descriptionFactory']['registerDescriptionCallback'](_0x793fce=>{if(!!_0x147f43['find'](({type:_0x56c921,subType:_0x2f4b2c})=>_0x793fce['type']==_0x56c921&&_0x793fce['subType']==_0x2f4b2c))return _0x793fce['previous']?{}:void 0x0;}),_0x1c051c['descriptionFactory']['registerDescriptionCallback'](_0x4764bd=>{if('insertion'==_0x4764bd['type']||'deletion'==_0x4764bd['type']){const _0x4c9c91=_0x4764bd['getContainedElement']();if(_0x4c9c91&&_0x4c9c91['is']('element','caption'))return{'type':'insertion'==_0x4764bd['type']?'addObject':'removeObject','element':_0x4c9c91,'quantity':0x1};}}),_0x1c051c['descriptionFactory']['registerDescriptionCallback'](_0x562706=>'formatBlock'==_0x562706['type']&&'convertInlineImageToBlock'==_0x562706['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x562706['type']&&'convertBlockImageToInline'==_0x562706['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1c051c['descriptionFactory']['registerDescriptionCallback'](_0x10c320=>{if('attribute'!=_0x10c320['type'])return;const {data:_0x101c85}=_0x10c320;if(!_0x101c85||'alt'!=_0x101c85['key'])return;const _0x28cfc3=_0x101c85['newValue'];return _0x28cfc3?{'type':'format','content':c(_0x6b39e7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x28cfc3+'\x22')}:{'type':'format','content':c(_0x6b39e7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x283f98=this['editor'],_0x5c918c=_0x283f98['locale'];_0x283f98['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xaf38e3=>{if('formatBlock'!=_0xaf38e3['type']&&'formatInline'!=_0xaf38e3['type'])return;const {data:_0x506365}=_0xaf38e3;if(_0x506365){if('imageTextAlternative'==_0x506365['commandName']){const _0x30cbed=_0x506365['commandParams'][0x0]['newValue'];return _0x30cbed?{'type':'format','content':c(_0x5c918c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x30cbed+'\x22')}:{'type':'format','content':c(_0x5c918c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x506365['commandName']){const _0x209cde=_0x506365['commandParams'][0x0]['width'];return _0x209cde?{'type':'format','content':c(_0x5c918c,'*Set\x20image\x20width:*\x20%0',_0x209cde)}:{'type':'format','content':c(_0x5c918c,'*Reset\x20image\x20width*')};}}});}}class at extends _0xc188f5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x20c092=this['editor']['locale'],_0x1fa4ea=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fa4ea['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1fa4ea['registerBlockAttribute']('src'),_0x1fa4ea['descriptionFactory']['registerDescriptionCallback'](_0x4096d9=>{if('attribute'!=_0x4096d9['type'])return;const {data:_0x1c6f62}=_0x4096d9;return _0x1c6f62&&'src'==_0x1c6f62['key']?_0x1c6f62['newValue']&&_0x1c6f62['oldValue']?{'type':'format','content':c(_0x20c092,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3cdf6d=this['editor']['plugins']['get']('TrackChangesEditing');_0x3cdf6d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3cdf6d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3cdf6d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3cdf6d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d451d=this['editor'],_0x5b2d6e=_0x1d451d['locale'];_0x1d451d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e1959=>{if('formatBlock'!=_0x1e1959['type']&&'formatInline'!=_0x1e1959['type'])return;const {data:_0x13c327}=_0x1e1959;if(!_0x13c327||'replaceImageSource'!=_0x13c327['commandName'])return;return{'type':'format','content':c(_0x5b2d6e,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0xc188f5{['afterInit'](){const _0xfd7ac6=this['editor'];if(!_0xfd7ac6['plugins']['has']('ImageStyleEditing'))return;const _0x4e579c=_0xfd7ac6['plugins']['get']('TrackChangesEditing'),_0x1168e1=_0xfd7ac6['plugins']['get']('ImageUtils'),_0x370994={};_0x4e579c['enableCommand']('imageStyle',(_0x327877,_0x413b20)=>{const _0x1dce66=_0xfd7ac6['plugins']['get']('Users')['me'],_0x6d77f8=_0xfd7ac6['commands']['get']('imageStyle');let _0x25fecb=_0x1168e1['getClosestSelectedImageElement'](_0xfd7ac6['model']['document']['selection']),_0x5103ba=_0xfd7ac6['model']['createRangeOn'](_0x25fecb),_0x2143b0=_0x6d77f8['value'];if(_0x2143b0==_0x413b20['value'])return;const _0x49b1d3={'commandName':'imageStyle','commandParams':[_0x413b20],'formatGroupId':_0x543158()};_0xfd7ac6['model']['change'](()=>{if(_0x4e579c['getSuggestions']()['filter'](_0x48a632=>_0x48a632['isInContent']&&_0x1dce66==_0x48a632['author']&&('formatBlock'==_0x48a632['type']||'formatInline'==_0x48a632['type'])&&('imageStylePreApply'==_0x48a632['subType']||'imageStylePostApply'==_0x48a632['subType'])&&_0x48a632['getFirstRange']()['isEqual'](_0x5103ba))['forEach'](_0x20281a=>_0x4e579c['discardSuggestion'](_0x20281a['head'])),_0x25fecb=_0x1168e1['getClosestSelectedImageElement'](_0xfd7ac6['model']['document']['selection']),_0x5103ba=_0xfd7ac6['model']['createRangeOn'](_0x25fecb),_0x6d77f8['refresh'](),_0xfd7ac6['commands']['get']('imageTypeInline')['refresh'](),_0xfd7ac6['commands']['get']('imageTypeBlock')['refresh'](),_0x2143b0=_0x6d77f8['value'],_0x2143b0!=_0x413b20['value'])return _0x1168e1['isInlineImage'](_0x25fecb)&&_0x6d77f8['shouldConvertImageType'](_0x413b20['value'],_0x25fecb)?(_0x327877({..._0x413b20,'setImageSizes':!0x1}),_0x25fecb=_0x1168e1['getClosestSelectedImageElement'](_0xfd7ac6['model']['document']['selection']),void _0x4e579c['markBlockFormat'](_0x25fecb,{..._0x49b1d3,'commandReversedParams':[{'value':_0x2143b0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1168e1['isBlockImage'](_0x25fecb)?_0x4e579c['markBlockFormat'](_0x25fecb,_0x49b1d3,[],'imageStylePostApply'):_0x4e579c['markInlineFormat'](_0x5103ba,_0x49b1d3,'imageStylePostApply'));});});for(const _0x2bb2da of _0xfd7ac6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x370994[_0x2bb2da['name']]=_0x2bb2da['title']['toLowerCase']();_0x4e579c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4e579c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4e579c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4e579c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x59ba55])=>{_0x1168e1['setImageNaturalSizeAttributes'](_0x59ba55['getContainedElement']());}),_0x4e579c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x13e7d2,_0x4f770c)=>{_0x4e579c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x13e7d2,{'commandName':_0x4f770c['commandName'],'commandParams':_0x4f770c['commandReversedParams']});}),_0x4e579c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x286db8,_0x266670){if(_0x958e84(_0x286db8,_0x266670))return[_0x286db8,_0x266670];if(_0x958e84(_0x266670,_0x286db8))return[_0x266670,_0x286db8];return null;});const _0x561f38=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x958e84(_0x30ef1b,_0x310ae8){const _0x50b175=_0x561f38['findIndex'](({type:_0x6e01b7,subType:_0x9273ec})=>_0x30ef1b['type']==_0x6e01b7&&_0x30ef1b['subType']==_0x9273ec),_0x16766c=_0x561f38['findIndex'](({type:_0x36ef64,subType:_0x152325})=>_0x310ae8['type']==_0x36ef64&&_0x310ae8['subType']==_0x152325);if(_0x50b175<0x0||_0x16766c<0x0)return!0x1;const _0x3eb6bd=_0x30ef1b['getFirstRange'](),_0x76713=_0x310ae8['getFirstRange']();if((0x0==_0x50b175||0x1==_0x50b175)&&0x2==_0x16766c&&_0x3eb6bd['isIntersecting'](_0x76713))return!0x0;if(0x2==_0x50b175&&0x3==_0x16766c){const _0x182066=_0x4e579c['_findSuggestions'](_0x3eb6bd,'insertion')['filter'](({suggestion:_0x4d3ac9,meta:_0x46d477})=>_0x46d477['isOwn']&&'convertInlineImageToBlock'==_0x4d3ac9['subType']);if(_0x182066['length']>0x1&&_0x76713['end']['isEqual'](_0x3eb6bd['start']))return!0x0;if(0x1==_0x182066['length']&&(_0x3eb6bd['start']['isEqual'](_0x76713['end'])||_0x3eb6bd['end']['isEqual'](_0x76713['start'])))return!0x0;}if(0x3==_0x50b175&&0x3==_0x16766c&&_0x3eb6bd['start']['isBefore'](_0x76713['start'])){const _0x3d54db=_0x3eb6bd['end']['nodeAfter'],_0x133005=_0x76713['start']['nodeBefore'];return _0x1168e1['isBlockImage'](_0x3d54db)&&_0x3d54db===_0x133005;}return!0x1;}_0xfd7ac6['model']['document']['registerPostFixer'](()=>{let _0x22f747=!0x1;const _0x48f9d2=Array['from'](_0xfd7ac6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ff073,data:_0xe28867}of _0x48f9d2){const {group:_0x5e15a1,type:_0x3b174e,subType:_0x12785a,id:_0x1012bb}=_0x4e579c['_splitMarkerName'](_0x3ff073);if('suggestion'==_0x5e15a1&&_0x4e579c['hasSuggestion'](_0x1012bb)){if('formatBlock'==_0x3b174e&&('imageStylePreApply'==_0x12785a||'imageStylePostApply'==_0x12785a)){const _0x5f0122=_0x4e579c['getSuggestion'](_0x1012bb);if(_0xe28867['newRange']){const _0x200887=_0x5f0122['getFirstRange']()['getContainedElement']();if(_0x1168e1['isBlockImage'](_0x200887))continue;_0x4e579c['discardSuggestion'](_0x5f0122),_0x22f747=!0x0;}}if('insertion'==_0x3b174e&&'imageCaption'==_0x12785a&&!_0xe28867['newRange']){const _0xae149e=_0x4e579c['getSuggestion'](_0x1012bb);_0xae149e['next']&&_0xae149e['next']['isInContent']&&(_0x4e579c['discardSuggestion'](_0xae149e['next']),_0x22f747=!0x0);}}}return _0x22f747;}),this['_registerLegacyDescription'](_0x370994);}['_registerLegacyDescription'](_0x388f61){const _0x3072cd=this['editor'],_0x171c22=_0x3072cd['locale'];_0x3072cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1beed7=>{if('formatBlock'!=_0x1beed7['type']&&'formatInline'!=_0x1beed7['type'])return;const {data:_0x37ca22}=_0x1beed7;if(!_0x37ca22||'imageStyle'!=_0x37ca22['commandName'])return;const _0x400a38=_0x37ca22['commandParams'][0x0]['value'];return _0xfde75c('side'===_0x400a38?c(_0x171c22,'FORMAT_SIDE_IMAGE'):_0x388f61[_0x400a38]||_0x400a38);function _0xfde75c(_0x550f1f){return{'type':'format','content':c(_0x171c22,'*Format:*\x20%0',_0x550f1f)};}});}}class ut extends _0xc188f5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x128f0b){super(_0x128f0b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x13b770=this['editor'],_0x3190e8=_0x13b770['commands']['get']('importWord'),_0x2853be=_0x13b770['commands']['get']('trackChanges');_0x3190e8&&(_0x3190e8['on']('execute',(_0x44574f,[,_0x1e65ff])=>{this['_trackChangesValueDuringImport']=_0x2853be['value'],_0x1e65ff['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3190e8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3190e8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2853be['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x13b770['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x549d46,_0x27351f){const {suggestions:_0x5e0b57}=_0x27351f,_0x2d012f=this['editor']['commands']['get']('trackChanges'),_0x1ec315=_0x2d012f['value'];this['_trackChangesValueDuringImport']!==_0x1ec315&&(_0x2d012f['execute'](),this['_trackChangesExecuted']=!0x0),_0x5e0b57&&_0x5e0b57['forEach'](({id:_0x29fee4,type:_0x1eb646,author:_0x32c40f,created_at:_0x2276ac})=>{const _0xca2a2a={'id':_0x29fee4,'type':_0x1eb646,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x32c40f,'createdAt':_0x2276ac?new Date(_0x2276ac):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xca2a2a);});}}class ft extends _0xc188f5{['afterInit'](){const _0x579a9f=this['editor'],_0x54469b=_0x579a9f['plugins']['get']('TrackChangesEditing');if(_0x579a9f['plugins']['has']('IndentEditing')&&(_0x54469b['enableCommand']('indent'),_0x54469b['enableCommand']('outdent')),_0x579a9f['plugins']['has']('IndentBlock')){for(const _0x6e8d16 of['indentBlock','outdentBlock'])_0x54469b['enableDefaultAttributesIntegration'](_0x6e8d16);}const _0x5213e1=_0x579a9f['locale'];_0x54469b['registerBlockAttribute']('blockIndent'),_0x54469b['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5213e1,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x481f28=this['editor'],_0x5c5ff8=_0x481f28['locale'],_0x322222=_0x481f28['plugins']['get']('TrackChangesEditing');_0x322222['descriptionFactory']['registerDescriptionCallback'](_0x1d4cb1=>{if('formatBlock'!=_0x1d4cb1['type'])return;const {data:_0x4d425b}=_0x1d4cb1;if(!_0x4d425b)return;if('indentBlock'!=_0x4d425b['commandName']&&'outdentBlock'!=_0x4d425b['commandName'])return;const _0x47857f=_0x1d4cb1['getItems']()[0x0],_0x534ec9=_0x322222['descriptionFactory']['getItemLabel'](_0x47857f);return'indentBlock'==_0x4d425b['commandName']?{'type':'format','content':c(_0x5c5ff8,'*Indent:*\x20%0',_0x534ec9)}:'outdentBlock'==_0x4d425b['commandName']?{'type':'format','content':c(_0x5c5ff8,'*Outdent:*\x20%0',_0x534ec9)}:void 0x0;});}}class ht extends _0xc188f5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0xc188f5{['afterInit'](){const _0x19a890=this['editor'];if(!_0x19a890['plugins']['has']('LinkEditing'))return;const _0x3f59e9=_0x19a890['plugins']['get']('TrackChangesEditing'),_0x13517a=_0x19a890['commands']['get']('link');_0x3f59e9['enableDefaultAttributesIntegration']('link'),_0x3f59e9['enableDefaultAttributesIntegration']('unlink'),_0x3f59e9['registerInlineAttribute']('linkHref');for(const _0x58cf87 of _0x13517a['manualDecorators'])_0x3f59e9['registerInlineAttribute'](_0x58cf87['id']),_0x3f59e9['descriptionFactory']['registerAttributeLabel'](_0x58cf87['id'],'link\x20('+_0x58cf87['label']['toLowerCase']()+')');_0x3f59e9['descriptionFactory']['registerDescriptionCallback'](_0x5c2129=>{if('attribute'!=_0x5c2129['type'])return;const {data:_0xc96fe}=_0x5c2129;if(!_0xc96fe||'linkHref'!=_0xc96fe['key'])return;const _0x17efba=_0xc96fe['newValue'],_0x285cf2=_0x19a890['locale'];return{'type':'format','content':null==_0x17efba?c(_0x285cf2,'*Remove\x20link*'):c(_0x285cf2,'*Set\x20link:*\x20%0','\x22'+_0x17efba+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fbed2=this['editor'],_0x1cc1d9=_0x4fbed2['locale'];_0x4fbed2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x239599=>{if('formatInline'!=_0x239599['type'])return;const {data:_0x28364f}=_0x239599;if(_0x28364f){if('link'==_0x28364f['commandName']){const _0x2702aa=_0x28364f['commandParams'][0x0];return{'type':'format','content':c(_0x1cc1d9,'*Set\x20link:*\x20%0','\x22'+_0x2702aa+'\x22')};}return'unlink'==_0x28364f['commandName']?{'type':'format','content':c(_0x1cc1d9,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0xc188f5{['afterInit'](){const _0x518fee=this['editor'],_0x1094f9=_0x518fee['locale'];if(!_0x518fee['plugins']['has']('LegacyListEditing'))return;const _0x5e8eea=_0x518fee['plugins']['get']('TrackChangesEditing'),_0x1407aa=_0x518fee['plugins']['has']('LegacyTodoListEditing');function _0x2d9d7f(_0x44befb){return()=>{const _0x2f05dd=_0x518fee['model']['document']['selection'],_0x1f6370=_0x518fee['commands']['get'](_0x44befb);if(_0x1f6370['value'])return void _0x518fee['execute']('paragraph',{});const _0x41f306=_0x44befb['slice'](0x0,-0x4),_0x158876=function(_0x1c434d,_0x6273d,_0x499bd4){let _0x152eee=Array['from'](_0x1c434d)['filter'](_0x3bc3e6=>function(_0xd6368b,_0x48d095){return _0x48d095['checkChild'](_0xd6368b['parent'],'listItem')&&!_0x48d095['isObject'](_0xd6368b);}(_0x3bc3e6,_0x499bd4));_0x152eee=_0x152eee['filter'](_0x25b127=>!_0x25b127['is']('element','listItem')||_0x25b127['getAttribute']('listType')!=_0x6273d);const _0x4b5bd2=new Set();for(const _0x4ea886 of _0x152eee)_0x4ea886['is']('element','listItem')?_0x4b5bd2['add'](Le(_0x4ea886)):_0x4b5bd2['add'](_0x4ea886);return Array['from'](_0x4b5bd2);}(_0x2f05dd['getSelectedBlocks'](),_0x41f306,_0x518fee['model']['schema']);_0x518fee['model']['change'](()=>{for(const _0x31c5c8 of _0x158876)_0x5e8eea['markBlockFormat'](_0x31c5c8,{'commandName':_0x44befb,'commandParams':[{'forceValue':!_0x1f6370['value']}],'formatGroupId':'blockName'},Ee(_0x31c5c8));});};}function _0x57ef17(_0x47d0f5){return()=>{const _0x43ba61=function(_0xdd6f8c){let _0x2c6b5a=Array['from'](_0xdd6f8c);const _0x4fa31b=_0x2c6b5a['findIndex'](_0xc06608=>'listItem'!=_0xc06608['name']);return _0x4fa31b>-0x1&&(_0x2c6b5a=_0x2c6b5a['slice'](0x0,_0x4fa31b)),_0x2c6b5a;}(_0x518fee['model']['document']['selection']['getSelectedBlocks']()),_0x307258=_0x518fee['model']['createRange'](_0x518fee['model']['createPositionAt'](_0x43ba61[0x0],'before'),_0x518fee['model']['createPositionAt'](_0x43ba61[_0x43ba61['length']-0x1],'end'));_0x518fee['model']['change'](()=>{_0x5e8eea['markBlockFormat'](_0x307258,{'commandName':_0x47d0f5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x24aaa3){const _0x3fbccd=new Set();for(const _0x17240e of _0x24aaa3){let _0x4514ea=_0x17240e['nextSibling'];for(;_0x4514ea&&_0x4514ea['getAttribute']('listIndent')>_0x17240e['getAttribute']('listIndent');)_0x3fbccd['add'](_0x4514ea),_0x4514ea=_0x4514ea['nextSibling'];}return Array['from'](_0x3fbccd);}(_0x43ba61));});};}_0x5e8eea['enableCommand']('numberedList',_0x2d9d7f('numberedList')),_0x5e8eea['enableCommand']('bulletedList',_0x2d9d7f('bulletedList')),_0x1407aa&&_0x5e8eea['enableCommand']('todoList',_0x2d9d7f('todoList')),_0x5e8eea['enableCommand']('indentList',_0x57ef17('indentList')),_0x5e8eea['enableCommand']('outdentList',_0x57ef17('outdentList')),_0x1407aa&&_0x5e8eea['enableCommand']('checkTodoList',()=>{const _0x342a56=_0x518fee['commands']['get']('checkTodoList'),_0x184b32=Array['from'](_0x342a56['_selectedElements']);_0x184b32['filter'](_0x5a354f=>_0x5a354f['getAttribute']('todoListChecked')!=_0x342a56['value']),_0x518fee['model']['change'](()=>{for(const _0x1e9628 of _0x184b32)_0x5e8eea['markBlockFormat'](_0x1e9628,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x342a56['value']}]});});}),_0x5e8eea['descriptionFactory']['registerElementLabel']('listItem',_0x3efa73=>c(_0x1094f9,'ELEMENT_LIST_ITEM',_0x3efa73)),_0x5e8eea['descriptionFactory']['registerDescriptionCallback'](_0x16898d=>{if('formatBlock'!=_0x16898d['type']&&'formatInline'!=_0x16898d['type'])return;const {data:_0xc5b91c}=_0x16898d;if(_0xc5b91c){if('numberedList'==_0xc5b91c['commandName']||'bulletedList'==_0xc5b91c['commandName']||'todoList'==_0xc5b91c['commandName'])switch(_0xc5b91c['commandName']['replace']('List','')){case'bulleted':return _0x25f241(c(_0x1094f9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x25f241(c(_0x1094f9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x25f241(c(_0x1094f9,'ELEMENT_TODO_LIST'));}if('indentList'==_0xc5b91c['commandName'])return{'type':'format','content':c(_0x1094f9,'*Indent:*\x20%0',c(_0x1094f9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xc5b91c['commandName'])return{'type':'format','content':c(_0x1094f9,'*Outdent:*\x20%0',c(_0x1094f9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xc5b91c['commandName'])return _0xc5b91c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1094f9,'*Check\x20item*')}:{'type':'format','content':c(_0x1094f9,'*Uncheck\x20item*')};}function _0x25f241(_0x42c676){return{'type':'format','content':c(_0x1094f9,'*Change\x20to:*\x20%0',_0x42c676)};}});}}function Le(_0x441699){const _0x4b096f=_0x441699['getAttribute']('listIndent');if(0x0==_0x4b096f)return _0x441699;let _0x375ff0=_0x441699;for(;_0x441699['previousSibling']&&_0x441699['previousSibling']['is']('element','listItem');){const _0x1dbed3=_0x441699['previousSibling']['getAttribute']('listIndent');if(_0x1dbed3==_0x4b096f)_0x375ff0=_0x441699['previousSibling'];else{if(_0x1dbed3<_0x4b096f)break;}_0x441699=_0x441699['previousSibling'];}return _0x375ff0;}function Ee(_0x1cfcc9){const _0x11f2b4=[];if(_0x1cfcc9['is']('element','listItem')&&_0x1cfcc9['getAttribute']('listIndent')>0x0){let _0x53c68c=_0x1cfcc9['nextSibling'];for(;_0x53c68c&&'listItem'==_0x53c68c['name']&&_0x53c68c['getAttribute']('listIndent')==_0x1cfcc9['getAttribute']('listIndent');)_0x11f2b4['push'](_0x53c68c),_0x53c68c=_0x53c68c['nextSibling'];}return _0x11f2b4;}class Q extends _0xc188f5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x352e1e=this['editor']['config']['get']('list.properties'),_0x1e2c9d=this['editor']['plugins']['get']('TrackChangesEditing');_0x352e1e['styles']&&_0x1e2c9d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x352e1e['reversed']&&_0x1e2c9d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x352e1e['startIndex']&&_0x1e2c9d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1e2c9d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4fbf58,_0x293b0a={}){const _0x53b83c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ee28a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x53b83c['markMultiRangeBlockFormat'](_0x5ee28a,{'commandName':'listStyle','commandParams':[{'type':_0x293b0a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4dd560,_0x1af6a1={}){const _0x1b51a2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2dfc3a=this['_getSuggestionBlocks'](_0x3ce723=>_0x3ce723['is']('element','listItem')&&'numbered'===_0x3ce723['getAttribute']('listType'));if(_0x2dfc3a['length']<0x1)return;const _0x8d8126=_0x2dfc3a['map'](_0x3db68d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3db68d,'before'),this['editor']['model']['createPositionAt'](_0x3db68d,0x0)));this['editor']['model']['change'](()=>{_0x1b51a2['markMultiRangeBlockFormat'](_0x8d8126,{'commandName':'listReversed','commandParams':[{'reversed':_0x1af6a1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x571c9d,_0x34f04e={}){const _0x33cdae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x313eea=this['_getSuggestionBlocks'](_0x584f26=>_0x584f26['is']('element','listItem')&&'numbered'===_0x584f26['getAttribute']('listType'));if(_0x313eea['length']<0x1)return;const _0x5b2bef=_0x313eea['map'](_0x48288b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x48288b,'before'),this['editor']['model']['createPositionAt'](_0x48288b,0x0)));this['editor']['model']['change'](()=>{_0x33cdae['markMultiRangeBlockFormat'](_0x5b2bef,{'commandName':'listStart','commandParams':[{'startIndex':_0x34f04e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1856d2){if('formatBlock'!=_0x1856d2['type']&&'formatInline'!=_0x1856d2['type'])return;const _0x2a9759=this['editor']['locale'],{data:_0x280244}=_0x1856d2;if(!_0x280244)return;let _0x5bf6a0,_0x16370e;switch(_0x280244['commandName']){case'listStyle':_0x5bf6a0='*Change\x20to:*\x20%0',_0x16370e={'type':'format','content':c(_0x2a9759,_0x5bf6a0,c(_0x2a9759,this['_getTranslationKeyForListStyle'](_0x280244['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5bf6a0=_0x280244['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x16370e={'type':'format','content':c(_0x2a9759,_0x5bf6a0)};break;case'listStart':_0x5bf6a0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x16370e={'type':'format','content':c(_0x2a9759,_0x5bf6a0,_0x280244['commandParams'][0x0]['startIndex'])};}return _0x16370e;}['_getSuggestionBlocksForListStyle'](){const _0x9d43d2=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b937a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4b937a[0x0]?.['is']('element','listItem')&&_0x4b937a['unshift'](..._0x9d43d2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4b937a[_0x4b937a['length']-0x1]?.['is']('element','listItem')&&_0x4b937a['push'](..._0x9d43d2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4b937a=[...new Set(_0x4b937a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4b937a=_0x4b937a['filter'](_0x3855df=>_0x3855df['is']('element','listItem'))),_0x4b937a;}['_getSuggestionBlocks'](_0x4f2f01){const _0x1aad6e=this['editor']['plugins']['get']('LegacyListUtils');let _0x540680=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4f2f01)['map'](_0xdd8a73=>{const _0x4d9273=this['editor']['model']['createPositionAt'](_0xdd8a73,0x0);return[..._0x1aad6e['getSiblingNodes'](_0x4d9273,'backward'),..._0x1aad6e['getSiblingNodes'](_0x4d9273,'forward')];})['flat']();return _0x540680=[...new Set(_0x540680)],_0x540680;}['_getTranslationKeyForListStyle'](_0x44235c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x44235c)||'default')['toUpperCase']()+'_LIST_'+_0x44235c['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0xc188f5{['afterInit'](){const _0x5f36c3=this['editor'];if(!_0x5f36c3['plugins']['has']('MediaEmbedEditing'))return;const _0x269a0e=_0x5f36c3['plugins']['get']('TrackChangesEditing'),_0x5a4f98=_0x5f36c3['locale'];_0x269a0e['enableCommand']('mediaEmbed'),_0x269a0e['descriptionFactory']['registerElementLabel']('media',_0x9b4d20=>c(_0x5a4f98,'ELEMENT_MEDIA',_0x9b4d20)),_0x5f36c3['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4cf01a,{writer:_0x53d756,options:_0x547f8f})=>{if(_0x547f8f['showSuggestionHighlights'])return _0x53d756['createEmptyElement']('div');},'converterPriority':'high'}),_0x5f36c3['data']['downcastDispatcher']['on']('attribute:url:media',(_0x921bae,_0x440362,_0x2291ba)=>{_0x2291ba['options']['showSuggestionHighlights']&&_0x921bae['stop']();},{'priority':'high'});}}class pt extends _0xc188f5{['afterInit'](){const _0x176ec0=this['editor'];_0x176ec0['plugins']['has']('MentionEditing')&&_0x176ec0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0xc188f5{['afterInit'](){const _0x21a875=this['editor'];if(!_0x21a875['plugins']['has']('MergeFieldsEditing'))return;const _0x25b5fd=_0x21a875['plugins']['get']('TrackChangesEditing'),_0xda198e=_0x21a875['locale'];_0x25b5fd['enableCommand']('insertMergeField'),_0x25b5fd['enableCommand']('insertMergeFieldBlock'),_0x25b5fd['enableCommand']('insertMergeFieldImage'),_0x25b5fd['descriptionFactory']['registerElementLabel']('mergeField',_0x223a11=>c(_0xda198e,'ELEMENT_MERGE_FIELD',_0x223a11)),_0x25b5fd['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x145e8a=>c(_0xda198e,'ELEMENT_MERGE_FIELD',_0x145e8a)),_0x25b5fd['descriptionFactory']['registerDescriptionCallback'](_0x1a3423=>{if('insertion'!=_0x1a3423['type']&&'deletion'!=_0x1a3423['type'])return;const _0x4c7b1c=_0x1a3423['getContainedElement']();if(null==_0x4c7b1c)return;const _0xe6d199=_0x21a875['plugins']['get']('MergeFieldsEditing');let _0x1ff7ff;switch(_0xe6d199['getMergeFieldType'](_0x4c7b1c)){case null:return;case'image':{const _0x1d2938=_0xe6d199['unwrapAffixes'](_0x4c7b1c['getAttribute']('src'));_0x1ff7ff=_0xe6d199['getLabel'](_0x1d2938)||_0x1d2938;break;}default:{const _0x1054a3=_0x4c7b1c['getAttribute']('id');_0x1ff7ff=_0xe6d199['getLabel'](_0x1054a3)||_0x1054a3;break;}}return'insertion'==_0x1a3423['type']?{'type':'insertion','content':c(_0xda198e,'*Insert:*\x20%0','\x22'+_0x1ff7ff+'\x22\x20'+c(_0xda198e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0xda198e,'*Remove:*\x20%0','\x22'+_0x1ff7ff+'\x22\x20'+c(_0xda198e,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0xc188f5{['afterInit'](){const _0x45ba31=this['editor'],_0x4276fc=_0x45ba31['plugins']['get']('TrackChangesEditing');_0x45ba31['plugins']['has']('MultiLevelList')&&(_0x4276fc['enableDefaultAttributesIntegration']('multiLevelList'),_0x4276fc['registerBlockAttribute']('listMarkerStyle'),_0x4276fc['descriptionFactory']['registerDescriptionCallback'](_0x2ffe21=>this['handleDescriptions'](_0x2ffe21)));}['handleDescriptions'](_0x15a7a5){const _0x390c31=this['editor']['locale'],{data:_0x2bb631}=_0x15a7a5,_0x38421d={'type':'format','content':''};if(_0x2bb631&&'listMarkerStyle'==_0x2bb631['key']){if(!_0x2bb631['oldValue'])return{'type':'format','content':c(_0x390c31,'*Set\x20format:*\x20%0',c(_0x390c31,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2bb631['newValue']+')'};if(!_0x2bb631['newValue']){let _0x3853fb=_0x15a7a5['head'];for(;_0x3853fb;){if(_0x3853fb['data']&&'listType'==_0x3853fb['data']['key']&&_0x3853fb['data']['newValue'])return _0x38421d;_0x3853fb=_0x3853fb['next'];}return{'type':'format','content':c(_0x390c31,'*Remove\x20format:*\x20%0',c(_0x390c31,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2bb631['oldValue']+')'};}}}}class bt extends _0xc188f5{['afterInit'](){const _0x29e1ea=this['editor'];if(!_0x29e1ea['plugins']['has']('PageBreakEditing'))return;_0x29e1ea['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x313f3d=_0x29e1ea['plugins']['get']('TrackChangesEditing'),_0x59a012=_0x29e1ea['locale'];_0x313f3d['descriptionFactory']['registerElementLabel']('pageBreak',_0xebc548=>c(_0x59a012,'ELEMENT_PAGE_BREAK',_0xebc548));}}class yt extends _0xc188f5{['afterInit'](){const _0x358e34=this['editor'];if(!_0x358e34['plugins']['has']('Paragraph'))return;const _0x2660b6=_0x358e34['locale'],_0x47e33e=_0x358e34['plugins']['get']('TrackChangesEditing');_0x47e33e['descriptionFactory']['registerElementLabel']('paragraph',_0x7a4bfc=>c(_0x2660b6,'ELEMENT_PARAGRAPH',_0x7a4bfc)),_0x47e33e['enableDefaultAttributesIntegration']('paragraph'),_0x47e33e['enableCommand']('insertParagraph'),_0x358e34['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x358e34),{'priority':'highest'}),_0x358e34['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4b5fbb,_0x342dde,_0x1c07f5)=>{_0x1c07f5['options']['showSuggestionHighlights']&&nr(_0x358e34,{'showActiveMarker':!0x1})(_0x4b5fbb,_0x342dde,_0x1c07f5);},{'priority':'highest'});const _0x2ec0d5=_0x47e33e['descriptionFactory'];_0x2ec0d5['registerDescriptionCallback'](_0x4fd7f1=>{if('insertion'!==_0x4fd7f1['type'])return;const {start:_0x11b016,end:_0x407134}=_0x4fd7f1['getFirstRange']();if(!_0x11b016['isTouching'](_0x407134)||!_0x11b016['nodeAfter'])return;const _0x5131a4=_0x358e34['model']['schema'],_0x6fa61c=_0x11b016['nodeAfter'];return _0x5131a4['isBlock'](_0x6fa61c)&&!_0x5131a4['isLimit'](_0x6fa61c)&&_0x5131a4['checkChild'](_0x6fa61c,'$text')?{'type':'insertion','content':c(_0x2660b6,'*Insert:*\x20%0',_0x2ec0d5['getItemLabel'](_0x6fa61c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x317f18=this['editor'],_0x4c8940=_0x317f18['locale'];_0x317f18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbabab1=>{if('formatBlock'!=_0xbabab1['type'])return;const {data:_0x2ac489}=_0xbabab1;return _0x2ac489&&'paragraph'==_0x2ac489['commandName']?{'type':'format','content':c(_0x4c8940,'*Change\x20to:*\x20%0',c(_0x4c8940,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4623c7,{showActiveMarker:_0x1d7484=!0x0}={}){return(_0x2532ba,_0x163bb4,_0xc02ff2)=>{const _0x45f94c=_0x4623c7['plugins']['get']('TrackChangesEditing'),_0x1b7826=_0x163bb4['markerRange']['start'],_0x466c9e=_0x163bb4['markerRange']['end'],_0x48c710=_0x4623c7['model']['schema'];if(!_0x1b7826['isTouching'](_0x466c9e)||!_0x1b7826['nodeAfter'])return;const _0x5557fe=_0x1b7826['nodeAfter'];if(_0x48c710['isBlock'](_0x5557fe)&&!_0x48c710['isLimit'](_0x5557fe)&&_0x48c710['checkChild'](_0x5557fe,'$text')){if(!_0xc02ff2['consumable']['consume'](_0x163bb4['markerRange'],_0x2532ba['name']))return;const {authorId:_0x1d741a}=_0x45f94c['_splitMarkerName'](_0x163bb4['markerName']),_0x173432=_0xc02ff2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1d741a}),_0x52b04a=_0xc02ff2['mapper']['toViewPosition'](_0x466c9e);_0x1d7484&&_0x45f94c['activeMarkers']['includes'](_0x163bb4['markerName'])&&_0xc02ff2['writer']['addClass']('ck-suggestion-marker--active',_0x173432),_0xc02ff2['writer']['insert'](_0x52b04a,_0x173432),_0xc02ff2['mapper']['bindElementToMarker'](_0x173432,_0x163bb4['markerName']);}};}class jt extends _0xc188f5{['afterInit'](){const _0x177b52=this['editor'];_0x177b52['commands']['get']('replaceSource')&&_0x177b52['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0xc188f5{['afterInit'](){const _0x13f033=this['editor'];if(!_0x13f033['plugins']['has']('RemoveFormatEditing'))return;_0x13f033['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38e166=this['editor'];_0x38e166['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f979a=>{if('formatBlock'!=_0x1f979a['type']&&'formatInline'!=_0x1f979a['type'])return;const {data:_0xed64b}=_0x1f979a;return _0xed64b&&'removeFormat'==_0xed64b['commandName']?{'type':'format','content':c(_0x38e166['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0xc188f5{['afterInit'](){const _0x434419=this['editor'];if(!_0x434419['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x142e9a=_0x434419['plugins']['get']('TrackChangesEditing');_0x142e9a['enableCommand']('goToPreviousRestrictedEditingException'),_0x142e9a['enableCommand']('goToNextRestrictedEditingException');const _0x4ee114=_0x434419['plugins']['get']('RestrictedEditingModeEditing');_0x4ee114['enableCommand']('trackChanges'),_0x4ee114['enableCommand']('acceptSuggestion'),_0x4ee114['enableCommand']('discardSuggestion'),_0x4ee114['enableCommand']('acceptAllSuggestions'),_0x4ee114['enableCommand']('discardAllSuggestions'),_0x4ee114['enableCommand']('acceptSelectedSuggestions'),_0x4ee114['enableCommand']('discardSelectedSuggestions');}}class It extends _0xc188f5{['afterInit'](){const _0x54dfb4=this['editor'];if(!_0x54dfb4['plugins']['has']('ShiftEnter'))return;const _0x1d8129=_0x54dfb4['plugins']['get']('TrackChangesEditing');_0x1d8129['enableCommand']('shiftEnter'),_0x54dfb4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x54dfb4),{'priority':'high'}),_0x54dfb4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x54dfb4),{'priority':'high'}),_0x54dfb4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5362fb,_0x5da10d,_0x4028fa)=>{_0x4028fa['options']['showSuggestionHighlights']&&je(_0x54dfb4,{'showActiveMarker':!0x1})(_0x5362fb,_0x5da10d,_0x4028fa);}),_0x1d8129['descriptionFactory']['registerElementLabel']('softBreak',_0x154e02=>c(_0x54dfb4['locale'],'ELEMENT_LINE_BREAK',_0x154e02));}}function je(_0x273082,{showActiveMarker:_0x3da77d=!0x0}={}){return(_0xec65e5,_0xb6c682,_0x35df4f)=>{const _0x42bba0=_0x273082['plugins']['get']('TrackChangesEditing');if(!_0x35df4f['consumable']['test'](_0xb6c682['markerRange'],_0xec65e5['name']))return;const _0x524720=_0x273082['model'];for(const _0x395497 of _0xb6c682['markerRange']['getItems']()){if(!_0x395497['is']('element','softBreak'))continue;const _0x21ad4='deletion'==_0xb6c682['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2b034a}=_0x42bba0['_splitMarkerName'](_0xb6c682['markerName']),_0x2a40ef=_0x35df4f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x21ad4,'data-author-id':_0x2b034a}),_0x344418=_0x35df4f['mapper']['toViewPosition'](_0x524720['createPositionBefore'](_0x395497));_0x3da77d&&_0x42bba0['activeMarkers']['includes'](_0xb6c682['markerName'])&&_0x35df4f['writer']['addClass']('ck-suggestion-marker--active',_0x2a40ef),_0x35df4f['writer']['insert'](_0x344418,_0x2a40ef),_0x35df4f['mapper']['bindElementToMarker'](_0x2a40ef,_0xb6c682['markerName']);}};}class _t extends _0xc188f5{['afterInit'](){const _0x535de7=this['editor'],_0x5bc306=_0x535de7['model'],_0x56cbc8=_0x535de7['locale'];if(!_0x535de7['plugins']['has']('StandardEditingModeEditing'))return;const _0x518ac1=_0x535de7['plugins']['get']('TrackChangesEditing'),_0x1d7742='restrictedEditingException',_0x1ef96d=_0x535de7['commands']['get'](_0x1d7742);_0x518ac1['enableCommand'](_0x1d7742,(_0x46ec2d,_0x4fa082={})=>{const _0x31f9bb=_0x5bc306['document']['selection'];if(_0x31f9bb['isCollapsed'])return void _0x46ec2d(_0x4fa082);const _0x5470b1=void 0x0!==_0x4fa082['forceValue']?_0x4fa082['forceValue']:!_0x1ef96d['value'];_0x5bc306['change'](()=>{const _0x5d8d5a=Array['from'](_0x31f9bb['getRanges']());for(const _0x252d30 of _0x5d8d5a){const _0x4ba2bc=_0x5470b1?[_0x252d30]:io(_0x1d7742,_0x252d30,_0x5bc306);for(const _0x380fe9 of _0x4ba2bc)_0x518ac1['markInlineFormat'](_0x380fe9,{'commandName':_0x1d7742,'commandParams':[{'forceValue':_0x5470b1}]});}});}),_0x518ac1['descriptionFactory']['registerDescriptionCallback'](_0x40ea35=>{if('formatBlock'!=_0x40ea35['type']&&'formatInline'!=_0x40ea35['type'])return;const {data:_0x556de4}=_0x40ea35;return _0x556de4&&_0x556de4['commandName']==_0x1d7742?_0x556de4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x56cbc8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x56cbc8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0xc188f5{['afterInit'](){const _0x2493c3=this['editor'];if(!_0x2493c3['plugins']['has']('Style')||!_0x2493c3['plugins']['has']('DataSchema'))return;const _0x45d5a1=_0x2493c3['plugins']['get']('TrackChangesEditing'),_0x594a94=_0x2493c3['locale'],_0xfdf710=_0x2493c3['config']['get']('style')||{},_0x104dbe=_0x2493c3['plugins']['get']('GeneralHtmlSupport'),_0x39b139=_0x2493c3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2493c3['plugins']['get']('DataSchema'),_0xfdf710['definitions']);_0x45d5a1['enableDefaultAttributesIntegration']('style');const _0x894eae=new Set();for(const _0x49fbd8 of _0x39b139['block']){const _0x2cb04e=_0x104dbe['getGhsAttributeNameForElement'](_0x49fbd8['element']);_0x894eae['add'](_0x2cb04e);}const _0x1720b1=new Set();for(const _0x38fd87 of _0x39b139['inline']){const _0x5a63ef=_0x104dbe['getGhsAttributeNameForElement'](_0x38fd87['element']);_0x1720b1['add'](_0x5a63ef);for(const _0x507848 of _0x38fd87['ghsAttributes'])_0x1720b1['add'](_0x507848);}for(const _0xdf8776 of _0x894eae)_0x45d5a1['registerBlockAttribute'](_0xdf8776),_0x45d5a1['descriptionFactory']['registerAttributeLabel'](_0xdf8776,c(_0x594a94,'FORMAT_STYLE'));for(const _0x44abd4 of _0x1720b1)_0x45d5a1['registerInlineAttribute'](_0x44abd4),_0x45d5a1['descriptionFactory']['registerAttributeLabel'](_0x44abd4,c(_0x594a94,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25fe41=this['editor'],_0x2576ea=_0x25fe41['locale'];_0x25fe41['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11fcb3=>{if('formatBlock'!=_0x11fcb3['type']&&'formatInline'!=_0x11fcb3['type'])return;const {data:_0x33be60}=_0x11fcb3;return _0x33be60&&'style'===_0x33be60['commandName']?_0x33be60['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2576ea,'*Set\x20format:*\x20%0',_0x33be60['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x2576ea,'*Remove\x20format:*\x20%0',_0x33be60['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0xc188f5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xcd9630){super(_0xcd9630),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5076b3=this['editor'],_0x4bdb85=_0x5076b3['model']['document']['selection'];if(!_0x5076b3['plugins']['has']('TableEditing'))return;const _0x3b7f14=_0x5076b3['locale'],_0x904743=_0x5076b3['plugins']['get']('TrackChangesEditing'),_0x53792e=_0x5076b3['plugins']['get']('TableUtils');_0x904743['descriptionFactory']['registerElementLabel']('table',_0xdd5287=>c(_0x3b7f14,'ELEMENT_TABLE',_0xdd5287)),this['_setupColumnsRowsFixing'](),_0x904743['enableCommand']('insertTable'),_0x904743['enableCommand']('selectTableRow'),_0x904743['enableCommand']('selectTableColumn');for(const _0x12822c of['insertTableRowAbove','insertTableRowBelow']){const _0x23c42a=_0x5076b3['commands']['get'](_0x12822c);_0x904743['enableCommand'](_0x12822c,_0x14f6c5=>{_0x5076b3['model']['change'](_0x28e95f=>{_0x14f6c5();const _0x1baddc='above'===_0x23c42a['order'],_0x54b249=_0x53792e['getSelectionAffectedTableCells'](_0x4bdb85),_0x2740ba=_0x53792e['getRowIndexes'](_0x54b249),_0x3abb0d=_0x1baddc?_0x2740ba['first']-0x1:_0x2740ba['last']+0x1,_0x5a6067=_0x54b249[0x0]['findAncestor']('table'),_0x4be893=_0x53792e['createTableWalker'](_0x5a6067,{'startRow':_0x3abb0d,'endRow':_0x3abb0d}),_0x1f11a7=Array['from'](_0x4be893)['map'](_0x1c822a=>_0x28e95f['createRangeOn'](_0x1c822a['cell']));_0x904743['markMultiRangeInsertion'](_0x1f11a7,'tableRow');});});}for(const _0x2b6b38 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1adb5e=_0x5076b3['commands']['get'](_0x2b6b38);_0x904743['enableCommand'](_0x2b6b38,_0x1e6e95=>{_0x5076b3['model']['change'](_0x1bc72b=>{_0x1e6e95();const _0x1b72a2='left'===_0x1adb5e['order'],_0x140e6e=_0x53792e['getSelectionAffectedTableCells'](_0x4bdb85),_0xb47702=_0x53792e['getColumnIndexes'](_0x140e6e),_0x16f563=_0x1b72a2?_0xb47702['first']-0x1:_0xb47702['last']+0x1,_0xdab0a6=_0x140e6e[0x0]['findAncestor']('table'),_0x5ba209=_0x53792e['createTableWalker'](_0xdab0a6,{'startRow':0x0,'column':_0x16f563,'includeAllSlots':!0x1}),_0x2ac59b=Array['from'](_0x5ba209)['map'](_0x45d024=>_0x1bc72b['createRangeOn'](_0x45d024['cell']));_0x904743['markMultiRangeInsertion'](_0x2ac59b,'tableColumn');});});}for(const _0xad59b8 of['removeTableRow','removeTableColumn']){const _0x2e42a9=_0xad59b8['substr'](0xb),_0x1bc156=_0x2e42a9['toLowerCase'](),_0x31e53f=_0x1bc156['substr'](0x0,0x3)+'span',_0x56a794='table'+_0x2e42a9,_0x4a69d9='min'+_0x2e42a9,_0x6e14ab='max'+_0x2e42a9;_0x904743['enableCommand'](_0xad59b8,()=>{_0x5076b3['model']['change'](_0x2fbfeb=>{const _0x303340=_0x53792e['getSelectionAffectedTableCells'](_0x4bdb85),_0x4a4f03=_0x303340[0x0]['findAncestor']('table');let _0x5031b8;if('removeTableRow'==_0xad59b8){const _0x2c0a50=_0x53792e['getRowIndexes'](_0x303340);_0x5031b8={'startRow':_0x2c0a50['first'],'endRow':_0x2c0a50['last'],'includeAllSlots':!0x0};}else{const _0x11eda9=_0x53792e['getColumnIndexes'](_0x303340);_0x5031b8={'startColumn':_0x11eda9['first'],'endColumn':_0x11eda9['last'],'includeAllSlots':!0x0};}const _0x1421a6=_0x53792e['createTableWalker'](_0x4a4f03,_0x5031b8),_0x2937fb=Array['from'](_0x1421a6)['map'](({cell:_0xbf9dc6})=>_0xbf9dc6),_0x51f63c=Ne(_0x2937fb['filter'](_0x2fd480=>_0x2fd480['hasAttribute'](_0x31e53f))),_0x39d401=Ne(_0x2937fb['filter'](_0xe4e0d7=>!_0xe4e0d7['hasAttribute'](_0x31e53f)))['map'](_0x8a2e29=>_0x2fbfeb['createRangeOn'](_0x8a2e29)),_0x5065d0=_0x904743['markMultiRangeDeletion'](_0x39d401,_0x56a794);if(_0x5065d0&&('tableRow'==_0x5065d0['subType']||'tableColumn'==_0x5065d0['subType'])){const _0xa93b77=this['_getSuggestionCoords'](_0x5065d0);for(const _0x12084f of _0x51f63c){const _0xe24814=_0x2fbfeb['createRangeOn'](_0x12084f),_0x1e9943=_0x53792e['getCellLocation'](_0x12084f),_0x447b78=_0x12084f['getAttribute'](_0x31e53f)-0x1,_0x2a40c0=_0xa93b77[_0x4a69d9],_0x5ddbba=_0xa93b77[_0x6e14ab];_0x2a40c0<=_0x1e9943[_0x1bc156]&&_0x1e9943[_0x1bc156]+_0x447b78<=_0x5ddbba&&_0x5065d0['addRange'](_0xe24814);}}});});}function _0x4640d8(_0x146260){const _0x415035=Array['from'](_0x4bdb85['getRanges']())['map'](_0x3d0313=>_0x27d8bc['fromRange'](_0x3d0313));_0x5076b3['model']['change'](_0x5bd4ae=>{const _0xde7605=_0x5bd4ae['batch'];_0x146260=_0x146260['filter'](_0x1c1de2=>'$graveyard'!=_0x1c1de2['root']['rootName']),_0x5bd4ae['setSelection'](_0x146260),_0x5076b3['commands']['get']('removeTableRow')['refresh'](),_0x5076b3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5076b3['model']['enqueueChange'](()=>{_0x5076b3['model']['enqueueChange'](_0xde7605,_0x49e09d=>{const _0x1741d9=_0x415035['filter'](_0x5efb20=>'$graveyard'!=_0x5efb20['root']['rootName']);_0x1741d9['length']>0x0&&_0x49e09d['setSelection'](_0x1741d9);for(const _0x3909ae of _0x415035)_0x3909ae['detach']();});});});}function _0x19f807(_0x1a7fd5){_0x5076b3['model']['change'](_0x14766b=>{const _0x13bcf7=Array['from'](_0x4bdb85['getRanges']())['map'](_0x3eef7f=>_0x27d8bc['fromRange'](_0x3eef7f)),_0x49ccbb=[];for(const _0x307dbd of _0x1a7fd5)for(const _0x19158d of _0x307dbd['getItems']({'shallow':!0x0}))_0x49ccbb['push'](_0x19158d);for(const _0x114801 of _0x49ccbb)'$graveyard'!=_0x114801['root']['rootName']&&(_0x14766b['setSelection'](_0x14766b['createPositionAt'](_0x114801,0x0)),_0x5076b3['commands']['get']('removeTableColumn')['refresh'](),_0x5076b3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5ea34c=_0x13bcf7['filter'](_0x2b2f49=>'$graveyard'!=_0x2b2f49['root']['rootName']);_0x5ea34c['length']>0x0&&_0x14766b['setSelection'](_0x5ea34c);for(const _0x343f4b of _0x13bcf7)_0x343f4b['detach']();});}function _0x5b6936(_0x48c26c,_0x4e7e55){return _0x4e7e55['every'](_0x3af5d9=>_0x48c26c['some'](_0x268611=>_0x268611['end']['isEqual'](_0x3af5d9['start'])||_0x3af5d9['end']['isEqual'](_0x268611['start'])));}function _0x414bf8(_0x213695,_0x19c1f3){return!_0x213695['some'](_0x5f1cc2=>_0x19c1f3['some'](_0x275438=>_0x5f1cc2['isIntersecting'](_0x275438)))&&_0x213695['some'](_0x5e8b1f=>_0x19c1f3['some'](_0x4fa13b=>_0x5e8b1f['end']['isTouching'](_0x4fa13b['start'])));}_0x5076b3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f03ef,_0x4ee973,_0x5be9e2)=>{if(!_0x5be9e2['options']['showSuggestionHighlights'])return;const _0x2ec6d9=_0x4ee973['item'];if(!_0x2ec6d9)return;const _0x1b820a=_0x5be9e2['mapper']['toViewElement'](_0x2ec6d9);function _0x2875b1(_0x5dec54){return Array['isArray'](_0x5dec54)?_0x5dec54:[_0x5dec54];}_0x1b820a&&'tableCell'===_0x2ec6d9['name']&&_0xf7f7ae(_0x1b820a,_0x5be9e2['writer'],(_0x2687e1,_0x26651,_0x56d609)=>_0x56d609['addClass'](_0x2875b1(_0x26651['classes']),_0x2687e1),(_0x3a5a0a,_0x275c94,_0x1a5e92)=>_0x1a5e92['removeClass'](_0x2875b1(_0x275c94['classes']),_0x3a5a0a));},{'priority':'highest'}),_0x904743['descriptionFactory']['registerDescriptionCallback'](_0x1276fc=>{if('insertion'!=_0x1276fc['type']&&'deletion'!=_0x1276fc['type'])return;const _0x54afab=_0x1276fc['getContainedElement']();if(null!=_0x54afab&&_0x54afab['is']('element','table')){if('insertion'==_0x1276fc['type']){const _0x4fc1ca=_0x1276fc['getItems']()['filter'](_0x446ff7=>_0x446ff7['is']('$textProxy'))['map'](_0x48f1cf=>_0x48f1cf['data']);if(_0x4fc1ca['length'])return{'type':'insertion','content':c(_0x3b7f14,'*Insert:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4fc1ca['join']('\x20')+'\x22'))};}if('deletion'==_0x1276fc['type']){const _0x4a211b=_0x1276fc['getItems']()['filter'](_0x3f2bad=>_0x3f2bad['is']('$textProxy'))['map'](_0x250210=>_0x250210['data']);if(_0x4a211b['length'])return{'type':'deletion','content':c(_0x3b7f14,'*Remove:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4a211b['join']('\x20')+'\x22'))};}}}),_0x904743['descriptionFactory']['registerDescriptionCallback'](_0x9d79fe=>{if('tableRow'==_0x9d79fe['subType']){const _0x16a770=_0x9d79fe['getItems']()['filter'](_0x3b54ec=>_0x3b54ec['is']('$textProxy'))['map'](_0x23e8d2=>_0x23e8d2['data']),_0x236554=this['_getSuggestionCoords'](_0x9d79fe),_0x457f84=_0x236554['maxRow']-_0x236554['minRow']+0x1;if('insertion'==_0x9d79fe['type'])return _0x16a770['length']?{'type':'insertion','content':c(_0x3b7f14,'*Insert:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x457f84,'\x22'+_0x16a770['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3b7f14,'*Insert:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_ROW',_0x457f84))};if('deletion'==_0x9d79fe['type'])return _0x16a770['length']?{'type':'deletion','content':c(_0x3b7f14,'*Remove:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x457f84,'\x22'+_0x16a770['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3b7f14,'*Remove:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_ROW',_0x457f84))};}if('tableColumn'==_0x9d79fe['subType']){const _0x5f3f79=_0x9d79fe['getItems']()['filter'](_0x493985=>_0x493985['is']('$textProxy'))['map'](_0x5ec5e0=>_0x5ec5e0['data']),_0x2dd9de=this['_getSuggestionCoords'](_0x9d79fe),_0x2e7ba0=_0x2dd9de['maxColumn']-_0x2dd9de['minColumn']+0x1;if('insertion'==_0x9d79fe['type'])return _0x5f3f79['length']?{'type':'insertion','content':c(_0x3b7f14,'*Insert:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e7ba0,'\x22'+_0x5f3f79['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3b7f14,'*Insert:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_COLUMN',_0x2e7ba0))};if('deletion'==_0x9d79fe['type'])return _0x5f3f79['length']?{'type':'deletion','content':c(_0x3b7f14,'*Remove:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e7ba0,'\x22'+_0x5f3f79['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3b7f14,'*Remove:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_COLUMN',_0x2e7ba0))};}}),_0x904743['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4640d8),_0x904743['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4640d8),_0x904743['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x19f807),_0x904743['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x19f807),_0x904743['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5b6936),_0x904743['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5b6936),_0x904743['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x414bf8),_0x904743['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x414bf8);}['_acceptFormatSuggestionCallbackFactory'](){const _0xeb49da=this['editor'],_0x528c5e=_0xeb49da['model']['document']['selection'];return(_0x8319f2,_0x1b1471)=>{_0xeb49da['model']['change'](_0x5c8b83=>{const {commandName:_0x24c134,commandParams:_0x36b4bf}=_0x1b1471;let _0x3b1e14=_0x8319f2[0x0]['end']['nodeBefore'];_0x36b4bf&&_0x36b4bf[0x0]&&!0x1===_0x36b4bf[0x0]['forceValue']&&(_0x3b1e14=_0x8319f2[0x0]['start']['nodeAfter']);const _0x5a5e03=_0x5c8b83['createRangeIn'](_0x3b1e14);if('$graveyard'==_0x5a5e03['root']['rootName'])return;const _0x229332=Array['from'](_0x528c5e['getRanges']())['map'](_0x375330=>_0x27d8bc['fromRange'](_0x375330));_0x5c8b83['setSelection'](_0x5a5e03),_0xeb49da['commands']['get'](_0x24c134)['refresh'](),_0x36b4bf['push']({'forceDefaultExecution':!0x0}),_0xeb49da['execute'](_0x24c134,..._0x36b4bf);const _0x31242b=_0x229332['filter'](_0x8d15fe=>'$graveyard'!=_0x8d15fe['root']['rootName']);_0x31242b['length']>0x0&&_0x5c8b83['setSelection'](_0x31242b);for(const _0x529063 of _0x229332)_0x529063['detach']();});};}['_getCoordsForCells'](_0x5e869e){const _0xb0b410=this['editor']['plugins']['get']('TableUtils');let _0x4eb289=Number['MAX_SAFE_INTEGER'],_0x3c0121=Number['MIN_SAFE_INTEGER'],_0x15772f=Number['MAX_SAFE_INTEGER'],_0x5195fd=Number['MIN_SAFE_INTEGER'];for(const _0x396f06 of _0x5e869e){if('$graveyard'==_0x396f06['root']['rootName'])continue;const {row:_0x8213ba,column:_0x3db43b}=_0xb0b410['getCellLocation'](_0x396f06),_0xf13938=_0x396f06['hasAttribute']('rowspan')?_0x396f06['getAttribute']('rowspan')-0x1:0x0,_0x518024=_0x396f06['hasAttribute']('colspan')?_0x396f06['getAttribute']('colspan')-0x1:0x0;_0x4eb289=_0x8213ba<_0x4eb289?_0x8213ba:_0x4eb289,_0x3c0121=_0x8213ba+_0xf13938>_0x3c0121?_0x8213ba+_0xf13938:_0x3c0121,_0x15772f=_0x3db43b<_0x15772f?_0x3db43b:_0x15772f,_0x5195fd=_0x3db43b+_0x518024>_0x5195fd?_0x3db43b+_0x518024:_0x5195fd;}return{'minRow':_0x4eb289,'maxRow':_0x3c0121,'minColumn':_0x15772f,'maxColumn':_0x5195fd};}['_setupColumnsRowsFixing'](){const _0x42d69d=this['editor'],_0x28363f=_0x42d69d['plugins']['get']('TrackChangesEditing'),_0x2628ec=_0x42d69d['plugins']['get']('TableUtils');_0x42d69d['model']['document']['on']('change:data',()=>{const _0x4579ae=Array['from'](_0x42d69d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22be92,data:_0x86f3e8}of _0x4579ae){const {group:_0x4fff0a,id:_0x1b7ef0,subType:_0x55416d}=_0x28363f['_splitMarkerName'](_0x22be92);if('suggestion'!=_0x4fff0a)continue;if(null!=_0x86f3e8['oldRange'])continue;const _0x3967f1=_0x28363f['getSuggestion'](_0x1b7ef0);this['_tablePostFixingSubtypes']['includes'](_0x55416d)&&this['_tableSuggestions']['add'](_0x3967f1);}},{'priority':'low'});const _0xce6bd6=(_0x2b21b0,_0x11fc58)=>{let _0x515ce8=!0x1;const _0x15f804=_0x11fc58['createRangeOn'](_0x2b21b0),_0x4e8758=_0x2b21b0['findAncestor']('table'),_0x1373ba=_0x2628ec['getCellLocation'](_0x2b21b0);for(const _0x481f33 of this['_tableSuggestions']){const _0x57cc33=_0x481f33['subType'],_0x563600=_0x57cc33['startsWith']('tablePaste'),_0x77124f=_0x57cc33['substr'](_0x563600?0xa:0x5),_0x281380=_0x77124f['toLowerCase'](),_0x585c72=_0x281380['substr'](0x0,0x3)+'span',_0x199f74='min'+_0x77124f,_0x57c6c1='max'+_0x77124f;if(!_0x481f33['isInContent'])continue;if(_0x4e8758!=_0x481f33['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x481f33['isIntersectingWithRange'](_0x15f804))continue;const _0xbcad3e=_0x2b21b0['hasAttribute'](_0x585c72)?_0x2b21b0['getAttribute'](_0x585c72)-0x1:0x0,_0x3520f9=this['_getSuggestionCoords'](_0x481f33),_0x45a4a1=_0x3520f9[_0x199f74],_0x344f5f=_0x3520f9[_0x57c6c1];_0x45a4a1<=_0x1373ba[_0x281380]&&_0x1373ba[_0x281380]+_0xbcad3e<=_0x344f5f&&(_0x481f33['addRange'](_0x15f804),_0x515ce8=!0x0);}return _0x515ce8;};_0x42d69d['model']['document']['registerPostFixer'](_0x1f1e4d=>{let _0x58b4d4=!0x1;for(const _0x40cc22 of _0x42d69d['model']['document']['differ']['getChanges']())if('insert'==_0x40cc22['type']){if('tableRow'==_0x40cc22['name']){for(const _0x598d4f of _0x40cc22['position']['nodeAfter']['getChildren']())_0x58b4d4=_0x58b4d4||_0xce6bd6(_0x598d4f,_0x1f1e4d);}else'tableCell'==_0x40cc22['name']&&(_0x58b4d4=_0x58b4d4||_0xce6bd6(_0x40cc22['position']['nodeAfter'],_0x1f1e4d));}return _0x58b4d4;});}['_getSuggestionCoords'](_0x1d4f6b){return this['_getCoordsForCells'](_0x1d4f6b['getRanges']()['map'](_0x3f38ea=>_0x3f38ea['start']['nodeAfter']));}}function Ne(_0x57c40d){return Array['from'](new Set(_0x57c40d)['values']());}class Nt extends _0xc188f5{static get['requires'](){return[Ct];}['afterInit'](){const _0x1d4451=this['editor'],_0x33f3e1=_0x1d4451['model']['document']['selection'],_0x1ca366=_0x1d4451['locale'];if(!_0x1d4451['plugins']['has']('TableEditing'))return;const _0xaef7dd=_0x1d4451['plugins']['get']('TrackChangesEditing'),_0x1a61b3=_0x1d4451['plugins']['get']('TableUtils'),_0xbed722=_0x1d4451['plugins']['get'](Ct);_0xbed722['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xaef7dd['enableCommand']('mergeTableCells',()=>{const _0x356b26=_0x1a61b3['getSelectionAffectedTableCells'](_0x1d4451['model']['document']['selection']);_0x1d4451['model']['change'](()=>{_0xaef7dd['markMultiRangeBlockFormat'](_0x356b26,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1d4451['commands']['get']('mergeTableCells')['on']('execute',(_0x2cfdf8,_0x20f03c)=>{_0x1d4451['commands']['get']('trackChanges')['value']&&(_0x20f03c['length']>0x0&&_0x20f03c[_0x20f03c['length']-0x1]&&_0x20f03c[_0x20f03c['length']-0x1]['forceDefaultExecution']||_0xaef7dd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2cfdf8['stop']());},{'priority':'highest'});for(const _0x5e5db6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x53db76=_0x1d4451['commands']['get'](_0x5e5db6);_0xaef7dd['enableCommand'](_0x5e5db6,()=>{const _0x49f30d=_0x1d4451['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1e6de0=>_0x1e6de0['is']('element','tableCell')),_0x3bcb0c=_0x53db76['value'];_0x1d4451['model']['change'](()=>{_0xaef7dd['markMultiRangeBlockFormat']([_0x49f30d,_0x3bcb0c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xf8287f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x42e187=_0x1d4451['commands']['get'](_0xf8287f);_0xaef7dd['enableCommand'](_0xf8287f,()=>{const _0x5934ef=_0x1a61b3['getSelectionAffectedTableCells'](_0x1d4451['model']['document']['selection'])[0x0],_0x19d76c=_0x5934ef['findAncestor']('table'),{column:_0x48bc60,row:_0x2efe7f}=_0x1a61b3['getCellLocation'](_0x5934ef);let _0xd32bca=[];if('horizontally'==_0x42e187['direction']){const _0x494ed2=_0x1a61b3['createTableWalker'](_0x19d76c,{'startRow':_0x2efe7f,'endRow':_0x2efe7f,'includeAllSlots':!0x0});_0xd32bca=Array['from'](_0x494ed2)['map'](_0x54561f=>_0x54561f['cell']);}else{const _0x5c40b6=_0x1a61b3['createTableWalker'](_0x19d76c,{'column':_0x48bc60,'includeAllSlots':!0x0});_0xd32bca=Array['from'](_0x5c40b6)['map'](_0x273544=>_0x273544['cell']);}_0x1d4451['model']['change'](_0x149056=>{_0xaef7dd['markBlockFormat'](_0x149056['createRangeOn'](_0x5934ef),{'commandName':_0xf8287f,'commandParams':[]},_0xd32bca,_0xf8287f);});});}_0xaef7dd['descriptionFactory']['registerDescriptionCallback'](_0x2fe1aa=>{if('formatBlock'!=_0x2fe1aa['type']&&'formatInline'!=_0x2fe1aa['type'])return;const {data:_0x62fa13}=_0x2fe1aa;return _0x62fa13&&'mergeTableCells'==_0x62fa13['commandName']?{'type':'format','content':c(_0x1ca366,'*Merge\x20cells*')}:void 0x0;}),_0xaef7dd['descriptionFactory']['registerDescriptionCallback'](_0x4c9743=>{if('formatBlock'!=_0x4c9743['type']&&'formatInline'!=_0x4c9743['type'])return;const {data:_0xd598c0}=_0x4c9743;return _0xd598c0?'splitTableCellVertically'==_0xd598c0['commandName']?{'type':'format','content':c(_0x1ca366,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xd598c0['commandName']?{'type':'format','content':c(_0x1ca366,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3b99fa=_0xbed722['_acceptFormatSuggestionCallbackFactory']();for(const _0x2316ed of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xaef7dd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2316ed,'accept',_0x3b99fa);for(const _0x6f523e of['splitTableCellVertically','splitTableCellHorizontally'])_0xaef7dd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6f523e,'accept',_0x3b99fa);_0xaef7dd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4688e6=>{_0x1d4451['model']['change'](_0x417856=>{const _0x2f9fc0=Array['from'](_0x33f3e1['getRanges']())['map'](_0x4d7ab6=>_0x27d8bc['fromRange'](_0x4d7ab6));_0x417856['setSelection'](_0x4688e6),_0x1d4451['commands']['get']('mergeTableCells')['refresh'](),_0x1d4451['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x26cd2a=_0x2f9fc0['filter'](_0x2c9438=>'$graveyard'!=_0x2c9438['root']['rootName']);_0x26cd2a['length']>0x0&&_0x417856['setSelection'](_0x26cd2a);for(const _0x2d5328 of _0x2f9fc0)_0x2d5328['detach']();});});for(const _0x28451a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x58288a=_0x1d4451['commands']['get'](_0x28451a);_0x58288a['on']('set:isEnabled',(_0x2d844b,_0x48a262,_0x4c2376)=>{if(_0x4c2376){const _0x15c3f8=_0x1d4451['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2e03a=>_0x2e03a['is']('element','tableCell'));this['_areMergableCells'](_0x58288a['value'],_0x15c3f8)||(_0x2d844b['return']=!0x1,_0x2d844b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x69edcb=this['editor']['commands']['get']('mergeTableCells'),_0x346ee6=this['editor']['plugins']['get']('TableUtils');if(!_0x69edcb['isEnabled'])return!0x1;const _0x3577f3=_0x346ee6['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2fb6fc of _0x3577f3)for(const _0x29a4a9 of _0x3577f3)if(_0x2fb6fc!=_0x29a4a9&&!this['_areMergableCells'](_0x2fb6fc,_0x29a4a9))return!0x1;return!0x0;}['_areMergableCells'](_0x595897,_0x36502b){const _0x43bf42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x355bfb=this['editor']['model']['createRangeOn'](_0x595897),_0x47d208=this['editor']['model']['createRangeOn'](_0x36502b),_0x3ac20c=new Set(),_0x1be012=new Set();for(const _0x5f5db5 of _0x43bf42['getSuggestions']())if(('insertion'==_0x5f5db5['type']||'deletion'==_0x5f5db5['type']||'mergeTableCells'==_0x5f5db5['subType'])&&_0x5f5db5['isInContent']){for(const _0x4db40a of _0x5f5db5['getRanges']())_0x4db40a['containsRange'](_0x355bfb,!0x0)&&_0x3ac20c['add'](_0x5f5db5['type']+':'+_0x5f5db5['author']['id']),_0x4db40a['containsRange'](_0x47d208,!0x0)&&_0x1be012['add'](_0x5f5db5['type']+':'+_0x5f5db5['author']['id']);}if(_0x3ac20c['size']!=_0x1be012['size'])return!0x1;for(const _0x5aa99f of _0x3ac20c)if(!_0x1be012['has'](_0x5aa99f))return!0x1;return!0x0;}}class Dt extends _0xc188f5{static get['requires'](){return[Ct];}['afterInit'](){const _0x5b9ade=this['editor'];if(!_0x5b9ade['plugins']['has']('TableEditing'))return;const _0x5d093a=_0x5b9ade['locale'],_0x1dd4e6=_0x5b9ade['plugins']['get']('TrackChangesEditing');_0x1dd4e6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1dd4e6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1dd4e6['registerBlockAttribute']('headingRows'),_0x1dd4e6['registerBlockAttribute']('headingColumns'),_0x1dd4e6['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x5d093a,'FORMAT_HEADER_ROW')),_0x1dd4e6['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x5d093a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5b65e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1180b2=this['editor']['plugins']['get']('TableUtils'),_0x175b2f=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x4f2e98({showActiveMarker:_0x404915=!0x0,setDataAttribute:_0x3eeee7=!0x0}={}){return(_0x4d15bb,_0x5e63f4,_0x3126c7)=>{const {type:_0x561f17,id:_0x4270fc}=_0x5b65e5['_splitMarkerName'](_0x5e63f4['markerName']),_0x5da953=_0x5b65e5['getSuggestion'](_0x4270fc),_0x96f786=_0x5da953['data'];if('formatBlock'!=_0x5da953['type']||!_0x96f786||'setTableColumnHeader'!=_0x96f786['commandName'])return;if(_0x5e63f4['item'])return void _0x4d15bb['stop']();if(!_0x3126c7['consumable']['consume'](_0x5e63f4['markerRange'],_0x4d15bb['name']))return;const _0x2e0d9b=_0x5e63f4['markerRange']['start']['nodeAfter'],_0x55a88f=_0x5e63f4['markerRange']['end']['nodeBefore'],_0x58a989=_0x2e0d9b['parent']['parent'],{column:_0x14131c}=_0x1180b2['getCellLocation'](_0x2e0d9b),{column:_0x188349}=_0x1180b2['getCellLocation'](_0x55a88f);for(let _0x13b1e4=_0x14131c;_0x13b1e4<=_0x188349;_0x13b1e4++){const _0x3eebfa=_0x1180b2['createTableWalker'](_0x58a989,{'column':_0x13b1e4,'includeAllSlots':!0x1});for(const _0x11f7af of _0x3eebfa){const _0x299039=_0x11f7af['cell'],_0x4bba3d=_0x3126c7['mapper']['toViewElement'](_0x299039);_0x3126c7['writer']['addClass']('ck-suggestion-marker-'+_0x561f17,_0x4bba3d),_0x3eeee7&&_0x3126c7['writer']['setAttribute']('data-suggestion',_0x4270fc,_0x4bba3d),_0x3126c7['mapper']['bindElementToMarker'](_0x4bba3d,_0x5e63f4['markerName']),_0x404915&&(_0x5b65e5['activeMarkers']['includes'](_0x5e63f4['markerName'])?_0x3126c7['writer']['addClass']('ck-suggestion-marker--active',_0x4bba3d):_0x3126c7['writer']['removeClass']('ck-suggestion-marker--active',_0x4bba3d));}}};}_0x5b65e5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x175b2f),_0x5b65e5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x175b2f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4f2e98(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb37c92,_0x1434f8,_0x18c61e)=>{_0x18c61e['options']['showSuggestionHighlights']&&_0x4f2e98({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xb37c92,_0x1434f8,_0x18c61e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x443520,_0x4372d4,_0x185c24)=>{const {type:_0x5e8ecb,id:_0x22d38e}=_0x5b65e5['_splitMarkerName'](_0x4372d4['markerName']),_0x2d60d5=_0x5b65e5['getSuggestion'](_0x22d38e),_0xbc20af=_0x2d60d5['data'];if('formatBlock'!=_0x2d60d5['type']||!_0xbc20af||'setTableColumnHeader'!=_0xbc20af['commandName'])return;const _0x429efa=_0x185c24['mapper']['markerNameToElements'](_0x4372d4['markerName']);if(_0x429efa){for(const _0x17d6f3 of _0x429efa)_0x185c24['writer']['removeClass']('ck-suggestion-marker-'+_0x5e8ecb,_0x17d6f3),_0x185c24['writer']['removeClass']('ck-suggestion-marker--active',_0x17d6f3),_0x185c24['writer']['removeAttribute']('data-suggestion',_0x17d6f3),_0x185c24['mapper']['unbindElementFromMarkerName'](_0x17d6f3,_0x4372d4['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe31d19=this['editor'],_0x46d8e4=_0xe31d19['locale'];function _0x326f1a(_0x3f06ff){return{'type':'format','content':c(_0x46d8e4,'*Format:*\x20%0',_0x3f06ff)};}_0xe31d19['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21c7f2=>{if('formatBlock'!=_0x21c7f2['type'])return;const {data:_0x250675}=_0x21c7f2;if(_0x250675){if('setTableRowHeader'==_0x250675['commandName']){const _0x4d9af8=_0x250675['commandParams'][0x0]['forceValue'];return _0x326f1a(c(_0x46d8e4,_0x4d9af8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x250675['commandName']){const _0x14f71=_0x250675['commandParams'][0x0]['forceValue'];return _0x326f1a(c(_0x46d8e4,_0x14f71?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0xc188f5{['afterInit'](){const _0x2323db=this['editor'],_0x5c3144=_0x2323db['locale'],_0x191a5d=_0x2323db['plugins']['get']('TrackChangesEditing');function _0x70172e(_0xa4712){return{'type':'format','content':''+c(_0x5c3144,'*Set\x20table\x20type:*\x20%0',_0xa4712)};}_0x2323db['plugins']['has']('TableLayout')&&(_0x191a5d['enableCommand']('insertTableLayout'),_0x191a5d['enableDefaultAttributesIntegration']('tableType'),_0x191a5d['registerBlockAttribute']('tableType'),_0x191a5d['descriptionFactory']['registerElementLabel'](_0x497cc0=>_0x497cc0['is']('element','table')&&'layout'===_0x497cc0['getAttribute']('tableType'),_0x401c34=>c(_0x5c3144,'ELEMENT_LAYOUT_TABLE',_0x401c34)),_0x191a5d['descriptionFactory']['registerDescriptionCallback'](_0x2e3d5c=>{const {data:_0x5a444b}=_0x2e3d5c;if(_0x5a444b&&'tableType'==_0x5a444b['key'])switch(_0x5a444b['newValue']){case'layout':return _0x70172e(c(_0x5c3144,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x70172e(c(_0x5c3144,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x5f1ccb=>[_0x5f1ccb,null]));class $t extends _0xc188f5{static get['requires'](){return[Ct];}['afterInit'](){const _0x293ea6=this['editor'];if(!_0x293ea6['plugins']['has']('TableClipboard'))return;const _0x4af757=_0x293ea6['plugins']['get']('TrackChangesEditing'),_0x14c526=_0x293ea6['plugins']['get']('TableUtils'),_0x2561dc=_0x293ea6['plugins']['get'](Ct),_0x4b66da=_0x293ea6['plugins']['get']('TableClipboard'),_0x3bf8df=_0x293ea6['plugins']['get']('TableSelection'),_0x55a525=_0x293ea6['plugins']['get'](_0x3716ff);_0x2561dc['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x293ea6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x293ea6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4d39af=null,_0x431fbe=!0x1;_0x55a525['on']('contentInsertion',(_0xb8c848,_0x45ae43)=>{_0x431fbe='paste'===_0x45ae43['method'];}),_0x293ea6['model']['on']('insertContent',(_0x52d711,_0x5732a0)=>{if(!_0x431fbe&&null===_0x3bf8df['getSelectedTableCells']())return;const [_0x34bf8e,_0x898883]=_0x5732a0,_0xfd55f=_0x5732a0[_0x5732a0['length']-0x1];_0xfd55f&&_0xfd55f['forceDefaultExecution']||_0x4af757['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x52d5ea,_0x4f7792,_0x4ac962,_0x2b227,_0x39c7bb){if(_0x4f7792&&!_0x4f7792['is']('documentSelection'))return!0x1;const _0x5325b2=_0x39c7bb['getTableIfOnlyTableInContent'](_0x52d5ea,_0x4ac962);if(!_0x5325b2||!De(_0x5325b2,void 0x0,_0x2b227))return!0x1;const _0x31fabe=_0x2b227['getSelectionAffectedTableCells'](_0x4ac962['document']['selection']);if(!_0x31fabe['length'])return!0x1;const _0x293ab7=_0x31fabe[0x0]['findAncestor']('table'),_0x4a82ec=_0x2b227['getRowIndexes'](_0x31fabe),_0x2808b0=_0x2b227['getColumnIndexes'](_0x31fabe),_0xba82f3={'startRow':_0x4a82ec['first'],'endRow':_0x4a82ec['last'],'startColumn':_0x2808b0['first'],'endColumn':_0x2808b0['last']};return 0x1==_0x31fabe['length']&&(_0xba82f3['endRow']+=_0x2b227['getRows'](_0x5325b2)-0x1,_0xba82f3['endColumn']+=_0x2b227['getColumns'](_0x5325b2)-0x1),De(_0x293ab7,_0xba82f3,_0x2b227);}(_0x34bf8e,_0x898883,_0x293ea6['model'],_0x14c526,_0x4b66da)&&(_0x52d711['stop'](),_0x4d39af={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x293ea6['model']['change'](()=>{_0x293ea6['model']['insertContent'](_0x5732a0[0x0],_0x5732a0[0x1],_0x5732a0[0x2],{'forceDefaultExecution':!0x0});const _0xa11239=_0x543158(),{rowInsertionRanges:_0x1f020c,columnInsertionRanges:_0x1fee31,insertionRanges:_0x3bb88f,deletionRanges:_0x1194a5,cells:_0x3821ae}=_0x4d39af;_0x1f020c['length']&&_0x4af757['markMultiRangeInsertion'](_0x1f020c,'tablePasteRow',{'tablePasteChainId':_0xa11239}),_0x1fee31['length']&&_0x4af757['markMultiRangeInsertion'](_0x1fee31,'tablePasteColumn',{'tablePasteChainId':_0xa11239}),_0x3bb88f['length']&&(_0x4af757['markMultiRangeInsertion'](_0x3bb88f,'tablePaste',{'tablePasteChainId':_0xa11239,'skipNestingCheck':!0x0}),_0x3bb88f['forEach'](_0x5d35f8=>_0x5d35f8['detach']?.())),_0x1194a5['length']&&(_0x4af757['markMultiRangeDeletion'](_0x1194a5,'tablePaste',{'tablePasteChainId':_0xa11239,'skipNestingCheck':!0x0}),_0x1194a5['forEach'](_0x394326=>_0x394326['detach']?.()));const _0x3bf60f=_0x4af757['markMultiRangeBlockFormat'](_0x3821ae['map'](({element:_0x47534e})=>_0x47534e),{'formatGroupId':_0x543158()},[],'tablePasteCell',{'tablePasteChainId':_0xa11239});if(_0x3bf60f){const _0x328422=_0x3bf60f['getMarkers'](),_0x367d1e=[];for(const {element:_0x3a5eb6,attributes:_0x4e2998}of _0x3821ae){if(!_0x4e2998)continue;const _0x126764=_0x293ea6['model']['createRangeOn'](_0x3a5eb6),_0x2dff2a=_0x328422['find'](_0x12e308=>_0x12e308['getRange']()['isEqual'](_0x126764));_0x2dff2a&&_0x367d1e['push']([_0x2dff2a['name'],_0x4e2998]);}_0x367d1e['length']&&_0x3bf60f['setAttribute']('markerAttributes',Object['fromEntries'](_0x367d1e));}_0x4d39af=null;}));},{'priority':_0x1e4238['high']+0xa}),_0x55a525['on']('contentInsertion',()=>{_0x431fbe=!0x1;},{'priority':'lowest'}),_0x293ea6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5be193,_0x1aad28)=>{const [_0x440743,_0x216c3e,,_0x27cbf8]=_0x1aad28;if(!_0x4d39af)return;_0x5be193['stop']();const _0x37c45b=_0x440743['cell'],_0x4c612d=_0x216c3e,_0x187649=Ue(_0x37c45b),_0x130252=Ue(_0x4c612d);_0x5be193['return']=_0x37c45b;let _0x5b149a=null,_0x59c438=null;if(_0x130252||_0x187649){if(_0x187649&&!_0x130252){_0x27cbf8['remove'](_0x37c45b['getChild'](0x0));for(const _0x1ac406 of Array['from'](_0x4c612d['getChildren']()))_0x27cbf8['insert'](_0x1ac406,_0x37c45b,'end');const _0x1007ae=_0x4d39af['rowInsertionIndexes']['includes'](_0x440743['row']),_0x4ebcc2=_0x4d39af['columnInsertionIndexes']['includes'](_0x440743['column']);_0x1007ae||_0x4ebcc2||(_0x5b149a=_0x27d8bc['fromRange'](_0x27cbf8['createRangeIn'](_0x37c45b)));}else _0x130252&&!_0x187649&&(_0x59c438=_0x27cbf8['createRangeIn'](_0x37c45b));}else{const _0x4dd4e4=_0x27cbf8['createElement']('tableCellSuggestion'),_0x4f956d=_0x27cbf8['createElement']('tableCellSuggestion');_0x27cbf8['wrap'](_0x27cbf8['createRangeIn'](_0x37c45b),_0x4f956d),_0x27cbf8['insert'](_0x4dd4e4,_0x37c45b,0x0);for(const _0x1bf061 of Array['from'](_0x4c612d['getChildren']()))_0x27cbf8['insert'](_0x1bf061,_0x4dd4e4,'end');_0x5b149a=_0x27d8bc['fromRange'](_0x27cbf8['createRangeOn'](_0x4dd4e4)),_0x59c438=_0x27d8bc['fromRange'](_0x27cbf8['createRangeOn'](_0x4f956d));}const _0x1a5e69=Array['from'](_0x4c612d['getAttributes']())['filter'](([_0x347db8])=>xe['includes'](_0x347db8));_0x4d39af['cells']['push']({'element':_0x37c45b,'attributes':_0x1a5e69['length']?Object['fromEntries'](_0x1a5e69):null}),_0x5b149a&&_0x4d39af['insertionRanges']['push'](_0x5b149a),_0x59c438&&_0x4d39af['deletionRanges']['push'](_0x59c438);},{'priority':'high'}),_0x14c526['on']('insertColumns',(_0x34d9a1,_0xd7004b)=>{const [_0x427fee,_0x5cafa7={}]=_0xd7004b;if(!_0x4d39af)return;const _0x44e535=_0x5cafa7['at']||0x0,_0x456993=_0x5cafa7['columns']||0x1;_0x4d39af['columnInsertionIndexes']=new Array(_0x456993)['fill'](_0x44e535)['map']((_0x3083d8,_0x1ce23e)=>_0x3083d8+_0x1ce23e);for(const {cell:_0x2747c5}of _0x14c526['createTableWalker'](_0x427fee,{'startColumn':_0x44e535,'endColumn':_0x44e535+_0x456993-0x1}))_0x4d39af['columnInsertionRanges']['push'](_0x293ea6['model']['createRangeOn'](_0x2747c5));},{'priority':'low'}),_0x14c526['on']('insertRows',(_0x570fe8,_0x3ed443)=>{const [_0x332123,_0x405208={}]=_0x3ed443;if(!_0x4d39af)return;const _0x4f1f8d=_0x405208['at']||0x0,_0x3fb62c=_0x405208['rows']||0x1;_0x4d39af['rowInsertionIndexes']=new Array(_0x3fb62c)['fill'](_0x4f1f8d)['map']((_0xbf656f,_0x568b25)=>_0xbf656f+_0x568b25);for(const {cell:_0x304715}of _0x14c526['createTableWalker'](_0x332123,{'startRow':_0x4f1f8d,'endRow':_0x4f1f8d+_0x3fb62c-0x1}))_0x4d39af['rowInsertionRanges']['push'](_0x293ea6['model']['createRangeOn'](_0x304715));},{'priority':'low'}),_0x4af757['descriptionFactory']['registerDescriptionCallback'](_0x2a1094=>{if(_0x2a1094['subType']&&_0x2a1094['subType']['startsWith']('tablePaste'))return _0x2a1094['previous']?{}:{'type':'insertion','content':c(_0x293ea6['locale'],'*Replace\x20table\x20cells*')};});const _0x263ca4=()=>!0x1;for(const _0x59c966 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4af757['_suggestionFactory']['registerCustomCallback']('insertion',_0x59c966,'join',_0x263ca4),_0x4af757['_suggestionFactory']['registerCustomCallback']('deletion',_0x59c966,'join',_0x263ca4),_0x4af757['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x59c966,'join',_0x263ca4);_0x4af757['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x263ca4),_0x4af757['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x43c7d8,_0x5821c1,_0x4b7886)=>{const _0xbaf176=_0x43c7d8['map'](_0x1cc418=>_0x1cc418['getContainedElement']())['filter'](_0x507aa1=>_0x507aa1),_0x891e95=new Map(_0xbaf176['map'](_0x2a12ca=>[_0x2a12ca,null]));if(_0x4d39af){for(const {element:_0x1f5852,attributes:_0x5c7f4d}of _0x4d39af['cells'])_0x5c7f4d&&_0x891e95['set'](_0x1f5852,_0x5c7f4d);}else{if(_0x4b7886&&_0x4b7886['markerAttributes'])for(const [_0x2ee226,_0x13fbb8]of Object['entries'](_0x4b7886['markerAttributes'])){const _0x5bae97=_0x293ea6['model']['markers']['get'](_0x2ee226),_0x3d82e2=_0x5bae97?_0x5bae97['getRange']()['getContainedElement']():null;_0x3d82e2&&_0x891e95['set'](_0x3d82e2,_0x13fbb8);}}_0x293ea6['model']['change'](_0x170a9d=>{for(const [_0x5dced7,_0x551243]of _0x891e95)_0x170a9d['setAttributes']({...Oe,..._0x551243},_0x5dced7);});});const _0x9c5c73=(_0x292d93,_0x480126)=>{_0x4af757['_suggestionFactory']['registerCustomCallback'](_0x292d93,'tablePaste',_0x480126,(_0x55527f,_0x471eac,_0x35e3e0)=>{_0x293ea6['model']['change'](_0x4d6c09=>{const _0x134ae6=[];for(const _0x51cd0 of _0x55527f){const _0x50340f=_0x51cd0['start']['nodeAfter'];_0x50340f['is']('element','tableCellSuggestion')&&_0x134ae6['push'](_0x50340f);}_0x4af757['_suggestionFactory']['getSuggestionCallback'](_0x292d93,null,_0x480126)(_0x55527f,_0x471eac,_0x35e3e0);for(const _0x303a27 of _0x134ae6)'$graveyard'!=_0x303a27['root']['rootName']&&_0x4d6c09['unwrap'](_0x303a27);});});};_0x9c5c73('insertion','accept'),_0x9c5c73('insertion','discard'),_0x9c5c73('deletion','accept'),_0x9c5c73('deletion','discard'),_0x4af757['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4f8350=>{const _0x1b9ffc=_0x4f8350['map'](_0x328c05=>_0x328c05['getContainedElement']()),_0x5936b6=_0x1b9ffc[0x0]['findAncestor']('table'),{minRow:_0x36ff14,maxRow:_0x16d104}=_0x2561dc['_getCoordsForCells'](_0x1b9ffc);_0x14c526['removeRows'](_0x5936b6,{'at':_0x36ff14,'rows':_0x16d104-_0x36ff14+0x1});}),_0x4af757['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x461dc8=>{const _0x1380e2=_0x461dc8['map'](_0xa7c094=>_0xa7c094['getContainedElement']()),_0x1c1b19=_0x1380e2[0x0]['findAncestor']('table'),{minColumn:_0x455b32,maxColumn:_0xea88d4}=_0x2561dc['_getCoordsForCells'](_0x1380e2);_0x14c526['removeColumns'](_0x1c1b19,{'at':_0x455b32,'columns':_0xea88d4-_0x455b32+0x1});});const _0x2d6004=(_0x9e52d5,_0x44e9b3)=>{if(!_0x44e9b3['subType']||!_0x44e9b3['subType']['startsWith']('tablePaste'))return;const _0x211bd4=_0x44e9b3['attributes']['tablePasteChainId'],_0xd53b3e=_0x4af757['getSuggestions']()['filter'](_0x233152=>_0x233152['isInContent']&&_0x233152['attributes']&&_0x233152['attributes']['tablePasteChainId']==_0x211bd4);_0xd53b3e['length']&&_0x44e9b3['getAllAdjacentSuggestions']()['length']!=_0xd53b3e['length']&&_0xd53b3e['reduce']((_0xdd425c,_0x258e20)=>(_0xdd425c['next']=_0x258e20,_0x258e20['previous']=_0xdd425c,_0x258e20));};function _0x12be59(_0xdbcd4f,_0x4ca5c9=!0x0){const {id:_0xf2ae2d,authorId:_0x3e9c79}=_0x4af757['_splitMarkerName'](_0xdbcd4f['markerName']),_0x5900b8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5adce6=_0x4af757['activeMarkers']['includes'](_0xdbcd4f['markerName']);return _0x5adce6&&_0x5900b8['push']('ck-suggestion-marker--active'),{'classes':_0x5900b8,'attributes':{'data-suggestion':_0xf2ae2d,'data-author-id':_0x3e9c79},'priority':_0x5adce6&&_0x4ca5c9?0xbc2:0xbb8};}_0x4af757['on']('suggestionLoaded',_0x2d6004,{'priority':'high'}),_0x4af757['on']('suggestionUnloaded',_0x2d6004,{'priority':'high'}),_0x293ea6['model']['document']['registerPostFixer'](()=>{let _0x300ac7=!0x1;const _0x46ede3=Array['from'](_0x293ea6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4378ba,data:_0x4ba51d}of _0x46ede3){const {group:_0x3d0818,type:_0x22b5af,id:_0x2cc235}=_0x4af757['_splitMarkerName'](_0x4378ba);if('suggestion'!=_0x3d0818||'deletion'!=_0x22b5af||_0x4ba51d['oldRange'])continue;if(!_0x4af757['hasSuggestion'](_0x2cc235))continue;const _0x56cb0f=_0x4af757['getSuggestion'](_0x2cc235)['getRanges'](),_0x2f6afa=_0x293ea6['plugins']['get']('Users')['me'];for(const _0x1a4708 of _0x4af757['getSuggestions']()){if(!_0x1a4708['isInContent']||_0x1a4708['author']!=_0x2f6afa)continue;if('formatBlock'!=_0x1a4708['type']||'tablePasteCell'!=_0x1a4708['subType'])continue;if(_0x1a4708['getRanges']()['every'](_0xd55bdf=>_0x56cb0f['some'](_0x163f99=>_0x163f99['containsRange'](_0xd55bdf,!0x0)))){for(const _0x95e8f of _0x1a4708['getAllAdjacentSuggestions']())_0x95e8f['isInContent']&&(_0x95e8f['discard'](),_0x300ac7=!0x0);}}}return _0x300ac7;}),_0x293ea6['model']['document']['registerPostFixer'](_0x45ec89=>{const _0x4b426f=_0x293ea6['commands']['get']('redo');if(!_0x4b426f||!_0x4b426f['_createdBatches']['has'](_0x45ec89['batch']))return!0x1;let _0x9dedfe=!0x1;const _0x4f9f28=_0x293ea6['plugins']['get']('Users')['me'],_0x336f50=_0x293ea6['model']['document']['differ']['getChanges'](),_0x3528c9=Array['from'](_0x293ea6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5ef82c,data:_0x2e317f})=>{const {group:_0x491cb9,subType:_0x3ef800,authorId:_0x1c5741}=_0x4af757['_splitMarkerName'](_0x5ef82c);return'suggestion'==_0x491cb9&&'tablePaste'==_0x3ef800&&_0x1c5741==_0x4f9f28['id']&&!_0x2e317f['oldRange'];});for(const _0x3fd668 of _0x336f50){if('insert'!=_0x3fd668['type']||'tableCellSuggestion'!=_0x3fd668['name']||0x1!=_0x3fd668['length'])continue;const _0x5844c2=_0x45ec89['createRange'](_0x3fd668['position'],_0x3fd668['position']['getShiftedBy'](0x1));if(!_0x3528c9['find'](({data:_0x5d4b60})=>_0x5d4b60['newRange']['isEqual'](_0x5844c2))){for(const {name:_0x2de7fc,data:_0x1bb2ad}of _0x3528c9)if(_0x5844c2['containsRange'](_0x1bb2ad['newRange'])){_0x45ec89['updateMarker'](_0x2de7fc,{'range':_0x5844c2}),_0x9dedfe=!0x0;break;}}}return _0x9dedfe;}),_0x293ea6['model']['document']['registerPostFixer'](_0x3ba426=>{let _0x5811f3=!0x1;const _0x27b530=_0x293ea6['plugins']['get']('Users')['me'],_0x379b7d=_0x4af757['getSuggestions']()['filter'](_0x1fe49c=>_0x1fe49c['isInContent']&&_0x1fe49c['author']==_0x27b530),_0x97f84f=new Set(),_0x293f3d=new Set();for(const _0x2e33c8 of _0x379b7d)if('tablePaste'==_0x2e33c8['subType'])for(const _0x13e5f0 of _0x2e33c8['getMarkers']()){const _0x5e6b75=_0x13e5f0['getRange']()['getContainedElement']();if(_0x5e6b75){if(_0x5e6b75['is']('element','tableCellSuggestion')&&Ue(_0x5e6b75)){_0x2e33c8['removeMarker'](_0x13e5f0['name']),_0x97f84f['add'](_0x5e6b75),_0x5811f3=!0x0;const _0x523793=_0x5e6b75['nextSibling'],_0xa0b41f=_0x5e6b75['previousSibling'],_0x8a172d=_0x523793&&_0x523793['is']('element','tableCellSuggestion'),_0x214188=_0xa0b41f&&_0xa0b41f['is']('element','tableCellSuggestion');_0x8a172d&&!_0x97f84f['has'](_0x523793)&&_0x293f3d['add'](_0x523793),_0x214188&&!_0x97f84f['has'](_0xa0b41f)&&_0x293f3d['add'](_0xa0b41f);}else _0x5e6b75['is']('element','paragraph')&&_0x5e6b75['isEmpty']&&(_0x2e33c8['removeMarker'](_0x13e5f0['name']),_0x5811f3=!0x0);}}else{if('tablePasteCell'==_0x2e33c8['subType']){if(!_0x2e33c8['attributes']||!_0x2e33c8['attributes']['tablePasteChainId'])continue;const _0x4221bf=_0x2e33c8['attributes']['markerAttributes'];if(_0x4221bf&&Object['keys'](_0x4221bf)['length'])continue;const _0x6ebd71=_0x2e33c8['attributes']['tablePasteChainId'];let _0x5cbb3e=!0x0,_0x352e8d=!0x0;for(const _0x387415 of _0x379b7d)if(_0x387415['subType']&&_0x387415['subType']['startsWith']('tablePaste')){if(!_0x387415['attributes']['tablePasteChainId']){_0x352e8d=!0x1;break;}if(_0x387415['id']!=_0x2e33c8['id']&&_0x387415['attributes']['tablePasteChainId']==_0x6ebd71){_0x5cbb3e=!0x1;break;}}_0x352e8d&&_0x5cbb3e&&(_0x2e33c8['removeMarkers'](),_0x5811f3=!0x0);}}for(const _0x39984c of _0x97f84f)_0x3ba426['remove'](_0x39984c);for(const _0x42f9fe of _0x293f3d)_0x3ba426['unwrap'](_0x42f9fe);return _0x5811f3;}),_0x293ea6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4ba816=>_0x12be59(_0x4ba816),'converterPriority':'high'}),_0x293ea6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x19b1df,_0x2b8460)=>_0x2b8460['options']['showSuggestionHighlights']?_0x12be59(_0x19b1df,!0x1):null,'converterPriority':'high'});const _0x2cf11f=_0x293ea6['editing']['view'];this['listenTo'](_0x2cf11f['document'],'clipboardOutput',(_0x2f0c06,_0x5bf987)=>{const _0x1fbf7d=[];for(const _0x31a3bf of _0x2cf11f['createRangeIn'](_0x5bf987['content'])['getItems']())_0x31a3bf['is']('element','suggestion-td')&&_0x1fbf7d['push'](_0x31a3bf);_0x2cf11f['change'](_0x199fbc=>{for(const _0x16ad60 of _0x1fbf7d)_0x199fbc['move'](_0x199fbc['createRangeIn'](_0x16ad60),_0x199fbc['createPositionBefore'](_0x16ad60)),_0x199fbc['remove'](_0x16ad60);});});}}function Ue(_0x554cba){if(_0x554cba['isEmpty'])return!0x0;const _0x2d380d=_0x554cba['getChild'](0x0);return _0x2d380d['is']('element','paragraph')&&_0x2d380d['isEmpty'];}function De(_0x2a80df,_0x370850={},_0x35eae7){for(const {isAnchor:_0x2285ef,cellHeight:_0x3cc02c,cellWidth:_0x101111}of _0x35eae7['createTableWalker'](_0x2a80df,{'includeAllSlots':!0x0,..._0x370850}))if(!_0x2285ef||0x1!=_0x3cc02c||0x1!=_0x101111)return!0x1;return!0x0;}class Bt extends _0xc188f5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x260849=this['editor']['plugins']['get']('TrackChangesEditing');_0x260849['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x260849['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x260849['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x260849['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x260849['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x260849['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4ffcdd,_0x39aaa7){const _0x471fd9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24cdc3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5d51e4=_0x39aaa7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x286c4f=_0x24cdc3['getColumnGroupElement'](_0x5d51e4);let _0x3d1693=_0x286c4f?_0x24cdc3['getTableColumnsWidths'](_0x286c4f):null,_0x5273ca=_0x5d51e4['getAttribute']('tableWidth')||null;const _0x223fcf=_0x39aaa7['tableWidth']||_0x5273ca,_0x5eaff2=_0x39aaa7['columnWidths']||_0x3d1693,_0x1a8668=this['editor']['plugins']['get']('Users')['me'];for(const _0x5401b2 of _0x471fd9['getSuggestions']()){const _0x572e45=_0x5401b2['getContainedElement']();if('resizeTable'===_0x5401b2['subType']&&_0x572e45===_0x5d51e4){_0x5401b2['author']!==_0x1a8668&&_0x5401b2['discard']();const _0x506a2a=_0x5401b2['data']['commandParams'];_0x5273ca=_0x506a2a[0x0]['tableWidth'],_0x3d1693=_0x506a2a[0x0]['columnWidths'];break;}}_0x4ffcdd({'table':_0x5d51e4,'tableWidth':_0x223fcf,'columnWidths':_0x5eaff2}),_0x471fd9['markBlockFormat'](_0x5d51e4,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5273ca,'columnWidths':_0x3d1693}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x32e9e1){if('formatBlock'!=_0x32e9e1['type']&&'formatInline'!=_0x32e9e1['type'])return;const {data:_0x28059e}=_0x32e9e1;if(_0x28059e&&'resizeTable'===_0x28059e['formatGroupId']){const _0x1abd7f='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x1abd7f)};}}}class Ot extends _0xc188f5{['afterInit'](){const _0x437aaf=this['editor'];_0x437aaf['plugins']['has']('Template')&&_0x437aaf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0xc188f5{['afterInit'](){const _0x4f3269=this['editor'];if(!_0x4f3269['commands']['get']('insertTableOfContents'))return;_0x4f3269['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x47cdb5=_0x4f3269['plugins']['get']('TrackChangesEditing'),_0x3a2a63=_0x4f3269['locale'];_0x47cdb5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5129b7=>c(_0x3a2a63,'ELEMENT_TABLE_OF_CONTENTS',_0x5129b7));}}class xt extends _0xc188f5{['afterInit'](){const _0x40948b=this['editor'];if(!_0x40948b['plugins']['has']('Title'))return;const _0x2f06f0=_0x40948b['plugins']['get']('TrackChangesEditing');_0x2f06f0['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x40948b['locale'],'ELEMENT_TITLE')),_0x40948b['model']['document']['registerPostFixer'](_0x3a8fef=>{let _0x511d1a=!0x1;const _0x416b0f=Array['from'](_0x40948b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e3d09,data:_0x3f88f2}of _0x416b0f){const {group:_0x52eae5}=_0x2f06f0['_splitMarkerName'](_0x3e3d09);if('suggestion'!==_0x52eae5||!_0x3f88f2['newRange'])continue;const _0x1d0c8a=_0x3f88f2['newRange'],_0x49e86b=_0x1d0c8a['end']['nodeBefore'];if(!_0x49e86b||!_0x49e86b['is']('element','title-content'))continue;if(!_0x1d0c8a['start']['isTouching'](_0x1d0c8a['end']))continue;const _0x256050=_0x40948b['model']['schema']['getNearestSelectionRange'](_0x1d0c8a['end'],'forward');if(_0x256050&&_0x256050['isCollapsed']){const _0x5cdfc8=_0x3a8fef['createRange'](_0x1d0c8a['start'],_0x256050['start']);_0x5cdfc8['isEqual'](_0x1d0c8a)||(_0x3a8fef['updateMarker'](_0x3e3d09,{'range':_0x5cdfc8}),_0x511d1a=!0x0);}_0x511d1a||(_0x3a8fef['removeMarker'](_0x3e3d09),_0x511d1a=!0x0);}return _0x511d1a;});}}class Tt extends _0xc188f5{['afterInit'](){const _0x36e168=this['editor'],_0x154c53=_0x36e168['plugins']['get']('TrackChangesEditing');_0x36e168['plugins']['has']('Uploadcare')&&(_0x154c53['enableCommand']('uploadcare'),_0x36e168['plugins']['has']('UploadcareImageEdit')&&(_0x154c53['enableCommand']('uploadcareImageEdit'),_0x154c53['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x154c53['registerBlockAttribute']('uploadcareImageId'),_0x154c53['descriptionFactory']['registerDescriptionCallback'](_0x4a4b79=>{if('attribute'!=_0x4a4b79['type'])return;const {data:_0x4a5556}=_0x4a4b79;return _0x4a5556&&'uploadcareImageId'==_0x4a5556['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0xc188f5{['afterInit'](){const _0x4f504a=this['editor'],_0x47fee5=_0x4f504a['plugins']['get']('TrackChangesEditing');_0x4f504a['plugins']['has']('UndoEditing')&&(_0x47fee5['enableCommand']('undo'),_0x47fee5['enableCommand']('redo'));}}class Ut extends _0xc188f5{static get['requires'](){return[Ct];}['afterInit'](){const _0x57cafb=this['editor'];if(!_0x57cafb['plugins']['has']('TableCaptionEditing'))return;_0x57cafb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0xc188f5{['tableProperties'];['tableCellProperties'];constructor(_0x9ec9a1){super(_0x9ec9a1),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 _0x19c74f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x507ca1 of this['tableProperties'])_0x19c74f['enableCommand'](_0x507ca1,(_0x1f5755,_0x54ad8b)=>{const _0x2f2f06=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x507ca1,[_0x2f2f06],this['tableProperties'],'tableProperties',_0x1f5755,_0x54ad8b);});_0x19c74f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x19c74f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x19c74f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1631c3,_0x16d1f3)=>this['handleDiscardAction'](this['tableProperties'],_0x1631c3,_0x16d1f3)),_0x19c74f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x52788e of this['tableCellProperties'])_0x19c74f['enableCommand'](_0x52788e,(_0x4a1892,_0x2eb9fc)=>{const _0x48cacb=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x52788e,_0x48cacb,this['tableCellProperties'],'tableCellProperties',_0x4a1892,_0x2eb9fc);});_0x19c74f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x19c74f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x19c74f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x523243,_0x5d3964)=>this['handleDiscardAction'](this['tableCellProperties'],_0x523243,_0x5d3964)),_0x19c74f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x19c74f['descriptionFactory']['registerDescriptionCallback'](_0x23425e=>this['handleSuggestionDescription'](_0x23425e));}['_handlePropertyChange'](_0x518d0f,_0xc55e45,_0x1a749c,_0x249d74,_0x1a6acf,_0x4fa0cc){const _0x744b58=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4fa0cc['batch'],()=>{for(const _0x359c9e of _0xc55e45){if(this['_getSuggestion'](_0x359c9e,_0x249d74))_0x1a6acf(_0x4fa0cc);else{const _0x3541ec={};for(const _0x27b188 of _0x1a749c){const _0x30da38=_0x359c9e['getAttribute'](_0x27b188);void 0x0!==_0x30da38&&(_0x3541ec[_0x27b188]=_0x30da38);}_0x1a6acf(_0x4fa0cc),_0x744b58['markBlockFormat'](_0x359c9e,{'commandParams':[_0x3541ec]},[],_0x249d74);}}});}['handleDiscardAction'](_0x258505,_0x682a73,_0x44db1){const _0x1e31e3=_0x682a73[0x0]['start']['nodeAfter'],_0x4e38a9=_0x44db1['commandParams'][0x0];this['editor']['model']['change'](_0x222b4a=>{for(const _0x226a81 of _0x258505)void 0x0!==_0x4e38a9[_0x226a81]?_0x222b4a['setAttribute'](_0x226a81,_0x4e38a9[_0x226a81],_0x1e31e3):_0x222b4a['removeAttribute'](_0x226a81,_0x1e31e3);});}['handleSuggestionDescription'](_0xc265f1){if(_0xc265f1['data'])switch(_0xc265f1['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'](_0x50dcd3,_0x2a8781){const _0x242c17=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xfcb912 of _0x242c17['getSuggestions']({'skipNotAttached':!0x0})){const _0xdc1bf0=_0xfcb912['getContainedElement']();if(_0xfcb912['subType']===_0x2a8781&&_0xdc1bf0===_0x50dcd3)return _0xfcb912;}return null;}}const u='$elementName';class p extends _0xc188f5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x546bdd,_0xa02684,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d6c54){super(_0x1d6c54),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x77cdd5,_0x37cded,_0x41b256,_0x49de87)=>{this['_model']['change'](()=>{for(const _0x3a3200 of[..._0x49de87,..._0x41b256])this['_model']['markers']['has'](_0x3a3200)&&_0x1d6c54['editing']['reconvertMarker'](_0x3a3200);});}),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']=_0x1d6c54['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(),_0x1d6c54['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1d6c54['config']['get']('trackChanges.trackFormatChanges'),_0x1d6c54['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1d6c54['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1d6c54,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1d51ad=this['editor'],_0x173126=(_0x151e56,_0x33d089)=>{if('attribute'!=_0x151e56)return'ck-suggestion-marker-'+_0x151e56;const _0x598737=_0x33d089['split']('|')[0x0];return this['_isBlockAttribute'](_0x598737)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1d51ad['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2f9032=>{const {id:_0xa0a36,authorId:_0x26d96e,type:_0x266d32,subType:_0xfa2a0b}=this['_splitMarkerName'](_0x2f9032['markerName']),_0x106d30=['ck-suggestion-marker',_0x173126(_0x266d32,_0xfa2a0b)];let _0x40e53d=0xbb8;return this['activeMarkers']['includes'](_0x2f9032['markerName'])&&(_0x106d30['push']('ck-suggestion-marker--active'),_0x40e53d=0xbc2),'deletion'==_0x266d32&&(_0x40e53d+=0x5),{'classes':_0x106d30,'attributes':{'data-suggestion':_0xa0a36,'data-author-id':_0x26d96e},'priority':_0x40e53d};}}),_0x1d51ad['conversion']['for']('dataDowncast')['add'](_0x4b1cdd=>{_0x4b1cdd['on']('addMarker:suggestion',(_0x169f21,_0x493a10,_0x57798d)=>{if(!_0x57798d['options']['showSuggestionHighlights'])return;const _0x42454c=_0x493a10['item'];if(!_0x42454c)return;const _0x62a0d9=_0x57798d['mapper']['toViewElement'](_0x42454c);_0x1d51ad['model']['schema']['isObject'](_0x42454c)&&_0x62a0d9&&!_0x62a0d9['getCustomProperty']('widget')&&_0x62a0d9['is']('containerElement')&&_0x1795d6(_0x62a0d9,_0x57798d['writer']);},{'priority':'high'});}),_0x1d51ad['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5afc35,_0xedf533)=>{if(!_0xedf533['options']['showSuggestionHighlights'])return null;const {type:_0x55cd6e,subType:_0x362e14}=this['_splitMarkerName'](_0x5afc35['markerName']);return{'classes':['ck-suggestion-marker',_0x173126(_0x55cd6e,_0x362e14)],'priority':0xbb8};}});const _0x36add3=({showActiveMarkers:_0x5dc0ea=!0x0,isAttributeSuggestion:_0x3c0280=!0x1}={})=>(_0xcfde94,_0x52f246,_0x122dea)=>{if(!_0x52f246['item'])return;const {id:_0x46bfc,authorId:_0x3282f5}=this['_splitMarkerName'](_0x52f246['markerName']);if(_0x3c0280){const _0x59bf8e=this['_suggestions']['get'](_0x46bfc),_0x467445=this['_getAttributeKey'](_0x59bf8e);if(!this['_isBlockAttribute'](_0x467445))return;}if(_0x52f246['item']['is']('selection'))return void _0x122dea['consumable']['consume'](_0x52f246['item'],_0xcfde94['name']);const _0x3e6361=_0x122dea['mapper']['toViewElement'](_0x52f246['item']);if(_0x52f246['item']['is']('element')&&_0x1d51ad['model']['schema']['isBlock'](_0x52f246['item'])&&!_0x3e6361['getCustomProperty']('addHighlight')){_0x122dea['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3e6361),_0x122dea['writer']['setAttribute']('data-suggestion',_0x46bfc,_0x3e6361),_0x122dea['writer']['setAttribute']('data-author-id',_0x3282f5,_0x3e6361),_0x122dea['mapper']['bindElementToMarker'](_0x3e6361,_0x52f246['markerName']),_0x5dc0ea&&(this['activeMarkers']['includes'](_0x52f246['markerName'])?_0x122dea['writer']['addClass']('ck-suggestion-marker--active',_0x3e6361):_0x122dea['writer']['removeClass']('ck-suggestion-marker--active',_0x3e6361));for(const _0x530e5d of _0x1d51ad['model']['createRangeIn'](_0x52f246['item'])['getItems']())_0x122dea['consumable']['consume'](_0x530e5d,_0xcfde94['name']);_0x122dea['consumable']['consume'](_0x52f246['item'],_0xcfde94['name']);}};_0x1d51ad['conversion']['for']('dataDowncast')['add'](_0x13b137=>{_0x13b137['on']('addMarker:suggestion:formatBlock',(_0x566b87,_0x270aef,_0x51e1c3)=>{_0x51e1c3['options']['showSuggestionHighlights']&&_0x36add3({'showActiveMarkers':!0x1})(_0x566b87,_0x270aef,_0x51e1c3);},{'priority':'highest'});}),_0x1d51ad['conversion']['for']('dataDowncast')['add'](_0x3bf4d5=>{_0x3bf4d5['on']('addMarker:suggestion:attribute',(_0x118822,_0x4d12ae,_0x41baf2)=>{_0x41baf2['options']['showSuggestionHighlights']&&_0x36add3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x118822,_0x4d12ae,_0x41baf2);},{'priority':'highest'});}),_0x1d51ad['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x7773b8,_0x22288e)=>_0x22288e['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x7773b8['substr'](0xb)}}),_0x1d51ad['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x528ba5,{writer:_0x4e30af})=>{let _0x20f54d='suggestion:'+_0x528ba5['getAttribute']('suggestion-type')+':'+_0x528ba5['getAttribute']('id');return _0x528ba5['getAttribute']('marker-count')&&(_0x20f54d+=':'+_0x528ba5['getAttribute']('marker-count')),_0x4e30af['createElement']('$marker',{'data-name':_0x20f54d});}}),_0x1d51ad['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1d51ad['conversion']['for']('editingDowncast')['add'](_0x3a02e3=>{_0x3a02e3['on']('addMarker:suggestion:formatBlock',_0x36add3(),{'priority':'high'});}),_0x1d51ad['conversion']['for']('editingDowncast')['add'](_0x298bf9=>{_0x298bf9['on']('addMarker:suggestion:attribute',_0x36add3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1d51ad['conversion']['for']('editingDowncast')['add'](_0x16ee1c=>{_0x16ee1c['on']('removeMarker:suggestion:formatBlock',(_0x4e9bb1,_0x3c0031,_0x562b3f)=>{const _0x87fe61=_0x562b3f['mapper']['markerNameToElements'](_0x3c0031['markerName']);if(_0x87fe61){for(const _0x9aa10 of _0x87fe61)_0x9aa10['getCustomProperty']('addHighlight')||(_0x562b3f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x9aa10),_0x562b3f['writer']['removeAttribute']('data-suggestion',_0x9aa10),_0x562b3f['writer']['removeAttribute']('data-author-id',_0x9aa10),_0x562b3f['mapper']['unbindElementFromMarkerName'](_0x9aa10,_0x3c0031['markerName']));}},{'priority':'high'});}),_0x1d51ad['conversion']['for']('editingDowncast')['add'](_0x114dfa=>{_0x114dfa['on']('removeMarker:suggestion:attribute',(_0x30643e,_0x10314a,_0x51826f)=>{const _0x267a6e=_0x51826f['mapper']['markerNameToElements'](_0x10314a['markerName']);if(!_0x267a6e)return;const {id:_0x2a361a}=this['_splitMarkerName'](_0x10314a['markerName']),_0x181f82=this['_suggestions']['get'](_0x2a361a),_0xa10625=this['_getAttributeKey'](_0x181f82);if(this['_isBlockAttribute'](_0xa10625)){for(const _0x3e37ce of _0x267a6e)_0x3e37ce['getCustomProperty']('addHighlight')||(_0x51826f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3e37ce),_0x51826f['writer']['removeAttribute']('data-suggestion',_0x3e37ce),_0x51826f['writer']['removeAttribute']('data-author-id',_0x3e37ce),_0x51826f['mapper']['unbindElementFromMarkerName'](_0x3e37ce,_0x10314a['markerName']));}},{'priority':'high'});}),_0x1d51ad['model']['document']['registerPostFixer'](_0x430d68=>{let _0x2bd415=!0x1;const _0x53a162=Array['from'](_0x1d51ad['model']['document']['differ']['getChangedMarkers']()),_0x48c3d1=new Set();for(const {name:_0x29a5fa,data:_0x598f2c}of _0x53a162){const {group:_0x238bd1,type:_0x552996,subType:_0x3963c1,id:_0x13a39c}=this['_splitMarkerName'](_0x29a5fa);if('suggestion'!==_0x238bd1)continue;const _0x3c0cf0=this['_suggestions']['get'](_0x13a39c);if(null!=_0x598f2c['newRange']){'formatInline'==_0x552996&&(_0x2bd415=_0x2bd415||Jt(_0x598f2c['newRange'],_0x29a5fa,_0x430d68,_0x1d51ad['model']['schema']));const _0x47b7bb='attribute'==_0x552996&&this['_isBlockAttribute'](_0x3963c1['split']('|')[0x0]);if(_0x598f2c['newRange']['isCollapsed']||'$graveyard'==_0x598f2c['newRange']['root']['rootName']||'formatBlock'==_0x552996&&!Ht(_0x598f2c['newRange'])||_0x47b7bb&&!Ht(_0x598f2c['newRange'])||'deletion'==_0x552996&&!(!Lt(_0x2eb181=_0x598f2c['newRange'])&&!function(_0x5da585){return _0x5da585['start']['parent']==_0x5da585['end']['nodeBefore']&&_0x5da585['start']['isAtEnd'];}(_0x2eb181)))_0x430d68['removeMarker'](_0x29a5fa),_0x2bd415=!0x0;else{if(!_0x3c0cf0||!_0x3c0cf0['isInContent'])continue;if(_0x598f2c['newRange']&&_0x598f2c['oldRange']&&_0x598f2c['newRange']['isEqual'](_0x598f2c['oldRange']))continue;_0x48c3d1['add'](_0x3c0cf0);}}}var _0x2eb181;return _0x48c3d1['size']>0x0&&(_0x2bd415=!!this['_joinWithAdjacentSuggestions'](_0x48c3d1)||_0x2bd415),_0x2bd415;}),_0x1d51ad['model']['document']['registerPostFixer'](_0x5a5452=>{let _0x18c42e=!0x1;for(const _0x31268c of _0x1d51ad['model']['document']['differ']['getChanges']())if('insert'==_0x31268c['type'])for(const _0x529cc7 of this['_suggestions']['values']()){if(_0x529cc7['isMultiRange']||!_0x529cc7['isInContent'])continue;const _0x5c189f='formatBlock'==_0x529cc7['type'],_0x477be0=this['_getAttributeKey'](_0x529cc7),_0x1e6706=_0x477be0&&this['_isBlockAttribute'](_0x477be0);if(!_0x5c189f&&!_0x1e6706)continue;const _0x338c11=_0x529cc7['getFirstRange']();if(_0x338c11['start']['parent']!=_0x338c11['end']['parent']&&!_0x338c11['end']['isAtEnd']){const _0x6f6018=_0x1d51ad['model']['createPositionAt'](_0x338c11['start']['nodeAfter'],'end'),_0x4217f8=_0x1d51ad['model']['createRange'](_0x338c11['start'],_0x6f6018);_0x5a5452['updateMarker'](_0x529cc7['getFirstMarker'](),{'range':_0x4217f8}),_0x18c42e=!0x0;}}return _0x18c42e;}),_0x1d51ad['model']['document']['registerPostFixer'](_0x3613a8=>this['_processAttributeChanges'](_0x3613a8)),_0x1d51ad['model']['document']['registerPostFixer'](_0x3b215c=>!_0x3b215c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3b215c)),_0x1d51ad['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1d51ad['model']['document']['on']('change:data',(_0x1f56ff,_0x3cbfbd)=>{if(!_0x3cbfbd['isLocal']||_0x3cbfbd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1dec8c=_0x1d51ad['model']['document']['differ']['getChanges']();if(0x0==_0x1dec8c['length'])return;const _0x57f101=[],_0xc6fe1d=_0x1dec8c['filter'](_0x4c9fca=>'attribute'==_0x4c9fca['type']),_0x58ecc3=_0x1dec8c['filter'](_0x2b3883=>'insert'==_0x2b3883['type']&&'$text'!=_0x2b3883['name']);for(const _0x4b1a60 of _0xc6fe1d)this['_isRegisteredAttribute'](_0x4b1a60['attributeKey'])&&_0x57f101['push']({'key':_0x4b1a60['attributeKey'],'newValue':_0x4b1a60['attributeNewValue'],'oldValue':_0x4b1a60['attributeOldValue'],'range':qt(_0x4b1a60['range'],_0x1d51ad['model'])});for(const _0x22cf46 of _0x58ecc3){if('rename'!=_0x22cf46['action']&&'refresh'!=_0x22cf46['action'])continue;const _0x26272c=zt(_0x22cf46['position']['nodeAfter'],_0x1d51ad['model']),_0x3b18cf=_0x22cf46['before'];'rename'==_0x22cf46['action']&&_0x57f101['push']({'key':u,'newValue':_0x22cf46['name'],'oldValue':_0x3b18cf['name'],'range':_0x26272c});for(const [_0x1c2b09,_0x436b63]of _0x3b18cf['attributes']){if(!this['_isRegisteredAttribute'](_0x1c2b09))continue;const _0x55a554=_0x22cf46['attributes']['get'](_0x1c2b09);_0x436b63!==_0x55a554&&_0x57f101['push']({'key':_0x1c2b09,'newValue':_0x55a554,'oldValue':_0x436b63,'range':_0x26272c});}for(const [_0x27a628,_0x1ea1cd]of _0x22cf46['attributes'])this['_isRegisteredAttribute'](_0x27a628)&&(_0x3b18cf['attributes']['has'](_0x27a628)||_0x57f101['push']({'key':_0x27a628,'newValue':_0x1ea1cd,'oldValue':null,'range':_0x26272c}));}0x0!=_0x57f101['length']&&_0x1d51ad['model']['enqueueChange'](_0x3cbfbd,_0x5a132b=>{const _0x4e5dbb=_0x543158();for(const {range:_0x1cbcba,key:_0x55ac11,oldValue:_0x6d76f8,newValue:_0x39354d}of _0x57f101)this['markAttributeChange'](_0x1cbcba,_0x55ac11,_0x6d76f8,_0x39354d,{'groupId':_0x4e5dbb});this['_reduceExistingSuggestions'](_0x5a132b,_0x57f101);});},{'priority':'lowest'}),_0x1d51ad['model']['markers']['on']('update:suggestion',(_0x2a59c1,_0x2948c3,_0xa2c0d)=>{if(null==_0xa2c0d){const {id:_0x259436}=this['_splitMarkerName'](_0x2948c3['name']),_0x35c8d2=this['_suggestions']['get'](_0x259436);_0x35c8d2&&_0x35c8d2['addMarkerName'](_0x2948c3['name']);}}),_0x1d51ad['model']['document']['on']('change:data',()=>{const _0x58e1ad=Array['from'](_0x1d51ad['model']['document']['differ']['getChangedMarkers']())['filter'](_0x142a32=>'suggestion'===this['_splitMarkerName'](_0x142a32['name'])['group']);if(0x0===_0x58e1ad['length'])return;_0x58e1ad['sort']((_0x200087,_0xa9504a)=>{const _0x5a7129=_0x200087['data']['oldRange'],_0x51b8b8=_0xa9504a['data']['oldRange'];return null===_0x5a7129&&null===_0x51b8b8?0x0:null===_0x5a7129&&null!==_0x51b8b8?-0x1:null!==_0x5a7129&&null===_0x51b8b8?0x1:_0x5a7129['start']['isBefore'](_0x51b8b8['start'])?-0x1:0x1;});const _0x53da30=new Set(),_0x447b0e=new Set();for(const {name:_0xb04596,data:_0x3d4b63}of _0x58e1ad){const {id:_0xd170}=this['_splitMarkerName'](_0xb04596);if(null===_0x3d4b63['oldRange']){const _0x3f25ae=this['_handleNewSuggestionMarker'](_0xb04596);_0x447b0e['add'](_0x3f25ae);}else{const _0x2bbb08=this['_suggestions']['get'](_0xd170);null!==_0x3d4b63['newRange']||_0x2bbb08['isInContent']?(_0x53da30['add'](_0x2bbb08['head']),_0x447b0e['add'](_0x2bbb08)):this['_removeSuggestion'](_0x2bbb08);}}_0x447b0e['size']>0x0&&this['_refreshSuggestionsChain'](_0x447b0e);for(const _0x2f3978 of _0x53da30)this['fire']('suggestionChanged',_0x2f3978);}),_0x1d51ad['model']['on']('applyOperation',(_0x56ef31,_0x3f8c65)=>{const _0x2606dc=_0x3f8c65[0x0];if(!this['_suggestions']['size'])return;if(!_0x2606dc['isDocumentOperation'])return;if(_0x2606dc['batch']['isUndo']||!_0x2606dc['batch']['isLocal'])return;let _0x4d0895,_0x75c11d;switch(_0x2606dc['type']){case'insert':_0x4d0895=_0x1d51ad['model']['createPositionAt'](_0x2606dc['position']),_0x75c11d=_0x4d0895['getShiftedBy'](_0x2606dc['howMany']);break;case'split':_0x4d0895=_0x1d51ad['model']['createPositionAt'](_0x2606dc['splitPosition']),_0x75c11d=_0x1d51ad['model']['createPositionAt'](_0x2606dc['moveTargetPosition']);break;case'move':_0x4d0895=_0x1d51ad['model']['createPositionAt'](_0x2606dc['targetPosition']),_0x75c11d=_0x4d0895['getShiftedBy'](_0x2606dc['howMany']);break;default:return;}const _0x51d246=_0x1d51ad['model']['createRange'](_0x4d0895,_0x75c11d);_0x1d51ad['model']['change'](()=>{for(const {suggestion:_0x232777,meta:_0x477fea}of this['_findSuggestions'](_0x51d246)){if(_0x232777['isMultiRange'])continue;if('formatInline'==_0x232777['type'])continue;const _0x363844=this['_getAttributeKey'](_0x232777);if(_0x363844&&this['_isBlockAttribute'](_0x363844)&&'split'!=_0x2606dc['type'])continue;const _0x40e00e=_0x232777['data']&&_0x232777['data']['multipleBlocks'];('formatBlock'!=_0x232777['type']||'split'==_0x2606dc['type']&&!_0x40e00e)&&(_0x477fea['containsRangeInObject']||'insertion'==_0x232777['type']&&_0x477fea['isOwn']||_0x232777['getFirstRange']()['containsRange'](_0x51d246)&&this['_breakSuggestionMarker'](_0x232777,_0x4d0895,_0x75c11d));}});},{'priority':'lowest'}),_0x1d51ad['model']['on']('deleteContent',(_0x3b8dcd,_0x39541d)=>{const _0x15ae2c=_0x39541d[0x0],_0x23dcc1=_0x39541d[0x1];if(_0x23dcc1&&_0x23dcc1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x15ae2c['isCollapsed'])return;const _0x210515=_0x1d51ad['model']['schema'],{start:_0x39d1b1,end:_0x2ea9ce}=_0x15ae2c['getFirstRange'](),_0x2600ec=_0x39d1b1['nodeAfter']&&_0x210515['isLimit'](_0x39d1b1['nodeAfter'])?null:_0x210515['getNearestSelectionRange'](_0x39d1b1,'forward'),_0x5d627b=_0x2ea9ce['nodeBefore']&&_0x210515['isLimit'](_0x2ea9ce['nodeBefore'])?null:_0x210515['getNearestSelectionRange'](_0x2ea9ce,'backward'),_0x4d333c=_0x1d51ad['model']['createRange'](_0x2600ec?_0x2600ec['start']:_0x39d1b1,_0x5d627b?_0x5d627b['end']:_0x2ea9ce);_0x1d51ad['model']['change'](_0x10069e=>{this['markDeletion'](_0x4d333c);const _0x2741f1=_0x1d51ad['model']['schema']['getNearestSelectionRange'](_0x4d333c['start']);_0x15ae2c['is']('documentSelection')?_0x10069e['setSelection'](_0x2741f1):_0x15ae2c['setTo'](_0x2741f1);}),_0x3b8dcd['stop']();},{'priority':_0x1e4238['normal']+0xa}),_0x1d51ad['model']['on']('insertContent',(_0x4b0955,_0x477b96)=>{const _0x33021c=_0x477b96[_0x477b96['length']-0x1];_0x33021c&&_0x33021c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1d51ad['model']['change'](()=>{let _0x4a6e6b=_0x1d51ad['model']['insertContent'](_0x477b96[0x0],_0x477b96[0x1],_0x477b96[0x2],{'forceDefaultExecution':!0x0});if(!_0x4a6e6b)return;_0x4b0955['return']=_0x4a6e6b['clone']();const _0x36ca40=_0x4a6e6b['end']['nodeBefore'],_0x12157a=_0x1d51ad['model']['schema'];_0x36ca40&&_0x12157a['isBlock'](_0x36ca40)&&!_0x12157a['isObject'](_0x36ca40)&&(_0x4a6e6b=_0x1d51ad['model']['createRange'](_0x4a6e6b['start'],_0x1d51ad['model']['createPositionAt'](_0x36ca40,'end'))),this['markInsertion'](_0x4a6e6b);}),_0x4b0955['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4f2026=new O(_0x1d51ad,this['_suggestions']);_0x1d51ad['commands']['add']('acceptSuggestion',_0x4f2026),this['enableCommand']('acceptSuggestion');const _0x32034e=new R(_0x1d51ad,this['_suggestions']);_0x1d51ad['commands']['add']('discardSuggestion',_0x32034e),this['enableCommand']('discardSuggestion'),_0x1d51ad['commands']['add']('acceptAllSuggestions',new x(_0x1d51ad,_0x4f2026,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1d51ad['commands']['add']('discardAllSuggestions',new x(_0x1d51ad,_0x32034e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1d51ad['commands']['add']('acceptSelectedSuggestions',new E(_0x1d51ad,_0x4f2026,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1d51ad['commands']['add']('discardSelectedSuggestions',new E(_0x1d51ad,_0x32034e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xd977de=_0x1d51ad['plugins']['get']('CommentsRepository');this['listenTo'](_0xd977de,'addComment',(_0x12cdcf,{threadId:_0x442508})=>{const _0x37d779=this['_suggestions']['get'](_0x442508);_0x37d779&&_0x37d779['commentThread']&&0x1===_0x37d779['commentThread']['length']&&this['_updateSuggestionData'](_0x442508,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xd977de,'removeComment',(_0x4eccf0,{threadId:_0x46754e})=>{const _0x2d3cf5=this['_suggestions']['get'](_0x46754e);_0x2d3cf5&&_0x2d3cf5['commentThread']&&!_0x2d3cf5['commentThread']['length']&&this['_updateSuggestionData'](_0x46754e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1bb528){const _0x411b06=_0x5a8ea7([0x31,0x62,0x69,0x32,0x33,0x4f,0x35,0x63,0x72,0x4d,0x37,0x64,0x48,0x51,0x34,0x66,0x56,0x74,0x44,0x78,0x39,0x36,0x65,0x71,0x38,0x42,0x54,0x77,0x4a,0x6b,0x50,0x6c,0x5a,0x59,0x68,0x75,0x6e,0x70,0x53,0x4b,0x58,0x67,0x79,0x52,0x4c,0x6f,0x46,0x6d,0x73,0x6a,0x57,0x7a,0x43,0x55,0x76,0x41,0x61,0x49,0x4e,0x47,0x30,0x45]),_0x5407b6=0x5f1000a8,_0x5d0c65=0x5f1763c0^_0x5407b6,_0x170e97=window[_0x5a8ea7([0x44,0x61,0x74,0x65])][_0x5a8ea7([0x6e,0x6f,0x77])](),_0x3e4bff=_0x1bb528[_0x5a8ea7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3bd736=new window[(_0x5a8ea7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1eac58=>{_0x3e4bff[_0x5a8ea7([0x6f,0x6e,0x63,0x65])](_0x5a8ea7([0x72,0x65,0x61,0x64,0x79]),_0x1eac58);}),_0x5bfcec={[_0x5a8ea7([0x6b,0x74,0x79])]:_0x5a8ea7([0x45,0x43]),[_0x5a8ea7([0x75,0x73,0x65])]:_0x5a8ea7([0x73,0x69,0x67]),[_0x5a8ea7([0x63,0x72,0x76])]:_0x5a8ea7([0x50,0x2d,0x32,0x35,0x36]),[_0x5a8ea7([0x78])]:_0x5a8ea7([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]),[_0x5a8ea7([0x79])]:_0x5a8ea7([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]),[_0x5a8ea7([0x61,0x6c,0x67])]:_0x5a8ea7([0x45,0x53,0x32,0x35,0x36])},_0x227cc8=_0x3e4bff[_0x5a8ea7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a8ea7([0x67,0x65,0x74])](_0x5a8ea7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5866ed(){let _0x4b6abe,_0x42b926=null,_0x117004=null;try{if(_0x227cc8==_0x5a8ea7([0x47,0x50,0x4c]))return _0x5a8ea7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b6abe=_0x963ac1(),!_0x4b6abe)return _0x5a8ea7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b6abe[_0x5a8ea7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x117004=_0x5a3a51(_0x4b6abe[_0x5a8ea7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b6abe[_0x5a8ea7([0x6a,0x74,0x69])])),await _0x4818c1()?_0x5ab69a()?_0x48ffba()?_0x5a8ea7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1a947c()?(_0x4b6abe[_0x5a8ea7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a8ea7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42b926=_0x377d37(_0x5a8ea7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b6abe[_0x5a8ea7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a8ea7([0x74,0x72,0x69,0x61,0x6c])&&(_0x42b926=_0x377d37(_0x5a8ea7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37ad7f()):_0x5a8ea7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a8ea7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a8ea7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xfb4702){return _0x5a8ea7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x48ffba(){const _0x3d0b55=[_0x5a8ea7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a8ea7([0x74,0x72,0x69,0x61,0x6c])][_0x5a8ea7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b6abe[_0x5a8ea7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x170e97/0x3e8:0xe10*_0x5d0c65;return _0x4b6abe[_0x5a8ea7([0x65,0x78,0x70])]<_0x3d0b55;}function _0x5ab69a(){const _0x5b87e7=_0x4b6abe[_0x5a8ea7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5b87e7)return!0x1;if(_0x5b87e7[_0x5a8ea7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8ea7([0x2a])))return!0x0;if(_0x5b87e7[_0x5a8ea7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8ea7([0x54,0x43])))return!0x0;if(_0x5b87e7[_0x5a8ea7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8ea7([0x52,0x54,0x43]))){if(_0x89c1e6())return!0x0;if(_0x56aac1()||_0x374cbb())return!0x0;}return!0x1;}function _0x1a947c(){const _0x549de4=_0x4b6abe[_0x5a8ea7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x549de4||0x0==_0x549de4[_0x5a8ea7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x15adfd}=new URL(window[_0x5a8ea7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x549de4[_0x5a8ea7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15adfd))return!0x0;const _0x50f1f2=_0x15adfd[_0x5a8ea7([0x73,0x70,0x6c,0x69,0x74])](_0x5a8ea7([0x2e]));return _0x549de4[_0x5a8ea7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1101f8=>_0x1101f8[_0x5a8ea7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8ea7([0x2a])))[_0x5a8ea7([0x6d,0x61,0x70])](_0x483159=>_0x483159[_0x5a8ea7([0x73,0x70,0x6c,0x69,0x74])](_0x5a8ea7([0x2e])))[_0x5a8ea7([0x73,0x6f,0x6d,0x65])](_0x5cf2ce=>_0x50f1f2[_0x5a8ea7([0x65,0x76,0x65,0x72,0x79])]((_0x504cd3,_0x3f9ef8)=>_0x5cf2ce[_0x3f9ef8]===_0x504cd3||_0x5cf2ce[_0x3f9ef8]===_0x5a8ea7([0x2a])));}function _0x37ad7f(){return _0x42b926&&_0x117004?new window[(_0x5a8ea7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1678f5,_0x18dd8b)=>{_0x42b926[_0x5a8ea7([0x74,0x68,0x65,0x6e])](_0x1678f5,_0x18dd8b),_0x117004[_0x5a8ea7([0x74,0x68,0x65,0x6e])](_0x5b3c81=>{_0x5b3c81!=_0x5a8ea7([0x56,0x61,0x6c,0x69,0x64])&&_0x1678f5(_0x5b3c81);},_0x18dd8b);}):_0x42b926||_0x117004||_0x5a8ea7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a3a51(_0xcd77c4,_0x54cb2f){return new window[(_0x5a8ea7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x256c78=>{if(_0x21f43a())return _0x256c78(_0x5a8ea7([0x56,0x61,0x6c,0x69,0x64]));_0x4ad7be(),_0x3e4bff[_0x5a8ea7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a8ea7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x813833=!0x1;const _0x3135e0=_0x543158();function _0x10cdf8(_0x9a1694){return!!_0x9a1694&&(typeof _0x9a1694===_0x5a8ea7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9a1694===_0x5a8ea7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9a1694[_0x5a8ea7([0x74,0x68,0x65,0x6e])]===_0x5a8ea7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9a1694[_0x5a8ea7([0x63,0x61,0x74,0x63,0x68])]===_0x5a8ea7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d7951(_0x216085){_0x48249f(_0x216085)[_0x5a8ea7([0x74,0x68,0x65,0x6e])](_0x38053c=>{if(!_0x38053c||_0x38053c[_0x5a8ea7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a8ea7([0x6f,0x6b]))return _0x5a8ea7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d334e(_0x113dbf(_0x3135e0+_0x54cb2f))!=_0x38053c[_0x5a8ea7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a8ea7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a8ea7([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a8ea7([0x74,0x68,0x65,0x6e])](_0x41007c=>(_0x4eb700(),_0x41007c),()=>{const _0x587d3f=_0x114ff2();return null==_0x587d3f?(_0x4eb700(),_0x5a8ea7([0x56,0x61,0x6c,0x69,0x64])):_0x5a8ea7(_0x170e97-_0x587d3f>(0x7b1c84a8^_0x5407b6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a8ea7([0x74,0x68,0x65,0x6e])](_0x256c78)[_0x5a8ea7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x256c78(_0x5a8ea7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x470d52=0x5f26ee28^_0x5407b6;function _0x4eb700(){const _0xd448a6=_0x5a8ea7([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d334e(_0x113dbf(_0xcd77c4)),_0x40c21a=_0x508690(_0x4d334e(window[_0x5a8ea7([0x4d,0x61,0x74,0x68])][_0x5a8ea7([0x63,0x65,0x69,0x6c])](_0x170e97/_0x470d52)));window[_0x5a8ea7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a8ea7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd448a6,_0x40c21a);}function _0x114ff2(){const _0xd0aa4=_0x5a8ea7([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d334e(_0x113dbf(_0xcd77c4)),_0x420ce8=window[_0x5a8ea7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a8ea7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd0aa4);return _0x420ce8?window[_0x5a8ea7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x508690(_0x420ce8),0x10)*_0x470d52:null;}function _0x48249f(_0x3b442b){return new window[(_0x5a8ea7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bc999,_0x5bd0b8)=>{_0x3b442b[_0x5a8ea7([0x74,0x68,0x65,0x6e])](_0x2bc999,_0x5bd0b8),window[_0x5a8ea7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5bd0b8,0x5f11d468^_0x5407b6);});}}_0x3e4bff[_0x5a8ea7([0x6f,0x6e])](_0x5a8ea7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a6af4,_0x563f5f)=>{if(_0x563f5f[0x0]!=_0xcd77c4)return _0x256c78(_0x5a8ea7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x563f5f[0x1]={..._0x563f5f[0x1],[_0x5a8ea7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3135e0};},{[_0x5a8ea7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a8ea7([0x68,0x69,0x67,0x68])}),_0x3e4bff[_0x5a8ea7([0x6f,0x6e])](_0x5a8ea7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x141c9d=>{_0x10cdf8(_0x141c9d[_0x5a8ea7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x813833=!0x0,_0x5d7951(_0x141c9d[_0x5a8ea7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a8ea7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a8ea7([0x6c,0x6f,0x77])}),_0x3bd736[_0x5a8ea7([0x74,0x68,0x65,0x6e])](()=>{_0x813833||_0x256c78(_0x5a8ea7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x21f43a(){return _0x3e4bff[_0x5a8ea7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a8ea7([0x76,0x69,0x65,0x77])][_0x5a8ea7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a8ea7([0x61,0x75,0x74,0x6f]);}function _0x4ad7be(){_0x3e4bff[_0x5a8ea7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a8ea7([0x76,0x69,0x65,0x77])][_0x5a8ea7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a8ea7([0x61,0x75,0x74,0x6f]);}}function _0x377d37(_0x399aa4){const _0x163aa2=[new window[(_0x5a8ea7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d01b7=>setTimeout(_0x4d01b7,0x5f193e64^_0x5407b6)),_0x3bd736[_0x5a8ea7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a8ea7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5885f9=>{let _0x3f188b=0x0;_0x3e4bff[_0x5a8ea7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a8ea7([0x6f,0x6e])](_0x5a8ea7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ea156,_0x226880)=>{_0x226880[0x0][_0x5a8ea7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f188b++,_0x3f188b==(0x5f100150^_0x5407b6)&&(_0x5885f9(),_0x1ea156[_0x5a8ea7([0x6f,0x66,0x66])]());});}))];return window[_0x5a8ea7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a8ea7([0x72,0x61,0x63,0x65])](_0x163aa2)[_0x5a8ea7([0x74,0x68,0x65,0x6e])](()=>_0x399aa4);}async function _0x22413f(){await _0x3bd736,_0x3e4bff[_0x5a8ea7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a8ea7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d9879,_0x3e4bff[_0x5a8ea7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a8ea7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d9879,_0x3e4bff[_0x5a8ea7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a8ea7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x89c1e6(){return _0x3b4f8d(_0x5a8ea7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x355638(_0x5a8ea7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5a8ea7([0x73,0x74,0x61,0x74,0x65])]==_0x5a8ea7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x56aac1(){return _0x3b4f8d(_0x5a8ea7([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 _0x374cbb(){return _0x3b4f8d(_0x5a8ea7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1127b0(_0x1baf1b){const _0x4fabc9=_0x2031ea();_0x3e4bff[_0x4fabc9]=_0x5a8ea7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1baf1b,_0x1baf1b!=_0x5a8ea7([0x56,0x61,0x6c,0x69,0x64])&&_0x22413f();}function _0x2031ea(){const _0x5e2bf7=window[_0x5a8ea7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a8ea7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a8ea7([0x6e,0x6f,0x77])]())[_0x5a8ea7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a8ea7([0x2e]),'');let _0xad095a=_0x5a8ea7([0x62]);for(let _0x3724d8=0x0;_0x3724d8<_0x5e2bf7[_0x5a8ea7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3724d8+=0x2){let _0x31fe76=window[_0x5a8ea7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e2bf7[_0x5a8ea7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3724d8,_0x3724d8+0x2));_0x31fe76>=_0x411b06[_0x5a8ea7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31fe76-=_0x411b06[_0x5a8ea7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xad095a+=_0x411b06[_0x31fe76];}return _0xad095a;}function _0x963ac1(){const _0x28d8ae=_0x227cc8[_0x5a8ea7([0x73,0x70,0x6c,0x69,0x74])](_0x5a8ea7([0x2e]));if(0x3!=_0x28d8ae[_0x5a8ea7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x29b54e(_0x28d8ae[0x1]);function _0x29b54e(_0x156e7c){const _0x212565=_0x43f253(_0x156e7c);return _0x212565&&_0x3038bc()?_0x212565:null;function _0x3038bc(){const _0xa310da=_0x212565[_0x5a8ea7([0x6a,0x74,0x69])],_0x5c9a0e=window[_0x5a8ea7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa310da[_0x5a8ea7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa310da[_0x5a8ea7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3987ff={..._0x212565,[_0x5a8ea7([0x6a,0x74,0x69])]:_0xa310da[_0x5a8ea7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa310da[_0x5a8ea7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3987ff[_0x5a8ea7([0x76,0x63])],_0x113dbf(_0x3987ff)==_0x5c9a0e;}}}async function _0x4818c1(){let _0x1673c5=!0x0;try{const _0x1427fe=_0x227cc8[_0x5a8ea7([0x73,0x70,0x6c,0x69,0x74])](_0x5a8ea7([0x2e])),[_0x1b8cff,_0x26103e,_0xb6f1fa]=_0x1427fe;return _0x18e41b(_0x1b8cff),await _0x43653a(_0x1b8cff,_0x26103e,_0xb6f1fa),_0x1673c5;}catch(_0x10fd11){return!0x1;}function _0x18e41b(_0x1c8eb1){const _0x464bbe=_0x43f253(_0x1c8eb1);_0x464bbe&&_0x464bbe[_0x5a8ea7([0x61,0x6c,0x67])]==_0x5a8ea7([0x45,0x53,0x32,0x35,0x36])||(_0x1673c5=!0x1);}async function _0x43653a(_0x35170b,_0x3c661c,_0xc2968a){const _0x1b43f8=window[_0x5a8ea7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a8ea7([0x66,0x72,0x6f,0x6d])](_0x48ab8f(_0xc2968a),_0x55c15c=>_0x55c15c[_0x5a8ea7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x556127=new window[(_0x5a8ea7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a8ea7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35170b+_0x5a8ea7([0x2e])+_0x3c661c),_0x55776a=window[_0x5a8ea7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a8ea7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55776a)return;const _0x2ff2fa=await _0x55776a[_0x5a8ea7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a8ea7([0x6a,0x77,0x6b]),_0x5bfcec,{[_0x5a8ea7([0x6e,0x61,0x6d,0x65])]:_0x5a8ea7([0x45,0x43,0x44,0x53,0x41]),[_0x5a8ea7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a8ea7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a8ea7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55776a[_0x5a8ea7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a8ea7([0x6e,0x61,0x6d,0x65])]:_0x5a8ea7([0x45,0x43,0x44,0x53,0x41]),[_0x5a8ea7([0x68,0x61,0x73,0x68])]:{[_0x5a8ea7([0x6e,0x61,0x6d,0x65])]:_0x5a8ea7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2ff2fa,_0x1b43f8,_0x556127)||(_0x1673c5=!0x1);}}function _0x43f253(_0xa13684){return _0xa13684[_0x5a8ea7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a8ea7([0x65,0x79]))?JSON[_0x5a8ea7([0x70,0x61,0x72,0x73,0x65])](_0x48ab8f(_0xa13684)):null;}function _0x48ab8f(_0xdd63e8){return window[_0x5a8ea7([0x61,0x74,0x6f,0x62])](_0xdd63e8[_0x5a8ea7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a8ea7([0x2b]))[_0x5a8ea7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a8ea7([0x2f])));}function _0x113dbf(_0x362eed){let _0x43eecf=0x1505;function _0xe41847(_0xf6bf84){for(let _0x35cfda=0x0;_0x35cfda<_0xf6bf84[_0x5a8ea7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35cfda++){const _0x32fabd=_0xf6bf84[_0x5a8ea7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x35cfda);_0x43eecf=(_0x43eecf<<0x5)+_0x43eecf+_0x32fabd,_0x43eecf&=_0x43eecf;}}function _0x277ac9(_0x57f525){Array[_0x5a8ea7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x57f525)?_0x57f525[_0x5a8ea7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x277ac9):_0x57f525&&typeof _0x57f525==_0x5a8ea7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a8ea7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x57f525)[_0x5a8ea7([0x73,0x6f,0x72,0x74])]()[_0x5a8ea7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3cb8e4,_0x1a3d66])=>{_0xe41847(_0x3cb8e4),_0x277ac9(_0x1a3d66);}):_0xe41847(window[_0x5a8ea7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x57f525));}return _0x277ac9(_0x362eed),_0x43eecf>>>0x0;}function _0x4d334e(_0xb8217b){return _0xb8217b[_0x5a8ea7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a8ea7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a8ea7([0x30]));}function _0x508690(_0x274742){return _0x274742[_0x5a8ea7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a8ea7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a8ea7([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b4f8d(_0x3d6057){return _0x3e4bff[_0x5a8ea7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a8ea7([0x68,0x61,0x73])](_0x3d6057);}function _0x355638(_0x466b8f){return _0x3e4bff[_0x5a8ea7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a8ea7([0x67,0x65,0x74])](_0x466b8f);}function _0x3d9879(){}function _0x5a8ea7(_0x3486f6){return _0x3486f6['map'](_0x1ec6e8=>String['fromCharCode'](_0x1ec6e8))['join']('');}_0x1127b0(await _0x5866ed());}(this);}set['adapter'](_0x2d3188){if(this['_adapter'])throw new _0x5b8507('track-changes-adapter-already-set',this);this['_adapter']=_0x2d3188;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x254e54=!0x1,toJSON:_0x2677a3=!0x1}={}){const _0x44ca27=[];for(const _0x451b19 of this['_suggestions']['values']())_0x254e54&&!_0x451b19['isInContent']||_0x44ca27['push'](_0x451b19);return _0x2677a3?_0x44ca27['map'](_0x595b43=>_0x595b43['toJSON']()):_0x44ca27;}['getSuggestion'](_0x1abcef){const _0x32dc00=this['_suggestions']['get'](_0x1abcef);if(!_0x32dc00)throw new _0x5b8507('track-changes-suggestion-not-found',this);return _0x32dc00;}['hasSuggestion'](_0x13f9bb){return this['_suggestions']['has'](_0x13f9bb);}['addSuggestionData'](_0x595ea4){const {authorId:_0x1e42f7,id:_0x58e0a7,attributes:_0x599c52}=_0x595ea4,[_0x4c0d12,_0x1fd0c4]=_0x595ea4['type']['split'](':'),_0x2699fb=this['_suggestions']['get'](_0x58e0a7)||this['_createSuggestion'](_0x4c0d12,_0x1fd0c4,_0x58e0a7,_0x1e42f7,_0x599c52);if(this['_addThreadToSuggestion'](_0x2699fb),this['_checkSuggestionCorrectness'](_0x2699fb,_0x4c0d12,_0x1fd0c4||null,_0x1e42f7),_0x2699fb['createdAt']=_0x595ea4['createdAt'],_0x2699fb['_isDataLoaded']=!0x0,_0x599c52&&_0x599c52['@external']){const _0x3bb101=_0x599c52['@external'],_0x11d14e=this['_getExternalAuthor'](_0x3bb101['authorName']);_0x2699fb['authoredAt']=_0x3bb101['createdAt'],_0x2699fb['author']=_0x11d14e,_0x2699fb['isExternal']=!0x0;}else _0x2699fb['authoredAt']=_0x595ea4['createdAt'];switch(_0x595ea4['data']&&(_0x2699fb['data']=_0x595ea4['data']),_0x595ea4['attributes']&&(_0x2699fb['attributes']=_0x595ea4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2699fb['_saved']=!0x0),this['_suggestionState']['get'](_0x2699fb)){case'notReady':this['_suggestionState']['set'](_0x2699fb,'dataReady');break;case'markerReady':_0x2699fb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2699fb])),this['_refreshSuggestionsChain'](new Set([_0x2699fb])),this['_suggestionState']['set'](_0x2699fb,'ready'),this['fire']('suggestionLoaded',_0x2699fb)):this['_suggestionState']['set'](_0x2699fb,'removed');}return _0x2699fb;}['acceptSuggestion'](_0x25df52){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x410638 of _0x25df52['getAllAdjacentSuggestions']())_0x410638['accept']();});});}['discardSuggestion'](_0x3e1e38){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1b9b4f of _0x3e1e38['getAllAdjacentSuggestions']())_0x1b9b4f['discard']();});});}['enableCommand'](_0x11db32,_0xd37578){const _0x50e55f=this['editor']['commands']['get'](_0x11db32);if(!_0x50e55f)throw new _0x5b8507('track-changes-command-not-found',this,{'commandName':_0x11db32});if(this['_enabledCommands']['has'](_0x50e55f))throw new _0x5b8507('track-changes-enable-command-twice',this,{'commandName':_0x11db32});this['_enabledCommands']['add'](_0x50e55f),_0xd37578&&_0x50e55f['on']('execute',(_0x111076,_0x31a650)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x31a650['length']>0x0&&_0x31a650[_0x31a650['length']-0x1]&&_0x31a650[_0x31a650['length']-0x1]['forceDefaultExecution']?_0x31a650['pop']():(_0x111076['return']=_0xd37578((..._0x9c870c)=>_0x50e55f['execute'](..._0x9c870c,{'forceDefaultExecution':!0x0}),..._0x31a650),_0x111076['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x437084){let _0x306390,_0x27fc77;const _0x1f57c4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x306390=_0x437084();}catch(_0x3ba55d){_0x27fc77=_0x3ba55d;}return _0x1f57c4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x27fc77&&_0x5b8507['rethrowUnexpectedError'](_0x27fc77,this),_0x306390;}['markInsertion'](_0x1a496c,_0x3d5ee6=null,_0x2229c1={}){if(_0x1a496c['isCollapsed'])return null;const _0x1b75f6=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1d4223,meta:_0xa78dfd}of this['_findSuggestions'](_0x1a496c,'insertion'))if(_0xa78dfd['isOwn']){if(!_0xa78dfd['isNextTo']){if(_0xa78dfd['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x1d4223,_0x2229c1))continue;return _0x1d4223;}if(Xt(_0x1d4223,_0x2229c1))return _0x1d4223;this['_breakSuggestionMarker'](_0x1d4223,_0x1a496c['start'],_0x1a496c['end']);break;}if(_0x3d5ee6==_0x1d4223['subType']&&Xt(_0x1d4223,_0x2229c1)){const _0x43f6d5=_0x1d4223['getFirstRange']();return _0x43f6d5['start']['isEqual'](_0x1a496c['end'])?this['_setSuggestionRange'](_0x1d4223,this['_model']['createRange'](_0x1a496c['start'],_0x43f6d5['end'])):this['_setSuggestionRange'](_0x1d4223,this['_model']['createRange'](_0x43f6d5['start'],_0x1a496c['end'])),_0x1d4223;}}const _0x41db6c=_0x543158(),_0x309402=_0x1b75f6['id'],_0x21edbe=_0x3d5ee6?'insertion:'+_0x3d5ee6:'insertion',_0x1857a1=this['_setSuggestionData']({'id':_0x41db6c,'type':_0x21edbe,'createdAt':new Date(),'authorId':_0x309402,'attributes':_0x2229c1});return this['_addSuggestionMarker'](_0x21edbe,_0x41db6c,_0x309402,_0x1a496c),_0x1857a1;}['markMultiRangeInsertion'](_0x23f0b1,_0x15c8ea='multi',_0x77a97={}){const _0x3c4cac=this['editor']['plugins']['get']('Users')['me'],_0x25021f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x15c8ea,'join');for(const _0x3cb7d1 of this['getSuggestions']())if(_0x3cb7d1['author']['id']==_0x3c4cac['id']&&'insertion'==_0x3cb7d1['type']&&_0x3cb7d1['subType']==_0x15c8ea&&Xt(_0x3cb7d1,_0x77a97)&&(_0x25021f(_0x3cb7d1['getRanges'](),_0x23f0b1)||_0x25021f(_0x23f0b1,_0x3cb7d1['getRanges']()))){for(const _0x50800a of _0x23f0b1)_0x3cb7d1['addRange'](_0x50800a);return _0x3cb7d1;}for(const {suggestion:_0x3aa185,meta:_0x8f79f6}of this['_findSuggestions'](_0x23f0b1,'insertion')){if(!_0x8f79f6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x8f79f6['containsRangeInObject'])continue;if(!Xt(_0x3aa185,_0x77a97))continue;let _0x49a3cb=!0x0;for(const _0x4232c8 of _0x3aa185['getRanges']())for(const _0x2f0320 of _0x23f0b1)if(!_0x4232c8['containsRange'](_0x2f0320)){_0x49a3cb=!0x1;break;}if(_0x49a3cb)return _0x3aa185;}const _0x3bc1ac=_0x543158(),_0x449055=_0x3c4cac['id'],_0xecfb30='insertion:'+_0x15c8ea,_0x51c524=this['_setSuggestionData']({'id':_0x3bc1ac,'type':_0xecfb30,'createdAt':new Date(),'authorId':_0x449055,'attributes':_0x77a97});for(const _0x52ac42 of _0x23f0b1)this['_addSuggestionMarker'](_0xecfb30,_0x3bc1ac,_0x449055,_0x52ac42,o['getMultiRangeId']());return _0x51c524;}['markInlineFormat'](_0x973331,_0x1c5174,_0x40de07=null,_0x2855c4={}){if(_0x40de07=_0x40de07||Kt(_0x1c5174),_0x973331['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xab19a4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x40de07,'accept');return this['forceDefaultExecution'](()=>_0xab19a4([_0x973331],_0x1c5174,_0x2855c4)),null;}const _0x504e88=this['editor']['plugins']['get']('Users')['me'],_0x92ac12=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x645a1b,meta:_0x27abff}of this['_findSuggestions'](_0x973331,'insertion'))_0x27abff['isOwn']&&!_0x27abff['isInsideObject']&&_0x92ac12['push'](..._0x645a1b['getRanges']());}const _0x2e2812=function(_0x75e921,_0x493eff){const _0x145330=[];for(const _0x3d09b2 of _0x493eff){const _0x332b0c=_0x75e921['getIntersection'](_0x3d09b2);_0x332b0c&&_0x145330['push'](_0x332b0c);}return _0x145330;}(_0x973331,_0x92ac12),_0x49d68e=function(_0x1551c5,_0x4425d7){const _0x36eb8b=[_0x1551c5];for(const _0x4680be of _0x4425d7){let _0xbaeb42=0x0;for(;_0xbaeb42<_0x36eb8b['length'];){const _0x2c9364=_0x36eb8b[_0xbaeb42]['getDifference'](_0x4680be);_0x36eb8b['splice'](_0xbaeb42,0x1,..._0x2c9364),_0xbaeb42+=_0x2c9364['length'];}}return _0x36eb8b;}(_0x973331,_0x92ac12);_0x2e2812['length']&&this['_model']['change'](()=>{for(const _0x3c1906 of _0x2e2812){const _0x4d804b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x40de07,'accept');this['forceDefaultExecution'](()=>_0x4d804b([_0x3c1906],_0x1c5174,_0x2855c4));}});for(const _0x508e0c of _0x49d68e){let _0x30ba6c=null,_0xfe3d9a=_0x508e0c['start'],_0x3fe3cb=_0x508e0c['end'];for(const {suggestion:_0x5acdd8,meta:_0x45316f}of this['_findSuggestions'](_0x508e0c,'formatInline')){if(!_0x45316f['isOwn'])continue;if(_0x5acdd8['subType']!=_0x40de07)continue;if(!Xt(_0x5acdd8,_0x2855c4))continue;const _0x2ec2d1=_0x5acdd8['getFirstRange']();if(_0x2ec2d1['containsRange'](_0x508e0c,!0x0))return null;_0xfe3d9a=_0xfe3d9a['isBefore'](_0x2ec2d1['start'])?_0xfe3d9a:_0x2ec2d1['start'],_0x3fe3cb=_0x3fe3cb['isAfter'](_0x2ec2d1['end'])?_0x3fe3cb:_0x2ec2d1['end'],_0x30ba6c?_0x2ec2d1['start']['isBefore'](_0x30ba6c['getFirstRange']()['start'])?(_0x30ba6c['removeMarkers'](),_0x30ba6c=_0x5acdd8):_0x5acdd8['removeMarkers']():_0x30ba6c=_0x5acdd8;}const _0x34e2b4=this['_model']['createRange'](_0xfe3d9a,_0x3fe3cb);if(_0x30ba6c)this['_setSuggestionRange'](_0x30ba6c,_0x34e2b4);else{const _0x4916d0=_0x543158(),_0x2722fc=_0x504e88['id'];this['_setSuggestionData']({'id':_0x4916d0,'type':'formatInline:'+_0x40de07,'data':_0x1c5174,'createdAt':new Date(),'authorId':_0x2722fc,'attributes':_0x2855c4}),this['_addSuggestionMarker']('formatInline:'+_0x40de07,_0x4916d0,_0x2722fc,_0x34e2b4);}}return null;}['markBlockFormat'](_0x46b363,_0x5b7a34,_0x8967f3=[],_0x3b1e2f=null,_0x5d5ef5={}){_0x5b7a34['formatGroupId']||(_0x5b7a34['formatGroupId']=_0x5b7a34['commandName']),_0x5b7a34['multipleBlocks']=_0x46b363['is']('range'),_0x3b1e2f=_0x3b1e2f||Kt(_0x5b7a34);const _0x4ab232=_0x8967f3['map'](_0x131d36=>zt(_0x131d36,this['_model'])),_0x197404=_0x46b363['is']('range')?_0x46b363:zt(_0x46b363,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3d2068=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b1e2f,'accept');return this['forceDefaultExecution'](()=>_0x3d2068([_0x197404],_0x5b7a34,_0x5d5ef5)),null;}_0x4ab232['push'](_0x197404);let _0x157f6d=!0x0;for(const _0x57d9fc of _0x4ab232)if(!this['_rangeIsInLocalUserInsertion'](_0x57d9fc)){_0x157f6d=!0x1;break;}if(_0x157f6d&&'always'!==this['_trackFormatChanges']){const _0x74d75=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b1e2f,'accept');return this['forceDefaultExecution'](()=>_0x74d75([_0x197404],_0x5b7a34,_0x5d5ef5)),null;}let _0x4ff33c=null,_0x5e8990=_0x197404['start'],_0x46eab7=_0x197404['end'];for(const {suggestion:_0x3ce1fa,meta:_0x3e7f8b}of this['_findSuggestions'](_0x197404,'formatBlock')){if(!_0x3e7f8b['isOwn'])continue;if(_0x3e7f8b['isNextTo']||_0x3e7f8b['containsRangeInObject']||_0x3e7f8b['isInsideObject'])continue;if(_0x3ce1fa['data']['formatGroupId']!=_0x5b7a34['formatGroupId'])continue;if(!Xt(_0x3ce1fa,_0x5d5ef5))continue;const _0xcd0d3e=_0x3ce1fa['getFirstRange']();if(_0x3ce1fa['subType']==_0x3b1e2f){if(_0xcd0d3e['containsRange'](_0x197404,!0x0))return null;_0x5e8990=_0x5e8990['isBefore'](_0xcd0d3e['start'])?_0x5e8990:_0xcd0d3e['start'],_0x46eab7=_0x46eab7['isAfter'](_0xcd0d3e['end'])?_0x46eab7:_0xcd0d3e['end'],_0x4ff33c?_0xcd0d3e['start']['isBefore'](_0x4ff33c['getFirstRange']()['start'])?(_0x4ff33c['removeMarkers'](),_0x4ff33c=_0x3ce1fa):_0x3ce1fa['removeMarkers']():_0x4ff33c=_0x3ce1fa;}else{const _0x1b7059=_0x197404['getIntersection'](_0xcd0d3e);this['_cutOutSuggestionMarker'](_0x3ce1fa,_0x1b7059);}}const _0x2159aa=this['editor']['plugins']['get']('Users')['me'],_0x4d8ed4=_0x543158(),_0xe1d07e=_0x2159aa['id'];if(_0x4ff33c)return this['_setSuggestionRange'](_0x4ff33c,this['_model']['createRange'](_0x5e8990,_0x46eab7)),_0x4ff33c;{const _0x36c736=this['_setSuggestionData']({'id':_0x4d8ed4,'type':'formatBlock:'+_0x3b1e2f,'data':_0x5b7a34,'createdAt':new Date(),'authorId':_0xe1d07e,'attributes':_0x5d5ef5});return this['_addSuggestionMarker']('formatBlock:'+_0x3b1e2f,_0x4d8ed4,_0xe1d07e,this['_model']['createRange'](_0x5e8990,_0x46eab7)),_0x36c736;}}['markMultiRangeBlockFormat'](_0x202825,_0x2a6ac2,_0x1d1fa4=[],_0x48859f=null,_0x55a232={}){_0x2a6ac2['formatGroupId']||(_0x2a6ac2['formatGroupId']=_0x2a6ac2['commandName']);const _0x2f2501=_0x202825[0x0];_0x2a6ac2['multipleBlocks']=_0x2f2501['is']('range'),_0x48859f=_0x48859f||Kt(_0x2a6ac2);const _0x269457=_0x1d1fa4['map'](_0x87f350=>zt(_0x87f350,this['_model'])),_0x153e43=_0x2f2501['is']('range')?_0x202825:_0x202825['map'](_0x2b78f8=>zt(_0x2b78f8,this['_model']));if('never'===this['_trackFormatChanges']){const _0x379a11=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48859f,'accept');return this['forceDefaultExecution'](()=>_0x379a11(_0x153e43,_0x2a6ac2,_0x55a232)),null;}_0x269457['push'](..._0x153e43);let _0x4a658f=!0x0;for(const _0x47dab2 of _0x269457)if(!this['_rangeIsInLocalUserInsertion'](_0x47dab2)){_0x4a658f=!0x1;break;}if(_0x4a658f&&'always'!==this['_trackFormatChanges']){const _0x1bc9e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48859f,'accept');return this['forceDefaultExecution'](()=>_0x1bc9e0(_0x153e43,_0x2a6ac2,_0x55a232)),null;}const _0x353b36=this['editor']['plugins']['get']('Users')['me'];for(const _0x2a7f00 of this['getSuggestions']()){if(_0x2a7f00['author']['id']!=_0x353b36['id'])continue;if('formatBlock'!=_0x2a7f00['type']||_0x2a7f00['data']['formatGroupId']!=_0x2a6ac2['formatGroupId'])continue;if(!Xt(_0x2a7f00,_0x55a232))continue;const _0x5c63c1=_0x2a7f00['subType']==_0x48859f;for(let _0x2699dd=0x0;_0x2699dd<_0x153e43['length'];_0x2699dd++){const _0x380d05=_0x153e43[_0x2699dd];for(const _0x2f6562 of _0x2a7f00['getMarkers']()){const _0x288a44=_0x2f6562['getRange']();if(_0x380d05['isEqual'](_0x288a44)){_0x5c63c1?(_0x153e43['splice'](_0x2699dd,0x1),_0x2699dd--):_0x2a7f00['removeMarker'](_0x2f6562['name']);break;}}}}if(0x0==_0x153e43['length'])return null;const _0xc9ae9c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48859f,'join');for(const _0xceb7 of this['getSuggestions']())if(_0xceb7['author']['id']==_0x353b36['id']&&'formatBlock'==_0xceb7['type']&&_0xceb7['data']['formatGroupId']==_0x2a6ac2['formatGroupId']&&_0xceb7['subType']==_0x48859f&&Xt(_0xceb7,_0x55a232)&&(_0xc9ae9c(_0xceb7['getRanges'](),_0x153e43)||_0xc9ae9c(_0x153e43,_0xceb7['getRanges']()))){for(const _0x5a662d of _0x153e43)_0xceb7['addRange'](_0x5a662d);return _0xceb7;}const _0x146566=_0x543158(),_0x53468c=_0x353b36['id'],_0x3d3604='formatBlock:'+_0x48859f,_0x461500=this['_setSuggestionData']({'id':_0x146566,'type':_0x3d3604,'data':_0x2a6ac2,'createdAt':new Date(),'authorId':_0x53468c,'attributes':_0x55a232});for(const _0x41671a of _0x153e43)this['_addSuggestionMarker'](_0x3d3604,_0x146566,_0x53468c,_0x41671a,o['getMultiRangeId']());return _0x461500;}['markDeletion'](_0x212c67,_0x4a3c5=null,_0x21da79={}){if(_0x212c67['isCollapsed'])return null;const _0x3a8b8f=this['editor']['plugins']['get']('Users')['me'],_0x35145c=new _0x27d8bc(_0x212c67['start'],_0x212c67['end']);for(const {suggestion:_0x36489f,meta:_0x395876}of this['_findSuggestions'](_0x35145c,'insertion'))if(_0x395876['isOwn']&&!_0x395876['isNextTo']){if(_0x36489f['isMultiRange']){const _0x3c672b=_0x36489f['getRanges']()['filter'](_0x45f292=>'$graveyard'!=_0x45f292['root']['rootName']);_0x3c672b['every'](_0x137fd6=>_0x35145c['containsRange'](_0x137fd6,!0x0))&&_0x36489f['discard']();if(_0x3c672b['some'](_0x3853a6=>_0x3853a6['containsRange'](_0x35145c,!0x0))){const _0x515c3d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a3c5,'accept');return this['forceDefaultExecution'](()=>_0x515c3d([_0x35145c],null,_0x21da79)),null;}}else{const _0xd97857=_0x35145c['getIntersection'](_0x36489f['getFirstRange']());null!==_0xd97857&&_0x36489f['_onDiscard']([_0xd97857],null,_0x21da79);}}if(_0x35145c['detach'](),_0x35145c['isCollapsed']||'$graveyard'==_0x35145c['root']['rootName'])return null;let _0x5b7f94=null,_0x2d80eb=_0x35145c['start'],_0xf01a2e=_0x35145c['end'];const _0x53a001=this['_findSuggestions'](_0x35145c,'deletion');for(const {suggestion:_0x2c8f4f,meta:_0x231764}of _0x53a001){const _0x32a4a6=this['_model']['createRange'](_0x2d80eb,_0xf01a2e);if(_0x231764['isOwn']&&(this['_mergeNestedSuggestions']||!_0x231764['containsRangeInObject']&&!_0x231764['isInsideObject'])){if(_0x2c8f4f['isMultiRange']){if(!Xt(_0x2c8f4f,_0x21da79))continue;let _0x3c9750=!0x0;for(const _0x2850a7 of _0x2c8f4f['getRanges']()){if(_0x2850a7['containsRange'](_0x32a4a6,!0x0))return _0x2c8f4f;_0x32a4a6['containsRange'](_0x2850a7)||(_0x3c9750=!0x1);}_0x3c9750&&_0x2c8f4f['discard']();}else{const _0x365c46=_0x2c8f4f['getFirstRange']();if(_0x365c46['containsRange'](_0x32a4a6,!0x0))return _0x2c8f4f;if(!Xt(_0x2c8f4f,_0x21da79)){_0x32a4a6['containsRange'](_0x365c46)?_0x2c8f4f['removeMarkers']():_0x365c46['containsPosition'](_0x2d80eb)?_0x2d80eb=_0x365c46['end']:_0x365c46['containsPosition'](_0xf01a2e)&&(_0xf01a2e=_0x365c46['start']);continue;}_0x2d80eb=_0x2d80eb['isBefore'](_0x365c46['start'])?_0x2d80eb:_0x365c46['start'],_0xf01a2e=_0xf01a2e['isAfter'](_0x365c46['end'])?_0xf01a2e:_0x365c46['end'],_0x21da79=Object['assign']({},_0x2c8f4f['attributes']),_0x5b7f94?_0x365c46['start']['isBefore'](_0x5b7f94['getFirstRange']()['start'])?(_0x5b7f94['removeMarkers'](),_0x5b7f94=_0x2c8f4f):_0x2c8f4f['removeMarkers']():_0x5b7f94=_0x2c8f4f;}}}if(_0x5b7f94)return this['_setSuggestionRange'](_0x5b7f94,this['_model']['createRange'](_0x2d80eb,_0xf01a2e)),_0x5b7f94;{const _0x4fb38c=_0x543158(),_0x365a7e=this['_model']['createRange'](_0x2d80eb,_0xf01a2e),_0x8ed7e0=_0x3a8b8f['id'],_0x5991ab=_0x4a3c5?'deletion:'+_0x4a3c5:'deletion',_0x5eb837=this['_setSuggestionData']({'id':_0x4fb38c,'type':_0x5991ab,'createdAt':new Date(),'authorId':_0x8ed7e0,'attributes':_0x21da79});return this['_addSuggestionMarker'](_0x5991ab,_0x4fb38c,_0x8ed7e0,_0x365a7e),_0x5eb837;}}['markMultiRangeDeletion'](_0x56a57a,_0x1c8433='multi',_0x21e97b={}){const _0x462291=this['editor']['plugins']['get']('Users')['me'],_0x3d1300=_0x56a57a['map'](_0x31a5a2=>new _0x27d8bc(_0x31a5a2['start'],_0x31a5a2['end'])),_0x3808e2=new Set();for(const {suggestion:_0x15b10f,meta:_0x560097}of this['_findSuggestions'](_0x3d1300,'insertion'))_0x560097['isOwn']&&!_0x560097['isNextTo']&&_0x3808e2['add'](_0x15b10f);for(const _0x575b05 of _0x3808e2)if(_0x575b05['isMultiRange']){const _0x4628a4=_0x575b05['getRanges']();(!_0x575b05['attributes']||!_0x575b05['attributes']['skipNestingCheck'])&&(_0x4628a4['every'](_0x34b9bd=>_0x3d1300['some'](_0x349763=>_0x349763['containsRange'](_0x34b9bd,!0x0)))&&_0x575b05['discard']());if(_0x3d1300['every'](_0x265e43=>_0x4628a4['some'](_0x58240f=>_0x58240f['containsRange'](_0x265e43,!0x0)))){const _0x4bf9d8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c8433,'accept');return this['forceDefaultExecution'](()=>_0x4bf9d8(_0x56a57a,null,_0x21e97b)),null;}}else{const _0x594d7b=_0x575b05['getFirstRange']();_0x3d1300['some'](_0x392c38=>_0x392c38['containsRange'](_0x594d7b,!0x0))&&_0x575b05['discard']();if(_0x3d1300['every'](_0x52278a=>_0x594d7b['containsRange'](_0x52278a,!0x0))){const _0x3e9dec=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c8433,'accept');return this['forceDefaultExecution'](()=>_0x3e9dec(_0x3d1300,null,_0x21e97b)),null;}}const _0x30de69=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c8433,'join');let _0x4f91bb=null;for(const _0x28e68a of this['getSuggestions']())if(_0x28e68a['author']['id']==_0x462291['id']&&_0x28e68a['isInContent']&&'deletion'==_0x28e68a['type']&&_0x28e68a['subType']==_0x1c8433&&Xt(_0x28e68a,_0x21e97b)&&(_0x30de69(_0x28e68a['getRanges'](),_0x3d1300)||_0x30de69(_0x3d1300,_0x28e68a['getRanges']()))){if(_0x4f91bb){if(_0x28e68a['commentThread']&&_0x28e68a['commentThread']['length'])continue;for(const _0x53f780 of _0x28e68a['getRanges']())_0x4f91bb['isIntersectingWithRange'](_0x53f780)||_0x4f91bb['addRange'](_0x53f780);_0x28e68a['removeMarkers']();}else{_0x4f91bb=_0x28e68a;for(const _0x2652e6 of _0x3d1300)_0x28e68a['isIntersectingWithRange'](_0x2652e6)||_0x28e68a['addRange'](_0x2652e6);}}if(_0x4f91bb)return _0x4f91bb;_0x3808e2['clear']();for(const {suggestion:_0x25a458,meta:_0x542cd9}of this['_findSuggestions'](_0x3d1300,'deletion'))_0x542cd9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x542cd9['containsRangeInObject']&&!_0x542cd9['isInsideObject'])&&Xt(_0x25a458,_0x21e97b)&&_0x3808e2['add'](_0x25a458);for(const _0x441d7f of _0x3808e2){const _0x2950e4=_0x441d7f['getRanges']();if(!_0x21e97b||!_0x21e97b['skipNestingCheck']){if(_0x3d1300['every'](_0x25bd42=>_0x2950e4['some'](_0x3a1e44=>_0x3a1e44['containsRange'](_0x25bd42,!0x0))))return _0x441d7f;}(!_0x441d7f['attributes']||!_0x441d7f['attributes']['skipNestingCheck'])&&(_0x2950e4['every'](_0x5a3a20=>_0x3d1300['some'](_0xcc9b4e=>_0xcc9b4e['containsRange'](_0x5a3a20,!0x0)))&&_0x441d7f['discard']());}const _0x218ee1=_0x543158(),_0x1bc1c8=_0x462291['id'],_0x54d6ed='deletion:'+_0x1c8433,_0xce985f=this['_setSuggestionData']({'id':_0x218ee1,'type':_0x54d6ed,'createdAt':new Date(),'authorId':_0x1bc1c8,'attributes':_0x21e97b});for(const _0x5dccbf of _0x3d1300)_0x5dccbf['detach'](),_0x5dccbf['isCollapsed']||'$graveyard'==_0x5dccbf['root']['rootName']||this['_addSuggestionMarker'](_0x54d6ed,_0x218ee1,_0x1bc1c8,_0x5dccbf,o['getMultiRangeId']());return _0xce985f;}['markAttributeChange'](_0x19f515,_0x554ff5,_0x54d4c5,_0x3f09a1,_0x3f3dc2){if(_0x19f515['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xa4b87b=this['editor']['plugins']['get']('Users')['me']['id'],_0x3eed01=Array['from'](this['_suggestions']['values']())['filter'](_0x521aa3=>'attribute'==_0x521aa3['type']&&_0x521aa3['data']['key']==_0x554ff5&&_0x521aa3['isIntersectingWithRange'](_0x19f515));if('default'===this['_trackFormatChanges']){const _0x23db01=this['_findSuggestions'](_0x19f515,'insertion')['filter'](({meta:_0x3c500e})=>_0x3c500e['isOwn']&&!_0x3c500e['isInsideObject']&&!_0x3c500e['isNextTo'])['map'](({suggestion:_0x5323e7})=>_0x5323e7);_0x3eed01['unshift'](..._0x23db01);}const _0x146bcc=new Map([[_0x19f515,_0x54d4c5]]);for(const _0x323af2 of _0x3eed01){const _0xd3bc5d='attribute'==_0x323af2['type']?_0x323af2['data']['oldValue']:void 0x0,_0x30b3b9=_0x323af2['getFirstRange'](),_0x4af816=Array['from'](_0x146bcc['keys']())['find'](_0x262944=>_0x262944['isIntersecting'](_0x30b3b9));if(!_0x4af816)continue;const _0x2af7fa=_0x4af816['getDifference'](_0x30b3b9);this['_isBlockAttribute'](_0x554ff5)&&'insertion'==_0x323af2['type']&&0x0!=_0x2af7fa['length']||(_0x146bcc['delete'](_0x4af816),_0x2af7fa['forEach'](_0x21fa41=>{_0x146bcc['set'](_0x21fa41,_0x54d4c5);}),'insertion'!=_0x323af2['type']&&_0xd3bc5d!=_0x3f09a1&&_0x146bcc['set'](_0x4af816['getIntersection'](_0x30b3b9),_0xd3bc5d));}const _0x754a43=[];for(const [_0x16834b,_0x266119]of _0x146bcc){const _0x120050=_0x543158(),_0x1aa2b5={'key':_0x554ff5,'oldValue':_0x266119,'newValue':_0x3f09a1};_0x554ff5['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':_0x554ff5});const _0x5f4939=('attribute:'+(_0x554ff5+'|'+Kt({'newValue':_0x3f09a1})))['substring'](0x0,0x3c),_0x518c75=this['_setSuggestionData']({'id':_0x120050,'type':_0x5f4939,'data':_0x1aa2b5,'createdAt':new Date(),'authorId':_0xa4b87b,'attributes':_0x3f3dc2});_0x754a43['push'](_0x518c75),this['_addSuggestionMarker'](_0x5f4939,_0x120050,_0xa4b87b,_0x16834b);}return _0x754a43;}['enableDefaultAttributesIntegration'](_0x46193e){this['enableCommand'](_0x46193e,(_0x89f9a5,..._0x414f39)=>{this['_recordAttributeChanges'](()=>{_0x89f9a5(..._0x414f39);});});}['registerBlockAttribute'](_0x409818){this['_blockAttributeKeys']['add'](_0x409818);}['registerInlineAttribute'](_0x3787db){this['_inlineAttributeKeys']['add'](_0x3787db);}['_getAttributeKey'](_0x2cd4fa){return'attribute'==_0x2cd4fa['type']?_0x2cd4fa['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1febb3,_0x580bf3){const _0x1f06d6=_0x1febb3['getFirstMarker']();this['_model']['change'](_0x35caf6=>{_0x35caf6['updateMarker'](_0x1f06d6,{'range':_0x580bf3});});}['_addThreadToSuggestion'](_0x1cc195){const _0x59e09a=_0x1cc195['id'],_0x5ac4bf=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x59e09a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5ac4bf,'threadId':_0x59e09a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x235578=this['_commentsRepository']['getCommentThread'](_0x59e09a);_0x235578['unbind']('isRemovable'),_0x235578['isRemovable']=!0x1,_0x1cc195['commentThread']=_0x235578;}['_checkSuggestionCorrectness'](_0x2383f3,_0x23e09d,_0x124943,_0x2e7712){if(_0x2383f3['type']!=_0x23e09d||_0x2383f3['subType']!=_0x124943||_0x2383f3['creator']['id']!=_0x2e7712)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5b8507('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x41321f,_0x170f7b){const _0x49439b=_0x41321f['getFirstRange']();if(_0x170f7b['isEqual'](_0x49439b))_0x41321f['removeMarkers']();else{if(_0x49439b['containsRange'](_0x170f7b)){const _0x412380=this['_model']['createPositionAt'](_0x170f7b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x41321f,this['_model']['createRange'](_0x49439b['start'],_0x412380));const _0xc453a5=_0x543158(),_0xc8da65=_0x41321f['creator']['id'],_0x432e3c=_0x41321f['type']+':'+_0x41321f['subType'];this['_setSuggestionData']({'id':_0xc453a5,'type':_0x432e3c,'createdAt':new Date(),'authorId':_0xc8da65,'data':_0x41321f['data'],'attributes':_0x41321f['attributes']});const _0x6da600=this['_model']['createPositionAt'](_0x170f7b['end']['parent'],'after'),_0x21aa3b=this['_model']['createRange'](_0x6da600,_0x49439b['end']);this['_addSuggestionMarker'](_0x432e3c,_0xc453a5,_0xc8da65,_0x21aa3b);}else{if(_0x49439b['containsPosition'](_0x170f7b['start'])){const _0x42a62e=this['_model']['createPositionAt'](_0x170f7b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x41321f,this['_model']['createRange'](_0x49439b['start'],_0x42a62e));}else{const _0x4b4f68=this['_model']['createPositionAt'](_0x170f7b['end']['parent'],'after');this['_setSuggestionRange'](_0x41321f,this['_model']['createRange'](_0x4b4f68,_0x49439b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x10f88f){for(const {suggestion:_0x1ff41b,meta:_0x260b2b}of this['_findSuggestions'](_0x10f88f,'insertion')){if(!_0x260b2b['isOwn'])continue;const _0xfdd22b=_0x1ff41b['getRanges']();for(const _0x475486 of _0xfdd22b)if(!_0x10f88f['getDifference'](_0x475486)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4867dc){const _0x559fa1=this['editor']['plugins']['get']('Users')['getUser'](_0x4867dc);if(!_0x559fa1)throw new _0x5b8507('track-changes-user-not-found',this);return _0x559fa1;}['_getExternalAuthor'](_0x1007fa){const _0x159e52=this['editor']['plugins']['get']('Users'),_0x4881f7=_0x15682d('external:'+_0x1007fa),_0x58d7bb=_0x159e52['getUser'](_0x4881f7);return _0x58d7bb||_0x159e52['addUser']({'id':_0x4881f7,'name':_0x1007fa});}['_createSuggestion'](_0x571f0e,_0x376b4e,_0xfdf740,_0x4596d8,_0x2a0bf9){const _0x3db0f8=this['_getAuthorFromId'](_0x4596d8),_0x258d90=this['_suggestionFactory']['buildSuggestion'](_0x571f0e,_0x376b4e,_0xfdf740,_0x3db0f8,_0x2a0bf9,_0x362c75=>{this['_updateSuggestionData'](_0xfdf740,{'attributes':_0x362c75});const _0x57bd9f=this['getSuggestion'](_0xfdf740);this['_joinWithAdjacentSuggestions'](new Set([_0x57bd9f])),this['_refreshSuggestionsChain'](new Set([_0x57bd9f]));});return this['listenTo'](_0x258d90,'accept',()=>{this['_updateSuggestionData'](_0xfdf740,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x258d90,'discard',()=>{this['_updateSuggestionData'](_0xfdf740,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xfdf740,_0x258d90),this['_suggestionState']['set'](_0x258d90,'notReady'),_0x258d90;}['_splitMarkerName'](_0x451af6){const _0x2247ee=_0x451af6['split'](':');return{'group':_0x2247ee[0x0],'type':_0x2247ee[0x1],'subType':_0x2247ee['length']>=0x5?_0x2247ee[0x2]:null,'id':_0x2247ee['length']<0x5?_0x2247ee[0x2]:_0x2247ee[0x3],'authorId':_0x2247ee['length']<0x5?_0x2247ee[0x3]:_0x2247ee[0x4],'markerCount':0x6==_0x2247ee['length']?_0x2247ee[0x5]:null};}['_breakSuggestionMarker'](_0x340dba,_0x54919e,_0x5e64a3){const _0x5ab3a2=_0x340dba['getFirstRange'](),_0x48115a=_0x5ab3a2['start'],_0x4c7512=_0x5ab3a2['end'];this['_setSuggestionRange'](_0x340dba,this['_model']['createRange'](_0x48115a,_0x54919e));const _0x4aac9a=_0x543158(),_0x37aa85=_0x340dba['creator']['id'],_0x1019b2=_0x340dba['type']+(_0x340dba['subType']?':'+_0x340dba['subType']:'');this['_setSuggestionData']({'id':_0x4aac9a,'type':_0x1019b2,'createdAt':new Date(),'authorId':_0x37aa85,'originalSuggestionId':_0x340dba['id'],'attributes':_0x340dba['attributes'],'data':_0x340dba['data']});const _0x39b798=this['_getAttributeKey'](_0x340dba);('formatBlock'==_0x340dba['type']||_0x39b798&&this['_isBlockAttribute'](_0x39b798))&&(_0x5e64a3=this['_model']['createPositionBefore'](_0x5e64a3['parent'])),this['_addSuggestionMarker'](_0x1019b2,_0x4aac9a,_0x37aa85,this['_model']['createRange'](_0x5e64a3,_0x4c7512));}['_findSuggestions'](_0x49295a,_0x3df5b8=null){const _0x12428a=[],_0x292d1a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x49295a)||(_0x49295a=[_0x49295a]);for(const _0x37f546 of this['getSuggestions']()){if(!_0x37f546['isInContent'])continue;if(_0x3df5b8&&_0x37f546['type']!=_0x3df5b8)continue;let _0x4dd072=!0x1;for(const _0x50d04e of _0x37f546['getRanges']()){for(const _0x4f21fc of _0x49295a){const _0xaa925a=_0x4f21fc['start']['isEqual'](_0x50d04e['end'])||_0x4f21fc['end']['isEqual'](_0x50d04e['start']);if(_0xaa925a||_0x4f21fc['getIntersection'](_0x50d04e)){const _0x4c7d68=_0x4f21fc['containsRange'](_0x50d04e)&&Gt(this['_model']['schema'],_0x50d04e['start'],_0x4f21fc),_0x20c79c=_0x50d04e['containsRange'](_0x4f21fc)&&Gt(this['_model']['schema'],_0x4f21fc['start'],_0x50d04e);_0x12428a['push']({'suggestion':_0x37f546,'meta':{'isOwn':_0x292d1a==_0x37f546['author'],'isNextTo':_0xaa925a,'isInsideObject':_0x4c7d68,'containsRangeInObject':_0x20c79c}}),_0x4dd072=!0x0;break;}}if(_0x4dd072)break;}}return _0x12428a;}['_addSuggestionMarker'](_0x175398,_0x51f34e,_0x47ac27,_0x305c00,_0x331b32){this['_model']['change'](_0x3d7c28=>{let _0x4abb58='suggestion:'+_0x175398+':'+_0x51f34e+':'+_0x47ac27;_0x331b32&&(_0x4abb58=_0x4abb58+':'+_0x331b32),_0x3d7c28['addMarker'](_0x4abb58,{'range':_0x305c00,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x37fcdf){const _0x149468=_0x37fcdf['previous'],_0x528da2=_0x37fcdf['next'];_0x37fcdf['previous']=null,_0x37fcdf['next']=null,null!=_0x149468&&_0x149468['next']==_0x37fcdf&&(_0x149468['next']=_0x528da2),null!=_0x528da2&&_0x528da2['previous']==_0x37fcdf&&(_0x528da2['previous']=_0x149468),'ready'==this['_suggestionState']['get'](_0x37fcdf)&&(this['_suggestionState']['set'](_0x37fcdf,'removed'),this['fire']('suggestionUnloaded',_0x37fcdf,_0x149468,_0x528da2));}['_setSuggestionData'](_0x448154){const _0x377d25=_0x448154['id'],_0x3fe262=this['addSuggestionData'](_0x448154);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4f8a21=this['editor']['plugins']['get']('PendingActions'),_0x381b1c=_0x3fe262['hasComments'],_0x5d44df=_0x3fe262['subType']?_0x3fe262['type']+':'+_0x3fe262['subType']:_0x3fe262['type'],_0x1ac273=this['editor']['locale'],_0x23cb15=_0x4f8a21['add'](c(_0x1ac273,'PENDING_ACTION_SUGGESTION')),_0xca37b9={'id':_0x377d25,'type':_0x5d44df,'hasComments':_0x381b1c,'data':_0x448154['data']||null,'originalSuggestionId':_0x448154['originalSuggestionId']||null,'attributes':_0x3fe262['attributes']};this['_adapter']['addSuggestion'](_0xca37b9)['then'](_0x3aa575=>{_0x3fe262['_saved']=!0x0,_0x4f8a21['remove'](_0x23cb15),_0x3aa575&&_0x3aa575['createdAt']&&(this['_suggestions']['get'](_0x377d25)['createdAt']=_0x3aa575['createdAt']);})['catch'](_0x589982=>{throw _0x3f55c6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3fe262['discard']();}),_0x3fe262['stopListening'](),this['_suggestions']['delete'](_0x3fe262['id']),this['_suggestionState']['delete'](_0x3fe262),_0x589982;});}return _0x3fe262;}['_isBlockAttribute'](_0x9a8d05){return this['_blockAttributeKeys']['has'](_0x9a8d05);}['_updateSuggestionData'](_0x59038e,_0x2fc326){const _0x2e87c3=this['editor']['plugins']['get']('PendingActions'),_0x3f211b=this['getSuggestion'](_0x59038e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3f211b['_saved']){const _0x20011c=_0x2e87c3['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x59038e,_0x2fc326)['then'](()=>{_0x2e87c3['remove'](_0x20011c);});}else _0x3f211b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x59038e,_0x2fc326);});}}['_getSuggestionData'](_0x50697e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5b8507('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x50697e);}['_handleNewSuggestionMarker'](_0xa94279){const {id:_0x2c681a,type:_0x38bb26,subType:_0x11c47d,authorId:_0x3951d6}=this['_splitMarkerName'](_0xa94279),_0x5cf635=this['_suggestions']['get'](_0x2c681a)||this['_createSuggestion'](_0x38bb26,_0x11c47d,_0x2c681a,_0x3951d6,{});switch(this['_checkSuggestionCorrectness'](_0x5cf635,_0x38bb26,_0x11c47d,_0x3951d6),this['_suggestionState']['get'](_0x5cf635)){case'notReady':this['_getSuggestionData'](_0x2c681a)['then'](_0x5a3bf6=>{let _0x4e4180=Promise['resolve']();_0x5a3bf6['hasComments']&&(_0x4e4180=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2c681a})),_0x4e4180['then'](()=>{this['addSuggestionData'](_0x5a3bf6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5cf635,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2c681a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5cf635,'ready'),this['fire']('suggestionLoaded',_0x5cf635);break;case'ready':this['fire']('suggestionChanged',_0x5cf635);}return _0x5cf635['addMarkerName'](_0xa94279),_0x5cf635;}['_refreshSuggestionsChain'](_0x5331ea){const _0x459193=Array['from'](_0x5331ea),_0x2932c0=_0x459193['filter'](_0x134bea=>'attribute'==_0x134bea['type']);this['_refreshAttributeSuggestionsChain'](_0x2932c0);const _0x48eddc=_0x459193['filter'](_0x3663e9=>!_0x3663e9['isMultiRange']&&'attribute'!=_0x3663e9['type']),_0x497762=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46c53c=>!_0x46c53c['isMultiRange']&&'attribute'!=_0x46c53c['type']),_0x3abc8=_0x497762['filter'](_0x120629=>!_0x5331ea['has'](_0x120629)),_0x466e09=new Map(_0x497762['map'](_0x3e579d=>[_0x3e579d,this['_suggestionFactory']['getSuggestionCallback'](_0x3e579d['type'],_0x3e579d['subType'],'chain')])),_0x30618e=new Map(_0x497762['map'](_0x30a979=>[_0x30a979,_0x30a979['getFirstRange']()])),_0x224229=new Set(),_0x21dad4=new Set();for(let _0x4c192c=0x0;_0x4c192c<_0x48eddc['length'];_0x4c192c++)_0x3288d3(_0x48eddc[_0x4c192c],_0x48eddc,_0x4c192c+0x1);for(let _0x626be2=0x0;_0x626be2<_0x48eddc['length'];_0x626be2++)_0x3288d3(_0x48eddc[_0x626be2],_0x3abc8,0x0);const _0x2461ae=new Set();for(let _0x5be060=0x0;_0x5be060<_0x48eddc['length'];_0x5be060++){const _0x288b82=_0x48eddc[_0x5be060];!_0x21dad4['has'](_0x288b82)&&_0x288b82['previous']&&(_0x2461ae['add'](_0x288b82['previous']),_0x288b82['previous']['next']===_0x288b82&&(_0x288b82['previous']['next']=null),_0x288b82['previous']=null),!_0x224229['has'](_0x288b82)&&_0x288b82['next']&&(_0x2461ae['add'](_0x288b82['next']),_0x288b82['next']['previous']===_0x288b82&&(_0x288b82['next']['previous']=null),_0x288b82['next']=null);}function _0x3288d3(_0x24c6d0,_0x429620,_0x1ea64e){for(let _0x4f472a=_0x1ea64e;_0x4f472a<_0x429620['length'];_0x4f472a++){const _0x827b7e=_0x185989(_0x24c6d0,_0x429620[_0x4f472a]);_0x827b7e&&(_0x827b7e[0x0]['next']=_0x827b7e[0x1],_0x827b7e[0x1]['previous']=_0x827b7e[0x0],_0x224229['add'](_0x827b7e[0x0]),_0x21dad4['add'](_0x827b7e[0x1]));}}function _0x185989(_0x834ab9,_0x21caa2){if(_0x834ab9['author']['id']!==_0x21caa2['author']['id'])return null;const _0x25ba0b=_0x466e09['get'](_0x834ab9)(_0x834ab9,_0x21caa2,_0x30618e['get'](_0x834ab9),_0x30618e['get'](_0x21caa2));if(!_0x25ba0b)return null;return _0x466e09['get'](_0x21caa2)(_0x834ab9,_0x21caa2,_0x30618e['get'](_0x834ab9),_0x30618e['get'](_0x21caa2))?_0x25ba0b[0x1]['commentThread']&&_0x25ba0b[0x1]['commentThread']['length']?null:_0x25ba0b:null;}_0x2461ae['size']&&this['_refreshSuggestionsChain'](_0x2461ae);}['_refreshAttributeSuggestionsChain'](_0x1424fd){if(0x0==_0x1424fd['length'])return;const _0x212750=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d6437=>'attribute'==_0x2d6437['type']&&_0x2d6437['_isDataLoaded']),_0x58d2fd=[],_0x57b55c=new Map();for(const _0x16cbc8 of _0x212750){const _0x491613=_0x15682d(_0x16cbc8['attributes']);_0x57b55c['has'](_0x491613)||(_0x57b55c['set'](_0x491613,_0x58d2fd['length']),_0x58d2fd['push']([]));const _0x10f8f5=_0x57b55c['get'](_0x491613);_0x58d2fd[_0x10f8f5]['push'](_0x16cbc8);}!(function(){_0x58d2fd['sort']((_0xddbe29,_0x39c1ba)=>{const _0x2f0908=_0xddbe29[0x0]['createdAt'],_0x41940c=_0x39c1ba[0x0]['createdAt'];return _0x2f0908==_0x41940c?_0xddbe29[0x0]['attributes']['groupId']<_0x39c1ba[0x0]['attributes']['groupId']?-0x1:0x1:_0x2f0908<_0x41940c?-0x1:0x1;});for(const _0x1cba08 of _0x58d2fd)_0x1cba08['sort']((_0x22d804,_0x2f4ded)=>_0x22d804['id']<_0x2f4ded['id']?-0x1:0x1);}());for(let _0x804819=0x0;_0x804819<_0x58d2fd['length'];_0x804819++){if(0x0==_0x58d2fd[_0x804819]['length'])continue;const _0x3c775a=[];for(let _0x5a5949=_0x804819+0x1;_0x5a5949<_0x58d2fd['length'];_0x5a5949++)0x0!=_0x58d2fd[_0x5a5949]['length']&&_0x255c30(_0x58d2fd[_0x804819],_0x58d2fd[_0x5a5949])&&_0x3c775a['push'](_0x5a5949);for(const _0x5d8082 of _0x3c775a)_0x58d2fd[_0x804819]=_0x58d2fd[_0x804819]['concat'](_0x58d2fd[_0x5d8082]),_0x58d2fd[_0x5d8082]=[];}for(const _0x3cfcb1 of _0x58d2fd)for(let _0x481575=0x0;_0x481575<_0x3cfcb1['length'];_0x481575++){const _0xb5b4f6=_0x3cfcb1[_0x481575+0x1]||null;_0x3cfcb1[_0x481575]['next']!==_0xb5b4f6&&(_0x3cfcb1[_0x481575]['next']=_0xb5b4f6);}for(const _0x3b2f3d of _0x58d2fd)for(let _0x40d04a=0x0;_0x40d04a<_0x3b2f3d['length'];_0x40d04a++){const _0x4a8471=_0x3b2f3d[_0x40d04a-0x1]||null;_0x3b2f3d[_0x40d04a]['previous']!==_0x4a8471&&(_0x3b2f3d[_0x40d04a]['previous']=_0x4a8471);}function _0x255c30(_0x5dc56b,_0x36a09a){if(_0x5dc56b[0x0]['attributes']['groupId']!==_0x36a09a[0x0]['attributes']['groupId']&&_0x5dc56b[0x0]['author']!==_0x36a09a[0x0]['author'])return!0x1;if(!function(_0x138319,_0x4cf5ec){if(!_0x138319['hasComments']&&!_0x4cf5ec['hasComments'])return!0x0;if(_0x138319['hasComments']&&_0x4cf5ec['hasComments'])return!0x1;if(_0x138319['hasComments']&&_0x4cf5ec['createdAt']<_0x138319['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4cf5ec['hasComments']&&_0x138319['createdAt']<_0x4cf5ec['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5dc56b[0x0],_0x36a09a[0x0]))return!0x1;const _0x1040ec=Ft(_0x5dc56b[0x0]['attributes'],'groupId'),_0x1f2c87=Ft(_0x36a09a[0x0]['attributes'],'groupId');if(!_0x222265(_0x1040ec,_0x1f2c87))return!0x1;return!!_0x5dc56b['every'](_0x2499c3=>_0x36a09a['some'](_0x200307=>_0x2499c3['getFirstRange']()['isEqual'](_0x200307['getFirstRange']())))&&_0x36a09a['every'](_0xe8d53f=>_0x5dc56b['some'](_0x1a0786=>_0xe8d53f['getFirstRange']()['isEqual'](_0x1a0786['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xb6a6c){const _0x26f8e0=Array['from'](_0xb6a6c),_0x5d1711=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1cf473=_0x5d1711['filter'](_0x3b7b07=>!_0xb6a6c['has'](_0x3b7b07)),_0x1cd5b2=new Map(_0x26f8e0['map'](_0x3acf54=>[_0x3acf54,this['_suggestionFactory']['getSuggestionCallback'](_0x3acf54['type'],_0x3acf54['subType'],'join')])),_0x283298=new Map(_0x5d1711['map'](_0x1de3c0=>[_0x1de3c0,_0x1de3c0['getRanges']()]));for(let _0x4d24ad=0x0;_0x4d24ad<_0x26f8e0['length'];_0x4d24ad++){if(_0x26aa51(this,_0x26f8e0[_0x4d24ad],_0x26f8e0,_0x4d24ad+0x1))return!0x0;}for(let _0x14a896=0x0;_0x14a896<_0x26f8e0['length'];_0x14a896++){if(_0x26aa51(this,_0x26f8e0[_0x14a896],_0x1cf473,0x0))return!0x0;}return!0x1;function _0x26aa51(_0x1893d5,_0x11ea6a,_0x2e370d,_0x152206){for(let _0xe939fd=_0x152206;_0xe939fd<_0x2e370d['length'];_0xe939fd++){const _0x27ec9e=_0x2e370d[_0xe939fd];if(_0x27ec9e['type']!==_0x11ea6a['type']||_0x27ec9e['author']['id']!==_0x11ea6a['author']['id']||_0x27ec9e['subType']!==_0x11ea6a['subType'])continue;if(!Qt(_0x11ea6a,_0x27ec9e))continue;if('attribute'==_0x11ea6a['type']&&_0x11ea6a['data']['oldValue']!=_0x27ec9e['data']['oldValue'])continue;if('attribute'==_0x11ea6a['type']&&_0x1893d5['_isBlockAttribute'](_0x11ea6a['data']['key']))continue;if('formatBlock'==_0x11ea6a['type']){const _0x446ecb=_0x1893d5['editor']['model'],_0x102c03=_0x11ea6a['getContainedElement']();if(_0x102c03&&(_0x446ecb['schema']['isObject'](_0x102c03)||_0x446ecb['schema']['isLimit'](_0x102c03)))continue;}const _0x428736=_0x1cd5b2['get'](_0x11ea6a),_0x10eb50=_0x283298['get'](_0x11ea6a),_0x5a500a=_0x283298['get'](_0x27ec9e),_0x36e758=_0x11ea6a['commentThread']&&_0x11ea6a['commentThread']['length'],_0x11c626=_0x27ec9e['commentThread']&&_0x27ec9e['commentThread']['length'];if(!_0x36e758&&_0x428736(_0x5a500a,_0x10eb50))return _0x1893d5['_joinSuggestions'](_0x27ec9e,_0x11ea6a),_0x283298['delete'](_0x11ea6a),!0x0;if(!_0x11c626&&_0x428736(_0x10eb50,_0x5a500a))return _0x1893d5['_joinSuggestions'](_0x11ea6a,_0x27ec9e),_0x283298['delete'](_0x27ec9e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x34c15c,_0x328201){if(_0x34c15c['isMultiRange']){for(const _0x563c3d of _0x328201['getRanges']())_0x34c15c['addRange'](_0x563c3d);}else{const _0x1941c5=_0x328201['getFirstRange']()['end'];this['_setSuggestionRange'](_0x34c15c,this['_model']['createRange'](_0x34c15c['getFirstRange']()['start'],_0x1941c5));}_0x328201['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1e21b4,_0x148e58,_0x162566){const _0x4a2cb5=_0x1e21b4['startsWith']('format')||_0x1e21b4['startsWith']('attribute')?'FORMATTING':_0x1e21b4['toUpperCase']();return c(this['editor']['locale'],_0x148e58+'_'+_0x4a2cb5+'_SUGGESTION_ANNOUNCEMENT',_0x162566);}['_initAriaMarkerChangeAnnouncements'](){const _0x1bda96=this['editor'];if(!_0x1bda96['ui'])return;const {ariaLiveAnnouncer:_0x1914c3}=_0x1bda96['ui'];_0x224907(this['_model'],({left:_0x71a51b,entered:_0x486c68})=>{for(const _0x18124b of _0x71a51b){const {group:_0x23f313,type:_0x587d3b}=this['_splitMarkerName'](_0x18124b['name']);if('suggestion'===_0x23f313){_0x1914c3['announce'](this['_getMarkerAnnouncementText'](_0x587d3b,'LEAVE'));break;}}for(const _0x5e6944 of _0x486c68){const {group:_0x3fe7ae,type:_0x1a4931}=this['_splitMarkerName'](_0x5e6944['name']);if('suggestion'===_0x3fe7ae){_0x1914c3['announce'](this['_getMarkerAnnouncementText'](_0x1a4931,'ENTER',_0xa8769e(_0x5853fa)));break;}}});}['_processAttributeChanges'](_0x11f792){if(this['_recordAttributeSuggestions'])return!0x1;const _0x387768=this['editor'],_0x1137fd=_0x387768['model']['document']['differ']['getChanges']();if(0x0==_0x1137fd['length'])return!0x1;const _0x44ec22=[],_0x59f6ee=_0x1137fd['filter'](_0x55f11e=>'attribute'==_0x55f11e['type']),_0x438af6=_0x1137fd['filter'](_0x64cbcf=>'insert'==_0x64cbcf['type']&&'$text'!=_0x64cbcf['name']),_0x1b7938=_0x1137fd['filter'](_0x17456e=>'remove'==_0x17456e['type']&&'$text'!=_0x17456e['name']);for(const _0x3bc083 of _0x59f6ee)_0x44ec22['push']({'key':_0x3bc083['attributeKey'],'newValue':_0x3bc083['attributeNewValue'],'oldValue':_0x3bc083['attributeOldValue'],'range':qt(_0x3bc083['range'],_0x387768['model'])});for(const _0x19ed1e of _0x438af6){const _0x583d54=_0x1b7938['find'](_0x584db5=>_0x584db5['position']['isEqual'](_0x19ed1e['position']));_0x583d54&&_0x44ec22['push']({'key':u,'newValue':_0x19ed1e['name'],'oldValue':_0x583d54['name'],'range':_0x387768['model']['createRangeOn'](_0x19ed1e['position']['nodeAfter'])});}return 0x0!=_0x44ec22['length']&&this['_reduceExistingSuggestions'](_0x11f792,_0x44ec22);}['_processAttributeSuggestions'](_0x397c06){let _0x205a41=!0x1;const _0x49b0d5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x6630ca=>_0x6630ca['data']['newRange']&&_0x6630ca['name']['startsWith']('suggestion:attribute:'));for(const _0xefd9d5 of _0x49b0d5){const {subType:_0x36c910,id:_0x5b1ccc}=this['_splitMarkerName'](_0xefd9d5['name']),_0x21d31f=_0x36c910['split']('|')[0x0];for(const _0x138dd7 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x138dd7['id']!=_0x5b1ccc&&'attribute'==_0x138dd7['type']&&_0x138dd7['data']&&_0x138dd7['data']['key']==_0x21d31f&&_0x138dd7['getFirstRange']()['isIntersecting'](_0xefd9d5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x138dd7,_0xefd9d5['data']['newRange'],_0x397c06),_0x205a41=!0x0);}return _0x205a41;}['_recordAttributeChanges'](_0x4e4d2b){this['_recordAttributeSuggestions']=!0x0,_0x4e4d2b();}['_isRegisteredAttribute'](_0x3edb49){const _0x4d2c29=this['_isBlockAttribute'](_0x3edb49),_0x16cf76=this['_inlineAttributeKeys']['has'](_0x3edb49);return _0x4d2c29||_0x16cf76;}['_reduceExistingSuggestions'](_0xa61096,_0x4cc8b9){if(0x0==_0x4cc8b9['length'])return!0x1;let _0x55f9a7=!0x1;for(const _0x582f01 of _0x4cc8b9){const _0x595d83=this['_findSuggestions'](_0x582f01['range'],'attribute')['filter'](_0x51e0ef=>!_0x51e0ef['meta']['isNextTo'])['map'](_0x39c394=>_0x39c394['suggestion']),_0x470b24=_0x15682d({'newValue':_0x582f01['newValue']});_0x595d83['filter'](_0x3b13e2=>{const [_0x537f55,_0x5e3f61]=_0x3b13e2['subType']['split']('|');return _0x537f55==_0x582f01['key']&&_0x5e3f61!=_0x470b24;})['forEach'](_0x41fc69=>{this['_reduceSuggestionAttributeRange'](_0x41fc69,_0x582f01['range'],_0xa61096),_0x55f9a7=!0x0;});}return _0x55f9a7;}['_reduceSuggestionAttributeRange'](_0x543c04,_0x22e6af,_0x4d4fce){const _0x1b46de=_0x543c04['getFirstRange']()['getDifference'](_0x22e6af);0x0!==_0x1b46de['length']?0x1!==_0x1b46de['length']?this['_breakSuggestionMarker'](_0x543c04,_0x22e6af['start'],_0x22e6af['end']):this['_setSuggestionRange'](_0x543c04,_0x1b46de[0x0]):_0x4d4fce['removeMarker'](_0x543c04['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4bd31a){this['_editor']=_0x4bd31a,this['_model']=_0x4bd31a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x6fe19e,_0x45b4b9,_0x48b4cb,_0x32dab7,_0x611fd,_0x3116e5){return new o(this['_model'],{'type':_0x6fe19e,'subType':_0x45b4b9,'id':_0x48b4cb,'author':_0x32dab7,'creator':_0x32dab7,'attributes':_0x611fd,'onAttributesChange':_0x3116e5,'onAccept':(..._0x40a0cd)=>this['getSuggestionCallback'](_0x6fe19e,_0x45b4b9,'accept')(..._0x40a0cd),'onDiscard':(..._0xb7da80)=>this['getSuggestionCallback'](_0x6fe19e,_0x45b4b9,'discard')(..._0xb7da80)});}['registerCustomCallback'](_0x7eee66,_0x103046,_0x301960,_0x408c09){const _0x409adf=_0x7eee66+':'+_0x103046+':'+_0x301960;this['_customCallbacks']['set'](_0x409adf,_0x408c09);}['getSuggestionCallback'](_0x2632eb,_0x1c2236,_0x45c066){const _0x9e3f9a=_0x2632eb+':'+_0x1c2236+':'+_0x45c066;return this['_customCallbacks']['get'](_0x9e3f9a)||this['_defaultCallbacks']['get'](_0x2632eb+':'+_0x45c066);}['_registerDefaultCallbacks'](){const _0x1ad6a6=()=>!0x1,_0x57ee21=_0x3c5ad1=>{_0x3c5ad1['sort']((_0x353ad6,_0x180829)=>_0x353ad6['start']['isBefore'](_0x180829['start'])?0x1:-0x1),this['_model']['change'](_0x3a789a=>{for(const _0x2f5725 of _0x3c5ad1){let _0x50231d;_0x50231d=_0x2f5725['end']['isAtEnd']&&_0x2f5725['end']['parent']==_0x2f5725['start']['nodeAfter']?_0x3a789a['createSelection'](_0x2f5725['start']['nodeAfter'],'on'):_0x3a789a['createSelection'](_0x2f5725),this['_model']['deleteContent'](_0x50231d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4ec5fe=(_0x237749,_0x48245c)=>{_0x48245c&&this['_model']['change'](_0x1bc9ca=>{const {commandName:_0x324122,commandParams:_0x5796fd=[]}=_0x48245c,_0x2d3f2f=_0x237749['map'](_0x24fe82=>(Lt(_0x24fe82)&&(_0x24fe82=this['_model']['createRange'](_0x24fe82['end'])),_0x24fe82))['filter'](_0x594334=>'$graveyard'!==_0x594334['root']['rootName']);if(_0x2d3f2f['length']<0x1)return;const _0x5e5dd9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x425ac1=>_0x27d8bc['fromRange'](_0x425ac1));_0x1bc9ca['setSelection'](_0x2d3f2f);for(const _0x5a19a6 of this['_editor']['commands']['commands']())_0x5a19a6['refresh']();_0x5796fd['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x324122,..._0x5796fd);const _0x393937=_0x5e5dd9['filter'](_0x3a6677=>'$graveyard'!=_0x3a6677['root']['rootName']);_0x393937['length']>0x0&&_0x1bc9ca['setSelection'](_0x393937);for(const _0x51f7d4 of _0x5e5dd9)_0x51f7d4['detach']();});},_0x2b6ddd=(_0x25df4e,_0x1143ad)=>0x1==_0x25df4e['length']&&0x1==_0x1143ad['length']&&_0x25df4e[0x0]['end']['isEqual'](_0x1143ad[0x0]['start']),_0x1c6e19=(_0x34940a,_0x204cba,_0x581456,_0x2c3e00)=>Wt(_0x34940a,_0x204cba,_0x581456,_0x2c3e00)?[_0x34940a,_0x204cba]:Wt(_0x204cba,_0x34940a,_0x2c3e00,_0x581456)?[_0x204cba,_0x34940a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1ad6a6),this['_defaultCallbacks']['set']('insertion:discard',_0x57ee21),this['_defaultCallbacks']['set']('insertion:join',_0x2b6ddd),this['_defaultCallbacks']['set']('insertion:chain',_0x1c6e19),this['_defaultCallbacks']['set']('deletion:accept',_0x57ee21),this['_defaultCallbacks']['set']('deletion:discard',_0x1ad6a6),this['_defaultCallbacks']['set']('deletion:join',_0x2b6ddd),this['_defaultCallbacks']['set']('deletion:chain',_0x1c6e19),this['_defaultCallbacks']['set']('formatInline:accept',_0x4ec5fe),this['_defaultCallbacks']['set']('formatInline:discard',_0x1ad6a6),this['_defaultCallbacks']['set']('formatInline:join',_0x2b6ddd),this['_defaultCallbacks']['set']('formatInline:chain',_0x1ad6a6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4ec5fe),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1ad6a6),this['_defaultCallbacks']['set']('formatBlock:join',_0x2b6ddd),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1ad6a6),this['_defaultCallbacks']['set']('attribute:accept',_0x1ad6a6),this['_defaultCallbacks']['set']('attribute:discard',(_0x3b722d,_0x4bdcb9)=>{if(!_0x4bdcb9)return;const _0x1a2753=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3a9e32=>{if(_0x4bdcb9['key']==u)for(const _0x32d847 of _0x3b722d){const _0x5134e5=_0x32d847['start']['nodeAfter'],_0x41a844=_0x4bdcb9['oldValue'];_0x3a9e32['rename'](_0x5134e5,_0x41a844);}else{if(_0x1a2753['_isBlockAttribute'](_0x4bdcb9['key'])){for(const _0x163925 of _0x3b722d)void 0x0!==_0x4bdcb9['oldValue']?_0x3a9e32['setAttribute'](_0x4bdcb9['key'],_0x4bdcb9['oldValue'],_0x163925['start']['nodeAfter']):_0x3a9e32['removeAttribute'](_0x4bdcb9['key'],_0x163925['start']['nodeAfter']);}else{for(const _0x47e201 of _0x3b722d)_0x4bdcb9['oldValue']?_0x3a9e32['setAttribute'](_0x4bdcb9['key'],_0x4bdcb9['oldValue'],_0x47e201):_0x3a9e32['removeAttribute'](_0x4bdcb9['key'],_0x47e201);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2b6ddd);}}function Gt(_0x3d7e64,_0x2921f4,_0x3deb30){for(const _0x2351b6 of _0x2921f4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2351b6['root']==_0x2351b6)return!0x1;if(!_0x3deb30['containsItem'](_0x2351b6))return!0x1;if(_0x3d7e64['isObject'](_0x2351b6)||_0x3d7e64['isLimit'](_0x2351b6))return!0x0;}return!0x1;}function Lt(_0x12dee4){return _0x12dee4['end']['parent']==_0x12dee4['start']['nodeAfter']&&_0x12dee4['end']['isAtStart'];}function Jt(_0x1fbea4,_0x1e667b,_0x3be104,_0x355772){const _0x4c3b6c=_0x61cdb0=>!_0x61cdb0['item']['is']('$textProxy')&&!_0x355772['isObject'](_0x61cdb0['item']),_0x4bb810=_0x1fbea4['start']['getLastMatchingPosition'](_0x4c3b6c),_0x4411d1=_0x1fbea4['end']['getLastMatchingPosition'](_0x4c3b6c,{'direction':'backward'});return(!_0x1fbea4['start']['isEqual'](_0x4bb810)||!_0x1fbea4['end']['isEqual'](_0x4411d1))&&(_0x4bb810['isBefore'](_0x4411d1)?_0x3be104['updateMarker'](_0x1e667b,{'range':_0x3be104['createRange'](_0x4bb810,_0x4411d1)}):_0x3be104['removeMarker'](_0x1e667b),!0x0);}function Kt(_0x505cca){return _0x15682d(_0x505cca);}function Ht(_0x594cf6){const _0x30c0b1=_0x594cf6['start']['nodeAfter'];return _0x30c0b1&&_0x30c0b1['is']('element');}function qt(_0x5879e7,_0x191b57){return null==_0x5879e7['end']['nodeBefore']&&_0x5879e7['end']['parent']==_0x5879e7['start']['nodeAfter']?zt(_0x5879e7['start']['nodeAfter'],_0x191b57):_0x5879e7;}function zt(_0x28e5ef,_0x451469){const _0x42389b=_0x451469['schema']['isObject'](_0x28e5ef)||_0x451469['schema']['isSelectable'](_0x28e5ef);return _0x451469['createRange'](_0x451469['createPositionAt'](_0x28e5ef,'before'),_0x42389b?_0x451469['createPositionAfter'](_0x28e5ef):_0x451469['createPositionAt'](_0x28e5ef,'end'));}function Wt(_0x5b97ef,_0x416b58,_0x216da8,_0x3b1222){return!!Qt(_0x5b97ef,_0x416b58)&&_0x216da8['end']['isEqual'](_0x3b1222['start']);}function Qt(_0x541c10,_0x3f86ff){if(!_0x541c10['_isDataLoaded']||!_0x3f86ff['_isDataLoaded'])return!0x1;const _0xad4c3=new Set(Object['keys'](_0x541c10['attributes'])),_0x2e7915=new Set(Object['keys'](_0x3f86ff['attributes']));if(_0xad4c3['delete']('groupId'),_0x2e7915['delete']('groupId'),0x0==_0xad4c3['size']&&0x0==_0x2e7915['size'])return!0x0;if(_0xad4c3['size']!=_0x2e7915['size'])return!0x1;const _0x57ba7a={..._0x541c10['attributes']},_0x107239={..._0x3f86ff['attributes']};return delete _0x57ba7a['groupId'],delete _0x107239['groupId'],JSON['stringify'](_0x57ba7a)==JSON['stringify'](_0x107239);}function Xt(_0x2f0e66,_0x1e478d){const _0x26c472=Yt(_0x2f0e66['attributes']),_0x6a6704=Yt(_0x1e478d);if(!_0x2f0e66['_isDataLoaded'])return!0x1;for(const _0x297316 of Object['keys'](_0x6a6704))if(!_0x222265(_0x26c472[_0x297316],_0x6a6704[_0x297316]))return!0x1;return!0x0;}function Yt(_0x2e4657){const _0x478795=Object['assign']({},_0x2e4657);return delete _0x478795['skipNestingCheck'],delete _0x478795['tablePasteChainId'],_0x478795;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x59a73e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5b34fe,_0x1c794f,_0x2d4f8b,_0x3abcab){super(),this['model']=_0x1c794f,this['view']=_0x2d4f8b,this['commentThreadController']=_0x3abcab,this['_editor']=_0x5b34fe,this['_acceptCommand']=_0x5b34fe['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5b34fe['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x103a3a,_0x5c3732)=>_0x103a3a||_0x5c3732),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1b6236=>_0x1b6236&&this['_editor']['model']['canEditAt'](_0x1c794f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2d091c=>_0x2d091c&&this['_editor']['model']['canEditAt'](_0x1c794f['getRanges']())),this['_pendingAction']=null,_0x2d4f8b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2d4f8b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2d4f8b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2d4f8b,'change:isDirty',()=>{_0x2d4f8b['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 _0x3ed14a=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3ed14a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x318208{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x300115,_0x2b0658,_0x43a39c,_0x57c855){super(_0x300115),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x287eb4(_0x300115,c(_0x300115,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2b0658['authoredAt']),this['bind']('authoredAt')['to'](_0x2b0658),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',_0x2b0658,'authoredAt',this,'descriptionParts',(_0x3182c1,_0xe23612,_0xfd0059)=>{const _0x5cf60a=_0xfd0059['map'](_0x2638b8=>ls(_0x2638b8['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3182c1-0x1,_0x2b0658['author']['name'],_0xe23612?_0x57c855['formatDateTime'](_0xe23612):'',new DOMParser()['parseFromString'](_0x5cf60a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2e5133(),this['focusTracker']=new _0x101b2d(),this['keystrokes']=new _0x514720(),this['focusCycler']=new _0x3a281e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x342696=>_0x342696['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2b0658,this['_localUser']=_0x43a39c,this['_config']=_0x57c855,_0x57c855['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x392308(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x232824}=this['_config'];this['commentsListView']=new _0x232824(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',_0x6fdeba=>_0x6fdeba+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x235bd3,_0xbf2544)=>_0x235bd3||!!_0xbf2544);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2fcf86}=this['_config'],_0x5af8fb=new _0x2fcf86(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1aa2b6=_0x5af8fb['commentInputView'];return _0x5af8fb['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1aa2b6,'value',(_0x3d3faa,_0x30a4ed,_0x14c3ed)=>!!_0x14c3ed||_0x3d3faa&&!_0x30a4ed),_0x1aa2b6['on']('submit',(_0xca921d,_0x43304b)=>{this['fire']('addComment',_0x43304b),_0x1aa2b6['editor']['setData']('');}),_0x1aa2b6['on']('cancel',()=>this['focus']()),_0x1aa2b6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5af8fb;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x2ab0cb,_0x43d9bf,_0x1631f2,_0x27f3ae){super(_0x2ab0cb,_0x43d9bf,_0x1631f2,_0x27f3ae),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x48749b=>_0x48749b&&_0x48749b[0x0]?_0x48749b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2e9d6d,_0x4cafe4)=>{let _0x3ab0b9='';for(const _0x3c00c9 of _0x2e9d6d)_0x3ab0b9+='<p>'+ls(_0x3c00c9['content'],_0x3c00c9['color'])+'</p>';return _0x4cafe4?_0x3ab0b9:ti(_0x3ab0b9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x27f3ae['SuggestionView'](_0x2ab0cb,_0x43d9bf,{'formatDateTime':_0x27f3ae['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 _0x35839a=this['bindTemplate'],_0x473085=[this['suggestionView']];return this['commentsListView']&&_0x473085['push'](this['commentsListView']),this['commentThreadInputView']&&_0x473085['push'](this['commentThreadInputView']),_0x473085['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x35839a['if']('isActive','ck-suggestion-wrapper--active'),_0x35839a['to']('type',_0x36fbf6=>'ck-suggestion-'+_0x36fbf6),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':_0x35839a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x473085};}['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 _0x318208{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1a032,_0x8bc091,_0x26e9c4){super(_0x1a032),this['_model']=_0x8bc091,this['_config']=_0x26e9c4,this['set']('description',''),this['bind']('authoredAt')['to'](_0x8bc091),this['acceptButton']=this['_createButton'](c(_0x1a032,'Accept\x20suggestion'),_0x53679a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x1a032,'Discard\x20suggestion'),_0x22d25d,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x272be7(_0x1a032,_0x8bc091['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2e5133([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x101b2d(),this['keystrokes']=new _0x514720(),this['focusCycler']=new _0x3a281e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x439a72=>_0x439a72['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x53ec7e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x53ec7e['innerHTML']=this['description'],this['on']('change:description',(_0x197557,_0x3b6416,_0x25d161)=>{_0x53ec7e['innerHTML']=_0x25d161;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x15748f=this['bindTemplate'],_0x2cce9f=[{'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':_0x15748f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x15748f['to']('authoredAt',_0x342caf=>this['_config']['formatDateTime'](_0x342caf))}]}]},{'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']&&_0x2cce9f['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':_0x2cce9f}]};}['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'](_0x5f4997,_0x513c7c,_0x1abc34,_0x3329d0,_0xbee97c){const _0x2918b8=new _0x2ad798(this['locale']);return _0x2918b8['set']({'label':_0x5f4997,'icon':_0x513c7c,'tooltip':!0x0,'tooltipPosition':_0xbee97c}),_0x2918b8['extendTemplate']({'attributes':{'class':_0x1abc34}}),_0x2918b8['on']('execute',()=>{this['fire'](_0x3329d0,this['_model']['id']);}),_0x2918b8;}['_setupKeyboardNavigation'](){const _0x383ef8=this['element'];this['keystrokes']['listenTo'](_0x383ef8);for(const _0x8b4e63 of this['focusables'])this['focusTracker']['add'](_0x8b4e63['element']),this['keystrokes']['listenTo'](_0x8b4e63['element']);this['keystrokes']['set']('enter',(_0x1a4f7f,_0x57f3eb)=>{_0x383ef8===_0x1a4f7f['target']&&(this['focusCycler']['focusFirst'](),_0x57f3eb());}),this['keystrokes']['set']('esc',(_0x5606b5,_0x1ebc13)=>{_0x383ef8!==_0x5606b5['target']&&(this['focus'](),_0x1ebc13());});}}class d extends _0xc188f5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x546bdd,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x33c339){super(_0x33c339),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3695ee=this['editor']['config'];_0x3695ee['define']('trackChanges.SuggestionThreadView',fe),_0x3695ee['define']('trackChanges.SuggestionView',we),_0x3695ee['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3695ee['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x40f260,_0x252f6e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1343d6,_0x2e0014]of this['_handleControllerBuffer']){const _0x6b871f=this['_suggestionToController']['has'](_0x1343d6);_0x6b871f||_0x2e0014?_0x6b871f&&_0x2e0014&&this['_destroyController'](_0x1343d6):this['_initializeController'](_0x1343d6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x40f260,_0x252f6e);}['init'](){const _0x8bdea0=this['editor'],_0x4a9492=_0x8bdea0['plugins']['get']('TrackChangesEditing'),_0x35ad18=_0x8bdea0['plugins']['get']('Annotations'),_0x115ad8=_0x8bdea0['plugins']['get']('EditorAnnotations'),_0x13b234=_0x8bdea0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x115ad8['addSourceCollector'](()=>{const _0x565c42=[];for(const [_0x5e68b9,_0x52bbae]of Array['from'](this['_suggestionToController'])){const _0x1d01fd=_0x5e68b9['getAllAdjacentSuggestions'](),_0x1c5460=[];for(const _0x55f58b of _0x1d01fd){if(!_0x55f58b['isInContent'])continue;if(_0x55f58b['isMultiRange']){_0x1c5460['push'](..._0x55f58b['getRanges']());continue;}const _0x2c57e9=_0x55f58b['getFirstRange']();if(_0x1c5460['length']>0x0){const _0x4aae8a=_0x1c5460[0x0]['getJoined'](_0x2c57e9);if(_0x4aae8a){_0x1c5460[0x0]=_0x4aae8a;continue;}}_0x1c5460['push'](_0x2c57e9);}_0x565c42['push']([_0x52bbae['view'],_0x1c5460]);}return _0x565c42;}),this['listenTo'](_0x4a9492,'suggestionLoaded',(_0x3b0f0a,_0x585b72)=>{this['listenTo'](_0x585b72,'change:previous',(_0x360bf5,_0x2f3aee,_0x31a2f8,_0x31f7f0)=>{_0x585b72['isInContent']&&(null==_0x31a2f8?(this['_updateController'](_0x31f7f0['head']),this['_handleSuggestionControllerDelayed'](_0x585b72,!0x1)):(this['_updateController'](_0x31a2f8['head']),null==_0x31f7f0&&this['_handleSuggestionControllerDelayed'](_0x585b72,!0x0)));}),null!==_0x585b72['previous']?this['_updateController'](_0x585b72['head']):this['_handleSuggestionControllerDelayed'](_0x585b72,!0x1);}),this['listenTo'](_0x4a9492,'suggestionUnloaded',(_0x22f55b,_0x2169c8,_0x474ceb)=>{this['stopListening'](_0x2169c8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2169c8),this['_suggestionToController']['has'](_0x2169c8)&&this['_destroyController'](_0x2169c8),_0x474ceb&&this['_updateController'](_0x474ceb['head']);}),this['listenTo'](_0x4a9492,'suggestionChanged',(_0x5318a1,_0x46ae08)=>{this['_updateController'](_0x46ae08);}),this['listenTo'](_0x35ad18,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x13b234,'addComment',(_0x5e2ce3,{threadId:_0x56bbad,isFromAdapter:_0x1a47a6})=>{if(_0x1a47a6||!_0x4a9492['hasSuggestion'](_0x56bbad))return;const _0x59d4b3=_0x4a9492['getSuggestion'](_0x56bbad);this['_suggestionToController']['get'](_0x59d4b3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2d2ae1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd43b6;for(const _0x5dc560 in _0x2d2ae1){const _0x234d9e=_0x5dc560,_0x1cab80=_0x2d2ae1[_0x234d9e];if('trackChangesLicenseKeyValid'==_0x1cab80||'trackChangesLicenseKeyInvalid'==_0x1cab80||'trackChangesLicenseKeyExpired'==_0x1cab80||'trackChangesLicenseKeyDomainLimit'==_0x1cab80||'trackChangesLicenseKeyNotAllowed'==_0x1cab80||'trackChangesLicenseKeyEvaluationLimit'==_0x1cab80||'trackChangesLicenseKeyTrialLimit'==_0x1cab80||'trackChangesLicenseKeyUsageLimit'==_0x1cab80){delete _0x2d2ae1[_0x234d9e],_0xd43b6=_0x1cab80,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xd43b6&&_0x2d2ae1['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xd43b6&&_0x2d2ae1['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xd43b6&&_0x2d2ae1['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xd43b6&&_0x2d2ae1['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xd43b6&&_0x2d2ae1['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xd43b6&&_0x2d2ae1['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xd43b6&&_0x2d2ae1['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xf973cf=this['editor']['plugins']['get']('Annotations'),_0x5768e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c7884=Array['from'](_0xf973cf['activeAnnotations'],_0x2d0e12=>_0x2d0e12['innerView'])['filter'](_0x13c5e9=>this['_viewToController']['has'](_0x13c5e9)),_0x24d639=[];for(const _0xa69702 of _0x1c7884){const _0x6d6ca3=this['_viewToController']['get'](_0xa69702)['model']['getAllAdjacentSuggestions']();_0x24d639['push'](..._0x6d6ca3['reduce']((_0x39ee87,_0x10a43b)=>[..._0x39ee87,..._0x10a43b['getMarkerNames']()],[]));}_0x5768e2['activeMarkers']=_0x24d639;}['_addUIComponentsToFactory'](){const _0x4621cd=this['editor'],_0xc0fd4c=_0x4621cd['locale'],_0x4f826f=c(_0xc0fd4c,'Track\x20changes'),_0x3ff566=new _0x29d7f8([{'type':'switchbutton','model':new _0x471719({'withText':!0x0,'isToggleable':!0x0,'label':_0x4f826f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x471719({'withText':!0x0,'label':c(_0xc0fd4c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x471719({'withText':!0x0,'label':c(_0xc0fd4c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x471719({'withText':!0x0,'label':c(_0xc0fd4c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x471719({'withText':!0x0,'label':c(_0xc0fd4c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4621cd['plugins']['has']('TrackChangesPreview')&&_0x3ff566['addMany']([{'type':'separator'},{'type':'button','model':new _0x471719({'withText':!0x0,'label':c(_0xc0fd4c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x44f123 of _0x3ff566)if(ke(_0x44f123)){const _0x510557=_0x4621cd['commands']['get'](_0x44f123['model']['commandName']);_0x44f123['model']['bind']('isOn','isEnabled')['to'](_0x510557,'value','isEnabled');}_0x4621cd['ui']['componentFactory']['add']('trackChanges',_0x3717b9=>this['_createToolbarButton'](_0x3717b9,_0x3ff566,_0x4f826f)),_0x4621cd['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1c2f1e=>this['_createMenuBarMenu'](_0x1c2f1e,_0x3ff566,_0x4f826f));}['_createToolbarButton'](_0x3d5949,_0x2ec72a,_0x28c57a){const _0x29808f=_0x26cd9b(_0x3d5949,_0xc16298),_0x4dd9bf=this['editor']['commands']['get']('trackChanges');_0x29808f['buttonView']['set']({'tooltip':_0x28c57a,'label':_0x28c57a,'icon':_0xca119}),_0x29808f['buttonView']['bind']('isOn')['to'](_0x4dd9bf,'value'),_0x29808f['buttonView']['on']('execute',()=>{_0x4dd9bf['execute'](),this['editor']['editing']['view']['focus']();}),_0x38f58b(_0x29808f,_0x2ec72a,{'role':'menu'});const _0x4773e1=[];for(const _0x2a4dee of _0x2ec72a)ke(_0x2a4dee)&&_0x4773e1['push'](this['editor']['commands']['get'](_0x2a4dee['model']['commandName']));const _0x1d4736=_0x29808f['buttonView'];return _0x1d4736['actionView']['unbind']('isEnabled'),_0x1d4736['arrowView']['unbind']('isEnabled'),_0x1d4736['actionView']['bind']('isEnabled')['to'](_0x4dd9bf,'isEnabled'),_0x1d4736['arrowView']['bind']('isEnabled')['toMany'](_0x4773e1,'isEnabled',(..._0x1e20bd)=>_0x1e20bd['some'](_0x57f3d0=>_0x57f3d0)),_0x29808f['on']('execute',_0x3d494d=>{this['editor']['execute'](_0x3d494d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x29808f;}['_createMenuBarMenu'](_0x38482b,_0x34e475,_0x283708){const _0x1ed240=new _0x46ef68(_0x38482b),_0x2a3033=this['editor']['commands']['get']('trackChanges');_0x1ed240['buttonView']['set']({'label':_0x283708,'icon':_0xca119});const _0xa2505d=new _0x3b7ea8(_0x38482b);for(const _0x4cd7f3 of _0x34e475){if('separator'==_0x4cd7f3['type']){_0xa2505d['items']['add'](new _0x7ad159(_0x38482b));continue;}const _0x35931d=new _0x107293(_0x38482b,_0x1ed240),_0x5a6fb3=new _0x5789b8(_0x38482b),_0x14bdca=_0x4cd7f3['model'];_0x5a6fb3['bind'](...Object['keys'](_0x14bdca))['to'](_0x14bdca),_0x5a6fb3['delegate']('execute')['to'](_0x1ed240),_0x5a6fb3['on']('execute',()=>{this['editor']['execute'](_0x14bdca['commandName']),this['editor']['editing']['view']['focus']();}),_0x35931d['children']['add'](_0x5a6fb3),_0xa2505d['items']['add'](_0x35931d);}return _0x1ed240['bind']('isEnabled')['to'](_0x2a3033,'isEnabled'),_0x1ed240['panelView']['children']['add'](_0xa2505d),_0x1ed240;}['_initializeController'](_0x31e9c1){const _0x4a84de=this['editor'],_0x23e4cf=_0x4a84de['config'],_0x3bc9ab=_0x4a84de['plugins']['get']('Annotations'),_0x1cb14c=_0x4a84de['plugins']['get']('CommentsRepository'),_0x253996=_0x4a84de['plugins']['get']('EditorAnnotations'),_0x19d2d1=_0x4a84de['plugins']['get'](_0x546bdd)['me'],_0x48a621=_0x23e4cf['get']('trackChanges')['SuggestionThreadView'],_0x3b3d75=_0x23e4cf['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2e6fff,CommentThreadInputView:_0x415b9c}=_0x4a84de['plugins']['get']('CommentsUI');let _0x4b06c7,_0x31656d,_0x235b4a;this['_annotationViews']['has'](_0x31e9c1['id'])?(_0x31656d=this['_annotationViews']['get'](_0x31e9c1['id']),_0x4b06c7=_0x31656d['mainView']):(_0x4b06c7=new _0x48a621(_0x4a84de['locale'],_0x31e9c1,_0x19d2d1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x23e4cf['get']('comments.editorConfig'),'licenseKey':_0x23e4cf['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x23e4cf['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x23e4cf['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x23e4cf['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1d0cb8(_0x23e4cf['get']('locale'),_0x4a84de['locale']),'CommentView':_0x23e4cf['get']('comments')['CommentView'],'CommentsListView':_0x2e6fff,'CommentThreadInputView':_0x415b9c,'SuggestionView':_0x3b3d75}),_0x4b06c7['suggestionView']['acceptButton']['on']('execute',()=>{_0x4a84de['editing']['view']['focus']();}),_0x4b06c7['suggestionView']['discardButton']['on']('execute',()=>{_0x4a84de['editing']['view']['focus']();}),_0x31656d=_0x3bc9ab['createAnnotationView'](this['editor']['locale'],_0x4b06c7),_0x31656d['bind']('isDirty')['to'](_0x4b06c7,'isDirty'),_0x31656d['bind']('length')['to'](_0x4b06c7),_0x31656d['bind']('type')['to'](_0x4b06c7,'type',_0x5f5184=>'suggestion-'+_0x5f5184),_0x4b06c7['on']('escape',()=>{_0x235b4a['fire']('escape');}),this['_annotationViews']['set'](_0x31e9c1['id'],_0x31656d));const _0x393625=_0x1cb14c['createCommentThreadController'](_0x31e9c1['commentThread'],_0x4b06c7),_0x233b4d=new pe(_0x4a84de,_0x31e9c1,_0x4b06c7,_0x393625),_0x1bb85a=_0x31e9c1['getAllAdjacentSuggestions']()['filter'](_0x54d9c9=>_0x54d9c9['isInContent']);_0x4b06c7['descriptionParts']=_0x4a84de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1bb85a),this['_suggestionToController']['set'](_0x31e9c1,_0x233b4d),this['_viewToController']['set'](_0x4b06c7,_0x233b4d),_0x235b4a=_0x3bc9ab['createAnnotation']({'view':_0x31656d,'target':()=>{const _0x30ec72=[],_0x38b440=_0x31e9c1['getAllAdjacentSuggestions']()['filter'](_0x541d5e=>_0x541d5e['isInContent']);for(const _0x56674d of _0x38b440)_0x30ec72['push'](..._0x56674d['getMarkers']());return _0x2f266a(_0x4a84de['editing'],_0x30ec72);},'type':()=>'suggestion-'+_0x233b4d['view']['type']}),_0x1cb14c['_bindAnnotationToEditors'](_0x4b06c7,_0x235b4a),_0x3bc9ab['add'](_0x235b4a),_0x253996['registerAnnotation'](_0x235b4a);}['_destroyController'](_0x1a9c1a){const _0x5814d4=this['editor']['plugins']['get']('CommentsRepository'),_0x10d2f9=this['editor']['plugins']['get']('Annotations'),_0x1011d7=this['_suggestionToController']['get'](_0x1a9c1a),_0x362ee1=_0x1011d7['view'],_0x1797e6=_0x10d2f9['getByInnerView'](_0x362ee1);_0x5814d4['_unbindEditors'](_0x362ee1),_0x1797e6&&_0x10d2f9['remove'](_0x1797e6),this['_suggestionToController']['delete'](_0x1a9c1a),this['_viewToController']['delete'](_0x362ee1),_0x1011d7['destroy']();}['_updateController'](_0x133479){if(!_0x133479['isInContent']||!this['_suggestionToController']['has'](_0x133479))return;const _0x49d571=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb4797f=this['_suggestionToController']['get'](_0x133479),_0x5cb7c2=_0x133479['getAllAdjacentSuggestions']();_0xb4797f['view']['descriptionParts']=_0x49d571['descriptionFactory']['getDescriptions'](_0x5cb7c2);}['destroy'](){for(const _0x148bbd of this['_suggestionToController']['keys']())this['_destroyController'](_0x148bbd);for(const _0x569461 of this['_annotationViews']['values']())_0x569461['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1723dc){return'model'in _0x1723dc;}class k extends _0xc188f5{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x28361c){this['editor']['plugins']['get'](p)['adapter']=_0x28361c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x27c031){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x27c031);}['getSuggestions']({skipNotAttached:_0x2061ad=!0x1,toJSON:_0x2715c0=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2061ad,'toJSON':_0x2715c0});}['getSuggestion'](_0x5b9b4b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5b9b4b);}}const w=['Pagination'];class T extends _0xc188f5{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x566d7f=this['editor'];if(_0x566d7f['config']['define']('trackChangesData.editorCreator',_0x116458=>{const _0x387f58=_0x566d7f['model']['document']['getRootNames']()['reduce']((_0x3fcb64,_0x156b21)=>(_0x3fcb64[_0x156b21]='',_0x3fcb64),{});return _0x566d7f['constructor']['create'](_0x387f58,_0x116458);}),'function'!=typeof _0x566d7f['config']['get']('trackChangesData')['editorCreator'])throw new _0x5b8507('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x527f2a){return N(this['editor'],!0x0,_0x527f2a);}['getDataWithDiscardedSuggestions'](_0x19b944){return N(this['editor'],!0x1,_0x19b944);}}class D extends _0xc188f5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ddc20){function _0x103f43(_0x964a19){return _0x964a19['map'](_0x2e6461=>String['fromCharCode'](_0x2e6461))['join']('');}super(_0x3ddc20),this['result']='end',_0x3ddc20[_0x103f43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x103f43([0x76,0x69,0x65,0x77])][_0x103f43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x103f43([0x61,0x75,0x74,0x6f]),_0x3ddc20[_0x103f43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x103f43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x103f43([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x103f43([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x103f43([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(_0x1017a1){return void 0x0!==_0x1017a1['getRootsAttributes'];}async function N(_0x33ae53,_0x4e7a89,_0x42f539){const _0x553388=_0x2a8de1(_0x33ae53,w);_0x553388['plugins']['push'](p,D),_0x553388['rootsAttributes']=Ge(_0x33ae53)?_0x33ae53['getRootsAttributes']():void 0x0;const _0x2a3de5=document['createDocumentFragment'](),_0x27ba97=_0x33ae53['config']['get']('trackChangesData')['editorCreator'],_0x2e4f8b=await _0x27ba97(_0x553388,()=>function(_0x143d83){const _0x288e6b=document['createElement']('div');return _0x143d83['appendChild'](_0x288e6b),_0x288e6b;}(_0x2a3de5));!function(_0x3b2b39,_0x5e1f27){const _0x345b42=_0x3b2b39['model']['document']['getRootNames']()['reduce']((_0x3f68df,_0x571cb2)=>(_0x3f68df[_0x571cb2]=_0x3b2b39['data']['get']({'rootName':_0x571cb2}),_0x3f68df),{}),_0x4bcac7=_0x3b2b39['plugins']['get']('Users')['users']['map'](_0x1dab9c=>({'id':_0x1dab9c['id'],'name':_0x1dab9c['name']})),_0x13f010=_0x3b2b39['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x284af7=_0x3b2b39['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2df2e1=_0x5e1f27['plugins']['get']('Users'),_0x5d4b39=_0x5e1f27['plugins']['get']('TrackChangesEditing'),_0x2da6b0=_0x5e1f27['plugins']['get']('CommentsRepository');for(const _0x505a3c of _0x2da6b0['getCommentThreads']())_0x505a3c['remove']();for(const _0x22161c of _0x4bcac7)_0x2df2e1['getUser'](_0x22161c['id'])||_0x2df2e1['addUser'](_0x22161c);_0x2df2e1['me']||_0x2df2e1['useAnonymousUser']();for(const _0x56d104 of _0x284af7)_0x2da6b0['addCommentThread'](_0x56d104);for(const _0x511451 of _0x13f010)_0x5d4b39['addSuggestionData'](_0x511451);_0x5e1f27['data']['set'](_0x345b42);}(_0x33ae53,_0x2e4f8b),_0x2e4f8b['execute'](_0x4e7a89?'acceptAllSuggestions':'discardAllSuggestions');const _0x518745=Ge(_0x2e4f8b)?_0x2e4f8b['getFullData'](_0x42f539):_0x2e4f8b['data']['get'](_0x42f539);return await _0x2e4f8b['destroy'](),_0x518745;}class Me extends _0x318208{['options'];constructor(_0x32f00e,_0x3dba0b){super(_0x32f00e),this['options']=_0x3dba0b,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'](_0x191fd3,_0xda5082){if(!this['element'])return;const _0xf0c267=[];for(const [_0x45e5be,_0x209bdf]of _0x191fd3){const _0xce0d22=document['createElement']('div');_0xce0d22['setAttribute']('data-ck-root-name',_0x45e5be),_0xce0d22['className']=_0x209bdf['classes']+'\x20ck-track-changes-preview__root-container',_0xce0d22['innerHTML']=_0x209bdf['content'],_0xf0c267['push'](_0xce0d22);}_0xda5082(this['element'],_0xf0c267),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x1cf1d8{constructor(_0x1ef412){super(_0x1ef412),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xe89a78=this['editor'],_0x1dd713=_0xe89a78['locale'],_0x1ae9e7=_0xe89a78['plugins']['get']('Dialog');let _0x6799f7;const _0x57e975=function(_0x3371e2){const _0x47834a={};if('editables'in _0x3371e2['ui']['view']){for(const [_0x3fa869,_0x5ccf84]of Object['entries'](_0x3371e2['ui']['view']['editables']))_0x47834a[_0x3fa869]=_0x5ccf84['element'];}else _0x47834a[_0x3371e2['model']['document']['getRootNames']()[0x0]]=_0x3371e2['ui']['view']['editable']['element'];return _0x47834a;}(_0xe89a78),_0x1fe90e=function(_0x207eb7){let _0x191ed2=0x0;for(const _0x3b66fe of Object['values'](_0x207eb7))_0x191ed2=Math['max'](_0x191ed2,_0x3b66fe['getBoundingClientRect']()['width']);let _0x4a74b5=0x0;for(const _0x38ea18 of Object['values'](_0x207eb7))_0x4a74b5+=_0x38ea18['getBoundingClientRect']()['height'];const _0x13d310=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3e3c86=Math['min'](_0x4a74b5,_0x13d310);return{'width':_0x191ed2,'height':_0x3e3c86};}(_0x57e975);_0x1ae9e7['show']({'id':'finalContentPreview','title':c(_0x1dd713,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1dd713,{'dialogRects':_0x1fe90e}),'onHide':()=>{_0x6799f7['detachFromDom']();},'onShow':()=>{_0xe89a78['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x43e039=>{const _0x41f6b1=this['_standarizeRootsData'](_0x43e039,_0xe89a78,_0x57e975);_0x1ae9e7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x41f6b1,_0xe89a78['config']['get']('trackChanges.preview.renderFunction'));}),_0x6799f7=new _0x146592(_0x1dd713,[_0x1ae9e7['view']]),_0x6799f7['attachToDom'](),_0x6799f7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xe89a78['once']('destroy',()=>{_0x6799f7['detachFromDom']();});const _0x4d7d2c=_0x1ae9e7['view']['headerView']['class'];_0x1ae9e7['view']['headerView']['class']=_0x4d7d2c?_0x4d7d2c+'\x20ck-reset_all':'ck-reset_all',_0x1ae9e7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1ae9e7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4b647d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4ce17d=_0x4b647d['previewMode'],_0x31e40d={};if('$labels'===_0x4ce17d){for(const _0x3888e9 of _0x4b647d['getMergeFieldsIds']())_0x31e40d[_0x3888e9]=_0x4b647d['getLabel'](_0x3888e9)||_0x3888e9;}else{const _0x5fa337='$defaultValues'===_0x4ce17d?_0x4b647d['getDefaultValues']():_0x4b647d['getDataSetValues'](_0x4ce17d,!0x0);for(const _0x32b55c of Object['entries'](_0x5fa337)){const [_0x35158e,_0x350a5f]=_0x32b55c;_0x31e40d[_0x35158e]=null!==_0x350a5f?_0x350a5f:_0x4b647d['getLabel'](_0x35158e)||_0x35158e;}}return{'mergeFieldsData':_0x31e40d};}['_standarizeRootsData'](_0xd83bdc,_0x168d77,_0x4d4e64){let _0x117085;if('string'==typeof _0xd83bdc){const _0x530d52=_0x168d77['model']['document']['getRootNames']()[0x0];_0x117085={[_0x530d52]:_0xd83bdc};}else _0x117085=_0xd83bdc;const _0x2365dd=this['_fixMediaEmbeds'](_0x117085,_0x168d77),_0x5b7ada=function(_0x2cab9c,_0x1b75fe){for(const [_0x344e3c,_0x3e7f4d]of _0x2cab9c)_0x3e7f4d['classes']=_0x1b75fe[_0x344e3c]['classList']['value']['replace']('ck-focused','');return _0x2cab9c;}(this['_sortRoots'](_0x168d77)['reduce']((_0x231b34,_0x5c1234)=>(_0x231b34['push']([_0x5c1234,{'content':_0x2365dd[_0x5c1234],'classes':''}]),_0x231b34),[]),_0x4d4e64);return _0x5b7ada;}['_fixMediaEmbeds'](_0x53a259,_0x118e75){if(!_0x118e75['plugins']['has']('MediaEmbedEditing'))return _0x53a259;const _0x596791=_0x118e75['plugins']['get']('MediaEmbedEditing');for(const [_0x2d3b13,_0x540827]of Object['entries'](_0x53a259)){const _0x2a2352=document['createElement']('div');_0x2a2352['innerHTML']=_0x540827,(_0x2a2352['querySelectorAll']('figure.media')['forEach'](_0x313ca7=>{const _0x59361c=_0x313ca7['querySelector']('oembed');if(_0x59361c){const _0x2e35a5=_0x59361c['getAttribute']('url');if(_0x2e35a5){const _0x36d1fa=_0x596791['registry']['getMediaViewElement'](new _0x4c64e6(_0x118e75['editing']['view']['document']),_0x2e35a5,{'elementName':'','renderForEditingView':!0x0}),_0x2fd7ec=document['createElement']('div');_0x2fd7ec['classList']['add']('ck-media__wrapper'),_0x36d1fa['render'](_0x2fd7ec,_0x118e75['editing']['view']['domConverter']),_0x59361c['replaceWith'](_0x2fd7ec);}}}),_0x53a259[_0x2d3b13]=_0x2a2352['innerHTML']);}return _0x53a259;}['_sortRoots'](_0xf95b46){if(!function(_0x242089){return void 0x0!==_0x242089['getRootsAttributes'];}(_0xf95b46))return _0xf95b46['model']['document']['getRootNames']();const _0x16c5f5=[],_0x1eb6a7=new Map();for(const _0x2d6a11 of _0xf95b46['model']['document']['getRootNames']()){const _0x2f8caf=_0xf95b46['editing']['view']['getDomRoot'](_0x2d6a11)['getClientRects']()['item'](0x0);_0x16c5f5['push'](_0x2d6a11),_0x1eb6a7['set'](_0x2d6a11,_0x2f8caf);}return _0x16c5f5['sort']((_0x5eb2fc,_0x5e2434)=>{const _0x549069=_0x1eb6a7['get'](_0x5eb2fc),_0x310a11=_0x1eb6a7['get'](_0x5e2434);return _0x549069['y']-_0x310a11['y']||_0x549069['x']-_0x310a11['x'];}),_0x16c5f5;}}class te extends _0xc188f5{static get['requires'](){return[T,_0xd30797];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7b0bc5){super(_0x7b0bc5),_0x7b0bc5['commands']['add']('previewFinalContent',new re(this['editor'])),_0x7b0bc5['config']['define']('trackChanges.preview.renderFunction',(_0x398853,_0x3087ad)=>{for(const _0x339dae of _0x3087ad)_0x398853['appendChild'](_0x339dae);});}}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 _0x53d335,Plugin as _0x26e18a,PendingActions as _0x16124d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xd71c7a,ObservableMixin as _0x54dff5,uid as _0x4cee4c,priorities as _0x51421a,insertToPriorityArray as _0x852330,logWarning as _0xe6966e,getEnvKeystrokeText as _0x3ccca9,FocusTracker as _0x51faa2,KeystrokeHandler as _0x2af4b6,Collection as _0x52067a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x29856d,IconCancel as _0x5c1da3,IconTrackChanges as _0x31bc0a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xe9d67d,View as _0x51df42,ViewCollection as _0x2d73ef,FocusCycler as _0x18967d,ViewModel as _0x4c07b4,createDropdown as _0x1742f6,SplitButtonView as _0x1c2205,addListToDropdown as _0x4e97ef,MenuBarMenuView as _0xb4e18e,MenuBarMenuListView as _0x13dec9,ListSeparatorView as _0x2104aa,MenuBarMenuListItemView as _0x1e667b,MenuBarMenuListItemButtonView as _0x5d1fdc,BodyCollection as _0x30992a,Dialog as _0x44de0c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4abb9f,hashObject as _0x337f49,surroundingMarkersDetector as _0x3eb7a1,FOCUS_ANNOTATION_KEYSTROKE as _0x11fa9e,AriaDescriptionView as _0x2087a1,setupThreadKeyboardNavigation as _0x1e9ff8,trimHtml as ti,UserView as _0x5db008,LateFocusButtonView as _0x39ded3,getDateTimeFormatter as _0x1a51c1,getAllMarkersDomElementsSorted as _0x5e746d,sanitizeEditorConfig as _0x2447e0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2a4f75,LiveRange as _0x5eb1fc,LivePosition as _0x1acda2,DowncastWriter as _0x4f6fee}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x589369,toWidget as _0x4b005f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2654d6,set as _0x435a3a,isEqual as _0x595b34,unset as _0x131ffa,omit as Ft}from'es-toolkit/compat';import{Delete as _0x4ffc6a,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5ec421}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x23389f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x53d335{['_enabledCommands'];constructor(_0x4fdea4,_0x1afe18){super(_0x4fdea4),this['_enabledCommands']=_0x1afe18,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 _0x5337e6 of this['editor']['commands']['commands']())_0x5337e6['affectsData']&&!this['_enabledCommands']['has'](_0x5337e6)&&_0x5337e6['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x19d241 of this['editor']['commands']['commands']())_0x19d241['affectsData']&&!this['_enabledCommands']['has'](_0x19d241)&&_0x19d241['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x53d335{['_suggestions'];constructor(_0x509746,_0x22af4e){super(_0x509746),this['_suggestions']=_0x22af4e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x49b337){const _0x8867d2=this['_suggestions']['get'](_0x49b337);if(!_0x8867d2)throw new _0xd71c7a('track-changes-accept-suggestion-not-found',this);const _0x3fcb92=_0x8867d2['getRanges']();this['editor']['model']['canEditAt'](_0x3fcb92)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x8867d2);}}class R extends _0x53d335{['_suggestions'];constructor(_0x1f3b6a,_0x12bce0){super(_0x1f3b6a),this['_suggestions']=_0x12bce0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5ad54c){const _0x42ec76=this['_suggestions']['get'](_0x5ad54c);if(!_0x42ec76)throw new _0xd71c7a('track-changes-discard-suggestion-not-found',this);const _0x4074e6=_0x42ec76['getRanges']();this['editor']['model']['canEditAt'](_0x4074e6)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x42ec76);}}function ls(_0x1e91f0,_0x1d7b9e){let _0x1b5b00='';return _0x1b5b00+=_0x1e91f0['split']('*')['map']((_0x312cb2,_0x98c8b4)=>_0x98c8b4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x312cb2)+'</span>':nn(_0x312cb2))['join'](''),_0x1d7b9e&&(_0x1b5b00+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1d7b9e['value']+'\x22\x20title=\x22'+_0x1d7b9e['title']+'\x22></span>'),_0x1b5b00;}function nn(_0x2747cf){const _0xa2f44b=document['createElement']('span');return _0xa2f44b['innerText']=_0x2747cf,_0xa2f44b['innerHTML'];}function ts(_0x239e47){return _0x239e47['sort']((_0xf9381a,_0x9ebf22)=>'deletion'==_0xf9381a['type']&&'deletion'!=_0x9ebf22['type']?-0x1:'deletion'!=_0xf9381a['type']&&'deletion'==_0x9ebf22['type']?0x1:0x0);}function to(_0x3f467c,_0x4814b6){let _0x3cee7b,_0x3bdfa2=0x0;const _0x5663de=[],_0x49f600=_0x4814b6['schema'];for(;_0x3bdfa2<_0x3f467c['length'];){const _0x2471cb=_0x3f467c[_0x3bdfa2],_0x429983=_0x3f467c[_0x3bdfa2+0x1];_0x3cee7b||(_0x3cee7b=_0x4814b6['createPositionBefore'](_0x2471cb)),on(_0x4814b6,_0x2471cb,_0x429983)||(_0x5663de['push'](_0x4814b6['createRange'](_0x3cee7b,_0x49f600['isObject'](_0x2471cb)?_0x4814b6['createPositionAfter'](_0x2471cb):_0x4814b6['createPositionAt'](_0x2471cb,'end'))),_0x3cee7b=null),_0x3bdfa2++;}return _0x5663de;}function on(_0x12652e,_0x33560a,_0x1b6b62){if(!_0x1b6b62)return!0x1;const _0x28c6c1=_0x12652e['createPositionAfter'](_0x33560a),_0x41888b=_0x12652e['createPositionBefore'](_0x1b6b62);return _0x28c6c1['isTouching'](_0x41888b);}function rs(_0x3f9d87,_0x466f6,_0x17441f){for(;_0x17441f['length'];){const _0x4f7dee=_0x17441f['splice'](0x0,0x64);_0x3f9d87['change'](()=>{for(const _0x4e9585 of _0x4f7dee)_0x4e9585['isInContent']&&_0x466f6['execute'](_0x4e9585['id']);});}}class x extends _0x53d335{['_command'];['_suggestions'];constructor(_0x24e03b,_0x370c1d,_0x17af24){super(_0x24e03b),this['_command']=_0x370c1d,this['_suggestions']=_0x17af24,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1ffba6=Array['from'](this['_suggestions']['values']())['some'](_0x47ddac=>_0x47ddac['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1ffba6;}['execute'](){const _0x32b90d=ts(Array['from'](this['_suggestions']['values']()));for(const _0x4cc07c of _0x32b90d){const _0x32d0d8=_0x4cc07c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x32d0d8))return;}rs(this['editor']['model'],this['_command'],_0x32b90d);}}class E extends _0x53d335{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x26b680,_0x378dab,_0x3b6d40){super(_0x26b680),this['_command']=_0x378dab,this['_suggestions']=_0x3b6d40,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x33a09a=this['editor']['model']['document']['selection'],_0x2ecbe7=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1bb9b1,_0x1c0f7a){const _0x215688=Array['from'](_0x1bb9b1['getRanges']()),_0x22bda2=new Set();for(const _0x1d8010 of _0x1c0f7a)if(_0x1d8010['isInContent']){for(const _0x473271 of _0x215688)for(const _0x4b6a22 of _0x1d8010['getRanges']())(_0x473271['isIntersecting'](_0x4b6a22)||_0x1bb9b1['isCollapsed']&&!_0x1d8010['isMultiRange']&&_0x1d8010['next']&&_0x4b6a22['end']['isTouching'](_0x473271['start']))&&_0x22bda2['add'](_0x1d8010);}return _0x22bda2;}(_0x33a09a,_0x2ecbe7),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x23cef3=ts(Array['from'](this['_selectedSuggestions']));for(const _0x370fc8 of _0x23cef3){const _0x17efb7=_0x370fc8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x17efb7))return;}rs(this['editor']['model'],this['_command'],_0x23cef3);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x54dff5(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3488db,_0x7d7883){super(),this['id']=_0x7d7883['id'],this['type']=_0x7d7883['type'],this['subType']=_0x7d7883['subType']||null,this['author']=_0x7d7883['author'],this['creator']=_0x7d7883['creator']||_0x7d7883['author'],this['isExternal']=Boolean(_0x7d7883['attributes']&&_0x7d7883['attributes']['@external']),this['data']=null,this['_model']=_0x3488db,this['_onAccept']=_0x7d7883['onAccept'],this['_onDiscard']=_0x7d7883['onDiscard'],this['_onAttributesChange']=_0x7d7883['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x7d7883['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 _0x592cc2=this;for(;_0x592cc2['previous'];)_0x592cc2=_0x592cc2['previous'];return _0x592cc2;}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'](_0xa2c65){this['_markerNames']['add'](_0xa2c65);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x47fdaf=>this['_model']['markers']['get'](_0x47fdaf))['filter'](_0x342993=>_0x342993);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x349244=>{for(const _0x2f497f of this['getMarkers']())_0x349244['removeMarker'](_0x2f497f);}),this['_markerNames']['clear']();}['removeMarker'](_0x2a4449){this['_model']['change'](_0x5b7ebb=>{_0x5b7ebb['removeMarker'](_0x2a4449);}),this['_markerNames']['delete'](_0x2a4449);}['addRange'](_0x2f2e03){const _0x43bccd='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x43bccd),this['_model']['change'](_0x256401=>{_0x256401['addMarker'](_0x43bccd,{'range':_0x2f2e03,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x53c36a){for(const _0x37ca3f of this['getRanges']())if(_0x37ca3f['isIntersecting'](_0x53c36a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1976b4=>_0x1976b4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4a3ff4,_0x149b46)=>[..._0x4a3ff4,..._0x149b46['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1ab45d=this['getRanges']();if(0x1!=_0x1ab45d['length'])return null;const _0x1bbdf4=_0x1ab45d[0x0],_0xc2d08e=_0x1bbdf4['start']['nodeAfter'],_0x4081fb=_0x1bbdf4['end']['nodeBefore'];return _0xc2d08e instanceof _0x2a4f75?_0xc2d08e!=_0x4081fb?null:_0xc2d08e: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 _0x194e4c=[];let _0x234472=this['head'];for(;_0x234472;)_0x194e4c['push'](_0x234472),_0x234472=_0x234472['next'];return _0x194e4c;}['setAttribute'](_0x4b20b8,_0x3ed095){const _0x352298=_0x2654d6(this['attributes']);_0x435a3a(_0x352298,_0x4b20b8,_0x3ed095),_0x595b34(_0x352298,this['attributes'])||(this['attributes']=_0x352298,this['_onAttributesChange'](_0x352298));}['removeAttribute'](_0xf956d){const _0x1dd1a4=_0x2654d6(this['attributes']);_0x131ffa(_0x1dd1a4,_0xf956d),_0x595b34(_0x1dd1a4,this['attributes'])||(this['attributes']=_0x1dd1a4,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 _0x4cee4c()['substr'](0x1,0x5);}}function c(_0x218d95,_0xf04d20,_0x27f45d){const _0x10e357=_0x218d95['t'],t=_0x218d95['t'];switch(_0xf04d20){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',_0x27f45d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x27f45d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x27f45d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x27f45d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x27f45d);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',_0x27f45d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x27f45d);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',_0x27f45d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x27f45d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x27f45d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x27f45d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x27f45d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x27f45d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x27f45d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x27f45d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x27f45d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x27f45d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x27f45d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x27f45d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x27f45d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x27f45d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x27f45d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x27f45d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x27f45d);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x27f45d);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'},_0x27f45d);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x27f45d);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x27f45d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x27f45d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x27f45d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x27f45d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x27f45d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x27f45d);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'},_0x27f45d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x27f45d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x27f45d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x27f45d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x27f45d);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'},_0x27f45d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x27f45d);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'},_0x27f45d);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'},_0x27f45d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x27f45d);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'},_0x27f45d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x27f45d);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'},_0x27f45d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x27f45d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x27f45d);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'},_0x27f45d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x27f45d);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 _0x10e357({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x27f45d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x10e357({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x27f45d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x27f45d);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'},_0x27f45d);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'},_0x27f45d);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'},_0x27f45d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xf04d20;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5e9669,_0x773afc){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5e9669,this['_locale']=_0x773afc;}['getDescriptions'](_0x810041){const _0xe2473=[],_0x42c5b2=new Set(),_0x523bd7=new Set();for(let _0x107ef9=0x0;_0x107ef9<_0x810041['length'];_0x107ef9++){const _0x456a23=_0x810041[_0x107ef9];if(!_0x456a23['isInContent'])continue;const _0x1adb47=this['_handleCustomCallbackDescription'](_0x456a23);if(_0x1adb47){if(null!=_0x456a23['subType']){if(_0x42c5b2['has'](_0x456a23['subType']))continue;_0x42c5b2['add'](_0x456a23['subType']);}_0xe2473['push'](_0x1adb47);}else{if('attribute'!=_0x456a23['type'])'insertion'!=_0x456a23['type']&&'deletion'!=_0x456a23['type']||this['_handleInsertRemoveSuggestionDescription'](_0xe2473,_0x456a23,_0x810041[_0x107ef9+0x1]);else{const _0x28e834=_0x456a23['data']['key'];if(_0x523bd7['has'](_0x28e834))continue;_0x523bd7['add'](_0x456a23['data']['key']),_0x28e834==u?this['_handleRenameSuggestionDescription'](_0xe2473,_0x456a23):this['_handleAttributeSuggestionDescription'](_0xe2473,_0x456a23);}}}return this['_resolveDescriptionItems'](_0xe2473);}['registerDescriptionCallback'](_0x395f2e){this['_customCallbacks']['push'](_0x395f2e);}['registerElementLabel'](_0x5c802a,_0x1835ab,_0x526ae0=_0x51421a['normal']){'function'==typeof _0x5c802a?_0x852330(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5c802a,'label':_0x1835ab,'priority':_0x526ae0}):this['_itemLabels']['set'](_0x5c802a,_0x1835ab);}['registerAttributeLabel'](_0x41bfa3,_0x11247d){this['_attributeLabels']['set'](_0x41bfa3,_0x11247d);}['getItemLabel'](_0x29883d,_0xce3f7c=0x1){let _0x2ea2dc;for(const _0x53e813 of this['_itemLabelsCallbacks'])if(_0x53e813['matchingCallback'](_0x29883d)){_0x2ea2dc=_0x53e813['label'];break;}return _0x2ea2dc||(_0x2ea2dc=this['_itemLabels']['get'](_0x29883d['name'])),_0x2ea2dc?_0x2ea2dc(_0xce3f7c):0x1!==_0xce3f7c?_0xce3f7c+'\x20'+_0x29883d['name']+'s':''+_0x29883d['name'];}['_addDescriptionItems'](_0x2f40c3,_0x2a0fa6){const _0x1e5fe1=_0x2a0fa6['getFirstRange']()['getWalker'](),_0x4c7a4f='insertion'==_0x2a0fa6['type']?'add':'remove';for(const _0x38c890 of _0x1e5fe1){const _0x20b006=_0x38c890['item'],_0x438fa6=_0x2f40c3[_0x2f40c3['length']-0x1];if(_0x20b006['is']('$textProxy'))_0x438fa6&&_0x438fa6['type']['indexOf']('Container')>-0x1&&_0x2f40c3['pop'](),_0x438fa6&&'text'==_0x438fa6['type']?_0x438fa6[_0x4c7a4f]+=_0x20b006['data']:_0x2f40c3['push']({'type':'text','add':'add'==_0x4c7a4f?_0x20b006['data']:'','remove':'remove'==_0x4c7a4f?_0x20b006['data']:''});else{if(this['_schema']['isObject'](_0x20b006)){const _0x3a76d4=_0x20b006;if(_0x438fa6&&_0x438fa6['type']['indexOf']('Container')>-0x1&&_0x2f40c3['pop'](),'elementEnd'==_0x38c890['type'])continue;_0x438fa6&&_0x438fa6['type']==_0x4c7a4f+'Object'&&_0x438fa6['element']['name']==_0x3a76d4['name']?_0x438fa6['quantity']++:_0x2f40c3['push']({'type':_0x4c7a4f+'Object','element':_0x3a76d4,'quantity':0x1}),_0x1e5fe1['skip'](_0x13bca8=>!('elementEnd'==_0x13bca8['type']&&_0x13bca8['item']==_0x20b006));}else{if(this['_schema']['checkChild'](_0x20b006,'$text')||_0x20b006['is']('element','softBreak')){const _0x493801=_0x20b006;if('add'==_0x4c7a4f&&'elementStart'==_0x38c890['type']||'remove'==_0x4c7a4f&&'elementEnd'==_0x38c890['type'])continue;if(_0x438fa6&&-0x1==_0x438fa6['type']['indexOf']('Container')){'text'==_0x438fa6['type']&&(_0x438fa6[_0x4c7a4f]+='\x0a');continue;}let _0x17623f;if(_0x17623f='add'==_0x4c7a4f?_0x493801['nextSibling']&&!this['_schema']['isObject'](_0x493801['nextSibling'])?_0x493801['nextSibling']:null:_0x493801['previousSibling']&&!this['_schema']['isObject'](_0x493801['previousSibling'])?_0x493801['previousSibling']:null,_0x493801['isEmpty']||_0x17623f&&_0x17623f['isEmpty']){const _0x85ab44=_0x17623f&&_0x17623f['isEmpty']?_0x17623f:_0x493801;_0x438fa6&&_0x438fa6['type']==_0x4c7a4f+'EmptyContainer'&&_0x438fa6['element']['name']==_0x85ab44['name']?_0x438fa6['quantity']++:_0x2f40c3['push']({'type':_0x4c7a4f+'EmptyContainer','element':_0x85ab44,'quantity':0x1});}else _0x2f40c3['push']({'type':_0x4c7a4f+'Container','element':_0x493801});}}}}}['_resolveDescriptionItems'](_0x1b1476){const _0xf41794=this['_locale'],_0x2dd43b=[],_0x12e122=[],_0x2ee63e=[];for(const _0x4489b6 of _0x1b1476)switch(_0x4489b6['type']){case'text':if(_0x4489b6['add']=_0x4489b6['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4489b6['remove']=_0x4489b6['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4489b6['add']&&''!=_0x4489b6['remove']){_0x2dd43b['push']({'type':'replace','content':c(_0xf41794,'REPLACE_TEXT',['\x22'+_0x4489b6['remove']+'\x22','\x22'+_0x4489b6['add']+'\x22'])});continue;}if(null!=_0x4489b6['add']['match'](/^ +$/)){_0x2dd43b['push']({'type':'insertion','content':c(_0xf41794,'*Insert:*\x20%0',c(_0xf41794,'ELEMENT_SPACE',_0x4489b6['add']['length']))});continue;}if(null!=_0x4489b6['remove']['match'](/^ +$/)){_0x2dd43b['push']({'type':'deletion','content':c(_0xf41794,'*Remove:*\x20%0',c(_0xf41794,'ELEMENT_SPACE',_0x4489b6['remove']['length']))});continue;}if(''!=_0x4489b6['add']){_0x2dd43b['push']({'type':'insertion','content':c(_0xf41794,'*Insert:*\x20%0','\x22'+_0x4489b6['add']+'\x22')});continue;}_0x2dd43b['push']({'type':'deletion','content':c(_0xf41794,'*Remove:*\x20%0','\x22'+_0x4489b6['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2dd43b['push']({'type':'insertion','content':c(_0xf41794,'*Insert:*\x20%0',this['getItemLabel'](_0x4489b6['element'],_0x4489b6['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2dd43b['push']({'type':'deletion','content':c(_0xf41794,'*Remove:*\x20%0',this['getItemLabel'](_0x4489b6['element'],_0x4489b6['quantity']))});continue;case'addContainer':_0x2dd43b['push']({'type':'insertion','content':c(_0xf41794,'*Split:*\x20%0',this['getItemLabel'](_0x4489b6['element'],_0x4489b6['quantity']))});continue;case'removeContainer':_0x2dd43b['push']({'type':'deletion','content':c(_0xf41794,'*Merge:*\x20%0',this['getItemLabel'](_0x4489b6['element'],_0x4489b6['quantity']))});continue;case'addFormat':_0x12e122['push'](_0x4489b6['key']);continue;case'removeFormat':_0x2ee63e['push'](_0x4489b6['key']);continue;default:_0x2dd43b['push'](_0x4489b6);}if(_0x12e122['length']){const _0x475144=_0x12e122['map'](_0x4441cb=>this['_attributeLabels']['has'](_0x4441cb)?this['_attributeLabels']['get'](_0x4441cb):_0x4441cb)['join'](',\x20');_0x2dd43b['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x475144)});}if(_0x2ee63e['length']){const _0xd586c9=_0x2ee63e['map'](_0x4be482=>this['_attributeLabels']['has'](_0x4be482)?this['_attributeLabels']['get'](_0x4be482):_0x4be482)['join'](',\x20');_0x2dd43b['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0xd586c9)});}return _0x2dd43b;}['_handleCustomCallbackDescription'](_0x40c845){for(const _0x19570e of this['_customCallbacks']){const _0x32c134=_0x19570e(_0x40c845);if(_0x32c134&&'type'in _0x32c134)return _0x32c134;}}['_handleAttributeSuggestionDescription'](_0x1ae383,_0x56f50c){const _0x227076=_0x56f50c['data'],_0xb3a79c=void 0x0===_0x227076['newValue']?'removeFormat':'addFormat';_0x1ae383['push']({'type':_0xb3a79c,'key':_0x227076['key']});}['_handleRenameSuggestionDescription'](_0x4d719d,_0x3eff63){_0x4d719d['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3eff63['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1d2dcd,_0x3f309e,_0x381d21){if(this['_addDescriptionItems'](_0x1d2dcd,_0x3f309e),_0x381d21&&_0x381d21['getFirstRange']()&&!_0x3f309e['getFirstRange']()['end']['isEqual'](_0x381d21['getFirstRange']()['start'])){const _0x428bdd=_0x1d2dcd[_0x1d2dcd['length']-0x1],_0x199500='insertion'==_0x3f309e['type']?'add':'remove';_0x428bdd&&'text'==_0x428bdd['type']&&(_0x428bdd[_0x199500]+='\x0a');}}}class U extends _0x26e18a{['afterInit'](){const _0x4b3265=this['editor'],_0x2719f2=_0x4b3265['plugins']['get']('TrackChangesEditing');_0x4b3265['commands']['get']('showAIAssistant')&&_0x2719f2['enableCommand']('showAIAssistant');}}class V extends _0x26e18a{['afterInit'](){const _0x446fce=this['editor'],_0x461ecf=_0x446fce['locale'];if(!_0x446fce['plugins']['has']('AlignmentEditing'))return;const _0x5268e5=_0x446fce['plugins']['get']('TrackChangesEditing');_0x5268e5['enableDefaultAttributesIntegration']('alignment'),_0x5268e5['registerBlockAttribute']('alignment'),_0x5268e5['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x461ecf,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c90fb=this['editor'],_0x55854c=_0x3c90fb['locale'];_0x3c90fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a5177=>{if('formatBlock'!=_0x1a5177['type'])return;const {data:_0x334ef1}=_0x1a5177;if(_0x334ef1&&'alignment'==_0x334ef1['commandName']){const _0xbda465=_0x334ef1['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x55854c,'*Format:*\x20%0',function(_0x2cf0cb){switch(_0x2cf0cb){case'left':return c(_0x55854c,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x55854c,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x55854c,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x55854c,'FORMAT_JUSTIFY_TEXT');}}(_0xbda465))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x26e18a{['afterInit'](){const _0x48043c=this['editor'],_0x171cc6=_0x48043c['plugins']['get']('TrackChangesEditing'),_0x1839cf=_0x48043c['locale'];for(const _0x5a91ec of Zt){if(!_0x48043c['plugins']['has'](_0x5a91ec))continue;const _0x9a386d=_0x5a91ec['slice'](0x0,-0x7)['toLowerCase'](),_0x17f777='FORMAT_'+_0x9a386d['toUpperCase']();_0x171cc6['enableDefaultAttributesIntegration'](_0x9a386d),_0x171cc6['registerInlineAttribute'](_0x9a386d),_0x171cc6['descriptionFactory']['registerAttributeLabel'](_0x9a386d,c(_0x1839cf,_0x17f777));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16b872=this['editor'],_0x33c84b=_0x16b872['locale'],_0x4309b0=_0x16b872['plugins']['get']('TrackChangesEditing');function _0x291886(_0x4a16bf,_0x492e36){_0x4309b0['descriptionFactory']['registerDescriptionCallback'](_0x11fbe7=>{if('formatInline'!=_0x11fbe7['type'])return;const {data:_0x2f02ab}=_0x11fbe7;return _0x2f02ab&&_0x2f02ab['commandName']===_0x4a16bf?_0x2f02ab['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x33c84b,'*Format:*\x20%0',_0x492e36)}:{'type':'format','content':c(_0x33c84b,'*Remove\x20format:*\x20%0',_0x492e36)}:void 0x0;});}_0x291886('bold',c(_0x33c84b,'FORMAT_BOLD')),_0x291886('italic',c(_0x33c84b,'FORMAT_ITALIC')),_0x291886('underline',c(_0x33c84b,'FORMAT_UNDERLINE')),_0x291886('code',c(_0x33c84b,'FORMAT_CODE')),_0x291886('strikethrough',c(_0x33c84b,'FORMAT_STRIKETHROUGH')),_0x291886('subscript',c(_0x33c84b,'FORMAT_SUBSCRIPT')),_0x291886('superscript',c(_0x33c84b,'FORMAT_SUPERSCRIPT'));}}class G extends _0x26e18a{['afterInit'](){const _0xdaecc0=this['editor'],_0x2b26f8=_0xdaecc0['locale'];if(!_0xdaecc0['plugins']['has']('BlockQuoteEditing'))return;const _0x2b4215=_0xdaecc0['plugins']['get']('TrackChangesEditing'),_0x5049d4=this['editor']['commands']['get']('blockQuote');_0x2b4215['enableCommand']('blockQuote',(_0xa5810d,_0x53ed83={})=>{const _0x52298b=this['editor']['model']['document']['selection'],_0x310ee5=_0x53ed83&&void 0x0!==_0x53ed83['forceValue']?_0x53ed83['forceValue']:!_0x5049d4['value'];let _0x194eaa=[];if(_0x310ee5){const _0x261c42=Array['from'](_0x52298b['getSelectedBlocks']())['filter'](_0x5d7ae6=>oo(_0x5d7ae6)||function(_0x36fcb8,_0x3f37fc){const _0x41d3bf=_0x3f37fc['checkChild'](_0x36fcb8['parent'],'blockQuote'),_0x17c05d=_0x3f37fc['checkChild'](['$root','blockQuote'],_0x36fcb8);return _0x41d3bf&&_0x17c05d;}(_0x5d7ae6,this['editor']['model']['schema']));_0x194eaa=to(_0x261c42,_0xdaecc0['model']);}else{const _0x543059=Array['from'](_0x52298b['getSelectedBlocks']())['filter'](_0x5ba23d=>oo(_0x5ba23d));_0x194eaa=to(_0x543059,_0xdaecc0['model']);}_0xdaecc0['model']['change'](()=>{for(const _0x4ab1a0 of _0x194eaa)_0x2b4215['markBlockFormat'](_0x4ab1a0,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x310ee5}]});});}),_0x2b4215['descriptionFactory']['registerDescriptionCallback'](_0x46d2e2=>{const {data:_0x2b023e}=_0x46d2e2;if(_0x2b023e&&'blockQuote'==_0x2b023e['commandName']){const _0x2f0e9b=c(_0x2b26f8,'ELEMENT_BLOCK_QUOTE');return _0x2b023e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2b26f8,'*Set\x20format:*\x20%0',_0x2f0e9b)}:{'type':'format','content':c(_0x2b26f8,'*Remove\x20format:*\x20%0',_0x2f0e9b)};}});}}function oo(_0x12bc20){return'blockQuote'==_0x12bc20['parent']['name'];}class L extends _0x26e18a{['afterInit'](){const _0x44c1a2=this['editor'],_0x1f52f7=_0x44c1a2['locale'],_0x42d584=_0x44c1a2['plugins']['get']('TrackChangesEditing');_0x44c1a2['plugins']['has']('BookmarkEditing')&&(_0x42d584['enableCommand']('insertBookmark'),_0x42d584['enableDefaultAttributesIntegration']('updateBookmark'),_0x42d584['registerBlockAttribute']('bookmarkId'),_0x42d584['descriptionFactory']['registerDescriptionCallback'](_0x144611=>{if('insertion'!=_0x144611['type']&&'deletion'!=_0x144611['type']&&'attribute'!=_0x144611['type'])return;const _0x21fc1b=_0x144611['getContainedElement']();if(null==_0x21fc1b)return;if(!_0x21fc1b['is']('element','bookmark'))return;const _0x37f49e=_0x21fc1b['getAttribute']('bookmarkId');if('insertion'==_0x144611['type'])return{'type':'insertion','content':c(_0x1f52f7,'*Insert:*\x20%0','\x22'+_0x37f49e+'\x22\x20'+c(_0x1f52f7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x144611['type'])return{'type':'deletion','content':c(_0x1f52f7,'*Remove:*\x20%0','\x22'+_0x37f49e+'\x22\x20'+c(_0x1f52f7,'ELEMENT_BOOKMARK'))};const {data:_0x3b5458}=_0x144611;if(!_0x3b5458||'bookmarkId'!=_0x3b5458['key'])return;return{'type':'format','content':c(_0x1f52f7,'*Set\x20bookmark:*\x20%0','\x22'+_0x3b5458['newValue']+'\x22')};}));}}class J extends _0x26e18a{['afterInit'](){const _0x2b5524=this['editor'];_0x2b5524['plugins']['has']('CaseChange')&&(_0x2b5524['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2b5524['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2b5524['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x26e18a{['afterInit'](){const _0x2e7b65=this['editor'];_0x2e7b65['commands']['get']('ckbox')&&_0x2e7b65['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x26e18a{['afterInit'](){const _0xec6684=this['editor'];if(!_0xec6684['plugins']['has']('CodeBlock'))return;const _0x131f38=_0xec6684['plugins']['get']('TrackChangesEditing'),_0x2a4142=_0xec6684['locale'],_0x49e23d=_0xec6684['config']['get']('codeBlock')['languages'],_0x3600c7=_0xec6684['commands']['get']('codeBlock');_0x131f38['enableCommand']('indentCodeBlock'),_0x131f38['enableCommand']('outdentCodeBlock'),_0x131f38['enableCommand']('codeBlock',(_0x417e5e,_0x1fe1a2={})=>{const _0x198bdb=_0xec6684['model'],_0x8a31e7=_0xec6684['model']['document']['selection'],_0x5ed23c=_0x1fe1a2&&void 0x0!==_0x1fe1a2['forceValue']?_0x1fe1a2['forceValue']:!_0x3600c7['value'];let _0x24fc65;_0x1fe1a2['language']||(_0x1fe1a2['language']=_0x49e23d[0x0]['language']),_0x24fc65=_0x5ed23c?Array['from'](_0x8a31e7['getSelectedBlocks']())['filter'](_0x4ff5f2=>eo(_0x4ff5f2)||function(_0xe2a28,_0x460f20){if(_0xe2a28['is']('rootElement')||_0x460f20['isLimit'](_0xe2a28))return!0x1;return _0x460f20['checkChild'](_0xe2a28['parent'],'codeBlock');}(_0x4ff5f2,_0x198bdb['schema'])):Array['from'](_0x8a31e7['getSelectedBlocks']())['filter'](_0x3cd1cc=>eo(_0x3cd1cc));const _0x5eddf3=to(_0x24fc65,_0x198bdb);_0x198bdb['change'](()=>{for(const _0x4d67f3 of _0x5eddf3)_0x131f38['markBlockFormat'](_0x4d67f3,{'commandName':'codeBlock','commandParams':[{..._0x1fe1a2,'forceValue':_0x5ed23c}],'formatGroupId':'blockName'});});}),(_0x131f38['descriptionFactory']['registerElementLabel']('codeBlock',_0x33467b=>c(_0x2a4142,'ELEMENT_CODE_BLOCK',_0x33467b)),_0x131f38['descriptionFactory']['registerDescriptionCallback'](_0x1fba3f=>{if('formatBlock'!=_0x1fba3f['type'])return;const _0x4ff4a0=_0x2a4142['t'],{data:_0x283a62}=_0x1fba3f;if(!_0x283a62||'codeBlock'!=_0x283a62['commandName'])return;const _0x2b18ef=_0x283a62['commandParams'][0x0]['language'],_0x2b0f97=_0x4ff4a0(_0x49e23d['find'](_0x2b1a5e=>_0x2b1a5e['language']===_0x2b18ef)['label'])['toLowerCase']();return _0x283a62['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2a4142,'*Set\x20format:*\x20%0',c(_0x2a4142,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2b0f97+')')}:{'type':'format','content':c(_0x2a4142,'*Remove\x20format:*\x20%0',c(_0x2a4142,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x406860){return'codeBlock'==_0x406860['name'];}class q extends _0x26e18a{['afterInit'](){const _0x1e8c56=this['editor'];if(!_0x1e8c56['plugins']['has']('CommentsEditing'))return;_0x1e8c56['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4c16d2,_0x5b01a8,_0xf7f484){const _0x2465b2=[];for(const _0x53f4b0 of _0x5b01a8['getItems']())_0x53f4b0['hasAttribute'](_0x4c16d2)&&_0x2465b2['push'](_0xf7f484['createRangeOn'](_0x53f4b0));return _0x2465b2;}function Fe(_0x47dfa7,_0x2909f6,{showActiveMarker:_0x34491a=!0x0}={}){const _0x194357=_0x47dfa7['plugins']['get']('TrackChangesEditing');return(_0x39be33,_0x54c9cd,_0x142441)=>{if(!_0x142441['consumable']['test'](_0x54c9cd['markerRange'],_0x39be33['name']))return;const _0x1ca4a3=_0x54c9cd['markerRange']['getWalker'](),_0x51f585=_0x54c9cd['markerRange']['start'],_0x2d1af8=_0x47dfa7['model']['schema'];let _0x79a27a=null,_0x49c649=null,_0x508e1a=!0x1,_0xdaaf63=!0x1;for(const _0x52360b of _0x1ca4a3){const _0x75655e=_0x52360b['item'];_0x508e1a=_0x508e1a||_0x2d1af8['isContent'](_0x75655e);const _0x3dd1fe=_0x142441['mapper']['toViewElement'](_0x75655e);if(_0x3dd1fe&&_0x3dd1fe['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x52360b['type']&&(_0x2d1af8['isBlock'](_0x75655e)&&!_0x2d1af8['isLimit'](_0x75655e)&&(_0x75655e['nextSibling']||_0x51f585['isAtEnd']?_0x79a27a&&_0x79a27a['parent']==_0x75655e||(_0x79a27a=_0x75655e,_0x333b31(_0x52360b['previousPosition']),_0xdaaf63=!0x0):_0x49c649=_0x49c649||_0x52360b['previousPosition']));}function _0x333b31(_0x4f760d){const {authorId:_0x4bff24}=_0x194357['_splitMarkerName'](_0x54c9cd['markerName']),_0x16fd9c=_0x142441['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2909f6,'data-author-id':_0x4bff24}),_0x46380e=_0x142441['mapper']['toViewPosition'](_0x4f760d);_0x34491a&&_0x194357['activeMarkers']['includes'](_0x54c9cd['markerName'])&&_0x142441['writer']['addClass']('ck-suggestion-marker--active',_0x16fd9c),_0x142441['writer']['insert'](_0x46380e,_0x16fd9c),_0x142441['mapper']['bindElementToMarker'](_0x16fd9c,_0x54c9cd['markerName']);}_0x508e1a||_0xdaaf63||!_0x49c649||_0x333b31(_0x49c649);};}class z extends _0x26e18a{static get['requires'](){return[_0x4ffc6a];}['init'](){const _0x2f2224=this['editor'],_0x466e3e=_0x2f2224['plugins']['get']('TrackChangesEditing');_0x466e3e['enableCommand']('delete');const _0x5b0d70=_0x2f2224['commands']['get']('deleteForward');_0x466e3e['enableCommand']('deleteForward',(_0x57a993,_0x50fa5f={})=>{const _0x45afb1=_0x2f2224['model']['createSelection'](_0x2f2224['model']['document']['selection']);_0x45afb1['isCollapsed']&&_0x2f2224['model']['modifySelection'](_0x45afb1,{'direction':'forward','unit':_0x50fa5f['unit']});const _0x2b2f2a=_0x45afb1['getFirstRange'](),_0x2cc92d=_0x5eb1fc['fromRange'](_0x2b2f2a);let _0x2c7d33;_0x57a993(_0x50fa5f),_0x2c7d33='$graveyard'==_0x2cc92d['root']['rootName']?_0x2f2224['model']['createRange'](_0x2b2f2a['start']):_0x2f2224['model']['createRange'](_0x2cc92d['start'],_0x2cc92d['end']),_0x2cc92d['detach'](),_0x2f2224['model']['enqueueChange'](_0x5b0d70['buffer']['batch'],_0x361e06=>{_0x5b0d70['buffer']['lock'](),_0x361e06['setSelection'](_0x361e06['createRange'](_0x2c7d33['end'])),_0x5b0d70['buffer']['unlock']();});}),_0x2f2224['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x2f2224,'merge'),{'priority':'high'}),_0x2f2224['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2d7bb6,_0x28afff,_0x1af8fd)=>{_0x1af8fd['options']['showSuggestionHighlights']&&Fe(_0x2f2224,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2d7bb6,_0x28afff,_0x1af8fd);},{'priority':'high'}),_0x2f2224['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5774ca,_0x1f1cbe,_0x1e0925)=>{const _0xb75a56=_0x1e0925['mapper']['markerNameToElements'](_0x1f1cbe['markerName']);if(_0xb75a56){for(const _0x367945 of _0xb75a56)_0x367945['is']('uiElement')&&(_0x1e0925['mapper']['unbindElementFromMarkerName'](_0x367945,_0x1f1cbe['markerName']),_0x1e0925['writer']['remove'](_0x367945));}},{'priority':'high'});}}class W extends _0x26e18a{['afterInit'](){const _0x357059=this['editor'];if(!_0x357059['plugins']['has']('ListEditing'))return;const _0x5f305b=_0x357059['locale'],_0x24b01d=_0x357059['plugins']['get']('TrackChangesEditing'),_0x281ae6=_0x357059['plugins']['has']('TodoListEditing'),_0x2d7bf7=!!_0x357059['config']['get']('list.multiBlock');function _0x33db00(_0x1c2587){return{'type':'format','content':''+c(_0x5f305b,'*Set\x20format:*\x20%0',_0x1c2587)};}function _0x1894bc(_0x227fab){return{'type':'format','content':''+c(_0x5f305b,'*Remove\x20format:*\x20%0',_0x227fab)};}_0x24b01d['enableDefaultAttributesIntegration']('numberedList'),_0x24b01d['enableDefaultAttributesIntegration']('bulletedList'),_0x24b01d['enableDefaultAttributesIntegration']('customNumberedList'),_0x24b01d['enableDefaultAttributesIntegration']('customBulletedList'),_0x24b01d['enableDefaultAttributesIntegration']('indentList'),_0x24b01d['enableDefaultAttributesIntegration']('outdentList'),_0x24b01d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x24b01d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x24b01d['registerBlockAttribute']('listItemId'),_0x24b01d['registerBlockAttribute']('listType'),_0x24b01d['registerBlockAttribute']('listIndent'),_0x2d7bf7&&(_0x24b01d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x24b01d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x281ae6&&(_0x24b01d['enableDefaultAttributesIntegration']('todoList'),_0x24b01d['enableDefaultAttributesIntegration']('checkTodoList'),_0x24b01d['registerBlockAttribute']('todoListChecked'),_0x24b01d['descriptionFactory']['registerDescriptionCallback'](_0x329d6e=>{const {data:_0x49f0cc}=_0x329d6e;if(_0x49f0cc&&'todoListChecked'==_0x49f0cc['key'])return{'type':'format','content':_0x49f0cc['newValue']?c(_0x5f305b,'*Check\x20item*'):c(_0x5f305b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5ac3d9=>{if(_0x5ac3d9['batch']['isUndo'])return!0x1;let _0x1b600d=!0x1;const _0x3be384=_0x24b01d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x39800f=>'todoListChecked'===_0x24b01d['_getAttributeKey'](_0x39800f));for(const _0x176fbb of _0x3be384){'todo'!=_0x176fbb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x24b01d['_findSuggestions'](_0x176fbb['getFirstRange'](),'attribute')['find'](_0xb2d5d4=>'listType'===_0x24b01d['_getAttributeKey'](_0xb2d5d4['suggestion']))||(_0x5ac3d9['removeMarker'](_0x176fbb['getFirstMarker']()),_0x1b600d=!0x0));}return _0x1b600d;})),_0x24b01d['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x5f305b,'FORMAT_INDENT'));const _0x5f3b5f={'type':'format','content':''};_0x24b01d['descriptionFactory']['registerDescriptionCallback'](_0x4c9964=>{const {data:_0x51b0b1}=_0x4c9964;if(!_0x51b0b1||'listType'!=_0x51b0b1['key'])return;let _0x17dac9=_0x4c9964['head'];for(;_0x17dac9;){if(_0x17dac9['data']&&(('listStyle'==_0x17dac9['data']['key']||'listMarkerStyle'==_0x17dac9['data']['key'])&&(_0x17dac9['data']['newValue']&&'default'!=_0x17dac9['data']['newValue']||'default'!=_0x17dac9['data']['oldValue']&&!_0x51b0b1['newValue'])||!_0x2d7bf7&&_0x17dac9['data']['key']==u))return _0x5f3b5f;_0x17dac9=_0x17dac9['next'];}if(null==_0x51b0b1['newValue'])switch(_0x51b0b1['oldValue']){case'bulleted':return _0x1894bc(c(_0x5f305b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1894bc(c(_0x5f305b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1894bc(c(_0x5f305b,'ELEMENT_TODO_LIST'));}switch(_0x51b0b1['newValue']){case'bulleted':return _0x33db00(c(_0x5f305b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33db00(c(_0x5f305b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33db00(c(_0x5f305b,'ELEMENT_TODO_LIST'));}}),_0x24b01d['descriptionFactory']['registerDescriptionCallback'](_0x2217c1=>{const {data:_0x1cf39e}=_0x2217c1;if(_0x1cf39e&&'listIndent'==_0x1cf39e['key'])return null==_0x1cf39e['newValue']||null==_0x1cf39e['oldValue']&&0x0==_0x1cf39e['newValue']?_0x5f3b5f:void 0x0;}),_0x24b01d['descriptionFactory']['registerDescriptionCallback'](_0x409131=>{if('attribute'!=_0x409131['type'])return;const {data:_0x3f72b9}=_0x409131;if(!_0x3f72b9||'listItemId'!=_0x3f72b9['key'])return;const _0x443a5f=Te(_0x409131);return'newValue'==_0x443a5f?{'type':'format','content':c(_0x5f305b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x443a5f?{'type':'format','content':c(_0x5f305b,'*Split:*\x20list\x20item')}:_0x5f3b5f;}),_0x357059['model']['document']['registerPostFixer'](_0x177548=>this['listItemIdFixer'](_0x177548)),_0x357059['model']['document']['registerPostFixer'](_0x441be1=>this['noTrackChangesFixer'](_0x441be1)),_0x357059['model']['document']['on']('change:data',(_0x43b75a,_0x262f04)=>{if(_0x262f04['isUndo']||!_0x262f04['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x47cacc){if(_0x47cacc['batch']['isUndo']||!_0x47cacc['batch']['isLocal'])return!0x1;let _0x4d788c=!0x1;const _0x31db24=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x288ae9=>_0x288ae9['data']&&'listItemId'==_0x288ae9['data']['key'])['filter'](_0x130619=>_0x130619['data']['newValue']&&_0x130619['data']['oldValue']);for(const _0x4d58ae of _0x31db24)Te(_0x4d58ae)||(_0x47cacc['removeMarker'](_0x4d58ae['getFirstMarker']()),_0x4d788c=!0x0);return _0x4d788c;}['noTrackChangesFixer'](_0x7c4dad){if(_0x7c4dad['batch']['isUndo']||!_0x7c4dad['batch']['isLocal'])return!0x1;const _0x26a14c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x26a14c['trackChangesCommand']['value'])return!0x1;let _0x8f436c=!0x1;const _0x525cce=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x546b5d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xc8fc59=>'attribute'==_0xc8fc59['type'])['filter'](_0x141c40=>_0x525cce['includes'](_0x141c40['attributeKey']));if(0x0==_0x546b5d['length'])return _0x8f436c;for(const _0x52e014 of _0x546b5d){const _0x2e356e=_0x26a14c['_findSuggestions'](_0x52e014['range'],'attribute')['filter'](_0x277337=>!_0x277337['meta']['isNextTo'])['map'](_0x384f88=>_0x384f88['suggestion'])['filter'](_0x33f859=>{const _0x2d222b=_0x26a14c['_getAttributeKey'](_0x33f859);return _0x525cce['includes'](_0x2d222b);});if(_0x2e356e['length']){for(const _0x309d12 of _0x2e356e)_0x7c4dad['removeMarker'](_0x309d12['getFirstMarker']());_0x8f436c=!0x0;}}return _0x8f436c;}['assureChains'](){const _0x206ad6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d4653=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x49c933;const _0x2525e5=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x56e9f6=>{if(_0x56e9f6['data']['oldRange']||!_0x56e9f6['data']['newRange'])return null;if(!_0x56e9f6['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x6daa0a}=_0x206ad6['_splitMarkerName'](_0x56e9f6['name']);if(!_0x206ad6['hasSuggestion'](_0x6daa0a))return null;const _0x104320=_0x206ad6['getSuggestion'](_0x6daa0a);return _0x1d4653['includes'](_0x104320['data']['key']);})['map'](_0xf6fa01=>{const {id:_0x163101}=_0x206ad6['_splitMarkerName'](_0xf6fa01['name']),_0x4986db=_0x206ad6['getSuggestion'](_0x163101);return _0x49c933=_0x4986db['attributes']['groupId'],_0x4986db['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2525e5['size'])return;const _0x13547f=_0x206ad6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4775fe=>'attribute'==_0x4775fe['type']&&_0x4775fe['data']&&_0x1d4653['includes'](_0x4775fe['data']['key'])&&_0x4775fe['attributes']['groupId']!=_0x49c933)['map'](_0x481473=>({'listItem':_0x481473['getFirstRange']()['start']['nodeAfter'],'groupId':_0x481473['attributes']['groupId']})),_0x3936bc=new Set();for(const {groupId:_0x355e23,listItem:_0x3eaa6a}of _0x13547f)_0x2525e5['has'](_0x3eaa6a)&&_0x3936bc['add'](_0x355e23);for(const _0xbdd3b7 of _0x206ad6['getSuggestions']())_0x3936bc['has'](_0xbdd3b7['attributes']['groupId'])&&_0xbdd3b7['setAttribute']('groupId',_0x49c933);}['_supportLegacySuggestions'](){const _0xd2fcc3=this['editor'],_0x478c9f=_0xd2fcc3['locale'],_0x264a4b=_0xd2fcc3['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x264a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x440019,_0x34bd98){const _0x2ade0e=[];for(let _0x80fb8d of _0x440019)_0x80fb8d['start']['nodeAfter']===_0x80fb8d['end']['parent']&&(_0x80fb8d=_0xd2fcc3['model']['createRange'](_0xd2fcc3['model']['createPositionAt'](_0x80fb8d['start']['nodeAfter'],0x0))),_0x2ade0e['push'](_0x80fb8d);_0xd2fcc3['model']['change'](_0x1faf96=>{const _0xea6af9=_0xd2fcc3['model']['document']['selection'],_0x1eb4ad=Array['from'](_0xea6af9['getRanges']())['map'](_0x4d3819=>_0x5eb1fc['fromRange'](_0x4d3819));_0x1faf96['setSelection'](_0x2ade0e),_0xd2fcc3['commands']['get'](_0x34bd98['commandName'])['refresh'](),_0x34bd98['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xd2fcc3['execute'](_0x34bd98['commandName'],..._0x34bd98['commandParams']),_0x1faf96['setSelection'](_0x1eb4ad);for(const _0x4cd48f of _0x1eb4ad)_0x4cd48f['detach']();});}),_0x264a4b['descriptionFactory']['registerElementLabel'](function(_0x1dd492){const _0x332f09=!_0xd2fcc3['model']['schema']['isObject'](_0x1dd492),_0x3987b4=_0x1dd492['previousSibling'],_0x1f41a4=_0x1dd492['nextSibling'],_0x131c8e=_0x1dd492['getAttribute']('listItemId'),_0x4475d8=!_0x3987b4||_0x3987b4['getAttribute']('listItemId')!==_0x131c8e,_0x5e112f=!_0x1f41a4||_0x1f41a4['getAttribute']('listItemId')!==_0x131c8e;return _0x332f09&&Boolean(_0x131c8e)&&_0x4475d8&&_0x5e112f;},_0x23a2d1=>c(_0x478c9f,'ELEMENT_LIST_ITEM',_0x23a2d1));}['_registerLegacyDescription'](){const _0x4b3a9d=this['editor'],_0x2fcc5d=_0x4b3a9d['locale'];function _0x18b4f8(_0x3ea2bb){const _0x5e97a1=_0x4b3a9d['commands']['get']('bulletedList')['value'],_0x22e70e=_0x4b3a9d['commands']['get']('numberedList')['value'];return'numberedList'===_0x3ea2bb?_0x5e97a1:_0x22e70e;}_0x4b3a9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x325696){if('formatBlock'!=_0x325696['type'])return;const {data:_0x5b3404}=_0x325696;if(!_0x5b3404)return;let _0x113916,_0xd8fc39,_0x43e7e7,_0x5a03eb;switch(_0x5b3404['commandName']){case'bulletedList':_0x43e7e7=_0x5b3404['commandParams'][0x0]['forceValue'],_0x5a03eb=_0x18b4f8(_0x5b3404['commandName']),_0x113916=_0x43e7e7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5a03eb&&_0x4b3a9d['config']['get']('list.multiBlock')||(_0x113916='*Change\x20to:*\x20%0'),_0xd8fc39={'type':'format','content':c(_0x2fcc5d,_0x113916,c(_0x2fcc5d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x43e7e7=_0x5b3404['commandParams'][0x0]['forceValue'],_0x5a03eb=_0x18b4f8(_0x5b3404['commandName']),_0x113916=_0x43e7e7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5a03eb&&_0x4b3a9d['config']['get']('list.multiBlock')||(_0x113916='*Change\x20to:*\x20%0'),_0xd8fc39={'type':'format','content':c(_0x2fcc5d,_0x113916,c(_0x2fcc5d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x113916='*Indent:*\x20%0',_0xd8fc39={'type':'format','content':c(_0x2fcc5d,_0x113916,c(_0x2fcc5d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x113916=function(_0x2a814b){const _0x49eaa8=_0x2a814b['getFirstRange']();let _0x5b4d27=_0x49eaa8['start']['nodeAfter'];for(;_0x5b4d27&&_0x49eaa8['containsItem'](_0x5b4d27);){if(_0x5b4d27['getAttribute']('listIndent')>0x0)return!0x1;_0x5b4d27=_0x5b4d27['nextSibling'];}return!0x0;}(_0x325696)?c(_0x2fcc5d,'*Format:*\x20remove\x20from\x20%0',c(_0x2fcc5d,function(_0x4f90b2){return'ELEMENT_'+_0x4f90b2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x325696))):c(_0x2fcc5d,'*Outdent:*\x20%0',c(_0x2fcc5d,'ELEMENT_LIST_ITEM')),_0xd8fc39={'type':'format','content':_0x113916};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5b3404['multipleBlocks']&&(_0x113916='*Merge:*\x20%0',_0xd8fc39={'type':'deletion','content':c(_0x2fcc5d,_0x113916,c(_0x2fcc5d,'ELEMENT_LIST_ITEM'))});}return _0xd8fc39;});}}function Te(_0x5e4940){let _0x47b81f=_0x5e4940['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x47b81f;){const _0xb95ee8=_0x47b81f['getAttribute']('listItemId');if(!_0xb95ee8)return!0x1;if(_0xb95ee8==_0x5e4940['data']['newValue'])return'newValue';if(_0xb95ee8==_0x5e4940['data']['oldValue'])return'oldValue';_0x47b81f=_0x47b81f['previousSibling'];}return!0x1;}class Se extends _0x26e18a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x59d893=this['editor']['config']['get']('list.properties'),_0x4c29b1=this['editor']['plugins']['get']('TrackChangesEditing');_0x59d893['styles']&&(_0x4c29b1['enableDefaultAttributesIntegration']('listStyle'),_0x4c29b1['registerBlockAttribute']('listStyle')),_0x59d893['reversed']&&(_0x4c29b1['enableDefaultAttributesIntegration']('listReversed'),_0x4c29b1['registerBlockAttribute']('listReversed')),_0x59d893['startIndex']&&(_0x4c29b1['enableDefaultAttributesIntegration']('listStart'),_0x4c29b1['registerBlockAttribute']('listStart'));const _0xcff41f={'type':'format','content':''};_0x4c29b1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3edf2b=this['editor']['locale'];_0x4c29b1['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3edf2b,'FORMAT_LIST_REVERSED')),_0x4c29b1['descriptionFactory']['registerDescriptionCallback'](_0x10cb45=>{const {data:_0xd4394f}=_0x10cb45;if(_0xd4394f&&'listReversed'==_0xd4394f['key'])return null==_0xd4394f['newValue']||0x0==_0xd4394f['newValue']&&null==_0xd4394f['oldValue']?_0xcff41f:void 0x0;}),_0x4c29b1['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3edf2b,'FORMAT_LIST_START')),_0x4c29b1['descriptionFactory']['registerDescriptionCallback'](_0x171a07=>{const {data:_0x2b0100}=_0x171a07;if(_0x2b0100&&'listStart'==_0x2b0100['key'])return null==_0x2b0100['newValue']||0x1==_0x2b0100['newValue']&&null==_0x2b0100['oldValue']?_0xcff41f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4e9312=>{if(_0x4e9312['batch']['isUndo'])return!0x1;let _0x1f0212=!0x1;const _0x1aaa97=_0x4c29b1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x132593=>{const _0x4b6015=_0x4c29b1['_getAttributeKey'](_0x132593);return'listStart'==_0x4b6015||'listReversed'==_0x4b6015;});for(const _0x5e047d of _0x1aaa97){const _0x47c195=_0x5e047d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x47c195||'customNumbered'==_0x47c195)continue;_0x4c29b1['_findSuggestions'](_0x5e047d['getFirstRange'](),'attribute')['find'](_0x205fc5=>'listType'==_0x4c29b1['_getAttributeKey'](_0x205fc5['suggestion']))||(_0x4e9312['removeMarker'](_0x5e047d['getFirstMarker']()),_0x1f0212=!0x0);}return _0x1f0212;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xe8cfe){const _0x5936e4=this['editor']['locale'],{data:_0x43db25}=_0xe8cfe,_0x5c62ce={'type':'format','content':''};if(!_0x43db25||'listStyle'!=_0x43db25['key'])return;if(!_0x43db25['oldValue'])return'default'==_0x43db25['newValue']?_0x5c62ce:{'type':'format','content':''+c(_0x5936e4,'*Set\x20format:*\x20%0',c(_0x5936e4,this['_getTranslationKeyForListStyle'](_0x43db25['newValue'])))};if(!_0x43db25['newValue']){if('default'==_0x43db25['oldValue'])return _0x5c62ce;let _0x541331=_0xe8cfe['head'];for(;_0x541331;){if(_0x541331['data']&&'listType'==_0x541331['data']['key']&&_0x541331['data']['newValue'])return _0x5c62ce;_0x541331=_0x541331['next'];}return{'type':'format','content':''+c(_0x5936e4,'*Remove\x20format:*\x20%0',c(_0x5936e4,this['_getTranslationKeyForListStyle'](_0x43db25['oldValue'])))};}if('default'!=_0x43db25['newValue'])return{'type':'format','content':''+c(_0x5936e4,'*Set\x20format:*\x20%0',c(_0x5936e4,this['_getTranslationKeyForListStyle'](_0x43db25['newValue'])))};let _0xd75752=_0xe8cfe['head'];for(;_0xd75752;){if(_0xd75752['data']&&'listType'==_0xd75752['data']['key']&&_0xd75752['data']['newValue']&&_0xd75752['data']['oldValue'])return _0x5c62ce;_0xd75752=_0xd75752['next'];}return{'type':'format','content':c(_0x5936e4,'*Set\x20format:*\x20%0',c(_0x5936e4,'ELEMENT_'+_0xe8cfe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4f3e27=this['editor'],_0xecf3f4=_0x4f3e27['locale'];_0x4f3e27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14e0bb=>{if('formatBlock'!=_0x14e0bb['type'])return;const {data:_0x315228}=_0x14e0bb;if(!_0x315228)return;let _0x17ada9,_0x48685c;switch(_0x315228['commandName']){case'listStyle':_0x17ada9='*Change\x20to:*\x20%0',_0x48685c={'type':'format','content':c(_0xecf3f4,_0x17ada9,c(_0xecf3f4,this['_getTranslationKeyForListStyle'](_0x315228['commandParams'][0x0]['type'])))};break;case'listReversed':_0x17ada9=_0x315228['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x48685c={'type':'format','content':c(_0xecf3f4,_0x17ada9)};break;case'listStart':_0x17ada9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x48685c={'type':'format','content':c(_0xecf3f4,_0x17ada9,_0x315228['commandParams'][0x0]['startIndex'])};}return _0x48685c;});}['_getTranslationKeyForListStyle'](_0x1f5dc4){return'ELEMENT_'+function(_0x3f691b){if(_e['includes'](_0x3f691b))return'bulleted';if(Re['includes'](_0x3f691b))return'numbered';return null;}(_0x1f5dc4)['toUpperCase']()+'_LIST_'+_0x1f5dc4['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x26e18a{['afterInit'](){const _0x43704d=this['editor'];_0x43704d['commands']['get']('emoji')&&_0x43704d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x26e18a{static get['requires'](){return[_0x5ec421];}['init'](){const _0x47c0e2=this['editor'],_0x5cc5ca=_0x47c0e2['plugins']['get']('TrackChangesEditing'),_0x54fbb6=_0x47c0e2['commands']['get']('enter');_0x5cc5ca['enableCommand']('enter',()=>{_0x47c0e2['model']['change'](_0x434fe9=>{const _0x6fa5ac=_0x47c0e2['model']['document']['selection'],_0x44ebb7=_0x6fa5ac['getFirstPosition'](),_0x1af16e=_0x5eb1fc['fromRange'](_0x6fa5ac['getFirstRange']());if(_0x54fbb6['enterBlock'](_0x434fe9)){const _0x172edc=_0x47c0e2['model']['createPositionAt'](_0x44ebb7['parent']['nextSibling'],0x0),_0xe5f44f=_0x434fe9['createRange'](_0x44ebb7,_0x172edc);_0x5cc5ca['markInsertion'](_0xe5f44f);}else _0x434fe9['setSelection'](_0x434fe9['createRange'](_0x1af16e['end']));_0x1af16e['detach'](),_0x54fbb6['fire']('afterExecute',{'writer':_0x434fe9});});}),_0x47c0e2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x47c0e2,'split'),{'priority':'high'}),_0x47c0e2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xa43e94,_0x184479,_0x563697)=>{const _0x3f288d=_0x563697['mapper']['markerNameToElements'](_0x184479['markerName']);if(_0x3f288d){for(const _0x110254 of _0x3f288d)_0x110254['hasClass']('ck-suggestion-marker-split')&&(_0x563697['mapper']['unbindElementFromMarkerName'](_0x110254,_0x184479['markerName']),_0x563697['writer']['remove'](_0x110254));}},{'priority':'high'}),_0x47c0e2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b321b,_0x5428b2,_0x26bc10)=>{_0x26bc10['options']['showSuggestionHighlights']&&Fe(_0x47c0e2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2b321b,_0x5428b2,_0x26bc10);},{'priority':'high'});}}class Z extends _0x26e18a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5d203a=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d203a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5d203a['enableCommand']('findNext'),_0x5d203a['enableCommand']('findPrevious'),_0x5d203a['enableCommand']('replace'),_0x5d203a['enableCommand']('replaceAll');}['handleFindCommand'](_0x54f8b8,_0x1f4971,_0x2cf539={}){const _0x275369=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x54f8b8(_0x135f7a=>{let _0x2b3de1=('string'==typeof _0x1f4971?_0x275369['findByTextCallback'](_0x1f4971,_0x2cf539):_0x1f4971)(_0x135f7a);Array['isArray'](_0x2b3de1)&&(_0x2b3de1={'results':_0x2b3de1,'searchText':'string'==typeof _0x1f4971?_0x1f4971:''});const _0x2b8a29=_0x2b3de1['results']['filter'](_0x9d02f1=>!0x1===this['_isInDeletionRange'](_0x9d02f1,_0x135f7a['item']));return{..._0x2b3de1,'results':_0x2b8a29};},_0x2cf539);}['_isInDeletionRange'](_0x1d6af3,_0x1aebb0){const _0x19459e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1aebb0,_0x1d6af3['start']),this['editor']['model']['createPositionAt'](_0x1aebb0,_0x1d6af3['end']));for(const _0x3d33cf of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x19459e['getIntersection'](_0x3d33cf['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 _0x26e18a{['afterInit'](){const _0x228fb7=this['editor']['locale'],_0x58ec0e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x14b5a9,commandName:_0x58b0f2}of ro)this['editor']['plugins']['has'](_0x14b5a9)&&(_0x58ec0e['enableDefaultAttributesIntegration'](_0x58b0f2),_0x58ec0e['registerInlineAttribute'](_0x58b0f2));_0x58ec0e['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x228fb7,'FORMAT_FONT_SIZE')),_0x58ec0e['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x228fb7,'FORMAT_FONT_FAMILY')),_0x58ec0e['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x228fb7,'FORMAT_FONT_COLOR')),_0x58ec0e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x228fb7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23b2e1=this['editor'],_0x574755=_0x23b2e1['locale'];_0x23b2e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x520e92=>{const _0x177754=_0x574755['t'];if('formatInline'!=_0x520e92['type'])return;const {data:_0x1f21f1}=_0x520e92;if(null!=_0x1f21f1){if('fontSize'==_0x1f21f1['commandName']){const _0x3c74c3=_0x1f21f1['commandParams'][0x0]['value'];if(_0x3c74c3){const _0x397d67=_0x177754(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x39f362=>_0x39f362['model']==_0x3c74c3)['title'])['toLowerCase']();return{'type':'format','content':c(_0x574755,'*Set\x20font\x20size:*\x20%0',_0x397d67)};}return{'type':'format','content':c(_0x574755,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1f21f1['commandName']){const _0x1df600=_0x1f21f1['commandParams'][0x0]['value'];return _0x1df600?{'type':'format','content':c(_0x574755,'*Set\x20font\x20family:*\x20%0',_0x1df600)}:{'type':'format','content':c(_0x574755,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1f21f1['commandName']){const _0x5520c1=_0x1f21f1['commandParams'][0x0]['value'];if(_0x5520c1){const _0x453f70=_0xe9d67d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x180964=>_0x180964['model']==_0x5520c1);let _0xb7cca0=_0x5520c1,_0x2b7812='';return _0x453f70&&(_0xb7cca0=_0x453f70['label'],_0x2b7812=_0x177754(_0xb7cca0)['toLowerCase']()),{'type':'format','content':c(_0x574755,'*Set\x20font\x20color:*\x20%0',_0x2b7812)['trim'](),'color':{'value':_0x5520c1,'title':_0x2b7812||_0xb7cca0}};}return{'type':'format','content':c(_0x574755,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1f21f1['commandName']){const _0x3917b0=_0x1f21f1['commandParams'][0x0]['value'];if(_0x3917b0){const _0x2c4cdf=_0xe9d67d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x25ab3e=>_0x25ab3e['model']==_0x3917b0);let _0x55dd57=_0x3917b0,_0x6049c6='';return _0x2c4cdf&&(_0x55dd57=_0x2c4cdf['label'],_0x6049c6=_0x177754(_0x55dd57)['toLowerCase']()),{'type':'format','content':c(_0x574755,'*Set\x20font\x20background\x20color:*\x20%0',_0x6049c6)['trim'](),'color':{'value':_0x3917b0,'title':_0x6049c6||_0x55dd57}};}return{'type':'format','content':c(_0x574755,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x26e18a{['afterInit'](){const _0x4cfb83=this['editor'],_0x310a6d=_0x4cfb83['plugins']['get']('TrackChangesEditing'),_0x54c9ca=_0x4cfb83['commands']['get']('copyFormat'),_0x108b2c=_0x4cfb83['commands']['get']('pasteFormat');_0x54c9ca&&_0x108b2c&&(_0x310a6d['enableDefaultAttributesIntegration']('pasteFormat'),_0x310a6d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x37a693=this['editor'],_0x2e288f=_0x37a693['locale'];_0x37a693['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d209b=>{if('formatBlock'!=_0x5d209b['type']&&'formatInline'!=_0x5d209b['type'])return;const {data:_0xd23826}=_0x5d209b;if(_0xd23826&&'pasteFormat'===_0xd23826['commandName']){const _0x49e03d=[],_0x451ef7=_0xd23826['commandParams'][0x0];for(const [_0x110945,_0xddea71]of Object['entries'](_0x451ef7))_0x49e03d['push'](so(_0x37a693,_0x110945,_0xddea71));return _0x49e03d['length']?{'type':'format','content':c(_0x2e288f,'*Set\x20format\x20to:*\x20%0',_0x49e03d['join'](',\x20'))}:{'type':'format','content':c(_0x2e288f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1692d4,_0x339d18,_0x7f8fa5){const _0x24ed62=_0x1692d4['locale']['t'],_0x29609a=_0x339d18['split'](/(?=[A-Z])/)['join']('\x20'),_0x413073=_0x24ed62(_0x29609a['charAt'](0x0)['toUpperCase']()+_0x29609a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x7f8fa5)return _0x413073;if('fontColor'===_0x339d18||'fontBackgroundColor'===_0x339d18){const _0x2a2ac5=_0xe9d67d(_0x1692d4['config']['get']('fontColor.colors'))['find'](_0x1094ec=>_0x1094ec['model']==_0x7f8fa5);return _0x413073+'\x20('+(_0x2a2ac5?_0x24ed62(_0x2a2ac5['label'])['toLowerCase']():_0x7f8fa5)+')';}if('fontSize'===_0x339d18&&isNaN(parseFloat(_0x7f8fa5))){const _0xe475dd=_0x1692d4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1692d4['config']['get']('fontSize.options'))['find'](_0x2b0d16=>_0x2b0d16['model']==_0x7f8fa5);return _0x413073+'\x20('+(_0xe475dd?_0x24ed62(_0xe475dd['title'])['toLowerCase']():_0x7f8fa5)+')';}return _0x413073+'\x20('+_0x7f8fa5+')';}class nt extends _0x26e18a{['_headingOptions'];['afterInit'](){const _0x21d2d5=this['editor'];if(!_0x21d2d5['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x21d2d5['config']['get']('heading.options');const _0x589d80=_0x21d2d5['locale'],_0x399635=_0x21d2d5['plugins']['get']('TrackChangesEditing');_0x399635['enableDefaultAttributesIntegration']('heading');for(const _0x3780b4 of this['_headingOptions'])'paragraph'!=_0x3780b4['model']&&_0x399635['descriptionFactory']['registerElementLabel'](_0x3780b4['model'],_0xb3bccd=>{const _0x327f46=this['_getHeadingLevel'](_0x3780b4['model']);return null!==_0x327f46?_0x53ae99(_0xb3bccd,_0x327f46):_0x2942a5(_0xb3bccd,_0x3780b4['title']);});function _0x53ae99(_0xd48974,_0x446b10){return c(_0x589d80,'ELEMENT_HEADING',[_0xd48974,_0x446b10]);}function _0x2942a5(_0x792623,_0x90095c){return c(_0x589d80,'ELEMENT_HEADING_CUSTOM',[_0x792623,_0x90095c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x530279=this['editor'],_0x5b80b7=_0x530279['locale'];function _0x5d5fcb(_0x5637e8,_0x9aba0f){return c(_0x5b80b7,'ELEMENT_HEADING_CUSTOM',[_0x5637e8,_0x9aba0f]);}_0x530279['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x97a25e=>{if('formatBlock'!=_0x97a25e['type'])return;const {data:_0x2de550}=_0x97a25e;if(_0x2de550&&'heading'==_0x2de550['commandName']){const _0xac3a01=_0x2de550['commandParams'][0x0]['value'],_0x3662c0=this['_getHeadingLevel'](_0xac3a01);if(null!==_0x3662c0)return{'type':'format','content':c(_0x5b80b7,'*Change\x20to:*\x20%0',(_0x551949=0x1,_0x3eef27=_0x3662c0,c(_0x5b80b7,'ELEMENT_HEADING',[_0x551949,_0x3eef27])))};const _0x5c0853=this['_headingOptions']['find'](_0x1cdb48=>_0x1cdb48['model']===_0xac3a01)['title'];return{'type':'format','content':c(_0x5b80b7,'*Change\x20to:*\x20%0',_0x5d5fcb(0x1,_0x5c0853))};}var _0x551949,_0x3eef27;});}['_getHeadingLevel'](_0x3ac50d){const _0x305024=_0x3ac50d['match'](/^heading(\d+)/);if(_0x305024)return _0x305024[0x1];const _0x5ced7d=this['_headingOptions']?.['find'](_0x1f0145=>_0x1f0145['model']==_0x3ac50d);if(_0x5ced7d&&_0x5ced7d['view']){const _0x5c74e2=_0x5ced7d['view'],_0x412b3d=(_0x5c74e2['name']??_0x5c74e2)['match'](/^h(\d+)/);if(_0x412b3d)return _0x412b3d[0x1];}return null;}}class it extends _0x26e18a{['afterInit'](){const _0x400769=this['editor'];if(!_0x400769['plugins']['has']('HighlightEditing'))return;const _0x13e8a6=_0x400769['plugins']['get']('TrackChangesEditing'),_0x2724a8=_0x400769['locale'];_0x13e8a6['enableDefaultAttributesIntegration']('highlight'),_0x13e8a6['registerInlineAttribute']('highlight'),_0x13e8a6['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x2724a8,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x481fe7=this['editor'],_0x1d4b7f=_0x481fe7['locale'];_0x481fe7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fd6c6=>{if('formatInline'!=_0x4fd6c6['type'])return;const {data:_0x57f89e}=_0x4fd6c6;if(_0x57f89e&&'highlight'==_0x57f89e['commandName']){const _0x71f3e5=_0x1d4b7f['t'],_0x1bfced=_0x57f89e['commandParams'][0x0]['value'];if(_0x1bfced){const _0x3252ef=_0x481fe7['config']['get']('highlight.options')['find'](_0x1a7173=>_0x1a7173['model']==_0x1bfced),_0x2a76a4=_0x71f3e5(_0x3252ef['title'])['toLowerCase']();return{'type':'format','content':c(_0x1d4b7f,'*Set\x20highlight:*\x20%0',_0x2a76a4),'color':{'value':_0x3252ef['color'],'title':_0x3252ef['title']}};}return{'type':'format','content':c(_0x1d4b7f,'*Remove\x20highlight*',c(_0x1d4b7f,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x26e18a{['afterInit'](){const _0x6a389f=this['editor'];if(!_0x6a389f['plugins']['has']('HorizontalLineEditing'))return;_0x6a389f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x28a098=_0x6a389f['plugins']['get']('TrackChangesEditing'),_0x210eb4=_0x6a389f['locale'];_0x28a098['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5e1f30=>c(_0x210eb4,'ELEMENT_HORIZONTAL_LINE',_0x5e1f30)),_0x6a389f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xb476bf,{writer:_0x3a8eac,options:_0x5e89dd})=>{if(!_0x5e89dd['showSuggestionHighlights'])return null;const _0x43d47f=_0x3a8eac['createContainerElement']('div'),_0x583206=_0x3a8eac['createEmptyElement']('hr');return _0x3a8eac['addClass']('ck-horizontal-line',_0x43d47f),_0x3a8eac['insert'](_0x3a8eac['createPositionAt'](_0x43d47f,0x0),_0x583206),_0x43d47f;},'converterPriority':'high'});}}class ot extends _0x26e18a{['afterInit'](){const _0x5835f6=this['editor'];if(!_0x5835f6['plugins']['has']('HtmlEmbed'))return;const _0xf24083=_0x5835f6['plugins']['get']('TrackChangesEditing'),_0x446548=_0x5835f6['locale'];_0xf24083['descriptionFactory']['registerElementLabel']('rawHtml',_0xb193c3=>c(_0x446548,'ELEMENT_HTML_EMBED',_0xb193c3)),_0xf24083['enableDefaultAttributesIntegration']('htmlEmbed'),_0xf24083['registerBlockAttribute']('value'),_0xf24083['descriptionFactory']['registerDescriptionCallback'](_0x19ebef=>{if('attribute'!=_0x19ebef['type'])return;const {data:_0x48e8c2}=_0x19ebef;if(_0x48e8c2&&'value'==_0x48e8c2['key']&&_0x19ebef['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x8e1d3f=c(_0x446548,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x446548,'*Change\x20%0\x20content*',_0x8e1d3f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c5834=this['editor'],_0x3edc79=_0x2c5834['locale'];_0x2c5834['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x215fe7=>{if('formatBlock'!=_0x215fe7['type'])return;const {data:_0x57a159}=_0x215fe7;if(_0x57a159&&'htmlEmbed'==_0x57a159['commandName']){const _0x442722=c(_0x3edc79,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x3edc79,'*Change\x20%0\x20content*',_0x442722)};}});}}class rt extends _0x26e18a{['afterInit'](){const _0x5184e4=this['editor'];if(!_0x5184e4['plugins']['has']('ImageEditing'))return;const _0x4efcf0=_0x5184e4['plugins']['get']('TrackChangesEditing'),_0x2b24d9=_0x5184e4['plugins']['get']('ImageUtils'),_0x3f9d61=_0x5184e4['locale'];_0x4efcf0['enableCommand']('insertImage'),_0x4efcf0['descriptionFactory']['registerElementLabel']('imageBlock',_0x50e4ae=>c(_0x3f9d61,'ELEMENT_IMAGE',_0x50e4ae)),_0x4efcf0['descriptionFactory']['registerElementLabel']('imageInline',_0x2b0b62=>c(_0x3f9d61,'ELEMENT_INLINE_IMAGE',_0x2b0b62)),_0x4efcf0['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x3f9d61,'ELEMENT_CAPTION')),_0x5184e4['plugins']['has']('ImageUploadEditing')&&_0x4efcf0['enableCommand']('uploadImage'),_0x5184e4['plugins']['has']('ImageBlockEditing')&&_0x5184e4['plugins']['has']('ImageInlineEditing')&&(_0x4efcf0['enableCommand']('imageTypeInline',(_0x1f83b9,_0x1e8116)=>{const _0x59fca3=_0x2b24d9['getClosestSelectedImageElement'](_0x5184e4['model']['document']['selection']);_0x5184e4['model']['change'](()=>{_0x4efcf0['markBlockFormat'](_0x59fca3,{'commandName':'imageTypeInline','commandParams':[_0x1e8116]},[],'convertBlockImageToInline');});}),_0x4efcf0['enableCommand']('imageTypeBlock',(_0x556c3f,_0x4e7124)=>{_0x5184e4['model']['change'](_0x3906d9=>{let _0x110f72=_0x2b24d9['getClosestSelectedImageElement'](_0x5184e4['model']['document']['selection']),_0x50ba95=_0x3906d9['createRangeOn'](_0x110f72);const _0x4a6094=_0x1acda2['fromPosition'](_0x50ba95['start'],'toPrevious'),_0x446928=_0x1acda2['fromPosition'](_0x50ba95['end'],'toNext');_0x4efcf0['forceDefaultExecution'](()=>_0x556c3f(_0x4e7124)),_0x110f72=_0x2b24d9['getClosestSelectedImageElement'](_0x5184e4['model']['document']['selection']),_0x50ba95=_0x3906d9['createRangeOn'](_0x110f72);const _0x3426ed=_0x3906d9['createRange'](_0x4a6094,_0x446928);_0x4a6094['detach'](),_0x446928['detach'](),_0x4efcf0['markBlockFormat'](_0x110f72,{'commandName':'imageTypeInline','commandParams':[_0x4e7124]},[],'convertInlineImageToBlock'),_0x3426ed['start']['isBefore'](_0x50ba95['start'])&&_0x4efcf0['markInsertion'](_0x3906d9['createRange'](_0x3426ed['start'],_0x50ba95['start']),'convertInlineImageToBlock'),_0x50ba95['end']['isBefore'](_0x3426ed['end'])&&_0x4efcf0['markInsertion'](_0x3906d9['createRange'](_0x50ba95['end'],_0x3426ed['end']),'convertInlineImageToBlock');});}),_0x4efcf0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4efcf0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4efcf0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4efcf0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4efcf0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4efcf0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xcf5756])=>{const _0x1f3590=_0x4efcf0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x50d5f4=_0xcf5756['start'],_0x4a0e12=_0xcf5756['end'];const _0x2cd591=_0x5184e4['model']['schema']['getNearestSelectionRange'](_0x50d5f4,'backward'),_0x5050f4=_0x5184e4['model']['schema']['getNearestSelectionRange'](_0x4a0e12,'forward');_0x2cd591['isCollapsed']&&(_0x50d5f4=_0x2cd591['start']),_0x5050f4['isCollapsed']&&(_0x4a0e12=_0x5050f4['end']),_0x1f3590([_0x5184e4['model']['createRange'](_0x50d5f4,_0x4a0e12)]);}),_0x4efcf0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4c4c77),_0x4efcf0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4c4c77)),_0x5184e4['plugins']['has']('ImageCaptionEditing')&&(_0x4efcf0['enableCommand']('toggleImageCaption',(_0xa63348,_0x16b3e2)=>{const _0x26cf9c=_0x5184e4['plugins']['get']('ImageCaptionUtils');let _0x1a6786=_0x2b24d9['getClosestSelectedImageElement'](_0x5184e4['model']['document']['selection']),_0x288aa8=_0x26cf9c['getCaptionFromImageModelElement'](_0x1a6786);_0x5184e4['model']['change'](()=>{if(_0x288aa8)return void _0x4efcf0['markDeletion'](_0x5184e4['model']['createRangeOn'](_0x288aa8));const _0x328b80=_0x2b24d9['isBlockImage'](_0x1a6786);_0xa63348(_0x16b3e2),_0x1a6786=_0x2b24d9['getClosestSelectedImageElement'](_0x5184e4['model']['document']['selection']),_0x288aa8=_0x26cf9c['getCaptionFromImageModelElement'](_0x1a6786),_0x4efcf0['markInsertion'](_0x5184e4['model']['createRangeOn'](_0x288aa8),_0x328b80?null:'imageCaption');});}),_0x4efcf0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4c4c77));const _0x23f75d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xaa5496(_0x19d7ae,_0x17547f){const _0x4d785e=_0x23f75d['findIndex'](({type:_0x24122e,subType:_0x24e0a3})=>_0x19d7ae['type']==_0x24122e&&_0x19d7ae['subType']==_0x24e0a3),_0x2a8004=_0x23f75d['findIndex'](({type:_0x51b342,subType:_0x5ef587})=>_0x17547f['type']==_0x51b342&&_0x17547f['subType']==_0x5ef587);if(_0x4d785e<0x0||_0x2a8004<0x0)return!0x1;const _0x1c813a=_0x19d7ae['getFirstRange'](),_0x427dd9=_0x17547f['getFirstRange']();if((0x0==_0x4d785e||0x1==_0x4d785e)&&0x2==_0x2a8004&&_0x1c813a['isIntersecting'](_0x427dd9))return!0x0;if(0x2==_0x4d785e&&0x3==_0x2a8004){const _0x1a8eaa=_0x4efcf0['_findSuggestions'](_0x1c813a,'insertion')['filter'](({suggestion:_0x1a758d,meta:_0x284523})=>_0x284523['isOwn']&&'convertInlineImageToBlock'==_0x1a758d['subType']);if(_0x1a8eaa['length']>0x1&&_0x427dd9['end']['isEqual'](_0x1c813a['start']))return!0x0;if(0x1==_0x1a8eaa['length']&&(_0x1c813a['start']['isEqual'](_0x427dd9['end'])||_0x1c813a['end']['isEqual'](_0x427dd9['start'])))return!0x0;}if(0x3==_0x4d785e&&0x3==_0x2a8004&&_0x1c813a['start']['isBefore'](_0x427dd9['start'])){const _0x47ea4c=_0x1c813a['end']['nodeAfter'],_0x359e23=_0x427dd9['start']['nodeBefore'];return _0x2b24d9['isBlockImage'](_0x47ea4c)&&_0x47ea4c===_0x359e23;}return!0x1;}function _0x4c4c77(_0x1b88f4,_0x4ec6d2){return _0xaa5496(_0x1b88f4,_0x4ec6d2)?[_0x1b88f4,_0x4ec6d2]:_0xaa5496(_0x4ec6d2,_0x1b88f4)?[_0x4ec6d2,_0x1b88f4]:null;}_0x5184e4['plugins']['has']('ImageResize')&&(_0x4efcf0['enableDefaultAttributesIntegration']('resizeImage'),_0x4efcf0['registerBlockAttribute']('resizedWidth'),_0x4efcf0['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x3f9d61,'FORMAT_IMAGE_SIZE'))),_0x5184e4['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4efcf0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4efcf0['registerBlockAttribute']('alt')),_0x5184e4['plugins']['has']('PictureEditing')&&(_0x4efcf0['registerBlockAttribute']('sources'),_0x4efcf0['descriptionFactory']['registerDescriptionCallback'](_0x95719=>{if('attribute'!=_0x95719['type'])return;const {data:_0x937827}=_0x95719;return _0x937827&&'sources'==_0x937827['key']?{'type':'format','content':''}:void 0x0;})),_0x5184e4['plugins']['has']('ImageSizeAttributes')&&(_0x4efcf0['registerBlockAttribute']('width'),_0x4efcf0['registerBlockAttribute']('height'),_0x4efcf0['descriptionFactory']['registerDescriptionCallback'](_0xa05686=>{if('attribute'!=_0xa05686['type'])return;const {data:_0x4402b1}=_0xa05686;return!_0x4402b1||'width'!=_0x4402b1['key']&&'height'!=_0x4402b1['key']?void 0x0:{'type':'format','content':''};})),_0x4efcf0['descriptionFactory']['registerDescriptionCallback'](_0x93854c=>{if(!!_0x23f75d['find'](({type:_0x44bc87,subType:_0x3443a2})=>_0x93854c['type']==_0x44bc87&&_0x93854c['subType']==_0x3443a2))return _0x93854c['previous']?{}:void 0x0;}),_0x4efcf0['descriptionFactory']['registerDescriptionCallback'](_0x455393=>{if('insertion'==_0x455393['type']||'deletion'==_0x455393['type']){const _0x2afa64=_0x455393['getContainedElement']();if(_0x2afa64&&_0x2afa64['is']('element','caption'))return{'type':'insertion'==_0x455393['type']?'addObject':'removeObject','element':_0x2afa64,'quantity':0x1};}}),_0x4efcf0['descriptionFactory']['registerDescriptionCallback'](_0x387de1=>'formatBlock'==_0x387de1['type']&&'convertInlineImageToBlock'==_0x387de1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x387de1['type']&&'convertBlockImageToInline'==_0x387de1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4efcf0['descriptionFactory']['registerDescriptionCallback'](_0x1a1bab=>{if('attribute'!=_0x1a1bab['type'])return;const {data:_0x502d78}=_0x1a1bab;if(!_0x502d78||'alt'!=_0x502d78['key'])return;const _0x4a5858=_0x502d78['newValue'];return _0x4a5858?{'type':'format','content':c(_0x3f9d61,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a5858+'\x22')}:{'type':'format','content':c(_0x3f9d61,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38b4d5=this['editor'],_0x23d9a7=_0x38b4d5['locale'];_0x38b4d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e277c=>{if('formatBlock'!=_0x1e277c['type']&&'formatInline'!=_0x1e277c['type'])return;const {data:_0x3825db}=_0x1e277c;if(_0x3825db){if('imageTextAlternative'==_0x3825db['commandName']){const _0x120b9f=_0x3825db['commandParams'][0x0]['newValue'];return _0x120b9f?{'type':'format','content':c(_0x23d9a7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x120b9f+'\x22')}:{'type':'format','content':c(_0x23d9a7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3825db['commandName']){const _0x17f22e=_0x3825db['commandParams'][0x0]['width'];return _0x17f22e?{'type':'format','content':c(_0x23d9a7,'*Set\x20image\x20width:*\x20%0',_0x17f22e)}:{'type':'format','content':c(_0x23d9a7,'*Reset\x20image\x20width*')};}}});}}class at extends _0x26e18a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x208cfb=this['editor']['locale'],_0x161865=this['editor']['plugins']['get']('TrackChangesEditing');_0x161865['enableDefaultAttributesIntegration']('replaceImageSource'),_0x161865['registerBlockAttribute']('src'),_0x161865['descriptionFactory']['registerDescriptionCallback'](_0x3536cf=>{if('attribute'!=_0x3536cf['type'])return;const {data:_0x3d7a2f}=_0x3536cf;return _0x3d7a2f&&'src'==_0x3d7a2f['key']?_0x3d7a2f['newValue']&&_0x3d7a2f['oldValue']?{'type':'format','content':c(_0x208cfb,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x34e16f=this['editor']['plugins']['get']('TrackChangesEditing');_0x34e16f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x34e16f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34e16f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x34e16f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34890d=this['editor'],_0x12d53b=_0x34890d['locale'];_0x34890d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e0eeb=>{if('formatBlock'!=_0x2e0eeb['type']&&'formatInline'!=_0x2e0eeb['type'])return;const {data:_0xb1ea4c}=_0x2e0eeb;if(!_0xb1ea4c||'replaceImageSource'!=_0xb1ea4c['commandName'])return;return{'type':'format','content':c(_0x12d53b,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x26e18a{['afterInit'](){const _0x36e2e1=this['editor'];if(!_0x36e2e1['plugins']['has']('ImageStyleEditing'))return;const _0x41c178=_0x36e2e1['plugins']['get']('TrackChangesEditing'),_0x2d53a9=_0x36e2e1['plugins']['get']('ImageUtils'),_0x2d7aed={};_0x41c178['enableCommand']('imageStyle',(_0x11199f,_0x587ee2)=>{const _0xa53b68=_0x36e2e1['plugins']['get']('Users')['me'],_0x5dcb87=_0x36e2e1['commands']['get']('imageStyle');let _0x4b8889=_0x2d53a9['getClosestSelectedImageElement'](_0x36e2e1['model']['document']['selection']),_0x731e7d=_0x36e2e1['model']['createRangeOn'](_0x4b8889),_0x1e2dca=_0x5dcb87['value'];if(_0x1e2dca==_0x587ee2['value'])return;const _0x5cdce9={'commandName':'imageStyle','commandParams':[_0x587ee2],'formatGroupId':_0x4cee4c()};_0x36e2e1['model']['change'](()=>{if(_0x41c178['getSuggestions']()['filter'](_0x1328c2=>_0x1328c2['isInContent']&&_0xa53b68==_0x1328c2['author']&&('formatBlock'==_0x1328c2['type']||'formatInline'==_0x1328c2['type'])&&('imageStylePreApply'==_0x1328c2['subType']||'imageStylePostApply'==_0x1328c2['subType'])&&_0x1328c2['getFirstRange']()['isEqual'](_0x731e7d))['forEach'](_0x47a2fb=>_0x41c178['discardSuggestion'](_0x47a2fb['head'])),_0x4b8889=_0x2d53a9['getClosestSelectedImageElement'](_0x36e2e1['model']['document']['selection']),_0x731e7d=_0x36e2e1['model']['createRangeOn'](_0x4b8889),_0x5dcb87['refresh'](),_0x36e2e1['commands']['get']('imageTypeInline')['refresh'](),_0x36e2e1['commands']['get']('imageTypeBlock')['refresh'](),_0x1e2dca=_0x5dcb87['value'],_0x1e2dca!=_0x587ee2['value'])return _0x2d53a9['isInlineImage'](_0x4b8889)&&_0x5dcb87['shouldConvertImageType'](_0x587ee2['value'],_0x4b8889)?(_0x11199f({..._0x587ee2,'setImageSizes':!0x1}),_0x4b8889=_0x2d53a9['getClosestSelectedImageElement'](_0x36e2e1['model']['document']['selection']),void _0x41c178['markBlockFormat'](_0x4b8889,{..._0x5cdce9,'commandReversedParams':[{'value':_0x1e2dca||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2d53a9['isBlockImage'](_0x4b8889)?_0x41c178['markBlockFormat'](_0x4b8889,_0x5cdce9,[],'imageStylePostApply'):_0x41c178['markInlineFormat'](_0x731e7d,_0x5cdce9,'imageStylePostApply'));});});for(const _0x384e25 of _0x36e2e1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2d7aed[_0x384e25['name']]=_0x384e25['title']['toLowerCase']();_0x41c178['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x41c178['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x41c178['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x41c178['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x54827c])=>{_0x2d53a9['setImageNaturalSizeAttributes'](_0x54827c['getContainedElement']());}),_0x41c178['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x117846,_0x554688)=>{_0x41c178['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x117846,{'commandName':_0x554688['commandName'],'commandParams':_0x554688['commandReversedParams']});}),_0x41c178['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x53858c,_0x3d8c55){if(_0x23e035(_0x53858c,_0x3d8c55))return[_0x53858c,_0x3d8c55];if(_0x23e035(_0x3d8c55,_0x53858c))return[_0x3d8c55,_0x53858c];return null;});const _0x10c960=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x23e035(_0x491bbf,_0x4cfe82){const _0x570644=_0x10c960['findIndex'](({type:_0x524316,subType:_0x5807a3})=>_0x491bbf['type']==_0x524316&&_0x491bbf['subType']==_0x5807a3),_0x23a5c6=_0x10c960['findIndex'](({type:_0x42fe93,subType:_0x3fb172})=>_0x4cfe82['type']==_0x42fe93&&_0x4cfe82['subType']==_0x3fb172);if(_0x570644<0x0||_0x23a5c6<0x0)return!0x1;const _0x232497=_0x491bbf['getFirstRange'](),_0x7425b0=_0x4cfe82['getFirstRange']();if((0x0==_0x570644||0x1==_0x570644)&&0x2==_0x23a5c6&&_0x232497['isIntersecting'](_0x7425b0))return!0x0;if(0x2==_0x570644&&0x3==_0x23a5c6){const _0x1aaa68=_0x41c178['_findSuggestions'](_0x232497,'insertion')['filter'](({suggestion:_0x3517f8,meta:_0x1fb39f})=>_0x1fb39f['isOwn']&&'convertInlineImageToBlock'==_0x3517f8['subType']);if(_0x1aaa68['length']>0x1&&_0x7425b0['end']['isEqual'](_0x232497['start']))return!0x0;if(0x1==_0x1aaa68['length']&&(_0x232497['start']['isEqual'](_0x7425b0['end'])||_0x232497['end']['isEqual'](_0x7425b0['start'])))return!0x0;}if(0x3==_0x570644&&0x3==_0x23a5c6&&_0x232497['start']['isBefore'](_0x7425b0['start'])){const _0x21ea41=_0x232497['end']['nodeAfter'],_0x3f0de4=_0x7425b0['start']['nodeBefore'];return _0x2d53a9['isBlockImage'](_0x21ea41)&&_0x21ea41===_0x3f0de4;}return!0x1;}_0x36e2e1['model']['document']['registerPostFixer'](()=>{let _0x4acbb8=!0x1;const _0x3a704e=Array['from'](_0x36e2e1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d1808,data:_0x5582a0}of _0x3a704e){const {group:_0x2f54b8,type:_0x1ce4dd,subType:_0xdf3a53,id:_0x54b400}=_0x41c178['_splitMarkerName'](_0x2d1808);if('suggestion'==_0x2f54b8&&_0x41c178['hasSuggestion'](_0x54b400)){if('formatBlock'==_0x1ce4dd&&('imageStylePreApply'==_0xdf3a53||'imageStylePostApply'==_0xdf3a53)){const _0x3ae756=_0x41c178['getSuggestion'](_0x54b400);if(_0x5582a0['newRange']){const _0x4a7f92=_0x3ae756['getFirstRange']()['getContainedElement']();if(_0x2d53a9['isBlockImage'](_0x4a7f92))continue;_0x41c178['discardSuggestion'](_0x3ae756),_0x4acbb8=!0x0;}}if('insertion'==_0x1ce4dd&&'imageCaption'==_0xdf3a53&&!_0x5582a0['newRange']){const _0x5b2a45=_0x41c178['getSuggestion'](_0x54b400);_0x5b2a45['next']&&_0x5b2a45['next']['isInContent']&&(_0x41c178['discardSuggestion'](_0x5b2a45['next']),_0x4acbb8=!0x0);}}}return _0x4acbb8;}),this['_registerLegacyDescription'](_0x2d7aed);}['_registerLegacyDescription'](_0x55858a){const _0x770eea=this['editor'],_0x333a2c=_0x770eea['locale'];_0x770eea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43a4dd=>{if('formatBlock'!=_0x43a4dd['type']&&'formatInline'!=_0x43a4dd['type'])return;const {data:_0x120147}=_0x43a4dd;if(!_0x120147||'imageStyle'!=_0x120147['commandName'])return;const _0x3fb950=_0x120147['commandParams'][0x0]['value'];return _0x1950ca('side'===_0x3fb950?c(_0x333a2c,'FORMAT_SIDE_IMAGE'):_0x55858a[_0x3fb950]||_0x3fb950);function _0x1950ca(_0x12969b){return{'type':'format','content':c(_0x333a2c,'*Format:*\x20%0',_0x12969b)};}});}}class ut extends _0x26e18a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x43bd25){super(_0x43bd25),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x475578=this['editor'],_0x32fb69=_0x475578['commands']['get']('importWord'),_0x347277=_0x475578['commands']['get']('trackChanges');_0x32fb69&&(_0x32fb69['on']('execute',(_0x2325ed,[,_0x5b5421])=>{this['_trackChangesValueDuringImport']=_0x347277['value'],_0x5b5421['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x32fb69,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x32fb69,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x347277['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x475578['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x26d7f6,_0x3f4df8){const {suggestions:_0x2e2aa3}=_0x3f4df8,_0x3978b8=this['editor']['commands']['get']('trackChanges'),_0x423cba=_0x3978b8['value'];this['_trackChangesValueDuringImport']!==_0x423cba&&(_0x3978b8['execute'](),this['_trackChangesExecuted']=!0x0),_0x2e2aa3&&_0x2e2aa3['forEach'](({id:_0x242296,type:_0x4fdf52,author:_0x3c3e47,created_at:_0x152bbc})=>{const _0x5424d3={'id':_0x242296,'type':_0x4fdf52,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3c3e47,'createdAt':_0x152bbc?new Date(_0x152bbc):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5424d3);});}}class ft extends _0x26e18a{['afterInit'](){const _0x4c9539=this['editor'],_0x5a9457=_0x4c9539['plugins']['get']('TrackChangesEditing');if(_0x4c9539['plugins']['has']('IndentEditing')&&(_0x5a9457['enableCommand']('indent'),_0x5a9457['enableCommand']('outdent')),_0x4c9539['plugins']['has']('IndentBlock')){for(const _0x3a3641 of['indentBlock','outdentBlock'])_0x5a9457['enableDefaultAttributesIntegration'](_0x3a3641);}const _0x5b965e=_0x4c9539['locale'];_0x5a9457['registerBlockAttribute']('blockIndent'),_0x5a9457['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5b965e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x436795=this['editor'],_0x49d9c4=_0x436795['locale'],_0x139547=_0x436795['plugins']['get']('TrackChangesEditing');_0x139547['descriptionFactory']['registerDescriptionCallback'](_0x24831f=>{if('formatBlock'!=_0x24831f['type'])return;const {data:_0x560779}=_0x24831f;if(!_0x560779)return;if('indentBlock'!=_0x560779['commandName']&&'outdentBlock'!=_0x560779['commandName'])return;const _0x417a7b=_0x24831f['getItems']()[0x0],_0x54a2e5=_0x139547['descriptionFactory']['getItemLabel'](_0x417a7b);return'indentBlock'==_0x560779['commandName']?{'type':'format','content':c(_0x49d9c4,'*Indent:*\x20%0',_0x54a2e5)}:'outdentBlock'==_0x560779['commandName']?{'type':'format','content':c(_0x49d9c4,'*Outdent:*\x20%0',_0x54a2e5)}:void 0x0;});}}class ht extends _0x26e18a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x26e18a{['afterInit'](){const _0x3d8985=this['editor'];if(!_0x3d8985['plugins']['has']('LinkEditing'))return;const _0x58994e=_0x3d8985['plugins']['get']('TrackChangesEditing'),_0x53ce64=_0x3d8985['commands']['get']('link');_0x58994e['enableDefaultAttributesIntegration']('link'),_0x58994e['enableDefaultAttributesIntegration']('unlink'),_0x58994e['registerInlineAttribute']('linkHref');for(const _0x125e8d of _0x53ce64['manualDecorators'])_0x58994e['registerInlineAttribute'](_0x125e8d['id']),_0x58994e['descriptionFactory']['registerAttributeLabel'](_0x125e8d['id'],'link\x20('+_0x125e8d['label']['toLowerCase']()+')');_0x58994e['descriptionFactory']['registerDescriptionCallback'](_0x4bd3c7=>{if('attribute'!=_0x4bd3c7['type'])return;const {data:_0x3bf8aa}=_0x4bd3c7;if(!_0x3bf8aa||'linkHref'!=_0x3bf8aa['key'])return;const _0x38ab1f=_0x3bf8aa['newValue'],_0x28f35b=_0x3d8985['locale'];return{'type':'format','content':null==_0x38ab1f?c(_0x28f35b,'*Remove\x20link*'):c(_0x28f35b,'*Set\x20link:*\x20%0','\x22'+_0x38ab1f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cce6d=this['editor'],_0x537173=_0x3cce6d['locale'];_0x3cce6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x561679=>{if('formatInline'!=_0x561679['type'])return;const {data:_0x2ef311}=_0x561679;if(_0x2ef311){if('link'==_0x2ef311['commandName']){const _0x14eb23=_0x2ef311['commandParams'][0x0];return{'type':'format','content':c(_0x537173,'*Set\x20link:*\x20%0','\x22'+_0x14eb23+'\x22')};}return'unlink'==_0x2ef311['commandName']?{'type':'format','content':c(_0x537173,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x26e18a{['afterInit'](){const _0x4f7c97=this['editor'],_0x27e0d3=_0x4f7c97['locale'];if(!_0x4f7c97['plugins']['has']('LegacyListEditing'))return;const _0x19fe94=_0x4f7c97['plugins']['get']('TrackChangesEditing'),_0x1665c4=_0x4f7c97['plugins']['has']('LegacyTodoListEditing');function _0x4330cf(_0x2359f5){return()=>{const _0x239093=_0x4f7c97['model']['document']['selection'],_0x5b9073=_0x4f7c97['commands']['get'](_0x2359f5);if(_0x5b9073['value'])return void _0x4f7c97['execute']('paragraph',{});const _0x5c4735=_0x2359f5['slice'](0x0,-0x4),_0x1c2f79=function(_0x3efc1c,_0x12a113,_0x4db6ca){let _0x3cfe79=Array['from'](_0x3efc1c)['filter'](_0x4f7c31=>function(_0x40c0b4,_0x19e8fa){return _0x19e8fa['checkChild'](_0x40c0b4['parent'],'listItem')&&!_0x19e8fa['isObject'](_0x40c0b4);}(_0x4f7c31,_0x4db6ca));_0x3cfe79=_0x3cfe79['filter'](_0xff8c04=>!_0xff8c04['is']('element','listItem')||_0xff8c04['getAttribute']('listType')!=_0x12a113);const _0x1a4e97=new Set();for(const _0x38203 of _0x3cfe79)_0x38203['is']('element','listItem')?_0x1a4e97['add'](Le(_0x38203)):_0x1a4e97['add'](_0x38203);return Array['from'](_0x1a4e97);}(_0x239093['getSelectedBlocks'](),_0x5c4735,_0x4f7c97['model']['schema']);_0x4f7c97['model']['change'](()=>{for(const _0x8a6e7b of _0x1c2f79)_0x19fe94['markBlockFormat'](_0x8a6e7b,{'commandName':_0x2359f5,'commandParams':[{'forceValue':!_0x5b9073['value']}],'formatGroupId':'blockName'},Ee(_0x8a6e7b));});};}function _0x1010f2(_0x5098bf){return()=>{const _0x334a7b=function(_0x3985fa){let _0x32b8c3=Array['from'](_0x3985fa);const _0x36398a=_0x32b8c3['findIndex'](_0x3a3b03=>'listItem'!=_0x3a3b03['name']);return _0x36398a>-0x1&&(_0x32b8c3=_0x32b8c3['slice'](0x0,_0x36398a)),_0x32b8c3;}(_0x4f7c97['model']['document']['selection']['getSelectedBlocks']()),_0x5c82a3=_0x4f7c97['model']['createRange'](_0x4f7c97['model']['createPositionAt'](_0x334a7b[0x0],'before'),_0x4f7c97['model']['createPositionAt'](_0x334a7b[_0x334a7b['length']-0x1],'end'));_0x4f7c97['model']['change'](()=>{_0x19fe94['markBlockFormat'](_0x5c82a3,{'commandName':_0x5098bf,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4e8d6f){const _0xc01f18=new Set();for(const _0x59f88b of _0x4e8d6f){let _0x20080a=_0x59f88b['nextSibling'];for(;_0x20080a&&_0x20080a['getAttribute']('listIndent')>_0x59f88b['getAttribute']('listIndent');)_0xc01f18['add'](_0x20080a),_0x20080a=_0x20080a['nextSibling'];}return Array['from'](_0xc01f18);}(_0x334a7b));});};}_0x19fe94['enableCommand']('numberedList',_0x4330cf('numberedList')),_0x19fe94['enableCommand']('bulletedList',_0x4330cf('bulletedList')),_0x1665c4&&_0x19fe94['enableCommand']('todoList',_0x4330cf('todoList')),_0x19fe94['enableCommand']('indentList',_0x1010f2('indentList')),_0x19fe94['enableCommand']('outdentList',_0x1010f2('outdentList')),_0x1665c4&&_0x19fe94['enableCommand']('checkTodoList',()=>{const _0x5bfa5d=_0x4f7c97['commands']['get']('checkTodoList'),_0x558ad6=Array['from'](_0x5bfa5d['_selectedElements']);_0x558ad6['filter'](_0x5176c1=>_0x5176c1['getAttribute']('todoListChecked')!=_0x5bfa5d['value']),_0x4f7c97['model']['change'](()=>{for(const _0x171a44 of _0x558ad6)_0x19fe94['markBlockFormat'](_0x171a44,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5bfa5d['value']}]});});}),_0x19fe94['descriptionFactory']['registerElementLabel']('listItem',_0x33e740=>c(_0x27e0d3,'ELEMENT_LIST_ITEM',_0x33e740)),_0x19fe94['descriptionFactory']['registerDescriptionCallback'](_0x5a623a=>{if('formatBlock'!=_0x5a623a['type']&&'formatInline'!=_0x5a623a['type'])return;const {data:_0x567c60}=_0x5a623a;if(_0x567c60){if('numberedList'==_0x567c60['commandName']||'bulletedList'==_0x567c60['commandName']||'todoList'==_0x567c60['commandName'])switch(_0x567c60['commandName']['replace']('List','')){case'bulleted':return _0x56dcbd(c(_0x27e0d3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x56dcbd(c(_0x27e0d3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x56dcbd(c(_0x27e0d3,'ELEMENT_TODO_LIST'));}if('indentList'==_0x567c60['commandName'])return{'type':'format','content':c(_0x27e0d3,'*Indent:*\x20%0',c(_0x27e0d3,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x567c60['commandName'])return{'type':'format','content':c(_0x27e0d3,'*Outdent:*\x20%0',c(_0x27e0d3,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x567c60['commandName'])return _0x567c60['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x27e0d3,'*Check\x20item*')}:{'type':'format','content':c(_0x27e0d3,'*Uncheck\x20item*')};}function _0x56dcbd(_0x35adda){return{'type':'format','content':c(_0x27e0d3,'*Change\x20to:*\x20%0',_0x35adda)};}});}}function Le(_0x1fdf7c){const _0x201cec=_0x1fdf7c['getAttribute']('listIndent');if(0x0==_0x201cec)return _0x1fdf7c;let _0x16ea5a=_0x1fdf7c;for(;_0x1fdf7c['previousSibling']&&_0x1fdf7c['previousSibling']['is']('element','listItem');){const _0x3be2aa=_0x1fdf7c['previousSibling']['getAttribute']('listIndent');if(_0x3be2aa==_0x201cec)_0x16ea5a=_0x1fdf7c['previousSibling'];else{if(_0x3be2aa<_0x201cec)break;}_0x1fdf7c=_0x1fdf7c['previousSibling'];}return _0x16ea5a;}function Ee(_0x3eb80e){const _0x23dcd3=[];if(_0x3eb80e['is']('element','listItem')&&_0x3eb80e['getAttribute']('listIndent')>0x0){let _0x322516=_0x3eb80e['nextSibling'];for(;_0x322516&&'listItem'==_0x322516['name']&&_0x322516['getAttribute']('listIndent')==_0x3eb80e['getAttribute']('listIndent');)_0x23dcd3['push'](_0x322516),_0x322516=_0x322516['nextSibling'];}return _0x23dcd3;}class Q extends _0x26e18a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x8677b=this['editor']['config']['get']('list.properties'),_0x312da9=this['editor']['plugins']['get']('TrackChangesEditing');_0x8677b['styles']&&_0x312da9['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x8677b['reversed']&&_0x312da9['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x8677b['startIndex']&&_0x312da9['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x312da9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x23a85d,_0x28b456={}){const _0x4afe72=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ac197=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4afe72['markMultiRangeBlockFormat'](_0x2ac197,{'commandName':'listStyle','commandParams':[{'type':_0x28b456['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x309c40,_0x1366d9={}){const _0x350abd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58d82c=this['_getSuggestionBlocks'](_0x3f5b1c=>_0x3f5b1c['is']('element','listItem')&&'numbered'===_0x3f5b1c['getAttribute']('listType'));if(_0x58d82c['length']<0x1)return;const _0x385a4a=_0x58d82c['map'](_0x22adf4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x22adf4,'before'),this['editor']['model']['createPositionAt'](_0x22adf4,0x0)));this['editor']['model']['change'](()=>{_0x350abd['markMultiRangeBlockFormat'](_0x385a4a,{'commandName':'listReversed','commandParams':[{'reversed':_0x1366d9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x11d16d,_0x243ab9={}){const _0x56c5f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21a68a=this['_getSuggestionBlocks'](_0x48b4d2=>_0x48b4d2['is']('element','listItem')&&'numbered'===_0x48b4d2['getAttribute']('listType'));if(_0x21a68a['length']<0x1)return;const _0x177a80=_0x21a68a['map'](_0x5ee69b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5ee69b,'before'),this['editor']['model']['createPositionAt'](_0x5ee69b,0x0)));this['editor']['model']['change'](()=>{_0x56c5f3['markMultiRangeBlockFormat'](_0x177a80,{'commandName':'listStart','commandParams':[{'startIndex':_0x243ab9['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5334ff){if('formatBlock'!=_0x5334ff['type']&&'formatInline'!=_0x5334ff['type'])return;const _0x1dc9c7=this['editor']['locale'],{data:_0x296d2e}=_0x5334ff;if(!_0x296d2e)return;let _0x9245fe,_0x2f82ac;switch(_0x296d2e['commandName']){case'listStyle':_0x9245fe='*Change\x20to:*\x20%0',_0x2f82ac={'type':'format','content':c(_0x1dc9c7,_0x9245fe,c(_0x1dc9c7,this['_getTranslationKeyForListStyle'](_0x296d2e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x9245fe=_0x296d2e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2f82ac={'type':'format','content':c(_0x1dc9c7,_0x9245fe)};break;case'listStart':_0x9245fe='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2f82ac={'type':'format','content':c(_0x1dc9c7,_0x9245fe,_0x296d2e['commandParams'][0x0]['startIndex'])};}return _0x2f82ac;}['_getSuggestionBlocksForListStyle'](){const _0x14bfe7=this['editor']['plugins']['get']('LegacyListUtils');let _0x37bb5a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x37bb5a[0x0]?.['is']('element','listItem')&&_0x37bb5a['unshift'](..._0x14bfe7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x37bb5a[_0x37bb5a['length']-0x1]?.['is']('element','listItem')&&_0x37bb5a['push'](..._0x14bfe7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x37bb5a=[...new Set(_0x37bb5a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x37bb5a=_0x37bb5a['filter'](_0x1df63c=>_0x1df63c['is']('element','listItem'))),_0x37bb5a;}['_getSuggestionBlocks'](_0x188b42){const _0x273cfb=this['editor']['plugins']['get']('LegacyListUtils');let _0x43a11e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x188b42)['map'](_0x23b2a1=>{const _0x2ef141=this['editor']['model']['createPositionAt'](_0x23b2a1,0x0);return[..._0x273cfb['getSiblingNodes'](_0x2ef141,'backward'),..._0x273cfb['getSiblingNodes'](_0x2ef141,'forward')];})['flat']();return _0x43a11e=[...new Set(_0x43a11e)],_0x43a11e;}['_getTranslationKeyForListStyle'](_0x898872){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x898872)||'default')['toUpperCase']()+'_LIST_'+_0x898872['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x26e18a{['afterInit'](){const _0x2bc5a9=this['editor'];if(!_0x2bc5a9['plugins']['has']('MediaEmbedEditing'))return;const _0x188c6f=_0x2bc5a9['plugins']['get']('TrackChangesEditing'),_0x20dff4=_0x2bc5a9['locale'];_0x188c6f['enableCommand']('mediaEmbed'),_0x188c6f['descriptionFactory']['registerElementLabel']('media',_0x1f1cc2=>c(_0x20dff4,'ELEMENT_MEDIA',_0x1f1cc2)),_0x2bc5a9['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2e7642,{writer:_0x2c03b5,options:_0x11204a})=>{if(_0x11204a['showSuggestionHighlights'])return _0x2c03b5['createEmptyElement']('div');},'converterPriority':'high'}),_0x2bc5a9['data']['downcastDispatcher']['on']('attribute:url:media',(_0x549b5d,_0xe06460,_0x2a19a8)=>{_0x2a19a8['options']['showSuggestionHighlights']&&_0x549b5d['stop']();},{'priority':'high'});}}class pt extends _0x26e18a{['afterInit'](){const _0x1c8516=this['editor'];_0x1c8516['plugins']['has']('MentionEditing')&&_0x1c8516['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x26e18a{['afterInit'](){const _0x159ba0=this['editor'];if(!_0x159ba0['plugins']['has']('MergeFieldsEditing'))return;const _0x3add01=_0x159ba0['plugins']['get']('TrackChangesEditing'),_0x5a133d=_0x159ba0['locale'];_0x3add01['enableCommand']('insertMergeField'),_0x3add01['enableCommand']('insertMergeFieldBlock'),_0x3add01['enableCommand']('insertMergeFieldImage'),_0x3add01['descriptionFactory']['registerElementLabel']('mergeField',_0x470e39=>c(_0x5a133d,'ELEMENT_MERGE_FIELD',_0x470e39)),_0x3add01['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4b318e=>c(_0x5a133d,'ELEMENT_MERGE_FIELD',_0x4b318e)),_0x3add01['descriptionFactory']['registerDescriptionCallback'](_0x591db8=>{if('insertion'!=_0x591db8['type']&&'deletion'!=_0x591db8['type'])return;const _0x19c0e8=_0x591db8['getContainedElement']();if(null==_0x19c0e8)return;const _0x3350d9=_0x159ba0['plugins']['get']('MergeFieldsEditing');let _0x5ab0f6;switch(_0x3350d9['getMergeFieldType'](_0x19c0e8)){case null:return;case'image':{const _0x416e82=_0x3350d9['unwrapAffixes'](_0x19c0e8['getAttribute']('src'));_0x5ab0f6=_0x3350d9['getLabel'](_0x416e82)||_0x416e82;break;}default:{const _0x2b31ae=_0x19c0e8['getAttribute']('id');_0x5ab0f6=_0x3350d9['getLabel'](_0x2b31ae)||_0x2b31ae;break;}}return'insertion'==_0x591db8['type']?{'type':'insertion','content':c(_0x5a133d,'*Insert:*\x20%0','\x22'+_0x5ab0f6+'\x22\x20'+c(_0x5a133d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x5a133d,'*Remove:*\x20%0','\x22'+_0x5ab0f6+'\x22\x20'+c(_0x5a133d,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x26e18a{['afterInit'](){const _0x59648e=this['editor'],_0x153ded=_0x59648e['plugins']['get']('TrackChangesEditing');_0x59648e['plugins']['has']('MultiLevelList')&&(_0x153ded['enableDefaultAttributesIntegration']('multiLevelList'),_0x153ded['registerBlockAttribute']('listMarkerStyle'),_0x153ded['descriptionFactory']['registerDescriptionCallback'](_0x5cab18=>this['handleDescriptions'](_0x5cab18)));}['handleDescriptions'](_0x5acab4){const _0x52fc84=this['editor']['locale'],{data:_0x4f9d7a}=_0x5acab4,_0xf805f6={'type':'format','content':''};if(_0x4f9d7a&&'listMarkerStyle'==_0x4f9d7a['key']){if(!_0x4f9d7a['oldValue'])return{'type':'format','content':c(_0x52fc84,'*Set\x20format:*\x20%0',c(_0x52fc84,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f9d7a['newValue']+')'};if(!_0x4f9d7a['newValue']){let _0x1fad9a=_0x5acab4['head'];for(;_0x1fad9a;){if(_0x1fad9a['data']&&'listType'==_0x1fad9a['data']['key']&&_0x1fad9a['data']['newValue'])return _0xf805f6;_0x1fad9a=_0x1fad9a['next'];}return{'type':'format','content':c(_0x52fc84,'*Remove\x20format:*\x20%0',c(_0x52fc84,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f9d7a['oldValue']+')'};}}}}class bt extends _0x26e18a{['afterInit'](){const _0x1e8bea=this['editor'];if(!_0x1e8bea['plugins']['has']('PageBreakEditing'))return;_0x1e8bea['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3fca7b=_0x1e8bea['plugins']['get']('TrackChangesEditing'),_0x5e3ba6=_0x1e8bea['locale'];_0x3fca7b['descriptionFactory']['registerElementLabel']('pageBreak',_0x2e254c=>c(_0x5e3ba6,'ELEMENT_PAGE_BREAK',_0x2e254c));}}class yt extends _0x26e18a{['afterInit'](){const _0x2641ae=this['editor'];if(!_0x2641ae['plugins']['has']('Paragraph'))return;const _0x344e9c=_0x2641ae['locale'],_0x7d90d5=_0x2641ae['plugins']['get']('TrackChangesEditing');_0x7d90d5['descriptionFactory']['registerElementLabel']('paragraph',_0x2df0cf=>c(_0x344e9c,'ELEMENT_PARAGRAPH',_0x2df0cf)),_0x7d90d5['enableDefaultAttributesIntegration']('paragraph'),_0x7d90d5['enableCommand']('insertParagraph'),_0x2641ae['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2641ae),{'priority':'highest'}),_0x2641ae['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1c3785,_0x4ea9fa,_0x566b5d)=>{_0x566b5d['options']['showSuggestionHighlights']&&nr(_0x2641ae,{'showActiveMarker':!0x1})(_0x1c3785,_0x4ea9fa,_0x566b5d);},{'priority':'highest'});const _0x5adbb1=_0x7d90d5['descriptionFactory'];_0x5adbb1['registerDescriptionCallback'](_0x3188e1=>{if('insertion'!==_0x3188e1['type'])return;const {start:_0x2c99b2,end:_0x5c0260}=_0x3188e1['getFirstRange']();if(!_0x2c99b2['isTouching'](_0x5c0260)||!_0x2c99b2['nodeAfter'])return;const _0x261507=_0x2641ae['model']['schema'],_0x149205=_0x2c99b2['nodeAfter'];return _0x261507['isBlock'](_0x149205)&&!_0x261507['isLimit'](_0x149205)&&_0x261507['checkChild'](_0x149205,'$text')?{'type':'insertion','content':c(_0x344e9c,'*Insert:*\x20%0',_0x5adbb1['getItemLabel'](_0x149205,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4596c6=this['editor'],_0x29140b=_0x4596c6['locale'];_0x4596c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5236d3=>{if('formatBlock'!=_0x5236d3['type'])return;const {data:_0x54fd7e}=_0x5236d3;return _0x54fd7e&&'paragraph'==_0x54fd7e['commandName']?{'type':'format','content':c(_0x29140b,'*Change\x20to:*\x20%0',c(_0x29140b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xc918aa,{showActiveMarker:_0x41eaa2=!0x0}={}){return(_0x4bf7ca,_0x374b9d,_0x2a8d4c)=>{const _0x572c1c=_0xc918aa['plugins']['get']('TrackChangesEditing'),_0x1c9999=_0x374b9d['markerRange']['start'],_0x5f321d=_0x374b9d['markerRange']['end'],_0x2ff8d3=_0xc918aa['model']['schema'];if(!_0x1c9999['isTouching'](_0x5f321d)||!_0x1c9999['nodeAfter'])return;const _0x4da2a3=_0x1c9999['nodeAfter'];if(_0x2ff8d3['isBlock'](_0x4da2a3)&&!_0x2ff8d3['isLimit'](_0x4da2a3)&&_0x2ff8d3['checkChild'](_0x4da2a3,'$text')){if(!_0x2a8d4c['consumable']['consume'](_0x374b9d['markerRange'],_0x4bf7ca['name']))return;const {authorId:_0x2254d9}=_0x572c1c['_splitMarkerName'](_0x374b9d['markerName']),_0x540e61=_0x2a8d4c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2254d9}),_0x395015=_0x2a8d4c['mapper']['toViewPosition'](_0x5f321d);_0x41eaa2&&_0x572c1c['activeMarkers']['includes'](_0x374b9d['markerName'])&&_0x2a8d4c['writer']['addClass']('ck-suggestion-marker--active',_0x540e61),_0x2a8d4c['writer']['insert'](_0x395015,_0x540e61),_0x2a8d4c['mapper']['bindElementToMarker'](_0x540e61,_0x374b9d['markerName']);}};}class jt extends _0x26e18a{['afterInit'](){const _0x40cf55=this['editor'];_0x40cf55['commands']['get']('replaceSource')&&_0x40cf55['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x26e18a{['afterInit'](){const _0x2bdd2b=this['editor'];if(!_0x2bdd2b['plugins']['has']('RemoveFormatEditing'))return;_0x2bdd2b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39bd18=this['editor'];_0x39bd18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49d792=>{if('formatBlock'!=_0x49d792['type']&&'formatInline'!=_0x49d792['type'])return;const {data:_0x39020c}=_0x49d792;return _0x39020c&&'removeFormat'==_0x39020c['commandName']?{'type':'format','content':c(_0x39bd18['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x26e18a{['afterInit'](){const _0x4da0f0=this['editor'];if(!_0x4da0f0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5658fc=_0x4da0f0['plugins']['get']('TrackChangesEditing');_0x5658fc['enableCommand']('goToPreviousRestrictedEditingException'),_0x5658fc['enableCommand']('goToNextRestrictedEditingException');const _0x3ecd54=_0x4da0f0['plugins']['get']('RestrictedEditingModeEditing');_0x3ecd54['enableCommand']('trackChanges'),_0x3ecd54['enableCommand']('acceptSuggestion'),_0x3ecd54['enableCommand']('discardSuggestion'),_0x3ecd54['enableCommand']('acceptAllSuggestions'),_0x3ecd54['enableCommand']('discardAllSuggestions'),_0x3ecd54['enableCommand']('acceptSelectedSuggestions'),_0x3ecd54['enableCommand']('discardSelectedSuggestions');}}class It extends _0x26e18a{['afterInit'](){const _0x58d574=this['editor'];if(!_0x58d574['plugins']['has']('ShiftEnter'))return;const _0x2ab30f=_0x58d574['plugins']['get']('TrackChangesEditing');_0x2ab30f['enableCommand']('shiftEnter'),_0x58d574['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x58d574),{'priority':'high'}),_0x58d574['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x58d574),{'priority':'high'}),_0x58d574['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x593066,_0xa6988d,_0x4baf60)=>{_0x4baf60['options']['showSuggestionHighlights']&&je(_0x58d574,{'showActiveMarker':!0x1})(_0x593066,_0xa6988d,_0x4baf60);}),_0x2ab30f['descriptionFactory']['registerElementLabel']('softBreak',_0x1b1e54=>c(_0x58d574['locale'],'ELEMENT_LINE_BREAK',_0x1b1e54));}}function je(_0x437f4c,{showActiveMarker:_0x1862f7=!0x0}={}){return(_0x382fac,_0x2e9367,_0x3e9ea3)=>{const _0x27b011=_0x437f4c['plugins']['get']('TrackChangesEditing');if(!_0x3e9ea3['consumable']['test'](_0x2e9367['markerRange'],_0x382fac['name']))return;const _0x3e24a4=_0x437f4c['model'];for(const _0x589acf of _0x2e9367['markerRange']['getItems']()){if(!_0x589acf['is']('element','softBreak'))continue;const _0x2d400c='deletion'==_0x2e9367['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4e193a}=_0x27b011['_splitMarkerName'](_0x2e9367['markerName']),_0x1514fb=_0x3e9ea3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2d400c,'data-author-id':_0x4e193a}),_0x351b79=_0x3e9ea3['mapper']['toViewPosition'](_0x3e24a4['createPositionBefore'](_0x589acf));_0x1862f7&&_0x27b011['activeMarkers']['includes'](_0x2e9367['markerName'])&&_0x3e9ea3['writer']['addClass']('ck-suggestion-marker--active',_0x1514fb),_0x3e9ea3['writer']['insert'](_0x351b79,_0x1514fb),_0x3e9ea3['mapper']['bindElementToMarker'](_0x1514fb,_0x2e9367['markerName']);}};}class _t extends _0x26e18a{['afterInit'](){const _0xfcced=this['editor'],_0x4aee66=_0xfcced['model'],_0x55975b=_0xfcced['locale'];if(!_0xfcced['plugins']['has']('StandardEditingModeEditing'))return;const _0x3fbab9=_0xfcced['plugins']['get']('TrackChangesEditing'),_0x5f3876='restrictedEditingException',_0x5ab5ee=_0xfcced['commands']['get'](_0x5f3876);_0x3fbab9['enableCommand'](_0x5f3876,(_0x2495d8,_0x219e5f={})=>{const _0x4e7207=_0x4aee66['document']['selection'];if(_0x4e7207['isCollapsed'])return void _0x2495d8(_0x219e5f);const _0x26449b=void 0x0!==_0x219e5f['forceValue']?_0x219e5f['forceValue']:!_0x5ab5ee['value'];_0x4aee66['change'](()=>{const _0x1bf51f=Array['from'](_0x4e7207['getRanges']());for(const _0x28909c of _0x1bf51f){const _0x48198d=_0x26449b?[_0x28909c]:io(_0x5f3876,_0x28909c,_0x4aee66);for(const _0x160432 of _0x48198d)_0x3fbab9['markInlineFormat'](_0x160432,{'commandName':_0x5f3876,'commandParams':[{'forceValue':_0x26449b}]});}});}),_0x3fbab9['descriptionFactory']['registerDescriptionCallback'](_0x4e95dd=>{if('formatBlock'!=_0x4e95dd['type']&&'formatInline'!=_0x4e95dd['type'])return;const {data:_0xa19f2c}=_0x4e95dd;return _0xa19f2c&&_0xa19f2c['commandName']==_0x5f3876?_0xa19f2c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x55975b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x55975b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x26e18a{['afterInit'](){const _0x58bc02=this['editor'];if(!_0x58bc02['plugins']['has']('Style')||!_0x58bc02['plugins']['has']('DataSchema'))return;const _0x2262d9=_0x58bc02['plugins']['get']('TrackChangesEditing'),_0x343fa3=_0x58bc02['locale'],_0x320ab0=_0x58bc02['config']['get']('style')||{},_0x552936=_0x58bc02['plugins']['get']('GeneralHtmlSupport'),_0x28d0b5=_0x58bc02['plugins']['get']('StyleUtils')['normalizeConfig'](_0x58bc02['plugins']['get']('DataSchema'),_0x320ab0['definitions']);_0x2262d9['enableDefaultAttributesIntegration']('style');const _0x5d159c=new Set();for(const _0x3f3975 of _0x28d0b5['block']){const _0x4827f3=_0x552936['getGhsAttributeNameForElement'](_0x3f3975['element']);_0x5d159c['add'](_0x4827f3);}const _0x76e267=new Set();for(const _0x3b2a14 of _0x28d0b5['inline']){const _0x136155=_0x552936['getGhsAttributeNameForElement'](_0x3b2a14['element']);_0x76e267['add'](_0x136155);for(const _0x144529 of _0x3b2a14['ghsAttributes'])_0x76e267['add'](_0x144529);}for(const _0x1526aa of _0x5d159c)_0x2262d9['registerBlockAttribute'](_0x1526aa),_0x2262d9['descriptionFactory']['registerAttributeLabel'](_0x1526aa,c(_0x343fa3,'FORMAT_STYLE'));for(const _0x3865d3 of _0x76e267)_0x2262d9['registerInlineAttribute'](_0x3865d3),_0x2262d9['descriptionFactory']['registerAttributeLabel'](_0x3865d3,c(_0x343fa3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x367e9f=this['editor'],_0x3a6bfb=_0x367e9f['locale'];_0x367e9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc219b0=>{if('formatBlock'!=_0xc219b0['type']&&'formatInline'!=_0xc219b0['type'])return;const {data:_0x26b956}=_0xc219b0;return _0x26b956&&'style'===_0x26b956['commandName']?_0x26b956['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3a6bfb,'*Set\x20format:*\x20%0',_0x26b956['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x3a6bfb,'*Remove\x20format:*\x20%0',_0x26b956['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x26e18a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x127d31){super(_0x127d31),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x313571=this['editor'],_0x2fd0d2=_0x313571['model']['document']['selection'];if(!_0x313571['plugins']['has']('TableEditing'))return;const _0xea5a8d=_0x313571['locale'],_0x367bd9=_0x313571['plugins']['get']('TrackChangesEditing'),_0x5d05a0=_0x313571['plugins']['get']('TableUtils');_0x367bd9['descriptionFactory']['registerElementLabel']('table',_0x5e638c=>c(_0xea5a8d,'ELEMENT_TABLE',_0x5e638c)),this['_setupColumnsRowsFixing'](),_0x367bd9['enableCommand']('insertTable'),_0x367bd9['enableCommand']('selectTableRow'),_0x367bd9['enableCommand']('selectTableColumn');for(const _0x32c297 of['insertTableRowAbove','insertTableRowBelow']){const _0x429760=_0x313571['commands']['get'](_0x32c297);_0x367bd9['enableCommand'](_0x32c297,_0x5d2dab=>{_0x313571['model']['change'](_0x575d73=>{_0x5d2dab();const _0x4fc509='above'===_0x429760['order'],_0x2b6ed2=_0x5d05a0['getSelectionAffectedTableCells'](_0x2fd0d2),_0x5cbf1b=_0x5d05a0['getRowIndexes'](_0x2b6ed2),_0x208bfe=_0x4fc509?_0x5cbf1b['first']-0x1:_0x5cbf1b['last']+0x1,_0x42873a=_0x2b6ed2[0x0]['findAncestor']('table'),_0x1bf193=_0x5d05a0['createTableWalker'](_0x42873a,{'startRow':_0x208bfe,'endRow':_0x208bfe}),_0xe06bb6=Array['from'](_0x1bf193)['map'](_0x48ea21=>_0x575d73['createRangeOn'](_0x48ea21['cell']));_0x367bd9['markMultiRangeInsertion'](_0xe06bb6,'tableRow');});});}for(const _0x1edbd5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x24edd4=_0x313571['commands']['get'](_0x1edbd5);_0x367bd9['enableCommand'](_0x1edbd5,_0x1c2a1f=>{_0x313571['model']['change'](_0x214dd2=>{_0x1c2a1f();const _0x2857be='left'===_0x24edd4['order'],_0x2d93d7=_0x5d05a0['getSelectionAffectedTableCells'](_0x2fd0d2),_0x55c4db=_0x5d05a0['getColumnIndexes'](_0x2d93d7),_0x8441bd=_0x2857be?_0x55c4db['first']-0x1:_0x55c4db['last']+0x1,_0x163eec=_0x2d93d7[0x0]['findAncestor']('table'),_0x165a42=_0x5d05a0['createTableWalker'](_0x163eec,{'startRow':0x0,'column':_0x8441bd,'includeAllSlots':!0x1}),_0x3b6e1d=Array['from'](_0x165a42)['map'](_0xbf9e67=>_0x214dd2['createRangeOn'](_0xbf9e67['cell']));_0x367bd9['markMultiRangeInsertion'](_0x3b6e1d,'tableColumn');});});}for(const _0x4f863c of['removeTableRow','removeTableColumn']){const _0x19d7c0=_0x4f863c['substr'](0xb),_0x2720ef=_0x19d7c0['toLowerCase'](),_0x18484d=_0x2720ef['substr'](0x0,0x3)+'span',_0x4dc611='table'+_0x19d7c0,_0x45d861='min'+_0x19d7c0,_0x471ce8='max'+_0x19d7c0;_0x367bd9['enableCommand'](_0x4f863c,()=>{_0x313571['model']['change'](_0x5a9610=>{const _0x10ee84=_0x5d05a0['getSelectionAffectedTableCells'](_0x2fd0d2),_0x2f757b=_0x10ee84[0x0]['findAncestor']('table');let _0x33cf99;if('removeTableRow'==_0x4f863c){const _0x4f2d88=_0x5d05a0['getRowIndexes'](_0x10ee84);_0x33cf99={'startRow':_0x4f2d88['first'],'endRow':_0x4f2d88['last'],'includeAllSlots':!0x0};}else{const _0x1e785b=_0x5d05a0['getColumnIndexes'](_0x10ee84);_0x33cf99={'startColumn':_0x1e785b['first'],'endColumn':_0x1e785b['last'],'includeAllSlots':!0x0};}const _0x179508=_0x5d05a0['createTableWalker'](_0x2f757b,_0x33cf99),_0x35d08d=Array['from'](_0x179508)['map'](({cell:_0x3a3314})=>_0x3a3314),_0x32ae1d=Ne(_0x35d08d['filter'](_0x2192bd=>_0x2192bd['hasAttribute'](_0x18484d))),_0x5c8c23=Ne(_0x35d08d['filter'](_0x15180c=>!_0x15180c['hasAttribute'](_0x18484d)))['map'](_0x25aa0e=>_0x5a9610['createRangeOn'](_0x25aa0e)),_0x1472cc=_0x367bd9['markMultiRangeDeletion'](_0x5c8c23,_0x4dc611);if(_0x1472cc&&('tableRow'==_0x1472cc['subType']||'tableColumn'==_0x1472cc['subType'])){const _0x1830aa=this['_getSuggestionCoords'](_0x1472cc);for(const _0x3eac0d of _0x32ae1d){const _0x5ac87e=_0x5a9610['createRangeOn'](_0x3eac0d),_0x2fde3=_0x5d05a0['getCellLocation'](_0x3eac0d),_0x3cb982=_0x3eac0d['getAttribute'](_0x18484d)-0x1,_0x448c4c=_0x1830aa[_0x45d861],_0x2bd472=_0x1830aa[_0x471ce8];_0x448c4c<=_0x2fde3[_0x2720ef]&&_0x2fde3[_0x2720ef]+_0x3cb982<=_0x2bd472&&_0x1472cc['addRange'](_0x5ac87e);}}});});}function _0x5ae1b1(_0xcdfcc5){const _0x37593e=Array['from'](_0x2fd0d2['getRanges']())['map'](_0x2a1065=>_0x5eb1fc['fromRange'](_0x2a1065));_0x313571['model']['change'](_0x31e96b=>{const _0x401347=_0x31e96b['batch'];_0xcdfcc5=_0xcdfcc5['filter'](_0x22311f=>'$graveyard'!=_0x22311f['root']['rootName']),_0x31e96b['setSelection'](_0xcdfcc5),_0x313571['commands']['get']('removeTableRow')['refresh'](),_0x313571['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x313571['model']['enqueueChange'](()=>{_0x313571['model']['enqueueChange'](_0x401347,_0x4df97a=>{const _0x590214=_0x37593e['filter'](_0x2a80b6=>'$graveyard'!=_0x2a80b6['root']['rootName']);_0x590214['length']>0x0&&_0x4df97a['setSelection'](_0x590214);for(const _0x1c01ff of _0x37593e)_0x1c01ff['detach']();});});});}function _0x230dbe(_0xf9fe36){_0x313571['model']['change'](_0x53f8d0=>{const _0x19bb3f=Array['from'](_0x2fd0d2['getRanges']())['map'](_0x18b738=>_0x5eb1fc['fromRange'](_0x18b738)),_0x324219=[];for(const _0x22b76b of _0xf9fe36)for(const _0x2d2242 of _0x22b76b['getItems']({'shallow':!0x0}))_0x324219['push'](_0x2d2242);for(const _0x1857cd of _0x324219)'$graveyard'!=_0x1857cd['root']['rootName']&&(_0x53f8d0['setSelection'](_0x53f8d0['createPositionAt'](_0x1857cd,0x0)),_0x313571['commands']['get']('removeTableColumn')['refresh'](),_0x313571['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x102ea3=_0x19bb3f['filter'](_0x4527a2=>'$graveyard'!=_0x4527a2['root']['rootName']);_0x102ea3['length']>0x0&&_0x53f8d0['setSelection'](_0x102ea3);for(const _0x301ccf of _0x19bb3f)_0x301ccf['detach']();});}function _0x5bc84b(_0x2a1018,_0xdd9d5d){return _0xdd9d5d['every'](_0x35d028=>_0x2a1018['some'](_0x1e3348=>_0x1e3348['end']['isEqual'](_0x35d028['start'])||_0x35d028['end']['isEqual'](_0x1e3348['start'])));}function _0x3ca8b9(_0x4eaef7,_0x17adf7){return!_0x4eaef7['some'](_0x1905eb=>_0x17adf7['some'](_0x369d9c=>_0x1905eb['isIntersecting'](_0x369d9c)))&&_0x4eaef7['some'](_0x14ade1=>_0x17adf7['some'](_0x30263b=>_0x14ade1['end']['isTouching'](_0x30263b['start'])));}_0x313571['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x180f16,_0x418481,_0x24ded5)=>{if(!_0x24ded5['options']['showSuggestionHighlights'])return;const _0x21e662=_0x418481['item'];if(!_0x21e662)return;const _0x2a9cf6=_0x24ded5['mapper']['toViewElement'](_0x21e662);function _0x5e3f86(_0x34a718){return Array['isArray'](_0x34a718)?_0x34a718:[_0x34a718];}_0x2a9cf6&&'tableCell'===_0x21e662['name']&&_0x589369(_0x2a9cf6,_0x24ded5['writer'],(_0x5539ae,_0x4e9102,_0x3685a9)=>_0x3685a9['addClass'](_0x5e3f86(_0x4e9102['classes']),_0x5539ae),(_0x472797,_0x3351de,_0x5f4fae)=>_0x5f4fae['removeClass'](_0x5e3f86(_0x3351de['classes']),_0x472797));},{'priority':'highest'}),_0x367bd9['descriptionFactory']['registerDescriptionCallback'](_0xb0a758=>{if('insertion'!=_0xb0a758['type']&&'deletion'!=_0xb0a758['type'])return;const _0xbf4687=_0xb0a758['getContainedElement']();if(null!=_0xbf4687&&_0xbf4687['is']('element','table')){if('insertion'==_0xb0a758['type']){const _0x50b17b=_0xb0a758['getItems']()['filter'](_0x449300=>_0x449300['is']('$textProxy'))['map'](_0x4213e9=>_0x4213e9['data']);if(_0x50b17b['length'])return{'type':'insertion','content':c(_0xea5a8d,'*Insert:*\x20%0',c(_0xea5a8d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x50b17b['join']('\x20')+'\x22'))};}if('deletion'==_0xb0a758['type']){const _0x520255=_0xb0a758['getItems']()['filter'](_0x5c34cc=>_0x5c34cc['is']('$textProxy'))['map'](_0x234826=>_0x234826['data']);if(_0x520255['length'])return{'type':'deletion','content':c(_0xea5a8d,'*Remove:*\x20%0',c(_0xea5a8d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x520255['join']('\x20')+'\x22'))};}}}),_0x367bd9['descriptionFactory']['registerDescriptionCallback'](_0x1034a5=>{if('tableRow'==_0x1034a5['subType']){const _0x1c6a51=_0x1034a5['getItems']()['filter'](_0x2410f6=>_0x2410f6['is']('$textProxy'))['map'](_0x191d72=>_0x191d72['data']),_0x15e260=this['_getSuggestionCoords'](_0x1034a5),_0x5cfde9=_0x15e260['maxRow']-_0x15e260['minRow']+0x1;if('insertion'==_0x1034a5['type'])return _0x1c6a51['length']?{'type':'insertion','content':c(_0xea5a8d,'*Insert:*\x20%0',c(_0xea5a8d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cfde9,'\x22'+_0x1c6a51['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xea5a8d,'*Insert:*\x20%0',c(_0xea5a8d,'ELEMENT_TABLE_ROW',_0x5cfde9))};if('deletion'==_0x1034a5['type'])return _0x1c6a51['length']?{'type':'deletion','content':c(_0xea5a8d,'*Remove:*\x20%0',c(_0xea5a8d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cfde9,'\x22'+_0x1c6a51['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xea5a8d,'*Remove:*\x20%0',c(_0xea5a8d,'ELEMENT_TABLE_ROW',_0x5cfde9))};}if('tableColumn'==_0x1034a5['subType']){const _0x3086f9=_0x1034a5['getItems']()['filter'](_0x1f71fc=>_0x1f71fc['is']('$textProxy'))['map'](_0x2f600d=>_0x2f600d['data']),_0x562710=this['_getSuggestionCoords'](_0x1034a5),_0x54fdc7=_0x562710['maxColumn']-_0x562710['minColumn']+0x1;if('insertion'==_0x1034a5['type'])return _0x3086f9['length']?{'type':'insertion','content':c(_0xea5a8d,'*Insert:*\x20%0',c(_0xea5a8d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x54fdc7,'\x22'+_0x3086f9['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xea5a8d,'*Insert:*\x20%0',c(_0xea5a8d,'ELEMENT_TABLE_COLUMN',_0x54fdc7))};if('deletion'==_0x1034a5['type'])return _0x3086f9['length']?{'type':'deletion','content':c(_0xea5a8d,'*Remove:*\x20%0',c(_0xea5a8d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x54fdc7,'\x22'+_0x3086f9['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xea5a8d,'*Remove:*\x20%0',c(_0xea5a8d,'ELEMENT_TABLE_COLUMN',_0x54fdc7))};}}),_0x367bd9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5ae1b1),_0x367bd9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5ae1b1),_0x367bd9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x230dbe),_0x367bd9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x230dbe),_0x367bd9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5bc84b),_0x367bd9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5bc84b),_0x367bd9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3ca8b9),_0x367bd9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3ca8b9);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1100ee=this['editor'],_0x38842d=_0x1100ee['model']['document']['selection'];return(_0x1f234e,_0x299e0f)=>{_0x1100ee['model']['change'](_0x50b013=>{const {commandName:_0x2c72b,commandParams:_0x3634a7}=_0x299e0f;let _0x1c286e=_0x1f234e[0x0]['end']['nodeBefore'];_0x3634a7&&_0x3634a7[0x0]&&!0x1===_0x3634a7[0x0]['forceValue']&&(_0x1c286e=_0x1f234e[0x0]['start']['nodeAfter']);const _0x17434f=_0x50b013['createRangeIn'](_0x1c286e);if('$graveyard'==_0x17434f['root']['rootName'])return;const _0xc759bf=Array['from'](_0x38842d['getRanges']())['map'](_0xfa42fc=>_0x5eb1fc['fromRange'](_0xfa42fc));_0x50b013['setSelection'](_0x17434f),_0x1100ee['commands']['get'](_0x2c72b)['refresh'](),_0x3634a7['push']({'forceDefaultExecution':!0x0}),_0x1100ee['execute'](_0x2c72b,..._0x3634a7);const _0xeb1e8f=_0xc759bf['filter'](_0x24b83d=>'$graveyard'!=_0x24b83d['root']['rootName']);_0xeb1e8f['length']>0x0&&_0x50b013['setSelection'](_0xeb1e8f);for(const _0x4f92c6 of _0xc759bf)_0x4f92c6['detach']();});};}['_getCoordsForCells'](_0x1db0cf){const _0x1713bb=this['editor']['plugins']['get']('TableUtils');let _0x12d345=Number['MAX_SAFE_INTEGER'],_0x46b819=Number['MIN_SAFE_INTEGER'],_0xa28607=Number['MAX_SAFE_INTEGER'],_0x11ab67=Number['MIN_SAFE_INTEGER'];for(const _0x35c035 of _0x1db0cf){if('$graveyard'==_0x35c035['root']['rootName'])continue;const {row:_0x1e24ec,column:_0x2f3498}=_0x1713bb['getCellLocation'](_0x35c035),_0x5c0e59=_0x35c035['hasAttribute']('rowspan')?_0x35c035['getAttribute']('rowspan')-0x1:0x0,_0x12a987=_0x35c035['hasAttribute']('colspan')?_0x35c035['getAttribute']('colspan')-0x1:0x0;_0x12d345=_0x1e24ec<_0x12d345?_0x1e24ec:_0x12d345,_0x46b819=_0x1e24ec+_0x5c0e59>_0x46b819?_0x1e24ec+_0x5c0e59:_0x46b819,_0xa28607=_0x2f3498<_0xa28607?_0x2f3498:_0xa28607,_0x11ab67=_0x2f3498+_0x12a987>_0x11ab67?_0x2f3498+_0x12a987:_0x11ab67;}return{'minRow':_0x12d345,'maxRow':_0x46b819,'minColumn':_0xa28607,'maxColumn':_0x11ab67};}['_setupColumnsRowsFixing'](){const _0x308fd4=this['editor'],_0x26871a=_0x308fd4['plugins']['get']('TrackChangesEditing'),_0x4f8ab2=_0x308fd4['plugins']['get']('TableUtils');_0x308fd4['model']['document']['on']('change:data',()=>{const _0x3b9818=Array['from'](_0x308fd4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf29b10,data:_0x1ee491}of _0x3b9818){const {group:_0x337479,id:_0x3a03bd,subType:_0x55ed74}=_0x26871a['_splitMarkerName'](_0xf29b10);if('suggestion'!=_0x337479)continue;if(null!=_0x1ee491['oldRange'])continue;const _0x124942=_0x26871a['getSuggestion'](_0x3a03bd);this['_tablePostFixingSubtypes']['includes'](_0x55ed74)&&this['_tableSuggestions']['add'](_0x124942);}},{'priority':'low'});const _0x18f194=(_0x2addb8,_0xb8881c)=>{let _0x4d0559=!0x1;const _0x55a30b=_0xb8881c['createRangeOn'](_0x2addb8),_0x437b30=_0x2addb8['findAncestor']('table'),_0x25f52c=_0x4f8ab2['getCellLocation'](_0x2addb8);for(const _0x449cfb of this['_tableSuggestions']){const _0x36a25f=_0x449cfb['subType'],_0x99ae67=_0x36a25f['startsWith']('tablePaste'),_0x175dae=_0x36a25f['substr'](_0x99ae67?0xa:0x5),_0x20d918=_0x175dae['toLowerCase'](),_0x3f4b5f=_0x20d918['substr'](0x0,0x3)+'span',_0x381ab5='min'+_0x175dae,_0x62f3fe='max'+_0x175dae;if(!_0x449cfb['isInContent'])continue;if(_0x437b30!=_0x449cfb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x449cfb['isIntersectingWithRange'](_0x55a30b))continue;const _0x5502c0=_0x2addb8['hasAttribute'](_0x3f4b5f)?_0x2addb8['getAttribute'](_0x3f4b5f)-0x1:0x0,_0x121245=this['_getSuggestionCoords'](_0x449cfb),_0x5d2ca7=_0x121245[_0x381ab5],_0x32fede=_0x121245[_0x62f3fe];_0x5d2ca7<=_0x25f52c[_0x20d918]&&_0x25f52c[_0x20d918]+_0x5502c0<=_0x32fede&&(_0x449cfb['addRange'](_0x55a30b),_0x4d0559=!0x0);}return _0x4d0559;};_0x308fd4['model']['document']['registerPostFixer'](_0x53b0fb=>{let _0x5a9388=!0x1;for(const _0x30a868 of _0x308fd4['model']['document']['differ']['getChanges']())if('insert'==_0x30a868['type']){if('tableRow'==_0x30a868['name']){for(const _0x3a3387 of _0x30a868['position']['nodeAfter']['getChildren']())_0x5a9388=_0x5a9388||_0x18f194(_0x3a3387,_0x53b0fb);}else'tableCell'==_0x30a868['name']&&(_0x5a9388=_0x5a9388||_0x18f194(_0x30a868['position']['nodeAfter'],_0x53b0fb));}return _0x5a9388;});}['_getSuggestionCoords'](_0x15cfa9){return this['_getCoordsForCells'](_0x15cfa9['getRanges']()['map'](_0x477a4c=>_0x477a4c['start']['nodeAfter']));}}function Ne(_0x52a5c0){return Array['from'](new Set(_0x52a5c0)['values']());}class Nt extends _0x26e18a{static get['requires'](){return[Ct];}['afterInit'](){const _0x21928c=this['editor'],_0x37abd1=_0x21928c['model']['document']['selection'],_0x4b798a=_0x21928c['locale'];if(!_0x21928c['plugins']['has']('TableEditing'))return;const _0x5a5f9e=_0x21928c['plugins']['get']('TrackChangesEditing'),_0x36eea4=_0x21928c['plugins']['get']('TableUtils'),_0xed731e=_0x21928c['plugins']['get'](Ct);_0xed731e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5a5f9e['enableCommand']('mergeTableCells',()=>{const _0x207050=_0x36eea4['getSelectionAffectedTableCells'](_0x21928c['model']['document']['selection']);_0x21928c['model']['change'](()=>{_0x5a5f9e['markMultiRangeBlockFormat'](_0x207050,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x21928c['commands']['get']('mergeTableCells')['on']('execute',(_0xf6dcb,_0x22a406)=>{_0x21928c['commands']['get']('trackChanges')['value']&&(_0x22a406['length']>0x0&&_0x22a406[_0x22a406['length']-0x1]&&_0x22a406[_0x22a406['length']-0x1]['forceDefaultExecution']||_0x5a5f9e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xf6dcb['stop']());},{'priority':'highest'});for(const _0x21023f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x36923f=_0x21928c['commands']['get'](_0x21023f);_0x5a5f9e['enableCommand'](_0x21023f,()=>{const _0xc0cb57=_0x21928c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4bbcfa=>_0x4bbcfa['is']('element','tableCell')),_0x1293eb=_0x36923f['value'];_0x21928c['model']['change'](()=>{_0x5a5f9e['markMultiRangeBlockFormat']([_0xc0cb57,_0x1293eb],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1ec321 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3727c5=_0x21928c['commands']['get'](_0x1ec321);_0x5a5f9e['enableCommand'](_0x1ec321,()=>{const _0x2bd98d=_0x36eea4['getSelectionAffectedTableCells'](_0x21928c['model']['document']['selection'])[0x0],_0x5e5acc=_0x2bd98d['findAncestor']('table'),{column:_0x6e333d,row:_0x38a7e2}=_0x36eea4['getCellLocation'](_0x2bd98d);let _0x3bf45d=[];if('horizontally'==_0x3727c5['direction']){const _0x5232fd=_0x36eea4['createTableWalker'](_0x5e5acc,{'startRow':_0x38a7e2,'endRow':_0x38a7e2,'includeAllSlots':!0x0});_0x3bf45d=Array['from'](_0x5232fd)['map'](_0xe76f29=>_0xe76f29['cell']);}else{const _0x38c191=_0x36eea4['createTableWalker'](_0x5e5acc,{'column':_0x6e333d,'includeAllSlots':!0x0});_0x3bf45d=Array['from'](_0x38c191)['map'](_0x52463f=>_0x52463f['cell']);}_0x21928c['model']['change'](_0x55e69d=>{_0x5a5f9e['markBlockFormat'](_0x55e69d['createRangeOn'](_0x2bd98d),{'commandName':_0x1ec321,'commandParams':[]},_0x3bf45d,_0x1ec321);});});}_0x5a5f9e['descriptionFactory']['registerDescriptionCallback'](_0x5d3534=>{if('formatBlock'!=_0x5d3534['type']&&'formatInline'!=_0x5d3534['type'])return;const {data:_0x3f1c7a}=_0x5d3534;return _0x3f1c7a&&'mergeTableCells'==_0x3f1c7a['commandName']?{'type':'format','content':c(_0x4b798a,'*Merge\x20cells*')}:void 0x0;}),_0x5a5f9e['descriptionFactory']['registerDescriptionCallback'](_0x5e063b=>{if('formatBlock'!=_0x5e063b['type']&&'formatInline'!=_0x5e063b['type'])return;const {data:_0x2ed4e7}=_0x5e063b;return _0x2ed4e7?'splitTableCellVertically'==_0x2ed4e7['commandName']?{'type':'format','content':c(_0x4b798a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2ed4e7['commandName']?{'type':'format','content':c(_0x4b798a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x25bce9=_0xed731e['_acceptFormatSuggestionCallbackFactory']();for(const _0x35ea51 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5a5f9e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x35ea51,'accept',_0x25bce9);for(const _0x17b734 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5a5f9e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x17b734,'accept',_0x25bce9);_0x5a5f9e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x140392=>{_0x21928c['model']['change'](_0x5ca6d7=>{const _0x558b7d=Array['from'](_0x37abd1['getRanges']())['map'](_0x44cebb=>_0x5eb1fc['fromRange'](_0x44cebb));_0x5ca6d7['setSelection'](_0x140392),_0x21928c['commands']['get']('mergeTableCells')['refresh'](),_0x21928c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4b9709=_0x558b7d['filter'](_0x257444=>'$graveyard'!=_0x257444['root']['rootName']);_0x4b9709['length']>0x0&&_0x5ca6d7['setSelection'](_0x4b9709);for(const _0x5aef07 of _0x558b7d)_0x5aef07['detach']();});});for(const _0x5f5813 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4924f8=_0x21928c['commands']['get'](_0x5f5813);_0x4924f8['on']('set:isEnabled',(_0x18d803,_0x3b062c,_0x5566eb)=>{if(_0x5566eb){const _0x376ce5=_0x21928c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x59cda7=>_0x59cda7['is']('element','tableCell'));this['_areMergableCells'](_0x4924f8['value'],_0x376ce5)||(_0x18d803['return']=!0x1,_0x18d803['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5eabee=this['editor']['commands']['get']('mergeTableCells'),_0x2a8e09=this['editor']['plugins']['get']('TableUtils');if(!_0x5eabee['isEnabled'])return!0x1;const _0x3c843e=_0x2a8e09['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x247d0e of _0x3c843e)for(const _0x1f34d8 of _0x3c843e)if(_0x247d0e!=_0x1f34d8&&!this['_areMergableCells'](_0x247d0e,_0x1f34d8))return!0x1;return!0x0;}['_areMergableCells'](_0x41f336,_0x3920e9){const _0x3bdd10=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31fac7=this['editor']['model']['createRangeOn'](_0x41f336),_0x2b262a=this['editor']['model']['createRangeOn'](_0x3920e9),_0x24b790=new Set(),_0x2ee001=new Set();for(const _0x1d8dda of _0x3bdd10['getSuggestions']())if(('insertion'==_0x1d8dda['type']||'deletion'==_0x1d8dda['type']||'mergeTableCells'==_0x1d8dda['subType'])&&_0x1d8dda['isInContent']){for(const _0x180e2a of _0x1d8dda['getRanges']())_0x180e2a['containsRange'](_0x31fac7,!0x0)&&_0x24b790['add'](_0x1d8dda['type']+':'+_0x1d8dda['author']['id']),_0x180e2a['containsRange'](_0x2b262a,!0x0)&&_0x2ee001['add'](_0x1d8dda['type']+':'+_0x1d8dda['author']['id']);}if(_0x24b790['size']!=_0x2ee001['size'])return!0x1;for(const _0x23ced1 of _0x24b790)if(!_0x2ee001['has'](_0x23ced1))return!0x1;return!0x0;}}class Dt extends _0x26e18a{static get['requires'](){return[Ct];}['afterInit'](){const _0x30a80e=this['editor'];if(!_0x30a80e['plugins']['has']('TableEditing'))return;const _0x54d1b7=_0x30a80e['locale'],_0x291c4d=_0x30a80e['plugins']['get']('TrackChangesEditing');_0x291c4d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x291c4d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x291c4d['registerBlockAttribute']('headingRows'),_0x291c4d['registerBlockAttribute']('headingColumns'),_0x291c4d['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x54d1b7,'FORMAT_HEADER_ROW')),_0x291c4d['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x54d1b7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1f30e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x182aff=this['editor']['plugins']['get']('TableUtils'),_0x5b5e1d=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x4a88e3({showActiveMarker:_0x207db4=!0x0,setDataAttribute:_0x30fd82=!0x0}={}){return(_0x12c1c3,_0x13bb6b,_0x5aadd9)=>{const {type:_0x5c81f6,id:_0x4aff76}=_0x1f30e1['_splitMarkerName'](_0x13bb6b['markerName']),_0x5f490e=_0x1f30e1['getSuggestion'](_0x4aff76),_0x1911d7=_0x5f490e['data'];if('formatBlock'!=_0x5f490e['type']||!_0x1911d7||'setTableColumnHeader'!=_0x1911d7['commandName'])return;if(_0x13bb6b['item'])return void _0x12c1c3['stop']();if(!_0x5aadd9['consumable']['consume'](_0x13bb6b['markerRange'],_0x12c1c3['name']))return;const _0x529a14=_0x13bb6b['markerRange']['start']['nodeAfter'],_0x2379b7=_0x13bb6b['markerRange']['end']['nodeBefore'],_0x357c4c=_0x529a14['parent']['parent'],{column:_0x52df4c}=_0x182aff['getCellLocation'](_0x529a14),{column:_0x2f58d0}=_0x182aff['getCellLocation'](_0x2379b7);for(let _0x3e3b0e=_0x52df4c;_0x3e3b0e<=_0x2f58d0;_0x3e3b0e++){const _0xf9132f=_0x182aff['createTableWalker'](_0x357c4c,{'column':_0x3e3b0e,'includeAllSlots':!0x1});for(const _0x585db0 of _0xf9132f){const _0x4fe625=_0x585db0['cell'],_0x88fc36=_0x5aadd9['mapper']['toViewElement'](_0x4fe625);_0x5aadd9['writer']['addClass']('ck-suggestion-marker-'+_0x5c81f6,_0x88fc36),_0x30fd82&&_0x5aadd9['writer']['setAttribute']('data-suggestion',_0x4aff76,_0x88fc36),_0x5aadd9['mapper']['bindElementToMarker'](_0x88fc36,_0x13bb6b['markerName']),_0x207db4&&(_0x1f30e1['activeMarkers']['includes'](_0x13bb6b['markerName'])?_0x5aadd9['writer']['addClass']('ck-suggestion-marker--active',_0x88fc36):_0x5aadd9['writer']['removeClass']('ck-suggestion-marker--active',_0x88fc36));}}};}_0x1f30e1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5b5e1d),_0x1f30e1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5b5e1d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4a88e3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x42ab21,_0x4334bf,_0x46047c)=>{_0x46047c['options']['showSuggestionHighlights']&&_0x4a88e3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x42ab21,_0x4334bf,_0x46047c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x236070,_0x3fdadb,_0x4239ee)=>{const {type:_0x53665e,id:_0x5c8705}=_0x1f30e1['_splitMarkerName'](_0x3fdadb['markerName']),_0x5b4265=_0x1f30e1['getSuggestion'](_0x5c8705),_0x402cd3=_0x5b4265['data'];if('formatBlock'!=_0x5b4265['type']||!_0x402cd3||'setTableColumnHeader'!=_0x402cd3['commandName'])return;const _0x531b1b=_0x4239ee['mapper']['markerNameToElements'](_0x3fdadb['markerName']);if(_0x531b1b){for(const _0xd40aa8 of _0x531b1b)_0x4239ee['writer']['removeClass']('ck-suggestion-marker-'+_0x53665e,_0xd40aa8),_0x4239ee['writer']['removeClass']('ck-suggestion-marker--active',_0xd40aa8),_0x4239ee['writer']['removeAttribute']('data-suggestion',_0xd40aa8),_0x4239ee['mapper']['unbindElementFromMarkerName'](_0xd40aa8,_0x3fdadb['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a6a3c=this['editor'],_0x2f4b33=_0x1a6a3c['locale'];function _0x3bbdde(_0x4cfbbd){return{'type':'format','content':c(_0x2f4b33,'*Format:*\x20%0',_0x4cfbbd)};}_0x1a6a3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28ef09=>{if('formatBlock'!=_0x28ef09['type'])return;const {data:_0x262424}=_0x28ef09;if(_0x262424){if('setTableRowHeader'==_0x262424['commandName']){const _0x24594d=_0x262424['commandParams'][0x0]['forceValue'];return _0x3bbdde(c(_0x2f4b33,_0x24594d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x262424['commandName']){const _0x202c18=_0x262424['commandParams'][0x0]['forceValue'];return _0x3bbdde(c(_0x2f4b33,_0x202c18?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x26e18a{['afterInit'](){const _0x5d65d9=this['editor'],_0x482789=_0x5d65d9['locale'],_0x30b330=_0x5d65d9['plugins']['get']('TrackChangesEditing');function _0x2bb239(_0x914fdb){return{'type':'format','content':''+c(_0x482789,'*Set\x20table\x20type:*\x20%0',_0x914fdb)};}_0x5d65d9['plugins']['has']('TableLayout')&&(_0x30b330['enableCommand']('insertTableLayout'),_0x30b330['enableDefaultAttributesIntegration']('tableType'),_0x30b330['registerBlockAttribute']('tableType'),_0x30b330['descriptionFactory']['registerElementLabel'](_0x1966aa=>_0x1966aa['is']('element','table')&&'layout'===_0x1966aa['getAttribute']('tableType'),_0x29c30a=>c(_0x482789,'ELEMENT_LAYOUT_TABLE',_0x29c30a)),_0x30b330['descriptionFactory']['registerDescriptionCallback'](_0xc7a5ef=>{const {data:_0x2cf4eb}=_0xc7a5ef;if(_0x2cf4eb&&'tableType'==_0x2cf4eb['key'])switch(_0x2cf4eb['newValue']){case'layout':return _0x2bb239(c(_0x482789,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2bb239(c(_0x482789,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x37e615=>[_0x37e615,null]));class $t extends _0x26e18a{static get['requires'](){return[Ct];}['afterInit'](){const _0x5b1f57=this['editor'];if(!_0x5b1f57['plugins']['has']('TableClipboard'))return;const _0x2539f8=_0x5b1f57['plugins']['get']('TrackChangesEditing'),_0x2cb880=_0x5b1f57['plugins']['get']('TableUtils'),_0x288034=_0x5b1f57['plugins']['get'](Ct),_0x429735=_0x5b1f57['plugins']['get']('TableClipboard'),_0x1d8440=_0x5b1f57['plugins']['get']('TableSelection'),_0x57469b=_0x5b1f57['plugins']['get'](_0x23389f);_0x288034['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5b1f57['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5b1f57['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4475dd=null,_0x221370=!0x1;_0x57469b['on']('contentInsertion',(_0x314096,_0x52911d)=>{_0x221370='paste'===_0x52911d['method'];}),_0x5b1f57['model']['on']('insertContent',(_0x12ebc3,_0x50926a)=>{if(!_0x221370&&null===_0x1d8440['getSelectedTableCells']())return;const [_0x46dc3f,_0xb3a75a]=_0x50926a,_0x5b86e4=_0x50926a[_0x50926a['length']-0x1];_0x5b86e4&&_0x5b86e4['forceDefaultExecution']||_0x2539f8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x69a838,_0x217c56,_0x3ee157,_0x58ac16,_0x5d6599){if(_0x217c56&&!_0x217c56['is']('documentSelection'))return!0x1;const _0x314746=_0x5d6599['getTableIfOnlyTableInContent'](_0x69a838,_0x3ee157);if(!_0x314746||!De(_0x314746,void 0x0,_0x58ac16))return!0x1;const _0x1768e1=_0x58ac16['getSelectionAffectedTableCells'](_0x3ee157['document']['selection']);if(!_0x1768e1['length'])return!0x1;const _0x5c71c7=_0x1768e1[0x0]['findAncestor']('table'),_0x2e1227=_0x58ac16['getRowIndexes'](_0x1768e1),_0x3c0ceb=_0x58ac16['getColumnIndexes'](_0x1768e1),_0x141a3f={'startRow':_0x2e1227['first'],'endRow':_0x2e1227['last'],'startColumn':_0x3c0ceb['first'],'endColumn':_0x3c0ceb['last']};return 0x1==_0x1768e1['length']&&(_0x141a3f['endRow']+=_0x58ac16['getRows'](_0x314746)-0x1,_0x141a3f['endColumn']+=_0x58ac16['getColumns'](_0x314746)-0x1),De(_0x5c71c7,_0x141a3f,_0x58ac16);}(_0x46dc3f,_0xb3a75a,_0x5b1f57['model'],_0x2cb880,_0x429735)&&(_0x12ebc3['stop'](),_0x4475dd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5b1f57['model']['change'](()=>{_0x5b1f57['model']['insertContent'](_0x50926a[0x0],_0x50926a[0x1],_0x50926a[0x2],{'forceDefaultExecution':!0x0});const _0x36d002=_0x4cee4c(),{rowInsertionRanges:_0x315f3a,columnInsertionRanges:_0x2b1ca1,insertionRanges:_0x26eff0,deletionRanges:_0x33e91b,cells:_0xe7fc2f}=_0x4475dd;_0x315f3a['length']&&_0x2539f8['markMultiRangeInsertion'](_0x315f3a,'tablePasteRow',{'tablePasteChainId':_0x36d002}),_0x2b1ca1['length']&&_0x2539f8['markMultiRangeInsertion'](_0x2b1ca1,'tablePasteColumn',{'tablePasteChainId':_0x36d002}),_0x26eff0['length']&&(_0x2539f8['markMultiRangeInsertion'](_0x26eff0,'tablePaste',{'tablePasteChainId':_0x36d002,'skipNestingCheck':!0x0}),_0x26eff0['forEach'](_0x2474aa=>_0x2474aa['detach']?.())),_0x33e91b['length']&&(_0x2539f8['markMultiRangeDeletion'](_0x33e91b,'tablePaste',{'tablePasteChainId':_0x36d002,'skipNestingCheck':!0x0}),_0x33e91b['forEach'](_0x25db73=>_0x25db73['detach']?.()));const _0x1455ec=_0x2539f8['markMultiRangeBlockFormat'](_0xe7fc2f['map'](({element:_0x10453c})=>_0x10453c),{'formatGroupId':_0x4cee4c()},[],'tablePasteCell',{'tablePasteChainId':_0x36d002});if(_0x1455ec){const _0x50863b=_0x1455ec['getMarkers'](),_0x3da511=[];for(const {element:_0x2006c7,attributes:_0x161d1b}of _0xe7fc2f){if(!_0x161d1b)continue;const _0x54c68d=_0x5b1f57['model']['createRangeOn'](_0x2006c7),_0x557b04=_0x50863b['find'](_0x49fc6a=>_0x49fc6a['getRange']()['isEqual'](_0x54c68d));_0x557b04&&_0x3da511['push']([_0x557b04['name'],_0x161d1b]);}_0x3da511['length']&&_0x1455ec['setAttribute']('markerAttributes',Object['fromEntries'](_0x3da511));}_0x4475dd=null;}));},{'priority':_0x51421a['high']+0xa}),_0x57469b['on']('contentInsertion',()=>{_0x221370=!0x1;},{'priority':'lowest'}),_0x5b1f57['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x26c1a0,_0x1d70a2)=>{const [_0x4cb8a3,_0x12d96c,,_0x1d668d]=_0x1d70a2;if(!_0x4475dd)return;_0x26c1a0['stop']();const _0x946653=_0x4cb8a3['cell'],_0x195c9b=_0x12d96c,_0x44d608=Ue(_0x946653),_0x4719fc=Ue(_0x195c9b);_0x26c1a0['return']=_0x946653;let _0x599efc=null,_0x287ff2=null;if(_0x4719fc||_0x44d608){if(_0x44d608&&!_0x4719fc){_0x1d668d['remove'](_0x946653['getChild'](0x0));for(const _0x5dba8e of Array['from'](_0x195c9b['getChildren']()))_0x1d668d['insert'](_0x5dba8e,_0x946653,'end');const _0x110f71=_0x4475dd['rowInsertionIndexes']['includes'](_0x4cb8a3['row']),_0xac8865=_0x4475dd['columnInsertionIndexes']['includes'](_0x4cb8a3['column']);_0x110f71||_0xac8865||(_0x599efc=_0x5eb1fc['fromRange'](_0x1d668d['createRangeIn'](_0x946653)));}else _0x4719fc&&!_0x44d608&&(_0x287ff2=_0x1d668d['createRangeIn'](_0x946653));}else{const _0x5e3179=_0x1d668d['createElement']('tableCellSuggestion'),_0x3fccaf=_0x1d668d['createElement']('tableCellSuggestion');_0x1d668d['wrap'](_0x1d668d['createRangeIn'](_0x946653),_0x3fccaf),_0x1d668d['insert'](_0x5e3179,_0x946653,0x0);for(const _0x2c999f of Array['from'](_0x195c9b['getChildren']()))_0x1d668d['insert'](_0x2c999f,_0x5e3179,'end');_0x599efc=_0x5eb1fc['fromRange'](_0x1d668d['createRangeOn'](_0x5e3179)),_0x287ff2=_0x5eb1fc['fromRange'](_0x1d668d['createRangeOn'](_0x3fccaf));}const _0x149c3b=Array['from'](_0x195c9b['getAttributes']())['filter'](([_0x58f66b])=>xe['includes'](_0x58f66b));_0x4475dd['cells']['push']({'element':_0x946653,'attributes':_0x149c3b['length']?Object['fromEntries'](_0x149c3b):null}),_0x599efc&&_0x4475dd['insertionRanges']['push'](_0x599efc),_0x287ff2&&_0x4475dd['deletionRanges']['push'](_0x287ff2);},{'priority':'high'}),_0x2cb880['on']('insertColumns',(_0xca8445,_0x20e17b)=>{const [_0xd82bb8,_0x5ef849={}]=_0x20e17b;if(!_0x4475dd)return;const _0x44678e=_0x5ef849['at']||0x0,_0x4dd319=_0x5ef849['columns']||0x1;_0x4475dd['columnInsertionIndexes']=new Array(_0x4dd319)['fill'](_0x44678e)['map']((_0x53c63b,_0x1dd5c7)=>_0x53c63b+_0x1dd5c7);for(const {cell:_0x4dd21f}of _0x2cb880['createTableWalker'](_0xd82bb8,{'startColumn':_0x44678e,'endColumn':_0x44678e+_0x4dd319-0x1}))_0x4475dd['columnInsertionRanges']['push'](_0x5b1f57['model']['createRangeOn'](_0x4dd21f));},{'priority':'low'}),_0x2cb880['on']('insertRows',(_0x123553,_0xe2f99a)=>{const [_0x1d8b7f,_0x19d248={}]=_0xe2f99a;if(!_0x4475dd)return;const _0x455d26=_0x19d248['at']||0x0,_0x4aaeba=_0x19d248['rows']||0x1;_0x4475dd['rowInsertionIndexes']=new Array(_0x4aaeba)['fill'](_0x455d26)['map']((_0x255ff8,_0x293416)=>_0x255ff8+_0x293416);for(const {cell:_0xcb8aef}of _0x2cb880['createTableWalker'](_0x1d8b7f,{'startRow':_0x455d26,'endRow':_0x455d26+_0x4aaeba-0x1}))_0x4475dd['rowInsertionRanges']['push'](_0x5b1f57['model']['createRangeOn'](_0xcb8aef));},{'priority':'low'}),_0x2539f8['descriptionFactory']['registerDescriptionCallback'](_0x367d91=>{if(_0x367d91['subType']&&_0x367d91['subType']['startsWith']('tablePaste'))return _0x367d91['previous']?{}:{'type':'insertion','content':c(_0x5b1f57['locale'],'*Replace\x20table\x20cells*')};});const _0x3cc7ec=()=>!0x1;for(const _0x19cd4e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2539f8['_suggestionFactory']['registerCustomCallback']('insertion',_0x19cd4e,'join',_0x3cc7ec),_0x2539f8['_suggestionFactory']['registerCustomCallback']('deletion',_0x19cd4e,'join',_0x3cc7ec),_0x2539f8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x19cd4e,'join',_0x3cc7ec);_0x2539f8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3cc7ec),_0x2539f8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3cc5d8,_0x32ca73,_0x3e27a6)=>{const _0xee6142=_0x3cc5d8['map'](_0x5da4cc=>_0x5da4cc['getContainedElement']())['filter'](_0x21b355=>_0x21b355),_0x9ab3d4=new Map(_0xee6142['map'](_0x46a25e=>[_0x46a25e,null]));if(_0x4475dd){for(const {element:_0x7dc184,attributes:_0xa02a32}of _0x4475dd['cells'])_0xa02a32&&_0x9ab3d4['set'](_0x7dc184,_0xa02a32);}else{if(_0x3e27a6&&_0x3e27a6['markerAttributes'])for(const [_0x4c0785,_0x210da5]of Object['entries'](_0x3e27a6['markerAttributes'])){const _0x5c59fc=_0x5b1f57['model']['markers']['get'](_0x4c0785),_0x20e0d8=_0x5c59fc?_0x5c59fc['getRange']()['getContainedElement']():null;_0x20e0d8&&_0x9ab3d4['set'](_0x20e0d8,_0x210da5);}}_0x5b1f57['model']['change'](_0x4a6520=>{for(const [_0x2a8437,_0x416afc]of _0x9ab3d4)_0x4a6520['setAttributes']({...Oe,..._0x416afc},_0x2a8437);});});const _0x285a6c=(_0x3659ef,_0x1e9e80)=>{_0x2539f8['_suggestionFactory']['registerCustomCallback'](_0x3659ef,'tablePaste',_0x1e9e80,(_0x18661d,_0x29123c,_0xa8e853)=>{_0x5b1f57['model']['change'](_0x536f63=>{const _0x100747=[];for(const _0x19e07b of _0x18661d){const _0x9699d6=_0x19e07b['start']['nodeAfter'];_0x9699d6['is']('element','tableCellSuggestion')&&_0x100747['push'](_0x9699d6);}_0x2539f8['_suggestionFactory']['getSuggestionCallback'](_0x3659ef,null,_0x1e9e80)(_0x18661d,_0x29123c,_0xa8e853);for(const _0x41b5eb of _0x100747)'$graveyard'!=_0x41b5eb['root']['rootName']&&_0x536f63['unwrap'](_0x41b5eb);});});};_0x285a6c('insertion','accept'),_0x285a6c('insertion','discard'),_0x285a6c('deletion','accept'),_0x285a6c('deletion','discard'),_0x2539f8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x178aa4=>{const _0x40a8aa=_0x178aa4['map'](_0x19a80d=>_0x19a80d['getContainedElement']()),_0x4cc232=_0x40a8aa[0x0]['findAncestor']('table'),{minRow:_0x25d8bb,maxRow:_0x46a2ac}=_0x288034['_getCoordsForCells'](_0x40a8aa);_0x2cb880['removeRows'](_0x4cc232,{'at':_0x25d8bb,'rows':_0x46a2ac-_0x25d8bb+0x1});}),_0x2539f8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5e83bf=>{const _0x39ef7f=_0x5e83bf['map'](_0x23f3fd=>_0x23f3fd['getContainedElement']()),_0x5dbeb1=_0x39ef7f[0x0]['findAncestor']('table'),{minColumn:_0x2ffce7,maxColumn:_0x124799}=_0x288034['_getCoordsForCells'](_0x39ef7f);_0x2cb880['removeColumns'](_0x5dbeb1,{'at':_0x2ffce7,'columns':_0x124799-_0x2ffce7+0x1});});const _0x6deb37=(_0x460106,_0x31abc3)=>{if(!_0x31abc3['subType']||!_0x31abc3['subType']['startsWith']('tablePaste'))return;const _0x2c7298=_0x31abc3['attributes']['tablePasteChainId'],_0x14dcfd=_0x2539f8['getSuggestions']()['filter'](_0x277993=>_0x277993['isInContent']&&_0x277993['attributes']&&_0x277993['attributes']['tablePasteChainId']==_0x2c7298);_0x14dcfd['length']&&_0x31abc3['getAllAdjacentSuggestions']()['length']!=_0x14dcfd['length']&&_0x14dcfd['reduce']((_0x3796d2,_0x596e40)=>(_0x3796d2['next']=_0x596e40,_0x596e40['previous']=_0x3796d2,_0x596e40));};function _0x2cc5ed(_0x3a03b4,_0x4d923d=!0x0){const {id:_0x204e84,authorId:_0x249a33}=_0x2539f8['_splitMarkerName'](_0x3a03b4['markerName']),_0xbf9b8e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4f2f6c=_0x2539f8['activeMarkers']['includes'](_0x3a03b4['markerName']);return _0x4f2f6c&&_0xbf9b8e['push']('ck-suggestion-marker--active'),{'classes':_0xbf9b8e,'attributes':{'data-suggestion':_0x204e84,'data-author-id':_0x249a33},'priority':_0x4f2f6c&&_0x4d923d?0xbc2:0xbb8};}_0x2539f8['on']('suggestionLoaded',_0x6deb37,{'priority':'high'}),_0x2539f8['on']('suggestionUnloaded',_0x6deb37,{'priority':'high'}),_0x5b1f57['model']['document']['registerPostFixer'](()=>{let _0x4bb919=!0x1;const _0x15ed19=Array['from'](_0x5b1f57['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22be47,data:_0x49ad77}of _0x15ed19){const {group:_0x18be4f,type:_0x5da138,id:_0x40a4be}=_0x2539f8['_splitMarkerName'](_0x22be47);if('suggestion'!=_0x18be4f||'deletion'!=_0x5da138||_0x49ad77['oldRange'])continue;if(!_0x2539f8['hasSuggestion'](_0x40a4be))continue;const _0x39443d=_0x2539f8['getSuggestion'](_0x40a4be)['getRanges'](),_0x2a90ee=_0x5b1f57['plugins']['get']('Users')['me'];for(const _0x4b0a6a of _0x2539f8['getSuggestions']()){if(!_0x4b0a6a['isInContent']||_0x4b0a6a['author']!=_0x2a90ee)continue;if('formatBlock'!=_0x4b0a6a['type']||'tablePasteCell'!=_0x4b0a6a['subType'])continue;if(_0x4b0a6a['getRanges']()['every'](_0x280007=>_0x39443d['some'](_0x4972ee=>_0x4972ee['containsRange'](_0x280007,!0x0)))){for(const _0x4da974 of _0x4b0a6a['getAllAdjacentSuggestions']())_0x4da974['isInContent']&&(_0x4da974['discard'](),_0x4bb919=!0x0);}}}return _0x4bb919;}),_0x5b1f57['model']['document']['registerPostFixer'](_0x214979=>{const _0x757056=_0x5b1f57['commands']['get']('redo');if(!_0x757056||!_0x757056['_createdBatches']['has'](_0x214979['batch']))return!0x1;let _0xbe01f7=!0x1;const _0x3d9638=_0x5b1f57['plugins']['get']('Users')['me'],_0x2905c6=_0x5b1f57['model']['document']['differ']['getChanges'](),_0x16e40e=Array['from'](_0x5b1f57['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4658cd,data:_0x22ab5d})=>{const {group:_0x2cf4ab,subType:_0x1bc09b,authorId:_0x3f3c37}=_0x2539f8['_splitMarkerName'](_0x4658cd);return'suggestion'==_0x2cf4ab&&'tablePaste'==_0x1bc09b&&_0x3f3c37==_0x3d9638['id']&&!_0x22ab5d['oldRange'];});for(const _0x926090 of _0x2905c6){if('insert'!=_0x926090['type']||'tableCellSuggestion'!=_0x926090['name']||0x1!=_0x926090['length'])continue;const _0x47aca6=_0x214979['createRange'](_0x926090['position'],_0x926090['position']['getShiftedBy'](0x1));if(!_0x16e40e['find'](({data:_0x556981})=>_0x556981['newRange']['isEqual'](_0x47aca6))){for(const {name:_0xf7945a,data:_0xe77a7e}of _0x16e40e)if(_0x47aca6['containsRange'](_0xe77a7e['newRange'])){_0x214979['updateMarker'](_0xf7945a,{'range':_0x47aca6}),_0xbe01f7=!0x0;break;}}}return _0xbe01f7;}),_0x5b1f57['model']['document']['registerPostFixer'](_0x2298f7=>{let _0xad94d8=!0x1;const _0x34ff3c=_0x5b1f57['plugins']['get']('Users')['me'],_0x587095=_0x2539f8['getSuggestions']()['filter'](_0x1cf3b6=>_0x1cf3b6['isInContent']&&_0x1cf3b6['author']==_0x34ff3c),_0x599e62=new Set(),_0x4f7ad5=new Set();for(const _0x388f9f of _0x587095)if('tablePaste'==_0x388f9f['subType'])for(const _0x53abea of _0x388f9f['getMarkers']()){const _0x31c1eb=_0x53abea['getRange']()['getContainedElement']();if(_0x31c1eb){if(_0x31c1eb['is']('element','tableCellSuggestion')&&Ue(_0x31c1eb)){_0x388f9f['removeMarker'](_0x53abea['name']),_0x599e62['add'](_0x31c1eb),_0xad94d8=!0x0;const _0x36fa15=_0x31c1eb['nextSibling'],_0x3dacde=_0x31c1eb['previousSibling'],_0x3aa778=_0x36fa15&&_0x36fa15['is']('element','tableCellSuggestion'),_0x311db0=_0x3dacde&&_0x3dacde['is']('element','tableCellSuggestion');_0x3aa778&&!_0x599e62['has'](_0x36fa15)&&_0x4f7ad5['add'](_0x36fa15),_0x311db0&&!_0x599e62['has'](_0x3dacde)&&_0x4f7ad5['add'](_0x3dacde);}else _0x31c1eb['is']('element','paragraph')&&_0x31c1eb['isEmpty']&&(_0x388f9f['removeMarker'](_0x53abea['name']),_0xad94d8=!0x0);}}else{if('tablePasteCell'==_0x388f9f['subType']){if(!_0x388f9f['attributes']||!_0x388f9f['attributes']['tablePasteChainId'])continue;const _0x49e930=_0x388f9f['attributes']['markerAttributes'];if(_0x49e930&&Object['keys'](_0x49e930)['length'])continue;const _0x12f155=_0x388f9f['attributes']['tablePasteChainId'];let _0x57cc85=!0x0,_0x45b802=!0x0;for(const _0x53ecfc of _0x587095)if(_0x53ecfc['subType']&&_0x53ecfc['subType']['startsWith']('tablePaste')){if(!_0x53ecfc['attributes']['tablePasteChainId']){_0x45b802=!0x1;break;}if(_0x53ecfc['id']!=_0x388f9f['id']&&_0x53ecfc['attributes']['tablePasteChainId']==_0x12f155){_0x57cc85=!0x1;break;}}_0x45b802&&_0x57cc85&&(_0x388f9f['removeMarkers'](),_0xad94d8=!0x0);}}for(const _0x671e04 of _0x599e62)_0x2298f7['remove'](_0x671e04);for(const _0x5a22c9 of _0x4f7ad5)_0x2298f7['unwrap'](_0x5a22c9);return _0xad94d8;}),_0x5b1f57['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x52101b=>_0x2cc5ed(_0x52101b),'converterPriority':'high'}),_0x5b1f57['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x549192,_0x7bbc5d)=>_0x7bbc5d['options']['showSuggestionHighlights']?_0x2cc5ed(_0x549192,!0x1):null,'converterPriority':'high'});const _0x407a96=_0x5b1f57['editing']['view'];this['listenTo'](_0x407a96['document'],'clipboardOutput',(_0x3504da,_0x3b691d)=>{const _0x388c6f=[];for(const _0x41b9e1 of _0x407a96['createRangeIn'](_0x3b691d['content'])['getItems']())_0x41b9e1['is']('element','suggestion-td')&&_0x388c6f['push'](_0x41b9e1);_0x407a96['change'](_0x2eb2ce=>{for(const _0x3aae4d of _0x388c6f)_0x2eb2ce['move'](_0x2eb2ce['createRangeIn'](_0x3aae4d),_0x2eb2ce['createPositionBefore'](_0x3aae4d)),_0x2eb2ce['remove'](_0x3aae4d);});});}}function Ue(_0x3d7603){if(_0x3d7603['isEmpty'])return!0x0;const _0x13de0c=_0x3d7603['getChild'](0x0);return _0x13de0c['is']('element','paragraph')&&_0x13de0c['isEmpty'];}function De(_0xfa9acb,_0x35c691={},_0x479d48){for(const {isAnchor:_0x18720b,cellHeight:_0x1eaeea,cellWidth:_0x4111c7}of _0x479d48['createTableWalker'](_0xfa9acb,{'includeAllSlots':!0x0,..._0x35c691}))if(!_0x18720b||0x1!=_0x1eaeea||0x1!=_0x4111c7)return!0x1;return!0x0;}class Bt extends _0x26e18a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xdedf4b=this['editor']['plugins']['get']('TrackChangesEditing');_0xdedf4b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xdedf4b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xdedf4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xdedf4b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xdedf4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xdedf4b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x55c0cc,_0x4023ac){const _0x2ae6b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x208e3e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3c2922=_0x4023ac['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5061cc=_0x208e3e['getColumnGroupElement'](_0x3c2922);let _0x2352b1=_0x5061cc?_0x208e3e['getTableColumnsWidths'](_0x5061cc):null,_0x5ead3f=_0x3c2922['getAttribute']('tableWidth')||null;const _0x4e45f8=_0x4023ac['tableWidth']||_0x5ead3f,_0x1d4b35=_0x4023ac['columnWidths']||_0x2352b1,_0x224f69=this['editor']['plugins']['get']('Users')['me'];for(const _0x3c651b of _0x2ae6b8['getSuggestions']()){const _0x72bc49=_0x3c651b['getContainedElement']();if('resizeTable'===_0x3c651b['subType']&&_0x72bc49===_0x3c2922){_0x3c651b['author']!==_0x224f69&&_0x3c651b['discard']();const _0x4dbdc7=_0x3c651b['data']['commandParams'];_0x5ead3f=_0x4dbdc7[0x0]['tableWidth'],_0x2352b1=_0x4dbdc7[0x0]['columnWidths'];break;}}_0x55c0cc({'table':_0x3c2922,'tableWidth':_0x4e45f8,'columnWidths':_0x1d4b35}),_0x2ae6b8['markBlockFormat'](_0x3c2922,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5ead3f,'columnWidths':_0x2352b1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x103c96){if('formatBlock'!=_0x103c96['type']&&'formatInline'!=_0x103c96['type'])return;const {data:_0x37a0dc}=_0x103c96;if(_0x37a0dc&&'resizeTable'===_0x37a0dc['formatGroupId']){const _0x25d30c='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x25d30c)};}}}class Ot extends _0x26e18a{['afterInit'](){const _0x5b3ca0=this['editor'];_0x5b3ca0['plugins']['has']('Template')&&_0x5b3ca0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x26e18a{['afterInit'](){const _0x188d18=this['editor'];if(!_0x188d18['commands']['get']('insertTableOfContents'))return;_0x188d18['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2adb13=_0x188d18['plugins']['get']('TrackChangesEditing'),_0x295b9f=_0x188d18['locale'];_0x2adb13['descriptionFactory']['registerElementLabel']('tableOfContents',_0x278d34=>c(_0x295b9f,'ELEMENT_TABLE_OF_CONTENTS',_0x278d34));}}class xt extends _0x26e18a{['afterInit'](){const _0x36cf38=this['editor'];if(!_0x36cf38['plugins']['has']('Title'))return;const _0x52fc65=_0x36cf38['plugins']['get']('TrackChangesEditing');_0x52fc65['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x36cf38['locale'],'ELEMENT_TITLE')),_0x36cf38['model']['document']['registerPostFixer'](_0x4e5e27=>{let _0x3c7995=!0x1;const _0x37ad5f=Array['from'](_0x36cf38['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x589958,data:_0x43bfcd}of _0x37ad5f){const {group:_0x10d650}=_0x52fc65['_splitMarkerName'](_0x589958);if('suggestion'!==_0x10d650||!_0x43bfcd['newRange'])continue;const _0x622e5c=_0x43bfcd['newRange'],_0x5c47fb=_0x622e5c['end']['nodeBefore'];if(!_0x5c47fb||!_0x5c47fb['is']('element','title-content'))continue;if(!_0x622e5c['start']['isTouching'](_0x622e5c['end']))continue;const _0x1e3b71=_0x36cf38['model']['schema']['getNearestSelectionRange'](_0x622e5c['end'],'forward');if(_0x1e3b71&&_0x1e3b71['isCollapsed']){const _0x3d01e1=_0x4e5e27['createRange'](_0x622e5c['start'],_0x1e3b71['start']);_0x3d01e1['isEqual'](_0x622e5c)||(_0x4e5e27['updateMarker'](_0x589958,{'range':_0x3d01e1}),_0x3c7995=!0x0);}_0x3c7995||(_0x4e5e27['removeMarker'](_0x589958),_0x3c7995=!0x0);}return _0x3c7995;});}}class Tt extends _0x26e18a{['afterInit'](){const _0x3427cb=this['editor'],_0x11548f=_0x3427cb['plugins']['get']('TrackChangesEditing');_0x3427cb['plugins']['has']('Uploadcare')&&(_0x11548f['enableCommand']('uploadcare'),_0x3427cb['plugins']['has']('UploadcareImageEdit')&&(_0x11548f['enableCommand']('uploadcareImageEdit'),_0x11548f['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x11548f['registerBlockAttribute']('uploadcareImageId'),_0x11548f['descriptionFactory']['registerDescriptionCallback'](_0x319875=>{if('attribute'!=_0x319875['type'])return;const {data:_0x540015}=_0x319875;return _0x540015&&'uploadcareImageId'==_0x540015['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x26e18a{['afterInit'](){const _0x10c46a=this['editor'],_0xc147=_0x10c46a['plugins']['get']('TrackChangesEditing');_0x10c46a['plugins']['has']('UndoEditing')&&(_0xc147['enableCommand']('undo'),_0xc147['enableCommand']('redo'));}}class Ut extends _0x26e18a{static get['requires'](){return[Ct];}['afterInit'](){const _0x2e5c6d=this['editor'];if(!_0x2e5c6d['plugins']['has']('TableCaptionEditing'))return;_0x2e5c6d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x26e18a{['tableProperties'];['tableCellProperties'];constructor(_0x1f7c04){super(_0x1f7c04),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 _0x5b301e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x26abde of this['tableProperties'])_0x5b301e['enableCommand'](_0x26abde,(_0x5c8e5e,_0x1b53e5)=>{const _0x5ccb73=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x26abde,[_0x5ccb73],this['tableProperties'],'tableProperties',_0x5c8e5e,_0x1b53e5);});_0x5b301e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5b301e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b301e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2a7abe,_0x36b313)=>this['handleDiscardAction'](this['tableProperties'],_0x2a7abe,_0x36b313)),_0x5b301e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3e03f4 of this['tableCellProperties'])_0x5b301e['enableCommand'](_0x3e03f4,(_0x30128a,_0x5cb115)=>{const _0x686958=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3e03f4,_0x686958,this['tableCellProperties'],'tableCellProperties',_0x30128a,_0x5cb115);});_0x5b301e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5b301e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b301e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x26747e,_0x3783f9)=>this['handleDiscardAction'](this['tableCellProperties'],_0x26747e,_0x3783f9)),_0x5b301e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5b301e['descriptionFactory']['registerDescriptionCallback'](_0x310f2d=>this['handleSuggestionDescription'](_0x310f2d));}['_handlePropertyChange'](_0x9c190e,_0x219e3f,_0x551c9b,_0x5871b9,_0x1981a2,_0x4724aa){const _0x43901c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4724aa['batch'],()=>{for(const _0x3fc251 of _0x219e3f){if(this['_getSuggestion'](_0x3fc251,_0x5871b9))_0x1981a2(_0x4724aa);else{const _0x20c7ec={};for(const _0x4c53ee of _0x551c9b){const _0x1e39de=_0x3fc251['getAttribute'](_0x4c53ee);void 0x0!==_0x1e39de&&(_0x20c7ec[_0x4c53ee]=_0x1e39de);}_0x1981a2(_0x4724aa),_0x43901c['markBlockFormat'](_0x3fc251,{'commandParams':[_0x20c7ec]},[],_0x5871b9);}}});}['handleDiscardAction'](_0x2e1857,_0x23b3b7,_0x4e8e57){const _0x2cd81f=_0x23b3b7[0x0]['start']['nodeAfter'],_0x355e46=_0x4e8e57['commandParams'][0x0];this['editor']['model']['change'](_0x48f5fa=>{for(const _0x2f3a71 of _0x2e1857)void 0x0!==_0x355e46[_0x2f3a71]?_0x48f5fa['setAttribute'](_0x2f3a71,_0x355e46[_0x2f3a71],_0x2cd81f):_0x48f5fa['removeAttribute'](_0x2f3a71,_0x2cd81f);});}['handleSuggestionDescription'](_0x23e3ac){if(_0x23e3ac['data'])switch(_0x23e3ac['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'](_0x5265bc,_0x5dcc66){const _0x245c7c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2d5518 of _0x245c7c['getSuggestions']({'skipNotAttached':!0x0})){const _0x493ac0=_0x2d5518['getContainedElement']();if(_0x2d5518['subType']===_0x5dcc66&&_0x493ac0===_0x5265bc)return _0x2d5518;}return null;}}const u='$elementName';class p extends _0x26e18a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4abb9f,_0x16124d,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56c605){super(_0x56c605),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2142a4,_0x3bad1d,_0x46dcf4,_0xc389c5)=>{this['_model']['change'](()=>{for(const _0x5c344c of[..._0xc389c5,..._0x46dcf4])this['_model']['markers']['has'](_0x5c344c)&&_0x56c605['editing']['reconvertMarker'](_0x5c344c);});}),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']=_0x56c605['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(),_0x56c605['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x56c605['config']['get']('trackChanges.trackFormatChanges'),_0x56c605['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x56c605['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x56c605,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x114247=this['editor'],_0x50d914=(_0x3c5fe,_0x5578e1)=>{if('attribute'!=_0x3c5fe)return'ck-suggestion-marker-'+_0x3c5fe;const _0x442506=_0x5578e1['split']('|')[0x0];return this['_isBlockAttribute'](_0x442506)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x114247['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x24dd73=>{const {id:_0x40ea81,authorId:_0x1cda0e,type:_0x38e0eb,subType:_0x3adf40}=this['_splitMarkerName'](_0x24dd73['markerName']),_0xc1ac18=['ck-suggestion-marker',_0x50d914(_0x38e0eb,_0x3adf40)];let _0x2a8d68=0xbb8;return this['activeMarkers']['includes'](_0x24dd73['markerName'])&&(_0xc1ac18['push']('ck-suggestion-marker--active'),_0x2a8d68=0xbc2),'deletion'==_0x38e0eb&&(_0x2a8d68+=0x5),{'classes':_0xc1ac18,'attributes':{'data-suggestion':_0x40ea81,'data-author-id':_0x1cda0e},'priority':_0x2a8d68};}}),_0x114247['conversion']['for']('dataDowncast')['add'](_0x5602ba=>{_0x5602ba['on']('addMarker:suggestion',(_0x160e31,_0xd7c8a2,_0x27ac68)=>{if(!_0x27ac68['options']['showSuggestionHighlights'])return;const _0x112f65=_0xd7c8a2['item'];if(!_0x112f65)return;const _0xfb4082=_0x27ac68['mapper']['toViewElement'](_0x112f65);_0x114247['model']['schema']['isObject'](_0x112f65)&&_0xfb4082&&!_0xfb4082['getCustomProperty']('widget')&&_0xfb4082['is']('containerElement')&&_0x4b005f(_0xfb4082,_0x27ac68['writer']);},{'priority':'high'});}),_0x114247['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x52f062,_0x3dd1c2)=>{if(!_0x3dd1c2['options']['showSuggestionHighlights'])return null;const {type:_0x3d3405,subType:_0x9b4baf}=this['_splitMarkerName'](_0x52f062['markerName']);return{'classes':['ck-suggestion-marker',_0x50d914(_0x3d3405,_0x9b4baf)],'priority':0xbb8};}});const _0x2ac491=({showActiveMarkers:_0x2465b8=!0x0,isAttributeSuggestion:_0x595eaf=!0x1}={})=>(_0x16eafe,_0x33e0c3,_0x4c5225)=>{if(!_0x33e0c3['item'])return;const {id:_0x3611bc,authorId:_0x42d2c1}=this['_splitMarkerName'](_0x33e0c3['markerName']);if(_0x595eaf){const _0x36c797=this['_suggestions']['get'](_0x3611bc),_0x3bf163=this['_getAttributeKey'](_0x36c797);if(!this['_isBlockAttribute'](_0x3bf163))return;}if(_0x33e0c3['item']['is']('selection'))return void _0x4c5225['consumable']['consume'](_0x33e0c3['item'],_0x16eafe['name']);const _0x1ae371=_0x4c5225['mapper']['toViewElement'](_0x33e0c3['item']);if(_0x33e0c3['item']['is']('element')&&_0x114247['model']['schema']['isBlock'](_0x33e0c3['item'])&&!_0x1ae371['getCustomProperty']('addHighlight')){_0x4c5225['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1ae371),_0x4c5225['writer']['setAttribute']('data-suggestion',_0x3611bc,_0x1ae371),_0x4c5225['writer']['setAttribute']('data-author-id',_0x42d2c1,_0x1ae371),_0x4c5225['mapper']['bindElementToMarker'](_0x1ae371,_0x33e0c3['markerName']),_0x2465b8&&(this['activeMarkers']['includes'](_0x33e0c3['markerName'])?_0x4c5225['writer']['addClass']('ck-suggestion-marker--active',_0x1ae371):_0x4c5225['writer']['removeClass']('ck-suggestion-marker--active',_0x1ae371));for(const _0x3f53b9 of _0x114247['model']['createRangeIn'](_0x33e0c3['item'])['getItems']())_0x4c5225['consumable']['consume'](_0x3f53b9,_0x16eafe['name']);_0x4c5225['consumable']['consume'](_0x33e0c3['item'],_0x16eafe['name']);}};_0x114247['conversion']['for']('dataDowncast')['add'](_0x52c8ec=>{_0x52c8ec['on']('addMarker:suggestion:formatBlock',(_0x3c8a86,_0x2496cc,_0xfc8b59)=>{_0xfc8b59['options']['showSuggestionHighlights']&&_0x2ac491({'showActiveMarkers':!0x1})(_0x3c8a86,_0x2496cc,_0xfc8b59);},{'priority':'highest'});}),_0x114247['conversion']['for']('dataDowncast')['add'](_0x5ada1c=>{_0x5ada1c['on']('addMarker:suggestion:attribute',(_0x1ac7b1,_0xe841e1,_0x18983a)=>{_0x18983a['options']['showSuggestionHighlights']&&_0x2ac491({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1ac7b1,_0xe841e1,_0x18983a);},{'priority':'highest'});}),_0x114247['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x415235,_0x229fc8)=>_0x229fc8['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x415235['substr'](0xb)}}),_0x114247['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x27b9ad,{writer:_0x3c9439})=>{let _0x52f4cb='suggestion:'+_0x27b9ad['getAttribute']('suggestion-type')+':'+_0x27b9ad['getAttribute']('id');return _0x27b9ad['getAttribute']('marker-count')&&(_0x52f4cb+=':'+_0x27b9ad['getAttribute']('marker-count')),_0x3c9439['createElement']('$marker',{'data-name':_0x52f4cb});}}),_0x114247['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x114247['conversion']['for']('editingDowncast')['add'](_0x54c95a=>{_0x54c95a['on']('addMarker:suggestion:formatBlock',_0x2ac491(),{'priority':'high'});}),_0x114247['conversion']['for']('editingDowncast')['add'](_0x127211=>{_0x127211['on']('addMarker:suggestion:attribute',_0x2ac491({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x114247['conversion']['for']('editingDowncast')['add'](_0x5381a3=>{_0x5381a3['on']('removeMarker:suggestion:formatBlock',(_0x63d597,_0x4ec2d4,_0x3a2d9d)=>{const _0x40fcd0=_0x3a2d9d['mapper']['markerNameToElements'](_0x4ec2d4['markerName']);if(_0x40fcd0){for(const _0x37cd24 of _0x40fcd0)_0x37cd24['getCustomProperty']('addHighlight')||(_0x3a2d9d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x37cd24),_0x3a2d9d['writer']['removeAttribute']('data-suggestion',_0x37cd24),_0x3a2d9d['writer']['removeAttribute']('data-author-id',_0x37cd24),_0x3a2d9d['mapper']['unbindElementFromMarkerName'](_0x37cd24,_0x4ec2d4['markerName']));}},{'priority':'high'});}),_0x114247['conversion']['for']('editingDowncast')['add'](_0x21755e=>{_0x21755e['on']('removeMarker:suggestion:attribute',(_0x23855b,_0x48f52e,_0x280957)=>{const _0x46bbe5=_0x280957['mapper']['markerNameToElements'](_0x48f52e['markerName']);if(!_0x46bbe5)return;const {id:_0x1e0ada}=this['_splitMarkerName'](_0x48f52e['markerName']),_0x40796f=this['_suggestions']['get'](_0x1e0ada),_0x27d0d7=this['_getAttributeKey'](_0x40796f);if(this['_isBlockAttribute'](_0x27d0d7)){for(const _0x5681d0 of _0x46bbe5)_0x5681d0['getCustomProperty']('addHighlight')||(_0x280957['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5681d0),_0x280957['writer']['removeAttribute']('data-suggestion',_0x5681d0),_0x280957['writer']['removeAttribute']('data-author-id',_0x5681d0),_0x280957['mapper']['unbindElementFromMarkerName'](_0x5681d0,_0x48f52e['markerName']));}},{'priority':'high'});}),_0x114247['model']['document']['registerPostFixer'](_0x28a683=>{let _0x77c677=!0x1;const _0x3ba0c9=Array['from'](_0x114247['model']['document']['differ']['getChangedMarkers']()),_0x7ddf35=new Set();for(const {name:_0x133b1c,data:_0x4f07a2}of _0x3ba0c9){const {group:_0x46ab79,type:_0x202992,subType:_0xa3b6cf,id:_0x388e54}=this['_splitMarkerName'](_0x133b1c);if('suggestion'!==_0x46ab79)continue;const _0x55334b=this['_suggestions']['get'](_0x388e54);if(null!=_0x4f07a2['newRange']){'formatInline'==_0x202992&&(_0x77c677=_0x77c677||Jt(_0x4f07a2['newRange'],_0x133b1c,_0x28a683,_0x114247['model']['schema']));const _0xa14350='attribute'==_0x202992&&this['_isBlockAttribute'](_0xa3b6cf['split']('|')[0x0]);if(_0x4f07a2['newRange']['isCollapsed']||'$graveyard'==_0x4f07a2['newRange']['root']['rootName']||'formatBlock'==_0x202992&&!Ht(_0x4f07a2['newRange'])||_0xa14350&&!Ht(_0x4f07a2['newRange'])||'deletion'==_0x202992&&!(!Lt(_0x398565=_0x4f07a2['newRange'])&&!function(_0x5660e0){return _0x5660e0['start']['parent']==_0x5660e0['end']['nodeBefore']&&_0x5660e0['start']['isAtEnd'];}(_0x398565)))_0x28a683['removeMarker'](_0x133b1c),_0x77c677=!0x0;else{if(!_0x55334b||!_0x55334b['isInContent'])continue;if(_0x4f07a2['newRange']&&_0x4f07a2['oldRange']&&_0x4f07a2['newRange']['isEqual'](_0x4f07a2['oldRange']))continue;_0x7ddf35['add'](_0x55334b);}}}var _0x398565;return _0x7ddf35['size']>0x0&&(_0x77c677=!!this['_joinWithAdjacentSuggestions'](_0x7ddf35)||_0x77c677),_0x77c677;}),_0x114247['model']['document']['registerPostFixer'](_0x40d57f=>{let _0x457e99=!0x1;for(const _0x261979 of _0x114247['model']['document']['differ']['getChanges']())if('insert'==_0x261979['type'])for(const _0xabb9c5 of this['_suggestions']['values']()){if(_0xabb9c5['isMultiRange']||!_0xabb9c5['isInContent'])continue;const _0x12e1c6='formatBlock'==_0xabb9c5['type'],_0x1e0f33=this['_getAttributeKey'](_0xabb9c5),_0x448b3a=_0x1e0f33&&this['_isBlockAttribute'](_0x1e0f33);if(!_0x12e1c6&&!_0x448b3a)continue;const _0xb2d712=_0xabb9c5['getFirstRange']();if(_0xb2d712['start']['parent']!=_0xb2d712['end']['parent']&&!_0xb2d712['end']['isAtEnd']){const _0x25b392=_0x114247['model']['createPositionAt'](_0xb2d712['start']['nodeAfter'],'end'),_0x46c6e3=_0x114247['model']['createRange'](_0xb2d712['start'],_0x25b392);_0x40d57f['updateMarker'](_0xabb9c5['getFirstMarker'](),{'range':_0x46c6e3}),_0x457e99=!0x0;}}return _0x457e99;}),_0x114247['model']['document']['registerPostFixer'](_0x1466d2=>this['_processAttributeChanges'](_0x1466d2)),_0x114247['model']['document']['registerPostFixer'](_0x1ccacb=>!_0x1ccacb['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1ccacb)),_0x114247['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x114247['model']['document']['on']('change:data',(_0x2942eb,_0x42f0fd)=>{if(!_0x42f0fd['isLocal']||_0x42f0fd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1f6093=_0x114247['model']['document']['differ']['getChanges']();if(0x0==_0x1f6093['length'])return;const _0x1cba50=[],_0x496d81=_0x1f6093['filter'](_0x1eb80d=>'attribute'==_0x1eb80d['type']),_0x583133=_0x1f6093['filter'](_0xf84a49=>'insert'==_0xf84a49['type']&&'$text'!=_0xf84a49['name']);for(const _0x295f29 of _0x496d81)this['_isRegisteredAttribute'](_0x295f29['attributeKey'])&&_0x1cba50['push']({'key':_0x295f29['attributeKey'],'newValue':_0x295f29['attributeNewValue'],'oldValue':_0x295f29['attributeOldValue'],'range':qt(_0x295f29['range'],_0x114247['model'])});for(const _0x3f31af of _0x583133){if('rename'!=_0x3f31af['action']&&'refresh'!=_0x3f31af['action'])continue;const _0x1231de=zt(_0x3f31af['position']['nodeAfter'],_0x114247['model']),_0x2b1da8=_0x3f31af['before'];'rename'==_0x3f31af['action']&&_0x1cba50['push']({'key':u,'newValue':_0x3f31af['name'],'oldValue':_0x2b1da8['name'],'range':_0x1231de});for(const [_0x475606,_0x446352]of _0x2b1da8['attributes']){if(!this['_isRegisteredAttribute'](_0x475606))continue;const _0xc6e589=_0x3f31af['attributes']['get'](_0x475606);_0x446352!==_0xc6e589&&_0x1cba50['push']({'key':_0x475606,'newValue':_0xc6e589,'oldValue':_0x446352,'range':_0x1231de});}for(const [_0x10c172,_0x41d0e8]of _0x3f31af['attributes'])this['_isRegisteredAttribute'](_0x10c172)&&(_0x2b1da8['attributes']['has'](_0x10c172)||_0x1cba50['push']({'key':_0x10c172,'newValue':_0x41d0e8,'oldValue':null,'range':_0x1231de}));}0x0!=_0x1cba50['length']&&_0x114247['model']['enqueueChange'](_0x42f0fd,_0x59a822=>{const _0x2eb9c2=_0x4cee4c();for(const {range:_0x2d8945,key:_0x307d5b,oldValue:_0x4f0ad7,newValue:_0x320024}of _0x1cba50)this['markAttributeChange'](_0x2d8945,_0x307d5b,_0x4f0ad7,_0x320024,{'groupId':_0x2eb9c2});this['_reduceExistingSuggestions'](_0x59a822,_0x1cba50);});},{'priority':'lowest'}),_0x114247['model']['markers']['on']('update:suggestion',(_0x420401,_0x3c7bb5,_0x2a3342)=>{if(null==_0x2a3342){const {id:_0x28c0dc}=this['_splitMarkerName'](_0x3c7bb5['name']),_0x3296d9=this['_suggestions']['get'](_0x28c0dc);_0x3296d9&&_0x3296d9['addMarkerName'](_0x3c7bb5['name']);}}),_0x114247['model']['document']['on']('change:data',()=>{const _0x243b16=Array['from'](_0x114247['model']['document']['differ']['getChangedMarkers']())['filter'](_0x28499a=>'suggestion'===this['_splitMarkerName'](_0x28499a['name'])['group']);if(0x0===_0x243b16['length'])return;_0x243b16['sort']((_0x18264,_0x40a390)=>{const _0x38a3f0=_0x18264['data']['oldRange'],_0x5a3f94=_0x40a390['data']['oldRange'];return null===_0x38a3f0&&null===_0x5a3f94?0x0:null===_0x38a3f0&&null!==_0x5a3f94?-0x1:null!==_0x38a3f0&&null===_0x5a3f94?0x1:_0x38a3f0['start']['isBefore'](_0x5a3f94['start'])?-0x1:0x1;});const _0x4191da=new Set(),_0x466be2=new Set();for(const {name:_0x12fbb6,data:_0xa5b34a}of _0x243b16){const {id:_0xf4c597}=this['_splitMarkerName'](_0x12fbb6);if(null===_0xa5b34a['oldRange']){const _0x5c36d6=this['_handleNewSuggestionMarker'](_0x12fbb6);_0x466be2['add'](_0x5c36d6);}else{const _0x56b75d=this['_suggestions']['get'](_0xf4c597);null!==_0xa5b34a['newRange']||_0x56b75d['isInContent']?(_0x4191da['add'](_0x56b75d['head']),_0x466be2['add'](_0x56b75d)):this['_removeSuggestion'](_0x56b75d);}}_0x466be2['size']>0x0&&this['_refreshSuggestionsChain'](_0x466be2);for(const _0x2e6df5 of _0x4191da)this['fire']('suggestionChanged',_0x2e6df5);}),_0x114247['model']['on']('applyOperation',(_0x1ce998,_0xf9b8bb)=>{const _0x4a1b9e=_0xf9b8bb[0x0];if(!this['_suggestions']['size'])return;if(!_0x4a1b9e['isDocumentOperation'])return;if(_0x4a1b9e['batch']['isUndo']||!_0x4a1b9e['batch']['isLocal'])return;let _0x1deb9d,_0x4a878b;switch(_0x4a1b9e['type']){case'insert':_0x1deb9d=_0x114247['model']['createPositionAt'](_0x4a1b9e['position']),_0x4a878b=_0x1deb9d['getShiftedBy'](_0x4a1b9e['howMany']);break;case'split':_0x1deb9d=_0x114247['model']['createPositionAt'](_0x4a1b9e['splitPosition']),_0x4a878b=_0x114247['model']['createPositionAt'](_0x4a1b9e['moveTargetPosition']);break;case'move':_0x1deb9d=_0x114247['model']['createPositionAt'](_0x4a1b9e['targetPosition']),_0x4a878b=_0x1deb9d['getShiftedBy'](_0x4a1b9e['howMany']);break;default:return;}const _0x198e86=_0x114247['model']['createRange'](_0x1deb9d,_0x4a878b);_0x114247['model']['change'](()=>{for(const {suggestion:_0xed85f5,meta:_0x1948ab}of this['_findSuggestions'](_0x198e86)){if(_0xed85f5['isMultiRange'])continue;if('formatInline'==_0xed85f5['type'])continue;const _0xbbf4ae=this['_getAttributeKey'](_0xed85f5);if(_0xbbf4ae&&this['_isBlockAttribute'](_0xbbf4ae)&&'split'!=_0x4a1b9e['type'])continue;const _0x5757a2=_0xed85f5['data']&&_0xed85f5['data']['multipleBlocks'];('formatBlock'!=_0xed85f5['type']||'split'==_0x4a1b9e['type']&&!_0x5757a2)&&(_0x1948ab['containsRangeInObject']||'insertion'==_0xed85f5['type']&&_0x1948ab['isOwn']||_0xed85f5['getFirstRange']()['containsRange'](_0x198e86)&&this['_breakSuggestionMarker'](_0xed85f5,_0x1deb9d,_0x4a878b));}});},{'priority':'lowest'}),_0x114247['model']['on']('deleteContent',(_0x1eba6d,_0x2f917a)=>{const _0x5334d7=_0x2f917a[0x0],_0x1870cd=_0x2f917a[0x1];if(_0x1870cd&&_0x1870cd['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5334d7['isCollapsed'])return;const _0x27b4be=_0x114247['model']['schema'],{start:_0x40e0b2,end:_0x29adc5}=_0x5334d7['getFirstRange'](),_0x58c5e7=_0x40e0b2['nodeAfter']&&_0x27b4be['isLimit'](_0x40e0b2['nodeAfter'])?null:_0x27b4be['getNearestSelectionRange'](_0x40e0b2,'forward'),_0x44b9c4=_0x29adc5['nodeBefore']&&_0x27b4be['isLimit'](_0x29adc5['nodeBefore'])?null:_0x27b4be['getNearestSelectionRange'](_0x29adc5,'backward'),_0x1cab29=_0x114247['model']['createRange'](_0x58c5e7?_0x58c5e7['start']:_0x40e0b2,_0x44b9c4?_0x44b9c4['end']:_0x29adc5);_0x114247['model']['change'](_0x555c49=>{this['markDeletion'](_0x1cab29);const _0xcd77b9=_0x114247['model']['schema']['getNearestSelectionRange'](_0x1cab29['start']);_0x5334d7['is']('documentSelection')?_0x555c49['setSelection'](_0xcd77b9):_0x5334d7['setTo'](_0xcd77b9);}),_0x1eba6d['stop']();},{'priority':_0x51421a['normal']+0xa}),_0x114247['model']['on']('insertContent',(_0x2baa0e,_0x1768b5)=>{const _0xd5bd55=_0x1768b5[_0x1768b5['length']-0x1];_0xd5bd55&&_0xd5bd55['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x114247['model']['change'](()=>{let _0x58f538=_0x114247['model']['insertContent'](_0x1768b5[0x0],_0x1768b5[0x1],_0x1768b5[0x2],{'forceDefaultExecution':!0x0});if(!_0x58f538)return;_0x2baa0e['return']=_0x58f538['clone']();const _0x452c1c=_0x58f538['end']['nodeBefore'],_0x34abbd=_0x114247['model']['schema'];_0x452c1c&&_0x34abbd['isBlock'](_0x452c1c)&&!_0x34abbd['isObject'](_0x452c1c)&&(_0x58f538=_0x114247['model']['createRange'](_0x58f538['start'],_0x114247['model']['createPositionAt'](_0x452c1c,'end'))),this['markInsertion'](_0x58f538);}),_0x2baa0e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2eb71d=new O(_0x114247,this['_suggestions']);_0x114247['commands']['add']('acceptSuggestion',_0x2eb71d),this['enableCommand']('acceptSuggestion');const _0x293117=new R(_0x114247,this['_suggestions']);_0x114247['commands']['add']('discardSuggestion',_0x293117),this['enableCommand']('discardSuggestion'),_0x114247['commands']['add']('acceptAllSuggestions',new x(_0x114247,_0x2eb71d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x114247['commands']['add']('discardAllSuggestions',new x(_0x114247,_0x293117,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x114247['commands']['add']('acceptSelectedSuggestions',new E(_0x114247,_0x2eb71d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x114247['commands']['add']('discardSelectedSuggestions',new E(_0x114247,_0x293117,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2d1274=_0x114247['plugins']['get']('CommentsRepository');this['listenTo'](_0x2d1274,'addComment',(_0x2cb3a6,{threadId:_0x1125c5})=>{const _0x1bae08=this['_suggestions']['get'](_0x1125c5);_0x1bae08&&_0x1bae08['commentThread']&&0x1===_0x1bae08['commentThread']['length']&&this['_updateSuggestionData'](_0x1125c5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2d1274,'removeComment',(_0x2cb77a,{threadId:_0x15c9c0})=>{const _0x24c120=this['_suggestions']['get'](_0x15c9c0);_0x24c120&&_0x24c120['commentThread']&&!_0x24c120['commentThread']['length']&&this['_updateSuggestionData'](_0x15c9c0,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2ebb05){const _0x52158e=_0x42ad41([0x6e,0x4c,0x70,0x7a,0x39,0x52,0x36,0x57,0x6c,0x56,0x62,0x45,0x76,0x4f,0x51,0x55,0x47,0x6f,0x43,0x59,0x31,0x67,0x68,0x46,0x35,0x54,0x65,0x48,0x75,0x78,0x66,0x42,0x50,0x5a,0x77,0x32,0x73,0x33,0x6d,0x58,0x6b,0x72,0x4a,0x64,0x37,0x74,0x44,0x4d,0x61,0x63,0x4b,0x71,0x41,0x38,0x69,0x6a,0x53,0x49,0x30,0x79,0x34,0x4e]),_0x3a499e=0x7879973f,_0x1b9108=0x787ef4bf^_0x3a499e,_0x475323=window[_0x42ad41([0x44,0x61,0x74,0x65])][_0x42ad41([0x6e,0x6f,0x77])](),_0x3f3370=_0x2ebb05[_0x42ad41([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3f39fe=new window[(_0x42ad41([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b9c27=>{_0x3f3370[_0x42ad41([0x6f,0x6e,0x63,0x65])](_0x42ad41([0x72,0x65,0x61,0x64,0x79]),_0x2b9c27);}),_0x55d8e0={[_0x42ad41([0x6b,0x74,0x79])]:_0x42ad41([0x45,0x43]),[_0x42ad41([0x75,0x73,0x65])]:_0x42ad41([0x73,0x69,0x67]),[_0x42ad41([0x63,0x72,0x76])]:_0x42ad41([0x50,0x2d,0x32,0x35,0x36]),[_0x42ad41([0x78])]:_0x42ad41([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]),[_0x42ad41([0x79])]:_0x42ad41([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]),[_0x42ad41([0x61,0x6c,0x67])]:_0x42ad41([0x45,0x53,0x32,0x35,0x36])},_0x2debd7=_0x3f3370[_0x42ad41([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42ad41([0x67,0x65,0x74])](_0x42ad41([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2cc2b2(){let _0x1d0d63,_0x27f4eb=null,_0x1a59b4=null;try{if(_0x2debd7==_0x42ad41([0x47,0x50,0x4c]))return _0x42ad41([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d0d63=_0x2c646c(),!_0x1d0d63)return _0x42ad41([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d0d63[_0x42ad41([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a59b4=_0x2ffd93(_0x1d0d63[_0x42ad41([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d0d63[_0x42ad41([0x6a,0x74,0x69])])),await _0xd49c8c()?_0x485c80()?_0x21b6fa()?_0x42ad41([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4adff0()?(_0x1d0d63[_0x42ad41([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42ad41([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x27f4eb=_0x39fad6(_0x42ad41([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d0d63[_0x42ad41([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42ad41([0x74,0x72,0x69,0x61,0x6c])&&(_0x27f4eb=_0x39fad6(_0x42ad41([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x39ccfc()):_0x42ad41([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42ad41([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42ad41([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x51e2c4){return _0x42ad41([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x21b6fa(){const _0x9aade1=[_0x42ad41([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42ad41([0x74,0x72,0x69,0x61,0x6c])][_0x42ad41([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d0d63[_0x42ad41([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x475323/0x3e8:0xe10*_0x1b9108;return _0x1d0d63[_0x42ad41([0x65,0x78,0x70])]<_0x9aade1;}function _0x485c80(){const _0x406b13=_0x1d0d63[_0x42ad41([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x406b13)return!0x1;if(_0x406b13[_0x42ad41([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ad41([0x2a])))return!0x0;if(_0x406b13[_0x42ad41([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ad41([0x54,0x43])))return!0x0;if(_0x406b13[_0x42ad41([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ad41([0x52,0x54,0x43]))){if(_0x20b17e())return!0x0;if(_0xad122e()||_0x38fc19())return!0x0;}return!0x1;}function _0x4adff0(){const _0x3ead93=_0x1d0d63[_0x42ad41([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ead93||0x0==_0x3ead93[_0x42ad41([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53065e}=new URL(window[_0x42ad41([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ead93[_0x42ad41([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53065e))return!0x0;const _0x566195=_0x53065e[_0x42ad41([0x73,0x70,0x6c,0x69,0x74])](_0x42ad41([0x2e]));return _0x3ead93[_0x42ad41([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x247586=>_0x247586[_0x42ad41([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ad41([0x2a])))[_0x42ad41([0x6d,0x61,0x70])](_0x326dd2=>_0x326dd2[_0x42ad41([0x73,0x70,0x6c,0x69,0x74])](_0x42ad41([0x2e])))[_0x42ad41([0x73,0x6f,0x6d,0x65])](_0x1f9b17=>_0x566195[_0x42ad41([0x65,0x76,0x65,0x72,0x79])]((_0x2ef478,_0x5b78fa)=>_0x1f9b17[_0x5b78fa]===_0x2ef478||_0x1f9b17[_0x5b78fa]===_0x42ad41([0x2a])));}function _0x39ccfc(){return _0x27f4eb&&_0x1a59b4?new window[(_0x42ad41([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3040a1,_0x2effdf)=>{_0x27f4eb[_0x42ad41([0x74,0x68,0x65,0x6e])](_0x3040a1,_0x2effdf),_0x1a59b4[_0x42ad41([0x74,0x68,0x65,0x6e])](_0x3888fe=>{_0x3888fe!=_0x42ad41([0x56,0x61,0x6c,0x69,0x64])&&_0x3040a1(_0x3888fe);},_0x2effdf);}):_0x27f4eb||_0x1a59b4||_0x42ad41([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ffd93(_0x32dc75,_0x23058b){return new window[(_0x42ad41([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20ad95=>{if(_0x229bff())return _0x20ad95(_0x42ad41([0x56,0x61,0x6c,0x69,0x64]));_0x279fa8(),_0x3f3370[_0x42ad41([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42ad41([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x448c57=!0x1;const _0xbe31b4=_0x4cee4c();function _0x51c848(_0x5ac52d){return!!_0x5ac52d&&(typeof _0x5ac52d===_0x42ad41([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ac52d===_0x42ad41([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ac52d[_0x42ad41([0x74,0x68,0x65,0x6e])]===_0x42ad41([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ac52d[_0x42ad41([0x63,0x61,0x74,0x63,0x68])]===_0x42ad41([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4100f5(_0x4485c4){_0x1e1d52(_0x4485c4)[_0x42ad41([0x74,0x68,0x65,0x6e])](_0x30cbaa=>{if(!_0x30cbaa||_0x30cbaa[_0x42ad41([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42ad41([0x6f,0x6b]))return _0x42ad41([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x56a8da(_0x6b7b42(_0xbe31b4+_0x23058b))!=_0x30cbaa[_0x42ad41([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42ad41([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42ad41([0x56,0x61,0x6c,0x69,0x64]);})[_0x42ad41([0x74,0x68,0x65,0x6e])](_0x3cee48=>(_0x51ea6a(),_0x3cee48),()=>{const _0x4bdd32=_0x2613de();return null==_0x4bdd32?(_0x51ea6a(),_0x42ad41([0x56,0x61,0x6c,0x69,0x64])):_0x42ad41(_0x475323-_0x4bdd32>(0x5c75133f^_0x3a499e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42ad41([0x74,0x68,0x65,0x6e])](_0x20ad95)[_0x42ad41([0x63,0x61,0x74,0x63,0x68])](()=>{_0x20ad95(_0x42ad41([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x470163=0x784f79bf^_0x3a499e;function _0x51ea6a(){const _0x411d34=_0x42ad41([0x6c,0x6c,0x63,0x74,0x2d])+_0x56a8da(_0x6b7b42(_0x32dc75)),_0x2012b0=_0x4f5cec(_0x56a8da(window[_0x42ad41([0x4d,0x61,0x74,0x68])][_0x42ad41([0x63,0x65,0x69,0x6c])](_0x475323/_0x470163)));window[_0x42ad41([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42ad41([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x411d34,_0x2012b0);}function _0x2613de(){const _0x1ed885=_0x42ad41([0x6c,0x6c,0x63,0x74,0x2d])+_0x56a8da(_0x6b7b42(_0x32dc75)),_0x9c68b8=window[_0x42ad41([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42ad41([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ed885);return _0x9c68b8?window[_0x42ad41([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f5cec(_0x9c68b8),0x10)*_0x470163:null;}function _0x1e1d52(_0x5994b3){return new window[(_0x42ad41([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x671aa2,_0xcfe4e)=>{_0x5994b3[_0x42ad41([0x74,0x68,0x65,0x6e])](_0x671aa2,_0xcfe4e),window[_0x42ad41([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xcfe4e,0x787843ff^_0x3a499e);});}}_0x3f3370[_0x42ad41([0x6f,0x6e])](_0x42ad41([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b7e36,_0x4a72d9)=>{if(_0x4a72d9[0x0]!=_0x32dc75)return _0x20ad95(_0x42ad41([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a72d9[0x1]={..._0x4a72d9[0x1],[_0x42ad41([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xbe31b4};},{[_0x42ad41([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42ad41([0x68,0x69,0x67,0x68])}),_0x3f3370[_0x42ad41([0x6f,0x6e])](_0x42ad41([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x23b755=>{_0x51c848(_0x23b755[_0x42ad41([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x448c57=!0x0,_0x4100f5(_0x23b755[_0x42ad41([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42ad41([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42ad41([0x6c,0x6f,0x77])}),_0x3f39fe[_0x42ad41([0x74,0x68,0x65,0x6e])](()=>{_0x448c57||_0x20ad95(_0x42ad41([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x229bff(){return _0x3f3370[_0x42ad41([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42ad41([0x76,0x69,0x65,0x77])][_0x42ad41([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42ad41([0x61,0x75,0x74,0x6f]);}function _0x279fa8(){_0x3f3370[_0x42ad41([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42ad41([0x76,0x69,0x65,0x77])][_0x42ad41([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42ad41([0x61,0x75,0x74,0x6f]);}}function _0x39fad6(_0x44007e){const _0x138a80=[new window[(_0x42ad41([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x485cc0=>setTimeout(_0x485cc0,0x7870a9f3^_0x3a499e)),_0x3f39fe[_0x42ad41([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42ad41([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x333199=>{let _0x27629c=0x0;_0x3f3370[_0x42ad41([0x6d,0x6f,0x64,0x65,0x6c])][_0x42ad41([0x6f,0x6e])](_0x42ad41([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x424036,_0x5d91d2)=>{_0x5d91d2[0x0][_0x42ad41([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x27629c++,_0x27629c==(0x787996c7^_0x3a499e)&&(_0x333199(),_0x424036[_0x42ad41([0x6f,0x66,0x66])]());});}))];return window[_0x42ad41([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42ad41([0x72,0x61,0x63,0x65])](_0x138a80)[_0x42ad41([0x74,0x68,0x65,0x6e])](()=>_0x44007e);}async function _0x1db2dc(){await _0x3f39fe,_0x3f3370[_0x42ad41([0x6d,0x6f,0x64,0x65,0x6c])][_0x42ad41([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f3400,_0x3f3370[_0x42ad41([0x6d,0x6f,0x64,0x65,0x6c])][_0x42ad41([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f3400,_0x3f3370[_0x42ad41([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42ad41([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20b17e(){return _0xfc5ccc(_0x42ad41([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x36d295(_0x42ad41([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x42ad41([0x73,0x74,0x61,0x74,0x65])]==_0x42ad41([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xad122e(){return _0xfc5ccc(_0x42ad41([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 _0x38fc19(){return _0xfc5ccc(_0x42ad41([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4b4146(_0x4c30ce){const _0x62531e=_0x14cd60();_0x3f3370[_0x62531e]=_0x42ad41([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c30ce,_0x4c30ce!=_0x42ad41([0x56,0x61,0x6c,0x69,0x64])&&_0x1db2dc();}function _0x14cd60(){const _0x872834=window[_0x42ad41([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42ad41([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42ad41([0x6e,0x6f,0x77])]())[_0x42ad41([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42ad41([0x2e]),'');let _0x14972c=_0x42ad41([0x6e]);for(let _0x3d2a1f=0x0;_0x3d2a1f<_0x872834[_0x42ad41([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d2a1f+=0x2){let _0x460051=window[_0x42ad41([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x872834[_0x42ad41([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d2a1f,_0x3d2a1f+0x2));_0x460051>=_0x52158e[_0x42ad41([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x460051-=_0x52158e[_0x42ad41([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14972c+=_0x52158e[_0x460051];}return _0x14972c;}function _0x2c646c(){const _0x28e899=_0x2debd7[_0x42ad41([0x73,0x70,0x6c,0x69,0x74])](_0x42ad41([0x2e]));if(0x3!=_0x28e899[_0x42ad41([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x6ede86(_0x28e899[0x1]);function _0x6ede86(_0xec64e9){const _0x59b64f=_0x416169(_0xec64e9);return _0x59b64f&&_0x401d37()?_0x59b64f:null;function _0x401d37(){const _0x45b0c4=_0x59b64f[_0x42ad41([0x6a,0x74,0x69])],_0x252070=window[_0x42ad41([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45b0c4[_0x42ad41([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45b0c4[_0x42ad41([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4015ef={..._0x59b64f,[_0x42ad41([0x6a,0x74,0x69])]:_0x45b0c4[_0x42ad41([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x45b0c4[_0x42ad41([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4015ef[_0x42ad41([0x76,0x63])],_0x6b7b42(_0x4015ef)==_0x252070;}}}async function _0xd49c8c(){let _0x4fffcb=!0x0;try{const _0x5413fe=_0x2debd7[_0x42ad41([0x73,0x70,0x6c,0x69,0x74])](_0x42ad41([0x2e])),[_0x7a3298,_0x476ea0,_0x471e4c]=_0x5413fe;return _0x754d91(_0x7a3298),await _0x26ff5c(_0x7a3298,_0x476ea0,_0x471e4c),_0x4fffcb;}catch(_0x183bf4){return!0x1;}function _0x754d91(_0x13274f){const _0x2b0324=_0x416169(_0x13274f);_0x2b0324&&_0x2b0324[_0x42ad41([0x61,0x6c,0x67])]==_0x42ad41([0x45,0x53,0x32,0x35,0x36])||(_0x4fffcb=!0x1);}async function _0x26ff5c(_0x394480,_0x3c50be,_0x2cfc01){const _0x40773e=window[_0x42ad41([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42ad41([0x66,0x72,0x6f,0x6d])](_0x1e4391(_0x2cfc01),_0x2ddf70=>_0x2ddf70[_0x42ad41([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34904f=new window[(_0x42ad41([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42ad41([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x394480+_0x42ad41([0x2e])+_0x3c50be),_0x4096d0=window[_0x42ad41([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42ad41([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4096d0)return;const _0x50d048=await _0x4096d0[_0x42ad41([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42ad41([0x6a,0x77,0x6b]),_0x55d8e0,{[_0x42ad41([0x6e,0x61,0x6d,0x65])]:_0x42ad41([0x45,0x43,0x44,0x53,0x41]),[_0x42ad41([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42ad41([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42ad41([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4096d0[_0x42ad41([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42ad41([0x6e,0x61,0x6d,0x65])]:_0x42ad41([0x45,0x43,0x44,0x53,0x41]),[_0x42ad41([0x68,0x61,0x73,0x68])]:{[_0x42ad41([0x6e,0x61,0x6d,0x65])]:_0x42ad41([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x50d048,_0x40773e,_0x34904f)||(_0x4fffcb=!0x1);}}function _0x416169(_0xac8724){return _0xac8724[_0x42ad41([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42ad41([0x65,0x79]))?JSON[_0x42ad41([0x70,0x61,0x72,0x73,0x65])](_0x1e4391(_0xac8724)):null;}function _0x1e4391(_0x5ea3d8){return window[_0x42ad41([0x61,0x74,0x6f,0x62])](_0x5ea3d8[_0x42ad41([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42ad41([0x2b]))[_0x42ad41([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42ad41([0x2f])));}function _0x6b7b42(_0x38f9df){let _0x20959d=0x1505;function _0x4db94c(_0x221f54){for(let _0x3b4fe1=0x0;_0x3b4fe1<_0x221f54[_0x42ad41([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b4fe1++){const _0x206a54=_0x221f54[_0x42ad41([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b4fe1);_0x20959d=(_0x20959d<<0x5)+_0x20959d+_0x206a54,_0x20959d&=_0x20959d;}}function _0x2c0db8(_0x1dc840){Array[_0x42ad41([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1dc840)?_0x1dc840[_0x42ad41([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c0db8):_0x1dc840&&typeof _0x1dc840==_0x42ad41([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42ad41([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1dc840)[_0x42ad41([0x73,0x6f,0x72,0x74])]()[_0x42ad41([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x230a8a,_0x1fc788])=>{_0x4db94c(_0x230a8a),_0x2c0db8(_0x1fc788);}):_0x4db94c(window[_0x42ad41([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1dc840));}return _0x2c0db8(_0x38f9df),_0x20959d>>>0x0;}function _0x56a8da(_0x459b28){return _0x459b28[_0x42ad41([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42ad41([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42ad41([0x30]));}function _0x4f5cec(_0x39e721){return _0x39e721[_0x42ad41([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42ad41([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42ad41([0x6a,0x6f,0x69,0x6e])]('');}function _0xfc5ccc(_0x5b3caa){return _0x3f3370[_0x42ad41([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42ad41([0x68,0x61,0x73])](_0x5b3caa);}function _0x36d295(_0x44718e){return _0x3f3370[_0x42ad41([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42ad41([0x67,0x65,0x74])](_0x44718e);}function _0x1f3400(){}function _0x42ad41(_0x490ef3){return _0x490ef3['map'](_0x3b1b2b=>String['fromCharCode'](_0x3b1b2b))['join']('');}_0x4b4146(await _0x2cc2b2());}(this);}set['adapter'](_0x73eb63){if(this['_adapter'])throw new _0xd71c7a('track-changes-adapter-already-set',this);this['_adapter']=_0x73eb63;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5c8b8f=!0x1,toJSON:_0x212feb=!0x1}={}){const _0x4081be=[];for(const _0x438809 of this['_suggestions']['values']())_0x5c8b8f&&!_0x438809['isInContent']||_0x4081be['push'](_0x438809);return _0x212feb?_0x4081be['map'](_0x5ccab4=>_0x5ccab4['toJSON']()):_0x4081be;}['getSuggestion'](_0x55482a){const _0xc3be1d=this['_suggestions']['get'](_0x55482a);if(!_0xc3be1d)throw new _0xd71c7a('track-changes-suggestion-not-found',this);return _0xc3be1d;}['hasSuggestion'](_0x641ae2){return this['_suggestions']['has'](_0x641ae2);}['addSuggestionData'](_0x2f66ba){const {authorId:_0x4bc788,id:_0xfa6bca,attributes:_0x3105a9}=_0x2f66ba,[_0x2bc413,_0x15df3f]=_0x2f66ba['type']['split'](':'),_0x45ad26=this['_suggestions']['get'](_0xfa6bca)||this['_createSuggestion'](_0x2bc413,_0x15df3f,_0xfa6bca,_0x4bc788,_0x3105a9);if(this['_addThreadToSuggestion'](_0x45ad26),this['_checkSuggestionCorrectness'](_0x45ad26,_0x2bc413,_0x15df3f||null,_0x4bc788),_0x45ad26['createdAt']=_0x2f66ba['createdAt'],_0x45ad26['_isDataLoaded']=!0x0,_0x3105a9&&_0x3105a9['@external']){const _0x37317c=_0x3105a9['@external'],_0x463b40=this['_getExternalAuthor'](_0x37317c['authorName']);_0x45ad26['authoredAt']=_0x37317c['createdAt'],_0x45ad26['author']=_0x463b40,_0x45ad26['isExternal']=!0x0;}else _0x45ad26['authoredAt']=_0x2f66ba['createdAt'];switch(_0x2f66ba['data']&&(_0x45ad26['data']=_0x2f66ba['data']),_0x2f66ba['attributes']&&(_0x45ad26['attributes']=_0x2f66ba['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x45ad26['_saved']=!0x0),this['_suggestionState']['get'](_0x45ad26)){case'notReady':this['_suggestionState']['set'](_0x45ad26,'dataReady');break;case'markerReady':_0x45ad26['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x45ad26])),this['_refreshSuggestionsChain'](new Set([_0x45ad26])),this['_suggestionState']['set'](_0x45ad26,'ready'),this['fire']('suggestionLoaded',_0x45ad26)):this['_suggestionState']['set'](_0x45ad26,'removed');}return _0x45ad26;}['acceptSuggestion'](_0x3f8c5e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3301c6 of _0x3f8c5e['getAllAdjacentSuggestions']())_0x3301c6['accept']();});});}['discardSuggestion'](_0x24e739){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1878c3 of _0x24e739['getAllAdjacentSuggestions']())_0x1878c3['discard']();});});}['enableCommand'](_0x47bee8,_0x560819){const _0x2b8cde=this['editor']['commands']['get'](_0x47bee8);if(!_0x2b8cde)throw new _0xd71c7a('track-changes-command-not-found',this,{'commandName':_0x47bee8});if(this['_enabledCommands']['has'](_0x2b8cde))throw new _0xd71c7a('track-changes-enable-command-twice',this,{'commandName':_0x47bee8});this['_enabledCommands']['add'](_0x2b8cde),_0x560819&&_0x2b8cde['on']('execute',(_0x336640,_0x315457)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x315457['length']>0x0&&_0x315457[_0x315457['length']-0x1]&&_0x315457[_0x315457['length']-0x1]['forceDefaultExecution']?_0x315457['pop']():(_0x336640['return']=_0x560819((..._0x284ec3)=>_0x2b8cde['execute'](..._0x284ec3,{'forceDefaultExecution':!0x0}),..._0x315457),_0x336640['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5c705e){let _0x3cbc17,_0x1509ad;const _0x59b3d0=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3cbc17=_0x5c705e();}catch(_0x51747e){_0x1509ad=_0x51747e;}return _0x59b3d0||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1509ad&&_0xd71c7a['rethrowUnexpectedError'](_0x1509ad,this),_0x3cbc17;}['markInsertion'](_0x2fc8fe,_0x43285f=null,_0x145959={}){if(_0x2fc8fe['isCollapsed'])return null;const _0x458635=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1059ef,meta:_0xd89c71}of this['_findSuggestions'](_0x2fc8fe,'insertion'))if(_0xd89c71['isOwn']){if(!_0xd89c71['isNextTo']){if(_0xd89c71['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x1059ef,_0x145959))continue;return _0x1059ef;}if(Xt(_0x1059ef,_0x145959))return _0x1059ef;this['_breakSuggestionMarker'](_0x1059ef,_0x2fc8fe['start'],_0x2fc8fe['end']);break;}if(_0x43285f==_0x1059ef['subType']&&Xt(_0x1059ef,_0x145959)){const _0x559d25=_0x1059ef['getFirstRange']();return _0x559d25['start']['isEqual'](_0x2fc8fe['end'])?this['_setSuggestionRange'](_0x1059ef,this['_model']['createRange'](_0x2fc8fe['start'],_0x559d25['end'])):this['_setSuggestionRange'](_0x1059ef,this['_model']['createRange'](_0x559d25['start'],_0x2fc8fe['end'])),_0x1059ef;}}const _0x512d24=_0x4cee4c(),_0x502f7d=_0x458635['id'],_0x35a8f6=_0x43285f?'insertion:'+_0x43285f:'insertion',_0x36231=this['_setSuggestionData']({'id':_0x512d24,'type':_0x35a8f6,'createdAt':new Date(),'authorId':_0x502f7d,'attributes':_0x145959});return this['_addSuggestionMarker'](_0x35a8f6,_0x512d24,_0x502f7d,_0x2fc8fe),_0x36231;}['markMultiRangeInsertion'](_0x13f791,_0x5f17cd='multi',_0x30a496={}){const _0x17ce1c=this['editor']['plugins']['get']('Users')['me'],_0x19569b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5f17cd,'join');for(const _0x1b6723 of this['getSuggestions']())if(_0x1b6723['author']['id']==_0x17ce1c['id']&&'insertion'==_0x1b6723['type']&&_0x1b6723['subType']==_0x5f17cd&&Xt(_0x1b6723,_0x30a496)&&(_0x19569b(_0x1b6723['getRanges'](),_0x13f791)||_0x19569b(_0x13f791,_0x1b6723['getRanges']()))){for(const _0x1be265 of _0x13f791)_0x1b6723['addRange'](_0x1be265);return _0x1b6723;}for(const {suggestion:_0x147274,meta:_0x1d23fb}of this['_findSuggestions'](_0x13f791,'insertion')){if(!_0x1d23fb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1d23fb['containsRangeInObject'])continue;if(!Xt(_0x147274,_0x30a496))continue;let _0x337f52=!0x0;for(const _0x3b2106 of _0x147274['getRanges']())for(const _0x1b1305 of _0x13f791)if(!_0x3b2106['containsRange'](_0x1b1305)){_0x337f52=!0x1;break;}if(_0x337f52)return _0x147274;}const _0x13c517=_0x4cee4c(),_0x3714fd=_0x17ce1c['id'],_0x4c6620='insertion:'+_0x5f17cd,_0x41dc37=this['_setSuggestionData']({'id':_0x13c517,'type':_0x4c6620,'createdAt':new Date(),'authorId':_0x3714fd,'attributes':_0x30a496});for(const _0x36c9aa of _0x13f791)this['_addSuggestionMarker'](_0x4c6620,_0x13c517,_0x3714fd,_0x36c9aa,o['getMultiRangeId']());return _0x41dc37;}['markInlineFormat'](_0x18bc5b,_0x19e30d,_0x14da59=null,_0x4e35ed={}){if(_0x14da59=_0x14da59||Kt(_0x19e30d),_0x18bc5b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xb85fc9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x14da59,'accept');return this['forceDefaultExecution'](()=>_0xb85fc9([_0x18bc5b],_0x19e30d,_0x4e35ed)),null;}const _0x1df313=this['editor']['plugins']['get']('Users')['me'],_0x158c4c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x14342d,meta:_0xb168d2}of this['_findSuggestions'](_0x18bc5b,'insertion'))_0xb168d2['isOwn']&&!_0xb168d2['isInsideObject']&&_0x158c4c['push'](..._0x14342d['getRanges']());}const _0x4d9eed=function(_0xb1eaa9,_0x37de2b){const _0xeef33=[];for(const _0x165ea4 of _0x37de2b){const _0x265f5f=_0xb1eaa9['getIntersection'](_0x165ea4);_0x265f5f&&_0xeef33['push'](_0x265f5f);}return _0xeef33;}(_0x18bc5b,_0x158c4c),_0x4c5391=function(_0x3cb2fc,_0x15d777){const _0x35b6bc=[_0x3cb2fc];for(const _0x4add55 of _0x15d777){let _0x65fe39=0x0;for(;_0x65fe39<_0x35b6bc['length'];){const _0x217ae0=_0x35b6bc[_0x65fe39]['getDifference'](_0x4add55);_0x35b6bc['splice'](_0x65fe39,0x1,..._0x217ae0),_0x65fe39+=_0x217ae0['length'];}}return _0x35b6bc;}(_0x18bc5b,_0x158c4c);_0x4d9eed['length']&&this['_model']['change'](()=>{for(const _0x3530bd of _0x4d9eed){const _0x14c81f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x14da59,'accept');this['forceDefaultExecution'](()=>_0x14c81f([_0x3530bd],_0x19e30d,_0x4e35ed));}});for(const _0x71b49a of _0x4c5391){let _0x32db0a=null,_0x165388=_0x71b49a['start'],_0x179085=_0x71b49a['end'];for(const {suggestion:_0x1fa846,meta:_0x4840ed}of this['_findSuggestions'](_0x71b49a,'formatInline')){if(!_0x4840ed['isOwn'])continue;if(_0x1fa846['subType']!=_0x14da59)continue;if(!Xt(_0x1fa846,_0x4e35ed))continue;const _0x40125a=_0x1fa846['getFirstRange']();if(_0x40125a['containsRange'](_0x71b49a,!0x0))return null;_0x165388=_0x165388['isBefore'](_0x40125a['start'])?_0x165388:_0x40125a['start'],_0x179085=_0x179085['isAfter'](_0x40125a['end'])?_0x179085:_0x40125a['end'],_0x32db0a?_0x40125a['start']['isBefore'](_0x32db0a['getFirstRange']()['start'])?(_0x32db0a['removeMarkers'](),_0x32db0a=_0x1fa846):_0x1fa846['removeMarkers']():_0x32db0a=_0x1fa846;}const _0x5a045c=this['_model']['createRange'](_0x165388,_0x179085);if(_0x32db0a)this['_setSuggestionRange'](_0x32db0a,_0x5a045c);else{const _0x268488=_0x4cee4c(),_0x42d5cb=_0x1df313['id'];this['_setSuggestionData']({'id':_0x268488,'type':'formatInline:'+_0x14da59,'data':_0x19e30d,'createdAt':new Date(),'authorId':_0x42d5cb,'attributes':_0x4e35ed}),this['_addSuggestionMarker']('formatInline:'+_0x14da59,_0x268488,_0x42d5cb,_0x5a045c);}}return null;}['markBlockFormat'](_0x299fd5,_0x12216f,_0x148d07=[],_0xa73e50=null,_0x19e932={}){_0x12216f['formatGroupId']||(_0x12216f['formatGroupId']=_0x12216f['commandName']),_0x12216f['multipleBlocks']=_0x299fd5['is']('range'),_0xa73e50=_0xa73e50||Kt(_0x12216f);const _0x33d3ed=_0x148d07['map'](_0x8a5808=>zt(_0x8a5808,this['_model'])),_0x35045a=_0x299fd5['is']('range')?_0x299fd5:zt(_0x299fd5,this['_model']);if('never'===this['_trackFormatChanges']){const _0x10f781=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa73e50,'accept');return this['forceDefaultExecution'](()=>_0x10f781([_0x35045a],_0x12216f,_0x19e932)),null;}_0x33d3ed['push'](_0x35045a);let _0x20c8e9=!0x0;for(const _0x5c4089 of _0x33d3ed)if(!this['_rangeIsInLocalUserInsertion'](_0x5c4089)){_0x20c8e9=!0x1;break;}if(_0x20c8e9&&'always'!==this['_trackFormatChanges']){const _0x2e4dbc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa73e50,'accept');return this['forceDefaultExecution'](()=>_0x2e4dbc([_0x35045a],_0x12216f,_0x19e932)),null;}let _0x3c0856=null,_0x484953=_0x35045a['start'],_0x4a6c99=_0x35045a['end'];for(const {suggestion:_0x2d79db,meta:_0x26283a}of this['_findSuggestions'](_0x35045a,'formatBlock')){if(!_0x26283a['isOwn'])continue;if(_0x26283a['isNextTo']||_0x26283a['containsRangeInObject']||_0x26283a['isInsideObject'])continue;if(_0x2d79db['data']['formatGroupId']!=_0x12216f['formatGroupId'])continue;if(!Xt(_0x2d79db,_0x19e932))continue;const _0xab4330=_0x2d79db['getFirstRange']();if(_0x2d79db['subType']==_0xa73e50){if(_0xab4330['containsRange'](_0x35045a,!0x0))return null;_0x484953=_0x484953['isBefore'](_0xab4330['start'])?_0x484953:_0xab4330['start'],_0x4a6c99=_0x4a6c99['isAfter'](_0xab4330['end'])?_0x4a6c99:_0xab4330['end'],_0x3c0856?_0xab4330['start']['isBefore'](_0x3c0856['getFirstRange']()['start'])?(_0x3c0856['removeMarkers'](),_0x3c0856=_0x2d79db):_0x2d79db['removeMarkers']():_0x3c0856=_0x2d79db;}else{const _0x4b1074=_0x35045a['getIntersection'](_0xab4330);this['_cutOutSuggestionMarker'](_0x2d79db,_0x4b1074);}}const _0x42b839=this['editor']['plugins']['get']('Users')['me'],_0x6ca047=_0x4cee4c(),_0x50ac57=_0x42b839['id'];if(_0x3c0856)return this['_setSuggestionRange'](_0x3c0856,this['_model']['createRange'](_0x484953,_0x4a6c99)),_0x3c0856;{const _0x3a0a51=this['_setSuggestionData']({'id':_0x6ca047,'type':'formatBlock:'+_0xa73e50,'data':_0x12216f,'createdAt':new Date(),'authorId':_0x50ac57,'attributes':_0x19e932});return this['_addSuggestionMarker']('formatBlock:'+_0xa73e50,_0x6ca047,_0x50ac57,this['_model']['createRange'](_0x484953,_0x4a6c99)),_0x3a0a51;}}['markMultiRangeBlockFormat'](_0x5600fe,_0x595732,_0x2a3d5d=[],_0x28df13=null,_0x3d1efe={}){_0x595732['formatGroupId']||(_0x595732['formatGroupId']=_0x595732['commandName']);const _0x407eb1=_0x5600fe[0x0];_0x595732['multipleBlocks']=_0x407eb1['is']('range'),_0x28df13=_0x28df13||Kt(_0x595732);const _0x34e69c=_0x2a3d5d['map'](_0x12d223=>zt(_0x12d223,this['_model'])),_0x3e3cd2=_0x407eb1['is']('range')?_0x5600fe:_0x5600fe['map'](_0x8928=>zt(_0x8928,this['_model']));if('never'===this['_trackFormatChanges']){const _0x56c5fa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28df13,'accept');return this['forceDefaultExecution'](()=>_0x56c5fa(_0x3e3cd2,_0x595732,_0x3d1efe)),null;}_0x34e69c['push'](..._0x3e3cd2);let _0x1b5c83=!0x0;for(const _0x2bbffd of _0x34e69c)if(!this['_rangeIsInLocalUserInsertion'](_0x2bbffd)){_0x1b5c83=!0x1;break;}if(_0x1b5c83&&'always'!==this['_trackFormatChanges']){const _0x5f29dd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28df13,'accept');return this['forceDefaultExecution'](()=>_0x5f29dd(_0x3e3cd2,_0x595732,_0x3d1efe)),null;}const _0x58b553=this['editor']['plugins']['get']('Users')['me'];for(const _0x12a4b1 of this['getSuggestions']()){if(_0x12a4b1['author']['id']!=_0x58b553['id'])continue;if('formatBlock'!=_0x12a4b1['type']||_0x12a4b1['data']['formatGroupId']!=_0x595732['formatGroupId'])continue;if(!Xt(_0x12a4b1,_0x3d1efe))continue;const _0x223483=_0x12a4b1['subType']==_0x28df13;for(let _0x229ef0=0x0;_0x229ef0<_0x3e3cd2['length'];_0x229ef0++){const _0x12699c=_0x3e3cd2[_0x229ef0];for(const _0x1fa096 of _0x12a4b1['getMarkers']()){const _0xb52da=_0x1fa096['getRange']();if(_0x12699c['isEqual'](_0xb52da)){_0x223483?(_0x3e3cd2['splice'](_0x229ef0,0x1),_0x229ef0--):_0x12a4b1['removeMarker'](_0x1fa096['name']);break;}}}}if(0x0==_0x3e3cd2['length'])return null;const _0x401fcb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28df13,'join');for(const _0x2f8a29 of this['getSuggestions']())if(_0x2f8a29['author']['id']==_0x58b553['id']&&'formatBlock'==_0x2f8a29['type']&&_0x2f8a29['data']['formatGroupId']==_0x595732['formatGroupId']&&_0x2f8a29['subType']==_0x28df13&&Xt(_0x2f8a29,_0x3d1efe)&&(_0x401fcb(_0x2f8a29['getRanges'](),_0x3e3cd2)||_0x401fcb(_0x3e3cd2,_0x2f8a29['getRanges']()))){for(const _0x28fe92 of _0x3e3cd2)_0x2f8a29['addRange'](_0x28fe92);return _0x2f8a29;}const _0xd5c29f=_0x4cee4c(),_0x2647b3=_0x58b553['id'],_0x54b21e='formatBlock:'+_0x28df13,_0x40c3f2=this['_setSuggestionData']({'id':_0xd5c29f,'type':_0x54b21e,'data':_0x595732,'createdAt':new Date(),'authorId':_0x2647b3,'attributes':_0x3d1efe});for(const _0x277a29 of _0x3e3cd2)this['_addSuggestionMarker'](_0x54b21e,_0xd5c29f,_0x2647b3,_0x277a29,o['getMultiRangeId']());return _0x40c3f2;}['markDeletion'](_0xedbb9c,_0x497296=null,_0x4dfd27={}){if(_0xedbb9c['isCollapsed'])return null;const _0x41c5aa=this['editor']['plugins']['get']('Users')['me'],_0x1c1114=new _0x5eb1fc(_0xedbb9c['start'],_0xedbb9c['end']);for(const {suggestion:_0x222eeb,meta:_0x41bd03}of this['_findSuggestions'](_0x1c1114,'insertion'))if(_0x41bd03['isOwn']&&!_0x41bd03['isNextTo']){if(_0x222eeb['isMultiRange']){const _0x166167=_0x222eeb['getRanges']()['filter'](_0x29fb2a=>'$graveyard'!=_0x29fb2a['root']['rootName']);_0x166167['every'](_0x3b411f=>_0x1c1114['containsRange'](_0x3b411f,!0x0))&&_0x222eeb['discard']();if(_0x166167['some'](_0x3bbedb=>_0x3bbedb['containsRange'](_0x1c1114,!0x0))){const _0x1b8812=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x497296,'accept');return this['forceDefaultExecution'](()=>_0x1b8812([_0x1c1114],null,_0x4dfd27)),null;}}else{const _0x4178b7=_0x1c1114['getIntersection'](_0x222eeb['getFirstRange']());null!==_0x4178b7&&_0x222eeb['_onDiscard']([_0x4178b7],null,_0x4dfd27);}}if(_0x1c1114['detach'](),_0x1c1114['isCollapsed']||'$graveyard'==_0x1c1114['root']['rootName'])return null;let _0x51261b=null,_0xf796b8=_0x1c1114['start'],_0x5243b4=_0x1c1114['end'];const _0x37d09c=this['_findSuggestions'](_0x1c1114,'deletion');for(const {suggestion:_0x505ff1,meta:_0x4a2360}of _0x37d09c){const _0x79031c=this['_model']['createRange'](_0xf796b8,_0x5243b4);if(_0x4a2360['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a2360['containsRangeInObject']&&!_0x4a2360['isInsideObject'])){if(_0x505ff1['isMultiRange']){if(!Xt(_0x505ff1,_0x4dfd27))continue;let _0x39b66a=!0x0;for(const _0x12bf4b of _0x505ff1['getRanges']()){if(_0x12bf4b['containsRange'](_0x79031c,!0x0))return _0x505ff1;_0x79031c['containsRange'](_0x12bf4b)||(_0x39b66a=!0x1);}_0x39b66a&&_0x505ff1['discard']();}else{const _0x232dba=_0x505ff1['getFirstRange']();if(_0x232dba['containsRange'](_0x79031c,!0x0))return _0x505ff1;if(!Xt(_0x505ff1,_0x4dfd27)){_0x79031c['containsRange'](_0x232dba)?_0x505ff1['removeMarkers']():_0x232dba['containsPosition'](_0xf796b8)?_0xf796b8=_0x232dba['end']:_0x232dba['containsPosition'](_0x5243b4)&&(_0x5243b4=_0x232dba['start']);continue;}_0xf796b8=_0xf796b8['isBefore'](_0x232dba['start'])?_0xf796b8:_0x232dba['start'],_0x5243b4=_0x5243b4['isAfter'](_0x232dba['end'])?_0x5243b4:_0x232dba['end'],_0x4dfd27=Object['assign']({},_0x505ff1['attributes']),_0x51261b?_0x232dba['start']['isBefore'](_0x51261b['getFirstRange']()['start'])?(_0x51261b['removeMarkers'](),_0x51261b=_0x505ff1):_0x505ff1['removeMarkers']():_0x51261b=_0x505ff1;}}}if(_0x51261b)return this['_setSuggestionRange'](_0x51261b,this['_model']['createRange'](_0xf796b8,_0x5243b4)),_0x51261b;{const _0x424ff4=_0x4cee4c(),_0x36098e=this['_model']['createRange'](_0xf796b8,_0x5243b4),_0x215e78=_0x41c5aa['id'],_0xf8fc6c=_0x497296?'deletion:'+_0x497296:'deletion',_0x26c0d3=this['_setSuggestionData']({'id':_0x424ff4,'type':_0xf8fc6c,'createdAt':new Date(),'authorId':_0x215e78,'attributes':_0x4dfd27});return this['_addSuggestionMarker'](_0xf8fc6c,_0x424ff4,_0x215e78,_0x36098e),_0x26c0d3;}}['markMultiRangeDeletion'](_0x48b9b9,_0x95eaec='multi',_0x5c11ad={}){const _0x32db2c=this['editor']['plugins']['get']('Users')['me'],_0x32824d=_0x48b9b9['map'](_0x3743e2=>new _0x5eb1fc(_0x3743e2['start'],_0x3743e2['end'])),_0x57eeca=new Set();for(const {suggestion:_0x3bd1ff,meta:_0x48f2c3}of this['_findSuggestions'](_0x32824d,'insertion'))_0x48f2c3['isOwn']&&!_0x48f2c3['isNextTo']&&_0x57eeca['add'](_0x3bd1ff);for(const _0x4251c8 of _0x57eeca)if(_0x4251c8['isMultiRange']){const _0x5710c6=_0x4251c8['getRanges']();(!_0x4251c8['attributes']||!_0x4251c8['attributes']['skipNestingCheck'])&&(_0x5710c6['every'](_0x177b10=>_0x32824d['some'](_0xb73bbf=>_0xb73bbf['containsRange'](_0x177b10,!0x0)))&&_0x4251c8['discard']());if(_0x32824d['every'](_0x19ae05=>_0x5710c6['some'](_0x36be15=>_0x36be15['containsRange'](_0x19ae05,!0x0)))){const _0x5208e9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x95eaec,'accept');return this['forceDefaultExecution'](()=>_0x5208e9(_0x48b9b9,null,_0x5c11ad)),null;}}else{const _0x41ad30=_0x4251c8['getFirstRange']();_0x32824d['some'](_0x2698ee=>_0x2698ee['containsRange'](_0x41ad30,!0x0))&&_0x4251c8['discard']();if(_0x32824d['every'](_0x374877=>_0x41ad30['containsRange'](_0x374877,!0x0))){const _0x3de35b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x95eaec,'accept');return this['forceDefaultExecution'](()=>_0x3de35b(_0x32824d,null,_0x5c11ad)),null;}}const _0x1ae51a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x95eaec,'join');let _0x4842cf=null;for(const _0x2c2079 of this['getSuggestions']())if(_0x2c2079['author']['id']==_0x32db2c['id']&&_0x2c2079['isInContent']&&'deletion'==_0x2c2079['type']&&_0x2c2079['subType']==_0x95eaec&&Xt(_0x2c2079,_0x5c11ad)&&(_0x1ae51a(_0x2c2079['getRanges'](),_0x32824d)||_0x1ae51a(_0x32824d,_0x2c2079['getRanges']()))){if(_0x4842cf){if(_0x2c2079['commentThread']&&_0x2c2079['commentThread']['length'])continue;for(const _0x3626bc of _0x2c2079['getRanges']())_0x4842cf['isIntersectingWithRange'](_0x3626bc)||_0x4842cf['addRange'](_0x3626bc);_0x2c2079['removeMarkers']();}else{_0x4842cf=_0x2c2079;for(const _0x2ca0bf of _0x32824d)_0x2c2079['isIntersectingWithRange'](_0x2ca0bf)||_0x2c2079['addRange'](_0x2ca0bf);}}if(_0x4842cf)return _0x4842cf;_0x57eeca['clear']();for(const {suggestion:_0x5ea0b1,meta:_0x3e2f54}of this['_findSuggestions'](_0x32824d,'deletion'))_0x3e2f54['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3e2f54['containsRangeInObject']&&!_0x3e2f54['isInsideObject'])&&Xt(_0x5ea0b1,_0x5c11ad)&&_0x57eeca['add'](_0x5ea0b1);for(const _0x5c0ea7 of _0x57eeca){const _0x61c20d=_0x5c0ea7['getRanges']();if(!_0x5c11ad||!_0x5c11ad['skipNestingCheck']){if(_0x32824d['every'](_0x5b499a=>_0x61c20d['some'](_0x3f10d1=>_0x3f10d1['containsRange'](_0x5b499a,!0x0))))return _0x5c0ea7;}(!_0x5c0ea7['attributes']||!_0x5c0ea7['attributes']['skipNestingCheck'])&&(_0x61c20d['every'](_0x84196f=>_0x32824d['some'](_0x42e5d7=>_0x42e5d7['containsRange'](_0x84196f,!0x0)))&&_0x5c0ea7['discard']());}const _0x11fc27=_0x4cee4c(),_0x55b3dd=_0x32db2c['id'],_0x5b65b8='deletion:'+_0x95eaec,_0x4cc8a8=this['_setSuggestionData']({'id':_0x11fc27,'type':_0x5b65b8,'createdAt':new Date(),'authorId':_0x55b3dd,'attributes':_0x5c11ad});for(const _0x42706d of _0x32824d)_0x42706d['detach'](),_0x42706d['isCollapsed']||'$graveyard'==_0x42706d['root']['rootName']||this['_addSuggestionMarker'](_0x5b65b8,_0x11fc27,_0x55b3dd,_0x42706d,o['getMultiRangeId']());return _0x4cc8a8;}['markAttributeChange'](_0x18b4cb,_0x33907e,_0x216390,_0x55429b,_0x12e7b0){if(_0x18b4cb['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5d6583=this['editor']['plugins']['get']('Users')['me']['id'],_0x32c889=Array['from'](this['_suggestions']['values']())['filter'](_0x1660c4=>'attribute'==_0x1660c4['type']&&_0x1660c4['data']['key']==_0x33907e&&_0x1660c4['isIntersectingWithRange'](_0x18b4cb));if('default'===this['_trackFormatChanges']){const _0x2d90f5=this['_findSuggestions'](_0x18b4cb,'insertion')['filter'](({meta:_0x10ff60})=>_0x10ff60['isOwn']&&!_0x10ff60['isInsideObject']&&!_0x10ff60['isNextTo'])['map'](({suggestion:_0x165de5})=>_0x165de5);_0x32c889['unshift'](..._0x2d90f5);}const _0x30dbc2=new Map([[_0x18b4cb,_0x216390]]);for(const _0x4d31c1 of _0x32c889){const _0xe80d66='attribute'==_0x4d31c1['type']?_0x4d31c1['data']['oldValue']:void 0x0,_0x5d45d7=_0x4d31c1['getFirstRange'](),_0x4190e8=Array['from'](_0x30dbc2['keys']())['find'](_0x2ef612=>_0x2ef612['isIntersecting'](_0x5d45d7));if(!_0x4190e8)continue;const _0x3ec679=_0x4190e8['getDifference'](_0x5d45d7);this['_isBlockAttribute'](_0x33907e)&&'insertion'==_0x4d31c1['type']&&0x0!=_0x3ec679['length']||(_0x30dbc2['delete'](_0x4190e8),_0x3ec679['forEach'](_0x598b33=>{_0x30dbc2['set'](_0x598b33,_0x216390);}),'insertion'!=_0x4d31c1['type']&&_0xe80d66!=_0x55429b&&_0x30dbc2['set'](_0x4190e8['getIntersection'](_0x5d45d7),_0xe80d66));}const _0x580c11=[];for(const [_0x26d9f0,_0x219176]of _0x30dbc2){const _0x1d95dd=_0x4cee4c(),_0x4ea9d8={'key':_0x33907e,'oldValue':_0x219176,'newValue':_0x55429b};_0x33907e['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':_0x33907e});const _0x40e30f=('attribute:'+(_0x33907e+'|'+Kt({'newValue':_0x55429b})))['substring'](0x0,0x3c),_0x1d255b=this['_setSuggestionData']({'id':_0x1d95dd,'type':_0x40e30f,'data':_0x4ea9d8,'createdAt':new Date(),'authorId':_0x5d6583,'attributes':_0x12e7b0});_0x580c11['push'](_0x1d255b),this['_addSuggestionMarker'](_0x40e30f,_0x1d95dd,_0x5d6583,_0x26d9f0);}return _0x580c11;}['enableDefaultAttributesIntegration'](_0x3096d2){this['enableCommand'](_0x3096d2,(_0x6d2a99,..._0x359753)=>{this['_recordAttributeChanges'](()=>{_0x6d2a99(..._0x359753);});});}['registerBlockAttribute'](_0x336868){this['_blockAttributeKeys']['add'](_0x336868);}['registerInlineAttribute'](_0x40dd83){this['_inlineAttributeKeys']['add'](_0x40dd83);}['_getAttributeKey'](_0x3521a7){return'attribute'==_0x3521a7['type']?_0x3521a7['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xae7a73,_0x94805d){const _0x4fdc70=_0xae7a73['getFirstMarker']();this['_model']['change'](_0x6c85ab=>{_0x6c85ab['updateMarker'](_0x4fdc70,{'range':_0x94805d});});}['_addThreadToSuggestion'](_0x401e52){const _0x50555f=_0x401e52['id'],_0x128718=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x50555f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x128718,'threadId':_0x50555f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x41c90e=this['_commentsRepository']['getCommentThread'](_0x50555f);_0x41c90e['unbind']('isRemovable'),_0x41c90e['isRemovable']=!0x1,_0x401e52['commentThread']=_0x41c90e;}['_checkSuggestionCorrectness'](_0x139fa5,_0x5d473c,_0x1f3b65,_0x16848e){if(_0x139fa5['type']!=_0x5d473c||_0x139fa5['subType']!=_0x1f3b65||_0x139fa5['creator']['id']!=_0x16848e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xd71c7a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x274303,_0xf71ece){const _0x5f196f=_0x274303['getFirstRange']();if(_0xf71ece['isEqual'](_0x5f196f))_0x274303['removeMarkers']();else{if(_0x5f196f['containsRange'](_0xf71ece)){const _0x2fd63c=this['_model']['createPositionAt'](_0xf71ece['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x274303,this['_model']['createRange'](_0x5f196f['start'],_0x2fd63c));const _0x3b94d1=_0x4cee4c(),_0x422060=_0x274303['creator']['id'],_0x37c7e0=_0x274303['type']+':'+_0x274303['subType'];this['_setSuggestionData']({'id':_0x3b94d1,'type':_0x37c7e0,'createdAt':new Date(),'authorId':_0x422060,'data':_0x274303['data'],'attributes':_0x274303['attributes']});const _0x1dee27=this['_model']['createPositionAt'](_0xf71ece['end']['parent'],'after'),_0x2600a0=this['_model']['createRange'](_0x1dee27,_0x5f196f['end']);this['_addSuggestionMarker'](_0x37c7e0,_0x3b94d1,_0x422060,_0x2600a0);}else{if(_0x5f196f['containsPosition'](_0xf71ece['start'])){const _0x11f1d5=this['_model']['createPositionAt'](_0xf71ece['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x274303,this['_model']['createRange'](_0x5f196f['start'],_0x11f1d5));}else{const _0x165528=this['_model']['createPositionAt'](_0xf71ece['end']['parent'],'after');this['_setSuggestionRange'](_0x274303,this['_model']['createRange'](_0x165528,_0x5f196f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2f08f5){for(const {suggestion:_0x4e1c29,meta:_0x559324}of this['_findSuggestions'](_0x2f08f5,'insertion')){if(!_0x559324['isOwn'])continue;const _0x295416=_0x4e1c29['getRanges']();for(const _0x5e8eef of _0x295416)if(!_0x2f08f5['getDifference'](_0x5e8eef)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4a7464){const _0x41cac8=this['editor']['plugins']['get']('Users')['getUser'](_0x4a7464);if(!_0x41cac8)throw new _0xd71c7a('track-changes-user-not-found',this);return _0x41cac8;}['_getExternalAuthor'](_0x3baf33){const _0x333b64=this['editor']['plugins']['get']('Users'),_0x7fb4af=_0x337f49('external:'+_0x3baf33),_0x51bb78=_0x333b64['getUser'](_0x7fb4af);return _0x51bb78||_0x333b64['addUser']({'id':_0x7fb4af,'name':_0x3baf33});}['_createSuggestion'](_0x2ee9fa,_0x294c25,_0x125552,_0xb85e28,_0x5d1221){const _0x19b6ce=this['_getAuthorFromId'](_0xb85e28),_0x533f01=this['_suggestionFactory']['buildSuggestion'](_0x2ee9fa,_0x294c25,_0x125552,_0x19b6ce,_0x5d1221,_0x1de133=>{this['_updateSuggestionData'](_0x125552,{'attributes':_0x1de133});const _0x218e9b=this['getSuggestion'](_0x125552);this['_joinWithAdjacentSuggestions'](new Set([_0x218e9b])),this['_refreshSuggestionsChain'](new Set([_0x218e9b]));});return this['listenTo'](_0x533f01,'accept',()=>{this['_updateSuggestionData'](_0x125552,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x533f01,'discard',()=>{this['_updateSuggestionData'](_0x125552,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x125552,_0x533f01),this['_suggestionState']['set'](_0x533f01,'notReady'),_0x533f01;}['_splitMarkerName'](_0x18e850){const _0x15372b=_0x18e850['split'](':');return{'group':_0x15372b[0x0],'type':_0x15372b[0x1],'subType':_0x15372b['length']>=0x5?_0x15372b[0x2]:null,'id':_0x15372b['length']<0x5?_0x15372b[0x2]:_0x15372b[0x3],'authorId':_0x15372b['length']<0x5?_0x15372b[0x3]:_0x15372b[0x4],'markerCount':0x6==_0x15372b['length']?_0x15372b[0x5]:null};}['_breakSuggestionMarker'](_0x25b52f,_0x3e0f33,_0x20c83c){const _0x430fb9=_0x25b52f['getFirstRange'](),_0x39e147=_0x430fb9['start'],_0x34d386=_0x430fb9['end'];this['_setSuggestionRange'](_0x25b52f,this['_model']['createRange'](_0x39e147,_0x3e0f33));const _0x239f30=_0x4cee4c(),_0x495b17=_0x25b52f['creator']['id'],_0xe0ecb=_0x25b52f['type']+(_0x25b52f['subType']?':'+_0x25b52f['subType']:'');this['_setSuggestionData']({'id':_0x239f30,'type':_0xe0ecb,'createdAt':new Date(),'authorId':_0x495b17,'originalSuggestionId':_0x25b52f['id'],'attributes':_0x25b52f['attributes'],'data':_0x25b52f['data']});const _0x1b2e0c=this['_getAttributeKey'](_0x25b52f);('formatBlock'==_0x25b52f['type']||_0x1b2e0c&&this['_isBlockAttribute'](_0x1b2e0c))&&(_0x20c83c=this['_model']['createPositionBefore'](_0x20c83c['parent'])),this['_addSuggestionMarker'](_0xe0ecb,_0x239f30,_0x495b17,this['_model']['createRange'](_0x20c83c,_0x34d386));}['_findSuggestions'](_0x20cf60,_0x2c8a78=null){const _0x5a9879=[],_0x446e51=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x20cf60)||(_0x20cf60=[_0x20cf60]);for(const _0x4597ac of this['getSuggestions']()){if(!_0x4597ac['isInContent'])continue;if(_0x2c8a78&&_0x4597ac['type']!=_0x2c8a78)continue;let _0x557cff=!0x1;for(const _0x464051 of _0x4597ac['getRanges']()){for(const _0x36808d of _0x20cf60){const _0x118309=_0x36808d['start']['isEqual'](_0x464051['end'])||_0x36808d['end']['isEqual'](_0x464051['start']);if(_0x118309||_0x36808d['getIntersection'](_0x464051)){const _0x3359cf=_0x36808d['containsRange'](_0x464051)&&Gt(this['_model']['schema'],_0x464051['start'],_0x36808d),_0x43b437=_0x464051['containsRange'](_0x36808d)&&Gt(this['_model']['schema'],_0x36808d['start'],_0x464051);_0x5a9879['push']({'suggestion':_0x4597ac,'meta':{'isOwn':_0x446e51==_0x4597ac['author'],'isNextTo':_0x118309,'isInsideObject':_0x3359cf,'containsRangeInObject':_0x43b437}}),_0x557cff=!0x0;break;}}if(_0x557cff)break;}}return _0x5a9879;}['_addSuggestionMarker'](_0x3c4599,_0x101bd3,_0x2ea1a3,_0x298ffe,_0x14f5bb){this['_model']['change'](_0x29f961=>{let _0x203346='suggestion:'+_0x3c4599+':'+_0x101bd3+':'+_0x2ea1a3;_0x14f5bb&&(_0x203346=_0x203346+':'+_0x14f5bb),_0x29f961['addMarker'](_0x203346,{'range':_0x298ffe,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2ab134){const _0x35d258=_0x2ab134['previous'],_0x3f2e95=_0x2ab134['next'];_0x2ab134['previous']=null,_0x2ab134['next']=null,null!=_0x35d258&&_0x35d258['next']==_0x2ab134&&(_0x35d258['next']=_0x3f2e95),null!=_0x3f2e95&&_0x3f2e95['previous']==_0x2ab134&&(_0x3f2e95['previous']=_0x35d258),'ready'==this['_suggestionState']['get'](_0x2ab134)&&(this['_suggestionState']['set'](_0x2ab134,'removed'),this['fire']('suggestionUnloaded',_0x2ab134,_0x35d258,_0x3f2e95));}['_setSuggestionData'](_0x1200b5){const _0x3d5f30=_0x1200b5['id'],_0x3878fd=this['addSuggestionData'](_0x1200b5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3c5b93=this['editor']['plugins']['get']('PendingActions'),_0x419852=_0x3878fd['hasComments'],_0x1305e1=_0x3878fd['subType']?_0x3878fd['type']+':'+_0x3878fd['subType']:_0x3878fd['type'],_0x452671=this['editor']['locale'],_0x50a942=_0x3c5b93['add'](c(_0x452671,'PENDING_ACTION_SUGGESTION')),_0x3a71d3={'id':_0x3d5f30,'type':_0x1305e1,'hasComments':_0x419852,'data':_0x1200b5['data']||null,'originalSuggestionId':_0x1200b5['originalSuggestionId']||null,'attributes':_0x3878fd['attributes']};this['_adapter']['addSuggestion'](_0x3a71d3)['then'](_0x23eeb4=>{_0x3878fd['_saved']=!0x0,_0x3c5b93['remove'](_0x50a942),_0x23eeb4&&_0x23eeb4['createdAt']&&(this['_suggestions']['get'](_0x3d5f30)['createdAt']=_0x23eeb4['createdAt']);})['catch'](_0x3b3e90=>{throw _0xe6966e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3878fd['discard']();}),_0x3878fd['stopListening'](),this['_suggestions']['delete'](_0x3878fd['id']),this['_suggestionState']['delete'](_0x3878fd),_0x3b3e90;});}return _0x3878fd;}['_isBlockAttribute'](_0x5291b9){return this['_blockAttributeKeys']['has'](_0x5291b9);}['_updateSuggestionData'](_0x323e1c,_0x3d1eb8){const _0x4c81d5=this['editor']['plugins']['get']('PendingActions'),_0x497dce=this['getSuggestion'](_0x323e1c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x497dce['_saved']){const _0x217c30=_0x4c81d5['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x323e1c,_0x3d1eb8)['then'](()=>{_0x4c81d5['remove'](_0x217c30);});}else _0x497dce['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x323e1c,_0x3d1eb8);});}}['_getSuggestionData'](_0x3d6ec7){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xd71c7a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3d6ec7);}['_handleNewSuggestionMarker'](_0xc39e76){const {id:_0x3f1bc4,type:_0x1402b7,subType:_0x14512d,authorId:_0x16598f}=this['_splitMarkerName'](_0xc39e76),_0x2da534=this['_suggestions']['get'](_0x3f1bc4)||this['_createSuggestion'](_0x1402b7,_0x14512d,_0x3f1bc4,_0x16598f,{});switch(this['_checkSuggestionCorrectness'](_0x2da534,_0x1402b7,_0x14512d,_0x16598f),this['_suggestionState']['get'](_0x2da534)){case'notReady':this['_getSuggestionData'](_0x3f1bc4)['then'](_0x1622f1=>{let _0xb14141=Promise['resolve']();_0x1622f1['hasComments']&&(_0xb14141=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3f1bc4})),_0xb14141['then'](()=>{this['addSuggestionData'](_0x1622f1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2da534,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3f1bc4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2da534,'ready'),this['fire']('suggestionLoaded',_0x2da534);break;case'ready':this['fire']('suggestionChanged',_0x2da534);}return _0x2da534['addMarkerName'](_0xc39e76),_0x2da534;}['_refreshSuggestionsChain'](_0x5841d4){const _0x5b4730=Array['from'](_0x5841d4),_0x518712=_0x5b4730['filter'](_0x332ee7=>'attribute'==_0x332ee7['type']);this['_refreshAttributeSuggestionsChain'](_0x518712);const _0x5d4deb=_0x5b4730['filter'](_0x3c853f=>!_0x3c853f['isMultiRange']&&'attribute'!=_0x3c853f['type']),_0x43eeb4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21e2a2=>!_0x21e2a2['isMultiRange']&&'attribute'!=_0x21e2a2['type']),_0x9e6e23=_0x43eeb4['filter'](_0x5a50da=>!_0x5841d4['has'](_0x5a50da)),_0x427217=new Map(_0x43eeb4['map'](_0x493232=>[_0x493232,this['_suggestionFactory']['getSuggestionCallback'](_0x493232['type'],_0x493232['subType'],'chain')])),_0x1a8530=new Map(_0x43eeb4['map'](_0x444ad3=>[_0x444ad3,_0x444ad3['getFirstRange']()])),_0x274ea9=new Set(),_0x3b0490=new Set();for(let _0x257efd=0x0;_0x257efd<_0x5d4deb['length'];_0x257efd++)_0x46cd11(_0x5d4deb[_0x257efd],_0x5d4deb,_0x257efd+0x1);for(let _0x52c521=0x0;_0x52c521<_0x5d4deb['length'];_0x52c521++)_0x46cd11(_0x5d4deb[_0x52c521],_0x9e6e23,0x0);const _0x4e4b46=new Set();for(let _0x4b4ad5=0x0;_0x4b4ad5<_0x5d4deb['length'];_0x4b4ad5++){const _0x14e48c=_0x5d4deb[_0x4b4ad5];!_0x3b0490['has'](_0x14e48c)&&_0x14e48c['previous']&&(_0x4e4b46['add'](_0x14e48c['previous']),_0x14e48c['previous']['next']===_0x14e48c&&(_0x14e48c['previous']['next']=null),_0x14e48c['previous']=null),!_0x274ea9['has'](_0x14e48c)&&_0x14e48c['next']&&(_0x4e4b46['add'](_0x14e48c['next']),_0x14e48c['next']['previous']===_0x14e48c&&(_0x14e48c['next']['previous']=null),_0x14e48c['next']=null);}function _0x46cd11(_0xbe5263,_0x314499,_0x8cf05f){for(let _0x11f25e=_0x8cf05f;_0x11f25e<_0x314499['length'];_0x11f25e++){const _0x26c314=_0x3010c2(_0xbe5263,_0x314499[_0x11f25e]);_0x26c314&&(_0x26c314[0x0]['next']=_0x26c314[0x1],_0x26c314[0x1]['previous']=_0x26c314[0x0],_0x274ea9['add'](_0x26c314[0x0]),_0x3b0490['add'](_0x26c314[0x1]));}}function _0x3010c2(_0x193768,_0x5d66c){if(_0x193768['author']['id']!==_0x5d66c['author']['id'])return null;const _0x3747de=_0x427217['get'](_0x193768)(_0x193768,_0x5d66c,_0x1a8530['get'](_0x193768),_0x1a8530['get'](_0x5d66c));if(!_0x3747de)return null;return _0x427217['get'](_0x5d66c)(_0x193768,_0x5d66c,_0x1a8530['get'](_0x193768),_0x1a8530['get'](_0x5d66c))?_0x3747de[0x1]['commentThread']&&_0x3747de[0x1]['commentThread']['length']?null:_0x3747de:null;}_0x4e4b46['size']&&this['_refreshSuggestionsChain'](_0x4e4b46);}['_refreshAttributeSuggestionsChain'](_0x3fa0a6){if(0x0==_0x3fa0a6['length'])return;const _0x3e529f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a1ed6=>'attribute'==_0x2a1ed6['type']&&_0x2a1ed6['_isDataLoaded']),_0x230edd=[],_0x3bc1df=new Map();for(const _0x20265c of _0x3e529f){const _0x18a519=_0x337f49(_0x20265c['attributes']);_0x3bc1df['has'](_0x18a519)||(_0x3bc1df['set'](_0x18a519,_0x230edd['length']),_0x230edd['push']([]));const _0x502320=_0x3bc1df['get'](_0x18a519);_0x230edd[_0x502320]['push'](_0x20265c);}!(function(){_0x230edd['sort']((_0x5163d7,_0xd217d1)=>{const _0x20bff8=_0x5163d7[0x0]['createdAt'],_0x7cb9a5=_0xd217d1[0x0]['createdAt'];return _0x20bff8==_0x7cb9a5?_0x5163d7[0x0]['attributes']['groupId']<_0xd217d1[0x0]['attributes']['groupId']?-0x1:0x1:_0x20bff8<_0x7cb9a5?-0x1:0x1;});for(const _0x5983df of _0x230edd)_0x5983df['sort']((_0x3f8241,_0x39e8e2)=>_0x3f8241['id']<_0x39e8e2['id']?-0x1:0x1);}());for(let _0xeb5f20=0x0;_0xeb5f20<_0x230edd['length'];_0xeb5f20++){if(0x0==_0x230edd[_0xeb5f20]['length'])continue;const _0x2390f2=[];for(let _0x367b27=_0xeb5f20+0x1;_0x367b27<_0x230edd['length'];_0x367b27++)0x0!=_0x230edd[_0x367b27]['length']&&_0x52c926(_0x230edd[_0xeb5f20],_0x230edd[_0x367b27])&&_0x2390f2['push'](_0x367b27);for(const _0x5ebc80 of _0x2390f2)_0x230edd[_0xeb5f20]=_0x230edd[_0xeb5f20]['concat'](_0x230edd[_0x5ebc80]),_0x230edd[_0x5ebc80]=[];}for(const _0x1cd1d2 of _0x230edd)for(let _0x178361=0x0;_0x178361<_0x1cd1d2['length'];_0x178361++){const _0x4e2d65=_0x1cd1d2[_0x178361+0x1]||null;_0x1cd1d2[_0x178361]['next']!==_0x4e2d65&&(_0x1cd1d2[_0x178361]['next']=_0x4e2d65);}for(const _0x277220 of _0x230edd)for(let _0x92c885=0x0;_0x92c885<_0x277220['length'];_0x92c885++){const _0x35c228=_0x277220[_0x92c885-0x1]||null;_0x277220[_0x92c885]['previous']!==_0x35c228&&(_0x277220[_0x92c885]['previous']=_0x35c228);}function _0x52c926(_0x54a8a8,_0x16dcc6){if(_0x54a8a8[0x0]['attributes']['groupId']!==_0x16dcc6[0x0]['attributes']['groupId']&&_0x54a8a8[0x0]['author']!==_0x16dcc6[0x0]['author'])return!0x1;if(!function(_0x478b7b,_0x500576){if(!_0x478b7b['hasComments']&&!_0x500576['hasComments'])return!0x0;if(_0x478b7b['hasComments']&&_0x500576['hasComments'])return!0x1;if(_0x478b7b['hasComments']&&_0x500576['createdAt']<_0x478b7b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x500576['hasComments']&&_0x478b7b['createdAt']<_0x500576['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x54a8a8[0x0],_0x16dcc6[0x0]))return!0x1;const _0x43a067=Ft(_0x54a8a8[0x0]['attributes'],'groupId'),_0x77fa2c=Ft(_0x16dcc6[0x0]['attributes'],'groupId');if(!_0x595b34(_0x43a067,_0x77fa2c))return!0x1;return!!_0x54a8a8['every'](_0x4d4196=>_0x16dcc6['some'](_0x185769=>_0x4d4196['getFirstRange']()['isEqual'](_0x185769['getFirstRange']())))&&_0x16dcc6['every'](_0x4a1ece=>_0x54a8a8['some'](_0x2de96b=>_0x4a1ece['getFirstRange']()['isEqual'](_0x2de96b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x46423d){const _0x32db61=Array['from'](_0x46423d),_0x19816f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2e1ec6=_0x19816f['filter'](_0x57c83e=>!_0x46423d['has'](_0x57c83e)),_0x82c8b=new Map(_0x32db61['map'](_0x46351c=>[_0x46351c,this['_suggestionFactory']['getSuggestionCallback'](_0x46351c['type'],_0x46351c['subType'],'join')])),_0x339303=new Map(_0x19816f['map'](_0x392e8f=>[_0x392e8f,_0x392e8f['getRanges']()]));for(let _0x2787e8=0x0;_0x2787e8<_0x32db61['length'];_0x2787e8++){if(_0x19f9ea(this,_0x32db61[_0x2787e8],_0x32db61,_0x2787e8+0x1))return!0x0;}for(let _0x4d5482=0x0;_0x4d5482<_0x32db61['length'];_0x4d5482++){if(_0x19f9ea(this,_0x32db61[_0x4d5482],_0x2e1ec6,0x0))return!0x0;}return!0x1;function _0x19f9ea(_0x18ad4f,_0x2dde03,_0x48b193,_0x5274e4){for(let _0x46cec8=_0x5274e4;_0x46cec8<_0x48b193['length'];_0x46cec8++){const _0x5e9cae=_0x48b193[_0x46cec8];if(_0x5e9cae['type']!==_0x2dde03['type']||_0x5e9cae['author']['id']!==_0x2dde03['author']['id']||_0x5e9cae['subType']!==_0x2dde03['subType'])continue;if(!Qt(_0x2dde03,_0x5e9cae))continue;if('attribute'==_0x2dde03['type']&&_0x2dde03['data']['oldValue']!=_0x5e9cae['data']['oldValue'])continue;if('attribute'==_0x2dde03['type']&&_0x18ad4f['_isBlockAttribute'](_0x2dde03['data']['key']))continue;if('formatBlock'==_0x2dde03['type']){const _0x130500=_0x18ad4f['editor']['model'],_0x5df646=_0x2dde03['getContainedElement']();if(_0x5df646&&(_0x130500['schema']['isObject'](_0x5df646)||_0x130500['schema']['isLimit'](_0x5df646)))continue;}const _0xfd3145=_0x82c8b['get'](_0x2dde03),_0x3bab1b=_0x339303['get'](_0x2dde03),_0x5b56a5=_0x339303['get'](_0x5e9cae),_0xa4def0=_0x2dde03['commentThread']&&_0x2dde03['commentThread']['length'],_0x5ae43f=_0x5e9cae['commentThread']&&_0x5e9cae['commentThread']['length'];if(!_0xa4def0&&_0xfd3145(_0x5b56a5,_0x3bab1b))return _0x18ad4f['_joinSuggestions'](_0x5e9cae,_0x2dde03),_0x339303['delete'](_0x2dde03),!0x0;if(!_0x5ae43f&&_0xfd3145(_0x3bab1b,_0x5b56a5))return _0x18ad4f['_joinSuggestions'](_0x2dde03,_0x5e9cae),_0x339303['delete'](_0x5e9cae),!0x0;}return!0x1;}}['_joinSuggestions'](_0x408c8a,_0x36043b){if(_0x408c8a['isMultiRange']){for(const _0x276cd7 of _0x36043b['getRanges']())_0x408c8a['addRange'](_0x276cd7);}else{const _0x35e128=_0x36043b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x408c8a,this['_model']['createRange'](_0x408c8a['getFirstRange']()['start'],_0x35e128));}_0x36043b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4de280,_0x527cb9,_0x1503ac){const _0x1ecb93=_0x4de280['startsWith']('format')||_0x4de280['startsWith']('attribute')?'FORMATTING':_0x4de280['toUpperCase']();return c(this['editor']['locale'],_0x527cb9+'_'+_0x1ecb93+'_SUGGESTION_ANNOUNCEMENT',_0x1503ac);}['_initAriaMarkerChangeAnnouncements'](){const _0x5a3fa7=this['editor'];if(!_0x5a3fa7['ui'])return;const {ariaLiveAnnouncer:_0x4f7ef8}=_0x5a3fa7['ui'];_0x3eb7a1(this['_model'],({left:_0x5138e5,entered:_0x425a1e})=>{for(const _0x56ac50 of _0x5138e5){const {group:_0x1eab16,type:_0x51efbe}=this['_splitMarkerName'](_0x56ac50['name']);if('suggestion'===_0x1eab16){_0x4f7ef8['announce'](this['_getMarkerAnnouncementText'](_0x51efbe,'LEAVE'));break;}}for(const _0x36dee2 of _0x425a1e){const {group:_0xc71d5,type:_0x888133}=this['_splitMarkerName'](_0x36dee2['name']);if('suggestion'===_0xc71d5){_0x4f7ef8['announce'](this['_getMarkerAnnouncementText'](_0x888133,'ENTER',_0x3ccca9(_0x11fa9e)));break;}}});}['_processAttributeChanges'](_0x242e22){if(this['_recordAttributeSuggestions'])return!0x1;const _0x31f1e8=this['editor'],_0x540c49=_0x31f1e8['model']['document']['differ']['getChanges']();if(0x0==_0x540c49['length'])return!0x1;const _0x36182a=[],_0x52f478=_0x540c49['filter'](_0x31e7b6=>'attribute'==_0x31e7b6['type']),_0x2710af=_0x540c49['filter'](_0x4435a2=>'insert'==_0x4435a2['type']&&'$text'!=_0x4435a2['name']),_0x56be04=_0x540c49['filter'](_0x36b3d3=>'remove'==_0x36b3d3['type']&&'$text'!=_0x36b3d3['name']);for(const _0x36d487 of _0x52f478)_0x36182a['push']({'key':_0x36d487['attributeKey'],'newValue':_0x36d487['attributeNewValue'],'oldValue':_0x36d487['attributeOldValue'],'range':qt(_0x36d487['range'],_0x31f1e8['model'])});for(const _0x581cf3 of _0x2710af){const _0x289164=_0x56be04['find'](_0x4c68b4=>_0x4c68b4['position']['isEqual'](_0x581cf3['position']));_0x289164&&_0x36182a['push']({'key':u,'newValue':_0x581cf3['name'],'oldValue':_0x289164['name'],'range':_0x31f1e8['model']['createRangeOn'](_0x581cf3['position']['nodeAfter'])});}return 0x0!=_0x36182a['length']&&this['_reduceExistingSuggestions'](_0x242e22,_0x36182a);}['_processAttributeSuggestions'](_0xa64ad2){let _0x4e19c7=!0x1;const _0x654a22=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x51ffa3=>_0x51ffa3['data']['newRange']&&_0x51ffa3['name']['startsWith']('suggestion:attribute:'));for(const _0x52f6ce of _0x654a22){const {subType:_0x48862d,id:_0x14e143}=this['_splitMarkerName'](_0x52f6ce['name']),_0x23a1d2=_0x48862d['split']('|')[0x0];for(const _0x10a544 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x10a544['id']!=_0x14e143&&'attribute'==_0x10a544['type']&&_0x10a544['data']&&_0x10a544['data']['key']==_0x23a1d2&&_0x10a544['getFirstRange']()['isIntersecting'](_0x52f6ce['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x10a544,_0x52f6ce['data']['newRange'],_0xa64ad2),_0x4e19c7=!0x0);}return _0x4e19c7;}['_recordAttributeChanges'](_0x58eaab){this['_recordAttributeSuggestions']=!0x0,_0x58eaab();}['_isRegisteredAttribute'](_0x97ba21){const _0x2a9a85=this['_isBlockAttribute'](_0x97ba21),_0x28554f=this['_inlineAttributeKeys']['has'](_0x97ba21);return _0x2a9a85||_0x28554f;}['_reduceExistingSuggestions'](_0x415992,_0x400f7d){if(0x0==_0x400f7d['length'])return!0x1;let _0x72ca5f=!0x1;for(const _0x3d003b of _0x400f7d){const _0x20dc04=this['_findSuggestions'](_0x3d003b['range'],'attribute')['filter'](_0x5a6d12=>!_0x5a6d12['meta']['isNextTo'])['map'](_0x5bb164=>_0x5bb164['suggestion']),_0x5a924a=_0x337f49({'newValue':_0x3d003b['newValue']});_0x20dc04['filter'](_0x51bcc0=>{const [_0xafc973,_0x490169]=_0x51bcc0['subType']['split']('|');return _0xafc973==_0x3d003b['key']&&_0x490169!=_0x5a924a;})['forEach'](_0x385c40=>{this['_reduceSuggestionAttributeRange'](_0x385c40,_0x3d003b['range'],_0x415992),_0x72ca5f=!0x0;});}return _0x72ca5f;}['_reduceSuggestionAttributeRange'](_0x147265,_0x496cff,_0x38fee5){const _0x1434e2=_0x147265['getFirstRange']()['getDifference'](_0x496cff);0x0!==_0x1434e2['length']?0x1!==_0x1434e2['length']?this['_breakSuggestionMarker'](_0x147265,_0x496cff['start'],_0x496cff['end']):this['_setSuggestionRange'](_0x147265,_0x1434e2[0x0]):_0x38fee5['removeMarker'](_0x147265['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3c57ea){this['_editor']=_0x3c57ea,this['_model']=_0x3c57ea['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3aba18,_0x38bece,_0x4f8666,_0x2b1670,_0x2da6ba,_0x3eadc4){return new o(this['_model'],{'type':_0x3aba18,'subType':_0x38bece,'id':_0x4f8666,'author':_0x2b1670,'creator':_0x2b1670,'attributes':_0x2da6ba,'onAttributesChange':_0x3eadc4,'onAccept':(..._0x7e18b7)=>this['getSuggestionCallback'](_0x3aba18,_0x38bece,'accept')(..._0x7e18b7),'onDiscard':(..._0x4ac477)=>this['getSuggestionCallback'](_0x3aba18,_0x38bece,'discard')(..._0x4ac477)});}['registerCustomCallback'](_0x341f5e,_0x151be1,_0x3643dd,_0x2ec904){const _0x306fb9=_0x341f5e+':'+_0x151be1+':'+_0x3643dd;this['_customCallbacks']['set'](_0x306fb9,_0x2ec904);}['getSuggestionCallback'](_0x1c833c,_0x32d28a,_0x5645bd){const _0x345bc2=_0x1c833c+':'+_0x32d28a+':'+_0x5645bd;return this['_customCallbacks']['get'](_0x345bc2)||this['_defaultCallbacks']['get'](_0x1c833c+':'+_0x5645bd);}['_registerDefaultCallbacks'](){const _0x4f8d46=()=>!0x1,_0x59b5e8=_0x1716ec=>{_0x1716ec['sort']((_0x1dd895,_0xc6a7c3)=>_0x1dd895['start']['isBefore'](_0xc6a7c3['start'])?0x1:-0x1),this['_model']['change'](_0x71f568=>{for(const _0x574f4a of _0x1716ec){let _0x2ad5b6;_0x2ad5b6=_0x574f4a['end']['isAtEnd']&&_0x574f4a['end']['parent']==_0x574f4a['start']['nodeAfter']?_0x71f568['createSelection'](_0x574f4a['start']['nodeAfter'],'on'):_0x71f568['createSelection'](_0x574f4a),this['_model']['deleteContent'](_0x2ad5b6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x106b69=(_0x5c0ad9,_0x4212c8)=>{_0x4212c8&&this['_model']['change'](_0x1cd611=>{const {commandName:_0x2dfb3d,commandParams:_0x4b27bb=[]}=_0x4212c8,_0x3ea007=_0x5c0ad9['map'](_0x337963=>(Lt(_0x337963)&&(_0x337963=this['_model']['createRange'](_0x337963['end'])),_0x337963))['filter'](_0x3d1d22=>'$graveyard'!==_0x3d1d22['root']['rootName']);if(_0x3ea007['length']<0x1)return;const _0x2685e7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x54ac06=>_0x5eb1fc['fromRange'](_0x54ac06));_0x1cd611['setSelection'](_0x3ea007);for(const _0x5c7c85 of this['_editor']['commands']['commands']())_0x5c7c85['refresh']();_0x4b27bb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2dfb3d,..._0x4b27bb);const _0xa5ef64=_0x2685e7['filter'](_0x70d6d0=>'$graveyard'!=_0x70d6d0['root']['rootName']);_0xa5ef64['length']>0x0&&_0x1cd611['setSelection'](_0xa5ef64);for(const _0x5b931d of _0x2685e7)_0x5b931d['detach']();});},_0x23c22e=(_0x29568a,_0x2aeaf8)=>0x1==_0x29568a['length']&&0x1==_0x2aeaf8['length']&&_0x29568a[0x0]['end']['isEqual'](_0x2aeaf8[0x0]['start']),_0x2569f6=(_0x8d93bb,_0x15f0ee,_0x24c8aa,_0x56843d)=>Wt(_0x8d93bb,_0x15f0ee,_0x24c8aa,_0x56843d)?[_0x8d93bb,_0x15f0ee]:Wt(_0x15f0ee,_0x8d93bb,_0x56843d,_0x24c8aa)?[_0x15f0ee,_0x8d93bb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4f8d46),this['_defaultCallbacks']['set']('insertion:discard',_0x59b5e8),this['_defaultCallbacks']['set']('insertion:join',_0x23c22e),this['_defaultCallbacks']['set']('insertion:chain',_0x2569f6),this['_defaultCallbacks']['set']('deletion:accept',_0x59b5e8),this['_defaultCallbacks']['set']('deletion:discard',_0x4f8d46),this['_defaultCallbacks']['set']('deletion:join',_0x23c22e),this['_defaultCallbacks']['set']('deletion:chain',_0x2569f6),this['_defaultCallbacks']['set']('formatInline:accept',_0x106b69),this['_defaultCallbacks']['set']('formatInline:discard',_0x4f8d46),this['_defaultCallbacks']['set']('formatInline:join',_0x23c22e),this['_defaultCallbacks']['set']('formatInline:chain',_0x4f8d46),this['_defaultCallbacks']['set']('formatBlock:accept',_0x106b69),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4f8d46),this['_defaultCallbacks']['set']('formatBlock:join',_0x23c22e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4f8d46),this['_defaultCallbacks']['set']('attribute:accept',_0x4f8d46),this['_defaultCallbacks']['set']('attribute:discard',(_0x5e3dd9,_0x570b40)=>{if(!_0x570b40)return;const _0x138515=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1910d0=>{if(_0x570b40['key']==u)for(const _0x3ceddf of _0x5e3dd9){const _0x100385=_0x3ceddf['start']['nodeAfter'],_0x2d1516=_0x570b40['oldValue'];_0x1910d0['rename'](_0x100385,_0x2d1516);}else{if(_0x138515['_isBlockAttribute'](_0x570b40['key'])){for(const _0x1869e6 of _0x5e3dd9)void 0x0!==_0x570b40['oldValue']?_0x1910d0['setAttribute'](_0x570b40['key'],_0x570b40['oldValue'],_0x1869e6['start']['nodeAfter']):_0x1910d0['removeAttribute'](_0x570b40['key'],_0x1869e6['start']['nodeAfter']);}else{for(const _0x1cfc9f of _0x5e3dd9)_0x570b40['oldValue']?_0x1910d0['setAttribute'](_0x570b40['key'],_0x570b40['oldValue'],_0x1cfc9f):_0x1910d0['removeAttribute'](_0x570b40['key'],_0x1cfc9f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x23c22e);}}function Gt(_0x4959e,_0x27f6a3,_0x4f7c38){for(const _0x11f0ef of _0x27f6a3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x11f0ef['root']==_0x11f0ef)return!0x1;if(!_0x4f7c38['containsItem'](_0x11f0ef))return!0x1;if(_0x4959e['isObject'](_0x11f0ef)||_0x4959e['isLimit'](_0x11f0ef))return!0x0;}return!0x1;}function Lt(_0x5628a3){return _0x5628a3['end']['parent']==_0x5628a3['start']['nodeAfter']&&_0x5628a3['end']['isAtStart'];}function Jt(_0x2d847b,_0x106266,_0x10c4f2,_0x48cce9){const _0x4279b4=_0x125092=>!_0x125092['item']['is']('$textProxy')&&!_0x48cce9['isObject'](_0x125092['item']),_0x3fae49=_0x2d847b['start']['getLastMatchingPosition'](_0x4279b4),_0x5308bd=_0x2d847b['end']['getLastMatchingPosition'](_0x4279b4,{'direction':'backward'});return(!_0x2d847b['start']['isEqual'](_0x3fae49)||!_0x2d847b['end']['isEqual'](_0x5308bd))&&(_0x3fae49['isBefore'](_0x5308bd)?_0x10c4f2['updateMarker'](_0x106266,{'range':_0x10c4f2['createRange'](_0x3fae49,_0x5308bd)}):_0x10c4f2['removeMarker'](_0x106266),!0x0);}function Kt(_0x4204a2){return _0x337f49(_0x4204a2);}function Ht(_0x44a899){const _0x5afd3b=_0x44a899['start']['nodeAfter'];return _0x5afd3b&&_0x5afd3b['is']('element');}function qt(_0x3c0500,_0xc6be8c){return null==_0x3c0500['end']['nodeBefore']&&_0x3c0500['end']['parent']==_0x3c0500['start']['nodeAfter']?zt(_0x3c0500['start']['nodeAfter'],_0xc6be8c):_0x3c0500;}function zt(_0x200a5b,_0x3ac76d){const _0x4a7524=_0x3ac76d['schema']['isObject'](_0x200a5b)||_0x3ac76d['schema']['isSelectable'](_0x200a5b);return _0x3ac76d['createRange'](_0x3ac76d['createPositionAt'](_0x200a5b,'before'),_0x4a7524?_0x3ac76d['createPositionAfter'](_0x200a5b):_0x3ac76d['createPositionAt'](_0x200a5b,'end'));}function Wt(_0x2d55f7,_0xfef51a,_0x39794c,_0xf6c5f){return!!Qt(_0x2d55f7,_0xfef51a)&&_0x39794c['end']['isEqual'](_0xf6c5f['start']);}function Qt(_0x23c713,_0x467586){if(!_0x23c713['_isDataLoaded']||!_0x467586['_isDataLoaded'])return!0x1;const _0x4b490e=new Set(Object['keys'](_0x23c713['attributes'])),_0x243a0a=new Set(Object['keys'](_0x467586['attributes']));if(_0x4b490e['delete']('groupId'),_0x243a0a['delete']('groupId'),0x0==_0x4b490e['size']&&0x0==_0x243a0a['size'])return!0x0;if(_0x4b490e['size']!=_0x243a0a['size'])return!0x1;const _0x43760c={..._0x23c713['attributes']},_0x987df2={..._0x467586['attributes']};return delete _0x43760c['groupId'],delete _0x987df2['groupId'],JSON['stringify'](_0x43760c)==JSON['stringify'](_0x987df2);}function Xt(_0x134555,_0x1da0b3){const _0x266c79=Yt(_0x134555['attributes']),_0x496a66=Yt(_0x1da0b3);if(!_0x134555['_isDataLoaded'])return!0x1;for(const _0x3580a5 of Object['keys'](_0x496a66))if(!_0x595b34(_0x266c79[_0x3580a5],_0x496a66[_0x3580a5]))return!0x1;return!0x0;}function Yt(_0x53dd5a){const _0x4e23e1=Object['assign']({},_0x53dd5a);return delete _0x4e23e1['skipNestingCheck'],delete _0x4e23e1['tablePasteChainId'],_0x4e23e1;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x54dff5(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x57eb81,_0x3e1134,_0x502484,_0x5b1408){super(),this['model']=_0x3e1134,this['view']=_0x502484,this['commentThreadController']=_0x5b1408,this['_editor']=_0x57eb81,this['_acceptCommand']=_0x57eb81['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x57eb81['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3d8444,_0x38423b)=>_0x3d8444||_0x38423b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5aee96=>_0x5aee96&&this['_editor']['model']['canEditAt'](_0x3e1134['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3cc871=>_0x3cc871&&this['_editor']['model']['canEditAt'](_0x3e1134['getRanges']())),this['_pendingAction']=null,_0x502484['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x502484,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x502484,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x502484,'change:isDirty',()=>{_0x502484['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 _0x134c2f=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x134c2f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x51df42{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x21c7a2,_0x50587e,_0x31145a,_0x5392b2){super(_0x21c7a2),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2087a1(_0x21c7a2,c(_0x21c7a2,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x50587e['authoredAt']),this['bind']('authoredAt')['to'](_0x50587e),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',_0x50587e,'authoredAt',this,'descriptionParts',(_0x227af7,_0x19aa3d,_0x5839b0)=>{const _0x4b2714=_0x5839b0['map'](_0x2d1807=>ls(_0x2d1807['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x227af7-0x1,_0x50587e['author']['name'],_0x19aa3d?_0x5392b2['formatDateTime'](_0x19aa3d):'',new DOMParser()['parseFromString'](_0x4b2714,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2d73ef(),this['focusTracker']=new _0x51faa2(),this['keystrokes']=new _0x2af4b6(),this['focusCycler']=new _0x18967d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1a513e=>_0x1a513e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x50587e,this['_localUser']=_0x31145a,this['_config']=_0x5392b2,_0x5392b2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1e9ff8(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4639e0}=this['_config'];this['commentsListView']=new _0x4639e0(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',_0x59de9b=>_0x59de9b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5b057d,_0x4c1064)=>_0x5b057d||!!_0x4c1064);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3f2704}=this['_config'],_0xe086fb=new _0x3f2704(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xda99ac=_0xe086fb['commentInputView'];return _0xe086fb['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xda99ac,'value',(_0x4c0f1f,_0x1de2af,_0x4668f6)=>!!_0x4668f6||_0x4c0f1f&&!_0x1de2af),_0xda99ac['on']('submit',(_0x5c0077,_0x202561)=>{this['fire']('addComment',_0x202561),_0xda99ac['editor']['setData']('');}),_0xda99ac['on']('cancel',()=>this['focus']()),_0xda99ac['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xe086fb;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5aa9cf,_0x397ed4,_0x51bbb9,_0x436411){super(_0x5aa9cf,_0x397ed4,_0x51bbb9,_0x436411),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x489478=>_0x489478&&_0x489478[0x0]?_0x489478[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x13c877,_0x10da14)=>{let _0xec6e68='';for(const _0x278760 of _0x13c877)_0xec6e68+='<p>'+ls(_0x278760['content'],_0x278760['color'])+'</p>';return _0x10da14?_0xec6e68:ti(_0xec6e68,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x436411['SuggestionView'](_0x5aa9cf,_0x397ed4,{'formatDateTime':_0x436411['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 _0x315ad2=this['bindTemplate'],_0x11a80e=[this['suggestionView']];return this['commentsListView']&&_0x11a80e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x11a80e['push'](this['commentThreadInputView']),_0x11a80e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x315ad2['if']('isActive','ck-suggestion-wrapper--active'),_0x315ad2['to']('type',_0x5852ab=>'ck-suggestion-'+_0x5852ab),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':_0x315ad2['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x11a80e};}['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 _0x51df42{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x10c86c,_0x3d50b4,_0x31ac61){super(_0x10c86c),this['_model']=_0x3d50b4,this['_config']=_0x31ac61,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3d50b4),this['acceptButton']=this['_createButton'](c(_0x10c86c,'Accept\x20suggestion'),_0x29856d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x10c86c,'Discard\x20suggestion'),_0x5c1da3,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5db008(_0x10c86c,_0x3d50b4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2d73ef([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x51faa2(),this['keystrokes']=new _0x2af4b6(),this['focusCycler']=new _0x18967d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4149a8=>_0x4149a8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x543ed7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x543ed7['innerHTML']=this['description'],this['on']('change:description',(_0x46927d,_0x2d3015,_0x4da085)=>{_0x543ed7['innerHTML']=_0x4da085;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x12d10a=this['bindTemplate'],_0x4ffdd2=[{'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':_0x12d10a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x12d10a['to']('authoredAt',_0x32187f=>this['_config']['formatDateTime'](_0x32187f))}]}]},{'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']&&_0x4ffdd2['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':_0x4ffdd2}]};}['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'](_0x498e1d,_0x31a047,_0x1703d4,_0x4a595e,_0x11a5c6){const _0x444946=new _0x39ded3(this['locale']);return _0x444946['set']({'label':_0x498e1d,'icon':_0x31a047,'tooltip':!0x0,'tooltipPosition':_0x11a5c6}),_0x444946['extendTemplate']({'attributes':{'class':_0x1703d4}}),_0x444946['on']('execute',()=>{this['fire'](_0x4a595e,this['_model']['id']);}),_0x444946;}['_setupKeyboardNavigation'](){const _0x36c9c2=this['element'];this['keystrokes']['listenTo'](_0x36c9c2);for(const _0x545d4f of this['focusables'])this['focusTracker']['add'](_0x545d4f['element']),this['keystrokes']['listenTo'](_0x545d4f['element']);this['keystrokes']['set']('enter',(_0x9bebc1,_0x2e294d)=>{_0x36c9c2===_0x9bebc1['target']&&(this['focusCycler']['focusFirst'](),_0x2e294d());}),this['keystrokes']['set']('esc',(_0x4f4eb6,_0x54158b)=>{_0x36c9c2!==_0x4f4eb6['target']&&(this['focus'](),_0x54158b());});}}class d extends _0x26e18a{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4abb9f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41d2ab){super(_0x41d2ab),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2a43cb=this['editor']['config'];_0x2a43cb['define']('trackChanges.SuggestionThreadView',fe),_0x2a43cb['define']('trackChanges.SuggestionView',we),_0x2a43cb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2a43cb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x473d93,_0x23f8b9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x25dcab,_0x5eb938]of this['_handleControllerBuffer']){const _0x2228f5=this['_suggestionToController']['has'](_0x25dcab);_0x2228f5||_0x5eb938?_0x2228f5&&_0x5eb938&&this['_destroyController'](_0x25dcab):this['_initializeController'](_0x25dcab);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x473d93,_0x23f8b9);}['init'](){const _0x2fc0e0=this['editor'],_0x2133fa=_0x2fc0e0['plugins']['get']('TrackChangesEditing'),_0x4c13b9=_0x2fc0e0['plugins']['get']('Annotations'),_0x1feffd=_0x2fc0e0['plugins']['get']('EditorAnnotations'),_0x366200=_0x2fc0e0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1feffd['addSourceCollector'](()=>{const _0x2cbe79=[];for(const [_0x8a2cb6,_0x491f35]of Array['from'](this['_suggestionToController'])){const _0x41d508=_0x8a2cb6['getAllAdjacentSuggestions'](),_0x3d766f=[];for(const _0x316a4f of _0x41d508){if(!_0x316a4f['isInContent'])continue;if(_0x316a4f['isMultiRange']){_0x3d766f['push'](..._0x316a4f['getRanges']());continue;}const _0x22622a=_0x316a4f['getFirstRange']();if(_0x3d766f['length']>0x0){const _0x44f28b=_0x3d766f[0x0]['getJoined'](_0x22622a);if(_0x44f28b){_0x3d766f[0x0]=_0x44f28b;continue;}}_0x3d766f['push'](_0x22622a);}_0x2cbe79['push']([_0x491f35['view'],_0x3d766f]);}return _0x2cbe79;}),this['listenTo'](_0x2133fa,'suggestionLoaded',(_0x573631,_0x3034f5)=>{this['listenTo'](_0x3034f5,'change:previous',(_0xe43702,_0x5882a5,_0x17ea1d,_0x47a84c)=>{_0x3034f5['isInContent']&&(null==_0x17ea1d?(this['_updateController'](_0x47a84c['head']),this['_handleSuggestionControllerDelayed'](_0x3034f5,!0x1)):(this['_updateController'](_0x17ea1d['head']),null==_0x47a84c&&this['_handleSuggestionControllerDelayed'](_0x3034f5,!0x0)));}),null!==_0x3034f5['previous']?this['_updateController'](_0x3034f5['head']):this['_handleSuggestionControllerDelayed'](_0x3034f5,!0x1);}),this['listenTo'](_0x2133fa,'suggestionUnloaded',(_0x24d383,_0x598a26,_0x524120)=>{this['stopListening'](_0x598a26,'change:previous'),this['_handleControllerBuffer']['delete'](_0x598a26),this['_suggestionToController']['has'](_0x598a26)&&this['_destroyController'](_0x598a26),_0x524120&&this['_updateController'](_0x524120['head']);}),this['listenTo'](_0x2133fa,'suggestionChanged',(_0x218944,_0x3ddf08)=>{this['_updateController'](_0x3ddf08);}),this['listenTo'](_0x4c13b9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x366200,'addComment',(_0x4b4ea9,{threadId:_0x5b2f82,isFromAdapter:_0x81aab})=>{if(_0x81aab||!_0x2133fa['hasSuggestion'](_0x5b2f82))return;const _0x416c70=_0x2133fa['getSuggestion'](_0x5b2f82);this['_suggestionToController']['get'](_0x416c70)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1f03a5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1a53dc;for(const _0x259227 in _0x1f03a5){const _0x57e0df=_0x259227,_0x5ee968=_0x1f03a5[_0x57e0df];if('trackChangesLicenseKeyValid'==_0x5ee968||'trackChangesLicenseKeyInvalid'==_0x5ee968||'trackChangesLicenseKeyExpired'==_0x5ee968||'trackChangesLicenseKeyDomainLimit'==_0x5ee968||'trackChangesLicenseKeyNotAllowed'==_0x5ee968||'trackChangesLicenseKeyEvaluationLimit'==_0x5ee968||'trackChangesLicenseKeyTrialLimit'==_0x5ee968||'trackChangesLicenseKeyUsageLimit'==_0x5ee968){delete _0x1f03a5[_0x57e0df],_0x1a53dc=_0x5ee968,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1a53dc&&_0x1f03a5['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1a53dc&&_0x1f03a5['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1a53dc&&_0x1f03a5['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1a53dc&&_0x1f03a5['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1a53dc&&_0x1f03a5['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1a53dc&&_0x1f03a5['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1a53dc&&_0x1f03a5['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x873f17=this['editor']['plugins']['get']('Annotations'),_0x44d60=this['editor']['plugins']['get']('TrackChangesEditing'),_0x252583=Array['from'](_0x873f17['activeAnnotations'],_0x3f4651=>_0x3f4651['innerView'])['filter'](_0x292e39=>this['_viewToController']['has'](_0x292e39)),_0x3f463a=[];for(const _0x3448fc of _0x252583){const _0x51df29=this['_viewToController']['get'](_0x3448fc)['model']['getAllAdjacentSuggestions']();_0x3f463a['push'](..._0x51df29['reduce']((_0x59f7c5,_0x1a7770)=>[..._0x59f7c5,..._0x1a7770['getMarkerNames']()],[]));}_0x44d60['activeMarkers']=_0x3f463a;}['_addUIComponentsToFactory'](){const _0x3bc76d=this['editor'],_0x33c3bd=_0x3bc76d['locale'],_0x11b92f=c(_0x33c3bd,'Track\x20changes'),_0x1154d6=new _0x52067a([{'type':'switchbutton','model':new _0x4c07b4({'withText':!0x0,'isToggleable':!0x0,'label':_0x11b92f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4c07b4({'withText':!0x0,'label':c(_0x33c3bd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c07b4({'withText':!0x0,'label':c(_0x33c3bd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c07b4({'withText':!0x0,'label':c(_0x33c3bd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c07b4({'withText':!0x0,'label':c(_0x33c3bd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3bc76d['plugins']['has']('TrackChangesPreview')&&_0x1154d6['addMany']([{'type':'separator'},{'type':'button','model':new _0x4c07b4({'withText':!0x0,'label':c(_0x33c3bd,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1e6616 of _0x1154d6)if(ke(_0x1e6616)){const _0x5a5bd0=_0x3bc76d['commands']['get'](_0x1e6616['model']['commandName']);_0x1e6616['model']['bind']('isOn','isEnabled')['to'](_0x5a5bd0,'value','isEnabled');}_0x3bc76d['ui']['componentFactory']['add']('trackChanges',_0x1f07fc=>this['_createToolbarButton'](_0x1f07fc,_0x1154d6,_0x11b92f)),_0x3bc76d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2d15f8=>this['_createMenuBarMenu'](_0x2d15f8,_0x1154d6,_0x11b92f));}['_createToolbarButton'](_0x553ad3,_0x45fab3,_0x4909ae){const _0x258e3d=_0x1742f6(_0x553ad3,_0x1c2205),_0x197ae4=this['editor']['commands']['get']('trackChanges');_0x258e3d['buttonView']['set']({'tooltip':_0x4909ae,'label':_0x4909ae,'icon':_0x31bc0a}),_0x258e3d['buttonView']['bind']('isOn')['to'](_0x197ae4,'value'),_0x258e3d['buttonView']['on']('execute',()=>{_0x197ae4['execute'](),this['editor']['editing']['view']['focus']();}),_0x4e97ef(_0x258e3d,_0x45fab3,{'role':'menu'});const _0x5b563b=[];for(const _0x167613 of _0x45fab3)ke(_0x167613)&&_0x5b563b['push'](this['editor']['commands']['get'](_0x167613['model']['commandName']));const _0x3a6eec=_0x258e3d['buttonView'];return _0x3a6eec['actionView']['unbind']('isEnabled'),_0x3a6eec['arrowView']['unbind']('isEnabled'),_0x3a6eec['actionView']['bind']('isEnabled')['to'](_0x197ae4,'isEnabled'),_0x3a6eec['arrowView']['bind']('isEnabled')['toMany'](_0x5b563b,'isEnabled',(..._0x4d3e7d)=>_0x4d3e7d['some'](_0x3330c3=>_0x3330c3)),_0x258e3d['on']('execute',_0x25a629=>{this['editor']['execute'](_0x25a629['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x258e3d;}['_createMenuBarMenu'](_0xf59cd7,_0x46a157,_0x252871){const _0x52ae0f=new _0xb4e18e(_0xf59cd7),_0x2bdefb=this['editor']['commands']['get']('trackChanges');_0x52ae0f['buttonView']['set']({'label':_0x252871,'icon':_0x31bc0a});const _0x5ca004=new _0x13dec9(_0xf59cd7);for(const _0x1c17d3 of _0x46a157){if('separator'==_0x1c17d3['type']){_0x5ca004['items']['add'](new _0x2104aa(_0xf59cd7));continue;}const _0x11663d=new _0x1e667b(_0xf59cd7,_0x52ae0f),_0x20c2e8=new _0x5d1fdc(_0xf59cd7),_0x5ee3d2=_0x1c17d3['model'];_0x20c2e8['bind'](...Object['keys'](_0x5ee3d2))['to'](_0x5ee3d2),_0x20c2e8['delegate']('execute')['to'](_0x52ae0f),_0x20c2e8['on']('execute',()=>{this['editor']['execute'](_0x5ee3d2['commandName']),this['editor']['editing']['view']['focus']();}),_0x11663d['children']['add'](_0x20c2e8),_0x5ca004['items']['add'](_0x11663d);}return _0x52ae0f['bind']('isEnabled')['to'](_0x2bdefb,'isEnabled'),_0x52ae0f['panelView']['children']['add'](_0x5ca004),_0x52ae0f;}['_initializeController'](_0x2b7115){const _0x17e950=this['editor'],_0x479865=_0x17e950['config'],_0x3e8da2=_0x17e950['plugins']['get']('Annotations'),_0x335493=_0x17e950['plugins']['get']('CommentsRepository'),_0x28d8ed=_0x17e950['plugins']['get']('EditorAnnotations'),_0x32a575=_0x17e950['plugins']['get'](_0x4abb9f)['me'],_0x45607f=_0x479865['get']('trackChanges')['SuggestionThreadView'],_0x4cd653=_0x479865['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3ed4ea,CommentThreadInputView:_0x35d2fd}=_0x17e950['plugins']['get']('CommentsUI');let _0xfe7484,_0x4f45bc,_0x2f3951;this['_annotationViews']['has'](_0x2b7115['id'])?(_0x4f45bc=this['_annotationViews']['get'](_0x2b7115['id']),_0xfe7484=_0x4f45bc['mainView']):(_0xfe7484=new _0x45607f(_0x17e950['locale'],_0x2b7115,_0x32a575,{'disableComments':this['_disableComments'],'editorConfig':{..._0x479865['get']('comments.editorConfig'),'licenseKey':_0x479865['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x479865['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x479865['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x479865['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1a51c1(_0x479865['get']('locale'),_0x17e950['locale']),'CommentView':_0x479865['get']('comments')['CommentView'],'CommentsListView':_0x3ed4ea,'CommentThreadInputView':_0x35d2fd,'SuggestionView':_0x4cd653}),_0xfe7484['suggestionView']['acceptButton']['on']('execute',()=>{_0x17e950['editing']['view']['focus']();}),_0xfe7484['suggestionView']['discardButton']['on']('execute',()=>{_0x17e950['editing']['view']['focus']();}),_0x4f45bc=_0x3e8da2['createAnnotationView'](this['editor']['locale'],_0xfe7484),_0x4f45bc['bind']('isDirty')['to'](_0xfe7484,'isDirty'),_0x4f45bc['bind']('length')['to'](_0xfe7484),_0x4f45bc['bind']('type')['to'](_0xfe7484,'type',_0x3842fa=>'suggestion-'+_0x3842fa),_0xfe7484['on']('escape',()=>{_0x2f3951['fire']('escape');}),this['_annotationViews']['set'](_0x2b7115['id'],_0x4f45bc));const _0x35f964=_0x335493['createCommentThreadController'](_0x2b7115['commentThread'],_0xfe7484),_0x3d0a02=new pe(_0x17e950,_0x2b7115,_0xfe7484,_0x35f964),_0x54898a=_0x2b7115['getAllAdjacentSuggestions']()['filter'](_0xd2a679=>_0xd2a679['isInContent']);_0xfe7484['descriptionParts']=_0x17e950['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x54898a),this['_suggestionToController']['set'](_0x2b7115,_0x3d0a02),this['_viewToController']['set'](_0xfe7484,_0x3d0a02),_0x2f3951=_0x3e8da2['createAnnotation']({'view':_0x4f45bc,'target':()=>{const _0x35c238=[],_0x20ac2b=_0x2b7115['getAllAdjacentSuggestions']()['filter'](_0x1b42c8=>_0x1b42c8['isInContent']);for(const _0x1c7aea of _0x20ac2b)_0x35c238['push'](..._0x1c7aea['getMarkers']());return _0x5e746d(_0x17e950['editing'],_0x35c238);},'type':()=>'suggestion-'+_0x3d0a02['view']['type']}),_0x335493['_bindAnnotationToEditors'](_0xfe7484,_0x2f3951),_0x3e8da2['add'](_0x2f3951),_0x28d8ed['registerAnnotation'](_0x2f3951);}['_destroyController'](_0x3021e0){const _0x54e3f8=this['editor']['plugins']['get']('CommentsRepository'),_0x2d465c=this['editor']['plugins']['get']('Annotations'),_0x3ab120=this['_suggestionToController']['get'](_0x3021e0),_0x475706=_0x3ab120['view'],_0xa54c8f=_0x2d465c['getByInnerView'](_0x475706);_0x54e3f8['_unbindEditors'](_0x475706),_0xa54c8f&&_0x2d465c['remove'](_0xa54c8f),this['_suggestionToController']['delete'](_0x3021e0),this['_viewToController']['delete'](_0x475706),_0x3ab120['destroy']();}['_updateController'](_0x385446){if(!_0x385446['isInContent']||!this['_suggestionToController']['has'](_0x385446))return;const _0x4367e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc2336f=this['_suggestionToController']['get'](_0x385446),_0x4e293b=_0x385446['getAllAdjacentSuggestions']();_0xc2336f['view']['descriptionParts']=_0x4367e7['descriptionFactory']['getDescriptions'](_0x4e293b);}['destroy'](){for(const _0x854190 of this['_suggestionToController']['keys']())this['_destroyController'](_0x854190);for(const _0x5b54bd of this['_annotationViews']['values']())_0x5b54bd['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x31a84d){return'model'in _0x31a84d;}class k extends _0x26e18a{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3906e5){this['editor']['plugins']['get'](p)['adapter']=_0x3906e5;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x6d9980){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x6d9980);}['getSuggestions']({skipNotAttached:_0x501509=!0x1,toJSON:_0x740861=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x501509,'toJSON':_0x740861});}['getSuggestion'](_0x575791){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x575791);}}const w=['Pagination'];class T extends _0x26e18a{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5ba1d9=this['editor'];if(_0x5ba1d9['config']['define']('trackChangesData.editorCreator',_0x35dfde=>{const _0x4a7be8=_0x5ba1d9['model']['document']['getRootNames']()['reduce']((_0x4b826e,_0x2f5417)=>(_0x4b826e[_0x2f5417]='',_0x4b826e),{});return _0x5ba1d9['constructor']['create'](_0x4a7be8,_0x35dfde);}),'function'!=typeof _0x5ba1d9['config']['get']('trackChangesData')['editorCreator'])throw new _0xd71c7a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x28f4a1){return N(this['editor'],!0x0,_0x28f4a1);}['getDataWithDiscardedSuggestions'](_0x4bc52c){return N(this['editor'],!0x1,_0x4bc52c);}}class D extends _0x26e18a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x67320){function _0x5a4d3b(_0x50659a){return _0x50659a['map'](_0x4a223e=>String['fromCharCode'](_0x4a223e))['join']('');}super(_0x67320),this['result']='end',_0x67320[_0x5a4d3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a4d3b([0x76,0x69,0x65,0x77])][_0x5a4d3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a4d3b([0x61,0x75,0x74,0x6f]),_0x67320[_0x5a4d3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5a4d3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a4d3b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5a4d3b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5a4d3b([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(_0x530bff){return void 0x0!==_0x530bff['getRootsAttributes'];}async function N(_0x320109,_0x27dc9a,_0x2e2636){const _0x162fd5=_0x2447e0(_0x320109,w);_0x162fd5['plugins']['push'](p,D),_0x162fd5['rootsAttributes']=Ge(_0x320109)?_0x320109['getRootsAttributes']():void 0x0;const _0xabc96e=document['createDocumentFragment'](),_0x54fac1=_0x320109['config']['get']('trackChangesData')['editorCreator'],_0x29a086=await _0x54fac1(_0x162fd5,()=>function(_0x4ad24c){const _0x35bbe6=document['createElement']('div');return _0x4ad24c['appendChild'](_0x35bbe6),_0x35bbe6;}(_0xabc96e));!function(_0x7d0710,_0x4a0ee0){const _0x3805e5=_0x7d0710['model']['document']['getRootNames']()['reduce']((_0x12e589,_0x23857c)=>(_0x12e589[_0x23857c]=_0x7d0710['data']['get']({'rootName':_0x23857c}),_0x12e589),{}),_0x499b80=_0x7d0710['plugins']['get']('Users')['users']['map'](_0x4245f9=>({'id':_0x4245f9['id'],'name':_0x4245f9['name']})),_0x5e41c9=_0x7d0710['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3b823d=_0x7d0710['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xc11bd8=_0x4a0ee0['plugins']['get']('Users'),_0x4e9c67=_0x4a0ee0['plugins']['get']('TrackChangesEditing'),_0x39db69=_0x4a0ee0['plugins']['get']('CommentsRepository');for(const _0x4b55c0 of _0x39db69['getCommentThreads']())_0x4b55c0['remove']();for(const _0x330213 of _0x499b80)_0xc11bd8['getUser'](_0x330213['id'])||_0xc11bd8['addUser'](_0x330213);_0xc11bd8['me']||_0xc11bd8['useAnonymousUser']();for(const _0x3ed434 of _0x3b823d)_0x39db69['addCommentThread'](_0x3ed434);for(const _0x53729e of _0x5e41c9)_0x4e9c67['addSuggestionData'](_0x53729e);_0x4a0ee0['data']['set'](_0x3805e5);}(_0x320109,_0x29a086),_0x29a086['execute'](_0x27dc9a?'acceptAllSuggestions':'discardAllSuggestions');const _0x445acc=Ge(_0x29a086)?_0x29a086['getFullData'](_0x2e2636):_0x29a086['data']['get'](_0x2e2636);return await _0x29a086['destroy'](),_0x445acc;}class Me extends _0x51df42{['options'];constructor(_0x20f85e,_0x32c3be){super(_0x20f85e),this['options']=_0x32c3be,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'](_0x1f7cb7,_0x5543c5){if(!this['element'])return;const _0x4be3cd=[];for(const [_0x1d7006,_0x3c943e]of _0x1f7cb7){const _0xc292c5=document['createElement']('div');_0xc292c5['setAttribute']('data-ck-root-name',_0x1d7006),_0xc292c5['className']=_0x3c943e['classes']+'\x20ck-track-changes-preview__root-container',_0xc292c5['innerHTML']=_0x3c943e['content'],_0x4be3cd['push'](_0xc292c5);}_0x5543c5(this['element'],_0x4be3cd),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x53d335{constructor(_0x27a67a){super(_0x27a67a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x19def6=this['editor'],_0x2a8cfd=_0x19def6['locale'],_0x4a448a=_0x19def6['plugins']['get']('Dialog');let _0x564050;const _0x50cbbd=function(_0x22cb45){const _0x262193={};if('editables'in _0x22cb45['ui']['view']){for(const [_0x192b54,_0x389fce]of Object['entries'](_0x22cb45['ui']['view']['editables']))_0x262193[_0x192b54]=_0x389fce['element'];}else _0x262193[_0x22cb45['model']['document']['getRootNames']()[0x0]]=_0x22cb45['ui']['view']['editable']['element'];return _0x262193;}(_0x19def6),_0x2d00b8=function(_0x2f395e){let _0x4d9b78=0x0;for(const _0x60ce14 of Object['values'](_0x2f395e))_0x4d9b78=Math['max'](_0x4d9b78,_0x60ce14['getBoundingClientRect']()['width']);let _0x54f502=0x0;for(const _0x498e85 of Object['values'](_0x2f395e))_0x54f502+=_0x498e85['getBoundingClientRect']()['height'];const _0xcbee60=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x20058c=Math['min'](_0x54f502,_0xcbee60);return{'width':_0x4d9b78,'height':_0x20058c};}(_0x50cbbd);_0x4a448a['show']({'id':'finalContentPreview','title':c(_0x2a8cfd,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2a8cfd,{'dialogRects':_0x2d00b8}),'onHide':()=>{_0x564050['detachFromDom']();},'onShow':()=>{_0x19def6['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5990df=>{const _0xc43d1f=this['_standarizeRootsData'](_0x5990df,_0x19def6,_0x50cbbd);_0x4a448a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xc43d1f,_0x19def6['config']['get']('trackChanges.preview.renderFunction'));}),_0x564050=new _0x30992a(_0x2a8cfd,[_0x4a448a['view']]),_0x564050['attachToDom'](),_0x564050['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x19def6['once']('destroy',()=>{_0x564050['detachFromDom']();});const _0x448b9e=_0x4a448a['view']['headerView']['class'];_0x4a448a['view']['headerView']['class']=_0x448b9e?_0x448b9e+'\x20ck-reset_all':'ck-reset_all',_0x4a448a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4a448a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2d62cf=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3af596=_0x2d62cf['previewMode'],_0x8926fc={};if('$labels'===_0x3af596){for(const _0x913343 of _0x2d62cf['getMergeFieldsIds']())_0x8926fc[_0x913343]=_0x2d62cf['getLabel'](_0x913343)||_0x913343;}else{const _0x5de45d='$defaultValues'===_0x3af596?_0x2d62cf['getDefaultValues']():_0x2d62cf['getDataSetValues'](_0x3af596,!0x0);for(const _0xb201f6 of Object['entries'](_0x5de45d)){const [_0x465fa5,_0x53a9a2]=_0xb201f6;_0x8926fc[_0x465fa5]=null!==_0x53a9a2?_0x53a9a2:_0x2d62cf['getLabel'](_0x465fa5)||_0x465fa5;}}return{'mergeFieldsData':_0x8926fc};}['_standarizeRootsData'](_0x591622,_0x23b546,_0x3d2f32){let _0x4195b2;if('string'==typeof _0x591622){const _0x1c5a73=_0x23b546['model']['document']['getRootNames']()[0x0];_0x4195b2={[_0x1c5a73]:_0x591622};}else _0x4195b2=_0x591622;const _0x472c3d=this['_fixMediaEmbeds'](_0x4195b2,_0x23b546),_0x142a86=function(_0x45e6e1,_0x278a54){for(const [_0x57064d,_0x49289d]of _0x45e6e1)_0x49289d['classes']=_0x278a54[_0x57064d]['classList']['value']['replace']('ck-focused','');return _0x45e6e1;}(this['_sortRoots'](_0x23b546)['reduce']((_0x1f58b4,_0x239016)=>(_0x1f58b4['push']([_0x239016,{'content':_0x472c3d[_0x239016],'classes':''}]),_0x1f58b4),[]),_0x3d2f32);return _0x142a86;}['_fixMediaEmbeds'](_0x9e4c27,_0xd1dc27){if(!_0xd1dc27['plugins']['has']('MediaEmbedEditing'))return _0x9e4c27;const _0x3a6d3a=_0xd1dc27['plugins']['get']('MediaEmbedEditing');for(const [_0x5c3f6b,_0x33f3cb]of Object['entries'](_0x9e4c27)){const _0x109dcf=document['createElement']('div');_0x109dcf['innerHTML']=_0x33f3cb,(_0x109dcf['querySelectorAll']('figure.media')['forEach'](_0x45daa0=>{const _0x2056cd=_0x45daa0['querySelector']('oembed');if(_0x2056cd){const _0x2c2d28=_0x2056cd['getAttribute']('url');if(_0x2c2d28){const _0x24a856=_0x3a6d3a['registry']['getMediaViewElement'](new _0x4f6fee(_0xd1dc27['editing']['view']['document']),_0x2c2d28,{'elementName':'','renderForEditingView':!0x0}),_0x3bb6ba=document['createElement']('div');_0x3bb6ba['classList']['add']('ck-media__wrapper'),_0x24a856['render'](_0x3bb6ba,_0xd1dc27['editing']['view']['domConverter']),_0x2056cd['replaceWith'](_0x3bb6ba);}}}),_0x9e4c27[_0x5c3f6b]=_0x109dcf['innerHTML']);}return _0x9e4c27;}['_sortRoots'](_0x5ef086){if(!function(_0x6c1062){return void 0x0!==_0x6c1062['getRootsAttributes'];}(_0x5ef086))return _0x5ef086['model']['document']['getRootNames']();const _0x1f7969=[],_0x27ca8b=new Map();for(const _0x59a448 of _0x5ef086['model']['document']['getRootNames']()){const _0x33b535=_0x5ef086['editing']['view']['getDomRoot'](_0x59a448)['getClientRects']()['item'](0x0);_0x1f7969['push'](_0x59a448),_0x27ca8b['set'](_0x59a448,_0x33b535);}return _0x1f7969['sort']((_0x4816e6,_0x371b5c)=>{const _0x532dd1=_0x27ca8b['get'](_0x4816e6),_0x431fed=_0x27ca8b['get'](_0x371b5c);return _0x532dd1['y']-_0x431fed['y']||_0x532dd1['x']-_0x431fed['x'];}),_0x1f7969;}}class te extends _0x26e18a{static get['requires'](){return[T,_0x44de0c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43a050){super(_0x43a050),_0x43a050['commands']['add']('previewFinalContent',new re(this['editor'])),_0x43a050['config']['define']('trackChanges.preview.renderFunction',(_0x5123b5,_0x51791b)=>{for(const _0xeac8d9 of _0x51791b)_0x5123b5['appendChild'](_0xeac8d9);});}}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};